@multiversx/sdk-dapp 5.3.3 → 5.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (383) hide show
  1. package/out/__chunks__/chunk-2GXPSWQ4.mjs +2 -0
  2. package/out/__chunks__/chunk-2UVDW2RQ.mjs +2 -0
  3. package/out/__chunks__/{chunk-JMK6YN6B.mjs → chunk-32MEBSR7.mjs} +2 -2
  4. package/out/__chunks__/{chunk-2QIUCSYX.mjs → chunk-4D2LHSRB.mjs} +2 -2
  5. package/out/__chunks__/{chunk-4PRJNNSH.mjs → chunk-4EQCI4IY.mjs} +2 -2
  6. package/out/__chunks__/chunk-4KXXF3PV.mjs +2 -0
  7. package/out/__chunks__/{chunk-DIHGGV4M.mjs → chunk-5OAY4PWR.mjs} +2 -2
  8. package/out/__chunks__/{chunk-NQE5YCZP.mjs → chunk-66SV7PYL.mjs} +2 -2
  9. package/out/__chunks__/chunk-6KZ72DNU.mjs +2 -0
  10. package/out/__chunks__/chunk-6O5Y7U4C.mjs +2 -0
  11. package/out/__chunks__/{chunk-3EKM2Y4K.mjs → chunk-6PMMPBFA.mjs} +2 -2
  12. package/out/__chunks__/{chunk-IZTW4MG5.mjs → chunk-6R6TFHBS.mjs} +2 -2
  13. package/out/__chunks__/{chunk-BJSQMG6V.mjs → chunk-766V4L43.mjs} +2 -2
  14. package/out/__chunks__/chunk-7LMYILJF.mjs +2 -0
  15. package/out/__chunks__/{chunk-LZWEL473.mjs → chunk-7QPD5RSY.mjs} +2 -2
  16. package/out/__chunks__/{chunk-UWWAVJFM.mjs → chunk-7ZHH6AD4.mjs} +2 -2
  17. package/out/__chunks__/{chunk-3G2Q2LCB.mjs → chunk-A4AC45BS.mjs} +2 -2
  18. package/out/__chunks__/{chunk-D27ZK232.mjs → chunk-B353O452.mjs} +2 -2
  19. package/out/__chunks__/{chunk-KKQKER7U.mjs → chunk-CL5IGYV5.mjs} +2 -2
  20. package/out/__chunks__/{chunk-QMZJNNU4.mjs → chunk-CQNJKGUF.mjs} +2 -2
  21. package/out/__chunks__/chunk-D5L63X7Y.mjs +2 -0
  22. package/out/__chunks__/{chunk-PCPUKFTJ.mjs.map → chunk-D5L63X7Y.mjs.map} +1 -1
  23. package/out/__chunks__/{chunk-AWH3CO5C.mjs → chunk-ENJAFJGK.mjs} +2 -2
  24. package/out/__chunks__/{chunk-6QPOPWIN.mjs → chunk-ERZNNJ4M.mjs} +2 -2
  25. package/out/__chunks__/{chunk-IVMRBKXP.mjs → chunk-FOFGZVG5.mjs} +2 -2
  26. package/out/__chunks__/{chunk-X6D2T4UF.mjs → chunk-G2GZG32F.mjs} +2 -2
  27. package/out/__chunks__/{chunk-YMDS57T6.mjs → chunk-GC5JRZOA.mjs} +2 -2
  28. package/out/__chunks__/{chunk-KOUT2Y7O.mjs → chunk-GVAJPM5C.mjs} +2 -2
  29. package/out/__chunks__/{chunk-6RCSIT2P.mjs → chunk-HDCJEKHM.mjs} +2 -2
  30. package/out/__chunks__/{chunk-3VIMQHXJ.mjs → chunk-HFY3MGS6.mjs} +2 -2
  31. package/out/__chunks__/{chunk-QZC64RDG.mjs → chunk-HP2XUCRI.mjs} +2 -2
  32. package/out/__chunks__/{chunk-XA4YS4GK.mjs → chunk-HUZZMMJX.mjs} +2 -2
  33. package/out/__chunks__/{chunk-CMERGCP7.mjs → chunk-HZ4ZWMRW.mjs} +2 -2
  34. package/out/__chunks__/{chunk-2XIBNXVY.mjs → chunk-I36DD2FW.mjs} +2 -2
  35. package/out/__chunks__/{chunk-WMRVRNAI.mjs → chunk-IOQULDE4.mjs} +2 -2
  36. package/out/__chunks__/{chunk-FNEL7WRG.mjs → chunk-J7BQ2H5Q.mjs} +2 -2
  37. package/out/__chunks__/{chunk-PS3SWN5M.mjs → chunk-JBF3CPLK.mjs} +2 -2
  38. package/out/__chunks__/chunk-JI27YEKS.mjs +2 -0
  39. package/out/__chunks__/{chunk-PWOYKKUY.mjs → chunk-JILAZBMF.mjs} +2 -2
  40. package/out/__chunks__/chunk-JXPL2SLD.mjs +2 -0
  41. package/out/__chunks__/chunk-K2FBVE6U.mjs +2 -0
  42. package/out/__chunks__/{chunk-LW6KBFPA.mjs → chunk-K7PXA7CN.mjs} +2 -2
  43. package/out/__chunks__/{chunk-IAN3XFXS.mjs → chunk-KR2GUJDQ.mjs} +2 -2
  44. package/out/__chunks__/{chunk-Y6QPE6SZ.mjs → chunk-LIDJNFTE.mjs} +2 -2
  45. package/out/__chunks__/chunk-LKC3E6AW.mjs +2 -0
  46. package/out/__chunks__/{chunk-FDR5TTUS.mjs → chunk-LL2IIBPG.mjs} +2 -2
  47. package/out/__chunks__/{chunk-6PCK2RPQ.mjs → chunk-LOPC75K6.mjs} +2 -2
  48. package/out/__chunks__/{chunk-WZEDZF3Q.mjs → chunk-LWW4KDFK.mjs} +2 -2
  49. package/out/__chunks__/{chunk-TWLO2IAN.mjs → chunk-M5EQGPV5.mjs} +2 -2
  50. package/out/__chunks__/{chunk-VSMFXZJI.mjs → chunk-NMK74PUW.mjs} +2 -2
  51. package/out/__chunks__/{chunk-IRFXPRDX.mjs → chunk-NPWS3TZS.mjs} +2 -2
  52. package/out/__chunks__/{chunk-KMITMS2L.mjs → chunk-OCLD2VI4.mjs} +2 -2
  53. package/out/__chunks__/{chunk-BE5OKL3L.mjs → chunk-OTEIKKOW.mjs} +2 -2
  54. package/out/__chunks__/{chunk-PIFCCIF3.mjs → chunk-PDI722XH.mjs} +2 -2
  55. package/out/__chunks__/{chunk-53NQH7NR.mjs → chunk-PFR5VSL2.mjs} +2 -2
  56. package/out/__chunks__/{chunk-LASOW7GT.mjs → chunk-PQ2OJ3JD.mjs} +2 -2
  57. package/out/__chunks__/{chunk-PGPTO2Q4.mjs → chunk-QHGCAYUB.mjs} +2 -2
  58. package/out/__chunks__/{chunk-SBCXU7OA.mjs → chunk-QJTWOZ3K.mjs} +2 -2
  59. package/out/__chunks__/chunk-R4BNJI2F.mjs +2 -0
  60. package/out/__chunks__/{chunk-XHCLYR42.mjs → chunk-S4TJTINB.mjs} +2 -2
  61. package/out/__chunks__/{chunk-RDEVBV56.mjs → chunk-SFGR74WM.mjs} +2 -2
  62. package/out/__chunks__/{chunk-FKUMHDP5.mjs → chunk-SMCI4JNY.mjs} +2 -2
  63. package/out/__chunks__/{chunk-CAOL6XLD.mjs → chunk-SMEKGCKH.mjs} +2 -2
  64. package/out/__chunks__/{chunk-W2A2N772.mjs → chunk-SOGQ76CF.mjs} +2 -2
  65. package/out/__chunks__/{chunk-7GWD5XR7.mjs → chunk-SQ7C3XLA.mjs} +2 -2
  66. package/out/__chunks__/{chunk-NGJIMP5Y.mjs → chunk-SZNAMXXH.mjs} +2 -2
  67. package/out/__chunks__/{chunk-YXNJS4KL.mjs → chunk-TJKB7YME.mjs} +2 -2
  68. package/out/__chunks__/{chunk-V7K77GSE.mjs → chunk-TPXNYEOT.mjs} +2 -2
  69. package/out/__chunks__/chunk-UBP7VBFB.mjs +2 -0
  70. package/out/__chunks__/{chunk-WYE5FJIJ.mjs → chunk-UBQUZNLX.mjs} +2 -2
  71. package/out/__chunks__/{chunk-AFOS3Q4N.mjs → chunk-UCWTYWB3.mjs} +2 -2
  72. package/out/__chunks__/chunk-UMJE36YK.mjs +2 -0
  73. package/out/__chunks__/chunk-UXP5UK2L.mjs +2 -0
  74. package/out/__chunks__/{chunk-7BESPSVI.mjs → chunk-VBNLRSKL.mjs} +2 -2
  75. package/out/__chunks__/{chunk-6RYKBAUE.mjs → chunk-VBWYZ6ZU.mjs} +2 -2
  76. package/out/__chunks__/{chunk-7TH3QSCV.mjs → chunk-VLASN3TA.mjs} +2 -2
  77. package/out/__chunks__/{chunk-C4FY7JBD.mjs → chunk-VT6N4MFC.mjs} +2 -2
  78. package/out/__chunks__/{chunk-D4JFV2LM.mjs → chunk-W6XNEY4N.mjs} +2 -2
  79. package/out/__chunks__/{chunk-UJTYOT5N.mjs → chunk-WDFIVLDW.mjs} +2 -2
  80. package/out/__chunks__/{chunk-VC74WYUB.mjs → chunk-WGFZEQNT.mjs} +2 -2
  81. package/out/__chunks__/{chunk-VC74WYUB.mjs.map → chunk-WGFZEQNT.mjs.map} +1 -1
  82. package/out/__chunks__/{chunk-LQAAQV3I.mjs → chunk-X4P6NIGX.mjs} +2 -2
  83. package/out/__chunks__/{chunk-K4E7GCWI.mjs → chunk-XAMG7OLZ.mjs} +2 -2
  84. package/out/__chunks__/{chunk-YGHJRPPY.mjs → chunk-XBIX2QET.mjs} +2 -2
  85. package/out/__chunks__/{chunk-5WJQ2KWS.mjs → chunk-XJY2BTDN.mjs} +2 -2
  86. package/out/__chunks__/{chunk-7FV6DEQX.mjs → chunk-XPASD5P4.mjs} +2 -2
  87. package/out/__chunks__/chunk-XXQ7FANC.mjs +2 -0
  88. package/out/__chunks__/{chunk-HX3JKALT.mjs → chunk-YEY7YGZD.mjs} +2 -2
  89. package/out/__chunks__/{chunk-JO7KFAZC.mjs → chunk-YKHYAKVW.mjs} +2 -2
  90. package/out/__chunks__/{chunk-PYRTFEMB.mjs → chunk-YPH67JEE.mjs} +2 -2
  91. package/out/__chunks__/{chunk-TRUOISVH.mjs → chunk-YYZKVLX7.mjs} +2 -2
  92. package/out/__chunks__/{chunk-3NSS3FT6.mjs → chunk-ZMC2BF4F.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.mjs +1 -1
  125. package/out/managers/UnlockPanelManager/index.mjs +1 -1
  126. package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.mjs +1 -1
  127. package/out/managers/internal/LedgerConnectStateManager/index.mjs +1 -1
  128. package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.mjs +1 -1
  129. package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.mjs +1 -1
  130. package/out/managers/internal/PendingTransactionsStateManager/index.mjs +1 -1
  131. package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.mjs +1 -1
  132. package/out/managers/internal/SidePanelBaseManager/index.mjs +1 -1
  133. package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.mjs +1 -1
  134. package/out/managers/internal/SignTransactionsStateManager/index.mjs +1 -1
  135. package/out/managers/internal/UIBaseManager/UIBaseManager.cjs.map +1 -1
  136. package/out/managers/internal/UIBaseManager/UIBaseManager.mjs +1 -1
  137. package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.mjs +1 -1
  138. package/out/managers/internal/WalletConnectStateManager/index.mjs +1 -1
  139. package/out/methods/account/getAccount.mjs +1 -1
  140. package/out/methods/account/getAccountInfo.mjs +1 -1
  141. package/out/methods/account/getAddress.mjs +1 -1
  142. package/out/methods/account/getIsLoggedIn.mjs +1 -1
  143. package/out/methods/account/getLatestNonce.mjs +1 -1
  144. package/out/methods/initApp/gasStationMetadata/setGasStationMetadata.mjs +1 -1
  145. package/out/methods/initApp/helpers/waitForStoreRehydration.mjs +1 -1
  146. package/out/methods/initApp/initApp.mjs +1 -1
  147. package/out/methods/initApp/websocket/initializeWebsocketConnection.mjs +1 -1
  148. package/out/methods/initApp/websocket/registerWebsocket.mjs +1 -1
  149. package/out/methods/loginInfo/getLoginInfo.mjs +1 -1
  150. package/out/methods/network/getEgldLabel.mjs +1 -1
  151. package/out/methods/network/getExplorerAddress.mjs +1 -1
  152. package/out/methods/network/getNetworkConfig.mjs +1 -1
  153. package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.mjs +1 -1
  154. package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/checkBatch.mjs +1 -1
  155. package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/runTransactionFailure.mjs +1 -1
  156. package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/runTransactionStatusUpdate.mjs +1 -1
  157. package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/updateTransactionAndSessionStatus.mjs +1 -1
  158. package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/index.mjs +1 -1
  159. package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.mjs +1 -1
  160. package/out/methods/trackTransactions/helpers/getPollingInterval.mjs +1 -1
  161. package/out/methods/trackTransactions/trackTransactions.mjs +1 -1
  162. package/out/methods/transactions/getFailedTransactions.mjs +1 -1
  163. package/out/methods/transactions/getFailedTransactionsSessions.mjs +1 -1
  164. package/out/methods/transactions/getPendingTransactions.mjs +1 -1
  165. package/out/methods/transactions/getPendingTransactionsSessions.mjs +1 -1
  166. package/out/methods/transactions/getSuccessfulTransactions.mjs +1 -1
  167. package/out/methods/transactions/getSuccessfulTransactionsSessions.mjs +1 -1
  168. package/out/methods/transactions/getTransactionSessions.mjs +1 -1
  169. package/out/providers/DappProvider/DappProvider.mjs +1 -1
  170. package/out/providers/DappProvider/helpers/login/helpers/accountLogin.mjs +1 -1
  171. package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.mjs +1 -1
  172. package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.mjs +1 -1
  173. package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.mjs +1 -1
  174. package/out/providers/DappProvider/helpers/login/helpers/getMultisigLoginToken.mjs +1 -1
  175. package/out/providers/DappProvider/helpers/login/helpers/loginWithNativeToken.mjs +1 -1
  176. package/out/providers/DappProvider/helpers/login/helpers/loginWithoutNativeToken.mjs +1 -1
  177. package/out/providers/DappProvider/helpers/login/login.mjs +1 -1
  178. package/out/providers/DappProvider/helpers/logout/logout.mjs +1 -1
  179. package/out/providers/DappProvider/helpers/signErrors/handleSignError.mjs +1 -1
  180. package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.mjs +1 -1
  181. package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.mjs +1 -1
  182. package/out/providers/DappProvider/index.mjs +1 -1
  183. package/out/providers/ProviderFactory.mjs +1 -1
  184. package/out/providers/helpers/accountProvider.mjs +1 -1
  185. package/out/providers/helpers/cancelCrossWindowAction.mjs +1 -1
  186. package/out/providers/helpers/restoreProvider.mjs +1 -1
  187. package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.mjs +1 -1
  188. package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.mjs +1 -1
  189. package/out/providers/strategies/CrossWindowProviderStrategy/index.mjs +1 -1
  190. package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.mjs +1 -1
  191. package/out/providers/strategies/ExtensionProviderStrategy/index.mjs +1 -1
  192. package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.mjs +1 -1
  193. package/out/providers/strategies/IframeProviderStrategy/index.mjs +1 -1
  194. package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.mjs +1 -1
  195. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/authenticateLedgerAccount.mjs +1 -1
  196. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/updateAccountsList/index.mjs +1 -1
  197. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/updateAccountsList/updateAccountsList.mjs +1 -1
  198. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/waitForLedgerSelection.mjs +1 -1
  199. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/index.mjs +1 -1
  200. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/getLedgerProvider.mjs +1 -1
  201. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/index.mjs +1 -1
  202. package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.mjs +1 -1
  203. package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.mjs +1 -1
  204. package/out/providers/strategies/LedgerProviderStrategy/index.mjs +1 -1
  205. package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.mjs +1 -1
  206. package/out/providers/strategies/WalletConnectProviderStrategy/index.mjs +1 -1
  207. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.mjs +1 -1
  208. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.mjs +1 -1
  209. package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.mjs +1 -1
  210. package/out/providers/strategies/WebviewProviderStrategy/index.mjs +1 -1
  211. package/out/providers/strategies/helpers/getPendingTransactionsHandlers.mjs +1 -1
  212. package/out/providers/strategies/helpers/index.mjs +1 -1
  213. package/out/providers/strategies/helpers/signMessage/signMessage.mjs +1 -1
  214. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.mjs +1 -1
  215. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.mjs +1 -1
  216. package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.mjs +1 -1
  217. package/out/providers/strategies/helpers/signTransactions/signTransactions.mjs +1 -1
  218. package/out/react/account/useGetAccount.mjs +1 -1
  219. package/out/react/account/useGetAccountInfo.mjs +1 -1
  220. package/out/react/account/useGetIsLoggedIn.mjs +1 -1
  221. package/out/react/account/useGetLatestNonce.mjs +1 -1
  222. package/out/react/index.mjs +1 -1
  223. package/out/react/loginInfo/useGetLoginInfo.mjs +1 -1
  224. package/out/react/network/useGetNetworkConfig.mjs +1 -1
  225. package/out/react/store/getReactStore.mjs +1 -1
  226. package/out/react/store/useSelector.mjs +1 -1
  227. package/out/react/transactions/useGetFailedTransactions.mjs +1 -1
  228. package/out/react/transactions/useGetFailedTransactionsSessions.mjs +1 -1
  229. package/out/react/transactions/useGetPendingTransactions.mjs +1 -1
  230. package/out/react/transactions/useGetPendingTransactionsSessions.mjs +1 -1
  231. package/out/react/transactions/useGetSuccessfulTransactions.mjs +1 -1
  232. package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs +1 -1
  233. package/out/react/transactions/useGetTransactionSessions.mjs +1 -1
  234. package/out/services/nativeAuth/index.mjs +1 -1
  235. package/out/services/nativeAuth/methods/buildNativeAuthConfig.mjs +1 -1
  236. package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.mjs +1 -1
  237. package/out/services/nativeAuth/nativeAuth.mjs +1 -1
  238. package/out/store/actions/account/accountActions.mjs +1 -1
  239. package/out/store/actions/account/index.mjs +1 -1
  240. package/out/store/actions/cache/cacheActions.mjs +1 -1
  241. package/out/store/actions/cache/index.mjs +1 -1
  242. package/out/store/actions/config/configActions.mjs +1 -1
  243. package/out/store/actions/config/index.mjs +1 -1
  244. package/out/store/actions/loginInfo/loginInfoActions.mjs +1 -1
  245. package/out/store/actions/network/index.mjs +1 -1
  246. package/out/store/actions/network/initializeNetwork.mjs +1 -1
  247. package/out/store/actions/network/networkActions.mjs +1 -1
  248. package/out/store/actions/sharedActions/index.mjs +1 -1
  249. package/out/store/actions/sharedActions/sharedActions.mjs +1 -1
  250. package/out/store/actions/toasts/index.mjs +1 -1
  251. package/out/store/actions/toasts/toastsActions.mjs +1 -1
  252. package/out/store/actions/transactions/transactionsActions.mjs +1 -1
  253. package/out/store/actions/ui/index.mjs +1 -1
  254. package/out/store/actions/ui/uiActions.mjs +1 -1
  255. package/out/store/middleware/applyMiddlewares.mjs +1 -1
  256. package/out/store/middleware/index.mjs +1 -1
  257. package/out/store/middleware/logoutMiddleware.mjs +1 -1
  258. package/out/store/storage/index.mjs +1 -1
  259. package/out/store/storage/storageCallback.mjs +1 -1
  260. package/out/store/store.mjs +1 -1
  261. package/out/utils/ComponentFactory.mjs +1 -1
  262. package/out/utils/account/fetchAccount.mjs +1 -1
  263. package/out/utils/account/refreshAccount.mjs +1 -1
  264. package/out/utils/account/refreshNativeAuthTokenLogin.mjs +1 -1
  265. package/out/utils/transactions/getActiveTransactionsStatus.mjs +1 -1
  266. package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.mjs +1 -1
  267. package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.mjs +1 -1
  268. package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.mjs +1 -1
  269. package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.mjs +1 -1
  270. package/out/utils/transactions/getTransactionsHistory/index.mjs +1 -1
  271. package/out/utils/visual/switchTheme.mjs +1 -1
  272. package/out/utils/window/getIsInIframe.mjs +1 -1
  273. package/out/utils/window/getWindowParentOrigin.mjs +1 -1
  274. package/package.json +7 -8
  275. package/out/__chunks__/chunk-3KJMEECV.mjs +0 -2
  276. package/out/__chunks__/chunk-65F23E3Q.mjs +0 -2
  277. package/out/__chunks__/chunk-6M3IQXQF.mjs +0 -2
  278. package/out/__chunks__/chunk-AIQTIXFV.mjs +0 -2
  279. package/out/__chunks__/chunk-AMXCV2YT.mjs +0 -2
  280. package/out/__chunks__/chunk-D6CXZV4Y.mjs +0 -2
  281. package/out/__chunks__/chunk-EPB4JKWX.mjs +0 -2
  282. package/out/__chunks__/chunk-F2W755EK.mjs +0 -2
  283. package/out/__chunks__/chunk-JJUR63EV.mjs +0 -2
  284. package/out/__chunks__/chunk-KLI5H35D.mjs +0 -2
  285. package/out/__chunks__/chunk-MTGS435F.mjs +0 -2
  286. package/out/__chunks__/chunk-OSV2GCKV.mjs +0 -2
  287. package/out/__chunks__/chunk-PCPUKFTJ.mjs +0 -2
  288. package/out/__chunks__/chunk-PJ5TKZD5.mjs +0 -2
  289. package/out/__chunks__/chunk-RMLVJDCQ.mjs +0 -2
  290. package/out/__chunks__/chunk-RVBZZQS2.mjs +0 -2
  291. package/out/constants/webWalletProvider.constants.cjs +0 -2
  292. package/out/constants/webWalletProvider.constants.cjs.map +0 -7
  293. package/out/constants/webWalletProvider.constants.d.ts +0 -1
  294. package/out/constants/webWalletProvider.constants.mjs +0 -2
  295. package/out/constants/webWalletProvider.constants.mjs.map +0 -7
  296. /package/out/__chunks__/{chunk-AIQTIXFV.mjs.map → chunk-2GXPSWQ4.mjs.map} +0 -0
  297. /package/out/__chunks__/{chunk-EPB4JKWX.mjs.map → chunk-2UVDW2RQ.mjs.map} +0 -0
  298. /package/out/__chunks__/{chunk-JMK6YN6B.mjs.map → chunk-32MEBSR7.mjs.map} +0 -0
  299. /package/out/__chunks__/{chunk-2QIUCSYX.mjs.map → chunk-4D2LHSRB.mjs.map} +0 -0
  300. /package/out/__chunks__/{chunk-4PRJNNSH.mjs.map → chunk-4EQCI4IY.mjs.map} +0 -0
  301. /package/out/__chunks__/{chunk-MTGS435F.mjs.map → chunk-4KXXF3PV.mjs.map} +0 -0
  302. /package/out/__chunks__/{chunk-DIHGGV4M.mjs.map → chunk-5OAY4PWR.mjs.map} +0 -0
  303. /package/out/__chunks__/{chunk-NQE5YCZP.mjs.map → chunk-66SV7PYL.mjs.map} +0 -0
  304. /package/out/__chunks__/{chunk-RMLVJDCQ.mjs.map → chunk-6KZ72DNU.mjs.map} +0 -0
  305. /package/out/__chunks__/{chunk-OSV2GCKV.mjs.map → chunk-6O5Y7U4C.mjs.map} +0 -0
  306. /package/out/__chunks__/{chunk-3EKM2Y4K.mjs.map → chunk-6PMMPBFA.mjs.map} +0 -0
  307. /package/out/__chunks__/{chunk-IZTW4MG5.mjs.map → chunk-6R6TFHBS.mjs.map} +0 -0
  308. /package/out/__chunks__/{chunk-BJSQMG6V.mjs.map → chunk-766V4L43.mjs.map} +0 -0
  309. /package/out/__chunks__/{chunk-AMXCV2YT.mjs.map → chunk-7LMYILJF.mjs.map} +0 -0
  310. /package/out/__chunks__/{chunk-LZWEL473.mjs.map → chunk-7QPD5RSY.mjs.map} +0 -0
  311. /package/out/__chunks__/{chunk-UWWAVJFM.mjs.map → chunk-7ZHH6AD4.mjs.map} +0 -0
  312. /package/out/__chunks__/{chunk-3G2Q2LCB.mjs.map → chunk-A4AC45BS.mjs.map} +0 -0
  313. /package/out/__chunks__/{chunk-D27ZK232.mjs.map → chunk-B353O452.mjs.map} +0 -0
  314. /package/out/__chunks__/{chunk-KKQKER7U.mjs.map → chunk-CL5IGYV5.mjs.map} +0 -0
  315. /package/out/__chunks__/{chunk-QMZJNNU4.mjs.map → chunk-CQNJKGUF.mjs.map} +0 -0
  316. /package/out/__chunks__/{chunk-AWH3CO5C.mjs.map → chunk-ENJAFJGK.mjs.map} +0 -0
  317. /package/out/__chunks__/{chunk-6QPOPWIN.mjs.map → chunk-ERZNNJ4M.mjs.map} +0 -0
  318. /package/out/__chunks__/{chunk-IVMRBKXP.mjs.map → chunk-FOFGZVG5.mjs.map} +0 -0
  319. /package/out/__chunks__/{chunk-X6D2T4UF.mjs.map → chunk-G2GZG32F.mjs.map} +0 -0
  320. /package/out/__chunks__/{chunk-YMDS57T6.mjs.map → chunk-GC5JRZOA.mjs.map} +0 -0
  321. /package/out/__chunks__/{chunk-KOUT2Y7O.mjs.map → chunk-GVAJPM5C.mjs.map} +0 -0
  322. /package/out/__chunks__/{chunk-6RCSIT2P.mjs.map → chunk-HDCJEKHM.mjs.map} +0 -0
  323. /package/out/__chunks__/{chunk-3VIMQHXJ.mjs.map → chunk-HFY3MGS6.mjs.map} +0 -0
  324. /package/out/__chunks__/{chunk-QZC64RDG.mjs.map → chunk-HP2XUCRI.mjs.map} +0 -0
  325. /package/out/__chunks__/{chunk-XA4YS4GK.mjs.map → chunk-HUZZMMJX.mjs.map} +0 -0
  326. /package/out/__chunks__/{chunk-CMERGCP7.mjs.map → chunk-HZ4ZWMRW.mjs.map} +0 -0
  327. /package/out/__chunks__/{chunk-2XIBNXVY.mjs.map → chunk-I36DD2FW.mjs.map} +0 -0
  328. /package/out/__chunks__/{chunk-WMRVRNAI.mjs.map → chunk-IOQULDE4.mjs.map} +0 -0
  329. /package/out/__chunks__/{chunk-FNEL7WRG.mjs.map → chunk-J7BQ2H5Q.mjs.map} +0 -0
  330. /package/out/__chunks__/{chunk-PS3SWN5M.mjs.map → chunk-JBF3CPLK.mjs.map} +0 -0
  331. /package/out/__chunks__/{chunk-RVBZZQS2.mjs.map → chunk-JI27YEKS.mjs.map} +0 -0
  332. /package/out/__chunks__/{chunk-PWOYKKUY.mjs.map → chunk-JILAZBMF.mjs.map} +0 -0
  333. /package/out/__chunks__/{chunk-65F23E3Q.mjs.map → chunk-JXPL2SLD.mjs.map} +0 -0
  334. /package/out/__chunks__/{chunk-KLI5H35D.mjs.map → chunk-K2FBVE6U.mjs.map} +0 -0
  335. /package/out/__chunks__/{chunk-LW6KBFPA.mjs.map → chunk-K7PXA7CN.mjs.map} +0 -0
  336. /package/out/__chunks__/{chunk-IAN3XFXS.mjs.map → chunk-KR2GUJDQ.mjs.map} +0 -0
  337. /package/out/__chunks__/{chunk-Y6QPE6SZ.mjs.map → chunk-LIDJNFTE.mjs.map} +0 -0
  338. /package/out/__chunks__/{chunk-F2W755EK.mjs.map → chunk-LKC3E6AW.mjs.map} +0 -0
  339. /package/out/__chunks__/{chunk-FDR5TTUS.mjs.map → chunk-LL2IIBPG.mjs.map} +0 -0
  340. /package/out/__chunks__/{chunk-6PCK2RPQ.mjs.map → chunk-LOPC75K6.mjs.map} +0 -0
  341. /package/out/__chunks__/{chunk-WZEDZF3Q.mjs.map → chunk-LWW4KDFK.mjs.map} +0 -0
  342. /package/out/__chunks__/{chunk-TWLO2IAN.mjs.map → chunk-M5EQGPV5.mjs.map} +0 -0
  343. /package/out/__chunks__/{chunk-VSMFXZJI.mjs.map → chunk-NMK74PUW.mjs.map} +0 -0
  344. /package/out/__chunks__/{chunk-IRFXPRDX.mjs.map → chunk-NPWS3TZS.mjs.map} +0 -0
  345. /package/out/__chunks__/{chunk-KMITMS2L.mjs.map → chunk-OCLD2VI4.mjs.map} +0 -0
  346. /package/out/__chunks__/{chunk-BE5OKL3L.mjs.map → chunk-OTEIKKOW.mjs.map} +0 -0
  347. /package/out/__chunks__/{chunk-PIFCCIF3.mjs.map → chunk-PDI722XH.mjs.map} +0 -0
  348. /package/out/__chunks__/{chunk-53NQH7NR.mjs.map → chunk-PFR5VSL2.mjs.map} +0 -0
  349. /package/out/__chunks__/{chunk-LASOW7GT.mjs.map → chunk-PQ2OJ3JD.mjs.map} +0 -0
  350. /package/out/__chunks__/{chunk-PGPTO2Q4.mjs.map → chunk-QHGCAYUB.mjs.map} +0 -0
  351. /package/out/__chunks__/{chunk-SBCXU7OA.mjs.map → chunk-QJTWOZ3K.mjs.map} +0 -0
  352. /package/out/__chunks__/{chunk-D6CXZV4Y.mjs.map → chunk-R4BNJI2F.mjs.map} +0 -0
  353. /package/out/__chunks__/{chunk-XHCLYR42.mjs.map → chunk-S4TJTINB.mjs.map} +0 -0
  354. /package/out/__chunks__/{chunk-RDEVBV56.mjs.map → chunk-SFGR74WM.mjs.map} +0 -0
  355. /package/out/__chunks__/{chunk-FKUMHDP5.mjs.map → chunk-SMCI4JNY.mjs.map} +0 -0
  356. /package/out/__chunks__/{chunk-CAOL6XLD.mjs.map → chunk-SMEKGCKH.mjs.map} +0 -0
  357. /package/out/__chunks__/{chunk-W2A2N772.mjs.map → chunk-SOGQ76CF.mjs.map} +0 -0
  358. /package/out/__chunks__/{chunk-7GWD5XR7.mjs.map → chunk-SQ7C3XLA.mjs.map} +0 -0
  359. /package/out/__chunks__/{chunk-NGJIMP5Y.mjs.map → chunk-SZNAMXXH.mjs.map} +0 -0
  360. /package/out/__chunks__/{chunk-YXNJS4KL.mjs.map → chunk-TJKB7YME.mjs.map} +0 -0
  361. /package/out/__chunks__/{chunk-V7K77GSE.mjs.map → chunk-TPXNYEOT.mjs.map} +0 -0
  362. /package/out/__chunks__/{chunk-3KJMEECV.mjs.map → chunk-UBP7VBFB.mjs.map} +0 -0
  363. /package/out/__chunks__/{chunk-WYE5FJIJ.mjs.map → chunk-UBQUZNLX.mjs.map} +0 -0
  364. /package/out/__chunks__/{chunk-AFOS3Q4N.mjs.map → chunk-UCWTYWB3.mjs.map} +0 -0
  365. /package/out/__chunks__/{chunk-JJUR63EV.mjs.map → chunk-UMJE36YK.mjs.map} +0 -0
  366. /package/out/__chunks__/{chunk-PJ5TKZD5.mjs.map → chunk-UXP5UK2L.mjs.map} +0 -0
  367. /package/out/__chunks__/{chunk-7BESPSVI.mjs.map → chunk-VBNLRSKL.mjs.map} +0 -0
  368. /package/out/__chunks__/{chunk-6RYKBAUE.mjs.map → chunk-VBWYZ6ZU.mjs.map} +0 -0
  369. /package/out/__chunks__/{chunk-7TH3QSCV.mjs.map → chunk-VLASN3TA.mjs.map} +0 -0
  370. /package/out/__chunks__/{chunk-C4FY7JBD.mjs.map → chunk-VT6N4MFC.mjs.map} +0 -0
  371. /package/out/__chunks__/{chunk-D4JFV2LM.mjs.map → chunk-W6XNEY4N.mjs.map} +0 -0
  372. /package/out/__chunks__/{chunk-UJTYOT5N.mjs.map → chunk-WDFIVLDW.mjs.map} +0 -0
  373. /package/out/__chunks__/{chunk-LQAAQV3I.mjs.map → chunk-X4P6NIGX.mjs.map} +0 -0
  374. /package/out/__chunks__/{chunk-K4E7GCWI.mjs.map → chunk-XAMG7OLZ.mjs.map} +0 -0
  375. /package/out/__chunks__/{chunk-YGHJRPPY.mjs.map → chunk-XBIX2QET.mjs.map} +0 -0
  376. /package/out/__chunks__/{chunk-5WJQ2KWS.mjs.map → chunk-XJY2BTDN.mjs.map} +0 -0
  377. /package/out/__chunks__/{chunk-7FV6DEQX.mjs.map → chunk-XPASD5P4.mjs.map} +0 -0
  378. /package/out/__chunks__/{chunk-6M3IQXQF.mjs.map → chunk-XXQ7FANC.mjs.map} +0 -0
  379. /package/out/__chunks__/{chunk-HX3JKALT.mjs.map → chunk-YEY7YGZD.mjs.map} +0 -0
  380. /package/out/__chunks__/{chunk-JO7KFAZC.mjs.map → chunk-YKHYAKVW.mjs.map} +0 -0
  381. /package/out/__chunks__/{chunk-PYRTFEMB.mjs.map → chunk-YPH67JEE.mjs.map} +0 -0
  382. /package/out/__chunks__/{chunk-TRUOISVH.mjs.map → chunk-YYZKVLX7.mjs.map} +0 -0
  383. /package/out/__chunks__/{chunk-3NSS3FT6.mjs.map → chunk-ZMC2BF4F.mjs.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{a as le}from"./chunk-M3YL36ZL.mjs";import{a as I}from"./chunk-YXNJS4KL.mjs";import{a as pe}from"./chunk-2Y66XRQK.mjs";import{a as oe}from"./chunk-KKQKER7U.mjs";import{a as V}from"./chunk-NQE5YCZP.mjs";import{a as ae}from"./chunk-RDEVBV56.mjs";import{a as se}from"./chunk-YUFPUG5O.mjs";import{a as ne}from"./chunk-YGHJRPPY.mjs";import{a as ge}from"./chunk-TRUOISVH.mjs";import{a as g}from"./chunk-BJSQMG6V.mjs";import{a as l,b as ie}from"./chunk-6R2WFQ7U.mjs";import{a as de}from"./chunk-FKUMHDP5.mjs";import{a as S}from"./chunk-QMZJNNU4.mjs";import{a as ce}from"./chunk-C4FY7JBD.mjs";import{a as b}from"./chunk-QJGFIK7H.mjs";import{b as te}from"./chunk-4Z3DZ2A3.mjs";import{j as M,k as C,l as L}from"./chunk-XA4YS4GK.mjs";import{c as N}from"./chunk-7GWD5XR7.mjs";import{a as y}from"./chunk-6M3IQXQF.mjs";import{a as Y}from"./chunk-D6CXZV4Y.mjs";import{a as R}from"./chunk-4TBVQD27.mjs";import{i as J}from"./chunk-7BESPSVI.mjs";import{a as re}from"./chunk-AFOS3Q4N.mjs";import{a as U}from"./chunk-KLI5H35D.mjs";import{b as Q,c as Z,d as ee}from"./chunk-V5ZSFCKJ.mjs";import{g as X}from"./chunk-M6MN4RXG.mjs";import{b as f,c as K}from"./chunk-7VHTZYM2.mjs";import{a as $,q as F,s as d}from"./chunk-2QIUCSYX.mjs";import{f as j}from"./chunk-FK6DWWZF.mjs";import{a as q}from"./chunk-VNLGNNIL.mjs";import{b as P,c as G}from"./chunk-7B7XIPV2.mjs";import{a as o}from"./chunk-LJX4MW7B.mjs";async function ve({message:a,handleSignMessage:i}){try{return await v({message:a,handleSignMessage:i,providerType:l.ledger})}catch(e){let{errorMessage:r}=se(e);throw r?{message:r}:e}}var w=class extends g{constructor({address:e,anchor:r,shouldInitProvider:t}){super(e);this.provider=null;this.config=null;this.ledgerLogin=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");if(!e||typeof e.addressIndex!="number")throw new Error("Missing addressIndex for Ledger login");let{address:r,signature:t}=await this.provider.login({addressIndex:e.addressIndex});return{address:r,signature:t??""}};this.loginOperation=async e=>{if(!this.provider||!this.config)throw new Error("Provider is not initialized.");return await oe({options:e,config:this.config,provider:this.provider,login:this.ledgerLogin.bind(this)})};this.initLegderConnectManager=async e=>{if(!!y())return;await V.getInstance().init(e)};this.signTransactions=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");return await this.rebuildProvider(),await S({transactions:e,handleSign:this.provider.signTransactions.bind(this.provider)})};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");return await this.rebuildProvider(),await ve({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider)})};this.rebuildProvider=async()=>{try{await this.provider?.getAddress()}catch{try{let{ledgerProvider:r}=await ne({shouldInitProvider:!0});this.provider=r}catch(r){throw J({toastId:"ledger-provider-rebuild-error",duration:1e4,icon:"close",iconClassName:"warning",message:"Unlock your device & open the MultiversX App",title:"Ledger unavailable"}),r}}};this.options={anchor:r,shouldInitProvider:t},this._login=this.ledgerLogin.bind(this)}async init(){try{this.initializeAddress(),await this.initializeProvider()}catch{return!1}return!0}logout(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.logout()}getType(){return o.ledger}getAddress(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.getAddress()}setAccount(e){return this.provider?.setAccount(e)}isInitialized(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.isInitialized()}async initializeProvider(){await this.initLegderConnectManager(this.options?.anchor);let e=V.getInstance(),{ledgerProvider:r,ledgerConfig:t}=await new Promise((n,s)=>ae({manager:e,resolve:n,reject:s,shouldInitProvider:this.options?.shouldInitProvider}));this.config=t,this.provider=r}};var ue=3e4,fe=5e3,we=3e3,k=class a{constructor(){this.store=F();this.connectionCheckInterval=null;this.recreateProviderInterval=null;this.init=async()=>{this.startCheckConnectionLoop()};this.shouldCheckConnection=()=>{let i=this.store.getState(),{providerType:e}=q(i),r=j(i);return!!(e===o.ledger&&r)};this.startCheckConnectionLoop=()=>{this.connectionCheckInterval||(this.connectionCheckInterval=setInterval(async()=>{let i=te(d());if(!(!this.shouldCheckConnection()||i))try{await L().getProvider().getAddress()}catch{if(N.getInstance().createCustomToast({toastId:"ledger-provider-idle-warning",icon:"close",iconClassName:"warning",message:"Unlock your device to continue signing transactions",title:"Ledger disconnected"}),this.reset(),this.recreateProviderInterval)return;this.recreateProviderInterval=setInterval(this.reconnectProvider,fe)}},ue))};this.reconnectProvider=async()=>{if(this.shouldCheckConnection())try{let i=new w({shouldInitProvider:!0});await i.init();let e=new M(i);i.getType=()=>o.ledger,C(e),this.reset(),clearInterval(this.recreateProviderInterval??0),this.recreateProviderInterval=null,N.getInstance().createCustomToast({toastId:"ledger-provider-idle-warning",duration:we,icon:"check",iconClassName:"success",message:"Your device is ready to sign transactions",title:"Ledger reconnected"}),this.startCheckConnectionLoop()}catch{console.log("Unable to reconnect to Ledger")}};this.reset=()=>{clearInterval(this.connectionCheckInterval??0),this.connectionCheckInterval=null}}static getInstance(){return a.instance||(a.instance=new a),a.instance}};var A=class extends g{constructor(e){super(e?.address);this.cancelAction=async()=>{this.provider.cancelAction()};this.signTransactions=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");let{onClose:r,manager:t}=await this.initSignState();try{let n=await this.provider.signTransactions(e)??[];return await ce(n)}catch(n){throw await r({shouldCancelAction:!0}),n}finally{t?.closeUI()}};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");return await v({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider),cancelAction:this.cancelAction,providerType:l.crossWindow})};this.walletAddress=e?.walletAddress,this.provider=b.getInstance(),this._login=this.provider.login.bind(this.provider)}async init(){return this.initializeAddress(),this.initializeProvider()}async initializeProvider(){let e=f(d()),r=await this.provider.init();return this.provider.setWalletUrl(this.walletAddress??e.walletAddress),this.address&&this.provider.setAddress(this.address),r}logout(){return this.provider.logout()}getType(){return o.crossWindow}getAddress(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.getAddress()}setAccount(e){return this.provider.setAccount(e)}isInitialized(){return this.provider.isInitialized()}};import{ExtensionProvider as Pe}from"@multiversx/sdk-extension-provider/out/extensionProvider";var _=class extends g{constructor(e){super(e);this.cancelAction=async()=>{this.provider.cancelAction()};this.signTransactions=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");let{manager:r,onClose:t}=await this.initSignState();try{return await this.provider.signTransactions(e)??[]}catch(n){throw await t({shouldCancelAction:!1}),n}finally{r?.closeUI()}};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");return await v({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider),cancelAction:this.cancelAction,providerType:l.extension})};this.provider=Pe.getInstance(),this._login=this.provider.login.bind(this.provider)}async init(){return this.initializeAddress(),this.initializeProvider()}async initializeProvider(){let e=await this.provider.init();return this.address&&this.setAccount({address:this.address}),e}getAddress(){return this.provider.getAddress()}setAccount(e){return this.provider.setAccount(e)}isInitialized(){return this.provider.isInitialized()}logout(){return this.provider.logout()}getType(){return o.extension}};var W=class extends g{constructor({address:e,walletUrl:r}={}){super(e);this.cancelAction=async()=>{this.provider.cancelAction()};this.signTransactions=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");let{manager:r,onClose:t}=await this.initSignState();try{return await S({transactions:e,handleSign:this.provider.signTransactions.bind(this.provider)})}catch(n){throw await t({shouldCancelAction:!0}),n}finally{r?.closeUI()}};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");return await v({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider),cancelAction:this.cancelAction,providerType:l[o.metamask]})};this.walletUrl=r??"",this.provider=le.getInstance(),this._login=this.provider.login.bind(this.provider)}init(){return this.initializeAddress(),this.initializeWalletUrl(),this.initializeProvider()}initializeWalletUrl(){if(this.walletUrl)return;let e=f(d());if(!e.iframeWalletAddress)throw new Error("Invalid walletUrl");this.walletUrl=e.iframeWalletAddress}async initializeProvider(){return await this.provider.init(),this.address&&this.setAccount({address:this.address}),this.provider.setWalletUrl(this.walletUrl),!0}logout(){return this.provider.logout()}getType(){return o.metamask}getAddress(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.getAddress()}setAccount(e){this.provider.setAccount(e)}isInitialized(){return this.provider.isInitialized()}};import{OptionalOperation as Ce}from"@multiversx/sdk-wallet-connect-provider/out";var me=[P.CANCEL_ACTION,P.SIGN_LOGIN_TOKEN],O=class extends g{constructor(e){super();this.provider=null;this.methods=[];this._approval=null;this.cancelActionAbortController=null;this.signTransactions=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");let{manager:r,onClose:t}=await this.initSignState();this.cancelActionAbortController=new AbortController;let n=this.cancelActionAbortController.signal;try{let s=new Promise((h,m)=>{n.addEventListener("abort",()=>{m(new Error("cancelled by user"))})});return await Promise.race([this.provider.signTransactions(e),s])}catch(s){throw await t({shouldCancelAction:!0}),s}finally{r?.closeUI()}};this.cancelAction=async()=>{this.sendCustomRequest({method:P.CANCEL_ACTION,action:Ce.CANCEL_ACTION}),this.cancelActionAbortController?.abort()};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");this.cancelActionAbortController=new AbortController;let r=this.cancelActionAbortController.signal,t=new Promise((s,c)=>{r.addEventListener("abort",()=>{c(new Error("cancelled by user"))})});return await Promise.race([v({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider),cancelAction:this.cancelAction,providerType:l.extension}),t])};this.config=e}async init(){try{if(this.provider?.isInitialized())return!0;await this.initializeProvider()}catch{return!1}return!0}logout(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.logout()}getType(){return o.walletConnect}getAddress(){if(!this.provider)throw new Error("Provider is not initialized.");return Promise.resolve(this.provider.getAddress())}setAccount(e){return this.provider?.setAccount(e)}isInitialized(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.isInitialized()}async initializeProvider(){if(await this.initWalletConnectManager(),!this.config)throw new Error("Invalid WalletConnect setup");let{walletConnectProvider:e,dappMethods:r}=await this.createWalletConnectProvider(this.config);this.provider=e,this.methods=r;let{uri:t="",approval:n}=await this.provider.connect({methods:this.methods}),s=this.config.walletConnectDeepLink??R.walletConnectDeepLink;this._approval=n,I.getInstance().updateData({wcURI:t,walletConnectDeepLink:`${s}?wallet-connect=${encodeURIComponent(t)}`})}async initWalletConnectManager(){if(!!y())return;await I.getInstance().init(this.config?.anchor)}async createWalletConnectProvider(e){let r=y(),t=K(d());if(Q(d())&&me.push(P.SIGN_NATIVE_AUTH_TOKEN),!e?.walletConnectV2ProjectId)throw new Error("Invalid WalletConnect setup");let m={onClientLogin:()=>{},onClientLogout:()=>{re()},onClientEvent:p=>{}};try{let{walletConnectV2ProjectId:p,walletConnectV2Options:x={},walletConnectV2RelayAddress:D=""}=e,E=new G(m,t,D,p,x);return await E.init(),{walletConnectProvider:E,dappMethods:me}}catch(p){throw console.error("Unable to connect",p),r&&await this.logout(),p}}async login(e){if(!this.provider)throw new Error("Provider is not initialized. Call createProvider first.");let r=async()=>{if(!this.provider)throw new Error("Provider is not initialized.");try{await this.provider.init();let t=I.getInstance(),{uri:n="",approval:s}=await this.provider.connect({methods:this.methods}),c=this.config.walletConnectDeepLink??R.walletConnectDeepLink;t.updateData({wcURI:n,walletConnectDeepLink:`${c}?wallet-connect=${encodeURIComponent(n)}`});let h=await this.provider.login({approval:s,token:e?.token}),{address:m="",signature:p=""}=h??{};return t.handleClose({isLoginFinished:!!m}),{address:m,signature:p}}catch{return await r()}};if(!this._approval)throw new Error("Approval or login is not initialized");try{let t=await this.provider.login({approval:this._approval.bind(this),token:e?.token}),{address:n="",signature:s=""}=t??{};return I.getInstance().handleClose({isLoginFinished:!!n}),{address:n,signature:s}}catch(t){return console.error("User rejected connection proposal",t),await r()}}async sendCustomRequest({action:e,method:r}){if(!this.provider)throw new Error("Provider is not initialized.");try{await this.provider.sendCustomRequest?.({request:{method:r,params:{action:e}}})}catch(t){console.error("Unable to send event",t)}}};var T=class{static set customProviders(i){this._customProviders=i}static get customProviders(){return this._customProviders}static async create({type:i,anchor:e}){let r=null;switch(i){case o.extension:{r=new _;break}case o.crossWindow:{r=new A;break}case o.ledger:{r=new w({anchor:e}),await k.getInstance().init();break}case o.metamask:{r=new W;break}case o.passkey:{let s=f(d());r=new A({walletAddress:`${s.walletAddress}?${ie}=${o.passkey}`});break}case o.walletConnect:{let s=Z(d());if(!s?.walletConnectV2ProjectId)throw new Error("Invalid WalletConnect setup");r=new O({anchor:e,...s});break}case o.webview:{r=new ge;break}default:{let s=Y();for(let c of this._customProviders)c.type===i&&(r=await c.constructor({address:s,anchor:e}));break}}if(!r)throw new Error("Unable to create provider");await r.init();let t=new M(r);C(t);let n="provider"in r&&r.provider instanceof b;return pe(n?{skipLoginMethod:o.crossWindow}:null),t}static async destroy(){L().cancelLogin(),C(null),$(o.none)}};T._customProviders=[];var Ie=(a,i)=>a.some(e=>e.type===i);async function v({message:a,handleSignMessage:i,cancelAction:e,providerType:r}){if(ee(d())?.isSigningUiEnabled===!1){U(!0);try{return await i(a)}finally{U(!1)}}return await new Promise(async(s,c)=>{let{manager:h,onClose:m}=await de({cancelAction:e}),p=Object.values(T.customProviders),x=p.reduce((u,B)=>(u[B.type]=B.name,u),{}),D={...l,...x},E=async()=>{await m({shouldCancelAction:!0}),c({message:"Signing canceled"})};h.subscribeToEventBus("CLOSE_PENDING_TRANSACTIONS",E);let H=Ie(p,r)?r:o.none;h.updateData({name:D[H],type:H});try{let u=await i(a);s(u)}catch(u){await m({shouldCancelAction:!0}),c(u)}finally{h.closeUI()}})}export{v as a,ve as b,w as c,k as d,A as e,_ as f,W as g,O as h,T as i};
