ynotsoft-dynamic-form 1.0.117 → 1.0.118
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 +351 -348
- package/dist/dynamic-form.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/dynamic-form.js
CHANGED
|
@@ -71,13 +71,13 @@ function gc({
|
|
|
71
71
|
}
|
|
72
72
|
);
|
|
73
73
|
}
|
|
74
|
-
const bc = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(),
|
|
74
|
+
const bc = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), yc = (e) => e.replace(
|
|
75
75
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
76
76
|
(t, n, r) => r ? r.toUpperCase() : n.toLowerCase()
|
|
77
77
|
), Do = (e) => {
|
|
78
|
-
const t =
|
|
78
|
+
const t = yc(e);
|
|
79
79
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
80
|
-
}, Ma = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim(),
|
|
80
|
+
}, Ma = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim(), vc = (e) => {
|
|
81
81
|
for (const t in e)
|
|
82
82
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
83
83
|
return !0;
|
|
@@ -113,7 +113,7 @@ const xc = _a(
|
|
|
113
113
|
stroke: e,
|
|
114
114
|
strokeWidth: r ? Number(n) * 24 / Number(t) : n,
|
|
115
115
|
className: Ma("lucide", o),
|
|
116
|
-
...!a && !
|
|
116
|
+
...!a && !vc(i) && { "aria-hidden": "true" },
|
|
117
117
|
...i
|
|
118
118
|
},
|
|
119
119
|
[
|
|
@@ -275,7 +275,7 @@ function gl({
|
|
|
275
275
|
apiClient: s,
|
|
276
276
|
...i
|
|
277
277
|
}) {
|
|
278
|
-
const c = a, u = e.selectMode !== "multiple", d = e.returnValueOnly === !0, [p, g] = ce([]), [m, b] = ce(!1), [h,
|
|
278
|
+
const c = a, u = e.selectMode !== "multiple", d = e.returnValueOnly === !0, [p, g] = ce([]), [m, b] = ce(!1), [h, y] = ce(!1), [S, E] = ce(""), [C, w] = ce(-1), [x, A] = ce({}), _ = Zt(null), O = Zt(null), $ = Zt(null), z = t[e.name], G = dr(() => z ? (Array.isArray(z) ? z : [z]).map((R) => {
|
|
279
279
|
if (R && typeof R == "object" && R.value !== void 0)
|
|
280
280
|
return { value: R.value, label: R.label || R.value };
|
|
281
281
|
const P = p.find((q) => q.value === R);
|
|
@@ -322,7 +322,7 @@ function gl({
|
|
|
322
322
|
const R = d ? T.value : { value: T.value, label: T.label };
|
|
323
323
|
let P;
|
|
324
324
|
if (u)
|
|
325
|
-
P = [R],
|
|
325
|
+
P = [R], y(!1);
|
|
326
326
|
else {
|
|
327
327
|
const q = Array.isArray(z) ? z : [];
|
|
328
328
|
P = q.some((K) => (K?.value ?? K) === T.value) ? q.filter((K) => (K?.value ?? K) !== T.value) : [...q, R];
|
|
@@ -344,19 +344,19 @@ function gl({
|
|
|
344
344
|
case "ArrowDown":
|
|
345
345
|
T.preventDefault(), h ? w(
|
|
346
346
|
(R) => R < p.length - 1 ? R + 1 : R
|
|
347
|
-
) :
|
|
347
|
+
) : y(!0);
|
|
348
348
|
break;
|
|
349
349
|
case "ArrowUp":
|
|
350
350
|
T.preventDefault(), h && w((R) => R > 0 ? R - 1 : 0);
|
|
351
351
|
break;
|
|
352
352
|
case "Enter":
|
|
353
|
-
T.preventDefault(), h && C >= 0 && p[C] ? F(p[C]) : h ||
|
|
353
|
+
T.preventDefault(), h && C >= 0 && p[C] ? F(p[C]) : h || y(!0);
|
|
354
354
|
break;
|
|
355
355
|
case "Escape":
|
|
356
|
-
|
|
356
|
+
y(!1);
|
|
357
357
|
break;
|
|
358
358
|
case "Tab":
|
|
359
|
-
|
|
359
|
+
y(!1), r(e.name);
|
|
360
360
|
break;
|
|
361
361
|
}
|
|
362
362
|
}, k = (T) => {
|
|
@@ -373,7 +373,7 @@ function gl({
|
|
|
373
373
|
}, [h, M, S]), Ie(() => {
|
|
374
374
|
if (!h) return;
|
|
375
375
|
const T = (R) => {
|
|
376
|
-
_.current && !_.current.contains(R.target) && (
|
|
376
|
+
_.current && !_.current.contains(R.target) && (y(!1), r(e.name));
|
|
377
377
|
};
|
|
378
378
|
return document.addEventListener("mousedown", T), () => document.removeEventListener("mousedown", T);
|
|
379
379
|
}, [h, e.name, r]);
|
|
@@ -396,7 +396,7 @@ function gl({
|
|
|
396
396
|
"aria-haspopup": "listbox",
|
|
397
397
|
"aria-controls": `${e.name}-listbox`,
|
|
398
398
|
tabIndex: c ? -1 : 0,
|
|
399
|
-
onClick: () => !c &&
|
|
399
|
+
onClick: () => !c && y(!h),
|
|
400
400
|
onKeyDown: N,
|
|
401
401
|
className: `
|
|
402
402
|
w-full min-h-10 px-2 py-1 border rounded-lg bg-background cursor-pointer
|
|
@@ -508,14 +508,14 @@ function ee(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
|
508
508
|
return t?.(o);
|
|
509
509
|
};
|
|
510
510
|
}
|
|
511
|
-
function
|
|
511
|
+
function vt(e, t = []) {
|
|
512
512
|
let n = [];
|
|
513
513
|
function r(a, s) {
|
|
514
514
|
const i = f.createContext(s), c = n.length;
|
|
515
515
|
n = [...n, s];
|
|
516
516
|
const u = (p) => {
|
|
517
|
-
const { scope: g, children: m, ...b } = p, h = g?.[e]?.[c] || i,
|
|
518
|
-
return /* @__PURE__ */ l(h.Provider, { value:
|
|
517
|
+
const { scope: g, children: m, ...b } = p, h = g?.[e]?.[c] || i, y = f.useMemo(() => b, Object.values(b));
|
|
518
|
+
return /* @__PURE__ */ l(h.Provider, { value: y, children: m });
|
|
519
519
|
};
|
|
520
520
|
u.displayName = a + "Provider";
|
|
521
521
|
function d(p, g) {
|
|
@@ -582,7 +582,7 @@ function de(...e) {
|
|
|
582
582
|
}
|
|
583
583
|
// @__NO_SIDE_EFFECTS__
|
|
584
584
|
function Ee(e) {
|
|
585
|
-
const t = /* @__PURE__ */
|
|
585
|
+
const t = /* @__PURE__ */ yl(e), n = f.forwardRef((r, o) => {
|
|
586
586
|
const { children: a, ...s } = r, i = f.Children.toArray(a), c = i.find(wl);
|
|
587
587
|
if (c) {
|
|
588
588
|
const u = c.props.children, d = i.map((p) => p === c ? f.Children.count(u) > 1 ? f.Children.only(null) : f.isValidElement(u) ? u.props.children : null : p);
|
|
@@ -593,7 +593,7 @@ function Ee(e) {
|
|
|
593
593
|
return n.displayName = `${e}.Slot`, n;
|
|
594
594
|
}
|
|
595
595
|
// @__NO_SIDE_EFFECTS__
|
|
596
|
-
function
|
|
596
|
+
function yl(e) {
|
|
597
597
|
const t = f.forwardRef((n, r) => {
|
|
598
598
|
const { children: o, ...a } = n;
|
|
599
599
|
if (f.isValidElement(o)) {
|
|
@@ -604,9 +604,9 @@ function vl(e) {
|
|
|
604
604
|
});
|
|
605
605
|
return t.displayName = `${e}.SlotClone`, t;
|
|
606
606
|
}
|
|
607
|
-
var
|
|
607
|
+
var vl = /* @__PURE__ */ Symbol("radix.slottable");
|
|
608
608
|
function wl(e) {
|
|
609
|
-
return f.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
609
|
+
return f.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === vl;
|
|
610
610
|
}
|
|
611
611
|
function xl(e, t) {
|
|
612
612
|
const n = { ...t };
|
|
@@ -624,24 +624,24 @@ function Sl(e) {
|
|
|
624
624
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
625
625
|
}
|
|
626
626
|
function La(e) {
|
|
627
|
-
const t = e + "CollectionProvider", [n, r] =
|
|
627
|
+
const t = e + "CollectionProvider", [n, r] = vt(t), [o, a] = n(
|
|
628
628
|
t,
|
|
629
629
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
630
630
|
), s = (h) => {
|
|
631
|
-
const { scope:
|
|
632
|
-
return /* @__PURE__ */ l(o, { scope:
|
|
631
|
+
const { scope: y, children: S } = h, E = Re.useRef(null), C = Re.useRef(/* @__PURE__ */ new Map()).current;
|
|
632
|
+
return /* @__PURE__ */ l(o, { scope: y, itemMap: C, collectionRef: E, children: S });
|
|
633
633
|
};
|
|
634
634
|
s.displayName = t;
|
|
635
635
|
const i = e + "CollectionSlot", c = /* @__PURE__ */ Ee(i), u = Re.forwardRef(
|
|
636
|
-
(h,
|
|
637
|
-
const { scope: S, children: E } = h, C = a(i, S), w = de(
|
|
636
|
+
(h, y) => {
|
|
637
|
+
const { scope: S, children: E } = h, C = a(i, S), w = de(y, C.collectionRef);
|
|
638
638
|
return /* @__PURE__ */ l(c, { ref: w, children: E });
|
|
639
639
|
}
|
|
640
640
|
);
|
|
641
641
|
u.displayName = i;
|
|
642
642
|
const d = e + "CollectionItemSlot", p = "data-radix-collection-item", g = /* @__PURE__ */ Ee(d), m = Re.forwardRef(
|
|
643
|
-
(h,
|
|
644
|
-
const { scope: S, children: E, ...C } = h, w = Re.useRef(null), x = de(
|
|
643
|
+
(h, y) => {
|
|
644
|
+
const { scope: S, children: E, ...C } = h, w = Re.useRef(null), x = de(y, w), A = a(d, S);
|
|
645
645
|
return Re.useEffect(() => (A.itemMap.set(w, { ref: w, ...C }), () => {
|
|
646
646
|
A.itemMap.delete(w);
|
|
647
647
|
})), /* @__PURE__ */ l(g, { [p]: "", ref: x, children: E });
|
|
@@ -649,15 +649,15 @@ function La(e) {
|
|
|
649
649
|
);
|
|
650
650
|
m.displayName = d;
|
|
651
651
|
function b(h) {
|
|
652
|
-
const
|
|
652
|
+
const y = a(e + "CollectionConsumer", h);
|
|
653
653
|
return Re.useCallback(() => {
|
|
654
|
-
const E =
|
|
654
|
+
const E = y.collectionRef.current;
|
|
655
655
|
if (!E) return [];
|
|
656
656
|
const C = Array.from(E.querySelectorAll(`[${p}]`));
|
|
657
|
-
return Array.from(
|
|
657
|
+
return Array.from(y.itemMap.values()).sort(
|
|
658
658
|
(A, _) => C.indexOf(A.ref.current) - C.indexOf(_.ref.current)
|
|
659
659
|
);
|
|
660
|
-
}, [
|
|
660
|
+
}, [y.collectionRef, y.itemMap]);
|
|
661
661
|
}
|
|
662
662
|
return [
|
|
663
663
|
{ Provider: s, Slot: u, ItemSlot: m },
|
|
@@ -727,7 +727,7 @@ var Al = "DismissableLayer", Mr = "dismissableLayer.update", Tl = "dismissableLa
|
|
|
727
727
|
onInteractOutside: s,
|
|
728
728
|
onDismiss: i,
|
|
729
729
|
...c
|
|
730
|
-
} = e, u = f.useContext($a), [d, p] = f.useState(null), g = d?.ownerDocument ?? globalThis?.document, [, m] = f.useState({}), b = de(t, (_) => p(_)), h = Array.from(u.layers), [
|
|
730
|
+
} = e, u = f.useContext($a), [d, p] = f.useState(null), g = d?.ownerDocument ?? globalThis?.document, [, m] = f.useState({}), b = de(t, (_) => p(_)), h = Array.from(u.layers), [y] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), S = h.indexOf(y), E = d ? h.indexOf(d) : -1, C = u.layersWithOutsidePointerEventsDisabled.size > 0, w = E >= S, x = _l((_) => {
|
|
731
731
|
const O = _.target, $ = [...u.branches].some((z) => z.contains(O));
|
|
732
732
|
!w || $ || (o?.(_), s?.(_), _.defaultPrevented || i?.());
|
|
733
733
|
}, g), A = Ml((_) => {
|
|
@@ -888,7 +888,7 @@ var Dl = [
|
|
|
888
888
|
if (m.paused || !i) return;
|
|
889
889
|
const w = C.target;
|
|
890
890
|
i.contains(w) ? p.current = w : tt(p.current, { select: !0 });
|
|
891
|
-
},
|
|
891
|
+
}, y = function(C) {
|
|
892
892
|
if (m.paused || !i) return;
|
|
893
893
|
const w = C.relatedTarget;
|
|
894
894
|
w !== null && (i.contains(w) || tt(p.current, { select: !0 }));
|
|
@@ -897,10 +897,10 @@ var Dl = [
|
|
|
897
897
|
for (const x of C)
|
|
898
898
|
x.removedNodes.length > 0 && tt(i);
|
|
899
899
|
};
|
|
900
|
-
document.addEventListener("focusin", h), document.addEventListener("focusout",
|
|
900
|
+
document.addEventListener("focusin", h), document.addEventListener("focusout", y);
|
|
901
901
|
const E = new MutationObserver(S);
|
|
902
902
|
return i && E.observe(i, { childList: !0, subtree: !0 }), () => {
|
|
903
|
-
document.removeEventListener("focusin", h), document.removeEventListener("focusout",
|
|
903
|
+
document.removeEventListener("focusin", h), document.removeEventListener("focusout", y), E.disconnect();
|
|
904
904
|
};
|
|
905
905
|
}
|
|
906
906
|
}, [r, i, m.paused]), f.useEffect(() => {
|
|
@@ -922,8 +922,8 @@ var Dl = [
|
|
|
922
922
|
const b = f.useCallback(
|
|
923
923
|
(h) => {
|
|
924
924
|
if (!n && !r || m.paused) return;
|
|
925
|
-
const
|
|
926
|
-
if (
|
|
925
|
+
const y = h.key === "Tab" && !h.altKey && !h.ctrlKey && !h.metaKey, S = document.activeElement;
|
|
926
|
+
if (y && S) {
|
|
927
927
|
const E = h.currentTarget, [C, w] = $l(E);
|
|
928
928
|
C && w ? !h.shiftKey && S === w ? (h.preventDefault(), n && tt(C, { select: !0 })) : h.shiftKey && S === C && (h.preventDefault(), n && tt(w, { select: !0 })) : S === E && h.preventDefault();
|
|
929
929
|
}
|
|
@@ -994,12 +994,12 @@ function Uo(e, t) {
|
|
|
994
994
|
function Bl(e) {
|
|
995
995
|
return e.filter((t) => t.tagName !== "A");
|
|
996
996
|
}
|
|
997
|
-
var
|
|
997
|
+
var ve = globalThis?.document ? f.useLayoutEffect : () => {
|
|
998
998
|
}, Ul = f[" useId ".trim().toString()] || (() => {
|
|
999
999
|
}), Vl = 0;
|
|
1000
1000
|
function nn(e) {
|
|
1001
1001
|
const [t, n] = f.useState(Ul());
|
|
1002
|
-
return
|
|
1002
|
+
return ve(() => {
|
|
1003
1003
|
n((r) => r ?? String(Vl++));
|
|
1004
1004
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
1005
1005
|
}
|
|
@@ -1171,8 +1171,8 @@ async function eu(e, t) {
|
|
|
1171
1171
|
elementContext: p = "floating",
|
|
1172
1172
|
altBoundary: g = !1,
|
|
1173
1173
|
padding: m = 0
|
|
1174
|
-
} = qe(t, e), b = Ba(m),
|
|
1175
|
-
element: (n = await (a.isElement == null ? void 0 : a.isElement(
|
|
1174
|
+
} = qe(t, e), b = Ba(m), y = i[g ? p === "floating" ? "reference" : "floating" : p], S = Rn(await a.getClippingRect({
|
|
1175
|
+
element: (n = await (a.isElement == null ? void 0 : a.isElement(y))) == null || n ? y : y.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(i.floating)),
|
|
1176
1176
|
boundary: u,
|
|
1177
1177
|
rootBoundary: d,
|
|
1178
1178
|
strategy: c
|
|
@@ -1220,13 +1220,13 @@ const tu = 50, nu = async (e, t, n) => {
|
|
|
1220
1220
|
} = Go(u, r, c), g = r, m = 0;
|
|
1221
1221
|
const b = {};
|
|
1222
1222
|
for (let h = 0; h < a.length; h++) {
|
|
1223
|
-
const
|
|
1224
|
-
if (!
|
|
1223
|
+
const y = a[h];
|
|
1224
|
+
if (!y)
|
|
1225
1225
|
continue;
|
|
1226
1226
|
const {
|
|
1227
1227
|
name: S,
|
|
1228
1228
|
fn: E
|
|
1229
|
-
} =
|
|
1229
|
+
} = y, {
|
|
1230
1230
|
x: C,
|
|
1231
1231
|
y: w,
|
|
1232
1232
|
data: x,
|
|
@@ -1285,7 +1285,7 @@ const tu = 50, nu = async (e, t, n) => {
|
|
|
1285
1285
|
const p = Ba(d), g = {
|
|
1286
1286
|
x: n,
|
|
1287
1287
|
y: r
|
|
1288
|
-
}, m = no(o), b = to(m), h = await s.getDimensions(u),
|
|
1288
|
+
}, m = no(o), b = to(m), h = await s.getDimensions(u), y = m === "y", S = y ? "top" : "left", E = y ? "bottom" : "right", C = y ? "clientHeight" : "clientWidth", w = a.reference[b] + a.reference[m] - g[m] - a.floating[b], x = g[m] - a.reference[m], A = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
|
|
1289
1289
|
let _ = A ? A[C] : 0;
|
|
1290
1290
|
(!_ || !await (s.isElement == null ? void 0 : s.isElement(A))) && (_ = i.floating[C] || a.floating[b]);
|
|
1291
1291
|
const O = w / 2 - x / 2, $ = _ / 2 - h[b] / 2 - 1, z = rt(p[S], $), B = rt(p[E], $), G = z, M = _ - h[b] - B, F = _ / 2 - h[b] / 2 + O, N = Dr(G, F, M), k = !c.arrow && Lt(o) != null && F !== N && a.reference[b] / 2 - (F < G ? z : B) - h[b] / 2 < 0, D = k ? F < G ? F - G : F - M : 0;
|
|
@@ -1321,13 +1321,13 @@ const tu = 50, nu = async (e, t, n) => {
|
|
|
1321
1321
|
fallbackStrategy: m = "bestFit",
|
|
1322
1322
|
fallbackAxisSideDirection: b = "none",
|
|
1323
1323
|
flipAlignment: h = !0,
|
|
1324
|
-
...
|
|
1324
|
+
...y
|
|
1325
1325
|
} = qe(e, t);
|
|
1326
1326
|
if ((n = a.arrow) != null && n.alignmentOffset)
|
|
1327
1327
|
return {};
|
|
1328
1328
|
const S = Ke(o), E = Ue(i), C = Ke(i) === i, w = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), x = g || (C || !h ? [Tn(i)] : ql(i)), A = b !== "none";
|
|
1329
1329
|
!g && A && x.push(...Zl(i, h, b, w));
|
|
1330
|
-
const _ = [i, ...x], O = await c.detectOverflow(t,
|
|
1330
|
+
const _ = [i, ...x], O = await c.detectOverflow(t, y), $ = [];
|
|
1331
1331
|
let z = ((r = a.flip) == null ? void 0 : r.overflows) || [];
|
|
1332
1332
|
if (d && $.push(O[S]), p) {
|
|
1333
1333
|
const F = Yl(o, s, w);
|
|
@@ -1525,16 +1525,16 @@ const iu = function(e) {
|
|
|
1525
1525
|
const S = g === "y" ? "top" : "left", E = g === "y" ? "bottom" : "right", C = h + p[S], w = h - p[E];
|
|
1526
1526
|
h = Dr(C, h, w);
|
|
1527
1527
|
}
|
|
1528
|
-
const
|
|
1528
|
+
const y = c.fn({
|
|
1529
1529
|
...t,
|
|
1530
1530
|
[m]: b,
|
|
1531
1531
|
[g]: h
|
|
1532
1532
|
});
|
|
1533
1533
|
return {
|
|
1534
|
-
...
|
|
1534
|
+
...y,
|
|
1535
1535
|
data: {
|
|
1536
|
-
x:
|
|
1537
|
-
y:
|
|
1536
|
+
x: y.x - n,
|
|
1537
|
+
y: y.y - r,
|
|
1538
1538
|
enabled: {
|
|
1539
1539
|
[m]: s,
|
|
1540
1540
|
[g]: i
|
|
@@ -1562,7 +1562,7 @@ const iu = function(e) {
|
|
|
1562
1562
|
y: r
|
|
1563
1563
|
}, p = Ue(o), g = eo(p);
|
|
1564
1564
|
let m = d[g], b = d[p];
|
|
1565
|
-
const h = qe(i, t),
|
|
1565
|
+
const h = qe(i, t), y = typeof h == "number" ? {
|
|
1566
1566
|
mainAxis: h,
|
|
1567
1567
|
crossAxis: 0
|
|
1568
1568
|
} : {
|
|
@@ -1571,12 +1571,12 @@ const iu = function(e) {
|
|
|
1571
1571
|
...h
|
|
1572
1572
|
};
|
|
1573
1573
|
if (c) {
|
|
1574
|
-
const C = g === "y" ? "height" : "width", w = a.reference[g] - a.floating[C] +
|
|
1574
|
+
const C = g === "y" ? "height" : "width", w = a.reference[g] - a.floating[C] + y.mainAxis, x = a.reference[g] + a.reference[C] - y.mainAxis;
|
|
1575
1575
|
m < w ? m = w : m > x && (m = x);
|
|
1576
1576
|
}
|
|
1577
1577
|
if (u) {
|
|
1578
1578
|
var S, E;
|
|
1579
|
-
const C = g === "y" ? "width" : "height", w = Ua.has(Ke(o)), x = a.reference[p] - a.floating[C] + (w && ((S = s.offset) == null ? void 0 : S[p]) || 0) + (w ? 0 :
|
|
1579
|
+
const C = g === "y" ? "width" : "height", w = Ua.has(Ke(o)), x = a.reference[p] - a.floating[C] + (w && ((S = s.offset) == null ? void 0 : S[p]) || 0) + (w ? 0 : y.crossAxis), A = a.reference[p] + a.reference[C] + (w ? 0 : ((E = s.offset) == null ? void 0 : E[p]) || 0) - (w ? y.crossAxis : 0);
|
|
1580
1580
|
b < x ? b = x : b > A && (b = A);
|
|
1581
1581
|
}
|
|
1582
1582
|
return {
|
|
@@ -1604,9 +1604,9 @@ const iu = function(e) {
|
|
|
1604
1604
|
width: b,
|
|
1605
1605
|
height: h
|
|
1606
1606
|
} = a.floating;
|
|
1607
|
-
let
|
|
1608
|
-
p === "top" || p === "bottom" ? (
|
|
1609
|
-
const E = h - d.top - d.bottom, C = b - d.left - d.right, w = rt(h - d[
|
|
1607
|
+
let y, S;
|
|
1608
|
+
p === "top" || p === "bottom" ? (y = p, S = g === (await (s.isRTL == null ? void 0 : s.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (S = p, y = g === "end" ? "top" : "bottom");
|
|
1609
|
+
const E = h - d.top - d.bottom, C = b - d.left - d.right, w = rt(h - d[y], E), x = rt(b - d[S], C), A = !t.middlewareData.shift;
|
|
1610
1610
|
let _ = w, O = x;
|
|
1611
1611
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (O = C), (r = t.middlewareData.shift) != null && r.enabled.y && (_ = E), A && !g) {
|
|
1612
1612
|
const z = ke(d.left, 0), B = ke(d.right, 0), G = ke(d.top, 0), M = ke(d.bottom, 0);
|
|
@@ -1790,8 +1790,8 @@ function gt(e, t, n, r) {
|
|
|
1790
1790
|
const g = Ae(a), m = r && Le(r) ? Ae(r) : r;
|
|
1791
1791
|
let b = g, h = Lr(b);
|
|
1792
1792
|
for (; h && r && m !== b; ) {
|
|
1793
|
-
const
|
|
1794
|
-
c *=
|
|
1793
|
+
const y = Ot(h), S = h.getBoundingClientRect(), E = Fe(h), C = S.left + (h.clientLeft + parseFloat(E.paddingLeft)) * y.x, w = S.top + (h.clientTop + parseFloat(E.paddingTop)) * y.y;
|
|
1794
|
+
c *= y.x, u *= y.y, d *= y.x, p *= y.y, c += C, u += w, b = Ae(h), h = Lr(b);
|
|
1795
1795
|
}
|
|
1796
1796
|
}
|
|
1797
1797
|
return Rn({
|
|
@@ -1839,10 +1839,10 @@ function bu(e) {
|
|
|
1839
1839
|
y: n.y * u.y - c.scrollTop * u.y + d.y + g.y
|
|
1840
1840
|
};
|
|
1841
1841
|
}
|
|
1842
|
-
function
|
|
1842
|
+
function yu(e) {
|
|
1843
1843
|
return Array.from(e.getClientRects());
|
|
1844
1844
|
}
|
|
1845
|
-
function
|
|
1845
|
+
function vu(e) {
|
|
1846
1846
|
const t = je(e), n = Wn(e), r = e.ownerDocument.body, o = ke(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = ke(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
1847
1847
|
let s = -n.scrollLeft + Hn(e);
|
|
1848
1848
|
const i = -n.scrollTop;
|
|
@@ -1888,7 +1888,7 @@ function Qo(e, t, n) {
|
|
|
1888
1888
|
if (t === "viewport")
|
|
1889
1889
|
r = wu(e, n);
|
|
1890
1890
|
else if (t === "document")
|
|
1891
|
-
r =
|
|
1891
|
+
r = vu(je(e));
|
|
1892
1892
|
else if (Le(t))
|
|
1893
1893
|
r = xu(t, n);
|
|
1894
1894
|
else {
|
|
@@ -2023,7 +2023,7 @@ const Tu = {
|
|
|
2023
2023
|
getClippingRect: Cu,
|
|
2024
2024
|
getOffsetParent: Xa,
|
|
2025
2025
|
getElementRects: ku,
|
|
2026
|
-
getClientRects:
|
|
2026
|
+
getClientRects: yu,
|
|
2027
2027
|
getDimensions: Eu,
|
|
2028
2028
|
getScale: Ot,
|
|
2029
2029
|
isElement: Le,
|
|
@@ -2049,8 +2049,8 @@ function Ru(e, t) {
|
|
|
2049
2049
|
} = u;
|
|
2050
2050
|
if (i || t(), !g || !m)
|
|
2051
2051
|
return;
|
|
2052
|
-
const b = mn(p), h = mn(o.clientWidth - (d + g)),
|
|
2053
|
-
rootMargin: -b + "px " + -h + "px " + -
|
|
2052
|
+
const b = mn(p), h = mn(o.clientWidth - (d + g)), y = mn(o.clientHeight - (p + m)), S = mn(d), C = {
|
|
2053
|
+
rootMargin: -b + "px " + -h + "px " + -y + "px " + -S + "px",
|
|
2054
2054
|
threshold: ke(0, rt(1, c)) || 1
|
|
2055
2055
|
};
|
|
2056
2056
|
let w = !0;
|
|
@@ -2102,10 +2102,10 @@ function Pu(e, t, n, r) {
|
|
|
2102
2102
|
})), n();
|
|
2103
2103
|
}), u && !c && m.observe(u), t && m.observe(t));
|
|
2104
2104
|
let b, h = c ? gt(e) : null;
|
|
2105
|
-
c &&
|
|
2106
|
-
function
|
|
2105
|
+
c && y();
|
|
2106
|
+
function y() {
|
|
2107
2107
|
const S = gt(e);
|
|
2108
|
-
h && !Qa(h, S) && n(), h = S, b = requestAnimationFrame(
|
|
2108
|
+
h && !Qa(h, S) && n(), h = S, b = requestAnimationFrame(y);
|
|
2109
2109
|
}
|
|
2110
2110
|
return n(), () => {
|
|
2111
2111
|
var S;
|
|
@@ -2195,11 +2195,11 @@ function Wu(e) {
|
|
|
2195
2195
|
isPositioned: !1
|
|
2196
2196
|
}), [g, m] = f.useState(r);
|
|
2197
2197
|
Pn(g, r) || m(r);
|
|
2198
|
-
const [b, h] = f.useState(null), [
|
|
2198
|
+
const [b, h] = f.useState(null), [y, S] = f.useState(null), E = f.useCallback((T) => {
|
|
2199
2199
|
T !== A.current && (A.current = T, h(T));
|
|
2200
2200
|
}, []), C = f.useCallback((T) => {
|
|
2201
2201
|
T !== _.current && (_.current = T, S(T));
|
|
2202
|
-
}, []), w = a || b, x = s ||
|
|
2202
|
+
}, []), w = a || b, x = s || y, A = f.useRef(null), _ = f.useRef(null), O = f.useRef(d), $ = c != null, z = br(c), B = br(o), G = br(u), M = f.useCallback(() => {
|
|
2203
2203
|
if (!A.current || !_.current)
|
|
2204
2204
|
return;
|
|
2205
2205
|
const T = {
|
|
@@ -2408,7 +2408,7 @@ var Zu = Ja, Ju = [
|
|
|
2408
2408
|
}, {});
|
|
2409
2409
|
function ts(e) {
|
|
2410
2410
|
const [t, n] = f.useState(void 0);
|
|
2411
|
-
return
|
|
2411
|
+
return ve(() => {
|
|
2412
2412
|
if (e) {
|
|
2413
2413
|
n({ width: e.offsetWidth, height: e.offsetHeight });
|
|
2414
2414
|
const r = new ResizeObserver((o) => {
|
|
@@ -2428,7 +2428,7 @@ function ts(e) {
|
|
|
2428
2428
|
n(void 0);
|
|
2429
2429
|
}, [e]), t;
|
|
2430
2430
|
}
|
|
2431
|
-
var so = "Popper", [ns, Bn] =
|
|
2431
|
+
var so = "Popper", [ns, Bn] = vt(so), [ed, rs] = ns(so), os = (e) => {
|
|
2432
2432
|
const { __scopePopper: t, children: n } = e, [r, o] = f.useState(null);
|
|
2433
2433
|
return /* @__PURE__ */ l(ed, { scope: t, anchor: r, onAnchorChange: o, children: n });
|
|
2434
2434
|
};
|
|
@@ -2460,7 +2460,7 @@ var io = "PopperContent", [td, nd] = ns(io), is = f.forwardRef(
|
|
|
2460
2460
|
updatePositionStrategy: m = "optimized",
|
|
2461
2461
|
onPlaced: b,
|
|
2462
2462
|
...h
|
|
2463
|
-
} = e,
|
|
2463
|
+
} = e, y = rs(io, n), [S, E] = f.useState(null), C = de(t, (V) => E(V)), [w, x] = f.useState(null), A = ts(w), _ = A?.width ?? 0, O = A?.height ?? 0, $ = r + (a !== "center" ? "-" + a : ""), z = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, B = Array.isArray(u) ? u : [u], G = B.length > 0, M = {
|
|
2464
2464
|
padding: z,
|
|
2465
2465
|
boundary: B.filter(od),
|
|
2466
2466
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -2473,7 +2473,7 @@ var io = "PopperContent", [td, nd] = ns(io), is = f.forwardRef(
|
|
|
2473
2473
|
animationFrame: m === "always"
|
|
2474
2474
|
}),
|
|
2475
2475
|
elements: {
|
|
2476
|
-
reference:
|
|
2476
|
+
reference: y.anchor
|
|
2477
2477
|
},
|
|
2478
2478
|
middleware: [
|
|
2479
2479
|
Bu({ mainAxis: o + O, alignmentAxis: s }),
|
|
@@ -2496,11 +2496,11 @@ var io = "PopperContent", [td, nd] = ns(io), is = f.forwardRef(
|
|
|
2496
2496
|
g && Yu({ strategy: "referenceHidden", ...M })
|
|
2497
2497
|
]
|
|
2498
2498
|
}), [R, P] = us(k), q = nt(b);
|
|
2499
|
-
|
|
2499
|
+
ve(() => {
|
|
2500
2500
|
D && q?.();
|
|
2501
2501
|
}, [D, q]);
|
|
2502
2502
|
const te = T.arrow?.x, K = T.arrow?.y, ge = T.arrow?.centerOffset !== 0, [Y, oe] = f.useState();
|
|
2503
|
-
return
|
|
2503
|
+
return ve(() => {
|
|
2504
2504
|
S && oe(window.getComputedStyle(S).zIndex);
|
|
2505
2505
|
}, [S]), /* @__PURE__ */ l(
|
|
2506
2506
|
"div",
|
|
@@ -2650,7 +2650,7 @@ var ds = os, co = ss, fs = is, ms = ls, sd = [
|
|
|
2650
2650
|
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
2651
2651
|
}, {}), cd = "Portal", lo = f.forwardRef((e, t) => {
|
|
2652
2652
|
const { container: n, ...r } = e, [o, a] = f.useState(!1);
|
|
2653
|
-
|
|
2653
|
+
ve(() => a(!0), []);
|
|
2654
2654
|
const s = n || o && globalThis?.document?.body;
|
|
2655
2655
|
return s ? uc.createPortal(/* @__PURE__ */ l(id.div, { ...r, ref: t }), s) : null;
|
|
2656
2656
|
});
|
|
@@ -2679,7 +2679,7 @@ var ld = [
|
|
|
2679
2679
|
return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ l(c, { ...i, ref: a });
|
|
2680
2680
|
});
|
|
2681
2681
|
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
2682
|
-
}, {}), ud = f[" useInsertionEffect ".trim().toString()] ||
|
|
2682
|
+
}, {}), ud = f[" useInsertionEffect ".trim().toString()] || ve;
|
|
2683
2683
|
function en({
|
|
2684
2684
|
prop: e,
|
|
2685
2685
|
defaultProp: t,
|
|
@@ -2782,9 +2782,9 @@ var bd = function(e) {
|
|
|
2782
2782
|
return null;
|
|
2783
2783
|
var t = Array.isArray(e) ? e[0] : e;
|
|
2784
2784
|
return t.ownerDocument.body;
|
|
2785
|
-
}, kt = /* @__PURE__ */ new WeakMap(), pn = /* @__PURE__ */ new WeakMap(), hn = {},
|
|
2785
|
+
}, kt = /* @__PURE__ */ new WeakMap(), pn = /* @__PURE__ */ new WeakMap(), hn = {}, yr = 0, gs = function(e) {
|
|
2786
2786
|
return e && (e.host || gs(e.parentNode));
|
|
2787
|
-
},
|
|
2787
|
+
}, yd = function(e, t) {
|
|
2788
2788
|
return t.map(function(n) {
|
|
2789
2789
|
if (e.contains(n))
|
|
2790
2790
|
return n;
|
|
@@ -2793,8 +2793,8 @@ var bd = function(e) {
|
|
|
2793
2793
|
}).filter(function(n) {
|
|
2794
2794
|
return !!n;
|
|
2795
2795
|
});
|
|
2796
|
-
},
|
|
2797
|
-
var o =
|
|
2796
|
+
}, vd = function(e, t, n, r) {
|
|
2797
|
+
var o = yd(t, Array.isArray(e) ? e : [e]);
|
|
2798
2798
|
hn[n] || (hn[n] = /* @__PURE__ */ new WeakMap());
|
|
2799
2799
|
var a = hn[n], s = [], i = /* @__PURE__ */ new Set(), c = new Set(o), u = function(p) {
|
|
2800
2800
|
!p || i.has(p) || (i.add(p), u(p.parentNode));
|
|
@@ -2806,23 +2806,23 @@ var bd = function(e) {
|
|
|
2806
2806
|
d(g);
|
|
2807
2807
|
else
|
|
2808
2808
|
try {
|
|
2809
|
-
var m = g.getAttribute(r), b = m !== null && m !== "false", h = (kt.get(g) || 0) + 1,
|
|
2810
|
-
kt.set(g, h), a.set(g,
|
|
2809
|
+
var m = g.getAttribute(r), b = m !== null && m !== "false", h = (kt.get(g) || 0) + 1, y = (a.get(g) || 0) + 1;
|
|
2810
|
+
kt.set(g, h), a.set(g, y), s.push(g), h === 1 && b && pn.set(g, !0), y === 1 && g.setAttribute(n, "true"), b || g.setAttribute(r, "true");
|
|
2811
2811
|
} catch (S) {
|
|
2812
2812
|
console.error("aria-hidden: cannot operate on ", g, S);
|
|
2813
2813
|
}
|
|
2814
2814
|
});
|
|
2815
2815
|
};
|
|
2816
|
-
return d(t), i.clear(),
|
|
2816
|
+
return d(t), i.clear(), yr++, function() {
|
|
2817
2817
|
s.forEach(function(p) {
|
|
2818
2818
|
var g = kt.get(p) - 1, m = a.get(p) - 1;
|
|
2819
2819
|
kt.set(p, g), a.set(p, m), g || (pn.has(p) || p.removeAttribute(r), pn.delete(p)), m || p.removeAttribute(n);
|
|
2820
|
-
}),
|
|
2820
|
+
}), yr--, yr || (kt = /* @__PURE__ */ new WeakMap(), kt = /* @__PURE__ */ new WeakMap(), pn = /* @__PURE__ */ new WeakMap(), hn = {});
|
|
2821
2821
|
};
|
|
2822
2822
|
}, bs = function(e, t, n) {
|
|
2823
2823
|
n === void 0 && (n = "data-aria-hidden");
|
|
2824
2824
|
var r = Array.from(Array.isArray(e) ? e : [e]), o = bd(e);
|
|
2825
|
-
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))),
|
|
2825
|
+
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), vd(r, o, n, "aria-hidden")) : function() {
|
|
2826
2826
|
return null;
|
|
2827
2827
|
};
|
|
2828
2828
|
}, Be = function() {
|
|
@@ -2834,7 +2834,7 @@ var bd = function(e) {
|
|
|
2834
2834
|
return t;
|
|
2835
2835
|
}, Be.apply(this, arguments);
|
|
2836
2836
|
};
|
|
2837
|
-
function
|
|
2837
|
+
function ys(e, t) {
|
|
2838
2838
|
var n = {};
|
|
2839
2839
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
2840
2840
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -2848,7 +2848,7 @@ function wd(e, t, n) {
|
|
|
2848
2848
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
2849
2849
|
}
|
|
2850
2850
|
var Cn = "right-scroll-bar-position", En = "width-before-scroll-bar", xd = "with-scroll-bars-hidden", Sd = "--removed-body-scroll-bar-size";
|
|
2851
|
-
function
|
|
2851
|
+
function vr(e, t) {
|
|
2852
2852
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
2853
2853
|
}
|
|
2854
2854
|
function Cd(e, t) {
|
|
@@ -2876,7 +2876,7 @@ var Ed = typeof window < "u" ? f.useLayoutEffect : f.useEffect, ta = /* @__PURE_
|
|
|
2876
2876
|
function Nd(e, t) {
|
|
2877
2877
|
var n = Cd(null, function(r) {
|
|
2878
2878
|
return e.forEach(function(o) {
|
|
2879
|
-
return
|
|
2879
|
+
return vr(o, r);
|
|
2880
2880
|
});
|
|
2881
2881
|
});
|
|
2882
2882
|
return Ed(function() {
|
|
@@ -2884,9 +2884,9 @@ function Nd(e, t) {
|
|
|
2884
2884
|
if (r) {
|
|
2885
2885
|
var o = new Set(r), a = new Set(e), s = n.current;
|
|
2886
2886
|
o.forEach(function(i) {
|
|
2887
|
-
a.has(i) ||
|
|
2887
|
+
a.has(i) || vr(i, null);
|
|
2888
2888
|
}), a.forEach(function(i) {
|
|
2889
|
-
o.has(i) ||
|
|
2889
|
+
o.has(i) || vr(i, s);
|
|
2890
2890
|
});
|
|
2891
2891
|
}
|
|
2892
2892
|
ta.set(n, e);
|
|
@@ -2955,8 +2955,8 @@ function Td(e) {
|
|
|
2955
2955
|
var t = Ad(null);
|
|
2956
2956
|
return t.options = Be({ async: !0, ssr: !1 }, e), t;
|
|
2957
2957
|
}
|
|
2958
|
-
var
|
|
2959
|
-
var t = e.sideCar, n =
|
|
2958
|
+
var vs = function(e) {
|
|
2959
|
+
var t = e.sideCar, n = ys(e, ["sideCar"]);
|
|
2960
2960
|
if (!t)
|
|
2961
2961
|
throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
2962
2962
|
var r = t.read();
|
|
@@ -2964,9 +2964,9 @@ var ys = function(e) {
|
|
|
2964
2964
|
throw new Error("Sidecar medium not found");
|
|
2965
2965
|
return f.createElement(r, Be({}, n));
|
|
2966
2966
|
};
|
|
2967
|
-
|
|
2967
|
+
vs.isSideCarExport = !0;
|
|
2968
2968
|
function Rd(e, t) {
|
|
2969
|
-
return e.useMedium(t),
|
|
2969
|
+
return e.useMedium(t), vs;
|
|
2970
2970
|
}
|
|
2971
2971
|
var ws = Td(), wr = function() {
|
|
2972
2972
|
}, Un = f.forwardRef(function(e, t) {
|
|
@@ -2974,11 +2974,11 @@ var ws = Td(), wr = function() {
|
|
|
2974
2974
|
onScrollCapture: wr,
|
|
2975
2975
|
onWheelCapture: wr,
|
|
2976
2976
|
onTouchMoveCapture: wr
|
|
2977
|
-
}), o = r[0], a = r[1], s = e.forwardProps, i = e.children, c = e.className, u = e.removeScrollBar, d = e.enabled, p = e.shards, g = e.sideCar, m = e.noRelative, b = e.noIsolation, h = e.inert,
|
|
2977
|
+
}), o = r[0], a = r[1], s = e.forwardProps, i = e.children, c = e.className, u = e.removeScrollBar, d = e.enabled, p = e.shards, g = e.sideCar, m = e.noRelative, b = e.noIsolation, h = e.inert, y = e.allowPinchZoom, S = e.as, E = S === void 0 ? "div" : S, C = e.gapMode, w = ys(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), x = g, A = Nd([n, t]), _ = Be(Be({}, w), o);
|
|
2978
2978
|
return f.createElement(
|
|
2979
2979
|
f.Fragment,
|
|
2980
2980
|
null,
|
|
2981
|
-
d && f.createElement(x, { sideCar: ws, removeScrollBar: u, shards: p, noRelative: m, noIsolation: b, inert: h, setCallbacks: a, allowPinchZoom: !!
|
|
2981
|
+
d && f.createElement(x, { sideCar: ws, removeScrollBar: u, shards: p, noRelative: m, noIsolation: b, inert: h, setCallbacks: a, allowPinchZoom: !!y, lockRef: n, gapMode: C }),
|
|
2982
2982
|
s ? f.cloneElement(f.Children.only(i), Be(Be({}, _), { ref: A })) : f.createElement(E, Be({}, _, { className: c, ref: A }), i)
|
|
2983
2983
|
);
|
|
2984
2984
|
});
|
|
@@ -3181,7 +3181,7 @@ var At = Fr ? { passive: !1 } : !1, Ud = function(e) {
|
|
|
3181
3181
|
do {
|
|
3182
3182
|
if (!i)
|
|
3183
3183
|
break;
|
|
3184
|
-
var m = Es(e, i), b = m[0], h = m[1],
|
|
3184
|
+
var m = Es(e, i), b = m[0], h = m[1], y = m[2], S = h - y - a * b;
|
|
3185
3185
|
(b || S) && Cs(e, i) && (p += S, g += b);
|
|
3186
3186
|
var E = i.parentNode;
|
|
3187
3187
|
i = E && E.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? E.host : E;
|
|
@@ -3213,16 +3213,16 @@ function Jd(e) {
|
|
|
3213
3213
|
if (e.inert) {
|
|
3214
3214
|
document.body.classList.add("block-interactivity-".concat(o));
|
|
3215
3215
|
var h = wd([e.lockRef.current], (e.shards || []).map(aa), !0).filter(Boolean);
|
|
3216
|
-
return h.forEach(function(
|
|
3217
|
-
return
|
|
3216
|
+
return h.forEach(function(y) {
|
|
3217
|
+
return y.classList.add("allow-interactivity-".concat(o));
|
|
3218
3218
|
}), function() {
|
|
3219
|
-
document.body.classList.remove("block-interactivity-".concat(o)), h.forEach(function(
|
|
3220
|
-
return
|
|
3219
|
+
document.body.classList.remove("block-interactivity-".concat(o)), h.forEach(function(y) {
|
|
3220
|
+
return y.classList.remove("allow-interactivity-".concat(o));
|
|
3221
3221
|
});
|
|
3222
3222
|
};
|
|
3223
3223
|
}
|
|
3224
3224
|
}, [e.inert, e.lockRef.current, e.shards]);
|
|
3225
|
-
var i = f.useCallback(function(h,
|
|
3225
|
+
var i = f.useCallback(function(h, y) {
|
|
3226
3226
|
if ("touches" in h && h.touches.length === 2 || h.type === "wheel" && h.ctrlKey)
|
|
3227
3227
|
return !s.current.allowPinchZoom;
|
|
3228
3228
|
var S = bn(h), E = n.current, C = "deltaX" in h ? h.deltaX : E[0] - S[0], w = "deltaY" in h ? h.deltaY : E[1] - S[1], x, A = h.target, _ = Math.abs(C) > Math.abs(w) ? "h" : "v";
|
|
@@ -3239,26 +3239,26 @@ function Jd(e) {
|
|
|
3239
3239
|
if (!r.current && "changedTouches" in h && (C || w) && (r.current = x), !x)
|
|
3240
3240
|
return !0;
|
|
3241
3241
|
var G = r.current || x;
|
|
3242
|
-
return Kd(G,
|
|
3242
|
+
return Kd(G, y, h, G === "h" ? C : w);
|
|
3243
3243
|
}, []), c = f.useCallback(function(h) {
|
|
3244
|
-
var
|
|
3244
|
+
var y = h;
|
|
3245
3245
|
if (!(!Tt.length || Tt[Tt.length - 1] !== a)) {
|
|
3246
|
-
var S = "deltaY" in
|
|
3247
|
-
return x.name ===
|
|
3246
|
+
var S = "deltaY" in y ? oa(y) : bn(y), E = t.current.filter(function(x) {
|
|
3247
|
+
return x.name === y.type && (x.target === y.target || y.target === x.shadowParent) && Xd(x.delta, S);
|
|
3248
3248
|
})[0];
|
|
3249
3249
|
if (E && E.should) {
|
|
3250
|
-
|
|
3250
|
+
y.cancelable && y.preventDefault();
|
|
3251
3251
|
return;
|
|
3252
3252
|
}
|
|
3253
3253
|
if (!E) {
|
|
3254
3254
|
var C = (s.current.shards || []).map(aa).filter(Boolean).filter(function(x) {
|
|
3255
|
-
return x.contains(
|
|
3256
|
-
}), w = C.length > 0 ? i(
|
|
3257
|
-
w &&
|
|
3255
|
+
return x.contains(y.target);
|
|
3256
|
+
}), w = C.length > 0 ? i(y, C[0]) : !s.current.noIsolation;
|
|
3257
|
+
w && y.cancelable && y.preventDefault();
|
|
3258
3258
|
}
|
|
3259
3259
|
}
|
|
3260
|
-
}, []), u = f.useCallback(function(h,
|
|
3261
|
-
var C = { name: h, delta:
|
|
3260
|
+
}, []), u = f.useCallback(function(h, y, S, E) {
|
|
3261
|
+
var C = { name: h, delta: y, target: S, should: E, shadowParent: ef(S) };
|
|
3262
3262
|
t.current.push(C), setTimeout(function() {
|
|
3263
3263
|
t.current = t.current.filter(function(w) {
|
|
3264
3264
|
return w !== C;
|
|
@@ -3300,7 +3300,7 @@ var uo = f.forwardRef(function(e, t) {
|
|
|
3300
3300
|
return f.createElement(Un, Be({}, e, { ref: t, sideCar: tf }));
|
|
3301
3301
|
});
|
|
3302
3302
|
uo.classNames = Un.classNames;
|
|
3303
|
-
var nf = [" ", "Enter", "ArrowUp", "ArrowDown"], rf = [" ", "Enter"], bt = "Select", [Vn, jn, of] = La(bt), [$t] =
|
|
3303
|
+
var nf = [" ", "Enter", "ArrowUp", "ArrowDown"], rf = [" ", "Enter"], bt = "Select", [Vn, jn, of] = La(bt), [$t] = vt(bt, [
|
|
3304
3304
|
of,
|
|
3305
3305
|
Bn
|
|
3306
3306
|
]), Gn = Bn(), [af, st] = $t(bt), [sf, cf] = $t(bt), Ns = (e) => {
|
|
@@ -3319,7 +3319,7 @@ var nf = [" ", "Enter", "ArrowUp", "ArrowDown"], rf = [" ", "Enter"], bt = "Sele
|
|
|
3319
3319
|
disabled: g,
|
|
3320
3320
|
required: m,
|
|
3321
3321
|
form: b
|
|
3322
|
-
} = e, h = Gn(t), [
|
|
3322
|
+
} = e, h = Gn(t), [y, S] = f.useState(null), [E, C] = f.useState(null), [w, x] = f.useState(!1), A = Qr(u), [_, O] = en({
|
|
3323
3323
|
prop: r,
|
|
3324
3324
|
defaultProp: o ?? !1,
|
|
3325
3325
|
onChange: a,
|
|
@@ -3329,13 +3329,13 @@ var nf = [" ", "Enter", "ArrowUp", "ArrowDown"], rf = [" ", "Enter"], bt = "Sele
|
|
|
3329
3329
|
defaultProp: i,
|
|
3330
3330
|
onChange: c,
|
|
3331
3331
|
caller: bt
|
|
3332
|
-
}), B = f.useRef(null), G =
|
|
3332
|
+
}), B = f.useRef(null), G = y ? b || !!y.closest("form") : !0, [M, F] = f.useState(/* @__PURE__ */ new Set()), N = Array.from(M).map((k) => k.props.value).join(";");
|
|
3333
3333
|
return /* @__PURE__ */ l(ds, { ...h, children: /* @__PURE__ */ L(
|
|
3334
3334
|
af,
|
|
3335
3335
|
{
|
|
3336
3336
|
required: m,
|
|
3337
3337
|
scope: t,
|
|
3338
|
-
trigger:
|
|
3338
|
+
trigger: y,
|
|
3339
3339
|
onTriggerChange: S,
|
|
3340
3340
|
valueNode: E,
|
|
3341
3341
|
onValueNodeChange: C,
|
|
@@ -3393,7 +3393,7 @@ Ns.displayName = bt;
|
|
|
3393
3393
|
var ks = "SelectTrigger", As = f.forwardRef(
|
|
3394
3394
|
(e, t) => {
|
|
3395
3395
|
const { __scopeSelect: n, disabled: r = !1, ...o } = e, a = Gn(n), s = st(ks, n), i = s.disabled || r, c = de(t, s.onTriggerChange), u = jn(n), d = f.useRef("touch"), [p, g, m] = Qs((h) => {
|
|
3396
|
-
const
|
|
3396
|
+
const y = u().filter((C) => !C.disabled), S = y.find((C) => C.value === s.value), E = Zs(y, h, S);
|
|
3397
3397
|
E !== void 0 && s.onValueChange(E.value);
|
|
3398
3398
|
}), b = (h) => {
|
|
3399
3399
|
i || (s.onOpenChange(!0), m()), h && (s.triggerPointerDownPosRef.current = {
|
|
@@ -3422,12 +3422,12 @@ var ks = "SelectTrigger", As = f.forwardRef(
|
|
|
3422
3422
|
}),
|
|
3423
3423
|
onPointerDown: ee(o.onPointerDown, (h) => {
|
|
3424
3424
|
d.current = h.pointerType;
|
|
3425
|
-
const
|
|
3426
|
-
|
|
3425
|
+
const y = h.target;
|
|
3426
|
+
y.hasPointerCapture(h.pointerId) && y.releasePointerCapture(h.pointerId), h.button === 0 && h.ctrlKey === !1 && h.pointerType === "mouse" && (b(h), h.preventDefault());
|
|
3427
3427
|
}),
|
|
3428
3428
|
onKeyDown: ee(o.onKeyDown, (h) => {
|
|
3429
|
-
const
|
|
3430
|
-
!(h.ctrlKey || h.altKey || h.metaKey) && h.key.length === 1 && g(h.key), !(
|
|
3429
|
+
const y = p.current !== "";
|
|
3430
|
+
!(h.ctrlKey || h.altKey || h.metaKey) && h.key.length === 1 && g(h.key), !(y && h.key === " ") && nf.includes(h.key) && (b(), h.preventDefault());
|
|
3431
3431
|
})
|
|
3432
3432
|
}
|
|
3433
3433
|
) });
|
|
@@ -3437,7 +3437,7 @@ As.displayName = ks;
|
|
|
3437
3437
|
var Ts = "SelectValue", Rs = f.forwardRef(
|
|
3438
3438
|
(e, t) => {
|
|
3439
3439
|
const { __scopeSelect: n, className: r, style: o, children: a, placeholder: s = "", ...i } = e, c = st(Ts, n), { onValueNodeHasChildrenChange: u } = c, d = a !== void 0, p = de(t, c.onValueNodeChange);
|
|
3440
|
-
return
|
|
3440
|
+
return ve(() => {
|
|
3441
3441
|
u(d);
|
|
3442
3442
|
}, [u, d]), /* @__PURE__ */ l(
|
|
3443
3443
|
Te.span,
|
|
@@ -3460,10 +3460,10 @@ var lf = "SelectIcon", Ps = f.forwardRef(
|
|
|
3460
3460
|
Ps.displayName = lf;
|
|
3461
3461
|
var uf = "SelectPortal", Os = (e) => /* @__PURE__ */ l(lo, { asChild: !0, ...e });
|
|
3462
3462
|
Os.displayName = uf;
|
|
3463
|
-
var
|
|
3463
|
+
var yt = "SelectContent", _s = f.forwardRef(
|
|
3464
3464
|
(e, t) => {
|
|
3465
|
-
const n = st(
|
|
3466
|
-
if (
|
|
3465
|
+
const n = st(yt, e.__scopeSelect), [r, o] = f.useState();
|
|
3466
|
+
if (ve(() => {
|
|
3467
3467
|
o(new DocumentFragment());
|
|
3468
3468
|
}, []), !n.open) {
|
|
3469
3469
|
const a = r;
|
|
@@ -3475,8 +3475,8 @@ var vt = "SelectContent", _s = f.forwardRef(
|
|
|
3475
3475
|
return /* @__PURE__ */ l(Ds, { ...e, ref: t });
|
|
3476
3476
|
}
|
|
3477
3477
|
);
|
|
3478
|
-
_s.displayName =
|
|
3479
|
-
var Me = 10, [Ms, it] = $t(
|
|
3478
|
+
_s.displayName = yt;
|
|
3479
|
+
var Me = 10, [Ms, it] = $t(yt), df = "SelectContentImpl", ff = /* @__PURE__ */ Ee("SelectContent.RemoveScroll"), Ds = f.forwardRef(
|
|
3480
3480
|
(e, t) => {
|
|
3481
3481
|
const {
|
|
3482
3482
|
__scopeSelect: n,
|
|
@@ -3495,10 +3495,10 @@ var Me = 10, [Ms, it] = $t(vt), df = "SelectContentImpl", ff = /* @__PURE__ */ E
|
|
|
3495
3495
|
collisionPadding: m,
|
|
3496
3496
|
sticky: b,
|
|
3497
3497
|
hideWhenDetached: h,
|
|
3498
|
-
avoidCollisions:
|
|
3498
|
+
avoidCollisions: y,
|
|
3499
3499
|
//
|
|
3500
3500
|
...S
|
|
3501
|
-
} = e, E = st(
|
|
3501
|
+
} = e, E = st(yt, n), [C, w] = f.useState(null), [x, A] = f.useState(null), _ = de(t, (V) => w(V)), [O, $] = f.useState(null), [z, B] = f.useState(
|
|
3502
3502
|
null
|
|
3503
3503
|
), G = jn(n), [M, F] = f.useState(!1), N = f.useRef(!1);
|
|
3504
3504
|
f.useEffect(() => {
|
|
@@ -3565,7 +3565,7 @@ var Me = 10, [Ms, it] = $t(vt), df = "SelectContentImpl", ff = /* @__PURE__ */ E
|
|
|
3565
3565
|
collisionPadding: m,
|
|
3566
3566
|
sticky: b,
|
|
3567
3567
|
hideWhenDetached: h,
|
|
3568
|
-
avoidCollisions:
|
|
3568
|
+
avoidCollisions: y
|
|
3569
3569
|
} : {};
|
|
3570
3570
|
return /* @__PURE__ */ l(
|
|
3571
3571
|
Ms,
|
|
@@ -3646,8 +3646,8 @@ var Me = 10, [Ms, it] = $t(vt), df = "SelectContentImpl", ff = /* @__PURE__ */ E
|
|
|
3646
3646
|
);
|
|
3647
3647
|
Ds.displayName = df;
|
|
3648
3648
|
var mf = "SelectItemAlignedPosition", Is = f.forwardRef((e, t) => {
|
|
3649
|
-
const { __scopeSelect: n, onPlaced: r, ...o } = e, a = st(
|
|
3650
|
-
if (a.trigger && a.valueNode && i && u && h &&
|
|
3649
|
+
const { __scopeSelect: n, onPlaced: r, ...o } = e, a = st(yt, n), s = it(yt, n), [i, c] = f.useState(null), [u, d] = f.useState(null), p = de(t, (_) => d(_)), g = jn(n), m = f.useRef(!1), b = f.useRef(!0), { viewport: h, selectedItem: y, selectedItemText: S, focusSelectedItem: E } = s, C = f.useCallback(() => {
|
|
3650
|
+
if (a.trigger && a.valueNode && i && u && h && y && S) {
|
|
3651
3651
|
const _ = a.trigger.getBoundingClientRect(), O = u.getBoundingClientRect(), $ = a.valueNode.getBoundingClientRect(), z = S.getBoundingClientRect();
|
|
3652
3652
|
if (a.dir !== "rtl") {
|
|
3653
3653
|
const re = z.left - O.left, se = $.left - re, le = _.left - se, he = _.width + le, Oe = Math.max(he, O.width), ut = window.innerWidth - Me, dt = Io(se, [
|
|
@@ -3667,9 +3667,9 @@ var mf = "SelectItemAlignedPosition", Is = f.forwardRef((e, t) => {
|
|
|
3667
3667
|
]);
|
|
3668
3668
|
i.style.minWidth = he + "px", i.style.right = dt + "px";
|
|
3669
3669
|
}
|
|
3670
|
-
const B = g(), G = window.innerHeight - Me * 2, M = h.scrollHeight, F = window.getComputedStyle(u), N = parseInt(F.borderTopWidth, 10), k = parseInt(F.paddingTop, 10), D = parseInt(F.borderBottomWidth, 10), T = parseInt(F.paddingBottom, 10), R = N + k + M + T + D, P = Math.min(
|
|
3670
|
+
const B = g(), G = window.innerHeight - Me * 2, M = h.scrollHeight, F = window.getComputedStyle(u), N = parseInt(F.borderTopWidth, 10), k = parseInt(F.paddingTop, 10), D = parseInt(F.borderBottomWidth, 10), T = parseInt(F.paddingBottom, 10), R = N + k + M + T + D, P = Math.min(y.offsetHeight * 5, R), q = window.getComputedStyle(h), te = parseInt(q.paddingTop, 10), K = parseInt(q.paddingBottom, 10), ge = _.top + _.height / 2 - Me, Y = G - ge, oe = y.offsetHeight / 2, V = y.offsetTop + oe, J = N + k + V, Z = R - J;
|
|
3671
3671
|
if (J <= ge) {
|
|
3672
|
-
const re = B.length > 0 &&
|
|
3672
|
+
const re = B.length > 0 && y === B[B.length - 1].ref.current;
|
|
3673
3673
|
i.style.bottom = "0px";
|
|
3674
3674
|
const se = u.clientHeight - h.offsetTop - h.offsetHeight, le = Math.max(
|
|
3675
3675
|
Y,
|
|
@@ -3678,7 +3678,7 @@ var mf = "SelectItemAlignedPosition", Is = f.forwardRef((e, t) => {
|
|
|
3678
3678
|
), he = J + le;
|
|
3679
3679
|
i.style.height = he + "px";
|
|
3680
3680
|
} else {
|
|
3681
|
-
const re = B.length > 0 &&
|
|
3681
|
+
const re = B.length > 0 && y === B[0].ref.current;
|
|
3682
3682
|
i.style.top = "0px";
|
|
3683
3683
|
const le = Math.max(
|
|
3684
3684
|
ge,
|
|
@@ -3696,14 +3696,14 @@ var mf = "SelectItemAlignedPosition", Is = f.forwardRef((e, t) => {
|
|
|
3696
3696
|
i,
|
|
3697
3697
|
u,
|
|
3698
3698
|
h,
|
|
3699
|
-
|
|
3699
|
+
y,
|
|
3700
3700
|
S,
|
|
3701
3701
|
a.dir,
|
|
3702
3702
|
r
|
|
3703
3703
|
]);
|
|
3704
|
-
|
|
3704
|
+
ve(() => C(), [C]);
|
|
3705
3705
|
const [w, x] = f.useState();
|
|
3706
|
-
|
|
3706
|
+
ve(() => {
|
|
3707
3707
|
u && x(window.getComputedStyle(u).zIndex);
|
|
3708
3708
|
}, [u]);
|
|
3709
3709
|
const A = f.useCallback(
|
|
@@ -3779,7 +3779,7 @@ var pf = "SelectPopperPosition", $r = f.forwardRef((e, t) => {
|
|
|
3779
3779
|
);
|
|
3780
3780
|
});
|
|
3781
3781
|
$r.displayName = pf;
|
|
3782
|
-
var [hf, fo] = $t(
|
|
3782
|
+
var [hf, fo] = $t(yt, {}), zr = "SelectViewport", Ls = f.forwardRef(
|
|
3783
3783
|
(e, t) => {
|
|
3784
3784
|
const { __scopeSelect: n, nonce: r, ...o } = e, a = it(zr, n), s = fo(zr, n), i = de(t, a.onViewportChange), c = f.useRef(0);
|
|
3785
3785
|
return /* @__PURE__ */ L(It, { children: [
|
|
@@ -3817,7 +3817,7 @@ var [hf, fo] = $t(vt, {}), zr = "SelectViewport", Ls = f.forwardRef(
|
|
|
3817
3817
|
if (g?.current && p) {
|
|
3818
3818
|
const m = Math.abs(c.current - d.scrollTop);
|
|
3819
3819
|
if (m > 0) {
|
|
3820
|
-
const b = window.innerHeight - Me * 2, h = parseFloat(p.style.minHeight),
|
|
3820
|
+
const b = window.innerHeight - Me * 2, h = parseFloat(p.style.minHeight), y = parseFloat(p.style.height), S = Math.max(h, y);
|
|
3821
3821
|
if (S < b) {
|
|
3822
3822
|
const E = S + m, C = Math.min(b, E), w = E - C;
|
|
3823
3823
|
p.style.height = C + "px", p.style.bottom === "0px" && (d.scrollTop = w > 0 ? w : 0, p.style.justifyContent = "flex-end");
|
|
@@ -3846,7 +3846,7 @@ var zs = "SelectLabel", Ws = f.forwardRef(
|
|
|
3846
3846
|
}
|
|
3847
3847
|
);
|
|
3848
3848
|
Ws.displayName = zs;
|
|
3849
|
-
var On = "SelectItem", [
|
|
3849
|
+
var On = "SelectItem", [yf, Hs] = $t(On), Bs = f.forwardRef(
|
|
3850
3850
|
(e, t) => {
|
|
3851
3851
|
const {
|
|
3852
3852
|
__scopeSelect: n,
|
|
@@ -3857,7 +3857,7 @@ var On = "SelectItem", [vf, Hs] = $t(On), Bs = f.forwardRef(
|
|
|
3857
3857
|
} = e, i = st(On, n), c = it(On, n), u = i.value === r, [d, p] = f.useState(a ?? ""), [g, m] = f.useState(!1), b = de(
|
|
3858
3858
|
t,
|
|
3859
3859
|
(E) => c.itemRefCallback?.(E, r, o)
|
|
3860
|
-
), h = nn(),
|
|
3860
|
+
), h = nn(), y = f.useRef("touch"), S = () => {
|
|
3861
3861
|
o || (i.onValueChange(r), i.onOpenChange(!1));
|
|
3862
3862
|
};
|
|
3863
3863
|
if (r === "")
|
|
@@ -3865,7 +3865,7 @@ var On = "SelectItem", [vf, Hs] = $t(On), Bs = f.forwardRef(
|
|
|
3865
3865
|
"A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder."
|
|
3866
3866
|
);
|
|
3867
3867
|
return /* @__PURE__ */ l(
|
|
3868
|
-
|
|
3868
|
+
yf,
|
|
3869
3869
|
{
|
|
3870
3870
|
scope: n,
|
|
3871
3871
|
value: r,
|
|
@@ -3898,16 +3898,16 @@ var On = "SelectItem", [vf, Hs] = $t(On), Bs = f.forwardRef(
|
|
|
3898
3898
|
onFocus: ee(s.onFocus, () => m(!0)),
|
|
3899
3899
|
onBlur: ee(s.onBlur, () => m(!1)),
|
|
3900
3900
|
onClick: ee(s.onClick, () => {
|
|
3901
|
-
|
|
3901
|
+
y.current !== "mouse" && S();
|
|
3902
3902
|
}),
|
|
3903
3903
|
onPointerUp: ee(s.onPointerUp, () => {
|
|
3904
|
-
|
|
3904
|
+
y.current === "mouse" && S();
|
|
3905
3905
|
}),
|
|
3906
3906
|
onPointerDown: ee(s.onPointerDown, (E) => {
|
|
3907
|
-
|
|
3907
|
+
y.current = E.pointerType;
|
|
3908
3908
|
}),
|
|
3909
3909
|
onPointerMove: ee(s.onPointerMove, (E) => {
|
|
3910
|
-
|
|
3910
|
+
y.current = E.pointerType, o ? c.onItemLeave?.() : y.current === "mouse" && E.currentTarget.focus({ preventScroll: !0 });
|
|
3911
3911
|
}),
|
|
3912
3912
|
onPointerLeave: ee(s.onPointerLeave, (E) => {
|
|
3913
3913
|
E.currentTarget === document.activeElement && c.onItemLeave?.();
|
|
@@ -3934,24 +3934,24 @@ var Kt = "SelectItemText", Us = f.forwardRef(
|
|
|
3934
3934
|
), m = d?.textContent, b = f.useMemo(
|
|
3935
3935
|
() => /* @__PURE__ */ l("option", { value: c.value, disabled: c.disabled, children: m }, c.value),
|
|
3936
3936
|
[c.disabled, c.value, m]
|
|
3937
|
-
), { onNativeOptionAdd: h, onNativeOptionRemove:
|
|
3938
|
-
return
|
|
3937
|
+
), { onNativeOptionAdd: h, onNativeOptionRemove: y } = u;
|
|
3938
|
+
return ve(() => (h(b), () => y(b)), [h, y, b]), /* @__PURE__ */ L(It, { children: [
|
|
3939
3939
|
/* @__PURE__ */ l(Te.span, { id: c.textId, ...a, ref: g }),
|
|
3940
3940
|
c.isSelected && s.valueNode && !s.valueNodeHasChildren ? Ln.createPortal(a.children, s.valueNode) : null
|
|
3941
3941
|
] });
|
|
3942
3942
|
}
|
|
3943
3943
|
);
|
|
3944
3944
|
Us.displayName = Kt;
|
|
3945
|
-
var Vs = "SelectItemIndicator",
|
|
3945
|
+
var Vs = "SelectItemIndicator", vf = f.forwardRef(
|
|
3946
3946
|
(e, t) => {
|
|
3947
3947
|
const { __scopeSelect: n, ...r } = e;
|
|
3948
3948
|
return Hs(Vs, n).isSelected ? /* @__PURE__ */ l(Te.span, { "aria-hidden": !0, ...r, ref: t }) : null;
|
|
3949
3949
|
}
|
|
3950
3950
|
);
|
|
3951
|
-
|
|
3951
|
+
vf.displayName = Vs;
|
|
3952
3952
|
var Wr = "SelectScrollUpButton", js = f.forwardRef((e, t) => {
|
|
3953
3953
|
const n = it(Wr, e.__scopeSelect), r = fo(Wr, e.__scopeSelect), [o, a] = f.useState(!1), s = de(t, r.onScrollButtonChange);
|
|
3954
|
-
return
|
|
3954
|
+
return ve(() => {
|
|
3955
3955
|
if (n.viewport && n.isPositioned) {
|
|
3956
3956
|
let i = function() {
|
|
3957
3957
|
const u = c.scrollTop > 0;
|
|
@@ -3975,7 +3975,7 @@ var Wr = "SelectScrollUpButton", js = f.forwardRef((e, t) => {
|
|
|
3975
3975
|
js.displayName = Wr;
|
|
3976
3976
|
var Hr = "SelectScrollDownButton", wf = f.forwardRef((e, t) => {
|
|
3977
3977
|
const n = it(Hr, e.__scopeSelect), r = fo(Hr, e.__scopeSelect), [o, a] = f.useState(!1), s = de(t, r.onScrollButtonChange);
|
|
3978
|
-
return
|
|
3978
|
+
return ve(() => {
|
|
3979
3979
|
if (n.viewport && n.isPositioned) {
|
|
3980
3980
|
let i = function() {
|
|
3981
3981
|
const u = c.scrollHeight - c.clientHeight, d = Math.ceil(c.scrollTop) < u;
|
|
@@ -4001,7 +4001,7 @@ var Gs = f.forwardRef((e, t) => {
|
|
|
4001
4001
|
const { __scopeSelect: n, onAutoScroll: r, ...o } = e, a = it("SelectScrollButton", n), s = f.useRef(null), i = jn(n), c = f.useCallback(() => {
|
|
4002
4002
|
s.current !== null && (window.clearInterval(s.current), s.current = null);
|
|
4003
4003
|
}, []);
|
|
4004
|
-
return f.useEffect(() => () => c(), [c]),
|
|
4004
|
+
return f.useEffect(() => () => c(), [c]), ve(() => {
|
|
4005
4005
|
i().find((d) => d.ref.current === document.activeElement)?.ref.current?.scrollIntoView({ block: "nearest" });
|
|
4006
4006
|
}, [i]), /* @__PURE__ */ l(
|
|
4007
4007
|
Te.div,
|
|
@@ -4106,7 +4106,7 @@ function Ff({ field: e, formValues: t, handleChange: n, handleBlur: r, error: o,
|
|
|
4106
4106
|
const w = typeof e.queryParams == "function" ? e.queryParams(t) : e.queryParams;
|
|
4107
4107
|
typeof w == "string" ? b += w.startsWith("?") ? w : `?${w}` : h = { params: w };
|
|
4108
4108
|
}
|
|
4109
|
-
const
|
|
4109
|
+
const y = await a(b, h), S = y.data || y, C = (Array.isArray(S) ? S : []).map((w) => ({
|
|
4110
4110
|
value: w[e.valueId || "key"] || w.key,
|
|
4111
4111
|
label: w[e.labelId || "value"] || w.value
|
|
4112
4112
|
}));
|
|
@@ -4201,9 +4201,12 @@ function $f({
|
|
|
4201
4201
|
...e.props,
|
|
4202
4202
|
type: "email",
|
|
4203
4203
|
value: t[e.name] || "",
|
|
4204
|
-
onChange: (i) =>
|
|
4204
|
+
onChange: (i) => {
|
|
4205
|
+
s || n(e.name, i.target.value);
|
|
4206
|
+
},
|
|
4205
4207
|
onBlur: () => r(e.name),
|
|
4206
4208
|
disabled: s,
|
|
4209
|
+
readOnly: s,
|
|
4207
4210
|
name: e.name,
|
|
4208
4211
|
placeholder: e.placeholder,
|
|
4209
4212
|
className: `flex h-10 w-full rounded-md border px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 ${o ? "border-red-500 focus-visible:ring-red-500" : "border-input focus-visible:ring-blue-500"} ${s ? "bg-gray-100 text-gray-500 cursor-not-allowed" : "bg-background"}`
|
|
@@ -4394,7 +4397,7 @@ function Vt(e, t) {
|
|
|
4394
4397
|
}
|
|
4395
4398
|
return n;
|
|
4396
4399
|
}
|
|
4397
|
-
const ua = xe(["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"]), Er = xe(["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"]), Nr = xe(["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"]), Kf = xe(["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"]), kr = xe(["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"]), Xf = xe(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), da = xe(["#text"]), fa = xe(["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"]), Ar = xe(["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"]), ma = xe(["accent", "accentunder", "align", "bevelled", "close", "columnalign", "columnlines", "columnspacing", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lquote", "lspace", "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"]),
|
|
4400
|
+
const ua = xe(["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"]), Er = xe(["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"]), Nr = xe(["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"]), Kf = xe(["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"]), kr = xe(["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"]), Xf = xe(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), da = xe(["#text"]), fa = xe(["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"]), Ar = xe(["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"]), ma = xe(["accent", "accentunder", "align", "bevelled", "close", "columnalign", "columnlines", "columnspacing", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lquote", "lspace", "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"]), yn = xe(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Qf = Pe(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Zf = Pe(/<%[\w\W]*|[\w\W]*%>/gm), Jf = Pe(/\$\{[\w\W]*/gm), em = Pe(/^data-[\-\w.\u00B7-\uFFFF]+$/), tm = Pe(/^aria-[\-\w]+$/), ei = Pe(
|
|
4398
4401
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
4399
4402
|
// eslint-disable-line no-useless-escape
|
|
4400
4403
|
), nm = Pe(/^(?:\w+script|data):/i), rm = Pe(
|
|
@@ -4473,7 +4476,7 @@ function ni() {
|
|
|
4473
4476
|
HTMLFormElement: p,
|
|
4474
4477
|
DOMParser: g,
|
|
4475
4478
|
trustedTypes: m
|
|
4476
|
-
} = e, b = c.prototype, h = Vt(b, "cloneNode"),
|
|
4479
|
+
} = e, b = c.prototype, h = Vt(b, "cloneNode"), y = Vt(b, "remove"), S = Vt(b, "nextSibling"), E = Vt(b, "childNodes"), C = Vt(b, "parentNode");
|
|
4477
4480
|
if (typeof s == "function") {
|
|
4478
4481
|
const j = n.createElement("template");
|
|
4479
4482
|
j.content && j.content.ownerDocument && (n = j.content.ownerDocument);
|
|
@@ -4504,7 +4507,7 @@ function ni() {
|
|
|
4504
4507
|
} = pa, q = null;
|
|
4505
4508
|
const te = Q({}, [...ua, ...Er, ...Nr, ...kr, ...da]);
|
|
4506
4509
|
let K = null;
|
|
4507
|
-
const ge = Q({}, [...fa, ...Ar, ...ma, ...
|
|
4510
|
+
const ge = Q({}, [...fa, ...Ar, ...ma, ...yn]);
|
|
4508
4511
|
let Y = Object.seal(Xt(null, {
|
|
4509
4512
|
tagNameCheck: {
|
|
4510
4513
|
writable: !0,
|
|
@@ -4539,11 +4542,11 @@ function ni() {
|
|
|
4539
4542
|
value: null
|
|
4540
4543
|
}
|
|
4541
4544
|
}));
|
|
4542
|
-
let Z = !0, ne = !0, re = !1, se = !0, le = !1, he = !0, Oe = !1, ut = !1, dt = !1, xt = !1, sn = !1, cn = !1, bo = !0,
|
|
4545
|
+
let Z = !0, ne = !0, re = !1, se = !0, le = !1, he = !0, Oe = !1, ut = !1, dt = !1, xt = !1, sn = !1, cn = !1, bo = !0, yo = !1;
|
|
4543
4546
|
const ec = "user-content-";
|
|
4544
4547
|
let nr = !0, zt = !1, St = {}, ze = null;
|
|
4545
4548
|
const rr = Q({}, ["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"]);
|
|
4546
|
-
let
|
|
4549
|
+
let vo = null;
|
|
4547
4550
|
const wo = Q({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
4548
4551
|
let or = null;
|
|
4549
4552
|
const xo = Q({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), ln = "http://www.w3.org/1998/Math/MathML", un = "http://www.w3.org/2000/svg", We = "http://www.w3.org/1999/xhtml";
|
|
@@ -4554,43 +4557,43 @@ function ni() {
|
|
|
4554
4557
|
let Wt = null;
|
|
4555
4558
|
const rc = ["application/xhtml+xml", "text/html"], oc = "text/html";
|
|
4556
4559
|
let me = null, Et = null;
|
|
4557
|
-
const ac = n.createElement("form"), So = function(
|
|
4558
|
-
return
|
|
4560
|
+
const ac = n.createElement("form"), So = function(v) {
|
|
4561
|
+
return v instanceof RegExp || v instanceof Function;
|
|
4559
4562
|
}, ir = function() {
|
|
4560
|
-
let
|
|
4561
|
-
if (!(Et && Et ===
|
|
4562
|
-
if ((!
|
|
4563
|
-
rc.indexOf(
|
|
4564
|
-
if (typeof
|
|
4563
|
+
let v = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4564
|
+
if (!(Et && Et === v)) {
|
|
4565
|
+
if ((!v || typeof v != "object") && (v = {}), v = He(v), Wt = // eslint-disable-next-line unicorn/prefer-includes
|
|
4566
|
+
rc.indexOf(v.PARSER_MEDIA_TYPE) === -1 ? oc : v.PARSER_MEDIA_TYPE, me = Wt === "application/xhtml+xml" ? Sr : Nn, q = De(v, "ALLOWED_TAGS") ? Q({}, v.ALLOWED_TAGS, me) : te, K = De(v, "ALLOWED_ATTR") ? Q({}, v.ALLOWED_ATTR, me) : ge, sr = De(v, "ALLOWED_NAMESPACES") ? Q({}, v.ALLOWED_NAMESPACES, Sr) : tc, or = De(v, "ADD_URI_SAFE_ATTR") ? Q(He(xo), v.ADD_URI_SAFE_ATTR, me) : xo, vo = De(v, "ADD_DATA_URI_TAGS") ? Q(He(wo), v.ADD_DATA_URI_TAGS, me) : wo, ze = De(v, "FORBID_CONTENTS") ? Q({}, v.FORBID_CONTENTS, me) : rr, oe = De(v, "FORBID_TAGS") ? Q({}, v.FORBID_TAGS, me) : He({}), V = De(v, "FORBID_ATTR") ? Q({}, v.FORBID_ATTR, me) : He({}), St = De(v, "USE_PROFILES") ? v.USE_PROFILES : !1, Z = v.ALLOW_ARIA_ATTR !== !1, ne = v.ALLOW_DATA_ATTR !== !1, re = v.ALLOW_UNKNOWN_PROTOCOLS || !1, se = v.ALLOW_SELF_CLOSE_IN_ATTR !== !1, le = v.SAFE_FOR_TEMPLATES || !1, he = v.SAFE_FOR_XML !== !1, Oe = v.WHOLE_DOCUMENT || !1, xt = v.RETURN_DOM || !1, sn = v.RETURN_DOM_FRAGMENT || !1, cn = v.RETURN_TRUSTED_TYPE || !1, dt = v.FORCE_BODY || !1, bo = v.SANITIZE_DOM !== !1, yo = v.SANITIZE_NAMED_PROPS || !1, nr = v.KEEP_CONTENT !== !1, zt = v.IN_PLACE || !1, P = v.ALLOWED_URI_REGEXP || ei, Ct = v.NAMESPACE || We, dn = v.MATHML_TEXT_INTEGRATION_POINTS || dn, fn = v.HTML_INTEGRATION_POINTS || fn, Y = v.CUSTOM_ELEMENT_HANDLING || Xt(null), v.CUSTOM_ELEMENT_HANDLING && So(v.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Y.tagNameCheck = v.CUSTOM_ELEMENT_HANDLING.tagNameCheck), v.CUSTOM_ELEMENT_HANDLING && So(v.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Y.attributeNameCheck = v.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), v.CUSTOM_ELEMENT_HANDLING && typeof v.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Y.allowCustomizedBuiltInElements = v.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), le && (ne = !1), sn && (xt = !0), St && (q = Q({}, da), K = Xt(null), St.html === !0 && (Q(q, ua), Q(K, fa)), St.svg === !0 && (Q(q, Er), Q(K, Ar), Q(K, yn)), St.svgFilters === !0 && (Q(q, Nr), Q(K, Ar), Q(K, yn)), St.mathMl === !0 && (Q(q, kr), Q(K, ma), Q(K, yn))), J.tagCheck = null, J.attributeCheck = null, v.ADD_TAGS && (typeof v.ADD_TAGS == "function" ? J.tagCheck = v.ADD_TAGS : (q === te && (q = He(q)), Q(q, v.ADD_TAGS, me))), v.ADD_ATTR && (typeof v.ADD_ATTR == "function" ? J.attributeCheck = v.ADD_ATTR : (K === ge && (K = He(K)), Q(K, v.ADD_ATTR, me))), v.ADD_URI_SAFE_ATTR && Q(or, v.ADD_URI_SAFE_ATTR, me), v.FORBID_CONTENTS && (ze === rr && (ze = He(ze)), Q(ze, v.FORBID_CONTENTS, me)), v.ADD_FORBID_CONTENTS && (ze === rr && (ze = He(ze)), Q(ze, v.ADD_FORBID_CONTENTS, me)), nr && (q["#text"] = !0), Oe && Q(q, ["html", "head", "body"]), q.table && (Q(q, ["tbody"]), delete oe.tbody), v.TRUSTED_TYPES_POLICY) {
|
|
4567
|
+
if (typeof v.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
4565
4568
|
throw Ut('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
4566
|
-
if (typeof
|
|
4569
|
+
if (typeof v.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
4567
4570
|
throw Ut('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
4568
|
-
w =
|
|
4571
|
+
w = v.TRUSTED_TYPES_POLICY, x = w.createHTML("");
|
|
4569
4572
|
} else
|
|
4570
4573
|
w === void 0 && (w = sm(m, o)), w !== null && typeof x == "string" && (x = w.createHTML(""));
|
|
4571
|
-
xe && xe(
|
|
4574
|
+
xe && xe(v), Et = v;
|
|
4572
4575
|
}
|
|
4573
|
-
}, Co = Q({}, [...Er, ...Nr, ...Kf]), Eo = Q({}, [...kr, ...Xf]), sc = function(
|
|
4574
|
-
let I = C(
|
|
4576
|
+
}, Co = Q({}, [...Er, ...Nr, ...Kf]), Eo = Q({}, [...kr, ...Xf]), sc = function(v) {
|
|
4577
|
+
let I = C(v);
|
|
4575
4578
|
(!I || !I.tagName) && (I = {
|
|
4576
4579
|
namespaceURI: Ct,
|
|
4577
4580
|
tagName: "template"
|
|
4578
4581
|
});
|
|
4579
|
-
const U = Nn(
|
|
4580
|
-
return sr[
|
|
4581
|
-
}, _e = function(
|
|
4582
|
+
const U = Nn(v.tagName), ue = Nn(I.tagName);
|
|
4583
|
+
return sr[v.namespaceURI] ? v.namespaceURI === un ? I.namespaceURI === We ? U === "svg" : I.namespaceURI === ln ? U === "svg" && (ue === "annotation-xml" || dn[ue]) : !!Co[U] : v.namespaceURI === ln ? I.namespaceURI === We ? U === "math" : I.namespaceURI === un ? U === "math" && fn[ue] : !!Eo[U] : v.namespaceURI === We ? I.namespaceURI === un && !fn[ue] || I.namespaceURI === ln && !dn[ue] ? !1 : !Eo[U] && (nc[U] || !Co[U]) : !!(Wt === "application/xhtml+xml" && sr[v.namespaceURI]) : !1;
|
|
4584
|
+
}, _e = function(v) {
|
|
4582
4585
|
Bt(t.removed, {
|
|
4583
|
-
element:
|
|
4586
|
+
element: v
|
|
4584
4587
|
});
|
|
4585
4588
|
try {
|
|
4586
|
-
C(
|
|
4589
|
+
C(v).removeChild(v);
|
|
4587
4590
|
} catch {
|
|
4588
|
-
v
|
|
4591
|
+
y(v);
|
|
4589
4592
|
}
|
|
4590
|
-
}, ft = function(
|
|
4593
|
+
}, ft = function(v, I) {
|
|
4591
4594
|
try {
|
|
4592
4595
|
Bt(t.removed, {
|
|
4593
|
-
attribute: I.getAttributeNode(
|
|
4596
|
+
attribute: I.getAttributeNode(v),
|
|
4594
4597
|
from: I
|
|
4595
4598
|
});
|
|
4596
4599
|
} catch {
|
|
@@ -4599,7 +4602,7 @@ function ni() {
|
|
|
4599
4602
|
from: I
|
|
4600
4603
|
});
|
|
4601
4604
|
}
|
|
4602
|
-
if (I.removeAttribute(
|
|
4605
|
+
if (I.removeAttribute(v), v === "is")
|
|
4603
4606
|
if (xt || sn)
|
|
4604
4607
|
try {
|
|
4605
4608
|
_e(I);
|
|
@@ -4607,19 +4610,19 @@ function ni() {
|
|
|
4607
4610
|
}
|
|
4608
4611
|
else
|
|
4609
4612
|
try {
|
|
4610
|
-
I.setAttribute(
|
|
4613
|
+
I.setAttribute(v, "");
|
|
4611
4614
|
} catch {
|
|
4612
4615
|
}
|
|
4613
|
-
}, No = function(
|
|
4616
|
+
}, No = function(v) {
|
|
4614
4617
|
let I = null, U = null;
|
|
4615
4618
|
if (dt)
|
|
4616
|
-
|
|
4619
|
+
v = "<remove></remove>" + v;
|
|
4617
4620
|
else {
|
|
4618
|
-
const fe = Cr(
|
|
4621
|
+
const fe = Cr(v, /^[\r\n\t ]+/);
|
|
4619
4622
|
U = fe && fe[0];
|
|
4620
4623
|
}
|
|
4621
|
-
Wt === "application/xhtml+xml" && Ct === We && (
|
|
4622
|
-
const ue = w ? w.createHTML(
|
|
4624
|
+
Wt === "application/xhtml+xml" && Ct === We && (v = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + v + "</body></html>");
|
|
4625
|
+
const ue = w ? w.createHTML(v) : v;
|
|
4623
4626
|
if (Ct === We)
|
|
4624
4627
|
try {
|
|
4625
4628
|
I = new g().parseFromString(ue, Wt);
|
|
@@ -4632,74 +4635,74 @@ function ni() {
|
|
|
4632
4635
|
} catch {
|
|
4633
4636
|
}
|
|
4634
4637
|
}
|
|
4635
|
-
const
|
|
4636
|
-
return
|
|
4637
|
-
}, ko = function(
|
|
4638
|
+
const ye = I.body || I.documentElement;
|
|
4639
|
+
return v && U && ye.insertBefore(n.createTextNode(U), ye.childNodes[0] || null), Ct === We ? $.call(I, Oe ? "html" : "body")[0] : Oe ? I.documentElement : ye;
|
|
4640
|
+
}, ko = function(v) {
|
|
4638
4641
|
return _.call(
|
|
4639
|
-
|
|
4640
|
-
|
|
4642
|
+
v.ownerDocument || v,
|
|
4643
|
+
v,
|
|
4641
4644
|
// eslint-disable-next-line no-bitwise
|
|
4642
4645
|
u.SHOW_ELEMENT | u.SHOW_COMMENT | u.SHOW_TEXT | u.SHOW_PROCESSING_INSTRUCTION | u.SHOW_CDATA_SECTION,
|
|
4643
4646
|
null
|
|
4644
4647
|
);
|
|
4645
|
-
}, cr = function(
|
|
4646
|
-
return
|
|
4647
|
-
}, lr = function(
|
|
4648
|
-
return typeof i == "function" &&
|
|
4648
|
+
}, cr = function(v) {
|
|
4649
|
+
return v instanceof p && (typeof v.nodeName != "string" || typeof v.textContent != "string" || typeof v.removeChild != "function" || !(v.attributes instanceof d) || typeof v.removeAttribute != "function" || typeof v.setAttribute != "function" || typeof v.namespaceURI != "string" || typeof v.insertBefore != "function" || typeof v.hasChildNodes != "function");
|
|
4650
|
+
}, lr = function(v) {
|
|
4651
|
+
return typeof i == "function" && v instanceof i;
|
|
4649
4652
|
};
|
|
4650
|
-
function Ge(j,
|
|
4653
|
+
function Ge(j, v, I) {
|
|
4651
4654
|
Ht(j, (U) => {
|
|
4652
|
-
U.call(t,
|
|
4655
|
+
U.call(t, v, I, Et);
|
|
4653
4656
|
});
|
|
4654
4657
|
}
|
|
4655
|
-
const Ao = function(
|
|
4658
|
+
const Ao = function(v) {
|
|
4656
4659
|
let I = null;
|
|
4657
|
-
if (Ge(B.beforeSanitizeElements,
|
|
4658
|
-
return _e(
|
|
4659
|
-
const U = me(
|
|
4660
|
-
if (Ge(B.uponSanitizeElement,
|
|
4660
|
+
if (Ge(B.beforeSanitizeElements, v, null), cr(v))
|
|
4661
|
+
return _e(v), !0;
|
|
4662
|
+
const U = me(v.nodeName);
|
|
4663
|
+
if (Ge(B.uponSanitizeElement, v, {
|
|
4661
4664
|
tagName: U,
|
|
4662
4665
|
allowedTags: q
|
|
4663
|
-
}), he &&
|
|
4664
|
-
return _e(
|
|
4666
|
+
}), he && v.hasChildNodes() && !lr(v.firstElementChild) && we(/<[/\w!]/g, v.innerHTML) && we(/<[/\w!]/g, v.textContent) || he && v.namespaceURI === We && U === "style" && lr(v.firstElementChild) || v.nodeType === jt.progressingInstruction || he && v.nodeType === jt.comment && we(/<[/\w]/g, v.data))
|
|
4667
|
+
return _e(v), !0;
|
|
4665
4668
|
if (oe[U] || !(J.tagCheck instanceof Function && J.tagCheck(U)) && !q[U]) {
|
|
4666
4669
|
if (!oe[U] && Ro(U) && (Y.tagNameCheck instanceof RegExp && we(Y.tagNameCheck, U) || Y.tagNameCheck instanceof Function && Y.tagNameCheck(U)))
|
|
4667
4670
|
return !1;
|
|
4668
4671
|
if (nr && !ze[U]) {
|
|
4669
|
-
const ue = C(
|
|
4670
|
-
if (
|
|
4671
|
-
const fe =
|
|
4672
|
+
const ue = C(v) || v.parentNode, ye = E(v) || v.childNodes;
|
|
4673
|
+
if (ye && ue) {
|
|
4674
|
+
const fe = ye.length;
|
|
4672
4675
|
for (let Ce = fe - 1; Ce >= 0; --Ce) {
|
|
4673
|
-
const Ne = h(
|
|
4674
|
-
Ne.__removalCount = (
|
|
4676
|
+
const Ne = h(ye[Ce], !0);
|
|
4677
|
+
Ne.__removalCount = (v.__removalCount || 0) + 1, ue.insertBefore(Ne, S(v));
|
|
4675
4678
|
}
|
|
4676
4679
|
}
|
|
4677
4680
|
}
|
|
4678
|
-
return _e(
|
|
4681
|
+
return _e(v), !0;
|
|
4679
4682
|
}
|
|
4680
|
-
return
|
|
4683
|
+
return v instanceof c && !sc(v) || (U === "noscript" || U === "noembed" || U === "noframes") && we(/<\/no(script|embed|frames)/i, v.innerHTML) ? (_e(v), !0) : (le && v.nodeType === jt.text && (I = v.textContent, Ht([G, M, F], (ue) => {
|
|
4681
4684
|
I = Rt(I, ue, " ");
|
|
4682
|
-
}),
|
|
4683
|
-
element:
|
|
4684
|
-
}),
|
|
4685
|
-
}, To = function(
|
|
4685
|
+
}), v.textContent !== I && (Bt(t.removed, {
|
|
4686
|
+
element: v.cloneNode()
|
|
4687
|
+
}), v.textContent = I)), Ge(B.afterSanitizeElements, v, null), !1);
|
|
4688
|
+
}, To = function(v, I, U) {
|
|
4686
4689
|
if (V[I] || bo && (I === "id" || I === "name") && (U in n || U in ac))
|
|
4687
4690
|
return !1;
|
|
4688
4691
|
if (!(ne && !V[I] && we(N, I))) {
|
|
4689
4692
|
if (!(Z && we(k, I))) {
|
|
4690
|
-
if (!(J.attributeCheck instanceof Function && J.attributeCheck(I,
|
|
4693
|
+
if (!(J.attributeCheck instanceof Function && J.attributeCheck(I, v))) {
|
|
4691
4694
|
if (!K[I] || V[I]) {
|
|
4692
4695
|
if (
|
|
4693
4696
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
4694
4697
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4695
4698
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
4696
|
-
!(Ro(
|
|
4699
|
+
!(Ro(v) && (Y.tagNameCheck instanceof RegExp && we(Y.tagNameCheck, v) || Y.tagNameCheck instanceof Function && Y.tagNameCheck(v)) && (Y.attributeNameCheck instanceof RegExp && we(Y.attributeNameCheck, I) || Y.attributeNameCheck instanceof Function && Y.attributeNameCheck(I, v)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
4697
4700
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4698
4701
|
I === "is" && Y.allowCustomizedBuiltInElements && (Y.tagNameCheck instanceof RegExp && we(Y.tagNameCheck, U) || Y.tagNameCheck instanceof Function && Y.tagNameCheck(U)))
|
|
4699
4702
|
) return !1;
|
|
4700
4703
|
} else if (!or[I]) {
|
|
4701
4704
|
if (!we(P, Rt(U, T, ""))) {
|
|
4702
|
-
if (!((I === "src" || I === "xlink:href" || I === "href") &&
|
|
4705
|
+
if (!((I === "src" || I === "xlink:href" || I === "href") && v !== "script" && jf(U, "data:") === 0 && vo[v])) {
|
|
4703
4706
|
if (!(re && !we(D, Rt(U, T, "")))) {
|
|
4704
4707
|
if (U)
|
|
4705
4708
|
return !1;
|
|
@@ -4711,14 +4714,14 @@ function ni() {
|
|
|
4711
4714
|
}
|
|
4712
4715
|
}
|
|
4713
4716
|
return !0;
|
|
4714
|
-
}, Ro = function(
|
|
4715
|
-
return
|
|
4716
|
-
}, Po = function(
|
|
4717
|
-
Ge(B.beforeSanitizeAttributes,
|
|
4717
|
+
}, Ro = function(v) {
|
|
4718
|
+
return v !== "annotation-xml" && Cr(v, R);
|
|
4719
|
+
}, Po = function(v) {
|
|
4720
|
+
Ge(B.beforeSanitizeAttributes, v, null);
|
|
4718
4721
|
const {
|
|
4719
4722
|
attributes: I
|
|
4720
|
-
} =
|
|
4721
|
-
if (!I || cr(
|
|
4723
|
+
} = v;
|
|
4724
|
+
if (!I || cr(v))
|
|
4722
4725
|
return;
|
|
4723
4726
|
const U = {
|
|
4724
4727
|
attrName: "",
|
|
@@ -4729,36 +4732,36 @@ function ni() {
|
|
|
4729
4732
|
};
|
|
4730
4733
|
let ue = I.length;
|
|
4731
4734
|
for (; ue--; ) {
|
|
4732
|
-
const
|
|
4735
|
+
const ye = I[ue], {
|
|
4733
4736
|
name: fe,
|
|
4734
4737
|
namespaceURI: Ce,
|
|
4735
4738
|
value: Ne
|
|
4736
|
-
} =
|
|
4739
|
+
} = ye, Qe = me(fe), ur = Ne;
|
|
4737
4740
|
let be = fe === "value" ? ur : Gf(ur);
|
|
4738
|
-
if (U.attrName = Qe, U.attrValue = be, U.keepAttr = !0, U.forceKeepAttr = void 0, Ge(B.uponSanitizeAttribute,
|
|
4739
|
-
ft(fe,
|
|
4741
|
+
if (U.attrName = Qe, U.attrValue = be, U.keepAttr = !0, U.forceKeepAttr = void 0, Ge(B.uponSanitizeAttribute, v, U), be = U.attrValue, yo && (Qe === "id" || Qe === "name") && (ft(fe, v), be = ec + be), he && we(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, be)) {
|
|
4742
|
+
ft(fe, v);
|
|
4740
4743
|
continue;
|
|
4741
4744
|
}
|
|
4742
4745
|
if (Qe === "attributename" && Cr(be, "href")) {
|
|
4743
|
-
ft(fe,
|
|
4746
|
+
ft(fe, v);
|
|
4744
4747
|
continue;
|
|
4745
4748
|
}
|
|
4746
4749
|
if (U.forceKeepAttr)
|
|
4747
4750
|
continue;
|
|
4748
4751
|
if (!U.keepAttr) {
|
|
4749
|
-
ft(fe,
|
|
4752
|
+
ft(fe, v);
|
|
4750
4753
|
continue;
|
|
4751
4754
|
}
|
|
4752
4755
|
if (!se && we(/\/>/i, be)) {
|
|
4753
|
-
ft(fe,
|
|
4756
|
+
ft(fe, v);
|
|
4754
4757
|
continue;
|
|
4755
4758
|
}
|
|
4756
4759
|
le && Ht([G, M, F], (Mo) => {
|
|
4757
4760
|
be = Rt(be, Mo, " ");
|
|
4758
4761
|
});
|
|
4759
|
-
const _o = me(
|
|
4762
|
+
const _o = me(v.nodeName);
|
|
4760
4763
|
if (!To(_o, Qe, be)) {
|
|
4761
|
-
ft(fe,
|
|
4764
|
+
ft(fe, v);
|
|
4762
4765
|
continue;
|
|
4763
4766
|
}
|
|
4764
4767
|
if (w && typeof m == "object" && typeof m.getAttributeType == "function" && !Ce)
|
|
@@ -4774,21 +4777,21 @@ function ni() {
|
|
|
4774
4777
|
}
|
|
4775
4778
|
if (be !== ur)
|
|
4776
4779
|
try {
|
|
4777
|
-
Ce ?
|
|
4780
|
+
Ce ? v.setAttributeNS(Ce, fe, be) : v.setAttribute(fe, be), cr(v) ? _e(v) : la(t.removed);
|
|
4778
4781
|
} catch {
|
|
4779
|
-
ft(fe,
|
|
4782
|
+
ft(fe, v);
|
|
4780
4783
|
}
|
|
4781
4784
|
}
|
|
4782
|
-
Ge(B.afterSanitizeAttributes,
|
|
4783
|
-
}, Oo = function(
|
|
4785
|
+
Ge(B.afterSanitizeAttributes, v, null);
|
|
4786
|
+
}, Oo = function(v) {
|
|
4784
4787
|
let I = null;
|
|
4785
|
-
const U = ko(
|
|
4786
|
-
for (Ge(B.beforeSanitizeShadowDOM,
|
|
4788
|
+
const U = ko(v);
|
|
4789
|
+
for (Ge(B.beforeSanitizeShadowDOM, v, null); I = U.nextNode(); )
|
|
4787
4790
|
Ge(B.uponSanitizeShadowNode, I, null), Ao(I), Po(I), I.content instanceof a && Oo(I.content);
|
|
4788
|
-
Ge(B.afterSanitizeShadowDOM,
|
|
4791
|
+
Ge(B.afterSanitizeShadowDOM, v, null);
|
|
4789
4792
|
};
|
|
4790
4793
|
return t.sanitize = function(j) {
|
|
4791
|
-
let
|
|
4794
|
+
let v = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, I = null, U = null, ue = null, ye = null;
|
|
4792
4795
|
if (ar = !j, ar && (j = "<!-->"), typeof j != "string" && !lr(j))
|
|
4793
4796
|
if (typeof j.toString == "function") {
|
|
4794
4797
|
if (j = j.toString(), typeof j != "string")
|
|
@@ -4797,7 +4800,7 @@ function ni() {
|
|
|
4797
4800
|
throw Ut("toString is not a function");
|
|
4798
4801
|
if (!t.isSupported)
|
|
4799
4802
|
return j;
|
|
4800
|
-
if (ut || ir(
|
|
4803
|
+
if (ut || ir(v), t.removed = [], typeof j == "string" && (zt = !1), zt) {
|
|
4801
4804
|
if (j.nodeName) {
|
|
4802
4805
|
const Ne = me(j.nodeName);
|
|
4803
4806
|
if (!q[Ne] || oe[Ne])
|
|
@@ -4827,11 +4830,11 @@ function ni() {
|
|
|
4827
4830
|
}), I.innerHTML = Ne;
|
|
4828
4831
|
}
|
|
4829
4832
|
if (sn)
|
|
4830
|
-
for (
|
|
4831
|
-
|
|
4833
|
+
for (ye = O.call(I.ownerDocument); I.firstChild; )
|
|
4834
|
+
ye.appendChild(I.firstChild);
|
|
4832
4835
|
else
|
|
4833
|
-
|
|
4834
|
-
return (K.shadowroot || K.shadowrootmode) && (
|
|
4836
|
+
ye = I;
|
|
4837
|
+
return (K.shadowroot || K.shadowrootmode) && (ye = z.call(r, ye, !0)), ye;
|
|
4835
4838
|
}
|
|
4836
4839
|
let Ce = Oe ? I.outerHTML : I.innerHTML;
|
|
4837
4840
|
return Oe && q["!doctype"] && I.ownerDocument && I.ownerDocument.doctype && I.ownerDocument.doctype.name && we(ti, I.ownerDocument.doctype.name) && (Ce = "<!DOCTYPE " + I.ownerDocument.doctype.name + `>
|
|
@@ -4843,15 +4846,15 @@ function ni() {
|
|
|
4843
4846
|
ir(j), ut = !0;
|
|
4844
4847
|
}, t.clearConfig = function() {
|
|
4845
4848
|
Et = null, ut = !1;
|
|
4846
|
-
}, t.isValidAttribute = function(j,
|
|
4849
|
+
}, t.isValidAttribute = function(j, v, I) {
|
|
4847
4850
|
Et || ir({});
|
|
4848
|
-
const U = me(j), ue = me(
|
|
4851
|
+
const U = me(j), ue = me(v);
|
|
4849
4852
|
return To(U, ue, I);
|
|
4850
|
-
}, t.addHook = function(j,
|
|
4851
|
-
typeof
|
|
4852
|
-
}, t.removeHook = function(j,
|
|
4853
|
-
if (
|
|
4854
|
-
const I = Uf(B[j],
|
|
4853
|
+
}, t.addHook = function(j, v) {
|
|
4854
|
+
typeof v == "function" && Bt(B[j], v);
|
|
4855
|
+
}, t.removeHook = function(j, v) {
|
|
4856
|
+
if (v !== void 0) {
|
|
4857
|
+
const I = Uf(B[j], v);
|
|
4855
4858
|
return I === -1 ? void 0 : Vf(B[j], I, 1)[0];
|
|
4856
4859
|
}
|
|
4857
4860
|
return la(B[j]);
|
|
@@ -5031,11 +5034,11 @@ function lm({
|
|
|
5031
5034
|
const h = (S) => {
|
|
5032
5035
|
const E = Math.max(150, Math.min(600, u + S.movementY));
|
|
5033
5036
|
d(E);
|
|
5034
|
-
},
|
|
5037
|
+
}, y = () => {
|
|
5035
5038
|
g(!1);
|
|
5036
5039
|
};
|
|
5037
|
-
return document.body.style.userSelect = "none", document.body.style.cursor = "ns-resize", document.addEventListener("mousemove", h), document.addEventListener("mouseup",
|
|
5038
|
-
document.body.style.userSelect = "", document.body.style.cursor = "", document.removeEventListener("mousemove", h), document.removeEventListener("mouseup",
|
|
5040
|
+
return document.body.style.userSelect = "none", document.body.style.cursor = "ns-resize", document.addEventListener("mousemove", h), document.addEventListener("mouseup", y), () => {
|
|
5041
|
+
document.body.style.userSelect = "", document.body.style.cursor = "", document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", y);
|
|
5039
5042
|
};
|
|
5040
5043
|
}, [p, u]);
|
|
5041
5044
|
const b = dc({
|
|
@@ -5053,8 +5056,8 @@ function lm({
|
|
|
5053
5056
|
content: im.sanitize(c),
|
|
5054
5057
|
editable: !s,
|
|
5055
5058
|
onUpdate: ({ editor: h }) => {
|
|
5056
|
-
const
|
|
5057
|
-
n(e.name, S ? "" :
|
|
5059
|
+
const y = h.getHTML(), S = h.getText().trim().length === 0;
|
|
5060
|
+
n(e.name, S ? "" : y);
|
|
5058
5061
|
},
|
|
5059
5062
|
onBlur: () => {
|
|
5060
5063
|
r(e.name);
|
|
@@ -5132,7 +5135,7 @@ function um({
|
|
|
5132
5135
|
setCharCounts: d,
|
|
5133
5136
|
fileInputRefs: p,
|
|
5134
5137
|
...g
|
|
5135
|
-
} = s, m = a, b = e.options || [], h = e.inline || e.layout === "inline",
|
|
5138
|
+
} = s, m = a, b = e.options || [], h = e.inline || e.layout === "inline", y = g["aria-describedby"], S = `
|
|
5136
5139
|
size-4 rounded border-input bg-background transition-all accent-primary
|
|
5137
5140
|
focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2
|
|
5138
5141
|
disabled:cursor-not-allowed disabled:opacity-50
|
|
@@ -5147,7 +5150,7 @@ function um({
|
|
|
5147
5150
|
{
|
|
5148
5151
|
className: "mt-2",
|
|
5149
5152
|
"aria-invalid": !!o,
|
|
5150
|
-
"aria-describedby": o ?
|
|
5153
|
+
"aria-describedby": o ? y : void 0,
|
|
5151
5154
|
children: [
|
|
5152
5155
|
/* @__PURE__ */ l("legend", { className: "sr-only", children: e.label }),
|
|
5153
5156
|
/* @__PURE__ */ l(
|
|
@@ -5280,7 +5283,7 @@ function mm(e, ...t) {
|
|
|
5280
5283
|
);
|
|
5281
5284
|
return t.map(n);
|
|
5282
5285
|
}
|
|
5283
|
-
function
|
|
5286
|
+
function ya(e, t) {
|
|
5284
5287
|
const n = $e(e, t?.in);
|
|
5285
5288
|
return n.setHours(0, 0, 0, 0), n;
|
|
5286
5289
|
}
|
|
@@ -5289,7 +5292,7 @@ function pm(e, t, n) {
|
|
|
5289
5292
|
n?.in,
|
|
5290
5293
|
e,
|
|
5291
5294
|
t
|
|
5292
|
-
), a =
|
|
5295
|
+
), a = ya(r), s = ya(o), i = +a - ba(a), c = +s - ba(s);
|
|
5293
5296
|
return Math.round((i - c) / dm);
|
|
5294
5297
|
}
|
|
5295
5298
|
function hm(e, t) {
|
|
@@ -5306,7 +5309,7 @@ function bm(e, t) {
|
|
|
5306
5309
|
const n = $e(e, t?.in);
|
|
5307
5310
|
return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
5308
5311
|
}
|
|
5309
|
-
const
|
|
5312
|
+
const ym = {
|
|
5310
5313
|
lessThanXSeconds: {
|
|
5311
5314
|
one: "less than a second",
|
|
5312
5315
|
other: "less than {{count}} seconds"
|
|
@@ -5368,9 +5371,9 @@ const vm = {
|
|
|
5368
5371
|
one: "almost 1 year",
|
|
5369
5372
|
other: "almost {{count}} years"
|
|
5370
5373
|
}
|
|
5371
|
-
},
|
|
5374
|
+
}, vm = (e, t, n) => {
|
|
5372
5375
|
let r;
|
|
5373
|
-
const o =
|
|
5376
|
+
const o = ym[e];
|
|
5374
5377
|
return typeof o == "string" ? r = o : t === 1 ? r = o.one : r = o.other.replace("{{count}}", t.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
5375
5378
|
};
|
|
5376
5379
|
function Tr(e) {
|
|
@@ -5727,7 +5730,7 @@ const Fm = /^(\d+)(th|st|nd|rd)?/i, $m = /\d+/i, zm = {
|
|
|
5727
5730
|
})
|
|
5728
5731
|
}, Xm = {
|
|
5729
5732
|
code: "en-US",
|
|
5730
|
-
formatDistance:
|
|
5733
|
+
formatDistance: vm,
|
|
5731
5734
|
formatLong: Cm,
|
|
5732
5735
|
formatRelative: Nm,
|
|
5733
5736
|
localize: Mm,
|
|
@@ -5825,7 +5828,7 @@ const Ze = {
|
|
|
5825
5828
|
afternoon: "afternoon",
|
|
5826
5829
|
evening: "evening",
|
|
5827
5830
|
night: "night"
|
|
5828
|
-
},
|
|
5831
|
+
}, va = {
|
|
5829
5832
|
// Era
|
|
5830
5833
|
G: function(e, t, n) {
|
|
5831
5834
|
const r = e.getFullYear() > 0 ? 1 : 0;
|
|
@@ -6434,7 +6437,7 @@ function Mn(e, t, n) {
|
|
|
6434
6437
|
const p = d[0];
|
|
6435
6438
|
if (p === "'")
|
|
6436
6439
|
return { isToken: !1, value: hp(d) };
|
|
6437
|
-
if (
|
|
6440
|
+
if (va[p])
|
|
6438
6441
|
return { isToken: !0, value: d };
|
|
6439
6442
|
if (p.match(pp))
|
|
6440
6443
|
throw new RangeError(
|
|
@@ -6452,7 +6455,7 @@ function Mn(e, t, n) {
|
|
|
6452
6455
|
if (!d.isToken) return d.value;
|
|
6453
6456
|
const p = d.value;
|
|
6454
6457
|
(ip(p) || sp(p)) && cp(p, t, String(e));
|
|
6455
|
-
const g =
|
|
6458
|
+
const g = va[p[0]];
|
|
6456
6459
|
return g(i, p, o.localize, u);
|
|
6457
6460
|
}).join("");
|
|
6458
6461
|
}
|
|
@@ -6464,7 +6467,7 @@ function gp(e, t) {
|
|
|
6464
6467
|
return f.useReducer((n, r) => t[n][r] ?? n, e);
|
|
6465
6468
|
}
|
|
6466
6469
|
var qn = (e) => {
|
|
6467
|
-
const { present: t, children: n } = e, r = bp(t), o = typeof n == "function" ? n({ present: r.isPresent }) : f.Children.only(n), a = de(r.ref,
|
|
6470
|
+
const { present: t, children: n } = e, r = bp(t), o = typeof n == "function" ? n({ present: r.isPresent }) : f.Children.only(n), a = de(r.ref, yp(o));
|
|
6468
6471
|
return typeof n == "function" || r.isPresent ? f.cloneElement(o, { ref: a }) : null;
|
|
6469
6472
|
};
|
|
6470
6473
|
qn.displayName = "Presence";
|
|
@@ -6483,27 +6486,27 @@ function bp(e) {
|
|
|
6483
6486
|
}
|
|
6484
6487
|
});
|
|
6485
6488
|
return f.useEffect(() => {
|
|
6486
|
-
const u =
|
|
6489
|
+
const u = vn(r.current);
|
|
6487
6490
|
a.current = i === "mounted" ? u : "none";
|
|
6488
|
-
}, [i]),
|
|
6491
|
+
}, [i]), ve(() => {
|
|
6489
6492
|
const u = r.current, d = o.current;
|
|
6490
6493
|
if (d !== e) {
|
|
6491
|
-
const g = a.current, m =
|
|
6494
|
+
const g = a.current, m = vn(u);
|
|
6492
6495
|
e ? c("MOUNT") : m === "none" || u?.display === "none" ? c("UNMOUNT") : c(d && g !== m ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
|
|
6493
6496
|
}
|
|
6494
|
-
}, [e, c]),
|
|
6497
|
+
}, [e, c]), ve(() => {
|
|
6495
6498
|
if (t) {
|
|
6496
6499
|
let u;
|
|
6497
6500
|
const d = t.ownerDocument.defaultView ?? window, p = (m) => {
|
|
6498
|
-
const h =
|
|
6501
|
+
const h = vn(r.current).includes(CSS.escape(m.animationName));
|
|
6499
6502
|
if (m.target === t && h && (c("ANIMATION_END"), !o.current)) {
|
|
6500
|
-
const
|
|
6503
|
+
const y = t.style.animationFillMode;
|
|
6501
6504
|
t.style.animationFillMode = "forwards", u = d.setTimeout(() => {
|
|
6502
|
-
t.style.animationFillMode === "forwards" && (t.style.animationFillMode =
|
|
6505
|
+
t.style.animationFillMode === "forwards" && (t.style.animationFillMode = y);
|
|
6503
6506
|
});
|
|
6504
6507
|
}
|
|
6505
6508
|
}, g = (m) => {
|
|
6506
|
-
m.target === t && (a.current =
|
|
6509
|
+
m.target === t && (a.current = vn(r.current));
|
|
6507
6510
|
};
|
|
6508
6511
|
return t.addEventListener("animationstart", g), t.addEventListener("animationcancel", p), t.addEventListener("animationend", p), () => {
|
|
6509
6512
|
d.clearTimeout(u), t.removeEventListener("animationstart", g), t.removeEventListener("animationcancel", p), t.removeEventListener("animationend", p);
|
|
@@ -6517,14 +6520,14 @@ function bp(e) {
|
|
|
6517
6520
|
}, [])
|
|
6518
6521
|
};
|
|
6519
6522
|
}
|
|
6520
|
-
function
|
|
6523
|
+
function vn(e) {
|
|
6521
6524
|
return e?.animationName || "none";
|
|
6522
6525
|
}
|
|
6523
|
-
function
|
|
6526
|
+
function yp(e) {
|
|
6524
6527
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
6525
6528
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
6526
6529
|
}
|
|
6527
|
-
var
|
|
6530
|
+
var vp = [
|
|
6528
6531
|
"a",
|
|
6529
6532
|
"button",
|
|
6530
6533
|
"div",
|
|
@@ -6542,13 +6545,13 @@ var yp = [
|
|
|
6542
6545
|
"span",
|
|
6543
6546
|
"svg",
|
|
6544
6547
|
"ul"
|
|
6545
|
-
], ii =
|
|
6548
|
+
], ii = vp.reduce((e, t) => {
|
|
6546
6549
|
const n = /* @__PURE__ */ Ee(`Primitive.${t}`), r = f.forwardRef((o, a) => {
|
|
6547
6550
|
const { asChild: s, ...i } = o, c = s ? n : t;
|
|
6548
6551
|
return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ l(c, { ...i, ref: a });
|
|
6549
6552
|
});
|
|
6550
6553
|
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
6551
|
-
}, {}), Kn = "Popover", [ci] =
|
|
6554
|
+
}, {}), Kn = "Popover", [ci] = vt(Kn, [
|
|
6552
6555
|
Bn
|
|
6553
6556
|
]), on = Bn(), [wp, ct] = ci(Kn), li = (e) => {
|
|
6554
6557
|
const {
|
|
@@ -6757,17 +6760,17 @@ function bi(e) {
|
|
|
6757
6760
|
return e ? "open" : "closed";
|
|
6758
6761
|
}
|
|
6759
6762
|
var Pp = li, Op = fi, _p = mi, Mp = pi;
|
|
6760
|
-
function
|
|
6763
|
+
function yi(e) {
|
|
6761
6764
|
var t, n, r = "";
|
|
6762
6765
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
6763
6766
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
6764
6767
|
var o = e.length;
|
|
6765
|
-
for (t = 0; t < o; t++) e[t] && (n =
|
|
6768
|
+
for (t = 0; t < o; t++) e[t] && (n = yi(e[t])) && (r && (r += " "), r += n);
|
|
6766
6769
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
6767
6770
|
return r;
|
|
6768
6771
|
}
|
|
6769
6772
|
function Dp() {
|
|
6770
|
-
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t =
|
|
6773
|
+
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = yi(e)) && (r && (r += " "), r += t);
|
|
6771
6774
|
return r;
|
|
6772
6775
|
}
|
|
6773
6776
|
const Ip = (e, t) => {
|
|
@@ -6780,7 +6783,7 @@ const Ip = (e, t) => {
|
|
|
6780
6783
|
}, Lp = (e, t) => ({
|
|
6781
6784
|
classGroupId: e,
|
|
6782
6785
|
validator: t
|
|
6783
|
-
}),
|
|
6786
|
+
}), vi = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
|
|
6784
6787
|
nextPart: e,
|
|
6785
6788
|
validators: t,
|
|
6786
6789
|
classGroupId: n
|
|
@@ -6831,7 +6834,7 @@ const Ip = (e, t) => {
|
|
|
6831
6834
|
} = e;
|
|
6832
6835
|
return Hp(n, t);
|
|
6833
6836
|
}, Hp = (e, t) => {
|
|
6834
|
-
const n =
|
|
6837
|
+
const n = vi();
|
|
6835
6838
|
for (const r in e) {
|
|
6836
6839
|
const o = e[r];
|
|
6837
6840
|
po(o, n, r, t);
|
|
@@ -6874,7 +6877,7 @@ const Ip = (e, t) => {
|
|
|
6874
6877
|
for (let a = 0; a < o; a++) {
|
|
6875
6878
|
const s = r[a];
|
|
6876
6879
|
let i = n.nextPart.get(s);
|
|
6877
|
-
i || (i =
|
|
6880
|
+
i || (i = vi(), n.nextPart.set(s, i)), n = i;
|
|
6878
6881
|
}
|
|
6879
6882
|
return n;
|
|
6880
6883
|
}, Gp = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Yp = (e) => {
|
|
@@ -6917,18 +6920,18 @@ const Ip = (e, t) => {
|
|
|
6917
6920
|
let s = 0, i = 0, c = 0, u;
|
|
6918
6921
|
const d = o.length;
|
|
6919
6922
|
for (let h = 0; h < d; h++) {
|
|
6920
|
-
const
|
|
6923
|
+
const y = o[h];
|
|
6921
6924
|
if (s === 0 && i === 0) {
|
|
6922
|
-
if (
|
|
6925
|
+
if (y === Ea) {
|
|
6923
6926
|
a.push(o.slice(c, h)), c = h + 1;
|
|
6924
6927
|
continue;
|
|
6925
6928
|
}
|
|
6926
|
-
if (
|
|
6929
|
+
if (y === "/") {
|
|
6927
6930
|
u = h;
|
|
6928
6931
|
continue;
|
|
6929
6932
|
}
|
|
6930
6933
|
}
|
|
6931
|
-
|
|
6934
|
+
y === "[" ? s++ : y === "]" ? s-- : y === "(" ? i++ : y === ")" && i--;
|
|
6932
6935
|
}
|
|
6933
6936
|
const p = a.length === 0 ? o : o.slice(c);
|
|
6934
6937
|
let g = p, m = !1;
|
|
@@ -6992,9 +6995,9 @@ const Ip = (e, t) => {
|
|
|
6992
6995
|
c = d + (c.length > 0 ? " " + c : c);
|
|
6993
6996
|
continue;
|
|
6994
6997
|
}
|
|
6995
|
-
let
|
|
6998
|
+
let y = !!h, S = r(y ? b.substring(0, h) : b);
|
|
6996
6999
|
if (!S) {
|
|
6997
|
-
if (!
|
|
7000
|
+
if (!y) {
|
|
6998
7001
|
c = d + (c.length > 0 ? " " + c : c);
|
|
6999
7002
|
continue;
|
|
7000
7003
|
}
|
|
@@ -7002,13 +7005,13 @@ const Ip = (e, t) => {
|
|
|
7002
7005
|
c = d + (c.length > 0 ? " " + c : c);
|
|
7003
7006
|
continue;
|
|
7004
7007
|
}
|
|
7005
|
-
|
|
7008
|
+
y = !1;
|
|
7006
7009
|
}
|
|
7007
7010
|
const E = g.length === 0 ? "" : g.length === 1 ? g[0] : a(g).join(":"), C = m ? E + jr : E, w = C + S;
|
|
7008
7011
|
if (s.indexOf(w) > -1)
|
|
7009
7012
|
continue;
|
|
7010
7013
|
s.push(w);
|
|
7011
|
-
const x = o(S,
|
|
7014
|
+
const x = o(S, y);
|
|
7012
7015
|
for (let A = 0; A < x.length; ++A) {
|
|
7013
7016
|
const _ = x[A];
|
|
7014
7017
|
s.push(C + _);
|
|
@@ -7049,14 +7052,14 @@ const Ip = (e, t) => {
|
|
|
7049
7052
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
7050
7053
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
7051
7054
|
ah.test(e) && !sh.test(e)
|
|
7052
|
-
), ho = () => !1, uh = (e) => ih.test(e), dh = (e) => ch.test(e), fh = (e) => !W(e) && !H(e), mh = (e) => lt(e, Ti, ho), W = (e) => Ci.test(e), pt = (e) => lt(e, Ri, lh), ka = (e) => lt(e, xh, X), ph = (e) => lt(e, Oi, Ni), hh = (e) => lt(e, Pi, ho), Aa = (e) => lt(e, ki, ho), gh = (e) => lt(e, Ai, dh), wn = (e) => lt(e, _i, uh), H = (e) => Ei.test(e), qt = (e) => wt(e, Ri), bh = (e) => wt(e, Pi), Ta = (e) => wt(e, ki),
|
|
7055
|
+
), ho = () => !1, uh = (e) => ih.test(e), dh = (e) => ch.test(e), fh = (e) => !W(e) && !H(e), mh = (e) => lt(e, Ti, ho), W = (e) => Ci.test(e), pt = (e) => lt(e, Ri, lh), ka = (e) => lt(e, xh, X), ph = (e) => lt(e, Oi, Ni), hh = (e) => lt(e, Pi, ho), Aa = (e) => lt(e, ki, ho), gh = (e) => lt(e, Ai, dh), wn = (e) => lt(e, _i, uh), H = (e) => Ei.test(e), qt = (e) => wt(e, Ri), bh = (e) => wt(e, Pi), Ta = (e) => wt(e, ki), yh = (e) => wt(e, Ti), vh = (e) => wt(e, Ai), xn = (e) => wt(e, _i, !0), wh = (e) => wt(e, Oi, !0), lt = (e, t, n) => {
|
|
7053
7056
|
const r = Ci.exec(e);
|
|
7054
7057
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
7055
7058
|
}, wt = (e, t, n = !1) => {
|
|
7056
7059
|
const r = Ei.exec(e);
|
|
7057
7060
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
7058
7061
|
}, ki = (e) => e === "position" || e === "percentage", Ai = (e) => e === "image" || e === "url", Ti = (e) => e === "length" || e === "size" || e === "bg-size", Ri = (e) => e === "length", xh = (e) => e === "number", Pi = (e) => e === "family-name", Oi = (e) => e === "number" || e === "weight", _i = (e) => e === "shadow", Sh = () => {
|
|
7059
|
-
const e = pe("color"), t = pe("font"), n = pe("text"), r = pe("font-weight"), o = pe("tracking"), a = pe("leading"), s = pe("breakpoint"), i = pe("container"), c = pe("spacing"), u = pe("radius"), d = pe("shadow"), p = pe("inset-shadow"), g = pe("text-shadow"), m = pe("drop-shadow"), b = pe("blur"), h = pe("perspective"),
|
|
7062
|
+
const e = pe("color"), t = pe("font"), n = pe("text"), r = pe("font-weight"), o = pe("tracking"), a = pe("leading"), s = pe("breakpoint"), i = pe("container"), c = pe("spacing"), u = pe("radius"), d = pe("shadow"), p = pe("inset-shadow"), g = pe("text-shadow"), m = pe("drop-shadow"), b = pe("blur"), h = pe("perspective"), y = pe("aspect"), S = pe("ease"), E = pe("animate"), C = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], w = () => [
|
|
7060
7063
|
"center",
|
|
7061
7064
|
"top",
|
|
7062
7065
|
"bottom",
|
|
@@ -7080,7 +7083,7 @@ const Ip = (e, t) => {
|
|
|
7080
7083
|
position: [H, W]
|
|
7081
7084
|
}], te = () => ["no-repeat", {
|
|
7082
7085
|
repeat: ["", "x", "y", "space", "round"]
|
|
7083
|
-
}], K = () => ["auto", "cover", "contain",
|
|
7086
|
+
}], K = () => ["auto", "cover", "contain", yh, mh, {
|
|
7084
7087
|
size: [H, W]
|
|
7085
7088
|
}], ge = () => [Rr, qt, pt], Y = () => [
|
|
7086
7089
|
// Deprecated since Tailwind CSS v4.0.0
|
|
@@ -7130,7 +7133,7 @@ const Ip = (e, t) => {
|
|
|
7130
7133
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
7131
7134
|
*/
|
|
7132
7135
|
aspect: [{
|
|
7133
|
-
aspect: ["auto", "square", Je, W, H,
|
|
7136
|
+
aspect: ["auto", "square", Je, W, H, y]
|
|
7134
7137
|
}],
|
|
7135
7138
|
/**
|
|
7136
7139
|
* Container
|
|
@@ -8179,7 +8182,7 @@ const Ip = (e, t) => {
|
|
|
8179
8182
|
}, et, H, W],
|
|
8180
8183
|
radial: ["", H, W],
|
|
8181
8184
|
conic: [et, H, W]
|
|
8182
|
-
},
|
|
8185
|
+
}, vh, gh]
|
|
8183
8186
|
}],
|
|
8184
8187
|
/**
|
|
8185
8188
|
* Background Color
|
|
@@ -9735,7 +9738,7 @@ function Eh({
|
|
|
9735
9738
|
const [, E, C, w] = h, x = new Date(Number(E), Number(C) - 1, Number(w));
|
|
9736
9739
|
return Qt(x) ? x : void 0;
|
|
9737
9740
|
}
|
|
9738
|
-
const
|
|
9741
|
+
const y = m.includes("T") ? m : m.replace(" ", "T"), S = new Date(y);
|
|
9739
9742
|
return Qt(S) ? S : void 0;
|
|
9740
9743
|
}
|
|
9741
9744
|
const b = new Date(m);
|
|
@@ -9868,8 +9871,8 @@ function Ra({
|
|
|
9868
9871
|
api_URL: i,
|
|
9869
9872
|
disabled: c
|
|
9870
9873
|
}) {
|
|
9871
|
-
const u = c, d = e.type === "multifile", p = r?.[e.name] || {}, g = t[e.name], m = d ? g || [] : [g].filter(Boolean), [b, h] = ce(!1),
|
|
9872
|
-
!
|
|
9874
|
+
const u = c, d = e.type === "multifile", p = r?.[e.name] || {}, g = t[e.name], m = d ? g || [] : [g].filter(Boolean), [b, h] = ce(!1), y = i ? `${i}uploads` : null;
|
|
9875
|
+
!y && e.uploadEndpoint && console.error(
|
|
9873
9876
|
`api_URL prop is required when using FileField with upload functionality for field "${e.name}"`
|
|
9874
9877
|
);
|
|
9875
9878
|
const S = (M) => {
|
|
@@ -9879,7 +9882,7 @@ function Ra({
|
|
|
9879
9882
|
}, E = async (M) => {
|
|
9880
9883
|
const F = new FormData();
|
|
9881
9884
|
F.append("file", M);
|
|
9882
|
-
const N = await fetch(`${
|
|
9885
|
+
const N = await fetch(`${y}`, {
|
|
9883
9886
|
method: "POST",
|
|
9884
9887
|
body: F
|
|
9885
9888
|
});
|
|
@@ -10125,7 +10128,7 @@ function kh({ field: e, formValues: t, handleChange: n, handleBlur: r, error: o
|
|
|
10125
10128
|
}, h = () => {
|
|
10126
10129
|
let A = parseInt(d);
|
|
10127
10130
|
A = A % 12 + 1, b(A.toString(), p, g);
|
|
10128
|
-
},
|
|
10131
|
+
}, y = () => {
|
|
10129
10132
|
let A = parseInt(d);
|
|
10130
10133
|
A = A === 1 ? 12 : A - 1, b(A.toString(), p, g);
|
|
10131
10134
|
}, S = () => {
|
|
@@ -10223,7 +10226,7 @@ function kh({ field: e, formValues: t, handleChange: n, handleBlur: r, error: o
|
|
|
10223
10226
|
/* @__PURE__ */ L("div", { className: "flex flex-col items-center gap-1", children: [
|
|
10224
10227
|
/* @__PURE__ */ l("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__ */ l("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__ */ l("path", { d: "m18 15-6-6-6 6" }) }) }),
|
|
10225
10228
|
/* @__PURE__ */ l("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: d }),
|
|
10226
|
-
/* @__PURE__ */ l("button", { type: "button", onClick:
|
|
10229
|
+
/* @__PURE__ */ l("button", { type: "button", onClick: y, 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__ */ l("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__ */ l("path", { d: "m6 9 6 6 6-6" }) }) })
|
|
10227
10230
|
] }),
|
|
10228
10231
|
/* @__PURE__ */ l("span", { className: "text-xl font-medium text-slate-300 pb-1", children: ":" }),
|
|
10229
10232
|
/* @__PURE__ */ L("div", { className: "flex flex-col items-center gap-1", children: [
|
|
@@ -10448,7 +10451,7 @@ var Bh = [
|
|
|
10448
10451
|
return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ l(c, { ...i, ref: a });
|
|
10449
10452
|
});
|
|
10450
10453
|
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
10451
|
-
}, {}), Or = "rovingFocusGroup.onEntryFocus", Vh = { bubbles: !1, cancelable: !0 }, an = "RovingFocusGroup", [Gr, Li, jh] = La(an), [Gh, Fi] =
|
|
10454
|
+
}, {}), Or = "rovingFocusGroup.onEntryFocus", Vh = { bubbles: !1, cancelable: !0 }, an = "RovingFocusGroup", [Gr, Li, jh] = La(an), [Gh, Fi] = vt(
|
|
10452
10455
|
an,
|
|
10453
10456
|
[jh]
|
|
10454
10457
|
), [Yh, qh] = Gh(an), $i = f.forwardRef(
|
|
@@ -10467,7 +10470,7 @@ var Kh = f.forwardRef((e, t) => {
|
|
|
10467
10470
|
onEntryFocus: u,
|
|
10468
10471
|
preventScrollOnEntryFocus: d = !1,
|
|
10469
10472
|
...p
|
|
10470
|
-
} = e, g = f.useRef(null), m = de(t, g), b = Qr(a), [h,
|
|
10473
|
+
} = e, g = f.useRef(null), m = de(t, g), b = Qr(a), [h, y] = en({
|
|
10471
10474
|
prop: s,
|
|
10472
10475
|
defaultProp: i ?? null,
|
|
10473
10476
|
onChange: c,
|
|
@@ -10486,8 +10489,8 @@ var Kh = f.forwardRef((e, t) => {
|
|
|
10486
10489
|
loop: o,
|
|
10487
10490
|
currentTabStopId: h,
|
|
10488
10491
|
onItemFocus: f.useCallback(
|
|
10489
|
-
(O) =>
|
|
10490
|
-
[
|
|
10492
|
+
(O) => y(O),
|
|
10493
|
+
[y]
|
|
10491
10494
|
),
|
|
10492
10495
|
onItemShiftTab: f.useCallback(() => E(!0), []),
|
|
10493
10496
|
onFocusableItemAdd: f.useCallback(
|
|
@@ -10554,25 +10557,25 @@ var Kh = f.forwardRef((e, t) => {
|
|
|
10554
10557
|
"data-orientation": d.orientation,
|
|
10555
10558
|
...i,
|
|
10556
10559
|
ref: t,
|
|
10557
|
-
onMouseDown: ee(e.onMouseDown, (
|
|
10558
|
-
r ? d.onItemFocus(u) :
|
|
10560
|
+
onMouseDown: ee(e.onMouseDown, (y) => {
|
|
10561
|
+
r ? d.onItemFocus(u) : y.preventDefault();
|
|
10559
10562
|
}),
|
|
10560
10563
|
onFocus: ee(e.onFocus, () => d.onItemFocus(u)),
|
|
10561
|
-
onKeyDown: ee(e.onKeyDown, (
|
|
10562
|
-
if (
|
|
10564
|
+
onKeyDown: ee(e.onKeyDown, (y) => {
|
|
10565
|
+
if (y.key === "Tab" && y.shiftKey) {
|
|
10563
10566
|
d.onItemShiftTab();
|
|
10564
10567
|
return;
|
|
10565
10568
|
}
|
|
10566
|
-
if (
|
|
10567
|
-
const S = Zh(
|
|
10569
|
+
if (y.target !== y.currentTarget) return;
|
|
10570
|
+
const S = Zh(y, d.orientation, d.dir);
|
|
10568
10571
|
if (S !== void 0) {
|
|
10569
|
-
if (
|
|
10570
|
-
|
|
10572
|
+
if (y.metaKey || y.ctrlKey || y.altKey || y.shiftKey) return;
|
|
10573
|
+
y.preventDefault();
|
|
10571
10574
|
let C = g().filter((w) => w.focusable).map((w) => w.ref.current);
|
|
10572
10575
|
if (S === "last") C.reverse();
|
|
10573
10576
|
else if (S === "prev" || S === "next") {
|
|
10574
10577
|
S === "prev" && C.reverse();
|
|
10575
|
-
const w = C.indexOf(
|
|
10578
|
+
const w = C.indexOf(y.currentTarget);
|
|
10576
10579
|
C = d.loop ? Jh(C, w + 1) : C.slice(w + 1);
|
|
10577
10580
|
}
|
|
10578
10581
|
setTimeout(() => Hi(C));
|
|
@@ -10612,7 +10615,7 @@ function Hi(e, t = !1) {
|
|
|
10612
10615
|
function Jh(e, t) {
|
|
10613
10616
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
10614
10617
|
}
|
|
10615
|
-
var eg = $i, tg = Wi, go = "Radio", [ng, Bi] =
|
|
10618
|
+
var eg = $i, tg = Wi, go = "Radio", [ng, Bi] = vt(go), [rg, og] = ng(go), Ui = f.forwardRef(
|
|
10616
10619
|
(e, t) => {
|
|
10617
10620
|
const {
|
|
10618
10621
|
__scopeRadio: n,
|
|
@@ -10624,7 +10627,7 @@ var eg = $i, tg = Wi, go = "Radio", [ng, Bi] = yt(go), [rg, og] = ng(go), Ui = f
|
|
|
10624
10627
|
onCheck: c,
|
|
10625
10628
|
form: u,
|
|
10626
10629
|
...d
|
|
10627
|
-
} = e, [p, g] = f.useState(null), m = de(t, (
|
|
10630
|
+
} = e, [p, g] = f.useState(null), m = de(t, (y) => g(y)), b = f.useRef(!1), h = p ? u || !!p.closest("form") : !0;
|
|
10628
10631
|
return /* @__PURE__ */ L(rg, { scope: n, checked: o, disabled: s, children: [
|
|
10629
10632
|
/* @__PURE__ */ l(
|
|
10630
10633
|
er.button,
|
|
@@ -10638,8 +10641,8 @@ var eg = $i, tg = Wi, go = "Radio", [ng, Bi] = yt(go), [rg, og] = ng(go), Ui = f
|
|
|
10638
10641
|
value: i,
|
|
10639
10642
|
...d,
|
|
10640
10643
|
ref: m,
|
|
10641
|
-
onClick: ee(e.onClick, (
|
|
10642
|
-
o || c?.(), h && (b.current =
|
|
10644
|
+
onClick: ee(e.onClick, (y) => {
|
|
10645
|
+
o || c?.(), h && (b.current = y.isPropagationStopped(), b.current || y.stopPropagation());
|
|
10643
10646
|
})
|
|
10644
10647
|
}
|
|
10645
10648
|
),
|
|
@@ -10721,7 +10724,7 @@ Gi.displayName = ag;
|
|
|
10721
10724
|
function Yi(e) {
|
|
10722
10725
|
return e ? "checked" : "unchecked";
|
|
10723
10726
|
}
|
|
10724
|
-
var sg = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], tr = "RadioGroup", [ig] =
|
|
10727
|
+
var sg = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], tr = "RadioGroup", [ig] = vt(tr, [
|
|
10725
10728
|
Fi,
|
|
10726
10729
|
Bi
|
|
10727
10730
|
]), qi = Fi(), Ki = Bi(), [cg, lg] = ig(tr), Xi = f.forwardRef(
|
|
@@ -10738,7 +10741,7 @@ var sg = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], tr = "RadioGroup",
|
|
|
10738
10741
|
loop: d = !0,
|
|
10739
10742
|
onValueChange: p,
|
|
10740
10743
|
...g
|
|
10741
|
-
} = e, m = qi(n), b = Qr(u), [h,
|
|
10744
|
+
} = e, m = qi(n), b = Qr(u), [h, y] = en({
|
|
10742
10745
|
prop: a,
|
|
10743
10746
|
defaultProp: o ?? null,
|
|
10744
10747
|
onChange: p,
|
|
@@ -10752,7 +10755,7 @@ var sg = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], tr = "RadioGroup",
|
|
|
10752
10755
|
required: s,
|
|
10753
10756
|
disabled: i,
|
|
10754
10757
|
value: h,
|
|
10755
|
-
onValueChange:
|
|
10758
|
+
onValueChange: y,
|
|
10756
10759
|
children: /* @__PURE__ */ l(
|
|
10757
10760
|
eg,
|
|
10758
10761
|
{
|
|
@@ -10887,7 +10890,7 @@ function hg({
|
|
|
10887
10890
|
setCharCounts: d,
|
|
10888
10891
|
fileInputRefs: p,
|
|
10889
10892
|
...g
|
|
10890
|
-
} = s, m = t[e.name] ?? "", b = a, h = e.options || [],
|
|
10893
|
+
} = s, m = t[e.name] ?? "", b = a, h = e.options || [], y = e.inline || !1, S = e.renderType === "segment", E = g["aria-describedby"], C = S ? "mt-2 inline-flex w-full p-1 rounded-lg bg-muted/50 border border-border shadow-inner" : y ? "flex flex-wrap gap-6 mt-2" : "space-y-4 mt-2";
|
|
10891
10894
|
return /* @__PURE__ */ L(
|
|
10892
10895
|
"fieldset",
|
|
10893
10896
|
{
|
|
@@ -10960,7 +10963,7 @@ function hg({
|
|
|
10960
10963
|
children: A
|
|
10961
10964
|
}
|
|
10962
10965
|
),
|
|
10963
|
-
_ && !
|
|
10966
|
+
_ && !y && /* @__PURE__ */ l(
|
|
10964
10967
|
"p",
|
|
10965
10968
|
{
|
|
10966
10969
|
className: `text-xs ${b ? "text-muted-foreground/60" : "text-muted-foreground"}`,
|
|
@@ -11031,11 +11034,11 @@ function bg({
|
|
|
11031
11034
|
}
|
|
11032
11035
|
const A = new Date(x);
|
|
11033
11036
|
return Number.isNaN(A.getTime()) ? null : A;
|
|
11034
|
-
}, c = (x) => !(x instanceof Date) || Number.isNaN(x.getTime()) ? null : Mn(x, "yyyy-MM-dd"), u = (x) => i(x), [d, p] = ce(!1), g = a, m = t[e.name], b = Yr(() => u(m), [m]), [h,
|
|
11037
|
+
}, c = (x) => !(x instanceof Date) || Number.isNaN(x.getTime()) ? null : Mn(x, "yyyy-MM-dd"), u = (x) => i(x), [d, p] = ce(!1), g = a, m = t[e.name], b = Yr(() => u(m), [m]), [h, y] = ce(b || /* @__PURE__ */ new Date());
|
|
11035
11038
|
s["aria-describedby"], Ie(() => {
|
|
11036
11039
|
if (d) {
|
|
11037
11040
|
const x = b || /* @__PURE__ */ new Date();
|
|
11038
|
-
|
|
11041
|
+
y((A) => A.getFullYear() === x.getFullYear() && A.getMonth() === x.getMonth() ? A : x);
|
|
11039
11042
|
}
|
|
11040
11043
|
}, [d, b]);
|
|
11041
11044
|
const S = [];
|
|
@@ -11048,12 +11051,12 @@ function bg({
|
|
|
11048
11051
|
x && S.push({ before: x });
|
|
11049
11052
|
}
|
|
11050
11053
|
const E = (x) => {
|
|
11051
|
-
n(e.name, x ? c(x) : null), x &&
|
|
11054
|
+
n(e.name, x ? c(x) : null), x && y(x), e.closeOnSelect !== !1 && p(!1), r(e.name);
|
|
11052
11055
|
}, C = () => {
|
|
11053
11056
|
const x = /* @__PURE__ */ new Date();
|
|
11054
|
-
n(e.name, c(x)),
|
|
11057
|
+
n(e.name, c(x)), y(x), e.closeOnSelect !== !1 && p(!1), r(e.name);
|
|
11055
11058
|
}, w = (x) => {
|
|
11056
|
-
x.preventDefault(), x.stopPropagation(), n(e.name, null),
|
|
11059
|
+
x.preventDefault(), x.stopPropagation(), n(e.name, null), y(/* @__PURE__ */ new Date()), r(e.name);
|
|
11057
11060
|
};
|
|
11058
11061
|
return /* @__PURE__ */ l("div", { className: "relative w-full", children: /* @__PURE__ */ L(
|
|
11059
11062
|
Qn,
|
|
@@ -11133,7 +11136,7 @@ function bg({
|
|
|
11133
11136
|
mode: "single",
|
|
11134
11137
|
selected: b,
|
|
11135
11138
|
month: h,
|
|
11136
|
-
onMonthChange:
|
|
11139
|
+
onMonthChange: y,
|
|
11137
11140
|
onSelect: E,
|
|
11138
11141
|
showOutsideDays: !0,
|
|
11139
11142
|
disabled: S,
|
|
@@ -11173,7 +11176,7 @@ function bg({
|
|
|
11173
11176
|
}
|
|
11174
11177
|
) });
|
|
11175
11178
|
}
|
|
11176
|
-
function
|
|
11179
|
+
function yg({ field: e, formValues: t, handleChange: n, handleBlur: r, error: o }) {
|
|
11177
11180
|
const [a, s] = ce(!1), [i, c] = ce("12"), [u, d] = ce("00"), [p, g] = ce("PM"), m = t[e.name] || "";
|
|
11178
11181
|
Re.useEffect(() => {
|
|
11179
11182
|
if (m) {
|
|
@@ -11186,7 +11189,7 @@ function vg({ field: e, formValues: t, handleChange: n, handleBlur: r, error: o
|
|
|
11186
11189
|
n(e.name, w), s(!1);
|
|
11187
11190
|
}, h = () => {
|
|
11188
11191
|
n(e.name, ""), c("12"), d("00"), g("PM");
|
|
11189
|
-
},
|
|
11192
|
+
}, y = () => {
|
|
11190
11193
|
const w = parseInt(i);
|
|
11191
11194
|
c((w % 12 + 1).toString().padStart(2, "0"));
|
|
11192
11195
|
}, S = () => {
|
|
@@ -11254,7 +11257,7 @@ function vg({ field: e, formValues: t, handleChange: n, handleBlur: r, error: o
|
|
|
11254
11257
|
"button",
|
|
11255
11258
|
{
|
|
11256
11259
|
type: "button",
|
|
11257
|
-
onClick:
|
|
11260
|
+
onClick: y,
|
|
11258
11261
|
className: "p-1 hover:bg-gray-100 rounded",
|
|
11259
11262
|
children: /* @__PURE__ */ l(
|
|
11260
11263
|
"svg",
|
|
@@ -11416,7 +11419,7 @@ function vg({ field: e, formValues: t, handleChange: n, handleBlur: r, error: o
|
|
|
11416
11419
|
)
|
|
11417
11420
|
] }) });
|
|
11418
11421
|
}
|
|
11419
|
-
function
|
|
11422
|
+
function vg({ message: e }) {
|
|
11420
11423
|
return /* @__PURE__ */ l("div", { className: "rounded-lg bg-red-50 border border-red-100 p-4 shadow-sm", children: /* @__PURE__ */ L("div", { className: "flex items-center gap-3", children: [
|
|
11421
11424
|
/* @__PURE__ */ l(Mc, { "aria-hidden": "true", className: "size-5 text-red-500 shrink-0" }),
|
|
11422
11425
|
/* @__PURE__ */ l("span", { className: "text-sm font-medium text-red-900", children: e })
|
|
@@ -11457,7 +11460,7 @@ function Cg({ field: e }) {
|
|
|
11457
11460
|
switch (t.toLowerCase()) {
|
|
11458
11461
|
case "error":
|
|
11459
11462
|
case "danger":
|
|
11460
|
-
return /* @__PURE__ */ l(
|
|
11463
|
+
return /* @__PURE__ */ l(vg, { message: o });
|
|
11461
11464
|
case "success":
|
|
11462
11465
|
return /* @__PURE__ */ l(xg, { message: o });
|
|
11463
11466
|
case "warning":
|
|
@@ -11498,14 +11501,14 @@ const $g = ({
|
|
|
11498
11501
|
},
|
|
11499
11502
|
debugMode: d = !1
|
|
11500
11503
|
}) => {
|
|
11501
|
-
const [p, g] = ce({ ...c }), [m, b] = ce({}), [h,
|
|
11504
|
+
const [p, g] = ce({ ...c }), [m, b] = ce({}), [h, y] = ce({}), [S, E] = ce({}), C = t, w = Zt({}), x = ["hidden", "linebreak", "header", "alert"], A = Yr(
|
|
11502
11505
|
() => ({
|
|
11503
11506
|
file: Ra,
|
|
11504
11507
|
multifile: Ra,
|
|
11505
11508
|
dateRange: Eh,
|
|
11506
11509
|
date: bg,
|
|
11507
11510
|
dayTimePicker: kh,
|
|
11508
|
-
time:
|
|
11511
|
+
time: yg,
|
|
11509
11512
|
hidden: hc,
|
|
11510
11513
|
multiselect: gc,
|
|
11511
11514
|
searchselect: gl,
|
|
@@ -11606,13 +11609,13 @@ const $g = ({
|
|
|
11606
11609
|
}
|
|
11607
11610
|
}), g(T);
|
|
11608
11611
|
}, z = (N) => {
|
|
11609
|
-
|
|
11612
|
+
y({ ...h, [N]: !0 });
|
|
11610
11613
|
}, B = (N) => {
|
|
11611
11614
|
N.preventDefault();
|
|
11612
11615
|
const k = {};
|
|
11613
11616
|
o.fields.forEach((T) => {
|
|
11614
11617
|
T && T.name && (k[T.name] = !0);
|
|
11615
|
-
}),
|
|
11618
|
+
}), y(k);
|
|
11616
11619
|
const D = {};
|
|
11617
11620
|
if (o.fields.forEach((T) => {
|
|
11618
11621
|
if (!(!T || !T.name) && (!T.showIf || T.showIf(p))) {
|