@multiversx/sdk-dapp 5.5.0 → 5.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (438) hide show
  1. package/README.md +51 -6
  2. package/out/__chunks__/{chunk-IAHAAQ4N.mjs → chunk-2M2GV2W7.mjs} +2 -2
  3. package/out/__chunks__/chunk-3CO6LABA.mjs +2 -0
  4. package/out/__chunks__/chunk-3OH4D5BR.mjs +2 -0
  5. package/out/__chunks__/{chunk-XHZWVRMA.mjs → chunk-3Q7KW43M.mjs} +2 -2
  6. package/out/__chunks__/chunk-4BOBCAS4.mjs +2 -0
  7. package/out/__chunks__/{chunk-ZPRRRKH2.mjs → chunk-4HRP3IO5.mjs} +2 -2
  8. package/out/__chunks__/{chunk-A7F53AUI.mjs → chunk-4RI5BDTQ.mjs} +2 -2
  9. package/out/__chunks__/{chunk-V5RYJVEZ.mjs → chunk-55IS6LOB.mjs} +2 -2
  10. package/out/__chunks__/{chunk-ACY76UCX.mjs → chunk-56LVHY6G.mjs} +2 -2
  11. package/out/__chunks__/{chunk-JA27GJYB.mjs → chunk-573LAOYN.mjs} +2 -2
  12. package/out/__chunks__/{chunk-EUUJCC5E.mjs → chunk-5GSVYADK.mjs} +2 -2
  13. package/out/__chunks__/{chunk-7EZGGGIQ.mjs → chunk-5MYF4FXA.mjs} +2 -2
  14. package/out/__chunks__/chunk-5TP23QQT.mjs +2 -0
  15. package/out/__chunks__/{chunk-OP2IEVBM.mjs → chunk-6GI4GJJM.mjs} +2 -2
  16. package/out/__chunks__/chunk-6NXXKXQD.mjs +2 -0
  17. package/out/__chunks__/{chunk-CFWLPHKF.mjs.map → chunk-6NXXKXQD.mjs.map} +2 -2
  18. package/out/__chunks__/{chunk-NHB5C2VT.mjs → chunk-6P4UYDEH.mjs} +2 -2
  19. package/out/__chunks__/{chunk-HVWFXP4G.mjs → chunk-7GT77JV3.mjs} +2 -2
  20. package/out/__chunks__/{chunk-XJV7SQ3A.mjs → chunk-7KLR4KNT.mjs} +2 -2
  21. package/out/__chunks__/{chunk-HKGUI327.mjs → chunk-7UQUNW33.mjs} +2 -2
  22. package/out/__chunks__/{chunk-ASXSNGBB.mjs → chunk-7YPNGNL4.mjs} +2 -2
  23. package/out/__chunks__/chunk-ABH5J67J.mjs +2 -0
  24. package/out/__chunks__/{chunk-DYCP3KSI.mjs → chunk-ALXWQ4AW.mjs} +2 -2
  25. package/out/__chunks__/{chunk-5W3EWQIR.mjs → chunk-AMO7KAHJ.mjs} +2 -2
  26. package/out/__chunks__/chunk-AN2Y2R26.mjs +2 -0
  27. package/out/__chunks__/{chunk-XT3FTPPC.mjs → chunk-ANNRMKCC.mjs} +2 -2
  28. package/out/__chunks__/{chunk-CCDNY2AY.mjs → chunk-AT3CRFXK.mjs} +2 -2
  29. package/out/__chunks__/{chunk-LBMKLRI7.mjs → chunk-AUNVKFIH.mjs} +2 -2
  30. package/out/__chunks__/{chunk-UYWQOHGW.mjs → chunk-AWBM2UZB.mjs} +2 -2
  31. package/out/__chunks__/chunk-CFERWTQA.mjs +2 -0
  32. package/out/__chunks__/{chunk-MPJUP362.mjs → chunk-CN7Q4PAK.mjs} +2 -2
  33. package/out/__chunks__/{chunk-Y6OAUXIU.mjs → chunk-CWU7HLWJ.mjs} +2 -2
  34. package/out/__chunks__/{chunk-F4JEWIED.mjs → chunk-D57AI24E.mjs} +2 -2
  35. package/out/__chunks__/{chunk-BZ6YK6M7.mjs → chunk-DBCUOZVQ.mjs} +2 -2
  36. package/out/__chunks__/{chunk-ZQQN3ZGD.mjs → chunk-DFFL2BRF.mjs} +2 -2
  37. package/out/__chunks__/{chunk-MI2K6RMJ.mjs → chunk-E6HRB4NY.mjs} +2 -2
  38. package/out/__chunks__/chunk-EFUAR4GY.mjs +2 -0
  39. package/out/__chunks__/chunk-EFUAR4GY.mjs.map +7 -0
  40. package/out/__chunks__/{chunk-742ROBVD.mjs → chunk-ERZNTTM4.mjs} +2 -2
  41. package/out/__chunks__/{chunk-BU2ZPMEQ.mjs → chunk-F3BH7APK.mjs} +2 -2
  42. package/out/__chunks__/{chunk-TAXGAEX2.mjs → chunk-FBEZG2HT.mjs} +2 -2
  43. package/out/__chunks__/{chunk-JI5573A3.mjs → chunk-FEH7HYZ7.mjs} +2 -2
  44. package/out/__chunks__/{chunk-RYEM55ZT.mjs → chunk-FS7DIHGE.mjs} +2 -2
  45. package/out/__chunks__/{chunk-P3VXVK33.mjs → chunk-GXQ2T4I6.mjs} +2 -2
  46. package/out/__chunks__/{chunk-MOJWACYA.mjs → chunk-HAASOAIF.mjs} +2 -2
  47. package/out/__chunks__/{chunk-3U35OFEK.mjs → chunk-HB272ZMK.mjs} +2 -2
  48. package/out/__chunks__/chunk-HC6I7WWS.mjs +2 -0
  49. package/out/__chunks__/chunk-HOW7OPIZ.mjs +2 -0
  50. package/out/__chunks__/{chunk-OVROSPMG.mjs → chunk-IDX37YNY.mjs} +2 -2
  51. package/out/__chunks__/chunk-IODERSYI.mjs +2 -0
  52. package/out/__chunks__/{chunk-LHLDTVQX.mjs → chunk-JFZRSL4X.mjs} +2 -2
  53. package/out/__chunks__/{chunk-HCYLJV62.mjs → chunk-JKJQPTXA.mjs} +2 -2
  54. package/out/__chunks__/{chunk-NODAYKNL.mjs → chunk-JMAPPHO2.mjs} +2 -2
  55. package/out/__chunks__/chunk-JYGTD4Z6.mjs +2 -0
  56. package/out/__chunks__/chunk-JYGTD4Z6.mjs.map +7 -0
  57. package/out/__chunks__/{chunk-I2YHVWIX.mjs → chunk-JZQKOOZH.mjs} +1 -1
  58. package/out/__chunks__/{chunk-I2YHVWIX.mjs.map → chunk-JZQKOOZH.mjs.map} +1 -1
  59. package/out/__chunks__/{chunk-TZQ37JJD.mjs → chunk-KOLUKI2M.mjs} +2 -2
  60. package/out/__chunks__/chunk-L2CFZJIP.mjs +2 -0
  61. package/out/__chunks__/chunk-LXI42ZLN.mjs +2 -0
  62. package/out/__chunks__/{chunk-HFY3MGS6.mjs.map → chunk-LXI42ZLN.mjs.map} +2 -2
  63. package/out/__chunks__/{chunk-JXU7WWWE.mjs → chunk-LXOBPUVH.mjs} +2 -2
  64. package/out/__chunks__/{chunk-JT4AIBHR.mjs → chunk-M4UKLRRZ.mjs} +2 -2
  65. package/out/__chunks__/chunk-MHQ5LO3X.mjs +2 -0
  66. package/out/__chunks__/chunk-MHQ5LO3X.mjs.map +7 -0
  67. package/out/__chunks__/{chunk-I3LSEZWV.mjs → chunk-N4ERTSXN.mjs} +2 -2
  68. package/out/__chunks__/{chunk-O3RDPZCC.mjs → chunk-NJNDC4GE.mjs} +2 -2
  69. package/out/__chunks__/chunk-NXT4VIRT.mjs +2 -0
  70. package/out/__chunks__/{chunk-EIFX46HX.mjs.map → chunk-NXT4VIRT.mjs.map} +1 -1
  71. package/out/__chunks__/chunk-ODZVKBRI.mjs +2 -0
  72. package/out/__chunks__/chunk-ODZVKBRI.mjs.map +7 -0
  73. package/out/__chunks__/{chunk-ZHKCVM4W.mjs → chunk-OHDFIRJV.mjs} +2 -2
  74. package/out/__chunks__/{chunk-S5NXWNSY.mjs → chunk-OM4WELDA.mjs} +2 -2
  75. package/out/__chunks__/{chunk-L2GTIQ4M.mjs → chunk-PBMBPWBN.mjs} +2 -2
  76. package/out/__chunks__/chunk-PF5D2RX6.mjs +2 -0
  77. package/out/__chunks__/chunk-PF5D2RX6.mjs.map +7 -0
  78. package/out/__chunks__/{chunk-7NRHPYRQ.mjs → chunk-PH4CXCVB.mjs} +2 -2
  79. package/out/__chunks__/{chunk-UXCL6NKM.mjs → chunk-PSVVUUWE.mjs} +2 -2
  80. package/out/__chunks__/chunk-PUJ6U5VY.mjs +2 -0
  81. package/out/__chunks__/{chunk-EQ52O73C.mjs.map → chunk-PUJ6U5VY.mjs.map} +3 -3
  82. package/out/__chunks__/{chunk-EZMDYBQN.mjs → chunk-QPFZOAPW.mjs} +2 -2
  83. package/out/__chunks__/{chunk-OOPGEGEC.mjs → chunk-R5HLHBSG.mjs} +2 -2
  84. package/out/__chunks__/{chunk-J4XVM6TB.mjs → chunk-RO4EUTX6.mjs} +2 -2
  85. package/out/__chunks__/{chunk-HJ4B3QID.mjs → chunk-SDXVVQQO.mjs} +2 -2
  86. package/out/__chunks__/{chunk-HY5BQMSU.mjs → chunk-SUY52XEJ.mjs} +2 -2
  87. package/out/__chunks__/chunk-T37IWTKY.mjs +2 -0
  88. package/out/__chunks__/{chunk-NCUUK7SW.mjs → chunk-TGXFOUA3.mjs} +2 -2
  89. package/out/__chunks__/{chunk-JLLPGNLM.mjs → chunk-THMOVML2.mjs} +2 -2
  90. package/out/__chunks__/chunk-TMSAOTEB.mjs +2 -0
  91. package/out/__chunks__/{chunk-J6EXAKY6.mjs → chunk-UIHLSCDT.mjs} +2 -2
  92. package/out/__chunks__/{chunk-VYVJQXGS.mjs → chunk-VPPZKEMN.mjs} +2 -2
  93. package/out/__chunks__/{chunk-CTIBYRMH.mjs → chunk-VVYGAKV2.mjs} +2 -2
  94. package/out/__chunks__/{chunk-BPPANN5H.mjs → chunk-WF6WR5Q6.mjs} +2 -2
  95. package/out/__chunks__/chunk-WIE353OP.mjs +2 -0
  96. package/out/__chunks__/{chunk-OJVDJHBR.mjs → chunk-WQ2UDBF5.mjs} +2 -2
  97. package/out/__chunks__/{chunk-RTGDS56O.mjs → chunk-X5WGNXA6.mjs} +2 -2
  98. package/out/__chunks__/{chunk-72UXA2XD.mjs → chunk-XG6USU6W.mjs} +2 -2
  99. package/out/__chunks__/{chunk-FVEGUUPB.mjs → chunk-XII5X5WW.mjs} +2 -2
  100. package/out/__chunks__/{chunk-V7TKRGVU.mjs → chunk-XN7FWSH5.mjs} +2 -2
  101. package/out/__chunks__/{chunk-WPZIGJNP.mjs → chunk-XTMUHTQL.mjs} +2 -2
  102. package/out/__chunks__/{chunk-2FVSB4I6.mjs → chunk-YOYBYWNH.mjs} +2 -2
  103. package/out/__chunks__/{chunk-QHN6NRIA.mjs → chunk-YTNNUNXA.mjs} +2 -2
  104. package/out/__chunks__/chunk-YTNNUNXA.mjs.map +7 -0
  105. package/out/apiCalls/account/getAccountFromApi.mjs +1 -1
  106. package/out/apiCalls/account/getScamAddressData.mjs +1 -1
  107. package/out/apiCalls/configuration/getCleanApiAddress.mjs +1 -1
  108. package/out/apiCalls/configuration/getGasStationMetadata.mjs +1 -1
  109. package/out/apiCalls/economics/getEconomics.mjs +1 -1
  110. package/out/apiCalls/tokens/getPersistedTokenDetails.mjs +1 -1
  111. package/out/apiCalls/tokens/getTokenDetails.mjs +1 -1
  112. package/out/apiCalls/transactions/getServerTransactionsByHashes.mjs +1 -1
  113. package/out/apiCalls/transactions/getTransactionByHash.mjs +1 -1
  114. package/out/apiCalls/transactions/getTransactionsByHashes.mjs +1 -1
  115. package/out/constants/browser.constants.mjs +1 -1
  116. package/out/constants/storage.constants.mjs +1 -1
  117. package/out/constants/window.constants.cjs +1 -1
  118. package/out/constants/window.constants.cjs.map +1 -1
  119. package/out/constants/window.constants.mjs +1 -1
  120. package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.d.ts +1 -1
  121. package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.mjs +1 -1
  122. package/out/controllers/TransactionsHistoryController/index.mjs +1 -1
  123. package/out/controllers/TransactionsTableController/TransactionsTableController.mjs +1 -1
  124. package/out/controllers/TransactionsTableController/index.mjs +1 -1
  125. package/out/lib/sdkDappUi.mjs +1 -1
  126. package/out/managers/LogoutManager/LogoutManager.mjs +1 -1
  127. package/out/managers/NotificationsFeedManager/NotificationsFeedManager.mjs +1 -1
  128. package/out/managers/NotificationsFeedManager/index.mjs +1 -1
  129. package/out/managers/ToastManager/ToastManager.mjs +1 -1
  130. package/out/managers/ToastManager/ToastUICoordinator.mjs +1 -1
  131. package/out/managers/ToastManager/helpers/LifetimeManager.mjs +1 -1
  132. package/out/managers/ToastManager/helpers/createToastsFromTransactions.mjs +1 -1
  133. package/out/managers/ToastManager/index.mjs +1 -1
  134. package/out/managers/TransactionManager/TransactionManager.mjs +1 -1
  135. package/out/managers/TransactionManager/helpers/getToastDuration.mjs +1 -1
  136. package/out/managers/TransactionManager/index.mjs +1 -1
  137. package/out/managers/UnlockPanelManager/UnlockPanelManager.cjs +1 -1
  138. package/out/managers/UnlockPanelManager/UnlockPanelManager.cjs.map +3 -3
  139. package/out/managers/UnlockPanelManager/UnlockPanelManager.d.ts +2 -1
  140. package/out/managers/UnlockPanelManager/UnlockPanelManager.mjs +1 -1
  141. package/out/managers/UnlockPanelManager/UnlockPanelManager.types.cjs +1 -1
  142. package/out/managers/UnlockPanelManager/UnlockPanelManager.types.cjs.map +2 -2
  143. package/out/managers/UnlockPanelManager/UnlockPanelManager.types.d.ts +1 -0
  144. package/out/managers/UnlockPanelManager/UnlockPanelManager.types.mjs +1 -1
  145. package/out/managers/UnlockPanelManager/index.mjs +1 -1
  146. package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.mjs +1 -1
  147. package/out/managers/internal/LedgerConnectStateManager/index.mjs +1 -1
  148. package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.mjs +1 -1
  149. package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.mjs +1 -1
  150. package/out/managers/internal/PendingTransactionsStateManager/index.mjs +1 -1
  151. package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.mjs +1 -1
  152. package/out/managers/internal/SidePanelBaseManager/index.mjs +1 -1
  153. package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.mjs +1 -1
  154. package/out/managers/internal/SignTransactionsStateManager/index.mjs +1 -1
  155. package/out/managers/internal/UIBaseManager/UIBaseManager.mjs +1 -1
  156. package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.mjs +1 -1
  157. package/out/managers/internal/WalletConnectStateManager/index.mjs +1 -1
  158. package/out/methods/account/getAccount.mjs +1 -1
  159. package/out/methods/account/getAccountInfo.mjs +1 -1
  160. package/out/methods/account/getAddress.mjs +1 -1
  161. package/out/methods/account/getIsLoggedIn.mjs +1 -1
  162. package/out/methods/account/getLatestNonce.mjs +1 -1
  163. package/out/methods/initApp/gasStationMetadata/setGasStationMetadata.mjs +1 -1
  164. package/out/methods/initApp/helpers/waitForStoreRehydration.mjs +1 -1
  165. package/out/methods/initApp/initApp.mjs +1 -1
  166. package/out/methods/initApp/websocket/initializeWebsocketConnection.mjs +1 -1
  167. package/out/methods/initApp/websocket/registerWebsocket.mjs +1 -1
  168. package/out/methods/loginInfo/getLoginInfo.mjs +1 -1
  169. package/out/methods/network/getEgldLabel.mjs +1 -1
  170. package/out/methods/network/getExplorerAddress.mjs +1 -1
  171. package/out/methods/network/getNetworkConfig.mjs +1 -1
  172. package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.mjs +1 -1
  173. package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/checkBatch.mjs +1 -1
  174. package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/runTransactionFailure.mjs +1 -1
  175. package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/runTransactionStatusUpdate.mjs +1 -1
  176. package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/updateTransactionAndSessionStatus.mjs +1 -1
  177. package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/index.mjs +1 -1
  178. package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.mjs +1 -1
  179. package/out/methods/trackTransactions/helpers/getPollingInterval.mjs +1 -1
  180. package/out/methods/trackTransactions/trackTransactions.mjs +1 -1
  181. package/out/methods/transactions/getFailedTransactions.mjs +1 -1
  182. package/out/methods/transactions/getFailedTransactionsSessions.mjs +1 -1
  183. package/out/methods/transactions/getPendingTransactions.mjs +1 -1
  184. package/out/methods/transactions/getPendingTransactionsSessions.mjs +1 -1
  185. package/out/methods/transactions/getSuccessfulTransactions.mjs +1 -1
  186. package/out/methods/transactions/getSuccessfulTransactionsSessions.mjs +1 -1
  187. package/out/methods/transactions/getTransactionSessions.mjs +1 -1
  188. package/out/providers/DappProvider/DappProvider.mjs +1 -1
  189. package/out/providers/DappProvider/helpers/login/helpers/accountLogin.mjs +1 -1
  190. package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.mjs +1 -1
  191. package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.mjs +1 -1
  192. package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.mjs +1 -1
  193. package/out/providers/DappProvider/helpers/login/helpers/getMultisigLoginToken.mjs +1 -1
  194. package/out/providers/DappProvider/helpers/login/helpers/loginWithNativeToken.mjs +1 -1
  195. package/out/providers/DappProvider/helpers/login/helpers/loginWithoutNativeToken.mjs +1 -1
  196. package/out/providers/DappProvider/helpers/login/login.mjs +1 -1
  197. package/out/providers/DappProvider/helpers/logout/logout.mjs +1 -1
  198. package/out/providers/DappProvider/helpers/signErrors/handleSignError.mjs +1 -1
  199. package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.mjs +1 -1
  200. package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.cjs +1 -1
  201. package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.cjs.map +2 -2
  202. package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.d.ts +1 -0
  203. package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.mjs +1 -1
  204. package/out/providers/DappProvider/index.mjs +1 -1
  205. package/out/providers/ProviderFactory.mjs +1 -1
  206. package/out/providers/helpers/accountProvider.mjs +1 -1
  207. package/out/providers/helpers/cancelCrossWindowAction.mjs +1 -1
  208. package/out/providers/helpers/restoreProvider.mjs +1 -1
  209. package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.cjs +1 -1
  210. package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.cjs.map +2 -2
  211. package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.d.ts +2 -1
  212. package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.mjs +1 -1
  213. package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.cjs +1 -1
  214. package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.cjs.map +3 -3
  215. package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.d.ts +2 -1
  216. package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.mjs +1 -1
  217. package/out/providers/strategies/CrossWindowProviderStrategy/index.mjs +1 -1
  218. package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.cjs +1 -1
  219. package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.cjs.map +3 -3
  220. package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.d.ts +2 -1
  221. package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.mjs +1 -1
  222. package/out/providers/strategies/ExtensionProviderStrategy/index.mjs +1 -1
  223. package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.cjs +1 -1
  224. package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.cjs.map +3 -3
  225. package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.d.ts +2 -1
  226. package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.mjs +1 -1
  227. package/out/providers/strategies/IframeProviderStrategy/index.mjs +1 -1
  228. package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.cjs +1 -1
  229. package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.cjs.map +2 -2
  230. package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.d.ts +2 -1
  231. package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.mjs +1 -1
  232. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/authenticateLedgerAccount.mjs +1 -1
  233. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/updateAccountsList/index.mjs +1 -1
  234. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/updateAccountsList/updateAccountsList.mjs +1 -1
  235. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/waitForLedgerSelection.mjs +1 -1
  236. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/index.mjs +1 -1
  237. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/getLedgerProvider.mjs +1 -1
  238. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/index.mjs +1 -1
  239. package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.mjs +1 -1
  240. package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.mjs +1 -1
  241. package/out/providers/strategies/LedgerProviderStrategy/index.mjs +1 -1
  242. package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.cjs +1 -1
  243. package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.cjs.map +3 -3
  244. package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.d.ts +2 -1
  245. package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.mjs +1 -1
  246. package/out/providers/strategies/WalletConnectProviderStrategy/index.mjs +1 -1
  247. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.mjs +1 -1
  248. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.mjs +1 -1
  249. package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.cjs +1 -1
  250. package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.cjs.map +3 -3
  251. package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.d.ts +2 -1
  252. package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.mjs +1 -1
  253. package/out/providers/strategies/WebviewProviderStrategy/index.mjs +1 -1
  254. package/out/providers/strategies/helpers/getPendingTransactionsHandlers.mjs +1 -1
  255. package/out/providers/strategies/helpers/index.mjs +1 -1
  256. package/out/providers/strategies/helpers/signMessage/signMessage.mjs +1 -1
  257. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.mjs +1 -1
  258. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.mjs +1 -1
  259. package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.mjs +1 -1
  260. package/out/providers/strategies/helpers/signTransactions/signTransactions.cjs +1 -1
  261. package/out/providers/strategies/helpers/signTransactions/signTransactions.cjs.map +3 -3
  262. package/out/providers/strategies/helpers/signTransactions/signTransactions.d.ts +3 -1
  263. package/out/providers/strategies/helpers/signTransactions/signTransactions.mjs +1 -1
  264. package/out/react/account/useGetAccount.mjs +1 -1
  265. package/out/react/account/useGetAccountInfo.mjs +1 -1
  266. package/out/react/account/useGetIsLoggedIn.mjs +1 -1
  267. package/out/react/account/useGetLatestNonce.mjs +1 -1
  268. package/out/react/index.mjs +1 -1
  269. package/out/react/loginInfo/useGetLoginInfo.mjs +1 -1
  270. package/out/react/network/useGetNetworkConfig.mjs +1 -1
  271. package/out/react/store/getReactStore.mjs +1 -1
  272. package/out/react/store/useSelector.mjs +1 -1
  273. package/out/react/transactions/useGetFailedTransactions.mjs +1 -1
  274. package/out/react/transactions/useGetFailedTransactionsSessions.mjs +1 -1
  275. package/out/react/transactions/useGetPendingTransactions.mjs +1 -1
  276. package/out/react/transactions/useGetPendingTransactionsSessions.mjs +1 -1
  277. package/out/react/transactions/useGetSuccessfulTransactions.mjs +1 -1
  278. package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs +1 -1
  279. package/out/react/transactions/useGetTransactionSessions.mjs +1 -1
  280. package/out/services/nativeAuth/index.mjs +1 -1
  281. package/out/services/nativeAuth/methods/buildNativeAuthConfig.mjs +1 -1
  282. package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.mjs +1 -1
  283. package/out/services/nativeAuth/nativeAuth.mjs +1 -1
  284. package/out/store/actions/account/accountActions.mjs +1 -1
  285. package/out/store/actions/account/index.mjs +1 -1
  286. package/out/store/actions/cache/cacheActions.mjs +1 -1
  287. package/out/store/actions/cache/index.mjs +1 -1
  288. package/out/store/actions/config/configActions.cjs +1 -1
  289. package/out/store/actions/config/configActions.cjs.map +3 -3
  290. package/out/store/actions/config/configActions.d.ts +1 -0
  291. package/out/store/actions/config/configActions.mjs +1 -1
  292. package/out/store/actions/config/index.mjs +1 -1
  293. package/out/store/actions/loginInfo/loginInfoActions.mjs +1 -1
  294. package/out/store/actions/network/index.mjs +1 -1
  295. package/out/store/actions/network/initializeNetwork.mjs +1 -1
  296. package/out/store/actions/network/networkActions.mjs +1 -1
  297. package/out/store/actions/sharedActions/index.mjs +1 -1
  298. package/out/store/actions/sharedActions/sharedActions.mjs +1 -1
  299. package/out/store/actions/toasts/index.mjs +1 -1
  300. package/out/store/actions/toasts/toastsActions.mjs +1 -1
  301. package/out/store/actions/transactions/transactionsActions.mjs +1 -1
  302. package/out/store/actions/ui/index.mjs +1 -1
  303. package/out/store/actions/ui/uiActions.mjs +1 -1
  304. package/out/store/middleware/applyMiddlewares.mjs +1 -1
  305. package/out/store/middleware/index.mjs +1 -1
  306. package/out/store/middleware/logoutMiddleware.mjs +1 -1
  307. package/out/store/storage/index.mjs +1 -1
  308. package/out/store/storage/storageCallback.mjs +1 -1
  309. package/out/store/store.mjs +1 -1
  310. package/out/utils/ComponentFactory.mjs +1 -1
  311. package/out/utils/account/fetchAccount.mjs +1 -1
  312. package/out/utils/account/refreshAccount.mjs +1 -1
  313. package/out/utils/account/refreshNativeAuthTokenLogin.mjs +1 -1
  314. package/out/utils/transactions/getActiveTransactionsStatus.mjs +1 -1
  315. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/constants.cjs.map +1 -1
  316. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/constants.d.ts +2 -2
  317. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/constants.mjs +1 -1
  318. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/getTransactionValue.mjs +1 -1
  319. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/index.mjs +1 -1
  320. package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.mjs +1 -1
  321. package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.mjs +1 -1
  322. package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.mjs +1 -1
  323. package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.mjs +1 -1
  324. package/out/utils/transactions/getTransactionsHistory/index.mjs +1 -1
  325. package/out/utils/visual/switchTheme.mjs +1 -1
  326. package/out/utils/window/getIsInIframe.mjs +1 -1
  327. package/out/utils/window/getWindowParentOrigin.mjs +1 -1
  328. package/package.json +2 -2
  329. package/out/__chunks__/chunk-5XSOS5YN.mjs +0 -2
  330. package/out/__chunks__/chunk-635MBRGW.mjs +0 -2
  331. package/out/__chunks__/chunk-66O7QA3I.mjs +0 -2
  332. package/out/__chunks__/chunk-6AERD2V5.mjs +0 -2
  333. package/out/__chunks__/chunk-ASW2NQ6C.mjs +0 -2
  334. package/out/__chunks__/chunk-BVZPCM6G.mjs +0 -2
  335. package/out/__chunks__/chunk-CFWLPHKF.mjs +0 -2
  336. package/out/__chunks__/chunk-EIFX46HX.mjs +0 -2
  337. package/out/__chunks__/chunk-EQ52O73C.mjs +0 -2
  338. package/out/__chunks__/chunk-F2YWL325.mjs +0 -2
  339. package/out/__chunks__/chunk-FSL7QGMG.mjs +0 -2
  340. package/out/__chunks__/chunk-HFY3MGS6.mjs +0 -2
  341. package/out/__chunks__/chunk-HIGA7ZDP.mjs +0 -2
  342. package/out/__chunks__/chunk-HY34GQIC.mjs +0 -2
  343. package/out/__chunks__/chunk-HY34GQIC.mjs.map +0 -7
  344. package/out/__chunks__/chunk-IZPXIZ7K.mjs +0 -2
  345. package/out/__chunks__/chunk-OEFGQHO5.mjs +0 -2
  346. package/out/__chunks__/chunk-OEFGQHO5.mjs.map +0 -7
  347. package/out/__chunks__/chunk-OT634PF6.mjs +0 -2
  348. package/out/__chunks__/chunk-PPCVJ6HZ.mjs +0 -2
  349. package/out/__chunks__/chunk-PPCVJ6HZ.mjs.map +0 -7
  350. package/out/__chunks__/chunk-QHN6NRIA.mjs.map +0 -7
  351. package/out/__chunks__/chunk-RTLK66UR.mjs +0 -2
  352. package/out/__chunks__/chunk-RVO7H26H.mjs +0 -2
  353. package/out/__chunks__/chunk-RVO7H26H.mjs.map +0 -7
  354. package/out/__chunks__/chunk-WPOSW4KM.mjs +0 -2
  355. package/out/__chunks__/chunk-WXYAGYYV.mjs +0 -2
  356. package/out/__chunks__/chunk-WXYAGYYV.mjs.map +0 -7
  357. package/out/__chunks__/chunk-ZIZJCYTT.mjs +0 -2
  358. /package/out/__chunks__/{chunk-IAHAAQ4N.mjs.map → chunk-2M2GV2W7.mjs.map} +0 -0
  359. /package/out/__chunks__/{chunk-IZPXIZ7K.mjs.map → chunk-3CO6LABA.mjs.map} +0 -0
  360. /package/out/__chunks__/{chunk-WPOSW4KM.mjs.map → chunk-3OH4D5BR.mjs.map} +0 -0
  361. /package/out/__chunks__/{chunk-XHZWVRMA.mjs.map → chunk-3Q7KW43M.mjs.map} +0 -0
  362. /package/out/__chunks__/{chunk-HIGA7ZDP.mjs.map → chunk-4BOBCAS4.mjs.map} +0 -0
  363. /package/out/__chunks__/{chunk-ZPRRRKH2.mjs.map → chunk-4HRP3IO5.mjs.map} +0 -0
  364. /package/out/__chunks__/{chunk-A7F53AUI.mjs.map → chunk-4RI5BDTQ.mjs.map} +0 -0
  365. /package/out/__chunks__/{chunk-V5RYJVEZ.mjs.map → chunk-55IS6LOB.mjs.map} +0 -0
  366. /package/out/__chunks__/{chunk-ACY76UCX.mjs.map → chunk-56LVHY6G.mjs.map} +0 -0
  367. /package/out/__chunks__/{chunk-JA27GJYB.mjs.map → chunk-573LAOYN.mjs.map} +0 -0
  368. /package/out/__chunks__/{chunk-EUUJCC5E.mjs.map → chunk-5GSVYADK.mjs.map} +0 -0
  369. /package/out/__chunks__/{chunk-7EZGGGIQ.mjs.map → chunk-5MYF4FXA.mjs.map} +0 -0
  370. /package/out/__chunks__/{chunk-635MBRGW.mjs.map → chunk-5TP23QQT.mjs.map} +0 -0
  371. /package/out/__chunks__/{chunk-OP2IEVBM.mjs.map → chunk-6GI4GJJM.mjs.map} +0 -0
  372. /package/out/__chunks__/{chunk-NHB5C2VT.mjs.map → chunk-6P4UYDEH.mjs.map} +0 -0
  373. /package/out/__chunks__/{chunk-HVWFXP4G.mjs.map → chunk-7GT77JV3.mjs.map} +0 -0
  374. /package/out/__chunks__/{chunk-XJV7SQ3A.mjs.map → chunk-7KLR4KNT.mjs.map} +0 -0
  375. /package/out/__chunks__/{chunk-HKGUI327.mjs.map → chunk-7UQUNW33.mjs.map} +0 -0
  376. /package/out/__chunks__/{chunk-ASXSNGBB.mjs.map → chunk-7YPNGNL4.mjs.map} +0 -0
  377. /package/out/__chunks__/{chunk-ZIZJCYTT.mjs.map → chunk-ABH5J67J.mjs.map} +0 -0
  378. /package/out/__chunks__/{chunk-DYCP3KSI.mjs.map → chunk-ALXWQ4AW.mjs.map} +0 -0
  379. /package/out/__chunks__/{chunk-5W3EWQIR.mjs.map → chunk-AMO7KAHJ.mjs.map} +0 -0
  380. /package/out/__chunks__/{chunk-66O7QA3I.mjs.map → chunk-AN2Y2R26.mjs.map} +0 -0
  381. /package/out/__chunks__/{chunk-XT3FTPPC.mjs.map → chunk-ANNRMKCC.mjs.map} +0 -0
  382. /package/out/__chunks__/{chunk-CCDNY2AY.mjs.map → chunk-AT3CRFXK.mjs.map} +0 -0
  383. /package/out/__chunks__/{chunk-LBMKLRI7.mjs.map → chunk-AUNVKFIH.mjs.map} +0 -0
  384. /package/out/__chunks__/{chunk-UYWQOHGW.mjs.map → chunk-AWBM2UZB.mjs.map} +0 -0
  385. /package/out/__chunks__/{chunk-5XSOS5YN.mjs.map → chunk-CFERWTQA.mjs.map} +0 -0
  386. /package/out/__chunks__/{chunk-MPJUP362.mjs.map → chunk-CN7Q4PAK.mjs.map} +0 -0
  387. /package/out/__chunks__/{chunk-Y6OAUXIU.mjs.map → chunk-CWU7HLWJ.mjs.map} +0 -0
  388. /package/out/__chunks__/{chunk-F4JEWIED.mjs.map → chunk-D57AI24E.mjs.map} +0 -0
  389. /package/out/__chunks__/{chunk-BZ6YK6M7.mjs.map → chunk-DBCUOZVQ.mjs.map} +0 -0
  390. /package/out/__chunks__/{chunk-ZQQN3ZGD.mjs.map → chunk-DFFL2BRF.mjs.map} +0 -0
  391. /package/out/__chunks__/{chunk-MI2K6RMJ.mjs.map → chunk-E6HRB4NY.mjs.map} +0 -0
  392. /package/out/__chunks__/{chunk-742ROBVD.mjs.map → chunk-ERZNTTM4.mjs.map} +0 -0
  393. /package/out/__chunks__/{chunk-BU2ZPMEQ.mjs.map → chunk-F3BH7APK.mjs.map} +0 -0
  394. /package/out/__chunks__/{chunk-TAXGAEX2.mjs.map → chunk-FBEZG2HT.mjs.map} +0 -0
  395. /package/out/__chunks__/{chunk-JI5573A3.mjs.map → chunk-FEH7HYZ7.mjs.map} +0 -0
  396. /package/out/__chunks__/{chunk-RYEM55ZT.mjs.map → chunk-FS7DIHGE.mjs.map} +0 -0
  397. /package/out/__chunks__/{chunk-P3VXVK33.mjs.map → chunk-GXQ2T4I6.mjs.map} +0 -0
  398. /package/out/__chunks__/{chunk-MOJWACYA.mjs.map → chunk-HAASOAIF.mjs.map} +0 -0
  399. /package/out/__chunks__/{chunk-3U35OFEK.mjs.map → chunk-HB272ZMK.mjs.map} +0 -0
  400. /package/out/__chunks__/{chunk-F2YWL325.mjs.map → chunk-HC6I7WWS.mjs.map} +0 -0
  401. /package/out/__chunks__/{chunk-OT634PF6.mjs.map → chunk-HOW7OPIZ.mjs.map} +0 -0
  402. /package/out/__chunks__/{chunk-OVROSPMG.mjs.map → chunk-IDX37YNY.mjs.map} +0 -0
  403. /package/out/__chunks__/{chunk-6AERD2V5.mjs.map → chunk-IODERSYI.mjs.map} +0 -0
  404. /package/out/__chunks__/{chunk-LHLDTVQX.mjs.map → chunk-JFZRSL4X.mjs.map} +0 -0
  405. /package/out/__chunks__/{chunk-HCYLJV62.mjs.map → chunk-JKJQPTXA.mjs.map} +0 -0
  406. /package/out/__chunks__/{chunk-NODAYKNL.mjs.map → chunk-JMAPPHO2.mjs.map} +0 -0
  407. /package/out/__chunks__/{chunk-TZQ37JJD.mjs.map → chunk-KOLUKI2M.mjs.map} +0 -0
  408. /package/out/__chunks__/{chunk-FSL7QGMG.mjs.map → chunk-L2CFZJIP.mjs.map} +0 -0
  409. /package/out/__chunks__/{chunk-JXU7WWWE.mjs.map → chunk-LXOBPUVH.mjs.map} +0 -0
  410. /package/out/__chunks__/{chunk-JT4AIBHR.mjs.map → chunk-M4UKLRRZ.mjs.map} +0 -0
  411. /package/out/__chunks__/{chunk-I3LSEZWV.mjs.map → chunk-N4ERTSXN.mjs.map} +0 -0
  412. /package/out/__chunks__/{chunk-O3RDPZCC.mjs.map → chunk-NJNDC4GE.mjs.map} +0 -0
  413. /package/out/__chunks__/{chunk-ZHKCVM4W.mjs.map → chunk-OHDFIRJV.mjs.map} +0 -0
  414. /package/out/__chunks__/{chunk-S5NXWNSY.mjs.map → chunk-OM4WELDA.mjs.map} +0 -0
  415. /package/out/__chunks__/{chunk-L2GTIQ4M.mjs.map → chunk-PBMBPWBN.mjs.map} +0 -0
  416. /package/out/__chunks__/{chunk-7NRHPYRQ.mjs.map → chunk-PH4CXCVB.mjs.map} +0 -0
  417. /package/out/__chunks__/{chunk-UXCL6NKM.mjs.map → chunk-PSVVUUWE.mjs.map} +0 -0
  418. /package/out/__chunks__/{chunk-EZMDYBQN.mjs.map → chunk-QPFZOAPW.mjs.map} +0 -0
  419. /package/out/__chunks__/{chunk-OOPGEGEC.mjs.map → chunk-R5HLHBSG.mjs.map} +0 -0
  420. /package/out/__chunks__/{chunk-J4XVM6TB.mjs.map → chunk-RO4EUTX6.mjs.map} +0 -0
  421. /package/out/__chunks__/{chunk-HJ4B3QID.mjs.map → chunk-SDXVVQQO.mjs.map} +0 -0
  422. /package/out/__chunks__/{chunk-HY5BQMSU.mjs.map → chunk-SUY52XEJ.mjs.map} +0 -0
  423. /package/out/__chunks__/{chunk-BVZPCM6G.mjs.map → chunk-T37IWTKY.mjs.map} +0 -0
  424. /package/out/__chunks__/{chunk-NCUUK7SW.mjs.map → chunk-TGXFOUA3.mjs.map} +0 -0
  425. /package/out/__chunks__/{chunk-JLLPGNLM.mjs.map → chunk-THMOVML2.mjs.map} +0 -0
  426. /package/out/__chunks__/{chunk-ASW2NQ6C.mjs.map → chunk-TMSAOTEB.mjs.map} +0 -0
  427. /package/out/__chunks__/{chunk-J6EXAKY6.mjs.map → chunk-UIHLSCDT.mjs.map} +0 -0
  428. /package/out/__chunks__/{chunk-VYVJQXGS.mjs.map → chunk-VPPZKEMN.mjs.map} +0 -0
  429. /package/out/__chunks__/{chunk-CTIBYRMH.mjs.map → chunk-VVYGAKV2.mjs.map} +0 -0
  430. /package/out/__chunks__/{chunk-BPPANN5H.mjs.map → chunk-WF6WR5Q6.mjs.map} +0 -0
  431. /package/out/__chunks__/{chunk-RTLK66UR.mjs.map → chunk-WIE353OP.mjs.map} +0 -0
  432. /package/out/__chunks__/{chunk-OJVDJHBR.mjs.map → chunk-WQ2UDBF5.mjs.map} +0 -0
  433. /package/out/__chunks__/{chunk-RTGDS56O.mjs.map → chunk-X5WGNXA6.mjs.map} +0 -0
  434. /package/out/__chunks__/{chunk-72UXA2XD.mjs.map → chunk-XG6USU6W.mjs.map} +0 -0
  435. /package/out/__chunks__/{chunk-FVEGUUPB.mjs.map → chunk-XII5X5WW.mjs.map} +0 -0
  436. /package/out/__chunks__/{chunk-V7TKRGVU.mjs.map → chunk-XN7FWSH5.mjs.map} +0 -0
  437. /package/out/__chunks__/{chunk-WPZIGJNP.mjs.map → chunk-XTMUHTQL.mjs.map} +0 -0
  438. /package/out/__chunks__/{chunk-2FVSB4I6.mjs.map → chunk-YOYBYWNH.mjs.map} +0 -0