2
- //# sourceMappingURL=chunk-LASOW7GT.mjs.map
1
+ import{a as le}from"./chunk-M3YL36ZL.mjs";import{a as I}from"./chunk-TJKB7YME.mjs";import{a as pe}from"./chunk-2Y66XRQK.mjs";import{a as oe}from"./chunk-CL5IGYV5.mjs";import{a as V}from"./chunk-66SV7PYL.mjs";import{a as ae}from"./chunk-SFGR74WM.mjs";import{a as se}from"./chunk-YUFPUG5O.mjs";import{a as ne}from"./chunk-XBIX2QET.mjs";import{a as ge}from"./chunk-YYZKVLX7.mjs";import{a as g}from"./chunk-766V4L43.mjs";import{a as l,b as ie}from"./chunk-6R2WFQ7U.mjs";import{a as de}from"./chunk-SMCI4JNY.mjs";import{a as S}from"./chunk-CQNJKGUF.mjs";import{a as ce}from"./chunk-VT6N4MFC.mjs";import{a as b}from"./chunk-QJGFIK7H.mjs";import{b as te}from"./chunk-4Z3DZ2A3.mjs";import{j as M,k as C,l as L}from"./chunk-HUZZMMJX.mjs";import{c as N}from"./chunk-SQ7C3XLA.mjs";import{a as y}from"./chunk-XXQ7FANC.mjs";import{a as Y}from"./chunk-R4BNJI2F.mjs";import{a as R}from"./chunk-4TBVQD27.mjs";import{i as J}from"./chunk-VBNLRSKL.mjs";import{a as re}from"./chunk-UCWTYWB3.mjs";import{a as U}from"./chunk-K2FBVE6U.mjs";import{b as Q,c as Z,d as ee}from"./chunk-V5ZSFCKJ.mjs";import{g as X}from"./chunk-M6MN4RXG.mjs";import{b as f,c as K}from"./chunk-7VHTZYM2.mjs";import{a as $,q as F,s as d}from"./chunk-4D2LHSRB.mjs";import{f as j}from"./chunk-FK6DWWZF.mjs";import{a as q}from"./chunk-VNLGNNIL.mjs";import{b as P,c as G}from"./chunk-7B7XIPV2.mjs";import{a as o}from"./chunk-LJX4MW7B.mjs";async function ve({message:a,handleSignMessage:i}){try{return await v({message:a,handleSignMessage:i,providerType:l.ledger})}catch(e){let{errorMessage:r}=se(e);throw r?{message:r}:e}}var w=class extends g{constructor({address:e,anchor:r,shouldInitProvider:t}){super(e);this.provider=null;this.config=null;this.ledgerLogin=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");if(!e||typeof e.addressIndex!="number")throw new Error("Missing addressIndex for Ledger login");let{address:r,signature:t}=await this.provider.login({addressIndex:e.addressIndex});return{address:r,signature:t??""}};this.loginOperation=async e=>{if(!this.provider||!this.config)throw new Error("Provider is not initialized.");return await oe({options:e,config:this.config,provider:this.provider,login:this.ledgerLogin.bind(this)})};this.initLegderConnectManager=async e=>{if(!!y())return;await V.getInstance().init(e)};this.signTransactions=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");return await this.rebuildProvider(),await S({transactions:e,handleSign:this.provider.signTransactions.bind(this.provider)})};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");return await this.rebuildProvider(),await ve({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider)})};this.rebuildProvider=async()=>{try{await this.provider?.getAddress()}catch{try{let{ledgerProvider:r}=await ne({shouldInitProvider:!0});this.provider=r}catch(r){throw J({toastId:"ledger-provider-rebuild-error",duration:1e4,icon:"close",iconClassName:"warning",message:"Unlock your device & open the MultiversX App",title:"Ledger unavailable"}),r}}};this.options={anchor:r,shouldInitProvider:t},this._login=this.ledgerLogin.bind(this)}async init(){try{this.initializeAddress(),await this.initializeProvider()}catch{return!1}return!0}logout(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.logout()}getType(){return o.ledger}getAddress(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.getAddress()}setAccount(e){return this.provider?.setAccount(e)}isInitialized(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.isInitialized()}async initializeProvider(){await this.initLegderConnectManager(this.options?.anchor);let e=V.getInstance(),{ledgerProvider:r,ledgerConfig:t}=await new Promise((n,s)=>ae({manager:e,resolve:n,reject:s,shouldInitProvider:this.options?.shouldInitProvider}));this.config=t,this.provider=r}};var ue=3e4,fe=5e3,we=3e3,k=class a{constructor(){this.store=F();this.connectionCheckInterval=null;this.recreateProviderInterval=null;this.init=async()=>{this.startCheckConnectionLoop()};this.shouldCheckConnection=()=>{let i=this.store.getState(),{providerType:e}=q(i),r=j(i);return!!(e===o.ledger&&r)};this.startCheckConnectionLoop=()=>{this.connectionCheckInterval||(this.connectionCheckInterval=setInterval(async()=>{let i=te(d());if(!(!this.shouldCheckConnection()||i))try{await L().getProvider().getAddress()}catch{if(N.getInstance().createCustomToast({toastId:"ledger-provider-idle-warning",icon:"close",iconClassName:"warning",message:"Unlock your device to continue signing transactions",title:"Ledger disconnected"}),this.reset(),this.recreateProviderInterval)return;this.recreateProviderInterval=setInterval(this.reconnectProvider,fe)}},ue))};this.reconnectProvider=async()=>{if(this.shouldCheckConnection())try{let i=new w({shouldInitProvider:!0});await i.init();let e=new M(i);i.getType=()=>o.ledger,C(e),this.reset(),clearInterval(this.recreateProviderInterval??0),this.recreateProviderInterval=null,N.getInstance().createCustomToast({toastId:"ledger-provider-idle-warning",duration:we,icon:"check",iconClassName:"success",message:"Your device is ready to sign transactions",title:"Ledger reconnected"}),this.startCheckConnectionLoop()}catch{console.log("Unable to reconnect to Ledger")}};this.reset=()=>{clearInterval(this.connectionCheckInterval??0),this.connectionCheckInterval=null}}static getInstance(){return a.instance||(a.instance=new a),a.instance}};var A=class extends g{constructor(e){super(e?.address);this.cancelAction=async()=>{this.provider.cancelAction()};this.signTransactions=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");let{onClose:r,manager:t}=await this.initSignState();try{let n=await this.provider.signTransactions(e)??[];return await ce(n)}catch(n){throw await r({shouldCancelAction:!0}),n}finally{t?.closeUI()}};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");return await v({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider),cancelAction:this.cancelAction,providerType:l.crossWindow})};this.walletAddress=e?.walletAddress,this.provider=b.getInstance(),this._login=this.provider.login.bind(this.provider)}async init(){return this.initializeAddress(),this.initializeProvider()}async initializeProvider(){let e=f(d()),r=await this.provider.init();return this.provider.setWalletUrl(this.walletAddress??e.walletAddress),this.address&&this.provider.setAddress(this.address),r}logout(){return this.provider.logout()}getType(){return o.crossWindow}getAddress(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.getAddress()}setAccount(e){return this.provider.setAccount(e)}isInitialized(){return this.provider.isInitialized()}};import{ExtensionProvider as Pe}from"@multiversx/sdk-extension-provider/out/extensionProvider";var _=class extends g{constructor(e){super(e);this.cancelAction=async()=>{this.provider.cancelAction()};this.signTransactions=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");let{manager:r,onClose:t}=await this.initSignState();try{return await this.provider.signTransactions(e)??[]}catch(n){throw await t({shouldCancelAction:!1}),n}finally{r?.closeUI()}};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");return await v({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider),cancelAction:this.cancelAction,providerType:l.extension})};this.provider=Pe.getInstance(),this._login=this.provider.login.bind(this.provider)}async init(){return this.initializeAddress(),this.initializeProvider()}async initializeProvider(){let e=await this.provider.init();return this.address&&this.setAccount({address:this.address}),e}getAddress(){return this.provider.getAddress()}setAccount(e){return this.provider.setAccount(e)}isInitialized(){return this.provider.isInitialized()}logout(){return this.provider.logout()}getType(){return o.extension}};var W=class extends g{constructor({address:e,walletUrl:r}={}){super(e);this.cancelAction=async()=>{this.provider.cancelAction()};this.signTransactions=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");let{manager:r,onClose:t}=await this.initSignState();try{return await S({transactions:e,handleSign:this.provider.signTransactions.bind(this.provider)})}catch(n){throw await t({shouldCancelAction:!0}),n}finally{r?.closeUI()}};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");return await v({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider),cancelAction:this.cancelAction,providerType:l[o.metamask]})};this.walletUrl=r??"",this.provider=le.getInstance(),this._login=this.provider.login.bind(this.provider)}init(){return this.initializeAddress(),this.initializeWalletUrl(),this.initializeProvider()}initializeWalletUrl(){if(this.walletUrl)return;let e=f(d());if(!e.iframeWalletAddress)throw new Error("Invalid walletUrl");this.walletUrl=e.iframeWalletAddress}async initializeProvider(){return await this.provider.init(),this.address&&this.setAccount({address:this.address}),this.provider.setWalletUrl(this.walletUrl),!0}logout(){return this.provider.logout()}getType(){return o.metamask}getAddress(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.getAddress()}setAccount(e){this.provider.setAccount(e)}isInitialized(){return this.provider.isInitialized()}};import{OptionalOperation as Ce}from"@multiversx/sdk-wallet-connect-provider/out";var me=[P.CANCEL_ACTION,P.SIGN_LOGIN_TOKEN],O=class extends g{constructor(e){super();this.provider=null;this.methods=[];this._approval=null;this.cancelActionAbortController=null;this.signTransactions=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");let{manager:r,onClose:t}=await this.initSignState();this.cancelActionAbortController=new AbortController;let n=this.cancelActionAbortController.signal;try{let s=new Promise((h,m)=>{n.addEventListener("abort",()=>{m(new Error("cancelled by user"))})});return await Promise.race([this.provider.signTransactions(e),s])}catch(s){throw await t({shouldCancelAction:!0}),s}finally{r?.closeUI()}};this.cancelAction=async()=>{this.sendCustomRequest({method:P.CANCEL_ACTION,action:Ce.CANCEL_ACTION}),this.cancelActionAbortController?.abort()};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");this.cancelActionAbortController=new AbortController;let r=this.cancelActionAbortController.signal,t=new Promise((s,c)=>{r.addEventListener("abort",()=>{c(new Error("cancelled by user"))})});return await Promise.race([v({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider),cancelAction:this.cancelAction,providerType:l.extension}),t])};this.config=e}async init(){try{if(this.provider?.isInitialized())return!0;await this.initializeProvider()}catch{return!1}return!0}logout(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.logout()}getType(){return o.walletConnect}getAddress(){if(!this.provider)throw new Error("Provider is not initialized.");return Promise.resolve(this.provider.getAddress())}setAccount(e){return this.provider?.setAccount(e)}isInitialized(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.isInitialized()}async initializeProvider(){if(await this.initWalletConnectManager(),!this.config)throw new Error("Invalid WalletConnect setup");let{walletConnectProvider:e,dappMethods:r}=await this.createWalletConnectProvider(this.config);this.provider=e,this.methods=r;let{uri:t="",approval:n}=await this.provider.connect({methods:this.methods}),s=this.config.walletConnectDeepLink??R.walletConnectDeepLink;this._approval=n,I.getInstance().updateData({wcURI:t,walletConnectDeepLink:`${s}?wallet-connect=${encodeURIComponent(t)}`})}async initWalletConnectManager(){if(!!y())return;await I.getInstance().init(this.config?.anchor)}async createWalletConnectProvider(e){let r=y(),t=K(d());if(Q(d())&&me.push(P.SIGN_NATIVE_AUTH_TOKEN),!e?.walletConnectV2ProjectId)throw new Error("Invalid WalletConnect setup");let m={onClientLogin:()=>{},onClientLogout:()=>{re()},onClientEvent:p=>{}};try{let{walletConnectV2ProjectId:p,walletConnectV2Options:x={},walletConnectV2RelayAddress:D=""}=e,E=new G(m,t,D,p,x);return await E.init(),{walletConnectProvider:E,dappMethods:me}}catch(p){throw console.error("Unable to connect",p),r&&await this.logout(),p}}async login(e){if(!this.provider)throw new Error("Provider is not initialized. Call createProvider first.");let r=async()=>{if(!this.provider)throw new Error("Provider is not initialized.");try{await this.provider.init();let t=I.getInstance(),{uri:n="",approval:s}=await this.provider.connect({methods:this.methods}),c=this.config.walletConnectDeepLink??R.walletConnectDeepLink;t.updateData({wcURI:n,walletConnectDeepLink:`${c}?wallet-connect=${encodeURIComponent(n)}`});let h=await this.provider.login({approval:s,token:e?.token}),{address:m="",signature:p=""}=h??{};return t.handleClose({isLoginFinished:!!m}),{address:m,signature:p}}catch{return await r()}};if(!this._approval)throw new Error("Approval or login is not initialized");try{let t=await this.provider.login({approval:this._approval.bind(this),token:e?.token}),{address:n="",signature:s=""}=t??{};return I.getInstance().handleClose({isLoginFinished:!!n}),{address:n,signature:s}}catch(t){return console.error("User rejected connection proposal",t),await r()}}async sendCustomRequest({action:e,method:r}){if(!this.provider)throw new Error("Provider is not initialized.");try{await this.provider.sendCustomRequest?.({request:{method:r,params:{action:e}}})}catch(t){console.error("Unable to send event",t)}}};var T=class{static set customProviders(i){this._customProviders=i}static get customProviders(){return this._customProviders}static async create({type:i,anchor:e}){let r=null;switch(i){case o.extension:{r=new _;break}case o.crossWindow:{r=new A;break}case o.ledger:{r=new w({anchor:e}),await k.getInstance().init();break}case o.metamask:{r=new W;break}case o.passkey:{let s=f(d());r=new A({walletAddress:`${s.walletAddress}?${ie}=${o.passkey}`});break}case o.walletConnect:{let s=Z(d());if(!s?.walletConnectV2ProjectId)throw new Error("Invalid WalletConnect setup");r=new O({anchor:e,...s});break}case o.webview:{r=new ge;break}default:{let s=Y();for(let c of this._customProviders)c.type===i&&(r=await c.constructor({address:s,anchor:e}));break}}if(!r)throw new Error("Unable to create provider");await r.init();let t=new M(r);C(t);let n="provider"in r&&r.provider instanceof b;return pe(n?{skipLoginMethod:o.crossWindow}:null),t}static async destroy(){L().cancelLogin(),C(null),$(o.none)}};T._customProviders=[];var Ie=(a,i)=>a.some(e=>e.type===i);async function v({message:a,handleSignMessage:i,cancelAction:e,providerType:r}){if(ee(d())?.isSigningUiEnabled===!1){U(!0);try{return await i(a)}finally{U(!1)}}return await new Promise(async(s,c)=>{let{manager:h,onClose:m}=await de({cancelAction:e}),p=Object.values(T.customProviders),x=p.reduce((u,B)=>(u[B.type]=B.name,u),{}),D={...l,...x},E=async()=>{await m({shouldCancelAction:!0}),c({message:"Signing canceled"})};h.subscribeToEventBus("CLOSE_PENDING_TRANSACTIONS",E);let H=Ie(p,r)?r:o.none;h.updateData({name:D[H],type:H});try{let u=await i(a);s(u)}catch(u){await m({shouldCancelAction:!0}),c(u)}finally{h.closeUI()}})}export{v as a,ve as b,w as c,k as d,A as e,_ as f,W as g,O as h,T as i};
2
+ //# sourceMappingURL=chunk-PQ2OJ3JD.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as d}from"./chunk-PIFCCIF3.mjs";import{f,g as l}from"./chunk-7VHTZYM2.mjs";import{a as S}from"./chunk-AIQTIXFV.mjs";import{a as u}from"./chunk-SFXZJSEY.mjs";import{s as h}from"./chunk-2QIUCSYX.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-PGPTO2Q4.mjs.map
1
+ import{a as d}from"./chunk-PDI722XH.mjs";import{f,g as l}from"./chunk-7VHTZYM2.mjs";import{a as S}from"./chunk-2GXPSWQ4.mjs";import{a as u}from"./chunk-SFXZJSEY.mjs";import{s as h}from"./chunk-4D2LHSRB.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-QHGCAYUB.mjs.map
@@ -1,2 +1,2 @@
1
- import{b as r,c as n}from"./chunk-QJGFIK7H.mjs";import{l as g}from"./chunk-XA4YS4GK.mjs";import{q as M}from"./chunk-2QIUCSYX.mjs";import{a as c}from"./chunk-FK6DWWZF.mjs";import{a as u,c as p,g as l}from"./chunk-NTEMINYA.mjs";import{a as d}from"./chunk-PCPUKFTJ.mjs";var m=class{constructor({onLoginCancelled:e}){this.handlers=new Map;this.store=M();this.isLoginInitiated=!1;this.handleMessage=this.handleMessage.bind(this),this.handleLoginCancelled=e}startListening(){d.addEventListener("message",this.handleMessage)}stopListening(){d.removeEventListener("message",this.handleMessage)}registerEvent(e,s){this.handlers.set(e,s)}unregisterEvent(e){this.handlers.delete(e)}async handleMessage(e){let s=e.data?.type;if(typeof s=="string"&&this.handlers.has(s))return this.handlers.get(s)?.(e);switch(s){case r.finalizeHandshakeRequest:this.handshake({event:e});break;case r.signMessageRequest:this.signMessage({event:e,payload:e.data.payload});break;case r.loginRequest:this.isLoginInitiated=!0,this.login({event:e,payload:e.data.payload});break;case r.signTransactionsRequest:this.signTransactions({event:e});break;case n.cancelResponse:case"cancelAction":this.isLoginInitiated&&await this.handleLoginCancelled();break;default:break}}async login({event:e,payload:s}){let a=s?.token;if(a)try{let{address:t}=c(this.store.getState()),o=g(),i=`${t}${a}`,y=new l({address:new p(t),data:new Uint8Array(Buffer.from(i))}),f=(await o.signMessage(y))?.signature??"";e.source?.postMessage({type:n.loginResponse,payload:{data:{address:t,signature:Buffer.from(f).toString("hex")}}},{targetOrigin:e.origin})}catch{this.isLoginInitiated&&(await this.handleLoginCancelled(),e.source?.postMessage({type:n.cancelResponse,payload:null},{targetOrigin:e.origin}))}finally{this.isLoginInitiated=!1}}handshake({event:e}){let s=Date.now().toString();e.source?.postMessage({type:n.finalizeHandshakeResponse,payload:{data:s}},{targetOrigin:e.origin})}async signMessage({event:e,payload:s}){let{address:a}=c(this.store.getState()),{message:t}=s;try{let o=new l({address:new p(a),data:new Uint8Array(Buffer.from(t))}),h=(await g().signMessage(o))?.signature??"";e.source?.postMessage({type:n.signMessageResponse,payload:{data:{signature:Buffer.from(h).toString("hex"),status:"signed"}}},{targetOrigin:e.origin})}catch{throw new Error("Could not sign message")}}async signTransactions({event:e}){let s=g(),{payload:a}=e.data;if(Array.isArray(a))try{let t=a.map(i=>u.newFromPlainObject(i)),o=await s.signTransactions(t);e.source?.postMessage({type:n.signTransactionsResponse,payload:{data:o.map(i=>i.toPlainObject())}},{targetOrigin:e.origin})}catch{throw new Error("Could not sign transactions")}}};export{m as a};
2
- //# sourceMappingURL=chunk-SBCXU7OA.mjs.map
1
+ import{b as r,c as n}from"./chunk-QJGFIK7H.mjs";import{l as g}from"./chunk-HUZZMMJX.mjs";import{q as M}from"./chunk-4D2LHSRB.mjs";import{a as c}from"./chunk-FK6DWWZF.mjs";import{a as u,c as p,g as l}from"./chunk-NTEMINYA.mjs";import{a as d}from"./chunk-D5L63X7Y.mjs";var m=class{constructor({onLoginCancelled:e}){this.handlers=new Map;this.store=M();this.isLoginInitiated=!1;this.handleMessage=this.handleMessage.bind(this),this.handleLoginCancelled=e}startListening(){d.addEventListener("message",this.handleMessage)}stopListening(){d.removeEventListener("message",this.handleMessage)}registerEvent(e,s){this.handlers.set(e,s)}unregisterEvent(e){this.handlers.delete(e)}async handleMessage(e){let s=e.data?.type;if(typeof s=="string"&&this.handlers.has(s))return this.handlers.get(s)?.(e);switch(s){case r.finalizeHandshakeRequest:this.handshake({event:e});break;case r.signMessageRequest:this.signMessage({event:e,payload:e.data.payload});break;case r.loginRequest:this.isLoginInitiated=!0,this.login({event:e,payload:e.data.payload});break;case r.signTransactionsRequest:this.signTransactions({event:e});break;case n.cancelResponse:case"cancelAction":this.isLoginInitiated&&await this.handleLoginCancelled();break;default:break}}async login({event:e,payload:s}){let a=s?.token;if(a)try{let{address:t}=c(this.store.getState()),o=g(),i=`${t}${a}`,y=new l({address:new p(t),data:new Uint8Array(Buffer.from(i))}),f=(await o.signMessage(y))?.signature??"";e.source?.postMessage({type:n.loginResponse,payload:{data:{address:t,signature:Buffer.from(f).toString("hex")}}},{targetOrigin:e.origin})}catch{this.isLoginInitiated&&(await this.handleLoginCancelled(),e.source?.postMessage({type:n.cancelResponse,payload:null},{targetOrigin:e.origin}))}finally{this.isLoginInitiated=!1}}handshake({event:e}){let s=Date.now().toString();e.source?.postMessage({type:n.finalizeHandshakeResponse,payload:{data:s}},{targetOrigin:e.origin})}async signMessage({event:e,payload:s}){let{address:a}=c(this.store.getState()),{message:t}=s;try{let o=new l({address:new p(a),data:new Uint8Array(Buffer.from(t))}),h=(await g().signMessage(o))?.signature??"";e.source?.postMessage({type:n.signMessageResponse,payload:{data:{signature:Buffer.from(h).toString("hex"),status:"signed"}}},{targetOrigin:e.origin})}catch{throw new Error("Could not sign message")}}async signTransactions({event:e}){let s=g(),{payload:a}=e.data;if(Array.isArray(a))try{let t=a.map(i=>u.newFromPlainObject(i)),o=await s.signTransactions(t);e.source?.postMessage({type:n.signTransactionsResponse,payload:{data:o.map(i=>i.toPlainObject())}},{targetOrigin:e.origin})}catch{throw new Error("Could not sign transactions")}}};export{m as a};
2
+ //# sourceMappingURL=chunk-QJTWOZ3K.mjs.map
@@ -0,0 +1,2 @@
1
+ import{s as t}from"./chunk-4D2LHSRB.mjs";import{c as r}from"./chunk-FK6DWWZF.mjs";function m(e=t()){return r(e)}export{m as a};
2
+ //# sourceMappingURL=chunk-R4BNJI2F.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as T}from"./chunk-Q2Q4XN4M.mjs";import{b as u}from"./chunk-YMDS57T6.mjs";import{d as l,e as m}from"./chunk-6PCK2RPQ.mjs";import{b as a}from"./chunk-7VHTZYM2.mjs";import{q as r}from"./chunk-2QIUCSYX.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-XHCLYR42.mjs.map
1
+ import{a as T}from"./chunk-Q2Q4XN4M.mjs";import{b as u}from"./chunk-GC5JRZOA.mjs";import{d as l,e as m}from"./chunk-LOPC75K6.mjs";import{b as a}from"./chunk-7VHTZYM2.mjs";import{q as r}from"./chunk-4D2LHSRB.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-S4TJTINB.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as l}from"./chunk-YUFPUG5O.mjs";import{a}from"./chunk-YGHJRPPY.mjs";import{a as c}from"./chunk-6M3IQXQF.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-RDEVBV56.mjs.map
1
+ import{a as l}from"./chunk-YUFPUG5O.mjs";import{a}from"./chunk-XBIX2QET.mjs";import{a as c}from"./chunk-XXQ7FANC.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-SFGR74WM.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-V7K77GSE.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-FKUMHDP5.mjs.map
1
+ import{a as e}from"./chunk-TPXNYEOT.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-SMCI4JNY.mjs.map
@@ -1,2 +1,2 @@
1
- import{d as t}from"./chunk-7VHTZYM2.mjs";import{s as r}from"./chunk-2QIUCSYX.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-CAOL6XLD.mjs.map
1
+ import{d as t}from"./chunk-7VHTZYM2.mjs";import{s as r}from"./chunk-4D2LHSRB.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-SMEKGCKH.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-PCPUKFTJ.mjs";async function i(n){if(!(typeof t.navigator<"u"&&t.navigator.product==="ReactNative"||!t))try{(await import("@multiversx/sdk-dapp-ui")).defineCustomElements(n)}catch(e){console.warn("@multiversx/sdk-dapp-ui not found"+e)}}export{i as a};
2
- //# sourceMappingURL=chunk-W2A2N772.mjs.map
1
+ import{a as t}from"./chunk-D5L63X7Y.mjs";async function i(n){if(!(typeof t.navigator<"u"&&t.navigator.product==="ReactNative"||!t))try{(await import("@multiversx/sdk-dapp-ui")).defineCustomElements(n)}catch(e){console.warn("@multiversx/sdk-dapp-ui not found"+e)}}export{i as a};
2
+ //# sourceMappingURL=chunk-SOGQ76CF.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as w}from"./chunk-EPB4JKWX.mjs";import{a as p}from"./chunk-IVMRBKXP.mjs";import{a as O}from"./chunk-PS3SWN5M.mjs";import{a as M}from"./chunk-IAN3XFXS.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-7BESPSVI.mjs";import{d as B}from"./chunk-QZC64RDG.mjs";import{l as f}from"./chunk-M6MN4RXG.mjs";import{q as c}from"./chunk-2QIUCSYX.mjs";import{a as d}from"./chunk-53NQH7NR.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-7GWD5XR7.mjs.map
1
+ import{a as w}from"./chunk-2UVDW2RQ.mjs";import{a as p}from"./chunk-FOFGZVG5.mjs";import{a as O}from"./chunk-JBF3CPLK.mjs";import{a as M}from"./chunk-KR2GUJDQ.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-VBNLRSKL.mjs";import{d as B}from"./chunk-HP2XUCRI.mjs";import{l as f}from"./chunk-M6MN4RXG.mjs";import{q as c}from"./chunk-4D2LHSRB.mjs";import{a as d}from"./chunk-PFR5VSL2.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-SQ7C3XLA.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as i}from"./chunk-WZEDZF3Q.mjs";import{c as n}from"./chunk-VSMFXZJI.mjs";import{a}from"./chunk-D6CXZV4Y.mjs";import{a as u}from"./chunk-AFOS3Q4N.mjs";import{a as s}from"./chunk-PCPUKFTJ.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-NGJIMP5Y.mjs.map
1
+ import{a as i}from"./chunk-LWW4KDFK.mjs";import{c as n}from"./chunk-NMK74PUW.mjs";import{a}from"./chunk-R4BNJI2F.mjs";import{a as u}from"./chunk-UCWTYWB3.mjs";import{a as s}from"./chunk-D5L63X7Y.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-SZNAMXXH.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-VC74WYUB.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-YXNJS4KL.mjs.map
1
+ import{a as e}from"./chunk-WGFZEQNT.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-TJKB7YME.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-IAN3XFXS.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-V7K77GSE.mjs.map
1
+ import{a as t}from"./chunk-KR2GUJDQ.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-TPXNYEOT.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as e}from"./chunk-6LOIZTC6.mjs";import{a as r}from"./chunk-EZKCZPIE.mjs";import{a as t}from"./chunk-FE54XZXM.mjs";import{a as o}from"./chunk-IHSJITVR.mjs";var a={network:{network:e},account:o,loginInfo:r,config:t,transactions:{},toasts:{customToasts:[],transactionToasts:[]},cache:{},ui:{isSidePanelOpen:!1}};export{a};
2
+ //# sourceMappingURL=chunk-UBP7VBFB.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as r}from"./chunk-55W25Q35.mjs";import{a as s}from"./chunk-PGPTO2Q4.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-WYE5FJIJ.mjs.map
1
+ import{a as r}from"./chunk-55W25Q35.mjs";import{a as s}from"./chunk-QHGCAYUB.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-UBQUZNLX.mjs.map
@@ -1,2 +1,2 @@
1
- import{j as n,q as o}from"./chunk-2QIUCSYX.mjs";import{c as p}from"./chunk-NTEMINYA.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-AFOS3Q4N.mjs.map
1
+ import{j as n,q as o}from"./chunk-4D2LHSRB.mjs";import{c as p}from"./chunk-NTEMINYA.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-UCWTYWB3.mjs.map
@@ -0,0 +1,2 @@
1
+ import{b as t}from"./chunk-GVAJPM5C.mjs";var c=o=>t(o);export{c as a};
2
+ //# sourceMappingURL=chunk-UMJE36YK.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as t}from"./chunk-X4P6NIGX.mjs";import{c as n}from"./chunk-4D2LHSRB.mjs";async function c({loginToken:r,extraInfoData:i,address:e}){let o=await t({originalLoginToken:r,extraInfoData:i,address:e});return o.modifiedLoginToken&&n(o.modifiedLoginToken),o.address}export{c as a};
2
+ //# sourceMappingURL=chunk-UXP5UK2L.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-2QIUCSYX.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-7BESPSVI.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-4D2LHSRB.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-VBNLRSKL.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"./chunk-NGM3AVCY.mjs";import{s as u}from"./chunk-2QIUCSYX.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-6RYKBAUE.mjs.map
1
+ import{a}from"./chunk-NGM3AVCY.mjs";import{s as u}from"./chunk-4D2LHSRB.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-VBWYZ6ZU.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as U}from"./chunk-RMLVJDCQ.mjs";import{a as B}from"./chunk-GBDHEWNQ.mjs";import{a as $}from"./chunk-UJTYOT5N.mjs";import{a as _}from"./chunk-PN7JDWSZ.mjs";import{a as j}from"./chunk-7Z7IX367.mjs";import{a as z}from"./chunk-VCQBYNNS.mjs";import{a as V}from"./chunk-RBZC4PEU.mjs";import{a as R}from"./chunk-SYHILLXA.mjs";import{l as M}from"./chunk-XA4YS4GK.mjs";import{a as w}from"./chunk-YGI3KXMZ.mjs";import{a as v}from"./chunk-7FV6DEQX.mjs";import{a as O}from"./chunk-RYIJWGFA.mjs";import{k as x}from"./chunk-QNYO7NI5.mjs";import{a as A}from"./chunk-YJCTRUJT.mjs";import{a as h,c as L,f}from"./chunk-PJWJZHIS.mjs";import{a as G}from"./chunk-2JKCBTYK.mjs";import{c as F}from"./chunk-PWAP64SN.mjs";import{a as C}from"./chunk-PCPUKFTJ.mjs";import{BigNumber as St}from"bignumber.js";async function qt({allTransactions:u,currentScreenIndex:s,egldLabel:o,network:n,gasPriceData:T,price:S,address:m,username:q,shard:H,signedIndexes:e,parsedTransactionsByDataField:K}){let c=u[s],W=c?.transaction?.sender.toString(),p=c?.transaction,i=p?.toPlainObject(),D=null,y=null,t=await $({egldLabel:o,sender:W,apiAddress:n.apiAddress,address:m,parsedTransactionsByDataField:K})(c),d=!t?.transactionTokenInfo?.tokenId,{tokenId:g,nonce:l,amount:I=""}=t?.transactionTokenInfo??{},Z=g&&l&&l.length>0?`${g}-${l}`:g,J=await v({tokenId:Z}),{esdtPrice:Q,tokenDecimals:X,type:r,identifier:a,tokenImageUrl:Y}=J;if(r==="SemiFungibleESDT"||r==="NonFungibleESDT")y={type:r,identifier:a,amount:I,imageURL:Y};else{let E=({addCommas:Tt})=>f({input:d?p.value.toString():I,decimals:d?Number(n.decimals):X,digits:Number(n.digits),showLastNonZeroDecimal:!1,addCommas:Tt}),gt=E({addCommas:!0}),lt=E({addCommas:!1}),ft=Number(d?S:Q),ut=w({amount:lt,usd:ft,addEqualSign:!0});D={identifier:(a===x?o:a)??o,amount:gt,usdValue:ut}}let{feeLimitFormatted:tt,feeInFiatLimit:ot}=R({transaction:p,price:S}),nt=B({shard:H,initialGasPrice:T.initialGasPrice,transaction:i,gasStationMetadata:n.gasStationMetadata}),{gasPriceOption:N}=T,et=M().getType(),it=O(et),k=u.length,rt=e.length>0?e[e.length-1]+1:0,P=F(i?.data??""),b=V(t?.transactionTokenInfo),at=_({data:P,identifier:a,highlight:b}),st=U(),mt=A({to:`/${G}/${m}`,explorerAddress:st}),ct=k===1||t?.needsSigning&&!e.includes(s),pt=f({input:N.toString(),decimals:L,addCommas:!0,digits:h}),dt=new St(i.gasLimit).toFormat({decimalSeparator:".",groupSeparator:",",groupSize:3});return{commonData:{receiver:i.receiver.toString(),data:P,decodedData:at,gasPrice:pt,gasLimit:dt,explorerLink:mt,gasPriceOption:N,gasPriceOptions:nt,egldLabel:o,tokenType:j(r),feeLimit:tt,feeInFiatLimit:ot,transactionsCount:k,currentIndex:s,currentIndexToSign:rt,highlight:b,scCall:z(t?.transactionTokenInfo),needsSigning:ct,isEditable:t?.needsSigning,providerName:it,address:m,username:q,origin:C.location?.origin},tokenTransaction:D,fungibleTransaction:y}}export{qt as a};
2
- //# sourceMappingURL=chunk-7TH3QSCV.mjs.map
1
+ import{a as U}from"./chunk-6KZ72DNU.mjs";import{a as B}from"./chunk-GBDHEWNQ.mjs";import{a as $}from"./chunk-WDFIVLDW.mjs";import{a as _}from"./chunk-PN7JDWSZ.mjs";import{a as j}from"./chunk-7Z7IX367.mjs";import{a as z}from"./chunk-VCQBYNNS.mjs";import{a as V}from"./chunk-RBZC4PEU.mjs";import{a as R}from"./chunk-SYHILLXA.mjs";import{l as M}from"./chunk-HUZZMMJX.mjs";import{a as w}from"./chunk-YGI3KXMZ.mjs";import{a as v}from"./chunk-XPASD5P4.mjs";import{a as O}from"./chunk-RYIJWGFA.mjs";import{k as x}from"./chunk-QNYO7NI5.mjs";import{a as A}from"./chunk-YJCTRUJT.mjs";import{a as h,c as L,f}from"./chunk-PJWJZHIS.mjs";import{a as G}from"./chunk-2JKCBTYK.mjs";import{c as F}from"./chunk-PWAP64SN.mjs";import{a as C}from"./chunk-D5L63X7Y.mjs";import{BigNumber as St}from"bignumber.js";async function qt({allTransactions:u,currentScreenIndex:s,egldLabel:o,network:n,gasPriceData:T,price:S,address:m,username:q,shard:H,signedIndexes:e,parsedTransactionsByDataField:K}){let c=u[s],W=c?.transaction?.sender.toString(),p=c?.transaction,i=p?.toPlainObject(),D=null,y=null,t=await $({egldLabel:o,sender:W,apiAddress:n.apiAddress,address:m,parsedTransactionsByDataField:K})(c),d=!t?.transactionTokenInfo?.tokenId,{tokenId:g,nonce:l,amount:I=""}=t?.transactionTokenInfo??{},Z=g&&l&&l.length>0?`${g}-${l}`:g,J=await v({tokenId:Z}),{esdtPrice:Q,tokenDecimals:X,type:r,identifier:a,tokenImageUrl:Y}=J;if(r==="SemiFungibleESDT"||r==="NonFungibleESDT")y={type:r,identifier:a,amount:I,imageURL:Y};else{let E=({addCommas:Tt})=>f({input:d?p.value.toString():I,decimals:d?Number(n.decimals):X,digits:Number(n.digits),showLastNonZeroDecimal:!1,addCommas:Tt}),gt=E({addCommas:!0}),lt=E({addCommas:!1}),ft=Number(d?S:Q),ut=w({amount:lt,usd:ft,addEqualSign:!0});D={identifier:(a===x?o:a)??o,amount:gt,usdValue:ut}}let{feeLimitFormatted:tt,feeInFiatLimit:ot}=R({transaction:p,price:S}),nt=B({shard:H,initialGasPrice:T.initialGasPrice,transaction:i,gasStationMetadata:n.gasStationMetadata}),{gasPriceOption:N}=T,et=M().getType(),it=O(et),k=u.length,rt=e.length>0?e[e.length-1]+1:0,P=F(i?.data??""),b=V(t?.transactionTokenInfo),at=_({data:P,identifier:a,highlight:b}),st=U(),mt=A({to:`/${G}/${m}`,explorerAddress:st}),ct=k===1||t?.needsSigning&&!e.includes(s),pt=f({input:N.toString(),decimals:L,addCommas:!0,digits:h}),dt=new St(i.gasLimit).toFormat({decimalSeparator:".",groupSeparator:",",groupSize:3});return{commonData:{receiver:i.receiver.toString(),data:P,decodedData:at,gasPrice:pt,gasLimit:dt,explorerLink:mt,gasPriceOption:N,gasPriceOptions:nt,egldLabel:o,tokenType:j(r),feeLimit:tt,feeInFiatLimit:ot,transactionsCount:k,currentIndex:s,currentIndexToSign:rt,highlight:b,scCall:z(t?.transactionTokenInfo),needsSigning:ct,isEditable:t?.needsSigning,providerName:it,address:m,username:q,origin:C.location?.origin},tokenTransaction:D,fungibleTransaction:y}}export{qt as a};
2
+ //# sourceMappingURL=chunk-VLASN3TA.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-AMXCV2YT.mjs";import{b as e}from"./chunk-7VHTZYM2.mjs";import{s as o}from"./chunk-2QIUCSYX.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-C4FY7JBD.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-7LMYILJF.mjs";import{b as e}from"./chunk-7VHTZYM2.mjs";import{s as o}from"./chunk-4D2LHSRB.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-VT6N4MFC.mjs.map
@@ -1,2 +1,2 @@
1
- import{b as r}from"./chunk-7VHTZYM2.mjs";import{s as e}from"./chunk-2QIUCSYX.mjs";var d=s=>{let o=r(e()),t=s??o.apiAddress;return t.endsWith("/")?t.slice(0,-1):t};export{d as a};
2
- //# sourceMappingURL=chunk-D4JFV2LM.mjs.map
1
+ import{b as r}from"./chunk-7VHTZYM2.mjs";import{s as e}from"./chunk-4D2LHSRB.mjs";var d=s=>{let o=r(e()),t=s??o.apiAddress;return t.endsWith("/")?t.slice(0,-1):t};export{d as a};
2
+ //# sourceMappingURL=chunk-W6XNEY4N.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as m}from"./chunk-KMITMS2L.mjs";import{a as l}from"./chunk-BODQ3QWR.mjs";import{a as p}from"./chunk-OMT62YRR.mjs";import{a as I}from"./chunk-S5XV2COC.mjs";import{b as g}from"./chunk-KOUT2Y7O.mjs";import{c as T}from"./chunk-PWAP64SN.mjs";var r={};function M({egldLabel:y,apiAddress:s,sender:t,address:e,parsedTransactionsByDataField:u}){return async o=>{if(o==null)return;let S=!t||t===e?null:await g({address:t,baseURL:s}),{transaction:a,multiTxData:A,transactionIndex:D}=o,c=T(a.data.toString()??""),d=p({data:c,multiTransactionData:A,parsedTransactionsByDataField:u}),{tokenId:f}=d,n=a.receiver.toBech32();if(t&&t!==e&&!l(S,e))throw console.error("You cannot sign transactions from a different account"),"You cannot sign transactions from a different account";let k=e!==n,x=n in r;if(n&&k&&!x){let i=await m({addressToVerify:n,baseURL:s});r={...r,...i?.scamInfo?{[n]:i.scamInfo}:{}}}let V=!!(f&&I({tokenId:f,egldLabel:y}));return{transaction:a,receiverScamInfo:r[n]?.info||null,transactionTokenInfo:d,isTokenTransaction:V,dataField:c,transactionIndex:D,needsSigning:o.needsSigning}}}export{M as a};
2
- //# sourceMappingURL=chunk-UJTYOT5N.mjs.map
1
+ import{a as m}from"./chunk-OCLD2VI4.mjs";import{a as l}from"./chunk-BODQ3QWR.mjs";import{a as p}from"./chunk-OMT62YRR.mjs";import{a as I}from"./chunk-S5XV2COC.mjs";import{b as g}from"./chunk-GVAJPM5C.mjs";import{c as T}from"./chunk-PWAP64SN.mjs";var r={};function M({egldLabel:y,apiAddress:s,sender:t,address:e,parsedTransactionsByDataField:u}){return async o=>{if(o==null)return;let S=!t||t===e?null:await g({address:t,baseURL:s}),{transaction:a,multiTxData:A,transactionIndex:D}=o,c=T(a.data.toString()??""),d=p({data:c,multiTransactionData:A,parsedTransactionsByDataField:u}),{tokenId:f}=d,n=a.receiver.toBech32();if(t&&t!==e&&!l(S,e))throw console.error("You cannot sign transactions from a different account"),"You cannot sign transactions from a different account";let k=e!==n,x=n in r;if(n&&k&&!x){let i=await m({addressToVerify:n,baseURL:s});r={...r,...i?.scamInfo?{[n]:i.scamInfo}:{}}}let V=!!(f&&I({tokenId:f,egldLabel:y}));return{transaction:a,receiverScamInfo:r[n]?.info||null,transactionTokenInfo:d,isTokenTransaction:V,dataField:c,transactionIndex:D,needsSigning:o.needsSigning}}}export{M as a};
2
+ //# sourceMappingURL=chunk-WDFIVLDW.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"./chunk-53NQH7NR.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-VC74WYUB.mjs.map
1
+ import{a}from"./chunk-PFR5VSL2.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-WGFZEQNT.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/managers/internal/UIBaseManager/UIBaseManager.ts"],
4
- "sourcesContent": ["import { UITagsEnum } from 'constants/UITags.enum';\nimport { IEventBus } from 'lib/sdkDappUi';\nimport { ProviderErrorsEnum } from 'types/provider.types';\nimport {\n ComponentFactory,\n CreateEventBusUIElementType\n} from 'utils/ComponentFactory';\n\nexport abstract class UIBaseManager<\n TElement extends CreateEventBusUIElementType,\n TData extends Record<string, any> | null,\n TEventEnum extends string\n> {\n protected eventBus: IEventBus | null = null;\n protected uiElement: TElement | null = null;\n protected isCreatingElement = false;\n protected anchor?: HTMLElement;\n protected uiTag: UITagsEnum;\n protected uiDataUpdateEvent: TEventEnum;\n protected eventHandlers: Map<TEventEnum, Function[]> = new Map();\n protected unsubscribeFunctions: Map<TEventEnum, (() => void)[]> = new Map();\n protected abstract initialData: TData;\n protected data: TData;\n\n constructor({\n uiDataUpdateEvent,\n uiTag\n }: {\n uiTag: UITagsEnum;\n uiDataUpdateEvent: TEventEnum;\n }) {\n this.uiDataUpdateEvent = uiDataUpdateEvent;\n this.uiTag = uiTag;\n this.data = this.getInitialData();\n }\n\n public async init(anchor?: HTMLElement) {\n this.anchor = anchor;\n await this.createUIElement(anchor);\n await this.setupEventListeners();\n }\n\n public updateData(newData: Partial<TData>) {\n this.data = { ...this.data, ...newData };\n this.notifyDataUpdate();\n }\n\n public subscribeToEventBus(event: TEventEnum, callback: Function) {\n if (!this.eventBus) {\n throw new Error(ProviderErrorsEnum.eventBusError);\n }\n\n const unsubscribe = this.eventBus?.subscribe(event, callback);\n if (unsubscribe) {\n const existing = this.unsubscribeFunctions.get(event) || [];\n existing.push(unsubscribe);\n this.unsubscribeFunctions.set(event, existing);\n\n // Store handler programatic access (e.g. for testing)\n const existingHandlers = this.eventHandlers.get(event) || [];\n existingHandlers.push(callback);\n this.eventHandlers.set(event, existingHandlers);\n }\n }\n\n public notifyDataUpdate() {\n this.eventBus?.publish(this.uiDataUpdateEvent, this.data);\n }\n\n public clearEventHandlers(\n events: TEventEnum[] = Array.from(this.unsubscribeFunctions.keys())\n ) {\n events.forEach((event) => {\n const unsubList = this.unsubscribeFunctions.get(event) || [];\n unsubList.forEach((unsubscribe) => unsubscribe());\n this.unsubscribeFunctions.delete(event);\n this.eventHandlers.delete(event);\n });\n }\n\n public destroy() {\n this.unsubscribeFunctions.forEach((unsubList) =>\n unsubList.forEach((unsubscribe) => unsubscribe())\n );\n this.unsubscribeFunctions.clear();\n this.eventHandlers.clear();\n this.eventBus = null;\n this.uiElement?.remove?.();\n this.uiElement = null;\n }\n\n protected getInitialData(): TData {\n return this.initialData;\n }\n\n public getEventHandlers(event: TEventEnum): Function[] {\n return this.eventHandlers.get(event) || [];\n }\n\n protected resetData() {\n this.data = this.getInitialData();\n }\n\n protected abstract setupEventListeners(): Promise<void>;\n\n private async createUIElement(\n anchor: HTMLElement | undefined = this.anchor\n ): Promise<TElement | null> {\n if (this.isCreatingElement || this.uiElement) {\n return this.uiElement;\n }\n\n this.isCreatingElement = true;\n\n this.uiElement = await ComponentFactory.create<TElement>({\n name: this.uiTag,\n anchor\n });\n\n this.isCreatingElement = false;\n\n if (!this.uiElement) {\n throw new Error(`Failed to create ${this.uiTag} element`);\n }\n\n if (!this.eventBus) {\n this.eventBus = await this.uiElement.getEventBus();\n }\n\n if (!this.eventBus) {\n throw new Error(ProviderErrorsEnum.eventBusError);\n }\n\n return this.uiElement;\n }\n}\n"],
4
+ "sourcesContent": ["import { UITagsEnum } from 'constants/UITags.enum';\nimport { IEventBus } from 'lib/sdkDappUi';\nimport { ProviderErrorsEnum } from 'types/provider.types';\nimport {\n ComponentFactory,\n CreateEventBusUIElementType\n} from 'utils/ComponentFactory';\n\nexport abstract class UIBaseManager<\n TElement extends CreateEventBusUIElementType,\n TData extends Record<string, any> | null,\n TEventEnum extends string\n> {\n protected eventBus: IEventBus | null = null;\n protected uiElement: TElement | null = null;\n protected isCreatingElement = false;\n protected anchor?: HTMLElement;\n protected uiTag: UITagsEnum;\n protected uiDataUpdateEvent: TEventEnum;\n protected eventHandlers: Map<TEventEnum, Function[]> = new Map();\n protected unsubscribeFunctions: Map<TEventEnum, (() => void)[]> = new Map();\n protected abstract initialData: TData;\n protected data: TData;\n\n constructor({\n uiDataUpdateEvent,\n uiTag\n }: {\n uiTag: UITagsEnum;\n uiDataUpdateEvent: TEventEnum;\n }) {\n this.uiDataUpdateEvent = uiDataUpdateEvent;\n this.uiTag = uiTag;\n this.data = this.getInitialData();\n }\n\n public async init(anchor?: HTMLElement) {\n this.anchor = anchor;\n await this.createUIElement(anchor);\n await this.setupEventListeners();\n }\n\n public updateData(newData: Partial<TData>) {\n this.data = { ...this.data, ...newData };\n this.notifyDataUpdate();\n }\n\n public subscribeToEventBus(event: TEventEnum, callback: Function) {\n if (!this.eventBus) {\n throw new Error(ProviderErrorsEnum.eventBusError);\n }\n\n const unsubscribe = this.eventBus?.subscribe(event, callback);\n if (unsubscribe) {\n const existing = this.unsubscribeFunctions.get(event) || [];\n existing.push(unsubscribe);\n this.unsubscribeFunctions.set(event, existing);\n\n // Store handler programmatic access (e.g. for testing)\n const existingHandlers = this.eventHandlers.get(event) || [];\n existingHandlers.push(callback);\n this.eventHandlers.set(event, existingHandlers);\n }\n }\n\n public notifyDataUpdate() {\n this.eventBus?.publish(this.uiDataUpdateEvent, this.data);\n }\n\n public clearEventHandlers(\n events: TEventEnum[] = Array.from(this.unsubscribeFunctions.keys())\n ) {\n events.forEach((event) => {\n const unsubList = this.unsubscribeFunctions.get(event) || [];\n unsubList.forEach((unsubscribe) => unsubscribe());\n this.unsubscribeFunctions.delete(event);\n this.eventHandlers.delete(event);\n });\n }\n\n public destroy() {\n this.unsubscribeFunctions.forEach((unsubList) =>\n unsubList.forEach((unsubscribe) => unsubscribe())\n );\n this.unsubscribeFunctions.clear();\n this.eventHandlers.clear();\n this.eventBus = null;\n this.uiElement?.remove?.();\n this.uiElement = null;\n }\n\n protected getInitialData(): TData {\n return this.initialData;\n }\n\n public getEventHandlers(event: TEventEnum): Function[] {\n return this.eventHandlers.get(event) || [];\n }\n\n protected resetData() {\n this.data = this.getInitialData();\n }\n\n protected abstract setupEventListeners(): Promise<void>;\n\n private async createUIElement(\n anchor: HTMLElement | undefined = this.anchor\n ): Promise<TElement | null> {\n if (this.isCreatingElement || this.uiElement) {\n return this.uiElement;\n }\n\n this.isCreatingElement = true;\n\n this.uiElement = await ComponentFactory.create<TElement>({\n name: this.uiTag,\n anchor\n });\n\n this.isCreatingElement = false;\n\n if (!this.uiElement) {\n throw new Error(`Failed to create ${this.uiTag} element`);\n }\n\n if (!this.eventBus) {\n this.eventBus = await this.uiElement.getEventBus();\n }\n\n if (!this.eventBus) {\n throw new Error(ProviderErrorsEnum.eventBusError);\n }\n\n return this.uiElement;\n }\n}\n"],
5
5
  "mappings": "oCAQO,IAAeA,EAAf,KAIL,CAYA,YAAY,CACV,kBAAAC,EACA,MAAAC,CACF,EAGG,CAjBH,KAAU,SAA6B,KACvC,KAAU,UAA6B,KACvC,KAAU,kBAAoB,GAI9B,KAAU,cAA6C,IAAI,IAC3D,KAAU,qBAAwD,IAAI,IAWpE,KAAK,kBAAoBD,EACzB,KAAK,MAAQC,EACb,KAAK,KAAO,KAAK,eAAe,CAClC,CAEA,MAAa,KAAKC,EAAsB,CACtC,KAAK,OAASA,EACd,MAAM,KAAK,gBAAgBA,CAAM,EACjC,MAAM,KAAK,oBAAoB,CACjC,CAEO,WAAWC,EAAyB,CACzC,KAAK,KAAO,CAAE,GAAG,KAAK,KAAM,GAAGA,CAAQ,EACvC,KAAK,iBAAiB,CACxB,CAEO,oBAAoBC,EAAmBC,EAAoB,CAChE,GAAI,CAAC,KAAK,SACR,MAAM,IAAI,mCAAsC,EAGlD,IAAMC,EAAc,KAAK,UAAU,UAAUF,EAAOC,CAAQ,EAC5D,GAAIC,EAAa,CACf,IAAMC,EAAW,KAAK,qBAAqB,IAAIH,CAAK,GAAK,CAAC,EAC1DG,EAAS,KAAKD,CAAW,EACzB,KAAK,qBAAqB,IAAIF,EAAOG,CAAQ,EAG7C,IAAMC,EAAmB,KAAK,cAAc,IAAIJ,CAAK,GAAK,CAAC,EAC3DI,EAAiB,KAAKH,CAAQ,EAC9B,KAAK,cAAc,IAAID,EAAOI,CAAgB,CAChD,CACF,CAEO,kBAAmB,CACxB,KAAK,UAAU,QAAQ,KAAK,kBAAmB,KAAK,IAAI,CAC1D,CAEO,mBACLC,EAAuB,MAAM,KAAK,KAAK,qBAAqB,KAAK,CAAC,EAClE,CACAA,EAAO,QAASL,GAAU,EACN,KAAK,qBAAqB,IAAIA,CAAK,GAAK,CAAC,GACjD,QAASE,GAAgBA,EAAY,CAAC,EAChD,KAAK,qBAAqB,OAAOF,CAAK,EACtC,KAAK,cAAc,OAAOA,CAAK,CACjC,CAAC,CACH,CAEO,SAAU,CACf,KAAK,qBAAqB,QAASM,GACjCA,EAAU,QAASJ,GAAgBA,EAAY,CAAC,CAClD,EACA,KAAK,qBAAqB,MAAM,EAChC,KAAK,cAAc,MAAM,EACzB,KAAK,SAAW,KAChB,KAAK,WAAW,SAAS,EACzB,KAAK,UAAY,IACnB,CAEU,gBAAwB,CAChC,OAAO,KAAK,WACd,CAEO,iBAAiBF,EAA+B,CACrD,OAAO,KAAK,cAAc,IAAIA,CAAK,GAAK,CAAC,CAC3C,CAEU,WAAY,CACpB,KAAK,KAAO,KAAK,eAAe,CAClC,CAIA,MAAc,gBACZF,EAAkC,KAAK,OACb,CAC1B,GAAI,KAAK,mBAAqB,KAAK,UACjC,OAAO,KAAK,UAYd,GATA,KAAK,kBAAoB,GAEzB,KAAK,UAAY,MAAMS,EAAiB,OAAiB,CACvD,KAAM,KAAK,MACX,OAAAT,CACF,CAAC,EAED,KAAK,kBAAoB,GAErB,CAAC,KAAK,UACR,MAAM,IAAI,MAAM,oBAAoB,KAAK,KAAK,UAAU,EAO1D,GAJK,KAAK,WACR,KAAK,SAAW,MAAM,KAAK,UAAU,YAAY,GAG/C,CAAC,KAAK,SACR,MAAM,IAAI,mCAAsC,EAGlD,OAAO,KAAK,SACd,CACF",
