@multiversx/sdk-dapp 5.6.21 → 5.6.22

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 (376) hide show
  1. package/out/__chunks__/{chunk-XKVXNSSB.mjs → chunk-24EHYHC2.mjs} +2 -2
  2. package/out/__chunks__/{chunk-FFLLP6HV.mjs → chunk-2ERFU36I.mjs} +2 -2
  3. package/out/__chunks__/{chunk-YG2LNQ5T.mjs → chunk-2FLZQLHL.mjs} +2 -2
  4. package/out/__chunks__/{chunk-ZSIO7JSR.mjs → chunk-2G3SQAIQ.mjs} +2 -2
  5. package/out/__chunks__/{chunk-IVLXJLSO.mjs → chunk-343D3AMA.mjs} +2 -2
  6. package/out/__chunks__/{chunk-36UNO4TU.mjs → chunk-37XBMJUS.mjs} +2 -2
  7. package/out/__chunks__/{chunk-7BDXFZLC.mjs → chunk-3EQSEETK.mjs} +2 -2
  8. package/out/__chunks__/{chunk-RVPI43J4.mjs → chunk-424NUJVK.mjs} +2 -2
  9. package/out/__chunks__/{chunk-SIYKRNB4.mjs → chunk-4PH2HU7S.mjs} +2 -2
  10. package/out/__chunks__/{chunk-WQA4S6LX.mjs → chunk-4PI7HK4C.mjs} +2 -2
  11. package/out/__chunks__/{chunk-ONJMXU3I.mjs → chunk-4TXZCVFN.mjs} +2 -2
  12. package/out/__chunks__/chunk-5IHSFFSC.mjs +2 -0
  13. package/out/__chunks__/{chunk-CWCSBPY3.mjs → chunk-66H5JBIN.mjs} +2 -2
  14. package/out/__chunks__/chunk-67EZNZ3G.mjs +2 -0
  15. package/out/__chunks__/{chunk-N2RUTSP4.mjs → chunk-6FVH2YRH.mjs} +2 -2
  16. package/out/__chunks__/{chunk-ZCVS66L2.mjs → chunk-6PLGNDMI.mjs} +2 -2
  17. package/out/__chunks__/{chunk-R4OESOQT.mjs → chunk-6VCA6ZLV.mjs} +2 -2
  18. package/out/__chunks__/{chunk-Y3ZV4LOO.mjs → chunk-6YJCCZLX.mjs} +2 -2
  19. package/out/__chunks__/{chunk-6GK6KSWM.mjs → chunk-7KVG225H.mjs} +2 -2
  20. package/out/__chunks__/{chunk-ZBSK4R4A.mjs → chunk-AX4TYCZE.mjs} +2 -2
  21. package/out/__chunks__/{chunk-HIYESNLH.mjs → chunk-B6WCLNVW.mjs} +2 -2
  22. package/out/__chunks__/{chunk-THUYZJOV.mjs → chunk-BYBNN4KR.mjs} +2 -2
  23. package/out/__chunks__/{chunk-2PSCCAFS.mjs → chunk-BYOB4BJX.mjs} +2 -2
  24. package/out/__chunks__/{chunk-TL33Y6UO.mjs → chunk-C47F2DSK.mjs} +2 -2
  25. package/out/__chunks__/{chunk-Q2D7XVUW.mjs → chunk-CHDYDRGH.mjs} +2 -2
  26. package/out/__chunks__/{chunk-TWXGPL2M.mjs → chunk-DC72YEOI.mjs} +2 -2
  27. package/out/__chunks__/{chunk-ZTIVKI3D.mjs → chunk-DMUBYMI7.mjs} +2 -2
  28. package/out/__chunks__/chunk-EPP4W6NS.mjs +2 -0
  29. package/out/__chunks__/{chunk-LPAOTMAD.mjs → chunk-GCK2BTWM.mjs} +2 -2
  30. package/out/__chunks__/{chunk-GB5MPULE.mjs → chunk-GFRD6DC7.mjs} +2 -2
  31. package/out/__chunks__/{chunk-JZ35QU6N.mjs → chunk-GJSKMZ5J.mjs} +2 -2
  32. package/out/__chunks__/chunk-GNLCNART.mjs +2 -0
  33. package/out/__chunks__/{chunk-XR57DPDK.mjs → chunk-GTPGGUVC.mjs} +2 -2
  34. package/out/__chunks__/chunk-GXYN7OW2.mjs +2 -0
  35. package/out/__chunks__/{chunk-5HLQD7ON.mjs → chunk-H6EQTKFK.mjs} +2 -2
  36. package/out/__chunks__/{chunk-5K6KEW4N.mjs → chunk-H7CCXMFQ.mjs} +2 -2
  37. package/out/__chunks__/{chunk-DGGKLREG.mjs → chunk-HLIKW6T5.mjs} +2 -2
  38. package/out/__chunks__/chunk-HRX4UVIG.mjs +2 -0
  39. package/out/__chunks__/{chunk-Z63GEE5L.mjs → chunk-I53YLZ2T.mjs} +2 -2
  40. package/out/__chunks__/chunk-I5N5DHKW.mjs +2 -0
  41. package/out/__chunks__/{chunk-PH5DYKBD.mjs → chunk-IEGHXK66.mjs} +2 -2
  42. package/out/__chunks__/{chunk-ZFCFCT73.mjs → chunk-IPDWDMEJ.mjs} +2 -2
  43. package/out/__chunks__/chunk-IXZES7OF.mjs +2 -0
  44. package/out/__chunks__/{chunk-PBW3OFFT.mjs.map → chunk-IXZES7OF.mjs.map} +1 -1
  45. package/out/__chunks__/{chunk-EXZKSKKB.mjs → chunk-K7MM6MKP.mjs} +2 -2
  46. package/out/__chunks__/chunk-KB3ZP2B6.mjs +2 -0
  47. package/out/__chunks__/{chunk-RLXA4V4H.mjs → chunk-L4K3TCX4.mjs} +2 -2
  48. package/out/__chunks__/{chunk-MIRIUZ3C.mjs → chunk-LR2KZ5ET.mjs} +2 -2
  49. package/out/__chunks__/{chunk-ZKN4TX5N.mjs → chunk-LVY5STWK.mjs} +2 -2
  50. package/out/__chunks__/{chunk-G7NA76AN.mjs → chunk-MAOQDCIZ.mjs} +2 -2
  51. package/out/__chunks__/{chunk-D5TPQCLQ.mjs → chunk-NL4PKIDQ.mjs} +2 -2
  52. package/out/__chunks__/{chunk-5HFZQ4N2.mjs → chunk-NSYAXXGG.mjs} +2 -2
  53. package/out/__chunks__/{chunk-ZTJXY43P.mjs → chunk-NYBAFM6F.mjs} +2 -2
  54. package/out/__chunks__/{chunk-P6VSCY3K.mjs → chunk-O3L2SB6F.mjs} +2 -2
  55. package/out/__chunks__/{chunk-CU5E5DOU.mjs → chunk-OED7DMRA.mjs} +2 -2
  56. package/out/__chunks__/{chunk-FSHND4CZ.mjs → chunk-OJZJL25C.mjs} +2 -2
  57. package/out/__chunks__/{chunk-7272OEPE.mjs → chunk-OPTOPG46.mjs} +2 -2
  58. package/out/__chunks__/{chunk-WEPJVRJF.mjs → chunk-OU2URX22.mjs} +2 -2
  59. package/out/__chunks__/{chunk-OIWPNSN6.mjs → chunk-OU767NB5.mjs} +2 -2
  60. package/out/__chunks__/{chunk-A7SY6BD6.mjs → chunk-PBSKORAJ.mjs} +2 -2
  61. package/out/__chunks__/{chunk-LZSVC4NN.mjs → chunk-PY6IUFCF.mjs} +2 -2
  62. package/out/__chunks__/{chunk-WDFPQEDF.mjs → chunk-Q7WN7N57.mjs} +2 -2
  63. package/out/__chunks__/chunk-QJN3GSGR.mjs +2 -0
  64. package/out/__chunks__/{chunk-XCOSMO6H.mjs → chunk-QMRLPDMP.mjs} +2 -2
  65. package/out/__chunks__/{chunk-6VAM4MQD.mjs → chunk-QYQAHWW2.mjs} +2 -2
  66. package/out/__chunks__/{chunk-L6YVJOFV.mjs → chunk-RI4M5KFL.mjs} +2 -2
  67. package/out/__chunks__/chunk-RRZQ6HWW.mjs +2 -0
  68. package/out/__chunks__/{chunk-GUUHEK5P.mjs → chunk-S65LFCFF.mjs} +2 -2
  69. package/out/__chunks__/{chunk-7T364XME.mjs → chunk-SBJU7P6G.mjs} +2 -2
  70. package/out/__chunks__/chunk-SCMTCC7N.mjs +2 -0
  71. package/out/__chunks__/{chunk-OCZK57JN.mjs → chunk-SCMZLTVG.mjs} +2 -2
  72. package/out/__chunks__/{chunk-OXX4FBXV.mjs → chunk-SXUZVRHH.mjs} +2 -2
  73. package/out/__chunks__/{chunk-G3YNJTM3.mjs → chunk-TEI63RXL.mjs} +2 -2
  74. package/out/__chunks__/chunk-TO6UIEGW.mjs +2 -0
  75. package/out/__chunks__/{chunk-MN7GKF42.mjs → chunk-TTRVY63G.mjs} +2 -2
  76. package/out/__chunks__/{chunk-X6XZ2UK4.mjs → chunk-UHHB4O7I.mjs} +2 -2
  77. package/out/__chunks__/chunk-VBGR4QMV.mjs +2 -0
  78. package/out/__chunks__/{chunk-QUZRZ53M.mjs → chunk-VR5JBT6Q.mjs} +2 -2
  79. package/out/__chunks__/{chunk-ZPIP6QTW.mjs → chunk-VSMZ5SR6.mjs} +2 -2
  80. package/out/__chunks__/{chunk-FMSNDHB7.mjs → chunk-WB5BLJUQ.mjs} +2 -2
  81. package/out/__chunks__/{chunk-HY3RU7TP.mjs → chunk-X5U557J2.mjs} +2 -2
  82. package/out/__chunks__/{chunk-NXET3SBP.mjs → chunk-X7L2EJHP.mjs} +2 -2
  83. package/out/__chunks__/{chunk-ZGOXY26T.mjs → chunk-XYIEJRUO.mjs} +2 -2
  84. package/out/__chunks__/{chunk-YUDHQLY2.mjs → chunk-YD5E43DF.mjs} +2 -2
  85. package/out/__chunks__/chunk-YEHAZN4U.mjs +2 -0
  86. package/out/__chunks__/chunk-YFTZSYJR.mjs +2 -0
  87. package/out/__chunks__/chunk-YFTZSYJR.mjs.map +7 -0
  88. package/out/__chunks__/{chunk-KEM2JVJR.mjs → chunk-YMDXIJ3P.mjs} +2 -2
  89. package/out/__chunks__/{chunk-DQNOCLT6.mjs → chunk-YYB5NTTG.mjs} +2 -2
  90. package/out/__chunks__/{chunk-SVI37OOZ.mjs → chunk-ZE3C4Y4K.mjs} +2 -2
  91. package/out/apiCalls/account/getAccountFromApi.mjs +1 -1
  92. package/out/apiCalls/account/getScamAddressData.mjs +1 -1
  93. package/out/apiCalls/configuration/getCleanApiAddress.mjs +1 -1
  94. package/out/apiCalls/configuration/getGasStationMetadata.mjs +1 -1
  95. package/out/apiCalls/economics/getEconomics.mjs +1 -1
  96. package/out/apiCalls/tokens/getPersistedTokenDetails.mjs +1 -1
  97. package/out/apiCalls/tokens/getTokenDetails.mjs +1 -1
  98. package/out/apiCalls/transactions/getServerTransactionsByHashes.mjs +1 -1
  99. package/out/apiCalls/transactions/getTransactionByHash.mjs +1 -1
  100. package/out/apiCalls/transactions/getTransactionsByHashes.mjs +1 -1
  101. package/out/constants/browser.constants.mjs +1 -1
  102. package/out/constants/storage.constants.mjs +1 -1
  103. package/out/constants/window.constants.cjs +1 -1
  104. package/out/constants/window.constants.cjs.map +1 -1
  105. package/out/constants/window.constants.mjs +1 -1
  106. package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.mjs +1 -1
  107. package/out/controllers/TransactionsHistoryController/index.mjs +1 -1
  108. package/out/controllers/TransactionsTableController/TransactionsTableController.mjs +1 -1
  109. package/out/controllers/TransactionsTableController/index.mjs +1 -1
  110. package/out/lib/sdkDappUi.mjs +1 -1
  111. package/out/managers/LogoutManager/LogoutManager.mjs +1 -1
  112. package/out/managers/NotificationsFeedManager/NotificationsFeedManager.mjs +1 -1
  113. package/out/managers/NotificationsFeedManager/index.mjs +1 -1
  114. package/out/managers/ToastManager/ToastManager.mjs +1 -1
  115. package/out/managers/ToastManager/ToastUICoordinator.mjs +1 -1
  116. package/out/managers/ToastManager/helpers/LifetimeManager.mjs +1 -1
  117. package/out/managers/ToastManager/helpers/createToastsFromTransactions.mjs +1 -1
  118. package/out/managers/ToastManager/index.mjs +1 -1
  119. package/out/managers/TransactionManager/TransactionManager.mjs +1 -1
  120. package/out/managers/TransactionManager/helpers/getToastDuration.mjs +1 -1
  121. package/out/managers/TransactionManager/index.mjs +1 -1
  122. package/out/managers/UnlockPanelManager/UnlockPanelManager.mjs +1 -1
  123. package/out/managers/UnlockPanelManager/index.mjs +1 -1
  124. package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.mjs +1 -1
  125. package/out/managers/internal/LedgerConnectStateManager/index.mjs +1 -1
  126. package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.mjs +1 -1
  127. package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.mjs +1 -1
  128. package/out/managers/internal/PendingTransactionsStateManager/index.mjs +1 -1
  129. package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.mjs +1 -1
  130. package/out/managers/internal/SidePanelBaseManager/index.mjs +1 -1
  131. package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.mjs +1 -1
  132. package/out/managers/internal/SignTransactionsStateManager/index.mjs +1 -1
  133. package/out/managers/internal/UIBaseManager/UIBaseManager.mjs +1 -1
  134. package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.mjs +1 -1
  135. package/out/managers/internal/WalletConnectStateManager/index.mjs +1 -1
  136. package/out/methods/account/getAccount.mjs +1 -1
  137. package/out/methods/account/getAccountInfo.mjs +1 -1
  138. package/out/methods/account/getAddress.mjs +1 -1
  139. package/out/methods/account/getIsLoggedIn.mjs +1 -1
  140. package/out/methods/account/getLatestNonce.mjs +1 -1
  141. package/out/methods/initApp/gasStationMetadata/setGasStationMetadata.mjs +1 -1
  142. package/out/methods/initApp/helpers/waitForStoreRehydration.mjs +1 -1
  143. package/out/methods/initApp/initApp.mjs +1 -1
  144. package/out/methods/initApp/websocket/initializeWebsocketConnection.mjs +1 -1
  145. package/out/methods/initApp/websocket/registerWebsocket.mjs +1 -1
  146. package/out/methods/loginInfo/getLoginInfo.mjs +1 -1
  147. package/out/methods/network/getEgldLabel.mjs +1 -1
  148. package/out/methods/network/getExplorerAddress.mjs +1 -1
  149. package/out/methods/network/getNetworkConfig.mjs +1 -1
  150. package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.mjs +1 -1
  151. package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/checkBatch.mjs +1 -1
  152. package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/runTransactionFailure.mjs +1 -1
  153. package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/runTransactionStatusUpdate.mjs +1 -1
  154. package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/updateTransactionAndSessionStatus.mjs +1 -1
  155. package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/index.mjs +1 -1
  156. package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.mjs +1 -1
  157. package/out/methods/trackTransactions/helpers/getPollingInterval.mjs +1 -1
  158. package/out/methods/trackTransactions/trackTransactions.cjs +1 -1
  159. package/out/methods/trackTransactions/trackTransactions.cjs.map +3 -3
  160. package/out/methods/trackTransactions/trackTransactions.mjs +1 -1
  161. package/out/methods/transactions/getFailedTransactions.mjs +1 -1
  162. package/out/methods/transactions/getFailedTransactionsSessions.mjs +1 -1
  163. package/out/methods/transactions/getPendingTransactions.mjs +1 -1
  164. package/out/methods/transactions/getPendingTransactionsSessions.mjs +1 -1
  165. package/out/methods/transactions/getSuccessfulTransactions.mjs +1 -1
  166. package/out/methods/transactions/getSuccessfulTransactionsSessions.mjs +1 -1
  167. package/out/methods/transactions/getTransactionSessions.mjs +1 -1
  168. package/out/providers/DappProvider/DappProvider.mjs +1 -1
  169. package/out/providers/DappProvider/helpers/login/helpers/accountLogin.mjs +1 -1
  170. package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.mjs +1 -1
  171. package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.mjs +1 -1
  172. package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.mjs +1 -1
  173. package/out/providers/DappProvider/helpers/login/helpers/getMultisigLoginToken.mjs +1 -1
  174. package/out/providers/DappProvider/helpers/login/helpers/loginWithNativeToken.mjs +1 -1
  175. package/out/providers/DappProvider/helpers/login/helpers/loginWithoutNativeToken.mjs +1 -1
  176. package/out/providers/DappProvider/helpers/login/login.mjs +1 -1
  177. package/out/providers/DappProvider/helpers/logout/logout.mjs +1 -1
  178. package/out/providers/DappProvider/helpers/signErrors/handleSignError.mjs +1 -1
  179. package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.mjs +1 -1
  180. package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.mjs +1 -1
  181. package/out/providers/DappProvider/index.mjs +1 -1
  182. package/out/providers/ProviderFactory.mjs +1 -1
  183. package/out/providers/helpers/accountProvider.mjs +1 -1
  184. package/out/providers/helpers/cancelCrossWindowAction.mjs +1 -1
  185. package/out/providers/helpers/restoreProvider.mjs +1 -1
  186. package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.mjs +1 -1
  187. package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.mjs +1 -1
  188. package/out/providers/strategies/CrossWindowProviderStrategy/index.mjs +1 -1
  189. package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.mjs +1 -1
  190. package/out/providers/strategies/ExtensionProviderStrategy/index.mjs +1 -1
  191. package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.mjs +1 -1
  192. package/out/providers/strategies/IframeProviderStrategy/index.mjs +1 -1
  193. package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.mjs +1 -1
  194. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/authenticateLedgerAccount.mjs +1 -1
  195. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/updateAccountsList/index.mjs +1 -1
  196. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/updateAccountsList/updateAccountsList.mjs +1 -1
  197. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/waitForLedgerSelection.mjs +1 -1
  198. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/index.mjs +1 -1
  199. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/getLedgerProvider.mjs +1 -1
  200. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/index.mjs +1 -1
  201. package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.mjs +1 -1
  202. package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.mjs +1 -1
  203. package/out/providers/strategies/LedgerProviderStrategy/index.mjs +1 -1
  204. package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.mjs +1 -1
  205. package/out/providers/strategies/WalletConnectProviderStrategy/index.mjs +1 -1
  206. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.mjs +1 -1
  207. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.mjs +1 -1
  208. package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.mjs +1 -1
  209. package/out/providers/strategies/WebviewProviderStrategy/index.mjs +1 -1
  210. package/out/providers/strategies/helpers/getPendingTransactionsHandlers.mjs +1 -1
  211. package/out/providers/strategies/helpers/index.mjs +1 -1
  212. package/out/providers/strategies/helpers/signMessage/signMessage.mjs +1 -1
  213. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.mjs +1 -1
  214. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.mjs +1 -1
  215. package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.mjs +1 -1
  216. package/out/providers/strategies/helpers/signTransactions/signTransactions.mjs +1 -1
  217. package/out/react/account/useGetAccount.mjs +1 -1
  218. package/out/react/account/useGetAccountInfo.mjs +1 -1
  219. package/out/react/account/useGetIsLoggedIn.mjs +1 -1
  220. package/out/react/account/useGetLatestNonce.mjs +1 -1
  221. package/out/react/index.mjs +1 -1
  222. package/out/react/loginInfo/useGetLoginInfo.mjs +1 -1
  223. package/out/react/network/useGetNetworkConfig.mjs +1 -1
  224. package/out/react/store/getReactStore.mjs +1 -1
  225. package/out/react/store/useSelector.mjs +1 -1
  226. package/out/react/transactions/useGetFailedTransactions.mjs +1 -1
  227. package/out/react/transactions/useGetFailedTransactionsSessions.mjs +1 -1
  228. package/out/react/transactions/useGetPendingTransactions.mjs +1 -1
  229. package/out/react/transactions/useGetPendingTransactionsSessions.mjs +1 -1
  230. package/out/react/transactions/useGetSuccessfulTransactions.mjs +1 -1
  231. package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs +1 -1
  232. package/out/react/transactions/useGetTransactionSessions.mjs +1 -1
  233. package/out/services/nativeAuth/index.mjs +1 -1
  234. package/out/services/nativeAuth/methods/buildNativeAuthConfig.mjs +1 -1
  235. package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.mjs +1 -1
  236. package/out/services/nativeAuth/nativeAuth.mjs +1 -1
  237. package/out/store/actions/account/accountActions.mjs +1 -1
  238. package/out/store/actions/account/index.mjs +1 -1
  239. package/out/store/actions/cache/cacheActions.mjs +1 -1
  240. package/out/store/actions/cache/index.mjs +1 -1
  241. package/out/store/actions/config/configActions.mjs +1 -1
  242. package/out/store/actions/config/index.mjs +1 -1
  243. package/out/store/actions/loginInfo/loginInfoActions.mjs +1 -1
  244. package/out/store/actions/network/index.mjs +1 -1
  245. package/out/store/actions/network/initializeNetwork.mjs +1 -1
  246. package/out/store/actions/network/networkActions.mjs +1 -1
  247. package/out/store/actions/sharedActions/index.mjs +1 -1
  248. package/out/store/actions/sharedActions/sharedActions.mjs +1 -1
  249. package/out/store/actions/toasts/index.mjs +1 -1
  250. package/out/store/actions/toasts/toastsActions.mjs +1 -1
  251. package/out/store/actions/transactions/transactionsActions.mjs +1 -1
  252. package/out/store/actions/ui/index.mjs +1 -1
  253. package/out/store/actions/ui/uiActions.mjs +1 -1
  254. package/out/store/middleware/applyMiddlewares.mjs +1 -1
  255. package/out/store/middleware/index.mjs +1 -1
  256. package/out/store/middleware/logoutMiddleware.mjs +1 -1
  257. package/out/store/storage/index.mjs +1 -1
  258. package/out/store/storage/storageCallback.mjs +1 -1
  259. package/out/store/store.mjs +1 -1
  260. package/out/utils/ComponentFactory.mjs +1 -1
  261. package/out/utils/account/fetchAccount.mjs +1 -1
  262. package/out/utils/account/refreshAccount.mjs +1 -1
  263. package/out/utils/account/refreshNativeAuthTokenLogin.mjs +1 -1
  264. package/out/utils/transactions/getActiveTransactionsStatus.mjs +1 -1
  265. package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.mjs +1 -1
  266. package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.mjs +1 -1
  267. package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.mjs +1 -1
  268. package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.mjs +1 -1
  269. package/out/utils/transactions/getTransactionsHistory/index.mjs +1 -1
  270. package/out/utils/visual/switchTheme.mjs +1 -1
  271. package/out/utils/window/getIsInIframe.mjs +1 -1
  272. package/out/utils/window/getWindowParentOrigin.mjs +1 -1
  273. package/package.json +2 -2
  274. package/out/__chunks__/chunk-23T4S2W7.mjs +0 -2
  275. package/out/__chunks__/chunk-3CN4NWJJ.mjs +0 -2
  276. package/out/__chunks__/chunk-4QBX5YOI.mjs +0 -2
  277. package/out/__chunks__/chunk-67P2AODT.mjs +0 -2
  278. package/out/__chunks__/chunk-6YWZ75XO.mjs +0 -2
  279. package/out/__chunks__/chunk-AQPP7RTM.mjs +0 -2
  280. package/out/__chunks__/chunk-IJSFLWC7.mjs +0 -2
  281. package/out/__chunks__/chunk-JAHPAXFC.mjs +0 -2
  282. package/out/__chunks__/chunk-JJRA6WO3.mjs +0 -2
  283. package/out/__chunks__/chunk-K2JQV7EN.mjs +0 -2
  284. package/out/__chunks__/chunk-KJDTBDRK.mjs +0 -2
  285. package/out/__chunks__/chunk-NCFTGD3Z.mjs +0 -2
  286. package/out/__chunks__/chunk-NCFTGD3Z.mjs.map +0 -7
  287. package/out/__chunks__/chunk-PBW3OFFT.mjs +0 -2
  288. package/out/__chunks__/chunk-PJQTJIIE.mjs +0 -2
  289. package/out/__chunks__/chunk-XHCPL7RE.mjs +0 -2
  290. package/out/__chunks__/chunk-YXUCUKMO.mjs +0 -2
  291. /package/out/__chunks__/{chunk-XKVXNSSB.mjs.map → chunk-24EHYHC2.mjs.map} +0 -0
  292. /package/out/__chunks__/{chunk-FFLLP6HV.mjs.map → chunk-2ERFU36I.mjs.map} +0 -0
  293. /package/out/__chunks__/{chunk-YG2LNQ5T.mjs.map → chunk-2FLZQLHL.mjs.map} +0 -0
  294. /package/out/__chunks__/{chunk-ZSIO7JSR.mjs.map → chunk-2G3SQAIQ.mjs.map} +0 -0
  295. /package/out/__chunks__/{chunk-IVLXJLSO.mjs.map → chunk-343D3AMA.mjs.map} +0 -0
  296. /package/out/__chunks__/{chunk-36UNO4TU.mjs.map → chunk-37XBMJUS.mjs.map} +0 -0
  297. /package/out/__chunks__/{chunk-7BDXFZLC.mjs.map → chunk-3EQSEETK.mjs.map} +0 -0
  298. /package/out/__chunks__/{chunk-RVPI43J4.mjs.map → chunk-424NUJVK.mjs.map} +0 -0
  299. /package/out/__chunks__/{chunk-SIYKRNB4.mjs.map → chunk-4PH2HU7S.mjs.map} +0 -0
  300. /package/out/__chunks__/{chunk-WQA4S6LX.mjs.map → chunk-4PI7HK4C.mjs.map} +0 -0
  301. /package/out/__chunks__/{chunk-ONJMXU3I.mjs.map → chunk-4TXZCVFN.mjs.map} +0 -0
  302. /package/out/__chunks__/{chunk-XHCPL7RE.mjs.map → chunk-5IHSFFSC.mjs.map} +0 -0
  303. /package/out/__chunks__/{chunk-CWCSBPY3.mjs.map → chunk-66H5JBIN.mjs.map} +0 -0
  304. /package/out/__chunks__/{chunk-3CN4NWJJ.mjs.map → chunk-67EZNZ3G.mjs.map} +0 -0
  305. /package/out/__chunks__/{chunk-N2RUTSP4.mjs.map → chunk-6FVH2YRH.mjs.map} +0 -0
  306. /package/out/__chunks__/{chunk-ZCVS66L2.mjs.map → chunk-6PLGNDMI.mjs.map} +0 -0
  307. /package/out/__chunks__/{chunk-R4OESOQT.mjs.map → chunk-6VCA6ZLV.mjs.map} +0 -0
  308. /package/out/__chunks__/{chunk-Y3ZV4LOO.mjs.map → chunk-6YJCCZLX.mjs.map} +0 -0
  309. /package/out/__chunks__/{chunk-6GK6KSWM.mjs.map → chunk-7KVG225H.mjs.map} +0 -0
  310. /package/out/__chunks__/{chunk-ZBSK4R4A.mjs.map → chunk-AX4TYCZE.mjs.map} +0 -0
  311. /package/out/__chunks__/{chunk-HIYESNLH.mjs.map → chunk-B6WCLNVW.mjs.map} +0 -0
  312. /package/out/__chunks__/{chunk-THUYZJOV.mjs.map → chunk-BYBNN4KR.mjs.map} +0 -0
  313. /package/out/__chunks__/{chunk-2PSCCAFS.mjs.map → chunk-BYOB4BJX.mjs.map} +0 -0
  314. /package/out/__chunks__/{chunk-TL33Y6UO.mjs.map → chunk-C47F2DSK.mjs.map} +0 -0
  315. /package/out/__chunks__/{chunk-Q2D7XVUW.mjs.map → chunk-CHDYDRGH.mjs.map} +0 -0
  316. /package/out/__chunks__/{chunk-TWXGPL2M.mjs.map → chunk-DC72YEOI.mjs.map} +0 -0
  317. /package/out/__chunks__/{chunk-ZTIVKI3D.mjs.map → chunk-DMUBYMI7.mjs.map} +0 -0
  318. /package/out/__chunks__/{chunk-AQPP7RTM.mjs.map → chunk-EPP4W6NS.mjs.map} +0 -0
  319. /package/out/__chunks__/{chunk-LPAOTMAD.mjs.map → chunk-GCK2BTWM.mjs.map} +0 -0
  320. /package/out/__chunks__/{chunk-GB5MPULE.mjs.map → chunk-GFRD6DC7.mjs.map} +0 -0
  321. /package/out/__chunks__/{chunk-JZ35QU6N.mjs.map → chunk-GJSKMZ5J.mjs.map} +0 -0
  322. /package/out/__chunks__/{chunk-KJDTBDRK.mjs.map → chunk-GNLCNART.mjs.map} +0 -0
  323. /package/out/__chunks__/{chunk-XR57DPDK.mjs.map → chunk-GTPGGUVC.mjs.map} +0 -0
  324. /package/out/__chunks__/{chunk-6YWZ75XO.mjs.map → chunk-GXYN7OW2.mjs.map} +0 -0
  325. /package/out/__chunks__/{chunk-5HLQD7ON.mjs.map → chunk-H6EQTKFK.mjs.map} +0 -0
  326. /package/out/__chunks__/{chunk-5K6KEW4N.mjs.map → chunk-H7CCXMFQ.mjs.map} +0 -0
  327. /package/out/__chunks__/{chunk-DGGKLREG.mjs.map → chunk-HLIKW6T5.mjs.map} +0 -0
  328. /package/out/__chunks__/{chunk-IJSFLWC7.mjs.map → chunk-HRX4UVIG.mjs.map} +0 -0
  329. /package/out/__chunks__/{chunk-Z63GEE5L.mjs.map → chunk-I53YLZ2T.mjs.map} +0 -0
  330. /package/out/__chunks__/{chunk-JJRA6WO3.mjs.map → chunk-I5N5DHKW.mjs.map} +0 -0
  331. /package/out/__chunks__/{chunk-PH5DYKBD.mjs.map → chunk-IEGHXK66.mjs.map} +0 -0
  332. /package/out/__chunks__/{chunk-ZFCFCT73.mjs.map → chunk-IPDWDMEJ.mjs.map} +0 -0
  333. /package/out/__chunks__/{chunk-EXZKSKKB.mjs.map → chunk-K7MM6MKP.mjs.map} +0 -0
  334. /package/out/__chunks__/{chunk-4QBX5YOI.mjs.map → chunk-KB3ZP2B6.mjs.map} +0 -0
  335. /package/out/__chunks__/{chunk-RLXA4V4H.mjs.map → chunk-L4K3TCX4.mjs.map} +0 -0
  336. /package/out/__chunks__/{chunk-MIRIUZ3C.mjs.map → chunk-LR2KZ5ET.mjs.map} +0 -0
  337. /package/out/__chunks__/{chunk-ZKN4TX5N.mjs.map → chunk-LVY5STWK.mjs.map} +0 -0
  338. /package/out/__chunks__/{chunk-G7NA76AN.mjs.map → chunk-MAOQDCIZ.mjs.map} +0 -0
  339. /package/out/__chunks__/{chunk-D5TPQCLQ.mjs.map → chunk-NL4PKIDQ.mjs.map} +0 -0
  340. /package/out/__chunks__/{chunk-5HFZQ4N2.mjs.map → chunk-NSYAXXGG.mjs.map} +0 -0
  341. /package/out/__chunks__/{chunk-ZTJXY43P.mjs.map → chunk-NYBAFM6F.mjs.map} +0 -0
  342. /package/out/__chunks__/{chunk-P6VSCY3K.mjs.map → chunk-O3L2SB6F.mjs.map} +0 -0
  343. /package/out/__chunks__/{chunk-CU5E5DOU.mjs.map → chunk-OED7DMRA.mjs.map} +0 -0
  344. /package/out/__chunks__/{chunk-FSHND4CZ.mjs.map → chunk-OJZJL25C.mjs.map} +0 -0
  345. /package/out/__chunks__/{chunk-7272OEPE.mjs.map → chunk-OPTOPG46.mjs.map} +0 -0
  346. /package/out/__chunks__/{chunk-WEPJVRJF.mjs.map → chunk-OU2URX22.mjs.map} +0 -0
  347. /package/out/__chunks__/{chunk-OIWPNSN6.mjs.map → chunk-OU767NB5.mjs.map} +0 -0
  348. /package/out/__chunks__/{chunk-A7SY6BD6.mjs.map → chunk-PBSKORAJ.mjs.map} +0 -0
  349. /package/out/__chunks__/{chunk-LZSVC4NN.mjs.map → chunk-PY6IUFCF.mjs.map} +0 -0
  350. /package/out/__chunks__/{chunk-WDFPQEDF.mjs.map → chunk-Q7WN7N57.mjs.map} +0 -0
  351. /package/out/__chunks__/{chunk-YXUCUKMO.mjs.map → chunk-QJN3GSGR.mjs.map} +0 -0
  352. /package/out/__chunks__/{chunk-XCOSMO6H.mjs.map → chunk-QMRLPDMP.mjs.map} +0 -0
  353. /package/out/__chunks__/{chunk-6VAM4MQD.mjs.map → chunk-QYQAHWW2.mjs.map} +0 -0
  354. /package/out/__chunks__/{chunk-L6YVJOFV.mjs.map → chunk-RI4M5KFL.mjs.map} +0 -0
  355. /package/out/__chunks__/{chunk-PJQTJIIE.mjs.map → chunk-RRZQ6HWW.mjs.map} +0 -0
  356. /package/out/__chunks__/{chunk-GUUHEK5P.mjs.map → chunk-S65LFCFF.mjs.map} +0 -0
  357. /package/out/__chunks__/{chunk-7T364XME.mjs.map → chunk-SBJU7P6G.mjs.map} +0 -0
  358. /package/out/__chunks__/{chunk-23T4S2W7.mjs.map → chunk-SCMTCC7N.mjs.map} +0 -0
  359. /package/out/__chunks__/{chunk-OCZK57JN.mjs.map → chunk-SCMZLTVG.mjs.map} +0 -0
  360. /package/out/__chunks__/{chunk-OXX4FBXV.mjs.map → chunk-SXUZVRHH.mjs.map} +0 -0
  361. /package/out/__chunks__/{chunk-G3YNJTM3.mjs.map → chunk-TEI63RXL.mjs.map} +0 -0
  362. /package/out/__chunks__/{chunk-JAHPAXFC.mjs.map → chunk-TO6UIEGW.mjs.map} +0 -0
  363. /package/out/__chunks__/{chunk-MN7GKF42.mjs.map → chunk-TTRVY63G.mjs.map} +0 -0
  364. /package/out/__chunks__/{chunk-X6XZ2UK4.mjs.map → chunk-UHHB4O7I.mjs.map} +0 -0
  365. /package/out/__chunks__/{chunk-K2JQV7EN.mjs.map → chunk-VBGR4QMV.mjs.map} +0 -0
  366. /package/out/__chunks__/{chunk-QUZRZ53M.mjs.map → chunk-VR5JBT6Q.mjs.map} +0 -0
  367. /package/out/__chunks__/{chunk-ZPIP6QTW.mjs.map → chunk-VSMZ5SR6.mjs.map} +0 -0
  368. /package/out/__chunks__/{chunk-FMSNDHB7.mjs.map → chunk-WB5BLJUQ.mjs.map} +0 -0
  369. /package/out/__chunks__/{chunk-HY3RU7TP.mjs.map → chunk-X5U557J2.mjs.map} +0 -0
  370. /package/out/__chunks__/{chunk-NXET3SBP.mjs.map → chunk-X7L2EJHP.mjs.map} +0 -0
  371. /package/out/__chunks__/{chunk-ZGOXY26T.mjs.map → chunk-XYIEJRUO.mjs.map} +0 -0
  372. /package/out/__chunks__/{chunk-YUDHQLY2.mjs.map → chunk-YD5E43DF.mjs.map} +0 -0
  373. /package/out/__chunks__/{chunk-67P2AODT.mjs.map → chunk-YEHAZN4U.mjs.map} +0 -0
  374. /package/out/__chunks__/{chunk-KEM2JVJR.mjs.map → chunk-YMDXIJ3P.mjs.map} +0 -0
  375. /package/out/__chunks__/{chunk-DQNOCLT6.mjs.map → chunk-YYB5NTTG.mjs.map} +0 -0
  376. /package/out/__chunks__/{chunk-SVI37OOZ.mjs.map → chunk-ZE3C4Y4K.mjs.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-FSHND4CZ.mjs";import{a as o}from"./chunk-PMHRZ5Y7.mjs";import{j as r}from"./chunk-E2GGD7D4.mjs";import{b as i}from"./chunk-GB5MPULE.mjs";import{s as n}from"./chunk-XCOSMO6H.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-ZTJXY43P.mjs.map
1
+ import{a as e}from"./chunk-OJZJL25C.mjs";import{a as o}from"./chunk-PMHRZ5Y7.mjs";import{j as r}from"./chunk-E2GGD7D4.mjs";import{b as i}from"./chunk-GFRD6DC7.mjs";import{s as n}from"./chunk-QMRLPDMP.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-NYBAFM6F.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as T}from"./chunk-Q2Q4XN4M.mjs";import{b as u}from"./chunk-TWXGPL2M.mjs";import{d as l,e as m}from"./chunk-TL33Y6UO.mjs";import{b as a}from"./chunk-7VHTZYM2.mjs";import{q as r}from"./chunk-XCOSMO6H.mjs";import{b as t}from"./chunk-GGBMHKR4.mjs";import{io as y}from"socket.io-client";var S=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)},w=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=y(e,{forceNew:!0,reconnection:!0,reconnectionAttempts:A,reconnectionDelay:g,timeout:S,query:{address:i},transports:["websocket"]}),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 w(),{closeConnection:W}}export{M as a};
2
- //# sourceMappingURL=chunk-P6VSCY3K.mjs.map
1
+ import{a as T}from"./chunk-Q2Q4XN4M.mjs";import{b as u}from"./chunk-DC72YEOI.mjs";import{d as l,e as m}from"./chunk-C47F2DSK.mjs";import{b as a}from"./chunk-7VHTZYM2.mjs";import{q as r}from"./chunk-QMRLPDMP.mjs";import{b as t}from"./chunk-GGBMHKR4.mjs";import{io as y}from"socket.io-client";var S=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)},w=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=y(e,{forceNew:!0,reconnection:!0,reconnectionAttempts:A,reconnectionDelay:g,timeout:S,query:{address:i},transports:["websocket"]}),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 w(),{closeConnection:W}}export{M as a};
2
+ //# sourceMappingURL=chunk-O3L2SB6F.mjs.map
@@ -1,2 +1,2 @@
1
- import{l as n}from"./chunk-NCFTGD3Z.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-CU5E5DOU.mjs.map
1
+ import{l as n}from"./chunk-YFTZSYJR.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-OED7DMRA.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as r}from"./chunk-TWYGNEQS.mjs";import{b as n,c as o}from"./chunk-GB5MPULE.mjs";import{s}from"./chunk-XCOSMO6H.mjs";function T({sessionId:t,transaction:e}){o({sessionId:t,transaction:e});let i=s().transactions?.[t].transactions,a=r(i);return a&&n({sessionId:t,status:a}),a}export{T as a};
2
- //# sourceMappingURL=chunk-FSHND4CZ.mjs.map
1
+ import{a as r}from"./chunk-TWYGNEQS.mjs";import{b as n,c as o}from"./chunk-GFRD6DC7.mjs";import{s}from"./chunk-QMRLPDMP.mjs";function T({sessionId:t,transaction:e}){o({sessionId:t,transaction:e});let i=s().transactions?.[t].transactions,a=r(i);return a&&n({sessionId:t,status:a}),a}export{T as a};
2
+ //# sourceMappingURL=chunk-OJZJL25C.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as o}from"./chunk-Q2D7XVUW.mjs";import{v as e}from"./chunk-2JKCBTYK.mjs";import n from"axios";async function p(r,s){let a=`${o(s)}/${e}/${r}`;try{let{data:t}=await n.get(a);return t?{[r]:{lastBlock:t.lastBlock,fast:t.fast,faster:t.faster}}:null}catch(t){return console.error("Error fetching gas station metadata from:",a,t),null}}export{p as a};
2
- //# sourceMappingURL=chunk-7272OEPE.mjs.map
1
+ import{a as o}from"./chunk-CHDYDRGH.mjs";import{v as e}from"./chunk-2JKCBTYK.mjs";import n from"axios";async function p(r,s){let a=`${o(s)}/${e}/${r}`;try{let{data:t}=await n.get(a);return t?{[r]:{lastBlock:t.lastBlock,fast:t.fast,faster:t.faster}}:null}catch(t){return console.error("Error fetching gas station metadata from:",a,t),null}}export{p as a};
2
+ //# sourceMappingURL=chunk-OPTOPG46.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-CCD7PUHB.mjs";import{a as S}from"./chunk-EAJBSX6Y.mjs";import{c as r,d as a}from"./chunk-M6MN4RXG.mjs";import{s as e}from"./chunk-XCOSMO6H.mjs";import{a as n}from"./chunk-FK6DWWZF.mjs";var u=t=>{let o=0,i=n(e())?.shard;return S(t)?(t.forEach(c=>{let m=s(c,i);o+=m?5*6e3:6e3}),o):(o=s(t,i)?5*6e3:6e3,o)};export{u as a};
2
- //# sourceMappingURL=chunk-WEPJVRJF.mjs.map
1
+ import{a as s}from"./chunk-CCD7PUHB.mjs";import{a as S}from"./chunk-EAJBSX6Y.mjs";import{c as r,d as a}from"./chunk-M6MN4RXG.mjs";import{s as e}from"./chunk-QMRLPDMP.mjs";import{a as n}from"./chunk-FK6DWWZF.mjs";var u=t=>{let o=0,i=n(e())?.shard;return S(t)?(t.forEach(c=>{let m=s(c,i);o+=m?5*6e3:6e3}),o):(o=s(t,i)?5*6e3:6e3,o)};export{u as a};
2
+ //# sourceMappingURL=chunk-OU2URX22.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as c}from"./chunk-DLWDO7M6.mjs";import{i as v}from"./chunk-XKVXNSSB.mjs";import{k as d}from"./chunk-NCFTGD3Z.mjs";import{s as a}from"./chunk-XCOSMO6H.mjs";import{d as n}from"./chunk-VNLGNNIL.mjs";import{a as i}from"./chunk-LJX4MW7B.mjs";import{a as s}from"./chunk-Z63GEE5L.mjs";async function S(){let t=c(),m=s(),e=n(a()),o=m||t?i.webview:e,p=Object.values(i).includes(e);if(e&&!p&&(o=e),!o)return;let r=await v.create({type:o});if(!r)throw new Error("Provider not found");if(t||o===i.webview&&r.isInitialized())try{await r.login()}catch(f){console.warn("Failed to login with provider",r.getType(),f)}d(r)}export{S as a};
2
- //# sourceMappingURL=chunk-OIWPNSN6.mjs.map
1
+ import{a as c}from"./chunk-DLWDO7M6.mjs";import{i as v}from"./chunk-24EHYHC2.mjs";import{k as d}from"./chunk-YFTZSYJR.mjs";import{s as a}from"./chunk-QMRLPDMP.mjs";import{d as n}from"./chunk-VNLGNNIL.mjs";import{a as i}from"./chunk-LJX4MW7B.mjs";import{a as s}from"./chunk-I53YLZ2T.mjs";async function S(){let t=c(),m=s(),e=n(a()),o=m||t?i.webview:e,p=Object.values(i).includes(e);if(e&&!p&&(o=e),!o)return;let r=await v.create({type:o});if(!r)throw new Error("Provider not found");if(t||o===i.webview&&r.isInitialized())try{await r.login()}catch(f){console.warn("Failed to login with provider",r.getType(),f)}d(r)}export{S as a};
2
+ //# sourceMappingURL=chunk-OU767NB5.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as u}from"./chunk-MIRIUZ3C.mjs";import{a as g}from"./chunk-HSF3JATH.mjs";import l from"lodash.isequal";async function C({loginData:f,nativeAuthConfig:r,loginToken:s}){let{address:m,signature:d,...n}=f,a=Object.keys(n).reduce((i,t)=>{let o=["multisig","impersonate"].includes(t)&&n[t]!=null?String(n[t]):null;return o!=null&&(i[t]=o.toString()),i},{}),e={...r};if(Object.keys(a).length>0&&(e.extraInfo=a),!l(r,e)){let i=g(s);return await u(e).initialize({noCache:!0,latestBlockInfo:{hash:i?.blockHash??"",timestamp:i?.extraInfo?.timestamp??0}})}return s}export{C as a};
2
- //# sourceMappingURL=chunk-A7SY6BD6.mjs.map
1
+ import{a as u}from"./chunk-LR2KZ5ET.mjs";import{a as g}from"./chunk-HSF3JATH.mjs";import l from"lodash.isequal";async function C({loginData:f,nativeAuthConfig:r,loginToken:s}){let{address:m,signature:d,...n}=f,a=Object.keys(n).reduce((i,t)=>{let o=["multisig","impersonate"].includes(t)&&n[t]!=null?String(n[t]):null;return o!=null&&(i[t]=o.toString()),i},{}),e={...r};if(Object.keys(a).length>0&&(e.extraInfo=a),!l(r,e)){let i=g(s);return await u(e).initialize({noCache:!0,latestBlockInfo:{hash:i?.blockHash??"",timestamp:i?.extraInfo?.timestamp??0}})}return s}export{C as a};
2
+ //# sourceMappingURL=chunk-PBSKORAJ.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as H}from"./chunk-HIYESNLH.mjs";import{a as K}from"./chunk-AQPP7RTM.mjs";import{a as G}from"./chunk-CU5E5DOU.mjs";import{a as z}from"./chunk-5HLQD7ON.mjs";import{a as O}from"./chunk-RVPI43J4.mjs";import{a as X}from"./chunk-OMBZCVQZ.mjs";import{a as $}from"./chunk-5HFZQ4N2.mjs";import{a as W}from"./chunk-BKQQK7WP.mjs";import{a as h}from"./chunk-PJQTJIIE.mjs";import{d as j}from"./chunk-V5ZSFCKJ.mjs";import{a as R}from"./chunk-YXUCUKMO.mjs";import{e as B}from"./chunk-QNYO7NI5.mjs";import{b as _}from"./chunk-7VHTZYM2.mjs";import{s as C}from"./chunk-XCOSMO6H.mjs";import{a as U,c as k,f as x}from"./chunk-PJWJZHIS.mjs";import{d as E}from"./chunk-DA76AK4I.mjs";async function Gn({transactions:q=[],handleSign:L,guardTransactions:N=$,options:f}){let{address:D,shard:M,username:v}=R(),S=_(C()),J=j(C()),A=K(),{allTransactions:o,parsedTransactionsByDataField:F}=W(q),d=[];if(J?.isSigningUiEnabled===!1){h(!0);try{let p=[];for(let c of o){let l=await L([c.transaction]);l&&l.length>0&&p.push(l[0])}return f?.skipGuardian?p:await N(p)}finally{h(!1)}}let n=H.getInstance();if(await n.openUI(),!n)throw new Error("Unable to establish connection with sign screens");let Q=async()=>{await G(),n.closeUI()};return n.subscribeToEventBus("CLOSE_SIGN_TRANSACTIONS",Q),new Promise(async(p,P)=>{let c=[],l=await z({baseURL:S.apiAddress});n.notifyDataUpdate(),n.initializeGasPriceMap(o.map(a=>a.transaction));let w=l?.price,t=0,I=async()=>{let e=o[t]?.transaction,m=Number(e.nonce);try{n.updateIsLoading(!0);let{commonData:r,tokenTransaction:s,fungibleTransaction:i}=await O({allTransactions:o,currentScreenIndex:t,egldLabel:A,network:S,gasPriceData:n.getGasPriceOptionMap[m],price:w,address:D,username:v,shard:M,signedIndexes:d,parsedTransactionsByDataField:F});s&&n.updateTokenTransaction(s),i&&n.updateNonFungibleTransaction(i.type,i),n.updateCommonData(r)}catch(r){throw console.error(`Error fetching common data for transaction at index ${t}:`,r),r}finally{n.updateIsLoading(!1)}},V=()=>{t>0&&(t--,I())},Y=(a=1e9)=>{let m=o[t].transaction,r=Number(m.nonce);n.updateGasPriceMap({nonce:r,gasPriceOption:a});let s=m.toPlainObject(),i=E.newFromPlainObject({...s,gasPrice:a}),g=X({transaction:i,price:w}),y=x({input:a.toString(),decimals:k,addCommas:!0,digits:U});n.updateCommonData({feeLimit:g.feeLimitFormatted,feeInFiatLimit:g.feeInFiatLimit,gasPrice:y,gasPriceOption:a})},Z=async()=>{P(new Error("Transaction signing cancelled by user")),await G(),n.closeUI()},b=()=>{t<n.transactionsCount-1&&(t++,I())},nn=async()=>{let e=o[t].transaction,m=Number(e.nonce),{commonData:r}=await O({allTransactions:o,currentScreenIndex:t,egldLabel:A,network:S,gasPriceData:n.getGasPriceOptionMap[m],price:w,address:D,username:v,shard:M,signedIndexes:d,parsedTransactionsByDataField:F});if(!r.needsSigning)return d.push(t),b();let s=e.toPlainObject(),i=s.nonce,{gasPriceOption:g}=n.getGasPriceOptionMap[i],y=E.newFromPlainObject({...s,gasPrice:g});try{let u=await L([y]);u&&(d.push(t),c.push(u[0]));let on=t===o.length-1,rn=o.filter(T=>T.needsSigning),en=c.length===rn.length;if(on&&en){let T=await f?.callback?.(c)||c,sn=f?.skipGuardian?T:await N(T);return n.closeUI(),p(sn)}b()}catch(u){n.closeUI(),P(u)}},tn=new Map([["NEXT_SIGN_TRANSACTIONS",b],["CONFIRM_SIGN_TRANSACTIONS",nn],["CLOSE_SIGN_TRANSACTIONS",Z],["BACK_SIGN_TRANSACTIONS",V],["SET_GAS_PRICE_OPTION_SIGN_TRANSACTIONS",Y]]);function an(){for(let[a,e]of tn)n.subscribeToEventBus(a,e)}n.clearEventHandlers(["NEXT_SIGN_TRANSACTIONS","CONFIRM_SIGN_TRANSACTIONS","CLOSE_SIGN_TRANSACTIONS","BACK_SIGN_TRANSACTIONS","SET_GAS_PRICE_OPTION_SIGN_TRANSACTIONS"]),an(),await I()})}export{Gn as a};
2
- //# sourceMappingURL=chunk-LZSVC4NN.mjs.map
1
+ import{a as H}from"./chunk-B6WCLNVW.mjs";import{a as K}from"./chunk-EPP4W6NS.mjs";import{a as G}from"./chunk-OED7DMRA.mjs";import{a as z}from"./chunk-H6EQTKFK.mjs";import{a as O}from"./chunk-424NUJVK.mjs";import{a as X}from"./chunk-OMBZCVQZ.mjs";import{a as $}from"./chunk-NSYAXXGG.mjs";import{a as W}from"./chunk-BKQQK7WP.mjs";import{a as h}from"./chunk-RRZQ6HWW.mjs";import{d as j}from"./chunk-V5ZSFCKJ.mjs";import{a as R}from"./chunk-QJN3GSGR.mjs";import{e as B}from"./chunk-QNYO7NI5.mjs";import{b as _}from"./chunk-7VHTZYM2.mjs";import{s as C}from"./chunk-QMRLPDMP.mjs";import{a as U,c as k,f as x}from"./chunk-PJWJZHIS.mjs";import{d as E}from"./chunk-DA76AK4I.mjs";async function Gn({transactions:q=[],handleSign:L,guardTransactions:N=$,options:f}){let{address:D,shard:M,username:v}=R(),S=_(C()),J=j(C()),A=K(),{allTransactions:o,parsedTransactionsByDataField:F}=W(q),d=[];if(J?.isSigningUiEnabled===!1){h(!0);try{let p=[];for(let c of o){let l=await L([c.transaction]);l&&l.length>0&&p.push(l[0])}return f?.skipGuardian?p:await N(p)}finally{h(!1)}}let n=H.getInstance();if(await n.openUI(),!n)throw new Error("Unable to establish connection with sign screens");let Q=async()=>{await G(),n.closeUI()};return n.subscribeToEventBus("CLOSE_SIGN_TRANSACTIONS",Q),new Promise(async(p,P)=>{let c=[],l=await z({baseURL:S.apiAddress});n.notifyDataUpdate(),n.initializeGasPriceMap(o.map(a=>a.transaction));let w=l?.price,t=0,I=async()=>{let e=o[t]?.transaction,m=Number(e.nonce);try{n.updateIsLoading(!0);let{commonData:r,tokenTransaction:s,fungibleTransaction:i}=await O({allTransactions:o,currentScreenIndex:t,egldLabel:A,network:S,gasPriceData:n.getGasPriceOptionMap[m],price:w,address:D,username:v,shard:M,signedIndexes:d,parsedTransactionsByDataField:F});s&&n.updateTokenTransaction(s),i&&n.updateNonFungibleTransaction(i.type,i),n.updateCommonData(r)}catch(r){throw console.error(`Error fetching common data for transaction at index ${t}:`,r),r}finally{n.updateIsLoading(!1)}},V=()=>{t>0&&(t--,I())},Y=(a=1e9)=>{let m=o[t].transaction,r=Number(m.nonce);n.updateGasPriceMap({nonce:r,gasPriceOption:a});let s=m.toPlainObject(),i=E.newFromPlainObject({...s,gasPrice:a}),g=X({transaction:i,price:w}),y=x({input:a.toString(),decimals:k,addCommas:!0,digits:U});n.updateCommonData({feeLimit:g.feeLimitFormatted,feeInFiatLimit:g.feeInFiatLimit,gasPrice:y,gasPriceOption:a})},Z=async()=>{P(new Error("Transaction signing cancelled by user")),await G(),n.closeUI()},b=()=>{t<n.transactionsCount-1&&(t++,I())},nn=async()=>{let e=o[t].transaction,m=Number(e.nonce),{commonData:r}=await O({allTransactions:o,currentScreenIndex:t,egldLabel:A,network:S,gasPriceData:n.getGasPriceOptionMap[m],price:w,address:D,username:v,shard:M,signedIndexes:d,parsedTransactionsByDataField:F});if(!r.needsSigning)return d.push(t),b();let s=e.toPlainObject(),i=s.nonce,{gasPriceOption:g}=n.getGasPriceOptionMap[i],y=E.newFromPlainObject({...s,gasPrice:g});try{let u=await L([y]);u&&(d.push(t),c.push(u[0]));let on=t===o.length-1,rn=o.filter(T=>T.needsSigning),en=c.length===rn.length;if(on&&en){let T=await f?.callback?.(c)||c,sn=f?.skipGuardian?T:await N(T);return n.closeUI(),p(sn)}b()}catch(u){n.closeUI(),P(u)}},tn=new Map([["NEXT_SIGN_TRANSACTIONS",b],["CONFIRM_SIGN_TRANSACTIONS",nn],["CLOSE_SIGN_TRANSACTIONS",Z],["BACK_SIGN_TRANSACTIONS",V],["SET_GAS_PRICE_OPTION_SIGN_TRANSACTIONS",Y]]);function an(){for(let[a,e]of tn)n.subscribeToEventBus(a,e)}n.clearEventHandlers(["NEXT_SIGN_TRANSACTIONS","CONFIRM_SIGN_TRANSACTIONS","CLOSE_SIGN_TRANSACTIONS","BACK_SIGN_TRANSACTIONS","SET_GAS_PRICE_OPTION_SIGN_TRANSACTIONS"]),an(),await I()})}export{Gn as a};
2
+ //# sourceMappingURL=chunk-PY6IUFCF.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-PBW3OFFT.mjs";function r(t){try{if(!e)return;e.document.documentElement.dataset.mvxTheme=t}catch{console.log("Error switching the theme!")}}export{r as a};
2
- //# sourceMappingURL=chunk-WDFPQEDF.mjs.map
1
+ import{a as e}from"./chunk-IXZES7OF.mjs";function r(t){try{if(!e)return;e.document.documentElement.dataset.mvxTheme=t}catch{console.log("Error switching the theme!")}}export{r as a};
2
+ //# sourceMappingURL=chunk-Q7WN7N57.mjs.map
@@ -0,0 +1,2 @@
1
+ import{s as o}from"./chunk-QMRLPDMP.mjs";import{a as t}from"./chunk-FK6DWWZF.mjs";function n(r=o()){return t(r)}export{n as a};
2
+ //# sourceMappingURL=chunk-QJN3GSGR.mjs.map
@@ -1,2 +1,2 @@
1
- import{b as p,f as l}from"./chunk-FK6DWWZF.mjs";import{f as s}from"./chunk-VNLGNNIL.mjs";import{b as x}from"./chunk-A7FTKX2A.mjs";import{a as m,b as c}from"./chunk-RIPIZH54.mjs";import{a as T}from"./chunk-2DNGCNYM.mjs";import{a as f,b as g}from"./chunk-M7BM6QPB.mjs";import{a as L}from"./chunk-ONT6BGYB.mjs";import{a as d,b as y}from"./chunk-NLRDRI7Q.mjs";import{a as u,b as S}from"./chunk-VKEESSBI.mjs";import{a as I}from"./chunk-JJRA6WO3.mjs";import{a as k}from"./chunk-KRWR77QE.mjs";import{a as v}from"./chunk-NB7A4C7L.mjs";import{f as a}from"./chunk-DA76AK4I.mjs";import{createJSONStorage as O,devtools as V,persist as h}from"zustand/middleware";import{immer as N}from"zustand/middleware/immer";import{createStore as J}from"zustand/vanilla";var A=e=>{e.account=m,e.loginInfo=f,e.transactions=d,e.toasts=u};function H(){return new Date().setHours(new Date().getHours()+24)}function w(e){if(e==null){E();return}b(e)}var C=e=>{let t=l(e),r=s(e),{address:i,publicKey:D}=p(e);if(i&&D!==new a(i).toHex()&&A(e),!t)return;if(r==null){w(H());return}let P=Date.now();r-P<0&&(w(null),o().setState(A,!1,{type:"logoutMiddleware",payload:{value:null}}))};var M=(e,t)=>{C(e)};var W=e=>{let t=J(V(h(N((...r)=>({network:T(...r),account:c(...r),loginInfo:g(...r),config:L(...r),transactions:y(...r),toasts:S(...r),cache:x(...r),ui:v(...r)})),{name:"sdk-dapp-store",storage:O(e)}),{name:"sdk-dapp"}));return t.subscribe(M),t},n,z=e=>{n=e},o=()=>(n||z(W(()=>new k)),n),Se=(e=I)=>{let t=W(e);return z(t),t},de=()=>o().getState();var Le=e=>o().setState(({loginInfo:t})=>{t.providerType=e},!1,{type:"setProviderType",payload:{value:e}}),Te=e=>o().setState(({loginInfo:t})=>{t.tokenLogin=e},!1,{type:"setTokenLogin",payload:{value:e}}),ve=e=>o().setState(({loginInfo:t})=>{if(t.tokenLogin!=null){t.tokenLogin.loginToken=e;return}t.tokenLogin={loginToken:e}},!1,{type:"setLoginToken",payload:{value:e}}),Ie=e=>o().setState(({loginInfo:t})=>{t?.tokenLogin!=null&&(t.tokenLogin.signature=e)},!1,{type:"setTokenLoginSignature",payload:{value:e}}),ke=e=>o().setState(({loginInfo:t})=>{t.walletConnectLogin=e},!1,{type:"setWalletConnectLogin",payload:{value:e}}),Ae=e=>o().setState(({loginInfo:t})=>{t.ledgerLogin=e},!1,{type:"setLedgerLogin",payload:{value:e}}),we=e=>o().setState(({loginInfo:t})=>{t.isWalletConnectV2Initialized=e},!1,{type:"setIsWalletConnectV2Initialized",payload:{value:e}}),E=()=>o().setState(({loginInfo:e})=>{e.loginExpiresAt=null},!1,{type:"removeLoginExpiresAt",payload:{value:null}}),b=e=>o().setState(({loginInfo:t})=>{t.loginExpiresAt=e},!1,{type:"addLoginExpiresAt",payload:{value:e}});export{Le as a,Te as b,ve as c,Ie as d,ke as e,Ae as f,we as g,E as h,b as i,A as j,H as k,w as l,C as m,M as n,W as o,z as p,o as q,Se as r,de as s};
2
- //# sourceMappingURL=chunk-XCOSMO6H.mjs.map
1
+ import{b as p,f as l}from"./chunk-FK6DWWZF.mjs";import{f as s}from"./chunk-VNLGNNIL.mjs";import{b as x}from"./chunk-A7FTKX2A.mjs";import{a as m,b as c}from"./chunk-RIPIZH54.mjs";import{a as T}from"./chunk-2DNGCNYM.mjs";import{a as f,b as g}from"./chunk-M7BM6QPB.mjs";import{a as L}from"./chunk-ONT6BGYB.mjs";import{a as d,b as y}from"./chunk-NLRDRI7Q.mjs";import{a as u,b as S}from"./chunk-VKEESSBI.mjs";import{a as I}from"./chunk-I5N5DHKW.mjs";import{a as k}from"./chunk-KRWR77QE.mjs";import{a as v}from"./chunk-NB7A4C7L.mjs";import{f as a}from"./chunk-DA76AK4I.mjs";import{createJSONStorage as O,devtools as V,persist as h}from"zustand/middleware";import{immer as N}from"zustand/middleware/immer";import{createStore as J}from"zustand/vanilla";var A=e=>{e.account=m,e.loginInfo=f,e.transactions=d,e.toasts=u};function H(){return new Date().setHours(new Date().getHours()+24)}function w(e){if(e==null){E();return}b(e)}var C=e=>{let t=l(e),r=s(e),{address:i,publicKey:D}=p(e);if(i&&D!==new a(i).toHex()&&A(e),!t)return;if(r==null){w(H());return}let P=Date.now();r-P<0&&(w(null),o().setState(A,!1,{type:"logoutMiddleware",payload:{value:null}}))};var M=(e,t)=>{C(e)};var W=e=>{let t=J(V(h(N((...r)=>({network:T(...r),account:c(...r),loginInfo:g(...r),config:L(...r),transactions:y(...r),toasts:S(...r),cache:x(...r),ui:v(...r)})),{name:"sdk-dapp-store",storage:O(e)}),{name:"sdk-dapp"}));return t.subscribe(M),t},n,z=e=>{n=e},o=()=>(n||z(W(()=>new k)),n),Se=(e=I)=>{let t=W(e);return z(t),t},de=()=>o().getState();var Le=e=>o().setState(({loginInfo:t})=>{t.providerType=e},!1,{type:"setProviderType",payload:{value:e}}),Te=e=>o().setState(({loginInfo:t})=>{t.tokenLogin=e},!1,{type:"setTokenLogin",payload:{value:e}}),ve=e=>o().setState(({loginInfo:t})=>{if(t.tokenLogin!=null){t.tokenLogin.loginToken=e;return}t.tokenLogin={loginToken:e}},!1,{type:"setLoginToken",payload:{value:e}}),Ie=e=>o().setState(({loginInfo:t})=>{t?.tokenLogin!=null&&(t.tokenLogin.signature=e)},!1,{type:"setTokenLoginSignature",payload:{value:e}}),ke=e=>o().setState(({loginInfo:t})=>{t.walletConnectLogin=e},!1,{type:"setWalletConnectLogin",payload:{value:e}}),Ae=e=>o().setState(({loginInfo:t})=>{t.ledgerLogin=e},!1,{type:"setLedgerLogin",payload:{value:e}}),we=e=>o().setState(({loginInfo:t})=>{t.isWalletConnectV2Initialized=e},!1,{type:"setIsWalletConnectV2Initialized",payload:{value:e}}),E=()=>o().setState(({loginInfo:e})=>{e.loginExpiresAt=null},!1,{type:"removeLoginExpiresAt",payload:{value:null}}),b=e=>o().setState(({loginInfo:t})=>{t.loginExpiresAt=e},!1,{type:"addLoginExpiresAt",payload:{value:e}});export{Le as a,Te as b,ve as c,Ie as d,ke as e,Ae as f,we as g,E as h,b as i,A as j,H as k,w as l,C as m,M as n,W as o,z as p,o as q,Se as r,de as s};
2
+ //# sourceMappingURL=chunk-QMRLPDMP.mjs.map
@@ -1,2 +1,2 @@
1
- import{j as a,q as o}from"./chunk-XCOSMO6H.mjs";import{f as p}from"./chunk-DA76AK4I.mjs";var d=()=>o().setState(a,!1,{type:"logoutAction",payload:{value:null}}),s=({address:e,providerType:t})=>{o().setState(({account:r,loginInfo:i})=>{r.address=e,r.publicKey=new p(e).toHex(),i&&(i.providerType=t)},!1,{type:"loginAction",payload:{value:{address:e,providerType:t}}})};export{d as a,s as b};
2
- //# sourceMappingURL=chunk-6VAM4MQD.mjs.map
1
+ import{j as a,q as o}from"./chunk-QMRLPDMP.mjs";import{f as p}from"./chunk-DA76AK4I.mjs";var d=()=>o().setState(a,!1,{type:"logoutAction",payload:{value:null}}),s=({address:e,providerType:t})=>{o().setState(({account:r,loginInfo:i})=>{r.address=e,r.publicKey=new p(e).toHex(),i&&(i.providerType=t)},!1,{type:"loginAction",payload:{value:{address:e,providerType:t}}})};export{d as a,s as b};
2
+ //# sourceMappingURL=chunk-QYQAHWW2.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as l}from"./chunk-YUFPUG5O.mjs";import{a}from"./chunk-CWCSBPY3.mjs";import{a as c}from"./chunk-4QBX5YOI.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-L6YVJOFV.mjs.map
1
+ import{a as l}from"./chunk-YUFPUG5O.mjs";import{a}from"./chunk-66H5JBIN.mjs";import{a as c}from"./chunk-KB3ZP2B6.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-RI4M5KFL.mjs.map
@@ -0,0 +1,2 @@
1
+ import{q as t}from"./chunk-QMRLPDMP.mjs";var l=e=>t().setState(({ui:a})=>{a.isSidePanelOpen=e},!1,{type:"setIsSidePanelOpen",payload:{value:e}});export{l as a};
2
+ //# sourceMappingURL=chunk-RRZQ6HWW.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"./chunk-SVI37OOZ.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-GUUHEK5P.mjs.map
1
+ import{a}from"./chunk-ZE3C4Y4K.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-S65LFCFF.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as d}from"./chunk-7BDXFZLC.mjs";import{f,g as l}from"./chunk-7VHTZYM2.mjs";import{a as S}from"./chunk-KJDTBDRK.mjs";import{a as u}from"./chunk-4O27AVB7.mjs";import{s as h}from"./chunk-XCOSMO6H.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-7T364XME.mjs.map
1
+ import{a as d}from"./chunk-3EQSEETK.mjs";import{f,g as l}from"./chunk-7VHTZYM2.mjs";import{a as S}from"./chunk-GNLCNART.mjs";import{a as u}from"./chunk-4O27AVB7.mjs";import{s as h}from"./chunk-QMRLPDMP.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-SBJU7P6G.mjs.map
@@ -0,0 +1,2 @@
1
+ import{s as t}from"./chunk-QMRLPDMP.mjs";import{c as r}from"./chunk-FK6DWWZF.mjs";function m(e=t()){return r(e)}export{m as a};
2
+ //# sourceMappingURL=chunk-SCMTCC7N.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as A}from"./chunk-WEPJVRJF.mjs";import{a as I}from"./chunk-EAJBSX6Y.mjs";import{a as b}from"./chunk-TWYGNEQS.mjs";import{b as T}from"./chunk-2VG3V3VD.mjs";import{g as S}from"./chunk-R4OESOQT.mjs";import{a as h}from"./chunk-GB5MPULE.mjs";import{a as y}from"./chunk-YXUCUKMO.mjs";import{h as f}from"./chunk-M6MN4RXG.mjs";import{b as l}from"./chunk-7VHTZYM2.mjs";import{a as g}from"./chunk-NI7XCWV5.mjs";import{s as m}from"./chunk-XCOSMO6H.mjs";import w from"axios";var r=class r{constructor(){this.setCallbacks=({onSuccess:t,onFail:a})=>{T({onSuccess:t,onFail:a})};this.send=async t=>{if(t.length===0)throw new Error("No transactions to send");try{if(!I(t))return await this.sendSignedTransactions(t);let a=await this.sendSignedBatchTransactions(t);if(!a.data||a.data.error)throw new Error(a.data?.error??"Failed to send transactions");return a.data.transactions}catch(a){throw a.response?.data?.message??a.message}};this.track=async(t,a={disableToasts:!1})=>{let s=this.sequentialToFlatArray(t).map(e=>({...e,status:e.status??"pending"})),o=b(s),n=h({transactions:s,transactionsDisplayInfo:a.transactionsDisplayInfo,status:o??"sent",sessionInformation:a.sessionInformation});if(a.disableToasts===!0)return n;a.onSuccess&&T({onSuccess:a.onSuccess,sessionId:n}),a.onFail&&T({onFail:a.onFail,sessionId:n});let i=A(t);return S({toastId:n,totalDuration:i}),n};this.sendSignedTransactions=async t=>{let{apiAddress:a,apiTimeout:s}=l(m());return await Promise.all(t.map(async n=>{let i=await w.post(`${a}/transactions`,n.toPlainObject(),{timeout:Number(s)}),e=i.data.txHash;return{...n.toPlainObject(),...i.data,status:"pending",hash:e}}))};this.sendSignedBatchTransactions=async t=>{let{address:a}=y(),{apiAddress:s,apiTimeout:o}=l(m());if(!a)return{error:"Invalid address provided. You need to be logged in to send transactions"};let n=this.buildBatchId(a),e={transactions:t.map(p=>p.map(c=>c.toPlainObject())),id:n},{data:u}=await w.post(`${s}/batch`,e,{timeout:Number(o)}),B=u.transactions.map(p=>p.map(c=>{let d={...c,status:"pending",hash:c.hash};return g({data:d.data})&&(delete d.senderUsername,delete d.receiverUsername),d}));return{data:{...u,transactions:B}}};this.buildBatchId=t=>`${Date.now().toString()}${f}${t}`;this.sequentialToFlatArray=(t=[])=>this.getIsSequential(t)?t.flat():t;this.getIsSequential=t=>t?.every(a=>Array.isArray(a))}static getInstance(){return r.instance||(r.instance=new r),r.instance}};r.instance=null;var v=r;export{v as a};
2
- //# sourceMappingURL=chunk-OCZK57JN.mjs.map
1
+ import{a as A}from"./chunk-OU2URX22.mjs";import{a as I}from"./chunk-EAJBSX6Y.mjs";import{a as b}from"./chunk-TWYGNEQS.mjs";import{b as T}from"./chunk-2VG3V3VD.mjs";import{g as S}from"./chunk-6VCA6ZLV.mjs";import{a as h}from"./chunk-GFRD6DC7.mjs";import{a as y}from"./chunk-QJN3GSGR.mjs";import{h as f}from"./chunk-M6MN4RXG.mjs";import{b as l}from"./chunk-7VHTZYM2.mjs";import{a as g}from"./chunk-NI7XCWV5.mjs";import{s as m}from"./chunk-QMRLPDMP.mjs";import w from"axios";var r=class r{constructor(){this.setCallbacks=({onSuccess:t,onFail:a})=>{T({onSuccess:t,onFail:a})};this.send=async t=>{if(t.length===0)throw new Error("No transactions to send");try{if(!I(t))return await this.sendSignedTransactions(t);let a=await this.sendSignedBatchTransactions(t);if(!a.data||a.data.error)throw new Error(a.data?.error??"Failed to send transactions");return a.data.transactions}catch(a){throw a.response?.data?.message??a.message}};this.track=async(t,a={disableToasts:!1})=>{let s=this.sequentialToFlatArray(t).map(e=>({...e,status:e.status??"pending"})),o=b(s),n=h({transactions:s,transactionsDisplayInfo:a.transactionsDisplayInfo,status:o??"sent",sessionInformation:a.sessionInformation});if(a.disableToasts===!0)return n;a.onSuccess&&T({onSuccess:a.onSuccess,sessionId:n}),a.onFail&&T({onFail:a.onFail,sessionId:n});let i=A(t);return S({toastId:n,totalDuration:i}),n};this.sendSignedTransactions=async t=>{let{apiAddress:a,apiTimeout:s}=l(m());return await Promise.all(t.map(async n=>{let i=await w.post(`${a}/transactions`,n.toPlainObject(),{timeout:Number(s)}),e=i.data.txHash;return{...n.toPlainObject(),...i.data,status:"pending",hash:e}}))};this.sendSignedBatchTransactions=async t=>{let{address:a}=y(),{apiAddress:s,apiTimeout:o}=l(m());if(!a)return{error:"Invalid address provided. You need to be logged in to send transactions"};let n=this.buildBatchId(a),e={transactions:t.map(p=>p.map(c=>c.toPlainObject())),id:n},{data:u}=await w.post(`${s}/batch`,e,{timeout:Number(o)}),B=u.transactions.map(p=>p.map(c=>{let d={...c,status:"pending",hash:c.hash};return g({data:d.data})&&(delete d.senderUsername,delete d.receiverUsername),d}));return{data:{...u,transactions:B}}};this.buildBatchId=t=>`${Date.now().toString()}${f}${t}`;this.sequentialToFlatArray=(t=[])=>this.getIsSequential(t)?t.flat():t;this.getIsSequential=t=>t?.every(a=>Array.isArray(a))}static getInstance(){return r.instance||(r.instance=new r),r.instance}};r.instance=null;var v=r;export{v as a};
2
+ //# sourceMappingURL=chunk-SCMZLTVG.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-PBW3OFFT.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-OXX4FBXV.mjs.map
1
+ import{a as t}from"./chunk-IXZES7OF.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-SXUZVRHH.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-DQNOCLT6.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-G3YNJTM3.mjs.map
1
+ import{a as t}from"./chunk-YYB5NTTG.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-TEI63RXL.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as t}from"./chunk-XYIEJRUO.mjs";import{c as n}from"./chunk-QMRLPDMP.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-TO6UIEGW.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-Q2D7XVUW.mjs";import{k as r}from"./chunk-PKDR5ERF.mjs";import{a as o}from"./chunk-2JKCBTYK.mjs";import m from"axios";async function c({addressToVerify:s,baseURL:a}){let e=t(a),{data:i}=await m.get(`${e}/${o}/${s}`,{timeout:r});return i}export{c as a};
2
- //# sourceMappingURL=chunk-MN7GKF42.mjs.map
1
+ import{a as t}from"./chunk-CHDYDRGH.mjs";import{k as r}from"./chunk-PKDR5ERF.mjs";import{a as o}from"./chunk-2JKCBTYK.mjs";import m from"axios";async function c({addressToVerify:s,baseURL:a}){let e=t(a),{data:i}=await m.get(`${e}/${o}/${s}`,{timeout:r});return i}export{c as a};
2
+ //# sourceMappingURL=chunk-TTRVY63G.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-P6VSCY3K.mjs";var t={closeConnectionRef:void 0};async function c(n){let{closeConnection:o}=await e(n);t.closeConnectionRef=o}export{t as a,c as b};
2
- //# sourceMappingURL=chunk-X6XZ2UK4.mjs.map
1
+ import{a as e}from"./chunk-O3L2SB6F.mjs";var t={closeConnectionRef:void 0};async function c(n){let{closeConnection:o}=await e(n);t.closeConnectionRef=o}export{t as a,c as b};
2
+ //# sourceMappingURL=chunk-UHHB4O7I.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as o}from"./chunk-7VHTZYM2.mjs";import{s as t}from"./chunk-QMRLPDMP.mjs";function f(r=t()){return o(r)}export{f as a};
2
+ //# sourceMappingURL=chunk-VBGR4QMV.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"./chunk-NGM3AVCY.mjs";import{s as u}from"./chunk-XCOSMO6H.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-QUZRZ53M.mjs.map
1
+ import{a}from"./chunk-NGM3AVCY.mjs";import{s as u}from"./chunk-QMRLPDMP.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-VR5JBT6Q.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as w}from"./chunk-6YWZ75XO.mjs";import{a as p}from"./chunk-FMSNDHB7.mjs";import{a as O}from"./chunk-THUYZJOV.mjs";import{a as M}from"./chunk-DQNOCLT6.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-R4OESOQT.mjs";import{d as B}from"./chunk-GB5MPULE.mjs";import{l as f}from"./chunk-M6MN4RXG.mjs";import{q as c}from"./chunk-XCOSMO6H.mjs";import{a as d}from"./chunk-SVI37OOZ.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-ZPIP6QTW.mjs.map
1
+ import{a as w}from"./chunk-GXYN7OW2.mjs";import{a as p}from"./chunk-WB5BLJUQ.mjs";import{a as O}from"./chunk-BYBNN4KR.mjs";import{a as M}from"./chunk-YYB5NTTG.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-6VCA6ZLV.mjs";import{d as B}from"./chunk-GFRD6DC7.mjs";import{l as f}from"./chunk-M6MN4RXG.mjs";import{q as c}from"./chunk-QMRLPDMP.mjs";import{a as d}from"./chunk-ZE3C4Y4K.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-VSMZ5SR6.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as S}from"./chunk-QFXS7HGL.mjs";import{j as d,k as f,l as u,n as I}from"./chunk-E2GGD7D4.mjs";import{a as l}from"./chunk-XXV6KGR4.mjs";import{a as p}from"./chunk-7T364XME.mjs";import{a as c}from"./chunk-NGM3AVCY.mjs";import{s as m}from"./chunk-XCOSMO6H.mjs";import{c as T}from"./chunk-FK6DWWZF.mjs";async function G(g){let s=g?.store??m(),n=[],a=[],y=l(s),F=c(s),C=T(s);for(let o of y.transactionToasts){let r=F[o.toastId];if(!r?.status)continue;let{status:t,transactions:P,transactionsDisplayInfo:h}=r,L=await p({transactions:P,store:s}),O=I(t),R=u(t),v=f(t),e=O||R||v,w=d(t),{startTime:x,endTime:D}=o;if(e&&a.some(b=>b.toastId===o.toastId))continue;let i=S({toastId:o.toastId,address:C,status:t,transactions:L,transactionsDisplayInfo:h,startTime:x,endTime:D});e&&a.push(i),w&&n.push(i)}return{pendingTransactionToasts:n,completedTransactionToasts:a}}export{G as a};
2
- //# sourceMappingURL=chunk-FMSNDHB7.mjs.map
1
+ import{a as S}from"./chunk-QFXS7HGL.mjs";import{j as d,k as f,l as u,n as I}from"./chunk-E2GGD7D4.mjs";import{a as l}from"./chunk-XXV6KGR4.mjs";import{a as p}from"./chunk-SBJU7P6G.mjs";import{a as c}from"./chunk-NGM3AVCY.mjs";import{s as m}from"./chunk-QMRLPDMP.mjs";import{c as T}from"./chunk-FK6DWWZF.mjs";async function G(g){let s=g?.store??m(),n=[],a=[],y=l(s),F=c(s),C=T(s);for(let o of y.transactionToasts){let r=F[o.toastId];if(!r?.status)continue;let{status:t,transactions:P,transactionsDisplayInfo:h}=r,L=await p({transactions:P,store:s}),O=I(t),R=u(t),v=f(t),e=O||R||v,w=d(t),{startTime:x,endTime:D}=o;if(e&&a.some(b=>b.toastId===o.toastId))continue;let i=S({toastId:o.toastId,address:C,status:t,transactions:L,transactionsDisplayInfo:h,startTime:x,endTime:D});e&&a.push(i),w&&n.push(i)}return{pendingTransactionToasts:n,completedTransactionToasts:a}}export{G as a};
2
+ //# sourceMappingURL=chunk-WB5BLJUQ.mjs.map
@@ -1,2 +1,2 @@
1
- import{b as i}from"./chunk-7VHTZYM2.mjs";import{s as e}from"./chunk-XCOSMO6H.mjs";import{a as o}from"./chunk-CKTFPRJS.mjs";var n="https://api.multiversx.com",s=60*60*24,a=5*60,d=t=>{let r=i(e());return{origin:t?.origin||o().origin,apiAddress:t?.apiAddress||r.apiAddress||n,expirySeconds:t?.expirySeconds||s,tokenExpirationToastWarningSeconds:t?.tokenExpirationToastWarningSeconds||a}};export{d as a};
2
- //# sourceMappingURL=chunk-HY3RU7TP.mjs.map
1
+ import{b as i}from"./chunk-7VHTZYM2.mjs";import{s as e}from"./chunk-QMRLPDMP.mjs";import{a as o}from"./chunk-CKTFPRJS.mjs";var n="https://api.multiversx.com",s=60*60*24,a=5*60,d=t=>{let r=i(e());return{origin:t?.origin||o().origin,apiAddress:t?.apiAddress||r.apiAddress||n,expirySeconds:t?.expirySeconds||s,tokenExpirationToastWarningSeconds:t?.tokenExpirationToastWarningSeconds||a}};export{d as a};
2
+ //# sourceMappingURL=chunk-X5U557J2.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as i}from"./chunk-X6XZ2UK4.mjs";import{c as n}from"./chunk-ZKN4TX5N.mjs";import{a}from"./chunk-23T4S2W7.mjs";import{a as u}from"./chunk-6VAM4MQD.mjs";import{a as s}from"./chunk-PBW3OFFT.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-NXET3SBP.mjs.map
1
+ import{a as i}from"./chunk-UHHB4O7I.mjs";import{c as n}from"./chunk-LVY5STWK.mjs";import{a}from"./chunk-SCMTCC7N.mjs";import{a as u}from"./chunk-QYQAHWW2.mjs";import{a as s}from"./chunk-IXZES7OF.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-X7L2EJHP.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-FFLLP6HV.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-ZGOXY26T.mjs.map
1
+ import{a as t}from"./chunk-2ERFU36I.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-XYIEJRUO.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as n}from"./chunk-7272OEPE.mjs";import{b as r}from"./chunk-ZTIVKI3D.mjs";import{b as i}from"./chunk-7VHTZYM2.mjs";import{s as o}from"./chunk-XCOSMO6H.mjs";async function M({shard:t,apiAddress:s}){if(t!=null)try{let a=await n(t,s);if(!a?.[t]?.lastBlock)return;let e=i(o());(!e.gasStationMetadata||!e.gasStationMetadata[t]||e.gasStationMetadata[t].lastBlock!==a[t].lastBlock)&&r({...e,gasStationMetadata:{...e.gasStationMetadata,...a}})}catch(a){console.error("Error fetching gas station metadata:",a)}}export{M as a};
2
- //# sourceMappingURL=chunk-YUDHQLY2.mjs.map
1
+ import{a as n}from"./chunk-OPTOPG46.mjs";import{b as r}from"./chunk-DMUBYMI7.mjs";import{b as i}from"./chunk-7VHTZYM2.mjs";import{s as o}from"./chunk-QMRLPDMP.mjs";async function M({shard:t,apiAddress:s}){if(t!=null)try{let a=await n(t,s);if(!a?.[t]?.lastBlock)return;let e=i(o());(!e.gasStationMetadata||!e.gasStationMetadata[t]||e.gasStationMetadata[t].lastBlock!==a[t].lastBlock)&&r({...e,gasStationMetadata:{...e.gasStationMetadata,...a}})}catch(a){console.error("Error fetching gas station metadata:",a)}}export{M as a};
2
+ //# sourceMappingURL=chunk-YD5E43DF.mjs.map
@@ -0,0 +1,2 @@
1
+ import{b as t}from"./chunk-K7MM6MKP.mjs";var c=o=>t(o);export{c as a};
2
+ //# sourceMappingURL=chunk-YEHAZN4U.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as tt}from"./chunk-4PI7HK4C.mjs";import{a as X}from"./chunk-6UZHM5LW.mjs";import{c as M}from"./chunk-VSMZ5SR6.mjs";import{a as rt}from"./chunk-YD5E43DF.mjs";import{a as x}from"./chunk-KB3ZP2B6.mjs";import{a as et}from"./chunk-GTPGGUVC.mjs";import{a as nt}from"./chunk-6PLGNDMI.mjs";import{a as ot}from"./chunk-ABBDCZHP.mjs";import{a as mt}from"./chunk-4ODPAHHA.mjs";import{a as at}from"./chunk-PBSKORAJ.mjs";import{a as st}from"./chunk-TO6UIEGW.mjs";import{a as ut}from"./chunk-343D3AMA.mjs";import{a as B}from"./chunk-IEGHXK66.mjs";import{a as ct}from"./chunk-X7L2EJHP.mjs";import{b as I}from"./chunk-UHHB4O7I.mjs";import{c as U}from"./chunk-LVY5STWK.mjs";import{a as d}from"./chunk-VBGR4QMV.mjs";import{a as Q}from"./chunk-SCMTCC7N.mjs";import{a as S}from"./chunk-VR5JBT6Q.mjs";import{a as b,f as Z}from"./chunk-C47F2DSK.mjs";import{b as it}from"./chunk-QYQAHWW2.mjs";import{b as P}from"./chunk-GFRD6DC7.mjs";import{b as A}from"./chunk-V5ZSFCKJ.mjs";import{a as Y}from"./chunk-QJN3GSGR.mjs";import{a as J}from"./chunk-LR2KZ5ET.mjs";import{a as w}from"./chunk-BSA3IGL6.mjs";import{a as _}from"./chunk-NWRCQLFI.mjs";import{a as N}from"./chunk-YEHAZN4U.mjs";import{a as k}from"./chunk-HORSXVIV.mjs";import{b as L}from"./chunk-NGM3AVCY.mjs";import{a as q,b as V,q as y,s as l}from"./chunk-QMRLPDMP.mjs";import{c as $,d as j,f as H}from"./chunk-FK6DWWZF.mjs";import{b as T}from"./chunk-VNLGNNIL.mjs";import{b as F}from"./chunk-2AJ5KJ2V.mjs";import{a as v}from"./chunk-LJX4MW7B.mjs";import{b as z,c as G,f as K}from"./chunk-DA76AK4I.mjs";import D from"bignumber.js";var Lt=async()=>{try{let o=Q(),{network:e}=d();try{let t=await N({address:o,baseURL:e.apiAddress});if(t!=null){let n={...t,username:k(t.username),nonce:S(t)};return b(n),n}}catch(t){console.error("Failed getting account ",t)}}catch(o){console.error("Failed getting address ",o)}return null};async function f(){let o=h();if(o==null)throw"Provider not initialized";try{if(!o.init)throw"Current provider does not have init() function";return await o.init()?await Lt():void 0}catch(e){console.error("Failed initializing provider ",e)}}async function gt({sessionId:o,transactionBatch:e,isSequential:t}){try{if(e==null)return;let n=x(),r=ot(e),i=await tt(r);for(let m of i)await et({serverTransaction:m,sessionId:o,isSequential:t});if(!i.every(m=>m.status!=="pending"))return;n&&await f();let{transactions:c}=l(),s=c?.[o];if(s.transactions.every(m=>m.status==="success"))return P({sessionId:o,status:"success"});if(s.transactions.some(m=>m.status==="fail"))return P({sessionId:o,status:"fail"});if(s.transactions.every(m=>m.status==="not executed"))return P({sessionId:o,status:"invalid"})}catch(n){console.error(n)}}async function pt(){let o=L(l()),e=Object.entries(o);e.length!==0&&await Promise.all(e.map(([t,{transactions:n}])=>gt({sessionId:t,transactionBatch:n})))}async function E(){let o=y(),e=nt(),t=null,n=j(o.getState())?.timestamp??null,r=async()=>{try{await pt()}catch(a){console.error("[trackTransactions] Error checking transaction status:",a)}},i=()=>{t||(t=setInterval(r,e))},p=()=>{t&&(clearInterval(t),t=null)},c=()=>{p();let a=o.subscribe(({account:{websocketEvent:g}})=>{g?.message&&g.timestamp!=null&&n!==g.timestamp&&(n=g.timestamp,r(),!(Object.keys(L(o.getState())).length>0)&&x()&&f())});U.set("websocketEventReceived",a)};r();let s=()=>{p()},u=o.subscribe(({account:{address:a},config:{websocketStatus:g}},m)=>{if(m.config.websocketStatus!==g)switch(g){case"completed":c();break;case"pending":i();break;default:a?i():s();break}});return U.set("websocketStatusChanged",u),{stopTransactionsTracking:s}}async function R({address:o,provider:e,apiAddress:t}){let n=await N({address:o,baseURL:t});if(!n)throw new Error("Account not found");it({address:o,providerType:e.getType()});let r={...n,username:k(n.username),nonce:S(n)};b(r),await I(o),E(),n.shard!=null&&await rt({shard:Number(n.shard),apiAddress:t})}async function lt({provider:o,nativeAuthConfig:e,token:t}){let{network:{apiAddress:n}}=d(),r=J(e),i=t;i||(i=await r.initialize({noCache:!0}));let p=await o.login({token:i}),{address:c,signature:s,...u}=p;if(!c)return console.warn("Login cancelled."),null;if(!s)return console.error("Failed to sign login token"),null;let a=_(u?.accessToken),g=await at({loginData:p,nativeAuthConfig:e,loginToken:i}),m=a?u.accessToken:r.getToken({address:c,token:g,signature:s});V({loginToken:i,signature:s,nativeAuthToken:m});let O=await st({loginToken:i,extraInfoData:{multisig:u?.multisig,impersonate:u?.impersonate},address:c});return await R({address:O,provider:o,apiAddress:n}),{address:O,signature:s}}async function dt(o){let{network:{apiAddress:e}}=d();await o.login();let t=await o.getAddress();if(!t)throw new Error("Address not found");return await R({address:t,provider:o,apiAddress:e}),{address:t}}async function ft(o,e){let t=A(l());if(t)return await lt({provider:o,nativeAuthConfig:t,token:e?.token});let{address:n}=await dt(o);return await I(n),E(),{address:n,signature:""}}async function Tt({provider:o,transactions:e,options:t={}}){await f();let{isGuarded:n,activeGuardianAddress:r,nonce:i}=Y(),p=o.getType()===v.ledger,c=mt({latestNonce:i,transactions:e}),s=r&&n&&!t.skipGuardian?c?.map(a=>(a.version=z.withTxOptions().valueOf(),a.options=G.withOptions({guarded:!0,...p?{hashSign:!0}:{}}).valueOf(),a.guardian=K.newFromBech32(r),a)):c,u=await o.signTransactions(s,t)??[];return Z(i+u.length),u}var C=class{constructor(e){this._isLoggingOut=!1;this.provider=e}init(){return this.provider.init()}async login(e){let t=await ft(this.provider,e);return q(this.provider.getType()),ht(this),W.getInstance().init(),t}isInitialized(){return this.provider.isInitialized()}async logout(e={shouldBroadcastLogoutAcrossTabs:!0}){if(this._isLoggingOut)return console.warn("Logout already in progress"),!1;this._isLoggingOut=!0;let t=await ct({provider:this.provider,options:e});return this._isLoggingOut=!1,t}getType(){return this.provider.getType()}getProvider(){return this.provider}async signTransactions(e,t){try{return await Tt({provider:this.provider,transactions:e,options:t})}catch(n){let r=B(n);throw new Error(r)}}async signMessage(e,t){try{return await ut({provider:this.provider,message:e,options:t})}catch(n){let r=B(n,"warning");throw new Error(r)}}cancelLogin(){this.provider.cancelLogin?.()}};var vt=null;function ht(o){vt=o}function h(){return vt||new C(F)}var W=class o{constructor(){this.store=y();this.warningLogoutTimeoutRef=null;this.actualLogoutTimeoutRef=null;this.plannedLogoutTimeoutRef=null;this.plannedLogoutKey=null;this.init=async()=>{if(!this.shouldStart())return;let e=this.store.getState(),t=T(e),{isExpired:n}=w(t?.nativeAuthToken);n?h().logout():this.addPlannedLogout()};this.stop=()=>{clearTimeout(this.warningLogoutTimeoutRef??0),clearTimeout(this.plannedLogoutTimeoutRef??0),clearTimeout(this.actualLogoutTimeoutRef??0),this.warningLogoutTimeoutRef=null,this.plannedLogoutTimeoutRef=null,this.actualLogoutTimeoutRef=null,this.plannedLogoutKey=null};this.shouldStart=()=>{let e=this.store.getState(),t=T(e),n=H(e);return!!(t?.nativeAuthToken&&n)};this.addPlannedLogout=()=>{let e=h(),t=$(this.store.getState()),n=e.getType()===v.webview;if(!t||n)return;this.addLogoutWarning();let r=T(this.store.getState()),{secondsUntilExpires:i,expiresAt:p}=w(r?.nativeAuthToken),c=new D(String(i)),s=`${t}_${p}`,u=this.plannedLogoutKey===s;if(!(i&&c.isGreaterThan(0))||u)return;this.plannedLogoutKey=s,clearTimeout(this.plannedLogoutTimeoutRef??0);let g=c.times(1e3);this.actualLogoutTimeoutRef=setTimeout(()=>{M.getInstance().createCustomToast({toastId:"native-auth-logout",iconClassName:"warning",title:"Logging out",icon:"close",message:"Your session has expired!"}),this.actualLogoutTimeoutRef=null},g.toNumber()-3e3),this.plannedLogoutTimeoutRef=setTimeout(()=>{e.logout(),this.plannedLogoutTimeoutRef=null,this.plannedLogoutKey=null},g.toNumber())};this.addLogoutWarning=()=>{if(this.warningLogoutTimeoutRef)return;let e=A(this.store.getState()),t=T(this.store.getState()),{secondsUntilExpires:n}=w(t?.nativeAuthToken),r=new D(String(n)),i=r.times(1e3);if(!n||r.isLessThanOrEqualTo(0)||!e?.tokenExpirationToastWarningSeconds)return;let c=new D(e?.tokenExpirationToastWarningSeconds??0).times(1e3),s=r.times(1e3).minus(c),u=X(i.toNumber()),a=s.isLessThanOrEqualTo(0)?0:s.toNumber();clearTimeout(this.warningLogoutTimeoutRef??0),this.warningLogoutTimeoutRef=setTimeout(()=>{M.getInstance().createCustomToast({toastId:"native-auth-expired",iconClassName:"warning",title:"Session Expiration Warning",icon:"hourglass",message:`Your session will expire in ${u}!`}),this.warningLogoutTimeoutRef=null},a)}}static getInstance(){return o.instance||(o.instance=new o),o.instance}};export{W as a,gt as b,pt as c,E as d,R as e,lt as f,dt as g,ft as h,Tt as i,C as j,ht as k,h as l,f as m};
2
+ //# sourceMappingURL=chunk-YFTZSYJR.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/managers/LogoutManager/LogoutManager.ts", "../../src/utils/account/refreshAccount.ts", "../../src/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/checkBatch.ts", "../../src/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.ts", "../../src/methods/trackTransactions/trackTransactions.ts", "../../src/providers/DappProvider/helpers/login/helpers/accountLogin.ts", "../../src/providers/DappProvider/helpers/login/helpers/loginWithNativeToken.ts", "../../src/providers/DappProvider/helpers/login/helpers/loginWithoutNativeToken.ts", "../../src/providers/DappProvider/helpers/login/login.ts", "../../src/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.ts", "../../src/providers/DappProvider/DappProvider.ts", "../../src/providers/helpers/accountProvider.ts"],
4
+ "sourcesContent": ["import BigNumber from 'bignumber.js';\nimport { ToastManager } from 'managers/ToastManager';\nimport { getAccountProvider } from 'providers/helpers/accountProvider';\nimport { ProviderTypeEnum } from 'providers/types/providerFactory.types';\nimport { getTokenExpiration } from 'services/nativeAuth/methods/getTokenExpiration';\nimport {\n addressSelector,\n isLoggedInSelector\n} from 'store/selectors/accountSelectors';\nimport { nativeAuthConfigSelector } from 'store/selectors/configSelectors';\nimport { tokenLoginSelector } from 'store/selectors/loginInfoSelectors';\nimport { getStore } from 'store/store';\nimport { IconNamesEnum } from 'types/enums.types';\nimport { getHumanReadableTokenExpirationTime } from './helpers/getHumanReadableTokenExpirationTime';\n\nexport class LogoutManager {\n private static instance: LogoutManager;\n private store = getStore();\n private warningLogoutTimeoutRef: ReturnType<typeof setInterval> | null = null;\n private actualLogoutTimeoutRef: ReturnType<typeof setInterval> | null = null;\n private plannedLogoutTimeoutRef: ReturnType<typeof setInterval> | null = null;\n private plannedLogoutKey: string | null = null;\n\n public static getInstance(): LogoutManager {\n if (!LogoutManager.instance) {\n LogoutManager.instance = new LogoutManager();\n }\n return LogoutManager.instance;\n }\n\n private constructor() {}\n\n public init = async () => {\n if (!this.shouldStart()) {\n return;\n }\n\n const state = this.store.getState();\n const tokenLogin = tokenLoginSelector(state);\n\n const { isExpired: isNativeAuthTokenExpired } = getTokenExpiration(\n tokenLogin?.nativeAuthToken\n );\n\n if (isNativeAuthTokenExpired) {\n const provider = getAccountProvider();\n provider.logout();\n } else {\n this.addPlannedLogout();\n }\n };\n\n public stop = () => {\n clearTimeout(this.warningLogoutTimeoutRef ?? 0);\n clearTimeout(this.plannedLogoutTimeoutRef ?? 0);\n clearTimeout(this.actualLogoutTimeoutRef ?? 0);\n\n this.warningLogoutTimeoutRef = null;\n this.plannedLogoutTimeoutRef = null;\n this.actualLogoutTimeoutRef = null;\n this.plannedLogoutKey = null;\n };\n\n private readonly shouldStart = (): boolean => {\n const state = this.store.getState();\n const tokenLogin = tokenLoginSelector(state);\n const isLoggedIn = isLoggedInSelector(state);\n return Boolean(tokenLogin?.nativeAuthToken && isLoggedIn);\n };\n\n private addPlannedLogout = () => {\n const provider = getAccountProvider();\n const address = addressSelector(this.store.getState());\n const isWebviewLogin = provider.getType() === ProviderTypeEnum.webview;\n\n // prevent unexpected logout if webview login\n if (!address || isWebviewLogin) {\n return;\n }\n\n this.addLogoutWarning();\n\n const tokenLogin = tokenLoginSelector(this.store.getState());\n\n const { secondsUntilExpires, expiresAt } = getTokenExpiration(\n tokenLogin?.nativeAuthToken\n );\n\n // Handle the actual logout functionality.\n const secondsUntilExpiresBN = new BigNumber(String(secondsUntilExpires));\n const plannedLogoutKey = `${address}_${expiresAt}`;\n const plannedLogoutSet = this.plannedLogoutKey === plannedLogoutKey;\n\n const isValidInterval =\n secondsUntilExpires && secondsUntilExpiresBN.isGreaterThan(0);\n\n if (!isValidInterval || plannedLogoutSet) {\n return;\n }\n\n this.plannedLogoutKey = plannedLogoutKey;\n\n clearTimeout(this.plannedLogoutTimeoutRef ?? 0);\n const millisecondsUntilLogout = secondsUntilExpiresBN.times(1000);\n\n this.actualLogoutTimeoutRef = setTimeout(() => {\n ToastManager.getInstance().createCustomToast({\n toastId: 'native-auth-logout',\n iconClassName: 'warning',\n title: 'Logging out',\n icon: IconNamesEnum.close,\n message: 'Your session has expired!'\n });\n this.actualLogoutTimeoutRef = null;\n }, millisecondsUntilLogout.toNumber() - 3000);\n\n this.plannedLogoutTimeoutRef = setTimeout(() => {\n provider.logout();\n this.plannedLogoutTimeoutRef = null;\n this.plannedLogoutKey = null;\n }, millisecondsUntilLogout.toNumber());\n };\n\n private readonly addLogoutWarning = () => {\n if (this.warningLogoutTimeoutRef) {\n return;\n }\n\n const nativeAuthConfig = nativeAuthConfigSelector(this.store.getState());\n const tokenLogin = tokenLoginSelector(this.store.getState());\n\n const { secondsUntilExpires } = getTokenExpiration(\n tokenLogin?.nativeAuthToken\n );\n\n const secondsUntilExpiresBN = new BigNumber(String(secondsUntilExpires));\n const millisecondsUntilLogout = secondsUntilExpiresBN.times(1000);\n\n if (\n !secondsUntilExpires ||\n secondsUntilExpiresBN.isLessThanOrEqualTo(0) ||\n !nativeAuthConfig?.tokenExpirationToastWarningSeconds\n ) {\n return;\n }\n\n const logoutWarningOffsetSeconds = new BigNumber(\n nativeAuthConfig?.tokenExpirationToastWarningSeconds ?? 0\n );\n\n const logoutWarningOffsetMilliseconds =\n logoutWarningOffsetSeconds.times(1000);\n\n const millisecondsUntilLogoutWarning = secondsUntilExpiresBN\n .times(1000)\n .minus(logoutWarningOffsetMilliseconds);\n\n const readableMinutesUntilLogout = getHumanReadableTokenExpirationTime(\n millisecondsUntilLogout.toNumber()\n );\n\n const timeoutUntilLogoutWarning =\n millisecondsUntilLogoutWarning.isLessThanOrEqualTo(0)\n ? 0\n : millisecondsUntilLogoutWarning.toNumber();\n\n clearTimeout(this.warningLogoutTimeoutRef ?? 0);\n\n this.warningLogoutTimeoutRef = setTimeout(() => {\n ToastManager.getInstance().createCustomToast({\n toastId: 'native-auth-expired',\n iconClassName: 'warning',\n title: 'Session Expiration Warning',\n icon: IconNamesEnum.hourglass,\n message: `Your session will expire in ${readableMinutesUntilLogout}!`\n });\n this.warningLogoutTimeoutRef = null;\n }, timeoutUntilLogoutWarning);\n };\n}\n", "import { getAddress } from 'methods/account/getAddress';\nimport { getLatestNonce } from 'methods/account/getLatestNonce';\nimport { getNetworkConfig } from 'methods/network/getNetworkConfig';\nimport { getAccountProvider } from 'providers/helpers/accountProvider';\nimport { setAccount } from 'store/actions/account/accountActions';\nimport { fetchAccount } from './fetchAccount';\nimport { trimUsernameDomain } from './trimUsernameDomain';\n\nconst setNewAccount = async () => {\n try {\n const address = getAddress();\n const { network } = getNetworkConfig();\n\n try {\n const account = await fetchAccount({\n address,\n baseURL: network.apiAddress\n });\n\n if (account != null) {\n const accountData = {\n ...account,\n username: trimUsernameDomain(account.username),\n nonce: getLatestNonce(account)\n };\n\n setAccount(accountData);\n\n return accountData;\n }\n } catch (e) {\n console.error('Failed getting account ', e);\n }\n } catch (e) {\n console.error('Failed getting address ', e);\n }\n\n return null;\n};\n\nexport async function refreshAccount() {\n const provider = getAccountProvider();\n\n if (provider == null) {\n throw 'Provider not initialized';\n }\n\n try {\n if (!provider.init) {\n throw 'Current provider does not have init() function';\n }\n\n const initialized = await provider.init();\n\n if (!initialized) {\n return;\n }\n\n const account = await setNewAccount();\n\n return account;\n } catch (e) {\n console.error('Failed initializing provider ', e);\n }\n\n return undefined;\n}\n", "import { getTransactionsByHashes } from 'apiCalls/transactions/getTransactionsByHashes';\nimport { getIsLoggedIn } from 'methods/account/getIsLoggedIn';\nimport { updateSessionStatus } from 'store/actions/transactions/transactionsActions';\nimport { getState } from 'store/store';\nimport {\n TransactionBatchStatusesEnum,\n TransactionServerStatusesEnum\n} from 'types/enums.types';\nimport { SignedTransactionType } from 'types/transactions.types';\n\nimport { refreshAccount } from 'utils/account/refreshAccount';\nimport { getPendingTransactions } from '../getPendingTransactions';\nimport { runTransactionStatusUpdate } from './helpers/runTransactionStatusUpdate';\n\nexport interface TransactionStatusTrackerPropsType {\n sessionId: string;\n transactionBatch: SignedTransactionType[];\n isSequential?: boolean;\n}\n\nexport async function checkBatch({\n sessionId,\n transactionBatch: transactions,\n isSequential\n}: TransactionStatusTrackerPropsType) {\n try {\n if (transactions == null) {\n return;\n }\n\n const isLoggedIn = getIsLoggedIn();\n\n const pendingTransactions = getPendingTransactions(transactions);\n\n const serverTransactions =\n await getTransactionsByHashes(pendingTransactions);\n\n for (const serverTransaction of serverTransactions) {\n await runTransactionStatusUpdate({\n serverTransaction,\n sessionId,\n isSequential\n });\n }\n\n const hasCompleted = serverTransactions.every(\n (tx) => tx.status !== TransactionServerStatusesEnum.pending\n );\n\n if (!hasCompleted) {\n return;\n }\n\n if (isLoggedIn) {\n await refreshAccount();\n }\n\n // Call the onSuccess or onFail callback only if the transactions are sent normally (not using batch transactions mechanism).\n // The batch transactions mechanism will call the callbacks separately.\n\n const { transactions: sessions } = getState();\n const session = sessions?.[sessionId];\n\n const isSuccessful = session.transactions.every(\n (tx) => tx.status === TransactionServerStatusesEnum.success\n );\n\n if (isSuccessful) {\n return updateSessionStatus({\n sessionId,\n status: TransactionBatchStatusesEnum.success\n });\n }\n\n const isFailed = session.transactions.some(\n (tx) => tx.status === TransactionServerStatusesEnum.fail\n );\n\n if (isFailed) {\n return updateSessionStatus({\n sessionId,\n status: TransactionBatchStatusesEnum.fail\n });\n }\n\n const isInvalid = session.transactions.every(\n (tx) => tx.status === TransactionServerStatusesEnum.notExecuted\n );\n\n if (isInvalid) {\n return updateSessionStatus({\n sessionId,\n status: TransactionBatchStatusesEnum.invalid\n });\n }\n } catch (error) {\n console.error(error);\n }\n}\n", "import { pendingTransactionsSessionsSelector } from 'store/selectors/transactionsSelector';\nimport { getState } from 'store/store';\nimport { checkBatch } from './helpers/checkBatch';\n\nexport async function checkTransactionStatus() {\n const pendingSessions = pendingTransactionsSessionsSelector(getState());\n\n const entries = Object.entries(pendingSessions);\n if (entries.length === 0) {\n return;\n }\n\n await Promise.all(\n entries.map(([sessionId, { transactions }]) =>\n checkBatch({\n sessionId,\n transactionBatch: transactions\n })\n )\n );\n}\n", "import { subscriptions } from 'constants/storage.constants';\nimport { WebsocketConnectionStatusEnum } from 'constants/websocket.constants';\nimport { getIsLoggedIn } from 'methods/account/getIsLoggedIn';\nimport { pendingTransactionsSessionsSelector } from 'store/selectors/transactionsSelector';\nimport { websocketEventSelector } from 'store/selectors/accountSelectors';\nimport { getStore } from 'store/store';\nimport { SubscriptionsEnum } from 'types/subscriptions.type';\nimport { refreshAccount } from 'utils/account/refreshAccount';\nimport { checkTransactionStatus } from './helpers/checkTransactionStatus';\nimport { getPollingInterval } from './helpers/getPollingInterval';\n\n/**\n * Tracks transactions using websocket or polling\n * @returns stopTransactionsTracking function\n */\nexport async function trackTransactions(): Promise<{\n stopTransactionsTracking: () => void;\n}> {\n const store = getStore();\n const pollingInterval = getPollingInterval();\n let pollingIntervalRef: ReturnType<typeof setTimeout> | null = null;\n let timestamp = websocketEventSelector(store.getState())?.timestamp ?? null;\n\n const recheckStatus = async (): Promise<void> => {\n try {\n await checkTransactionStatus();\n } catch (error) {\n console.error(\n '[trackTransactions] Error checking transaction status:',\n error\n );\n }\n };\n\n const startPolling = (): void => {\n // Prevent multiple polling intervals\n if (pollingIntervalRef) {\n return;\n }\n pollingIntervalRef = setInterval(recheckStatus, pollingInterval);\n };\n\n const stopPolling = (): void => {\n if (pollingIntervalRef) {\n clearInterval(pollingIntervalRef);\n pollingIntervalRef = null;\n }\n };\n\n const setupWebSocketTracking = (): void => {\n stopPolling();\n const unsubscribeWebsocketEvent = store.subscribe(\n ({ account: { websocketEvent } }) => {\n if (\n websocketEvent?.message &&\n websocketEvent.timestamp != null &&\n timestamp !== websocketEvent.timestamp\n ) {\n timestamp = websocketEvent.timestamp;\n recheckStatus();\n\n const hasPendingSessions =\n Object.keys(\n pendingTransactionsSessionsSelector(store.getState())\n ).length > 0;\n\n if (!hasPendingSessions && getIsLoggedIn()) {\n refreshAccount();\n }\n }\n }\n );\n\n subscriptions.set(\n SubscriptionsEnum.websocketEventReceived,\n unsubscribeWebsocketEvent\n );\n };\n\n // Initial execution\n recheckStatus();\n\n const stopTransactionsTracking = (): void => {\n stopPolling();\n };\n\n const unsubscribeWebsocketStatus = store.subscribe(\n ({ account: { address }, config: { websocketStatus } }, prevState) => {\n const hasStatusChange =\n prevState.config.websocketStatus !== websocketStatus;\n\n if (!hasStatusChange) {\n return;\n }\n\n switch (websocketStatus) {\n case WebsocketConnectionStatusEnum.COMPLETED:\n setupWebSocketTracking();\n break;\n case WebsocketConnectionStatusEnum.PENDING:\n startPolling();\n break;\n default:\n address ? startPolling() : stopTransactionsTracking();\n break;\n }\n }\n );\n\n subscriptions.set(\n SubscriptionsEnum.websocketStatusChanged,\n unsubscribeWebsocketStatus\n );\n return { stopTransactionsTracking };\n}\n", "import { getLatestNonce } from 'methods/account/getLatestNonce';\nimport { setGasStationMetadata } from 'methods/initApp/gasStationMetadata/setGasStationMetadata';\nimport { registerWebsocketListener } from 'methods/initApp/websocket/registerWebsocket';\nimport { trackTransactions } from 'methods/trackTransactions/trackTransactions';\nimport { IProvider } from 'providers/types/providerFactory.types';\nimport { setAccount } from 'store/actions/account';\nimport { loginAction } from 'store/actions/sharedActions/sharedActions';\nimport { AccountType } from 'types/account.types';\nimport { fetchAccount } from 'utils/account/fetchAccount';\nimport { trimUsernameDomain } from 'utils/account/trimUsernameDomain';\n\ninterface IAccountLoginProps {\n address: string;\n provider: IProvider;\n apiAddress: string;\n}\n\nexport async function accountLogin({\n address,\n provider,\n apiAddress\n}: IAccountLoginProps) {\n const account = await fetchAccount({\n address,\n baseURL: apiAddress\n });\n\n if (!account) {\n throw new Error('Account not found');\n }\n\n loginAction({\n address,\n providerType: provider.getType()\n });\n\n const newAccount: AccountType = {\n ...account,\n username: trimUsernameDomain(account.username),\n nonce: getLatestNonce(account)\n };\n\n setAccount(newAccount);\n\n await registerWebsocketListener(address);\n trackTransactions();\n\n if (account.shard != null) {\n await setGasStationMetadata({\n shard: Number(account.shard),\n apiAddress\n });\n }\n}\n", "import { getNetworkConfig } from 'methods/network/getNetworkConfig';\nimport { IProvider } from 'providers/types/providerFactory.types';\nimport { nativeAuth } from 'services/nativeAuth';\nimport { decodeNativeAuthToken } from 'services/nativeAuth/helpers/decodeNativeAuthToken';\nimport { NativeAuthConfigType } from 'services/nativeAuth/nativeAuth.types';\nimport { setTokenLogin } from 'store/actions/loginInfo/loginInfoActions';\nimport { accountLogin } from './accountLogin';\nimport { extractAddressFromToken } from './extractAddressFromToken';\nimport { getMultisigLoginToken } from './getMultisigLoginToken';\n\nexport async function loginWithNativeToken({\n provider,\n nativeAuthConfig,\n token\n}: {\n provider: IProvider;\n nativeAuthConfig: NativeAuthConfigType;\n token?: string;\n}) {\n const {\n network: { apiAddress }\n } = getNetworkConfig();\n\n const nativeAuthClient = nativeAuth(nativeAuthConfig);\n let loginToken = token;\n\n if (!loginToken) {\n loginToken = await nativeAuthClient.initialize({\n noCache: true\n });\n }\n\n const loginData = await provider.login({\n token: loginToken\n });\n\n const { address, signature, ...loginResult } = loginData;\n\n if (!address) {\n console.warn('Login cancelled.');\n return null;\n }\n\n if (!signature) {\n console.error('Failed to sign login token');\n return null;\n }\n\n // nativeAuthToken received from hub login\n const decodedToken = decodeNativeAuthToken(loginResult?.accessToken);\n\n const usedLoginToken = await getMultisigLoginToken({\n loginData,\n nativeAuthConfig,\n loginToken\n });\n\n const nativeAuthToken = decodedToken\n ? loginResult.accessToken\n : nativeAuthClient.getToken({\n address,\n token: usedLoginToken,\n signature\n });\n\n setTokenLogin({\n loginToken,\n signature,\n nativeAuthToken\n });\n\n const extractedAddress = await extractAddressFromToken({\n loginToken,\n extraInfoData: {\n multisig: loginResult?.multisig,\n impersonate: loginResult?.impersonate\n },\n address\n });\n\n await accountLogin({\n address: extractedAddress,\n provider,\n apiAddress\n });\n\n return {\n address: extractedAddress,\n signature\n };\n}\n", "import { getNetworkConfig } from 'methods/network/getNetworkConfig';\nimport { IProvider } from 'providers/types/providerFactory.types';\nimport { accountLogin } from './accountLogin';\n\nexport async function loginWithoutNativeToken(provider: IProvider) {\n const {\n network: { apiAddress }\n } = getNetworkConfig();\n\n await provider.login();\n\n const address = await provider.getAddress();\n\n if (!address) {\n throw new Error('Address not found');\n }\n\n await accountLogin({ address, provider, apiAddress });\n\n return {\n address\n };\n}\n", "import { registerWebsocketListener } from 'methods/initApp/websocket/registerWebsocket';\nimport { trackTransactions } from 'methods/trackTransactions/trackTransactions';\nimport { IProvider } from 'providers/types/providerFactory.types';\nimport { nativeAuthConfigSelector } from 'store/selectors/configSelectors';\nimport { getState } from 'store/store';\nimport { loginWithNativeToken } from './helpers/loginWithNativeToken';\nimport { loginWithoutNativeToken } from './helpers/loginWithoutNativeToken';\n\nexport async function login(\n provider: IProvider,\n options?: { token?: string }\n): Promise<{\n address: string;\n signature: string;\n} | null> {\n const nativeAuthConfig = nativeAuthConfigSelector(getState());\n\n if (nativeAuthConfig) {\n const data = await loginWithNativeToken({\n provider,\n nativeAuthConfig,\n token: options?.token\n });\n return data;\n }\n\n const { address } = await loginWithoutNativeToken(provider);\n\n await registerWebsocketListener(address);\n trackTransactions();\n\n return { address, signature: '' };\n}\n", "import {\n Address,\n Transaction,\n TransactionOptions,\n TransactionVersion\n} from 'lib/sdkCore';\nimport { getAccount } from 'methods/account/getAccount';\nimport {\n IProvider,\n ProviderTypeEnum\n} from 'providers/types/providerFactory.types';\nimport { setAccountNonce } from 'store/actions/account/accountActions';\nimport { refreshAccount } from 'utils/account/refreshAccount';\nimport { computeNonces } from '../computeNonces/computeNonces';\n\nexport type SignTransactionsOptionsType = {\n skipGuardian?: boolean;\n callback?: (signedTransactions: Transaction[]) => Promise<Transaction[]>;\n};\n\ntype SignTransactionsType = {\n provider: IProvider;\n transactions: Transaction[];\n options?: SignTransactionsOptionsType;\n};\n\nexport async function signTransactionsWithProvider({\n provider,\n transactions,\n options = {}\n}: SignTransactionsType): Promise<Transaction[]> {\n await refreshAccount();\n const { isGuarded, activeGuardianAddress, nonce } = getAccount();\n const isLedger = provider.getType() === ProviderTypeEnum.ledger;\n\n const transactionsWithComputedNonce = computeNonces({\n latestNonce: nonce,\n transactions\n });\n\n const transactionsToSign =\n activeGuardianAddress && isGuarded && !options.skipGuardian\n ? transactionsWithComputedNonce?.map((transaction) => {\n transaction.version = TransactionVersion.withTxOptions().valueOf();\n transaction.options = TransactionOptions.withOptions({\n guarded: true,\n ...(isLedger ? { hashSign: true } : {})\n }).valueOf();\n\n transaction.guardian = Address.newFromBech32(activeGuardianAddress);\n\n return transaction;\n })\n : transactionsWithComputedNonce;\n\n const signedTransactions: Transaction[] =\n (await provider.signTransactions(transactionsToSign, options)) ?? [];\n\n setAccountNonce(nonce + signedTransactions.length);\n\n return signedTransactions;\n}\n", "import { Message, Transaction } from 'lib/sdkCore';\nimport { LogoutManager } from 'managers/LogoutManager/LogoutManager';\nimport { setAccountProvider } from 'providers/helpers/accountProvider';\nimport { setProviderType } from 'store/actions/loginInfo/loginInfoActions';\nimport { IProvider } from '../types/providerFactory.types';\nimport { login } from './helpers/login/login';\nimport { logout } from './helpers/logout/logout';\nimport { handleSignError } from './helpers/signErrors/handleSignError';\nimport { signMessageWithProvider } from './helpers/signMessage/signMessageWithProvider';\nimport {\n signTransactionsWithProvider,\n SignTransactionsOptionsType\n} from './helpers/signTransactions/signTransactionsWithProvider';\n\nexport class DappProvider {\n private provider: IProvider;\n private _isLoggingOut = false;\n\n constructor(provider: IProvider) {\n this.provider = provider;\n }\n\n init(): Promise<boolean> {\n return this.provider.init();\n }\n\n async login(options?: { token?: string }) {\n const data = await login(this.provider, options);\n setProviderType(this.provider.getType());\n setAccountProvider(this);\n LogoutManager.getInstance().init();\n return data;\n }\n\n isInitialized(): boolean {\n return this.provider.isInitialized();\n }\n\n async logout(\n options = {\n shouldBroadcastLogoutAcrossTabs: true\n }\n ): Promise<boolean> {\n if (this._isLoggingOut) {\n console.warn('Logout already in progress');\n return false;\n }\n\n this._isLoggingOut = true;\n\n const isLoggedOut = await logout({ provider: this.provider, options });\n\n this._isLoggingOut = false;\n\n return isLoggedOut;\n }\n\n getType() {\n return this.provider.getType();\n }\n\n /**\n * @returns The original provider instance.\n */\n getProvider() {\n return this.provider;\n }\n\n async signTransactions(\n transactions: Transaction[],\n options?: SignTransactionsOptionsType\n ): Promise<Transaction[]> {\n try {\n const signedTransactions = await signTransactionsWithProvider({\n provider: this.provider,\n transactions,\n options\n });\n return signedTransactions;\n } catch (error) {\n const errorMessage = handleSignError(error);\n throw new Error(errorMessage);\n }\n }\n\n async signMessage(\n message: Message,\n options?: {\n hasConsentPopup?: boolean;\n }\n ): Promise<Message | null> {\n try {\n const signedMessage = await signMessageWithProvider({\n provider: this.provider,\n message,\n options\n });\n return signedMessage;\n } catch (error) {\n const errorMessage = handleSignError(error, 'warning');\n throw new Error(errorMessage);\n }\n }\n\n cancelLogin(): void {\n this.provider.cancelLogin?.();\n }\n}\n", "import { IProvider } from 'providers/types/providerFactory.types';\nimport { DappProvider } from '../DappProvider';\nimport { emptyProvider } from './emptyProvider';\n\nexport type ProvidersType = IProvider;\n\nlet accountProvider: DappProvider | null = null;\n\nexport function setAccountProvider<TProvider extends DappProvider | null>(\n provider: TProvider\n) {\n accountProvider = provider;\n}\n\nexport function getAccountProvider(): DappProvider {\n return accountProvider || new DappProvider(emptyProvider);\n}\n"],
5
+ "mappings": "ugDAAA,OAAOA,MAAe,eCQtB,IAAMC,GAAgB,SAAY,CAChC,GAAI,CACF,IAAMC,EAAUC,EAAW,EACrB,CAAE,QAAAC,CAAQ,EAAIC,EAAiB,EAErC,GAAI,CACF,IAAMC,EAAU,MAAMC,EAAa,CACjC,QAAAL,EACA,QAASE,EAAQ,UACnB,CAAC,EAED,GAAIE,GAAW,KAAM,CACnB,IAAME,EAAc,CAClB,GAAGF,EACH,SAAUG,EAAmBH,EAAQ,QAAQ,EAC7C,MAAOI,EAAeJ,CAAO,CAC/B,EAEA,OAAAK,EAAWH,CAAW,EAEfA,CACT,CACF,OAASI,EAAG,CACV,QAAQ,MAAM,0BAA2BA,CAAC,CAC5C,CACF,OAASA,EAAG,CACV,QAAQ,MAAM,0BAA2BA,CAAC,CAC5C,CAEA,OAAO,IACT,EAEA,eAAsBC,GAAiB,CACrC,IAAMC,EAAWC,EAAmB,EAEpC,GAAID,GAAY,KACd,KAAM,2BAGR,GAAI,CACF,GAAI,CAACA,EAAS,KACZ,KAAM,iDAKR,OAFoB,MAAMA,EAAS,KAAK,EAMxB,MAAMb,GAAc,EAHlC,MAMJ,OAAS,EAAG,CACV,QAAQ,MAAM,gCAAiC,CAAC,CAClD,CAGF,CC9CA,eAAsBe,GAAW,CAC/B,UAAAC,EACA,iBAAkBC,EAClB,aAAAC,CACF,EAAsC,CACpC,GAAI,CACF,GAAID,GAAgB,KAClB,OAGF,IAAME,EAAaC,EAAc,EAE3BC,EAAsBC,GAAuBL,CAAY,EAEzDM,EACJ,MAAMC,GAAwBH,CAAmB,EAEnD,QAAWI,KAAqBF,EAC9B,MAAMG,GAA2B,CAC/B,kBAAAD,EACA,UAAAT,EACA,aAAAE,CACF,CAAC,EAOH,GAAI,CAJiBK,EAAmB,MACrCI,GAAOA,EAAG,kBACb,EAGE,OAGER,GACF,MAAMS,EAAe,EAMvB,GAAM,CAAE,aAAcC,CAAS,EAAIC,EAAS,EACtCC,EAAUF,IAAWb,CAAS,EAMpC,GAJqBe,EAAQ,aAAa,MACvCJ,GAAOA,EAAG,kBACb,EAGE,OAAOK,EAAoB,CACzB,UAAAhB,EACA,gBACF,CAAC,EAOH,GAJiBe,EAAQ,aAAa,KACnCJ,GAAOA,EAAG,eACb,EAGE,OAAOK,EAAoB,CACzB,UAAAhB,EACA,aACF,CAAC,EAOH,GAJkBe,EAAQ,aAAa,MACpCJ,GAAOA,EAAG,uBACb,EAGE,OAAOK,EAAoB,CACzB,UAAAhB,EACA,gBACF,CAAC,CAEL,OAASiB,EAAO,CACd,QAAQ,MAAMA,CAAK,CACrB,CACF,CC9FA,eAAsBC,IAAyB,CAC7C,IAAMC,EAAkBC,EAAoCC,EAAS,CAAC,EAEhEC,EAAU,OAAO,QAAQH,CAAe,EAC1CG,EAAQ,SAAW,GAIvB,MAAM,QAAQ,IACZA,EAAQ,IAAI,CAAC,CAACC,EAAW,CAAE,aAAAC,CAAa,CAAC,IACvCC,GAAW,CACT,UAAAF,EACA,iBAAkBC,CACpB,CAAC,CACH,CACF,CACF,CCLA,eAAsBE,GAEnB,CACD,IAAMC,EAAQC,EAAS,EACjBC,EAAkBC,GAAmB,EACvCC,EAA2D,KAC3DC,EAAYC,EAAuBN,EAAM,SAAS,CAAC,GAAG,WAAa,KAEjEO,EAAgB,SAA2B,CAC/C,GAAI,CACF,MAAMC,GAAuB,CAC/B,OAASC,EAAO,CACd,QAAQ,MACN,yDACAA,CACF,CACF,CACF,EAEMC,EAAe,IAAY,CAE3BN,IAGJA,EAAqB,YAAYG,EAAeL,CAAe,EACjE,EAEMS,EAAc,IAAY,CAC1BP,IACF,cAAcA,CAAkB,EAChCA,EAAqB,KAEzB,EAEMQ,EAAyB,IAAY,CACzCD,EAAY,EACZ,IAAME,EAA4Bb,EAAM,UACtC,CAAC,CAAE,QAAS,CAAE,eAAAc,CAAe,CAAE,IAAM,CAEjCA,GAAgB,SAChBA,EAAe,WAAa,MAC5BT,IAAcS,EAAe,YAE7BT,EAAYS,EAAe,UAC3BP,EAAc,EAOV,EAJF,OAAO,KACLQ,EAAoCf,EAAM,SAAS,CAAC,CACtD,EAAE,OAAS,IAEcgB,EAAc,GACvCC,EAAe,EAGrB,CACF,EAEAC,EAAc,6BAEZL,CACF,CACF,EAGAN,EAAc,EAEd,IAAMY,EAA2B,IAAY,CAC3CR,EAAY,CACd,EAEMS,EAA6BpB,EAAM,UACvC,CAAC,CAAE,QAAS,CAAE,QAAAqB,CAAQ,EAAG,OAAQ,CAAE,gBAAAC,CAAgB,CAAE,EAAGC,IAAc,CAIpE,GAFEA,EAAU,OAAO,kBAAoBD,EAMvC,OAAQA,EAAiB,CACvB,gBACEV,EAAuB,EACvB,MACF,cACEF,EAAa,EACb,MACF,QACEW,EAAUX,EAAa,EAAIS,EAAyB,EACpD,KACJ,CACF,CACF,EAEA,OAAAD,EAAc,6BAEZE,CACF,EACO,CAAE,yBAAAD,CAAyB,CACpC,CCjGA,eAAsBK,EAAa,CACjC,QAAAC,EACA,SAAAC,EACA,WAAAC,CACF,EAAuB,CACrB,IAAMC,EAAU,MAAMC,EAAa,CACjC,QAAAJ,EACA,QAASE,CACX,CAAC,EAED,GAAI,CAACC,EACH,MAAM,IAAI,MAAM,mBAAmB,EAGrCE,GAAY,CACV,QAAAL,EACA,aAAcC,EAAS,QAAQ,CACjC,CAAC,EAED,IAAMK,EAA0B,CAC9B,GAAGH,EACH,SAAUI,EAAmBJ,EAAQ,QAAQ,EAC7C,MAAOK,EAAeL,CAAO,CAC/B,EAEAM,EAAWH,CAAU,EAErB,MAAMI,EAA0BV,CAAO,EACvCW,EAAkB,EAEdR,EAAQ,OAAS,MACnB,MAAMS,GAAsB,CAC1B,MAAO,OAAOT,EAAQ,KAAK,EAC3B,WAAAD,CACF,CAAC,CAEL,CC3CA,eAAsBW,GAAqB,CACzC,SAAAC,EACA,iBAAAC,EACA,MAAAC,CACF,EAIG,CACD,GAAM,CACJ,QAAS,CAAE,WAAAC,CAAW,CACxB,EAAIC,EAAiB,EAEfC,EAAmBC,EAAWL,CAAgB,EAChDM,EAAaL,EAEZK,IACHA,EAAa,MAAMF,EAAiB,WAAW,CAC7C,QAAS,EACX,CAAC,GAGH,IAAMG,EAAY,MAAMR,EAAS,MAAM,CACrC,MAAOO,CACT,CAAC,EAEK,CAAE,QAAAE,EAAS,UAAAC,EAAW,GAAGC,CAAY,EAAIH,EAE/C,GAAI,CAACC,EACH,eAAQ,KAAK,kBAAkB,EACxB,KAGT,GAAI,CAACC,EACH,eAAQ,MAAM,4BAA4B,EACnC,KAIT,IAAME,EAAeC,EAAsBF,GAAa,WAAW,EAE7DG,EAAiB,MAAMC,GAAsB,CACjD,UAAAP,EACA,iBAAAP,EACA,WAAAM,CACF,CAAC,EAEKS,EAAkBJ,EACpBD,EAAY,YACZN,EAAiB,SAAS,CACxB,QAAAI,EACA,MAAOK,EACP,UAAAJ,CACF,CAAC,EAELO,EAAc,CACZ,WAAAV,EACA,UAAAG,EACA,gBAAAM,CACF,CAAC,EAED,IAAME,EAAmB,MAAMC,GAAwB,CACrD,WAAAZ,EACA,cAAe,CACb,SAAUI,GAAa,SACvB,YAAaA,GAAa,WAC5B,EACA,QAAAF,CACF,CAAC,EAED,aAAMW,EAAa,CACjB,QAASF,EACT,SAAAlB,EACA,WAAAG,CACF,CAAC,EAEM,CACL,QAASe,EACT,UAAAR,CACF,CACF,CCtFA,eAAsBW,GAAwBC,EAAqB,CACjE,GAAM,CACJ,QAAS,CAAE,WAAAC,CAAW,CACxB,EAAIC,EAAiB,EAErB,MAAMF,EAAS,MAAM,EAErB,IAAMG,EAAU,MAAMH,EAAS,WAAW,EAE1C,GAAI,CAACG,EACH,MAAM,IAAI,MAAM,mBAAmB,EAGrC,aAAMC,EAAa,CAAE,QAAAD,EAAS,SAAAH,EAAU,WAAAC,CAAW,CAAC,EAE7C,CACL,QAAAE,CACF,CACF,CCdA,eAAsBE,GACpBC,EACAC,EAIQ,CACR,IAAMC,EAAmBC,EAAyBC,EAAS,CAAC,EAE5D,GAAIF,EAMF,OALa,MAAMG,GAAqB,CACtC,SAAAL,EACA,iBAAAE,EACA,MAAOD,GAAS,KAClB,CAAC,EAIH,GAAM,CAAE,QAAAK,CAAQ,EAAI,MAAMC,GAAwBP,CAAQ,EAE1D,aAAMQ,EAA0BF,CAAO,EACvCG,EAAkB,EAEX,CAAE,QAAAH,EAAS,UAAW,EAAG,CAClC,CCNA,eAAsBI,GAA6B,CACjD,SAAAC,EACA,aAAAC,EACA,QAAAC,EAAU,CAAC,CACb,EAAiD,CAC/C,MAAMC,EAAe,EACrB,GAAM,CAAE,UAAAC,EAAW,sBAAAC,EAAuB,MAAAC,CAAM,EAAIC,EAAW,EACzDC,EAAWR,EAAS,QAAQ,IAAMS,EAAiB,OAEnDC,EAAgCC,GAAc,CAClD,YAAaL,EACb,aAAAL,CACF,CAAC,EAEKW,EACJP,GAAyBD,GAAa,CAACF,EAAQ,aAC3CQ,GAA+B,IAAKG,IAClCA,EAAY,QAAUC,EAAmB,cAAc,EAAE,QAAQ,EACjED,EAAY,QAAUE,EAAmB,YAAY,CACnD,QAAS,GACT,GAAIP,EAAW,CAAE,SAAU,EAAK,EAAI,CAAC,CACvC,CAAC,EAAE,QAAQ,EAEXK,EAAY,SAAWG,EAAQ,cAAcX,CAAqB,EAE3DQ,EACR,EACDH,EAEAO,EACH,MAAMjB,EAAS,iBAAiBY,EAAoBV,CAAO,GAAM,CAAC,EAErE,OAAAgB,EAAgBZ,EAAQW,EAAmB,MAAM,EAE1CA,CACT,CC/CO,IAAME,EAAN,KAAmB,CAIxB,YAAYC,EAAqB,CAFjC,KAAQ,cAAgB,GAGtB,KAAK,SAAWA,CAClB,CAEA,MAAyB,CACvB,OAAO,KAAK,SAAS,KAAK,CAC5B,CAEA,MAAM,MAAMC,EAA8B,CACxC,IAAMC,EAAO,MAAMC,GAAM,KAAK,SAAUF,CAAO,EAC/C,OAAAG,EAAgB,KAAK,SAAS,QAAQ,CAAC,EACvCC,GAAmB,IAAI,EACvBC,EAAc,YAAY,EAAE,KAAK,EAC1BJ,CACT,CAEA,eAAyB,CACvB,OAAO,KAAK,SAAS,cAAc,CACrC,CAEA,MAAM,OACJD,EAAU,CACR,gCAAiC,EACnC,EACkB,CAClB,GAAI,KAAK,cACP,eAAQ,KAAK,4BAA4B,EAClC,GAGT,KAAK,cAAgB,GAErB,IAAMM,EAAc,MAAMC,GAAO,CAAE,SAAU,KAAK,SAAU,QAAAP,CAAQ,CAAC,EAErE,YAAK,cAAgB,GAEdM,CACT,CAEA,SAAU,CACR,OAAO,KAAK,SAAS,QAAQ,CAC/B,CAKA,aAAc,CACZ,OAAO,KAAK,QACd,CAEA,MAAM,iBACJE,EACAR,EACwB,CACxB,GAAI,CAMF,OAL2B,MAAMS,GAA6B,CAC5D,SAAU,KAAK,SACf,aAAAD,EACA,QAAAR,CACF,CAAC,CAEH,OAASU,EAAO,CACd,IAAMC,EAAeC,EAAgBF,CAAK,EAC1C,MAAM,IAAI,MAAMC,CAAY,CAC9B,CACF,CAEA,MAAM,YACJE,EACAb,EAGyB,CACzB,GAAI,CAMF,OALsB,MAAMc,GAAwB,CAClD,SAAU,KAAK,SACf,QAAAD,EACA,QAAAb,CACF,CAAC,CAEH,OAASU,EAAO,CACd,IAAMC,EAAeC,EAAgBF,EAAO,SAAS,EACrD,MAAM,IAAI,MAAMC,CAAY,CAC9B,CACF,CAEA,aAAoB,CAClB,KAAK,SAAS,cAAc,CAC9B,CACF,ECrGA,IAAII,GAAuC,KAEpC,SAASC,GACdC,EACA,CACAF,GAAkBE,CACpB,CAEO,SAASC,GAAmC,CACjD,OAAOH,IAAmB,IAAII,EAAaC,CAAa,CAC1D,CXDO,IAAMC,EAAN,MAAMC,CAAc,CAejB,aAAc,CAbtB,KAAQ,MAAQC,EAAS,EACzB,KAAQ,wBAAiE,KACzE,KAAQ,uBAAgE,KACxE,KAAQ,wBAAiE,KACzE,KAAQ,iBAAkC,KAW1C,KAAO,KAAO,SAAY,CACxB,GAAI,CAAC,KAAK,YAAY,EACpB,OAGF,IAAMC,EAAQ,KAAK,MAAM,SAAS,EAC5BC,EAAaC,EAAmBF,CAAK,EAErC,CAAE,UAAWG,CAAyB,EAAIC,EAC9CH,GAAY,eACd,EAEIE,EACeE,EAAmB,EAC3B,OAAO,EAEhB,KAAK,iBAAiB,CAE1B,EAEA,KAAO,KAAO,IAAM,CAClB,aAAa,KAAK,yBAA2B,CAAC,EAC9C,aAAa,KAAK,yBAA2B,CAAC,EAC9C,aAAa,KAAK,wBAA0B,CAAC,EAE7C,KAAK,wBAA0B,KAC/B,KAAK,wBAA0B,KAC/B,KAAK,uBAAyB,KAC9B,KAAK,iBAAmB,IAC1B,EAEA,KAAiB,YAAc,IAAe,CAC5C,IAAML,EAAQ,KAAK,MAAM,SAAS,EAC5BC,EAAaC,EAAmBF,CAAK,EACrCM,EAAaC,EAAmBP,CAAK,EAC3C,MAAO,GAAQC,GAAY,iBAAmBK,EAChD,EAEA,KAAQ,iBAAmB,IAAM,CAC/B,IAAME,EAAWH,EAAmB,EAC9BI,EAAUC,EAAgB,KAAK,MAAM,SAAS,CAAC,EAC/CC,EAAiBH,EAAS,QAAQ,IAAMI,EAAiB,QAG/D,GAAI,CAACH,GAAWE,EACd,OAGF,KAAK,iBAAiB,EAEtB,IAAMV,EAAaC,EAAmB,KAAK,MAAM,SAAS,CAAC,EAErD,CAAE,oBAAAW,EAAqB,UAAAC,CAAU,EAAIV,EACzCH,GAAY,eACd,EAGMc,EAAwB,IAAIC,EAAU,OAAOH,CAAmB,CAAC,EACjEI,EAAmB,GAAGR,CAAO,IAAIK,CAAS,GAC1CI,EAAmB,KAAK,mBAAqBD,EAKnD,GAAI,EAFFJ,GAAuBE,EAAsB,cAAc,CAAC,IAEtCG,EACtB,OAGF,KAAK,iBAAmBD,EAExB,aAAa,KAAK,yBAA2B,CAAC,EAC9C,IAAME,EAA0BJ,EAAsB,MAAM,GAAI,EAEhE,KAAK,uBAAyB,WAAW,IAAM,CAC7CK,EAAa,YAAY,EAAE,kBAAkB,CAC3C,QAAS,qBACT,cAAe,UACf,MAAO,cACP,aACA,QAAS,2BACX,CAAC,EACD,KAAK,uBAAyB,IAChC,EAAGD,EAAwB,SAAS,EAAI,GAAI,EAE5C,KAAK,wBAA0B,WAAW,IAAM,CAC9CX,EAAS,OAAO,EAChB,KAAK,wBAA0B,KAC/B,KAAK,iBAAmB,IAC1B,EAAGW,EAAwB,SAAS,CAAC,CACvC,EAEA,KAAiB,iBAAmB,IAAM,CACxC,GAAI,KAAK,wBACP,OAGF,IAAME,EAAmBC,EAAyB,KAAK,MAAM,SAAS,CAAC,EACjErB,EAAaC,EAAmB,KAAK,MAAM,SAAS,CAAC,EAErD,CAAE,oBAAAW,CAAoB,EAAIT,EAC9BH,GAAY,eACd,EAEMc,EAAwB,IAAIC,EAAU,OAAOH,CAAmB,CAAC,EACjEM,EAA0BJ,EAAsB,MAAM,GAAI,EAEhE,GACE,CAACF,GACDE,EAAsB,oBAAoB,CAAC,GAC3C,CAACM,GAAkB,mCAEnB,OAOF,IAAME,EAJ6B,IAAIP,EACrCK,GAAkB,oCAAsC,CAC1D,EAG6B,MAAM,GAAI,EAEjCG,EAAiCT,EACpC,MAAM,GAAI,EACV,MAAMQ,CAA+B,EAElCE,EAA6BC,EACjCP,EAAwB,SAAS,CACnC,EAEMQ,EACJH,EAA+B,oBAAoB,CAAC,EAChD,EACAA,EAA+B,SAAS,EAE9C,aAAa,KAAK,yBAA2B,CAAC,EAE9C,KAAK,wBAA0B,WAAW,IAAM,CAC9CJ,EAAa,YAAY,EAAE,kBAAkB,CAC3C,QAAS,sBACT,cAAe,UACf,MAAO,6BACP,iBACA,QAAS,+BAA+BK,CAA0B,GACpE,CAAC,EACD,KAAK,wBAA0B,IACjC,EAAGE,CAAyB,CAC9B,CApJuB,CAPvB,OAAc,aAA6B,CACzC,OAAK7B,EAAc,WACjBA,EAAc,SAAW,IAAIA,GAExBA,EAAc,QACvB,CAuJF",
6
+ "names": ["BigNumber", "setNewAccount", "address", "getAddress", "network", "getNetworkConfig", "account", "fetchAccount", "accountData", "trimUsernameDomain", "getLatestNonce", "setAccount", "e", "refreshAccount", "provider", "getAccountProvider", "checkBatch", "sessionId", "transactions", "isSequential", "isLoggedIn", "getIsLoggedIn", "pendingTransactions", "getPendingTransactions", "serverTransactions", "getTransactionsByHashes", "serverTransaction", "runTransactionStatusUpdate", "tx", "refreshAccount", "sessions", "getState", "session", "updateSessionStatus", "error", "checkTransactionStatus", "pendingSessions", "pendingTransactionsSessionsSelector", "getState", "entries", "sessionId", "transactions", "checkBatch", "trackTransactions", "store", "getStore", "pollingInterval", "getPollingInterval", "pollingIntervalRef", "timestamp", "websocketEventSelector", "recheckStatus", "checkTransactionStatus", "error", "startPolling", "stopPolling", "setupWebSocketTracking", "unsubscribeWebsocketEvent", "websocketEvent", "pendingTransactionsSessionsSelector", "getIsLoggedIn", "refreshAccount", "subscriptions", "stopTransactionsTracking", "unsubscribeWebsocketStatus", "address", "websocketStatus", "prevState", "accountLogin", "address", "provider", "apiAddress", "account", "fetchAccount", "loginAction", "newAccount", "trimUsernameDomain", "getLatestNonce", "setAccount", "registerWebsocketListener", "trackTransactions", "setGasStationMetadata", "loginWithNativeToken", "provider", "nativeAuthConfig", "token", "apiAddress", "getNetworkConfig", "nativeAuthClient", "nativeAuth", "loginToken", "loginData", "address", "signature", "loginResult", "decodedToken", "decodeNativeAuthToken", "usedLoginToken", "getMultisigLoginToken", "nativeAuthToken", "setTokenLogin", "extractedAddress", "extractAddressFromToken", "accountLogin", "loginWithoutNativeToken", "provider", "apiAddress", "getNetworkConfig", "address", "accountLogin", "login", "provider", "options", "nativeAuthConfig", "nativeAuthConfigSelector", "getState", "loginWithNativeToken", "address", "loginWithoutNativeToken", "registerWebsocketListener", "trackTransactions", "signTransactionsWithProvider", "provider", "transactions", "options", "refreshAccount", "isGuarded", "activeGuardianAddress", "nonce", "getAccount", "isLedger", "ProviderTypeEnum", "transactionsWithComputedNonce", "computeNonces", "transactionsToSign", "transaction", "TransactionVersion", "TransactionOptions", "Address", "signedTransactions", "setAccountNonce", "DappProvider", "provider", "options", "data", "login", "setProviderType", "setAccountProvider", "LogoutManager", "isLoggedOut", "logout", "transactions", "signTransactionsWithProvider", "error", "errorMessage", "handleSignError", "message", "signMessageWithProvider", "accountProvider", "setAccountProvider", "provider", "getAccountProvider", "DappProvider", "emptyProvider", "LogoutManager", "_LogoutManager", "getStore", "state", "tokenLogin", "tokenLoginSelector", "isNativeAuthTokenExpired", "getTokenExpiration", "getAccountProvider", "isLoggedIn", "isLoggedInSelector", "provider", "address", "addressSelector", "isWebviewLogin", "ProviderTypeEnum", "secondsUntilExpires", "expiresAt", "secondsUntilExpiresBN", "BigNumber", "plannedLogoutKey", "plannedLogoutSet", "millisecondsUntilLogout", "ToastManager", "nativeAuthConfig", "nativeAuthConfigSelector", "logoutWarningOffsetMilliseconds", "millisecondsUntilLogoutWarning", "readableMinutesUntilLogout", "getHumanReadableTokenExpirationTime", "timeoutUntilLogoutWarning"]
7
+ }
@@ -1,2 +1,2 @@
1
- import{a as n}from"./chunk-Y3ZV4LOO.mjs";import{a as g}from"./chunk-YJCTRUJT.mjs";import{a as f}from"./chunk-2JKCBTYK.mjs";import{BigNumber as p}from"bignumber.js";async function b({manager:e,provider:s,login:a,token:u,explorerAddress:m,authData:x}){let o={manager:e,provider:s};return await new Promise(async function(A,I){async function d(t){let r=e?e.addressesPerPage??1:1,l=new p(t-1).times(r);e?.updateStartIndex(Math.max(0,parseInt(l.toString()))),await n(o)}async function c(t){if(!(!s||!a)){e?.updateConfirmScreen({...x,selectedAddress:t.selectedAddress,explorerLink:g({to:`/${f}/${t.selectedAddress}`,explorerAddress:m})});try{let r=u?await s.tokenLogin({token:Buffer.from(`${u}{}`),addressIndex:t.addressIndex}):await a({addressIndex:t.addressIndex});e.unsubscribeFromAuthEvents({handleCancel:i,handleAccessWallet:c,handleGoToPage:d}),A({address:r.address,signature:r.signature?r.signature.toString("hex"):"",addressIndex:t.addressIndex})}catch(r){console.error("User rejected login:",r),!!e?.getConfirmScreenData()&&await n(o)}}}async function i(){await n(o),e.unsubscribeFromAuthEvents({handleCancel:i,handleAccessWallet:c,handleGoToPage:d}),I("User cancelled login")}e.subscribeToAuthEvents({handleCancel:i,handleAccessWallet:c,handleGoToPage:d})})}export{b as a};
2
- //# sourceMappingURL=chunk-KEM2JVJR.mjs.map
1
+ import{a as n}from"./chunk-6YJCCZLX.mjs";import{a as g}from"./chunk-YJCTRUJT.mjs";import{a as f}from"./chunk-2JKCBTYK.mjs";import{BigNumber as p}from"bignumber.js";async function b({manager:e,provider:s,login:a,token:u,explorerAddress:m,authData:x}){let o={manager:e,provider:s};return await new Promise(async function(A,I){async function d(t){let r=e?e.addressesPerPage??1:1,l=new p(t-1).times(r);e?.updateStartIndex(Math.max(0,parseInt(l.toString()))),await n(o)}async function c(t){if(!(!s||!a)){e?.updateConfirmScreen({...x,selectedAddress:t.selectedAddress,explorerLink:g({to:`/${f}/${t.selectedAddress}`,explorerAddress:m})});try{let r=u?await s.tokenLogin({token:Buffer.from(`${u}{}`),addressIndex:t.addressIndex}):await a({addressIndex:t.addressIndex});e.unsubscribeFromAuthEvents({handleCancel:i,handleAccessWallet:c,handleGoToPage:d}),A({address:r.address,signature:r.signature?r.signature.toString("hex"):"",addressIndex:t.addressIndex})}catch(r){console.error("User rejected login:",r),!!e?.getConfirmScreenData()&&await n(o)}}}async function i(){await n(o),e.unsubscribeFromAuthEvents({handleCancel:i,handleAccessWallet:c,handleGoToPage:d}),I("User cancelled login")}e.subscribeToAuthEvents({handleCancel:i,handleAccessWallet:c,handleGoToPage:d})})}export{b as a};
2
+ //# sourceMappingURL=chunk-YMDXIJ3P.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as n}from"./chunk-GUUHEK5P.mjs";import{a as t}from"./chunk-PJQTJIIE.mjs";var i=class extends n{constructor({uiDataUpdateEvent:e,uiTag:s}){super({uiDataUpdateEvent:e,uiTag:s});this.isOpen=!1;this.data=this.getInitialData()}async openUI(){this.isOpen&&this.uiElement||(await super.init(),this.setIsSidePanelOpen(!0))}destroy(){if(this.setIsSidePanelOpen(!1),this.uiElement?.closeWithAnimation){this.uiElement?.closeWithAnimation?.().finally(()=>{super.destroy()});return}super.destroy()}closeUI(){this.resetData(),this.destroy()}setIsSidePanelOpen(e){this.isOpen=e,t(e)}};export{i as a};
2
- //# sourceMappingURL=chunk-DQNOCLT6.mjs.map
1
+ import{a as n}from"./chunk-S65LFCFF.mjs";import{a as t}from"./chunk-RRZQ6HWW.mjs";var i=class extends n{constructor({uiDataUpdateEvent:e,uiTag:s}){super({uiDataUpdateEvent:e,uiTag:s});this.isOpen=!1;this.data=this.getInitialData()}async openUI(){this.isOpen&&this.uiElement||(await super.init(),this.setIsSidePanelOpen(!0))}destroy(){if(this.setIsSidePanelOpen(!1),this.uiElement?.closeWithAnimation){this.uiElement?.closeWithAnimation?.().finally(()=>{super.destroy()});return}super.destroy()}closeUI(){this.resetData(),this.destroy()}setIsSidePanelOpen(e){this.isOpen=e,t(e)}};export{i as a};
2
+ //# sourceMappingURL=chunk-YYB5NTTG.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-PBW3OFFT.mjs";var n=class{static get create(){return this.createComponent}static set create(e){this.createComponent=e}};n.createComponent=async({name:e,anchor:m})=>{if(!t?.customElements?.get(e))return null;let o=t.document.createElement(e);return(m||t.document.body).appendChild(o),await customElements.whenDefined(e),o};export{n as a};
2
- //# sourceMappingURL=chunk-SVI37OOZ.mjs.map
1
+ import{a as t}from"./chunk-IXZES7OF.mjs";var n=class{static get create(){return this.createComponent}static set create(e){this.createComponent=e}};n.createComponent=async({name:e,anchor:m})=>{if(!t?.customElements?.get(e))return null;let o=t.document.createElement(e);return(m||t.document.body).appendChild(o),await customElements.whenDefined(e),o};export{n as a};
2
+ //# sourceMappingURL=chunk-ZE3C4Y4K.mjs.map
@@ -1,2 +1,2 @@
1
- import{a,b}from"../../__chunks__/chunk-EXZKSKKB.mjs";import"../../__chunks__/chunk-Q2D7XVUW.mjs";import"../../__chunks__/chunk-N56SMVGU.mjs";import"../../__chunks__/chunk-PKDR5ERF.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-XCOSMO6H.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-JJRA6WO3.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-NWJYEKI2.mjs";import"../../__chunks__/chunk-PBW3OFFT.mjs";export{a as accountFetcher,b as getAccountFromApi};
1
+ import{a,b}from"../../__chunks__/chunk-K7MM6MKP.mjs";import"../../__chunks__/chunk-CHDYDRGH.mjs";import"../../__chunks__/chunk-N56SMVGU.mjs";import"../../__chunks__/chunk-PKDR5ERF.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-QMRLPDMP.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-I5N5DHKW.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-NWJYEKI2.mjs";import"../../__chunks__/chunk-IXZES7OF.mjs";export{a as accountFetcher,b as getAccountFromApi};
2
2
  //# sourceMappingURL=getAccountFromApi.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../__chunks__/chunk-MN7GKF42.mjs";import"../../__chunks__/chunk-Q2D7XVUW.mjs";import"../../__chunks__/chunk-PKDR5ERF.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-XCOSMO6H.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-JJRA6WO3.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-NWJYEKI2.mjs";import"../../__chunks__/chunk-PBW3OFFT.mjs";export{a as getScamAddressData};