@@ -0,0 +1,2 @@
1
+ import{a as n}from"./chunk-YTNNUNXA.mjs";import{a as s}from"./chunk-LJX4MW7B.mjs";import{a as e,b as o}from"./chunk-NXT4VIRT.mjs";import{WebviewProvider as d}from"@multiversx/sdk-webview-provider/out/WebviewProvider";var a=class extends n{constructor(r){super(r?.address);this.cancelAction=async()=>{this.provider.cancelAction()};this.signTransactions=async(r,i)=>{if(!this.provider)throw new Error("Provider is not initialized.");try{return await this.provider.signTransactions(r)||[]}catch(t){throw this.cancelAction(),t}};this.signMessage=async r=>{if(!this.provider)throw new Error("Provider is not initialized.");try{return await this.provider.signMessage(r)}catch(i){throw this.cancelAction(),i}};this.provider=d.getInstance({resetStateCallback:()=>{e.localStorage?.clear?.(),e.sessionStorage?.clear?.()}}),this._login=this.provider.login.bind(this.provider)}async init(){return this.initializeAddress(),this.initializeProvider()}logout(){return this.provider.logout()}getType(){return s.webview}getAddress(){throw new Error("Method not implemented.")}setAccount(r){return this.provider.setAccount(r)}isInitialized(){return this.provider.isInitialized()}async initializeProvider(){let r=await this.provider.init(o);return this.address&&this.setAccount({address:this.address}),r}};export{a};
2
+ //# sourceMappingURL=chunk-ODZVKBRI.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.ts"],
4
+ "sourcesContent": ["import { WebviewProvider } from '@multiversx/sdk-webview-provider/out/WebviewProvider';\nimport { safeWindow, version } from 'constants/window.constants';\nimport { Message, Transaction } from 'lib/sdkCore';\nimport { IDAppProviderAccount } from 'lib/sdkDappUtils';\nimport { SignTransactionsOptionsType } from 'providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider';\nimport {\n ProviderTypeEnum,\n ProviderType\n} from 'providers/types/providerFactory.types';\nimport { ProviderErrorsEnum } from 'types/provider.types';\nimport { BaseProviderStrategy } from '../BaseProviderStrategy/BaseProviderStrategy';\n\ntype WebviewProviderProps = {\n address?: string;\n};\n\nexport class WebviewProviderStrategy extends BaseProviderStrategy {\n private readonly provider: WebviewProvider;\n\n constructor(config?: WebviewProviderProps) {\n super(config?.address);\n this.provider = WebviewProvider.getInstance({\n resetStateCallback: () => {\n /* \n Used in Hub to clear storage when logging out via the hub header.\n */\n safeWindow.localStorage?.clear?.();\n safeWindow.sessionStorage?.clear?.();\n }\n });\n\n this._login = this.provider.login.bind(this.provider);\n }\n\n async init(): Promise<boolean> {\n this.initializeAddress();\n return this.initializeProvider();\n }\n\n logout(): Promise<boolean> {\n return this.provider.logout();\n }\n\n getType(): ProviderType {\n return ProviderTypeEnum.webview;\n }\n\n getAddress(): Promise<string | undefined> {\n throw new Error('Method not implemented.');\n }\n\n setAccount(account: IDAppProviderAccount): void {\n return this.provider.setAccount(account);\n }\n\n isInitialized(): boolean {\n return this.provider.isInitialized();\n }\n\n private async initializeProvider() {\n const isInitialized = await this.provider.init(version);\n\n if (this.address) {\n this.setAccount({ address: this.address });\n }\n\n return isInitialized;\n }\n\n cancelAction = async () => {\n this.provider.cancelAction();\n };\n\n signTransactions = async (\n transactions: Transaction[],\n _options?: SignTransactionsOptionsType\n ) => {\n if (!this.provider) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n try {\n const signedTransactions =\n await this.provider.signTransactions(transactions);\n return signedTransactions || [];\n } catch (error) {\n this.cancelAction();\n throw error;\n }\n };\n\n signMessage = async (message: Message) => {\n if (!this.provider) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n try {\n const signedMessage = await this.provider.signMessage(message);\n return signedMessage;\n } catch (error) {\n this.cancelAction();\n throw error;\n }\n };\n}\n"],
5
+ "mappings": "kIAAA,OAAS,mBAAAA,MAAuB,uDAgBzB,IAAMC,EAAN,cAAsCC,CAAqB,CAGhE,YAAYC,EAA+B,CACzC,MAAMA,GAAQ,OAAO,EAiDvB,kBAAe,SAAY,CACzB,KAAK,SAAS,aAAa,CAC7B,EAEA,sBAAmB,MACjBC,EACAC,IACG,CACH,GAAI,CAAC,KAAK,SACR,MAAM,IAAI,oCAAuC,EAGnD,GAAI,CAGF,OADE,MAAM,KAAK,SAAS,iBAAiBD,CAAY,GACtB,CAAC,CAChC,OAASE,EAAO,CACd,WAAK,aAAa,EACZA,CACR,CACF,EAEA,iBAAc,MAAOC,GAAqB,CACxC,GAAI,CAAC,KAAK,SACR,MAAM,IAAI,oCAAuC,EAGnD,GAAI,CAEF,OADsB,MAAM,KAAK,SAAS,YAAYA,CAAO,CAE/D,OAASD,EAAO,CACd,WAAK,aAAa,EACZA,CACR,CACF,EAlFE,KAAK,SAAWE,EAAgB,YAAY,CAC1C,mBAAoB,IAAM,CAIxBC,EAAW,cAAc,QAAQ,EACjCA,EAAW,gBAAgB,QAAQ,CACrC,CACF,CAAC,EAED,KAAK,OAAS,KAAK,SAAS,MAAM,KAAK,KAAK,QAAQ,CACtD,CAEA,MAAM,MAAyB,CAC7B,YAAK,kBAAkB,EAChB,KAAK,mBAAmB,CACjC,CAEA,QAA2B,CACzB,OAAO,KAAK,SAAS,OAAO,CAC9B,CAEA,SAAwB,CACtB,OAAOC,EAAiB,OAC1B,CAEA,YAA0C,CACxC,MAAM,IAAI,MAAM,yBAAyB,CAC3C,CAEA,WAAWC,EAAqC,CAC9C,OAAO,KAAK,SAAS,WAAWA,CAAO,CACzC,CAEA,eAAyB,CACvB,OAAO,KAAK,SAAS,cAAc,CACrC,CAEA,MAAc,oBAAqB,CACjC,IAAMC,EAAgB,MAAM,KAAK,SAAS,KAAKC,CAAO,EAEtD,OAAI,KAAK,SACP,KAAK,WAAW,CAAE,QAAS,KAAK,OAAQ,CAAC,EAGpCD,CACT,CAqCF",
6
+ "names": ["WebviewProvider", "WebviewProviderStrategy", "BaseProviderStrategy", "config", "transactions", "_options", "error", "message", "WebviewProvider", "safeWindow", "ProviderTypeEnum", "account", "isInitialized", "version"]
7
+ }
@@ -1,2 +1,2 @@
1
- import{a as m}from"./chunk-IAHAAQ4N.mjs";import{a as u}from"./chunk-ZPRRRKH2.mjs";import{a}from"./chunk-PMHRZ5Y7.mjs";import{l as p}from"./chunk-E2GGD7D4.mjs";import{b as o}from"./chunk-JT4AIBHR.mjs";var n={};async function b({serverTransaction:r,sessionId:t,isSequential:c}){let{hash:e,status:s,invalidTransaction:f,hasStatusChanged:S}=r;try{if(n[e]>30){o({sessionId:t,status:"timedOut"}),await a({sessionId:t,status:"timedOut"});return}if(f&&!c||s==="sent"){n[e]=n[e]?n[e]+1:1;return}if(c&&!s){let i=u({sessionId:t,transaction:r});await a({sessionId:t,status:i});return}if(S){let i=u({sessionId:t,transaction:r});await a({sessionId:t,status:i})}p(s)&&await m({sessionId:t,transaction:r})}catch(T){console.error(T),o({sessionId:t,status:"timedOut"}),await a({sessionId:t,status:"timedOut"})}}export{b as a};
2
- //# sourceMappingURL=chunk-ZHKCVM4W.mjs.map
1
+ import{a as m}from"./chunk-2M2GV2W7.mjs";import{a as u}from"./chunk-4HRP3IO5.mjs";import{a}from"./chunk-PMHRZ5Y7.mjs";import{l as p}from"./chunk-E2GGD7D4.mjs";import{b as o}from"./chunk-M4UKLRRZ.mjs";var n={};async function b({serverTransaction:r,sessionId:t,isSequential:c}){let{hash:e,status:s,invalidTransaction:f,hasStatusChanged:S}=r;try{if(n[e]>30){o({sessionId:t,status:"timedOut"}),await a({sessionId:t,status:"timedOut"});return}if(f&&!c||s==="sent"){n[e]=n[e]?n[e]+1:1;return}if(c&&!s){let i=u({sessionId:t,transaction:r});await a({sessionId:t,status:i});return}if(S){let i=u({sessionId:t,transaction:r});await a({sessionId:t,status:i})}p(s)&&await m({sessionId:t,transaction:r})}catch(T){console.error(T),o({sessionId:t,status:"timedOut"}),await a({sessionId:t,status:"timedOut"})}}export{b as a};
2
+ //# sourceMappingURL=chunk-OHDFIRJV.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-EIFX46HX.mjs";import{createJSONStorage as o}from"zustand/middleware";var r={persistReducersStorageType:"localStorage"},i=e?o(()=>e[r.persistReducersStorageType]):void 0,p=new Map,n=3e3;export{r as a,i as b,p as c,n as d};
2
- //# sourceMappingURL=chunk-S5NXWNSY.mjs.map
1
+ import{a as e}from"./chunk-NXT4VIRT.mjs";import{createJSONStorage as o}from"zustand/middleware";var r={persistReducersStorageType:"localStorage"},i=e?o(()=>e[r.persistReducersStorageType]):void 0,p=new Map,n=3e3;export{r as a,i as b,p as c,n as d};
2
+ //# sourceMappingURL=chunk-OM4WELDA.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as f}from"./chunk-BSA3IGL6.mjs";import{a as l}from"./chunk-UXCL6NKM.mjs";import{a as g}from"./chunk-OBIQ63DJ.mjs";import{NativeAuthClient as y}from"@multiversx/sdk-native-auth-client";var N=h=>{let{origin:o,apiAddress:i,expirySeconds:r,blockHashShard:s,extraInfo:u,gatewayUrl:d,extraRequestHeaders:k}=l(h),e=new y({origin:o,apiUrl:i,expirySeconds:r,blockHashShard:s,gatewayUrl:d,extraRequestHeaders:k});return{initialize:async t=>{if(!i||!o)return"";let a=()=>e.getCurrentBlockHash(),n=t?.latestBlockInfo;n??=await g({apiAddress:i,blockHashShard:s,getBlockHash:a,noCache:t?.noCache});let{hash:m,timestamp:c}=n,p=e.encodeValue(JSON.stringify({...t?.extraInfo??u,...c?{timestamp:c}:{}}));return`${e.encodeValue(o)}.${m}.${r}.${p}`},getToken:({address:t,token:a,signature:n})=>e.getToken(t,a,n),getTokenExpiration:f}};export{N as a};
2
- //# sourceMappingURL=chunk-L2GTIQ4M.mjs.map
1
+ import{a as f}from"./chunk-BSA3IGL6.mjs";import{a as l}from"./chunk-PSVVUUWE.mjs";import{a as g}from"./chunk-OBIQ63DJ.mjs";import{NativeAuthClient as y}from"@multiversx/sdk-native-auth-client";var N=h=>{let{origin:o,apiAddress:i,expirySeconds:r,blockHashShard:s,extraInfo:u,gatewayUrl:d,extraRequestHeaders:k}=l(h),e=new y({origin:o,apiUrl:i,expirySeconds:r,blockHashShard:s,gatewayUrl:d,extraRequestHeaders:k});return{initialize:async t=>{if(!i||!o)return"";let a=()=>e.getCurrentBlockHash(),n=t?.latestBlockInfo;n??=await g({apiAddress:i,blockHashShard:s,getBlockHash:a,noCache:t?.noCache});let{hash:m,timestamp:c}=n,p=e.encodeValue(JSON.stringify({...t?.extraInfo??u,...c?{timestamp:c}:{}}));return`${e.encodeValue(o)}.${m}.${r}.${p}`},getToken:({address:t,token:a,signature:n})=>e.getToken(t,a,n),getTokenExpiration:f}};export{N as a};
2
+ //# sourceMappingURL=chunk-PBMBPWBN.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as d}from"./chunk-CZEUFCPN.mjs";import{a as s}from"./chunk-JFP2BITI.mjs";import{i as t}from"./chunk-EFUAR4GY.mjs";import{a as l}from"./chunk-TGXFOUA3.mjs";import{b as r}from"./chunk-7VHTZYM2.mjs";import{s as a}from"./chunk-56LVHY6G.mjs";var e=class e extends l{constructor(){super({uiTag:"mvx-unlock-panel",uiDataUpdateEvent:"OPEN"});this.initialData={providers:null,walletAddress:null};this.openUnlockPanel=async()=>{let{walletAddress:n}=r(a()),i=d(t.customProviders,e.allowedProviders);this.data={providers:i,walletAddress:n},await this.openUI(),this.notifyDataUpdate()};this.selectProvider=n=>{if(!this.eventBus)throw new Error("Panel not initialized. Call openUnlockPanel() first.");this.eventBus.publish("SELECT_PROVIDER",{providerType:n})};this.setupEventListeners=async()=>{this.eventBus&&(this.subscribeToEventBus("LOGIN",this.handleLogin),this.subscribeToEventBus("CANCEL_LOGIN",this.handleCancelLogin),this.subscribeToEventBus("CLOSE",this.handleCloseUI))};this.handleCloseUI=async n=>{!n?.isLoginFinished&&e.onClose&&e.onClose(),this.closeUI()};this.handleLogin=async({type:n,anchor:i})=>{if(!e.loginHandler)throw new Error("Login callback not initialized. Please call `init()` first.");try{s(e.loginHandler)?(await(await t.create({type:n,anchor:i})).login(),e.loginHandler()):e.loginHandler({type:n,anchor:i}),await this.handleCloseUI({isLoginFinished:!0})}catch(o){console.error(o),this.eventBus?.publish("CANCEL_IN_PROVIDER",this.data)}};this.handleCancelLogin=async()=>{await t.destroy()};this.data=this.initialData}static getInstance(){return e.instance||(e.instance=new e),e.instance}static init(n){return this.loginHandler=n.loginHandler,this.allowedProviders=n.allowedProviders,n.onClose&&(this.onClose=n.onClose),this.getInstance()}};e.loginHandler=null,e.onClose=null,e.allowedProviders=null;var c=e;export{c as a};
2
+ //# sourceMappingURL=chunk-PF5D2RX6.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/managers/UnlockPanelManager/UnlockPanelManager.ts"],
4
+ "sourcesContent": ["import { UITagsEnum } from 'constants/UITags.enum';\nimport { MvxUnlockPanel } from 'lib/sdkDappUi';\nimport { ProviderFactory } from 'providers/ProviderFactory';\nimport {\n IProviderBase,\n IProviderFactory,\n ProviderType\n} from 'providers/types/providerFactory.types';\nimport { networkSelector } from 'store/selectors/networkSelectors';\nimport { getState } from 'store/store';\nimport {\n OnCloseUnlockPanelType,\n LoginHandlerType,\n UnlockPanelEventsEnum,\n UnlockPanelManagerInitParamsType\n} from './UnlockPanelManager.types';\nimport { SidePanelBaseManager } from '../internal/SidePanelBaseManager';\nimport { getIsSimpleLoginCallback } from './helpers/getIsSimpleLoginCallback';\nimport { getProvidersList } from './helpers/getProviderList';\n\ninterface IUnlockPanelManagerData {\n providers: IProviderBase[] | null;\n walletAddress: string | null;\n}\n\nexport class UnlockPanelManager extends SidePanelBaseManager<\n MvxUnlockPanel,\n IUnlockPanelManagerData,\n UnlockPanelEventsEnum\n> {\n protected initialData: IUnlockPanelManagerData = {\n providers: null,\n walletAddress: null\n };\n\n private static instance: UnlockPanelManager;\n private static loginHandler: LoginHandlerType | null = null;\n private static onClose: OnCloseUnlockPanelType | null = null;\n private static allowedProviders?: ProviderType[] | null = null;\n\n constructor() {\n super({\n uiTag: UITagsEnum.UNLOCK_PANEL,\n uiDataUpdateEvent: UnlockPanelEventsEnum.OPEN\n });\n\n this.data = this.initialData;\n }\n\n public static getInstance(): UnlockPanelManager {\n if (!UnlockPanelManager.instance) {\n UnlockPanelManager.instance = new UnlockPanelManager();\n }\n return UnlockPanelManager.instance;\n }\n\n public static init(params: UnlockPanelManagerInitParamsType) {\n this.loginHandler = params.loginHandler;\n this.allowedProviders = params.allowedProviders;\n\n if (params.onClose) {\n this.onClose = params.onClose;\n }\n\n return this.getInstance();\n }\n\n public openUnlockPanel = async () => {\n const { walletAddress } = networkSelector(getState());\n\n const providers = getProvidersList(\n ProviderFactory.customProviders,\n UnlockPanelManager.allowedProviders\n );\n\n this.data = {\n providers,\n walletAddress\n };\n\n await this.openUI();\n this.notifyDataUpdate();\n };\n\n public selectProvider = (providerType: ProviderType) => {\n if (!this.eventBus) {\n throw new Error('Panel not initialized. Call openUnlockPanel() first.');\n }\n\n this.eventBus.publish(UnlockPanelEventsEnum.SELECT_PROVIDER, {\n providerType\n });\n };\n\n protected setupEventListeners = async () => {\n if (!this.eventBus) {\n return;\n }\n\n this.subscribeToEventBus(UnlockPanelEventsEnum.LOGIN, this.handleLogin);\n this.subscribeToEventBus(\n UnlockPanelEventsEnum.CANCEL_LOGIN,\n this.handleCancelLogin\n );\n this.subscribeToEventBus(UnlockPanelEventsEnum.CLOSE, this.handleCloseUI);\n };\n\n private readonly handleCloseUI = async (options?: {\n isLoginFinished?: boolean;\n }) => {\n if (!options?.isLoginFinished && UnlockPanelManager.onClose) {\n UnlockPanelManager.onClose();\n }\n\n this.closeUI();\n };\n\n private readonly handleLogin = async ({ type, anchor }: IProviderFactory) => {\n if (!UnlockPanelManager.loginHandler) {\n throw new Error(\n 'Login callback not initialized. Please call `init()` first.'\n );\n }\n\n try {\n if (getIsSimpleLoginCallback(UnlockPanelManager.loginHandler)) {\n const provider = await ProviderFactory.create({ type, anchor });\n await provider.login();\n UnlockPanelManager.loginHandler();\n } else {\n UnlockPanelManager.loginHandler({ type, anchor });\n }\n await this.handleCloseUI({ isLoginFinished: true });\n } catch (error) {\n console.error(error);\n this.eventBus?.publish(\n UnlockPanelEventsEnum.CANCEL_IN_PROVIDER,\n this.data\n );\n }\n };\n\n private readonly handleCancelLogin = async () => {\n await ProviderFactory.destroy();\n };\n}\n"],
5
+ "mappings": "sPAyBO,IAAMA,EAAN,MAAMA,UAA2BC,CAItC,CAWA,aAAc,CACZ,MAAM,CACJ,yBACA,wBACF,CAAC,EAdH,KAAU,YAAuC,CAC/C,UAAW,KACX,cAAe,IACjB,EAkCA,KAAO,gBAAkB,SAAY,CACnC,GAAM,CAAE,cAAAC,CAAc,EAAIC,EAAgBC,EAAS,CAAC,EAE9CC,EAAYC,EAChBC,EAAgB,gBAChBP,EAAmB,gBACrB,EAEA,KAAK,KAAO,CACV,UAAAK,EACA,cAAAH,CACF,EAEA,MAAM,KAAK,OAAO,EAClB,KAAK,iBAAiB,CACxB,EAEA,KAAO,eAAkBM,GAA+B,CACtD,GAAI,CAAC,KAAK,SACR,MAAM,IAAI,MAAM,sDAAsD,EAGxE,KAAK,SAAS,0BAA+C,CAC3D,aAAAA,CACF,CAAC,CACH,EAEA,KAAU,oBAAsB,SAAY,CACrC,KAAK,WAIV,KAAK,4BAAiD,KAAK,WAAW,EACtE,KAAK,mCAEH,KAAK,iBACP,EACA,KAAK,4BAAiD,KAAK,aAAa,EAC1E,EAEA,KAAiB,cAAgB,MAAOC,GAElC,CACA,CAACA,GAAS,iBAAmBT,EAAmB,SAClDA,EAAmB,QAAQ,EAG7B,KAAK,QAAQ,CACf,EAEA,KAAiB,YAAc,MAAO,CAAE,KAAAU,EAAM,OAAAC,CAAO,IAAwB,CAC3E,GAAI,CAACX,EAAmB,aACtB,MAAM,IAAI,MACR,6DACF,EAGF,GAAI,CACEY,EAAyBZ,EAAmB,YAAY,GAE1D,MADiB,MAAMO,EAAgB,OAAO,CAAE,KAAAG,EAAM,OAAAC,CAAO,CAAC,GAC/C,MAAM,EACrBX,EAAmB,aAAa,GAEhCA,EAAmB,aAAa,CAAE,KAAAU,EAAM,OAAAC,CAAO,CAAC,EAElD,MAAM,KAAK,cAAc,CAAE,gBAAiB,EAAK,CAAC,CACpD,OAASE,EAAO,CACd,QAAQ,MAAMA,CAAK,EACnB,KAAK,UAAU,6BAEb,KAAK,IACP,CACF,CACF,EAEA,KAAiB,kBAAoB,SAAY,CAC/C,MAAMN,EAAgB,QAAQ,CAChC,EAlGE,KAAK,KAAO,KAAK,WACnB,CAEA,OAAc,aAAkC,CAC9C,OAAKP,EAAmB,WACtBA,EAAmB,SAAW,IAAIA,GAE7BA,EAAmB,QAC5B,CAEA,OAAc,KAAKc,EAA0C,CAC3D,YAAK,aAAeA,EAAO,aAC3B,KAAK,iBAAmBA,EAAO,iBAE3BA,EAAO,UACT,KAAK,QAAUA,EAAO,SAGjB,KAAK,YAAY,CAC1B,CAgFF,EAxHad,EAWI,aAAwC,KAX5CA,EAYI,QAAyC,KAZ7CA,EAaI,iBAA2C,KAbrD,IAAMe,EAANf",
6
+ "names": ["_UnlockPanelManager", "SidePanelBaseManager", "walletAddress", "networkSelector", "getState", "providers", "getProvidersList", "ProviderFactory", "providerType", "options", "type", "anchor", "getIsSimpleLoginCallback", "error", "params", "UnlockPanelManager"]
7
+ }
@@ -1,2 +1,2 @@
1
- import{a as S}from"./chunk-QFXS7HGL.mjs";import{j as d,k as f,l as u,n as I}from"./chunk-E2GGD7D4.mjs";import{a as l}from"./chunk-XXV6KGR4.mjs";import{a as p}from"./chunk-742ROBVD.mjs";import{a as c}from"./chunk-NGM3AVCY.mjs";import{s as m}from"./chunk-ACY76UCX.mjs";import{c as T}from"./chunk-FK6DWWZF.mjs";async function G(g){let s=g?.store??m(),n=[],a=[],y=l(s),F=c(s),C=T(s);for(let o of y.transactionToasts){let r=F[o.toastId];if(!r?.status)continue;let{status:t,transactions:P,transactionsDisplayInfo:h}=r,L=await p({transactions:P,store:s}),O=I(t),R=u(t),v=f(t),e=O||R||v,w=d(t),{startTime:x,endTime:D}=o;if(e&&a.some(b=>b.toastId===o.toastId))continue;let i=S({toastId:o.toastId,address:C,status:t,transactions:L,transactionsDisplayInfo:h,startTime:x,endTime:D});e&&a.push(i),w&&n.push(i)}return{pendingTransactionToasts:n,completedTransactionToasts:a}}export{G as a};
2
- //# sourceMappingURL=chunk-7NRHPYRQ.mjs.map
1
+ import{a as S}from"./chunk-QFXS7HGL.mjs";import{j as d,k as f,l as u,n as I}from"./chunk-E2GGD7D4.mjs";import{a as l}from"./chunk-XXV6KGR4.mjs";import{a as p}from"./chunk-ERZNTTM4.mjs";import{a as c}from"./chunk-NGM3AVCY.mjs";import{s as m}from"./chunk-56LVHY6G.mjs";import{c as T}from"./chunk-FK6DWWZF.mjs";async function G(g){let s=g?.store??m(),n=[],a=[],y=l(s),F=c(s),C=T(s);for(let o of y.transactionToasts){let r=F[o.toastId];if(!r?.status)continue;let{status:t,transactions:P,transactionsDisplayInfo:h}=r,L=await p({transactions:P,store:s}),O=I(t),R=u(t),v=f(t),e=O||R||v,w=d(t),{startTime:x,endTime:D}=o;if(e&&a.some(b=>b.toastId===o.toastId))continue;let i=S({toastId:o.toastId,address:C,status:t,transactions:L,transactionsDisplayInfo:h,startTime:x,endTime:D});e&&a.push(i),w&&n.push(i)}return{pendingTransactionToasts:n,completedTransactionToasts:a}}export{G as a};
2
+ //# sourceMappingURL=chunk-PH4CXCVB.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"./chunk-VYVJQXGS.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-UXCL6NKM.mjs.map
1
+ import{a}from"./chunk-VPPZKEMN.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-PSVVUUWE.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as o}from"./chunk-4TBVQD27.mjs";import{q as n}from"./chunk-56LVHY6G.mjs";var r=e=>n().setState(({config:t})=>{t.nativeAuthConfig=e},!1,{type:"setNativeAuthConfig",payload:{value:e}}),c=e=>n().setState(({config:t})=>{t.websocketStatus=e},!1,{type:"setWebsocketStatus",payload:{value:e}}),C=e=>n().setState(({config:t})=>{if(e){let l=e.walletConnectV2RelayAddress||o.walletConnectV2RelayAddress,s=e.walletConnectDeepLink||o.walletConnectDeepLink;t.walletConnectConfig={...e,walletConnectDeepLink:s,walletConnectV2RelayAddress:l}}else t.walletConnectConfig=null},!1,{type:"setWalletConnectConfig",payload:{value:e}}),f=e=>n().setState(({config:t})=>{t.settings=e},!1,{type:"setProviderSettings",payload:{value:e}}),g=e=>n().setState(({config:t})=>{t.settings||(t.settings={}),t.settings.isSigningUiEnabled=e},!1,{type:"setIsSigningUiEnabled"});export{r as a,c as b,C as c,f as d,g as e};
2
+ //# sourceMappingURL=chunk-PUJ6U5VY.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/store/actions/config/configActions.ts"],
4
- "sourcesContent": ["import { fallbackWalletConnectConfigurations } from 'constants/walletConnect.constants';\nimport { WebsocketConnectionStatusEnum } from 'constants/websocket.constants';\nimport { WalletConnectConfig } from 'providers/strategies/WalletConnectProviderStrategy/types';\nimport { NativeAuthConfigType } from 'services/nativeAuth/nativeAuth.types';\nimport { IProviderSettings } from 'store/slices/config/config.types';\nimport { getStore } from 'store/store';\n\nexport const setNativeAuthConfig = (config: NativeAuthConfigType | null) =>\n getStore().setState(\n ({ config: state }) => {\n state.nativeAuthConfig = config;\n },\n false,\n {\n type: 'setNativeAuthConfig',\n // @ts-ignore\n payload: {\n value: config\n }\n }\n );\n\nexport const setWebsocketStatus = (status: WebsocketConnectionStatusEnum) =>\n getStore().setState(\n ({ config: state }) => {\n state.websocketStatus = status;\n },\n false,\n {\n type: 'setWebsocketStatus',\n // @ts-ignore\n payload: {\n value: status\n }\n }\n );\n\nexport const setWalletConnectConfig = (config: WalletConnectConfig | null) =>\n getStore().setState(\n ({ config: state }) => {\n if (config) {\n const walletConnectV2RelayAddress =\n config.walletConnectV2RelayAddress ||\n fallbackWalletConnectConfigurations.walletConnectV2RelayAddress;\n const walletConnectDeepLink =\n config.walletConnectDeepLink ||\n fallbackWalletConnectConfigurations.walletConnectDeepLink;\n\n state.walletConnectConfig = {\n ...config,\n walletConnectDeepLink,\n walletConnectV2RelayAddress\n };\n } else {\n state.walletConnectConfig = null;\n }\n },\n false,\n {\n type: 'setWalletConnectConfig',\n // @ts-ignore\n payload: {\n value: config\n }\n }\n );\n\nexport const setProviderSettings = (settings: IProviderSettings | null) =>\n getStore().setState(\n ({ config: state }) => {\n state.settings = settings;\n },\n false,\n {\n type: 'setProviderSettings',\n // @ts-ignore\n payload: {\n value: settings\n }\n }\n );\n"],
5
- "mappings": "kFAOO,IAAMA,EAAuBC,GAClCC,EAAS,EAAE,SACT,CAAC,CAAE,OAAQC,CAAM,IAAM,CACrBA,EAAM,iBAAmBF,CAC3B,EACA,GACA,CACE,KAAM,sBAEN,QAAS,CACP,MAAOA,CACT,CACF,CACF,EAEWG,EAAsBC,GACjCH,EAAS,EAAE,SACT,CAAC,CAAE,OAAQC,CAAM,IAAM,CACrBA,EAAM,gBAAkBE,CAC1B,EACA,GACA,CACE,KAAM,qBAEN,QAAS,CACP,MAAOA,CACT,CACF,CACF,EAEWC,EAA0BL,GACrCC,EAAS,EAAE,SACT,CAAC,CAAE,OAAQC,CAAM,IAAM,CACrB,GAAIF,EAAQ,CACV,IAAMM,EACJN,EAAO,6BACPO,EAAoC,4BAChCC,EACJR,EAAO,uBACPO,EAAoC,sBAEtCL,EAAM,oBAAsB,CAC1B,GAAGF,EACH,sBAAAQ,EACA,4BAAAF,CACF,CACF,MACEJ,EAAM,oBAAsB,IAEhC,EACA,GACA,CACE,KAAM,yBAEN,QAAS,CACP,MAAOF,CACT,CACF,CACF,EAEWS,EAAuBC,GAClCT,EAAS,EAAE,SACT,CAAC,CAAE,OAAQC,CAAM,IAAM,CACrBA,EAAM,SAAWQ,CACnB,EACA,GACA,CACE,KAAM,sBAEN,QAAS,CACP,MAAOA,CACT,CACF,CACF",
6
- "names": ["setNativeAuthConfig", "config", "getStore", "state", "setWebsocketStatus", "status", "setWalletConnectConfig", "walletConnectV2RelayAddress", "fallbackWalletConnectConfigurations", "walletConnectDeepLink", "setProviderSettings", "settings"]
4
+ "sourcesContent": ["import { fallbackWalletConnectConfigurations } from 'constants/walletConnect.constants';\nimport { WebsocketConnectionStatusEnum } from 'constants/websocket.constants';\nimport { WalletConnectConfig } from 'providers/strategies/WalletConnectProviderStrategy/types';\nimport { NativeAuthConfigType } from 'services/nativeAuth/nativeAuth.types';\nimport { IProviderSettings } from 'store/slices/config/config.types';\nimport { getStore } from 'store/store';\n\nexport const setNativeAuthConfig = (config: NativeAuthConfigType | null) =>\n getStore().setState(\n ({ config: state }) => {\n state.nativeAuthConfig = config;\n },\n false,\n {\n type: 'setNativeAuthConfig',\n // @ts-ignore\n payload: {\n value: config\n }\n }\n );\n\nexport const setWebsocketStatus = (status: WebsocketConnectionStatusEnum) =>\n getStore().setState(\n ({ config: state }) => {\n state.websocketStatus = status;\n },\n false,\n {\n type: 'setWebsocketStatus',\n // @ts-ignore\n payload: {\n value: status\n }\n }\n );\n\nexport const setWalletConnectConfig = (config: WalletConnectConfig | null) =>\n getStore().setState(\n ({ config: state }) => {\n if (config) {\n const walletConnectV2RelayAddress =\n config.walletConnectV2RelayAddress ||\n fallbackWalletConnectConfigurations.walletConnectV2RelayAddress;\n const walletConnectDeepLink =\n config.walletConnectDeepLink ||\n fallbackWalletConnectConfigurations.walletConnectDeepLink;\n\n state.walletConnectConfig = {\n ...config,\n walletConnectDeepLink,\n walletConnectV2RelayAddress\n };\n } else {\n state.walletConnectConfig = null;\n }\n },\n false,\n {\n type: 'setWalletConnectConfig',\n // @ts-ignore\n payload: {\n value: config\n }\n }\n );\n\nexport const setProviderSettings = (settings: IProviderSettings | null) =>\n getStore().setState(\n ({ config: state }) => {\n state.settings = settings;\n },\n false,\n {\n type: 'setProviderSettings',\n // @ts-ignore\n payload: {\n value: settings\n }\n }\n );\n\nexport const setIsSigningUiEnabled = (isEnabled: boolean) =>\n getStore().setState(\n ({ config: state }) => {\n if (!state.settings) {\n state.settings = {};\n }\n state.settings.isSigningUiEnabled = isEnabled;\n },\n false,\n {\n type: 'setIsSigningUiEnabled'\n }\n );\n"],
5
+ "mappings": "kFAOO,IAAMA,EAAuBC,GAClCC,EAAS,EAAE,SACT,CAAC,CAAE,OAAQC,CAAM,IAAM,CACrBA,EAAM,iBAAmBF,CAC3B,EACA,GACA,CACE,KAAM,sBAEN,QAAS,CACP,MAAOA,CACT,CACF,CACF,EAEWG,EAAsBC,GACjCH,EAAS,EAAE,SACT,CAAC,CAAE,OAAQC,CAAM,IAAM,CACrBA,EAAM,gBAAkBE,CAC1B,EACA,GACA,CACE,KAAM,qBAEN,QAAS,CACP,MAAOA,CACT,CACF,CACF,EAEWC,EAA0BL,GACrCC,EAAS,EAAE,SACT,CAAC,CAAE,OAAQC,CAAM,IAAM,CACrB,GAAIF,EAAQ,CACV,IAAMM,EACJN,EAAO,6BACPO,EAAoC,4BAChCC,EACJR,EAAO,uBACPO,EAAoC,sBAEtCL,EAAM,oBAAsB,CAC1B,GAAGF,EACH,sBAAAQ,EACA,4BAAAF,CACF,CACF,MACEJ,EAAM,oBAAsB,IAEhC,EACA,GACA,CACE,KAAM,yBAEN,QAAS,CACP,MAAOF,CACT,CACF,CACF,EAEWS,EAAuBC,GAClCT,EAAS,EAAE,SACT,CAAC,CAAE,OAAQC,CAAM,IAAM,CACrBA,EAAM,SAAWQ,CACnB,EACA,GACA,CACE,KAAM,sBAEN,QAAS,CACP,MAAOA,CACT,CACF,CACF,EAEWC,EAAyBC,GACpCX,EAAS,EAAE,SACT,CAAC,CAAE,OAAQC,CAAM,IAAM,CAChBA,EAAM,WACTA,EAAM,SAAW,CAAC,GAEpBA,EAAM,SAAS,mBAAqBU,CACtC,EACA,GACA,CACE,KAAM,uBACR,CACF",
6
+ "names": ["setNativeAuthConfig", "config", "getStore", "state", "setWebsocketStatus", "status", "setWalletConnectConfig", "walletConnectV2RelayAddress", "fallbackWalletConnectConfigurations", "walletConnectDeepLink", "setProviderSettings", "settings", "setIsSigningUiEnabled", "isEnabled"]
7
7
  }