6
6
  "names": ["UIBaseManager", "uiDataUpdateEvent", "uiTag", "anchor", "newData", "event", "callback", "unsubscribe", "existing", "existingHandlers", "events", "unsubList", "ComponentFactory"]
7
7
  }
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-5WJQ2KWS.mjs";async function g({originalLoginToken:i,extraInfoData:n,address:o}){let e=await t({loginToken:i,extraInfoData:n}),s=n.multisig||n.impersonate||o;return{address:e!=null?s:o,modifiedLoginToken:e}}export{g as a};
2
- //# sourceMappingURL=chunk-LQAAQV3I.mjs.map
1
+ import{a as t}from"./chunk-XJY2BTDN.mjs";async function g({originalLoginToken:i,extraInfoData:n,address:o}){let e=await t({loginToken:i,extraInfoData:n}),s=n.multisig||n.impersonate||o;return{address:e!=null?s:o,modifiedLoginToken:e}}export{g as a};
2
+ //# sourceMappingURL=chunk-X4P6NIGX.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-D27ZK232.mjs";import{a as o}from"./chunk-PMHRZ5Y7.mjs";import{j as r}from"./chunk-E2GGD7D4.mjs";import{b as i}from"./chunk-QZC64RDG.mjs";import{s as n}from"./chunk-2QIUCSYX.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-K4E7GCWI.mjs.map
1
+ import{a as e}from"./chunk-B353O452.mjs";import{a as o}from"./chunk-PMHRZ5Y7.mjs";import{j as r}from"./chunk-E2GGD7D4.mjs";import{b as i}from"./chunk-HP2XUCRI.mjs";import{s as n}from"./chunk-4D2LHSRB.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-XAMG7OLZ.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as l}from"./chunk-3GRRAVW4.mjs";import{a}from"./chunk-5HEWN34K.mjs";import{l as c}from"./chunk-XA4YS4GK.mjs";import{a as g}from"./chunk-6M3IQXQF.mjs";import{s as e}from"./chunk-2QIUCSYX.mjs";import{g as n}from"./chunk-FK6DWWZF.mjs";import{e as d}from"./chunk-VNLGNNIL.mjs";import{HWProvider as P}from"@multiversx/sdk-hw-provider";async function S(s){let m=g(),t=s?.shouldInitProvider||!m,f=d(e()),o=n(e()),p=c(),i=new P;try{if(!t&&o){let u={version:o.version,dataEnabled:o.hasContractDataEnabled};return{ledgerProvider:i,ledgerConfig:u}}let r=await a({provider:p,ledgerProvider:i,ledgerLogin:f,shouldInitProvider:t}),v=await l(r);return{ledgerProvider:r,ledgerConfig:v}}catch(r){throw console.error("Could not initialize ledger app",r),r}}export{S as a};
2
- //# sourceMappingURL=chunk-YGHJRPPY.mjs.map
1
+ import{a as l}from"./chunk-3GRRAVW4.mjs";import{a}from"./chunk-5HEWN34K.mjs";import{l as c}from"./chunk-HUZZMMJX.mjs";import{a as g}from"./chunk-XXQ7FANC.mjs";import{s as e}from"./chunk-4D2LHSRB.mjs";import{g as n}from"./chunk-FK6DWWZF.mjs";import{e as d}from"./chunk-VNLGNNIL.mjs";import{HWProvider as P}from"@multiversx/sdk-hw-provider";async function S(s){let m=g(),t=s?.shouldInitProvider||!m,f=d(e()),o=n(e()),p=c(),i=new P;try{if(!t&&o){let u={version:o.version,dataEnabled:o.hasContractDataEnabled};return{ledgerProvider:i,ledgerConfig:u}}let r=await a({provider:p,ledgerProvider:i,ledgerLogin:f,shouldInitProvider:t}),v=await l(r);return{ledgerProvider:r,ledgerConfig:v}}catch(r){throw console.error("Could not initialize ledger app",r),r}}export{S as a};
2
+ //# sourceMappingURL=chunk-XBIX2QET.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as r}from"./chunk-HX3JKALT.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-5WJQ2KWS.mjs.map
1
+ import{a as r}from"./chunk-YEY7YGZD.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-XJY2BTDN.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as g}from"./chunk-NYZ726DG.mjs";import{b as c}from"./chunk-7VHTZYM2.mjs";import{a as s}from"./chunk-3FXHIV6O.mjs";import{s as o}from"./chunk-2QIUCSYX.mjs";import{o as a,u as m}from"./chunk-2JKCBTYK.mjs";async function I({tokenId:n}){let t=c(o()),r={tokenDecimals:Number(t.decimals),tokenLabel:"",tokenImageUrl:""},{isNft:k}=s(n),i=n,p=k?a:m;if(!i)return r;try{let e=await g(`${t.apiAddress}/${p}/${i}`),l=e?e?.decimals:Number(t.decimals),f=e?e?.name:"",T=e?e?.assets?.svgUrl??e?.media?.[0]?.thumbnailUrl:"";return{tokenDecimals:l,tokenLabel:f,type:e?.type,tokenImageUrl:T,identifier:e?.identifier,assets:e?.assets,esdtPrice:e?.price,ticker:e?.ticker,name:e?.name}}catch(e){return{...r,error:`${e}`}}}export{I as a};
2
- //# sourceMappingURL=chunk-7FV6DEQX.mjs.map
1
+ import{a as g}from"./chunk-NYZ726DG.mjs";import{b as c}from"./chunk-7VHTZYM2.mjs";import{a as s}from"./chunk-3FXHIV6O.mjs";import{s as o}from"./chunk-4D2LHSRB.mjs";import{o as a,u as m}from"./chunk-2JKCBTYK.mjs";async function I({tokenId:n}){let t=c(o()),r={tokenDecimals:Number(t.decimals),tokenLabel:"",tokenImageUrl:""},{isNft:k}=s(n),i=n,p=k?a:m;if(!i)return r;try{let e=await g(`${t.apiAddress}/${p}/${i}`),l=e?e?.decimals:Number(t.decimals),f=e?e?.name:"",T=e?e?.assets?.svgUrl??e?.media?.[0]?.thumbnailUrl:"";return{tokenDecimals:l,tokenLabel:f,type:e?.type,tokenImageUrl:T,identifier:e?.identifier,assets:e?.assets,esdtPrice:e?.price,ticker:e?.ticker,name:e?.name}}catch(e){return{...r,error:`${e}`}}}export{I as a};
2
+ //# sourceMappingURL=chunk-XPASD5P4.mjs.map
@@ -0,0 +1,2 @@
1
+ import{s as e}from"./chunk-4D2LHSRB.mjs";import{f as t}from"./chunk-FK6DWWZF.mjs";function n(o=e()){return t(o)}export{n as a};
2
+ //# sourceMappingURL=chunk-XXQ7FANC.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as f}from"./chunk-BSA3IGL6.mjs";import{a as l}from"./chunk-JMK6YN6B.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-HX3JKALT.mjs.map
1
+ import{a as f}from"./chunk-BSA3IGL6.mjs";import{a as l}from"./chunk-32MEBSR7.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-YEY7YGZD.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as r}from"./chunk-IAN3XFXS.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-JO7KFAZC.mjs.map
1
+ import{a as r}from"./chunk-KR2GUJDQ.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-YKHYAKVW.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as n}from"./chunk-D4JFV2LM.mjs";import{h as e}from"./chunk-2JKCBTYK.mjs";import i from"axios";async function u({url:o=e,baseURL:t}){let c=`${n(t)}/${o}`;try{let{data:r}=await i.get(c);return r}catch(r){return console.error("err fetching economics info",r),null}}export{u as a};
2
- //# sourceMappingURL=chunk-PYRTFEMB.mjs.map
1
+ import{a as n}from"./chunk-W6XNEY4N.mjs";import{h as e}from"./chunk-2JKCBTYK.mjs";import i from"axios";async function u({url:o=e,baseURL:t}){let c=`${n(t)}/${o}`;try{let{data:r}=await i.get(c);return r}catch(r){return console.error("err fetching economics info",r),null}}export{u as a};
2
+ //# sourceMappingURL=chunk-YPH67JEE.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-BJSQMG6V.mjs";import{a as o}from"./chunk-LJX4MW7B.mjs";import{a as e,b as t}from"./chunk-PCPUKFTJ.mjs";import{WebviewProvider as a}from"@multiversx/sdk-webview-provider/out/WebviewProvider";var n=class extends s{constructor(r){super(r?.address);this.cancelAction=async()=>{this.provider.cancelAction()};this.signTransactions=async r=>{if(!this.provider)throw new Error("Provider is not initialized.");try{return await this.provider.signTransactions(r)||[]}catch(i){throw this.cancelAction(),i}};this.signMessage=async r=>{if(!this.provider)throw new Error("Provider is not initialized.");try{return await this.provider.signMessage(r)}catch(i){throw this.cancelAction(),i}};this.provider=a.getInstance({resetStateCallback:()=>{e.localStorage?.clear?.(),e.sessionStorage?.clear?.()}}),this._login=this.provider.login.bind(this.provider)}async init(){return this.initializeAddress(),this.initializeProvider()}logout(){return this.provider.logout()}getType(){return o.webview}getAddress(){throw new Error("Method not implemented.")}setAccount(r){return this.provider.setAccount(r)}isInitialized(){return this.provider.isInitialized()}async initializeProvider(){let r=await this.provider.init(t);return this.address&&this.setAccount({address:this.address}),r}};export{n as a};
2
- //# sourceMappingURL=chunk-TRUOISVH.mjs.map
1
+ import{a as s}from"./chunk-766V4L43.mjs";import{a as o}from"./chunk-LJX4MW7B.mjs";import{a as e,b as t}from"./chunk-D5L63X7Y.mjs";import{WebviewProvider as a}from"@multiversx/sdk-webview-provider/out/WebviewProvider";var n=class extends s{constructor(r){super(r?.address);this.cancelAction=async()=>{this.provider.cancelAction()};this.signTransactions=async r=>{if(!this.provider)throw new Error("Provider is not initialized.");try{return await this.provider.signTransactions(r)||[]}catch(i){throw this.cancelAction(),i}};this.signMessage=async r=>{if(!this.provider)throw new Error("Provider is not initialized.");try{return await this.provider.signMessage(r)}catch(i){throw this.cancelAction(),i}};this.provider=a.getInstance({resetStateCallback:()=>{e.localStorage?.clear?.(),e.sessionStorage?.clear?.()}}),this._login=this.provider.login.bind(this.provider)}async init(){return this.initializeAddress(),this.initializeProvider()}logout(){return this.provider.logout()}getType(){return o.webview}getAddress(){throw new Error("Method not implemented.")}setAccount(r){return this.provider.setAccount(r)}isInitialized(){return this.provider.isInitialized()}async initializeProvider(){let r=await this.provider.init(t);return this.address&&this.setAccount({address:this.address}),r}};export{n as a};
2
+ //# sourceMappingURL=chunk-YYZKVLX7.mjs.map
@@ -1,2 +1,2 @@
1
- import{l as n}from"./chunk-XA4YS4GK.mjs";import{a as i}from"./chunk-LJX4MW7B.mjs";var e=async()=>{let o=n();if(o.getType()===i.crossWindow){let r=o;await r.cancelAction(),await r.dispose()}};export{e as a};
2
- //# sourceMappingURL=chunk-3NSS3FT6.mjs.map
1
+ import{l as n}from"./chunk-HUZZMMJX.mjs";import{a as i}from"./chunk-LJX4MW7B.mjs";var e=async()=>{let o=n();if(o.getType()===i.crossWindow){let r=o;await r.cancelAction(),await r.dispose()}};export{e as a};
2
+ //# sourceMappingURL=chunk-ZMC2BF4F.mjs.map
@@ -1,2 +1,2 @@
1
- import{a,b}from"../../__chunks__/chunk-KOUT2Y7O.mjs";import"../../__chunks__/chunk-D4JFV2LM.mjs";import"../../__chunks__/chunk-N56SMVGU.mjs";import"../../__chunks__/chunk-PKDR5ERF.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-2QIUCSYX.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-F2W755EK.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-NTEMINYA.mjs";import"../../__chunks__/chunk-NWJYEKI2.mjs";import"../../__chunks__/chunk-PCPUKFTJ.mjs";export{a as accountFetcher,b as getAccountFromApi};
1
+ import{a,b}from"../../__chunks__/chunk-GVAJPM5C.mjs";import"../../__chunks__/chunk-W6XNEY4N.mjs";import"../../__chunks__/chunk-N56SMVGU.mjs";import"../../__chunks__/chunk-PKDR5ERF.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-4D2LHSRB.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-LKC3E6AW.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-NTEMINYA.mjs";import"../../__chunks__/chunk-NWJYEKI2.mjs";import"../../__chunks__/chunk-D5L63X7Y.mjs";export{a as accountFetcher,b as getAccountFromApi};
2
2
  //# sourceMappingURL=getAccountFromApi.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../__chunks__/chunk-KMITMS2L.mjs";import"../../__chunks__/chunk-D4JFV2LM.mjs";import"../../__chunks__/chunk-PKDR5ERF.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-2QIUCSYX.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-F2W755EK.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-NTEMINYA.mjs";import"../../__chunks__/chunk-NWJYEKI2.mjs";import"../../__chunks__/chunk-PCPUKFTJ.mjs";export{a as getScamAddressData};
