@multiversx/sdk-dapp 5.6.8 → 5.6.9

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 (381) hide show
  1. package/out/__chunks__/chunk-244THUVU.mjs +2 -0
  2. package/out/__chunks__/{chunk-PG4PNSW6.mjs → chunk-2M6ZZ2SL.mjs} +2 -2
  3. package/out/__chunks__/{chunk-YG3D4LLK.mjs → chunk-2YUHHXLR.mjs} +2 -2
  4. package/out/__chunks__/{chunk-AZYMVDWU.mjs → chunk-3CWJ722Y.mjs} +2 -2
  5. package/out/__chunks__/{chunk-3WX4MR4F.mjs → chunk-3KPRXK4G.mjs} +2 -2
  6. package/out/__chunks__/{chunk-6MEASZPG.mjs → chunk-3MVZ3KNW.mjs} +2 -2
  7. package/out/__chunks__/{chunk-57IMV3XF.mjs → chunk-476BGZWV.mjs} +2 -2
  8. package/out/__chunks__/{chunk-OHUSVHTC.mjs → chunk-56S5SGPS.mjs} +2 -2
  9. package/out/__chunks__/{chunk-H7BHTGW7.mjs → chunk-7TM4PETT.mjs} +2 -2
  10. package/out/__chunks__/{chunk-TP65TGJH.mjs → chunk-A4W6PM3I.mjs} +2 -2
  11. package/out/__chunks__/chunk-AJ24DJ6R.mjs +2 -0
  12. package/out/__chunks__/{chunk-7ELS72QK.mjs → chunk-ATYZKVD3.mjs} +2 -2
  13. package/out/__chunks__/chunk-AYQWPMYV.mjs +2 -0
  14. package/out/__chunks__/{chunk-ZELPFF47.mjs.map → chunk-AYQWPMYV.mjs.map} +1 -1
  15. package/out/__chunks__/{chunk-EZIUH4RK.mjs → chunk-C37CZZ7G.mjs} +2 -2
  16. package/out/__chunks__/{chunk-SOFJNMOQ.mjs → chunk-CDWQSFYM.mjs} +2 -2
  17. package/out/__chunks__/{chunk-BU4JQETJ.mjs → chunk-CEP3W56Z.mjs} +2 -2
  18. package/out/__chunks__/{chunk-VAXNO6YD.mjs → chunk-CILOQDO7.mjs} +2 -2
  19. package/out/__chunks__/{chunk-VJ3EQSMI.mjs → chunk-D6O5CXIJ.mjs} +2 -2
  20. package/out/__chunks__/{chunk-IONBKMFW.mjs → chunk-DO5KNMAG.mjs} +2 -2
  21. package/out/__chunks__/{chunk-AR6HQ5FR.mjs → chunk-DQGHE25H.mjs} +2 -2
  22. package/out/__chunks__/chunk-EFJCWATU.mjs +2 -0
  23. package/out/__chunks__/{chunk-UU6WX5SY.mjs → chunk-FJLZCJXP.mjs} +2 -2
  24. package/out/__chunks__/{chunk-N4OAQFDH.mjs → chunk-HCVXJWZQ.mjs} +2 -2
  25. package/out/__chunks__/chunk-HIEQWWNV.mjs +2 -0
  26. package/out/__chunks__/chunk-HK3FFQRW.mjs +2 -0
  27. package/out/__chunks__/{chunk-R2IQ32Q5.mjs → chunk-HL4TSHGS.mjs} +2 -2
  28. package/out/__chunks__/{chunk-EN4PQTRT.mjs → chunk-HOOSVVXO.mjs} +2 -2
  29. package/out/__chunks__/chunk-I7VZ3NT7.mjs +2 -0
  30. package/out/__chunks__/chunk-IHAVY2FZ.mjs +2 -0
  31. package/out/__chunks__/chunk-IRT7DVNX.mjs +2 -0
  32. package/out/__chunks__/{chunk-MBI2RTHM.mjs → chunk-IYGNSIQ5.mjs} +2 -2
  33. package/out/__chunks__/chunk-JAY4M72W.mjs +2 -0
  34. package/out/__chunks__/{chunk-PKW4UGR5.mjs → chunk-JSG65RN6.mjs} +2 -2
  35. package/out/__chunks__/chunk-KRNGFXMQ.mjs +2 -0
  36. package/out/__chunks__/{chunk-2TCYFOMD.mjs → chunk-KZKHUGFE.mjs} +2 -2
  37. package/out/__chunks__/chunk-LBARJ4NX.mjs +2 -0
  38. package/out/__chunks__/{chunk-SMXSHPXZ.mjs → chunk-LVHVC32Z.mjs} +2 -2
  39. package/out/__chunks__/{chunk-MFVKEPMI.mjs → chunk-M6ERVE23.mjs} +2 -2
  40. package/out/__chunks__/{chunk-TMLJELVN.mjs → chunk-MBS3W5NI.mjs} +2 -2
  41. package/out/__chunks__/{chunk-WX72WH5S.mjs → chunk-MG5FGHHV.mjs} +2 -2
  42. package/out/__chunks__/{chunk-D43LEYIV.mjs → chunk-MLT5MRG6.mjs} +2 -2
  43. package/out/__chunks__/{chunk-LCMNA7KW.mjs → chunk-N2URS6RY.mjs} +2 -2
  44. package/out/__chunks__/{chunk-4LH5OPJN.mjs → chunk-NAEHROA2.mjs} +2 -2
  45. package/out/__chunks__/{chunk-WTWUPX2O.mjs → chunk-NFUEPPQR.mjs} +2 -2
  46. package/out/__chunks__/chunk-NMVSEQH7.mjs +2 -0
  47. package/out/__chunks__/{chunk-JEFEDCSS.mjs → chunk-NOFMFBNG.mjs} +2 -2
  48. package/out/__chunks__/chunk-O3S3N3Q7.mjs +2 -0
  49. package/out/__chunks__/{chunk-22NBE3VD.mjs → chunk-O57N3Y2D.mjs} +2 -2
  50. package/out/__chunks__/{chunk-HDUHOYDI.mjs → chunk-OLWNOBIQ.mjs} +2 -2
  51. package/out/__chunks__/{chunk-SNEWHEX2.mjs → chunk-OPIR3VXY.mjs} +2 -2
  52. package/out/__chunks__/{chunk-ULUUW4MT.mjs → chunk-OPVLMQIS.mjs} +2 -2
  53. package/out/__chunks__/{chunk-SFK5O3FE.mjs → chunk-OWQXZ55A.mjs} +2 -2
  54. package/out/__chunks__/{chunk-A345VSGT.mjs → chunk-OZJYVSVG.mjs} +2 -2
  55. package/out/__chunks__/{chunk-K3X454GT.mjs → chunk-PIJ4OMIA.mjs} +2 -2
  56. package/out/__chunks__/{chunk-2E2NCU47.mjs → chunk-PMEPPI6R.mjs} +2 -2
  57. package/out/__chunks__/{chunk-3R3VXWC2.mjs → chunk-QLIZ5PRI.mjs} +2 -2
  58. package/out/__chunks__/{chunk-WXAMLA7L.mjs → chunk-QTX4NHPU.mjs} +2 -2
  59. package/out/__chunks__/{chunk-QODHV6EH.mjs → chunk-QV3D2ZVT.mjs} +2 -2
  60. package/out/__chunks__/{chunk-EEHG7FC3.mjs → chunk-R34WZLE5.mjs} +2 -2
  61. package/out/__chunks__/{chunk-RVC6EIC7.mjs → chunk-S4C27CCJ.mjs} +2 -2
  62. package/out/__chunks__/{chunk-XBKZZTGE.mjs → chunk-SFNIICWA.mjs} +2 -2
  63. package/out/__chunks__/{chunk-B6CODV2A.mjs → chunk-SKYZYQFB.mjs} +2 -2
  64. package/out/__chunks__/{chunk-IEXYINQQ.mjs → chunk-SNXSD7MF.mjs} +2 -2
  65. package/out/__chunks__/{chunk-TBSRXSFJ.mjs → chunk-SS3A7KK2.mjs} +2 -2
  66. package/out/__chunks__/{chunk-ZHJVRF45.mjs → chunk-TDNZYOQN.mjs} +2 -2
  67. package/out/__chunks__/{chunk-VZVYNN5W.mjs → chunk-TSYN7VWE.mjs} +2 -2
  68. package/out/__chunks__/{chunk-FFGUC7S7.mjs → chunk-U3JV6DJH.mjs} +2 -2
  69. package/out/__chunks__/{chunk-WS7GSQIW.mjs → chunk-UIC4S5TZ.mjs} +2 -2
  70. package/out/__chunks__/{chunk-FMXCAN3M.mjs → chunk-UKJT66VH.mjs} +2 -2
  71. package/out/__chunks__/{chunk-HH6XW3S6.mjs → chunk-V4LJXYQC.mjs} +2 -2
  72. package/out/__chunks__/{chunk-Y3V3YLGE.mjs → chunk-VBPV3GOM.mjs} +2 -2
  73. package/out/__chunks__/{chunk-HEZLSKRN.mjs → chunk-VIHKBS2X.mjs} +2 -2
  74. package/out/__chunks__/{chunk-TT5HX75E.mjs → chunk-VPSQTIAR.mjs} +2 -2
  75. package/out/__chunks__/{chunk-RBSY7AZJ.mjs → chunk-VRMDOPB6.mjs} +2 -2
  76. package/out/__chunks__/{chunk-5JWQUNZY.mjs → chunk-VSM5G4ZH.mjs} +2 -2
  77. package/out/__chunks__/{chunk-ZX7RZASL.mjs → chunk-VSZYA5AR.mjs} +2 -2
  78. package/out/__chunks__/{chunk-KKI3K4YH.mjs → chunk-VUVEHXGH.mjs} +2 -2
  79. package/out/__chunks__/{chunk-GILGXF3U.mjs → chunk-WAEPXUJW.mjs} +2 -2
  80. package/out/__chunks__/{chunk-PLZG3X3K.mjs → chunk-WJTMUYTI.mjs} +2 -2
  81. package/out/__chunks__/{chunk-MKBRFW6F.mjs → chunk-WOPE4NY2.mjs} +2 -2
  82. package/out/__chunks__/{chunk-A46HPE6M.mjs → chunk-X4CUC3IQ.mjs} +2 -2
  83. package/out/__chunks__/{chunk-WFF2FARS.mjs → chunk-XJL3OI7L.mjs} +2 -2
  84. package/out/__chunks__/{chunk-O6NZ6Z6B.mjs → chunk-XXRHWR52.mjs} +2 -2
  85. package/out/__chunks__/chunk-XXXUMU4O.mjs +2 -0
  86. package/out/__chunks__/chunk-XXXUMU4O.mjs.map +7 -0
  87. package/out/__chunks__/{chunk-SUKYJQTV.mjs → chunk-YIH3FJB4.mjs} +2 -2
  88. package/out/__chunks__/{chunk-M6O2JENG.mjs → chunk-YQBCROZN.mjs} +2 -2
  89. package/out/__chunks__/chunk-YXHYT7CA.mjs +2 -0
  90. package/out/__chunks__/{chunk-QD4CABEY.mjs → chunk-ZJOJQZCC.mjs} +2 -2
  91. package/out/apiCalls/account/getAccountFromApi.mjs +1 -1
  92. package/out/apiCalls/account/getScamAddressData.mjs +1 -1
  93. package/out/apiCalls/configuration/getCleanApiAddress.mjs +1 -1
  94. package/out/apiCalls/configuration/getGasStationMetadata.mjs +1 -1
  95. package/out/apiCalls/economics/getEconomics.mjs +1 -1
  96. package/out/apiCalls/tokens/getPersistedTokenDetails.mjs +1 -1
  97. package/out/apiCalls/tokens/getTokenDetails.mjs +1 -1
  98. package/out/apiCalls/transactions/getServerTransactionsByHashes.mjs +1 -1
  99. package/out/apiCalls/transactions/getTransactionByHash.mjs +1 -1
  100. package/out/apiCalls/transactions/getTransactionsByHashes.mjs +1 -1
  101. package/out/constants/browser.constants.mjs +1 -1
  102. package/out/constants/storage.constants.mjs +1 -1
  103. package/out/constants/window.constants.cjs +1 -1
  104. package/out/constants/window.constants.cjs.map +1 -1
  105. package/out/constants/window.constants.mjs +1 -1
  106. package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.mjs +1 -1
  107. package/out/controllers/TransactionsHistoryController/index.mjs +1 -1
  108. package/out/controllers/TransactionsTableController/TransactionsTableController.mjs +1 -1
  109. package/out/controllers/TransactionsTableController/index.mjs +1 -1
  110. package/out/lib/sdkDappUi.mjs +1 -1
  111. package/out/managers/LogoutManager/LogoutManager.mjs +1 -1
  112. package/out/managers/NotificationsFeedManager/NotificationsFeedManager.mjs +1 -1
  113. package/out/managers/NotificationsFeedManager/index.mjs +1 -1
  114. package/out/managers/ToastManager/ToastManager.mjs +1 -1
  115. package/out/managers/ToastManager/ToastUICoordinator.mjs +1 -1
  116. package/out/managers/ToastManager/helpers/LifetimeManager.mjs +1 -1
  117. package/out/managers/ToastManager/helpers/createToastsFromTransactions.mjs +1 -1
  118. package/out/managers/ToastManager/index.mjs +1 -1
  119. package/out/managers/TransactionManager/TransactionManager.mjs +1 -1
  120. package/out/managers/TransactionManager/helpers/getToastDuration.mjs +1 -1
  121. package/out/managers/TransactionManager/index.mjs +1 -1
  122. package/out/managers/UnlockPanelManager/UnlockPanelManager.mjs +1 -1
  123. package/out/managers/UnlockPanelManager/index.mjs +1 -1
  124. package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.mjs +1 -1
  125. package/out/managers/internal/LedgerConnectStateManager/index.mjs +1 -1
  126. package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.mjs +1 -1
  127. package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.mjs +1 -1
  128. package/out/managers/internal/PendingTransactionsStateManager/index.mjs +1 -1
  129. package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.mjs +1 -1
  130. package/out/managers/internal/SidePanelBaseManager/index.mjs +1 -1
  131. package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.mjs +1 -1
  132. package/out/managers/internal/SignTransactionsStateManager/index.mjs +1 -1
  133. package/out/managers/internal/UIBaseManager/UIBaseManager.mjs +1 -1
  134. package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.mjs +1 -1
  135. package/out/managers/internal/WalletConnectStateManager/index.mjs +1 -1
  136. package/out/methods/account/getAccount.mjs +1 -1
  137. package/out/methods/account/getAccountInfo.mjs +1 -1
  138. package/out/methods/account/getAddress.mjs +1 -1
  139. package/out/methods/account/getIsLoggedIn.mjs +1 -1
  140. package/out/methods/account/getLatestNonce.mjs +1 -1
  141. package/out/methods/initApp/gasStationMetadata/setGasStationMetadata.mjs +1 -1
  142. package/out/methods/initApp/helpers/waitForStoreRehydration.mjs +1 -1
  143. package/out/methods/initApp/initApp.mjs +1 -1
  144. package/out/methods/initApp/websocket/initializeWebsocketConnection.mjs +1 -1
  145. package/out/methods/initApp/websocket/registerWebsocket.mjs +1 -1
  146. package/out/methods/loginInfo/getLoginInfo.mjs +1 -1
  147. package/out/methods/network/getEgldLabel.mjs +1 -1
  148. package/out/methods/network/getExplorerAddress.mjs +1 -1
  149. package/out/methods/network/getNetworkConfig.mjs +1 -1
  150. package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.mjs +1 -1
  151. package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/checkBatch.mjs +1 -1
  152. package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/runTransactionFailure.mjs +1 -1
  153. package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/runTransactionStatusUpdate.mjs +1 -1
  154. package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/updateTransactionAndSessionStatus.mjs +1 -1
  155. package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/index.mjs +1 -1
  156. package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.mjs +1 -1
  157. package/out/methods/trackTransactions/helpers/getPollingInterval.mjs +1 -1
  158. package/out/methods/trackTransactions/trackTransactions.mjs +1 -1
  159. package/out/methods/transactions/getFailedTransactions.mjs +1 -1
  160. package/out/methods/transactions/getFailedTransactionsSessions.mjs +1 -1
  161. package/out/methods/transactions/getPendingTransactions.mjs +1 -1
  162. package/out/methods/transactions/getPendingTransactionsSessions.mjs +1 -1
  163. package/out/methods/transactions/getSuccessfulTransactions.mjs +1 -1
  164. package/out/methods/transactions/getSuccessfulTransactionsSessions.mjs +1 -1
  165. package/out/methods/transactions/getTransactionSessions.mjs +1 -1
  166. package/out/providers/DappProvider/DappProvider.mjs +1 -1
  167. package/out/providers/DappProvider/helpers/login/helpers/accountLogin.mjs +1 -1
  168. package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.mjs +1 -1
  169. package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.mjs +1 -1
  170. package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.mjs +1 -1
  171. package/out/providers/DappProvider/helpers/login/helpers/getMultisigLoginToken.mjs +1 -1
  172. package/out/providers/DappProvider/helpers/login/helpers/loginWithNativeToken.mjs +1 -1
  173. package/out/providers/DappProvider/helpers/login/helpers/loginWithoutNativeToken.mjs +1 -1
  174. package/out/providers/DappProvider/helpers/login/login.mjs +1 -1
  175. package/out/providers/DappProvider/helpers/logout/logout.mjs +1 -1
  176. package/out/providers/DappProvider/helpers/signErrors/handleSignError.mjs +1 -1
  177. package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.mjs +1 -1
  178. package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.mjs +1 -1
  179. package/out/providers/DappProvider/index.mjs +1 -1
  180. package/out/providers/ProviderFactory.mjs +1 -1
  181. package/out/providers/helpers/accountProvider.mjs +1 -1
  182. package/out/providers/helpers/cancelCrossWindowAction.mjs +1 -1
  183. package/out/providers/helpers/restoreProvider.mjs +1 -1
  184. package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.mjs +1 -1
  185. package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.mjs +1 -1
  186. package/out/providers/strategies/CrossWindowProviderStrategy/index.mjs +1 -1
  187. package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.mjs +1 -1
  188. package/out/providers/strategies/ExtensionProviderStrategy/index.mjs +1 -1
  189. package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.mjs +1 -1
  190. package/out/providers/strategies/IframeProviderStrategy/index.mjs +1 -1
  191. package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.mjs +1 -1
  192. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/authenticateLedgerAccount.mjs +1 -1
  193. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/updateAccountsList/index.mjs +1 -1
  194. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/updateAccountsList/updateAccountsList.cjs +1 -1
  195. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/updateAccountsList/updateAccountsList.cjs.map +3 -3
  196. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/updateAccountsList/updateAccountsList.mjs +1 -1
  197. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/waitForLedgerSelection.mjs +1 -1
  198. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/index.mjs +1 -1
  199. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/getLedgerProvider.mjs +1 -1
  200. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/index.mjs +1 -1
  201. package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.mjs +1 -1
  202. package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.mjs +1 -1
  203. package/out/providers/strategies/LedgerProviderStrategy/index.mjs +1 -1
  204. package/out/providers/strategies/LedgerProviderStrategy/types/ledger.types.cjs +1 -1
  205. package/out/providers/strategies/LedgerProviderStrategy/types/ledger.types.cjs.map +2 -2
  206. package/out/providers/strategies/LedgerProviderStrategy/types/ledger.types.d.ts +1 -0
  207. package/out/providers/strategies/LedgerProviderStrategy/types/ledger.types.mjs +1 -1
  208. package/out/providers/strategies/LedgerProviderStrategy/types/ledger.types.mjs.map +2 -2
  209. package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.mjs +1 -1
  210. package/out/providers/strategies/WalletConnectProviderStrategy/index.mjs +1 -1
  211. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.mjs +1 -1
  212. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.mjs +1 -1
  213. package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.mjs +1 -1
  214. package/out/providers/strategies/WebviewProviderStrategy/index.mjs +1 -1
  215. package/out/providers/strategies/helpers/getPendingTransactionsHandlers.mjs +1 -1
  216. package/out/providers/strategies/helpers/index.mjs +1 -1
  217. package/out/providers/strategies/helpers/signMessage/signMessage.mjs +1 -1
  218. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.mjs +1 -1
  219. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.mjs +1 -1
  220. package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.mjs +1 -1
  221. package/out/providers/strategies/helpers/signTransactions/signTransactions.mjs +1 -1
  222. package/out/react/account/useGetAccount.mjs +1 -1
  223. package/out/react/account/useGetAccountInfo.mjs +1 -1
  224. package/out/react/account/useGetIsLoggedIn.mjs +1 -1
  225. package/out/react/account/useGetLatestNonce.mjs +1 -1
  226. package/out/react/index.mjs +1 -1
  227. package/out/react/loginInfo/useGetLoginInfo.mjs +1 -1
  228. package/out/react/network/useGetNetworkConfig.mjs +1 -1
  229. package/out/react/store/getReactStore.mjs +1 -1
  230. package/out/react/store/useSelector.mjs +1 -1
  231. package/out/react/transactions/useGetFailedTransactions.mjs +1 -1
  232. package/out/react/transactions/useGetFailedTransactionsSessions.mjs +1 -1
  233. package/out/react/transactions/useGetPendingTransactions.mjs +1 -1
  234. package/out/react/transactions/useGetPendingTransactionsSessions.mjs +1 -1
  235. package/out/react/transactions/useGetSuccessfulTransactions.mjs +1 -1
  236. package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs +1 -1
  237. package/out/react/transactions/useGetTransactionSessions.mjs +1 -1
  238. package/out/services/nativeAuth/index.mjs +1 -1
  239. package/out/services/nativeAuth/methods/buildNativeAuthConfig.mjs +1 -1
  240. package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.mjs +1 -1
  241. package/out/services/nativeAuth/nativeAuth.mjs +1 -1
  242. package/out/store/actions/account/accountActions.mjs +1 -1
  243. package/out/store/actions/account/index.mjs +1 -1
  244. package/out/store/actions/cache/cacheActions.mjs +1 -1
  245. package/out/store/actions/cache/index.mjs +1 -1
  246. package/out/store/actions/config/configActions.mjs +1 -1
  247. package/out/store/actions/config/index.mjs +1 -1
  248. package/out/store/actions/loginInfo/loginInfoActions.mjs +1 -1
  249. package/out/store/actions/network/index.mjs +1 -1
  250. package/out/store/actions/network/initializeNetwork.mjs +1 -1
  251. package/out/store/actions/network/networkActions.mjs +1 -1
  252. package/out/store/actions/sharedActions/index.mjs +1 -1
  253. package/out/store/actions/sharedActions/sharedActions.mjs +1 -1
  254. package/out/store/actions/toasts/index.mjs +1 -1
  255. package/out/store/actions/toasts/toastsActions.mjs +1 -1
  256. package/out/store/actions/transactions/transactionsActions.mjs +1 -1
  257. package/out/store/actions/ui/index.mjs +1 -1
  258. package/out/store/actions/ui/uiActions.mjs +1 -1
  259. package/out/store/middleware/applyMiddlewares.mjs +1 -1
  260. package/out/store/middleware/index.mjs +1 -1
  261. package/out/store/middleware/logoutMiddleware.mjs +1 -1
  262. package/out/store/storage/index.mjs +1 -1
  263. package/out/store/storage/storageCallback.mjs +1 -1
  264. package/out/store/store.mjs +1 -1
  265. package/out/utils/ComponentFactory.mjs +1 -1
  266. package/out/utils/account/fetchAccount.mjs +1 -1
  267. package/out/utils/account/refreshAccount.mjs +1 -1
  268. package/out/utils/account/refreshNativeAuthTokenLogin.mjs +1 -1
  269. package/out/utils/transactions/getActiveTransactionsStatus.mjs +1 -1
  270. package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.mjs +1 -1
  271. package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.mjs +1 -1
  272. package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.mjs +1 -1
  273. package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.mjs +1 -1
  274. package/out/utils/transactions/getTransactionsHistory/index.mjs +1 -1
  275. package/out/utils/visual/switchTheme.mjs +1 -1
  276. package/out/utils/window/getIsInIframe.mjs +1 -1
  277. package/out/utils/window/getWindowParentOrigin.mjs +1 -1
  278. package/package.json +2 -2
  279. package/out/__chunks__/chunk-55DSSFT2.mjs +0 -2
  280. package/out/__chunks__/chunk-5YCYE5MA.mjs +0 -2
  281. package/out/__chunks__/chunk-6BAQDYWA.mjs +0 -2
  282. package/out/__chunks__/chunk-CHF73P5H.mjs +0 -2
  283. package/out/__chunks__/chunk-ETA4R42O.mjs +0 -2
  284. package/out/__chunks__/chunk-JVPQSBOX.mjs +0 -2
  285. package/out/__chunks__/chunk-KQNCVEC3.mjs +0 -2
  286. package/out/__chunks__/chunk-LGIXBYM3.mjs +0 -2
  287. package/out/__chunks__/chunk-NP2VNG62.mjs +0 -2
  288. package/out/__chunks__/chunk-ORIRXUKE.mjs +0 -2
  289. package/out/__chunks__/chunk-RLD5XV4S.mjs +0 -2
  290. package/out/__chunks__/chunk-SO4J6P3C.mjs +0 -2
  291. package/out/__chunks__/chunk-SURYSJAU.mjs +0 -2
  292. package/out/__chunks__/chunk-VJA2NSQ4.mjs +0 -2
  293. package/out/__chunks__/chunk-Y3IXSTCR.mjs +0 -2
  294. package/out/__chunks__/chunk-Y3IXSTCR.mjs.map +0 -7
  295. package/out/__chunks__/chunk-ZELPFF47.mjs +0 -2
  296. /package/out/__chunks__/{chunk-RLD5XV4S.mjs.map → chunk-244THUVU.mjs.map} +0 -0
  297. /package/out/__chunks__/{chunk-PG4PNSW6.mjs.map → chunk-2M6ZZ2SL.mjs.map} +0 -0
  298. /package/out/__chunks__/{chunk-YG3D4LLK.mjs.map → chunk-2YUHHXLR.mjs.map} +0 -0
  299. /package/out/__chunks__/{chunk-AZYMVDWU.mjs.map → chunk-3CWJ722Y.mjs.map} +0 -0
  300. /package/out/__chunks__/{chunk-3WX4MR4F.mjs.map → chunk-3KPRXK4G.mjs.map} +0 -0
  301. /package/out/__chunks__/{chunk-6MEASZPG.mjs.map → chunk-3MVZ3KNW.mjs.map} +0 -0
  302. /package/out/__chunks__/{chunk-57IMV3XF.mjs.map → chunk-476BGZWV.mjs.map} +0 -0
  303. /package/out/__chunks__/{chunk-OHUSVHTC.mjs.map → chunk-56S5SGPS.mjs.map} +0 -0
  304. /package/out/__chunks__/{chunk-H7BHTGW7.mjs.map → chunk-7TM4PETT.mjs.map} +0 -0
  305. /package/out/__chunks__/{chunk-TP65TGJH.mjs.map → chunk-A4W6PM3I.mjs.map} +0 -0
  306. /package/out/__chunks__/{chunk-VJA2NSQ4.mjs.map → chunk-AJ24DJ6R.mjs.map} +0 -0
  307. /package/out/__chunks__/{chunk-7ELS72QK.mjs.map → chunk-ATYZKVD3.mjs.map} +0 -0
  308. /package/out/__chunks__/{chunk-EZIUH4RK.mjs.map → chunk-C37CZZ7G.mjs.map} +0 -0
  309. /package/out/__chunks__/{chunk-SOFJNMOQ.mjs.map → chunk-CDWQSFYM.mjs.map} +0 -0
  310. /package/out/__chunks__/{chunk-BU4JQETJ.mjs.map → chunk-CEP3W56Z.mjs.map} +0 -0
  311. /package/out/__chunks__/{chunk-VAXNO6YD.mjs.map → chunk-CILOQDO7.mjs.map} +0 -0
  312. /package/out/__chunks__/{chunk-VJ3EQSMI.mjs.map → chunk-D6O5CXIJ.mjs.map} +0 -0
  313. /package/out/__chunks__/{chunk-IONBKMFW.mjs.map → chunk-DO5KNMAG.mjs.map} +0 -0
  314. /package/out/__chunks__/{chunk-AR6HQ5FR.mjs.map → chunk-DQGHE25H.mjs.map} +0 -0
  315. /package/out/__chunks__/{chunk-ETA4R42O.mjs.map → chunk-EFJCWATU.mjs.map} +0 -0
  316. /package/out/__chunks__/{chunk-UU6WX5SY.mjs.map → chunk-FJLZCJXP.mjs.map} +0 -0
  317. /package/out/__chunks__/{chunk-N4OAQFDH.mjs.map → chunk-HCVXJWZQ.mjs.map} +0 -0
  318. /package/out/__chunks__/{chunk-6BAQDYWA.mjs.map → chunk-HIEQWWNV.mjs.map} +0 -0
  319. /package/out/__chunks__/{chunk-55DSSFT2.mjs.map → chunk-HK3FFQRW.mjs.map} +0 -0
  320. /package/out/__chunks__/{chunk-R2IQ32Q5.mjs.map → chunk-HL4TSHGS.mjs.map} +0 -0
  321. /package/out/__chunks__/{chunk-EN4PQTRT.mjs.map → chunk-HOOSVVXO.mjs.map} +0 -0
  322. /package/out/__chunks__/{chunk-NP2VNG62.mjs.map → chunk-I7VZ3NT7.mjs.map} +0 -0
  323. /package/out/__chunks__/{chunk-KQNCVEC3.mjs.map → chunk-IHAVY2FZ.mjs.map} +0 -0
  324. /package/out/__chunks__/{chunk-SO4J6P3C.mjs.map → chunk-IRT7DVNX.mjs.map} +0 -0
  325. /package/out/__chunks__/{chunk-MBI2RTHM.mjs.map → chunk-IYGNSIQ5.mjs.map} +0 -0
  326. /package/out/__chunks__/{chunk-SURYSJAU.mjs.map → chunk-JAY4M72W.mjs.map} +0 -0
  327. /package/out/__chunks__/{chunk-PKW4UGR5.mjs.map → chunk-JSG65RN6.mjs.map} +0 -0
  328. /package/out/__chunks__/{chunk-LGIXBYM3.mjs.map → chunk-KRNGFXMQ.mjs.map} +0 -0
  329. /package/out/__chunks__/{chunk-2TCYFOMD.mjs.map → chunk-KZKHUGFE.mjs.map} +0 -0
  330. /package/out/__chunks__/{chunk-CHF73P5H.mjs.map → chunk-LBARJ4NX.mjs.map} +0 -0
  331. /package/out/__chunks__/{chunk-SMXSHPXZ.mjs.map → chunk-LVHVC32Z.mjs.map} +0 -0
  332. /package/out/__chunks__/{chunk-MFVKEPMI.mjs.map → chunk-M6ERVE23.mjs.map} +0 -0
  333. /package/out/__chunks__/{chunk-TMLJELVN.mjs.map → chunk-MBS3W5NI.mjs.map} +0 -0
  334. /package/out/__chunks__/{chunk-WX72WH5S.mjs.map → chunk-MG5FGHHV.mjs.map} +0 -0
  335. /package/out/__chunks__/{chunk-D43LEYIV.mjs.map → chunk-MLT5MRG6.mjs.map} +0 -0
  336. /package/out/__chunks__/{chunk-LCMNA7KW.mjs.map → chunk-N2URS6RY.mjs.map} +0 -0
  337. /package/out/__chunks__/{chunk-4LH5OPJN.mjs.map → chunk-NAEHROA2.mjs.map} +0 -0
  338. /package/out/__chunks__/{chunk-WTWUPX2O.mjs.map → chunk-NFUEPPQR.mjs.map} +0 -0
  339. /package/out/__chunks__/{chunk-ORIRXUKE.mjs.map → chunk-NMVSEQH7.mjs.map} +0 -0
  340. /package/out/__chunks__/{chunk-JEFEDCSS.mjs.map → chunk-NOFMFBNG.mjs.map} +0 -0
  341. /package/out/__chunks__/{chunk-5YCYE5MA.mjs.map → chunk-O3S3N3Q7.mjs.map} +0 -0
  342. /package/out/__chunks__/{chunk-22NBE3VD.mjs.map → chunk-O57N3Y2D.mjs.map} +0 -0
  343. /package/out/__chunks__/{chunk-HDUHOYDI.mjs.map → chunk-OLWNOBIQ.mjs.map} +0 -0
  344. /package/out/__chunks__/{chunk-SNEWHEX2.mjs.map → chunk-OPIR3VXY.mjs.map} +0 -0
  345. /package/out/__chunks__/{chunk-ULUUW4MT.mjs.map → chunk-OPVLMQIS.mjs.map} +0 -0
  346. /package/out/__chunks__/{chunk-SFK5O3FE.mjs.map → chunk-OWQXZ55A.mjs.map} +0 -0
  347. /package/out/__chunks__/{chunk-A345VSGT.mjs.map → chunk-OZJYVSVG.mjs.map} +0 -0
  348. /package/out/__chunks__/{chunk-K3X454GT.mjs.map → chunk-PIJ4OMIA.mjs.map} +0 -0
  349. /package/out/__chunks__/{chunk-2E2NCU47.mjs.map → chunk-PMEPPI6R.mjs.map} +0 -0
  350. /package/out/__chunks__/{chunk-3R3VXWC2.mjs.map → chunk-QLIZ5PRI.mjs.map} +0 -0
  351. /package/out/__chunks__/{chunk-WXAMLA7L.mjs.map → chunk-QTX4NHPU.mjs.map} +0 -0
  352. /package/out/__chunks__/{chunk-QODHV6EH.mjs.map → chunk-QV3D2ZVT.mjs.map} +0 -0
  353. /package/out/__chunks__/{chunk-EEHG7FC3.mjs.map → chunk-R34WZLE5.mjs.map} +0 -0
  354. /package/out/__chunks__/{chunk-RVC6EIC7.mjs.map → chunk-S4C27CCJ.mjs.map} +0 -0
  355. /package/out/__chunks__/{chunk-XBKZZTGE.mjs.map → chunk-SFNIICWA.mjs.map} +0 -0
  356. /package/out/__chunks__/{chunk-B6CODV2A.mjs.map → chunk-SKYZYQFB.mjs.map} +0 -0
  357. /package/out/__chunks__/{chunk-IEXYINQQ.mjs.map → chunk-SNXSD7MF.mjs.map} +0 -0
  358. /package/out/__chunks__/{chunk-TBSRXSFJ.mjs.map → chunk-SS3A7KK2.mjs.map} +0 -0
  359. /package/out/__chunks__/{chunk-ZHJVRF45.mjs.map → chunk-TDNZYOQN.mjs.map} +0 -0
  360. /package/out/__chunks__/{chunk-VZVYNN5W.mjs.map → chunk-TSYN7VWE.mjs.map} +0 -0
  361. /package/out/__chunks__/{chunk-FFGUC7S7.mjs.map → chunk-U3JV6DJH.mjs.map} +0 -0
  362. /package/out/__chunks__/{chunk-WS7GSQIW.mjs.map → chunk-UIC4S5TZ.mjs.map} +0 -0
  363. /package/out/__chunks__/{chunk-FMXCAN3M.mjs.map → chunk-UKJT66VH.mjs.map} +0 -0
  364. /package/out/__chunks__/{chunk-HH6XW3S6.mjs.map → chunk-V4LJXYQC.mjs.map} +0 -0
  365. /package/out/__chunks__/{chunk-Y3V3YLGE.mjs.map → chunk-VBPV3GOM.mjs.map} +0 -0
  366. /package/out/__chunks__/{chunk-HEZLSKRN.mjs.map → chunk-VIHKBS2X.mjs.map} +0 -0
  367. /package/out/__chunks__/{chunk-TT5HX75E.mjs.map → chunk-VPSQTIAR.mjs.map} +0 -0
  368. /package/out/__chunks__/{chunk-RBSY7AZJ.mjs.map → chunk-VRMDOPB6.mjs.map} +0 -0
  369. /package/out/__chunks__/{chunk-5JWQUNZY.mjs.map → chunk-VSM5G4ZH.mjs.map} +0 -0
  370. /package/out/__chunks__/{chunk-ZX7RZASL.mjs.map → chunk-VSZYA5AR.mjs.map} +0 -0
  371. /package/out/__chunks__/{chunk-KKI3K4YH.mjs.map → chunk-VUVEHXGH.mjs.map} +0 -0
  372. /package/out/__chunks__/{chunk-GILGXF3U.mjs.map → chunk-WAEPXUJW.mjs.map} +0 -0
  373. /package/out/__chunks__/{chunk-PLZG3X3K.mjs.map → chunk-WJTMUYTI.mjs.map} +0 -0
  374. /package/out/__chunks__/{chunk-MKBRFW6F.mjs.map → chunk-WOPE4NY2.mjs.map} +0 -0
  375. /package/out/__chunks__/{chunk-A46HPE6M.mjs.map → chunk-X4CUC3IQ.mjs.map} +0 -0
  376. /package/out/__chunks__/{chunk-WFF2FARS.mjs.map → chunk-XJL3OI7L.mjs.map} +0 -0
  377. /package/out/__chunks__/{chunk-O6NZ6Z6B.mjs.map → chunk-XXRHWR52.mjs.map} +0 -0
  378. /package/out/__chunks__/{chunk-SUKYJQTV.mjs.map → chunk-YIH3FJB4.mjs.map} +0 -0
  379. /package/out/__chunks__/{chunk-M6O2JENG.mjs.map → chunk-YQBCROZN.mjs.map} +0 -0
  380. /package/out/__chunks__/{chunk-JVPQSBOX.mjs.map → chunk-YXHYT7CA.mjs.map} +0 -0
  381. /package/out/__chunks__/{chunk-QD4CABEY.mjs.map → chunk-ZJOJQZCC.mjs.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-ZELPFF47.mjs";function r(t){try{if(!e)return;e.document.documentElement.dataset.mvxTheme=t}catch{console.log("Error switching the theme!")}}export{r as a};
2
- //# sourceMappingURL=chunk-SFK5O3FE.mjs.map
1
+ import{a as e}from"./chunk-AYQWPMYV.mjs";function r(t){try{if(!e)return;e.document.documentElement.dataset.mvxTheme=t}catch{console.log("Error switching the theme!")}}export{r as a};
2
+ //# sourceMappingURL=chunk-OWQXZ55A.mjs.map
@@ -1,2 +1,2 @@
1
- import{i as g}from"./chunk-QODHV6EH.mjs";import{a as i,b as a,g as c}from"./chunk-M6MN4RXG.mjs";var s={error:{title:"Error when signing".toString(),iconClassName:"danger",toastId:`${a}-${Date.now()}`},warning:{title:"Signing canceled".toString(),iconClassName:"warning",toastId:`${i}-${Date.now()}`}},m={extensionResponse:"Unable to sign transactions","Transaction canceled":"Transaction canceled","cancelled by user":"Transaction signing cancelled by user","denied by the user":"Transaction signing denied by the user"},E=n=>{for(let[r,e]of Object.entries(m))if(n.includes(r))return e;return"Error when signing"};function O(n,r="error"){let e=n?.message,o=E(e),t=o!=="Error when signing"?"warning":r,l=Object.keys(s).includes(t)?s[t]:s.error,{toastId:T,iconClassName:d,title:u}=l;return g({toastId:T,duration:1e4,icon:"close",iconClassName:d,message:o,title:u}),o}export{O as a};
2
- //# sourceMappingURL=chunk-A345VSGT.mjs.map
1
+ import{i as g}from"./chunk-QV3D2ZVT.mjs";import{a as i,b as a,g as c}from"./chunk-M6MN4RXG.mjs";var s={error:{title:"Error when signing".toString(),iconClassName:"danger",toastId:`${a}-${Date.now()}`},warning:{title:"Signing canceled".toString(),iconClassName:"warning",toastId:`${i}-${Date.now()}`}},m={extensionResponse:"Unable to sign transactions","Transaction canceled":"Transaction canceled","cancelled by user":"Transaction signing cancelled by user","denied by the user":"Transaction signing denied by the user"},E=n=>{for(let[r,e]of Object.entries(m))if(n.includes(r))return e;return"Error when signing"};function O(n,r="error"){let e=n?.message,o=E(e),t=o!=="Error when signing"?"warning":r,l=Object.keys(s).includes(t)?s[t]:s.error,{toastId:T,iconClassName:d,title:u}=l;return g({toastId:T,duration:1e4,icon:"close",iconClassName:d,message:o,title:u}),o}export{O as a};
2
+ //# sourceMappingURL=chunk-OZJYVSVG.mjs.map
@@ -1,2 +1,2 @@
1
- import{q as t}from"./chunk-QD4CABEY.mjs";var r=({key:e,value:a})=>{t().setState(({cache:c})=>{c[e]=a},!1,{type:"saveToCache",payload:{value:a}})},l=e=>{t().setState(({cache:a})=>{delete a[e]},!1,{type:"removeFromCache",payload:{value:e}})},s=()=>{t().setState(({cache:e})=>{Object.keys(e).forEach(a=>{delete e[a]})},!1,{type:"clearCache",payload:{value:null}})};export{r as a,l as b,s as c};
2
- //# sourceMappingURL=chunk-K3X454GT.mjs.map
1
+ import{q as t}from"./chunk-ZJOJQZCC.mjs";var r=({key:e,value:a})=>{t().setState(({cache:c})=>{c[e]=a},!1,{type:"saveToCache",payload:{value:a}})},l=e=>{t().setState(({cache:a})=>{delete a[e]},!1,{type:"removeFromCache",payload:{value:e}})},s=()=>{t().setState(({cache:e})=>{Object.keys(e).forEach(a=>{delete e[a]})},!1,{type:"clearCache",payload:{value:null}})};export{r as a,l as b,s as c};
2
+ //# sourceMappingURL=chunk-PIJ4OMIA.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as w}from"./chunk-VJA2NSQ4.mjs";import{a as p}from"./chunk-TMLJELVN.mjs";import{a as O}from"./chunk-AR6HQ5FR.mjs";import{a as M}from"./chunk-O6NZ6Z6B.mjs";import{k as I,l as F,n as N}from"./chunk-E2GGD7D4.mjs";import{a as b,b as C,d as g,e as v,g as E,h as y,i as S}from"./chunk-QODHV6EH.mjs";import{d as B}from"./chunk-IEXYINQQ.mjs";import{l as f}from"./chunk-M6MN4RXG.mjs";import{q as c}from"./chunk-QD4CABEY.mjs";import{a as d}from"./chunk-4LH5OPJN.mjs";import A from"lodash.isequal";import l from"lodash.isequal";var m=class{constructor(t){this.toastsElement=null;this.eventBus=null;this.isCreatingElement=!1;this.eventBusUnsubscribeFunctions=[];this.onCloseToast=t.onCloseToast,this.store=t.store||c(),this.notificationsFeedManager=t.notificationsFeedManager||h.getInstance()}async init(){await this.subscribeToEventBusNotifications()}showToasts(){this.eventBus?.publish("SHOW_TOAST_LIST",null)}hideToasts(){this.eventBus?.publish("HIDE_TOAST_LIST",null)}async publishTransactionToasts(t){if(this.notificationsFeedManager.isNotificationsFeedOpen()&&this.eventBus){this.eventBus.publish("TRANSACTION_TOAST_DATA_UPDATE",t),this.hideToasts();return}if(!this.eventBus){let s=await this.createToastListElement();if(!s)return;this.eventBus=await s.getEventBus()}this.eventBus?.publish("TRANSACTION_TOAST_DATA_UPDATE",t)}async publishCustomToasts(t){this.eventBus?.publish("CUSTOM_TOAST_DATA_UPDATE",t)}handleOpenNotificationsFeed(){this.notificationsFeedManager.openNotificationsFeed()}destroy(){this.eventBusUnsubscribeFunctions.forEach(t=>t()),this.eventBusUnsubscribeFunctions=[],this.notificationsFeedManager?.destroy()}async createToastListElement(){return this.toastsElement?this.toastsElement:(this.isCreatingElement||(this.isCreatingElement=!0,this.toastsElement=await d.create({name:"mvx-toast-list"}),this.isCreatingElement=!1),this.toastsElement)}async subscribeToEventBusNotifications(){let t=await this.createToastListElement();if(t){if(this.eventBus=await t.getEventBus(),!this.eventBus)throw new Error("eventBus is not initialized");this.eventBus.subscribe("CLOSE_TOAST",this.onCloseToast),this.eventBusUnsubscribeFunctions.push(()=>{this.eventBus?.unsubscribe("CLOSE_TOAST",this.onCloseToast)}),this.eventBus.subscribe("OPEN_NOTIFICATIONS_FEED",this.handleOpenNotificationsFeed.bind(this)),this.eventBusUnsubscribeFunctions.push(()=>{this.eventBus?.unsubscribe("OPEN_NOTIFICATIONS_FEED",this.handleOpenNotificationsFeed.bind(this))})}}};var u=class a{constructor(t){this.transactionToasts=[];this.customToasts=[];this.unsubscribeFromStore=()=>null;this.uiCoordinator=null;this.destroy(),this.store=t?.store||c(),this.lifetimeManager=t?.lifetimeManager??new O,this.uiCoordinator=t?.uiCoordinator??new m({onCloseToast:this.closeToast.bind(this)})}async init({successfulToastLifetime:t=5e3}={}){this.successfulToastLifetime=t,this.lifetimeManager.init({successfulToastLifetime:t}),await this.updateTransactionToastsList(),await this.updateCustomToastList(),await this.uiCoordinator?.init(),this.unsubscribeFromStore=this.store.subscribe(async({toasts:s,transactions:i},{toasts:e,transactions:o})=>{let n=!l(e.transactionToasts,s.transactionToasts),r=!l(o,i);(n||r)&&await this.updateTransactionToastsList(),!l(e.customToasts,s.customToasts)&&await this.updateCustomToastList()})}static getInstance(){return a.instance||(a.instance=new a),a.instance}handleCompletedTransaction(t){let{transactions:s}=this.store.getState(),i=s[t];if(!i)return!1;let{status:e}=i,o=N(e),n=F(e),r=I(e),T=n||r||o;return T?(this.successfulToastLifetime&&this.lifetimeManager.start(t),T):(this.lifetimeManager.stop(t),T)}async createTransactionToast(t,s){let i=E({toastId:t,totalDuration:s});return this.handleCompletedTransaction(t),await this.updateTransactionToastsList(),i}async createCustomToast(t){let s=S(t);return await this.updateCustomToastList(),s}async updateTransactionToastsList(){let t=this.store.getState(),{toasts:s}=t,{pendingTransactionToasts:i,completedTransactionToasts:e}=await p({store:t});this.transactionToasts=[...i,...e];for(let o of s.transactionToasts)this.handleCompletedTransaction(o.toastId);await this.publishTransactionToasts()}async updateCustomToastList(){let{toasts:t}=this.store.getState();this.customToasts=[];for(let s of t.customToasts){let e="message"in s?{...s}:{...s,instantiateToastElement:b[s.toastId]};this.customToasts.push(e),s.duration&&this.lifetimeManager.startWithCustomDuration(s.toastId,s.duration)}await this.uiCoordinator?.publishCustomToasts(this.customToasts)}handleTransactionToastClose(t){return this.handleCompletedTransaction(t)?(y(t),!0):!1}async showToasts(){this.uiCoordinator?.showToasts(),await this.updateCustomToastList(),await this.updateTransactionToastsList()}hideToasts(){this.uiCoordinator?.hideToasts()}closeToast(t){if(this.customToasts.find(i=>i.toastId===t)){this.lifetimeManager.stop(t);let i=C[t];return i?.(),g(t),!0}return this.handleTransactionToastClose(t)}async publishTransactionToasts(){await this.uiCoordinator?.publishTransactionToasts(this.transactionToasts)}destroy(){this.unsubscribeFromStore(),this.lifetimeManager?.destroy(),this.uiCoordinator?.destroy(),v()}};var D="NOTIFICATIONS_FEED_STORE_SUBSCRIBE",h=class a extends M{constructor(s){super({uiDataUpdateEvent:"OPEN_NOTIFICATIONS_FEED",uiTag:"mvx-notifications-feed"});this.initialData={pendingTransactions:[],historicTransactions:[]};this.store=s||c(),this.data={...this.initialData}}static getInstance(){return a.instance||(a.instance=new a),a.instance}isNotificationsFeedOpen(){return this.isOpen}async openNotificationsFeed(){u.getInstance().hideToasts(),await this.openUI(),await this.updateDataAndNotifications();let i=this.store.subscribe(async({toasts:e,transactions:o},{toasts:n,transactions:r})=>{(!A(n.transactionToasts,e.transactionToasts)||!A(r,o))&&await this.updateDataAndNotifications()});this.unsubscribeFunctions.set(D,[i]),this.eventBus?.publish("OPEN_NOTIFICATIONS_FEED"),await this.updateDataAndNotifications()}async handleCloseUI(){let s=u.getInstance();this.closeUI(),await s.showToasts()}async setupEventListeners(){this.eventBus&&(this.subscribeToEventBus("CLOSE_NOTIFICATIONS_FEED",this.handleCloseUI.bind(this)),this.subscribeToEventBus("CLEAR_NOTIFICATIONS_FEED_HISTORY",this.handleClearNotificationsFeedHistory.bind(this)))}async updateDataAndNotifications(){let{transactions:s}=this.store.getState(),{pendingTransactionToasts:i}=await p();this.data.pendingTransactions=i;let e=Object.keys(s).reduce((o,n)=>(["sent","pending"].includes(String(s[n].status))||(o[n]=s[n]),o),{});this.data.historicTransactions=await w.getTransactionsHistory({transactionsSessions:e}),await this.updateNotificationsFeed()}handleClearNotificationsFeedHistory(){B(),this.resetData(),this.updateNotificationsFeed()}async updateNotificationsFeed(){this.eventBus&&(this.eventBus.publish("PENDING_TRANSACTIONS_UPDATE",this.data.pendingTransactions),this.eventBus.publish("TRANSACTIONS_HISTORY_UPDATE",this.data.historicTransactions))}};export{h as a,m as b,u as c};
2
- //# sourceMappingURL=chunk-2E2NCU47.mjs.map
1
+ import{a as w}from"./chunk-AJ24DJ6R.mjs";import{a as p}from"./chunk-MBS3W5NI.mjs";import{a as O}from"./chunk-DQGHE25H.mjs";import{a as M}from"./chunk-XXRHWR52.mjs";import{k as I,l as F,n as N}from"./chunk-E2GGD7D4.mjs";import{a as b,b as C,d as g,e as v,g as E,h as y,i as S}from"./chunk-QV3D2ZVT.mjs";import{d as B}from"./chunk-SNXSD7MF.mjs";import{l as f}from"./chunk-M6MN4RXG.mjs";import{q as c}from"./chunk-ZJOJQZCC.mjs";import{a as d}from"./chunk-NAEHROA2.mjs";import A from"lodash.isequal";import l from"lodash.isequal";var m=class{constructor(t){this.toastsElement=null;this.eventBus=null;this.isCreatingElement=!1;this.eventBusUnsubscribeFunctions=[];this.onCloseToast=t.onCloseToast,this.store=t.store||c(),this.notificationsFeedManager=t.notificationsFeedManager||h.getInstance()}async init(){await this.subscribeToEventBusNotifications()}showToasts(){this.eventBus?.publish("SHOW_TOAST_LIST",null)}hideToasts(){this.eventBus?.publish("HIDE_TOAST_LIST",null)}async publishTransactionToasts(t){if(this.notificationsFeedManager.isNotificationsFeedOpen()&&this.eventBus){this.eventBus.publish("TRANSACTION_TOAST_DATA_UPDATE",t),this.hideToasts();return}if(!this.eventBus){let s=await this.createToastListElement();if(!s)return;this.eventBus=await s.getEventBus()}this.eventBus?.publish("TRANSACTION_TOAST_DATA_UPDATE",t)}async publishCustomToasts(t){this.eventBus?.publish("CUSTOM_TOAST_DATA_UPDATE",t)}handleOpenNotificationsFeed(){this.notificationsFeedManager.openNotificationsFeed()}destroy(){this.eventBusUnsubscribeFunctions.forEach(t=>t()),this.eventBusUnsubscribeFunctions=[],this.notificationsFeedManager?.destroy()}async createToastListElement(){return this.toastsElement?this.toastsElement:(this.isCreatingElement||(this.isCreatingElement=!0,this.toastsElement=await d.create({name:"mvx-toast-list"}),this.isCreatingElement=!1),this.toastsElement)}async subscribeToEventBusNotifications(){let t=await this.createToastListElement();if(t){if(this.eventBus=await t.getEventBus(),!this.eventBus)throw new Error("eventBus is not initialized");this.eventBus.subscribe("CLOSE_TOAST",this.onCloseToast),this.eventBusUnsubscribeFunctions.push(()=>{this.eventBus?.unsubscribe("CLOSE_TOAST",this.onCloseToast)}),this.eventBus.subscribe("OPEN_NOTIFICATIONS_FEED",this.handleOpenNotificationsFeed.bind(this)),this.eventBusUnsubscribeFunctions.push(()=>{this.eventBus?.unsubscribe("OPEN_NOTIFICATIONS_FEED",this.handleOpenNotificationsFeed.bind(this))})}}};var u=class a{constructor(t){this.transactionToasts=[];this.customToasts=[];this.unsubscribeFromStore=()=>null;this.uiCoordinator=null;this.destroy(),this.store=t?.store||c(),this.lifetimeManager=t?.lifetimeManager??new O,this.uiCoordinator=t?.uiCoordinator??new m({onCloseToast:this.closeToast.bind(this)})}async init({successfulToastLifetime:t=5e3}={}){this.successfulToastLifetime=t,this.lifetimeManager.init({successfulToastLifetime:t}),await this.updateTransactionToastsList(),await this.updateCustomToastList(),await this.uiCoordinator?.init(),this.unsubscribeFromStore=this.store.subscribe(async({toasts:s,transactions:i},{toasts:e,transactions:o})=>{let n=!l(e.transactionToasts,s.transactionToasts),r=!l(o,i);(n||r)&&await this.updateTransactionToastsList(),!l(e.customToasts,s.customToasts)&&await this.updateCustomToastList()})}static getInstance(){return a.instance||(a.instance=new a),a.instance}handleCompletedTransaction(t){let{transactions:s}=this.store.getState(),i=s[t];if(!i)return!1;let{status:e}=i,o=N(e),n=F(e),r=I(e),T=n||r||o;return T?(this.successfulToastLifetime&&this.lifetimeManager.start(t),T):(this.lifetimeManager.stop(t),T)}async createTransactionToast(t,s){let i=E({toastId:t,totalDuration:s});return this.handleCompletedTransaction(t),await this.updateTransactionToastsList(),i}async createCustomToast(t){let s=S(t);return await this.updateCustomToastList(),s}async updateTransactionToastsList(){let t=this.store.getState(),{toasts:s}=t,{pendingTransactionToasts:i,completedTransactionToasts:e}=await p({store:t});this.transactionToasts=[...i,...e];for(let o of s.transactionToasts)this.handleCompletedTransaction(o.toastId);await this.publishTransactionToasts()}async updateCustomToastList(){let{toasts:t}=this.store.getState();this.customToasts=[];for(let s of t.customToasts){let e="message"in s?{...s}:{...s,instantiateToastElement:b[s.toastId]};this.customToasts.push(e),s.duration&&this.lifetimeManager.startWithCustomDuration(s.toastId,s.duration)}await this.uiCoordinator?.publishCustomToasts(this.customToasts)}handleTransactionToastClose(t){return this.handleCompletedTransaction(t)?(y(t),!0):!1}async showToasts(){this.uiCoordinator?.showToasts(),await this.updateCustomToastList(),await this.updateTransactionToastsList()}hideToasts(){this.uiCoordinator?.hideToasts()}closeToast(t){if(this.customToasts.find(i=>i.toastId===t)){this.lifetimeManager.stop(t);let i=C[t];return i?.(),g(t),!0}return this.handleTransactionToastClose(t)}async publishTransactionToasts(){await this.uiCoordinator?.publishTransactionToasts(this.transactionToasts)}destroy(){this.unsubscribeFromStore(),this.lifetimeManager?.destroy(),this.uiCoordinator?.destroy(),v()}};var D="NOTIFICATIONS_FEED_STORE_SUBSCRIBE",h=class a extends M{constructor(s){super({uiDataUpdateEvent:"OPEN_NOTIFICATIONS_FEED",uiTag:"mvx-notifications-feed"});this.initialData={pendingTransactions:[],historicTransactions:[]};this.store=s||c(),this.data={...this.initialData}}static getInstance(){return a.instance||(a.instance=new a),a.instance}isNotificationsFeedOpen(){return this.isOpen}async openNotificationsFeed(){u.getInstance().hideToasts(),await this.openUI(),await this.updateDataAndNotifications();let i=this.store.subscribe(async({toasts:e,transactions:o},{toasts:n,transactions:r})=>{(!A(n.transactionToasts,e.transactionToasts)||!A(r,o))&&await this.updateDataAndNotifications()});this.unsubscribeFunctions.set(D,[i]),this.eventBus?.publish("OPEN_NOTIFICATIONS_FEED"),await this.updateDataAndNotifications()}async handleCloseUI(){let s=u.getInstance();this.closeUI(),await s.showToasts()}async setupEventListeners(){this.eventBus&&(this.subscribeToEventBus("CLOSE_NOTIFICATIONS_FEED",this.handleCloseUI.bind(this)),this.subscribeToEventBus("CLEAR_NOTIFICATIONS_FEED_HISTORY",this.handleClearNotificationsFeedHistory.bind(this)))}async updateDataAndNotifications(){let{transactions:s}=this.store.getState(),{pendingTransactionToasts:i}=await p();this.data.pendingTransactions=i;let e=Object.keys(s).reduce((o,n)=>(["sent","pending"].includes(String(s[n].status))||(o[n]=s[n]),o),{});this.data.historicTransactions=await w.getTransactionsHistory({transactionsSessions:e}),await this.updateNotificationsFeed()}handleClearNotificationsFeedHistory(){B(),this.resetData(),this.updateNotificationsFeed()}async updateNotificationsFeed(){this.eventBus&&(this.eventBus.publish("PENDING_TRANSACTIONS_UPDATE",this.data.pendingTransactions),this.eventBus.publish("TRANSACTIONS_HISTORY_UPDATE",this.data.historicTransactions))}};export{h as a,m as b,u as c};
2
+ //# sourceMappingURL=chunk-PMEPPI6R.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-WXAMLA7L.mjs";import{a as o}from"./chunk-PMHRZ5Y7.mjs";import{j as r}from"./chunk-E2GGD7D4.mjs";import{b as i}from"./chunk-IEXYINQQ.mjs";import{s as n}from"./chunk-QD4CABEY.mjs";async function E({transaction:a,sessionId:s}){let c=a.results?.find(t=>t?.returnMessage!=="");e({sessionId:s,transaction:{...a,status:"fail",inTransit:!1}});let{transactions:m}=n();m?.[s]?.transactions?.some(t=>r(t.status))||(i({sessionId:s,status:"fail",errorMessage:c?.returnMessage}),await o({sessionId:s,status:"fail"}))}export{E as a};
2
- //# sourceMappingURL=chunk-3R3VXWC2.mjs.map
1
+ import{a as e}from"./chunk-QTX4NHPU.mjs";import{a as o}from"./chunk-PMHRZ5Y7.mjs";import{j as r}from"./chunk-E2GGD7D4.mjs";import{b as i}from"./chunk-SNXSD7MF.mjs";import{s as n}from"./chunk-ZJOJQZCC.mjs";async function E({transaction:a,sessionId:s}){let c=a.results?.find(t=>t?.returnMessage!=="");e({sessionId:s,transaction:{...a,status:"fail",inTransit:!1}});let{transactions:m}=n();m?.[s]?.transactions?.some(t=>r(t.status))||(i({sessionId:s,status:"fail",errorMessage:c?.returnMessage}),await o({sessionId:s,status:"fail"}))}export{E as a};
2
+ //# sourceMappingURL=chunk-QLIZ5PRI.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as r}from"./chunk-TWYGNEQS.mjs";import{b as n,c as o}from"./chunk-IEXYINQQ.mjs";import{s}from"./chunk-QD4CABEY.mjs";function T({sessionId:t,transaction:e}){o({sessionId:t,transaction:e});let i=s().transactions?.[t].transactions,a=r(i);return a&&n({sessionId:t,status:a}),a}export{T as a};
2
- //# sourceMappingURL=chunk-WXAMLA7L.mjs.map
1
+ import{a as r}from"./chunk-TWYGNEQS.mjs";import{b as n,c as o}from"./chunk-SNXSD7MF.mjs";import{s}from"./chunk-ZJOJQZCC.mjs";function T({sessionId:t,transaction:e}){o({sessionId:t,transaction:e});let i=s().transactions?.[t].transactions,a=r(i);return a&&n({sessionId:t,status:a}),a}export{T as a};
2
+ //# sourceMappingURL=chunk-QTX4NHPU.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as r}from"./chunk-NJN53MJV.mjs";import{a as l}from"./chunk-YSCND2MX.mjs";import{q as n}from"./chunk-QD4CABEY.mjs";var c={},u={},p=(t,o)=>{n().setState(({toasts:s})=>{let a=s.customToasts.length>0?Math.max(...s.customToasts.map(m=>parseInt(m.toastId.split("-").pop()??"0"))):0,e=o??`custom-toast-${a+1}`,T=s.customToasts.findIndex(m=>m.toastId===e),i={...t,toastId:e};if(T!==-1){s.customToasts[T]=i;return}s.customToasts.push({...i,toastId:e})},!1,{type:"addCustomToast",payload:{value:{customToast:t,currentToastId:o}}})},C=t=>{n().setState(({toasts:o})=>{o.customToasts=o.customToasts.filter(s=>s.toastId!==t)},!1,{type:"removeCustomToast",payload:{value:t}})},I=()=>{n().setState(({toasts:t})=>{t.customToasts=[]},!1,{type:"removeAllCustomToasts",payload:{value:null}})},f=()=>{n().setState(({toasts:t})=>{t.transactionToasts=[]},!1,{type:"removeAllTransactionToasts",payload:{value:null}})},g=({toastId:t,totalDuration:o})=>{let s="";return n().setState(({toasts:a})=>{let e=a.transactionToasts.length>0?Math.max(...a.transactionToasts.map(T=>parseInt(T.toastId.split("-").pop()??"0"))):0;s=t??`transaction-toast-${e+1}`,a.transactionToasts.push({startTime:l(),endTime:r(o),toastId:s})},!1,{type:"addTransactionToast",payload:{value:{toastId:t,totalDuration:o}}}),s},v=t=>{n().setState(({toasts:o})=>{o.transactionToasts=o.transactionToasts.filter(s=>s.toastId!==t)},!1,{type:"removeTransactionToast",payload:{value:t}}),delete u[t],delete c[t]},h=t=>{let{toasts:o}=n().getState(),s=o.customToasts.length>0?Math.max(...o.customToasts.map(e=>parseInt(e.toastId.split("-").pop()??"0"))):0,a=t.toastId||`custom-toast-${s+1}`;return t.onClose&&(u[a]=t.onClose),t.instantiateToastElement?(c[a]=t.instantiateToastElement,n().setState(({toasts:e})=>{let T=e.customToasts.findIndex(m=>m.toastId===a),i={...t,instantiateToastElement:null,toastId:a};T!==-1?e.customToasts[T]=i:e.customToasts.push(i)},!1,{type:"createCustomToast",payload:{value:t}}),a):(p(t,a),a)};export{c as a,u as b,p as c,C as d,I as e,f,g,v as h,h as i};
2
- //# sourceMappingURL=chunk-QODHV6EH.mjs.map
1
+ import{a as r}from"./chunk-NJN53MJV.mjs";import{a as l}from"./chunk-YSCND2MX.mjs";import{q as n}from"./chunk-ZJOJQZCC.mjs";var c={},u={},p=(t,o)=>{n().setState(({toasts:s})=>{let a=s.customToasts.length>0?Math.max(...s.customToasts.map(m=>parseInt(m.toastId.split("-").pop()??"0"))):0,e=o??`custom-toast-${a+1}`,T=s.customToasts.findIndex(m=>m.toastId===e),i={...t,toastId:e};if(T!==-1){s.customToasts[T]=i;return}s.customToasts.push({...i,toastId:e})},!1,{type:"addCustomToast",payload:{value:{customToast:t,currentToastId:o}}})},C=t=>{n().setState(({toasts:o})=>{o.customToasts=o.customToasts.filter(s=>s.toastId!==t)},!1,{type:"removeCustomToast",payload:{value:t}})},I=()=>{n().setState(({toasts:t})=>{t.customToasts=[]},!1,{type:"removeAllCustomToasts",payload:{value:null}})},f=()=>{n().setState(({toasts:t})=>{t.transactionToasts=[]},!1,{type:"removeAllTransactionToasts",payload:{value:null}})},g=({toastId:t,totalDuration:o})=>{let s="";return n().setState(({toasts:a})=>{let e=a.transactionToasts.length>0?Math.max(...a.transactionToasts.map(T=>parseInt(T.toastId.split("-").pop()??"0"))):0;s=t??`transaction-toast-${e+1}`,a.transactionToasts.push({startTime:l(),endTime:r(o),toastId:s})},!1,{type:"addTransactionToast",payload:{value:{toastId:t,totalDuration:o}}}),s},v=t=>{n().setState(({toasts:o})=>{o.transactionToasts=o.transactionToasts.filter(s=>s.toastId!==t)},!1,{type:"removeTransactionToast",payload:{value:t}}),delete u[t],delete c[t]},h=t=>{let{toasts:o}=n().getState(),s=o.customToasts.length>0?Math.max(...o.customToasts.map(e=>parseInt(e.toastId.split("-").pop()??"0"))):0,a=t.toastId||`custom-toast-${s+1}`;return t.onClose&&(u[a]=t.onClose),t.instantiateToastElement?(c[a]=t.instantiateToastElement,n().setState(({toasts:e})=>{let T=e.customToasts.findIndex(m=>m.toastId===a),i={...t,instantiateToastElement:null,toastId:a};T!==-1?e.customToasts[T]=i:e.customToasts.push(i)},!1,{type:"createCustomToast",payload:{value:t}}),a):(p(t,a),a)};export{c as a,u as b,p as c,C as d,I as e,f,g,v as h,h as i};
2
+ //# sourceMappingURL=chunk-QV3D2ZVT.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as o}from"./chunk-TBSRXSFJ.mjs";import{v as e}from"./chunk-2JKCBTYK.mjs";import n from"axios";async function p(r,s){let a=`${o(s)}/${e}/${r}`;try{let{data:t}=await n.get(a);return t?{[r]:{lastBlock:t.lastBlock,fast:t.fast,faster:t.faster}}:null}catch(t){return console.error("Error fetching gas station metadata from:",a,t),null}}export{p as a};
2
- //# sourceMappingURL=chunk-EEHG7FC3.mjs.map
1
+ import{a as o}from"./chunk-SS3A7KK2.mjs";import{v as e}from"./chunk-2JKCBTYK.mjs";import n from"axios";async function p(r,s){let a=`${o(s)}/${e}/${r}`;try{let{data:t}=await n.get(a);return t?{[r]:{lastBlock:t.lastBlock,fast:t.fast,faster:t.faster}}:null}catch(t){return console.error("Error fetching gas station metadata from:",a,t),null}}export{p as a};
2
+ //# sourceMappingURL=chunk-R34WZLE5.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as c}from"./chunk-IWP36NOU.mjs";import{a as w}from"./chunk-LGGG3HW7.mjs";import{a as i}from"./chunk-PKDR5ERF.mjs";import{q as u}from"./chunk-QD4CABEY.mjs";import{a as l}from"./chunk-SQVKVA7X.mjs";var e=o=>u().setState(({network:t})=>{t.network={...t.network,...o}},!1,{type:"initializeNetworkConfig",payload:{value:o}});var y=async({customNetworkConfig:o={},environment:t})=>{let d=!o?.skipFetchFromServer,g=o?.apiAddress,n=t&&t in i,p=n?i[t]:{},s={...l,...p,...o},r={...s,apiTimeout:String(s.apiTimeout)},N=p?.apiAddress;if(!n&&d){let a=g||N,m=await c(a),f=r.roundDuration?null:await w(a);if(f!=null&&(r.roundDuration=f.erd_round_duration),m!=null){let k={...r,...m,...o};return e(k),k}}return e(r),r};export{y as a,e as b};
2
- //# sourceMappingURL=chunk-RVC6EIC7.mjs.map
1
+ import{a as c}from"./chunk-IWP36NOU.mjs";import{a as w}from"./chunk-LGGG3HW7.mjs";import{a as i}from"./chunk-PKDR5ERF.mjs";import{q as u}from"./chunk-ZJOJQZCC.mjs";import{a as l}from"./chunk-SQVKVA7X.mjs";var e=o=>u().setState(({network:t})=>{t.network={...t.network,...o}},!1,{type:"initializeNetworkConfig",payload:{value:o}});var y=async({customNetworkConfig:o={},environment:t})=>{let d=!o?.skipFetchFromServer,g=o?.apiAddress,n=t&&t in i,p=n?i[t]:{},s={...l,...p,...o},r={...s,apiTimeout:String(s.apiTimeout)},N=p?.apiAddress;if(!n&&d){let a=g||N,m=await c(a),f=r.roundDuration?null:await w(a);if(f!=null&&(r.roundDuration=f.erd_round_duration),m!=null){let k={...r,...m,...o};return e(k),k}}return e(r),r};export{y as a,e as b};
2
+ //# sourceMappingURL=chunk-S4C27CCJ.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-M6O2JENG.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-XBKZZTGE.mjs.map
1
+ import{a as e}from"./chunk-YQBCROZN.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-SFNIICWA.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as A}from"./chunk-SUKYJQTV.mjs";import{a as I}from"./chunk-EAJBSX6Y.mjs";import{a as b}from"./chunk-TWYGNEQS.mjs";import{b as T}from"./chunk-2VG3V3VD.mjs";import{g as S}from"./chunk-QODHV6EH.mjs";import{a as h}from"./chunk-IEXYINQQ.mjs";import{a as y}from"./chunk-55DSSFT2.mjs";import{h as f}from"./chunk-M6MN4RXG.mjs";import{b as l}from"./chunk-7VHTZYM2.mjs";import{a as g}from"./chunk-NI7XCWV5.mjs";import{s as m}from"./chunk-QD4CABEY.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=b(s),n=h({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}=l(m());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}=y(),{apiAddress:s,apiTimeout:o}=l(m());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 g({data:d.data})&&(delete d.senderUsername,delete d.receiverUsername),d}));return{data:{...u,transactions:B}}};this.buildBatchId=t=>`${Date.now().toString()}${f}${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-B6CODV2A.mjs.map
1
+ import{a as A}from"./chunk-YIH3FJB4.mjs";import{a as I}from"./chunk-EAJBSX6Y.mjs";import{a as b}from"./chunk-TWYGNEQS.mjs";import{b as T}from"./chunk-2VG3V3VD.mjs";import{g as S}from"./chunk-QV3D2ZVT.mjs";import{a as h}from"./chunk-SNXSD7MF.mjs";import{a as y}from"./chunk-HK3FFQRW.mjs";import{h as f}from"./chunk-M6MN4RXG.mjs";import{b as l}from"./chunk-7VHTZYM2.mjs";import{a as g}from"./chunk-NI7XCWV5.mjs";import{s as m}from"./chunk-ZJOJQZCC.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=b(s),n=h({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}=l(m());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}=y(),{apiAddress:s,apiTimeout:o}=l(m());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 g({data:d.data})&&(delete d.senderUsername,delete d.receiverUsername),d}));return{data:{...u,transactions:B}}};this.buildBatchId=t=>`${Date.now().toString()}${f}${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-SKYZYQFB.mjs.map
@@ -1,2 +1,2 @@
1
- import{q as o}from"./chunk-QD4CABEY.mjs";import{current as p}from"immer";function d({transactions:t,transactionsDisplayInfo:n,status:r,sessionInformation:s}){let a=Date.now().toString();return o().setState(({transactions:e})=>{e[a]={transactions:t,status:r,transactionsDisplayInfo:n,interpretedTransactions:{},sessionInformation:s}},!1,{type:"createTransactionsSession",payload:{value:{transactions:t,status:r,transactionsDisplayInfo:n,sessionInformation:s}}}),a}function m({sessionId:t,status:n,errorMessage:r}){o().setState(({transactions:s})=>{if(!s[t])return;let a=p(s[t]).transactionsDisplayInfo??{},e=r||a?.errorMessage;s[t].status=n,s[t].errorMessage=e,s[t].transactionsDisplayInfo={...a,errorMessage:e}},!1,{type:"updateSessionStatus",payload:{value:{sessionId:t,status:n,errorMessage:r}}})}function g({sessionId:t,transaction:n}){o().setState(({transactions:r})=>{let s=r[t]?.transactions;s!=null&&(r[t].transactions=s.map(a=>a.hash===n.hash?{...a,...n??{}}:a))},!1,{type:"updateTransactionStatus",payload:{value:{sessionId:t,transaction:n}}})}var h=()=>{o().setState(({transactions:t,toasts:n})=>{let s=Object.keys(t).filter(e=>{let c=t[e];if(!c)return!1;let{status:i}=c;return!(i==="pending"||i==="signed"||i==="sent")});s.forEach(e=>{delete t[e]});let a=n.transactionToasts.filter(e=>!s.includes(e.toastId));n.transactionToasts=a},!1,{type:"clearCompletedTransactions",payload:{value:null}})};export{d as a,m as b,g as c,h as d};
2
- //# sourceMappingURL=chunk-IEXYINQQ.mjs.map
1
+ import{q as o}from"./chunk-ZJOJQZCC.mjs";import{current as p}from"immer";function d({transactions:t,transactionsDisplayInfo:n,status:r,sessionInformation:s}){let a=Date.now().toString();return o().setState(({transactions:e})=>{e[a]={transactions:t,status:r,transactionsDisplayInfo:n,interpretedTransactions:{},sessionInformation:s}},!1,{type:"createTransactionsSession",payload:{value:{transactions:t,status:r,transactionsDisplayInfo:n,sessionInformation:s}}}),a}function m({sessionId:t,status:n,errorMessage:r}){o().setState(({transactions:s})=>{if(!s[t])return;let a=p(s[t]).transactionsDisplayInfo??{},e=r||a?.errorMessage;s[t].status=n,s[t].errorMessage=e,s[t].transactionsDisplayInfo={...a,errorMessage:e}},!1,{type:"updateSessionStatus",payload:{value:{sessionId:t,status:n,errorMessage:r}}})}function g({sessionId:t,transaction:n}){o().setState(({transactions:r})=>{let s=r[t]?.transactions;s!=null&&(r[t].transactions=s.map(a=>a.hash===n.hash?{...a,...n??{}}:a))},!1,{type:"updateTransactionStatus",payload:{value:{sessionId:t,transaction:n}}})}var h=()=>{o().setState(({transactions:t,toasts:n})=>{let s=Object.keys(t).filter(e=>{let c=t[e];if(!c)return!1;let{status:i}=c;return!(i==="pending"||i==="signed"||i==="sent")});s.forEach(e=>{delete t[e]});let a=n.transactionToasts.filter(e=>!s.includes(e.toastId));n.transactionToasts=a},!1,{type:"clearCompletedTransactions",payload:{value:null}})};export{d as a,m as b,g as c,h as d};
2
+ //# sourceMappingURL=chunk-SNXSD7MF.mjs.map
@@ -1,2 +1,2 @@
1
- import{b as r}from"./chunk-7VHTZYM2.mjs";import{s as e}from"./chunk-QD4CABEY.mjs";var d=s=>{let o=r(e()),t=s??o.apiAddress;return t.endsWith("/")?t.slice(0,-1):t};export{d as a};
2
- //# sourceMappingURL=chunk-TBSRXSFJ.mjs.map
1
+ import{b as r}from"./chunk-7VHTZYM2.mjs";import{s as e}from"./chunk-ZJOJQZCC.mjs";var d=s=>{let o=r(e()),t=s??o.apiAddress;return t.endsWith("/")?t.slice(0,-1):t};export{d as a};
2
+ //# sourceMappingURL=chunk-SS3A7KK2.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-57IMV3XF.mjs";import{a as r}from"./chunk-B2UIPHJ3.mjs";var o=()=>{try{return!r()||!e()?!1:window.self!==window.top}catch{return!0}};export{o as a};
2
- //# sourceMappingURL=chunk-ZHJVRF45.mjs.map
1
+ import{a as e}from"./chunk-476BGZWV.mjs";import{a as r}from"./chunk-B2UIPHJ3.mjs";var o=()=>{try{return!r()||!e()?!1:window.self!==window.top}catch{return!0}};export{o as a};
2
+ //# sourceMappingURL=chunk-TDNZYOQN.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as r}from"./chunk-2TCYFOMD.mjs";import{a as o}from"./chunk-HSF3JATH.mjs";async function p({loginToken:i,extraInfoData:n}){if(i==null||Object.keys(n).length===0)return null;let t=o(String(i)),{timestamp:e,...a}=t?.extraInfo||{};if(!(t&&e!=null))return null;let s={hash:String(t?.blockHash),timestamp:Number(e)};return await r({extraInfo:{...a,...n},expirySeconds:t?.ttl,origin:t?.origin}).initialize({latestBlockInfo:s})}export{p as a};
2
- //# sourceMappingURL=chunk-VZVYNN5W.mjs.map
1
+ import{a as r}from"./chunk-KZKHUGFE.mjs";import{a as o}from"./chunk-HSF3JATH.mjs";async function p({loginToken:i,extraInfoData:n}){if(i==null||Object.keys(n).length===0)return null;let t=o(String(i)),{timestamp:e,...a}=t?.extraInfo||{};if(!(t&&e!=null))return null;let s={hash:String(t?.blockHash),timestamp:Number(e)};return await r({extraInfo:{...a,...n},expirySeconds:t?.ttl,origin:t?.origin}).initialize({latestBlockInfo:s})}export{p as a};
2
+ //# sourceMappingURL=chunk-TSYN7VWE.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-VJ3EQSMI.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-FFGUC7S7.mjs.map
1
+ import{a as e}from"./chunk-D6O5CXIJ.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-U3JV6DJH.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as u}from"./chunk-KKI3K4YH.mjs";import{a as c}from"./chunk-O5PAMBB3.mjs";var l=async({receiver:n,sender:s,tokenId:i})=>{let t=null,r=null;if(!i)return{senderLockedAccount:t,receiverLockedAccount:r};try{let o=(await u({tokenId:i}))?.assets?.lockedAccounts;if(!o)return{senderLockedAccount:t,receiverLockedAccount:r};for(let e in o)if(c(e)&&(s===e&&(t=e),n===e&&(r=e)),c(o[e])&&(s===o[e]&&(t=o[e]),n===o[e]&&(r=o[e])),t&&r)return{senderLockedAccount:t,receiverLockedAccount:r}}catch(a){console.error("Error getting token details",a)}return{senderLockedAccount:t,receiverLockedAccount:r}};export{l as a};
2
- //# sourceMappingURL=chunk-WS7GSQIW.mjs.map
1
+ import{a as u}from"./chunk-VUVEHXGH.mjs";import{a as c}from"./chunk-O5PAMBB3.mjs";var l=async({receiver:n,sender:s,tokenId:i})=>{let t=null,r=null;if(!i)return{senderLockedAccount:t,receiverLockedAccount:r};try{let o=(await u({tokenId:i}))?.assets?.lockedAccounts;if(!o)return{senderLockedAccount:t,receiverLockedAccount:r};for(let e in o)if(c(e)&&(s===e&&(t=e),n===e&&(r=e)),c(o[e])&&(s===o[e]&&(t=o[e]),n===o[e]&&(r=o[e])),t&&r)return{senderLockedAccount:t,receiverLockedAccount:r}}catch(a){console.error("Error getting token details",a)}return{senderLockedAccount:t,receiverLockedAccount:r}};export{l as a};
2
+ //# sourceMappingURL=chunk-UIC4S5TZ.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"./chunk-SOFJNMOQ.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-FMXCAN3M.mjs.map
1
+ import{a}from"./chunk-CDWQSFYM.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-UKJT66VH.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as i}from"./chunk-TBSRXSFJ.mjs";import{a as e}from"./chunk-N56SMVGU.mjs";import{k as c}from"./chunk-PKDR5ERF.mjs";import{a as n}from"./chunk-2JKCBTYK.mjs";var a=({address:r,baseURL:o})=>{let t=i(o),s=`${t}/${n}/${r}?withGuardianInfo=true`;return e.get(s,{baseURL:t,timeout:c})},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-HH6XW3S6.mjs.map
1
+ import{a as i}from"./chunk-SS3A7KK2.mjs";import{a as e}from"./chunk-N56SMVGU.mjs";import{k as c}from"./chunk-PKDR5ERF.mjs";import{a as n}from"./chunk-2JKCBTYK.mjs";var a=({address:r,baseURL:o})=>{let t=i(o),s=`${t}/${n}/${r}?withGuardianInfo=true`;return e.get(s,{baseURL:t,timeout:c})},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-V4LJXYQC.mjs.map
@@ -1,2 +1,2 @@
1
- import{j as a,q as o}from"./chunk-QD4CABEY.mjs";import{f as p}from"./chunk-DA76AK4I.mjs";var d=()=>o().setState(a,!1,{type:"logoutAction",payload:{value:null}}),s=({address:e,providerType:t})=>{o().setState(({account:r,loginInfo:i})=>{r.address=e,r.publicKey=new p(e).toHex(),i&&(i.providerType=t)},!1,{type:"loginAction",payload:{value:{address:e,providerType:t}}})};export{d as a,s as b};
2
- //# sourceMappingURL=chunk-Y3V3YLGE.mjs.map
1
+ import{j as a,q as o}from"./chunk-ZJOJQZCC.mjs";import{f as p}from"./chunk-DA76AK4I.mjs";var d=()=>o().setState(a,!1,{type:"logoutAction",payload:{value:null}}),s=({address:e,providerType:t})=>{o().setState(({account:r,loginInfo:i})=>{r.address=e,r.publicKey=new p(e).toHex(),i&&(i.providerType=t)},!1,{type:"loginAction",payload:{value:{address:e,providerType:t}}})};export{d as a,s as b};
2
+ //# sourceMappingURL=chunk-VBPV3GOM.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as n}from"./chunk-D43LEYIV.mjs";import{a as s}from"./chunk-LJX4MW7B.mjs";import{a as e,b as o}from"./chunk-ZELPFF47.mjs";import{WebviewProvider as d}from"@multiversx/sdk-webview-provider/out/WebviewProvider";var a=class extends n{constructor(r){super(r?.address);this.cancelAction=async()=>{this.provider.cancelAction()};this.signTransactions=async(r,i)=>{if(!this.provider)throw new Error("Provider is not initialized.");try{return await this.provider.signTransactions(r)||[]}catch(t){throw this.cancelAction(),t}};this.signMessage=async r=>{if(!this.provider)throw new Error("Provider is not initialized.");try{return await this.provider.signMessage(r)}catch(i){throw this.cancelAction(),i}};this.provider=d.getInstance({resetStateCallback:()=>{e.localStorage?.clear?.(),e.sessionStorage?.clear?.()}}),this._login=this.provider.login.bind(this.provider)}async init(){return this.initializeAddress(),this.initializeProvider()}logout(){return this.provider.logout()}getType(){return s.webview}getAddress(){throw new Error("Method not implemented.")}setAccount(r){return this.provider.setAccount(r)}isInitialized(){return this.provider.isInitialized()}async initializeProvider(){let r=await this.provider.init(o);return this.address&&this.setAccount({address:this.address}),r}};export{a};
2
- //# sourceMappingURL=chunk-HEZLSKRN.mjs.map
1
+ import{a as n}from"./chunk-MLT5MRG6.mjs";import{a as s}from"./chunk-LJX4MW7B.mjs";import{a as e,b as o}from"./chunk-AYQWPMYV.mjs";import{WebviewProvider as d}from"@multiversx/sdk-webview-provider/out/WebviewProvider";var a=class extends n{constructor(r){super(r?.address);this.cancelAction=async()=>{this.provider.cancelAction()};this.signTransactions=async(r,i)=>{if(!this.provider)throw new Error("Provider is not initialized.");try{return await this.provider.signTransactions(r)||[]}catch(t){throw this.cancelAction(),t}};this.signMessage=async r=>{if(!this.provider)throw new Error("Provider is not initialized.");try{return await this.provider.signMessage(r)}catch(i){throw this.cancelAction(),i}};this.provider=d.getInstance({resetStateCallback:()=>{e.localStorage?.clear?.(),e.sessionStorage?.clear?.()}}),this._login=this.provider.login.bind(this.provider)}async init(){return this.initializeAddress(),this.initializeProvider()}logout(){return this.provider.logout()}getType(){return s.webview}getAddress(){throw new Error("Method not implemented.")}setAccount(r){return this.provider.setAccount(r)}isInitialized(){return this.provider.isInitialized()}async initializeProvider(){let r=await this.provider.init(o);return this.address&&this.setAccount({address:this.address}),r}};export{a};
2
+ //# sourceMappingURL=chunk-VIHKBS2X.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-GILGXF3U.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}get walletConnectData(){return{...this.data}}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-TT5HX75E.mjs.map
1
+ import{a as e}from"./chunk-WAEPXUJW.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}get walletConnectData(){return{...this.data}}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-VPSQTIAR.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-ZELPFF47.mjs";async function i(n){if(!(typeof t.navigator<"u"&&t.navigator.product==="ReactNative"||!t))try{(await import("@multiversx/sdk-dapp-ui")).defineCustomElements(n)}catch(e){console.warn("@multiversx/sdk-dapp-ui not found"+e)}}export{i as a};
2
- //# sourceMappingURL=chunk-RBSY7AZJ.mjs.map
1
+ import{a as t}from"./chunk-AYQWPMYV.mjs";async function i(n){if(!(typeof t.navigator<"u"&&t.navigator.product==="ReactNative"||!t))try{(await import("@multiversx/sdk-dapp-ui")).defineCustomElements(n)}catch(e){console.warn("@multiversx/sdk-dapp-ui not found"+e)}}export{i as a};
2
+ //# sourceMappingURL=chunk-VRMDOPB6.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as r}from"./chunk-O6NZ6Z6B.mjs";import{e}from"./chunk-QNYO7NI5.mjs";var o=class i extends r{constructor(){super({uiDataUpdateEvent:"DATA_UPDATE_SIGN_TRANSACTIONS",uiTag:"mvx-sign-transactions-panel"});this.addressesPerPage=10;this._gasPriceOptionMap={};this.initialData={commonData:{transactionsCount:0,currentIndexToSign:0,egldLabel:"",currentIndex:0,gasPriceOption:0,gasPriceOptions:[],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){a.filter(t=>t!=null).forEach(t=>{let s=t?Number(t.gasPrice):1e9;this.updateGasPriceMap({nonce:Number(t.nonce),gasPriceOption:s,initialGasPrice:s})});let n=Number(a[0]?.gasPrice)||1e9;this.updateCommonData({gasPriceOption:n})}updateGasPriceMap({nonce:a,gasPriceOption:n,initialGasPrice:t}){this._gasPriceOptionMap[a]={...this._gasPriceOptionMap[a],gasPriceOption:n},t&&(this._gasPriceOptionMap[a].initialGasPrice=t)}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,n){switch(a){case"NonFungibleESDT":this.data.nftTransaction=n,this.data.tokenTransaction=null,this.data.sftTransaction=null;break;case"SemiFungibleESDT":this.data.sftTransaction=n,this.data.nftTransaction=null,this.data.tokenTransaction=null;break;default:break}this.notifyDataUpdate()}get currentScreenIndex(){return this.data.commonData.currentIndex}get getGasPriceOptionMap(){return this._gasPriceOptionMap}async setupEventListeners(){this.eventBus&&this.subscribeToEventBus("CLOSE_SIGN_TRANSACTIONS",this.closeUI.bind(this))}};export{o as a};
2
- //# sourceMappingURL=chunk-5JWQUNZY.mjs.map
1
+ import{a as r}from"./chunk-XXRHWR52.mjs";import{e}from"./chunk-QNYO7NI5.mjs";var o=class i extends r{constructor(){super({uiDataUpdateEvent:"DATA_UPDATE_SIGN_TRANSACTIONS",uiTag:"mvx-sign-transactions-panel"});this.addressesPerPage=10;this._gasPriceOptionMap={};this.initialData={commonData:{transactionsCount:0,currentIndexToSign:0,egldLabel:"",currentIndex:0,gasPriceOption:0,gasPriceOptions:[],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){a.filter(t=>t!=null).forEach(t=>{let s=t?Number(t.gasPrice):1e9;this.updateGasPriceMap({nonce:Number(t.nonce),gasPriceOption:s,initialGasPrice:s})});let n=Number(a[0]?.gasPrice)||1e9;this.updateCommonData({gasPriceOption:n})}updateGasPriceMap({nonce:a,gasPriceOption:n,initialGasPrice:t}){this._gasPriceOptionMap[a]={...this._gasPriceOptionMap[a],gasPriceOption:n},t&&(this._gasPriceOptionMap[a].initialGasPrice=t)}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,n){switch(a){case"NonFungibleESDT":this.data.nftTransaction=n,this.data.tokenTransaction=null,this.data.sftTransaction=null;break;case"SemiFungibleESDT":this.data.sftTransaction=n,this.data.nftTransaction=null,this.data.tokenTransaction=null;break;default:break}this.notifyDataUpdate()}get currentScreenIndex(){return this.data.commonData.currentIndex}get getGasPriceOptionMap(){return this._gasPriceOptionMap}async setupEventListeners(){this.eventBus&&this.subscribeToEventBus("CLOSE_SIGN_TRANSACTIONS",this.closeUI.bind(this))}};export{o as a};
2
+ //# sourceMappingURL=chunk-VSM5G4ZH.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-EZIUH4RK.mjs";import{a as p}from"./chunk-PKW4UGR5.mjs";import{a as m}from"./chunk-Y3IXSTCR.mjs";import{a as c}from"./chunk-WFMBEYKX.mjs";import{a as g}from"./chunk-RLD5XV4S.mjs";import{b as a}from"./chunk-HDUHOYDI.mjs";import{f as i}from"./chunk-QD4CABEY.mjs";import{a as d}from"./chunk-LJX4MW7B.mjs";async function E({options:r,config:t,provider:o,login:l}){let n=s.getInstance(),L=g(),u=c({loginToken:r?.token,version:t.version});await m({manager:n,provider:o});let e=await p({manager:n,provider:o,login:l,token:r?.token,explorerAddress:L,authData:u}),{version:f,dataEnabled:T}=t;return i({index:e.addressIndex,loginType:d.ledger}),a({address:e.address,index:e.addressIndex,version:f,hasContractDataEnabled:T}),{address:e.address,signature:e.signature}}export{E as a};
2
- //# sourceMappingURL=chunk-ZX7RZASL.mjs.map
1
+ import{a as s}from"./chunk-C37CZZ7G.mjs";import{a as p}from"./chunk-JSG65RN6.mjs";import{a as m}from"./chunk-XXXUMU4O.mjs";import{a as c}from"./chunk-WFMBEYKX.mjs";import{a as g}from"./chunk-244THUVU.mjs";import{b as a}from"./chunk-OLWNOBIQ.mjs";import{f as i}from"./chunk-ZJOJQZCC.mjs";import{a as d}from"./chunk-LJX4MW7B.mjs";async function E({options:r,config:t,provider:o,login:l}){let n=s.getInstance(),L=g(),u=c({loginToken:r?.token,version:t.version});await m({manager:n,provider:o});let e=await p({manager:n,provider:o,login:l,token:r?.token,explorerAddress:L,authData:u}),{version:f,dataEnabled:T}=t;return i({index:e.addressIndex,loginType:d.ledger}),a({address:e.address,index:e.addressIndex,version:f,hasContractDataEnabled:T}),{address:e.address,signature:e.signature}}export{E as a};
2
+ //# sourceMappingURL=chunk-VSZYA5AR.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as g}from"./chunk-NYZ726DG.mjs";import{b as c}from"./chunk-7VHTZYM2.mjs";import{a as s}from"./chunk-3FXHIV6O.mjs";import{s as o}from"./chunk-QD4CABEY.mjs";import{o as a,u as m}from"./chunk-2JKCBTYK.mjs";async function I({tokenId:n}){let t=c(o()),r={tokenDecimals:Number(t.decimals),tokenLabel:"",tokenImageUrl:""},{isNft:k}=s(n),i=n,p=k?a:m;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-KKI3K4YH.mjs.map
1
+ import{a as g}from"./chunk-NYZ726DG.mjs";import{b as c}from"./chunk-7VHTZYM2.mjs";import{a as s}from"./chunk-3FXHIV6O.mjs";import{s as o}from"./chunk-ZJOJQZCC.mjs";import{o as a,u as m}from"./chunk-2JKCBTYK.mjs";async function I({tokenId:n}){let t=c(o()),r={tokenDecimals:Number(t.decimals),tokenLabel:"",tokenImageUrl:""},{isNft:k}=s(n),i=n,p=k?a:m;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-VUVEHXGH.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"./chunk-4LH5OPJN.mjs";var r=class{constructor({uiDataUpdateEvent:t,uiTag:e}){this.eventBus=null;this.uiElement=null;this.isCreatingElement=!1;this.eventHandlers=new Map;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);let s=this.eventHandlers.get(t)||[];s.push(e),this.eventHandlers.set(t,s)}}notifyDataUpdate(){this.eventBus?.publish(this.uiDataUpdateEvent,this.data)}clearEventHandlers(t=Array.from(this.unsubscribeFunctions.keys())){t.forEach(e=>{(this.unsubscribeFunctions.get(e)||[]).forEach(n=>n()),this.unsubscribeFunctions.delete(e),this.eventHandlers.delete(e)})}destroy(){this.unsubscribeFunctions.forEach(t=>t.forEach(e=>e())),this.unsubscribeFunctions.clear(),this.eventHandlers.clear(),this.eventBus=null,this.uiElement?.remove?.(),this.uiElement=null}getInitialData(){return this.initialData}getEventHandlers(t){return this.eventHandlers.get(t)||[]}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 a.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{r as a};
2
- //# sourceMappingURL=chunk-GILGXF3U.mjs.map
1
+ import{a}from"./chunk-NAEHROA2.mjs";var r=class{constructor({uiDataUpdateEvent:t,uiTag:e}){this.eventBus=null;this.uiElement=null;this.isCreatingElement=!1;this.eventHandlers=new Map;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);let s=this.eventHandlers.get(t)||[];s.push(e),this.eventHandlers.set(t,s)}}notifyDataUpdate(){this.eventBus?.publish(this.uiDataUpdateEvent,this.data)}clearEventHandlers(t=Array.from(this.unsubscribeFunctions.keys())){t.forEach(e=>{(this.unsubscribeFunctions.get(e)||[]).forEach(n=>n()),this.unsubscribeFunctions.delete(e),this.eventHandlers.delete(e)})}destroy(){this.unsubscribeFunctions.forEach(t=>t.forEach(e=>e())),this.unsubscribeFunctions.clear(),this.eventHandlers.clear(),this.eventBus=null,this.uiElement?.remove?.(),this.uiElement=null}getInitialData(){return this.initialData}getEventHandlers(t){return this.eventHandlers.get(t)||[]}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 a.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{r as a};
2
+ //# sourceMappingURL=chunk-WAEPXUJW.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-TBSRXSFJ.mjs";import{k as r}from"./chunk-PKDR5ERF.mjs";import{a as o}from"./chunk-2JKCBTYK.mjs";import m from"axios";async function c({addressToVerify:s,baseURL:a}){let e=t(a),{data:i}=await m.get(`${e}/${o}/${s}`,{timeout:r});return i}export{c as a};
2
- //# sourceMappingURL=chunk-PLZG3X3K.mjs.map
1
+ import{a as t}from"./chunk-SS3A7KK2.mjs";import{k as r}from"./chunk-PKDR5ERF.mjs";import{a as o}from"./chunk-2JKCBTYK.mjs";import m from"axios";async function c({addressToVerify:s,baseURL:a}){let e=t(a),{data:i}=await m.get(`${e}/${o}/${s}`,{timeout:r});return i}export{c as a};
2
+ //# sourceMappingURL=chunk-WJTMUYTI.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as u}from"./chunk-2TCYFOMD.mjs";import{a as g}from"./chunk-HSF3JATH.mjs";import l from"lodash.isequal";async function C({loginData:f,nativeAuthConfig:r,loginToken:s}){let{address:m,signature:d,...n}=f,a=Object.keys(n).reduce((i,t)=>{let o=["multisig","impersonate"].includes(t)&&n[t]!=null?String(n[t]):null;return o!=null&&(i[t]=o.toString()),i},{}),e={...r};if(Object.keys(a).length>0&&(e.extraInfo=a),!l(r,e)){let i=g(s);return await u(e).initialize({noCache:!0,latestBlockInfo:{hash:i?.blockHash??"",timestamp:i?.extraInfo?.timestamp??0}})}return s}export{C as a};
2
- //# sourceMappingURL=chunk-MKBRFW6F.mjs.map
1
+ import{a as u}from"./chunk-KZKHUGFE.mjs";import{a as g}from"./chunk-HSF3JATH.mjs";import l from"lodash.isequal";async function C({loginData:f,nativeAuthConfig:r,loginToken:s}){let{address:m,signature:d,...n}=f,a=Object.keys(n).reduce((i,t)=>{let o=["multisig","impersonate"].includes(t)&&n[t]!=null?String(n[t]):null;return o!=null&&(i[t]=o.toString()),i},{}),e={...r};if(Object.keys(a).length>0&&(e.extraInfo=a),!l(r,e)){let i=g(s);return await u(e).initialize({noCache:!0,latestBlockInfo:{hash:i?.blockHash??"",timestamp:i?.extraInfo?.timestamp??0}})}return s}export{C as a};
2
+ //# sourceMappingURL=chunk-WOPE4NY2.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as U}from"./chunk-RLD5XV4S.mjs";import{a as B}from"./chunk-GBDHEWNQ.mjs";import{a as $}from"./chunk-TP65TGJH.mjs";import{a as _}from"./chunk-CB4IL76J.mjs";import{a as j}from"./chunk-7Z7IX367.mjs";import{a as z}from"./chunk-VCQBYNNS.mjs";import{a as V}from"./chunk-RBZC4PEU.mjs";import{a as R}from"./chunk-OMBZCVQZ.mjs";import{l as w}from"./chunk-ULUUW4MT.mjs";import{a as M}from"./chunk-YGI3KXMZ.mjs";import{a as v}from"./chunk-KKI3K4YH.mjs";import{a as O}from"./chunk-RYIJWGFA.mjs";import{k as x}from"./chunk-QNYO7NI5.mjs";import{a as A}from"./chunk-YJCTRUJT.mjs";import{a as h,c as G,f}from"./chunk-PJWJZHIS.mjs";import{a as L}from"./chunk-2JKCBTYK.mjs";import{c as F}from"./chunk-PWAP64SN.mjs";import{a as C}from"./chunk-ZELPFF47.mjs";import{BigNumber as St}from"bignumber.js";async function qt({allTransactions:u,currentScreenIndex:s,egldLabel:n,network:o,gasPriceData:T,price:S,address:m,username:q,shard:H,signedIndexes:e,parsedTransactionsByDataField:K}){let c=u[s],W=c?.transaction?.sender.toString(),p=c?.transaction,i=p?.toPlainObject(),D=null,y=null,t=await $({egldLabel:n,sender:W,apiAddress:o.apiAddress,address:m,parsedTransactionsByDataField:K})(c),d=!t?.transactionTokenInfo?.tokenId,{tokenId:g,nonce:l,amount:I=""}=t?.transactionTokenInfo??{},J=g&&l&&l.length>0?`${g}-${l}`:g,Q=await v({tokenId:J}),{esdtPrice:X,tokenDecimals:Y,type:r,identifier:a,tokenImageUrl:Z}=Q;if(r==="SemiFungibleESDT"||r==="NonFungibleESDT")y={type:r,identifier:a,amount:I,imageURL:Z};else{let E=({addCommas:Tt})=>f({input:d?p.value.toString():I,decimals:d?Number(o.decimals):Y,digits:Number(o.digits),addCommas:Tt}),gt=E({addCommas:!0}),lt=E({addCommas:!1}),ft=Number(d?S:X),ut=M({amount:lt,usd:ft,addEqualSign:!0});D={identifier:(a===x?n:a)??n,amount:gt,usdValue:ut}}let{feeLimitFormatted:tt,feeInFiatLimit:nt}=R({transaction:p,price:S}),ot=B({shard:H,initialGasPrice:T.initialGasPrice,transaction:i,gasStationMetadata:o.gasStationMetadata}),{gasPriceOption:k}=T,et=w().getType(),it=O(et),N=u.length,rt=e.length>0?e[e.length-1]+1:0,P=F(i?.data??""),b=V(t?.transactionTokenInfo),at=_({data:P,identifier:a,highlight:b}),st=U(),mt=A({to:`/${L}/${m}`,explorerAddress:st}),ct=N===1||t?.needsSigning&&!e.includes(s),pt=f({input:k.toString(),decimals:G,addCommas:!0,digits:h}),dt=new St(i.gasLimit).toFormat({decimalSeparator:".",groupSeparator:",",groupSize:3});return{commonData:{receiver:i.receiver.toString(),data:P,decodedData:at,gasPrice:pt,gasLimit:dt,explorerLink:mt,gasPriceOption:k,gasPriceOptions:ot,egldLabel:n,tokenType:j(r),feeLimit:tt,feeInFiatLimit:nt,transactionsCount:N,currentIndex:s,currentIndexToSign:rt,highlight:b,scCall:z(t?.transactionTokenInfo),needsSigning:ct,isEditable:t?.needsSigning,providerName:it,address:m,username:q,origin:C.location?.origin},tokenTransaction:D,fungibleTransaction:y}}export{qt as a};
2
- //# sourceMappingURL=chunk-A46HPE6M.mjs.map
1
+ import{a as U}from"./chunk-244THUVU.mjs";import{a as B}from"./chunk-GBDHEWNQ.mjs";import{a as $}from"./chunk-A4W6PM3I.mjs";import{a as _}from"./chunk-CB4IL76J.mjs";import{a as j}from"./chunk-7Z7IX367.mjs";import{a as z}from"./chunk-VCQBYNNS.mjs";import{a as V}from"./chunk-RBZC4PEU.mjs";import{a as R}from"./chunk-OMBZCVQZ.mjs";import{l as w}from"./chunk-OPVLMQIS.mjs";import{a as M}from"./chunk-YGI3KXMZ.mjs";import{a as v}from"./chunk-VUVEHXGH.mjs";import{a as O}from"./chunk-RYIJWGFA.mjs";import{k as x}from"./chunk-QNYO7NI5.mjs";import{a as A}from"./chunk-YJCTRUJT.mjs";import{a as h,c as G,f}from"./chunk-PJWJZHIS.mjs";import{a as L}from"./chunk-2JKCBTYK.mjs";import{c as F}from"./chunk-PWAP64SN.mjs";import{a as C}from"./chunk-AYQWPMYV.mjs";import{BigNumber as St}from"bignumber.js";async function qt({allTransactions:u,currentScreenIndex:s,egldLabel:n,network:o,gasPriceData:T,price:S,address:m,username:q,shard:H,signedIndexes:e,parsedTransactionsByDataField:K}){let c=u[s],W=c?.transaction?.sender.toString(),p=c?.transaction,i=p?.toPlainObject(),D=null,y=null,t=await $({egldLabel:n,sender:W,apiAddress:o.apiAddress,address:m,parsedTransactionsByDataField:K})(c),d=!t?.transactionTokenInfo?.tokenId,{tokenId:g,nonce:l,amount:I=""}=t?.transactionTokenInfo??{},J=g&&l&&l.length>0?`${g}-${l}`:g,Q=await v({tokenId:J}),{esdtPrice:X,tokenDecimals:Y,type:r,identifier:a,tokenImageUrl:Z}=Q;if(r==="SemiFungibleESDT"||r==="NonFungibleESDT")y={type:r,identifier:a,amount:I,imageURL:Z};else{let E=({addCommas:Tt})=>f({input:d?p.value.toString():I,decimals:d?Number(o.decimals):Y,digits:Number(o.digits),addCommas:Tt}),gt=E({addCommas:!0}),lt=E({addCommas:!1}),ft=Number(d?S:X),ut=M({amount:lt,usd:ft,addEqualSign:!0});D={identifier:(a===x?n:a)??n,amount:gt,usdValue:ut}}let{feeLimitFormatted:tt,feeInFiatLimit:nt}=R({transaction:p,price:S}),ot=B({shard:H,initialGasPrice:T.initialGasPrice,transaction:i,gasStationMetadata:o.gasStationMetadata}),{gasPriceOption:k}=T,et=w().getType(),it=O(et),N=u.length,rt=e.length>0?e[e.length-1]+1:0,P=F(i?.data??""),b=V(t?.transactionTokenInfo),at=_({data:P,identifier:a,highlight:b}),st=U(),mt=A({to:`/${L}/${m}`,explorerAddress:st}),ct=N===1||t?.needsSigning&&!e.includes(s),pt=f({input:k.toString(),decimals:G,addCommas:!0,digits:h}),dt=new St(i.gasLimit).toFormat({decimalSeparator:".",groupSeparator:",",groupSize:3});return{commonData:{receiver:i.receiver.toString(),data:P,decodedData:at,gasPrice:pt,gasLimit:dt,explorerLink:mt,gasPriceOption:k,gasPriceOptions:ot,egldLabel:n,tokenType:j(r),feeLimit:tt,feeInFiatLimit:nt,transactionsCount:N,currentIndex:s,currentIndexToSign:rt,highlight:b,scCall:z(t?.transactionTokenInfo),needsSigning:ct,isEditable:t?.needsSigning,providerName:it,address:m,username:q,origin:C.location?.origin},tokenTransaction:D,fungibleTransaction:y}}export{qt as a};
2
+ //# sourceMappingURL=chunk-X4CUC3IQ.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as r}from"./chunk-55W25Q35.mjs";import{a as s}from"./chunk-YG3D4LLK.mjs";import o from"lodash.isempty";var e=async({transactionsSessions:t})=>{if(o(t))return[];let i=r(t);return s({transactions:i})};export{e as a};
2
- //# sourceMappingURL=chunk-WFF2FARS.mjs.map
1
+ import{a as r}from"./chunk-55W25Q35.mjs";import{a as s}from"./chunk-2YUHHXLR.mjs";import o from"lodash.isempty";var e=async({transactionsSessions:t})=>{if(o(t))return[];let i=r(t);return s({transactions:i})};export{e as a};
2
+ //# sourceMappingURL=chunk-XJL3OI7L.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as n}from"./chunk-GILGXF3U.mjs";import{a as t}from"./chunk-5YCYE5MA.mjs";var i=class extends n{constructor({uiDataUpdateEvent:e,uiTag:s}){super({uiDataUpdateEvent:e,uiTag:s});this.isOpen=!1;this.data=this.getInitialData()}async openUI(){this.isOpen&&this.uiElement||(await super.init(),this.setIsSidePanelOpen(!0))}destroy(){if(this.setIsSidePanelOpen(!1),this.uiElement?.closeWithAnimation){this.uiElement?.closeWithAnimation?.().finally(()=>{super.destroy()});return}super.destroy()}closeUI(){this.resetData(),this.destroy()}setIsSidePanelOpen(e){this.isOpen=e,t(e)}};export{i as a};
2
- //# sourceMappingURL=chunk-O6NZ6Z6B.mjs.map
1
+ import{a as n}from"./chunk-WAEPXUJW.mjs";import{a as t}from"./chunk-O3S3N3Q7.mjs";var i=class extends n{constructor({uiDataUpdateEvent:e,uiTag:s}){super({uiDataUpdateEvent:e,uiTag:s});this.isOpen=!1;this.data=this.getInitialData()}async openUI(){this.isOpen&&this.uiElement||(await super.init(),this.setIsSidePanelOpen(!0))}destroy(){if(this.setIsSidePanelOpen(!1),this.uiElement?.closeWithAnimation){this.uiElement?.closeWithAnimation?.().finally(()=>{super.destroy()});return}super.destroy()}closeUI(){this.resetData(),this.destroy()}setIsSidePanelOpen(e){this.isOpen=e,t(e)}};export{i as a};
2
+ //# sourceMappingURL=chunk-XXRHWR52.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as I}from"./chunk-ATYZKVD3.mjs";import{a as h}from"./chunk-EFJCWATU.mjs";import{a as x}from"./chunk-IRT7DVNX.mjs";import{a as w}from"./chunk-YGI3KXMZ.mjs";import{f as g}from"./chunk-PJWJZHIS.mjs";import{a as f,f as b}from"./chunk-DA76AK4I.mjs";import y from"bignumber.js";var M=async({manager:e,provider:u})=>{let L=new f;if(!e||!u)throw new Error("Provider is not initialized.");let{network:l}=h(),s=e.getAccountScreenData()?.startIndex||0,r=e.getAllAccounts(),a=await I({baseURL:l.apiAddress}),A=o=>o.index>=s&&o.index<s+e.addressesPerPage,O=r.reduce((o,n)=>Object.assign(o,{[n.index]:n}),{}),p=r.filter(A),P=!!O[s];if(e.updateAccountScreen({isLoading:!P}),p.length>0){e.updateAccountScreen({accounts:p});return}try{let o=Math.floor(s/e.addressesPerPage),n=await u.getAccounts(o,e.addressesPerPage),S=n.map((t,c)=>{let i=L.getShardOfAddress(b.newFromBech32(t));return{address:t,balance:"...",index:c+s,shard:i}}),j=[...r,...S],B=n.map(t=>x({address:t,baseURL:l.apiAddress})),U=await Promise.all(B),d=j.reduce((t,c)=>Object.assign(t,{[c.address]:c}),{});U.forEach(t=>{if(!t||!a||!a.price)return;let c=new y(t.balance),i=c.dividedBy(y(10).pow(18)).toFormat(4).toString();if(c.isNaN())return;let N=w({amount:g({input:t.balance}),usd:a?.price});d[t.address].balance=i,d[t.address].usdValue=N});let m=Object.values(d).sort((t,c)=>t.index-c.index),E=m.filter(A);e.updateAllAccounts(m),e.updateAccountScreen({accounts:E,isLoading:!1})}catch(o){console.error("Failed to fetch accounts:",o)}};export{M as a};
2
+ //# sourceMappingURL=chunk-XXXUMU4O.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/updateAccountsList/updateAccountsList.ts"],
4
+ "sourcesContent": ["import BigNumber from 'bignumber.js';\n\nimport { getEconomics } from 'apiCalls/economics/getEconomics';\nimport { Address, AddressComputer } from 'lib/sdkCore';\nimport { formatAmount } from 'lib/sdkDappUtils';\nimport { getNetworkConfig } from 'methods/network/getNetworkConfig';\nimport { ProviderErrorsEnum } from 'types/provider.types';\nimport { fetchAccount } from 'utils/account/fetchAccount';\nimport { getUsdValue } from 'utils/operations/getUsdValue';\n\nimport {\n IUpdateAccountsList,\n UpdateAccountObjectType\n} from './updateAccountsList.types';\nimport { ILedgerAccount } from '../../../../types/ledger.types';\n\n/**\n * Updates the list of accounts and fetches their balances.\n *\n * This function performs the following steps:\n * 1. Checks if the manager and provider are initialized; if not, throws an error.\n * 2. Retrieves the starting index for pagination and the current list of accounts.\n * 3. Checks if there is already data for the current page to avoid unnecessary fetching.\n * 4. If no data is present, it fetches the accounts from the wallet provider.\n * 5. Updates the state manager with the new account data and their balances.\n * 6. Handles errors by reverting to existing accounts and logging the error.\n */\nexport const updateAccountsList = async ({\n manager,\n provider\n}: IUpdateAccountsList) => {\n const addressComputer = new AddressComputer();\n if (!manager || !provider) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n const { network } = getNetworkConfig();\n const startIndex = manager.getAccountScreenData()?.startIndex || 0;\n const allAccounts = manager.getAllAccounts();\n const economics = await getEconomics({ baseURL: network.apiAddress });\n\n const filterByStartIndexRange = (account: ILedgerAccount) =>\n account.index >= startIndex &&\n account.index < startIndex + manager.addressesPerPage;\n\n const allAccountsObject = allAccounts.reduce(\n (accountsObject: UpdateAccountObjectType, account) =>\n Object.assign(accountsObject, { [account.index]: account }),\n {}\n );\n\n const currentAccounts = allAccounts.filter(filterByStartIndexRange);\n const isStartIndexInAccounts = Boolean(allAccountsObject[startIndex]);\n\n manager.updateAccountScreen({\n isLoading: !isStartIndexInAccounts\n });\n\n if (currentAccounts.length > 0) {\n manager.updateAccountScreen({ accounts: currentAccounts });\n return;\n }\n\n try {\n const page = Math.floor(startIndex / manager.addressesPerPage);\n\n const accountsArray = await provider.getAccounts(\n page,\n manager.addressesPerPage\n );\n\n const accountsWithBalance = accountsArray.map(\n (address, accountIindex): ILedgerAccount => {\n const shard = addressComputer.getShardOfAddress(\n Address.newFromBech32(address)\n );\n\n return {\n address,\n balance: '...',\n index: accountIindex + startIndex,\n shard\n };\n }\n );\n\n const newAllAccounts = [...allAccounts, ...accountsWithBalance];\n const balancePromises = accountsArray.map((address) =>\n fetchAccount({ address, baseURL: network.apiAddress })\n );\n\n const balances = await Promise.all(balancePromises);\n const newAllAccountsObject = newAllAccounts.reduce(\n (accountsObject: UpdateAccountObjectType, account) =>\n Object.assign(accountsObject, { [account.address]: account }),\n {}\n );\n\n balances.forEach((account) => {\n if (!account || !economics || !economics.price) {\n return;\n }\n\n const balanceBigNumber = new BigNumber(account.balance);\n const formattedBalance = balanceBigNumber\n .dividedBy(BigNumber(10).pow(18))\n .toFormat(4)\n .toString();\n\n if (balanceBigNumber.isNaN()) {\n return;\n }\n\n const usdValue = getUsdValue({\n amount: formatAmount({ input: account.balance }),\n usd: economics?.price\n });\n\n newAllAccountsObject[account.address].balance = formattedBalance;\n newAllAccountsObject[account.address].usdValue = usdValue;\n });\n\n const newAllAccountsArray = Object.values(newAllAccountsObject).sort(\n (alpha, beta) => alpha.index - beta.index\n );\n\n const accountsScreenArray = newAllAccountsArray.filter(\n filterByStartIndexRange\n );\n\n manager.updateAllAccounts(newAllAccountsArray);\n manager.updateAccountScreen({\n accounts: accountsScreenArray,\n isLoading: false\n });\n } catch (error) {\n console.error('Failed to fetch accounts:', error);\n }\n};\n"],
5
+ "mappings": "6PAAA,OAAOA,MAAe,eA2Bf,IAAMC,EAAqB,MAAO,CACvC,QAAAC,EACA,SAAAC,CACF,IAA2B,CACzB,IAAMC,EAAkB,IAAIC,EAC5B,GAAI,CAACH,GAAW,CAACC,EACf,MAAM,IAAI,oCAAuC,EAGnD,GAAM,CAAE,QAAAG,CAAQ,EAAIC,EAAiB,EAC/BC,EAAaN,EAAQ,qBAAqB,GAAG,YAAc,EAC3DO,EAAcP,EAAQ,eAAe,EACrCQ,EAAY,MAAMC,EAAa,CAAE,QAASL,EAAQ,UAAW,CAAC,EAE9DM,EAA2BC,GAC/BA,EAAQ,OAASL,GACjBK,EAAQ,MAAQL,EAAaN,EAAQ,iBAEjCY,EAAoBL,EAAY,OACpC,CAACM,EAAyCF,IACxC,OAAO,OAAOE,EAAgB,CAAE,CAACF,EAAQ,KAAK,EAAGA,CAAQ,CAAC,EAC5D,CAAC,CACH,EAEMG,EAAkBP,EAAY,OAAOG,CAAuB,EAC5DK,EAAyB,EAAQH,EAAkBN,CAAU,EAMnE,GAJAN,EAAQ,oBAAoB,CAC1B,UAAW,CAACe,CACd,CAAC,EAEGD,EAAgB,OAAS,EAAG,CAC9Bd,EAAQ,oBAAoB,CAAE,SAAUc,CAAgB,CAAC,EACzD,MACF,CAEA,GAAI,CACF,IAAME,EAAO,KAAK,MAAMV,EAAaN,EAAQ,gBAAgB,EAEvDiB,EAAgB,MAAMhB,EAAS,YACnCe,EACAhB,EAAQ,gBACV,EAEMkB,EAAsBD,EAAc,IACxC,CAACE,EAASC,IAAkC,CAC1C,IAAMC,EAAQnB,EAAgB,kBAC5BoB,EAAQ,cAAcH,CAAO,CAC/B,EAEA,MAAO,CACL,QAAAA,EACA,QAAS,MACT,MAAOC,EAAgBd,EACvB,MAAAe,CACF,CACF,CACF,EAEME,EAAiB,CAAC,GAAGhB,EAAa,GAAGW,CAAmB,EACxDM,EAAkBP,EAAc,IAAKE,GACzCM,EAAa,CAAE,QAAAN,EAAS,QAASf,EAAQ,UAAW,CAAC,CACvD,EAEMsB,EAAW,MAAM,QAAQ,IAAIF,CAAe,EAC5CG,EAAuBJ,EAAe,OAC1C,CAACV,EAAyCF,IACxC,OAAO,OAAOE,EAAgB,CAAE,CAACF,EAAQ,OAAO,EAAGA,CAAQ,CAAC,EAC9D,CAAC,CACH,EAEAe,EAAS,QAASf,GAAY,CAC5B,GAAI,CAACA,GAAW,CAACH,GAAa,CAACA,EAAU,MACvC,OAGF,IAAMoB,EAAmB,IAAIC,EAAUlB,EAAQ,OAAO,EAChDmB,EAAmBF,EACtB,UAAUC,EAAU,EAAE,EAAE,IAAI,EAAE,CAAC,EAC/B,SAAS,CAAC,EACV,SAAS,EAEZ,GAAID,EAAiB,MAAM,EACzB,OAGF,IAAMG,EAAWC,EAAY,CAC3B,OAAQC,EAAa,CAAE,MAAOtB,EAAQ,OAAQ,CAAC,EAC/C,IAAKH,GAAW,KAClB,CAAC,EAEDmB,EAAqBhB,EAAQ,OAAO,EAAE,QAAUmB,EAChDH,EAAqBhB,EAAQ,OAAO,EAAE,SAAWoB,CACnD,CAAC,EAED,IAAMG,EAAsB,OAAO,OAAOP,CAAoB,EAAE,KAC9D,CAACQ,EAAOC,IAASD,EAAM,MAAQC,EAAK,KACtC,EAEMC,EAAsBH,EAAoB,OAC9CxB,CACF,EAEAV,EAAQ,kBAAkBkC,CAAmB,EAC7ClC,EAAQ,oBAAoB,CAC1B,SAAUqC,EACV,UAAW,EACb,CAAC,CACH,OAASC,EAAO,CACd,QAAQ,MAAM,4BAA6BA,CAAK,CAClD,CACF",
6
+ "names": ["BigNumber", "updateAccountsList", "manager", "provider", "addressComputer", "AddressComputer", "network", "getNetworkConfig", "startIndex", "allAccounts", "economics", "getEconomics", "filterByStartIndexRange", "account", "allAccountsObject", "accountsObject", "currentAccounts", "isStartIndexInAccounts", "page", "accountsArray", "accountsWithBalance", "address", "accountIindex", "shard", "Address", "newAllAccounts", "balancePromises", "fetchAccount", "balances", "newAllAccountsObject", "balanceBigNumber", "BigNumber", "formattedBalance", "usdValue", "getUsdValue", "formatAmount", "newAllAccountsArray", "alpha", "beta", "accountsScreenArray", "error"]
7
+ }
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-CCD7PUHB.mjs";import{a as S}from"./chunk-EAJBSX6Y.mjs";import{c as r,d as a}from"./chunk-M6MN4RXG.mjs";import{s as e}from"./chunk-QD4CABEY.mjs";import{a as n}from"./chunk-FK6DWWZF.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-SUKYJQTV.mjs.map
1
+ import{a as s}from"./chunk-CCD7PUHB.mjs";import{a as S}from"./chunk-EAJBSX6Y.mjs";import{c as r,d as a}from"./chunk-M6MN4RXG.mjs";import{s as e}from"./chunk-ZJOJQZCC.mjs";import{a as n}from"./chunk-FK6DWWZF.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-YIH3FJB4.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as T}from"./chunk-Q2Q4XN4M.mjs";import{b as u}from"./chunk-IONBKMFW.mjs";import{d as l,e as m}from"./chunk-HDUHOYDI.mjs";import{b as a}from"./chunk-7VHTZYM2.mjs";import{q as r}from"./chunk-QD4CABEY.mjs";import{b as t}from"./chunk-GGBMHKR4.mjs";import{io as S}from"socket.io-client";var w=3e3,A=3,g=500,E=500,f="batchUpdated",p="connect",N="connect_error",I="disconnect";async function M(i){let{apiAddress:b,websocketUrl:k}=a(r().getState());if(!i)throw new Error("Websocket could not be initialized: address missing");let c=null,s=null,o=e=>{t.status=e,u(e)},d=e=>{c&&clearTimeout(c),c=setTimeout(()=>{l(e)},E)},C=e=>{s&&clearTimeout(s),s=setTimeout(()=>{m(e)},E)},W=()=>{let e=t.instance;e&&(e.off(N),e.off(p),e.off(f),e.off(I),e.close(),console.log("Websocket disconnected.")),o("not_initialized"),t.instance=null,c&&clearTimeout(c),s&&clearTimeout(s)},y=async()=>{o("pending");let e="";try{e=k??await T(b)}catch(n){throw console.error("Failed to get websocket url:",n),o("not_initialized"),n}if(!e){o("not_initialized");return}t.instance=S(e,{forceNew:!0,reconnection:!0,reconnectionAttempts:A,reconnectionDelay:g,timeout:w,query:{address:i}}),t.instance.onAny(d),t.instance.on(f,C),t.instance.on(p,()=>{console.log("Websocket connected."),o("completed")}),t.instance.on(N,n=>{console.warn("Websocket connect error: ",n.message)}),t.instance.on(I,n=>{console.warn("Websocket disconnected: ",n),o("pending")})};return t.status==="not_initialized"&&!t.instance?.active&&await y(),{closeConnection:W}}export{M as a};
2
- //# sourceMappingURL=chunk-M6O2JENG.mjs.map
1
+ import{a as T}from"./chunk-Q2Q4XN4M.mjs";import{b as u}from"./chunk-DO5KNMAG.mjs";import{d as l,e as m}from"./chunk-OLWNOBIQ.mjs";import{b as a}from"./chunk-7VHTZYM2.mjs";import{q as r}from"./chunk-ZJOJQZCC.mjs";import{b as t}from"./chunk-GGBMHKR4.mjs";import{io as S}from"socket.io-client";var w=3e3,A=3,g=500,E=500,f="batchUpdated",p="connect",N="connect_error",I="disconnect";async function M(i){let{apiAddress:b,websocketUrl:k}=a(r().getState());if(!i)throw new Error("Websocket could not be initialized: address missing");let c=null,s=null,o=e=>{t.status=e,u(e)},d=e=>{c&&clearTimeout(c),c=setTimeout(()=>{l(e)},E)},C=e=>{s&&clearTimeout(s),s=setTimeout(()=>{m(e)},E)},W=()=>{let e=t.instance;e&&(e.off(N),e.off(p),e.off(f),e.off(I),e.close(),console.log("Websocket disconnected.")),o("not_initialized"),t.instance=null,c&&clearTimeout(c),s&&clearTimeout(s)},y=async()=>{o("pending");let e="";try{e=k??await T(b)}catch(n){throw console.error("Failed to get websocket url:",n),o("not_initialized"),n}if(!e){o("not_initialized");return}t.instance=S(e,{forceNew:!0,reconnection:!0,reconnectionAttempts:A,reconnectionDelay:g,timeout:w,query:{address:i}}),t.instance.onAny(d),t.instance.on(f,C),t.instance.on(p,()=>{console.log("Websocket connected."),o("completed")}),t.instance.on(N,n=>{console.warn("Websocket connect error: ",n.message)}),t.instance.on(I,n=>{console.warn("Websocket disconnected: ",n),o("pending")})};return t.status==="not_initialized"&&!t.instance?.active&&await y(),{closeConnection:W}}export{M as a};
2
+ //# sourceMappingURL=chunk-YQBCROZN.mjs.map
@@ -0,0 +1,2 @@
1
+ import{b as r}from"./chunk-UTWIKUIK.mjs";import{s as t}from"./chunk-ZJOJQZCC.mjs";var i=(e,o)=>r(`transaction-${e}`)(o??t())??null;export{i as a};
2
+ //# sourceMappingURL=chunk-YXHYT7CA.mjs.map
@@ -1,2 +1,2 @@
1
- import{b as p,f as l}from"./chunk-FK6DWWZF.mjs";import{f as s}from"./chunk-VNLGNNIL.mjs";import{b as x}from"./chunk-A7FTKX2A.mjs";import{a as m,b as c}from"./chunk-RIPIZH54.mjs";import{a as T}from"./chunk-2DNGCNYM.mjs";import{a as f,b as g}from"./chunk-M7BM6QPB.mjs";import{a as L}from"./chunk-ONT6BGYB.mjs";import{a as d,b as y}from"./chunk-NLRDRI7Q.mjs";import{a as u,b as S}from"./chunk-VKEESSBI.mjs";import{a as I}from"./chunk-LGIXBYM3.mjs";import{a as k}from"./chunk-KRWR77QE.mjs";import{a as v}from"./chunk-NB7A4C7L.mjs";import{f as a}from"./chunk-DA76AK4I.mjs";import{createJSONStorage as O,devtools as V,persist as h}from"zustand/middleware";import{immer as N}from"zustand/middleware/immer";import{createStore as J}from"zustand/vanilla";var A=e=>{e.account=m,e.loginInfo=f,e.transactions=d,e.toasts=u};function H(){return new Date().setHours(new Date().getHours()+24)}function w(e){if(e==null){E();return}b(e)}var C=e=>{let t=l(e),r=s(e),{address:i,publicKey:D}=p(e);if(i&&D!==new a(i).toHex()&&A(e),!t)return;if(r==null){w(H());return}let P=Date.now();r-P<0&&(w(null),o().setState(A,!1,{type:"logoutMiddleware",payload:{value:null}}))};var M=(e,t)=>{C(e)};var W=e=>{let t=J(V(h(N((...r)=>({network:T(...r),account:c(...r),loginInfo:g(...r),config:L(...r),transactions:y(...r),toasts:S(...r),cache:x(...r),ui:v(...r)})),{name:"sdk-dapp-store",storage:O(e)}),{name:"sdk-dapp"}));return t.subscribe(M),t},n,z=e=>{n=e},o=()=>(n||z(W(()=>new k)),n),Se=(e=I)=>{let t=W(e);return z(t),t},de=()=>o().getState();var Le=e=>o().setState(({loginInfo:t})=>{t.providerType=e},!1,{type:"setProviderType",payload:{value:e}}),Te=e=>o().setState(({loginInfo:t})=>{t.tokenLogin=e},!1,{type:"setTokenLogin",payload:{value:e}}),ve=e=>o().setState(({loginInfo:t})=>{if(t.tokenLogin!=null){t.tokenLogin.loginToken=e;return}t.tokenLogin={loginToken:e}},!1,{type:"setLoginToken",payload:{value:e}}),Ie=e=>o().setState(({loginInfo:t})=>{t?.tokenLogin!=null&&(t.tokenLogin.signature=e)},!1,{type:"setTokenLoginSignature",payload:{value:e}}),ke=e=>o().setState(({loginInfo:t})=>{t.walletConnectLogin=e},!1,{type:"setWalletConnectLogin",payload:{value:e}}),Ae=e=>o().setState(({loginInfo:t})=>{t.ledgerLogin=e},!1,{type:"setLedgerLogin",payload:{value:e}}),we=e=>o().setState(({loginInfo:t})=>{t.isWalletConnectV2Initialized=e},!1,{type:"setIsWalletConnectV2Initialized",payload:{value:e}}),E=()=>o().setState(({loginInfo:e})=>{e.loginExpiresAt=null},!1,{type:"removeLoginExpiresAt",payload:{value:null}}),b=e=>o().setState(({loginInfo:t})=>{t.loginExpiresAt=e},!1,{type:"addLoginExpiresAt",payload:{value:e}});export{Le as a,Te as b,ve as c,Ie as d,ke as e,Ae as f,we as g,E as h,b as i,A as j,H as k,w as l,C as m,M as n,W as o,z as p,o as q,Se as r,de as s};
2
- //# sourceMappingURL=chunk-QD4CABEY.mjs.map
1
+ import{b as p,f as l}from"./chunk-FK6DWWZF.mjs";import{f as s}from"./chunk-VNLGNNIL.mjs";import{b as x}from"./chunk-A7FTKX2A.mjs";import{a as m,b as c}from"./chunk-RIPIZH54.mjs";import{a as T}from"./chunk-2DNGCNYM.mjs";import{a as f,b as g}from"./chunk-M7BM6QPB.mjs";import{a as L}from"./chunk-ONT6BGYB.mjs";import{a as d,b as y}from"./chunk-NLRDRI7Q.mjs";import{a as u,b as S}from"./chunk-VKEESSBI.mjs";import{a as I}from"./chunk-KRNGFXMQ.mjs";import{a as k}from"./chunk-KRWR77QE.mjs";import{a as v}from"./chunk-NB7A4C7L.mjs";import{f as a}from"./chunk-DA76AK4I.mjs";import{createJSONStorage as O,devtools as V,persist as h}from"zustand/middleware";import{immer as N}from"zustand/middleware/immer";import{createStore as J}from"zustand/vanilla";var A=e=>{e.account=m,e.loginInfo=f,e.transactions=d,e.toasts=u};function H(){return new Date().setHours(new Date().getHours()+24)}function w(e){if(e==null){E();return}b(e)}var C=e=>{let t=l(e),r=s(e),{address:i,publicKey:D}=p(e);if(i&&D!==new a(i).toHex()&&A(e),!t)return;if(r==null){w(H());return}let P=Date.now();r-P<0&&(w(null),o().setState(A,!1,{type:"logoutMiddleware",payload:{value:null}}))};var M=(e,t)=>{C(e)};var W=e=>{let t=J(V(h(N((...r)=>({network:T(...r),account:c(...r),loginInfo:g(...r),config:L(...r),transactions:y(...r),toasts:S(...r),cache:x(...r),ui:v(...r)})),{name:"sdk-dapp-store",storage:O(e)}),{name:"sdk-dapp"}));return t.subscribe(M),t},n,z=e=>{n=e},o=()=>(n||z(W(()=>new k)),n),Se=(e=I)=>{let t=W(e);return z(t),t},de=()=>o().getState();var Le=e=>o().setState(({loginInfo:t})=>{t.providerType=e},!1,{type:"setProviderType",payload:{value:e}}),Te=e=>o().setState(({loginInfo:t})=>{t.tokenLogin=e},!1,{type:"setTokenLogin",payload:{value:e}}),ve=e=>o().setState(({loginInfo:t})=>{if(t.tokenLogin!=null){t.tokenLogin.loginToken=e;return}t.tokenLogin={loginToken:e}},!1,{type:"setLoginToken",payload:{value:e}}),Ie=e=>o().setState(({loginInfo:t})=>{t?.tokenLogin!=null&&(t.tokenLogin.signature=e)},!1,{type:"setTokenLoginSignature",payload:{value:e}}),ke=e=>o().setState(({loginInfo:t})=>{t.walletConnectLogin=e},!1,{type:"setWalletConnectLogin",payload:{value:e}}),Ae=e=>o().setState(({loginInfo:t})=>{t.ledgerLogin=e},!1,{type:"setLedgerLogin",payload:{value:e}}),we=e=>o().setState(({loginInfo:t})=>{t.isWalletConnectV2Initialized=e},!1,{type:"setIsWalletConnectV2Initialized",payload:{value:e}}),E=()=>o().setState(({loginInfo:e})=>{e.loginExpiresAt=null},!1,{type:"removeLoginExpiresAt",payload:{value:null}}),b=e=>o().setState(({loginInfo:t})=>{t.loginExpiresAt=e},!1,{type:"addLoginExpiresAt",payload:{value:e}});export{Le as a,Te as b,ve as c,Ie as d,ke as e,Ae as f,we as g,E as h,b as i,A as j,H as k,w as l,C as m,M as n,W as o,z as p,o as q,Se as r,de as s};
2
+ //# sourceMappingURL=chunk-ZJOJQZCC.mjs.map
@@ -1,2 +1,2 @@
1
- import{a,b}from"../../__chunks__/chunk-HH6XW3S6.mjs";import"../../__chunks__/chunk-TBSRXSFJ.mjs";import"../../__chunks__/chunk-N56SMVGU.mjs";import"../../__chunks__/chunk-PKDR5ERF.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-QD4CABEY.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-LGIXBYM3.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-NWJYEKI2.mjs";import"../../__chunks__/chunk-ZELPFF47.mjs";export{a as accountFetcher,b as getAccountFromApi};
1
+ import{a,b}from"../../__chunks__/chunk-V4LJXYQC.mjs";import"../../__chunks__/chunk-SS3A7KK2.mjs";import"../../__chunks__/chunk-N56SMVGU.mjs";import"../../__chunks__/chunk-PKDR5ERF.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-ZJOJQZCC.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-KRNGFXMQ.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-NWJYEKI2.mjs";import"../../__chunks__/chunk-AYQWPMYV.mjs";export{a as accountFetcher,b as getAccountFromApi};
2
2
  //# sourceMappingURL=getAccountFromApi.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../__chunks__/chunk-PLZG3X3K.mjs";import"../../__chunks__/chunk-TBSRXSFJ.mjs";import"../../__chunks__/chunk-PKDR5ERF.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-QD4CABEY.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-LGIXBYM3.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-NWJYEKI2.mjs";import"../../__chunks__/chunk-ZELPFF47.mjs";export{a as getScamAddressData};
