@multiversx/sdk-dapp 5.2.1 → 5.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/__chunks__/{chunk-BKVZCTUG.mjs → chunk-2V734BC5.mjs} +2 -2
- package/out/__chunks__/{chunk-5PGKBWB6.mjs → chunk-2ZUMLHAK.mjs} +2 -2
- package/out/__chunks__/chunk-3ASKGOPL.mjs +2 -0
- package/out/__chunks__/{chunk-IJKCH7CT.mjs → chunk-4VC77F6P.mjs} +2 -2
- package/out/__chunks__/{chunk-DZ5FL2WV.mjs → chunk-6FBHK747.mjs} +2 -2
- package/out/__chunks__/chunk-6JWLY5O6.mjs +2 -0
- package/out/__chunks__/{chunk-TASSEE6N.mjs → chunk-6XX6ZLRH.mjs} +2 -2
- package/out/__chunks__/{chunk-WQAFFPAS.mjs → chunk-7SSBY22M.mjs} +2 -2
- package/out/__chunks__/{chunk-2Y66XRQK.mjs → chunk-7ZUH3TQ2.mjs} +2 -2
- package/out/__chunks__/{chunk-IGTIIBN6.mjs → chunk-AKWG6QLG.mjs} +2 -2
- package/out/__chunks__/chunk-ASWAR3QU.mjs +2 -0
- package/out/__chunks__/{chunk-OYCDHRNS.mjs → chunk-ASZPRMFV.mjs} +2 -2
- package/out/__chunks__/{chunk-EP4OBHW4.mjs → chunk-AZEXDP7Y.mjs} +2 -2
- package/out/__chunks__/chunk-BI66JHPZ.mjs +2 -0
- package/out/__chunks__/chunk-BI66JHPZ.mjs.map +7 -0
- package/out/__chunks__/{chunk-B5K6T6DF.mjs → chunk-CDASOTMO.mjs} +2 -2
- package/out/__chunks__/{chunk-H2EFE4NU.mjs → chunk-CTQMOQW3.mjs} +2 -2
- package/out/__chunks__/{chunk-IPIX74CB.mjs → chunk-DLGYHG2V.mjs} +2 -2
- package/out/__chunks__/chunk-DQ4VYTW5.mjs +2 -0
- package/out/__chunks__/{chunk-DE6O7BFR.mjs → chunk-E55Y5DJE.mjs} +2 -2
- package/out/__chunks__/{chunk-57P66SOT.mjs → chunk-E7CEJGJQ.mjs} +2 -2
- package/out/__chunks__/{chunk-X5IHXBJ3.mjs → chunk-EGLXC3FA.mjs} +2 -2
- package/out/__chunks__/{chunk-4NQ35FCJ.mjs → chunk-EWFCQIZV.mjs} +2 -2
- package/out/__chunks__/{chunk-IV4LWBR3.mjs → chunk-FQEB6SMB.mjs} +2 -2
- package/out/__chunks__/chunk-FVEANNWZ.mjs +2 -0
- package/out/__chunks__/{chunk-O6RJHMIJ.mjs → chunk-GFRJNBRK.mjs} +2 -2
- package/out/__chunks__/{chunk-TZJL7CZF.mjs → chunk-GFS4Q6Z7.mjs} +2 -2
- package/out/__chunks__/chunk-GM4REL44.mjs +2 -0
- package/out/__chunks__/{chunk-OPX7XWAC.mjs → chunk-GMOPF52N.mjs} +2 -2
- package/out/__chunks__/{chunk-EIOADZ47.mjs → chunk-HSK376OG.mjs} +2 -2
- package/out/__chunks__/chunk-HVNTW6GO.mjs +2 -0
- package/out/__chunks__/{chunk-R6QKRGY5.mjs → chunk-I2FFTRVB.mjs} +2 -2
- package/out/__chunks__/chunk-IIUIUPNC.mjs +2 -0
- package/out/__chunks__/{chunk-W75ZD7BB.mjs → chunk-IUYBATCJ.mjs} +2 -2
- package/out/__chunks__/chunk-JJUBN3OG.mjs +2 -0
- package/out/__chunks__/chunk-JJUBN3OG.mjs.map +7 -0
- package/out/__chunks__/{chunk-SG5YZ37N.mjs → chunk-JPWJSEO6.mjs} +2 -2
- package/out/__chunks__/{chunk-RYOUAM3L.mjs → chunk-KAGEHYS4.mjs} +2 -2
- package/out/__chunks__/chunk-KCGV3ZXW.mjs +2 -0
- package/out/__chunks__/{chunk-4G2T73DC.mjs → chunk-LB4OQBQA.mjs} +2 -2
- package/out/__chunks__/{chunk-R7667VN6.mjs → chunk-LSPPEREA.mjs} +2 -2
- package/out/__chunks__/chunk-LTJ6QYTI.mjs +2 -0
- package/out/__chunks__/{chunk-HEA7NFOF.mjs → chunk-MBX42DL3.mjs} +2 -2
- package/out/__chunks__/{chunk-XV2BD67Y.mjs → chunk-MPLHCQ4R.mjs} +2 -2
- package/out/__chunks__/{chunk-62QLCUQH.mjs → chunk-MXW4MATE.mjs} +2 -2
- package/out/__chunks__/chunk-N4S6ABHB.mjs +2 -0
- package/out/__chunks__/{chunk-OFU3D2KB.mjs → chunk-NEZI3IWF.mjs} +2 -2
- package/out/__chunks__/{chunk-NE4YNYCQ.mjs → chunk-NKBWNOLA.mjs} +2 -2
- package/out/__chunks__/{chunk-EPMKXFFR.mjs → chunk-NQXLA34W.mjs} +2 -2
- package/out/__chunks__/chunk-OA5MR4Y6.mjs +2 -0
- package/out/__chunks__/{chunk-OMZ6A4DO.mjs → chunk-OIEDIWGP.mjs} +2 -2
- package/out/__chunks__/{chunk-WLXKUUZ3.mjs → chunk-OJ4UPDFE.mjs} +2 -2
- package/out/__chunks__/chunk-OKTLLLTC.mjs +2 -0
- package/out/__chunks__/{chunk-34ZJZYMC.mjs → chunk-OLSMED5W.mjs} +2 -2
- package/out/__chunks__/{chunk-SBOOJTIB.mjs → chunk-OYMPU3D4.mjs} +2 -2
- package/out/__chunks__/chunk-P5EESGJF.mjs +2 -0
- package/out/__chunks__/{chunk-4LTMFD6V.mjs → chunk-PFYTYBW3.mjs} +2 -2
- package/out/__chunks__/chunk-PR365NU7.mjs +2 -0
- package/out/__chunks__/chunk-Q4ZRXII2.mjs +2 -0
- package/out/__chunks__/{chunk-OLOOCCNU.mjs → chunk-QZ6GNARF.mjs} +2 -2
- package/out/__chunks__/{chunk-ZHGONRBM.mjs → chunk-R2DIXNM2.mjs} +2 -2
- package/out/__chunks__/{chunk-OHHNQ66F.mjs → chunk-R4CE7CDZ.mjs} +2 -2
- package/out/__chunks__/{chunk-XI2BWIQP.mjs → chunk-R5VO5NAQ.mjs} +2 -2
- package/out/__chunks__/{chunk-VNMU246H.mjs → chunk-REID2WXN.mjs} +2 -2
- package/out/__chunks__/{chunk-UCRVRBTA.mjs → chunk-S6NHNEQK.mjs} +2 -2
- package/out/__chunks__/{chunk-DHTRPE3R.mjs → chunk-SBMC65W6.mjs} +2 -2
- package/out/__chunks__/{chunk-GYYCA57F.mjs → chunk-SEBWQEIV.mjs} +2 -2
- package/out/__chunks__/{chunk-AS7XXEHY.mjs → chunk-SMW2Y5YA.mjs} +2 -2
- package/out/__chunks__/chunk-SUSUR4QF.mjs +2 -0
- package/out/__chunks__/{chunk-PGGSHHQJ.mjs → chunk-T3LDKSIQ.mjs} +2 -2
- package/out/__chunks__/{chunk-ZEJRHV7U.mjs → chunk-TPZ2PFCM.mjs} +2 -2
- package/out/__chunks__/{chunk-JIKCHL57.mjs → chunk-TXJIXRMC.mjs} +2 -2
- package/out/__chunks__/{chunk-AMS6KZTC.mjs → chunk-VQDBI6YM.mjs} +2 -2
- package/out/__chunks__/{chunk-BBCLPJC4.mjs → chunk-W32KHY5V.mjs} +2 -2
- package/out/__chunks__/{chunk-OXPZVCKM.mjs → chunk-W3Y4J4D3.mjs} +2 -2
- package/out/__chunks__/chunk-WOJOOCI6.mjs +2 -0
- package/out/__chunks__/{chunk-WVZRN2HX.mjs.map → chunk-WOJOOCI6.mjs.map} +1 -1
- package/out/__chunks__/{chunk-5VSKEHYA.mjs → chunk-XFVBNWP2.mjs} +2 -2
- package/out/__chunks__/{chunk-JV4IJH7L.mjs → chunk-Y5ERFLZ5.mjs} +2 -2
- package/out/__chunks__/{chunk-N2KEJEOD.mjs → chunk-YI4TACNU.mjs} +2 -2
- package/out/__chunks__/{chunk-32ZBY2AE.mjs → chunk-YJ4OUGHL.mjs} +2 -2
- package/out/__chunks__/chunk-YOE2FKZ6.mjs +2 -0
- package/out/__chunks__/chunk-YOE2FKZ6.mjs.map +7 -0
- package/out/__chunks__/{chunk-5JVY6GJC.mjs → chunk-ZD7FEKSG.mjs} +2 -2
- package/out/__chunks__/chunk-ZONHCECO.mjs +2 -0
- package/out/__chunks__/chunk-ZONHCECO.mjs.map +7 -0
- package/out/__chunks__/{chunk-7JATWFXB.mjs → chunk-ZRFBDO7U.mjs} +2 -2
- package/out/__chunks__/chunk-ZVIKYGX5.mjs +2 -0
- package/out/__chunks__/{chunk-6JSWL75O.mjs.map → chunk-ZVIKYGX5.mjs.map} +2 -2
- package/out/apiCalls/account/getScamAddressData.mjs +1 -1
- package/out/apiCalls/configuration/getCleanApiAddress.mjs +1 -1
- package/out/apiCalls/configuration/getGasStationMetadata.mjs +1 -1
- package/out/apiCalls/index.mjs +1 -1
- package/out/apiCalls/tokens/getPersistedTokenDetails.mjs +1 -1
- package/out/apiCalls/tokens/getTokenDetails.mjs +1 -1
- package/out/apiCalls/tokens/index.mjs +1 -1
- package/out/apiCalls/transactions/getServerTransactionsByHashes.mjs +1 -1
- package/out/apiCalls/transactions/getTransactionByHash.mjs +1 -1
- package/out/apiCalls/transactions/getTransactionsByHashes.mjs +1 -1
- package/out/constants/browser.constants.mjs +1 -1
- package/out/constants/index.mjs +1 -1
- package/out/constants/providerFactory.constants.cjs +0 -1
- package/out/constants/providerFactory.constants.cjs.map +2 -2
- package/out/constants/providerFactory.constants.mjs +1 -1
- package/out/constants/storage.constants.mjs +1 -1
- package/out/constants/window.constants.cjs +1 -1
- package/out/constants/window.constants.cjs.map +1 -1
- package/out/constants/window.constants.mjs +1 -1
- package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.mjs +1 -1
- package/out/controllers/TransactionsHistoryController/index.mjs +1 -1
- package/out/controllers/TransactionsTableController/TransactionsTableController.mjs +1 -1
- package/out/controllers/TransactionsTableController/index.mjs +1 -1
- package/out/index.mjs +1 -1
- package/out/lib/sdkDappUi.mjs +1 -1
- package/out/managers/LogoutManager/LogoutManager.mjs +1 -1
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.mjs +1 -1
- package/out/managers/NotificationsFeedManager/index.mjs +1 -1
- package/out/managers/ToastManager/ToastManager.mjs +1 -1
- package/out/managers/ToastManager/helpers/LifetimeManager.mjs +1 -1
- package/out/managers/ToastManager/helpers/createToastsFromTransactions.mjs +1 -1
- package/out/managers/ToastManager/index.mjs +1 -1
- package/out/managers/TransactionManager/TransactionManager.mjs +1 -1
- package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.mjs +1 -1
- package/out/managers/TransactionManager/helpers/getToastDuration.mjs +1 -1
- package/out/managers/TransactionManager/index.mjs +1 -1
- package/out/managers/UnlockPanelManager/UnlockPanelManager.mjs +1 -1
- package/out/managers/UnlockPanelManager/index.mjs +1 -1
- package/out/managers/index.mjs +1 -1
- package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.mjs +1 -1
- package/out/managers/internal/LedgerConnectStateManager/index.mjs +1 -1
- package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.mjs +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.mjs +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/index.mjs +1 -1
- package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.mjs +1 -1
- package/out/managers/internal/SidePanelBaseManager/index.mjs +1 -1
- package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.mjs +1 -1
- package/out/managers/internal/SignTransactionsStateManager/index.mjs +1 -1
- package/out/managers/internal/UIBaseManager/UIBaseManager.mjs +1 -1
- package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.mjs +1 -1
- package/out/managers/internal/WalletConnectStateManager/index.mjs +1 -1
- package/out/managers/internal/index.mjs +1 -1
- package/out/methods/account/getAccount.mjs +1 -1
- package/out/methods/account/getAccountInfo.mjs +1 -1
- package/out/methods/account/getAddress.mjs +1 -1
- package/out/methods/account/getIsLoggedIn.mjs +1 -1
- package/out/methods/account/getLatestNonce.mjs +1 -1
- package/out/methods/initApp/gastStationMetadata/setGasStationMetadata.mjs +1 -1
- package/out/methods/initApp/initApp.mjs +1 -1
- package/out/methods/initApp/websocket/initializeWebsocketConnection.mjs +1 -1
- package/out/methods/initApp/websocket/registerWebsocket.mjs +1 -1
- package/out/methods/loginInfo/getLoginInfo.mjs +1 -1
- package/out/methods/network/getEgldLabel.mjs +1 -1
- package/out/methods/network/getExplorerAddress.mjs +1 -1
- package/out/methods/network/getNetworkConfig.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.mjs +1 -1
- package/out/methods/trackTransactions/helpers/getPollingInterval.mjs +1 -1
- package/out/methods/trackTransactions/trackTransactions.mjs +1 -1
- package/out/methods/transactions/getFailedTransactions.mjs +1 -1
- package/out/methods/transactions/getFailedTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getPendingTransactions.mjs +1 -1
- package/out/methods/transactions/getPendingTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getSuccessfulTransactions.mjs +1 -1
- package/out/methods/transactions/getSuccessfulTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getTransactionSessions.mjs +1 -1
- package/out/providers/DappProvider/DappProvider.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/accountLogin.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/login.mjs +1 -1
- package/out/providers/DappProvider/helpers/logout/logout.mjs +1 -1
- package/out/providers/DappProvider/helpers/signErrors/handleSignError.mjs +1 -1
- package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.mjs +1 -1
- package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.mjs +1 -1
- package/out/providers/DappProvider/index.mjs +1 -1
- package/out/providers/ProviderFactory.cjs +1 -10
- package/out/providers/ProviderFactory.cjs.map +2 -2
- package/out/providers/ProviderFactory.mjs +1 -1
- package/out/providers/helpers/accountProvider.mjs +1 -1
- package/out/providers/helpers/cancelCrossWindowAction.mjs +1 -1
- package/out/providers/helpers/clearInitiatedLogins.mjs +1 -1
- package/out/providers/helpers/emptyProvider.mjs +1 -1
- package/out/providers/helpers/restoreProvider.mjs +1 -1
- package/out/providers/index.mjs +1 -1
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.mjs +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.mjs +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.mjs +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.cjs +9 -11
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.cjs.map +2 -2
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.d.ts +1 -2
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/types/iframe.types.cjs.map +1 -1
- package/out/providers/strategies/IframeProviderStrategy/types/iframe.types.d.ts +0 -2
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getAuthTokenText.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerConfiguration.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerVersionOptions.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.mjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/helpers/getPendingTransactionsHandlers.mjs +1 -1
- package/out/providers/strategies/helpers/index.mjs +1 -1
- package/out/providers/strategies/helpers/signMessage/signMessage.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.cjs +4 -6
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.cjs.map +2 -2
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/signTransactions.mjs +1 -1
- package/out/providers/strategies/index.mjs +1 -1
- package/out/providers/types/providerFactory.types.cjs +0 -1
- package/out/providers/types/providerFactory.types.cjs.map +2 -2
- package/out/providers/types/providerFactory.types.d.ts +0 -1
- package/out/providers/types/providerFactory.types.mjs +1 -1
- package/out/react/account/useGetAccount.mjs +1 -1
- package/out/react/account/useGetAccountInfo.mjs +1 -1
- package/out/react/account/useGetIsLoggedIn.mjs +1 -1
- package/out/react/account/useGetLatestNonce.mjs +1 -1
- package/out/react/index.mjs +1 -1
- package/out/react/loginInfo/useGetLoginInfo.mjs +1 -1
- package/out/react/network/useGetNetworkConfig.mjs +1 -1
- package/out/react/store/getReactStore.mjs +1 -1
- package/out/react/store/useSelector.mjs +1 -1
- package/out/react/transactions/useGetFailedTransactions.mjs +1 -1
- package/out/react/transactions/useGetFailedTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactions.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetSuccessfulTransactions.mjs +1 -1
- package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetTransactionSessions.mjs +1 -1
- package/out/services/index.mjs +1 -1
- package/out/services/nativeAuth/index.mjs +1 -1
- package/out/services/nativeAuth/methods/buildNativeAuthConfig.mjs +1 -1
- package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.mjs +1 -1
- package/out/services/nativeAuth/methods/index.mjs +1 -1
- package/out/services/nativeAuth/nativeAuth.mjs +1 -1
- package/out/store/actions/account/accountActions.mjs +1 -1
- package/out/store/actions/account/index.mjs +1 -1
- package/out/store/actions/cache/cacheActions.mjs +1 -1
- package/out/store/actions/cache/index.mjs +1 -1
- package/out/store/actions/config/configActions.mjs +1 -1
- package/out/store/actions/config/index.mjs +1 -1
- package/out/store/actions/index.mjs +1 -1
- package/out/store/actions/loginInfo/loginInfoActions.mjs +1 -1
- package/out/store/actions/network/index.mjs +1 -1
- package/out/store/actions/network/initializeNetwork.mjs +1 -1
- package/out/store/actions/network/networkActions.mjs +1 -1
- package/out/store/actions/sharedActions/index.mjs +1 -1
- package/out/store/actions/sharedActions/sharedActions.mjs +1 -1
- package/out/store/actions/toasts/index.mjs +1 -1
- package/out/store/actions/toasts/toastsActions.mjs +1 -1
- package/out/store/actions/transactions/transactionsActions.cjs +3 -2
- package/out/store/actions/transactions/transactionsActions.cjs.map +2 -2
- package/out/store/actions/transactions/transactionsActions.mjs +1 -1
- package/out/store/actions/ui/index.mjs +1 -1
- package/out/store/actions/ui/uiActions.mjs +1 -1
- package/out/store/middleware/applyMiddlewares.mjs +1 -1
- package/out/store/middleware/index.mjs +1 -1
- package/out/store/middleware/logoutMiddleware.mjs +1 -1
- package/out/store/storage/index.mjs +1 -1
- package/out/store/storage/storageCallback.mjs +1 -1
- package/out/store/store.mjs +1 -1
- package/out/utils/ComponentFactory.mjs +1 -1
- package/out/utils/account/index.mjs +1 -1
- package/out/utils/account/refreshAccount.mjs +1 -1
- package/out/utils/account/refreshNativeAuthTokenLogin.mjs +1 -1
- package/out/utils/index.mjs +1 -1
- package/out/utils/transactions/getActiveTransactionsStatus.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMessages.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/index.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/index.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/index.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/index.mjs +1 -1
- package/out/utils/transactions/index.mjs +1 -1
- package/out/utils/visual/index.mjs +1 -1
- package/out/utils/visual/switchTheme.mjs +1 -1
- package/out/utils/window/getIsInIframe.mjs +1 -1
- package/out/utils/window/getWindowParentOrigin.mjs +1 -1
- package/out/utils/window/index.mjs +1 -1
- package/package.json +3 -3
- package/out/__chunks__/chunk-3JEK5A62.mjs +0 -2
- package/out/__chunks__/chunk-5LFB2H3K.mjs +0 -2
- package/out/__chunks__/chunk-5UYF2YJN.mjs +0 -2
- package/out/__chunks__/chunk-5W77GYVQ.mjs +0 -2
- package/out/__chunks__/chunk-6FPG2OTI.mjs +0 -2
- package/out/__chunks__/chunk-6JSWL75O.mjs +0 -2
- package/out/__chunks__/chunk-7Z665D57.mjs +0 -2
- package/out/__chunks__/chunk-C3Y3ANFE.mjs +0 -2
- package/out/__chunks__/chunk-C3Y3ANFE.mjs.map +0 -7
- package/out/__chunks__/chunk-CGLVVKZU.mjs +0 -2
- package/out/__chunks__/chunk-CTITNRKA.mjs +0 -2
- package/out/__chunks__/chunk-HSYMR5UW.mjs +0 -2
- package/out/__chunks__/chunk-IYVM5B26.mjs +0 -2
- package/out/__chunks__/chunk-K3OKY7NL.mjs +0 -2
- package/out/__chunks__/chunk-LJX4MW7B.mjs +0 -2
- package/out/__chunks__/chunk-LJX4MW7B.mjs.map +0 -7
- package/out/__chunks__/chunk-O72VJVJC.mjs +0 -2
- package/out/__chunks__/chunk-QB4NUTLA.mjs +0 -2
- package/out/__chunks__/chunk-QVGM6655.mjs +0 -2
- package/out/__chunks__/chunk-QVGM6655.mjs.map +0 -7
- package/out/__chunks__/chunk-R76CQZZH.mjs +0 -2
- package/out/__chunks__/chunk-SYWFZFFJ.mjs +0 -2
- package/out/__chunks__/chunk-TSBH5KYD.mjs +0 -2
- package/out/__chunks__/chunk-UN2MEJKC.mjs +0 -2
- package/out/__chunks__/chunk-UN2MEJKC.mjs.map +0 -7
- package/out/__chunks__/chunk-WAM7WNSA.mjs +0 -2
- package/out/__chunks__/chunk-WVZRN2HX.mjs +0 -2
- /package/out/__chunks__/{chunk-BKVZCTUG.mjs.map → chunk-2V734BC5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5PGKBWB6.mjs.map → chunk-2ZUMLHAK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CTITNRKA.mjs.map → chunk-3ASKGOPL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IJKCH7CT.mjs.map → chunk-4VC77F6P.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DZ5FL2WV.mjs.map → chunk-6FBHK747.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CGLVVKZU.mjs.map → chunk-6JWLY5O6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-TASSEE6N.mjs.map → chunk-6XX6ZLRH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WQAFFPAS.mjs.map → chunk-7SSBY22M.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2Y66XRQK.mjs.map → chunk-7ZUH3TQ2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IGTIIBN6.mjs.map → chunk-AKWG6QLG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3JEK5A62.mjs.map → chunk-ASWAR3QU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OYCDHRNS.mjs.map → chunk-ASZPRMFV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EP4OBHW4.mjs.map → chunk-AZEXDP7Y.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-B5K6T6DF.mjs.map → chunk-CDASOTMO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-H2EFE4NU.mjs.map → chunk-CTQMOQW3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IPIX74CB.mjs.map → chunk-DLGYHG2V.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-K3OKY7NL.mjs.map → chunk-DQ4VYTW5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DE6O7BFR.mjs.map → chunk-E55Y5DJE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-57P66SOT.mjs.map → chunk-E7CEJGJQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-X5IHXBJ3.mjs.map → chunk-EGLXC3FA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4NQ35FCJ.mjs.map → chunk-EWFCQIZV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IV4LWBR3.mjs.map → chunk-FQEB6SMB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-R76CQZZH.mjs.map → chunk-FVEANNWZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-O6RJHMIJ.mjs.map → chunk-GFRJNBRK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-TZJL7CZF.mjs.map → chunk-GFS4Q6Z7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WAM7WNSA.mjs.map → chunk-GM4REL44.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OPX7XWAC.mjs.map → chunk-GMOPF52N.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EIOADZ47.mjs.map → chunk-HSK376OG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-HSYMR5UW.mjs.map → chunk-HVNTW6GO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-R6QKRGY5.mjs.map → chunk-I2FFTRVB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5W77GYVQ.mjs.map → chunk-IIUIUPNC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-W75ZD7BB.mjs.map → chunk-IUYBATCJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SG5YZ37N.mjs.map → chunk-JPWJSEO6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RYOUAM3L.mjs.map → chunk-KAGEHYS4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6FPG2OTI.mjs.map → chunk-KCGV3ZXW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4G2T73DC.mjs.map → chunk-LB4OQBQA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-R7667VN6.mjs.map → chunk-LSPPEREA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5LFB2H3K.mjs.map → chunk-LTJ6QYTI.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-HEA7NFOF.mjs.map → chunk-MBX42DL3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XV2BD67Y.mjs.map → chunk-MPLHCQ4R.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-62QLCUQH.mjs.map → chunk-MXW4MATE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-TSBH5KYD.mjs.map → chunk-N4S6ABHB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OFU3D2KB.mjs.map → chunk-NEZI3IWF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-NE4YNYCQ.mjs.map → chunk-NKBWNOLA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EPMKXFFR.mjs.map → chunk-NQXLA34W.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-7Z665D57.mjs.map → chunk-OA5MR4Y6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OMZ6A4DO.mjs.map → chunk-OIEDIWGP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WLXKUUZ3.mjs.map → chunk-OJ4UPDFE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IYVM5B26.mjs.map → chunk-OKTLLLTC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-34ZJZYMC.mjs.map → chunk-OLSMED5W.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SBOOJTIB.mjs.map → chunk-OYMPU3D4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QB4NUTLA.mjs.map → chunk-P5EESGJF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4LTMFD6V.mjs.map → chunk-PFYTYBW3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5UYF2YJN.mjs.map → chunk-PR365NU7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SYWFZFFJ.mjs.map → chunk-Q4ZRXII2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OLOOCCNU.mjs.map → chunk-QZ6GNARF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZHGONRBM.mjs.map → chunk-R2DIXNM2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OHHNQ66F.mjs.map → chunk-R4CE7CDZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XI2BWIQP.mjs.map → chunk-R5VO5NAQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VNMU246H.mjs.map → chunk-REID2WXN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UCRVRBTA.mjs.map → chunk-S6NHNEQK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DHTRPE3R.mjs.map → chunk-SBMC65W6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-GYYCA57F.mjs.map → chunk-SEBWQEIV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-AS7XXEHY.mjs.map → chunk-SMW2Y5YA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-O72VJVJC.mjs.map → chunk-SUSUR4QF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PGGSHHQJ.mjs.map → chunk-T3LDKSIQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZEJRHV7U.mjs.map → chunk-TPZ2PFCM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JIKCHL57.mjs.map → chunk-TXJIXRMC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-AMS6KZTC.mjs.map → chunk-VQDBI6YM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BBCLPJC4.mjs.map → chunk-W32KHY5V.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OXPZVCKM.mjs.map → chunk-W3Y4J4D3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5VSKEHYA.mjs.map → chunk-XFVBNWP2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JV4IJH7L.mjs.map → chunk-Y5ERFLZ5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-N2KEJEOD.mjs.map → chunk-YI4TACNU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-32ZBY2AE.mjs.map → chunk-YJ4OUGHL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5JVY6GJC.mjs.map → chunk-ZD7FEKSG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-7JATWFXB.mjs.map → chunk-ZRFBDO7U.mjs.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as k}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as k}from"./chunk-OLSMED5W.mjs";import{a as T}from"./chunk-XCVEFI4B.mjs";import{a as i}from"./chunk-W5MTQBQF.mjs";import{a as m}from"./chunk-UNBTFF6K.mjs";import{a as l}from"./chunk-U3UMCTU6.mjs";import{c as d}from"./chunk-PJWJZHIS.mjs";import{a as o}from"./chunk-7CELSV4S.mjs";var p=class{static async processTransactions({address:u,egldLabel:v,explorerAddress:g,transactions:L}){let f=L.map(e=>m({address:u,explorerAddress:g,transaction:e}));return await Promise.all(f.map(async e=>{let s=e.receiverAssets?.name.replace(/\p{Emoji}/gu,""),a=e.senderAssets?.name.replace(/\p{Emoji}/gu,""),{senderLockedAccount:h,receiverLockedAccount:D}=await k({receiver:e.receiver,sender:e.sender,tokenId:e.tokenIdentifier}),{egldValueData:t,tokenValueData:n,nftValueData:r}=T({transaction:e}),x=r?.token.type==="MetaESDT"?void 0:r?.badgeText,c=l.getData({input:t?.value??n?.value??r?.value??"",decimals:t?.decimals??n?.decimals??r?.decimals??d,digits:2}),y={badge:x??void 0,collection:n?.token.collection??r?.token.collection,egldLabel:t?v:"",link:n?.tokenExplorerLink??r?.tokenExplorerLink,linkText:n?.tokenLinkText??r?.tokenLinkText,name:n?.token.name??r?.token.name,showFormattedAmount:!!(t||n?.tokenFormattedAmount||r?.tokenFormattedAmount),svgUrl:n?.token.svgUrl??r?.token.svgUrl,ticker:n?.token.ticker??r?.token.ticker,titleText:n?.titleText??r?.titleText,valueDecimal:c.valueDecimal,valueInteger:c.valueInteger},w=i(e.receiverShard),A=i(e.senderShard);return{age:e.transactionDetails.age,direction:e.transactionDetails.direction,method:e.transactionDetails.method,iconInfo:e.transactionDetails.iconInfo,link:e.links.transactionLink??"",txHash:e.txHash,receiver:{address:e.receiver,name:s??"",description:`${s??e.receiver} (${e.receiver})`,isContract:o(e.receiver),isTokenLocked:!!D,link:e.links.receiverLink??"",shard:w,shardLink:e.links.receiverLink,showLink:e.transactionDetails.direction!=="In"},sender:{address:e.sender,name:a??"",description:`${a??e.sender} (${e.sender})`,isContract:o(e.sender),isTokenLocked:!!h,link:e.links.senderLink??"",shard:A,shardLink:e.links.senderShardLink,showLink:e.transactionDetails.direction!=="Out"},value:y}}))}};export{p as a};
|
|
2
|
+
//# sourceMappingURL=chunk-MPLHCQ4R.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a}from"./chunk-2ZUMLHAK.mjs";var i=e=>{let t=a();return{origin:e?.origin??t.origin,blockHashShard:e?.blockHashShard,expirySeconds:e?.expirySeconds??t.expirySeconds,apiAddress:e?.apiAddress??t.apiAddress,tokenExpirationToastWarningSeconds:e?.tokenExpirationToastWarningSeconds??t.tokenExpirationToastWarningSeconds,extraInfo:e?.extraInfo??{},gatewayUrl:e?.gatewayUrl,extraRequestHeaders:e?.extraRequestHeaders??{}}};export{i as a};
|
|
2
|
+
//# sourceMappingURL=chunk-MXW4MATE.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-WOJOOCI6.mjs";import{MvxLedgerConnect as r}from"@multiversx/sdk-dapp-ui/web-components/mvx-ledger-connect";async function i(n){if(!(typeof t.navigator<"u"&&t.navigator.product==="ReactNative"))try{(await import("@multiversx/sdk-dapp-ui")).defineCustomElements(n)}catch(e){console.warn("@multiversx/sdk-dapp-ui not found"+e)}}export{i as a,r as b};
|
|
2
|
+
//# sourceMappingURL=chunk-NEZI3IWF.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{d as s}from"./chunk-JJUBN3OG.mjs";import{a as u}from"./chunk-Y5ERFLZ5.mjs";import{s as c}from"./chunk-PFYTYBW3.mjs";import{b as d}from"./chunk-SAAOQW7P.mjs";import{a as v}from"./chunk-ZVIKYGX5.mjs";import{a}from"./chunk-ZONHCECO.mjs";var i=class i extends u{constructor(){super({uiTag:"mvx-unlock-panel",uiDataUpdateEvent:"OPEN"});this.initialData={providers:null,walletAddress:null};this.openUnlockPanel=async()=>{let{walletAddress:e}=d(c());this.data={providers:this.getProvidersList(),walletAddress:e},await this.openUI(),this.notifyDataUpdate()};this.setupEventListeners=async()=>{this.eventBus&&(this.subscribeToEventBus("LOGIN",this.handleLogin),this.subscribeToEventBus("CANCEL_LOGIN",this.handleCancelLogin),this.subscribeToEventBus("CLOSE",this.handleCloseUI))};this.handleCloseUI=async e=>{!e?.isLoginFinished&&i.onClose&&i.onClose(),this.closeUI()};this.handleLogin=async({type:e,anchor:o})=>{if(!i.loginHandler)throw new Error("Login callback not initialized. Please call `init()` first.");try{this.isSimpleLoginCallback(i.loginHandler)?(await(await s.create({type:e,anchor:o})).login(),i.loginHandler()):i.loginHandler({type:e,anchor:o}),await this.handleCloseUI({isLoginFinished:!0})}catch(t){console.error(t),this.eventBus?.publish("CANCEL_IN_PROVIDER",this.data)}};this.handleCancelLogin=async()=>{await s.destroy()};this.isSimpleLoginCallback=e=>e.length===0;this.data=this.initialData}static getInstance(){return i.instance||(i.instance=new i),i.instance}static init(e){return this.loginHandler=e.loginHandler,this.allowedProviders=e.allowedProviders,e.onClose&&(this.onClose=e.onClose),this.getInstance()}getProvidersList(){let e=s.customProviders,t=[...Object.values(a).filter(n=>![a.none,a.webview].includes(n)),...e.map(n=>n.type)],P=e.reduce((n,r)=>(n[r.type]=r.name,n),{}),l={...v,...P};return(i.allowedProviders?i?.allowedProviders.filter(n=>t.includes(n)):t).map(n=>{let r=e.find(g=>g.type===n);return r||{name:n in l?l[n]:n,type:n}})}};i.loginHandler=null,i.onClose=null,i.allowedProviders=null;var p=i;export{p as a};
|
|
2
|
+
//# sourceMappingURL=chunk-NKBWNOLA.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-OJ4UPDFE.mjs";var n=class t extends e{constructor(){super({uiDataUpdateEvent:"DATA_UPDATE",uiTag:"mvx-wallet-connect"});this.initialData={wcURI:"",walletConnectDeepLink:""};this.data={...this.initialData}}static getInstance(){return t.instance||(t.instance=new t),t.instance}handleClose(a){a?.isLoginFinished||(this.anchor?this.anchor.dispatchEvent(new CustomEvent("ANCHOR_CLOSE",{composed:!1,bubbles:!1})):this.destroy())}async setupEventListeners(){this.eventBus&&(this.eventBus.subscribe("CLOSE",this.handleClose.bind(this)),this.eventBus.subscribe("UI_DISCONNECTED",this.destroy.bind(this)))}};export{n as a};
|
|
2
|
+
//# sourceMappingURL=chunk-NQXLA34W.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as t}from"./chunk-ASZPRMFV.mjs";import{c as n}from"./chunk-PFYTYBW3.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-OA5MR4Y6.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-W32KHY5V.mjs";var i=async a=>{let r=a.map(s=>s.hash),n=await e(r);return a.map(s=>{let t=n.find(o=>o?.txHash===s.hash);return{...s,status:t?.status,invalidTransaction:t==null,results:t?.results??[],previousStatus:s.status?.toString()||"",hasStatusChanged:!!(t&&t.status!==s.status)}})};export{i as a};
|
|
2
|
+
//# sourceMappingURL=chunk-OIEDIWGP.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-GMOPF52N.mjs";var a=class{constructor({uiDataUpdateEvent:t,uiTag:e}){this.eventBus=null;this.uiElement=null;this.isCreatingElement=!1;this.unsubscribeFunctions=new Map;this.uiDataUpdateEvent=t,this.uiTag=e,this.data=this.getInitialData()}async init(t){this.anchor=t,await this.createUIElement(t),await this.setupEventListeners()}updateData(t){this.data={...this.data,...t},this.notifyDataUpdate()}subscribeToEventBus(t,e){if(!this.eventBus)throw new Error("eventBus is not initialized");let i=this.eventBus?.subscribe(t,e);if(i){let n=this.unsubscribeFunctions.get(t)||[];n.push(i),this.unsubscribeFunctions.set(t,n)}}notifyDataUpdate(){this.eventBus?.publish(this.uiDataUpdateEvent,this.data)}destroy(){this.unsubscribeFunctions.forEach(t=>t.forEach(e=>e())),this.unsubscribeFunctions.clear(),this.eventBus=null,this.uiElement?.remove?.(),this.uiElement=null}getInitialData(){return this.initialData}resetData(){this.data=this.getInitialData()}async createUIElement(t=this.anchor){if(this.isCreatingElement||this.uiElement)return this.uiElement;if(this.isCreatingElement=!0,this.uiElement=await s.create({name:this.uiTag,anchor:t}),this.isCreatingElement=!1,!this.uiElement)throw new Error(`Failed to create ${this.uiTag} element`);if(this.eventBus||(this.eventBus=await this.uiElement.getEventBus()),!this.eventBus)throw new Error("eventBus is not initialized");return this.uiElement}};export{a};
|
|
2
|
+
//# sourceMappingURL=chunk-OJ4UPDFE.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as l}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as l}from"./chunk-KAGEHYS4.mjs";import{a as c}from"./chunk-I3MK6KZJ.mjs";var f=async({receiver:n,sender:i,tokenId:s})=>{let t=null,r=null;if(!s)return{senderLockedAccount:t,receiverLockedAccount:r};try{let o=(await l({tokenId:s}))?.assets?.lockedAccounts;if(!o)return{senderLockedAccount:t,receiverLockedAccount:r};for(let e in o)if(c(e)&&(i===e&&(t=e),n===e&&(r=e)),c(o[e])&&(i===o[e]&&(t=o[e]),n===o[e]&&(r=o[e])),t&&r)return{senderLockedAccount:t,receiverLockedAccount:r}}catch(a){console.error("Error getting token details",a)}return{senderLockedAccount:t,receiverLockedAccount:r}};export{f as a};
|
|
2
|
+
//# sourceMappingURL=chunk-OLSMED5W.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as g}from"./chunk-3S57OP4Z.mjs";import{a as l}from"./chunk-QTKK6OSJ.mjs";import{a as h}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as g}from"./chunk-3S57OP4Z.mjs";import{a as l}from"./chunk-QTKK6OSJ.mjs";import{a as h}from"./chunk-MXW4MATE.mjs";import{NativeAuthClient as y}from"@multiversx/sdk-native-auth-client";var H=f=>{let{origin:o,apiAddress:i,expirySeconds:r,blockHashShard:s,extraInfo:u,gatewayUrl:d,extraRequestHeaders:k}=h(f),e=new y({origin:o,apiUrl:i,expirySeconds:r,blockHashShard:s,gatewayUrl:d,extraRequestHeaders:k});return{initialize:async t=>{if(!i||!o)return"";let a=()=>e.getCurrentBlockHash(),n=t?.latestBlockInfo;n??=await g({apiAddress:i,blockHashShard:s,getBlockHash:a,noCache:t?.noCache});let{hash:p,timestamp:c}=n,m=e.encodeValue(JSON.stringify({...t?.extraInfo??u,...c?{timestamp:c}:{}}));return`${e.encodeValue(o)}.${p}.${r}.${m}`},getToken:({address:t,token:a,signature:n})=>e.getToken(t,a,n),getTokenExpiration:l}};export{H as a};
|
|
2
|
+
//# sourceMappingURL=chunk-OYMPU3D4.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as s,f as a}from"./chunk-UERJ6AKK.mjs";import{f as p}from"./chunk-VNLGNNIL.mjs";import{a as d,b as L}from"./chunk-NLRDRI7Q.mjs";import{a as k}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as s,f as a}from"./chunk-UERJ6AKK.mjs";import{f as p}from"./chunk-VNLGNNIL.mjs";import{a as d,b as L}from"./chunk-NLRDRI7Q.mjs";import{a as k}from"./chunk-HVNTW6GO.mjs";import{a as v}from"./chunk-KRWR77QE.mjs";import{b as y}from"./chunk-A7FTKX2A.mjs";import{a as c,b as g}from"./chunk-WZGG2YKQ.mjs";import{a as m,b as f}from"./chunk-M7BM6QPB.mjs";import{a as T}from"./chunk-CYCS3K6Q.mjs";import{a as S,b as u}from"./chunk-VKEESSBI.mjs";import{a as x}from"./chunk-2DNGCNYM.mjs";import{a as I}from"./chunk-NB7A4C7L.mjs";import{c as l}from"./chunk-NTEMINYA.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=c,e.loginInfo=m,e.transactions=d,e.toasts=S};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=a(e),n=p(e),{address:i,publicKey:M}=s(e);if(i&&M!==new l(i).toHex()&&A(e),!t)return;if(n==null){w(H());return}let P=Date.now();n-P<0&&(w(null),o().setState(A))};var z=(e,t)=>{C(e)};var W=e=>{let t=J(V(h(N((...n)=>({network:x(...n),account:g(...n),loginInfo:f(...n),config:T(...n),transactions:L(...n),toasts:u(...n),cache:y(...n),ui:I(...n)})),{name:"sdk-dapp-store",storage:O(e)})));return t.subscribe(z),t},r,D=e=>{r=e},o=()=>(r||D(W(()=>new v)),r),pe=(e=k)=>{let t=W(e);return D(t),t},le=()=>o().getState();var me=e=>o().setState(({loginInfo:t})=>{t.providerType=e},!1,"setProviderType"),fe=e=>o().setState(({loginInfo:t})=>{t.tokenLogin=e},!1,"setTokenLogin"),Se=e=>o().setState(({loginInfo:t})=>{if(t.tokenLogin!=null){t.tokenLogin.loginToken=e;return}t.tokenLogin={loginToken:e}},!1,"setLoginToken"),ue=e=>o().setState(({loginInfo:t})=>{t?.tokenLogin!=null&&(t.tokenLogin.signature=e)},!1,"setTokenLoginSignature"),de=e=>o().setState(({loginInfo:t})=>{t.walletConnectLogin=e},!1,"setWalletConnectLogin"),Le=e=>o().setState(({loginInfo:t})=>{t.ledgerLogin=e},!1,"setLedgerLogin"),xe=e=>o().setState(({loginInfo:t})=>{t.isWalletConnectV2Initialized=e},!1,"setIsWalletConnectV2Initialized"),E=()=>o().setState(({loginInfo:e})=>{e.loginExpiresAt=null},!1,"removeLoginExpiresAt"),b=e=>o().setState(({loginInfo:t})=>{t.loginExpiresAt=e},!1,"addLoginExpiresAt");export{me as a,fe as b,Se as c,ue as d,de as e,Le as f,xe as g,E as h,b as i,A as j,H as k,w as l,C as m,z as n,W as o,D as p,o as q,pe as r,le as s};
|
|
2
|
+
//# sourceMappingURL=chunk-PFYTYBW3.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as w}from"./chunk-QXC4D3AC.mjs";import{a as g}from"./chunk-YGI3KXMZ.mjs";import{a as b}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as w}from"./chunk-QXC4D3AC.mjs";import{a as g}from"./chunk-YGI3KXMZ.mjs";import{a as b}from"./chunk-OKTLLLTC.mjs";import{a as m}from"./chunk-NZYB675D.mjs";import{f}from"./chunk-PJWJZHIS.mjs";import x from"bignumber.js";var F=async({manager:e,provider:d})=>{if(!e||!d)throw new Error("Provider is not initialized.");let{network:u}=b(),s=e.getAccountScreenData()?.startIndex||0,r=e.getAllAccounts(),a=await w({baseURL:u.apiAddress}),l=o=>o.index>=s&&o.index<s+e.addressesPerPage,I=r.reduce((o,n)=>Object.assign(o,{[n.index]:n}),{}),A=r.filter(l),y=!!I[s];if(e.updateAccountScreen({isLoading:!y}),A.length>0){e.updateAccountScreen({accounts:A});return}try{let o=Math.floor(s/e.addressesPerPage),n=await d.getAccounts(o,e.addressesPerPage),L=n.map((t,c)=>({address:t,balance:"...",index:c+s})),P=[...r,...L],h=n.map(t=>m({address:t,baseURL:u.apiAddress})),j=await Promise.all(h),i=P.reduce((t,c)=>Object.assign(t,{[c.address]:c}),{});j.forEach(t=>{if(!t||!a||!a.price)return;let c=new x(t.balance),S=c.dividedBy(x(10).pow(18)).toFormat(4).toString();if(c.isNaN())return;let U=g({amount:f({input:t.balance}),usd:a?.price});i[t.address].balance=S,i[t.address].usdValue=U});let p=Object.values(i).sort((t,c)=>t.index-c.index),O=p.filter(l);e.updateAllAccounts(p),e.updateAccountScreen({accounts:O,isLoading:!1})}catch(o){console.error("Failed to fetch accounts:",o)}};export{F as a};
|
|
2
|
+
//# sourceMappingURL=chunk-QZ6GNARF.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as n}from"./chunk-W3Y4J4D3.mjs";import{b as r}from"./chunk-SEBWQEIV.mjs";import{s as i}from"./chunk-PFYTYBW3.mjs";import{b as o}from"./chunk-SAAOQW7P.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=o(i());(!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-R2DIXNM2.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-Y5ERFLZ5.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-R4CE7CDZ.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-O7LCTC4K.mjs";import{s as m}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-O7LCTC4K.mjs";import{s as m}from"./chunk-PFYTYBW3.mjs";import{b as a}from"./chunk-SAAOQW7P.mjs";import{o as r,u as i}from"./chunk-KD2IQ32V.mjs";import{a as c}from"./chunk-3FXHIV6O.mjs";async function b({tokenId:o}){let t=a(m()),{isNft:k}=c(o),n=o,p=k?r:i;if(!n)return{tokenDecimals:Number(t.decimals),tokenLabel:"",tokenAvatar:""};try{let{data:e}=await s.get(`${t.apiAddress}/${p}/${n}`),f=e?e?.decimals:Number(t.decimals),l=e?e?.name:"",d=e?e?.assets?.svgUrl??e?.media?.[0]?.thumbnailUrl:"";return{tokenDecimals:f,tokenLabel:l,type:e?.type,tokenAvatar:d,identifier:e?.identifier,assets:e?.assets,esdtPrice:e?.price,ticker:e?.ticker,name:e?.name}}catch(e){return{error:`Error fetching token ${n}: ${e.toString()}`,tokenDecimals:Number(t.decimals),tokenLabel:"",tokenAvatar:"",identifier:n}}}export{b as a};
|
|
2
|
+
//# sourceMappingURL=chunk-R5VO5NAQ.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as I}from"./chunk-3MW2H273.mjs";import{a as l}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as I}from"./chunk-3MW2H273.mjs";import{a as l}from"./chunk-DQ4VYTW5.mjs";import{a as u}from"./chunk-IIUIUPNC.mjs";import{j as m,k as p,l as d,n as f}from"./chunk-65L5EBBL.mjs";import{a as T}from"./chunk-YI4TACNU.mjs";var z=async({toastList:g,transactionsSessions:S,account:o,existingCompletedTransactions:y=[],skipFetchingTransactions:F=!1})=>{let n=[],a=[...y],e=l(),C=u();for(let t of g.transactionToasts){let r=S[t.toastId];if(!r?.status)continue;let{status:s,transactions:P,transactionsDisplayInfo:x}=r,A=await T({transactions:P,address:o.address,explorerAddress:e,egldLabel:C,skipFetchingTransactions:F}),E=f(s),L=d(s),b=p(s),i=E||L||b,h=m(s),{startTime:v,endTime:R}=t;if(i&&a.some(O=>O.toastId===t.toastId))continue;let c=I({toastId:t.toastId,address:o.address,status:s,transactions:A,transactionsDisplayInfo:x,explorerAddress:e,startTime:v,endTime:R});i&&a.push(c),h&&n.push(c)}return{pendingTransactionToasts:n,completedTransactionToasts:a}};export{z as a};
|
|
2
|
+
//# sourceMappingURL=chunk-REID2WXN.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-ZONHCECO.mjs";var o=s=>`Unable to perform ${s}, Provider not initialized`,e=class{init(){return Promise.resolve(!1)}login(n){throw new Error(o(`login with options: ${n}`))}logout(n){throw new Error(o(`logout with options: ${n}`))}getAccount(){throw new Error(o("unable to get account"))}setAccount(n){throw new Error(o(`unable to set account with: ${n}`))}isInitialized(){return!1}isConnected(){return!1}sendTransaction(n,r){throw new Error(o(`sendTransaction with transactions: ${n} options: ${r}`))}signTransaction(n,r){throw new Error(o(`signTransaction with transactions: ${JSON.stringify(n)} options: ${r}`))}signTransactions(n){throw new Error(o(`signTransactions with transactions: ${JSON.stringify(n)}`))}signMessage(n,r){throw new Error(o(`signMessage with ${n} and options ${r}`))}sendCustomMessage({method:n,params:r}){throw new Error(o(`sendCustomMessage with method: ${n} params: ${r}`))}sendCustomRequest(n){throw new Error(o(`sendSessionEvent with options: ${n}`))}async getAddress(){throw new Error(o("getAddress"))}getType(){return t.none}},c=new e;export{e as a,c as b};
|
|
2
|
+
//# sourceMappingURL=chunk-S6NHNEQK.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as o}from"./chunk-WOJOOCI6.mjs";var i=String(o?.navigator?.userAgent),t=/^((?!chrome|android).)*safari/i.test(i),r=/firefox/i.test(i)&&/windows/i.test(i),n=t||r;export{t as a,n as b};
|
|
2
|
+
//# sourceMappingURL=chunk-SBMC65W6.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as w}from"./chunk-YK7T6MBD.mjs";import{a as l}from"./chunk-KMJMQEXI.mjs";import{q as u}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as w}from"./chunk-YK7T6MBD.mjs";import{a as l}from"./chunk-KMJMQEXI.mjs";import{q as u}from"./chunk-PFYTYBW3.mjs";import{a as c}from"./chunk-SQVKVA7X.mjs";import{a as i}from"./chunk-ULUZWP2P.mjs";var e=o=>u().setState(({network:r})=>{r.network={...r.network,...o}},!1,"initializeNetworkConfig");var y=async({customNetworkConfig:o={},environment:r})=>{let d=!o?.skipFetchFromServer,g=o?.apiAddress,n=r&&r in i,p=n?i[r]:{},s={...c,...p,...o},t={...s,apiTimeout:String(s.apiTimeout)},N=p?.apiAddress;if(!n&&d){let a=g||N,m=await w(a),f=t.roundDuration?null:await l(a);if(f!=null&&(t.roundDuration=f.erd_round_duration),m!=null){let k={...t,...m,...o};return e(k),k}}return e(t),t};export{y as a,e as b};
|
|
2
|
+
//# sourceMappingURL=chunk-SEBWQEIV.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as Et}from"./chunk-OMZ6A4DO.mjs";import{a as gt}from"./chunk-CTITNRKA.mjs";import{a as It}from"./chunk-6UZHM5LW.mjs";import{a as k}from"./chunk-VNMU246H.mjs";import{a as xt}from"./chunk-ZHGONRBM.mjs";import{a as wt}from"./chunk-3JEK5A62.mjs";import{a as At}from"./chunk-QB4NUTLA.mjs";import{a as Lt}from"./chunk-O6RJHMIJ.mjs";import{a as y}from"./chunk-KDWLSBQB.mjs";import{a as Ct}from"./chunk-MFUQ5NBC.mjs";import{a as Rt}from"./chunk-4ODPAHHA.mjs";import{a as Ot}from"./chunk-PGGSHHQJ.mjs";import{b as F}from"./chunk-BKVZCTUG.mjs";import{a as kt}from"./chunk-7Z665D57.mjs";import{a as Pt}from"./chunk-MDVI45IV.mjs";import{a as Ft}from"./chunk-4G2T73DC.mjs";import{a as S}from"./chunk-IYVM5B26.mjs";import{a as ut}from"./chunk-O72VJVJC.mjs";import{a as yt}from"./chunk-JV4IJH7L.mjs";import{a as x}from"./chunk-IV4LWBR3.mjs";import{a as O,f as bt}from"./chunk-HEA7NFOF.mjs";import{b as f,c as q,d as vt}from"./chunk-C3Y3ANFE.mjs";import{k as ft,l as N,n as ht}from"./chunk-65L5EBBL.mjs";import{b as Nt}from"./chunk-TASSEE6N.mjs";import{a as P}from"./chunk-HORSXVIV.mjs";import{a as Mt}from"./chunk-SYWFZFFJ.mjs";import{a as ct}from"./chunk-SBOOJTIB.mjs";import{a as L}from"./chunk-QTKK6OSJ.mjs";import{a as rt}from"./chunk-6ACLOUQ3.mjs";import{a as A}from"./chunk-NZYB675D.mjs";import{a as at}from"./chunk-YSCND2MX.mjs";import{a as Dt}from"./chunk-NJN53MJV.mjs";import{a as lt,b as pt,g as Tt,l as dt}from"./chunk-2IUBMLF4.mjs";import{b as mt}from"./chunk-TQA3JDNV.mjs";import{a as nt,b as it,q as u,s as E}from"./chunk-4LTMFD6V.mjs";import{c as Q,d as X,f as tt}from"./chunk-UERJ6AKK.mjs";import{b as v}from"./chunk-VNLGNNIL.mjs";import{b}from"./chunk-6JM4DPOH.mjs";import{b as st,c as et,f as ot}from"./chunk-NTEMINYA.mjs";import{b as Bt}from"./chunk-UCRVRBTA.mjs";import{a as St}from"./chunk-OPX7XWAC.mjs";import{c as w}from"./chunk-IGTIIBN6.mjs";import{b as z}from"./chunk-GGBMHKR4.mjs";import{a as C}from"./chunk-LJX4MW7B.mjs";import Vt from"lodash.isequal";import J from"lodash.isequal";import V from"bignumber.js";var M=class o{constructor(){this.store=u();this.warningLogoutTimeoutRef=null;this.actualLogoutTimeoutRef=null;this.plannedLogoutTimeoutRef=null;this.plannedLogoutKey=null;this.init=async()=>{if(!this.shouldStart())return;let t=this.store.getState(),s=v(t),{isExpired:e}=L(s?.nativeAuthToken);e?I().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 t=this.store.getState(),s=v(t),e=tt(t);return!!(s?.nativeAuthToken&&e)};this.addPlannedLogout=()=>{let t=I(),s=Q(this.store.getState()),e=t.getType()===C.webview;if(!s||e)return;this.addLogoutWarning();let n=v(this.store.getState()),{secondsUntilExpires:i,expiresAt:r}=L(n?.nativeAuthToken),c=new V(String(i)),a=`${s}_${r}`,m=this.plannedLogoutKey===a;if(!(i&&c.isGreaterThan(0))||m)return;this.plannedLogoutKey=a,clearTimeout(this.plannedLogoutTimeoutRef??0);let T=c.times(1e3);this.actualLogoutTimeoutRef=setTimeout(()=>{d.getInstance().createCustomToast({toastId:"native-auth-logout",iconClassName:"warning",title:"Logging out",icon:"times",message:"Your session has expired!"}),this.actualLogoutTimeoutRef=null},T.toNumber()-3e3),this.plannedLogoutTimeoutRef=setTimeout(()=>{t.logout(),this.plannedLogoutTimeoutRef=null,this.plannedLogoutKey=null},T.toNumber())};this.addLogoutWarning=()=>{if(this.warningLogoutTimeoutRef)return;let t=b(this.store.getState()),s=v(this.store.getState()),{secondsUntilExpires:e}=L(s?.nativeAuthToken),n=new V(String(e)),i=n.times(1e3);if(!e||n.isLessThanOrEqualTo(0)||!t?.tokenExpirationToastWarningSeconds)return;let c=new V(t?.tokenExpirationToastWarningSeconds??0).times(1e3),a=n.times(1e3).minus(c),m=It(i.toNumber()),l=a.isLessThanOrEqualTo(0)?0:a.toNumber();clearTimeout(this.warningLogoutTimeoutRef??0),this.warningLogoutTimeoutRef=setTimeout(()=>{d.getInstance().createCustomToast({toastId:"native-auth-expired",iconClassName:"warning",title:"Session Expiration Warning",icon:"hourglass",message:`Your session will expire in ${m}!`}),this.warningLogoutTimeoutRef=null},l)}}static getInstance(){return o.instance||(o.instance=new o),o.instance}};var R={};async function Zt({serverTransaction:o,sessionId:t,isSequential:s}){let{hash:e,status:n,results:i,invalidTransaction:r,hasStatusChanged:c}=o;try{if(R[e]>30){f({sessionId:t,status:"timedOut"}),await y({sessionId:t,status:"timedOut"});return}if(r&&!s||n==="sent"){R[e]=R[e]?R[e]+1:1;return}if(s&&!n){let m=q({sessionId:t,transaction:o});await y({sessionId:t,status:m});return}if(c){let m=q({sessionId:t,transaction:o});await y({sessionId:t,status:m})}N(n)&&await Lt({sessionId:t,hash:e,results:i})}catch(a){console.error(a),f({sessionId:t,status:"timedOut"}),await y({sessionId:t,status:"timedOut"})}}async function Ut({sessionId:o,transactionBatch:t,isSequential:s}){try{if(t==null)return;let e=wt(),n=Ct(t),i=await Et(n);for(let p of i)await Zt({serverTransaction:p,sessionId:o,isSequential:s});if(!i.every(p=>p.status!=="pending"))return;e&&await B();let{transactions:c}=u().getState(),a=c[o];if(a.transactions.every(p=>p.status==="success"))return f({sessionId:o,status:"success"});if(a.transactions.some(p=>p.status==="fail"))return f({sessionId:o,status:"fail"});if(a.transactions.every(p=>p.status==="not executed"))return f({sessionId:o,status:"invalid"})}catch(e){console.error(e)}}async function _t(){let o=mt(E());if(Object.keys(o).length>0)for(let[t,{transactions:s}]of Object.entries(o))await Ut({sessionId:t,transactionBatch:s})}async function D(){let o=u(),t=At(),s=null,e=null,n=X(o.getState())?.timestamp,i=()=>{_t()},r=()=>{s??=setInterval(i,t)},c=()=>{s&&(clearInterval(s),s=null)},a=()=>{c();let p=o.subscribe(({account:{websocketEvent:g}})=>{g?.message&&n!==g.timestamp&&(n=g.timestamp,i())});w.set("websocketEventReceived",p)},m=()=>{z.status!=="not_initialized"||e||(e=setInterval(()=>{z.status==="completed"&&(clearInterval(e),e=null,a())},1e3))};i();let l=()=>{c(),e&&(clearInterval(e),e=null)},T=o.subscribe(({account:{address:p},config:{websocketStatus:g}},jt)=>{if(jt.config.websocketStatus!==g)switch(g){case"completed":a();break;case"pending":r(),m();break;default:p?r():l();break}});return w.set("websocketStatusChanged",T),w.set("websocketEventReceived",l),{stopTransactionsTracking:l}}async function j({address:o,provider:t,apiAddress:s}){let e=await A({address:o,baseURL:s});if(!e)throw new Error("Account not found");Nt({address:o,providerType:t.getType()});let n={...e,username:P(e.username),nonce:x(e)};O(n),await F(o),D(),e.shard!=null&&await xt({shard:Number(e.shard),apiAddress:s})}async function Jt(o){let{network:{apiAddress:t}}=S();await o.login();let s=await o.getAddress();if(!s)throw new Error("Address not found");return await j({address:s,provider:o,apiAddress:t}),{address:s}}async function Qt({provider:o,nativeAuthConfig:t,token:s}){let{network:{apiAddress:e}}=S(),n=ct(t),i=s;i||(i=await n.initialize({noCache:!0}));let{address:r,signature:c,...a}=await o.login({token:i});if(!r)return console.warn("Login cancelled."),null;if(!c)return console.error("Failed to sign login token"),null;let l=rt(a?.accessToken)?a.accessToken:n.getToken({address:r,token:i,signature:c});it({loginToken:i,signature:c,nativeAuthToken:l});let T=await kt({loginToken:i,extraInfoData:{multisig:a?.multisig,impersonate:a?.impersonate},address:r});return await j({address:T,provider:o,apiAddress:e}),{address:T,signature:c}}async function Wt(o,t){let s=b(E());if(s)return await Qt({provider:o,nativeAuthConfig:s,token:t?.token});let{address:e}=await Jt(o);return await F(e),D(),{address:e,signature:""}}var Y={error:{title:"Error when signing".toString(),iconClassName:"danger",toastId:`${pt}-${Date.now()}`},warning:{title:"Signing canceled".toString(),iconClassName:"warning",toastId:`${lt}-${Date.now()}`}},Xt={extensionResponse:"Unable to sign transactions","Transaction canceled":"Transaction canceled","cancelled by user":"Transaction signing cancelled by user","denied by the user":"Transaction signing denied by the user"},ts=o=>{for(let[t,s]of Object.entries(Xt))if(o.includes(t))return s;return"Error when signing"};function Z(o,t="error"){let s=o?.message,e=ts(s),i=e!=="Error when signing"?"warning":t,r=Object.keys(Y).includes(i)?Y[i]:Y.error,{toastId:c,iconClassName:a,title:m}=r;return U({toastId:c,duration:1e4,icon:"times",iconClassName:a,message:e,title:m}),e}async function Ht({provider:o,transactions:t,options:s={}}){await B();let{isGuarded:e,activeGuardianAddress:n,nonce:i}=Mt(),r=o.getType()===C.ledger,c=Rt({latestNonce:i,transactions:t}),a=n&&e&&!s.skipGuardian?c?.map(l=>(l.version=st.withTxOptions().valueOf(),l.options=ot.withOptions({guarded:!0,...r?{hashSign:!0}:{}}).valueOf(),l.guardian=et.newFromBech32(n),l)):c,m=await o.signTransactions(a)??[];return bt(i+m.length),m}var _=class{constructor(t){this._isLoggingOut=!1;this.provider=t}init(){return this.provider.init()}async login(t){let s=await Wt(this.provider,t);return nt(this.provider.getType()),Gt(this),M.getInstance().init(),s}isInitialized(){return this.provider.isInitialized()}async logout(t={shouldBroadcastLogoutAcrossTabs:!0}){if(this._isLoggingOut)return console.warn("Logout already in progress"),!1;this._isLoggingOut=!0;let s=await Ot({provider:this.provider,options:t});return this._isLoggingOut=!1,s}getType(){return this.provider.getType()}getProvider(){return this.provider}async signTransactions(t,s){try{return await Ht({provider:this.provider,transactions:t,options:s})}catch(e){let n=Z(e);throw new Error(n)}}async signMessage(t,s){try{return await Ft({provider:this.provider,message:t,options:s})}catch(e){let n=Z(e,"warning");throw new Error(n)}}async verifyMessage(t){return await Pt(t)}cancelLogin(){this.provider.cancelLogin?.()}};var $t=null;function Gt(o){$t=o}function I(){return $t||new _(Bt)}var ss=async()=>{try{let o=ut(),{network:t}=S();try{let s=await A({address:o,baseURL:t.apiAddress});if(s!=null){let e={...s,username:P(s.username),nonce:x(s)};return O(e),e}}catch(s){console.error("Failed getting account ",s)}}catch(o){console.error("Failed getting address ",o)}return null};async function B(){let o=I();if(o==null)throw"Provider not initialized";try{if(!o.init)throw"Current provider does not have init() function";return await o.init()?await ss():void 0}catch(t){console.error("Failed initializing provider ",t)}}var W={},h={},es=(o,t)=>{u().setState(({toasts:s})=>{let e=s.customToasts.length>0?Math.max(...s.customToasts.map(a=>parseInt(a.toastId.split("-").pop()??"0"))):0,n=t??`custom-toast-${e+1}`,i=s.customToasts.findIndex(a=>a.toastId===n),r={...o,toastId:n};if(i!==-1){s.customToasts[i]=r;return}s.customToasts.push({...r,toastId:n})},!1,"addCustomToast")},H=o=>{u().setState(({toasts:t})=>{t.customToasts=t.customToasts.filter(s=>s.toastId!==o)},!1,"removeCustomToast")},Kt=()=>{u().setState(({toasts:o})=>{o.customToasts=[]},!1,"removeAllCustomToasts")},No=()=>{u().setState(({toasts:o})=>{o.transactionToasts=[]})},zt=({toastId:o,totalDuration:t})=>{let s="";return u().setState(({toasts:e})=>{let n=e.transactionToasts.length>0?Math.max(...e.transactionToasts.map(i=>parseInt(i.toastId.split("-").pop()??"0"))):0;s=o??`transaction-toast-${n+1}`,e.transactionToasts.push({startTime:at(),endTime:Dt(t),toastId:s})},!1,"addTransactionToast"),s},G=o=>{u().setState(({toasts:t})=>{t.transactionToasts=t.transactionToasts.filter(s=>s.toastId!==o)},!1,"removeTransactionToast"),delete h[o],delete W[o]},U=o=>{let{toasts:t}=u().getState(),s=t.customToasts.length>0?Math.max(...t.customToasts.map(n=>parseInt(n.toastId.split("-").pop()??"0"))):0,e=o.toastId||`custom-toast-${s+1}`;return o.onClose&&(h[e]=o.onClose),o.instantiateToastElement?(W[e]=o.instantiateToastElement,u().setState(({toasts:n})=>{let i=n.customToasts.findIndex(a=>a.toastId===e),r={...o,instantiateToastElement:null,toastId:e};i!==-1?n.customToasts[i]=r:n.customToasts.push(r)},!1,"createCustomToast"),e):(es(o,e),e)};var qt=1e4,$=class{constructor(){this.timeoutIntervals=new Map;this.successfulToastLifetime=qt;this.start=t=>{if(this.stop(t),this.successfulToastLifetime<=0)return;let s=setTimeout(()=>{G(t)},this.successfulToastLifetime);this.timeoutIntervals.set(t,s)};this.startWithCustomDuration=(t,s)=>{if(this.stop(t),s<=0)return;let e=setTimeout(()=>{H(t);let n=h[t];n?.()},s);this.timeoutIntervals.set(t,e)};this.stop=t=>{let s=this.timeoutIntervals.get(t);s&&(clearTimeout(s),this.timeoutIntervals.delete(t))}}init({successfulToastLifetime:t}){this.successfulToastLifetime=t||qt}destroy(){this.timeoutIntervals.forEach(t=>clearTimeout(t)),this.timeoutIntervals.clear()}};var d=class o{constructor(){this.isCreatingElement=!1;this.toastsElement=null;this.transactionToasts=[];this.customToasts=[];this.storeToastsSubscription=()=>null;this.eventBusUnsubscribeFunctions=[];this.eventBus=null;this.store=u();this.destroy(),this.lifetimeManager=new $,this.notificationsFeedManager=K.getInstance()}async init({successfulToastLifetime:t=5e3}={}){this.successfulToastLifetime=t,this.lifetimeManager.init({successfulToastLifetime:t}),await this.updateTransactionToastsList(),await this.updateCustomToastList(),await this.subscribeToEventBusNotifications(),this.storeToastsSubscription=this.store.subscribe(async({toasts:s,transactions:e},{toasts:n,transactions:i})=>{let r=!J(n.transactionToasts,s.transactionToasts),c=!J(i,e);(r||c)&&await this.updateTransactionToastsList({skipFetchingTransactions:c}),!J(n.customToasts,s.customToasts)&&await this.updateCustomToastList()})}static getInstance(){return o.instance||(o.instance=new o),o.instance}handleCompletedTransaction(t){let{transactions:s}=this.store.getState(),e=s[t];if(!e)return!1;let{status:n}=e,i=ht(n),r=N(n),c=ft(n),a=r||c||i;return a?(this.successfulToastLifetime&&this.lifetimeManager.start(t),a):(this.lifetimeManager.stop(t),a)}async createTransactionToast(t,s){let e=zt({toastId:t,totalDuration:s});return this.handleCompletedTransaction(t),await this.updateTransactionToastsList(),e}createCustomToast(t){let s=U(t);return this.updateCustomToastList(),s}async updateTransactionToastsList(t){let{toasts:s,transactions:e,account:n}=this.store.getState(),{pendingTransactionToasts:i,completedTransactionToasts:r}=await k({toastList:s,transactionsSessions:e,account:n,skipFetchingTransactions:t?.skipFetchingTransactions});this.transactionToasts=[...i,...r];for(let c of s.transactionToasts)this.handleCompletedTransaction(c.toastId);await this.publishTransactionToasts()}async updateCustomToastList(){let{toasts:t}=this.store.getState();this.customToasts=[];for(let s of t.customToasts){let n="message"in s?{...s}:{...s,instantiateToastElement:W[s.toastId]};this.customToasts.push(n),s.duration&&this.lifetimeManager.startWithCustomDuration(s.toastId,s.duration)}this.eventBus?.publish("CUSTOM_TOAST_DATA_UPDATE",this.customToasts)}async createToastListElement(){return this.toastsElement?this.toastsElement:(this.isCreatingElement||(this.isCreatingElement=!0,this.toastsElement=await St.create({name:"mvx-toast-list"}),this.isCreatingElement=!1),this.toastsElement)}handleTransactionToastClose(t){this.handleCompletedTransaction(t)&&G(t)}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.closeToast.bind(this)),this.eventBusUnsubscribeFunctions.push(()=>{this.eventBus?.unsubscribe("CLOSE_TOAST",this.closeToast.bind(this))}),this.eventBus.subscribe("OPEN_NOTIFICATIONS_FEED",this.handleOpenNotificationsFeed.bind(this)),this.eventBusUnsubscribeFunctions.push(()=>{this.eventBus?.unsubscribe("OPEN_NOTIFICATIONS_FEED",this.handleOpenNotificationsFeed.bind(this))})}}async showToasts(){this.eventBus?.publish("SHOW_TOAST_LIST",null),await this.updateCustomToastList(),await this.updateTransactionToastsList()}hideToasts(){this.eventBus?.publish("HIDE_TOAST_LIST",null)}async handleOpenNotificationsFeed(){this.notificationsFeedManager.openNotificationsFeed()}closeToast(t){if(this.customToasts.find(e=>e.toastId===t)){this.lifetimeManager.stop(t);let e=h[t];e?.(),H(t);return}this.handleTransactionToastClose(t)}async publishTransactionToasts(){if(this.notificationsFeedManager.isNotificationsFeedOpen()&&this.eventBus){this.eventBus.publish("TRANSACTION_TOAST_DATA_UPDATE",this.transactionToasts),this.hideToasts();return}if(!this.eventBus){let t=await this.createToastListElement();if(!t)return;this.eventBus=await t.getEventBus()}this.eventBus.publish("TRANSACTION_TOAST_DATA_UPDATE",this.transactionToasts)}destroy(){this.storeToastsSubscription(),this.lifetimeManager?.destroy(),this.notificationsFeedManager?.destroy(),Kt(),this.eventBusUnsubscribeFunctions.forEach(t=>t()),this.eventBusUnsubscribeFunctions=[]}};var ns="NOTIFICATIONS_FEED_STORE_SUBSCRIBE",K=class o extends yt{constructor(){super({uiDataUpdateEvent:"OPEN_NOTIFICATIONS_FEED",uiTag:"mvx-notifications-feed"});this.store=u();this.initialData={pendingTransactions:[],historicTransactions:[]};this.data={...this.initialData}}static getInstance(){return o.instance||(o.instance=new o),o.instance}isNotificationsFeedOpen(){return this.isOpen}async openNotificationsFeed(){d.getInstance().hideToasts(),await this.openUI(),await this.updateDataAndNotifications();let e=this.store.subscribe(async({toasts:n,transactions:i},{toasts:r,transactions:c})=>{(!Vt(r.transactionToasts,n.transactionToasts)||!Vt(c,i))&&await this.updateDataAndNotifications()});this.unsubscribeFunctions.set(ns,[e]),this.eventBus?.publish("OPEN_NOTIFICATIONS_FEED"),await this.updateDataAndNotifications()}async handleCloseUI(){let s=d.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,account:e,toasts:n,network:i}=this.store.getState(),{pendingTransactionToasts:r}=await k({toastList:n,transactionsSessions:s,account:e});this.data.pendingTransactions=r,this.data.historicTransactions=await gt.getTransactionsHistory({transactionsSessions:s,address:e.address,explorerAddress:i.network.explorerAddress,egldLabel:i.network.egldLabel}),await this.updateNotificationsFeed()}handleClearNotificationsFeedHistory(){vt(),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{K as a,W as b,h as c,es as d,H as e,Kt as f,No as g,zt as h,G as i,U as j,$ as k,d as l,M as m,Ut as n,_t as o,D as p,j as q,Wt as r,Z as s,Ht as t,_ as u,Gt as v,I as w,B as x};
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as Et}from"./chunk-OIEDIWGP.mjs";import{a as gt}from"./chunk-3ASKGOPL.mjs";import{a as It}from"./chunk-6UZHM5LW.mjs";import{a as k}from"./chunk-REID2WXN.mjs";import{a as xt}from"./chunk-R2DIXNM2.mjs";import{a as wt}from"./chunk-ASWAR3QU.mjs";import{a as At}from"./chunk-P5EESGJF.mjs";import{a as Lt}from"./chunk-GFRJNBRK.mjs";import{a as y}from"./chunk-KDWLSBQB.mjs";import{a as Ct}from"./chunk-MFUQ5NBC.mjs";import{a as Rt}from"./chunk-4ODPAHHA.mjs";import{a as Ot}from"./chunk-T3LDKSIQ.mjs";import{b as F}from"./chunk-2V734BC5.mjs";import{a as kt}from"./chunk-OA5MR4Y6.mjs";import{a as Pt}from"./chunk-MDVI45IV.mjs";import{a as Ft}from"./chunk-LB4OQBQA.mjs";import{a as S}from"./chunk-OKTLLLTC.mjs";import{a as ut}from"./chunk-SUSUR4QF.mjs";import{a as yt}from"./chunk-Y5ERFLZ5.mjs";import{a as x}from"./chunk-FQEB6SMB.mjs";import{a as O,f as bt}from"./chunk-MBX42DL3.mjs";import{b as f,c as q,d as vt}from"./chunk-YOE2FKZ6.mjs";import{k as ft,l as N,n as ht}from"./chunk-65L5EBBL.mjs";import{b as Nt}from"./chunk-6XX6ZLRH.mjs";import{a as P}from"./chunk-HORSXVIV.mjs";import{a as Mt}from"./chunk-Q4ZRXII2.mjs";import{a as ct}from"./chunk-OYMPU3D4.mjs";import{a as L}from"./chunk-QTKK6OSJ.mjs";import{a as rt}from"./chunk-6ACLOUQ3.mjs";import{a as A}from"./chunk-NZYB675D.mjs";import{a as at}from"./chunk-YSCND2MX.mjs";import{a as Dt}from"./chunk-NJN53MJV.mjs";import{a as lt,b as pt,g as Tt,l as dt}from"./chunk-2IUBMLF4.mjs";import{b as mt}from"./chunk-TQA3JDNV.mjs";import{a as nt,b as it,q as u,s as E}from"./chunk-PFYTYBW3.mjs";import{c as Q,d as X,f as tt}from"./chunk-UERJ6AKK.mjs";import{b as v}from"./chunk-VNLGNNIL.mjs";import{b}from"./chunk-6JM4DPOH.mjs";import{b as st,c as et,f as ot}from"./chunk-NTEMINYA.mjs";import{b as Bt}from"./chunk-S6NHNEQK.mjs";import{a as St}from"./chunk-GMOPF52N.mjs";import{c as w}from"./chunk-AKWG6QLG.mjs";import{b as z}from"./chunk-GGBMHKR4.mjs";import{a as C}from"./chunk-ZONHCECO.mjs";import Vt from"lodash.isequal";import J from"lodash.isequal";import V from"bignumber.js";var M=class o{constructor(){this.store=u();this.warningLogoutTimeoutRef=null;this.actualLogoutTimeoutRef=null;this.plannedLogoutTimeoutRef=null;this.plannedLogoutKey=null;this.init=async()=>{if(!this.shouldStart())return;let t=this.store.getState(),s=v(t),{isExpired:e}=L(s?.nativeAuthToken);e?I().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 t=this.store.getState(),s=v(t),e=tt(t);return!!(s?.nativeAuthToken&&e)};this.addPlannedLogout=()=>{let t=I(),s=Q(this.store.getState()),e=t.getType()===C.webview;if(!s||e)return;this.addLogoutWarning();let n=v(this.store.getState()),{secondsUntilExpires:i,expiresAt:r}=L(n?.nativeAuthToken),c=new V(String(i)),a=`${s}_${r}`,m=this.plannedLogoutKey===a;if(!(i&&c.isGreaterThan(0))||m)return;this.plannedLogoutKey=a,clearTimeout(this.plannedLogoutTimeoutRef??0);let T=c.times(1e3);this.actualLogoutTimeoutRef=setTimeout(()=>{d.getInstance().createCustomToast({toastId:"native-auth-logout",iconClassName:"warning",title:"Logging out",icon:"times",message:"Your session has expired!"}),this.actualLogoutTimeoutRef=null},T.toNumber()-3e3),this.plannedLogoutTimeoutRef=setTimeout(()=>{t.logout(),this.plannedLogoutTimeoutRef=null,this.plannedLogoutKey=null},T.toNumber())};this.addLogoutWarning=()=>{if(this.warningLogoutTimeoutRef)return;let t=b(this.store.getState()),s=v(this.store.getState()),{secondsUntilExpires:e}=L(s?.nativeAuthToken),n=new V(String(e)),i=n.times(1e3);if(!e||n.isLessThanOrEqualTo(0)||!t?.tokenExpirationToastWarningSeconds)return;let c=new V(t?.tokenExpirationToastWarningSeconds??0).times(1e3),a=n.times(1e3).minus(c),m=It(i.toNumber()),l=a.isLessThanOrEqualTo(0)?0:a.toNumber();clearTimeout(this.warningLogoutTimeoutRef??0),this.warningLogoutTimeoutRef=setTimeout(()=>{d.getInstance().createCustomToast({toastId:"native-auth-expired",iconClassName:"warning",title:"Session Expiration Warning",icon:"hourglass",message:`Your session will expire in ${m}!`}),this.warningLogoutTimeoutRef=null},l)}}static getInstance(){return o.instance||(o.instance=new o),o.instance}};var R={};async function Zt({serverTransaction:o,sessionId:t,isSequential:s}){let{hash:e,status:n,results:i,invalidTransaction:r,hasStatusChanged:c}=o;try{if(R[e]>30){f({sessionId:t,status:"timedOut"}),await y({sessionId:t,status:"timedOut"});return}if(r&&!s||n==="sent"){R[e]=R[e]?R[e]+1:1;return}if(s&&!n){let m=q({sessionId:t,transaction:o});await y({sessionId:t,status:m});return}if(c){let m=q({sessionId:t,transaction:o});await y({sessionId:t,status:m})}N(n)&&await Lt({sessionId:t,hash:e,results:i})}catch(a){console.error(a),f({sessionId:t,status:"timedOut"}),await y({sessionId:t,status:"timedOut"})}}async function Ut({sessionId:o,transactionBatch:t,isSequential:s}){try{if(t==null)return;let e=wt(),n=Ct(t),i=await Et(n);for(let p of i)await Zt({serverTransaction:p,sessionId:o,isSequential:s});if(!i.every(p=>p.status!=="pending"))return;e&&await B();let{transactions:c}=u().getState(),a=c[o];if(a.transactions.every(p=>p.status==="success"))return f({sessionId:o,status:"success"});if(a.transactions.some(p=>p.status==="fail"))return f({sessionId:o,status:"fail"});if(a.transactions.every(p=>p.status==="not executed"))return f({sessionId:o,status:"invalid"})}catch(e){console.error(e)}}async function _t(){let o=mt(E());if(Object.keys(o).length>0)for(let[t,{transactions:s}]of Object.entries(o))await Ut({sessionId:t,transactionBatch:s})}async function D(){let o=u(),t=At(),s=null,e=null,n=X(o.getState())?.timestamp,i=()=>{_t()},r=()=>{s??=setInterval(i,t)},c=()=>{s&&(clearInterval(s),s=null)},a=()=>{c();let p=o.subscribe(({account:{websocketEvent:g}})=>{g?.message&&n!==g.timestamp&&(n=g.timestamp,i())});w.set("websocketEventReceived",p)},m=()=>{z.status!=="not_initialized"||e||(e=setInterval(()=>{z.status==="completed"&&(clearInterval(e),e=null,a())},1e3))};i();let l=()=>{c(),e&&(clearInterval(e),e=null)},T=o.subscribe(({account:{address:p},config:{websocketStatus:g}},jt)=>{if(jt.config.websocketStatus!==g)switch(g){case"completed":a();break;case"pending":r(),m();break;default:p?r():l();break}});return w.set("websocketStatusChanged",T),w.set("websocketEventReceived",l),{stopTransactionsTracking:l}}async function j({address:o,provider:t,apiAddress:s}){let e=await A({address:o,baseURL:s});if(!e)throw new Error("Account not found");Nt({address:o,providerType:t.getType()});let n={...e,username:P(e.username),nonce:x(e)};O(n),await F(o),D(),e.shard!=null&&await xt({shard:Number(e.shard),apiAddress:s})}async function Jt(o){let{network:{apiAddress:t}}=S();await o.login();let s=await o.getAddress();if(!s)throw new Error("Address not found");return await j({address:s,provider:o,apiAddress:t}),{address:s}}async function Qt({provider:o,nativeAuthConfig:t,token:s}){let{network:{apiAddress:e}}=S(),n=ct(t),i=s;i||(i=await n.initialize({noCache:!0}));let{address:r,signature:c,...a}=await o.login({token:i});if(!r)return console.warn("Login cancelled."),null;if(!c)return console.error("Failed to sign login token"),null;let l=rt(a?.accessToken)?a.accessToken:n.getToken({address:r,token:i,signature:c});it({loginToken:i,signature:c,nativeAuthToken:l});let T=await kt({loginToken:i,extraInfoData:{multisig:a?.multisig,impersonate:a?.impersonate},address:r});return await j({address:T,provider:o,apiAddress:e}),{address:T,signature:c}}async function Wt(o,t){let s=b(E());if(s)return await Qt({provider:o,nativeAuthConfig:s,token:t?.token});let{address:e}=await Jt(o);return await F(e),D(),{address:e,signature:""}}var Y={error:{title:"Error when signing".toString(),iconClassName:"danger",toastId:`${pt}-${Date.now()}`},warning:{title:"Signing canceled".toString(),iconClassName:"warning",toastId:`${lt}-${Date.now()}`}},Xt={extensionResponse:"Unable to sign transactions","Transaction canceled":"Transaction canceled","cancelled by user":"Transaction signing cancelled by user","denied by the user":"Transaction signing denied by the user"},ts=o=>{for(let[t,s]of Object.entries(Xt))if(o.includes(t))return s;return"Error when signing"};function Z(o,t="error"){let s=o?.message,e=ts(s),i=e!=="Error when signing"?"warning":t,r=Object.keys(Y).includes(i)?Y[i]:Y.error,{toastId:c,iconClassName:a,title:m}=r;return U({toastId:c,duration:1e4,icon:"times",iconClassName:a,message:e,title:m}),e}async function Ht({provider:o,transactions:t,options:s={}}){await B();let{isGuarded:e,activeGuardianAddress:n,nonce:i}=Mt(),r=o.getType()===C.ledger,c=Rt({latestNonce:i,transactions:t}),a=n&&e&&!s.skipGuardian?c?.map(l=>(l.version=st.withTxOptions().valueOf(),l.options=ot.withOptions({guarded:!0,...r?{hashSign:!0}:{}}).valueOf(),l.guardian=et.newFromBech32(n),l)):c,m=await o.signTransactions(a)??[];return bt(i+m.length),m}var _=class{constructor(t){this._isLoggingOut=!1;this.provider=t}init(){return this.provider.init()}async login(t){let s=await Wt(this.provider,t);return nt(this.provider.getType()),Gt(this),M.getInstance().init(),s}isInitialized(){return this.provider.isInitialized()}async logout(t={shouldBroadcastLogoutAcrossTabs:!0}){if(this._isLoggingOut)return console.warn("Logout already in progress"),!1;this._isLoggingOut=!0;let s=await Ot({provider:this.provider,options:t});return this._isLoggingOut=!1,s}getType(){return this.provider.getType()}getProvider(){return this.provider}async signTransactions(t,s){try{return await Ht({provider:this.provider,transactions:t,options:s})}catch(e){let n=Z(e);throw new Error(n)}}async signMessage(t,s){try{return await Ft({provider:this.provider,message:t,options:s})}catch(e){let n=Z(e,"warning");throw new Error(n)}}async verifyMessage(t){return await Pt(t)}cancelLogin(){this.provider.cancelLogin?.()}};var $t=null;function Gt(o){$t=o}function I(){return $t||new _(Bt)}var ss=async()=>{try{let o=ut(),{network:t}=S();try{let s=await A({address:o,baseURL:t.apiAddress});if(s!=null){let e={...s,username:P(s.username),nonce:x(s)};return O(e),e}}catch(s){console.error("Failed getting account ",s)}}catch(o){console.error("Failed getting address ",o)}return null};async function B(){let o=I();if(o==null)throw"Provider not initialized";try{if(!o.init)throw"Current provider does not have init() function";return await o.init()?await ss():void 0}catch(t){console.error("Failed initializing provider ",t)}}var W={},h={},es=(o,t)=>{u().setState(({toasts:s})=>{let e=s.customToasts.length>0?Math.max(...s.customToasts.map(a=>parseInt(a.toastId.split("-").pop()??"0"))):0,n=t??`custom-toast-${e+1}`,i=s.customToasts.findIndex(a=>a.toastId===n),r={...o,toastId:n};if(i!==-1){s.customToasts[i]=r;return}s.customToasts.push({...r,toastId:n})},!1,"addCustomToast")},H=o=>{u().setState(({toasts:t})=>{t.customToasts=t.customToasts.filter(s=>s.toastId!==o)},!1,"removeCustomToast")},Kt=()=>{u().setState(({toasts:o})=>{o.customToasts=[]},!1,"removeAllCustomToasts")},No=()=>{u().setState(({toasts:o})=>{o.transactionToasts=[]})},zt=({toastId:o,totalDuration:t})=>{let s="";return u().setState(({toasts:e})=>{let n=e.transactionToasts.length>0?Math.max(...e.transactionToasts.map(i=>parseInt(i.toastId.split("-").pop()??"0"))):0;s=o??`transaction-toast-${n+1}`,e.transactionToasts.push({startTime:at(),endTime:Dt(t),toastId:s})},!1,"addTransactionToast"),s},G=o=>{u().setState(({toasts:t})=>{t.transactionToasts=t.transactionToasts.filter(s=>s.toastId!==o)},!1,"removeTransactionToast"),delete h[o],delete W[o]},U=o=>{let{toasts:t}=u().getState(),s=t.customToasts.length>0?Math.max(...t.customToasts.map(n=>parseInt(n.toastId.split("-").pop()??"0"))):0,e=o.toastId||`custom-toast-${s+1}`;return o.onClose&&(h[e]=o.onClose),o.instantiateToastElement?(W[e]=o.instantiateToastElement,u().setState(({toasts:n})=>{let i=n.customToasts.findIndex(a=>a.toastId===e),r={...o,instantiateToastElement:null,toastId:e};i!==-1?n.customToasts[i]=r:n.customToasts.push(r)},!1,"createCustomToast"),e):(es(o,e),e)};var qt=1e4,$=class{constructor(){this.timeoutIntervals=new Map;this.successfulToastLifetime=qt;this.start=t=>{if(this.stop(t),this.successfulToastLifetime<=0)return;let s=setTimeout(()=>{G(t)},this.successfulToastLifetime);this.timeoutIntervals.set(t,s)};this.startWithCustomDuration=(t,s)=>{if(this.stop(t),s<=0)return;let e=setTimeout(()=>{H(t);let n=h[t];n?.()},s);this.timeoutIntervals.set(t,e)};this.stop=t=>{let s=this.timeoutIntervals.get(t);s&&(clearTimeout(s),this.timeoutIntervals.delete(t))}}init({successfulToastLifetime:t}){this.successfulToastLifetime=t||qt}destroy(){this.timeoutIntervals.forEach(t=>clearTimeout(t)),this.timeoutIntervals.clear()}};var d=class o{constructor(){this.isCreatingElement=!1;this.toastsElement=null;this.transactionToasts=[];this.customToasts=[];this.storeToastsSubscription=()=>null;this.eventBusUnsubscribeFunctions=[];this.eventBus=null;this.store=u();this.destroy(),this.lifetimeManager=new $,this.notificationsFeedManager=K.getInstance()}async init({successfulToastLifetime:t=5e3}={}){this.successfulToastLifetime=t,this.lifetimeManager.init({successfulToastLifetime:t}),await this.updateTransactionToastsList(),await this.updateCustomToastList(),await this.subscribeToEventBusNotifications(),this.storeToastsSubscription=this.store.subscribe(async({toasts:s,transactions:e},{toasts:n,transactions:i})=>{let r=!J(n.transactionToasts,s.transactionToasts),c=!J(i,e);(r||c)&&await this.updateTransactionToastsList({skipFetchingTransactions:c}),!J(n.customToasts,s.customToasts)&&await this.updateCustomToastList()})}static getInstance(){return o.instance||(o.instance=new o),o.instance}handleCompletedTransaction(t){let{transactions:s}=this.store.getState(),e=s[t];if(!e)return!1;let{status:n}=e,i=ht(n),r=N(n),c=ft(n),a=r||c||i;return a?(this.successfulToastLifetime&&this.lifetimeManager.start(t),a):(this.lifetimeManager.stop(t),a)}async createTransactionToast(t,s){let e=zt({toastId:t,totalDuration:s});return this.handleCompletedTransaction(t),await this.updateTransactionToastsList(),e}createCustomToast(t){let s=U(t);return this.updateCustomToastList(),s}async updateTransactionToastsList(t){let{toasts:s,transactions:e,account:n}=this.store.getState(),{pendingTransactionToasts:i,completedTransactionToasts:r}=await k({toastList:s,transactionsSessions:e,account:n,skipFetchingTransactions:t?.skipFetchingTransactions});this.transactionToasts=[...i,...r];for(let c of s.transactionToasts)this.handleCompletedTransaction(c.toastId);await this.publishTransactionToasts()}async updateCustomToastList(){let{toasts:t}=this.store.getState();this.customToasts=[];for(let s of t.customToasts){let n="message"in s?{...s}:{...s,instantiateToastElement:W[s.toastId]};this.customToasts.push(n),s.duration&&this.lifetimeManager.startWithCustomDuration(s.toastId,s.duration)}this.eventBus?.publish("CUSTOM_TOAST_DATA_UPDATE",this.customToasts)}async createToastListElement(){return this.toastsElement?this.toastsElement:(this.isCreatingElement||(this.isCreatingElement=!0,this.toastsElement=await St.create({name:"mvx-toast-list"}),this.isCreatingElement=!1),this.toastsElement)}handleTransactionToastClose(t){this.handleCompletedTransaction(t)&&G(t)}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.closeToast.bind(this)),this.eventBusUnsubscribeFunctions.push(()=>{this.eventBus?.unsubscribe("CLOSE_TOAST",this.closeToast.bind(this))}),this.eventBus.subscribe("OPEN_NOTIFICATIONS_FEED",this.handleOpenNotificationsFeed.bind(this)),this.eventBusUnsubscribeFunctions.push(()=>{this.eventBus?.unsubscribe("OPEN_NOTIFICATIONS_FEED",this.handleOpenNotificationsFeed.bind(this))})}}async showToasts(){this.eventBus?.publish("SHOW_TOAST_LIST",null),await this.updateCustomToastList(),await this.updateTransactionToastsList()}hideToasts(){this.eventBus?.publish("HIDE_TOAST_LIST",null)}async handleOpenNotificationsFeed(){this.notificationsFeedManager.openNotificationsFeed()}closeToast(t){if(this.customToasts.find(e=>e.toastId===t)){this.lifetimeManager.stop(t);let e=h[t];e?.(),H(t);return}this.handleTransactionToastClose(t)}async publishTransactionToasts(){if(this.notificationsFeedManager.isNotificationsFeedOpen()&&this.eventBus){this.eventBus.publish("TRANSACTION_TOAST_DATA_UPDATE",this.transactionToasts),this.hideToasts();return}if(!this.eventBus){let t=await this.createToastListElement();if(!t)return;this.eventBus=await t.getEventBus()}this.eventBus.publish("TRANSACTION_TOAST_DATA_UPDATE",this.transactionToasts)}destroy(){this.storeToastsSubscription(),this.lifetimeManager?.destroy(),this.notificationsFeedManager?.destroy(),Kt(),this.eventBusUnsubscribeFunctions.forEach(t=>t()),this.eventBusUnsubscribeFunctions=[]}};var ns="NOTIFICATIONS_FEED_STORE_SUBSCRIBE",K=class o extends yt{constructor(){super({uiDataUpdateEvent:"OPEN_NOTIFICATIONS_FEED",uiTag:"mvx-notifications-feed"});this.store=u();this.initialData={pendingTransactions:[],historicTransactions:[]};this.data={...this.initialData}}static getInstance(){return o.instance||(o.instance=new o),o.instance}isNotificationsFeedOpen(){return this.isOpen}async openNotificationsFeed(){d.getInstance().hideToasts(),await this.openUI(),await this.updateDataAndNotifications();let e=this.store.subscribe(async({toasts:n,transactions:i},{toasts:r,transactions:c})=>{(!Vt(r.transactionToasts,n.transactionToasts)||!Vt(c,i))&&await this.updateDataAndNotifications()});this.unsubscribeFunctions.set(ns,[e]),this.eventBus?.publish("OPEN_NOTIFICATIONS_FEED"),await this.updateDataAndNotifications()}async handleCloseUI(){let s=d.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,account:e,toasts:n,network:i}=this.store.getState(),{pendingTransactionToasts:r}=await k({toastList:n,transactionsSessions:s,account:e});this.data.pendingTransactions=r,this.data.historicTransactions=await gt.getTransactionsHistory({transactionsSessions:s,address:e.address,explorerAddress:i.network.explorerAddress,egldLabel:i.network.egldLabel}),await this.updateNotificationsFeed()}handleClearNotificationsFeedHistory(){vt(),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{K as a,W as b,h as c,es as d,H as e,Kt as f,No as g,zt as h,G as i,U as j,$ as k,d as l,M as m,Ut as n,_t as o,D as p,j as q,Wt as r,Z as s,Ht as t,_ as u,Gt as v,I as w,B as x};
|
|
2
|
+
//# sourceMappingURL=chunk-SMW2Y5YA.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as i}from"./chunk-2V734BC5.mjs";import{a}from"./chunk-SUSUR4QF.mjs";import{a as u}from"./chunk-6XX6ZLRH.mjs";import{c as n}from"./chunk-AKWG6QLG.mjs";import{a as s}from"./chunk-WOJOOCI6.mjs";var c=(o,t)=>{let r=`sdk-dapp-logout-event-${o}`,e=t.getItem(r);e&&o!==e||(t.setItem(r,o),t.removeItem(r))};async function L({provider:o,options:t={shouldBroadcastLogoutAcrossTabs:!0}}){let r=a();t.shouldBroadcastLogoutAcrossTabs&&s.localStorage&&c(r,s.localStorage);try{return u(),n.forEach(g=>g()),n.clear(),i.closeConnectionRef?.(),await o.logout()}catch(e){return console.error("Logging out error:",e),!1}}export{L as a};
|
|
2
|
+
//# sourceMappingURL=chunk-T3LDKSIQ.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-CDASOTMO.mjs";import{a as e}from"./chunk-SUSUR4QF.mjs";import{a as i}from"./chunk-ZVIKYGX5.mjs";var a=class{constructor(o){this.address="";this._login=null;this.loginAbortController=null;this.cancelLogin=()=>{this.loginAbortController&&this.loginAbortController.abort(),this.cancelAction?.(),this.loginAbortController=null};this.loginOperation=async o=>{if(!this._login)throw new Error("Provider is not initialized.");let r=await this._login(o);if(!r?.address)throw new Error("Provider is not initialized.");return{...r,address:r.address,signature:r.signature??""}};this.initializeAddress=()=>{if(this.address)return;let o=e();o&&(this.address=o)};this.cancelAction=void 0;this.address=o??""}getAccount(){throw new Error("Method not implemented.")}signTransaction(o,r){throw new Error("Method not implemented.")}async login(o){if(!this._login)throw new Error("Provider is not initialized.");this.loginAbortController&&this.loginAbortController.abort();let r=new AbortController;this.loginAbortController=r;let t=r.signal;try{let n=new Promise((p,c)=>{t.addEventListener("abort",()=>{c(new Error("Login cancelled"))})}),l=await Promise.race([this.loginOperation(o),n]);return this.loginAbortController=null,l}catch(n){throw this.loginAbortController=null,n}}async initSignState(){let{onClose:o,manager:r}=await s({cancelAction:this.cancelAction?.bind(this)}),t=this.getType();return r.subscribeToEventBus("CLOSE_PENDING_TRANSACTIONS",o),r.updateData({name:i[t],type:t}),{onClose:o,manager:r}}};export{a};
|
|
2
|
+
//# sourceMappingURL=chunk-TPZ2PFCM.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as f}from"./chunk-FRDR4A7Z.mjs";import{w as g}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as f}from"./chunk-FRDR4A7Z.mjs";import{w as g}from"./chunk-SMW2Y5YA.mjs";import{a as c}from"./chunk-ASWAR3QU.mjs";import{s as n}from"./chunk-PFYTYBW3.mjs";import{g as a}from"./chunk-UERJ6AKK.mjs";import{e as l}from"./chunk-VNLGNNIL.mjs";import{HWProvider as m}from"@multiversx/sdk-hw-provider";async function A(u){let v=c(),d=u?.shouldInitProvider||!v,o=l(n()),t=a(n()),r=g(),i=new m,I=async()=>{let e=o?.index!=null;if(r instanceof m&&r.isInitialized())return e&&await r.setAddressIndex(o.index),r;if(d&&!await i.init())throw new Error("Failed to initialize Ledger Provider");return e&&await i.setAddressIndex(o.index),i};try{if(!d&&t)return{ledgerProvider:i,ledgerConfig:{version:t.version,dataEnabled:t.hasContractDataEnabled}};let e=await I(),s=await f(e);return{ledgerProvider:e,ledgerConfig:s}}catch(e){throw console.error("Could not initialize ledger app",e),e}}export{A as a};
|
|
2
|
+
//# sourceMappingURL=chunk-TXJIXRMC.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-WOJOOCI6.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-VQDBI6YM.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{s as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{s as e}from"./chunk-PFYTYBW3.mjs";import{b as t}from"./chunk-SAAOQW7P.mjs";import{x as r}from"./chunk-KD2IQ32V.mjs";import i from"axios";var T=async o=>{let{apiAddress:s}=t(e()),{data:a}=await i.get(`${s}/${r}`,{params:{hashes:o.join(","),withScResults:!0}});return a};export{T as a};
|
|
2
|
+
//# sourceMappingURL=chunk-W32KHY5V.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-XFVBNWP2.mjs";import o from"axios";var n="transactions/ppu";async function l(a,s){let r=`${e(s)}/${n}/${a}`;try{let{data:t}=await o.get(r);return t?{[a]:{lastBlock:t.lastBlock,fast:t.fast,faster:t.faster}}:null}catch(t){return console.error("Error fetching gas station metadata from:",r,t),null}}export{l as a};
|
|
2
|
+
//# sourceMappingURL=chunk-W3Y4J4D3.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/constants/window.constants.ts"],
|
|
4
|
-
"sourcesContent": ["export const safeWindow: Window =\n typeof window !== 'undefined' ? window : ({} as Window);\n\nexport const version = '5.2.
|
|
4
|
+
"sourcesContent": ["export const safeWindow: Window =\n typeof window !== 'undefined' ? window : ({} as Window);\n\nexport const version = '5.2.2'; // will be replaced at build time\n"],
|
|
5
5
|
"mappings": "AAAO,IAAMA,EACX,OAAO,OAAW,IAAc,OAAU,CAAC,EAEhCC,EAAU",
|
|
6
6
|
"names": ["safeWindow", "version"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{s as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{s as r}from"./chunk-PFYTYBW3.mjs";import{b as e}from"./chunk-SAAOQW7P.mjs";var d=s=>{let o=e(r()),t=s??o.apiAddress;return t.endsWith("/")?t.slice(0,-1):t};export{d as a};
|
|
2
|
+
//# sourceMappingURL=chunk-XFVBNWP2.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as n}from"./chunk-OJ4UPDFE.mjs";import{a as t}from"./chunk-LTJ6QYTI.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-Y5ERFLZ5.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as p}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as p}from"./chunk-W32KHY5V.mjs";import{a as d}from"./chunk-GFS4Q6Z7.mjs";import{a as f}from"./chunk-FVEANNWZ.mjs";import{a as h}from"./chunk-3L7HZ2SO.mjs";var g=t=>t.sort((n,i)=>i.timestamp-n.timestamp),k=async({transactions:t,address:n,explorerAddress:i,egldLabel:u,skipFetchingTransactions:I=!1})=>{let o=[],e=[];if(t.forEach(s=>{let a=f(s.hash);a?o.push(a):e.push(s.hash)}),e.length===0)return g(o);let c=I?t.map(s=>({...s,txHash:s.hash})):await p(e),l=c.map(s=>s.txHash),T=e.filter(s=>!l.includes(s));if(T.length>0){let a=t.filter(r=>T.includes(r.hash)).map(r=>({...r,txHash:r.hash,price:0,status:"pending",gasUsed:0,miniBlockHash:"",receiverShard:0,round:0,senderShard:0,timestamp:Date.now()}));c.push(...a)}let m=new Map;return o.forEach(s=>{let a=s.hash;a&&m.set(String(a),s)}),c.forEach(s=>{let a=h({transaction:s,address:n,explorerAddress:i,egldLabel:u});a.status!=="pending"&&d({key:`transaction-${s.txHash}`,value:a}),m.set(s.txHash,a)}),g(Array.from(m.values()))};export{k as a};
|
|
2
|
+
//# sourceMappingURL=chunk-YI4TACNU.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-55W25Q35.mjs";import{a as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-55W25Q35.mjs";import{a as r}from"./chunk-YI4TACNU.mjs";import e from"lodash.isempty";var p=async({transactionsSessions:t,address:i,explorerAddress:a,egldLabel:o})=>{if(e(t))return[];let n=s(t);return r({transactions:n,address:i,explorerAddress:a,egldLabel:o})};export{p as a};
|
|
2
|
+
//# sourceMappingURL=chunk-YJ4OUGHL.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as u}from"./chunk-L3MWDI6J.mjs";import{q as i}from"./chunk-PFYTYBW3.mjs";var d=({transactions:s,transactionsDisplayInfo:e,status:r,sessionInformation:t})=>{let a=Date.now().toString();return i().setState(({transactions:n})=>{n[a]={transactions:s,status:r,transactionsDisplayInfo:e,interpretedTransactions:{},sessionInformation:t}},!1,"createTransactionsSession"),a},T=({sessionId:s,status:e,errorMessage:r})=>{i().setState(({transactions:t})=>{if(!t[s])return;let a=r||t[s].errorMessage;t[s].status=e,t[s].errorMessage=a,t[s].transactionsDisplayInfo={...t[s].transactionsDisplayInfo,errorMessage:a}},!1,"updateTransactionsSession")},y=({sessionId:s,transaction:e})=>{let r=null;return i().setState(({transactions:t})=>{let a=t[s]?.transactions;if(a!=null){t[s].transactions=a.map(o=>o.hash===e.hash?{...o,...e??{}}:o);let n=u([...t[s].transactions]);n&&(T({sessionId:s,status:n}),r=n)}},!1,"updateTransactionStatus"),r},h=()=>{i().setState(({transactions:s,toasts:e})=>{let t=Object.keys(s).filter(n=>{let o=s[n];if(!o)return!1;let{status:c}=o;return!(c==="pending"||c==="signed"||c==="sent")});t.forEach(n=>{delete s[n]});let a=e.transactionToasts.filter(n=>!t.includes(n.toastId));e.transactionToasts=a},!1,"clearCompletedTransactions")};export{d as a,T as b,y as c,h as d};
|
|
2
|
+
//# sourceMappingURL=chunk-YOE2FKZ6.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/store/actions/transactions/transactionsActions.ts"],
|
|
4
|
+
"sourcesContent": ["import { getTransactionsSessionStatus } from 'managers/TransactionManager/helpers/getTransactionsStatus';\nimport { getStore } from 'store/store';\nimport {\n TransactionBatchStatusesEnum,\n TransactionServerStatusesEnum\n} from 'types/enums.types';\nimport {\n TransactionsDisplayInfoType,\n SignedTransactionType\n} from 'types/transactions.types';\n\nexport type CreateTransactionsSessionType = {\n transactions: SignedTransactionType[];\n transactionsDisplayInfo?: TransactionsDisplayInfoType;\n status: TransactionBatchStatusesEnum | TransactionServerStatusesEnum;\n sessionInformation?: any;\n};\n\nexport const createTransactionsSession = ({\n transactions,\n transactionsDisplayInfo,\n status,\n sessionInformation\n}: CreateTransactionsSessionType) => {\n const sessionId = Date.now().toString();\n getStore().setState(\n ({ transactions: state }) => {\n state[sessionId] = {\n transactions,\n status,\n transactionsDisplayInfo,\n interpretedTransactions: {},\n sessionInformation\n };\n },\n false,\n 'createTransactionsSession'\n );\n return sessionId;\n};\n\nexport const updateSessionStatus = ({\n sessionId,\n status,\n errorMessage\n}: {\n sessionId: string;\n status: TransactionBatchStatusesEnum;\n errorMessage?: string;\n}) => {\n getStore().setState(\n ({ transactions: state }) => {\n if (!state[sessionId]) {\n return;\n }\n const newErrorMessage = errorMessage || state[sessionId].errorMessage;\n state[sessionId].status = status;\n state[sessionId].errorMessage = newErrorMessage;\n state[sessionId].transactionsDisplayInfo = {\n ...state[sessionId].transactionsDisplayInfo,\n errorMessage: newErrorMessage\n };\n },\n false,\n 'updateTransactionsSession'\n );\n};\n\nexport const updateTransactionStatus = ({\n sessionId,\n transaction: updatedTransaction\n}: {\n sessionId: string;\n transaction: SignedTransactionType;\n}): TransactionBatchStatusesEnum | null => {\n let newStatus: TransactionBatchStatusesEnum | null = null;\n getStore().setState(\n ({ transactions: state }) => {\n const transactions = state[sessionId]?.transactions;\n if (transactions != null) {\n state[sessionId].transactions = transactions.map((transaction) => {\n if (transaction.hash === updatedTransaction.hash) {\n return {\n ...transaction,\n ...(updatedTransaction ?? {})\n };\n }\n return transaction;\n });\n\n const status = getTransactionsSessionStatus([\n ...state[sessionId].transactions // Create a copy of the transactions array to avoid Proxy issues\n ]);\n\n if (status) {\n updateSessionStatus({\n sessionId,\n status\n });\n newStatus = status;\n }\n }\n },\n false,\n 'updateTransactionStatus'\n );\n\n return newStatus;\n};\n\nexport const clearCompletedTransactions = () => {\n getStore().setState(\n ({ transactions: state, toasts: toastsState }) => {\n const sessionIds = Object.keys(state);\n\n const completedSessionIds = sessionIds.filter((sessionId) => {\n const session = state[sessionId];\n if (!session) {\n return false;\n }\n\n const { status } = session;\n\n const isPending =\n status === TransactionServerStatusesEnum.pending ||\n status === TransactionBatchStatusesEnum.signed ||\n status === TransactionBatchStatusesEnum.sent;\n\n return !isPending;\n });\n\n completedSessionIds.forEach((sessionId) => {\n delete state[sessionId];\n });\n\n const filteredTransactionToasts = toastsState.transactionToasts.filter(\n (toast) => !completedSessionIds.includes(toast.toastId)\n );\n\n toastsState.transactionToasts = filteredTransactionToasts;\n },\n false,\n 'clearCompletedTransactions'\n );\n};\n"],
|
|
5
|
+
"mappings": "kFAkBO,IAAMA,EAA4B,CAAC,CACxC,aAAAC,EACA,wBAAAC,EACA,OAAAC,EACA,mBAAAC,CACF,IAAqC,CACnC,IAAMC,EAAY,KAAK,IAAI,EAAE,SAAS,EACtC,OAAAC,EAAS,EAAE,SACT,CAAC,CAAE,aAAcC,CAAM,IAAM,CAC3BA,EAAMF,CAAS,EAAI,CACjB,aAAAJ,EACA,OAAAE,EACA,wBAAAD,EACA,wBAAyB,CAAC,EAC1B,mBAAAE,CACF,CACF,EACA,GACA,2BACF,EACOC,CACT,EAEaG,EAAsB,CAAC,CAClC,UAAAH,EACA,OAAAF,EACA,aAAAM,CACF,IAIM,CACJH,EAAS,EAAE,SACT,CAAC,CAAE,aAAcC,CAAM,IAAM,CAC3B,GAAI,CAACA,EAAMF,CAAS,EAClB,OAEF,IAAMK,EAAkBD,GAAgBF,EAAMF,CAAS,EAAE,aACzDE,EAAMF,CAAS,EAAE,OAASF,EAC1BI,EAAMF,CAAS,EAAE,aAAeK,EAChCH,EAAMF,CAAS,EAAE,wBAA0B,CACzC,GAAGE,EAAMF,CAAS,EAAE,wBACpB,aAAcK,CAChB,CACF,EACA,GACA,2BACF,CACF,EAEaC,EAA0B,CAAC,CACtC,UAAAN,EACA,YAAaO,CACf,IAG2C,CACzC,IAAIC,EAAiD,KACrD,OAAAP,EAAS,EAAE,SACT,CAAC,CAAE,aAAcC,CAAM,IAAM,CAC3B,IAAMN,EAAeM,EAAMF,CAAS,GAAG,aACvC,GAAIJ,GAAgB,KAAM,CACxBM,EAAMF,CAAS,EAAE,aAAeJ,EAAa,IAAKa,GAC5CA,EAAY,OAASF,EAAmB,KACnC,CACL,GAAGE,EACH,GAAIF,GAAsB,CAAC,CAC7B,EAEKE,CACR,EAED,IAAMX,EAASY,EAA6B,CAC1C,GAAGR,EAAMF,CAAS,EAAE,YACtB,CAAC,EAEGF,IACFK,EAAoB,CAClB,UAAAH,EACA,OAAAF,CACF,CAAC,EACDU,EAAYV,EAEhB,CACF,EACA,GACA,yBACF,EAEOU,CACT,EAEaG,EAA6B,IAAM,CAC9CV,EAAS,EAAE,SACT,CAAC,CAAE,aAAcC,EAAO,OAAQU,CAAY,IAAM,CAGhD,IAAMC,EAFa,OAAO,KAAKX,CAAK,EAEG,OAAQF,GAAc,CAC3D,IAAMc,EAAUZ,EAAMF,CAAS,EAC/B,GAAI,CAACc,EACH,MAAO,GAGT,GAAM,CAAE,OAAAhB,CAAO,EAAIgB,EAOnB,MAAO,EAJLhB,eACAA,cACAA,WAGJ,CAAC,EAEDe,EAAoB,QAASb,GAAc,CACzC,OAAOE,EAAMF,CAAS,CACxB,CAAC,EAED,IAAMe,EAA4BH,EAAY,kBAAkB,OAC7DI,GAAU,CAACH,EAAoB,SAASG,EAAM,OAAO,CACxD,EAEAJ,EAAY,kBAAoBG,CAClC,EACA,GACA,4BACF,CACF",
|
|
6
|
+
"names": ["createTransactionsSession", "transactions", "transactionsDisplayInfo", "status", "sessionInformation", "sessionId", "getStore", "state", "updateSessionStatus", "errorMessage", "newErrorMessage", "updateTransactionStatus", "updatedTransaction", "newStatus", "transaction", "getTransactionsSessionStatus", "clearCompletedTransactions", "toastsState", "completedSessionIds", "session", "filteredTransactionToasts", "toast"]
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as o,c as i}from"./chunk-QJGFIK7H.mjs";import{w as g}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as o,c as i}from"./chunk-QJGFIK7H.mjs";import{w as g}from"./chunk-SMW2Y5YA.mjs";import{q as M}from"./chunk-PFYTYBW3.mjs";import{a as d}from"./chunk-UERJ6AKK.mjs";import{a as u,c as p,g as c}from"./chunk-NTEMINYA.mjs";import{a as l}from"./chunk-WOJOOCI6.mjs";var m=class{constructor({onLoginCancelled:e}){this.handlers=new Map;this.store=M();this.isLoginInitiated=!1;this.handleMessage=this.handleMessage.bind(this),this.handleLoginCancelled=e}startListening(){l.addEventListener("message",this.handleMessage)}stopListening(){l.removeEventListener("message",this.handleMessage)}registerEvent(e,s){this.handlers.set(e,s)}unregisterEvent(e){this.handlers.delete(e)}async handleMessage(e){let s=e.data?.type;if(typeof s=="string"&&this.handlers.has(s))return this.handlers.get(s)?.(e);switch(s){case o.finalizeHandshakeRequest:this.handshake({event:e});break;case o.signMessageRequest:this.signMessage({event:e,payload:e.data.payload});break;case o.loginRequest:this.isLoginInitiated=!0,this.login({event:e,payload:e.data.payload});break;case o.signTransactionsRequest:this.signTransactions({event:e});break;case i.cancelResponse:case"cancelAction":this.isLoginInitiated&&await this.handleLoginCancelled();break;default:break}}async login({event:e,payload:s}){let a=s?.token;if(a)try{let{address:t}=d(this.store.getState()),r=g(),n=`${t}${a}`,y=new c({address:new p(t),data:new Uint8Array(Buffer.from(n))}),f=(await r.signMessage(y))?.signature??"";e.source?.postMessage({type:i.loginResponse,payload:{data:{address:t,signature:Buffer.from(f).toString("hex")}}},{targetOrigin:e.origin})}catch{this.isLoginInitiated&&this.handleLoginCancelled()}finally{this.isLoginInitiated=!1}}handshake({event:e}){let s=Date.now().toString();e.source?.postMessage({type:i.finalizeHandshakeResponse,payload:{data:s}},{targetOrigin:e.origin})}async signMessage({event:e,payload:s}){let{address:a}=d(this.store.getState()),{message:t}=s;try{let r=new c({address:new p(a),data:new Uint8Array(Buffer.from(t))}),h=(await g().signMessage(r))?.signature??"";e.source?.postMessage({type:i.signMessageResponse,payload:{data:{signature:Buffer.from(h).toString("hex"),status:"signed"}}},{targetOrigin:e.origin})}catch{throw new Error("Could not sign message")}}async signTransactions({event:e}){let s=g(),{payload:a}=e.data;if(Array.isArray(a))try{let t=a.map(n=>u.newFromPlainObject(n)),r=await s.signTransactions(t);e.source?.postMessage({type:i.signTransactionsResponse,payload:{data:r.map(n=>n.toPlainObject())}},{targetOrigin:e.origin})}catch{throw new Error("Could not sign transactions")}}};export{m as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ZD7FEKSG.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/providers/types/providerFactory.types.ts"],
|
|
4
|
+
"sourcesContent": ["import type { IDAppProviderBase } from '@multiversx/sdk-dapp-utils';\n\nexport interface IProvider<T extends ProviderType = ProviderType>\n extends IDAppProviderBase {\n init: () => Promise<boolean>;\n login: (options?: { callbackUrl?: string; token?: string }) => Promise<{\n address: string;\n signature: string;\n multisig?: string;\n impersonate?: string;\n accessToken?: string;\n [key: string]: unknown;\n }>;\n logout: () => Promise<boolean>;\n cancelLogin?: () => void;\n getType: () => T;\n getAddress(): Promise<string | undefined>;\n}\n\nexport interface IProviderConfig {\n account?: {\n address: string;\n };\n}\n\nexport const ProviderTypeEnum = {\n extension: 'extension',\n metamask: 'metamask',\n walletConnect: 'walletConnect',\n ledger: 'ledger',\n crossWindow: 'crossWindow',\n webview: 'webview',\n none: ''\n} as const;\n\nexport type ProviderBaseType =\n (typeof ProviderTypeEnum)[keyof typeof ProviderTypeEnum];\n\nexport type ProviderType = ProviderBaseType | (string & {}); // This allows custom providers to be used as a string\n\nexport interface IProviderFactory<T extends ProviderType = ProviderType> {\n type: T;\n anchor?: HTMLElement;\n}\n\nexport interface IProviderBase<T extends ProviderType = ProviderType> {\n name: string;\n type: T;\n iconUrl?: string;\n}\nexport interface ICustomProvider<T extends ProviderType = ProviderType>\n extends IProviderBase<T> {\n constructor: (options?: {\n address?: string;\n anchor?: HTMLElement;\n }) => Promise<IProvider>;\n}\n"],
|
|
5
|
+
"mappings": "AAyBO,IAAMA,EAAmB,CAC9B,UAAW,YACX,SAAU,WACV,cAAe,gBACf,OAAQ,SACR,YAAa,cACb,QAAS,UACT,KAAM,EACR",
|
|
6
|
+
"names": ["ProviderTypeEnum"]
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as o}from"./chunk-4TBVQD27.mjs";import{q as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as o}from"./chunk-4TBVQD27.mjs";import{q as n}from"./chunk-PFYTYBW3.mjs";var c=t=>n().setState(({config:e})=>{e.nativeAuthConfig=t},!1,"setNativeAuthConfig"),C=t=>n().setState(({config:e})=>{e.websocketStatus=t},!1,"setWebsocketStatus"),f=t=>n().setState(({config:e})=>{let a=t.walletConnectV2RelayAddress||o.walletConnectV2RelayAddress,s=t.walletConnectDeepLink||o.walletConnectDeepLink;e.walletConnectConfig={...t,walletConnectDeepLink:s,walletConnectV2RelayAddress:a}},!1,"setWalletConnectConfig");export{c as a,C as b,f as c};
|
|
2
|
+
//# sourceMappingURL=chunk-ZRFBDO7U.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as e}from"./chunk-ZONHCECO.mjs";var t={[e.crossWindow]:"MultiversX Web Wallet",[e.extension]:"MultiversX Wallet Extension",[e.walletConnect]:"xPortal App",[e.ledger]:"Ledger",[e.metamask]:"MetaMask Snap",[e.webview]:"Webview",[e.none]:""};export{t as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ZVIKYGX5.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/constants/providerFactory.constants.ts"],
|
|
4
|
-
"sourcesContent": ["import {\n ProviderTypeEnum,\n ProviderType\n} from 'providers/types/providerFactory.types';\n\nexport const providerLabels: Record<ProviderType, string> = {\n [ProviderTypeEnum.crossWindow]: 'MultiversX Web Wallet',\n [ProviderTypeEnum.extension]: 'MultiversX Wallet Extension',\n [ProviderTypeEnum.walletConnect]: 'xPortal App',\n [ProviderTypeEnum.ledger]: 'Ledger',\n [ProviderTypeEnum.metamask]: 'MetaMask Snap',\n [ProviderTypeEnum.
|
|
5
|
-
"mappings": "yCAKO,IAAMA,EAA+C,CAC1D,CAACC,EAAiB,WAAW,EAAG,wBAChC,CAACA,EAAiB,SAAS,EAAG,8BAC9B,CAACA,EAAiB,aAAa,EAAG,cAClC,CAACA,EAAiB,MAAM,EAAG,SAC3B,CAACA,EAAiB,QAAQ,EAAG,gBAC7B,CAACA,EAAiB,OAAO,EAAG,UAC5B,CAACA,EAAiB,
|
|
4
|
+
"sourcesContent": ["import {\n ProviderTypeEnum,\n ProviderType\n} from 'providers/types/providerFactory.types';\n\nexport const providerLabels: Record<ProviderType, string> = {\n [ProviderTypeEnum.crossWindow]: 'MultiversX Web Wallet',\n [ProviderTypeEnum.extension]: 'MultiversX Wallet Extension',\n [ProviderTypeEnum.walletConnect]: 'xPortal App',\n [ProviderTypeEnum.ledger]: 'Ledger',\n [ProviderTypeEnum.metamask]: 'MetaMask Snap',\n [ProviderTypeEnum.webview]: 'Webview',\n [ProviderTypeEnum.none]: ''\n};\n"],
|
|
5
|
+
"mappings": "yCAKO,IAAMA,EAA+C,CAC1D,CAACC,EAAiB,WAAW,EAAG,wBAChC,CAACA,EAAiB,SAAS,EAAG,8BAC9B,CAACA,EAAiB,aAAa,EAAG,cAClC,CAACA,EAAiB,MAAM,EAAG,SAC3B,CAACA,EAAiB,QAAQ,EAAG,gBAC7B,CAACA,EAAiB,OAAO,EAAG,UAC5B,CAACA,EAAiB,IAAI,EAAG,EAC3B",
|
|
6
6
|
"names": ["providerLabels", "ProviderTypeEnum"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../__chunks__/chunk-AXUYY4T7.mjs";import"../../__chunks__/chunk-6ET5BDZH.mjs";import"../../__chunks__/chunk-D2JYGLAC.mjs";import"../../__chunks__/chunk-3GGBXXXJ.mjs";import"../../__chunks__/chunk-O7LCTC4K.mjs";import"../../__chunks__/chunk-KD2IQ32V.mjs";import"../../__chunks__/chunk-5Y2ZDPP6.mjs";import"../../__chunks__/chunk-
|
|
1
|
+
import{a}from"../../__chunks__/chunk-AXUYY4T7.mjs";import"../../__chunks__/chunk-6ET5BDZH.mjs";import"../../__chunks__/chunk-D2JYGLAC.mjs";import"../../__chunks__/chunk-3GGBXXXJ.mjs";import"../../__chunks__/chunk-O7LCTC4K.mjs";import"../../__chunks__/chunk-KD2IQ32V.mjs";import"../../__chunks__/chunk-5Y2ZDPP6.mjs";import"../../__chunks__/chunk-SBMC65W6.mjs";import"../../__chunks__/chunk-ZVIKYGX5.mjs";import"../../__chunks__/chunk-LHEH7L4L.mjs";import"../../__chunks__/chunk-EJV4VNJG.mjs";import"../../__chunks__/chunk-AKWG6QLG.mjs";import"../../__chunks__/chunk-FI444OX3.mjs";import"../../__chunks__/chunk-ULUZWP2P.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-GLXG5BES.mjs";import"../../__chunks__/chunk-ZONHCECO.mjs";import"../../__chunks__/chunk-WOJOOCI6.mjs";export{a as getScamAddressData};
|
|
2
2
|
//# sourceMappingURL=getScamAddressData.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../__chunks__/chunk-
|
|
1
|
+
import{a}from"../../__chunks__/chunk-XFVBNWP2.mjs";import"../../__chunks__/chunk-PFYTYBW3.mjs";import"../../__chunks__/chunk-T4FRQ4JG.mjs";import"../../__chunks__/chunk-UTWIKUIK.mjs";import"../../__chunks__/chunk-UERJ6AKK.mjs";import"../../__chunks__/chunk-KPK72MOE.mjs";import"../../__chunks__/chunk-SAAOQW7P.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-6JM4DPOH.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-HVNTW6GO.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-B7YCKWDU.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-WZGG2YKQ.mjs";import"../../__chunks__/chunk-JMC7CMTU.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-CYCS3K6Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-NTEMINYA.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-WOJOOCI6.mjs";export{a as getCleanApiAddress};
|
|
2
2
|
//# sourceMappingURL=getCleanApiAddress.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../__chunks__/chunk-
|
|
1
|
+
import{a}from"../../__chunks__/chunk-W3Y4J4D3.mjs";import"../../__chunks__/chunk-XFVBNWP2.mjs";import"../../__chunks__/chunk-PFYTYBW3.mjs";import"../../__chunks__/chunk-T4FRQ4JG.mjs";import"../../__chunks__/chunk-UTWIKUIK.mjs";import"../../__chunks__/chunk-UERJ6AKK.mjs";import"../../__chunks__/chunk-KPK72MOE.mjs";import"../../__chunks__/chunk-SAAOQW7P.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-6JM4DPOH.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-HVNTW6GO.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-B7YCKWDU.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-WZGG2YKQ.mjs";import"../../__chunks__/chunk-JMC7CMTU.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-CYCS3K6Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-NTEMINYA.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-WOJOOCI6.mjs";export{a as getGasStationMetadataFromApi};
|
|
2
2
|
//# sourceMappingURL=getGasStationMetadata.mjs.map
|