@blockend/widget 1.0.60 → 1.0.61
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-Bi2Qb6vT.js → AllRoutes-BqW5S4_J.js} +9 -9
- package/dist/AllRoutes-CIe7ZLbW.js +2209 -0
- package/dist/{Box-DofFTOO9.js → Box-Dw7IJo3D.js} +1 -1
- package/dist/Box-QpYIDD-V.js +54 -0
- package/dist/EstGas-C_ldluj6.js +1576 -0
- package/dist/{EstGas-w0MeYkJr.js → EstGas-Dpwt2-50.js} +7 -7
- package/dist/{Grow-C7qv-xx7.js → Grow-DjneaPQY.js} +2 -2
- package/dist/Grow-L7kyPhbh.js +1656 -0
- package/dist/{InputComp-B7JBOOCL.js → InputComp-CWH4SAk7.js} +3 -3
- package/dist/InputComp-Dl4M7E5v.js +105 -0
- package/dist/{LoadRoute-KBCAhdb3.js → LoadRoute-Cafzlcfy.js} +4 -4
- package/dist/LoadRoute-cBSl34Bs.js +125 -0
- package/dist/{QuotesProgress-DaVjqEE8.js → QuotesProgress-Covy7wmW.js} +1 -1
- package/dist/QuotesProgress-CxJUoCPy.js +28 -0
- package/dist/{SwapAsset-ClNXL1XN.js → SwapAsset-BqXVX_DR.js} +1 -1
- package/dist/SwapAsset-CkRat7Ok.js +51 -0
- package/dist/Tooltip-3YpYU_vO.js +572 -0
- package/dist/{Tooltip-BfAqBg9y.js → Tooltip-D2kKNQ0U.js} +3 -3
- package/dist/TxnButton-CPMFPFA_.js +222 -0
- package/dist/{TxnButton-41zPru_N.js → TxnButton-mfwy-EoQ.js} +3 -3
- package/dist/{add-Dtd6YmCJ.js → add-CRY8asYF.js} +1 -1
- package/dist/add-Dfrw-dUV.js +19 -0
- package/dist/{all-wallets-fWl6fl6Y.js → all-wallets-DOnIRIv0.js} +1 -1
- package/dist/all-wallets-Dw10lWJZ.js +10 -0
- package/dist/{app-store-DSLOwXZY.js → app-store-C0M9hC1B.js} +1 -1
- package/dist/app-store-DJiZFSCr.js +21 -0
- package/dist/{apple-BMDEkk8X.js → apple-Bv7oA5AQ.js} +1 -1
- package/dist/apple-kMZGS4AC.js +22 -0
- package/dist/{arrow-bottom-BWURPGva.js → arrow-bottom-D4arnome.js} +1 -1
- package/dist/arrow-bottom-DgmWrLqf.js +12 -0
- package/dist/{arrow-bottom-circle-BR18TdWN.js → arrow-bottom-circle-BUny4yP8.js} +1 -1
- package/dist/arrow-bottom-circle-C7iPKwzW.js +15 -0
- package/dist/{arrow-left-DSHPaT9f.js → arrow-left-DImJbKZs.js} +1 -1
- package/dist/arrow-left-Dol642VI.js +12 -0
- package/dist/{arrow-right-BQyfcxHk.js → arrow-right-BvRPNX9F.js} +1 -1
- package/dist/arrow-right-CMwyPVT7.js +12 -0
- package/dist/{arrow-top-RP3srPoV.js → arrow-top-1RWPJImu.js} +1 -1
- package/dist/arrow-top-kn9xtx92.js +12 -0
- package/dist/{bank-C9VWqird.js → bank-C0t9JpLj.js} +1 -1
- package/dist/bank-DK-FvDfd.js +18 -0
- package/dist/{basic-ChmJK0Xt.js → basic-Sejv2JvX.js} +3 -3
- package/dist/basic-VfgwBHn1.js +5783 -0
- package/dist/{browser-CSkm7gnt.js → browser-0d0uw45D.js} +1 -1
- package/dist/browser-BzT1ACe9.js +18 -0
- package/dist/{card-qLWgu9c8.js → card-BBByykfy.js} +1 -1
- package/dist/card-DqDM55a-.js +18 -0
- package/dist/{ccip-QF_uXtAt.js → ccip-8__szz9Q.js} +1 -1
- package/dist/ccip-BPZSey8I.js +228 -0
- package/dist/{checkmark-BmzqmMw0.js → checkmark-B_osdsm_.js} +1 -1
- package/dist/checkmark-DEKH6rOS.js +15 -0
- package/dist/{checkmark-bold-B6aImdAf.js → checkmark-bold-BEzepFY4.js} +1 -1
- package/dist/checkmark-bold-Dzv2hN2Q.js +12 -0
- package/dist/{chevron-bottom-t4h4eaxS.js → chevron-bottom-Bdaxlaxc.js} +1 -1
- package/dist/chevron-bottom-CXdHWe0F.js +12 -0
- package/dist/{chevron-left-D3susSgC.js → chevron-left-2aCeqxdm.js} +1 -1
- package/dist/chevron-left-CeuFz3M9.js +12 -0
- package/dist/{chevron-right-W13sAkua.js → chevron-right-BPgQeMPz.js} +1 -1
- package/dist/chevron-right-DikqbHjp.js +12 -0
- package/dist/{chevron-top-Bx-QdB_J.js → chevron-top-BskFpgMP.js} +1 -1
- package/dist/chevron-top-CjCScawp.js +12 -0
- package/dist/{chrome-store-CGxM7IYK.js → chrome-store-CxhEG2Jk.js} +1 -1
- package/dist/chrome-store-DaP5Y4w2.js +65 -0
- package/dist/{clock-DLxk1mp4.js → clock-BDgHn083.js} +1 -1
- package/dist/clock-BzjZWK68.js +12 -0
- package/dist/{close-XyT_Ei7X.js → close-CQTa1LZg.js} +1 -1
- package/dist/close-Dqncm2nY.js +12 -0
- package/dist/{coinPlaceholder-COnVP39c.js → coinPlaceholder-B-NSV729.js} +1 -1
- package/dist/coinPlaceholder-BExfa33b.js +12 -0
- package/dist/{compass-B7Ua__ME.js → compass-BdJmk2w2.js} +1 -1
- package/dist/compass-C1H_fht-.js +12 -0
- package/dist/{copy-CwqmRN0X.js → copy-Cg4vgr82.js} +1 -1
- package/dist/copy-DPMVX3yZ.js +19 -0
- package/dist/{core-HN_b3jpG.js → core-BSwMFU2B.js} +6124 -4570
- package/dist/core-BYOwnw_B.js +16521 -0
- package/dist/{cursor-CZUzCZDa.js → cursor-BoD_rq0f.js} +1 -1
- package/dist/{cursor-transparent-C-iNJp5e.js → cursor-transparent-Dqs1kXcb.js} +1 -1
- package/dist/cursor-transparent-IQlZspwQ.js +16 -0
- package/dist/cursor-ybJpiPr6.js +7 -0
- package/dist/{desktop-CKvUvwiO.js → desktop-BOxkTik1.js} +1 -1
- package/dist/desktop-WMYv3b4Q.js +13 -0
- package/dist/{disconnect-Baq1ttCe.js → disconnect-CTxFyZWa.js} +1 -1
- package/dist/disconnect-eMeec26w.js +12 -0
- package/dist/{discord-D8jJPT-u.js → discord-BJRxIhBt.js} +1 -1
- package/dist/discord-CpTo4KnZ.js +21 -0
- package/dist/{down-CbXkinMO.js → down-372J_rRV.js} +2 -2
- package/dist/down-hvB7J3FG.js +622 -0
- package/dist/{etherscan-DmvsfmlR.js → etherscan-CyQf5MH5.js} +1 -1
- package/dist/etherscan-DQ1h54d3.js +10 -0
- package/dist/{exclamation-triangle-B5sVL0Op.js → exclamation-triangle-DFOXjtuI.js} +1 -1
- package/dist/exclamation-triangle-DzKs0-30.js +8 -0
- package/dist/{extension-DTURW9PD.js → extension-XiWSr1Ku.js} +1 -1
- package/dist/extension-ep1TEUSD.js +12 -0
- package/dist/{external-link-BhiyYwAM.js → external-link-CYjbHRDY.js} +1 -1
- package/dist/external-link-DRzzevt_.js +12 -0
- package/dist/{facebook-BKU8pCSU.js → facebook-DhP37m2R.js} +1 -1
- package/dist/facebook-eXS31CP5.js +30 -0
- package/dist/{farcaster-aPuBoT-f.js → farcaster-C1J2oGt2.js} +1 -1
- package/dist/farcaster-f0EPKy4w.js +16 -0
- package/dist/{filters-Dhcy_bWD.js → filters-C5jLy9GP.js} +1 -1
- package/dist/filters-RqawLZYy.js +12 -0
- package/dist/{getChainIds-hFBaLC3P.js → getChainIds-AaKb_MmO.js} +2 -2
- package/dist/getChainIds-DXEtLb1g.js +1888 -0
- package/dist/{getCosmosAddress-wW2QvGf4.js → getCosmosAddress-D-F7jz-d.js} +2 -2
- package/dist/getCosmosAddress-X_cfoAnv.js +9517 -0
- package/dist/{github-DpOcHBpK.js → github-CJ8g1by7.js} +1 -1
- package/dist/github-d1vUfc1B.js +22 -0
- package/dist/{google-Dlr5X4XZ.js → google-DpIVCnNm.js} +1 -1
- package/dist/google-Dtcfyt4F.js +22 -0
- package/dist/{hamburger-CbTP1z8e.js → hamburger-BylLGawu.js} +5 -5
- package/dist/hamburger-DezZOKRv.js +3915 -0
- package/dist/{help-circle-DfsreI1-.js → help-circle-BESCFGIa.js} +1 -1
- package/dist/help-circle-BTpSg7wr.js +16 -0
- package/dist/{id-CgVrDv4g.js → id-CPX0IEMo.js} +1 -1
- package/dist/id-CV-pIIiZ.js +16 -0
- package/dist/{image-BgZMfISb.js → image-DrFHyQOS.js} +1 -1
- package/dist/image-n7ODnWNp.js +8 -0
- package/dist/{index-CzIE4OVR.js → index-BDezoD7C.js} +1 -1
- package/dist/{index-DEzMTwnP.js → index-BOd8pd8c.js} +11 -11
- package/dist/index-BYmiFoJh.js +29495 -0
- package/dist/index-BheqnLKf.js +992 -0
- package/dist/{index-ij8WLtCK.js → index-C7McnY5R.js} +10 -10
- package/dist/{index-Dfnahm9u.js → index-CI-V1HdQ.js} +4 -4
- package/dist/{index-CQef3aFT.js → index-CSgWo9Cg.js} +5 -5
- package/dist/index-CViW2kjE.js +13547 -0
- package/dist/{index-W17Yun1B.js → index-CoV9zQx1.js} +78 -78
- package/dist/{index-BzlNNUJC.js → index-D0J1OD73.js} +4 -4
- package/dist/index-DO14DPs3.js +6713 -0
- package/dist/{index-BNAc3BNQ.js → index-D_8iklL2.js} +7 -7
- package/dist/{index-D-h2D2T4.js → index-DhZwdjPQ.js} +2 -2
- package/dist/{index-cmkdh21h.js → index-DjHDqI7m.js} +4 -4
- package/dist/{index-Doq8prid.js → index-DoNokw4Q.js} +1 -1
- package/dist/index-GlSAE8hE.js +472 -0
- package/dist/index-H7ThVJwV.js +3267 -0
- package/dist/index-Pni0gIii.js +206 -0
- package/dist/index-TEYMoNwP.js +9 -0
- package/dist/index-VS3sEqmI.js +330 -0
- package/dist/index-ePnYqYhf.js +1483 -0
- package/dist/index-eatshJSd.js +18509 -0
- package/dist/{index.es-DznYPOeF.js → index.es-B95K0DgG.js} +1 -1
- package/dist/index.es-BzyBckd_.js +366 -0
- package/dist/index.es-CMvE7ghR.js +14904 -0
- package/dist/index.es-gTtSa0r5.js +14904 -0
- package/dist/index.es.js +1 -1
- package/dist/{info-CZQMmcBD.js → info-DB9XS3BU.js} +1 -1
- package/dist/info-DWZmKXfC.js +7 -0
- package/dist/{info-circle-CA3WSSRD.js → info-circle-BVB8s9W_.js} +1 -1
- package/dist/info-circle-Bk9rpQzz.js +16 -0
- package/dist/{lightbulb-8ISYXfUt.js → lightbulb-C0eiLvuS.js} +1 -1
- package/dist/lightbulb-CUDopurR.js +7 -0
- package/dist/{mail-CHIth09p.js → mail-CYcc9yZZ.js} +1 -1
- package/dist/mail-Df9wlUBz.js +12 -0
- package/dist/{mobile-CrFtClXb.js → mobile-Cvm9Skqq.js} +1 -1
- package/dist/mobile-DcoUJktC.js +13 -0
- package/dist/{more-mHern-4V.js → more-B-UvO1Yo.js} +1 -1
- package/dist/more-DbsAB7Xx.js +15 -0
- package/dist/{network-placeholder-CoODkTLk.js → network-placeholder-C8QNcwPf.js} +1 -1
- package/dist/network-placeholder-CnHZLxGT.js +18 -0
- package/dist/{nftPlaceholder-CG7DC4DT.js → nftPlaceholder-C_LU9tT5.js} +1 -1
- package/dist/nftPlaceholder-D7igGAAq.js +12 -0
- package/dist/{off-CrgcN-zp.js → off-BEQbMYBZ.js} +1 -1
- package/dist/off-Brms9nN7.js +12 -0
- package/dist/{play-store-CQP9kqkp.js → play-store-CEopCauM.js} +1 -1
- package/dist/play-store-z4z-boXn.js +36 -0
- package/dist/{plus-DHA7xDuc.js → plus-CtEYHV2t.js} +1 -1
- package/dist/plus-LkrIZJEQ.js +17 -0
- package/dist/{qr-code-zibhnzKq.js → qr-code-BhmZxeo_.js} +1 -1
- package/dist/qr-code-CZnYaNoE.js +10 -0
- package/dist/{recycle-horizontal-DywyCULr.js → recycle-horizontal-CF9eqICi.js} +1 -1
- package/dist/recycle-horizontal-CeGotUdv.js +13 -0
- package/dist/{refresh-e2GocWQK.js → refresh-Bm3plkBE.js} +1 -1
- package/dist/refresh-CKhWU1dQ.js +12 -0
- package/dist/{reown-logo-BU64qOXz.js → reown-logo-8S9ZN_-T.js} +1 -1
- package/dist/reown-logo-CF2Qkyw1.js +16 -0
- package/dist/{search-DzxpvkH-.js → search-DNcA47oY.js} +1 -1
- package/dist/search-DyuAYb_-.js +12 -0
- package/dist/{send-r9Pjl4vo.js → send-B0S9gHH6.js} +1 -1
- package/dist/send-BbBOjlsM.js +19 -0
- package/dist/{swapHorizontal-BTrXWq48.js → swapHorizontal-BuTPPB8N.js} +1 -1
- package/dist/swapHorizontal-DA7yhPfV.js +12 -0
- package/dist/{swapHorizontalBold-CJqWkgp6.js → swapHorizontalBold-BnB-fpce.js} +1 -1
- package/dist/swapHorizontalBold-BujZxwgY.js +12 -0
- package/dist/{swapHorizontalMedium-DX7hDgRK.js → swapHorizontalMedium-9QnwwjJD.js} +1 -1
- package/dist/swapHorizontalMedium-hEBn_MJv.js +20 -0
- package/dist/{swapHorizontalRoundedBold-C51tXWKa.js → swapHorizontalRoundedBold-C83mxp3u.js} +1 -1
- package/dist/swapHorizontalRoundedBold-Cqg1Na-5.js +12 -0
- package/dist/{swapVertical-Crddwuzr.js → swapVertical-BAz7hmKO.js} +1 -1
- package/dist/swapVertical-D1CdGHJt.js +12 -0
- package/dist/{telegram-BC6rpZd8.js → telegram-BMT9bLfw.js} +1 -1
- package/dist/telegram-dDQ2sOw5.js +20 -0
- package/dist/{three-dots-DC9iZV71.js → three-dots-DuhUrXKI.js} +1 -1
- package/dist/three-dots-ltDeu1Xu.js +9 -0
- package/dist/{twitch-Dqthmddu.js → twitch-ClsoABSi.js} +1 -1
- package/dist/twitch-sBusnrAt.js +22 -0
- package/dist/{twitterIcon-DIWxOs67.js → twitterIcon-B9n98fnH.js} +1 -1
- package/dist/twitterIcon-BKMgaEZ4.js +10 -0
- package/dist/{unsupportedProp-BW6bMgdV.js → unsupportedProp-BXmR-9gT.js} +1 -1
- package/dist/unsupportedProp-P9y3_0om.js +10 -0
- package/dist/{useRegisterError-D0oAcJrb.js → useRegisterError-DGMdKFc9.js} +1 -1
- package/dist/useRegisterError-DVG0sgLq.js +8918 -0
- package/dist/{verify-GrViE51Y.js → verify-BHTa1Niv.js} +1 -1
- package/dist/verify-DXzijLDZ.js +12 -0
- package/dist/{verify-filled-Cws_QO3X.js → verify-filled-CqobBYuI.js} +1 -1
- package/dist/verify-filled-DnKqj8X5.js +12 -0
- package/dist/{w3m-modal-n7hzVP_I.js → w3m-modal-B7akV0Kp.js} +2 -2
- package/dist/w3m-modal-Cc1j8j_E.js +1471 -0
- package/dist/{wallet-Cd1ruTUh.js → wallet-ObJy7yZR.js} +1 -1
- package/dist/{wallet-placeholder-Ce4gGswZ.js → wallet-placeholder-BxVrKpEz.js} +1 -1
- package/dist/wallet-placeholder-DEsjd5Nv.js +18 -0
- package/dist/wallet-zL6TDKIa.js +12 -0
- package/dist/{walletconnect-CqpJhu9-.js → walletconnect-CYJbrPQQ.js} +1 -1
- package/dist/walletconnect-CZz6e0wy.js +36 -0
- package/dist/{warning-circle-DQ6ZS1NO.js → warning-circle-DOwgDOgL.js} +1 -1
- package/dist/warning-circle-DsGlg2MF.js +16 -0
- package/dist/{x-CR749er2.js → x-B03u0kWD.js} +1 -1
- package/dist/x-MwPhq03Y.js +16 -0
- package/package.json +1 -1
- package/dist/index.es-C8qSCFHh.js +0 -13234
@@ -0,0 +1,992 @@
|
|
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-BSwMFU2B.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-CRY8asYF.js")).addSvg,
|
383
|
+
allWallets: async () => (await import("./all-wallets-Dw10lWJZ.js")).allWalletsSvg,
|
384
|
+
arrowBottomCircle: async () => (await import("./arrow-bottom-circle-C7iPKwzW.js")).arrowBottomCircleSvg,
|
385
|
+
appStore: async () => (await import("./app-store-C0M9hC1B.js")).appStoreSvg,
|
386
|
+
apple: async () => (await import("./apple-Bv7oA5AQ.js")).appleSvg,
|
387
|
+
arrowBottom: async () => (await import("./arrow-bottom-DgmWrLqf.js")).arrowBottomSvg,
|
388
|
+
arrowLeft: async () => (await import("./arrow-left-Dol642VI.js")).arrowLeftSvg,
|
389
|
+
arrowRight: async () => (await import("./arrow-right-BvRPNX9F.js")).arrowRightSvg,
|
390
|
+
arrowTop: async () => (await import("./arrow-top-1RWPJImu.js")).arrowTopSvg,
|
391
|
+
bank: async () => (await import("./bank-C0t9JpLj.js")).bankSvg,
|
392
|
+
browser: async () => (await import("./browser-0d0uw45D.js")).browserSvg,
|
393
|
+
card: async () => (await import("./card-BBByykfy.js")).cardSvg,
|
394
|
+
checkmark: async () => (await import("./checkmark-DEKH6rOS.js")).checkmarkSvg,
|
395
|
+
checkmarkBold: async () => (await import("./checkmark-bold-BEzepFY4.js")).checkmarkBoldSvg,
|
396
|
+
chevronBottom: async () => (await import("./chevron-bottom-Bdaxlaxc.js")).chevronBottomSvg,
|
397
|
+
chevronLeft: async () => (await import("./chevron-left-2aCeqxdm.js")).chevronLeftSvg,
|
398
|
+
chevronRight: async () => (await import("./chevron-right-DikqbHjp.js")).chevronRightSvg,
|
399
|
+
chevronTop: async () => (await import("./chevron-top-CjCScawp.js")).chevronTopSvg,
|
400
|
+
chromeStore: async () => (await import("./chrome-store-DaP5Y4w2.js")).chromeStoreSvg,
|
401
|
+
clock: async () => (await import("./clock-BzjZWK68.js")).clockSvg,
|
402
|
+
close: async () => (await import("./close-Dqncm2nY.js")).closeSvg,
|
403
|
+
compass: async () => (await import("./compass-BdJmk2w2.js")).compassSvg,
|
404
|
+
coinPlaceholder: async () => (await import("./coinPlaceholder-B-NSV729.js")).coinPlaceholderSvg,
|
405
|
+
copy: async () => (await import("./copy-DPMVX3yZ.js")).copySvg,
|
406
|
+
cursor: async () => (await import("./cursor-ybJpiPr6.js")).cursorSvg,
|
407
|
+
cursorTransparent: async () => (await import("./cursor-transparent-Dqs1kXcb.js")).cursorTransparentSvg,
|
408
|
+
desktop: async () => (await import("./desktop-BOxkTik1.js")).desktopSvg,
|
409
|
+
disconnect: async () => (await import("./disconnect-eMeec26w.js")).disconnectSvg,
|
410
|
+
discord: async () => (await import("./discord-CpTo4KnZ.js")).discordSvg,
|
411
|
+
etherscan: async () => (await import("./etherscan-DQ1h54d3.js")).etherscanSvg,
|
412
|
+
extension: async () => (await import("./extension-ep1TEUSD.js")).extensionSvg,
|
413
|
+
externalLink: async () => (await import("./external-link-CYjbHRDY.js")).externalLinkSvg,
|
414
|
+
facebook: async () => (await import("./facebook-eXS31CP5.js")).facebookSvg,
|
415
|
+
farcaster: async () => (await import("./farcaster-f0EPKy4w.js")).farcasterSvg,
|
416
|
+
filters: async () => (await import("./filters-C5jLy9GP.js")).filtersSvg,
|
417
|
+
github: async () => (await import("./github-CJ8g1by7.js")).githubSvg,
|
418
|
+
google: async () => (await import("./google-DpIVCnNm.js")).googleSvg,
|
419
|
+
helpCircle: async () => (await import("./help-circle-BESCFGIa.js")).helpCircleSvg,
|
420
|
+
image: async () => (await import("./image-n7ODnWNp.js")).imageSvg,
|
421
|
+
id: async () => (await import("./id-CPX0IEMo.js")).idSvg,
|
422
|
+
infoCircle: async () => (await import("./info-circle-BVB8s9W_.js")).infoCircleSvg,
|
423
|
+
lightbulb: async () => (await import("./lightbulb-C0eiLvuS.js")).lightbulbSvg,
|
424
|
+
mail: async () => (await import("./mail-Df9wlUBz.js")).mailSvg,
|
425
|
+
mobile: async () => (await import("./mobile-DcoUJktC.js")).mobileSvg,
|
426
|
+
more: async () => (await import("./more-DbsAB7Xx.js")).moreSvg,
|
427
|
+
networkPlaceholder: async () => (await import("./network-placeholder-C8QNcwPf.js")).networkPlaceholderSvg,
|
428
|
+
nftPlaceholder: async () => (await import("./nftPlaceholder-C_LU9tT5.js")).nftPlaceholderSvg,
|
429
|
+
off: async () => (await import("./off-Brms9nN7.js")).offSvg,
|
430
|
+
playStore: async () => (await import("./play-store-CEopCauM.js")).playStoreSvg,
|
431
|
+
plus: async () => (await import("./plus-LkrIZJEQ.js")).plusSvg,
|
432
|
+
qrCode: async () => (await import("./qr-code-CZnYaNoE.js")).qrCodeIcon,
|
433
|
+
recycleHorizontal: async () => (await import("./recycle-horizontal-CF9eqICi.js")).recycleHorizontalSvg,
|
434
|
+
refresh: async () => (await import("./refresh-CKhWU1dQ.js")).refreshSvg,
|
435
|
+
search: async () => (await import("./search-DyuAYb_-.js")).searchSvg,
|
436
|
+
send: async () => (await import("./send-BbBOjlsM.js")).sendSvg,
|
437
|
+
swapHorizontal: async () => (await import("./swapHorizontal-DA7yhPfV.js")).swapHorizontalSvg,
|
438
|
+
swapHorizontalMedium: async () => (await import("./swapHorizontalMedium-hEBn_MJv.js")).swapHorizontalMediumSvg,
|
439
|
+
swapHorizontalBold: async () => (await import("./swapHorizontalBold-BujZxwgY.js")).swapHorizontalBoldSvg,
|
440
|
+
swapHorizontalRoundedBold: async () => (await import("./swapHorizontalRoundedBold-Cqg1Na-5.js")).swapHorizontalRoundedBoldSvg,
|
441
|
+
swapVertical: async () => (await import("./swapVertical-BAz7hmKO.js")).swapVerticalSvg,
|
442
|
+
telegram: async () => (await import("./telegram-BMT9bLfw.js")).telegramSvg,
|
443
|
+
threeDots: async () => (await import("./three-dots-DuhUrXKI.js")).threeDotsSvg,
|
444
|
+
twitch: async () => (await import("./twitch-ClsoABSi.js")).twitchSvg,
|
445
|
+
twitter: async () => (await import("./x-B03u0kWD.js")).xSvg,
|
446
|
+
twitterIcon: async () => (await import("./twitterIcon-BKMgaEZ4.js")).twitterIconSvg,
|
447
|
+
verify: async () => (await import("./verify-DXzijLDZ.js")).verifySvg,
|
448
|
+
verifyFilled: async () => (await import("./verify-filled-CqobBYuI.js")).verifyFilledSvg,
|
449
|
+
wallet: async () => (await import("./wallet-ObJy7yZR.js")).walletSvg,
|
450
|
+
walletConnect: async () => (await import("./walletconnect-CYJbrPQQ.js")).walletConnectSvg,
|
451
|
+
walletConnectLightBrown: async () => (await import("./walletconnect-CYJbrPQQ.js")).walletConnectLightBrownSvg,
|
452
|
+
walletConnectBrown: async () => (await import("./walletconnect-CYJbrPQQ.js")).walletConnectBrownSvg,
|
453
|
+
walletPlaceholder: async () => (await import("./wallet-placeholder-DEsjd5Nv.js")).walletPlaceholderSvg,
|
454
|
+
warningCircle: async () => (await import("./warning-circle-DsGlg2MF.js")).warningCircleSvg,
|
455
|
+
x: async () => (await import("./x-B03u0kWD.js")).xSvg,
|
456
|
+
info: async () => (await import("./info-DWZmKXfC.js")).infoSvg,
|
457
|
+
exclamationTriangle: async () => (await import("./exclamation-triangle-DzKs0-30.js")).exclamationTriangleSvg,
|
458
|
+
reown: async () => (await import("./reown-logo-8S9ZN_-T.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
|
+
};
|