@0xbot/chat-react 1.0.9 → 1.0.10
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/AaveLendingPoolABI-CdLq16uB-BGiZ7zvm.mjs +4 -0
- package/dist/AaveLendingPoolAddressesProvider-EOSAznLK-BSWFPv4x.mjs +4 -0
- package/dist/AavePriceOracleABI-C2UEpXR4-C_hStKK4.mjs +4 -0
- package/dist/AaveProtocolDataProviderABI-0JclmmLX-DLxLoyai.mjs +4 -0
- package/dist/BaseDrops-BrQZPqKk-B26CkeNy.mjs +4 -0
- package/dist/D3MM_READ_ABI-B5536S-z-CL3RJ1A8.mjs +4 -0
- package/dist/D3Proxy-CKIzLOhI-CGvfWU5A.mjs +4 -0
- package/dist/DODO1155-DDY5Jxhf-DGclqdqY.mjs +4 -0
- package/dist/DODO721-Kl5REiwU-CjPebx7D.mjs +4 -0
- package/dist/DODOCirculationHelperABI-gu1sCqZ2-DKVM1578.mjs +4 -0
- package/dist/DODORouteProxy-51kl6QgI-DjkLwYNY.mjs +4 -0
- package/dist/DODOV1PmmHelperABI-DQqthyaE-1aS8xEGz.mjs +4 -0
- package/dist/DVM-DjtWbqiJ-BbQRScdF.mjs +4 -0
- package/dist/DropsERC721-7Bckjcar-cRaNDmuo.mjs +4 -0
- package/dist/FilterAdmin-jm_-DS1l-BsNgsP2z.mjs +4 -0
- package/dist/FilterERC1155V1-VIUlIHdF-KqUEDK8Y.mjs +4 -0
- package/dist/FilterERC721V1-CWDEPGmH-BeOtdHta.mjs +4 -0
- package/dist/Fragment-Bd_AXeVx-C-ytfCBz.mjs +4 -0
- package/dist/FundingABI-WqQDGVVa-CaLckA9D.mjs +4 -0
- package/dist/IdodoV2-DlW8pwaE-1tII4uF5.mjs +4 -0
- package/dist/LockedTokenVaultABI-CfBj0wEX-CB4fg14z.mjs +4 -0
- package/dist/MarginTrading-CQ5odvHB-hsA_0CMf.mjs +4 -0
- package/dist/MarginTradingFactory-2RKqvCSO-DgmL1WxL.mjs +4 -0
- package/dist/MerkleDistributorABI-Ctn26fnA-BbXWPnph.mjs +4 -0
- package/dist/NonfungiblePositionManager-c8Yw_9-Q-DoGzZtUT.mjs +4 -0
- package/dist/PancakePairABI-Cc9LuXnX-CSfuOSUk.mjs +4 -0
- package/dist/UniswapV3Pool-Da11VKXE-Bpirv2VX.mjs +4 -0
- package/dist/add-CHJpf5Lw.mjs +19 -0
- package/dist/all-wallets-D2hkkUJ3.mjs +10 -0
- package/dist/api/index.d.ts +2 -0
- package/dist/app-store-CqLKqQ5V.mjs +21 -0
- package/dist/apple-B0XeUiD1.mjs +22 -0
- package/dist/arrow-bottom-aeJVAvnL.mjs +12 -0
- package/dist/arrow-bottom-circle-R6EgzTHW.mjs +15 -0
- package/dist/arrow-left-BqQ4buTv.mjs +12 -0
- package/dist/arrow-right-C6Ed0Mzu.mjs +12 -0
- package/dist/arrow-top-BidIjQzK.mjs +12 -0
- package/dist/bank-yI5ZTpcM.mjs +18 -0
- package/dist/baseFilterV1-BPjWXMKw-Hn2CtZK1.mjs +4 -0
- package/dist/basic-Ck_Otdyv.mjs +5718 -0
- package/dist/browser-DfN9W7W3.mjs +18 -0
- package/dist/bsc-3D5wcqPq-Crqli4pE.mjs +4 -0
- package/dist/card-DNVrOepi.mjs +18 -0
- package/dist/chat-library.es.js +4 -826
- package/dist/chat-library.umd.js +7758 -11
- package/dist/checkmark-Y_JAaFYi.mjs +15 -0
- package/dist/checkmark-bold-BaUBCwEZ.mjs +12 -0
- package/dist/chevron-bottom-DT-gLTLE.mjs +12 -0
- package/dist/chevron-left-Db6JDZK5.mjs +12 -0
- package/dist/chevron-right-CcBMjaBn.mjs +12 -0
- package/dist/chevron-top-RvW8f4V7.mjs +12 -0
- package/dist/chrome-store-DnpyKbMo.mjs +65 -0
- package/dist/classicalPoolABI-D5LxySAJ-D7PleszW.mjs +4 -0
- package/dist/clock-Bz19eiZx.mjs +12 -0
- package/dist/close-Pad_fUXU.mjs +12 -0
- package/dist/coinPlaceholder-B7RKkvE0.mjs +12 -0
- package/dist/compass-Dw45tdte.mjs +12 -0
- package/dist/components/DodoSwap.d.ts +14 -0
- package/dist/copy-CwnxEVdO.mjs +19 -0
- package/dist/core-BncCIRvy.mjs +16730 -0
- package/dist/cursor-C6uOuAov.mjs +7 -0
- package/dist/cursor-transparent-xIFYE_0X.mjs +16 -0
- package/dist/desktop-Dz5Hje94.mjs +13 -0
- package/dist/disconnect-CTdx5PqO.mjs +12 -0
- package/dist/discord-C-gRbozI.mjs +21 -0
- package/dist/dodoABI-CLkEBJ8P-Bu3dOG4h.mjs +4 -0
- package/dist/dodoBuyoutModel-BtQv3C3q-BdkKV4YI.mjs +4 -0
- package/dist/dodoCP-N8KA8JwJ-TdVQ5mZP.mjs +4 -0
- package/dist/dodoCPABI-CdAN0KhU-COvDVH7-.mjs +4 -0
- package/dist/dodoCPABIV2-yzF6FlEg-nSP7QBK6.mjs +4 -0
- package/dist/dodoCPFactory-CD0SxXT6-C-NYcE0L.mjs +4 -0
- package/dist/dodoCpProxy-D2AI9-4r-CNpIMaS9.mjs +4 -0
- package/dist/dodoCpProxyV2-CGZRqk2H-CFqfOsrA.mjs +4 -0
- package/dist/dodoCpProxyV202-CoZaEf_6-D3tcGKYm.mjs +4 -0
- package/dist/dodoCustomMintableERC20-CPpNoX1v-CheGl3pc.mjs +4 -0
- package/dist/dodoDPPAdmin-B-fmpTbV-DDnM12B9.mjs +4 -0
- package/dist/dodoDPPFactory-DwAkVskt-BlCcT0Y7.mjs +4 -0
- package/dist/dodoDSP-B6KYm-Cn-BlRNrfLD.mjs +4 -0
- package/dist/dodoDSPFactory-j1eg7Ez--DBzB5BJy.mjs +4 -0
- package/dist/dodoDVM-DDYx1JAy-Dvy00nJq.mjs +4 -0
- package/dist/dodoDVMFactory-FpnJdZb2-pnHsrTp3.mjs +4 -0
- package/dist/dodoDppProxy-A7PPYsqp-D06i9e-K.mjs +4 -0
- package/dist/dodoDropsProxy-vHUWsRNO-QPtLS8Fb.mjs +4 -0
- package/dist/dodoDspProxy-CU7OAvJG-jDB-e7lT.mjs +4 -0
- package/dist/dodoERC20V3Factory-Cz4XKDrU-BczFXEyV.mjs +4 -0
- package/dist/dodoEthProxyABI-CoX95QJI-ClpiGz9q.mjs +4 -0
- package/dist/dodoFeeImpl-zR9Qv4Tq-DEWk3Y40.mjs +4 -0
- package/dist/dodoFragment-4lxmE2XJ-CyrfbNi9.mjs +4 -0
- package/dist/dodoMineV3Proxy-xOGM7Jnv-DB_whEuY.mjs +4 -0
- package/dist/dodoMineV3ProxyOld-BqsZxJRU-D2D73qEi.mjs +4 -0
- package/dist/dodoMiningABI-9J5C_6kN-Dd9oBdgN.mjs +4 -0
- package/dist/dodoMiningReaderABI-DmUXA9Gv-5oVswgl3.mjs +4 -0
- package/dist/dodoNftERC1155-Bw6ID2NE-B6ec1_gD.mjs +4 -0
- package/dist/dodoNftERC721-CI1l0ip9-4w4aINlO.mjs +4 -0
- package/dist/dodoNftPoolProxy-DQkcZHUV-QkmZ2nMD.mjs +4 -0
- package/dist/dodoNftProxy-Di-aoLYM-DxMxz-31.mjs +4 -0
- package/dist/dodoNftVault-B4NZaXcd-CnVQXRy8.mjs +4 -0
- package/dist/dodoOracleABI-BxwZofBV-CMjdc9D8.mjs +4 -0
- package/dist/dodoPair-VN1aEVFz-yv3rmA46.mjs +4 -0
- package/dist/dodoPreminingABI-DU7ocR7L-DbnrMY8U.mjs +4 -0
- package/dist/dodoProxyV2-9ED9HqK5-D1IbsmqR.mjs +4 -0
- package/dist/dodoStarterProxy-B1TdMOvw-Dc_OorIU.mjs +4 -0
- package/dist/dodoTokenABI-Dd2DVUbK-H42B3M0V.mjs +4 -0
- package/dist/dodoUpCPFactoryABI-C1W0Q4Ft-BoaZdses.mjs +4 -0
- package/dist/dodoUpCpFactory-D8ifQyp--qgHD5MAq.mjs +4 -0
- package/dist/dodoV1PairProxy-DyRTqyPe-C8yy7JSs.mjs +4 -0
- package/dist/dodoZooABI-D9Uc4iLK-KrPSOwCN.mjs +4 -0
- package/dist/dppPoolABI-BvoeLJgK-CDxK1JW7.mjs +4 -0
- package/dist/erc20ABI-v08X4jmE-CVM8vD3s.mjs +4 -0
- package/dist/erc20Helper-CG659oLz-CFUQnmR-.mjs +4 -0
- package/dist/eth-B9cviUl5-CG8RPzNA.mjs +4 -0
- package/dist/etherscan-BoxwTKtb.mjs +10 -0
- package/dist/exclamation-triangle-lJzIh3b3.mjs +8 -0
- package/dist/extension-Cu9Cmk3m.mjs +12 -0
- package/dist/external-link-BvvHuuY0.mjs +12 -0
- package/dist/facebook-By3QHn59.mjs +30 -0
- package/dist/farcaster-B6Uk0IIz.mjs +16 -0
- package/dist/feeABI-DnQdJUpQ-DesVgwnT.mjs +4 -0
- package/dist/filters-7iolnXNp.mjs +12 -0
- package/dist/github-CbNFQ-rE.mjs +22 -0
- package/dist/google-B4kpRWe2.mjs +22 -0
- package/dist/help-circle-BHYOhZH-.mjs +16 -0
- package/dist/helper-DvTqUYSd-DjCOVcV8.mjs +22500 -0
- package/dist/id-B63SRnJH.mjs +16 -0
- package/dist/image-BFYG_I7p.mjs +8 -0
- package/dist/index-Cm7qS4de-ByNXzPPy.mjs +188 -0
- package/dist/index-Csyx760V.mjs +1037 -0
- package/dist/index-DId52aLZ.mjs +102718 -0
- package/dist/index-KEmmG3yM-D6PVhm18.mjs +390 -0
- package/dist/index.css +1 -1
- package/dist/info-MhMaxvuu.mjs +7 -0
- package/dist/info-circle-Br6R310O.mjs +16 -0
- package/dist/lightbulb-CvIgiu_8.mjs +7 -0
- package/dist/mail-C37s8I6x.mjs +12 -0
- package/dist/mobile-6yKClGQT.mjs +13 -0
- package/dist/more-CoCXkplN.mjs +15 -0
- package/dist/multicallABI-D9E1EeQD-BHmsV5Ww.mjs +4 -0
- package/dist/network-placeholder-RiVpBWSW.mjs +18 -0
- package/dist/nftContract-d4b6ObxG-DDocz_o1.mjs +4 -0
- package/dist/nftFilterAdmin-DMr_jrK_-CzdnxC1u.mjs +4 -0
- package/dist/nftPlaceholder-BqPW-YRA.mjs +12 -0
- package/dist/off-BYd8177g.mjs +12 -0
- package/dist/oneBitSettlement-DMzQ-0t_-6O4CfYZH.mjs +4 -0
- package/dist/play-store-DOI54pIO.mjs +36 -0
- package/dist/plus-D3V6i3OL.mjs +17 -0
- package/dist/qr-code-BMbd5nBQ.mjs +10 -0
- package/dist/react-datetime.cjs-BazkzJ-h.mjs +3535 -0
- package/dist/recycle-horizontal-Rf_bshe8.mjs +13 -0
- package/dist/refresh-D188VUaC.mjs +12 -0
- package/dist/reown-logo-BlqEBF0T.mjs +16 -0
- package/dist/search-BwlhXkfV.mjs +12 -0
- package/dist/secp256k1-B3zICmiT.mjs +1469 -0
- package/dist/secp256k1-DgHq90iL.mjs +1510 -0
- package/dist/send-gHEIp_-C.mjs +19 -0
- package/dist/setApprovalForAll-BvnCORJI-BsLcI446.mjs +4 -0
- package/dist/spaceIdABI-BS4XGAT1-BjuJy2_U.mjs +4 -0
- package/dist/spaceIdResolverABI-sYDT8GfP-D5rMp5Lb.mjs +4 -0
- package/dist/swapHorizontal-CSBQUUlD.mjs +12 -0
- package/dist/swapHorizontalBold-BJqpmrQd.mjs +12 -0
- package/dist/swapHorizontalMedium-R5UjzDTB.mjs +20 -0
- package/dist/swapHorizontalRoundedBold-Dajt5M8H.mjs +12 -0
- package/dist/swapVertical-C00VFvcQ.mjs +12 -0
- package/dist/telegram-BjMNjPGO.mjs +20 -0
- package/dist/three-dots-CzB3opP1.mjs +9 -0
- package/dist/twitch-BJyvHwSX.mjs +22 -0
- package/dist/twitterIcon-C13sV4pO.mjs +10 -0
- package/dist/types/index.d.ts +16 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/request.d.ts +1 -0
- package/dist/utils/version.d.ts +13 -0
- package/dist/v3MiningABI-ZjGBkolS-DpOFVbMt.mjs +4 -0
- package/dist/vdodo-ttc2RVOs-BsdVbO8I.mjs +4 -0
- package/dist/vdodoTokenABI-PldrbOSo-CmQmhg5z.mjs +4 -0
- package/dist/verify-CZf1Key9.mjs +12 -0
- package/dist/verify-filled-TxR2AkrB.mjs +12 -0
- package/dist/w3m-modal-CtlM8yh_.mjs +1471 -0
- package/dist/wallet-placeholder-BZj9RGcX.mjs +18 -0
- package/dist/wallet-w_3wvddk.mjs +12 -0
- package/dist/walletconnect-Dst7WudJ.mjs +36 -0
- package/dist/warning-circle-BAvO6TFh.mjs +16 -0
- package/dist/weth-Dz5DGEIF-y7HuL7DE.mjs +4 -0
- package/dist/x-Ch4skAxW.mjs +16 -0
- package/package.json +2 -1
|
@@ -0,0 +1,1037 @@
|
|
|
1
|
+
import { p as N, u as V, i as b, r as $, a as S, x as m, n as q, q as B, o as W, e as Y } from "./core-BncCIRvy.mjs";
|
|
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: r }) {
|
|
20
|
+
return e.length <= t + i ? e : r === "end" ? `${e.substring(0, t)}...` : r === "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"), r = this.hexToRgb(i), a = getComputedStyle(document.documentElement).getPropertyValue("--w3m-border-radius-master"), n = 100 - 3 * Number(a == null ? void 0 : a.replace("px", "")), s = `${n}% ${n}% at 65% 40%`, l = [];
|
|
24
|
+
for (let d = 0; d < 5; d += 1) {
|
|
25
|
+
const g = this.tintColor(r, 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: ${s}
|
|
35
|
+
`;
|
|
36
|
+
},
|
|
37
|
+
hexToRgb(e) {
|
|
38
|
+
const t = parseInt(e, 16), i = t >> 16 & 255, r = t >> 8 & 255, a = t & 255;
|
|
39
|
+
return [i, r, a];
|
|
40
|
+
},
|
|
41
|
+
tintColor(e, t) {
|
|
42
|
+
const [i, r, a] = e, o = Math.round(i + (255 - i) * t), n = Math.round(r + (255 - r) * t), s = Math.round(a + (255 - a) * t);
|
|
43
|
+
return [o, n, s];
|
|
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: r } = t;
|
|
73
|
+
return {
|
|
74
|
+
kind: i,
|
|
75
|
+
elements: r,
|
|
76
|
+
finisher(a) {
|
|
77
|
+
customElements.get(e) || customElements.define(e, a);
|
|
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
|
+
/**
|
|
90
|
+
* @license
|
|
91
|
+
* Copyright 2017 Google LLC
|
|
92
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
93
|
+
*/
|
|
94
|
+
const Z = { attribute: !0, type: String, converter: V, reflect: !1, hasChanged: N }, Q = (e = Z, t, i) => {
|
|
95
|
+
const { kind: r, metadata: a } = i;
|
|
96
|
+
let o = globalThis.litPropertyMetadata.get(a);
|
|
97
|
+
if (o === void 0 && globalThis.litPropertyMetadata.set(a, o = /* @__PURE__ */ new Map()), r === "setter" && ((e = Object.create(e)).wrapped = !0), o.set(i.name, e), r === "accessor") {
|
|
98
|
+
const { name: n } = i;
|
|
99
|
+
return { set(s) {
|
|
100
|
+
const l = t.get.call(this);
|
|
101
|
+
t.set.call(this, s), this.requestUpdate(n, l, e);
|
|
102
|
+
}, init(s) {
|
|
103
|
+
return s !== void 0 && this.C(n, void 0, e, s), s;
|
|
104
|
+
} };
|
|
105
|
+
}
|
|
106
|
+
if (r === "setter") {
|
|
107
|
+
const { name: n } = i;
|
|
108
|
+
return function(s) {
|
|
109
|
+
const l = this[n];
|
|
110
|
+
t.call(this, s), this.requestUpdate(n, l, e);
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
throw Error("Unsupported decorator location: " + r);
|
|
114
|
+
};
|
|
115
|
+
function c(e) {
|
|
116
|
+
return (t, i) => typeof i == "object" ? Q(e, t, i) : ((r, a, o) => {
|
|
117
|
+
const n = a.hasOwnProperty(o);
|
|
118
|
+
return a.constructor.createProperty(o, r), n ? Object.getOwnPropertyDescriptor(a, o) : void 0;
|
|
119
|
+
})(e, t, i);
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* @license
|
|
123
|
+
* Copyright 2017 Google LLC
|
|
124
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
125
|
+
*/
|
|
126
|
+
function bt(e) {
|
|
127
|
+
return c({ ...e, state: !0, attribute: !1 });
|
|
128
|
+
}
|
|
129
|
+
const J = b`
|
|
130
|
+
:host {
|
|
131
|
+
display: flex;
|
|
132
|
+
width: inherit;
|
|
133
|
+
height: inherit;
|
|
134
|
+
}
|
|
135
|
+
`;
|
|
136
|
+
var h = function(e, t, i, r) {
|
|
137
|
+
var a = arguments.length, o = a < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, i) : r, n;
|
|
138
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(e, t, i, r);
|
|
139
|
+
else for (var s = e.length - 1; s >= 0; s--) (n = e[s]) && (o = (a < 3 ? n(o) : a > 3 ? n(t, i, o) : n(t, i)) || o);
|
|
140
|
+
return a > 3 && o && Object.defineProperty(t, i, o), o;
|
|
141
|
+
};
|
|
142
|
+
let u = class extends S {
|
|
143
|
+
render() {
|
|
144
|
+
return this.style.cssText = `
|
|
145
|
+
flex-direction: ${this.flexDirection};
|
|
146
|
+
flex-wrap: ${this.flexWrap};
|
|
147
|
+
flex-basis: ${this.flexBasis};
|
|
148
|
+
flex-grow: ${this.flexGrow};
|
|
149
|
+
flex-shrink: ${this.flexShrink};
|
|
150
|
+
align-items: ${this.alignItems};
|
|
151
|
+
justify-content: ${this.justifyContent};
|
|
152
|
+
column-gap: ${this.columnGap && `var(--wui-spacing-${this.columnGap})`};
|
|
153
|
+
row-gap: ${this.rowGap && `var(--wui-spacing-${this.rowGap})`};
|
|
154
|
+
gap: ${this.gap && `var(--wui-spacing-${this.gap})`};
|
|
155
|
+
padding-top: ${this.padding && w.getSpacingStyles(this.padding, 0)};
|
|
156
|
+
padding-right: ${this.padding && w.getSpacingStyles(this.padding, 1)};
|
|
157
|
+
padding-bottom: ${this.padding && w.getSpacingStyles(this.padding, 2)};
|
|
158
|
+
padding-left: ${this.padding && w.getSpacingStyles(this.padding, 3)};
|
|
159
|
+
margin-top: ${this.margin && w.getSpacingStyles(this.margin, 0)};
|
|
160
|
+
margin-right: ${this.margin && w.getSpacingStyles(this.margin, 1)};
|
|
161
|
+
margin-bottom: ${this.margin && w.getSpacingStyles(this.margin, 2)};
|
|
162
|
+
margin-left: ${this.margin && w.getSpacingStyles(this.margin, 3)};
|
|
163
|
+
`, m`<slot></slot>`;
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
u.styles = [$, J];
|
|
167
|
+
h([
|
|
168
|
+
c()
|
|
169
|
+
], u.prototype, "flexDirection", void 0);
|
|
170
|
+
h([
|
|
171
|
+
c()
|
|
172
|
+
], u.prototype, "flexWrap", void 0);
|
|
173
|
+
h([
|
|
174
|
+
c()
|
|
175
|
+
], u.prototype, "flexBasis", void 0);
|
|
176
|
+
h([
|
|
177
|
+
c()
|
|
178
|
+
], u.prototype, "flexGrow", void 0);
|
|
179
|
+
h([
|
|
180
|
+
c()
|
|
181
|
+
], u.prototype, "flexShrink", void 0);
|
|
182
|
+
h([
|
|
183
|
+
c()
|
|
184
|
+
], u.prototype, "alignItems", void 0);
|
|
185
|
+
h([
|
|
186
|
+
c()
|
|
187
|
+
], u.prototype, "justifyContent", void 0);
|
|
188
|
+
h([
|
|
189
|
+
c()
|
|
190
|
+
], u.prototype, "columnGap", void 0);
|
|
191
|
+
h([
|
|
192
|
+
c()
|
|
193
|
+
], u.prototype, "rowGap", void 0);
|
|
194
|
+
h([
|
|
195
|
+
c()
|
|
196
|
+
], u.prototype, "gap", void 0);
|
|
197
|
+
h([
|
|
198
|
+
c()
|
|
199
|
+
], u.prototype, "padding", void 0);
|
|
200
|
+
h([
|
|
201
|
+
c()
|
|
202
|
+
], u.prototype, "margin", void 0);
|
|
203
|
+
u = h([
|
|
204
|
+
x("wui-flex")
|
|
205
|
+
], u);
|
|
206
|
+
/**
|
|
207
|
+
* @license
|
|
208
|
+
* Copyright 2018 Google LLC
|
|
209
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
210
|
+
*/
|
|
211
|
+
const St = (e) => e ?? q;
|
|
212
|
+
/**
|
|
213
|
+
* @license
|
|
214
|
+
* Copyright 2020 Google LLC
|
|
215
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
216
|
+
*/
|
|
217
|
+
const tt = (e) => e === null || typeof e != "object" && typeof e != "function", et = (e) => e.strings === void 0;
|
|
218
|
+
/**
|
|
219
|
+
* @license
|
|
220
|
+
* Copyright 2017 Google LLC
|
|
221
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
222
|
+
*/
|
|
223
|
+
const E = { ATTRIBUTE: 1, CHILD: 2 }, H = (e) => (...t) => ({ _$litDirective$: e, values: t });
|
|
224
|
+
let F = class {
|
|
225
|
+
constructor(t) {
|
|
226
|
+
}
|
|
227
|
+
get _$AU() {
|
|
228
|
+
return this._$AM._$AU;
|
|
229
|
+
}
|
|
230
|
+
_$AT(t, i, r) {
|
|
231
|
+
this._$Ct = t, this._$AM = i, this._$Ci = r;
|
|
232
|
+
}
|
|
233
|
+
_$AS(t, i) {
|
|
234
|
+
return this.update(t, i);
|
|
235
|
+
}
|
|
236
|
+
update(t, i) {
|
|
237
|
+
return this.render(...i);
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
/**
|
|
241
|
+
* @license
|
|
242
|
+
* Copyright 2017 Google LLC
|
|
243
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
244
|
+
*/
|
|
245
|
+
const _ = (e, t) => {
|
|
246
|
+
var r;
|
|
247
|
+
const i = e._$AN;
|
|
248
|
+
if (i === void 0) return !1;
|
|
249
|
+
for (const a of i) (r = a._$AO) == null || r.call(a, t, !1), _(a, t);
|
|
250
|
+
return !0;
|
|
251
|
+
}, T = (e) => {
|
|
252
|
+
let t, i;
|
|
253
|
+
do {
|
|
254
|
+
if ((t = e._$AM) === void 0) break;
|
|
255
|
+
i = t._$AN, i.delete(e), e = t;
|
|
256
|
+
} while ((i == null ? void 0 : i.size) === 0);
|
|
257
|
+
}, G = (e) => {
|
|
258
|
+
for (let t; t = e._$AM; e = t) {
|
|
259
|
+
let i = t._$AN;
|
|
260
|
+
if (i === void 0) t._$AN = i = /* @__PURE__ */ new Set();
|
|
261
|
+
else if (i.has(e)) break;
|
|
262
|
+
i.add(e), rt(t);
|
|
263
|
+
}
|
|
264
|
+
};
|
|
265
|
+
function it(e) {
|
|
266
|
+
this._$AN !== void 0 ? (T(this), this._$AM = e, G(this)) : this._$AM = e;
|
|
267
|
+
}
|
|
268
|
+
function ot(e, t = !1, i = 0) {
|
|
269
|
+
const r = this._$AH, a = this._$AN;
|
|
270
|
+
if (a !== void 0 && a.size !== 0) if (t) if (Array.isArray(r)) for (let o = i; o < r.length; o++) _(r[o], !1), T(r[o]);
|
|
271
|
+
else r != null && (_(r, !1), T(r));
|
|
272
|
+
else _(this, e);
|
|
273
|
+
}
|
|
274
|
+
const rt = (e) => {
|
|
275
|
+
e.type == E.CHILD && (e._$AP ?? (e._$AP = ot), e._$AQ ?? (e._$AQ = it));
|
|
276
|
+
};
|
|
277
|
+
class at extends F {
|
|
278
|
+
constructor() {
|
|
279
|
+
super(...arguments), this._$AN = void 0;
|
|
280
|
+
}
|
|
281
|
+
_$AT(t, i, r) {
|
|
282
|
+
super._$AT(t, i, r), G(this), this.isConnected = t._$AU;
|
|
283
|
+
}
|
|
284
|
+
_$AO(t, i = !0) {
|
|
285
|
+
var r, a;
|
|
286
|
+
t !== this.isConnected && (this.isConnected = t, t ? (r = this.reconnected) == null || r.call(this) : (a = this.disconnected) == null || a.call(this)), i && (_(this, t), T(this));
|
|
287
|
+
}
|
|
288
|
+
setValue(t) {
|
|
289
|
+
if (et(this._$Ct)) this._$Ct._$AI(t, this);
|
|
290
|
+
else {
|
|
291
|
+
const i = [...this._$Ct._$AH];
|
|
292
|
+
i[this._$Ci] = t, this._$Ct._$AI(i, this, 0);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
disconnected() {
|
|
296
|
+
}
|
|
297
|
+
reconnected() {
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* @license
|
|
302
|
+
* Copyright 2021 Google LLC
|
|
303
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
304
|
+
*/
|
|
305
|
+
class nt {
|
|
306
|
+
constructor(t) {
|
|
307
|
+
this.G = t;
|
|
308
|
+
}
|
|
309
|
+
disconnect() {
|
|
310
|
+
this.G = void 0;
|
|
311
|
+
}
|
|
312
|
+
reconnect(t) {
|
|
313
|
+
this.G = t;
|
|
314
|
+
}
|
|
315
|
+
deref() {
|
|
316
|
+
return this.G;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
class st {
|
|
320
|
+
constructor() {
|
|
321
|
+
this.Y = void 0, this.Z = void 0;
|
|
322
|
+
}
|
|
323
|
+
get() {
|
|
324
|
+
return this.Y;
|
|
325
|
+
}
|
|
326
|
+
pause() {
|
|
327
|
+
this.Y ?? (this.Y = new Promise((t) => this.Z = t));
|
|
328
|
+
}
|
|
329
|
+
resume() {
|
|
330
|
+
var t;
|
|
331
|
+
(t = this.Z) == null || t.call(this), this.Y = this.Z = void 0;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* @license
|
|
336
|
+
* Copyright 2017 Google LLC
|
|
337
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
338
|
+
*/
|
|
339
|
+
const L = (e) => !tt(e) && typeof e.then == "function", D = 1073741823;
|
|
340
|
+
class ct extends at {
|
|
341
|
+
constructor() {
|
|
342
|
+
super(...arguments), this._$Cwt = D, this._$Cbt = [], this._$CK = new nt(this), this._$CX = new st();
|
|
343
|
+
}
|
|
344
|
+
render(...t) {
|
|
345
|
+
return t.find((i) => !L(i)) ?? B;
|
|
346
|
+
}
|
|
347
|
+
update(t, i) {
|
|
348
|
+
const r = this._$Cbt;
|
|
349
|
+
let a = r.length;
|
|
350
|
+
this._$Cbt = i;
|
|
351
|
+
const o = this._$CK, n = this._$CX;
|
|
352
|
+
this.isConnected || this.disconnected();
|
|
353
|
+
for (let s = 0; s < i.length && !(s > this._$Cwt); s++) {
|
|
354
|
+
const l = i[s];
|
|
355
|
+
if (!L(l)) return this._$Cwt = s, l;
|
|
356
|
+
s < a && l === r[s] || (this._$Cwt = D, a = 0, Promise.resolve(l).then(async (d) => {
|
|
357
|
+
for (; n.get(); ) await n.get();
|
|
358
|
+
const g = o.deref();
|
|
359
|
+
if (g !== void 0) {
|
|
360
|
+
const P = g._$Cbt.indexOf(l);
|
|
361
|
+
P > -1 && P < g._$Cwt && (g._$Cwt = P, g.setValue(d));
|
|
362
|
+
}
|
|
363
|
+
}));
|
|
364
|
+
}
|
|
365
|
+
return B;
|
|
366
|
+
}
|
|
367
|
+
disconnected() {
|
|
368
|
+
this._$CK.disconnect(), this._$CX.pause();
|
|
369
|
+
}
|
|
370
|
+
reconnected() {
|
|
371
|
+
this._$CK.reconnect(this), this._$CX.resume();
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
const lt = H(ct);
|
|
375
|
+
class ut {
|
|
376
|
+
constructor() {
|
|
377
|
+
this.cache = /* @__PURE__ */ new Map();
|
|
378
|
+
}
|
|
379
|
+
set(t, i) {
|
|
380
|
+
this.cache.set(t, i);
|
|
381
|
+
}
|
|
382
|
+
get(t) {
|
|
383
|
+
return this.cache.get(t);
|
|
384
|
+
}
|
|
385
|
+
has(t) {
|
|
386
|
+
return this.cache.has(t);
|
|
387
|
+
}
|
|
388
|
+
delete(t) {
|
|
389
|
+
this.cache.delete(t);
|
|
390
|
+
}
|
|
391
|
+
clear() {
|
|
392
|
+
this.cache.clear();
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
const O = new ut(), ht = b`
|
|
396
|
+
:host {
|
|
397
|
+
display: flex;
|
|
398
|
+
aspect-ratio: var(--local-aspect-ratio);
|
|
399
|
+
color: var(--local-color);
|
|
400
|
+
width: var(--local-width);
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
svg {
|
|
404
|
+
width: inherit;
|
|
405
|
+
height: inherit;
|
|
406
|
+
object-fit: contain;
|
|
407
|
+
object-position: center;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
.fallback {
|
|
411
|
+
width: var(--local-width);
|
|
412
|
+
height: var(--local-height);
|
|
413
|
+
}
|
|
414
|
+
`;
|
|
415
|
+
var j = function(e, t, i, r) {
|
|
416
|
+
var a = arguments.length, o = a < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, i) : r, n;
|
|
417
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(e, t, i, r);
|
|
418
|
+
else for (var s = e.length - 1; s >= 0; s--) (n = e[s]) && (o = (a < 3 ? n(o) : a > 3 ? n(t, i, o) : n(t, i)) || o);
|
|
419
|
+
return a > 3 && o && Object.defineProperty(t, i, o), o;
|
|
420
|
+
};
|
|
421
|
+
const U = {
|
|
422
|
+
add: async () => (await import("./add-CHJpf5Lw.mjs")).addSvg,
|
|
423
|
+
allWallets: async () => (await import("./all-wallets-D2hkkUJ3.mjs")).allWalletsSvg,
|
|
424
|
+
arrowBottomCircle: async () => (await import("./arrow-bottom-circle-R6EgzTHW.mjs")).arrowBottomCircleSvg,
|
|
425
|
+
appStore: async () => (await import("./app-store-CqLKqQ5V.mjs")).appStoreSvg,
|
|
426
|
+
apple: async () => (await import("./apple-B0XeUiD1.mjs")).appleSvg,
|
|
427
|
+
arrowBottom: async () => (await import("./arrow-bottom-aeJVAvnL.mjs")).arrowBottomSvg,
|
|
428
|
+
arrowLeft: async () => (await import("./arrow-left-BqQ4buTv.mjs")).arrowLeftSvg,
|
|
429
|
+
arrowRight: async () => (await import("./arrow-right-C6Ed0Mzu.mjs")).arrowRightSvg,
|
|
430
|
+
arrowTop: async () => (await import("./arrow-top-BidIjQzK.mjs")).arrowTopSvg,
|
|
431
|
+
bank: async () => (await import("./bank-yI5ZTpcM.mjs")).bankSvg,
|
|
432
|
+
browser: async () => (await import("./browser-DfN9W7W3.mjs")).browserSvg,
|
|
433
|
+
card: async () => (await import("./card-DNVrOepi.mjs")).cardSvg,
|
|
434
|
+
checkmark: async () => (await import("./checkmark-Y_JAaFYi.mjs")).checkmarkSvg,
|
|
435
|
+
checkmarkBold: async () => (await import("./checkmark-bold-BaUBCwEZ.mjs")).checkmarkBoldSvg,
|
|
436
|
+
chevronBottom: async () => (await import("./chevron-bottom-DT-gLTLE.mjs")).chevronBottomSvg,
|
|
437
|
+
chevronLeft: async () => (await import("./chevron-left-Db6JDZK5.mjs")).chevronLeftSvg,
|
|
438
|
+
chevronRight: async () => (await import("./chevron-right-CcBMjaBn.mjs")).chevronRightSvg,
|
|
439
|
+
chevronTop: async () => (await import("./chevron-top-RvW8f4V7.mjs")).chevronTopSvg,
|
|
440
|
+
chromeStore: async () => (await import("./chrome-store-DnpyKbMo.mjs")).chromeStoreSvg,
|
|
441
|
+
clock: async () => (await import("./clock-Bz19eiZx.mjs")).clockSvg,
|
|
442
|
+
close: async () => (await import("./close-Pad_fUXU.mjs")).closeSvg,
|
|
443
|
+
compass: async () => (await import("./compass-Dw45tdte.mjs")).compassSvg,
|
|
444
|
+
coinPlaceholder: async () => (await import("./coinPlaceholder-B7RKkvE0.mjs")).coinPlaceholderSvg,
|
|
445
|
+
copy: async () => (await import("./copy-CwnxEVdO.mjs")).copySvg,
|
|
446
|
+
cursor: async () => (await import("./cursor-C6uOuAov.mjs")).cursorSvg,
|
|
447
|
+
cursorTransparent: async () => (await import("./cursor-transparent-xIFYE_0X.mjs")).cursorTransparentSvg,
|
|
448
|
+
desktop: async () => (await import("./desktop-Dz5Hje94.mjs")).desktopSvg,
|
|
449
|
+
disconnect: async () => (await import("./disconnect-CTdx5PqO.mjs")).disconnectSvg,
|
|
450
|
+
discord: async () => (await import("./discord-C-gRbozI.mjs")).discordSvg,
|
|
451
|
+
etherscan: async () => (await import("./etherscan-BoxwTKtb.mjs")).etherscanSvg,
|
|
452
|
+
extension: async () => (await import("./extension-Cu9Cmk3m.mjs")).extensionSvg,
|
|
453
|
+
externalLink: async () => (await import("./external-link-BvvHuuY0.mjs")).externalLinkSvg,
|
|
454
|
+
facebook: async () => (await import("./facebook-By3QHn59.mjs")).facebookSvg,
|
|
455
|
+
farcaster: async () => (await import("./farcaster-B6Uk0IIz.mjs")).farcasterSvg,
|
|
456
|
+
filters: async () => (await import("./filters-7iolnXNp.mjs")).filtersSvg,
|
|
457
|
+
github: async () => (await import("./github-CbNFQ-rE.mjs")).githubSvg,
|
|
458
|
+
google: async () => (await import("./google-B4kpRWe2.mjs")).googleSvg,
|
|
459
|
+
helpCircle: async () => (await import("./help-circle-BHYOhZH-.mjs")).helpCircleSvg,
|
|
460
|
+
image: async () => (await import("./image-BFYG_I7p.mjs")).imageSvg,
|
|
461
|
+
id: async () => (await import("./id-B63SRnJH.mjs")).idSvg,
|
|
462
|
+
infoCircle: async () => (await import("./info-circle-Br6R310O.mjs")).infoCircleSvg,
|
|
463
|
+
lightbulb: async () => (await import("./lightbulb-CvIgiu_8.mjs")).lightbulbSvg,
|
|
464
|
+
mail: async () => (await import("./mail-C37s8I6x.mjs")).mailSvg,
|
|
465
|
+
mobile: async () => (await import("./mobile-6yKClGQT.mjs")).mobileSvg,
|
|
466
|
+
more: async () => (await import("./more-CoCXkplN.mjs")).moreSvg,
|
|
467
|
+
networkPlaceholder: async () => (await import("./network-placeholder-RiVpBWSW.mjs")).networkPlaceholderSvg,
|
|
468
|
+
nftPlaceholder: async () => (await import("./nftPlaceholder-BqPW-YRA.mjs")).nftPlaceholderSvg,
|
|
469
|
+
off: async () => (await import("./off-BYd8177g.mjs")).offSvg,
|
|
470
|
+
playStore: async () => (await import("./play-store-DOI54pIO.mjs")).playStoreSvg,
|
|
471
|
+
plus: async () => (await import("./plus-D3V6i3OL.mjs")).plusSvg,
|
|
472
|
+
qrCode: async () => (await import("./qr-code-BMbd5nBQ.mjs")).qrCodeIcon,
|
|
473
|
+
recycleHorizontal: async () => (await import("./recycle-horizontal-Rf_bshe8.mjs")).recycleHorizontalSvg,
|
|
474
|
+
refresh: async () => (await import("./refresh-D188VUaC.mjs")).refreshSvg,
|
|
475
|
+
search: async () => (await import("./search-BwlhXkfV.mjs")).searchSvg,
|
|
476
|
+
send: async () => (await import("./send-gHEIp_-C.mjs")).sendSvg,
|
|
477
|
+
swapHorizontal: async () => (await import("./swapHorizontal-CSBQUUlD.mjs")).swapHorizontalSvg,
|
|
478
|
+
swapHorizontalMedium: async () => (await import("./swapHorizontalMedium-R5UjzDTB.mjs")).swapHorizontalMediumSvg,
|
|
479
|
+
swapHorizontalBold: async () => (await import("./swapHorizontalBold-BJqpmrQd.mjs")).swapHorizontalBoldSvg,
|
|
480
|
+
swapHorizontalRoundedBold: async () => (await import("./swapHorizontalRoundedBold-Dajt5M8H.mjs")).swapHorizontalRoundedBoldSvg,
|
|
481
|
+
swapVertical: async () => (await import("./swapVertical-C00VFvcQ.mjs")).swapVerticalSvg,
|
|
482
|
+
telegram: async () => (await import("./telegram-BjMNjPGO.mjs")).telegramSvg,
|
|
483
|
+
threeDots: async () => (await import("./three-dots-CzB3opP1.mjs")).threeDotsSvg,
|
|
484
|
+
twitch: async () => (await import("./twitch-BJyvHwSX.mjs")).twitchSvg,
|
|
485
|
+
twitter: async () => (await import("./x-Ch4skAxW.mjs")).xSvg,
|
|
486
|
+
twitterIcon: async () => (await import("./twitterIcon-C13sV4pO.mjs")).twitterIconSvg,
|
|
487
|
+
verify: async () => (await import("./verify-CZf1Key9.mjs")).verifySvg,
|
|
488
|
+
verifyFilled: async () => (await import("./verify-filled-TxR2AkrB.mjs")).verifyFilledSvg,
|
|
489
|
+
wallet: async () => (await import("./wallet-w_3wvddk.mjs")).walletSvg,
|
|
490
|
+
walletConnect: async () => (await import("./walletconnect-Dst7WudJ.mjs")).walletConnectSvg,
|
|
491
|
+
walletConnectLightBrown: async () => (await import("./walletconnect-Dst7WudJ.mjs")).walletConnectLightBrownSvg,
|
|
492
|
+
walletConnectBrown: async () => (await import("./walletconnect-Dst7WudJ.mjs")).walletConnectBrownSvg,
|
|
493
|
+
walletPlaceholder: async () => (await import("./wallet-placeholder-BZj9RGcX.mjs")).walletPlaceholderSvg,
|
|
494
|
+
warningCircle: async () => (await import("./warning-circle-BAvO6TFh.mjs")).warningCircleSvg,
|
|
495
|
+
x: async () => (await import("./x-Ch4skAxW.mjs")).xSvg,
|
|
496
|
+
info: async () => (await import("./info-MhMaxvuu.mjs")).infoSvg,
|
|
497
|
+
exclamationTriangle: async () => (await import("./exclamation-triangle-lJzIh3b3.mjs")).exclamationTriangleSvg,
|
|
498
|
+
reown: async () => (await import("./reown-logo-BlqEBF0T.mjs")).reownSvg
|
|
499
|
+
};
|
|
500
|
+
async function pt(e) {
|
|
501
|
+
if (O.has(e))
|
|
502
|
+
return O.get(e);
|
|
503
|
+
const i = (U[e] ?? U.copy)();
|
|
504
|
+
return O.set(e, i), i;
|
|
505
|
+
}
|
|
506
|
+
let v = class extends S {
|
|
507
|
+
constructor() {
|
|
508
|
+
super(...arguments), this.size = "md", this.name = "copy", this.color = "fg-300", this.aspectRatio = "1 / 1";
|
|
509
|
+
}
|
|
510
|
+
render() {
|
|
511
|
+
return this.style.cssText = `
|
|
512
|
+
--local-color: ${`var(--wui-color-${this.color});`}
|
|
513
|
+
--local-width: ${`var(--wui-icon-size-${this.size});`}
|
|
514
|
+
--local-aspect-ratio: ${this.aspectRatio}
|
|
515
|
+
`, m`${lt(pt(this.name), m`<div class="fallback"></div>`)}`;
|
|
516
|
+
}
|
|
517
|
+
};
|
|
518
|
+
v.styles = [$, W, ht];
|
|
519
|
+
j([
|
|
520
|
+
c()
|
|
521
|
+
], v.prototype, "size", void 0);
|
|
522
|
+
j([
|
|
523
|
+
c()
|
|
524
|
+
], v.prototype, "name", void 0);
|
|
525
|
+
j([
|
|
526
|
+
c()
|
|
527
|
+
], v.prototype, "color", void 0);
|
|
528
|
+
j([
|
|
529
|
+
c()
|
|
530
|
+
], v.prototype, "aspectRatio", void 0);
|
|
531
|
+
v = j([
|
|
532
|
+
x("wui-icon")
|
|
533
|
+
], v);
|
|
534
|
+
/**
|
|
535
|
+
* @license
|
|
536
|
+
* Copyright 2018 Google LLC
|
|
537
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
538
|
+
*/
|
|
539
|
+
const dt = H(class extends F {
|
|
540
|
+
constructor(e) {
|
|
541
|
+
var t;
|
|
542
|
+
if (super(e), e.type !== E.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.");
|
|
543
|
+
}
|
|
544
|
+
render(e) {
|
|
545
|
+
return " " + Object.keys(e).filter((t) => e[t]).join(" ") + " ";
|
|
546
|
+
}
|
|
547
|
+
update(e, [t]) {
|
|
548
|
+
var r, a;
|
|
549
|
+
if (this.st === void 0) {
|
|
550
|
+
this.st = /* @__PURE__ */ new Set(), e.strings !== void 0 && (this.nt = new Set(e.strings.join(" ").split(/\s/).filter((o) => o !== "")));
|
|
551
|
+
for (const o in t) t[o] && !((r = this.nt) != null && r.has(o)) && this.st.add(o);
|
|
552
|
+
return this.render(t);
|
|
553
|
+
}
|
|
554
|
+
const i = e.element.classList;
|
|
555
|
+
for (const o of this.st) o in t || (i.remove(o), this.st.delete(o));
|
|
556
|
+
for (const o in t) {
|
|
557
|
+
const n = !!t[o];
|
|
558
|
+
n === this.st.has(o) || (a = this.nt) != null && a.has(o) || (n ? (i.add(o), this.st.add(o)) : (i.remove(o), this.st.delete(o)));
|
|
559
|
+
}
|
|
560
|
+
return B;
|
|
561
|
+
}
|
|
562
|
+
}), gt = b`
|
|
563
|
+
:host {
|
|
564
|
+
display: inline-flex !important;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
slot {
|
|
568
|
+
width: 100%;
|
|
569
|
+
display: inline-block;
|
|
570
|
+
font-style: normal;
|
|
571
|
+
font-family: var(--wui-font-family);
|
|
572
|
+
font-feature-settings:
|
|
573
|
+
'tnum' on,
|
|
574
|
+
'lnum' on,
|
|
575
|
+
'case' on;
|
|
576
|
+
line-height: 130%;
|
|
577
|
+
font-weight: var(--wui-font-weight-regular);
|
|
578
|
+
overflow: inherit;
|
|
579
|
+
text-overflow: inherit;
|
|
580
|
+
text-align: var(--local-align);
|
|
581
|
+
color: var(--local-color);
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
.wui-line-clamp-1 {
|
|
585
|
+
overflow: hidden;
|
|
586
|
+
display: -webkit-box;
|
|
587
|
+
-webkit-box-orient: vertical;
|
|
588
|
+
-webkit-line-clamp: 1;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
.wui-line-clamp-2 {
|
|
592
|
+
overflow: hidden;
|
|
593
|
+
display: -webkit-box;
|
|
594
|
+
-webkit-box-orient: vertical;
|
|
595
|
+
-webkit-line-clamp: 2;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
.wui-font-medium-400 {
|
|
599
|
+
font-size: var(--wui-font-size-medium);
|
|
600
|
+
font-weight: var(--wui-font-weight-light);
|
|
601
|
+
letter-spacing: var(--wui-letter-spacing-medium);
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
.wui-font-medium-600 {
|
|
605
|
+
font-size: var(--wui-font-size-medium);
|
|
606
|
+
letter-spacing: var(--wui-letter-spacing-medium);
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
.wui-font-title-600 {
|
|
610
|
+
font-size: var(--wui-font-size-title);
|
|
611
|
+
letter-spacing: var(--wui-letter-spacing-title);
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
.wui-font-title-6-600 {
|
|
615
|
+
font-size: var(--wui-font-size-title-6);
|
|
616
|
+
letter-spacing: var(--wui-letter-spacing-title-6);
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
.wui-font-mini-700 {
|
|
620
|
+
font-size: var(--wui-font-size-mini);
|
|
621
|
+
letter-spacing: var(--wui-letter-spacing-mini);
|
|
622
|
+
text-transform: uppercase;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
.wui-font-large-500,
|
|
626
|
+
.wui-font-large-600,
|
|
627
|
+
.wui-font-large-700 {
|
|
628
|
+
font-size: var(--wui-font-size-large);
|
|
629
|
+
letter-spacing: var(--wui-letter-spacing-large);
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
.wui-font-2xl-500,
|
|
633
|
+
.wui-font-2xl-600,
|
|
634
|
+
.wui-font-2xl-700 {
|
|
635
|
+
font-size: var(--wui-font-size-2xl);
|
|
636
|
+
letter-spacing: var(--wui-letter-spacing-2xl);
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
.wui-font-paragraph-400,
|
|
640
|
+
.wui-font-paragraph-500,
|
|
641
|
+
.wui-font-paragraph-600,
|
|
642
|
+
.wui-font-paragraph-700 {
|
|
643
|
+
font-size: var(--wui-font-size-paragraph);
|
|
644
|
+
letter-spacing: var(--wui-letter-spacing-paragraph);
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
.wui-font-small-400,
|
|
648
|
+
.wui-font-small-500,
|
|
649
|
+
.wui-font-small-600 {
|
|
650
|
+
font-size: var(--wui-font-size-small);
|
|
651
|
+
letter-spacing: var(--wui-letter-spacing-small);
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
.wui-font-tiny-400,
|
|
655
|
+
.wui-font-tiny-500,
|
|
656
|
+
.wui-font-tiny-600 {
|
|
657
|
+
font-size: var(--wui-font-size-tiny);
|
|
658
|
+
letter-spacing: var(--wui-letter-spacing-tiny);
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
.wui-font-micro-700,
|
|
662
|
+
.wui-font-micro-600 {
|
|
663
|
+
font-size: var(--wui-font-size-micro);
|
|
664
|
+
letter-spacing: var(--wui-letter-spacing-micro);
|
|
665
|
+
text-transform: uppercase;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
.wui-font-tiny-400,
|
|
669
|
+
.wui-font-small-400,
|
|
670
|
+
.wui-font-medium-400,
|
|
671
|
+
.wui-font-paragraph-400 {
|
|
672
|
+
font-weight: var(--wui-font-weight-light);
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
.wui-font-large-700,
|
|
676
|
+
.wui-font-paragraph-700,
|
|
677
|
+
.wui-font-micro-700,
|
|
678
|
+
.wui-font-mini-700 {
|
|
679
|
+
font-weight: var(--wui-font-weight-bold);
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
.wui-font-medium-600,
|
|
683
|
+
.wui-font-medium-title-600,
|
|
684
|
+
.wui-font-title-6-600,
|
|
685
|
+
.wui-font-large-600,
|
|
686
|
+
.wui-font-paragraph-600,
|
|
687
|
+
.wui-font-small-600,
|
|
688
|
+
.wui-font-tiny-600,
|
|
689
|
+
.wui-font-micro-600 {
|
|
690
|
+
font-weight: var(--wui-font-weight-medium);
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
:host([disabled]) {
|
|
694
|
+
opacity: 0.4;
|
|
695
|
+
}
|
|
696
|
+
`;
|
|
697
|
+
var R = function(e, t, i, r) {
|
|
698
|
+
var a = arguments.length, o = a < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, i) : r, n;
|
|
699
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(e, t, i, r);
|
|
700
|
+
else for (var s = e.length - 1; s >= 0; s--) (n = e[s]) && (o = (a < 3 ? n(o) : a > 3 ? n(t, i, o) : n(t, i)) || o);
|
|
701
|
+
return a > 3 && o && Object.defineProperty(t, i, o), o;
|
|
702
|
+
};
|
|
703
|
+
let y = class extends S {
|
|
704
|
+
constructor() {
|
|
705
|
+
super(...arguments), this.variant = "paragraph-500", this.color = "fg-300", this.align = "left", this.lineClamp = void 0;
|
|
706
|
+
}
|
|
707
|
+
render() {
|
|
708
|
+
const t = {
|
|
709
|
+
[`wui-font-${this.variant}`]: !0,
|
|
710
|
+
[`wui-color-${this.color}`]: !0,
|
|
711
|
+
[`wui-line-clamp-${this.lineClamp}`]: !!this.lineClamp
|
|
712
|
+
};
|
|
713
|
+
return this.style.cssText = `
|
|
714
|
+
--local-align: ${this.align};
|
|
715
|
+
--local-color: var(--wui-color-${this.color});
|
|
716
|
+
`, m`<slot class=${dt(t)}></slot>`;
|
|
717
|
+
}
|
|
718
|
+
};
|
|
719
|
+
y.styles = [$, gt];
|
|
720
|
+
R([
|
|
721
|
+
c()
|
|
722
|
+
], y.prototype, "variant", void 0);
|
|
723
|
+
R([
|
|
724
|
+
c()
|
|
725
|
+
], y.prototype, "color", void 0);
|
|
726
|
+
R([
|
|
727
|
+
c()
|
|
728
|
+
], y.prototype, "align", void 0);
|
|
729
|
+
R([
|
|
730
|
+
c()
|
|
731
|
+
], y.prototype, "lineClamp", void 0);
|
|
732
|
+
y = R([
|
|
733
|
+
x("wui-text")
|
|
734
|
+
], y);
|
|
735
|
+
const ft = b`
|
|
736
|
+
:host {
|
|
737
|
+
display: inline-flex;
|
|
738
|
+
justify-content: center;
|
|
739
|
+
align-items: center;
|
|
740
|
+
position: relative;
|
|
741
|
+
overflow: hidden;
|
|
742
|
+
background-color: var(--wui-color-gray-glass-020);
|
|
743
|
+
border-radius: var(--local-border-radius);
|
|
744
|
+
border: var(--local-border);
|
|
745
|
+
box-sizing: content-box;
|
|
746
|
+
width: var(--local-size);
|
|
747
|
+
height: var(--local-size);
|
|
748
|
+
min-height: var(--local-size);
|
|
749
|
+
min-width: var(--local-size);
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
@supports (background: color-mix(in srgb, white 50%, black)) {
|
|
753
|
+
:host {
|
|
754
|
+
background-color: color-mix(in srgb, var(--local-bg-value) var(--local-bg-mix), transparent);
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
`;
|
|
758
|
+
var f = function(e, t, i, r) {
|
|
759
|
+
var a = arguments.length, o = a < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, i) : r, n;
|
|
760
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(e, t, i, r);
|
|
761
|
+
else for (var s = e.length - 1; s >= 0; s--) (n = e[s]) && (o = (a < 3 ? n(o) : a > 3 ? n(t, i, o) : n(t, i)) || o);
|
|
762
|
+
return a > 3 && o && Object.defineProperty(t, i, o), o;
|
|
763
|
+
};
|
|
764
|
+
let p = class extends S {
|
|
765
|
+
constructor() {
|
|
766
|
+
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";
|
|
767
|
+
}
|
|
768
|
+
render() {
|
|
769
|
+
const t = this.iconSize || this.size, i = this.size === "lg", r = this.size === "xl", a = i ? "12%" : "16%", o = i ? "xxs" : r ? "s" : "3xl", n = this.background === "gray", s = this.background === "opaque", l = this.backgroundColor === "accent-100" && s || this.backgroundColor === "success-100" && s || this.backgroundColor === "error-100" && s || this.backgroundColor === "inverse-100" && s;
|
|
770
|
+
let d = `var(--wui-color-${this.backgroundColor})`;
|
|
771
|
+
return l ? d = `var(--wui-icon-box-bg-${this.backgroundColor})` : n && (d = `var(--wui-color-gray-${this.backgroundColor})`), this.style.cssText = `
|
|
772
|
+
--local-bg-value: ${d};
|
|
773
|
+
--local-bg-mix: ${l || n ? "100%" : a};
|
|
774
|
+
--local-border-radius: var(--wui-border-radius-${o});
|
|
775
|
+
--local-size: var(--wui-icon-box-size-${this.size});
|
|
776
|
+
--local-border: ${this.borderColor === "wui-color-bg-125" ? "2px" : "1px"} solid ${this.border ? `var(--${this.borderColor})` : "transparent"}
|
|
777
|
+
`, m` <wui-icon color=${this.iconColor} size=${t} name=${this.icon}></wui-icon> `;
|
|
778
|
+
}
|
|
779
|
+
};
|
|
780
|
+
p.styles = [$, Y, ft];
|
|
781
|
+
f([
|
|
782
|
+
c()
|
|
783
|
+
], p.prototype, "size", void 0);
|
|
784
|
+
f([
|
|
785
|
+
c()
|
|
786
|
+
], p.prototype, "backgroundColor", void 0);
|
|
787
|
+
f([
|
|
788
|
+
c()
|
|
789
|
+
], p.prototype, "iconColor", void 0);
|
|
790
|
+
f([
|
|
791
|
+
c()
|
|
792
|
+
], p.prototype, "iconSize", void 0);
|
|
793
|
+
f([
|
|
794
|
+
c()
|
|
795
|
+
], p.prototype, "background", void 0);
|
|
796
|
+
f([
|
|
797
|
+
c({ type: Boolean })
|
|
798
|
+
], p.prototype, "border", void 0);
|
|
799
|
+
f([
|
|
800
|
+
c()
|
|
801
|
+
], p.prototype, "borderColor", void 0);
|
|
802
|
+
f([
|
|
803
|
+
c()
|
|
804
|
+
], p.prototype, "icon", void 0);
|
|
805
|
+
p = f([
|
|
806
|
+
x("wui-icon-box")
|
|
807
|
+
], p);
|
|
808
|
+
const wt = b`
|
|
809
|
+
:host {
|
|
810
|
+
display: block;
|
|
811
|
+
width: var(--local-width);
|
|
812
|
+
height: var(--local-height);
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
img {
|
|
816
|
+
display: block;
|
|
817
|
+
width: 100%;
|
|
818
|
+
height: 100%;
|
|
819
|
+
object-fit: cover;
|
|
820
|
+
object-position: center center;
|
|
821
|
+
border-radius: inherit;
|
|
822
|
+
}
|
|
823
|
+
`;
|
|
824
|
+
var A = function(e, t, i, r) {
|
|
825
|
+
var a = arguments.length, o = a < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, i) : r, n;
|
|
826
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(e, t, i, r);
|
|
827
|
+
else for (var s = e.length - 1; s >= 0; s--) (n = e[s]) && (o = (a < 3 ? n(o) : a > 3 ? n(t, i, o) : n(t, i)) || o);
|
|
828
|
+
return a > 3 && o && Object.defineProperty(t, i, o), o;
|
|
829
|
+
};
|
|
830
|
+
let C = class extends S {
|
|
831
|
+
constructor() {
|
|
832
|
+
super(...arguments), this.src = "./path/to/image.jpg", this.alt = "Image", this.size = void 0;
|
|
833
|
+
}
|
|
834
|
+
render() {
|
|
835
|
+
return this.style.cssText = `
|
|
836
|
+
--local-width: ${this.size ? `var(--wui-icon-size-${this.size});` : "100%"};
|
|
837
|
+
--local-height: ${this.size ? `var(--wui-icon-size-${this.size});` : "100%"};
|
|
838
|
+
`, m`<img src=${this.src} alt=${this.alt} @error=${this.handleImageError} />`;
|
|
839
|
+
}
|
|
840
|
+
handleImageError() {
|
|
841
|
+
this.dispatchEvent(new CustomEvent("onLoadError", { bubbles: !0, composed: !0 }));
|
|
842
|
+
}
|
|
843
|
+
};
|
|
844
|
+
C.styles = [$, W, wt];
|
|
845
|
+
A([
|
|
846
|
+
c()
|
|
847
|
+
], C.prototype, "src", void 0);
|
|
848
|
+
A([
|
|
849
|
+
c()
|
|
850
|
+
], C.prototype, "alt", void 0);
|
|
851
|
+
A([
|
|
852
|
+
c()
|
|
853
|
+
], C.prototype, "size", void 0);
|
|
854
|
+
C = A([
|
|
855
|
+
x("wui-image")
|
|
856
|
+
], C);
|
|
857
|
+
const mt = b`
|
|
858
|
+
:host {
|
|
859
|
+
display: flex;
|
|
860
|
+
justify-content: center;
|
|
861
|
+
align-items: center;
|
|
862
|
+
height: var(--wui-spacing-m);
|
|
863
|
+
padding: 0 var(--wui-spacing-3xs) !important;
|
|
864
|
+
border-radius: var(--wui-border-radius-5xs);
|
|
865
|
+
transition:
|
|
866
|
+
border-radius var(--wui-duration-lg) var(--wui-ease-out-power-1),
|
|
867
|
+
background-color var(--wui-duration-lg) var(--wui-ease-out-power-1);
|
|
868
|
+
will-change: border-radius, background-color;
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
:host > wui-text {
|
|
872
|
+
transform: translateY(5%);
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
:host([data-variant='main']) {
|
|
876
|
+
background-color: var(--wui-color-accent-glass-015);
|
|
877
|
+
color: var(--wui-color-accent-100);
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
:host([data-variant='shade']) {
|
|
881
|
+
background-color: var(--wui-color-gray-glass-010);
|
|
882
|
+
color: var(--wui-color-fg-200);
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
:host([data-variant='success']) {
|
|
886
|
+
background-color: var(--wui-icon-box-bg-success-100);
|
|
887
|
+
color: var(--wui-color-success-100);
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
:host([data-variant='error']) {
|
|
891
|
+
background-color: var(--wui-icon-box-bg-error-100);
|
|
892
|
+
color: var(--wui-color-error-100);
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
:host([data-size='lg']) {
|
|
896
|
+
padding: 11px 5px !important;
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
:host([data-size='lg']) > wui-text {
|
|
900
|
+
transform: translateY(2%);
|
|
901
|
+
}
|
|
902
|
+
`;
|
|
903
|
+
var I = function(e, t, i, r) {
|
|
904
|
+
var a = arguments.length, o = a < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, i) : r, n;
|
|
905
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(e, t, i, r);
|
|
906
|
+
else for (var s = e.length - 1; s >= 0; s--) (n = e[s]) && (o = (a < 3 ? n(o) : a > 3 ? n(t, i, o) : n(t, i)) || o);
|
|
907
|
+
return a > 3 && o && Object.defineProperty(t, i, o), o;
|
|
908
|
+
};
|
|
909
|
+
let z = class extends S {
|
|
910
|
+
constructor() {
|
|
911
|
+
super(...arguments), this.variant = "main", this.size = "lg";
|
|
912
|
+
}
|
|
913
|
+
render() {
|
|
914
|
+
this.dataset.variant = this.variant, this.dataset.size = this.size;
|
|
915
|
+
const t = this.size === "md" ? "mini-700" : "micro-700";
|
|
916
|
+
return m`
|
|
917
|
+
<wui-text data-variant=${this.variant} variant=${t} color="inherit">
|
|
918
|
+
<slot></slot>
|
|
919
|
+
</wui-text>
|
|
920
|
+
`;
|
|
921
|
+
}
|
|
922
|
+
};
|
|
923
|
+
z.styles = [$, mt];
|
|
924
|
+
I([
|
|
925
|
+
c()
|
|
926
|
+
], z.prototype, "variant", void 0);
|
|
927
|
+
I([
|
|
928
|
+
c()
|
|
929
|
+
], z.prototype, "size", void 0);
|
|
930
|
+
z = I([
|
|
931
|
+
x("wui-tag")
|
|
932
|
+
], z);
|
|
933
|
+
const vt = b`
|
|
934
|
+
:host {
|
|
935
|
+
display: flex;
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
:host([data-size='sm']) > svg {
|
|
939
|
+
width: 12px;
|
|
940
|
+
height: 12px;
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
:host([data-size='md']) > svg {
|
|
944
|
+
width: 16px;
|
|
945
|
+
height: 16px;
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
:host([data-size='lg']) > svg {
|
|
949
|
+
width: 24px;
|
|
950
|
+
height: 24px;
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
:host([data-size='xl']) > svg {
|
|
954
|
+
width: 32px;
|
|
955
|
+
height: 32px;
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
svg {
|
|
959
|
+
animation: rotate 2s linear infinite;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
circle {
|
|
963
|
+
fill: none;
|
|
964
|
+
stroke: var(--local-color);
|
|
965
|
+
stroke-width: 4px;
|
|
966
|
+
stroke-dasharray: 1, 124;
|
|
967
|
+
stroke-dashoffset: 0;
|
|
968
|
+
stroke-linecap: round;
|
|
969
|
+
animation: dash 1.5s ease-in-out infinite;
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
:host([data-size='md']) > svg > circle {
|
|
973
|
+
stroke-width: 6px;
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
:host([data-size='sm']) > svg > circle {
|
|
977
|
+
stroke-width: 8px;
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
@keyframes rotate {
|
|
981
|
+
100% {
|
|
982
|
+
transform: rotate(360deg);
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
@keyframes dash {
|
|
987
|
+
0% {
|
|
988
|
+
stroke-dasharray: 1, 124;
|
|
989
|
+
stroke-dashoffset: 0;
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
50% {
|
|
993
|
+
stroke-dasharray: 90, 124;
|
|
994
|
+
stroke-dashoffset: -35;
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
100% {
|
|
998
|
+
stroke-dashoffset: -125;
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
`;
|
|
1002
|
+
var M = function(e, t, i, r) {
|
|
1003
|
+
var a = arguments.length, o = a < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, i) : r, n;
|
|
1004
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(e, t, i, r);
|
|
1005
|
+
else for (var s = e.length - 1; s >= 0; s--) (n = e[s]) && (o = (a < 3 ? n(o) : a > 3 ? n(t, i, o) : n(t, i)) || o);
|
|
1006
|
+
return a > 3 && o && Object.defineProperty(t, i, o), o;
|
|
1007
|
+
};
|
|
1008
|
+
let k = class extends S {
|
|
1009
|
+
constructor() {
|
|
1010
|
+
super(...arguments), this.color = "accent-100", this.size = "lg";
|
|
1011
|
+
}
|
|
1012
|
+
render() {
|
|
1013
|
+
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">
|
|
1014
|
+
<circle r="20" cy="50" cx="50"></circle>
|
|
1015
|
+
</svg>`;
|
|
1016
|
+
}
|
|
1017
|
+
};
|
|
1018
|
+
k.styles = [$, vt];
|
|
1019
|
+
M([
|
|
1020
|
+
c()
|
|
1021
|
+
], k.prototype, "color", void 0);
|
|
1022
|
+
M([
|
|
1023
|
+
c()
|
|
1024
|
+
], k.prototype, "size", void 0);
|
|
1025
|
+
k = M([
|
|
1026
|
+
x("wui-loading-spinner")
|
|
1027
|
+
], k);
|
|
1028
|
+
export {
|
|
1029
|
+
w as U,
|
|
1030
|
+
dt as a,
|
|
1031
|
+
x as c,
|
|
1032
|
+
H as e,
|
|
1033
|
+
at as f,
|
|
1034
|
+
c as n,
|
|
1035
|
+
St as o,
|
|
1036
|
+
bt as r
|
|
1037
|
+
};
|