1
+ import{a}from"../../__chunks__/chunk-WJTMUYTI.mjs";import"../../__chunks__/chunk-SS3A7KK2.mjs";import"../../__chunks__/chunk-PKDR5ERF.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-ZJOJQZCC.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-KRNGFXMQ.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-NWJYEKI2.mjs";import"../../__chunks__/chunk-AYQWPMYV.mjs";export{a as getScamAddressData};
2
2
  //# sourceMappingURL=getScamAddressData.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../__chunks__/chunk-TBSRXSFJ.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-QD4CABEY.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-LGIXBYM3.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-ZELPFF47.mjs";export{a as getCleanApiAddress};
1
+ import{a}from"../../__chunks__/chunk-SS3A7KK2.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-ZJOJQZCC.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-KRNGFXMQ.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-AYQWPMYV.mjs";export{a as getCleanApiAddress};
2
2
  //# sourceMappingURL=getCleanApiAddress.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../__chunks__/chunk-EEHG7FC3.mjs";import"../../__chunks__/chunk-TBSRXSFJ.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-QD4CABEY.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-LGIXBYM3.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-ZELPFF47.mjs";export{a as getGasStationMetadataFromApi};
1
+ import{a}from"../../__chunks__/chunk-R34WZLE5.mjs";import"../../__chunks__/chunk-SS3A7KK2.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-ZJOJQZCC.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-KRNGFXMQ.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-AYQWPMYV.mjs";export{a as getGasStationMetadataFromApi};
2
2
  //# sourceMappingURL=getGasStationMetadata.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../__chunks__/chunk-7ELS72QK.mjs";import"../../__chunks__/chunk-TBSRXSFJ.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-QD4CABEY.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-LGIXBYM3.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-ZELPFF47.mjs";export{a as getEconomics};