@@ -1,2 +1,2 @@
1
- import{b as r,c as n}from"./chunk-QJGFIK7H.mjs";import{l as g}from"./chunk-CFWLPHKF.mjs";import{q as M}from"./chunk-ACY76UCX.mjs";import{a as c}from"./chunk-FK6DWWZF.mjs";import{d as u,f as p,g as l}from"./chunk-DA76AK4I.mjs";import{a as d}from"./chunk-EIFX46HX.mjs";var m=class{constructor({onLoginCancelled:e}){this.handlers=new Map;this.store=M();this.isLoginInitiated=!1;this.handleMessage=this.handleMessage.bind(this),this.handleLoginCancelled=e}startListening(){d.addEventListener("message",this.handleMessage)}stopListening(){d.removeEventListener("message",this.handleMessage)}registerEvent(e,s){this.handlers.set(e,s)}unregisterEvent(e){this.handlers.delete(e)}async handleMessage(e){let s=e.data?.type;if(typeof s=="string"&&this.handlers.has(s))return this.handlers.get(s)?.(e);switch(s){case r.finalizeHandshakeRequest:this.handshake({event:e});break;case r.signMessageRequest:this.signMessage({event:e,payload:e.data.payload});break;case r.loginRequest:this.isLoginInitiated=!0,this.login({event:e,payload:e.data.payload});break;case r.signTransactionsRequest:this.signTransactions({event:e});break;case n.cancelResponse:case"cancelAction":this.isLoginInitiated&&await this.handleLoginCancelled();break;default:break}}async login({event:e,payload:s}){let a=s?.token;if(a)try{let{address:t}=c(this.store.getState()),o=g(),i=`${t}${a}`,y=new l({address:new p(t),data:new Uint8Array(Buffer.from(i))}),f=(await o.signMessage(y))?.signature??"";e.source?.postMessage({type:n.loginResponse,payload:{data:{address:t,signature:Buffer.from(f).toString("hex")}}},{targetOrigin:e.origin})}catch{this.isLoginInitiated&&(await this.handleLoginCancelled(),e.source?.postMessage({type:n.cancelResponse,payload:null},{targetOrigin:e.origin}))}finally{this.isLoginInitiated=!1}}handshake({event:e}){let s=Date.now().toString();e.source?.postMessage({type:n.finalizeHandshakeResponse,payload:{data:s}},{targetOrigin:e.origin})}async signMessage({event:e,payload:s}){let{address:a}=c(this.store.getState()),{message:t}=s;try{let o=new l({address:new p(a),data:new Uint8Array(Buffer.from(t))}),h=(await g().signMessage(o))?.signature??"";e.source?.postMessage({type:n.signMessageResponse,payload:{data:{signature:Buffer.from(h).toString("hex"),status:"signed"}}},{targetOrigin:e.origin})}catch{throw new Error("Could not sign message")}}async signTransactions({event:e}){let s=g(),{payload:a}=e.data;if(Array.isArray(a))try{let t=a.map(i=>u.newFromPlainObject(i)),o=await s.signTransactions(t);e.source?.postMessage({type:n.signTransactionsResponse,payload:{data:o.map(i=>i.toPlainObject())}},{targetOrigin:e.origin})}catch{throw new Error("Could not sign transactions")}}};export{m as a};
2
- //# sourceMappingURL=chunk-EZMDYBQN.mjs.map
1
+ import{b as r,c as n}from"./chunk-QJGFIK7H.mjs";import{l as g}from"./chunk-6NXXKXQD.mjs";import{q as M}from"./chunk-56LVHY6G.mjs";import{a as c}from"./chunk-FK6DWWZF.mjs";import{d as u,f as p,g as l}from"./chunk-DA76AK4I.mjs";import{a as d}from"./chunk-NXT4VIRT.mjs";var m=class{constructor({onLoginCancelled:e}){this.handlers=new Map;this.store=M();this.isLoginInitiated=!1;this.handleMessage=this.handleMessage.bind(this),this.handleLoginCancelled=e}startListening(){d.addEventListener("message",this.handleMessage)}stopListening(){d.removeEventListener("message",this.handleMessage)}registerEvent(e,s){this.handlers.set(e,s)}unregisterEvent(e){this.handlers.delete(e)}async handleMessage(e){let s=e.data?.type;if(typeof s=="string"&&this.handlers.has(s))return this.handlers.get(s)?.(e);switch(s){case r.finalizeHandshakeRequest:this.handshake({event:e});break;case r.signMessageRequest:this.signMessage({event:e,payload:e.data.payload});break;case r.loginRequest:this.isLoginInitiated=!0,this.login({event:e,payload:e.data.payload});break;case r.signTransactionsRequest:this.signTransactions({event:e});break;case n.cancelResponse:case"cancelAction":this.isLoginInitiated&&await this.handleLoginCancelled();break;default:break}}async login({event:e,payload:s}){let a=s?.token;if(a)try{let{address:t}=c(this.store.getState()),o=g(),i=`${t}${a}`,y=new l({address:new p(t),data:new Uint8Array(Buffer.from(i))}),f=(await o.signMessage(y))?.signature??"";e.source?.postMessage({type:n.loginResponse,payload:{data:{address:t,signature:Buffer.from(f).toString("hex")}}},{targetOrigin:e.origin})}catch{this.isLoginInitiated&&(await this.handleLoginCancelled(),e.source?.postMessage({type:n.cancelResponse,payload:null},{targetOrigin:e.origin}))}finally{this.isLoginInitiated=!1}}handshake({event:e}){let s=Date.now().toString();e.source?.postMessage({type:n.finalizeHandshakeResponse,payload:{data:s}},{targetOrigin:e.origin})}async signMessage({event:e,payload:s}){let{address:a}=c(this.store.getState()),{message:t}=s;try{let o=new l({address:new p(a),data:new Uint8Array(Buffer.from(t))}),h=(await g().signMessage(o))?.signature??"";e.source?.postMessage({type:n.signMessageResponse,payload:{data:{signature:Buffer.from(h).toString("hex"),status:"signed"}}},{targetOrigin:e.origin})}catch{throw new Error("Could not sign message")}}async signTransactions({event:e}){let s=g(),{payload:a}=e.data;if(Array.isArray(a))try{let t=a.map(i=>u.newFromPlainObject(i)),o=await s.signTransactions(t);e.source?.postMessage({type:n.signTransactionsResponse,payload:{data:o.map(i=>i.toPlainObject())}},{targetOrigin:e.origin})}catch{throw new Error("Could not sign transactions")}}};export{m as a};
2
+ //# sourceMappingURL=chunk-QPFZOAPW.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as U}from"./chunk-BVZPCM6G.mjs";import{a as B}from"./chunk-GBDHEWNQ.mjs";import{a as $}from"./chunk-MOJWACYA.mjs";import{a as _}from"./chunk-CB4IL76J.mjs";import{a as j}from"./chunk-7Z7IX367.mjs";import{a as z}from"./chunk-VCQBYNNS.mjs";import{a as V}from"./chunk-RBZC4PEU.mjs";import{a as R}from"./chunk-OMBZCVQZ.mjs";import{l as M}from"./chunk-CFWLPHKF.mjs";import{a as w}from"./chunk-YGI3KXMZ.mjs";import{a as v}from"./chunk-7EZGGGIQ.mjs";import{a as O}from"./chunk-RYIJWGFA.mjs";import{k as x}from"./chunk-QNYO7NI5.mjs";import{a as A}from"./chunk-YJCTRUJT.mjs";import{a as h,c as L,f}from"./chunk-PJWJZHIS.mjs";import{a as G}from"./chunk-2JKCBTYK.mjs";import{c as F}from"./chunk-PWAP64SN.mjs";import{a as C}from"./chunk-EIFX46HX.mjs";import{BigNumber as St}from"bignumber.js";async function qt({allTransactions:u,currentScreenIndex:s,egldLabel:o,network:n,gasPriceData:T,price:S,address:m,username:q,shard:H,signedIndexes:e,parsedTransactionsByDataField:K}){let c=u[s],W=c?.transaction?.sender.toString(),p=c?.transaction,i=p?.toPlainObject(),D=null,y=null,t=await $({egldLabel:o,sender:W,apiAddress:n.apiAddress,address:m,parsedTransactionsByDataField:K})(c),d=!t?.transactionTokenInfo?.tokenId,{tokenId:g,nonce:l,amount:I=""}=t?.transactionTokenInfo??{},Z=g&&l&&l.length>0?`${g}-${l}`:g,J=await v({tokenId:Z}),{esdtPrice:Q,tokenDecimals:X,type:r,identifier:a,tokenImageUrl:Y}=J;if(r==="SemiFungibleESDT"||r==="NonFungibleESDT")y={type:r,identifier:a,amount:I,imageURL:Y};else{let E=({addCommas:Tt})=>f({input:d?p.value.toString():I,decimals:d?Number(n.decimals):X,digits:Number(n.digits),showLastNonZeroDecimal:!1,addCommas:Tt}),gt=E({addCommas:!0}),lt=E({addCommas:!1}),ft=Number(d?S:Q),ut=w({amount:lt,usd:ft,addEqualSign:!0});D={identifier:(a===x?o:a)??o,amount:gt,usdValue:ut}}let{feeLimitFormatted:tt,feeInFiatLimit:ot}=R({transaction:p,price:S}),nt=B({shard:H,initialGasPrice:T.initialGasPrice,transaction:i,gasStationMetadata:n.gasStationMetadata}),{gasPriceOption:N}=T,et=M().getType(),it=O(et),k=u.length,rt=e.length>0?e[e.length-1]+1:0,P=F(i?.data??""),b=V(t?.transactionTokenInfo),at=_({data:P,identifier:a,highlight:b}),st=U(),mt=A({to:`/${G}/${m}`,explorerAddress:st}),ct=k===1||t?.needsSigning&&!e.includes(s),pt=f({input:N.toString(),decimals:L,addCommas:!0,digits:h}),dt=new St(i.gasLimit).toFormat({decimalSeparator:".",groupSeparator:",",groupSize:3});return{commonData:{receiver:i.receiver.toString(),data:P,decodedData:at,gasPrice:pt,gasLimit:dt,explorerLink:mt,gasPriceOption:N,gasPriceOptions:nt,egldLabel:o,tokenType:j(r),feeLimit:tt,feeInFiatLimit:ot,transactionsCount:k,currentIndex:s,currentIndexToSign:rt,highlight:b,scCall:z(t?.transactionTokenInfo),needsSigning:ct,isEditable:t?.needsSigning,providerName:it,address:m,username:q,origin:C.location?.origin},tokenTransaction:D,fungibleTransaction:y}}export{qt as a};
2
- //# sourceMappingURL=chunk-OOPGEGEC.mjs.map
1
+ import{a as U}from"./chunk-T37IWTKY.mjs";import{a as B}from"./chunk-GBDHEWNQ.mjs";import{a as $}from"./chunk-HAASOAIF.mjs";import{a as _}from"./chunk-CB4IL76J.mjs";import{a as j}from"./chunk-7Z7IX367.mjs";import{a as z}from"./chunk-VCQBYNNS.mjs";import{a as V}from"./chunk-RBZC4PEU.mjs";import{a as R}from"./chunk-OMBZCVQZ.mjs";import{l as M}from"./chunk-6NXXKXQD.mjs";import{a as w}from"./chunk-YGI3KXMZ.mjs";import{a as v}from"./chunk-5MYF4FXA.mjs";import{a as O}from"./chunk-RYIJWGFA.mjs";import{k as x}from"./chunk-QNYO7NI5.mjs";import{a as A}from"./chunk-YJCTRUJT.mjs";import{a as h,c as L,f}from"./chunk-PJWJZHIS.mjs";import{a as G}from"./chunk-2JKCBTYK.mjs";import{c as F}from"./chunk-PWAP64SN.mjs";import{a as C}from"./chunk-NXT4VIRT.mjs";import{BigNumber as St}from"bignumber.js";async function qt({allTransactions:u,currentScreenIndex:s,egldLabel:o,network:n,gasPriceData:T,price:S,address:m,username:q,shard:H,signedIndexes:e,parsedTransactionsByDataField:K}){let c=u[s],W=c?.transaction?.sender.toString(),p=c?.transaction,i=p?.toPlainObject(),D=null,y=null,t=await $({egldLabel:o,sender:W,apiAddress:n.apiAddress,address:m,parsedTransactionsByDataField:K})(c),d=!t?.transactionTokenInfo?.tokenId,{tokenId:g,nonce:l,amount:I=""}=t?.transactionTokenInfo??{},Z=g&&l&&l.length>0?`${g}-${l}`:g,J=await v({tokenId:Z}),{esdtPrice:Q,tokenDecimals:X,type:r,identifier:a,tokenImageUrl:Y}=J;if(r==="SemiFungibleESDT"||r==="NonFungibleESDT")y={type:r,identifier:a,amount:I,imageURL:Y};else{let E=({addCommas:Tt})=>f({input:d?p.value.toString():I,decimals:d?Number(n.decimals):X,digits:Number(n.digits),showLastNonZeroDecimal:!1,addCommas:Tt}),gt=E({addCommas:!0}),lt=E({addCommas:!1}),ft=Number(d?S:Q),ut=w({amount:lt,usd:ft,addEqualSign:!0});D={identifier:(a===x?o:a)??o,amount:gt,usdValue:ut}}let{feeLimitFormatted:tt,feeInFiatLimit:ot}=R({transaction:p,price:S}),nt=B({shard:H,initialGasPrice:T.initialGasPrice,transaction:i,gasStationMetadata:n.gasStationMetadata}),{gasPriceOption:N}=T,et=M().getType(),it=O(et),k=u.length,rt=e.length>0?e[e.length-1]+1:0,P=F(i?.data??""),b=V(t?.transactionTokenInfo),at=_({data:P,identifier:a,highlight:b}),st=U(),mt=A({to:`/${G}/${m}`,explorerAddress:st}),ct=k===1||t?.needsSigning&&!e.includes(s),pt=f({input:N.toString(),decimals:L,addCommas:!0,digits:h}),dt=new St(i.gasLimit).toFormat({decimalSeparator:".",groupSeparator:",",groupSize:3});return{commonData:{receiver:i.receiver.toString(),data:P,decodedData:at,gasPrice:pt,gasLimit:dt,explorerLink:mt,gasPriceOption:N,gasPriceOptions:nt,egldLabel:o,tokenType:j(r),feeLimit:tt,feeInFiatLimit:ot,transactionsCount:k,currentIndex:s,currentIndexToSign:rt,highlight:b,scCall:z(t?.transactionTokenInfo),needsSigning:ct,isEditable:t?.needsSigning,providerName:it,address:m,username:q,origin:C.location?.origin},tokenTransaction:D,fungibleTransaction:y}}export{qt as a};
2
+ //# sourceMappingURL=chunk-R5HLHBSG.mjs.map
@@ -1,2 +1,2 @@
1
- import{q as t}from"./chunk-ACY76UCX.mjs";var r=({key:e,value:a})=>{t().setState(({cache:c})=>{c[e]=a},!1,{type:"saveToCache",payload:{value:a}})},s=e=>{t().setState(({cache:a})=>{delete a[e]},!1,{type:"removeFromCache",payload:{value:e}})},h=()=>{t().setState(({cache:e})=>{Object.keys(e).forEach(a=>{delete e[a]})},!1,"clearCache")};export{r as a,s as b,h as c};
2
- //# sourceMappingURL=chunk-J4XVM6TB.mjs.map
1
+ import{q as t}from"./chunk-56LVHY6G.mjs";var r=({key:e,value:a})=>{t().setState(({cache:c})=>{c[e]=a},!1,{type:"saveToCache",payload:{value:a}})},s=e=>{t().setState(({cache:a})=>{delete a[e]},!1,{type:"removeFromCache",payload:{value:e}})},h=()=>{t().setState(({cache:e})=>{Object.keys(e).forEach(a=>{delete e[a]})},!1,"clearCache")};export{r as a,s as b,h as c};
2
+ //# sourceMappingURL=chunk-RO4EUTX6.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as r}from"./chunk-55W25Q35.mjs";import{a as s}from"./chunk-742ROBVD.mjs";import o from"lodash.isempty";var e=async({transactionsSessions:t})=>{if(o(t))return[];let i=r(t);return s({transactions:i})};export{e as a};
2
- //# sourceMappingURL=chunk-HJ4B3QID.mjs.map
1
+ import{a as r}from"./chunk-55W25Q35.mjs";import{a as s}from"./chunk-ERZNTTM4.mjs";import o from"lodash.isempty";var e=async({transactionsSessions:t})=>{if(o(t))return[];let i=r(t);return s({transactions:i})};export{e as a};
2
+ //# sourceMappingURL=chunk-SDXVVQQO.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-MI2K6RMJ.mjs";import{a as p}from"./chunk-HVWFXP4G.mjs";import{a as m}from"./chunk-BPPANN5H.mjs";import{a as c}from"./chunk-WFMBEYKX.mjs";import{a as g}from"./chunk-BVZPCM6G.mjs";import{b as a}from"./chunk-CTIBYRMH.mjs";import{f as i}from"./chunk-ACY76UCX.mjs";import{a as d}from"./chunk-LJX4MW7B.mjs";async function E({options:r,config:t,provider:o,login:l}){let n=s.getInstance(),L=g(),u=c({loginToken:r?.token,version:t.version});await m({manager:n,provider:o});let e=await p({manager:n,provider:o,login:l,token:r?.token,explorerAddress:L,authData:u}),{version:f,dataEnabled:T}=t;return i({index:e.addressIndex,loginType:d.ledger}),a({address:e.address,index:e.addressIndex,version:f,hasContractDataEnabled:T}),{address:e.address,signature:e.signature}}export{E as a};
2
- //# sourceMappingURL=chunk-HY5BQMSU.mjs.map
1
+ import{a as s}from"./chunk-E6HRB4NY.mjs";import{a as p}from"./chunk-7GT77JV3.mjs";import{a as m}from"./chunk-WF6WR5Q6.mjs";import{a as c}from"./chunk-WFMBEYKX.mjs";import{a as g}from"./chunk-T37IWTKY.mjs";import{b as a}from"./chunk-VVYGAKV2.mjs";import{f as i}from"./chunk-56LVHY6G.mjs";import{a as d}from"./chunk-LJX4MW7B.mjs";async function E({options:r,config:t,provider:o,login:l}){let n=s.getInstance(),L=g(),u=c({loginToken:r?.token,version:t.version});await m({manager:n,provider:o});let e=await p({manager:n,provider:o,login:l,token:r?.token,explorerAddress:L,authData:u}),{version:f,dataEnabled:T}=t;return i({index:e.addressIndex,loginType:d.ledger}),a({address:e.address,index:e.addressIndex,version:f,hasContractDataEnabled:T}),{address:e.address,signature:e.signature}}export{E as a};
2
+ //# sourceMappingURL=chunk-SUY52XEJ.mjs.map
@@ -0,0 +1,2 @@
1
+ import{b as e}from"./chunk-7VHTZYM2.mjs";import{s as r}from"./chunk-56LVHY6G.mjs";function d(t=r()){return e(t).explorerAddress}export{d as a};
2
+ //# sourceMappingURL=chunk-T37IWTKY.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as n}from"./chunk-72UXA2XD.mjs";import{a as t}from"./chunk-ASW2NQ6C.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-NCUUK7SW.mjs.map
1
+ import{a as n}from"./chunk-XG6USU6W.mjs";import{a as t}from"./chunk-TMSAOTEB.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-TGXFOUA3.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as c}from"./chunk-DLWDO7M6.mjs";import{i as v}from"./chunk-HY34GQIC.mjs";import{k as d}from"./chunk-CFWLPHKF.mjs";import{s as a}from"./chunk-ACY76UCX.mjs";import{d as n}from"./chunk-VNLGNNIL.mjs";import{a as i}from"./chunk-LJX4MW7B.mjs";import{a as s}from"./chunk-OVROSPMG.mjs";async function S(){let t=c(),m=s(),e=n(a()),o=m||t?i.webview:e,p=Object.values(i).includes(e);if(e&&!p&&(o=e),!o)return;let r=await v.create({type:o});if(!r)throw new Error("Provider not found");if(t||o===i.webview&&r.isInitialized())try{await r.login()}catch(f){console.warn("Failed to login with provider",r.getType(),f)}d(r)}export{S as a};
2
- //# sourceMappingURL=chunk-JLLPGNLM.mjs.map
1
+ import{a as c}from"./chunk-DLWDO7M6.mjs";import{i as v}from"./chunk-EFUAR4GY.mjs";import{k as d}from"./chunk-6NXXKXQD.mjs";import{s as a}from"./chunk-56LVHY6G.mjs";import{d as n}from"./chunk-VNLGNNIL.mjs";import{a as i}from"./chunk-LJX4MW7B.mjs";import{a as s}from"./chunk-IDX37YNY.mjs";async function S(){let t=c(),m=s(),e=n(a()),o=m||t?i.webview:e,p=Object.values(i).includes(e);if(e&&!p&&(o=e),!o)return;let r=await v.create({type:o});if(!r)throw new Error("Provider not found");if(t||o===i.webview&&r.isInitialized())try{await r.login()}catch(f){console.warn("Failed to login with provider",r.getType(),f)}d(r)}export{S as a};
2
+ //# sourceMappingURL=chunk-THMOVML2.mjs.map
@@ -0,0 +1,2 @@
1
+ import{q as t}from"./chunk-56LVHY6G.mjs";var l=e=>t().setState(({ui:a})=>{a.isSidePanelOpen=e},!1,{type:"setIsSidePanelOpen",payload:{value:e}});export{l as a};
2
+ //# sourceMappingURL=chunk-TMSAOTEB.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-EIFX46HX.mjs";async function i(n){if(!(typeof t.navigator<"u"&&t.navigator.product==="ReactNative"||!t))try{(await import("@multiversx/sdk-dapp-ui")).defineCustomElements(n)}catch(e){console.warn("@multiversx/sdk-dapp-ui not found"+e)}}export{i as a};
2
- //# sourceMappingURL=chunk-J6EXAKY6.mjs.map
1
+ import{a as t}from"./chunk-NXT4VIRT.mjs";async function i(n){if(!(typeof t.navigator<"u"&&t.navigator.product==="ReactNative"||!t))try{(await import("@multiversx/sdk-dapp-ui")).defineCustomElements(n)}catch(e){console.warn("@multiversx/sdk-dapp-ui not found"+e)}}export{i as a};
2
+ //# sourceMappingURL=chunk-UIHLSCDT.mjs.map
@@ -1,2 +1,2 @@
1
- import{b as i}from"./chunk-7VHTZYM2.mjs";import{s as e}from"./chunk-ACY76UCX.mjs";import{a as o}from"./chunk-CKTFPRJS.mjs";var n="https://api.multiversx.com",s=60*60*24,a=5*60,d=t=>{let r=i(e());return{origin:t?.origin||o().origin,apiAddress:t?.apiAddress||r.apiAddress||n,expirySeconds:t?.expirySeconds||s,tokenExpirationToastWarningSeconds:t?.tokenExpirationToastWarningSeconds||a}};export{d as a};
2
- //# sourceMappingURL=chunk-VYVJQXGS.mjs.map
1
+ import{b as i}from"./chunk-7VHTZYM2.mjs";import{s as e}from"./chunk-56LVHY6G.mjs";import{a as o}from"./chunk-CKTFPRJS.mjs";var n="https://api.multiversx.com",s=60*60*24,a=5*60,d=t=>{let r=i(e());return{origin:t?.origin||o().origin,apiAddress:t?.apiAddress||r.apiAddress||n,expirySeconds:t?.expirySeconds||s,tokenExpirationToastWarningSeconds:t?.tokenExpirationToastWarningSeconds||a}};export{d as a};
2
+ //# sourceMappingURL=chunk-VPPZKEMN.mjs.map
@@ -1,2 +1,2 @@
1
- import{q as o}from"./chunk-ACY76UCX.mjs";import{a as c}from"./chunk-APCGI2A5.mjs";var p=t=>{o().setState(({account:e})=>{let s=e.address===t.address;e.accounts={[e.address]:s?t:c}},!1,{type:"setAccount",payload:{value:t}})},r=t=>o().setState(({account:e})=>{e.ledgerAccount=t},!1,{type:"setLedgerAccount",payload:{value:t}}),u=t=>o().setState(({account:e})=>{e.walletConnectAccount=t},!1,{type:"setWalletConnectAccount",payload:{value:t}}),l=t=>o().setState(({account:e})=>{e.websocketEvent={timestamp:Date.now(),message:t}},!1,{type:"setWebsocketEvent",payload:{value:t}}),d=t=>o().setState(({account:e})=>{e.websocketBatchEvent={timestamp:Date.now(),data:t}},!1,{type:"setWebsocketBatchEvent",payload:{value:t}}),y=t=>{o().setState(({account:e})=>{e.accounts[e.address].nonce=t},!1,{type:"setAccountNonce",payload:{value:t}})};export{p as a,r as b,u as c,l as d,d as e,y as f};
2
- //# sourceMappingURL=chunk-CTIBYRMH.mjs.map
1
+ import{q as o}from"./chunk-56LVHY6G.mjs";import{a as c}from"./chunk-APCGI2A5.mjs";var p=t=>{o().setState(({account:e})=>{let s=e.address===t.address;e.accounts={[e.address]:s?t:c}},!1,{type:"setAccount",payload:{value:t}})},r=t=>o().setState(({account:e})=>{e.ledgerAccount=t},!1,{type:"setLedgerAccount",payload:{value:t}}),u=t=>o().setState(({account:e})=>{e.walletConnectAccount=t},!1,{type:"setWalletConnectAccount",payload:{value:t}}),l=t=>o().setState(({account:e})=>{e.websocketEvent={timestamp:Date.now(),message:t}},!1,{type:"setWebsocketEvent",payload:{value:t}}),d=t=>o().setState(({account:e})=>{e.websocketBatchEvent={timestamp:Date.now(),data:t}},!1,{type:"setWebsocketBatchEvent",payload:{value:t}}),y=t=>{o().setState(({account:e})=>{e.accounts[e.address].nonce=t},!1,{type:"setAccountNonce",payload:{value:t}})};export{p as a,r as b,u as c,l as d,d as e,y as f};
2
+ //# sourceMappingURL=chunk-VVYGAKV2.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as w}from"./chunk-V7TKRGVU.mjs";import{a as b}from"./chunk-5XSOS5YN.mjs";import{a as g}from"./chunk-FSL7QGMG.mjs";import{a as m}from"./chunk-YGI3KXMZ.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=>g({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=m({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-BPPANN5H.mjs.map
1
+ import{a as w}from"./chunk-XN7FWSH5.mjs";import{a as b}from"./chunk-CFERWTQA.mjs";import{a as g}from"./chunk-L2CFZJIP.mjs";import{a as m}from"./chunk-YGI3KXMZ.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=>g({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=m({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-WF6WR5Q6.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as t}from"./chunk-ABH5J67J.mjs";function S(e){return t()(e)}export{S as a};
2
+ //# sourceMappingURL=chunk-WIE353OP.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as i}from"./chunk-Y6OAUXIU.mjs";import{a as e}from"./chunk-N56SMVGU.mjs";import{k as c}from"./chunk-PKDR5ERF.mjs";import{a as n}from"./chunk-2JKCBTYK.mjs";var a=({address:r,baseURL:o})=>{let t=i(o),s=`${t}/${n}/${r}?withGuardianInfo=true`;return e.get(s,{baseURL:t,timeout:c})},g=async({address:r,baseURL:o})=>{if(!r)return null;try{let{data:t}=await a({address:r,baseURL:o});return t}catch{console.error("error fetching configuration for ",r)}return null};export{a,g as b};
2
- //# sourceMappingURL=chunk-OJVDJHBR.mjs.map
1
+ import{a as i}from"./chunk-CWU7HLWJ.mjs";import{a as e}from"./chunk-N56SMVGU.mjs";import{k as c}from"./chunk-PKDR5ERF.mjs";import{a as n}from"./chunk-2JKCBTYK.mjs";var a=({address:r,baseURL:o})=>{let t=i(o),s=`${t}/${n}/${r}?withGuardianInfo=true`;return e.get(s,{baseURL:t,timeout:c})},g=async({address:r,baseURL:o})=>{if(!r)return null;try{let{data:t}=await a({address:r,baseURL:o});return t}catch{console.error("error fetching configuration for ",r)}return null};export{a,g as b};
2
+ //# sourceMappingURL=chunk-WQ2UDBF5.mjs.map
@@ -1,2 +1,2 @@
1
- import{i as g}from"./chunk-OP2IEVBM.mjs";import{a as i,b as a,g as c}from"./chunk-M6MN4RXG.mjs";var s={error:{title:"Error when signing".toString(),iconClassName:"danger",toastId:`${a}-${Date.now()}`},warning:{title:"Signing canceled".toString(),iconClassName:"warning",toastId:`${i}-${Date.now()}`}},m={extensionResponse:"Unable to sign transactions","Transaction canceled":"Transaction canceled","cancelled by user":"Transaction signing cancelled by user","denied by the user":"Transaction signing denied by the user"},E=n=>{for(let[r,e]of Object.entries(m))if(n.includes(r))return e;return"Error when signing"};function O(n,r="error"){let e=n?.message,o=E(e),t=o!=="Error when signing"?"warning":r,l=Object.keys(s).includes(t)?s[t]:s.error,{toastId:T,iconClassName:d,title:u}=l;return g({toastId:T,duration:1e4,icon:"close",iconClassName:d,message:o,title:u}),o}export{O as a};
2
- //# sourceMappingURL=chunk-RTGDS56O.mjs.map
1
+ import{i as g}from"./chunk-6GI4GJJM.mjs";import{a as i,b as a,g as c}from"./chunk-M6MN4RXG.mjs";var s={error:{title:"Error when signing".toString(),iconClassName:"danger",toastId:`${a}-${Date.now()}`},warning:{title:"Signing canceled".toString(),iconClassName:"warning",toastId:`${i}-${Date.now()}`}},m={extensionResponse:"Unable to sign transactions","Transaction canceled":"Transaction canceled","cancelled by user":"Transaction signing cancelled by user","denied by the user":"Transaction signing denied by the user"},E=n=>{for(let[r,e]of Object.entries(m))if(n.includes(r))return e;return"Error when signing"};function O(n,r="error"){let e=n?.message,o=E(e),t=o!=="Error when signing"?"warning":r,l=Object.keys(s).includes(t)?s[t]:s.error,{toastId:T,iconClassName:d,title:u}=l;return g({toastId:T,duration:1e4,icon:"close",iconClassName:d,message:o,title:u}),o}export{O as a};
2
+ //# sourceMappingURL=chunk-X5WGNXA6.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"./chunk-CCDNY2AY.mjs";var r=class{constructor({uiDataUpdateEvent:t,uiTag:e}){this.eventBus=null;this.uiElement=null;this.isCreatingElement=!1;this.eventHandlers=new Map;this.unsubscribeFunctions=new Map;this.uiDataUpdateEvent=t,this.uiTag=e,this.data=this.getInitialData()}async init(t){this.anchor=t,await this.createUIElement(t),await this.setupEventListeners()}updateData(t){this.data={...this.data,...t},this.notifyDataUpdate()}subscribeToEventBus(t,e){if(!this.eventBus)throw new Error("eventBus is not initialized");let i=this.eventBus?.subscribe(t,e);if(i){let n=this.unsubscribeFunctions.get(t)||[];n.push(i),this.unsubscribeFunctions.set(t,n);let s=this.eventHandlers.get(t)||[];s.push(e),this.eventHandlers.set(t,s)}}notifyDataUpdate(){this.eventBus?.publish(this.uiDataUpdateEvent,this.data)}clearEventHandlers(t=Array.from(this.unsubscribeFunctions.keys())){t.forEach(e=>{(this.unsubscribeFunctions.get(e)||[]).forEach(n=>n()),this.unsubscribeFunctions.delete(e),this.eventHandlers.delete(e)})}destroy(){this.unsubscribeFunctions.forEach(t=>t.forEach(e=>e())),this.unsubscribeFunctions.clear(),this.eventHandlers.clear(),this.eventBus=null,this.uiElement?.remove?.(),this.uiElement=null}getInitialData(){return this.initialData}getEventHandlers(t){return this.eventHandlers.get(t)||[]}resetData(){this.data=this.getInitialData()}async createUIElement(t=this.anchor){if(this.isCreatingElement||this.uiElement)return this.uiElement;if(this.isCreatingElement=!0,this.uiElement=await a.create({name:this.uiTag,anchor:t}),this.isCreatingElement=!1,!this.uiElement)throw new Error(`Failed to create ${this.uiTag} element`);if(this.eventBus||(this.eventBus=await this.uiElement.getEventBus()),!this.eventBus)throw new Error("eventBus is not initialized");return this.uiElement}};export{r as a};
2
- //# sourceMappingURL=chunk-72UXA2XD.mjs.map
1
+ import{a}from"./chunk-AT3CRFXK.mjs";var r=class{constructor({uiDataUpdateEvent:t,uiTag:e}){this.eventBus=null;this.uiElement=null;this.isCreatingElement=!1;this.eventHandlers=new Map;this.unsubscribeFunctions=new Map;this.uiDataUpdateEvent=t,this.uiTag=e,this.data=this.getInitialData()}async init(t){this.anchor=t,await this.createUIElement(t),await this.setupEventListeners()}updateData(t){this.data={...this.data,...t},this.notifyDataUpdate()}subscribeToEventBus(t,e){if(!this.eventBus)throw new Error("eventBus is not initialized");let i=this.eventBus?.subscribe(t,e);if(i){let n=this.unsubscribeFunctions.get(t)||[];n.push(i),this.unsubscribeFunctions.set(t,n);let s=this.eventHandlers.get(t)||[];s.push(e),this.eventHandlers.set(t,s)}}notifyDataUpdate(){this.eventBus?.publish(this.uiDataUpdateEvent,this.data)}clearEventHandlers(t=Array.from(this.unsubscribeFunctions.keys())){t.forEach(e=>{(this.unsubscribeFunctions.get(e)||[]).forEach(n=>n()),this.unsubscribeFunctions.delete(e),this.eventHandlers.delete(e)})}destroy(){this.unsubscribeFunctions.forEach(t=>t.forEach(e=>e())),this.unsubscribeFunctions.clear(),this.eventHandlers.clear(),this.eventBus=null,this.uiElement?.remove?.(),this.uiElement=null}getInitialData(){return this.initialData}getEventHandlers(t){return this.eventHandlers.get(t)||[]}resetData(){this.data=this.getInitialData()}async createUIElement(t=this.anchor){if(this.isCreatingElement||this.uiElement)return this.uiElement;if(this.isCreatingElement=!0,this.uiElement=await a.create({name:this.uiTag,anchor:t}),this.isCreatingElement=!1,!this.uiElement)throw new Error(`Failed to create ${this.uiTag} element`);if(this.eventBus||(this.eventBus=await this.uiElement.getEventBus()),!this.eventBus)throw new Error("eventBus is not initialized");return this.uiElement}};export{r as a};
2
+ //# sourceMappingURL=chunk-XG6USU6W.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as l}from"./chunk-YUFPUG5O.mjs";import{a}from"./chunk-XHZWVRMA.mjs";import{a as c}from"./chunk-F2YWL325.mjs";var p="Check if the MultiversX App is open on Ledger";async function v({manager:e,resolve:n,reject:d,shouldInitProvider:s}){let i=!c(),t=()=>v({manager:e,resolve:n,reject:d,shouldInitProvider:s}),o=()=>d("Device unavailable");try{e?.updateAccountScreen({isLoading:!0}),e&&i&&e.subscribeToProviderInit({handleRetry:t,handleCancel:o});let r=await a({shouldInitProvider:s});e&&i&&e.unsubscribeFromProviderInit({handleRetry:t,handleCancel:o}),n(r)}catch(r){if(!i)throw r;let{errorMessage:u,defaultErrorMessage:g}=l(r);e?.updateConnectScreen({error:u??g??p}),e&&e.subscribeToProviderInit({handleRetry:t,handleCancel:o})}}export{v as a};
2
- //# sourceMappingURL=chunk-FVEGUUPB.mjs.map
1
+ import{a as l}from"./chunk-YUFPUG5O.mjs";import{a}from"./chunk-3Q7KW43M.mjs";import{a as c}from"./chunk-HC6I7WWS.mjs";var p="Check if the MultiversX App is open on Ledger";async function v({manager:e,resolve:n,reject:d,shouldInitProvider:s}){let i=!c(),t=()=>v({manager:e,resolve:n,reject:d,shouldInitProvider:s}),o=()=>d("Device unavailable");try{e?.updateAccountScreen({isLoading:!0}),e&&i&&e.subscribeToProviderInit({handleRetry:t,handleCancel:o});let r=await a({shouldInitProvider:s});e&&i&&e.unsubscribeFromProviderInit({handleRetry:t,handleCancel:o}),n(r)}catch(r){if(!i)throw r;let{errorMessage:u,defaultErrorMessage:g}=l(r);e?.updateConnectScreen({error:u??g??p}),e&&e.subscribeToProviderInit({handleRetry:t,handleCancel:o})}}export{v as a};
2
+ //# sourceMappingURL=chunk-XII5X5WW.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as n}from"./chunk-Y6OAUXIU.mjs";import{h as e}from"./chunk-2JKCBTYK.mjs";import i from"axios";async function u({url:o=e,baseURL:t}){let c=`${n(t)}/${o}`;try{let{data:r}=await i.get(c);return r}catch(r){return console.error("err fetching economics info",r),null}}export{u as a};
2
- //# sourceMappingURL=chunk-V7TKRGVU.mjs.map
1
+ import{a as n}from"./chunk-CWU7HLWJ.mjs";import{h as e}from"./chunk-2JKCBTYK.mjs";import i from"axios";async function u({url:o=e,baseURL:t}){let c=`${n(t)}/${o}`;try{let{data:r}=await i.get(c);return r}catch(r){return console.error("err fetching economics info",r),null}}export{u as a};
2
+ //# sourceMappingURL=chunk-XN7FWSH5.mjs.map
@@ -1,2 +1,2 @@
1
- import{d as t}from"./chunk-7VHTZYM2.mjs";import{s as r}from"./chunk-ACY76UCX.mjs";import{y as e}from"./chunk-2JKCBTYK.mjs";import i from"axios";var c=async(s,a={apiAddress:""})=>{let{data:o}=await i.get(`${a.apiAddress||t(r())}/${e}`,{params:{hashes:s.join(","),withScResults:!0}});return o};export{c as a};
2
- //# sourceMappingURL=chunk-WPZIGJNP.mjs.map
1
+ import{d as t}from"./chunk-7VHTZYM2.mjs";import{s as r}from"./chunk-56LVHY6G.mjs";import{y as e}from"./chunk-2JKCBTYK.mjs";import i from"axios";var c=async(s,a={apiAddress:""})=>{let{data:o}=await i.get(`${a.apiAddress||t(r())}/${e}`,{params:{hashes:s.join(","),withScResults:!0}});return o};export{c as a};
2
+ //# sourceMappingURL=chunk-XTMUHTQL.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-DYCP3KSI.mjs";async function g({originalLoginToken:i,extraInfoData:n,address:o}){let e=await t({loginToken:i,extraInfoData:n}),s=n.multisig||n.impersonate||o;return{address:e!=null?s:o,modifiedLoginToken:e}}export{g as a};
2
- //# sourceMappingURL=chunk-2FVSB4I6.mjs.map
1
+ import{a as t}from"./chunk-ALXWQ4AW.mjs";async function g({originalLoginToken:i,extraInfoData:n,address:o}){let e=await t({loginToken:i,extraInfoData:n}),s=n.multisig||n.impersonate||o;return{address:e!=null?s:o,modifiedLoginToken:e}}export{g as a};
2
+ //# sourceMappingURL=chunk-YOYBYWNH.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"./chunk-6R2WFQ7U.mjs";import{a as l}from"./chunk-MPJUP362.mjs";import{a as e}from"./chunk-HIGA7ZDP.mjs";import{d as s}from"./chunk-V5ZSFCKJ.mjs";import{s as i}from"./chunk-ACY76UCX.mjs";var c=class{constructor(r){this.address="";this._login=null;this.loginAbortController=null;this.cancelLogin=()=>{this.loginAbortController&&this.loginAbortController.abort(),this.cancelAction?.(),this.loginAbortController=null};this.loginOperation=async r=>{if(!this._login)throw new Error("Provider is not initialized.");let o=await this._login(r);if(!o?.address)throw new Error("Provider is not initialized.");return{...o,address:o.address,signature:o.signature??""}};this.initializeAddress=()=>{if(this.address)return;let r=e();r&&(this.address=r)};this.cancelAction=void 0;this.address=r??""}getAccount(){throw new Error("Method not implemented.")}signTransaction(r,o){throw new Error("Method not implemented.")}async login(r){if(!this._login)throw new Error("Provider is not initialized.");this.loginAbortController&&this.loginAbortController.abort();let o=new AbortController;this.loginAbortController=o;let n=o.signal;try{let t=new Promise((m,p)=>{n.addEventListener("abort",()=>{p(new Error("Login cancelled"))})}),d=await Promise.race([this.loginOperation(r),t]);return this.loginAbortController=null,d}catch(t){throw this.loginAbortController=null,t}}async initSignState(){if(s(i())?.isSigningUiEnabled===!1)return{onClose:async()=>({}),manager:null};let{onClose:o,manager:n}=await l({cancelAction:this.cancelAction?.bind(this)}),t=this.getType();return n.subscribeToEventBus("CLOSE_PENDING_TRANSACTIONS",o),n.updateData({name:a[t],type:t}),{onClose:o,manager:n}}};export{c as a};
2
- //# sourceMappingURL=chunk-QHN6NRIA.mjs.map
1
+ import{a}from"./chunk-6R2WFQ7U.mjs";import{a as l}from"./chunk-CN7Q4PAK.mjs";import{a as e}from"./chunk-4BOBCAS4.mjs";import{d as s}from"./chunk-V5ZSFCKJ.mjs";import{s as i}from"./chunk-56LVHY6G.mjs";var c=class{constructor(r){this.address="";this._login=null;this.loginAbortController=null;this.cancelLogin=()=>{this.loginAbortController&&this.loginAbortController.abort(),this.cancelAction?.(),this.loginAbortController=null};this.loginOperation=async r=>{if(!this._login)throw new Error("Provider is not initialized.");let o=await this._login(r);if(!o?.address)throw new Error("Provider is not initialized.");return{...o,address:o.address,signature:o.signature??""}};this.initializeAddress=()=>{if(this.address)return;let r=e();r&&(this.address=r)};this.cancelAction=void 0;this.address=r??""}getAccount(){throw new Error("Method not implemented.")}signTransaction(r,o){throw new Error("Method not implemented.")}async login(r){if(!this._login)throw new Error("Provider is not initialized.");this.loginAbortController&&this.loginAbortController.abort();let o=new AbortController;this.loginAbortController=o;let n=o.signal;try{let t=new Promise((m,p)=>{n.addEventListener("abort",()=>{p(new Error("Login cancelled"))})}),d=await Promise.race([this.loginOperation(r),t]);return this.loginAbortController=null,d}catch(t){throw this.loginAbortController=null,t}}async initSignState(){if(s(i())?.isSigningUiEnabled===!1)return{onClose:async()=>({}),manager:null};let{onClose:o,manager:n}=await l({cancelAction:this.cancelAction?.bind(this)}),t=this.getType();return n.subscribeToEventBus("CLOSE_PENDING_TRANSACTIONS",o),n.updateData({name:a[t],type:t}),{onClose:o,manager:n}}};export{c as a};
2
+ //# sourceMappingURL=chunk-YTNNUNXA.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.ts"],
4
+ "sourcesContent": ["import { IProviderAccount } from '@multiversx/sdk-wallet-connect-provider/out';\nimport { providerLabels } from 'constants/providerFactory.constants';\nimport { Transaction, Message } from 'lib/sdkCore';\nimport { IDAppProviderOptions, IDAppProviderAccount } from 'lib/sdkDappUtils';\nimport { PendingTransactionsEventsEnum } from 'managers/internal/PendingTransactionsStateManager';\nimport { getAddress } from 'methods/account/getAddress';\nimport { SignTransactionsOptionsType } from 'providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider';\nimport { IProvider, ProviderType } from 'providers/types/providerFactory.types';\nimport { providerSettingsSelector } from 'store/selectors/configSelectors';\nimport { getState } from 'store/store';\nimport { ProviderErrorsEnum } from 'types/provider.types';\nimport { getPendingTransactionsHandlers } from '../helpers';\n\nexport type LoginOptionsTypes = {\n token?: string;\n};\n\nexport abstract class BaseProviderStrategy<\n T extends ProviderType = ProviderType\n> implements IProvider<T>\n{\n protected address?: string = '';\n protected _login:\n | ((options?: LoginOptionsTypes) => Promise<IProviderAccount | null>)\n | null = null;\n protected loginAbortController: AbortController | null = null;\n\n /*\n * Allow setting provider address without store login\n */\n constructor(address?: string) {\n this.address = address ?? '';\n }\n\n abstract init(): Promise<boolean>;\n abstract logout(): Promise<boolean>;\n abstract getType(): T;\n\n abstract getAddress(): Promise<string | undefined>;\n abstract setAccount(account: IDAppProviderAccount): void;\n abstract isInitialized(): boolean;\n\n isConnected?(): boolean;\n\n getAccount(): IDAppProviderAccount | null {\n throw new Error('Method not implemented.');\n }\n\n signTransaction(\n _transaction: Transaction,\n _options?: SignTransactionsOptionsType\n ): Promise<Transaction | null> {\n throw new Error('Method not implemented.');\n }\n\n abstract signTransactions(\n transactions: Transaction[],\n options?: IDAppProviderOptions\n ): Promise<Transaction[] | null>;\n\n abstract signMessage(\n messageToSign: Message,\n options?: IDAppProviderOptions\n ): Promise<Message | null>;\n\n public async login(\n options?: LoginOptionsTypes\n ): Promise<{ address: string; signature: string }> {\n if (!this._login) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n if (this.loginAbortController) {\n this.loginAbortController.abort();\n }\n\n const controller = new AbortController();\n this.loginAbortController = controller;\n\n const signal = controller.signal;\n\n try {\n const abortPromise = new Promise<never>((_, reject) => {\n signal.addEventListener('abort', () => {\n reject(new Error('Login cancelled'));\n });\n });\n\n const loginResult = await Promise.race([\n this.loginOperation(options),\n abortPromise\n ]);\n\n this.loginAbortController = null;\n\n return loginResult;\n } catch (error) {\n this.loginAbortController = null;\n throw error;\n }\n }\n\n public cancelLogin = () => {\n if (this.loginAbortController) {\n this.loginAbortController.abort();\n }\n\n this.cancelAction?.();\n this.loginAbortController = null;\n };\n\n protected loginOperation = async (\n options?: LoginOptionsTypes\n ): Promise<{ address: string; signature: string }> => {\n if (!this._login) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n const result = await this._login(options);\n\n if (!result?.address) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n return {\n ...result,\n address: result.address,\n signature: result.signature ?? ''\n };\n };\n\n /**\n * Initializes the provider by setting the address if it is not already set.\n */\n protected initializeAddress = () => {\n if (this.address) {\n return;\n }\n\n const address = getAddress();\n\n if (!address) {\n return;\n }\n\n this.address = address;\n };\n\n cancelAction: (() => Promise<void>) | undefined = undefined;\n\n /**\n * This method should be overridden by subclasses to handle cancel login event.\n */\n // async cancelAction(): Promise<void> {\n // throw new Error('Method not implemented.');\n // }\n\n protected async initSignState() {\n const providerConfig = providerSettingsSelector(getState());\n\n // If UI is disabled, return null values to skip UI operations\n if (providerConfig?.isSigningUiEnabled === false) {\n return {\n onClose: async () => ({}),\n manager: null\n };\n }\n\n const { onClose, manager } = await getPendingTransactionsHandlers({\n cancelAction: this.cancelAction?.bind(this)\n });\n\n const type = this.getType();\n manager.subscribeToEventBus(PendingTransactionsEventsEnum.CLOSE, onClose);\n\n manager.updateData({\n name: providerLabels[type],\n type\n });\n\n return { onClose, manager };\n }\n}\n"],
5
+ "mappings": "wMAiBO,IAAeA,EAAf,KAGP,CAUE,YAAYC,EAAkB,CAT9B,KAAU,QAAmB,GAC7B,KAAU,OAEC,KACX,KAAU,qBAA+C,KA6EzD,KAAO,YAAc,IAAM,CACrB,KAAK,sBACP,KAAK,qBAAqB,MAAM,EAGlC,KAAK,eAAe,EACpB,KAAK,qBAAuB,IAC9B,EAEA,KAAU,eAAiB,MACzBC,GACoD,CACpD,GAAI,CAAC,KAAK,OACR,MAAM,IAAI,oCAAuC,EAGnD,IAAMC,EAAS,MAAM,KAAK,OAAOD,CAAO,EAExC,GAAI,CAACC,GAAQ,QACX,MAAM,IAAI,oCAAuC,EAGnD,MAAO,CACL,GAAGA,EACH,QAASA,EAAO,QAChB,UAAWA,EAAO,WAAa,EACjC,CACF,EAKA,KAAU,kBAAoB,IAAM,CAClC,GAAI,KAAK,QACP,OAGF,IAAMF,EAAUG,EAAW,EAEtBH,IAIL,KAAK,QAAUA,EACjB,EAEA,kBAAkD,OArHhD,KAAK,QAAUA,GAAW,EAC5B,CAYA,YAA0C,CACxC,MAAM,IAAI,MAAM,yBAAyB,CAC3C,CAEA,gBACEI,EACAC,EAC6B,CAC7B,MAAM,IAAI,MAAM,yBAAyB,CAC3C,CAYA,MAAa,MACXJ,EACiD,CACjD,GAAI,CAAC,KAAK,OACR,MAAM,IAAI,oCAAuC,EAG/C,KAAK,sBACP,KAAK,qBAAqB,MAAM,EAGlC,IAAMK,EAAa,IAAI,gBACvB,KAAK,qBAAuBA,EAE5B,IAAMC,EAASD,EAAW,OAE1B,GAAI,CACF,IAAME,EAAe,IAAI,QAAe,CAACC,EAAGC,IAAW,CACrDH,EAAO,iBAAiB,QAAS,IAAM,CACrCG,EAAO,IAAI,MAAM,iBAAiB,CAAC,CACrC,CAAC,CACH,CAAC,EAEKC,EAAc,MAAM,QAAQ,KAAK,CACrC,KAAK,eAAeV,CAAO,EAC3BO,CACF,CAAC,EAED,YAAK,qBAAuB,KAErBG,CACT,OAASC,EAAO,CACd,WAAK,qBAAuB,KACtBA,CACR,CACF,CAyDA,MAAgB,eAAgB,CAI9B,GAHuBC,EAAyBC,EAAS,CAAC,GAGtC,qBAAuB,GACzC,MAAO,CACL,QAAS,UAAa,CAAC,GACvB,QAAS,IACX,EAGF,GAAM,CAAE,QAAAC,EAAS,QAAAC,CAAQ,EAAI,MAAMC,EAA+B,CAChE,aAAc,KAAK,cAAc,KAAK,IAAI,CAC5C,CAAC,EAEKC,EAAO,KAAK,QAAQ,EAC1B,OAAAF,EAAQ,iDAAyDD,CAAO,EAExEC,EAAQ,WAAW,CACjB,KAAMG,EAAeD,CAAI,EACzB,KAAAA,CACF,CAAC,EAEM,CAAE,QAAAH,EAAS,QAAAC,CAAQ,CAC5B,CACF",
6
+ "names": ["BaseProviderStrategy", "address", "options", "result", "getAddress", "_transaction", "_options", "controller", "signal", "abortPromise", "_", "reject", "loginResult", "error", "providerSettingsSelector", "getState", "onClose", "manager", "getPendingTransactionsHandlers", "type", "providerLabels"]
7
+ }
@@ -1,2 +1,2 @@
1
- import{a,b}from"../../__chunks__/chunk-OJVDJHBR.mjs";import"../../__chunks__/chunk-Y6OAUXIU.mjs";import"../../__chunks__/chunk-N56SMVGU.mjs";import"../../__chunks__/chunk-PKDR5ERF.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-ACY76UCX.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-66O7QA3I.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-NWJYEKI2.mjs";import"../../__chunks__/chunk-EIFX46HX.mjs";export{a as accountFetcher,b as getAccountFromApi};
1
+ import{a,b}from"../../__chunks__/chunk-WQ2UDBF5.mjs";import"../../__chunks__/chunk-CWU7HLWJ.mjs";import"../../__chunks__/chunk-N56SMVGU.mjs";import"../../__chunks__/chunk-PKDR5ERF.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-56LVHY6G.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-AN2Y2R26.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-NWJYEKI2.mjs";import"../../__chunks__/chunk-NXT4VIRT.mjs";export{a as accountFetcher,b as getAccountFromApi};
2
2
  //# sourceMappingURL=getAccountFromApi.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../__chunks__/chunk-UYWQOHGW.mjs";import"../../__chunks__/chunk-Y6OAUXIU.mjs";import"../../__chunks__/chunk-PKDR5ERF.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-ACY76UCX.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-66O7QA3I.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-NWJYEKI2.mjs";import"../../__chunks__/chunk-EIFX46HX.mjs";export{a as getScamAddressData};
