@multiversx/sdk-dapp-liquidity 1.0.12 → 1.0.14
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/ConstantsUtil-BinYIDR2.mjs +8 -0
- package/ConstantsUtil-CbnVdQ5P.js +8 -0
- package/add-D-ECcdUh.mjs +19 -0
- package/add-Diz8heiY.js +20 -0
- package/all-wallets-_iOQf3bl.js +11 -0
- package/all-wallets-puIIQy3Y.mjs +10 -0
- package/app-store-BGTKFL27.js +22 -0
- package/app-store-Bsf7w3pv.mjs +21 -0
- package/apple-Cw8e8IGH.mjs +22 -0
- package/apple-DF7n_Yzl.js +23 -0
- package/arrow-bottom-Cp2C4fQv.mjs +12 -0
- package/arrow-bottom-DTvIR3s3.js +13 -0
- package/arrow-bottom-circle-CN6i5mHz.mjs +15 -0
- package/arrow-bottom-circle-CzPwiwWH.js +16 -0
- package/arrow-left-9VFYHQSW.js +13 -0
- package/arrow-left-BDQHoEvX.mjs +12 -0
- package/arrow-right-BxkuSpWU.mjs +12 -0
- package/arrow-right-DBLQ6w92.js +13 -0
- package/arrow-top-BiQd5Aey.js +13 -0
- package/arrow-top-BrLVX4Rj.mjs +12 -0
- package/bank-B7EC6Kdz.mjs +18 -0
- package/bank-CvPn9sfV.js +19 -0
- package/{bignumber-CKZkoo0g.mjs → bignumber-2Z7uapuD.mjs} +6 -6
- package/{bignumber-B8vjg9qn.js → bignumber-D1Wl54dL.js} +6 -6
- package/bin-BXO1kNZh.js +9 -0
- package/bin-CwiYVJ1L.mjs +8 -0
- package/bitcoin-C3kBVar_.mjs +17 -0
- package/bitcoin-DAvQGpeP.js +3251 -0
- package/bitcoin-dNBGbS2B.mjs +3251 -0
- package/bitcoin-k6bvmzMA.js +18 -0
- package/browser-ShRLuKKz.mjs +18 -0
- package/browser-t7nfT7HL.js +19 -0
- package/card-BJg5bdoM.mjs +18 -0
- package/card-hxUDXttT.js +19 -0
- package/checkmark-BpR0Yy93.mjs +15 -0
- package/checkmark-D9AVWgl5.js +16 -0
- package/checkmark-bold-D3Xcby1U.mjs +12 -0
- package/checkmark-bold-De02hde8.js +13 -0
- package/chevron-bottom-DcBf7T5F.js +13 -0
- package/chevron-bottom-DfGpWIz7.mjs +12 -0
- package/chevron-left-BKvYVnUo.js +13 -0
- package/chevron-left-DGSG9WJQ.mjs +12 -0
- package/chevron-right-BLgYIEeO.js +13 -0
- package/chevron-right-C2nsTx_Y.mjs +12 -0
- package/chevron-top-CwFOEFy8.js +13 -0
- package/chevron-top-vk-9DvUU.mjs +12 -0
- package/chrome-store-4H_ie3vA.mjs +65 -0
- package/chrome-store-BWarxVMl.js +66 -0
- package/circle-BtqWJU0_.mjs +8 -0
- package/circle-DYjG6o7-.js +9 -0
- package/clock-Ba5SM-pl.mjs +12 -0
- package/clock-DPzNREdU.js +13 -0
- package/close-CJHKFOyp.mjs +12 -0
- package/close-DDWnJdJe.js +13 -0
- package/coinPlaceholder-Cbba3D1H.mjs +12 -0
- package/coinPlaceholder-DdxQIc2D.js +13 -0
- package/compass-CugCxeSC.js +13 -0
- package/compass-DbN5DkTl.mjs +12 -0
- package/copy-CHSZprYJ.mjs +19 -0
- package/copy-En5h5Uhu.js +20 -0
- package/cursor-DCRkvEhr.mjs +7 -0
- package/cursor-DnEQtrUK.js +8 -0
- package/cursor-transparent-CU8lk-xg.js +17 -0
- package/cursor-transparent-CliETg4d.mjs +16 -0
- package/desktop-BgD7aypB.js +14 -0
- package/desktop-Cg5I32-p.mjs +13 -0
- package/disconnect-CCyMbAdw.js +13 -0
- package/disconnect-Cp2vRWB2.mjs +12 -0
- package/discord-B1d-qeSk.mjs +21 -0
- package/discord-BEB5klec.js +22 -0
- package/email-CorlePKz.js +873 -0
- package/email-Znno7H8_.mjs +878 -0
- package/embedded-wallet-B9ro9Tel.js +549 -0
- package/embedded-wallet-CnTWeseG.mjs +552 -0
- package/ethereum-BRcsRjUU.mjs +14 -0
- package/ethereum-CZ_xe09e.js +15 -0
- package/etherscan-BZKGpKp8.mjs +10 -0
- package/etherscan-DtLi-C3z.js +11 -0
- package/exclamation-triangle-BLNnBLEc.js +9 -0
- package/exclamation-triangle-CFThXxRT.mjs +8 -0
- package/extension-CwUepr-W.mjs +12 -0
- package/extension-DOD67G1k.js +13 -0
- package/external-link-CZkQS5XK.js +13 -0
- package/external-link-ClYNKSPt.mjs +12 -0
- package/facebook-CFjrd4my.mjs +30 -0
- package/facebook-CbE6K6AK.js +31 -0
- package/farcaster-Ba7_C-Vm.js +17 -0
- package/farcaster-DyVJtVS9.mjs +16 -0
- package/filters-CpHaFNjT.mjs +12 -0
- package/filters-w5LC-r6e.js +13 -0
- package/github-CeO70C3E.mjs +22 -0
- package/github-uLFBWAa5.js +23 -0
- package/google-CyOdUlbw.mjs +22 -0
- package/google-ILGK-opP.js +23 -0
- package/help-circle-Dh3dRNoB.mjs +16 -0
- package/help-circle-HUMbz_KN.js +17 -0
- package/id-Cy3Qkrvb.js +17 -0
- package/id-D-Q0uPFM.mjs +16 -0
- package/if-defined-CJ5EZLw2.js +815 -0
- package/if-defined-DjC5UMfF.mjs +815 -0
- package/image-BTGOf8bb.mjs +8 -0
- package/image-WFQO5bWa.js +9 -0
- package/index--O5ypTeK.mjs +70 -0
- package/index--Vg7VI9t.js +173 -0
- package/index-2iRSO1sa.mjs +9964 -0
- package/index-42Rpweo5.mjs +95 -0
- package/index-70kjE43k.mjs +90 -0
- package/index-8VyNYS01.js +273 -0
- package/index-B-dx8l0g.mjs +82 -0
- package/index-BB0nW9RB.mjs +198 -0
- package/index-BBwuv2SS.js +97 -0
- package/index-BIe-kofv.mjs +273 -0
- package/index-BQf6VHil.js +278 -0
- package/index-BWIZXhFv.mjs +630 -0
- package/index-BXkamf-I.js +337 -0
- package/index-BYTxCmKH.js +64 -0
- package/index-BYoOxo0S.js +218 -0
- package/index-Ba0tVdql.js +200 -0
- package/index-BdOAPWyt.mjs +210 -0
- package/index-BirWzf8c.mjs +71 -0
- package/index-BnCJUHtW.mjs +346 -0
- package/index-BuL2FC61.mjs +216 -0
- package/index-BxSUTfaY.js +88 -0
- package/index-C49C5Rxf.js +743 -0
- package/index-CNMDBpW7.js +346 -0
- package/index-CP0CGjqQ.mjs +263 -0
- package/index-CQaHcTZM.mjs +86 -0
- package/index-CRGXQei1.js +178 -0
- package/index-CSykUIfV.mjs +176 -0
- package/index-CWIHaLkQ.mjs +101 -0
- package/index-CZSDJd0P.mjs +1070 -0
- package/index-CZaV8JgR.mjs +49 -0
- package/index-CZjdy6QP.js +101 -0
- package/index-C_lIGGlC.js +632 -0
- package/index-CcgeRPs2.mjs +57 -0
- package/index-CeY_DRuc.js +566 -0
- package/index-ChFNkSxT.js +92 -0
- package/index-CkjZc20w.js +677 -0
- package/index-CtFcWwAd.js +72 -0
- package/index-D0mOfznC.mjs +362 -0
- package/index-DAtWLY21.js +84 -0
- package/index-DEs8H3w2.js +262 -0
- package/index-DLnxotbC.mjs +566 -0
- package/index-DN4fGDgg.mjs +743 -0
- package/index-DT_mc1hV.mjs +335 -0
- package/index-DZEwxUMS.js +59 -0
- package/index-DaRH_4bD.js +9939 -0
- package/index-Daok2ZKn.js +73 -0
- package/index-DomzHmwk.js +210 -0
- package/index-Dx7NyDyv.mjs +101 -0
- package/index-DyGir6_2.mjs +675 -0
- package/index-GglJmM2C.js +2237 -0
- package/index-H5b7UTeJ.mjs +173 -0
- package/index-NNZ1lNuc.mjs +168 -0
- package/index-RJd-gQcv.mjs +2235 -0
- package/index-dnFzVpGy.js +103 -0
- package/index-kwVLu8EV.js +168 -0
- package/index-miQwZPmn.js +51 -0
- package/index-oCj_SpOa.mjs +62 -0
- package/index-pNK-h_x9.js +1069 -0
- package/index-r6Kre1rx.js +362 -0
- package/index-xBD0nXoB.mjs +276 -0
- package/index.js +3 -3
- package/index.mjs +3 -3
- package/info-BKNAiN0k.js +8 -0
- package/info-DQE0s-A4.mjs +7 -0
- package/info-circle-C3uTocjH.js +17 -0
- package/info-circle-CIn6yeQo.mjs +16 -0
- package/lightbulb-CB-BmIop.js +8 -0
- package/lightbulb-Gv7IbnzO.mjs +7 -0
- package/mail-CFYm95wn.mjs +12 -0
- package/mail-GEwk-Fzr.js +13 -0
- package/mobile-CZ7ZBfa5.js +14 -0
- package/mobile-OIbnpFsU.mjs +13 -0
- package/more-C8N_RV55.mjs +15 -0
- package/more-CiQpPZwq.js +16 -0
- package/network-placeholder-CxEcczEx.mjs +18 -0
- package/network-placeholder-DwR8E8hP.js +19 -0
- package/nftPlaceholder-BFexVcGX.js +13 -0
- package/nftPlaceholder-MiYL110I.mjs +12 -0
- package/off-BNiMlpUU.mjs +8 -0
- package/off-iJHSK3Z7.js +9 -0
- package/onramp-Bs8HHFFY.js +1474 -0
- package/onramp-C6fuQfX7.mjs +1480 -0
- package/package.json +11 -11
- package/play-store-B4ssIYUA.js +37 -0
- package/play-store-D6nmQXhX.mjs +36 -0
- package/plus-Bh7z7Oc0.js +18 -0
- package/plus-C8ioZuCD.mjs +17 -0
- package/qr-code-CSVwaBLf.mjs +10 -0
- package/qr-code-YgtXPokK.js +11 -0
- package/react-BWxe90Ar.mjs +6342 -0
- package/react-BzZcQig5.js +6342 -0
- package/react-C_wTMVq_.js +23003 -0
- package/react-M-DnxvZl.mjs +23003 -0
- package/reactjs/components/BridgeForm/BridgeForm.js +2 -1
- package/reactjs/components/BridgeForm/BridgeForm.mjs +2 -1
- package/reactjs/components/Connect/BridgeAccountDisplay.js +3 -2
- package/reactjs/components/Connect/BridgeAccountDisplay.mjs +3 -2
- package/reactjs/components/Connect/CustomConnectButton.js +3 -2
- package/reactjs/components/Connect/CustomConnectButton.mjs +3 -2
- package/reactjs/components/Connect/SwitchChainButton.js +4 -3
- package/reactjs/components/Connect/SwitchChainButton.mjs +4 -3
- package/reactjs/components/DisplayAmount/DisplayAmount.js +1 -1
- package/reactjs/components/DisplayAmount/DisplayAmount.mjs +1 -1
- package/reactjs/components/TokenSelector/components/TokenItem.js +1 -1
- package/reactjs/components/TokenSelector/components/TokenItem.mjs +1 -1
- package/reactjs/hooks/useAccount.d.ts +4 -4
- package/reactjs/hooks/useAccount.js +3 -2
- package/reactjs/hooks/useAccount.mjs +3 -2
- package/reactjs/hooks/useGetChainId.js +1 -1
- package/reactjs/hooks/useGetChainId.mjs +1 -1
- package/reactjs/index.js +3 -3
- package/reactjs/index.mjs +3 -3
- package/reactjs/init/init.js +4 -3
- package/reactjs/init/init.mjs +4 -3
- package/reactjs/init/tests/init.spec.js +2 -2
- package/reactjs/init/tests/init.spec.mjs +2 -2
- package/reactjs/queries/useGetEvmTokensBalances.query.js +3 -2
- package/reactjs/queries/useGetEvmTokensBalances.query.mjs +3 -2
- package/reactjs/reexports.js +3 -3
- package/reactjs/reexports.mjs +3 -3
- package/reactjs/utils/getCleanStringAmount.js +1 -1
- package/reactjs/utils/getCleanStringAmount.mjs +1 -1
- package/reactjs/utils/hasEnoughFunds.js +1 -1
- package/reactjs/utils/hasEnoughFunds.mjs +1 -1
- package/reactjs/utils/isStringFloat.js +1 -1
- package/reactjs/utils/isStringFloat.mjs +1 -1
- package/reactjs/utils/roundAmount.js +1 -1
- package/reactjs/utils/roundAmount.mjs +1 -1
- package/receive-CK0hRQPr.js +212 -0
- package/receive-CQcD6bZf.mjs +212 -0
- package/recycle-horizontal--x5cMoTE.js +14 -0
- package/recycle-horizontal-QI0xtDHK.mjs +13 -0
- package/ref-CqxfRkBm.mjs +41 -0
- package/ref-FGI2cUQB.js +41 -0
- package/refresh-CFNHjhDi.js +13 -0
- package/refresh-CSOC1NUY.mjs +12 -0
- package/reown-logo-BfU5xFX5.js +17 -0
- package/reown-logo-CZAEp1jU.mjs +16 -0
- package/search-Do_rb-9-.mjs +12 -0
- package/search-V9CGMHkm.js +13 -0
- package/send-D-5G7tDL.mjs +1204 -0
- package/send-D4yYsIHV.mjs +19 -0
- package/send-DoiSHLsX.js +1202 -0
- package/send-_jfNFrys.js +20 -0
- package/socials-BL7-97fT.mjs +758 -0
- package/socials-DF0CK9cN.js +756 -0
- package/solana-BQ0Jh8lh.js +18 -0
- package/solana-YAkDp6j_.mjs +17 -0
- package/swapHorizontal-DOIo-Ccx.mjs +12 -0
- package/swapHorizontal-OHKtz4Gu.js +13 -0
- package/swapHorizontalBold-D7QmFj-c.js +13 -0
- package/swapHorizontalBold-DDroA0Af.mjs +12 -0
- package/swapHorizontalMedium-CU_v0kFz.mjs +20 -0
- package/swapHorizontalMedium-D-yMmtml.js +21 -0
- package/swapHorizontalRoundedBold-CHvbmnjw.js +13 -0
- package/swapHorizontalRoundedBold-DXMH0sgK.mjs +12 -0
- package/swapVertical-CH7fTK6w.js +13 -0
- package/swapVertical-HJZ6rFcr.mjs +12 -0
- package/swaps-CETflhdU.js +1952 -0
- package/swaps-DRUV6d3p.mjs +1954 -0
- package/telegram-CsCauOwj.mjs +20 -0
- package/telegram-DKEcF_Tq.js +21 -0
- package/three-dots-B-7hr8Nl.js +10 -0
- package/three-dots-LNZ_fjP7.mjs +9 -0
- package/transactions-BTTsGV2W.mjs +37 -0
- package/transactions-mpNNlClw.js +37 -0
- package/twitch-CCWVT2ij.js +23 -0
- package/twitch-Dg1CCQvd.mjs +22 -0
- package/twitterIcon-BjR09Cj9.mjs +10 -0
- package/twitterIcon-CeEs0iDJ.js +11 -0
- package/verify-B8WZq7kt.mjs +12 -0
- package/verify-filled-BeqC1imk.mjs +12 -0
- package/verify-filled-C-mv3ApD.js +13 -0
- package/verify-yATdPqt-.js +13 -0
- package/w3m-modal-3GziKj7h.js +1254 -0
- package/w3m-modal-81Z5PngE.mjs +1255 -0
- package/wallet-BMXEH23x.js +13 -0
- package/wallet-CNAVQCfm.mjs +12 -0
- package/wallet-placeholder-CQ-7CmVN.mjs +18 -0
- package/wallet-placeholder-CdoQy2e6.js +19 -0
- package/walletconnect-ACr-R1QZ.mjs +38 -0
- package/walletconnect-BWSkiS2F.js +39 -0
- package/warning-circle-CYnuYwpt.js +17 -0
- package/warning-circle-HV2lOiCj.mjs +16 -0
- package/x-CW5dozRj.js +17 -0
- package/x-Cgm2OFpL.mjs +16 -0
- package/x-mark-CR8SpZvu.js +8 -0
- package/x-mark-u0KJjUJ1.mjs +7 -0
- package/index-B4Eq5P3w.mjs +0 -91
- package/index-C4WV9nam.js +0 -329
- package/index-CWMcKi_X.js +0 -107
- package/index-D8E0O3qL.mjs +0 -68744
- package/index-DJ8CdHSw.mjs +0 -107
- package/index-nigVQYBu.js +0 -68665
- package/react-C43nEIqn.js +0 -3133
- package/react-DKUsVej7.js +0 -50
- package/react-Dp0H8q2z.mjs +0 -50
- package/react-wMhOUFOm.mjs +0 -3133
- package/w3m-modal-DLyg7Voy.js +0 -356
- package/w3m-modal-hC-B8qZP.mjs +0 -356
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
const bitcoin = require("./bitcoin-DAvQGpeP.js");
|
|
4
|
+
const ifDefined = require("./if-defined-CJ5EZLw2.js");
|
|
5
|
+
const react = require("./react-BzZcQig5.js");
|
|
6
|
+
const index = require("./index-kwVLu8EV.js");
|
|
7
|
+
const styles = bitcoin.i`
|
|
8
|
+
:host {
|
|
9
|
+
--prev-height: 0px;
|
|
10
|
+
--new-height: 0px;
|
|
11
|
+
display: block;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
div.w3m-router-container {
|
|
15
|
+
transform: translateY(0);
|
|
16
|
+
opacity: 1;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
div.w3m-router-container[view-direction='prev'] {
|
|
20
|
+
animation:
|
|
21
|
+
slide-left-out 150ms forwards ease,
|
|
22
|
+
slide-left-in 150ms forwards ease;
|
|
23
|
+
animation-delay: 0ms, 200ms;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
div.w3m-router-container[view-direction='next'] {
|
|
27
|
+
animation:
|
|
28
|
+
slide-right-out 150ms forwards ease,
|
|
29
|
+
slide-right-in 150ms forwards ease;
|
|
30
|
+
animation-delay: 0ms, 200ms;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@keyframes slide-left-out {
|
|
34
|
+
from {
|
|
35
|
+
transform: translateX(0px);
|
|
36
|
+
opacity: 1;
|
|
37
|
+
}
|
|
38
|
+
to {
|
|
39
|
+
transform: translateX(10px);
|
|
40
|
+
opacity: 0;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@keyframes slide-left-in {
|
|
45
|
+
from {
|
|
46
|
+
transform: translateX(-10px);
|
|
47
|
+
opacity: 0;
|
|
48
|
+
}
|
|
49
|
+
to {
|
|
50
|
+
transform: translateX(0);
|
|
51
|
+
opacity: 1;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@keyframes slide-right-out {
|
|
56
|
+
from {
|
|
57
|
+
transform: translateX(0px);
|
|
58
|
+
opacity: 1;
|
|
59
|
+
}
|
|
60
|
+
to {
|
|
61
|
+
transform: translateX(-10px);
|
|
62
|
+
opacity: 0;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@keyframes slide-right-in {
|
|
67
|
+
from {
|
|
68
|
+
transform: translateX(10px);
|
|
69
|
+
opacity: 0;
|
|
70
|
+
}
|
|
71
|
+
to {
|
|
72
|
+
transform: translateX(0);
|
|
73
|
+
opacity: 1;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
`;
|
|
77
|
+
var __decorate = function(decorators, target, key, desc) {
|
|
78
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
79
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
80
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
81
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
82
|
+
};
|
|
83
|
+
exports.W3mRouter = class W3mRouter extends bitcoin.i$1 {
|
|
84
|
+
constructor() {
|
|
85
|
+
super();
|
|
86
|
+
this.resizeObserver = void 0;
|
|
87
|
+
this.prevHeight = "0px";
|
|
88
|
+
this.prevHistoryLength = 1;
|
|
89
|
+
this.unsubscribe = [];
|
|
90
|
+
this.view = react.RouterController.state.view;
|
|
91
|
+
this.viewDirection = "";
|
|
92
|
+
this.unsubscribe.push(react.RouterController.subscribeKey("view", (val) => this.onViewChange(val)));
|
|
93
|
+
}
|
|
94
|
+
firstUpdated() {
|
|
95
|
+
var _a;
|
|
96
|
+
this.resizeObserver = new ResizeObserver(([content]) => {
|
|
97
|
+
const height = `${content == null ? void 0 : content.contentRect.height}px`;
|
|
98
|
+
if (this.prevHeight !== "0px") {
|
|
99
|
+
this.style.setProperty("--prev-height", this.prevHeight);
|
|
100
|
+
this.style.setProperty("--new-height", height);
|
|
101
|
+
this.style.animation = "w3m-view-height 150ms forwards ease";
|
|
102
|
+
this.style.height = "auto";
|
|
103
|
+
}
|
|
104
|
+
setTimeout(() => {
|
|
105
|
+
this.prevHeight = height;
|
|
106
|
+
this.style.animation = "unset";
|
|
107
|
+
}, bitcoin.ConstantsUtil.ANIMATION_DURATIONS.ModalHeight);
|
|
108
|
+
});
|
|
109
|
+
(_a = this.resizeObserver) == null ? void 0 : _a.observe(this.getWrapper());
|
|
110
|
+
}
|
|
111
|
+
disconnectedCallback() {
|
|
112
|
+
var _a;
|
|
113
|
+
(_a = this.resizeObserver) == null ? void 0 : _a.unobserve(this.getWrapper());
|
|
114
|
+
this.unsubscribe.forEach((unsubscribe) => unsubscribe());
|
|
115
|
+
}
|
|
116
|
+
render() {
|
|
117
|
+
return bitcoin.x`<div class="w3m-router-container" view-direction="${this.viewDirection}">
|
|
118
|
+
${this.viewTemplate()}
|
|
119
|
+
</div>`;
|
|
120
|
+
}
|
|
121
|
+
viewTemplate() {
|
|
122
|
+
switch (this.view) {
|
|
123
|
+
case "AccountSettings":
|
|
124
|
+
return bitcoin.x`<w3m-account-settings-view></w3m-account-settings-view>`;
|
|
125
|
+
case "Account":
|
|
126
|
+
return bitcoin.x`<w3m-account-view></w3m-account-view>`;
|
|
127
|
+
case "AllWallets":
|
|
128
|
+
return bitcoin.x`<w3m-all-wallets-view></w3m-all-wallets-view>`;
|
|
129
|
+
case "ApproveTransaction":
|
|
130
|
+
return bitcoin.x`<w3m-approve-transaction-view></w3m-approve-transaction-view>`;
|
|
131
|
+
case "BuyInProgress":
|
|
132
|
+
return bitcoin.x`<w3m-buy-in-progress-view></w3m-buy-in-progress-view>`;
|
|
133
|
+
case "ChooseAccountName":
|
|
134
|
+
return bitcoin.x`<w3m-choose-account-name-view></w3m-choose-account-name-view>`;
|
|
135
|
+
case "Connect":
|
|
136
|
+
return bitcoin.x`<w3m-connect-view></w3m-connect-view>`;
|
|
137
|
+
case "Create":
|
|
138
|
+
return bitcoin.x`<w3m-connect-view walletGuide="explore"></w3m-connect-view>`;
|
|
139
|
+
case "ConnectingWalletConnect":
|
|
140
|
+
return bitcoin.x`<w3m-connecting-wc-view></w3m-connecting-wc-view>`;
|
|
141
|
+
case "ConnectingWalletConnectBasic":
|
|
142
|
+
return bitcoin.x`<w3m-connecting-wc-basic-view></w3m-connecting-wc-basic-view>`;
|
|
143
|
+
case "ConnectingExternal":
|
|
144
|
+
return bitcoin.x`<w3m-connecting-external-view></w3m-connecting-external-view>`;
|
|
145
|
+
case "ConnectingSiwe":
|
|
146
|
+
return bitcoin.x`<w3m-connecting-siwe-view></w3m-connecting-siwe-view>`;
|
|
147
|
+
case "ConnectWallets":
|
|
148
|
+
return bitcoin.x`<w3m-connect-wallets-view></w3m-connect-wallets-view>`;
|
|
149
|
+
case "ConnectSocials":
|
|
150
|
+
return bitcoin.x`<w3m-connect-socials-view></w3m-connect-socials-view>`;
|
|
151
|
+
case "ConnectingSocial":
|
|
152
|
+
return bitcoin.x`<w3m-connecting-social-view></w3m-connecting-social-view>`;
|
|
153
|
+
case "Downloads":
|
|
154
|
+
return bitcoin.x`<w3m-downloads-view></w3m-downloads-view>`;
|
|
155
|
+
case "EmailLogin":
|
|
156
|
+
return bitcoin.x`<w3m-email-login-view></w3m-email-login-view>`;
|
|
157
|
+
case "EmailVerifyOtp":
|
|
158
|
+
return bitcoin.x`<w3m-email-verify-otp-view></w3m-email-verify-otp-view>`;
|
|
159
|
+
case "EmailVerifyDevice":
|
|
160
|
+
return bitcoin.x`<w3m-email-verify-device-view></w3m-email-verify-device-view>`;
|
|
161
|
+
case "GetWallet":
|
|
162
|
+
return bitcoin.x`<w3m-get-wallet-view></w3m-get-wallet-view>`;
|
|
163
|
+
case "Networks":
|
|
164
|
+
return bitcoin.x`<w3m-networks-view></w3m-networks-view>`;
|
|
165
|
+
case "SwitchNetwork":
|
|
166
|
+
return bitcoin.x`<w3m-network-switch-view></w3m-network-switch-view>`;
|
|
167
|
+
case "ProfileWallets":
|
|
168
|
+
return bitcoin.x`<w3m-profile-wallets-view></w3m-profile-wallets-view>`;
|
|
169
|
+
case "Transactions":
|
|
170
|
+
return bitcoin.x`<w3m-transactions-view></w3m-transactions-view>`;
|
|
171
|
+
case "OnRampProviders":
|
|
172
|
+
return bitcoin.x`<w3m-onramp-providers-view></w3m-onramp-providers-view>`;
|
|
173
|
+
case "OnRampActivity":
|
|
174
|
+
return bitcoin.x`<w3m-onramp-activity-view></w3m-onramp-activity-view>`;
|
|
175
|
+
case "OnRampTokenSelect":
|
|
176
|
+
return bitcoin.x`<w3m-onramp-token-select-view></w3m-onramp-token-select-view>`;
|
|
177
|
+
case "OnRampFiatSelect":
|
|
178
|
+
return bitcoin.x`<w3m-onramp-fiat-select-view></w3m-onramp-fiat-select-view>`;
|
|
179
|
+
case "UpgradeEmailWallet":
|
|
180
|
+
return bitcoin.x`<w3m-upgrade-wallet-view></w3m-upgrade-wallet-view>`;
|
|
181
|
+
case "UpdateEmailWallet":
|
|
182
|
+
return bitcoin.x`<w3m-update-email-wallet-view></w3m-update-email-wallet-view>`;
|
|
183
|
+
case "UpdateEmailPrimaryOtp":
|
|
184
|
+
return bitcoin.x`<w3m-update-email-primary-otp-view></w3m-update-email-primary-otp-view>`;
|
|
185
|
+
case "UpdateEmailSecondaryOtp":
|
|
186
|
+
return bitcoin.x`<w3m-update-email-secondary-otp-view></w3m-update-email-secondary-otp-view>`;
|
|
187
|
+
case "UnsupportedChain":
|
|
188
|
+
return bitcoin.x`<w3m-unsupported-chain-view></w3m-unsupported-chain-view>`;
|
|
189
|
+
case "Swap":
|
|
190
|
+
return bitcoin.x`<w3m-swap-view></w3m-swap-view>`;
|
|
191
|
+
case "SwapSelectToken":
|
|
192
|
+
return bitcoin.x`<w3m-swap-select-token-view></w3m-swap-select-token-view>`;
|
|
193
|
+
case "SwapPreview":
|
|
194
|
+
return bitcoin.x`<w3m-swap-preview-view></w3m-swap-preview-view>`;
|
|
195
|
+
case "WalletSend":
|
|
196
|
+
return bitcoin.x`<w3m-wallet-send-view></w3m-wallet-send-view>`;
|
|
197
|
+
case "WalletSendSelectToken":
|
|
198
|
+
return bitcoin.x`<w3m-wallet-send-select-token-view></w3m-wallet-send-select-token-view>`;
|
|
199
|
+
case "WalletSendPreview":
|
|
200
|
+
return bitcoin.x`<w3m-wallet-send-preview-view></w3m-wallet-send-preview-view>`;
|
|
201
|
+
case "WhatIsABuy":
|
|
202
|
+
return bitcoin.x`<w3m-what-is-a-buy-view></w3m-what-is-a-buy-view>`;
|
|
203
|
+
case "WalletReceive":
|
|
204
|
+
return bitcoin.x`<w3m-wallet-receive-view></w3m-wallet-receive-view>`;
|
|
205
|
+
case "WalletCompatibleNetworks":
|
|
206
|
+
return bitcoin.x`<w3m-wallet-compatible-networks-view></w3m-wallet-compatible-networks-view>`;
|
|
207
|
+
case "WhatIsAWallet":
|
|
208
|
+
return bitcoin.x`<w3m-what-is-a-wallet-view></w3m-what-is-a-wallet-view>`;
|
|
209
|
+
case "ConnectingMultiChain":
|
|
210
|
+
return bitcoin.x`<w3m-connecting-multi-chain-view></w3m-connecting-multi-chain-view>`;
|
|
211
|
+
case "WhatIsANetwork":
|
|
212
|
+
return bitcoin.x`<w3m-what-is-a-network-view></w3m-what-is-a-network-view>`;
|
|
213
|
+
case "ConnectingFarcaster":
|
|
214
|
+
return bitcoin.x`<w3m-connecting-farcaster-view></w3m-connecting-farcaster-view>`;
|
|
215
|
+
case "SwitchActiveChain":
|
|
216
|
+
return bitcoin.x`<w3m-switch-active-chain-view></w3m-switch-active-chain-view>`;
|
|
217
|
+
case "RegisterAccountName":
|
|
218
|
+
return bitcoin.x`<w3m-register-account-name-view></w3m-register-account-name-view>`;
|
|
219
|
+
case "RegisterAccountNameSuccess":
|
|
220
|
+
return bitcoin.x`<w3m-register-account-name-success-view></w3m-register-account-name-success-view>`;
|
|
221
|
+
case "SmartSessionCreated":
|
|
222
|
+
return bitcoin.x`<w3m-smart-session-created-view></w3m-smart-session-created-view>`;
|
|
223
|
+
case "SmartSessionList":
|
|
224
|
+
return bitcoin.x`<w3m-smart-session-list-view></w3m-smart-session-list-view>`;
|
|
225
|
+
case "SIWXSignMessage":
|
|
226
|
+
return bitcoin.x`<w3m-siwx-sign-message-view></w3m-siwx-sign-message-view>`;
|
|
227
|
+
case "Pay":
|
|
228
|
+
return bitcoin.x`<w3m-pay-view></w3m-pay-view>`;
|
|
229
|
+
case "PayLoading":
|
|
230
|
+
return bitcoin.x`<w3m-pay-loading-view></w3m-pay-loading-view>`;
|
|
231
|
+
default:
|
|
232
|
+
return bitcoin.x`<w3m-connect-view></w3m-connect-view>`;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
onViewChange(newView) {
|
|
236
|
+
index.TooltipController.hide();
|
|
237
|
+
let direction = bitcoin.ConstantsUtil.VIEW_DIRECTION.Next;
|
|
238
|
+
const { history } = react.RouterController.state;
|
|
239
|
+
if (history.length < this.prevHistoryLength) {
|
|
240
|
+
direction = bitcoin.ConstantsUtil.VIEW_DIRECTION.Prev;
|
|
241
|
+
}
|
|
242
|
+
this.prevHistoryLength = history.length;
|
|
243
|
+
this.viewDirection = direction;
|
|
244
|
+
setTimeout(() => {
|
|
245
|
+
this.view = newView;
|
|
246
|
+
}, bitcoin.ConstantsUtil.ANIMATION_DURATIONS.ViewTransition);
|
|
247
|
+
}
|
|
248
|
+
getWrapper() {
|
|
249
|
+
var _a;
|
|
250
|
+
return (_a = this.shadowRoot) == null ? void 0 : _a.querySelector("div");
|
|
251
|
+
}
|
|
252
|
+
};
|
|
253
|
+
exports.W3mRouter.styles = styles;
|
|
254
|
+
__decorate([
|
|
255
|
+
ifDefined.r()
|
|
256
|
+
], exports.W3mRouter.prototype, "view", void 0);
|
|
257
|
+
__decorate([
|
|
258
|
+
ifDefined.r()
|
|
259
|
+
], exports.W3mRouter.prototype, "viewDirection", void 0);
|
|
260
|
+
exports.W3mRouter = __decorate([
|
|
261
|
+
ifDefined.customElement("w3m-router")
|
|
262
|
+
], exports.W3mRouter);
|