@tempots/beatui 0.61.5 → 0.61.6
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/index.cjs.js +4 -4
- package/dist/index.es.js +1025 -1004
- package/dist/json-schema/index.cjs.js +2 -2
- package/dist/json-schema/index.es.js +2 -2
- package/dist/utils-Bzo19jHw.cjs +1 -0
- package/dist/{utils-DplD1EWi.js → utils-sMnCjVjS.js} +594 -582
- package/package.json +1 -1
- package/dist/utils-DKHQo6zE.cjs +0 -1
package/dist/index.es.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { prop as
|
|
2
|
-
import { Use as
|
|
3
|
-
import { PopOver as Sn, ElementRect as Be, WindowSize as Cn, Query as Ut, Location as Ne, NavigationService as
|
|
4
|
-
import { i as
|
|
5
|
-
import { x as Do, T as Ao, l as Vo, d as Bo, f as
|
|
1
|
+
import { prop as G, html as d, attr as o, computedOf as T, Fragment as R, OnDispose as oe, style as S, on as L, WithElement as ne, When as Q, Value as v, Use as ae, Empty as W, input as pe, emitValue as X, aria as E, OneOfValue as bn, Unless as gn, coalesce as Pe, ForEach as Le, Ensure as Ue, OneOfType as Et, dataAttr as lt, NotEmpty as mn, emitValueAsDate as hn, Portal as st, makeProviderMark as Ot, WithBrowserCtx as vn, renderWithContext as yn, WithProvider as wn, Task as xn, Provide as Nt, MapSignal as Rt, svg as mt, svgAttr as ht, delaySignal as kn } from "@tempots/dom";
|
|
2
|
+
import { Use as Po } from "@tempots/dom";
|
|
3
|
+
import { PopOver as Sn, ElementRect as Be, WindowSize as Cn, Query as Ut, Location as Ne, NavigationService as In, Anchor as it } from "@tempots/ui";
|
|
4
|
+
import { i as le, t as Se, h as vt, e as ue, a as ie, I as te, b as ce, C as fe, B as yt, c as Ye, L as ct, j as wt, k as xt } from "./translations-BUTBIDsS.js";
|
|
5
|
+
import { x as Do, T as Ao, l as Vo, d as Bo, f as Mo, g as Eo, u as Oo, q as No, o as Ro, w as Uo, y as Fo, n as jo, v as Ho, m as Wo, p as zo, r as Yo, s as Zo } from "./translations-BUTBIDsS.js";
|
|
6
6
|
import { g as ut } from "./colors-pQZlNrwM.js";
|
|
7
|
-
import { b as qo, e as Jo, i as Ko, a as Qo, c as Xo, o as
|
|
8
|
-
import { b as
|
|
9
|
-
import { t as
|
|
7
|
+
import { b as qo, e as Jo, i as Ko, a as Qo, c as Xo, o as el, l as tl, m as nl, k as al, j as rl, n as ol, r as ll, s as sl, d as il, h as cl, t as ul } from "./colors-pQZlNrwM.js";
|
|
8
|
+
import { b as Tn } from "./index-CpZh_Snx.js";
|
|
9
|
+
import { t as pl, am as fl, h as bl, J as gl, c as ml, N as hl, I as vl, K as yl, e as wl, l as xl, d as kl, a as Sl, ab as Cl, o as Il, a0 as Tl, ae as $l, q as _l, H as Pl, A as Ll, al as Dl, g as Al, E as Vl, x as Bl, aj as Ml, $ as El, a4 as Ol, k as Nl, j as Rl, i as Ul, Y as Fl, X as jl, Q as Hl, P as Wl, S as zl, R as Yl, W as Zl, V as Gl, U as ql, T as Jl, a8 as Kl, a7 as Ql, aa as Xl, a9 as es, n as ts, m as ns, _ as as, Z as rs, ad as os, p as ls, G as ss, z as is, ak as cs, D as us, C as ds, w as ps, v as fs, ai as bs, ah as gs, f as ms, a3 as hs, a2 as vs, M as ys, L as ws, a5 as xs, a6 as ks, r as Ss, O as Cs, ac as Is, s as Ts, F as $s, y as _s, ag as Ps, B as Ls, u as Ds, af as As, a1 as Vs } from "./index-CpZh_Snx.js";
|
|
10
10
|
import { C as Fe, s as he, m as Ft, d as jt, I as dt, B as Ht, c as Wt, S as pt, e as $n } from "./notice-BH_pePhd.js";
|
|
11
|
-
import { A as
|
|
12
|
-
import { u as Re, A as ot, a as _n, O as zt, F as
|
|
11
|
+
import { A as Ms, g as Es, b as Os, D as Ns, E as Rs, v as Us, L as Fs, M as js, x as Hs, N as Ws, i as zs, P as Ys, R as Zs, n as Gs, q as qs, o as Js, k as Ks, j as Qs, f as Xs, p as ei, h as ti, r as ni, t as ai, l as ri, u as oi, w as li } from "./notice-BH_pePhd.js";
|
|
12
|
+
import { u as Re, A as ot, a as _n, O as zt, F as Pn } from "./modal-DQ9LXrC4.js";
|
|
13
13
|
import { B as ii, C as ci, M as ui, c as di, S as pi, b as fi, d as bi, o as gi, s as mi, f as hi, e as vi, g as yi } from "./modal-DQ9LXrC4.js";
|
|
14
|
-
import { T as Yt, a as
|
|
15
|
-
import { S as Dn, G as
|
|
16
|
-
import { j as xi, l as ki, B as Si, p as Ci, V as
|
|
17
|
-
import { g as
|
|
18
|
-
import { L as
|
|
19
|
-
import { T as $c, a as _c, c as
|
|
14
|
+
import { T as Yt, a as Ln } from "./theme-B5pmbvQ_.js";
|
|
15
|
+
import { S as Dn, G as Zt, E as An, F as Vn, N as Gt, a as Me, M as Ee, e as kt, n as Bn, W as ve, d as Mn, i as En, b as St, c as Ve } from "./utils-sMnCjVjS.js";
|
|
16
|
+
import { j as xi, l as ki, B as Si, p as Ci, V as Ii, C as Ti, m as $i, L as _i, o as Pi, q as Li, r as Di, s as Ai, O as Vi, u as Bi, z as Mi, v as Ei, I as Oi, K as Ni, w as Ri, x as Ui, H as Fi, Q as ji, y as Hi, R as Wi, J as zi, A as Yi, T as Zi, D as Gi, f as qi, U as Ji, P as Ki, X as Qi, Y as Xi, ag as ec, k as tc, ae as nc, a2 as ac, a1 as rc, a6 as oc, a7 as lc, $ as sc, Z as ic, _ as cc, ab as uc, a5 as dc, ac as pc, a3 as fc, af as bc, a0 as gc, a8 as mc, a9 as hc, ad as vc, aa as yc, a4 as wc, g as xc, t as kc, h as Sc } from "./utils-sMnCjVjS.js";
|
|
17
|
+
import { g as Ze, x as Ct } from "./timer-DzWb416P.js";
|
|
18
|
+
import { L as Ic } from "./link-portal-Cr2l9f3k.js";
|
|
19
|
+
import { T as $c, a as _c, c as Pc, b as Lc, d as Dc } from "./toolbar-Bk5-22ln.js";
|
|
20
20
|
function cr(e, t = 0, n = () => !0) {
|
|
21
21
|
let a = null, r;
|
|
22
|
-
const s =
|
|
22
|
+
const s = G(e.value);
|
|
23
23
|
return e.on((i) => {
|
|
24
24
|
r = i, n(i) ? a == null && (a = setTimeout(() => {
|
|
25
25
|
a = null, s.set(r);
|
|
@@ -39,7 +39,7 @@ const qt = async (e, t = "") => {
|
|
|
39
39
|
const a = new Blob([e], { type: n });
|
|
40
40
|
qt(URL.createObjectURL(a), t), URL.revokeObjectURL(URL.createObjectURL(a));
|
|
41
41
|
}, dr = (e) => {
|
|
42
|
-
const t = new AbortController(), n =
|
|
42
|
+
const t = new AbortController(), n = G({ type: "progress", value: 0 });
|
|
43
43
|
let a = !1;
|
|
44
44
|
return (async () => {
|
|
45
45
|
try {
|
|
@@ -67,10 +67,10 @@ const qt = async (e, t = "") => {
|
|
|
67
67
|
type: r.headers.get("content-type") ?? void 0
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
|
-
})(), u = e.split("/").pop() || "download", l = await c,
|
|
70
|
+
})(), u = e.split("/").pop() || "download", l = await c, p = new File([l], u, {
|
|
71
71
|
type: l.type
|
|
72
72
|
});
|
|
73
|
-
a = !0, n.set({ type: "done", file:
|
|
73
|
+
a = !0, n.set({ type: "done", file: p });
|
|
74
74
|
} catch (r) {
|
|
75
75
|
n.set({ type: "error", error: r });
|
|
76
76
|
} finally {
|
|
@@ -84,7 +84,7 @@ const qt = async (e, t = "") => {
|
|
|
84
84
|
};
|
|
85
85
|
}, pr = (e) => {
|
|
86
86
|
qt(URL.createObjectURL(e), e.name);
|
|
87
|
-
},
|
|
87
|
+
}, It = (e, t) => e < t ? e : t, je = (e, t) => e > t ? e : t, On = (e, { abortSignal: t } = {}) => new Promise((n, a) => {
|
|
88
88
|
const r = setTimeout(n, e);
|
|
89
89
|
t && t.addEventListener("abort", () => {
|
|
90
90
|
clearTimeout(r), a(new DOMException("Aborted", "AbortError"));
|
|
@@ -111,7 +111,7 @@ function Rn(e, t) {
|
|
|
111
111
|
};
|
|
112
112
|
switch (e) {
|
|
113
113
|
case "filled": {
|
|
114
|
-
const r = ue(t, "solid", "light"), s = ue(t, "solid", "dark"), i =
|
|
114
|
+
const r = ue(t, "solid", "light"), s = ue(t, "solid", "dark"), i = le(t, "soft", "light"), c = le(t, "soft", "dark");
|
|
115
115
|
n.set("--badge-bg", r.backgroundColor), n.set("--badge-text", r.textColor), n.set("--badge-bg-dark", s.backgroundColor), n.set("--badge-text-dark", s.textColor), n.set("--badge-border", "transparent"), n.set("--badge-border-dark", "transparent"), a(
|
|
116
116
|
i.backgroundColor,
|
|
117
117
|
c.backgroundColor,
|
|
@@ -121,7 +121,7 @@ function Rn(e, t) {
|
|
|
121
121
|
break;
|
|
122
122
|
}
|
|
123
123
|
case "light": {
|
|
124
|
-
const r = ue(t, "light", "light"), s = ue(t, "light", "dark"), i =
|
|
124
|
+
const r = ue(t, "light", "light"), s = ue(t, "light", "dark"), i = le(t, "light", "light"), c = le(t, "light", "dark");
|
|
125
125
|
n.set("--badge-bg", r.backgroundColor), n.set("--badge-text", r.textColor), n.set("--badge-bg-dark", s.backgroundColor), n.set("--badge-text-dark", s.textColor), n.set("--badge-border", "transparent"), n.set("--badge-border-dark", "transparent"), a(
|
|
126
126
|
i.backgroundColor,
|
|
127
127
|
c.backgroundColor,
|
|
@@ -131,7 +131,7 @@ function Rn(e, t) {
|
|
|
131
131
|
break;
|
|
132
132
|
}
|
|
133
133
|
case "outline": {
|
|
134
|
-
const r = Se(t, "light"), s = Se(t, "dark"), i = vt(t, "light"), c = vt(t, "dark"), u =
|
|
134
|
+
const r = Se(t, "light"), s = Se(t, "dark"), i = vt(t, "light"), c = vt(t, "dark"), u = le(t, "light", "light"), l = le(t, "light", "dark");
|
|
135
135
|
n.set("--badge-bg", "transparent"), n.set("--badge-text", r), n.set("--badge-bg-dark", "transparent"), n.set("--badge-text-dark", s), n.set("--badge-border", i), n.set("--badge-border-dark", c), a(
|
|
136
136
|
u.backgroundColor,
|
|
137
137
|
l.backgroundColor,
|
|
@@ -141,7 +141,7 @@ function Rn(e, t) {
|
|
|
141
141
|
break;
|
|
142
142
|
}
|
|
143
143
|
case "default": {
|
|
144
|
-
const r = Se(t, "light"), s = Se(t, "dark"), i =
|
|
144
|
+
const r = Se(t, "light"), s = Se(t, "dark"), i = le(t, "light", "light"), c = le(t, "light", "dark");
|
|
145
145
|
n.set("--badge-bg", "var(--bg-background-light)"), n.set("--badge-text", r), n.set("--badge-bg-dark", "var(--bg-background-dark)"), n.set("--badge-text-dark", s), n.set("--badge-border", "var(--border-border-light)"), n.set("--badge-border-dark", "var(--border-border-dark)"), a(
|
|
146
146
|
i.backgroundColor,
|
|
147
147
|
c.backgroundColor,
|
|
@@ -151,7 +151,7 @@ function Rn(e, t) {
|
|
|
151
151
|
break;
|
|
152
152
|
}
|
|
153
153
|
case "text": {
|
|
154
|
-
const r = Se(t, "light"), s = Se(t, "dark"), i =
|
|
154
|
+
const r = Se(t, "light"), s = Se(t, "dark"), i = le(t, "light", "light"), c = le(t, "light", "dark");
|
|
155
155
|
n.set("--badge-bg", "transparent"), n.set("--badge-text", r), n.set("--badge-bg-dark", "transparent"), n.set("--badge-text-dark", s), n.set("--badge-border", "transparent"), n.set("--badge-border-dark", "transparent"), a(
|
|
156
156
|
i.backgroundColor,
|
|
157
157
|
c.backgroundColor,
|
|
@@ -173,22 +173,22 @@ function br({
|
|
|
173
173
|
}, ...i) {
|
|
174
174
|
return d.span(
|
|
175
175
|
o.class(
|
|
176
|
-
|
|
176
|
+
T(
|
|
177
177
|
t,
|
|
178
178
|
a,
|
|
179
179
|
r,
|
|
180
180
|
s
|
|
181
181
|
)(
|
|
182
|
-
(c, u, l,
|
|
182
|
+
(c, u, l, p) => Nn(
|
|
183
183
|
c ?? "md",
|
|
184
184
|
u ?? "sm",
|
|
185
185
|
l ?? !1,
|
|
186
|
-
|
|
186
|
+
p ?? !1
|
|
187
187
|
)
|
|
188
188
|
)
|
|
189
189
|
),
|
|
190
190
|
o.style(
|
|
191
|
-
|
|
191
|
+
T(
|
|
192
192
|
e,
|
|
193
193
|
n
|
|
194
194
|
)(
|
|
@@ -209,32 +209,32 @@ function gr({
|
|
|
209
209
|
onInvalidSelection: r,
|
|
210
210
|
disabled: s = !1
|
|
211
211
|
}) {
|
|
212
|
-
const i =
|
|
212
|
+
const i = G(!1), c = G([]);
|
|
213
213
|
let u = null, l = 0;
|
|
214
|
-
const
|
|
215
|
-
if (
|
|
216
|
-
if (
|
|
217
|
-
const _ =
|
|
218
|
-
return
|
|
214
|
+
const p = (f) => f.dataTransfer?.types.includes("Files") ?? !1, b = (f, C) => C === "*/*" ? !0 : C.split(",").map((D) => D.trim()).some((D) => {
|
|
215
|
+
if (D === "*/*") return !0;
|
|
216
|
+
if (D.endsWith("/*")) {
|
|
217
|
+
const _ = D.slice(0, -2);
|
|
218
|
+
return f.type.startsWith(_ + "/");
|
|
219
219
|
}
|
|
220
|
-
return
|
|
221
|
-
}), k = (
|
|
222
|
-
v.get(s) || f
|
|
223
|
-
}, m = (
|
|
224
|
-
v.get(s) || f
|
|
225
|
-
}, y = (
|
|
226
|
-
v.get(s) || f
|
|
227
|
-
}, h = (
|
|
228
|
-
if (v.get(s) || !f
|
|
229
|
-
|
|
230
|
-
const C = Array.from(
|
|
220
|
+
return f.type === D || f.name.endsWith(D);
|
|
221
|
+
}), k = (f) => {
|
|
222
|
+
v.get(s) || p(f) && (f.preventDefault(), f.stopPropagation(), l++, l === 1 && (i.value = !0));
|
|
223
|
+
}, m = (f) => {
|
|
224
|
+
v.get(s) || p(f) && (f.preventDefault(), f.stopPropagation(), f.dataTransfer != null && (f.dataTransfer.dropEffect = "copy"));
|
|
225
|
+
}, y = (f) => {
|
|
226
|
+
v.get(s) || p(f) && (f.preventDefault(), f.stopPropagation(), l--, l === 0 && (i.value = !1));
|
|
227
|
+
}, h = (f) => {
|
|
228
|
+
if (v.get(s) || !p(f)) return;
|
|
229
|
+
f.preventDefault(), f.stopPropagation(), l = 0, i.value = !1;
|
|
230
|
+
const C = Array.from(f.dataTransfer?.files ?? []);
|
|
231
231
|
if (C.length > 0) {
|
|
232
|
-
const $ = v.get(t),
|
|
233
|
-
(
|
|
232
|
+
const $ = v.get(t), D = C.filter(
|
|
233
|
+
(I) => b(I, $)
|
|
234
234
|
), _ = C.filter(
|
|
235
|
-
(
|
|
235
|
+
(I) => !D.includes(I)
|
|
236
236
|
);
|
|
237
|
-
|
|
237
|
+
D.length > 0 && (c.value = D, e(D, "dragdrop")), _.length > 0 && r?.(C);
|
|
238
238
|
}
|
|
239
239
|
};
|
|
240
240
|
typeof document < "u" && (document.addEventListener("dragenter", k), document.addEventListener("dragover", m), document.addEventListener("dragleave", y), document.addEventListener("drop", h));
|
|
@@ -242,8 +242,8 @@ function gr({
|
|
|
242
242
|
typeof document < "u" && (document.removeEventListener("dragenter", k), document.removeEventListener("dragover", m), document.removeEventListener("dragleave", y), document.removeEventListener("drop", h)), l = 0;
|
|
243
243
|
}, w = () => {
|
|
244
244
|
u?.click();
|
|
245
|
-
}, g = (
|
|
246
|
-
const C =
|
|
245
|
+
}, g = (f) => {
|
|
246
|
+
const C = f.target, $ = Array.from(C.files ?? []);
|
|
247
247
|
$.length > 0 && (c.value = $, e($, "click")), C.value = "";
|
|
248
248
|
};
|
|
249
249
|
return R(
|
|
@@ -259,8 +259,8 @@ function gr({
|
|
|
259
259
|
S.pointerEvents("none"),
|
|
260
260
|
S.width("0"),
|
|
261
261
|
S.height("0"),
|
|
262
|
-
|
|
263
|
-
ne((
|
|
262
|
+
L.change(g),
|
|
263
|
+
ne((f) => (u = f, oe(() => {
|
|
264
264
|
u != null && (u.value = "");
|
|
265
265
|
})))
|
|
266
266
|
),
|
|
@@ -288,7 +288,7 @@ function mr({
|
|
|
288
288
|
withRowBorders: c = !0,
|
|
289
289
|
borderRadius: u
|
|
290
290
|
} = {}, ...l) {
|
|
291
|
-
const
|
|
291
|
+
const p = T(
|
|
292
292
|
e,
|
|
293
293
|
t,
|
|
294
294
|
n,
|
|
@@ -304,20 +304,20 @@ function mr({
|
|
|
304
304
|
w ?? !1,
|
|
305
305
|
g ?? !0
|
|
306
306
|
)
|
|
307
|
-
), b =
|
|
307
|
+
), b = T(
|
|
308
308
|
n,
|
|
309
309
|
a,
|
|
310
310
|
s
|
|
311
311
|
)((m, y, h) => {
|
|
312
312
|
const x = ["bc-table-container"];
|
|
313
313
|
return m && x.push("bc-table-container--sticky"), y && x.push("bc-table-container--full-width"), h && x.push("bc-table-container--with-table-border"), x.join(" ");
|
|
314
|
-
}), k =
|
|
314
|
+
}), k = T(u)(
|
|
315
315
|
(m) => Fn(m)
|
|
316
316
|
);
|
|
317
317
|
return d.div(
|
|
318
318
|
o.class(b),
|
|
319
319
|
o.style(k),
|
|
320
|
-
d.table(o.class(
|
|
320
|
+
d.table(o.class(p), ...l)
|
|
321
321
|
);
|
|
322
322
|
}
|
|
323
323
|
function jn(e, t) {
|
|
@@ -325,7 +325,7 @@ function jn(e, t) {
|
|
|
325
325
|
return e !== "md" && n.push(`bc-tag--${e}`), t && n.push("bc-tag--disabled"), n.join(" ");
|
|
326
326
|
}
|
|
327
327
|
function Hn(e) {
|
|
328
|
-
const t = ue(e, "light", "light"), n = ue(e, "light", "dark"), a =
|
|
328
|
+
const t = ue(e, "light", "light"), n = ue(e, "light", "dark"), a = le(e, "light", "light"), r = le(e, "light", "dark");
|
|
329
329
|
return [
|
|
330
330
|
`--tag-bg: ${t.backgroundColor}`,
|
|
331
331
|
`--tag-text: ${t.textColor}`,
|
|
@@ -346,13 +346,13 @@ const Jt = ({
|
|
|
346
346
|
disabled: s
|
|
347
347
|
}) => d.span(
|
|
348
348
|
o.class(
|
|
349
|
-
|
|
349
|
+
T(
|
|
350
350
|
a ?? "md",
|
|
351
351
|
s ?? !1
|
|
352
352
|
)((i, c) => jn(i, c))
|
|
353
353
|
),
|
|
354
354
|
o.style(
|
|
355
|
-
|
|
355
|
+
T(t)(
|
|
356
356
|
(i) => Hn(i ?? "base")
|
|
357
357
|
)
|
|
358
358
|
),
|
|
@@ -385,15 +385,15 @@ function Wn({
|
|
|
385
385
|
options: {
|
|
386
386
|
system: d.span(
|
|
387
387
|
o.title("System"),
|
|
388
|
-
|
|
388
|
+
te({ icon: "line-md:laptop", color: "gray" })
|
|
389
389
|
),
|
|
390
390
|
light: d.span(
|
|
391
391
|
o.title("Light"),
|
|
392
|
-
|
|
392
|
+
te({ icon: "line-md:sunny-twotone-loop", color: "yellow" })
|
|
393
393
|
),
|
|
394
394
|
dark: d.span(
|
|
395
395
|
o.title("Dark"),
|
|
396
|
-
|
|
396
|
+
te({
|
|
397
397
|
icon: "line-md:sunny-outline-to-moon-alt-loop-transition",
|
|
398
398
|
color: "blue"
|
|
399
399
|
})
|
|
@@ -421,14 +421,14 @@ function zn({
|
|
|
421
421
|
o.class("bc-color-input__swatch-container"),
|
|
422
422
|
d.span(
|
|
423
423
|
o.class("bc-color-input__swatch"),
|
|
424
|
-
|
|
424
|
+
L.click(() => a?.showPicker()),
|
|
425
425
|
pe.color(
|
|
426
426
|
ne((r) => (a = r, W)),
|
|
427
427
|
o.value(e),
|
|
428
428
|
S.width("4px"),
|
|
429
429
|
S.height("4px"),
|
|
430
|
-
t != null ?
|
|
431
|
-
n != null ?
|
|
430
|
+
t != null ? L.change(X(t)) : W,
|
|
431
|
+
n != null ? L.input(X(n)) : W
|
|
432
432
|
),
|
|
433
433
|
o.style(v.map(e, (r) => `background-color: ${r}`))
|
|
434
434
|
)
|
|
@@ -442,9 +442,9 @@ function vr(e) {
|
|
|
442
442
|
input: pe.text(
|
|
443
443
|
fe(e),
|
|
444
444
|
o.value(t),
|
|
445
|
-
n != null ?
|
|
446
|
-
a != null ?
|
|
447
|
-
r != null ?
|
|
445
|
+
n != null ? L.blur(X(n)) : W,
|
|
446
|
+
a != null ? L.change(X(a)) : W,
|
|
447
|
+
r != null ? L.input(X(r)) : W
|
|
448
448
|
)
|
|
449
449
|
},
|
|
450
450
|
o.class("bc-color-input"),
|
|
@@ -455,7 +455,7 @@ function Yn(e) {
|
|
|
455
455
|
const t = { fade: !0, scale: !0 };
|
|
456
456
|
return e.startsWith("top") ? (t.slide = "down", t.transformOrigin = "bottom") : e.startsWith("bottom") ? (t.slide = "up", t.transformOrigin = "top") : e.startsWith("left") ? (t.slide = "right", t.transformOrigin = "right") : e.startsWith("right") && (t.slide = "left", t.transformOrigin = "left"), t;
|
|
457
457
|
}
|
|
458
|
-
function
|
|
458
|
+
function Ge(e) {
|
|
459
459
|
const {
|
|
460
460
|
content: t,
|
|
461
461
|
placement: n = "top",
|
|
@@ -466,21 +466,21 @@ function Ze(e) {
|
|
|
466
466
|
showOn: c = "hover-focus",
|
|
467
467
|
closable: u = !0,
|
|
468
468
|
arrow: l,
|
|
469
|
-
role:
|
|
469
|
+
role: p,
|
|
470
470
|
hasPopup: b = "dialog"
|
|
471
471
|
} = e;
|
|
472
472
|
return Sn((k, m) => {
|
|
473
473
|
const y = Re({
|
|
474
474
|
initialStatus: "closed"
|
|
475
|
-
}), h = he("flyout"), x =
|
|
476
|
-
let w = null, g = null,
|
|
475
|
+
}), h = he("flyout"), x = G(!1);
|
|
476
|
+
let w = null, g = null, f = !1;
|
|
477
477
|
function C() {
|
|
478
|
-
|
|
478
|
+
D != null && (clearTimeout(D), D = null), I != null && (clearTimeout(I), I = null), g && (g(), g = null), w && (document.removeEventListener("keydown", w), w = null), x.set(!1), f = !1;
|
|
479
479
|
}
|
|
480
480
|
function $() {
|
|
481
481
|
v.get(u) && (w = (O) => {
|
|
482
482
|
O.key === "Escape" && V();
|
|
483
|
-
}, document.addEventListener("keydown", w)),
|
|
483
|
+
}, document.addEventListener("keydown", w)), f = !0, x.set(!0), k({
|
|
484
484
|
placement: n ?? "top",
|
|
485
485
|
mainAxisOffset: s,
|
|
486
486
|
crossAxisOffset: i,
|
|
@@ -489,7 +489,7 @@ function Ze(e) {
|
|
|
489
489
|
},
|
|
490
490
|
arrow: l,
|
|
491
491
|
content: ne((O) => {
|
|
492
|
-
y.setElement(O), g =
|
|
492
|
+
y.setElement(O), g = Ze(() => {
|
|
493
493
|
y.open(), g = null;
|
|
494
494
|
});
|
|
495
495
|
const B = (F) => {
|
|
@@ -509,7 +509,7 @@ function Ze(e) {
|
|
|
509
509
|
animation: v.map(n, Yn),
|
|
510
510
|
status: y.status
|
|
511
511
|
}),
|
|
512
|
-
|
|
512
|
+
p ? o.role(p) : o.role("dialog"),
|
|
513
513
|
// Default to dialog role
|
|
514
514
|
t()
|
|
515
515
|
)
|
|
@@ -517,28 +517,28 @@ function Ze(e) {
|
|
|
517
517
|
})
|
|
518
518
|
});
|
|
519
519
|
}
|
|
520
|
-
let
|
|
520
|
+
let D = null;
|
|
521
521
|
function _() {
|
|
522
|
-
if (
|
|
522
|
+
if (D != null && (clearTimeout(D), D = null), I != null && (clearTimeout(I), I = null), y.isOpened.value || y.isOpening.value || y.isStartOpening.value)
|
|
523
523
|
return;
|
|
524
524
|
if (y.isClosing.value || y.isStartClosing.value) {
|
|
525
525
|
y.open();
|
|
526
526
|
return;
|
|
527
527
|
}
|
|
528
528
|
const O = v.get(a);
|
|
529
|
-
|
|
530
|
-
|
|
529
|
+
D = setTimeout(() => {
|
|
530
|
+
D = null, $();
|
|
531
531
|
}, O);
|
|
532
532
|
}
|
|
533
|
-
let
|
|
533
|
+
let I = null;
|
|
534
534
|
function V() {
|
|
535
|
-
if (
|
|
535
|
+
if (D != null && (clearTimeout(D), D = null), I != null && (clearTimeout(I), I = null), x.set(!1), g && (g(), g = null, f)) {
|
|
536
536
|
m(), C();
|
|
537
537
|
return;
|
|
538
538
|
}
|
|
539
539
|
const O = v.get(r);
|
|
540
|
-
|
|
541
|
-
|
|
540
|
+
I = setTimeout(() => {
|
|
541
|
+
I = null, y.close(), y.listenOnClosed(() => {
|
|
542
542
|
m(), C();
|
|
543
543
|
});
|
|
544
544
|
}, O);
|
|
@@ -548,32 +548,32 @@ function Ze(e) {
|
|
|
548
548
|
_(), x.set(!0);
|
|
549
549
|
}, F = () => {
|
|
550
550
|
V(), x.set(!1);
|
|
551
|
-
},
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
551
|
+
}, ee = R(
|
|
552
|
+
E.expanded(x),
|
|
553
|
+
E.controls(h),
|
|
554
|
+
E.haspopup(
|
|
555
555
|
b
|
|
556
556
|
)
|
|
557
557
|
);
|
|
558
558
|
return typeof c == "function" ? R(
|
|
559
|
-
|
|
559
|
+
ee,
|
|
560
560
|
c(B, F)
|
|
561
561
|
) : R(
|
|
562
|
-
|
|
562
|
+
ee,
|
|
563
563
|
bn(c, {
|
|
564
564
|
"hover-focus": () => R(
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
565
|
+
L.mouseenter(() => B()),
|
|
566
|
+
L.mouseleave(() => F()),
|
|
567
|
+
L.focus(() => B()),
|
|
568
|
+
L.blur(() => F())
|
|
569
569
|
),
|
|
570
570
|
hover: () => R(
|
|
571
|
-
|
|
572
|
-
|
|
571
|
+
L.mouseenter(() => B()),
|
|
572
|
+
L.mouseleave(() => F())
|
|
573
573
|
),
|
|
574
574
|
focus: () => R(
|
|
575
|
-
|
|
576
|
-
|
|
575
|
+
L.focus(() => B()),
|
|
576
|
+
L.blur(() => F())
|
|
577
577
|
),
|
|
578
578
|
click: () => {
|
|
579
579
|
function U() {
|
|
@@ -584,8 +584,8 @@ function Ze(e) {
|
|
|
584
584
|
}
|
|
585
585
|
return R(
|
|
586
586
|
oe(U),
|
|
587
|
-
|
|
588
|
-
B(),
|
|
587
|
+
L.click(() => {
|
|
588
|
+
B(), Ze(() => {
|
|
589
589
|
document.addEventListener("click", Y, {
|
|
590
590
|
once: !0
|
|
591
591
|
});
|
|
@@ -599,11 +599,11 @@ function Ze(e) {
|
|
|
599
599
|
});
|
|
600
600
|
});
|
|
601
601
|
}
|
|
602
|
-
function
|
|
602
|
+
function Zn(e, t, n, a) {
|
|
603
603
|
const r = ["bc-action-card"];
|
|
604
604
|
return e && r.push("bc-action-card--active"), t && r.push("bc-action-card--disabled"), n !== "md" && r.push(`bc-action-card--${n}`), a && !t && r.push("bc-action-card--clickable"), r.join(" ");
|
|
605
605
|
}
|
|
606
|
-
function
|
|
606
|
+
function Gn(e, t, n, a) {
|
|
607
607
|
const r = /* @__PURE__ */ new Map();
|
|
608
608
|
if (e != null && r.set("--action-card-bg", e), t != null && r.set("--action-card-border", t), n != null && r.set("--action-card-title-color", n), a != null && r.set("--action-card-description-color", a), r.size !== 0)
|
|
609
609
|
return Array.from(r.entries()).map(([s, i]) => `${s}: ${i}`).join("; ");
|
|
@@ -619,19 +619,19 @@ function yr({
|
|
|
619
619
|
iconColor: c = "primary",
|
|
620
620
|
iconSize: u = "md",
|
|
621
621
|
backgroundColor: l,
|
|
622
|
-
borderColor:
|
|
622
|
+
borderColor: p,
|
|
623
623
|
titleColor: b,
|
|
624
624
|
descriptionColor: k
|
|
625
625
|
}) {
|
|
626
626
|
const m = s != null;
|
|
627
627
|
return d.div(
|
|
628
628
|
o.class(
|
|
629
|
-
|
|
629
|
+
T(
|
|
630
630
|
a,
|
|
631
631
|
r,
|
|
632
632
|
i
|
|
633
633
|
)(
|
|
634
|
-
(y, h, x) =>
|
|
634
|
+
(y, h, x) => Zn(
|
|
635
635
|
y ?? !1,
|
|
636
636
|
h ?? !1,
|
|
637
637
|
x ?? "md",
|
|
@@ -640,13 +640,13 @@ function yr({
|
|
|
640
640
|
)
|
|
641
641
|
),
|
|
642
642
|
o.style(
|
|
643
|
-
|
|
643
|
+
T(
|
|
644
644
|
l,
|
|
645
|
-
|
|
645
|
+
p,
|
|
646
646
|
b,
|
|
647
647
|
k
|
|
648
648
|
)(
|
|
649
|
-
(y, h, x, w) =>
|
|
649
|
+
(y, h, x, w) => Gn(y, h, x, w)
|
|
650
650
|
)
|
|
651
651
|
),
|
|
652
652
|
Q(
|
|
@@ -655,18 +655,18 @@ function yr({
|
|
|
655
655
|
gn(
|
|
656
656
|
r,
|
|
657
657
|
() => R(
|
|
658
|
-
|
|
658
|
+
L.click(() => s?.()),
|
|
659
659
|
o.tabindex(0)
|
|
660
660
|
)
|
|
661
661
|
),
|
|
662
662
|
o.role("button")
|
|
663
663
|
)
|
|
664
664
|
),
|
|
665
|
-
|
|
665
|
+
E.disabled(r),
|
|
666
666
|
// Icon container
|
|
667
667
|
d.div(
|
|
668
668
|
o.class("bc-action-card__icon"),
|
|
669
|
-
|
|
669
|
+
te({ icon: e, size: u, color: c })
|
|
670
670
|
),
|
|
671
671
|
// Content container
|
|
672
672
|
d.div(
|
|
@@ -714,14 +714,14 @@ function Kt(e, { breakpoints: t, mode: n = "viewport" }) {
|
|
|
714
714
|
([i, c]) => [c, i]
|
|
715
715
|
)].sort((i, c) => i[0] - c[0]), s = (i) => {
|
|
716
716
|
const c = i.map(({ width: l }) => {
|
|
717
|
-
const
|
|
718
|
-
return
|
|
717
|
+
const p = r.findIndex((b) => b[0] > l) - 1;
|
|
718
|
+
return p >= 0 ? { width: l, breakpoint: r[p][1] } : r.length > 0 && l >= r[0][0] ? { width: l, breakpoint: r[0][1] } : { width: l, breakpoint: r[0][1] };
|
|
719
719
|
});
|
|
720
720
|
return e({
|
|
721
721
|
value: c,
|
|
722
722
|
breakpoints: t,
|
|
723
723
|
asList: r,
|
|
724
|
-
is: (l,
|
|
724
|
+
is: (l, p) => Kn(r, l, p)
|
|
725
725
|
});
|
|
726
726
|
};
|
|
727
727
|
return n === "element" ? Be(s) : Cn(s);
|
|
@@ -843,7 +843,7 @@ const me = {
|
|
|
843
843
|
xl: 280
|
|
844
844
|
}
|
|
845
845
|
};
|
|
846
|
-
function
|
|
846
|
+
function Tt(e, t) {
|
|
847
847
|
if (typeof e == "number")
|
|
848
848
|
return {
|
|
849
849
|
zero: e,
|
|
@@ -885,13 +885,13 @@ function ea({
|
|
|
885
885
|
[null],
|
|
886
886
|
[null]
|
|
887
887
|
];
|
|
888
|
-
const
|
|
889
|
-
|
|
888
|
+
const p = [];
|
|
889
|
+
p.push("1fr");
|
|
890
890
|
const b = [];
|
|
891
891
|
return a.banner && (b.push(a.banner[u] + "px"), l[0][1] = "banner"), (a.header || n.menu || n.aside) && (b.push(
|
|
892
892
|
(a.header?.[u] ?? me.header[u]) + "px"
|
|
893
893
|
), l[1][1] = "header"), a.mainHeader && (b.push(a.mainHeader[u] + "px"), l[2][1] = "mainHeader"), b.push("1fr"), l[3][1] = "main", a.mainFooter && (b.push(a.mainFooter[u] + "px"), l[4][1] = "mainFooter"), a.footer && (b.push(a.footer[u] + "px"), l[5][1] = "footer"), l = tt(l), {
|
|
894
|
-
columns:
|
|
894
|
+
columns: p.join(" "),
|
|
895
895
|
rows: b.join(" "),
|
|
896
896
|
areas: l.map((m) => `"${m.join(" ")}"`).join(`
|
|
897
897
|
`),
|
|
@@ -910,13 +910,13 @@ function ea({
|
|
|
910
910
|
[null, null],
|
|
911
911
|
[null, null]
|
|
912
912
|
];
|
|
913
|
-
const
|
|
914
|
-
n.menu && (
|
|
913
|
+
const p = [];
|
|
914
|
+
n.menu && (p.push(n.menu[u] + "px"), l[2][0] = "?menu", l[3][0] = "menu", l[4][0] = "?menu"), p.push("1fr");
|
|
915
915
|
const b = [];
|
|
916
916
|
return a.banner && (b.push(a.banner[u] + "px"), l[0][0] = "?banner", l[0][1] = "banner"), (a.header || n.aside) && (b.push(
|
|
917
917
|
(a.header?.[u] ?? me.header[u]) + "px"
|
|
918
918
|
), l[1][0] = "?header", l[1][1] = "header"), a.mainHeader && (b.push(a.mainHeader[u] + "px"), l[2][1] = "mainHeader"), b.push("1fr"), l[3][1] = "main", a.mainFooter && (b.push(a.mainFooter[u] + "px"), l[4][1] = "mainFooter"), a.footer && (b.push(a.footer[u] + "px"), l[5][0] = "?footer", l[5][1] = "footer"), l = tt(l), {
|
|
919
|
-
columns:
|
|
919
|
+
columns: p.join(" "),
|
|
920
920
|
rows: b.join(" "),
|
|
921
921
|
areas: l.map((m) => `"${m.join(" ")}"`).join(`
|
|
922
922
|
`),
|
|
@@ -935,11 +935,11 @@ function ea({
|
|
|
935
935
|
[null, null, null],
|
|
936
936
|
[null, null, null]
|
|
937
937
|
];
|
|
938
|
-
const
|
|
939
|
-
n.menu && (
|
|
938
|
+
const p = [];
|
|
939
|
+
n.menu && (p.push(n.menu[u] + "px"), l[2][0] = "?menu", l[3][0] = "menu", l[4][0] = "?menu"), p.push("1fr"), n.aside && (p.push(n.aside[u] + "px"), l[2][2] = "?aside", l[3][2] = "aside", l[4][2] = "?aside");
|
|
940
940
|
const b = [];
|
|
941
941
|
return a.banner && (b.push(a.banner[u] + "px"), l[0][0] = "?banner", l[0][1] = "banner", l[0][2] = "?banner"), a.header && (b.push(a.header[u] + "px"), l[1][0] = "?header", l[1][1] = "header", l[1][2] = "?header"), a.mainHeader && (b.push(a.mainHeader[u] + "px"), l[2][1] = "mainHeader"), b.push("1fr"), l[3][1] = "main", a.mainFooter && (b.push(a.mainFooter[u] + "px"), l[4][1] = "mainFooter"), a.footer && (b.push(a.footer[u] + "px"), l[5][0] = "?footer", l[5][1] = "footer", l[5][2] = "?footer"), l = tt(l), {
|
|
942
|
-
columns:
|
|
942
|
+
columns: p.join(" "),
|
|
943
943
|
rows: b.join(" "),
|
|
944
944
|
areas: l.map((m) => `"${m.join(" ")}"`).join(`
|
|
945
945
|
`),
|
|
@@ -976,14 +976,14 @@ function kr({
|
|
|
976
976
|
ta.filter((s) => n[s]).map(
|
|
977
977
|
(s) => [
|
|
978
978
|
s,
|
|
979
|
-
|
|
979
|
+
Tt(n[s].width ?? {}, me[s])
|
|
980
980
|
]
|
|
981
981
|
)
|
|
982
982
|
), r = Object.fromEntries(
|
|
983
983
|
na.filter((s) => n[s]).map(
|
|
984
984
|
(s) => [
|
|
985
985
|
s,
|
|
986
|
-
|
|
986
|
+
Tt(n[s].height ?? {}, me[s])
|
|
987
987
|
]
|
|
988
988
|
)
|
|
989
989
|
);
|
|
@@ -996,17 +996,17 @@ function kr({
|
|
|
996
996
|
vertical: a,
|
|
997
997
|
horizontal: r,
|
|
998
998
|
is: c
|
|
999
|
-
}), l = i.map(u),
|
|
999
|
+
}), l = i.map(u), p = r.header != null || a.menu != null || a.aside != null, b = T(
|
|
1000
1000
|
a.aside != null,
|
|
1001
1001
|
l
|
|
1002
|
-
)((g, { displayAside:
|
|
1002
|
+
)((g, { displayAside: f }) => g && !f), k = T(
|
|
1003
1003
|
a.menu != null,
|
|
1004
1004
|
l
|
|
1005
|
-
)((g, { displayMenu:
|
|
1005
|
+
)((g, { displayMenu: f }) => g && !f), m = Re(), y = Re(), h = G(0), x = T(
|
|
1006
1006
|
a.menu != null,
|
|
1007
1007
|
l,
|
|
1008
1008
|
m.display
|
|
1009
|
-
)(aa), w =
|
|
1009
|
+
)(aa), w = T(
|
|
1010
1010
|
a.aside != null,
|
|
1011
1011
|
l,
|
|
1012
1012
|
y.display
|
|
@@ -1035,7 +1035,7 @@ function kr({
|
|
|
1035
1035
|
),
|
|
1036
1036
|
ke(n.header?.color ?? "white"),
|
|
1037
1037
|
S.zIndex("20"),
|
|
1038
|
-
S.display(
|
|
1038
|
+
S.display(p ? "block" : "none"),
|
|
1039
1039
|
S.gridArea("header"),
|
|
1040
1040
|
Be((g) => (g.$.bottom.feedProp(h), null)),
|
|
1041
1041
|
d.div(
|
|
@@ -1055,8 +1055,8 @@ function kr({
|
|
|
1055
1055
|
variant: "light",
|
|
1056
1056
|
color: "base"
|
|
1057
1057
|
},
|
|
1058
|
-
|
|
1059
|
-
|
|
1058
|
+
E.label(s.$.toggleMenu),
|
|
1059
|
+
te({
|
|
1060
1060
|
icon: m.display.map(
|
|
1061
1061
|
(g) => g ? "line-md/menu-to-close-alt-transition" : "line-md/close-to-menu-alt-transition"
|
|
1062
1062
|
)
|
|
@@ -1083,8 +1083,8 @@ function kr({
|
|
|
1083
1083
|
variant: "light",
|
|
1084
1084
|
color: "base"
|
|
1085
1085
|
},
|
|
1086
|
-
|
|
1087
|
-
|
|
1086
|
+
E.label(s.$.toggleAside),
|
|
1087
|
+
te(
|
|
1088
1088
|
{ icon: "line-md/chevron-left" },
|
|
1089
1089
|
o.style("transition: transform 0.2s ease-in-out"),
|
|
1090
1090
|
o.style(
|
|
@@ -1101,7 +1101,7 @@ function kr({
|
|
|
1101
1101
|
ne((g) => m.setElement(g)),
|
|
1102
1102
|
S.zIndex("10"),
|
|
1103
1103
|
// Add ARIA attributes for navigation landmark
|
|
1104
|
-
|
|
1104
|
+
E.label(s.$.mainNavigation),
|
|
1105
1105
|
o.role("navigation"),
|
|
1106
1106
|
S.overflow("hidden"),
|
|
1107
1107
|
o.class(
|
|
@@ -1124,26 +1124,26 @@ function kr({
|
|
|
1124
1124
|
S.overflow("hidden"),
|
|
1125
1125
|
S.gridArea("menu"),
|
|
1126
1126
|
S.display(
|
|
1127
|
-
|
|
1127
|
+
T(
|
|
1128
1128
|
x,
|
|
1129
1129
|
m.status
|
|
1130
|
-
)((g,
|
|
1130
|
+
)((g, f) => g === "none" && f === "closed" ? "none" : "block")
|
|
1131
1131
|
),
|
|
1132
1132
|
S.position(
|
|
1133
|
-
|
|
1133
|
+
T(
|
|
1134
1134
|
x,
|
|
1135
1135
|
m.status
|
|
1136
|
-
)((g,
|
|
1136
|
+
)((g, f) => g === "float" || g === "none" && f !== "closed" ? "fixed" : "initial")
|
|
1137
1137
|
),
|
|
1138
1138
|
S.top(h.map((g) => `${g}px`)),
|
|
1139
1139
|
ot({
|
|
1140
1140
|
animation: { slide: "right" },
|
|
1141
|
-
status:
|
|
1141
|
+
status: T(
|
|
1142
1142
|
x,
|
|
1143
1143
|
m.status
|
|
1144
|
-
)((g,
|
|
1144
|
+
)((g, f) => g === "block" ? "opened" : f)
|
|
1145
1145
|
}),
|
|
1146
|
-
S.width(
|
|
1146
|
+
S.width(Pe(n.menu?.width, l.$.menuWidth)),
|
|
1147
1147
|
S.bottom("0"),
|
|
1148
1148
|
n.menu?.content
|
|
1149
1149
|
) : null,
|
|
@@ -1187,7 +1187,7 @@ function kr({
|
|
|
1187
1187
|
}),
|
|
1188
1188
|
S.zIndex("10"),
|
|
1189
1189
|
// Add ARIA attributes for aside landmark
|
|
1190
|
-
|
|
1190
|
+
E.label(s.$.sidebar),
|
|
1191
1191
|
o.role("complementary"),
|
|
1192
1192
|
o.class(
|
|
1193
1193
|
w.map(
|
|
@@ -1198,27 +1198,27 @@ function kr({
|
|
|
1198
1198
|
S.height("100%"),
|
|
1199
1199
|
S.gridArea("aside"),
|
|
1200
1200
|
S.display(
|
|
1201
|
-
|
|
1201
|
+
T(
|
|
1202
1202
|
w,
|
|
1203
1203
|
y.status
|
|
1204
|
-
)((g,
|
|
1204
|
+
)((g, f) => g === "none" && f === "closed" ? "none" : "block")
|
|
1205
1205
|
),
|
|
1206
1206
|
S.position(
|
|
1207
|
-
|
|
1207
|
+
T(
|
|
1208
1208
|
w,
|
|
1209
1209
|
y.status
|
|
1210
|
-
)((g,
|
|
1210
|
+
)((g, f) => g === "float" || g === "none" && f !== "closed" ? "fixed" : "initial")
|
|
1211
1211
|
),
|
|
1212
1212
|
S.top(h.map((g) => `${g}px`)),
|
|
1213
1213
|
ot({
|
|
1214
1214
|
animation: { slide: "left" },
|
|
1215
|
-
status:
|
|
1215
|
+
status: T(
|
|
1216
1216
|
w,
|
|
1217
1217
|
y.status
|
|
1218
|
-
)((g,
|
|
1218
|
+
)((g, f) => g === "block" ? "opened" : f)
|
|
1219
1219
|
}),
|
|
1220
1220
|
S.width(
|
|
1221
|
-
|
|
1221
|
+
Pe(n.aside?.width, l.$.asideWidth)
|
|
1222
1222
|
),
|
|
1223
1223
|
S.bottom(h.map((g) => `${g}px`)),
|
|
1224
1224
|
n.aside.content
|
|
@@ -1246,29 +1246,29 @@ function oa(e) {
|
|
|
1246
1246
|
}
|
|
1247
1247
|
function Cr({ gap: e = "lg" } = {}, ...t) {
|
|
1248
1248
|
return d.div(
|
|
1249
|
-
o.class(
|
|
1249
|
+
o.class(T(e)((n) => oa(n ?? "lg"))),
|
|
1250
1250
|
...t
|
|
1251
1251
|
);
|
|
1252
1252
|
}
|
|
1253
|
-
function
|
|
1253
|
+
function la({ open: e }, ...t) {
|
|
1254
1254
|
return ne((n) => {
|
|
1255
1255
|
const { status: a, setOpen: r, dispose: s } = Re({
|
|
1256
1256
|
initialStatus: v.get(e) ? "opened" : "closed",
|
|
1257
1257
|
element: n
|
|
1258
1258
|
});
|
|
1259
1259
|
return v.on(e, r), Be((i) => {
|
|
1260
|
-
const c =
|
|
1261
|
-
return
|
|
1260
|
+
const c = G(null);
|
|
1261
|
+
return T(
|
|
1262
1262
|
a,
|
|
1263
1263
|
i.$.height
|
|
1264
|
-
)((l,
|
|
1264
|
+
)((l, p) => l === "opened" && p > 0 ? p : null).on((l) => {
|
|
1265
1265
|
l != null && c.set(l);
|
|
1266
1266
|
}), a.on((l) => {
|
|
1267
1267
|
if (n && l === "start-opening") {
|
|
1268
|
-
const
|
|
1268
|
+
const p = n.style.height, b = n.style.transition;
|
|
1269
1269
|
n.style.transition = "none", n.style.height = "auto", n.offsetHeight;
|
|
1270
1270
|
const k = n.scrollHeight;
|
|
1271
|
-
k > 0 && c.set(k), n.style.height =
|
|
1271
|
+
k > 0 && c.set(k), n.style.height = p, n.style.transition = b, n.offsetHeight;
|
|
1272
1272
|
}
|
|
1273
1273
|
}), R(
|
|
1274
1274
|
oe(s),
|
|
@@ -1281,13 +1281,13 @@ function sa({ open: e }, ...t) {
|
|
|
1281
1281
|
});
|
|
1282
1282
|
});
|
|
1283
1283
|
}
|
|
1284
|
-
function
|
|
1284
|
+
function sa(e) {
|
|
1285
1285
|
return `${e}px`;
|
|
1286
1286
|
}
|
|
1287
1287
|
function $t(e) {
|
|
1288
|
-
return v.map(e,
|
|
1288
|
+
return v.map(e, sa);
|
|
1289
1289
|
}
|
|
1290
|
-
function
|
|
1290
|
+
function Ir({
|
|
1291
1291
|
body: e,
|
|
1292
1292
|
contentWidth: t,
|
|
1293
1293
|
contentHeight: n,
|
|
@@ -1298,147 +1298,147 @@ function Tr({
|
|
|
1298
1298
|
footer: c,
|
|
1299
1299
|
footerHeight: u = 0,
|
|
1300
1300
|
bottomStart: l,
|
|
1301
|
-
bottomEnd:
|
|
1301
|
+
bottomEnd: p,
|
|
1302
1302
|
sidebarStart: b,
|
|
1303
1303
|
sidebarStartWidth: k = 0,
|
|
1304
1304
|
sidebarEnd: m,
|
|
1305
1305
|
sidebarEndWidth: y = 0,
|
|
1306
1306
|
anchorMode: h = "container-edge"
|
|
1307
1307
|
}) {
|
|
1308
|
-
const x =
|
|
1308
|
+
const x = G(0n), w = G(0n), g = $t(r), f = $t(k), C = G(16);
|
|
1309
1309
|
return d.div(
|
|
1310
1310
|
o.class("bc-nine-slice-container"),
|
|
1311
1311
|
Be(($) => {
|
|
1312
|
-
const
|
|
1312
|
+
const D = T(
|
|
1313
1313
|
$.$.width,
|
|
1314
1314
|
k,
|
|
1315
1315
|
y
|
|
1316
|
-
)((
|
|
1316
|
+
)((A, N, K) => A - N - K), _ = T(
|
|
1317
1317
|
$.$.height,
|
|
1318
1318
|
r,
|
|
1319
1319
|
u
|
|
1320
|
-
)((
|
|
1320
|
+
)((A, N, K) => A - N - K), I = T(
|
|
1321
1321
|
t,
|
|
1322
|
-
|
|
1323
|
-
)((
|
|
1322
|
+
D
|
|
1323
|
+
)((A, N) => A > BigInt(N)), V = T(
|
|
1324
1324
|
n,
|
|
1325
1325
|
_
|
|
1326
|
-
)((
|
|
1327
|
-
|
|
1326
|
+
)((A, N) => A > BigInt(N)), O = T(
|
|
1327
|
+
D,
|
|
1328
1328
|
V,
|
|
1329
1329
|
C
|
|
1330
|
-
)((
|
|
1330
|
+
)((A, N, K) => N ? A - K : A), B = T(
|
|
1331
1331
|
_,
|
|
1332
|
-
|
|
1332
|
+
I,
|
|
1333
1333
|
C
|
|
1334
|
-
)((
|
|
1334
|
+
)((A, N, K) => N ? A - K : A), F = T(
|
|
1335
1335
|
t,
|
|
1336
1336
|
O
|
|
1337
|
-
)((
|
|
1337
|
+
)((A, N) => Number(A / BigInt(Math.max(1, N)))), ee = T(
|
|
1338
1338
|
n,
|
|
1339
1339
|
B
|
|
1340
|
-
)((
|
|
1340
|
+
)((A, N) => Number(A / BigInt(Math.max(1, N)))), H = v.map(
|
|
1341
1341
|
h,
|
|
1342
|
-
(
|
|
1342
|
+
(A) => A === "body-end" || A === "body-end-bottom"
|
|
1343
1343
|
), U = Q(
|
|
1344
1344
|
H,
|
|
1345
1345
|
() => S.left(
|
|
1346
|
-
|
|
1346
|
+
T(
|
|
1347
1347
|
k,
|
|
1348
1348
|
t,
|
|
1349
1349
|
O,
|
|
1350
1350
|
y
|
|
1351
|
-
)((
|
|
1352
|
-
const
|
|
1353
|
-
return `${Math.max(
|
|
1351
|
+
)((A, N, K, P) => {
|
|
1352
|
+
const M = A + Number(N), j = A + K, J = Math.min(M, j);
|
|
1353
|
+
return `${Math.max(A + P, J)}px`;
|
|
1354
1354
|
})
|
|
1355
1355
|
),
|
|
1356
1356
|
() => S.right("0")
|
|
1357
1357
|
), Y = v.map(
|
|
1358
1358
|
h,
|
|
1359
|
-
(
|
|
1360
|
-
),
|
|
1359
|
+
(A) => A === "body-bottom" || A === "body-end-bottom"
|
|
1360
|
+
), se = Q(
|
|
1361
1361
|
Y,
|
|
1362
1362
|
() => S.top(
|
|
1363
|
-
|
|
1363
|
+
T(
|
|
1364
1364
|
r,
|
|
1365
1365
|
n,
|
|
1366
1366
|
B,
|
|
1367
1367
|
u
|
|
1368
|
-
)((
|
|
1369
|
-
const
|
|
1370
|
-
return `${Math.max(
|
|
1368
|
+
)((A, N, K, P) => {
|
|
1369
|
+
const M = A + Number(N), j = A + K, J = Math.min(M, j);
|
|
1370
|
+
return `${Math.max(A + P, J)}px`;
|
|
1371
1371
|
})
|
|
1372
1372
|
),
|
|
1373
1373
|
() => S.bottom("0")
|
|
1374
|
-
),
|
|
1374
|
+
), Ie = T(
|
|
1375
1375
|
V,
|
|
1376
1376
|
C
|
|
1377
|
-
)((
|
|
1378
|
-
|
|
1377
|
+
)((A, N) => A ? `${N}px` : "0"), q = T(
|
|
1378
|
+
I,
|
|
1379
1379
|
C
|
|
1380
|
-
)((
|
|
1381
|
-
|
|
1380
|
+
)((A, N) => A ? `${N}px` : "0"), de = S.transform(
|
|
1381
|
+
T(
|
|
1382
1382
|
w,
|
|
1383
1383
|
x,
|
|
1384
|
-
|
|
1384
|
+
I,
|
|
1385
1385
|
V
|
|
1386
|
-
)((
|
|
1387
|
-
const
|
|
1388
|
-
return `${
|
|
1386
|
+
)((A, N, K, P) => {
|
|
1387
|
+
const M = K ? `translateX(-${A}px)` : "", j = P ? `translateY(-${N}px)` : "";
|
|
1388
|
+
return `${M} ${j}`.trim() || "none";
|
|
1389
1389
|
})
|
|
1390
1390
|
), ye = S.transform(
|
|
1391
|
-
w.map((
|
|
1391
|
+
w.map((A) => `translateX(-${A}px)`)
|
|
1392
1392
|
), we = S.transform(
|
|
1393
|
-
x.map((
|
|
1394
|
-
), De =
|
|
1393
|
+
x.map((A) => `translateY(-${A}px)`)
|
|
1394
|
+
), De = T(
|
|
1395
1395
|
n,
|
|
1396
1396
|
B
|
|
1397
|
-
)((
|
|
1397
|
+
)((A, N) => A - BigInt(Math.max(1, N))), Ae = T(
|
|
1398
1398
|
t,
|
|
1399
1399
|
O
|
|
1400
|
-
)((
|
|
1401
|
-
let z = null,
|
|
1400
|
+
)((A, N) => A - BigInt(Math.max(1, N)));
|
|
1401
|
+
let z = null, Te = 0, $e = 0;
|
|
1402
1402
|
const Ke = () => {
|
|
1403
|
-
const
|
|
1403
|
+
const A = De.value, N = Ae.value, K = V.value, P = I.value;
|
|
1404
1404
|
if (K && $e !== 0) {
|
|
1405
|
-
const
|
|
1406
|
-
je(0n,
|
|
1405
|
+
const M = It(
|
|
1406
|
+
je(0n, A),
|
|
1407
1407
|
je(
|
|
1408
1408
|
0n,
|
|
1409
1409
|
x.value + BigInt(Math.round($e))
|
|
1410
1410
|
)
|
|
1411
1411
|
);
|
|
1412
|
-
x.set(
|
|
1412
|
+
x.set(M);
|
|
1413
1413
|
}
|
|
1414
|
-
if (
|
|
1415
|
-
const
|
|
1414
|
+
if (P && Te !== 0) {
|
|
1415
|
+
const M = It(
|
|
1416
1416
|
je(0n, N),
|
|
1417
1417
|
je(
|
|
1418
1418
|
0n,
|
|
1419
|
-
w.value + BigInt(Math.round(
|
|
1419
|
+
w.value + BigInt(Math.round(Te))
|
|
1420
1420
|
)
|
|
1421
1421
|
);
|
|
1422
|
-
w.set(
|
|
1422
|
+
w.set(M);
|
|
1423
1423
|
}
|
|
1424
|
-
|
|
1424
|
+
Te = 0, $e = 0, z = null;
|
|
1425
1425
|
};
|
|
1426
|
-
return
|
|
1427
|
-
|
|
1428
|
-
}), V.on((
|
|
1429
|
-
|
|
1426
|
+
return I.on((A) => {
|
|
1427
|
+
A || w.set(0n);
|
|
1428
|
+
}), V.on((A) => {
|
|
1429
|
+
A || x.set(0n);
|
|
1430
1430
|
}), R(
|
|
1431
1431
|
oe(() => {
|
|
1432
1432
|
z && clearTimeout(z);
|
|
1433
1433
|
}),
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
const { deltaX: N, deltaY: K } =
|
|
1437
|
-
|
|
1434
|
+
L.wheel((A) => {
|
|
1435
|
+
A.preventDefault();
|
|
1436
|
+
const { deltaX: N, deltaY: K } = A;
|
|
1437
|
+
Te += N, $e += K, z || (z = setTimeout(Ke, 16));
|
|
1438
1438
|
}),
|
|
1439
1439
|
d.div(
|
|
1440
1440
|
o.class("bc-nine-slice-pane-container"),
|
|
1441
|
-
S.right(
|
|
1441
|
+
S.right(Ie),
|
|
1442
1442
|
S.bottom(q),
|
|
1443
1443
|
// top-start corner
|
|
1444
1444
|
s != null ? d.div(
|
|
@@ -1453,7 +1453,7 @@ function Tr({
|
|
|
1453
1453
|
a != null ? d.div(
|
|
1454
1454
|
o.class("bc-nine-slice-pane bc-nine-slice-header"),
|
|
1455
1455
|
S.top("0"),
|
|
1456
|
-
S.left(
|
|
1456
|
+
S.left(f),
|
|
1457
1457
|
// style.height(headerHeightPx),
|
|
1458
1458
|
// style.width(visibleAreaWidthPx),
|
|
1459
1459
|
d.div(
|
|
@@ -1487,7 +1487,7 @@ function Tr({
|
|
|
1487
1487
|
// middle-center (main body)
|
|
1488
1488
|
d.div(
|
|
1489
1489
|
o.class("bc-nine-slice-pane bc-nine-slice-body"),
|
|
1490
|
-
S.left(
|
|
1490
|
+
S.left(f),
|
|
1491
1491
|
S.top(g),
|
|
1492
1492
|
// style.width(visibleAreaWidth.map(toPx)),
|
|
1493
1493
|
// style.height(visibleAreaHeight.map(toPx)),
|
|
@@ -1514,7 +1514,7 @@ function Tr({
|
|
|
1514
1514
|
l != null ? d.div(
|
|
1515
1515
|
o.class("bc-nine-slice-pane bc-nine-slice-bottom-start"),
|
|
1516
1516
|
S.left("0"),
|
|
1517
|
-
|
|
1517
|
+
se,
|
|
1518
1518
|
// style.height(footerHeightPx),
|
|
1519
1519
|
// style.width(sidebarStartWidthPx),
|
|
1520
1520
|
l
|
|
@@ -1522,8 +1522,8 @@ function Tr({
|
|
|
1522
1522
|
// bottom-center
|
|
1523
1523
|
c != null ? d.div(
|
|
1524
1524
|
o.class("bc-nine-slice-pane bc-nine-slice-footer"),
|
|
1525
|
-
S.left(
|
|
1526
|
-
|
|
1525
|
+
S.left(f),
|
|
1526
|
+
se,
|
|
1527
1527
|
// style.height(footerHeightPx),
|
|
1528
1528
|
// style.width(visibleAreaWidthPx),
|
|
1529
1529
|
d.div(
|
|
@@ -1533,13 +1533,13 @@ function Tr({
|
|
|
1533
1533
|
)
|
|
1534
1534
|
) : null,
|
|
1535
1535
|
// bottom-end corner
|
|
1536
|
-
|
|
1536
|
+
p != null ? d.div(
|
|
1537
1537
|
o.class("bc-nine-slice-pane bc-nine-slice-bottom-end"),
|
|
1538
1538
|
U,
|
|
1539
|
-
|
|
1539
|
+
se,
|
|
1540
1540
|
// style.height(footerHeightPx),
|
|
1541
1541
|
// style.width(sidebarEndWidthPx),
|
|
1542
|
-
|
|
1542
|
+
p
|
|
1543
1543
|
) : null
|
|
1544
1544
|
),
|
|
1545
1545
|
// horizontal scrollbar
|
|
@@ -1548,15 +1548,15 @@ function Tr({
|
|
|
1548
1548
|
S.overflowX("scroll"),
|
|
1549
1549
|
S.left("0"),
|
|
1550
1550
|
S.right(
|
|
1551
|
-
|
|
1551
|
+
T(
|
|
1552
1552
|
V,
|
|
1553
1553
|
C
|
|
1554
|
-
)((
|
|
1554
|
+
)((A, N) => A ? `${N}px` : "0")
|
|
1555
1555
|
),
|
|
1556
1556
|
S.bottom("0"),
|
|
1557
1557
|
S.height(
|
|
1558
|
-
|
|
1559
|
-
(
|
|
1558
|
+
I.map(
|
|
1559
|
+
(A) => A ? "16px" : "0"
|
|
1560
1560
|
)
|
|
1561
1561
|
),
|
|
1562
1562
|
d.div(
|
|
@@ -1564,17 +1564,17 @@ function Tr({
|
|
|
1564
1564
|
"bc-nine-slice-pane bc-nine-slice-horizontal-scrollbar-thumb"
|
|
1565
1565
|
),
|
|
1566
1566
|
S.width(
|
|
1567
|
-
F.map((
|
|
1567
|
+
F.map((A) => `${100 / Math.max(1, A)}%`)
|
|
1568
1568
|
),
|
|
1569
1569
|
S.height("100%"),
|
|
1570
1570
|
S.backgroundColor("#ff000066")
|
|
1571
1571
|
),
|
|
1572
|
-
|
|
1573
|
-
const N =
|
|
1574
|
-
if (
|
|
1575
|
-
const
|
|
1572
|
+
L.scroll((A) => {
|
|
1573
|
+
const N = A.target, K = N.scrollLeft, P = N.scrollWidth - N.clientWidth;
|
|
1574
|
+
if (P > 0) {
|
|
1575
|
+
const M = K / P, j = Ae.value;
|
|
1576
1576
|
w.set(
|
|
1577
|
-
BigInt(Math.round(Number(j) *
|
|
1577
|
+
BigInt(Math.round(Number(j) * M))
|
|
1578
1578
|
);
|
|
1579
1579
|
}
|
|
1580
1580
|
})
|
|
@@ -1585,15 +1585,15 @@ function Tr({
|
|
|
1585
1585
|
S.overflowY("scroll"),
|
|
1586
1586
|
S.top("0"),
|
|
1587
1587
|
S.bottom(
|
|
1588
|
-
|
|
1589
|
-
|
|
1588
|
+
T(
|
|
1589
|
+
I,
|
|
1590
1590
|
C
|
|
1591
|
-
)((
|
|
1591
|
+
)((A, N) => A ? `${N}px` : "0")
|
|
1592
1592
|
),
|
|
1593
1593
|
S.right("0"),
|
|
1594
1594
|
S.width(
|
|
1595
1595
|
V.map(
|
|
1596
|
-
(
|
|
1596
|
+
(A) => A ? "16px" : "0"
|
|
1597
1597
|
)
|
|
1598
1598
|
),
|
|
1599
1599
|
d.div(
|
|
@@ -1602,21 +1602,21 @@ function Tr({
|
|
|
1602
1602
|
),
|
|
1603
1603
|
S.width("100%"),
|
|
1604
1604
|
S.height(
|
|
1605
|
-
|
|
1605
|
+
T(
|
|
1606
1606
|
r,
|
|
1607
1607
|
u,
|
|
1608
1608
|
n,
|
|
1609
|
-
|
|
1610
|
-
)((
|
|
1609
|
+
ee
|
|
1610
|
+
)((A, N, K, P) => `${100 / Math.max(1, P)}%`)
|
|
1611
1611
|
),
|
|
1612
1612
|
S.backgroundColor("#ff000066")
|
|
1613
1613
|
),
|
|
1614
|
-
|
|
1615
|
-
const N =
|
|
1616
|
-
if (
|
|
1617
|
-
const
|
|
1614
|
+
L.scroll((A) => {
|
|
1615
|
+
const N = A.target, K = N.scrollTop, P = N.scrollHeight - N.clientHeight;
|
|
1616
|
+
if (P > 0) {
|
|
1617
|
+
const M = K / P, j = De.value;
|
|
1618
1618
|
x.set(
|
|
1619
|
-
BigInt(Math.round(Number(j) *
|
|
1619
|
+
BigInt(Math.round(Number(j) * M))
|
|
1620
1620
|
);
|
|
1621
1621
|
}
|
|
1622
1622
|
})
|
|
@@ -1626,15 +1626,15 @@ function Tr({
|
|
|
1626
1626
|
);
|
|
1627
1627
|
}
|
|
1628
1628
|
function _t({ header: e, footer: t, body: n, shadowOnScroll: a = !0 }, ...r) {
|
|
1629
|
-
const s =
|
|
1629
|
+
const s = G("none");
|
|
1630
1630
|
function i(u) {
|
|
1631
|
-
const l = u.scrollTop === 0,
|
|
1632
|
-
l &&
|
|
1631
|
+
const l = u.scrollTop === 0, p = u.scrollTop + u.clientHeight >= u.scrollHeight - 1;
|
|
1632
|
+
l && p ? s.set("none") : l ? s.set("bottom") : p ? s.set("top") : s.set("both");
|
|
1633
1633
|
}
|
|
1634
1634
|
return d.div(
|
|
1635
1635
|
o.class("bc-scrollable-panel"),
|
|
1636
1636
|
o.class(
|
|
1637
|
-
|
|
1637
|
+
T(
|
|
1638
1638
|
s,
|
|
1639
1639
|
a
|
|
1640
1640
|
)((u, l) => {
|
|
@@ -1656,9 +1656,9 @@ function _t({ header: e, footer: t, body: n, shadowOnScroll: a = !0 }, ...r) {
|
|
|
1656
1656
|
d.div(
|
|
1657
1657
|
o.class("bc-scrollable-panel__body"),
|
|
1658
1658
|
ne(
|
|
1659
|
-
(u) => oe(
|
|
1659
|
+
(u) => oe(Ze(() => i(u)))
|
|
1660
1660
|
),
|
|
1661
|
-
|
|
1661
|
+
L.scroll((u) => {
|
|
1662
1662
|
const l = u.target;
|
|
1663
1663
|
i(l);
|
|
1664
1664
|
}),
|
|
@@ -1673,10 +1673,10 @@ function ia(e, t, n) {
|
|
|
1673
1673
|
const a = ["bc-sink"];
|
|
1674
1674
|
return e !== "default" && a.push(`bc-sink--${e}`), t !== "md" && a.push(`bc-sink--padding-${t}`), n !== "lg" && a.push(`bc-sink--rounded-${n}`), a.join(" ");
|
|
1675
1675
|
}
|
|
1676
|
-
function
|
|
1676
|
+
function Tr({ variant: e = "default", size: t = "md", roundedness: n = "lg" } = {}, ...a) {
|
|
1677
1677
|
return d.div(
|
|
1678
1678
|
o.class(
|
|
1679
|
-
|
|
1679
|
+
T(
|
|
1680
1680
|
e,
|
|
1681
1681
|
t,
|
|
1682
1682
|
n
|
|
@@ -1732,16 +1732,16 @@ const Ce = {
|
|
|
1732
1732
|
onBeforeOpen: c,
|
|
1733
1733
|
onAfterOpen: u,
|
|
1734
1734
|
buildListboxContent: l
|
|
1735
|
-
} = e,
|
|
1735
|
+
} = e, p = G(!1), b = G(-1), k = G(null), m = he("dropdown"), y = he("listbox");
|
|
1736
1736
|
let h, x;
|
|
1737
|
-
const w = (
|
|
1738
|
-
t?.(
|
|
1739
|
-
}, g = (
|
|
1737
|
+
const w = (f) => {
|
|
1738
|
+
t?.(f), p.set(!1), b.set(-1), k.set(null), h?.focus();
|
|
1739
|
+
}, g = (f) => {
|
|
1740
1740
|
const C = Ce.getValues(v.get(s));
|
|
1741
|
-
switch (
|
|
1741
|
+
switch (f.key) {
|
|
1742
1742
|
case "ArrowDown": {
|
|
1743
|
-
if (
|
|
1744
|
-
|
|
1743
|
+
if (f.preventDefault(), !p.value)
|
|
1744
|
+
p.set(!0), C.length > 0 && (b.set(0), k.set(C[0]));
|
|
1745
1745
|
else {
|
|
1746
1746
|
const $ = Math.min(
|
|
1747
1747
|
b.value + 1,
|
|
@@ -1752,32 +1752,32 @@ const Ce = {
|
|
|
1752
1752
|
break;
|
|
1753
1753
|
}
|
|
1754
1754
|
case "ArrowUp": {
|
|
1755
|
-
if (
|
|
1755
|
+
if (f.preventDefault(), p.value) {
|
|
1756
1756
|
const $ = Math.max(b.value - 1, 0);
|
|
1757
1757
|
b.set($), k.set(C[$] ?? null);
|
|
1758
1758
|
}
|
|
1759
1759
|
break;
|
|
1760
1760
|
}
|
|
1761
1761
|
case "Enter": {
|
|
1762
|
-
if (
|
|
1762
|
+
if (f.preventDefault(), p.value && b.value >= 0) {
|
|
1763
1763
|
const $ = C[b.value];
|
|
1764
1764
|
$ != null && w($);
|
|
1765
1765
|
} else {
|
|
1766
1766
|
c?.();
|
|
1767
1767
|
const $ = Ce.getValues(v.get(s));
|
|
1768
|
-
|
|
1768
|
+
p.set(!0), $.length > 0 && (b.set(0), k.set($[0])), setTimeout(() => u?.(), 0);
|
|
1769
1769
|
}
|
|
1770
1770
|
break;
|
|
1771
1771
|
}
|
|
1772
1772
|
case "Escape": {
|
|
1773
|
-
|
|
1773
|
+
p.value && (f.preventDefault(), p.set(!1), b.set(-1), k.set(null), h?.focus());
|
|
1774
1774
|
break;
|
|
1775
1775
|
}
|
|
1776
1776
|
case " ": {
|
|
1777
1777
|
if (v.get(i)) {
|
|
1778
|
-
|
|
1778
|
+
f.preventDefault();
|
|
1779
1779
|
const $ = Ce.getValues(v.get(s));
|
|
1780
|
-
|
|
1780
|
+
p.set(!p.value), p.value && $.length > 0 && (b.set(0), k.set($[0]));
|
|
1781
1781
|
}
|
|
1782
1782
|
break;
|
|
1783
1783
|
}
|
|
@@ -1786,49 +1786,49 @@ const Ce = {
|
|
|
1786
1786
|
return ce(
|
|
1787
1787
|
{
|
|
1788
1788
|
...e,
|
|
1789
|
-
input:
|
|
1789
|
+
input: Zt(
|
|
1790
1790
|
o.class("bc-dropdown__trigger"),
|
|
1791
1791
|
d.span(o.class("bc-dropdown__display"), r),
|
|
1792
|
-
|
|
1792
|
+
te(
|
|
1793
1793
|
{ icon: "ph:caret-up-down-bold", color: "neutral" },
|
|
1794
1794
|
o.class("bc-dropdown__arrow")
|
|
1795
1795
|
)
|
|
1796
1796
|
)
|
|
1797
1797
|
},
|
|
1798
|
-
Be((
|
|
1798
|
+
Be((f) => R(
|
|
1799
1799
|
ne((C) => (h = C, C.addEventListener("keydown", g), oe(
|
|
1800
1800
|
() => C.removeEventListener("keydown", g)
|
|
1801
1801
|
))),
|
|
1802
1802
|
fe(e),
|
|
1803
1803
|
o.id(m),
|
|
1804
1804
|
o.tabindex(0),
|
|
1805
|
-
|
|
1806
|
-
|
|
1805
|
+
E.controls(y),
|
|
1806
|
+
E.expanded(p),
|
|
1807
1807
|
o.class("bc-dropdown"),
|
|
1808
1808
|
o.role(a),
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1809
|
+
E.activedescendant(
|
|
1810
|
+
T(
|
|
1811
|
+
p,
|
|
1812
1812
|
k
|
|
1813
1813
|
)(
|
|
1814
1814
|
(C, $) => C && $ != null ? `dropdown-option-${String($)}` : ""
|
|
1815
1815
|
)
|
|
1816
1816
|
),
|
|
1817
|
-
n != null ?
|
|
1817
|
+
n != null ? L.blur(() => {
|
|
1818
1818
|
setTimeout(() => {
|
|
1819
|
-
x?.contains(document.activeElement) || (
|
|
1819
|
+
x?.contains(document.activeElement) || (p.set(!1), b.set(-1), n());
|
|
1820
1820
|
}, 100);
|
|
1821
1821
|
}) : W,
|
|
1822
|
-
|
|
1822
|
+
Ge({
|
|
1823
1823
|
content: () => d.div(
|
|
1824
1824
|
ne((C) => {
|
|
1825
1825
|
x = C;
|
|
1826
1826
|
}),
|
|
1827
|
-
S.minWidth(
|
|
1827
|
+
S.minWidth(f.$.width.map((C) => `${C - 10}px`)),
|
|
1828
1828
|
o.class("bc-dropdown__listbox"),
|
|
1829
1829
|
o.role("listbox"),
|
|
1830
1830
|
o.id(y),
|
|
1831
|
-
|
|
1831
|
+
E.labelledby(m),
|
|
1832
1832
|
l({
|
|
1833
1833
|
dropdownId: m,
|
|
1834
1834
|
listboxId: y,
|
|
@@ -1841,20 +1841,20 @@ const Ce = {
|
|
|
1841
1841
|
placement: "bottom-start",
|
|
1842
1842
|
hasPopup: "listbox",
|
|
1843
1843
|
showOn: (C, $) => {
|
|
1844
|
-
const
|
|
1844
|
+
const D = $;
|
|
1845
1845
|
$ = () => {
|
|
1846
|
-
|
|
1846
|
+
p.set(!1), b.set(-1), k.set(null), D();
|
|
1847
1847
|
};
|
|
1848
1848
|
const _ = () => {
|
|
1849
|
-
if (
|
|
1849
|
+
if (p.value)
|
|
1850
1850
|
$();
|
|
1851
1851
|
else {
|
|
1852
1852
|
c?.();
|
|
1853
|
-
const
|
|
1854
|
-
|
|
1853
|
+
const I = Ce.getValues(v.get(s));
|
|
1854
|
+
p.set(!0), I.length > 0 && (b.set(0), k.set(I[0])), C(), setTimeout(() => u?.(), 0);
|
|
1855
1855
|
}
|
|
1856
1856
|
};
|
|
1857
|
-
return
|
|
1857
|
+
return L.click(_);
|
|
1858
1858
|
},
|
|
1859
1859
|
showDelay: 0,
|
|
1860
1860
|
hideDelay: 0,
|
|
@@ -1864,34 +1864,34 @@ const Ce = {
|
|
|
1864
1864
|
);
|
|
1865
1865
|
}, Xt = (e, t, n, a, r) => Ue(
|
|
1866
1866
|
e,
|
|
1867
|
-
(s) =>
|
|
1867
|
+
(s) => Et(s, {
|
|
1868
1868
|
value: (i) => {
|
|
1869
|
-
const c =
|
|
1869
|
+
const c = T(
|
|
1870
1870
|
i,
|
|
1871
1871
|
n
|
|
1872
|
-
)((l,
|
|
1872
|
+
)((l, p) => t(l.value, p)), u = T(
|
|
1873
1873
|
i,
|
|
1874
1874
|
r
|
|
1875
|
-
)((l,
|
|
1875
|
+
)((l, p) => p != null && t(l.value, p));
|
|
1876
1876
|
return d.div(
|
|
1877
1877
|
o.class("bc-dropdown__option"),
|
|
1878
1878
|
o.class(
|
|
1879
|
-
|
|
1879
|
+
T(
|
|
1880
1880
|
c,
|
|
1881
1881
|
u,
|
|
1882
1882
|
i
|
|
1883
|
-
)((l,
|
|
1883
|
+
)((l, p, b) => {
|
|
1884
1884
|
const k = [];
|
|
1885
|
-
return l && k.push("bc-dropdown__option--selected"),
|
|
1885
|
+
return l && k.push("bc-dropdown__option--selected"), p && k.push("bc-dropdown__option--focused"), b.disabled && k.push("bc-dropdown__option--disabled"), k.join(" ");
|
|
1886
1886
|
})
|
|
1887
1887
|
),
|
|
1888
1888
|
o.role("option"),
|
|
1889
1889
|
o.id(i.map((l) => `dropdown-option-${String(l.value)}`)),
|
|
1890
|
-
|
|
1890
|
+
E.selected(c),
|
|
1891
1891
|
An("value", i.$.value),
|
|
1892
1892
|
Q(
|
|
1893
1893
|
i.map((l) => !l.disabled),
|
|
1894
|
-
() =>
|
|
1894
|
+
() => L.click(() => a(i.value.value)),
|
|
1895
1895
|
() => W
|
|
1896
1896
|
),
|
|
1897
1897
|
d.div(
|
|
@@ -1911,9 +1911,9 @@ const Ce = {
|
|
|
1911
1911
|
group: (i) => d.div(
|
|
1912
1912
|
o.class("bc-dropdown__group"),
|
|
1913
1913
|
o.role("group"),
|
|
1914
|
-
|
|
1914
|
+
E.label(i.$.group),
|
|
1915
1915
|
d.div(o.class("bc-dropdown__group-label"), i.$.group),
|
|
1916
|
-
|
|
1916
|
+
Le(
|
|
1917
1917
|
i.$.options,
|
|
1918
1918
|
(c) => Xt(
|
|
1919
1919
|
c,
|
|
@@ -1931,13 +1931,13 @@ const Ce = {
|
|
|
1931
1931
|
value: t,
|
|
1932
1932
|
options: n,
|
|
1933
1933
|
unselectedLabel: a,
|
|
1934
|
-
equality: r = (l,
|
|
1934
|
+
equality: r = (l, p) => l === p,
|
|
1935
1935
|
placeholder: s,
|
|
1936
1936
|
searchable: i = !1
|
|
1937
|
-
} = e, c =
|
|
1937
|
+
} = e, c = T(
|
|
1938
1938
|
t,
|
|
1939
1939
|
n
|
|
1940
|
-
)((l,
|
|
1940
|
+
)((l, p) => {
|
|
1941
1941
|
if (l == null) return "";
|
|
1942
1942
|
const b = (k) => {
|
|
1943
1943
|
for (const m of k) {
|
|
@@ -1949,8 +1949,8 @@ const Ce = {
|
|
|
1949
1949
|
}
|
|
1950
1950
|
}
|
|
1951
1951
|
};
|
|
1952
|
-
return b(
|
|
1953
|
-
}), u =
|
|
1952
|
+
return b(p) || String(l);
|
|
1953
|
+
}), u = T(i)((l) => !l);
|
|
1954
1954
|
return Qt({
|
|
1955
1955
|
...e,
|
|
1956
1956
|
role: "dropdown",
|
|
@@ -1959,14 +1959,14 @@ const Ce = {
|
|
|
1959
1959
|
() => c,
|
|
1960
1960
|
() => ae(
|
|
1961
1961
|
ie,
|
|
1962
|
-
(l) =>
|
|
1962
|
+
(l) => Pe(s, a, l.$.selectOne)
|
|
1963
1963
|
)
|
|
1964
1964
|
),
|
|
1965
1965
|
optionsSource: n,
|
|
1966
1966
|
allowSpaceToggle: u,
|
|
1967
|
-
buildListboxContent: ({ focusedValue: l, onSelect:
|
|
1967
|
+
buildListboxContent: ({ focusedValue: l, onSelect: p }) => Le(
|
|
1968
1968
|
n,
|
|
1969
|
-
(b) => Xt(b, r, t,
|
|
1969
|
+
(b) => Xt(b, r, t, p, l)
|
|
1970
1970
|
)
|
|
1971
1971
|
});
|
|
1972
1972
|
}, ua = (e) => {
|
|
@@ -1982,35 +1982,35 @@ const Ce = {
|
|
|
1982
1982
|
content: ua(e)
|
|
1983
1983
|
}), en = (e, t, n, a, r, s) => Ue(
|
|
1984
1984
|
e,
|
|
1985
|
-
(i) =>
|
|
1985
|
+
(i) => Et(i, {
|
|
1986
1986
|
value: (c) => {
|
|
1987
|
-
const u =
|
|
1987
|
+
const u = T(
|
|
1988
1988
|
c,
|
|
1989
1989
|
n
|
|
1990
|
-
)((
|
|
1990
|
+
)((p, b) => t(p.value, b)), l = T(
|
|
1991
1991
|
c,
|
|
1992
1992
|
r
|
|
1993
1993
|
)(
|
|
1994
|
-
(
|
|
1994
|
+
(p, b) => b != null && t(p.value, b)
|
|
1995
1995
|
);
|
|
1996
1996
|
return d.div(
|
|
1997
1997
|
o.class("bc-dropdown__option"),
|
|
1998
1998
|
o.class(
|
|
1999
|
-
|
|
1999
|
+
T(
|
|
2000
2000
|
u,
|
|
2001
2001
|
l,
|
|
2002
2002
|
c
|
|
2003
|
-
)((
|
|
2003
|
+
)((p, b, k) => {
|
|
2004
2004
|
const m = [];
|
|
2005
|
-
return
|
|
2005
|
+
return p && m.push("bc-dropdown__option--selected"), b && m.push("bc-dropdown__option--focused"), k.disabled && m.push("bc-dropdown__option--disabled"), m.join(" ");
|
|
2006
2006
|
})
|
|
2007
2007
|
),
|
|
2008
2008
|
o.role("option"),
|
|
2009
|
-
o.id(c.map((
|
|
2010
|
-
|
|
2009
|
+
o.id(c.map((p) => `dropdown-option-${String(p.value)}`)),
|
|
2010
|
+
E.selected(u),
|
|
2011
2011
|
Q(
|
|
2012
|
-
c.map((
|
|
2013
|
-
() =>
|
|
2012
|
+
c.map((p) => !p.disabled),
|
|
2013
|
+
() => L.click(() => a(c.value.value)),
|
|
2014
2014
|
() => W
|
|
2015
2015
|
),
|
|
2016
2016
|
d.div(
|
|
@@ -2033,9 +2033,9 @@ const Ce = {
|
|
|
2033
2033
|
group: (c) => d.div(
|
|
2034
2034
|
o.class("bc-dropdown__group"),
|
|
2035
2035
|
o.role("group"),
|
|
2036
|
-
|
|
2036
|
+
E.label(c.$.group),
|
|
2037
2037
|
d.div(o.class("bc-dropdown__group-label"), c.$.group),
|
|
2038
|
-
|
|
2038
|
+
Le(
|
|
2039
2039
|
c.$.options,
|
|
2040
2040
|
(u) => en(
|
|
2041
2041
|
u,
|
|
@@ -2055,20 +2055,20 @@ const Ce = {
|
|
|
2055
2055
|
loadOptions: n,
|
|
2056
2056
|
renderOption: a,
|
|
2057
2057
|
renderValue: r,
|
|
2058
|
-
equality: s = (g,
|
|
2058
|
+
equality: s = (g, f) => g === f,
|
|
2059
2059
|
placeholder: i,
|
|
2060
2060
|
searchPlaceholder: c,
|
|
2061
2061
|
debounceMs: u = 150
|
|
2062
|
-
} = e, l =
|
|
2062
|
+
} = e, l = G(""), p = G(!1), b = G([]);
|
|
2063
2063
|
let k;
|
|
2064
2064
|
const m = v.toSignal(t), y = () => (r ?? a)(m);
|
|
2065
2065
|
let h = null;
|
|
2066
2066
|
const x = (g) => {
|
|
2067
|
-
|
|
2068
|
-
b.set(
|
|
2067
|
+
p.set(!0), Promise.resolve(n(g)).then((f) => {
|
|
2068
|
+
b.set(f ?? []);
|
|
2069
2069
|
}).catch(() => {
|
|
2070
2070
|
b.set([]);
|
|
2071
|
-
}).finally(() =>
|
|
2071
|
+
}).finally(() => p.set(!1));
|
|
2072
2072
|
}, w = (g) => {
|
|
2073
2073
|
h != null && (clearTimeout(h), h = null), h = setTimeout(
|
|
2074
2074
|
() => {
|
|
@@ -2081,7 +2081,7 @@ const Ce = {
|
|
|
2081
2081
|
...e,
|
|
2082
2082
|
role: "combobox",
|
|
2083
2083
|
display: Q(
|
|
2084
|
-
|
|
2084
|
+
T(t)((g) => g != null),
|
|
2085
2085
|
y,
|
|
2086
2086
|
() => ae(ie, (g) => g.$.selectOne)
|
|
2087
2087
|
),
|
|
@@ -2093,7 +2093,7 @@ const Ce = {
|
|
|
2093
2093
|
onAfterOpen: () => {
|
|
2094
2094
|
k?.focus();
|
|
2095
2095
|
},
|
|
2096
|
-
buildListboxContent: ({ focusedValue: g, handleKeyDown:
|
|
2096
|
+
buildListboxContent: ({ focusedValue: g, handleKeyDown: f, onSelect: C }) => R(
|
|
2097
2097
|
// Search input at the top
|
|
2098
2098
|
d.div(
|
|
2099
2099
|
o.class("bc-dropdown__search"),
|
|
@@ -2101,27 +2101,27 @@ const Ce = {
|
|
|
2101
2101
|
o.type("text"),
|
|
2102
2102
|
o.class("bc-dropdown__search-input"),
|
|
2103
2103
|
o.placeholder(
|
|
2104
|
-
|
|
2104
|
+
T(
|
|
2105
2105
|
c,
|
|
2106
2106
|
i
|
|
2107
|
-
)(($,
|
|
2107
|
+
)(($, D) => $ ?? D ?? "Search")
|
|
2108
2108
|
),
|
|
2109
2109
|
o.value(l),
|
|
2110
2110
|
ne(($) => (k = $, W)),
|
|
2111
|
-
|
|
2112
|
-
const
|
|
2113
|
-
l.set(
|
|
2111
|
+
L.input(($) => {
|
|
2112
|
+
const D = $.target;
|
|
2113
|
+
l.set(D.value), w(D.value);
|
|
2114
2114
|
}),
|
|
2115
|
-
|
|
2115
|
+
L.keydown(f)
|
|
2116
2116
|
)
|
|
2117
2117
|
),
|
|
2118
2118
|
Q(
|
|
2119
|
-
|
|
2119
|
+
p,
|
|
2120
2120
|
() => d.div(
|
|
2121
2121
|
o.class("bc-dropdown__loading"),
|
|
2122
|
-
|
|
2122
|
+
te({ icon: "ph:spinner-bold", color: "neutral" })
|
|
2123
2123
|
),
|
|
2124
|
-
() =>
|
|
2124
|
+
() => Le(
|
|
2125
2125
|
b,
|
|
2126
2126
|
($) => en(
|
|
2127
2127
|
$,
|
|
@@ -2158,61 +2158,61 @@ function tn(e) {
|
|
|
2158
2158
|
showOn: c = "click",
|
|
2159
2159
|
closable: u = !0,
|
|
2160
2160
|
onClose: l,
|
|
2161
|
-
onAction:
|
|
2161
|
+
onAction: p,
|
|
2162
2162
|
ariaLabel: b,
|
|
2163
2163
|
ariaLabelledBy: k
|
|
2164
|
-
} = e, m = he("menu"), y =
|
|
2164
|
+
} = e, m = he("menu"), y = G(-1), h = G([]);
|
|
2165
2165
|
let x = null;
|
|
2166
2166
|
return R(
|
|
2167
|
-
|
|
2167
|
+
Ge({
|
|
2168
2168
|
content: () => ne((w) => {
|
|
2169
2169
|
x = document.activeElement;
|
|
2170
|
-
const g = (_,
|
|
2171
|
-
if (
|
|
2170
|
+
const g = (_, I, V) => {
|
|
2171
|
+
if (I.length === 0) return -1;
|
|
2172
2172
|
let O = _ + V, B = 0;
|
|
2173
|
-
for (; B <
|
|
2174
|
-
O >=
|
|
2175
|
-
const F =
|
|
2173
|
+
for (; B < I.length; ) {
|
|
2174
|
+
O >= I.length && (O = 0), O < 0 && (O = I.length - 1);
|
|
2175
|
+
const F = I[O];
|
|
2176
2176
|
if (F && F.getAttribute("aria-disabled") !== "true")
|
|
2177
2177
|
return O;
|
|
2178
2178
|
O += V, B++;
|
|
2179
2179
|
}
|
|
2180
2180
|
return _;
|
|
2181
|
-
},
|
|
2182
|
-
const
|
|
2181
|
+
}, f = (_) => {
|
|
2182
|
+
const I = h.value, V = y.value;
|
|
2183
2183
|
switch (_.key) {
|
|
2184
2184
|
case "ArrowDown":
|
|
2185
2185
|
_.preventDefault(), _.stopPropagation();
|
|
2186
|
-
const O = g(V,
|
|
2187
|
-
C(O,
|
|
2186
|
+
const O = g(V, I, 1);
|
|
2187
|
+
C(O, I);
|
|
2188
2188
|
break;
|
|
2189
2189
|
case "ArrowUp":
|
|
2190
2190
|
_.preventDefault(), _.stopPropagation();
|
|
2191
|
-
const B = g(V,
|
|
2192
|
-
C(B,
|
|
2191
|
+
const B = g(V, I, -1);
|
|
2192
|
+
C(B, I);
|
|
2193
2193
|
break;
|
|
2194
2194
|
case "Enter":
|
|
2195
2195
|
case " ":
|
|
2196
|
-
if (_.preventDefault(), _.stopPropagation(), V >= 0 &&
|
|
2197
|
-
const F =
|
|
2196
|
+
if (_.preventDefault(), _.stopPropagation(), V >= 0 && I[V]) {
|
|
2197
|
+
const F = I[V];
|
|
2198
2198
|
if (F.getAttribute("aria-disabled") === "true")
|
|
2199
2199
|
return;
|
|
2200
|
-
const
|
|
2201
|
-
|
|
2200
|
+
const ee = F.getAttribute("data-key");
|
|
2201
|
+
ee && p && p(ee), F.click(), l?.();
|
|
2202
2202
|
}
|
|
2203
2203
|
break;
|
|
2204
2204
|
case "Escape":
|
|
2205
2205
|
l?.();
|
|
2206
2206
|
break;
|
|
2207
2207
|
case "Home":
|
|
2208
|
-
_.preventDefault(), _.stopPropagation(),
|
|
2208
|
+
_.preventDefault(), _.stopPropagation(), I.length > 0 && C(0, I);
|
|
2209
2209
|
break;
|
|
2210
2210
|
case "End":
|
|
2211
|
-
_.preventDefault(), _.stopPropagation(),
|
|
2211
|
+
_.preventDefault(), _.stopPropagation(), I.length > 0 && C(I.length - 1, I);
|
|
2212
2212
|
break;
|
|
2213
2213
|
case "ArrowRight":
|
|
2214
|
-
if (_.preventDefault(), _.stopPropagation(), V >= 0 &&
|
|
2215
|
-
const F =
|
|
2214
|
+
if (_.preventDefault(), _.stopPropagation(), V >= 0 && I[V]) {
|
|
2215
|
+
const F = I[V];
|
|
2216
2216
|
F.classList.contains(
|
|
2217
2217
|
"bc-menu-item--has-submenu"
|
|
2218
2218
|
) && F.dispatchEvent(new Event("mouseenter"));
|
|
@@ -2222,59 +2222,59 @@ function tn(e) {
|
|
|
2222
2222
|
_.preventDefault(), _.stopPropagation(), l?.();
|
|
2223
2223
|
break;
|
|
2224
2224
|
}
|
|
2225
|
-
}, C = (_,
|
|
2226
|
-
y.value >= 0 &&
|
|
2225
|
+
}, C = (_, I) => {
|
|
2226
|
+
y.value >= 0 && I[y.value] && (I[y.value].classList.remove(
|
|
2227
2227
|
"bc-menu-item--focused"
|
|
2228
|
-
),
|
|
2228
|
+
), I[y.value].removeAttribute("aria-selected")), _ >= 0 && I[_] && (I[_].classList.add("bc-menu-item--focused"), I[_].setAttribute("aria-selected", "true"), y.set(_), typeof I[_].scrollIntoView == "function" && I[_].scrollIntoView({ block: "nearest" }));
|
|
2229
2229
|
}, $ = () => {
|
|
2230
2230
|
const _ = Array.from(
|
|
2231
2231
|
w.querySelectorAll('[role="menuitem"]')
|
|
2232
2232
|
);
|
|
2233
2233
|
if (h.set(_), _.length > 0) {
|
|
2234
|
-
const
|
|
2234
|
+
const I = _.findIndex(
|
|
2235
2235
|
(V) => V.getAttribute("aria-disabled") !== "true"
|
|
2236
2236
|
);
|
|
2237
|
-
|
|
2237
|
+
I >= 0 && C(I, _);
|
|
2238
2238
|
}
|
|
2239
|
-
},
|
|
2240
|
-
return
|
|
2239
|
+
}, D = new MutationObserver($);
|
|
2240
|
+
return D.observe(w, { childList: !0, subtree: !0 }), setTimeout(() => {
|
|
2241
2241
|
$(), w.focus();
|
|
2242
|
-
}, 0), document.addEventListener("keydown",
|
|
2242
|
+
}, 0), document.addEventListener("keydown", f, !0), R(
|
|
2243
2243
|
oe(() => {
|
|
2244
|
-
|
|
2244
|
+
D.disconnect(), document.removeEventListener("keydown", f, !0), x && x.focus();
|
|
2245
2245
|
}),
|
|
2246
2246
|
o.class("bc-menu"),
|
|
2247
2247
|
o.id(m),
|
|
2248
2248
|
o.role("menu"),
|
|
2249
2249
|
o.tabindex(-1),
|
|
2250
|
-
|
|
2251
|
-
b ?
|
|
2252
|
-
k ?
|
|
2253
|
-
|
|
2250
|
+
E.orientation("vertical"),
|
|
2251
|
+
b ? E.label(b) : R(),
|
|
2252
|
+
k ? E.labelledby(k) : R(),
|
|
2253
|
+
E.activedescendant(
|
|
2254
2254
|
y.map((_) => {
|
|
2255
|
-
const
|
|
2256
|
-
return _ >= 0 &&
|
|
2255
|
+
const I = h.value;
|
|
2256
|
+
return _ >= 0 && I[_] ? I[_].id || `${m}-item-${_}` : "";
|
|
2257
2257
|
})
|
|
2258
2258
|
),
|
|
2259
|
-
|
|
2259
|
+
L.click((_) => {
|
|
2260
2260
|
const V = _.target.closest(
|
|
2261
2261
|
'[role="menuitem"]'
|
|
2262
2262
|
);
|
|
2263
2263
|
if (V && V.getAttribute("aria-disabled") !== "true") {
|
|
2264
2264
|
const O = V.getAttribute("data-key");
|
|
2265
|
-
O &&
|
|
2265
|
+
O && p && p(O);
|
|
2266
2266
|
}
|
|
2267
2267
|
}),
|
|
2268
2268
|
// Live region for screen reader announcements
|
|
2269
2269
|
d.div(
|
|
2270
2270
|
o.class("sr-only"),
|
|
2271
|
-
|
|
2272
|
-
|
|
2271
|
+
E.live("polite"),
|
|
2272
|
+
E.atomic(!0),
|
|
2273
2273
|
y.map((_) => {
|
|
2274
|
-
const
|
|
2275
|
-
if (_ >= 0 &&
|
|
2276
|
-
const V =
|
|
2277
|
-
return
|
|
2274
|
+
const I = h.value;
|
|
2275
|
+
if (_ >= 0 && I[_]) {
|
|
2276
|
+
const V = I[_].textContent || "";
|
|
2277
|
+
return I[_].getAttribute("aria-disabled") === "true" ? `${V}, disabled` : `${V}, ${_ + 1} of ${I.length}`;
|
|
2278
2278
|
}
|
|
2279
2279
|
return "";
|
|
2280
2280
|
})
|
|
@@ -2293,7 +2293,7 @@ function tn(e) {
|
|
|
2293
2293
|
})
|
|
2294
2294
|
);
|
|
2295
2295
|
}
|
|
2296
|
-
function
|
|
2296
|
+
function Pr(e) {
|
|
2297
2297
|
const {
|
|
2298
2298
|
key: t,
|
|
2299
2299
|
content: n,
|
|
@@ -2304,23 +2304,23 @@ function Lr(e) {
|
|
|
2304
2304
|
ariaLabel: c,
|
|
2305
2305
|
submenu: u,
|
|
2306
2306
|
submenuPlacement: l = "right-start"
|
|
2307
|
-
} = e,
|
|
2307
|
+
} = e, p = t ?? he("menu-item"), b = `menu-item-${p}`, k = u != null;
|
|
2308
2308
|
return d.div(
|
|
2309
2309
|
o.class(
|
|
2310
|
-
|
|
2310
|
+
T(s)(
|
|
2311
2311
|
(m) => `bc-menu-item ${m ? "bc-menu-item--disabled" : ""} ${k ? "bc-menu-item--has-submenu" : ""}`
|
|
2312
2312
|
)
|
|
2313
2313
|
),
|
|
2314
2314
|
o.id(b),
|
|
2315
2315
|
o.role("menuitem"),
|
|
2316
2316
|
o.tabindex(-1),
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2317
|
+
lt.key(p),
|
|
2318
|
+
E.disabled(s),
|
|
2319
|
+
E.selected(!1),
|
|
2320
2320
|
// Will be updated by focus management
|
|
2321
|
-
k ?
|
|
2322
|
-
c ?
|
|
2323
|
-
|
|
2321
|
+
k ? E.expanded(!1) : R(),
|
|
2322
|
+
c ? E.label(c) : R(),
|
|
2323
|
+
L.click((m) => {
|
|
2324
2324
|
if (v.get(s)) {
|
|
2325
2325
|
m.preventDefault(), m.stopPropagation();
|
|
2326
2326
|
return;
|
|
@@ -2334,7 +2334,7 @@ function Lr(e) {
|
|
|
2334
2334
|
// End content
|
|
2335
2335
|
r && d.span(o.class("bc-menu-item__end"), r),
|
|
2336
2336
|
// Submenu (if present)
|
|
2337
|
-
k && u ?
|
|
2337
|
+
k && u ? Ge({
|
|
2338
2338
|
content: () => R(
|
|
2339
2339
|
o.class("bc-menu bc-submenu"),
|
|
2340
2340
|
o.role("menu"),
|
|
@@ -2356,7 +2356,7 @@ function nn(e = {}) {
|
|
|
2356
2356
|
return d.div(
|
|
2357
2357
|
o.class("bc-menu-separator"),
|
|
2358
2358
|
o.role("separator"),
|
|
2359
|
-
|
|
2359
|
+
E.orientation("horizontal"),
|
|
2360
2360
|
t && d.span(o.class("bc-menu-separator__label"), t)
|
|
2361
2361
|
);
|
|
2362
2362
|
}
|
|
@@ -2369,12 +2369,12 @@ function rn(e, t, n) {
|
|
|
2369
2369
|
function on(e, t, n) {
|
|
2370
2370
|
return e.some((a) => n(a, t));
|
|
2371
2371
|
}
|
|
2372
|
-
function
|
|
2372
|
+
function ln(e, t, n) {
|
|
2373
2373
|
for (const a of e)
|
|
2374
2374
|
if (a.type === "value") {
|
|
2375
2375
|
if (n(a.value, t)) return { label: a.label };
|
|
2376
2376
|
} else if (a.type === "group") {
|
|
2377
|
-
const r =
|
|
2377
|
+
const r = ln(
|
|
2378
2378
|
a.options,
|
|
2379
2379
|
t,
|
|
2380
2380
|
n
|
|
@@ -2383,9 +2383,9 @@ function sn(e, t, n) {
|
|
|
2383
2383
|
}
|
|
2384
2384
|
}
|
|
2385
2385
|
function fa(e, t, n) {
|
|
2386
|
-
return
|
|
2386
|
+
return ln(e, t, n)?.label ?? String(t);
|
|
2387
2387
|
}
|
|
2388
|
-
function
|
|
2388
|
+
function sn(e, t, n) {
|
|
2389
2389
|
const a = t.trim().toLowerCase(), r = n ?? ((i, c) => c.label.toLowerCase().includes(i));
|
|
2390
2390
|
if (a === "") return e;
|
|
2391
2391
|
const s = [];
|
|
@@ -2393,7 +2393,7 @@ function ln(e, t, n) {
|
|
|
2393
2393
|
if (i.type === "value")
|
|
2394
2394
|
r(a, { label: i.label }) && s.push(i);
|
|
2395
2395
|
else if (i.type === "group") {
|
|
2396
|
-
const c =
|
|
2396
|
+
const c = sn(
|
|
2397
2397
|
i.options,
|
|
2398
2398
|
a,
|
|
2399
2399
|
r
|
|
@@ -2406,10 +2406,10 @@ function cn(e) {
|
|
|
2406
2406
|
const { values: t, options: n, equality: a, disabled: r, onRemove: s } = e;
|
|
2407
2407
|
return mn(
|
|
2408
2408
|
t,
|
|
2409
|
-
() =>
|
|
2409
|
+
() => Le(
|
|
2410
2410
|
t,
|
|
2411
2411
|
(i) => Jt({
|
|
2412
|
-
value:
|
|
2412
|
+
value: T(
|
|
2413
2413
|
i,
|
|
2414
2414
|
n
|
|
2415
2415
|
)((c, u) => fa(u, c, a)),
|
|
@@ -2424,32 +2424,32 @@ function un(e) {
|
|
|
2424
2424
|
const {
|
|
2425
2425
|
value: t,
|
|
2426
2426
|
options: n,
|
|
2427
|
-
equality: a = (l,
|
|
2427
|
+
equality: a = (l, p) => l === p,
|
|
2428
2428
|
placeholder: r
|
|
2429
2429
|
} = e, s = (l) => {
|
|
2430
|
-
const
|
|
2431
|
-
e.onChange?.(rn(
|
|
2430
|
+
const p = v.get(t);
|
|
2431
|
+
e.onChange?.(rn(p, l, a));
|
|
2432
2432
|
}, i = (l) => {
|
|
2433
|
-
const
|
|
2434
|
-
e.onChange?.(an(
|
|
2435
|
-
}, c = (l) =>
|
|
2433
|
+
const p = v.get(t);
|
|
2434
|
+
e.onChange?.(an(p, l, a));
|
|
2435
|
+
}, c = (l) => T(t)((p) => on(p, l, a)), u = tn({
|
|
2436
2436
|
items: () => {
|
|
2437
|
-
const l = v.get(n),
|
|
2437
|
+
const l = v.get(n), p = [];
|
|
2438
2438
|
for (const b of l)
|
|
2439
2439
|
if (b.type === "value") {
|
|
2440
2440
|
const k = c(b.value);
|
|
2441
|
-
|
|
2441
|
+
p.push(
|
|
2442
2442
|
d.div(
|
|
2443
2443
|
o.role("menuitem"),
|
|
2444
2444
|
o.tabindex(-1),
|
|
2445
|
-
|
|
2446
|
-
|
|
2445
|
+
E.disabled(b.disabled === !0),
|
|
2446
|
+
E.checked(k),
|
|
2447
2447
|
o.class("bc-menu-item"),
|
|
2448
2448
|
d.span(o.class("bc-menu-item__content"), b.label),
|
|
2449
|
-
|
|
2449
|
+
L.click(() => i(b.value))
|
|
2450
2450
|
)
|
|
2451
2451
|
);
|
|
2452
|
-
} else b.type === "group" ?
|
|
2452
|
+
} else b.type === "group" ? p.push(
|
|
2453
2453
|
d.div(
|
|
2454
2454
|
o.class("bc-menu-group"),
|
|
2455
2455
|
d.div(o.class("bc-menu-group__label"), b.group),
|
|
@@ -2459,18 +2459,18 @@ function un(e) {
|
|
|
2459
2459
|
return d.div(
|
|
2460
2460
|
o.role("menuitem"),
|
|
2461
2461
|
o.tabindex(-1),
|
|
2462
|
-
|
|
2463
|
-
|
|
2462
|
+
E.disabled(k.disabled === !0),
|
|
2463
|
+
E.checked(m),
|
|
2464
2464
|
o.class("bc-menu-item"),
|
|
2465
2465
|
d.span(o.class("bc-menu-item__content"), k.label),
|
|
2466
|
-
|
|
2466
|
+
L.click(() => i(k.value))
|
|
2467
2467
|
);
|
|
2468
2468
|
}
|
|
2469
2469
|
return R();
|
|
2470
2470
|
})
|
|
2471
2471
|
)
|
|
2472
|
-
) :
|
|
2473
|
-
return
|
|
2472
|
+
) : p.push(nn());
|
|
2473
|
+
return p;
|
|
2474
2474
|
},
|
|
2475
2475
|
placement: "bottom-start",
|
|
2476
2476
|
showDelay: 0,
|
|
@@ -2509,7 +2509,7 @@ function un(e) {
|
|
|
2509
2509
|
})
|
|
2510
2510
|
});
|
|
2511
2511
|
}
|
|
2512
|
-
function
|
|
2512
|
+
function Lr(e) {
|
|
2513
2513
|
return Ht(un, e);
|
|
2514
2514
|
}
|
|
2515
2515
|
function Dr(e) {
|
|
@@ -2523,16 +2523,16 @@ function dn(e) {
|
|
|
2523
2523
|
placeholder: r,
|
|
2524
2524
|
searchPlaceholder: s,
|
|
2525
2525
|
filter: i
|
|
2526
|
-
} = e, c =
|
|
2526
|
+
} = e, c = G(""), u = (m) => {
|
|
2527
2527
|
const y = v.get(t);
|
|
2528
2528
|
e.onChange?.(rn(y, m, a));
|
|
2529
2529
|
}, l = (m) => {
|
|
2530
2530
|
const y = v.get(t);
|
|
2531
2531
|
e.onChange?.(an(y, m, a));
|
|
2532
|
-
},
|
|
2532
|
+
}, p = (m) => T(t)((y) => on(y, m, a)), b = T(
|
|
2533
2533
|
n,
|
|
2534
2534
|
c
|
|
2535
|
-
)((m, y) =>
|
|
2535
|
+
)((m, y) => sn(m, y, i)), k = tn({
|
|
2536
2536
|
items: () => {
|
|
2537
2537
|
const m = [], y = v.get(b);
|
|
2538
2538
|
if (y.length === 0)
|
|
@@ -2544,16 +2544,16 @@ function dn(e) {
|
|
|
2544
2544
|
), m;
|
|
2545
2545
|
for (const h of y)
|
|
2546
2546
|
if (h.type === "value") {
|
|
2547
|
-
const x =
|
|
2547
|
+
const x = p(h.value);
|
|
2548
2548
|
m.push(
|
|
2549
2549
|
d.div(
|
|
2550
2550
|
o.role("menuitem"),
|
|
2551
2551
|
o.tabindex(-1),
|
|
2552
|
-
|
|
2553
|
-
|
|
2552
|
+
E.disabled(h.disabled === !0),
|
|
2553
|
+
E.checked(x),
|
|
2554
2554
|
o.class("bc-menu-item"),
|
|
2555
2555
|
d.span(o.class("bc-menu-item__content"), h.label),
|
|
2556
|
-
|
|
2556
|
+
L.click(() => l(h.value))
|
|
2557
2557
|
)
|
|
2558
2558
|
);
|
|
2559
2559
|
} else h.type === "group" ? m.push(
|
|
@@ -2562,15 +2562,15 @@ function dn(e) {
|
|
|
2562
2562
|
d.div(o.class("bc-menu-group__label"), h.group),
|
|
2563
2563
|
...h.options.map((x) => {
|
|
2564
2564
|
if (x.type === "value") {
|
|
2565
|
-
const w =
|
|
2565
|
+
const w = p(x.value);
|
|
2566
2566
|
return d.div(
|
|
2567
2567
|
o.role("menuitem"),
|
|
2568
2568
|
o.tabindex(-1),
|
|
2569
|
-
|
|
2570
|
-
|
|
2569
|
+
E.disabled(x.disabled === !0),
|
|
2570
|
+
E.checked(w),
|
|
2571
2571
|
o.class("bc-menu-item"),
|
|
2572
2572
|
d.span(o.class("bc-menu-item__content"), x.label),
|
|
2573
|
-
|
|
2573
|
+
L.click(() => l(x.value))
|
|
2574
2574
|
);
|
|
2575
2575
|
}
|
|
2576
2576
|
return R();
|
|
@@ -2619,17 +2619,17 @@ function dn(e) {
|
|
|
2619
2619
|
o.type("text"),
|
|
2620
2620
|
o.class("bc-dropdown__search-input"),
|
|
2621
2621
|
o.placeholder(
|
|
2622
|
-
|
|
2622
|
+
T(
|
|
2623
2623
|
s,
|
|
2624
2624
|
r
|
|
2625
2625
|
)((m, y) => m ?? y ?? "")
|
|
2626
2626
|
),
|
|
2627
2627
|
o.value(c),
|
|
2628
|
-
|
|
2628
|
+
L.input((m) => {
|
|
2629
2629
|
const y = m.target;
|
|
2630
2630
|
c.set(y.value);
|
|
2631
2631
|
}),
|
|
2632
|
-
|
|
2632
|
+
L.keydown((m) => {
|
|
2633
2633
|
(m.key === "ArrowUp" || m.key === "ArrowDown" || m.key === "Enter" || m.key === " ") && m.stopPropagation();
|
|
2634
2634
|
})
|
|
2635
2635
|
),
|
|
@@ -2652,14 +2652,14 @@ const Br = (e) => {
|
|
|
2652
2652
|
fe(e),
|
|
2653
2653
|
o.valueAsDate(t),
|
|
2654
2654
|
o.class("bc-input"),
|
|
2655
|
-
n != null ?
|
|
2656
|
-
a != null ?
|
|
2655
|
+
n != null ? L.blur(X(n)) : W,
|
|
2656
|
+
a != null ? L.change(hn(a)) : W
|
|
2657
2657
|
)
|
|
2658
2658
|
});
|
|
2659
2659
|
}, ba = (e) => {
|
|
2660
2660
|
const t = e.getFullYear(), n = (e.getMonth() + 1).toString().padStart(2, "0"), a = e.getDate().toString().padStart(2, "0"), r = e.getHours().toString().padStart(2, "0"), s = e.getMinutes().toString().padStart(2, "0");
|
|
2661
2661
|
return `${t}-${n}-${a}T${r}:${s}`;
|
|
2662
|
-
},
|
|
2662
|
+
}, Mr = (e) => {
|
|
2663
2663
|
const { value: t, onBlur: n, onChange: a } = e;
|
|
2664
2664
|
return ce({
|
|
2665
2665
|
...e,
|
|
@@ -2667,11 +2667,11 @@ const Br = (e) => {
|
|
|
2667
2667
|
fe(e),
|
|
2668
2668
|
o.value(v.map(t, ba)),
|
|
2669
2669
|
o.class("bc-input"),
|
|
2670
|
-
n != null ?
|
|
2671
|
-
a != null ?
|
|
2670
|
+
n != null ? L.blur(X(n)) : W,
|
|
2671
|
+
a != null ? L.change(X((r) => a(new Date(r)))) : W
|
|
2672
2672
|
)
|
|
2673
2673
|
});
|
|
2674
|
-
},
|
|
2674
|
+
}, Er = (e) => {
|
|
2675
2675
|
const {
|
|
2676
2676
|
value: t,
|
|
2677
2677
|
onInput: n,
|
|
@@ -2697,7 +2697,7 @@ const Br = (e) => {
|
|
|
2697
2697
|
const n = t.map(
|
|
2698
2698
|
(a) => a.map((r) => typeof r == "object" && "id" in r && "label" in r ? Ce.value(r.id, r.label) : r)
|
|
2699
2699
|
);
|
|
2700
|
-
return
|
|
2700
|
+
return Gt({
|
|
2701
2701
|
...e,
|
|
2702
2702
|
options: n,
|
|
2703
2703
|
unselectedLabel: e.unselectedLabel,
|
|
@@ -2707,15 +2707,15 @@ const Br = (e) => {
|
|
|
2707
2707
|
pending: () => ae(
|
|
2708
2708
|
ie,
|
|
2709
2709
|
(t) => d.span(
|
|
2710
|
-
|
|
2710
|
+
te({
|
|
2711
2711
|
icon: "line-md:loading-twotone-loop",
|
|
2712
2712
|
title: t.$.loadingShort
|
|
2713
2713
|
})
|
|
2714
2714
|
)
|
|
2715
2715
|
)
|
|
2716
2716
|
}), Nr = (e) => {
|
|
2717
|
-
const { value: t, onBlur: n, onChange: a, onInput: r, after: s, disabled: i, ...c } = e, u =
|
|
2718
|
-
return
|
|
2717
|
+
const { value: t, onBlur: n, onChange: a, onInput: r, after: s, disabled: i, ...c } = e, u = Me(t, i, a ?? r);
|
|
2718
|
+
return Ee({
|
|
2719
2719
|
...c,
|
|
2720
2720
|
value: v.map(t, Bn),
|
|
2721
2721
|
onChange: a != null ? (l) => a(kt(l)) : void 0,
|
|
@@ -2723,7 +2723,7 @@ const Br = (e) => {
|
|
|
2723
2723
|
onBlur: n,
|
|
2724
2724
|
after: s != null ? R(u, s) : u
|
|
2725
2725
|
});
|
|
2726
|
-
},
|
|
2726
|
+
}, Pt = (e) => {
|
|
2727
2727
|
try {
|
|
2728
2728
|
return BigInt(e);
|
|
2729
2729
|
} catch {
|
|
@@ -2734,17 +2734,17 @@ const Br = (e) => {
|
|
|
2734
2734
|
const y = a != null ? v.get(a) : void 0, h = r != null ? v.get(r) : void 0;
|
|
2735
2735
|
return y != null && m < y ? y : h != null && m > h ? h : m;
|
|
2736
2736
|
}, l = n != null ? ae(ie, (m) => {
|
|
2737
|
-
const y =
|
|
2737
|
+
const y = T(
|
|
2738
2738
|
t,
|
|
2739
2739
|
a
|
|
2740
|
-
)((w, g) => g == null ? !0 : (w ?? 0n) > g), h =
|
|
2740
|
+
)((w, g) => g == null ? !0 : (w ?? 0n) > g), h = T(
|
|
2741
2741
|
t,
|
|
2742
2742
|
r
|
|
2743
2743
|
)((w, g) => g == null ? !0 : (w ?? 0n) < g), x = (w, g) => {
|
|
2744
|
-
const
|
|
2745
|
-
if (w < 0n && _ != null &&
|
|
2746
|
-
const V = u(
|
|
2747
|
-
V !==
|
|
2744
|
+
const f = v.get(t) ?? 0n, C = v.get(n), $ = g?.shiftKey ? 10n : 1n, D = f + C * $ * w, _ = a != null ? v.get(a) : void 0, I = r != null ? v.get(r) : void 0;
|
|
2745
|
+
if (w < 0n && _ != null && D < _ || w > 0n && I != null && D > I) return;
|
|
2746
|
+
const V = u(D);
|
|
2747
|
+
V !== f && s && s(V);
|
|
2748
2748
|
};
|
|
2749
2749
|
return pt(
|
|
2750
2750
|
o.class("bc-number-input-steppers"),
|
|
@@ -2754,14 +2754,14 @@ const Br = (e) => {
|
|
|
2754
2754
|
"bc-button bc-number-input-steppers-button bc-number-input-steppers-button--increment"
|
|
2755
2755
|
),
|
|
2756
2756
|
o.disabled(
|
|
2757
|
-
|
|
2757
|
+
T(
|
|
2758
2758
|
h,
|
|
2759
2759
|
e.disabled ?? !1
|
|
2760
2760
|
)((w, g) => !w || g)
|
|
2761
2761
|
),
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2762
|
+
L.click((w) => x(1n, w)),
|
|
2763
|
+
E.label(m.$.incrementValue),
|
|
2764
|
+
te({ icon: "line-md:plus", size: "xs" })
|
|
2765
2765
|
),
|
|
2766
2766
|
d.button(
|
|
2767
2767
|
o.type("button"),
|
|
@@ -2769,34 +2769,34 @@ const Br = (e) => {
|
|
|
2769
2769
|
"bc-button bc-number-input-steppers-button bc-number-input-steppers-button--decrement"
|
|
2770
2770
|
),
|
|
2771
2771
|
o.disabled(
|
|
2772
|
-
|
|
2772
|
+
T(
|
|
2773
2773
|
y,
|
|
2774
2774
|
e.disabled ?? !1
|
|
2775
2775
|
)((w, g) => !w || g)
|
|
2776
2776
|
),
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2777
|
+
L.click((w) => x(-1n, w)),
|
|
2778
|
+
E.label(m.$.decrementValue),
|
|
2779
|
+
te({ icon: "line-md:minus", size: "xs" })
|
|
2780
2780
|
)
|
|
2781
2781
|
);
|
|
2782
|
-
}) : null,
|
|
2783
|
-
const y =
|
|
2782
|
+
}) : null, p = c != null && l != null ? R(l, c) : c ?? l, b = s ? (m) => {
|
|
2783
|
+
const y = Pt(m);
|
|
2784
2784
|
y != null && s(u(y));
|
|
2785
2785
|
} : void 0, k = i ? (m) => {
|
|
2786
|
-
const y =
|
|
2786
|
+
const y = Pt(m);
|
|
2787
2787
|
y != null && i(u(y));
|
|
2788
2788
|
} : void 0;
|
|
2789
|
-
return
|
|
2789
|
+
return Ee({
|
|
2790
2790
|
...e,
|
|
2791
2791
|
value: v.map(t, (m) => m.toString()),
|
|
2792
2792
|
onChange: b,
|
|
2793
2793
|
onInput: k,
|
|
2794
|
-
after:
|
|
2794
|
+
after: p,
|
|
2795
2795
|
mask: null,
|
|
2796
2796
|
allowMode: "digits",
|
|
2797
2797
|
class: "bc-number-input"
|
|
2798
2798
|
});
|
|
2799
|
-
},
|
|
2799
|
+
}, Lt = (e) => {
|
|
2800
2800
|
if (e == null || e === "") return null;
|
|
2801
2801
|
try {
|
|
2802
2802
|
return BigInt(e);
|
|
@@ -2808,21 +2808,21 @@ const Br = (e) => {
|
|
|
2808
2808
|
const h = a != null ? v.get(a) : void 0, x = r != null ? v.get(r) : void 0;
|
|
2809
2809
|
return h != null && y < h ? h : x != null && y > x ? x : y;
|
|
2810
2810
|
}, l = n != null ? ae(ie, (y) => {
|
|
2811
|
-
const h =
|
|
2811
|
+
const h = T(
|
|
2812
2812
|
t,
|
|
2813
2813
|
a
|
|
2814
|
-
)((g,
|
|
2814
|
+
)((g, f) => {
|
|
2815
2815
|
const C = g ?? 0n;
|
|
2816
|
-
return
|
|
2817
|
-
}), x =
|
|
2816
|
+
return f == null ? !0 : C > f;
|
|
2817
|
+
}), x = T(
|
|
2818
2818
|
t,
|
|
2819
2819
|
r
|
|
2820
|
-
)((g,
|
|
2820
|
+
)((g, f) => {
|
|
2821
2821
|
const C = g ?? 0n;
|
|
2822
|
-
return
|
|
2823
|
-
}), w = (g,
|
|
2824
|
-
const C = v.get(t) ?? 0n, $ = v.get(n),
|
|
2825
|
-
if (g < 0n &&
|
|
2822
|
+
return f == null ? !0 : C < f;
|
|
2823
|
+
}), w = (g, f) => {
|
|
2824
|
+
const C = v.get(t) ?? 0n, $ = v.get(n), D = f?.shiftKey ? 10n : 1n, _ = C + $ * D * g, I = a != null ? v.get(a) : void 0, V = r != null ? v.get(r) : void 0;
|
|
2825
|
+
if (g < 0n && I != null && _ < I || g > 0n && V != null && _ > V) return;
|
|
2826
2826
|
const O = u(_);
|
|
2827
2827
|
O !== C && s && s(O);
|
|
2828
2828
|
};
|
|
@@ -2834,14 +2834,14 @@ const Br = (e) => {
|
|
|
2834
2834
|
"bc-button bc-number-input-steppers-button bc-number-input-steppers-button--increment"
|
|
2835
2835
|
),
|
|
2836
2836
|
o.disabled(
|
|
2837
|
-
|
|
2837
|
+
T(
|
|
2838
2838
|
x,
|
|
2839
2839
|
e.disabled ?? !1
|
|
2840
|
-
)((g,
|
|
2840
|
+
)((g, f) => !g || f)
|
|
2841
2841
|
),
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2842
|
+
L.click((g) => w(1n, g)),
|
|
2843
|
+
E.label(y.$.incrementValue),
|
|
2844
|
+
te({ icon: "line-md:plus", size: "xs" })
|
|
2845
2845
|
),
|
|
2846
2846
|
d.button(
|
|
2847
2847
|
o.type("button"),
|
|
@@ -2849,24 +2849,28 @@ const Br = (e) => {
|
|
|
2849
2849
|
"bc-button bc-number-input-steppers-button bc-number-input-steppers-button--decrement"
|
|
2850
2850
|
),
|
|
2851
2851
|
o.disabled(
|
|
2852
|
-
|
|
2852
|
+
T(
|
|
2853
2853
|
h,
|
|
2854
2854
|
e.disabled ?? !1
|
|
2855
|
-
)((g,
|
|
2855
|
+
)((g, f) => !g || f)
|
|
2856
2856
|
),
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2857
|
+
L.click((g) => w(-1n, g)),
|
|
2858
|
+
E.label(y.$.decrementValue),
|
|
2859
|
+
te({ icon: "line-md:minus", size: "xs" })
|
|
2860
2860
|
)
|
|
2861
2861
|
);
|
|
2862
|
-
}) : null,
|
|
2863
|
-
|
|
2862
|
+
}) : null, p = Me(
|
|
2863
|
+
t,
|
|
2864
|
+
e.disabled,
|
|
2865
|
+
s ?? i
|
|
2866
|
+
), b = c != null && l != null ? R(l, p, c) : c != null ? R(p, c) : l != null ? R(l, p) : p, k = s ? (y) => {
|
|
2867
|
+
const h = Lt(y);
|
|
2864
2868
|
s(h === null ? null : u(h));
|
|
2865
2869
|
} : void 0, m = i ? (y) => {
|
|
2866
|
-
const h =
|
|
2870
|
+
const h = Lt(y);
|
|
2867
2871
|
i(h === null ? null : u(h));
|
|
2868
2872
|
} : void 0;
|
|
2869
|
-
return
|
|
2873
|
+
return Ee({
|
|
2870
2874
|
...e,
|
|
2871
2875
|
value: v.map(t, (y) => y == null ? "" : y.toString()),
|
|
2872
2876
|
onChange: k,
|
|
@@ -2877,7 +2881,7 @@ const Br = (e) => {
|
|
|
2877
2881
|
class: "bc-number-input"
|
|
2878
2882
|
});
|
|
2879
2883
|
}, Fr = (e) => {
|
|
2880
|
-
const { value: t, onChange: n, onBlur: a, before: r } = e, s =
|
|
2884
|
+
const { value: t, onChange: n, onBlur: a, before: r } = e, s = G(""), i = (u) => {
|
|
2881
2885
|
n?.(v.get(t).filter((l) => l !== u));
|
|
2882
2886
|
}, c = () => {
|
|
2883
2887
|
const u = s.value.trim(), l = v.get(t);
|
|
@@ -2892,7 +2896,7 @@ const Br = (e) => {
|
|
|
2892
2896
|
}),
|
|
2893
2897
|
input: R(
|
|
2894
2898
|
o.class("bc-input-container__tags"),
|
|
2895
|
-
|
|
2899
|
+
Le(
|
|
2896
2900
|
t,
|
|
2897
2901
|
(u) => Jt({
|
|
2898
2902
|
value: u,
|
|
@@ -2904,9 +2908,9 @@ const Br = (e) => {
|
|
|
2904
2908
|
fe(e),
|
|
2905
2909
|
o.value(s),
|
|
2906
2910
|
o.class("bc-input bc-input-container__tags-input"),
|
|
2907
|
-
|
|
2908
|
-
n != null ?
|
|
2909
|
-
a != null ?
|
|
2911
|
+
L.input(X(s.set)),
|
|
2912
|
+
n != null ? L.change(c) : W,
|
|
2913
|
+
a != null ? L.blur(a) : W
|
|
2910
2914
|
)
|
|
2911
2915
|
)
|
|
2912
2916
|
});
|
|
@@ -2921,8 +2925,8 @@ function qe(e) {
|
|
|
2921
2925
|
fe(t),
|
|
2922
2926
|
o.value(v.map(n, e.valueToString)),
|
|
2923
2927
|
o.class("bc-input"),
|
|
2924
|
-
a != null ?
|
|
2925
|
-
r != null ?
|
|
2928
|
+
a != null ? L.blur(X(a)) : W,
|
|
2929
|
+
r != null ? L.change(X((i) => r(e.parseValue(s, i)))) : W
|
|
2926
2930
|
)
|
|
2927
2931
|
})
|
|
2928
2932
|
);
|
|
@@ -2930,24 +2934,29 @@ function qe(e) {
|
|
|
2930
2934
|
}
|
|
2931
2935
|
function Je(e) {
|
|
2932
2936
|
return (t) => {
|
|
2933
|
-
const { value: n, onBlur: a, onChange: r,
|
|
2937
|
+
const { value: n, onBlur: a, onChange: r, onInput: s, after: i, disabled: c } = t, u = Me(n, c, r ?? s);
|
|
2934
2938
|
return ve(
|
|
2935
|
-
(
|
|
2939
|
+
(l) => ce({
|
|
2936
2940
|
...t,
|
|
2937
2941
|
input: pe[e.inputType](
|
|
2938
2942
|
fe(t),
|
|
2939
2943
|
o.value(
|
|
2940
|
-
v.map(n, (
|
|
2944
|
+
v.map(n, (p) => p == null ? "" : e.valueToString(p))
|
|
2941
2945
|
),
|
|
2942
2946
|
o.class("bc-input"),
|
|
2943
|
-
a != null ?
|
|
2944
|
-
r != null ?
|
|
2945
|
-
|
|
2946
|
-
(
|
|
2947
|
+
a != null ? L.blur(X(a)) : W,
|
|
2948
|
+
r != null ? L.change(
|
|
2949
|
+
X(
|
|
2950
|
+
(p) => r(p === "" ? null : e.parseValue(l, p))
|
|
2951
|
+
)
|
|
2952
|
+
) : W,
|
|
2953
|
+
s != null ? L.input(
|
|
2954
|
+
X(
|
|
2955
|
+
(p) => s(p === "" ? null : e.parseValue(l, p))
|
|
2947
2956
|
)
|
|
2948
2957
|
) : W
|
|
2949
2958
|
),
|
|
2950
|
-
after:
|
|
2959
|
+
after: i != null ? R(u, i) : u
|
|
2951
2960
|
})
|
|
2952
2961
|
);
|
|
2953
2962
|
};
|
|
@@ -2972,14 +2981,14 @@ const jr = qe({
|
|
|
2972
2981
|
inputType: "datetime-local",
|
|
2973
2982
|
valueToString: (e) => e.toJSON(),
|
|
2974
2983
|
parseValue: (e, t) => e.PlainDateTime.from(t)
|
|
2975
|
-
}),
|
|
2984
|
+
}), Zr = Je({
|
|
2976
2985
|
inputType: "datetime-local",
|
|
2977
2986
|
valueToString: (e) => e.toJSON(),
|
|
2978
2987
|
parseValue: (e, t) => e.PlainDateTime.from(t)
|
|
2979
2988
|
}), ga = (e) => {
|
|
2980
2989
|
const t = new Date(e), n = t.getFullYear().toString().padStart(4, "0"), a = (t.getMonth() + 1).toString().padStart(2, "0"), r = t.getDate().toString().padStart(2, "0"), s = t.getHours().toString().padStart(2, "0"), i = t.getMinutes().toString().padStart(2, "0");
|
|
2981
2990
|
return `${n}-${a}-${r}T${s}:${i}`;
|
|
2982
|
-
},
|
|
2991
|
+
}, Gr = (e) => {
|
|
2983
2992
|
const { value: t, onBlur: n, onChange: a } = e;
|
|
2984
2993
|
return ve(
|
|
2985
2994
|
(r) => ce({
|
|
@@ -2990,9 +2999,9 @@ const jr = qe({
|
|
|
2990
2999
|
v.map(t, (s) => ga(Number(s.epochMilliseconds)))
|
|
2991
3000
|
),
|
|
2992
3001
|
o.class("bc-input"),
|
|
2993
|
-
n != null ?
|
|
2994
|
-
a != null ?
|
|
2995
|
-
|
|
3002
|
+
n != null ? L.blur(X(n)) : W,
|
|
3003
|
+
a != null ? L.change(
|
|
3004
|
+
X(
|
|
2996
3005
|
(s) => a(r.Instant.from(new Date(s).toISOString()))
|
|
2997
3006
|
)
|
|
2998
3007
|
) : W
|
|
@@ -3003,27 +3012,32 @@ const jr = qe({
|
|
|
3003
3012
|
const t = new Date(e), n = t.getFullYear().toString().padStart(4, "0"), a = (t.getMonth() + 1).toString().padStart(2, "0"), r = t.getDate().toString().padStart(2, "0"), s = t.getHours().toString().padStart(2, "0"), i = t.getMinutes().toString().padStart(2, "0");
|
|
3004
3013
|
return `${n}-${a}-${r}T${s}:${i}`;
|
|
3005
3014
|
}, qr = (e) => {
|
|
3006
|
-
const { value: t, onBlur: n, onChange: a,
|
|
3015
|
+
const { value: t, onBlur: n, onChange: a, onInput: r, after: s, disabled: i } = e, c = Me(t, i, a ?? r);
|
|
3007
3016
|
return ve(
|
|
3008
|
-
(
|
|
3017
|
+
(u) => ce({
|
|
3009
3018
|
...e,
|
|
3010
3019
|
input: pe["datetime-local"](
|
|
3011
3020
|
fe(e),
|
|
3012
3021
|
o.value(
|
|
3013
3022
|
v.map(
|
|
3014
3023
|
t,
|
|
3015
|
-
(
|
|
3024
|
+
(l) => l == null ? null : ma(Number(l.epochMilliseconds))
|
|
3016
3025
|
)
|
|
3017
3026
|
),
|
|
3018
3027
|
o.class("bc-input"),
|
|
3019
|
-
n != null ?
|
|
3020
|
-
a != null ?
|
|
3021
|
-
|
|
3022
|
-
(
|
|
3028
|
+
n != null ? L.blur(X(n)) : W,
|
|
3029
|
+
a != null ? L.change(
|
|
3030
|
+
X(
|
|
3031
|
+
(l) => a(l === "" ? null : u.Instant.from(new Date(l).toISOString()))
|
|
3032
|
+
)
|
|
3033
|
+
) : W,
|
|
3034
|
+
r != null ? L.input(
|
|
3035
|
+
X(
|
|
3036
|
+
(l) => r(l === "" ? null : u.Instant.from(new Date(l).toISOString()))
|
|
3023
3037
|
)
|
|
3024
3038
|
) : W
|
|
3025
3039
|
),
|
|
3026
|
-
after:
|
|
3040
|
+
after: s != null ? R(c, s) : c
|
|
3027
3041
|
})
|
|
3028
3042
|
);
|
|
3029
3043
|
}, Jr = (e) => {
|
|
@@ -3035,9 +3049,9 @@ const jr = qe({
|
|
|
3035
3049
|
fe(e),
|
|
3036
3050
|
o.value(v.map(t, (s) => s.toJSON())),
|
|
3037
3051
|
o.class("bc-input"),
|
|
3038
|
-
n != null ?
|
|
3039
|
-
a != null ?
|
|
3040
|
-
|
|
3052
|
+
n != null ? L.blur(X(n)) : W,
|
|
3053
|
+
a != null ? L.change(
|
|
3054
|
+
X((s) => {
|
|
3041
3055
|
const i = r.PlainDateTime.from(s), c = v.get(e.placeholder) ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
3042
3056
|
return a(r.ZonedDateTime.from({ ...i, timeZone: c }));
|
|
3043
3057
|
})
|
|
@@ -3046,24 +3060,31 @@ const jr = qe({
|
|
|
3046
3060
|
})
|
|
3047
3061
|
);
|
|
3048
3062
|
}, Kr = (e) => {
|
|
3049
|
-
const { value: t, onBlur: n, onChange: a,
|
|
3063
|
+
const { value: t, onBlur: n, onChange: a, onInput: r, after: s, disabled: i } = e, c = Me(t, i, a ?? r);
|
|
3050
3064
|
return ve(
|
|
3051
|
-
(
|
|
3065
|
+
(u) => ce({
|
|
3052
3066
|
...e,
|
|
3053
3067
|
input: pe["datetime-local"](
|
|
3054
3068
|
fe(e),
|
|
3055
|
-
o.value(v.map(t, (
|
|
3069
|
+
o.value(v.map(t, (l) => l?.toJSON())),
|
|
3056
3070
|
o.class("bc-input"),
|
|
3057
|
-
n != null ?
|
|
3058
|
-
a != null ?
|
|
3059
|
-
|
|
3060
|
-
if (
|
|
3061
|
-
const
|
|
3062
|
-
return a(
|
|
3071
|
+
n != null ? L.blur(X(n)) : W,
|
|
3072
|
+
a != null ? L.change(
|
|
3073
|
+
X((l) => {
|
|
3074
|
+
if (l === "") return a(null);
|
|
3075
|
+
const p = u.PlainDateTime.from(l), b = v.get(e.placeholder) ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
3076
|
+
return a(u.ZonedDateTime.from({ ...p, timeZone: b }));
|
|
3077
|
+
})
|
|
3078
|
+
) : W,
|
|
3079
|
+
r != null ? L.input(
|
|
3080
|
+
X((l) => {
|
|
3081
|
+
if (l === "") return r(null);
|
|
3082
|
+
const p = u.PlainDateTime.from(l), b = v.get(e.placeholder) ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
3083
|
+
return r(u.ZonedDateTime.from({ ...p, timeZone: b }));
|
|
3063
3084
|
})
|
|
3064
3085
|
) : W
|
|
3065
3086
|
),
|
|
3066
|
-
after:
|
|
3087
|
+
after: s != null ? R(c, s) : c
|
|
3067
3088
|
})
|
|
3068
3089
|
);
|
|
3069
3090
|
}, Qr = qe({
|
|
@@ -3077,7 +3098,7 @@ const jr = qe({
|
|
|
3077
3098
|
}), eo = (e) => {
|
|
3078
3099
|
const { value: t, onChange: n } = e;
|
|
3079
3100
|
return ve(
|
|
3080
|
-
(a) =>
|
|
3101
|
+
(a) => Ee({
|
|
3081
3102
|
...e,
|
|
3082
3103
|
// Map Temporal value to MM-DD string
|
|
3083
3104
|
value: v.map(t, (r) => r.toString()),
|
|
@@ -3088,27 +3109,27 @@ const jr = qe({
|
|
|
3088
3109
|
})
|
|
3089
3110
|
);
|
|
3090
3111
|
}, to = (e) => {
|
|
3091
|
-
const { value: t, onChange: n,
|
|
3112
|
+
const { value: t, onChange: n, onInput: a, after: r, disabled: s } = e, i = Me(t, s, n ?? a);
|
|
3092
3113
|
return ve(
|
|
3093
|
-
(
|
|
3114
|
+
(c) => Ee({
|
|
3094
3115
|
...e,
|
|
3095
|
-
value: v.map(t, (
|
|
3096
|
-
onChange: n != null ? (
|
|
3097
|
-
onInput: void 0,
|
|
3116
|
+
value: v.map(t, (u) => u?.toString() ?? ""),
|
|
3117
|
+
onChange: n != null ? (u) => n(u === "" ? null : c.PlainMonthDay.from(`--${u}`)) : void 0,
|
|
3118
|
+
onInput: a != null ? (u) => a(u === "" ? null : c.PlainMonthDay.from(`--${u}`)) : void 0,
|
|
3098
3119
|
mask: "99-99",
|
|
3099
3120
|
placeholder: "MM-DD",
|
|
3100
|
-
after:
|
|
3121
|
+
after: r != null ? R(i, r) : i
|
|
3101
3122
|
})
|
|
3102
3123
|
);
|
|
3103
3124
|
}, no = (e) => {
|
|
3104
3125
|
const { value: t, onChange: n } = e;
|
|
3105
3126
|
return ve(
|
|
3106
|
-
(a) =>
|
|
3127
|
+
(a) => Ee({
|
|
3107
3128
|
...e,
|
|
3108
3129
|
value: v.map(t, (r) => r.toString()),
|
|
3109
3130
|
onChange: n ? (r) => n(a.Duration.from(r)) : void 0,
|
|
3110
3131
|
onInput: void 0,
|
|
3111
|
-
...
|
|
3132
|
+
...Mn(a.Duration.from),
|
|
3112
3133
|
placeholder: "P0DT0H0M0S"
|
|
3113
3134
|
})
|
|
3114
3135
|
);
|
|
@@ -3139,7 +3160,7 @@ class ha extends $n {
|
|
|
3139
3160
|
/**
|
|
3140
3161
|
* Validates that the current value is a valid color
|
|
3141
3162
|
*/
|
|
3142
|
-
isValidColor = this.signal.map(
|
|
3163
|
+
isValidColor = this.signal.map(En);
|
|
3143
3164
|
/**
|
|
3144
3165
|
* Validates that the current value is a valid hex color
|
|
3145
3166
|
*/
|
|
@@ -3230,7 +3251,7 @@ function oo(e) {
|
|
|
3230
3251
|
{ disabled: e.disabled }
|
|
3231
3252
|
);
|
|
3232
3253
|
}
|
|
3233
|
-
function
|
|
3254
|
+
function lo(e) {
|
|
3234
3255
|
return {
|
|
3235
3256
|
id: e.name,
|
|
3236
3257
|
disabled: e.disabled,
|
|
@@ -3240,7 +3261,7 @@ function so(e) {
|
|
|
3240
3261
|
onInput: e.setColor
|
|
3241
3262
|
};
|
|
3242
3263
|
}
|
|
3243
|
-
function
|
|
3264
|
+
function so({
|
|
3244
3265
|
locales: e,
|
|
3245
3266
|
onChange: t,
|
|
3246
3267
|
updateLocale: n = !0
|
|
@@ -3249,15 +3270,15 @@ function lo({
|
|
|
3249
3270
|
ie,
|
|
3250
3271
|
(a) => ae(ct, ({ locale: r, setLocale: s }) => dt({
|
|
3251
3272
|
layout: "horizontal",
|
|
3252
|
-
content:
|
|
3273
|
+
content: Zt(
|
|
3253
3274
|
o.class("bc-group--align-center bc-group--gap-2"),
|
|
3254
|
-
|
|
3275
|
+
te({
|
|
3255
3276
|
icon: "ic:twotone-language",
|
|
3256
3277
|
size: "lg",
|
|
3257
3278
|
color: "neutral",
|
|
3258
3279
|
title: a.$.locale
|
|
3259
3280
|
}),
|
|
3260
|
-
|
|
3281
|
+
Gt({
|
|
3261
3282
|
options: v.map(
|
|
3262
3283
|
e,
|
|
3263
3284
|
(i) => i.map((c) => {
|
|
@@ -3276,7 +3297,7 @@ function lo({
|
|
|
3276
3297
|
}
|
|
3277
3298
|
const va = () => ae(
|
|
3278
3299
|
ct,
|
|
3279
|
-
({ direction: e }) =>
|
|
3300
|
+
({ direction: e }) => st("body", o.class(e.map((t) => `b-${t}`)))
|
|
3280
3301
|
);
|
|
3281
3302
|
function ya(e, t, n, a, r) {
|
|
3282
3303
|
const s = ["bc-notification"];
|
|
@@ -3285,7 +3306,7 @@ function ya(e, t, n, a, r) {
|
|
|
3285
3306
|
function wa(e, t) {
|
|
3286
3307
|
return [
|
|
3287
3308
|
`--notification-accent-color: ${ut(e, 500)}`,
|
|
3288
|
-
`--notification-radius: ${
|
|
3309
|
+
`--notification-radius: ${Tn(t)}`
|
|
3289
3310
|
].join("; ");
|
|
3290
3311
|
}
|
|
3291
3312
|
function xa({
|
|
@@ -3299,12 +3320,12 @@ function xa({
|
|
|
3299
3320
|
onClose: c,
|
|
3300
3321
|
class: u
|
|
3301
3322
|
} = {}, ...l) {
|
|
3302
|
-
const
|
|
3323
|
+
const p = v.map(i, (b) => b != null);
|
|
3303
3324
|
return d.section(
|
|
3304
3325
|
o.class(
|
|
3305
|
-
|
|
3326
|
+
T(
|
|
3306
3327
|
n,
|
|
3307
|
-
|
|
3328
|
+
p,
|
|
3308
3329
|
t,
|
|
3309
3330
|
e,
|
|
3310
3331
|
u
|
|
@@ -3321,20 +3342,20 @@ function xa({
|
|
|
3321
3342
|
)
|
|
3322
3343
|
),
|
|
3323
3344
|
o.style(
|
|
3324
|
-
|
|
3345
|
+
T(
|
|
3325
3346
|
a,
|
|
3326
3347
|
r
|
|
3327
3348
|
)(
|
|
3328
3349
|
(b, k) => wa(b, k)
|
|
3329
3350
|
)
|
|
3330
3351
|
),
|
|
3331
|
-
|
|
3332
|
-
|
|
3352
|
+
E.live("polite"),
|
|
3353
|
+
E.busy(e),
|
|
3333
3354
|
Q(
|
|
3334
3355
|
e,
|
|
3335
3356
|
() => d.div(
|
|
3336
3357
|
o.class("bc-notification__visual bc-notification__loader"),
|
|
3337
|
-
|
|
3358
|
+
te({
|
|
3338
3359
|
icon: "line-md:loading-twotone-loop",
|
|
3339
3360
|
size: "lg",
|
|
3340
3361
|
color: a,
|
|
@@ -3342,10 +3363,10 @@ function xa({
|
|
|
3342
3363
|
})
|
|
3343
3364
|
),
|
|
3344
3365
|
() => Q(
|
|
3345
|
-
|
|
3366
|
+
p,
|
|
3346
3367
|
() => d.div(
|
|
3347
3368
|
o.class("bc-notification__visual bc-notification__icon"),
|
|
3348
|
-
|
|
3369
|
+
te({
|
|
3349
3370
|
icon: i,
|
|
3350
3371
|
size: "lg",
|
|
3351
3372
|
color: a
|
|
@@ -3353,7 +3374,7 @@ function xa({
|
|
|
3353
3374
|
),
|
|
3354
3375
|
() => d.div(
|
|
3355
3376
|
o.class("bc-notification__visual bc-notification__accent"),
|
|
3356
|
-
|
|
3377
|
+
E.hidden(!0)
|
|
3357
3378
|
)
|
|
3358
3379
|
)
|
|
3359
3380
|
),
|
|
@@ -3402,17 +3423,17 @@ class ka {
|
|
|
3402
3423
|
const Sa = new ka(), pn = {
|
|
3403
3424
|
mark: Ot("NotificationProvider"),
|
|
3404
3425
|
create: ({ position: e = "bottom-end" } = {}) => {
|
|
3405
|
-
const t =
|
|
3426
|
+
const t = G(0), n = [];
|
|
3406
3427
|
function a(u) {
|
|
3407
3428
|
return n.push(u), () => {
|
|
3408
3429
|
const l = n.lastIndexOf(u);
|
|
3409
3430
|
l >= 0 && n.splice(l, 1);
|
|
3410
3431
|
};
|
|
3411
3432
|
}
|
|
3412
|
-
const r = [], s = ({ dismissAfter: u, onClose: l, animation:
|
|
3433
|
+
const r = [], s = ({ dismissAfter: u, onClose: l, animation: p = { fade: !0 }, ...b }, ...k) => {
|
|
3413
3434
|
t.update((h) => h + 1);
|
|
3414
3435
|
const m = u != null ? typeof u == "number" ? On(u * 1e3) : u : void 0, y = {
|
|
3415
|
-
animation:
|
|
3436
|
+
animation: p,
|
|
3416
3437
|
class: v.toSignal(b.class),
|
|
3417
3438
|
loading: v.toSignal(b.loading ?? !1),
|
|
3418
3439
|
withCloseButton: v.toSignal(
|
|
@@ -3495,16 +3516,16 @@ function io({
|
|
|
3495
3516
|
c(Ne, {}), c(ct, {}), c(ie, {}), c(Yt, {
|
|
3496
3517
|
defaultAppearance: t ? n : "light",
|
|
3497
3518
|
appearancePreferenceKey: a
|
|
3498
|
-
}), r && c(pn, { position: s }),
|
|
3519
|
+
}), r && c(pn, { position: s }), In.attach(u(Ne));
|
|
3499
3520
|
const l = R(
|
|
3500
|
-
t ?
|
|
3521
|
+
t ? Ln() : W,
|
|
3501
3522
|
va(),
|
|
3502
3523
|
r ? Ca() : W,
|
|
3503
3524
|
...i
|
|
3504
3525
|
);
|
|
3505
3526
|
return e ? xn(
|
|
3506
3527
|
() => import("./translations-zGwuSQWQ.js"),
|
|
3507
|
-
({ AuthI18n:
|
|
3528
|
+
({ AuthI18n: p }) => Nt(p, {}, () => l)
|
|
3508
3529
|
) : l;
|
|
3509
3530
|
});
|
|
3510
3531
|
}
|
|
@@ -3519,7 +3540,7 @@ function co({
|
|
|
3519
3540
|
navpanes: c = !0,
|
|
3520
3541
|
search: u,
|
|
3521
3542
|
nameddest: l,
|
|
3522
|
-
viewrect:
|
|
3543
|
+
viewrect: p,
|
|
3523
3544
|
highlight: b,
|
|
3524
3545
|
allowfullscreen: k = !1
|
|
3525
3546
|
}) {
|
|
@@ -3543,7 +3564,7 @@ function co({
|
|
|
3543
3564
|
return URL.createObjectURL(g);
|
|
3544
3565
|
}
|
|
3545
3566
|
}
|
|
3546
|
-
}, null), y =
|
|
3567
|
+
}, null), y = T(
|
|
3547
3568
|
m,
|
|
3548
3569
|
t,
|
|
3549
3570
|
n,
|
|
@@ -3554,12 +3575,12 @@ function co({
|
|
|
3554
3575
|
c,
|
|
3555
3576
|
u,
|
|
3556
3577
|
l,
|
|
3557
|
-
|
|
3578
|
+
p,
|
|
3558
3579
|
b
|
|
3559
|
-
)((h, x, w, g,
|
|
3580
|
+
)((h, x, w, g, f, C, $, D, _, I, V, O) => {
|
|
3560
3581
|
if (h == null) return null;
|
|
3561
3582
|
const B = [];
|
|
3562
|
-
x === !1 && B.push("toolbar=0"), w != null && w > 0 && B.push(`page=${w}`), g != null && g > 0 && B.push(`zoom=${g}`),
|
|
3583
|
+
x === !1 && B.push("toolbar=0"), w != null && w > 0 && B.push(`page=${w}`), g != null && g > 0 && B.push(`zoom=${g}`), f != null && B.push(`view=${f}`), C != null && B.push(`pagemode=${C}`), $ === !1 && B.push("scrollbar=0"), D === !1 && B.push("navpanes=0"), _ != null && B.push(`search=${encodeURIComponent(_)}`), I != null && B.push(`nameddest=${encodeURIComponent(I)}`), V != null && B.push(`viewrect=${encodeURIComponent(V)}`), O != null && B.push(`highlight=${encodeURIComponent(O)}`);
|
|
3563
3584
|
const F = B.join("&");
|
|
3564
3585
|
return F ? `${h}#${F}` : h;
|
|
3565
3586
|
});
|
|
@@ -3602,7 +3623,7 @@ function uo({
|
|
|
3602
3623
|
sidebarViewOnLoad: c,
|
|
3603
3624
|
scrollModeOnLoad: u,
|
|
3604
3625
|
spreadModeOnLoad: l,
|
|
3605
|
-
enableScripting:
|
|
3626
|
+
enableScripting: p,
|
|
3606
3627
|
enablePrinting: b,
|
|
3607
3628
|
viewerUrl: k = null,
|
|
3608
3629
|
allowfullscreen: m = !0,
|
|
@@ -3623,7 +3644,7 @@ function uo({
|
|
|
3623
3644
|
);
|
|
3624
3645
|
if (typeof w == "string")
|
|
3625
3646
|
return w;
|
|
3626
|
-
}, null), x =
|
|
3647
|
+
}, null), x = T(
|
|
3627
3648
|
h,
|
|
3628
3649
|
k,
|
|
3629
3650
|
t,
|
|
@@ -3635,16 +3656,16 @@ function uo({
|
|
|
3635
3656
|
c,
|
|
3636
3657
|
u,
|
|
3637
3658
|
l,
|
|
3638
|
-
|
|
3659
|
+
p,
|
|
3639
3660
|
b
|
|
3640
|
-
)((w, g,
|
|
3661
|
+
)((w, g, f, C, $, D, _, I, V, O, B, F, ee) => {
|
|
3641
3662
|
if (w == null) return null;
|
|
3642
3663
|
const H = g ?? "https://mozilla.github.io/pdf.js/web/viewer.html", U = new URLSearchParams();
|
|
3643
3664
|
U.set("file", encodeURIComponent(w));
|
|
3644
3665
|
const Y = [];
|
|
3645
|
-
|
|
3646
|
-
const
|
|
3647
|
-
return `${H}?${U.toString()}${
|
|
3666
|
+
f != null && f > 0 && Y.push(`page=${f}`), C != null && (typeof C == "string" ? Y.push(`zoom=${C}`) : Y.push(`zoom=${C}`)), $ != null && Y.push(`pagemode=${$}`), D != null && Y.push(`nameddest=${encodeURIComponent(D)}`), _ != null && Y.push(`search=${encodeURIComponent(_)}`), I != null && Y.push(`textLayer=${I}`), V != null && Y.push(`sidebar=${V}`), O != null && Y.push(`scrollMode=${O}`), B != null && Y.push(`spreadMode=${B}`), F != null && Y.push(`enableScripting=${F ? "1" : "0"}`), ee != null && Y.push(`enablePrinting=${ee ? "1" : "0"}`);
|
|
3667
|
+
const se = Y.length > 0 ? `#${Y.join("&")}` : "";
|
|
3668
|
+
return `${H}?${U.toString()}${se}`;
|
|
3648
3669
|
});
|
|
3649
3670
|
return h.on((w, g) => {
|
|
3650
3671
|
g != null && g.startsWith("blob:") && URL.revokeObjectURL(g);
|
|
@@ -3664,58 +3685,58 @@ function uo({
|
|
|
3664
3685
|
)
|
|
3665
3686
|
);
|
|
3666
3687
|
}
|
|
3667
|
-
const po = ({ id: e, css: t }) =>
|
|
3688
|
+
const po = ({ id: e, css: t }) => st("head", d.style(o.id(e), o.innerHTML(t)));
|
|
3668
3689
|
function ge(e, t) {
|
|
3669
3690
|
return t == null ? null : d.meta(
|
|
3670
3691
|
o.name(e),
|
|
3671
3692
|
o.content(v.map(t, (n) => String(n)))
|
|
3672
3693
|
);
|
|
3673
3694
|
}
|
|
3674
|
-
function
|
|
3695
|
+
function Z(e, t) {
|
|
3675
3696
|
return t == null ? null : d.meta(
|
|
3676
3697
|
o.property(e),
|
|
3677
3698
|
o.content(v.map(t, (n) => String(n)))
|
|
3678
3699
|
);
|
|
3679
3700
|
}
|
|
3680
3701
|
function ze(e, t) {
|
|
3681
|
-
return t == null ? null :
|
|
3702
|
+
return t == null ? null : Le(t, (n) => Z(e, n));
|
|
3682
3703
|
}
|
|
3683
|
-
function
|
|
3704
|
+
function Ia(e, t) {
|
|
3684
3705
|
return t == null ? null : Q(
|
|
3685
3706
|
v.map(t, (n) => Array.isArray(n)),
|
|
3686
3707
|
() => ze(e, t),
|
|
3687
|
-
() =>
|
|
3708
|
+
() => Z(e, t)
|
|
3688
3709
|
);
|
|
3689
3710
|
}
|
|
3690
3711
|
const fo = (e) => {
|
|
3691
3712
|
const t = [];
|
|
3692
|
-
if (t.push(
|
|
3713
|
+
if (t.push(Z("og:title", e.title)), t.push(Z("og:type", e.type)), t.push(Z("og:url", e.url)), t.push(Z("og:image", e.image)), t.push(Z("og:description", e.description)), t.push(Z("og:site_name", e.siteName)), t.push(Z("og:locale", e.locale)), e.localeAlternate != null) {
|
|
3693
3714
|
const n = ze("og:locale:alternate", e.localeAlternate);
|
|
3694
3715
|
n != null && t.push(n);
|
|
3695
3716
|
}
|
|
3696
|
-
if (t.push(
|
|
3717
|
+
if (t.push(Z("og:image:alt", e.imageAlt)), t.push(Z("og:image:width", e.imageWidth)), t.push(Z("og:image:height", e.imageHeight)), t.push(Z("og:image:type", e.imageType)), e.images != null) {
|
|
3697
3718
|
const n = ze("og:image", e.images);
|
|
3698
3719
|
n != null && t.push(n);
|
|
3699
3720
|
}
|
|
3700
|
-
if (t.push(
|
|
3721
|
+
if (t.push(Z("og:video", e.video)), t.push(Z("og:video:type", e.videoType)), t.push(Z("og:video:width", e.videoWidth)), t.push(Z("og:video:height", e.videoHeight)), t.push(Z("og:video:secure_url", e.videoSecureUrl)), t.push(Z("og:audio", e.audio)), t.push(Z("og:audio:type", e.audioType)), t.push(Z("og:audio:secure_url", e.audioSecureUrl)), t.push(Z("article:published_time", e.publishedTime)), t.push(Z("article:modified_time", e.modifiedTime)), t.push(Z("article:expiration_time", e.expirationTime)), t.push(Ia("article:author", e.author)), t.push(Z("article:section", e.section)), e.tags != null) {
|
|
3701
3722
|
const n = ze("article:tag", e.tags);
|
|
3702
3723
|
n != null && t.push(n);
|
|
3703
3724
|
}
|
|
3704
|
-
return t.push(
|
|
3705
|
-
ge("twitter:title",
|
|
3725
|
+
return t.push(Z("profile:first_name", e.firstName)), t.push(Z("profile:last_name", e.lastName)), t.push(Z("profile:username", e.username)), t.push(Z("profile:gender", e.gender)), t.push(ge("twitter:card", e.twitterCard)), t.push(ge("twitter:site", e.twitterSite)), t.push(ge("twitter:creator", e.twitterCreator)), t.push(
|
|
3726
|
+
ge("twitter:title", Pe(e.twitterTitle, e.title))
|
|
3706
3727
|
), t.push(
|
|
3707
3728
|
ge(
|
|
3708
3729
|
"twitter:description",
|
|
3709
|
-
|
|
3730
|
+
Pe(e.twitterDescription, e.description)
|
|
3710
3731
|
)
|
|
3711
3732
|
), t.push(
|
|
3712
|
-
ge("twitter:image",
|
|
3733
|
+
ge("twitter:image", Pe(e.twitterImage, e.image))
|
|
3713
3734
|
), t.push(
|
|
3714
3735
|
ge(
|
|
3715
3736
|
"twitter:image:alt",
|
|
3716
|
-
|
|
3737
|
+
Pe(e.twitterImageAlt, e.imageAlt)
|
|
3717
3738
|
)
|
|
3718
|
-
), e.canonical != null && v.get(e.canonical) != null && t.push(d.link(o.rel("canonical"), o.href(e.canonical))), t.push(ge("robots", e.robots)), t.push(ge("keywords", e.keywords)), t.push(ge("author", e.metaAuthor)),
|
|
3739
|
+
), e.canonical != null && v.get(e.canonical) != null && t.push(d.link(o.rel("canonical"), o.href(e.canonical))), t.push(ge("robots", e.robots)), t.push(ge("keywords", e.keywords)), t.push(ge("author", e.metaAuthor)), st("head", t.filter((n) => n != null).flat());
|
|
3719
3740
|
}, ft = ({
|
|
3720
3741
|
viewTransition: e,
|
|
3721
3742
|
state: t,
|
|
@@ -3753,7 +3774,7 @@ function At(e) {
|
|
|
3753
3774
|
`--link-hover-color-dark: ${n}`
|
|
3754
3775
|
].join("; ");
|
|
3755
3776
|
}
|
|
3756
|
-
function
|
|
3777
|
+
function Ta({
|
|
3757
3778
|
href: e,
|
|
3758
3779
|
variant: t = "default",
|
|
3759
3780
|
color: n = "primary",
|
|
@@ -3764,19 +3785,19 @@ function Ia({
|
|
|
3764
3785
|
scroll: c,
|
|
3765
3786
|
replace: u,
|
|
3766
3787
|
target: l,
|
|
3767
|
-
rel:
|
|
3788
|
+
rel: p
|
|
3768
3789
|
}, ...b) {
|
|
3769
3790
|
return Q(
|
|
3770
3791
|
r,
|
|
3771
3792
|
() => d.span(
|
|
3772
3793
|
o.class(
|
|
3773
|
-
|
|
3794
|
+
T(
|
|
3774
3795
|
t,
|
|
3775
3796
|
r
|
|
3776
3797
|
)((k, m) => Dt(k, m))
|
|
3777
3798
|
),
|
|
3778
3799
|
o.style(
|
|
3779
|
-
|
|
3800
|
+
T(a)(
|
|
3780
3801
|
(k) => At(k ?? "base")
|
|
3781
3802
|
)
|
|
3782
3803
|
),
|
|
@@ -3793,16 +3814,16 @@ function Ia({
|
|
|
3793
3814
|
})
|
|
3794
3815
|
},
|
|
3795
3816
|
o.class(
|
|
3796
|
-
|
|
3817
|
+
T(
|
|
3797
3818
|
t,
|
|
3798
3819
|
r
|
|
3799
3820
|
)((k, m) => Dt(k, m))
|
|
3800
3821
|
),
|
|
3801
3822
|
o.style(
|
|
3802
|
-
|
|
3823
|
+
T(n)((k) => At(k ?? "primary"))
|
|
3803
3824
|
),
|
|
3804
3825
|
l ? o.target(l) : null,
|
|
3805
|
-
|
|
3826
|
+
p ? o.rel(p) : null,
|
|
3806
3827
|
...b
|
|
3807
3828
|
)
|
|
3808
3829
|
);
|
|
@@ -3815,7 +3836,7 @@ const $a = (e) => e ? e.startsWith("#") ? e : `#${e}` : "", _a = (e) => {
|
|
|
3815
3836
|
}
|
|
3816
3837
|
return e instanceof URLSearchParams ? new URLSearchParams(e) : new URLSearchParams(e);
|
|
3817
3838
|
};
|
|
3818
|
-
function
|
|
3839
|
+
function Pa(e, t, n) {
|
|
3819
3840
|
const a = _a(e.search), r = a.toString(), s = r ? `?${r}` : "", i = $a(e.hash);
|
|
3820
3841
|
switch (n) {
|
|
3821
3842
|
case "exact":
|
|
@@ -3829,9 +3850,9 @@ function La(e, t, n) {
|
|
|
3829
3850
|
return !1;
|
|
3830
3851
|
const l = Array.from(
|
|
3831
3852
|
new URLSearchParams(u.search).entries()
|
|
3832
|
-
).sort(),
|
|
3833
|
-
return l.length !==
|
|
3834
|
-
const [y, h] =
|
|
3853
|
+
).sort(), p = Array.from(a.entries()).sort();
|
|
3854
|
+
return l.length !== p.length ? !1 : l.every(([b, k], m) => {
|
|
3855
|
+
const [y, h] = p[m];
|
|
3835
3856
|
return b === y && k === h;
|
|
3836
3857
|
});
|
|
3837
3858
|
} catch {
|
|
@@ -3842,8 +3863,8 @@ function La(e, t, n) {
|
|
|
3842
3863
|
}
|
|
3843
3864
|
}
|
|
3844
3865
|
function bt(e, t) {
|
|
3845
|
-
return t === "exact" ?
|
|
3846
|
-
(n) => (a) =>
|
|
3866
|
+
return t === "exact" ? T(e)((n) => n) : T(e)(
|
|
3867
|
+
(n) => (a) => Pa(a, n, t)
|
|
3847
3868
|
);
|
|
3848
3869
|
}
|
|
3849
3870
|
function bo({
|
|
@@ -3855,11 +3876,11 @@ function bo({
|
|
|
3855
3876
|
return ae(Ne, (s) => {
|
|
3856
3877
|
const i = s.matchSignal(
|
|
3857
3878
|
bt(e, t)
|
|
3858
|
-
), c =
|
|
3879
|
+
), c = T(
|
|
3859
3880
|
i,
|
|
3860
3881
|
n
|
|
3861
3882
|
)((u, l) => l ?? !0 ? u : !1);
|
|
3862
|
-
return
|
|
3883
|
+
return Ta(
|
|
3863
3884
|
{
|
|
3864
3885
|
...a,
|
|
3865
3886
|
href: e,
|
|
@@ -3880,19 +3901,19 @@ function go({
|
|
|
3880
3901
|
matchMode: c,
|
|
3881
3902
|
disableWhenActive: u,
|
|
3882
3903
|
variant: l = "filled",
|
|
3883
|
-
size:
|
|
3904
|
+
size: p = "md",
|
|
3884
3905
|
color: b = "base",
|
|
3885
3906
|
roundedness: k = "sm",
|
|
3886
3907
|
disabled: m = !1
|
|
3887
3908
|
}, ...y) {
|
|
3888
3909
|
return c !== void 0 || u !== void 0 ? ae(Ne, (h) => {
|
|
3889
|
-
const x = c !== void 0 ? h.matchSignal(bt(e, c)) :
|
|
3910
|
+
const x = c !== void 0 ? h.matchSignal(bt(e, c)) : T(h.location)(() => !1), w = T(
|
|
3890
3911
|
x,
|
|
3891
3912
|
u
|
|
3892
|
-
)((
|
|
3913
|
+
)((f, C) => !(C ?? !0) || !c ? !1 : f), g = T(
|
|
3893
3914
|
m,
|
|
3894
3915
|
w
|
|
3895
|
-
)((
|
|
3916
|
+
)((f, C) => f || C);
|
|
3896
3917
|
return Vt(
|
|
3897
3918
|
{
|
|
3898
3919
|
href: e,
|
|
@@ -3903,7 +3924,7 @@ function go({
|
|
|
3903
3924
|
target: s,
|
|
3904
3925
|
rel: i,
|
|
3905
3926
|
variant: l,
|
|
3906
|
-
size:
|
|
3927
|
+
size: p,
|
|
3907
3928
|
color: b,
|
|
3908
3929
|
roundedness: k,
|
|
3909
3930
|
disabled: g
|
|
@@ -3920,7 +3941,7 @@ function go({
|
|
|
3920
3941
|
target: s,
|
|
3921
3942
|
rel: i,
|
|
3922
3943
|
variant: l,
|
|
3923
|
-
size:
|
|
3944
|
+
size: p,
|
|
3924
3945
|
color: b,
|
|
3925
3946
|
roundedness: k,
|
|
3926
3947
|
disabled: m
|
|
@@ -3939,7 +3960,7 @@ function Vt({
|
|
|
3939
3960
|
variant: c = "default",
|
|
3940
3961
|
size: u = "md",
|
|
3941
3962
|
color: l = "base",
|
|
3942
|
-
roundedness:
|
|
3963
|
+
roundedness: p = "sm",
|
|
3943
3964
|
disabled: b = !1,
|
|
3944
3965
|
fullWidth: k = !1,
|
|
3945
3966
|
loading: m = !1
|
|
@@ -3948,15 +3969,15 @@ function Vt({
|
|
|
3948
3969
|
b ?? !1,
|
|
3949
3970
|
() => d.span(
|
|
3950
3971
|
o.class(
|
|
3951
|
-
|
|
3972
|
+
T(
|
|
3952
3973
|
u,
|
|
3953
|
-
|
|
3974
|
+
p,
|
|
3954
3975
|
m,
|
|
3955
3976
|
k
|
|
3956
3977
|
)(wt)
|
|
3957
3978
|
),
|
|
3958
3979
|
o.style(
|
|
3959
|
-
|
|
3980
|
+
T(
|
|
3960
3981
|
c,
|
|
3961
3982
|
l,
|
|
3962
3983
|
b
|
|
@@ -3981,15 +4002,15 @@ function Vt({
|
|
|
3981
4002
|
})
|
|
3982
4003
|
},
|
|
3983
4004
|
o.class(
|
|
3984
|
-
|
|
4005
|
+
T(
|
|
3985
4006
|
u,
|
|
3986
|
-
|
|
4007
|
+
p,
|
|
3987
4008
|
m,
|
|
3988
4009
|
k
|
|
3989
4010
|
)(wt)
|
|
3990
4011
|
),
|
|
3991
4012
|
o.style(
|
|
3992
|
-
|
|
4013
|
+
T(
|
|
3993
4014
|
c,
|
|
3994
4015
|
l,
|
|
3995
4016
|
b
|
|
@@ -4007,7 +4028,7 @@ function Vt({
|
|
|
4007
4028
|
)
|
|
4008
4029
|
);
|
|
4009
4030
|
}
|
|
4010
|
-
const
|
|
4031
|
+
const La = {
|
|
4011
4032
|
mark: Ot("SidebarContext"),
|
|
4012
4033
|
create: (e) => ({
|
|
4013
4034
|
value: {
|
|
@@ -4019,7 +4040,7 @@ const Pa = {
|
|
|
4019
4040
|
};
|
|
4020
4041
|
function mo({ backgroundMode: e = "light" }, ...t) {
|
|
4021
4042
|
return Nt(
|
|
4022
|
-
|
|
4043
|
+
La,
|
|
4023
4044
|
v.map(
|
|
4024
4045
|
e,
|
|
4025
4046
|
(n) => ({
|
|
@@ -4068,15 +4089,15 @@ function Aa(...e) {
|
|
|
4068
4089
|
function Va(e, ...t) {
|
|
4069
4090
|
return d.button(
|
|
4070
4091
|
o.type("button"),
|
|
4071
|
-
|
|
4072
|
-
e.ariaExpanded != null ?
|
|
4092
|
+
L.click(e.onClick),
|
|
4093
|
+
e.ariaExpanded != null ? E.expanded(
|
|
4073
4094
|
v.map(
|
|
4074
4095
|
e.ariaExpanded,
|
|
4075
4096
|
(n) => n
|
|
4076
4097
|
)
|
|
4077
4098
|
) : null,
|
|
4078
|
-
e.ariaControls != null ?
|
|
4079
|
-
e.ariaLabel != null ?
|
|
4099
|
+
e.ariaControls != null ? E.controls(e.ariaControls) : null,
|
|
4100
|
+
e.ariaLabel != null ? E.label(e.ariaLabel) : null,
|
|
4080
4101
|
...t
|
|
4081
4102
|
);
|
|
4082
4103
|
}
|
|
@@ -4085,7 +4106,7 @@ function Ba(e) {
|
|
|
4085
4106
|
return e.icon != null && t.push(
|
|
4086
4107
|
d.span(
|
|
4087
4108
|
o.class("bc-sidebar-link--icon"),
|
|
4088
|
-
|
|
4109
|
+
te({ icon: e.icon })
|
|
4089
4110
|
)
|
|
4090
4111
|
), t.push(
|
|
4091
4112
|
d.span(o.class("bc-sidebar-link__content"), e.content)
|
|
@@ -4095,10 +4116,10 @@ function Ba(e) {
|
|
|
4095
4116
|
d.button(
|
|
4096
4117
|
o.type("button"),
|
|
4097
4118
|
o.class("bc-sidebar-link--action"),
|
|
4098
|
-
|
|
4119
|
+
L.click((n, a) => {
|
|
4099
4120
|
e.action?.onClick?.(a);
|
|
4100
4121
|
}),
|
|
4101
|
-
|
|
4122
|
+
te({ icon: e.action?.icon })
|
|
4102
4123
|
)
|
|
4103
4124
|
), "onClick" in e ? Va(e, ...t) : ae(Ne, (n) => {
|
|
4104
4125
|
const a = n.matchSignal(
|
|
@@ -4141,27 +4162,27 @@ function ho({
|
|
|
4141
4162
|
ariaControls: c,
|
|
4142
4163
|
right: d.span(
|
|
4143
4164
|
o.class("bc-sidebar-group-collapsible-indicator"),
|
|
4144
|
-
|
|
4165
|
+
te({ icon: "lucide:chevron-down", color: "base" })
|
|
4145
4166
|
),
|
|
4146
4167
|
content: n
|
|
4147
4168
|
}),
|
|
4148
|
-
Bt({ rail: e }, o.id(c),
|
|
4169
|
+
Bt({ rail: e }, o.id(c), la({ open: s }, ...r))
|
|
4149
4170
|
);
|
|
4150
4171
|
}
|
|
4151
4172
|
function vo() {
|
|
4152
4173
|
return d.hr(o.class("bc-sidebar-separator"));
|
|
4153
4174
|
}
|
|
4154
|
-
function
|
|
4175
|
+
function Ma(e, t, n, a) {
|
|
4155
4176
|
const r = ["bc-tabs", `bc-tabs--${e}`, `bc-tabs--${t}`];
|
|
4156
4177
|
return n && r.push("bc-tabs--disabled"), a != null && a !== "default" && r.push(`bc-tabs--variant-${a}`), r.join(" ");
|
|
4157
4178
|
}
|
|
4158
|
-
function
|
|
4179
|
+
function Ea(e, t) {
|
|
4159
4180
|
if (e !== "filled") return "";
|
|
4160
4181
|
const n = /* @__PURE__ */ new Map(), a = ue(t, "solid", "light"), r = ue(t, "solid", "dark");
|
|
4161
4182
|
n.set("--tabs-filled-inactive-bg", a.backgroundColor), n.set("--tabs-filled-inactive-text", "var(--color-white)");
|
|
4162
|
-
const s =
|
|
4183
|
+
const s = le(t, "solid", "light");
|
|
4163
4184
|
n.set("--tabs-filled-inactive-bg-hover", s.backgroundColor);
|
|
4164
|
-
const i =
|
|
4185
|
+
const i = le(t, "solid", "dark");
|
|
4165
4186
|
n.set("--tabs-filled-inactive-bg-dark-hover", i.backgroundColor), n.set("--tabs-filled-inactive-bg-dark", r.backgroundColor), n.set("--tabs-filled-inactive-text-dark", r.textColor), n.set("--tabs-filled-active-bg", "var(--color-white)"), n.set("--tabs-filled-active-text", "var(--color-base-800)"), n.set("--tabs-filled-active-bg-dark", "var(--color-base-900)");
|
|
4166
4187
|
const c = t === "white" || t === "black" || t === "transparent" ? "var(--color-white)" : ut(t, 400);
|
|
4167
4188
|
return n.set("--tabs-filled-active-text-dark", c), Array.from(n.entries()).map(([u, l]) => `${u}: ${l}`).join("; ");
|
|
@@ -4194,23 +4215,23 @@ function yo(e) {
|
|
|
4194
4215
|
disabled: c = !1,
|
|
4195
4216
|
orientation: u = "horizontal",
|
|
4196
4217
|
showContent: l = !0,
|
|
4197
|
-
ariaLabel:
|
|
4198
|
-
} = e, b = he("tablist"), k =
|
|
4218
|
+
ariaLabel: p
|
|
4219
|
+
} = e, b = he("tablist"), k = G(-1), m = T(n)((h) => t.find((x) => x.key === h)), y = (h) => {
|
|
4199
4220
|
if (v.get(c)) return;
|
|
4200
4221
|
const w = k.value, g = v.get(u) === "horizontal";
|
|
4201
|
-
let
|
|
4222
|
+
let f = w;
|
|
4202
4223
|
switch (h.key) {
|
|
4203
4224
|
case (g ? "ArrowRight" : "ArrowDown"):
|
|
4204
|
-
h.preventDefault(),
|
|
4225
|
+
h.preventDefault(), f = He(w, t, 1);
|
|
4205
4226
|
break;
|
|
4206
4227
|
case (g ? "ArrowLeft" : "ArrowUp"):
|
|
4207
|
-
h.preventDefault(),
|
|
4228
|
+
h.preventDefault(), f = He(w, t, -1);
|
|
4208
4229
|
break;
|
|
4209
4230
|
case "Home":
|
|
4210
|
-
h.preventDefault(),
|
|
4231
|
+
h.preventDefault(), f = He(-1, t, 1);
|
|
4211
4232
|
break;
|
|
4212
4233
|
case "End":
|
|
4213
|
-
h.preventDefault(),
|
|
4234
|
+
h.preventDefault(), f = He(t.length, t, -1);
|
|
4214
4235
|
break;
|
|
4215
4236
|
case "Enter":
|
|
4216
4237
|
case " ":
|
|
@@ -4220,22 +4241,22 @@ function yo(e) {
|
|
|
4220
4241
|
}
|
|
4221
4242
|
break;
|
|
4222
4243
|
}
|
|
4223
|
-
|
|
4244
|
+
f !== w && f >= 0 && f < t.length && (k.set(f), setTimeout(() => {
|
|
4224
4245
|
const C = document.querySelector(
|
|
4225
|
-
`[data-tab-index="${
|
|
4246
|
+
`[data-tab-index="${f}"]`
|
|
4226
4247
|
);
|
|
4227
4248
|
C && C.focus();
|
|
4228
4249
|
}, 0));
|
|
4229
4250
|
};
|
|
4230
4251
|
return d.div(
|
|
4231
4252
|
o.class(
|
|
4232
|
-
|
|
4253
|
+
T(
|
|
4233
4254
|
r,
|
|
4234
4255
|
u,
|
|
4235
4256
|
c,
|
|
4236
4257
|
s
|
|
4237
4258
|
)(
|
|
4238
|
-
(h, x, w, g) =>
|
|
4259
|
+
(h, x, w, g) => Ma(
|
|
4239
4260
|
h ?? "md",
|
|
4240
4261
|
x ?? "horizontal",
|
|
4241
4262
|
w ?? !1,
|
|
@@ -4244,11 +4265,11 @@ function yo(e) {
|
|
|
4244
4265
|
)
|
|
4245
4266
|
),
|
|
4246
4267
|
o.style(
|
|
4247
|
-
|
|
4268
|
+
T(
|
|
4248
4269
|
s,
|
|
4249
4270
|
i
|
|
4250
4271
|
)(
|
|
4251
|
-
(h, x) =>
|
|
4272
|
+
(h, x) => Ea(h ?? "default", x ?? "primary")
|
|
4252
4273
|
)
|
|
4253
4274
|
),
|
|
4254
4275
|
// Tab list
|
|
@@ -4256,49 +4277,49 @@ function yo(e) {
|
|
|
4256
4277
|
o.class("bc-tabs__list"),
|
|
4257
4278
|
o.role("tablist"),
|
|
4258
4279
|
o.id(b),
|
|
4259
|
-
|
|
4280
|
+
E.orientation(
|
|
4260
4281
|
u ?? "horizontal"
|
|
4261
4282
|
),
|
|
4262
|
-
|
|
4263
|
-
|
|
4283
|
+
p ? E.label(p) : R(),
|
|
4284
|
+
L.keydown(y),
|
|
4264
4285
|
...t.map((h, x) => {
|
|
4265
|
-
const w =
|
|
4286
|
+
const w = T(n)(($) => $ === h.key), g = T(
|
|
4266
4287
|
c,
|
|
4267
4288
|
h.disabled
|
|
4268
|
-
)(($,
|
|
4289
|
+
)(($, D) => $ || D), f = `${b}-tab-${h.key}`, C = `${b}-panel-${h.key}`;
|
|
4269
4290
|
return d.button(
|
|
4270
4291
|
o.type("button"),
|
|
4271
4292
|
o.class(
|
|
4272
|
-
|
|
4293
|
+
T(
|
|
4273
4294
|
r,
|
|
4274
4295
|
w,
|
|
4275
4296
|
g
|
|
4276
4297
|
)(
|
|
4277
|
-
($,
|
|
4298
|
+
($, D, _) => Oa(
|
|
4278
4299
|
$ ?? "md",
|
|
4279
|
-
|
|
4300
|
+
D ?? !1,
|
|
4280
4301
|
_ ?? !1
|
|
4281
4302
|
)
|
|
4282
4303
|
)
|
|
4283
4304
|
),
|
|
4284
|
-
o.id(
|
|
4305
|
+
o.id(f),
|
|
4285
4306
|
o.role("tab"),
|
|
4286
4307
|
o.tabindex(
|
|
4287
|
-
|
|
4308
|
+
T(
|
|
4288
4309
|
w,
|
|
4289
4310
|
k
|
|
4290
|
-
)(($,
|
|
4311
|
+
)(($, D) => $ || D === x ? 0 : -1)
|
|
4291
4312
|
),
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4313
|
+
E.selected(w),
|
|
4314
|
+
E.controls(C),
|
|
4315
|
+
E.disabled(g),
|
|
4295
4316
|
o.disabled(g),
|
|
4296
|
-
|
|
4297
|
-
h.ariaLabel ?
|
|
4298
|
-
|
|
4317
|
+
lt["tab-index"](String(x)),
|
|
4318
|
+
h.ariaLabel ? E.label(h.ariaLabel) : R(),
|
|
4319
|
+
L.click(($) => {
|
|
4299
4320
|
$.preventDefault(), v.get(h.disabled ?? !1) || v.get(c) || (a?.(h.key), k.set(x));
|
|
4300
4321
|
}),
|
|
4301
|
-
|
|
4322
|
+
L.focus(() => {
|
|
4302
4323
|
k.set(x);
|
|
4303
4324
|
}),
|
|
4304
4325
|
h.label
|
|
@@ -4309,7 +4330,7 @@ function yo(e) {
|
|
|
4309
4330
|
Q(
|
|
4310
4331
|
l ?? !0,
|
|
4311
4332
|
() => Ue(m, (h) => {
|
|
4312
|
-
const x = h.$.key, w = x.map((
|
|
4333
|
+
const x = h.$.key, w = x.map((f) => `${b}-tab-${f}`), g = x.map((f) => `${b}-panel-${f}`);
|
|
4313
4334
|
return d.div(
|
|
4314
4335
|
o.class("bc-tabs__panels"),
|
|
4315
4336
|
d.div(
|
|
@@ -4317,8 +4338,8 @@ function yo(e) {
|
|
|
4317
4338
|
o.id(g),
|
|
4318
4339
|
o.role("tabpanel"),
|
|
4319
4340
|
o.tabindex(0),
|
|
4320
|
-
|
|
4321
|
-
Rt(h, (
|
|
4341
|
+
E.labelledby(w),
|
|
4342
|
+
Rt(h, (f) => f.content())
|
|
4322
4343
|
)
|
|
4323
4344
|
);
|
|
4324
4345
|
})
|
|
@@ -4333,7 +4354,7 @@ function wo(e) {
|
|
|
4333
4354
|
const {
|
|
4334
4355
|
size: u = "md",
|
|
4335
4356
|
side: l = "right",
|
|
4336
|
-
dismissable:
|
|
4357
|
+
dismissable: p = !0,
|
|
4337
4358
|
showCloseButton: b = !0,
|
|
4338
4359
|
onClose: k,
|
|
4339
4360
|
overlayEffect: m = "opaque",
|
|
@@ -4343,57 +4364,57 @@ function wo(e) {
|
|
|
4343
4364
|
footer: w
|
|
4344
4365
|
} = c;
|
|
4345
4366
|
a = n;
|
|
4346
|
-
const g =
|
|
4347
|
-
v.on(
|
|
4367
|
+
const g = G("capturing");
|
|
4368
|
+
v.on(p, ($) => {
|
|
4348
4369
|
g.set($ ? "capturing" : "non-capturing");
|
|
4349
4370
|
});
|
|
4350
|
-
const
|
|
4371
|
+
const f = T(
|
|
4351
4372
|
h != null,
|
|
4352
4373
|
b
|
|
4353
|
-
)(($,
|
|
4354
|
-
const
|
|
4374
|
+
)(($, D) => $ || D), C = ne(($) => {
|
|
4375
|
+
const D = Re({
|
|
4355
4376
|
initialStatus: "closed",
|
|
4356
4377
|
element: $
|
|
4357
4378
|
});
|
|
4358
|
-
|
|
4379
|
+
D.listenOnClosed(() => {
|
|
4359
4380
|
n();
|
|
4360
4381
|
}), a = () => {
|
|
4361
|
-
|
|
4362
|
-
},
|
|
4363
|
-
const
|
|
4382
|
+
D.close();
|
|
4383
|
+
}, Ze(() => D.open());
|
|
4384
|
+
const I = he("drawer"), V = h != null ? `${I}-header` : void 0, O = `${I}-body`;
|
|
4364
4385
|
return d.div(
|
|
4365
4386
|
o.class(
|
|
4366
|
-
|
|
4387
|
+
T(
|
|
4367
4388
|
u,
|
|
4368
4389
|
l,
|
|
4369
|
-
|
|
4390
|
+
D.status
|
|
4370
4391
|
)(
|
|
4371
|
-
(B, F,
|
|
4392
|
+
(B, F, ee) => `bc-drawer bc-drawer--size-${B} bc-drawer--container-${y} bc-drawer--side-${F} bc-drawer--status-${ee}`
|
|
4372
4393
|
)
|
|
4373
4394
|
),
|
|
4374
4395
|
// Essential ARIA attributes for drawer dialog
|
|
4375
4396
|
o.role("dialog"),
|
|
4376
|
-
|
|
4377
|
-
...V ? [
|
|
4378
|
-
|
|
4397
|
+
E.modal(!0),
|
|
4398
|
+
...V ? [E.labelledby(V)] : [],
|
|
4399
|
+
E.describedby(O),
|
|
4379
4400
|
o.tabindex(-1),
|
|
4380
4401
|
// Make drawer focusable for initial focus
|
|
4381
|
-
o.id(
|
|
4382
|
-
|
|
4402
|
+
o.id(I),
|
|
4403
|
+
lt.focusTrap("true"),
|
|
4383
4404
|
// Mark as focus trap container
|
|
4384
4405
|
// Focus trap for keyboard navigation
|
|
4385
|
-
|
|
4406
|
+
Pn({
|
|
4386
4407
|
active: !0,
|
|
4387
4408
|
escapeDeactivates: !1,
|
|
4388
4409
|
// Let Overlay handle escape key
|
|
4389
4410
|
initialFocus: () => document.querySelector(
|
|
4390
|
-
`#${
|
|
4411
|
+
`#${I} [aria-label="Close drawer"]`
|
|
4391
4412
|
) || null
|
|
4392
4413
|
}),
|
|
4393
|
-
|
|
4414
|
+
L.mousedown((B) => B.stopPropagation()),
|
|
4394
4415
|
// Prevent overlay click-outside when clicking drawer content
|
|
4395
4416
|
// Drawer content container
|
|
4396
|
-
Rt(
|
|
4417
|
+
Rt(f, (B) => _t(B ? {
|
|
4397
4418
|
header: d.div(
|
|
4398
4419
|
o.class("bc-drawer__header"),
|
|
4399
4420
|
d.div(o.id(V), h),
|
|
@@ -4465,8 +4486,8 @@ function xo(e) {
|
|
|
4465
4486
|
showOn: c = "hover-focus"
|
|
4466
4487
|
} = e, u = he("tooltip");
|
|
4467
4488
|
return R(
|
|
4468
|
-
|
|
4469
|
-
|
|
4489
|
+
E.describedby(u),
|
|
4490
|
+
Ge({
|
|
4470
4491
|
content: () => R(
|
|
4471
4492
|
o.class("bc-tooltip"),
|
|
4472
4493
|
o.role("tooltip"),
|
|
@@ -4484,18 +4505,18 @@ function xo(e) {
|
|
|
4484
4505
|
// Override the default dialog role for tooltips
|
|
4485
4506
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4486
4507
|
arrow: (l) => {
|
|
4487
|
-
const
|
|
4508
|
+
const p = l.map(
|
|
4488
4509
|
({
|
|
4489
4510
|
placement: b
|
|
4490
4511
|
}) => b.includes("top") ? "down" : b.includes("bottom") ? "up" : b.includes("left") ? "right" : b.includes("right") ? "left" : "up"
|
|
4491
4512
|
);
|
|
4492
4513
|
return R(
|
|
4493
4514
|
o.class("bc-tooltip__arrow"),
|
|
4494
|
-
o.class(
|
|
4515
|
+
o.class(p.map((b) => `bc-tooltip__arrow-${b}`)),
|
|
4495
4516
|
S.transform(
|
|
4496
4517
|
l.map(({ x: b, y: k }) => b == null && k == null ? "" : b != null ? `translate(${b}px, 0)` : `translate(0, ${k}px)`)
|
|
4497
4518
|
),
|
|
4498
|
-
Na(
|
|
4519
|
+
Na(p)
|
|
4499
4520
|
);
|
|
4500
4521
|
}
|
|
4501
4522
|
})
|
|
@@ -4531,7 +4552,7 @@ function ko({
|
|
|
4531
4552
|
o.class("bc-ribbon"),
|
|
4532
4553
|
// Theme styles via CSS variables
|
|
4533
4554
|
o.style(
|
|
4534
|
-
|
|
4555
|
+
T(
|
|
4535
4556
|
e,
|
|
4536
4557
|
n,
|
|
4537
4558
|
a,
|
|
@@ -4558,7 +4579,7 @@ function So(e, t) {
|
|
|
4558
4579
|
};
|
|
4559
4580
|
return t((k) => {
|
|
4560
4581
|
l = u;
|
|
4561
|
-
const m =
|
|
4582
|
+
const m = G(
|
|
4562
4583
|
typeof n != "boolean" || n ? "capturing" : "non-capturing"
|
|
4563
4584
|
);
|
|
4564
4585
|
let y = typeof n == "boolean" ? n : !0;
|
|
@@ -4590,7 +4611,7 @@ function So(e, t) {
|
|
|
4590
4611
|
o.class("bc-lightbox__viewport"),
|
|
4591
4612
|
// Visual padding applied here
|
|
4592
4613
|
o.style(
|
|
4593
|
-
|
|
4614
|
+
T(i)(
|
|
4594
4615
|
(x) => `padding:${typeof x == "number" ? x + "px" : x}`
|
|
4595
4616
|
)
|
|
4596
4617
|
),
|
|
@@ -4629,7 +4650,7 @@ function Co({
|
|
|
4629
4650
|
onDismiss: a,
|
|
4630
4651
|
class: r
|
|
4631
4652
|
}, ...s) {
|
|
4632
|
-
const i =
|
|
4653
|
+
const i = G(!0);
|
|
4633
4654
|
return Q(i, () => {
|
|
4634
4655
|
const c = v.map(
|
|
4635
4656
|
n,
|
|
@@ -4637,7 +4658,7 @@ function Co({
|
|
|
4637
4658
|
);
|
|
4638
4659
|
return d.div(
|
|
4639
4660
|
o.class(
|
|
4640
|
-
|
|
4661
|
+
T(
|
|
4641
4662
|
c,
|
|
4642
4663
|
r
|
|
4643
4664
|
)((u, l) => Ua(u, l))
|
|
@@ -4651,7 +4672,7 @@ function Co({
|
|
|
4651
4672
|
v.map(t, (u) => u != null),
|
|
4652
4673
|
() => d.div(
|
|
4653
4674
|
o.class("bc-announcement-bar__icon"),
|
|
4654
|
-
|
|
4675
|
+
te({
|
|
4655
4676
|
icon: t,
|
|
4656
4677
|
size: "sm",
|
|
4657
4678
|
accessibility: "decorative"
|
|
@@ -4690,7 +4711,7 @@ function Ha() {
|
|
|
4690
4711
|
n.src = "https://www.youtube.com/iframe_api", n.async = !0, document.head.appendChild(n);
|
|
4691
4712
|
}), We);
|
|
4692
4713
|
}
|
|
4693
|
-
function
|
|
4714
|
+
function Io(e) {
|
|
4694
4715
|
const {
|
|
4695
4716
|
url: t,
|
|
4696
4717
|
playing: n = !1,
|
|
@@ -4701,7 +4722,7 @@ function To(e) {
|
|
|
4701
4722
|
playbackRate: c = 1,
|
|
4702
4723
|
pip: u = !1,
|
|
4703
4724
|
playsinline: l = !0,
|
|
4704
|
-
width:
|
|
4725
|
+
width: p,
|
|
4705
4726
|
height: b,
|
|
4706
4727
|
progressInterval: k = 1e3,
|
|
4707
4728
|
seekTo: m,
|
|
@@ -4710,54 +4731,54 @@ function To(e) {
|
|
|
4710
4731
|
onStart: x,
|
|
4711
4732
|
onPlay: w,
|
|
4712
4733
|
onPause: g,
|
|
4713
|
-
onBuffer:
|
|
4734
|
+
onBuffer: f,
|
|
4714
4735
|
onBufferEnd: C,
|
|
4715
4736
|
onEnded: $,
|
|
4716
|
-
onError:
|
|
4737
|
+
onError: D,
|
|
4717
4738
|
onDuration: _,
|
|
4718
|
-
onSeek:
|
|
4739
|
+
onSeek: I,
|
|
4719
4740
|
onProgress: V,
|
|
4720
4741
|
onPlaybackRateChange: O,
|
|
4721
4742
|
onPlaybackQualityChange: B
|
|
4722
4743
|
} = e;
|
|
4723
|
-
function F(
|
|
4724
|
-
return /\.m3u8(\?|$)/i.test(
|
|
4744
|
+
function F(P) {
|
|
4745
|
+
return /\.m3u8(\?|$)/i.test(P);
|
|
4725
4746
|
}
|
|
4726
|
-
function
|
|
4747
|
+
function ee(P) {
|
|
4727
4748
|
try {
|
|
4728
|
-
const
|
|
4729
|
-
return
|
|
4749
|
+
const M = P.canPlayType("application/vnd.apple.mpegurl");
|
|
4750
|
+
return M === "probably" || M === "maybe";
|
|
4730
4751
|
} catch {
|
|
4731
4752
|
return !1;
|
|
4732
4753
|
}
|
|
4733
4754
|
}
|
|
4734
|
-
const H =
|
|
4735
|
-
let U = null, Y = null,
|
|
4736
|
-
function
|
|
4755
|
+
const H = G("file");
|
|
4756
|
+
let U = null, Y = null, se = null;
|
|
4757
|
+
function Ie() {
|
|
4737
4758
|
try {
|
|
4738
|
-
|
|
4759
|
+
se?.destroy();
|
|
4739
4760
|
} catch {
|
|
4740
4761
|
}
|
|
4741
|
-
|
|
4762
|
+
se = null;
|
|
4742
4763
|
}
|
|
4743
4764
|
const q = [];
|
|
4744
4765
|
q.push(
|
|
4745
|
-
v.on(t, (
|
|
4746
|
-
typeof
|
|
4766
|
+
v.on(t, (P) => {
|
|
4767
|
+
typeof P == "string" && P.length > 0 && ja(P) ? H.value = "youtube" : (H.value = "file", U && de());
|
|
4747
4768
|
})
|
|
4748
4769
|
);
|
|
4749
4770
|
async function de() {
|
|
4750
|
-
const
|
|
4751
|
-
if (!
|
|
4752
|
-
const
|
|
4753
|
-
if (typeof
|
|
4754
|
-
|
|
4771
|
+
const P = U;
|
|
4772
|
+
if (!P) return;
|
|
4773
|
+
const M = v.get(t);
|
|
4774
|
+
if (typeof M != "string" || M.length === 0) return;
|
|
4775
|
+
Ie();
|
|
4755
4776
|
const j = y?.file?.forceHLS ?? !1;
|
|
4756
|
-
if (F(
|
|
4757
|
-
if (
|
|
4758
|
-
|
|
4777
|
+
if (F(M) || j) {
|
|
4778
|
+
if (ee(P)) {
|
|
4779
|
+
P.setAttribute("src", M);
|
|
4759
4780
|
try {
|
|
4760
|
-
|
|
4781
|
+
P.load();
|
|
4761
4782
|
} catch {
|
|
4762
4783
|
}
|
|
4763
4784
|
return;
|
|
@@ -4771,64 +4792,64 @@ function To(e) {
|
|
|
4771
4792
|
if (typeof _e == "function") {
|
|
4772
4793
|
const xe = _e;
|
|
4773
4794
|
if (typeof xe.isSupported == "function" && xe.isSupported()) {
|
|
4774
|
-
|
|
4795
|
+
P.removeAttribute("src");
|
|
4775
4796
|
try {
|
|
4776
|
-
|
|
4797
|
+
P.load();
|
|
4777
4798
|
} catch {
|
|
4778
4799
|
}
|
|
4779
4800
|
const Qe = new xe(y?.hls);
|
|
4780
|
-
|
|
4801
|
+
se = Qe, Qe.attachMedia(P), Qe.loadSource(M);
|
|
4781
4802
|
} else {
|
|
4782
|
-
|
|
4803
|
+
P.setAttribute("src", M);
|
|
4783
4804
|
try {
|
|
4784
|
-
|
|
4805
|
+
P.load();
|
|
4785
4806
|
} catch {
|
|
4786
4807
|
}
|
|
4787
4808
|
}
|
|
4788
4809
|
} else {
|
|
4789
|
-
|
|
4810
|
+
P.setAttribute("src", M);
|
|
4790
4811
|
try {
|
|
4791
|
-
|
|
4812
|
+
P.load();
|
|
4792
4813
|
} catch {
|
|
4793
4814
|
}
|
|
4794
4815
|
}
|
|
4795
4816
|
} catch (J) {
|
|
4796
|
-
|
|
4817
|
+
D?.(J), P.setAttribute("src", M);
|
|
4797
4818
|
try {
|
|
4798
|
-
|
|
4819
|
+
P.load();
|
|
4799
4820
|
} catch {
|
|
4800
4821
|
}
|
|
4801
4822
|
}
|
|
4802
4823
|
return;
|
|
4803
4824
|
}
|
|
4804
|
-
|
|
4825
|
+
P.setAttribute("src", M);
|
|
4805
4826
|
try {
|
|
4806
|
-
|
|
4827
|
+
P.load();
|
|
4807
4828
|
} catch {
|
|
4808
4829
|
}
|
|
4809
4830
|
}
|
|
4810
4831
|
function ye() {
|
|
4811
4832
|
Y?.();
|
|
4812
|
-
const
|
|
4833
|
+
const P = v.get(k) ?? 1e3;
|
|
4813
4834
|
Y = Ct(() => {
|
|
4814
|
-
const
|
|
4815
|
-
if (!
|
|
4816
|
-
const j =
|
|
4835
|
+
const M = U;
|
|
4836
|
+
if (!M) return;
|
|
4837
|
+
const j = M.duration || 0, J = M.currentTime || 0, Oe = M.buffered?.length ? M.buffered.end(M.buffered.length - 1) : 0;
|
|
4817
4838
|
V?.({
|
|
4818
4839
|
played: j > 0 ? J / j : 0,
|
|
4819
4840
|
playedSeconds: J,
|
|
4820
4841
|
loaded: j > 0 ? Math.min(Oe, j) / j : 0,
|
|
4821
4842
|
loadedSeconds: Math.min(Oe, j)
|
|
4822
4843
|
});
|
|
4823
|
-
},
|
|
4844
|
+
}, P);
|
|
4824
4845
|
}
|
|
4825
|
-
function we(
|
|
4826
|
-
if (
|
|
4827
|
-
return typeof
|
|
4846
|
+
function we(P) {
|
|
4847
|
+
if (P != null)
|
|
4848
|
+
return typeof P == "number" ? `${P}px` : P;
|
|
4828
4849
|
}
|
|
4829
4850
|
const De = d.video(
|
|
4830
|
-
ne((
|
|
4831
|
-
U =
|
|
4851
|
+
ne((P) => {
|
|
4852
|
+
U = P, h?.();
|
|
4832
4853
|
try {
|
|
4833
4854
|
U.playbackRate = v.get(c) ?? 1;
|
|
4834
4855
|
} catch {
|
|
@@ -4836,8 +4857,8 @@ function To(e) {
|
|
|
4836
4857
|
U.muted = !!(v.get(i) ?? !1), U.loop = !!(v.get(a) ?? !1), U.controls = !!(v.get(r) ?? !1), U.playsInline != null && (!!(v.get(l) ?? !0) ? U.setAttribute("playsinline", "") : U.removeAttribute("playsinline")), v.get(n) && (U.play?.().catch(() => {
|
|
4837
4858
|
}), x?.());
|
|
4838
4859
|
try {
|
|
4839
|
-
const
|
|
4840
|
-
|
|
4860
|
+
const M = !!(v.get(u) ?? !1), j = document, J = U;
|
|
4861
|
+
M ? typeof J.requestPictureInPicture == "function" && j.pictureInPictureElement !== U && J.requestPictureInPicture().catch(() => {
|
|
4841
4862
|
}) : j.pictureInPictureElement === U && typeof j.exitPictureInPicture == "function" && j.exitPictureInPicture().catch(() => {
|
|
4842
4863
|
});
|
|
4843
4864
|
} catch {
|
|
@@ -4846,61 +4867,61 @@ function To(e) {
|
|
|
4846
4867
|
}),
|
|
4847
4868
|
// size
|
|
4848
4869
|
S.width(
|
|
4849
|
-
v.map(
|
|
4870
|
+
v.map(p, we)
|
|
4850
4871
|
),
|
|
4851
4872
|
S.height(
|
|
4852
4873
|
v.map(b, we)
|
|
4853
4874
|
),
|
|
4854
4875
|
// Events
|
|
4855
|
-
|
|
4856
|
-
|
|
4876
|
+
L.play(() => w?.()),
|
|
4877
|
+
L.playing(() => {
|
|
4857
4878
|
x?.(), C?.();
|
|
4858
4879
|
}),
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
const
|
|
4863
|
-
|
|
4880
|
+
L.pause(() => g?.()),
|
|
4881
|
+
L.waiting(() => f?.()),
|
|
4882
|
+
L.canplay(() => {
|
|
4883
|
+
const P = U?.duration;
|
|
4884
|
+
P != null && Number.isFinite(P) && _?.(P);
|
|
4864
4885
|
}),
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4886
|
+
L.ended(() => $?.()),
|
|
4887
|
+
L.error((P) => {
|
|
4888
|
+
se || D?.(P);
|
|
4868
4889
|
})
|
|
4869
4890
|
);
|
|
4870
|
-
let Ae = null, z = null,
|
|
4891
|
+
let Ae = null, z = null, Te = null;
|
|
4871
4892
|
function $e() {
|
|
4872
|
-
const
|
|
4873
|
-
!Ae || typeof
|
|
4874
|
-
const j = fn(
|
|
4893
|
+
const P = v.get(t);
|
|
4894
|
+
!Ae || typeof P != "string" || Ha().then((M) => {
|
|
4895
|
+
const j = fn(P);
|
|
4875
4896
|
if (j) {
|
|
4876
4897
|
if (z) {
|
|
4877
4898
|
z.loadVideoById({ videoId: j });
|
|
4878
4899
|
return;
|
|
4879
4900
|
}
|
|
4880
|
-
z = new
|
|
4901
|
+
z = new M.Player(Ae, {
|
|
4881
4902
|
videoId: j,
|
|
4882
4903
|
playerVars: Wa(e),
|
|
4883
4904
|
events: {
|
|
4884
4905
|
onReady: () => {
|
|
4885
|
-
h?.(),
|
|
4906
|
+
h?.(), A(), v.get(n) && x?.(), Ke();
|
|
4886
4907
|
},
|
|
4887
4908
|
onStateChange: (J) => {
|
|
4888
4909
|
switch (J.data) {
|
|
4889
|
-
case
|
|
4910
|
+
case M.PlayerState.PLAYING:
|
|
4890
4911
|
w?.(), C?.();
|
|
4891
4912
|
break;
|
|
4892
|
-
case
|
|
4913
|
+
case M.PlayerState.PAUSED:
|
|
4893
4914
|
g?.();
|
|
4894
4915
|
break;
|
|
4895
|
-
case
|
|
4896
|
-
|
|
4916
|
+
case M.PlayerState.BUFFERING:
|
|
4917
|
+
f?.();
|
|
4897
4918
|
break;
|
|
4898
|
-
case
|
|
4919
|
+
case M.PlayerState.ENDED:
|
|
4899
4920
|
$?.();
|
|
4900
4921
|
break;
|
|
4901
4922
|
}
|
|
4902
4923
|
},
|
|
4903
|
-
onError: (J) =>
|
|
4924
|
+
onError: (J) => D?.(J),
|
|
4904
4925
|
onPlaybackRateChange: (J) => O?.(J.data),
|
|
4905
4926
|
onPlaybackQualityChange: (J) => B?.(J.data)
|
|
4906
4927
|
}
|
|
@@ -4909,20 +4930,20 @@ function To(e) {
|
|
|
4909
4930
|
});
|
|
4910
4931
|
}
|
|
4911
4932
|
function Ke() {
|
|
4912
|
-
|
|
4913
|
-
const
|
|
4914
|
-
|
|
4933
|
+
Te?.();
|
|
4934
|
+
const P = v.get(k) ?? 1e3;
|
|
4935
|
+
Te = Ct(() => {
|
|
4915
4936
|
if (!z) return;
|
|
4916
|
-
const
|
|
4937
|
+
const M = z.getDuration?.() ?? 0, j = z.getCurrentTime?.() ?? 0, J = z.getVideoLoadedFraction?.() ?? 0;
|
|
4917
4938
|
V?.({
|
|
4918
|
-
played:
|
|
4939
|
+
played: M > 0 ? j / M : 0,
|
|
4919
4940
|
playedSeconds: j,
|
|
4920
4941
|
loaded: J,
|
|
4921
|
-
loadedSeconds: J *
|
|
4942
|
+
loadedSeconds: J * M
|
|
4922
4943
|
});
|
|
4923
|
-
},
|
|
4944
|
+
}, P);
|
|
4924
4945
|
}
|
|
4925
|
-
function
|
|
4946
|
+
function A() {
|
|
4926
4947
|
if (!z) return;
|
|
4927
4948
|
try {
|
|
4928
4949
|
const j = v.get(c) ?? 1;
|
|
@@ -4941,12 +4962,12 @@ function To(e) {
|
|
|
4941
4962
|
} catch {
|
|
4942
4963
|
}
|
|
4943
4964
|
v.get(n) ?? !1 ? z.playVideo?.() : z.pauseVideo?.();
|
|
4944
|
-
const
|
|
4945
|
-
typeof
|
|
4965
|
+
const M = v.get(m);
|
|
4966
|
+
typeof M == "number" && Number.isFinite(M) && (z.seekTo?.(M, !0), I?.(M));
|
|
4946
4967
|
}
|
|
4947
4968
|
const N = d.div(
|
|
4948
|
-
ne((
|
|
4949
|
-
Ae =
|
|
4969
|
+
ne((P) => {
|
|
4970
|
+
Ae = P, $e(), h?.();
|
|
4950
4971
|
})
|
|
4951
4972
|
);
|
|
4952
4973
|
q.push(
|
|
@@ -4963,10 +4984,10 @@ function To(e) {
|
|
|
4963
4984
|
if (H.value === "file" && U)
|
|
4964
4985
|
U.volume = Math.min(Math.max(v.get(s) ?? 1, 0), 1);
|
|
4965
4986
|
else if (H.value === "youtube" && z) {
|
|
4966
|
-
const
|
|
4987
|
+
const P = Math.round(
|
|
4967
4988
|
Math.min(Math.max(v.get(s) ?? 1, 0), 1) * 100
|
|
4968
4989
|
);
|
|
4969
|
-
z.setVolume?.(
|
|
4990
|
+
z.setVolume?.(P);
|
|
4970
4991
|
}
|
|
4971
4992
|
})
|
|
4972
4993
|
), q.push(
|
|
@@ -4986,35 +5007,35 @@ function To(e) {
|
|
|
4986
5007
|
v.on(u, async () => {
|
|
4987
5008
|
if (!(H.value !== "file" || !U))
|
|
4988
5009
|
try {
|
|
4989
|
-
const
|
|
4990
|
-
|
|
4991
|
-
}) :
|
|
5010
|
+
const P = !!(v.get(u) ?? !1), M = document, j = U;
|
|
5011
|
+
P ? typeof j.requestPictureInPicture == "function" && M.pictureInPictureElement !== U && await j.requestPictureInPicture()?.catch(() => {
|
|
5012
|
+
}) : M.pictureInPictureElement === U && typeof M.exitPictureInPicture == "function" && await M.exitPictureInPicture()?.catch(() => {
|
|
4992
5013
|
});
|
|
4993
5014
|
} catch {
|
|
4994
5015
|
}
|
|
4995
5016
|
})
|
|
4996
5017
|
), q.push(
|
|
4997
5018
|
v.on(m ?? null, () => {
|
|
4998
|
-
const
|
|
4999
|
-
if (
|
|
5019
|
+
const P = v.get(m);
|
|
5020
|
+
if (P != null)
|
|
5000
5021
|
if (H.value === "file" && U)
|
|
5001
5022
|
try {
|
|
5002
|
-
U.currentTime =
|
|
5023
|
+
U.currentTime = P, I?.(P);
|
|
5003
5024
|
} catch {
|
|
5004
5025
|
}
|
|
5005
|
-
else H.value === "youtube" && z && (z.seekTo?.(
|
|
5026
|
+
else H.value === "youtube" && z && (z.seekTo?.(P, !0), I?.(P));
|
|
5006
5027
|
})
|
|
5007
5028
|
);
|
|
5008
5029
|
const K = d.div(
|
|
5009
5030
|
o.class("bc-base-video"),
|
|
5010
5031
|
S.width(
|
|
5011
|
-
v.map(
|
|
5032
|
+
v.map(p, we)
|
|
5012
5033
|
),
|
|
5013
5034
|
S.height(
|
|
5014
5035
|
v.map(b, we)
|
|
5015
5036
|
),
|
|
5016
5037
|
Q(
|
|
5017
|
-
v.map(H, (
|
|
5038
|
+
v.map(H, (P) => P === "youtube"),
|
|
5018
5039
|
() => N,
|
|
5019
5040
|
() => De
|
|
5020
5041
|
)
|
|
@@ -5049,22 +5070,22 @@ function Ya() {
|
|
|
5049
5070
|
const t = window.pdfjsLib;
|
|
5050
5071
|
t?.GlobalWorkerOptions?.workerSrc || t?.GlobalWorkerOptions && (t.GlobalWorkerOptions.workerSrc = `${gt}build/pdf.worker.min.mjs`);
|
|
5051
5072
|
}
|
|
5052
|
-
const
|
|
5073
|
+
const Za = (e) => new Promise((t, n) => {
|
|
5053
5074
|
const a = document.createElement("script");
|
|
5054
5075
|
a.type = "module", a.src = e, a.onload = () => t(), a.onerror = () => n(new Error(`Failed to load script: ${e}`)), document.head.appendChild(a);
|
|
5055
|
-
}),
|
|
5076
|
+
}), Ga = async () => {
|
|
5056
5077
|
const e = window;
|
|
5057
5078
|
if (e.pdfjsLib && za(e.pdfjsLib)) return e.pdfjsLib;
|
|
5058
|
-
if (await
|
|
5079
|
+
if (await Za(`${gt}build/pdf.min.mjs`), await new Promise((t) => setTimeout(t, 100)), !e.pdfjsLib)
|
|
5059
5080
|
throw new Error("PDF.js failed to initialize after loading");
|
|
5060
5081
|
return e.pdfjsLib;
|
|
5061
5082
|
};
|
|
5062
|
-
let at = null,
|
|
5083
|
+
let at = null, Mt = !1;
|
|
5063
5084
|
async function qa() {
|
|
5064
5085
|
if (at)
|
|
5065
5086
|
return at;
|
|
5066
|
-
!
|
|
5067
|
-
const e = await
|
|
5087
|
+
!Mt && typeof window < "u" && (Ya(), Mt = !0);
|
|
5088
|
+
const e = await Ga();
|
|
5068
5089
|
return at = e, e.GlobalWorkerOptions && (e.GlobalWorkerOptions.workerSrc = `${gt}build/pdf.worker.min.mjs`), e;
|
|
5069
5090
|
}
|
|
5070
5091
|
function Ja(e, t) {
|
|
@@ -5096,7 +5117,7 @@ function Qa(e, t) {
|
|
|
5096
5117
|
function rt(e) {
|
|
5097
5118
|
return typeof e == "string" ? e : e instanceof Uint8Array ? e.slice() : e instanceof ArrayBuffer ? e.slice(0) : e;
|
|
5098
5119
|
}
|
|
5099
|
-
function
|
|
5120
|
+
function To({
|
|
5100
5121
|
source: e,
|
|
5101
5122
|
page: t = 1,
|
|
5102
5123
|
fit: n = "width",
|
|
@@ -5107,7 +5128,7 @@ function Io({
|
|
|
5107
5128
|
renderAnnotationLayer: c = !1,
|
|
5108
5129
|
onPageChange: u,
|
|
5109
5130
|
onLoadComplete: l
|
|
5110
|
-
}, ...
|
|
5131
|
+
}, ...p) {
|
|
5111
5132
|
const b = qa();
|
|
5112
5133
|
let k = rt(
|
|
5113
5134
|
v.get(e)
|
|
@@ -5121,14 +5142,14 @@ function Io({
|
|
|
5121
5142
|
const w = kn(
|
|
5122
5143
|
x.map(
|
|
5123
5144
|
(g) => g == null ? null : { width: g.width, height: g.height },
|
|
5124
|
-
(g,
|
|
5145
|
+
(g, f) => g != null && f != null && g.width === f.width && g.height === f.height
|
|
5125
5146
|
),
|
|
5126
5147
|
100
|
|
5127
5148
|
);
|
|
5128
5149
|
return Ue(
|
|
5129
5150
|
w,
|
|
5130
5151
|
(g) => Ut({
|
|
5131
|
-
request:
|
|
5152
|
+
request: T(
|
|
5132
5153
|
e,
|
|
5133
5154
|
t,
|
|
5134
5155
|
n,
|
|
@@ -5138,58 +5159,58 @@ function Io({
|
|
|
5138
5159
|
i,
|
|
5139
5160
|
c,
|
|
5140
5161
|
g
|
|
5141
|
-
)((
|
|
5142
|
-
source:
|
|
5162
|
+
)((f, C, $, D, _, I, V, O, B) => ({
|
|
5163
|
+
source: f,
|
|
5143
5164
|
page: C,
|
|
5144
5165
|
fit: $,
|
|
5145
|
-
scale:
|
|
5166
|
+
scale: D,
|
|
5146
5167
|
rotation: _,
|
|
5147
|
-
quality:
|
|
5168
|
+
quality: I,
|
|
5148
5169
|
renderTextLayer: V,
|
|
5149
5170
|
renderAnnotationLayer: O,
|
|
5150
5171
|
containerWidth: B.width,
|
|
5151
5172
|
containerHeight: B.height
|
|
5152
5173
|
})),
|
|
5153
|
-
load: async ({ request:
|
|
5154
|
-
const C = await b, $ =
|
|
5155
|
-
(m == null || !Qa(k,
|
|
5156
|
-
const
|
|
5157
|
-
u != null &&
|
|
5158
|
-
const V = await m.getPage(
|
|
5174
|
+
load: async ({ request: f }) => {
|
|
5175
|
+
const C = await b, $ = f.source, D = rt($), _ = rt($);
|
|
5176
|
+
(m == null || !Qa(k, D)) && (m != null && (m.destroy(), m = null), k = D, m = await C.getDocument(_).promise, l?.({ numPages: m.numPages }));
|
|
5177
|
+
const I = f.page < 1 || f.page > m.numPages ? 1 : f.page;
|
|
5178
|
+
u != null && I !== y && (y = I, u(I));
|
|
5179
|
+
const V = await m.getPage(I);
|
|
5159
5180
|
let O;
|
|
5160
|
-
if (
|
|
5161
|
-
O =
|
|
5181
|
+
if (f.fit === "none")
|
|
5182
|
+
O = f.scale;
|
|
5162
5183
|
else {
|
|
5163
5184
|
const H = V.getViewport({
|
|
5164
5185
|
scale: 1,
|
|
5165
|
-
rotation:
|
|
5166
|
-
}), U = H.width / H.height, Y =
|
|
5167
|
-
switch (
|
|
5186
|
+
rotation: f.rotation
|
|
5187
|
+
}), U = H.width / H.height, Y = f.containerWidth / f.containerHeight;
|
|
5188
|
+
switch (f.fit) {
|
|
5168
5189
|
case "width":
|
|
5169
|
-
O =
|
|
5190
|
+
O = f.containerWidth / H.width;
|
|
5170
5191
|
break;
|
|
5171
5192
|
case "height":
|
|
5172
|
-
O =
|
|
5193
|
+
O = f.containerHeight / H.height;
|
|
5173
5194
|
break;
|
|
5174
5195
|
case "contain":
|
|
5175
5196
|
O = Math.min(
|
|
5176
|
-
|
|
5177
|
-
|
|
5197
|
+
f.containerWidth / H.width,
|
|
5198
|
+
f.containerHeight / H.height
|
|
5178
5199
|
);
|
|
5179
5200
|
break;
|
|
5180
5201
|
case "cover":
|
|
5181
|
-
U > Y ? O =
|
|
5202
|
+
U > Y ? O = f.containerHeight / H.height : O = f.containerWidth / H.width;
|
|
5182
5203
|
break;
|
|
5183
5204
|
}
|
|
5184
5205
|
}
|
|
5185
5206
|
const B = V.getViewport({
|
|
5186
5207
|
scale: O,
|
|
5187
|
-
rotation:
|
|
5208
|
+
rotation: f.rotation
|
|
5188
5209
|
}), F = V.getViewport({
|
|
5189
|
-
scale: O *
|
|
5190
|
-
rotation:
|
|
5210
|
+
scale: O * f.quality,
|
|
5211
|
+
rotation: f.rotation
|
|
5191
5212
|
});
|
|
5192
|
-
let
|
|
5213
|
+
let ee = null;
|
|
5193
5214
|
return {
|
|
5194
5215
|
pdfWidth: B.width,
|
|
5195
5216
|
pdfHeight: B.height,
|
|
@@ -5198,32 +5219,32 @@ function Io({
|
|
|
5198
5219
|
highResWidth: Math.floor(F.width),
|
|
5199
5220
|
highResHeight: Math.floor(F.height),
|
|
5200
5221
|
render: async (H, U, Y) => {
|
|
5201
|
-
if (
|
|
5222
|
+
if (ee)
|
|
5202
5223
|
try {
|
|
5203
|
-
|
|
5224
|
+
ee.cancel(), await ee.promise.catch(() => {
|
|
5204
5225
|
});
|
|
5205
5226
|
} catch {
|
|
5206
5227
|
}
|
|
5207
5228
|
H.width = F.width, H.height = F.height, H.style.width = `${B.width}px`, H.style.height = `${B.height}px`;
|
|
5208
|
-
const
|
|
5209
|
-
if (!
|
|
5229
|
+
const se = H.getContext("2d");
|
|
5230
|
+
if (!se)
|
|
5210
5231
|
throw new Error("Failed to get canvas context");
|
|
5211
|
-
const
|
|
5212
|
-
canvasContext:
|
|
5232
|
+
const Ie = V.render({
|
|
5233
|
+
canvasContext: se,
|
|
5213
5234
|
canvas: H,
|
|
5214
5235
|
viewport: F
|
|
5215
5236
|
});
|
|
5216
|
-
|
|
5237
|
+
ee = Ie;
|
|
5217
5238
|
try {
|
|
5218
|
-
await
|
|
5239
|
+
await Ie.promise;
|
|
5219
5240
|
} catch (q) {
|
|
5220
5241
|
if ((q instanceof Error ? q.name : q?.name) !== "RenderingCancelledException")
|
|
5221
5242
|
throw q;
|
|
5222
5243
|
return;
|
|
5223
5244
|
} finally {
|
|
5224
|
-
|
|
5245
|
+
ee === Ie && (ee = null);
|
|
5225
5246
|
}
|
|
5226
|
-
if (
|
|
5247
|
+
if (f.renderTextLayer && U != null) {
|
|
5227
5248
|
U.innerHTML = "";
|
|
5228
5249
|
try {
|
|
5229
5250
|
const q = await V.getTextContent(), de = C.TextLayer;
|
|
@@ -5236,7 +5257,7 @@ function Io({
|
|
|
5236
5257
|
console.warn("Failed to render text layer:", q);
|
|
5237
5258
|
}
|
|
5238
5259
|
}
|
|
5239
|
-
if (
|
|
5260
|
+
if (f.renderAnnotationLayer && Y != null) {
|
|
5240
5261
|
Y.innerHTML = "", Y.style.width = `${B.width}px`, Y.style.height = `${B.height}px`;
|
|
5241
5262
|
try {
|
|
5242
5263
|
const q = await V.getAnnotations(), de = C.AnnotationLayer;
|
|
@@ -5274,28 +5295,28 @@ function Io({
|
|
|
5274
5295
|
}
|
|
5275
5296
|
};
|
|
5276
5297
|
},
|
|
5277
|
-
convertError: (
|
|
5298
|
+
convertError: (f) => f instanceof Error ? f.message : JSON.stringify(f),
|
|
5278
5299
|
pending: () => d.div(
|
|
5279
5300
|
o.class("bc-pdf-page-viewer__loading"),
|
|
5280
|
-
|
|
5301
|
+
te({
|
|
5281
5302
|
icon: "line-md:loading-twotone-loop",
|
|
5282
5303
|
size: "lg"
|
|
5283
5304
|
}),
|
|
5284
5305
|
d.span(
|
|
5285
5306
|
o.class("bc-pdf-page-viewer__loading-text"),
|
|
5286
|
-
h.map((
|
|
5307
|
+
h.map((f) => f.pdfPageViewer.loading)
|
|
5287
5308
|
)
|
|
5288
5309
|
),
|
|
5289
|
-
failure: ({ error:
|
|
5310
|
+
failure: ({ error: f }) => d.div(
|
|
5290
5311
|
o.class("bc-pdf-page-viewer__error"),
|
|
5291
|
-
|
|
5312
|
+
te({
|
|
5292
5313
|
icon: "line-md:alert-circle",
|
|
5293
5314
|
size: "lg",
|
|
5294
5315
|
color: "danger"
|
|
5295
5316
|
}),
|
|
5296
|
-
d.span(o.class("bc-pdf-page-viewer__error-text"),
|
|
5317
|
+
d.span(o.class("bc-pdf-page-viewer__error-text"), f)
|
|
5297
5318
|
),
|
|
5298
|
-
success: ({ value:
|
|
5319
|
+
success: ({ value: f }) => d.div(
|
|
5299
5320
|
o.class(
|
|
5300
5321
|
v.map(
|
|
5301
5322
|
n,
|
|
@@ -5309,8 +5330,8 @@ function Io({
|
|
|
5309
5330
|
Q(
|
|
5310
5331
|
v.map(n, (C) => C === "none"),
|
|
5311
5332
|
() => o.style(
|
|
5312
|
-
|
|
5313
|
-
(C) => `width: ${C}px; height: ${
|
|
5333
|
+
f.$.canvasWidth.map(
|
|
5334
|
+
(C) => `width: ${C}px; height: ${f.value.canvasHeight}px;`
|
|
5314
5335
|
)
|
|
5315
5336
|
),
|
|
5316
5337
|
() => R()
|
|
@@ -5318,9 +5339,9 @@ function Io({
|
|
|
5318
5339
|
// Canvas layer
|
|
5319
5340
|
d.canvas(
|
|
5320
5341
|
o.class("bc-pdf-page-viewer__canvas"),
|
|
5321
|
-
o.width(
|
|
5322
|
-
o.height(
|
|
5323
|
-
...
|
|
5342
|
+
o.width(f.$.canvasWidth.map(String)),
|
|
5343
|
+
o.height(f.$.canvasHeight.map(String)),
|
|
5344
|
+
...p
|
|
5324
5345
|
),
|
|
5325
5346
|
// Text layer (for text selection)
|
|
5326
5347
|
d.div(o.class("bc-pdf-page-viewer__text-layer")),
|
|
@@ -5330,15 +5351,15 @@ function Io({
|
|
|
5330
5351
|
ne((C) => {
|
|
5331
5352
|
const $ = C.querySelector(
|
|
5332
5353
|
".bc-pdf-page-viewer__canvas"
|
|
5333
|
-
),
|
|
5354
|
+
), D = C.querySelector(
|
|
5334
5355
|
".bc-pdf-page-viewer__text-layer"
|
|
5335
5356
|
), _ = C.querySelector(
|
|
5336
5357
|
".bc-pdf-page-viewer__annotation-layer"
|
|
5337
5358
|
);
|
|
5338
|
-
return v.on(
|
|
5339
|
-
await
|
|
5359
|
+
return v.on(f, async (I) => {
|
|
5360
|
+
await I.render(
|
|
5340
5361
|
$,
|
|
5341
|
-
|
|
5362
|
+
D,
|
|
5342
5363
|
_
|
|
5343
5364
|
);
|
|
5344
5365
|
}), W;
|
|
@@ -5356,7 +5377,7 @@ export {
|
|
|
5356
5377
|
Co as AnnouncementBar,
|
|
5357
5378
|
kr as AppShell,
|
|
5358
5379
|
Wn as AppearanceSelector,
|
|
5359
|
-
|
|
5380
|
+
Ms as ArrayController,
|
|
5360
5381
|
br as Badge,
|
|
5361
5382
|
xi as Base64Input,
|
|
5362
5383
|
ki as Base64sInput,
|
|
@@ -5365,27 +5386,27 @@ export {
|
|
|
5365
5386
|
Ht as BaseControl,
|
|
5366
5387
|
ua as BaseDropdownControl,
|
|
5367
5388
|
Si as BaseListControl,
|
|
5368
|
-
|
|
5389
|
+
Es as BaseMappedControl,
|
|
5369
5390
|
Ci as BaseNativeSelectControl,
|
|
5370
|
-
|
|
5371
|
-
|
|
5391
|
+
Lr as BaseSelectTagsControl,
|
|
5392
|
+
Io as BaseVideoPlayer,
|
|
5372
5393
|
io as BeatUI,
|
|
5373
5394
|
ie as BeatUII18n,
|
|
5374
5395
|
Rr as BigintInput,
|
|
5375
5396
|
ii as BooleanValidator,
|
|
5376
5397
|
yt as Button,
|
|
5377
5398
|
go as ButtonLink,
|
|
5378
|
-
|
|
5399
|
+
Ii as Card,
|
|
5379
5400
|
Cr as Center,
|
|
5380
5401
|
Sr as CenterH,
|
|
5381
|
-
|
|
5402
|
+
Os as CheckboxInput,
|
|
5382
5403
|
cn as Chips,
|
|
5383
5404
|
Fe as CloseButton,
|
|
5384
|
-
|
|
5405
|
+
la as Collapse,
|
|
5385
5406
|
ho as CollapsibleSidebarGroup,
|
|
5386
5407
|
ha as ColorController,
|
|
5387
5408
|
vr as ColorInput,
|
|
5388
|
-
|
|
5409
|
+
Ti as ColorSwatchInput,
|
|
5389
5410
|
_r as ComboboxControl,
|
|
5390
5411
|
da as ComboboxInput,
|
|
5391
5412
|
Vr as ComboboxTagsControl,
|
|
@@ -5394,53 +5415,53 @@ export {
|
|
|
5394
5415
|
ci as ConfirmModal,
|
|
5395
5416
|
Wt as Control,
|
|
5396
5417
|
$n as Controller,
|
|
5397
|
-
|
|
5418
|
+
Ns as DangerLabel,
|
|
5398
5419
|
Br as DateInput,
|
|
5399
|
-
|
|
5420
|
+
Mr as DateTimeInput,
|
|
5400
5421
|
wo as Drawer,
|
|
5401
5422
|
Qt as DropdownBase,
|
|
5402
5423
|
$r as DropdownControl,
|
|
5403
5424
|
ca as DropdownInput,
|
|
5404
5425
|
no as DurationInput,
|
|
5405
5426
|
$i as EditableText,
|
|
5406
|
-
|
|
5407
|
-
|
|
5427
|
+
Rs as EmailInput,
|
|
5428
|
+
Us as EmphasisLabel,
|
|
5408
5429
|
ao as EnsureControl,
|
|
5409
5430
|
An as Expando,
|
|
5410
|
-
|
|
5431
|
+
Er as FileInput,
|
|
5411
5432
|
Vn as FilesInput,
|
|
5412
|
-
|
|
5413
|
-
|
|
5433
|
+
Ge as Flyout,
|
|
5434
|
+
Pn as FocusTrap,
|
|
5414
5435
|
ro as FormStatus,
|
|
5415
|
-
|
|
5416
|
-
|
|
5436
|
+
Zt as Group,
|
|
5437
|
+
te as Icon,
|
|
5417
5438
|
ce as InputContainer,
|
|
5418
5439
|
Ye as InputIcon,
|
|
5419
5440
|
dt as InputWrapper,
|
|
5420
|
-
|
|
5441
|
+
Gr as InstantInput,
|
|
5421
5442
|
Do as LOGICAL_PROPERTY_MAP,
|
|
5422
|
-
|
|
5443
|
+
Fs as Label,
|
|
5423
5444
|
Or as LazyNativeSelect,
|
|
5424
5445
|
So as Lightbox,
|
|
5425
|
-
|
|
5426
|
-
|
|
5446
|
+
Ta as Link,
|
|
5447
|
+
Ic as LinkPortal,
|
|
5427
5448
|
_i as ListControl,
|
|
5428
|
-
|
|
5449
|
+
Pi as ListInput,
|
|
5429
5450
|
ct as Locale,
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5451
|
+
so as LocaleSelector,
|
|
5452
|
+
js as MappedControl,
|
|
5453
|
+
Ee as MaskInput,
|
|
5433
5454
|
tn as Menu,
|
|
5434
|
-
|
|
5455
|
+
Pr as MenuItem,
|
|
5435
5456
|
nn as MenuSeparator,
|
|
5436
5457
|
ui as Modal,
|
|
5437
|
-
|
|
5458
|
+
Hs as MutedLabel,
|
|
5438
5459
|
co as NativePdfPreview,
|
|
5439
|
-
|
|
5440
|
-
|
|
5460
|
+
Gt as NativeSelect,
|
|
5461
|
+
Li as NativeSelectControl,
|
|
5441
5462
|
bo as NavigationLink,
|
|
5442
|
-
|
|
5443
|
-
|
|
5463
|
+
Ir as NineSliceScrollView,
|
|
5464
|
+
Ws as Notice,
|
|
5444
5465
|
xa as Notification,
|
|
5445
5466
|
pn as NotificationProvider,
|
|
5446
5467
|
Sa as NotificationService,
|
|
@@ -5452,10 +5473,10 @@ export {
|
|
|
5452
5473
|
Bi as NullableEmailInput,
|
|
5453
5474
|
qr as NullableInstantInput,
|
|
5454
5475
|
Nr as NullableMaskInput,
|
|
5455
|
-
|
|
5456
|
-
|
|
5476
|
+
Mi as NullableNumberInput,
|
|
5477
|
+
Ei as NullablePasswordInput,
|
|
5457
5478
|
Hr as NullablePlainDateInput,
|
|
5458
|
-
|
|
5479
|
+
Zr as NullablePlainDateTimeInput,
|
|
5459
5480
|
to as NullablePlainMonthDayInput,
|
|
5460
5481
|
zr as NullablePlainTimeInput,
|
|
5461
5482
|
Xr as NullablePlainYearMonthInput,
|
|
@@ -5467,22 +5488,22 @@ export {
|
|
|
5467
5488
|
ji as NullableUrlInput,
|
|
5468
5489
|
Kr as NullableZonedDateTimeInput,
|
|
5469
5490
|
Hi as NumberInput,
|
|
5470
|
-
|
|
5491
|
+
zs as ObjectController,
|
|
5471
5492
|
di as ObjectValidator,
|
|
5472
5493
|
fo as OpenGraph,
|
|
5473
5494
|
Ce as Option,
|
|
5474
5495
|
zt as Overlay,
|
|
5475
5496
|
uo as PDFJSPreview,
|
|
5476
5497
|
gr as PageDropZone,
|
|
5477
|
-
|
|
5478
|
-
|
|
5498
|
+
Ys as PasswordInput,
|
|
5499
|
+
To as PdfPageViewer,
|
|
5479
5500
|
jr as PlainDateInput,
|
|
5480
5501
|
Yr as PlainDateTimeInput,
|
|
5481
5502
|
eo as PlainMonthDayInput,
|
|
5482
5503
|
Wr as PlainTimeInput,
|
|
5483
5504
|
Qr as PlainYearMonthInput,
|
|
5484
5505
|
Wi as RatingInput,
|
|
5485
|
-
|
|
5506
|
+
Zs as RequiredSymbol,
|
|
5486
5507
|
ko as Ribbon,
|
|
5487
5508
|
_t as ScrollablePanel,
|
|
5488
5509
|
Dn as SegmentedInput,
|
|
@@ -5491,12 +5512,12 @@ export {
|
|
|
5491
5512
|
mo as Sidebar,
|
|
5492
5513
|
Aa as SidebarActiveLink,
|
|
5493
5514
|
Va as SidebarClickLink,
|
|
5494
|
-
|
|
5515
|
+
La as SidebarContext,
|
|
5495
5516
|
Bt as SidebarGroup,
|
|
5496
5517
|
Ba as SidebarLink,
|
|
5497
5518
|
vo as SidebarSeparator,
|
|
5498
5519
|
Da as SidebarUrlLink,
|
|
5499
|
-
|
|
5520
|
+
Tr as Sink,
|
|
5500
5521
|
zi as SliderInput,
|
|
5501
5522
|
pt as Stack,
|
|
5502
5523
|
hr as StandaloneAppearanceSelector,
|
|
@@ -5507,44 +5528,44 @@ export {
|
|
|
5507
5528
|
yo as Tabs,
|
|
5508
5529
|
Jt as Tag,
|
|
5509
5530
|
Fr as TagsInput,
|
|
5510
|
-
|
|
5531
|
+
Zi as TextArea,
|
|
5511
5532
|
Ao as TextInput,
|
|
5512
5533
|
Yt as Theme,
|
|
5513
|
-
|
|
5534
|
+
Ln as ThemeAppearance,
|
|
5514
5535
|
$c as Toolbar,
|
|
5515
5536
|
_c as ToolbarButton,
|
|
5516
|
-
|
|
5517
|
-
|
|
5537
|
+
Pc as ToolbarDivider,
|
|
5538
|
+
Lc as ToolbarGroup,
|
|
5518
5539
|
Dc as ToolbarSpacer,
|
|
5519
5540
|
xo as Tooltip,
|
|
5520
|
-
|
|
5541
|
+
Gi as UUIDInput,
|
|
5521
5542
|
qi as UnionController,
|
|
5522
5543
|
Ji as UnstyledDropZone,
|
|
5523
5544
|
Ki as UrlInput,
|
|
5524
|
-
|
|
5545
|
+
Po as Use,
|
|
5525
5546
|
Xn as WithBeatUIBreakpoint,
|
|
5526
5547
|
xr as WithBeatUIElementBreakpoint,
|
|
5527
5548
|
Kt as WithBreakpoint,
|
|
5528
5549
|
ve as WithTemporal,
|
|
5529
5550
|
Jr as ZonedDateTimeInput,
|
|
5530
5551
|
qo as backgroundConfig,
|
|
5531
|
-
|
|
5532
|
-
|
|
5552
|
+
pl as baseSpacing,
|
|
5553
|
+
fl as beatuiPreset,
|
|
5533
5554
|
Jo as bgColors,
|
|
5534
5555
|
fi as boolean,
|
|
5535
5556
|
Ko as borderColors,
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
|
|
5557
|
+
bl as breakpoints,
|
|
5558
|
+
gl as changeFontSize,
|
|
5559
|
+
lo as colorInputOptionsFromController,
|
|
5539
5560
|
Qo as colorShades,
|
|
5540
5561
|
Xo as colors,
|
|
5541
5562
|
Kn as compareBreakpoint,
|
|
5542
|
-
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5563
|
+
Gs as connectCommonAttributes,
|
|
5564
|
+
qs as connectNumberInput,
|
|
5565
|
+
Js as connectStringInput,
|
|
5566
|
+
Ks as convertStandardSchemaIssues,
|
|
5567
|
+
Qs as convertStandardSchemaPathToPath,
|
|
5568
|
+
ml as createBeatuiPreset,
|
|
5548
5569
|
oo as createColorController,
|
|
5549
5570
|
bt as createLocationMatcher,
|
|
5550
5571
|
bi as createStandardSchema,
|
|
@@ -5561,110 +5582,110 @@ export {
|
|
|
5561
5582
|
ec as ensureTemporal,
|
|
5562
5583
|
tc as fileToBase64,
|
|
5563
5584
|
wr as findBreakpoint,
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5585
|
+
hl as fontFamily,
|
|
5586
|
+
vl as fontSize,
|
|
5587
|
+
yl as fontWeight,
|
|
5567
5588
|
nc as formatColor,
|
|
5568
|
-
|
|
5569
|
-
|
|
5589
|
+
Mo as formatFileSize,
|
|
5590
|
+
wl as generateAllTokenVariables,
|
|
5570
5591
|
Nn as generateBadgeClasses,
|
|
5571
5592
|
Rn as generateBadgeStyles,
|
|
5572
|
-
|
|
5593
|
+
xl as generateBreakpointVariables,
|
|
5573
5594
|
wt as generateButtonClasses,
|
|
5574
5595
|
xt as generateButtonStyles,
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5596
|
+
el as generateColorVariables,
|
|
5597
|
+
tl as generateCoreColorVariables,
|
|
5598
|
+
kl as generateCoreTokenVariables,
|
|
5599
|
+
Sl as generateFontFamilyOverrideVariables,
|
|
5600
|
+
Eo as generateInputContainerInputClasses,
|
|
5580
5601
|
Dt as generateLinkClasses,
|
|
5581
5602
|
At as generateLinkStyles,
|
|
5582
|
-
|
|
5603
|
+
Cl as generateMotionVariables,
|
|
5583
5604
|
ya as generateNotificationClasses,
|
|
5584
5605
|
wa as generateNotificationStyles,
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
$
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
|
|
5601
|
-
|
|
5606
|
+
Il as generateRadiusVariables,
|
|
5607
|
+
nl as generateSemanticColorVariables,
|
|
5608
|
+
Tl as generateSemanticFontVariables,
|
|
5609
|
+
$l as generateSemanticMotionVariables,
|
|
5610
|
+
_l as generateSemanticRadiusVariables,
|
|
5611
|
+
Pl as generateSemanticShadowVariables,
|
|
5612
|
+
Ll as generateSemanticSpacingVariables,
|
|
5613
|
+
Dl as generateSemanticTextShadowVariables,
|
|
5614
|
+
Al as generateSemanticTokenVariables,
|
|
5615
|
+
Vl as generateShadowVariables,
|
|
5616
|
+
Bl as generateSpacingVariables,
|
|
5617
|
+
Ml as generateTextShadowVariables,
|
|
5618
|
+
El as generateTypographyVariables,
|
|
5619
|
+
Ol as generateZIndexVariables,
|
|
5620
|
+
Nl as getBreakpointMediaQuery,
|
|
5621
|
+
Rl as getBreakpointVar,
|
|
5622
|
+
Ul as getBreakpointVarName,
|
|
5602
5623
|
ut as getColorVar,
|
|
5603
|
-
|
|
5624
|
+
al as getColorVarName,
|
|
5604
5625
|
ac as getContrastRatio,
|
|
5605
5626
|
Oo as getDirectionClassName,
|
|
5606
5627
|
No as getDirectionFromLocale,
|
|
5607
|
-
|
|
5608
|
-
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
|
|
5612
|
-
|
|
5628
|
+
Fl as getFontFamilyVar,
|
|
5629
|
+
jl as getFontFamilyVarName,
|
|
5630
|
+
Hl as getFontSizeVar,
|
|
5631
|
+
Wl as getFontSizeVarName,
|
|
5632
|
+
zl as getFontWeightVar,
|
|
5633
|
+
Yl as getFontWeightVarName,
|
|
5613
5634
|
Ro as getIconLocally,
|
|
5614
|
-
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
|
|
5621
|
-
|
|
5635
|
+
Zl as getLetterSpacingVar,
|
|
5636
|
+
Gl as getLetterSpacingVarName,
|
|
5637
|
+
ql as getLineHeightVar,
|
|
5638
|
+
Jl as getLineHeightVarName,
|
|
5639
|
+
Kl as getMotionDurationVar,
|
|
5640
|
+
Ql as getMotionDurationVarName,
|
|
5641
|
+
Xl as getMotionEasingVar,
|
|
5642
|
+
es as getMotionEasingVarName,
|
|
5622
5643
|
Uo as getOppositeDirection,
|
|
5623
5644
|
Fo as getPhysicalProperty,
|
|
5624
|
-
|
|
5625
|
-
|
|
5626
|
-
|
|
5627
|
-
|
|
5628
|
-
|
|
5629
|
-
|
|
5630
|
-
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
|
|
5645
|
+
ts as getRadiusMediaQuery,
|
|
5646
|
+
Tn as getRadiusVar,
|
|
5647
|
+
ns as getRadiusVarName,
|
|
5648
|
+
as as getSemanticFontVar,
|
|
5649
|
+
rs as getSemanticFontVarName,
|
|
5650
|
+
os as getSemanticMotionVarName,
|
|
5651
|
+
ls as getSemanticRadiusVarName,
|
|
5652
|
+
ss as getSemanticShadowVarName,
|
|
5653
|
+
is as getSemanticSpacingVarName,
|
|
5654
|
+
cs as getSemanticTextShadowVarName,
|
|
5655
|
+
us as getShadowVar,
|
|
5656
|
+
ds as getShadowVarName,
|
|
5657
|
+
ps as getSpacingVar,
|
|
5658
|
+
fs as getSpacingVarName,
|
|
5659
|
+
bs as getTextShadowVar,
|
|
5660
|
+
gs as getTextShadowVarName,
|
|
5661
|
+
ms as getTokenValue,
|
|
5662
|
+
hs as getZIndexVar,
|
|
5663
|
+
vs as getZIndexVarName,
|
|
5643
5664
|
rc as hexToRgb,
|
|
5644
5665
|
oc as hslToRgb,
|
|
5645
|
-
|
|
5666
|
+
lc as hwbToRgb,
|
|
5646
5667
|
fr as increaseSize,
|
|
5647
|
-
|
|
5668
|
+
rl as interactiveColors,
|
|
5648
5669
|
jo as isIndexedDBAvailable,
|
|
5649
5670
|
Ho as isRTLLocale,
|
|
5650
|
-
|
|
5651
|
-
|
|
5671
|
+
Pa as isUrlMatch,
|
|
5672
|
+
En as isValidColor,
|
|
5652
5673
|
St as isValidHexColor,
|
|
5653
|
-
|
|
5674
|
+
sc as isValidHslColor,
|
|
5654
5675
|
ic as isValidRgbColor,
|
|
5655
5676
|
cc as isValidRgbaColor,
|
|
5656
|
-
|
|
5657
|
-
|
|
5677
|
+
ys as letterSpacing,
|
|
5678
|
+
ws as lineHeight,
|
|
5658
5679
|
uc as linearToSrgb,
|
|
5659
5680
|
Wo as makeI18nProvider,
|
|
5660
|
-
|
|
5681
|
+
Xs as makeMapValidation,
|
|
5661
5682
|
zo as makeMessages,
|
|
5662
5683
|
Ft as makeOnBlurHandler,
|
|
5663
5684
|
jt as makeOnChangeHandler,
|
|
5664
|
-
|
|
5665
|
-
|
|
5685
|
+
xs as motionDurations,
|
|
5686
|
+
ks as motionEasings,
|
|
5666
5687
|
dc as mulberry32,
|
|
5667
|
-
|
|
5688
|
+
ol as normalizeColorName,
|
|
5668
5689
|
Ve as normalizeHexColor,
|
|
5669
5690
|
Bn as nullToEmpty,
|
|
5670
5691
|
gi as object,
|
|
@@ -5672,33 +5693,33 @@ export {
|
|
|
5672
5693
|
fc as parseAnyColor,
|
|
5673
5694
|
ei as parsePath,
|
|
5674
5695
|
ti as pathToString,
|
|
5675
|
-
|
|
5696
|
+
Ss as radius,
|
|
5676
5697
|
Yo as resolveDirection,
|
|
5677
5698
|
bc as resolveEffectiveFormat,
|
|
5678
|
-
|
|
5699
|
+
ll as resolveSemanticColorMap,
|
|
5679
5700
|
gc as rgbToHex,
|
|
5680
5701
|
mc as rgbToHsl,
|
|
5681
5702
|
hc as rgbToHwb,
|
|
5682
5703
|
vc as rgbToOklch,
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
$
|
|
5689
|
-
|
|
5690
|
-
|
|
5704
|
+
sl as semanticColorNames,
|
|
5705
|
+
il as semanticColors,
|
|
5706
|
+
Cs as semanticFontNames,
|
|
5707
|
+
Is as semanticMotionNames,
|
|
5708
|
+
Ts as semanticRadiusNames,
|
|
5709
|
+
$s as semanticShadowNames,
|
|
5710
|
+
_s as semanticSpacingNames,
|
|
5711
|
+
Ps as semanticTextShadowNames,
|
|
5691
5712
|
he as sessionId,
|
|
5692
|
-
|
|
5693
|
-
|
|
5713
|
+
Ls as shadows,
|
|
5714
|
+
Ds as spacing,
|
|
5694
5715
|
yc as srgbToLinear,
|
|
5695
5716
|
ni as standardSchemaResultToValidation,
|
|
5696
|
-
|
|
5717
|
+
Zo as storeIconLocally,
|
|
5697
5718
|
mi as string,
|
|
5698
5719
|
ai as taskToValidation,
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
|
|
5720
|
+
cl as textColors,
|
|
5721
|
+
As as textShadows,
|
|
5722
|
+
ul as themeColorNames,
|
|
5702
5723
|
wc as toRgbaString,
|
|
5703
5724
|
xc as transformEmptyStringToUndefined,
|
|
5704
5725
|
kc as transformNullToUndefined,
|
|
@@ -5709,6 +5730,6 @@ export {
|
|
|
5709
5730
|
vi as useFocusTrap,
|
|
5710
5731
|
oi as useForm,
|
|
5711
5732
|
yi as useTimedToggle,
|
|
5712
|
-
|
|
5713
|
-
|
|
5733
|
+
li as wrapSegment,
|
|
5734
|
+
Vs as zIndex
|
|
5714
5735
|
};
|