1
+ import{a}from"../../__chunks__/chunk-AWBM2UZB.mjs";import"../../__chunks__/chunk-CWU7HLWJ.mjs";import"../../__chunks__/chunk-PKDR5ERF.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-56LVHY6G.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-AN2Y2R26.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-NWJYEKI2.mjs";import"../../__chunks__/chunk-NXT4VIRT.mjs";export{a as getScamAddressData};
2
2
  //# sourceMappingURL=getScamAddressData.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../__chunks__/chunk-Y6OAUXIU.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-ACY76UCX.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-66O7QA3I.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-EIFX46HX.mjs";export{a as getCleanApiAddress};
1
+ import{a}from"../../__chunks__/chunk-CWU7HLWJ.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-56LVHY6G.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-AN2Y2R26.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-NXT4VIRT.mjs";export{a as getCleanApiAddress};
2
2
  //# sourceMappingURL=getCleanApiAddress.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../__chunks__/chunk-NODAYKNL.mjs";import"../../__chunks__/chunk-Y6OAUXIU.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-ACY76UCX.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-66O7QA3I.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-EIFX46HX.mjs";export{a as getGasStationMetadataFromApi};
1
+ import{a}from"../../__chunks__/chunk-JMAPPHO2.mjs";import"../../__chunks__/chunk-CWU7HLWJ.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-56LVHY6G.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-AN2Y2R26.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-NXT4VIRT.mjs";export{a as getGasStationMetadataFromApi};
2
2
  //# sourceMappingURL=getGasStationMetadata.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../__chunks__/chunk-V7TKRGVU.mjs";import"../../__chunks__/chunk-Y6OAUXIU.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-ACY76UCX.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-66O7QA3I.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-EIFX46HX.mjs";export{a as getEconomics};
