@tempots/beatui 0.60.0 → 0.60.2
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/_commonjsHelpers-C6fGbg64.js +6 -0
- package/dist/_commonjsHelpers-DwGv2jUC.cjs +1 -0
- package/dist/{ar-B7Vs1jtG.cjs → ar-CZ-UB9pc.cjs} +1 -1
- package/dist/{ar-BOqk-mzn.js → ar-TEVFGyor.js} +1 -1
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +4 -4
- package/dist/{de-CviZ-p_4.js → de-DAzM31i4.js} +1 -1
- package/dist/{de-DNjhUbYu.cjs → de-IZSle3Nd.cjs} +1 -1
- package/dist/{es-DxuZQTVE.js → es-C7Gx9dqG.js} +1 -1
- package/dist/{es-D82T2KKm.cjs → es-DYe8rpsj.cjs} +1 -1
- package/dist/{fa-C7eY3MZF.cjs → fa-CEbnfFly.cjs} +1 -1
- package/dist/{fa-BBySqLUh.js → fa-DKX_zJDi.js} +1 -1
- package/dist/{fr-DBCblSme.js → fr-BRfNV0Yj.js} +1 -1
- package/dist/{fr-DlXc2xhl.cjs → fr-CrG0l5HN.cjs} +1 -1
- package/dist/{he-1Czj0G0s.cjs → he-D6hsIiTH.cjs} +1 -1
- package/dist/{he-DUrHwGF6.js → he-DRAV97MO.js} +1 -1
- package/dist/{hi-BdJqIhvL.js → hi-BaZyjzct.js} +1 -1
- package/dist/{hi-DyWQTexo.cjs → hi-DyS6BNlk.cjs} +1 -1
- package/dist/hls.light.min-BHW1Af0w.js +8303 -0
- package/dist/hls.light.min-D3hUMpII.cjs +27 -0
- package/dist/{index-BLTlhUPG.cjs → index-BJxozmss.cjs} +21 -21
- package/dist/{index-D6_EcuJG.js → index-Bu4A7nbp.js} +1 -1
- package/dist/{index-CMIeO1pS.cjs → index-Ch-e3nx4.cjs} +1 -1
- package/dist/{index-yhjOw19A.js → index-nqoZcPdT.js} +2973 -3015
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +986 -964
- package/dist/{it-BhqBuhZq.cjs → it-5c_IK4cL.cjs} +1 -1
- package/dist/{it-B7HY_G0n.js → it-TCCyUGRc.js} +1 -1
- package/dist/{ja-DavHeIBC.js → ja-Bpc6MfYs.js} +1 -1
- package/dist/{ja-Be1SXGQn.cjs → ja-VrfuPGN3.cjs} +1 -1
- package/dist/json-schema/index.cjs.js +8 -1
- package/dist/json-schema/index.es.js +8797 -35
- package/dist/{ko-Be3o52et.js → ko-BBN3tai6.js} +1 -1
- package/dist/{ko-BuyoVlmH.cjs → ko-BKSVpY_x.cjs} +1 -1
- package/dist/{modal-DT3cH1Kz.cjs → modal-DA0OKusk.cjs} +1 -1
- package/dist/{modal-BT2LwYlK.js → modal-DJDeFIxV.js} +2 -2
- package/dist/{nl-FD8OAOWL.cjs → nl-Bry6kgvp.cjs} +1 -1
- package/dist/{nl-DJIY4R0b.js → nl-CwXW1x3G.js} +1 -1
- package/dist/{notice-CUTUN2Kh.cjs → notice-BIcHmVnn.cjs} +1 -1
- package/dist/{notice-Cs95CTP3.js → notice-Cpso9PgQ.js} +1 -1
- package/dist/{pl-weZLWcSD.cjs → pl-CI2JMYK3.cjs} +1 -1
- package/dist/{pl-Bqoq63Fm.js → pl-utONv5st.js} +1 -1
- package/dist/prosemirror/index.cjs.js +1 -1
- package/dist/prosemirror/index.es.js +1 -1
- package/dist/{pt-7g4YVboz.js → pt-BKZlur2O.js} +1 -1
- package/dist/{pt-BuBrXOmS.cjs → pt-pg3nMUQB.cjs} +1 -1
- package/dist/{ru-hvj4lu1_.js → ru-B6HTgTqQ.js} +1 -1
- package/dist/{ru-Br9Wedcu.cjs → ru-DcagJ4uT.cjs} +1 -1
- package/dist/{toolbar-Bk_vLHOS.cjs → toolbar-CC22Z53U.cjs} +1 -1
- package/dist/{toolbar-ReCF2tBa.js → toolbar-_yJ-dm-Z.js} +1 -1
- package/dist/{tr-BSuvz1N5.cjs → tr-BabBuwqd.cjs} +1 -1
- package/dist/{tr-qxangEut.js → tr-DhELxnEm.js} +1 -1
- package/dist/translations-BRRDPpLp.cjs +1 -0
- package/dist/translations-ConAsIH1.js +67 -0
- package/dist/translations-DM5R5VZ0.cjs +1 -0
- package/dist/{translations-D5WRSMhS.js → translations-g3qGTkzw.js} +322 -308
- package/dist/types/components/json-schema/ajv-utils.d.ts +1 -3
- package/dist/types/components/media/pdf-page-viewer.d.ts +2 -2
- package/dist/{ur-DBg2MZvK.cjs → ur-BVE5ZRyR.cjs} +1 -1
- package/dist/{ur-CCcFf5OU.js → ur-CT09S1x5.js} +1 -1
- package/dist/{utils-3Mm1sj4Q.cjs → utils-B25pniId.cjs} +1 -1
- package/dist/{utils-CutcxfzK.js → utils-BRzdi3Gx.js} +2 -2
- package/dist/{vi-BAHqe-lr.js → vi-BsZzI9Fa.js} +1 -1
- package/dist/{vi-DeH8SXUt.cjs → vi-DvU7fKay.cjs} +1 -1
- package/dist/{zh-B-ZsrhFY.js → zh-BeCkrv4q.js} +1 -1
- package/dist/{zh-Ceo_KGzC.cjs → zh-CijYgDFA.cjs} +1 -1
- package/package.json +2 -2
- package/dist/2019-CSG1mHKh.cjs +0 -1
- package/dist/2019-xRoq64Hq.js +0 -163
- package/dist/2020-BxLJruSu.js +0 -191
- package/dist/2020-CySfMcC9.cjs +0 -1
- package/dist/hls-B5PliUq8.cjs +0 -40
- package/dist/hls-DLd3ClAs.js +0 -21741
- package/dist/index-B6myFAz5.js +0 -226
- package/dist/index-Cok4rljj.cjs +0 -8
- package/dist/index-DGQhsTxm.js +0 -8317
- package/dist/index-Duw9TkLf.cjs +0 -1
- package/dist/translations-BtsgtW4T.js +0 -47
- package/dist/translations-CGTcEchB.cjs +0 -1
- package/dist/translations-DmVvxPlr.cjs +0 -1
package/dist/index.es.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { prop as G, html as d, attr as r, computedOf as I, Fragment as N, OnDispose as re, style as S, on as
|
|
2
|
-
import { Use as
|
|
1
|
+
import { prop as G, html as d, attr as r, computedOf as I, Fragment as N, OnDispose as re, style as S, on as A, WithElement as te, When as K, Value as h, Use as ne, Empty as H, input as de, emitValue as ee, aria as M, OneOfValue as pn, Unless as fn, coalesce as Te, ForEach as _e, Ensure as Ye, OneOfType as Mt, dataAttr as st, NotEmpty as bn, emitValueAsDate as gn, Portal as lt, makeProviderMark as Et, WithBrowserCtx as mn, renderWithContext as hn, WithProvider as vn, Task as yn, Provide as Ot, MapSignal as Nt, svg as gt, svgAttr as mt } from "@tempots/dom";
|
|
2
|
+
import { Use as ks } from "@tempots/dom";
|
|
3
3
|
import { PopOver as wn, ElementRect as De, WindowSize as xn, Query as Ft, Location as Be, NavigationService as kn, Anchor as ot } from "@tempots/ui";
|
|
4
|
-
import { i as se, t as
|
|
5
|
-
import { x as
|
|
4
|
+
import { i as se, t as we, h as ht, e as ce, a as le, I as X, b as oe, C as pe, B as vt, c as We, L as it, j as yt, k as wt } from "./translations-g3qGTkzw.js";
|
|
5
|
+
import { x as Cs, T as Is, l as Ts, d as _s, f as $s, g as Ps, u as Ds, q as Ls, o as As, w as Vs, y as Bs, n as Ms, v as Es, m as Os, p as Ns, r as Fs, s as Rs } from "./translations-g3qGTkzw.js";
|
|
6
6
|
import { g as ct } from "./colors-pQZlNrwM.js";
|
|
7
|
-
import { b as
|
|
7
|
+
import { b as js, e as Hs, i as Ws, a as zs, c as Ys, o as Gs, l as Zs, m as Js, k as qs, j as Ks, n as Qs, r as Xs, s as el, d as tl, h as nl, t as al } from "./colors-pQZlNrwM.js";
|
|
8
8
|
import { b as Sn } from "./index-CpZh_Snx.js";
|
|
9
|
-
import { t as
|
|
10
|
-
import { C as Ee, s as me, m as Rt, d as Ut, I as ut, B as jt, c as Ht, S as dt, e as Cn } from "./notice-
|
|
11
|
-
import { A as
|
|
12
|
-
import { u as Me, A as rt, a as In, O as Wt, F as Tn } from "./modal-
|
|
13
|
-
import { B as
|
|
9
|
+
import { t as sl, am as ll, h as ol, J as il, c as cl, N as ul, I as dl, K as pl, e as fl, l as bl, d as gl, a as ml, ab as hl, o as vl, a0 as yl, ae as wl, q as xl, H as kl, A as Sl, al as Cl, g as Il, E as Tl, x as _l, aj as $l, $ as Pl, a4 as Dl, k as Ll, j as Al, i as Vl, Y as Bl, X as Ml, Q as El, P as Ol, S as Nl, R as Fl, W as Rl, V as Ul, U as jl, T as Hl, a8 as Wl, a7 as zl, aa as Yl, a9 as Gl, n as Zl, m as Jl, _ as ql, Z as Kl, ad as Ql, p as Xl, G as eo, z as to, ak as no, D as ao, C as ro, w as so, v as lo, ai as oo, ah as io, f as co, a3 as uo, a2 as po, M as fo, L as bo, a5 as go, a6 as mo, r as ho, O as vo, ac as yo, s as wo, F as xo, y as ko, ag as So, B as Co, u as Io, af as To, a1 as _o } from "./index-CpZh_Snx.js";
|
|
10
|
+
import { C as Ee, s as me, m as Rt, d as Ut, I as ut, B as jt, c as Ht, S as dt, e as Cn } from "./notice-Cpso9PgQ.js";
|
|
11
|
+
import { A as Po, g as Do, b as Lo, D as Ao, E as Vo, v as Bo, L as Mo, M as Eo, x as Oo, N as No, i as Fo, P as Ro, R as Uo, n as jo, q as Ho, o as Wo, k as zo, j as Yo, f as Go, p as Zo, h as Jo, r as qo, t as Ko, l as Qo, u as Xo, w as ei } from "./notice-Cpso9PgQ.js";
|
|
12
|
+
import { u as Me, A as rt, a as In, O as Wt, F as Tn } from "./modal-DJDeFIxV.js";
|
|
13
|
+
import { B as ni, C as ai, M as ri, c as si, S as li, b as oi, d as ii, o as ci, s as ui, f as di, e as pi, g as fi } from "./modal-DJDeFIxV.js";
|
|
14
14
|
import { T as zt, a as _n } from "./theme-B5pmbvQ_.js";
|
|
15
|
-
import { S as $n, G as Yt, E as Pn, F as Dn, N as Gt, a as Le, M as
|
|
16
|
-
import { j as
|
|
15
|
+
import { S as $n, G as Yt, E as Pn, F as Dn, N as Gt, a as Le, M as Ae, e as xt, n as Ln, W as he, d as An, i as Vn, b as kt, c as Pe } from "./utils-BRzdi3Gx.js";
|
|
16
|
+
import { j as gi, l as mi, B as hi, p as vi, V as yi, C as wi, m as xi, L as ki, o as Si, q as Ci, r as Ii, s as Ti, O as _i, u as $i, z as Pi, v as Di, I as Li, K as Ai, w as Vi, x as Bi, H as Mi, Q as Ei, y as Oi, R as Ni, J as Fi, A as Ri, T as Ui, D as ji, f as Hi, U as Wi, P as zi, X as Yi, Y as Gi, ag as Zi, k as Ji, ae as qi, a2 as Ki, a1 as Qi, a6 as Xi, a7 as ec, $ as tc, Z as nc, _ as ac, ab as rc, a5 as sc, ac as lc, a3 as oc, af as ic, a0 as cc, a8 as uc, a9 as dc, ad as pc, aa as fc, a4 as bc, g as gc, t as mc, h as hc } from "./utils-BRzdi3Gx.js";
|
|
17
17
|
import { g as ze, x as St } from "./timer-DzWb416P.js";
|
|
18
|
-
import { L as
|
|
19
|
-
import { T as
|
|
20
|
-
function
|
|
18
|
+
import { L as yc } from "./link-portal-Cr2l9f3k.js";
|
|
19
|
+
import { T as xc, a as kc, c as Sc, b as Cc, d as Ic } from "./toolbar-_yJ-dm-Z.js";
|
|
20
|
+
function lr(e, t = 0, n = () => !0) {
|
|
21
21
|
let a = null, s;
|
|
22
|
-
const
|
|
22
|
+
const o = G(e.value);
|
|
23
23
|
return e.on((i) => {
|
|
24
24
|
s = i, n(i) ? a == null && (a = setTimeout(() => {
|
|
25
|
-
a = null,
|
|
26
|
-
}, t)) :
|
|
25
|
+
a = null, o.set(s);
|
|
26
|
+
}, t)) : o.set(i);
|
|
27
27
|
}), e.onDispose(() => {
|
|
28
28
|
a != null && clearTimeout(a);
|
|
29
|
-
}),
|
|
29
|
+
}), o;
|
|
30
30
|
}
|
|
31
31
|
const Ct = (e, t) => e < t ? e : t, Re = (e, t) => e > t ? e : t, Bn = (e, { abortSignal: t } = {}) => new Promise((n, a) => {
|
|
32
32
|
const s = setTimeout(n, e);
|
|
@@ -34,7 +34,7 @@ const Ct = (e, t) => e < t ? e : t, Re = (e, t) => e > t ? e : t, Bn = (e, { abo
|
|
|
34
34
|
clearTimeout(s), a(new DOMException("Aborted", "AbortError"));
|
|
35
35
|
});
|
|
36
36
|
}), Xe = ["xs", "sm", "md", "lg", "xl"];
|
|
37
|
-
function
|
|
37
|
+
function or(e, t = 1) {
|
|
38
38
|
const n = Xe.indexOf(e);
|
|
39
39
|
if (n === -1)
|
|
40
40
|
throw new Error(`Invalid size: ${e}`);
|
|
@@ -50,13 +50,13 @@ function Mn(e, t, n, a) {
|
|
|
50
50
|
return n && s.push("bc-badge--circle"), a && s.push("bc-badge--full-width"), s.join(" ");
|
|
51
51
|
}
|
|
52
52
|
function En(e, t) {
|
|
53
|
-
const n = /* @__PURE__ */ new Map(), a = (s,
|
|
54
|
-
n.set("--badge-bg-hover", s), n.set("--badge-text-hover", i), n.set("--badge-bg-hover-dark",
|
|
53
|
+
const n = /* @__PURE__ */ new Map(), a = (s, o, i, c) => {
|
|
54
|
+
n.set("--badge-bg-hover", s), n.set("--badge-text-hover", i), n.set("--badge-bg-hover-dark", o), n.set("--badge-text-hover-dark", c);
|
|
55
55
|
};
|
|
56
56
|
switch (e) {
|
|
57
57
|
case "filled": {
|
|
58
|
-
const s = ce(t, "solid", "light"),
|
|
59
|
-
n.set("--badge-bg", s.backgroundColor), n.set("--badge-text", s.textColor), n.set("--badge-bg-dark",
|
|
58
|
+
const s = ce(t, "solid", "light"), o = ce(t, "solid", "dark"), i = se(t, "soft", "light"), c = se(t, "soft", "dark");
|
|
59
|
+
n.set("--badge-bg", s.backgroundColor), n.set("--badge-text", s.textColor), n.set("--badge-bg-dark", o.backgroundColor), n.set("--badge-text-dark", o.textColor), n.set("--badge-border", "transparent"), n.set("--badge-border-dark", "transparent"), a(
|
|
60
60
|
i.backgroundColor,
|
|
61
61
|
c.backgroundColor,
|
|
62
62
|
i.textColor,
|
|
@@ -65,8 +65,8 @@ function En(e, t) {
|
|
|
65
65
|
break;
|
|
66
66
|
}
|
|
67
67
|
case "light": {
|
|
68
|
-
const s = ce(t, "light", "light"),
|
|
69
|
-
n.set("--badge-bg", s.backgroundColor), n.set("--badge-text", s.textColor), n.set("--badge-bg-dark",
|
|
68
|
+
const s = ce(t, "light", "light"), o = ce(t, "light", "dark"), i = se(t, "light", "light"), c = se(t, "light", "dark");
|
|
69
|
+
n.set("--badge-bg", s.backgroundColor), n.set("--badge-text", s.textColor), n.set("--badge-bg-dark", o.backgroundColor), n.set("--badge-text-dark", o.textColor), n.set("--badge-border", "transparent"), n.set("--badge-border-dark", "transparent"), a(
|
|
70
70
|
i.backgroundColor,
|
|
71
71
|
c.backgroundColor,
|
|
72
72
|
i.textColor,
|
|
@@ -75,18 +75,18 @@ function En(e, t) {
|
|
|
75
75
|
break;
|
|
76
76
|
}
|
|
77
77
|
case "outline": {
|
|
78
|
-
const s =
|
|
79
|
-
n.set("--badge-bg", "transparent"), n.set("--badge-text", s), n.set("--badge-bg-dark", "transparent"), n.set("--badge-text-dark",
|
|
78
|
+
const s = we(t, "light"), o = we(t, "dark"), i = ht(t, "light"), c = ht(t, "dark"), u = se(t, "light", "light"), l = se(t, "light", "dark");
|
|
79
|
+
n.set("--badge-bg", "transparent"), n.set("--badge-text", s), n.set("--badge-bg-dark", "transparent"), n.set("--badge-text-dark", o), n.set("--badge-border", i), n.set("--badge-border-dark", c), a(
|
|
80
80
|
u.backgroundColor,
|
|
81
|
-
|
|
81
|
+
l.backgroundColor,
|
|
82
82
|
u.textColor,
|
|
83
|
-
|
|
83
|
+
l.textColor
|
|
84
84
|
);
|
|
85
85
|
break;
|
|
86
86
|
}
|
|
87
87
|
case "default": {
|
|
88
|
-
const s =
|
|
89
|
-
n.set("--badge-bg", "var(--bg-background-light)"), n.set("--badge-text", s), n.set("--badge-bg-dark", "var(--bg-background-dark)"), n.set("--badge-text-dark",
|
|
88
|
+
const s = we(t, "light"), o = we(t, "dark"), i = se(t, "light", "light"), c = se(t, "light", "dark");
|
|
89
|
+
n.set("--badge-bg", "var(--bg-background-light)"), n.set("--badge-text", s), n.set("--badge-bg-dark", "var(--bg-background-dark)"), n.set("--badge-text-dark", o), n.set("--badge-border", "var(--border-border-light)"), n.set("--badge-border-dark", "var(--border-border-dark)"), a(
|
|
90
90
|
i.backgroundColor,
|
|
91
91
|
c.backgroundColor,
|
|
92
92
|
i.textColor,
|
|
@@ -95,8 +95,8 @@ function En(e, t) {
|
|
|
95
95
|
break;
|
|
96
96
|
}
|
|
97
97
|
case "text": {
|
|
98
|
-
const s =
|
|
99
|
-
n.set("--badge-bg", "transparent"), n.set("--badge-text", s), n.set("--badge-bg-dark", "transparent"), n.set("--badge-text-dark",
|
|
98
|
+
const s = we(t, "light"), o = we(t, "dark"), i = se(t, "light", "light"), c = se(t, "light", "dark");
|
|
99
|
+
n.set("--badge-bg", "transparent"), n.set("--badge-text", s), n.set("--badge-bg-dark", "transparent"), n.set("--badge-text-dark", o), n.set("--badge-border", "transparent"), n.set("--badge-border-dark", "transparent"), a(
|
|
100
100
|
i.backgroundColor,
|
|
101
101
|
c.backgroundColor,
|
|
102
102
|
i.textColor,
|
|
@@ -105,15 +105,15 @@ function En(e, t) {
|
|
|
105
105
|
break;
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
|
-
return Array.from(n.entries()).map(([s,
|
|
108
|
+
return Array.from(n.entries()).map(([s, o]) => `${s}: ${o}`).join("; ");
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function ir({
|
|
111
111
|
variant: e = "filled",
|
|
112
112
|
size: t = "md",
|
|
113
113
|
color: n = "base",
|
|
114
114
|
roundedness: a = "full",
|
|
115
115
|
circle: s = !1,
|
|
116
|
-
fullWidth:
|
|
116
|
+
fullWidth: o = !1
|
|
117
117
|
}, ...i) {
|
|
118
118
|
return d.span(
|
|
119
119
|
r.class(
|
|
@@ -121,12 +121,12 @@ function sr({
|
|
|
121
121
|
t,
|
|
122
122
|
a,
|
|
123
123
|
s,
|
|
124
|
-
|
|
124
|
+
o
|
|
125
125
|
)(
|
|
126
|
-
(c, u,
|
|
126
|
+
(c, u, l, f) => Mn(
|
|
127
127
|
c ?? "md",
|
|
128
128
|
u ?? "sm",
|
|
129
|
-
|
|
129
|
+
l ?? !1,
|
|
130
130
|
f ?? !1
|
|
131
131
|
)
|
|
132
132
|
)
|
|
@@ -145,16 +145,16 @@ function sr({
|
|
|
145
145
|
d.span(r.class("bc-badge__content"), ...i)
|
|
146
146
|
);
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function cr({
|
|
149
149
|
onChange: e,
|
|
150
150
|
accept: t = "*/*",
|
|
151
151
|
onDragContent: n,
|
|
152
152
|
content: a,
|
|
153
153
|
onInvalidSelection: s,
|
|
154
|
-
disabled:
|
|
154
|
+
disabled: o = !1
|
|
155
155
|
}) {
|
|
156
156
|
const i = G(!1), c = G([]);
|
|
157
|
-
let u = null,
|
|
157
|
+
let u = null, l = 0;
|
|
158
158
|
const f = (y) => y.dataTransfer?.types.includes("Files") ?? !1, g = (y, T) => T === "*/*" ? !0 : T.split(",").map(($) => $.trim()).some(($) => {
|
|
159
159
|
if ($ === "*/*") return !0;
|
|
160
160
|
if ($.endsWith("/*")) {
|
|
@@ -163,14 +163,14 @@ function lr({
|
|
|
163
163
|
}
|
|
164
164
|
return y.type === $ || y.name.endsWith($);
|
|
165
165
|
}), k = (y) => {
|
|
166
|
-
h.get(
|
|
166
|
+
h.get(o) || f(y) && (y.preventDefault(), y.stopPropagation(), l++, l === 1 && (i.value = !0));
|
|
167
167
|
}, m = (y) => {
|
|
168
|
-
h.get(
|
|
168
|
+
h.get(o) || f(y) && (y.preventDefault(), y.stopPropagation(), y.dataTransfer != null && (y.dataTransfer.dropEffect = "copy"));
|
|
169
169
|
}, w = (y) => {
|
|
170
|
-
h.get(
|
|
170
|
+
h.get(o) || f(y) && (y.preventDefault(), y.stopPropagation(), l--, l === 0 && (i.value = !1));
|
|
171
171
|
}, v = (y) => {
|
|
172
|
-
if (h.get(
|
|
173
|
-
y.preventDefault(), y.stopPropagation(),
|
|
172
|
+
if (h.get(o) || !f(y)) return;
|
|
173
|
+
y.preventDefault(), y.stopPropagation(), l = 0, i.value = !1;
|
|
174
174
|
const T = Array.from(y.dataTransfer?.files ?? []);
|
|
175
175
|
if (T.length > 0) {
|
|
176
176
|
const _ = h.get(t), $ = T.filter(
|
|
@@ -183,7 +183,7 @@ function lr({
|
|
|
183
183
|
};
|
|
184
184
|
typeof document < "u" && (document.addEventListener("dragenter", k), document.addEventListener("dragover", m), document.addEventListener("dragleave", w), document.addEventListener("drop", v));
|
|
185
185
|
const x = () => {
|
|
186
|
-
typeof document < "u" && (document.removeEventListener("dragenter", k), document.removeEventListener("dragover", m), document.removeEventListener("dragleave", w), document.removeEventListener("drop", v)),
|
|
186
|
+
typeof document < "u" && (document.removeEventListener("dragenter", k), document.removeEventListener("dragover", m), document.removeEventListener("dragleave", w), document.removeEventListener("drop", v)), l = 0;
|
|
187
187
|
}, b = () => {
|
|
188
188
|
u?.click();
|
|
189
189
|
}, p = (y) => {
|
|
@@ -203,35 +203,35 @@ function lr({
|
|
|
203
203
|
S.pointerEvents("none"),
|
|
204
204
|
S.width("0"),
|
|
205
205
|
S.height("0"),
|
|
206
|
-
|
|
206
|
+
A.change(p),
|
|
207
207
|
te((y) => (u = y, re(() => {
|
|
208
208
|
u != null && (u.value = "");
|
|
209
209
|
})))
|
|
210
210
|
),
|
|
211
211
|
// Render overlay content to body when dragging (if content is provided)
|
|
212
|
-
n != null ?
|
|
212
|
+
n != null ? K(i, () => n({ files: c })) : null,
|
|
213
213
|
a != null ? a({ isDragging: i, files: c, selectFiles: b }) : null
|
|
214
214
|
);
|
|
215
215
|
}
|
|
216
|
-
function On(e, t, n, a, s,
|
|
216
|
+
function On(e, t, n, a, s, o) {
|
|
217
217
|
const i = ["bc-table"];
|
|
218
|
-
return e !== "md" && i.push(`bc-table--size-${e}`), t && i.push("bc-table--hoverable"), n && i.push("bc-table--sticky-header"), a && i.push("bc-table--with-striped-rows"), s && i.push("bc-table--with-column-borders"),
|
|
218
|
+
return e !== "md" && i.push(`bc-table--size-${e}`), t && i.push("bc-table--hoverable"), n && i.push("bc-table--sticky-header"), a && i.push("bc-table--with-striped-rows"), s && i.push("bc-table--with-column-borders"), o && i.push("bc-table--with-row-borders"), i.join(" ");
|
|
219
219
|
}
|
|
220
220
|
function Nn(e) {
|
|
221
221
|
if (e != null)
|
|
222
222
|
return e === "none" ? "--table-border-radius: 0" : `--table-border-radius: var(--radius-${e})`;
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function ur({
|
|
225
225
|
size: e = "md",
|
|
226
226
|
hoverable: t = !1,
|
|
227
227
|
stickyHeader: n = !1,
|
|
228
228
|
fullWidth: a = !1,
|
|
229
229
|
withStripedRows: s = !1,
|
|
230
|
-
withTableBorder:
|
|
230
|
+
withTableBorder: o = !0,
|
|
231
231
|
withColumnBorders: i = !1,
|
|
232
232
|
withRowBorders: c = !0,
|
|
233
233
|
borderRadius: u
|
|
234
|
-
} = {}, ...
|
|
234
|
+
} = {}, ...l) {
|
|
235
235
|
const f = I(
|
|
236
236
|
e,
|
|
237
237
|
t,
|
|
@@ -251,7 +251,7 @@ function or({
|
|
|
251
251
|
), g = I(
|
|
252
252
|
n,
|
|
253
253
|
a,
|
|
254
|
-
|
|
254
|
+
o
|
|
255
255
|
)((m, w, v) => {
|
|
256
256
|
const x = ["bc-table-container"];
|
|
257
257
|
return m && x.push("bc-table-container--sticky"), w && x.push("bc-table-container--full-width"), v && x.push("bc-table-container--with-table-border"), x.join(" ");
|
|
@@ -261,7 +261,7 @@ function or({
|
|
|
261
261
|
return d.div(
|
|
262
262
|
r.class(g),
|
|
263
263
|
r.style(k),
|
|
264
|
-
d.table(r.class(f), ...
|
|
264
|
+
d.table(r.class(f), ...l)
|
|
265
265
|
);
|
|
266
266
|
}
|
|
267
267
|
function Fn(e, t) {
|
|
@@ -287,12 +287,12 @@ const Zt = ({
|
|
|
287
287
|
onClose: n,
|
|
288
288
|
size: a = "md",
|
|
289
289
|
class: s,
|
|
290
|
-
disabled:
|
|
290
|
+
disabled: o
|
|
291
291
|
}) => d.span(
|
|
292
292
|
r.class(
|
|
293
293
|
I(
|
|
294
294
|
a ?? "md",
|
|
295
|
-
|
|
295
|
+
o ?? !1
|
|
296
296
|
)((i, c) => Fn(i, c))
|
|
297
297
|
),
|
|
298
298
|
r.style(
|
|
@@ -310,7 +310,7 @@ const Zt = ({
|
|
|
310
310
|
size: "xs",
|
|
311
311
|
label: i.$.removeItem,
|
|
312
312
|
color: "white",
|
|
313
|
-
disabled:
|
|
313
|
+
disabled: o,
|
|
314
314
|
onClick: () => n?.(h.get(e))
|
|
315
315
|
},
|
|
316
316
|
r.class("bc-tag__close")
|
|
@@ -346,7 +346,7 @@ function Un({
|
|
|
346
346
|
onChange: t
|
|
347
347
|
});
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function dr() {
|
|
350
350
|
return ne(
|
|
351
351
|
zt,
|
|
352
352
|
({ appearancePreference: e, setAppearancePreference: t }) => Un({
|
|
@@ -365,20 +365,20 @@ function jn({
|
|
|
365
365
|
r.class("bc-color-input__swatch-container"),
|
|
366
366
|
d.span(
|
|
367
367
|
r.class("bc-color-input__swatch"),
|
|
368
|
-
|
|
368
|
+
A.click(() => a?.showPicker()),
|
|
369
369
|
de.color(
|
|
370
370
|
te((s) => (a = s, H)),
|
|
371
371
|
r.value(e),
|
|
372
372
|
S.width("4px"),
|
|
373
373
|
S.height("4px"),
|
|
374
|
-
t != null ?
|
|
375
|
-
n != null ?
|
|
374
|
+
t != null ? A.change(ee(t)) : H,
|
|
375
|
+
n != null ? A.input(ee(n)) : H
|
|
376
376
|
),
|
|
377
377
|
r.style(h.map(e, (s) => `background-color: ${s}`))
|
|
378
378
|
)
|
|
379
379
|
);
|
|
380
380
|
}
|
|
381
|
-
function
|
|
381
|
+
function pr(e) {
|
|
382
382
|
const { value: t, onBlur: n, onChange: a, onInput: s } = e;
|
|
383
383
|
return oe(
|
|
384
384
|
{
|
|
@@ -386,9 +386,9 @@ function cr(e) {
|
|
|
386
386
|
input: de.text(
|
|
387
387
|
pe(e),
|
|
388
388
|
r.value(t),
|
|
389
|
-
n != null ?
|
|
390
|
-
a != null ?
|
|
391
|
-
s != null ?
|
|
389
|
+
n != null ? A.blur(ee(n)) : H,
|
|
390
|
+
a != null ? A.change(ee(a)) : H,
|
|
391
|
+
s != null ? A.input(ee(s)) : H
|
|
392
392
|
)
|
|
393
393
|
},
|
|
394
394
|
r.class("bc-color-input"),
|
|
@@ -405,11 +405,11 @@ function Ge(e) {
|
|
|
405
405
|
placement: n = "top",
|
|
406
406
|
showDelay: a = 250,
|
|
407
407
|
hideDelay: s = 500,
|
|
408
|
-
mainAxisOffset:
|
|
408
|
+
mainAxisOffset: o = 8,
|
|
409
409
|
crossAxisOffset: i = 0,
|
|
410
410
|
showOn: c = "hover-focus",
|
|
411
411
|
closable: u = !0,
|
|
412
|
-
arrow:
|
|
412
|
+
arrow: l,
|
|
413
413
|
role: f,
|
|
414
414
|
hasPopup: g = "dialog"
|
|
415
415
|
} = e;
|
|
@@ -423,21 +423,21 @@ function Ge(e) {
|
|
|
423
423
|
}
|
|
424
424
|
function _() {
|
|
425
425
|
h.get(u) && (b = (E) => {
|
|
426
|
-
E.key === "Escape" &&
|
|
426
|
+
E.key === "Escape" && V();
|
|
427
427
|
}, document.addEventListener("keydown", b)), y = !0, x.set(!0), k({
|
|
428
428
|
placement: n ?? "top",
|
|
429
|
-
mainAxisOffset:
|
|
429
|
+
mainAxisOffset: o,
|
|
430
430
|
crossAxisOffset: i,
|
|
431
431
|
onClickOutside: () => {
|
|
432
|
-
h.get(u) &&
|
|
432
|
+
h.get(u) && V();
|
|
433
433
|
},
|
|
434
|
-
arrow:
|
|
434
|
+
arrow: l,
|
|
435
435
|
content: te((E) => {
|
|
436
436
|
w.setElement(E), p = ze(() => {
|
|
437
437
|
w.open(), p = null;
|
|
438
438
|
});
|
|
439
439
|
const R = (j) => {
|
|
440
|
-
h.get(u) && j.key === "Escape" && (j.preventDefault(), j.stopPropagation(),
|
|
440
|
+
h.get(u) && j.key === "Escape" && (j.preventDefault(), j.stopPropagation(), V(), x.set(!1));
|
|
441
441
|
};
|
|
442
442
|
return document.addEventListener("keydown", R, !0), N(
|
|
443
443
|
re(() => {
|
|
@@ -475,7 +475,7 @@ function Ge(e) {
|
|
|
475
475
|
}, E);
|
|
476
476
|
}
|
|
477
477
|
let C = null;
|
|
478
|
-
function
|
|
478
|
+
function V() {
|
|
479
479
|
if ($ != null && (clearTimeout($), $ = null), C != null && (clearTimeout(C), C = null), x.set(!1), p && (p(), p = null, y)) {
|
|
480
480
|
m(), T();
|
|
481
481
|
return;
|
|
@@ -491,7 +491,7 @@ function Ge(e) {
|
|
|
491
491
|
const R = () => {
|
|
492
492
|
P(), x.set(!0);
|
|
493
493
|
}, j = () => {
|
|
494
|
-
|
|
494
|
+
V(), x.set(!1);
|
|
495
495
|
}, J = N(
|
|
496
496
|
M.expanded(x),
|
|
497
497
|
M.controls(v),
|
|
@@ -506,18 +506,18 @@ function Ge(e) {
|
|
|
506
506
|
J,
|
|
507
507
|
pn(c, {
|
|
508
508
|
"hover-focus": () => N(
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
509
|
+
A.mouseenter(() => R()),
|
|
510
|
+
A.mouseleave(() => j()),
|
|
511
|
+
A.focus(() => R()),
|
|
512
|
+
A.blur(() => j())
|
|
513
513
|
),
|
|
514
514
|
hover: () => N(
|
|
515
|
-
|
|
516
|
-
|
|
515
|
+
A.mouseenter(() => R()),
|
|
516
|
+
A.mouseleave(() => j())
|
|
517
517
|
),
|
|
518
518
|
focus: () => N(
|
|
519
|
-
|
|
520
|
-
|
|
519
|
+
A.focus(() => R()),
|
|
520
|
+
A.blur(() => j())
|
|
521
521
|
),
|
|
522
522
|
click: () => {
|
|
523
523
|
function F() {
|
|
@@ -528,7 +528,7 @@ function Ge(e) {
|
|
|
528
528
|
}
|
|
529
529
|
return N(
|
|
530
530
|
re(F),
|
|
531
|
-
|
|
531
|
+
A.click(() => {
|
|
532
532
|
R(), ze(() => {
|
|
533
533
|
document.addEventListener("click", Q, {
|
|
534
534
|
once: !0
|
|
@@ -550,24 +550,24 @@ function Wn(e, t, n, a) {
|
|
|
550
550
|
function zn(e, t, n, a) {
|
|
551
551
|
const s = /* @__PURE__ */ new Map();
|
|
552
552
|
if (e != null && s.set("--action-card-bg", e), t != null && s.set("--action-card-border", t), n != null && s.set("--action-card-title-color", n), a != null && s.set("--action-card-description-color", a), s.size !== 0)
|
|
553
|
-
return Array.from(s.entries()).map(([
|
|
553
|
+
return Array.from(s.entries()).map(([o, i]) => `${o}: ${i}`).join("; ");
|
|
554
554
|
}
|
|
555
|
-
function
|
|
555
|
+
function fr({
|
|
556
556
|
icon: e,
|
|
557
557
|
title: t,
|
|
558
558
|
description: n,
|
|
559
559
|
active: a = !1,
|
|
560
560
|
disabled: s = !1,
|
|
561
|
-
onClick:
|
|
561
|
+
onClick: o,
|
|
562
562
|
size: i = "md",
|
|
563
563
|
iconColor: c = "primary",
|
|
564
564
|
iconSize: u = "md",
|
|
565
|
-
backgroundColor:
|
|
565
|
+
backgroundColor: l,
|
|
566
566
|
borderColor: f,
|
|
567
567
|
titleColor: g,
|
|
568
568
|
descriptionColor: k
|
|
569
569
|
}) {
|
|
570
|
-
const m =
|
|
570
|
+
const m = o != null;
|
|
571
571
|
return d.div(
|
|
572
572
|
r.class(
|
|
573
573
|
I(
|
|
@@ -585,7 +585,7 @@ function ur({
|
|
|
585
585
|
),
|
|
586
586
|
r.style(
|
|
587
587
|
I(
|
|
588
|
-
|
|
588
|
+
l,
|
|
589
589
|
f,
|
|
590
590
|
g,
|
|
591
591
|
k
|
|
@@ -593,13 +593,13 @@ function ur({
|
|
|
593
593
|
(w, v, x, b) => zn(w, v, x, b)
|
|
594
594
|
)
|
|
595
595
|
),
|
|
596
|
-
|
|
596
|
+
K(
|
|
597
597
|
m,
|
|
598
598
|
() => N(
|
|
599
599
|
fn(
|
|
600
600
|
s,
|
|
601
601
|
() => N(
|
|
602
|
-
|
|
602
|
+
A.click(() => o?.()),
|
|
603
603
|
r.tabindex(0)
|
|
604
604
|
)
|
|
605
605
|
),
|
|
@@ -628,10 +628,10 @@ function Gn(e) {
|
|
|
628
628
|
return ["=", e];
|
|
629
629
|
}
|
|
630
630
|
function Zn(e, t, n) {
|
|
631
|
-
const [a, s] = Gn(t),
|
|
632
|
-
if (
|
|
631
|
+
const [a, s] = Gn(t), o = e.findIndex((u) => u[1] === s);
|
|
632
|
+
if (o === -1)
|
|
633
633
|
throw new Error(`Breakpoint ${String(s)} not found`);
|
|
634
|
-
const i = e[
|
|
634
|
+
const i = e[o][0], c = o < e.length - 1 ? e[o + 1][0] : 1 / 0;
|
|
635
635
|
switch (a) {
|
|
636
636
|
case "=":
|
|
637
637
|
return n >= i && n < c;
|
|
@@ -649,26 +649,26 @@ function Zn(e, t, n) {
|
|
|
649
649
|
return !1;
|
|
650
650
|
}
|
|
651
651
|
}
|
|
652
|
-
function
|
|
652
|
+
function br(e, t) {
|
|
653
653
|
const n = e.findIndex((a) => a[0] > t) - 1;
|
|
654
654
|
return n >= 0 ? e[n][1] : (e.length > 0 && t >= e[0][0], e[0][1]);
|
|
655
655
|
}
|
|
656
656
|
function Jt(e, { breakpoints: t, mode: n = "viewport" }) {
|
|
657
657
|
const s = [...Object.entries(t).map(
|
|
658
658
|
([i, c]) => [c, i]
|
|
659
|
-
)].sort((i, c) => i[0] - c[0]),
|
|
660
|
-
const c = i.map(({ width:
|
|
661
|
-
const f = s.findIndex((g) => g[0] >
|
|
662
|
-
return f >= 0 ? { width:
|
|
659
|
+
)].sort((i, c) => i[0] - c[0]), o = (i) => {
|
|
660
|
+
const c = i.map(({ width: l }) => {
|
|
661
|
+
const f = s.findIndex((g) => g[0] > l) - 1;
|
|
662
|
+
return f >= 0 ? { width: l, breakpoint: s[f][1] } : s.length > 0 && l >= s[0][0] ? { width: l, breakpoint: s[0][1] } : { width: l, breakpoint: s[0][1] };
|
|
663
663
|
});
|
|
664
664
|
return e({
|
|
665
665
|
value: c,
|
|
666
666
|
breakpoints: t,
|
|
667
667
|
asList: s,
|
|
668
|
-
is: (
|
|
668
|
+
is: (l, f) => Zn(s, l, f)
|
|
669
669
|
});
|
|
670
670
|
};
|
|
671
|
-
return n === "element" ? De(
|
|
671
|
+
return n === "element" ? De(o) : xn(o);
|
|
672
672
|
}
|
|
673
673
|
let et = NaN;
|
|
674
674
|
function Jn(e, t) {
|
|
@@ -677,7 +677,7 @@ function Jn(e, t) {
|
|
|
677
677
|
function ae(e, t, n) {
|
|
678
678
|
return Jn(e.getPropertyValue(t), n);
|
|
679
679
|
}
|
|
680
|
-
function
|
|
680
|
+
function qn(e) {
|
|
681
681
|
return te((t) => {
|
|
682
682
|
const n = getComputedStyle(t), a = {
|
|
683
683
|
zero: 0,
|
|
@@ -690,7 +690,7 @@ function Kn(e) {
|
|
|
690
690
|
return Jt(e, { breakpoints: a });
|
|
691
691
|
});
|
|
692
692
|
}
|
|
693
|
-
function
|
|
693
|
+
function gr(e) {
|
|
694
694
|
return te((t) => {
|
|
695
695
|
const n = getComputedStyle(t), a = {
|
|
696
696
|
zero: 0,
|
|
@@ -716,7 +716,7 @@ function pr(e) {
|
|
|
716
716
|
function fe(e, t) {
|
|
717
717
|
return `bc-panel ${(Array.isArray(e) ? e : [e]).map((a) => `bc-panel--side-${a}`).join(" ")} bc-panel--shadow-${t}`;
|
|
718
718
|
}
|
|
719
|
-
function
|
|
719
|
+
function ye(e) {
|
|
720
720
|
const t = h.toSignal(e).map(
|
|
721
721
|
(a) => ce(a, "lighter", "light")
|
|
722
722
|
), n = h.toSignal(e).map(
|
|
@@ -813,15 +813,15 @@ function tt(e) {
|
|
|
813
813
|
e.every((n) => n[t] == null || n[t].startsWith("?")) && (e = e.map((n) => n.filter((a, s) => s !== t)), t--);
|
|
814
814
|
return e = e.map((t) => t.map((n) => n?.startsWith("?") ? n.slice(1) : n)), e;
|
|
815
815
|
}
|
|
816
|
-
function
|
|
816
|
+
function Kn({
|
|
817
817
|
smallBreakpoint: e,
|
|
818
818
|
mediumBreakpoint: t,
|
|
819
819
|
vertical: n,
|
|
820
820
|
horizontal: a,
|
|
821
821
|
is: s
|
|
822
822
|
}) {
|
|
823
|
-
function
|
|
824
|
-
let
|
|
823
|
+
function o(u) {
|
|
824
|
+
let l = [
|
|
825
825
|
[null],
|
|
826
826
|
[null],
|
|
827
827
|
[null],
|
|
@@ -832,12 +832,12 @@ function qn({
|
|
|
832
832
|
const f = [];
|
|
833
833
|
f.push("1fr");
|
|
834
834
|
const g = [];
|
|
835
|
-
return a.banner && (g.push(a.banner[u] + "px"),
|
|
835
|
+
return a.banner && (g.push(a.banner[u] + "px"), l[0][1] = "banner"), (a.header || n.menu || n.aside) && (g.push(
|
|
836
836
|
(a.header?.[u] ?? ge.header[u]) + "px"
|
|
837
|
-
),
|
|
837
|
+
), l[1][1] = "header"), a.mainHeader && (g.push(a.mainHeader[u] + "px"), l[2][1] = "mainHeader"), g.push("1fr"), l[3][1] = "main", a.mainFooter && (g.push(a.mainFooter[u] + "px"), l[4][1] = "mainFooter"), a.footer && (g.push(a.footer[u] + "px"), l[5][1] = "footer"), l = tt(l), {
|
|
838
838
|
columns: f.join(" "),
|
|
839
839
|
rows: g.join(" "),
|
|
840
|
-
areas:
|
|
840
|
+
areas: l.map((m) => `"${m.join(" ")}"`).join(`
|
|
841
841
|
`),
|
|
842
842
|
displayMenu: !1,
|
|
843
843
|
displayAside: !1,
|
|
@@ -846,7 +846,7 @@ function qn({
|
|
|
846
846
|
};
|
|
847
847
|
}
|
|
848
848
|
function i(u) {
|
|
849
|
-
let
|
|
849
|
+
let l = [
|
|
850
850
|
[null, null],
|
|
851
851
|
[null, null],
|
|
852
852
|
[null, null],
|
|
@@ -855,14 +855,14 @@ function qn({
|
|
|
855
855
|
[null, null]
|
|
856
856
|
];
|
|
857
857
|
const f = [];
|
|
858
|
-
n.menu && (f.push(n.menu[u] + "px"),
|
|
858
|
+
n.menu && (f.push(n.menu[u] + "px"), l[2][0] = "?menu", l[3][0] = "menu", l[4][0] = "?menu"), f.push("1fr");
|
|
859
859
|
const g = [];
|
|
860
|
-
return a.banner && (g.push(a.banner[u] + "px"),
|
|
860
|
+
return a.banner && (g.push(a.banner[u] + "px"), l[0][0] = "?banner", l[0][1] = "banner"), (a.header || n.aside) && (g.push(
|
|
861
861
|
(a.header?.[u] ?? ge.header[u]) + "px"
|
|
862
|
-
),
|
|
862
|
+
), l[1][0] = "?header", l[1][1] = "header"), a.mainHeader && (g.push(a.mainHeader[u] + "px"), l[2][1] = "mainHeader"), g.push("1fr"), l[3][1] = "main", a.mainFooter && (g.push(a.mainFooter[u] + "px"), l[4][1] = "mainFooter"), a.footer && (g.push(a.footer[u] + "px"), l[5][0] = "?footer", l[5][1] = "footer"), l = tt(l), {
|
|
863
863
|
columns: f.join(" "),
|
|
864
864
|
rows: g.join(" "),
|
|
865
|
-
areas:
|
|
865
|
+
areas: l.map((m) => `"${m.join(" ")}"`).join(`
|
|
866
866
|
`),
|
|
867
867
|
displayMenu: !0,
|
|
868
868
|
displayAside: !1,
|
|
@@ -871,7 +871,7 @@ function qn({
|
|
|
871
871
|
};
|
|
872
872
|
}
|
|
873
873
|
function c(u) {
|
|
874
|
-
let
|
|
874
|
+
let l = [
|
|
875
875
|
[null, null, null],
|
|
876
876
|
[null, null, null],
|
|
877
877
|
[null, null, null],
|
|
@@ -880,12 +880,12 @@ function qn({
|
|
|
880
880
|
[null, null, null]
|
|
881
881
|
];
|
|
882
882
|
const f = [];
|
|
883
|
-
n.menu && (f.push(n.menu[u] + "px"),
|
|
883
|
+
n.menu && (f.push(n.menu[u] + "px"), l[2][0] = "?menu", l[3][0] = "menu", l[4][0] = "?menu"), f.push("1fr"), n.aside && (f.push(n.aside[u] + "px"), l[2][2] = "?aside", l[3][2] = "aside", l[4][2] = "?aside");
|
|
884
884
|
const g = [];
|
|
885
|
-
return a.banner && (g.push(a.banner[u] + "px"),
|
|
885
|
+
return a.banner && (g.push(a.banner[u] + "px"), l[0][0] = "?banner", l[0][1] = "banner", l[0][2] = "?banner"), a.header && (g.push(a.header[u] + "px"), l[1][0] = "?header", l[1][1] = "header", l[1][2] = "?header"), a.mainHeader && (g.push(a.mainHeader[u] + "px"), l[2][1] = "mainHeader"), g.push("1fr"), l[3][1] = "main", a.mainFooter && (g.push(a.mainFooter[u] + "px"), l[4][1] = "mainFooter"), a.footer && (g.push(a.footer[u] + "px"), l[5][0] = "?footer", l[5][1] = "footer", l[5][2] = "?footer"), l = tt(l), {
|
|
886
886
|
columns: f.join(" "),
|
|
887
887
|
rows: g.join(" "),
|
|
888
|
-
areas:
|
|
888
|
+
areas: l.map((m) => `"${m.join(" ")}"`).join(`
|
|
889
889
|
`),
|
|
890
890
|
displayMenu: !0,
|
|
891
891
|
displayAside: !0,
|
|
@@ -895,8 +895,8 @@ function qn({
|
|
|
895
895
|
}
|
|
896
896
|
return ({
|
|
897
897
|
width: u,
|
|
898
|
-
breakpoint:
|
|
899
|
-
}) => s(`<=${e}`, u) ? l
|
|
898
|
+
breakpoint: l
|
|
899
|
+
}) => s(`<=${e}`, u) ? o(l) : s(`<=${t}`, u) ? i(l) : c(l);
|
|
900
900
|
}
|
|
901
901
|
const Qn = ["menu", "aside"], Xn = [
|
|
902
902
|
"banner",
|
|
@@ -911,64 +911,64 @@ function ea(e, { displayMenu: t }, n) {
|
|
|
911
911
|
function ta(e, { displayAside: t }, n) {
|
|
912
912
|
return e ? t ? "block" : n ? "float" : "none" : "none";
|
|
913
913
|
}
|
|
914
|
-
function
|
|
914
|
+
function mr({
|
|
915
915
|
smallBreakpoint: e = "sm",
|
|
916
916
|
mediumBreakpoint: t = "md",
|
|
917
917
|
...n
|
|
918
918
|
}) {
|
|
919
919
|
const a = Object.fromEntries(
|
|
920
|
-
Qn.filter((
|
|
921
|
-
(
|
|
922
|
-
|
|
923
|
-
It(n[
|
|
920
|
+
Qn.filter((o) => n[o]).map(
|
|
921
|
+
(o) => [
|
|
922
|
+
o,
|
|
923
|
+
It(n[o].width ?? {}, ge[o])
|
|
924
924
|
]
|
|
925
925
|
)
|
|
926
926
|
), s = Object.fromEntries(
|
|
927
|
-
Xn.filter((
|
|
928
|
-
(
|
|
929
|
-
|
|
930
|
-
It(n[
|
|
927
|
+
Xn.filter((o) => n[o]).map(
|
|
928
|
+
(o) => [
|
|
929
|
+
o,
|
|
930
|
+
It(n[o].height ?? {}, ge[o])
|
|
931
931
|
]
|
|
932
932
|
)
|
|
933
933
|
);
|
|
934
934
|
return ne(
|
|
935
935
|
le,
|
|
936
|
-
(
|
|
937
|
-
const u =
|
|
936
|
+
(o) => qn(({ value: i, is: c }) => {
|
|
937
|
+
const u = Kn({
|
|
938
938
|
smallBreakpoint: e,
|
|
939
939
|
mediumBreakpoint: t,
|
|
940
940
|
vertical: a,
|
|
941
941
|
horizontal: s,
|
|
942
942
|
is: c
|
|
943
|
-
}),
|
|
943
|
+
}), l = i.map(u), f = s.header != null || a.menu != null || a.aside != null, g = I(
|
|
944
944
|
a.aside != null,
|
|
945
|
-
|
|
945
|
+
l
|
|
946
946
|
)((p, { displayAside: y }) => p && !y), k = I(
|
|
947
947
|
a.menu != null,
|
|
948
|
-
|
|
948
|
+
l
|
|
949
949
|
)((p, { displayMenu: y }) => p && !y), m = Me(), w = Me(), v = G(0), x = I(
|
|
950
950
|
a.menu != null,
|
|
951
|
-
|
|
951
|
+
l,
|
|
952
952
|
m.display
|
|
953
953
|
)(ea), b = I(
|
|
954
954
|
a.aside != null,
|
|
955
|
-
|
|
955
|
+
l,
|
|
956
956
|
w.display
|
|
957
957
|
)(ta);
|
|
958
958
|
return d.div(
|
|
959
959
|
S.display("grid"),
|
|
960
960
|
S.height("100%"),
|
|
961
961
|
S.width("100%"),
|
|
962
|
-
S.gridTemplateColumns(
|
|
963
|
-
S.gridTemplateRows(
|
|
964
|
-
S.gridTemplateAreas(
|
|
962
|
+
S.gridTemplateColumns(l.$.columns),
|
|
963
|
+
S.gridTemplateRows(l.$.rows),
|
|
964
|
+
S.gridTemplateAreas(l.$.areas),
|
|
965
965
|
S.gridColumnGap("0"),
|
|
966
966
|
S.gridRowGap("0"),
|
|
967
967
|
n.banner ? d.header(
|
|
968
968
|
r.class(
|
|
969
969
|
fe("none", n.banner.shadow ?? "none")
|
|
970
970
|
),
|
|
971
|
-
|
|
971
|
+
ye(n.banner.color ?? "white"),
|
|
972
972
|
S.height("100%"),
|
|
973
973
|
S.gridArea("banner"),
|
|
974
974
|
n.banner.content
|
|
@@ -977,7 +977,7 @@ function fr({
|
|
|
977
977
|
r.class(
|
|
978
978
|
fe("bottom", n.header?.shadow ?? "none")
|
|
979
979
|
),
|
|
980
|
-
|
|
980
|
+
ye(n.header?.color ?? "white"),
|
|
981
981
|
S.zIndex("20"),
|
|
982
982
|
S.display(f ? "block" : "none"),
|
|
983
983
|
S.gridArea("header"),
|
|
@@ -999,7 +999,7 @@ function fr({
|
|
|
999
999
|
variant: "light",
|
|
1000
1000
|
color: "base"
|
|
1001
1001
|
},
|
|
1002
|
-
M.label(
|
|
1002
|
+
M.label(o.$.toggleMenu),
|
|
1003
1003
|
X({
|
|
1004
1004
|
icon: m.display.map(
|
|
1005
1005
|
(p) => p ? "line-md/menu-to-close-alt-transition" : "line-md/close-to-menu-alt-transition"
|
|
@@ -1027,7 +1027,7 @@ function fr({
|
|
|
1027
1027
|
variant: "light",
|
|
1028
1028
|
color: "base"
|
|
1029
1029
|
},
|
|
1030
|
-
M.label(
|
|
1030
|
+
M.label(o.$.toggleAside),
|
|
1031
1031
|
X(
|
|
1032
1032
|
{ icon: "line-md/chevron-left" },
|
|
1033
1033
|
r.style("transition: transform 0.2s ease-in-out"),
|
|
@@ -1045,7 +1045,7 @@ function fr({
|
|
|
1045
1045
|
te((p) => m.setElement(p)),
|
|
1046
1046
|
S.zIndex("10"),
|
|
1047
1047
|
// Add ARIA attributes for navigation landmark
|
|
1048
|
-
M.label(
|
|
1048
|
+
M.label(o.$.mainNavigation),
|
|
1049
1049
|
r.role("navigation"),
|
|
1050
1050
|
S.overflow("hidden"),
|
|
1051
1051
|
r.class(
|
|
@@ -1059,7 +1059,7 @@ function fr({
|
|
|
1059
1059
|
)
|
|
1060
1060
|
)
|
|
1061
1061
|
),
|
|
1062
|
-
|
|
1062
|
+
ye(n.menu?.color ?? "white"),
|
|
1063
1063
|
S.height(
|
|
1064
1064
|
x.map(
|
|
1065
1065
|
(p) => p === "float" ? "auto" : "100%"
|
|
@@ -1087,7 +1087,7 @@ function fr({
|
|
|
1087
1087
|
m.status
|
|
1088
1088
|
)((p, y) => p === "block" ? "opened" : y)
|
|
1089
1089
|
}),
|
|
1090
|
-
S.width(
|
|
1090
|
+
S.width(Te(n.menu?.width, l.$.menuWidth)),
|
|
1091
1091
|
S.bottom("0"),
|
|
1092
1092
|
n.menu?.content
|
|
1093
1093
|
) : null,
|
|
@@ -1100,7 +1100,7 @@ function fr({
|
|
|
1100
1100
|
n.mainHeader?.shadow ?? "none"
|
|
1101
1101
|
)
|
|
1102
1102
|
),
|
|
1103
|
-
|
|
1103
|
+
ye(n.mainHeader?.color ?? "white"),
|
|
1104
1104
|
n.mainHeader.content
|
|
1105
1105
|
) : null,
|
|
1106
1106
|
d.main(
|
|
@@ -1110,7 +1110,7 @@ function fr({
|
|
|
1110
1110
|
r.class(
|
|
1111
1111
|
fe("none", n.main?.shadow ?? "none")
|
|
1112
1112
|
),
|
|
1113
|
-
|
|
1113
|
+
ye(n.main?.color ?? "white"),
|
|
1114
1114
|
n.main.content
|
|
1115
1115
|
),
|
|
1116
1116
|
n.mainFooter ? d.footer(
|
|
@@ -1122,7 +1122,7 @@ function fr({
|
|
|
1122
1122
|
n.mainFooter?.shadow ?? "none"
|
|
1123
1123
|
)
|
|
1124
1124
|
),
|
|
1125
|
-
|
|
1125
|
+
ye(n.mainFooter?.color ?? "white"),
|
|
1126
1126
|
n.mainFooter.content
|
|
1127
1127
|
) : null,
|
|
1128
1128
|
n.aside ? d.aside(
|
|
@@ -1131,14 +1131,14 @@ function fr({
|
|
|
1131
1131
|
}),
|
|
1132
1132
|
S.zIndex("10"),
|
|
1133
1133
|
// Add ARIA attributes for aside landmark
|
|
1134
|
-
M.label(
|
|
1134
|
+
M.label(o.$.sidebar),
|
|
1135
1135
|
r.role("complementary"),
|
|
1136
1136
|
r.class(
|
|
1137
1137
|
b.map(
|
|
1138
1138
|
(p) => p === "float" ? fe("left", "md") : fe("left", "none")
|
|
1139
1139
|
)
|
|
1140
1140
|
),
|
|
1141
|
-
|
|
1141
|
+
ye("white"),
|
|
1142
1142
|
S.height("100%"),
|
|
1143
1143
|
S.gridArea("aside"),
|
|
1144
1144
|
S.display(
|
|
@@ -1162,14 +1162,14 @@ function fr({
|
|
|
1162
1162
|
)((p, y) => p === "block" ? "opened" : y)
|
|
1163
1163
|
}),
|
|
1164
1164
|
S.width(
|
|
1165
|
-
|
|
1165
|
+
Te(n.aside?.width, l.$.asideWidth)
|
|
1166
1166
|
),
|
|
1167
1167
|
S.bottom(v.map((p) => `${p}px`)),
|
|
1168
1168
|
n.aside.content
|
|
1169
1169
|
) : null,
|
|
1170
1170
|
n.footer ? d.footer(
|
|
1171
1171
|
r.class(fe("top", "none")),
|
|
1172
|
-
|
|
1172
|
+
ye("white"),
|
|
1173
1173
|
S.height("100%"),
|
|
1174
1174
|
S.gridArea("footer"),
|
|
1175
1175
|
n.footer.content
|
|
@@ -1178,7 +1178,7 @@ function fr({
|
|
|
1178
1178
|
})
|
|
1179
1179
|
);
|
|
1180
1180
|
}
|
|
1181
|
-
function
|
|
1181
|
+
function hr(...e) {
|
|
1182
1182
|
return d.div(
|
|
1183
1183
|
r.class("bc-center-h"),
|
|
1184
1184
|
d.div(r.class("bc-center__content"), ...e)
|
|
@@ -1188,7 +1188,7 @@ function na(e) {
|
|
|
1188
1188
|
const t = ["bc-center"];
|
|
1189
1189
|
return e !== "lg" && t.push(`bc-center--gap-${e}`), t.join(" ");
|
|
1190
1190
|
}
|
|
1191
|
-
function
|
|
1191
|
+
function vr({ gap: e = "lg" } = {}, ...t) {
|
|
1192
1192
|
return d.div(
|
|
1193
1193
|
r.class(I(e)((n) => na(n ?? "lg"))),
|
|
1194
1194
|
...t
|
|
@@ -1196,7 +1196,7 @@ function gr({ gap: e = "lg" } = {}, ...t) {
|
|
|
1196
1196
|
}
|
|
1197
1197
|
function aa({ open: e }, ...t) {
|
|
1198
1198
|
return te((n) => {
|
|
1199
|
-
const { status: a, setOpen: s, dispose:
|
|
1199
|
+
const { status: a, setOpen: s, dispose: o } = Me({
|
|
1200
1200
|
initialStatus: h.get(e) ? "opened" : "closed",
|
|
1201
1201
|
element: n
|
|
1202
1202
|
});
|
|
@@ -1205,21 +1205,21 @@ function aa({ open: e }, ...t) {
|
|
|
1205
1205
|
return I(
|
|
1206
1206
|
a,
|
|
1207
1207
|
i.$.height
|
|
1208
|
-
)((
|
|
1209
|
-
|
|
1210
|
-
}), a.on((
|
|
1211
|
-
if (n &&
|
|
1208
|
+
)((l, f) => l === "opened" && f > 0 ? f : null).on((l) => {
|
|
1209
|
+
l != null && c.set(l);
|
|
1210
|
+
}), a.on((l) => {
|
|
1211
|
+
if (n && l === "start-opening") {
|
|
1212
1212
|
const f = n.style.height, g = n.style.transition;
|
|
1213
1213
|
n.style.transition = "none", n.style.height = "auto", n.offsetHeight;
|
|
1214
1214
|
const k = n.scrollHeight;
|
|
1215
1215
|
k > 0 && c.set(k), n.style.height = f, n.style.transition = g, n.offsetHeight;
|
|
1216
1216
|
}
|
|
1217
1217
|
}), N(
|
|
1218
|
-
re(
|
|
1218
|
+
re(o),
|
|
1219
1219
|
r.style(
|
|
1220
|
-
c.map((
|
|
1220
|
+
c.map((l) => `--collapse-height: ${l != null ? `${l}px` : "auto"}`)
|
|
1221
1221
|
),
|
|
1222
|
-
r.class(a.map((
|
|
1222
|
+
r.class(a.map((l) => `bc-collapse bc-collapse--${l}`)),
|
|
1223
1223
|
...t
|
|
1224
1224
|
);
|
|
1225
1225
|
});
|
|
@@ -1231,17 +1231,17 @@ function ra(e) {
|
|
|
1231
1231
|
function Tt(e) {
|
|
1232
1232
|
return h.map(e, ra);
|
|
1233
1233
|
}
|
|
1234
|
-
function
|
|
1234
|
+
function yr({
|
|
1235
1235
|
body: e,
|
|
1236
1236
|
contentWidth: t,
|
|
1237
1237
|
contentHeight: n,
|
|
1238
1238
|
header: a,
|
|
1239
1239
|
headerHeight: s = 0,
|
|
1240
|
-
topStart:
|
|
1240
|
+
topStart: o,
|
|
1241
1241
|
topEnd: i,
|
|
1242
1242
|
footer: c,
|
|
1243
1243
|
footerHeight: u = 0,
|
|
1244
|
-
bottomStart:
|
|
1244
|
+
bottomStart: l,
|
|
1245
1245
|
bottomEnd: f,
|
|
1246
1246
|
sidebarStart: g,
|
|
1247
1247
|
sidebarStartWidth: k = 0,
|
|
@@ -1257,25 +1257,25 @@ function mr({
|
|
|
1257
1257
|
_.$.width,
|
|
1258
1258
|
k,
|
|
1259
1259
|
w
|
|
1260
|
-
)((L, O,
|
|
1260
|
+
)((L, O, q) => L - O - q), P = I(
|
|
1261
1261
|
_.$.height,
|
|
1262
1262
|
s,
|
|
1263
1263
|
u
|
|
1264
|
-
)((L, O,
|
|
1264
|
+
)((L, O, q) => L - O - q), C = I(
|
|
1265
1265
|
t,
|
|
1266
1266
|
$
|
|
1267
|
-
)((L, O) => L > BigInt(O)),
|
|
1267
|
+
)((L, O) => L > BigInt(O)), V = I(
|
|
1268
1268
|
n,
|
|
1269
1269
|
P
|
|
1270
1270
|
)((L, O) => L > BigInt(O)), E = I(
|
|
1271
1271
|
$,
|
|
1272
|
-
|
|
1272
|
+
V,
|
|
1273
1273
|
T
|
|
1274
|
-
)((L, O,
|
|
1274
|
+
)((L, O, q) => O ? L - q : L), R = I(
|
|
1275
1275
|
P,
|
|
1276
1276
|
C,
|
|
1277
1277
|
T
|
|
1278
|
-
)((L, O,
|
|
1278
|
+
)((L, O, q) => O ? L - q : L), j = I(
|
|
1279
1279
|
t,
|
|
1280
1280
|
E
|
|
1281
1281
|
)((L, O) => Number(L / BigInt(Math.max(1, O)))), J = I(
|
|
@@ -1284,7 +1284,7 @@ function mr({
|
|
|
1284
1284
|
)((L, O) => Number(L / BigInt(Math.max(1, O)))), Y = h.map(
|
|
1285
1285
|
v,
|
|
1286
1286
|
(L) => L === "body-end" || L === "body-end-bottom"
|
|
1287
|
-
), F =
|
|
1287
|
+
), F = K(
|
|
1288
1288
|
Y,
|
|
1289
1289
|
() => S.left(
|
|
1290
1290
|
I(
|
|
@@ -1292,8 +1292,8 @@ function mr({
|
|
|
1292
1292
|
t,
|
|
1293
1293
|
E,
|
|
1294
1294
|
w
|
|
1295
|
-
)((L, O,
|
|
1296
|
-
const B = L + Number(O), U = L +
|
|
1295
|
+
)((L, O, q, D) => {
|
|
1296
|
+
const B = L + Number(O), U = L + q, Z = Math.min(B, U);
|
|
1297
1297
|
return `${Math.max(L + D, Z)}px`;
|
|
1298
1298
|
})
|
|
1299
1299
|
),
|
|
@@ -1301,7 +1301,7 @@ function mr({
|
|
|
1301
1301
|
), Q = h.map(
|
|
1302
1302
|
v,
|
|
1303
1303
|
(L) => L === "body-bottom" || L === "body-end-bottom"
|
|
1304
|
-
), ie =
|
|
1304
|
+
), ie = K(
|
|
1305
1305
|
Q,
|
|
1306
1306
|
() => S.top(
|
|
1307
1307
|
I(
|
|
@@ -1309,14 +1309,14 @@ function mr({
|
|
|
1309
1309
|
n,
|
|
1310
1310
|
R,
|
|
1311
1311
|
u
|
|
1312
|
-
)((L, O,
|
|
1313
|
-
const B = L + Number(O), U = L +
|
|
1312
|
+
)((L, O, q, D) => {
|
|
1313
|
+
const B = L + Number(O), U = L + q, Z = Math.min(B, U);
|
|
1314
1314
|
return `${Math.max(L + D, Z)}px`;
|
|
1315
1315
|
})
|
|
1316
1316
|
),
|
|
1317
1317
|
() => S.bottom("0")
|
|
1318
|
-
),
|
|
1319
|
-
|
|
1318
|
+
), qe = I(
|
|
1319
|
+
V,
|
|
1320
1320
|
T
|
|
1321
1321
|
)((L, O) => L ? `${O}px` : "0"), ue = I(
|
|
1322
1322
|
C,
|
|
@@ -1326,72 +1326,72 @@ function mr({
|
|
|
1326
1326
|
b,
|
|
1327
1327
|
x,
|
|
1328
1328
|
C,
|
|
1329
|
-
|
|
1330
|
-
)((L, O,
|
|
1331
|
-
const B =
|
|
1329
|
+
V
|
|
1330
|
+
)((L, O, q, D) => {
|
|
1331
|
+
const B = q ? `translateX(-${L}px)` : "", U = D ? `translateY(-${O}px)` : "";
|
|
1332
1332
|
return `${B} ${U}`.trim() || "none";
|
|
1333
1333
|
})
|
|
1334
1334
|
), Ne = S.transform(
|
|
1335
1335
|
b.map((L) => `translateX(-${L}px)`)
|
|
1336
|
-
),
|
|
1336
|
+
), ke = S.transform(
|
|
1337
1337
|
x.map((L) => `translateY(-${L}px)`)
|
|
1338
1338
|
), Fe = I(
|
|
1339
1339
|
n,
|
|
1340
1340
|
R
|
|
1341
|
-
)((L, O) => L - BigInt(Math.max(1, O))),
|
|
1341
|
+
)((L, O) => L - BigInt(Math.max(1, O))), $e = I(
|
|
1342
1342
|
t,
|
|
1343
1343
|
E
|
|
1344
1344
|
)((L, O) => L - BigInt(Math.max(1, O)));
|
|
1345
|
-
let W = null,
|
|
1346
|
-
const
|
|
1347
|
-
const L = Fe.value, O =
|
|
1348
|
-
if (
|
|
1345
|
+
let W = null, Se = 0, Ce = 0;
|
|
1346
|
+
const Ke = () => {
|
|
1347
|
+
const L = Fe.value, O = $e.value, q = V.value, D = C.value;
|
|
1348
|
+
if (q && Ce !== 0) {
|
|
1349
1349
|
const B = Ct(
|
|
1350
1350
|
Re(0n, L),
|
|
1351
1351
|
Re(
|
|
1352
1352
|
0n,
|
|
1353
|
-
x.value + BigInt(Math.round(
|
|
1353
|
+
x.value + BigInt(Math.round(Ce))
|
|
1354
1354
|
)
|
|
1355
1355
|
);
|
|
1356
1356
|
x.set(B);
|
|
1357
1357
|
}
|
|
1358
|
-
if (D &&
|
|
1358
|
+
if (D && Se !== 0) {
|
|
1359
1359
|
const B = Ct(
|
|
1360
1360
|
Re(0n, O),
|
|
1361
1361
|
Re(
|
|
1362
1362
|
0n,
|
|
1363
|
-
b.value + BigInt(Math.round(
|
|
1363
|
+
b.value + BigInt(Math.round(Se))
|
|
1364
1364
|
)
|
|
1365
1365
|
);
|
|
1366
1366
|
b.set(B);
|
|
1367
1367
|
}
|
|
1368
|
-
|
|
1368
|
+
Se = 0, Ce = 0, W = null;
|
|
1369
1369
|
};
|
|
1370
1370
|
return C.on((L) => {
|
|
1371
1371
|
L || b.set(0n);
|
|
1372
|
-
}),
|
|
1372
|
+
}), V.on((L) => {
|
|
1373
1373
|
L || x.set(0n);
|
|
1374
1374
|
}), N(
|
|
1375
1375
|
re(() => {
|
|
1376
1376
|
W && clearTimeout(W);
|
|
1377
1377
|
}),
|
|
1378
|
-
|
|
1378
|
+
A.wheel((L) => {
|
|
1379
1379
|
L.preventDefault();
|
|
1380
|
-
const { deltaX: O, deltaY:
|
|
1381
|
-
|
|
1380
|
+
const { deltaX: O, deltaY: q } = L;
|
|
1381
|
+
Se += O, Ce += q, W || (W = setTimeout(Ke, 16));
|
|
1382
1382
|
}),
|
|
1383
1383
|
d.div(
|
|
1384
1384
|
r.class("bc-nine-slice-pane-container"),
|
|
1385
|
-
S.right(
|
|
1385
|
+
S.right(qe),
|
|
1386
1386
|
S.bottom(ue),
|
|
1387
1387
|
// top-start corner
|
|
1388
|
-
|
|
1388
|
+
o != null ? d.div(
|
|
1389
1389
|
r.class("bc-nine-slice-pane bc-nine-slice-top-start"),
|
|
1390
1390
|
S.top("0"),
|
|
1391
1391
|
S.left("0"),
|
|
1392
1392
|
// style.height(headerHeightPx),
|
|
1393
1393
|
// style.width(sidebarStartWidthPx),
|
|
1394
|
-
|
|
1394
|
+
o
|
|
1395
1395
|
) : null,
|
|
1396
1396
|
// top-center
|
|
1397
1397
|
a != null ? d.div(
|
|
@@ -1424,7 +1424,7 @@ function mr({
|
|
|
1424
1424
|
// style.width(sidebarStartWidthPx),
|
|
1425
1425
|
d.div(
|
|
1426
1426
|
r.class("bc-nine-slice-pane-content"),
|
|
1427
|
-
|
|
1427
|
+
ke,
|
|
1428
1428
|
g
|
|
1429
1429
|
)
|
|
1430
1430
|
) : null,
|
|
@@ -1450,18 +1450,18 @@ function mr({
|
|
|
1450
1450
|
// style.width(sidebarEndWidthPx),
|
|
1451
1451
|
d.div(
|
|
1452
1452
|
r.class("bc-nine-slice-pane-content"),
|
|
1453
|
-
|
|
1453
|
+
ke,
|
|
1454
1454
|
m
|
|
1455
1455
|
)
|
|
1456
1456
|
) : null,
|
|
1457
1457
|
// bottom-start corner
|
|
1458
|
-
|
|
1458
|
+
l != null ? d.div(
|
|
1459
1459
|
r.class("bc-nine-slice-pane bc-nine-slice-bottom-start"),
|
|
1460
1460
|
S.left("0"),
|
|
1461
1461
|
ie,
|
|
1462
1462
|
// style.height(footerHeightPx),
|
|
1463
1463
|
// style.width(sidebarStartWidthPx),
|
|
1464
|
-
|
|
1464
|
+
l
|
|
1465
1465
|
) : null,
|
|
1466
1466
|
// bottom-center
|
|
1467
1467
|
c != null ? d.div(
|
|
@@ -1493,7 +1493,7 @@ function mr({
|
|
|
1493
1493
|
S.left("0"),
|
|
1494
1494
|
S.right(
|
|
1495
1495
|
I(
|
|
1496
|
-
|
|
1496
|
+
V,
|
|
1497
1497
|
T
|
|
1498
1498
|
)((L, O) => L ? `${O}px` : "0")
|
|
1499
1499
|
),
|
|
@@ -1513,10 +1513,10 @@ function mr({
|
|
|
1513
1513
|
S.height("100%"),
|
|
1514
1514
|
S.backgroundColor("#ff000066")
|
|
1515
1515
|
),
|
|
1516
|
-
|
|
1517
|
-
const O = L.target,
|
|
1516
|
+
A.scroll((L) => {
|
|
1517
|
+
const O = L.target, q = O.scrollLeft, D = O.scrollWidth - O.clientWidth;
|
|
1518
1518
|
if (D > 0) {
|
|
1519
|
-
const B =
|
|
1519
|
+
const B = q / D, U = $e.value;
|
|
1520
1520
|
b.set(
|
|
1521
1521
|
BigInt(Math.round(Number(U) * B))
|
|
1522
1522
|
);
|
|
@@ -1536,7 +1536,7 @@ function mr({
|
|
|
1536
1536
|
),
|
|
1537
1537
|
S.right("0"),
|
|
1538
1538
|
S.width(
|
|
1539
|
-
|
|
1539
|
+
V.map(
|
|
1540
1540
|
(L) => L ? "16px" : "0"
|
|
1541
1541
|
)
|
|
1542
1542
|
),
|
|
@@ -1551,14 +1551,14 @@ function mr({
|
|
|
1551
1551
|
u,
|
|
1552
1552
|
n,
|
|
1553
1553
|
J
|
|
1554
|
-
)((L, O,
|
|
1554
|
+
)((L, O, q, D) => `${100 / Math.max(1, D)}%`)
|
|
1555
1555
|
),
|
|
1556
1556
|
S.backgroundColor("#ff000066")
|
|
1557
1557
|
),
|
|
1558
|
-
|
|
1559
|
-
const O = L.target,
|
|
1558
|
+
A.scroll((L) => {
|
|
1559
|
+
const O = L.target, q = O.scrollTop, D = O.scrollHeight - O.clientHeight;
|
|
1560
1560
|
if (D > 0) {
|
|
1561
|
-
const B =
|
|
1561
|
+
const B = q / D, U = Fe.value;
|
|
1562
1562
|
x.set(
|
|
1563
1563
|
BigInt(Math.round(Number(U) * B))
|
|
1564
1564
|
);
|
|
@@ -1570,19 +1570,19 @@ function mr({
|
|
|
1570
1570
|
);
|
|
1571
1571
|
}
|
|
1572
1572
|
function _t({ header: e, footer: t, body: n, shadowOnScroll: a = !0 }, ...s) {
|
|
1573
|
-
const
|
|
1573
|
+
const o = G("none");
|
|
1574
1574
|
function i(u) {
|
|
1575
|
-
const
|
|
1576
|
-
|
|
1575
|
+
const l = u.scrollTop === 0, f = u.scrollTop + u.clientHeight >= u.scrollHeight - 1;
|
|
1576
|
+
l && f ? o.set("none") : l ? o.set("bottom") : f ? o.set("top") : o.set("both");
|
|
1577
1577
|
}
|
|
1578
1578
|
return d.div(
|
|
1579
1579
|
r.class("bc-scrollable-panel"),
|
|
1580
1580
|
r.class(
|
|
1581
1581
|
I(
|
|
1582
|
-
|
|
1582
|
+
o,
|
|
1583
1583
|
a
|
|
1584
|
-
)((u,
|
|
1585
|
-
if (!
|
|
1584
|
+
)((u, l) => {
|
|
1585
|
+
if (!l) return "";
|
|
1586
1586
|
switch (u) {
|
|
1587
1587
|
case "both":
|
|
1588
1588
|
return "bc-scrollable-panel--scrolled-up bc-scrollable-panel--scrolled-down";
|
|
@@ -1602,9 +1602,9 @@ function _t({ header: e, footer: t, body: n, shadowOnScroll: a = !0 }, ...s) {
|
|
|
1602
1602
|
te(
|
|
1603
1603
|
(u) => re(ze(() => i(u)))
|
|
1604
1604
|
),
|
|
1605
|
-
|
|
1606
|
-
const
|
|
1607
|
-
i(
|
|
1605
|
+
A.scroll((u) => {
|
|
1606
|
+
const l = u.target;
|
|
1607
|
+
i(l);
|
|
1608
1608
|
}),
|
|
1609
1609
|
n
|
|
1610
1610
|
),
|
|
@@ -1617,7 +1617,7 @@ function sa(e, t, n) {
|
|
|
1617
1617
|
const a = ["bc-sink"];
|
|
1618
1618
|
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(" ");
|
|
1619
1619
|
}
|
|
1620
|
-
function
|
|
1620
|
+
function wr({ variant: e = "default", size: t = "md", roundedness: n = "lg" } = {}, ...a) {
|
|
1621
1621
|
return d.div(
|
|
1622
1622
|
r.class(
|
|
1623
1623
|
I(
|
|
@@ -1625,9 +1625,9 @@ function hr({ variant: e = "default", size: t = "md", roundedness: n = "lg" } =
|
|
|
1625
1625
|
t,
|
|
1626
1626
|
n
|
|
1627
1627
|
)(
|
|
1628
|
-
(s,
|
|
1628
|
+
(s, o, i) => sa(
|
|
1629
1629
|
s ?? "default",
|
|
1630
|
-
|
|
1630
|
+
o ?? "md",
|
|
1631
1631
|
i ?? "lg"
|
|
1632
1632
|
)
|
|
1633
1633
|
)
|
|
@@ -1635,7 +1635,7 @@ function hr({ variant: e = "default", size: t = "md", roundedness: n = "lg" } =
|
|
|
1635
1635
|
...a
|
|
1636
1636
|
);
|
|
1637
1637
|
}
|
|
1638
|
-
const
|
|
1638
|
+
const xe = {
|
|
1639
1639
|
value: (e, t, {
|
|
1640
1640
|
disabled: n,
|
|
1641
1641
|
before: a,
|
|
@@ -1662,26 +1662,26 @@ const we = {
|
|
|
1662
1662
|
}),
|
|
1663
1663
|
break: { type: "break" },
|
|
1664
1664
|
getValues: (e) => e.flatMap(
|
|
1665
|
-
(t) => t.type === "group" ?
|
|
1665
|
+
(t) => t.type === "group" ? xe.getValues(t.options) : t.type === "break" ? [] : [t.value]
|
|
1666
1666
|
),
|
|
1667
|
-
contains: (e, t, n = (a, s) => a === s) =>
|
|
1668
|
-
},
|
|
1667
|
+
contains: (e, t, n = (a, s) => a === s) => xe.getValues(e).some((a) => n(a, t))
|
|
1668
|
+
}, qt = (e) => {
|
|
1669
1669
|
const {
|
|
1670
1670
|
onChange: t,
|
|
1671
1671
|
onBlur: n,
|
|
1672
1672
|
role: a,
|
|
1673
1673
|
display: s,
|
|
1674
|
-
optionsSource:
|
|
1674
|
+
optionsSource: o,
|
|
1675
1675
|
allowSpaceToggle: i = !1,
|
|
1676
1676
|
onBeforeOpen: c,
|
|
1677
1677
|
onAfterOpen: u,
|
|
1678
|
-
buildListboxContent:
|
|
1678
|
+
buildListboxContent: l
|
|
1679
1679
|
} = e, f = G(!1), g = G(-1), k = G(null), m = me("dropdown"), w = me("listbox");
|
|
1680
1680
|
let v, x;
|
|
1681
1681
|
const b = (y) => {
|
|
1682
1682
|
t?.(y), f.set(!1), g.set(-1), k.set(null), v?.focus();
|
|
1683
1683
|
}, p = (y) => {
|
|
1684
|
-
const T =
|
|
1684
|
+
const T = xe.getValues(h.get(o));
|
|
1685
1685
|
switch (y.key) {
|
|
1686
1686
|
case "ArrowDown": {
|
|
1687
1687
|
if (y.preventDefault(), !f.value)
|
|
@@ -1708,7 +1708,7 @@ const we = {
|
|
|
1708
1708
|
_ != null && b(_);
|
|
1709
1709
|
} else {
|
|
1710
1710
|
c?.();
|
|
1711
|
-
const _ =
|
|
1711
|
+
const _ = xe.getValues(h.get(o));
|
|
1712
1712
|
f.set(!0), _.length > 0 && (g.set(0), k.set(_[0])), setTimeout(() => u?.(), 0);
|
|
1713
1713
|
}
|
|
1714
1714
|
break;
|
|
@@ -1720,7 +1720,7 @@ const we = {
|
|
|
1720
1720
|
case " ": {
|
|
1721
1721
|
if (h.get(i)) {
|
|
1722
1722
|
y.preventDefault();
|
|
1723
|
-
const _ =
|
|
1723
|
+
const _ = xe.getValues(h.get(o));
|
|
1724
1724
|
f.set(!f.value), f.value && _.length > 0 && (g.set(0), k.set(_[0]));
|
|
1725
1725
|
}
|
|
1726
1726
|
break;
|
|
@@ -1758,7 +1758,7 @@ const we = {
|
|
|
1758
1758
|
(T, _) => T && _ != null ? `dropdown-option-${String(_)}` : ""
|
|
1759
1759
|
)
|
|
1760
1760
|
),
|
|
1761
|
-
n != null ?
|
|
1761
|
+
n != null ? A.blur(() => {
|
|
1762
1762
|
setTimeout(() => {
|
|
1763
1763
|
x?.contains(document.activeElement) || (f.set(!1), g.set(-1), n());
|
|
1764
1764
|
}, 100);
|
|
@@ -1773,7 +1773,7 @@ const we = {
|
|
|
1773
1773
|
r.role("listbox"),
|
|
1774
1774
|
r.id(w),
|
|
1775
1775
|
M.labelledby(m),
|
|
1776
|
-
|
|
1776
|
+
l({
|
|
1777
1777
|
dropdownId: m,
|
|
1778
1778
|
listboxId: w,
|
|
1779
1779
|
focusedValue: k,
|
|
@@ -1794,11 +1794,11 @@ const we = {
|
|
|
1794
1794
|
_();
|
|
1795
1795
|
else {
|
|
1796
1796
|
c?.();
|
|
1797
|
-
const C =
|
|
1797
|
+
const C = xe.getValues(h.get(o));
|
|
1798
1798
|
f.set(!0), C.length > 0 && (g.set(0), k.set(C[0])), T(), setTimeout(() => u?.(), 0);
|
|
1799
1799
|
}
|
|
1800
1800
|
};
|
|
1801
|
-
return
|
|
1801
|
+
return A.click(P);
|
|
1802
1802
|
},
|
|
1803
1803
|
showDelay: 0,
|
|
1804
1804
|
hideDelay: 0,
|
|
@@ -1806,17 +1806,17 @@ const we = {
|
|
|
1806
1806
|
})
|
|
1807
1807
|
))
|
|
1808
1808
|
);
|
|
1809
|
-
},
|
|
1809
|
+
}, Kt = (e, t, n, a, s) => Ye(
|
|
1810
1810
|
e,
|
|
1811
|
-
(
|
|
1811
|
+
(o) => Mt(o, {
|
|
1812
1812
|
value: (i) => {
|
|
1813
1813
|
const c = I(
|
|
1814
1814
|
i,
|
|
1815
1815
|
n
|
|
1816
|
-
)((
|
|
1816
|
+
)((l, f) => t(l.value, f)), u = I(
|
|
1817
1817
|
i,
|
|
1818
1818
|
s
|
|
1819
|
-
)((
|
|
1819
|
+
)((l, f) => f != null && t(l.value, f));
|
|
1820
1820
|
return d.div(
|
|
1821
1821
|
r.class("bc-dropdown__option"),
|
|
1822
1822
|
r.class(
|
|
@@ -1824,18 +1824,18 @@ const we = {
|
|
|
1824
1824
|
c,
|
|
1825
1825
|
u,
|
|
1826
1826
|
i
|
|
1827
|
-
)((
|
|
1827
|
+
)((l, f, g) => {
|
|
1828
1828
|
const k = [];
|
|
1829
|
-
return
|
|
1829
|
+
return l && k.push("bc-dropdown__option--selected"), f && k.push("bc-dropdown__option--focused"), g.disabled && k.push("bc-dropdown__option--disabled"), k.join(" ");
|
|
1830
1830
|
})
|
|
1831
1831
|
),
|
|
1832
1832
|
r.role("option"),
|
|
1833
|
-
r.id(i.map((
|
|
1833
|
+
r.id(i.map((l) => `dropdown-option-${String(l.value)}`)),
|
|
1834
1834
|
M.selected(c),
|
|
1835
1835
|
Pn("value", i.$.value),
|
|
1836
|
-
|
|
1837
|
-
i.map((
|
|
1838
|
-
() =>
|
|
1836
|
+
K(
|
|
1837
|
+
i.map((l) => !l.disabled),
|
|
1838
|
+
() => A.click(() => a(i.value.value)),
|
|
1839
1839
|
() => H
|
|
1840
1840
|
),
|
|
1841
1841
|
d.div(
|
|
@@ -1857,9 +1857,9 @@ const we = {
|
|
|
1857
1857
|
r.role("group"),
|
|
1858
1858
|
M.label(i.$.group),
|
|
1859
1859
|
d.div(r.class("bc-dropdown__group-label"), i.$.group),
|
|
1860
|
-
|
|
1860
|
+
_e(
|
|
1861
1861
|
i.$.options,
|
|
1862
|
-
(c) =>
|
|
1862
|
+
(c) => Kt(
|
|
1863
1863
|
c,
|
|
1864
1864
|
t,
|
|
1865
1865
|
n,
|
|
@@ -1875,17 +1875,17 @@ const we = {
|
|
|
1875
1875
|
value: t,
|
|
1876
1876
|
options: n,
|
|
1877
1877
|
unselectedLabel: a,
|
|
1878
|
-
equality: s = (
|
|
1879
|
-
placeholder:
|
|
1878
|
+
equality: s = (l, f) => l === f,
|
|
1879
|
+
placeholder: o,
|
|
1880
1880
|
searchable: i = !1
|
|
1881
1881
|
} = e, c = I(
|
|
1882
1882
|
t,
|
|
1883
1883
|
n
|
|
1884
|
-
)((
|
|
1885
|
-
if (
|
|
1884
|
+
)((l, f) => {
|
|
1885
|
+
if (l == null) return "";
|
|
1886
1886
|
const g = (k) => {
|
|
1887
1887
|
for (const m of k) {
|
|
1888
|
-
if (m.type === "value" && s(m.value,
|
|
1888
|
+
if (m.type === "value" && s(m.value, l))
|
|
1889
1889
|
return m.label;
|
|
1890
1890
|
if (m.type === "group") {
|
|
1891
1891
|
const w = g(m.options);
|
|
@@ -1893,24 +1893,24 @@ const we = {
|
|
|
1893
1893
|
}
|
|
1894
1894
|
}
|
|
1895
1895
|
};
|
|
1896
|
-
return g(f) || String(
|
|
1897
|
-
}), u = I(i)((
|
|
1898
|
-
return
|
|
1896
|
+
return g(f) || String(l);
|
|
1897
|
+
}), u = I(i)((l) => !l);
|
|
1898
|
+
return qt({
|
|
1899
1899
|
...e,
|
|
1900
1900
|
role: "dropdown",
|
|
1901
|
-
display:
|
|
1902
|
-
c.map((
|
|
1901
|
+
display: K(
|
|
1902
|
+
c.map((l) => l.length > 0),
|
|
1903
1903
|
() => c,
|
|
1904
1904
|
() => ne(
|
|
1905
1905
|
le,
|
|
1906
|
-
(
|
|
1906
|
+
(l) => Te(o, a, l.$.selectOne)
|
|
1907
1907
|
)
|
|
1908
1908
|
),
|
|
1909
1909
|
optionsSource: n,
|
|
1910
1910
|
allowSpaceToggle: u,
|
|
1911
|
-
buildListboxContent: ({ focusedValue:
|
|
1911
|
+
buildListboxContent: ({ focusedValue: l, onSelect: f }) => _e(
|
|
1912
1912
|
n,
|
|
1913
|
-
(g) =>
|
|
1913
|
+
(g) => Kt(g, s, t, f, l)
|
|
1914
1914
|
)
|
|
1915
1915
|
});
|
|
1916
1916
|
}, oa = (e) => {
|
|
@@ -1921,17 +1921,17 @@ const we = {
|
|
|
1921
1921
|
onChange: Ut(t, n),
|
|
1922
1922
|
onBlur: Rt(t, a)
|
|
1923
1923
|
});
|
|
1924
|
-
},
|
|
1924
|
+
}, xr = (e) => ut({
|
|
1925
1925
|
...e,
|
|
1926
1926
|
content: oa(e)
|
|
1927
|
-
}), Qt = (e, t, n, a, s,
|
|
1927
|
+
}), Qt = (e, t, n, a, s, o) => Ye(
|
|
1928
1928
|
e,
|
|
1929
1929
|
(i) => Mt(i, {
|
|
1930
1930
|
value: (c) => {
|
|
1931
1931
|
const u = I(
|
|
1932
1932
|
c,
|
|
1933
1933
|
n
|
|
1934
|
-
)((f, g) => t(f.value, g)),
|
|
1934
|
+
)((f, g) => t(f.value, g)), l = I(
|
|
1935
1935
|
c,
|
|
1936
1936
|
s
|
|
1937
1937
|
)(
|
|
@@ -1942,7 +1942,7 @@ const we = {
|
|
|
1942
1942
|
r.class(
|
|
1943
1943
|
I(
|
|
1944
1944
|
u,
|
|
1945
|
-
|
|
1945
|
+
l,
|
|
1946
1946
|
c
|
|
1947
1947
|
)((f, g, k) => {
|
|
1948
1948
|
const m = [];
|
|
@@ -1952,9 +1952,9 @@ const we = {
|
|
|
1952
1952
|
r.role("option"),
|
|
1953
1953
|
r.id(c.map((f) => `dropdown-option-${String(f.value)}`)),
|
|
1954
1954
|
M.selected(u),
|
|
1955
|
-
|
|
1955
|
+
K(
|
|
1956
1956
|
c.map((f) => !f.disabled),
|
|
1957
|
-
() =>
|
|
1957
|
+
() => A.click(() => a(c.value.value)),
|
|
1958
1958
|
() => H
|
|
1959
1959
|
),
|
|
1960
1960
|
d.div(
|
|
@@ -1967,7 +1967,7 @@ const we = {
|
|
|
1967
1967
|
// Custom renderer for the main content
|
|
1968
1968
|
d.span(
|
|
1969
1969
|
r.class("bc-dropdown__option-label"),
|
|
1970
|
-
|
|
1970
|
+
o(c.$.value)
|
|
1971
1971
|
),
|
|
1972
1972
|
// After slot
|
|
1973
1973
|
c.value.after && d.span(r.class("bc-dropdown__option-after"), c.value.after)
|
|
@@ -1979,7 +1979,7 @@ const we = {
|
|
|
1979
1979
|
r.role("group"),
|
|
1980
1980
|
M.label(c.$.group),
|
|
1981
1981
|
d.div(r.class("bc-dropdown__group-label"), c.$.group),
|
|
1982
|
-
|
|
1982
|
+
_e(
|
|
1983
1983
|
c.$.options,
|
|
1984
1984
|
(u) => Qt(
|
|
1985
1985
|
u,
|
|
@@ -1987,7 +1987,7 @@ const we = {
|
|
|
1987
1987
|
n,
|
|
1988
1988
|
a,
|
|
1989
1989
|
s,
|
|
1990
|
-
|
|
1990
|
+
o
|
|
1991
1991
|
)
|
|
1992
1992
|
)
|
|
1993
1993
|
),
|
|
@@ -1999,11 +1999,11 @@ const we = {
|
|
|
1999
1999
|
loadOptions: n,
|
|
2000
2000
|
renderOption: a,
|
|
2001
2001
|
renderValue: s,
|
|
2002
|
-
equality:
|
|
2002
|
+
equality: o = (p, y) => p === y,
|
|
2003
2003
|
placeholder: i,
|
|
2004
2004
|
searchPlaceholder: c,
|
|
2005
2005
|
debounceMs: u = 150
|
|
2006
|
-
} = e,
|
|
2006
|
+
} = e, l = G(""), f = G(!1), g = G([]);
|
|
2007
2007
|
let k;
|
|
2008
2008
|
const m = h.toSignal(t), w = () => (s ?? a)(m);
|
|
2009
2009
|
let v = null;
|
|
@@ -2021,17 +2021,17 @@ const we = {
|
|
|
2021
2021
|
Math.max(0, u)
|
|
2022
2022
|
);
|
|
2023
2023
|
};
|
|
2024
|
-
return
|
|
2024
|
+
return qt({
|
|
2025
2025
|
...e,
|
|
2026
2026
|
role: "combobox",
|
|
2027
|
-
display:
|
|
2027
|
+
display: K(
|
|
2028
2028
|
I(t)((p) => p != null),
|
|
2029
2029
|
w,
|
|
2030
2030
|
() => ne(le, (p) => p.$.selectOne)
|
|
2031
2031
|
),
|
|
2032
2032
|
optionsSource: g,
|
|
2033
2033
|
onBeforeOpen: () => {
|
|
2034
|
-
const p = h.get(
|
|
2034
|
+
const p = h.get(l);
|
|
2035
2035
|
b(p);
|
|
2036
2036
|
},
|
|
2037
2037
|
onAfterOpen: () => {
|
|
@@ -2050,26 +2050,26 @@ const we = {
|
|
|
2050
2050
|
i
|
|
2051
2051
|
)((_, $) => _ ?? $ ?? "Search")
|
|
2052
2052
|
),
|
|
2053
|
-
r.value(
|
|
2053
|
+
r.value(l),
|
|
2054
2054
|
te((_) => (k = _, H)),
|
|
2055
|
-
|
|
2055
|
+
A.input((_) => {
|
|
2056
2056
|
const $ = _.target;
|
|
2057
|
-
|
|
2057
|
+
l.set($.value), b($.value);
|
|
2058
2058
|
}),
|
|
2059
|
-
|
|
2059
|
+
A.keydown(y)
|
|
2060
2060
|
)
|
|
2061
2061
|
),
|
|
2062
|
-
|
|
2062
|
+
K(
|
|
2063
2063
|
f,
|
|
2064
2064
|
() => d.div(
|
|
2065
2065
|
r.class("bc-dropdown__loading"),
|
|
2066
2066
|
X({ icon: "ph:spinner-bold", color: "neutral" })
|
|
2067
2067
|
),
|
|
2068
|
-
() =>
|
|
2068
|
+
() => _e(
|
|
2069
2069
|
g,
|
|
2070
2070
|
(_) => Qt(
|
|
2071
2071
|
_,
|
|
2072
|
-
|
|
2072
|
+
o,
|
|
2073
2073
|
m,
|
|
2074
2074
|
T,
|
|
2075
2075
|
p,
|
|
@@ -2087,7 +2087,7 @@ const we = {
|
|
|
2087
2087
|
onChange: Ut(t, n),
|
|
2088
2088
|
onBlur: Rt(t, a)
|
|
2089
2089
|
});
|
|
2090
|
-
},
|
|
2090
|
+
}, kr = (e) => ut({
|
|
2091
2091
|
...e,
|
|
2092
2092
|
content: ca(e)
|
|
2093
2093
|
});
|
|
@@ -2097,11 +2097,11 @@ function Xt(e) {
|
|
|
2097
2097
|
placement: n = "bottom-start",
|
|
2098
2098
|
showDelay: a = 0,
|
|
2099
2099
|
hideDelay: s = 100,
|
|
2100
|
-
mainAxisOffset:
|
|
2100
|
+
mainAxisOffset: o = 4,
|
|
2101
2101
|
crossAxisOffset: i = 0,
|
|
2102
2102
|
showOn: c = "click",
|
|
2103
2103
|
closable: u = !0,
|
|
2104
|
-
onClose:
|
|
2104
|
+
onClose: l,
|
|
2105
2105
|
onAction: f,
|
|
2106
2106
|
ariaLabel: g,
|
|
2107
2107
|
ariaLabelledBy: k
|
|
@@ -2111,42 +2111,42 @@ function Xt(e) {
|
|
|
2111
2111
|
Ge({
|
|
2112
2112
|
content: () => te((b) => {
|
|
2113
2113
|
x = document.activeElement;
|
|
2114
|
-
const p = (P, C,
|
|
2114
|
+
const p = (P, C, V) => {
|
|
2115
2115
|
if (C.length === 0) return -1;
|
|
2116
|
-
let E = P +
|
|
2116
|
+
let E = P + V, R = 0;
|
|
2117
2117
|
for (; R < C.length; ) {
|
|
2118
2118
|
E >= C.length && (E = 0), E < 0 && (E = C.length - 1);
|
|
2119
2119
|
const j = C[E];
|
|
2120
2120
|
if (j && j.getAttribute("aria-disabled") !== "true")
|
|
2121
2121
|
return E;
|
|
2122
|
-
E +=
|
|
2122
|
+
E += V, R++;
|
|
2123
2123
|
}
|
|
2124
2124
|
return P;
|
|
2125
2125
|
}, y = (P) => {
|
|
2126
|
-
const C = v.value,
|
|
2126
|
+
const C = v.value, V = w.value;
|
|
2127
2127
|
switch (P.key) {
|
|
2128
2128
|
case "ArrowDown":
|
|
2129
2129
|
P.preventDefault(), P.stopPropagation();
|
|
2130
|
-
const E = p(
|
|
2130
|
+
const E = p(V, C, 1);
|
|
2131
2131
|
T(E, C);
|
|
2132
2132
|
break;
|
|
2133
2133
|
case "ArrowUp":
|
|
2134
2134
|
P.preventDefault(), P.stopPropagation();
|
|
2135
|
-
const R = p(
|
|
2135
|
+
const R = p(V, C, -1);
|
|
2136
2136
|
T(R, C);
|
|
2137
2137
|
break;
|
|
2138
2138
|
case "Enter":
|
|
2139
2139
|
case " ":
|
|
2140
|
-
if (P.preventDefault(), P.stopPropagation(),
|
|
2141
|
-
const j = C[
|
|
2140
|
+
if (P.preventDefault(), P.stopPropagation(), V >= 0 && C[V]) {
|
|
2141
|
+
const j = C[V];
|
|
2142
2142
|
if (j.getAttribute("aria-disabled") === "true")
|
|
2143
2143
|
return;
|
|
2144
2144
|
const J = j.getAttribute("data-key");
|
|
2145
|
-
J && f && f(J), j.click(),
|
|
2145
|
+
J && f && f(J), j.click(), l?.();
|
|
2146
2146
|
}
|
|
2147
2147
|
break;
|
|
2148
2148
|
case "Escape":
|
|
2149
|
-
|
|
2149
|
+
l?.();
|
|
2150
2150
|
break;
|
|
2151
2151
|
case "Home":
|
|
2152
2152
|
P.preventDefault(), P.stopPropagation(), C.length > 0 && T(0, C);
|
|
@@ -2155,15 +2155,15 @@ function Xt(e) {
|
|
|
2155
2155
|
P.preventDefault(), P.stopPropagation(), C.length > 0 && T(C.length - 1, C);
|
|
2156
2156
|
break;
|
|
2157
2157
|
case "ArrowRight":
|
|
2158
|
-
if (P.preventDefault(), P.stopPropagation(),
|
|
2159
|
-
const j = C[
|
|
2158
|
+
if (P.preventDefault(), P.stopPropagation(), V >= 0 && C[V]) {
|
|
2159
|
+
const j = C[V];
|
|
2160
2160
|
j.classList.contains(
|
|
2161
2161
|
"bc-menu-item--has-submenu"
|
|
2162
2162
|
) && j.dispatchEvent(new Event("mouseenter"));
|
|
2163
2163
|
}
|
|
2164
2164
|
break;
|
|
2165
2165
|
case "ArrowLeft":
|
|
2166
|
-
P.preventDefault(), P.stopPropagation(),
|
|
2166
|
+
P.preventDefault(), P.stopPropagation(), l?.();
|
|
2167
2167
|
break;
|
|
2168
2168
|
}
|
|
2169
2169
|
}, T = (P, C) => {
|
|
@@ -2176,7 +2176,7 @@ function Xt(e) {
|
|
|
2176
2176
|
);
|
|
2177
2177
|
if (v.set(P), P.length > 0) {
|
|
2178
2178
|
const C = P.findIndex(
|
|
2179
|
-
(
|
|
2179
|
+
(V) => V.getAttribute("aria-disabled") !== "true"
|
|
2180
2180
|
);
|
|
2181
2181
|
C >= 0 && T(C, P);
|
|
2182
2182
|
}
|
|
@@ -2200,12 +2200,12 @@ function Xt(e) {
|
|
|
2200
2200
|
return P >= 0 && C[P] ? C[P].id || `${m}-item-${P}` : "";
|
|
2201
2201
|
})
|
|
2202
2202
|
),
|
|
2203
|
-
|
|
2204
|
-
const
|
|
2203
|
+
A.click((P) => {
|
|
2204
|
+
const V = P.target.closest(
|
|
2205
2205
|
'[role="menuitem"]'
|
|
2206
2206
|
);
|
|
2207
|
-
if (
|
|
2208
|
-
const E =
|
|
2207
|
+
if (V && V.getAttribute("aria-disabled") !== "true") {
|
|
2208
|
+
const E = V.getAttribute("data-key");
|
|
2209
2209
|
E && f && f(E);
|
|
2210
2210
|
}
|
|
2211
2211
|
}),
|
|
@@ -2217,8 +2217,8 @@ function Xt(e) {
|
|
|
2217
2217
|
w.map((P) => {
|
|
2218
2218
|
const C = v.value;
|
|
2219
2219
|
if (P >= 0 && C[P]) {
|
|
2220
|
-
const
|
|
2221
|
-
return C[P].getAttribute("aria-disabled") === "true" ? `${
|
|
2220
|
+
const V = C[P].textContent || "";
|
|
2221
|
+
return C[P].getAttribute("aria-disabled") === "true" ? `${V}, disabled` : `${V}, ${P + 1} of ${C.length}`;
|
|
2222
2222
|
}
|
|
2223
2223
|
return "";
|
|
2224
2224
|
})
|
|
@@ -2229,7 +2229,7 @@ function Xt(e) {
|
|
|
2229
2229
|
placement: n,
|
|
2230
2230
|
showDelay: a,
|
|
2231
2231
|
hideDelay: s,
|
|
2232
|
-
mainAxisOffset:
|
|
2232
|
+
mainAxisOffset: o,
|
|
2233
2233
|
crossAxisOffset: i,
|
|
2234
2234
|
showOn: c,
|
|
2235
2235
|
closable: u,
|
|
@@ -2237,21 +2237,21 @@ function Xt(e) {
|
|
|
2237
2237
|
})
|
|
2238
2238
|
);
|
|
2239
2239
|
}
|
|
2240
|
-
function
|
|
2240
|
+
function Sr(e) {
|
|
2241
2241
|
const {
|
|
2242
2242
|
key: t,
|
|
2243
2243
|
content: n,
|
|
2244
2244
|
startContent: a,
|
|
2245
2245
|
endContent: s,
|
|
2246
|
-
disabled:
|
|
2246
|
+
disabled: o = !1,
|
|
2247
2247
|
onClick: i,
|
|
2248
2248
|
ariaLabel: c,
|
|
2249
2249
|
submenu: u,
|
|
2250
|
-
submenuPlacement:
|
|
2250
|
+
submenuPlacement: l = "right-start"
|
|
2251
2251
|
} = e, f = t ?? me("menu-item"), g = `menu-item-${f}`, k = u != null;
|
|
2252
2252
|
return d.div(
|
|
2253
2253
|
r.class(
|
|
2254
|
-
I(
|
|
2254
|
+
I(o)(
|
|
2255
2255
|
(m) => `bc-menu-item ${m ? "bc-menu-item--disabled" : ""} ${k ? "bc-menu-item--has-submenu" : ""}`
|
|
2256
2256
|
)
|
|
2257
2257
|
),
|
|
@@ -2259,13 +2259,13 @@ function wr(e) {
|
|
|
2259
2259
|
r.role("menuitem"),
|
|
2260
2260
|
r.tabindex(-1),
|
|
2261
2261
|
st.key(f),
|
|
2262
|
-
M.disabled(
|
|
2262
|
+
M.disabled(o),
|
|
2263
2263
|
M.selected(!1),
|
|
2264
2264
|
// Will be updated by focus management
|
|
2265
2265
|
k ? M.expanded(!1) : N(),
|
|
2266
2266
|
c ? M.label(c) : N(),
|
|
2267
|
-
|
|
2268
|
-
if (h.get(
|
|
2267
|
+
A.click((m) => {
|
|
2268
|
+
if (h.get(o)) {
|
|
2269
2269
|
m.preventDefault(), m.stopPropagation();
|
|
2270
2270
|
return;
|
|
2271
2271
|
}
|
|
@@ -2284,7 +2284,7 @@ function wr(e) {
|
|
|
2284
2284
|
r.role("menu"),
|
|
2285
2285
|
...u()
|
|
2286
2286
|
),
|
|
2287
|
-
placement:
|
|
2287
|
+
placement: l,
|
|
2288
2288
|
showOn: "hover",
|
|
2289
2289
|
hasPopup: "menu",
|
|
2290
2290
|
showDelay: 100,
|
|
@@ -2332,32 +2332,32 @@ function ua(e, t, n) {
|
|
|
2332
2332
|
function sn(e, t, n) {
|
|
2333
2333
|
const a = t.trim().toLowerCase(), s = n ?? ((i, c) => c.label.toLowerCase().includes(i));
|
|
2334
2334
|
if (a === "") return e;
|
|
2335
|
-
const
|
|
2335
|
+
const o = [];
|
|
2336
2336
|
for (const i of e)
|
|
2337
2337
|
if (i.type === "value")
|
|
2338
|
-
s(a, { label: i.label }) &&
|
|
2338
|
+
s(a, { label: i.label }) && o.push(i);
|
|
2339
2339
|
else if (i.type === "group") {
|
|
2340
2340
|
const c = sn(
|
|
2341
2341
|
i.options,
|
|
2342
2342
|
a,
|
|
2343
2343
|
s
|
|
2344
2344
|
);
|
|
2345
|
-
c.length > 0 &&
|
|
2345
|
+
c.length > 0 && o.push({ ...i, options: c });
|
|
2346
2346
|
}
|
|
2347
|
-
return
|
|
2347
|
+
return o;
|
|
2348
2348
|
}
|
|
2349
2349
|
function ln(e) {
|
|
2350
|
-
const { values: t, options: n, equality: a, disabled: s, onRemove:
|
|
2350
|
+
const { values: t, options: n, equality: a, disabled: s, onRemove: o } = e;
|
|
2351
2351
|
return bn(
|
|
2352
2352
|
t,
|
|
2353
|
-
() =>
|
|
2353
|
+
() => _e(
|
|
2354
2354
|
t,
|
|
2355
2355
|
(i) => Zt({
|
|
2356
2356
|
value: I(
|
|
2357
2357
|
i,
|
|
2358
2358
|
n
|
|
2359
2359
|
)((c, u) => ua(u, c, a)),
|
|
2360
|
-
onClose: () =>
|
|
2360
|
+
onClose: () => o(i.value),
|
|
2361
2361
|
disabled: s
|
|
2362
2362
|
})
|
|
2363
2363
|
),
|
|
@@ -2368,18 +2368,18 @@ function on(e) {
|
|
|
2368
2368
|
const {
|
|
2369
2369
|
value: t,
|
|
2370
2370
|
options: n,
|
|
2371
|
-
equality: a = (
|
|
2371
|
+
equality: a = (l, f) => l === f,
|
|
2372
2372
|
placeholder: s
|
|
2373
|
-
} = e,
|
|
2373
|
+
} = e, o = (l) => {
|
|
2374
2374
|
const f = h.get(t);
|
|
2375
|
-
e.onChange?.(nn(f,
|
|
2376
|
-
}, i = (
|
|
2375
|
+
e.onChange?.(nn(f, l, a));
|
|
2376
|
+
}, i = (l) => {
|
|
2377
2377
|
const f = h.get(t);
|
|
2378
|
-
e.onChange?.(tn(f,
|
|
2379
|
-
}, c = (
|
|
2378
|
+
e.onChange?.(tn(f, l, a));
|
|
2379
|
+
}, c = (l) => I(t)((f) => an(f, l, a)), u = Xt({
|
|
2380
2380
|
items: () => {
|
|
2381
|
-
const
|
|
2382
|
-
for (const g of
|
|
2381
|
+
const l = h.get(n), f = [];
|
|
2382
|
+
for (const g of l)
|
|
2383
2383
|
if (g.type === "value") {
|
|
2384
2384
|
const k = c(g.value);
|
|
2385
2385
|
f.push(
|
|
@@ -2390,7 +2390,7 @@ function on(e) {
|
|
|
2390
2390
|
M.checked(k),
|
|
2391
2391
|
r.class("bc-menu-item"),
|
|
2392
2392
|
d.span(r.class("bc-menu-item__content"), g.label),
|
|
2393
|
-
|
|
2393
|
+
A.click(() => i(g.value))
|
|
2394
2394
|
)
|
|
2395
2395
|
);
|
|
2396
2396
|
} else g.type === "group" ? f.push(
|
|
@@ -2407,7 +2407,7 @@ function on(e) {
|
|
|
2407
2407
|
M.checked(m),
|
|
2408
2408
|
r.class("bc-menu-item"),
|
|
2409
2409
|
d.span(r.class("bc-menu-item__content"), k.label),
|
|
2410
|
-
|
|
2410
|
+
A.click(() => i(k.value))
|
|
2411
2411
|
);
|
|
2412
2412
|
}
|
|
2413
2413
|
return N();
|
|
@@ -2434,7 +2434,7 @@ function on(e) {
|
|
|
2434
2434
|
options: n,
|
|
2435
2435
|
equality: a,
|
|
2436
2436
|
disabled: e.disabled,
|
|
2437
|
-
onRemove:
|
|
2437
|
+
onRemove: o
|
|
2438
2438
|
})
|
|
2439
2439
|
// html.div(
|
|
2440
2440
|
// attr.class('bc-input-container__tags-selector'),
|
|
@@ -2453,10 +2453,10 @@ function on(e) {
|
|
|
2453
2453
|
})
|
|
2454
2454
|
});
|
|
2455
2455
|
}
|
|
2456
|
-
function
|
|
2456
|
+
function Cr(e) {
|
|
2457
2457
|
return jt(on, e);
|
|
2458
2458
|
}
|
|
2459
|
-
function
|
|
2459
|
+
function Ir(e) {
|
|
2460
2460
|
return Ht(on, e);
|
|
2461
2461
|
}
|
|
2462
2462
|
function cn(e) {
|
|
@@ -2465,12 +2465,12 @@ function cn(e) {
|
|
|
2465
2465
|
options: n,
|
|
2466
2466
|
equality: a = (m, w) => m === w,
|
|
2467
2467
|
placeholder: s,
|
|
2468
|
-
searchPlaceholder:
|
|
2468
|
+
searchPlaceholder: o,
|
|
2469
2469
|
filter: i
|
|
2470
2470
|
} = e, c = G(""), u = (m) => {
|
|
2471
2471
|
const w = h.get(t);
|
|
2472
2472
|
e.onChange?.(nn(w, m, a));
|
|
2473
|
-
},
|
|
2473
|
+
}, l = (m) => {
|
|
2474
2474
|
const w = h.get(t);
|
|
2475
2475
|
e.onChange?.(tn(w, m, a));
|
|
2476
2476
|
}, f = (m) => I(t)((w) => an(w, m, a)), g = I(
|
|
@@ -2497,7 +2497,7 @@ function cn(e) {
|
|
|
2497
2497
|
M.checked(x),
|
|
2498
2498
|
r.class("bc-menu-item"),
|
|
2499
2499
|
d.span(r.class("bc-menu-item__content"), v.label),
|
|
2500
|
-
|
|
2500
|
+
A.click(() => l(v.value))
|
|
2501
2501
|
)
|
|
2502
2502
|
);
|
|
2503
2503
|
} else v.type === "group" ? m.push(
|
|
@@ -2514,7 +2514,7 @@ function cn(e) {
|
|
|
2514
2514
|
M.checked(b),
|
|
2515
2515
|
r.class("bc-menu-item"),
|
|
2516
2516
|
d.span(r.class("bc-menu-item__content"), x.label),
|
|
2517
|
-
|
|
2517
|
+
A.click(() => l(x.value))
|
|
2518
2518
|
);
|
|
2519
2519
|
}
|
|
2520
2520
|
return N();
|
|
@@ -2564,16 +2564,16 @@ function cn(e) {
|
|
|
2564
2564
|
r.class("bc-dropdown__search-input"),
|
|
2565
2565
|
r.placeholder(
|
|
2566
2566
|
I(
|
|
2567
|
-
|
|
2567
|
+
o,
|
|
2568
2568
|
s
|
|
2569
2569
|
)((m, w) => m ?? w ?? "")
|
|
2570
2570
|
),
|
|
2571
2571
|
r.value(c),
|
|
2572
|
-
|
|
2572
|
+
A.input((m) => {
|
|
2573
2573
|
const w = m.target;
|
|
2574
2574
|
c.set(w.value);
|
|
2575
2575
|
}),
|
|
2576
|
-
|
|
2576
|
+
A.keydown((m) => {
|
|
2577
2577
|
(m.key === "ArrowUp" || m.key === "ArrowDown" || m.key === "Enter" || m.key === " ") && m.stopPropagation();
|
|
2578
2578
|
})
|
|
2579
2579
|
),
|
|
@@ -2582,13 +2582,13 @@ function cn(e) {
|
|
|
2582
2582
|
)
|
|
2583
2583
|
});
|
|
2584
2584
|
}
|
|
2585
|
-
function
|
|
2585
|
+
function Tr(e) {
|
|
2586
2586
|
return jt(cn, e);
|
|
2587
2587
|
}
|
|
2588
|
-
function
|
|
2588
|
+
function _r(e) {
|
|
2589
2589
|
return Ht(cn, e);
|
|
2590
2590
|
}
|
|
2591
|
-
const
|
|
2591
|
+
const $r = (e) => {
|
|
2592
2592
|
const { value: t, onBlur: n, onChange: a } = e;
|
|
2593
2593
|
return oe({
|
|
2594
2594
|
...e,
|
|
@@ -2596,14 +2596,14 @@ const Ir = (e) => {
|
|
|
2596
2596
|
pe(e),
|
|
2597
2597
|
r.valueAsDate(t),
|
|
2598
2598
|
r.class("bc-input"),
|
|
2599
|
-
n != null ?
|
|
2600
|
-
a != null ?
|
|
2599
|
+
n != null ? A.blur(ee(n)) : H,
|
|
2600
|
+
a != null ? A.change(gn(a)) : H
|
|
2601
2601
|
)
|
|
2602
2602
|
});
|
|
2603
2603
|
}, da = (e) => {
|
|
2604
|
-
const t = e.getFullYear(), n = (e.getMonth() + 1).toString().padStart(2, "0"), a = e.getDate().toString().padStart(2, "0"), s = e.getHours().toString().padStart(2, "0"),
|
|
2605
|
-
return `${t}-${n}-${a}T${s}:${
|
|
2606
|
-
},
|
|
2604
|
+
const t = e.getFullYear(), n = (e.getMonth() + 1).toString().padStart(2, "0"), a = e.getDate().toString().padStart(2, "0"), s = e.getHours().toString().padStart(2, "0"), o = e.getMinutes().toString().padStart(2, "0");
|
|
2605
|
+
return `${t}-${n}-${a}T${s}:${o}`;
|
|
2606
|
+
}, Pr = (e) => {
|
|
2607
2607
|
const { value: t, onBlur: n, onChange: a } = e;
|
|
2608
2608
|
return oe({
|
|
2609
2609
|
...e,
|
|
@@ -2611,11 +2611,11 @@ const Ir = (e) => {
|
|
|
2611
2611
|
pe(e),
|
|
2612
2612
|
r.value(h.map(t, da)),
|
|
2613
2613
|
r.class("bc-input"),
|
|
2614
|
-
n != null ?
|
|
2615
|
-
a != null ?
|
|
2614
|
+
n != null ? A.blur(ee(n)) : H,
|
|
2615
|
+
a != null ? A.change(ee((s) => a(new Date(s)))) : H
|
|
2616
2616
|
)
|
|
2617
2617
|
});
|
|
2618
|
-
},
|
|
2618
|
+
}, Dr = (e) => {
|
|
2619
2619
|
const {
|
|
2620
2620
|
value: t,
|
|
2621
2621
|
onInput: n,
|
|
@@ -2625,21 +2625,21 @@ const Ir = (e) => {
|
|
|
2625
2625
|
return Dn({
|
|
2626
2626
|
...s,
|
|
2627
2627
|
maxFiles: 1,
|
|
2628
|
-
value: h.map(t, (
|
|
2629
|
-
onChange: (
|
|
2630
|
-
a?.(
|
|
2628
|
+
value: h.map(t, (o) => o == null ? [] : [o]),
|
|
2629
|
+
onChange: (o) => {
|
|
2630
|
+
a?.(o[0]);
|
|
2631
2631
|
},
|
|
2632
|
-
onInput: (
|
|
2633
|
-
n?.(
|
|
2632
|
+
onInput: (o) => {
|
|
2633
|
+
n?.(o[0]);
|
|
2634
2634
|
}
|
|
2635
2635
|
});
|
|
2636
|
-
},
|
|
2636
|
+
}, Lr = (e) => Ft({
|
|
2637
2637
|
request: e.request,
|
|
2638
2638
|
load: e.load,
|
|
2639
2639
|
convertError: String,
|
|
2640
2640
|
success: ({ value: t }) => {
|
|
2641
2641
|
const n = t.map(
|
|
2642
|
-
(a) => a.map((s) => typeof s == "object" && "id" in s && "label" in s ?
|
|
2642
|
+
(a) => a.map((s) => typeof s == "object" && "id" in s && "label" in s ? xe.value(s.id, s.label) : s)
|
|
2643
2643
|
);
|
|
2644
2644
|
return Gt({
|
|
2645
2645
|
...e,
|
|
@@ -2657,15 +2657,15 @@ const Ir = (e) => {
|
|
|
2657
2657
|
})
|
|
2658
2658
|
)
|
|
2659
2659
|
)
|
|
2660
|
-
}),
|
|
2661
|
-
const { value: t, onBlur: n, onChange: a, onInput: s, after:
|
|
2662
|
-
return
|
|
2660
|
+
}), Ar = (e) => {
|
|
2661
|
+
const { value: t, onBlur: n, onChange: a, onInput: s, after: o, disabled: i, ...c } = e, u = Le(t, i, a);
|
|
2662
|
+
return Ae({
|
|
2663
2663
|
...c,
|
|
2664
2664
|
value: h.map(t, Ln),
|
|
2665
|
-
onChange: a != null ? (
|
|
2666
|
-
onInput: s != null ? (
|
|
2665
|
+
onChange: a != null ? (l) => a(xt(l)) : void 0,
|
|
2666
|
+
onInput: s != null ? (l) => s(xt(l)) : void 0,
|
|
2667
2667
|
onBlur: n,
|
|
2668
|
-
after:
|
|
2668
|
+
after: o != null ? N(u, o) : u
|
|
2669
2669
|
});
|
|
2670
2670
|
}, $t = (e) => {
|
|
2671
2671
|
try {
|
|
@@ -2673,11 +2673,11 @@ const Ir = (e) => {
|
|
|
2673
2673
|
} catch {
|
|
2674
2674
|
return null;
|
|
2675
2675
|
}
|
|
2676
|
-
},
|
|
2677
|
-
const { value: t, step: n, min: a, max: s, onChange:
|
|
2676
|
+
}, Vr = (e) => {
|
|
2677
|
+
const { value: t, step: n, min: a, max: s, onChange: o, onInput: i, after: c } = e, u = (m) => {
|
|
2678
2678
|
const w = a != null ? h.get(a) : void 0, v = s != null ? h.get(s) : void 0;
|
|
2679
2679
|
return w != null && m < w ? w : v != null && m > v ? v : m;
|
|
2680
|
-
},
|
|
2680
|
+
}, l = n != null ? ne(le, (m) => {
|
|
2681
2681
|
const w = I(
|
|
2682
2682
|
t,
|
|
2683
2683
|
a
|
|
@@ -2687,8 +2687,8 @@ const Ir = (e) => {
|
|
|
2687
2687
|
)((b, p) => p == null ? !0 : (b ?? 0n) < p), x = (b, p) => {
|
|
2688
2688
|
const y = h.get(t) ?? 0n, T = h.get(n), _ = p?.shiftKey ? 10n : 1n, $ = y + T * _ * b, P = a != null ? h.get(a) : void 0, C = s != null ? h.get(s) : void 0;
|
|
2689
2689
|
if (b < 0n && P != null && $ < P || b > 0n && C != null && $ > C) return;
|
|
2690
|
-
const
|
|
2691
|
-
|
|
2690
|
+
const V = u($);
|
|
2691
|
+
V !== y && o && o(V);
|
|
2692
2692
|
};
|
|
2693
2693
|
return dt(
|
|
2694
2694
|
r.class("bc-number-input-steppers"),
|
|
@@ -2703,7 +2703,7 @@ const Ir = (e) => {
|
|
|
2703
2703
|
e.disabled ?? !1
|
|
2704
2704
|
)((b, p) => !b || p)
|
|
2705
2705
|
),
|
|
2706
|
-
|
|
2706
|
+
A.click((b) => x(1n, b)),
|
|
2707
2707
|
M.label(m.$.incrementValue),
|
|
2708
2708
|
X({ icon: "line-md:plus", size: "xs" })
|
|
2709
2709
|
),
|
|
@@ -2718,19 +2718,19 @@ const Ir = (e) => {
|
|
|
2718
2718
|
e.disabled ?? !1
|
|
2719
2719
|
)((b, p) => !b || p)
|
|
2720
2720
|
),
|
|
2721
|
-
|
|
2721
|
+
A.click((b) => x(-1n, b)),
|
|
2722
2722
|
M.label(m.$.decrementValue),
|
|
2723
2723
|
X({ icon: "line-md:minus", size: "xs" })
|
|
2724
2724
|
)
|
|
2725
2725
|
);
|
|
2726
|
-
}) : null, f = c != null &&
|
|
2726
|
+
}) : null, f = c != null && l != null ? N(l, c) : c ?? l, g = o ? (m) => {
|
|
2727
2727
|
const w = $t(m);
|
|
2728
|
-
w != null &&
|
|
2728
|
+
w != null && o(u(w));
|
|
2729
2729
|
} : void 0, k = i ? (m) => {
|
|
2730
2730
|
const w = $t(m);
|
|
2731
2731
|
w != null && i(u(w));
|
|
2732
2732
|
} : void 0;
|
|
2733
|
-
return
|
|
2733
|
+
return Ae({
|
|
2734
2734
|
...e,
|
|
2735
2735
|
value: h.map(t, (m) => m.toString()),
|
|
2736
2736
|
onChange: g,
|
|
@@ -2747,11 +2747,11 @@ const Ir = (e) => {
|
|
|
2747
2747
|
} catch {
|
|
2748
2748
|
return null;
|
|
2749
2749
|
}
|
|
2750
|
-
},
|
|
2751
|
-
const { value: t, step: n, min: a, max: s, onChange:
|
|
2750
|
+
}, Br = (e) => {
|
|
2751
|
+
const { value: t, step: n, min: a, max: s, onChange: o, onInput: i, after: c } = e, u = (w) => {
|
|
2752
2752
|
const v = a != null ? h.get(a) : void 0, x = s != null ? h.get(s) : void 0;
|
|
2753
2753
|
return v != null && w < v ? v : x != null && w > x ? x : w;
|
|
2754
|
-
},
|
|
2754
|
+
}, l = n != null ? ne(le, (w) => {
|
|
2755
2755
|
const v = I(
|
|
2756
2756
|
t,
|
|
2757
2757
|
a
|
|
@@ -2765,10 +2765,10 @@ const Ir = (e) => {
|
|
|
2765
2765
|
const T = p ?? 0n;
|
|
2766
2766
|
return y == null ? !0 : T < y;
|
|
2767
2767
|
}), b = (p, y) => {
|
|
2768
|
-
const T = h.get(t) ?? 0n, _ = h.get(n), $ = y?.shiftKey ? 10n : 1n, P = T + _ * $ * p, C = a != null ? h.get(a) : void 0,
|
|
2769
|
-
if (p < 0n && C != null && P < C || p > 0n &&
|
|
2768
|
+
const T = h.get(t) ?? 0n, _ = h.get(n), $ = y?.shiftKey ? 10n : 1n, P = T + _ * $ * p, C = a != null ? h.get(a) : void 0, V = s != null ? h.get(s) : void 0;
|
|
2769
|
+
if (p < 0n && C != null && P < C || p > 0n && V != null && P > V) return;
|
|
2770
2770
|
const E = u(P);
|
|
2771
|
-
E !== T &&
|
|
2771
|
+
E !== T && o && o(E);
|
|
2772
2772
|
};
|
|
2773
2773
|
return dt(
|
|
2774
2774
|
r.class("bc-number-input-steppers"),
|
|
@@ -2783,7 +2783,7 @@ const Ir = (e) => {
|
|
|
2783
2783
|
e.disabled ?? !1
|
|
2784
2784
|
)((p, y) => !p || y)
|
|
2785
2785
|
),
|
|
2786
|
-
|
|
2786
|
+
A.click((p) => b(1n, p)),
|
|
2787
2787
|
M.label(w.$.incrementValue),
|
|
2788
2788
|
X({ icon: "line-md:plus", size: "xs" })
|
|
2789
2789
|
),
|
|
@@ -2798,19 +2798,19 @@ const Ir = (e) => {
|
|
|
2798
2798
|
e.disabled ?? !1
|
|
2799
2799
|
)((p, y) => !p || y)
|
|
2800
2800
|
),
|
|
2801
|
-
|
|
2801
|
+
A.click((p) => b(-1n, p)),
|
|
2802
2802
|
M.label(w.$.decrementValue),
|
|
2803
2803
|
X({ icon: "line-md:minus", size: "xs" })
|
|
2804
2804
|
)
|
|
2805
2805
|
);
|
|
2806
|
-
}) : null, f = Le(t, e.disabled,
|
|
2806
|
+
}) : null, f = Le(t, e.disabled, o), g = c != null && l != null ? N(l, f, c) : c != null ? N(f, c) : l != null ? N(l, f) : f, k = o ? (w) => {
|
|
2807
2807
|
const v = Pt(w);
|
|
2808
|
-
|
|
2808
|
+
o(v === null ? null : u(v));
|
|
2809
2809
|
} : void 0, m = i ? (w) => {
|
|
2810
2810
|
const v = Pt(w);
|
|
2811
2811
|
i(v === null ? null : u(v));
|
|
2812
2812
|
} : void 0;
|
|
2813
|
-
return
|
|
2813
|
+
return Ae({
|
|
2814
2814
|
...e,
|
|
2815
2815
|
value: h.map(t, (w) => w == null ? "" : w.toString()),
|
|
2816
2816
|
onChange: k,
|
|
@@ -2820,12 +2820,12 @@ const Ir = (e) => {
|
|
|
2820
2820
|
allowMode: "digits",
|
|
2821
2821
|
class: "bc-number-input"
|
|
2822
2822
|
});
|
|
2823
|
-
},
|
|
2824
|
-
const { value: t, onChange: n, onBlur: a, before: s } = e,
|
|
2825
|
-
n?.(h.get(t).filter((
|
|
2823
|
+
}, Mr = (e) => {
|
|
2824
|
+
const { value: t, onChange: n, onBlur: a, before: s } = e, o = G(""), i = (u) => {
|
|
2825
|
+
n?.(h.get(t).filter((l) => l !== u));
|
|
2826
2826
|
}, c = () => {
|
|
2827
|
-
const u =
|
|
2828
|
-
u === "" ||
|
|
2827
|
+
const u = o.value.trim(), l = h.get(t);
|
|
2828
|
+
u === "" || l.includes(u) || (o.set(""), n?.([...l, u]));
|
|
2829
2829
|
};
|
|
2830
2830
|
return oe({
|
|
2831
2831
|
...e,
|
|
@@ -2836,7 +2836,7 @@ const Ir = (e) => {
|
|
|
2836
2836
|
}),
|
|
2837
2837
|
input: N(
|
|
2838
2838
|
r.class("bc-input-container__tags"),
|
|
2839
|
-
|
|
2839
|
+
_e(
|
|
2840
2840
|
t,
|
|
2841
2841
|
(u) => Zt({
|
|
2842
2842
|
value: u,
|
|
@@ -2846,11 +2846,11 @@ const Ir = (e) => {
|
|
|
2846
2846
|
),
|
|
2847
2847
|
de.text(
|
|
2848
2848
|
pe(e),
|
|
2849
|
-
r.value(
|
|
2849
|
+
r.value(o),
|
|
2850
2850
|
r.class("bc-input bc-input-container__tags-input"),
|
|
2851
|
-
|
|
2852
|
-
n != null ?
|
|
2853
|
-
a != null ?
|
|
2851
|
+
A.input(ee(o.set)),
|
|
2852
|
+
n != null ? A.change(c) : H,
|
|
2853
|
+
a != null ? A.blur(a) : H
|
|
2854
2854
|
)
|
|
2855
2855
|
)
|
|
2856
2856
|
});
|
|
@@ -2859,14 +2859,14 @@ function Ze(e) {
|
|
|
2859
2859
|
return (t) => {
|
|
2860
2860
|
const { value: n, onBlur: a, onChange: s } = t;
|
|
2861
2861
|
return he(
|
|
2862
|
-
(
|
|
2862
|
+
(o) => oe({
|
|
2863
2863
|
...t,
|
|
2864
2864
|
input: de[e.inputType](
|
|
2865
2865
|
pe(t),
|
|
2866
2866
|
r.value(h.map(n, e.valueToString)),
|
|
2867
2867
|
r.class("bc-input"),
|
|
2868
|
-
a != null ?
|
|
2869
|
-
s != null ?
|
|
2868
|
+
a != null ? A.blur(ee(a)) : H,
|
|
2869
|
+
s != null ? A.change(ee((i) => s(e.parseValue(o, i)))) : H
|
|
2870
2870
|
)
|
|
2871
2871
|
})
|
|
2872
2872
|
);
|
|
@@ -2874,56 +2874,56 @@ function Ze(e) {
|
|
|
2874
2874
|
}
|
|
2875
2875
|
function Je(e) {
|
|
2876
2876
|
return (t) => {
|
|
2877
|
-
const { value: n, onBlur: a, onChange: s, after:
|
|
2877
|
+
const { value: n, onBlur: a, onChange: s, after: o, disabled: i } = t, c = Le(n, i, s);
|
|
2878
2878
|
return he(
|
|
2879
2879
|
(u) => oe({
|
|
2880
2880
|
...t,
|
|
2881
2881
|
input: de[e.inputType](
|
|
2882
2882
|
pe(t),
|
|
2883
2883
|
r.value(
|
|
2884
|
-
h.map(n, (
|
|
2884
|
+
h.map(n, (l) => l == null ? "" : e.valueToString(l))
|
|
2885
2885
|
),
|
|
2886
2886
|
r.class("bc-input"),
|
|
2887
|
-
a != null ?
|
|
2888
|
-
s != null ?
|
|
2887
|
+
a != null ? A.blur(ee(a)) : H,
|
|
2888
|
+
s != null ? A.change(
|
|
2889
2889
|
ee(
|
|
2890
|
-
(
|
|
2890
|
+
(l) => s(l === "" ? null : e.parseValue(u, l))
|
|
2891
2891
|
)
|
|
2892
2892
|
) : H
|
|
2893
2893
|
),
|
|
2894
|
-
after:
|
|
2894
|
+
after: o != null ? N(c, o) : c
|
|
2895
2895
|
})
|
|
2896
2896
|
);
|
|
2897
2897
|
};
|
|
2898
2898
|
}
|
|
2899
|
-
const
|
|
2899
|
+
const Er = Ze({
|
|
2900
2900
|
inputType: "date",
|
|
2901
2901
|
valueToString: (e) => e.toString(),
|
|
2902
2902
|
parseValue: (e, t) => e.PlainDate.from(t)
|
|
2903
|
-
}),
|
|
2903
|
+
}), Or = Je({
|
|
2904
2904
|
inputType: "date",
|
|
2905
2905
|
valueToString: (e) => e.toString(),
|
|
2906
2906
|
parseValue: (e, t) => e.PlainDate.from(t)
|
|
2907
|
-
}),
|
|
2907
|
+
}), Nr = Ze({
|
|
2908
2908
|
inputType: "time",
|
|
2909
2909
|
valueToString: (e) => e.toString(),
|
|
2910
2910
|
parseValue: (e, t) => e.PlainTime.from(t)
|
|
2911
|
-
}),
|
|
2911
|
+
}), Fr = Je({
|
|
2912
2912
|
inputType: "time",
|
|
2913
2913
|
valueToString: (e) => e.toString(),
|
|
2914
2914
|
parseValue: (e, t) => e.PlainTime.from(t)
|
|
2915
|
-
}),
|
|
2915
|
+
}), Rr = Ze({
|
|
2916
2916
|
inputType: "datetime-local",
|
|
2917
2917
|
valueToString: (e) => e.toJSON(),
|
|
2918
2918
|
parseValue: (e, t) => e.PlainDateTime.from(t)
|
|
2919
|
-
}),
|
|
2919
|
+
}), Ur = Je({
|
|
2920
2920
|
inputType: "datetime-local",
|
|
2921
2921
|
valueToString: (e) => e.toJSON(),
|
|
2922
2922
|
parseValue: (e, t) => e.PlainDateTime.from(t)
|
|
2923
2923
|
}), pa = (e) => {
|
|
2924
|
-
const t = new Date(e), n = t.getFullYear().toString().padStart(4, "0"), a = (t.getMonth() + 1).toString().padStart(2, "0"), s = t.getDate().toString().padStart(2, "0"),
|
|
2925
|
-
return `${n}-${a}-${s}T${
|
|
2926
|
-
},
|
|
2924
|
+
const t = new Date(e), n = t.getFullYear().toString().padStart(4, "0"), a = (t.getMonth() + 1).toString().padStart(2, "0"), s = t.getDate().toString().padStart(2, "0"), o = t.getHours().toString().padStart(2, "0"), i = t.getMinutes().toString().padStart(2, "0");
|
|
2925
|
+
return `${n}-${a}-${s}T${o}:${i}`;
|
|
2926
|
+
}, jr = (e) => {
|
|
2927
2927
|
const { value: t, onBlur: n, onChange: a } = e;
|
|
2928
2928
|
return he(
|
|
2929
2929
|
(s) => oe({
|
|
@@ -2931,23 +2931,23 @@ const Ar = Ze({
|
|
|
2931
2931
|
input: de["datetime-local"](
|
|
2932
2932
|
pe(e),
|
|
2933
2933
|
r.value(
|
|
2934
|
-
h.map(t, (
|
|
2934
|
+
h.map(t, (o) => pa(Number(o.epochMilliseconds)))
|
|
2935
2935
|
),
|
|
2936
2936
|
r.class("bc-input"),
|
|
2937
|
-
n != null ?
|
|
2938
|
-
a != null ?
|
|
2937
|
+
n != null ? A.blur(ee(n)) : H,
|
|
2938
|
+
a != null ? A.change(
|
|
2939
2939
|
ee(
|
|
2940
|
-
(
|
|
2940
|
+
(o) => a(s.Instant.from(new Date(o).toISOString()))
|
|
2941
2941
|
)
|
|
2942
2942
|
) : H
|
|
2943
2943
|
)
|
|
2944
2944
|
})
|
|
2945
2945
|
);
|
|
2946
2946
|
}, fa = (e) => {
|
|
2947
|
-
const t = new Date(e), n = t.getFullYear().toString().padStart(4, "0"), a = (t.getMonth() + 1).toString().padStart(2, "0"), s = t.getDate().toString().padStart(2, "0"),
|
|
2948
|
-
return `${n}-${a}-${s}T${
|
|
2949
|
-
},
|
|
2950
|
-
const { value: t, onBlur: n, onChange: a, after: s, disabled:
|
|
2947
|
+
const t = new Date(e), n = t.getFullYear().toString().padStart(4, "0"), a = (t.getMonth() + 1).toString().padStart(2, "0"), s = t.getDate().toString().padStart(2, "0"), o = t.getHours().toString().padStart(2, "0"), i = t.getMinutes().toString().padStart(2, "0");
|
|
2948
|
+
return `${n}-${a}-${s}T${o}:${i}`;
|
|
2949
|
+
}, Hr = (e) => {
|
|
2950
|
+
const { value: t, onBlur: n, onChange: a, after: s, disabled: o } = e, i = Le(t, o, a);
|
|
2951
2951
|
return he(
|
|
2952
2952
|
(c) => oe({
|
|
2953
2953
|
...e,
|
|
@@ -2960,8 +2960,8 @@ const Ar = Ze({
|
|
|
2960
2960
|
)
|
|
2961
2961
|
),
|
|
2962
2962
|
r.class("bc-input"),
|
|
2963
|
-
n != null ?
|
|
2964
|
-
a != null ?
|
|
2963
|
+
n != null ? A.blur(ee(n)) : H,
|
|
2964
|
+
a != null ? A.change(
|
|
2965
2965
|
ee(
|
|
2966
2966
|
(u) => a(u === "" ? null : c.Instant.from(new Date(u).toISOString()))
|
|
2967
2967
|
)
|
|
@@ -2970,27 +2970,27 @@ const Ar = Ze({
|
|
|
2970
2970
|
after: s != null ? N(i, s) : i
|
|
2971
2971
|
})
|
|
2972
2972
|
);
|
|
2973
|
-
},
|
|
2973
|
+
}, Wr = (e) => {
|
|
2974
2974
|
const { value: t, onBlur: n, onChange: a } = e;
|
|
2975
2975
|
return he(
|
|
2976
2976
|
(s) => oe({
|
|
2977
2977
|
...e,
|
|
2978
2978
|
input: de["datetime-local"](
|
|
2979
2979
|
pe(e),
|
|
2980
|
-
r.value(h.map(t, (
|
|
2980
|
+
r.value(h.map(t, (o) => o.toJSON())),
|
|
2981
2981
|
r.class("bc-input"),
|
|
2982
|
-
n != null ?
|
|
2983
|
-
a != null ?
|
|
2984
|
-
ee((
|
|
2985
|
-
const i = s.PlainDateTime.from(
|
|
2982
|
+
n != null ? A.blur(ee(n)) : H,
|
|
2983
|
+
a != null ? A.change(
|
|
2984
|
+
ee((o) => {
|
|
2985
|
+
const i = s.PlainDateTime.from(o), c = h.get(e.placeholder) ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
2986
2986
|
return a(s.ZonedDateTime.from({ ...i, timeZone: c }));
|
|
2987
2987
|
})
|
|
2988
2988
|
) : H
|
|
2989
2989
|
)
|
|
2990
2990
|
})
|
|
2991
2991
|
);
|
|
2992
|
-
},
|
|
2993
|
-
const { value: t, onBlur: n, onChange: a, after: s, disabled:
|
|
2992
|
+
}, zr = (e) => {
|
|
2993
|
+
const { value: t, onBlur: n, onChange: a, after: s, disabled: o } = e, i = Le(t, o, a);
|
|
2994
2994
|
return he(
|
|
2995
2995
|
(c) => oe({
|
|
2996
2996
|
...e,
|
|
@@ -2998,30 +2998,30 @@ const Ar = Ze({
|
|
|
2998
2998
|
pe(e),
|
|
2999
2999
|
r.value(h.map(t, (u) => u?.toJSON())),
|
|
3000
3000
|
r.class("bc-input"),
|
|
3001
|
-
n != null ?
|
|
3002
|
-
a != null ?
|
|
3001
|
+
n != null ? A.blur(ee(n)) : H,
|
|
3002
|
+
a != null ? A.change(
|
|
3003
3003
|
ee((u) => {
|
|
3004
3004
|
if (u === "") return a(null);
|
|
3005
|
-
const
|
|
3006
|
-
return a(c.ZonedDateTime.from({ ...
|
|
3005
|
+
const l = c.PlainDateTime.from(u), f = h.get(e.placeholder) ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
3006
|
+
return a(c.ZonedDateTime.from({ ...l, timeZone: f }));
|
|
3007
3007
|
})
|
|
3008
3008
|
) : H
|
|
3009
3009
|
),
|
|
3010
3010
|
after: s != null ? N(i, s) : i
|
|
3011
3011
|
})
|
|
3012
3012
|
);
|
|
3013
|
-
},
|
|
3013
|
+
}, Yr = Ze({
|
|
3014
3014
|
inputType: "month",
|
|
3015
3015
|
valueToString: (e) => e.toString(),
|
|
3016
3016
|
parseValue: (e, t) => e.PlainYearMonth.from(t)
|
|
3017
|
-
}),
|
|
3017
|
+
}), Gr = Je({
|
|
3018
3018
|
inputType: "month",
|
|
3019
3019
|
valueToString: (e) => e.toString(),
|
|
3020
3020
|
parseValue: (e, t) => e.PlainYearMonth.from(t)
|
|
3021
|
-
}),
|
|
3021
|
+
}), Zr = (e) => {
|
|
3022
3022
|
const { value: t, onChange: n } = e;
|
|
3023
3023
|
return he(
|
|
3024
|
-
(a) =>
|
|
3024
|
+
(a) => Ae({
|
|
3025
3025
|
...e,
|
|
3026
3026
|
// Map Temporal value to MM-DD string
|
|
3027
3027
|
value: h.map(t, (s) => s.toString()),
|
|
@@ -3031,33 +3031,33 @@ const Ar = Ze({
|
|
|
3031
3031
|
placeholder: "MM-DD"
|
|
3032
3032
|
})
|
|
3033
3033
|
);
|
|
3034
|
-
},
|
|
3035
|
-
const { value: t, onChange: n, after: a, disabled: s } = e,
|
|
3034
|
+
}, Jr = (e) => {
|
|
3035
|
+
const { value: t, onChange: n, after: a, disabled: s } = e, o = Le(t, s, n);
|
|
3036
3036
|
return he(
|
|
3037
|
-
(i) =>
|
|
3037
|
+
(i) => Ae({
|
|
3038
3038
|
...e,
|
|
3039
3039
|
value: h.map(t, (c) => c?.toString() ?? ""),
|
|
3040
3040
|
onChange: n != null ? (c) => n(c === "" ? null : i.PlainMonthDay.from(`--${c}`)) : void 0,
|
|
3041
3041
|
onInput: void 0,
|
|
3042
3042
|
mask: "99-99",
|
|
3043
3043
|
placeholder: "MM-DD",
|
|
3044
|
-
after: a != null ? N(
|
|
3044
|
+
after: a != null ? N(o, a) : o
|
|
3045
3045
|
})
|
|
3046
3046
|
);
|
|
3047
|
-
},
|
|
3047
|
+
}, qr = (e) => {
|
|
3048
3048
|
const { value: t, onChange: n } = e;
|
|
3049
3049
|
return he(
|
|
3050
|
-
(a) =>
|
|
3050
|
+
(a) => Ae({
|
|
3051
3051
|
...e,
|
|
3052
3052
|
value: h.map(t, (s) => s.toString()),
|
|
3053
3053
|
onChange: n ? (s) => n(a.Duration.from(s)) : void 0,
|
|
3054
3054
|
onInput: void 0,
|
|
3055
|
-
...
|
|
3055
|
+
...An(a.Duration.from),
|
|
3056
3056
|
placeholder: "P0DT0H0M0S"
|
|
3057
3057
|
})
|
|
3058
3058
|
);
|
|
3059
3059
|
};
|
|
3060
|
-
function
|
|
3060
|
+
function Kr(e, t, n) {
|
|
3061
3061
|
return Ye(
|
|
3062
3062
|
e.signal,
|
|
3063
3063
|
() => {
|
|
@@ -3070,20 +3070,20 @@ function Zr(e, t, n) {
|
|
|
3070
3070
|
n
|
|
3071
3071
|
);
|
|
3072
3072
|
}
|
|
3073
|
-
const
|
|
3073
|
+
const Qr = {
|
|
3074
3074
|
filling: { type: "filling" },
|
|
3075
3075
|
submitting: { type: "submitting" },
|
|
3076
3076
|
error: (e) => ({ type: "error", error: e }),
|
|
3077
3077
|
success: { type: "success" }
|
|
3078
3078
|
};
|
|
3079
3079
|
class ba extends Cn {
|
|
3080
|
-
constructor(t, n, a, s,
|
|
3081
|
-
super(t, n, a, s,
|
|
3080
|
+
constructor(t, n, a, s, o) {
|
|
3081
|
+
super(t, n, a, s, o);
|
|
3082
3082
|
}
|
|
3083
3083
|
/**
|
|
3084
3084
|
* Validates that the current value is a valid color
|
|
3085
3085
|
*/
|
|
3086
|
-
isValidColor = this.signal.map(
|
|
3086
|
+
isValidColor = this.signal.map(Vn);
|
|
3087
3087
|
/**
|
|
3088
3088
|
* Validates that the current value is a valid hex color
|
|
3089
3089
|
*/
|
|
@@ -3126,8 +3126,8 @@ class ba extends Cn {
|
|
|
3126
3126
|
const s = (i) => {
|
|
3127
3127
|
const c = Math.round(Math.max(0, Math.min(255, i))).toString(16);
|
|
3128
3128
|
return c.length === 1 ? "0" + c : c;
|
|
3129
|
-
},
|
|
3130
|
-
this.change(
|
|
3129
|
+
}, o = `#${s(t)}${s(n)}${s(a)}`;
|
|
3130
|
+
this.change(o);
|
|
3131
3131
|
};
|
|
3132
3132
|
/**
|
|
3133
3133
|
* Gets RGB values from the current color
|
|
@@ -3154,8 +3154,8 @@ class ba extends Cn {
|
|
|
3154
3154
|
case "hex":
|
|
3155
3155
|
return Pe(s) ?? s;
|
|
3156
3156
|
case "rgb":
|
|
3157
|
-
const
|
|
3158
|
-
return
|
|
3157
|
+
const o = this.getRgb();
|
|
3158
|
+
return o ? `rgb(${o.r}, ${o.g}, ${o.b})` : s;
|
|
3159
3159
|
case "hsl":
|
|
3160
3160
|
return s;
|
|
3161
3161
|
default:
|
|
@@ -3165,7 +3165,7 @@ class ba extends Cn {
|
|
|
3165
3165
|
return this.transform(n, a, [`format-${t}`]);
|
|
3166
3166
|
};
|
|
3167
3167
|
}
|
|
3168
|
-
function
|
|
3168
|
+
function Xr(e) {
|
|
3169
3169
|
return new ba(
|
|
3170
3170
|
e.path,
|
|
3171
3171
|
e.change,
|
|
@@ -3174,7 +3174,7 @@ function Kr(e) {
|
|
|
3174
3174
|
{ disabled: e.disabled }
|
|
3175
3175
|
);
|
|
3176
3176
|
}
|
|
3177
|
-
function
|
|
3177
|
+
function es(e) {
|
|
3178
3178
|
return {
|
|
3179
3179
|
id: e.name,
|
|
3180
3180
|
disabled: e.disabled,
|
|
@@ -3184,14 +3184,14 @@ function qr(e) {
|
|
|
3184
3184
|
onInput: e.setColor
|
|
3185
3185
|
};
|
|
3186
3186
|
}
|
|
3187
|
-
function
|
|
3187
|
+
function ts({
|
|
3188
3188
|
locales: e,
|
|
3189
3189
|
onChange: t,
|
|
3190
3190
|
updateLocale: n = !0
|
|
3191
3191
|
}) {
|
|
3192
3192
|
return ne(
|
|
3193
3193
|
le,
|
|
3194
|
-
(a) => ne(it, ({ locale: s, setLocale:
|
|
3194
|
+
(a) => ne(it, ({ locale: s, setLocale: o }) => ut({
|
|
3195
3195
|
layout: "horizontal",
|
|
3196
3196
|
content: Yt(
|
|
3197
3197
|
r.class("bc-group--align-center bc-group--gap-2"),
|
|
@@ -3206,12 +3206,12 @@ function Qr({
|
|
|
3206
3206
|
e,
|
|
3207
3207
|
(i) => i.map((c) => {
|
|
3208
3208
|
let u = c.name;
|
|
3209
|
-
return c.nativeName != null && c.nativeName !== c.name && (u += ` (${c.nativeName})`),
|
|
3209
|
+
return c.nativeName != null && c.nativeName !== c.name && (u += ` (${c.nativeName})`), xe.value(c.code, u);
|
|
3210
3210
|
})
|
|
3211
3211
|
),
|
|
3212
3212
|
value: s,
|
|
3213
3213
|
onChange: (i) => {
|
|
3214
|
-
n &&
|
|
3214
|
+
n && o(i), t?.(i);
|
|
3215
3215
|
}
|
|
3216
3216
|
})
|
|
3217
3217
|
)
|
|
@@ -3223,8 +3223,8 @@ const ga = () => ne(
|
|
|
3223
3223
|
({ direction: e }) => lt("body", r.class(e.map((t) => `b-${t}`)))
|
|
3224
3224
|
);
|
|
3225
3225
|
function ma(e, t, n, a, s) {
|
|
3226
|
-
const
|
|
3227
|
-
return e &&
|
|
3226
|
+
const o = ["bc-notification"];
|
|
3227
|
+
return e && o.push("bc-notification--bordered"), t && o.push("bc-notification--has-icon"), n && o.push("bc-notification--closable"), a && o.push("bc-notification--loading"), s && s.length > 0 && o.push(s), o.join(" ");
|
|
3228
3228
|
}
|
|
3229
3229
|
function ha(e, t) {
|
|
3230
3230
|
return [
|
|
@@ -3238,11 +3238,11 @@ function va({
|
|
|
3238
3238
|
withBorder: n = !1,
|
|
3239
3239
|
color: a = "primary",
|
|
3240
3240
|
radius: s = "md",
|
|
3241
|
-
title:
|
|
3241
|
+
title: o,
|
|
3242
3242
|
icon: i,
|
|
3243
3243
|
onClose: c,
|
|
3244
3244
|
class: u
|
|
3245
|
-
} = {}, ...
|
|
3245
|
+
} = {}, ...l) {
|
|
3246
3246
|
const f = h.map(i, (g) => g != null);
|
|
3247
3247
|
return d.section(
|
|
3248
3248
|
r.class(
|
|
@@ -3274,7 +3274,7 @@ function va({
|
|
|
3274
3274
|
),
|
|
3275
3275
|
M.live("polite"),
|
|
3276
3276
|
M.busy(e),
|
|
3277
|
-
|
|
3277
|
+
K(
|
|
3278
3278
|
e,
|
|
3279
3279
|
() => d.div(
|
|
3280
3280
|
r.class("bc-notification__visual bc-notification__loader"),
|
|
@@ -3285,7 +3285,7 @@ function va({
|
|
|
3285
3285
|
accessibility: "decorative"
|
|
3286
3286
|
})
|
|
3287
3287
|
),
|
|
3288
|
-
() =>
|
|
3288
|
+
() => K(
|
|
3289
3289
|
f,
|
|
3290
3290
|
() => d.div(
|
|
3291
3291
|
r.class("bc-notification__visual bc-notification__icon"),
|
|
@@ -3303,10 +3303,10 @@ function va({
|
|
|
3303
3303
|
),
|
|
3304
3304
|
d.div(
|
|
3305
3305
|
r.class("bc-notification__body"),
|
|
3306
|
-
|
|
3307
|
-
d.div(r.class("bc-notification__content"), ...
|
|
3306
|
+
o != null ? d.div(r.class("bc-notification__title"), o) : null,
|
|
3307
|
+
d.div(r.class("bc-notification__content"), ...l)
|
|
3308
3308
|
),
|
|
3309
|
-
|
|
3309
|
+
K(
|
|
3310
3310
|
t,
|
|
3311
3311
|
() => d.div(
|
|
3312
3312
|
r.class("bc-notification__meta"),
|
|
@@ -3349,11 +3349,11 @@ const wa = new ya(), un = {
|
|
|
3349
3349
|
const t = G(0), n = [];
|
|
3350
3350
|
function a(u) {
|
|
3351
3351
|
return n.push(u), () => {
|
|
3352
|
-
const
|
|
3353
|
-
|
|
3352
|
+
const l = n.lastIndexOf(u);
|
|
3353
|
+
l >= 0 && n.splice(l, 1);
|
|
3354
3354
|
};
|
|
3355
3355
|
}
|
|
3356
|
-
const s = [],
|
|
3356
|
+
const s = [], o = ({ dismissAfter: u, onClose: l, animation: f = { fade: !0 }, ...g }, ...k) => {
|
|
3357
3357
|
t.update((v) => v + 1);
|
|
3358
3358
|
const m = u != null ? typeof u == "number" ? Bn(u * 1e3) : u : void 0, w = {
|
|
3359
3359
|
animation: f,
|
|
@@ -3368,18 +3368,18 @@ const wa = new ya(), un = {
|
|
|
3368
3368
|
title: g.title ?? H,
|
|
3369
3369
|
icon: h.toSignal(g.icon),
|
|
3370
3370
|
children: k,
|
|
3371
|
-
listenRequestClose: (v) => (s.push(v),
|
|
3371
|
+
listenRequestClose: (v) => (s.push(v), l?.(), () => {
|
|
3372
3372
|
}),
|
|
3373
3373
|
delayedClose: m
|
|
3374
3374
|
};
|
|
3375
3375
|
n.forEach((v) => v(w));
|
|
3376
3376
|
}, i = () => {
|
|
3377
3377
|
s.forEach((u) => u()), s.length = 0;
|
|
3378
|
-
}, c = wa.attach({ show:
|
|
3378
|
+
}, c = wa.attach({ show: o, clear: i });
|
|
3379
3379
|
return {
|
|
3380
3380
|
value: {
|
|
3381
3381
|
activeNotifications: t,
|
|
3382
|
-
show:
|
|
3382
|
+
show: o,
|
|
3383
3383
|
clear: i,
|
|
3384
3384
|
position: e,
|
|
3385
3385
|
listenOnShow: a
|
|
@@ -3397,7 +3397,7 @@ function xa() {
|
|
|
3397
3397
|
mn(
|
|
3398
3398
|
(n) => re(
|
|
3399
3399
|
e((a) => {
|
|
3400
|
-
const s = [],
|
|
3400
|
+
const s = [], o = d.div(
|
|
3401
3401
|
In(
|
|
3402
3402
|
{
|
|
3403
3403
|
animation: a.animation,
|
|
@@ -3421,48 +3421,48 @@ function xa() {
|
|
|
3421
3421
|
))
|
|
3422
3422
|
)
|
|
3423
3423
|
);
|
|
3424
|
-
s.push(hn(
|
|
3424
|
+
s.push(hn(o, n));
|
|
3425
3425
|
})
|
|
3426
3426
|
)
|
|
3427
3427
|
)
|
|
3428
3428
|
));
|
|
3429
3429
|
}
|
|
3430
|
-
function
|
|
3430
|
+
function ns({
|
|
3431
3431
|
includeAuthI18n: e = !1,
|
|
3432
3432
|
enableAppearance: t = !0,
|
|
3433
3433
|
defaultAppearance: n = "system",
|
|
3434
3434
|
appearancePreferenceKey: a = "bui-appearance",
|
|
3435
3435
|
includeNotifications: s = !0,
|
|
3436
|
-
notificationPosition:
|
|
3436
|
+
notificationPosition: o = "bottom-end"
|
|
3437
3437
|
}, ...i) {
|
|
3438
3438
|
return vn(({ set: c, use: u }) => {
|
|
3439
3439
|
c(Be, {}), c(it, {}), c(le, {}), c(zt, {
|
|
3440
3440
|
defaultAppearance: t ? n : "light",
|
|
3441
3441
|
appearancePreferenceKey: a
|
|
3442
|
-
}), s && c(un, { position:
|
|
3443
|
-
const
|
|
3442
|
+
}), s && c(un, { position: o }), kn.attach(u(Be));
|
|
3443
|
+
const l = N(
|
|
3444
3444
|
t ? _n() : H,
|
|
3445
3445
|
ga(),
|
|
3446
3446
|
s ? xa() : H,
|
|
3447
3447
|
...i
|
|
3448
3448
|
);
|
|
3449
3449
|
return e ? yn(
|
|
3450
|
-
() => import("./translations-
|
|
3451
|
-
({ AuthI18n: f }) => Ot(f, {}, () =>
|
|
3452
|
-
) :
|
|
3450
|
+
() => import("./translations-ConAsIH1.js"),
|
|
3451
|
+
({ AuthI18n: f }) => Ot(f, {}, () => l)
|
|
3452
|
+
) : l;
|
|
3453
3453
|
});
|
|
3454
3454
|
}
|
|
3455
|
-
function
|
|
3455
|
+
function as({
|
|
3456
3456
|
content: e,
|
|
3457
3457
|
toolbar: t = !0,
|
|
3458
3458
|
page: n,
|
|
3459
3459
|
zoom: a,
|
|
3460
3460
|
view: s,
|
|
3461
|
-
pagemode:
|
|
3461
|
+
pagemode: o,
|
|
3462
3462
|
scrollbar: i = !0,
|
|
3463
3463
|
navpanes: c = !0,
|
|
3464
3464
|
search: u,
|
|
3465
|
-
nameddest:
|
|
3465
|
+
nameddest: l,
|
|
3466
3466
|
viewrect: f,
|
|
3467
3467
|
highlight: g,
|
|
3468
3468
|
allowfullscreen: k = !1
|
|
@@ -3493,17 +3493,17 @@ function es({
|
|
|
3493
3493
|
n,
|
|
3494
3494
|
a,
|
|
3495
3495
|
s,
|
|
3496
|
-
|
|
3496
|
+
o,
|
|
3497
3497
|
i,
|
|
3498
3498
|
c,
|
|
3499
3499
|
u,
|
|
3500
|
-
|
|
3500
|
+
l,
|
|
3501
3501
|
f,
|
|
3502
3502
|
g
|
|
3503
|
-
)((v, x, b, p, y, T, _, $, P, C,
|
|
3503
|
+
)((v, x, b, p, y, T, _, $, P, C, V, E) => {
|
|
3504
3504
|
if (v == null) return null;
|
|
3505
3505
|
const R = [];
|
|
3506
|
-
x === !1 && R.push("toolbar=0"), b != null && b > 0 && R.push(`page=${b}`), p != null && p > 0 && R.push(`zoom=${p}`), y != null && R.push(`view=${y}`), T != null && R.push(`pagemode=${T}`), _ === !1 && R.push("scrollbar=0"), $ === !1 && R.push("navpanes=0"), P != null && R.push(`search=${encodeURIComponent(P)}`), C != null && R.push(`nameddest=${encodeURIComponent(C)}`),
|
|
3506
|
+
x === !1 && R.push("toolbar=0"), b != null && b > 0 && R.push(`page=${b}`), p != null && p > 0 && R.push(`zoom=${p}`), y != null && R.push(`view=${y}`), T != null && R.push(`pagemode=${T}`), _ === !1 && R.push("scrollbar=0"), $ === !1 && R.push("navpanes=0"), P != null && R.push(`search=${encodeURIComponent(P)}`), C != null && R.push(`nameddest=${encodeURIComponent(C)}`), V != null && R.push(`viewrect=${encodeURIComponent(V)}`), E != null && R.push(`highlight=${encodeURIComponent(E)}`);
|
|
3507
3507
|
const j = R.join("&");
|
|
3508
3508
|
return j ? `${v}#${j}` : v;
|
|
3509
3509
|
});
|
|
@@ -3535,17 +3535,17 @@ function es({
|
|
|
3535
3535
|
)
|
|
3536
3536
|
);
|
|
3537
3537
|
}
|
|
3538
|
-
function
|
|
3538
|
+
function rs({
|
|
3539
3539
|
content: e,
|
|
3540
3540
|
page: t,
|
|
3541
3541
|
zoom: n,
|
|
3542
3542
|
pagemode: a,
|
|
3543
3543
|
nameddest: s,
|
|
3544
|
-
search:
|
|
3544
|
+
search: o,
|
|
3545
3545
|
textLayerMode: i,
|
|
3546
3546
|
sidebarViewOnLoad: c,
|
|
3547
3547
|
scrollModeOnLoad: u,
|
|
3548
|
-
spreadModeOnLoad:
|
|
3548
|
+
spreadModeOnLoad: l,
|
|
3549
3549
|
enableScripting: f,
|
|
3550
3550
|
enablePrinting: g,
|
|
3551
3551
|
viewerUrl: k = null,
|
|
@@ -3574,19 +3574,19 @@ function ts({
|
|
|
3574
3574
|
n,
|
|
3575
3575
|
a,
|
|
3576
3576
|
s,
|
|
3577
|
-
|
|
3577
|
+
o,
|
|
3578
3578
|
i,
|
|
3579
3579
|
c,
|
|
3580
3580
|
u,
|
|
3581
|
-
|
|
3581
|
+
l,
|
|
3582
3582
|
f,
|
|
3583
3583
|
g
|
|
3584
|
-
)((b, p, y, T, _, $, P, C,
|
|
3584
|
+
)((b, p, y, T, _, $, P, C, V, E, R, j, J) => {
|
|
3585
3585
|
if (b == null) return null;
|
|
3586
3586
|
const Y = p ?? "https://mozilla.github.io/pdf.js/web/viewer.html", F = new URLSearchParams();
|
|
3587
3587
|
F.set("file", encodeURIComponent(b));
|
|
3588
3588
|
const Q = [];
|
|
3589
|
-
y != null && y > 0 && Q.push(`page=${y}`), T != null && (typeof T == "string" ? Q.push(`zoom=${T}`) : Q.push(`zoom=${T}`)), _ != null && Q.push(`pagemode=${_}`), $ != null && Q.push(`nameddest=${encodeURIComponent($)}`), P != null && Q.push(`search=${encodeURIComponent(P)}`), C != null && Q.push(`textLayer=${C}`),
|
|
3589
|
+
y != null && y > 0 && Q.push(`page=${y}`), T != null && (typeof T == "string" ? Q.push(`zoom=${T}`) : Q.push(`zoom=${T}`)), _ != null && Q.push(`pagemode=${_}`), $ != null && Q.push(`nameddest=${encodeURIComponent($)}`), P != null && Q.push(`search=${encodeURIComponent(P)}`), C != null && Q.push(`textLayer=${C}`), V != null && Q.push(`sidebar=${V}`), E != null && Q.push(`scrollMode=${E}`), R != null && Q.push(`spreadMode=${R}`), j != null && Q.push(`enableScripting=${j ? "1" : "0"}`), J != null && Q.push(`enablePrinting=${J ? "1" : "0"}`);
|
|
3590
3590
|
const ie = Q.length > 0 ? `#${Q.join("&")}` : "";
|
|
3591
3591
|
return `${Y}?${F.toString()}${ie}`;
|
|
3592
3592
|
});
|
|
@@ -3608,7 +3608,7 @@ function ts({
|
|
|
3608
3608
|
)
|
|
3609
3609
|
);
|
|
3610
3610
|
}
|
|
3611
|
-
const
|
|
3611
|
+
const ss = ({ id: e, css: t }) => lt("head", d.style(r.id(e), r.innerHTML(t)));
|
|
3612
3612
|
function be(e, t) {
|
|
3613
3613
|
return t == null ? null : d.meta(
|
|
3614
3614
|
r.name(e),
|
|
@@ -3622,16 +3622,16 @@ function z(e, t) {
|
|
|
3622
3622
|
);
|
|
3623
3623
|
}
|
|
3624
3624
|
function He(e, t) {
|
|
3625
|
-
return t == null ? null :
|
|
3625
|
+
return t == null ? null : _e(t, (n) => z(e, n));
|
|
3626
3626
|
}
|
|
3627
3627
|
function ka(e, t) {
|
|
3628
|
-
return t == null ? null :
|
|
3628
|
+
return t == null ? null : K(
|
|
3629
3629
|
h.map(t, (n) => Array.isArray(n)),
|
|
3630
3630
|
() => He(e, t),
|
|
3631
3631
|
() => z(e, t)
|
|
3632
3632
|
);
|
|
3633
3633
|
}
|
|
3634
|
-
const
|
|
3634
|
+
const ls = (e) => {
|
|
3635
3635
|
const t = [];
|
|
3636
3636
|
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) {
|
|
3637
3637
|
const n = He("og:locale:alternate", e.localeAlternate);
|
|
@@ -3646,18 +3646,18 @@ const as = (e) => {
|
|
|
3646
3646
|
n != null && t.push(n);
|
|
3647
3647
|
}
|
|
3648
3648
|
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(be("twitter:card", e.twitterCard)), t.push(be("twitter:site", e.twitterSite)), t.push(be("twitter:creator", e.twitterCreator)), t.push(
|
|
3649
|
-
be("twitter:title",
|
|
3649
|
+
be("twitter:title", Te(e.twitterTitle, e.title))
|
|
3650
3650
|
), t.push(
|
|
3651
3651
|
be(
|
|
3652
3652
|
"twitter:description",
|
|
3653
|
-
|
|
3653
|
+
Te(e.twitterDescription, e.description)
|
|
3654
3654
|
)
|
|
3655
3655
|
), t.push(
|
|
3656
|
-
be("twitter:image",
|
|
3656
|
+
be("twitter:image", Te(e.twitterImage, e.image))
|
|
3657
3657
|
), t.push(
|
|
3658
3658
|
be(
|
|
3659
3659
|
"twitter:image:alt",
|
|
3660
|
-
|
|
3660
|
+
Te(e.twitterImageAlt, e.imageAlt)
|
|
3661
3661
|
)
|
|
3662
3662
|
), e.canonical != null && h.get(e.canonical) != null && t.push(d.link(r.rel("canonical"), r.href(e.canonical))), t.push(be("robots", e.robots)), t.push(be("keywords", e.keywords)), t.push(be("author", e.metaAuthor)), lt("head", t.filter((n) => n != null).flat());
|
|
3663
3663
|
}, pt = ({
|
|
@@ -3689,7 +3689,7 @@ function Dt(e, t) {
|
|
|
3689
3689
|
return n.join(" ");
|
|
3690
3690
|
}
|
|
3691
3691
|
function Lt(e) {
|
|
3692
|
-
const t =
|
|
3692
|
+
const t = we(e, "light"), n = we(e, "dark");
|
|
3693
3693
|
return [
|
|
3694
3694
|
`--link-color: ${t}`,
|
|
3695
3695
|
`--link-color-dark: ${n}`,
|
|
@@ -3703,14 +3703,14 @@ function Sa({
|
|
|
3703
3703
|
color: n = "primary",
|
|
3704
3704
|
colorDisabled: a = "base",
|
|
3705
3705
|
disabled: s = !1,
|
|
3706
|
-
viewTransition:
|
|
3706
|
+
viewTransition: o = !0,
|
|
3707
3707
|
state: i,
|
|
3708
3708
|
scroll: c,
|
|
3709
3709
|
replace: u,
|
|
3710
|
-
target:
|
|
3710
|
+
target: l,
|
|
3711
3711
|
rel: f
|
|
3712
3712
|
}, ...g) {
|
|
3713
|
-
return
|
|
3713
|
+
return K(
|
|
3714
3714
|
s,
|
|
3715
3715
|
() => d.span(
|
|
3716
3716
|
r.class(
|
|
@@ -3730,7 +3730,7 @@ function Sa({
|
|
|
3730
3730
|
{
|
|
3731
3731
|
href: e,
|
|
3732
3732
|
...pt({
|
|
3733
|
-
viewTransition:
|
|
3733
|
+
viewTransition: o,
|
|
3734
3734
|
state: i,
|
|
3735
3735
|
scroll: c,
|
|
3736
3736
|
replace: u
|
|
@@ -3745,7 +3745,7 @@ function Sa({
|
|
|
3745
3745
|
r.style(
|
|
3746
3746
|
I(n)((k) => Lt(k ?? "primary"))
|
|
3747
3747
|
),
|
|
3748
|
-
|
|
3748
|
+
l ? r.target(l) : null,
|
|
3749
3749
|
f ? r.rel(f) : null,
|
|
3750
3750
|
...g
|
|
3751
3751
|
)
|
|
@@ -3760,21 +3760,21 @@ const Ca = (e) => e ? e.startsWith("#") ? e : `#${e}` : "", Ia = (e) => {
|
|
|
3760
3760
|
return e instanceof URLSearchParams ? new URLSearchParams(e) : new URLSearchParams(e);
|
|
3761
3761
|
};
|
|
3762
3762
|
function Ta(e, t, n) {
|
|
3763
|
-
const a = Ia(e.search), s = a.toString(),
|
|
3763
|
+
const a = Ia(e.search), s = a.toString(), o = s ? `?${s}` : "", i = Ca(e.hash);
|
|
3764
3764
|
switch (n) {
|
|
3765
3765
|
case "exact":
|
|
3766
|
-
return e.pathname +
|
|
3766
|
+
return e.pathname + o + i === t;
|
|
3767
3767
|
case "prefix":
|
|
3768
|
-
return e.pathname.startsWith(t) || (e.pathname +
|
|
3768
|
+
return e.pathname.startsWith(t) || (e.pathname + o).startsWith(t);
|
|
3769
3769
|
case "params":
|
|
3770
3770
|
try {
|
|
3771
3771
|
const c = typeof document < "u" && document.baseURI ? document.baseURI : "http://localhost/", u = new URL(t, c);
|
|
3772
3772
|
if (e.pathname !== u.pathname)
|
|
3773
3773
|
return !1;
|
|
3774
|
-
const
|
|
3774
|
+
const l = Array.from(
|
|
3775
3775
|
new URLSearchParams(u.search).entries()
|
|
3776
3776
|
).sort(), f = Array.from(a.entries()).sort();
|
|
3777
|
-
return
|
|
3777
|
+
return l.length !== f.length ? !1 : l.every(([g, k], m) => {
|
|
3778
3778
|
const [w, v] = f[m];
|
|
3779
3779
|
return g === w && k === v;
|
|
3780
3780
|
});
|
|
@@ -3790,19 +3790,19 @@ function ft(e, t) {
|
|
|
3790
3790
|
(n) => (a) => Ta(a, n, t)
|
|
3791
3791
|
);
|
|
3792
3792
|
}
|
|
3793
|
-
function
|
|
3793
|
+
function os({
|
|
3794
3794
|
href: e,
|
|
3795
3795
|
matchMode: t = "exact",
|
|
3796
3796
|
disableWhenActive: n = !0,
|
|
3797
3797
|
...a
|
|
3798
3798
|
}, ...s) {
|
|
3799
|
-
return ne(Be, (
|
|
3800
|
-
const i =
|
|
3799
|
+
return ne(Be, (o) => {
|
|
3800
|
+
const i = o.matchSignal(
|
|
3801
3801
|
ft(e, t)
|
|
3802
3802
|
), c = I(
|
|
3803
3803
|
i,
|
|
3804
3804
|
n
|
|
3805
|
-
)((u,
|
|
3805
|
+
)((u, l) => l ?? !0 ? u : !1);
|
|
3806
3806
|
return Sa(
|
|
3807
3807
|
{
|
|
3808
3808
|
...a,
|
|
@@ -3813,17 +3813,17 @@ function rs({
|
|
|
3813
3813
|
);
|
|
3814
3814
|
});
|
|
3815
3815
|
}
|
|
3816
|
-
function
|
|
3816
|
+
function is({
|
|
3817
3817
|
href: e,
|
|
3818
3818
|
viewTransition: t = !0,
|
|
3819
3819
|
state: n,
|
|
3820
3820
|
scroll: a,
|
|
3821
3821
|
replace: s,
|
|
3822
|
-
target:
|
|
3822
|
+
target: o,
|
|
3823
3823
|
rel: i,
|
|
3824
3824
|
matchMode: c,
|
|
3825
3825
|
disableWhenActive: u,
|
|
3826
|
-
variant:
|
|
3826
|
+
variant: l = "filled",
|
|
3827
3827
|
size: f = "md",
|
|
3828
3828
|
color: g = "base",
|
|
3829
3829
|
roundedness: k = "sm",
|
|
@@ -3837,16 +3837,16 @@ function ss({
|
|
|
3837
3837
|
m,
|
|
3838
3838
|
b
|
|
3839
3839
|
)((y, T) => y || T);
|
|
3840
|
-
return
|
|
3840
|
+
return At(
|
|
3841
3841
|
{
|
|
3842
3842
|
href: e,
|
|
3843
3843
|
viewTransition: t,
|
|
3844
3844
|
state: n,
|
|
3845
3845
|
scroll: a,
|
|
3846
3846
|
replace: s,
|
|
3847
|
-
target:
|
|
3847
|
+
target: o,
|
|
3848
3848
|
rel: i,
|
|
3849
|
-
variant:
|
|
3849
|
+
variant: l,
|
|
3850
3850
|
size: f,
|
|
3851
3851
|
color: g,
|
|
3852
3852
|
roundedness: k,
|
|
@@ -3854,16 +3854,16 @@ function ss({
|
|
|
3854
3854
|
},
|
|
3855
3855
|
...w
|
|
3856
3856
|
);
|
|
3857
|
-
}) :
|
|
3857
|
+
}) : At(
|
|
3858
3858
|
{
|
|
3859
3859
|
href: e,
|
|
3860
3860
|
viewTransition: t,
|
|
3861
3861
|
state: n,
|
|
3862
3862
|
scroll: a,
|
|
3863
3863
|
replace: s,
|
|
3864
|
-
target:
|
|
3864
|
+
target: o,
|
|
3865
3865
|
rel: i,
|
|
3866
|
-
variant:
|
|
3866
|
+
variant: l,
|
|
3867
3867
|
size: f,
|
|
3868
3868
|
color: g,
|
|
3869
3869
|
roundedness: k,
|
|
@@ -3872,23 +3872,23 @@ function ss({
|
|
|
3872
3872
|
...w
|
|
3873
3873
|
);
|
|
3874
3874
|
}
|
|
3875
|
-
function
|
|
3875
|
+
function At({
|
|
3876
3876
|
href: e,
|
|
3877
3877
|
viewTransition: t,
|
|
3878
3878
|
state: n,
|
|
3879
3879
|
scroll: a,
|
|
3880
3880
|
replace: s,
|
|
3881
|
-
target:
|
|
3881
|
+
target: o,
|
|
3882
3882
|
rel: i,
|
|
3883
3883
|
variant: c = "default",
|
|
3884
3884
|
size: u = "md",
|
|
3885
|
-
color:
|
|
3885
|
+
color: l = "base",
|
|
3886
3886
|
roundedness: f = "sm",
|
|
3887
3887
|
disabled: g = !1,
|
|
3888
3888
|
fullWidth: k = !1,
|
|
3889
3889
|
loading: m = !1
|
|
3890
3890
|
}, ...w) {
|
|
3891
|
-
return
|
|
3891
|
+
return K(
|
|
3892
3892
|
g ?? !1,
|
|
3893
3893
|
() => d.span(
|
|
3894
3894
|
r.class(
|
|
@@ -3902,7 +3902,7 @@ function Vt({
|
|
|
3902
3902
|
r.style(
|
|
3903
3903
|
I(
|
|
3904
3904
|
c,
|
|
3905
|
-
|
|
3905
|
+
l,
|
|
3906
3906
|
g
|
|
3907
3907
|
)(
|
|
3908
3908
|
(v, x, b) => wt(
|
|
@@ -3935,7 +3935,7 @@ function Vt({
|
|
|
3935
3935
|
r.style(
|
|
3936
3936
|
I(
|
|
3937
3937
|
c,
|
|
3938
|
-
|
|
3938
|
+
l,
|
|
3939
3939
|
g
|
|
3940
3940
|
)(
|
|
3941
3941
|
(v, x, b) => wt(
|
|
@@ -3945,7 +3945,7 @@ function Vt({
|
|
|
3945
3945
|
)
|
|
3946
3946
|
)
|
|
3947
3947
|
),
|
|
3948
|
-
|
|
3948
|
+
o ? r.target(o) : null,
|
|
3949
3949
|
i ? r.rel(i) : null,
|
|
3950
3950
|
...w
|
|
3951
3951
|
)
|
|
@@ -3961,7 +3961,7 @@ const _a = {
|
|
|
3961
3961
|
}
|
|
3962
3962
|
})
|
|
3963
3963
|
};
|
|
3964
|
-
function
|
|
3964
|
+
function cs({ backgroundMode: e = "light" }, ...t) {
|
|
3965
3965
|
return Ot(
|
|
3966
3966
|
_a,
|
|
3967
3967
|
h.map(
|
|
@@ -3982,7 +3982,7 @@ function ls({ backgroundMode: e = "light" }, ...t) {
|
|
|
3982
3982
|
)
|
|
3983
3983
|
);
|
|
3984
3984
|
}
|
|
3985
|
-
function
|
|
3985
|
+
function Vt({ rail: e, header: t }, ...n) {
|
|
3986
3986
|
return dt(
|
|
3987
3987
|
t != null ? d.div(r.class("bc-sidebar-group__header"), t) : null,
|
|
3988
3988
|
d.div(
|
|
@@ -4012,7 +4012,7 @@ function Pa(...e) {
|
|
|
4012
4012
|
function Da(e, ...t) {
|
|
4013
4013
|
return d.button(
|
|
4014
4014
|
r.type("button"),
|
|
4015
|
-
|
|
4015
|
+
A.click(e.onClick),
|
|
4016
4016
|
e.ariaExpanded != null ? M.expanded(
|
|
4017
4017
|
h.map(
|
|
4018
4018
|
e.ariaExpanded,
|
|
@@ -4039,7 +4039,7 @@ function La(e) {
|
|
|
4039
4039
|
d.button(
|
|
4040
4040
|
r.type("button"),
|
|
4041
4041
|
r.class("bc-sidebar-link--action"),
|
|
4042
|
-
|
|
4042
|
+
A.click((n, a) => {
|
|
4043
4043
|
e.action?.onClick?.(a);
|
|
4044
4044
|
}),
|
|
4045
4045
|
X({ icon: e.action?.icon })
|
|
@@ -4052,25 +4052,25 @@ function La(e) {
|
|
|
4052
4052
|
includeHash: !1
|
|
4053
4053
|
}
|
|
4054
4054
|
);
|
|
4055
|
-
return
|
|
4055
|
+
return K(
|
|
4056
4056
|
a,
|
|
4057
4057
|
() => Pa(...t),
|
|
4058
4058
|
() => $a(e, ...t)
|
|
4059
4059
|
);
|
|
4060
4060
|
});
|
|
4061
4061
|
}
|
|
4062
|
-
function
|
|
4062
|
+
function us({
|
|
4063
4063
|
rail: e = !0,
|
|
4064
4064
|
icon: t,
|
|
4065
4065
|
header: n,
|
|
4066
4066
|
startOpen: a = !0
|
|
4067
4067
|
}, ...s) {
|
|
4068
|
-
const
|
|
4069
|
-
return
|
|
4068
|
+
const o = h.deriveProp(a), i = me("sidebar-group"), c = `${i}-content`;
|
|
4069
|
+
return Vt(
|
|
4070
4070
|
{},
|
|
4071
4071
|
r.class("bc-sidebar-group-collapsible"),
|
|
4072
4072
|
r.class(
|
|
4073
|
-
|
|
4073
|
+
o.map(
|
|
4074
4074
|
(u) => u ? "bc-sidebar-group-collapsible--open" : "bc-sidebar-group-collapsible--closed"
|
|
4075
4075
|
)
|
|
4076
4076
|
),
|
|
@@ -4079,9 +4079,9 @@ function os({
|
|
|
4079
4079
|
r.id(i),
|
|
4080
4080
|
La({
|
|
4081
4081
|
icon: t,
|
|
4082
|
-
onClick: () =>
|
|
4082
|
+
onClick: () => o.update((u) => !u),
|
|
4083
4083
|
// Add ARIA attributes for the toggle button
|
|
4084
|
-
ariaExpanded:
|
|
4084
|
+
ariaExpanded: o,
|
|
4085
4085
|
ariaControls: c,
|
|
4086
4086
|
right: d.span(
|
|
4087
4087
|
r.class("bc-sidebar-group-collapsible-indicator"),
|
|
@@ -4089,26 +4089,26 @@ function os({
|
|
|
4089
4089
|
),
|
|
4090
4090
|
content: n
|
|
4091
4091
|
}),
|
|
4092
|
-
|
|
4092
|
+
Vt({ rail: e }, r.id(c), aa({ open: o }, ...s))
|
|
4093
4093
|
);
|
|
4094
4094
|
}
|
|
4095
|
-
function
|
|
4095
|
+
function ds() {
|
|
4096
4096
|
return d.hr(r.class("bc-sidebar-separator"));
|
|
4097
4097
|
}
|
|
4098
|
-
function
|
|
4098
|
+
function Aa(e, t, n, a) {
|
|
4099
4099
|
const s = ["bc-tabs", `bc-tabs--${e}`, `bc-tabs--${t}`];
|
|
4100
4100
|
return n && s.push("bc-tabs--disabled"), a != null && a !== "default" && s.push(`bc-tabs--variant-${a}`), s.join(" ");
|
|
4101
4101
|
}
|
|
4102
|
-
function
|
|
4102
|
+
function Va(e, t) {
|
|
4103
4103
|
if (e !== "filled") return "";
|
|
4104
4104
|
const n = /* @__PURE__ */ new Map(), a = ce(t, "solid", "light"), s = ce(t, "solid", "dark");
|
|
4105
4105
|
n.set("--tabs-filled-inactive-bg", a.backgroundColor), n.set("--tabs-filled-inactive-text", "var(--color-white)");
|
|
4106
|
-
const
|
|
4107
|
-
n.set("--tabs-filled-inactive-bg-hover",
|
|
4106
|
+
const o = se(t, "solid", "light");
|
|
4107
|
+
n.set("--tabs-filled-inactive-bg-hover", o.backgroundColor);
|
|
4108
4108
|
const i = se(t, "solid", "dark");
|
|
4109
4109
|
n.set("--tabs-filled-inactive-bg-dark-hover", i.backgroundColor), n.set("--tabs-filled-inactive-bg-dark", s.backgroundColor), n.set("--tabs-filled-inactive-text-dark", s.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)");
|
|
4110
4110
|
const c = t === "white" || t === "black" || t === "transparent" ? "var(--color-white)" : ct(t, 400);
|
|
4111
|
-
return n.set("--tabs-filled-active-text-dark", c), Array.from(n.entries()).map(([u,
|
|
4111
|
+
return n.set("--tabs-filled-active-text-dark", c), Array.from(n.entries()).map(([u, l]) => `${u}: ${l}`).join("; ");
|
|
4112
4112
|
}
|
|
4113
4113
|
function Ba(e, t, n) {
|
|
4114
4114
|
const a = ["bc-tab", `bc-tab--${e}`];
|
|
@@ -4118,26 +4118,26 @@ function Ue(e, t, n) {
|
|
|
4118
4118
|
const a = t.length;
|
|
4119
4119
|
let s = e + n;
|
|
4120
4120
|
s >= a ? s = 0 : s < 0 && (s = a - 1);
|
|
4121
|
-
let
|
|
4122
|
-
for (;
|
|
4121
|
+
let o = 0;
|
|
4122
|
+
for (; o < a; ) {
|
|
4123
4123
|
const i = t[s];
|
|
4124
4124
|
if (!h.get(i.disabled ?? !1))
|
|
4125
4125
|
return s;
|
|
4126
|
-
s += n, s >= a ? s = 0 : s < 0 && (s = a - 1),
|
|
4126
|
+
s += n, s >= a ? s = 0 : s < 0 && (s = a - 1), o++;
|
|
4127
4127
|
}
|
|
4128
4128
|
return e;
|
|
4129
4129
|
}
|
|
4130
|
-
function
|
|
4130
|
+
function ps(e) {
|
|
4131
4131
|
const {
|
|
4132
4132
|
items: t,
|
|
4133
4133
|
value: n,
|
|
4134
4134
|
onChange: a,
|
|
4135
4135
|
size: s = "md",
|
|
4136
|
-
variant:
|
|
4136
|
+
variant: o = "default",
|
|
4137
4137
|
color: i = "primary",
|
|
4138
4138
|
disabled: c = !1,
|
|
4139
4139
|
orientation: u = "horizontal",
|
|
4140
|
-
showContent:
|
|
4140
|
+
showContent: l = !0,
|
|
4141
4141
|
ariaLabel: f
|
|
4142
4142
|
} = e, g = me("tablist"), k = G(-1), m = I(n)((v) => t.find((x) => x.key === v)), w = (v) => {
|
|
4143
4143
|
if (h.get(c)) return;
|
|
@@ -4177,9 +4177,9 @@ function cs(e) {
|
|
|
4177
4177
|
s,
|
|
4178
4178
|
u,
|
|
4179
4179
|
c,
|
|
4180
|
-
|
|
4180
|
+
o
|
|
4181
4181
|
)(
|
|
4182
|
-
(v, x, b, p) =>
|
|
4182
|
+
(v, x, b, p) => Aa(
|
|
4183
4183
|
v ?? "md",
|
|
4184
4184
|
x ?? "horizontal",
|
|
4185
4185
|
b ?? !1,
|
|
@@ -4189,10 +4189,10 @@ function cs(e) {
|
|
|
4189
4189
|
),
|
|
4190
4190
|
r.style(
|
|
4191
4191
|
I(
|
|
4192
|
-
|
|
4192
|
+
o,
|
|
4193
4193
|
i
|
|
4194
4194
|
)(
|
|
4195
|
-
(v, x) =>
|
|
4195
|
+
(v, x) => Va(v ?? "default", x ?? "primary")
|
|
4196
4196
|
)
|
|
4197
4197
|
),
|
|
4198
4198
|
// Tab list
|
|
@@ -4204,7 +4204,7 @@ function cs(e) {
|
|
|
4204
4204
|
u ?? "horizontal"
|
|
4205
4205
|
),
|
|
4206
4206
|
f ? M.label(f) : N(),
|
|
4207
|
-
|
|
4207
|
+
A.keydown(w),
|
|
4208
4208
|
...t.map((v, x) => {
|
|
4209
4209
|
const b = I(n)((_) => _ === v.key), p = I(
|
|
4210
4210
|
c,
|
|
@@ -4239,10 +4239,10 @@ function cs(e) {
|
|
|
4239
4239
|
r.disabled(p),
|
|
4240
4240
|
st["tab-index"](String(x)),
|
|
4241
4241
|
v.ariaLabel ? M.label(v.ariaLabel) : N(),
|
|
4242
|
-
|
|
4242
|
+
A.click((_) => {
|
|
4243
4243
|
_.preventDefault(), h.get(v.disabled ?? !1) || h.get(c) || (a?.(v.key), k.set(x));
|
|
4244
4244
|
}),
|
|
4245
|
-
|
|
4245
|
+
A.focus(() => {
|
|
4246
4246
|
k.set(x);
|
|
4247
4247
|
}),
|
|
4248
4248
|
v.label
|
|
@@ -4250,8 +4250,8 @@ function cs(e) {
|
|
|
4250
4250
|
})
|
|
4251
4251
|
),
|
|
4252
4252
|
// Panel
|
|
4253
|
-
|
|
4254
|
-
|
|
4253
|
+
K(
|
|
4254
|
+
l ?? !0,
|
|
4255
4255
|
() => Ye(m, (v) => {
|
|
4256
4256
|
const x = v.$.key, b = x.map((y) => `${g}-tab-${y}`), p = x.map((y) => `${g}-panel-${y}`);
|
|
4257
4257
|
return d.div(
|
|
@@ -4269,14 +4269,14 @@ function cs(e) {
|
|
|
4269
4269
|
)
|
|
4270
4270
|
);
|
|
4271
4271
|
}
|
|
4272
|
-
function
|
|
4272
|
+
function fs(e) {
|
|
4273
4273
|
return Wt((t, n) => {
|
|
4274
4274
|
let a = n;
|
|
4275
4275
|
const s = () => a();
|
|
4276
4276
|
return e((c) => {
|
|
4277
4277
|
const {
|
|
4278
4278
|
size: u = "md",
|
|
4279
|
-
side:
|
|
4279
|
+
side: l = "right",
|
|
4280
4280
|
dismissable: f = !0,
|
|
4281
4281
|
showCloseButton: g = !0,
|
|
4282
4282
|
onClose: k,
|
|
@@ -4304,12 +4304,12 @@ function us(e) {
|
|
|
4304
4304
|
}), a = () => {
|
|
4305
4305
|
$.close();
|
|
4306
4306
|
}, ze(() => $.open());
|
|
4307
|
-
const C = me("drawer"),
|
|
4307
|
+
const C = me("drawer"), V = v != null ? `${C}-header` : void 0, E = `${C}-body`;
|
|
4308
4308
|
return d.div(
|
|
4309
4309
|
r.class(
|
|
4310
4310
|
I(
|
|
4311
4311
|
u,
|
|
4312
|
-
|
|
4312
|
+
l,
|
|
4313
4313
|
$.status
|
|
4314
4314
|
)(
|
|
4315
4315
|
(R, j, J) => `bc-drawer bc-drawer--size-${R} bc-drawer--container-${w} bc-drawer--side-${j} bc-drawer--status-${J}`
|
|
@@ -4318,7 +4318,7 @@ function us(e) {
|
|
|
4318
4318
|
// Essential ARIA attributes for drawer dialog
|
|
4319
4319
|
r.role("dialog"),
|
|
4320
4320
|
M.modal(!0),
|
|
4321
|
-
...
|
|
4321
|
+
...V ? [M.labelledby(V)] : [],
|
|
4322
4322
|
M.describedby(E),
|
|
4323
4323
|
r.tabindex(-1),
|
|
4324
4324
|
// Make drawer focusable for initial focus
|
|
@@ -4334,14 +4334,14 @@ function us(e) {
|
|
|
4334
4334
|
`#${C} [aria-label="Close drawer"]`
|
|
4335
4335
|
) || null
|
|
4336
4336
|
}),
|
|
4337
|
-
|
|
4337
|
+
A.mousedown((R) => R.stopPropagation()),
|
|
4338
4338
|
// Prevent overlay click-outside when clicking drawer content
|
|
4339
4339
|
// Drawer content container
|
|
4340
4340
|
Nt(y, (R) => _t(R ? {
|
|
4341
4341
|
header: d.div(
|
|
4342
4342
|
r.class("bc-drawer__header"),
|
|
4343
|
-
d.div(r.id(
|
|
4344
|
-
|
|
4343
|
+
d.div(r.id(V), v),
|
|
4344
|
+
K(
|
|
4345
4345
|
g,
|
|
4346
4346
|
() => ne(
|
|
4347
4347
|
le,
|
|
@@ -4398,13 +4398,13 @@ function Ma(e) {
|
|
|
4398
4398
|
gt.path(mt.d(e.map((n) => t[n])))
|
|
4399
4399
|
);
|
|
4400
4400
|
}
|
|
4401
|
-
function
|
|
4401
|
+
function bs(e) {
|
|
4402
4402
|
const {
|
|
4403
4403
|
content: t,
|
|
4404
4404
|
placement: n = "top",
|
|
4405
4405
|
showDelay: a = 250,
|
|
4406
4406
|
hideDelay: s = 500,
|
|
4407
|
-
mainAxisOffset:
|
|
4407
|
+
mainAxisOffset: o = 8,
|
|
4408
4408
|
crossAxisOffset: i = 0,
|
|
4409
4409
|
showOn: c = "hover-focus"
|
|
4410
4410
|
} = e, u = me("tooltip");
|
|
@@ -4420,15 +4420,15 @@ function ds(e) {
|
|
|
4420
4420
|
placement: n,
|
|
4421
4421
|
showDelay: a,
|
|
4422
4422
|
hideDelay: s,
|
|
4423
|
-
mainAxisOffset:
|
|
4423
|
+
mainAxisOffset: o,
|
|
4424
4424
|
crossAxisOffset: i,
|
|
4425
4425
|
showOn: c,
|
|
4426
4426
|
closable: !0,
|
|
4427
4427
|
role: "tooltip",
|
|
4428
4428
|
// Override the default dialog role for tooltips
|
|
4429
4429
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4430
|
-
arrow: (
|
|
4431
|
-
const f =
|
|
4430
|
+
arrow: (l) => {
|
|
4431
|
+
const f = l.map(
|
|
4432
4432
|
({
|
|
4433
4433
|
placement: g
|
|
4434
4434
|
}) => g.includes("top") ? "down" : g.includes("bottom") ? "up" : g.includes("left") ? "right" : g.includes("right") ? "left" : "up"
|
|
@@ -4437,7 +4437,7 @@ function ds(e) {
|
|
|
4437
4437
|
r.class("bc-tooltip__arrow"),
|
|
4438
4438
|
r.class(f.map((g) => `bc-tooltip__arrow-${g}`)),
|
|
4439
4439
|
S.transform(
|
|
4440
|
-
|
|
4440
|
+
l.map(({ x: g, y: k }) => g == null && k == null ? "" : g != null ? `translate(${g}px, 0)` : `translate(0, ${k}px)`)
|
|
4441
4441
|
),
|
|
4442
4442
|
Ma(f)
|
|
4443
4443
|
);
|
|
@@ -4445,7 +4445,7 @@ function ds(e) {
|
|
|
4445
4445
|
})
|
|
4446
4446
|
);
|
|
4447
4447
|
}
|
|
4448
|
-
function Ea(e, t, n, a, s,
|
|
4448
|
+
function Ea(e, t, n, a, s, o) {
|
|
4449
4449
|
const i = ce(e, "solid", "light"), c = ce(e, "solid", "dark");
|
|
4450
4450
|
return [
|
|
4451
4451
|
`--ribbon-bg: ${i.backgroundColor}`,
|
|
@@ -4456,19 +4456,19 @@ function Ea(e, t, n, a, s, l) {
|
|
|
4456
4456
|
`--ribbon-offset: ${nt(n)}`,
|
|
4457
4457
|
`--ribbon-width: ${nt(a)}`,
|
|
4458
4458
|
`--ribbon-angle: ${s}deg`,
|
|
4459
|
-
`--ribbon-corner: ${
|
|
4459
|
+
`--ribbon-corner: ${o}`
|
|
4460
4460
|
].join("; ");
|
|
4461
4461
|
}
|
|
4462
4462
|
function nt(e) {
|
|
4463
4463
|
return e == null ? null : typeof e == "number" ? `${e}px` : e;
|
|
4464
4464
|
}
|
|
4465
|
-
function
|
|
4465
|
+
function gs({
|
|
4466
4466
|
color: e = "primary",
|
|
4467
4467
|
class: t,
|
|
4468
4468
|
inset: n = 0,
|
|
4469
4469
|
offset: a = 40,
|
|
4470
4470
|
width: s = 100,
|
|
4471
|
-
angle:
|
|
4471
|
+
angle: o = 45,
|
|
4472
4472
|
corner: i = "top-end"
|
|
4473
4473
|
}, ...c) {
|
|
4474
4474
|
return d.div(
|
|
@@ -4480,7 +4480,7 @@ function ps({
|
|
|
4480
4480
|
n,
|
|
4481
4481
|
a,
|
|
4482
4482
|
s,
|
|
4483
|
-
|
|
4483
|
+
o,
|
|
4484
4484
|
i
|
|
4485
4485
|
)(Ea)
|
|
4486
4486
|
),
|
|
@@ -4489,19 +4489,19 @@ function ps({
|
|
|
4489
4489
|
...c
|
|
4490
4490
|
);
|
|
4491
4491
|
}
|
|
4492
|
-
function
|
|
4492
|
+
function ms(e, t) {
|
|
4493
4493
|
const {
|
|
4494
4494
|
dismissable: n = !0,
|
|
4495
4495
|
showCloseButton: a = !0,
|
|
4496
4496
|
overlayEffect: s = "opaque",
|
|
4497
|
-
container:
|
|
4497
|
+
container: o = "body",
|
|
4498
4498
|
padding: i = 32
|
|
4499
4499
|
} = e;
|
|
4500
4500
|
return Wt((c, u) => {
|
|
4501
|
-
let
|
|
4501
|
+
let l = () => {
|
|
4502
4502
|
};
|
|
4503
4503
|
return t((k) => {
|
|
4504
|
-
|
|
4504
|
+
l = u;
|
|
4505
4505
|
const m = G(
|
|
4506
4506
|
typeof n != "boolean" || n ? "capturing" : "non-capturing"
|
|
4507
4507
|
);
|
|
@@ -4512,7 +4512,7 @@ function fs(e, t) {
|
|
|
4512
4512
|
const v = d.div(
|
|
4513
4513
|
r.class("bc-lightbox"),
|
|
4514
4514
|
// Close button (top-end)
|
|
4515
|
-
|
|
4515
|
+
K(
|
|
4516
4516
|
a,
|
|
4517
4517
|
() => ne(
|
|
4518
4518
|
le,
|
|
@@ -4522,7 +4522,7 @@ function fs(e, t) {
|
|
|
4522
4522
|
size: "md",
|
|
4523
4523
|
label: x.$.closeModal,
|
|
4524
4524
|
onClick: () => {
|
|
4525
|
-
|
|
4525
|
+
l(), u();
|
|
4526
4526
|
}
|
|
4527
4527
|
})
|
|
4528
4528
|
)
|
|
@@ -4545,17 +4545,17 @@ function fs(e, t) {
|
|
|
4545
4545
|
c({
|
|
4546
4546
|
mode: m,
|
|
4547
4547
|
effect: s ?? "opaque",
|
|
4548
|
-
container:
|
|
4548
|
+
container: o,
|
|
4549
4549
|
content: v,
|
|
4550
4550
|
onClickOutside: () => {
|
|
4551
|
-
w && (
|
|
4551
|
+
w && (l(), u());
|
|
4552
4552
|
},
|
|
4553
4553
|
onEscape: () => {
|
|
4554
|
-
w && (
|
|
4554
|
+
w && (l(), u());
|
|
4555
4555
|
}
|
|
4556
4556
|
});
|
|
4557
4557
|
}, () => {
|
|
4558
|
-
|
|
4558
|
+
l(), u();
|
|
4559
4559
|
});
|
|
4560
4560
|
});
|
|
4561
4561
|
}
|
|
@@ -4566,15 +4566,15 @@ function Oa(e, t) {
|
|
|
4566
4566
|
function Na(e) {
|
|
4567
4567
|
return `--announcement-bar-bg-color: ${ct(e, 600)}`;
|
|
4568
4568
|
}
|
|
4569
|
-
function
|
|
4569
|
+
function hs({
|
|
4570
4570
|
color: e = "primary",
|
|
4571
4571
|
icon: t,
|
|
4572
4572
|
closable: n = !1,
|
|
4573
4573
|
onDismiss: a,
|
|
4574
4574
|
class: s
|
|
4575
|
-
}, ...
|
|
4575
|
+
}, ...o) {
|
|
4576
4576
|
const i = G(!0);
|
|
4577
|
-
return
|
|
4577
|
+
return K(i, () => {
|
|
4578
4578
|
const c = h.map(
|
|
4579
4579
|
n,
|
|
4580
4580
|
(u) => !!u || a != null
|
|
@@ -4584,14 +4584,14 @@ function bs({
|
|
|
4584
4584
|
I(
|
|
4585
4585
|
c,
|
|
4586
4586
|
s
|
|
4587
|
-
)((u,
|
|
4587
|
+
)((u, l) => Oa(u, l))
|
|
4588
4588
|
),
|
|
4589
4589
|
r.style(
|
|
4590
4590
|
h.map(e, (u) => Na(u))
|
|
4591
4591
|
),
|
|
4592
4592
|
d.div(
|
|
4593
4593
|
r.class("bc-announcement-bar__content"),
|
|
4594
|
-
|
|
4594
|
+
K(
|
|
4595
4595
|
h.map(t, (u) => u != null),
|
|
4596
4596
|
() => d.div(
|
|
4597
4597
|
r.class("bc-announcement-bar__icon"),
|
|
@@ -4602,8 +4602,8 @@ function bs({
|
|
|
4602
4602
|
})
|
|
4603
4603
|
)
|
|
4604
4604
|
),
|
|
4605
|
-
d.div(r.class("bc-announcement-bar__text"), ...
|
|
4606
|
-
|
|
4605
|
+
d.div(r.class("bc-announcement-bar__text"), ...o),
|
|
4606
|
+
K(
|
|
4607
4607
|
c,
|
|
4608
4608
|
() => d.div(
|
|
4609
4609
|
r.class("bc-announcement-bar__close"),
|
|
@@ -4634,17 +4634,17 @@ function Ra() {
|
|
|
4634
4634
|
n.src = "https://www.youtube.com/iframe_api", n.async = !0, document.head.appendChild(n);
|
|
4635
4635
|
}), je);
|
|
4636
4636
|
}
|
|
4637
|
-
function
|
|
4637
|
+
function vs(e) {
|
|
4638
4638
|
const {
|
|
4639
4639
|
url: t,
|
|
4640
4640
|
playing: n = !1,
|
|
4641
4641
|
loop: a = !1,
|
|
4642
4642
|
controls: s = !1,
|
|
4643
|
-
volume:
|
|
4643
|
+
volume: o = 1,
|
|
4644
4644
|
muted: i = !1,
|
|
4645
4645
|
playbackRate: c = 1,
|
|
4646
4646
|
pip: u = !1,
|
|
4647
|
-
playsinline:
|
|
4647
|
+
playsinline: l = !0,
|
|
4648
4648
|
width: f,
|
|
4649
4649
|
height: g,
|
|
4650
4650
|
progressInterval: k = 1e3,
|
|
@@ -4660,7 +4660,7 @@ function gs(e) {
|
|
|
4660
4660
|
onError: $,
|
|
4661
4661
|
onDuration: P,
|
|
4662
4662
|
onSeek: C,
|
|
4663
|
-
onProgress:
|
|
4663
|
+
onProgress: V,
|
|
4664
4664
|
onPlaybackRateChange: E,
|
|
4665
4665
|
onPlaybackQualityChange: R
|
|
4666
4666
|
} = e;
|
|
@@ -4677,7 +4677,7 @@ function gs(e) {
|
|
|
4677
4677
|
}
|
|
4678
4678
|
const Y = G("file");
|
|
4679
4679
|
let F = null, Q = null, ie = null;
|
|
4680
|
-
function
|
|
4680
|
+
function qe() {
|
|
4681
4681
|
try {
|
|
4682
4682
|
ie?.destroy();
|
|
4683
4683
|
} catch {
|
|
@@ -4695,7 +4695,7 @@ function gs(e) {
|
|
|
4695
4695
|
if (!D) return;
|
|
4696
4696
|
const B = h.get(t);
|
|
4697
4697
|
if (typeof B != "string" || B.length === 0) return;
|
|
4698
|
-
|
|
4698
|
+
qe();
|
|
4699
4699
|
const U = w?.file?.forceHLS ?? !1;
|
|
4700
4700
|
if (j(B) || U) {
|
|
4701
4701
|
if (J(D)) {
|
|
@@ -4708,19 +4708,19 @@ function gs(e) {
|
|
|
4708
4708
|
}
|
|
4709
4709
|
if (typeof window > "u") return;
|
|
4710
4710
|
try {
|
|
4711
|
-
const Z = await import("./hls-
|
|
4712
|
-
let
|
|
4713
|
-
for (let
|
|
4714
|
-
|
|
4715
|
-
if (typeof
|
|
4716
|
-
const
|
|
4717
|
-
if (typeof
|
|
4711
|
+
const Z = await import("./hls.light.min-BHW1Af0w.js").then((ve) => ve.h), Ve = Z;
|
|
4712
|
+
let Ie = Ve.default ?? Ve.Hls ?? Z;
|
|
4713
|
+
for (let ve = 0; ve < 3 && (typeof Ie == "object" && Ie != null && "default" in Ie); ve++)
|
|
4714
|
+
Ie = Ie.default;
|
|
4715
|
+
if (typeof Ie == "function") {
|
|
4716
|
+
const ve = Ie;
|
|
4717
|
+
if (typeof ve.isSupported == "function" && ve.isSupported()) {
|
|
4718
4718
|
D.removeAttribute("src");
|
|
4719
4719
|
try {
|
|
4720
4720
|
D.load();
|
|
4721
4721
|
} catch {
|
|
4722
4722
|
}
|
|
4723
|
-
const Qe = new
|
|
4723
|
+
const Qe = new ve(w?.hls);
|
|
4724
4724
|
ie = Qe, Qe.attachMedia(D), Qe.loadSource(B);
|
|
4725
4725
|
} else {
|
|
4726
4726
|
D.setAttribute("src", B);
|
|
@@ -4757,16 +4757,16 @@ function gs(e) {
|
|
|
4757
4757
|
Q = St(() => {
|
|
4758
4758
|
const B = F;
|
|
4759
4759
|
if (!B) return;
|
|
4760
|
-
const U = B.duration || 0, Z = B.currentTime || 0,
|
|
4761
|
-
|
|
4760
|
+
const U = B.duration || 0, Z = B.currentTime || 0, Ve = B.buffered?.length ? B.buffered.end(B.buffered.length - 1) : 0;
|
|
4761
|
+
V?.({
|
|
4762
4762
|
played: U > 0 ? Z / U : 0,
|
|
4763
4763
|
playedSeconds: Z,
|
|
4764
|
-
loaded: U > 0 ? Math.min(
|
|
4765
|
-
loadedSeconds: Math.min(
|
|
4764
|
+
loaded: U > 0 ? Math.min(Ve, U) / U : 0,
|
|
4765
|
+
loadedSeconds: Math.min(Ve, U)
|
|
4766
4766
|
});
|
|
4767
4767
|
}, D);
|
|
4768
4768
|
}
|
|
4769
|
-
function
|
|
4769
|
+
function ke(D) {
|
|
4770
4770
|
if (D != null)
|
|
4771
4771
|
return typeof D == "number" ? `${D}px` : D;
|
|
4772
4772
|
}
|
|
@@ -4777,7 +4777,7 @@ function gs(e) {
|
|
|
4777
4777
|
F.playbackRate = h.get(c) ?? 1;
|
|
4778
4778
|
} catch {
|
|
4779
4779
|
}
|
|
4780
|
-
F.muted = !!(h.get(i) ?? !1), F.loop = !!(h.get(a) ?? !1), F.controls = !!(h.get(s) ?? !1), F.playsInline != null && (!!(h.get(
|
|
4780
|
+
F.muted = !!(h.get(i) ?? !1), F.loop = !!(h.get(a) ?? !1), F.controls = !!(h.get(s) ?? !1), F.playsInline != null && (!!(h.get(l) ?? !0) ? F.setAttribute("playsinline", "") : F.removeAttribute("playsinline")), h.get(n) && (F.play?.().catch(() => {
|
|
4781
4781
|
}), x?.());
|
|
4782
4782
|
try {
|
|
4783
4783
|
const B = !!(h.get(u) ?? !1), U = document, Z = F;
|
|
@@ -4790,43 +4790,43 @@ function gs(e) {
|
|
|
4790
4790
|
}),
|
|
4791
4791
|
// size
|
|
4792
4792
|
S.width(
|
|
4793
|
-
h.map(f,
|
|
4793
|
+
h.map(f, ke)
|
|
4794
4794
|
),
|
|
4795
4795
|
S.height(
|
|
4796
|
-
h.map(g,
|
|
4796
|
+
h.map(g, ke)
|
|
4797
4797
|
),
|
|
4798
4798
|
// Events
|
|
4799
|
-
|
|
4800
|
-
|
|
4799
|
+
A.play(() => b?.()),
|
|
4800
|
+
A.playing(() => {
|
|
4801
4801
|
x?.(), T?.();
|
|
4802
4802
|
}),
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4803
|
+
A.pause(() => p?.()),
|
|
4804
|
+
A.waiting(() => y?.()),
|
|
4805
|
+
A.canplay(() => {
|
|
4806
4806
|
const D = F?.duration;
|
|
4807
4807
|
D != null && Number.isFinite(D) && P?.(D);
|
|
4808
4808
|
}),
|
|
4809
|
-
|
|
4810
|
-
|
|
4809
|
+
A.ended(() => _?.()),
|
|
4810
|
+
A.error((D) => {
|
|
4811
4811
|
ie || $?.(D);
|
|
4812
4812
|
})
|
|
4813
4813
|
);
|
|
4814
|
-
let
|
|
4815
|
-
function
|
|
4814
|
+
let $e = null, W = null, Se = null;
|
|
4815
|
+
function Ce() {
|
|
4816
4816
|
const D = h.get(t);
|
|
4817
|
-
|
|
4817
|
+
!$e || typeof D != "string" || Ra().then((B) => {
|
|
4818
4818
|
const U = dn(D);
|
|
4819
4819
|
if (U) {
|
|
4820
4820
|
if (W) {
|
|
4821
4821
|
W.loadVideoById({ videoId: U });
|
|
4822
4822
|
return;
|
|
4823
4823
|
}
|
|
4824
|
-
W = new B.Player(
|
|
4824
|
+
W = new B.Player($e, {
|
|
4825
4825
|
videoId: U,
|
|
4826
4826
|
playerVars: Ua(e),
|
|
4827
4827
|
events: {
|
|
4828
4828
|
onReady: () => {
|
|
4829
|
-
v?.(), L(), h.get(n) && x?.(),
|
|
4829
|
+
v?.(), L(), h.get(n) && x?.(), Ke();
|
|
4830
4830
|
},
|
|
4831
4831
|
onStateChange: (Z) => {
|
|
4832
4832
|
switch (Z.data) {
|
|
@@ -4852,13 +4852,13 @@ function gs(e) {
|
|
|
4852
4852
|
}
|
|
4853
4853
|
});
|
|
4854
4854
|
}
|
|
4855
|
-
function
|
|
4856
|
-
|
|
4855
|
+
function Ke() {
|
|
4856
|
+
Se?.();
|
|
4857
4857
|
const D = h.get(k) ?? 1e3;
|
|
4858
|
-
|
|
4858
|
+
Se = St(() => {
|
|
4859
4859
|
if (!W) return;
|
|
4860
4860
|
const B = W.getDuration?.() ?? 0, U = W.getCurrentTime?.() ?? 0, Z = W.getVideoLoadedFraction?.() ?? 0;
|
|
4861
|
-
|
|
4861
|
+
V?.({
|
|
4862
4862
|
played: B > 0 ? U / B : 0,
|
|
4863
4863
|
playedSeconds: U,
|
|
4864
4864
|
loaded: Z,
|
|
@@ -4875,7 +4875,7 @@ function gs(e) {
|
|
|
4875
4875
|
}
|
|
4876
4876
|
try {
|
|
4877
4877
|
const U = Math.round(
|
|
4878
|
-
Math.min(Math.max(h.get(
|
|
4878
|
+
Math.min(Math.max(h.get(o) ?? 1, 0), 1) * 100
|
|
4879
4879
|
);
|
|
4880
4880
|
W.setVolume?.(U);
|
|
4881
4881
|
} catch {
|
|
@@ -4890,12 +4890,12 @@ function gs(e) {
|
|
|
4890
4890
|
}
|
|
4891
4891
|
const O = d.div(
|
|
4892
4892
|
te((D) => {
|
|
4893
|
-
|
|
4893
|
+
$e = D, Ce(), v?.();
|
|
4894
4894
|
})
|
|
4895
4895
|
);
|
|
4896
4896
|
ue.push(
|
|
4897
4897
|
h.on(t, () => {
|
|
4898
|
-
Y.value === "youtube" &&
|
|
4898
|
+
Y.value === "youtube" && Ce();
|
|
4899
4899
|
})
|
|
4900
4900
|
), ue.push(
|
|
4901
4901
|
h.on(n, () => {
|
|
@@ -4903,12 +4903,12 @@ function gs(e) {
|
|
|
4903
4903
|
}) : F.pause?.() : Y.value === "youtube" && W && (h.get(n) ? W.playVideo?.() : W.pauseVideo?.());
|
|
4904
4904
|
})
|
|
4905
4905
|
), ue.push(
|
|
4906
|
-
h.on(
|
|
4906
|
+
h.on(o, () => {
|
|
4907
4907
|
if (Y.value === "file" && F)
|
|
4908
|
-
F.volume = Math.min(Math.max(h.get(
|
|
4908
|
+
F.volume = Math.min(Math.max(h.get(o) ?? 1, 0), 1);
|
|
4909
4909
|
else if (Y.value === "youtube" && W) {
|
|
4910
4910
|
const D = Math.round(
|
|
4911
|
-
Math.min(Math.max(h.get(
|
|
4911
|
+
Math.min(Math.max(h.get(o) ?? 1, 0), 1) * 100
|
|
4912
4912
|
);
|
|
4913
4913
|
W.setVolume?.(D);
|
|
4914
4914
|
}
|
|
@@ -4949,21 +4949,21 @@ function gs(e) {
|
|
|
4949
4949
|
else Y.value === "youtube" && W && (W.seekTo?.(D, !0), C?.(D));
|
|
4950
4950
|
})
|
|
4951
4951
|
);
|
|
4952
|
-
const
|
|
4952
|
+
const q = d.div(
|
|
4953
4953
|
r.class("bc-base-video"),
|
|
4954
4954
|
S.width(
|
|
4955
|
-
h.map(f,
|
|
4955
|
+
h.map(f, ke)
|
|
4956
4956
|
),
|
|
4957
4957
|
S.height(
|
|
4958
|
-
h.map(g,
|
|
4958
|
+
h.map(g, ke)
|
|
4959
4959
|
),
|
|
4960
|
-
|
|
4960
|
+
K(
|
|
4961
4961
|
h.map(Y, (D) => D === "youtube"),
|
|
4962
4962
|
() => O,
|
|
4963
4963
|
() => Fe
|
|
4964
4964
|
)
|
|
4965
4965
|
);
|
|
4966
|
-
return N(re(...ue),
|
|
4966
|
+
return N(re(...ue), q);
|
|
4967
4967
|
}
|
|
4968
4968
|
function dn(e) {
|
|
4969
4969
|
const t = /[?&]v=([^&#]+)/.exec(e);
|
|
@@ -5011,17 +5011,39 @@ async function Ya() {
|
|
|
5011
5011
|
const e = await za();
|
|
5012
5012
|
return at = e, e.GlobalWorkerOptions && (e.GlobalWorkerOptions.workerSrc = `${bt}build/pdf.worker.min.mjs`), e;
|
|
5013
5013
|
}
|
|
5014
|
-
function
|
|
5014
|
+
function Ga(e, t) {
|
|
5015
|
+
if (e.byteLength !== t.byteLength) return !1;
|
|
5016
|
+
const n = e.byteLength, a = new DataView(e.buffer, e.byteOffset, n), s = new DataView(t.buffer, t.byteOffset, n), o = n >>> 2, i = n & 3;
|
|
5017
|
+
for (let c = 0; c < o; c++)
|
|
5018
|
+
if (a.getUint32(c * 4) !== s.getUint32(c * 4)) return !1;
|
|
5019
|
+
for (let c = n - i; c < n; c++)
|
|
5020
|
+
if (e[c] !== t[c]) return !1;
|
|
5021
|
+
return !0;
|
|
5022
|
+
}
|
|
5023
|
+
function Za(e, t) {
|
|
5024
|
+
if (e.byteLength !== t.byteLength) return !1;
|
|
5025
|
+
const n = e.byteLength, a = n >>> 2, s = new Uint32Array(e, 0, a), o = new Uint32Array(t, 0, a);
|
|
5026
|
+
for (let l = 0; l < a; l++)
|
|
5027
|
+
if (s[l] !== o[l]) return !1;
|
|
5028
|
+
const i = n & 3, c = new Uint8Array(e, a * 4, i), u = new Uint8Array(t, a * 4, i);
|
|
5029
|
+
for (let l = 0; l < i; l++)
|
|
5030
|
+
if (c[l] !== u[l]) return !1;
|
|
5031
|
+
return !0;
|
|
5032
|
+
}
|
|
5033
|
+
function Ja(e, t) {
|
|
5034
|
+
return typeof e == "string" && typeof t == "string" ? e === t : e instanceof Uint8Array && t instanceof Uint8Array ? Ga(e, t) : e instanceof ArrayBuffer && t instanceof ArrayBuffer ? Za(e, t) : !1;
|
|
5035
|
+
}
|
|
5036
|
+
function ys({
|
|
5015
5037
|
source: e,
|
|
5016
5038
|
page: t = 1,
|
|
5017
5039
|
fit: n = "width",
|
|
5018
5040
|
scale: a = 1,
|
|
5019
5041
|
rotation: s = 0,
|
|
5020
|
-
quality:
|
|
5042
|
+
quality: o = 2,
|
|
5021
5043
|
renderTextLayer: i = !0,
|
|
5022
5044
|
renderAnnotationLayer: c = !1,
|
|
5023
5045
|
onPageChange: u,
|
|
5024
|
-
onLoadComplete:
|
|
5046
|
+
onLoadComplete: l
|
|
5025
5047
|
}, ...f) {
|
|
5026
5048
|
const g = Ya();
|
|
5027
5049
|
let k = h.get(e), m = null, w = h.get(t);
|
|
@@ -5037,11 +5059,11 @@ function ms({
|
|
|
5037
5059
|
n,
|
|
5038
5060
|
a,
|
|
5039
5061
|
s,
|
|
5040
|
-
|
|
5062
|
+
o,
|
|
5041
5063
|
i,
|
|
5042
5064
|
c,
|
|
5043
5065
|
x
|
|
5044
|
-
)((b, p, y, T, _, $, P, C,
|
|
5066
|
+
)((b, p, y, T, _, $, P, C, V) => ({
|
|
5045
5067
|
source: b,
|
|
5046
5068
|
page: p,
|
|
5047
5069
|
fit: y,
|
|
@@ -5050,12 +5072,12 @@ function ms({
|
|
|
5050
5072
|
quality: $,
|
|
5051
5073
|
renderTextLayer: P,
|
|
5052
5074
|
renderAnnotationLayer: C,
|
|
5053
|
-
containerWidth:
|
|
5054
|
-
containerHeight:
|
|
5075
|
+
containerWidth: V.width,
|
|
5076
|
+
containerHeight: V.height
|
|
5055
5077
|
})),
|
|
5056
5078
|
load: async ({ request: b }) => {
|
|
5057
5079
|
const p = await g;
|
|
5058
|
-
(m == null || k
|
|
5080
|
+
(m == null || !Ja(k, b.source)) && (m != null && (m.destroy(), m = null), k = b.source, m = await p.getDocument(b.source).promise, l?.({ numPages: m.numPages }));
|
|
5059
5081
|
const y = b.page < 1 || b.page > m.numPages ? 1 : b.page;
|
|
5060
5082
|
u != null && y !== w && (w = y, u(y));
|
|
5061
5083
|
const T = await m.getPage(y);
|
|
@@ -5066,7 +5088,7 @@ function ms({
|
|
|
5066
5088
|
const C = T.getViewport({
|
|
5067
5089
|
scale: 1,
|
|
5068
5090
|
rotation: b.rotation
|
|
5069
|
-
}),
|
|
5091
|
+
}), V = C.width / C.height, E = b.containerWidth / b.containerHeight;
|
|
5070
5092
|
switch (b.fit) {
|
|
5071
5093
|
case "width":
|
|
5072
5094
|
_ = b.containerWidth / C.width;
|
|
@@ -5081,7 +5103,7 @@ function ms({
|
|
|
5081
5103
|
);
|
|
5082
5104
|
break;
|
|
5083
5105
|
case "cover":
|
|
5084
|
-
|
|
5106
|
+
V > E ? _ = b.containerHeight / C.height : _ = b.containerWidth / C.width;
|
|
5085
5107
|
break;
|
|
5086
5108
|
}
|
|
5087
5109
|
}
|
|
@@ -5099,19 +5121,19 @@ function ms({
|
|
|
5099
5121
|
canvasHeight: Math.floor($.height),
|
|
5100
5122
|
highResWidth: Math.floor(P.width),
|
|
5101
5123
|
highResHeight: Math.floor(P.height),
|
|
5102
|
-
render: async (C,
|
|
5124
|
+
render: async (C, V, E) => {
|
|
5103
5125
|
if (C.width = P.width, C.height = P.height, C.style.width = `${$.width}px`, C.style.height = `${$.height}px`, !C.getContext("2d"))
|
|
5104
5126
|
throw new Error("Failed to get canvas context");
|
|
5105
5127
|
if (await T.render({
|
|
5106
5128
|
canvas: C,
|
|
5107
5129
|
viewport: P
|
|
5108
|
-
}).promise, b.renderTextLayer &&
|
|
5109
|
-
|
|
5130
|
+
}).promise, b.renderTextLayer && V != null) {
|
|
5131
|
+
V.innerHTML = "";
|
|
5110
5132
|
try {
|
|
5111
5133
|
const J = await T.getTextContent(), Y = p.TextLayer;
|
|
5112
5134
|
Y != null && await new Y({
|
|
5113
5135
|
textContentSource: J,
|
|
5114
|
-
container:
|
|
5136
|
+
container: V,
|
|
5115
5137
|
viewport: $
|
|
5116
5138
|
}).render();
|
|
5117
5139
|
} catch (J) {
|
|
@@ -5194,7 +5216,7 @@ function ms({
|
|
|
5194
5216
|
d.div(
|
|
5195
5217
|
r.class("bc-pdf-page-viewer__content"),
|
|
5196
5218
|
// Only set fixed dimensions when fit is 'none'
|
|
5197
|
-
|
|
5219
|
+
K(
|
|
5198
5220
|
h.map(n, (p) => p === "none"),
|
|
5199
5221
|
() => r.style(
|
|
5200
5222
|
b.$.canvasWidth.map(
|
|
@@ -5232,361 +5254,361 @@ function ms({
|
|
|
5232
5254
|
));
|
|
5233
5255
|
}
|
|
5234
5256
|
export {
|
|
5235
|
-
|
|
5257
|
+
fr as ActionCard,
|
|
5236
5258
|
In as AnimatedToggle,
|
|
5237
5259
|
rt as AnimatedToggleClass,
|
|
5238
|
-
|
|
5239
|
-
|
|
5260
|
+
hs as AnnouncementBar,
|
|
5261
|
+
mr as AppShell,
|
|
5240
5262
|
Un as AppearanceSelector,
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5263
|
+
Po as ArrayController,
|
|
5264
|
+
ir as Badge,
|
|
5265
|
+
gi as Base64Input,
|
|
5266
|
+
mi as Base64sInput,
|
|
5245
5267
|
ca as BaseComboboxControl,
|
|
5246
|
-
|
|
5268
|
+
Tr as BaseComboboxTagsControl,
|
|
5247
5269
|
jt as BaseControl,
|
|
5248
5270
|
oa as BaseDropdownControl,
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5271
|
+
hi as BaseListControl,
|
|
5272
|
+
Do as BaseMappedControl,
|
|
5273
|
+
vi as BaseNativeSelectControl,
|
|
5274
|
+
Cr as BaseSelectTagsControl,
|
|
5275
|
+
vs as BaseVideoPlayer,
|
|
5276
|
+
ns as BeatUI,
|
|
5255
5277
|
le as BeatUII18n,
|
|
5256
|
-
|
|
5257
|
-
|
|
5278
|
+
Vr as BigintInput,
|
|
5279
|
+
ni as BooleanValidator,
|
|
5258
5280
|
vt as Button,
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5281
|
+
is as ButtonLink,
|
|
5282
|
+
yi as Card,
|
|
5283
|
+
vr as Center,
|
|
5284
|
+
hr as CenterH,
|
|
5285
|
+
Lo as CheckboxInput,
|
|
5264
5286
|
ln as Chips,
|
|
5265
5287
|
Ee as CloseButton,
|
|
5266
5288
|
aa as Collapse,
|
|
5267
|
-
|
|
5289
|
+
us as CollapsibleSidebarGroup,
|
|
5268
5290
|
ba as ColorController,
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5291
|
+
pr as ColorInput,
|
|
5292
|
+
wi as ColorSwatchInput,
|
|
5293
|
+
kr as ComboboxControl,
|
|
5272
5294
|
ia as ComboboxInput,
|
|
5273
|
-
|
|
5295
|
+
_r as ComboboxTagsControl,
|
|
5274
5296
|
cn as ComboboxTagsInput,
|
|
5275
5297
|
pe as CommonInputAttributes,
|
|
5276
|
-
|
|
5298
|
+
ai as ConfirmModal,
|
|
5277
5299
|
Ht as Control,
|
|
5278
5300
|
Cn as Controller,
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5301
|
+
Ao as DangerLabel,
|
|
5302
|
+
$r as DateInput,
|
|
5303
|
+
Pr as DateTimeInput,
|
|
5304
|
+
fs as Drawer,
|
|
5305
|
+
qt as DropdownBase,
|
|
5306
|
+
xr as DropdownControl,
|
|
5285
5307
|
la as DropdownInput,
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5308
|
+
qr as DurationInput,
|
|
5309
|
+
xi as EditableText,
|
|
5310
|
+
Vo as EmailInput,
|
|
5311
|
+
Bo as EmphasisLabel,
|
|
5312
|
+
Kr as EnsureControl,
|
|
5291
5313
|
Pn as Expando,
|
|
5292
|
-
|
|
5314
|
+
Dr as FileInput,
|
|
5293
5315
|
Dn as FilesInput,
|
|
5294
5316
|
Ge as Flyout,
|
|
5295
5317
|
Tn as FocusTrap,
|
|
5296
|
-
|
|
5318
|
+
Qr as FormStatus,
|
|
5297
5319
|
Yt as Group,
|
|
5298
5320
|
X as Icon,
|
|
5299
5321
|
oe as InputContainer,
|
|
5300
5322
|
We as InputIcon,
|
|
5301
5323
|
ut as InputWrapper,
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5324
|
+
jr as InstantInput,
|
|
5325
|
+
Cs as LOGICAL_PROPERTY_MAP,
|
|
5326
|
+
Mo as Label,
|
|
5327
|
+
Lr as LazyNativeSelect,
|
|
5328
|
+
ms as Lightbox,
|
|
5307
5329
|
Sa as Link,
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5330
|
+
yc as LinkPortal,
|
|
5331
|
+
ki as ListControl,
|
|
5332
|
+
Si as ListInput,
|
|
5311
5333
|
it as Locale,
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5334
|
+
ts as LocaleSelector,
|
|
5335
|
+
Eo as MappedControl,
|
|
5336
|
+
Ae as MaskInput,
|
|
5315
5337
|
Xt as Menu,
|
|
5316
|
-
|
|
5338
|
+
Sr as MenuItem,
|
|
5317
5339
|
en as MenuSeparator,
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5340
|
+
ri as Modal,
|
|
5341
|
+
Oo as MutedLabel,
|
|
5342
|
+
as as NativePdfPreview,
|
|
5321
5343
|
Gt as NativeSelect,
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5344
|
+
Ci as NativeSelectControl,
|
|
5345
|
+
os as NavigationLink,
|
|
5346
|
+
yr as NineSliceScrollView,
|
|
5347
|
+
No as Notice,
|
|
5326
5348
|
va as Notification,
|
|
5327
5349
|
un as NotificationProvider,
|
|
5328
5350
|
wa as NotificationService,
|
|
5329
5351
|
xa as NotificationViewport,
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
|
|
5333
|
-
|
|
5334
|
-
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
|
|
5352
|
+
Br as NullableBigintInput,
|
|
5353
|
+
Ii as NullableDateInput,
|
|
5354
|
+
Ti as NullableDateTimeInput,
|
|
5355
|
+
_i as NullableDurationInput,
|
|
5356
|
+
$i as NullableEmailInput,
|
|
5357
|
+
Hr as NullableInstantInput,
|
|
5358
|
+
Ar as NullableMaskInput,
|
|
5359
|
+
Pi as NullableNumberInput,
|
|
5360
|
+
Di as NullablePasswordInput,
|
|
5361
|
+
Or as NullablePlainDateInput,
|
|
5362
|
+
Ur as NullablePlainDateTimeInput,
|
|
5363
|
+
Jr as NullablePlainMonthDayInput,
|
|
5364
|
+
Fr as NullablePlainTimeInput,
|
|
5365
|
+
Gr as NullablePlainYearMonthInput,
|
|
5366
|
+
Li as NullableRatingInput,
|
|
5367
|
+
Ai as NullableSliderInput,
|
|
5368
|
+
Vi as NullableTextArea,
|
|
5369
|
+
Bi as NullableTextInput,
|
|
5370
|
+
Mi as NullableUUIDInput,
|
|
5371
|
+
Ei as NullableUrlInput,
|
|
5372
|
+
zr as NullableZonedDateTimeInput,
|
|
5373
|
+
Oi as NumberInput,
|
|
5374
|
+
Fo as ObjectController,
|
|
5375
|
+
si as ObjectValidator,
|
|
5376
|
+
ls as OpenGraph,
|
|
5377
|
+
xe as Option,
|
|
5356
5378
|
Wt as Overlay,
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
|
|
5379
|
+
rs as PDFJSPreview,
|
|
5380
|
+
cr as PageDropZone,
|
|
5381
|
+
Ro as PasswordInput,
|
|
5382
|
+
ys as PdfPageViewer,
|
|
5383
|
+
Er as PlainDateInput,
|
|
5384
|
+
Rr as PlainDateTimeInput,
|
|
5385
|
+
Zr as PlainMonthDayInput,
|
|
5386
|
+
Nr as PlainTimeInput,
|
|
5387
|
+
Yr as PlainYearMonthInput,
|
|
5388
|
+
Ni as RatingInput,
|
|
5389
|
+
Uo as RequiredSymbol,
|
|
5390
|
+
gs as Ribbon,
|
|
5369
5391
|
_t as ScrollablePanel,
|
|
5370
5392
|
$n as SegmentedInput,
|
|
5371
|
-
|
|
5393
|
+
Ir as SelectTagsControl,
|
|
5372
5394
|
on as SelectTagsInput,
|
|
5373
|
-
|
|
5395
|
+
cs as Sidebar,
|
|
5374
5396
|
Pa as SidebarActiveLink,
|
|
5375
5397
|
Da as SidebarClickLink,
|
|
5376
5398
|
_a as SidebarContext,
|
|
5377
|
-
|
|
5399
|
+
Vt as SidebarGroup,
|
|
5378
5400
|
La as SidebarLink,
|
|
5379
|
-
|
|
5401
|
+
ds as SidebarSeparator,
|
|
5380
5402
|
$a as SidebarUrlLink,
|
|
5381
|
-
|
|
5382
|
-
|
|
5403
|
+
wr as Sink,
|
|
5404
|
+
Fi as SliderInput,
|
|
5383
5405
|
dt as Stack,
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
|
|
5406
|
+
dr as StandaloneAppearanceSelector,
|
|
5407
|
+
li as StringValidator,
|
|
5408
|
+
ss as StylePortal,
|
|
5409
|
+
Ri as Switch,
|
|
5410
|
+
ur as Table,
|
|
5411
|
+
ps as Tabs,
|
|
5390
5412
|
Zt as Tag,
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
|
|
5413
|
+
Mr as TagsInput,
|
|
5414
|
+
Ui as TextArea,
|
|
5415
|
+
Is as TextInput,
|
|
5394
5416
|
zt as Theme,
|
|
5395
5417
|
_n as ThemeAppearance,
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
|
|
5418
|
+
xc as Toolbar,
|
|
5419
|
+
kc as ToolbarButton,
|
|
5420
|
+
Sc as ToolbarDivider,
|
|
5421
|
+
Cc as ToolbarGroup,
|
|
5422
|
+
Ic as ToolbarSpacer,
|
|
5423
|
+
bs as Tooltip,
|
|
5424
|
+
ji as UUIDInput,
|
|
5425
|
+
Hi as UnionController,
|
|
5426
|
+
Wi as UnstyledDropZone,
|
|
5427
|
+
zi as UrlInput,
|
|
5428
|
+
ks as Use,
|
|
5429
|
+
qn as WithBeatUIBreakpoint,
|
|
5430
|
+
gr as WithBeatUIElementBreakpoint,
|
|
5409
5431
|
Jt as WithBreakpoint,
|
|
5410
5432
|
he as WithTemporal,
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5433
|
+
Wr as ZonedDateTimeInput,
|
|
5434
|
+
js as backgroundConfig,
|
|
5435
|
+
sl as baseSpacing,
|
|
5436
|
+
ll as beatuiPreset,
|
|
5437
|
+
Hs as bgColors,
|
|
5438
|
+
oi as boolean,
|
|
5439
|
+
Ws as borderColors,
|
|
5440
|
+
ol as breakpoints,
|
|
5441
|
+
il as changeFontSize,
|
|
5442
|
+
es as colorInputOptionsFromController,
|
|
5443
|
+
zs as colorShades,
|
|
5444
|
+
Ys as colors,
|
|
5423
5445
|
Zn as compareBreakpoint,
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5446
|
+
jo as connectCommonAttributes,
|
|
5447
|
+
Ho as connectNumberInput,
|
|
5448
|
+
Wo as connectStringInput,
|
|
5449
|
+
zo as convertStandardSchemaIssues,
|
|
5450
|
+
Yo as convertStandardSchemaPathToPath,
|
|
5451
|
+
cl as createBeatuiPreset,
|
|
5452
|
+
Xr as createColorController,
|
|
5431
5453
|
ft as createLocationMatcher,
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5454
|
+
ii as createStandardSchema,
|
|
5455
|
+
Ts as defaultLocale,
|
|
5456
|
+
_s as defaultMessages,
|
|
5457
|
+
lr as delaySignal,
|
|
5458
|
+
Yi as emitExpando,
|
|
5459
|
+
Gi as emitOptionExpando,
|
|
5438
5460
|
xt as emptyToNull,
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5447
|
-
|
|
5461
|
+
Zi as ensureTemporal,
|
|
5462
|
+
Ji as fileToBase64,
|
|
5463
|
+
br as findBreakpoint,
|
|
5464
|
+
ul as fontFamily,
|
|
5465
|
+
dl as fontSize,
|
|
5466
|
+
pl as fontWeight,
|
|
5467
|
+
qi as formatColor,
|
|
5468
|
+
$s as formatFileSize,
|
|
5469
|
+
fl as generateAllTokenVariables,
|
|
5448
5470
|
Mn as generateBadgeClasses,
|
|
5449
5471
|
En as generateBadgeStyles,
|
|
5450
|
-
|
|
5472
|
+
bl as generateBreakpointVariables,
|
|
5451
5473
|
yt as generateButtonClasses,
|
|
5452
5474
|
wt as generateButtonStyles,
|
|
5453
|
-
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
|
|
5475
|
+
Gs as generateColorVariables,
|
|
5476
|
+
Zs as generateCoreColorVariables,
|
|
5477
|
+
gl as generateCoreTokenVariables,
|
|
5478
|
+
ml as generateFontFamilyOverrideVariables,
|
|
5479
|
+
Ps as generateInputContainerInputClasses,
|
|
5458
5480
|
Dt as generateLinkClasses,
|
|
5459
5481
|
Lt as generateLinkStyles,
|
|
5460
|
-
|
|
5482
|
+
hl as generateMotionVariables,
|
|
5461
5483
|
ma as generateNotificationClasses,
|
|
5462
5484
|
ha as generateNotificationStyles,
|
|
5463
|
-
|
|
5464
|
-
|
|
5465
|
-
|
|
5466
|
-
|
|
5467
|
-
|
|
5468
|
-
|
|
5469
|
-
|
|
5470
|
-
|
|
5471
|
-
|
|
5472
|
-
|
|
5473
|
-
|
|
5474
|
-
|
|
5475
|
-
|
|
5476
|
-
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
|
|
5485
|
+
vl as generateRadiusVariables,
|
|
5486
|
+
Js as generateSemanticColorVariables,
|
|
5487
|
+
yl as generateSemanticFontVariables,
|
|
5488
|
+
wl as generateSemanticMotionVariables,
|
|
5489
|
+
xl as generateSemanticRadiusVariables,
|
|
5490
|
+
kl as generateSemanticShadowVariables,
|
|
5491
|
+
Sl as generateSemanticSpacingVariables,
|
|
5492
|
+
Cl as generateSemanticTextShadowVariables,
|
|
5493
|
+
Il as generateSemanticTokenVariables,
|
|
5494
|
+
Tl as generateShadowVariables,
|
|
5495
|
+
_l as generateSpacingVariables,
|
|
5496
|
+
$l as generateTextShadowVariables,
|
|
5497
|
+
Pl as generateTypographyVariables,
|
|
5498
|
+
Dl as generateZIndexVariables,
|
|
5499
|
+
Ll as getBreakpointMediaQuery,
|
|
5500
|
+
Al as getBreakpointVar,
|
|
5501
|
+
Vl as getBreakpointVarName,
|
|
5480
5502
|
ct as getColorVar,
|
|
5481
|
-
|
|
5482
|
-
|
|
5483
|
-
|
|
5484
|
-
|
|
5485
|
-
|
|
5486
|
-
|
|
5487
|
-
|
|
5488
|
-
|
|
5489
|
-
|
|
5490
|
-
|
|
5491
|
-
|
|
5492
|
-
|
|
5493
|
-
|
|
5494
|
-
|
|
5495
|
-
|
|
5496
|
-
|
|
5497
|
-
|
|
5498
|
-
|
|
5499
|
-
|
|
5500
|
-
|
|
5501
|
-
|
|
5502
|
-
|
|
5503
|
+
qs as getColorVarName,
|
|
5504
|
+
Ki as getContrastRatio,
|
|
5505
|
+
Ds as getDirectionClassName,
|
|
5506
|
+
Ls as getDirectionFromLocale,
|
|
5507
|
+
Bl as getFontFamilyVar,
|
|
5508
|
+
Ml as getFontFamilyVarName,
|
|
5509
|
+
El as getFontSizeVar,
|
|
5510
|
+
Ol as getFontSizeVarName,
|
|
5511
|
+
Nl as getFontWeightVar,
|
|
5512
|
+
Fl as getFontWeightVarName,
|
|
5513
|
+
As as getIconLocally,
|
|
5514
|
+
Rl as getLetterSpacingVar,
|
|
5515
|
+
Ul as getLetterSpacingVarName,
|
|
5516
|
+
jl as getLineHeightVar,
|
|
5517
|
+
Hl as getLineHeightVarName,
|
|
5518
|
+
Wl as getMotionDurationVar,
|
|
5519
|
+
zl as getMotionDurationVarName,
|
|
5520
|
+
Yl as getMotionEasingVar,
|
|
5521
|
+
Gl as getMotionEasingVarName,
|
|
5522
|
+
Vs as getOppositeDirection,
|
|
5523
|
+
Bs as getPhysicalProperty,
|
|
5524
|
+
Zl as getRadiusMediaQuery,
|
|
5503
5525
|
Sn as getRadiusVar,
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
-
|
|
5507
|
-
|
|
5508
|
-
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
|
|
5519
|
-
|
|
5520
|
-
|
|
5521
|
-
|
|
5522
|
-
|
|
5523
|
-
|
|
5524
|
-
|
|
5525
|
-
|
|
5526
|
-
|
|
5527
|
-
|
|
5526
|
+
Jl as getRadiusVarName,
|
|
5527
|
+
ql as getSemanticFontVar,
|
|
5528
|
+
Kl as getSemanticFontVarName,
|
|
5529
|
+
Ql as getSemanticMotionVarName,
|
|
5530
|
+
Xl as getSemanticRadiusVarName,
|
|
5531
|
+
eo as getSemanticShadowVarName,
|
|
5532
|
+
to as getSemanticSpacingVarName,
|
|
5533
|
+
no as getSemanticTextShadowVarName,
|
|
5534
|
+
ao as getShadowVar,
|
|
5535
|
+
ro as getShadowVarName,
|
|
5536
|
+
so as getSpacingVar,
|
|
5537
|
+
lo as getSpacingVarName,
|
|
5538
|
+
oo as getTextShadowVar,
|
|
5539
|
+
io as getTextShadowVarName,
|
|
5540
|
+
co as getTokenValue,
|
|
5541
|
+
uo as getZIndexVar,
|
|
5542
|
+
po as getZIndexVarName,
|
|
5543
|
+
Qi as hexToRgb,
|
|
5544
|
+
Xi as hslToRgb,
|
|
5545
|
+
ec as hwbToRgb,
|
|
5546
|
+
or as increaseSize,
|
|
5547
|
+
Ks as interactiveColors,
|
|
5548
|
+
Ms as isIndexedDBAvailable,
|
|
5549
|
+
Es as isRTLLocale,
|
|
5528
5550
|
Ta as isUrlMatch,
|
|
5529
|
-
|
|
5551
|
+
Vn as isValidColor,
|
|
5530
5552
|
kt as isValidHexColor,
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
|
|
5539
|
-
|
|
5553
|
+
tc as isValidHslColor,
|
|
5554
|
+
nc as isValidRgbColor,
|
|
5555
|
+
ac as isValidRgbaColor,
|
|
5556
|
+
fo as letterSpacing,
|
|
5557
|
+
bo as lineHeight,
|
|
5558
|
+
rc as linearToSrgb,
|
|
5559
|
+
Os as makeI18nProvider,
|
|
5560
|
+
Go as makeMapValidation,
|
|
5561
|
+
Ns as makeMessages,
|
|
5540
5562
|
Rt as makeOnBlurHandler,
|
|
5541
5563
|
Ut as makeOnChangeHandler,
|
|
5542
|
-
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
|
|
5564
|
+
go as motionDurations,
|
|
5565
|
+
mo as motionEasings,
|
|
5566
|
+
sc as mulberry32,
|
|
5567
|
+
Qs as normalizeColorName,
|
|
5546
5568
|
Pe as normalizeHexColor,
|
|
5547
5569
|
Ln as nullToEmpty,
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5570
|
+
ci as object,
|
|
5571
|
+
lc as oklchToRgb,
|
|
5572
|
+
oc as parseAnyColor,
|
|
5573
|
+
Zo as parsePath,
|
|
5574
|
+
Jo as pathToString,
|
|
5575
|
+
ho as radius,
|
|
5576
|
+
Fs as resolveDirection,
|
|
5577
|
+
ic as resolveEffectiveFormat,
|
|
5578
|
+
Xs as resolveSemanticColorMap,
|
|
5579
|
+
cc as rgbToHex,
|
|
5580
|
+
uc as rgbToHsl,
|
|
5581
|
+
dc as rgbToHwb,
|
|
5582
|
+
pc as rgbToOklch,
|
|
5583
|
+
el as semanticColorNames,
|
|
5584
|
+
tl as semanticColors,
|
|
5585
|
+
vo as semanticFontNames,
|
|
5586
|
+
yo as semanticMotionNames,
|
|
5587
|
+
wo as semanticRadiusNames,
|
|
5588
|
+
xo as semanticShadowNames,
|
|
5589
|
+
ko as semanticSpacingNames,
|
|
5590
|
+
So as semanticTextShadowNames,
|
|
5569
5591
|
me as sessionId,
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5592
|
+
Co as shadows,
|
|
5593
|
+
Io as spacing,
|
|
5594
|
+
fc as srgbToLinear,
|
|
5595
|
+
qo as standardSchemaResultToValidation,
|
|
5596
|
+
Rs as storeIconLocally,
|
|
5597
|
+
ui as string,
|
|
5598
|
+
Ko as taskToValidation,
|
|
5599
|
+
nl as textColors,
|
|
5600
|
+
To as textShadows,
|
|
5601
|
+
al as themeColorNames,
|
|
5602
|
+
bc as toRgbaString,
|
|
5603
|
+
gc as transformEmptyStringToUndefined,
|
|
5604
|
+
mc as transformNullToUndefined,
|
|
5605
|
+
hc as transformUndefinedToNull,
|
|
5584
5606
|
Me as useAnimatedElementToggle,
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5607
|
+
di as useAnimatedToggle,
|
|
5608
|
+
Qo as useController,
|
|
5609
|
+
pi as useFocusTrap,
|
|
5610
|
+
Xo as useForm,
|
|
5611
|
+
fi as useTimedToggle,
|
|
5612
|
+
ei as wrapSegment,
|
|
5613
|
+
_o as zIndex
|
|
5592
5614
|
};
|