1
+ import{a}from"../../__chunks__/chunk-TTRVY63G.mjs";import"../../__chunks__/chunk-CHDYDRGH.mjs";import"../../__chunks__/chunk-PKDR5ERF.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-QMRLPDMP.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-I5N5DHKW.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-NWJYEKI2.mjs";import"../../__chunks__/chunk-IXZES7OF.mjs";export{a as getScamAddressData};
2
2
  //# sourceMappingURL=getScamAddressData.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../__chunks__/chunk-Q2D7XVUW.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-XCOSMO6H.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-JJRA6WO3.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-PBW3OFFT.mjs";export{a as getCleanApiAddress};
1
+ import{a}from"../../__chunks__/chunk-CHDYDRGH.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-QMRLPDMP.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-I5N5DHKW.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-IXZES7OF.mjs";export{a as getCleanApiAddress};
2
2
  //# sourceMappingURL=getCleanApiAddress.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../__chunks__/chunk-7272OEPE.mjs";import"../../__chunks__/chunk-Q2D7XVUW.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-XCOSMO6H.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-JJRA6WO3.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-PBW3OFFT.mjs";export{a as getGasStationMetadataFromApi};
1
+ import{a}from"../../__chunks__/chunk-OPTOPG46.mjs";import"../../__chunks__/chunk-CHDYDRGH.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-QMRLPDMP.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-I5N5DHKW.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-IXZES7OF.mjs";export{a as getGasStationMetadataFromApi};
2
2
  //# sourceMappingURL=getGasStationMetadata.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../__chunks__/chunk-5HLQD7ON.mjs";import"../../__chunks__/chunk-Q2D7XVUW.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-XCOSMO6H.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-JJRA6WO3.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-PBW3OFFT.mjs";export{a as getEconomics};
1
+ import{a}from"../../__chunks__/chunk-H6EQTKFK.mjs";import"../../__chunks__/chunk-CHDYDRGH.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-QMRLPDMP.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-I5N5DHKW.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-IXZES7OF.mjs";export{a as getEconomics};
2
2
  //# sourceMappingURL=getEconomics.mjs.map