1
+ import{a}from"../../__chunks__/chunk-OCLD2VI4.mjs";import"../../__chunks__/chunk-W6XNEY4N.mjs";import"../../__chunks__/chunk-PKDR5ERF.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-4D2LHSRB.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-LKC3E6AW.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-NTEMINYA.mjs";import"../../__chunks__/chunk-NWJYEKI2.mjs";import"../../__chunks__/chunk-D5L63X7Y.mjs";export{a as getScamAddressData};
2
2
  //# sourceMappingURL=getScamAddressData.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../__chunks__/chunk-D4JFV2LM.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-2QIUCSYX.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-F2W755EK.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-NTEMINYA.mjs";import"../../__chunks__/chunk-PCPUKFTJ.mjs";export{a as getCleanApiAddress};
1
+ import{a}from"../../__chunks__/chunk-W6XNEY4N.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-4D2LHSRB.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-LKC3E6AW.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-NTEMINYA.mjs";import"../../__chunks__/chunk-D5L63X7Y.mjs";export{a as getCleanApiAddress};
2
2
  //# sourceMappingURL=getCleanApiAddress.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../__chunks__/chunk-6RCSIT2P.mjs";import"../../__chunks__/chunk-D4JFV2LM.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-2QIUCSYX.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-F2W755EK.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-NTEMINYA.mjs";import"../../__chunks__/chunk-PCPUKFTJ.mjs";export{a as getGasStationMetadataFromApi};