1
+ import{a}from"../../__chunks__/chunk-XN7FWSH5.mjs";import"../../__chunks__/chunk-CWU7HLWJ.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-56LVHY6G.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-AN2Y2R26.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-NXT4VIRT.mjs";export{a as getEconomics};
2
2
  //# sourceMappingURL=getEconomics.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../__chunks__/chunk-7EZGGGIQ.mjs";import"../../__chunks__/chunk-NYZ726DG.mjs";import"../../__chunks__/chunk-SNPF3BD2.mjs";import"../../__chunks__/chunk-N56SMVGU.mjs";import"../../__chunks__/chunk-PKDR5ERF.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-3FXHIV6O.mjs";import"../../__chunks__/chunk-ACY76UCX.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-66O7QA3I.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-NWJYEKI2.mjs";import"../../__chunks__/chunk-EIFX46HX.mjs";export{a as getPersistedTokenDetails};
1
+ import{a}from"../../__chunks__/chunk-5MYF4FXA.mjs";import"../../__chunks__/chunk-NYZ726DG.mjs";import"../../__chunks__/chunk-SNPF3BD2.mjs";import"../../__chunks__/chunk-N56SMVGU.mjs";import"../../__chunks__/chunk-PKDR5ERF.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-3FXHIV6O.mjs";import"../../__chunks__/chunk-56LVHY6G.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-AN2Y2R26.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-NWJYEKI2.mjs";import"../../__chunks__/chunk-NXT4VIRT.mjs";export{a as getPersistedTokenDetails};
2
2
  //# sourceMappingURL=getPersistedTokenDetails.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as c}from"../../__chunks__/chunk-N56SMVGU.mjs";import{b as m}from"../../__chunks__/chunk-7VHTZYM2.mjs";import{a as r}from"../../__chunks__/chunk-3FXHIV6O.mjs";import{s as i}from"../../__chunks__/chunk-ACY76UCX.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-66O7QA3I.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import{o as s,u as a}from"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-EIFX46HX.mjs";async function b({tokenId:o}){let t=m(i()),{isNft:k}=r(o),n=o,p=k?s:a;if(!n)return{tokenDecimals:Number(t.decimals),tokenLabel:"",tokenAvatar:""};try{let{data:e}=await c.get(`${t.apiAddress}/${p}/${n}`),f=e?e?.decimals:Number(t.decimals),l=e?e?.name:"",d=e?e?.assets?.svgUrl??e?.media?.[0]?.thumbnailUrl:"";return{tokenDecimals:f,tokenLabel:l,type:e?.type,tokenAvatar:d,identifier:e?.identifier,assets:e?.assets,esdtPrice:e?.price,ticker:e?.ticker,name:e?.name}}catch(e){return{error:`Error fetching token ${n}: ${e.toString()}`,tokenDecimals:Number(t.decimals),tokenLabel:"",tokenAvatar:"",identifier:n}}}export{b as getTokenDetails};
