@tempots/beatui 0.60.3 → 0.60.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +215 -221
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { prop as Z, html as d, attr as r, computedOf as
|
|
1
|
+
import { prop as Z, html as d, attr as r, computedOf as T, Fragment as F, OnDispose as re, style as S, on as V, WithElement as ee, When as K, Value as h, Use as ne, Empty as W, input as de, emitValue as X, aria as M, OneOfValue as pn, Unless as fn, coalesce as Ie, ForEach as _e, Ensure as Ge, 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
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 Me, NavigationService as kn, Anchor as ot } from "@tempots/ui";
|
|
4
4
|
import { i as se, t as we, h as ht, e as ie, a as le, I as Q, b as oe, C as pe, B as vt, c as ze, L as it, j as yt, k as wt } from "./translations-g3qGTkzw.js";
|
|
5
|
-
import { x as Cs, T as
|
|
5
|
+
import { x as Cs, T as Ts, l as Is, 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
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 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
|
|
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 Tl, E as Il, 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 To, af as Io, a1 as _o } from "./index-CpZh_Snx.js";
|
|
10
10
|
import { C as Oe, 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
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 Ee, A as rt, a as
|
|
12
|
+
import { u as Ee, A as rt, a as Tn, O as Wt, F as In } from "./modal-DJDeFIxV.js";
|
|
13
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
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
|
|
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 Ti, s as Ii, 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 Ye, x as St } from "./timer-DzWb416P.js";
|
|
18
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
|
|
19
|
+
import { T as xc, a as kc, c as Sc, b as Cc, d as Tc } from "./toolbar-_yJ-dm-Z.js";
|
|
20
20
|
function lr(e, t = 0, n = () => !0) {
|
|
21
21
|
let a = null, s;
|
|
22
22
|
const o = Z(e.value);
|
|
@@ -117,7 +117,7 @@ function ir({
|
|
|
117
117
|
}, ...i) {
|
|
118
118
|
return d.span(
|
|
119
119
|
r.class(
|
|
120
|
-
|
|
120
|
+
T(
|
|
121
121
|
t,
|
|
122
122
|
a,
|
|
123
123
|
s,
|
|
@@ -132,7 +132,7 @@ function ir({
|
|
|
132
132
|
)
|
|
133
133
|
),
|
|
134
134
|
r.style(
|
|
135
|
-
|
|
135
|
+
T(
|
|
136
136
|
e,
|
|
137
137
|
n
|
|
138
138
|
)(
|
|
@@ -155,7 +155,7 @@ function cr({
|
|
|
155
155
|
}) {
|
|
156
156
|
const i = Z(!1), c = Z([]);
|
|
157
157
|
let u = null, l = 0;
|
|
158
|
-
const f = (y) => y.dataTransfer?.types.includes("Files") ?? !1, g = (y,
|
|
158
|
+
const f = (y) => y.dataTransfer?.types.includes("Files") ?? !1, g = (y, I) => I === "*/*" ? !0 : I.split(",").map(($) => $.trim()).some(($) => {
|
|
159
159
|
if ($ === "*/*") return !0;
|
|
160
160
|
if ($.endsWith("/*")) {
|
|
161
161
|
const P = $.slice(0, -2);
|
|
@@ -171,14 +171,14 @@ function cr({
|
|
|
171
171
|
}, v = (y) => {
|
|
172
172
|
if (h.get(o) || !f(y)) return;
|
|
173
173
|
y.preventDefault(), y.stopPropagation(), l = 0, i.value = !1;
|
|
174
|
-
const
|
|
175
|
-
if (
|
|
176
|
-
const _ = h.get(t), $ =
|
|
174
|
+
const I = Array.from(y.dataTransfer?.files ?? []);
|
|
175
|
+
if (I.length > 0) {
|
|
176
|
+
const _ = h.get(t), $ = I.filter(
|
|
177
177
|
(C) => g(C, _)
|
|
178
|
-
), P =
|
|
178
|
+
), P = I.filter(
|
|
179
179
|
(C) => !$.includes(C)
|
|
180
180
|
);
|
|
181
|
-
$.length > 0 && (c.value = $, e($, "dragdrop")), P.length > 0 && s?.(
|
|
181
|
+
$.length > 0 && (c.value = $, e($, "dragdrop")), P.length > 0 && s?.(I);
|
|
182
182
|
}
|
|
183
183
|
};
|
|
184
184
|
typeof document < "u" && (document.addEventListener("dragenter", k), document.addEventListener("dragover", m), document.addEventListener("dragleave", w), document.addEventListener("drop", v));
|
|
@@ -187,8 +187,8 @@ function cr({
|
|
|
187
187
|
}, b = () => {
|
|
188
188
|
u?.click();
|
|
189
189
|
}, p = (y) => {
|
|
190
|
-
const
|
|
191
|
-
_.length > 0 && (c.value = _, e(_, "click")),
|
|
190
|
+
const I = y.target, _ = Array.from(I.files ?? []);
|
|
191
|
+
_.length > 0 && (c.value = _, e(_, "click")), I.value = "";
|
|
192
192
|
};
|
|
193
193
|
return F(
|
|
194
194
|
re(x),
|
|
@@ -232,7 +232,7 @@ function ur({
|
|
|
232
232
|
withRowBorders: c = !0,
|
|
233
233
|
borderRadius: u
|
|
234
234
|
} = {}, ...l) {
|
|
235
|
-
const f =
|
|
235
|
+
const f = T(
|
|
236
236
|
e,
|
|
237
237
|
t,
|
|
238
238
|
n,
|
|
@@ -248,14 +248,14 @@ function ur({
|
|
|
248
248
|
b ?? !1,
|
|
249
249
|
p ?? !0
|
|
250
250
|
)
|
|
251
|
-
), g =
|
|
251
|
+
), g = T(
|
|
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(" ");
|
|
258
|
-
}), k =
|
|
258
|
+
}), k = T(u)(
|
|
259
259
|
(m) => Nn(m)
|
|
260
260
|
);
|
|
261
261
|
return d.div(
|
|
@@ -290,13 +290,13 @@ const Zt = ({
|
|
|
290
290
|
disabled: o
|
|
291
291
|
}) => d.span(
|
|
292
292
|
r.class(
|
|
293
|
-
|
|
293
|
+
T(
|
|
294
294
|
a ?? "md",
|
|
295
295
|
o ?? !1
|
|
296
296
|
)((i, c) => Fn(i, c))
|
|
297
297
|
),
|
|
298
298
|
r.style(
|
|
299
|
-
|
|
299
|
+
T(t)(
|
|
300
300
|
(i) => Rn(i ?? "base")
|
|
301
301
|
)
|
|
302
302
|
),
|
|
@@ -418,7 +418,7 @@ function Ze(e) {
|
|
|
418
418
|
initialStatus: "closed"
|
|
419
419
|
}), v = me("flyout"), x = Z(!1);
|
|
420
420
|
let b = null, p = null, y = !1;
|
|
421
|
-
function
|
|
421
|
+
function I() {
|
|
422
422
|
$ != null && (clearTimeout($), $ = null), C != null && (clearTimeout(C), C = null), p && (p(), p = null), b && (document.removeEventListener("keydown", b), b = null), x.set(!1), y = !1;
|
|
423
423
|
}
|
|
424
424
|
function _() {
|
|
@@ -441,7 +441,7 @@ function Ze(e) {
|
|
|
441
441
|
};
|
|
442
442
|
return document.addEventListener("keydown", E, !0), F(
|
|
443
443
|
re(() => {
|
|
444
|
-
|
|
444
|
+
I(), document.removeEventListener("keydown", E, !0);
|
|
445
445
|
}),
|
|
446
446
|
r.class("bc-flyout-container"),
|
|
447
447
|
r.id(v),
|
|
@@ -477,13 +477,13 @@ function Ze(e) {
|
|
|
477
477
|
let C = null;
|
|
478
478
|
function L() {
|
|
479
479
|
if ($ != null && (clearTimeout($), $ = null), C != null && (clearTimeout(C), C = null), x.set(!1), p && (p(), p = null, y)) {
|
|
480
|
-
m(),
|
|
480
|
+
m(), I();
|
|
481
481
|
return;
|
|
482
482
|
}
|
|
483
483
|
const R = h.get(s);
|
|
484
484
|
C = setTimeout(() => {
|
|
485
485
|
C = null, w.close(), w.listenOnClosed(() => {
|
|
486
|
-
m(),
|
|
486
|
+
m(), I();
|
|
487
487
|
});
|
|
488
488
|
}, R);
|
|
489
489
|
}
|
|
@@ -570,7 +570,7 @@ function fr({
|
|
|
570
570
|
const m = o != null;
|
|
571
571
|
return d.div(
|
|
572
572
|
r.class(
|
|
573
|
-
|
|
573
|
+
T(
|
|
574
574
|
a,
|
|
575
575
|
s,
|
|
576
576
|
i
|
|
@@ -584,7 +584,7 @@ function fr({
|
|
|
584
584
|
)
|
|
585
585
|
),
|
|
586
586
|
r.style(
|
|
587
|
-
|
|
587
|
+
T(
|
|
588
588
|
l,
|
|
589
589
|
f,
|
|
590
590
|
g,
|
|
@@ -787,7 +787,7 @@ const ge = {
|
|
|
787
787
|
xl: 280
|
|
788
788
|
}
|
|
789
789
|
};
|
|
790
|
-
function
|
|
790
|
+
function Tt(e, t) {
|
|
791
791
|
if (typeof e == "number")
|
|
792
792
|
return {
|
|
793
793
|
zero: e,
|
|
@@ -920,14 +920,14 @@ function mr({
|
|
|
920
920
|
Qn.filter((o) => n[o]).map(
|
|
921
921
|
(o) => [
|
|
922
922
|
o,
|
|
923
|
-
|
|
923
|
+
Tt(n[o].width ?? {}, ge[o])
|
|
924
924
|
]
|
|
925
925
|
)
|
|
926
926
|
), s = Object.fromEntries(
|
|
927
927
|
Xn.filter((o) => n[o]).map(
|
|
928
928
|
(o) => [
|
|
929
929
|
o,
|
|
930
|
-
|
|
930
|
+
Tt(n[o].height ?? {}, ge[o])
|
|
931
931
|
]
|
|
932
932
|
)
|
|
933
933
|
);
|
|
@@ -940,17 +940,17 @@ function mr({
|
|
|
940
940
|
vertical: a,
|
|
941
941
|
horizontal: s,
|
|
942
942
|
is: c
|
|
943
|
-
}), l = i.map(u), f = s.header != null || a.menu != null || a.aside != null, g =
|
|
943
|
+
}), l = i.map(u), f = s.header != null || a.menu != null || a.aside != null, g = T(
|
|
944
944
|
a.aside != null,
|
|
945
945
|
l
|
|
946
|
-
)((p, { displayAside: y }) => p && !y), k =
|
|
946
|
+
)((p, { displayAside: y }) => p && !y), k = T(
|
|
947
947
|
a.menu != null,
|
|
948
948
|
l
|
|
949
|
-
)((p, { displayMenu: y }) => p && !y), m = Ee(), w = Ee(), v = Z(0), x =
|
|
949
|
+
)((p, { displayMenu: y }) => p && !y), m = Ee(), w = Ee(), v = Z(0), x = T(
|
|
950
950
|
a.menu != null,
|
|
951
951
|
l,
|
|
952
952
|
m.display
|
|
953
|
-
)(ea), b =
|
|
953
|
+
)(ea), b = T(
|
|
954
954
|
a.aside != null,
|
|
955
955
|
l,
|
|
956
956
|
w.display
|
|
@@ -1068,13 +1068,13 @@ function mr({
|
|
|
1068
1068
|
S.overflow("hidden"),
|
|
1069
1069
|
S.gridArea("menu"),
|
|
1070
1070
|
S.display(
|
|
1071
|
-
|
|
1071
|
+
T(
|
|
1072
1072
|
x,
|
|
1073
1073
|
m.status
|
|
1074
1074
|
)((p, y) => p === "none" && y === "closed" ? "none" : "block")
|
|
1075
1075
|
),
|
|
1076
1076
|
S.position(
|
|
1077
|
-
|
|
1077
|
+
T(
|
|
1078
1078
|
x,
|
|
1079
1079
|
m.status
|
|
1080
1080
|
)((p, y) => p === "float" || p === "none" && y !== "closed" ? "fixed" : "initial")
|
|
@@ -1082,12 +1082,12 @@ function mr({
|
|
|
1082
1082
|
S.top(v.map((p) => `${p}px`)),
|
|
1083
1083
|
rt({
|
|
1084
1084
|
animation: { slide: "right" },
|
|
1085
|
-
status:
|
|
1085
|
+
status: T(
|
|
1086
1086
|
x,
|
|
1087
1087
|
m.status
|
|
1088
1088
|
)((p, y) => p === "block" ? "opened" : y)
|
|
1089
1089
|
}),
|
|
1090
|
-
S.width(
|
|
1090
|
+
S.width(Ie(n.menu?.width, l.$.menuWidth)),
|
|
1091
1091
|
S.bottom("0"),
|
|
1092
1092
|
n.menu?.content
|
|
1093
1093
|
) : null,
|
|
@@ -1142,13 +1142,13 @@ function mr({
|
|
|
1142
1142
|
S.height("100%"),
|
|
1143
1143
|
S.gridArea("aside"),
|
|
1144
1144
|
S.display(
|
|
1145
|
-
|
|
1145
|
+
T(
|
|
1146
1146
|
b,
|
|
1147
1147
|
w.status
|
|
1148
1148
|
)((p, y) => p === "none" && y === "closed" ? "none" : "block")
|
|
1149
1149
|
),
|
|
1150
1150
|
S.position(
|
|
1151
|
-
|
|
1151
|
+
T(
|
|
1152
1152
|
b,
|
|
1153
1153
|
w.status
|
|
1154
1154
|
)((p, y) => p === "float" || p === "none" && y !== "closed" ? "fixed" : "initial")
|
|
@@ -1156,13 +1156,13 @@ function mr({
|
|
|
1156
1156
|
S.top(v.map((p) => `${p}px`)),
|
|
1157
1157
|
rt({
|
|
1158
1158
|
animation: { slide: "left" },
|
|
1159
|
-
status:
|
|
1159
|
+
status: T(
|
|
1160
1160
|
b,
|
|
1161
1161
|
w.status
|
|
1162
1162
|
)((p, y) => p === "block" ? "opened" : y)
|
|
1163
1163
|
}),
|
|
1164
1164
|
S.width(
|
|
1165
|
-
|
|
1165
|
+
Ie(n.aside?.width, l.$.asideWidth)
|
|
1166
1166
|
),
|
|
1167
1167
|
S.bottom(v.map((p) => `${p}px`)),
|
|
1168
1168
|
n.aside.content
|
|
@@ -1190,7 +1190,7 @@ function na(e) {
|
|
|
1190
1190
|
}
|
|
1191
1191
|
function vr({ gap: e = "lg" } = {}, ...t) {
|
|
1192
1192
|
return d.div(
|
|
1193
|
-
r.class(
|
|
1193
|
+
r.class(T(e)((n) => na(n ?? "lg"))),
|
|
1194
1194
|
...t
|
|
1195
1195
|
);
|
|
1196
1196
|
}
|
|
@@ -1202,7 +1202,7 @@ function aa({ open: e }, ...t) {
|
|
|
1202
1202
|
});
|
|
1203
1203
|
return h.on(e, s), De((i) => {
|
|
1204
1204
|
const c = Z(null);
|
|
1205
|
-
return
|
|
1205
|
+
return T(
|
|
1206
1206
|
a,
|
|
1207
1207
|
i.$.height
|
|
1208
1208
|
)((l, f) => l === "opened" && f > 0 ? f : null).on((l) => {
|
|
@@ -1228,7 +1228,7 @@ function aa({ open: e }, ...t) {
|
|
|
1228
1228
|
function ra(e) {
|
|
1229
1229
|
return `${e}px`;
|
|
1230
1230
|
}
|
|
1231
|
-
function
|
|
1231
|
+
function It(e) {
|
|
1232
1232
|
return h.map(e, ra);
|
|
1233
1233
|
}
|
|
1234
1234
|
function yr({
|
|
@@ -1249,36 +1249,36 @@ function yr({
|
|
|
1249
1249
|
sidebarEndWidth: w = 0,
|
|
1250
1250
|
anchorMode: v = "container-edge"
|
|
1251
1251
|
}) {
|
|
1252
|
-
const x = Z(0n), b = Z(0n), p =
|
|
1252
|
+
const x = Z(0n), b = Z(0n), p = It(s), y = It(k), I = Z(16);
|
|
1253
1253
|
return d.div(
|
|
1254
1254
|
r.class("bc-nine-slice-container"),
|
|
1255
1255
|
De((_) => {
|
|
1256
|
-
const $ =
|
|
1256
|
+
const $ = T(
|
|
1257
1257
|
_.$.width,
|
|
1258
1258
|
k,
|
|
1259
1259
|
w
|
|
1260
|
-
)((A, N, q) => A - N - q), P =
|
|
1260
|
+
)((A, N, q) => A - N - q), P = T(
|
|
1261
1261
|
_.$.height,
|
|
1262
1262
|
s,
|
|
1263
1263
|
u
|
|
1264
|
-
)((A, N, q) => A - N - q), C =
|
|
1264
|
+
)((A, N, q) => A - N - q), C = T(
|
|
1265
1265
|
t,
|
|
1266
1266
|
$
|
|
1267
|
-
)((A, N) => A > BigInt(N)), L =
|
|
1267
|
+
)((A, N) => A > BigInt(N)), L = T(
|
|
1268
1268
|
n,
|
|
1269
1269
|
P
|
|
1270
|
-
)((A, N) => A > BigInt(N)), R =
|
|
1270
|
+
)((A, N) => A > BigInt(N)), R = T(
|
|
1271
1271
|
$,
|
|
1272
1272
|
L,
|
|
1273
|
-
|
|
1274
|
-
)((A, N, q) => N ? A - q : A), E =
|
|
1273
|
+
I
|
|
1274
|
+
)((A, N, q) => N ? A - q : A), E = T(
|
|
1275
1275
|
P,
|
|
1276
1276
|
C,
|
|
1277
|
-
|
|
1278
|
-
)((A, N, q) => N ? A - q : A), j =
|
|
1277
|
+
I
|
|
1278
|
+
)((A, N, q) => N ? A - q : A), j = T(
|
|
1279
1279
|
t,
|
|
1280
1280
|
R
|
|
1281
|
-
)((A, N) => Number(A / BigInt(Math.max(1, N)))), te =
|
|
1281
|
+
)((A, N) => Number(A / BigInt(Math.max(1, N)))), te = T(
|
|
1282
1282
|
n,
|
|
1283
1283
|
E
|
|
1284
1284
|
)((A, N) => Number(A / BigInt(Math.max(1, N)))), H = h.map(
|
|
@@ -1287,7 +1287,7 @@ function yr({
|
|
|
1287
1287
|
), O = K(
|
|
1288
1288
|
H,
|
|
1289
1289
|
() => S.left(
|
|
1290
|
-
|
|
1290
|
+
T(
|
|
1291
1291
|
k,
|
|
1292
1292
|
t,
|
|
1293
1293
|
R,
|
|
@@ -1304,7 +1304,7 @@ function yr({
|
|
|
1304
1304
|
), ce = K(
|
|
1305
1305
|
G,
|
|
1306
1306
|
() => S.top(
|
|
1307
|
-
|
|
1307
|
+
T(
|
|
1308
1308
|
s,
|
|
1309
1309
|
n,
|
|
1310
1310
|
E,
|
|
@@ -1315,14 +1315,14 @@ function yr({
|
|
|
1315
1315
|
})
|
|
1316
1316
|
),
|
|
1317
1317
|
() => S.bottom("0")
|
|
1318
|
-
), Ve =
|
|
1318
|
+
), Ve = T(
|
|
1319
1319
|
L,
|
|
1320
|
-
|
|
1321
|
-
)((A, N) => A ? `${N}px` : "0"), ue =
|
|
1320
|
+
I
|
|
1321
|
+
)((A, N) => A ? `${N}px` : "0"), ue = T(
|
|
1322
1322
|
C,
|
|
1323
|
-
|
|
1323
|
+
I
|
|
1324
1324
|
)((A, N) => A ? `${N}px` : "0"), Ne = S.transform(
|
|
1325
|
-
|
|
1325
|
+
T(
|
|
1326
1326
|
b,
|
|
1327
1327
|
x,
|
|
1328
1328
|
C,
|
|
@@ -1335,10 +1335,10 @@ function yr({
|
|
|
1335
1335
|
b.map((A) => `translateX(-${A}px)`)
|
|
1336
1336
|
), ke = S.transform(
|
|
1337
1337
|
x.map((A) => `translateY(-${A}px)`)
|
|
1338
|
-
), Re =
|
|
1338
|
+
), Re = T(
|
|
1339
1339
|
n,
|
|
1340
1340
|
E
|
|
1341
|
-
)((A, N) => A - BigInt(Math.max(1, N))), $e =
|
|
1341
|
+
)((A, N) => A - BigInt(Math.max(1, N))), $e = T(
|
|
1342
1342
|
t,
|
|
1343
1343
|
R
|
|
1344
1344
|
)((A, N) => A - BigInt(Math.max(1, N)));
|
|
@@ -1492,9 +1492,9 @@ function yr({
|
|
|
1492
1492
|
S.overflowX("scroll"),
|
|
1493
1493
|
S.left("0"),
|
|
1494
1494
|
S.right(
|
|
1495
|
-
|
|
1495
|
+
T(
|
|
1496
1496
|
L,
|
|
1497
|
-
|
|
1497
|
+
I
|
|
1498
1498
|
)((A, N) => A ? `${N}px` : "0")
|
|
1499
1499
|
),
|
|
1500
1500
|
S.bottom("0"),
|
|
@@ -1529,9 +1529,9 @@ function yr({
|
|
|
1529
1529
|
S.overflowY("scroll"),
|
|
1530
1530
|
S.top("0"),
|
|
1531
1531
|
S.bottom(
|
|
1532
|
-
|
|
1532
|
+
T(
|
|
1533
1533
|
C,
|
|
1534
|
-
|
|
1534
|
+
I
|
|
1535
1535
|
)((A, N) => A ? `${N}px` : "0")
|
|
1536
1536
|
),
|
|
1537
1537
|
S.right("0"),
|
|
@@ -1546,7 +1546,7 @@ function yr({
|
|
|
1546
1546
|
),
|
|
1547
1547
|
S.width("100%"),
|
|
1548
1548
|
S.height(
|
|
1549
|
-
|
|
1549
|
+
T(
|
|
1550
1550
|
s,
|
|
1551
1551
|
u,
|
|
1552
1552
|
n,
|
|
@@ -1578,7 +1578,7 @@ function _t({ header: e, footer: t, body: n, shadowOnScroll: a = !0 }, ...s) {
|
|
|
1578
1578
|
return d.div(
|
|
1579
1579
|
r.class("bc-scrollable-panel"),
|
|
1580
1580
|
r.class(
|
|
1581
|
-
|
|
1581
|
+
T(
|
|
1582
1582
|
o,
|
|
1583
1583
|
a
|
|
1584
1584
|
)((u, l) => {
|
|
@@ -1620,7 +1620,7 @@ function sa(e, t, n) {
|
|
|
1620
1620
|
function wr({ variant: e = "default", size: t = "md", roundedness: n = "lg" } = {}, ...a) {
|
|
1621
1621
|
return d.div(
|
|
1622
1622
|
r.class(
|
|
1623
|
-
|
|
1623
|
+
T(
|
|
1624
1624
|
e,
|
|
1625
1625
|
t,
|
|
1626
1626
|
n
|
|
@@ -1681,30 +1681,30 @@ const xe = {
|
|
|
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
|
|
1684
|
+
const I = xe.getValues(h.get(o));
|
|
1685
1685
|
switch (y.key) {
|
|
1686
1686
|
case "ArrowDown": {
|
|
1687
1687
|
if (y.preventDefault(), !f.value)
|
|
1688
|
-
f.set(!0),
|
|
1688
|
+
f.set(!0), I.length > 0 && (g.set(0), k.set(I[0]));
|
|
1689
1689
|
else {
|
|
1690
1690
|
const _ = Math.min(
|
|
1691
1691
|
g.value + 1,
|
|
1692
|
-
|
|
1692
|
+
I.length - 1
|
|
1693
1693
|
);
|
|
1694
|
-
g.set(_), k.set(
|
|
1694
|
+
g.set(_), k.set(I[_] ?? null);
|
|
1695
1695
|
}
|
|
1696
1696
|
break;
|
|
1697
1697
|
}
|
|
1698
1698
|
case "ArrowUp": {
|
|
1699
1699
|
if (y.preventDefault(), f.value) {
|
|
1700
1700
|
const _ = Math.max(g.value - 1, 0);
|
|
1701
|
-
g.set(_), k.set(
|
|
1701
|
+
g.set(_), k.set(I[_] ?? null);
|
|
1702
1702
|
}
|
|
1703
1703
|
break;
|
|
1704
1704
|
}
|
|
1705
1705
|
case "Enter": {
|
|
1706
1706
|
if (y.preventDefault(), f.value && g.value >= 0) {
|
|
1707
|
-
const _ =
|
|
1707
|
+
const _ = I[g.value];
|
|
1708
1708
|
_ != null && b(_);
|
|
1709
1709
|
} else {
|
|
1710
1710
|
c?.();
|
|
@@ -1740,8 +1740,8 @@ const xe = {
|
|
|
1740
1740
|
)
|
|
1741
1741
|
},
|
|
1742
1742
|
De((y) => F(
|
|
1743
|
-
ee((
|
|
1744
|
-
() =>
|
|
1743
|
+
ee((I) => (v = I, I.addEventListener("keydown", p), re(
|
|
1744
|
+
() => I.removeEventListener("keydown", p)
|
|
1745
1745
|
))),
|
|
1746
1746
|
pe(e),
|
|
1747
1747
|
r.id(m),
|
|
@@ -1751,11 +1751,11 @@ const xe = {
|
|
|
1751
1751
|
r.class("bc-dropdown"),
|
|
1752
1752
|
r.role(a),
|
|
1753
1753
|
M.activedescendant(
|
|
1754
|
-
|
|
1754
|
+
T(
|
|
1755
1755
|
f,
|
|
1756
1756
|
k
|
|
1757
1757
|
)(
|
|
1758
|
-
(
|
|
1758
|
+
(I, _) => I && _ != null ? `dropdown-option-${String(_)}` : ""
|
|
1759
1759
|
)
|
|
1760
1760
|
),
|
|
1761
1761
|
n != null ? V.blur(() => {
|
|
@@ -1765,10 +1765,10 @@ const xe = {
|
|
|
1765
1765
|
}) : W,
|
|
1766
1766
|
Ze({
|
|
1767
1767
|
content: () => d.div(
|
|
1768
|
-
ee((
|
|
1769
|
-
x =
|
|
1768
|
+
ee((I) => {
|
|
1769
|
+
x = I;
|
|
1770
1770
|
}),
|
|
1771
|
-
S.minWidth(y.$.width.map((
|
|
1771
|
+
S.minWidth(y.$.width.map((I) => `${I - 10}px`)),
|
|
1772
1772
|
r.class("bc-dropdown__listbox"),
|
|
1773
1773
|
r.role("listbox"),
|
|
1774
1774
|
r.id(w),
|
|
@@ -1784,7 +1784,7 @@ const xe = {
|
|
|
1784
1784
|
mainAxisOffset: 0,
|
|
1785
1785
|
placement: "bottom-start",
|
|
1786
1786
|
hasPopup: "listbox",
|
|
1787
|
-
showOn: (
|
|
1787
|
+
showOn: (I, _) => {
|
|
1788
1788
|
const $ = _;
|
|
1789
1789
|
_ = () => {
|
|
1790
1790
|
f.set(!1), g.set(-1), k.set(null), $();
|
|
@@ -1795,7 +1795,7 @@ const xe = {
|
|
|
1795
1795
|
else {
|
|
1796
1796
|
c?.();
|
|
1797
1797
|
const C = xe.getValues(h.get(o));
|
|
1798
|
-
f.set(!0), C.length > 0 && (g.set(0), k.set(C[0])),
|
|
1798
|
+
f.set(!0), C.length > 0 && (g.set(0), k.set(C[0])), I(), setTimeout(() => u?.(), 0);
|
|
1799
1799
|
}
|
|
1800
1800
|
};
|
|
1801
1801
|
return V.click(P);
|
|
@@ -1810,17 +1810,17 @@ const xe = {
|
|
|
1810
1810
|
e,
|
|
1811
1811
|
(o) => Mt(o, {
|
|
1812
1812
|
value: (i) => {
|
|
1813
|
-
const c =
|
|
1813
|
+
const c = T(
|
|
1814
1814
|
i,
|
|
1815
1815
|
n
|
|
1816
|
-
)((l, f) => t(l.value, f)), u =
|
|
1816
|
+
)((l, f) => t(l.value, f)), u = T(
|
|
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(
|
|
1823
|
-
|
|
1823
|
+
T(
|
|
1824
1824
|
c,
|
|
1825
1825
|
u,
|
|
1826
1826
|
i
|
|
@@ -1878,7 +1878,7 @@ const xe = {
|
|
|
1878
1878
|
equality: s = (l, f) => l === f,
|
|
1879
1879
|
placeholder: o,
|
|
1880
1880
|
searchable: i = !1
|
|
1881
|
-
} = e, c =
|
|
1881
|
+
} = e, c = T(
|
|
1882
1882
|
t,
|
|
1883
1883
|
n
|
|
1884
1884
|
)((l, f) => {
|
|
@@ -1894,7 +1894,7 @@ const xe = {
|
|
|
1894
1894
|
}
|
|
1895
1895
|
};
|
|
1896
1896
|
return g(f) || String(l);
|
|
1897
|
-
}), u =
|
|
1897
|
+
}), u = T(i)((l) => !l);
|
|
1898
1898
|
return qt({
|
|
1899
1899
|
...e,
|
|
1900
1900
|
role: "dropdown",
|
|
@@ -1903,7 +1903,7 @@ const xe = {
|
|
|
1903
1903
|
() => c,
|
|
1904
1904
|
() => ne(
|
|
1905
1905
|
le,
|
|
1906
|
-
(l) =>
|
|
1906
|
+
(l) => Ie(o, a, l.$.selectOne)
|
|
1907
1907
|
)
|
|
1908
1908
|
),
|
|
1909
1909
|
optionsSource: n,
|
|
@@ -1928,10 +1928,10 @@ const xe = {
|
|
|
1928
1928
|
e,
|
|
1929
1929
|
(i) => Mt(i, {
|
|
1930
1930
|
value: (c) => {
|
|
1931
|
-
const u =
|
|
1931
|
+
const u = T(
|
|
1932
1932
|
c,
|
|
1933
1933
|
n
|
|
1934
|
-
)((f, g) => t(f.value, g)), l =
|
|
1934
|
+
)((f, g) => t(f.value, g)), l = T(
|
|
1935
1935
|
c,
|
|
1936
1936
|
s
|
|
1937
1937
|
)(
|
|
@@ -1940,7 +1940,7 @@ const xe = {
|
|
|
1940
1940
|
return d.div(
|
|
1941
1941
|
r.class("bc-dropdown__option"),
|
|
1942
1942
|
r.class(
|
|
1943
|
-
|
|
1943
|
+
T(
|
|
1944
1944
|
u,
|
|
1945
1945
|
l,
|
|
1946
1946
|
c
|
|
@@ -2025,7 +2025,7 @@ const xe = {
|
|
|
2025
2025
|
...e,
|
|
2026
2026
|
role: "combobox",
|
|
2027
2027
|
display: K(
|
|
2028
|
-
|
|
2028
|
+
T(t)((p) => p != null),
|
|
2029
2029
|
w,
|
|
2030
2030
|
() => ne(le, (p) => p.$.selectOne)
|
|
2031
2031
|
),
|
|
@@ -2037,7 +2037,7 @@ const xe = {
|
|
|
2037
2037
|
onAfterOpen: () => {
|
|
2038
2038
|
k?.focus();
|
|
2039
2039
|
},
|
|
2040
|
-
buildListboxContent: ({ focusedValue: p, handleKeyDown: y, onSelect:
|
|
2040
|
+
buildListboxContent: ({ focusedValue: p, handleKeyDown: y, onSelect: I }) => F(
|
|
2041
2041
|
// Search input at the top
|
|
2042
2042
|
d.div(
|
|
2043
2043
|
r.class("bc-dropdown__search"),
|
|
@@ -2045,7 +2045,7 @@ const xe = {
|
|
|
2045
2045
|
r.type("text"),
|
|
2046
2046
|
r.class("bc-dropdown__search-input"),
|
|
2047
2047
|
r.placeholder(
|
|
2048
|
-
|
|
2048
|
+
T(
|
|
2049
2049
|
c,
|
|
2050
2050
|
i
|
|
2051
2051
|
)((_, $) => _ ?? $ ?? "Search")
|
|
@@ -2071,7 +2071,7 @@ const xe = {
|
|
|
2071
2071
|
_,
|
|
2072
2072
|
o,
|
|
2073
2073
|
m,
|
|
2074
|
-
|
|
2074
|
+
I,
|
|
2075
2075
|
p,
|
|
2076
2076
|
a
|
|
2077
2077
|
)
|
|
@@ -2128,12 +2128,12 @@ function Xt(e) {
|
|
|
2128
2128
|
case "ArrowDown":
|
|
2129
2129
|
P.preventDefault(), P.stopPropagation();
|
|
2130
2130
|
const R = p(L, C, 1);
|
|
2131
|
-
|
|
2131
|
+
I(R, C);
|
|
2132
2132
|
break;
|
|
2133
2133
|
case "ArrowUp":
|
|
2134
2134
|
P.preventDefault(), P.stopPropagation();
|
|
2135
2135
|
const E = p(L, C, -1);
|
|
2136
|
-
|
|
2136
|
+
I(E, C);
|
|
2137
2137
|
break;
|
|
2138
2138
|
case "Enter":
|
|
2139
2139
|
case " ":
|
|
@@ -2149,10 +2149,10 @@ function Xt(e) {
|
|
|
2149
2149
|
l?.();
|
|
2150
2150
|
break;
|
|
2151
2151
|
case "Home":
|
|
2152
|
-
P.preventDefault(), P.stopPropagation(), C.length > 0 &&
|
|
2152
|
+
P.preventDefault(), P.stopPropagation(), C.length > 0 && I(0, C);
|
|
2153
2153
|
break;
|
|
2154
2154
|
case "End":
|
|
2155
|
-
P.preventDefault(), P.stopPropagation(), C.length > 0 &&
|
|
2155
|
+
P.preventDefault(), P.stopPropagation(), C.length > 0 && I(C.length - 1, C);
|
|
2156
2156
|
break;
|
|
2157
2157
|
case "ArrowRight":
|
|
2158
2158
|
if (P.preventDefault(), P.stopPropagation(), L >= 0 && C[L]) {
|
|
@@ -2166,7 +2166,7 @@ function Xt(e) {
|
|
|
2166
2166
|
P.preventDefault(), P.stopPropagation(), l?.();
|
|
2167
2167
|
break;
|
|
2168
2168
|
}
|
|
2169
|
-
},
|
|
2169
|
+
}, I = (P, C) => {
|
|
2170
2170
|
w.value >= 0 && C[w.value] && (C[w.value].classList.remove(
|
|
2171
2171
|
"bc-menu-item--focused"
|
|
2172
2172
|
), C[w.value].removeAttribute("aria-selected")), P >= 0 && C[P] && (C[P].classList.add("bc-menu-item--focused"), C[P].setAttribute("aria-selected", "true"), w.set(P), typeof C[P].scrollIntoView == "function" && C[P].scrollIntoView({ block: "nearest" }));
|
|
@@ -2178,7 +2178,7 @@ function Xt(e) {
|
|
|
2178
2178
|
const C = P.findIndex(
|
|
2179
2179
|
(L) => L.getAttribute("aria-disabled") !== "true"
|
|
2180
2180
|
);
|
|
2181
|
-
C >= 0 &&
|
|
2181
|
+
C >= 0 && I(C, P);
|
|
2182
2182
|
}
|
|
2183
2183
|
}, $ = new MutationObserver(_);
|
|
2184
2184
|
return $.observe(b, { childList: !0, subtree: !0 }), setTimeout(() => {
|
|
@@ -2251,7 +2251,7 @@ function Sr(e) {
|
|
|
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
|
-
|
|
2254
|
+
T(o)(
|
|
2255
2255
|
(m) => `bc-menu-item ${m ? "bc-menu-item--disabled" : ""} ${k ? "bc-menu-item--has-submenu" : ""}`
|
|
2256
2256
|
)
|
|
2257
2257
|
),
|
|
@@ -2353,7 +2353,7 @@ function ln(e) {
|
|
|
2353
2353
|
() => _e(
|
|
2354
2354
|
t,
|
|
2355
2355
|
(i) => Zt({
|
|
2356
|
-
value:
|
|
2356
|
+
value: T(
|
|
2357
2357
|
i,
|
|
2358
2358
|
n
|
|
2359
2359
|
)((c, u) => ua(u, c, a)),
|
|
@@ -2376,7 +2376,7 @@ function on(e) {
|
|
|
2376
2376
|
}, i = (l) => {
|
|
2377
2377
|
const f = h.get(t);
|
|
2378
2378
|
e.onChange?.(tn(f, l, a));
|
|
2379
|
-
}, c = (l) =>
|
|
2379
|
+
}, c = (l) => T(t)((f) => an(f, l, a)), u = Xt({
|
|
2380
2380
|
items: () => {
|
|
2381
2381
|
const l = h.get(n), f = [];
|
|
2382
2382
|
for (const g of l)
|
|
@@ -2456,7 +2456,7 @@ function on(e) {
|
|
|
2456
2456
|
function Cr(e) {
|
|
2457
2457
|
return jt(on, e);
|
|
2458
2458
|
}
|
|
2459
|
-
function
|
|
2459
|
+
function Tr(e) {
|
|
2460
2460
|
return Ht(on, e);
|
|
2461
2461
|
}
|
|
2462
2462
|
function cn(e) {
|
|
@@ -2473,7 +2473,7 @@ function cn(e) {
|
|
|
2473
2473
|
}, l = (m) => {
|
|
2474
2474
|
const w = h.get(t);
|
|
2475
2475
|
e.onChange?.(tn(w, m, a));
|
|
2476
|
-
}, f = (m) =>
|
|
2476
|
+
}, f = (m) => T(t)((w) => an(w, m, a)), g = T(
|
|
2477
2477
|
n,
|
|
2478
2478
|
c
|
|
2479
2479
|
)((m, w) => sn(m, w, i)), k = Xt({
|
|
@@ -2563,7 +2563,7 @@ function cn(e) {
|
|
|
2563
2563
|
r.type("text"),
|
|
2564
2564
|
r.class("bc-dropdown__search-input"),
|
|
2565
2565
|
r.placeholder(
|
|
2566
|
-
|
|
2566
|
+
T(
|
|
2567
2567
|
o,
|
|
2568
2568
|
s
|
|
2569
2569
|
)((m, w) => m ?? w ?? "")
|
|
@@ -2582,7 +2582,7 @@ function cn(e) {
|
|
|
2582
2582
|
)
|
|
2583
2583
|
});
|
|
2584
2584
|
}
|
|
2585
|
-
function
|
|
2585
|
+
function Ir(e) {
|
|
2586
2586
|
return jt(cn, e);
|
|
2587
2587
|
}
|
|
2588
2588
|
function _r(e) {
|
|
@@ -2678,14 +2678,14 @@ const $r = (e) => {
|
|
|
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
|
-
const w =
|
|
2681
|
+
const w = T(
|
|
2682
2682
|
t,
|
|
2683
2683
|
a
|
|
2684
|
-
)((b, p) => p == null ? !0 : (b ?? 0n) > p), v =
|
|
2684
|
+
)((b, p) => p == null ? !0 : (b ?? 0n) > p), v = T(
|
|
2685
2685
|
t,
|
|
2686
2686
|
s
|
|
2687
2687
|
)((b, p) => p == null ? !0 : (b ?? 0n) < p), x = (b, p) => {
|
|
2688
|
-
const y = h.get(t) ?? 0n,
|
|
2688
|
+
const y = h.get(t) ?? 0n, I = h.get(n), _ = p?.shiftKey ? 10n : 1n, $ = y + I * _ * 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
2690
|
const L = u($);
|
|
2691
2691
|
L !== y && o && o(L);
|
|
@@ -2698,7 +2698,7 @@ const $r = (e) => {
|
|
|
2698
2698
|
"bc-button bc-number-input-steppers-button bc-number-input-steppers-button--increment"
|
|
2699
2699
|
),
|
|
2700
2700
|
r.disabled(
|
|
2701
|
-
|
|
2701
|
+
T(
|
|
2702
2702
|
v,
|
|
2703
2703
|
e.disabled ?? !1
|
|
2704
2704
|
)((b, p) => !b || p)
|
|
@@ -2713,7 +2713,7 @@ const $r = (e) => {
|
|
|
2713
2713
|
"bc-button bc-number-input-steppers-button bc-number-input-steppers-button--decrement"
|
|
2714
2714
|
),
|
|
2715
2715
|
r.disabled(
|
|
2716
|
-
|
|
2716
|
+
T(
|
|
2717
2717
|
w,
|
|
2718
2718
|
e.disabled ?? !1
|
|
2719
2719
|
)((b, p) => !b || p)
|
|
@@ -2752,23 +2752,23 @@ const $r = (e) => {
|
|
|
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
|
-
const v =
|
|
2755
|
+
const v = T(
|
|
2756
2756
|
t,
|
|
2757
2757
|
a
|
|
2758
2758
|
)((p, y) => {
|
|
2759
|
-
const
|
|
2760
|
-
return y == null ? !0 :
|
|
2761
|
-
}), x =
|
|
2759
|
+
const I = p ?? 0n;
|
|
2760
|
+
return y == null ? !0 : I > y;
|
|
2761
|
+
}), x = T(
|
|
2762
2762
|
t,
|
|
2763
2763
|
s
|
|
2764
2764
|
)((p, y) => {
|
|
2765
|
-
const
|
|
2766
|
-
return y == null ? !0 :
|
|
2765
|
+
const I = p ?? 0n;
|
|
2766
|
+
return y == null ? !0 : I < y;
|
|
2767
2767
|
}), b = (p, y) => {
|
|
2768
|
-
const
|
|
2768
|
+
const I = h.get(t) ?? 0n, _ = h.get(n), $ = y?.shiftKey ? 10n : 1n, P = I + _ * $ * p, C = a != null ? h.get(a) : void 0, L = s != null ? h.get(s) : void 0;
|
|
2769
2769
|
if (p < 0n && C != null && P < C || p > 0n && L != null && P > L) return;
|
|
2770
2770
|
const R = u(P);
|
|
2771
|
-
R !==
|
|
2771
|
+
R !== I && o && o(R);
|
|
2772
2772
|
};
|
|
2773
2773
|
return dt(
|
|
2774
2774
|
r.class("bc-number-input-steppers"),
|
|
@@ -2778,7 +2778,7 @@ const $r = (e) => {
|
|
|
2778
2778
|
"bc-button bc-number-input-steppers-button bc-number-input-steppers-button--increment"
|
|
2779
2779
|
),
|
|
2780
2780
|
r.disabled(
|
|
2781
|
-
|
|
2781
|
+
T(
|
|
2782
2782
|
x,
|
|
2783
2783
|
e.disabled ?? !1
|
|
2784
2784
|
)((p, y) => !p || y)
|
|
@@ -2793,7 +2793,7 @@ const $r = (e) => {
|
|
|
2793
2793
|
"bc-button bc-number-input-steppers-button bc-number-input-steppers-button--decrement"
|
|
2794
2794
|
),
|
|
2795
2795
|
r.disabled(
|
|
2796
|
-
|
|
2796
|
+
T(
|
|
2797
2797
|
v,
|
|
2798
2798
|
e.disabled ?? !1
|
|
2799
2799
|
)((p, y) => !p || y)
|
|
@@ -3246,7 +3246,7 @@ function va({
|
|
|
3246
3246
|
const f = h.map(i, (g) => g != null);
|
|
3247
3247
|
return d.section(
|
|
3248
3248
|
r.class(
|
|
3249
|
-
|
|
3249
|
+
T(
|
|
3250
3250
|
n,
|
|
3251
3251
|
f,
|
|
3252
3252
|
t,
|
|
@@ -3265,7 +3265,7 @@ function va({
|
|
|
3265
3265
|
)
|
|
3266
3266
|
),
|
|
3267
3267
|
r.style(
|
|
3268
|
-
|
|
3268
|
+
T(
|
|
3269
3269
|
a,
|
|
3270
3270
|
s
|
|
3271
3271
|
)(
|
|
@@ -3398,7 +3398,7 @@ function xa() {
|
|
|
3398
3398
|
(n) => re(
|
|
3399
3399
|
e((a) => {
|
|
3400
3400
|
const s = [], o = d.div(
|
|
3401
|
-
|
|
3401
|
+
Tn(
|
|
3402
3402
|
{
|
|
3403
3403
|
animation: a.animation,
|
|
3404
3404
|
initialStatus: "start-opening"
|
|
@@ -3487,7 +3487,7 @@ function as({
|
|
|
3487
3487
|
return URL.createObjectURL(p);
|
|
3488
3488
|
}
|
|
3489
3489
|
}
|
|
3490
|
-
}, null), w =
|
|
3490
|
+
}, null), w = T(
|
|
3491
3491
|
m,
|
|
3492
3492
|
t,
|
|
3493
3493
|
n,
|
|
@@ -3500,10 +3500,10 @@ function as({
|
|
|
3500
3500
|
l,
|
|
3501
3501
|
f,
|
|
3502
3502
|
g
|
|
3503
|
-
)((v, x, b, p, y,
|
|
3503
|
+
)((v, x, b, p, y, I, _, $, P, C, L, R) => {
|
|
3504
3504
|
if (v == null) return null;
|
|
3505
3505
|
const E = [];
|
|
3506
|
-
x === !1 && E.push("toolbar=0"), b != null && b > 0 && E.push(`page=${b}`), p != null && p > 0 && E.push(`zoom=${p}`), y != null && E.push(`view=${y}`),
|
|
3506
|
+
x === !1 && E.push("toolbar=0"), b != null && b > 0 && E.push(`page=${b}`), p != null && p > 0 && E.push(`zoom=${p}`), y != null && E.push(`view=${y}`), I != null && E.push(`pagemode=${I}`), _ === !1 && E.push("scrollbar=0"), $ === !1 && E.push("navpanes=0"), P != null && E.push(`search=${encodeURIComponent(P)}`), C != null && E.push(`nameddest=${encodeURIComponent(C)}`), L != null && E.push(`viewrect=${encodeURIComponent(L)}`), R != null && E.push(`highlight=${encodeURIComponent(R)}`);
|
|
3507
3507
|
const j = E.join("&");
|
|
3508
3508
|
return j ? `${v}#${j}` : v;
|
|
3509
3509
|
});
|
|
@@ -3567,7 +3567,7 @@ function rs({
|
|
|
3567
3567
|
);
|
|
3568
3568
|
if (typeof b == "string")
|
|
3569
3569
|
return b;
|
|
3570
|
-
}, null), x =
|
|
3570
|
+
}, null), x = T(
|
|
3571
3571
|
v,
|
|
3572
3572
|
k,
|
|
3573
3573
|
t,
|
|
@@ -3581,12 +3581,12 @@ function rs({
|
|
|
3581
3581
|
l,
|
|
3582
3582
|
f,
|
|
3583
3583
|
g
|
|
3584
|
-
)((b, p, y,
|
|
3584
|
+
)((b, p, y, I, _, $, P, C, L, R, E, j, te) => {
|
|
3585
3585
|
if (b == null) return null;
|
|
3586
3586
|
const H = p ?? "https://mozilla.github.io/pdf.js/web/viewer.html", O = new URLSearchParams();
|
|
3587
3587
|
O.set("file", encodeURIComponent(b));
|
|
3588
3588
|
const G = [];
|
|
3589
|
-
y != null && y > 0 && G.push(`page=${y}`),
|
|
3589
|
+
y != null && y > 0 && G.push(`page=${y}`), I != null && (typeof I == "string" ? G.push(`zoom=${I}`) : G.push(`zoom=${I}`)), _ != null && G.push(`pagemode=${_}`), $ != null && G.push(`nameddest=${encodeURIComponent($)}`), P != null && G.push(`search=${encodeURIComponent(P)}`), C != null && G.push(`textLayer=${C}`), L != null && G.push(`sidebar=${L}`), R != null && G.push(`scrollMode=${R}`), E != null && G.push(`spreadMode=${E}`), j != null && G.push(`enableScripting=${j ? "1" : "0"}`), te != null && G.push(`enablePrinting=${te ? "1" : "0"}`);
|
|
3590
3590
|
const ce = G.length > 0 ? `#${G.join("&")}` : "";
|
|
3591
3591
|
return `${H}?${O.toString()}${ce}`;
|
|
3592
3592
|
});
|
|
@@ -3646,18 +3646,18 @@ const ls = (e) => {
|
|
|
3646
3646
|
n != null && t.push(n);
|
|
3647
3647
|
}
|
|
3648
3648
|
return t.push(Y("profile:first_name", e.firstName)), t.push(Y("profile:last_name", e.lastName)), t.push(Y("profile:username", e.username)), t.push(Y("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", Ie(e.twitterTitle, e.title))
|
|
3650
3650
|
), t.push(
|
|
3651
3651
|
be(
|
|
3652
3652
|
"twitter:description",
|
|
3653
|
-
|
|
3653
|
+
Ie(e.twitterDescription, e.description)
|
|
3654
3654
|
)
|
|
3655
3655
|
), t.push(
|
|
3656
|
-
be("twitter:image",
|
|
3656
|
+
be("twitter:image", Ie(e.twitterImage, e.image))
|
|
3657
3657
|
), t.push(
|
|
3658
3658
|
be(
|
|
3659
3659
|
"twitter:image:alt",
|
|
3660
|
-
|
|
3660
|
+
Ie(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 = ({
|
|
@@ -3714,13 +3714,13 @@ function Sa({
|
|
|
3714
3714
|
s,
|
|
3715
3715
|
() => d.span(
|
|
3716
3716
|
r.class(
|
|
3717
|
-
|
|
3717
|
+
T(
|
|
3718
3718
|
t,
|
|
3719
3719
|
s
|
|
3720
3720
|
)((k, m) => Dt(k, m))
|
|
3721
3721
|
),
|
|
3722
3722
|
r.style(
|
|
3723
|
-
|
|
3723
|
+
T(a)(
|
|
3724
3724
|
(k) => Lt(k ?? "base")
|
|
3725
3725
|
)
|
|
3726
3726
|
),
|
|
@@ -3737,13 +3737,13 @@ function Sa({
|
|
|
3737
3737
|
})
|
|
3738
3738
|
},
|
|
3739
3739
|
r.class(
|
|
3740
|
-
|
|
3740
|
+
T(
|
|
3741
3741
|
t,
|
|
3742
3742
|
s
|
|
3743
3743
|
)((k, m) => Dt(k, m))
|
|
3744
3744
|
),
|
|
3745
3745
|
r.style(
|
|
3746
|
-
|
|
3746
|
+
T(n)((k) => Lt(k ?? "primary"))
|
|
3747
3747
|
),
|
|
3748
3748
|
l ? r.target(l) : null,
|
|
3749
3749
|
f ? r.rel(f) : null,
|
|
@@ -3751,7 +3751,7 @@ function Sa({
|
|
|
3751
3751
|
)
|
|
3752
3752
|
);
|
|
3753
3753
|
}
|
|
3754
|
-
const Ca = (e) => e ? e.startsWith("#") ? e : `#${e}` : "",
|
|
3754
|
+
const Ca = (e) => e ? e.startsWith("#") ? e : `#${e}` : "", Ta = (e) => {
|
|
3755
3755
|
if (!e) return new URLSearchParams();
|
|
3756
3756
|
if (typeof e == "string") {
|
|
3757
3757
|
const t = e.startsWith("?") ? e.slice(1) : e;
|
|
@@ -3759,8 +3759,8 @@ const Ca = (e) => e ? e.startsWith("#") ? e : `#${e}` : "", Ia = (e) => {
|
|
|
3759
3759
|
}
|
|
3760
3760
|
return e instanceof URLSearchParams ? new URLSearchParams(e) : new URLSearchParams(e);
|
|
3761
3761
|
};
|
|
3762
|
-
function
|
|
3763
|
-
const a =
|
|
3762
|
+
function Ia(e, t, n) {
|
|
3763
|
+
const a = Ta(e.search), s = a.toString(), o = s ? `?${s}` : "", i = Ca(e.hash);
|
|
3764
3764
|
switch (n) {
|
|
3765
3765
|
case "exact":
|
|
3766
3766
|
return e.pathname + o + i === t;
|
|
@@ -3786,8 +3786,8 @@ function Ta(e, t, n) {
|
|
|
3786
3786
|
}
|
|
3787
3787
|
}
|
|
3788
3788
|
function ft(e, t) {
|
|
3789
|
-
return t === "exact" ?
|
|
3790
|
-
(n) => (a) =>
|
|
3789
|
+
return t === "exact" ? T(e)((n) => n) : T(e)(
|
|
3790
|
+
(n) => (a) => Ia(a, n, t)
|
|
3791
3791
|
);
|
|
3792
3792
|
}
|
|
3793
3793
|
function os({
|
|
@@ -3799,7 +3799,7 @@ function os({
|
|
|
3799
3799
|
return ne(Me, (o) => {
|
|
3800
3800
|
const i = o.matchSignal(
|
|
3801
3801
|
ft(e, t)
|
|
3802
|
-
), c =
|
|
3802
|
+
), c = T(
|
|
3803
3803
|
i,
|
|
3804
3804
|
n
|
|
3805
3805
|
)((u, l) => l ?? !0 ? u : !1);
|
|
@@ -3830,13 +3830,13 @@ function is({
|
|
|
3830
3830
|
disabled: m = !1
|
|
3831
3831
|
}, ...w) {
|
|
3832
3832
|
return c !== void 0 || u !== void 0 ? ne(Me, (v) => {
|
|
3833
|
-
const x = c !== void 0 ? v.matchSignal(ft(e, c)) :
|
|
3833
|
+
const x = c !== void 0 ? v.matchSignal(ft(e, c)) : T(v.location)(() => !1), b = T(
|
|
3834
3834
|
x,
|
|
3835
3835
|
u
|
|
3836
|
-
)((y,
|
|
3836
|
+
)((y, I) => !(I ?? !0) || !c ? !1 : y), p = T(
|
|
3837
3837
|
m,
|
|
3838
3838
|
b
|
|
3839
|
-
)((y,
|
|
3839
|
+
)((y, I) => y || I);
|
|
3840
3840
|
return At(
|
|
3841
3841
|
{
|
|
3842
3842
|
href: e,
|
|
@@ -3892,7 +3892,7 @@ function At({
|
|
|
3892
3892
|
g ?? !1,
|
|
3893
3893
|
() => d.span(
|
|
3894
3894
|
r.class(
|
|
3895
|
-
|
|
3895
|
+
T(
|
|
3896
3896
|
u,
|
|
3897
3897
|
f,
|
|
3898
3898
|
m,
|
|
@@ -3900,7 +3900,7 @@ function At({
|
|
|
3900
3900
|
)(yt)
|
|
3901
3901
|
),
|
|
3902
3902
|
r.style(
|
|
3903
|
-
|
|
3903
|
+
T(
|
|
3904
3904
|
c,
|
|
3905
3905
|
l,
|
|
3906
3906
|
g
|
|
@@ -3925,7 +3925,7 @@ function At({
|
|
|
3925
3925
|
})
|
|
3926
3926
|
},
|
|
3927
3927
|
r.class(
|
|
3928
|
-
|
|
3928
|
+
T(
|
|
3929
3929
|
u,
|
|
3930
3930
|
f,
|
|
3931
3931
|
m,
|
|
@@ -3933,7 +3933,7 @@ function At({
|
|
|
3933
3933
|
)(yt)
|
|
3934
3934
|
),
|
|
3935
3935
|
r.style(
|
|
3936
|
-
|
|
3936
|
+
T(
|
|
3937
3937
|
c,
|
|
3938
3938
|
l,
|
|
3939
3939
|
g
|
|
@@ -4139,7 +4139,7 @@ function ps(e) {
|
|
|
4139
4139
|
orientation: u = "horizontal",
|
|
4140
4140
|
showContent: l = !0,
|
|
4141
4141
|
ariaLabel: f
|
|
4142
|
-
} = e, g = me("tablist"), k = Z(-1), m =
|
|
4142
|
+
} = e, g = me("tablist"), k = Z(-1), m = T(n)((v) => t.find((x) => x.key === v)), w = (v) => {
|
|
4143
4143
|
if (h.get(c)) return;
|
|
4144
4144
|
const b = k.value, p = h.get(u) === "horizontal";
|
|
4145
4145
|
let y = b;
|
|
@@ -4159,21 +4159,21 @@ function ps(e) {
|
|
|
4159
4159
|
case "Enter":
|
|
4160
4160
|
case " ":
|
|
4161
4161
|
if (v.preventDefault(), b >= 0 && b < t.length) {
|
|
4162
|
-
const
|
|
4163
|
-
h.get(
|
|
4162
|
+
const I = t[b];
|
|
4163
|
+
h.get(I.disabled ?? !1) || a?.(I.key);
|
|
4164
4164
|
}
|
|
4165
4165
|
break;
|
|
4166
4166
|
}
|
|
4167
4167
|
y !== b && y >= 0 && y < t.length && (k.set(y), setTimeout(() => {
|
|
4168
|
-
const
|
|
4168
|
+
const I = document.querySelector(
|
|
4169
4169
|
`[data-tab-index="${y}"]`
|
|
4170
4170
|
);
|
|
4171
|
-
|
|
4171
|
+
I && I.focus();
|
|
4172
4172
|
}, 0));
|
|
4173
4173
|
};
|
|
4174
4174
|
return d.div(
|
|
4175
4175
|
r.class(
|
|
4176
|
-
|
|
4176
|
+
T(
|
|
4177
4177
|
s,
|
|
4178
4178
|
u,
|
|
4179
4179
|
c,
|
|
@@ -4188,7 +4188,7 @@ function ps(e) {
|
|
|
4188
4188
|
)
|
|
4189
4189
|
),
|
|
4190
4190
|
r.style(
|
|
4191
|
-
|
|
4191
|
+
T(
|
|
4192
4192
|
o,
|
|
4193
4193
|
i
|
|
4194
4194
|
)(
|
|
@@ -4206,14 +4206,14 @@ function ps(e) {
|
|
|
4206
4206
|
f ? M.label(f) : F(),
|
|
4207
4207
|
V.keydown(w),
|
|
4208
4208
|
...t.map((v, x) => {
|
|
4209
|
-
const b =
|
|
4209
|
+
const b = T(n)((_) => _ === v.key), p = T(
|
|
4210
4210
|
c,
|
|
4211
4211
|
v.disabled
|
|
4212
|
-
)((_, $) => _ || $), y = `${g}-tab-${v.key}`,
|
|
4212
|
+
)((_, $) => _ || $), y = `${g}-tab-${v.key}`, I = `${g}-panel-${v.key}`;
|
|
4213
4213
|
return d.button(
|
|
4214
4214
|
r.type("button"),
|
|
4215
4215
|
r.class(
|
|
4216
|
-
|
|
4216
|
+
T(
|
|
4217
4217
|
s,
|
|
4218
4218
|
b,
|
|
4219
4219
|
p
|
|
@@ -4228,13 +4228,13 @@ function ps(e) {
|
|
|
4228
4228
|
r.id(y),
|
|
4229
4229
|
r.role("tab"),
|
|
4230
4230
|
r.tabindex(
|
|
4231
|
-
|
|
4231
|
+
T(
|
|
4232
4232
|
b,
|
|
4233
4233
|
k
|
|
4234
4234
|
)((_, $) => _ || $ === x ? 0 : -1)
|
|
4235
4235
|
),
|
|
4236
4236
|
M.selected(b),
|
|
4237
|
-
M.controls(
|
|
4237
|
+
M.controls(I),
|
|
4238
4238
|
M.disabled(p),
|
|
4239
4239
|
r.disabled(p),
|
|
4240
4240
|
st["tab-index"](String(x)),
|
|
@@ -4291,10 +4291,10 @@ function fs(e) {
|
|
|
4291
4291
|
h.on(f, (_) => {
|
|
4292
4292
|
p.set(_ ? "capturing" : "non-capturing");
|
|
4293
4293
|
});
|
|
4294
|
-
const y =
|
|
4294
|
+
const y = T(
|
|
4295
4295
|
v != null,
|
|
4296
4296
|
g
|
|
4297
|
-
)((_, $) => _ || $),
|
|
4297
|
+
)((_, $) => _ || $), I = ee((_) => {
|
|
4298
4298
|
const $ = Ee({
|
|
4299
4299
|
initialStatus: "closed",
|
|
4300
4300
|
element: _
|
|
@@ -4307,7 +4307,7 @@ function fs(e) {
|
|
|
4307
4307
|
const C = me("drawer"), L = v != null ? `${C}-header` : void 0, R = `${C}-body`;
|
|
4308
4308
|
return d.div(
|
|
4309
4309
|
r.class(
|
|
4310
|
-
|
|
4310
|
+
T(
|
|
4311
4311
|
u,
|
|
4312
4312
|
l,
|
|
4313
4313
|
$.status
|
|
@@ -4326,7 +4326,7 @@ function fs(e) {
|
|
|
4326
4326
|
st.focusTrap("true"),
|
|
4327
4327
|
// Mark as focus trap container
|
|
4328
4328
|
// Focus trap for keyboard navigation
|
|
4329
|
-
|
|
4329
|
+
In({
|
|
4330
4330
|
active: !0,
|
|
4331
4331
|
escapeDeactivates: !1,
|
|
4332
4332
|
// Let Overlay handle escape key
|
|
@@ -4373,7 +4373,7 @@ function fs(e) {
|
|
|
4373
4373
|
mode: p,
|
|
4374
4374
|
effect: m ?? "opaque",
|
|
4375
4375
|
container: w,
|
|
4376
|
-
content:
|
|
4376
|
+
content: I,
|
|
4377
4377
|
onClickOutside: () => {
|
|
4378
4378
|
k?.(), s();
|
|
4379
4379
|
},
|
|
@@ -4475,7 +4475,7 @@ function gs({
|
|
|
4475
4475
|
r.class("bc-ribbon"),
|
|
4476
4476
|
// Theme styles via CSS variables
|
|
4477
4477
|
r.style(
|
|
4478
|
-
|
|
4478
|
+
T(
|
|
4479
4479
|
e,
|
|
4480
4480
|
n,
|
|
4481
4481
|
a,
|
|
@@ -4534,7 +4534,7 @@ function ms(e, t) {
|
|
|
4534
4534
|
r.class("bc-lightbox__viewport"),
|
|
4535
4535
|
// Visual padding applied here
|
|
4536
4536
|
r.style(
|
|
4537
|
-
|
|
4537
|
+
T(i)(
|
|
4538
4538
|
(x) => `padding:${typeof x == "number" ? x + "px" : x}`
|
|
4539
4539
|
)
|
|
4540
4540
|
),
|
|
@@ -4581,7 +4581,7 @@ function hs({
|
|
|
4581
4581
|
);
|
|
4582
4582
|
return d.div(
|
|
4583
4583
|
r.class(
|
|
4584
|
-
|
|
4584
|
+
T(
|
|
4585
4585
|
c,
|
|
4586
4586
|
s
|
|
4587
4587
|
)((u, l) => Oa(u, l))
|
|
@@ -4655,7 +4655,7 @@ function vs(e) {
|
|
|
4655
4655
|
onPlay: b,
|
|
4656
4656
|
onPause: p,
|
|
4657
4657
|
onBuffer: y,
|
|
4658
|
-
onBufferEnd:
|
|
4658
|
+
onBufferEnd: I,
|
|
4659
4659
|
onEnded: _,
|
|
4660
4660
|
onError: $,
|
|
4661
4661
|
onDuration: P,
|
|
@@ -4709,11 +4709,11 @@ function vs(e) {
|
|
|
4709
4709
|
if (typeof window > "u") return;
|
|
4710
4710
|
try {
|
|
4711
4711
|
const J = await import("./hls.light.min-BHW1Af0w.js").then((ve) => ve.h), Be = J;
|
|
4712
|
-
let
|
|
4713
|
-
for (let ve = 0; ve < 3 && (typeof
|
|
4714
|
-
|
|
4715
|
-
if (typeof
|
|
4716
|
-
const ve =
|
|
4712
|
+
let Te = Be.default ?? Be.Hls ?? J;
|
|
4713
|
+
for (let ve = 0; ve < 3 && (typeof Te == "object" && Te != null && "default" in Te); ve++)
|
|
4714
|
+
Te = Te.default;
|
|
4715
|
+
if (typeof Te == "function") {
|
|
4716
|
+
const ve = Te;
|
|
4717
4717
|
if (typeof ve.isSupported == "function" && ve.isSupported()) {
|
|
4718
4718
|
D.removeAttribute("src");
|
|
4719
4719
|
try {
|
|
@@ -4798,7 +4798,7 @@ function vs(e) {
|
|
|
4798
4798
|
// Events
|
|
4799
4799
|
V.play(() => b?.()),
|
|
4800
4800
|
V.playing(() => {
|
|
4801
|
-
x?.(),
|
|
4801
|
+
x?.(), I?.();
|
|
4802
4802
|
}),
|
|
4803
4803
|
V.pause(() => p?.()),
|
|
4804
4804
|
V.waiting(() => y?.()),
|
|
@@ -4831,7 +4831,7 @@ function vs(e) {
|
|
|
4831
4831
|
onStateChange: (J) => {
|
|
4832
4832
|
switch (J.data) {
|
|
4833
4833
|
case B.PlayerState.PLAYING:
|
|
4834
|
-
b?.(),
|
|
4834
|
+
b?.(), I?.();
|
|
4835
4835
|
break;
|
|
4836
4836
|
case B.PlayerState.PAUSED:
|
|
4837
4837
|
p?.();
|
|
@@ -5053,7 +5053,7 @@ function ys({
|
|
|
5053
5053
|
m != null && (m.destroy(), m = null);
|
|
5054
5054
|
}),
|
|
5055
5055
|
De((x) => Ft({
|
|
5056
|
-
request:
|
|
5056
|
+
request: T(
|
|
5057
5057
|
e,
|
|
5058
5058
|
t,
|
|
5059
5059
|
n,
|
|
@@ -5063,11 +5063,11 @@ function ys({
|
|
|
5063
5063
|
i,
|
|
5064
5064
|
c,
|
|
5065
5065
|
x
|
|
5066
|
-
)((b, p, y,
|
|
5066
|
+
)((b, p, y, I, _, $, P, C, L) => ({
|
|
5067
5067
|
source: b,
|
|
5068
5068
|
page: p,
|
|
5069
5069
|
fit: y,
|
|
5070
|
-
scale:
|
|
5070
|
+
scale: I,
|
|
5071
5071
|
rotation: _,
|
|
5072
5072
|
quality: $,
|
|
5073
5073
|
renderTextLayer: P,
|
|
@@ -5080,12 +5080,12 @@ function ys({
|
|
|
5080
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 }));
|
|
5081
5081
|
const y = b.page < 1 || b.page > m.numPages ? 1 : b.page;
|
|
5082
5082
|
u != null && y !== w && (w = y, u(y));
|
|
5083
|
-
const
|
|
5083
|
+
const I = await m.getPage(y);
|
|
5084
5084
|
let _;
|
|
5085
5085
|
if (b.fit === "none")
|
|
5086
5086
|
_ = b.scale;
|
|
5087
5087
|
else {
|
|
5088
|
-
const L =
|
|
5088
|
+
const L = I.getViewport({
|
|
5089
5089
|
scale: 1,
|
|
5090
5090
|
rotation: b.rotation
|
|
5091
5091
|
}), R = L.width / L.height, E = b.containerWidth / b.containerHeight;
|
|
@@ -5107,10 +5107,10 @@ function ys({
|
|
|
5107
5107
|
break;
|
|
5108
5108
|
}
|
|
5109
5109
|
}
|
|
5110
|
-
const $ =
|
|
5110
|
+
const $ = I.getViewport({
|
|
5111
5111
|
scale: _,
|
|
5112
5112
|
rotation: b.rotation
|
|
5113
|
-
}), P =
|
|
5113
|
+
}), P = I.getViewport({
|
|
5114
5114
|
scale: _ * b.quality,
|
|
5115
5115
|
rotation: b.rotation
|
|
5116
5116
|
});
|
|
@@ -5133,7 +5133,7 @@ function ys({
|
|
|
5133
5133
|
const j = L.getContext("2d");
|
|
5134
5134
|
if (!j)
|
|
5135
5135
|
throw new Error("Failed to get canvas context");
|
|
5136
|
-
const te =
|
|
5136
|
+
const te = I.render({
|
|
5137
5137
|
canvasContext: j,
|
|
5138
5138
|
canvas: L,
|
|
5139
5139
|
viewport: P
|
|
@@ -5151,7 +5151,7 @@ function ys({
|
|
|
5151
5151
|
if (b.renderTextLayer && R != null) {
|
|
5152
5152
|
R.innerHTML = "";
|
|
5153
5153
|
try {
|
|
5154
|
-
const H = await
|
|
5154
|
+
const H = await I.getTextContent(), O = p.TextLayer;
|
|
5155
5155
|
O != null && await new O({
|
|
5156
5156
|
textContentSource: H,
|
|
5157
5157
|
container: R,
|
|
@@ -5164,7 +5164,7 @@ function ys({
|
|
|
5164
5164
|
if (b.renderAnnotationLayer && E != null) {
|
|
5165
5165
|
E.innerHTML = "", E.style.width = `${$.width}px`, E.style.height = `${$.height}px`;
|
|
5166
5166
|
try {
|
|
5167
|
-
const H = await
|
|
5167
|
+
const H = await I.getAnnotations(), O = p.AnnotationLayer;
|
|
5168
5168
|
if (O != null && H.length > 0) {
|
|
5169
5169
|
const G = {
|
|
5170
5170
|
// Minimal link service for basic functionality
|
|
@@ -5179,7 +5179,7 @@ function ys({
|
|
|
5179
5179
|
};
|
|
5180
5180
|
await new O({
|
|
5181
5181
|
div: E,
|
|
5182
|
-
page:
|
|
5182
|
+
page: I,
|
|
5183
5183
|
viewport: $,
|
|
5184
5184
|
linkService: G,
|
|
5185
5185
|
annotationStorage: null
|
|
@@ -5187,7 +5187,7 @@ function ys({
|
|
|
5187
5187
|
viewport: $,
|
|
5188
5188
|
div: E,
|
|
5189
5189
|
annotations: H,
|
|
5190
|
-
page:
|
|
5190
|
+
page: I,
|
|
5191
5191
|
linkService: G,
|
|
5192
5192
|
renderForms: !0
|
|
5193
5193
|
});
|
|
@@ -5199,13 +5199,7 @@ function ys({
|
|
|
5199
5199
|
}
|
|
5200
5200
|
};
|
|
5201
5201
|
},
|
|
5202
|
-
convertError: (b) =>
|
|
5203
|
-
if (b instanceof Error) {
|
|
5204
|
-
const p = b.message;
|
|
5205
|
-
return p.includes("Invalid PDF") ? h.get(v).pdfPageViewer.invalidPdf : p.includes("page") ? p : h.get(v).pdfPageViewer.loadFailed;
|
|
5206
|
-
}
|
|
5207
|
-
return h.get(v).pdfPageViewer.loadFailed;
|
|
5208
|
-
},
|
|
5202
|
+
convertError: (b) => b instanceof Error ? b.message : JSON.stringify(b),
|
|
5209
5203
|
pending: () => d.div(
|
|
5210
5204
|
r.class("bc-pdf-page-viewer__loading"),
|
|
5211
5205
|
Q({
|
|
@@ -5261,13 +5255,13 @@ function ys({
|
|
|
5261
5255
|
ee((p) => {
|
|
5262
5256
|
const y = p.querySelector(
|
|
5263
5257
|
".bc-pdf-page-viewer__canvas"
|
|
5264
|
-
),
|
|
5258
|
+
), I = p.querySelector(
|
|
5265
5259
|
".bc-pdf-page-viewer__text-layer"
|
|
5266
5260
|
), _ = p.querySelector(
|
|
5267
5261
|
".bc-pdf-page-viewer__annotation-layer"
|
|
5268
5262
|
);
|
|
5269
5263
|
return h.on(b, async ($) => {
|
|
5270
|
-
await $.render(y,
|
|
5264
|
+
await $.render(y, I, _);
|
|
5271
5265
|
}), W;
|
|
5272
5266
|
})
|
|
5273
5267
|
)
|
|
@@ -5276,7 +5270,7 @@ function ys({
|
|
|
5276
5270
|
}
|
|
5277
5271
|
export {
|
|
5278
5272
|
fr as ActionCard,
|
|
5279
|
-
|
|
5273
|
+
Tn as AnimatedToggle,
|
|
5280
5274
|
rt as AnimatedToggleClass,
|
|
5281
5275
|
hs as AnnouncementBar,
|
|
5282
5276
|
mr as AppShell,
|
|
@@ -5286,7 +5280,7 @@ export {
|
|
|
5286
5280
|
gi as Base64Input,
|
|
5287
5281
|
mi as Base64sInput,
|
|
5288
5282
|
ca as BaseComboboxControl,
|
|
5289
|
-
|
|
5283
|
+
Ir as BaseComboboxTagsControl,
|
|
5290
5284
|
jt as BaseControl,
|
|
5291
5285
|
oa as BaseDropdownControl,
|
|
5292
5286
|
hi as BaseListControl,
|
|
@@ -5335,7 +5329,7 @@ export {
|
|
|
5335
5329
|
Dr as FileInput,
|
|
5336
5330
|
Dn as FilesInput,
|
|
5337
5331
|
Ze as Flyout,
|
|
5338
|
-
|
|
5332
|
+
In as FocusTrap,
|
|
5339
5333
|
Qr as FormStatus,
|
|
5340
5334
|
Yt as Group,
|
|
5341
5335
|
Q as Icon,
|
|
@@ -5371,8 +5365,8 @@ export {
|
|
|
5371
5365
|
wa as NotificationService,
|
|
5372
5366
|
xa as NotificationViewport,
|
|
5373
5367
|
Br as NullableBigintInput,
|
|
5374
|
-
|
|
5375
|
-
|
|
5368
|
+
Ti as NullableDateInput,
|
|
5369
|
+
Ii as NullableDateTimeInput,
|
|
5376
5370
|
_i as NullableDurationInput,
|
|
5377
5371
|
$i as NullableEmailInput,
|
|
5378
5372
|
Hr as NullableInstantInput,
|
|
@@ -5411,7 +5405,7 @@ export {
|
|
|
5411
5405
|
gs as Ribbon,
|
|
5412
5406
|
_t as ScrollablePanel,
|
|
5413
5407
|
$n as SegmentedInput,
|
|
5414
|
-
|
|
5408
|
+
Tr as SelectTagsControl,
|
|
5415
5409
|
on as SelectTagsInput,
|
|
5416
5410
|
cs as Sidebar,
|
|
5417
5411
|
Pa as SidebarActiveLink,
|
|
@@ -5433,14 +5427,14 @@ export {
|
|
|
5433
5427
|
Zt as Tag,
|
|
5434
5428
|
Mr as TagsInput,
|
|
5435
5429
|
Ui as TextArea,
|
|
5436
|
-
|
|
5430
|
+
Ts as TextInput,
|
|
5437
5431
|
zt as Theme,
|
|
5438
5432
|
_n as ThemeAppearance,
|
|
5439
5433
|
xc as Toolbar,
|
|
5440
5434
|
kc as ToolbarButton,
|
|
5441
5435
|
Sc as ToolbarDivider,
|
|
5442
5436
|
Cc as ToolbarGroup,
|
|
5443
|
-
|
|
5437
|
+
Tc as ToolbarSpacer,
|
|
5444
5438
|
bs as Tooltip,
|
|
5445
5439
|
ji as UUIDInput,
|
|
5446
5440
|
Hi as UnionController,
|
|
@@ -5473,7 +5467,7 @@ export {
|
|
|
5473
5467
|
Xr as createColorController,
|
|
5474
5468
|
ft as createLocationMatcher,
|
|
5475
5469
|
ii as createStandardSchema,
|
|
5476
|
-
|
|
5470
|
+
Is as defaultLocale,
|
|
5477
5471
|
_s as defaultMessages,
|
|
5478
5472
|
lr as delaySignal,
|
|
5479
5473
|
Yi as emitExpando,
|
|
@@ -5511,8 +5505,8 @@ export {
|
|
|
5511
5505
|
kl as generateSemanticShadowVariables,
|
|
5512
5506
|
Sl as generateSemanticSpacingVariables,
|
|
5513
5507
|
Cl as generateSemanticTextShadowVariables,
|
|
5514
|
-
|
|
5515
|
-
|
|
5508
|
+
Tl as generateSemanticTokenVariables,
|
|
5509
|
+
Il as generateShadowVariables,
|
|
5516
5510
|
_l as generateSpacingVariables,
|
|
5517
5511
|
$l as generateTextShadowVariables,
|
|
5518
5512
|
Pl as generateTypographyVariables,
|
|
@@ -5568,7 +5562,7 @@ export {
|
|
|
5568
5562
|
Ks as interactiveColors,
|
|
5569
5563
|
Ms as isIndexedDBAvailable,
|
|
5570
5564
|
Es as isRTLLocale,
|
|
5571
|
-
|
|
5565
|
+
Ia as isUrlMatch,
|
|
5572
5566
|
Vn as isValidColor,
|
|
5573
5567
|
kt as isValidHexColor,
|
|
5574
5568
|
tc as isValidHslColor,
|
|
@@ -5611,14 +5605,14 @@ export {
|
|
|
5611
5605
|
So as semanticTextShadowNames,
|
|
5612
5606
|
me as sessionId,
|
|
5613
5607
|
Co as shadows,
|
|
5614
|
-
|
|
5608
|
+
To as spacing,
|
|
5615
5609
|
fc as srgbToLinear,
|
|
5616
5610
|
qo as standardSchemaResultToValidation,
|
|
5617
5611
|
Rs as storeIconLocally,
|
|
5618
5612
|
ui as string,
|
|
5619
5613
|
Ko as taskToValidation,
|
|
5620
5614
|
nl as textColors,
|
|
5621
|
-
|
|
5615
|
+
Io as textShadows,
|
|
5622
5616
|
al as themeColorNames,
|
|
5623
5617
|
bc as toRgbaString,
|
|
5624
5618
|
gc as transformEmptyStringToUndefined,
|