@blockend/widget 1.0.61 → 1.0.62
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/dist/{AllRoutes-BqW5S4_J.js → AllRoutes-pT_GYhLz.js} +9 -9
- package/dist/{Box-Dw7IJo3D.js → Box-CMXImt80.js} +1 -1
- package/dist/{EstGas-C_ldluj6.js → EstGas-BEwQc47B.js} +7 -7
- package/dist/{Grow-DjneaPQY.js → Grow-CYJk-72r.js} +2 -2
- package/dist/{InputComp-CWH4SAk7.js → InputComp-B0QgFbsj.js} +3 -3
- package/dist/{LoadRoute-Cafzlcfy.js → LoadRoute-I--KmXYZ.js} +4 -4
- package/dist/{QuotesProgress-Covy7wmW.js → QuotesProgress-Ct53CRUU.js} +1 -1
- package/dist/{SwapAsset-BqXVX_DR.js → SwapAsset-X7gAsFxL.js} +1 -1
- package/dist/{Tooltip-3YpYU_vO.js → Tooltip-CsxhxDbM.js} +3 -3
- package/dist/{TxnButton-CPMFPFA_.js → TxnButton-BZf2lfxu.js} +3 -3
- package/dist/{add-CRY8asYF.js → add-fqHpy_n_.js} +1 -1
- package/dist/{all-wallets-DOnIRIv0.js → all-wallets-BEiHad26.js} +1 -1
- package/dist/{app-store-C0M9hC1B.js → app-store-BUrtll4M.js} +1 -1
- package/dist/{apple-Bv7oA5AQ.js → apple-DeP0r4ax.js} +1 -1
- package/dist/{arrow-bottom-D4arnome.js → arrow-bottom-DOUsYrpS.js} +1 -1
- package/dist/{arrow-bottom-circle-BUny4yP8.js → arrow-bottom-circle-3zt0oM9l.js} +1 -1
- package/dist/{arrow-left-DImJbKZs.js → arrow-left-CZi8gizN.js} +1 -1
- package/dist/{arrow-right-BvRPNX9F.js → arrow-right-Bp2k-sRU.js} +1 -1
- package/dist/{arrow-top-1RWPJImu.js → arrow-top-Bdu-g3eb.js} +1 -1
- package/dist/{bank-C0t9JpLj.js → bank-UM_6-xYg.js} +1 -1
- package/dist/{basic-VfgwBHn1.js → basic-CfaJcj31.js} +3 -3
- package/dist/{browser-0d0uw45D.js → browser-DE4dHUIn.js} +1 -1
- package/dist/{card-BBByykfy.js → card-CpV_uFyN.js} +1 -1
- package/dist/{ccip-8__szz9Q.js → ccip-CA2a9SDo.js} +1 -1
- package/dist/{checkmark-B_osdsm_.js → checkmark-CK8NZa3x.js} +1 -1
- package/dist/{checkmark-bold-BEzepFY4.js → checkmark-bold-DgI_WWpK.js} +1 -1
- package/dist/{chevron-bottom-Bdaxlaxc.js → chevron-bottom-C_3_Lg-x.js} +1 -1
- package/dist/{chevron-left-2aCeqxdm.js → chevron-left-Dn-8RUKj.js} +1 -1
- package/dist/{chevron-right-BPgQeMPz.js → chevron-right-BrzGCKbe.js} +1 -1
- package/dist/{chevron-top-BskFpgMP.js → chevron-top-DH4uxqMd.js} +1 -1
- package/dist/{chrome-store-CxhEG2Jk.js → chrome-store-C6ftVKRM.js} +1 -1
- package/dist/{clock-BDgHn083.js → clock-BMAqcMX9.js} +1 -1
- package/dist/{close-CQTa1LZg.js → close-B99wQvJ_.js} +1 -1
- package/dist/{coinPlaceholder-B-NSV729.js → coinPlaceholder-DmuYNsmb.js} +1 -1
- package/dist/{compass-BdJmk2w2.js → compass-C4wdl146.js} +1 -1
- package/dist/{copy-Cg4vgr82.js → copy-DMJQyfJj.js} +1 -1
- package/dist/{core-BSwMFU2B.js → core-v6ho39ji.js} +3 -3
- package/dist/{cursor-BoD_rq0f.js → cursor-C-0knOkC.js} +1 -1
- package/dist/{cursor-transparent-Dqs1kXcb.js → cursor-transparent-BLuqOo6k.js} +1 -1
- package/dist/{desktop-BOxkTik1.js → desktop-DpJrO84H.js} +1 -1
- package/dist/{disconnect-CTxFyZWa.js → disconnect-k6w6zlk-.js} +1 -1
- package/dist/{discord-BJRxIhBt.js → discord-DLgkGibC.js} +1 -1
- package/dist/{down-372J_rRV.js → down-C4N-wh2D.js} +2 -2
- package/dist/{etherscan-CyQf5MH5.js → etherscan-DJTxjIAP.js} +1 -1
- package/dist/{exclamation-triangle-DFOXjtuI.js → exclamation-triangle-B1YdY5CX.js} +1 -1
- package/dist/{extension-XiWSr1Ku.js → extension-CnhByDAh.js} +1 -1
- package/dist/{external-link-CYjbHRDY.js → external-link-CZmI3Q92.js} +1 -1
- package/dist/{facebook-DhP37m2R.js → facebook-CRHPGcBq.js} +1 -1
- package/dist/{farcaster-C1J2oGt2.js → farcaster-BYs6AvgJ.js} +1 -1
- package/dist/{filters-C5jLy9GP.js → filters-BqJFiFCl.js} +1 -1
- package/dist/{getChainIds-AaKb_MmO.js → getChainIds-CPQkM2Fw.js} +2 -2
- package/dist/{getCosmosAddress-D-F7jz-d.js → getCosmosAddress-CrzIqoe8.js} +2 -2
- package/dist/{github-CJ8g1by7.js → github-WI_fsQyX.js} +1 -1
- package/dist/{google-DpIVCnNm.js → google-PDPeuX25.js} +1 -1
- package/dist/{hamburger-BylLGawu.js → hamburger-JHCSR4wq.js} +5 -5
- package/dist/{help-circle-BESCFGIa.js → help-circle-CC1LutMp.js} +1 -1
- package/dist/{id-CPX0IEMo.js → id-Dg4qm85K.js} +1 -1
- package/dist/{image-DrFHyQOS.js → image-DvH3pCRi.js} +1 -1
- package/dist/{index-DoNokw4Q.js → index-4DGqOb0b.js} +1 -1
- package/dist/{index-ePnYqYhf.js → index-BAjx9Sij.js} +345 -343
- package/dist/{index-H7ThVJwV.js → index-BII8gr4h.js} +4 -4
- package/dist/{index-DO14DPs3.js → index-Bl06WOfD.js} +5 -5
- package/dist/{index-BOd8pd8c.js → index-BrgwPS_u.js} +11 -11
- package/dist/{index-BDezoD7C.js → index-ByNEeX9y.js} +1 -1
- package/dist/{index-D0J1OD73.js → index-CBMjkxpP.js} +4 -4
- package/dist/{index-DhZwdjPQ.js → index-D8oYLVSL.js} +2 -2
- package/dist/{index-DjHDqI7m.js → index-DbOqrlxW.js} +4 -4
- package/dist/{index-eatshJSd.js → index-Mqg8CWuX.js} +10 -10
- package/dist/{index-BheqnLKf.js → index-qIeZpXcg.js} +78 -78
- package/dist/{index.es-gTtSa0r5.js → index.es-DV8y1ve_.js} +2 -2
- package/dist/{index.es-B95K0DgG.js → index.es-DkTmjrB8.js} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{info-DB9XS3BU.js → info-Cjmzqm5P.js} +1 -1
- package/dist/{info-circle-BVB8s9W_.js → info-circle-Dimf4UPG.js} +1 -1
- package/dist/{lightbulb-C0eiLvuS.js → lightbulb-BsZjMPbK.js} +1 -1
- package/dist/{mail-CYcc9yZZ.js → mail-KNgNgUMG.js} +1 -1
- package/dist/{mobile-Cvm9Skqq.js → mobile-hJMru58F.js} +1 -1
- package/dist/{more-B-UvO1Yo.js → more-B1Hz9ISJ.js} +1 -1
- package/dist/{network-placeholder-C8QNcwPf.js → network-placeholder-Ba37-PVe.js} +1 -1
- package/dist/{nftPlaceholder-C_LU9tT5.js → nftPlaceholder-Br6ZCUyX.js} +1 -1
- package/dist/{off-BEQbMYBZ.js → off-DZv0f5qk.js} +1 -1
- package/dist/{play-store-CEopCauM.js → play-store-PVT99oFp.js} +1 -1
- package/dist/{plus-CtEYHV2t.js → plus-0JhMk1yC.js} +1 -1
- package/dist/{qr-code-BhmZxeo_.js → qr-code-CYMnN7H6.js} +1 -1
- package/dist/{recycle-horizontal-CF9eqICi.js → recycle-horizontal-BODX35XL.js} +1 -1
- package/dist/{refresh-Bm3plkBE.js → refresh-KT2nzf4V.js} +1 -1
- package/dist/{reown-logo-8S9ZN_-T.js → reown-logo-x-a1ehju.js} +1 -1
- package/dist/{search-DNcA47oY.js → search-floOYVWE.js} +1 -1
- package/dist/{send-B0S9gHH6.js → send-rBEZNvkT.js} +1 -1
- package/dist/{swapHorizontal-BuTPPB8N.js → swapHorizontal-FpW50anF.js} +1 -1
- package/dist/{swapHorizontalBold-BnB-fpce.js → swapHorizontalBold-DJo2s6QM.js} +1 -1
- package/dist/{swapHorizontalMedium-9QnwwjJD.js → swapHorizontalMedium-AdMIxAQ-.js} +1 -1
- package/dist/{swapHorizontalRoundedBold-C83mxp3u.js → swapHorizontalRoundedBold-DB7VaS-l.js} +1 -1
- package/dist/{swapVertical-BAz7hmKO.js → swapVertical-CStjk8mq.js} +1 -1
- package/dist/{telegram-BMT9bLfw.js → telegram-B7o9hZwP.js} +1 -1
- package/dist/{three-dots-DuhUrXKI.js → three-dots-DogTUFsH.js} +1 -1
- package/dist/{twitch-ClsoABSi.js → twitch-B_TRhhNU.js} +1 -1
- package/dist/{twitterIcon-B9n98fnH.js → twitterIcon-ujuPKvRN.js} +1 -1
- package/dist/{unsupportedProp-BXmR-9gT.js → unsupportedProp-BC6azYXA.js} +1 -1
- package/dist/{useRegisterError-DVG0sgLq.js → useRegisterError-DMILz6N1.js} +1 -1
- package/dist/{verify-BHTa1Niv.js → verify-BRWSwLhn.js} +1 -1
- package/dist/{verify-filled-CqobBYuI.js → verify-filled-z7UoRJXn.js} +1 -1
- package/dist/{w3m-modal-B7akV0Kp.js → w3m-modal-CuXPdser.js} +2 -2
- package/dist/{wallet-ObJy7yZR.js → wallet-BMFvv3DF.js} +1 -1
- package/dist/{wallet-placeholder-BxVrKpEz.js → wallet-placeholder-DFg6CZXP.js} +1 -1
- package/dist/{walletconnect-CYJbrPQQ.js → walletconnect-WSdSSZfM.js} +1 -1
- package/dist/{warning-circle-DOwgDOgL.js → warning-circle-BDW9xnhM.js} +1 -1
- package/dist/{x-B03u0kWD.js → x-DUDktTjC.js} +1 -1
- package/package.json +1 -1
- package/dist/AllRoutes-CIe7ZLbW.js +0 -2209
- package/dist/Box-QpYIDD-V.js +0 -54
- package/dist/EstGas-Dpwt2-50.js +0 -1574
- package/dist/Grow-L7kyPhbh.js +0 -1656
- package/dist/InputComp-Dl4M7E5v.js +0 -105
- package/dist/LoadRoute-cBSl34Bs.js +0 -125
- package/dist/QuotesProgress-CxJUoCPy.js +0 -28
- package/dist/SwapAsset-CkRat7Ok.js +0 -51
- package/dist/Tooltip-D2kKNQ0U.js +0 -572
- package/dist/TxnButton-mfwy-EoQ.js +0 -222
- package/dist/add-Dfrw-dUV.js +0 -19
- package/dist/all-wallets-Dw10lWJZ.js +0 -10
- package/dist/app-store-DJiZFSCr.js +0 -21
- package/dist/apple-kMZGS4AC.js +0 -22
- package/dist/arrow-bottom-DgmWrLqf.js +0 -12
- package/dist/arrow-bottom-circle-C7iPKwzW.js +0 -15
- package/dist/arrow-left-Dol642VI.js +0 -12
- package/dist/arrow-right-CMwyPVT7.js +0 -12
- package/dist/arrow-top-kn9xtx92.js +0 -12
- package/dist/bank-DK-FvDfd.js +0 -18
- package/dist/basic-Sejv2JvX.js +0 -5783
- package/dist/browser-BzT1ACe9.js +0 -18
- package/dist/card-DqDM55a-.js +0 -18
- package/dist/ccip-BPZSey8I.js +0 -228
- package/dist/checkmark-DEKH6rOS.js +0 -15
- package/dist/checkmark-bold-Dzv2hN2Q.js +0 -12
- package/dist/chevron-bottom-CXdHWe0F.js +0 -12
- package/dist/chevron-left-CeuFz3M9.js +0 -12
- package/dist/chevron-right-DikqbHjp.js +0 -12
- package/dist/chevron-top-CjCScawp.js +0 -12
- package/dist/chrome-store-DaP5Y4w2.js +0 -65
- package/dist/clock-BzjZWK68.js +0 -12
- package/dist/close-Dqncm2nY.js +0 -12
- package/dist/coinPlaceholder-BExfa33b.js +0 -12
- package/dist/compass-C1H_fht-.js +0 -12
- package/dist/copy-DPMVX3yZ.js +0 -19
- package/dist/core-BYOwnw_B.js +0 -16521
- package/dist/cursor-transparent-IQlZspwQ.js +0 -16
- package/dist/cursor-ybJpiPr6.js +0 -7
- package/dist/desktop-WMYv3b4Q.js +0 -13
- package/dist/disconnect-eMeec26w.js +0 -12
- package/dist/discord-CpTo4KnZ.js +0 -21
- package/dist/down-hvB7J3FG.js +0 -622
- package/dist/etherscan-DQ1h54d3.js +0 -10
- package/dist/exclamation-triangle-DzKs0-30.js +0 -8
- package/dist/extension-ep1TEUSD.js +0 -12
- package/dist/external-link-DRzzevt_.js +0 -12
- package/dist/facebook-eXS31CP5.js +0 -30
- package/dist/farcaster-f0EPKy4w.js +0 -16
- package/dist/filters-RqawLZYy.js +0 -12
- package/dist/getChainIds-DXEtLb1g.js +0 -1888
- package/dist/getCosmosAddress-X_cfoAnv.js +0 -9517
- package/dist/github-d1vUfc1B.js +0 -22
- package/dist/google-Dtcfyt4F.js +0 -22
- package/dist/hamburger-DezZOKRv.js +0 -3915
- package/dist/help-circle-BTpSg7wr.js +0 -16
- package/dist/id-CV-pIIiZ.js +0 -16
- package/dist/image-n7ODnWNp.js +0 -8
- package/dist/index-BYmiFoJh.js +0 -29495
- package/dist/index-C7McnY5R.js +0 -18509
- package/dist/index-CI-V1HdQ.js +0 -3267
- package/dist/index-CSgWo9Cg.js +0 -6713
- package/dist/index-CViW2kjE.js +0 -13547
- package/dist/index-CoV9zQx1.js +0 -992
- package/dist/index-D_8iklL2.js +0 -1483
- package/dist/index-GlSAE8hE.js +0 -472
- package/dist/index-Pni0gIii.js +0 -206
- package/dist/index-TEYMoNwP.js +0 -9
- package/dist/index-VS3sEqmI.js +0 -330
- package/dist/index.es-BzyBckd_.js +0 -366
- package/dist/index.es-CMvE7ghR.js +0 -14904
- package/dist/info-DWZmKXfC.js +0 -7
- package/dist/info-circle-Bk9rpQzz.js +0 -16
- package/dist/lightbulb-CUDopurR.js +0 -7
- package/dist/mail-Df9wlUBz.js +0 -12
- package/dist/mobile-DcoUJktC.js +0 -13
- package/dist/more-DbsAB7Xx.js +0 -15
- package/dist/network-placeholder-CnHZLxGT.js +0 -18
- package/dist/nftPlaceholder-D7igGAAq.js +0 -12
- package/dist/off-Brms9nN7.js +0 -12
- package/dist/play-store-z4z-boXn.js +0 -36
- package/dist/plus-LkrIZJEQ.js +0 -17
- package/dist/qr-code-CZnYaNoE.js +0 -10
- package/dist/recycle-horizontal-CeGotUdv.js +0 -13
- package/dist/refresh-CKhWU1dQ.js +0 -12
- package/dist/reown-logo-CF2Qkyw1.js +0 -16
- package/dist/search-DyuAYb_-.js +0 -12
- package/dist/send-BbBOjlsM.js +0 -19
- package/dist/swapHorizontal-DA7yhPfV.js +0 -12
- package/dist/swapHorizontalBold-BujZxwgY.js +0 -12
- package/dist/swapHorizontalMedium-hEBn_MJv.js +0 -20
- package/dist/swapHorizontalRoundedBold-Cqg1Na-5.js +0 -12
- package/dist/swapVertical-D1CdGHJt.js +0 -12
- package/dist/telegram-dDQ2sOw5.js +0 -20
- package/dist/three-dots-ltDeu1Xu.js +0 -9
- package/dist/twitch-sBusnrAt.js +0 -22
- package/dist/twitterIcon-BKMgaEZ4.js +0 -10
- package/dist/unsupportedProp-P9y3_0om.js +0 -10
- package/dist/useRegisterError-DGMdKFc9.js +0 -8918
- package/dist/verify-DXzijLDZ.js +0 -12
- package/dist/verify-filled-DnKqj8X5.js +0 -12
- package/dist/w3m-modal-Cc1j8j_E.js +0 -1471
- package/dist/wallet-placeholder-DEsjd5Nv.js +0 -18
- package/dist/wallet-zL6TDKIa.js +0 -12
- package/dist/walletconnect-CZz6e0wy.js +0 -36
- package/dist/warning-circle-DsGlg2MF.js +0 -16
- package/dist/x-MwPhq03Y.js +0 -16
package/dist/index-CoV9zQx1.js
DELETED
@@ -1,992 +0,0 @@
|
|
1
|
-
import { B as N, D as V, i as b, r as $, a as S, x as m, n as q, F as I, o as H, e as Y } from "./core-BYOwnw_B.js";
|
2
|
-
const w = {
|
3
|
-
getSpacingStyles(e, t) {
|
4
|
-
if (Array.isArray(e))
|
5
|
-
return e[t] ? `var(--wui-spacing-${e[t]})` : void 0;
|
6
|
-
if (typeof e == "string")
|
7
|
-
return `var(--wui-spacing-${e})`;
|
8
|
-
},
|
9
|
-
getFormattedDate(e) {
|
10
|
-
return new Intl.DateTimeFormat("en-US", { month: "short", day: "numeric" }).format(e);
|
11
|
-
},
|
12
|
-
getHostName(e) {
|
13
|
-
try {
|
14
|
-
return new URL(e).hostname;
|
15
|
-
} catch {
|
16
|
-
return "";
|
17
|
-
}
|
18
|
-
},
|
19
|
-
getTruncateString({ string: e, charsStart: t, charsEnd: i, truncate: a }) {
|
20
|
-
return e.length <= t + i ? e : a === "end" ? `${e.substring(0, t)}...` : a === "start" ? `...${e.substring(e.length - i)}` : `${e.substring(0, Math.floor(t))}...${e.substring(e.length - Math.floor(i))}`;
|
21
|
-
},
|
22
|
-
generateAvatarColors(e) {
|
23
|
-
const i = e.toLowerCase().replace(/^0x/iu, "").replace(/[^a-f0-9]/gu, "").substring(0, 6).padEnd(6, "0"), a = this.hexToRgb(i), r = getComputedStyle(document.documentElement).getPropertyValue("--w3m-border-radius-master"), s = 100 - 3 * Number(r == null ? void 0 : r.replace("px", "")), n = `${s}% ${s}% at 65% 40%`, l = [];
|
24
|
-
for (let d = 0; d < 5; d += 1) {
|
25
|
-
const g = this.tintColor(a, 0.15 * d);
|
26
|
-
l.push(`rgb(${g[0]}, ${g[1]}, ${g[2]})`);
|
27
|
-
}
|
28
|
-
return `
|
29
|
-
--local-color-1: ${l[0]};
|
30
|
-
--local-color-2: ${l[1]};
|
31
|
-
--local-color-3: ${l[2]};
|
32
|
-
--local-color-4: ${l[3]};
|
33
|
-
--local-color-5: ${l[4]};
|
34
|
-
--local-radial-circle: ${n}
|
35
|
-
`;
|
36
|
-
},
|
37
|
-
hexToRgb(e) {
|
38
|
-
const t = parseInt(e, 16), i = t >> 16 & 255, a = t >> 8 & 255, r = t & 255;
|
39
|
-
return [i, a, r];
|
40
|
-
},
|
41
|
-
tintColor(e, t) {
|
42
|
-
const [i, a, r] = e, o = Math.round(i + (255 - i) * t), s = Math.round(a + (255 - a) * t), n = Math.round(r + (255 - r) * t);
|
43
|
-
return [o, s, n];
|
44
|
-
},
|
45
|
-
isNumber(e) {
|
46
|
-
return {
|
47
|
-
number: /^[0-9]+$/u
|
48
|
-
}.number.test(e);
|
49
|
-
},
|
50
|
-
getColorTheme(e) {
|
51
|
-
var t;
|
52
|
-
return e || (typeof window < "u" && window.matchMedia ? (t = window.matchMedia("(prefers-color-scheme: dark)")) != null && t.matches ? "dark" : "light" : "dark");
|
53
|
-
},
|
54
|
-
splitBalance(e) {
|
55
|
-
const t = e.split(".");
|
56
|
-
return t.length === 2 ? [t[0], t[1]] : ["0", "00"];
|
57
|
-
},
|
58
|
-
roundNumber(e, t, i) {
|
59
|
-
return e.toString().length >= t ? Number(e).toFixed(i) : e;
|
60
|
-
},
|
61
|
-
formatNumberToLocalString(e, t = 2) {
|
62
|
-
return e === void 0 ? "0.00" : typeof e == "number" ? e.toLocaleString("en-US", {
|
63
|
-
maximumFractionDigits: t,
|
64
|
-
minimumFractionDigits: t
|
65
|
-
}) : parseFloat(e).toLocaleString("en-US", {
|
66
|
-
maximumFractionDigits: t,
|
67
|
-
minimumFractionDigits: t
|
68
|
-
});
|
69
|
-
}
|
70
|
-
};
|
71
|
-
function X(e, t) {
|
72
|
-
const { kind: i, elements: a } = t;
|
73
|
-
return {
|
74
|
-
kind: i,
|
75
|
-
elements: a,
|
76
|
-
finisher(r) {
|
77
|
-
customElements.get(e) || customElements.define(e, r);
|
78
|
-
}
|
79
|
-
};
|
80
|
-
}
|
81
|
-
function K(e, t) {
|
82
|
-
return customElements.get(e) || customElements.define(e, t), t;
|
83
|
-
}
|
84
|
-
function x(e) {
|
85
|
-
return function(i) {
|
86
|
-
return typeof i == "function" ? K(e, i) : X(e, i);
|
87
|
-
};
|
88
|
-
}
|
89
|
-
const Z = { attribute: !0, type: String, converter: V, reflect: !1, hasChanged: N }, Q = (e = Z, t, i) => {
|
90
|
-
const { kind: a, metadata: r } = i;
|
91
|
-
let o = globalThis.litPropertyMetadata.get(r);
|
92
|
-
if (o === void 0 && globalThis.litPropertyMetadata.set(r, o = /* @__PURE__ */ new Map()), a === "setter" && ((e = Object.create(e)).wrapped = !0), o.set(i.name, e), a === "accessor") {
|
93
|
-
const { name: s } = i;
|
94
|
-
return { set(n) {
|
95
|
-
const l = t.get.call(this);
|
96
|
-
t.set.call(this, n), this.requestUpdate(s, l, e);
|
97
|
-
}, init(n) {
|
98
|
-
return n !== void 0 && this.C(s, void 0, e, n), n;
|
99
|
-
} };
|
100
|
-
}
|
101
|
-
if (a === "setter") {
|
102
|
-
const { name: s } = i;
|
103
|
-
return function(n) {
|
104
|
-
const l = this[s];
|
105
|
-
t.call(this, n), this.requestUpdate(s, l, e);
|
106
|
-
};
|
107
|
-
}
|
108
|
-
throw Error("Unsupported decorator location: " + a);
|
109
|
-
};
|
110
|
-
function c(e) {
|
111
|
-
return (t, i) => typeof i == "object" ? Q(e, t, i) : ((a, r, o) => {
|
112
|
-
const s = r.hasOwnProperty(o);
|
113
|
-
return r.constructor.createProperty(o, a), s ? Object.getOwnPropertyDescriptor(r, o) : void 0;
|
114
|
-
})(e, t, i);
|
115
|
-
}
|
116
|
-
function bt(e) {
|
117
|
-
return c({ ...e, state: !0, attribute: !1 });
|
118
|
-
}
|
119
|
-
const J = b`
|
120
|
-
:host {
|
121
|
-
display: flex;
|
122
|
-
width: inherit;
|
123
|
-
height: inherit;
|
124
|
-
}
|
125
|
-
`;
|
126
|
-
var u = function(e, t, i, a) {
|
127
|
-
var r = arguments.length, o = r < 3 ? t : a, s;
|
128
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(e, t, i, a);
|
129
|
-
else for (var n = e.length - 1; n >= 0; n--) (s = e[n]) && (o = (r < 3 ? s(o) : r > 3 ? s(t, i, o) : s(t, i)) || o);
|
130
|
-
return r > 3 && o && Object.defineProperty(t, i, o), o;
|
131
|
-
};
|
132
|
-
let h = class extends S {
|
133
|
-
render() {
|
134
|
-
return this.style.cssText = `
|
135
|
-
flex-direction: ${this.flexDirection};
|
136
|
-
flex-wrap: ${this.flexWrap};
|
137
|
-
flex-basis: ${this.flexBasis};
|
138
|
-
flex-grow: ${this.flexGrow};
|
139
|
-
flex-shrink: ${this.flexShrink};
|
140
|
-
align-items: ${this.alignItems};
|
141
|
-
justify-content: ${this.justifyContent};
|
142
|
-
column-gap: ${this.columnGap && `var(--wui-spacing-${this.columnGap})`};
|
143
|
-
row-gap: ${this.rowGap && `var(--wui-spacing-${this.rowGap})`};
|
144
|
-
gap: ${this.gap && `var(--wui-spacing-${this.gap})`};
|
145
|
-
padding-top: ${this.padding && w.getSpacingStyles(this.padding, 0)};
|
146
|
-
padding-right: ${this.padding && w.getSpacingStyles(this.padding, 1)};
|
147
|
-
padding-bottom: ${this.padding && w.getSpacingStyles(this.padding, 2)};
|
148
|
-
padding-left: ${this.padding && w.getSpacingStyles(this.padding, 3)};
|
149
|
-
margin-top: ${this.margin && w.getSpacingStyles(this.margin, 0)};
|
150
|
-
margin-right: ${this.margin && w.getSpacingStyles(this.margin, 1)};
|
151
|
-
margin-bottom: ${this.margin && w.getSpacingStyles(this.margin, 2)};
|
152
|
-
margin-left: ${this.margin && w.getSpacingStyles(this.margin, 3)};
|
153
|
-
`, m`<slot></slot>`;
|
154
|
-
}
|
155
|
-
};
|
156
|
-
h.styles = [$, J];
|
157
|
-
u([
|
158
|
-
c()
|
159
|
-
], h.prototype, "flexDirection", void 0);
|
160
|
-
u([
|
161
|
-
c()
|
162
|
-
], h.prototype, "flexWrap", void 0);
|
163
|
-
u([
|
164
|
-
c()
|
165
|
-
], h.prototype, "flexBasis", void 0);
|
166
|
-
u([
|
167
|
-
c()
|
168
|
-
], h.prototype, "flexGrow", void 0);
|
169
|
-
u([
|
170
|
-
c()
|
171
|
-
], h.prototype, "flexShrink", void 0);
|
172
|
-
u([
|
173
|
-
c()
|
174
|
-
], h.prototype, "alignItems", void 0);
|
175
|
-
u([
|
176
|
-
c()
|
177
|
-
], h.prototype, "justifyContent", void 0);
|
178
|
-
u([
|
179
|
-
c()
|
180
|
-
], h.prototype, "columnGap", void 0);
|
181
|
-
u([
|
182
|
-
c()
|
183
|
-
], h.prototype, "rowGap", void 0);
|
184
|
-
u([
|
185
|
-
c()
|
186
|
-
], h.prototype, "gap", void 0);
|
187
|
-
u([
|
188
|
-
c()
|
189
|
-
], h.prototype, "padding", void 0);
|
190
|
-
u([
|
191
|
-
c()
|
192
|
-
], h.prototype, "margin", void 0);
|
193
|
-
h = u([
|
194
|
-
x("wui-flex")
|
195
|
-
], h);
|
196
|
-
const St = (e) => e ?? q;
|
197
|
-
const tt = (e) => e === null || typeof e != "object" && typeof e != "function", et = (e) => e.strings === void 0;
|
198
|
-
const F = { ATTRIBUTE: 1, CHILD: 2 }, O = (e) => (...t) => ({ _$litDirective$: e, values: t });
|
199
|
-
let G = class {
|
200
|
-
constructor(t) {
|
201
|
-
}
|
202
|
-
get _$AU() {
|
203
|
-
return this._$AM._$AU;
|
204
|
-
}
|
205
|
-
_$AT(t, i, a) {
|
206
|
-
this._$Ct = t, this._$AM = i, this._$Ci = a;
|
207
|
-
}
|
208
|
-
_$AS(t, i) {
|
209
|
-
return this.update(t, i);
|
210
|
-
}
|
211
|
-
update(t, i) {
|
212
|
-
return this.render(...i);
|
213
|
-
}
|
214
|
-
};
|
215
|
-
const z = (e, t) => {
|
216
|
-
var a;
|
217
|
-
const i = e._$AN;
|
218
|
-
if (i === void 0) return !1;
|
219
|
-
for (const r of i) (a = r._$AO) == null || a.call(r, t, !1), z(r, t);
|
220
|
-
return !0;
|
221
|
-
}, A = (e) => {
|
222
|
-
let t, i;
|
223
|
-
do {
|
224
|
-
if ((t = e._$AM) === void 0) break;
|
225
|
-
i = t._$AN, i.delete(e), e = t;
|
226
|
-
} while ((i == null ? void 0 : i.size) === 0);
|
227
|
-
}, D = (e) => {
|
228
|
-
for (let t; t = e._$AM; e = t) {
|
229
|
-
let i = t._$AN;
|
230
|
-
if (i === void 0) t._$AN = i = /* @__PURE__ */ new Set();
|
231
|
-
else if (i.has(e)) break;
|
232
|
-
i.add(e), rt(t);
|
233
|
-
}
|
234
|
-
};
|
235
|
-
function it(e) {
|
236
|
-
this._$AN !== void 0 ? (A(this), this._$AM = e, D(this)) : this._$AM = e;
|
237
|
-
}
|
238
|
-
function ot(e, t = !1, i = 0) {
|
239
|
-
const a = this._$AH, r = this._$AN;
|
240
|
-
if (r !== void 0 && r.size !== 0) if (t) if (Array.isArray(a)) for (let o = i; o < a.length; o++) z(a[o], !1), A(a[o]);
|
241
|
-
else a != null && (z(a, !1), A(a));
|
242
|
-
else z(this, e);
|
243
|
-
}
|
244
|
-
const rt = (e) => {
|
245
|
-
e.type == F.CHILD && (e._$AP ?? (e._$AP = ot), e._$AQ ?? (e._$AQ = it));
|
246
|
-
};
|
247
|
-
class at extends G {
|
248
|
-
constructor() {
|
249
|
-
super(...arguments), this._$AN = void 0;
|
250
|
-
}
|
251
|
-
_$AT(t, i, a) {
|
252
|
-
super._$AT(t, i, a), D(this), this.isConnected = t._$AU;
|
253
|
-
}
|
254
|
-
_$AO(t, i = !0) {
|
255
|
-
var a, r;
|
256
|
-
t !== this.isConnected && (this.isConnected = t, t ? (a = this.reconnected) == null || a.call(this) : (r = this.disconnected) == null || r.call(this)), i && (z(this, t), A(this));
|
257
|
-
}
|
258
|
-
setValue(t) {
|
259
|
-
if (et(this._$Ct)) this._$Ct._$AI(t, this);
|
260
|
-
else {
|
261
|
-
const i = [...this._$Ct._$AH];
|
262
|
-
i[this._$Ci] = t, this._$Ct._$AI(i, this, 0);
|
263
|
-
}
|
264
|
-
}
|
265
|
-
disconnected() {
|
266
|
-
}
|
267
|
-
reconnected() {
|
268
|
-
}
|
269
|
-
}
|
270
|
-
class st {
|
271
|
-
constructor(t) {
|
272
|
-
this.G = t;
|
273
|
-
}
|
274
|
-
disconnect() {
|
275
|
-
this.G = void 0;
|
276
|
-
}
|
277
|
-
reconnect(t) {
|
278
|
-
this.G = t;
|
279
|
-
}
|
280
|
-
deref() {
|
281
|
-
return this.G;
|
282
|
-
}
|
283
|
-
}
|
284
|
-
class nt {
|
285
|
-
constructor() {
|
286
|
-
this.Y = void 0, this.Z = void 0;
|
287
|
-
}
|
288
|
-
get() {
|
289
|
-
return this.Y;
|
290
|
-
}
|
291
|
-
pause() {
|
292
|
-
this.Y ?? (this.Y = new Promise((t) => this.Z = t));
|
293
|
-
}
|
294
|
-
resume() {
|
295
|
-
var t;
|
296
|
-
(t = this.Z) == null || t.call(this), this.Y = this.Z = void 0;
|
297
|
-
}
|
298
|
-
}
|
299
|
-
const U = (e) => !tt(e) && typeof e.then == "function", W = 1073741823;
|
300
|
-
class ct extends at {
|
301
|
-
constructor() {
|
302
|
-
super(...arguments), this._$Cwt = W, this._$Cbt = [], this._$CK = new st(this), this._$CX = new nt();
|
303
|
-
}
|
304
|
-
render(...t) {
|
305
|
-
return t.find((i) => !U(i)) ?? I;
|
306
|
-
}
|
307
|
-
update(t, i) {
|
308
|
-
const a = this._$Cbt;
|
309
|
-
let r = a.length;
|
310
|
-
this._$Cbt = i;
|
311
|
-
const o = this._$CK, s = this._$CX;
|
312
|
-
this.isConnected || this.disconnected();
|
313
|
-
for (let n = 0; n < i.length && !(n > this._$Cwt); n++) {
|
314
|
-
const l = i[n];
|
315
|
-
if (!U(l)) return this._$Cwt = n, l;
|
316
|
-
n < r && l === a[n] || (this._$Cwt = W, r = 0, Promise.resolve(l).then(async (d) => {
|
317
|
-
for (; s.get(); ) await s.get();
|
318
|
-
const g = o.deref();
|
319
|
-
if (g !== void 0) {
|
320
|
-
const B = g._$Cbt.indexOf(l);
|
321
|
-
B > -1 && B < g._$Cwt && (g._$Cwt = B, g.setValue(d));
|
322
|
-
}
|
323
|
-
}));
|
324
|
-
}
|
325
|
-
return I;
|
326
|
-
}
|
327
|
-
disconnected() {
|
328
|
-
this._$CK.disconnect(), this._$CX.pause();
|
329
|
-
}
|
330
|
-
reconnected() {
|
331
|
-
this._$CK.reconnect(this), this._$CX.resume();
|
332
|
-
}
|
333
|
-
}
|
334
|
-
const lt = O(ct);
|
335
|
-
class ht {
|
336
|
-
constructor() {
|
337
|
-
this.cache = /* @__PURE__ */ new Map();
|
338
|
-
}
|
339
|
-
set(t, i) {
|
340
|
-
this.cache.set(t, i);
|
341
|
-
}
|
342
|
-
get(t) {
|
343
|
-
return this.cache.get(t);
|
344
|
-
}
|
345
|
-
has(t) {
|
346
|
-
return this.cache.has(t);
|
347
|
-
}
|
348
|
-
delete(t) {
|
349
|
-
this.cache.delete(t);
|
350
|
-
}
|
351
|
-
clear() {
|
352
|
-
this.cache.clear();
|
353
|
-
}
|
354
|
-
}
|
355
|
-
const P = new ht(), ut = b`
|
356
|
-
:host {
|
357
|
-
display: flex;
|
358
|
-
aspect-ratio: var(--local-aspect-ratio);
|
359
|
-
color: var(--local-color);
|
360
|
-
width: var(--local-width);
|
361
|
-
}
|
362
|
-
|
363
|
-
svg {
|
364
|
-
width: inherit;
|
365
|
-
height: inherit;
|
366
|
-
object-fit: contain;
|
367
|
-
object-position: center;
|
368
|
-
}
|
369
|
-
|
370
|
-
.fallback {
|
371
|
-
width: var(--local-width);
|
372
|
-
height: var(--local-height);
|
373
|
-
}
|
374
|
-
`;
|
375
|
-
var R = function(e, t, i, a) {
|
376
|
-
var r = arguments.length, o = r < 3 ? t : a, s;
|
377
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(e, t, i, a);
|
378
|
-
else for (var n = e.length - 1; n >= 0; n--) (s = e[n]) && (o = (r < 3 ? s(o) : r > 3 ? s(t, i, o) : s(t, i)) || o);
|
379
|
-
return r > 3 && o && Object.defineProperty(t, i, o), o;
|
380
|
-
};
|
381
|
-
const E = {
|
382
|
-
add: async () => (await import("./add-Dfrw-dUV.js")).addSvg,
|
383
|
-
allWallets: async () => (await import("./all-wallets-DOnIRIv0.js")).allWalletsSvg,
|
384
|
-
arrowBottomCircle: async () => (await import("./arrow-bottom-circle-BUny4yP8.js")).arrowBottomCircleSvg,
|
385
|
-
appStore: async () => (await import("./app-store-DJiZFSCr.js")).appStoreSvg,
|
386
|
-
apple: async () => (await import("./apple-kMZGS4AC.js")).appleSvg,
|
387
|
-
arrowBottom: async () => (await import("./arrow-bottom-D4arnome.js")).arrowBottomSvg,
|
388
|
-
arrowLeft: async () => (await import("./arrow-left-DImJbKZs.js")).arrowLeftSvg,
|
389
|
-
arrowRight: async () => (await import("./arrow-right-CMwyPVT7.js")).arrowRightSvg,
|
390
|
-
arrowTop: async () => (await import("./arrow-top-kn9xtx92.js")).arrowTopSvg,
|
391
|
-
bank: async () => (await import("./bank-DK-FvDfd.js")).bankSvg,
|
392
|
-
browser: async () => (await import("./browser-BzT1ACe9.js")).browserSvg,
|
393
|
-
card: async () => (await import("./card-DqDM55a-.js")).cardSvg,
|
394
|
-
checkmark: async () => (await import("./checkmark-B_osdsm_.js")).checkmarkSvg,
|
395
|
-
checkmarkBold: async () => (await import("./checkmark-bold-Dzv2hN2Q.js")).checkmarkBoldSvg,
|
396
|
-
chevronBottom: async () => (await import("./chevron-bottom-CXdHWe0F.js")).chevronBottomSvg,
|
397
|
-
chevronLeft: async () => (await import("./chevron-left-CeuFz3M9.js")).chevronLeftSvg,
|
398
|
-
chevronRight: async () => (await import("./chevron-right-BPgQeMPz.js")).chevronRightSvg,
|
399
|
-
chevronTop: async () => (await import("./chevron-top-BskFpgMP.js")).chevronTopSvg,
|
400
|
-
chromeStore: async () => (await import("./chrome-store-CxhEG2Jk.js")).chromeStoreSvg,
|
401
|
-
clock: async () => (await import("./clock-BDgHn083.js")).clockSvg,
|
402
|
-
close: async () => (await import("./close-CQTa1LZg.js")).closeSvg,
|
403
|
-
compass: async () => (await import("./compass-C1H_fht-.js")).compassSvg,
|
404
|
-
coinPlaceholder: async () => (await import("./coinPlaceholder-BExfa33b.js")).coinPlaceholderSvg,
|
405
|
-
copy: async () => (await import("./copy-Cg4vgr82.js")).copySvg,
|
406
|
-
cursor: async () => (await import("./cursor-BoD_rq0f.js")).cursorSvg,
|
407
|
-
cursorTransparent: async () => (await import("./cursor-transparent-IQlZspwQ.js")).cursorTransparentSvg,
|
408
|
-
desktop: async () => (await import("./desktop-WMYv3b4Q.js")).desktopSvg,
|
409
|
-
disconnect: async () => (await import("./disconnect-CTxFyZWa.js")).disconnectSvg,
|
410
|
-
discord: async () => (await import("./discord-BJRxIhBt.js")).discordSvg,
|
411
|
-
etherscan: async () => (await import("./etherscan-CyQf5MH5.js")).etherscanSvg,
|
412
|
-
extension: async () => (await import("./extension-XiWSr1Ku.js")).extensionSvg,
|
413
|
-
externalLink: async () => (await import("./external-link-DRzzevt_.js")).externalLinkSvg,
|
414
|
-
facebook: async () => (await import("./facebook-DhP37m2R.js")).facebookSvg,
|
415
|
-
farcaster: async () => (await import("./farcaster-C1J2oGt2.js")).farcasterSvg,
|
416
|
-
filters: async () => (await import("./filters-RqawLZYy.js")).filtersSvg,
|
417
|
-
github: async () => (await import("./github-d1vUfc1B.js")).githubSvg,
|
418
|
-
google: async () => (await import("./google-Dtcfyt4F.js")).googleSvg,
|
419
|
-
helpCircle: async () => (await import("./help-circle-BTpSg7wr.js")).helpCircleSvg,
|
420
|
-
image: async () => (await import("./image-DrFHyQOS.js")).imageSvg,
|
421
|
-
id: async () => (await import("./id-CV-pIIiZ.js")).idSvg,
|
422
|
-
infoCircle: async () => (await import("./info-circle-Bk9rpQzz.js")).infoCircleSvg,
|
423
|
-
lightbulb: async () => (await import("./lightbulb-CUDopurR.js")).lightbulbSvg,
|
424
|
-
mail: async () => (await import("./mail-CYcc9yZZ.js")).mailSvg,
|
425
|
-
mobile: async () => (await import("./mobile-Cvm9Skqq.js")).mobileSvg,
|
426
|
-
more: async () => (await import("./more-B-UvO1Yo.js")).moreSvg,
|
427
|
-
networkPlaceholder: async () => (await import("./network-placeholder-CnHZLxGT.js")).networkPlaceholderSvg,
|
428
|
-
nftPlaceholder: async () => (await import("./nftPlaceholder-D7igGAAq.js")).nftPlaceholderSvg,
|
429
|
-
off: async () => (await import("./off-BEQbMYBZ.js")).offSvg,
|
430
|
-
playStore: async () => (await import("./play-store-z4z-boXn.js")).playStoreSvg,
|
431
|
-
plus: async () => (await import("./plus-CtEYHV2t.js")).plusSvg,
|
432
|
-
qrCode: async () => (await import("./qr-code-BhmZxeo_.js")).qrCodeIcon,
|
433
|
-
recycleHorizontal: async () => (await import("./recycle-horizontal-CeGotUdv.js")).recycleHorizontalSvg,
|
434
|
-
refresh: async () => (await import("./refresh-Bm3plkBE.js")).refreshSvg,
|
435
|
-
search: async () => (await import("./search-DNcA47oY.js")).searchSvg,
|
436
|
-
send: async () => (await import("./send-B0S9gHH6.js")).sendSvg,
|
437
|
-
swapHorizontal: async () => (await import("./swapHorizontal-BuTPPB8N.js")).swapHorizontalSvg,
|
438
|
-
swapHorizontalMedium: async () => (await import("./swapHorizontalMedium-9QnwwjJD.js")).swapHorizontalMediumSvg,
|
439
|
-
swapHorizontalBold: async () => (await import("./swapHorizontalBold-BnB-fpce.js")).swapHorizontalBoldSvg,
|
440
|
-
swapHorizontalRoundedBold: async () => (await import("./swapHorizontalRoundedBold-C83mxp3u.js")).swapHorizontalRoundedBoldSvg,
|
441
|
-
swapVertical: async () => (await import("./swapVertical-D1CdGHJt.js")).swapVerticalSvg,
|
442
|
-
telegram: async () => (await import("./telegram-dDQ2sOw5.js")).telegramSvg,
|
443
|
-
threeDots: async () => (await import("./three-dots-ltDeu1Xu.js")).threeDotsSvg,
|
444
|
-
twitch: async () => (await import("./twitch-sBusnrAt.js")).twitchSvg,
|
445
|
-
twitter: async () => (await import("./x-MwPhq03Y.js")).xSvg,
|
446
|
-
twitterIcon: async () => (await import("./twitterIcon-B9n98fnH.js")).twitterIconSvg,
|
447
|
-
verify: async () => (await import("./verify-BHTa1Niv.js")).verifySvg,
|
448
|
-
verifyFilled: async () => (await import("./verify-filled-DnKqj8X5.js")).verifyFilledSvg,
|
449
|
-
wallet: async () => (await import("./wallet-zL6TDKIa.js")).walletSvg,
|
450
|
-
walletConnect: async () => (await import("./walletconnect-CZz6e0wy.js")).walletConnectSvg,
|
451
|
-
walletConnectLightBrown: async () => (await import("./walletconnect-CZz6e0wy.js")).walletConnectLightBrownSvg,
|
452
|
-
walletConnectBrown: async () => (await import("./walletconnect-CZz6e0wy.js")).walletConnectBrownSvg,
|
453
|
-
walletPlaceholder: async () => (await import("./wallet-placeholder-BxVrKpEz.js")).walletPlaceholderSvg,
|
454
|
-
warningCircle: async () => (await import("./warning-circle-DOwgDOgL.js")).warningCircleSvg,
|
455
|
-
x: async () => (await import("./x-MwPhq03Y.js")).xSvg,
|
456
|
-
info: async () => (await import("./info-DB9XS3BU.js")).infoSvg,
|
457
|
-
exclamationTriangle: async () => (await import("./exclamation-triangle-DFOXjtuI.js")).exclamationTriangleSvg,
|
458
|
-
reown: async () => (await import("./reown-logo-CF2Qkyw1.js")).reownSvg
|
459
|
-
};
|
460
|
-
async function pt(e) {
|
461
|
-
if (P.has(e))
|
462
|
-
return P.get(e);
|
463
|
-
const i = (E[e] ?? E.copy)();
|
464
|
-
return P.set(e, i), i;
|
465
|
-
}
|
466
|
-
let v = class extends S {
|
467
|
-
constructor() {
|
468
|
-
super(...arguments), this.size = "md", this.name = "copy", this.color = "fg-300", this.aspectRatio = "1 / 1";
|
469
|
-
}
|
470
|
-
render() {
|
471
|
-
return this.style.cssText = `
|
472
|
-
--local-color: ${`var(--wui-color-${this.color});`}
|
473
|
-
--local-width: ${`var(--wui-icon-size-${this.size});`}
|
474
|
-
--local-aspect-ratio: ${this.aspectRatio}
|
475
|
-
`, m`${lt(pt(this.name), m`<div class="fallback"></div>`)}`;
|
476
|
-
}
|
477
|
-
};
|
478
|
-
v.styles = [$, H, ut];
|
479
|
-
R([
|
480
|
-
c()
|
481
|
-
], v.prototype, "size", void 0);
|
482
|
-
R([
|
483
|
-
c()
|
484
|
-
], v.prototype, "name", void 0);
|
485
|
-
R([
|
486
|
-
c()
|
487
|
-
], v.prototype, "color", void 0);
|
488
|
-
R([
|
489
|
-
c()
|
490
|
-
], v.prototype, "aspectRatio", void 0);
|
491
|
-
v = R([
|
492
|
-
x("wui-icon")
|
493
|
-
], v);
|
494
|
-
const dt = O(class extends G {
|
495
|
-
constructor(e) {
|
496
|
-
var t;
|
497
|
-
if (super(e), e.type !== F.ATTRIBUTE || e.name !== "class" || ((t = e.strings) == null ? void 0 : t.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
498
|
-
}
|
499
|
-
render(e) {
|
500
|
-
return " " + Object.keys(e).filter((t) => e[t]).join(" ") + " ";
|
501
|
-
}
|
502
|
-
update(e, [t]) {
|
503
|
-
var a, r;
|
504
|
-
if (this.st === void 0) {
|
505
|
-
this.st = /* @__PURE__ */ new Set(), e.strings !== void 0 && (this.nt = new Set(e.strings.join(" ").split(/\s/).filter((o) => o !== "")));
|
506
|
-
for (const o in t) t[o] && !((a = this.nt) != null && a.has(o)) && this.st.add(o);
|
507
|
-
return this.render(t);
|
508
|
-
}
|
509
|
-
const i = e.element.classList;
|
510
|
-
for (const o of this.st) o in t || (i.remove(o), this.st.delete(o));
|
511
|
-
for (const o in t) {
|
512
|
-
const s = !!t[o];
|
513
|
-
s === this.st.has(o) || (r = this.nt) != null && r.has(o) || (s ? (i.add(o), this.st.add(o)) : (i.remove(o), this.st.delete(o)));
|
514
|
-
}
|
515
|
-
return I;
|
516
|
-
}
|
517
|
-
}), gt = b`
|
518
|
-
:host {
|
519
|
-
display: inline-flex !important;
|
520
|
-
}
|
521
|
-
|
522
|
-
slot {
|
523
|
-
width: 100%;
|
524
|
-
display: inline-block;
|
525
|
-
font-style: normal;
|
526
|
-
font-family: var(--wui-font-family);
|
527
|
-
font-feature-settings:
|
528
|
-
'tnum' on,
|
529
|
-
'lnum' on,
|
530
|
-
'case' on;
|
531
|
-
line-height: 130%;
|
532
|
-
font-weight: var(--wui-font-weight-regular);
|
533
|
-
overflow: inherit;
|
534
|
-
text-overflow: inherit;
|
535
|
-
text-align: var(--local-align);
|
536
|
-
color: var(--local-color);
|
537
|
-
}
|
538
|
-
|
539
|
-
.wui-line-clamp-1 {
|
540
|
-
overflow: hidden;
|
541
|
-
display: -webkit-box;
|
542
|
-
-webkit-box-orient: vertical;
|
543
|
-
-webkit-line-clamp: 1;
|
544
|
-
}
|
545
|
-
|
546
|
-
.wui-line-clamp-2 {
|
547
|
-
overflow: hidden;
|
548
|
-
display: -webkit-box;
|
549
|
-
-webkit-box-orient: vertical;
|
550
|
-
-webkit-line-clamp: 2;
|
551
|
-
}
|
552
|
-
|
553
|
-
.wui-font-medium-400 {
|
554
|
-
font-size: var(--wui-font-size-medium);
|
555
|
-
font-weight: var(--wui-font-weight-light);
|
556
|
-
letter-spacing: var(--wui-letter-spacing-medium);
|
557
|
-
}
|
558
|
-
|
559
|
-
.wui-font-medium-600 {
|
560
|
-
font-size: var(--wui-font-size-medium);
|
561
|
-
letter-spacing: var(--wui-letter-spacing-medium);
|
562
|
-
}
|
563
|
-
|
564
|
-
.wui-font-title-600 {
|
565
|
-
font-size: var(--wui-font-size-title);
|
566
|
-
letter-spacing: var(--wui-letter-spacing-title);
|
567
|
-
}
|
568
|
-
|
569
|
-
.wui-font-title-6-600 {
|
570
|
-
font-size: var(--wui-font-size-title-6);
|
571
|
-
letter-spacing: var(--wui-letter-spacing-title-6);
|
572
|
-
}
|
573
|
-
|
574
|
-
.wui-font-mini-700 {
|
575
|
-
font-size: var(--wui-font-size-mini);
|
576
|
-
letter-spacing: var(--wui-letter-spacing-mini);
|
577
|
-
text-transform: uppercase;
|
578
|
-
}
|
579
|
-
|
580
|
-
.wui-font-large-500,
|
581
|
-
.wui-font-large-600,
|
582
|
-
.wui-font-large-700 {
|
583
|
-
font-size: var(--wui-font-size-large);
|
584
|
-
letter-spacing: var(--wui-letter-spacing-large);
|
585
|
-
}
|
586
|
-
|
587
|
-
.wui-font-2xl-500,
|
588
|
-
.wui-font-2xl-600,
|
589
|
-
.wui-font-2xl-700 {
|
590
|
-
font-size: var(--wui-font-size-2xl);
|
591
|
-
letter-spacing: var(--wui-letter-spacing-2xl);
|
592
|
-
}
|
593
|
-
|
594
|
-
.wui-font-paragraph-400,
|
595
|
-
.wui-font-paragraph-500,
|
596
|
-
.wui-font-paragraph-600,
|
597
|
-
.wui-font-paragraph-700 {
|
598
|
-
font-size: var(--wui-font-size-paragraph);
|
599
|
-
letter-spacing: var(--wui-letter-spacing-paragraph);
|
600
|
-
}
|
601
|
-
|
602
|
-
.wui-font-small-400,
|
603
|
-
.wui-font-small-500,
|
604
|
-
.wui-font-small-600 {
|
605
|
-
font-size: var(--wui-font-size-small);
|
606
|
-
letter-spacing: var(--wui-letter-spacing-small);
|
607
|
-
}
|
608
|
-
|
609
|
-
.wui-font-tiny-400,
|
610
|
-
.wui-font-tiny-500,
|
611
|
-
.wui-font-tiny-600 {
|
612
|
-
font-size: var(--wui-font-size-tiny);
|
613
|
-
letter-spacing: var(--wui-letter-spacing-tiny);
|
614
|
-
}
|
615
|
-
|
616
|
-
.wui-font-micro-700,
|
617
|
-
.wui-font-micro-600 {
|
618
|
-
font-size: var(--wui-font-size-micro);
|
619
|
-
letter-spacing: var(--wui-letter-spacing-micro);
|
620
|
-
text-transform: uppercase;
|
621
|
-
}
|
622
|
-
|
623
|
-
.wui-font-tiny-400,
|
624
|
-
.wui-font-small-400,
|
625
|
-
.wui-font-medium-400,
|
626
|
-
.wui-font-paragraph-400 {
|
627
|
-
font-weight: var(--wui-font-weight-light);
|
628
|
-
}
|
629
|
-
|
630
|
-
.wui-font-large-700,
|
631
|
-
.wui-font-paragraph-700,
|
632
|
-
.wui-font-micro-700,
|
633
|
-
.wui-font-mini-700 {
|
634
|
-
font-weight: var(--wui-font-weight-bold);
|
635
|
-
}
|
636
|
-
|
637
|
-
.wui-font-medium-600,
|
638
|
-
.wui-font-medium-title-600,
|
639
|
-
.wui-font-title-6-600,
|
640
|
-
.wui-font-large-600,
|
641
|
-
.wui-font-paragraph-600,
|
642
|
-
.wui-font-small-600,
|
643
|
-
.wui-font-tiny-600,
|
644
|
-
.wui-font-micro-600 {
|
645
|
-
font-weight: var(--wui-font-weight-medium);
|
646
|
-
}
|
647
|
-
|
648
|
-
:host([disabled]) {
|
649
|
-
opacity: 0.4;
|
650
|
-
}
|
651
|
-
`;
|
652
|
-
var T = function(e, t, i, a) {
|
653
|
-
var r = arguments.length, o = r < 3 ? t : a, s;
|
654
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(e, t, i, a);
|
655
|
-
else for (var n = e.length - 1; n >= 0; n--) (s = e[n]) && (o = (r < 3 ? s(o) : r > 3 ? s(t, i, o) : s(t, i)) || o);
|
656
|
-
return r > 3 && o && Object.defineProperty(t, i, o), o;
|
657
|
-
};
|
658
|
-
let y = class extends S {
|
659
|
-
constructor() {
|
660
|
-
super(...arguments), this.variant = "paragraph-500", this.color = "fg-300", this.align = "left", this.lineClamp = void 0;
|
661
|
-
}
|
662
|
-
render() {
|
663
|
-
const t = {
|
664
|
-
[`wui-font-${this.variant}`]: !0,
|
665
|
-
[`wui-color-${this.color}`]: !0,
|
666
|
-
[`wui-line-clamp-${this.lineClamp}`]: !!this.lineClamp
|
667
|
-
};
|
668
|
-
return this.style.cssText = `
|
669
|
-
--local-align: ${this.align};
|
670
|
-
--local-color: var(--wui-color-${this.color});
|
671
|
-
`, m`<slot class=${dt(t)}></slot>`;
|
672
|
-
}
|
673
|
-
};
|
674
|
-
y.styles = [$, gt];
|
675
|
-
T([
|
676
|
-
c()
|
677
|
-
], y.prototype, "variant", void 0);
|
678
|
-
T([
|
679
|
-
c()
|
680
|
-
], y.prototype, "color", void 0);
|
681
|
-
T([
|
682
|
-
c()
|
683
|
-
], y.prototype, "align", void 0);
|
684
|
-
T([
|
685
|
-
c()
|
686
|
-
], y.prototype, "lineClamp", void 0);
|
687
|
-
y = T([
|
688
|
-
x("wui-text")
|
689
|
-
], y);
|
690
|
-
const ft = b`
|
691
|
-
:host {
|
692
|
-
display: inline-flex;
|
693
|
-
justify-content: center;
|
694
|
-
align-items: center;
|
695
|
-
position: relative;
|
696
|
-
overflow: hidden;
|
697
|
-
background-color: var(--wui-color-gray-glass-020);
|
698
|
-
border-radius: var(--local-border-radius);
|
699
|
-
border: var(--local-border);
|
700
|
-
box-sizing: content-box;
|
701
|
-
width: var(--local-size);
|
702
|
-
height: var(--local-size);
|
703
|
-
min-height: var(--local-size);
|
704
|
-
min-width: var(--local-size);
|
705
|
-
}
|
706
|
-
|
707
|
-
@supports (background: color-mix(in srgb, white 50%, black)) {
|
708
|
-
:host {
|
709
|
-
background-color: color-mix(in srgb, var(--local-bg-value) var(--local-bg-mix), transparent);
|
710
|
-
}
|
711
|
-
}
|
712
|
-
`;
|
713
|
-
var f = function(e, t, i, a) {
|
714
|
-
var r = arguments.length, o = r < 3 ? t : a, s;
|
715
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(e, t, i, a);
|
716
|
-
else for (var n = e.length - 1; n >= 0; n--) (s = e[n]) && (o = (r < 3 ? s(o) : r > 3 ? s(t, i, o) : s(t, i)) || o);
|
717
|
-
return r > 3 && o && Object.defineProperty(t, i, o), o;
|
718
|
-
};
|
719
|
-
let p = class extends S {
|
720
|
-
constructor() {
|
721
|
-
super(...arguments), this.size = "md", this.backgroundColor = "accent-100", this.iconColor = "accent-100", this.background = "transparent", this.border = !1, this.borderColor = "wui-color-bg-125", this.icon = "copy";
|
722
|
-
}
|
723
|
-
render() {
|
724
|
-
const t = this.iconSize || this.size, i = this.size === "lg", a = this.size === "xl", r = i ? "12%" : "16%", o = i ? "xxs" : a ? "s" : "3xl", s = this.background === "gray", n = this.background === "opaque", l = this.backgroundColor === "accent-100" && n || this.backgroundColor === "success-100" && n || this.backgroundColor === "error-100" && n || this.backgroundColor === "inverse-100" && n;
|
725
|
-
let d = `var(--wui-color-${this.backgroundColor})`;
|
726
|
-
return l ? d = `var(--wui-icon-box-bg-${this.backgroundColor})` : s && (d = `var(--wui-color-gray-${this.backgroundColor})`), this.style.cssText = `
|
727
|
-
--local-bg-value: ${d};
|
728
|
-
--local-bg-mix: ${l || s ? "100%" : r};
|
729
|
-
--local-border-radius: var(--wui-border-radius-${o});
|
730
|
-
--local-size: var(--wui-icon-box-size-${this.size});
|
731
|
-
--local-border: ${this.borderColor === "wui-color-bg-125" ? "2px" : "1px"} solid ${this.border ? `var(--${this.borderColor})` : "transparent"}
|
732
|
-
`, m` <wui-icon color=${this.iconColor} size=${t} name=${this.icon}></wui-icon> `;
|
733
|
-
}
|
734
|
-
};
|
735
|
-
p.styles = [$, Y, ft];
|
736
|
-
f([
|
737
|
-
c()
|
738
|
-
], p.prototype, "size", void 0);
|
739
|
-
f([
|
740
|
-
c()
|
741
|
-
], p.prototype, "backgroundColor", void 0);
|
742
|
-
f([
|
743
|
-
c()
|
744
|
-
], p.prototype, "iconColor", void 0);
|
745
|
-
f([
|
746
|
-
c()
|
747
|
-
], p.prototype, "iconSize", void 0);
|
748
|
-
f([
|
749
|
-
c()
|
750
|
-
], p.prototype, "background", void 0);
|
751
|
-
f([
|
752
|
-
c({ type: Boolean })
|
753
|
-
], p.prototype, "border", void 0);
|
754
|
-
f([
|
755
|
-
c()
|
756
|
-
], p.prototype, "borderColor", void 0);
|
757
|
-
f([
|
758
|
-
c()
|
759
|
-
], p.prototype, "icon", void 0);
|
760
|
-
p = f([
|
761
|
-
x("wui-icon-box")
|
762
|
-
], p);
|
763
|
-
const wt = b`
|
764
|
-
:host {
|
765
|
-
display: block;
|
766
|
-
width: var(--local-width);
|
767
|
-
height: var(--local-height);
|
768
|
-
}
|
769
|
-
|
770
|
-
img {
|
771
|
-
display: block;
|
772
|
-
width: 100%;
|
773
|
-
height: 100%;
|
774
|
-
object-fit: cover;
|
775
|
-
object-position: center center;
|
776
|
-
border-radius: inherit;
|
777
|
-
}
|
778
|
-
`;
|
779
|
-
var j = function(e, t, i, a) {
|
780
|
-
var r = arguments.length, o = r < 3 ? t : a, s;
|
781
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(e, t, i, a);
|
782
|
-
else for (var n = e.length - 1; n >= 0; n--) (s = e[n]) && (o = (r < 3 ? s(o) : r > 3 ? s(t, i, o) : s(t, i)) || o);
|
783
|
-
return r > 3 && o && Object.defineProperty(t, i, o), o;
|
784
|
-
};
|
785
|
-
let C = class extends S {
|
786
|
-
constructor() {
|
787
|
-
super(...arguments), this.src = "./path/to/image.jpg", this.alt = "Image", this.size = void 0;
|
788
|
-
}
|
789
|
-
render() {
|
790
|
-
return this.style.cssText = `
|
791
|
-
--local-width: ${this.size ? `var(--wui-icon-size-${this.size});` : "100%"};
|
792
|
-
--local-height: ${this.size ? `var(--wui-icon-size-${this.size});` : "100%"};
|
793
|
-
`, m`<img src=${this.src} alt=${this.alt} @error=${this.handleImageError} />`;
|
794
|
-
}
|
795
|
-
handleImageError() {
|
796
|
-
this.dispatchEvent(new CustomEvent("onLoadError", { bubbles: !0, composed: !0 }));
|
797
|
-
}
|
798
|
-
};
|
799
|
-
C.styles = [$, H, wt];
|
800
|
-
j([
|
801
|
-
c()
|
802
|
-
], C.prototype, "src", void 0);
|
803
|
-
j([
|
804
|
-
c()
|
805
|
-
], C.prototype, "alt", void 0);
|
806
|
-
j([
|
807
|
-
c()
|
808
|
-
], C.prototype, "size", void 0);
|
809
|
-
C = j([
|
810
|
-
x("wui-image")
|
811
|
-
], C);
|
812
|
-
const mt = b`
|
813
|
-
:host {
|
814
|
-
display: flex;
|
815
|
-
justify-content: center;
|
816
|
-
align-items: center;
|
817
|
-
height: var(--wui-spacing-m);
|
818
|
-
padding: 0 var(--wui-spacing-3xs) !important;
|
819
|
-
border-radius: var(--wui-border-radius-5xs);
|
820
|
-
transition:
|
821
|
-
border-radius var(--wui-duration-lg) var(--wui-ease-out-power-1),
|
822
|
-
background-color var(--wui-duration-lg) var(--wui-ease-out-power-1);
|
823
|
-
will-change: border-radius, background-color;
|
824
|
-
}
|
825
|
-
|
826
|
-
:host > wui-text {
|
827
|
-
transform: translateY(5%);
|
828
|
-
}
|
829
|
-
|
830
|
-
:host([data-variant='main']) {
|
831
|
-
background-color: var(--wui-color-accent-glass-015);
|
832
|
-
color: var(--wui-color-accent-100);
|
833
|
-
}
|
834
|
-
|
835
|
-
:host([data-variant='shade']) {
|
836
|
-
background-color: var(--wui-color-gray-glass-010);
|
837
|
-
color: var(--wui-color-fg-200);
|
838
|
-
}
|
839
|
-
|
840
|
-
:host([data-variant='success']) {
|
841
|
-
background-color: var(--wui-icon-box-bg-success-100);
|
842
|
-
color: var(--wui-color-success-100);
|
843
|
-
}
|
844
|
-
|
845
|
-
:host([data-variant='error']) {
|
846
|
-
background-color: var(--wui-icon-box-bg-error-100);
|
847
|
-
color: var(--wui-color-error-100);
|
848
|
-
}
|
849
|
-
|
850
|
-
:host([data-size='lg']) {
|
851
|
-
padding: 11px 5px !important;
|
852
|
-
}
|
853
|
-
|
854
|
-
:host([data-size='lg']) > wui-text {
|
855
|
-
transform: translateY(2%);
|
856
|
-
}
|
857
|
-
`;
|
858
|
-
var M = function(e, t, i, a) {
|
859
|
-
var r = arguments.length, o = r < 3 ? t : a, s;
|
860
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(e, t, i, a);
|
861
|
-
else for (var n = e.length - 1; n >= 0; n--) (s = e[n]) && (o = (r < 3 ? s(o) : r > 3 ? s(t, i, o) : s(t, i)) || o);
|
862
|
-
return r > 3 && o && Object.defineProperty(t, i, o), o;
|
863
|
-
};
|
864
|
-
let _ = class extends S {
|
865
|
-
constructor() {
|
866
|
-
super(...arguments), this.variant = "main", this.size = "lg";
|
867
|
-
}
|
868
|
-
render() {
|
869
|
-
this.dataset.variant = this.variant, this.dataset.size = this.size;
|
870
|
-
const t = this.size === "md" ? "mini-700" : "micro-700";
|
871
|
-
return m`
|
872
|
-
<wui-text data-variant=${this.variant} variant=${t} color="inherit">
|
873
|
-
<slot></slot>
|
874
|
-
</wui-text>
|
875
|
-
`;
|
876
|
-
}
|
877
|
-
};
|
878
|
-
_.styles = [$, mt];
|
879
|
-
M([
|
880
|
-
c()
|
881
|
-
], _.prototype, "variant", void 0);
|
882
|
-
M([
|
883
|
-
c()
|
884
|
-
], _.prototype, "size", void 0);
|
885
|
-
_ = M([
|
886
|
-
x("wui-tag")
|
887
|
-
], _);
|
888
|
-
const vt = b`
|
889
|
-
:host {
|
890
|
-
display: flex;
|
891
|
-
}
|
892
|
-
|
893
|
-
:host([data-size='sm']) > svg {
|
894
|
-
width: 12px;
|
895
|
-
height: 12px;
|
896
|
-
}
|
897
|
-
|
898
|
-
:host([data-size='md']) > svg {
|
899
|
-
width: 16px;
|
900
|
-
height: 16px;
|
901
|
-
}
|
902
|
-
|
903
|
-
:host([data-size='lg']) > svg {
|
904
|
-
width: 24px;
|
905
|
-
height: 24px;
|
906
|
-
}
|
907
|
-
|
908
|
-
:host([data-size='xl']) > svg {
|
909
|
-
width: 32px;
|
910
|
-
height: 32px;
|
911
|
-
}
|
912
|
-
|
913
|
-
svg {
|
914
|
-
animation: rotate 2s linear infinite;
|
915
|
-
}
|
916
|
-
|
917
|
-
circle {
|
918
|
-
fill: none;
|
919
|
-
stroke: var(--local-color);
|
920
|
-
stroke-width: 4px;
|
921
|
-
stroke-dasharray: 1, 124;
|
922
|
-
stroke-dashoffset: 0;
|
923
|
-
stroke-linecap: round;
|
924
|
-
animation: dash 1.5s ease-in-out infinite;
|
925
|
-
}
|
926
|
-
|
927
|
-
:host([data-size='md']) > svg > circle {
|
928
|
-
stroke-width: 6px;
|
929
|
-
}
|
930
|
-
|
931
|
-
:host([data-size='sm']) > svg > circle {
|
932
|
-
stroke-width: 8px;
|
933
|
-
}
|
934
|
-
|
935
|
-
@keyframes rotate {
|
936
|
-
100% {
|
937
|
-
transform: rotate(360deg);
|
938
|
-
}
|
939
|
-
}
|
940
|
-
|
941
|
-
@keyframes dash {
|
942
|
-
0% {
|
943
|
-
stroke-dasharray: 1, 124;
|
944
|
-
stroke-dashoffset: 0;
|
945
|
-
}
|
946
|
-
|
947
|
-
50% {
|
948
|
-
stroke-dasharray: 90, 124;
|
949
|
-
stroke-dashoffset: -35;
|
950
|
-
}
|
951
|
-
|
952
|
-
100% {
|
953
|
-
stroke-dashoffset: -125;
|
954
|
-
}
|
955
|
-
}
|
956
|
-
`;
|
957
|
-
var L = function(e, t, i, a) {
|
958
|
-
var r = arguments.length, o = r < 3 ? t : a, s;
|
959
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(e, t, i, a);
|
960
|
-
else for (var n = e.length - 1; n >= 0; n--) (s = e[n]) && (o = (r < 3 ? s(o) : r > 3 ? s(t, i, o) : s(t, i)) || o);
|
961
|
-
return r > 3 && o && Object.defineProperty(t, i, o), o;
|
962
|
-
};
|
963
|
-
let k = class extends S {
|
964
|
-
constructor() {
|
965
|
-
super(...arguments), this.color = "accent-100", this.size = "lg";
|
966
|
-
}
|
967
|
-
render() {
|
968
|
-
return this.style.cssText = `--local-color: ${this.color === "inherit" ? "inherit" : `var(--wui-color-${this.color})`}`, this.dataset.size = this.size, m`<svg viewBox="25 25 50 50">
|
969
|
-
<circle r="20" cy="50" cx="50"></circle>
|
970
|
-
</svg>`;
|
971
|
-
}
|
972
|
-
};
|
973
|
-
k.styles = [$, vt];
|
974
|
-
L([
|
975
|
-
c()
|
976
|
-
], k.prototype, "color", void 0);
|
977
|
-
L([
|
978
|
-
c()
|
979
|
-
], k.prototype, "size", void 0);
|
980
|
-
k = L([
|
981
|
-
x("wui-loading-spinner")
|
982
|
-
], k);
|
983
|
-
export {
|
984
|
-
w as U,
|
985
|
-
dt as a,
|
986
|
-
x as c,
|
987
|
-
O as e,
|
988
|
-
at as f,
|
989
|
-
c as n,
|
990
|
-
St as o,
|
991
|
-
bt as r
|
992
|
-
};
|