@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,552 @@
|
|
|
1
|
+
import { i, f as i$1, x, g as getW3mThemeVariables, c as resetStyles } from "./bitcoin-dNBGbS2B.mjs";
|
|
2
|
+
import { r, c as customElement, n, o } from "./if-defined-DjC5UMfF.mjs";
|
|
3
|
+
import { M as ModalController, k as ConnectorController, T as ThemeController, i as ConstantsUtil, l as ConstantsUtil$1, A as AccountController, d as CoreHelperUtil, c as ChainController, E as EventsController, g as getPreferredAccountType, W as W3mFrameRpcConstants, S as SnackController, R as RouterController } from "./react-BWxe90Ar.mjs";
|
|
4
|
+
import { N as NavigationUtil } from "./index-BIe-kofv.mjs";
|
|
5
|
+
import { e, n as n$1 } from "./ref-CqxfRkBm.mjs";
|
|
6
|
+
import "./index-Dx7NyDyv.mjs";
|
|
7
|
+
import "./index-xBD0nXoB.mjs";
|
|
8
|
+
import "./index-CQaHcTZM.mjs";
|
|
9
|
+
import "./index-70kjE43k.mjs";
|
|
10
|
+
import { a as EnsController } from "./react-M-DnxvZl.mjs";
|
|
11
|
+
import "./index-DT_mc1hV.mjs";
|
|
12
|
+
import "./index-42Rpweo5.mjs";
|
|
13
|
+
import "./index-CcgeRPs2.mjs";
|
|
14
|
+
const styles$3 = i`
|
|
15
|
+
div {
|
|
16
|
+
width: 100%;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[data-ready='false'] {
|
|
20
|
+
transform: scale(1.05);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@media (max-width: 430px) {
|
|
24
|
+
[data-ready='false'] {
|
|
25
|
+
transform: translateY(-50px);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
`;
|
|
29
|
+
var __decorate$4 = function(decorators, target, key, desc) {
|
|
30
|
+
var c = arguments.length, r2 = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
31
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
|
|
32
|
+
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;
|
|
33
|
+
return c > 3 && r2 && Object.defineProperty(target, key, r2), r2;
|
|
34
|
+
};
|
|
35
|
+
const PAGE_HEIGHT = 600;
|
|
36
|
+
const PAGE_WIDTH = 360;
|
|
37
|
+
const HEADER_HEIGHT = 64;
|
|
38
|
+
let W3mApproveTransactionView = class W3mApproveTransactionView2 extends i$1 {
|
|
39
|
+
constructor() {
|
|
40
|
+
super();
|
|
41
|
+
this.bodyObserver = void 0;
|
|
42
|
+
this.unsubscribe = [];
|
|
43
|
+
this.iframe = document.getElementById("w3m-iframe");
|
|
44
|
+
this.ready = false;
|
|
45
|
+
this.unsubscribe.push(...[
|
|
46
|
+
ModalController.subscribeKey("open", (isOpen) => {
|
|
47
|
+
if (!isOpen) {
|
|
48
|
+
this.onHideIframe();
|
|
49
|
+
}
|
|
50
|
+
}),
|
|
51
|
+
ModalController.subscribeKey("shake", (val) => {
|
|
52
|
+
if (val) {
|
|
53
|
+
this.iframe.style.animation = `w3m-shake 500ms var(--wui-ease-out-power-2)`;
|
|
54
|
+
} else {
|
|
55
|
+
this.iframe.style.animation = "none";
|
|
56
|
+
}
|
|
57
|
+
})
|
|
58
|
+
]);
|
|
59
|
+
}
|
|
60
|
+
disconnectedCallback() {
|
|
61
|
+
var _a;
|
|
62
|
+
this.onHideIframe();
|
|
63
|
+
this.unsubscribe.forEach((unsubscribe) => unsubscribe());
|
|
64
|
+
(_a = this.bodyObserver) == null ? void 0 : _a.unobserve(window.document.body);
|
|
65
|
+
}
|
|
66
|
+
async firstUpdated() {
|
|
67
|
+
var _a;
|
|
68
|
+
await this.syncTheme();
|
|
69
|
+
this.iframe.style.display = "block";
|
|
70
|
+
const container = (_a = this == null ? void 0 : this.renderRoot) == null ? void 0 : _a.querySelector("div");
|
|
71
|
+
this.bodyObserver = new ResizeObserver((entries) => {
|
|
72
|
+
var _a2, _b;
|
|
73
|
+
const contentBoxSize = (_a2 = entries == null ? void 0 : entries[0]) == null ? void 0 : _a2.contentBoxSize;
|
|
74
|
+
const width = (_b = contentBoxSize == null ? void 0 : contentBoxSize[0]) == null ? void 0 : _b.inlineSize;
|
|
75
|
+
this.iframe.style.height = `${PAGE_HEIGHT}px`;
|
|
76
|
+
container.style.height = `${PAGE_HEIGHT}px`;
|
|
77
|
+
if (width && width <= 430) {
|
|
78
|
+
this.iframe.style.width = "100%";
|
|
79
|
+
this.iframe.style.left = "0px";
|
|
80
|
+
this.iframe.style.bottom = "0px";
|
|
81
|
+
this.iframe.style.top = "unset";
|
|
82
|
+
} else {
|
|
83
|
+
this.iframe.style.width = `${PAGE_WIDTH}px`;
|
|
84
|
+
this.iframe.style.left = `calc(50% - ${PAGE_WIDTH / 2}px)`;
|
|
85
|
+
this.iframe.style.top = `calc(50% - ${PAGE_HEIGHT / 2}px + ${HEADER_HEIGHT / 2}px)`;
|
|
86
|
+
this.iframe.style.bottom = "unset";
|
|
87
|
+
}
|
|
88
|
+
this.ready = true;
|
|
89
|
+
this.onShowIframe();
|
|
90
|
+
});
|
|
91
|
+
this.bodyObserver.observe(window.document.body);
|
|
92
|
+
}
|
|
93
|
+
render() {
|
|
94
|
+
return x`<div data-ready=${this.ready} id="w3m-frame-container"></div>`;
|
|
95
|
+
}
|
|
96
|
+
onShowIframe() {
|
|
97
|
+
const isMobile = window.innerWidth <= 430;
|
|
98
|
+
this.iframe.style.animation = isMobile ? "w3m-iframe-zoom-in-mobile 200ms var(--wui-ease-out-power-2)" : "w3m-iframe-zoom-in 200ms var(--wui-ease-out-power-2)";
|
|
99
|
+
}
|
|
100
|
+
onHideIframe() {
|
|
101
|
+
this.iframe.style.display = "none";
|
|
102
|
+
this.iframe.style.animation = "w3m-iframe-fade-out 200ms var(--wui-ease-out-power-2)";
|
|
103
|
+
}
|
|
104
|
+
async syncTheme() {
|
|
105
|
+
const authConnector = ConnectorController.getAuthConnector();
|
|
106
|
+
if (authConnector) {
|
|
107
|
+
const themeMode = ThemeController.getSnapshot().themeMode;
|
|
108
|
+
const themeVariables = ThemeController.getSnapshot().themeVariables;
|
|
109
|
+
await authConnector.provider.syncTheme({
|
|
110
|
+
themeVariables,
|
|
111
|
+
w3mThemeVariables: getW3mThemeVariables(themeVariables, themeMode)
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
W3mApproveTransactionView.styles = styles$3;
|
|
117
|
+
__decorate$4([
|
|
118
|
+
r()
|
|
119
|
+
], W3mApproveTransactionView.prototype, "ready", void 0);
|
|
120
|
+
W3mApproveTransactionView = __decorate$4([
|
|
121
|
+
customElement("w3m-approve-transaction-view")
|
|
122
|
+
], W3mApproveTransactionView);
|
|
123
|
+
var __decorate$3 = function(decorators, target, key, desc) {
|
|
124
|
+
var c = arguments.length, r2 = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
125
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
|
|
126
|
+
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;
|
|
127
|
+
return c > 3 && r2 && Object.defineProperty(target, key, r2), r2;
|
|
128
|
+
};
|
|
129
|
+
let W3mUpgradeWalletView = class W3mUpgradeWalletView2 extends i$1 {
|
|
130
|
+
render() {
|
|
131
|
+
return x`
|
|
132
|
+
<wui-flex flexDirection="column" alignItems="center" gap="xl" padding="xl">
|
|
133
|
+
<wui-text variant="paragraph-400" color="fg-100">Follow the instructions on</wui-text>
|
|
134
|
+
<wui-chip
|
|
135
|
+
icon="externalLink"
|
|
136
|
+
variant="fill"
|
|
137
|
+
href=${ConstantsUtil.SECURE_SITE_DASHBOARD}
|
|
138
|
+
imageSrc=${ConstantsUtil.SECURE_SITE_FAVICON}
|
|
139
|
+
data-testid="w3m-secure-website-button"
|
|
140
|
+
>
|
|
141
|
+
</wui-chip>
|
|
142
|
+
<wui-text variant="small-400" color="fg-200">
|
|
143
|
+
You will have to reconnect for security reasons
|
|
144
|
+
</wui-text>
|
|
145
|
+
</wui-flex>
|
|
146
|
+
`;
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
W3mUpgradeWalletView = __decorate$3([
|
|
150
|
+
customElement("w3m-upgrade-wallet-view")
|
|
151
|
+
], W3mUpgradeWalletView);
|
|
152
|
+
const styles$2 = i`
|
|
153
|
+
:host {
|
|
154
|
+
position: relative;
|
|
155
|
+
width: 100%;
|
|
156
|
+
display: inline-block;
|
|
157
|
+
color: var(--wui-color-fg-275);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.error {
|
|
161
|
+
margin: var(--wui-spacing-xxs) var(--wui-spacing-m) var(--wui-spacing-0) var(--wui-spacing-m);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.base-name {
|
|
165
|
+
position: absolute;
|
|
166
|
+
right: 45px;
|
|
167
|
+
top: 15px;
|
|
168
|
+
text-align: right;
|
|
169
|
+
}
|
|
170
|
+
`;
|
|
171
|
+
var __decorate$2 = function(decorators, target, key, desc) {
|
|
172
|
+
var c = arguments.length, r2 = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
173
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
|
|
174
|
+
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;
|
|
175
|
+
return c > 3 && r2 && Object.defineProperty(target, key, r2), r2;
|
|
176
|
+
};
|
|
177
|
+
let WuiEnsInput = class WuiEnsInput2 extends i$1 {
|
|
178
|
+
constructor() {
|
|
179
|
+
super(...arguments);
|
|
180
|
+
this.disabled = false;
|
|
181
|
+
this.loading = false;
|
|
182
|
+
}
|
|
183
|
+
render() {
|
|
184
|
+
return x`
|
|
185
|
+
<wui-input-text
|
|
186
|
+
value=${o(this.value)}
|
|
187
|
+
?disabled=${this.disabled}
|
|
188
|
+
.value=${this.value || ""}
|
|
189
|
+
data-testid="wui-ens-input"
|
|
190
|
+
inputRightPadding="5xl"
|
|
191
|
+
>
|
|
192
|
+
${this.baseNameTemplate()} ${this.errorTemplate()}${this.loadingTemplate()}
|
|
193
|
+
</wui-input-text>
|
|
194
|
+
`;
|
|
195
|
+
}
|
|
196
|
+
baseNameTemplate() {
|
|
197
|
+
return x`<wui-text variant="paragraph-400" color="fg-200" class="base-name">
|
|
198
|
+
${ConstantsUtil$1.WC_NAME_SUFFIX}
|
|
199
|
+
</wui-text>`;
|
|
200
|
+
}
|
|
201
|
+
loadingTemplate() {
|
|
202
|
+
return this.loading ? x`<wui-loading-spinner size="md" color="accent-100"></wui-loading-spinner>` : null;
|
|
203
|
+
}
|
|
204
|
+
errorTemplate() {
|
|
205
|
+
if (this.errorMessage) {
|
|
206
|
+
return x`<wui-text variant="tiny-500" color="error-100" class="error"
|
|
207
|
+
>${this.errorMessage}</wui-text
|
|
208
|
+
>`;
|
|
209
|
+
}
|
|
210
|
+
return null;
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
WuiEnsInput.styles = [resetStyles, styles$2];
|
|
214
|
+
__decorate$2([
|
|
215
|
+
n()
|
|
216
|
+
], WuiEnsInput.prototype, "errorMessage", void 0);
|
|
217
|
+
__decorate$2([
|
|
218
|
+
n({ type: Boolean })
|
|
219
|
+
], WuiEnsInput.prototype, "disabled", void 0);
|
|
220
|
+
__decorate$2([
|
|
221
|
+
n()
|
|
222
|
+
], WuiEnsInput.prototype, "value", void 0);
|
|
223
|
+
__decorate$2([
|
|
224
|
+
n({ type: Boolean })
|
|
225
|
+
], WuiEnsInput.prototype, "loading", void 0);
|
|
226
|
+
WuiEnsInput = __decorate$2([
|
|
227
|
+
customElement("wui-ens-input")
|
|
228
|
+
], WuiEnsInput);
|
|
229
|
+
const styles$1 = i`
|
|
230
|
+
wui-flex {
|
|
231
|
+
width: 100%;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.suggestion {
|
|
235
|
+
background: var(--wui-color-gray-glass-002);
|
|
236
|
+
border-radius: var(--wui-border-radius-xs);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.suggestion:hover {
|
|
240
|
+
background-color: var(--wui-color-gray-glass-005);
|
|
241
|
+
cursor: pointer;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.suggested-name {
|
|
245
|
+
max-width: 75%;
|
|
246
|
+
overflow: hidden;
|
|
247
|
+
text-overflow: ellipsis;
|
|
248
|
+
white-space: nowrap;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
form {
|
|
252
|
+
width: 100%;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
wui-icon-link {
|
|
256
|
+
position: absolute;
|
|
257
|
+
right: 20px;
|
|
258
|
+
transform: translateY(11px);
|
|
259
|
+
}
|
|
260
|
+
`;
|
|
261
|
+
var __decorate$1 = function(decorators, target, key, desc) {
|
|
262
|
+
var c = arguments.length, r2 = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
263
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
|
|
264
|
+
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;
|
|
265
|
+
return c > 3 && r2 && Object.defineProperty(target, key, r2), r2;
|
|
266
|
+
};
|
|
267
|
+
let W3mRegisterAccountNameView = class W3mRegisterAccountNameView2 extends i$1 {
|
|
268
|
+
constructor() {
|
|
269
|
+
super();
|
|
270
|
+
this.formRef = e();
|
|
271
|
+
this.usubscribe = [];
|
|
272
|
+
this.name = "";
|
|
273
|
+
this.error = "";
|
|
274
|
+
this.loading = EnsController.state.loading;
|
|
275
|
+
this.suggestions = EnsController.state.suggestions;
|
|
276
|
+
this.registered = false;
|
|
277
|
+
this.profileName = AccountController.state.profileName;
|
|
278
|
+
this.onDebouncedNameInputChange = CoreHelperUtil.debounce((value) => {
|
|
279
|
+
if (EnsController.validateName(value)) {
|
|
280
|
+
this.error = "";
|
|
281
|
+
this.name = value;
|
|
282
|
+
EnsController.getSuggestions(value);
|
|
283
|
+
EnsController.isNameRegistered(value).then((registered) => {
|
|
284
|
+
this.registered = registered;
|
|
285
|
+
});
|
|
286
|
+
} else if (value.length < 4) {
|
|
287
|
+
this.error = "Name must be at least 4 characters long";
|
|
288
|
+
} else {
|
|
289
|
+
this.error = "Can only contain letters, numbers and - characters";
|
|
290
|
+
}
|
|
291
|
+
});
|
|
292
|
+
this.usubscribe.push(...[
|
|
293
|
+
EnsController.subscribe((val) => {
|
|
294
|
+
this.suggestions = val.suggestions;
|
|
295
|
+
this.loading = val.loading;
|
|
296
|
+
}),
|
|
297
|
+
AccountController.subscribeKey("profileName", (val) => {
|
|
298
|
+
this.profileName = val;
|
|
299
|
+
if (val) {
|
|
300
|
+
this.error = "You already own a name";
|
|
301
|
+
}
|
|
302
|
+
})
|
|
303
|
+
]);
|
|
304
|
+
}
|
|
305
|
+
firstUpdated() {
|
|
306
|
+
var _a;
|
|
307
|
+
(_a = this.formRef.value) == null ? void 0 : _a.addEventListener("keydown", this.onEnterKey.bind(this));
|
|
308
|
+
}
|
|
309
|
+
disconnectedCallback() {
|
|
310
|
+
var _a;
|
|
311
|
+
super.disconnectedCallback();
|
|
312
|
+
this.usubscribe.forEach((unsub) => unsub());
|
|
313
|
+
(_a = this.formRef.value) == null ? void 0 : _a.removeEventListener("keydown", this.onEnterKey.bind(this));
|
|
314
|
+
}
|
|
315
|
+
render() {
|
|
316
|
+
return x`
|
|
317
|
+
<wui-flex
|
|
318
|
+
flexDirection="column"
|
|
319
|
+
alignItems="center"
|
|
320
|
+
gap="m"
|
|
321
|
+
.padding=${["0", "s", "m", "s"]}
|
|
322
|
+
>
|
|
323
|
+
<form ${n$1(this.formRef)} @submit=${this.onSubmitName.bind(this)}>
|
|
324
|
+
<wui-ens-input
|
|
325
|
+
@inputChange=${this.onNameInputChange.bind(this)}
|
|
326
|
+
.errorMessage=${this.error}
|
|
327
|
+
.value=${this.name}
|
|
328
|
+
>
|
|
329
|
+
</wui-ens-input>
|
|
330
|
+
${this.submitButtonTemplate()}
|
|
331
|
+
<input type="submit" hidden />
|
|
332
|
+
</form>
|
|
333
|
+
${this.templateSuggestions()}
|
|
334
|
+
</wui-flex>
|
|
335
|
+
`;
|
|
336
|
+
}
|
|
337
|
+
submitButtonTemplate() {
|
|
338
|
+
const showSubmit = this.isAllowedToSubmit();
|
|
339
|
+
return showSubmit ? x`
|
|
340
|
+
<wui-icon-link
|
|
341
|
+
size="sm"
|
|
342
|
+
icon="chevronRight"
|
|
343
|
+
iconcolor="accent-100"
|
|
344
|
+
@click=${this.onSubmitName.bind(this)}
|
|
345
|
+
>
|
|
346
|
+
</wui-icon-link>
|
|
347
|
+
` : null;
|
|
348
|
+
}
|
|
349
|
+
onSelectSuggestion(name) {
|
|
350
|
+
return () => {
|
|
351
|
+
this.name = name;
|
|
352
|
+
this.registered = false;
|
|
353
|
+
this.requestUpdate();
|
|
354
|
+
};
|
|
355
|
+
}
|
|
356
|
+
onNameInputChange(event) {
|
|
357
|
+
this.onDebouncedNameInputChange(event.detail);
|
|
358
|
+
}
|
|
359
|
+
nameSuggestionTagTemplate() {
|
|
360
|
+
if (this.loading) {
|
|
361
|
+
return x`<wui-loading-spinner size="lg" color="fg-100"></wui-loading-spinner>`;
|
|
362
|
+
}
|
|
363
|
+
return this.registered ? x`<wui-tag variant="shade" size="lg">Registered</wui-tag>` : x`<wui-tag variant="success" size="lg">Available</wui-tag>`;
|
|
364
|
+
}
|
|
365
|
+
templateSuggestions() {
|
|
366
|
+
if (!this.name || this.name.length < 4 || this.error) {
|
|
367
|
+
return null;
|
|
368
|
+
}
|
|
369
|
+
const suggestions = this.registered ? this.suggestions.filter((s) => s.name !== this.name) : [];
|
|
370
|
+
return x`<wui-flex flexDirection="column" gap="xxs" alignItems="center">
|
|
371
|
+
<wui-flex
|
|
372
|
+
data-testid="account-name-suggestion"
|
|
373
|
+
.padding=${["m", "m", "m", "m"]}
|
|
374
|
+
justifyContent="space-between"
|
|
375
|
+
class="suggestion"
|
|
376
|
+
@click=${this.onSubmitName.bind(this)}
|
|
377
|
+
>
|
|
378
|
+
<wui-text color="fg-100" variant="paragraph-400" class="suggested-name">
|
|
379
|
+
${this.name}</wui-text
|
|
380
|
+
>${this.nameSuggestionTagTemplate()}
|
|
381
|
+
</wui-flex>
|
|
382
|
+
${suggestions.map((suggestion) => this.availableNameTemplate(suggestion.name))}
|
|
383
|
+
</wui-flex>`;
|
|
384
|
+
}
|
|
385
|
+
availableNameTemplate(suggestion) {
|
|
386
|
+
return x` <wui-flex
|
|
387
|
+
data-testid="account-name-suggestion"
|
|
388
|
+
.padding=${["m", "m", "m", "m"]}
|
|
389
|
+
justifyContent="space-between"
|
|
390
|
+
class="suggestion"
|
|
391
|
+
@click=${this.onSelectSuggestion(suggestion)}
|
|
392
|
+
>
|
|
393
|
+
<wui-text color="fg-100" variant="paragraph-400" class="suggested-name">
|
|
394
|
+
${suggestion}
|
|
395
|
+
</wui-text>
|
|
396
|
+
<wui-tag variant="success" size="lg">Available</wui-tag>
|
|
397
|
+
</wui-flex>`;
|
|
398
|
+
}
|
|
399
|
+
isAllowedToSubmit() {
|
|
400
|
+
return !this.loading && !this.registered && !this.error && !this.profileName && EnsController.validateName(this.name);
|
|
401
|
+
}
|
|
402
|
+
async onSubmitName() {
|
|
403
|
+
const activeChainNamespace = ChainController.state.activeChain;
|
|
404
|
+
try {
|
|
405
|
+
if (!this.isAllowedToSubmit()) {
|
|
406
|
+
return;
|
|
407
|
+
}
|
|
408
|
+
const ensName = `${this.name}${ConstantsUtil$1.WC_NAME_SUFFIX}`;
|
|
409
|
+
EventsController.sendEvent({
|
|
410
|
+
type: "track",
|
|
411
|
+
event: "REGISTER_NAME_INITIATED",
|
|
412
|
+
properties: {
|
|
413
|
+
isSmartAccount: getPreferredAccountType(activeChainNamespace) === W3mFrameRpcConstants.ACCOUNT_TYPES.SMART_ACCOUNT,
|
|
414
|
+
ensName
|
|
415
|
+
}
|
|
416
|
+
});
|
|
417
|
+
await EnsController.registerName(ensName);
|
|
418
|
+
EventsController.sendEvent({
|
|
419
|
+
type: "track",
|
|
420
|
+
event: "REGISTER_NAME_SUCCESS",
|
|
421
|
+
properties: {
|
|
422
|
+
isSmartAccount: getPreferredAccountType(activeChainNamespace) === W3mFrameRpcConstants.ACCOUNT_TYPES.SMART_ACCOUNT,
|
|
423
|
+
ensName
|
|
424
|
+
}
|
|
425
|
+
});
|
|
426
|
+
} catch (error) {
|
|
427
|
+
SnackController.showError(error.message);
|
|
428
|
+
EventsController.sendEvent({
|
|
429
|
+
type: "track",
|
|
430
|
+
event: "REGISTER_NAME_ERROR",
|
|
431
|
+
properties: {
|
|
432
|
+
isSmartAccount: getPreferredAccountType(activeChainNamespace) === W3mFrameRpcConstants.ACCOUNT_TYPES.SMART_ACCOUNT,
|
|
433
|
+
ensName: `${this.name}${ConstantsUtil$1.WC_NAME_SUFFIX}`,
|
|
434
|
+
error: (error == null ? void 0 : error.message) || "Unknown error"
|
|
435
|
+
}
|
|
436
|
+
});
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
onEnterKey(event) {
|
|
440
|
+
if (event.key === "Enter" && this.isAllowedToSubmit()) {
|
|
441
|
+
this.onSubmitName();
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
};
|
|
445
|
+
W3mRegisterAccountNameView.styles = styles$1;
|
|
446
|
+
__decorate$1([
|
|
447
|
+
n()
|
|
448
|
+
], W3mRegisterAccountNameView.prototype, "errorMessage", void 0);
|
|
449
|
+
__decorate$1([
|
|
450
|
+
r()
|
|
451
|
+
], W3mRegisterAccountNameView.prototype, "name", void 0);
|
|
452
|
+
__decorate$1([
|
|
453
|
+
r()
|
|
454
|
+
], W3mRegisterAccountNameView.prototype, "error", void 0);
|
|
455
|
+
__decorate$1([
|
|
456
|
+
r()
|
|
457
|
+
], W3mRegisterAccountNameView.prototype, "loading", void 0);
|
|
458
|
+
__decorate$1([
|
|
459
|
+
r()
|
|
460
|
+
], W3mRegisterAccountNameView.prototype, "suggestions", void 0);
|
|
461
|
+
__decorate$1([
|
|
462
|
+
r()
|
|
463
|
+
], W3mRegisterAccountNameView.prototype, "registered", void 0);
|
|
464
|
+
__decorate$1([
|
|
465
|
+
r()
|
|
466
|
+
], W3mRegisterAccountNameView.prototype, "profileName", void 0);
|
|
467
|
+
W3mRegisterAccountNameView = __decorate$1([
|
|
468
|
+
customElement("w3m-register-account-name-view")
|
|
469
|
+
], W3mRegisterAccountNameView);
|
|
470
|
+
const styles = i`
|
|
471
|
+
.continue-button-container {
|
|
472
|
+
width: 100%;
|
|
473
|
+
}
|
|
474
|
+
`;
|
|
475
|
+
var __decorate = function(decorators, target, key, desc) {
|
|
476
|
+
var c = arguments.length, r2 = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
477
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
|
|
478
|
+
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;
|
|
479
|
+
return c > 3 && r2 && Object.defineProperty(target, key, r2), r2;
|
|
480
|
+
};
|
|
481
|
+
let W3mRegisterAccountNameSuccess = class W3mRegisterAccountNameSuccess2 extends i$1 {
|
|
482
|
+
render() {
|
|
483
|
+
return x`
|
|
484
|
+
<wui-flex
|
|
485
|
+
flexDirection="column"
|
|
486
|
+
alignItems="center"
|
|
487
|
+
gap="xxl"
|
|
488
|
+
.padding=${["0", "0", "l", "0"]}
|
|
489
|
+
>
|
|
490
|
+
${this.onboardingTemplate()} ${this.buttonsTemplate()}
|
|
491
|
+
<wui-link
|
|
492
|
+
@click=${() => {
|
|
493
|
+
CoreHelperUtil.openHref(NavigationUtil.URLS.FAQ, "_blank");
|
|
494
|
+
}}
|
|
495
|
+
>
|
|
496
|
+
Learn more
|
|
497
|
+
<wui-icon color="inherit" slot="iconRight" name="externalLink"></wui-icon>
|
|
498
|
+
</wui-link>
|
|
499
|
+
</wui-flex>
|
|
500
|
+
`;
|
|
501
|
+
}
|
|
502
|
+
onboardingTemplate() {
|
|
503
|
+
return x` <wui-flex
|
|
504
|
+
flexDirection="column"
|
|
505
|
+
gap="xxl"
|
|
506
|
+
alignItems="center"
|
|
507
|
+
.padding=${["0", "xxl", "0", "xxl"]}
|
|
508
|
+
>
|
|
509
|
+
<wui-flex gap="s" alignItems="center" justifyContent="center">
|
|
510
|
+
<wui-icon-box
|
|
511
|
+
size="xl"
|
|
512
|
+
iconcolor="success-100"
|
|
513
|
+
backgroundcolor="success-100"
|
|
514
|
+
icon="checkmark"
|
|
515
|
+
background="opaque"
|
|
516
|
+
></wui-icon-box>
|
|
517
|
+
</wui-flex>
|
|
518
|
+
<wui-flex flexDirection="column" alignItems="center" gap="s">
|
|
519
|
+
<wui-text align="center" variant="medium-600" color="fg-100">
|
|
520
|
+
Account name chosen successfully
|
|
521
|
+
</wui-text>
|
|
522
|
+
<wui-text align="center" variant="paragraph-400" color="fg-100">
|
|
523
|
+
You can now fund your account and trade crypto
|
|
524
|
+
</wui-text>
|
|
525
|
+
</wui-flex>
|
|
526
|
+
</wui-flex>`;
|
|
527
|
+
}
|
|
528
|
+
buttonsTemplate() {
|
|
529
|
+
return x`<wui-flex
|
|
530
|
+
.padding=${["0", "2l", "0", "2l"]}
|
|
531
|
+
gap="s"
|
|
532
|
+
class="continue-button-container"
|
|
533
|
+
>
|
|
534
|
+
<wui-button fullWidth size="lg" borderRadius="xs" @click=${this.redirectToAccount.bind(this)}
|
|
535
|
+
>Let's Go!
|
|
536
|
+
</wui-button>
|
|
537
|
+
</wui-flex>`;
|
|
538
|
+
}
|
|
539
|
+
redirectToAccount() {
|
|
540
|
+
RouterController.replace("Account");
|
|
541
|
+
}
|
|
542
|
+
};
|
|
543
|
+
W3mRegisterAccountNameSuccess.styles = styles;
|
|
544
|
+
W3mRegisterAccountNameSuccess = __decorate([
|
|
545
|
+
customElement("w3m-register-account-name-success-view")
|
|
546
|
+
], W3mRegisterAccountNameSuccess);
|
|
547
|
+
export {
|
|
548
|
+
W3mApproveTransactionView,
|
|
549
|
+
W3mRegisterAccountNameSuccess,
|
|
550
|
+
W3mRegisterAccountNameView,
|
|
551
|
+
W3mUpgradeWalletView
|
|
552
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { b } from "./bitcoin-dNBGbS2B.mjs";
|
|
2
|
+
const ethereumSvg = b`<svg width="13" height="12" viewBox="0 0 13 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path d="M6.66686 12C9.9805 12 12.6667 9.31371 12.6667 6C12.6667 2.68629 9.9805 0 6.66686 0C3.35323 0 0.666992 2.68629 0.666992 6C0.666992 9.31371 3.35323 12 6.66686 12Z" fill="var(--wui-color-gray-glass-005)"/>
|
|
4
|
+
<path d="M6.6658 1.50098V4.82739L9.47712 6.08381L6.6658 1.50098Z" fill="var(--wui-color-gray-glass-060)"/>
|
|
5
|
+
<path d="M6.6658 1.50098L3.85449 6.08381L6.6658 4.82739V1.50098Z" fill="var(--wui-color-gray-glass-090)"/>
|
|
6
|
+
<path d="M6.6658 8.23909V10.4993L9.47876 6.60705L6.6658 8.23909Z" fill="var(--wui-color-gray-glass-060)"/>
|
|
7
|
+
<path d="M6.6658 10.4993V8.23909L3.85449 6.60705L6.6658 10.4993Z" fill="var(--wui-color-gray-glass-090)"/>
|
|
8
|
+
<path d="M6.6658 7.71585L9.47712 6.08381L6.6658 4.82739V7.71585Z" fill="var(--wui-color-gray-glass-020)"/>
|
|
9
|
+
<path d="M3.85449 6.08381L6.6658 7.71585V4.82739L3.85449 6.08381Z" fill="var(--wui-color-gray-glass-060)"/>
|
|
10
|
+
</svg>
|
|
11
|
+
`;
|
|
12
|
+
export {
|
|
13
|
+
ethereumSvg
|
|
14
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
+
const bitcoin = require("./bitcoin-DAvQGpeP.js");
|
|
5
|
+
const ethereumSvg = bitcoin.b`<svg width="13" height="12" viewBox="0 0 13 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
6
|
+
<path d="M6.66686 12C9.9805 12 12.6667 9.31371 12.6667 6C12.6667 2.68629 9.9805 0 6.66686 0C3.35323 0 0.666992 2.68629 0.666992 6C0.666992 9.31371 3.35323 12 6.66686 12Z" fill="var(--wui-color-gray-glass-005)"/>
|
|
7
|
+
<path d="M6.6658 1.50098V4.82739L9.47712 6.08381L6.6658 1.50098Z" fill="var(--wui-color-gray-glass-060)"/>
|
|
8
|
+
<path d="M6.6658 1.50098L3.85449 6.08381L6.6658 4.82739V1.50098Z" fill="var(--wui-color-gray-glass-090)"/>
|
|
9
|
+
<path d="M6.6658 8.23909V10.4993L9.47876 6.60705L6.6658 8.23909Z" fill="var(--wui-color-gray-glass-060)"/>
|
|
10
|
+
<path d="M6.6658 10.4993V8.23909L3.85449 6.60705L6.6658 10.4993Z" fill="var(--wui-color-gray-glass-090)"/>
|
|
11
|
+
<path d="M6.6658 7.71585L9.47712 6.08381L6.6658 4.82739V7.71585Z" fill="var(--wui-color-gray-glass-020)"/>
|
|
12
|
+
<path d="M3.85449 6.08381L6.6658 7.71585V4.82739L3.85449 6.08381Z" fill="var(--wui-color-gray-glass-060)"/>
|
|
13
|
+
</svg>
|
|
14
|
+
`;
|
|
15
|
+
exports.ethereumSvg = ethereumSvg;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { b } from "./bitcoin-dNBGbS2B.mjs";
|
|
2
|
+
const etherscanSvg = b`<svg fill="none" viewBox="0 0 16 16">
|
|
3
|
+
<path
|
|
4
|
+
fill="currentColor"
|
|
5
|
+
d="M4.25 7a.63.63 0 0 0-.63.63v3.97c0 .28-.2.51-.47.54l-.75.07a.93.93 0 0 1-.9-.47A7.51 7.51 0 0 1 5.54.92a7.5 7.5 0 0 1 9.54 4.62c.12.35.06.72-.16 1-.74.97-1.68 1.78-2.6 2.44V4.44a.64.64 0 0 0-.63-.64h-1.06c-.35 0-.63.3-.63.64v5.5c0 .23-.12.42-.32.5l-.52.23V6.05c0-.36-.3-.64-.64-.64H7.45c-.35 0-.64.3-.64.64v4.97c0 .25-.17.46-.4.52a5.8 5.8 0 0 0-.45.11v-4c0-.36-.3-.65-.64-.65H4.25ZM14.07 12.4A7.49 7.49 0 0 1 3.6 14.08c4.09-.58 9.14-2.5 11.87-6.6v.03a7.56 7.56 0 0 1-1.41 4.91Z"
|
|
6
|
+
/>
|
|
7
|
+
</svg>`;
|
|
8
|
+
export {
|
|
9
|
+
etherscanSvg
|
|
10
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
+
const bitcoin = require("./bitcoin-DAvQGpeP.js");
|
|
5
|
+
const etherscanSvg = bitcoin.b`<svg fill="none" viewBox="0 0 16 16">
|
|
6
|
+
<path
|
|
7
|
+
fill="currentColor"
|
|
8
|
+
d="M4.25 7a.63.63 0 0 0-.63.63v3.97c0 .28-.2.51-.47.54l-.75.07a.93.93 0 0 1-.9-.47A7.51 7.51 0 0 1 5.54.92a7.5 7.5 0 0 1 9.54 4.62c.12.35.06.72-.16 1-.74.97-1.68 1.78-2.6 2.44V4.44a.64.64 0 0 0-.63-.64h-1.06c-.35 0-.63.3-.63.64v5.5c0 .23-.12.42-.32.5l-.52.23V6.05c0-.36-.3-.64-.64-.64H7.45c-.35 0-.64.3-.64.64v4.97c0 .25-.17.46-.4.52a5.8 5.8 0 0 0-.45.11v-4c0-.36-.3-.65-.64-.65H4.25ZM14.07 12.4A7.49 7.49 0 0 1 3.6 14.08c4.09-.58 9.14-2.5 11.87-6.6v.03a7.56 7.56 0 0 1-1.41 4.91Z"
|
|
9
|
+
/>
|
|
10
|
+
</svg>`;
|
|
11
|
+
exports.etherscanSvg = etherscanSvg;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
+
const bitcoin = require("./bitcoin-DAvQGpeP.js");
|
|
5
|
+
const exclamationTriangleSvg = bitcoin.b`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
6
|
+
<path d="M15.0162 11.6312L9.55059 2.13937C9.39228 1.86862 9.16584 1.64405 8.8938 1.48798C8.62176 1.33192 8.3136 1.2498 7.99997 1.2498C7.68634 1.2498 7.37817 1.33192 7.10613 1.48798C6.83409 1.64405 6.60765 1.86862 6.44934 2.13937L0.983716 11.6312C0.830104 11.894 0.749146 12.1928 0.749146 12.4972C0.749146 12.8015 0.830104 13.1004 0.983716 13.3631C1.14027 13.6352 1.3664 13.8608 1.63889 14.0166C1.91139 14.1725 2.22044 14.253 2.53434 14.25H13.4656C13.7793 14.2528 14.0881 14.1721 14.3603 14.0163C14.6326 13.8604 14.8585 13.635 15.015 13.3631C15.1688 13.1005 15.2499 12.8017 15.2502 12.4973C15.2504 12.193 15.1696 11.8941 15.0162 11.6312ZM13.7162 12.6125C13.6908 12.6558 13.6541 12.6914 13.6101 12.7157C13.5661 12.7399 13.5164 12.7517 13.4662 12.75H2.53434C2.48415 12.7517 2.43442 12.7399 2.39042 12.7157C2.34641 12.6914 2.30976 12.6558 2.28434 12.6125C2.26278 12.5774 2.25137 12.5371 2.25137 12.4959C2.25137 12.4548 2.26278 12.4144 2.28434 12.3794L7.74997 2.88749C7.77703 2.84583 7.81408 2.8116 7.85774 2.7879C7.9014 2.7642 7.95029 2.75178 7.99997 2.75178C8.04964 2.75178 8.09854 2.7642 8.1422 2.7879C8.18586 2.8116 8.2229 2.84583 8.24997 2.88749L13.715 12.3794C13.7367 12.4143 13.7483 12.4546 13.7486 12.4958C13.7488 12.5369 13.7376 12.5773 13.7162 12.6125ZM7.24997 8.49999V6.49999C7.24997 6.30108 7.32898 6.11031 7.46964 5.96966C7.61029 5.82901 7.80105 5.74999 7.99997 5.74999C8.19888 5.74999 8.38964 5.82901 8.5303 5.96966C8.67095 6.11031 8.74997 6.30108 8.74997 6.49999V8.49999C8.74997 8.6989 8.67095 8.88967 8.5303 9.03032C8.38964 9.17097 8.19888 9.24999 7.99997 9.24999C7.80105 9.24999 7.61029 9.17097 7.46964 9.03032C7.32898 8.88967 7.24997 8.6989 7.24997 8.49999ZM8.99997 11C8.99997 11.1978 8.94132 11.3911 8.83144 11.5556C8.72155 11.72 8.56538 11.8482 8.38265 11.9239C8.19992 11.9996 7.99886 12.0194 7.80488 11.9808C7.6109 11.9422 7.43271 11.847 7.29286 11.7071C7.15301 11.5672 7.05777 11.3891 7.01918 11.1951C6.9806 11.0011 7.0004 10.8 7.07609 10.6173C7.15177 10.4346 7.27995 10.2784 7.4444 10.1685C7.60885 10.0586 7.80219 9.99999 7.99997 9.99999C8.26518 9.99999 8.51954 10.1053 8.70707 10.2929C8.89461 10.4804 8.99997 10.7348 8.99997 11Z" fill="currentColor"/>
|
|
7
|
+
</svg>
|
|
8
|
+
`;
|
|
9
|
+
exports.exclamationTriangleSvg = exclamationTriangleSvg;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { b } from "./bitcoin-dNBGbS2B.mjs";
|
|
2
|
+
const exclamationTriangleSvg = b`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path d="M15.0162 11.6312L9.55059 2.13937C9.39228 1.86862 9.16584 1.64405 8.8938 1.48798C8.62176 1.33192 8.3136 1.2498 7.99997 1.2498C7.68634 1.2498 7.37817 1.33192 7.10613 1.48798C6.83409 1.64405 6.60765 1.86862 6.44934 2.13937L0.983716 11.6312C0.830104 11.894 0.749146 12.1928 0.749146 12.4972C0.749146 12.8015 0.830104 13.1004 0.983716 13.3631C1.14027 13.6352 1.3664 13.8608 1.63889 14.0166C1.91139 14.1725 2.22044 14.253 2.53434 14.25H13.4656C13.7793 14.2528 14.0881 14.1721 14.3603 14.0163C14.6326 13.8604 14.8585 13.635 15.015 13.3631C15.1688 13.1005 15.2499 12.8017 15.2502 12.4973C15.2504 12.193 15.1696 11.8941 15.0162 11.6312ZM13.7162 12.6125C13.6908 12.6558 13.6541 12.6914 13.6101 12.7157C13.5661 12.7399 13.5164 12.7517 13.4662 12.75H2.53434C2.48415 12.7517 2.43442 12.7399 2.39042 12.7157C2.34641 12.6914 2.30976 12.6558 2.28434 12.6125C2.26278 12.5774 2.25137 12.5371 2.25137 12.4959C2.25137 12.4548 2.26278 12.4144 2.28434 12.3794L7.74997 2.88749C7.77703 2.84583 7.81408 2.8116 7.85774 2.7879C7.9014 2.7642 7.95029 2.75178 7.99997 2.75178C8.04964 2.75178 8.09854 2.7642 8.1422 2.7879C8.18586 2.8116 8.2229 2.84583 8.24997 2.88749L13.715 12.3794C13.7367 12.4143 13.7483 12.4546 13.7486 12.4958C13.7488 12.5369 13.7376 12.5773 13.7162 12.6125ZM7.24997 8.49999V6.49999C7.24997 6.30108 7.32898 6.11031 7.46964 5.96966C7.61029 5.82901 7.80105 5.74999 7.99997 5.74999C8.19888 5.74999 8.38964 5.82901 8.5303 5.96966C8.67095 6.11031 8.74997 6.30108 8.74997 6.49999V8.49999C8.74997 8.6989 8.67095 8.88967 8.5303 9.03032C8.38964 9.17097 8.19888 9.24999 7.99997 9.24999C7.80105 9.24999 7.61029 9.17097 7.46964 9.03032C7.32898 8.88967 7.24997 8.6989 7.24997 8.49999ZM8.99997 11C8.99997 11.1978 8.94132 11.3911 8.83144 11.5556C8.72155 11.72 8.56538 11.8482 8.38265 11.9239C8.19992 11.9996 7.99886 12.0194 7.80488 11.9808C7.6109 11.9422 7.43271 11.847 7.29286 11.7071C7.15301 11.5672 7.05777 11.3891 7.01918 11.1951C6.9806 11.0011 7.0004 10.8 7.07609 10.6173C7.15177 10.4346 7.27995 10.2784 7.4444 10.1685C7.60885 10.0586 7.80219 9.99999 7.99997 9.99999C8.26518 9.99999 8.51954 10.1053 8.70707 10.2929C8.89461 10.4804 8.99997 10.7348 8.99997 11Z" fill="currentColor"/>
|
|
4
|
+
</svg>
|
|
5
|
+
`;
|
|
6
|
+
export {
|
|
7
|
+
exclamationTriangleSvg
|
|
8
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { b } from "./bitcoin-dNBGbS2B.mjs";
|
|
2
|
+
const extensionSvg = b`<svg fill="none" viewBox="0 0 14 15">
|
|
3
|
+
<path
|
|
4
|
+
fill="currentColor"
|
|
5
|
+
fill-rule="evenodd"
|
|
6
|
+
d="M6.71 2.99a.57.57 0 0 0-.57.57 1 1 0 0 1-1 1c-.58 0-.96 0-1.24.03-.27.03-.37.07-.42.1a.97.97 0 0 0-.36.35c-.04.08-.09.21-.11.67a2.57 2.57 0 0 1 0 5.13c.02.45.07.6.11.66.09.15.21.28.36.36.07.04.21.1.67.12a2.57 2.57 0 0 1 5.12 0c.46-.03.6-.08.67-.12a.97.97 0 0 0 .36-.36c.03-.04.07-.14.1-.41.02-.29.03-.66.03-1.24a1 1 0 0 1 1-1 .57.57 0 0 0 0-1.15 1 1 0 0 1-1-1c0-.58 0-.95-.03-1.24a1.04 1.04 0 0 0-.1-.42.97.97 0 0 0-.36-.36 1.04 1.04 0 0 0-.42-.1c-.28-.02-.65-.02-1.24-.02a1 1 0 0 1-1-1 .57.57 0 0 0-.57-.57ZM5.15 13.98a1 1 0 0 0 .99-1v-.78a.57.57 0 0 1 1.14 0v.78a1 1 0 0 0 .99 1H8.36a66.26 66.26 0 0 0 .73 0 3.78 3.78 0 0 0 1.84-.38c.46-.26.85-.64 1.1-1.1.23-.4.32-.8.36-1.22.02-.2.03-.4.03-.63a2.57 2.57 0 0 0 0-4.75c0-.23-.01-.44-.03-.63a2.96 2.96 0 0 0-.35-1.22 2.97 2.97 0 0 0-1.1-1.1c-.4-.22-.8-.31-1.22-.35a8.7 8.7 0 0 0-.64-.04 2.57 2.57 0 0 0-4.74 0c-.23 0-.44.02-.63.04-.42.04-.83.13-1.22.35-.46.26-.84.64-1.1 1.1-.33.57-.37 1.2-.39 1.84a21.39 21.39 0 0 0 0 .72v.1a1 1 0 0 0 1 .99h.78a.57.57 0 0 1 0 1.15h-.77a1 1 0 0 0-1 .98v.1a63.87 63.87 0 0 0 0 .73c0 .64.05 1.27.38 1.83.26.47.64.85 1.1 1.11.56.32 1.2.37 1.84.38a20.93 20.93 0 0 0 .72 0h.1Z"
|
|
7
|
+
clip-rule="evenodd"
|
|
8
|
+
/>
|
|
9
|
+
</svg>`;
|
|
10
|
+
export {
|
|
11
|
+
extensionSvg
|
|
12
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
+
const bitcoin = require("./bitcoin-DAvQGpeP.js");
|
|
5
|
+
const extensionSvg = bitcoin.b`<svg fill="none" viewBox="0 0 14 15">
|
|
6
|
+
<path
|
|
7
|
+
fill="currentColor"
|
|
8
|
+
fill-rule="evenodd"
|
|
9
|
+
d="M6.71 2.99a.57.57 0 0 0-.57.57 1 1 0 0 1-1 1c-.58 0-.96 0-1.24.03-.27.03-.37.07-.42.1a.97.97 0 0 0-.36.35c-.04.08-.09.21-.11.67a2.57 2.57 0 0 1 0 5.13c.02.45.07.6.11.66.09.15.21.28.36.36.07.04.21.1.67.12a2.57 2.57 0 0 1 5.12 0c.46-.03.6-.08.67-.12a.97.97 0 0 0 .36-.36c.03-.04.07-.14.1-.41.02-.29.03-.66.03-1.24a1 1 0 0 1 1-1 .57.57 0 0 0 0-1.15 1 1 0 0 1-1-1c0-.58 0-.95-.03-1.24a1.04 1.04 0 0 0-.1-.42.97.97 0 0 0-.36-.36 1.04 1.04 0 0 0-.42-.1c-.28-.02-.65-.02-1.24-.02a1 1 0 0 1-1-1 .57.57 0 0 0-.57-.57ZM5.15 13.98a1 1 0 0 0 .99-1v-.78a.57.57 0 0 1 1.14 0v.78a1 1 0 0 0 .99 1H8.36a66.26 66.26 0 0 0 .73 0 3.78 3.78 0 0 0 1.84-.38c.46-.26.85-.64 1.1-1.1.23-.4.32-.8.36-1.22.02-.2.03-.4.03-.63a2.57 2.57 0 0 0 0-4.75c0-.23-.01-.44-.03-.63a2.96 2.96 0 0 0-.35-1.22 2.97 2.97 0 0 0-1.1-1.1c-.4-.22-.8-.31-1.22-.35a8.7 8.7 0 0 0-.64-.04 2.57 2.57 0 0 0-4.74 0c-.23 0-.44.02-.63.04-.42.04-.83.13-1.22.35-.46.26-.84.64-1.1 1.1-.33.57-.37 1.2-.39 1.84a21.39 21.39 0 0 0 0 .72v.1a1 1 0 0 0 1 .99h.78a.57.57 0 0 1 0 1.15h-.77a1 1 0 0 0-1 .98v.1a63.87 63.87 0 0 0 0 .73c0 .64.05 1.27.38 1.83.26.47.64.85 1.1 1.11.56.32 1.2.37 1.84.38a20.93 20.93 0 0 0 .72 0h.1Z"
|
|
10
|
+
clip-rule="evenodd"
|
|
11
|
+
/>
|
|
12
|
+
</svg>`;
|
|
13
|
+
exports.extensionSvg = extensionSvg;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
+
const bitcoin = require("./bitcoin-DAvQGpeP.js");
|
|
5
|
+
const externalLinkSvg = bitcoin.b`<svg fill="none" viewBox="0 0 14 15">
|
|
6
|
+
<path
|
|
7
|
+
fill="currentColor"
|
|
8
|
+
fill-rule="evenodd"
|
|
9
|
+
d="M3.74 3.99a1 1 0 0 1 1-1H11a1 1 0 0 1 1 1v6.26a1 1 0 0 1-2 0V6.4l-6.3 6.3a1 1 0 0 1-1.4-1.42l6.29-6.3H4.74a1 1 0 0 1-1-1Z"
|
|
10
|
+
clip-rule="evenodd"
|
|
11
|
+
/>
|
|
12
|
+
</svg>`;
|
|
13
|
+
exports.externalLinkSvg = externalLinkSvg;
|