1
+ import{a}from"../../__chunks__/chunk-ATYZKVD3.mjs";import"../../__chunks__/chunk-SS3A7KK2.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-ZJOJQZCC.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-KRNGFXMQ.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-AYQWPMYV.mjs";export{a as getEconomics};
2
2
  //# sourceMappingURL=getEconomics.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../__chunks__/chunk-KKI3K4YH.mjs";import"../../__chunks__/chunk-NYZ726DG.mjs";import"../../__chunks__/chunk-SNPF3BD2.mjs";import"../../__chunks__/chunk-N56SMVGU.mjs";import"../../__chunks__/chunk-PKDR5ERF.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-3FXHIV6O.mjs";import"../../__chunks__/chunk-QD4CABEY.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-LGIXBYM3.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-NWJYEKI2.mjs";import"../../__chunks__/chunk-ZELPFF47.mjs";export{a as getPersistedTokenDetails};
1
+ import{a}from"../../__chunks__/chunk-VUVEHXGH.mjs";import"../../__chunks__/chunk-NYZ726DG.mjs";import"../../__chunks__/chunk-SNPF3BD2.mjs";import"../../__chunks__/chunk-N56SMVGU.mjs";import"../../__chunks__/chunk-PKDR5ERF.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-3FXHIV6O.mjs";import"../../__chunks__/chunk-ZJOJQZCC.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-KRNGFXMQ.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-NWJYEKI2.mjs";import"../../__chunks__/chunk-AYQWPMYV.mjs";export{a as getPersistedTokenDetails};
2
2
  //# sourceMappingURL=getPersistedTokenDetails.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as c}from"../../__chunks__/chunk-N56SMVGU.mjs";import{b as m}from"../../__chunks__/chunk-7VHTZYM2.mjs";import{a as r}from"../../__chunks__/chunk-3FXHIV6O.mjs";import{s as i}from"../../__chunks__/chunk-QD4CABEY.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-LGIXBYM3.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import{o as s,u as a}from"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-ZELPFF47.mjs";async function b({tokenId:o}){let t=m(i()),{isNft:k}=r(o),n=o,p=k?s:a;if(!n)return{tokenDecimals:Number(t.decimals),tokenLabel:"",tokenAvatar:""};try{let{data:e}=await c.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 getTokenDetails};