1
+ import{a as c}from"../../__chunks__/chunk-N56SMVGU.mjs";import{b as m}from"../../__chunks__/chunk-7VHTZYM2.mjs";import{a as r}from"../../__chunks__/chunk-3FXHIV6O.mjs";import{s as i}from"../../__chunks__/chunk-56LVHY6G.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-AN2Y2R26.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import{o as s,u as a}from"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-NXT4VIRT.mjs";async function b({tokenId:o}){let t=m(i()),{isNft:k}=r(o),n=o,p=k?s:a;if(!n)return{tokenDecimals:Number(t.decimals),tokenLabel:"",tokenAvatar:""};try{let{data:e}=await c.get(`${t.apiAddress}/${p}/${n}`),f=e?e?.decimals:Number(t.decimals),l=e?e?.name:"",d=e?e?.assets?.svgUrl??e?.media?.[0]?.thumbnailUrl:"";return{tokenDecimals:f,tokenLabel:l,type:e?.type,tokenAvatar:d,identifier:e?.identifier,assets:e?.assets,esdtPrice:e?.price,ticker:e?.ticker,name:e?.name}}catch(e){return{error:`Error fetching token ${n}: ${e.toString()}`,tokenDecimals:Number(t.decimals),tokenLabel:"",tokenAvatar:"",identifier:n}}}export{b as getTokenDetails};
2
2
  //# sourceMappingURL=getTokenDetails.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../__chunks__/chunk-WPZIGJNP.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-ACY76UCX.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-66O7QA3I.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-EIFX46HX.mjs";export{a as getServerTransactionsByHashes};
