@multiversx/sdk-dapp 2.22.3 → 2.22.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/UI/NotificationModal/NotificationModal.js +1 -1
- package/UI/NotificationModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/SignWithDeviceModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/SignStepBody.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmFee/ConfirmFee.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmFee/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmReceiver/ConfirmReceiver.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmReceiver/components/ReceiverSubValue/ReceiverSubValue.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmReceiver/components/ReceiverSubValue/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmReceiver/components/ReceiverValue/ReceiverValue.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmReceiver/components/ReceiverValue/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmReceiver/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/NftSftPreviewComponent/NftSftPreviewComponent.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/NftSftPreviewComponent/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtensionModal/SignWithExtensionModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/LedgerGuardianSigningModalError.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/SignWithLedgerModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
- package/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
- package/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
- package/UI/SignTransactionsModals/components/index.js +1 -1
- package/UI/SignTransactionsModals/index.js +1 -1
- package/UI/TransactionDetails/TransactionDetails.js +1 -1
- package/UI/TransactionDetails/components/TransactionDetailsBody.js +1 -1
- package/UI/TransactionDetails/components/index.js +1 -1
- package/UI/TransactionDetails/index.js +1 -1
- package/UI/TransactionInfo/TransactionInfo.js +1 -1
- package/UI/TransactionInfo/components/AddressDetailItem/AddressDetailitem.js +1 -1
- package/UI/TransactionInfo/components/AddressDetailItem/index.js +1 -1
- package/UI/TransactionInfo/components/EventsList/EventsList.js +1 -1
- package/UI/TransactionInfo/components/EventsList/index.js +1 -1
- package/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +1 -1
- package/UI/TransactionInfo/components/NonceMessage/index.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/OperationList.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/DetailedItem.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationBlock.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationRow.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationText.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/index.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/ScResultsList.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/ResultHash.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/ResultReceiver.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/ResultSender.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/index.js +1 -1
- package/UI/TransactionInfo/components/ScrDetailItem/ScrDetailItem.js +1 -1
- package/UI/TransactionInfo/components/ScrDetailItem/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/TransactionAction.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/ActionText/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionLogs/TransactionLogs.js +1 -1
- package/UI/TransactionInfo/components/TransactionLogs/index.js +1 -1
- package/UI/TransactionInfo/components/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/TransactionInfoFrom.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/TransactionInfoMethod.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/TransactionInfoMiniblock.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/TransactionInfoScResults.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/TransactionInfoTo.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/TransactionInfoTokenOperations.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/index.js +1 -1
- package/UI/TransactionInfo/index.js +1 -1
- package/UI/TransactionsTable/TransactionsTable.js +1 -1
- package/UI/TransactionsTable/components/AccountName.js +1 -1
- package/UI/TransactionsTable/components/TransactionHash.js +1 -1
- package/UI/TransactionsTable/components/TransactionReceiver.js +1 -1
- package/UI/TransactionsTable/components/TransactionRow.js +1 -1
- package/UI/TransactionsTable/components/TransactionSender.js +1 -1
- package/UI/TransactionsTable/components/index.js +1 -1
- package/UI/TransactionsTable/index.js +1 -1
- package/UI/TransactionsToastList/TransactionsToastList.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/CustomToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/CustomComponentToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/helpers/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/helpers/useMemoizedCloseButton.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/components/TransactionToastContent.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/components/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
- package/UI/TransactionsToastList/components/index.js +1 -1
- package/UI/TransactionsToastList/index.js +1 -1
- package/UI/Trim/Trim.js +1 -1
- package/UI/Trim/index.js +1 -1
- package/UI/index.js +1 -1
- package/UI/ledger/LedgerLoginButton/LedgerLoginButton.js +1 -1
- package/UI/ledger/LedgerLoginButton/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressRow/AddressRow.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressRow/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressTable/AddressTable.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressTable/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/ConfirmAddress/ConfirmAddress.js +1 -1
- package/UI/ledger/LedgerLoginContainer/ConfirmAddress/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoginContainer.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoginContent/LedgerLoginContent.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoginContent/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoginContentBody/LedgerLoginContentBody.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoginContentBody/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/index.js +1 -1
- package/UI/ledger/index.js +1 -1
- package/UI/operaWallet/OperaWalletLoginButton/OperaWalletLoginButton.js +1 -1
- package/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
- package/UI/pages/UnlockPage/index.js +1 -1
- package/UI/pages/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginButton/WalletConnectLoginButton.js +1 -1
- package/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
- package/UI/walletConnect/index.js +1 -1
- package/UI/webWallet/WebWalletLoginButton/WebWalletLoginButton.js +1 -1
- package/UI/webWallet/WebWalletLoginButton/index.js +1 -1
- package/__chunks__/{chunk-2X7IQMV3.js → chunk-66GI5LMJ.js} +2 -2
- package/__chunks__/chunk-6KZ376QS.js +2 -0
- package/__chunks__/chunk-ALWWVLET.js +2 -0
- package/__chunks__/{chunk-KBPU354O.js → chunk-CNEOY4HF.js} +2 -2
- package/__chunks__/{chunk-RJINUKHI.js → chunk-VGTBAXEI.js} +2 -2
- package/__chunks__/chunk-XKW7JKY7.js +2 -0
- package/__commonjs/UI/index.js +1 -1
- package/__commonjs/UI/pages/UnlockPage/index.js +1 -1
- package/__commonjs/UI/pages/index.js +1 -1
- package/__commonjs/UI/webWallet/WebWalletLoginButton/WebWalletLoginButton.js +1 -1
- package/__commonjs/UI/webWallet/WebWalletLoginButton/index.js +1 -1
- package/__commonjs/__mocks__/index.js +1 -1
- package/__commonjs/__mocks__/utils/index.js +1 -1
- package/__commonjs/__mocks__/utils/mockWindowHistory.js +1 -1
- package/__commonjs/__mocks__/utils/mockWindowLocation.js +1 -1
- package/__commonjs/hooks/index.js +1 -1
- package/__commonjs/hooks/login/index.js +1 -1
- package/__commonjs/hooks/login/useWebWalletLogin.js +1 -1
- package/__mocks__/index.js +1 -1
- package/__mocks__/utils/index.js +1 -1
- package/__mocks__/utils/mockWindowHistory.js +1 -1
- package/__mocks__/utils/mockWindowLocation.js +1 -1
- package/__mocks__/utils/renderWithProvider.js +1 -1
- package/components/LogoutListener/LogoutListener.js +1 -1
- package/components/LogoutListener/helpers/index.js +1 -1
- package/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
- package/components/LogoutListener/index.js +1 -1
- package/components/TransactionsTracker/TransactionTracker.js +1 -1
- package/components/TransactionsTracker/index.js +1 -1
- package/hooks/index.js +1 -1
- package/hooks/login/index.js +1 -1
- package/hooks/login/useWebWalletLogin.js +1 -1
- package/hooks/transactions/useTransactionsTracker.js +1 -1
- package/package.json +2 -2
- package/wrappers/DappProvider/CustomComponents.js +1 -1
- package/wrappers/DappProvider/DappProvider.js +1 -1
- package/wrappers/DappProvider/index.js +1 -1
- package/wrappers/index.js +1 -1
- package/__chunks__/chunk-GHE2YVYT.js +0 -2
- package/__chunks__/chunk-WIEHPIS6.js +0 -2
- package/__chunks__/chunk-ZD4T5RDE.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";import{a}from"../../../__chunks__/chunk-2X7IQMV3.js";import"../../../__chunks__/chunk-FTE2VXGC.js";import"../../../__chunks__/chunk-E2Q2BLG6.js";import"../../../__chunks__/chunk-RJINUKHI.js";import"../../../__chunks__/chunk-JCAUBGCB.js";import"../../../__chunks__/chunk-LGBANZIL.js";import"../../../__chunks__/chunk-C7256GIJ.js";import"../../../__chunks__/chunk-QSRBOW33.js";import"../../../__chunks__/chunk-PXLKYXON.js";import"../../../__chunks__/chunk-WJGL6LVA.js";import"../../../__chunks__/chunk-LK5TR7MI.js";import"../../../__chunks__/chunk-OCMDIV3Q.js";import"../../../__chunks__/chunk-TKIIHBF2.js";import"../../../__chunks__/chunk-KMTPVLTX.js";import"../../../__chunks__/chunk-ATEFCARH.js";import"../../../__chunks__/chunk-JFXVZGSY.js";import"../../../__chunks__/chunk-TXAITGIS.js";import"../../../__chunks__/chunk-KOH3SXG4.js";import"../../../__chunks__/chunk-4ASJZWSW.js";import"../../../__chunks__/chunk-OM57M5QN.js";import"../../../__chunks__/chunk-KG4FUG77.js";import"../../../__chunks__/chunk-QYZILPYE.js";import"../../../__chunks__/chunk-XAQNBFSL.js";import"../../../__chunks__/chunk-5HMS5KVK.js";import"../../../__chunks__/chunk-53GKFOIV.js";import"../../../__chunks__/chunk-TSIOFCOA.js";import"../../../__chunks__/chunk-YAR2KJ42.js";import"../../../__chunks__/chunk-OMT4TEDL.js";import"../../../__chunks__/chunk-FZMRVALH.js";import"../../../__chunks__/chunk-YOL72E3K.js";import"../../../__chunks__/chunk-37ZHJ2BK.js";import"../../../__chunks__/chunk-EA6JYINF.js";import"../../../__chunks__/chunk-ELWERAIL.js";import"../../../__chunks__/chunk-F7XKTZUU.js";import"../../../__chunks__/chunk-QUO3WQQP.js";import"../../../__chunks__/chunk-WGNJV6FV.js";import"../../../__chunks__/chunk-KZR7TQ7H.js";import"../../../__chunks__/chunk-XOZ662VA.js";import"../../../__chunks__/chunk-LO5NNAIV.js";import"../../../__chunks__/chunk-NAN2H6P3.js";import"../../../__chunks__/chunk-KTZ6NJYR.js";import"../../../__chunks__/chunk-RDB2436S.js";import"../../../__chunks__/chunk-VYPB4XKB.js";import"../../../__chunks__/chunk-7MWHZFZC.js";import"../../../__chunks__/chunk-VU5KZZ4F.js";import"../../../__chunks__/chunk-3LSGWB2D.js";import"../../../__chunks__/chunk-HH5S5FOE.js";import"../../../__chunks__/chunk-VDBMCVHT.js";import"../../../__chunks__/chunk-22UA5SNR.js";import"../../../__chunks__/chunk-NTW7VNS4.js";import"../../../__chunks__/chunk-GZAWM3MB.js";import"../../../__chunks__/chunk-JAHQWF5V.js";import"../../../__chunks__/chunk-CLZCWECI.js";import"../../../__chunks__/chunk-TXPZDSWB.js";import"../../../__chunks__/chunk-HN3VGROH.js";import"../../../__chunks__/chunk-KA4LEM3K.js";import"../../../__chunks__/chunk-SS4V3OT5.js";import"../../../__chunks__/chunk-OM2VSN3H.js";import"../../../__chunks__/chunk-S2TYOHJC.js";import"../../../__chunks__/chunk-IIEA2LVW.js";import"../../../__chunks__/chunk-NJWMFRBP.js";import"../../../__chunks__/chunk-EGS2BNV2.js";import"../../../__chunks__/chunk-JQGZ4NPN.js";import"../../../__chunks__/chunk-X4RET644.js";import"../../../__chunks__/chunk-QYC2Z4FV.js";import"../../../__chunks__/chunk-4IMFSHJX.js";import"../../../__chunks__/chunk-FBHNJJZH.js";import"../../../__chunks__/chunk-OR4IOV6T.js";import"../../../__chunks__/chunk-KEQTNP4F.js";import"../../../__chunks__/chunk-YTGZMJXZ.js";import"../../../__chunks__/chunk-5DFOBP4C.js";import"../../../__chunks__/chunk-4JP4CKHO.js";import"../../../__chunks__/chunk-CQVQUVCV.js";import"../../../__chunks__/chunk-A46DJQ6R.js";import"../../../__chunks__/chunk-3U7QBETU.js";import"../../../__chunks__/chunk-DBD6N2CW.js";import"../../../__chunks__/chunk-K7EQVIHG.js";import"../../../__chunks__/chunk-JS3K5CWO.js";import"../../../__chunks__/chunk-LWYP45DI.js";import"../../../__chunks__/chunk-QP6LGN2T.js";import"../../../__chunks__/chunk-OFXDXKXF.js";import"../../../__chunks__/chunk-XNFCZFZP.js";import"../../../__chunks__/chunk-V2JQJYU7.js";import"../../../__chunks__/chunk-B2J4SA2C.js";import"../../../__chunks__/chunk-VZBHRDOX.js";import"../../../__chunks__/chunk-2C4V4IXB.js";import"../../../__chunks__/chunk-CJLDKFVG.js";import"../../../__chunks__/chunk-LJ7BGBHG.js";import"../../../__chunks__/chunk-2WP7OVEE.js";import"../../../__chunks__/chunk-U3TQIHS4.js";import"../../../__chunks__/chunk-LVXEGFDX.js";import"../../../__chunks__/chunk-SGQ54NQK.js";import"../../../__chunks__/chunk-JCJ47OMS.js";import"../../../__chunks__/chunk-Y4RCHOTY.js";import"../../../__chunks__/chunk-N3R7LCX5.js";import"../../../__chunks__/chunk-JRB2SSEU.js";import"../../../__chunks__/chunk-6ALBKZZO.js";import"../../../__chunks__/chunk-RXV2CATH.js";import"../../../__chunks__/chunk-6A3UTLF2.js";import"../../../__chunks__/chunk-26GS6QMF.js";import"../../../__chunks__/chunk-R7XFYQRR.js";import"../../../__chunks__/chunk-UY6STZS7.js";import"../../../__chunks__/chunk-II4YGYVN.js";import"../../../__chunks__/chunk-NFWRULG5.js";import"../../../__chunks__/chunk-CALTQQB2.js";import"../../../__chunks__/chunk-WOK66U3L.js";import"../../../__chunks__/chunk-MWUPZQEA.js";import"../../../__chunks__/chunk-WODTNYFW.js";import"../../../__chunks__/chunk-47XDMA2I.js";import"../../../__chunks__/chunk-TIRPJY6G.js";import"../../../__chunks__/chunk-6WHJ3OVF.js";import"../../../__chunks__/chunk-OGKASO74.js";import"../../../__chunks__/chunk-HB2AQDPQ.js";import"../../../__chunks__/chunk-GEIY6QKK.js";import"../../../__chunks__/chunk-LOEOBGHO.js";import"../../../__chunks__/chunk-GL24S5GY.js";import"../../../__chunks__/chunk-SFQFF2AF.js";import"../../../__chunks__/chunk-BZYEY4V6.js";import"../../../__chunks__/chunk-BENZDWG3.js";import"../../../__chunks__/chunk-M6A74AE4.js";import"../../../__chunks__/chunk-NLU2B6MT.js";import"../../../__chunks__/chunk-HUMOP4SH.js";import"../../../__chunks__/chunk-OF3VHHUR.js";import"../../../__chunks__/chunk-JW7ZCUB4.js";import"../../../__chunks__/chunk-XK4XOW72.js";import"../../../__chunks__/chunk-KLFPAZSS.js";import"../../../__chunks__/chunk-EQSNZZK2.js";import"../../../__chunks__/chunk-PYQY6CVO.js";import"../../../__chunks__/chunk-UX4T4TMQ.js";import"../../../__chunks__/chunk-X42PRFW5.js";import"../../../__chunks__/chunk-G7UZISJS.js";import"../../../__chunks__/chunk-S5N3R4MS.js";import"../../../__chunks__/chunk-6AAZVCTM.js";import"../../../__chunks__/chunk-F52JH274.js";import"../../../__chunks__/chunk-PJKUI3Y6.js";import"../../../__chunks__/chunk-YV4Y3N6A.js";import"../../../__chunks__/chunk-IMORLJ4D.js";import"../../../__chunks__/chunk-KWQPHBRJ.js";import"../../../__chunks__/chunk-NQOAOMEL.js";import"../../../__chunks__/chunk-7WXEH6OF.js";import"../../../__chunks__/chunk-AGEOX5JH.js";import"../../../__chunks__/chunk-YRZKLN43.js";import"../../../__chunks__/chunk-6MPGZ74L.js";import"../../../__chunks__/chunk-KLPLQMYE.js";import"../../../__chunks__/chunk-ZRD6IVNQ.js";import"../../../__chunks__/chunk-4M54TFO5.js";import"../../../__chunks__/chunk-5MYSYVJW.js";import"../../../__chunks__/chunk-NLDKTPU3.js";import"../../../__chunks__/chunk-75625ISR.js";import"../../../__chunks__/chunk-5IMNE4MQ.js";import"../../../__chunks__/chunk-DIKVWGTG.js";import"../../../__chunks__/chunk-36NZZB3P.js";import"../../../__chunks__/chunk-V3YGOOML.js";import"../../../__chunks__/chunk-JFW7QJGM.js";import"../../../__chunks__/chunk-N3QTYKLF.js";import"../../../__chunks__/chunk-HGEGFQPE.js";import"../../../__chunks__/chunk-3S7LOHJV.js";import"../../../__chunks__/chunk-7GGJHWEK.js";import"../../../__chunks__/chunk-BQBE7OZR.js";import"../../../__chunks__/chunk-LVCWBXY5.js";import"../../../__chunks__/chunk-5ZPIIZLN.js";import"../../../__chunks__/chunk-WUI72I54.js";import"../../../__chunks__/chunk-VSQTFQMH.js";import"../../../__chunks__/chunk-4RLCYQ74.js";import"../../../__chunks__/chunk-LXRRORKB.js";import"../../../__chunks__/chunk-JRQHEQBW.js";import"../../../__chunks__/chunk-M5P3J4PH.js";import"../../../__chunks__/chunk-OWBHRN3S.js";import"../../../__chunks__/chunk-CCMLFI4B.js";import"../../../__chunks__/chunk-BQNI2XMA.js";import"../../../__chunks__/chunk-7TW5V77R.js";import"../../../__chunks__/chunk-2WQS6SUB.js";import"../../../__chunks__/chunk-H6BZGL2Y.js";import"../../../__chunks__/chunk-MR3V64MT.js";import"../../../__chunks__/chunk-5LNCQB7U.js";import"../../../__chunks__/chunk-ZHMC3BOL.js";import"../../../__chunks__/chunk-3HHAVSUJ.js";import"../../../__chunks__/chunk-JC264KXM.js";import"../../../__chunks__/chunk-UFOWE24Z.js";import"../../../__chunks__/chunk-RTUYXLM2.js";import"../../../__chunks__/chunk-3XTQ4ABX.js";import"../../../__chunks__/chunk-SNQ7GR7D.js";import"../../../__chunks__/chunk-CCJG3WLD.js";import"../../../__chunks__/chunk-2PCYLQVD.js";import"../../../__chunks__/chunk-TN3IL6YQ.js";import"../../../__chunks__/chunk-RNBBOBRQ.js";import"../../../__chunks__/chunk-EBV5V6SU.js";import"../../../__chunks__/chunk-ZYJTJW6F.js";import"../../../__chunks__/chunk-FDI635JG.js";import"../../../__chunks__/chunk-N7MHQ6JT.js";import"../../../__chunks__/chunk-SAQ2TZS4.js";import"../../../__chunks__/chunk-5DJROO27.js";import"../../../__chunks__/chunk-3DHA63I3.js";import"../../../__chunks__/chunk-PSOTUYYR.js";import"../../../__chunks__/chunk-FNNO6X33.js";import"../../../__chunks__/chunk-2QIFGJLP.js";import"../../../__chunks__/chunk-RALSJ7UN.js";import"../../../__chunks__/chunk-ARZYHB3G.js";import"../../../__chunks__/chunk-UPMSDSQP.js";import"../../../__chunks__/chunk-LN7HFODU.js";import"../../../__chunks__/chunk-6WZ7DVP7.js";import"../../../__chunks__/chunk-6LYBJWQO.js";import"../../../__chunks__/chunk-CHYGQARZ.js";import"../../../__chunks__/chunk-P2VXRWXU.js";import"../../../__chunks__/chunk-BPYUN5PX.js";import"../../../__chunks__/chunk-Z6QBE5W7.js";import"../../../__chunks__/chunk-MZKFMF7G.js";import"../../../__chunks__/chunk-YXJVLN63.js";import"../../../__chunks__/chunk-J42ZO72F.js";import"../../../__chunks__/chunk-6ZGFYJ6T.js";import"../../../__chunks__/chunk-HIMYYDUZ.js";import"../../../__chunks__/chunk-DYORUPQR.js";import"../../../__chunks__/chunk-COWA3VKU.js";import"../../../__chunks__/chunk-SC7SRUXL.js";import"../../../__chunks__/chunk-LOZF3QI7.js";import"../../../__chunks__/chunk-CCN5MMPI.js";import"../../../__chunks__/chunk-FC3UYSGH.js";import"../../../__chunks__/chunk-WISLI42M.js";import"../../../__chunks__/chunk-W7SO52DM.js";import"../../../__chunks__/chunk-PXHBOM4A.js";import"../../../__chunks__/chunk-6XR6BLIB.js";import"../../../__chunks__/chunk-5KGDRZSV.js";import"../../../__chunks__/chunk-HGOHQNWK.js";import"../../../__chunks__/chunk-WTIKHG7D.js";import"../../../__chunks__/chunk-KV4PBIVD.js";import"../../../__chunks__/chunk-ZX2XOMRP.js";import"../../../__chunks__/chunk-3ZGAB2KK.js";import"../../../__chunks__/chunk-GGMEVY45.js";import"../../../__chunks__/chunk-E3VZKZ3M.js";import"../../../__chunks__/chunk-5YFVFPXX.js";import"../../../__chunks__/chunk-X2JZA2ND.js";import"../../../__chunks__/chunk-BZUMXHQT.js";import"../../../__chunks__/chunk-WQFSDAGL.js";import"../../../__chunks__/chunk-RVXC64US.js";import"../../../__chunks__/chunk-7YHU2LQD.js";import"../../../__chunks__/chunk-A2R2BMVL.js";import"../../../__chunks__/chunk-FDSDVDKW.js";import"../../../__chunks__/chunk-27DX5WIQ.js";import"../../../__chunks__/chunk-326XWAT2.js";import"../../../__chunks__/chunk-FZ3QCOUU.js";import"../../../__chunks__/chunk-ERG7H4LX.js";import"../../../__chunks__/chunk-LIRR6LCS.js";import"../../../__chunks__/chunk-7CT2Q6BT.js";import"../../../__chunks__/chunk-XDZ2AX2X.js";import"../../../__chunks__/chunk-4SD7Y2KM.js";import"../../../__chunks__/chunk-W6HPOJ7Z.js";import"../../../__chunks__/chunk-6LITAK4Z.js";import"../../../__chunks__/chunk-GVCPEY3I.js";import"../../../__chunks__/chunk-2C7GRV4K.js";import"../../../__chunks__/chunk-XTDLK5SN.js";import"../../../__chunks__/chunk-TKJ42ND4.js";import"../../../__chunks__/chunk-HBP5N4FR.js";export{a as WebWalletLoginButton};
|
|
1
|
+
"use strict";import{a}from"../../../__chunks__/chunk-66GI5LMJ.js";import"../../../__chunks__/chunk-FTE2VXGC.js";import"../../../__chunks__/chunk-E2Q2BLG6.js";import"../../../__chunks__/chunk-VGTBAXEI.js";import"../../../__chunks__/chunk-JCAUBGCB.js";import"../../../__chunks__/chunk-LGBANZIL.js";import"../../../__chunks__/chunk-C7256GIJ.js";import"../../../__chunks__/chunk-QSRBOW33.js";import"../../../__chunks__/chunk-PXLKYXON.js";import"../../../__chunks__/chunk-WJGL6LVA.js";import"../../../__chunks__/chunk-LK5TR7MI.js";import"../../../__chunks__/chunk-OCMDIV3Q.js";import"../../../__chunks__/chunk-TKIIHBF2.js";import"../../../__chunks__/chunk-KMTPVLTX.js";import"../../../__chunks__/chunk-ATEFCARH.js";import"../../../__chunks__/chunk-JFXVZGSY.js";import"../../../__chunks__/chunk-TXAITGIS.js";import"../../../__chunks__/chunk-KOH3SXG4.js";import"../../../__chunks__/chunk-4ASJZWSW.js";import"../../../__chunks__/chunk-OM57M5QN.js";import"../../../__chunks__/chunk-KG4FUG77.js";import"../../../__chunks__/chunk-QYZILPYE.js";import"../../../__chunks__/chunk-XAQNBFSL.js";import"../../../__chunks__/chunk-5HMS5KVK.js";import"../../../__chunks__/chunk-53GKFOIV.js";import"../../../__chunks__/chunk-TSIOFCOA.js";import"../../../__chunks__/chunk-YAR2KJ42.js";import"../../../__chunks__/chunk-OMT4TEDL.js";import"../../../__chunks__/chunk-FZMRVALH.js";import"../../../__chunks__/chunk-YOL72E3K.js";import"../../../__chunks__/chunk-37ZHJ2BK.js";import"../../../__chunks__/chunk-EA6JYINF.js";import"../../../__chunks__/chunk-ELWERAIL.js";import"../../../__chunks__/chunk-F7XKTZUU.js";import"../../../__chunks__/chunk-QUO3WQQP.js";import"../../../__chunks__/chunk-WGNJV6FV.js";import"../../../__chunks__/chunk-KZR7TQ7H.js";import"../../../__chunks__/chunk-XOZ662VA.js";import"../../../__chunks__/chunk-LO5NNAIV.js";import"../../../__chunks__/chunk-NAN2H6P3.js";import"../../../__chunks__/chunk-KTZ6NJYR.js";import"../../../__chunks__/chunk-RDB2436S.js";import"../../../__chunks__/chunk-VYPB4XKB.js";import"../../../__chunks__/chunk-7MWHZFZC.js";import"../../../__chunks__/chunk-VU5KZZ4F.js";import"../../../__chunks__/chunk-3LSGWB2D.js";import"../../../__chunks__/chunk-HH5S5FOE.js";import"../../../__chunks__/chunk-VDBMCVHT.js";import"../../../__chunks__/chunk-22UA5SNR.js";import"../../../__chunks__/chunk-NTW7VNS4.js";import"../../../__chunks__/chunk-GZAWM3MB.js";import"../../../__chunks__/chunk-JAHQWF5V.js";import"../../../__chunks__/chunk-CLZCWECI.js";import"../../../__chunks__/chunk-TXPZDSWB.js";import"../../../__chunks__/chunk-HN3VGROH.js";import"../../../__chunks__/chunk-KA4LEM3K.js";import"../../../__chunks__/chunk-SS4V3OT5.js";import"../../../__chunks__/chunk-OM2VSN3H.js";import"../../../__chunks__/chunk-S2TYOHJC.js";import"../../../__chunks__/chunk-IIEA2LVW.js";import"../../../__chunks__/chunk-NJWMFRBP.js";import"../../../__chunks__/chunk-EGS2BNV2.js";import"../../../__chunks__/chunk-JQGZ4NPN.js";import"../../../__chunks__/chunk-X4RET644.js";import"../../../__chunks__/chunk-QYC2Z4FV.js";import"../../../__chunks__/chunk-4IMFSHJX.js";import"../../../__chunks__/chunk-FBHNJJZH.js";import"../../../__chunks__/chunk-OR4IOV6T.js";import"../../../__chunks__/chunk-KEQTNP4F.js";import"../../../__chunks__/chunk-YTGZMJXZ.js";import"../../../__chunks__/chunk-5DFOBP4C.js";import"../../../__chunks__/chunk-4JP4CKHO.js";import"../../../__chunks__/chunk-CQVQUVCV.js";import"../../../__chunks__/chunk-A46DJQ6R.js";import"../../../__chunks__/chunk-3U7QBETU.js";import"../../../__chunks__/chunk-DBD6N2CW.js";import"../../../__chunks__/chunk-K7EQVIHG.js";import"../../../__chunks__/chunk-JS3K5CWO.js";import"../../../__chunks__/chunk-LWYP45DI.js";import"../../../__chunks__/chunk-QP6LGN2T.js";import"../../../__chunks__/chunk-OFXDXKXF.js";import"../../../__chunks__/chunk-XNFCZFZP.js";import"../../../__chunks__/chunk-V2JQJYU7.js";import"../../../__chunks__/chunk-B2J4SA2C.js";import"../../../__chunks__/chunk-VZBHRDOX.js";import"../../../__chunks__/chunk-2C4V4IXB.js";import"../../../__chunks__/chunk-CJLDKFVG.js";import"../../../__chunks__/chunk-LJ7BGBHG.js";import"../../../__chunks__/chunk-2WP7OVEE.js";import"../../../__chunks__/chunk-U3TQIHS4.js";import"../../../__chunks__/chunk-LVXEGFDX.js";import"../../../__chunks__/chunk-SGQ54NQK.js";import"../../../__chunks__/chunk-JCJ47OMS.js";import"../../../__chunks__/chunk-Y4RCHOTY.js";import"../../../__chunks__/chunk-N3R7LCX5.js";import"../../../__chunks__/chunk-JRB2SSEU.js";import"../../../__chunks__/chunk-6ALBKZZO.js";import"../../../__chunks__/chunk-RXV2CATH.js";import"../../../__chunks__/chunk-6A3UTLF2.js";import"../../../__chunks__/chunk-26GS6QMF.js";import"../../../__chunks__/chunk-R7XFYQRR.js";import"../../../__chunks__/chunk-UY6STZS7.js";import"../../../__chunks__/chunk-II4YGYVN.js";import"../../../__chunks__/chunk-NFWRULG5.js";import"../../../__chunks__/chunk-CALTQQB2.js";import"../../../__chunks__/chunk-WOK66U3L.js";import"../../../__chunks__/chunk-MWUPZQEA.js";import"../../../__chunks__/chunk-WODTNYFW.js";import"../../../__chunks__/chunk-47XDMA2I.js";import"../../../__chunks__/chunk-TIRPJY6G.js";import"../../../__chunks__/chunk-6WHJ3OVF.js";import"../../../__chunks__/chunk-OGKASO74.js";import"../../../__chunks__/chunk-HB2AQDPQ.js";import"../../../__chunks__/chunk-GEIY6QKK.js";import"../../../__chunks__/chunk-LOEOBGHO.js";import"../../../__chunks__/chunk-GL24S5GY.js";import"../../../__chunks__/chunk-SFQFF2AF.js";import"../../../__chunks__/chunk-BZYEY4V6.js";import"../../../__chunks__/chunk-BENZDWG3.js";import"../../../__chunks__/chunk-M6A74AE4.js";import"../../../__chunks__/chunk-NLU2B6MT.js";import"../../../__chunks__/chunk-HUMOP4SH.js";import"../../../__chunks__/chunk-OF3VHHUR.js";import"../../../__chunks__/chunk-JW7ZCUB4.js";import"../../../__chunks__/chunk-XK4XOW72.js";import"../../../__chunks__/chunk-KLFPAZSS.js";import"../../../__chunks__/chunk-EQSNZZK2.js";import"../../../__chunks__/chunk-PYQY6CVO.js";import"../../../__chunks__/chunk-UX4T4TMQ.js";import"../../../__chunks__/chunk-X42PRFW5.js";import"../../../__chunks__/chunk-G7UZISJS.js";import"../../../__chunks__/chunk-S5N3R4MS.js";import"../../../__chunks__/chunk-6AAZVCTM.js";import"../../../__chunks__/chunk-F52JH274.js";import"../../../__chunks__/chunk-PJKUI3Y6.js";import"../../../__chunks__/chunk-YV4Y3N6A.js";import"../../../__chunks__/chunk-IMORLJ4D.js";import"../../../__chunks__/chunk-KWQPHBRJ.js";import"../../../__chunks__/chunk-NQOAOMEL.js";import"../../../__chunks__/chunk-7WXEH6OF.js";import"../../../__chunks__/chunk-AGEOX5JH.js";import"../../../__chunks__/chunk-YRZKLN43.js";import"../../../__chunks__/chunk-6MPGZ74L.js";import"../../../__chunks__/chunk-KLPLQMYE.js";import"../../../__chunks__/chunk-ZRD6IVNQ.js";import"../../../__chunks__/chunk-4M54TFO5.js";import"../../../__chunks__/chunk-5MYSYVJW.js";import"../../../__chunks__/chunk-NLDKTPU3.js";import"../../../__chunks__/chunk-75625ISR.js";import"../../../__chunks__/chunk-5IMNE4MQ.js";import"../../../__chunks__/chunk-DIKVWGTG.js";import"../../../__chunks__/chunk-36NZZB3P.js";import"../../../__chunks__/chunk-V3YGOOML.js";import"../../../__chunks__/chunk-JFW7QJGM.js";import"../../../__chunks__/chunk-N3QTYKLF.js";import"../../../__chunks__/chunk-HGEGFQPE.js";import"../../../__chunks__/chunk-3S7LOHJV.js";import"../../../__chunks__/chunk-7GGJHWEK.js";import"../../../__chunks__/chunk-BQBE7OZR.js";import"../../../__chunks__/chunk-LVCWBXY5.js";import"../../../__chunks__/chunk-5ZPIIZLN.js";import"../../../__chunks__/chunk-WUI72I54.js";import"../../../__chunks__/chunk-VSQTFQMH.js";import"../../../__chunks__/chunk-4RLCYQ74.js";import"../../../__chunks__/chunk-LXRRORKB.js";import"../../../__chunks__/chunk-JRQHEQBW.js";import"../../../__chunks__/chunk-M5P3J4PH.js";import"../../../__chunks__/chunk-OWBHRN3S.js";import"../../../__chunks__/chunk-CCMLFI4B.js";import"../../../__chunks__/chunk-BQNI2XMA.js";import"../../../__chunks__/chunk-7TW5V77R.js";import"../../../__chunks__/chunk-2WQS6SUB.js";import"../../../__chunks__/chunk-H6BZGL2Y.js";import"../../../__chunks__/chunk-MR3V64MT.js";import"../../../__chunks__/chunk-5LNCQB7U.js";import"../../../__chunks__/chunk-ZHMC3BOL.js";import"../../../__chunks__/chunk-3HHAVSUJ.js";import"../../../__chunks__/chunk-JC264KXM.js";import"../../../__chunks__/chunk-UFOWE24Z.js";import"../../../__chunks__/chunk-RTUYXLM2.js";import"../../../__chunks__/chunk-3XTQ4ABX.js";import"../../../__chunks__/chunk-SNQ7GR7D.js";import"../../../__chunks__/chunk-CCJG3WLD.js";import"../../../__chunks__/chunk-2PCYLQVD.js";import"../../../__chunks__/chunk-TN3IL6YQ.js";import"../../../__chunks__/chunk-RNBBOBRQ.js";import"../../../__chunks__/chunk-EBV5V6SU.js";import"../../../__chunks__/chunk-ZYJTJW6F.js";import"../../../__chunks__/chunk-FDI635JG.js";import"../../../__chunks__/chunk-N7MHQ6JT.js";import"../../../__chunks__/chunk-SAQ2TZS4.js";import"../../../__chunks__/chunk-5DJROO27.js";import"../../../__chunks__/chunk-3DHA63I3.js";import"../../../__chunks__/chunk-PSOTUYYR.js";import"../../../__chunks__/chunk-FNNO6X33.js";import"../../../__chunks__/chunk-2QIFGJLP.js";import"../../../__chunks__/chunk-RALSJ7UN.js";import"../../../__chunks__/chunk-ARZYHB3G.js";import"../../../__chunks__/chunk-UPMSDSQP.js";import"../../../__chunks__/chunk-LN7HFODU.js";import"../../../__chunks__/chunk-6WZ7DVP7.js";import"../../../__chunks__/chunk-6LYBJWQO.js";import"../../../__chunks__/chunk-CHYGQARZ.js";import"../../../__chunks__/chunk-P2VXRWXU.js";import"../../../__chunks__/chunk-BPYUN5PX.js";import"../../../__chunks__/chunk-Z6QBE5W7.js";import"../../../__chunks__/chunk-MZKFMF7G.js";import"../../../__chunks__/chunk-YXJVLN63.js";import"../../../__chunks__/chunk-J42ZO72F.js";import"../../../__chunks__/chunk-6ZGFYJ6T.js";import"../../../__chunks__/chunk-HIMYYDUZ.js";import"../../../__chunks__/chunk-DYORUPQR.js";import"../../../__chunks__/chunk-COWA3VKU.js";import"../../../__chunks__/chunk-SC7SRUXL.js";import"../../../__chunks__/chunk-LOZF3QI7.js";import"../../../__chunks__/chunk-CCN5MMPI.js";import"../../../__chunks__/chunk-FC3UYSGH.js";import"../../../__chunks__/chunk-WISLI42M.js";import"../../../__chunks__/chunk-W7SO52DM.js";import"../../../__chunks__/chunk-PXHBOM4A.js";import"../../../__chunks__/chunk-6XR6BLIB.js";import"../../../__chunks__/chunk-5KGDRZSV.js";import"../../../__chunks__/chunk-HGOHQNWK.js";import"../../../__chunks__/chunk-WTIKHG7D.js";import"../../../__chunks__/chunk-KV4PBIVD.js";import"../../../__chunks__/chunk-ZX2XOMRP.js";import"../../../__chunks__/chunk-3ZGAB2KK.js";import"../../../__chunks__/chunk-GGMEVY45.js";import"../../../__chunks__/chunk-E3VZKZ3M.js";import"../../../__chunks__/chunk-5YFVFPXX.js";import"../../../__chunks__/chunk-X2JZA2ND.js";import"../../../__chunks__/chunk-BZUMXHQT.js";import"../../../__chunks__/chunk-WQFSDAGL.js";import"../../../__chunks__/chunk-RVXC64US.js";import"../../../__chunks__/chunk-7YHU2LQD.js";import"../../../__chunks__/chunk-A2R2BMVL.js";import"../../../__chunks__/chunk-FDSDVDKW.js";import"../../../__chunks__/chunk-27DX5WIQ.js";import"../../../__chunks__/chunk-326XWAT2.js";import"../../../__chunks__/chunk-FZ3QCOUU.js";import"../../../__chunks__/chunk-ERG7H4LX.js";import"../../../__chunks__/chunk-LIRR6LCS.js";import"../../../__chunks__/chunk-7CT2Q6BT.js";import"../../../__chunks__/chunk-XDZ2AX2X.js";import"../../../__chunks__/chunk-4SD7Y2KM.js";import"../../../__chunks__/chunk-W6HPOJ7Z.js";import"../../../__chunks__/chunk-6LITAK4Z.js";import"../../../__chunks__/chunk-GVCPEY3I.js";import"../../../__chunks__/chunk-2C7GRV4K.js";import"../../../__chunks__/chunk-XTDLK5SN.js";import"../../../__chunks__/chunk-TKJ42ND4.js";import"../../../__chunks__/chunk-HBP5N4FR.js";export{a as WebWalletLoginButton};
|
|
2
2
|
//# sourceMappingURL=WebWalletLoginButton.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";import"../../../__chunks__/chunk-WOY3DRDS.js";import{a}from"../../../__chunks__/chunk-2X7IQMV3.js";import"../../../__chunks__/chunk-FTE2VXGC.js";import"../../../__chunks__/chunk-E2Q2BLG6.js";import"../../../__chunks__/chunk-RJINUKHI.js";import"../../../__chunks__/chunk-JCAUBGCB.js";import"../../../__chunks__/chunk-LGBANZIL.js";import"../../../__chunks__/chunk-C7256GIJ.js";import"../../../__chunks__/chunk-QSRBOW33.js";import"../../../__chunks__/chunk-PXLKYXON.js";import"../../../__chunks__/chunk-WJGL6LVA.js";import"../../../__chunks__/chunk-LK5TR7MI.js";import"../../../__chunks__/chunk-OCMDIV3Q.js";import"../../../__chunks__/chunk-TKIIHBF2.js";import"../../../__chunks__/chunk-KMTPVLTX.js";import"../../../__chunks__/chunk-ATEFCARH.js";import"../../../__chunks__/chunk-JFXVZGSY.js";import"../../../__chunks__/chunk-TXAITGIS.js";import"../../../__chunks__/chunk-KOH3SXG4.js";import"../../../__chunks__/chunk-4ASJZWSW.js";import"../../../__chunks__/chunk-OM57M5QN.js";import"../../../__chunks__/chunk-KG4FUG77.js";import"../../../__chunks__/chunk-QYZILPYE.js";import"../../../__chunks__/chunk-XAQNBFSL.js";import"../../../__chunks__/chunk-5HMS5KVK.js";import"../../../__chunks__/chunk-53GKFOIV.js";import"../../../__chunks__/chunk-TSIOFCOA.js";import"../../../__chunks__/chunk-YAR2KJ42.js";import"../../../__chunks__/chunk-OMT4TEDL.js";import"../../../__chunks__/chunk-FZMRVALH.js";import"../../../__chunks__/chunk-YOL72E3K.js";import"../../../__chunks__/chunk-37ZHJ2BK.js";import"../../../__chunks__/chunk-EA6JYINF.js";import"../../../__chunks__/chunk-ELWERAIL.js";import"../../../__chunks__/chunk-F7XKTZUU.js";import"../../../__chunks__/chunk-QUO3WQQP.js";import"../../../__chunks__/chunk-WGNJV6FV.js";import"../../../__chunks__/chunk-KZR7TQ7H.js";import"../../../__chunks__/chunk-XOZ662VA.js";import"../../../__chunks__/chunk-LO5NNAIV.js";import"../../../__chunks__/chunk-NAN2H6P3.js";import"../../../__chunks__/chunk-KTZ6NJYR.js";import"../../../__chunks__/chunk-RDB2436S.js";import"../../../__chunks__/chunk-VYPB4XKB.js";import"../../../__chunks__/chunk-7MWHZFZC.js";import"../../../__chunks__/chunk-VU5KZZ4F.js";import"../../../__chunks__/chunk-3LSGWB2D.js";import"../../../__chunks__/chunk-HH5S5FOE.js";import"../../../__chunks__/chunk-VDBMCVHT.js";import"../../../__chunks__/chunk-22UA5SNR.js";import"../../../__chunks__/chunk-NTW7VNS4.js";import"../../../__chunks__/chunk-GZAWM3MB.js";import"../../../__chunks__/chunk-JAHQWF5V.js";import"../../../__chunks__/chunk-CLZCWECI.js";import"../../../__chunks__/chunk-TXPZDSWB.js";import"../../../__chunks__/chunk-HN3VGROH.js";import"../../../__chunks__/chunk-KA4LEM3K.js";import"../../../__chunks__/chunk-SS4V3OT5.js";import"../../../__chunks__/chunk-OM2VSN3H.js";import"../../../__chunks__/chunk-S2TYOHJC.js";import"../../../__chunks__/chunk-IIEA2LVW.js";import"../../../__chunks__/chunk-NJWMFRBP.js";import"../../../__chunks__/chunk-EGS2BNV2.js";import"../../../__chunks__/chunk-JQGZ4NPN.js";import"../../../__chunks__/chunk-X4RET644.js";import"../../../__chunks__/chunk-QYC2Z4FV.js";import"../../../__chunks__/chunk-4IMFSHJX.js";import"../../../__chunks__/chunk-FBHNJJZH.js";import"../../../__chunks__/chunk-OR4IOV6T.js";import"../../../__chunks__/chunk-KEQTNP4F.js";import"../../../__chunks__/chunk-YTGZMJXZ.js";import"../../../__chunks__/chunk-5DFOBP4C.js";import"../../../__chunks__/chunk-4JP4CKHO.js";import"../../../__chunks__/chunk-CQVQUVCV.js";import"../../../__chunks__/chunk-A46DJQ6R.js";import"../../../__chunks__/chunk-3U7QBETU.js";import"../../../__chunks__/chunk-DBD6N2CW.js";import"../../../__chunks__/chunk-K7EQVIHG.js";import"../../../__chunks__/chunk-JS3K5CWO.js";import"../../../__chunks__/chunk-LWYP45DI.js";import"../../../__chunks__/chunk-QP6LGN2T.js";import"../../../__chunks__/chunk-OFXDXKXF.js";import"../../../__chunks__/chunk-XNFCZFZP.js";import"../../../__chunks__/chunk-V2JQJYU7.js";import"../../../__chunks__/chunk-B2J4SA2C.js";import"../../../__chunks__/chunk-VZBHRDOX.js";import"../../../__chunks__/chunk-2C4V4IXB.js";import"../../../__chunks__/chunk-CJLDKFVG.js";import"../../../__chunks__/chunk-LJ7BGBHG.js";import"../../../__chunks__/chunk-2WP7OVEE.js";import"../../../__chunks__/chunk-U3TQIHS4.js";import"../../../__chunks__/chunk-LVXEGFDX.js";import"../../../__chunks__/chunk-SGQ54NQK.js";import"../../../__chunks__/chunk-JCJ47OMS.js";import"../../../__chunks__/chunk-Y4RCHOTY.js";import"../../../__chunks__/chunk-N3R7LCX5.js";import"../../../__chunks__/chunk-JRB2SSEU.js";import"../../../__chunks__/chunk-6ALBKZZO.js";import"../../../__chunks__/chunk-RXV2CATH.js";import"../../../__chunks__/chunk-6A3UTLF2.js";import"../../../__chunks__/chunk-26GS6QMF.js";import"../../../__chunks__/chunk-R7XFYQRR.js";import"../../../__chunks__/chunk-UY6STZS7.js";import"../../../__chunks__/chunk-II4YGYVN.js";import"../../../__chunks__/chunk-NFWRULG5.js";import"../../../__chunks__/chunk-CALTQQB2.js";import"../../../__chunks__/chunk-WOK66U3L.js";import"../../../__chunks__/chunk-MWUPZQEA.js";import"../../../__chunks__/chunk-WODTNYFW.js";import"../../../__chunks__/chunk-47XDMA2I.js";import"../../../__chunks__/chunk-TIRPJY6G.js";import"../../../__chunks__/chunk-6WHJ3OVF.js";import"../../../__chunks__/chunk-OGKASO74.js";import"../../../__chunks__/chunk-HB2AQDPQ.js";import"../../../__chunks__/chunk-GEIY6QKK.js";import"../../../__chunks__/chunk-LOEOBGHO.js";import"../../../__chunks__/chunk-GL24S5GY.js";import"../../../__chunks__/chunk-SFQFF2AF.js";import"../../../__chunks__/chunk-BZYEY4V6.js";import"../../../__chunks__/chunk-BENZDWG3.js";import"../../../__chunks__/chunk-M6A74AE4.js";import"../../../__chunks__/chunk-NLU2B6MT.js";import"../../../__chunks__/chunk-HUMOP4SH.js";import"../../../__chunks__/chunk-OF3VHHUR.js";import"../../../__chunks__/chunk-JW7ZCUB4.js";import"../../../__chunks__/chunk-XK4XOW72.js";import"../../../__chunks__/chunk-KLFPAZSS.js";import"../../../__chunks__/chunk-EQSNZZK2.js";import"../../../__chunks__/chunk-PYQY6CVO.js";import"../../../__chunks__/chunk-UX4T4TMQ.js";import"../../../__chunks__/chunk-X42PRFW5.js";import"../../../__chunks__/chunk-G7UZISJS.js";import"../../../__chunks__/chunk-S5N3R4MS.js";import"../../../__chunks__/chunk-6AAZVCTM.js";import"../../../__chunks__/chunk-F52JH274.js";import"../../../__chunks__/chunk-PJKUI3Y6.js";import"../../../__chunks__/chunk-YV4Y3N6A.js";import"../../../__chunks__/chunk-IMORLJ4D.js";import"../../../__chunks__/chunk-KWQPHBRJ.js";import"../../../__chunks__/chunk-NQOAOMEL.js";import"../../../__chunks__/chunk-7WXEH6OF.js";import"../../../__chunks__/chunk-AGEOX5JH.js";import"../../../__chunks__/chunk-YRZKLN43.js";import"../../../__chunks__/chunk-6MPGZ74L.js";import"../../../__chunks__/chunk-KLPLQMYE.js";import"../../../__chunks__/chunk-ZRD6IVNQ.js";import"../../../__chunks__/chunk-4M54TFO5.js";import"../../../__chunks__/chunk-5MYSYVJW.js";import"../../../__chunks__/chunk-NLDKTPU3.js";import"../../../__chunks__/chunk-75625ISR.js";import"../../../__chunks__/chunk-5IMNE4MQ.js";import"../../../__chunks__/chunk-DIKVWGTG.js";import"../../../__chunks__/chunk-36NZZB3P.js";import"../../../__chunks__/chunk-V3YGOOML.js";import"../../../__chunks__/chunk-JFW7QJGM.js";import"../../../__chunks__/chunk-N3QTYKLF.js";import"../../../__chunks__/chunk-HGEGFQPE.js";import"../../../__chunks__/chunk-3S7LOHJV.js";import"../../../__chunks__/chunk-7GGJHWEK.js";import"../../../__chunks__/chunk-BQBE7OZR.js";import"../../../__chunks__/chunk-LVCWBXY5.js";import"../../../__chunks__/chunk-5ZPIIZLN.js";import"../../../__chunks__/chunk-WUI72I54.js";import"../../../__chunks__/chunk-VSQTFQMH.js";import"../../../__chunks__/chunk-4RLCYQ74.js";import"../../../__chunks__/chunk-LXRRORKB.js";import"../../../__chunks__/chunk-JRQHEQBW.js";import"../../../__chunks__/chunk-M5P3J4PH.js";import"../../../__chunks__/chunk-OWBHRN3S.js";import"../../../__chunks__/chunk-CCMLFI4B.js";import"../../../__chunks__/chunk-BQNI2XMA.js";import"../../../__chunks__/chunk-7TW5V77R.js";import"../../../__chunks__/chunk-2WQS6SUB.js";import"../../../__chunks__/chunk-H6BZGL2Y.js";import"../../../__chunks__/chunk-MR3V64MT.js";import"../../../__chunks__/chunk-5LNCQB7U.js";import"../../../__chunks__/chunk-ZHMC3BOL.js";import"../../../__chunks__/chunk-3HHAVSUJ.js";import"../../../__chunks__/chunk-JC264KXM.js";import"../../../__chunks__/chunk-UFOWE24Z.js";import"../../../__chunks__/chunk-RTUYXLM2.js";import"../../../__chunks__/chunk-3XTQ4ABX.js";import"../../../__chunks__/chunk-SNQ7GR7D.js";import"../../../__chunks__/chunk-CCJG3WLD.js";import"../../../__chunks__/chunk-2PCYLQVD.js";import"../../../__chunks__/chunk-TN3IL6YQ.js";import"../../../__chunks__/chunk-RNBBOBRQ.js";import"../../../__chunks__/chunk-EBV5V6SU.js";import"../../../__chunks__/chunk-ZYJTJW6F.js";import"../../../__chunks__/chunk-FDI635JG.js";import"../../../__chunks__/chunk-N7MHQ6JT.js";import"../../../__chunks__/chunk-SAQ2TZS4.js";import"../../../__chunks__/chunk-5DJROO27.js";import"../../../__chunks__/chunk-3DHA63I3.js";import"../../../__chunks__/chunk-PSOTUYYR.js";import"../../../__chunks__/chunk-FNNO6X33.js";import"../../../__chunks__/chunk-2QIFGJLP.js";import"../../../__chunks__/chunk-RALSJ7UN.js";import"../../../__chunks__/chunk-ARZYHB3G.js";import"../../../__chunks__/chunk-UPMSDSQP.js";import"../../../__chunks__/chunk-LN7HFODU.js";import"../../../__chunks__/chunk-6WZ7DVP7.js";import"../../../__chunks__/chunk-6LYBJWQO.js";import"../../../__chunks__/chunk-CHYGQARZ.js";import"../../../__chunks__/chunk-P2VXRWXU.js";import"../../../__chunks__/chunk-BPYUN5PX.js";import"../../../__chunks__/chunk-Z6QBE5W7.js";import"../../../__chunks__/chunk-MZKFMF7G.js";import"../../../__chunks__/chunk-YXJVLN63.js";import"../../../__chunks__/chunk-J42ZO72F.js";import"../../../__chunks__/chunk-6ZGFYJ6T.js";import"../../../__chunks__/chunk-HIMYYDUZ.js";import"../../../__chunks__/chunk-DYORUPQR.js";import"../../../__chunks__/chunk-COWA3VKU.js";import"../../../__chunks__/chunk-SC7SRUXL.js";import"../../../__chunks__/chunk-LOZF3QI7.js";import"../../../__chunks__/chunk-CCN5MMPI.js";import"../../../__chunks__/chunk-FC3UYSGH.js";import"../../../__chunks__/chunk-WISLI42M.js";import"../../../__chunks__/chunk-W7SO52DM.js";import"../../../__chunks__/chunk-PXHBOM4A.js";import"../../../__chunks__/chunk-6XR6BLIB.js";import"../../../__chunks__/chunk-5KGDRZSV.js";import"../../../__chunks__/chunk-HGOHQNWK.js";import"../../../__chunks__/chunk-WTIKHG7D.js";import"../../../__chunks__/chunk-KV4PBIVD.js";import"../../../__chunks__/chunk-ZX2XOMRP.js";import"../../../__chunks__/chunk-3ZGAB2KK.js";import"../../../__chunks__/chunk-GGMEVY45.js";import"../../../__chunks__/chunk-E3VZKZ3M.js";import"../../../__chunks__/chunk-5YFVFPXX.js";import"../../../__chunks__/chunk-X2JZA2ND.js";import"../../../__chunks__/chunk-BZUMXHQT.js";import"../../../__chunks__/chunk-WQFSDAGL.js";import"../../../__chunks__/chunk-RVXC64US.js";import"../../../__chunks__/chunk-7YHU2LQD.js";import"../../../__chunks__/chunk-A2R2BMVL.js";import"../../../__chunks__/chunk-FDSDVDKW.js";import"../../../__chunks__/chunk-27DX5WIQ.js";import"../../../__chunks__/chunk-326XWAT2.js";import"../../../__chunks__/chunk-FZ3QCOUU.js";import"../../../__chunks__/chunk-ERG7H4LX.js";import"../../../__chunks__/chunk-LIRR6LCS.js";import"../../../__chunks__/chunk-7CT2Q6BT.js";import"../../../__chunks__/chunk-XDZ2AX2X.js";import"../../../__chunks__/chunk-4SD7Y2KM.js";import"../../../__chunks__/chunk-W6HPOJ7Z.js";import"../../../__chunks__/chunk-6LITAK4Z.js";import"../../../__chunks__/chunk-GVCPEY3I.js";import"../../../__chunks__/chunk-2C7GRV4K.js";import"../../../__chunks__/chunk-XTDLK5SN.js";import"../../../__chunks__/chunk-TKJ42ND4.js";import"../../../__chunks__/chunk-HBP5N4FR.js";export{a as WebWalletLoginButton};
|
|
1
|
+
"use strict";import"../../../__chunks__/chunk-WOY3DRDS.js";import{a}from"../../../__chunks__/chunk-66GI5LMJ.js";import"../../../__chunks__/chunk-FTE2VXGC.js";import"../../../__chunks__/chunk-E2Q2BLG6.js";import"../../../__chunks__/chunk-VGTBAXEI.js";import"../../../__chunks__/chunk-JCAUBGCB.js";import"../../../__chunks__/chunk-LGBANZIL.js";import"../../../__chunks__/chunk-C7256GIJ.js";import"../../../__chunks__/chunk-QSRBOW33.js";import"../../../__chunks__/chunk-PXLKYXON.js";import"../../../__chunks__/chunk-WJGL6LVA.js";import"../../../__chunks__/chunk-LK5TR7MI.js";import"../../../__chunks__/chunk-OCMDIV3Q.js";import"../../../__chunks__/chunk-TKIIHBF2.js";import"../../../__chunks__/chunk-KMTPVLTX.js";import"../../../__chunks__/chunk-ATEFCARH.js";import"../../../__chunks__/chunk-JFXVZGSY.js";import"../../../__chunks__/chunk-TXAITGIS.js";import"../../../__chunks__/chunk-KOH3SXG4.js";import"../../../__chunks__/chunk-4ASJZWSW.js";import"../../../__chunks__/chunk-OM57M5QN.js";import"../../../__chunks__/chunk-KG4FUG77.js";import"../../../__chunks__/chunk-QYZILPYE.js";import"../../../__chunks__/chunk-XAQNBFSL.js";import"../../../__chunks__/chunk-5HMS5KVK.js";import"../../../__chunks__/chunk-53GKFOIV.js";import"../../../__chunks__/chunk-TSIOFCOA.js";import"../../../__chunks__/chunk-YAR2KJ42.js";import"../../../__chunks__/chunk-OMT4TEDL.js";import"../../../__chunks__/chunk-FZMRVALH.js";import"../../../__chunks__/chunk-YOL72E3K.js";import"../../../__chunks__/chunk-37ZHJ2BK.js";import"../../../__chunks__/chunk-EA6JYINF.js";import"../../../__chunks__/chunk-ELWERAIL.js";import"../../../__chunks__/chunk-F7XKTZUU.js";import"../../../__chunks__/chunk-QUO3WQQP.js";import"../../../__chunks__/chunk-WGNJV6FV.js";import"../../../__chunks__/chunk-KZR7TQ7H.js";import"../../../__chunks__/chunk-XOZ662VA.js";import"../../../__chunks__/chunk-LO5NNAIV.js";import"../../../__chunks__/chunk-NAN2H6P3.js";import"../../../__chunks__/chunk-KTZ6NJYR.js";import"../../../__chunks__/chunk-RDB2436S.js";import"../../../__chunks__/chunk-VYPB4XKB.js";import"../../../__chunks__/chunk-7MWHZFZC.js";import"../../../__chunks__/chunk-VU5KZZ4F.js";import"../../../__chunks__/chunk-3LSGWB2D.js";import"../../../__chunks__/chunk-HH5S5FOE.js";import"../../../__chunks__/chunk-VDBMCVHT.js";import"../../../__chunks__/chunk-22UA5SNR.js";import"../../../__chunks__/chunk-NTW7VNS4.js";import"../../../__chunks__/chunk-GZAWM3MB.js";import"../../../__chunks__/chunk-JAHQWF5V.js";import"../../../__chunks__/chunk-CLZCWECI.js";import"../../../__chunks__/chunk-TXPZDSWB.js";import"../../../__chunks__/chunk-HN3VGROH.js";import"../../../__chunks__/chunk-KA4LEM3K.js";import"../../../__chunks__/chunk-SS4V3OT5.js";import"../../../__chunks__/chunk-OM2VSN3H.js";import"../../../__chunks__/chunk-S2TYOHJC.js";import"../../../__chunks__/chunk-IIEA2LVW.js";import"../../../__chunks__/chunk-NJWMFRBP.js";import"../../../__chunks__/chunk-EGS2BNV2.js";import"../../../__chunks__/chunk-JQGZ4NPN.js";import"../../../__chunks__/chunk-X4RET644.js";import"../../../__chunks__/chunk-QYC2Z4FV.js";import"../../../__chunks__/chunk-4IMFSHJX.js";import"../../../__chunks__/chunk-FBHNJJZH.js";import"../../../__chunks__/chunk-OR4IOV6T.js";import"../../../__chunks__/chunk-KEQTNP4F.js";import"../../../__chunks__/chunk-YTGZMJXZ.js";import"../../../__chunks__/chunk-5DFOBP4C.js";import"../../../__chunks__/chunk-4JP4CKHO.js";import"../../../__chunks__/chunk-CQVQUVCV.js";import"../../../__chunks__/chunk-A46DJQ6R.js";import"../../../__chunks__/chunk-3U7QBETU.js";import"../../../__chunks__/chunk-DBD6N2CW.js";import"../../../__chunks__/chunk-K7EQVIHG.js";import"../../../__chunks__/chunk-JS3K5CWO.js";import"../../../__chunks__/chunk-LWYP45DI.js";import"../../../__chunks__/chunk-QP6LGN2T.js";import"../../../__chunks__/chunk-OFXDXKXF.js";import"../../../__chunks__/chunk-XNFCZFZP.js";import"../../../__chunks__/chunk-V2JQJYU7.js";import"../../../__chunks__/chunk-B2J4SA2C.js";import"../../../__chunks__/chunk-VZBHRDOX.js";import"../../../__chunks__/chunk-2C4V4IXB.js";import"../../../__chunks__/chunk-CJLDKFVG.js";import"../../../__chunks__/chunk-LJ7BGBHG.js";import"../../../__chunks__/chunk-2WP7OVEE.js";import"../../../__chunks__/chunk-U3TQIHS4.js";import"../../../__chunks__/chunk-LVXEGFDX.js";import"../../../__chunks__/chunk-SGQ54NQK.js";import"../../../__chunks__/chunk-JCJ47OMS.js";import"../../../__chunks__/chunk-Y4RCHOTY.js";import"../../../__chunks__/chunk-N3R7LCX5.js";import"../../../__chunks__/chunk-JRB2SSEU.js";import"../../../__chunks__/chunk-6ALBKZZO.js";import"../../../__chunks__/chunk-RXV2CATH.js";import"../../../__chunks__/chunk-6A3UTLF2.js";import"../../../__chunks__/chunk-26GS6QMF.js";import"../../../__chunks__/chunk-R7XFYQRR.js";import"../../../__chunks__/chunk-UY6STZS7.js";import"../../../__chunks__/chunk-II4YGYVN.js";import"../../../__chunks__/chunk-NFWRULG5.js";import"../../../__chunks__/chunk-CALTQQB2.js";import"../../../__chunks__/chunk-WOK66U3L.js";import"../../../__chunks__/chunk-MWUPZQEA.js";import"../../../__chunks__/chunk-WODTNYFW.js";import"../../../__chunks__/chunk-47XDMA2I.js";import"../../../__chunks__/chunk-TIRPJY6G.js";import"../../../__chunks__/chunk-6WHJ3OVF.js";import"../../../__chunks__/chunk-OGKASO74.js";import"../../../__chunks__/chunk-HB2AQDPQ.js";import"../../../__chunks__/chunk-GEIY6QKK.js";import"../../../__chunks__/chunk-LOEOBGHO.js";import"../../../__chunks__/chunk-GL24S5GY.js";import"../../../__chunks__/chunk-SFQFF2AF.js";import"../../../__chunks__/chunk-BZYEY4V6.js";import"../../../__chunks__/chunk-BENZDWG3.js";import"../../../__chunks__/chunk-M6A74AE4.js";import"../../../__chunks__/chunk-NLU2B6MT.js";import"../../../__chunks__/chunk-HUMOP4SH.js";import"../../../__chunks__/chunk-OF3VHHUR.js";import"../../../__chunks__/chunk-JW7ZCUB4.js";import"../../../__chunks__/chunk-XK4XOW72.js";import"../../../__chunks__/chunk-KLFPAZSS.js";import"../../../__chunks__/chunk-EQSNZZK2.js";import"../../../__chunks__/chunk-PYQY6CVO.js";import"../../../__chunks__/chunk-UX4T4TMQ.js";import"../../../__chunks__/chunk-X42PRFW5.js";import"../../../__chunks__/chunk-G7UZISJS.js";import"../../../__chunks__/chunk-S5N3R4MS.js";import"../../../__chunks__/chunk-6AAZVCTM.js";import"../../../__chunks__/chunk-F52JH274.js";import"../../../__chunks__/chunk-PJKUI3Y6.js";import"../../../__chunks__/chunk-YV4Y3N6A.js";import"../../../__chunks__/chunk-IMORLJ4D.js";import"../../../__chunks__/chunk-KWQPHBRJ.js";import"../../../__chunks__/chunk-NQOAOMEL.js";import"../../../__chunks__/chunk-7WXEH6OF.js";import"../../../__chunks__/chunk-AGEOX5JH.js";import"../../../__chunks__/chunk-YRZKLN43.js";import"../../../__chunks__/chunk-6MPGZ74L.js";import"../../../__chunks__/chunk-KLPLQMYE.js";import"../../../__chunks__/chunk-ZRD6IVNQ.js";import"../../../__chunks__/chunk-4M54TFO5.js";import"../../../__chunks__/chunk-5MYSYVJW.js";import"../../../__chunks__/chunk-NLDKTPU3.js";import"../../../__chunks__/chunk-75625ISR.js";import"../../../__chunks__/chunk-5IMNE4MQ.js";import"../../../__chunks__/chunk-DIKVWGTG.js";import"../../../__chunks__/chunk-36NZZB3P.js";import"../../../__chunks__/chunk-V3YGOOML.js";import"../../../__chunks__/chunk-JFW7QJGM.js";import"../../../__chunks__/chunk-N3QTYKLF.js";import"../../../__chunks__/chunk-HGEGFQPE.js";import"../../../__chunks__/chunk-3S7LOHJV.js";import"../../../__chunks__/chunk-7GGJHWEK.js";import"../../../__chunks__/chunk-BQBE7OZR.js";import"../../../__chunks__/chunk-LVCWBXY5.js";import"../../../__chunks__/chunk-5ZPIIZLN.js";import"../../../__chunks__/chunk-WUI72I54.js";import"../../../__chunks__/chunk-VSQTFQMH.js";import"../../../__chunks__/chunk-4RLCYQ74.js";import"../../../__chunks__/chunk-LXRRORKB.js";import"../../../__chunks__/chunk-JRQHEQBW.js";import"../../../__chunks__/chunk-M5P3J4PH.js";import"../../../__chunks__/chunk-OWBHRN3S.js";import"../../../__chunks__/chunk-CCMLFI4B.js";import"../../../__chunks__/chunk-BQNI2XMA.js";import"../../../__chunks__/chunk-7TW5V77R.js";import"../../../__chunks__/chunk-2WQS6SUB.js";import"../../../__chunks__/chunk-H6BZGL2Y.js";import"../../../__chunks__/chunk-MR3V64MT.js";import"../../../__chunks__/chunk-5LNCQB7U.js";import"../../../__chunks__/chunk-ZHMC3BOL.js";import"../../../__chunks__/chunk-3HHAVSUJ.js";import"../../../__chunks__/chunk-JC264KXM.js";import"../../../__chunks__/chunk-UFOWE24Z.js";import"../../../__chunks__/chunk-RTUYXLM2.js";import"../../../__chunks__/chunk-3XTQ4ABX.js";import"../../../__chunks__/chunk-SNQ7GR7D.js";import"../../../__chunks__/chunk-CCJG3WLD.js";import"../../../__chunks__/chunk-2PCYLQVD.js";import"../../../__chunks__/chunk-TN3IL6YQ.js";import"../../../__chunks__/chunk-RNBBOBRQ.js";import"../../../__chunks__/chunk-EBV5V6SU.js";import"../../../__chunks__/chunk-ZYJTJW6F.js";import"../../../__chunks__/chunk-FDI635JG.js";import"../../../__chunks__/chunk-N7MHQ6JT.js";import"../../../__chunks__/chunk-SAQ2TZS4.js";import"../../../__chunks__/chunk-5DJROO27.js";import"../../../__chunks__/chunk-3DHA63I3.js";import"../../../__chunks__/chunk-PSOTUYYR.js";import"../../../__chunks__/chunk-FNNO6X33.js";import"../../../__chunks__/chunk-2QIFGJLP.js";import"../../../__chunks__/chunk-RALSJ7UN.js";import"../../../__chunks__/chunk-ARZYHB3G.js";import"../../../__chunks__/chunk-UPMSDSQP.js";import"../../../__chunks__/chunk-LN7HFODU.js";import"../../../__chunks__/chunk-6WZ7DVP7.js";import"../../../__chunks__/chunk-6LYBJWQO.js";import"../../../__chunks__/chunk-CHYGQARZ.js";import"../../../__chunks__/chunk-P2VXRWXU.js";import"../../../__chunks__/chunk-BPYUN5PX.js";import"../../../__chunks__/chunk-Z6QBE5W7.js";import"../../../__chunks__/chunk-MZKFMF7G.js";import"../../../__chunks__/chunk-YXJVLN63.js";import"../../../__chunks__/chunk-J42ZO72F.js";import"../../../__chunks__/chunk-6ZGFYJ6T.js";import"../../../__chunks__/chunk-HIMYYDUZ.js";import"../../../__chunks__/chunk-DYORUPQR.js";import"../../../__chunks__/chunk-COWA3VKU.js";import"../../../__chunks__/chunk-SC7SRUXL.js";import"../../../__chunks__/chunk-LOZF3QI7.js";import"../../../__chunks__/chunk-CCN5MMPI.js";import"../../../__chunks__/chunk-FC3UYSGH.js";import"../../../__chunks__/chunk-WISLI42M.js";import"../../../__chunks__/chunk-W7SO52DM.js";import"../../../__chunks__/chunk-PXHBOM4A.js";import"../../../__chunks__/chunk-6XR6BLIB.js";import"../../../__chunks__/chunk-5KGDRZSV.js";import"../../../__chunks__/chunk-HGOHQNWK.js";import"../../../__chunks__/chunk-WTIKHG7D.js";import"../../../__chunks__/chunk-KV4PBIVD.js";import"../../../__chunks__/chunk-ZX2XOMRP.js";import"../../../__chunks__/chunk-3ZGAB2KK.js";import"../../../__chunks__/chunk-GGMEVY45.js";import"../../../__chunks__/chunk-E3VZKZ3M.js";import"../../../__chunks__/chunk-5YFVFPXX.js";import"../../../__chunks__/chunk-X2JZA2ND.js";import"../../../__chunks__/chunk-BZUMXHQT.js";import"../../../__chunks__/chunk-WQFSDAGL.js";import"../../../__chunks__/chunk-RVXC64US.js";import"../../../__chunks__/chunk-7YHU2LQD.js";import"../../../__chunks__/chunk-A2R2BMVL.js";import"../../../__chunks__/chunk-FDSDVDKW.js";import"../../../__chunks__/chunk-27DX5WIQ.js";import"../../../__chunks__/chunk-326XWAT2.js";import"../../../__chunks__/chunk-FZ3QCOUU.js";import"../../../__chunks__/chunk-ERG7H4LX.js";import"../../../__chunks__/chunk-LIRR6LCS.js";import"../../../__chunks__/chunk-7CT2Q6BT.js";import"../../../__chunks__/chunk-XDZ2AX2X.js";import"../../../__chunks__/chunk-4SD7Y2KM.js";import"../../../__chunks__/chunk-W6HPOJ7Z.js";import"../../../__chunks__/chunk-6LITAK4Z.js";import"../../../__chunks__/chunk-GVCPEY3I.js";import"../../../__chunks__/chunk-2C7GRV4K.js";import"../../../__chunks__/chunk-XTDLK5SN.js";import"../../../__chunks__/chunk-TKJ42ND4.js";import"../../../__chunks__/chunk-HBP5N4FR.js";export{a as WebWalletLoginButton};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as i}from"./chunk-FTE2VXGC.js";import{a as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as i}from"./chunk-FTE2VXGC.js";import{a as n}from"./chunk-VGTBAXEI.js";import{a as o}from"./chunk-QSRBOW33.js";import{m as e}from"./chunk-HBP5N4FR.js";e();import L from"react";var v=({children:a,token:t,className:l="dapp-web-wallet-login",callbackRoute:s,buttonClassName:r,nativeAuth:p,"data-testid":d,loginButtonText:g="MultiversX Web Wallet",disabled:m,customWalletAddress:W})=>{let[b]=n({callbackRoute:s,nativeAuth:p,token:t,customWalletAddress:W}),u=o(t);return L.createElement(i,{onLogin:()=>{b()},className:l,btnClassName:r,text:g,"data-testid":d,disabled:m||u},a)};export{v as a};
|
|
2
|
+
//# sourceMappingURL=chunk-66GI5LMJ.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as t,b as e,m as o}from"./chunk-HBP5N4FR.js";o();var w=()=>{if(!window)return;let r=window.history;delete window.history,window.history=Object.defineProperties({},e(t({},Object.getOwnPropertyDescriptors(r)),{pushState:{configurable:!0,value:jest.fn()}}))};export{w as a};
|
|
2
|
+
//# sourceMappingURL=chunk-6KZ376QS.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as o,b as e,m as n}from"./chunk-HBP5N4FR.js";n();var w=()=>{if(!window)return;let t=window.location;delete window.location,window.location=Object.defineProperties({},e(o({},Object.getOwnPropertyDescriptors(t)),{assign:{configurable:!0,value:jest.fn()}}))};export{w as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ALWWVLET.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as d}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as d}from"./chunk-66GI5LMJ.js";import{a as p}from"./chunk-KCRZ2IKE.js";import{a as g}from"./chunk-JXMKS6VA.js";import{b as c}from"./chunk-V54HNRTY.js";import{a as m}from"./chunk-G4GDOBSY.js";import{a as s}from"./chunk-6YG6LLUA.js";import{a}from"./chunk-3LSGWB2D.js";import{b as t}from"./chunk-K7EQVIHG.js";import{m as l}from"./chunk-HBP5N4FR.js";l();import o,{useEffect as N}from"react";import i from"classnames";var U=({loginRoute:e,title:x="Login",className:u="dapp-unlock-page",LedgerLoginButtonText:B="Ledger",description:L="Pick a login method",WalletConnectLoginButtonText:f="xPortal App",ExtensionLoginButtonText:b="Extension",OperaWalletLoginButtonText:T="Opera Crypto Wallet",WebWalletLoginButtonText:W="Web wallet"})=>{let n={wrapper:i(c.home,t.dFlex,t.flexFill,t.alignItemsCenter,u),title:t.mb4,description:t.mb4,cardContainer:t.mAuto,card:i(t.card,t.my4,t.textCenter),cardBody:i(t.cardBody,t.py4,t.px2,t.pxSm2,t.mxLg4)},{isLoggedIn:r}=a();return N(()=>{r&&window&&(window.location.href=e)},[r]),o.createElement("div",{className:n.wrapper},o.createElement("div",{className:n.cardContainer},o.createElement("div",{className:n.card},o.createElement("div",{className:n.cardBody},o.createElement("h4",{className:i(t.h4,t.title)},x),o.createElement("p",{className:n.description},L),o.createElement(s,{callbackRoute:e,loginButtonText:b}),o.createElement(g,{callbackRoute:e,loginButtonText:T}),o.createElement(d,{callbackRoute:e,loginButtonText:W}),o.createElement(m,{loginButtonText:B,callbackRoute:e}),o.createElement(p,{callbackRoute:e,loginButtonText:f})))))};export{U as a};
|
|
2
|
+
//# sourceMappingURL=chunk-CNEOY4HF.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as h}from"./chunk-JCAUBGCB.js";import{a as U}from"./chunk-OMT4TEDL.js";import{a as b}from"./chunk-OR4IOV6T.js";import{c as W}from"./chunk-5DFOBP4C.js";import{c as I,d as S}from"./chunk-A46DJQ6R.js";import{q as j}from"./chunk-OFXDXKXF.js";import{a as k,b as H}from"./chunk-OWBHRN3S.js";import{h as T}from"./chunk-CCMLFI4B.js";import{a as B}from"./chunk-LN7HFODU.js";import{g as w}from"./chunk-P2VXRWXU.js";import{e as y}from"./chunk-MZKFMF7G.js";import{h as u,j as z}from"./chunk-7YHU2LQD.js";import{a as L,b as m,j as d,m as f}from"./chunk-HBP5N4FR.js";f();z();import{useState as v}from"react";j();B();H();var ae=({callbackRoute:i,token:P,nativeAuth:r,redirectDelayMilliseconds:R=100,customWalletAddress:o})=>{let[s,x]=v(""),[D,a]=v(!1),N=S(T),c=I(),l=b(),O=Boolean(r),g=U(r),e=P;function C(){return d(this,null,function*(){if(l)throw new Error(u);c(y(o));try{a(!0);let n=W(o!=null?o:N.walletAddress),p=new Date,E=p.setMinutes(p.getMinutes()+3)/1e3,M={data:{},expires:E};if(O&&!e&&(e=yield g.getNativeAuthLoginToken(),!e)){console.warn("Login cancelled.");return}e&&g.setLoginToken(e);let{origin:A}=k(),F=window!=null&&window.location?`${A}${i}`:`${i}`;new URLSearchParams(document.location.search).get("address")||c(w(M));let G=h(F),_=encodeURIComponent(G),$=m(L({callbackUrl:_},e&&{token:e}),{redirectDelayMilliseconds:R});yield n.login($)}catch(n){console.error(n),x("error logging in"+n.message)}finally{a(!1)}})}let t=Boolean(s);return[C,{error:s,loginFailed:t,isLoading:D&&!t,isLoggedIn:l&&!t}]};export{ae as a};
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as h}from"./chunk-JCAUBGCB.js";import{a as U}from"./chunk-OMT4TEDL.js";import{a as b}from"./chunk-OR4IOV6T.js";import{c as W}from"./chunk-5DFOBP4C.js";import{c as I,d as S}from"./chunk-A46DJQ6R.js";import{q as j}from"./chunk-OFXDXKXF.js";import{a as k,b as H}from"./chunk-OWBHRN3S.js";import{h as T}from"./chunk-CCMLFI4B.js";import{a as B}from"./chunk-LN7HFODU.js";import{g as w}from"./chunk-P2VXRWXU.js";import{e as y}from"./chunk-MZKFMF7G.js";import{h as u,j as z}from"./chunk-7YHU2LQD.js";import{a as L,b as m,j as d,m as f}from"./chunk-HBP5N4FR.js";f();z();import{useState as v}from"react";j();B();H();var ae=({callbackRoute:i,token:P,nativeAuth:r,redirectDelayMilliseconds:R=100,customWalletAddress:o})=>{let[s,x]=v(""),[D,a]=v(!1),N=S(T),c=I(),l=b(),O=Boolean(r),g=U(r),e=P;function C(){return d(this,null,function*(){if(l)throw new Error(u);c(y(o));try{a(!0);let n=W(o!=null?o:N.walletAddress),p=new Date,E=p.setMinutes(p.getMinutes()+3)/1e3,M={data:{},expires:E};if(O&&!e&&(e=yield g.getNativeAuthLoginToken(),!e)){console.warn("Login cancelled.");return}e&&g.setLoginToken(e);let{origin:A}=k(),F=window!=null&&window.location?`${A}${i}`:`${i}`;new URLSearchParams(document==null?void 0:document.location.search).get("address")||c(w(M));let G=h(F),_=encodeURIComponent(G),$=m(L({callbackUrl:_},e&&{token:e}),{redirectDelayMilliseconds:R});yield n.login($)}catch(n){console.error(n),x("error logging in"+n.message)}finally{a(!1)}})}let t=Boolean(s);return[C,{error:s,loginFailed:t,isLoading:D&&!t,isLoggedIn:l&&!t}]};export{ae as a};
|
|
2
|
+
//# sourceMappingURL=chunk-VGTBAXEI.js.map
|
package/__commonjs/UI/index.js
CHANGED
|
@@ -2782,7 +2782,7 @@ a.dapp-core-component__main__side-link::after {
|
|
|
2782
2782
|
color: #212529;
|
|
2783
2783
|
background-color: #dee2e6;
|
|
2784
2784
|
border-color: #e9ecef;
|
|
2785
|
-
}`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(KB));var nn={dappModal:"dapp-core-component__dappModalStyles__dappModal",dappModalContent:"dapp-core-component__dappModalStyles__dappModalContent",dappModalHeader:"dapp-core-component__dappModalStyles__dappModalHeader",dappModalHeaderText:"dapp-core-component__dappModalStyles__dappModalHeaderText",dappModalBody:"dapp-core-component__dappModalStyles__dappModalBody",dappModalFooter:"dapp-core-component__dappModalStyles__dappModalFooter",dappModalCloseButton:"dapp-core-component__dappModalStyles__dappModalCloseButton"};a();var k1=S(require("react")),I1=S(require("classnames"));var af=({className:e,children:t})=>k1.default.createElement("div",{className:(0,I1.default)(nn.dappModalBody,e)},t);a();var sf=S(require("react")),P1=S(require("classnames"));var pf=({visible:e,customFooter:t,className:r,footerText:i})=>e?sf.default.createElement("div",{className:(0,P1.default)(nn.dappModalFooter,r)},t!=null?t:sf.default.createElement("div",null,i)):null;a();var ds=S(require("react")),E1=require("@fortawesome/free-solid-svg-icons"),D1=require("@fortawesome/react-fontawesome"),Dp=S(require("classnames"));var cf=({visible:e,headerText:t,customHeader:r,className:i,closeButtonClassName:p,headerTextClassName:d,onHide:u})=>e?r?ds.default.createElement("div",{className:(0,Dp.default)(nn.dappModalHeader,i)},r):ds.default.createElement("div",{className:(0,Dp.default)(nn.dappModalHeader,i)},ds.default.createElement("div",{className:(0,Dp.default)(nn.dappModalHeaderText,d)},t),ds.default.createElement("button",{onClick:u,className:(0,Dp.default)(nn.dappModalCloseButton,g.btn,g.btnLight,p)},ds.default.createElement(D1.FontAwesomeIcon,{size:"lg",icon:E1.faTimes}))):null;var ZB={showHeader:!0,showFooter:!1,headerText:"",footerText:""},Mp=({"data-testid":e="dappModal",children:t,className:r="dapp-modal-dialog-wrapper",config:i=ZB,id:p="dapp-modal",onHide:d,parentElement:u,visible:h})=>{if(!h)return null;let{showHeader:x,showFooter:T,headerText:v,footerText:w,modalDialogClassName:A="dapp-modal-dialog",modalContentClassName:P="dapp-modal-dialog-content",modalHeaderClassName:E="dapp-modal-dialog-header",modalHeaderTextClassName:B="dapp-modal-dialog-header-text",modalCloseButtonClassName:U="dapp-modal-dialog-close-button",modalBodyClassName:q="dapp-modal-dialog-content-body",modalFooterClassName:X="dapp-modal-dialog-footer",customModalHeader:M,customModalFooter:$}=i;return M1.default.createPortal(_s.default.createElement("div",{id:p,role:"dialog","aria-modal":"true",className:(0,lf.default)(A,nn.dappModal,r),"data-testid":e},_s.default.createElement("div",{className:(0,lf.default)(nn.dappModalContent,P)},_s.default.createElement(cf,{visible:x,headerText:v,customHeader:M,className:E,headerTextClassName:B,closeButtonClassName:U,onHide:d}),_s.default.createElement(af,{className:q},t),_s.default.createElement(pf,{visible:T,customFooter:$,footerText:w,className:X}))),u!=null?u:document==null?void 0:document.body)};a();a();var Om=require("react"),Fm=e=>{let[t,r]=(0,Om.useState)(!1),i=()=>{r(!0)},p=()=>{r(!1)};return(0,Om.useEffect)(()=>{(e==null?void 0:e.visible)===!0?i():(e==null?void 0:e.visible)===!1&&p()},[e==null?void 0:e.visible]),{handleShowModal:i,handleHideModal:p,showModal:t}};a();var Bp=({hideButtonWhenModalOpens:e,onContentHide:t,onContentShow:r,onModalCloses:i,onModalOpens:p,token:d,wrapContentInsideModal:u})=>{let h=Gw(),[x,T]=(0,B1.useState)(!1),{handleShowModal:v,handleHideModal:w,showModal:A}=Fm(),P=Jn(d),E=!e||!x,B=()=>{T(!1),t==null||t(),u?(w(),i==null||i()):i&&(console.warn('Deprecated: "onModalCloses" must be used only when "wrapContentInsideModal" is set to "true". Use "onContentHide" instead.'),i())};return{disabledConnectButton:P,handleCloseModal:B,handleOpenModal:()=>{if(h)throw new Error(Rn);if(x)return B();T(!0),r==null||r(),u?(v(),p==null||p()):p&&(console.warn('Deprecated: "onModalOpens" must be used only when "wrapContentInsideModal" is set to "true". Use "onContentShow" instead.'),p())},shouldRenderButton:E,showContent:x,showModal:A}};a();var ri=require("react"),_f=require("@multiversx/sdk-hw-provider");$a();Ho();Ze();ro();Yi();a();a();_l();a();a();var mf=S(require("platform"));function W1(){var e,t,r,i;return((t=(e=mf.default)==null?void 0:e.os)==null?void 0:t.family)==="iOS"||((i=(r=mf.default)==null?void 0:r.os)==null?void 0:i.family)==="Android"}a();var O1=e=>Math.exp(e/100);a();a();a();a();function rn(){return Vl(me.getState())}a();a();var YB=75,JB=25,Rm=100,df=({remaining:e,totalSeconds:t,isCrossShard:r})=>{let i=r?JB:YB,p=Rm/1e3,d=1/(t*p),u=Math.min(O1(e)-1,d),h=e>=100-i?d:u;return e-h};a();a();ro();a();var F1=()=>Boolean(window==null?void 0:window.elrondWallet);gp();qa();a();a();a();Ze();var R1={},U1={},Um=e=>R1[e],G1=e=>U1[e],H1=e=>{if(e.component!=null){let t=e,{component:r,onClose:i}=t,p=To(t,["component","onClose"]),{payload:d}=me.dispatch(lg(z(L({},p),{component:null,onClose:void 0})));return R1[d.toastId]=r,i&&(U1[d.toastId]=i),d}return me.dispatch(lg(e)).payload},V1=e=>me.dispatch(O0(e));a();a();var QB=S(require("axios"));a();var ni=require("react"),eW=10,$1=()=>{let[e,t]=(0,ni.useState)(""),[r,i]=(0,ni.useState)(!1),[p,d]=(0,ni.useState)(0),[u,h]=(0,ni.useState)([]),[x,T]=(0,ni.useState)(null),[v,w]=(0,ni.useState)(!1);return{accounts:u,defaultAddressesPerPage:eW,error:e,isLoading:r,onGoToNextPage:()=>{T(null),d(B=>B+1)},onGoToPrevPage:()=>{T(null),d(B=>B===0?0:B-1)},onSelectAddress:B=>{T(B)},selectedAddress:x,setAccounts:h,setError:t,setIsLoading:i,setShowAddressList:w,showAddressList:v,startIndex:p}};var Gm="Check if the MultiversX App is open on Ledger",uf=({callbackRoute:e,token:t,addressesPerPage:r,nativeAuth:i,onLoginRedirect:p})=>{let d=Z(LS),u=$o(),h=je(),x=Bt(),T=i!=null,v=Yn(i),w=t,{accounts:A,setAccounts:P,isLoading:E,setIsLoading:B,setShowAddressList:U,showAddressList:q,startIndex:X,selectedAddress:M,onGoToPrevPage:$,onGoToNextPage:G,onSelectAddress:Y,error:ne,setError:le,defaultAddressesPerPage:te}=$1(),he=r!=null?r:te,[ae,Ne]=(0,ri.useState)(""),[Pe,Be]=(0,ri.useState)(!1),Te=({address:Ae,index:ve,signature:Q})=>{h(_0({index:ve,loginType:"ledger"})),Q&&v.setTokenLoginInfo({signature:Q,address:Ae}),h(ht({address:Ae,loginMethod:"ledger"})),vr({callbackRoute:e,onLoginRedirect:p,options:{address:Ae,signature:Q}})},se=(Ae,ve="")=>{var Ue;let{errorMessage:Q,defaultErrorMessage:De}=vl(Ae),$e=(Ue=Q!=null?Q:De)!=null?Ue:Gm;le(`${$e}.${ve}`),B(!1),h(ag(null))},Fe=()=>V(void 0,null,function*(){try{if(u instanceof _f.HWProvider&&u.isInitialized())return yield u.isConnected()}catch(Ae){se(Ae)}return!1}),Ye=()=>V(void 0,null,function*(){if(yield Fe()){le(""),B(!1);return}try{let ve=new _f.HWProvider;(yield ve.init())&&bn(ve),le(""),B(!1)}catch(ve){se(ve)}}),Re=()=>V(void 0,null,function*(){let Ae=yield Fe();if(!M||!Ae)return se(Gm);let{index:ve}=M;if(T&&!w&&(w=yield v.getNativeAuthLoginToken(),!w)){console.warn("Fetching block failed. Login cancelled.");return}if(w){v.setLoginToken(w);try{let Q=yield u.tokenLogin({token:c.Buffer.from(`${w}{}`),addressIndex:ve});Te({address:Q.address,index:ve,signature:Q.signature.toString("hex")})}catch(Q){se(Q,". Update MultiversX App to continue.")}}else try{let Q=yield u.login({addressIndex:ve});Te({address:Q,index:ve})}catch(Q){return se(Q),!1}return!0}),de=()=>V(void 0,null,function*(){try{if(B(!0),M==null)return!1;h(d?p0(M):ag(z(L({},M),{version:ae,hasContractDataEnabled:Pe}))),B(!1),yield Re()}catch(Ae){se(Ae)}finally{B(!1)}return U(!1),!0}),Ee=()=>V(void 0,null,function*(){if(!(yield Fe()))return se(ne);try{B(!0);let ve=yield u.getAccounts(X,he),Q=yield hm(u);Ne(Q.version),Be(Q.dataEnabled),P(ve),B(!1)}catch(ve){se(ve)}}),Ve=()=>V(void 0,null,function*(){if(x)throw new Error(Rn);le("");try{if(B(!0),yield Ye(),!(yield Fe()))return se(Gm);if(d!=null){if(!M)return se(Gm);let ve=yield u.login({addressIndex:M.index.valueOf()});if(!ve)return se("Login cancelled.");h(ht({address:ve,loginMethod:"ledger"})),vr({callbackRoute:e,onLoginRedirect:p})}else A!=null&&A.length||(yield Ee()),U(!0)}catch(Ae){se(Ae)}finally{B(!1)}});(0,ri.useEffect)(()=>{Ye()},[u]),(0,ri.useEffect)(()=>{Ee()},[X,q,u]),(0,ri.useEffect)(()=>{(A==null?void 0:A.length)>0&&!q&&U(!0)},[A]);let Je=Boolean(ne);return[Ve,{loginFailed:Je,isLoggedIn:x&&!Je,error:ne,isLoading:E&&!Je},{accounts:A,showAddressList:q,startIndex:X,selectedAddress:M,version:ae,contractDataEnabled:Pe,onGoToPrevPage:$,onGoToNextPage:G,onSelectAddress:Y,onConfirmSelectedAddress:de}]};a();var gf=require("react"),z1=require("@multiversx/sdk-opera-provider");$a();Ho();ro();Yi();var ff=({callbackRoute:e,token:t,nativeAuth:r,onLoginRedirect:i})=>{let[p,d]=(0,gf.useState)(""),[u,h]=(0,gf.useState)(!1),x=r!=null,T=Yn(r),v=t,w=je(),A=Bt();function P(){return V(this,null,function*(){if(A)throw new Error(Rn);h(!0);let B=z1.OperaProvider.getInstance();try{if(!(yield B.init())){console.warn("Something went wrong trying to redirect to wallet login..");return}let{origin:q}=Se(),X=Pr(),M=encodeURIComponent(`${q}${e!=null?e:X}`);if(x&&!v&&(v=yield T.getNativeAuthLoginToken(),!v)){console.warn("Fetching block failed. Login cancelled.");return}v&&T.setLoginToken(v);let $=L({callbackUrl:M},v&&{token:v});yield B.login($),bn(B);let{signature:G,address:Y}=B.account;if(!Y){h(!1),console.warn("Login cancelled.");return}G&&v&&T.setTokenLoginInfo({signature:G,address:Y}),w(ht({address:Y,loginMethod:"opera"})),vr({callbackRoute:e,onLoginRedirect:i,options:{signature:G,address:Y}})}catch(U){console.error("error loging in",U),d("error logging in"+U.message)}finally{h(!1)}})}let E=Boolean(p);return[P,{loginFailed:E,error:p,isLoading:u&&!E,isLoggedIn:A&&!E}]};a();var Sn=require("react");Ho();Ze();ro();Yi();var Wp=({callbackRoute:e,token:t,nativeAuth:r,onLoginRedirect:i,logoutRoute:p,canLoginRef:d})=>{var ve;let u=je(),h=r!=null,x=Yn(r),T=t,[v,w]=(0,Sn.useState)(""),[A,P]=(0,Sn.useState)(""),[E,B]=(0,Sn.useState)(!0),[U,q]=(0,Sn.useState)([]),X=$o(),M=Z(MS),$=Z(BS),G=Z(WS),Y=Z(xp),ne=Z(OS),le=Z(Gl),te=(0,Sn.useRef)(X),he=d!=null?d:(0,Sn.useRef)(!1),ae=(0,Sn.useRef)(!1),Ne=(ve=p!=null?p:le)!=null?ve:"/",Pe=[is.CANCEL_ACTION];t&&Pe.push(is.SIGN_LOGIN_TOKEN),h&&Pe.push(is.SIGN_NATIVE_AUTH_TOKEN);let Be=E?"":`${ne}?wallet-connect=${encodeURIComponent(A)}`,Te=Boolean(v),se=Bt(),Fe=()=>{Lp(Ne)},Ye=Q=>{console.log("WalletConnect Session Event: ",Q)},Re=()=>V(void 0,null,function*(){var Q,De,$e;try{let Ue=te.current;if(Bt()||Ue==null||!Mt("walletconnectv2")||ae.current)return;if(!he.current){try{yield(Q=te.current)==null?void 0:Q.logout()}catch(Pn){console.warn("Unable to logout")}return}let Ct=yield(De=te.current)==null?void 0:De.getAddress();if(!Ct){console.warn("Login cancelled.");return}let Po=yield($e=te.current)==null?void 0:$e.getSignature(),Ht={address:Ct,loginMethod:"walletconnectv2"},i_={logoutRoute:Ne,loginType:"walletconnectv2",callbackRoute:e!=null?e:Se().href};u(d0(i_)),Po&&x.setTokenLoginInfo({signature:Po,address:Ct}),u(ht(Ht)),vr({callbackRoute:e,onLoginRedirect:i,options:{address:Ct,signature:Po}})}catch(Ue){w("User rejected connection proposal"),console.error(Ue)}}),de=()=>V(void 0,null,function*(){var Q,De,$e,Ue,nt;he.current=!1;try{((Ue=($e=(De=(Q=te.current)==null?void 0:Q.walletConnector)==null?void 0:De.session)==null?void 0:$e.getAll())!=null?Ue:[]).length>0&&(yield(nt=te.current)==null?void 0:nt.logout())}catch(Ct){console.warn("Unable to logout")}}),Ee=Q=>V(void 0,null,function*(){var De,$e,Ue;if(!M||!$){w("Invalid WalletConnect setup");return}if(!Q||!Q.topic){w("Expired connection");return}try{let{approval:nt}=yield(De=te.current)==null?void 0:De.connect({topic:Q.topic,methods:Pe});if(h&&!T&&(T=yield x.getNativeAuthLoginToken(),!T)){console.warn("Fetching block failed. Login cancelled.");return}T&&x.setLoginToken(T);try{yield($e=te.current)==null?void 0:$e.login({approval:nt,token:T})}catch(Ct){w("User rejected existing connection proposal"),B(!0),yield Je()}}catch(nt){console.error("Unable to connect to existing session",nt),w("Unable to connect to existing session")}finally{q((Ue=te.current)==null?void 0:Ue.pairings)}}),Ve=Q=>V(void 0,null,function*(){var De,$e;try{Q&&(yield(De=te.current)==null?void 0:De.logout({topic:Q}))}catch(Ue){console.error("Unable to remove existing pairing",Ue),w("Unable to remove existing pairing")}finally{let Ue=yield($e=te.current)==null?void 0:$e.getPairings();q(Ue)}});function Je(Q=!0){return V(this,null,function*(){var Ue;if(!$||!M){w("Invalid WalletConnect setup");return}if(ae.current)return;if(ae.current=!0,(Ue=te.current)!=null&&Ue.walletConnector){te.current.init(),bn(te.current),ae.current=!1,he.current=!0,Q&&Ae();return}let De={onClientLogin:Re,onClientLogout:Fe,onClientEvent:Ye},$e=new gm(De,Y,M,$,G);yield $e.init(),bn($e),te.current=$e,ae.current=!1,he.current=!0,Q&&(q($e.pairings),Ae())})}function Ae(){return V(this,null,function*(){var Q,De;if(!M||!$){w("Invalid WalletConnect setup");return}try{let{uri:$e,approval:Ue}=yield(Q=te.current)==null?void 0:Q.connect({methods:Pe});if(!Boolean($e))return;if(P($e),(G==null?void 0:G.logger)==="debug"&&console.log("WalletConnect uri: ",$e),h&&!T&&(T=yield x.getNativeAuthLoginToken(),!T)){console.warn("Fetching block failed. Login cancelled.");return}T&&x.setLoginToken(T);try{yield(De=te.current)==null?void 0:De.login({approval:Ue,token:T})}catch(Ct){w("User rejected connection proposal"),B(!0),yield Je()}}catch($e){console.error("Unable to connect",$e)}})}return Gg(()=>{!t||Ae()},[t]),Gg(()=>{te.current=X},[X]),(0,Sn.useEffect)(()=>{B(!Boolean(A))},[A]),[Je,{error:v,loginFailed:Te,isLoading:E&&!Te,isLoggedIn:se&&!Te},{uriDeepLink:Be,walletConnectUri:A,cancelLogin:de,connectExisting:Ee,removeExistingPairing:Ve,wcPairings:U}]};a();var hf=require("react");$a();Ze();a();var q1=(e,t=["address"])=>{let r=new URL(e),i=new URLSearchParams(r.search);t.forEach(u=>i.delete(u));let p=Array.from(i.values()).length>0?"?":"",d=r.pathname==="/"&&!e.endsWith("/")?"":r.pathname;return r.protocol==="vscode:"?e:`${r.origin}${d}${p}${i.toString()}${r.hash}`};var yf=({callbackRoute:e,token:t,nativeAuth:r,redirectDelayMilliseconds:i=100,customWalletAddress:p})=>{let[d,u]=(0,hf.useState)(""),[h,x]=(0,hf.useState)(!1),T=Z(Et),v=je(),w=Bt(),A=Boolean(r),P=Yn(r),E=t;function B(){return V(this,null,function*(){if(w)throw new Error(Rn);v(I0(p));try{x(!0);let q=fm(p!=null?p:T.walletAddress),X=new Date,M=X.setMinutes(X.getMinutes()+3)/1e3,$={data:{},expires:M};if(A&&!E&&(E=yield P.getNativeAuthLoginToken(),!E)){console.warn("Login cancelled.");return}E&&P.setLoginToken(E);let{origin:G}=Se(),Y=window!=null&&window.location?`${G}${e}`:`${e}`;new URLSearchParams(document.location.search).get("address")||v(u0($));let te=q1(Y),he=encodeURIComponent(te),ae=z(L({callbackUrl:he},E&&{token:E}),{redirectDelayMilliseconds:i});yield q.login(ae)}catch(q){console.error(q),u("error logging in"+q.message)}finally{x(!1)}})}let U=Boolean(d);return[B,{error:d,loginFailed:U,isLoading:h&&!U,isLoggedIn:w&&!U}]};a();a();var j1=require("react");a();var nW=require("react");a();var xf=require("react"),tW=require("socket.io-client");Ze();a();a();a();var rW=require("react");qe();a();a();a();var Z1=S(require("swr"));a();a();a();a();var X1=S(require("axios"));function K1(e=Zl){let t=Np();return X1.default.get(e,{baseURL:t})}function Hm(){let e=i=>K1(i).then(p=>p.data),{data:t,error:r}=(0,Z1.default)(Zl,e);return{price:t==null?void 0:t.price,error:r}}a();a();var $m=S(require("react")),bf=S(require("classnames"));j();a();var Tf=S(require("react")),J1=S(require("classnames"));a();var aW=`.dapp-core-component__loginButtonStyles__default-login-button {
|
|
2785
|
+
}`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(KB));var nn={dappModal:"dapp-core-component__dappModalStyles__dappModal",dappModalContent:"dapp-core-component__dappModalStyles__dappModalContent",dappModalHeader:"dapp-core-component__dappModalStyles__dappModalHeader",dappModalHeaderText:"dapp-core-component__dappModalStyles__dappModalHeaderText",dappModalBody:"dapp-core-component__dappModalStyles__dappModalBody",dappModalFooter:"dapp-core-component__dappModalStyles__dappModalFooter",dappModalCloseButton:"dapp-core-component__dappModalStyles__dappModalCloseButton"};a();var k1=S(require("react")),I1=S(require("classnames"));var af=({className:e,children:t})=>k1.default.createElement("div",{className:(0,I1.default)(nn.dappModalBody,e)},t);a();var sf=S(require("react")),P1=S(require("classnames"));var pf=({visible:e,customFooter:t,className:r,footerText:i})=>e?sf.default.createElement("div",{className:(0,P1.default)(nn.dappModalFooter,r)},t!=null?t:sf.default.createElement("div",null,i)):null;a();var ds=S(require("react")),E1=require("@fortawesome/free-solid-svg-icons"),D1=require("@fortawesome/react-fontawesome"),Dp=S(require("classnames"));var cf=({visible:e,headerText:t,customHeader:r,className:i,closeButtonClassName:p,headerTextClassName:d,onHide:u})=>e?r?ds.default.createElement("div",{className:(0,Dp.default)(nn.dappModalHeader,i)},r):ds.default.createElement("div",{className:(0,Dp.default)(nn.dappModalHeader,i)},ds.default.createElement("div",{className:(0,Dp.default)(nn.dappModalHeaderText,d)},t),ds.default.createElement("button",{onClick:u,className:(0,Dp.default)(nn.dappModalCloseButton,g.btn,g.btnLight,p)},ds.default.createElement(D1.FontAwesomeIcon,{size:"lg",icon:E1.faTimes}))):null;var ZB={showHeader:!0,showFooter:!1,headerText:"",footerText:""},Mp=({"data-testid":e="dappModal",children:t,className:r="dapp-modal-dialog-wrapper",config:i=ZB,id:p="dapp-modal",onHide:d,parentElement:u,visible:h})=>{if(!h)return null;let{showHeader:x,showFooter:T,headerText:v,footerText:w,modalDialogClassName:A="dapp-modal-dialog",modalContentClassName:P="dapp-modal-dialog-content",modalHeaderClassName:E="dapp-modal-dialog-header",modalHeaderTextClassName:B="dapp-modal-dialog-header-text",modalCloseButtonClassName:U="dapp-modal-dialog-close-button",modalBodyClassName:q="dapp-modal-dialog-content-body",modalFooterClassName:X="dapp-modal-dialog-footer",customModalHeader:M,customModalFooter:$}=i;return M1.default.createPortal(_s.default.createElement("div",{id:p,role:"dialog","aria-modal":"true",className:(0,lf.default)(A,nn.dappModal,r),"data-testid":e},_s.default.createElement("div",{className:(0,lf.default)(nn.dappModalContent,P)},_s.default.createElement(cf,{visible:x,headerText:v,customHeader:M,className:E,headerTextClassName:B,closeButtonClassName:U,onHide:d}),_s.default.createElement(af,{className:q},t),_s.default.createElement(pf,{visible:T,customFooter:$,footerText:w,className:X}))),u!=null?u:document==null?void 0:document.body)};a();a();var Om=require("react"),Fm=e=>{let[t,r]=(0,Om.useState)(!1),i=()=>{r(!0)},p=()=>{r(!1)};return(0,Om.useEffect)(()=>{(e==null?void 0:e.visible)===!0?i():(e==null?void 0:e.visible)===!1&&p()},[e==null?void 0:e.visible]),{handleShowModal:i,handleHideModal:p,showModal:t}};a();var Bp=({hideButtonWhenModalOpens:e,onContentHide:t,onContentShow:r,onModalCloses:i,onModalOpens:p,token:d,wrapContentInsideModal:u})=>{let h=Gw(),[x,T]=(0,B1.useState)(!1),{handleShowModal:v,handleHideModal:w,showModal:A}=Fm(),P=Jn(d),E=!e||!x,B=()=>{T(!1),t==null||t(),u?(w(),i==null||i()):i&&(console.warn('Deprecated: "onModalCloses" must be used only when "wrapContentInsideModal" is set to "true". Use "onContentHide" instead.'),i())};return{disabledConnectButton:P,handleCloseModal:B,handleOpenModal:()=>{if(h)throw new Error(Rn);if(x)return B();T(!0),r==null||r(),u?(v(),p==null||p()):p&&(console.warn('Deprecated: "onModalOpens" must be used only when "wrapContentInsideModal" is set to "true". Use "onContentShow" instead.'),p())},shouldRenderButton:E,showContent:x,showModal:A}};a();var ri=require("react"),_f=require("@multiversx/sdk-hw-provider");$a();Ho();Ze();ro();Yi();a();a();_l();a();a();var mf=S(require("platform"));function W1(){var e,t,r,i;return((t=(e=mf.default)==null?void 0:e.os)==null?void 0:t.family)==="iOS"||((i=(r=mf.default)==null?void 0:r.os)==null?void 0:i.family)==="Android"}a();var O1=e=>Math.exp(e/100);a();a();a();a();function rn(){return Vl(me.getState())}a();a();var YB=75,JB=25,Rm=100,df=({remaining:e,totalSeconds:t,isCrossShard:r})=>{let i=r?JB:YB,p=Rm/1e3,d=1/(t*p),u=Math.min(O1(e)-1,d),h=e>=100-i?d:u;return e-h};a();a();ro();a();var F1=()=>Boolean(window==null?void 0:window.elrondWallet);gp();qa();a();a();a();Ze();var R1={},U1={},Um=e=>R1[e],G1=e=>U1[e],H1=e=>{if(e.component!=null){let t=e,{component:r,onClose:i}=t,p=To(t,["component","onClose"]),{payload:d}=me.dispatch(lg(z(L({},p),{component:null,onClose:void 0})));return R1[d.toastId]=r,i&&(U1[d.toastId]=i),d}return me.dispatch(lg(e)).payload},V1=e=>me.dispatch(O0(e));a();a();var QB=S(require("axios"));a();var ni=require("react"),eW=10,$1=()=>{let[e,t]=(0,ni.useState)(""),[r,i]=(0,ni.useState)(!1),[p,d]=(0,ni.useState)(0),[u,h]=(0,ni.useState)([]),[x,T]=(0,ni.useState)(null),[v,w]=(0,ni.useState)(!1);return{accounts:u,defaultAddressesPerPage:eW,error:e,isLoading:r,onGoToNextPage:()=>{T(null),d(B=>B+1)},onGoToPrevPage:()=>{T(null),d(B=>B===0?0:B-1)},onSelectAddress:B=>{T(B)},selectedAddress:x,setAccounts:h,setError:t,setIsLoading:i,setShowAddressList:w,showAddressList:v,startIndex:p}};var Gm="Check if the MultiversX App is open on Ledger",uf=({callbackRoute:e,token:t,addressesPerPage:r,nativeAuth:i,onLoginRedirect:p})=>{let d=Z(LS),u=$o(),h=je(),x=Bt(),T=i!=null,v=Yn(i),w=t,{accounts:A,setAccounts:P,isLoading:E,setIsLoading:B,setShowAddressList:U,showAddressList:q,startIndex:X,selectedAddress:M,onGoToPrevPage:$,onGoToNextPage:G,onSelectAddress:Y,error:ne,setError:le,defaultAddressesPerPage:te}=$1(),he=r!=null?r:te,[ae,Ne]=(0,ri.useState)(""),[Pe,Be]=(0,ri.useState)(!1),Te=({address:Ae,index:ve,signature:Q})=>{h(_0({index:ve,loginType:"ledger"})),Q&&v.setTokenLoginInfo({signature:Q,address:Ae}),h(ht({address:Ae,loginMethod:"ledger"})),vr({callbackRoute:e,onLoginRedirect:p,options:{address:Ae,signature:Q}})},se=(Ae,ve="")=>{var Ue;let{errorMessage:Q,defaultErrorMessage:De}=vl(Ae),$e=(Ue=Q!=null?Q:De)!=null?Ue:Gm;le(`${$e}.${ve}`),B(!1),h(ag(null))},Fe=()=>V(void 0,null,function*(){try{if(u instanceof _f.HWProvider&&u.isInitialized())return yield u.isConnected()}catch(Ae){se(Ae)}return!1}),Ye=()=>V(void 0,null,function*(){if(yield Fe()){le(""),B(!1);return}try{let ve=new _f.HWProvider;(yield ve.init())&&bn(ve),le(""),B(!1)}catch(ve){se(ve)}}),Re=()=>V(void 0,null,function*(){let Ae=yield Fe();if(!M||!Ae)return se(Gm);let{index:ve}=M;if(T&&!w&&(w=yield v.getNativeAuthLoginToken(),!w)){console.warn("Fetching block failed. Login cancelled.");return}if(w){v.setLoginToken(w);try{let Q=yield u.tokenLogin({token:c.Buffer.from(`${w}{}`),addressIndex:ve});Te({address:Q.address,index:ve,signature:Q.signature.toString("hex")})}catch(Q){se(Q,". Update MultiversX App to continue.")}}else try{let Q=yield u.login({addressIndex:ve});Te({address:Q,index:ve})}catch(Q){return se(Q),!1}return!0}),de=()=>V(void 0,null,function*(){try{if(B(!0),M==null)return!1;h(d?p0(M):ag(z(L({},M),{version:ae,hasContractDataEnabled:Pe}))),B(!1),yield Re()}catch(Ae){se(Ae)}finally{B(!1)}return U(!1),!0}),Ee=()=>V(void 0,null,function*(){if(!(yield Fe()))return se(ne);try{B(!0);let ve=yield u.getAccounts(X,he),Q=yield hm(u);Ne(Q.version),Be(Q.dataEnabled),P(ve),B(!1)}catch(ve){se(ve)}}),Ve=()=>V(void 0,null,function*(){if(x)throw new Error(Rn);le("");try{if(B(!0),yield Ye(),!(yield Fe()))return se(Gm);if(d!=null){if(!M)return se(Gm);let ve=yield u.login({addressIndex:M.index.valueOf()});if(!ve)return se("Login cancelled.");h(ht({address:ve,loginMethod:"ledger"})),vr({callbackRoute:e,onLoginRedirect:p})}else A!=null&&A.length||(yield Ee()),U(!0)}catch(Ae){se(Ae)}finally{B(!1)}});(0,ri.useEffect)(()=>{Ye()},[u]),(0,ri.useEffect)(()=>{Ee()},[X,q,u]),(0,ri.useEffect)(()=>{(A==null?void 0:A.length)>0&&!q&&U(!0)},[A]);let Je=Boolean(ne);return[Ve,{loginFailed:Je,isLoggedIn:x&&!Je,error:ne,isLoading:E&&!Je},{accounts:A,showAddressList:q,startIndex:X,selectedAddress:M,version:ae,contractDataEnabled:Pe,onGoToPrevPage:$,onGoToNextPage:G,onSelectAddress:Y,onConfirmSelectedAddress:de}]};a();var gf=require("react"),z1=require("@multiversx/sdk-opera-provider");$a();Ho();ro();Yi();var ff=({callbackRoute:e,token:t,nativeAuth:r,onLoginRedirect:i})=>{let[p,d]=(0,gf.useState)(""),[u,h]=(0,gf.useState)(!1),x=r!=null,T=Yn(r),v=t,w=je(),A=Bt();function P(){return V(this,null,function*(){if(A)throw new Error(Rn);h(!0);let B=z1.OperaProvider.getInstance();try{if(!(yield B.init())){console.warn("Something went wrong trying to redirect to wallet login..");return}let{origin:q}=Se(),X=Pr(),M=encodeURIComponent(`${q}${e!=null?e:X}`);if(x&&!v&&(v=yield T.getNativeAuthLoginToken(),!v)){console.warn("Fetching block failed. Login cancelled.");return}v&&T.setLoginToken(v);let $=L({callbackUrl:M},v&&{token:v});yield B.login($),bn(B);let{signature:G,address:Y}=B.account;if(!Y){h(!1),console.warn("Login cancelled.");return}G&&v&&T.setTokenLoginInfo({signature:G,address:Y}),w(ht({address:Y,loginMethod:"opera"})),vr({callbackRoute:e,onLoginRedirect:i,options:{signature:G,address:Y}})}catch(U){console.error("error loging in",U),d("error logging in"+U.message)}finally{h(!1)}})}let E=Boolean(p);return[P,{loginFailed:E,error:p,isLoading:u&&!E,isLoggedIn:A&&!E}]};a();var Sn=require("react");Ho();Ze();ro();Yi();var Wp=({callbackRoute:e,token:t,nativeAuth:r,onLoginRedirect:i,logoutRoute:p,canLoginRef:d})=>{var ve;let u=je(),h=r!=null,x=Yn(r),T=t,[v,w]=(0,Sn.useState)(""),[A,P]=(0,Sn.useState)(""),[E,B]=(0,Sn.useState)(!0),[U,q]=(0,Sn.useState)([]),X=$o(),M=Z(MS),$=Z(BS),G=Z(WS),Y=Z(xp),ne=Z(OS),le=Z(Gl),te=(0,Sn.useRef)(X),he=d!=null?d:(0,Sn.useRef)(!1),ae=(0,Sn.useRef)(!1),Ne=(ve=p!=null?p:le)!=null?ve:"/",Pe=[is.CANCEL_ACTION];t&&Pe.push(is.SIGN_LOGIN_TOKEN),h&&Pe.push(is.SIGN_NATIVE_AUTH_TOKEN);let Be=E?"":`${ne}?wallet-connect=${encodeURIComponent(A)}`,Te=Boolean(v),se=Bt(),Fe=()=>{Lp(Ne)},Ye=Q=>{console.log("WalletConnect Session Event: ",Q)},Re=()=>V(void 0,null,function*(){var Q,De,$e;try{let Ue=te.current;if(Bt()||Ue==null||!Mt("walletconnectv2")||ae.current)return;if(!he.current){try{yield(Q=te.current)==null?void 0:Q.logout()}catch(Pn){console.warn("Unable to logout")}return}let Ct=yield(De=te.current)==null?void 0:De.getAddress();if(!Ct){console.warn("Login cancelled.");return}let Po=yield($e=te.current)==null?void 0:$e.getSignature(),Ht={address:Ct,loginMethod:"walletconnectv2"},i_={logoutRoute:Ne,loginType:"walletconnectv2",callbackRoute:e!=null?e:Se().href};u(d0(i_)),Po&&x.setTokenLoginInfo({signature:Po,address:Ct}),u(ht(Ht)),vr({callbackRoute:e,onLoginRedirect:i,options:{address:Ct,signature:Po}})}catch(Ue){w("User rejected connection proposal"),console.error(Ue)}}),de=()=>V(void 0,null,function*(){var Q,De,$e,Ue,nt;he.current=!1;try{((Ue=($e=(De=(Q=te.current)==null?void 0:Q.walletConnector)==null?void 0:De.session)==null?void 0:$e.getAll())!=null?Ue:[]).length>0&&(yield(nt=te.current)==null?void 0:nt.logout())}catch(Ct){console.warn("Unable to logout")}}),Ee=Q=>V(void 0,null,function*(){var De,$e,Ue;if(!M||!$){w("Invalid WalletConnect setup");return}if(!Q||!Q.topic){w("Expired connection");return}try{let{approval:nt}=yield(De=te.current)==null?void 0:De.connect({topic:Q.topic,methods:Pe});if(h&&!T&&(T=yield x.getNativeAuthLoginToken(),!T)){console.warn("Fetching block failed. Login cancelled.");return}T&&x.setLoginToken(T);try{yield($e=te.current)==null?void 0:$e.login({approval:nt,token:T})}catch(Ct){w("User rejected existing connection proposal"),B(!0),yield Je()}}catch(nt){console.error("Unable to connect to existing session",nt),w("Unable to connect to existing session")}finally{q((Ue=te.current)==null?void 0:Ue.pairings)}}),Ve=Q=>V(void 0,null,function*(){var De,$e;try{Q&&(yield(De=te.current)==null?void 0:De.logout({topic:Q}))}catch(Ue){console.error("Unable to remove existing pairing",Ue),w("Unable to remove existing pairing")}finally{let Ue=yield($e=te.current)==null?void 0:$e.getPairings();q(Ue)}});function Je(Q=!0){return V(this,null,function*(){var Ue;if(!$||!M){w("Invalid WalletConnect setup");return}if(ae.current)return;if(ae.current=!0,(Ue=te.current)!=null&&Ue.walletConnector){te.current.init(),bn(te.current),ae.current=!1,he.current=!0,Q&&Ae();return}let De={onClientLogin:Re,onClientLogout:Fe,onClientEvent:Ye},$e=new gm(De,Y,M,$,G);yield $e.init(),bn($e),te.current=$e,ae.current=!1,he.current=!0,Q&&(q($e.pairings),Ae())})}function Ae(){return V(this,null,function*(){var Q,De;if(!M||!$){w("Invalid WalletConnect setup");return}try{let{uri:$e,approval:Ue}=yield(Q=te.current)==null?void 0:Q.connect({methods:Pe});if(!Boolean($e))return;if(P($e),(G==null?void 0:G.logger)==="debug"&&console.log("WalletConnect uri: ",$e),h&&!T&&(T=yield x.getNativeAuthLoginToken(),!T)){console.warn("Fetching block failed. Login cancelled.");return}T&&x.setLoginToken(T);try{yield(De=te.current)==null?void 0:De.login({approval:Ue,token:T})}catch(Ct){w("User rejected connection proposal"),B(!0),yield Je()}}catch($e){console.error("Unable to connect",$e)}})}return Gg(()=>{!t||Ae()},[t]),Gg(()=>{te.current=X},[X]),(0,Sn.useEffect)(()=>{B(!Boolean(A))},[A]),[Je,{error:v,loginFailed:Te,isLoading:E&&!Te,isLoggedIn:se&&!Te},{uriDeepLink:Be,walletConnectUri:A,cancelLogin:de,connectExisting:Ee,removeExistingPairing:Ve,wcPairings:U}]};a();var hf=require("react");$a();Ze();a();var q1=(e,t=["address"])=>{let r=new URL(e),i=new URLSearchParams(r.search);t.forEach(u=>i.delete(u));let p=Array.from(i.values()).length>0?"?":"",d=r.pathname==="/"&&!e.endsWith("/")?"":r.pathname;return r.protocol==="vscode:"?e:`${r.origin}${d}${p}${i.toString()}${r.hash}`};var yf=({callbackRoute:e,token:t,nativeAuth:r,redirectDelayMilliseconds:i=100,customWalletAddress:p})=>{let[d,u]=(0,hf.useState)(""),[h,x]=(0,hf.useState)(!1),T=Z(Et),v=je(),w=Bt(),A=Boolean(r),P=Yn(r),E=t;function B(){return V(this,null,function*(){if(w)throw new Error(Rn);v(I0(p));try{x(!0);let q=fm(p!=null?p:T.walletAddress),X=new Date,M=X.setMinutes(X.getMinutes()+3)/1e3,$={data:{},expires:M};if(A&&!E&&(E=yield P.getNativeAuthLoginToken(),!E)){console.warn("Login cancelled.");return}E&&P.setLoginToken(E);let{origin:G}=Se(),Y=window!=null&&window.location?`${G}${e}`:`${e}`;new URLSearchParams(document==null?void 0:document.location.search).get("address")||v(u0($));let te=q1(Y),he=encodeURIComponent(te),ae=z(L({callbackUrl:he},E&&{token:E}),{redirectDelayMilliseconds:i});yield q.login(ae)}catch(q){console.error(q),u("error logging in"+q.message)}finally{x(!1)}})}let U=Boolean(d);return[B,{error:d,loginFailed:U,isLoading:h&&!U,isLoggedIn:w&&!U}]};a();a();var j1=require("react");a();var nW=require("react");a();var xf=require("react"),tW=require("socket.io-client");Ze();a();a();a();var rW=require("react");qe();a();a();a();var Z1=S(require("swr"));a();a();a();a();var X1=S(require("axios"));function K1(e=Zl){let t=Np();return X1.default.get(e,{baseURL:t})}function Hm(){let e=i=>K1(i).then(p=>p.data),{data:t,error:r}=(0,Z1.default)(Zl,e);return{price:t==null?void 0:t.price,error:r}}a();a();var $m=S(require("react")),bf=S(require("classnames"));j();a();var Tf=S(require("react")),J1=S(require("classnames"));a();var aW=`.dapp-core-component__loginButtonStyles__default-login-button {
|
|
2786
2786
|
color: inherit;
|
|
2787
2787
|
}
|
|
2788
2788
|
|
|
@@ -2778,7 +2778,7 @@ a.dapp-core-component__main__side-link::after {
|
|
|
2778
2778
|
color: #212529;
|
|
2779
2779
|
background-color: #dee2e6;
|
|
2780
2780
|
border-color: #e9ecef;
|
|
2781
|
-
}`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(EI));var Qn={dappModal:"dapp-core-component__dappModalStyles__dappModal",dappModalContent:"dapp-core-component__dappModalStyles__dappModalContent",dappModalHeader:"dapp-core-component__dappModalStyles__dappModalHeader",dappModalHeaderText:"dapp-core-component__dappModalStyles__dappModalHeaderText",dappModalBody:"dapp-core-component__dappModalStyles__dappModalBody",dappModalFooter:"dapp-core-component__dappModalStyles__dappModalFooter",dappModalCloseButton:"dapp-core-component__dappModalStyles__dappModalCloseButton"};a();var Ch=R(require("react")),Ah=R(require("classnames"));var Il=({className:o,children:t})=>Ch.default.createElement("div",{className:(0,Ah.default)(Qn.dappModalBody,o)},t);a();var Pl=R(require("react")),Lh=R(require("classnames"));var Nl=({visible:o,customFooter:t,className:i,footerText:c})=>o?Pl.default.createElement("div",{className:(0,Lh.default)(Qn.dappModalFooter,i)},t!=null?t:Pl.default.createElement("div",null,c)):null;a();var Rr=R(require("react")),Ih=require("@fortawesome/free-solid-svg-icons"),Ph=require("@fortawesome/react-fontawesome"),Pa=R(require("classnames"));var kl=({visible:o,headerText:t,customHeader:i,className:c,closeButtonClassName:_,headerTextClassName:f,onHide:h})=>o?i?Rr.default.createElement("div",{className:(0,Pa.default)(Qn.dappModalHeader,c)},i):Rr.default.createElement("div",{className:(0,Pa.default)(Qn.dappModalHeader,c)},Rr.default.createElement("div",{className:(0,Pa.default)(Qn.dappModalHeaderText,f)},t),Rr.default.createElement("button",{onClick:h,className:(0,Pa.default)(Qn.dappModalCloseButton,V.btn,V.btnLight,_)},Rr.default.createElement(Ph.FontAwesomeIcon,{size:"lg",icon:Ih.faTimes}))):null;var RI={showHeader:!0,showFooter:!1,headerText:"",footerText:""},Rl=({"data-testid":o="dappModal",children:t,className:i="dapp-modal-dialog-wrapper",config:c=RI,id:_="dapp-modal",onHide:f,parentElement:h,visible:b})=>{if(!b)return null;let{showHeader:w,showFooter:v,headerText:L,footerText:A,modalDialogClassName:E="dapp-modal-dialog",modalContentClassName:U="dapp-modal-dialog-content",modalHeaderClassName:M="dapp-modal-dialog-header",modalHeaderTextClassName:O="dapp-modal-dialog-header-text",modalCloseButtonClassName:ee="dapp-modal-dialog-close-button",modalBodyClassName:X="dapp-modal-dialog-content-body",modalFooterClassName:K="dapp-modal-dialog-footer",customModalHeader:G,customModalFooter:j}=c;return Nh.default.createPortal(Dr.default.createElement("div",{id:_,role:"dialog","aria-modal":"true",className:(0,El.default)(E,Qn.dappModal,i),"data-testid":o},Dr.default.createElement("div",{className:(0,El.default)(Qn.dappModalContent,U)},Dr.default.createElement(kl,{visible:w,headerText:L,customHeader:G,className:M,headerTextClassName:O,closeButtonClassName:ee,onHide:f}),Dr.default.createElement(Il,{className:X},t),Dr.default.createElement(Nl,{visible:v,customFooter:j,footerText:A,className:K}))),h!=null?h:document==null?void 0:document.body)};a();a();var Ns=require("react"),ks=o=>{let[t,i]=(0,Ns.useState)(!1),c=()=>{i(!0)},_=()=>{i(!1)};return(0,Ns.useEffect)(()=>{(o==null?void 0:o.visible)===!0?c():(o==null?void 0:o.visible)===!1&&_()},[o==null?void 0:o.visible]),{handleShowModal:c,handleHideModal:_,showModal:t}};a();var Na=({hideButtonWhenModalOpens:o,onContentHide:t,onContentShow:i,onModalCloses:c,onModalOpens:_,token:f,wrapContentInsideModal:h})=>{let b=Hf(),[w,v]=(0,kh.useState)(!1),{handleShowModal:L,handleHideModal:A,showModal:E}=ks(),U=ko(f),M=!o||!w,O=()=>{v(!1),t==null||t(),h?(A(),c==null||c()):c&&(console.warn('Deprecated: "onModalCloses" must be used only when "wrapContentInsideModal" is set to "true". Use "onContentHide" instead.'),c())};return{disabledConnectButton:U,handleCloseModal:O,handleOpenModal:()=>{if(b)throw new Error(wo);if(w)return O();v(!0),i==null||i(),h?(L(),_==null||_()):_&&(console.warn('Deprecated: "onModalOpens" must be used only when "wrapContentInsideModal" is set to "true". Use "onContentShow" instead.'),_())},shouldRenderButton:M,showContent:w,showModal:E}};a();var jt=require("react"),Ml=require("@multiversx/sdk-hw-provider");Gt();pn();ke();$e();Tr();a();a();Rp();a();a();var Dl=R(require("platform"));function Eh(){var o,t,i,c;return((t=(o=Dl.default)==null?void 0:o.os)==null?void 0:t.family)==="iOS"||((c=(i=Dl.default)==null?void 0:i.os)==null?void 0:c.family)==="Android"}a();a();a();a();a();function Rh(){return cl(le.getState())}a();a();a();a();$e();a();var Dh=()=>Boolean(window==null?void 0:window.elrondWallet);ua();yr();a();a();a();ke();a();a();var DI=R(require("axios"));a();var Xt=require("react"),MI=10,Mh=()=>{let[o,t]=(0,Xt.useState)(""),[i,c]=(0,Xt.useState)(!1),[_,f]=(0,Xt.useState)(0),[h,b]=(0,Xt.useState)([]),[w,v]=(0,Xt.useState)(null),[L,A]=(0,Xt.useState)(!1);return{accounts:h,defaultAddressesPerPage:MI,error:o,isLoading:i,onGoToNextPage:()=>{v(null),f(O=>O+1)},onGoToPrevPage:()=>{v(null),f(O=>O===0?0:O-1)},onSelectAddress:O=>{v(O)},selectedAddress:w,setAccounts:b,setError:t,setIsLoading:c,setShowAddressList:A,showAddressList:L,startIndex:_}};var Es="Check if the MultiversX App is open on Ledger",Bl=({callbackRoute:o,token:t,addressesPerPage:i,nativeAuth:c,onLoginRedirect:_})=>{let f=ne(zg),h=hn(),b=Ye(),w=Wn(),v=c!=null,L=No(c),A=t,{accounts:E,setAccounts:U,isLoading:M,setIsLoading:O,setShowAddressList:ee,showAddressList:X,startIndex:K,selectedAddress:G,onGoToPrevPage:j,onGoToNextPage:oe,onSelectAddress:ge,error:Re,setError:We,defaultAddressesPerPage:ue}=Mh(),Ve=i!=null?i:ue,[fe,Pe]=(0,jt.useState)(""),[Ze,_o]=(0,jt.useState)(!1),Je=({address:ye,index:be,signature:Z})=>{b(Ou({index:be,loginType:"ledger"})),Z&&L.setTokenLoginInfo({signature:Z,address:ye}),b(An({address:ye,loginMethod:"ledger"})),jo({callbackRoute:o,onLoginRedirect:_,options:{address:ye,signature:Z}})},Ce=(ye,be="")=>{var Le;let{errorMessage:Z,defaultErrorMessage:De}=$p(ye),Ae=(Le=Z!=null?Z:De)!=null?Le:Es;We(`${Ae}.${be}`),O(!1),b(Gp(null))},uo=()=>F(void 0,null,function*(){try{if(h instanceof Ml.HWProvider&&h.isInitialized())return yield h.isConnected()}catch(ye){Ce(ye)}return!1}),eo=()=>F(void 0,null,function*(){if(yield uo()){We(""),O(!1);return}try{let be=new Ml.HWProvider;(yield be.init())&&Po(be),We(""),O(!1)}catch(be){Ce(be)}}),an=()=>F(void 0,null,function*(){let ye=yield uo();if(!G||!ye)return Ce(Es);let{index:be}=G;if(v&&!A&&(A=yield L.getNativeAuthLoginToken(),!A)){console.warn("Fetching block failed. Login cancelled.");return}if(A){L.setLoginToken(A);try{let Z=yield h.tokenLogin({token:l.Buffer.from(`${A}{}`),addressIndex:be});Je({address:Z.address,index:be,signature:Z.signature.toString("hex")})}catch(Z){Ce(Z,". Update MultiversX App to continue.")}}else try{let Z=yield h.login({addressIndex:be});Je({address:Z,index:be})}catch(Z){return Ce(Z),!1}return!0}),xn=()=>F(void 0,null,function*(){try{if(O(!0),G==null)return!1;b(f?Eu(G):Gp(te(B({},G),{version:fe,hasContractDataEnabled:Ze}))),O(!1),yield an()}catch(ye){Ce(ye)}finally{O(!1)}return ee(!1),!0}),it=()=>F(void 0,null,function*(){if(!(yield uo()))return Ce(Re);try{O(!0);let be=yield h.getAccounts(K,Ve),Z=yield fl(h);Pe(Z.version),_o(Z.dataEnabled),U(be),O(!1)}catch(be){Ce(be)}}),Nn=()=>F(void 0,null,function*(){if(w)throw new Error(wo);We("");try{if(O(!0),yield eo(),!(yield uo()))return Ce(Es);if(f!=null){if(!G)return Ce(Es);let be=yield h.login({addressIndex:G.index.valueOf()});if(!be)return Ce("Login cancelled.");b(An({address:be,loginMethod:"ledger"})),jo({callbackRoute:o,onLoginRedirect:_})}else E!=null&&E.length||(yield it()),ee(!0)}catch(ye){Ce(ye)}finally{O(!1)}});(0,jt.useEffect)(()=>{eo()},[h]),(0,jt.useEffect)(()=>{it()},[K,X,h]),(0,jt.useEffect)(()=>{(E==null?void 0:E.length)>0&&!X&&ee(!0)},[E]);let sn=Boolean(Re);return[Nn,{loginFailed:sn,isLoggedIn:w&&!sn,error:Re,isLoading:M&&!sn},{accounts:E,showAddressList:X,startIndex:K,selectedAddress:G,version:fe,contractDataEnabled:Ze,onGoToPrevPage:j,onGoToNextPage:oe,onSelectAddress:ge,onConfirmSelectedAddress:xn}]};a();var Ol=require("react"),Bh=require("@multiversx/sdk-opera-provider");Gt();pn();$e();Tr();var Fl=({callbackRoute:o,token:t,nativeAuth:i,onLoginRedirect:c})=>{let[_,f]=(0,Ol.useState)(""),[h,b]=(0,Ol.useState)(!1),w=i!=null,v=No(i),L=t,A=Ye(),E=Wn();function U(){return F(this,null,function*(){if(E)throw new Error(wo);b(!0);let O=Bh.OperaProvider.getInstance();try{if(!(yield O.init())){console.warn("Something went wrong trying to redirect to wallet login..");return}let{origin:X}=ve(),K=Lr(),G=encodeURIComponent(`${X}${o!=null?o:K}`);if(w&&!L&&(L=yield v.getNativeAuthLoginToken(),!L)){console.warn("Fetching block failed. Login cancelled.");return}L&&v.setLoginToken(L);let j=B({callbackUrl:G},L&&{token:L});yield O.login(j),Po(O);let{signature:oe,address:ge}=O.account;if(!ge){b(!1),console.warn("Login cancelled.");return}oe&&L&&v.setTokenLoginInfo({signature:oe,address:ge}),A(An({address:ge,loginMethod:"opera"})),jo({callbackRoute:o,onLoginRedirect:c,options:{signature:oe,address:ge}})}catch(ee){console.error("error loging in",ee),f("error logging in"+ee.message)}finally{b(!1)}})}let M=Boolean(_);return[U,{loginFailed:M,error:_,isLoading:h&&!M,isLoggedIn:E&&!M}]};a();var po=require("react");pn();ke();$e();Tr();var ka=({callbackRoute:o,token:t,nativeAuth:i,onLoginRedirect:c,logoutRoute:_,canLoginRef:f})=>{var be;let h=Ye(),b=i!=null,w=No(i),v=t,[L,A]=(0,po.useState)(""),[E,U]=(0,po.useState)(""),[M,O]=(0,po.useState)(!0),[ee,X]=(0,po.useState)([]),K=hn(),G=ne(Xg),j=ne(jg),oe=ne(Yg),ge=ne(xa),Re=ne(Zg),We=ne(il),ue=(0,po.useRef)(K),Ve=f!=null?f:(0,po.useRef)(!1),fe=(0,po.useRef)(!1),Pe=(be=_!=null?_:We)!=null?be:"/",Ze=[ys.CANCEL_ACTION];t&&Ze.push(ys.SIGN_LOGIN_TOKEN),b&&Ze.push(ys.SIGN_NATIVE_AUTH_TOKEN);let _o=M?"":`${Re}?wallet-connect=${encodeURIComponent(E)}`,Je=Boolean(L),Ce=Wn(),uo=()=>{xl(Pe)},eo=Z=>{console.log("WalletConnect Session Event: ",Z)},an=()=>F(void 0,null,function*(){var Z,De,Ae;try{let Le=ue.current;if(Wn()||Le==null||!et("walletconnectv2")||fe.current)return;if(!Ve.current){try{yield(Z=ue.current)==null?void 0:Z.logout()}catch(go){console.warn("Unable to logout")}return}let no=yield(De=ue.current)==null?void 0:De.getAddress();if(!no){console.warn("Login cancelled.");return}let _n=yield(Ae=ue.current)==null?void 0:Ae.getSignature(),At={address:no,loginMethod:"walletconnectv2"},zs={logoutRoute:Pe,loginType:"walletconnectv2",callbackRoute:o!=null?o:ve().href};h(Bu(zs)),_n&&w.setTokenLoginInfo({signature:_n,address:no}),h(An(At)),jo({callbackRoute:o,onLoginRedirect:c,options:{address:no,signature:_n}})}catch(Le){A("User rejected connection proposal"),console.error(Le)}}),xn=()=>F(void 0,null,function*(){var Z,De,Ae,Le,kn;Ve.current=!1;try{((Le=(Ae=(De=(Z=ue.current)==null?void 0:Z.walletConnector)==null?void 0:De.session)==null?void 0:Ae.getAll())!=null?Le:[]).length>0&&(yield(kn=ue.current)==null?void 0:kn.logout())}catch(no){console.warn("Unable to logout")}}),it=Z=>F(void 0,null,function*(){var De,Ae,Le;if(!G||!j){A("Invalid WalletConnect setup");return}if(!Z||!Z.topic){A("Expired connection");return}try{let{approval:kn}=yield(De=ue.current)==null?void 0:De.connect({topic:Z.topic,methods:Ze});if(b&&!v&&(v=yield w.getNativeAuthLoginToken(),!v)){console.warn("Fetching block failed. Login cancelled.");return}v&&w.setLoginToken(v);try{yield(Ae=ue.current)==null?void 0:Ae.login({approval:kn,token:v})}catch(no){A("User rejected existing connection proposal"),O(!0),yield sn()}}catch(kn){console.error("Unable to connect to existing session",kn),A("Unable to connect to existing session")}finally{X((Le=ue.current)==null?void 0:Le.pairings)}}),Nn=Z=>F(void 0,null,function*(){var De,Ae;try{Z&&(yield(De=ue.current)==null?void 0:De.logout({topic:Z}))}catch(Le){console.error("Unable to remove existing pairing",Le),A("Unable to remove existing pairing")}finally{let Le=yield(Ae=ue.current)==null?void 0:Ae.getPairings();X(Le)}});function sn(Z=!0){return F(this,null,function*(){var Le;if(!j||!G){A("Invalid WalletConnect setup");return}if(fe.current)return;if(fe.current=!0,(Le=ue.current)!=null&&Le.walletConnector){ue.current.init(),Po(ue.current),fe.current=!1,Ve.current=!0,Z&&ye();return}let De={onClientLogin:an,onClientLogout:uo,onClientEvent:eo},Ae=new Ts(De,ge,G,j,oe);yield Ae.init(),Po(Ae),ue.current=Ae,fe.current=!1,Ve.current=!0,Z&&(X(Ae.pairings),ye())})}function ye(){return F(this,null,function*(){var Z,De;if(!G||!j){A("Invalid WalletConnect setup");return}try{let{uri:Ae,approval:Le}=yield(Z=ue.current)==null?void 0:Z.connect({methods:Ze});if(!Boolean(Ae))return;if(U(Ae),(oe==null?void 0:oe.logger)==="debug"&&console.log("WalletConnect uri: ",Ae),b&&!v&&(v=yield w.getNativeAuthLoginToken(),!v)){console.warn("Fetching block failed. Login cancelled.");return}v&&w.setLoginToken(v);try{yield(De=ue.current)==null?void 0:De.login({approval:Le,token:v})}catch(no){A("User rejected connection proposal"),O(!0),yield sn()}}catch(Ae){console.error("Unable to connect",Ae)}})}return _l(()=>{!t||ye()},[t]),_l(()=>{ue.current=K},[K]),(0,po.useEffect)(()=>{O(!Boolean(E))},[E]),[sn,{error:L,loginFailed:Je,isLoading:M&&!Je,isLoggedIn:Ce&&!Je},{uriDeepLink:_o,walletConnectUri:E,cancelLogin:xn,connectExisting:it,removeExistingPairing:Nn,wcPairings:ee}]};a();var Wl=require("react");Gt();ke();a();var Oh=(o,t=["address"])=>{let i=new URL(o),c=new URLSearchParams(i.search);t.forEach(h=>c.delete(h));let _=Array.from(c.values()).length>0?"?":"",f=i.pathname==="/"&&!o.endsWith("/")?"":i.pathname;return i.protocol==="vscode:"?o:`${i.origin}${f}${_}${c.toString()}${i.hash}`};var Ul=({callbackRoute:o,token:t,nativeAuth:i,redirectDelayMilliseconds:c=100,customWalletAddress:_})=>{let[f,h]=(0,Wl.useState)(""),[b,w]=(0,Wl.useState)(!1),v=ne(Jn),L=Ye(),A=Wn(),E=Boolean(i),U=No(i),M=t;function O(){return F(this,null,function*(){if(A)throw new Error(wo);L(Qu(_));try{w(!0);let X=gl(_!=null?_:v.walletAddress),K=new Date,G=K.setMinutes(K.getMinutes()+3)/1e3,j={data:{},expires:G};if(E&&!M&&(M=yield U.getNativeAuthLoginToken(),!M)){console.warn("Login cancelled.");return}M&&U.setLoginToken(M);let{origin:oe}=ve(),ge=window!=null&&window.location?`${oe}${o}`:`${o}`;new URLSearchParams(document.location.search).get("address")||L(Fu(j));let ue=Oh(ge),Ve=encodeURIComponent(ue),fe=te(B({callbackUrl:Ve},M&&{token:M}),{redirectDelayMilliseconds:c});yield X.login(fe)}catch(X){console.error(X),h("error logging in"+X.message)}finally{w(!1)}})}let ee=Boolean(f);return[O,{error:f,loginFailed:ee,isLoading:b&&!ee,isLoggedIn:A&&!ee}]};a();a();var Fh=require("react");a();var FI=require("react");a();var Gl=require("react"),OI=require("socket.io-client");ke();a();a();a();var WI=require("react");on();a();a();a();var HI=R(require("swr"));a();a();a();a();var GI=R(require("axios"));a();a();var Ds=R(require("react")),$l=R(require("classnames"));ae();a();var Hl=R(require("react")),Uh=R(require("classnames"));a();var $I=`.dapp-core-component__loginButtonStyles__default-login-button {
|
|
2781
|
+
}`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(EI));var Qn={dappModal:"dapp-core-component__dappModalStyles__dappModal",dappModalContent:"dapp-core-component__dappModalStyles__dappModalContent",dappModalHeader:"dapp-core-component__dappModalStyles__dappModalHeader",dappModalHeaderText:"dapp-core-component__dappModalStyles__dappModalHeaderText",dappModalBody:"dapp-core-component__dappModalStyles__dappModalBody",dappModalFooter:"dapp-core-component__dappModalStyles__dappModalFooter",dappModalCloseButton:"dapp-core-component__dappModalStyles__dappModalCloseButton"};a();var Ch=R(require("react")),Ah=R(require("classnames"));var Il=({className:o,children:t})=>Ch.default.createElement("div",{className:(0,Ah.default)(Qn.dappModalBody,o)},t);a();var Pl=R(require("react")),Lh=R(require("classnames"));var Nl=({visible:o,customFooter:t,className:i,footerText:c})=>o?Pl.default.createElement("div",{className:(0,Lh.default)(Qn.dappModalFooter,i)},t!=null?t:Pl.default.createElement("div",null,c)):null;a();var Rr=R(require("react")),Ih=require("@fortawesome/free-solid-svg-icons"),Ph=require("@fortawesome/react-fontawesome"),Pa=R(require("classnames"));var kl=({visible:o,headerText:t,customHeader:i,className:c,closeButtonClassName:_,headerTextClassName:f,onHide:h})=>o?i?Rr.default.createElement("div",{className:(0,Pa.default)(Qn.dappModalHeader,c)},i):Rr.default.createElement("div",{className:(0,Pa.default)(Qn.dappModalHeader,c)},Rr.default.createElement("div",{className:(0,Pa.default)(Qn.dappModalHeaderText,f)},t),Rr.default.createElement("button",{onClick:h,className:(0,Pa.default)(Qn.dappModalCloseButton,V.btn,V.btnLight,_)},Rr.default.createElement(Ph.FontAwesomeIcon,{size:"lg",icon:Ih.faTimes}))):null;var RI={showHeader:!0,showFooter:!1,headerText:"",footerText:""},Rl=({"data-testid":o="dappModal",children:t,className:i="dapp-modal-dialog-wrapper",config:c=RI,id:_="dapp-modal",onHide:f,parentElement:h,visible:b})=>{if(!b)return null;let{showHeader:w,showFooter:v,headerText:L,footerText:A,modalDialogClassName:E="dapp-modal-dialog",modalContentClassName:U="dapp-modal-dialog-content",modalHeaderClassName:M="dapp-modal-dialog-header",modalHeaderTextClassName:O="dapp-modal-dialog-header-text",modalCloseButtonClassName:ee="dapp-modal-dialog-close-button",modalBodyClassName:X="dapp-modal-dialog-content-body",modalFooterClassName:K="dapp-modal-dialog-footer",customModalHeader:G,customModalFooter:j}=c;return Nh.default.createPortal(Dr.default.createElement("div",{id:_,role:"dialog","aria-modal":"true",className:(0,El.default)(E,Qn.dappModal,i),"data-testid":o},Dr.default.createElement("div",{className:(0,El.default)(Qn.dappModalContent,U)},Dr.default.createElement(kl,{visible:w,headerText:L,customHeader:G,className:M,headerTextClassName:O,closeButtonClassName:ee,onHide:f}),Dr.default.createElement(Il,{className:X},t),Dr.default.createElement(Nl,{visible:v,customFooter:j,footerText:A,className:K}))),h!=null?h:document==null?void 0:document.body)};a();a();var Ns=require("react"),ks=o=>{let[t,i]=(0,Ns.useState)(!1),c=()=>{i(!0)},_=()=>{i(!1)};return(0,Ns.useEffect)(()=>{(o==null?void 0:o.visible)===!0?c():(o==null?void 0:o.visible)===!1&&_()},[o==null?void 0:o.visible]),{handleShowModal:c,handleHideModal:_,showModal:t}};a();var Na=({hideButtonWhenModalOpens:o,onContentHide:t,onContentShow:i,onModalCloses:c,onModalOpens:_,token:f,wrapContentInsideModal:h})=>{let b=Hf(),[w,v]=(0,kh.useState)(!1),{handleShowModal:L,handleHideModal:A,showModal:E}=ks(),U=ko(f),M=!o||!w,O=()=>{v(!1),t==null||t(),h?(A(),c==null||c()):c&&(console.warn('Deprecated: "onModalCloses" must be used only when "wrapContentInsideModal" is set to "true". Use "onContentHide" instead.'),c())};return{disabledConnectButton:U,handleCloseModal:O,handleOpenModal:()=>{if(b)throw new Error(wo);if(w)return O();v(!0),i==null||i(),h?(L(),_==null||_()):_&&(console.warn('Deprecated: "onModalOpens" must be used only when "wrapContentInsideModal" is set to "true". Use "onContentShow" instead.'),_())},shouldRenderButton:M,showContent:w,showModal:E}};a();var jt=require("react"),Ml=require("@multiversx/sdk-hw-provider");Gt();pn();ke();$e();Tr();a();a();Rp();a();a();var Dl=R(require("platform"));function Eh(){var o,t,i,c;return((t=(o=Dl.default)==null?void 0:o.os)==null?void 0:t.family)==="iOS"||((c=(i=Dl.default)==null?void 0:i.os)==null?void 0:c.family)==="Android"}a();a();a();a();a();function Rh(){return cl(le.getState())}a();a();a();a();$e();a();var Dh=()=>Boolean(window==null?void 0:window.elrondWallet);ua();yr();a();a();a();ke();a();a();var DI=R(require("axios"));a();var Xt=require("react"),MI=10,Mh=()=>{let[o,t]=(0,Xt.useState)(""),[i,c]=(0,Xt.useState)(!1),[_,f]=(0,Xt.useState)(0),[h,b]=(0,Xt.useState)([]),[w,v]=(0,Xt.useState)(null),[L,A]=(0,Xt.useState)(!1);return{accounts:h,defaultAddressesPerPage:MI,error:o,isLoading:i,onGoToNextPage:()=>{v(null),f(O=>O+1)},onGoToPrevPage:()=>{v(null),f(O=>O===0?0:O-1)},onSelectAddress:O=>{v(O)},selectedAddress:w,setAccounts:b,setError:t,setIsLoading:c,setShowAddressList:A,showAddressList:L,startIndex:_}};var Es="Check if the MultiversX App is open on Ledger",Bl=({callbackRoute:o,token:t,addressesPerPage:i,nativeAuth:c,onLoginRedirect:_})=>{let f=ne(zg),h=hn(),b=Ye(),w=Wn(),v=c!=null,L=No(c),A=t,{accounts:E,setAccounts:U,isLoading:M,setIsLoading:O,setShowAddressList:ee,showAddressList:X,startIndex:K,selectedAddress:G,onGoToPrevPage:j,onGoToNextPage:oe,onSelectAddress:ge,error:Re,setError:We,defaultAddressesPerPage:ue}=Mh(),Ve=i!=null?i:ue,[fe,Pe]=(0,jt.useState)(""),[Ze,_o]=(0,jt.useState)(!1),Je=({address:ye,index:be,signature:Z})=>{b(Ou({index:be,loginType:"ledger"})),Z&&L.setTokenLoginInfo({signature:Z,address:ye}),b(An({address:ye,loginMethod:"ledger"})),jo({callbackRoute:o,onLoginRedirect:_,options:{address:ye,signature:Z}})},Ce=(ye,be="")=>{var Le;let{errorMessage:Z,defaultErrorMessage:De}=$p(ye),Ae=(Le=Z!=null?Z:De)!=null?Le:Es;We(`${Ae}.${be}`),O(!1),b(Gp(null))},uo=()=>F(void 0,null,function*(){try{if(h instanceof Ml.HWProvider&&h.isInitialized())return yield h.isConnected()}catch(ye){Ce(ye)}return!1}),eo=()=>F(void 0,null,function*(){if(yield uo()){We(""),O(!1);return}try{let be=new Ml.HWProvider;(yield be.init())&&Po(be),We(""),O(!1)}catch(be){Ce(be)}}),an=()=>F(void 0,null,function*(){let ye=yield uo();if(!G||!ye)return Ce(Es);let{index:be}=G;if(v&&!A&&(A=yield L.getNativeAuthLoginToken(),!A)){console.warn("Fetching block failed. Login cancelled.");return}if(A){L.setLoginToken(A);try{let Z=yield h.tokenLogin({token:l.Buffer.from(`${A}{}`),addressIndex:be});Je({address:Z.address,index:be,signature:Z.signature.toString("hex")})}catch(Z){Ce(Z,". Update MultiversX App to continue.")}}else try{let Z=yield h.login({addressIndex:be});Je({address:Z,index:be})}catch(Z){return Ce(Z),!1}return!0}),xn=()=>F(void 0,null,function*(){try{if(O(!0),G==null)return!1;b(f?Eu(G):Gp(te(B({},G),{version:fe,hasContractDataEnabled:Ze}))),O(!1),yield an()}catch(ye){Ce(ye)}finally{O(!1)}return ee(!1),!0}),it=()=>F(void 0,null,function*(){if(!(yield uo()))return Ce(Re);try{O(!0);let be=yield h.getAccounts(K,Ve),Z=yield fl(h);Pe(Z.version),_o(Z.dataEnabled),U(be),O(!1)}catch(be){Ce(be)}}),Nn=()=>F(void 0,null,function*(){if(w)throw new Error(wo);We("");try{if(O(!0),yield eo(),!(yield uo()))return Ce(Es);if(f!=null){if(!G)return Ce(Es);let be=yield h.login({addressIndex:G.index.valueOf()});if(!be)return Ce("Login cancelled.");b(An({address:be,loginMethod:"ledger"})),jo({callbackRoute:o,onLoginRedirect:_})}else E!=null&&E.length||(yield it()),ee(!0)}catch(ye){Ce(ye)}finally{O(!1)}});(0,jt.useEffect)(()=>{eo()},[h]),(0,jt.useEffect)(()=>{it()},[K,X,h]),(0,jt.useEffect)(()=>{(E==null?void 0:E.length)>0&&!X&&ee(!0)},[E]);let sn=Boolean(Re);return[Nn,{loginFailed:sn,isLoggedIn:w&&!sn,error:Re,isLoading:M&&!sn},{accounts:E,showAddressList:X,startIndex:K,selectedAddress:G,version:fe,contractDataEnabled:Ze,onGoToPrevPage:j,onGoToNextPage:oe,onSelectAddress:ge,onConfirmSelectedAddress:xn}]};a();var Ol=require("react"),Bh=require("@multiversx/sdk-opera-provider");Gt();pn();$e();Tr();var Fl=({callbackRoute:o,token:t,nativeAuth:i,onLoginRedirect:c})=>{let[_,f]=(0,Ol.useState)(""),[h,b]=(0,Ol.useState)(!1),w=i!=null,v=No(i),L=t,A=Ye(),E=Wn();function U(){return F(this,null,function*(){if(E)throw new Error(wo);b(!0);let O=Bh.OperaProvider.getInstance();try{if(!(yield O.init())){console.warn("Something went wrong trying to redirect to wallet login..");return}let{origin:X}=ve(),K=Lr(),G=encodeURIComponent(`${X}${o!=null?o:K}`);if(w&&!L&&(L=yield v.getNativeAuthLoginToken(),!L)){console.warn("Fetching block failed. Login cancelled.");return}L&&v.setLoginToken(L);let j=B({callbackUrl:G},L&&{token:L});yield O.login(j),Po(O);let{signature:oe,address:ge}=O.account;if(!ge){b(!1),console.warn("Login cancelled.");return}oe&&L&&v.setTokenLoginInfo({signature:oe,address:ge}),A(An({address:ge,loginMethod:"opera"})),jo({callbackRoute:o,onLoginRedirect:c,options:{signature:oe,address:ge}})}catch(ee){console.error("error loging in",ee),f("error logging in"+ee.message)}finally{b(!1)}})}let M=Boolean(_);return[U,{loginFailed:M,error:_,isLoading:h&&!M,isLoggedIn:E&&!M}]};a();var po=require("react");pn();ke();$e();Tr();var ka=({callbackRoute:o,token:t,nativeAuth:i,onLoginRedirect:c,logoutRoute:_,canLoginRef:f})=>{var be;let h=Ye(),b=i!=null,w=No(i),v=t,[L,A]=(0,po.useState)(""),[E,U]=(0,po.useState)(""),[M,O]=(0,po.useState)(!0),[ee,X]=(0,po.useState)([]),K=hn(),G=ne(Xg),j=ne(jg),oe=ne(Yg),ge=ne(xa),Re=ne(Zg),We=ne(il),ue=(0,po.useRef)(K),Ve=f!=null?f:(0,po.useRef)(!1),fe=(0,po.useRef)(!1),Pe=(be=_!=null?_:We)!=null?be:"/",Ze=[ys.CANCEL_ACTION];t&&Ze.push(ys.SIGN_LOGIN_TOKEN),b&&Ze.push(ys.SIGN_NATIVE_AUTH_TOKEN);let _o=M?"":`${Re}?wallet-connect=${encodeURIComponent(E)}`,Je=Boolean(L),Ce=Wn(),uo=()=>{xl(Pe)},eo=Z=>{console.log("WalletConnect Session Event: ",Z)},an=()=>F(void 0,null,function*(){var Z,De,Ae;try{let Le=ue.current;if(Wn()||Le==null||!et("walletconnectv2")||fe.current)return;if(!Ve.current){try{yield(Z=ue.current)==null?void 0:Z.logout()}catch(go){console.warn("Unable to logout")}return}let no=yield(De=ue.current)==null?void 0:De.getAddress();if(!no){console.warn("Login cancelled.");return}let _n=yield(Ae=ue.current)==null?void 0:Ae.getSignature(),At={address:no,loginMethod:"walletconnectv2"},zs={logoutRoute:Pe,loginType:"walletconnectv2",callbackRoute:o!=null?o:ve().href};h(Bu(zs)),_n&&w.setTokenLoginInfo({signature:_n,address:no}),h(An(At)),jo({callbackRoute:o,onLoginRedirect:c,options:{address:no,signature:_n}})}catch(Le){A("User rejected connection proposal"),console.error(Le)}}),xn=()=>F(void 0,null,function*(){var Z,De,Ae,Le,kn;Ve.current=!1;try{((Le=(Ae=(De=(Z=ue.current)==null?void 0:Z.walletConnector)==null?void 0:De.session)==null?void 0:Ae.getAll())!=null?Le:[]).length>0&&(yield(kn=ue.current)==null?void 0:kn.logout())}catch(no){console.warn("Unable to logout")}}),it=Z=>F(void 0,null,function*(){var De,Ae,Le;if(!G||!j){A("Invalid WalletConnect setup");return}if(!Z||!Z.topic){A("Expired connection");return}try{let{approval:kn}=yield(De=ue.current)==null?void 0:De.connect({topic:Z.topic,methods:Ze});if(b&&!v&&(v=yield w.getNativeAuthLoginToken(),!v)){console.warn("Fetching block failed. Login cancelled.");return}v&&w.setLoginToken(v);try{yield(Ae=ue.current)==null?void 0:Ae.login({approval:kn,token:v})}catch(no){A("User rejected existing connection proposal"),O(!0),yield sn()}}catch(kn){console.error("Unable to connect to existing session",kn),A("Unable to connect to existing session")}finally{X((Le=ue.current)==null?void 0:Le.pairings)}}),Nn=Z=>F(void 0,null,function*(){var De,Ae;try{Z&&(yield(De=ue.current)==null?void 0:De.logout({topic:Z}))}catch(Le){console.error("Unable to remove existing pairing",Le),A("Unable to remove existing pairing")}finally{let Le=yield(Ae=ue.current)==null?void 0:Ae.getPairings();X(Le)}});function sn(Z=!0){return F(this,null,function*(){var Le;if(!j||!G){A("Invalid WalletConnect setup");return}if(fe.current)return;if(fe.current=!0,(Le=ue.current)!=null&&Le.walletConnector){ue.current.init(),Po(ue.current),fe.current=!1,Ve.current=!0,Z&&ye();return}let De={onClientLogin:an,onClientLogout:uo,onClientEvent:eo},Ae=new Ts(De,ge,G,j,oe);yield Ae.init(),Po(Ae),ue.current=Ae,fe.current=!1,Ve.current=!0,Z&&(X(Ae.pairings),ye())})}function ye(){return F(this,null,function*(){var Z,De;if(!G||!j){A("Invalid WalletConnect setup");return}try{let{uri:Ae,approval:Le}=yield(Z=ue.current)==null?void 0:Z.connect({methods:Ze});if(!Boolean(Ae))return;if(U(Ae),(oe==null?void 0:oe.logger)==="debug"&&console.log("WalletConnect uri: ",Ae),b&&!v&&(v=yield w.getNativeAuthLoginToken(),!v)){console.warn("Fetching block failed. Login cancelled.");return}v&&w.setLoginToken(v);try{yield(De=ue.current)==null?void 0:De.login({approval:Le,token:v})}catch(no){A("User rejected connection proposal"),O(!0),yield sn()}}catch(Ae){console.error("Unable to connect",Ae)}})}return _l(()=>{!t||ye()},[t]),_l(()=>{ue.current=K},[K]),(0,po.useEffect)(()=>{O(!Boolean(E))},[E]),[sn,{error:L,loginFailed:Je,isLoading:M&&!Je,isLoggedIn:Ce&&!Je},{uriDeepLink:_o,walletConnectUri:E,cancelLogin:xn,connectExisting:it,removeExistingPairing:Nn,wcPairings:ee}]};a();var Wl=require("react");Gt();ke();a();var Oh=(o,t=["address"])=>{let i=new URL(o),c=new URLSearchParams(i.search);t.forEach(h=>c.delete(h));let _=Array.from(c.values()).length>0?"?":"",f=i.pathname==="/"&&!o.endsWith("/")?"":i.pathname;return i.protocol==="vscode:"?o:`${i.origin}${f}${_}${c.toString()}${i.hash}`};var Ul=({callbackRoute:o,token:t,nativeAuth:i,redirectDelayMilliseconds:c=100,customWalletAddress:_})=>{let[f,h]=(0,Wl.useState)(""),[b,w]=(0,Wl.useState)(!1),v=ne(Jn),L=Ye(),A=Wn(),E=Boolean(i),U=No(i),M=t;function O(){return F(this,null,function*(){if(A)throw new Error(wo);L(Qu(_));try{w(!0);let X=gl(_!=null?_:v.walletAddress),K=new Date,G=K.setMinutes(K.getMinutes()+3)/1e3,j={data:{},expires:G};if(E&&!M&&(M=yield U.getNativeAuthLoginToken(),!M)){console.warn("Login cancelled.");return}M&&U.setLoginToken(M);let{origin:oe}=ve(),ge=window!=null&&window.location?`${oe}${o}`:`${o}`;new URLSearchParams(document==null?void 0:document.location.search).get("address")||L(Fu(j));let ue=Oh(ge),Ve=encodeURIComponent(ue),fe=te(B({callbackUrl:Ve},M&&{token:M}),{redirectDelayMilliseconds:c});yield X.login(fe)}catch(X){console.error(X),h("error logging in"+X.message)}finally{w(!1)}})}let ee=Boolean(f);return[O,{error:f,loginFailed:ee,isLoading:b&&!ee,isLoggedIn:A&&!ee}]};a();a();var Fh=require("react");a();var FI=require("react");a();var Gl=require("react"),OI=require("socket.io-client");ke();a();a();a();var WI=require("react");on();a();a();a();var HI=R(require("swr"));a();a();a();a();var GI=R(require("axios"));a();a();var Ds=R(require("react")),$l=R(require("classnames"));ae();a();var Hl=R(require("react")),Uh=R(require("classnames"));a();var $I=`.dapp-core-component__loginButtonStyles__default-login-button {
|
|
2782
2782
|
color: inherit;
|
|
2783
2783
|
}
|
|
2784
2784
|
|
|
@@ -2778,7 +2778,7 @@ a.dapp-core-component__main__side-link::after {
|
|
|
2778
2778
|
color: #212529;
|
|
2779
2779
|
background-color: #dee2e6;
|
|
2780
2780
|
border-color: #e9ecef;
|
|
2781
|
-
}`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(RI));var Qn={dappModal:"dapp-core-component__dappModalStyles__dappModal",dappModalContent:"dapp-core-component__dappModalStyles__dappModalContent",dappModalHeader:"dapp-core-component__dappModalStyles__dappModalHeader",dappModalHeaderText:"dapp-core-component__dappModalStyles__dappModalHeaderText",dappModalBody:"dapp-core-component__dappModalStyles__dappModalBody",dappModalFooter:"dapp-core-component__dappModalStyles__dappModalFooter",dappModalCloseButton:"dapp-core-component__dappModalStyles__dappModalCloseButton"};a();var Ch=R(require("react")),Ah=R(require("classnames"));var Il=({className:o,children:t})=>Ch.default.createElement("div",{className:(0,Ah.default)(Qn.dappModalBody,o)},t);a();var Pl=R(require("react")),Lh=R(require("classnames"));var Nl=({visible:o,customFooter:t,className:i,footerText:c})=>o?Pl.default.createElement("div",{className:(0,Lh.default)(Qn.dappModalFooter,i)},t!=null?t:Pl.default.createElement("div",null,c)):null;a();var Rr=R(require("react")),Ih=require("@fortawesome/free-solid-svg-icons"),Ph=require("@fortawesome/react-fontawesome"),Pa=R(require("classnames"));var kl=({visible:o,headerText:t,customHeader:i,className:c,closeButtonClassName:_,headerTextClassName:f,onHide:h})=>o?i?Rr.default.createElement("div",{className:(0,Pa.default)(Qn.dappModalHeader,c)},i):Rr.default.createElement("div",{className:(0,Pa.default)(Qn.dappModalHeader,c)},Rr.default.createElement("div",{className:(0,Pa.default)(Qn.dappModalHeaderText,f)},t),Rr.default.createElement("button",{onClick:h,className:(0,Pa.default)(Qn.dappModalCloseButton,V.btn,V.btnLight,_)},Rr.default.createElement(Ph.FontAwesomeIcon,{size:"lg",icon:Ih.faTimes}))):null;var DI={showHeader:!0,showFooter:!1,headerText:"",footerText:""},Rl=({"data-testid":o="dappModal",children:t,className:i="dapp-modal-dialog-wrapper",config:c=DI,id:_="dapp-modal",onHide:f,parentElement:h,visible:b})=>{if(!b)return null;let{showHeader:w,showFooter:v,headerText:L,footerText:A,modalDialogClassName:E="dapp-modal-dialog",modalContentClassName:U="dapp-modal-dialog-content",modalHeaderClassName:M="dapp-modal-dialog-header",modalHeaderTextClassName:O="dapp-modal-dialog-header-text",modalCloseButtonClassName:ee="dapp-modal-dialog-close-button",modalBodyClassName:X="dapp-modal-dialog-content-body",modalFooterClassName:K="dapp-modal-dialog-footer",customModalHeader:G,customModalFooter:j}=c;return Nh.default.createPortal(Dr.default.createElement("div",{id:_,role:"dialog","aria-modal":"true",className:(0,El.default)(E,Qn.dappModal,i),"data-testid":o},Dr.default.createElement("div",{className:(0,El.default)(Qn.dappModalContent,U)},Dr.default.createElement(kl,{visible:w,headerText:L,customHeader:G,className:M,headerTextClassName:O,closeButtonClassName:ee,onHide:f}),Dr.default.createElement(Il,{className:X},t),Dr.default.createElement(Nl,{visible:v,customFooter:j,footerText:A,className:K}))),h!=null?h:document==null?void 0:document.body)};a();a();var Ns=require("react"),ks=o=>{let[t,i]=(0,Ns.useState)(!1),c=()=>{i(!0)},_=()=>{i(!1)};return(0,Ns.useEffect)(()=>{(o==null?void 0:o.visible)===!0?c():(o==null?void 0:o.visible)===!1&&_()},[o==null?void 0:o.visible]),{handleShowModal:c,handleHideModal:_,showModal:t}};a();var Na=({hideButtonWhenModalOpens:o,onContentHide:t,onContentShow:i,onModalCloses:c,onModalOpens:_,token:f,wrapContentInsideModal:h})=>{let b=Hf(),[w,v]=(0,kh.useState)(!1),{handleShowModal:L,handleHideModal:A,showModal:E}=ks(),U=ko(f),M=!o||!w,O=()=>{v(!1),t==null||t(),h?(A(),c==null||c()):c&&(console.warn('Deprecated: "onModalCloses" must be used only when "wrapContentInsideModal" is set to "true". Use "onContentHide" instead.'),c())};return{disabledConnectButton:U,handleCloseModal:O,handleOpenModal:()=>{if(b)throw new Error(wo);if(w)return O();v(!0),i==null||i(),h?(L(),_==null||_()):_&&(console.warn('Deprecated: "onModalOpens" must be used only when "wrapContentInsideModal" is set to "true". Use "onContentShow" instead.'),_())},shouldRenderButton:M,showContent:w,showModal:E}};a();var jt=require("react"),Ml=require("@multiversx/sdk-hw-provider");Gt();pn();ke();$e();Tr();a();a();Rp();a();a();var Dl=R(require("platform"));function Eh(){var o,t,i,c;return((t=(o=Dl.default)==null?void 0:o.os)==null?void 0:t.family)==="iOS"||((c=(i=Dl.default)==null?void 0:i.os)==null?void 0:c.family)==="Android"}a();a();a();a();a();function Rh(){return cl(le.getState())}a();a();a();a();$e();a();var Dh=()=>Boolean(window==null?void 0:window.elrondWallet);ua();yr();a();a();a();ke();a();a();var MI=R(require("axios"));a();var Xt=require("react"),BI=10,Mh=()=>{let[o,t]=(0,Xt.useState)(""),[i,c]=(0,Xt.useState)(!1),[_,f]=(0,Xt.useState)(0),[h,b]=(0,Xt.useState)([]),[w,v]=(0,Xt.useState)(null),[L,A]=(0,Xt.useState)(!1);return{accounts:h,defaultAddressesPerPage:BI,error:o,isLoading:i,onGoToNextPage:()=>{v(null),f(O=>O+1)},onGoToPrevPage:()=>{v(null),f(O=>O===0?0:O-1)},onSelectAddress:O=>{v(O)},selectedAddress:w,setAccounts:b,setError:t,setIsLoading:c,setShowAddressList:A,showAddressList:L,startIndex:_}};var Es="Check if the MultiversX App is open on Ledger",Bl=({callbackRoute:o,token:t,addressesPerPage:i,nativeAuth:c,onLoginRedirect:_})=>{let f=ne(zg),h=hn(),b=Ye(),w=Wn(),v=c!=null,L=No(c),A=t,{accounts:E,setAccounts:U,isLoading:M,setIsLoading:O,setShowAddressList:ee,showAddressList:X,startIndex:K,selectedAddress:G,onGoToPrevPage:j,onGoToNextPage:oe,onSelectAddress:ge,error:Re,setError:We,defaultAddressesPerPage:ue}=Mh(),Ve=i!=null?i:ue,[fe,Pe]=(0,jt.useState)(""),[Ze,_o]=(0,jt.useState)(!1),Je=({address:ye,index:be,signature:Z})=>{b(Ou({index:be,loginType:"ledger"})),Z&&L.setTokenLoginInfo({signature:Z,address:ye}),b(An({address:ye,loginMethod:"ledger"})),jo({callbackRoute:o,onLoginRedirect:_,options:{address:ye,signature:Z}})},Ce=(ye,be="")=>{var Le;let{errorMessage:Z,defaultErrorMessage:De}=$p(ye),Ae=(Le=Z!=null?Z:De)!=null?Le:Es;We(`${Ae}.${be}`),O(!1),b(Gp(null))},uo=()=>F(void 0,null,function*(){try{if(h instanceof Ml.HWProvider&&h.isInitialized())return yield h.isConnected()}catch(ye){Ce(ye)}return!1}),eo=()=>F(void 0,null,function*(){if(yield uo()){We(""),O(!1);return}try{let be=new Ml.HWProvider;(yield be.init())&&Po(be),We(""),O(!1)}catch(be){Ce(be)}}),an=()=>F(void 0,null,function*(){let ye=yield uo();if(!G||!ye)return Ce(Es);let{index:be}=G;if(v&&!A&&(A=yield L.getNativeAuthLoginToken(),!A)){console.warn("Fetching block failed. Login cancelled.");return}if(A){L.setLoginToken(A);try{let Z=yield h.tokenLogin({token:l.Buffer.from(`${A}{}`),addressIndex:be});Je({address:Z.address,index:be,signature:Z.signature.toString("hex")})}catch(Z){Ce(Z,". Update MultiversX App to continue.")}}else try{let Z=yield h.login({addressIndex:be});Je({address:Z,index:be})}catch(Z){return Ce(Z),!1}return!0}),xn=()=>F(void 0,null,function*(){try{if(O(!0),G==null)return!1;b(f?Eu(G):Gp(te(B({},G),{version:fe,hasContractDataEnabled:Ze}))),O(!1),yield an()}catch(ye){Ce(ye)}finally{O(!1)}return ee(!1),!0}),it=()=>F(void 0,null,function*(){if(!(yield uo()))return Ce(Re);try{O(!0);let be=yield h.getAccounts(K,Ve),Z=yield fl(h);Pe(Z.version),_o(Z.dataEnabled),U(be),O(!1)}catch(be){Ce(be)}}),Nn=()=>F(void 0,null,function*(){if(w)throw new Error(wo);We("");try{if(O(!0),yield eo(),!(yield uo()))return Ce(Es);if(f!=null){if(!G)return Ce(Es);let be=yield h.login({addressIndex:G.index.valueOf()});if(!be)return Ce("Login cancelled.");b(An({address:be,loginMethod:"ledger"})),jo({callbackRoute:o,onLoginRedirect:_})}else E!=null&&E.length||(yield it()),ee(!0)}catch(ye){Ce(ye)}finally{O(!1)}});(0,jt.useEffect)(()=>{eo()},[h]),(0,jt.useEffect)(()=>{it()},[K,X,h]),(0,jt.useEffect)(()=>{(E==null?void 0:E.length)>0&&!X&&ee(!0)},[E]);let sn=Boolean(Re);return[Nn,{loginFailed:sn,isLoggedIn:w&&!sn,error:Re,isLoading:M&&!sn},{accounts:E,showAddressList:X,startIndex:K,selectedAddress:G,version:fe,contractDataEnabled:Ze,onGoToPrevPage:j,onGoToNextPage:oe,onSelectAddress:ge,onConfirmSelectedAddress:xn}]};a();var Ol=require("react"),Bh=require("@multiversx/sdk-opera-provider");Gt();pn();$e();Tr();var Fl=({callbackRoute:o,token:t,nativeAuth:i,onLoginRedirect:c})=>{let[_,f]=(0,Ol.useState)(""),[h,b]=(0,Ol.useState)(!1),w=i!=null,v=No(i),L=t,A=Ye(),E=Wn();function U(){return F(this,null,function*(){if(E)throw new Error(wo);b(!0);let O=Bh.OperaProvider.getInstance();try{if(!(yield O.init())){console.warn("Something went wrong trying to redirect to wallet login..");return}let{origin:X}=ve(),K=Lr(),G=encodeURIComponent(`${X}${o!=null?o:K}`);if(w&&!L&&(L=yield v.getNativeAuthLoginToken(),!L)){console.warn("Fetching block failed. Login cancelled.");return}L&&v.setLoginToken(L);let j=B({callbackUrl:G},L&&{token:L});yield O.login(j),Po(O);let{signature:oe,address:ge}=O.account;if(!ge){b(!1),console.warn("Login cancelled.");return}oe&&L&&v.setTokenLoginInfo({signature:oe,address:ge}),A(An({address:ge,loginMethod:"opera"})),jo({callbackRoute:o,onLoginRedirect:c,options:{signature:oe,address:ge}})}catch(ee){console.error("error loging in",ee),f("error logging in"+ee.message)}finally{b(!1)}})}let M=Boolean(_);return[U,{loginFailed:M,error:_,isLoading:h&&!M,isLoggedIn:E&&!M}]};a();var po=require("react");pn();ke();$e();Tr();var ka=({callbackRoute:o,token:t,nativeAuth:i,onLoginRedirect:c,logoutRoute:_,canLoginRef:f})=>{var be;let h=Ye(),b=i!=null,w=No(i),v=t,[L,A]=(0,po.useState)(""),[E,U]=(0,po.useState)(""),[M,O]=(0,po.useState)(!0),[ee,X]=(0,po.useState)([]),K=hn(),G=ne(Xg),j=ne(jg),oe=ne(Yg),ge=ne(xa),Re=ne(Zg),We=ne(il),ue=(0,po.useRef)(K),Ve=f!=null?f:(0,po.useRef)(!1),fe=(0,po.useRef)(!1),Pe=(be=_!=null?_:We)!=null?be:"/",Ze=[ys.CANCEL_ACTION];t&&Ze.push(ys.SIGN_LOGIN_TOKEN),b&&Ze.push(ys.SIGN_NATIVE_AUTH_TOKEN);let _o=M?"":`${Re}?wallet-connect=${encodeURIComponent(E)}`,Je=Boolean(L),Ce=Wn(),uo=()=>{xl(Pe)},eo=Z=>{console.log("WalletConnect Session Event: ",Z)},an=()=>F(void 0,null,function*(){var Z,De,Ae;try{let Le=ue.current;if(Wn()||Le==null||!et("walletconnectv2")||fe.current)return;if(!Ve.current){try{yield(Z=ue.current)==null?void 0:Z.logout()}catch(go){console.warn("Unable to logout")}return}let no=yield(De=ue.current)==null?void 0:De.getAddress();if(!no){console.warn("Login cancelled.");return}let _n=yield(Ae=ue.current)==null?void 0:Ae.getSignature(),At={address:no,loginMethod:"walletconnectv2"},zs={logoutRoute:Pe,loginType:"walletconnectv2",callbackRoute:o!=null?o:ve().href};h(Bu(zs)),_n&&w.setTokenLoginInfo({signature:_n,address:no}),h(An(At)),jo({callbackRoute:o,onLoginRedirect:c,options:{address:no,signature:_n}})}catch(Le){A("User rejected connection proposal"),console.error(Le)}}),xn=()=>F(void 0,null,function*(){var Z,De,Ae,Le,kn;Ve.current=!1;try{((Le=(Ae=(De=(Z=ue.current)==null?void 0:Z.walletConnector)==null?void 0:De.session)==null?void 0:Ae.getAll())!=null?Le:[]).length>0&&(yield(kn=ue.current)==null?void 0:kn.logout())}catch(no){console.warn("Unable to logout")}}),it=Z=>F(void 0,null,function*(){var De,Ae,Le;if(!G||!j){A("Invalid WalletConnect setup");return}if(!Z||!Z.topic){A("Expired connection");return}try{let{approval:kn}=yield(De=ue.current)==null?void 0:De.connect({topic:Z.topic,methods:Ze});if(b&&!v&&(v=yield w.getNativeAuthLoginToken(),!v)){console.warn("Fetching block failed. Login cancelled.");return}v&&w.setLoginToken(v);try{yield(Ae=ue.current)==null?void 0:Ae.login({approval:kn,token:v})}catch(no){A("User rejected existing connection proposal"),O(!0),yield sn()}}catch(kn){console.error("Unable to connect to existing session",kn),A("Unable to connect to existing session")}finally{X((Le=ue.current)==null?void 0:Le.pairings)}}),Nn=Z=>F(void 0,null,function*(){var De,Ae;try{Z&&(yield(De=ue.current)==null?void 0:De.logout({topic:Z}))}catch(Le){console.error("Unable to remove existing pairing",Le),A("Unable to remove existing pairing")}finally{let Le=yield(Ae=ue.current)==null?void 0:Ae.getPairings();X(Le)}});function sn(Z=!0){return F(this,null,function*(){var Le;if(!j||!G){A("Invalid WalletConnect setup");return}if(fe.current)return;if(fe.current=!0,(Le=ue.current)!=null&&Le.walletConnector){ue.current.init(),Po(ue.current),fe.current=!1,Ve.current=!0,Z&&ye();return}let De={onClientLogin:an,onClientLogout:uo,onClientEvent:eo},Ae=new Ts(De,ge,G,j,oe);yield Ae.init(),Po(Ae),ue.current=Ae,fe.current=!1,Ve.current=!0,Z&&(X(Ae.pairings),ye())})}function ye(){return F(this,null,function*(){var Z,De;if(!G||!j){A("Invalid WalletConnect setup");return}try{let{uri:Ae,approval:Le}=yield(Z=ue.current)==null?void 0:Z.connect({methods:Ze});if(!Boolean(Ae))return;if(U(Ae),(oe==null?void 0:oe.logger)==="debug"&&console.log("WalletConnect uri: ",Ae),b&&!v&&(v=yield w.getNativeAuthLoginToken(),!v)){console.warn("Fetching block failed. Login cancelled.");return}v&&w.setLoginToken(v);try{yield(De=ue.current)==null?void 0:De.login({approval:Le,token:v})}catch(no){A("User rejected connection proposal"),O(!0),yield sn()}}catch(Ae){console.error("Unable to connect",Ae)}})}return _l(()=>{!t||ye()},[t]),_l(()=>{ue.current=K},[K]),(0,po.useEffect)(()=>{O(!Boolean(E))},[E]),[sn,{error:L,loginFailed:Je,isLoading:M&&!Je,isLoggedIn:Ce&&!Je},{uriDeepLink:_o,walletConnectUri:E,cancelLogin:xn,connectExisting:it,removeExistingPairing:Nn,wcPairings:ee}]};a();var Wl=require("react");Gt();ke();a();var Oh=(o,t=["address"])=>{let i=new URL(o),c=new URLSearchParams(i.search);t.forEach(h=>c.delete(h));let _=Array.from(c.values()).length>0?"?":"",f=i.pathname==="/"&&!o.endsWith("/")?"":i.pathname;return i.protocol==="vscode:"?o:`${i.origin}${f}${_}${c.toString()}${i.hash}`};var Ul=({callbackRoute:o,token:t,nativeAuth:i,redirectDelayMilliseconds:c=100,customWalletAddress:_})=>{let[f,h]=(0,Wl.useState)(""),[b,w]=(0,Wl.useState)(!1),v=ne(Jn),L=Ye(),A=Wn(),E=Boolean(i),U=No(i),M=t;function O(){return F(this,null,function*(){if(A)throw new Error(wo);L(Qu(_));try{w(!0);let X=gl(_!=null?_:v.walletAddress),K=new Date,G=K.setMinutes(K.getMinutes()+3)/1e3,j={data:{},expires:G};if(E&&!M&&(M=yield U.getNativeAuthLoginToken(),!M)){console.warn("Login cancelled.");return}M&&U.setLoginToken(M);let{origin:oe}=ve(),ge=window!=null&&window.location?`${oe}${o}`:`${o}`;new URLSearchParams(document.location.search).get("address")||L(Fu(j));let ue=Oh(ge),Ve=encodeURIComponent(ue),fe=te(B({callbackUrl:Ve},M&&{token:M}),{redirectDelayMilliseconds:c});yield X.login(fe)}catch(X){console.error(X),h("error logging in"+X.message)}finally{w(!1)}})}let ee=Boolean(f);return[O,{error:f,loginFailed:ee,isLoading:b&&!ee,isLoggedIn:A&&!ee}]};a();a();var Fh=require("react");a();var WI=require("react");a();var Gl=require("react"),FI=require("socket.io-client");ke();a();a();a();var UI=require("react");on();a();a();a();var $I=R(require("swr"));a();a();a();a();var HI=R(require("axios"));a();a();var Ds=R(require("react")),$l=R(require("classnames"));ae();a();var Hl=R(require("react")),Uh=R(require("classnames"));a();var zI=`.dapp-core-component__loginButtonStyles__default-login-button {
|
|
2781
|
+
}`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(RI));var Qn={dappModal:"dapp-core-component__dappModalStyles__dappModal",dappModalContent:"dapp-core-component__dappModalStyles__dappModalContent",dappModalHeader:"dapp-core-component__dappModalStyles__dappModalHeader",dappModalHeaderText:"dapp-core-component__dappModalStyles__dappModalHeaderText",dappModalBody:"dapp-core-component__dappModalStyles__dappModalBody",dappModalFooter:"dapp-core-component__dappModalStyles__dappModalFooter",dappModalCloseButton:"dapp-core-component__dappModalStyles__dappModalCloseButton"};a();var Ch=R(require("react")),Ah=R(require("classnames"));var Il=({className:o,children:t})=>Ch.default.createElement("div",{className:(0,Ah.default)(Qn.dappModalBody,o)},t);a();var Pl=R(require("react")),Lh=R(require("classnames"));var Nl=({visible:o,customFooter:t,className:i,footerText:c})=>o?Pl.default.createElement("div",{className:(0,Lh.default)(Qn.dappModalFooter,i)},t!=null?t:Pl.default.createElement("div",null,c)):null;a();var Rr=R(require("react")),Ih=require("@fortawesome/free-solid-svg-icons"),Ph=require("@fortawesome/react-fontawesome"),Pa=R(require("classnames"));var kl=({visible:o,headerText:t,customHeader:i,className:c,closeButtonClassName:_,headerTextClassName:f,onHide:h})=>o?i?Rr.default.createElement("div",{className:(0,Pa.default)(Qn.dappModalHeader,c)},i):Rr.default.createElement("div",{className:(0,Pa.default)(Qn.dappModalHeader,c)},Rr.default.createElement("div",{className:(0,Pa.default)(Qn.dappModalHeaderText,f)},t),Rr.default.createElement("button",{onClick:h,className:(0,Pa.default)(Qn.dappModalCloseButton,V.btn,V.btnLight,_)},Rr.default.createElement(Ph.FontAwesomeIcon,{size:"lg",icon:Ih.faTimes}))):null;var DI={showHeader:!0,showFooter:!1,headerText:"",footerText:""},Rl=({"data-testid":o="dappModal",children:t,className:i="dapp-modal-dialog-wrapper",config:c=DI,id:_="dapp-modal",onHide:f,parentElement:h,visible:b})=>{if(!b)return null;let{showHeader:w,showFooter:v,headerText:L,footerText:A,modalDialogClassName:E="dapp-modal-dialog",modalContentClassName:U="dapp-modal-dialog-content",modalHeaderClassName:M="dapp-modal-dialog-header",modalHeaderTextClassName:O="dapp-modal-dialog-header-text",modalCloseButtonClassName:ee="dapp-modal-dialog-close-button",modalBodyClassName:X="dapp-modal-dialog-content-body",modalFooterClassName:K="dapp-modal-dialog-footer",customModalHeader:G,customModalFooter:j}=c;return Nh.default.createPortal(Dr.default.createElement("div",{id:_,role:"dialog","aria-modal":"true",className:(0,El.default)(E,Qn.dappModal,i),"data-testid":o},Dr.default.createElement("div",{className:(0,El.default)(Qn.dappModalContent,U)},Dr.default.createElement(kl,{visible:w,headerText:L,customHeader:G,className:M,headerTextClassName:O,closeButtonClassName:ee,onHide:f}),Dr.default.createElement(Il,{className:X},t),Dr.default.createElement(Nl,{visible:v,customFooter:j,footerText:A,className:K}))),h!=null?h:document==null?void 0:document.body)};a();a();var Ns=require("react"),ks=o=>{let[t,i]=(0,Ns.useState)(!1),c=()=>{i(!0)},_=()=>{i(!1)};return(0,Ns.useEffect)(()=>{(o==null?void 0:o.visible)===!0?c():(o==null?void 0:o.visible)===!1&&_()},[o==null?void 0:o.visible]),{handleShowModal:c,handleHideModal:_,showModal:t}};a();var Na=({hideButtonWhenModalOpens:o,onContentHide:t,onContentShow:i,onModalCloses:c,onModalOpens:_,token:f,wrapContentInsideModal:h})=>{let b=Hf(),[w,v]=(0,kh.useState)(!1),{handleShowModal:L,handleHideModal:A,showModal:E}=ks(),U=ko(f),M=!o||!w,O=()=>{v(!1),t==null||t(),h?(A(),c==null||c()):c&&(console.warn('Deprecated: "onModalCloses" must be used only when "wrapContentInsideModal" is set to "true". Use "onContentHide" instead.'),c())};return{disabledConnectButton:U,handleCloseModal:O,handleOpenModal:()=>{if(b)throw new Error(wo);if(w)return O();v(!0),i==null||i(),h?(L(),_==null||_()):_&&(console.warn('Deprecated: "onModalOpens" must be used only when "wrapContentInsideModal" is set to "true". Use "onContentShow" instead.'),_())},shouldRenderButton:M,showContent:w,showModal:E}};a();var jt=require("react"),Ml=require("@multiversx/sdk-hw-provider");Gt();pn();ke();$e();Tr();a();a();Rp();a();a();var Dl=R(require("platform"));function Eh(){var o,t,i,c;return((t=(o=Dl.default)==null?void 0:o.os)==null?void 0:t.family)==="iOS"||((c=(i=Dl.default)==null?void 0:i.os)==null?void 0:c.family)==="Android"}a();a();a();a();a();function Rh(){return cl(le.getState())}a();a();a();a();$e();a();var Dh=()=>Boolean(window==null?void 0:window.elrondWallet);ua();yr();a();a();a();ke();a();a();var MI=R(require("axios"));a();var Xt=require("react"),BI=10,Mh=()=>{let[o,t]=(0,Xt.useState)(""),[i,c]=(0,Xt.useState)(!1),[_,f]=(0,Xt.useState)(0),[h,b]=(0,Xt.useState)([]),[w,v]=(0,Xt.useState)(null),[L,A]=(0,Xt.useState)(!1);return{accounts:h,defaultAddressesPerPage:BI,error:o,isLoading:i,onGoToNextPage:()=>{v(null),f(O=>O+1)},onGoToPrevPage:()=>{v(null),f(O=>O===0?0:O-1)},onSelectAddress:O=>{v(O)},selectedAddress:w,setAccounts:b,setError:t,setIsLoading:c,setShowAddressList:A,showAddressList:L,startIndex:_}};var Es="Check if the MultiversX App is open on Ledger",Bl=({callbackRoute:o,token:t,addressesPerPage:i,nativeAuth:c,onLoginRedirect:_})=>{let f=ne(zg),h=hn(),b=Ye(),w=Wn(),v=c!=null,L=No(c),A=t,{accounts:E,setAccounts:U,isLoading:M,setIsLoading:O,setShowAddressList:ee,showAddressList:X,startIndex:K,selectedAddress:G,onGoToPrevPage:j,onGoToNextPage:oe,onSelectAddress:ge,error:Re,setError:We,defaultAddressesPerPage:ue}=Mh(),Ve=i!=null?i:ue,[fe,Pe]=(0,jt.useState)(""),[Ze,_o]=(0,jt.useState)(!1),Je=({address:ye,index:be,signature:Z})=>{b(Ou({index:be,loginType:"ledger"})),Z&&L.setTokenLoginInfo({signature:Z,address:ye}),b(An({address:ye,loginMethod:"ledger"})),jo({callbackRoute:o,onLoginRedirect:_,options:{address:ye,signature:Z}})},Ce=(ye,be="")=>{var Le;let{errorMessage:Z,defaultErrorMessage:De}=$p(ye),Ae=(Le=Z!=null?Z:De)!=null?Le:Es;We(`${Ae}.${be}`),O(!1),b(Gp(null))},uo=()=>F(void 0,null,function*(){try{if(h instanceof Ml.HWProvider&&h.isInitialized())return yield h.isConnected()}catch(ye){Ce(ye)}return!1}),eo=()=>F(void 0,null,function*(){if(yield uo()){We(""),O(!1);return}try{let be=new Ml.HWProvider;(yield be.init())&&Po(be),We(""),O(!1)}catch(be){Ce(be)}}),an=()=>F(void 0,null,function*(){let ye=yield uo();if(!G||!ye)return Ce(Es);let{index:be}=G;if(v&&!A&&(A=yield L.getNativeAuthLoginToken(),!A)){console.warn("Fetching block failed. Login cancelled.");return}if(A){L.setLoginToken(A);try{let Z=yield h.tokenLogin({token:l.Buffer.from(`${A}{}`),addressIndex:be});Je({address:Z.address,index:be,signature:Z.signature.toString("hex")})}catch(Z){Ce(Z,". Update MultiversX App to continue.")}}else try{let Z=yield h.login({addressIndex:be});Je({address:Z,index:be})}catch(Z){return Ce(Z),!1}return!0}),xn=()=>F(void 0,null,function*(){try{if(O(!0),G==null)return!1;b(f?Eu(G):Gp(te(B({},G),{version:fe,hasContractDataEnabled:Ze}))),O(!1),yield an()}catch(ye){Ce(ye)}finally{O(!1)}return ee(!1),!0}),it=()=>F(void 0,null,function*(){if(!(yield uo()))return Ce(Re);try{O(!0);let be=yield h.getAccounts(K,Ve),Z=yield fl(h);Pe(Z.version),_o(Z.dataEnabled),U(be),O(!1)}catch(be){Ce(be)}}),Nn=()=>F(void 0,null,function*(){if(w)throw new Error(wo);We("");try{if(O(!0),yield eo(),!(yield uo()))return Ce(Es);if(f!=null){if(!G)return Ce(Es);let be=yield h.login({addressIndex:G.index.valueOf()});if(!be)return Ce("Login cancelled.");b(An({address:be,loginMethod:"ledger"})),jo({callbackRoute:o,onLoginRedirect:_})}else E!=null&&E.length||(yield it()),ee(!0)}catch(ye){Ce(ye)}finally{O(!1)}});(0,jt.useEffect)(()=>{eo()},[h]),(0,jt.useEffect)(()=>{it()},[K,X,h]),(0,jt.useEffect)(()=>{(E==null?void 0:E.length)>0&&!X&&ee(!0)},[E]);let sn=Boolean(Re);return[Nn,{loginFailed:sn,isLoggedIn:w&&!sn,error:Re,isLoading:M&&!sn},{accounts:E,showAddressList:X,startIndex:K,selectedAddress:G,version:fe,contractDataEnabled:Ze,onGoToPrevPage:j,onGoToNextPage:oe,onSelectAddress:ge,onConfirmSelectedAddress:xn}]};a();var Ol=require("react"),Bh=require("@multiversx/sdk-opera-provider");Gt();pn();$e();Tr();var Fl=({callbackRoute:o,token:t,nativeAuth:i,onLoginRedirect:c})=>{let[_,f]=(0,Ol.useState)(""),[h,b]=(0,Ol.useState)(!1),w=i!=null,v=No(i),L=t,A=Ye(),E=Wn();function U(){return F(this,null,function*(){if(E)throw new Error(wo);b(!0);let O=Bh.OperaProvider.getInstance();try{if(!(yield O.init())){console.warn("Something went wrong trying to redirect to wallet login..");return}let{origin:X}=ve(),K=Lr(),G=encodeURIComponent(`${X}${o!=null?o:K}`);if(w&&!L&&(L=yield v.getNativeAuthLoginToken(),!L)){console.warn("Fetching block failed. Login cancelled.");return}L&&v.setLoginToken(L);let j=B({callbackUrl:G},L&&{token:L});yield O.login(j),Po(O);let{signature:oe,address:ge}=O.account;if(!ge){b(!1),console.warn("Login cancelled.");return}oe&&L&&v.setTokenLoginInfo({signature:oe,address:ge}),A(An({address:ge,loginMethod:"opera"})),jo({callbackRoute:o,onLoginRedirect:c,options:{signature:oe,address:ge}})}catch(ee){console.error("error loging in",ee),f("error logging in"+ee.message)}finally{b(!1)}})}let M=Boolean(_);return[U,{loginFailed:M,error:_,isLoading:h&&!M,isLoggedIn:E&&!M}]};a();var po=require("react");pn();ke();$e();Tr();var ka=({callbackRoute:o,token:t,nativeAuth:i,onLoginRedirect:c,logoutRoute:_,canLoginRef:f})=>{var be;let h=Ye(),b=i!=null,w=No(i),v=t,[L,A]=(0,po.useState)(""),[E,U]=(0,po.useState)(""),[M,O]=(0,po.useState)(!0),[ee,X]=(0,po.useState)([]),K=hn(),G=ne(Xg),j=ne(jg),oe=ne(Yg),ge=ne(xa),Re=ne(Zg),We=ne(il),ue=(0,po.useRef)(K),Ve=f!=null?f:(0,po.useRef)(!1),fe=(0,po.useRef)(!1),Pe=(be=_!=null?_:We)!=null?be:"/",Ze=[ys.CANCEL_ACTION];t&&Ze.push(ys.SIGN_LOGIN_TOKEN),b&&Ze.push(ys.SIGN_NATIVE_AUTH_TOKEN);let _o=M?"":`${Re}?wallet-connect=${encodeURIComponent(E)}`,Je=Boolean(L),Ce=Wn(),uo=()=>{xl(Pe)},eo=Z=>{console.log("WalletConnect Session Event: ",Z)},an=()=>F(void 0,null,function*(){var Z,De,Ae;try{let Le=ue.current;if(Wn()||Le==null||!et("walletconnectv2")||fe.current)return;if(!Ve.current){try{yield(Z=ue.current)==null?void 0:Z.logout()}catch(go){console.warn("Unable to logout")}return}let no=yield(De=ue.current)==null?void 0:De.getAddress();if(!no){console.warn("Login cancelled.");return}let _n=yield(Ae=ue.current)==null?void 0:Ae.getSignature(),At={address:no,loginMethod:"walletconnectv2"},zs={logoutRoute:Pe,loginType:"walletconnectv2",callbackRoute:o!=null?o:ve().href};h(Bu(zs)),_n&&w.setTokenLoginInfo({signature:_n,address:no}),h(An(At)),jo({callbackRoute:o,onLoginRedirect:c,options:{address:no,signature:_n}})}catch(Le){A("User rejected connection proposal"),console.error(Le)}}),xn=()=>F(void 0,null,function*(){var Z,De,Ae,Le,kn;Ve.current=!1;try{((Le=(Ae=(De=(Z=ue.current)==null?void 0:Z.walletConnector)==null?void 0:De.session)==null?void 0:Ae.getAll())!=null?Le:[]).length>0&&(yield(kn=ue.current)==null?void 0:kn.logout())}catch(no){console.warn("Unable to logout")}}),it=Z=>F(void 0,null,function*(){var De,Ae,Le;if(!G||!j){A("Invalid WalletConnect setup");return}if(!Z||!Z.topic){A("Expired connection");return}try{let{approval:kn}=yield(De=ue.current)==null?void 0:De.connect({topic:Z.topic,methods:Ze});if(b&&!v&&(v=yield w.getNativeAuthLoginToken(),!v)){console.warn("Fetching block failed. Login cancelled.");return}v&&w.setLoginToken(v);try{yield(Ae=ue.current)==null?void 0:Ae.login({approval:kn,token:v})}catch(no){A("User rejected existing connection proposal"),O(!0),yield sn()}}catch(kn){console.error("Unable to connect to existing session",kn),A("Unable to connect to existing session")}finally{X((Le=ue.current)==null?void 0:Le.pairings)}}),Nn=Z=>F(void 0,null,function*(){var De,Ae;try{Z&&(yield(De=ue.current)==null?void 0:De.logout({topic:Z}))}catch(Le){console.error("Unable to remove existing pairing",Le),A("Unable to remove existing pairing")}finally{let Le=yield(Ae=ue.current)==null?void 0:Ae.getPairings();X(Le)}});function sn(Z=!0){return F(this,null,function*(){var Le;if(!j||!G){A("Invalid WalletConnect setup");return}if(fe.current)return;if(fe.current=!0,(Le=ue.current)!=null&&Le.walletConnector){ue.current.init(),Po(ue.current),fe.current=!1,Ve.current=!0,Z&&ye();return}let De={onClientLogin:an,onClientLogout:uo,onClientEvent:eo},Ae=new Ts(De,ge,G,j,oe);yield Ae.init(),Po(Ae),ue.current=Ae,fe.current=!1,Ve.current=!0,Z&&(X(Ae.pairings),ye())})}function ye(){return F(this,null,function*(){var Z,De;if(!G||!j){A("Invalid WalletConnect setup");return}try{let{uri:Ae,approval:Le}=yield(Z=ue.current)==null?void 0:Z.connect({methods:Ze});if(!Boolean(Ae))return;if(U(Ae),(oe==null?void 0:oe.logger)==="debug"&&console.log("WalletConnect uri: ",Ae),b&&!v&&(v=yield w.getNativeAuthLoginToken(),!v)){console.warn("Fetching block failed. Login cancelled.");return}v&&w.setLoginToken(v);try{yield(De=ue.current)==null?void 0:De.login({approval:Le,token:v})}catch(no){A("User rejected connection proposal"),O(!0),yield sn()}}catch(Ae){console.error("Unable to connect",Ae)}})}return _l(()=>{!t||ye()},[t]),_l(()=>{ue.current=K},[K]),(0,po.useEffect)(()=>{O(!Boolean(E))},[E]),[sn,{error:L,loginFailed:Je,isLoading:M&&!Je,isLoggedIn:Ce&&!Je},{uriDeepLink:_o,walletConnectUri:E,cancelLogin:xn,connectExisting:it,removeExistingPairing:Nn,wcPairings:ee}]};a();var Wl=require("react");Gt();ke();a();var Oh=(o,t=["address"])=>{let i=new URL(o),c=new URLSearchParams(i.search);t.forEach(h=>c.delete(h));let _=Array.from(c.values()).length>0?"?":"",f=i.pathname==="/"&&!o.endsWith("/")?"":i.pathname;return i.protocol==="vscode:"?o:`${i.origin}${f}${_}${c.toString()}${i.hash}`};var Ul=({callbackRoute:o,token:t,nativeAuth:i,redirectDelayMilliseconds:c=100,customWalletAddress:_})=>{let[f,h]=(0,Wl.useState)(""),[b,w]=(0,Wl.useState)(!1),v=ne(Jn),L=Ye(),A=Wn(),E=Boolean(i),U=No(i),M=t;function O(){return F(this,null,function*(){if(A)throw new Error(wo);L(Qu(_));try{w(!0);let X=gl(_!=null?_:v.walletAddress),K=new Date,G=K.setMinutes(K.getMinutes()+3)/1e3,j={data:{},expires:G};if(E&&!M&&(M=yield U.getNativeAuthLoginToken(),!M)){console.warn("Login cancelled.");return}M&&U.setLoginToken(M);let{origin:oe}=ve(),ge=window!=null&&window.location?`${oe}${o}`:`${o}`;new URLSearchParams(document==null?void 0:document.location.search).get("address")||L(Fu(j));let ue=Oh(ge),Ve=encodeURIComponent(ue),fe=te(B({callbackUrl:Ve},M&&{token:M}),{redirectDelayMilliseconds:c});yield X.login(fe)}catch(X){console.error(X),h("error logging in"+X.message)}finally{w(!1)}})}let ee=Boolean(f);return[O,{error:f,loginFailed:ee,isLoading:b&&!ee,isLoggedIn:A&&!ee}]};a();a();var Fh=require("react");a();var WI=require("react");a();var Gl=require("react"),FI=require("socket.io-client");ke();a();a();a();var UI=require("react");on();a();a();a();var $I=R(require("swr"));a();a();a();a();var HI=R(require("axios"));a();a();var Ds=R(require("react")),$l=R(require("classnames"));ae();a();var Hl=R(require("react")),Uh=R(require("classnames"));a();var zI=`.dapp-core-component__loginButtonStyles__default-login-button {
|
|
2782
2782
|
color: inherit;
|
|
2783
2783
|
}
|
|
2784
2784
|
|