@directcryptopay/sdk 0.1.0
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/README.md +357 -0
- package/dist/ConstantsUtil-B-_-u8aQ.js +6 -0
- package/dist/add-KF4m4jFK.js +19 -0
- package/dist/all-wallets-D6NAjQgX.js +10 -0
- package/dist/app-store-D7TTn-EO.js +21 -0
- package/dist/apple-DjX2E2hE.js +22 -0
- package/dist/arrow-bottom-C0YrNJYB.js +12 -0
- package/dist/arrow-bottom-circle-Dlxvx_XG.js +15 -0
- package/dist/arrow-left-x8_-lUyK.js +12 -0
- package/dist/arrow-right-BTZybj80.js +12 -0
- package/dist/arrow-top-LzH7iLCp.js +12 -0
- package/dist/bank-23jp-IV_.js +18 -0
- package/dist/browser-EjoorDid.js +18 -0
- package/dist/card-DGgWwtwC.js +18 -0
- package/dist/ccip-BMANewTU.js +150 -0
- package/dist/checkmark-B1qcQhBo.js +15 -0
- package/dist/checkmark-bold-Cyc4IEEJ.js +12 -0
- package/dist/chevron-bottom-ClHs08rB.js +12 -0
- package/dist/chevron-left-O8h_551_.js +12 -0
- package/dist/chevron-right-DP3xpyIA.js +12 -0
- package/dist/chevron-top-CuwkBUs9.js +12 -0
- package/dist/chrome-store-zfT_aJ3R.js +65 -0
- package/dist/clock-DHZqivIS.js +12 -0
- package/dist/close-Cp9rNAw4.js +12 -0
- package/dist/coinPlaceholder-U7-T1KKQ.js +12 -0
- package/dist/compass-Ds5-PRSR.js +12 -0
- package/dist/copy-Jg4HdIMf.js +19 -0
- package/dist/core/api.d.ts +30 -0
- package/dist/core/config.d.ts +59 -0
- package/dist/core/logic.d.ts +2 -0
- package/dist/core/wallet.d.ts +34 -0
- package/dist/cursor-DmMevduB.js +7 -0
- package/dist/cursor-transparent-Dn9-1SV8.js +16 -0
- package/dist/dcp-sdk.umd.js +12000 -0
- package/dist/dcp.d.ts +10 -0
- package/dist/desktop-C4udXXlZ.js +13 -0
- package/dist/disconnect-wd1BYLxt.js +12 -0
- package/dist/discord-DthxuCAP.js +21 -0
- package/dist/email-B3jSnUFE.js +696 -0
- package/dist/embedded-wallet-CJHmoBI2.js +468 -0
- package/dist/etherscan-Cjp4xfMW.js +10 -0
- package/dist/exclamation-triangle-CRNR5WOy.js +8 -0
- package/dist/extension-Cydk0mZt.js +12 -0
- package/dist/external-link-CuPTAoq9.js +12 -0
- package/dist/facebook-CghqXmdf.js +30 -0
- package/dist/farcaster-BREqMX4y.js +16 -0
- package/dist/filters-Dn_Ys7ew.js +12 -0
- package/dist/github-C-A7JmIY.js +22 -0
- package/dist/google-CCdM_naE.js +22 -0
- package/dist/hashTypedData-D2Qmzscs.js +197 -0
- package/dist/help-circle-DIH4vyj3.js +16 -0
- package/dist/id-DkJ0gBuy.js +16 -0
- package/dist/if-defined-BciplFKz.js +744 -0
- package/dist/image-qMjyiXM0.js +8 -0
- package/dist/index--3Zp0jAb.js +45 -0
- package/dist/index-1adX-Fit.js +65 -0
- package/dist/index-AvC0IGDl.js +7864 -0
- package/dist/index-B2-vKLd8.js +276 -0
- package/dist/index-B2iDt0TJ.js +146 -0
- package/dist/index-B5zkXsLJ.js +320 -0
- package/dist/index-B7K86vWu.js +1742 -0
- package/dist/index-BBkcvSiY.js +511 -0
- package/dist/index-BdjxQs66.js +181 -0
- package/dist/index-Bijd4_Ns.js +294 -0
- package/dist/index-BpXOsxzU.js +387 -0
- package/dist/index-C1QEJL-2.js +572 -0
- package/dist/index-C27dwOyE.js +243 -0
- package/dist/index-C4BX3QW8.js +58 -0
- package/dist/index-CMPIqsB1.js +170 -0
- package/dist/index-CTYngdl0.js +21991 -0
- package/dist/index-CUdQyyFn.js +51 -0
- package/dist/index-CX60z_g2.js +573 -0
- package/dist/index-CppCc1n8.js +65 -0
- package/dist/index-CqVegmN4.js +559 -0
- package/dist/index-CuiyMA8F.js +78 -0
- package/dist/index-CwB_qRfM.js +305 -0
- package/dist/index-CxOF7GqE.js +265 -0
- package/dist/index-D-IzHD_8.js +54 -0
- package/dist/index-DRNiFv9I.js +218 -0
- package/dist/index-Da8oZh8H.js +838 -0
- package/dist/index-DiHImG4L.js +44236 -0
- package/dist/index-DmOMXRG1.js +181 -0
- package/dist/index-DoSYqTQg.js +199 -0
- package/dist/index-DpHXq5_E.js +603 -0
- package/dist/index-DtCsAVBg.js +78 -0
- package/dist/index-Ij6XA6_4.js +77 -0
- package/dist/index-SzyBYfzA.js +8490 -0
- package/dist/index-eW8y-mXH.js +257 -0
- package/dist/index-fxzIDZsb.js +75 -0
- package/dist/index-lbhz9evJ.js +97 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +4 -0
- package/dist/info-DMIGgjkL.js +7 -0
- package/dist/info-circle-CJuIKZSx.js +16 -0
- package/dist/lightbulb-qFT6WEWV.js +7 -0
- package/dist/localBatchGatewayRequest-CsMVMFBc.js +91 -0
- package/dist/mail-DoYgQvOt.js +12 -0
- package/dist/mobile-URtsh7o-.js +13 -0
- package/dist/more-DoQd10TF.js +15 -0
- package/dist/network-placeholder-BBA2Ue6C.js +18 -0
- package/dist/nftPlaceholder-C9RXWz9k.js +12 -0
- package/dist/off-YcuDQczT.js +12 -0
- package/dist/onramp-BfqDIx4o.js +1279 -0
- package/dist/parseSignature-280HB24T.js +3560 -0
- package/dist/play-store-sFaloG_r.js +36 -0
- package/dist/plus-l0wekSht.js +17 -0
- package/dist/qr-code-CihrUU4G.js +10 -0
- package/dist/receive-dfY1Cu-g.js +186 -0
- package/dist/recycle-horizontal-nXu6YaPw.js +13 -0
- package/dist/ref-huAzXCX0.js +41 -0
- package/dist/refresh-D2ZbVeNC.js +12 -0
- package/dist/reown-logo-BMaTMJmc.js +16 -0
- package/dist/search-YVM9q3J-.js +12 -0
- package/dist/secp256k1-BrysY3Sv.js +1302 -0
- package/dist/secp256k1-DPQgTBwQ.js +1510 -0
- package/dist/send-BwQZPKxI.js +19 -0
- package/dist/send-GyetMVu1.js +1038 -0
- package/dist/socials-B0W91J9k.js +574 -0
- package/dist/swapHorizontal-Dy_oQEkp.js +12 -0
- package/dist/swapHorizontalBold-C4JpaMpc.js +12 -0
- package/dist/swapHorizontalMedium-D5NuVZFh.js +20 -0
- package/dist/swapHorizontalRoundedBold-Bq4P2MCj.js +12 -0
- package/dist/swapVertical-CVQ8Mg03.js +12 -0
- package/dist/swaps-CA04SSdK.js +1637 -0
- package/dist/telegram-BP4SgW_L.js +20 -0
- package/dist/three-dots-BJYGJ-dQ.js +9 -0
- package/dist/transactions-Bq-98Tsg.js +37 -0
- package/dist/twitch-DTATWo9M.js +22 -0
- package/dist/twitterIcon-D5UWPInb.js +10 -0
- package/dist/types.d.ts +128 -0
- package/dist/ui/Modal.d.ts +9 -0
- package/dist/ui/index.d.ts +6 -0
- package/dist/verify-Byvj8Wi1.js +12 -0
- package/dist/verify-filled-B40taNm0.js +12 -0
- package/dist/w3m-modal-HV6SE74G.js +1037 -0
- package/dist/wallet-Cp-6Kk88.js +12 -0
- package/dist/wallet-placeholder-C3juwA9o.js +18 -0
- package/dist/walletconnect-CRkIiLCx.js +36 -0
- package/dist/warning-circle-DtvCLwG4.js +16 -0
- package/dist/x-Cqyx5eCt.js +16 -0
- package/package.json +70 -0
|
@@ -0,0 +1,744 @@
|
|
|
1
|
+
import { dP as H, dQ as I, dR as x, cz as _, cC as z, cG as L, cA as A, cB as $, cx as O } from "./index-DiHImG4L.js";
|
|
2
|
+
const g = {
|
|
3
|
+
getSpacingStyles(t, e) {
|
|
4
|
+
if (Array.isArray(t))
|
|
5
|
+
return t[e] ? `var(--wui-spacing-${t[e]})` : void 0;
|
|
6
|
+
if (typeof t == "string")
|
|
7
|
+
return `var(--wui-spacing-${t})`;
|
|
8
|
+
},
|
|
9
|
+
getFormattedDate(t) {
|
|
10
|
+
return new Intl.DateTimeFormat("en-US", { month: "short", day: "numeric" }).format(t);
|
|
11
|
+
},
|
|
12
|
+
getHostName(t) {
|
|
13
|
+
try {
|
|
14
|
+
return new URL(t).hostname;
|
|
15
|
+
} catch {
|
|
16
|
+
return "";
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
getTruncateString({ string: t, charsStart: e, charsEnd: i, truncate: r }) {
|
|
20
|
+
return t.length <= e + i ? t : r === "end" ? `${t.substring(0, e)}...` : r === "start" ? `...${t.substring(t.length - i)}` : `${t.substring(0, Math.floor(e))}...${t.substring(t.length - Math.floor(i))}`;
|
|
21
|
+
},
|
|
22
|
+
generateAvatarColors(t) {
|
|
23
|
+
const i = t.toLowerCase().replace(/^0x/iu, "").replace(/[^a-f0-9]/gu, "").substring(0, 6).padEnd(6, "0"), r = this.hexToRgb(i), n = getComputedStyle(document.documentElement).getPropertyValue("--w3m-border-radius-master"), a = 100 - 3 * Number(n == null ? void 0 : n.replace("px", "")), s = `${a}% ${a}% at 65% 40%`, l = [];
|
|
24
|
+
for (let d = 0; d < 5; d += 1) {
|
|
25
|
+
const h = this.tintColor(r, 0.15 * d);
|
|
26
|
+
l.push(`rgb(${h[0]}, ${h[1]}, ${h[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(t) {
|
|
38
|
+
const e = parseInt(t, 16), i = e >> 16 & 255, r = e >> 8 & 255, n = e & 255;
|
|
39
|
+
return [i, r, n];
|
|
40
|
+
},
|
|
41
|
+
tintColor(t, e) {
|
|
42
|
+
const [i, r, n] = t, o = Math.round(i + (255 - i) * e), a = Math.round(r + (255 - r) * e), s = Math.round(n + (255 - n) * e);
|
|
43
|
+
return [o, a, s];
|
|
44
|
+
},
|
|
45
|
+
isNumber(t) {
|
|
46
|
+
return {
|
|
47
|
+
number: /^[0-9]+$/u
|
|
48
|
+
}.number.test(t);
|
|
49
|
+
},
|
|
50
|
+
getColorTheme(t) {
|
|
51
|
+
var e;
|
|
52
|
+
return t || (typeof window < "u" && window.matchMedia ? (e = window.matchMedia("(prefers-color-scheme: dark)")) != null && e.matches ? "dark" : "light" : "dark");
|
|
53
|
+
},
|
|
54
|
+
splitBalance(t) {
|
|
55
|
+
const e = t.split(".");
|
|
56
|
+
return e.length === 2 ? [e[0], e[1]] : ["0", "00"];
|
|
57
|
+
},
|
|
58
|
+
roundNumber(t, e, i) {
|
|
59
|
+
return t.toString().length >= e ? Number(t).toFixed(i) : t;
|
|
60
|
+
},
|
|
61
|
+
formatNumberToLocalString(t, e = 2) {
|
|
62
|
+
return t === void 0 ? "0.00" : typeof t == "number" ? t.toLocaleString("en-US", {
|
|
63
|
+
maximumFractionDigits: e,
|
|
64
|
+
minimumFractionDigits: e
|
|
65
|
+
}) : parseFloat(t).toLocaleString("en-US", {
|
|
66
|
+
maximumFractionDigits: e,
|
|
67
|
+
minimumFractionDigits: e
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
function D(t, e) {
|
|
72
|
+
const { kind: i, elements: r } = e;
|
|
73
|
+
return {
|
|
74
|
+
kind: i,
|
|
75
|
+
elements: r,
|
|
76
|
+
finisher(n) {
|
|
77
|
+
customElements.get(t) || customElements.define(t, n);
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
function F(t, e) {
|
|
82
|
+
return customElements.get(t) || customElements.define(t, e), e;
|
|
83
|
+
}
|
|
84
|
+
function T(t) {
|
|
85
|
+
return function(i) {
|
|
86
|
+
return typeof i == "function" ? F(t, i) : D(t, i);
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* @license
|
|
91
|
+
* Copyright 2017 Google LLC
|
|
92
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
93
|
+
*/
|
|
94
|
+
const G = { attribute: !0, type: String, converter: I, reflect: !1, hasChanged: H }, N = (t = G, e, i) => {
|
|
95
|
+
const { kind: r, metadata: n } = i;
|
|
96
|
+
let o = globalThis.litPropertyMetadata.get(n);
|
|
97
|
+
if (o === void 0 && globalThis.litPropertyMetadata.set(n, o = /* @__PURE__ */ new Map()), r === "setter" && ((t = Object.create(t)).wrapped = !0), o.set(i.name, t), r === "accessor") {
|
|
98
|
+
const { name: a } = i;
|
|
99
|
+
return { set(s) {
|
|
100
|
+
const l = e.get.call(this);
|
|
101
|
+
e.set.call(this, s), this.requestUpdate(a, l, t);
|
|
102
|
+
}, init(s) {
|
|
103
|
+
return s !== void 0 && this.C(a, void 0, t, s), s;
|
|
104
|
+
} };
|
|
105
|
+
}
|
|
106
|
+
if (r === "setter") {
|
|
107
|
+
const { name: a } = i;
|
|
108
|
+
return function(s) {
|
|
109
|
+
const l = this[a];
|
|
110
|
+
e.call(this, s), this.requestUpdate(a, l, t);
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
throw Error("Unsupported decorator location: " + r);
|
|
114
|
+
};
|
|
115
|
+
function c(t) {
|
|
116
|
+
return (e, i) => typeof i == "object" ? N(t, e, i) : ((r, n, o) => {
|
|
117
|
+
const a = n.hasOwnProperty(o);
|
|
118
|
+
return n.constructor.createProperty(o, r), a ? Object.getOwnPropertyDescriptor(n, o) : void 0;
|
|
119
|
+
})(t, e, i);
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* @license
|
|
123
|
+
* Copyright 2017 Google LLC
|
|
124
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
125
|
+
*/
|
|
126
|
+
function st(t) {
|
|
127
|
+
return c({ ...t, state: !0, attribute: !1 });
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* @license
|
|
131
|
+
* Copyright 2020 Google LLC
|
|
132
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
133
|
+
*/
|
|
134
|
+
const E = (t) => t === null || typeof t != "object" && typeof t != "function", W = (t) => t.strings === void 0;
|
|
135
|
+
/**
|
|
136
|
+
* @license
|
|
137
|
+
* Copyright 2017 Google LLC
|
|
138
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
139
|
+
*/
|
|
140
|
+
const B = { ATTRIBUTE: 1, CHILD: 2 }, j = (t) => (...e) => ({ _$litDirective$: t, values: e });
|
|
141
|
+
let M = class {
|
|
142
|
+
constructor(e) {
|
|
143
|
+
}
|
|
144
|
+
get _$AU() {
|
|
145
|
+
return this._$AM._$AU;
|
|
146
|
+
}
|
|
147
|
+
_$AT(e, i, r) {
|
|
148
|
+
this._$Ct = e, this._$AM = i, this._$Ci = r;
|
|
149
|
+
}
|
|
150
|
+
_$AS(e, i) {
|
|
151
|
+
return this.update(e, i);
|
|
152
|
+
}
|
|
153
|
+
update(e, i) {
|
|
154
|
+
return this.render(...i);
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
/**
|
|
158
|
+
* @license
|
|
159
|
+
* Copyright 2017 Google LLC
|
|
160
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
161
|
+
*/
|
|
162
|
+
const m = (t, e) => {
|
|
163
|
+
var r;
|
|
164
|
+
const i = t._$AN;
|
|
165
|
+
if (i === void 0) return !1;
|
|
166
|
+
for (const n of i) (r = n._$AO) == null || r.call(n, e, !1), m(n, e);
|
|
167
|
+
return !0;
|
|
168
|
+
}, S = (t) => {
|
|
169
|
+
let e, i;
|
|
170
|
+
do {
|
|
171
|
+
if ((e = t._$AM) === void 0) break;
|
|
172
|
+
i = e._$AN, i.delete(t), t = e;
|
|
173
|
+
} while ((i == null ? void 0 : i.size) === 0);
|
|
174
|
+
}, U = (t) => {
|
|
175
|
+
for (let e; e = t._$AM; t = e) {
|
|
176
|
+
let i = e._$AN;
|
|
177
|
+
if (i === void 0) e._$AN = i = /* @__PURE__ */ new Set();
|
|
178
|
+
else if (i.has(t)) break;
|
|
179
|
+
i.add(t), K(e);
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
function V(t) {
|
|
183
|
+
this._$AN !== void 0 ? (S(this), this._$AM = t, U(this)) : this._$AM = t;
|
|
184
|
+
}
|
|
185
|
+
function q(t, e = !1, i = 0) {
|
|
186
|
+
const r = this._$AH, n = this._$AN;
|
|
187
|
+
if (n !== void 0 && n.size !== 0) if (e) if (Array.isArray(r)) for (let o = i; o < r.length; o++) m(r[o], !1), S(r[o]);
|
|
188
|
+
else r != null && (m(r, !1), S(r));
|
|
189
|
+
else m(this, t);
|
|
190
|
+
}
|
|
191
|
+
const K = (t) => {
|
|
192
|
+
t.type == B.CHILD && (t._$AP ?? (t._$AP = q), t._$AQ ?? (t._$AQ = V));
|
|
193
|
+
};
|
|
194
|
+
class X extends M {
|
|
195
|
+
constructor() {
|
|
196
|
+
super(...arguments), this._$AN = void 0;
|
|
197
|
+
}
|
|
198
|
+
_$AT(e, i, r) {
|
|
199
|
+
super._$AT(e, i, r), U(this), this.isConnected = e._$AU;
|
|
200
|
+
}
|
|
201
|
+
_$AO(e, i = !0) {
|
|
202
|
+
var r, n;
|
|
203
|
+
e !== this.isConnected && (this.isConnected = e, e ? (r = this.reconnected) == null || r.call(this) : (n = this.disconnected) == null || n.call(this)), i && (m(this, e), S(this));
|
|
204
|
+
}
|
|
205
|
+
setValue(e) {
|
|
206
|
+
if (W(this._$Ct)) this._$Ct._$AI(e, this);
|
|
207
|
+
else {
|
|
208
|
+
const i = [...this._$Ct._$AH];
|
|
209
|
+
i[this._$Ci] = e, this._$Ct._$AI(i, this, 0);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
disconnected() {
|
|
213
|
+
}
|
|
214
|
+
reconnected() {
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* @license
|
|
219
|
+
* Copyright 2021 Google LLC
|
|
220
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
221
|
+
*/
|
|
222
|
+
class Y {
|
|
223
|
+
constructor(e) {
|
|
224
|
+
this.G = e;
|
|
225
|
+
}
|
|
226
|
+
disconnect() {
|
|
227
|
+
this.G = void 0;
|
|
228
|
+
}
|
|
229
|
+
reconnect(e) {
|
|
230
|
+
this.G = e;
|
|
231
|
+
}
|
|
232
|
+
deref() {
|
|
233
|
+
return this.G;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
class Z {
|
|
237
|
+
constructor() {
|
|
238
|
+
this.Y = void 0, this.Z = void 0;
|
|
239
|
+
}
|
|
240
|
+
get() {
|
|
241
|
+
return this.Y;
|
|
242
|
+
}
|
|
243
|
+
pause() {
|
|
244
|
+
this.Y ?? (this.Y = new Promise(((e) => this.Z = e)));
|
|
245
|
+
}
|
|
246
|
+
resume() {
|
|
247
|
+
var e;
|
|
248
|
+
(e = this.Z) == null || e.call(this), this.Y = this.Z = void 0;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* @license
|
|
253
|
+
* Copyright 2017 Google LLC
|
|
254
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
255
|
+
*/
|
|
256
|
+
const k = (t) => !E(t) && typeof t.then == "function", P = 1073741823;
|
|
257
|
+
class Q extends X {
|
|
258
|
+
constructor() {
|
|
259
|
+
super(...arguments), this._$Cwt = P, this._$Cbt = [], this._$CK = new Y(this), this._$CX = new Z();
|
|
260
|
+
}
|
|
261
|
+
render(...e) {
|
|
262
|
+
return e.find(((i) => !k(i))) ?? x;
|
|
263
|
+
}
|
|
264
|
+
update(e, i) {
|
|
265
|
+
const r = this._$Cbt;
|
|
266
|
+
let n = r.length;
|
|
267
|
+
this._$Cbt = i;
|
|
268
|
+
const o = this._$CK, a = this._$CX;
|
|
269
|
+
this.isConnected || this.disconnected();
|
|
270
|
+
for (let s = 0; s < i.length && !(s > this._$Cwt); s++) {
|
|
271
|
+
const l = i[s];
|
|
272
|
+
if (!k(l)) return this._$Cwt = s, l;
|
|
273
|
+
s < n && l === r[s] || (this._$Cwt = P, n = 0, Promise.resolve(l).then((async (d) => {
|
|
274
|
+
for (; a.get(); ) await a.get();
|
|
275
|
+
const h = o.deref();
|
|
276
|
+
if (h !== void 0) {
|
|
277
|
+
const b = h._$Cbt.indexOf(l);
|
|
278
|
+
b > -1 && b < h._$Cwt && (h._$Cwt = b, h.setValue(d));
|
|
279
|
+
}
|
|
280
|
+
})));
|
|
281
|
+
}
|
|
282
|
+
return x;
|
|
283
|
+
}
|
|
284
|
+
disconnected() {
|
|
285
|
+
this._$CK.disconnect(), this._$CX.pause();
|
|
286
|
+
}
|
|
287
|
+
reconnected() {
|
|
288
|
+
this._$CK.reconnect(this), this._$CX.resume();
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
const J = j(Q);
|
|
292
|
+
class tt {
|
|
293
|
+
constructor() {
|
|
294
|
+
this.cache = /* @__PURE__ */ new Map();
|
|
295
|
+
}
|
|
296
|
+
set(e, i) {
|
|
297
|
+
this.cache.set(e, i);
|
|
298
|
+
}
|
|
299
|
+
get(e) {
|
|
300
|
+
return this.cache.get(e);
|
|
301
|
+
}
|
|
302
|
+
has(e) {
|
|
303
|
+
return this.cache.has(e);
|
|
304
|
+
}
|
|
305
|
+
delete(e) {
|
|
306
|
+
this.cache.delete(e);
|
|
307
|
+
}
|
|
308
|
+
clear() {
|
|
309
|
+
this.cache.clear();
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
const C = new tt(), et = _`
|
|
313
|
+
:host {
|
|
314
|
+
display: flex;
|
|
315
|
+
aspect-ratio: var(--local-aspect-ratio);
|
|
316
|
+
color: var(--local-color);
|
|
317
|
+
width: var(--local-width);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
svg {
|
|
321
|
+
width: inherit;
|
|
322
|
+
height: inherit;
|
|
323
|
+
object-fit: contain;
|
|
324
|
+
object-position: center;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.fallback {
|
|
328
|
+
width: var(--local-width);
|
|
329
|
+
height: var(--local-height);
|
|
330
|
+
}
|
|
331
|
+
`;
|
|
332
|
+
var v = function(t, e, i, r) {
|
|
333
|
+
var n = arguments.length, o = n < 3 ? e : r === null ? r = Object.getOwnPropertyDescriptor(e, i) : r, a;
|
|
334
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(t, e, i, r);
|
|
335
|
+
else for (var s = t.length - 1; s >= 0; s--) (a = t[s]) && (o = (n < 3 ? a(o) : n > 3 ? a(e, i, o) : a(e, i)) || o);
|
|
336
|
+
return n > 3 && o && Object.defineProperty(e, i, o), o;
|
|
337
|
+
};
|
|
338
|
+
const R = {
|
|
339
|
+
add: async () => (await import("./add-KF4m4jFK.js")).addSvg,
|
|
340
|
+
allWallets: async () => (await import("./all-wallets-D6NAjQgX.js")).allWalletsSvg,
|
|
341
|
+
arrowBottomCircle: async () => (await import("./arrow-bottom-circle-Dlxvx_XG.js")).arrowBottomCircleSvg,
|
|
342
|
+
appStore: async () => (await import("./app-store-D7TTn-EO.js")).appStoreSvg,
|
|
343
|
+
apple: async () => (await import("./apple-DjX2E2hE.js")).appleSvg,
|
|
344
|
+
arrowBottom: async () => (await import("./arrow-bottom-C0YrNJYB.js")).arrowBottomSvg,
|
|
345
|
+
arrowLeft: async () => (await import("./arrow-left-x8_-lUyK.js")).arrowLeftSvg,
|
|
346
|
+
arrowRight: async () => (await import("./arrow-right-BTZybj80.js")).arrowRightSvg,
|
|
347
|
+
arrowTop: async () => (await import("./arrow-top-LzH7iLCp.js")).arrowTopSvg,
|
|
348
|
+
bank: async () => (await import("./bank-23jp-IV_.js")).bankSvg,
|
|
349
|
+
browser: async () => (await import("./browser-EjoorDid.js")).browserSvg,
|
|
350
|
+
card: async () => (await import("./card-DGgWwtwC.js")).cardSvg,
|
|
351
|
+
checkmark: async () => (await import("./checkmark-B1qcQhBo.js")).checkmarkSvg,
|
|
352
|
+
checkmarkBold: async () => (await import("./checkmark-bold-Cyc4IEEJ.js")).checkmarkBoldSvg,
|
|
353
|
+
chevronBottom: async () => (await import("./chevron-bottom-ClHs08rB.js")).chevronBottomSvg,
|
|
354
|
+
chevronLeft: async () => (await import("./chevron-left-O8h_551_.js")).chevronLeftSvg,
|
|
355
|
+
chevronRight: async () => (await import("./chevron-right-DP3xpyIA.js")).chevronRightSvg,
|
|
356
|
+
chevronTop: async () => (await import("./chevron-top-CuwkBUs9.js")).chevronTopSvg,
|
|
357
|
+
chromeStore: async () => (await import("./chrome-store-zfT_aJ3R.js")).chromeStoreSvg,
|
|
358
|
+
clock: async () => (await import("./clock-DHZqivIS.js")).clockSvg,
|
|
359
|
+
close: async () => (await import("./close-Cp9rNAw4.js")).closeSvg,
|
|
360
|
+
compass: async () => (await import("./compass-Ds5-PRSR.js")).compassSvg,
|
|
361
|
+
coinPlaceholder: async () => (await import("./coinPlaceholder-U7-T1KKQ.js")).coinPlaceholderSvg,
|
|
362
|
+
copy: async () => (await import("./copy-Jg4HdIMf.js")).copySvg,
|
|
363
|
+
cursor: async () => (await import("./cursor-DmMevduB.js")).cursorSvg,
|
|
364
|
+
cursorTransparent: async () => (await import("./cursor-transparent-Dn9-1SV8.js")).cursorTransparentSvg,
|
|
365
|
+
desktop: async () => (await import("./desktop-C4udXXlZ.js")).desktopSvg,
|
|
366
|
+
disconnect: async () => (await import("./disconnect-wd1BYLxt.js")).disconnectSvg,
|
|
367
|
+
discord: async () => (await import("./discord-DthxuCAP.js")).discordSvg,
|
|
368
|
+
etherscan: async () => (await import("./etherscan-Cjp4xfMW.js")).etherscanSvg,
|
|
369
|
+
extension: async () => (await import("./extension-Cydk0mZt.js")).extensionSvg,
|
|
370
|
+
externalLink: async () => (await import("./external-link-CuPTAoq9.js")).externalLinkSvg,
|
|
371
|
+
facebook: async () => (await import("./facebook-CghqXmdf.js")).facebookSvg,
|
|
372
|
+
farcaster: async () => (await import("./farcaster-BREqMX4y.js")).farcasterSvg,
|
|
373
|
+
filters: async () => (await import("./filters-Dn_Ys7ew.js")).filtersSvg,
|
|
374
|
+
github: async () => (await import("./github-C-A7JmIY.js")).githubSvg,
|
|
375
|
+
google: async () => (await import("./google-CCdM_naE.js")).googleSvg,
|
|
376
|
+
helpCircle: async () => (await import("./help-circle-DIH4vyj3.js")).helpCircleSvg,
|
|
377
|
+
image: async () => (await import("./image-qMjyiXM0.js")).imageSvg,
|
|
378
|
+
id: async () => (await import("./id-DkJ0gBuy.js")).idSvg,
|
|
379
|
+
infoCircle: async () => (await import("./info-circle-CJuIKZSx.js")).infoCircleSvg,
|
|
380
|
+
lightbulb: async () => (await import("./lightbulb-qFT6WEWV.js")).lightbulbSvg,
|
|
381
|
+
mail: async () => (await import("./mail-DoYgQvOt.js")).mailSvg,
|
|
382
|
+
mobile: async () => (await import("./mobile-URtsh7o-.js")).mobileSvg,
|
|
383
|
+
more: async () => (await import("./more-DoQd10TF.js")).moreSvg,
|
|
384
|
+
networkPlaceholder: async () => (await import("./network-placeholder-BBA2Ue6C.js")).networkPlaceholderSvg,
|
|
385
|
+
nftPlaceholder: async () => (await import("./nftPlaceholder-C9RXWz9k.js")).nftPlaceholderSvg,
|
|
386
|
+
off: async () => (await import("./off-YcuDQczT.js")).offSvg,
|
|
387
|
+
playStore: async () => (await import("./play-store-sFaloG_r.js")).playStoreSvg,
|
|
388
|
+
plus: async () => (await import("./plus-l0wekSht.js")).plusSvg,
|
|
389
|
+
qrCode: async () => (await import("./qr-code-CihrUU4G.js")).qrCodeIcon,
|
|
390
|
+
recycleHorizontal: async () => (await import("./recycle-horizontal-nXu6YaPw.js")).recycleHorizontalSvg,
|
|
391
|
+
refresh: async () => (await import("./refresh-D2ZbVeNC.js")).refreshSvg,
|
|
392
|
+
search: async () => (await import("./search-YVM9q3J-.js")).searchSvg,
|
|
393
|
+
send: async () => (await import("./send-BwQZPKxI.js")).sendSvg,
|
|
394
|
+
swapHorizontal: async () => (await import("./swapHorizontal-Dy_oQEkp.js")).swapHorizontalSvg,
|
|
395
|
+
swapHorizontalMedium: async () => (await import("./swapHorizontalMedium-D5NuVZFh.js")).swapHorizontalMediumSvg,
|
|
396
|
+
swapHorizontalBold: async () => (await import("./swapHorizontalBold-C4JpaMpc.js")).swapHorizontalBoldSvg,
|
|
397
|
+
swapHorizontalRoundedBold: async () => (await import("./swapHorizontalRoundedBold-Bq4P2MCj.js")).swapHorizontalRoundedBoldSvg,
|
|
398
|
+
swapVertical: async () => (await import("./swapVertical-CVQ8Mg03.js")).swapVerticalSvg,
|
|
399
|
+
telegram: async () => (await import("./telegram-BP4SgW_L.js")).telegramSvg,
|
|
400
|
+
threeDots: async () => (await import("./three-dots-BJYGJ-dQ.js")).threeDotsSvg,
|
|
401
|
+
twitch: async () => (await import("./twitch-DTATWo9M.js")).twitchSvg,
|
|
402
|
+
twitter: async () => (await import("./x-Cqyx5eCt.js")).xSvg,
|
|
403
|
+
twitterIcon: async () => (await import("./twitterIcon-D5UWPInb.js")).twitterIconSvg,
|
|
404
|
+
verify: async () => (await import("./verify-Byvj8Wi1.js")).verifySvg,
|
|
405
|
+
verifyFilled: async () => (await import("./verify-filled-B40taNm0.js")).verifyFilledSvg,
|
|
406
|
+
wallet: async () => (await import("./wallet-Cp-6Kk88.js")).walletSvg,
|
|
407
|
+
walletConnect: async () => (await import("./walletconnect-CRkIiLCx.js")).walletConnectSvg,
|
|
408
|
+
walletConnectLightBrown: async () => (await import("./walletconnect-CRkIiLCx.js")).walletConnectLightBrownSvg,
|
|
409
|
+
walletConnectBrown: async () => (await import("./walletconnect-CRkIiLCx.js")).walletConnectBrownSvg,
|
|
410
|
+
walletPlaceholder: async () => (await import("./wallet-placeholder-C3juwA9o.js")).walletPlaceholderSvg,
|
|
411
|
+
warningCircle: async () => (await import("./warning-circle-DtvCLwG4.js")).warningCircleSvg,
|
|
412
|
+
x: async () => (await import("./x-Cqyx5eCt.js")).xSvg,
|
|
413
|
+
info: async () => (await import("./info-DMIGgjkL.js")).infoSvg,
|
|
414
|
+
exclamationTriangle: async () => (await import("./exclamation-triangle-CRNR5WOy.js")).exclamationTriangleSvg,
|
|
415
|
+
reown: async () => (await import("./reown-logo-BMaTMJmc.js")).reownSvg
|
|
416
|
+
};
|
|
417
|
+
async function it(t) {
|
|
418
|
+
if (C.has(t))
|
|
419
|
+
return C.get(t);
|
|
420
|
+
const i = (R[t] ?? R.copy)();
|
|
421
|
+
return C.set(t, i), i;
|
|
422
|
+
}
|
|
423
|
+
let w = class extends A {
|
|
424
|
+
constructor() {
|
|
425
|
+
super(...arguments), this.size = "md", this.name = "copy", this.color = "fg-300", this.aspectRatio = "1 / 1";
|
|
426
|
+
}
|
|
427
|
+
render() {
|
|
428
|
+
return this.style.cssText = `
|
|
429
|
+
--local-color: ${`var(--wui-color-${this.color});`}
|
|
430
|
+
--local-width: ${`var(--wui-icon-size-${this.size});`}
|
|
431
|
+
--local-aspect-ratio: ${this.aspectRatio}
|
|
432
|
+
`, $`${J(it(this.name), $`<div class="fallback"></div>`)}`;
|
|
433
|
+
}
|
|
434
|
+
};
|
|
435
|
+
w.styles = [z, L, et];
|
|
436
|
+
v([
|
|
437
|
+
c()
|
|
438
|
+
], w.prototype, "size", void 0);
|
|
439
|
+
v([
|
|
440
|
+
c()
|
|
441
|
+
], w.prototype, "name", void 0);
|
|
442
|
+
v([
|
|
443
|
+
c()
|
|
444
|
+
], w.prototype, "color", void 0);
|
|
445
|
+
v([
|
|
446
|
+
c()
|
|
447
|
+
], w.prototype, "aspectRatio", void 0);
|
|
448
|
+
w = v([
|
|
449
|
+
T("wui-icon")
|
|
450
|
+
], w);
|
|
451
|
+
/**
|
|
452
|
+
* @license
|
|
453
|
+
* Copyright 2018 Google LLC
|
|
454
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
455
|
+
*/
|
|
456
|
+
const ot = j(class extends M {
|
|
457
|
+
constructor(t) {
|
|
458
|
+
var e;
|
|
459
|
+
if (super(t), t.type !== B.ATTRIBUTE || t.name !== "class" || ((e = t.strings) == null ? void 0 : e.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
460
|
+
}
|
|
461
|
+
render(t) {
|
|
462
|
+
return " " + Object.keys(t).filter(((e) => t[e])).join(" ") + " ";
|
|
463
|
+
}
|
|
464
|
+
update(t, [e]) {
|
|
465
|
+
var r, n;
|
|
466
|
+
if (this.st === void 0) {
|
|
467
|
+
this.st = /* @__PURE__ */ new Set(), t.strings !== void 0 && (this.nt = new Set(t.strings.join(" ").split(/\s/).filter(((o) => o !== ""))));
|
|
468
|
+
for (const o in e) e[o] && !((r = this.nt) != null && r.has(o)) && this.st.add(o);
|
|
469
|
+
return this.render(e);
|
|
470
|
+
}
|
|
471
|
+
const i = t.element.classList;
|
|
472
|
+
for (const o of this.st) o in e || (i.remove(o), this.st.delete(o));
|
|
473
|
+
for (const o in e) {
|
|
474
|
+
const a = !!e[o];
|
|
475
|
+
a === this.st.has(o) || (n = this.nt) != null && n.has(o) || (a ? (i.add(o), this.st.add(o)) : (i.remove(o), this.st.delete(o)));
|
|
476
|
+
}
|
|
477
|
+
return x;
|
|
478
|
+
}
|
|
479
|
+
}), rt = _`
|
|
480
|
+
:host {
|
|
481
|
+
display: inline-flex !important;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
slot {
|
|
485
|
+
width: 100%;
|
|
486
|
+
display: inline-block;
|
|
487
|
+
font-style: normal;
|
|
488
|
+
font-family: var(--wui-font-family);
|
|
489
|
+
font-feature-settings:
|
|
490
|
+
'tnum' on,
|
|
491
|
+
'lnum' on,
|
|
492
|
+
'case' on;
|
|
493
|
+
line-height: 130%;
|
|
494
|
+
font-weight: var(--wui-font-weight-regular);
|
|
495
|
+
overflow: inherit;
|
|
496
|
+
text-overflow: inherit;
|
|
497
|
+
text-align: var(--local-align);
|
|
498
|
+
color: var(--local-color);
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
.wui-line-clamp-1 {
|
|
502
|
+
overflow: hidden;
|
|
503
|
+
display: -webkit-box;
|
|
504
|
+
-webkit-box-orient: vertical;
|
|
505
|
+
-webkit-line-clamp: 1;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
.wui-line-clamp-2 {
|
|
509
|
+
overflow: hidden;
|
|
510
|
+
display: -webkit-box;
|
|
511
|
+
-webkit-box-orient: vertical;
|
|
512
|
+
-webkit-line-clamp: 2;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
.wui-font-medium-400 {
|
|
516
|
+
font-size: var(--wui-font-size-medium);
|
|
517
|
+
font-weight: var(--wui-font-weight-light);
|
|
518
|
+
letter-spacing: var(--wui-letter-spacing-medium);
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
.wui-font-medium-600 {
|
|
522
|
+
font-size: var(--wui-font-size-medium);
|
|
523
|
+
letter-spacing: var(--wui-letter-spacing-medium);
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
.wui-font-title-600 {
|
|
527
|
+
font-size: var(--wui-font-size-title);
|
|
528
|
+
letter-spacing: var(--wui-letter-spacing-title);
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
.wui-font-title-6-600 {
|
|
532
|
+
font-size: var(--wui-font-size-title-6);
|
|
533
|
+
letter-spacing: var(--wui-letter-spacing-title-6);
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
.wui-font-mini-700 {
|
|
537
|
+
font-size: var(--wui-font-size-mini);
|
|
538
|
+
letter-spacing: var(--wui-letter-spacing-mini);
|
|
539
|
+
text-transform: uppercase;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
.wui-font-large-500,
|
|
543
|
+
.wui-font-large-600,
|
|
544
|
+
.wui-font-large-700 {
|
|
545
|
+
font-size: var(--wui-font-size-large);
|
|
546
|
+
letter-spacing: var(--wui-letter-spacing-large);
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
.wui-font-2xl-500,
|
|
550
|
+
.wui-font-2xl-600,
|
|
551
|
+
.wui-font-2xl-700 {
|
|
552
|
+
font-size: var(--wui-font-size-2xl);
|
|
553
|
+
letter-spacing: var(--wui-letter-spacing-2xl);
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
.wui-font-paragraph-400,
|
|
557
|
+
.wui-font-paragraph-500,
|
|
558
|
+
.wui-font-paragraph-600,
|
|
559
|
+
.wui-font-paragraph-700 {
|
|
560
|
+
font-size: var(--wui-font-size-paragraph);
|
|
561
|
+
letter-spacing: var(--wui-letter-spacing-paragraph);
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
.wui-font-small-400,
|
|
565
|
+
.wui-font-small-500,
|
|
566
|
+
.wui-font-small-600 {
|
|
567
|
+
font-size: var(--wui-font-size-small);
|
|
568
|
+
letter-spacing: var(--wui-letter-spacing-small);
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
.wui-font-tiny-400,
|
|
572
|
+
.wui-font-tiny-500,
|
|
573
|
+
.wui-font-tiny-600 {
|
|
574
|
+
font-size: var(--wui-font-size-tiny);
|
|
575
|
+
letter-spacing: var(--wui-letter-spacing-tiny);
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
.wui-font-micro-700,
|
|
579
|
+
.wui-font-micro-600 {
|
|
580
|
+
font-size: var(--wui-font-size-micro);
|
|
581
|
+
letter-spacing: var(--wui-letter-spacing-micro);
|
|
582
|
+
text-transform: uppercase;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
.wui-font-tiny-400,
|
|
586
|
+
.wui-font-small-400,
|
|
587
|
+
.wui-font-medium-400,
|
|
588
|
+
.wui-font-paragraph-400 {
|
|
589
|
+
font-weight: var(--wui-font-weight-light);
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
.wui-font-large-700,
|
|
593
|
+
.wui-font-paragraph-700,
|
|
594
|
+
.wui-font-micro-700,
|
|
595
|
+
.wui-font-mini-700 {
|
|
596
|
+
font-weight: var(--wui-font-weight-bold);
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
.wui-font-medium-600,
|
|
600
|
+
.wui-font-medium-title-600,
|
|
601
|
+
.wui-font-title-6-600,
|
|
602
|
+
.wui-font-large-600,
|
|
603
|
+
.wui-font-paragraph-600,
|
|
604
|
+
.wui-font-small-600,
|
|
605
|
+
.wui-font-tiny-600,
|
|
606
|
+
.wui-font-micro-600 {
|
|
607
|
+
font-weight: var(--wui-font-weight-medium);
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
:host([disabled]) {
|
|
611
|
+
opacity: 0.4;
|
|
612
|
+
}
|
|
613
|
+
`;
|
|
614
|
+
var y = function(t, e, i, r) {
|
|
615
|
+
var n = arguments.length, o = n < 3 ? e : r === null ? r = Object.getOwnPropertyDescriptor(e, i) : r, a;
|
|
616
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(t, e, i, r);
|
|
617
|
+
else for (var s = t.length - 1; s >= 0; s--) (a = t[s]) && (o = (n < 3 ? a(o) : n > 3 ? a(e, i, o) : a(e, i)) || o);
|
|
618
|
+
return n > 3 && o && Object.defineProperty(e, i, o), o;
|
|
619
|
+
};
|
|
620
|
+
let f = class extends A {
|
|
621
|
+
constructor() {
|
|
622
|
+
super(...arguments), this.variant = "paragraph-500", this.color = "fg-300", this.align = "left", this.lineClamp = void 0;
|
|
623
|
+
}
|
|
624
|
+
render() {
|
|
625
|
+
const e = {
|
|
626
|
+
[`wui-font-${this.variant}`]: !0,
|
|
627
|
+
[`wui-color-${this.color}`]: !0,
|
|
628
|
+
[`wui-line-clamp-${this.lineClamp}`]: !!this.lineClamp
|
|
629
|
+
};
|
|
630
|
+
return this.style.cssText = `
|
|
631
|
+
--local-align: ${this.align};
|
|
632
|
+
--local-color: var(--wui-color-${this.color});
|
|
633
|
+
`, $`<slot class=${ot(e)}></slot>`;
|
|
634
|
+
}
|
|
635
|
+
};
|
|
636
|
+
f.styles = [z, rt];
|
|
637
|
+
y([
|
|
638
|
+
c()
|
|
639
|
+
], f.prototype, "variant", void 0);
|
|
640
|
+
y([
|
|
641
|
+
c()
|
|
642
|
+
], f.prototype, "color", void 0);
|
|
643
|
+
y([
|
|
644
|
+
c()
|
|
645
|
+
], f.prototype, "align", void 0);
|
|
646
|
+
y([
|
|
647
|
+
c()
|
|
648
|
+
], f.prototype, "lineClamp", void 0);
|
|
649
|
+
f = y([
|
|
650
|
+
T("wui-text")
|
|
651
|
+
], f);
|
|
652
|
+
const nt = _`
|
|
653
|
+
:host {
|
|
654
|
+
display: flex;
|
|
655
|
+
width: inherit;
|
|
656
|
+
height: inherit;
|
|
657
|
+
}
|
|
658
|
+
`;
|
|
659
|
+
var u = function(t, e, i, r) {
|
|
660
|
+
var n = arguments.length, o = n < 3 ? e : r === null ? r = Object.getOwnPropertyDescriptor(e, i) : r, a;
|
|
661
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(t, e, i, r);
|
|
662
|
+
else for (var s = t.length - 1; s >= 0; s--) (a = t[s]) && (o = (n < 3 ? a(o) : n > 3 ? a(e, i, o) : a(e, i)) || o);
|
|
663
|
+
return n > 3 && o && Object.defineProperty(e, i, o), o;
|
|
664
|
+
};
|
|
665
|
+
let p = class extends A {
|
|
666
|
+
render() {
|
|
667
|
+
return this.style.cssText = `
|
|
668
|
+
flex-direction: ${this.flexDirection};
|
|
669
|
+
flex-wrap: ${this.flexWrap};
|
|
670
|
+
flex-basis: ${this.flexBasis};
|
|
671
|
+
flex-grow: ${this.flexGrow};
|
|
672
|
+
flex-shrink: ${this.flexShrink};
|
|
673
|
+
align-items: ${this.alignItems};
|
|
674
|
+
justify-content: ${this.justifyContent};
|
|
675
|
+
column-gap: ${this.columnGap && `var(--wui-spacing-${this.columnGap})`};
|
|
676
|
+
row-gap: ${this.rowGap && `var(--wui-spacing-${this.rowGap})`};
|
|
677
|
+
gap: ${this.gap && `var(--wui-spacing-${this.gap})`};
|
|
678
|
+
padding-top: ${this.padding && g.getSpacingStyles(this.padding, 0)};
|
|
679
|
+
padding-right: ${this.padding && g.getSpacingStyles(this.padding, 1)};
|
|
680
|
+
padding-bottom: ${this.padding && g.getSpacingStyles(this.padding, 2)};
|
|
681
|
+
padding-left: ${this.padding && g.getSpacingStyles(this.padding, 3)};
|
|
682
|
+
margin-top: ${this.margin && g.getSpacingStyles(this.margin, 0)};
|
|
683
|
+
margin-right: ${this.margin && g.getSpacingStyles(this.margin, 1)};
|
|
684
|
+
margin-bottom: ${this.margin && g.getSpacingStyles(this.margin, 2)};
|
|
685
|
+
margin-left: ${this.margin && g.getSpacingStyles(this.margin, 3)};
|
|
686
|
+
`, $`<slot></slot>`;
|
|
687
|
+
}
|
|
688
|
+
};
|
|
689
|
+
p.styles = [z, nt];
|
|
690
|
+
u([
|
|
691
|
+
c()
|
|
692
|
+
], p.prototype, "flexDirection", void 0);
|
|
693
|
+
u([
|
|
694
|
+
c()
|
|
695
|
+
], p.prototype, "flexWrap", void 0);
|
|
696
|
+
u([
|
|
697
|
+
c()
|
|
698
|
+
], p.prototype, "flexBasis", void 0);
|
|
699
|
+
u([
|
|
700
|
+
c()
|
|
701
|
+
], p.prototype, "flexGrow", void 0);
|
|
702
|
+
u([
|
|
703
|
+
c()
|
|
704
|
+
], p.prototype, "flexShrink", void 0);
|
|
705
|
+
u([
|
|
706
|
+
c()
|
|
707
|
+
], p.prototype, "alignItems", void 0);
|
|
708
|
+
u([
|
|
709
|
+
c()
|
|
710
|
+
], p.prototype, "justifyContent", void 0);
|
|
711
|
+
u([
|
|
712
|
+
c()
|
|
713
|
+
], p.prototype, "columnGap", void 0);
|
|
714
|
+
u([
|
|
715
|
+
c()
|
|
716
|
+
], p.prototype, "rowGap", void 0);
|
|
717
|
+
u([
|
|
718
|
+
c()
|
|
719
|
+
], p.prototype, "gap", void 0);
|
|
720
|
+
u([
|
|
721
|
+
c()
|
|
722
|
+
], p.prototype, "padding", void 0);
|
|
723
|
+
u([
|
|
724
|
+
c()
|
|
725
|
+
], p.prototype, "margin", void 0);
|
|
726
|
+
p = u([
|
|
727
|
+
T("wui-flex")
|
|
728
|
+
], p);
|
|
729
|
+
/**
|
|
730
|
+
* @license
|
|
731
|
+
* Copyright 2018 Google LLC
|
|
732
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
733
|
+
*/
|
|
734
|
+
const ht = (t) => t ?? O;
|
|
735
|
+
export {
|
|
736
|
+
g as U,
|
|
737
|
+
ot as a,
|
|
738
|
+
T as c,
|
|
739
|
+
j as e,
|
|
740
|
+
X as f,
|
|
741
|
+
c as n,
|
|
742
|
+
ht as o,
|
|
743
|
+
st as r
|
|
744
|
+
};
|