ynotsoft-dynamic-form 1.0.52 → 1.0.53
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/dynamic-form.js +713 -689
- package/dist/dynamic-form.umd.cjs +14 -14
- package/dist/index.css +1 -1
- package/package.json +2 -2
package/dist/dynamic-form.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsx as u, jsxs as
|
|
1
|
+
import { jsx as u, jsxs as I, Fragment as Le } from "react/jsx-runtime";
|
|
2
2
|
import * as d from "react";
|
|
3
|
-
import Ke, { useLayoutEffect as Na, useState as be, forwardRef as os, createElement as
|
|
3
|
+
import Ke, { useLayoutEffect as Na, useState as be, forwardRef as os, createElement as fo, useRef as rs, useEffect as po, useMemo as Ra } from "react";
|
|
4
4
|
import { toast as fn } from "react-hot-toast";
|
|
5
|
-
import
|
|
5
|
+
import jn from "dayjs";
|
|
6
6
|
import Ta from "react-select";
|
|
7
7
|
import ka from "react-select/animated";
|
|
8
8
|
import * as wn from "react-dom";
|
|
9
9
|
import Pa from "react-dom";
|
|
10
|
-
import { DayPicker as
|
|
10
|
+
import { DayPicker as ko } from "react-day-picker";
|
|
11
11
|
import "react-day-picker/dist/style.css";
|
|
12
12
|
function _a(e) {
|
|
13
13
|
return /* @__PURE__ */ u("input", { type: "hidden", name: e.name, value: e.value }, e.name);
|
|
@@ -70,7 +70,7 @@ function Oa({
|
|
|
70
70
|
function pr(e, [t, n]) {
|
|
71
71
|
return Math.min(n, Math.max(t, e));
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function oe(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
74
74
|
return function(r) {
|
|
75
75
|
if (e?.(r), n === !1 || !r.defaultPrevented)
|
|
76
76
|
return t?.(r);
|
|
@@ -129,7 +129,7 @@ function mr(e, t) {
|
|
|
129
129
|
return e(t);
|
|
130
130
|
e != null && (e.current = t);
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function Po(...e) {
|
|
133
133
|
return (t) => {
|
|
134
134
|
let n = !1;
|
|
135
135
|
const o = e.map((r) => {
|
|
@@ -146,7 +146,7 @@ function ko(...e) {
|
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
148
|
function ae(...e) {
|
|
149
|
-
return d.useCallback(
|
|
149
|
+
return d.useCallback(Po(...e), e);
|
|
150
150
|
}
|
|
151
151
|
// @__NO_SIDE_EFFECTS__
|
|
152
152
|
function xe(e) {
|
|
@@ -166,7 +166,7 @@ function Ma(e) {
|
|
|
166
166
|
const { children: r, ...s } = n;
|
|
167
167
|
if (d.isValidElement(r)) {
|
|
168
168
|
const i = $a(r), a = Fa(s, r.props);
|
|
169
|
-
return r.type !== d.Fragment && (a.ref = o ?
|
|
169
|
+
return r.type !== d.Fragment && (a.ref = o ? Po(o, i) : i), d.cloneElement(r, a);
|
|
170
170
|
}
|
|
171
171
|
return d.Children.count(r) > 1 ? d.Children.only(null) : null;
|
|
172
172
|
});
|
|
@@ -232,7 +232,7 @@ function ss(e) {
|
|
|
232
232
|
];
|
|
233
233
|
}
|
|
234
234
|
var za = d.createContext(void 0);
|
|
235
|
-
function
|
|
235
|
+
function _o(e) {
|
|
236
236
|
const t = d.useContext(za);
|
|
237
237
|
return e || t || "ltr";
|
|
238
238
|
}
|
|
@@ -279,11 +279,11 @@ function Wa(e, t = globalThis?.document) {
|
|
|
279
279
|
return t.addEventListener("keydown", o, { capture: !0 }), () => t.removeEventListener("keydown", o, { capture: !0 });
|
|
280
280
|
}, [n, t]);
|
|
281
281
|
}
|
|
282
|
-
var Ha = "DismissableLayer",
|
|
282
|
+
var Ha = "DismissableLayer", mo = "dismissableLayer.update", Va = "dismissableLayer.pointerDownOutside", ja = "dismissableLayer.focusOutside", hr, as = d.createContext({
|
|
283
283
|
layers: /* @__PURE__ */ new Set(),
|
|
284
284
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
285
285
|
branches: /* @__PURE__ */ new Set()
|
|
286
|
-
}),
|
|
286
|
+
}), Oo = d.forwardRef(
|
|
287
287
|
(e, t) => {
|
|
288
288
|
const {
|
|
289
289
|
disableOutsidePointerEvents: n = !1,
|
|
@@ -294,11 +294,11 @@ var Ha = "DismissableLayer", po = "dismissableLayer.update", Va = "dismissableLa
|
|
|
294
294
|
onDismiss: a,
|
|
295
295
|
...l
|
|
296
296
|
} = e, c = d.useContext(as), [f, p] = d.useState(null), g = f?.ownerDocument ?? globalThis?.document, [, m] = d.useState({}), w = ae(t, (k) => p(k)), h = Array.from(c.layers), [v] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), x = h.indexOf(v), S = f ? h.indexOf(f) : -1, C = c.layersWithOutsidePointerEventsDisabled.size > 0, y = S >= x, E = Ka((k) => {
|
|
297
|
-
const N = k.target, G = [...c.branches].some((
|
|
297
|
+
const N = k.target, G = [...c.branches].some((X) => X.contains(N));
|
|
298
298
|
!y || G || (r?.(k), i?.(k), k.defaultPrevented || a?.());
|
|
299
299
|
}, g), $ = Xa((k) => {
|
|
300
300
|
const N = k.target;
|
|
301
|
-
[...c.branches].some((
|
|
301
|
+
[...c.branches].some((X) => X.contains(N)) || (s?.(k), i?.(k), k.defaultPrevented || a?.());
|
|
302
302
|
}, g);
|
|
303
303
|
return Wa((k) => {
|
|
304
304
|
S === c.layers.size - 1 && (o?.(k), !k.defaultPrevented && a && (k.preventDefault(), a()));
|
|
@@ -311,7 +311,7 @@ var Ha = "DismissableLayer", po = "dismissableLayer.update", Va = "dismissableLa
|
|
|
311
311
|
f && (c.layers.delete(f), c.layersWithOutsidePointerEventsDisabled.delete(f), gr());
|
|
312
312
|
}, [f, c]), d.useEffect(() => {
|
|
313
313
|
const k = () => m({});
|
|
314
|
-
return document.addEventListener(
|
|
314
|
+
return document.addEventListener(mo, k), () => document.removeEventListener(mo, k);
|
|
315
315
|
}, []), /* @__PURE__ */ u(
|
|
316
316
|
is.div,
|
|
317
317
|
{
|
|
@@ -321,9 +321,9 @@ var Ha = "DismissableLayer", po = "dismissableLayer.update", Va = "dismissableLa
|
|
|
321
321
|
pointerEvents: C ? y ? "auto" : "none" : void 0,
|
|
322
322
|
...e.style
|
|
323
323
|
},
|
|
324
|
-
onFocusCapture:
|
|
325
|
-
onBlurCapture:
|
|
326
|
-
onPointerDownCapture:
|
|
324
|
+
onFocusCapture: oe(e.onFocusCapture, $.onFocusCapture),
|
|
325
|
+
onBlurCapture: oe(e.onBlurCapture, $.onBlurCapture),
|
|
326
|
+
onPointerDownCapture: oe(
|
|
327
327
|
e.onPointerDownCapture,
|
|
328
328
|
E.onPointerDownCapture
|
|
329
329
|
)
|
|
@@ -331,7 +331,7 @@ var Ha = "DismissableLayer", po = "dismissableLayer.update", Va = "dismissableLa
|
|
|
331
331
|
);
|
|
332
332
|
}
|
|
333
333
|
);
|
|
334
|
-
|
|
334
|
+
Oo.displayName = Ha;
|
|
335
335
|
var Ga = "DismissableLayerBranch", Ya = d.forwardRef((e, t) => {
|
|
336
336
|
const n = d.useContext(as), o = d.useRef(null), r = ae(t, o);
|
|
337
337
|
return d.useEffect(() => {
|
|
@@ -388,19 +388,19 @@ function Xa(e, t = globalThis?.document) {
|
|
|
388
388
|
};
|
|
389
389
|
}
|
|
390
390
|
function gr() {
|
|
391
|
-
const e = new CustomEvent(
|
|
391
|
+
const e = new CustomEvent(mo);
|
|
392
392
|
document.dispatchEvent(e);
|
|
393
393
|
}
|
|
394
394
|
function ls(e, t, n, { discrete: o }) {
|
|
395
395
|
const r = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
396
396
|
t && r.addEventListener(e, t, { once: !0 }), o ? Ua(r, s) : r.dispatchEvent(s);
|
|
397
397
|
}
|
|
398
|
-
var
|
|
398
|
+
var Gn = 0;
|
|
399
399
|
function cs() {
|
|
400
400
|
d.useEffect(() => {
|
|
401
401
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
402
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ?? br()), document.body.insertAdjacentElement("beforeend", e[1] ?? br()),
|
|
403
|
-
|
|
402
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? br()), document.body.insertAdjacentElement("beforeend", e[1] ?? br()), Gn++, () => {
|
|
403
|
+
Gn === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), Gn--;
|
|
404
404
|
};
|
|
405
405
|
}, []);
|
|
406
406
|
}
|
|
@@ -432,7 +432,7 @@ var qa = [
|
|
|
432
432
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u(l, { ...a, ref: s });
|
|
433
433
|
});
|
|
434
434
|
return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
|
|
435
|
-
}, {}),
|
|
435
|
+
}, {}), Yn = "focusScope.autoFocusOnMount", Kn = "focusScope.autoFocusOnUnmount", vr = { bubbles: !1, cancelable: !0 }, Qa = "FocusScope", Io = d.forwardRef((e, t) => {
|
|
436
436
|
const {
|
|
437
437
|
loop: n = !1,
|
|
438
438
|
trapped: o = !1,
|
|
@@ -474,13 +474,13 @@ var qa = [
|
|
|
474
474
|
wr.add(m);
|
|
475
475
|
const h = document.activeElement;
|
|
476
476
|
if (!a.contains(h)) {
|
|
477
|
-
const x = new CustomEvent(
|
|
478
|
-
a.addEventListener(
|
|
477
|
+
const x = new CustomEvent(Yn, vr);
|
|
478
|
+
a.addEventListener(Yn, c), a.dispatchEvent(x), x.defaultPrevented || (Ja(rl(us(a)), { select: !0 }), document.activeElement === h && Xe(a));
|
|
479
479
|
}
|
|
480
480
|
return () => {
|
|
481
|
-
a.removeEventListener(
|
|
482
|
-
const x = new CustomEvent(
|
|
483
|
-
a.addEventListener(
|
|
481
|
+
a.removeEventListener(Yn, c), setTimeout(() => {
|
|
482
|
+
const x = new CustomEvent(Kn, vr);
|
|
483
|
+
a.addEventListener(Kn, f), a.dispatchEvent(x), x.defaultPrevented || Xe(h ?? document.body, { select: !0 }), a.removeEventListener(Kn, f), wr.remove(m);
|
|
484
484
|
}, 0);
|
|
485
485
|
};
|
|
486
486
|
}
|
|
@@ -498,7 +498,7 @@ var qa = [
|
|
|
498
498
|
);
|
|
499
499
|
return /* @__PURE__ */ u(Za.div, { tabIndex: -1, ...i, ref: g, onKeyDown: w });
|
|
500
500
|
});
|
|
501
|
-
|
|
501
|
+
Io.displayName = Qa;
|
|
502
502
|
function Ja(e, { select: t = !1 } = {}) {
|
|
503
503
|
const n = document.activeElement;
|
|
504
504
|
for (const o of e)
|
|
@@ -581,7 +581,7 @@ const al = ["top", "right", "bottom", "left"], Ze = Math.min, Se = Math.max, pn
|
|
|
581
581
|
start: "end",
|
|
582
582
|
end: "start"
|
|
583
583
|
};
|
|
584
|
-
function
|
|
584
|
+
function ho(e, t, n) {
|
|
585
585
|
return Se(e, Ze(t, n));
|
|
586
586
|
}
|
|
587
587
|
function je(e, t) {
|
|
@@ -593,30 +593,30 @@ function Ge(e) {
|
|
|
593
593
|
function Et(e) {
|
|
594
594
|
return e.split("-")[1];
|
|
595
595
|
}
|
|
596
|
-
function
|
|
596
|
+
function Mo(e) {
|
|
597
597
|
return e === "x" ? "y" : "x";
|
|
598
598
|
}
|
|
599
|
-
function
|
|
599
|
+
function Do(e) {
|
|
600
600
|
return e === "y" ? "height" : "width";
|
|
601
601
|
}
|
|
602
602
|
const ul = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
603
603
|
function Me(e) {
|
|
604
604
|
return ul.has(Ge(e)) ? "y" : "x";
|
|
605
605
|
}
|
|
606
|
-
function
|
|
607
|
-
return
|
|
606
|
+
function Lo(e) {
|
|
607
|
+
return Mo(Me(e));
|
|
608
608
|
}
|
|
609
609
|
function dl(e, t, n) {
|
|
610
610
|
n === void 0 && (n = !1);
|
|
611
|
-
const o = Et(e), r =
|
|
611
|
+
const o = Et(e), r = Lo(e), s = Do(r);
|
|
612
612
|
let i = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
613
613
|
return t.reference[s] > t.floating[s] && (i = mn(i)), [i, mn(i)];
|
|
614
614
|
}
|
|
615
615
|
function fl(e) {
|
|
616
616
|
const t = mn(e);
|
|
617
|
-
return [
|
|
617
|
+
return [go(e), t, go(t)];
|
|
618
618
|
}
|
|
619
|
-
function
|
|
619
|
+
function go(e) {
|
|
620
620
|
return e.replace(/start|end/g, (t) => cl[t]);
|
|
621
621
|
}
|
|
622
622
|
const Sr = ["left", "right"], Cr = ["right", "left"], pl = ["top", "bottom"], ml = ["bottom", "top"];
|
|
@@ -635,7 +635,7 @@ function hl(e, t, n) {
|
|
|
635
635
|
function gl(e, t, n, o) {
|
|
636
636
|
const r = Et(e);
|
|
637
637
|
let s = hl(Ge(e), n === "start", o);
|
|
638
|
-
return r && (s = s.map((i) => i + "-" + r), t && (s = s.concat(s.map(
|
|
638
|
+
return r && (s = s.map((i) => i + "-" + r), t && (s = s.concat(s.map(go)))), s;
|
|
639
639
|
}
|
|
640
640
|
function mn(e) {
|
|
641
641
|
return e.replace(/left|right|bottom|top/g, (t) => ll[t]);
|
|
@@ -680,7 +680,7 @@ function Er(e, t, n) {
|
|
|
680
680
|
reference: o,
|
|
681
681
|
floating: r
|
|
682
682
|
} = e;
|
|
683
|
-
const s = Me(t), i =
|
|
683
|
+
const s = Me(t), i = Lo(t), a = Do(i), l = Ge(t), c = s === "y", f = o.x + o.width / 2 - r.width / 2, p = o.y + o.height / 2 - r.height / 2, g = o[a] / 2 - r[a] / 2;
|
|
684
684
|
let m;
|
|
685
685
|
switch (l) {
|
|
686
686
|
case "top":
|
|
@@ -850,20 +850,20 @@ const yl = (e) => ({
|
|
|
850
850
|
const p = ds(f), g = {
|
|
851
851
|
x: n,
|
|
852
852
|
y: o
|
|
853
|
-
}, m =
|
|
853
|
+
}, m = Lo(r), w = Do(m), h = await i.getDimensions(c), v = m === "y", x = v ? "top" : "left", S = v ? "bottom" : "right", C = v ? "clientHeight" : "clientWidth", y = s.reference[w] + s.reference[m] - g[m] - s.floating[w], E = g[m] - s.reference[m], $ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(c));
|
|
854
854
|
let k = $ ? $[C] : 0;
|
|
855
855
|
(!k || !await (i.isElement == null ? void 0 : i.isElement($))) && (k = a.floating[C] || s.floating[w]);
|
|
856
|
-
const N = y / 2 - E / 2, G = k / 2 - h[w] / 2 - 1,
|
|
856
|
+
const N = y / 2 - E / 2, G = k / 2 - h[w] / 2 - 1, X = Ze(p[x], G), j = Ze(p[S], G), Z = X, T = k - h[w] - j, F = k / 2 - h[w] / 2 + N, H = ho(Z, F, T), M = !l.arrow && Et(r) != null && F !== H && s.reference[w] / 2 - (F < Z ? X : j) - h[w] / 2 < 0, Y = M ? F < Z ? F - Z : F - T : 0;
|
|
857
857
|
return {
|
|
858
858
|
[m]: g[m] + Y,
|
|
859
859
|
data: {
|
|
860
860
|
[m]: H,
|
|
861
861
|
centerOffset: F - H - Y,
|
|
862
|
-
...
|
|
862
|
+
...M && {
|
|
863
863
|
alignmentOffset: Y
|
|
864
864
|
}
|
|
865
865
|
},
|
|
866
|
-
reset:
|
|
866
|
+
reset: M
|
|
867
867
|
};
|
|
868
868
|
}
|
|
869
869
|
}), wl = function(e) {
|
|
@@ -893,54 +893,54 @@ const yl = (e) => ({
|
|
|
893
893
|
const x = Ge(r), S = Me(a), C = Ge(a) === a, y = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), E = g || (C || !h ? [mn(a)] : fl(a)), $ = w !== "none";
|
|
894
894
|
!g && $ && E.push(...gl(a, h, w, y));
|
|
895
895
|
const k = [a, ...E], N = await $t(t, v), G = [];
|
|
896
|
-
let
|
|
896
|
+
let X = ((o = s.flip) == null ? void 0 : o.overflows) || [];
|
|
897
897
|
if (f && G.push(N[x]), p) {
|
|
898
898
|
const F = dl(r, i, y);
|
|
899
899
|
G.push(N[F[0]], N[F[1]]);
|
|
900
900
|
}
|
|
901
|
-
if (
|
|
901
|
+
if (X = [...X, {
|
|
902
902
|
placement: r,
|
|
903
903
|
overflows: G
|
|
904
904
|
}], !G.every((F) => F <= 0)) {
|
|
905
|
-
var j,
|
|
905
|
+
var j, Z;
|
|
906
906
|
const F = (((j = s.flip) == null ? void 0 : j.index) || 0) + 1, H = k[F];
|
|
907
907
|
if (H && (!(p === "alignment" ? S !== Me(H) : !1) || // We leave the current main axis only if every placement on that axis
|
|
908
908
|
// overflows the main axis.
|
|
909
|
-
|
|
909
|
+
X.every((R) => Me(R.placement) === S ? R.overflows[0] > 0 : !0)))
|
|
910
910
|
return {
|
|
911
911
|
data: {
|
|
912
912
|
index: F,
|
|
913
|
-
overflows:
|
|
913
|
+
overflows: X
|
|
914
914
|
},
|
|
915
915
|
reset: {
|
|
916
916
|
placement: H
|
|
917
917
|
}
|
|
918
918
|
};
|
|
919
|
-
let
|
|
920
|
-
if (!
|
|
919
|
+
let M = (Z = X.filter((Y) => Y.overflows[0] <= 0).sort((Y, R) => Y.overflows[1] - R.overflows[1])[0]) == null ? void 0 : Z.placement;
|
|
920
|
+
if (!M)
|
|
921
921
|
switch (m) {
|
|
922
922
|
case "bestFit": {
|
|
923
923
|
var T;
|
|
924
|
-
const Y = (T =
|
|
924
|
+
const Y = (T = X.filter((R) => {
|
|
925
925
|
if ($) {
|
|
926
|
-
const
|
|
927
|
-
return
|
|
926
|
+
const re = Me(R.placement);
|
|
927
|
+
return re === S || // Create a bias to the `y` side axis due to horizontal
|
|
928
928
|
// reading directions favoring greater width.
|
|
929
|
-
|
|
929
|
+
re === "y";
|
|
930
930
|
}
|
|
931
931
|
return !0;
|
|
932
|
-
}).map((R) => [R.placement, R.overflows.filter((
|
|
933
|
-
Y && (
|
|
932
|
+
}).map((R) => [R.placement, R.overflows.filter((re) => re > 0).reduce((re, le) => re + le, 0)]).sort((R, re) => R[1] - re[1])[0]) == null ? void 0 : T[0];
|
|
933
|
+
Y && (M = Y);
|
|
934
934
|
break;
|
|
935
935
|
}
|
|
936
936
|
case "initialPlacement":
|
|
937
|
-
|
|
937
|
+
M = a;
|
|
938
938
|
break;
|
|
939
939
|
}
|
|
940
|
-
if (r !==
|
|
940
|
+
if (r !== M)
|
|
941
941
|
return {
|
|
942
942
|
reset: {
|
|
943
|
-
placement:
|
|
943
|
+
placement: M
|
|
944
944
|
}
|
|
945
945
|
};
|
|
946
946
|
}
|
|
@@ -1078,15 +1078,15 @@ const Cl = function(e) {
|
|
|
1078
1078
|
} = je(e, t), c = {
|
|
1079
1079
|
x: n,
|
|
1080
1080
|
y: o
|
|
1081
|
-
}, f = await $t(t, l), p = Me(Ge(r)), g =
|
|
1081
|
+
}, f = await $t(t, l), p = Me(Ge(r)), g = Mo(p);
|
|
1082
1082
|
let m = c[g], w = c[p];
|
|
1083
1083
|
if (s) {
|
|
1084
1084
|
const v = g === "y" ? "top" : "left", x = g === "y" ? "bottom" : "right", S = m + f[v], C = m - f[x];
|
|
1085
|
-
m =
|
|
1085
|
+
m = ho(S, m, C);
|
|
1086
1086
|
}
|
|
1087
1087
|
if (i) {
|
|
1088
1088
|
const v = p === "y" ? "top" : "left", x = p === "y" ? "bottom" : "right", S = w + f[v], C = w - f[x];
|
|
1089
|
-
w =
|
|
1089
|
+
w = ho(S, w, C);
|
|
1090
1090
|
}
|
|
1091
1091
|
const h = a.fn({
|
|
1092
1092
|
...t,
|
|
@@ -1123,7 +1123,7 @@ const Cl = function(e) {
|
|
|
1123
1123
|
} = je(e, t), f = {
|
|
1124
1124
|
x: n,
|
|
1125
1125
|
y: o
|
|
1126
|
-
}, p = Me(r), g =
|
|
1126
|
+
}, p = Me(r), g = Mo(p);
|
|
1127
1127
|
let m = f[g], w = f[p];
|
|
1128
1128
|
const h = je(a, t), v = typeof h == "number" ? {
|
|
1129
1129
|
mainAxis: h,
|
|
@@ -1172,8 +1172,8 @@ const Cl = function(e) {
|
|
|
1172
1172
|
const S = h - f.top - f.bottom, C = w - f.left - f.right, y = Ze(h - f[v], S), E = Ze(w - f[x], C), $ = !t.middlewareData.shift;
|
|
1173
1173
|
let k = y, N = E;
|
|
1174
1174
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (N = C), (o = t.middlewareData.shift) != null && o.enabled.y && (k = S), $ && !g) {
|
|
1175
|
-
const
|
|
1176
|
-
m ? N = w - 2 * (
|
|
1175
|
+
const X = Se(f.left, 0), j = Se(f.right, 0), Z = Se(f.top, 0), T = Se(f.bottom, 0);
|
|
1176
|
+
m ? N = w - 2 * (X !== 0 || j !== 0 ? X + j : Se(f.left, f.right)) : k = h - 2 * (Z !== 0 || T !== 0 ? Z + T : Se(f.top, f.bottom));
|
|
1177
1177
|
}
|
|
1178
1178
|
await l({
|
|
1179
1179
|
...t,
|
|
@@ -1240,14 +1240,14 @@ function Sn(e) {
|
|
|
1240
1240
|
});
|
|
1241
1241
|
}
|
|
1242
1242
|
const _l = ["transform", "translate", "scale", "rotate", "perspective"], Ol = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Il = ["paint", "layout", "strict", "content"];
|
|
1243
|
-
function
|
|
1244
|
-
const t =
|
|
1243
|
+
function Fo(e) {
|
|
1244
|
+
const t = $o(), n = Pe(e) ? _e(e) : e;
|
|
1245
1245
|
return _l.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || Ol.some((o) => (n.willChange || "").includes(o)) || Il.some((o) => (n.contain || "").includes(o));
|
|
1246
1246
|
}
|
|
1247
1247
|
function Ml(e) {
|
|
1248
1248
|
let t = Qe(e);
|
|
1249
1249
|
for (; Fe(t) && !St(t); ) {
|
|
1250
|
-
if (
|
|
1250
|
+
if (Fo(t))
|
|
1251
1251
|
return t;
|
|
1252
1252
|
if (Sn(t))
|
|
1253
1253
|
return null;
|
|
@@ -1255,7 +1255,7 @@ function Ml(e) {
|
|
|
1255
1255
|
}
|
|
1256
1256
|
return null;
|
|
1257
1257
|
}
|
|
1258
|
-
function
|
|
1258
|
+
function $o() {
|
|
1259
1259
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
1260
1260
|
}
|
|
1261
1261
|
const Dl = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
@@ -1295,12 +1295,12 @@ function zt(e, t, n) {
|
|
|
1295
1295
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
1296
1296
|
const r = ms(e), s = r === ((o = e.ownerDocument) == null ? void 0 : o.body), i = Ce(r);
|
|
1297
1297
|
if (s) {
|
|
1298
|
-
const a =
|
|
1298
|
+
const a = bo(i);
|
|
1299
1299
|
return t.concat(i, i.visualViewport || [], Wt(r) ? r : [], a && n ? zt(a) : []);
|
|
1300
1300
|
}
|
|
1301
1301
|
return t.concat(r, zt(r, [], n));
|
|
1302
1302
|
}
|
|
1303
|
-
function
|
|
1303
|
+
function bo(e) {
|
|
1304
1304
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
1305
1305
|
}
|
|
1306
1306
|
function hs(e) {
|
|
@@ -1313,11 +1313,11 @@ function hs(e) {
|
|
|
1313
1313
|
$: a
|
|
1314
1314
|
};
|
|
1315
1315
|
}
|
|
1316
|
-
function
|
|
1316
|
+
function zo(e) {
|
|
1317
1317
|
return Pe(e) ? e : e.contextElement;
|
|
1318
1318
|
}
|
|
1319
1319
|
function wt(e) {
|
|
1320
|
-
const t =
|
|
1320
|
+
const t = zo(e);
|
|
1321
1321
|
if (!Fe(t))
|
|
1322
1322
|
return De(1);
|
|
1323
1323
|
const n = t.getBoundingClientRect(), {
|
|
@@ -1334,7 +1334,7 @@ function wt(e) {
|
|
|
1334
1334
|
const Ll = /* @__PURE__ */ De(0);
|
|
1335
1335
|
function gs(e) {
|
|
1336
1336
|
const t = Ce(e);
|
|
1337
|
-
return
|
|
1337
|
+
return !$o() || !t.visualViewport ? Ll : {
|
|
1338
1338
|
x: t.visualViewport.offsetLeft,
|
|
1339
1339
|
y: t.visualViewport.offsetTop
|
|
1340
1340
|
};
|
|
@@ -1344,17 +1344,17 @@ function Fl(e, t, n) {
|
|
|
1344
1344
|
}
|
|
1345
1345
|
function it(e, t, n, o) {
|
|
1346
1346
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
1347
|
-
const r = e.getBoundingClientRect(), s =
|
|
1347
|
+
const r = e.getBoundingClientRect(), s = zo(e);
|
|
1348
1348
|
let i = De(1);
|
|
1349
1349
|
t && (o ? Pe(o) && (i = wt(o)) : i = wt(e));
|
|
1350
1350
|
const a = Fl(s, n, o) ? gs(s) : De(0);
|
|
1351
1351
|
let l = (r.left + a.x) / i.x, c = (r.top + a.y) / i.y, f = r.width / i.x, p = r.height / i.y;
|
|
1352
1352
|
if (s) {
|
|
1353
1353
|
const g = Ce(s), m = o && Pe(o) ? Ce(o) : o;
|
|
1354
|
-
let w = g, h =
|
|
1354
|
+
let w = g, h = bo(w);
|
|
1355
1355
|
for (; h && o && m !== w; ) {
|
|
1356
1356
|
const v = wt(h), x = h.getBoundingClientRect(), S = _e(h), C = x.left + (h.clientLeft + parseFloat(S.paddingLeft)) * v.x, y = x.top + (h.clientTop + parseFloat(S.paddingTop)) * v.y;
|
|
1357
|
-
l *= v.x, c *= v.y, f *= v.x, p *= v.y, l += C, c += y, w = Ce(h), h =
|
|
1357
|
+
l *= v.x, c *= v.y, f *= v.x, p *= v.y, l += C, c += y, w = Ce(h), h = bo(w);
|
|
1358
1358
|
}
|
|
1359
1359
|
}
|
|
1360
1360
|
return hn({
|
|
@@ -1422,7 +1422,7 @@ function Ul(e, t) {
|
|
|
1422
1422
|
let s = o.clientWidth, i = o.clientHeight, a = 0, l = 0;
|
|
1423
1423
|
if (r) {
|
|
1424
1424
|
s = r.width, i = r.height;
|
|
1425
|
-
const f =
|
|
1425
|
+
const f = $o();
|
|
1426
1426
|
(!f || f && t === "fixed") && (a = r.offsetLeft, l = r.offsetTop);
|
|
1427
1427
|
}
|
|
1428
1428
|
const c = En(o);
|
|
@@ -1478,7 +1478,7 @@ function Vl(e, t) {
|
|
|
1478
1478
|
const s = _e(e).position === "fixed";
|
|
1479
1479
|
let i = s ? Qe(e) : e;
|
|
1480
1480
|
for (; Pe(i) && !St(i); ) {
|
|
1481
|
-
const a = _e(i), l =
|
|
1481
|
+
const a = _e(i), l = Fo(i);
|
|
1482
1482
|
!l && a.position === "fixed" && (r = null), (s ? !l && !r : !l && a.position === "static" && !!r && Wl.has(r.position) || Wt(i) && !l && vs(e, i)) ? o = o.filter((f) => f !== i) : r = a, i = Qe(i);
|
|
1483
1483
|
}
|
|
1484
1484
|
return t.set(e, o), o;
|
|
@@ -1535,7 +1535,7 @@ function Yl(e, t, n) {
|
|
|
1535
1535
|
height: i.height
|
|
1536
1536
|
};
|
|
1537
1537
|
}
|
|
1538
|
-
function
|
|
1538
|
+
function Xn(e) {
|
|
1539
1539
|
return _e(e).position === "static";
|
|
1540
1540
|
}
|
|
1541
1541
|
function Pr(e, t) {
|
|
@@ -1553,16 +1553,16 @@ function ys(e, t) {
|
|
|
1553
1553
|
if (!Fe(e)) {
|
|
1554
1554
|
let r = Qe(e);
|
|
1555
1555
|
for (; r && !St(r); ) {
|
|
1556
|
-
if (Pe(r) && !
|
|
1556
|
+
if (Pe(r) && !Xn(r))
|
|
1557
1557
|
return r;
|
|
1558
1558
|
r = Qe(r);
|
|
1559
1559
|
}
|
|
1560
1560
|
return n;
|
|
1561
1561
|
}
|
|
1562
1562
|
let o = Pr(e, t);
|
|
1563
|
-
for (; o && kl(o) &&
|
|
1563
|
+
for (; o && kl(o) && Xn(o); )
|
|
1564
1564
|
o = Pr(o, t);
|
|
1565
|
-
return o && St(o) &&
|
|
1565
|
+
return o && St(o) && Xn(o) && !Fo(o) ? n : o || Ml(e) || n;
|
|
1566
1566
|
}
|
|
1567
1567
|
const Kl = async function(e) {
|
|
1568
1568
|
const t = this.getOffsetParent || ys, n = this.getDimensions, o = await n(e.floating);
|
|
@@ -1648,7 +1648,7 @@ function Ql(e, t, n, o) {
|
|
|
1648
1648
|
elementResize: i = typeof ResizeObserver == "function",
|
|
1649
1649
|
layoutShift: a = typeof IntersectionObserver == "function",
|
|
1650
1650
|
animationFrame: l = !1
|
|
1651
|
-
} = o, c =
|
|
1651
|
+
} = o, c = zo(e), f = r || s ? [...c ? zt(c) : [], ...zt(t)] : [];
|
|
1652
1652
|
f.forEach((x) => {
|
|
1653
1653
|
r && x.addEventListener("scroll", n, {
|
|
1654
1654
|
passive: !0
|
|
@@ -1728,7 +1728,7 @@ function Or(e, t) {
|
|
|
1728
1728
|
const n = xs(e);
|
|
1729
1729
|
return Math.round(t * n) / n;
|
|
1730
1730
|
}
|
|
1731
|
-
function
|
|
1731
|
+
function qn(e) {
|
|
1732
1732
|
const t = d.useRef(e);
|
|
1733
1733
|
return ln(() => {
|
|
1734
1734
|
t.current = e;
|
|
@@ -1761,7 +1761,7 @@ function lc(e) {
|
|
|
1761
1761
|
R !== $.current && ($.current = R, h(R));
|
|
1762
1762
|
}, []), C = d.useCallback((R) => {
|
|
1763
1763
|
R !== k.current && (k.current = R, x(R));
|
|
1764
|
-
}, []), y = s || w, E = i || v, $ = d.useRef(null), k = d.useRef(null), N = d.useRef(f), G = l != null,
|
|
1764
|
+
}, []), y = s || w, E = i || v, $ = d.useRef(null), k = d.useRef(null), N = d.useRef(f), G = l != null, X = qn(l), j = qn(r), Z = qn(c), T = d.useCallback(() => {
|
|
1765
1765
|
if (!$.current || !k.current)
|
|
1766
1766
|
return;
|
|
1767
1767
|
const R = {
|
|
@@ -1769,20 +1769,20 @@ function lc(e) {
|
|
|
1769
1769
|
strategy: n,
|
|
1770
1770
|
middleware: g
|
|
1771
1771
|
};
|
|
1772
|
-
j.current && (R.platform = j.current), sc($.current, k.current, R).then((
|
|
1772
|
+
j.current && (R.platform = j.current), sc($.current, k.current, R).then((re) => {
|
|
1773
1773
|
const le = {
|
|
1774
|
-
...
|
|
1774
|
+
...re,
|
|
1775
1775
|
// The floating element's position may be recomputed while it's closed
|
|
1776
1776
|
// but still mounted (such as when transitioning out). To ensure
|
|
1777
1777
|
// `isPositioned` will be `false` initially on the next open, avoid
|
|
1778
1778
|
// setting it to `true` when `open === false` (must be specified).
|
|
1779
|
-
isPositioned:
|
|
1779
|
+
isPositioned: Z.current !== !1
|
|
1780
1780
|
};
|
|
1781
1781
|
F.current && !gn(N.current, le) && (N.current = le, wn.flushSync(() => {
|
|
1782
1782
|
p(le);
|
|
1783
1783
|
}));
|
|
1784
1784
|
});
|
|
1785
|
-
}, [g, t, n, j,
|
|
1785
|
+
}, [g, t, n, j, Z]);
|
|
1786
1786
|
ln(() => {
|
|
1787
1787
|
c === !1 && N.current.isPositioned && (N.current.isPositioned = !1, p((R) => ({
|
|
1788
1788
|
...R,
|
|
@@ -1794,17 +1794,17 @@ function lc(e) {
|
|
|
1794
1794
|
F.current = !1;
|
|
1795
1795
|
}), []), ln(() => {
|
|
1796
1796
|
if (y && ($.current = y), E && (k.current = E), y && E) {
|
|
1797
|
-
if (
|
|
1798
|
-
return
|
|
1797
|
+
if (X.current)
|
|
1798
|
+
return X.current(y, E, T);
|
|
1799
1799
|
T();
|
|
1800
1800
|
}
|
|
1801
|
-
}, [y, E, T,
|
|
1801
|
+
}, [y, E, T, X, G]);
|
|
1802
1802
|
const H = d.useMemo(() => ({
|
|
1803
1803
|
reference: $,
|
|
1804
1804
|
floating: k,
|
|
1805
1805
|
setReference: S,
|
|
1806
1806
|
setFloating: C
|
|
1807
|
-
}), [S, C]),
|
|
1807
|
+
}), [S, C]), M = d.useMemo(() => ({
|
|
1808
1808
|
reference: y,
|
|
1809
1809
|
floating: E
|
|
1810
1810
|
}), [y, E]), Y = d.useMemo(() => {
|
|
@@ -1813,28 +1813,28 @@ function lc(e) {
|
|
|
1813
1813
|
left: 0,
|
|
1814
1814
|
top: 0
|
|
1815
1815
|
};
|
|
1816
|
-
if (!
|
|
1816
|
+
if (!M.floating)
|
|
1817
1817
|
return R;
|
|
1818
|
-
const
|
|
1818
|
+
const re = Or(M.floating, f.x), le = Or(M.floating, f.y);
|
|
1819
1819
|
return a ? {
|
|
1820
1820
|
...R,
|
|
1821
|
-
transform: "translate(" +
|
|
1822
|
-
...xs(
|
|
1821
|
+
transform: "translate(" + re + "px, " + le + "px)",
|
|
1822
|
+
...xs(M.floating) >= 1.5 && {
|
|
1823
1823
|
willChange: "transform"
|
|
1824
1824
|
}
|
|
1825
1825
|
} : {
|
|
1826
1826
|
position: n,
|
|
1827
|
-
left:
|
|
1827
|
+
left: re,
|
|
1828
1828
|
top: le
|
|
1829
1829
|
};
|
|
1830
|
-
}, [n, a,
|
|
1830
|
+
}, [n, a, M.floating, f.x, f.y]);
|
|
1831
1831
|
return d.useMemo(() => ({
|
|
1832
1832
|
...f,
|
|
1833
1833
|
update: T,
|
|
1834
1834
|
refs: H,
|
|
1835
|
-
elements:
|
|
1835
|
+
elements: M,
|
|
1836
1836
|
floatingStyles: Y
|
|
1837
|
-
}), [f, T, H,
|
|
1837
|
+
}), [f, T, H, M, Y]);
|
|
1838
1838
|
}
|
|
1839
1839
|
const cc = (e) => {
|
|
1840
1840
|
function t(n) {
|
|
@@ -1966,11 +1966,11 @@ function Es(e) {
|
|
|
1966
1966
|
n(void 0);
|
|
1967
1967
|
}, [e]), t;
|
|
1968
1968
|
}
|
|
1969
|
-
var
|
|
1969
|
+
var Bo = "Popper", [As, An] = ct(Bo), [Sc, Ns] = As(Bo), Rs = (e) => {
|
|
1970
1970
|
const { __scopePopper: t, children: n } = e, [o, r] = d.useState(null);
|
|
1971
1971
|
return /* @__PURE__ */ u(Sc, { scope: t, anchor: o, onAnchorChange: r, children: n });
|
|
1972
1972
|
};
|
|
1973
|
-
Rs.displayName =
|
|
1973
|
+
Rs.displayName = Bo;
|
|
1974
1974
|
var Ts = "PopperAnchor", ks = d.forwardRef(
|
|
1975
1975
|
(e, t) => {
|
|
1976
1976
|
const { __scopePopper: n, virtualRef: o, ...r } = e, s = Ns(Ts, n), i = d.useRef(null), a = ae(t, i), l = d.useRef(null);
|
|
@@ -1981,7 +1981,7 @@ var Ts = "PopperAnchor", ks = d.forwardRef(
|
|
|
1981
1981
|
}
|
|
1982
1982
|
);
|
|
1983
1983
|
ks.displayName = Ts;
|
|
1984
|
-
var
|
|
1984
|
+
var Uo = "PopperContent", [Cc, Ec] = As(Uo), Ps = d.forwardRef(
|
|
1985
1985
|
(e, t) => {
|
|
1986
1986
|
const {
|
|
1987
1987
|
__scopePopper: n,
|
|
@@ -1998,16 +1998,16 @@ var Bo = "PopperContent", [Cc, Ec] = As(Bo), Ps = d.forwardRef(
|
|
|
1998
1998
|
updatePositionStrategy: m = "optimized",
|
|
1999
1999
|
onPlaced: w,
|
|
2000
2000
|
...h
|
|
2001
|
-
} = e, v = Ns(
|
|
2002
|
-
padding:
|
|
2001
|
+
} = e, v = Ns(Uo, n), [x, S] = d.useState(null), C = ae(t, (O) => S(O)), [y, E] = d.useState(null), $ = Es(y), k = $?.width ?? 0, N = $?.height ?? 0, G = o + (s !== "center" ? "-" + s : ""), X = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, j = Array.isArray(c) ? c : [c], Z = j.length > 0, T = {
|
|
2002
|
+
padding: X,
|
|
2003
2003
|
boundary: j.filter(Nc),
|
|
2004
2004
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
2005
|
-
altBoundary:
|
|
2006
|
-
}, { refs: F, floatingStyles: H, placement:
|
|
2005
|
+
altBoundary: Z
|
|
2006
|
+
}, { refs: F, floatingStyles: H, placement: M, isPositioned: Y, middlewareData: R } = lc({
|
|
2007
2007
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
2008
2008
|
strategy: "fixed",
|
|
2009
2009
|
placement: G,
|
|
2010
|
-
whileElementsMounted: (...
|
|
2010
|
+
whileElementsMounted: (...O) => Ql(...O, {
|
|
2011
2011
|
animationFrame: m === "always"
|
|
2012
2012
|
}),
|
|
2013
2013
|
elements: {
|
|
@@ -2024,22 +2024,22 @@ var Bo = "PopperContent", [Cc, Ec] = As(Bo), Ps = d.forwardRef(
|
|
|
2024
2024
|
l && pc({ ...T }),
|
|
2025
2025
|
mc({
|
|
2026
2026
|
...T,
|
|
2027
|
-
apply: ({ elements:
|
|
2028
|
-
const { width:
|
|
2029
|
-
ce.setProperty("--radix-popper-available-width", `${
|
|
2027
|
+
apply: ({ elements: O, rects: q, availableWidth: te, availableHeight: J }) => {
|
|
2028
|
+
const { width: ne, height: se } = q.reference, ce = O.floating.style;
|
|
2029
|
+
ce.setProperty("--radix-popper-available-width", `${te}px`), ce.setProperty("--radix-popper-available-height", `${J}px`), ce.setProperty("--radix-popper-anchor-width", `${ne}px`), ce.setProperty("--radix-popper-anchor-height", `${se}px`);
|
|
2030
2030
|
}
|
|
2031
2031
|
}),
|
|
2032
2032
|
y && gc({ element: y, padding: a }),
|
|
2033
2033
|
Rc({ arrowWidth: k, arrowHeight: N }),
|
|
2034
2034
|
g && hc({ strategy: "referenceHidden", ...T })
|
|
2035
2035
|
]
|
|
2036
|
-
}), [
|
|
2036
|
+
}), [re, le] = Is(M), A = qe(w);
|
|
2037
2037
|
he(() => {
|
|
2038
2038
|
Y && A?.();
|
|
2039
2039
|
}, [Y, A]);
|
|
2040
|
-
const L = R.arrow?.x, _ = R.arrow?.y,
|
|
2040
|
+
const L = R.arrow?.x, _ = R.arrow?.y, U = R.arrow?.centerOffset !== 0, [D, K] = d.useState();
|
|
2041
2041
|
return he(() => {
|
|
2042
|
-
x &&
|
|
2042
|
+
x && K(window.getComputedStyle(x).zIndex);
|
|
2043
2043
|
}, [x]), /* @__PURE__ */ u(
|
|
2044
2044
|
"div",
|
|
2045
2045
|
{
|
|
@@ -2050,7 +2050,7 @@ var Bo = "PopperContent", [Cc, Ec] = As(Bo), Ps = d.forwardRef(
|
|
|
2050
2050
|
transform: Y ? H.transform : "translate(0, -200%)",
|
|
2051
2051
|
// keep off the page when measuring
|
|
2052
2052
|
minWidth: "max-content",
|
|
2053
|
-
zIndex:
|
|
2053
|
+
zIndex: D,
|
|
2054
2054
|
"--radix-popper-transform-origin": [
|
|
2055
2055
|
R.transformOrigin?.x,
|
|
2056
2056
|
R.transformOrigin?.y
|
|
@@ -2068,15 +2068,15 @@ var Bo = "PopperContent", [Cc, Ec] = As(Bo), Ps = d.forwardRef(
|
|
|
2068
2068
|
Cc,
|
|
2069
2069
|
{
|
|
2070
2070
|
scope: n,
|
|
2071
|
-
placedSide:
|
|
2071
|
+
placedSide: re,
|
|
2072
2072
|
onArrowChange: E,
|
|
2073
2073
|
arrowX: L,
|
|
2074
2074
|
arrowY: _,
|
|
2075
|
-
shouldHideArrow:
|
|
2075
|
+
shouldHideArrow: U,
|
|
2076
2076
|
children: /* @__PURE__ */ u(
|
|
2077
2077
|
Cs.div,
|
|
2078
2078
|
{
|
|
2079
|
-
"data-side":
|
|
2079
|
+
"data-side": re,
|
|
2080
2080
|
"data-align": le,
|
|
2081
2081
|
...h,
|
|
2082
2082
|
ref: C,
|
|
@@ -2094,7 +2094,7 @@ var Bo = "PopperContent", [Cc, Ec] = As(Bo), Ps = d.forwardRef(
|
|
|
2094
2094
|
);
|
|
2095
2095
|
}
|
|
2096
2096
|
);
|
|
2097
|
-
Ps.displayName =
|
|
2097
|
+
Ps.displayName = Uo;
|
|
2098
2098
|
var _s = "PopperArrow", Ac = {
|
|
2099
2099
|
top: "bottom",
|
|
2100
2100
|
right: "left",
|
|
@@ -2162,7 +2162,7 @@ function Is(e) {
|
|
|
2162
2162
|
const [t, n = "center"] = e.split("-");
|
|
2163
2163
|
return [t, n];
|
|
2164
2164
|
}
|
|
2165
|
-
var Ms = Rs,
|
|
2165
|
+
var Ms = Rs, Wo = ks, Ds = Ps, Ls = Os, Tc = [
|
|
2166
2166
|
"a",
|
|
2167
2167
|
"button",
|
|
2168
2168
|
"div",
|
|
@@ -2186,13 +2186,13 @@ var Ms = Rs, Uo = ks, Ds = Ps, Ls = Os, Tc = [
|
|
|
2186
2186
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u(l, { ...a, ref: s });
|
|
2187
2187
|
});
|
|
2188
2188
|
return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
|
|
2189
|
-
}, {}), Pc = "Portal",
|
|
2189
|
+
}, {}), Pc = "Portal", Ho = d.forwardRef((e, t) => {
|
|
2190
2190
|
const { container: n, ...o } = e, [r, s] = d.useState(!1);
|
|
2191
2191
|
he(() => s(!0), []);
|
|
2192
2192
|
const i = n || r && globalThis?.document?.body;
|
|
2193
2193
|
return i ? Pa.createPortal(/* @__PURE__ */ u(kc.div, { ...o, ref: t }), i) : null;
|
|
2194
2194
|
});
|
|
2195
|
-
|
|
2195
|
+
Ho.displayName = Pc;
|
|
2196
2196
|
var _c = [
|
|
2197
2197
|
"a",
|
|
2198
2198
|
"button",
|
|
@@ -2320,7 +2320,7 @@ var zc = function(e) {
|
|
|
2320
2320
|
return null;
|
|
2321
2321
|
var t = Array.isArray(e) ? e[0] : e;
|
|
2322
2322
|
return t.ownerDocument.body;
|
|
2323
|
-
}, gt = /* @__PURE__ */ new WeakMap(), Qt = /* @__PURE__ */ new WeakMap(), Jt = {},
|
|
2323
|
+
}, gt = /* @__PURE__ */ new WeakMap(), Qt = /* @__PURE__ */ new WeakMap(), Jt = {}, Zn = 0, zs = function(e) {
|
|
2324
2324
|
return e && (e.host || zs(e.parentNode));
|
|
2325
2325
|
}, Bc = function(e, t) {
|
|
2326
2326
|
return t.map(function(n) {
|
|
@@ -2351,11 +2351,11 @@ var zc = function(e) {
|
|
|
2351
2351
|
}
|
|
2352
2352
|
});
|
|
2353
2353
|
};
|
|
2354
|
-
return f(t), a.clear(),
|
|
2354
|
+
return f(t), a.clear(), Zn++, function() {
|
|
2355
2355
|
i.forEach(function(p) {
|
|
2356
2356
|
var g = gt.get(p) - 1, m = s.get(p) - 1;
|
|
2357
2357
|
gt.set(p, g), s.set(p, m), g || (Qt.has(p) || p.removeAttribute(o), Qt.delete(p)), m || p.removeAttribute(n);
|
|
2358
|
-
}),
|
|
2358
|
+
}), Zn--, Zn || (gt = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap(), Qt = /* @__PURE__ */ new WeakMap(), Jt = {});
|
|
2359
2359
|
};
|
|
2360
2360
|
}, Bs = function(e, t, n) {
|
|
2361
2361
|
n === void 0 && (n = "data-aria-hidden");
|
|
@@ -2386,7 +2386,7 @@ function Wc(e, t, n) {
|
|
|
2386
2386
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
2387
2387
|
}
|
|
2388
2388
|
var cn = "right-scroll-bar-position", un = "width-before-scroll-bar", Hc = "with-scroll-bars-hidden", Vc = "--removed-body-scroll-bar-size";
|
|
2389
|
-
function
|
|
2389
|
+
function Qn(e, t) {
|
|
2390
2390
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
2391
2391
|
}
|
|
2392
2392
|
function jc(e, t) {
|
|
@@ -2414,7 +2414,7 @@ var Gc = typeof window < "u" ? d.useLayoutEffect : d.useEffect, Ir = /* @__PURE_
|
|
|
2414
2414
|
function Yc(e, t) {
|
|
2415
2415
|
var n = jc(null, function(o) {
|
|
2416
2416
|
return e.forEach(function(r) {
|
|
2417
|
-
return
|
|
2417
|
+
return Qn(r, o);
|
|
2418
2418
|
});
|
|
2419
2419
|
});
|
|
2420
2420
|
return Gc(function() {
|
|
@@ -2422,9 +2422,9 @@ function Yc(e, t) {
|
|
|
2422
2422
|
if (o) {
|
|
2423
2423
|
var r = new Set(o), s = new Set(e), i = n.current;
|
|
2424
2424
|
r.forEach(function(a) {
|
|
2425
|
-
s.has(a) ||
|
|
2425
|
+
s.has(a) || Qn(a, null);
|
|
2426
2426
|
}), s.forEach(function(a) {
|
|
2427
|
-
r.has(a) ||
|
|
2427
|
+
r.has(a) || Qn(a, i);
|
|
2428
2428
|
});
|
|
2429
2429
|
}
|
|
2430
2430
|
Ir.set(n, e);
|
|
@@ -2506,12 +2506,12 @@ Ws.isSideCarExport = !0;
|
|
|
2506
2506
|
function Zc(e, t) {
|
|
2507
2507
|
return e.useMedium(t), Ws;
|
|
2508
2508
|
}
|
|
2509
|
-
var Hs = qc(),
|
|
2509
|
+
var Hs = qc(), Jn = function() {
|
|
2510
2510
|
}, Nn = d.forwardRef(function(e, t) {
|
|
2511
2511
|
var n = d.useRef(null), o = d.useState({
|
|
2512
|
-
onScrollCapture:
|
|
2513
|
-
onWheelCapture:
|
|
2514
|
-
onTouchMoveCapture:
|
|
2512
|
+
onScrollCapture: Jn,
|
|
2513
|
+
onWheelCapture: Jn,
|
|
2514
|
+
onTouchMoveCapture: Jn
|
|
2515
2515
|
}), r = o[0], s = o[1], i = e.forwardProps, a = e.children, l = e.className, c = e.removeScrollBar, f = e.enabled, p = e.shards, g = e.sideCar, m = e.noRelative, w = e.noIsolation, h = e.inert, v = e.allowPinchZoom, x = e.as, S = x === void 0 ? "div" : x, C = e.gapMode, y = Us(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = g, $ = Yc([n, t]), k = Ie(Ie({}, y), r);
|
|
2516
2516
|
return d.createElement(
|
|
2517
2517
|
d.Fragment,
|
|
@@ -2578,11 +2578,11 @@ var nu = function() {
|
|
|
2578
2578
|
top: 0,
|
|
2579
2579
|
right: 0,
|
|
2580
2580
|
gap: 0
|
|
2581
|
-
},
|
|
2581
|
+
}, eo = function(e) {
|
|
2582
2582
|
return parseInt(e || "", 10) || 0;
|
|
2583
2583
|
}, su = function(e) {
|
|
2584
2584
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], o = t[e === "padding" ? "paddingTop" : "marginTop"], r = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
2585
|
-
return [
|
|
2585
|
+
return [eo(n), eo(o), eo(r)];
|
|
2586
2586
|
}, iu = function(e) {
|
|
2587
2587
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
2588
2588
|
return ru;
|
|
@@ -2654,19 +2654,19 @@ var nu = function() {
|
|
|
2654
2654
|
return iu(r);
|
|
2655
2655
|
}, [r]);
|
|
2656
2656
|
return d.createElement(au, { styles: lu(s, !t, r, n ? "" : "!important") });
|
|
2657
|
-
},
|
|
2657
|
+
}, vo = !1;
|
|
2658
2658
|
if (typeof window < "u")
|
|
2659
2659
|
try {
|
|
2660
2660
|
var en = Object.defineProperty({}, "passive", {
|
|
2661
2661
|
get: function() {
|
|
2662
|
-
return
|
|
2662
|
+
return vo = !0, !0;
|
|
2663
2663
|
}
|
|
2664
2664
|
});
|
|
2665
2665
|
window.addEventListener("test", en, en), window.removeEventListener("test", en, en);
|
|
2666
2666
|
} catch {
|
|
2667
|
-
|
|
2667
|
+
vo = !1;
|
|
2668
2668
|
}
|
|
2669
|
-
var bt =
|
|
2669
|
+
var bt = vo ? { passive: !1 } : !1, du = function(e) {
|
|
2670
2670
|
return e.tagName === "TEXTAREA";
|
|
2671
2671
|
}, js = function(e, t) {
|
|
2672
2672
|
if (!(e instanceof Element))
|
|
@@ -2831,10 +2831,10 @@ function Su(e) {
|
|
|
2831
2831
|
return t;
|
|
2832
2832
|
}
|
|
2833
2833
|
const Cu = Zc(Hs, xu);
|
|
2834
|
-
var
|
|
2834
|
+
var Vo = d.forwardRef(function(e, t) {
|
|
2835
2835
|
return d.createElement(Nn, Ie({}, e, { ref: t, sideCar: Cu }));
|
|
2836
2836
|
});
|
|
2837
|
-
|
|
2837
|
+
Vo.classNames = Nn.classNames;
|
|
2838
2838
|
var Eu = [" ", "Enter", "ArrowUp", "ArrowDown"], Au = [" ", "Enter"], at = "Select", [Rn, Tn, Nu] = ss(at), [Nt] = ct(at, [
|
|
2839
2839
|
Nu,
|
|
2840
2840
|
An
|
|
@@ -2854,18 +2854,18 @@ var Eu = [" ", "Enter", "ArrowUp", "ArrowDown"], Au = [" ", "Enter"], at = "Sele
|
|
|
2854
2854
|
disabled: g,
|
|
2855
2855
|
required: m,
|
|
2856
2856
|
form: w
|
|
2857
|
-
} = e, h = kn(t), [v, x] = d.useState(null), [S, C] = d.useState(null), [y, E] = d.useState(!1), $ =
|
|
2857
|
+
} = e, h = kn(t), [v, x] = d.useState(null), [S, C] = d.useState(null), [y, E] = d.useState(!1), $ = _o(c), [k, N] = Bt({
|
|
2858
2858
|
prop: o,
|
|
2859
2859
|
defaultProp: r ?? !1,
|
|
2860
2860
|
onChange: s,
|
|
2861
2861
|
caller: at
|
|
2862
|
-
}), [G,
|
|
2862
|
+
}), [G, X] = Bt({
|
|
2863
2863
|
prop: i,
|
|
2864
2864
|
defaultProp: a,
|
|
2865
2865
|
onChange: l,
|
|
2866
2866
|
caller: at
|
|
2867
|
-
}), j = d.useRef(null),
|
|
2868
|
-
return /* @__PURE__ */ u(Ms, { ...h, children: /* @__PURE__ */
|
|
2867
|
+
}), j = d.useRef(null), Z = v ? w || !!v.closest("form") : !0, [T, F] = d.useState(/* @__PURE__ */ new Set()), H = Array.from(T).map((M) => M.props.value).join(";");
|
|
2868
|
+
return /* @__PURE__ */ u(Ms, { ...h, children: /* @__PURE__ */ I(
|
|
2869
2869
|
Ru,
|
|
2870
2870
|
{
|
|
2871
2871
|
required: m,
|
|
@@ -2878,7 +2878,7 @@ var Eu = [" ", "Enter", "ArrowUp", "ArrowDown"], Au = [" ", "Enter"], at = "Sele
|
|
|
2878
2878
|
onValueNodeHasChildrenChange: E,
|
|
2879
2879
|
contentId: Ut(),
|
|
2880
2880
|
value: G,
|
|
2881
|
-
onValueChange:
|
|
2881
|
+
onValueChange: X,
|
|
2882
2882
|
open: k,
|
|
2883
2883
|
onOpenChange: N,
|
|
2884
2884
|
dir: $,
|
|
@@ -2889,19 +2889,19 @@ var Eu = [" ", "Enter", "ArrowUp", "ArrowDown"], Au = [" ", "Enter"], at = "Sele
|
|
|
2889
2889
|
Tu,
|
|
2890
2890
|
{
|
|
2891
2891
|
scope: e.__scopeSelect,
|
|
2892
|
-
onNativeOptionAdd: d.useCallback((
|
|
2893
|
-
F((Y) => new Set(Y).add(
|
|
2892
|
+
onNativeOptionAdd: d.useCallback((M) => {
|
|
2893
|
+
F((Y) => new Set(Y).add(M));
|
|
2894
2894
|
}, []),
|
|
2895
|
-
onNativeOptionRemove: d.useCallback((
|
|
2895
|
+
onNativeOptionRemove: d.useCallback((M) => {
|
|
2896
2896
|
F((Y) => {
|
|
2897
2897
|
const R = new Set(Y);
|
|
2898
|
-
return R.delete(
|
|
2898
|
+
return R.delete(M), R;
|
|
2899
2899
|
});
|
|
2900
2900
|
}, []),
|
|
2901
2901
|
children: n
|
|
2902
2902
|
}
|
|
2903
2903
|
) }),
|
|
2904
|
-
|
|
2904
|
+
Z ? /* @__PURE__ */ I(
|
|
2905
2905
|
vi,
|
|
2906
2906
|
{
|
|
2907
2907
|
"aria-hidden": !0,
|
|
@@ -2910,7 +2910,7 @@ var Eu = [" ", "Enter", "ArrowUp", "ArrowDown"], Au = [" ", "Enter"], at = "Sele
|
|
|
2910
2910
|
name: f,
|
|
2911
2911
|
autoComplete: p,
|
|
2912
2912
|
value: G,
|
|
2913
|
-
onChange: (
|
|
2913
|
+
onChange: (M) => X(M.target.value),
|
|
2914
2914
|
disabled: g,
|
|
2915
2915
|
form: w,
|
|
2916
2916
|
children: [
|
|
@@ -2936,7 +2936,7 @@ var Xs = "SelectTrigger", qs = d.forwardRef(
|
|
|
2936
2936
|
y: Math.round(h.pageY)
|
|
2937
2937
|
});
|
|
2938
2938
|
};
|
|
2939
|
-
return /* @__PURE__ */ u(
|
|
2939
|
+
return /* @__PURE__ */ u(Wo, { asChild: !0, ...s, children: /* @__PURE__ */ u(
|
|
2940
2940
|
Ee.button,
|
|
2941
2941
|
{
|
|
2942
2942
|
type: "button",
|
|
@@ -2952,15 +2952,15 @@ var Xs = "SelectTrigger", qs = d.forwardRef(
|
|
|
2952
2952
|
"data-placeholder": yi(i.value) ? "" : void 0,
|
|
2953
2953
|
...r,
|
|
2954
2954
|
ref: l,
|
|
2955
|
-
onClick:
|
|
2955
|
+
onClick: oe(r.onClick, (h) => {
|
|
2956
2956
|
h.currentTarget.focus(), f.current !== "mouse" && w(h);
|
|
2957
2957
|
}),
|
|
2958
|
-
onPointerDown:
|
|
2958
|
+
onPointerDown: oe(r.onPointerDown, (h) => {
|
|
2959
2959
|
f.current = h.pointerType;
|
|
2960
2960
|
const v = h.target;
|
|
2961
2961
|
v.hasPointerCapture(h.pointerId) && v.releasePointerCapture(h.pointerId), h.button === 0 && h.ctrlKey === !1 && h.pointerType === "mouse" && (w(h), h.preventDefault());
|
|
2962
2962
|
}),
|
|
2963
|
-
onKeyDown:
|
|
2963
|
+
onKeyDown: oe(r.onKeyDown, (h) => {
|
|
2964
2964
|
const v = p.current !== "";
|
|
2965
2965
|
!(h.ctrlKey || h.altKey || h.metaKey) && h.key.length === 1 && g(h.key), !(v && h.key === " ") && Eu.includes(h.key) && (w(), h.preventDefault());
|
|
2966
2966
|
})
|
|
@@ -2993,7 +2993,7 @@ var Pu = "SelectIcon", Js = d.forwardRef(
|
|
|
2993
2993
|
}
|
|
2994
2994
|
);
|
|
2995
2995
|
Js.displayName = Pu;
|
|
2996
|
-
var _u = "SelectPortal", ei = (e) => /* @__PURE__ */ u(
|
|
2996
|
+
var _u = "SelectPortal", ei = (e) => /* @__PURE__ */ u(Ho, { asChild: !0, ...e });
|
|
2997
2997
|
ei.displayName = _u;
|
|
2998
2998
|
var lt = "SelectContent", ti = d.forwardRef(
|
|
2999
2999
|
(e, t) => {
|
|
@@ -3033,64 +3033,64 @@ var Te = 10, [ni, et] = Nt(lt), Ou = "SelectContentImpl", Iu = /* @__PURE__ */ x
|
|
|
3033
3033
|
avoidCollisions: v,
|
|
3034
3034
|
//
|
|
3035
3035
|
...x
|
|
3036
|
-
} = e, S = Je(lt, n), [C, y] = d.useState(null), [E, $] = d.useState(null), k = ae(t, (
|
|
3036
|
+
} = e, S = Je(lt, n), [C, y] = d.useState(null), [E, $] = d.useState(null), k = ae(t, (O) => y(O)), [N, G] = d.useState(null), [X, j] = d.useState(
|
|
3037
3037
|
null
|
|
3038
|
-
),
|
|
3038
|
+
), Z = Tn(n), [T, F] = d.useState(!1), H = d.useRef(!1);
|
|
3039
3039
|
d.useEffect(() => {
|
|
3040
3040
|
if (C) return Bs(C);
|
|
3041
3041
|
}, [C]), cs();
|
|
3042
|
-
const
|
|
3043
|
-
(
|
|
3044
|
-
const [
|
|
3045
|
-
for (const
|
|
3046
|
-
if (
|
|
3042
|
+
const M = d.useCallback(
|
|
3043
|
+
(O) => {
|
|
3044
|
+
const [q, ...te] = Z().map((se) => se.ref.current), [J] = te.slice(-1), ne = document.activeElement;
|
|
3045
|
+
for (const se of O)
|
|
3046
|
+
if (se === ne || (se?.scrollIntoView({ block: "nearest" }), se === q && E && (E.scrollTop = 0), se === J && E && (E.scrollTop = E.scrollHeight), se?.focus(), document.activeElement !== ne)) return;
|
|
3047
3047
|
},
|
|
3048
|
-
[
|
|
3048
|
+
[Z, E]
|
|
3049
3049
|
), Y = d.useCallback(
|
|
3050
|
-
() =>
|
|
3051
|
-
[
|
|
3050
|
+
() => M([N, C]),
|
|
3051
|
+
[M, N, C]
|
|
3052
3052
|
);
|
|
3053
3053
|
d.useEffect(() => {
|
|
3054
3054
|
T && Y();
|
|
3055
3055
|
}, [T, Y]);
|
|
3056
|
-
const { onOpenChange: R, triggerPointerDownPosRef:
|
|
3056
|
+
const { onOpenChange: R, triggerPointerDownPosRef: re } = S;
|
|
3057
3057
|
d.useEffect(() => {
|
|
3058
3058
|
if (C) {
|
|
3059
|
-
let
|
|
3060
|
-
const
|
|
3061
|
-
|
|
3062
|
-
x: Math.abs(Math.round(
|
|
3063
|
-
y: Math.abs(Math.round(
|
|
3059
|
+
let O = { x: 0, y: 0 };
|
|
3060
|
+
const q = (J) => {
|
|
3061
|
+
O = {
|
|
3062
|
+
x: Math.abs(Math.round(J.pageX) - (re.current?.x ?? 0)),
|
|
3063
|
+
y: Math.abs(Math.round(J.pageY) - (re.current?.y ?? 0))
|
|
3064
3064
|
};
|
|
3065
|
-
},
|
|
3066
|
-
|
|
3065
|
+
}, te = (J) => {
|
|
3066
|
+
O.x <= 10 && O.y <= 10 ? J.preventDefault() : C.contains(J.target) || R(!1), document.removeEventListener("pointermove", q), re.current = null;
|
|
3067
3067
|
};
|
|
3068
|
-
return
|
|
3069
|
-
document.removeEventListener("pointermove",
|
|
3068
|
+
return re.current !== null && (document.addEventListener("pointermove", q), document.addEventListener("pointerup", te, { capture: !0, once: !0 })), () => {
|
|
3069
|
+
document.removeEventListener("pointermove", q), document.removeEventListener("pointerup", te, { capture: !0 });
|
|
3070
3070
|
};
|
|
3071
3071
|
}
|
|
3072
|
-
}, [C, R,
|
|
3073
|
-
const
|
|
3074
|
-
return window.addEventListener("blur",
|
|
3075
|
-
window.removeEventListener("blur",
|
|
3072
|
+
}, [C, R, re]), d.useEffect(() => {
|
|
3073
|
+
const O = () => R(!1);
|
|
3074
|
+
return window.addEventListener("blur", O), window.addEventListener("resize", O), () => {
|
|
3075
|
+
window.removeEventListener("blur", O), window.removeEventListener("resize", O);
|
|
3076
3076
|
};
|
|
3077
3077
|
}, [R]);
|
|
3078
|
-
const [le, A] = wi((
|
|
3079
|
-
const
|
|
3080
|
-
|
|
3078
|
+
const [le, A] = wi((O) => {
|
|
3079
|
+
const q = Z().filter((ne) => !ne.disabled), te = q.find((ne) => ne.ref.current === document.activeElement), J = xi(q, O, te);
|
|
3080
|
+
J && setTimeout(() => J.ref.current.focus());
|
|
3081
3081
|
}), L = d.useCallback(
|
|
3082
|
-
(
|
|
3083
|
-
const
|
|
3084
|
-
(S.value !== void 0 && S.value ===
|
|
3082
|
+
(O, q, te) => {
|
|
3083
|
+
const J = !H.current && !te;
|
|
3084
|
+
(S.value !== void 0 && S.value === q || J) && (G(O), J && (H.current = !0));
|
|
3085
3085
|
},
|
|
3086
3086
|
[S.value]
|
|
3087
|
-
), _ = d.useCallback(() => C?.focus(), [C]),
|
|
3088
|
-
(
|
|
3089
|
-
const
|
|
3090
|
-
(S.value !== void 0 && S.value ===
|
|
3087
|
+
), _ = d.useCallback(() => C?.focus(), [C]), U = d.useCallback(
|
|
3088
|
+
(O, q, te) => {
|
|
3089
|
+
const J = !H.current && !te;
|
|
3090
|
+
(S.value !== void 0 && S.value === q || J) && j(O);
|
|
3091
3091
|
},
|
|
3092
3092
|
[S.value]
|
|
3093
|
-
),
|
|
3093
|
+
), D = o === "popper" ? yo : ri, K = D === yo ? {
|
|
3094
3094
|
side: a,
|
|
3095
3095
|
sideOffset: l,
|
|
3096
3096
|
align: c,
|
|
@@ -3112,42 +3112,42 @@ var Te = 10, [ni, et] = Nt(lt), Ou = "SelectContentImpl", Iu = /* @__PURE__ */ x
|
|
|
3112
3112
|
itemRefCallback: L,
|
|
3113
3113
|
selectedItem: N,
|
|
3114
3114
|
onItemLeave: _,
|
|
3115
|
-
itemTextRefCallback:
|
|
3115
|
+
itemTextRefCallback: U,
|
|
3116
3116
|
focusSelectedItem: Y,
|
|
3117
|
-
selectedItemText:
|
|
3117
|
+
selectedItemText: X,
|
|
3118
3118
|
position: o,
|
|
3119
3119
|
isPositioned: T,
|
|
3120
3120
|
searchRef: le,
|
|
3121
|
-
children: /* @__PURE__ */ u(
|
|
3122
|
-
|
|
3121
|
+
children: /* @__PURE__ */ u(Vo, { as: Iu, allowPinchZoom: !0, children: /* @__PURE__ */ u(
|
|
3122
|
+
Io,
|
|
3123
3123
|
{
|
|
3124
3124
|
asChild: !0,
|
|
3125
3125
|
trapped: S.open,
|
|
3126
|
-
onMountAutoFocus: (
|
|
3127
|
-
|
|
3126
|
+
onMountAutoFocus: (O) => {
|
|
3127
|
+
O.preventDefault();
|
|
3128
3128
|
},
|
|
3129
|
-
onUnmountAutoFocus:
|
|
3130
|
-
S.trigger?.focus({ preventScroll: !0 }),
|
|
3129
|
+
onUnmountAutoFocus: oe(r, (O) => {
|
|
3130
|
+
S.trigger?.focus({ preventScroll: !0 }), O.preventDefault();
|
|
3131
3131
|
}),
|
|
3132
3132
|
children: /* @__PURE__ */ u(
|
|
3133
|
-
|
|
3133
|
+
Oo,
|
|
3134
3134
|
{
|
|
3135
3135
|
asChild: !0,
|
|
3136
3136
|
disableOutsidePointerEvents: !0,
|
|
3137
3137
|
onEscapeKeyDown: s,
|
|
3138
3138
|
onPointerDownOutside: i,
|
|
3139
|
-
onFocusOutside: (
|
|
3139
|
+
onFocusOutside: (O) => O.preventDefault(),
|
|
3140
3140
|
onDismiss: () => S.onOpenChange(!1),
|
|
3141
3141
|
children: /* @__PURE__ */ u(
|
|
3142
|
-
|
|
3142
|
+
D,
|
|
3143
3143
|
{
|
|
3144
3144
|
role: "listbox",
|
|
3145
3145
|
id: S.contentId,
|
|
3146
3146
|
"data-state": S.open ? "open" : "closed",
|
|
3147
3147
|
dir: S.dir,
|
|
3148
|
-
onContextMenu: (
|
|
3148
|
+
onContextMenu: (O) => O.preventDefault(),
|
|
3149
3149
|
...x,
|
|
3150
|
-
...
|
|
3150
|
+
...K,
|
|
3151
3151
|
onPlaced: () => F(!0),
|
|
3152
3152
|
ref: k,
|
|
3153
3153
|
style: {
|
|
@@ -3158,15 +3158,15 @@ var Te = 10, [ni, et] = Nt(lt), Ou = "SelectContentImpl", Iu = /* @__PURE__ */ x
|
|
|
3158
3158
|
outline: "none",
|
|
3159
3159
|
...x.style
|
|
3160
3160
|
},
|
|
3161
|
-
onKeyDown:
|
|
3162
|
-
const
|
|
3163
|
-
if (
|
|
3164
|
-
let
|
|
3165
|
-
if (["ArrowUp", "End"].includes(
|
|
3166
|
-
const
|
|
3167
|
-
|
|
3161
|
+
onKeyDown: oe(x.onKeyDown, (O) => {
|
|
3162
|
+
const q = O.ctrlKey || O.altKey || O.metaKey;
|
|
3163
|
+
if (O.key === "Tab" && O.preventDefault(), !q && O.key.length === 1 && A(O.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(O.key)) {
|
|
3164
|
+
let J = Z().filter((ne) => !ne.disabled).map((ne) => ne.ref.current);
|
|
3165
|
+
if (["ArrowUp", "End"].includes(O.key) && (J = J.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(O.key)) {
|
|
3166
|
+
const ne = O.target, se = J.indexOf(ne);
|
|
3167
|
+
J = J.slice(se + 1);
|
|
3168
3168
|
}
|
|
3169
|
-
setTimeout(() =>
|
|
3169
|
+
setTimeout(() => M(J)), O.preventDefault();
|
|
3170
3170
|
}
|
|
3171
3171
|
})
|
|
3172
3172
|
}
|
|
@@ -3183,9 +3183,9 @@ oi.displayName = Ou;
|
|
|
3183
3183
|
var Mu = "SelectItemAlignedPosition", ri = d.forwardRef((e, t) => {
|
|
3184
3184
|
const { __scopeSelect: n, onPlaced: o, ...r } = e, s = Je(lt, n), i = et(lt, n), [a, l] = d.useState(null), [c, f] = d.useState(null), p = ae(t, (k) => f(k)), g = Tn(n), m = d.useRef(!1), w = d.useRef(!0), { viewport: h, selectedItem: v, selectedItemText: x, focusSelectedItem: S } = i, C = d.useCallback(() => {
|
|
3185
3185
|
if (s.trigger && s.valueNode && a && c && h && v && x) {
|
|
3186
|
-
const k = s.trigger.getBoundingClientRect(), N = c.getBoundingClientRect(), G = s.valueNode.getBoundingClientRect(),
|
|
3186
|
+
const k = s.trigger.getBoundingClientRect(), N = c.getBoundingClientRect(), G = s.valueNode.getBoundingClientRect(), X = x.getBoundingClientRect();
|
|
3187
3187
|
if (s.dir !== "rtl") {
|
|
3188
|
-
const
|
|
3188
|
+
const ne = X.left - N.left, se = G.left - ne, ce = k.left - se, Ae = k.width + ce, Re = Math.max(Ae, N.width), nt = window.innerWidth - Te, ot = pr(se, [
|
|
3189
3189
|
Te,
|
|
3190
3190
|
// Prevents the content from going off the starting edge of the
|
|
3191
3191
|
// viewport. It may still go off the ending edge, but this can be
|
|
@@ -3196,33 +3196,33 @@ var Mu = "SelectItemAlignedPosition", ri = d.forwardRef((e, t) => {
|
|
|
3196
3196
|
]);
|
|
3197
3197
|
a.style.minWidth = Ae + "px", a.style.left = ot + "px";
|
|
3198
3198
|
} else {
|
|
3199
|
-
const
|
|
3199
|
+
const ne = N.right - X.right, se = window.innerWidth - G.right - ne, ce = window.innerWidth - k.right - se, Ae = k.width + ce, Re = Math.max(Ae, N.width), nt = window.innerWidth - Te, ot = pr(se, [
|
|
3200
3200
|
Te,
|
|
3201
3201
|
Math.max(Te, nt - Re)
|
|
3202
3202
|
]);
|
|
3203
3203
|
a.style.minWidth = Ae + "px", a.style.right = ot + "px";
|
|
3204
3204
|
}
|
|
3205
|
-
const j = g(),
|
|
3206
|
-
if (
|
|
3207
|
-
const
|
|
3205
|
+
const j = g(), Z = window.innerHeight - Te * 2, T = h.scrollHeight, F = window.getComputedStyle(c), H = parseInt(F.borderTopWidth, 10), M = parseInt(F.paddingTop, 10), Y = parseInt(F.borderBottomWidth, 10), R = parseInt(F.paddingBottom, 10), re = H + M + T + R + Y, le = Math.min(v.offsetHeight * 5, re), A = window.getComputedStyle(h), L = parseInt(A.paddingTop, 10), _ = parseInt(A.paddingBottom, 10), U = k.top + k.height / 2 - Te, D = Z - U, K = v.offsetHeight / 2, O = v.offsetTop + K, q = H + M + O, te = re - q;
|
|
3206
|
+
if (q <= U) {
|
|
3207
|
+
const ne = j.length > 0 && v === j[j.length - 1].ref.current;
|
|
3208
3208
|
a.style.bottom = "0px";
|
|
3209
|
-
const
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
(
|
|
3213
|
-
), Ae =
|
|
3209
|
+
const se = c.clientHeight - h.offsetTop - h.offsetHeight, ce = Math.max(
|
|
3210
|
+
D,
|
|
3211
|
+
K + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
|
3212
|
+
(ne ? _ : 0) + se + Y
|
|
3213
|
+
), Ae = q + ce;
|
|
3214
3214
|
a.style.height = Ae + "px";
|
|
3215
3215
|
} else {
|
|
3216
|
-
const
|
|
3216
|
+
const ne = j.length > 0 && v === j[0].ref.current;
|
|
3217
3217
|
a.style.top = "0px";
|
|
3218
3218
|
const ce = Math.max(
|
|
3219
|
-
|
|
3219
|
+
U,
|
|
3220
3220
|
H + h.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
3221
|
-
(
|
|
3222
|
-
) +
|
|
3223
|
-
a.style.height = ce + "px", h.scrollTop =
|
|
3221
|
+
(ne ? L : 0) + K
|
|
3222
|
+
) + te;
|
|
3223
|
+
a.style.height = ce + "px", h.scrollTop = q - U + h.offsetTop;
|
|
3224
3224
|
}
|
|
3225
|
-
a.style.margin = `${Te}px 0`, a.style.minHeight = le + "px", a.style.maxHeight =
|
|
3225
|
+
a.style.margin = `${Te}px 0`, a.style.minHeight = le + "px", a.style.maxHeight = Z + "px", o?.(), requestAnimationFrame(() => m.current = !0);
|
|
3226
3226
|
}
|
|
3227
3227
|
}, [
|
|
3228
3228
|
g,
|
|
@@ -3285,7 +3285,7 @@ var Mu = "SelectItemAlignedPosition", ri = d.forwardRef((e, t) => {
|
|
|
3285
3285
|
);
|
|
3286
3286
|
});
|
|
3287
3287
|
ri.displayName = Mu;
|
|
3288
|
-
var Du = "SelectPopperPosition",
|
|
3288
|
+
var Du = "SelectPopperPosition", yo = d.forwardRef((e, t) => {
|
|
3289
3289
|
const {
|
|
3290
3290
|
__scopeSelect: n,
|
|
3291
3291
|
align: o = "start",
|
|
@@ -3313,11 +3313,11 @@ var Du = "SelectPopperPosition", vo = d.forwardRef((e, t) => {
|
|
|
3313
3313
|
}
|
|
3314
3314
|
);
|
|
3315
3315
|
});
|
|
3316
|
-
|
|
3317
|
-
var [Lu,
|
|
3316
|
+
yo.displayName = Du;
|
|
3317
|
+
var [Lu, jo] = Nt(lt, {}), wo = "SelectViewport", si = d.forwardRef(
|
|
3318
3318
|
(e, t) => {
|
|
3319
|
-
const { __scopeSelect: n, nonce: o, ...r } = e, s = et(
|
|
3320
|
-
return /* @__PURE__ */
|
|
3319
|
+
const { __scopeSelect: n, nonce: o, ...r } = e, s = et(wo, n), i = jo(wo, n), a = ae(t, s.onViewportChange), l = d.useRef(0);
|
|
3320
|
+
return /* @__PURE__ */ I(Le, { children: [
|
|
3321
3321
|
/* @__PURE__ */ u(
|
|
3322
3322
|
"style",
|
|
3323
3323
|
{
|
|
@@ -3347,7 +3347,7 @@ var [Lu, Vo] = Nt(lt, {}), yo = "SelectViewport", si = d.forwardRef(
|
|
|
3347
3347
|
overflow: "hidden auto",
|
|
3348
3348
|
...r.style
|
|
3349
3349
|
},
|
|
3350
|
-
onScroll:
|
|
3350
|
+
onScroll: oe(r.onScroll, (c) => {
|
|
3351
3351
|
const f = c.currentTarget, { contentWrapper: p, shouldExpandOnScrollRef: g } = i;
|
|
3352
3352
|
if (g?.current && p) {
|
|
3353
3353
|
const m = Math.abs(l.current - f.scrollTop);
|
|
@@ -3366,7 +3366,7 @@ var [Lu, Vo] = Nt(lt, {}), yo = "SelectViewport", si = d.forwardRef(
|
|
|
3366
3366
|
] });
|
|
3367
3367
|
}
|
|
3368
3368
|
);
|
|
3369
|
-
si.displayName =
|
|
3369
|
+
si.displayName = wo;
|
|
3370
3370
|
var ii = "SelectGroup", [Fu, $u] = Nt(ii), ai = d.forwardRef(
|
|
3371
3371
|
(e, t) => {
|
|
3372
3372
|
const { __scopeSelect: n, ...o } = e, r = Ut();
|
|
@@ -3430,24 +3430,24 @@ var bn = "SelectItem", [zu, ui] = Nt(bn), di = d.forwardRef(
|
|
|
3430
3430
|
tabIndex: r ? void 0 : -1,
|
|
3431
3431
|
...i,
|
|
3432
3432
|
ref: w,
|
|
3433
|
-
onFocus:
|
|
3434
|
-
onBlur:
|
|
3435
|
-
onClick:
|
|
3433
|
+
onFocus: oe(i.onFocus, () => m(!0)),
|
|
3434
|
+
onBlur: oe(i.onBlur, () => m(!1)),
|
|
3435
|
+
onClick: oe(i.onClick, () => {
|
|
3436
3436
|
v.current !== "mouse" && x();
|
|
3437
3437
|
}),
|
|
3438
|
-
onPointerUp:
|
|
3438
|
+
onPointerUp: oe(i.onPointerUp, () => {
|
|
3439
3439
|
v.current === "mouse" && x();
|
|
3440
3440
|
}),
|
|
3441
|
-
onPointerDown:
|
|
3441
|
+
onPointerDown: oe(i.onPointerDown, (S) => {
|
|
3442
3442
|
v.current = S.pointerType;
|
|
3443
3443
|
}),
|
|
3444
|
-
onPointerMove:
|
|
3444
|
+
onPointerMove: oe(i.onPointerMove, (S) => {
|
|
3445
3445
|
v.current = S.pointerType, r ? l.onItemLeave?.() : v.current === "mouse" && S.currentTarget.focus({ preventScroll: !0 });
|
|
3446
3446
|
}),
|
|
3447
|
-
onPointerLeave:
|
|
3447
|
+
onPointerLeave: oe(i.onPointerLeave, (S) => {
|
|
3448
3448
|
S.currentTarget === document.activeElement && l.onItemLeave?.();
|
|
3449
3449
|
}),
|
|
3450
|
-
onKeyDown:
|
|
3450
|
+
onKeyDown: oe(i.onKeyDown, (S) => {
|
|
3451
3451
|
l.searchRef?.current !== "" && S.key === " " || (Au.includes(S.key) && x(), S.key === " " && S.preventDefault());
|
|
3452
3452
|
})
|
|
3453
3453
|
}
|
|
@@ -3470,7 +3470,7 @@ var Ft = "SelectItemText", fi = d.forwardRef(
|
|
|
3470
3470
|
() => /* @__PURE__ */ u("option", { value: l.value, disabled: l.disabled, children: m }, l.value),
|
|
3471
3471
|
[l.disabled, l.value, m]
|
|
3472
3472
|
), { onNativeOptionAdd: h, onNativeOptionRemove: v } = c;
|
|
3473
|
-
return he(() => (h(w), () => v(w)), [h, v, w]), /* @__PURE__ */
|
|
3473
|
+
return he(() => (h(w), () => v(w)), [h, v, w]), /* @__PURE__ */ I(Le, { children: [
|
|
3474
3474
|
/* @__PURE__ */ u(Ee.span, { id: l.textId, ...s, ref: g }),
|
|
3475
3475
|
l.isSelected && i.valueNode && !i.valueNodeHasChildren ? wn.createPortal(s.children, i.valueNode) : null
|
|
3476
3476
|
] });
|
|
@@ -3484,8 +3484,8 @@ var pi = "SelectItemIndicator", Bu = d.forwardRef(
|
|
|
3484
3484
|
}
|
|
3485
3485
|
);
|
|
3486
3486
|
Bu.displayName = pi;
|
|
3487
|
-
var
|
|
3488
|
-
const n = et(
|
|
3487
|
+
var xo = "SelectScrollUpButton", mi = d.forwardRef((e, t) => {
|
|
3488
|
+
const n = et(xo, e.__scopeSelect), o = jo(xo, e.__scopeSelect), [r, s] = d.useState(!1), i = ae(t, o.onScrollButtonChange);
|
|
3489
3489
|
return he(() => {
|
|
3490
3490
|
if (n.viewport && n.isPositioned) {
|
|
3491
3491
|
let a = function() {
|
|
@@ -3507,9 +3507,9 @@ var wo = "SelectScrollUpButton", mi = d.forwardRef((e, t) => {
|
|
|
3507
3507
|
}
|
|
3508
3508
|
) : null;
|
|
3509
3509
|
});
|
|
3510
|
-
mi.displayName =
|
|
3511
|
-
var
|
|
3512
|
-
const n = et(
|
|
3510
|
+
mi.displayName = xo;
|
|
3511
|
+
var So = "SelectScrollDownButton", Uu = d.forwardRef((e, t) => {
|
|
3512
|
+
const n = et(So, e.__scopeSelect), o = jo(So, e.__scopeSelect), [r, s] = d.useState(!1), i = ae(t, o.onScrollButtonChange);
|
|
3513
3513
|
return he(() => {
|
|
3514
3514
|
if (n.viewport && n.isPositioned) {
|
|
3515
3515
|
let a = function() {
|
|
@@ -3531,7 +3531,7 @@ var xo = "SelectScrollDownButton", Uu = d.forwardRef((e, t) => {
|
|
|
3531
3531
|
}
|
|
3532
3532
|
) : null;
|
|
3533
3533
|
});
|
|
3534
|
-
Uu.displayName =
|
|
3534
|
+
Uu.displayName = So;
|
|
3535
3535
|
var hi = d.forwardRef((e, t) => {
|
|
3536
3536
|
const { __scopeSelect: n, onAutoScroll: o, ...r } = e, s = et("SelectScrollButton", n), i = d.useRef(null), a = Tn(n), l = d.useCallback(() => {
|
|
3537
3537
|
i.current !== null && (window.clearInterval(i.current), i.current = null);
|
|
@@ -3545,13 +3545,13 @@ var hi = d.forwardRef((e, t) => {
|
|
|
3545
3545
|
...r,
|
|
3546
3546
|
ref: t,
|
|
3547
3547
|
style: { flexShrink: 0, ...r.style },
|
|
3548
|
-
onPointerDown:
|
|
3548
|
+
onPointerDown: oe(r.onPointerDown, () => {
|
|
3549
3549
|
i.current === null && (i.current = window.setInterval(o, 50));
|
|
3550
3550
|
}),
|
|
3551
|
-
onPointerMove:
|
|
3551
|
+
onPointerMove: oe(r.onPointerMove, () => {
|
|
3552
3552
|
s.onItemLeave?.(), i.current === null && (i.current = window.setInterval(o, 50));
|
|
3553
3553
|
}),
|
|
3554
|
-
onPointerLeave:
|
|
3554
|
+
onPointerLeave: oe(r.onPointerLeave, () => {
|
|
3555
3555
|
l();
|
|
3556
3556
|
})
|
|
3557
3557
|
}
|
|
@@ -3563,13 +3563,13 @@ var hi = d.forwardRef((e, t) => {
|
|
|
3563
3563
|
}
|
|
3564
3564
|
);
|
|
3565
3565
|
gi.displayName = Wu;
|
|
3566
|
-
var
|
|
3566
|
+
var Co = "SelectArrow", bi = d.forwardRef(
|
|
3567
3567
|
(e, t) => {
|
|
3568
|
-
const { __scopeSelect: n, ...o } = e, r = kn(n), s = Je(
|
|
3568
|
+
const { __scopeSelect: n, ...o } = e, r = kn(n), s = Je(Co, n), i = et(Co, n);
|
|
3569
3569
|
return s.open && i.position === "popper" ? /* @__PURE__ */ u(Ls, { ...r, ...o, ref: t }) : null;
|
|
3570
3570
|
}
|
|
3571
3571
|
);
|
|
3572
|
-
bi.displayName =
|
|
3572
|
+
bi.displayName = Co;
|
|
3573
3573
|
var Hu = "SelectBubbleInput", vi = d.forwardRef(
|
|
3574
3574
|
({ __scopeSelect: e, value: t, ...n }, o) => {
|
|
3575
3575
|
const r = d.useRef(null), s = ae(o, r), i = Fs(t);
|
|
@@ -3658,7 +3658,7 @@ const ld = os(
|
|
|
3658
3658
|
children: s,
|
|
3659
3659
|
iconNode: i,
|
|
3660
3660
|
...a
|
|
3661
|
-
}, l) =>
|
|
3661
|
+
}, l) => fo(
|
|
3662
3662
|
"svg",
|
|
3663
3663
|
{
|
|
3664
3664
|
ref: l,
|
|
@@ -3672,14 +3672,14 @@ const ld = os(
|
|
|
3672
3672
|
...a
|
|
3673
3673
|
},
|
|
3674
3674
|
[
|
|
3675
|
-
...i.map(([c, f]) =>
|
|
3675
|
+
...i.map(([c, f]) => fo(c, f)),
|
|
3676
3676
|
...Array.isArray(s) ? s : [s]
|
|
3677
3677
|
]
|
|
3678
3678
|
)
|
|
3679
3679
|
);
|
|
3680
3680
|
const ze = (e, t) => {
|
|
3681
3681
|
const n = os(
|
|
3682
|
-
({ className: o, ...r }, s) =>
|
|
3682
|
+
({ className: o, ...r }, s) => fo(ld, {
|
|
3683
3683
|
ref: s,
|
|
3684
3684
|
iconNode: t,
|
|
3685
3685
|
className: Si(
|
|
@@ -3732,15 +3732,15 @@ const Rd = [
|
|
|
3732
3732
|
], Td = ze("x", Rd);
|
|
3733
3733
|
function kd({ field: e, formValues: t, handleChange: n, handleBlur: o, error: r }) {
|
|
3734
3734
|
const s = t[e.name] || "", i = typeof e.disabled == "function" ? e.disabled(t) : e.disabled, a = e.options || [];
|
|
3735
|
-
return /* @__PURE__ */
|
|
3736
|
-
/* @__PURE__ */
|
|
3735
|
+
return /* @__PURE__ */ I(Le, { children: [
|
|
3736
|
+
/* @__PURE__ */ I(
|
|
3737
3737
|
ju,
|
|
3738
3738
|
{
|
|
3739
3739
|
value: s,
|
|
3740
3740
|
onValueChange: (l) => n(e.name, l),
|
|
3741
3741
|
disabled: i,
|
|
3742
3742
|
children: [
|
|
3743
|
-
/* @__PURE__ */
|
|
3743
|
+
/* @__PURE__ */ I(
|
|
3744
3744
|
Gu,
|
|
3745
3745
|
{
|
|
3746
3746
|
id: e.name,
|
|
@@ -3760,7 +3760,7 @@ function kd({ field: e, formValues: t, handleChange: n, handleBlur: o, error: r
|
|
|
3760
3760
|
]
|
|
3761
3761
|
}
|
|
3762
3762
|
),
|
|
3763
|
-
/* @__PURE__ */ u(Xu, { children: /* @__PURE__ */
|
|
3763
|
+
/* @__PURE__ */ u(Xu, { children: /* @__PURE__ */ I(
|
|
3764
3764
|
qu,
|
|
3765
3765
|
{
|
|
3766
3766
|
className: "bg-white border border-gray-200 rounded-md shadow-lg z-50 min-w-[var(--radix-select-trigger-width)]",
|
|
@@ -3768,7 +3768,7 @@ function kd({ field: e, formValues: t, handleChange: n, handleBlur: o, error: r
|
|
|
3768
3768
|
sideOffset: 5,
|
|
3769
3769
|
children: [
|
|
3770
3770
|
/* @__PURE__ */ u(nd, { className: "flex items-center justify-center h-6 text-gray-500 bg-gray-50", children: /* @__PURE__ */ u($r, { className: "fill-white stroke-gray-200" }) }),
|
|
3771
|
-
/* @__PURE__ */
|
|
3771
|
+
/* @__PURE__ */ I(Zu, { className: "p-1", children: [
|
|
3772
3772
|
e.groupLabel && /* @__PURE__ */ u(Qu, { children: /* @__PURE__ */ u(Ju, { className: "px-2 py-1 text-xs text-gray-500 uppercase tracking-wide", children: e.groupLabel }) }),
|
|
3773
3773
|
a.map((l) => /* @__PURE__ */ u(
|
|
3774
3774
|
ed,
|
|
@@ -3884,10 +3884,10 @@ const {
|
|
|
3884
3884
|
let {
|
|
3885
3885
|
freeze: ve,
|
|
3886
3886
|
seal: Ne,
|
|
3887
|
-
create:
|
|
3887
|
+
create: Eo
|
|
3888
3888
|
} = Object, {
|
|
3889
|
-
apply:
|
|
3890
|
-
construct:
|
|
3889
|
+
apply: Ao,
|
|
3890
|
+
construct: No
|
|
3891
3891
|
} = typeof Reflect < "u" && Reflect;
|
|
3892
3892
|
ve || (ve = function(t) {
|
|
3893
3893
|
return t;
|
|
@@ -3895,33 +3895,33 @@ ve || (ve = function(t) {
|
|
|
3895
3895
|
Ne || (Ne = function(t) {
|
|
3896
3896
|
return t;
|
|
3897
3897
|
});
|
|
3898
|
-
|
|
3898
|
+
Ao || (Ao = function(t, n) {
|
|
3899
3899
|
for (var o = arguments.length, r = new Array(o > 2 ? o - 2 : 0), s = 2; s < o; s++)
|
|
3900
3900
|
r[s - 2] = arguments[s];
|
|
3901
3901
|
return t.apply(n, r);
|
|
3902
3902
|
});
|
|
3903
|
-
|
|
3903
|
+
No || (No = function(t) {
|
|
3904
3904
|
for (var n = arguments.length, o = new Array(n > 1 ? n - 1 : 0), r = 1; r < n; r++)
|
|
3905
3905
|
o[r - 1] = arguments[r];
|
|
3906
3906
|
return new t(...o);
|
|
3907
3907
|
});
|
|
3908
|
-
const nn = ye(Array.prototype.forEach), Dd = ye(Array.prototype.lastIndexOf), Wr = ye(Array.prototype.pop), _t = ye(Array.prototype.push), Ld = ye(Array.prototype.splice), dn = ye(String.prototype.toLowerCase),
|
|
3908
|
+
const nn = ye(Array.prototype.forEach), Dd = ye(Array.prototype.lastIndexOf), Wr = ye(Array.prototype.pop), _t = ye(Array.prototype.push), Ld = ye(Array.prototype.splice), dn = ye(String.prototype.toLowerCase), to = ye(String.prototype.toString), no = ye(String.prototype.match), Ot = ye(String.prototype.replace), Fd = ye(String.prototype.indexOf), $d = ye(String.prototype.trim), ke = ye(Object.prototype.hasOwnProperty), ge = ye(RegExp.prototype.test), It = zd(TypeError);
|
|
3909
3909
|
function ye(e) {
|
|
3910
3910
|
return function(t) {
|
|
3911
3911
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
3912
3912
|
for (var n = arguments.length, o = new Array(n > 1 ? n - 1 : 0), r = 1; r < n; r++)
|
|
3913
3913
|
o[r - 1] = arguments[r];
|
|
3914
|
-
return
|
|
3914
|
+
return Ao(e, t, o);
|
|
3915
3915
|
};
|
|
3916
3916
|
}
|
|
3917
3917
|
function zd(e) {
|
|
3918
3918
|
return function() {
|
|
3919
3919
|
for (var t = arguments.length, n = new Array(t), o = 0; o < t; o++)
|
|
3920
3920
|
n[o] = arguments[o];
|
|
3921
|
-
return
|
|
3921
|
+
return No(e, n);
|
|
3922
3922
|
};
|
|
3923
3923
|
}
|
|
3924
|
-
function
|
|
3924
|
+
function ee(e, t) {
|
|
3925
3925
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : dn;
|
|
3926
3926
|
Ur && Ur(e, null);
|
|
3927
3927
|
let o = t.length;
|
|
@@ -3941,7 +3941,7 @@ function Bd(e) {
|
|
|
3941
3941
|
return e;
|
|
3942
3942
|
}
|
|
3943
3943
|
function Ve(e) {
|
|
3944
|
-
const t =
|
|
3944
|
+
const t = Eo(null);
|
|
3945
3945
|
for (const [n, o] of Ci(e))
|
|
3946
3946
|
ke(e, n) && (Array.isArray(o) ? t[n] = Bd(o) : o && typeof o == "object" && o.constructor === Object ? t[n] = Ve(o) : t[n] = o);
|
|
3947
3947
|
return t;
|
|
@@ -3962,7 +3962,7 @@ function Mt(e, t) {
|
|
|
3962
3962
|
}
|
|
3963
3963
|
return n;
|
|
3964
3964
|
}
|
|
3965
|
-
const Hr = ve(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]),
|
|
3965
|
+
const Hr = ve(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), oo = ve(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), ro = ve(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Ud = ve(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), so = ve(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Wd = ve(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Vr = ve(["#text"]), jr = ve(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), io = ve(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Gr = ve(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), on = ve(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Hd = Ne(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Vd = Ne(/<%[\w\W]*|[\w\W]*%>/gm), jd = Ne(/\$\{[\w\W]*/gm), Gd = Ne(/^data-[\-\w.\u00B7-\uFFFF]+$/), Yd = Ne(/^aria-[\-\w]+$/), Ei = Ne(
|
|
3966
3966
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
3967
3967
|
// eslint-disable-line no-useless-escape
|
|
3968
3968
|
), Kd = Ne(/^(?:\w+script|data):/i), Xd = Ne(
|
|
@@ -4053,27 +4053,27 @@ function Ni() {
|
|
|
4053
4053
|
createDocumentFragment: N,
|
|
4054
4054
|
getElementsByTagName: G
|
|
4055
4055
|
} = n, {
|
|
4056
|
-
importNode:
|
|
4056
|
+
importNode: X
|
|
4057
4057
|
} = o;
|
|
4058
4058
|
let j = Kr();
|
|
4059
4059
|
t.isSupported = typeof Ci == "function" && typeof C == "function" && $ && $.createHTMLDocument !== void 0;
|
|
4060
4060
|
const {
|
|
4061
|
-
MUSTACHE_EXPR:
|
|
4061
|
+
MUSTACHE_EXPR: Z,
|
|
4062
4062
|
ERB_EXPR: T,
|
|
4063
4063
|
TMPLIT_EXPR: F,
|
|
4064
4064
|
DATA_ATTR: H,
|
|
4065
|
-
ARIA_ATTR:
|
|
4065
|
+
ARIA_ATTR: M,
|
|
4066
4066
|
IS_SCRIPT_OR_DATA: Y,
|
|
4067
4067
|
ATTR_WHITESPACE: R,
|
|
4068
|
-
CUSTOM_ELEMENT:
|
|
4068
|
+
CUSTOM_ELEMENT: re
|
|
4069
4069
|
} = Yr;
|
|
4070
4070
|
let {
|
|
4071
4071
|
IS_ALLOWED_URI: le
|
|
4072
4072
|
} = Yr, A = null;
|
|
4073
|
-
const L =
|
|
4073
|
+
const L = ee({}, [...Hr, ...oo, ...ro, ...so, ...Vr]);
|
|
4074
4074
|
let _ = null;
|
|
4075
|
-
const
|
|
4076
|
-
let
|
|
4075
|
+
const U = ee({}, [...jr, ...io, ...Gr, ...on]);
|
|
4076
|
+
let D = Object.seal(Eo(null, {
|
|
4077
4077
|
tagNameCheck: {
|
|
4078
4078
|
writable: !0,
|
|
4079
4079
|
configurable: !1,
|
|
@@ -4092,8 +4092,8 @@ function Ni() {
|
|
|
4092
4092
|
enumerable: !0,
|
|
4093
4093
|
value: !1
|
|
4094
4094
|
}
|
|
4095
|
-
})),
|
|
4096
|
-
const
|
|
4095
|
+
})), K = null, O = null;
|
|
4096
|
+
const q = Object.seal(Eo(null, {
|
|
4097
4097
|
tagCheck: {
|
|
4098
4098
|
writable: !0,
|
|
4099
4099
|
configurable: !1,
|
|
@@ -4107,28 +4107,28 @@ function Ni() {
|
|
|
4107
4107
|
value: null
|
|
4108
4108
|
}
|
|
4109
4109
|
}));
|
|
4110
|
-
let
|
|
4110
|
+
let te = !0, J = !0, ne = !1, se = !0, ce = !1, Ae = !0, Re = !1, nt = !1, ot = !1, ut = !1, jt = !1, Gt = !1, Xo = !0, qo = !1;
|
|
4111
4111
|
const va = "user-content-";
|
|
4112
4112
|
let $n = !0, kt = !1, dt = {}, ft = null;
|
|
4113
|
-
const
|
|
4114
|
-
let
|
|
4115
|
-
const
|
|
4113
|
+
const Zo = ee({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
4114
|
+
let Qo = null;
|
|
4115
|
+
const Jo = ee({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
4116
4116
|
let zn = null;
|
|
4117
|
-
const
|
|
4117
|
+
const er = ee({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Yt = "http://www.w3.org/1998/Math/MathML", Kt = "http://www.w3.org/2000/svg", Be = "http://www.w3.org/1999/xhtml";
|
|
4118
4118
|
let pt = Be, Bn = !1, Un = null;
|
|
4119
|
-
const ya =
|
|
4120
|
-
let Xt =
|
|
4121
|
-
const wa =
|
|
4119
|
+
const ya = ee({}, [Yt, Kt, Be], to);
|
|
4120
|
+
let Xt = ee({}, ["mi", "mo", "mn", "ms", "mtext"]), qt = ee({}, ["annotation-xml"]);
|
|
4121
|
+
const wa = ee({}, ["title", "style", "font", "a", "script"]);
|
|
4122
4122
|
let Pt = null;
|
|
4123
4123
|
const xa = ["application/xhtml+xml", "text/html"], Sa = "text/html";
|
|
4124
4124
|
let fe = null, mt = null;
|
|
4125
|
-
const Ca = n.createElement("form"),
|
|
4125
|
+
const Ca = n.createElement("form"), tr = function(b) {
|
|
4126
4126
|
return b instanceof RegExp || b instanceof Function;
|
|
4127
4127
|
}, Wn = function() {
|
|
4128
4128
|
let b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4129
4129
|
if (!(mt && mt === b)) {
|
|
4130
4130
|
if ((!b || typeof b != "object") && (b = {}), b = Ve(b), Pt = // eslint-disable-next-line unicorn/prefer-includes
|
|
4131
|
-
xa.indexOf(b.PARSER_MEDIA_TYPE) === -1 ? Sa : b.PARSER_MEDIA_TYPE, fe = Pt === "application/xhtml+xml" ?
|
|
4131
|
+
xa.indexOf(b.PARSER_MEDIA_TYPE) === -1 ? Sa : b.PARSER_MEDIA_TYPE, fe = Pt === "application/xhtml+xml" ? to : dn, A = ke(b, "ALLOWED_TAGS") ? ee({}, b.ALLOWED_TAGS, fe) : L, _ = ke(b, "ALLOWED_ATTR") ? ee({}, b.ALLOWED_ATTR, fe) : U, Un = ke(b, "ALLOWED_NAMESPACES") ? ee({}, b.ALLOWED_NAMESPACES, to) : ya, zn = ke(b, "ADD_URI_SAFE_ATTR") ? ee(Ve(er), b.ADD_URI_SAFE_ATTR, fe) : er, Qo = ke(b, "ADD_DATA_URI_TAGS") ? ee(Ve(Jo), b.ADD_DATA_URI_TAGS, fe) : Jo, ft = ke(b, "FORBID_CONTENTS") ? ee({}, b.FORBID_CONTENTS, fe) : Zo, K = ke(b, "FORBID_TAGS") ? ee({}, b.FORBID_TAGS, fe) : Ve({}), O = ke(b, "FORBID_ATTR") ? ee({}, b.FORBID_ATTR, fe) : Ve({}), dt = ke(b, "USE_PROFILES") ? b.USE_PROFILES : !1, te = b.ALLOW_ARIA_ATTR !== !1, J = b.ALLOW_DATA_ATTR !== !1, ne = b.ALLOW_UNKNOWN_PROTOCOLS || !1, se = b.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ce = b.SAFE_FOR_TEMPLATES || !1, Ae = b.SAFE_FOR_XML !== !1, Re = b.WHOLE_DOCUMENT || !1, ut = b.RETURN_DOM || !1, jt = b.RETURN_DOM_FRAGMENT || !1, Gt = b.RETURN_TRUSTED_TYPE || !1, ot = b.FORCE_BODY || !1, Xo = b.SANITIZE_DOM !== !1, qo = b.SANITIZE_NAMED_PROPS || !1, $n = b.KEEP_CONTENT !== !1, kt = b.IN_PLACE || !1, le = b.ALLOWED_URI_REGEXP || Ei, pt = b.NAMESPACE || Be, Xt = b.MATHML_TEXT_INTEGRATION_POINTS || Xt, qt = b.HTML_INTEGRATION_POINTS || qt, D = b.CUSTOM_ELEMENT_HANDLING || {}, b.CUSTOM_ELEMENT_HANDLING && tr(b.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (D.tagNameCheck = b.CUSTOM_ELEMENT_HANDLING.tagNameCheck), b.CUSTOM_ELEMENT_HANDLING && tr(b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (D.attributeNameCheck = b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), b.CUSTOM_ELEMENT_HANDLING && typeof b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (D.allowCustomizedBuiltInElements = b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ce && (J = !1), jt && (ut = !0), dt && (A = ee({}, Vr), _ = [], dt.html === !0 && (ee(A, Hr), ee(_, jr)), dt.svg === !0 && (ee(A, oo), ee(_, io), ee(_, on)), dt.svgFilters === !0 && (ee(A, ro), ee(_, io), ee(_, on)), dt.mathMl === !0 && (ee(A, so), ee(_, Gr), ee(_, on))), b.ADD_TAGS && (typeof b.ADD_TAGS == "function" ? q.tagCheck = b.ADD_TAGS : (A === L && (A = Ve(A)), ee(A, b.ADD_TAGS, fe))), b.ADD_ATTR && (typeof b.ADD_ATTR == "function" ? q.attributeCheck = b.ADD_ATTR : (_ === U && (_ = Ve(_)), ee(_, b.ADD_ATTR, fe))), b.ADD_URI_SAFE_ATTR && ee(zn, b.ADD_URI_SAFE_ATTR, fe), b.FORBID_CONTENTS && (ft === Zo && (ft = Ve(ft)), ee(ft, b.FORBID_CONTENTS, fe)), $n && (A["#text"] = !0), Re && ee(A, ["html", "head", "body"]), A.table && (ee(A, ["tbody"]), delete K.tbody), b.TRUSTED_TYPES_POLICY) {
|
|
4132
4132
|
if (typeof b.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
4133
4133
|
throw It('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
4134
4134
|
if (typeof b.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -4138,14 +4138,14 @@ function Ni() {
|
|
|
4138
4138
|
y === void 0 && (y = Qd(m, r)), y !== null && typeof E == "string" && (E = y.createHTML(""));
|
|
4139
4139
|
ve && ve(b), mt = b;
|
|
4140
4140
|
}
|
|
4141
|
-
},
|
|
4141
|
+
}, nr = ee({}, [...oo, ...ro, ...Ud]), or = ee({}, [...so, ...Wd]), Ea = function(b) {
|
|
4142
4142
|
let P = C(b);
|
|
4143
4143
|
(!P || !P.tagName) && (P = {
|
|
4144
4144
|
namespaceURI: pt,
|
|
4145
4145
|
tagName: "template"
|
|
4146
4146
|
});
|
|
4147
4147
|
const W = dn(b.tagName), ie = dn(P.tagName);
|
|
4148
|
-
return Un[b.namespaceURI] ? b.namespaceURI === Kt ? P.namespaceURI === Be ? W === "svg" : P.namespaceURI === Yt ? W === "svg" && (ie === "annotation-xml" || Xt[ie]) : !!
|
|
4148
|
+
return Un[b.namespaceURI] ? b.namespaceURI === Kt ? P.namespaceURI === Be ? W === "svg" : P.namespaceURI === Yt ? W === "svg" && (ie === "annotation-xml" || Xt[ie]) : !!nr[W] : b.namespaceURI === Yt ? P.namespaceURI === Be ? W === "math" : P.namespaceURI === Kt ? W === "math" && qt[ie] : !!or[W] : b.namespaceURI === Be ? P.namespaceURI === Kt && !qt[ie] || P.namespaceURI === Yt && !Xt[ie] ? !1 : !or[W] && (wa[W] || !nr[W]) : !!(Pt === "application/xhtml+xml" && Un[b.namespaceURI]) : !1;
|
|
4149
4149
|
}, Oe = function(b) {
|
|
4150
4150
|
_t(t.removed, {
|
|
4151
4151
|
element: b
|
|
@@ -4178,12 +4178,12 @@ function Ni() {
|
|
|
4178
4178
|
P.setAttribute(b, "");
|
|
4179
4179
|
} catch {
|
|
4180
4180
|
}
|
|
4181
|
-
},
|
|
4181
|
+
}, rr = function(b) {
|
|
4182
4182
|
let P = null, W = null;
|
|
4183
4183
|
if (ot)
|
|
4184
4184
|
b = "<remove></remove>" + b;
|
|
4185
4185
|
else {
|
|
4186
|
-
const ue =
|
|
4186
|
+
const ue = no(b, /^[\r\n\t ]+/);
|
|
4187
4187
|
W = ue && ue[0];
|
|
4188
4188
|
}
|
|
4189
4189
|
Pt === "application/xhtml+xml" && pt === Be && (b = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + b + "</body></html>");
|
|
@@ -4202,7 +4202,7 @@ function Ni() {
|
|
|
4202
4202
|
}
|
|
4203
4203
|
const me = P.body || P.documentElement;
|
|
4204
4204
|
return b && W && me.insertBefore(n.createTextNode(W), me.childNodes[0] || null), pt === Be ? G.call(P, Re ? "html" : "body")[0] : Re ? P.documentElement : me;
|
|
4205
|
-
},
|
|
4205
|
+
}, sr = function(b) {
|
|
4206
4206
|
return k.call(
|
|
4207
4207
|
b.ownerDocument || b,
|
|
4208
4208
|
b,
|
|
@@ -4212,7 +4212,7 @@ function Ni() {
|
|
|
4212
4212
|
);
|
|
4213
4213
|
}, Hn = function(b) {
|
|
4214
4214
|
return b instanceof p && (typeof b.nodeName != "string" || typeof b.textContent != "string" || typeof b.removeChild != "function" || !(b.attributes instanceof f) || typeof b.removeAttribute != "function" || typeof b.setAttribute != "function" || typeof b.namespaceURI != "string" || typeof b.insertBefore != "function" || typeof b.hasChildNodes != "function");
|
|
4215
|
-
},
|
|
4215
|
+
}, ir = function(b) {
|
|
4216
4216
|
return typeof a == "function" && b instanceof a;
|
|
4217
4217
|
};
|
|
4218
4218
|
function Ue(V, b, P) {
|
|
@@ -4220,7 +4220,7 @@ function Ni() {
|
|
|
4220
4220
|
W.call(t, b, P, mt);
|
|
4221
4221
|
});
|
|
4222
4222
|
}
|
|
4223
|
-
const
|
|
4223
|
+
const ar = function(b) {
|
|
4224
4224
|
let P = null;
|
|
4225
4225
|
if (Ue(j.beforeSanitizeElements, b, null), Hn(b))
|
|
4226
4226
|
return Oe(b), !0;
|
|
@@ -4228,10 +4228,10 @@ function Ni() {
|
|
|
4228
4228
|
if (Ue(j.uponSanitizeElement, b, {
|
|
4229
4229
|
tagName: W,
|
|
4230
4230
|
allowedTags: A
|
|
4231
|
-
}), Ae && b.hasChildNodes() && !
|
|
4231
|
+
}), Ae && b.hasChildNodes() && !ir(b.firstElementChild) && ge(/<[/\w!]/g, b.innerHTML) && ge(/<[/\w!]/g, b.textContent) || b.nodeType === Dt.progressingInstruction || Ae && b.nodeType === Dt.comment && ge(/<[/\w]/g, b.data))
|
|
4232
4232
|
return Oe(b), !0;
|
|
4233
|
-
if (!(
|
|
4234
|
-
if (!
|
|
4233
|
+
if (!(q.tagCheck instanceof Function && q.tagCheck(W)) && (!A[W] || K[W])) {
|
|
4234
|
+
if (!K[W] && cr(W) && (D.tagNameCheck instanceof RegExp && ge(D.tagNameCheck, W) || D.tagNameCheck instanceof Function && D.tagNameCheck(W)))
|
|
4235
4235
|
return !1;
|
|
4236
4236
|
if ($n && !ft[W]) {
|
|
4237
4237
|
const ie = C(b) || b.parentNode, me = S(b) || b.childNodes;
|
|
@@ -4245,30 +4245,30 @@ function Ni() {
|
|
|
4245
4245
|
}
|
|
4246
4246
|
return Oe(b), !0;
|
|
4247
4247
|
}
|
|
4248
|
-
return b instanceof l && !Ea(b) || (W === "noscript" || W === "noembed" || W === "noframes") && ge(/<\/no(script|embed|frames)/i, b.innerHTML) ? (Oe(b), !0) : (ce && b.nodeType === Dt.text && (P = b.textContent, nn([
|
|
4248
|
+
return b instanceof l && !Ea(b) || (W === "noscript" || W === "noembed" || W === "noframes") && ge(/<\/no(script|embed|frames)/i, b.innerHTML) ? (Oe(b), !0) : (ce && b.nodeType === Dt.text && (P = b.textContent, nn([Z, T, F], (ie) => {
|
|
4249
4249
|
P = Ot(P, ie, " ");
|
|
4250
4250
|
}), b.textContent !== P && (_t(t.removed, {
|
|
4251
4251
|
element: b.cloneNode()
|
|
4252
4252
|
}), b.textContent = P)), Ue(j.afterSanitizeElements, b, null), !1);
|
|
4253
|
-
},
|
|
4254
|
-
if (
|
|
4253
|
+
}, lr = function(b, P, W) {
|
|
4254
|
+
if (Xo && (P === "id" || P === "name") && (W in n || W in Ca))
|
|
4255
4255
|
return !1;
|
|
4256
|
-
if (!(
|
|
4257
|
-
if (!(
|
|
4258
|
-
if (!(
|
|
4259
|
-
if (!_[P] ||
|
|
4256
|
+
if (!(J && !O[P] && ge(H, P))) {
|
|
4257
|
+
if (!(te && ge(M, P))) {
|
|
4258
|
+
if (!(q.attributeCheck instanceof Function && q.attributeCheck(P, b))) {
|
|
4259
|
+
if (!_[P] || O[P]) {
|
|
4260
4260
|
if (
|
|
4261
4261
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
4262
4262
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4263
4263
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
4264
|
-
!(
|
|
4264
|
+
!(cr(b) && (D.tagNameCheck instanceof RegExp && ge(D.tagNameCheck, b) || D.tagNameCheck instanceof Function && D.tagNameCheck(b)) && (D.attributeNameCheck instanceof RegExp && ge(D.attributeNameCheck, P) || D.attributeNameCheck instanceof Function && D.attributeNameCheck(P, b)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
4265
4265
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4266
|
-
P === "is" &&
|
|
4266
|
+
P === "is" && D.allowCustomizedBuiltInElements && (D.tagNameCheck instanceof RegExp && ge(D.tagNameCheck, W) || D.tagNameCheck instanceof Function && D.tagNameCheck(W)))
|
|
4267
4267
|
) return !1;
|
|
4268
4268
|
} else if (!zn[P]) {
|
|
4269
4269
|
if (!ge(le, Ot(W, R, ""))) {
|
|
4270
|
-
if (!((P === "src" || P === "xlink:href" || P === "href") && b !== "script" && Fd(W, "data:") === 0 &&
|
|
4271
|
-
if (!(
|
|
4270
|
+
if (!((P === "src" || P === "xlink:href" || P === "href") && b !== "script" && Fd(W, "data:") === 0 && Qo[b])) {
|
|
4271
|
+
if (!(ne && !ge(Y, Ot(W, R, "")))) {
|
|
4272
4272
|
if (W)
|
|
4273
4273
|
return !1;
|
|
4274
4274
|
}
|
|
@@ -4279,9 +4279,9 @@ function Ni() {
|
|
|
4279
4279
|
}
|
|
4280
4280
|
}
|
|
4281
4281
|
return !0;
|
|
4282
|
-
}, lr = function(b) {
|
|
4283
|
-
return b !== "annotation-xml" && to(b, ne);
|
|
4284
4282
|
}, cr = function(b) {
|
|
4283
|
+
return b !== "annotation-xml" && no(b, re);
|
|
4284
|
+
}, ur = function(b) {
|
|
4285
4285
|
Ue(j.beforeSanitizeAttributes, b, null);
|
|
4286
4286
|
const {
|
|
4287
4287
|
attributes: P
|
|
@@ -4303,11 +4303,11 @@ function Ni() {
|
|
|
4303
4303
|
value: We
|
|
4304
4304
|
} = me, ht = fe(ue), Vn = We;
|
|
4305
4305
|
let pe = ue === "value" ? Vn : $d(Vn);
|
|
4306
|
-
if (W.attrName = ht, W.attrValue = pe, W.keepAttr = !0, W.forceKeepAttr = void 0, Ue(j.uponSanitizeAttribute, b, W), pe = W.attrValue,
|
|
4306
|
+
if (W.attrName = ht, W.attrValue = pe, W.keepAttr = !0, W.forceKeepAttr = void 0, Ue(j.uponSanitizeAttribute, b, W), pe = W.attrValue, qo && (ht === "id" || ht === "name") && (rt(ue, b), pe = va + pe), Ae && ge(/((--!?|])>)|<\/(style|title|textarea)/i, pe)) {
|
|
4307
4307
|
rt(ue, b);
|
|
4308
4308
|
continue;
|
|
4309
4309
|
}
|
|
4310
|
-
if (ht === "attributename" &&
|
|
4310
|
+
if (ht === "attributename" && no(pe, "href")) {
|
|
4311
4311
|
rt(ue, b);
|
|
4312
4312
|
continue;
|
|
4313
4313
|
}
|
|
@@ -4317,20 +4317,20 @@ function Ni() {
|
|
|
4317
4317
|
rt(ue, b);
|
|
4318
4318
|
continue;
|
|
4319
4319
|
}
|
|
4320
|
-
if (!
|
|
4320
|
+
if (!se && ge(/\/>/i, pe)) {
|
|
4321
4321
|
rt(ue, b);
|
|
4322
4322
|
continue;
|
|
4323
4323
|
}
|
|
4324
|
-
ce && nn([
|
|
4325
|
-
pe = Ot(pe,
|
|
4324
|
+
ce && nn([Z, T, F], (fr) => {
|
|
4325
|
+
pe = Ot(pe, fr, " ");
|
|
4326
4326
|
});
|
|
4327
|
-
const
|
|
4328
|
-
if (!
|
|
4327
|
+
const dr = fe(b.nodeName);
|
|
4328
|
+
if (!lr(dr, ht, pe)) {
|
|
4329
4329
|
rt(ue, b);
|
|
4330
4330
|
continue;
|
|
4331
4331
|
}
|
|
4332
4332
|
if (y && typeof m == "object" && typeof m.getAttributeType == "function" && !we)
|
|
4333
|
-
switch (m.getAttributeType(
|
|
4333
|
+
switch (m.getAttributeType(dr, ht)) {
|
|
4334
4334
|
case "TrustedHTML": {
|
|
4335
4335
|
pe = y.createHTML(pe);
|
|
4336
4336
|
break;
|
|
@@ -4350,14 +4350,14 @@ function Ni() {
|
|
|
4350
4350
|
Ue(j.afterSanitizeAttributes, b, null);
|
|
4351
4351
|
}, Aa = function V(b) {
|
|
4352
4352
|
let P = null;
|
|
4353
|
-
const W =
|
|
4353
|
+
const W = sr(b);
|
|
4354
4354
|
for (Ue(j.beforeSanitizeShadowDOM, b, null); P = W.nextNode(); )
|
|
4355
|
-
Ue(j.uponSanitizeShadowNode, P, null),
|
|
4355
|
+
Ue(j.uponSanitizeShadowNode, P, null), ar(P), ur(P), P.content instanceof s && V(P.content);
|
|
4356
4356
|
Ue(j.afterSanitizeShadowDOM, b, null);
|
|
4357
4357
|
};
|
|
4358
4358
|
return t.sanitize = function(V) {
|
|
4359
4359
|
let b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, P = null, W = null, ie = null, me = null;
|
|
4360
|
-
if (Bn = !V, Bn && (V = "<!-->"), typeof V != "string" && !
|
|
4360
|
+
if (Bn = !V, Bn && (V = "<!-->"), typeof V != "string" && !ir(V))
|
|
4361
4361
|
if (typeof V.toString == "function") {
|
|
4362
4362
|
if (V = V.toString(), typeof V != "string")
|
|
4363
4363
|
throw It("dirty is not a string, aborting");
|
|
@@ -4368,22 +4368,22 @@ function Ni() {
|
|
|
4368
4368
|
if (nt || Wn(b), t.removed = [], typeof V == "string" && (kt = !1), kt) {
|
|
4369
4369
|
if (V.nodeName) {
|
|
4370
4370
|
const We = fe(V.nodeName);
|
|
4371
|
-
if (!A[We] ||
|
|
4371
|
+
if (!A[We] || K[We])
|
|
4372
4372
|
throw It("root node is forbidden and cannot be sanitized in-place");
|
|
4373
4373
|
}
|
|
4374
4374
|
} else if (V instanceof a)
|
|
4375
|
-
P =
|
|
4375
|
+
P = rr("<!---->"), W = P.ownerDocument.importNode(V, !0), W.nodeType === Dt.element && W.nodeName === "BODY" || W.nodeName === "HTML" ? P = W : P.appendChild(W);
|
|
4376
4376
|
else {
|
|
4377
4377
|
if (!ut && !ce && !Re && // eslint-disable-next-line unicorn/prefer-includes
|
|
4378
4378
|
V.indexOf("<") === -1)
|
|
4379
4379
|
return y && Gt ? y.createHTML(V) : V;
|
|
4380
|
-
if (P =
|
|
4380
|
+
if (P = rr(V), !P)
|
|
4381
4381
|
return ut ? null : Gt ? E : "";
|
|
4382
4382
|
}
|
|
4383
4383
|
P && ot && Oe(P.firstChild);
|
|
4384
|
-
const ue =
|
|
4384
|
+
const ue = sr(kt ? V : P);
|
|
4385
4385
|
for (; ie = ue.nextNode(); )
|
|
4386
|
-
|
|
4386
|
+
ar(ie), ur(ie), ie.content instanceof s && Aa(ie.content);
|
|
4387
4387
|
if (kt)
|
|
4388
4388
|
return V;
|
|
4389
4389
|
if (ut) {
|
|
@@ -4392,11 +4392,11 @@ function Ni() {
|
|
|
4392
4392
|
me.appendChild(P.firstChild);
|
|
4393
4393
|
else
|
|
4394
4394
|
me = P;
|
|
4395
|
-
return (_.shadowroot || _.shadowrootmode) && (me =
|
|
4395
|
+
return (_.shadowroot || _.shadowrootmode) && (me = X.call(o, me, !0)), me;
|
|
4396
4396
|
}
|
|
4397
4397
|
let we = Re ? P.outerHTML : P.innerHTML;
|
|
4398
4398
|
return Re && A["!doctype"] && P.ownerDocument && P.ownerDocument.doctype && P.ownerDocument.doctype.name && ge(Ai, P.ownerDocument.doctype.name) && (we = "<!DOCTYPE " + P.ownerDocument.doctype.name + `>
|
|
4399
|
-
` + we), ce && nn([
|
|
4399
|
+
` + we), ce && nn([Z, T, F], (We) => {
|
|
4400
4400
|
we = Ot(we, We, " ");
|
|
4401
4401
|
}), y && Gt ? y.createHTML(we) : we;
|
|
4402
4402
|
}, t.setConfig = function() {
|
|
@@ -4407,7 +4407,7 @@ function Ni() {
|
|
|
4407
4407
|
}, t.isValidAttribute = function(V, b, P) {
|
|
4408
4408
|
mt || Wn({});
|
|
4409
4409
|
const W = fe(V), ie = fe(b);
|
|
4410
|
-
return
|
|
4410
|
+
return lr(W, ie, P);
|
|
4411
4411
|
}, t.addHook = function(V, b) {
|
|
4412
4412
|
typeof b == "function" && _t(j[V], b);
|
|
4413
4413
|
}, t.removeHook = function(V, b) {
|
|
@@ -4429,7 +4429,7 @@ function tf({ field: e, formValues: t, disabled: n }) {
|
|
|
4429
4429
|
w-full px-3 py-2 border rounded-md overflow-y-auto max-h-40 prose prose-sm max-w-none shadow-inner transition duration-150
|
|
4430
4430
|
${o ? "bg-gray-100 text-gray-500 border-gray-300 cursor-not-allowed" : "bg-white text-gray-800 border-gray-200 hover:border-gray-300"}
|
|
4431
4431
|
`.trim();
|
|
4432
|
-
return /* @__PURE__ */
|
|
4432
|
+
return /* @__PURE__ */ I("div", { className: s, id: `${e.name}_id`, children: [
|
|
4433
4433
|
/* @__PURE__ */ u("label", { htmlFor: e.name, className: "block text-sm font-medium mb-1", children: e.label }),
|
|
4434
4434
|
/* @__PURE__ */ u(
|
|
4435
4435
|
"div",
|
|
@@ -4453,7 +4453,7 @@ function nf({ field: e, formValues: t, handleChange: n, handleBlur: o, error: r
|
|
|
4453
4453
|
className: a ? "grid grid-cols-4 gap-3 mt-3" : "space-y-3 mt-3",
|
|
4454
4454
|
children: i.map((p) => {
|
|
4455
4455
|
const g = typeof p == "object" ? p.value : p, m = typeof p == "object" ? p.label : p, w = typeof p == "object" ? p.description : null, h = `${e.name}-${g}`, v = l.includes(g);
|
|
4456
|
-
return /* @__PURE__ */
|
|
4456
|
+
return /* @__PURE__ */ I("div", { className: "relative flex items-start", children: [
|
|
4457
4457
|
/* @__PURE__ */ u("div", { className: "flex h-6 items-center", children: /* @__PURE__ */ u(
|
|
4458
4458
|
"input",
|
|
4459
4459
|
{
|
|
@@ -4472,8 +4472,8 @@ function nf({ field: e, formValues: t, handleChange: n, handleBlur: o, error: r
|
|
|
4472
4472
|
`
|
|
4473
4473
|
}
|
|
4474
4474
|
) }),
|
|
4475
|
-
/* @__PURE__ */
|
|
4476
|
-
/* @__PURE__ */
|
|
4475
|
+
/* @__PURE__ */ I("div", { className: "ml-3 text-sm", children: [
|
|
4476
|
+
/* @__PURE__ */ I(
|
|
4477
4477
|
"label",
|
|
4478
4478
|
{
|
|
4479
4479
|
htmlFor: h,
|
|
@@ -4497,7 +4497,7 @@ function nf({ field: e, formValues: t, handleChange: n, handleBlur: o, error: r
|
|
|
4497
4497
|
}
|
|
4498
4498
|
) });
|
|
4499
4499
|
}
|
|
4500
|
-
return /* @__PURE__ */ u("div", { className: "mt-1", children: /* @__PURE__ */
|
|
4500
|
+
return /* @__PURE__ */ u("div", { className: "mt-1", children: /* @__PURE__ */ I("div", { className: "space-x-2", children: [
|
|
4501
4501
|
/* @__PURE__ */ u(
|
|
4502
4502
|
"input",
|
|
4503
4503
|
{
|
|
@@ -4511,7 +4511,7 @@ function nf({ field: e, formValues: t, handleChange: n, handleBlur: o, error: r
|
|
|
4511
4511
|
className: `rounded border-gray-300 ${s ? "opacity-50 cursor-not-allowed" : ""} ${r ? "border-red-500" : ""}`
|
|
4512
4512
|
}
|
|
4513
4513
|
),
|
|
4514
|
-
/* @__PURE__ */
|
|
4514
|
+
/* @__PURE__ */ I("label", { className: "", htmlFor: "id_" + e.name, children: [
|
|
4515
4515
|
e.label,
|
|
4516
4516
|
e.required && /* @__PURE__ */ u("span", { className: "text-red-500", children: "*" })
|
|
4517
4517
|
] })
|
|
@@ -4642,7 +4642,7 @@ ki.displayName = _n;
|
|
|
4642
4642
|
var Pi = "PopoverAnchor", cf = d.forwardRef(
|
|
4643
4643
|
(e, t) => {
|
|
4644
4644
|
const { __scopePopover: n, ...o } = e, r = tt(Pi, n), s = Ht(n), { onCustomAnchorAdd: i, onCustomAnchorRemove: a } = r;
|
|
4645
|
-
return d.useEffect(() => (i(), () => a()), [i, a]), /* @__PURE__ */ u(
|
|
4645
|
+
return d.useEffect(() => (i(), () => a()), [i, a]), /* @__PURE__ */ u(Wo, { ...s, ...o, ref: t });
|
|
4646
4646
|
}
|
|
4647
4647
|
);
|
|
4648
4648
|
cf.displayName = Pi;
|
|
@@ -4658,20 +4658,20 @@ var _i = "PopoverTrigger", Oi = d.forwardRef(
|
|
|
4658
4658
|
"data-state": Fi(r.open),
|
|
4659
4659
|
...o,
|
|
4660
4660
|
ref: i,
|
|
4661
|
-
onClick:
|
|
4661
|
+
onClick: oe(e.onClick, r.onOpenToggle)
|
|
4662
4662
|
}
|
|
4663
4663
|
);
|
|
4664
|
-
return r.hasCustomAnchor ? a : /* @__PURE__ */ u(
|
|
4664
|
+
return r.hasCustomAnchor ? a : /* @__PURE__ */ u(Wo, { asChild: !0, ...s, children: a });
|
|
4665
4665
|
}
|
|
4666
4666
|
);
|
|
4667
4667
|
Oi.displayName = _i;
|
|
4668
|
-
var
|
|
4668
|
+
var Go = "PopoverPortal", [uf, df] = Ti(Go, {
|
|
4669
4669
|
forceMount: void 0
|
|
4670
4670
|
}), Ii = (e) => {
|
|
4671
|
-
const { __scopePopover: t, forceMount: n, children: o, container: r } = e, s = tt(
|
|
4672
|
-
return /* @__PURE__ */ u(uf, { scope: t, forceMount: n, children: /* @__PURE__ */ u(Pn, { present: n || s.open, children: /* @__PURE__ */ u(
|
|
4671
|
+
const { __scopePopover: t, forceMount: n, children: o, container: r } = e, s = tt(Go, t);
|
|
4672
|
+
return /* @__PURE__ */ u(uf, { scope: t, forceMount: n, children: /* @__PURE__ */ u(Pn, { present: n || s.open, children: /* @__PURE__ */ u(Ho, { asChild: !0, container: r, children: o }) }) });
|
|
4673
4673
|
};
|
|
4674
|
-
Ii.displayName =
|
|
4674
|
+
Ii.displayName = Go;
|
|
4675
4675
|
var Ct = "PopoverContent", Mi = d.forwardRef(
|
|
4676
4676
|
(e, t) => {
|
|
4677
4677
|
const n = df(Ct, e.__scopePopover), { forceMount: o = n.forceMount, ...r } = e, s = tt(Ct, e.__scopePopover);
|
|
@@ -4685,17 +4685,17 @@ var ff = /* @__PURE__ */ xe("PopoverContent.RemoveScroll"), pf = d.forwardRef(
|
|
|
4685
4685
|
return d.useEffect(() => {
|
|
4686
4686
|
const i = o.current;
|
|
4687
4687
|
if (i) return Bs(i);
|
|
4688
|
-
}, []), /* @__PURE__ */ u(
|
|
4688
|
+
}, []), /* @__PURE__ */ u(Vo, { as: ff, allowPinchZoom: !0, children: /* @__PURE__ */ u(
|
|
4689
4689
|
Di,
|
|
4690
4690
|
{
|
|
4691
4691
|
...e,
|
|
4692
4692
|
ref: r,
|
|
4693
4693
|
trapFocus: n.open,
|
|
4694
4694
|
disableOutsidePointerEvents: !0,
|
|
4695
|
-
onCloseAutoFocus:
|
|
4695
|
+
onCloseAutoFocus: oe(e.onCloseAutoFocus, (i) => {
|
|
4696
4696
|
i.preventDefault(), s.current || n.triggerRef.current?.focus();
|
|
4697
4697
|
}),
|
|
4698
|
-
onPointerDownOutside:
|
|
4698
|
+
onPointerDownOutside: oe(
|
|
4699
4699
|
e.onPointerDownOutside,
|
|
4700
4700
|
(i) => {
|
|
4701
4701
|
const a = i.detail.originalEvent, l = a.button === 0 && a.ctrlKey === !0, c = a.button === 2 || l;
|
|
@@ -4703,7 +4703,7 @@ var ff = /* @__PURE__ */ xe("PopoverContent.RemoveScroll"), pf = d.forwardRef(
|
|
|
4703
4703
|
},
|
|
4704
4704
|
{ checkForDefaultPrevented: !1 }
|
|
4705
4705
|
),
|
|
4706
|
-
onFocusOutside:
|
|
4706
|
+
onFocusOutside: oe(
|
|
4707
4707
|
e.onFocusOutside,
|
|
4708
4708
|
(i) => i.preventDefault(),
|
|
4709
4709
|
{ checkForDefaultPrevented: !1 }
|
|
@@ -4747,7 +4747,7 @@ var ff = /* @__PURE__ */ xe("PopoverContent.RemoveScroll"), pf = d.forwardRef(
|
|
|
4747
4747
|
...p
|
|
4748
4748
|
} = e, g = tt(Ct, n), m = Ht(n);
|
|
4749
4749
|
return cs(), /* @__PURE__ */ u(
|
|
4750
|
-
|
|
4750
|
+
Io,
|
|
4751
4751
|
{
|
|
4752
4752
|
asChild: !0,
|
|
4753
4753
|
loop: !0,
|
|
@@ -4755,7 +4755,7 @@ var ff = /* @__PURE__ */ xe("PopoverContent.RemoveScroll"), pf = d.forwardRef(
|
|
|
4755
4755
|
onMountAutoFocus: r,
|
|
4756
4756
|
onUnmountAutoFocus: s,
|
|
4757
4757
|
children: /* @__PURE__ */ u(
|
|
4758
|
-
|
|
4758
|
+
Oo,
|
|
4759
4759
|
{
|
|
4760
4760
|
asChild: !0,
|
|
4761
4761
|
disableOutsidePointerEvents: i,
|
|
@@ -4797,7 +4797,7 @@ var ff = /* @__PURE__ */ xe("PopoverContent.RemoveScroll"), pf = d.forwardRef(
|
|
|
4797
4797
|
type: "button",
|
|
4798
4798
|
...o,
|
|
4799
4799
|
ref: t,
|
|
4800
|
-
onClick:
|
|
4800
|
+
onClick: oe(e.onClick, () => r.onOpenChange(!1))
|
|
4801
4801
|
}
|
|
4802
4802
|
);
|
|
4803
4803
|
}
|
|
@@ -4891,10 +4891,10 @@ const Cf = (e, t) => {
|
|
|
4891
4891
|
const n = zi();
|
|
4892
4892
|
for (const o in e) {
|
|
4893
4893
|
const r = e[o];
|
|
4894
|
-
|
|
4894
|
+
Yo(r, n, o, t);
|
|
4895
4895
|
}
|
|
4896
4896
|
return n;
|
|
4897
|
-
},
|
|
4897
|
+
}, Yo = (e, t, n, o) => {
|
|
4898
4898
|
const r = e.length;
|
|
4899
4899
|
for (let s = 0; s < r; s++) {
|
|
4900
4900
|
const i = e[s];
|
|
@@ -4915,7 +4915,7 @@ const Cf = (e, t) => {
|
|
|
4915
4915
|
o.classGroupId = n;
|
|
4916
4916
|
}, Of = (e, t, n, o) => {
|
|
4917
4917
|
if (Mf(e)) {
|
|
4918
|
-
|
|
4918
|
+
Yo(e(o), t, n, o);
|
|
4919
4919
|
return;
|
|
4920
4920
|
}
|
|
4921
4921
|
t.validators === null && (t.validators = []), t.validators.push(Ef(n, e));
|
|
@@ -4923,7 +4923,7 @@ const Cf = (e, t) => {
|
|
|
4923
4923
|
const r = Object.entries(e), s = r.length;
|
|
4924
4924
|
for (let i = 0; i < s; i++) {
|
|
4925
4925
|
const [a, l] = r[i];
|
|
4926
|
-
|
|
4926
|
+
Yo(l, Ui(t, a), n, o);
|
|
4927
4927
|
}
|
|
4928
4928
|
}, Ui = (e, t) => {
|
|
4929
4929
|
let n = e;
|
|
@@ -4958,7 +4958,7 @@ const Cf = (e, t) => {
|
|
|
4958
4958
|
s in n ? n[s] = i : r(s, i);
|
|
4959
4959
|
}
|
|
4960
4960
|
};
|
|
4961
|
-
},
|
|
4961
|
+
}, Ro = "!", qr = ":", Lf = [], Zr = (e, t, n, o, r) => ({
|
|
4962
4962
|
modifiers: e,
|
|
4963
4963
|
hasImportantModifier: t,
|
|
4964
4964
|
baseClassName: n,
|
|
@@ -4989,12 +4989,12 @@ const Cf = (e, t) => {
|
|
|
4989
4989
|
}
|
|
4990
4990
|
const p = s.length === 0 ? r : r.slice(l);
|
|
4991
4991
|
let g = p, m = !1;
|
|
4992
|
-
p.endsWith(
|
|
4992
|
+
p.endsWith(Ro) ? (g = p.slice(0, -1), m = !0) : (
|
|
4993
4993
|
/**
|
|
4994
4994
|
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
|
4995
4995
|
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
4996
4996
|
*/
|
|
4997
|
-
p.startsWith(
|
|
4997
|
+
p.startsWith(Ro) && (g = p.slice(1), m = !0)
|
|
4998
4998
|
);
|
|
4999
4999
|
const w = c && c > l ? c - l : void 0;
|
|
5000
5000
|
return Zr(s, m, g, w);
|
|
@@ -5061,7 +5061,7 @@ const Cf = (e, t) => {
|
|
|
5061
5061
|
}
|
|
5062
5062
|
v = !1;
|
|
5063
5063
|
}
|
|
5064
|
-
const S = g.length === 0 ? "" : g.length === 1 ? g[0] : s(g).join(":"), C = m ? S +
|
|
5064
|
+
const S = g.length === 0 ? "" : g.length === 1 ? g[0] : s(g).join(":"), C = m ? S + Ro : S, y = C + x;
|
|
5065
5065
|
if (i.indexOf(y) > -1)
|
|
5066
5066
|
continue;
|
|
5067
5067
|
i.push(y);
|
|
@@ -5101,12 +5101,12 @@ const Cf = (e, t) => {
|
|
|
5101
5101
|
}, Vf = [], de = (e) => {
|
|
5102
5102
|
const t = (n) => n[e] || Vf;
|
|
5103
5103
|
return t.isThemeGetter = !0, t;
|
|
5104
|
-
}, Hi = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Vi = /^\((?:(\w[\w-]*):)?(.+)\)$/i, jf = /^\d+\/\d+$/, Gf = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Yf = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Kf = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Xf = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, qf = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, yt = (e) => jf.test(e),
|
|
5104
|
+
}, Hi = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Vi = /^\((?:(\w[\w-]*):)?(.+)\)$/i, jf = /^\d+\/\d+$/, Gf = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Yf = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Kf = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Xf = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, qf = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, yt = (e) => jf.test(e), Q = (e) => !!e && !Number.isNaN(Number(e)), Ye = (e) => !!e && Number.isInteger(Number(e)), ao = (e) => e.endsWith("%") && Q(e.slice(0, -1)), He = (e) => Gf.test(e), Zf = () => !0, Qf = (e) => (
|
|
5105
5105
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
5106
5106
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
5107
5107
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
5108
5108
|
Yf.test(e) && !Kf.test(e)
|
|
5109
|
-
), ji = () => !1, Jf = (e) => Xf.test(e), ep = (e) => qf.test(e), tp = (e) => !
|
|
5109
|
+
), ji = () => !1, Jf = (e) => Xf.test(e), ep = (e) => qf.test(e), tp = (e) => !z(e) && !B(e), np = (e) => Rt(e, Ki, ji), z = (e) => Hi.test(e), st = (e) => Rt(e, Xi, Qf), lo = (e) => Rt(e, ap, Q), Qr = (e) => Rt(e, Gi, ji), op = (e) => Rt(e, Yi, ep), sn = (e) => Rt(e, qi, Jf), B = (e) => Vi.test(e), Lt = (e) => Tt(e, Xi), rp = (e) => Tt(e, lp), Jr = (e) => Tt(e, Gi), sp = (e) => Tt(e, Ki), ip = (e) => Tt(e, Yi), an = (e) => Tt(e, qi, !0), Rt = (e, t, n) => {
|
|
5110
5110
|
const o = Hi.exec(e);
|
|
5111
5111
|
return o ? o[1] ? t(o[1]) : n(o[2]) : !1;
|
|
5112
5112
|
}, Tt = (e, t, n = !1) => {
|
|
@@ -5131,30 +5131,30 @@ const Cf = (e, t) => {
|
|
|
5131
5131
|
"bottom-left",
|
|
5132
5132
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
5133
5133
|
"left-bottom"
|
|
5134
|
-
], E = () => [...y(),
|
|
5135
|
-
span: ["full", Ye,
|
|
5136
|
-
}, Ye,
|
|
5137
|
-
position: [
|
|
5134
|
+
], E = () => [...y(), B, z], $ = () => ["auto", "hidden", "clip", "visible", "scroll"], k = () => ["auto", "contain", "none"], N = () => [B, z, l], G = () => [yt, "full", "auto", ...N()], X = () => [Ye, "none", "subgrid", B, z], j = () => ["auto", {
|
|
5135
|
+
span: ["full", Ye, B, z]
|
|
5136
|
+
}, Ye, B, z], Z = () => [Ye, "auto", B, z], T = () => ["auto", "min", "max", "fr", B, z], F = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], H = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], M = () => ["auto", ...N()], Y = () => [yt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...N()], R = () => [e, B, z], re = () => [...y(), Jr, Qr, {
|
|
5137
|
+
position: [B, z]
|
|
5138
5138
|
}], le = () => ["no-repeat", {
|
|
5139
5139
|
repeat: ["", "x", "y", "space", "round"]
|
|
5140
5140
|
}], A = () => ["auto", "cover", "contain", sp, np, {
|
|
5141
|
-
size: [
|
|
5142
|
-
}], L = () => [
|
|
5141
|
+
size: [B, z]
|
|
5142
|
+
}], L = () => [ao, Lt, st], _ = () => [
|
|
5143
5143
|
// Deprecated since Tailwind CSS v4.0.0
|
|
5144
5144
|
"",
|
|
5145
5145
|
"none",
|
|
5146
5146
|
"full",
|
|
5147
5147
|
c,
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
],
|
|
5148
|
+
B,
|
|
5149
|
+
z
|
|
5150
|
+
], U = () => ["", Q, Lt, st], D = () => ["solid", "dashed", "dotted", "double"], K = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], O = () => [Q, ao, Jr, Qr], q = () => [
|
|
5151
5151
|
// Deprecated since Tailwind CSS v4.0.0
|
|
5152
5152
|
"",
|
|
5153
5153
|
"none",
|
|
5154
5154
|
w,
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
],
|
|
5155
|
+
B,
|
|
5156
|
+
z
|
|
5157
|
+
], te = () => ["none", Q, B, z], J = () => ["none", Q, B, z], ne = () => [Q, B, z], se = () => [yt, "full", ...N()];
|
|
5158
5158
|
return {
|
|
5159
5159
|
cacheSize: 500,
|
|
5160
5160
|
theme: {
|
|
@@ -5173,7 +5173,7 @@ const Cf = (e, t) => {
|
|
|
5173
5173
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
5174
5174
|
radius: [He],
|
|
5175
5175
|
shadow: [He],
|
|
5176
|
-
spacing: ["px",
|
|
5176
|
+
spacing: ["px", Q],
|
|
5177
5177
|
text: [He],
|
|
5178
5178
|
"text-shadow": [He],
|
|
5179
5179
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
@@ -5187,7 +5187,7 @@ const Cf = (e, t) => {
|
|
|
5187
5187
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
5188
5188
|
*/
|
|
5189
5189
|
aspect: [{
|
|
5190
|
-
aspect: ["auto", "square", yt,
|
|
5190
|
+
aspect: ["auto", "square", yt, z, B, v]
|
|
5191
5191
|
}],
|
|
5192
5192
|
/**
|
|
5193
5193
|
* Container
|
|
@@ -5200,7 +5200,7 @@ const Cf = (e, t) => {
|
|
|
5200
5200
|
* @see https://tailwindcss.com/docs/columns
|
|
5201
5201
|
*/
|
|
5202
5202
|
columns: [{
|
|
5203
|
-
columns: [
|
|
5203
|
+
columns: [Q, z, B, a]
|
|
5204
5204
|
}],
|
|
5205
5205
|
/**
|
|
5206
5206
|
* Break After
|
|
@@ -5400,7 +5400,7 @@ const Cf = (e, t) => {
|
|
|
5400
5400
|
* @see https://tailwindcss.com/docs/z-index
|
|
5401
5401
|
*/
|
|
5402
5402
|
z: [{
|
|
5403
|
-
z: [Ye, "auto",
|
|
5403
|
+
z: [Ye, "auto", B, z]
|
|
5404
5404
|
}],
|
|
5405
5405
|
// ------------------------
|
|
5406
5406
|
// --- Flexbox and Grid ---
|
|
@@ -5431,35 +5431,35 @@ const Cf = (e, t) => {
|
|
|
5431
5431
|
* @see https://tailwindcss.com/docs/flex
|
|
5432
5432
|
*/
|
|
5433
5433
|
flex: [{
|
|
5434
|
-
flex: [
|
|
5434
|
+
flex: [Q, yt, "auto", "initial", "none", z]
|
|
5435
5435
|
}],
|
|
5436
5436
|
/**
|
|
5437
5437
|
* Flex Grow
|
|
5438
5438
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
5439
5439
|
*/
|
|
5440
5440
|
grow: [{
|
|
5441
|
-
grow: ["",
|
|
5441
|
+
grow: ["", Q, B, z]
|
|
5442
5442
|
}],
|
|
5443
5443
|
/**
|
|
5444
5444
|
* Flex Shrink
|
|
5445
5445
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
5446
5446
|
*/
|
|
5447
5447
|
shrink: [{
|
|
5448
|
-
shrink: ["",
|
|
5448
|
+
shrink: ["", Q, B, z]
|
|
5449
5449
|
}],
|
|
5450
5450
|
/**
|
|
5451
5451
|
* Order
|
|
5452
5452
|
* @see https://tailwindcss.com/docs/order
|
|
5453
5453
|
*/
|
|
5454
5454
|
order: [{
|
|
5455
|
-
order: [Ye, "first", "last", "none",
|
|
5455
|
+
order: [Ye, "first", "last", "none", B, z]
|
|
5456
5456
|
}],
|
|
5457
5457
|
/**
|
|
5458
5458
|
* Grid Template Columns
|
|
5459
5459
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
5460
5460
|
*/
|
|
5461
5461
|
"grid-cols": [{
|
|
5462
|
-
"grid-cols":
|
|
5462
|
+
"grid-cols": X()
|
|
5463
5463
|
}],
|
|
5464
5464
|
/**
|
|
5465
5465
|
* Grid Column Start / End
|
|
@@ -5473,21 +5473,21 @@ const Cf = (e, t) => {
|
|
|
5473
5473
|
* @see https://tailwindcss.com/docs/grid-column
|
|
5474
5474
|
*/
|
|
5475
5475
|
"col-start": [{
|
|
5476
|
-
"col-start":
|
|
5476
|
+
"col-start": Z()
|
|
5477
5477
|
}],
|
|
5478
5478
|
/**
|
|
5479
5479
|
* Grid Column End
|
|
5480
5480
|
* @see https://tailwindcss.com/docs/grid-column
|
|
5481
5481
|
*/
|
|
5482
5482
|
"col-end": [{
|
|
5483
|
-
"col-end":
|
|
5483
|
+
"col-end": Z()
|
|
5484
5484
|
}],
|
|
5485
5485
|
/**
|
|
5486
5486
|
* Grid Template Rows
|
|
5487
5487
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
5488
5488
|
*/
|
|
5489
5489
|
"grid-rows": [{
|
|
5490
|
-
"grid-rows":
|
|
5490
|
+
"grid-rows": X()
|
|
5491
5491
|
}],
|
|
5492
5492
|
/**
|
|
5493
5493
|
* Grid Row Start / End
|
|
@@ -5501,14 +5501,14 @@ const Cf = (e, t) => {
|
|
|
5501
5501
|
* @see https://tailwindcss.com/docs/grid-row
|
|
5502
5502
|
*/
|
|
5503
5503
|
"row-start": [{
|
|
5504
|
-
"row-start":
|
|
5504
|
+
"row-start": Z()
|
|
5505
5505
|
}],
|
|
5506
5506
|
/**
|
|
5507
5507
|
* Grid Row End
|
|
5508
5508
|
* @see https://tailwindcss.com/docs/grid-row
|
|
5509
5509
|
*/
|
|
5510
5510
|
"row-end": [{
|
|
5511
|
-
"row-end":
|
|
5511
|
+
"row-end": Z()
|
|
5512
5512
|
}],
|
|
5513
5513
|
/**
|
|
5514
5514
|
* Grid Auto Flow
|
|
@@ -5688,63 +5688,63 @@ const Cf = (e, t) => {
|
|
|
5688
5688
|
* @see https://tailwindcss.com/docs/margin
|
|
5689
5689
|
*/
|
|
5690
5690
|
m: [{
|
|
5691
|
-
m:
|
|
5691
|
+
m: M()
|
|
5692
5692
|
}],
|
|
5693
5693
|
/**
|
|
5694
5694
|
* Margin X
|
|
5695
5695
|
* @see https://tailwindcss.com/docs/margin
|
|
5696
5696
|
*/
|
|
5697
5697
|
mx: [{
|
|
5698
|
-
mx:
|
|
5698
|
+
mx: M()
|
|
5699
5699
|
}],
|
|
5700
5700
|
/**
|
|
5701
5701
|
* Margin Y
|
|
5702
5702
|
* @see https://tailwindcss.com/docs/margin
|
|
5703
5703
|
*/
|
|
5704
5704
|
my: [{
|
|
5705
|
-
my:
|
|
5705
|
+
my: M()
|
|
5706
5706
|
}],
|
|
5707
5707
|
/**
|
|
5708
5708
|
* Margin Start
|
|
5709
5709
|
* @see https://tailwindcss.com/docs/margin
|
|
5710
5710
|
*/
|
|
5711
5711
|
ms: [{
|
|
5712
|
-
ms:
|
|
5712
|
+
ms: M()
|
|
5713
5713
|
}],
|
|
5714
5714
|
/**
|
|
5715
5715
|
* Margin End
|
|
5716
5716
|
* @see https://tailwindcss.com/docs/margin
|
|
5717
5717
|
*/
|
|
5718
5718
|
me: [{
|
|
5719
|
-
me:
|
|
5719
|
+
me: M()
|
|
5720
5720
|
}],
|
|
5721
5721
|
/**
|
|
5722
5722
|
* Margin Top
|
|
5723
5723
|
* @see https://tailwindcss.com/docs/margin
|
|
5724
5724
|
*/
|
|
5725
5725
|
mt: [{
|
|
5726
|
-
mt:
|
|
5726
|
+
mt: M()
|
|
5727
5727
|
}],
|
|
5728
5728
|
/**
|
|
5729
5729
|
* Margin Right
|
|
5730
5730
|
* @see https://tailwindcss.com/docs/margin
|
|
5731
5731
|
*/
|
|
5732
5732
|
mr: [{
|
|
5733
|
-
mr:
|
|
5733
|
+
mr: M()
|
|
5734
5734
|
}],
|
|
5735
5735
|
/**
|
|
5736
5736
|
* Margin Bottom
|
|
5737
5737
|
* @see https://tailwindcss.com/docs/margin
|
|
5738
5738
|
*/
|
|
5739
5739
|
mb: [{
|
|
5740
|
-
mb:
|
|
5740
|
+
mb: M()
|
|
5741
5741
|
}],
|
|
5742
5742
|
/**
|
|
5743
5743
|
* Margin Left
|
|
5744
5744
|
* @see https://tailwindcss.com/docs/margin
|
|
5745
5745
|
*/
|
|
5746
5746
|
ml: [{
|
|
5747
|
-
ml:
|
|
5747
|
+
ml: M()
|
|
5748
5748
|
}],
|
|
5749
5749
|
/**
|
|
5750
5750
|
* Space Between X
|
|
@@ -5864,21 +5864,21 @@ const Cf = (e, t) => {
|
|
|
5864
5864
|
* @see https://tailwindcss.com/docs/font-weight
|
|
5865
5865
|
*/
|
|
5866
5866
|
"font-weight": [{
|
|
5867
|
-
font: [o,
|
|
5867
|
+
font: [o, B, lo]
|
|
5868
5868
|
}],
|
|
5869
5869
|
/**
|
|
5870
5870
|
* Font Stretch
|
|
5871
5871
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
5872
5872
|
*/
|
|
5873
5873
|
"font-stretch": [{
|
|
5874
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded",
|
|
5874
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", ao, z]
|
|
5875
5875
|
}],
|
|
5876
5876
|
/**
|
|
5877
5877
|
* Font Family
|
|
5878
5878
|
* @see https://tailwindcss.com/docs/font-family
|
|
5879
5879
|
*/
|
|
5880
5880
|
"font-family": [{
|
|
5881
|
-
font: [rp,
|
|
5881
|
+
font: [rp, z, t]
|
|
5882
5882
|
}],
|
|
5883
5883
|
/**
|
|
5884
5884
|
* Font Variant Numeric
|
|
@@ -5915,14 +5915,14 @@ const Cf = (e, t) => {
|
|
|
5915
5915
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
5916
5916
|
*/
|
|
5917
5917
|
tracking: [{
|
|
5918
|
-
tracking: [r,
|
|
5918
|
+
tracking: [r, B, z]
|
|
5919
5919
|
}],
|
|
5920
5920
|
/**
|
|
5921
5921
|
* Line Clamp
|
|
5922
5922
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
5923
5923
|
*/
|
|
5924
5924
|
"line-clamp": [{
|
|
5925
|
-
"line-clamp": [
|
|
5925
|
+
"line-clamp": [Q, "none", B, lo]
|
|
5926
5926
|
}],
|
|
5927
5927
|
/**
|
|
5928
5928
|
* Line Height
|
|
@@ -5940,7 +5940,7 @@ const Cf = (e, t) => {
|
|
|
5940
5940
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
5941
5941
|
*/
|
|
5942
5942
|
"list-image": [{
|
|
5943
|
-
"list-image": ["none",
|
|
5943
|
+
"list-image": ["none", B, z]
|
|
5944
5944
|
}],
|
|
5945
5945
|
/**
|
|
5946
5946
|
* List Style Position
|
|
@@ -5954,7 +5954,7 @@ const Cf = (e, t) => {
|
|
|
5954
5954
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
5955
5955
|
*/
|
|
5956
5956
|
"list-style-type": [{
|
|
5957
|
-
list: ["disc", "decimal", "none",
|
|
5957
|
+
list: ["disc", "decimal", "none", B, z]
|
|
5958
5958
|
}],
|
|
5959
5959
|
/**
|
|
5960
5960
|
* Text Alignment
|
|
@@ -5988,14 +5988,14 @@ const Cf = (e, t) => {
|
|
|
5988
5988
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
5989
5989
|
*/
|
|
5990
5990
|
"text-decoration-style": [{
|
|
5991
|
-
decoration: [...
|
|
5991
|
+
decoration: [...D(), "wavy"]
|
|
5992
5992
|
}],
|
|
5993
5993
|
/**
|
|
5994
5994
|
* Text Decoration Thickness
|
|
5995
5995
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
5996
5996
|
*/
|
|
5997
5997
|
"text-decoration-thickness": [{
|
|
5998
|
-
decoration: [
|
|
5998
|
+
decoration: [Q, "from-font", "auto", B, st]
|
|
5999
5999
|
}],
|
|
6000
6000
|
/**
|
|
6001
6001
|
* Text Decoration Color
|
|
@@ -6009,7 +6009,7 @@ const Cf = (e, t) => {
|
|
|
6009
6009
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
6010
6010
|
*/
|
|
6011
6011
|
"underline-offset": [{
|
|
6012
|
-
"underline-offset": [
|
|
6012
|
+
"underline-offset": [Q, "auto", B, z]
|
|
6013
6013
|
}],
|
|
6014
6014
|
/**
|
|
6015
6015
|
* Text Transform
|
|
@@ -6040,7 +6040,7 @@ const Cf = (e, t) => {
|
|
|
6040
6040
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
6041
6041
|
*/
|
|
6042
6042
|
"vertical-align": [{
|
|
6043
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
6043
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", B, z]
|
|
6044
6044
|
}],
|
|
6045
6045
|
/**
|
|
6046
6046
|
* Whitespace
|
|
@@ -6075,7 +6075,7 @@ const Cf = (e, t) => {
|
|
|
6075
6075
|
* @see https://tailwindcss.com/docs/content
|
|
6076
6076
|
*/
|
|
6077
6077
|
content: [{
|
|
6078
|
-
content: ["none",
|
|
6078
|
+
content: ["none", B, z]
|
|
6079
6079
|
}],
|
|
6080
6080
|
// -------------------
|
|
6081
6081
|
// --- Backgrounds ---
|
|
@@ -6106,7 +6106,7 @@ const Cf = (e, t) => {
|
|
|
6106
6106
|
* @see https://tailwindcss.com/docs/background-position
|
|
6107
6107
|
*/
|
|
6108
6108
|
"bg-position": [{
|
|
6109
|
-
bg:
|
|
6109
|
+
bg: re()
|
|
6110
6110
|
}],
|
|
6111
6111
|
/**
|
|
6112
6112
|
* Background Repeat
|
|
@@ -6130,9 +6130,9 @@ const Cf = (e, t) => {
|
|
|
6130
6130
|
bg: ["none", {
|
|
6131
6131
|
linear: [{
|
|
6132
6132
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
6133
|
-
}, Ye,
|
|
6134
|
-
radial: ["",
|
|
6135
|
-
conic: [Ye,
|
|
6133
|
+
}, Ye, B, z],
|
|
6134
|
+
radial: ["", B, z],
|
|
6135
|
+
conic: [Ye, B, z]
|
|
6136
6136
|
}, ip, op]
|
|
6137
6137
|
}],
|
|
6138
6138
|
/**
|
|
@@ -6297,70 +6297,70 @@ const Cf = (e, t) => {
|
|
|
6297
6297
|
* @see https://tailwindcss.com/docs/border-width
|
|
6298
6298
|
*/
|
|
6299
6299
|
"border-w": [{
|
|
6300
|
-
border:
|
|
6300
|
+
border: U()
|
|
6301
6301
|
}],
|
|
6302
6302
|
/**
|
|
6303
6303
|
* Border Width X
|
|
6304
6304
|
* @see https://tailwindcss.com/docs/border-width
|
|
6305
6305
|
*/
|
|
6306
6306
|
"border-w-x": [{
|
|
6307
|
-
"border-x":
|
|
6307
|
+
"border-x": U()
|
|
6308
6308
|
}],
|
|
6309
6309
|
/**
|
|
6310
6310
|
* Border Width Y
|
|
6311
6311
|
* @see https://tailwindcss.com/docs/border-width
|
|
6312
6312
|
*/
|
|
6313
6313
|
"border-w-y": [{
|
|
6314
|
-
"border-y":
|
|
6314
|
+
"border-y": U()
|
|
6315
6315
|
}],
|
|
6316
6316
|
/**
|
|
6317
6317
|
* Border Width Start
|
|
6318
6318
|
* @see https://tailwindcss.com/docs/border-width
|
|
6319
6319
|
*/
|
|
6320
6320
|
"border-w-s": [{
|
|
6321
|
-
"border-s":
|
|
6321
|
+
"border-s": U()
|
|
6322
6322
|
}],
|
|
6323
6323
|
/**
|
|
6324
6324
|
* Border Width End
|
|
6325
6325
|
* @see https://tailwindcss.com/docs/border-width
|
|
6326
6326
|
*/
|
|
6327
6327
|
"border-w-e": [{
|
|
6328
|
-
"border-e":
|
|
6328
|
+
"border-e": U()
|
|
6329
6329
|
}],
|
|
6330
6330
|
/**
|
|
6331
6331
|
* Border Width Top
|
|
6332
6332
|
* @see https://tailwindcss.com/docs/border-width
|
|
6333
6333
|
*/
|
|
6334
6334
|
"border-w-t": [{
|
|
6335
|
-
"border-t":
|
|
6335
|
+
"border-t": U()
|
|
6336
6336
|
}],
|
|
6337
6337
|
/**
|
|
6338
6338
|
* Border Width Right
|
|
6339
6339
|
* @see https://tailwindcss.com/docs/border-width
|
|
6340
6340
|
*/
|
|
6341
6341
|
"border-w-r": [{
|
|
6342
|
-
"border-r":
|
|
6342
|
+
"border-r": U()
|
|
6343
6343
|
}],
|
|
6344
6344
|
/**
|
|
6345
6345
|
* Border Width Bottom
|
|
6346
6346
|
* @see https://tailwindcss.com/docs/border-width
|
|
6347
6347
|
*/
|
|
6348
6348
|
"border-w-b": [{
|
|
6349
|
-
"border-b":
|
|
6349
|
+
"border-b": U()
|
|
6350
6350
|
}],
|
|
6351
6351
|
/**
|
|
6352
6352
|
* Border Width Left
|
|
6353
6353
|
* @see https://tailwindcss.com/docs/border-width
|
|
6354
6354
|
*/
|
|
6355
6355
|
"border-w-l": [{
|
|
6356
|
-
"border-l":
|
|
6356
|
+
"border-l": U()
|
|
6357
6357
|
}],
|
|
6358
6358
|
/**
|
|
6359
6359
|
* Divide Width X
|
|
6360
6360
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
6361
6361
|
*/
|
|
6362
6362
|
"divide-x": [{
|
|
6363
|
-
"divide-x":
|
|
6363
|
+
"divide-x": U()
|
|
6364
6364
|
}],
|
|
6365
6365
|
/**
|
|
6366
6366
|
* Divide Width X Reverse
|
|
@@ -6372,7 +6372,7 @@ const Cf = (e, t) => {
|
|
|
6372
6372
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
6373
6373
|
*/
|
|
6374
6374
|
"divide-y": [{
|
|
6375
|
-
"divide-y":
|
|
6375
|
+
"divide-y": U()
|
|
6376
6376
|
}],
|
|
6377
6377
|
/**
|
|
6378
6378
|
* Divide Width Y Reverse
|
|
@@ -6384,14 +6384,14 @@ const Cf = (e, t) => {
|
|
|
6384
6384
|
* @see https://tailwindcss.com/docs/border-style
|
|
6385
6385
|
*/
|
|
6386
6386
|
"border-style": [{
|
|
6387
|
-
border: [...
|
|
6387
|
+
border: [...D(), "hidden", "none"]
|
|
6388
6388
|
}],
|
|
6389
6389
|
/**
|
|
6390
6390
|
* Divide Style
|
|
6391
6391
|
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
|
6392
6392
|
*/
|
|
6393
6393
|
"divide-style": [{
|
|
6394
|
-
divide: [...
|
|
6394
|
+
divide: [...D(), "hidden", "none"]
|
|
6395
6395
|
}],
|
|
6396
6396
|
/**
|
|
6397
6397
|
* Border Color
|
|
@@ -6468,21 +6468,21 @@ const Cf = (e, t) => {
|
|
|
6468
6468
|
* @see https://tailwindcss.com/docs/outline-style
|
|
6469
6469
|
*/
|
|
6470
6470
|
"outline-style": [{
|
|
6471
|
-
outline: [...
|
|
6471
|
+
outline: [...D(), "none", "hidden"]
|
|
6472
6472
|
}],
|
|
6473
6473
|
/**
|
|
6474
6474
|
* Outline Offset
|
|
6475
6475
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
6476
6476
|
*/
|
|
6477
6477
|
"outline-offset": [{
|
|
6478
|
-
"outline-offset": [
|
|
6478
|
+
"outline-offset": [Q, B, z]
|
|
6479
6479
|
}],
|
|
6480
6480
|
/**
|
|
6481
6481
|
* Outline Width
|
|
6482
6482
|
* @see https://tailwindcss.com/docs/outline-width
|
|
6483
6483
|
*/
|
|
6484
6484
|
"outline-w": [{
|
|
6485
|
-
outline: ["",
|
|
6485
|
+
outline: ["", Q, Lt, st]
|
|
6486
6486
|
}],
|
|
6487
6487
|
/**
|
|
6488
6488
|
* Outline Color
|
|
@@ -6534,7 +6534,7 @@ const Cf = (e, t) => {
|
|
|
6534
6534
|
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
|
6535
6535
|
*/
|
|
6536
6536
|
"ring-w": [{
|
|
6537
|
-
ring:
|
|
6537
|
+
ring: U()
|
|
6538
6538
|
}],
|
|
6539
6539
|
/**
|
|
6540
6540
|
* Ring Width Inset
|
|
@@ -6557,7 +6557,7 @@ const Cf = (e, t) => {
|
|
|
6557
6557
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
6558
6558
|
*/
|
|
6559
6559
|
"ring-offset-w": [{
|
|
6560
|
-
"ring-offset": [
|
|
6560
|
+
"ring-offset": [Q, st]
|
|
6561
6561
|
}],
|
|
6562
6562
|
/**
|
|
6563
6563
|
* Ring Offset Color
|
|
@@ -6573,7 +6573,7 @@ const Cf = (e, t) => {
|
|
|
6573
6573
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
|
6574
6574
|
*/
|
|
6575
6575
|
"inset-ring-w": [{
|
|
6576
|
-
"inset-ring":
|
|
6576
|
+
"inset-ring": U()
|
|
6577
6577
|
}],
|
|
6578
6578
|
/**
|
|
6579
6579
|
* Inset Ring Color
|
|
@@ -6601,21 +6601,21 @@ const Cf = (e, t) => {
|
|
|
6601
6601
|
* @see https://tailwindcss.com/docs/opacity
|
|
6602
6602
|
*/
|
|
6603
6603
|
opacity: [{
|
|
6604
|
-
opacity: [
|
|
6604
|
+
opacity: [Q, B, z]
|
|
6605
6605
|
}],
|
|
6606
6606
|
/**
|
|
6607
6607
|
* Mix Blend Mode
|
|
6608
6608
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
6609
6609
|
*/
|
|
6610
6610
|
"mix-blend": [{
|
|
6611
|
-
"mix-blend": [...
|
|
6611
|
+
"mix-blend": [...K(), "plus-darker", "plus-lighter"]
|
|
6612
6612
|
}],
|
|
6613
6613
|
/**
|
|
6614
6614
|
* Background Blend Mode
|
|
6615
6615
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
6616
6616
|
*/
|
|
6617
6617
|
"bg-blend": [{
|
|
6618
|
-
"bg-blend":
|
|
6618
|
+
"bg-blend": K()
|
|
6619
6619
|
}],
|
|
6620
6620
|
/**
|
|
6621
6621
|
* Mask Clip
|
|
@@ -6636,13 +6636,13 @@ const Cf = (e, t) => {
|
|
|
6636
6636
|
* @see https://tailwindcss.com/docs/mask-image
|
|
6637
6637
|
*/
|
|
6638
6638
|
"mask-image-linear-pos": [{
|
|
6639
|
-
"mask-linear": [
|
|
6639
|
+
"mask-linear": [Q]
|
|
6640
6640
|
}],
|
|
6641
6641
|
"mask-image-linear-from-pos": [{
|
|
6642
|
-
"mask-linear-from":
|
|
6642
|
+
"mask-linear-from": O()
|
|
6643
6643
|
}],
|
|
6644
6644
|
"mask-image-linear-to-pos": [{
|
|
6645
|
-
"mask-linear-to":
|
|
6645
|
+
"mask-linear-to": O()
|
|
6646
6646
|
}],
|
|
6647
6647
|
"mask-image-linear-from-color": [{
|
|
6648
6648
|
"mask-linear-from": R()
|
|
@@ -6651,10 +6651,10 @@ const Cf = (e, t) => {
|
|
|
6651
6651
|
"mask-linear-to": R()
|
|
6652
6652
|
}],
|
|
6653
6653
|
"mask-image-t-from-pos": [{
|
|
6654
|
-
"mask-t-from":
|
|
6654
|
+
"mask-t-from": O()
|
|
6655
6655
|
}],
|
|
6656
6656
|
"mask-image-t-to-pos": [{
|
|
6657
|
-
"mask-t-to":
|
|
6657
|
+
"mask-t-to": O()
|
|
6658
6658
|
}],
|
|
6659
6659
|
"mask-image-t-from-color": [{
|
|
6660
6660
|
"mask-t-from": R()
|
|
@@ -6663,10 +6663,10 @@ const Cf = (e, t) => {
|
|
|
6663
6663
|
"mask-t-to": R()
|
|
6664
6664
|
}],
|
|
6665
6665
|
"mask-image-r-from-pos": [{
|
|
6666
|
-
"mask-r-from":
|
|
6666
|
+
"mask-r-from": O()
|
|
6667
6667
|
}],
|
|
6668
6668
|
"mask-image-r-to-pos": [{
|
|
6669
|
-
"mask-r-to":
|
|
6669
|
+
"mask-r-to": O()
|
|
6670
6670
|
}],
|
|
6671
6671
|
"mask-image-r-from-color": [{
|
|
6672
6672
|
"mask-r-from": R()
|
|
@@ -6675,10 +6675,10 @@ const Cf = (e, t) => {
|
|
|
6675
6675
|
"mask-r-to": R()
|
|
6676
6676
|
}],
|
|
6677
6677
|
"mask-image-b-from-pos": [{
|
|
6678
|
-
"mask-b-from":
|
|
6678
|
+
"mask-b-from": O()
|
|
6679
6679
|
}],
|
|
6680
6680
|
"mask-image-b-to-pos": [{
|
|
6681
|
-
"mask-b-to":
|
|
6681
|
+
"mask-b-to": O()
|
|
6682
6682
|
}],
|
|
6683
6683
|
"mask-image-b-from-color": [{
|
|
6684
6684
|
"mask-b-from": R()
|
|
@@ -6687,10 +6687,10 @@ const Cf = (e, t) => {
|
|
|
6687
6687
|
"mask-b-to": R()
|
|
6688
6688
|
}],
|
|
6689
6689
|
"mask-image-l-from-pos": [{
|
|
6690
|
-
"mask-l-from":
|
|
6690
|
+
"mask-l-from": O()
|
|
6691
6691
|
}],
|
|
6692
6692
|
"mask-image-l-to-pos": [{
|
|
6693
|
-
"mask-l-to":
|
|
6693
|
+
"mask-l-to": O()
|
|
6694
6694
|
}],
|
|
6695
6695
|
"mask-image-l-from-color": [{
|
|
6696
6696
|
"mask-l-from": R()
|
|
@@ -6699,10 +6699,10 @@ const Cf = (e, t) => {
|
|
|
6699
6699
|
"mask-l-to": R()
|
|
6700
6700
|
}],
|
|
6701
6701
|
"mask-image-x-from-pos": [{
|
|
6702
|
-
"mask-x-from":
|
|
6702
|
+
"mask-x-from": O()
|
|
6703
6703
|
}],
|
|
6704
6704
|
"mask-image-x-to-pos": [{
|
|
6705
|
-
"mask-x-to":
|
|
6705
|
+
"mask-x-to": O()
|
|
6706
6706
|
}],
|
|
6707
6707
|
"mask-image-x-from-color": [{
|
|
6708
6708
|
"mask-x-from": R()
|
|
@@ -6711,10 +6711,10 @@ const Cf = (e, t) => {
|
|
|
6711
6711
|
"mask-x-to": R()
|
|
6712
6712
|
}],
|
|
6713
6713
|
"mask-image-y-from-pos": [{
|
|
6714
|
-
"mask-y-from":
|
|
6714
|
+
"mask-y-from": O()
|
|
6715
6715
|
}],
|
|
6716
6716
|
"mask-image-y-to-pos": [{
|
|
6717
|
-
"mask-y-to":
|
|
6717
|
+
"mask-y-to": O()
|
|
6718
6718
|
}],
|
|
6719
6719
|
"mask-image-y-from-color": [{
|
|
6720
6720
|
"mask-y-from": R()
|
|
@@ -6723,13 +6723,13 @@ const Cf = (e, t) => {
|
|
|
6723
6723
|
"mask-y-to": R()
|
|
6724
6724
|
}],
|
|
6725
6725
|
"mask-image-radial": [{
|
|
6726
|
-
"mask-radial": [
|
|
6726
|
+
"mask-radial": [B, z]
|
|
6727
6727
|
}],
|
|
6728
6728
|
"mask-image-radial-from-pos": [{
|
|
6729
|
-
"mask-radial-from":
|
|
6729
|
+
"mask-radial-from": O()
|
|
6730
6730
|
}],
|
|
6731
6731
|
"mask-image-radial-to-pos": [{
|
|
6732
|
-
"mask-radial-to":
|
|
6732
|
+
"mask-radial-to": O()
|
|
6733
6733
|
}],
|
|
6734
6734
|
"mask-image-radial-from-color": [{
|
|
6735
6735
|
"mask-radial-from": R()
|
|
@@ -6750,13 +6750,13 @@ const Cf = (e, t) => {
|
|
|
6750
6750
|
"mask-radial-at": y()
|
|
6751
6751
|
}],
|
|
6752
6752
|
"mask-image-conic-pos": [{
|
|
6753
|
-
"mask-conic": [
|
|
6753
|
+
"mask-conic": [Q]
|
|
6754
6754
|
}],
|
|
6755
6755
|
"mask-image-conic-from-pos": [{
|
|
6756
|
-
"mask-conic-from":
|
|
6756
|
+
"mask-conic-from": O()
|
|
6757
6757
|
}],
|
|
6758
6758
|
"mask-image-conic-to-pos": [{
|
|
6759
|
-
"mask-conic-to":
|
|
6759
|
+
"mask-conic-to": O()
|
|
6760
6760
|
}],
|
|
6761
6761
|
"mask-image-conic-from-color": [{
|
|
6762
6762
|
"mask-conic-from": R()
|
|
@@ -6783,7 +6783,7 @@ const Cf = (e, t) => {
|
|
|
6783
6783
|
* @see https://tailwindcss.com/docs/mask-position
|
|
6784
6784
|
*/
|
|
6785
6785
|
"mask-position": [{
|
|
6786
|
-
mask:
|
|
6786
|
+
mask: re()
|
|
6787
6787
|
}],
|
|
6788
6788
|
/**
|
|
6789
6789
|
* Mask Repeat
|
|
@@ -6811,7 +6811,7 @@ const Cf = (e, t) => {
|
|
|
6811
6811
|
* @see https://tailwindcss.com/docs/mask-image
|
|
6812
6812
|
*/
|
|
6813
6813
|
"mask-image": [{
|
|
6814
|
-
mask: ["none",
|
|
6814
|
+
mask: ["none", B, z]
|
|
6815
6815
|
}],
|
|
6816
6816
|
// ---------------
|
|
6817
6817
|
// --- Filters ---
|
|
@@ -6825,8 +6825,8 @@ const Cf = (e, t) => {
|
|
|
6825
6825
|
// Deprecated since Tailwind CSS v3.0.0
|
|
6826
6826
|
"",
|
|
6827
6827
|
"none",
|
|
6828
|
-
|
|
6829
|
-
|
|
6828
|
+
B,
|
|
6829
|
+
z
|
|
6830
6830
|
]
|
|
6831
6831
|
}],
|
|
6832
6832
|
/**
|
|
@@ -6834,21 +6834,21 @@ const Cf = (e, t) => {
|
|
|
6834
6834
|
* @see https://tailwindcss.com/docs/blur
|
|
6835
6835
|
*/
|
|
6836
6836
|
blur: [{
|
|
6837
|
-
blur:
|
|
6837
|
+
blur: q()
|
|
6838
6838
|
}],
|
|
6839
6839
|
/**
|
|
6840
6840
|
* Brightness
|
|
6841
6841
|
* @see https://tailwindcss.com/docs/brightness
|
|
6842
6842
|
*/
|
|
6843
6843
|
brightness: [{
|
|
6844
|
-
brightness: [
|
|
6844
|
+
brightness: [Q, B, z]
|
|
6845
6845
|
}],
|
|
6846
6846
|
/**
|
|
6847
6847
|
* Contrast
|
|
6848
6848
|
* @see https://tailwindcss.com/docs/contrast
|
|
6849
6849
|
*/
|
|
6850
6850
|
contrast: [{
|
|
6851
|
-
contrast: [
|
|
6851
|
+
contrast: [Q, B, z]
|
|
6852
6852
|
}],
|
|
6853
6853
|
/**
|
|
6854
6854
|
* Drop Shadow
|
|
@@ -6876,35 +6876,35 @@ const Cf = (e, t) => {
|
|
|
6876
6876
|
* @see https://tailwindcss.com/docs/grayscale
|
|
6877
6877
|
*/
|
|
6878
6878
|
grayscale: [{
|
|
6879
|
-
grayscale: ["",
|
|
6879
|
+
grayscale: ["", Q, B, z]
|
|
6880
6880
|
}],
|
|
6881
6881
|
/**
|
|
6882
6882
|
* Hue Rotate
|
|
6883
6883
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
6884
6884
|
*/
|
|
6885
6885
|
"hue-rotate": [{
|
|
6886
|
-
"hue-rotate": [
|
|
6886
|
+
"hue-rotate": [Q, B, z]
|
|
6887
6887
|
}],
|
|
6888
6888
|
/**
|
|
6889
6889
|
* Invert
|
|
6890
6890
|
* @see https://tailwindcss.com/docs/invert
|
|
6891
6891
|
*/
|
|
6892
6892
|
invert: [{
|
|
6893
|
-
invert: ["",
|
|
6893
|
+
invert: ["", Q, B, z]
|
|
6894
6894
|
}],
|
|
6895
6895
|
/**
|
|
6896
6896
|
* Saturate
|
|
6897
6897
|
* @see https://tailwindcss.com/docs/saturate
|
|
6898
6898
|
*/
|
|
6899
6899
|
saturate: [{
|
|
6900
|
-
saturate: [
|
|
6900
|
+
saturate: [Q, B, z]
|
|
6901
6901
|
}],
|
|
6902
6902
|
/**
|
|
6903
6903
|
* Sepia
|
|
6904
6904
|
* @see https://tailwindcss.com/docs/sepia
|
|
6905
6905
|
*/
|
|
6906
6906
|
sepia: [{
|
|
6907
|
-
sepia: ["",
|
|
6907
|
+
sepia: ["", Q, B, z]
|
|
6908
6908
|
}],
|
|
6909
6909
|
/**
|
|
6910
6910
|
* Backdrop Filter
|
|
@@ -6915,8 +6915,8 @@ const Cf = (e, t) => {
|
|
|
6915
6915
|
// Deprecated since Tailwind CSS v3.0.0
|
|
6916
6916
|
"",
|
|
6917
6917
|
"none",
|
|
6918
|
-
|
|
6919
|
-
|
|
6918
|
+
B,
|
|
6919
|
+
z
|
|
6920
6920
|
]
|
|
6921
6921
|
}],
|
|
6922
6922
|
/**
|
|
@@ -6924,63 +6924,63 @@ const Cf = (e, t) => {
|
|
|
6924
6924
|
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
6925
6925
|
*/
|
|
6926
6926
|
"backdrop-blur": [{
|
|
6927
|
-
"backdrop-blur":
|
|
6927
|
+
"backdrop-blur": q()
|
|
6928
6928
|
}],
|
|
6929
6929
|
/**
|
|
6930
6930
|
* Backdrop Brightness
|
|
6931
6931
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
6932
6932
|
*/
|
|
6933
6933
|
"backdrop-brightness": [{
|
|
6934
|
-
"backdrop-brightness": [
|
|
6934
|
+
"backdrop-brightness": [Q, B, z]
|
|
6935
6935
|
}],
|
|
6936
6936
|
/**
|
|
6937
6937
|
* Backdrop Contrast
|
|
6938
6938
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
6939
6939
|
*/
|
|
6940
6940
|
"backdrop-contrast": [{
|
|
6941
|
-
"backdrop-contrast": [
|
|
6941
|
+
"backdrop-contrast": [Q, B, z]
|
|
6942
6942
|
}],
|
|
6943
6943
|
/**
|
|
6944
6944
|
* Backdrop Grayscale
|
|
6945
6945
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
6946
6946
|
*/
|
|
6947
6947
|
"backdrop-grayscale": [{
|
|
6948
|
-
"backdrop-grayscale": ["",
|
|
6948
|
+
"backdrop-grayscale": ["", Q, B, z]
|
|
6949
6949
|
}],
|
|
6950
6950
|
/**
|
|
6951
6951
|
* Backdrop Hue Rotate
|
|
6952
6952
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
6953
6953
|
*/
|
|
6954
6954
|
"backdrop-hue-rotate": [{
|
|
6955
|
-
"backdrop-hue-rotate": [
|
|
6955
|
+
"backdrop-hue-rotate": [Q, B, z]
|
|
6956
6956
|
}],
|
|
6957
6957
|
/**
|
|
6958
6958
|
* Backdrop Invert
|
|
6959
6959
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
6960
6960
|
*/
|
|
6961
6961
|
"backdrop-invert": [{
|
|
6962
|
-
"backdrop-invert": ["",
|
|
6962
|
+
"backdrop-invert": ["", Q, B, z]
|
|
6963
6963
|
}],
|
|
6964
6964
|
/**
|
|
6965
6965
|
* Backdrop Opacity
|
|
6966
6966
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
6967
6967
|
*/
|
|
6968
6968
|
"backdrop-opacity": [{
|
|
6969
|
-
"backdrop-opacity": [
|
|
6969
|
+
"backdrop-opacity": [Q, B, z]
|
|
6970
6970
|
}],
|
|
6971
6971
|
/**
|
|
6972
6972
|
* Backdrop Saturate
|
|
6973
6973
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
6974
6974
|
*/
|
|
6975
6975
|
"backdrop-saturate": [{
|
|
6976
|
-
"backdrop-saturate": [
|
|
6976
|
+
"backdrop-saturate": [Q, B, z]
|
|
6977
6977
|
}],
|
|
6978
6978
|
/**
|
|
6979
6979
|
* Backdrop Sepia
|
|
6980
6980
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
6981
6981
|
*/
|
|
6982
6982
|
"backdrop-sepia": [{
|
|
6983
|
-
"backdrop-sepia": ["",
|
|
6983
|
+
"backdrop-sepia": ["", Q, B, z]
|
|
6984
6984
|
}],
|
|
6985
6985
|
// --------------
|
|
6986
6986
|
// --- Tables ---
|
|
@@ -7035,7 +7035,7 @@ const Cf = (e, t) => {
|
|
|
7035
7035
|
* @see https://tailwindcss.com/docs/transition-property
|
|
7036
7036
|
*/
|
|
7037
7037
|
transition: [{
|
|
7038
|
-
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none",
|
|
7038
|
+
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", B, z]
|
|
7039
7039
|
}],
|
|
7040
7040
|
/**
|
|
7041
7041
|
* Transition Behavior
|
|
@@ -7049,28 +7049,28 @@ const Cf = (e, t) => {
|
|
|
7049
7049
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
7050
7050
|
*/
|
|
7051
7051
|
duration: [{
|
|
7052
|
-
duration: [
|
|
7052
|
+
duration: [Q, "initial", B, z]
|
|
7053
7053
|
}],
|
|
7054
7054
|
/**
|
|
7055
7055
|
* Transition Timing Function
|
|
7056
7056
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
7057
7057
|
*/
|
|
7058
7058
|
ease: [{
|
|
7059
|
-
ease: ["linear", "initial", x,
|
|
7059
|
+
ease: ["linear", "initial", x, B, z]
|
|
7060
7060
|
}],
|
|
7061
7061
|
/**
|
|
7062
7062
|
* Transition Delay
|
|
7063
7063
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
7064
7064
|
*/
|
|
7065
7065
|
delay: [{
|
|
7066
|
-
delay: [
|
|
7066
|
+
delay: [Q, B, z]
|
|
7067
7067
|
}],
|
|
7068
7068
|
/**
|
|
7069
7069
|
* Animation
|
|
7070
7070
|
* @see https://tailwindcss.com/docs/animation
|
|
7071
7071
|
*/
|
|
7072
7072
|
animate: [{
|
|
7073
|
-
animate: ["none", S,
|
|
7073
|
+
animate: ["none", S, B, z]
|
|
7074
7074
|
}],
|
|
7075
7075
|
// ------------------
|
|
7076
7076
|
// --- Transforms ---
|
|
@@ -7087,7 +7087,7 @@ const Cf = (e, t) => {
|
|
|
7087
7087
|
* @see https://tailwindcss.com/docs/perspective
|
|
7088
7088
|
*/
|
|
7089
7089
|
perspective: [{
|
|
7090
|
-
perspective: [h,
|
|
7090
|
+
perspective: [h, B, z]
|
|
7091
7091
|
}],
|
|
7092
7092
|
/**
|
|
7093
7093
|
* Perspective Origin
|
|
@@ -7101,56 +7101,56 @@ const Cf = (e, t) => {
|
|
|
7101
7101
|
* @see https://tailwindcss.com/docs/rotate
|
|
7102
7102
|
*/
|
|
7103
7103
|
rotate: [{
|
|
7104
|
-
rotate:
|
|
7104
|
+
rotate: te()
|
|
7105
7105
|
}],
|
|
7106
7106
|
/**
|
|
7107
7107
|
* Rotate X
|
|
7108
7108
|
* @see https://tailwindcss.com/docs/rotate
|
|
7109
7109
|
*/
|
|
7110
7110
|
"rotate-x": [{
|
|
7111
|
-
"rotate-x":
|
|
7111
|
+
"rotate-x": te()
|
|
7112
7112
|
}],
|
|
7113
7113
|
/**
|
|
7114
7114
|
* Rotate Y
|
|
7115
7115
|
* @see https://tailwindcss.com/docs/rotate
|
|
7116
7116
|
*/
|
|
7117
7117
|
"rotate-y": [{
|
|
7118
|
-
"rotate-y":
|
|
7118
|
+
"rotate-y": te()
|
|
7119
7119
|
}],
|
|
7120
7120
|
/**
|
|
7121
7121
|
* Rotate Z
|
|
7122
7122
|
* @see https://tailwindcss.com/docs/rotate
|
|
7123
7123
|
*/
|
|
7124
7124
|
"rotate-z": [{
|
|
7125
|
-
"rotate-z":
|
|
7125
|
+
"rotate-z": te()
|
|
7126
7126
|
}],
|
|
7127
7127
|
/**
|
|
7128
7128
|
* Scale
|
|
7129
7129
|
* @see https://tailwindcss.com/docs/scale
|
|
7130
7130
|
*/
|
|
7131
7131
|
scale: [{
|
|
7132
|
-
scale:
|
|
7132
|
+
scale: J()
|
|
7133
7133
|
}],
|
|
7134
7134
|
/**
|
|
7135
7135
|
* Scale X
|
|
7136
7136
|
* @see https://tailwindcss.com/docs/scale
|
|
7137
7137
|
*/
|
|
7138
7138
|
"scale-x": [{
|
|
7139
|
-
"scale-x":
|
|
7139
|
+
"scale-x": J()
|
|
7140
7140
|
}],
|
|
7141
7141
|
/**
|
|
7142
7142
|
* Scale Y
|
|
7143
7143
|
* @see https://tailwindcss.com/docs/scale
|
|
7144
7144
|
*/
|
|
7145
7145
|
"scale-y": [{
|
|
7146
|
-
"scale-y":
|
|
7146
|
+
"scale-y": J()
|
|
7147
7147
|
}],
|
|
7148
7148
|
/**
|
|
7149
7149
|
* Scale Z
|
|
7150
7150
|
* @see https://tailwindcss.com/docs/scale
|
|
7151
7151
|
*/
|
|
7152
7152
|
"scale-z": [{
|
|
7153
|
-
"scale-z":
|
|
7153
|
+
"scale-z": J()
|
|
7154
7154
|
}],
|
|
7155
7155
|
/**
|
|
7156
7156
|
* Scale 3D
|
|
@@ -7162,28 +7162,28 @@ const Cf = (e, t) => {
|
|
|
7162
7162
|
* @see https://tailwindcss.com/docs/skew
|
|
7163
7163
|
*/
|
|
7164
7164
|
skew: [{
|
|
7165
|
-
skew:
|
|
7165
|
+
skew: ne()
|
|
7166
7166
|
}],
|
|
7167
7167
|
/**
|
|
7168
7168
|
* Skew X
|
|
7169
7169
|
* @see https://tailwindcss.com/docs/skew
|
|
7170
7170
|
*/
|
|
7171
7171
|
"skew-x": [{
|
|
7172
|
-
"skew-x":
|
|
7172
|
+
"skew-x": ne()
|
|
7173
7173
|
}],
|
|
7174
7174
|
/**
|
|
7175
7175
|
* Skew Y
|
|
7176
7176
|
* @see https://tailwindcss.com/docs/skew
|
|
7177
7177
|
*/
|
|
7178
7178
|
"skew-y": [{
|
|
7179
|
-
"skew-y":
|
|
7179
|
+
"skew-y": ne()
|
|
7180
7180
|
}],
|
|
7181
7181
|
/**
|
|
7182
7182
|
* Transform
|
|
7183
7183
|
* @see https://tailwindcss.com/docs/transform
|
|
7184
7184
|
*/
|
|
7185
7185
|
transform: [{
|
|
7186
|
-
transform: [
|
|
7186
|
+
transform: [B, z, "", "none", "gpu", "cpu"]
|
|
7187
7187
|
}],
|
|
7188
7188
|
/**
|
|
7189
7189
|
* Transform Origin
|
|
@@ -7204,28 +7204,28 @@ const Cf = (e, t) => {
|
|
|
7204
7204
|
* @see https://tailwindcss.com/docs/translate
|
|
7205
7205
|
*/
|
|
7206
7206
|
translate: [{
|
|
7207
|
-
translate:
|
|
7207
|
+
translate: se()
|
|
7208
7208
|
}],
|
|
7209
7209
|
/**
|
|
7210
7210
|
* Translate X
|
|
7211
7211
|
* @see https://tailwindcss.com/docs/translate
|
|
7212
7212
|
*/
|
|
7213
7213
|
"translate-x": [{
|
|
7214
|
-
"translate-x":
|
|
7214
|
+
"translate-x": se()
|
|
7215
7215
|
}],
|
|
7216
7216
|
/**
|
|
7217
7217
|
* Translate Y
|
|
7218
7218
|
* @see https://tailwindcss.com/docs/translate
|
|
7219
7219
|
*/
|
|
7220
7220
|
"translate-y": [{
|
|
7221
|
-
"translate-y":
|
|
7221
|
+
"translate-y": se()
|
|
7222
7222
|
}],
|
|
7223
7223
|
/**
|
|
7224
7224
|
* Translate Z
|
|
7225
7225
|
* @see https://tailwindcss.com/docs/translate
|
|
7226
7226
|
*/
|
|
7227
7227
|
"translate-z": [{
|
|
7228
|
-
"translate-z":
|
|
7228
|
+
"translate-z": se()
|
|
7229
7229
|
}],
|
|
7230
7230
|
/**
|
|
7231
7231
|
* Translate None
|
|
@@ -7268,7 +7268,7 @@ const Cf = (e, t) => {
|
|
|
7268
7268
|
* @see https://tailwindcss.com/docs/cursor
|
|
7269
7269
|
*/
|
|
7270
7270
|
cursor: [{
|
|
7271
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out",
|
|
7271
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", B, z]
|
|
7272
7272
|
}],
|
|
7273
7273
|
/**
|
|
7274
7274
|
* Field Sizing
|
|
@@ -7490,7 +7490,7 @@ const Cf = (e, t) => {
|
|
|
7490
7490
|
* @see https://tailwindcss.com/docs/will-change
|
|
7491
7491
|
*/
|
|
7492
7492
|
"will-change": [{
|
|
7493
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
7493
|
+
"will-change": ["auto", "scroll", "contents", "transform", B, z]
|
|
7494
7494
|
}],
|
|
7495
7495
|
// -----------
|
|
7496
7496
|
// --- SVG ---
|
|
@@ -7507,7 +7507,7 @@ const Cf = (e, t) => {
|
|
|
7507
7507
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
7508
7508
|
*/
|
|
7509
7509
|
"stroke-w": [{
|
|
7510
|
-
stroke: [
|
|
7510
|
+
stroke: [Q, Lt, st, lo]
|
|
7511
7511
|
}],
|
|
7512
7512
|
/**
|
|
7513
7513
|
* Stroke
|
|
@@ -7624,8 +7624,8 @@ function dp({
|
|
|
7624
7624
|
error: r
|
|
7625
7625
|
}) {
|
|
7626
7626
|
const [s, i] = be(!1), a = t[e.name] ?? { from: null, to: null }, l = (f) => n(e.name, f), c = () => n(e.name, { from: null, to: null });
|
|
7627
|
-
return /* @__PURE__ */ u("div", { children: /* @__PURE__ */
|
|
7628
|
-
/* @__PURE__ */ u(Mn, { asChild: !0, children: /* @__PURE__ */
|
|
7627
|
+
return /* @__PURE__ */ u("div", { children: /* @__PURE__ */ I(In, { open: s, onOpenChange: i, children: [
|
|
7628
|
+
/* @__PURE__ */ u(Mn, { asChild: !0, children: /* @__PURE__ */ I(
|
|
7629
7629
|
"button",
|
|
7630
7630
|
{
|
|
7631
7631
|
type: "button",
|
|
@@ -7644,7 +7644,7 @@ function dp({
|
|
|
7644
7644
|
${r ? "border-red-500 focus-visible:ring-red-500" : "border-gray-300 focus-visible:ring-blue-500"}
|
|
7645
7645
|
`,
|
|
7646
7646
|
children: [
|
|
7647
|
-
a.from ? a.to ? /* @__PURE__ */
|
|
7647
|
+
a.from ? a.to ? /* @__PURE__ */ I("span", { children: [
|
|
7648
7648
|
a.from.toLocaleDateString(),
|
|
7649
7649
|
" –",
|
|
7650
7650
|
" ",
|
|
@@ -7669,7 +7669,7 @@ function dp({
|
|
|
7669
7669
|
]
|
|
7670
7670
|
}
|
|
7671
7671
|
) }),
|
|
7672
|
-
/* @__PURE__ */
|
|
7672
|
+
/* @__PURE__ */ I(
|
|
7673
7673
|
Dn,
|
|
7674
7674
|
{
|
|
7675
7675
|
align: "start",
|
|
@@ -7677,7 +7677,7 @@ function dp({
|
|
|
7677
7677
|
className: "z-50 rounded-md border border-gray-200 bg-white p-0 shadow-md w-auto",
|
|
7678
7678
|
children: [
|
|
7679
7679
|
/* @__PURE__ */ u(
|
|
7680
|
-
|
|
7680
|
+
ko,
|
|
7681
7681
|
{
|
|
7682
7682
|
mode: "range",
|
|
7683
7683
|
selected: a,
|
|
@@ -7686,7 +7686,7 @@ function dp({
|
|
|
7686
7686
|
className: "rounded-md bg-white p-3 text-xs"
|
|
7687
7687
|
}
|
|
7688
7688
|
),
|
|
7689
|
-
/* @__PURE__ */
|
|
7689
|
+
/* @__PURE__ */ I("div", { className: "flex items-center justify-between gap-2 border-t border-gray-200 p-3", children: [
|
|
7690
7690
|
/* @__PURE__ */ u(
|
|
7691
7691
|
"button",
|
|
7692
7692
|
{
|
|
@@ -7730,8 +7730,8 @@ function es({
|
|
|
7730
7730
|
);
|
|
7731
7731
|
const x = (T) => {
|
|
7732
7732
|
if (T === 0) return "0 Bytes";
|
|
7733
|
-
const F = 1024, H = ["Bytes", "KB", "MB", "GB"],
|
|
7734
|
-
return `${parseFloat((T / F **
|
|
7733
|
+
const F = 1024, H = ["Bytes", "KB", "MB", "GB"], M = Math.floor(Math.log(T) / Math.log(F));
|
|
7734
|
+
return `${parseFloat((T / F ** M).toFixed(2))} ${H[M]}`;
|
|
7735
7735
|
}, S = async (T) => {
|
|
7736
7736
|
const F = new FormData();
|
|
7737
7737
|
F.append("file", T);
|
|
@@ -7748,8 +7748,8 @@ function es({
|
|
|
7748
7748
|
throw new Error(
|
|
7749
7749
|
`File size must not exceed ${x(T.maxSize)}`
|
|
7750
7750
|
);
|
|
7751
|
-
const H = await S(F),
|
|
7752
|
-
s(T.name, H), i(
|
|
7751
|
+
const H = await S(F), M = { ...t, [T.name]: H };
|
|
7752
|
+
s(T.name, H), i(M);
|
|
7753
7753
|
}, y = async (T, F) => {
|
|
7754
7754
|
const H = t[T.name] || [];
|
|
7755
7755
|
if (T.maxFiles && H.length + F.length > T.maxFiles)
|
|
@@ -7760,18 +7760,18 @@ function es({
|
|
|
7760
7760
|
`Each file must not exceed ${x(T.maxSize)}`
|
|
7761
7761
|
);
|
|
7762
7762
|
});
|
|
7763
|
-
const
|
|
7763
|
+
const M = await Promise.all(
|
|
7764
7764
|
F.map((R) => S(R))
|
|
7765
7765
|
// Updated call
|
|
7766
|
-
), Y = [...H, ...
|
|
7766
|
+
), Y = [...H, ...M];
|
|
7767
7767
|
s(T.name, Y), i({ ...t, [T.name]: Y });
|
|
7768
7768
|
}, E = async (T, F) => {
|
|
7769
7769
|
if (c) return;
|
|
7770
7770
|
const H = Array.from(F);
|
|
7771
7771
|
try {
|
|
7772
7772
|
e.type === "multifile" ? await y(e, H) : await C(e, H[0]), r.current?.[T] && (r.current[T].value = "");
|
|
7773
|
-
} catch (
|
|
7774
|
-
fn.error(`Upload failed: ${
|
|
7773
|
+
} catch (M) {
|
|
7774
|
+
fn.error(`Upload failed: ${M.message}`);
|
|
7775
7775
|
}
|
|
7776
7776
|
}, $ = async (T, F) => {
|
|
7777
7777
|
if (c) return;
|
|
@@ -7783,7 +7783,7 @@ function es({
|
|
|
7783
7783
|
T.preventDefault(), c || h(!1);
|
|
7784
7784
|
}, G = (T) => {
|
|
7785
7785
|
T.preventDefault(), h(!1), !c && T.dataTransfer.files && T.dataTransfer.files.length > 0 && E(e.name, T.dataTransfer.files);
|
|
7786
|
-
},
|
|
7786
|
+
}, X = e.accept ? e.accept.split(",").map((T) => T.split("/")[1] || T.split(".")[1] || T).join(", ").toUpperCase() : "PNG, JPG, PDF", j = e.maxSize ? `, up to ${x(e.maxSize)}` : "", Z = `
|
|
7787
7787
|
w-full flex flex-col items-center justify-center p-6 border-2 border-dashed rounded-lg transition-all duration-200
|
|
7788
7788
|
// Ensure focus styling is handled correctly for the button element
|
|
7789
7789
|
focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-opacity-50
|
|
@@ -7793,12 +7793,12 @@ function es({
|
|
|
7793
7793
|
"div",
|
|
7794
7794
|
{
|
|
7795
7795
|
className: `mb-4 ${e.fieldClass || "col-span-full"}`,
|
|
7796
|
-
children: /* @__PURE__ */
|
|
7797
|
-
/* @__PURE__ */
|
|
7796
|
+
children: /* @__PURE__ */ I("div", { className: "space-y-3", children: [
|
|
7797
|
+
/* @__PURE__ */ I(
|
|
7798
7798
|
"button",
|
|
7799
7799
|
{
|
|
7800
7800
|
type: "button",
|
|
7801
|
-
className:
|
|
7801
|
+
className: Z,
|
|
7802
7802
|
onClick: () => {
|
|
7803
7803
|
c || r?.current?.[e.name]?.click();
|
|
7804
7804
|
},
|
|
@@ -7809,8 +7809,8 @@ function es({
|
|
|
7809
7809
|
disabled: c,
|
|
7810
7810
|
children: [
|
|
7811
7811
|
/* @__PURE__ */ u("div", { className: "border-gray-400 border p-1 mb-3 rounded-md bg-gray-100 shadow-md ", children: /* @__PURE__ */ u(wd, { size: 24, className: "m-1" }) }),
|
|
7812
|
-
/* @__PURE__ */
|
|
7813
|
-
/* @__PURE__ */
|
|
7812
|
+
/* @__PURE__ */ I("p", { className: "text-sm font-normal", children: [
|
|
7813
|
+
/* @__PURE__ */ I(
|
|
7814
7814
|
"span",
|
|
7815
7815
|
{
|
|
7816
7816
|
className: c ? "text-gray-400" : "text-blue-600 hover:text-blue-700 underline",
|
|
@@ -7822,8 +7822,8 @@ function es({
|
|
|
7822
7822
|
),
|
|
7823
7823
|
/* @__PURE__ */ u("span", { className: "font-light", children: " or drag and drop" })
|
|
7824
7824
|
] }),
|
|
7825
|
-
/* @__PURE__ */
|
|
7826
|
-
|
|
7825
|
+
/* @__PURE__ */ I("p", { className: "text-xs mt-1 text-gray-500", children: [
|
|
7826
|
+
X,
|
|
7827
7827
|
j,
|
|
7828
7828
|
f && e.maxFiles && `, Max ${e.maxFiles} files`
|
|
7829
7829
|
] })
|
|
@@ -7846,17 +7846,17 @@ function es({
|
|
|
7846
7846
|
}
|
|
7847
7847
|
),
|
|
7848
7848
|
m.length > 0 && /* @__PURE__ */ u("div", { className: "space-y-2 pt-2 border-t border-gray-200", children: m.map((T, F) => {
|
|
7849
|
-
const H = T.original_name || T.name || "File",
|
|
7850
|
-
return /* @__PURE__ */
|
|
7849
|
+
const H = T.original_name || T.name || "File", M = T.size || null;
|
|
7850
|
+
return /* @__PURE__ */ I(
|
|
7851
7851
|
"div",
|
|
7852
7852
|
{
|
|
7853
7853
|
className: "flex items-center justify-between p-2 bg-gray-50 rounded",
|
|
7854
7854
|
children: [
|
|
7855
|
-
/* @__PURE__ */
|
|
7855
|
+
/* @__PURE__ */ I("div", { className: "flex items-center space-x-2 min-w-0", children: [
|
|
7856
7856
|
/* @__PURE__ */ u("span", { className: "text-sm truncate", children: H }),
|
|
7857
|
-
|
|
7857
|
+
M && /* @__PURE__ */ I("span", { className: "text-xs text-gray-500 flex-shrink-0", children: [
|
|
7858
7858
|
"(",
|
|
7859
|
-
x(
|
|
7859
|
+
x(M),
|
|
7860
7860
|
")"
|
|
7861
7861
|
] })
|
|
7862
7862
|
] }),
|
|
@@ -7875,13 +7875,13 @@ function es({
|
|
|
7875
7875
|
T.url || T.original_name || F
|
|
7876
7876
|
);
|
|
7877
7877
|
}) }),
|
|
7878
|
-
Object.entries(p).map(([T, F]) => F.status === "uploading" ? /* @__PURE__ */
|
|
7879
|
-
/* @__PURE__ */
|
|
7880
|
-
/* @__PURE__ */
|
|
7878
|
+
Object.entries(p).map(([T, F]) => F.status === "uploading" ? /* @__PURE__ */ I("div", { className: "relative pt-1", children: [
|
|
7879
|
+
/* @__PURE__ */ I("div", { className: "flex items-center justify-between", children: [
|
|
7880
|
+
/* @__PURE__ */ I("span", { className: "text-xs font-semibold inline-block text-blue-600", children: [
|
|
7881
7881
|
"Uploading ",
|
|
7882
7882
|
T
|
|
7883
7883
|
] }),
|
|
7884
|
-
/* @__PURE__ */
|
|
7884
|
+
/* @__PURE__ */ I("span", { className: "text-xs font-semibold inline-block text-blue-600", children: [
|
|
7885
7885
|
F.progress,
|
|
7886
7886
|
"%"
|
|
7887
7887
|
] })
|
|
@@ -7912,7 +7912,7 @@ function fp({
|
|
|
7912
7912
|
const g = a.current;
|
|
7913
7913
|
g && (g.style.height = "auto", g.style.height = `${g.scrollHeight + 2}px`);
|
|
7914
7914
|
};
|
|
7915
|
-
|
|
7915
|
+
po(() => {
|
|
7916
7916
|
f();
|
|
7917
7917
|
}, [l]);
|
|
7918
7918
|
const p = (g) => {
|
|
@@ -7921,7 +7921,7 @@ function fp({
|
|
|
7921
7921
|
[e.name]: g.target.value.length
|
|
7922
7922
|
}));
|
|
7923
7923
|
};
|
|
7924
|
-
return /* @__PURE__ */
|
|
7924
|
+
return /* @__PURE__ */ I("div", { className: "space-y-2", children: [
|
|
7925
7925
|
/* @__PURE__ */ u(
|
|
7926
7926
|
"textarea",
|
|
7927
7927
|
{
|
|
@@ -7943,7 +7943,7 @@ function fp({
|
|
|
7943
7943
|
}
|
|
7944
7944
|
}
|
|
7945
7945
|
),
|
|
7946
|
-
/* @__PURE__ */ u("div", { className: "flex justify-between items-center", children: e.maxLength && !e.readOnly && /* @__PURE__ */
|
|
7946
|
+
/* @__PURE__ */ u("div", { className: "flex justify-between items-center", children: e.maxLength && !e.readOnly && /* @__PURE__ */ I("span", { className: "text-xs text-gray-500", children: [
|
|
7947
7947
|
s || 0,
|
|
7948
7948
|
"/",
|
|
7949
7949
|
e.maxLength,
|
|
@@ -7979,9 +7979,9 @@ function pp({ field: e, formValues: t, handleChange: n, handleBlur: o, error: r
|
|
|
7979
7979
|
}, S = () => {
|
|
7980
7980
|
m(c, f, p === "AM" ? "PM" : "AM");
|
|
7981
7981
|
}, C = () => n(e.name, null);
|
|
7982
|
-
return /* @__PURE__ */
|
|
7983
|
-
/* @__PURE__ */
|
|
7984
|
-
/* @__PURE__ */ u(Mn, { asChild: !0, children: /* @__PURE__ */
|
|
7982
|
+
return /* @__PURE__ */ I("div", { className: "relative", children: [
|
|
7983
|
+
/* @__PURE__ */ I(In, { open: s, onOpenChange: i, children: [
|
|
7984
|
+
/* @__PURE__ */ u(Mn, { asChild: !0, children: /* @__PURE__ */ I(
|
|
7985
7985
|
"button",
|
|
7986
7986
|
{
|
|
7987
7987
|
type: "button",
|
|
@@ -8001,7 +8001,7 @@ function pp({ field: e, formValues: t, handleChange: n, handleBlur: o, error: r
|
|
|
8001
8001
|
`,
|
|
8002
8002
|
children: [
|
|
8003
8003
|
l ? /* @__PURE__ */ u("span", { className: "text-slate-900 ", children: l.toLocaleString() }) : /* @__PURE__ */ u("span", { className: "text-slate-400", children: e.placeholder || "Select date and time" }),
|
|
8004
|
-
/* @__PURE__ */
|
|
8004
|
+
/* @__PURE__ */ I(
|
|
8005
8005
|
"svg",
|
|
8006
8006
|
{
|
|
8007
8007
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -8025,7 +8025,7 @@ function pp({ field: e, formValues: t, handleChange: n, handleBlur: o, error: r
|
|
|
8025
8025
|
]
|
|
8026
8026
|
}
|
|
8027
8027
|
) }),
|
|
8028
|
-
/* @__PURE__ */
|
|
8028
|
+
/* @__PURE__ */ I(
|
|
8029
8029
|
Dn,
|
|
8030
8030
|
{
|
|
8031
8031
|
align: "start",
|
|
@@ -8033,7 +8033,7 @@ function pp({ field: e, formValues: t, handleChange: n, handleBlur: o, error: r
|
|
|
8033
8033
|
className: "z-50 w-auto p-0 bg-white rounded-xl shadow-xl border border-slate-200",
|
|
8034
8034
|
children: [
|
|
8035
8035
|
/* @__PURE__ */ u("div", { className: "p-3", children: /* @__PURE__ */ u(
|
|
8036
|
-
|
|
8036
|
+
ko,
|
|
8037
8037
|
{
|
|
8038
8038
|
mode: "single",
|
|
8039
8039
|
selected: l,
|
|
@@ -8048,21 +8048,21 @@ function pp({ field: e, formValues: t, handleChange: n, handleBlur: o, error: r
|
|
|
8048
8048
|
}
|
|
8049
8049
|
}
|
|
8050
8050
|
) }),
|
|
8051
|
-
/* @__PURE__ */ u("div", { className: "border-t border-slate-100 p-4 bg-slate-50/50", children: /* @__PURE__ */
|
|
8052
|
-
/* @__PURE__ */
|
|
8053
|
-
/* @__PURE__ */
|
|
8051
|
+
/* @__PURE__ */ u("div", { className: "border-t border-slate-100 p-4 bg-slate-50/50", children: /* @__PURE__ */ I("div", { className: "flex items-center justify-center gap-4", children: [
|
|
8052
|
+
/* @__PURE__ */ I("div", { className: "flex items-center gap-2", children: [
|
|
8053
|
+
/* @__PURE__ */ I("div", { className: "flex flex-col items-center gap-1", children: [
|
|
8054
8054
|
/* @__PURE__ */ u("button", { type: "button", onClick: w, className: "p-1 h-6 w-6 flex items-center justify-center text-slate-400 hover:text-slate-700 hover:bg-slate-200 rounded-full transition-all", children: /* @__PURE__ */ u("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ u("path", { d: "m18 15-6-6-6 6" }) }) }),
|
|
8055
8055
|
/* @__PURE__ */ u("div", { className: "w-12 h-10 flex items-center justify-center bg-white border border-slate-200 rounded-lg text-lg font-semibold shadow-sm text-slate-700", children: c }),
|
|
8056
8056
|
/* @__PURE__ */ u("button", { type: "button", onClick: h, className: "p-1 h-6 w-6 flex items-center justify-center text-slate-400 hover:text-slate-700 hover:bg-slate-200 rounded-full transition-all", children: /* @__PURE__ */ u("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ u("path", { d: "m6 9 6 6 6-6" }) }) })
|
|
8057
8057
|
] }),
|
|
8058
8058
|
/* @__PURE__ */ u("span", { className: "text-xl font-medium text-slate-300 pb-1", children: ":" }),
|
|
8059
|
-
/* @__PURE__ */
|
|
8059
|
+
/* @__PURE__ */ I("div", { className: "flex flex-col items-center gap-1", children: [
|
|
8060
8060
|
/* @__PURE__ */ u("button", { type: "button", onClick: v, className: "p-1 h-6 w-6 flex items-center justify-center text-slate-400 hover:text-slate-700 hover:bg-slate-200 rounded-full transition-all", children: /* @__PURE__ */ u("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ u("path", { d: "m18 15-6-6-6 6" }) }) }),
|
|
8061
8061
|
/* @__PURE__ */ u("div", { className: "w-12 h-10 flex items-center justify-center bg-white border border-slate-200 rounded-lg text-lg font-semibold shadow-sm text-slate-700", children: f }),
|
|
8062
8062
|
/* @__PURE__ */ u("button", { type: "button", onClick: x, className: "p-1 h-6 w-6 flex items-center justify-center text-slate-400 hover:text-slate-700 hover:bg-slate-200 rounded-full transition-all", children: /* @__PURE__ */ u("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ u("path", { d: "m6 9 6 6 6-6" }) }) })
|
|
8063
8063
|
] })
|
|
8064
8064
|
] }),
|
|
8065
|
-
/* @__PURE__ */
|
|
8065
|
+
/* @__PURE__ */ I("div", { className: "flex flex-col gap-1 bg-white p-1 rounded-lg border border-slate-200 shadow-sm", children: [
|
|
8066
8066
|
/* @__PURE__ */ u(
|
|
8067
8067
|
"button",
|
|
8068
8068
|
{
|
|
@@ -8083,7 +8083,7 @@ function pp({ field: e, formValues: t, handleChange: n, handleBlur: o, error: r
|
|
|
8083
8083
|
)
|
|
8084
8084
|
] })
|
|
8085
8085
|
] }) }),
|
|
8086
|
-
/* @__PURE__ */
|
|
8086
|
+
/* @__PURE__ */ I("div", { className: "flex items-center justify-between gap-2 border-t border-slate-100 p-3 bg-white rounded-b-xl", children: [
|
|
8087
8087
|
/* @__PURE__ */ u(
|
|
8088
8088
|
"button",
|
|
8089
8089
|
{
|
|
@@ -8137,7 +8137,7 @@ function bp(e) {
|
|
|
8137
8137
|
let { children: r, ...s } = n;
|
|
8138
8138
|
if (Zi(r) && typeof yn == "function" && (r = yn(r._payload)), d.isValidElement(r)) {
|
|
8139
8139
|
const i = xp(r), a = wp(s, r.props);
|
|
8140
|
-
return r.type !== d.Fragment && (a.ref = o ?
|
|
8140
|
+
return r.type !== d.Fragment && (a.ref = o ? Po(o, i) : i), d.cloneElement(r, a);
|
|
8141
8141
|
}
|
|
8142
8142
|
return d.Children.count(r) > 1 ? d.Children.only(null) : null;
|
|
8143
8143
|
});
|
|
@@ -8203,7 +8203,7 @@ function Np(e) {
|
|
|
8203
8203
|
return Ap.includes(e);
|
|
8204
8204
|
}
|
|
8205
8205
|
var Rp = Qi;
|
|
8206
|
-
function
|
|
8206
|
+
function co({
|
|
8207
8207
|
className: e,
|
|
8208
8208
|
orientation: t = "horizontal",
|
|
8209
8209
|
decorative: n = !0,
|
|
@@ -8224,11 +8224,11 @@ function lo({
|
|
|
8224
8224
|
);
|
|
8225
8225
|
}
|
|
8226
8226
|
function Tp({ field: e }) {
|
|
8227
|
-
return e?.label ? /* @__PURE__ */
|
|
8228
|
-
/* @__PURE__ */ u(
|
|
8227
|
+
return e?.label ? /* @__PURE__ */ I("div", { className: "relative flex items-center py-4", children: [
|
|
8228
|
+
/* @__PURE__ */ u(co, { className: "flex-1 h-px bg-gray-300" }),
|
|
8229
8229
|
/* @__PURE__ */ u("span", { className: "px-3 font-medium text-gray-600 bg-white", children: e.label }),
|
|
8230
|
-
/* @__PURE__ */ u(
|
|
8231
|
-
] }) : /* @__PURE__ */ u(
|
|
8230
|
+
/* @__PURE__ */ u(co, { className: "flex-1 h-px bg-gray-300" })
|
|
8231
|
+
] }) : /* @__PURE__ */ u(co, { className: "my-4 h-px bg-gray-300" });
|
|
8232
8232
|
}
|
|
8233
8233
|
var kp = [
|
|
8234
8234
|
"a",
|
|
@@ -8278,11 +8278,11 @@ var kp = [
|
|
|
8278
8278
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u(l, { ...a, ref: s });
|
|
8279
8279
|
});
|
|
8280
8280
|
return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
|
|
8281
|
-
}, {}),
|
|
8281
|
+
}, {}), uo = "rovingFocusGroup.onEntryFocus", _p = { bubbles: !1, cancelable: !0 }, Vt = "RovingFocusGroup", [To, ea, Op] = ss(Vt), [Ip, ta] = ct(
|
|
8282
8282
|
Vt,
|
|
8283
8283
|
[Op]
|
|
8284
8284
|
), [Mp, Dp] = Ip(Vt), na = d.forwardRef(
|
|
8285
|
-
(e, t) => /* @__PURE__ */ u(
|
|
8285
|
+
(e, t) => /* @__PURE__ */ u(To.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ u(To.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ u(Lp, { ...e, ref: t }) }) })
|
|
8286
8286
|
);
|
|
8287
8287
|
na.displayName = Vt;
|
|
8288
8288
|
var Lp = d.forwardRef((e, t) => {
|
|
@@ -8297,7 +8297,7 @@ var Lp = d.forwardRef((e, t) => {
|
|
|
8297
8297
|
onEntryFocus: c,
|
|
8298
8298
|
preventScrollOnEntryFocus: f = !1,
|
|
8299
8299
|
...p
|
|
8300
|
-
} = e, g = d.useRef(null), m = ae(t, g), w =
|
|
8300
|
+
} = e, g = d.useRef(null), m = ae(t, g), w = _o(s), [h, v] = Bt({
|
|
8301
8301
|
prop: i,
|
|
8302
8302
|
defaultProp: a ?? null,
|
|
8303
8303
|
onChange: l,
|
|
@@ -8306,7 +8306,7 @@ var Lp = d.forwardRef((e, t) => {
|
|
|
8306
8306
|
return d.useEffect(() => {
|
|
8307
8307
|
const N = g.current;
|
|
8308
8308
|
if (N)
|
|
8309
|
-
return N.addEventListener(
|
|
8309
|
+
return N.addEventListener(uo, C), () => N.removeEventListener(uo, C);
|
|
8310
8310
|
}, [C]), /* @__PURE__ */ u(
|
|
8311
8311
|
Mp,
|
|
8312
8312
|
{
|
|
@@ -8336,23 +8336,23 @@ var Lp = d.forwardRef((e, t) => {
|
|
|
8336
8336
|
...p,
|
|
8337
8337
|
ref: m,
|
|
8338
8338
|
style: { outline: "none", ...e.style },
|
|
8339
|
-
onMouseDown:
|
|
8339
|
+
onMouseDown: oe(e.onMouseDown, () => {
|
|
8340
8340
|
E.current = !0;
|
|
8341
8341
|
}),
|
|
8342
|
-
onFocus:
|
|
8342
|
+
onFocus: oe(e.onFocus, (N) => {
|
|
8343
8343
|
const G = !E.current;
|
|
8344
8344
|
if (N.target === N.currentTarget && G && !x) {
|
|
8345
|
-
const
|
|
8346
|
-
if (N.currentTarget.dispatchEvent(
|
|
8347
|
-
const j = y().filter((
|
|
8345
|
+
const X = new CustomEvent(uo, _p);
|
|
8346
|
+
if (N.currentTarget.dispatchEvent(X), !X.defaultPrevented) {
|
|
8347
|
+
const j = y().filter((M) => M.focusable), Z = j.find((M) => M.active), T = j.find((M) => M.id === h), H = [Z, T, ...j].filter(
|
|
8348
8348
|
Boolean
|
|
8349
|
-
).map((
|
|
8349
|
+
).map((M) => M.ref.current);
|
|
8350
8350
|
sa(H, f);
|
|
8351
8351
|
}
|
|
8352
8352
|
}
|
|
8353
8353
|
E.current = !1;
|
|
8354
8354
|
}),
|
|
8355
|
-
onBlur:
|
|
8355
|
+
onBlur: oe(e.onBlur, () => S(!1))
|
|
8356
8356
|
}
|
|
8357
8357
|
)
|
|
8358
8358
|
}
|
|
@@ -8371,7 +8371,7 @@ var Lp = d.forwardRef((e, t) => {
|
|
|
8371
8371
|
if (o)
|
|
8372
8372
|
return m(), () => w();
|
|
8373
8373
|
}, [o, m, w]), /* @__PURE__ */ u(
|
|
8374
|
-
|
|
8374
|
+
To.ItemSlot,
|
|
8375
8375
|
{
|
|
8376
8376
|
scope: n,
|
|
8377
8377
|
id: c,
|
|
@@ -8384,11 +8384,11 @@ var Lp = d.forwardRef((e, t) => {
|
|
|
8384
8384
|
"data-orientation": f.orientation,
|
|
8385
8385
|
...a,
|
|
8386
8386
|
ref: t,
|
|
8387
|
-
onMouseDown:
|
|
8387
|
+
onMouseDown: oe(e.onMouseDown, (v) => {
|
|
8388
8388
|
o ? f.onItemFocus(c) : v.preventDefault();
|
|
8389
8389
|
}),
|
|
8390
|
-
onFocus:
|
|
8391
|
-
onKeyDown:
|
|
8390
|
+
onFocus: oe(e.onFocus, () => f.onItemFocus(c)),
|
|
8391
|
+
onKeyDown: oe(e.onKeyDown, (v) => {
|
|
8392
8392
|
if (v.key === "Tab" && v.shiftKey) {
|
|
8393
8393
|
f.onItemShiftTab();
|
|
8394
8394
|
return;
|
|
@@ -8442,7 +8442,7 @@ function sa(e, t = !1) {
|
|
|
8442
8442
|
function Bp(e, t) {
|
|
8443
8443
|
return e.map((n, o) => e[(t + o) % e.length]);
|
|
8444
8444
|
}
|
|
8445
|
-
var Up = na, Wp = ra,
|
|
8445
|
+
var Up = na, Wp = ra, Ko = "Radio", [Hp, ia] = ct(Ko), [Vp, jp] = Hp(Ko), aa = d.forwardRef(
|
|
8446
8446
|
(e, t) => {
|
|
8447
8447
|
const {
|
|
8448
8448
|
__scopeRadio: n,
|
|
@@ -8455,7 +8455,7 @@ var Up = na, Wp = ra, Yo = "Radio", [Hp, ia] = ct(Yo), [Vp, jp] = Hp(Yo), aa = d
|
|
|
8455
8455
|
form: c,
|
|
8456
8456
|
...f
|
|
8457
8457
|
} = e, [p, g] = d.useState(null), m = ae(t, (v) => g(v)), w = d.useRef(!1), h = p ? c || !!p.closest("form") : !0;
|
|
8458
|
-
return /* @__PURE__ */
|
|
8458
|
+
return /* @__PURE__ */ I(Vp, { scope: n, checked: r, disabled: i, children: [
|
|
8459
8459
|
/* @__PURE__ */ u(
|
|
8460
8460
|
Ln.button,
|
|
8461
8461
|
{
|
|
@@ -8468,7 +8468,7 @@ var Up = na, Wp = ra, Yo = "Radio", [Hp, ia] = ct(Yo), [Vp, jp] = Hp(Yo), aa = d
|
|
|
8468
8468
|
value: a,
|
|
8469
8469
|
...f,
|
|
8470
8470
|
ref: m,
|
|
8471
|
-
onClick:
|
|
8471
|
+
onClick: oe(e.onClick, (v) => {
|
|
8472
8472
|
r || l?.(), h && (w.current = v.isPropagationStopped(), w.current || v.stopPropagation());
|
|
8473
8473
|
})
|
|
8474
8474
|
}
|
|
@@ -8490,7 +8490,7 @@ var Up = na, Wp = ra, Yo = "Radio", [Hp, ia] = ct(Yo), [Vp, jp] = Hp(Yo), aa = d
|
|
|
8490
8490
|
] });
|
|
8491
8491
|
}
|
|
8492
8492
|
);
|
|
8493
|
-
aa.displayName =
|
|
8493
|
+
aa.displayName = Ko;
|
|
8494
8494
|
var la = "RadioIndicator", ca = d.forwardRef(
|
|
8495
8495
|
(e, t) => {
|
|
8496
8496
|
const { __scopeRadio: n, forceMount: o, ...r } = e, s = jp(la, n);
|
|
@@ -8568,7 +8568,7 @@ var Yp = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Fn = "RadioGroup",
|
|
|
8568
8568
|
loop: f = !0,
|
|
8569
8569
|
onValueChange: p,
|
|
8570
8570
|
...g
|
|
8571
|
-
} = e, m = fa(n), w =
|
|
8571
|
+
} = e, m = fa(n), w = _o(c), [h, v] = Bt({
|
|
8572
8572
|
prop: s,
|
|
8573
8573
|
defaultProp: r ?? null,
|
|
8574
8574
|
onChange: p,
|
|
@@ -8638,10 +8638,10 @@ var ha = "RadioGroupItem", ga = d.forwardRef(
|
|
|
8638
8638
|
name: s.name,
|
|
8639
8639
|
ref: f,
|
|
8640
8640
|
onCheck: () => s.onValueChange(r.value),
|
|
8641
|
-
onKeyDown:
|
|
8641
|
+
onKeyDown: oe((m) => {
|
|
8642
8642
|
m.key === "Enter" && m.preventDefault();
|
|
8643
8643
|
}),
|
|
8644
|
-
onFocus:
|
|
8644
|
+
onFocus: oe(r.onFocus, () => {
|
|
8645
8645
|
g.current && c.current?.click();
|
|
8646
8646
|
})
|
|
8647
8647
|
}
|
|
@@ -8711,7 +8711,7 @@ function nm({
|
|
|
8711
8711
|
// Accept effective disabled state (handles global and override status)
|
|
8712
8712
|
}) {
|
|
8713
8713
|
const i = t[e.name] || "", a = s, l = e.options || [], c = e.inline || !1, f = e.renderType === "segment", p = f ? "mt-2 inline-flex w-full md:w-auto p-1 rounded-md bg-gray-50 border border-gray-200 shadow-inner" : c ? "flex flex-wrap gap-4" : "space-y-3";
|
|
8714
|
-
return /* @__PURE__ */
|
|
8714
|
+
return /* @__PURE__ */ I(
|
|
8715
8715
|
"div",
|
|
8716
8716
|
{
|
|
8717
8717
|
className: `mb-4 ${e.fieldClass ? e.fieldClass : "col-span-full"}`,
|
|
@@ -8727,7 +8727,7 @@ function nm({
|
|
|
8727
8727
|
"aria-label": e.label || e.name,
|
|
8728
8728
|
children: l.map((g) => {
|
|
8729
8729
|
const m = typeof g == "object" ? g.value : g, w = typeof g == "object" ? g.label : g, h = typeof g == "object" ? g.description : null, v = `${e.name}-${m}`, x = i === m;
|
|
8730
|
-
return f ? /* @__PURE__ */
|
|
8730
|
+
return f ? /* @__PURE__ */ I(
|
|
8731
8731
|
"label",
|
|
8732
8732
|
{
|
|
8733
8733
|
htmlFor: v,
|
|
@@ -8749,7 +8749,7 @@ function nm({
|
|
|
8749
8749
|
]
|
|
8750
8750
|
},
|
|
8751
8751
|
m
|
|
8752
|
-
) : /* @__PURE__ */
|
|
8752
|
+
) : /* @__PURE__ */ I("div", { className: "relative flex items-start", children: [
|
|
8753
8753
|
/* @__PURE__ */ u("div", { className: "flex h-6 items-center", children: /* @__PURE__ */ u(
|
|
8754
8754
|
ns,
|
|
8755
8755
|
{
|
|
@@ -8763,7 +8763,7 @@ function nm({
|
|
|
8763
8763
|
`
|
|
8764
8764
|
}
|
|
8765
8765
|
) }),
|
|
8766
|
-
/* @__PURE__ */
|
|
8766
|
+
/* @__PURE__ */ I("div", { className: "ml-3 text-sm", children: [
|
|
8767
8767
|
/* @__PURE__ */ u(
|
|
8768
8768
|
"label",
|
|
8769
8769
|
{
|
|
@@ -8815,7 +8815,7 @@ function om({ field: e }) {
|
|
|
8815
8815
|
`.trim();
|
|
8816
8816
|
return (
|
|
8817
8817
|
// Wrapper div ensures the component spans the full width of the container
|
|
8818
|
-
/* @__PURE__ */
|
|
8818
|
+
/* @__PURE__ */ I(
|
|
8819
8819
|
"div",
|
|
8820
8820
|
{
|
|
8821
8821
|
className: `my-6 col-span-full w-full border-b border-gray-300 pb-2 ${c[r] || c.false}`,
|
|
@@ -8835,8 +8835,8 @@ function rm({
|
|
|
8835
8835
|
error: r
|
|
8836
8836
|
}) {
|
|
8837
8837
|
const [s, i] = be(!1), a = t[e.name] ?? null, l = (f) => n(e.name, f), c = () => n(e.name, null);
|
|
8838
|
-
return /* @__PURE__ */ u("div", { children: /* @__PURE__ */
|
|
8839
|
-
/* @__PURE__ */ u(Mn, { asChild: !0, children: /* @__PURE__ */
|
|
8838
|
+
return /* @__PURE__ */ u("div", { children: /* @__PURE__ */ I(In, { open: s, onOpenChange: i, children: [
|
|
8839
|
+
/* @__PURE__ */ u(Mn, { asChild: !0, children: /* @__PURE__ */ I(
|
|
8840
8840
|
"button",
|
|
8841
8841
|
{
|
|
8842
8842
|
type: "button",
|
|
@@ -8875,7 +8875,7 @@ function rm({
|
|
|
8875
8875
|
]
|
|
8876
8876
|
}
|
|
8877
8877
|
) }),
|
|
8878
|
-
/* @__PURE__ */
|
|
8878
|
+
/* @__PURE__ */ I(
|
|
8879
8879
|
Dn,
|
|
8880
8880
|
{
|
|
8881
8881
|
align: "start",
|
|
@@ -8883,7 +8883,7 @@ function rm({
|
|
|
8883
8883
|
className: "z-50 rounded-md border border-gray-200 bg-white p-0 shadow-md w-auto",
|
|
8884
8884
|
children: [
|
|
8885
8885
|
/* @__PURE__ */ u(
|
|
8886
|
-
|
|
8886
|
+
ko,
|
|
8887
8887
|
{
|
|
8888
8888
|
mode: "single",
|
|
8889
8889
|
selected: a,
|
|
@@ -8892,7 +8892,7 @@ function rm({
|
|
|
8892
8892
|
className: "rounded-md bg-white p-3 text-xs"
|
|
8893
8893
|
}
|
|
8894
8894
|
),
|
|
8895
|
-
/* @__PURE__ */
|
|
8895
|
+
/* @__PURE__ */ I("div", { className: "flex items-center justify-between gap-2 border-t border-gray-200 p-3", children: [
|
|
8896
8896
|
/* @__PURE__ */ u(
|
|
8897
8897
|
"button",
|
|
8898
8898
|
{
|
|
@@ -8943,8 +8943,8 @@ function sm({ field: e, formValues: t, handleChange: n, handleBlur: o, error: r
|
|
|
8943
8943
|
const y = parseInt(c);
|
|
8944
8944
|
f((y === 0 ? 55 : y - 5).toString().padStart(2, "0"));
|
|
8945
8945
|
};
|
|
8946
|
-
return /* @__PURE__ */ u("div", { children: /* @__PURE__ */
|
|
8947
|
-
/* @__PURE__ */ u(Mn, { asChild: !0, children: /* @__PURE__ */
|
|
8946
|
+
return /* @__PURE__ */ u("div", { children: /* @__PURE__ */ I(In, { open: s, onOpenChange: i, children: [
|
|
8947
|
+
/* @__PURE__ */ u(Mn, { asChild: !0, children: /* @__PURE__ */ I(
|
|
8948
8948
|
"button",
|
|
8949
8949
|
{
|
|
8950
8950
|
type: "button",
|
|
@@ -8963,7 +8963,7 @@ function sm({ field: e, formValues: t, handleChange: n, handleBlur: o, error: r
|
|
|
8963
8963
|
`,
|
|
8964
8964
|
children: [
|
|
8965
8965
|
m ? /* @__PURE__ */ u("span", { children: m }) : /* @__PURE__ */ u("span", { className: "text-gray-400", children: e.placeholder || "Select time" }),
|
|
8966
|
-
/* @__PURE__ */
|
|
8966
|
+
/* @__PURE__ */ I(
|
|
8967
8967
|
"svg",
|
|
8968
8968
|
{
|
|
8969
8969
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -8991,9 +8991,9 @@ function sm({ field: e, formValues: t, handleChange: n, handleBlur: o, error: r
|
|
|
8991
8991
|
align: "start",
|
|
8992
8992
|
sideOffset: 2,
|
|
8993
8993
|
className: "z-50 rounded-md border border-gray-200 bg-white p-4 shadow-md w-64",
|
|
8994
|
-
children: /* @__PURE__ */
|
|
8995
|
-
/* @__PURE__ */
|
|
8996
|
-
/* @__PURE__ */
|
|
8994
|
+
children: /* @__PURE__ */ I("div", { className: "flex flex-col gap-4", children: [
|
|
8995
|
+
/* @__PURE__ */ I("div", { className: "flex items-center justify-center gap-2", children: [
|
|
8996
|
+
/* @__PURE__ */ I("div", { className: "flex flex-col items-center", children: [
|
|
8997
8997
|
/* @__PURE__ */ u(
|
|
8998
8998
|
"button",
|
|
8999
8999
|
{
|
|
@@ -9051,7 +9051,7 @@ function sm({ field: e, formValues: t, handleChange: n, handleBlur: o, error: r
|
|
|
9051
9051
|
)
|
|
9052
9052
|
] }),
|
|
9053
9053
|
/* @__PURE__ */ u("span", { className: "text-2xl font-semibold", children: ":" }),
|
|
9054
|
-
/* @__PURE__ */
|
|
9054
|
+
/* @__PURE__ */ I("div", { className: "flex flex-col items-center", children: [
|
|
9055
9055
|
/* @__PURE__ */ u(
|
|
9056
9056
|
"button",
|
|
9057
9057
|
{
|
|
@@ -9108,7 +9108,7 @@ function sm({ field: e, formValues: t, handleChange: n, handleBlur: o, error: r
|
|
|
9108
9108
|
}
|
|
9109
9109
|
)
|
|
9110
9110
|
] }),
|
|
9111
|
-
/* @__PURE__ */
|
|
9111
|
+
/* @__PURE__ */ I("div", { className: "flex flex-col gap-1 ml-2", children: [
|
|
9112
9112
|
/* @__PURE__ */ u(
|
|
9113
9113
|
"button",
|
|
9114
9114
|
{
|
|
@@ -9135,7 +9135,7 @@ function sm({ field: e, formValues: t, handleChange: n, handleBlur: o, error: r
|
|
|
9135
9135
|
)
|
|
9136
9136
|
] })
|
|
9137
9137
|
] }),
|
|
9138
|
-
/* @__PURE__ */
|
|
9138
|
+
/* @__PURE__ */ I("div", { className: "flex items-center justify-between gap-2 border-t border-gray-200 pt-3", children: [
|
|
9139
9139
|
/* @__PURE__ */ u(
|
|
9140
9140
|
"button",
|
|
9141
9141
|
{
|
|
@@ -9161,13 +9161,13 @@ function sm({ field: e, formValues: t, handleChange: n, handleBlur: o, error: r
|
|
|
9161
9161
|
] }) });
|
|
9162
9162
|
}
|
|
9163
9163
|
function im({ message: e }) {
|
|
9164
|
-
return /* @__PURE__ */ u("div", { className: "rounded-lg bg-red-50 border border-red-100 p-4 shadow-sm", children: /* @__PURE__ */
|
|
9164
|
+
return /* @__PURE__ */ u("div", { className: "rounded-lg bg-red-50 border border-red-100 p-4 shadow-sm", children: /* @__PURE__ */ I("div", { className: "flex items-center gap-3", children: [
|
|
9165
9165
|
/* @__PURE__ */ u(gd, { "aria-hidden": "true", className: "size-5 text-red-500 shrink-0" }),
|
|
9166
9166
|
/* @__PURE__ */ u("span", { className: "text-sm font-medium text-red-900", children: e })
|
|
9167
9167
|
] }) });
|
|
9168
9168
|
}
|
|
9169
9169
|
function am({ message: e }) {
|
|
9170
|
-
return /* @__PURE__ */ u("div", { className: "rounded-lg bg-amber-50 border border-amber-100 p-4 shadow-sm", children: /* @__PURE__ */
|
|
9170
|
+
return /* @__PURE__ */ u("div", { className: "rounded-lg bg-amber-50 border border-amber-100 p-4 shadow-sm", children: /* @__PURE__ */ I("div", { className: "flex items-center gap-3", children: [
|
|
9171
9171
|
/* @__PURE__ */ u(
|
|
9172
9172
|
fd,
|
|
9173
9173
|
{
|
|
@@ -9179,7 +9179,7 @@ function am({ message: e }) {
|
|
|
9179
9179
|
] }) });
|
|
9180
9180
|
}
|
|
9181
9181
|
function lm({ message: e }) {
|
|
9182
|
-
return /* @__PURE__ */ u("div", { className: "rounded-lg bg-green-50 border border-green-100 p-4 shadow-sm", children: /* @__PURE__ */
|
|
9182
|
+
return /* @__PURE__ */ u("div", { className: "rounded-lg bg-green-50 border border-green-100 p-4 shadow-sm", children: /* @__PURE__ */ I("div", { className: "flex items-center gap-3", children: [
|
|
9183
9183
|
/* @__PURE__ */ u(
|
|
9184
9184
|
md,
|
|
9185
9185
|
{
|
|
@@ -9191,7 +9191,7 @@ function lm({ message: e }) {
|
|
|
9191
9191
|
] }) });
|
|
9192
9192
|
}
|
|
9193
9193
|
function cm({ message: e }) {
|
|
9194
|
-
return /* @__PURE__ */ u("div", { className: "rounded-lg bg-blue-50 border border-blue-100 p-4 shadow-sm", children: /* @__PURE__ */
|
|
9194
|
+
return /* @__PURE__ */ u("div", { className: "rounded-lg bg-blue-50 border border-blue-100 p-4 shadow-sm", children: /* @__PURE__ */ I("div", { className: "flex items-center gap-3", children: [
|
|
9195
9195
|
/* @__PURE__ */ u(Sd, { "aria-hidden": "true", className: "size-5 text-blue-600 shrink-0" }),
|
|
9196
9196
|
/* @__PURE__ */ u("span", { className: "text-sm font-medium text-blue-900", children: e })
|
|
9197
9197
|
] }) });
|
|
@@ -9267,24 +9267,24 @@ const wm = ({
|
|
|
9267
9267
|
}
|
|
9268
9268
|
try {
|
|
9269
9269
|
const _ = await e(`/${A.optionsUrl}`);
|
|
9270
|
-
let
|
|
9271
|
-
A.type === "select" ?
|
|
9270
|
+
let U = [];
|
|
9271
|
+
A.type === "select" ? U = [
|
|
9272
9272
|
{ value: "", label: `Select ${A.label.toLowerCase()}` },
|
|
9273
9273
|
..._.data
|
|
9274
|
-
] :
|
|
9275
|
-
..._.data.map((
|
|
9276
|
-
value:
|
|
9277
|
-
label:
|
|
9274
|
+
] : U = [
|
|
9275
|
+
..._.data.map((D) => ({
|
|
9276
|
+
value: D.value,
|
|
9277
|
+
label: D.label
|
|
9278
9278
|
}))
|
|
9279
|
-
], o.fields.forEach((
|
|
9280
|
-
|
|
9279
|
+
], o.fields.forEach((D) => {
|
|
9280
|
+
D.name === A.name && (D.options = U);
|
|
9281
9281
|
});
|
|
9282
9282
|
} catch (_) {
|
|
9283
9283
|
c && console.error(`Failed to load options for ${A.name}:`, _);
|
|
9284
9284
|
} finally {
|
|
9285
9285
|
}
|
|
9286
9286
|
};
|
|
9287
|
-
|
|
9287
|
+
po(() => {
|
|
9288
9288
|
if (o?.fields && o.fields.length > 0) {
|
|
9289
9289
|
if (!o.fields.some((_) => _.value)) return;
|
|
9290
9290
|
o.fields.forEach((_) => {
|
|
@@ -9293,20 +9293,20 @@ const wm = ({
|
|
|
9293
9293
|
const L = {};
|
|
9294
9294
|
o.fields.forEach((_) => {
|
|
9295
9295
|
if (!_.name) return;
|
|
9296
|
-
const
|
|
9297
|
-
L[_.name] = a[_.name] ?? _.value ?? (
|
|
9296
|
+
const U = _.type === "multiselect" || _.type === "checkbox" && _.options && _.options.length > 0;
|
|
9297
|
+
L[_.name] = a[_.name] ?? _.value ?? (U ? [] : "");
|
|
9298
9298
|
}), p(L);
|
|
9299
9299
|
}
|
|
9300
9300
|
}, [o]);
|
|
9301
|
-
const
|
|
9302
|
-
const
|
|
9303
|
-
if (A.required &&
|
|
9301
|
+
const X = (A, L, _) => {
|
|
9302
|
+
const U = typeof L == "object" && L !== null && !Array.isArray(L) && !(L instanceof Date), D = L == null || typeof L == "string" && L.trim() === "" || Array.isArray(L) && L.length === 0 || A.type === "checkbox" && L === !1 || U && Object.keys(L).length === 0;
|
|
9303
|
+
if (A.required && D)
|
|
9304
9304
|
return c && console.warn(`VALIDATION FAILED (REQUIRED): ${A.name} is empty.`), `${A.label} is required`;
|
|
9305
|
-
if (
|
|
9305
|
+
if (D && !A.required)
|
|
9306
9306
|
return null;
|
|
9307
9307
|
if (A.validate) {
|
|
9308
|
-
const
|
|
9309
|
-
if (
|
|
9308
|
+
const K = A.validate(L, _);
|
|
9309
|
+
if (K) return K;
|
|
9310
9310
|
}
|
|
9311
9311
|
if (A.type === "email" && L && !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(L))
|
|
9312
9312
|
return "Please enter a valid email address";
|
|
@@ -9316,56 +9316,80 @@ const wm = ({
|
|
|
9316
9316
|
if (A.max !== void 0 && L > A.max)
|
|
9317
9317
|
return `${A.label} must be no more than ${A.max}`;
|
|
9318
9318
|
}
|
|
9319
|
-
return A.type === "date" && L && !
|
|
9319
|
+
return A.type === "date" && L && !jn(L).isValid() ? `${A.label} must be a valid date` : A.maxLength && L && L.length > A.maxLength ? `${A.label} must not exceed ${A.maxLength} characters` : null;
|
|
9320
9320
|
}, j = (A, L) => {
|
|
9321
|
-
const _ = o.fields.find((
|
|
9321
|
+
const _ = o.fields.find((D) => D.name === A);
|
|
9322
9322
|
if (!_) return;
|
|
9323
|
-
const
|
|
9324
|
-
_.type === "multiselect" ?
|
|
9325
|
-
(
|
|
9326
|
-
) : _.type === "dateRange" ?
|
|
9323
|
+
const U = { ...f };
|
|
9324
|
+
_.type === "multiselect" ? U[A] = Array.isArray(L) ? L : Array.from(L.target.selectedOptions).map(
|
|
9325
|
+
(D) => D.value
|
|
9326
|
+
) : _.type === "dateRange" ? U[A] = [
|
|
9327
9327
|
{
|
|
9328
9328
|
startDate: L[0].from,
|
|
9329
9329
|
endDate: L[0].to,
|
|
9330
9330
|
key: "selection"
|
|
9331
9331
|
}
|
|
9332
|
-
] : _.type === "dayTimePicker" ?
|
|
9333
|
-
if (
|
|
9334
|
-
const
|
|
9335
|
-
|
|
9332
|
+
] : _.type === "dayTimePicker" ? U[A] = L ? jn(L).format("YYYY-MM-DD HH:mm:ss") : "" : _.type === "number" ? U[A] = L === "" ? "" : Number(L) : U[A] = L, _.type === "select" && o.fields.forEach((D) => {
|
|
9333
|
+
if (D.showIf && !D.showIf(U)) {
|
|
9334
|
+
const K = D.type === "multiselect" || D.type === "checkbox" && D.options && D.options.length > 0;
|
|
9335
|
+
U[D.name] = K ? [] : "";
|
|
9336
9336
|
}
|
|
9337
|
-
}), o.fields.forEach((
|
|
9338
|
-
if (typeof
|
|
9339
|
-
const
|
|
9340
|
-
|
|
9337
|
+
}), o.fields.forEach((D) => {
|
|
9338
|
+
if (typeof D.disabled == "function" && D.disabled(U)) {
|
|
9339
|
+
const K = D.type === "multiselect" || D.type === "checkbox" && D.options && D.options.length > 0;
|
|
9340
|
+
U[D.name] = K ? [] : "";
|
|
9341
9341
|
}
|
|
9342
|
-
}), p(
|
|
9343
|
-
},
|
|
9342
|
+
}), p(U);
|
|
9343
|
+
}, Z = (A) => {
|
|
9344
9344
|
h({ ...w, [A]: !0 });
|
|
9345
9345
|
}, T = (A) => {
|
|
9346
9346
|
A.preventDefault();
|
|
9347
9347
|
const L = {};
|
|
9348
|
-
o.fields.forEach((
|
|
9349
|
-
L[
|
|
9348
|
+
o.fields.forEach((U) => {
|
|
9349
|
+
U.name && (L[U.name] = !0);
|
|
9350
9350
|
}), h(L);
|
|
9351
9351
|
const _ = {};
|
|
9352
|
-
if (o.fields.forEach((
|
|
9353
|
-
if (
|
|
9354
|
-
const
|
|
9355
|
-
|
|
9352
|
+
if (o.fields.forEach((U) => {
|
|
9353
|
+
if (U.name && (!U.showIf || U.showIf(f))) {
|
|
9354
|
+
const D = X(U, f[U.name], f);
|
|
9355
|
+
D && (_[U.name] = D);
|
|
9356
9356
|
}
|
|
9357
9357
|
}), m(_), Object.keys(_).length === 0) {
|
|
9358
|
-
const
|
|
9359
|
-
|
|
9360
|
-
|
|
9361
|
-
|
|
9362
|
-
|
|
9363
|
-
|
|
9364
|
-
|
|
9358
|
+
const U = (K, O) => {
|
|
9359
|
+
if (K === "" || K === null || K === void 0) return null;
|
|
9360
|
+
const q = O?.toLowerCase();
|
|
9361
|
+
if (Array.isArray(K))
|
|
9362
|
+
return q === "number" || q === "integer" ? K.map((te) => te === "" ? null : Number(te)) : K;
|
|
9363
|
+
switch (q) {
|
|
9364
|
+
case "number":
|
|
9365
|
+
case "integer":
|
|
9366
|
+
case "float":
|
|
9367
|
+
return Number(K);
|
|
9368
|
+
case "boolean":
|
|
9369
|
+
case "bool":
|
|
9370
|
+
return String(K).toLowerCase() === "true" || K === !0;
|
|
9371
|
+
case "date":
|
|
9372
|
+
case "datetime": {
|
|
9373
|
+
const te = jn(K);
|
|
9374
|
+
return te.isValid() ? te.toISOString() : K;
|
|
9375
|
+
}
|
|
9376
|
+
default:
|
|
9377
|
+
return K;
|
|
9378
|
+
}
|
|
9379
|
+
}, D = {};
|
|
9380
|
+
o.fields.forEach((K) => {
|
|
9381
|
+
if (K.name) {
|
|
9382
|
+
const O = f[K.name], q = K.fieldType || "string", te = U(O, q);
|
|
9383
|
+
r ? D[K.name] = {
|
|
9384
|
+
value: te,
|
|
9385
|
+
fieldType: q
|
|
9386
|
+
} : D[K.name] = te;
|
|
9387
|
+
}
|
|
9388
|
+
}), c ? console.log("Form submitted with values:", D) : s(D);
|
|
9365
9389
|
} else
|
|
9366
9390
|
fn.error("Please correct the errors in the form");
|
|
9367
9391
|
};
|
|
9368
|
-
|
|
9392
|
+
po(() => {
|
|
9369
9393
|
l(f);
|
|
9370
9394
|
}, [f, l]);
|
|
9371
9395
|
const F = {
|
|
@@ -9383,7 +9407,7 @@ const wm = ({
|
|
|
9383
9407
|
...A,
|
|
9384
9408
|
[y.fieldName]: !0
|
|
9385
9409
|
})), E({ isOpen: !1, fieldName: null });
|
|
9386
|
-
},
|
|
9410
|
+
}, M = () => {
|
|
9387
9411
|
E({ isOpen: !1, fieldName: null });
|
|
9388
9412
|
};
|
|
9389
9413
|
function Y(A, L, _) {
|
|
@@ -9393,18 +9417,18 @@ const wm = ({
|
|
|
9393
9417
|
`[fieldFormat RENDER] Error exists in state for ${L.name} but not passed in props!`
|
|
9394
9418
|
)), k.includes(L.type))
|
|
9395
9419
|
return /* @__PURE__ */ u("div", { className: L.fieldClass || "col-span-full", children: A });
|
|
9396
|
-
const
|
|
9397
|
-
const
|
|
9398
|
-
!
|
|
9420
|
+
const U = L.containerStyle, D = L.color || "blue", K = U === "card" ? `rounded-lg border text-card-foreground shadow-sm p-4 ${L.containerClassName || F[D] || F.blue}` : "", O = S[L.name] === !0, q = L.disabled === !0 && L.override === !0, te = () => {
|
|
9421
|
+
const ne = L.name;
|
|
9422
|
+
!O ? E({
|
|
9399
9423
|
isOpen: !0,
|
|
9400
|
-
fieldName:
|
|
9424
|
+
fieldName: ne
|
|
9401
9425
|
}) : C((ce) => ({
|
|
9402
9426
|
...ce,
|
|
9403
|
-
[
|
|
9427
|
+
[ne]: !1
|
|
9404
9428
|
// Lock it back (set override to false)
|
|
9405
9429
|
}));
|
|
9406
|
-
},
|
|
9407
|
-
L.label && /* @__PURE__ */
|
|
9430
|
+
}, J = /* @__PURE__ */ I(Le, { children: [
|
|
9431
|
+
L.label && /* @__PURE__ */ I(
|
|
9408
9432
|
"label",
|
|
9409
9433
|
{
|
|
9410
9434
|
htmlFor: L.name,
|
|
@@ -9412,15 +9436,15 @@ const wm = ({
|
|
|
9412
9436
|
children: [
|
|
9413
9437
|
L.label,
|
|
9414
9438
|
L.required && /* @__PURE__ */ u("span", { className: "text-red-500 ml-1", children: "*" }),
|
|
9415
|
-
|
|
9439
|
+
q && /* @__PURE__ */ u(
|
|
9416
9440
|
"button",
|
|
9417
9441
|
{
|
|
9418
9442
|
type: "button",
|
|
9419
|
-
onClick:
|
|
9443
|
+
onClick: te,
|
|
9420
9444
|
className: `ml-2 p-[0.25rem] rounded-sm transition-all duration-150
|
|
9421
|
-
${
|
|
9422
|
-
title:
|
|
9423
|
-
children:
|
|
9445
|
+
${O ? " text-gray-600 bg-gray-100" : " text-gray-600 hover:bg-gray-300"}`,
|
|
9446
|
+
title: O ? "Field is Overridden (Enabled)" : "Field is Locked (Disabled)",
|
|
9447
|
+
children: O ? /* @__PURE__ */ u(Ed, { size: 14 }) : /* @__PURE__ */ u(Nd, { size: 14 })
|
|
9424
9448
|
}
|
|
9425
9449
|
)
|
|
9426
9450
|
]
|
|
@@ -9429,16 +9453,16 @@ const wm = ({
|
|
|
9429
9453
|
/* @__PURE__ */ u("div", { children: A }),
|
|
9430
9454
|
_ && /* @__PURE__ */ u("p", { className: "text-sm text-red-500 mt-1", children: _ })
|
|
9431
9455
|
] });
|
|
9432
|
-
return /* @__PURE__ */ u("div", { className: `mb-4 ${L.fieldClass || "col-span-8"}`, children:
|
|
9456
|
+
return /* @__PURE__ */ u("div", { className: `mb-4 ${L.fieldClass || "col-span-8"}`, children: U === "card" ? /* @__PURE__ */ u("div", { className: K, children: J }) : J });
|
|
9433
9457
|
}
|
|
9434
9458
|
const R = (A) => {
|
|
9435
9459
|
if (A.showIf && !A.showIf(f)) return null;
|
|
9436
9460
|
const L = N[A.type] || Br;
|
|
9437
9461
|
if (f[A.name] === void 0) {
|
|
9438
|
-
const
|
|
9439
|
-
f[A.name] = A.value !== void 0 ? A.value :
|
|
9462
|
+
const O = A.type === "multiselect" || A.type === "checkbox" && A.options && A.options.length > 0;
|
|
9463
|
+
f[A.name] = A.value !== void 0 ? A.value : O ? [] : "";
|
|
9440
9464
|
}
|
|
9441
|
-
const _ = g[A.name] ? g[A.name] : null,
|
|
9465
|
+
const _ = g[A.name] ? g[A.name] : null, U = typeof A.disabled == "function" ? A.disabled(f) : !!A.disabled, D = S[A.name] === !0, K = U && !D;
|
|
9442
9466
|
return Y(
|
|
9443
9467
|
/* @__PURE__ */ u(
|
|
9444
9468
|
L,
|
|
@@ -9446,13 +9470,13 @@ const wm = ({
|
|
|
9446
9470
|
field: A,
|
|
9447
9471
|
formValues: f,
|
|
9448
9472
|
handleChange: j,
|
|
9449
|
-
handleBlur: () =>
|
|
9473
|
+
handleBlur: () => Z(A.name),
|
|
9450
9474
|
setCharCounts: x,
|
|
9451
9475
|
charCount: v[A.name] || 0,
|
|
9452
9476
|
api_URL: t,
|
|
9453
9477
|
error: _,
|
|
9454
9478
|
fileInputRefs: $,
|
|
9455
|
-
disabled:
|
|
9479
|
+
disabled: K
|
|
9456
9480
|
}
|
|
9457
9481
|
),
|
|
9458
9482
|
A,
|
|
@@ -9461,7 +9485,7 @@ const wm = ({
|
|
|
9461
9485
|
}, le = o?.fields?.find(
|
|
9462
9486
|
(A) => A.name === y.fieldName
|
|
9463
9487
|
)?.label || y.fieldName;
|
|
9464
|
-
return /* @__PURE__ */
|
|
9488
|
+
return /* @__PURE__ */ I(
|
|
9465
9489
|
"form",
|
|
9466
9490
|
{
|
|
9467
9491
|
onSubmit: T,
|
|
@@ -9475,20 +9499,20 @@ const wm = ({
|
|
|
9475
9499
|
children: i
|
|
9476
9500
|
}
|
|
9477
9501
|
),
|
|
9478
|
-
y.isOpen && /* @__PURE__ */
|
|
9502
|
+
y.isOpen && /* @__PURE__ */ I(Le, { children: [
|
|
9479
9503
|
/* @__PURE__ */ u(
|
|
9480
9504
|
"div",
|
|
9481
9505
|
{
|
|
9482
9506
|
className: "fixed inset-0 z-30 bg-black opacity-40",
|
|
9483
|
-
onClick:
|
|
9507
|
+
onClick: M,
|
|
9484
9508
|
tabIndex: 0,
|
|
9485
9509
|
role: "button",
|
|
9486
9510
|
onKeyDown: (A) => {
|
|
9487
|
-
(A.key === "Enter" || A.key === " ") &&
|
|
9511
|
+
(A.key === "Enter" || A.key === " ") && M();
|
|
9488
9512
|
}
|
|
9489
9513
|
}
|
|
9490
9514
|
),
|
|
9491
|
-
/* @__PURE__ */ u("div", { className: "fixed inset-0 z-50 flex items-center justify-center p-4", children: /* @__PURE__ */
|
|
9515
|
+
/* @__PURE__ */ u("div", { className: "fixed inset-0 z-50 flex items-center justify-center p-4", children: /* @__PURE__ */ I(
|
|
9492
9516
|
"div",
|
|
9493
9517
|
{
|
|
9494
9518
|
className: "bg-white rounded-xl shadow-2xl w-full max-w-sm transform transition-all",
|
|
@@ -9497,44 +9521,44 @@ const wm = ({
|
|
|
9497
9521
|
role: "dialog",
|
|
9498
9522
|
"aria-modal": "true",
|
|
9499
9523
|
onKeyDown: (A) => {
|
|
9500
|
-
A.key === "Escape" &&
|
|
9524
|
+
A.key === "Escape" && M();
|
|
9501
9525
|
},
|
|
9502
9526
|
children: [
|
|
9503
|
-
/* @__PURE__ */
|
|
9527
|
+
/* @__PURE__ */ I("div", { className: "flex justify-between items-center border-b p-4", children: [
|
|
9504
9528
|
/* @__PURE__ */ u("h3", { className: "text-xl font-bold text-gray-900", children: "Confirm Field Unlock" }),
|
|
9505
9529
|
/* @__PURE__ */ u(
|
|
9506
9530
|
"button",
|
|
9507
9531
|
{
|
|
9508
9532
|
type: "button",
|
|
9509
|
-
onClick:
|
|
9533
|
+
onClick: M,
|
|
9510
9534
|
className: "text-gray-400 hover:text-gray-600 p-1 rounded-full hover:bg-gray-100 transition",
|
|
9511
9535
|
"aria-label": "Close",
|
|
9512
9536
|
children: /* @__PURE__ */ u(Td, { size: 20 })
|
|
9513
9537
|
}
|
|
9514
9538
|
)
|
|
9515
9539
|
] }),
|
|
9516
|
-
/* @__PURE__ */
|
|
9517
|
-
/* @__PURE__ */
|
|
9540
|
+
/* @__PURE__ */ I("div", { className: "p-6 flex flex-col gap-2", children: [
|
|
9541
|
+
/* @__PURE__ */ I("p", { className: "text-gray-700 text-sm leading-relaxed ", children: [
|
|
9518
9542
|
"Are you sure you want to",
|
|
9519
9543
|
" ",
|
|
9520
|
-
/* @__PURE__ */
|
|
9544
|
+
/* @__PURE__ */ I("span", { className: "font-extrabold text-destructive", children: [
|
|
9521
9545
|
"unlock",
|
|
9522
9546
|
" "
|
|
9523
9547
|
] }),
|
|
9524
9548
|
"the field"
|
|
9525
9549
|
] }),
|
|
9526
|
-
/* @__PURE__ */
|
|
9550
|
+
/* @__PURE__ */ I("p", { className: "font-bold", children: [
|
|
9527
9551
|
'"',
|
|
9528
9552
|
le,
|
|
9529
9553
|
'"'
|
|
9530
9554
|
] }),
|
|
9531
9555
|
/* @__PURE__ */ u("div", { className: "italic text-sm text-gray-500 mb-2", children: "This action allows editing of a protected value." }),
|
|
9532
|
-
/* @__PURE__ */
|
|
9556
|
+
/* @__PURE__ */ I("div", { className: "flex justify-end gap-3 ", children: [
|
|
9533
9557
|
/* @__PURE__ */ u(
|
|
9534
9558
|
"button",
|
|
9535
9559
|
{
|
|
9536
9560
|
type: "button",
|
|
9537
|
-
onClick:
|
|
9561
|
+
onClick: M,
|
|
9538
9562
|
className: "px-4 py-2 text-sm font-medium text-gray-700 bg-gray-200 rounded-lg hover:bg-gray-300 transition",
|
|
9539
9563
|
children: "Cancel"
|
|
9540
9564
|
}
|