1
+ import{a}from"../../__chunks__/chunk-XTMUHTQL.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-56LVHY6G.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-AN2Y2R26.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-NXT4VIRT.mjs";export{a as getServerTransactionsByHashes};
2
2
  //# sourceMappingURL=getServerTransactionsByHashes.mjs.map
@@ -1,2 +1,2 @@
1
- import{b as o}from"../../__chunks__/chunk-7VHTZYM2.mjs";import{s as r}from"../../__chunks__/chunk-ACY76UCX.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-66O7QA3I.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import{y as t}from"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-EIFX46HX.mjs";import m from"axios";var T=e=>{let{apiAddress:i}=o(r());return m.get(`${i}/${t}/${e}`,{timeout:1e4})};export{T as getTransactionByHash};
1
+ import{b as o}from"../../__chunks__/chunk-7VHTZYM2.mjs";import{s as r}from"../../__chunks__/chunk-56LVHY6G.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-AN2Y2R26.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import{y as t}from"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-NXT4VIRT.mjs";import m from"axios";var T=e=>{let{apiAddress:i}=o(r());return m.get(`${i}/${t}/${e}`,{timeout:1e4})};export{T as getTransactionByHash};
2
2
  //# sourceMappingURL=getTransactionByHash.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../__chunks__/chunk-BZ6YK6M7.mjs";import"../../__chunks__/chunk-WPZIGJNP.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-ACY76UCX.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-66O7QA3I.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-EIFX46HX.mjs";export{a as getTransactionsByHashes};