1
+ import{a as c}from"../../__chunks__/chunk-N56SMVGU.mjs";import{b as m}from"../../__chunks__/chunk-7VHTZYM2.mjs";import{a as r}from"../../__chunks__/chunk-3FXHIV6O.mjs";import{s as i}from"../../__chunks__/chunk-ZJOJQZCC.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-KRNGFXMQ.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import{o as s,u as a}from"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-AYQWPMYV.mjs";async function b({tokenId:o}){let t=m(i()),{isNft:k}=r(o),n=o,p=k?s:a;if(!n)return{tokenDecimals:Number(t.decimals),tokenLabel:"",tokenAvatar:""};try{let{data:e}=await c.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 getTokenDetails};
2
2
  //# sourceMappingURL=getTokenDetails.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../__chunks__/chunk-VAXNO6YD.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-QD4CABEY.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-LGIXBYM3.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-ZELPFF47.mjs";export{a as getServerTransactionsByHashes};
1
+ import{a}from"../../__chunks__/chunk-CILOQDO7.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-ZJOJQZCC.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-KRNGFXMQ.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-AYQWPMYV.mjs";export{a as getServerTransactionsByHashes};
2
2
  //# sourceMappingURL=getServerTransactionsByHashes.mjs.map
@@ -1,2 +1,2 @@
1
- import{b as o}from"../../__chunks__/chunk-7VHTZYM2.mjs";import{s as r}from"../../__chunks__/chunk-QD4CABEY.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-LGIXBYM3.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import{y as t}from"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-ZELPFF47.mjs";import m from"axios";var T=e=>{let{apiAddress:i}=o(r());return m.get(`${i}/${t}/${e}`,{timeout:1e4})};export{T as getTransactionByHash};
1
+ import{b as o}from"../../__chunks__/chunk-7VHTZYM2.mjs";import{s as r}from"../../__chunks__/chunk-ZJOJQZCC.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-KRNGFXMQ.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import{y as t}from"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-AYQWPMYV.mjs";import m from"axios";var T=e=>{let{apiAddress:i}=o(r());return m.get(`${i}/${t}/${e}`,{timeout:1e4})};export{T as getTransactionByHash};
2
2
  //# sourceMappingURL=getTransactionByHash.mjs.map