@reown/appkit-cdn 1.8.15-e95f0d61c614677233e13ea9f055d3f75fcdba81.0 → 1.8.15-viem-upgrade.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +10 -10
- package/dist/ConstantsUtil-C2Ed2H2U.js +0 -24
- package/dist/ConstantsUtil-C2Ed2H2U.js.map +0 -1
- package/dist/ExchangeController-h_95bqSB.js +0 -265
- package/dist/ExchangeController-h_95bqSB.js.map +0 -1
- package/dist/HelpersUtil-xYeUfp1A.js +0 -141
- package/dist/HelpersUtil-xYeUfp1A.js.map +0 -1
- package/dist/NavigationUtil-Ci15WS4K.js +0 -9
- package/dist/NavigationUtil-Ci15WS4K.js.map +0 -1
- package/dist/PhArrowCircleDown-B41iUlWV.js +0 -74
- package/dist/PhArrowCircleDown-B41iUlWV.js.map +0 -1
- package/dist/PhArrowClockwise-BY8u5n41.js +0 -74
- package/dist/PhArrowClockwise-BY8u5n41.js.map +0 -1
- package/dist/PhArrowDown-ClD8GZ65.js +0 -74
- package/dist/PhArrowDown-ClD8GZ65.js.map +0 -1
- package/dist/PhArrowLeft-B8MXUz60.js +0 -74
- package/dist/PhArrowLeft-B8MXUz60.js.map +0 -1
- package/dist/PhArrowRight-Cewa_Slb.js +0 -74
- package/dist/PhArrowRight-Cewa_Slb.js.map +0 -1
- package/dist/PhArrowSquareOut-whgWh-lD.js +0 -74
- package/dist/PhArrowSquareOut-whgWh-lD.js.map +0 -1
- package/dist/PhArrowUp-B1HXBxie.js +0 -74
- package/dist/PhArrowUp-B1HXBxie.js.map +0 -1
- package/dist/PhArrowUpRight-CfFYe4FP.js +0 -74
- package/dist/PhArrowUpRight-CfFYe4FP.js.map +0 -1
- package/dist/PhArrowsClockwise-gL1Gkrtx.js +0 -74
- package/dist/PhArrowsClockwise-gL1Gkrtx.js.map +0 -1
- package/dist/PhArrowsDownUp-BqUEdUQr.js +0 -74
- package/dist/PhArrowsDownUp-BqUEdUQr.js.map +0 -1
- package/dist/PhArrowsLeftRight-BlZU63eY.js +0 -74
- package/dist/PhArrowsLeftRight-BlZU63eY.js.map +0 -1
- package/dist/PhBank-gbg_jlI7.js +0 -74
- package/dist/PhBank-gbg_jlI7.js.map +0 -1
- package/dist/PhBrowser-CMlD-YJw.js +0 -74
- package/dist/PhBrowser-CMlD-YJw.js.map +0 -1
- package/dist/PhCaretDown-3agTO8Jp.js +0 -74
- package/dist/PhCaretDown-3agTO8Jp.js.map +0 -1
- package/dist/PhCaretLeft-_MTni7Z5.js +0 -74
- package/dist/PhCaretLeft-_MTni7Z5.js.map +0 -1
- package/dist/PhCaretRight-Ci9fAHPG.js +0 -74
- package/dist/PhCaretRight-Ci9fAHPG.js.map +0 -1
- package/dist/PhCaretUp-vFG4Fame.js +0 -74
- package/dist/PhCaretUp-vFG4Fame.js.map +0 -1
- package/dist/PhCheck-mChGK6K_.js +0 -74
- package/dist/PhCheck-mChGK6K_.js.map +0 -1
- package/dist/PhCircleHalf-DZ7-vfxf.js +0 -74
- package/dist/PhCircleHalf-DZ7-vfxf.js.map +0 -1
- package/dist/PhClock-Bc5XWXb6.js +0 -74
- package/dist/PhClock-Bc5XWXb6.js.map +0 -1
- package/dist/PhCompass-Cu2MB-55.js +0 -74
- package/dist/PhCompass-Cu2MB-55.js.map +0 -1
- package/dist/PhCopy-BGUjyTts.js +0 -74
- package/dist/PhCopy-BGUjyTts.js.map +0 -1
- package/dist/PhCreditCard-vxFWID4B.js +0 -74
- package/dist/PhCreditCard-vxFWID4B.js.map +0 -1
- package/dist/PhCurrencyDollar-BfOoDhJr.js +0 -74
- package/dist/PhCurrencyDollar-BfOoDhJr.js.map +0 -1
- package/dist/PhDesktop-Cq6jwzbS.js +0 -74
- package/dist/PhDesktop-Cq6jwzbS.js.map +0 -1
- package/dist/PhDeviceMobile-BCtTp6jj.js +0 -74
- package/dist/PhDeviceMobile-BCtTp6jj.js.map +0 -1
- package/dist/PhDotsThree-BGgD-WIO.js +0 -74
- package/dist/PhDotsThree-BGgD-WIO.js.map +0 -1
- package/dist/PhEnvelope-CQiV0-zG.js +0 -74
- package/dist/PhEnvelope-CQiV0-zG.js.map +0 -1
- package/dist/PhFunnelSimple-BHGtxTNf.js +0 -74
- package/dist/PhFunnelSimple-BHGtxTNf.js.map +0 -1
- package/dist/PhGlobe-Q8oVkf6X.js +0 -74
- package/dist/PhGlobe-Q8oVkf6X.js.map +0 -1
- package/dist/PhIdentificationCard-Cz9LzvVR.js +0 -74
- package/dist/PhIdentificationCard-Cz9LzvVR.js.map +0 -1
- package/dist/PhImage-CP5_qKk-.js +0 -74
- package/dist/PhImage-CP5_qKk-.js.map +0 -1
- package/dist/PhInfo-CTlE1X9Z.js +0 -74
- package/dist/PhInfo-CTlE1X9Z.js.map +0 -1
- package/dist/PhLightbulb-CcLpnAAb.js +0 -74
- package/dist/PhLightbulb-CcLpnAAb.js.map +0 -1
- package/dist/PhMagnifyingGlass-n58GUAck.js +0 -74
- package/dist/PhMagnifyingGlass-n58GUAck.js.map +0 -1
- package/dist/PhPaperPlaneRight-C0sf2XV8.js +0 -74
- package/dist/PhPaperPlaneRight-C0sf2XV8.js.map +0 -1
- package/dist/PhPlus-BJxvt7Uc.js +0 -74
- package/dist/PhPlus-BJxvt7Uc.js.map +0 -1
- package/dist/PhPower-BvktxO2-.js +0 -74
- package/dist/PhPower-BvktxO2-.js.map +0 -1
- package/dist/PhPuzzlePiece-CDDyUPYo.js +0 -74
- package/dist/PhPuzzlePiece-CDDyUPYo.js.map +0 -1
- package/dist/PhQrCode-BlGI8529.js +0 -74
- package/dist/PhQrCode-BlGI8529.js.map +0 -1
- package/dist/PhQuestion-DGZj6iDZ.js +0 -74
- package/dist/PhQuestion-DGZj6iDZ.js.map +0 -1
- package/dist/PhQuestionMark-CTmeI7MQ.js +0 -74
- package/dist/PhQuestionMark-CTmeI7MQ.js.map +0 -1
- package/dist/PhSealCheck-BSlqkxnH.js +0 -74
- package/dist/PhSealCheck-BSlqkxnH.js.map +0 -1
- package/dist/PhSignOut-CEXxlRk3.js +0 -74
- package/dist/PhSignOut-CEXxlRk3.js.map +0 -1
- package/dist/PhSpinner-Do1pY8fG.js +0 -74
- package/dist/PhSpinner-Do1pY8fG.js.map +0 -1
- package/dist/PhTrash-JNKavmpg.js +0 -74
- package/dist/PhTrash-JNKavmpg.js.map +0 -1
- package/dist/PhUser-BW7E-xYg.js +0 -74
- package/dist/PhUser-BW7E-xYg.js.map +0 -1
- package/dist/PhVault-mzxUgBYN.js +0 -74
- package/dist/PhVault-mzxUgBYN.js.map +0 -1
- package/dist/PhWallet-BR9JThKU.js +0 -74
- package/dist/PhWallet-BR9JThKU.js.map +0 -1
- package/dist/PhWarning-DxuQ70WM.js +0 -74
- package/dist/PhWarning-DxuQ70WM.js.map +0 -1
- package/dist/PhWarningCircle-DCI0JC1F.js +0 -74
- package/dist/PhWarningCircle-DCI0JC1F.js.map +0 -1
- package/dist/PhX-CWNXqpGn.js +0 -74
- package/dist/PhX-CWNXqpGn.js.map +0 -1
- package/dist/SwapController-CwWMKLPL.js +0 -684
- package/dist/SwapController-CwWMKLPL.js.map +0 -1
- package/dist/WebCryptoP256-B0F1BoHd.js +0 -3299
- package/dist/WebCryptoP256-B0F1BoHd.js.map +0 -1
- package/dist/add-emiZFWKE.js +0 -20
- package/dist/add-emiZFWKE.js.map +0 -1
- package/dist/all-wallets-BsUQMPgW.js +0 -11
- package/dist/all-wallets-BsUQMPgW.js.map +0 -1
- package/dist/app-store-C_L7BoYc.js +0 -22
- package/dist/app-store-C_L7BoYc.js.map +0 -1
- package/dist/appkit-DY7XpK4K.js +0 -118074
- package/dist/appkit-DY7XpK4K.js.map +0 -1
- package/dist/appkit.js +0 -11
- package/dist/appkit.js.map +0 -1
- package/dist/apple-c3IhsqlY.js +0 -23
- package/dist/apple-c3IhsqlY.js.map +0 -1
- package/dist/arrow-bottom-BZnD_9In.js +0 -13
- package/dist/arrow-bottom-BZnD_9In.js.map +0 -1
- package/dist/arrow-bottom-circle-C9HRc3sW.js +0 -16
- package/dist/arrow-bottom-circle-C9HRc3sW.js.map +0 -1
- package/dist/arrow-left-DFlXkOXB.js +0 -13
- package/dist/arrow-left-DFlXkOXB.js.map +0 -1
- package/dist/arrow-right-_EPGORWI.js +0 -13
- package/dist/arrow-right-_EPGORWI.js.map +0 -1
- package/dist/arrow-top-CrBCvUsj.js +0 -13
- package/dist/arrow-top-CrBCvUsj.js.map +0 -1
- package/dist/async-directive-CEBoIWb8.js +0 -73
- package/dist/async-directive-CEBoIWb8.js.map +0 -1
- package/dist/bank-IrtkQnW0.js +0 -19
- package/dist/bank-IrtkQnW0.js.map +0 -1
- package/dist/basic-CCVK4Xb-.js +0 -4914
- package/dist/basic-CCVK4Xb-.js.map +0 -1
- package/dist/browser-5XoTmr4n.js +0 -1991
- package/dist/browser-5XoTmr4n.js.map +0 -1
- package/dist/browser-DGJ1T57R.js +0 -19
- package/dist/browser-DGJ1T57R.js.map +0 -1
- package/dist/card-euIrImBb.js +0 -19
- package/dist/card-euIrImBb.js.map +0 -1
- package/dist/ccip-BnHcw2Q9.js +0 -164
- package/dist/ccip-BnHcw2Q9.js.map +0 -1
- package/dist/checkmark-DOfVZz7v.js +0 -16
- package/dist/checkmark-DOfVZz7v.js.map +0 -1
- package/dist/checkmark-bold-CBk9rneH.js +0 -13
- package/dist/checkmark-bold-CBk9rneH.js.map +0 -1
- package/dist/chevron-bottom-DqxWxVi0.js +0 -13
- package/dist/chevron-bottom-DqxWxVi0.js.map +0 -1
- package/dist/chevron-left-JKsYvrX0.js +0 -13
- package/dist/chevron-left-JKsYvrX0.js.map +0 -1
- package/dist/chevron-right-0IHVmnlN.js +0 -13
- package/dist/chevron-right-0IHVmnlN.js.map +0 -1
- package/dist/chevron-top-q1UXuE7C.js +0 -13
- package/dist/chevron-top-q1UXuE7C.js.map +0 -1
- package/dist/chrome-store-C1gUHLGC.js +0 -66
- package/dist/chrome-store-C1gUHLGC.js.map +0 -1
- package/dist/class-map-CqyLxUs0.js +0 -101
- package/dist/class-map-CqyLxUs0.js.map +0 -1
- package/dist/clock-CRgBEN3N.js +0 -13
- package/dist/clock-CRgBEN3N.js.map +0 -1
- package/dist/close-DqwtanuV.js +0 -13
- package/dist/close-DqwtanuV.js.map +0 -1
- package/dist/clsx.m-D57qXwfE.js +0 -21
- package/dist/clsx.m-D57qXwfE.js.map +0 -1
- package/dist/coinPlaceholder-DGuEyon3.js +0 -13
- package/dist/coinPlaceholder-DGuEyon3.js.map +0 -1
- package/dist/compass-D3Lk_JmD.js +0 -13
- package/dist/compass-D3Lk_JmD.js.map +0 -1
- package/dist/copy-0bHy8N_r.js +0 -20
- package/dist/copy-0bHy8N_r.js.map +0 -1
- package/dist/core-C111yg8v.js +0 -16288
- package/dist/core-C111yg8v.js.map +0 -1
- package/dist/cursor-Bnlh8YKu.js +0 -8
- package/dist/cursor-Bnlh8YKu.js.map +0 -1
- package/dist/cursor-transparent-BqTVTA3D.js +0 -17
- package/dist/cursor-transparent-BqTVTA3D.js.map +0 -1
- package/dist/data-capture-BtdmOx65.js +0 -549
- package/dist/data-capture-BtdmOx65.js.map +0 -1
- package/dist/desktop-BKaI6I0c.js +0 -14
- package/dist/desktop-BKaI6I0c.js.map +0 -1
- package/dist/disconnect-CJtwIHdJ.js +0 -13
- package/dist/disconnect-CJtwIHdJ.js.map +0 -1
- package/dist/discord-oHqb6ClE.js +0 -22
- package/dist/discord-oHqb6ClE.js.map +0 -1
- package/dist/email-9QNGgeQQ.js +0 -421
- package/dist/email-9QNGgeQQ.js.map +0 -1
- package/dist/embedded-wallet-C_CLs-ZL.js +0 -952
- package/dist/embedded-wallet-C_CLs-ZL.js.map +0 -1
- package/dist/etherscan-Dkkz1Mfh.js +0 -11
- package/dist/etherscan-Dkkz1Mfh.js.map +0 -1
- package/dist/exclamation-triangle-BQbUCEhi.js +0 -9
- package/dist/exclamation-triangle-BQbUCEhi.js.map +0 -1
- package/dist/extension-C2hKzEZZ.js +0 -13
- package/dist/extension-C2hKzEZZ.js.map +0 -1
- package/dist/external-link-CIjsnb3X.js +0 -13
- package/dist/external-link-CIjsnb3X.js.map +0 -1
- package/dist/facebook-1Hufe3sI.js +0 -31
- package/dist/facebook-1Hufe3sI.js.map +0 -1
- package/dist/farcaster-DlSxA8AD.js +0 -17
- package/dist/farcaster-DlSxA8AD.js.map +0 -1
- package/dist/features-CubAsZN1.js +0 -319
- package/dist/features-CubAsZN1.js.map +0 -1
- package/dist/filters-Bx5zOyri.js +0 -13
- package/dist/filters-Bx5zOyri.js.map +0 -1
- package/dist/github-CT_NtR6h.js +0 -23
- package/dist/github-CT_NtR6h.js.map +0 -1
- package/dist/google-Dkv0ZPY6.js +0 -23
- package/dist/google-Dkv0ZPY6.js.map +0 -1
- package/dist/hashTypedData-Q6QDIxse.js +0 -262
- package/dist/hashTypedData-Q6QDIxse.js.map +0 -1
- package/dist/help-circle-Dh0SYux9.js +0 -17
- package/dist/help-circle-Dh0SYux9.js.map +0 -1
- package/dist/id-Dc_gfIHE.js +0 -17
- package/dist/id-Dc_gfIHE.js.map +0 -1
- package/dist/if-defined-B5CxFQec.js +0 -11
- package/dist/if-defined-B5CxFQec.js.map +0 -1
- package/dist/image-DPwaTi09.js +0 -9
- package/dist/image-DPwaTi09.js.map +0 -1
- package/dist/index-AsDH-m9e.js +0 -456
- package/dist/index-AsDH-m9e.js.map +0 -1
- package/dist/index-B-AePZns.js +0 -1514
- package/dist/index-B-AePZns.js.map +0 -1
- package/dist/index-B0nuzWGd.js +0 -153
- package/dist/index-B0nuzWGd.js.map +0 -1
- package/dist/index-BFK8rn8f.js +0 -985
- package/dist/index-BFK8rn8f.js.map +0 -1
- package/dist/index-BGtDVhOX.js +0 -218
- package/dist/index-BGtDVhOX.js.map +0 -1
- package/dist/index-BXRoNn9X.js +0 -147
- package/dist/index-BXRoNn9X.js.map +0 -1
- package/dist/index-BYnWTIsP.js +0 -257
- package/dist/index-BYnWTIsP.js.map +0 -1
- package/dist/index-B_yrV2-r.js +0 -7258
- package/dist/index-B_yrV2-r.js.map +0 -1
- package/dist/index-BcCvzVg5.js +0 -716
- package/dist/index-BcCvzVg5.js.map +0 -1
- package/dist/index-BeSFhM_p.js +0 -120
- package/dist/index-BeSFhM_p.js.map +0 -1
- package/dist/index-BgnNrRDq.js +0 -967
- package/dist/index-BgnNrRDq.js.map +0 -1
- package/dist/index-BqpTTobE.js +0 -984
- package/dist/index-BqpTTobE.js.map +0 -1
- package/dist/index-BxPoDEMu.js +0 -7481
- package/dist/index-BxPoDEMu.js.map +0 -1
- package/dist/index-ByLuz3My.js +0 -182
- package/dist/index-ByLuz3My.js.map +0 -1
- package/dist/index-BzPjzg08.js +0 -62
- package/dist/index-BzPjzg08.js.map +0 -1
- package/dist/index-C2E-8AS5.js +0 -249
- package/dist/index-C2E-8AS5.js.map +0 -1
- package/dist/index-C4icMnjM.js +0 -521
- package/dist/index-C4icMnjM.js.map +0 -1
- package/dist/index-C8av2G6v.js +0 -136
- package/dist/index-C8av2G6v.js.map +0 -1
- package/dist/index-CE9D5nR3.js +0 -441
- package/dist/index-CE9D5nR3.js.map +0 -1
- package/dist/index-CI83C2eb.js +0 -124
- package/dist/index-CI83C2eb.js.map +0 -1
- package/dist/index-CK8vtUMI.js +0 -181
- package/dist/index-CK8vtUMI.js.map +0 -1
- package/dist/index-CY_gr4c7.js +0 -286
- package/dist/index-CY_gr4c7.js.map +0 -1
- package/dist/index-CZmyXVNe.js +0 -198
- package/dist/index-CZmyXVNe.js.map +0 -1
- package/dist/index-CemyBXIP.js +0 -8825
- package/dist/index-CemyBXIP.js.map +0 -1
- package/dist/index-CkrKEace.js +0 -180
- package/dist/index-CkrKEace.js.map +0 -1
- package/dist/index-Cl94CXn7.js +0 -110
- package/dist/index-Cl94CXn7.js.map +0 -1
- package/dist/index-CwK6o8Hz.js +0 -18322
- package/dist/index-CwK6o8Hz.js.map +0 -1
- package/dist/index-Cy1DAN6W.js +0 -542
- package/dist/index-Cy1DAN6W.js.map +0 -1
- package/dist/index-CziMS40-.js +0 -281
- package/dist/index-CziMS40-.js.map +0 -1
- package/dist/index-D6qUKJRD.js +0 -1178
- package/dist/index-D6qUKJRD.js.map +0 -1
- package/dist/index-DDYN4XOm.js +0 -211
- package/dist/index-DDYN4XOm.js.map +0 -1
- package/dist/index-DHcBAN0Q.js +0 -9350
- package/dist/index-DHcBAN0Q.js.map +0 -1
- package/dist/index-DPEv06yg.js +0 -520
- package/dist/index-DPEv06yg.js.map +0 -1
- package/dist/index-DShG1B5f.js +0 -131
- package/dist/index-DShG1B5f.js.map +0 -1
- package/dist/index-DTOiAL1i.js +0 -52
- package/dist/index-DTOiAL1i.js.map +0 -1
- package/dist/index-DVyI9O5i.js +0 -92
- package/dist/index-DVyI9O5i.js.map +0 -1
- package/dist/index-DvXemhcG.js +0 -611
- package/dist/index-DvXemhcG.js.map +0 -1
- package/dist/index-Fvw4sbfL.js +0 -198
- package/dist/index-Fvw4sbfL.js.map +0 -1
- package/dist/index-PiXpeN5n.js +0 -3987
- package/dist/index-PiXpeN5n.js.map +0 -1
- package/dist/index-btvyw5xW.js +0 -126
- package/dist/index-btvyw5xW.js.map +0 -1
- package/dist/index-dsKNiJml.js +0 -70
- package/dist/index-dsKNiJml.js.map +0 -1
- package/dist/index-gEaD8hfK.js +0 -109
- package/dist/index-gEaD8hfK.js.map +0 -1
- package/dist/index-isOxTzum.js +0 -147
- package/dist/index-isOxTzum.js.map +0 -1
- package/dist/index-nWSgWKaF.js +0 -2277
- package/dist/index-nWSgWKaF.js.map +0 -1
- package/dist/index-qQiVpif7.js +0 -1372
- package/dist/index-qQiVpif7.js.map +0 -1
- package/dist/index-tv-dalA1.js +0 -73
- package/dist/index-tv-dalA1.js.map +0 -1
- package/dist/index.es-BzCqYMc8.js +0 -8391
- package/dist/index.es-BzCqYMc8.js.map +0 -1
- package/dist/info-4ssFoXJS.js +0 -8
- package/dist/info-4ssFoXJS.js.map +0 -1
- package/dist/info-circle-BnqHwvcX.js +0 -17
- package/dist/info-circle-BnqHwvcX.js.map +0 -1
- package/dist/jsxRuntime.module-CWsrm3KZ.js +0 -14
- package/dist/jsxRuntime.module-CWsrm3KZ.js.map +0 -1
- package/dist/lightbulb-BEEbBBZQ.js +0 -8
- package/dist/lightbulb-BEEbBBZQ.js.map +0 -1
- package/dist/localBatchGatewayRequest-Dryp85EG.js +0 -103
- package/dist/localBatchGatewayRequest-Dryp85EG.js.map +0 -1
- package/dist/mail-CJLCh290.js +0 -13
- package/dist/mail-CJLCh290.js.map +0 -1
- package/dist/metamask-sdk-4u4X6Xn3.js +0 -16699
- package/dist/metamask-sdk-4u4X6Xn3.js.map +0 -1
- package/dist/mobile-Deau0Za4.js +0 -14
- package/dist/mobile-Deau0Za4.js.map +0 -1
- package/dist/more-BeXo-Pwn.js +0 -16
- package/dist/more-BeXo-Pwn.js.map +0 -1
- package/dist/native-DOlbMZnh.js +0 -17
- package/dist/native-DOlbMZnh.js.map +0 -1
- package/dist/network-placeholder-BoityKSt.js +0 -19
- package/dist/network-placeholder-BoityKSt.js.map +0 -1
- package/dist/nftPlaceholder-PTHT5Ulj.js +0 -13
- package/dist/nftPlaceholder-PTHT5Ulj.js.map +0 -1
- package/dist/off-BWWypY2E.js +0 -13
- package/dist/off-BWWypY2E.js.map +0 -1
- package/dist/onramp-DnL6ChSq.js +0 -979
- package/dist/onramp-DnL6ChSq.js.map +0 -1
- package/dist/parseAbiParameters-DfJcIE_w.js +0 -757
- package/dist/parseAbiParameters-DfJcIE_w.js.map +0 -1
- package/dist/parseSignature-CxTkG24t.js +0 -4690
- package/dist/parseSignature-CxTkG24t.js.map +0 -1
- package/dist/pay-with-exchange-CpuGLivJ.js +0 -603
- package/dist/pay-with-exchange-CpuGLivJ.js.map +0 -1
- package/dist/play-store-DkxQRJyA.js +0 -37
- package/dist/play-store-DkxQRJyA.js.map +0 -1
- package/dist/plus-DaGtBhNd.js +0 -18
- package/dist/plus-DaGtBhNd.js.map +0 -1
- package/dist/property-8UcTqffH.js +0 -623
- package/dist/property-8UcTqffH.js.map +0 -1
- package/dist/qr-code-DGvMTPaF.js +0 -11
- package/dist/qr-code-DGvMTPaF.js.map +0 -1
- package/dist/receive-CVWmkRpl.js +0 -262
- package/dist/receive-CVWmkRpl.js.map +0 -1
- package/dist/recycle-horizontal-DDVEtj7J.js +0 -14
- package/dist/recycle-horizontal-DDVEtj7J.js.map +0 -1
- package/dist/ref-DAjgVrGH.js +0 -43
- package/dist/ref-DAjgVrGH.js.map +0 -1
- package/dist/refresh-BmNFE8Pg.js +0 -13
- package/dist/refresh-BmNFE8Pg.js.map +0 -1
- package/dist/reown-logo-B-UO-SeO.js +0 -17
- package/dist/reown-logo-B-UO-SeO.js.map +0 -1
- package/dist/search-DR_B_4SQ.js +0 -13
- package/dist/search-DR_B_4SQ.js.map +0 -1
- package/dist/secp256k1-DnXqhCKw.js +0 -2031
- package/dist/secp256k1-DnXqhCKw.js.map +0 -1
- package/dist/send-BNU8VrfM.js +0 -20
- package/dist/send-BNU8VrfM.js.map +0 -1
- package/dist/send-DHzM4I8V.js +0 -1365
- package/dist/send-DHzM4I8V.js.map +0 -1
- package/dist/socials-DsoFf1B8.js +0 -796
- package/dist/socials-DsoFf1B8.js.map +0 -1
- package/dist/swapHorizontal-BQOjfwRW.js +0 -13
- package/dist/swapHorizontal-BQOjfwRW.js.map +0 -1
- package/dist/swapHorizontalBold-DMKR9Zys.js +0 -13
- package/dist/swapHorizontalBold-DMKR9Zys.js.map +0 -1
- package/dist/swapHorizontalMedium-DVsqt18q.js +0 -21
- package/dist/swapHorizontalMedium-DVsqt18q.js.map +0 -1
- package/dist/swapHorizontalRoundedBold-CM5U-o8X.js +0 -13
- package/dist/swapHorizontalRoundedBold-CM5U-o8X.js.map +0 -1
- package/dist/swapVertical-P9UnfCR-.js +0 -13
- package/dist/swapVertical-P9UnfCR-.js.map +0 -1
- package/dist/swaps-F0roy6mK.js +0 -2121
- package/dist/swaps-F0roy6mK.js.map +0 -1
- package/dist/telegram-Bd4DGbnk.js +0 -21
- package/dist/telegram-Bd4DGbnk.js.map +0 -1
- package/dist/three-dots-M94oc7-3.js +0 -10
- package/dist/three-dots-M94oc7-3.js.map +0 -1
- package/dist/transactions-DwtZvXx1.js +0 -38
- package/dist/transactions-DwtZvXx1.js.map +0 -1
- package/dist/twitch--lJ-X_Y6.js +0 -23
- package/dist/twitch--lJ-X_Y6.js.map +0 -1
- package/dist/twitterIcon-DDp_lnzc.js +0 -11
- package/dist/twitterIcon-DDp_lnzc.js.map +0 -1
- package/dist/vanilla-CgG5xMJO.js +0 -448
- package/dist/vanilla-CgG5xMJO.js.map +0 -1
- package/dist/verify-Doojt-tK.js +0 -13
- package/dist/verify-Doojt-tK.js.map +0 -1
- package/dist/verify-filled-EHdbo2B7.js +0 -13
- package/dist/verify-filled-EHdbo2B7.js.map +0 -1
- package/dist/w3m-modal-CVsid-gN.js +0 -1725
- package/dist/w3m-modal-CVsid-gN.js.map +0 -1
- package/dist/w3m-modal-CZ4s4A2R.js +0 -2008
- package/dist/w3m-modal-CZ4s4A2R.js.map +0 -1
- package/dist/wallet-CowxEORz.js +0 -13
- package/dist/wallet-CowxEORz.js.map +0 -1
- package/dist/wallet-placeholder-B7p7Oae2.js +0 -19
- package/dist/wallet-placeholder-B7p7Oae2.js.map +0 -1
- package/dist/wallet-standard-BUMbKbZo.js +0 -523
- package/dist/wallet-standard-BUMbKbZo.js.map +0 -1
- package/dist/walletconnect-CKMr88Pk.js +0 -39
- package/dist/walletconnect-CKMr88Pk.js.map +0 -1
- package/dist/warning-circle-CjIPgJnm.js +0 -17
- package/dist/warning-circle-CjIPgJnm.js.map +0 -1
- package/dist/x-CaxhfhgU.js +0 -17
- package/dist/x-CaxhfhgU.js.map +0 -1
package/dist/index-B-AePZns.js
DELETED
|
@@ -1,1514 +0,0 @@
|
|
|
1
|
-
import { b7 as getDefaultExportFromCjs, b8 as commonjsGlobal, m as css, o as i, x, r as resetStyles, C as ChainController, b9 as TransactionsController, a as CoreHelperUtil, R as RouterController, O as OptionsController, E as EventsController, y as getPreferredAccountType, W as W3mFrameRpcConstants } from "./appkit-DY7XpK4K.js";
|
|
2
|
-
import { n, r } from "./class-map-CqyLxUs0.js";
|
|
3
|
-
import { U as UiHelperUtil, c as customElement } from "./index-D6qUKJRD.js";
|
|
4
|
-
import "./index-btvyw5xW.js";
|
|
5
|
-
import "./index-BeSFhM_p.js";
|
|
6
|
-
import { o } from "./if-defined-B5CxFQec.js";
|
|
7
|
-
import "./index-isOxTzum.js";
|
|
8
|
-
import "./index-dsKNiJml.js";
|
|
9
|
-
var dayjs_min = { exports: {} };
|
|
10
|
-
(function(module, exports) {
|
|
11
|
-
!(function(t, e) {
|
|
12
|
-
module.exports = e();
|
|
13
|
-
})(commonjsGlobal, (function() {
|
|
14
|
-
var t = 1e3, e = 6e4, n2 = 36e5, r2 = "millisecond", i2 = "second", s = "minute", u = "hour", a = "day", o2 = "week", c = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
|
|
15
|
-
var e2 = ["th", "st", "nd", "rd"], n3 = t2 % 100;
|
|
16
|
-
return "[" + t2 + (e2[(n3 - 20) % 10] || e2[n3] || e2[0]) + "]";
|
|
17
|
-
} }, m = function(t2, e2, n3) {
|
|
18
|
-
var r3 = String(t2);
|
|
19
|
-
return !r3 || r3.length >= e2 ? t2 : "" + Array(e2 + 1 - r3.length).join(n3) + t2;
|
|
20
|
-
}, v = { s: m, z: function(t2) {
|
|
21
|
-
var e2 = -t2.utcOffset(), n3 = Math.abs(e2), r3 = Math.floor(n3 / 60), i3 = n3 % 60;
|
|
22
|
-
return (e2 <= 0 ? "+" : "-") + m(r3, 2, "0") + ":" + m(i3, 2, "0");
|
|
23
|
-
}, m: function t2(e2, n3) {
|
|
24
|
-
if (e2.date() < n3.date()) return -t2(n3, e2);
|
|
25
|
-
var r3 = 12 * (n3.year() - e2.year()) + (n3.month() - e2.month()), i3 = e2.clone().add(r3, c), s2 = n3 - i3 < 0, u2 = e2.clone().add(r3 + (s2 ? -1 : 1), c);
|
|
26
|
-
return +(-(r3 + (n3 - i3) / (s2 ? i3 - u2 : u2 - i3)) || 0);
|
|
27
|
-
}, a: function(t2) {
|
|
28
|
-
return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
|
|
29
|
-
}, p: function(t2) {
|
|
30
|
-
return { M: c, y: h, w: o2, d: a, D: d, h: u, m: s, s: i2, ms: r2, Q: f }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
|
|
31
|
-
}, u: function(t2) {
|
|
32
|
-
return void 0 === t2;
|
|
33
|
-
} }, g = "en", D = {};
|
|
34
|
-
D[g] = M;
|
|
35
|
-
var p = "$isDayjsObject", S = function(t2) {
|
|
36
|
-
return t2 instanceof _ || !(!t2 || !t2[p]);
|
|
37
|
-
}, w = function t2(e2, n3, r3) {
|
|
38
|
-
var i3;
|
|
39
|
-
if (!e2) return g;
|
|
40
|
-
if ("string" == typeof e2) {
|
|
41
|
-
var s2 = e2.toLowerCase();
|
|
42
|
-
D[s2] && (i3 = s2), n3 && (D[s2] = n3, i3 = s2);
|
|
43
|
-
var u2 = e2.split("-");
|
|
44
|
-
if (!i3 && u2.length > 1) return t2(u2[0]);
|
|
45
|
-
} else {
|
|
46
|
-
var a2 = e2.name;
|
|
47
|
-
D[a2] = e2, i3 = a2;
|
|
48
|
-
}
|
|
49
|
-
return !r3 && i3 && (g = i3), i3 || !r3 && g;
|
|
50
|
-
}, O = function(t2, e2) {
|
|
51
|
-
if (S(t2)) return t2.clone();
|
|
52
|
-
var n3 = "object" == typeof e2 ? e2 : {};
|
|
53
|
-
return n3.date = t2, n3.args = arguments, new _(n3);
|
|
54
|
-
}, b = v;
|
|
55
|
-
b.l = w, b.i = S, b.w = function(t2, e2) {
|
|
56
|
-
return O(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
|
|
57
|
-
};
|
|
58
|
-
var _ = (function() {
|
|
59
|
-
function M2(t2) {
|
|
60
|
-
this.$L = w(t2.locale, null, true), this.parse(t2), this.$x = this.$x || t2.x || {}, this[p] = true;
|
|
61
|
-
}
|
|
62
|
-
var m2 = M2.prototype;
|
|
63
|
-
return m2.parse = function(t2) {
|
|
64
|
-
this.$d = (function(t3) {
|
|
65
|
-
var e2 = t3.date, n3 = t3.utc;
|
|
66
|
-
if (null === e2) return /* @__PURE__ */ new Date(NaN);
|
|
67
|
-
if (b.u(e2)) return /* @__PURE__ */ new Date();
|
|
68
|
-
if (e2 instanceof Date) return new Date(e2);
|
|
69
|
-
if ("string" == typeof e2 && !/Z$/i.test(e2)) {
|
|
70
|
-
var r3 = e2.match($);
|
|
71
|
-
if (r3) {
|
|
72
|
-
var i3 = r3[2] - 1 || 0, s2 = (r3[7] || "0").substring(0, 3);
|
|
73
|
-
return n3 ? new Date(Date.UTC(r3[1], i3, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s2)) : new Date(r3[1], i3, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s2);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
return new Date(e2);
|
|
77
|
-
})(t2), this.init();
|
|
78
|
-
}, m2.init = function() {
|
|
79
|
-
var t2 = this.$d;
|
|
80
|
-
this.$y = t2.getFullYear(), this.$M = t2.getMonth(), this.$D = t2.getDate(), this.$W = t2.getDay(), this.$H = t2.getHours(), this.$m = t2.getMinutes(), this.$s = t2.getSeconds(), this.$ms = t2.getMilliseconds();
|
|
81
|
-
}, m2.$utils = function() {
|
|
82
|
-
return b;
|
|
83
|
-
}, m2.isValid = function() {
|
|
84
|
-
return !(this.$d.toString() === l);
|
|
85
|
-
}, m2.isSame = function(t2, e2) {
|
|
86
|
-
var n3 = O(t2);
|
|
87
|
-
return this.startOf(e2) <= n3 && n3 <= this.endOf(e2);
|
|
88
|
-
}, m2.isAfter = function(t2, e2) {
|
|
89
|
-
return O(t2) < this.startOf(e2);
|
|
90
|
-
}, m2.isBefore = function(t2, e2) {
|
|
91
|
-
return this.endOf(e2) < O(t2);
|
|
92
|
-
}, m2.$g = function(t2, e2, n3) {
|
|
93
|
-
return b.u(t2) ? this[e2] : this.set(n3, t2);
|
|
94
|
-
}, m2.unix = function() {
|
|
95
|
-
return Math.floor(this.valueOf() / 1e3);
|
|
96
|
-
}, m2.valueOf = function() {
|
|
97
|
-
return this.$d.getTime();
|
|
98
|
-
}, m2.startOf = function(t2, e2) {
|
|
99
|
-
var n3 = this, r3 = !!b.u(e2) || e2, f2 = b.p(t2), l2 = function(t3, e3) {
|
|
100
|
-
var i3 = b.w(n3.$u ? Date.UTC(n3.$y, e3, t3) : new Date(n3.$y, e3, t3), n3);
|
|
101
|
-
return r3 ? i3 : i3.endOf(a);
|
|
102
|
-
}, $2 = function(t3, e3) {
|
|
103
|
-
return b.w(n3.toDate()[t3].apply(n3.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n3);
|
|
104
|
-
}, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
|
|
105
|
-
switch (f2) {
|
|
106
|
-
case h:
|
|
107
|
-
return r3 ? l2(1, 0) : l2(31, 11);
|
|
108
|
-
case c:
|
|
109
|
-
return r3 ? l2(1, M3) : l2(0, M3 + 1);
|
|
110
|
-
case o2:
|
|
111
|
-
var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
|
|
112
|
-
return l2(r3 ? m3 - D2 : m3 + (6 - D2), M3);
|
|
113
|
-
case a:
|
|
114
|
-
case d:
|
|
115
|
-
return $2(v2 + "Hours", 0);
|
|
116
|
-
case u:
|
|
117
|
-
return $2(v2 + "Minutes", 1);
|
|
118
|
-
case s:
|
|
119
|
-
return $2(v2 + "Seconds", 2);
|
|
120
|
-
case i2:
|
|
121
|
-
return $2(v2 + "Milliseconds", 3);
|
|
122
|
-
default:
|
|
123
|
-
return this.clone();
|
|
124
|
-
}
|
|
125
|
-
}, m2.endOf = function(t2) {
|
|
126
|
-
return this.startOf(t2, false);
|
|
127
|
-
}, m2.$set = function(t2, e2) {
|
|
128
|
-
var n3, o3 = b.p(t2), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n3 = {}, n3[a] = f2 + "Date", n3[d] = f2 + "Date", n3[c] = f2 + "Month", n3[h] = f2 + "FullYear", n3[u] = f2 + "Hours", n3[s] = f2 + "Minutes", n3[i2] = f2 + "Seconds", n3[r2] = f2 + "Milliseconds", n3)[o3], $2 = o3 === a ? this.$D + (e2 - this.$W) : e2;
|
|
129
|
-
if (o3 === c || o3 === h) {
|
|
130
|
-
var y2 = this.clone().set(d, 1);
|
|
131
|
-
y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
|
|
132
|
-
} else l2 && this.$d[l2]($2);
|
|
133
|
-
return this.init(), this;
|
|
134
|
-
}, m2.set = function(t2, e2) {
|
|
135
|
-
return this.clone().$set(t2, e2);
|
|
136
|
-
}, m2.get = function(t2) {
|
|
137
|
-
return this[b.p(t2)]();
|
|
138
|
-
}, m2.add = function(r3, f2) {
|
|
139
|
-
var d2, l2 = this;
|
|
140
|
-
r3 = Number(r3);
|
|
141
|
-
var $2 = b.p(f2), y2 = function(t2) {
|
|
142
|
-
var e2 = O(l2);
|
|
143
|
-
return b.w(e2.date(e2.date() + Math.round(t2 * r3)), l2);
|
|
144
|
-
};
|
|
145
|
-
if ($2 === c) return this.set(c, this.$M + r3);
|
|
146
|
-
if ($2 === h) return this.set(h, this.$y + r3);
|
|
147
|
-
if ($2 === a) return y2(1);
|
|
148
|
-
if ($2 === o2) return y2(7);
|
|
149
|
-
var M3 = (d2 = {}, d2[s] = e, d2[u] = n2, d2[i2] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r3 * M3;
|
|
150
|
-
return b.w(m3, this);
|
|
151
|
-
}, m2.subtract = function(t2, e2) {
|
|
152
|
-
return this.add(-1 * t2, e2);
|
|
153
|
-
}, m2.format = function(t2) {
|
|
154
|
-
var e2 = this, n3 = this.$locale();
|
|
155
|
-
if (!this.isValid()) return n3.invalidDate || l;
|
|
156
|
-
var r3 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i3 = b.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o3 = n3.weekdays, c2 = n3.months, f2 = n3.meridiem, h2 = function(t3, n4, i4, s3) {
|
|
157
|
-
return t3 && (t3[n4] || t3(e2, r3)) || i4[n4].slice(0, s3);
|
|
158
|
-
}, d2 = function(t3) {
|
|
159
|
-
return b.s(s2 % 12 || 12, t3, "0");
|
|
160
|
-
}, $2 = f2 || function(t3, e3, n4) {
|
|
161
|
-
var r4 = t3 < 12 ? "AM" : "PM";
|
|
162
|
-
return n4 ? r4.toLowerCase() : r4;
|
|
163
|
-
};
|
|
164
|
-
return r3.replace(y, (function(t3, r4) {
|
|
165
|
-
return r4 || (function(t4) {
|
|
166
|
-
switch (t4) {
|
|
167
|
-
case "YY":
|
|
168
|
-
return String(e2.$y).slice(-2);
|
|
169
|
-
case "YYYY":
|
|
170
|
-
return b.s(e2.$y, 4, "0");
|
|
171
|
-
case "M":
|
|
172
|
-
return a2 + 1;
|
|
173
|
-
case "MM":
|
|
174
|
-
return b.s(a2 + 1, 2, "0");
|
|
175
|
-
case "MMM":
|
|
176
|
-
return h2(n3.monthsShort, a2, c2, 3);
|
|
177
|
-
case "MMMM":
|
|
178
|
-
return h2(c2, a2);
|
|
179
|
-
case "D":
|
|
180
|
-
return e2.$D;
|
|
181
|
-
case "DD":
|
|
182
|
-
return b.s(e2.$D, 2, "0");
|
|
183
|
-
case "d":
|
|
184
|
-
return String(e2.$W);
|
|
185
|
-
case "dd":
|
|
186
|
-
return h2(n3.weekdaysMin, e2.$W, o3, 2);
|
|
187
|
-
case "ddd":
|
|
188
|
-
return h2(n3.weekdaysShort, e2.$W, o3, 3);
|
|
189
|
-
case "dddd":
|
|
190
|
-
return o3[e2.$W];
|
|
191
|
-
case "H":
|
|
192
|
-
return String(s2);
|
|
193
|
-
case "HH":
|
|
194
|
-
return b.s(s2, 2, "0");
|
|
195
|
-
case "h":
|
|
196
|
-
return d2(1);
|
|
197
|
-
case "hh":
|
|
198
|
-
return d2(2);
|
|
199
|
-
case "a":
|
|
200
|
-
return $2(s2, u2, true);
|
|
201
|
-
case "A":
|
|
202
|
-
return $2(s2, u2, false);
|
|
203
|
-
case "m":
|
|
204
|
-
return String(u2);
|
|
205
|
-
case "mm":
|
|
206
|
-
return b.s(u2, 2, "0");
|
|
207
|
-
case "s":
|
|
208
|
-
return String(e2.$s);
|
|
209
|
-
case "ss":
|
|
210
|
-
return b.s(e2.$s, 2, "0");
|
|
211
|
-
case "SSS":
|
|
212
|
-
return b.s(e2.$ms, 3, "0");
|
|
213
|
-
case "Z":
|
|
214
|
-
return i3;
|
|
215
|
-
}
|
|
216
|
-
return null;
|
|
217
|
-
})(t3) || i3.replace(":", "");
|
|
218
|
-
}));
|
|
219
|
-
}, m2.utcOffset = function() {
|
|
220
|
-
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
221
|
-
}, m2.diff = function(r3, d2, l2) {
|
|
222
|
-
var $2, y2 = this, M3 = b.p(d2), m3 = O(r3), v2 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D2 = function() {
|
|
223
|
-
return b.m(y2, m3);
|
|
224
|
-
};
|
|
225
|
-
switch (M3) {
|
|
226
|
-
case h:
|
|
227
|
-
$2 = D2() / 12;
|
|
228
|
-
break;
|
|
229
|
-
case c:
|
|
230
|
-
$2 = D2();
|
|
231
|
-
break;
|
|
232
|
-
case f:
|
|
233
|
-
$2 = D2() / 3;
|
|
234
|
-
break;
|
|
235
|
-
case o2:
|
|
236
|
-
$2 = (g2 - v2) / 6048e5;
|
|
237
|
-
break;
|
|
238
|
-
case a:
|
|
239
|
-
$2 = (g2 - v2) / 864e5;
|
|
240
|
-
break;
|
|
241
|
-
case u:
|
|
242
|
-
$2 = g2 / n2;
|
|
243
|
-
break;
|
|
244
|
-
case s:
|
|
245
|
-
$2 = g2 / e;
|
|
246
|
-
break;
|
|
247
|
-
case i2:
|
|
248
|
-
$2 = g2 / t;
|
|
249
|
-
break;
|
|
250
|
-
default:
|
|
251
|
-
$2 = g2;
|
|
252
|
-
}
|
|
253
|
-
return l2 ? $2 : b.a($2);
|
|
254
|
-
}, m2.daysInMonth = function() {
|
|
255
|
-
return this.endOf(c).$D;
|
|
256
|
-
}, m2.$locale = function() {
|
|
257
|
-
return D[this.$L];
|
|
258
|
-
}, m2.locale = function(t2, e2) {
|
|
259
|
-
if (!t2) return this.$L;
|
|
260
|
-
var n3 = this.clone(), r3 = w(t2, e2, true);
|
|
261
|
-
return r3 && (n3.$L = r3), n3;
|
|
262
|
-
}, m2.clone = function() {
|
|
263
|
-
return b.w(this.$d, this);
|
|
264
|
-
}, m2.toDate = function() {
|
|
265
|
-
return new Date(this.valueOf());
|
|
266
|
-
}, m2.toJSON = function() {
|
|
267
|
-
return this.isValid() ? this.toISOString() : null;
|
|
268
|
-
}, m2.toISOString = function() {
|
|
269
|
-
return this.$d.toISOString();
|
|
270
|
-
}, m2.toString = function() {
|
|
271
|
-
return this.$d.toUTCString();
|
|
272
|
-
}, M2;
|
|
273
|
-
})(), k = _.prototype;
|
|
274
|
-
return O.prototype = k, [["$ms", r2], ["$s", i2], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach((function(t2) {
|
|
275
|
-
k[t2[1]] = function(e2) {
|
|
276
|
-
return this.$g(e2, t2[0], t2[1]);
|
|
277
|
-
};
|
|
278
|
-
})), O.extend = function(t2, e2) {
|
|
279
|
-
return t2.$i || (t2(e2, _, O), t2.$i = true), O;
|
|
280
|
-
}, O.locale = w, O.isDayjs = S, O.unix = function(t2) {
|
|
281
|
-
return O(1e3 * t2);
|
|
282
|
-
}, O.en = D[g], O.Ls = D, O.p = {}, O;
|
|
283
|
-
}));
|
|
284
|
-
})(dayjs_min);
|
|
285
|
-
var dayjs_minExports = dayjs_min.exports;
|
|
286
|
-
const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
|
|
287
|
-
var en = { exports: {} };
|
|
288
|
-
(function(module, exports) {
|
|
289
|
-
!(function(e, n2) {
|
|
290
|
-
module.exports = n2();
|
|
291
|
-
})(commonjsGlobal, (function() {
|
|
292
|
-
return { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(e) {
|
|
293
|
-
var n2 = ["th", "st", "nd", "rd"], t = e % 100;
|
|
294
|
-
return "[" + e + (n2[(t - 20) % 10] || n2[t] || n2[0]) + "]";
|
|
295
|
-
} };
|
|
296
|
-
}));
|
|
297
|
-
})(en);
|
|
298
|
-
var enExports = en.exports;
|
|
299
|
-
const englishLocale = /* @__PURE__ */ getDefaultExportFromCjs(enExports);
|
|
300
|
-
var relativeTime$1 = { exports: {} };
|
|
301
|
-
(function(module, exports) {
|
|
302
|
-
!(function(r2, e) {
|
|
303
|
-
module.exports = e();
|
|
304
|
-
})(commonjsGlobal, (function() {
|
|
305
|
-
return function(r2, e, t) {
|
|
306
|
-
r2 = r2 || {};
|
|
307
|
-
var n2 = e.prototype, o2 = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" };
|
|
308
|
-
function i2(r3, e2, t2, o3) {
|
|
309
|
-
return n2.fromToBase(r3, e2, t2, o3);
|
|
310
|
-
}
|
|
311
|
-
t.en.relativeTime = o2, n2.fromToBase = function(e2, n3, i3, d2, u) {
|
|
312
|
-
for (var f, a, s, l = i3.$locale().relativeTime || o2, h = r2.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], m = h.length, c = 0; c < m; c += 1) {
|
|
313
|
-
var y = h[c];
|
|
314
|
-
y.d && (f = d2 ? t(e2).diff(i3, y.d, true) : i3.diff(e2, y.d, true));
|
|
315
|
-
var p = (r2.rounding || Math.round)(Math.abs(f));
|
|
316
|
-
if (s = f > 0, p <= y.r || !y.r) {
|
|
317
|
-
p <= 1 && c > 0 && (y = h[c - 1]);
|
|
318
|
-
var v = l[y.l];
|
|
319
|
-
u && (p = u("" + p)), a = "string" == typeof v ? v.replace("%d", p) : v(p, n3, y.l, s);
|
|
320
|
-
break;
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
if (n3) return a;
|
|
324
|
-
var M = s ? l.future : l.past;
|
|
325
|
-
return "function" == typeof M ? M(a) : M.replace("%s", a);
|
|
326
|
-
}, n2.to = function(r3, e2) {
|
|
327
|
-
return i2(r3, e2, this, true);
|
|
328
|
-
}, n2.from = function(r3, e2) {
|
|
329
|
-
return i2(r3, e2, this);
|
|
330
|
-
};
|
|
331
|
-
var d = function(r3) {
|
|
332
|
-
return r3.$u ? t.utc() : t();
|
|
333
|
-
};
|
|
334
|
-
n2.toNow = function(r3) {
|
|
335
|
-
return this.to(d(this), r3);
|
|
336
|
-
}, n2.fromNow = function(r3) {
|
|
337
|
-
return this.from(d(this), r3);
|
|
338
|
-
};
|
|
339
|
-
};
|
|
340
|
-
}));
|
|
341
|
-
})(relativeTime$1);
|
|
342
|
-
var relativeTimeExports = relativeTime$1.exports;
|
|
343
|
-
const relativeTime = /* @__PURE__ */ getDefaultExportFromCjs(relativeTimeExports);
|
|
344
|
-
var updateLocale$1 = { exports: {} };
|
|
345
|
-
(function(module, exports) {
|
|
346
|
-
!(function(e, n2) {
|
|
347
|
-
module.exports = n2();
|
|
348
|
-
})(commonjsGlobal, (function() {
|
|
349
|
-
return function(e, n2, t) {
|
|
350
|
-
t.updateLocale = function(e2, n3) {
|
|
351
|
-
var o2 = t.Ls[e2];
|
|
352
|
-
if (o2) return (n3 ? Object.keys(n3) : []).forEach((function(e3) {
|
|
353
|
-
o2[e3] = n3[e3];
|
|
354
|
-
})), o2;
|
|
355
|
-
};
|
|
356
|
-
};
|
|
357
|
-
}));
|
|
358
|
-
})(updateLocale$1);
|
|
359
|
-
var updateLocaleExports = updateLocale$1.exports;
|
|
360
|
-
const updateLocale = /* @__PURE__ */ getDefaultExportFromCjs(updateLocaleExports);
|
|
361
|
-
dayjs.extend(relativeTime);
|
|
362
|
-
dayjs.extend(updateLocale);
|
|
363
|
-
const localeObject = {
|
|
364
|
-
...englishLocale,
|
|
365
|
-
name: "en-web3-modal",
|
|
366
|
-
relativeTime: {
|
|
367
|
-
future: "in %s",
|
|
368
|
-
past: "%s ago",
|
|
369
|
-
s: "%d sec",
|
|
370
|
-
m: "1 min",
|
|
371
|
-
mm: "%d min",
|
|
372
|
-
h: "1 hr",
|
|
373
|
-
hh: "%d hrs",
|
|
374
|
-
d: "1 d",
|
|
375
|
-
dd: "%d d",
|
|
376
|
-
M: "1 mo",
|
|
377
|
-
MM: "%d mo",
|
|
378
|
-
y: "1 yr",
|
|
379
|
-
yy: "%d yr"
|
|
380
|
-
}
|
|
381
|
-
};
|
|
382
|
-
const MONTH_NAMES = [
|
|
383
|
-
"January",
|
|
384
|
-
"February",
|
|
385
|
-
"March",
|
|
386
|
-
"April",
|
|
387
|
-
"May",
|
|
388
|
-
"June",
|
|
389
|
-
"July",
|
|
390
|
-
"August",
|
|
391
|
-
"September",
|
|
392
|
-
"October",
|
|
393
|
-
"November",
|
|
394
|
-
"December"
|
|
395
|
-
];
|
|
396
|
-
dayjs.locale("en-web3-modal", localeObject);
|
|
397
|
-
const DateUtil = {
|
|
398
|
-
getMonthNameByIndex(monthIndex) {
|
|
399
|
-
return MONTH_NAMES[monthIndex];
|
|
400
|
-
},
|
|
401
|
-
getYear(date = (/* @__PURE__ */ new Date()).toISOString()) {
|
|
402
|
-
return dayjs(date).year();
|
|
403
|
-
},
|
|
404
|
-
getRelativeDateFromNow(date) {
|
|
405
|
-
return dayjs(date).locale("en-web3-modal").fromNow(true);
|
|
406
|
-
},
|
|
407
|
-
formatDate(date, format = "DD MMM") {
|
|
408
|
-
return dayjs(date).format(format);
|
|
409
|
-
}
|
|
410
|
-
};
|
|
411
|
-
const FLOAT_FIXED_VALUE = 3;
|
|
412
|
-
const GAS_FEE_THRESHOLD = 0.1;
|
|
413
|
-
const plusTypes = ["receive", "deposit", "borrow", "claim"];
|
|
414
|
-
const minusTypes = ["withdraw", "repay", "burn"];
|
|
415
|
-
const TransactionUtil = {
|
|
416
|
-
getTransactionGroupTitle(year, month) {
|
|
417
|
-
const currentYear = DateUtil.getYear();
|
|
418
|
-
const monthName = DateUtil.getMonthNameByIndex(month);
|
|
419
|
-
const isCurrentYear = year === currentYear;
|
|
420
|
-
const groupTitle = isCurrentYear ? monthName : `${monthName} ${year}`;
|
|
421
|
-
return groupTitle;
|
|
422
|
-
},
|
|
423
|
-
getTransactionImages(transfers) {
|
|
424
|
-
const [transfer] = transfers;
|
|
425
|
-
const hasMultipleTransfers = (transfers == null ? void 0 : transfers.length) > 1;
|
|
426
|
-
if (hasMultipleTransfers) {
|
|
427
|
-
return transfers.map((item) => this.getTransactionImage(item));
|
|
428
|
-
}
|
|
429
|
-
return [this.getTransactionImage(transfer)];
|
|
430
|
-
},
|
|
431
|
-
getTransactionImage(transfer) {
|
|
432
|
-
return {
|
|
433
|
-
type: TransactionUtil.getTransactionTransferTokenType(transfer),
|
|
434
|
-
url: TransactionUtil.getTransactionImageURL(transfer)
|
|
435
|
-
};
|
|
436
|
-
},
|
|
437
|
-
getTransactionImageURL(transfer) {
|
|
438
|
-
var _a, _b, _c, _d, _e;
|
|
439
|
-
let imageURL = void 0;
|
|
440
|
-
const isNFT = Boolean(transfer == null ? void 0 : transfer.nft_info);
|
|
441
|
-
const isFungible = Boolean(transfer == null ? void 0 : transfer.fungible_info);
|
|
442
|
-
if (transfer && isNFT) {
|
|
443
|
-
imageURL = (_c = (_b = (_a = transfer == null ? void 0 : transfer.nft_info) == null ? void 0 : _a.content) == null ? void 0 : _b.preview) == null ? void 0 : _c.url;
|
|
444
|
-
} else if (transfer && isFungible) {
|
|
445
|
-
imageURL = (_e = (_d = transfer == null ? void 0 : transfer.fungible_info) == null ? void 0 : _d.icon) == null ? void 0 : _e.url;
|
|
446
|
-
}
|
|
447
|
-
return imageURL;
|
|
448
|
-
},
|
|
449
|
-
getTransactionTransferTokenType(transfer) {
|
|
450
|
-
if (transfer == null ? void 0 : transfer.fungible_info) {
|
|
451
|
-
return "FUNGIBLE";
|
|
452
|
-
} else if (transfer == null ? void 0 : transfer.nft_info) {
|
|
453
|
-
return "NFT";
|
|
454
|
-
}
|
|
455
|
-
return void 0;
|
|
456
|
-
},
|
|
457
|
-
getTransactionDescriptions(transaction, mergedTransfers) {
|
|
458
|
-
var _a;
|
|
459
|
-
const type = (_a = transaction == null ? void 0 : transaction.metadata) == null ? void 0 : _a.operationType;
|
|
460
|
-
const transfers = mergedTransfers || (transaction == null ? void 0 : transaction.transfers);
|
|
461
|
-
const hasTransfer = (transfers == null ? void 0 : transfers.length) > 0;
|
|
462
|
-
const hasMultipleTransfers = (transfers == null ? void 0 : transfers.length) > 1;
|
|
463
|
-
const isFungible = hasTransfer && (transfers == null ? void 0 : transfers.every((transfer) => Boolean(transfer == null ? void 0 : transfer.fungible_info)));
|
|
464
|
-
const [firstTransfer, secondTransfer] = transfers;
|
|
465
|
-
let firstDescription = this.getTransferDescription(firstTransfer);
|
|
466
|
-
let secondDescription = this.getTransferDescription(secondTransfer);
|
|
467
|
-
if (!hasTransfer) {
|
|
468
|
-
const isSendOrReceive = type === "send" || type === "receive";
|
|
469
|
-
if (isSendOrReceive && isFungible) {
|
|
470
|
-
firstDescription = UiHelperUtil.getTruncateString({
|
|
471
|
-
string: transaction == null ? void 0 : transaction.metadata.sentFrom,
|
|
472
|
-
charsStart: 4,
|
|
473
|
-
charsEnd: 6,
|
|
474
|
-
truncate: "middle"
|
|
475
|
-
});
|
|
476
|
-
secondDescription = UiHelperUtil.getTruncateString({
|
|
477
|
-
string: transaction == null ? void 0 : transaction.metadata.sentTo,
|
|
478
|
-
charsStart: 4,
|
|
479
|
-
charsEnd: 6,
|
|
480
|
-
truncate: "middle"
|
|
481
|
-
});
|
|
482
|
-
return [firstDescription, secondDescription];
|
|
483
|
-
}
|
|
484
|
-
return [transaction.metadata.status];
|
|
485
|
-
}
|
|
486
|
-
if (hasMultipleTransfers) {
|
|
487
|
-
return transfers.map((item) => this.getTransferDescription(item));
|
|
488
|
-
}
|
|
489
|
-
let prefix = "";
|
|
490
|
-
if (plusTypes.includes(type)) {
|
|
491
|
-
prefix = "+";
|
|
492
|
-
} else if (minusTypes.includes(type)) {
|
|
493
|
-
prefix = "-";
|
|
494
|
-
}
|
|
495
|
-
firstDescription = prefix.concat(firstDescription);
|
|
496
|
-
return [firstDescription];
|
|
497
|
-
},
|
|
498
|
-
getTransferDescription(transfer) {
|
|
499
|
-
var _a;
|
|
500
|
-
let description = "";
|
|
501
|
-
if (!transfer) {
|
|
502
|
-
return description;
|
|
503
|
-
}
|
|
504
|
-
if (transfer == null ? void 0 : transfer.nft_info) {
|
|
505
|
-
description = ((_a = transfer == null ? void 0 : transfer.nft_info) == null ? void 0 : _a.name) || "-";
|
|
506
|
-
} else if (transfer == null ? void 0 : transfer.fungible_info) {
|
|
507
|
-
description = this.getFungibleTransferDescription(transfer) || "-";
|
|
508
|
-
}
|
|
509
|
-
return description;
|
|
510
|
-
},
|
|
511
|
-
getFungibleTransferDescription(transfer) {
|
|
512
|
-
var _a;
|
|
513
|
-
if (!transfer) {
|
|
514
|
-
return null;
|
|
515
|
-
}
|
|
516
|
-
const quantity = this.getQuantityFixedValue(transfer == null ? void 0 : transfer.quantity.numeric);
|
|
517
|
-
const description = [quantity, (_a = transfer == null ? void 0 : transfer.fungible_info) == null ? void 0 : _a.symbol].join(" ").trim();
|
|
518
|
-
return description;
|
|
519
|
-
},
|
|
520
|
-
mergeTransfers(transfers) {
|
|
521
|
-
if ((transfers == null ? void 0 : transfers.length) <= 1) {
|
|
522
|
-
return transfers;
|
|
523
|
-
}
|
|
524
|
-
const filteredTransfers = this.filterGasFeeTransfers(transfers);
|
|
525
|
-
const mergedTransfers = filteredTransfers.reduce((acc, t) => {
|
|
526
|
-
var _a;
|
|
527
|
-
const name = (_a = t == null ? void 0 : t.fungible_info) == null ? void 0 : _a.name;
|
|
528
|
-
const existingTransfer = acc.find(({ fungible_info, direction }) => name && name === (fungible_info == null ? void 0 : fungible_info.name) && direction === t.direction);
|
|
529
|
-
if (existingTransfer) {
|
|
530
|
-
const quantity = Number(existingTransfer.quantity.numeric) + Number(t.quantity.numeric);
|
|
531
|
-
existingTransfer.quantity.numeric = quantity.toString();
|
|
532
|
-
existingTransfer.value = (existingTransfer.value || 0) + (t.value || 0);
|
|
533
|
-
} else {
|
|
534
|
-
acc.push(t);
|
|
535
|
-
}
|
|
536
|
-
return acc;
|
|
537
|
-
}, []);
|
|
538
|
-
let finalTransfers = mergedTransfers;
|
|
539
|
-
if (mergedTransfers.length > 2) {
|
|
540
|
-
finalTransfers = mergedTransfers.sort((a, b) => (b.value || 0) - (a.value || 0)).slice(0, 2);
|
|
541
|
-
}
|
|
542
|
-
finalTransfers = finalTransfers.sort((a, b) => {
|
|
543
|
-
if (a.direction === "out" && b.direction === "in") {
|
|
544
|
-
return -1;
|
|
545
|
-
}
|
|
546
|
-
if (a.direction === "in" && b.direction === "out") {
|
|
547
|
-
return 1;
|
|
548
|
-
}
|
|
549
|
-
return 0;
|
|
550
|
-
});
|
|
551
|
-
return finalTransfers;
|
|
552
|
-
},
|
|
553
|
-
filterGasFeeTransfers(transfers) {
|
|
554
|
-
const tokenGroups = transfers.reduce((groups, transfer) => {
|
|
555
|
-
var _a;
|
|
556
|
-
const tokenName = (_a = transfer == null ? void 0 : transfer.fungible_info) == null ? void 0 : _a.name;
|
|
557
|
-
if (tokenName) {
|
|
558
|
-
if (!groups[tokenName]) {
|
|
559
|
-
groups[tokenName] = [];
|
|
560
|
-
}
|
|
561
|
-
groups[tokenName].push(transfer);
|
|
562
|
-
}
|
|
563
|
-
return groups;
|
|
564
|
-
}, {});
|
|
565
|
-
const filteredTransfers = [];
|
|
566
|
-
Object.values(tokenGroups).forEach((tokenTransfers) => {
|
|
567
|
-
if (tokenTransfers.length === 1) {
|
|
568
|
-
const firstTransfer = tokenTransfers[0];
|
|
569
|
-
if (firstTransfer) {
|
|
570
|
-
filteredTransfers.push(firstTransfer);
|
|
571
|
-
}
|
|
572
|
-
} else {
|
|
573
|
-
const inTransfers = tokenTransfers.filter((t) => t.direction === "in");
|
|
574
|
-
const outTransfers = tokenTransfers.filter((t) => t.direction === "out");
|
|
575
|
-
if (inTransfers.length === 1 && outTransfers.length === 1) {
|
|
576
|
-
const inTransfer = inTransfers[0];
|
|
577
|
-
const outTransfer = outTransfers[0];
|
|
578
|
-
let didApplyGasFeeFilter = false;
|
|
579
|
-
if (inTransfer && outTransfer) {
|
|
580
|
-
const inAmount = Number(inTransfer.quantity.numeric);
|
|
581
|
-
const outAmount = Number(outTransfer.quantity.numeric);
|
|
582
|
-
if (outAmount < inAmount * GAS_FEE_THRESHOLD) {
|
|
583
|
-
filteredTransfers.push(inTransfer);
|
|
584
|
-
didApplyGasFeeFilter = true;
|
|
585
|
-
} else if (inAmount < outAmount * GAS_FEE_THRESHOLD) {
|
|
586
|
-
filteredTransfers.push(outTransfer);
|
|
587
|
-
didApplyGasFeeFilter = true;
|
|
588
|
-
}
|
|
589
|
-
}
|
|
590
|
-
if (!didApplyGasFeeFilter) {
|
|
591
|
-
filteredTransfers.push(...tokenTransfers);
|
|
592
|
-
}
|
|
593
|
-
} else {
|
|
594
|
-
const significantTransfers = this.filterGasFeesFromTokenGroup(tokenTransfers);
|
|
595
|
-
filteredTransfers.push(...significantTransfers);
|
|
596
|
-
}
|
|
597
|
-
}
|
|
598
|
-
});
|
|
599
|
-
transfers.forEach((transfer) => {
|
|
600
|
-
var _a;
|
|
601
|
-
if (!((_a = transfer == null ? void 0 : transfer.fungible_info) == null ? void 0 : _a.name)) {
|
|
602
|
-
filteredTransfers.push(transfer);
|
|
603
|
-
}
|
|
604
|
-
});
|
|
605
|
-
return filteredTransfers;
|
|
606
|
-
},
|
|
607
|
-
filterGasFeesFromTokenGroup(tokenTransfers) {
|
|
608
|
-
if (tokenTransfers.length <= 1) {
|
|
609
|
-
return tokenTransfers;
|
|
610
|
-
}
|
|
611
|
-
const amounts = tokenTransfers.map((t) => Number(t.quantity.numeric));
|
|
612
|
-
const maxAmount = Math.max(...amounts);
|
|
613
|
-
const minAmount = Math.min(...amounts);
|
|
614
|
-
const extremeGasThreshold = 0.01;
|
|
615
|
-
if (minAmount < maxAmount * extremeGasThreshold) {
|
|
616
|
-
const filtered = tokenTransfers.filter((t) => {
|
|
617
|
-
const amount = Number(t.quantity.numeric);
|
|
618
|
-
return amount >= maxAmount * extremeGasThreshold;
|
|
619
|
-
});
|
|
620
|
-
return filtered;
|
|
621
|
-
}
|
|
622
|
-
const inTransfers = tokenTransfers.filter((t) => t.direction === "in");
|
|
623
|
-
const outTransfers = tokenTransfers.filter((t) => t.direction === "out");
|
|
624
|
-
if (inTransfers.length === 1 && outTransfers.length === 1) {
|
|
625
|
-
const inTransfer = inTransfers[0];
|
|
626
|
-
const outTransfer = outTransfers[0];
|
|
627
|
-
if (inTransfer && outTransfer) {
|
|
628
|
-
const inAmount = Number(inTransfer.quantity.numeric);
|
|
629
|
-
const outAmount = Number(outTransfer.quantity.numeric);
|
|
630
|
-
if (outAmount < inAmount * GAS_FEE_THRESHOLD) {
|
|
631
|
-
return [inTransfer];
|
|
632
|
-
} else if (inAmount < outAmount * GAS_FEE_THRESHOLD) {
|
|
633
|
-
return [outTransfer];
|
|
634
|
-
}
|
|
635
|
-
}
|
|
636
|
-
}
|
|
637
|
-
return tokenTransfers;
|
|
638
|
-
},
|
|
639
|
-
getQuantityFixedValue(value) {
|
|
640
|
-
if (!value) {
|
|
641
|
-
return null;
|
|
642
|
-
}
|
|
643
|
-
const parsedValue = parseFloat(value);
|
|
644
|
-
return parsedValue.toFixed(FLOAT_FIXED_VALUE);
|
|
645
|
-
}
|
|
646
|
-
};
|
|
647
|
-
var TransactionTypePastTense;
|
|
648
|
-
(function(TransactionTypePastTense2) {
|
|
649
|
-
TransactionTypePastTense2["approve"] = "approved";
|
|
650
|
-
TransactionTypePastTense2["bought"] = "bought";
|
|
651
|
-
TransactionTypePastTense2["borrow"] = "borrowed";
|
|
652
|
-
TransactionTypePastTense2["burn"] = "burnt";
|
|
653
|
-
TransactionTypePastTense2["cancel"] = "canceled";
|
|
654
|
-
TransactionTypePastTense2["claim"] = "claimed";
|
|
655
|
-
TransactionTypePastTense2["deploy"] = "deployed";
|
|
656
|
-
TransactionTypePastTense2["deposit"] = "deposited";
|
|
657
|
-
TransactionTypePastTense2["execute"] = "executed";
|
|
658
|
-
TransactionTypePastTense2["mint"] = "minted";
|
|
659
|
-
TransactionTypePastTense2["receive"] = "received";
|
|
660
|
-
TransactionTypePastTense2["repay"] = "repaid";
|
|
661
|
-
TransactionTypePastTense2["send"] = "sent";
|
|
662
|
-
TransactionTypePastTense2["sell"] = "sold";
|
|
663
|
-
TransactionTypePastTense2["stake"] = "staked";
|
|
664
|
-
TransactionTypePastTense2["trade"] = "swapped";
|
|
665
|
-
TransactionTypePastTense2["unstake"] = "unstaked";
|
|
666
|
-
TransactionTypePastTense2["withdraw"] = "withdrawn";
|
|
667
|
-
})(TransactionTypePastTense || (TransactionTypePastTense = {}));
|
|
668
|
-
const styles$4 = css`
|
|
669
|
-
:host > wui-flex {
|
|
670
|
-
display: flex;
|
|
671
|
-
justify-content: center;
|
|
672
|
-
align-items: center;
|
|
673
|
-
position: relative;
|
|
674
|
-
width: 40px;
|
|
675
|
-
height: 40px;
|
|
676
|
-
box-shadow: inset 0 0 0 1px ${({ tokens }) => tokens.core.glass010};
|
|
677
|
-
background-color: ${({ tokens }) => tokens.core.glass010};
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
:host([data-no-images='true']) > wui-flex {
|
|
681
|
-
background-color: ${({ tokens }) => tokens.theme.foregroundPrimary};
|
|
682
|
-
border-radius: ${({ borderRadius }) => borderRadius[3]} !important;
|
|
683
|
-
}
|
|
684
|
-
|
|
685
|
-
:host > wui-flex wui-image {
|
|
686
|
-
display: block;
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
:host > wui-flex,
|
|
690
|
-
:host > wui-flex wui-image,
|
|
691
|
-
.swap-images-container,
|
|
692
|
-
.swap-images-container.nft,
|
|
693
|
-
wui-image.nft {
|
|
694
|
-
border-top-left-radius: var(--local-left-border-radius);
|
|
695
|
-
border-top-right-radius: var(--local-right-border-radius);
|
|
696
|
-
border-bottom-left-radius: var(--local-left-border-radius);
|
|
697
|
-
border-bottom-right-radius: var(--local-right-border-radius);
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
wui-icon {
|
|
701
|
-
width: 20px;
|
|
702
|
-
height: 20px;
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
.swap-images-container {
|
|
706
|
-
position: relative;
|
|
707
|
-
width: 40px;
|
|
708
|
-
height: 40px;
|
|
709
|
-
overflow: hidden;
|
|
710
|
-
}
|
|
711
|
-
|
|
712
|
-
.swap-images-container wui-image:first-child {
|
|
713
|
-
position: absolute;
|
|
714
|
-
width: 40px;
|
|
715
|
-
height: 40px;
|
|
716
|
-
top: 0;
|
|
717
|
-
left: 0%;
|
|
718
|
-
clip-path: inset(0px calc(50% + 2px) 0px 0%);
|
|
719
|
-
}
|
|
720
|
-
|
|
721
|
-
.swap-images-container wui-image:last-child {
|
|
722
|
-
clip-path: inset(0px 0px 0px calc(50% + 2px));
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
wui-flex.status-box {
|
|
726
|
-
position: absolute;
|
|
727
|
-
right: 0;
|
|
728
|
-
bottom: 0;
|
|
729
|
-
transform: translate(20%, 20%);
|
|
730
|
-
border-radius: ${({ borderRadius }) => borderRadius[4]};
|
|
731
|
-
background-color: ${({ tokens }) => tokens.theme.backgroundPrimary};
|
|
732
|
-
box-shadow: 0 0 0 2px ${({ tokens }) => tokens.theme.backgroundPrimary};
|
|
733
|
-
overflow: hidden;
|
|
734
|
-
width: 16px;
|
|
735
|
-
height: 16px;
|
|
736
|
-
}
|
|
737
|
-
`;
|
|
738
|
-
var __decorate$4 = function(decorators, target, key, desc) {
|
|
739
|
-
var c = arguments.length, r2 = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
740
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
|
|
741
|
-
else for (var i2 = decorators.length - 1; i2 >= 0; i2--) if (d = decorators[i2]) r2 = (c < 3 ? d(r2) : c > 3 ? d(target, key, r2) : d(target, key)) || r2;
|
|
742
|
-
return c > 3 && r2 && Object.defineProperty(target, key, r2), r2;
|
|
743
|
-
};
|
|
744
|
-
let WuiTransactionVisual = class WuiTransactionVisual2 extends i {
|
|
745
|
-
constructor() {
|
|
746
|
-
super(...arguments);
|
|
747
|
-
this.images = [];
|
|
748
|
-
this.secondImage = {
|
|
749
|
-
type: void 0,
|
|
750
|
-
url: ""
|
|
751
|
-
};
|
|
752
|
-
}
|
|
753
|
-
render() {
|
|
754
|
-
const [firstImage, secondImage] = this.images;
|
|
755
|
-
if (!this.images.length) {
|
|
756
|
-
this.dataset["noImages"] = "true";
|
|
757
|
-
}
|
|
758
|
-
const isLeftNFT = (firstImage == null ? void 0 : firstImage.type) === "NFT";
|
|
759
|
-
const isRightNFT = (secondImage == null ? void 0 : secondImage.url) ? secondImage.type === "NFT" : isLeftNFT;
|
|
760
|
-
const leftRadius = isLeftNFT ? "var(--apkt-borderRadius-3)" : "var(--apkt-borderRadius-5)";
|
|
761
|
-
const rightRadius = isRightNFT ? "var(--apkt-borderRadius-3)" : "var(--apkt-borderRadius-5)";
|
|
762
|
-
this.style.cssText = `
|
|
763
|
-
--local-left-border-radius: ${leftRadius};
|
|
764
|
-
--local-right-border-radius: ${rightRadius};
|
|
765
|
-
`;
|
|
766
|
-
return x`<wui-flex> ${this.templateVisual()} ${this.templateIcon()} </wui-flex>`;
|
|
767
|
-
}
|
|
768
|
-
templateVisual() {
|
|
769
|
-
const [firstImage, secondImage] = this.images;
|
|
770
|
-
const firstImageType = firstImage == null ? void 0 : firstImage.type;
|
|
771
|
-
const hasTwoImages = this.images.length === 2;
|
|
772
|
-
if (hasTwoImages && ((firstImage == null ? void 0 : firstImage.url) || (secondImage == null ? void 0 : secondImage.url))) {
|
|
773
|
-
return x`<div class="swap-images-container">
|
|
774
|
-
${(firstImage == null ? void 0 : firstImage.url) ? x`<wui-image src=${firstImage.url} alt="Transaction image"></wui-image>` : null}
|
|
775
|
-
${(secondImage == null ? void 0 : secondImage.url) ? x`<wui-image src=${secondImage.url} alt="Transaction image"></wui-image>` : null}
|
|
776
|
-
</div>`;
|
|
777
|
-
} else if (firstImage == null ? void 0 : firstImage.url) {
|
|
778
|
-
return x`<wui-image src=${firstImage.url} alt="Transaction image"></wui-image>`;
|
|
779
|
-
} else if (firstImageType === "NFT") {
|
|
780
|
-
return x`<wui-icon size="inherit" color="default" name="nftPlaceholder"></wui-icon>`;
|
|
781
|
-
}
|
|
782
|
-
return x`<wui-icon size="inherit" color="default" name="coinPlaceholder"></wui-icon>`;
|
|
783
|
-
}
|
|
784
|
-
templateIcon() {
|
|
785
|
-
let color = "accent-primary";
|
|
786
|
-
let icon = void 0;
|
|
787
|
-
icon = this.getIcon();
|
|
788
|
-
if (this.status) {
|
|
789
|
-
color = this.getStatusColor();
|
|
790
|
-
}
|
|
791
|
-
if (!icon) {
|
|
792
|
-
return null;
|
|
793
|
-
}
|
|
794
|
-
return x`
|
|
795
|
-
<wui-flex alignItems="center" justifyContent="center" class="status-box">
|
|
796
|
-
<wui-icon-box size="sm" color=${color} icon=${icon}></wui-icon-box>
|
|
797
|
-
</wui-flex>
|
|
798
|
-
`;
|
|
799
|
-
}
|
|
800
|
-
getDirectionIcon() {
|
|
801
|
-
switch (this.direction) {
|
|
802
|
-
case "in":
|
|
803
|
-
return "arrowBottom";
|
|
804
|
-
case "out":
|
|
805
|
-
return "arrowTop";
|
|
806
|
-
default:
|
|
807
|
-
return void 0;
|
|
808
|
-
}
|
|
809
|
-
}
|
|
810
|
-
getIcon() {
|
|
811
|
-
if (this.onlyDirectionIcon) {
|
|
812
|
-
return this.getDirectionIcon();
|
|
813
|
-
}
|
|
814
|
-
if (this.type === "trade") {
|
|
815
|
-
return "swapHorizontal";
|
|
816
|
-
} else if (this.type === "approve") {
|
|
817
|
-
return "checkmark";
|
|
818
|
-
} else if (this.type === "cancel") {
|
|
819
|
-
return "close";
|
|
820
|
-
}
|
|
821
|
-
return this.getDirectionIcon();
|
|
822
|
-
}
|
|
823
|
-
getStatusColor() {
|
|
824
|
-
switch (this.status) {
|
|
825
|
-
case "confirmed":
|
|
826
|
-
return "success";
|
|
827
|
-
case "failed":
|
|
828
|
-
return "error";
|
|
829
|
-
case "pending":
|
|
830
|
-
return "inverse";
|
|
831
|
-
default:
|
|
832
|
-
return "accent-primary";
|
|
833
|
-
}
|
|
834
|
-
}
|
|
835
|
-
};
|
|
836
|
-
WuiTransactionVisual.styles = [styles$4];
|
|
837
|
-
__decorate$4([
|
|
838
|
-
n()
|
|
839
|
-
], WuiTransactionVisual.prototype, "type", void 0);
|
|
840
|
-
__decorate$4([
|
|
841
|
-
n()
|
|
842
|
-
], WuiTransactionVisual.prototype, "status", void 0);
|
|
843
|
-
__decorate$4([
|
|
844
|
-
n()
|
|
845
|
-
], WuiTransactionVisual.prototype, "direction", void 0);
|
|
846
|
-
__decorate$4([
|
|
847
|
-
n({ type: Boolean })
|
|
848
|
-
], WuiTransactionVisual.prototype, "onlyDirectionIcon", void 0);
|
|
849
|
-
__decorate$4([
|
|
850
|
-
n({ type: Array })
|
|
851
|
-
], WuiTransactionVisual.prototype, "images", void 0);
|
|
852
|
-
__decorate$4([
|
|
853
|
-
n({ type: Object })
|
|
854
|
-
], WuiTransactionVisual.prototype, "secondImage", void 0);
|
|
855
|
-
WuiTransactionVisual = __decorate$4([
|
|
856
|
-
customElement("wui-transaction-visual")
|
|
857
|
-
], WuiTransactionVisual);
|
|
858
|
-
const styles$3 = css`
|
|
859
|
-
:host {
|
|
860
|
-
width: 100%;
|
|
861
|
-
}
|
|
862
|
-
|
|
863
|
-
:host > wui-flex:first-child {
|
|
864
|
-
align-items: center;
|
|
865
|
-
column-gap: ${({ spacing }) => spacing[2]};
|
|
866
|
-
padding: ${({ spacing }) => spacing[1]} ${({ spacing }) => spacing[2]};
|
|
867
|
-
width: 100%;
|
|
868
|
-
}
|
|
869
|
-
|
|
870
|
-
:host > wui-flex:first-child wui-text:nth-child(1) {
|
|
871
|
-
text-transform: capitalize;
|
|
872
|
-
}
|
|
873
|
-
|
|
874
|
-
wui-transaction-visual {
|
|
875
|
-
width: 40px;
|
|
876
|
-
height: 40px;
|
|
877
|
-
}
|
|
878
|
-
|
|
879
|
-
wui-flex {
|
|
880
|
-
flex: 1;
|
|
881
|
-
}
|
|
882
|
-
|
|
883
|
-
:host wui-flex wui-flex {
|
|
884
|
-
overflow: hidden;
|
|
885
|
-
}
|
|
886
|
-
|
|
887
|
-
:host .description-container wui-text span {
|
|
888
|
-
word-break: break-all;
|
|
889
|
-
}
|
|
890
|
-
|
|
891
|
-
:host .description-container wui-text {
|
|
892
|
-
overflow: hidden;
|
|
893
|
-
}
|
|
894
|
-
|
|
895
|
-
:host .description-separator-icon {
|
|
896
|
-
margin: 0px 6px;
|
|
897
|
-
}
|
|
898
|
-
|
|
899
|
-
:host wui-text > span {
|
|
900
|
-
overflow: hidden;
|
|
901
|
-
display: -webkit-box;
|
|
902
|
-
-webkit-box-orient: vertical;
|
|
903
|
-
-webkit-line-clamp: 1;
|
|
904
|
-
}
|
|
905
|
-
`;
|
|
906
|
-
var __decorate$3 = function(decorators, target, key, desc) {
|
|
907
|
-
var c = arguments.length, r2 = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
908
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
|
|
909
|
-
else for (var i2 = decorators.length - 1; i2 >= 0; i2--) if (d = decorators[i2]) r2 = (c < 3 ? d(r2) : c > 3 ? d(target, key, r2) : d(target, key)) || r2;
|
|
910
|
-
return c > 3 && r2 && Object.defineProperty(target, key, r2), r2;
|
|
911
|
-
};
|
|
912
|
-
let WuiTransactionListItem = class WuiTransactionListItem2 extends i {
|
|
913
|
-
constructor() {
|
|
914
|
-
super(...arguments);
|
|
915
|
-
this.type = "approve";
|
|
916
|
-
this.onlyDirectionIcon = false;
|
|
917
|
-
this.images = [];
|
|
918
|
-
}
|
|
919
|
-
render() {
|
|
920
|
-
return x`
|
|
921
|
-
<wui-flex>
|
|
922
|
-
<wui-transaction-visual
|
|
923
|
-
.status=${this.status}
|
|
924
|
-
direction=${o(this.direction)}
|
|
925
|
-
type=${this.type}
|
|
926
|
-
.onlyDirectionIcon=${this.onlyDirectionIcon}
|
|
927
|
-
.images=${this.images}
|
|
928
|
-
></wui-transaction-visual>
|
|
929
|
-
<wui-flex flexDirection="column" gap="1">
|
|
930
|
-
<wui-text variant="lg-medium" color="primary">
|
|
931
|
-
${TransactionTypePastTense[this.type] || this.type}
|
|
932
|
-
</wui-text>
|
|
933
|
-
<wui-flex class="description-container">
|
|
934
|
-
${this.templateDescription()} ${this.templateSecondDescription()}
|
|
935
|
-
</wui-flex>
|
|
936
|
-
</wui-flex>
|
|
937
|
-
<wui-text variant="sm-medium" color="secondary"><span>${this.date}</span></wui-text>
|
|
938
|
-
</wui-flex>
|
|
939
|
-
`;
|
|
940
|
-
}
|
|
941
|
-
templateDescription() {
|
|
942
|
-
var _a;
|
|
943
|
-
const description = (_a = this.descriptions) == null ? void 0 : _a[0];
|
|
944
|
-
return description ? x`
|
|
945
|
-
<wui-text variant="md-regular" color="secondary">
|
|
946
|
-
<span>${description}</span>
|
|
947
|
-
</wui-text>
|
|
948
|
-
` : null;
|
|
949
|
-
}
|
|
950
|
-
templateSecondDescription() {
|
|
951
|
-
var _a;
|
|
952
|
-
const description = (_a = this.descriptions) == null ? void 0 : _a[1];
|
|
953
|
-
return description ? x`
|
|
954
|
-
<wui-icon class="description-separator-icon" size="sm" name="arrowRight"></wui-icon>
|
|
955
|
-
<wui-text variant="md-regular" color="secondary">
|
|
956
|
-
<span>${description}</span>
|
|
957
|
-
</wui-text>
|
|
958
|
-
` : null;
|
|
959
|
-
}
|
|
960
|
-
};
|
|
961
|
-
WuiTransactionListItem.styles = [resetStyles, styles$3];
|
|
962
|
-
__decorate$3([
|
|
963
|
-
n()
|
|
964
|
-
], WuiTransactionListItem.prototype, "type", void 0);
|
|
965
|
-
__decorate$3([
|
|
966
|
-
n({ type: Array })
|
|
967
|
-
], WuiTransactionListItem.prototype, "descriptions", void 0);
|
|
968
|
-
__decorate$3([
|
|
969
|
-
n()
|
|
970
|
-
], WuiTransactionListItem.prototype, "date", void 0);
|
|
971
|
-
__decorate$3([
|
|
972
|
-
n({ type: Boolean })
|
|
973
|
-
], WuiTransactionListItem.prototype, "onlyDirectionIcon", void 0);
|
|
974
|
-
__decorate$3([
|
|
975
|
-
n()
|
|
976
|
-
], WuiTransactionListItem.prototype, "status", void 0);
|
|
977
|
-
__decorate$3([
|
|
978
|
-
n()
|
|
979
|
-
], WuiTransactionListItem.prototype, "direction", void 0);
|
|
980
|
-
__decorate$3([
|
|
981
|
-
n({ type: Array })
|
|
982
|
-
], WuiTransactionListItem.prototype, "images", void 0);
|
|
983
|
-
WuiTransactionListItem = __decorate$3([
|
|
984
|
-
customElement("wui-transaction-list-item")
|
|
985
|
-
], WuiTransactionListItem);
|
|
986
|
-
const styles$2 = css`
|
|
987
|
-
wui-flex {
|
|
988
|
-
position: relative;
|
|
989
|
-
display: inline-flex;
|
|
990
|
-
justify-content: center;
|
|
991
|
-
align-items: center;
|
|
992
|
-
}
|
|
993
|
-
|
|
994
|
-
wui-image {
|
|
995
|
-
border-radius: ${({ borderRadius }) => borderRadius[128]};
|
|
996
|
-
}
|
|
997
|
-
|
|
998
|
-
.fallback-icon {
|
|
999
|
-
color: ${({ tokens }) => tokens.theme.iconInverse};
|
|
1000
|
-
border-radius: ${({ borderRadius }) => borderRadius[3]};
|
|
1001
|
-
background-color: ${({ tokens }) => tokens.theme.foregroundPrimary};
|
|
1002
|
-
}
|
|
1003
|
-
|
|
1004
|
-
.direction-icon,
|
|
1005
|
-
.status-image {
|
|
1006
|
-
position: absolute;
|
|
1007
|
-
right: 0;
|
|
1008
|
-
bottom: 0;
|
|
1009
|
-
border-radius: ${({ borderRadius }) => borderRadius[128]};
|
|
1010
|
-
border: 2px solid ${({ tokens }) => tokens.theme.backgroundPrimary};
|
|
1011
|
-
}
|
|
1012
|
-
|
|
1013
|
-
.direction-icon {
|
|
1014
|
-
padding: ${({ spacing }) => spacing["01"]};
|
|
1015
|
-
color: ${({ tokens }) => tokens.core.iconSuccess};
|
|
1016
|
-
|
|
1017
|
-
background-color: color-mix(
|
|
1018
|
-
in srgb,
|
|
1019
|
-
${({ tokens }) => tokens.core.textSuccess} 30%,
|
|
1020
|
-
${({ tokens }) => tokens.theme.backgroundPrimary} 70%
|
|
1021
|
-
);
|
|
1022
|
-
}
|
|
1023
|
-
|
|
1024
|
-
/* -- Sizes --------------------------------------------------- */
|
|
1025
|
-
:host([data-size='sm']) > wui-image:not(.status-image),
|
|
1026
|
-
:host([data-size='sm']) > wui-flex {
|
|
1027
|
-
width: 24px;
|
|
1028
|
-
height: 24px;
|
|
1029
|
-
}
|
|
1030
|
-
|
|
1031
|
-
:host([data-size='lg']) > wui-image:not(.status-image),
|
|
1032
|
-
:host([data-size='lg']) > wui-flex {
|
|
1033
|
-
width: 40px;
|
|
1034
|
-
height: 40px;
|
|
1035
|
-
}
|
|
1036
|
-
|
|
1037
|
-
:host([data-size='sm']) .fallback-icon {
|
|
1038
|
-
height: 16px;
|
|
1039
|
-
width: 16px;
|
|
1040
|
-
padding: ${({ spacing }) => spacing[1]};
|
|
1041
|
-
}
|
|
1042
|
-
|
|
1043
|
-
:host([data-size='lg']) .fallback-icon {
|
|
1044
|
-
height: 32px;
|
|
1045
|
-
width: 32px;
|
|
1046
|
-
padding: ${({ spacing }) => spacing[1]};
|
|
1047
|
-
}
|
|
1048
|
-
|
|
1049
|
-
:host([data-size='sm']) .direction-icon,
|
|
1050
|
-
:host([data-size='sm']) .status-image {
|
|
1051
|
-
transform: translate(40%, 30%);
|
|
1052
|
-
}
|
|
1053
|
-
|
|
1054
|
-
:host([data-size='lg']) .direction-icon,
|
|
1055
|
-
:host([data-size='lg']) .status-image {
|
|
1056
|
-
transform: translate(40%, 10%);
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
|
-
:host([data-size='sm']) .status-image {
|
|
1060
|
-
height: 14px;
|
|
1061
|
-
width: 14px;
|
|
1062
|
-
}
|
|
1063
|
-
|
|
1064
|
-
:host([data-size='lg']) .status-image {
|
|
1065
|
-
height: 20px;
|
|
1066
|
-
width: 20px;
|
|
1067
|
-
}
|
|
1068
|
-
|
|
1069
|
-
/* -- Crop effects --------------------------------------------------- */
|
|
1070
|
-
.swap-crop-left-image,
|
|
1071
|
-
.swap-crop-right-image {
|
|
1072
|
-
position: absolute;
|
|
1073
|
-
top: 0;
|
|
1074
|
-
bottom: 0;
|
|
1075
|
-
}
|
|
1076
|
-
|
|
1077
|
-
.swap-crop-left-image {
|
|
1078
|
-
left: 0;
|
|
1079
|
-
clip-path: inset(0px calc(50% + 1.5px) 0px 0%);
|
|
1080
|
-
}
|
|
1081
|
-
|
|
1082
|
-
.swap-crop-right-image {
|
|
1083
|
-
right: 0;
|
|
1084
|
-
clip-path: inset(0px 0px 0px calc(50% + 1.5px));
|
|
1085
|
-
}
|
|
1086
|
-
`;
|
|
1087
|
-
var __decorate$2 = function(decorators, target, key, desc) {
|
|
1088
|
-
var c = arguments.length, r2 = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1089
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
|
|
1090
|
-
else for (var i2 = decorators.length - 1; i2 >= 0; i2--) if (d = decorators[i2]) r2 = (c < 3 ? d(r2) : c > 3 ? d(target, key, r2) : d(target, key)) || r2;
|
|
1091
|
-
return c > 3 && r2 && Object.defineProperty(target, key, r2), r2;
|
|
1092
|
-
};
|
|
1093
|
-
const ICON_SIZE = {
|
|
1094
|
-
sm: "xxs",
|
|
1095
|
-
lg: "md"
|
|
1096
|
-
};
|
|
1097
|
-
let WuiTransactionThumbnail = class WuiTransactionThumbnail2 extends i {
|
|
1098
|
-
constructor() {
|
|
1099
|
-
super(...arguments);
|
|
1100
|
-
this.type = "approve";
|
|
1101
|
-
this.size = "lg";
|
|
1102
|
-
this.statusImageUrl = "";
|
|
1103
|
-
this.images = [];
|
|
1104
|
-
}
|
|
1105
|
-
render() {
|
|
1106
|
-
return x`<wui-flex>${this.templateVisual()} ${this.templateIcon()}</wui-flex>`;
|
|
1107
|
-
}
|
|
1108
|
-
templateVisual() {
|
|
1109
|
-
this.dataset["size"] = this.size;
|
|
1110
|
-
switch (this.type) {
|
|
1111
|
-
case "trade":
|
|
1112
|
-
return this.swapTemplate();
|
|
1113
|
-
case "fiat":
|
|
1114
|
-
return this.fiatTemplate();
|
|
1115
|
-
case "unknown":
|
|
1116
|
-
return this.unknownTemplate();
|
|
1117
|
-
default:
|
|
1118
|
-
return this.tokenTemplate();
|
|
1119
|
-
}
|
|
1120
|
-
}
|
|
1121
|
-
swapTemplate() {
|
|
1122
|
-
const [firstImageUrl, secondImageUrl] = this.images;
|
|
1123
|
-
const twoImages = this.images.length === 2 && (firstImageUrl || secondImageUrl);
|
|
1124
|
-
if (twoImages) {
|
|
1125
|
-
return x`
|
|
1126
|
-
<wui-image class="swap-crop-left-image" src=${firstImageUrl} alt="Swap image"></wui-image>
|
|
1127
|
-
<wui-image class="swap-crop-right-image" src=${secondImageUrl} alt="Swap image"></wui-image>
|
|
1128
|
-
`;
|
|
1129
|
-
}
|
|
1130
|
-
if (firstImageUrl) {
|
|
1131
|
-
return x`<wui-image src=${firstImageUrl} alt="Swap image"></wui-image>`;
|
|
1132
|
-
}
|
|
1133
|
-
return null;
|
|
1134
|
-
}
|
|
1135
|
-
fiatTemplate() {
|
|
1136
|
-
return x`<wui-icon
|
|
1137
|
-
class="fallback-icon"
|
|
1138
|
-
size=${ICON_SIZE[this.size]}
|
|
1139
|
-
name="dollar"
|
|
1140
|
-
></wui-icon>`;
|
|
1141
|
-
}
|
|
1142
|
-
unknownTemplate() {
|
|
1143
|
-
return x`<wui-icon
|
|
1144
|
-
class="fallback-icon"
|
|
1145
|
-
size=${ICON_SIZE[this.size]}
|
|
1146
|
-
name="questionMark"
|
|
1147
|
-
></wui-icon>`;
|
|
1148
|
-
}
|
|
1149
|
-
tokenTemplate() {
|
|
1150
|
-
const [imageUrl] = this.images;
|
|
1151
|
-
if (imageUrl) {
|
|
1152
|
-
return x`<wui-image src=${imageUrl} alt="Token image"></wui-image> `;
|
|
1153
|
-
}
|
|
1154
|
-
return x`<wui-icon
|
|
1155
|
-
class="fallback-icon"
|
|
1156
|
-
name=${this.type === "nft" ? "image" : "coinPlaceholder"}
|
|
1157
|
-
></wui-icon>`;
|
|
1158
|
-
}
|
|
1159
|
-
templateIcon() {
|
|
1160
|
-
if (this.statusImageUrl) {
|
|
1161
|
-
return x`<wui-image
|
|
1162
|
-
class="status-image"
|
|
1163
|
-
src=${this.statusImageUrl}
|
|
1164
|
-
alt="Status image"
|
|
1165
|
-
></wui-image>`;
|
|
1166
|
-
}
|
|
1167
|
-
return x`<wui-icon
|
|
1168
|
-
class="direction-icon"
|
|
1169
|
-
size=${ICON_SIZE[this.size]}
|
|
1170
|
-
name=${this.getTemplateIcon()}
|
|
1171
|
-
></wui-icon>`;
|
|
1172
|
-
}
|
|
1173
|
-
getTemplateIcon() {
|
|
1174
|
-
if (this.type === "trade") {
|
|
1175
|
-
return "arrowClockWise";
|
|
1176
|
-
}
|
|
1177
|
-
return "arrowBottom";
|
|
1178
|
-
}
|
|
1179
|
-
};
|
|
1180
|
-
WuiTransactionThumbnail.styles = [styles$2];
|
|
1181
|
-
__decorate$2([
|
|
1182
|
-
n()
|
|
1183
|
-
], WuiTransactionThumbnail.prototype, "type", void 0);
|
|
1184
|
-
__decorate$2([
|
|
1185
|
-
n()
|
|
1186
|
-
], WuiTransactionThumbnail.prototype, "size", void 0);
|
|
1187
|
-
__decorate$2([
|
|
1188
|
-
n()
|
|
1189
|
-
], WuiTransactionThumbnail.prototype, "statusImageUrl", void 0);
|
|
1190
|
-
__decorate$2([
|
|
1191
|
-
n({ type: Array })
|
|
1192
|
-
], WuiTransactionThumbnail.prototype, "images", void 0);
|
|
1193
|
-
WuiTransactionThumbnail = __decorate$2([
|
|
1194
|
-
customElement("wui-transaction-thumbnail")
|
|
1195
|
-
], WuiTransactionThumbnail);
|
|
1196
|
-
const styles$1 = css`
|
|
1197
|
-
:host > wui-flex:first-child {
|
|
1198
|
-
gap: ${({ spacing }) => spacing[2]};
|
|
1199
|
-
padding: ${({ spacing }) => spacing[3]};
|
|
1200
|
-
width: 100%;
|
|
1201
|
-
}
|
|
1202
|
-
|
|
1203
|
-
wui-flex {
|
|
1204
|
-
display: flex;
|
|
1205
|
-
flex: 1;
|
|
1206
|
-
}
|
|
1207
|
-
`;
|
|
1208
|
-
var __decorate$1 = function(decorators, target, key, desc) {
|
|
1209
|
-
var c = arguments.length, r2 = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1210
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
|
|
1211
|
-
else for (var i2 = decorators.length - 1; i2 >= 0; i2--) if (d = decorators[i2]) r2 = (c < 3 ? d(r2) : c > 3 ? d(target, key, r2) : d(target, key)) || r2;
|
|
1212
|
-
return c > 3 && r2 && Object.defineProperty(target, key, r2), r2;
|
|
1213
|
-
};
|
|
1214
|
-
let WuiTransactionListItemLoader = class WuiTransactionListItemLoader2 extends i {
|
|
1215
|
-
render() {
|
|
1216
|
-
return x`
|
|
1217
|
-
<wui-flex alignItems="center">
|
|
1218
|
-
<wui-shimmer width="40px" height="40px" rounded></wui-shimmer>
|
|
1219
|
-
<wui-flex flexDirection="column" gap="1">
|
|
1220
|
-
<wui-shimmer width="124px" height="16px" rounded></wui-shimmer>
|
|
1221
|
-
<wui-shimmer width="60px" height="14px" rounded></wui-shimmer>
|
|
1222
|
-
</wui-flex>
|
|
1223
|
-
<wui-shimmer width="24px" height="12px" rounded></wui-shimmer>
|
|
1224
|
-
</wui-flex>
|
|
1225
|
-
`;
|
|
1226
|
-
}
|
|
1227
|
-
};
|
|
1228
|
-
WuiTransactionListItemLoader.styles = [resetStyles, styles$1];
|
|
1229
|
-
WuiTransactionListItemLoader = __decorate$1([
|
|
1230
|
-
customElement("wui-transaction-list-item-loader")
|
|
1231
|
-
], WuiTransactionListItemLoader);
|
|
1232
|
-
const styles = css`
|
|
1233
|
-
:host {
|
|
1234
|
-
min-height: 100%;
|
|
1235
|
-
}
|
|
1236
|
-
|
|
1237
|
-
.group-container[last-group='true'] {
|
|
1238
|
-
padding-bottom: ${({ spacing }) => spacing["3"]};
|
|
1239
|
-
}
|
|
1240
|
-
|
|
1241
|
-
.contentContainer {
|
|
1242
|
-
height: 280px;
|
|
1243
|
-
}
|
|
1244
|
-
|
|
1245
|
-
.contentContainer > wui-icon-box {
|
|
1246
|
-
width: 40px;
|
|
1247
|
-
height: 40px;
|
|
1248
|
-
border-radius: ${({ borderRadius }) => borderRadius["3"]};
|
|
1249
|
-
}
|
|
1250
|
-
|
|
1251
|
-
.contentContainer > .textContent {
|
|
1252
|
-
width: 65%;
|
|
1253
|
-
}
|
|
1254
|
-
|
|
1255
|
-
.emptyContainer {
|
|
1256
|
-
height: 100%;
|
|
1257
|
-
}
|
|
1258
|
-
`;
|
|
1259
|
-
var __decorate = function(decorators, target, key, desc) {
|
|
1260
|
-
var c = arguments.length, r2 = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1261
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
|
|
1262
|
-
else for (var i2 = decorators.length - 1; i2 >= 0; i2--) if (d = decorators[i2]) r2 = (c < 3 ? d(r2) : c > 3 ? d(target, key, r2) : d(target, key)) || r2;
|
|
1263
|
-
return c > 3 && r2 && Object.defineProperty(target, key, r2), r2;
|
|
1264
|
-
};
|
|
1265
|
-
const PAGINATOR_ID = "last-transaction";
|
|
1266
|
-
const LOADING_ITEM_COUNT = 7;
|
|
1267
|
-
let W3mActivityList = class W3mActivityList2 extends i {
|
|
1268
|
-
constructor() {
|
|
1269
|
-
super();
|
|
1270
|
-
this.unsubscribe = [];
|
|
1271
|
-
this.paginationObserver = void 0;
|
|
1272
|
-
this.page = "activity";
|
|
1273
|
-
this.caipAddress = ChainController.state.activeCaipAddress;
|
|
1274
|
-
this.transactionsByYear = TransactionsController.state.transactionsByYear;
|
|
1275
|
-
this.loading = TransactionsController.state.loading;
|
|
1276
|
-
this.empty = TransactionsController.state.empty;
|
|
1277
|
-
this.next = TransactionsController.state.next;
|
|
1278
|
-
TransactionsController.clearCursor();
|
|
1279
|
-
this.unsubscribe.push(...[
|
|
1280
|
-
ChainController.subscribeKey("activeCaipAddress", (val) => {
|
|
1281
|
-
if (val) {
|
|
1282
|
-
if (this.caipAddress !== val) {
|
|
1283
|
-
TransactionsController.resetTransactions();
|
|
1284
|
-
TransactionsController.fetchTransactions(val);
|
|
1285
|
-
}
|
|
1286
|
-
}
|
|
1287
|
-
this.caipAddress = val;
|
|
1288
|
-
}),
|
|
1289
|
-
ChainController.subscribeKey("activeCaipNetwork", () => {
|
|
1290
|
-
this.updateTransactionView();
|
|
1291
|
-
}),
|
|
1292
|
-
TransactionsController.subscribe((val) => {
|
|
1293
|
-
this.transactionsByYear = val.transactionsByYear;
|
|
1294
|
-
this.loading = val.loading;
|
|
1295
|
-
this.empty = val.empty;
|
|
1296
|
-
this.next = val.next;
|
|
1297
|
-
})
|
|
1298
|
-
]);
|
|
1299
|
-
}
|
|
1300
|
-
firstUpdated() {
|
|
1301
|
-
this.updateTransactionView();
|
|
1302
|
-
this.createPaginationObserver();
|
|
1303
|
-
}
|
|
1304
|
-
updated() {
|
|
1305
|
-
this.setPaginationObserver();
|
|
1306
|
-
}
|
|
1307
|
-
disconnectedCallback() {
|
|
1308
|
-
this.unsubscribe.forEach((unsubscribe) => unsubscribe());
|
|
1309
|
-
}
|
|
1310
|
-
render() {
|
|
1311
|
-
return x` ${this.empty ? null : this.templateTransactionsByYear()}
|
|
1312
|
-
${this.loading ? this.templateLoading() : null}
|
|
1313
|
-
${!this.loading && this.empty ? this.templateEmpty() : null}`;
|
|
1314
|
-
}
|
|
1315
|
-
updateTransactionView() {
|
|
1316
|
-
TransactionsController.resetTransactions();
|
|
1317
|
-
if (this.caipAddress) {
|
|
1318
|
-
TransactionsController.fetchTransactions(CoreHelperUtil.getPlainAddress(this.caipAddress));
|
|
1319
|
-
}
|
|
1320
|
-
}
|
|
1321
|
-
templateTransactionsByYear() {
|
|
1322
|
-
const sortedYearKeys = Object.keys(this.transactionsByYear).sort().reverse();
|
|
1323
|
-
return sortedYearKeys.map((year) => {
|
|
1324
|
-
const yearInt = parseInt(year, 10);
|
|
1325
|
-
const sortedMonthIndexes = new Array(12).fill(null).map((_, idx) => {
|
|
1326
|
-
var _a;
|
|
1327
|
-
const groupTitle = TransactionUtil.getTransactionGroupTitle(yearInt, idx);
|
|
1328
|
-
const transactions = (_a = this.transactionsByYear[yearInt]) == null ? void 0 : _a[idx];
|
|
1329
|
-
return {
|
|
1330
|
-
groupTitle,
|
|
1331
|
-
transactions
|
|
1332
|
-
};
|
|
1333
|
-
}).filter(({ transactions }) => transactions).reverse();
|
|
1334
|
-
return sortedMonthIndexes.map(({ groupTitle, transactions }, index) => {
|
|
1335
|
-
const isLastGroup = index === sortedMonthIndexes.length - 1;
|
|
1336
|
-
if (!transactions) {
|
|
1337
|
-
return null;
|
|
1338
|
-
}
|
|
1339
|
-
return x`
|
|
1340
|
-
<wui-flex
|
|
1341
|
-
flexDirection="column"
|
|
1342
|
-
class="group-container"
|
|
1343
|
-
last-group="${isLastGroup ? "true" : "false"}"
|
|
1344
|
-
data-testid="month-indexes"
|
|
1345
|
-
>
|
|
1346
|
-
<wui-flex
|
|
1347
|
-
alignItems="center"
|
|
1348
|
-
flexDirection="row"
|
|
1349
|
-
.padding=${["2", "3", "3", "3"]}
|
|
1350
|
-
>
|
|
1351
|
-
<wui-text variant="md-medium" color="secondary" data-testid="group-title">
|
|
1352
|
-
${groupTitle}
|
|
1353
|
-
</wui-text>
|
|
1354
|
-
</wui-flex>
|
|
1355
|
-
<wui-flex flexDirection="column" gap="2">
|
|
1356
|
-
${this.templateTransactions(transactions, isLastGroup)}
|
|
1357
|
-
</wui-flex>
|
|
1358
|
-
</wui-flex>
|
|
1359
|
-
`;
|
|
1360
|
-
});
|
|
1361
|
-
});
|
|
1362
|
-
}
|
|
1363
|
-
templateRenderTransaction(transaction, isLastTransaction) {
|
|
1364
|
-
const { date, descriptions, direction, images, status, type, transfers, isAllNFT } = this.getTransactionListItemProps(transaction);
|
|
1365
|
-
return x`
|
|
1366
|
-
<wui-transaction-list-item
|
|
1367
|
-
date=${date}
|
|
1368
|
-
.direction=${direction}
|
|
1369
|
-
id=${isLastTransaction && this.next ? PAGINATOR_ID : ""}
|
|
1370
|
-
status=${status}
|
|
1371
|
-
type=${type}
|
|
1372
|
-
.images=${images}
|
|
1373
|
-
.onlyDirectionIcon=${isAllNFT || transfers.length === 1}
|
|
1374
|
-
.descriptions=${descriptions}
|
|
1375
|
-
></wui-transaction-list-item>
|
|
1376
|
-
`;
|
|
1377
|
-
}
|
|
1378
|
-
templateTransactions(transactions, isLastGroup) {
|
|
1379
|
-
return transactions.map((transaction, index) => {
|
|
1380
|
-
const isLastTransaction = isLastGroup && index === transactions.length - 1;
|
|
1381
|
-
return x`${this.templateRenderTransaction(transaction, isLastTransaction)}`;
|
|
1382
|
-
});
|
|
1383
|
-
}
|
|
1384
|
-
emptyStateActivity() {
|
|
1385
|
-
return x`<wui-flex
|
|
1386
|
-
class="emptyContainer"
|
|
1387
|
-
flexGrow="1"
|
|
1388
|
-
flexDirection="column"
|
|
1389
|
-
justifyContent="center"
|
|
1390
|
-
alignItems="center"
|
|
1391
|
-
.padding=${["10", "5", "10", "5"]}
|
|
1392
|
-
gap="5"
|
|
1393
|
-
data-testid="empty-activity-state"
|
|
1394
|
-
>
|
|
1395
|
-
<wui-icon-box color="default" icon="wallet" size="xl"></wui-icon-box>
|
|
1396
|
-
<wui-flex flexDirection="column" alignItems="center" gap="2">
|
|
1397
|
-
<wui-text align="center" variant="lg-medium" color="primary">No Transactions yet</wui-text>
|
|
1398
|
-
<wui-text align="center" variant="lg-regular" color="secondary"
|
|
1399
|
-
>Start trading on dApps <br />
|
|
1400
|
-
to grow your wallet!</wui-text
|
|
1401
|
-
>
|
|
1402
|
-
</wui-flex>
|
|
1403
|
-
</wui-flex>`;
|
|
1404
|
-
}
|
|
1405
|
-
emptyStateAccount() {
|
|
1406
|
-
return x`<wui-flex
|
|
1407
|
-
class="contentContainer"
|
|
1408
|
-
alignItems="center"
|
|
1409
|
-
justifyContent="center"
|
|
1410
|
-
flexDirection="column"
|
|
1411
|
-
gap="4"
|
|
1412
|
-
data-testid="empty-account-state"
|
|
1413
|
-
>
|
|
1414
|
-
<wui-icon-box icon="swapHorizontal" size="lg" color="default"></wui-icon-box>
|
|
1415
|
-
<wui-flex
|
|
1416
|
-
class="textContent"
|
|
1417
|
-
gap="2"
|
|
1418
|
-
flexDirection="column"
|
|
1419
|
-
justifyContent="center"
|
|
1420
|
-
flexDirection="column"
|
|
1421
|
-
>
|
|
1422
|
-
<wui-text variant="md-regular" align="center" color="primary">No activity yet</wui-text>
|
|
1423
|
-
<wui-text variant="sm-regular" align="center" color="secondary"
|
|
1424
|
-
>Your next transactions will appear here</wui-text
|
|
1425
|
-
>
|
|
1426
|
-
</wui-flex>
|
|
1427
|
-
<wui-link @click=${this.onReceiveClick.bind(this)}>Trade</wui-link>
|
|
1428
|
-
</wui-flex>`;
|
|
1429
|
-
}
|
|
1430
|
-
templateEmpty() {
|
|
1431
|
-
if (this.page === "account") {
|
|
1432
|
-
return x`${this.emptyStateAccount()}`;
|
|
1433
|
-
}
|
|
1434
|
-
return x`${this.emptyStateActivity()}`;
|
|
1435
|
-
}
|
|
1436
|
-
templateLoading() {
|
|
1437
|
-
if (this.page === "activity") {
|
|
1438
|
-
return Array(LOADING_ITEM_COUNT).fill(x` <wui-transaction-list-item-loader></wui-transaction-list-item-loader> `).map((item) => item);
|
|
1439
|
-
}
|
|
1440
|
-
return null;
|
|
1441
|
-
}
|
|
1442
|
-
onReceiveClick() {
|
|
1443
|
-
RouterController.push("WalletReceive");
|
|
1444
|
-
}
|
|
1445
|
-
createPaginationObserver() {
|
|
1446
|
-
const { projectId } = OptionsController.state;
|
|
1447
|
-
this.paginationObserver = new IntersectionObserver(([element]) => {
|
|
1448
|
-
if ((element == null ? void 0 : element.isIntersecting) && !this.loading) {
|
|
1449
|
-
TransactionsController.fetchTransactions(CoreHelperUtil.getPlainAddress(this.caipAddress));
|
|
1450
|
-
EventsController.sendEvent({
|
|
1451
|
-
type: "track",
|
|
1452
|
-
event: "LOAD_MORE_TRANSACTIONS",
|
|
1453
|
-
properties: {
|
|
1454
|
-
address: CoreHelperUtil.getPlainAddress(this.caipAddress),
|
|
1455
|
-
projectId,
|
|
1456
|
-
cursor: this.next,
|
|
1457
|
-
isSmartAccount: getPreferredAccountType(ChainController.state.activeChain) === W3mFrameRpcConstants.ACCOUNT_TYPES.SMART_ACCOUNT
|
|
1458
|
-
}
|
|
1459
|
-
});
|
|
1460
|
-
}
|
|
1461
|
-
}, {});
|
|
1462
|
-
this.setPaginationObserver();
|
|
1463
|
-
}
|
|
1464
|
-
setPaginationObserver() {
|
|
1465
|
-
var _a, _b, _c;
|
|
1466
|
-
(_a = this.paginationObserver) == null ? void 0 : _a.disconnect();
|
|
1467
|
-
const lastItem = (_b = this.shadowRoot) == null ? void 0 : _b.querySelector(`#${PAGINATOR_ID}`);
|
|
1468
|
-
if (lastItem) {
|
|
1469
|
-
(_c = this.paginationObserver) == null ? void 0 : _c.observe(lastItem);
|
|
1470
|
-
}
|
|
1471
|
-
}
|
|
1472
|
-
getTransactionListItemProps(transaction) {
|
|
1473
|
-
var _a, _b, _c;
|
|
1474
|
-
const date = DateUtil.formatDate((_a = transaction == null ? void 0 : transaction.metadata) == null ? void 0 : _a.minedAt);
|
|
1475
|
-
const transfers = TransactionUtil.mergeTransfers(transaction == null ? void 0 : transaction.transfers);
|
|
1476
|
-
const descriptions = TransactionUtil.getTransactionDescriptions(transaction, transfers);
|
|
1477
|
-
const transfer = transfers == null ? void 0 : transfers[0];
|
|
1478
|
-
const isAllNFT = Boolean(transfer) && (transfers == null ? void 0 : transfers.every((item) => Boolean(item.nft_info)));
|
|
1479
|
-
const images = TransactionUtil.getTransactionImages(transfers);
|
|
1480
|
-
return {
|
|
1481
|
-
date,
|
|
1482
|
-
direction: transfer == null ? void 0 : transfer.direction,
|
|
1483
|
-
descriptions,
|
|
1484
|
-
isAllNFT,
|
|
1485
|
-
images,
|
|
1486
|
-
status: (_b = transaction.metadata) == null ? void 0 : _b.status,
|
|
1487
|
-
transfers,
|
|
1488
|
-
type: (_c = transaction.metadata) == null ? void 0 : _c.operationType
|
|
1489
|
-
};
|
|
1490
|
-
}
|
|
1491
|
-
};
|
|
1492
|
-
W3mActivityList.styles = styles;
|
|
1493
|
-
__decorate([
|
|
1494
|
-
n()
|
|
1495
|
-
], W3mActivityList.prototype, "page", void 0);
|
|
1496
|
-
__decorate([
|
|
1497
|
-
r()
|
|
1498
|
-
], W3mActivityList.prototype, "caipAddress", void 0);
|
|
1499
|
-
__decorate([
|
|
1500
|
-
r()
|
|
1501
|
-
], W3mActivityList.prototype, "transactionsByYear", void 0);
|
|
1502
|
-
__decorate([
|
|
1503
|
-
r()
|
|
1504
|
-
], W3mActivityList.prototype, "loading", void 0);
|
|
1505
|
-
__decorate([
|
|
1506
|
-
r()
|
|
1507
|
-
], W3mActivityList.prototype, "empty", void 0);
|
|
1508
|
-
__decorate([
|
|
1509
|
-
r()
|
|
1510
|
-
], W3mActivityList.prototype, "next", void 0);
|
|
1511
|
-
W3mActivityList = __decorate([
|
|
1512
|
-
customElement("w3m-activity-list")
|
|
1513
|
-
], W3mActivityList);
|
|
1514
|
-
//# sourceMappingURL=index-B-AePZns.js.map
|