1
+ import{a}from"../../__chunks__/chunk-DBCUOZVQ.mjs";import"../../__chunks__/chunk-XTMUHTQL.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-56LVHY6G.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-AN2Y2R26.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-NXT4VIRT.mjs";export{a as getTransactionsByHashes};
2
2
  //# sourceMappingURL=getTransactionsByHashes.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as o}from"../__chunks__/chunk-EIFX46HX.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{n as isBrowserWithPopupConfirmation,t as isSafari};
1
+ import{a as o}from"../__chunks__/chunk-NXT4VIRT.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{n as isBrowserWithPopupConfirmation,t as isSafari};
2
2
  //# sourceMappingURL=browser.constants.mjs.map
@@ -1,2 +1,2 @@
1
- import{a,b,c,d}from"../__chunks__/chunk-S5NXWNSY.mjs";import"../__chunks__/chunk-EIFX46HX.mjs";export{d as REHYDRATE_STORE_TIMEOUT,a as persistConfig,b as storage,c as subscriptions};
1
+ import{a,b,c,d}from"../__chunks__/chunk-OM4WELDA.mjs";import"../__chunks__/chunk-NXT4VIRT.mjs";export{d as REHYDRATE_STORE_TIMEOUT,a as persistConfig,b as storage,c as subscriptions};
2
2
  //# sourceMappingURL=storage.constants.mjs.map
@@ -1,2 +1,2 @@
1
- "use strict";var i=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var t=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var p=(n,o)=>{for(var e in o)i(n,e,{get:o[e],enumerable:!0})},r=(n,o,e,w)=>{if(o&&typeof o=="object"||typeof o=="function")for(let d of t(o))!f.call(n,d)&&d!==e&&i(n,d,{get:()=>o[d],enumerable:!(w=s(o,d))||w.enumerable});return n};var W=n=>r(i({},"__esModule",{value:!0}),n);var x={};p(x,{safeWindow:()=>a,version:()=>c});module.exports=W(x);const a=typeof window<"u"?window:{},c="5.5.0";0&&(module.exports={safeWindow,version});
1
+ "use strict";var i=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var t=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var p=(n,o)=>{for(var e in o)i(n,e,{get:o[e],enumerable:!0})},r=(n,o,e,w)=>{if(o&&typeof o=="object"||typeof o=="function")for(let d of t(o))!f.call(n,d)&&d!==e&&i(n,d,{get:()=>o[d],enumerable:!(w=s(o,d))||w.enumerable});return n};var W=n=>r(i({},"__esModule",{value:!0}),n);var x={};p(x,{safeWindow:()=>a,version:()=>c});module.exports=W(x);const a=typeof window<"u"?window:{},c="5.5.2";0&&(module.exports={safeWindow,version});
2
2
  //# sourceMappingURL=window.constants.cjs.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.5.0'; // will be replaced at build time\n"],
4
+ "sourcesContent": ["export const safeWindow: Window =\n typeof window !== 'undefined' ? window : ({} as Window);\n\nexport const version = '5.5.2'; // will be replaced at build time\n"],
5
5
  "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,gBAAAE,EAAA,YAAAC,IAAA,eAAAC,EAAAJ,GAAO,MAAME,EACX,OAAO,OAAW,IAAc,OAAU,CAAC,EAEhCC,EAAU",
6
6
  "names": ["window_constants_exports", "__export", "safeWindow", "version", "__toCommonJS"]
7
7
  }
@@ -1,2 +1,2 @@
1
- import{a,b}from"../__chunks__/chunk-EIFX46HX.mjs";export{a as safeWindow,b as version};
1
+ import{a,b}from"../__chunks__/chunk-NXT4VIRT.mjs";export{a as safeWindow,b as version};
2
2
  //# sourceMappingURL=window.constants.mjs.map