@multiversx/sdk-dapp 5.6.0 → 5.6.2

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 (383) hide show
  1. package/out/__chunks__/{chunk-HSBPXEYO.mjs → chunk-2NWOEEMH.mjs} +2 -2
  2. package/out/__chunks__/{chunk-YZ4QKLL4.mjs → chunk-2WF5ZWBD.mjs} +2 -2
  3. package/out/__chunks__/{chunk-T4B7EPFP.mjs → chunk-3NJIJ5ZX.mjs} +2 -2
  4. package/out/__chunks__/{chunk-MS4HJKFQ.mjs → chunk-3XSQSLWS.mjs} +2 -2
  5. package/out/__chunks__/{chunk-2S5WHIFT.mjs → chunk-4TXQTO5H.mjs} +2 -2
  6. package/out/__chunks__/{chunk-B7W4YLNC.mjs → chunk-5F6WZKJE.mjs} +2 -2
  7. package/out/__chunks__/{chunk-KX6CNV2K.mjs → chunk-5LFQBGNR.mjs} +2 -2
  8. package/out/__chunks__/chunk-5QZXFNXN.mjs +2 -0
  9. package/out/__chunks__/chunk-6AI6YEYF.mjs +2 -0
  10. package/out/__chunks__/{chunk-5UOXJCVE.mjs.map → chunk-6AI6YEYF.mjs.map} +1 -1
  11. package/out/__chunks__/{chunk-GYT3GRW7.mjs → chunk-6LCMMXSV.mjs} +2 -2
  12. package/out/__chunks__/{chunk-Z7OIZBTP.mjs → chunk-6Q6CYYJN.mjs} +2 -2
  13. package/out/__chunks__/{chunk-5MF4CGC2.mjs → chunk-6RTW3NNL.mjs} +2 -2
  14. package/out/__chunks__/chunk-6SODPG3Z.mjs +2 -0
  15. package/out/__chunks__/{chunk-W4PB2EPE.mjs → chunk-6TNJX6OV.mjs} +2 -2
  16. package/out/__chunks__/{chunk-OFCQKFNJ.mjs → chunk-76ZOY6VP.mjs} +2 -2
  17. package/out/__chunks__/chunk-7N7XGUEI.mjs +2 -0
  18. package/out/__chunks__/{chunk-5MIUR7TV.mjs → chunk-7SI5UL5T.mjs} +2 -2
  19. package/out/__chunks__/{chunk-CEEQLHQZ.mjs → chunk-7VIOX4FV.mjs} +2 -2
  20. package/out/__chunks__/{chunk-HQKLV6UC.mjs → chunk-7ZDQAOZA.mjs} +2 -2
  21. package/out/__chunks__/{chunk-5ETHXOLQ.mjs → chunk-AT2ULPIQ.mjs} +2 -2
  22. package/out/__chunks__/chunk-B7SOPVVG.mjs +2 -0
  23. package/out/__chunks__/{chunk-S6Z7SK4I.mjs → chunk-BDQDMYE2.mjs} +2 -2
  24. package/out/__chunks__/{chunk-PSMZAY5L.mjs → chunk-BPQUWNOJ.mjs} +2 -2
  25. package/out/__chunks__/{chunk-WDKKHXUY.mjs → chunk-BU5MQY6M.mjs} +2 -2
  26. package/out/__chunks__/{chunk-RQA4GYJ2.mjs → chunk-C4YMIBIT.mjs} +2 -2
  27. package/out/__chunks__/{chunk-2XGFPNHN.mjs → chunk-CP5EUGTA.mjs} +2 -2
  28. package/out/__chunks__/{chunk-AUUO3J3I.mjs → chunk-CRZWEGX4.mjs} +2 -2
  29. package/out/__chunks__/{chunk-YSJOMOP6.mjs → chunk-EGUUSWSY.mjs} +2 -2
  30. package/out/__chunks__/{chunk-XMZ5CAST.mjs → chunk-EVBHVGED.mjs} +2 -2
  31. package/out/__chunks__/{chunk-M2CIC466.mjs → chunk-FFA5EZQS.mjs} +2 -2
  32. package/out/__chunks__/chunk-FMC2XJDM.mjs +2 -0
  33. package/out/__chunks__/{chunk-SIS54TKT.mjs → chunk-G22AG5FA.mjs} +2 -2
  34. package/out/__chunks__/{chunk-FE7JVDOF.mjs → chunk-G32ZZQZJ.mjs} +2 -2
  35. package/out/__chunks__/{chunk-TSXYRZYR.mjs → chunk-GAARIX2L.mjs} +2 -2
  36. package/out/__chunks__/{chunk-LLP256EY.mjs → chunk-GDPJD7DM.mjs} +2 -2
  37. package/out/__chunks__/{chunk-OZHVKT7L.mjs → chunk-GN6MQETD.mjs} +2 -2
  38. package/out/__chunks__/{chunk-VQCBZHSJ.mjs → chunk-GRQXEWKY.mjs} +2 -2
  39. package/out/__chunks__/{chunk-75FZNOHX.mjs → chunk-GZLYHVRK.mjs} +2 -2
  40. package/out/__chunks__/chunk-HCQ72DY5.mjs +2 -0
  41. package/out/__chunks__/{chunk-5CTCDH76.mjs → chunk-HWW2JJMZ.mjs} +2 -2
  42. package/out/__chunks__/{chunk-C7JC6X43.mjs → chunk-HY3UHHJZ.mjs} +2 -2
  43. package/out/__chunks__/{chunk-3XGEELWS.mjs → chunk-I5DX7KW7.mjs} +2 -2
  44. package/out/__chunks__/{chunk-R4PQZ3KR.mjs → chunk-IF25XU42.mjs} +2 -2
  45. package/out/__chunks__/{chunk-KSZ6KLOV.mjs → chunk-ISHOC3HN.mjs} +2 -2
  46. package/out/__chunks__/{chunk-2NIE3WNK.mjs → chunk-JHN7ZXZD.mjs} +2 -2
  47. package/out/__chunks__/{chunk-THWJWM3U.mjs → chunk-JQJPJU2Q.mjs} +2 -2
  48. package/out/__chunks__/{chunk-EKYWBNA4.mjs → chunk-KCE7SWEX.mjs} +2 -2
  49. package/out/__chunks__/{chunk-UGOYRSVR.mjs → chunk-KCPZTM4J.mjs} +2 -2
  50. package/out/__chunks__/{chunk-YKGVZIZL.mjs → chunk-KUCQ5SRL.mjs} +2 -2
  51. package/out/__chunks__/{chunk-M46Q3HDT.mjs → chunk-KYRA3SU5.mjs} +2 -2
  52. package/out/__chunks__/chunk-LXHDLH3F.mjs +2 -0
  53. package/out/__chunks__/{chunk-IBNTHQ5J.mjs → chunk-MOUCHIKH.mjs} +2 -2
  54. package/out/__chunks__/{chunk-UUT43IJZ.mjs → chunk-MZHUPMBI.mjs} +2 -2
  55. package/out/__chunks__/{chunk-S56636YA.mjs → chunk-NOV7YLBH.mjs} +2 -2
  56. package/out/__chunks__/{chunk-Q55HCS7B.mjs → chunk-NQ33YSHO.mjs} +2 -2
  57. package/out/__chunks__/{chunk-3VJNYMSP.mjs → chunk-OTJG5BXN.mjs} +2 -2
  58. package/out/__chunks__/{chunk-3AYP4TKJ.mjs → chunk-OTZRBH74.mjs} +2 -2
  59. package/out/__chunks__/{chunk-OQ7JOMPY.mjs → chunk-OWY3ANBW.mjs} +2 -2
  60. package/out/__chunks__/{chunk-YEBTFFUW.mjs → chunk-PL54S5SZ.mjs} +2 -2
  61. package/out/__chunks__/{chunk-TRTXNUSR.mjs → chunk-QBZJ7YT2.mjs} +2 -2
  62. package/out/__chunks__/{chunk-4KA3OVFJ.mjs → chunk-QFFHMFYL.mjs} +2 -2
  63. package/out/__chunks__/{chunk-OEVIK4XL.mjs → chunk-QG7HIWZD.mjs} +2 -2
  64. package/out/__chunks__/chunk-QY47XP6Y.mjs +2 -0
  65. package/out/__chunks__/{chunk-HCPI3NQP.mjs → chunk-S5SYCA4F.mjs} +2 -2
  66. package/out/__chunks__/chunk-SDJBS6NR.mjs +2 -0
  67. package/out/__chunks__/{chunk-2PJP3H72.mjs → chunk-SHQJRZRG.mjs} +2 -2
  68. package/out/__chunks__/{chunk-KV2IW2CT.mjs → chunk-SM62HZ3V.mjs} +2 -2
  69. package/out/__chunks__/{chunk-IE7KB5QA.mjs → chunk-STLKOXG5.mjs} +2 -2
  70. package/out/__chunks__/chunk-UAB7GELA.mjs +2 -0
  71. package/out/__chunks__/{chunk-JRQIDKAA.mjs → chunk-UMOLH6HR.mjs} +1 -1
  72. package/out/__chunks__/{chunk-JRQIDKAA.mjs.map → chunk-UMOLH6HR.mjs.map} +1 -1
  73. package/out/__chunks__/chunk-VBFHQD63.mjs +2 -0
  74. package/out/__chunks__/chunk-VBFHQD63.mjs.map +7 -0
  75. package/out/__chunks__/{chunk-H7BMGYSW.mjs → chunk-VF5CEBTD.mjs} +2 -2
  76. package/out/__chunks__/{chunk-B2YN2K4Y.mjs → chunk-W4BZ6WZG.mjs} +2 -2
  77. package/out/__chunks__/{chunk-RVNLIKEM.mjs → chunk-WBHIPVL6.mjs} +2 -2
  78. package/out/__chunks__/{chunk-WO45TI6N.mjs → chunk-WFGN4M73.mjs} +2 -2
  79. package/out/__chunks__/{chunk-CSBQZF3J.mjs → chunk-WKVB6JZV.mjs} +2 -2
  80. package/out/__chunks__/chunk-WPT6RHNQ.mjs +2 -0
  81. package/out/__chunks__/chunk-WTZZWA22.mjs +2 -0
  82. package/out/__chunks__/{chunk-57EKOYML.mjs → chunk-X6QROJDH.mjs} +2 -2
  83. package/out/__chunks__/{chunk-UPPVQNFF.mjs → chunk-XHAYGFJ5.mjs} +2 -2
  84. package/out/__chunks__/chunk-XMRQCZT4.mjs +2 -0
  85. package/out/__chunks__/chunk-XMVBCQNY.mjs +2 -0
  86. package/out/__chunks__/{chunk-VNO3UPYV.mjs → chunk-XQOUUZGE.mjs} +2 -2
  87. package/out/__chunks__/{chunk-HZS3BVBK.mjs → chunk-XSXGXODH.mjs} +2 -2
  88. package/out/__chunks__/{chunk-ZG72FAAC.mjs → chunk-XTQHD33S.mjs} +2 -2
  89. package/out/__chunks__/{chunk-TUY5CCZR.mjs → chunk-XVQMJV6B.mjs} +2 -2
  90. package/out/__chunks__/{chunk-2DW7TQJ7.mjs → chunk-YVWXI3GJ.mjs} +2 -2
  91. package/out/__chunks__/{chunk-ZHLQ6ML2.mjs → chunk-ZBZA777X.mjs} +2 -2
  92. package/out/__chunks__/{chunk-L53UGE2V.mjs → chunk-ZMDQIRLX.mjs} +2 -2
  93. package/out/apiCalls/account/getAccountFromApi.mjs +1 -1
  94. package/out/apiCalls/account/getScamAddressData.mjs +1 -1
  95. package/out/apiCalls/configuration/getCleanApiAddress.mjs +1 -1
  96. package/out/apiCalls/configuration/getGasStationMetadata.mjs +1 -1
  97. package/out/apiCalls/economics/getEconomics.mjs +1 -1
  98. package/out/apiCalls/tokens/getPersistedTokenDetails.mjs +1 -1
  99. package/out/apiCalls/tokens/getTokenDetails.mjs +1 -1
  100. package/out/apiCalls/transactions/getServerTransactionsByHashes.mjs +1 -1
  101. package/out/apiCalls/transactions/getTransactionByHash.mjs +1 -1
  102. package/out/apiCalls/transactions/getTransactionsByHashes.mjs +1 -1
  103. package/out/constants/browser.constants.mjs +1 -1
  104. package/out/constants/storage.constants.mjs +1 -1
  105. package/out/constants/window.constants.cjs +1 -1
  106. package/out/constants/window.constants.cjs.map +1 -1
  107. package/out/constants/window.constants.mjs +1 -1
  108. package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.mjs +1 -1
  109. package/out/controllers/TransactionsHistoryController/index.mjs +1 -1
  110. package/out/controllers/TransactionsTableController/TransactionsTableController.mjs +1 -1
  111. package/out/controllers/TransactionsTableController/index.mjs +1 -1
  112. package/out/lib/sdkDappUi.mjs +1 -1
  113. package/out/managers/LogoutManager/LogoutManager.mjs +1 -1
  114. package/out/managers/NotificationsFeedManager/NotificationsFeedManager.mjs +1 -1
  115. package/out/managers/NotificationsFeedManager/index.mjs +1 -1
  116. package/out/managers/ToastManager/ToastManager.mjs +1 -1
  117. package/out/managers/ToastManager/ToastUICoordinator.mjs +1 -1
  118. package/out/managers/ToastManager/helpers/LifetimeManager.mjs +1 -1
  119. package/out/managers/ToastManager/helpers/createToastsFromTransactions.mjs +1 -1
  120. package/out/managers/ToastManager/index.mjs +1 -1
  121. package/out/managers/TransactionManager/TransactionManager.mjs +1 -1
  122. package/out/managers/TransactionManager/helpers/getToastDuration.mjs +1 -1
  123. package/out/managers/TransactionManager/index.mjs +1 -1
  124. package/out/managers/UnlockPanelManager/UnlockPanelManager.cjs +1 -1
  125. package/out/managers/UnlockPanelManager/UnlockPanelManager.cjs.map +3 -3
  126. package/out/managers/UnlockPanelManager/UnlockPanelManager.d.ts +1 -0
  127. package/out/managers/UnlockPanelManager/UnlockPanelManager.mjs +1 -1
  128. package/out/managers/UnlockPanelManager/UnlockPanelManager.types.cjs +1 -1
  129. package/out/managers/UnlockPanelManager/UnlockPanelManager.types.cjs.map +1 -1
  130. package/out/managers/UnlockPanelManager/UnlockPanelManager.types.d.ts +8 -0
  131. package/out/managers/UnlockPanelManager/UnlockPanelManager.types.mjs +1 -1
  132. package/out/managers/UnlockPanelManager/index.mjs +1 -1
  133. package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.mjs +1 -1
  134. package/out/managers/internal/LedgerConnectStateManager/index.mjs +1 -1
  135. package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.mjs +1 -1
  136. package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.mjs +1 -1
  137. package/out/managers/internal/PendingTransactionsStateManager/index.mjs +1 -1
  138. package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.mjs +1 -1
  139. package/out/managers/internal/SidePanelBaseManager/index.mjs +1 -1
  140. package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.mjs +1 -1
  141. package/out/managers/internal/SignTransactionsStateManager/index.mjs +1 -1
  142. package/out/managers/internal/UIBaseManager/UIBaseManager.mjs +1 -1
  143. package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.mjs +1 -1
  144. package/out/managers/internal/WalletConnectStateManager/index.mjs +1 -1
  145. package/out/methods/account/getAccount.mjs +1 -1
  146. package/out/methods/account/getAccountInfo.mjs +1 -1
  147. package/out/methods/account/getAddress.mjs +1 -1
  148. package/out/methods/account/getIsLoggedIn.mjs +1 -1
  149. package/out/methods/account/getLatestNonce.mjs +1 -1
  150. package/out/methods/initApp/gasStationMetadata/setGasStationMetadata.mjs +1 -1
  151. package/out/methods/initApp/helpers/waitForStoreRehydration.mjs +1 -1
  152. package/out/methods/initApp/initApp.mjs +1 -1
  153. package/out/methods/initApp/websocket/initializeWebsocketConnection.mjs +1 -1
  154. package/out/methods/initApp/websocket/registerWebsocket.mjs +1 -1
  155. package/out/methods/loginInfo/getLoginInfo.mjs +1 -1
  156. package/out/methods/network/getEgldLabel.mjs +1 -1
  157. package/out/methods/network/getExplorerAddress.mjs +1 -1
  158. package/out/methods/network/getNetworkConfig.mjs +1 -1
  159. package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.mjs +1 -1
  160. package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/checkBatch.mjs +1 -1
  161. package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/runTransactionFailure.mjs +1 -1
  162. package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/runTransactionStatusUpdate.mjs +1 -1
  163. package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/updateTransactionAndSessionStatus.mjs +1 -1
  164. package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/index.mjs +1 -1
  165. package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.mjs +1 -1
  166. package/out/methods/trackTransactions/helpers/getPollingInterval.mjs +1 -1
  167. package/out/methods/trackTransactions/trackTransactions.mjs +1 -1
  168. package/out/methods/transactions/getFailedTransactions.mjs +1 -1
  169. package/out/methods/transactions/getFailedTransactionsSessions.mjs +1 -1
  170. package/out/methods/transactions/getPendingTransactions.mjs +1 -1
  171. package/out/methods/transactions/getPendingTransactionsSessions.mjs +1 -1
  172. package/out/methods/transactions/getSuccessfulTransactions.mjs +1 -1
  173. package/out/methods/transactions/getSuccessfulTransactionsSessions.mjs +1 -1
  174. package/out/methods/transactions/getTransactionSessions.mjs +1 -1
  175. package/out/providers/DappProvider/DappProvider.mjs +1 -1
  176. package/out/providers/DappProvider/helpers/login/helpers/accountLogin.mjs +1 -1
  177. package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.mjs +1 -1
  178. package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.mjs +1 -1
  179. package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.mjs +1 -1
  180. package/out/providers/DappProvider/helpers/login/helpers/getMultisigLoginToken.mjs +1 -1
  181. package/out/providers/DappProvider/helpers/login/helpers/loginWithNativeToken.mjs +1 -1
  182. package/out/providers/DappProvider/helpers/login/helpers/loginWithoutNativeToken.mjs +1 -1
  183. package/out/providers/DappProvider/helpers/login/login.mjs +1 -1
  184. package/out/providers/DappProvider/helpers/logout/logout.mjs +1 -1
  185. package/out/providers/DappProvider/helpers/signErrors/handleSignError.mjs +1 -1
  186. package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.mjs +1 -1
  187. package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.mjs +1 -1
  188. package/out/providers/DappProvider/index.mjs +1 -1
  189. package/out/providers/ProviderFactory.mjs +1 -1
  190. package/out/providers/helpers/accountProvider.mjs +1 -1
  191. package/out/providers/helpers/cancelCrossWindowAction.mjs +1 -1
  192. package/out/providers/helpers/restoreProvider.mjs +1 -1
  193. package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.mjs +1 -1
  194. package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.mjs +1 -1
  195. package/out/providers/strategies/CrossWindowProviderStrategy/index.mjs +1 -1
  196. package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.mjs +1 -1
  197. package/out/providers/strategies/ExtensionProviderStrategy/index.mjs +1 -1
  198. package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.mjs +1 -1
  199. package/out/providers/strategies/IframeProviderStrategy/index.mjs +1 -1
  200. package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.mjs +1 -1
  201. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/authenticateLedgerAccount.mjs +1 -1
  202. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/updateAccountsList/index.mjs +1 -1
  203. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/updateAccountsList/updateAccountsList.mjs +1 -1
  204. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/waitForLedgerSelection.mjs +1 -1
  205. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/index.mjs +1 -1
  206. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/getLedgerProvider.mjs +1 -1
  207. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/index.mjs +1 -1
  208. package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.mjs +1 -1
  209. package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.mjs +1 -1
  210. package/out/providers/strategies/LedgerProviderStrategy/index.mjs +1 -1
  211. package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.mjs +1 -1
  212. package/out/providers/strategies/WalletConnectProviderStrategy/index.mjs +1 -1
  213. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.mjs +1 -1
  214. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.mjs +1 -1
  215. package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.mjs +1 -1
  216. package/out/providers/strategies/WebviewProviderStrategy/index.mjs +1 -1
  217. package/out/providers/strategies/helpers/getPendingTransactionsHandlers.mjs +1 -1
  218. package/out/providers/strategies/helpers/index.mjs +1 -1
  219. package/out/providers/strategies/helpers/signMessage/signMessage.mjs +1 -1
  220. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.mjs +1 -1
  221. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.mjs +1 -1
  222. package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.mjs +1 -1
  223. package/out/providers/strategies/helpers/signTransactions/signTransactions.mjs +1 -1
  224. package/out/react/account/useGetAccount.mjs +1 -1
  225. package/out/react/account/useGetAccountInfo.mjs +1 -1
  226. package/out/react/account/useGetIsLoggedIn.mjs +1 -1
  227. package/out/react/account/useGetLatestNonce.mjs +1 -1
  228. package/out/react/index.mjs +1 -1
  229. package/out/react/loginInfo/useGetLoginInfo.mjs +1 -1
  230. package/out/react/network/useGetNetworkConfig.mjs +1 -1
  231. package/out/react/store/getReactStore.mjs +1 -1
  232. package/out/react/store/useSelector.mjs +1 -1
  233. package/out/react/transactions/useGetFailedTransactions.mjs +1 -1
  234. package/out/react/transactions/useGetFailedTransactionsSessions.mjs +1 -1
  235. package/out/react/transactions/useGetPendingTransactions.mjs +1 -1
  236. package/out/react/transactions/useGetPendingTransactionsSessions.mjs +1 -1
  237. package/out/react/transactions/useGetSuccessfulTransactions.mjs +1 -1
  238. package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs +1 -1
  239. package/out/react/transactions/useGetTransactionSessions.mjs +1 -1
  240. package/out/services/nativeAuth/index.mjs +1 -1
  241. package/out/services/nativeAuth/methods/buildNativeAuthConfig.mjs +1 -1
  242. package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.mjs +1 -1
  243. package/out/services/nativeAuth/nativeAuth.mjs +1 -1
  244. package/out/store/actions/account/accountActions.mjs +1 -1
  245. package/out/store/actions/account/index.mjs +1 -1
  246. package/out/store/actions/cache/cacheActions.mjs +1 -1
  247. package/out/store/actions/cache/index.mjs +1 -1
  248. package/out/store/actions/config/configActions.mjs +1 -1
  249. package/out/store/actions/config/index.mjs +1 -1
  250. package/out/store/actions/loginInfo/loginInfoActions.mjs +1 -1
  251. package/out/store/actions/network/index.mjs +1 -1
  252. package/out/store/actions/network/initializeNetwork.mjs +1 -1
  253. package/out/store/actions/network/networkActions.mjs +1 -1
  254. package/out/store/actions/sharedActions/index.mjs +1 -1
  255. package/out/store/actions/sharedActions/sharedActions.mjs +1 -1
  256. package/out/store/actions/toasts/index.mjs +1 -1
  257. package/out/store/actions/toasts/toastsActions.mjs +1 -1
  258. package/out/store/actions/transactions/transactionsActions.mjs +1 -1
  259. package/out/store/actions/ui/index.mjs +1 -1
  260. package/out/store/actions/ui/uiActions.mjs +1 -1
  261. package/out/store/middleware/applyMiddlewares.mjs +1 -1
  262. package/out/store/middleware/index.mjs +1 -1
  263. package/out/store/middleware/logoutMiddleware.mjs +1 -1
  264. package/out/store/storage/index.mjs +1 -1
  265. package/out/store/storage/storageCallback.mjs +1 -1
  266. package/out/store/store.mjs +1 -1
  267. package/out/utils/ComponentFactory.mjs +1 -1
  268. package/out/utils/account/fetchAccount.mjs +1 -1
  269. package/out/utils/account/refreshAccount.mjs +1 -1
  270. package/out/utils/account/refreshNativeAuthTokenLogin.mjs +1 -1
  271. package/out/utils/transactions/getActiveTransactionsStatus.mjs +1 -1
  272. package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.mjs +1 -1
  273. package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.mjs +1 -1
  274. package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.mjs +1 -1
  275. package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.mjs +1 -1
  276. package/out/utils/transactions/getTransactionsHistory/index.mjs +1 -1
  277. package/out/utils/visual/switchTheme.mjs +1 -1
  278. package/out/utils/window/getIsInIframe.mjs +1 -1
  279. package/out/utils/window/getWindowParentOrigin.mjs +1 -1
  280. package/package.json +1 -1
  281. package/out/__chunks__/chunk-4U4NN2BV.mjs +0 -2
  282. package/out/__chunks__/chunk-5UOXJCVE.mjs +0 -2
  283. package/out/__chunks__/chunk-7KZRDBRD.mjs +0 -2
  284. package/out/__chunks__/chunk-D4TXTRNG.mjs +0 -2
  285. package/out/__chunks__/chunk-D4TXTRNG.mjs.map +0 -7
  286. package/out/__chunks__/chunk-D7EX7MUQ.mjs +0 -2
  287. package/out/__chunks__/chunk-DIRAY5XU.mjs +0 -2
  288. package/out/__chunks__/chunk-GI2BXTON.mjs +0 -2
  289. package/out/__chunks__/chunk-GNBEFY25.mjs +0 -2
  290. package/out/__chunks__/chunk-HX4LWMG4.mjs +0 -2
  291. package/out/__chunks__/chunk-IC7LTFNH.mjs +0 -2
  292. package/out/__chunks__/chunk-KWVOWN7D.mjs +0 -2
  293. package/out/__chunks__/chunk-QVSS57NF.mjs +0 -2
  294. package/out/__chunks__/chunk-TOTEIAZR.mjs +0 -2
  295. package/out/__chunks__/chunk-VCFLLUN2.mjs +0 -2
  296. package/out/__chunks__/chunk-XDV6WH5M.mjs +0 -2
  297. package/out/__chunks__/chunk-XPRJTAQX.mjs +0 -2
  298. /package/out/__chunks__/{chunk-HSBPXEYO.mjs.map → chunk-2NWOEEMH.mjs.map} +0 -0
  299. /package/out/__chunks__/{chunk-YZ4QKLL4.mjs.map → chunk-2WF5ZWBD.mjs.map} +0 -0
  300. /package/out/__chunks__/{chunk-T4B7EPFP.mjs.map → chunk-3NJIJ5ZX.mjs.map} +0 -0
  301. /package/out/__chunks__/{chunk-MS4HJKFQ.mjs.map → chunk-3XSQSLWS.mjs.map} +0 -0
  302. /package/out/__chunks__/{chunk-2S5WHIFT.mjs.map → chunk-4TXQTO5H.mjs.map} +0 -0
  303. /package/out/__chunks__/{chunk-B7W4YLNC.mjs.map → chunk-5F6WZKJE.mjs.map} +0 -0
  304. /package/out/__chunks__/{chunk-KX6CNV2K.mjs.map → chunk-5LFQBGNR.mjs.map} +0 -0
  305. /package/out/__chunks__/{chunk-TOTEIAZR.mjs.map → chunk-5QZXFNXN.mjs.map} +0 -0
  306. /package/out/__chunks__/{chunk-GYT3GRW7.mjs.map → chunk-6LCMMXSV.mjs.map} +0 -0
  307. /package/out/__chunks__/{chunk-Z7OIZBTP.mjs.map → chunk-6Q6CYYJN.mjs.map} +0 -0
  308. /package/out/__chunks__/{chunk-5MF4CGC2.mjs.map → chunk-6RTW3NNL.mjs.map} +0 -0
  309. /package/out/__chunks__/{chunk-QVSS57NF.mjs.map → chunk-6SODPG3Z.mjs.map} +0 -0
  310. /package/out/__chunks__/{chunk-W4PB2EPE.mjs.map → chunk-6TNJX6OV.mjs.map} +0 -0
  311. /package/out/__chunks__/{chunk-OFCQKFNJ.mjs.map → chunk-76ZOY6VP.mjs.map} +0 -0
  312. /package/out/__chunks__/{chunk-HX4LWMG4.mjs.map → chunk-7N7XGUEI.mjs.map} +0 -0
  313. /package/out/__chunks__/{chunk-5MIUR7TV.mjs.map → chunk-7SI5UL5T.mjs.map} +0 -0
  314. /package/out/__chunks__/{chunk-CEEQLHQZ.mjs.map → chunk-7VIOX4FV.mjs.map} +0 -0
  315. /package/out/__chunks__/{chunk-HQKLV6UC.mjs.map → chunk-7ZDQAOZA.mjs.map} +0 -0
  316. /package/out/__chunks__/{chunk-5ETHXOLQ.mjs.map → chunk-AT2ULPIQ.mjs.map} +0 -0
  317. /package/out/__chunks__/{chunk-VCFLLUN2.mjs.map → chunk-B7SOPVVG.mjs.map} +0 -0
  318. /package/out/__chunks__/{chunk-S6Z7SK4I.mjs.map → chunk-BDQDMYE2.mjs.map} +0 -0
  319. /package/out/__chunks__/{chunk-PSMZAY5L.mjs.map → chunk-BPQUWNOJ.mjs.map} +0 -0
  320. /package/out/__chunks__/{chunk-WDKKHXUY.mjs.map → chunk-BU5MQY6M.mjs.map} +0 -0
  321. /package/out/__chunks__/{chunk-RQA4GYJ2.mjs.map → chunk-C4YMIBIT.mjs.map} +0 -0
  322. /package/out/__chunks__/{chunk-2XGFPNHN.mjs.map → chunk-CP5EUGTA.mjs.map} +0 -0
  323. /package/out/__chunks__/{chunk-AUUO3J3I.mjs.map → chunk-CRZWEGX4.mjs.map} +0 -0
  324. /package/out/__chunks__/{chunk-YSJOMOP6.mjs.map → chunk-EGUUSWSY.mjs.map} +0 -0
  325. /package/out/__chunks__/{chunk-XMZ5CAST.mjs.map → chunk-EVBHVGED.mjs.map} +0 -0
  326. /package/out/__chunks__/{chunk-M2CIC466.mjs.map → chunk-FFA5EZQS.mjs.map} +0 -0
  327. /package/out/__chunks__/{chunk-4U4NN2BV.mjs.map → chunk-FMC2XJDM.mjs.map} +0 -0
  328. /package/out/__chunks__/{chunk-SIS54TKT.mjs.map → chunk-G22AG5FA.mjs.map} +0 -0
  329. /package/out/__chunks__/{chunk-FE7JVDOF.mjs.map → chunk-G32ZZQZJ.mjs.map} +0 -0
  330. /package/out/__chunks__/{chunk-TSXYRZYR.mjs.map → chunk-GAARIX2L.mjs.map} +0 -0
  331. /package/out/__chunks__/{chunk-LLP256EY.mjs.map → chunk-GDPJD7DM.mjs.map} +0 -0
  332. /package/out/__chunks__/{chunk-OZHVKT7L.mjs.map → chunk-GN6MQETD.mjs.map} +0 -0
  333. /package/out/__chunks__/{chunk-VQCBZHSJ.mjs.map → chunk-GRQXEWKY.mjs.map} +0 -0
  334. /package/out/__chunks__/{chunk-75FZNOHX.mjs.map → chunk-GZLYHVRK.mjs.map} +0 -0
  335. /package/out/__chunks__/{chunk-KWVOWN7D.mjs.map → chunk-HCQ72DY5.mjs.map} +0 -0
  336. /package/out/__chunks__/{chunk-5CTCDH76.mjs.map → chunk-HWW2JJMZ.mjs.map} +0 -0
  337. /package/out/__chunks__/{chunk-C7JC6X43.mjs.map → chunk-HY3UHHJZ.mjs.map} +0 -0
  338. /package/out/__chunks__/{chunk-3XGEELWS.mjs.map → chunk-I5DX7KW7.mjs.map} +0 -0
  339. /package/out/__chunks__/{chunk-R4PQZ3KR.mjs.map → chunk-IF25XU42.mjs.map} +0 -0
  340. /package/out/__chunks__/{chunk-KSZ6KLOV.mjs.map → chunk-ISHOC3HN.mjs.map} +0 -0
  341. /package/out/__chunks__/{chunk-2NIE3WNK.mjs.map → chunk-JHN7ZXZD.mjs.map} +0 -0
  342. /package/out/__chunks__/{chunk-THWJWM3U.mjs.map → chunk-JQJPJU2Q.mjs.map} +0 -0
  343. /package/out/__chunks__/{chunk-EKYWBNA4.mjs.map → chunk-KCE7SWEX.mjs.map} +0 -0
  344. /package/out/__chunks__/{chunk-UGOYRSVR.mjs.map → chunk-KCPZTM4J.mjs.map} +0 -0
  345. /package/out/__chunks__/{chunk-YKGVZIZL.mjs.map → chunk-KUCQ5SRL.mjs.map} +0 -0
  346. /package/out/__chunks__/{chunk-M46Q3HDT.mjs.map → chunk-KYRA3SU5.mjs.map} +0 -0
  347. /package/out/__chunks__/{chunk-GNBEFY25.mjs.map → chunk-LXHDLH3F.mjs.map} +0 -0
  348. /package/out/__chunks__/{chunk-IBNTHQ5J.mjs.map → chunk-MOUCHIKH.mjs.map} +0 -0
  349. /package/out/__chunks__/{chunk-UUT43IJZ.mjs.map → chunk-MZHUPMBI.mjs.map} +0 -0
  350. /package/out/__chunks__/{chunk-S56636YA.mjs.map → chunk-NOV7YLBH.mjs.map} +0 -0
  351. /package/out/__chunks__/{chunk-Q55HCS7B.mjs.map → chunk-NQ33YSHO.mjs.map} +0 -0
  352. /package/out/__chunks__/{chunk-3VJNYMSP.mjs.map → chunk-OTJG5BXN.mjs.map} +0 -0
  353. /package/out/__chunks__/{chunk-3AYP4TKJ.mjs.map → chunk-OTZRBH74.mjs.map} +0 -0
  354. /package/out/__chunks__/{chunk-OQ7JOMPY.mjs.map → chunk-OWY3ANBW.mjs.map} +0 -0
  355. /package/out/__chunks__/{chunk-YEBTFFUW.mjs.map → chunk-PL54S5SZ.mjs.map} +0 -0
  356. /package/out/__chunks__/{chunk-TRTXNUSR.mjs.map → chunk-QBZJ7YT2.mjs.map} +0 -0
  357. /package/out/__chunks__/{chunk-4KA3OVFJ.mjs.map → chunk-QFFHMFYL.mjs.map} +0 -0
  358. /package/out/__chunks__/{chunk-OEVIK4XL.mjs.map → chunk-QG7HIWZD.mjs.map} +0 -0
  359. /package/out/__chunks__/{chunk-GI2BXTON.mjs.map → chunk-QY47XP6Y.mjs.map} +0 -0
  360. /package/out/__chunks__/{chunk-HCPI3NQP.mjs.map → chunk-S5SYCA4F.mjs.map} +0 -0
  361. /package/out/__chunks__/{chunk-IC7LTFNH.mjs.map → chunk-SDJBS6NR.mjs.map} +0 -0
  362. /package/out/__chunks__/{chunk-2PJP3H72.mjs.map → chunk-SHQJRZRG.mjs.map} +0 -0
  363. /package/out/__chunks__/{chunk-KV2IW2CT.mjs.map → chunk-SM62HZ3V.mjs.map} +0 -0
  364. /package/out/__chunks__/{chunk-IE7KB5QA.mjs.map → chunk-STLKOXG5.mjs.map} +0 -0
  365. /package/out/__chunks__/{chunk-DIRAY5XU.mjs.map → chunk-UAB7GELA.mjs.map} +0 -0
  366. /package/out/__chunks__/{chunk-H7BMGYSW.mjs.map → chunk-VF5CEBTD.mjs.map} +0 -0
  367. /package/out/__chunks__/{chunk-B2YN2K4Y.mjs.map → chunk-W4BZ6WZG.mjs.map} +0 -0
  368. /package/out/__chunks__/{chunk-RVNLIKEM.mjs.map → chunk-WBHIPVL6.mjs.map} +0 -0
  369. /package/out/__chunks__/{chunk-WO45TI6N.mjs.map → chunk-WFGN4M73.mjs.map} +0 -0
  370. /package/out/__chunks__/{chunk-CSBQZF3J.mjs.map → chunk-WKVB6JZV.mjs.map} +0 -0
  371. /package/out/__chunks__/{chunk-XDV6WH5M.mjs.map → chunk-WPT6RHNQ.mjs.map} +0 -0
  372. /package/out/__chunks__/{chunk-7KZRDBRD.mjs.map → chunk-WTZZWA22.mjs.map} +0 -0
  373. /package/out/__chunks__/{chunk-57EKOYML.mjs.map → chunk-X6QROJDH.mjs.map} +0 -0
  374. /package/out/__chunks__/{chunk-UPPVQNFF.mjs.map → chunk-XHAYGFJ5.mjs.map} +0 -0
  375. /package/out/__chunks__/{chunk-D7EX7MUQ.mjs.map → chunk-XMRQCZT4.mjs.map} +0 -0
  376. /package/out/__chunks__/{chunk-XPRJTAQX.mjs.map → chunk-XMVBCQNY.mjs.map} +0 -0
  377. /package/out/__chunks__/{chunk-VNO3UPYV.mjs.map → chunk-XQOUUZGE.mjs.map} +0 -0
  378. /package/out/__chunks__/{chunk-HZS3BVBK.mjs.map → chunk-XSXGXODH.mjs.map} +0 -0
  379. /package/out/__chunks__/{chunk-ZG72FAAC.mjs.map → chunk-XTQHD33S.mjs.map} +0 -0
  380. /package/out/__chunks__/{chunk-TUY5CCZR.mjs.map → chunk-XVQMJV6B.mjs.map} +0 -0
  381. /package/out/__chunks__/{chunk-2DW7TQJ7.mjs.map → chunk-YVWXI3GJ.mjs.map} +0 -0
  382. /package/out/__chunks__/{chunk-ZHLQ6ML2.mjs.map → chunk-ZBZA777X.mjs.map} +0 -0
  383. /package/out/__chunks__/{chunk-L53UGE2V.mjs.map → chunk-ZMDQIRLX.mjs.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{a as w}from"./chunk-XPRJTAQX.mjs";import{a as p}from"./chunk-KSZ6KLOV.mjs";import{a as O}from"./chunk-LLP256EY.mjs";import{a as M}from"./chunk-RVNLIKEM.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-MS4HJKFQ.mjs";import{d as B}from"./chunk-3AYP4TKJ.mjs";import{l as f}from"./chunk-M6MN4RXG.mjs";import{q as c}from"./chunk-57EKOYML.mjs";import{a as d}from"./chunk-GYT3GRW7.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-HSBPXEYO.mjs.map
1
+ import{a as w}from"./chunk-XMVBCQNY.mjs";import{a as p}from"./chunk-ISHOC3HN.mjs";import{a as O}from"./chunk-GDPJD7DM.mjs";import{a as M}from"./chunk-WBHIPVL6.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-3XSQSLWS.mjs";import{d as B}from"./chunk-OTZRBH74.mjs";import{l as f}from"./chunk-M6MN4RXG.mjs";import{q as c}from"./chunk-X6QROJDH.mjs";import{a as d}from"./chunk-6LCMMXSV.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-2NWOEEMH.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as i}from"./chunk-HQKLV6UC.mjs";import{c as n}from"./chunk-UGOYRSVR.mjs";import{a}from"./chunk-D7EX7MUQ.mjs";import{a as u}from"./chunk-RQA4GYJ2.mjs";import{a as s}from"./chunk-5UOXJCVE.mjs";var g=(o,t)=>{let r=`sdk-dapp-logout-event-${o}`,e=t.getItem(r);e&&o!==e||(t.setItem(r,o),t.removeItem(r))};async function L({provider:o,options:t={shouldBroadcastLogoutAcrossTabs:!0}}){let r=a();t.shouldBroadcastLogoutAcrossTabs&&s.localStorage&&g(r,s.localStorage);try{return u(),n.forEach(c=>c()),n.clear(),i.closeConnectionRef?.(),await o.logout()}catch(e){return console.error("Logging out error:",e),!1}}export{L as a};
2
- //# sourceMappingURL=chunk-YZ4QKLL4.mjs.map
1
+ import{a as i}from"./chunk-7ZDQAOZA.mjs";import{c as n}from"./chunk-KCPZTM4J.mjs";import{a}from"./chunk-XMRQCZT4.mjs";import{a as u}from"./chunk-C4YMIBIT.mjs";import{a as s}from"./chunk-6AI6YEYF.mjs";var g=(o,t)=>{let r=`sdk-dapp-logout-event-${o}`,e=t.getItem(r);e&&o!==e||(t.setItem(r,o),t.removeItem(r))};async function L({provider:o,options:t={shouldBroadcastLogoutAcrossTabs:!0}}){let r=a();t.shouldBroadcastLogoutAcrossTabs&&s.localStorage&&g(r,s.localStorage);try{return u(),n.forEach(c=>c()),n.clear(),i.closeConnectionRef?.(),await o.logout()}catch(e){return console.error("Logging out error:",e),!1}}export{L as a};
2
+ //# sourceMappingURL=chunk-2WF5ZWBD.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-5MIUR7TV.mjs";import{a as o}from"./chunk-PMHRZ5Y7.mjs";import{j as r}from"./chunk-E2GGD7D4.mjs";import{b as i}from"./chunk-3AYP4TKJ.mjs";import{s as n}from"./chunk-57EKOYML.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-T4B7EPFP.mjs.map
1
+ import{a as e}from"./chunk-7SI5UL5T.mjs";import{a as o}from"./chunk-PMHRZ5Y7.mjs";import{j as r}from"./chunk-E2GGD7D4.mjs";import{b as i}from"./chunk-OTZRBH74.mjs";import{s as n}from"./chunk-X6QROJDH.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-3NJIJ5ZX.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as c}from"./chunk-NJN53MJV.mjs";import{a as r}from"./chunk-YSCND2MX.mjs";import{q as n}from"./chunk-57EKOYML.mjs";var l={},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}})},f=()=>{n().setState(({toasts:t})=>{t.customToasts=[]},!1,{type:"removeAllCustomToasts",payload:{value:null}})},g=()=>{n().setState(({toasts:t})=>{t.transactionToasts=[]})},y=({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:r(),endTime:c(o),toastId:s})},!1,"addTransactionToast"),s},v=t=>{n().setState(({toasts:o})=>{o.transactionToasts=o.transactionToasts.filter(s=>s.toastId!==t)},!1,"removeTransactionToast"),delete u[t],delete l[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?(l[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,"createCustomToast"),a):(p(t,a),a)};export{l as a,u as b,p as c,C as d,f as e,g as f,y as g,v as h,h as i};
2
- //# sourceMappingURL=chunk-MS4HJKFQ.mjs.map
1
+ import{a as c}from"./chunk-NJN53MJV.mjs";import{a as r}from"./chunk-YSCND2MX.mjs";import{q as n}from"./chunk-X6QROJDH.mjs";var l={},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}})},f=()=>{n().setState(({toasts:t})=>{t.customToasts=[]},!1,{type:"removeAllCustomToasts",payload:{value:null}})},g=()=>{n().setState(({toasts:t})=>{t.transactionToasts=[]})},y=({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:r(),endTime:c(o),toastId:s})},!1,"addTransactionToast"),s},v=t=>{n().setState(({toasts:o})=>{o.transactionToasts=o.transactionToasts.filter(s=>s.toastId!==t)},!1,"removeTransactionToast"),delete u[t],delete l[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?(l[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,"createCustomToast"),a):(p(t,a),a)};export{l as a,u as b,p as c,C as d,f as e,g as f,y as g,v as h,h as i};
2
+ //# sourceMappingURL=chunk-3XSQSLWS.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-57EKOYML.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-2S5WHIFT.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-X6QROJDH.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-4TXQTO5H.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as l}from"./chunk-YUFPUG5O.mjs";import{a}from"./chunk-OEVIK4XL.mjs";import{a as c}from"./chunk-GI2BXTON.mjs";var p="Check if the MultiversX App is open on Ledger";async function v({manager:e,resolve:n,reject:d,shouldInitProvider:s}){let i=!c(),t=()=>v({manager:e,resolve:n,reject:d,shouldInitProvider:s}),o=()=>d("Device unavailable");try{e?.updateAccountScreen({isLoading:!0}),e&&i&&e.subscribeToProviderInit({handleRetry:t,handleCancel:o});let r=await a({shouldInitProvider:s});e&&i&&e.unsubscribeFromProviderInit({handleRetry:t,handleCancel:o}),n(r)}catch(r){if(!i)throw r;let{errorMessage:u,defaultErrorMessage:g}=l(r);e?.updateConnectScreen({error:u??g??p}),e&&e.subscribeToProviderInit({handleRetry:t,handleCancel:o})}}export{v as a};
2
- //# sourceMappingURL=chunk-B7W4YLNC.mjs.map
1
+ import{a as l}from"./chunk-YUFPUG5O.mjs";import{a}from"./chunk-QG7HIWZD.mjs";import{a as c}from"./chunk-QY47XP6Y.mjs";var p="Check if the MultiversX App is open on Ledger";async function v({manager:e,resolve:n,reject:d,shouldInitProvider:s}){let i=!c(),t=()=>v({manager:e,resolve:n,reject:d,shouldInitProvider:s}),o=()=>d("Device unavailable");try{e?.updateAccountScreen({isLoading:!0}),e&&i&&e.subscribeToProviderInit({handleRetry:t,handleCancel:o});let r=await a({shouldInitProvider:s});e&&i&&e.unsubscribeFromProviderInit({handleRetry:t,handleCancel:o}),n(r)}catch(r){if(!i)throw r;let{errorMessage:u,defaultErrorMessage:g}=l(r);e?.updateConnectScreen({error:u??g??p}),e&&e.subscribeToProviderInit({handleRetry:t,handleCancel:o})}}export{v as a};
2
+ //# sourceMappingURL=chunk-5F6WZKJE.mjs.map
@@ -1,2 +1,2 @@
1
- import{i as g}from"./chunk-MS4HJKFQ.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-KX6CNV2K.mjs.map
1
+ import{i as g}from"./chunk-3XSQSLWS.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-5LFQBGNR.mjs.map
@@ -0,0 +1,2 @@
1
+ import{b as r}from"./chunk-UTWIKUIK.mjs";import{s as t}from"./chunk-X6QROJDH.mjs";var i=(e,o)=>r(`transaction-${e}`)(o??t())??null;export{i as a};
2
+ //# sourceMappingURL=chunk-5QZXFNXN.mjs.map
@@ -0,0 +1,2 @@
1
+ var o=typeof window<"u"?window:{},n="5.6.2";export{o as a,n as b};
2
+ //# sourceMappingURL=chunk-6AI6YEYF.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/constants/window.constants.ts"],
4
- "sourcesContent": ["export const safeWindow: Window =\n typeof window !== 'undefined' ? window : ({} as Window);\n\nexport const version = '5.6.0'; // will be replaced at build time\n"],
4
+ "sourcesContent": ["export const safeWindow: Window =\n typeof window !== 'undefined' ? window : ({} as Window);\n\nexport const version = '5.6.2'; // will be replaced at build time\n"],
5
5
  "mappings": "AAAO,IAAMA,EACX,OAAO,OAAW,IAAc,OAAU,CAAC,EAEhCC,EAAU",
6
6
  "names": ["safeWindow", "version"]
7
7
  }
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-5UOXJCVE.mjs";var n=class{static get create(){return this.createComponent}static set create(e){this.createComponent=e}};n.createComponent=async({name:e,anchor:m})=>{if(!t?.customElements?.get(e))return null;let o=t.document.createElement(e);return(m||t.document.body).appendChild(o),await customElements.whenDefined(e),o};export{n as a};
2
- //# sourceMappingURL=chunk-GYT3GRW7.mjs.map
1
+ import{a as t}from"./chunk-6AI6YEYF.mjs";var n=class{static get create(){return this.createComponent}static set create(e){this.createComponent=e}};n.createComponent=async({name:e,anchor:m})=>{if(!t?.customElements?.get(e))return null;let o=t.document.createElement(e);return(m||t.document.body).appendChild(o),await customElements.whenDefined(e),o};export{n as a};
2
+ //# sourceMappingURL=chunk-6LCMMXSV.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"./chunk-6R2WFQ7U.mjs";import{a as l}from"./chunk-3XGEELWS.mjs";import{a as e}from"./chunk-D7EX7MUQ.mjs";import{d as s}from"./chunk-V5ZSFCKJ.mjs";import{s as i}from"./chunk-57EKOYML.mjs";var c=class{constructor(r){this.address="";this._login=null;this.loginAbortController=null;this.cancelLogin=()=>{this.loginAbortController&&this.loginAbortController.abort(),this.cancelAction?.(),this.loginAbortController=null};this.loginOperation=async r=>{if(!this._login)throw new Error("Provider is not initialized.");let o=await this._login(r);if(!o?.address)throw new Error("Provider is not initialized.");return{...o,address:o.address,signature:o.signature??""}};this.initializeAddress=()=>{if(this.address)return;let r=e();r&&(this.address=r)};this.cancelAction=void 0;this.address=r??""}getAccount(){throw new Error("Method not implemented.")}signTransaction(r,o){throw new Error("Method not implemented.")}async login(r){if(!this._login)throw new Error("Provider is not initialized.");this.loginAbortController&&this.loginAbortController.abort();let o=new AbortController;this.loginAbortController=o;let n=o.signal;try{let t=new Promise((m,p)=>{n.addEventListener("abort",()=>{p(new Error("Login cancelled"))})}),d=await Promise.race([this.loginOperation(r),t]);return this.loginAbortController=null,d}catch(t){throw this.loginAbortController=null,t}}async initSignState(){if(s(i())?.isSigningUiEnabled===!1)return{onClose:async()=>({}),manager:null};let{onClose:o,manager:n}=await l({cancelAction:this.cancelAction?.bind(this)}),t=this.getType();return n.subscribeToEventBus("CLOSE_PENDING_TRANSACTIONS",o),n.updateData({name:a[t],type:t}),{onClose:o,manager:n}}};export{c as a};
2
- //# sourceMappingURL=chunk-Z7OIZBTP.mjs.map
1
+ import{a}from"./chunk-6R2WFQ7U.mjs";import{a as l}from"./chunk-I5DX7KW7.mjs";import{a as e}from"./chunk-XMRQCZT4.mjs";import{d as s}from"./chunk-V5ZSFCKJ.mjs";import{s as i}from"./chunk-X6QROJDH.mjs";var c=class{constructor(r){this.address="";this._login=null;this.loginAbortController=null;this.cancelLogin=()=>{this.loginAbortController&&this.loginAbortController.abort(),this.cancelAction?.(),this.loginAbortController=null};this.loginOperation=async r=>{if(!this._login)throw new Error("Provider is not initialized.");let o=await this._login(r);if(!o?.address)throw new Error("Provider is not initialized.");return{...o,address:o.address,signature:o.signature??""}};this.initializeAddress=()=>{if(this.address)return;let r=e();r&&(this.address=r)};this.cancelAction=void 0;this.address=r??""}getAccount(){throw new Error("Method not implemented.")}signTransaction(r,o){throw new Error("Method not implemented.")}async login(r){if(!this._login)throw new Error("Provider is not initialized.");this.loginAbortController&&this.loginAbortController.abort();let o=new AbortController;this.loginAbortController=o;let n=o.signal;try{let t=new Promise((m,p)=>{n.addEventListener("abort",()=>{p(new Error("Login cancelled"))})}),d=await Promise.race([this.loginOperation(r),t]);return this.loginAbortController=null,d}catch(t){throw this.loginAbortController=null,t}}async initSignState(){if(s(i())?.isSigningUiEnabled===!1)return{onClose:async()=>({}),manager:null};let{onClose:o,manager:n}=await l({cancelAction:this.cancelAction?.bind(this)}),t=this.getType();return n.subscribeToEventBus("CLOSE_PENDING_TRANSACTIONS",o),n.updateData({name:a[t],type:t}),{onClose:o,manager:n}}};export{c as a};
2
+ //# sourceMappingURL=chunk-6Q6CYYJN.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as f}from"./chunk-BSA3IGL6.mjs";import{a as l}from"./chunk-4KA3OVFJ.mjs";import{a as g}from"./chunk-OBIQ63DJ.mjs";import{NativeAuthClient as y}from"@multiversx/sdk-native-auth-client";var N=h=>{let{origin:o,apiAddress:i,expirySeconds:r,blockHashShard:s,extraInfo:u,gatewayUrl:d,extraRequestHeaders:k}=l(h),e=new y({origin:o,apiUrl:i,expirySeconds:r,blockHashShard:s,gatewayUrl:d,extraRequestHeaders:k});return{initialize:async t=>{if(!i||!o)return"";let a=()=>e.getCurrentBlockHash(),n=t?.latestBlockInfo;n??=await g({apiAddress:i,blockHashShard:s,getBlockHash:a,noCache:t?.noCache});let{hash:m,timestamp:c}=n,p=e.encodeValue(JSON.stringify({...t?.extraInfo??u,...c?{timestamp:c}:{}}));return`${e.encodeValue(o)}.${m}.${r}.${p}`},getToken:({address:t,token:a,signature:n})=>e.getToken(t,a,n),getTokenExpiration:f}};export{N as a};
2
- //# sourceMappingURL=chunk-5MF4CGC2.mjs.map
1
+ import{a as f}from"./chunk-BSA3IGL6.mjs";import{a as l}from"./chunk-QFFHMFYL.mjs";import{a as g}from"./chunk-OBIQ63DJ.mjs";import{NativeAuthClient as y}from"@multiversx/sdk-native-auth-client";var N=h=>{let{origin:o,apiAddress:i,expirySeconds:r,blockHashShard:s,extraInfo:u,gatewayUrl:d,extraRequestHeaders:k}=l(h),e=new y({origin:o,apiUrl:i,expirySeconds:r,blockHashShard:s,gatewayUrl:d,extraRequestHeaders:k});return{initialize:async t=>{if(!i||!o)return"";let a=()=>e.getCurrentBlockHash(),n=t?.latestBlockInfo;n??=await g({apiAddress:i,blockHashShard:s,getBlockHash:a,noCache:t?.noCache});let{hash:m,timestamp:c}=n,p=e.encodeValue(JSON.stringify({...t?.extraInfo??u,...c?{timestamp:c}:{}}));return`${e.encodeValue(o)}.${m}.${r}.${p}`},getToken:({address:t,token:a,signature:n})=>e.getToken(t,a,n),getTokenExpiration:f}};export{N as a};
2
+ //# sourceMappingURL=chunk-6RTW3NNL.mjs.map
@@ -0,0 +1,2 @@
1
+ import{b as t}from"./chunk-7VHTZYM2.mjs";import{s as e}from"./chunk-X6QROJDH.mjs";function g(r=e()){return t(r).egldLabel}export{g as a};
2
+ //# sourceMappingURL=chunk-6SODPG3Z.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"./chunk-NGM3AVCY.mjs";import{s as u}from"./chunk-57EKOYML.mjs";import{e as s}from"./chunk-FK6DWWZF.mjs";function x(n){let e=u(),o=a(e),c=s(e),t=Object.keys(o).map(Number).reduce((r,m)=>{let i=o[m]?.transactions||[];return Math.max(r,...i.map(l=>l.nonce),0)},0);return t>0&&(t+=1),n==null?Math.max(t,c):Math.max(t,n.nonce,c)}export{x as a};
2
- //# sourceMappingURL=chunk-W4PB2EPE.mjs.map
1
+ import{a}from"./chunk-NGM3AVCY.mjs";import{s as u}from"./chunk-X6QROJDH.mjs";import{e as s}from"./chunk-FK6DWWZF.mjs";function x(n){let e=u(),o=a(e),c=s(e),t=Object.keys(o).map(Number).reduce((r,m)=>{let i=o[m]?.transactions||[];return Math.max(r,...i.map(l=>l.nonce),0)},0);return t>0&&(t+=1),n==null?Math.max(t,c):Math.max(t,n.nonce,c)}export{x as a};
2
+ //# sourceMappingURL=chunk-6TNJX6OV.mjs.map
@@ -1,2 +1,2 @@
1
- import{e}from"./chunk-M6MN4RXG.mjs";import{h as o}from"./chunk-7VHTZYM2.mjs";import{s as t}from"./chunk-57EKOYML.mjs";function m(){let r=o(t());return r?Math.max(1e3,r/2):9e4}export{m as a};
2
- //# sourceMappingURL=chunk-OFCQKFNJ.mjs.map
1
+ import{e}from"./chunk-M6MN4RXG.mjs";import{h as o}from"./chunk-7VHTZYM2.mjs";import{s as t}from"./chunk-X6QROJDH.mjs";function m(){let r=o(t());return r?Math.max(1e3,r/2):9e4}export{m as a};
2
+ //# sourceMappingURL=chunk-76ZOY6VP.mjs.map
@@ -0,0 +1,2 @@
1
+ import{q as t}from"./chunk-X6QROJDH.mjs";var l=e=>t().setState(({ui:a})=>{a.isSidePanelOpen=e},!1,{type:"setIsSidePanelOpen",payload:{value:e}});export{l as a};
2
+ //# sourceMappingURL=chunk-7N7XGUEI.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as r}from"./chunk-TWYGNEQS.mjs";import{b as n,c as o}from"./chunk-3AYP4TKJ.mjs";import{s}from"./chunk-57EKOYML.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-5MIUR7TV.mjs.map
1
+ import{a as r}from"./chunk-TWYGNEQS.mjs";import{b as n,c as o}from"./chunk-OTZRBH74.mjs";import{s}from"./chunk-X6QROJDH.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-7SI5UL5T.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-2NIE3WNK.mjs";var T=async a=>{let n=a.map(s=>s.hash),r=await e(n);return a.map(s=>{let t=r.find(o=>o?.txHash===s.hash);return{...s,status:t?.status,invalidTransaction:t==null,results:t?.results??[],previousStatus:s.status?.toString()||"",hasStatusChanged:!!(t&&t.status!==s.status)}})};export{T as a};
2
- //# sourceMappingURL=chunk-CEEQLHQZ.mjs.map
1
+ import{a as e}from"./chunk-JHN7ZXZD.mjs";var T=async a=>{let n=a.map(s=>s.hash),r=await e(n);return a.map(s=>{let t=r.find(o=>o?.txHash===s.hash);return{...s,status:t?.status,invalidTransaction:t==null,results:t?.results??[],previousStatus:s.status?.toString()||"",hasStatusChanged:!!(t&&t.status!==s.status)}})};export{T as a};
2
+ //# sourceMappingURL=chunk-7VIOX4FV.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-AUUO3J3I.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-HQKLV6UC.mjs.map
1
+ import{a as e}from"./chunk-CRZWEGX4.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-7ZDQAOZA.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as u}from"./chunk-U3UMCTU6.mjs";import{a as T}from"./chunk-WDKKHXUY.mjs";import{a as p}from"./chunk-573LAOYN.mjs";import{a as i}from"./chunk-M3F2J3PW.mjs";import{a as k}from"./chunk-HYPARWQN.mjs";import{a as l}from"./chunk-YJCTRUJT.mjs";import{c as m}from"./chunk-PJWJZHIS.mjs";import{a as o}from"./chunk-OQURAWR4.mjs";var g=class{static async processTransactions({address:v,egldLabel:L,explorerAddress:a,transactions:f}){let h=f.map(e=>k({address:v,explorerAddress:a,transaction:e}));return await Promise.all(h.map(async e=>{let s=e.receiverAssets?.name.replace(/\p{Emoji}/gu,""),c=e.senderAssets?.name.replace(/\p{Emoji}/gu,""),{senderLockedAccount:D,receiverLockedAccount:x}=await T({receiver:e.receiver,sender:e.sender,tokenId:e.tokenIdentifier}),{egldValueData:t,tokenValueData:n,nftValueData:r}=p({transaction:e}),y=r?.token.type==="MetaESDT"?void 0:r?.badgeText,d=u.getData({input:t?.value??n?.value??r?.value??"",decimals:t?.decimals??n?.decimals??r?.decimals??m,digits:2}),S={badge:y??void 0,collection:n?.token.collection??r?.token.collection,egldLabel:t?L:"",link:l({explorerAddress:a,to:n?.tokenExplorerLink??r?.tokenExplorerLink??""}),linkText:n?.tokenLinkText??r?.tokenLinkText,name:n?.token.name??r?.token.name,showFormattedAmount:!!(t||n?.tokenFormattedAmount||r?.tokenFormattedAmount),svgUrl:n?.token.svgUrl??r?.token.svgUrl,ticker:n?.token.ticker??r?.token.ticker,titleText:n?.titleText??r?.titleText,valueDecimal:d.valueDecimal,valueInteger:d.valueInteger},w=i(e.receiverShard),A=i(e.senderShard);return{age:e.transactionDetails.age,direction:e.transactionDetails.direction,method:e.transactionDetails.method,iconInfo:e.transactionDetails.iconInfo,link:e.links.transactionLink??"",txHash:e.txHash,receiver:{address:e.receiver,name:s??"",description:`${s??e.receiver} (${e.receiver})`,isContract:o(e.receiver),isTokenLocked:!!x,link:e.links.receiverLink??"",shard:w,shardLink:e.links.receiverShardLink,showLink:e.transactionDetails.direction!=="In"},sender:{address:e.sender,name:c??"",description:`${c??e.sender} (${e.sender})`,isContract:o(e.sender),isTokenLocked:!!D,link:e.links.senderLink??"",shard:A,shardLink:e.links.senderShardLink,showLink:e.transactionDetails.direction!=="Out"},value:S}}))}};export{g as a};
2
- //# sourceMappingURL=chunk-5ETHXOLQ.mjs.map
1
+ import{a as u}from"./chunk-U3UMCTU6.mjs";import{a as T}from"./chunk-BU5MQY6M.mjs";import{a as p}from"./chunk-573LAOYN.mjs";import{a as i}from"./chunk-M3F2J3PW.mjs";import{a as k}from"./chunk-HYPARWQN.mjs";import{a as l}from"./chunk-YJCTRUJT.mjs";import{c as m}from"./chunk-PJWJZHIS.mjs";import{a as o}from"./chunk-OQURAWR4.mjs";var g=class{static async processTransactions({address:v,egldLabel:L,explorerAddress:a,transactions:f}){let h=f.map(e=>k({address:v,explorerAddress:a,transaction:e}));return await Promise.all(h.map(async e=>{let s=e.receiverAssets?.name.replace(/\p{Emoji}/gu,""),c=e.senderAssets?.name.replace(/\p{Emoji}/gu,""),{senderLockedAccount:D,receiverLockedAccount:x}=await T({receiver:e.receiver,sender:e.sender,tokenId:e.tokenIdentifier}),{egldValueData:t,tokenValueData:n,nftValueData:r}=p({transaction:e}),y=r?.token.type==="MetaESDT"?void 0:r?.badgeText,d=u.getData({input:t?.value??n?.value??r?.value??"",decimals:t?.decimals??n?.decimals??r?.decimals??m,digits:2}),S={badge:y??void 0,collection:n?.token.collection??r?.token.collection,egldLabel:t?L:"",link:l({explorerAddress:a,to:n?.tokenExplorerLink??r?.tokenExplorerLink??""}),linkText:n?.tokenLinkText??r?.tokenLinkText,name:n?.token.name??r?.token.name,showFormattedAmount:!!(t||n?.tokenFormattedAmount||r?.tokenFormattedAmount),svgUrl:n?.token.svgUrl??r?.token.svgUrl,ticker:n?.token.ticker??r?.token.ticker,titleText:n?.titleText??r?.titleText,valueDecimal:d.valueDecimal,valueInteger:d.valueInteger},w=i(e.receiverShard),A=i(e.senderShard);return{age:e.transactionDetails.age,direction:e.transactionDetails.direction,method:e.transactionDetails.method,iconInfo:e.transactionDetails.iconInfo,link:e.links.transactionLink??"",txHash:e.txHash,receiver:{address:e.receiver,name:s??"",description:`${s??e.receiver} (${e.receiver})`,isContract:o(e.receiver),isTokenLocked:!!x,link:e.links.receiverLink??"",shard:w,shardLink:e.links.receiverShardLink,showLink:e.transactionDetails.direction!=="In"},sender:{address:e.sender,name:c??"",description:`${c??e.sender} (${e.sender})`,isContract:o(e.sender),isTokenLocked:!!D,link:e.links.senderLink??"",shard:A,shardLink:e.links.senderShardLink,showLink:e.transactionDetails.direction!=="Out"},value:S}}))}};export{g as a};
2
+ //# sourceMappingURL=chunk-AT2ULPIQ.mjs.map
@@ -0,0 +1,2 @@
1
+ import{b as e}from"./chunk-7VHTZYM2.mjs";import{s as r}from"./chunk-X6QROJDH.mjs";function d(t=r()){return e(t).explorerAddress}export{d as a};
2
+ //# sourceMappingURL=chunk-B7SOPVVG.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as o}from"./chunk-D7EX7MUQ.mjs";import{f as e,g as s}from"./chunk-DA76AK4I.mjs";async function m({message:r,provider:a,options:n}){let g=o(),i=new s({address:new e(g),data:r.data});return await a.signMessage(i,n)}export{m as a};
2
- //# sourceMappingURL=chunk-S6Z7SK4I.mjs.map
1
+ import{a as o}from"./chunk-XMRQCZT4.mjs";import{f as e,g as s}from"./chunk-DA76AK4I.mjs";async function m({message:r,provider:a,options:n}){let g=o(),i=new s({address:new e(g),data:r.data});return await a.signMessage(i,n)}export{m as a};
2
+ //# sourceMappingURL=chunk-BDQDMYE2.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"./chunk-GYT3GRW7.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-PSMZAY5L.mjs.map
1
+ import{a}from"./chunk-6LCMMXSV.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-BPQUWNOJ.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as u}from"./chunk-2DW7TQJ7.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-WDKKHXUY.mjs.map
1
+ import{a as u}from"./chunk-YVWXI3GJ.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-BU5MQY6M.mjs.map
@@ -1,2 +1,2 @@
1
- import{j as n,q as o}from"./chunk-57EKOYML.mjs";import{f as p}from"./chunk-DA76AK4I.mjs";var s=()=>o().setState(n),l=({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{s as a,l as b};
2
- //# sourceMappingURL=chunk-RQA4GYJ2.mjs.map
1
+ import{j as n,q as o}from"./chunk-X6QROJDH.mjs";import{f as p}from"./chunk-DA76AK4I.mjs";var s=()=>o().setState(n),l=({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{s as a,l as b};
2
+ //# sourceMappingURL=chunk-C4YMIBIT.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as r}from"./chunk-RVNLIKEM.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-2XGFPNHN.mjs.map
1
+ import{a as r}from"./chunk-WBHIPVL6.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-CP5EUGTA.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as T}from"./chunk-Q2Q4XN4M.mjs";import{b as u}from"./chunk-3VJNYMSP.mjs";import{d as l,e as m}from"./chunk-HCPI3NQP.mjs";import{b as a}from"./chunk-7VHTZYM2.mjs";import{q as r}from"./chunk-57EKOYML.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-AUUO3J3I.mjs.map
1
+ import{a as T}from"./chunk-Q2Q4XN4M.mjs";import{b as u}from"./chunk-OTJG5BXN.mjs";import{d as l,e as m}from"./chunk-S5SYCA4F.mjs";import{b as a}from"./chunk-7VHTZYM2.mjs";import{q as r}from"./chunk-X6QROJDH.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-CRZWEGX4.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as n}from"./chunk-WO45TI6N.mjs";import{b as r}from"./chunk-2S5WHIFT.mjs";import{b as i}from"./chunk-7VHTZYM2.mjs";import{s as o}from"./chunk-57EKOYML.mjs";async function M({shard:t,apiAddress:s}){if(t!=null)try{let a=await n(t,s);if(!a?.[t]?.lastBlock)return;let e=i(o());(!e.gasStationMetadata||!e.gasStationMetadata[t]||e.gasStationMetadata[t].lastBlock!==a[t].lastBlock)&&r({...e,gasStationMetadata:{...e.gasStationMetadata,...a}})}catch(a){console.error("Error fetching gas station metadata:",a)}}export{M as a};
2
- //# sourceMappingURL=chunk-YSJOMOP6.mjs.map
1
+ import{a as n}from"./chunk-WFGN4M73.mjs";import{b as r}from"./chunk-4TXQTO5H.mjs";import{b as i}from"./chunk-7VHTZYM2.mjs";import{s as o}from"./chunk-X6QROJDH.mjs";async function M({shard:t,apiAddress:s}){if(t!=null)try{let a=await n(t,s);if(!a?.[t]?.lastBlock)return;let e=i(o());(!e.gasStationMetadata||!e.gasStationMetadata[t]||e.gasStationMetadata[t].lastBlock!==a[t].lastBlock)&&r({...e,gasStationMetadata:{...e.gasStationMetadata,...a}})}catch(a){console.error("Error fetching gas station metadata:",a)}}export{M as a};
2
+ //# sourceMappingURL=chunk-EGUUSWSY.mjs.map
@@ -1,2 +1,2 @@
1
- import{b as i}from"./chunk-7VHTZYM2.mjs";import{s as e}from"./chunk-57EKOYML.mjs";import{a as o}from"./chunk-CKTFPRJS.mjs";var n="https://api.multiversx.com",s=60*60*24,a=5*60,d=t=>{let r=i(e());return{origin:t?.origin||o().origin,apiAddress:t?.apiAddress||r.apiAddress||n,expirySeconds:t?.expirySeconds||s,tokenExpirationToastWarningSeconds:t?.tokenExpirationToastWarningSeconds||a}};export{d as a};
2
- //# sourceMappingURL=chunk-XMZ5CAST.mjs.map
1
+ import{b as i}from"./chunk-7VHTZYM2.mjs";import{s as e}from"./chunk-X6QROJDH.mjs";import{a as o}from"./chunk-CKTFPRJS.mjs";var n="https://api.multiversx.com",s=60*60*24,a=5*60,d=t=>{let r=i(e());return{origin:t?.origin||o().origin,apiAddress:t?.apiAddress||r.apiAddress||n,expirySeconds:t?.expirySeconds||s,tokenExpirationToastWarningSeconds:t?.tokenExpirationToastWarningSeconds||a}};export{d as a};
2
+ //# sourceMappingURL=chunk-EVBHVGED.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as n}from"./chunk-HZS3BVBK.mjs";import{a as g}from"./chunk-YJCTRUJT.mjs";import{a as f}from"./chunk-2JKCBTYK.mjs";import{BigNumber as p}from"bignumber.js";async function b({manager:e,provider:s,login:a,token:u,explorerAddress:m,authData:x}){let o={manager:e,provider:s};return await new Promise(async function(A,I){async function d(t){let r=e?e.addressesPerPage??1:1,l=new p(t-1).times(r);e?.updateStartIndex(Math.max(0,parseInt(l.toString()))),await n(o)}async function c(t){if(!(!s||!a)){e?.updateConfirmScreen({...x,selectedAddress:t.selectedAddress,explorerLink:g({to:`/${f}/${t.selectedAddress}`,explorerAddress:m})});try{let r=u?await s.tokenLogin({token:Buffer.from(`${u}{}`),addressIndex:t.addressIndex}):await a({addressIndex:t.addressIndex});e.unsubscribeFromAuthEvents({handleCancel:i,handleAccessWallet:c,handleGoToPage:d}),A({address:r.address,signature:r.signature?r.signature.toString("hex"):"",addressIndex:t.addressIndex})}catch(r){console.error("User rejected login:",r),!!e?.getConfirmScreenData()&&await n(o)}}}async function i(){await n(o),e.unsubscribeFromAuthEvents({handleCancel:i,handleAccessWallet:c,handleGoToPage:d}),I("User cancelled login")}e.subscribeToAuthEvents({handleCancel:i,handleAccessWallet:c,handleGoToPage:d})})}export{b as a};
2
- //# sourceMappingURL=chunk-M2CIC466.mjs.map
1
+ import{a as n}from"./chunk-XSXGXODH.mjs";import{a as g}from"./chunk-YJCTRUJT.mjs";import{a as f}from"./chunk-2JKCBTYK.mjs";import{BigNumber as p}from"bignumber.js";async function b({manager:e,provider:s,login:a,token:u,explorerAddress:m,authData:x}){let o={manager:e,provider:s};return await new Promise(async function(A,I){async function d(t){let r=e?e.addressesPerPage??1:1,l=new p(t-1).times(r);e?.updateStartIndex(Math.max(0,parseInt(l.toString()))),await n(o)}async function c(t){if(!(!s||!a)){e?.updateConfirmScreen({...x,selectedAddress:t.selectedAddress,explorerLink:g({to:`/${f}/${t.selectedAddress}`,explorerAddress:m})});try{let r=u?await s.tokenLogin({token:Buffer.from(`${u}{}`),addressIndex:t.addressIndex}):await a({addressIndex:t.addressIndex});e.unsubscribeFromAuthEvents({handleCancel:i,handleAccessWallet:c,handleGoToPage:d}),A({address:r.address,signature:r.signature?r.signature.toString("hex"):"",addressIndex:t.addressIndex})}catch(r){console.error("User rejected login:",r),!!e?.getConfirmScreenData()&&await n(o)}}}async function i(){await n(o),e.unsubscribeFromAuthEvents({handleCancel:i,handleAccessWallet:c,handleGoToPage:d}),I("User cancelled login")}e.subscribeToAuthEvents({handleCancel:i,handleAccessWallet:c,handleGoToPage:d})})}export{b as a};
2
+ //# sourceMappingURL=chunk-FFA5EZQS.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as t}from"./chunk-WTZZWA22.mjs";function S(e){return t()(e)}export{S as a};
2
+ //# sourceMappingURL=chunk-FMC2XJDM.mjs.map
@@ -1,2 +1,2 @@
1
- import{q as t}from"./chunk-57EKOYML.mjs";var r=({key:e,value:a})=>{t().setState(({cache:c})=>{c[e]=a},!1,{type:"saveToCache",payload:{value:a}})},s=e=>{t().setState(({cache:a})=>{delete a[e]},!1,{type:"removeFromCache",payload:{value:e}})},h=()=>{t().setState(({cache:e})=>{Object.keys(e).forEach(a=>{delete e[a]})},!1,"clearCache")};export{r as a,s as b,h as c};
2
- //# sourceMappingURL=chunk-SIS54TKT.mjs.map
1
+ import{q as t}from"./chunk-X6QROJDH.mjs";var r=({key:e,value:a})=>{t().setState(({cache:c})=>{c[e]=a},!1,{type:"saveToCache",payload:{value:a}})},s=e=>{t().setState(({cache:a})=>{delete a[e]},!1,{type:"removeFromCache",payload:{value:e}})},h=()=>{t().setState(({cache:e})=>{Object.keys(e).forEach(a=>{delete e[a]})},!1,"clearCache")};export{r as a,s as b,h as c};
2
+ //# sourceMappingURL=chunk-G22AG5FA.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as n}from"./chunk-Z7OIZBTP.mjs";import{a as s}from"./chunk-LJX4MW7B.mjs";import{a as e,b as o}from"./chunk-5UOXJCVE.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-FE7JVDOF.mjs.map
1
+ import{a as n}from"./chunk-6Q6CYYJN.mjs";import{a as s}from"./chunk-LJX4MW7B.mjs";import{a as e,b as o}from"./chunk-6AI6YEYF.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-G32ZZQZJ.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-SUBC3H4J.mjs";import{a as t}from"./chunk-U64LDJTG.mjs";import{a as n}from"./chunk-GNBEFY25.mjs";import{b as e}from"./chunk-7VHTZYM2.mjs";import{s as o}from"./chunk-57EKOYML.mjs";var w=async r=>{let{isGuarded:i}=n();if(!s({isGuarded:i,transactions:r}))return r;let a=r[0].sender.toBech32(),{walletAddress:d}=e(o());return await(await t({address:a,walletUrl:d}))?.guardTransactions(r)||[]};export{w as a};
2
- //# sourceMappingURL=chunk-TSXYRZYR.mjs.map
1
+ import{a as s}from"./chunk-SUBC3H4J.mjs";import{a as t}from"./chunk-U64LDJTG.mjs";import{a as n}from"./chunk-LXHDLH3F.mjs";import{b as e}from"./chunk-7VHTZYM2.mjs";import{s as o}from"./chunk-X6QROJDH.mjs";var w=async r=>{let{isGuarded:i}=n();if(!s({isGuarded:i,transactions:r}))return r;let a=r[0].sender.toBech32(),{walletAddress:d}=e(o());return await(await t({address:a,walletUrl:d}))?.guardTransactions(r)||[]};export{w as a};
2
+ //# sourceMappingURL=chunk-GAARIX2L.mjs.map
@@ -1,2 +1,2 @@
1
- import{b as s,d as i,h as o}from"./chunk-MS4HJKFQ.mjs";var r=1e4,u=class{constructor(){this.timeoutIntervals=new Map;this.successfulToastLifetime=r;this.start=t=>{if(this.stop(t),this.successfulToastLifetime<=0)return;let e=setTimeout(()=>{o(t)},this.successfulToastLifetime);this.timeoutIntervals.set(t,e)};this.startWithCustomDuration=(t,e)=>{if(this.stop(t),e<=0)return;let a=setTimeout(()=>{i(t);let n=s[t];n?.()},e);this.timeoutIntervals.set(t,a)};this.stop=t=>{let e=this.timeoutIntervals.get(t);e&&(clearTimeout(e),this.timeoutIntervals.delete(t))}}init({successfulToastLifetime:t}){this.successfulToastLifetime=t??r}destroy(){this.timeoutIntervals.forEach(t=>clearTimeout(t)),this.timeoutIntervals.clear()}};export{u as a};
2
- //# sourceMappingURL=chunk-LLP256EY.mjs.map
1
+ import{b as s,d as i,h as o}from"./chunk-3XSQSLWS.mjs";var r=1e4,u=class{constructor(){this.timeoutIntervals=new Map;this.successfulToastLifetime=r;this.start=t=>{if(this.stop(t),this.successfulToastLifetime<=0)return;let e=setTimeout(()=>{o(t)},this.successfulToastLifetime);this.timeoutIntervals.set(t,e)};this.startWithCustomDuration=(t,e)=>{if(this.stop(t),e<=0)return;let a=setTimeout(()=>{i(t);let n=s[t];n?.()},e);this.timeoutIntervals.set(t,a)};this.stop=t=>{let e=this.timeoutIntervals.get(t);e&&(clearTimeout(e),this.timeoutIntervals.delete(t))}}init({successfulToastLifetime:t}){this.successfulToastLifetime=t??r}destroy(){this.timeoutIntervals.forEach(t=>clearTimeout(t)),this.timeoutIntervals.clear()}};export{u as a};
2
+ //# sourceMappingURL=chunk-GDPJD7DM.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as d}from"./chunk-SIS54TKT.mjs";import{f,g as l}from"./chunk-7VHTZYM2.mjs";import{a as S}from"./chunk-TOTEIAZR.mjs";import{a as u}from"./chunk-4O27AVB7.mjs";import{s as h}from"./chunk-57EKOYML.mjs";import{c as T}from"./chunk-FK6DWWZF.mjs";var I=r=>r.sort((n,t)=>t.timestamp-n.timestamp),M=async({transactions:r,...n})=>{let t=n.store??h(),o=[],i=[];if(r.forEach(s=>{let e=S(s.hash,t);e?o.push(e):i.push(s.hash)}),i.length===0)return I(o);let c=r.map(s=>({...s,txHash:s.hash})),g=c.map(s=>s.txHash),p=i.filter(s=>!g.includes(s));if(p.length>0){let e=r.filter(a=>p.includes(a.hash)).map(a=>({...a,txHash:a.hash,price:0,status:"pending",gasUsed:0,miniBlockHash:"",receiverShard:0,round:0,senderShard:0,timestamp:Date.now()}));c.push(...e)}let m=new Map;return o.forEach(s=>{let e=s.hash;e&&m.set(String(e),s)}),c.forEach(s=>{let e=u({transaction:s,address:T(t),explorerAddress:l(t),egldLabel:f(t)});e.status!=="pending"&&d({key:`transaction-${s.txHash}`,value:e}),m.set(s.txHash,e)}),I(Array.from(m.values()))};export{M as a};
2
- //# sourceMappingURL=chunk-OZHVKT7L.mjs.map
1
+ import{a as d}from"./chunk-G22AG5FA.mjs";import{f,g as l}from"./chunk-7VHTZYM2.mjs";import{a as S}from"./chunk-5QZXFNXN.mjs";import{a as u}from"./chunk-4O27AVB7.mjs";import{s as h}from"./chunk-X6QROJDH.mjs";import{c as T}from"./chunk-FK6DWWZF.mjs";var I=r=>r.sort((n,t)=>t.timestamp-n.timestamp),M=async({transactions:r,...n})=>{let t=n.store??h(),o=[],i=[];if(r.forEach(s=>{let e=S(s.hash,t);e?o.push(e):i.push(s.hash)}),i.length===0)return I(o);let c=r.map(s=>({...s,txHash:s.hash})),g=c.map(s=>s.txHash),p=i.filter(s=>!g.includes(s));if(p.length>0){let e=r.filter(a=>p.includes(a.hash)).map(a=>({...a,txHash:a.hash,price:0,status:"pending",gasUsed:0,miniBlockHash:"",receiverShard:0,round:0,senderShard:0,timestamp:Date.now()}));c.push(...e)}let m=new Map;return o.forEach(s=>{let e=s.hash;e&&m.set(String(e),s)}),c.forEach(s=>{let e=u({transaction:s,address:T(t),explorerAddress:l(t),egldLabel:f(t)});e.status!=="pending"&&d({key:`transaction-${s.txHash}`,value:e}),m.set(s.txHash,e)}),I(Array.from(m.values()))};export{M as a};
2
+ //# sourceMappingURL=chunk-GN6MQETD.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-5UOXJCVE.mjs";var t=()=>{if(!e)return"";try{let r=e.document?.referrer;return r?new URL(r).origin:""}catch(r){return console.error(r),""}};export{t as a};
2
- //# sourceMappingURL=chunk-VQCBZHSJ.mjs.map
1
+ import{a as e}from"./chunk-6AI6YEYF.mjs";var t=()=>{if(!e)return"";try{let r=e.document?.referrer;return r?new URL(r).origin:""}catch(r){return console.error(r),""}};export{t as a};
2
+ //# sourceMappingURL=chunk-GRQXEWKY.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as Z}from"./chunk-CEEQLHQZ.mjs";import{a as Q}from"./chunk-6UZHM5LW.mjs";import{c as W}from"./chunk-HSBPXEYO.mjs";import{a as rt}from"./chunk-YSJOMOP6.mjs";import{a as tt}from"./chunk-GI2BXTON.mjs";import{a as et}from"./chunk-M46Q3HDT.mjs";import{a as nt}from"./chunk-OFCQKFNJ.mjs";import{a as ot}from"./chunk-ABBDCZHP.mjs";import{a as mt}from"./chunk-4ODPAHHA.mjs";import{a as at}from"./chunk-5CTCDH76.mjs";import{a as st}from"./chunk-XDV6WH5M.mjs";import{a as ut}from"./chunk-S6Z7SK4I.mjs";import{a as M}from"./chunk-KX6CNV2K.mjs";import{a as ct}from"./chunk-YZ4QKLL4.mjs";import{b as A}from"./chunk-HQKLV6UC.mjs";import{c as O}from"./chunk-UGOYRSVR.mjs";import{a as d}from"./chunk-IC7LTFNH.mjs";import{a as J}from"./chunk-D7EX7MUQ.mjs";import{a as w}from"./chunk-W4PB2EPE.mjs";import{a as P,f as X}from"./chunk-HCPI3NQP.mjs";import{b as it}from"./chunk-RQA4GYJ2.mjs";import{b as k}from"./chunk-3AYP4TKJ.mjs";import{b as S}from"./chunk-V5ZSFCKJ.mjs";import{a as Y}from"./chunk-GNBEFY25.mjs";import{a as _}from"./chunk-5MF4CGC2.mjs";import{a as y}from"./chunk-BSA3IGL6.mjs";import{a as j}from"./chunk-NWRCQLFI.mjs";import{a as b}from"./chunk-KWVOWN7D.mjs";import{a as L}from"./chunk-HORSXVIV.mjs";import{b as G}from"./chunk-NGM3AVCY.mjs";import{a as K,b as q,q as v,s as l}from"./chunk-57EKOYML.mjs";import{c as V,d as $,f as H}from"./chunk-FK6DWWZF.mjs";import{b as f}from"./chunk-VNLGNNIL.mjs";import{b as B}from"./chunk-2AJ5KJ2V.mjs";import{a as h}from"./chunk-LJX4MW7B.mjs";import{b as D,c as F,f as z}from"./chunk-DA76AK4I.mjs";import U from"bignumber.js";var Lt=async()=>{try{let o=J(),{network:e}=d();try{let t=await b({address:o,baseURL:e.apiAddress});if(t!=null){let n={...t,username:L(t.username),nonce:w(t)};return P(n),n}}catch(t){console.error("Failed getting account ",t)}}catch(o){console.error("Failed getting address ",o)}return null};async function I(){let o=T();if(o==null)throw"Provider not initialized";try{if(!o.init)throw"Current provider does not have init() function";return await o.init()?await Lt():void 0}catch(e){console.error("Failed initializing provider ",e)}}async function gt({sessionId:o,transactionBatch:e,isSequential:t}){try{if(e==null)return;let n=tt(),r=ot(e),i=await Z(r);for(let g of i)await et({serverTransaction:g,sessionId:o,isSequential:t});if(!i.every(g=>g.status!=="pending"))return;n&&await I();let{transactions:c}=l(),s=c?.[o];if(s.transactions.every(g=>g.status==="success"))return k({sessionId:o,status:"success"});if(s.transactions.some(g=>g.status==="fail"))return k({sessionId:o,status:"fail"});if(s.transactions.every(g=>g.status==="not executed"))return k({sessionId:o,status:"invalid"})}catch(n){console.error(n)}}async function pt(){let o=G(l()),e=Object.entries(o);e.length!==0&&await Promise.all(e.map(([t,{transactions:n}])=>gt({sessionId:t,transactionBatch:n})))}async function x(){let o=v(),e=nt(),t=null,n=$(o.getState())?.timestamp??null,r=async()=>{try{await pt()}catch(a){console.error("[trackTransactions] Error checking transaction status:",a)}},i=()=>{t||(t=setInterval(r,e))},p=()=>{t&&(clearInterval(t),t=null)},c=()=>{p();let a=o.subscribe(({account:{websocketEvent:m}})=>{m?.message&&m.timestamp!=null&&n!==m.timestamp&&(n=m.timestamp,r())});O.set("websocketEventReceived",a)};r();let s=()=>{p()},u=o.subscribe(({account:{address:a},config:{websocketStatus:m}},g)=>{if(g.config.websocketStatus!==m)switch(m){case"completed":c();break;case"pending":i();break;default:a?i():s();break}});return O.set("websocketStatusChanged",u),{stopTransactionsTracking:s}}async function N({address:o,provider:e,apiAddress:t}){let n=await b({address:o,baseURL:t});if(!n)throw new Error("Account not found");it({address:o,providerType:e.getType()});let r={...n,username:L(n.username),nonce:w(n)};P(r),await A(o),x(),n.shard!=null&&await rt({shard:Number(n.shard),apiAddress:t})}async function lt({provider:o,nativeAuthConfig:e,token:t}){let{network:{apiAddress:n}}=d(),r=_(e),i=t;i||(i=await r.initialize({noCache:!0}));let p=await o.login({token:i}),{address:c,signature:s,...u}=p;if(!c)return console.warn("Login cancelled."),null;if(!s)return console.error("Failed to sign login token"),null;let a=j(u?.accessToken),m=await at({loginData:p,nativeAuthConfig:e,loginToken:i}),g=a?u.accessToken:r.getToken({address:c,token:m,signature:s});q({loginToken:i,signature:s,nativeAuthToken:g});let C=await st({loginToken:i,extraInfoData:{multisig:u?.multisig,impersonate:u?.impersonate},address:c});return await N({address:C,provider:o,apiAddress:n}),{address:C,signature:s}}async function dt(o){let{network:{apiAddress:e}}=d();await o.login();let t=await o.getAddress();if(!t)throw new Error("Address not found");return await N({address:t,provider:o,apiAddress:e}),{address:t}}async function ft(o,e){let t=S(l());if(t)return await lt({provider:o,nativeAuthConfig:t,token:e?.token});let{address:n}=await dt(o);return await A(n),x(),{address:n,signature:""}}async function Tt({provider:o,transactions:e,options:t={}}){await I();let{isGuarded:n,activeGuardianAddress:r,nonce:i}=Y(),p=o.getType()===h.ledger,c=mt({latestNonce:i,transactions:e}),s=r&&n&&!t.skipGuardian?c?.map(a=>(a.version=D.withTxOptions().valueOf(),a.options=F.withOptions({guarded:!0,...p?{hashSign:!0}:{}}).valueOf(),a.guardian=z.newFromBech32(r),a)):c,u=await o.signTransactions(s,t)??[];return X(i+u.length),u}var E=class{constructor(e){this._isLoggingOut=!1;this.provider=e}init(){return this.provider.init()}async login(e){let t=await ft(this.provider,e);return K(this.provider.getType()),ht(this),R.getInstance().init(),t}isInitialized(){return this.provider.isInitialized()}async logout(e={shouldBroadcastLogoutAcrossTabs:!0}){if(this._isLoggingOut)return console.warn("Logout already in progress"),!1;this._isLoggingOut=!0;let t=await ct({provider:this.provider,options:e});return this._isLoggingOut=!1,t}getType(){return this.provider.getType()}getProvider(){return this.provider}async signTransactions(e,t){try{return await Tt({provider:this.provider,transactions:e,options:t})}catch(n){let r=M(n);throw new Error(r)}}async signMessage(e,t){try{return await ut({provider:this.provider,message:e,options:t})}catch(n){let r=M(n,"warning");throw new Error(r)}}cancelLogin(){this.provider.cancelLogin?.()}};var vt=null;function ht(o){vt=o}function T(){return vt||new E(B)}var R=class o{constructor(){this.store=v();this.warningLogoutTimeoutRef=null;this.actualLogoutTimeoutRef=null;this.plannedLogoutTimeoutRef=null;this.plannedLogoutKey=null;this.init=async()=>{if(!this.shouldStart())return;let e=this.store.getState(),t=f(e),{isExpired:n}=y(t?.nativeAuthToken);n?T().logout():this.addPlannedLogout()};this.stop=()=>{clearTimeout(this.warningLogoutTimeoutRef??0),clearTimeout(this.plannedLogoutTimeoutRef??0),clearTimeout(this.actualLogoutTimeoutRef??0),this.warningLogoutTimeoutRef=null,this.plannedLogoutTimeoutRef=null,this.actualLogoutTimeoutRef=null,this.plannedLogoutKey=null};this.shouldStart=()=>{let e=this.store.getState(),t=f(e),n=H(e);return!!(t?.nativeAuthToken&&n)};this.addPlannedLogout=()=>{let e=T(),t=V(this.store.getState()),n=e.getType()===h.webview;if(!t||n)return;this.addLogoutWarning();let r=f(this.store.getState()),{secondsUntilExpires:i,expiresAt:p}=y(r?.nativeAuthToken),c=new U(String(i)),s=`${t}_${p}`,u=this.plannedLogoutKey===s;if(!(i&&c.isGreaterThan(0))||u)return;this.plannedLogoutKey=s,clearTimeout(this.plannedLogoutTimeoutRef??0);let m=c.times(1e3);this.actualLogoutTimeoutRef=setTimeout(()=>{W.getInstance().createCustomToast({toastId:"native-auth-logout",iconClassName:"warning",title:"Logging out",icon:"close",message:"Your session has expired!"}),this.actualLogoutTimeoutRef=null},m.toNumber()-3e3),this.plannedLogoutTimeoutRef=setTimeout(()=>{e.logout(),this.plannedLogoutTimeoutRef=null,this.plannedLogoutKey=null},m.toNumber())};this.addLogoutWarning=()=>{if(this.warningLogoutTimeoutRef)return;let e=S(this.store.getState()),t=f(this.store.getState()),{secondsUntilExpires:n}=y(t?.nativeAuthToken),r=new U(String(n)),i=r.times(1e3);if(!n||r.isLessThanOrEqualTo(0)||!e?.tokenExpirationToastWarningSeconds)return;let c=new U(e?.tokenExpirationToastWarningSeconds??0).times(1e3),s=r.times(1e3).minus(c),u=Q(i.toNumber()),a=s.isLessThanOrEqualTo(0)?0:s.toNumber();clearTimeout(this.warningLogoutTimeoutRef??0),this.warningLogoutTimeoutRef=setTimeout(()=>{W.getInstance().createCustomToast({toastId:"native-auth-expired",iconClassName:"warning",title:"Session Expiration Warning",icon:"hourglass",message:`Your session will expire in ${u}!`}),this.warningLogoutTimeoutRef=null},a)}}static getInstance(){return o.instance||(o.instance=new o),o.instance}};export{R as a,gt as b,pt as c,x as d,N as e,lt as f,dt as g,ft as h,Tt as i,E as j,ht as k,T as l,I as m};
2
- //# sourceMappingURL=chunk-75FZNOHX.mjs.map
1
+ import{a as Z}from"./chunk-7VIOX4FV.mjs";import{a as Q}from"./chunk-6UZHM5LW.mjs";import{c as W}from"./chunk-2NWOEEMH.mjs";import{a as rt}from"./chunk-EGUUSWSY.mjs";import{a as tt}from"./chunk-QY47XP6Y.mjs";import{a as et}from"./chunk-KYRA3SU5.mjs";import{a as nt}from"./chunk-76ZOY6VP.mjs";import{a as ot}from"./chunk-ABBDCZHP.mjs";import{a as mt}from"./chunk-4ODPAHHA.mjs";import{a as at}from"./chunk-HWW2JJMZ.mjs";import{a as st}from"./chunk-WPT6RHNQ.mjs";import{a as ut}from"./chunk-BDQDMYE2.mjs";import{a as M}from"./chunk-5LFQBGNR.mjs";import{a as ct}from"./chunk-2WF5ZWBD.mjs";import{b as A}from"./chunk-7ZDQAOZA.mjs";import{c as O}from"./chunk-KCPZTM4J.mjs";import{a as d}from"./chunk-SDJBS6NR.mjs";import{a as J}from"./chunk-XMRQCZT4.mjs";import{a as w}from"./chunk-6TNJX6OV.mjs";import{a as P,f as X}from"./chunk-S5SYCA4F.mjs";import{b as it}from"./chunk-C4YMIBIT.mjs";import{b as k}from"./chunk-OTZRBH74.mjs";import{b as S}from"./chunk-V5ZSFCKJ.mjs";import{a as Y}from"./chunk-LXHDLH3F.mjs";import{a as _}from"./chunk-6RTW3NNL.mjs";import{a as y}from"./chunk-BSA3IGL6.mjs";import{a as j}from"./chunk-NWRCQLFI.mjs";import{a as b}from"./chunk-HCQ72DY5.mjs";import{a as L}from"./chunk-HORSXVIV.mjs";import{b as G}from"./chunk-NGM3AVCY.mjs";import{a as K,b as q,q as v,s as l}from"./chunk-X6QROJDH.mjs";import{c as V,d as $,f as H}from"./chunk-FK6DWWZF.mjs";import{b as f}from"./chunk-VNLGNNIL.mjs";import{b as B}from"./chunk-2AJ5KJ2V.mjs";import{a as h}from"./chunk-LJX4MW7B.mjs";import{b as D,c as F,f as z}from"./chunk-DA76AK4I.mjs";import U from"bignumber.js";var Lt=async()=>{try{let o=J(),{network:e}=d();try{let t=await b({address:o,baseURL:e.apiAddress});if(t!=null){let n={...t,username:L(t.username),nonce:w(t)};return P(n),n}}catch(t){console.error("Failed getting account ",t)}}catch(o){console.error("Failed getting address ",o)}return null};async function I(){let o=T();if(o==null)throw"Provider not initialized";try{if(!o.init)throw"Current provider does not have init() function";return await o.init()?await Lt():void 0}catch(e){console.error("Failed initializing provider ",e)}}async function gt({sessionId:o,transactionBatch:e,isSequential:t}){try{if(e==null)return;let n=tt(),r=ot(e),i=await Z(r);for(let g of i)await et({serverTransaction:g,sessionId:o,isSequential:t});if(!i.every(g=>g.status!=="pending"))return;n&&await I();let{transactions:c}=l(),s=c?.[o];if(s.transactions.every(g=>g.status==="success"))return k({sessionId:o,status:"success"});if(s.transactions.some(g=>g.status==="fail"))return k({sessionId:o,status:"fail"});if(s.transactions.every(g=>g.status==="not executed"))return k({sessionId:o,status:"invalid"})}catch(n){console.error(n)}}async function pt(){let o=G(l()),e=Object.entries(o);e.length!==0&&await Promise.all(e.map(([t,{transactions:n}])=>gt({sessionId:t,transactionBatch:n})))}async function x(){let o=v(),e=nt(),t=null,n=$(o.getState())?.timestamp??null,r=async()=>{try{await pt()}catch(a){console.error("[trackTransactions] Error checking transaction status:",a)}},i=()=>{t||(t=setInterval(r,e))},p=()=>{t&&(clearInterval(t),t=null)},c=()=>{p();let a=o.subscribe(({account:{websocketEvent:m}})=>{m?.message&&m.timestamp!=null&&n!==m.timestamp&&(n=m.timestamp,r())});O.set("websocketEventReceived",a)};r();let s=()=>{p()},u=o.subscribe(({account:{address:a},config:{websocketStatus:m}},g)=>{if(g.config.websocketStatus!==m)switch(m){case"completed":c();break;case"pending":i();break;default:a?i():s();break}});return O.set("websocketStatusChanged",u),{stopTransactionsTracking:s}}async function N({address:o,provider:e,apiAddress:t}){let n=await b({address:o,baseURL:t});if(!n)throw new Error("Account not found");it({address:o,providerType:e.getType()});let r={...n,username:L(n.username),nonce:w(n)};P(r),await A(o),x(),n.shard!=null&&await rt({shard:Number(n.shard),apiAddress:t})}async function lt({provider:o,nativeAuthConfig:e,token:t}){let{network:{apiAddress:n}}=d(),r=_(e),i=t;i||(i=await r.initialize({noCache:!0}));let p=await o.login({token:i}),{address:c,signature:s,...u}=p;if(!c)return console.warn("Login cancelled."),null;if(!s)return console.error("Failed to sign login token"),null;let a=j(u?.accessToken),m=await at({loginData:p,nativeAuthConfig:e,loginToken:i}),g=a?u.accessToken:r.getToken({address:c,token:m,signature:s});q({loginToken:i,signature:s,nativeAuthToken:g});let C=await st({loginToken:i,extraInfoData:{multisig:u?.multisig,impersonate:u?.impersonate},address:c});return await N({address:C,provider:o,apiAddress:n}),{address:C,signature:s}}async function dt(o){let{network:{apiAddress:e}}=d();await o.login();let t=await o.getAddress();if(!t)throw new Error("Address not found");return await N({address:t,provider:o,apiAddress:e}),{address:t}}async function ft(o,e){let t=S(l());if(t)return await lt({provider:o,nativeAuthConfig:t,token:e?.token});let{address:n}=await dt(o);return await A(n),x(),{address:n,signature:""}}async function Tt({provider:o,transactions:e,options:t={}}){await I();let{isGuarded:n,activeGuardianAddress:r,nonce:i}=Y(),p=o.getType()===h.ledger,c=mt({latestNonce:i,transactions:e}),s=r&&n&&!t.skipGuardian?c?.map(a=>(a.version=D.withTxOptions().valueOf(),a.options=F.withOptions({guarded:!0,...p?{hashSign:!0}:{}}).valueOf(),a.guardian=z.newFromBech32(r),a)):c,u=await o.signTransactions(s,t)??[];return X(i+u.length),u}var E=class{constructor(e){this._isLoggingOut=!1;this.provider=e}init(){return this.provider.init()}async login(e){let t=await ft(this.provider,e);return K(this.provider.getType()),ht(this),R.getInstance().init(),t}isInitialized(){return this.provider.isInitialized()}async logout(e={shouldBroadcastLogoutAcrossTabs:!0}){if(this._isLoggingOut)return console.warn("Logout already in progress"),!1;this._isLoggingOut=!0;let t=await ct({provider:this.provider,options:e});return this._isLoggingOut=!1,t}getType(){return this.provider.getType()}getProvider(){return this.provider}async signTransactions(e,t){try{return await Tt({provider:this.provider,transactions:e,options:t})}catch(n){let r=M(n);throw new Error(r)}}async signMessage(e,t){try{return await ut({provider:this.provider,message:e,options:t})}catch(n){let r=M(n,"warning");throw new Error(r)}}cancelLogin(){this.provider.cancelLogin?.()}};var vt=null;function ht(o){vt=o}function T(){return vt||new E(B)}var R=class o{constructor(){this.store=v();this.warningLogoutTimeoutRef=null;this.actualLogoutTimeoutRef=null;this.plannedLogoutTimeoutRef=null;this.plannedLogoutKey=null;this.init=async()=>{if(!this.shouldStart())return;let e=this.store.getState(),t=f(e),{isExpired:n}=y(t?.nativeAuthToken);n?T().logout():this.addPlannedLogout()};this.stop=()=>{clearTimeout(this.warningLogoutTimeoutRef??0),clearTimeout(this.plannedLogoutTimeoutRef??0),clearTimeout(this.actualLogoutTimeoutRef??0),this.warningLogoutTimeoutRef=null,this.plannedLogoutTimeoutRef=null,this.actualLogoutTimeoutRef=null,this.plannedLogoutKey=null};this.shouldStart=()=>{let e=this.store.getState(),t=f(e),n=H(e);return!!(t?.nativeAuthToken&&n)};this.addPlannedLogout=()=>{let e=T(),t=V(this.store.getState()),n=e.getType()===h.webview;if(!t||n)return;this.addLogoutWarning();let r=f(this.store.getState()),{secondsUntilExpires:i,expiresAt:p}=y(r?.nativeAuthToken),c=new U(String(i)),s=`${t}_${p}`,u=this.plannedLogoutKey===s;if(!(i&&c.isGreaterThan(0))||u)return;this.plannedLogoutKey=s,clearTimeout(this.plannedLogoutTimeoutRef??0);let m=c.times(1e3);this.actualLogoutTimeoutRef=setTimeout(()=>{W.getInstance().createCustomToast({toastId:"native-auth-logout",iconClassName:"warning",title:"Logging out",icon:"close",message:"Your session has expired!"}),this.actualLogoutTimeoutRef=null},m.toNumber()-3e3),this.plannedLogoutTimeoutRef=setTimeout(()=>{e.logout(),this.plannedLogoutTimeoutRef=null,this.plannedLogoutKey=null},m.toNumber())};this.addLogoutWarning=()=>{if(this.warningLogoutTimeoutRef)return;let e=S(this.store.getState()),t=f(this.store.getState()),{secondsUntilExpires:n}=y(t?.nativeAuthToken),r=new U(String(n)),i=r.times(1e3);if(!n||r.isLessThanOrEqualTo(0)||!e?.tokenExpirationToastWarningSeconds)return;let c=new U(e?.tokenExpirationToastWarningSeconds??0).times(1e3),s=r.times(1e3).minus(c),u=Q(i.toNumber()),a=s.isLessThanOrEqualTo(0)?0:s.toNumber();clearTimeout(this.warningLogoutTimeoutRef??0),this.warningLogoutTimeoutRef=setTimeout(()=>{W.getInstance().createCustomToast({toastId:"native-auth-expired",iconClassName:"warning",title:"Session Expiration Warning",icon:"hourglass",message:`Your session will expire in ${u}!`}),this.warningLogoutTimeoutRef=null},a)}}static getInstance(){return o.instance||(o.instance=new o),o.instance}};export{R as a,gt as b,pt as c,x as d,N as e,lt as f,dt as g,ft as h,Tt as i,E as j,ht as k,T as l,I as m};
2
+ //# sourceMappingURL=chunk-GZLYHVRK.mjs.map
@@ -0,0 +1,2 @@
1
+ import{b as t}from"./chunk-XVQMJV6B.mjs";var c=o=>t(o);export{c as a};
2
+ //# sourceMappingURL=chunk-HCQ72DY5.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as u}from"./chunk-5MF4CGC2.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-5CTCDH76.mjs.map
1
+ import{a as u}from"./chunk-6RTW3NNL.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-HWW2JJMZ.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-CSBQZF3J.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-C7JC6X43.mjs.map
1
+ import{a as t}from"./chunk-WKVB6JZV.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-HY3UHHJZ.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-YKGVZIZL.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-3XGEELWS.mjs.map
1
+ import{a as e}from"./chunk-KUCQ5SRL.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-I5DX7KW7.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-VQCBZHSJ.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-R4PQZ3KR.mjs.map
1
+ import{a as e}from"./chunk-GRQXEWKY.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-IF25XU42.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as S}from"./chunk-QFXS7HGL.mjs";import{j as d,k as f,l as u,n as I}from"./chunk-E2GGD7D4.mjs";import{a as l}from"./chunk-XXV6KGR4.mjs";import{a as p}from"./chunk-OZHVKT7L.mjs";import{a as c}from"./chunk-NGM3AVCY.mjs";import{s as m}from"./chunk-57EKOYML.mjs";import{c as T}from"./chunk-FK6DWWZF.mjs";async function G(g){let s=g?.store??m(),n=[],a=[],y=l(s),F=c(s),C=T(s);for(let o of y.transactionToasts){let r=F[o.toastId];if(!r?.status)continue;let{status:t,transactions:P,transactionsDisplayInfo:h}=r,L=await p({transactions:P,store:s}),O=I(t),R=u(t),v=f(t),e=O||R||v,w=d(t),{startTime:x,endTime:D}=o;if(e&&a.some(b=>b.toastId===o.toastId))continue;let i=S({toastId:o.toastId,address:C,status:t,transactions:L,transactionsDisplayInfo:h,startTime:x,endTime:D});e&&a.push(i),w&&n.push(i)}return{pendingTransactionToasts:n,completedTransactionToasts:a}}export{G as a};
2
- //# sourceMappingURL=chunk-KSZ6KLOV.mjs.map
1
+ import{a as S}from"./chunk-QFXS7HGL.mjs";import{j as d,k as f,l as u,n as I}from"./chunk-E2GGD7D4.mjs";import{a as l}from"./chunk-XXV6KGR4.mjs";import{a as p}from"./chunk-GN6MQETD.mjs";import{a as c}from"./chunk-NGM3AVCY.mjs";import{s as m}from"./chunk-X6QROJDH.mjs";import{c as T}from"./chunk-FK6DWWZF.mjs";async function G(g){let s=g?.store??m(),n=[],a=[],y=l(s),F=c(s),C=T(s);for(let o of y.transactionToasts){let r=F[o.toastId];if(!r?.status)continue;let{status:t,transactions:P,transactionsDisplayInfo:h}=r,L=await p({transactions:P,store:s}),O=I(t),R=u(t),v=f(t),e=O||R||v,w=d(t),{startTime:x,endTime:D}=o;if(e&&a.some(b=>b.toastId===o.toastId))continue;let i=S({toastId:o.toastId,address:C,status:t,transactions:L,transactionsDisplayInfo:h,startTime:x,endTime:D});e&&a.push(i),w&&n.push(i)}return{pendingTransactionToasts:n,completedTransactionToasts:a}}export{G as a};
2
+ //# sourceMappingURL=chunk-ISHOC3HN.mjs.map
@@ -1,2 +1,2 @@
1
- import{d as t}from"./chunk-7VHTZYM2.mjs";import{s as r}from"./chunk-57EKOYML.mjs";import{y as e}from"./chunk-2JKCBTYK.mjs";import i from"axios";var c=async(s,a={apiAddress:""})=>{let{data:o}=await i.get(`${a.apiAddress||t(r())}/${e}`,{params:{hashes:s.join(","),withScResults:!0}});return o};export{c as a};
2
- //# sourceMappingURL=chunk-2NIE3WNK.mjs.map
1
+ import{d as t}from"./chunk-7VHTZYM2.mjs";import{s as r}from"./chunk-X6QROJDH.mjs";import{y as e}from"./chunk-2JKCBTYK.mjs";import i from"axios";var c=async(s,a={apiAddress:""})=>{let{data:o}=await i.get(`${a.apiAddress||t(r())}/${e}`,{params:{hashes:s.join(","),withScResults:!0}});return o};export{c as a};
2
+ //# sourceMappingURL=chunk-JHN7ZXZD.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as r}from"./chunk-5MF4CGC2.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-THWJWM3U.mjs.map
1
+ import{a as r}from"./chunk-6RTW3NNL.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-JQJPJU2Q.mjs.map
@@ -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-57EKOYML.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-EKYWBNA4.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-X6QROJDH.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-KCE7SWEX.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-5UOXJCVE.mjs";import{createJSONStorage as o}from"zustand/middleware";var r={persistReducersStorageType:"localStorage"},i=e?o(()=>e[r.persistReducersStorageType]):void 0,p=new Map,n=3e3;export{r as a,i as b,p as c,n as d};
2
- //# sourceMappingURL=chunk-UGOYRSVR.mjs.map
1
+ import{a as e}from"./chunk-6AI6YEYF.mjs";import{createJSONStorage as o}from"zustand/middleware";var r={persistReducersStorageType:"localStorage"},i=e?o(()=>e[r.persistReducersStorageType]):void 0,p=new Map,n=3e3;export{r as a,i as b,p as c,n as d};
2
+ //# sourceMappingURL=chunk-KCPZTM4J.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-RVNLIKEM.mjs";var e=class n extends t{constructor(){super({uiDataUpdateEvent:"DATA_UPDATE_PENDING_TRANSACTIONS",uiTag:"mvx-pending-transactions-panel"});this.initialData=null;this.data=this.initialData}static getInstance(){return n.instance||(n.instance=new n),n.instance}isPendingTransactionsOpen(){return this.isOpen}async setupEventListeners(){this.eventBus&&this.subscribeToEventBus("CLOSE_PENDING_TRANSACTIONS",this.closeUI.bind(this))}};export{e as a};
2
- //# sourceMappingURL=chunk-YKGVZIZL.mjs.map
1
+ import{a as t}from"./chunk-WBHIPVL6.mjs";var e=class n extends t{constructor(){super({uiDataUpdateEvent:"DATA_UPDATE_PENDING_TRANSACTIONS",uiTag:"mvx-pending-transactions-panel"});this.initialData=null;this.data=this.initialData}static getInstance(){return n.instance||(n.instance=new n),n.instance}isPendingTransactionsOpen(){return this.isOpen}async setupEventListeners(){this.eventBus&&this.subscribeToEventBus("CLOSE_PENDING_TRANSACTIONS",this.closeUI.bind(this))}};export{e as a};
2
+ //# sourceMappingURL=chunk-KUCQ5SRL.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as m}from"./chunk-T4B7EPFP.mjs";import{a as u}from"./chunk-5MIUR7TV.mjs";import{a}from"./chunk-PMHRZ5Y7.mjs";import{l as p}from"./chunk-E2GGD7D4.mjs";import{b as o}from"./chunk-3AYP4TKJ.mjs";var n={};async function b({serverTransaction:r,sessionId:t,isSequential:c}){let{hash:e,status:s,invalidTransaction:f,hasStatusChanged:S}=r;try{if(n[e]>30){o({sessionId:t,status:"timedOut"}),await a({sessionId:t,status:"timedOut"});return}if(f&&!c||s==="sent"){n[e]=n[e]?n[e]+1:1;return}if(c&&!s){let i=u({sessionId:t,transaction:r});await a({sessionId:t,status:i});return}if(S){let i=u({sessionId:t,transaction:r});await a({sessionId:t,status:i})}p(s)&&await m({sessionId:t,transaction:r})}catch(T){console.error(T),o({sessionId:t,status:"timedOut"}),await a({sessionId:t,status:"timedOut"})}}export{b as a};
2
- //# sourceMappingURL=chunk-M46Q3HDT.mjs.map
1
+ import{a as m}from"./chunk-3NJIJ5ZX.mjs";import{a as u}from"./chunk-7SI5UL5T.mjs";import{a}from"./chunk-PMHRZ5Y7.mjs";import{l as p}from"./chunk-E2GGD7D4.mjs";import{b as o}from"./chunk-OTZRBH74.mjs";var n={};async function b({serverTransaction:r,sessionId:t,isSequential:c}){let{hash:e,status:s,invalidTransaction:f,hasStatusChanged:S}=r;try{if(n[e]>30){o({sessionId:t,status:"timedOut"}),await a({sessionId:t,status:"timedOut"});return}if(f&&!c||s==="sent"){n[e]=n[e]?n[e]+1:1;return}if(c&&!s){let i=u({sessionId:t,transaction:r});await a({sessionId:t,status:i});return}if(S){let i=u({sessionId:t,transaction:r});await a({sessionId:t,status:i})}p(s)&&await m({sessionId:t,transaction:r})}catch(T){console.error(T),o({sessionId:t,status:"timedOut"}),await a({sessionId:t,status:"timedOut"})}}export{b as a};
2
+ //# sourceMappingURL=chunk-KYRA3SU5.mjs.map
@@ -0,0 +1,2 @@
1
+ import{s as o}from"./chunk-X6QROJDH.mjs";import{a as t}from"./chunk-FK6DWWZF.mjs";function n(r=o()){return t(r)}export{n as a};
2
+ //# sourceMappingURL=chunk-LXHDLH3F.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as r}from"./chunk-55W25Q35.mjs";import{a as s}from"./chunk-OZHVKT7L.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-IBNTHQ5J.mjs.map
1
+ import{a as r}from"./chunk-55W25Q35.mjs";import{a as s}from"./chunk-GN6MQETD.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-MOUCHIKH.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-PSMZAY5L.mjs";var n=class t extends e{constructor(){super({uiDataUpdateEvent:"DATA_UPDATE",uiTag:"mvx-wallet-connect"});this.initialData={wcURI:"",walletConnectDeepLink:""};this.data={...this.initialData}}static getInstance(){return t.instance||(t.instance=new t),t.instance}handleClose(a){a?.isLoginFinished||(this.anchor?this.anchor.dispatchEvent(new CustomEvent("ANCHOR_CLOSE",{composed:!1,bubbles:!1})):this.destroy())}async setupEventListeners(){this.eventBus&&(this.eventBus.subscribe("CLOSE",this.handleClose.bind(this)),this.eventBus.subscribe("UI_DISCONNECTED",this.destroy.bind(this)))}};export{n as a};
2
- //# sourceMappingURL=chunk-UUT43IJZ.mjs.map
1
+ import{a as e}from"./chunk-BPQUWNOJ.mjs";var n=class t extends e{constructor(){super({uiDataUpdateEvent:"DATA_UPDATE",uiTag:"mvx-wallet-connect"});this.initialData={wcURI:"",walletConnectDeepLink:""};this.data={...this.initialData}}static getInstance(){return t.instance||(t.instance=new t),t.instance}handleClose(a){a?.isLoginFinished||(this.anchor?this.anchor.dispatchEvent(new CustomEvent("ANCHOR_CLOSE",{composed:!1,bubbles:!1})):this.destroy())}async setupEventListeners(){this.eventBus&&(this.eventBus.subscribe("CLOSE",this.handleClose.bind(this)),this.eventBus.subscribe("UI_DISCONNECTED",this.destroy.bind(this)))}};export{n as a};
2
+ //# sourceMappingURL=chunk-MZHUPMBI.mjs.map
@@ -1,2 +1,2 @@
1
- import{d as o}from"./chunk-UGOYRSVR.mjs";import{a as r}from"./chunk-DIRAY5XU.mjs";var n=o/1e3;async function S({store:i,getStorageCallback:a}){if(a!==r)try{await new Promise((t,e)=>{i.persist.hasHydrated()&&t(),i.persist.onFinishHydration(()=>{t()}),setTimeout(()=>{e()},o)})}catch(t){console.warn(`Store rehydration timed out after ${n} seconds. Continuing initialization...`,t?.message)}}export{S as a};
2
- //# sourceMappingURL=chunk-S56636YA.mjs.map
1
+ import{d as o}from"./chunk-KCPZTM4J.mjs";import{a as r}from"./chunk-UAB7GELA.mjs";var n=o/1e3;async function S({store:i,getStorageCallback:a}){if(a!==r)try{await new Promise((t,e)=>{i.persist.hasHydrated()&&t(),i.persist.onFinishHydration(()=>{t()}),setTimeout(()=>{e()},o)})}catch(t){console.warn(`Store rehydration timed out after ${n} seconds. Continuing initialization...`,t?.message)}}export{S as a};
2
+ //# sourceMappingURL=chunk-NOV7YLBH.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-IE7KB5QA.mjs";import{a as p}from"./chunk-M2CIC466.mjs";import{a as m}from"./chunk-HZS3BVBK.mjs";import{a as c}from"./chunk-WFMBEYKX.mjs";import{a as g}from"./chunk-VCFLLUN2.mjs";import{b as a}from"./chunk-HCPI3NQP.mjs";import{f as i}from"./chunk-57EKOYML.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-Q55HCS7B.mjs.map
1
+ import{a as s}from"./chunk-STLKOXG5.mjs";import{a as p}from"./chunk-FFA5EZQS.mjs";import{a as m}from"./chunk-XSXGXODH.mjs";import{a as c}from"./chunk-WFMBEYKX.mjs";import{a as g}from"./chunk-B7SOPVVG.mjs";import{b as a}from"./chunk-S5SYCA4F.mjs";import{f as i}from"./chunk-X6QROJDH.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-NQ33YSHO.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as o}from"./chunk-4TBVQD27.mjs";import{q as n}from"./chunk-57EKOYML.mjs";var r=e=>n().setState(({config:t})=>{t.nativeAuthConfig=e},!1,{type:"setNativeAuthConfig",payload:{value:e}}),c=e=>n().setState(({config:t})=>{t.websocketStatus=e},!1,{type:"setWebsocketStatus",payload:{value:e}}),C=e=>n().setState(({config:t})=>{if(e){let l=e.walletConnectV2RelayAddress||o.walletConnectV2RelayAddress,s=e.walletConnectDeepLink||o.walletConnectDeepLink;t.walletConnectConfig={...e,walletConnectDeepLink:s,walletConnectV2RelayAddress:l}}else t.walletConnectConfig=null},!1,{type:"setWalletConnectConfig",payload:{value:e}}),f=e=>n().setState(({config:t})=>{t.settings=e},!1,{type:"setProviderSettings",payload:{value:e}}),g=e=>n().setState(({config:t})=>{t.settings||(t.settings={}),t.settings.isSigningUiEnabled=e},!1,{type:"setIsSigningUiEnabled"});export{r as a,c as b,C as c,f as d,g as e};
2
- //# sourceMappingURL=chunk-3VJNYMSP.mjs.map
1
+ import{a as o}from"./chunk-4TBVQD27.mjs";import{q as n}from"./chunk-X6QROJDH.mjs";var r=e=>n().setState(({config:t})=>{t.nativeAuthConfig=e},!1,{type:"setNativeAuthConfig",payload:{value:e}}),c=e=>n().setState(({config:t})=>{t.websocketStatus=e},!1,{type:"setWebsocketStatus",payload:{value:e}}),C=e=>n().setState(({config:t})=>{if(e){let l=e.walletConnectV2RelayAddress||o.walletConnectV2RelayAddress,s=e.walletConnectDeepLink||o.walletConnectDeepLink;t.walletConnectConfig={...e,walletConnectDeepLink:s,walletConnectV2RelayAddress:l}}else t.walletConnectConfig=null},!1,{type:"setWalletConnectConfig",payload:{value:e}}),f=e=>n().setState(({config:t})=>{t.settings=e},!1,{type:"setProviderSettings",payload:{value:e}}),g=e=>n().setState(({config:t})=>{t.settings||(t.settings={}),t.settings.isSigningUiEnabled=e},!1,{type:"setIsSigningUiEnabled"});export{r as a,c as b,C as c,f as d,g as e};
2
+ //# sourceMappingURL=chunk-OTJG5BXN.mjs.map