1
+ import{a}from"../../__chunks__/chunk-HDCJEKHM.mjs";import"../../__chunks__/chunk-W6XNEY4N.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-4D2LHSRB.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-LKC3E6AW.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-NTEMINYA.mjs";import"../../__chunks__/chunk-D5L63X7Y.mjs";export{a as getGasStationMetadataFromApi};
2
2
  //# sourceMappingURL=getGasStationMetadata.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../__chunks__/chunk-PYRTFEMB.mjs";import"../../__chunks__/chunk-D4JFV2LM.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-2QIUCSYX.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-F2W755EK.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-NTEMINYA.mjs";import"../../__chunks__/chunk-PCPUKFTJ.mjs";export{a as getEconomics};
1
+ import{a}from"../../__chunks__/chunk-YPH67JEE.mjs";import"../../__chunks__/chunk-W6XNEY4N.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-4D2LHSRB.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-LKC3E6AW.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-NTEMINYA.mjs";import"../../__chunks__/chunk-D5L63X7Y.mjs";export{a as getEconomics};
2
2
  //# sourceMappingURL=getEconomics.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../__chunks__/chunk-7FV6DEQX.mjs";import"../../__chunks__/chunk-NYZ726DG.mjs";import"../../__chunks__/chunk-SNPF3BD2.mjs";import"../../__chunks__/chunk-N56SMVGU.mjs";import"../../__chunks__/chunk-PKDR5ERF.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-3FXHIV6O.mjs";import"../../__chunks__/chunk-2QIUCSYX.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-F2W755EK.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-NTEMINYA.mjs";import"../../__chunks__/chunk-NWJYEKI2.mjs";import"../../__chunks__/chunk-PCPUKFTJ.mjs";export{a as getPersistedTokenDetails};
1
+ import{a}from"../../__chunks__/chunk-XPASD5P4.mjs";import"../../__chunks__/chunk-NYZ726DG.mjs";import"../../__chunks__/chunk-SNPF3BD2.mjs";import"../../__chunks__/chunk-N56SMVGU.mjs";import"../../__chunks__/chunk-PKDR5ERF.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-3FXHIV6O.mjs";import"../../__chunks__/chunk-4D2LHSRB.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-LKC3E6AW.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-NTEMINYA.mjs";import"../../__chunks__/chunk-NWJYEKI2.mjs";import"../../__chunks__/chunk-D5L63X7Y.mjs";export{a as getPersistedTokenDetails};
2
2
  //# sourceMappingURL=getPersistedTokenDetails.mjs.map