ynotsoft-dynamic-form 1.0.49 → 1.0.51
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 +822 -816
- package/dist/dynamic-form.umd.cjs +11 -11
- package/dist/index.css +1 -1
- package/package.json +1 -1
package/dist/dynamic-form.js
CHANGED
|
@@ -145,7 +145,7 @@ function ko(...e) {
|
|
|
145
145
|
};
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function ae(...e) {
|
|
149
149
|
return d.useCallback(ko(...e), e);
|
|
150
150
|
}
|
|
151
151
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -202,15 +202,15 @@ function ss(e) {
|
|
|
202
202
|
i.displayName = t;
|
|
203
203
|
const a = e + "CollectionSlot", l = /* @__PURE__ */ xe(a), c = Ke.forwardRef(
|
|
204
204
|
(h, v) => {
|
|
205
|
-
const { scope: x, children: S } = h, C = s(a, x), y =
|
|
205
|
+
const { scope: x, children: S } = h, C = s(a, x), y = ae(v, C.collectionRef);
|
|
206
206
|
return /* @__PURE__ */ u(l, { ref: y, children: S });
|
|
207
207
|
}
|
|
208
208
|
);
|
|
209
209
|
c.displayName = a;
|
|
210
210
|
const f = e + "CollectionItemSlot", p = "data-radix-collection-item", g = /* @__PURE__ */ xe(f), m = Ke.forwardRef(
|
|
211
211
|
(h, v) => {
|
|
212
|
-
const { scope: x, children: S, ...C } = h, y = Ke.useRef(null), E =
|
|
213
|
-
return Ke.useEffect(() => (
|
|
212
|
+
const { scope: x, children: S, ...C } = h, y = Ke.useRef(null), E = ae(v, y), L = s(f, x);
|
|
213
|
+
return Ke.useEffect(() => (L.itemMap.set(y, { ref: y, ...C }), () => void L.itemMap.delete(y))), /* @__PURE__ */ u(g, { [p]: "", ref: E, children: S });
|
|
214
214
|
}
|
|
215
215
|
);
|
|
216
216
|
m.displayName = f;
|
|
@@ -221,7 +221,7 @@ function ss(e) {
|
|
|
221
221
|
if (!S) return [];
|
|
222
222
|
const C = Array.from(S.querySelectorAll(`[${p}]`));
|
|
223
223
|
return Array.from(v.itemMap.values()).sort(
|
|
224
|
-
(
|
|
224
|
+
(L, k) => C.indexOf(L.ref.current) - C.indexOf(k.ref.current)
|
|
225
225
|
);
|
|
226
226
|
}, [v.collectionRef, v.itemMap]);
|
|
227
227
|
}
|
|
@@ -293,10 +293,10 @@ var Ha = "DismissableLayer", po = "dismissableLayer.update", Va = "dismissableLa
|
|
|
293
293
|
onInteractOutside: i,
|
|
294
294
|
onDismiss: a,
|
|
295
295
|
...l
|
|
296
|
-
} = e, c = d.useContext(as), [f, p] = d.useState(null), g = f?.ownerDocument ?? globalThis?.document, [, m] = d.useState({}), w =
|
|
296
|
+
} = e, c = d.useContext(as), [f, p] = d.useState(null), g = f?.ownerDocument ?? globalThis?.document, [, m] = d.useState({}), w = ae(t, (k) => p(k)), h = Array.from(c.layers), [v] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), x = h.indexOf(v), S = f ? h.indexOf(f) : -1, C = c.layersWithOutsidePointerEventsDisabled.size > 0, y = S >= x, E = Ka((k) => {
|
|
297
297
|
const A = k.target, G = [...c.branches].some((X) => X.contains(A));
|
|
298
298
|
!y || G || (r?.(k), i?.(k), k.defaultPrevented || a?.());
|
|
299
|
-
}, g),
|
|
299
|
+
}, g), L = Xa((k) => {
|
|
300
300
|
const A = k.target;
|
|
301
301
|
[...c.branches].some((X) => X.contains(A)) || (s?.(k), i?.(k), k.defaultPrevented || a?.());
|
|
302
302
|
}, g);
|
|
@@ -321,8 +321,8 @@ var Ha = "DismissableLayer", po = "dismissableLayer.update", Va = "dismissableLa
|
|
|
321
321
|
pointerEvents: C ? y ? "auto" : "none" : void 0,
|
|
322
322
|
...e.style
|
|
323
323
|
},
|
|
324
|
-
onFocusCapture: te(e.onFocusCapture,
|
|
325
|
-
onBlurCapture: te(e.onBlurCapture,
|
|
324
|
+
onFocusCapture: te(e.onFocusCapture, L.onFocusCapture),
|
|
325
|
+
onBlurCapture: te(e.onBlurCapture, L.onBlurCapture),
|
|
326
326
|
onPointerDownCapture: te(
|
|
327
327
|
e.onPointerDownCapture,
|
|
328
328
|
E.onPointerDownCapture
|
|
@@ -333,7 +333,7 @@ var Ha = "DismissableLayer", po = "dismissableLayer.update", Va = "dismissableLa
|
|
|
333
333
|
);
|
|
334
334
|
_o.displayName = Ha;
|
|
335
335
|
var Ga = "DismissableLayerBranch", Ya = d.forwardRef((e, t) => {
|
|
336
|
-
const n = d.useContext(as), o = d.useRef(null), r =
|
|
336
|
+
const n = d.useContext(as), o = d.useRef(null), r = ae(t, o);
|
|
337
337
|
return d.useEffect(() => {
|
|
338
338
|
const s = o.current;
|
|
339
339
|
if (s)
|
|
@@ -439,7 +439,7 @@ var qa = [
|
|
|
439
439
|
onMountAutoFocus: r,
|
|
440
440
|
onUnmountAutoFocus: s,
|
|
441
441
|
...i
|
|
442
|
-
} = e, [a, l] = d.useState(null), c = qe(r), f = qe(s), p = d.useRef(null), g =
|
|
442
|
+
} = e, [a, l] = d.useState(null), c = qe(r), f = qe(s), p = d.useRef(null), g = ae(t, (h) => l(h)), m = d.useRef({
|
|
443
443
|
paused: !1,
|
|
444
444
|
pause() {
|
|
445
445
|
this.paused = !0;
|
|
@@ -850,20 +850,20 @@ const yl = (e) => ({
|
|
|
850
850
|
const p = ds(f), g = {
|
|
851
851
|
x: n,
|
|
852
852
|
y: o
|
|
853
|
-
}, m = Do(r), w = Mo(m), h = await i.getDimensions(c), v = m === "y", x = v ? "top" : "left", S = v ? "bottom" : "right", C = v ? "clientHeight" : "clientWidth", y = s.reference[w] + s.reference[m] - g[m] - s.floating[w], E = g[m] - s.reference[m],
|
|
854
|
-
let k =
|
|
855
|
-
(!k || !await (i.isElement == null ? void 0 : i.isElement(
|
|
856
|
-
const A = y / 2 - E / 2, G = k / 2 - h[w] / 2 - 1, X = Ze(p[x], G), j = Ze(p[S], G), q = X,
|
|
853
|
+
}, m = Do(r), w = Mo(m), h = await i.getDimensions(c), v = m === "y", x = v ? "top" : "left", S = v ? "bottom" : "right", C = v ? "clientHeight" : "clientWidth", y = s.reference[w] + s.reference[m] - g[m] - s.floating[w], E = g[m] - s.reference[m], L = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(c));
|
|
854
|
+
let k = L ? L[C] : 0;
|
|
855
|
+
(!k || !await (i.isElement == null ? void 0 : i.isElement(L))) && (k = a.floating[C] || s.floating[w]);
|
|
856
|
+
const A = y / 2 - E / 2, G = k / 2 - h[w] / 2 - 1, X = Ze(p[x], G), j = Ze(p[S], G), q = X, T = k - h[w] - j, F = k / 2 - h[w] / 2 + A, U = mo(q, F, T), D = !l.arrow && Et(r) != null && F !== U && s.reference[w] / 2 - (F < q ? X : j) - h[w] / 2 < 0, Y = D ? F < q ? F - q : F - T : 0;
|
|
857
857
|
return {
|
|
858
858
|
[m]: g[m] + Y,
|
|
859
859
|
data: {
|
|
860
|
-
[m]:
|
|
861
|
-
centerOffset:
|
|
862
|
-
...
|
|
860
|
+
[m]: U,
|
|
861
|
+
centerOffset: F - U - Y,
|
|
862
|
+
...D && {
|
|
863
863
|
alignmentOffset: Y
|
|
864
864
|
}
|
|
865
865
|
},
|
|
866
|
-
reset:
|
|
866
|
+
reset: D
|
|
867
867
|
};
|
|
868
868
|
}
|
|
869
869
|
}), wl = function(e) {
|
|
@@ -890,57 +890,57 @@ const yl = (e) => ({
|
|
|
890
890
|
} = je(e, t);
|
|
891
891
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
892
892
|
return {};
|
|
893
|
-
const x = Ge(r), S = Me(a), C = Ge(a) === a, y = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), E = g || (C || !h ? [mn(a)] : fl(a)),
|
|
894
|
-
!g &&
|
|
893
|
+
const x = Ge(r), S = Me(a), C = Ge(a) === a, y = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), E = g || (C || !h ? [mn(a)] : fl(a)), L = w !== "none";
|
|
894
|
+
!g && L && E.push(...gl(a, h, w, y));
|
|
895
895
|
const k = [a, ...E], A = await $t(t, v), G = [];
|
|
896
896
|
let X = ((o = s.flip) == null ? void 0 : o.overflows) || [];
|
|
897
897
|
if (f && G.push(A[x]), p) {
|
|
898
|
-
const
|
|
899
|
-
G.push(A[
|
|
898
|
+
const F = dl(r, i, y);
|
|
899
|
+
G.push(A[F[0]], A[F[1]]);
|
|
900
900
|
}
|
|
901
901
|
if (X = [...X, {
|
|
902
902
|
placement: r,
|
|
903
903
|
overflows: G
|
|
904
|
-
}], !G.every((
|
|
904
|
+
}], !G.every((F) => F <= 0)) {
|
|
905
905
|
var j, q;
|
|
906
|
-
const
|
|
907
|
-
if (
|
|
906
|
+
const F = (((j = s.flip) == null ? void 0 : j.index) || 0) + 1, U = k[F];
|
|
907
|
+
if (U && (!(p === "alignment" ? S !== Me(U) : !1) || // We leave the current main axis only if every placement on that axis
|
|
908
908
|
// overflows the main axis.
|
|
909
|
-
X.every((
|
|
909
|
+
X.every((R) => Me(R.placement) === S ? R.overflows[0] > 0 : !0)))
|
|
910
910
|
return {
|
|
911
911
|
data: {
|
|
912
|
-
index:
|
|
912
|
+
index: F,
|
|
913
913
|
overflows: X
|
|
914
914
|
},
|
|
915
915
|
reset: {
|
|
916
|
-
placement:
|
|
916
|
+
placement: U
|
|
917
917
|
}
|
|
918
918
|
};
|
|
919
|
-
let
|
|
920
|
-
if (!
|
|
919
|
+
let D = (q = X.filter((Y) => Y.overflows[0] <= 0).sort((Y, R) => Y.overflows[1] - R.overflows[1])[0]) == null ? void 0 : q.placement;
|
|
920
|
+
if (!D)
|
|
921
921
|
switch (m) {
|
|
922
922
|
case "bestFit": {
|
|
923
|
-
var
|
|
924
|
-
const Y = (
|
|
925
|
-
if (
|
|
926
|
-
const ne = Me(
|
|
923
|
+
var T;
|
|
924
|
+
const Y = (T = X.filter((R) => {
|
|
925
|
+
if (L) {
|
|
926
|
+
const ne = Me(R.placement);
|
|
927
927
|
return ne === S || // Create a bias to the `y` side axis due to horizontal
|
|
928
928
|
// reading directions favoring greater width.
|
|
929
929
|
ne === "y";
|
|
930
930
|
}
|
|
931
931
|
return !0;
|
|
932
|
-
}).map((
|
|
933
|
-
Y && (
|
|
932
|
+
}).map((R) => [R.placement, R.overflows.filter((ne) => ne > 0).reduce((ne, N) => ne + N, 0)]).sort((R, ne) => R[1] - ne[1])[0]) == null ? void 0 : T[0];
|
|
933
|
+
Y && (D = Y);
|
|
934
934
|
break;
|
|
935
935
|
}
|
|
936
936
|
case "initialPlacement":
|
|
937
|
-
|
|
937
|
+
D = a;
|
|
938
938
|
break;
|
|
939
939
|
}
|
|
940
|
-
if (r !==
|
|
940
|
+
if (r !== D)
|
|
941
941
|
return {
|
|
942
942
|
reset: {
|
|
943
|
-
placement:
|
|
943
|
+
placement: D
|
|
944
944
|
}
|
|
945
945
|
};
|
|
946
946
|
}
|
|
@@ -1139,8 +1139,8 @@ const Cl = function(e) {
|
|
|
1139
1139
|
}
|
|
1140
1140
|
if (c) {
|
|
1141
1141
|
var x, S;
|
|
1142
|
-
const C = g === "y" ? "width" : "height", y = fs.has(Ge(r)), E = s.reference[p] - s.floating[C] + (y && ((x = i.offset) == null ? void 0 : x[p]) || 0) + (y ? 0 : v.crossAxis),
|
|
1143
|
-
w < E ? w = E : w >
|
|
1142
|
+
const C = g === "y" ? "width" : "height", y = fs.has(Ge(r)), E = s.reference[p] - s.floating[C] + (y && ((x = i.offset) == null ? void 0 : x[p]) || 0) + (y ? 0 : v.crossAxis), L = s.reference[p] + s.reference[C] + (y ? 0 : ((S = i.offset) == null ? void 0 : S[p]) || 0) - (y ? v.crossAxis : 0);
|
|
1143
|
+
w < E ? w = E : w > L && (w = L);
|
|
1144
1144
|
}
|
|
1145
1145
|
return {
|
|
1146
1146
|
[g]: m,
|
|
@@ -1169,11 +1169,11 @@ const Cl = function(e) {
|
|
|
1169
1169
|
} = s.floating;
|
|
1170
1170
|
let v, x;
|
|
1171
1171
|
p === "top" || p === "bottom" ? (v = p, x = g === (await (i.isRTL == null ? void 0 : i.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (x = p, v = g === "end" ? "top" : "bottom");
|
|
1172
|
-
const S = h - f.top - f.bottom, C = w - f.left - f.right, y = Ze(h - f[v], S), E = Ze(w - f[x], C),
|
|
1172
|
+
const S = h - f.top - f.bottom, C = w - f.left - f.right, y = Ze(h - f[v], S), E = Ze(w - f[x], C), L = !t.middlewareData.shift;
|
|
1173
1173
|
let k = y, A = E;
|
|
1174
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (A = C), (o = t.middlewareData.shift) != null && o.enabled.y && (k = S),
|
|
1175
|
-
const X = Se(f.left, 0), j = Se(f.right, 0), q = Se(f.top, 0),
|
|
1176
|
-
m ? A = w - 2 * (X !== 0 || j !== 0 ? X + j : Se(f.left, f.right)) : k = h - 2 * (q !== 0 ||
|
|
1174
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (A = C), (o = t.middlewareData.shift) != null && o.enabled.y && (k = S), L && !g) {
|
|
1175
|
+
const X = Se(f.left, 0), j = Se(f.right, 0), q = Se(f.top, 0), T = Se(f.bottom, 0);
|
|
1176
|
+
m ? A = w - 2 * (X !== 0 || j !== 0 ? X + j : Se(f.left, f.right)) : k = h - 2 * (q !== 0 || T !== 0 ? q + T : Se(f.top, f.bottom));
|
|
1177
1177
|
}
|
|
1178
1178
|
await l({
|
|
1179
1179
|
...t,
|
|
@@ -1616,8 +1616,8 @@ function Zl(e, t) {
|
|
|
1616
1616
|
threshold: Se(0, Ze(1, l)) || 1
|
|
1617
1617
|
};
|
|
1618
1618
|
let y = !0;
|
|
1619
|
-
function E(
|
|
1620
|
-
const k =
|
|
1619
|
+
function E(L) {
|
|
1620
|
+
const k = L[0].intersectionRatio;
|
|
1621
1621
|
if (k !== l) {
|
|
1622
1622
|
if (!y)
|
|
1623
1623
|
return i();
|
|
@@ -1757,20 +1757,20 @@ function lc(e) {
|
|
|
1757
1757
|
isPositioned: !1
|
|
1758
1758
|
}), [g, m] = d.useState(o);
|
|
1759
1759
|
gn(g, o) || m(o);
|
|
1760
|
-
const [w, h] = d.useState(null), [v, x] = d.useState(null), S = d.useCallback((
|
|
1761
|
-
|
|
1762
|
-
}, []), C = d.useCallback((
|
|
1763
|
-
|
|
1764
|
-
}, []), y = s || w, E = i || v,
|
|
1765
|
-
if (!
|
|
1760
|
+
const [w, h] = d.useState(null), [v, x] = d.useState(null), S = d.useCallback((R) => {
|
|
1761
|
+
R !== L.current && (L.current = R, h(R));
|
|
1762
|
+
}, []), C = d.useCallback((R) => {
|
|
1763
|
+
R !== k.current && (k.current = R, x(R));
|
|
1764
|
+
}, []), y = s || w, E = i || v, L = d.useRef(null), k = d.useRef(null), A = d.useRef(f), G = l != null, X = Xn(l), j = Xn(r), q = Xn(c), T = d.useCallback(() => {
|
|
1765
|
+
if (!L.current || !k.current)
|
|
1766
1766
|
return;
|
|
1767
|
-
const
|
|
1767
|
+
const R = {
|
|
1768
1768
|
placement: t,
|
|
1769
1769
|
strategy: n,
|
|
1770
1770
|
middleware: g
|
|
1771
1771
|
};
|
|
1772
|
-
j.current && (
|
|
1773
|
-
const
|
|
1772
|
+
j.current && (R.platform = j.current), sc(L.current, k.current, R).then((ne) => {
|
|
1773
|
+
const N = {
|
|
1774
1774
|
...ne,
|
|
1775
1775
|
// The floating element's position may be recomputed while it's closed
|
|
1776
1776
|
// but still mounted (such as when transitioning out). To ensure
|
|
@@ -1778,63 +1778,63 @@ function lc(e) {
|
|
|
1778
1778
|
// setting it to `true` when `open === false` (must be specified).
|
|
1779
1779
|
isPositioned: q.current !== !1
|
|
1780
1780
|
};
|
|
1781
|
-
|
|
1782
|
-
p(
|
|
1781
|
+
F.current && !gn(A.current, N) && (A.current = N, wn.flushSync(() => {
|
|
1782
|
+
p(N);
|
|
1783
1783
|
}));
|
|
1784
1784
|
});
|
|
1785
1785
|
}, [g, t, n, j, q]);
|
|
1786
1786
|
ln(() => {
|
|
1787
|
-
c === !1 && A.current.isPositioned && (A.current.isPositioned = !1, p((
|
|
1788
|
-
...
|
|
1787
|
+
c === !1 && A.current.isPositioned && (A.current.isPositioned = !1, p((R) => ({
|
|
1788
|
+
...R,
|
|
1789
1789
|
isPositioned: !1
|
|
1790
1790
|
})));
|
|
1791
1791
|
}, [c]);
|
|
1792
|
-
const
|
|
1793
|
-
ln(() => (
|
|
1794
|
-
|
|
1792
|
+
const F = d.useRef(!1);
|
|
1793
|
+
ln(() => (F.current = !0, () => {
|
|
1794
|
+
F.current = !1;
|
|
1795
1795
|
}), []), ln(() => {
|
|
1796
|
-
if (y && (
|
|
1796
|
+
if (y && (L.current = y), E && (k.current = E), y && E) {
|
|
1797
1797
|
if (X.current)
|
|
1798
|
-
return X.current(y, E,
|
|
1799
|
-
|
|
1798
|
+
return X.current(y, E, T);
|
|
1799
|
+
T();
|
|
1800
1800
|
}
|
|
1801
|
-
}, [y, E,
|
|
1802
|
-
const
|
|
1803
|
-
reference:
|
|
1801
|
+
}, [y, E, T, X, G]);
|
|
1802
|
+
const U = d.useMemo(() => ({
|
|
1803
|
+
reference: L,
|
|
1804
1804
|
floating: k,
|
|
1805
1805
|
setReference: S,
|
|
1806
1806
|
setFloating: C
|
|
1807
|
-
}), [S, C]),
|
|
1807
|
+
}), [S, C]), D = d.useMemo(() => ({
|
|
1808
1808
|
reference: y,
|
|
1809
1809
|
floating: E
|
|
1810
1810
|
}), [y, E]), Y = d.useMemo(() => {
|
|
1811
|
-
const
|
|
1811
|
+
const R = {
|
|
1812
1812
|
position: n,
|
|
1813
1813
|
left: 0,
|
|
1814
1814
|
top: 0
|
|
1815
1815
|
};
|
|
1816
|
-
if (!
|
|
1817
|
-
return
|
|
1818
|
-
const ne = Or(
|
|
1816
|
+
if (!D.floating)
|
|
1817
|
+
return R;
|
|
1818
|
+
const ne = Or(D.floating, f.x), N = Or(D.floating, f.y);
|
|
1819
1819
|
return a ? {
|
|
1820
|
-
...
|
|
1821
|
-
transform: "translate(" + ne + "px, " +
|
|
1822
|
-
...xs(
|
|
1820
|
+
...R,
|
|
1821
|
+
transform: "translate(" + ne + "px, " + N + "px)",
|
|
1822
|
+
...xs(D.floating) >= 1.5 && {
|
|
1823
1823
|
willChange: "transform"
|
|
1824
1824
|
}
|
|
1825
1825
|
} : {
|
|
1826
1826
|
position: n,
|
|
1827
1827
|
left: ne,
|
|
1828
|
-
top:
|
|
1828
|
+
top: N
|
|
1829
1829
|
};
|
|
1830
|
-
}, [n, a,
|
|
1830
|
+
}, [n, a, D.floating, f.x, f.y]);
|
|
1831
1831
|
return d.useMemo(() => ({
|
|
1832
1832
|
...f,
|
|
1833
|
-
update:
|
|
1834
|
-
refs:
|
|
1835
|
-
elements:
|
|
1833
|
+
update: T,
|
|
1834
|
+
refs: U,
|
|
1835
|
+
elements: D,
|
|
1836
1836
|
floatingStyles: Y
|
|
1837
|
-
}), [f,
|
|
1837
|
+
}), [f, T, U, D, Y]);
|
|
1838
1838
|
}
|
|
1839
1839
|
const cc = (e) => {
|
|
1840
1840
|
function t(n) {
|
|
@@ -1973,7 +1973,7 @@ var zo = "Popper", [As, An] = ct(zo), [Sc, Ns] = As(zo), Rs = (e) => {
|
|
|
1973
1973
|
Rs.displayName = zo;
|
|
1974
1974
|
var Ts = "PopperAnchor", ks = d.forwardRef(
|
|
1975
1975
|
(e, t) => {
|
|
1976
|
-
const { __scopePopper: n, virtualRef: o, ...r } = e, s = Ns(Ts, n), i = d.useRef(null), a =
|
|
1976
|
+
const { __scopePopper: n, virtualRef: o, ...r } = e, s = Ns(Ts, n), i = d.useRef(null), a = ae(t, i), l = d.useRef(null);
|
|
1977
1977
|
return d.useEffect(() => {
|
|
1978
1978
|
const c = l.current;
|
|
1979
1979
|
l.current = o?.current || i.current, c !== l.current && s.onAnchorChange(l.current);
|
|
@@ -1998,16 +1998,16 @@ var Bo = "PopperContent", [Cc, Ec] = As(Bo), Ps = d.forwardRef(
|
|
|
1998
1998
|
updatePositionStrategy: m = "optimized",
|
|
1999
1999
|
onPlaced: w,
|
|
2000
2000
|
...h
|
|
2001
|
-
} = e, v = Ns(Bo, n), [x, S] = d.useState(null), C =
|
|
2001
|
+
} = e, v = Ns(Bo, n), [x, S] = d.useState(null), C = ae(t, (M) => S(M)), [y, E] = d.useState(null), L = Es(y), k = L?.width ?? 0, A = L?.height ?? 0, G = o + (s !== "center" ? "-" + s : ""), X = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, j = Array.isArray(c) ? c : [c], q = j.length > 0, T = {
|
|
2002
2002
|
padding: X,
|
|
2003
2003
|
boundary: j.filter(Nc),
|
|
2004
2004
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
2005
2005
|
altBoundary: q
|
|
2006
|
-
}, { refs:
|
|
2006
|
+
}, { refs: F, floatingStyles: U, placement: D, isPositioned: Y, middlewareData: R } = lc({
|
|
2007
2007
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
2008
2008
|
strategy: "fixed",
|
|
2009
2009
|
placement: G,
|
|
2010
|
-
whileElementsMounted: (...
|
|
2010
|
+
whileElementsMounted: (...M) => Ql(...M, {
|
|
2011
2011
|
animationFrame: m === "always"
|
|
2012
2012
|
}),
|
|
2013
2013
|
elements: {
|
|
@@ -2019,46 +2019,46 @@ var Bo = "PopperContent", [Cc, Ec] = As(Bo), Ps = d.forwardRef(
|
|
|
2019
2019
|
mainAxis: !0,
|
|
2020
2020
|
crossAxis: !1,
|
|
2021
2021
|
limiter: p === "partial" ? fc() : void 0,
|
|
2022
|
-
...
|
|
2022
|
+
...T
|
|
2023
2023
|
}),
|
|
2024
|
-
l && pc({ ...
|
|
2024
|
+
l && pc({ ...T }),
|
|
2025
2025
|
mc({
|
|
2026
|
-
...
|
|
2027
|
-
apply: ({ elements:
|
|
2028
|
-
const { width: oe, height:
|
|
2029
|
-
ue.setProperty("--radix-popper-available-width", `${
|
|
2026
|
+
...T,
|
|
2027
|
+
apply: ({ elements: M, rects: ee, availableWidth: se, availableHeight: Q }) => {
|
|
2028
|
+
const { width: oe, height: re } = ee.reference, ue = M.floating.style;
|
|
2029
|
+
ue.setProperty("--radix-popper-available-width", `${se}px`), ue.setProperty("--radix-popper-available-height", `${Q}px`), ue.setProperty("--radix-popper-anchor-width", `${oe}px`), ue.setProperty("--radix-popper-anchor-height", `${re}px`);
|
|
2030
2030
|
}
|
|
2031
2031
|
}),
|
|
2032
2032
|
y && gc({ element: y, padding: a }),
|
|
2033
2033
|
Rc({ arrowWidth: k, arrowHeight: A }),
|
|
2034
|
-
g && hc({ strategy: "referenceHidden", ...
|
|
2034
|
+
g && hc({ strategy: "referenceHidden", ...T })
|
|
2035
2035
|
]
|
|
2036
|
-
}), [ne,
|
|
2036
|
+
}), [ne, N] = Is(D), _ = qe(w);
|
|
2037
2037
|
he(() => {
|
|
2038
2038
|
Y && _?.();
|
|
2039
2039
|
}, [Y, _]);
|
|
2040
|
-
const V =
|
|
2040
|
+
const V = R.arrow?.x, I = R.arrow?.y, $ = R.arrow?.centerOffset !== 0, [K, le] = d.useState();
|
|
2041
2041
|
return he(() => {
|
|
2042
|
-
x &&
|
|
2042
|
+
x && le(window.getComputedStyle(x).zIndex);
|
|
2043
2043
|
}, [x]), /* @__PURE__ */ u(
|
|
2044
2044
|
"div",
|
|
2045
2045
|
{
|
|
2046
|
-
ref:
|
|
2046
|
+
ref: F.setFloating,
|
|
2047
2047
|
"data-radix-popper-content-wrapper": "",
|
|
2048
2048
|
style: {
|
|
2049
|
-
...
|
|
2050
|
-
transform: Y ?
|
|
2049
|
+
...U,
|
|
2050
|
+
transform: Y ? U.transform : "translate(0, -200%)",
|
|
2051
2051
|
// keep off the page when measuring
|
|
2052
2052
|
minWidth: "max-content",
|
|
2053
|
-
zIndex:
|
|
2053
|
+
zIndex: K,
|
|
2054
2054
|
"--radix-popper-transform-origin": [
|
|
2055
|
-
|
|
2056
|
-
|
|
2055
|
+
R.transformOrigin?.x,
|
|
2056
|
+
R.transformOrigin?.y
|
|
2057
2057
|
].join(" "),
|
|
2058
2058
|
// hide the content if using the hide middleware and should be hidden
|
|
2059
2059
|
// set visibility to hidden and disable pointer events so the UI behaves
|
|
2060
2060
|
// as if the PopperContent isn't there at all
|
|
2061
|
-
...
|
|
2061
|
+
...R.hide?.referenceHidden && {
|
|
2062
2062
|
visibility: "hidden",
|
|
2063
2063
|
pointerEvents: "none"
|
|
2064
2064
|
}
|
|
@@ -2072,12 +2072,12 @@ var Bo = "PopperContent", [Cc, Ec] = As(Bo), Ps = d.forwardRef(
|
|
|
2072
2072
|
onArrowChange: E,
|
|
2073
2073
|
arrowX: V,
|
|
2074
2074
|
arrowY: I,
|
|
2075
|
-
shouldHideArrow:
|
|
2075
|
+
shouldHideArrow: $,
|
|
2076
2076
|
children: /* @__PURE__ */ u(
|
|
2077
2077
|
Cs.div,
|
|
2078
2078
|
{
|
|
2079
2079
|
"data-side": ne,
|
|
2080
|
-
"data-align":
|
|
2080
|
+
"data-align": N,
|
|
2081
2081
|
...h,
|
|
2082
2082
|
ref: C,
|
|
2083
2083
|
style: {
|
|
@@ -2512,12 +2512,12 @@ var Hs = qc(), Qn = function() {
|
|
|
2512
2512
|
onScrollCapture: Qn,
|
|
2513
2513
|
onWheelCapture: Qn,
|
|
2514
2514
|
onTouchMoveCapture: Qn
|
|
2515
|
-
}), r = o[0], s = o[1], i = e.forwardProps, a = e.children, l = e.className, c = e.removeScrollBar, f = e.enabled, p = e.shards, g = e.sideCar, m = e.noRelative, w = e.noIsolation, h = e.inert, v = e.allowPinchZoom, x = e.as, S = x === void 0 ? "div" : x, C = e.gapMode, y = Us(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = g,
|
|
2515
|
+
}), r = o[0], s = o[1], i = e.forwardProps, a = e.children, l = e.className, c = e.removeScrollBar, f = e.enabled, p = e.shards, g = e.sideCar, m = e.noRelative, w = e.noIsolation, h = e.inert, v = e.allowPinchZoom, x = e.as, S = x === void 0 ? "div" : x, C = e.gapMode, y = Us(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = g, L = Yc([n, t]), k = Ie(Ie({}, y), r);
|
|
2516
2516
|
return d.createElement(
|
|
2517
2517
|
d.Fragment,
|
|
2518
2518
|
null,
|
|
2519
2519
|
f && d.createElement(E, { sideCar: Hs, removeScrollBar: c, shards: p, noRelative: m, noIsolation: w, inert: h, setCallbacks: s, allowPinchZoom: !!v, lockRef: n, gapMode: C }),
|
|
2520
|
-
i ? d.cloneElement(d.Children.only(a), Ie(Ie({}, k), { ref:
|
|
2520
|
+
i ? d.cloneElement(d.Children.only(a), Ie(Ie({}, k), { ref: L })) : d.createElement(S, Ie({}, k, { className: l, ref: L }), a)
|
|
2521
2521
|
);
|
|
2522
2522
|
});
|
|
2523
2523
|
Nn.defaultProps = {
|
|
@@ -2763,13 +2763,13 @@ function xu(e) {
|
|
|
2763
2763
|
var a = d.useCallback(function(h, v) {
|
|
2764
2764
|
if ("touches" in h && h.touches.length === 2 || h.type === "wheel" && h.ctrlKey)
|
|
2765
2765
|
return !i.current.allowPinchZoom;
|
|
2766
|
-
var x = tn(h), S = n.current, C = "deltaX" in h ? h.deltaX : S[0] - x[0], y = "deltaY" in h ? h.deltaY : S[1] - x[1], E,
|
|
2767
|
-
if ("touches" in h && k === "h" &&
|
|
2766
|
+
var x = tn(h), S = n.current, C = "deltaX" in h ? h.deltaX : S[0] - x[0], y = "deltaY" in h ? h.deltaY : S[1] - x[1], E, L = h.target, k = Math.abs(C) > Math.abs(y) ? "h" : "v";
|
|
2767
|
+
if ("touches" in h && k === "h" && L.type === "range")
|
|
2768
2768
|
return !1;
|
|
2769
|
-
var A = Dr(k,
|
|
2769
|
+
var A = Dr(k, L);
|
|
2770
2770
|
if (!A)
|
|
2771
2771
|
return !0;
|
|
2772
|
-
if (A ? E = k : (E = k === "v" ? "h" : "v", A = Dr(k,
|
|
2772
|
+
if (A ? E = k : (E = k === "v" ? "h" : "v", A = Dr(k, L)), !A)
|
|
2773
2773
|
return !1;
|
|
2774
2774
|
if (!o.current && "changedTouches" in h && (C || y) && (o.current = E), !E)
|
|
2775
2775
|
return !0;
|
|
@@ -2854,7 +2854,7 @@ var Eu = [" ", "Enter", "ArrowUp", "ArrowDown"], Au = [" ", "Enter"], at = "Sele
|
|
|
2854
2854
|
disabled: g,
|
|
2855
2855
|
required: m,
|
|
2856
2856
|
form: w
|
|
2857
|
-
} = e, h = kn(t), [v, x] = d.useState(null), [S, C] = d.useState(null), [y, E] = d.useState(!1),
|
|
2857
|
+
} = e, h = kn(t), [v, x] = d.useState(null), [S, C] = d.useState(null), [y, E] = d.useState(!1), L = Po(c), [k, A] = Bt({
|
|
2858
2858
|
prop: o,
|
|
2859
2859
|
defaultProp: r ?? !1,
|
|
2860
2860
|
onChange: s,
|
|
@@ -2864,7 +2864,7 @@ var Eu = [" ", "Enter", "ArrowUp", "ArrowDown"], Au = [" ", "Enter"], at = "Sele
|
|
|
2864
2864
|
defaultProp: a,
|
|
2865
2865
|
onChange: l,
|
|
2866
2866
|
caller: at
|
|
2867
|
-
}), j = d.useRef(null), q = v ? w || !!v.closest("form") : !0, [
|
|
2867
|
+
}), j = d.useRef(null), q = v ? w || !!v.closest("form") : !0, [T, F] = d.useState(/* @__PURE__ */ new Set()), U = Array.from(T).map((D) => D.props.value).join(";");
|
|
2868
2868
|
return /* @__PURE__ */ u(Ms, { ...h, children: /* @__PURE__ */ O(
|
|
2869
2869
|
Ru,
|
|
2870
2870
|
{
|
|
@@ -2881,7 +2881,7 @@ var Eu = [" ", "Enter", "ArrowUp", "ArrowDown"], Au = [" ", "Enter"], at = "Sele
|
|
|
2881
2881
|
onValueChange: X,
|
|
2882
2882
|
open: k,
|
|
2883
2883
|
onOpenChange: A,
|
|
2884
|
-
dir:
|
|
2884
|
+
dir: L,
|
|
2885
2885
|
triggerPointerDownPosRef: j,
|
|
2886
2886
|
disabled: g,
|
|
2887
2887
|
children: [
|
|
@@ -2889,13 +2889,13 @@ var Eu = [" ", "Enter", "ArrowUp", "ArrowDown"], Au = [" ", "Enter"], at = "Sele
|
|
|
2889
2889
|
Tu,
|
|
2890
2890
|
{
|
|
2891
2891
|
scope: e.__scopeSelect,
|
|
2892
|
-
onNativeOptionAdd: d.useCallback((
|
|
2893
|
-
|
|
2892
|
+
onNativeOptionAdd: d.useCallback((D) => {
|
|
2893
|
+
F((Y) => new Set(Y).add(D));
|
|
2894
2894
|
}, []),
|
|
2895
|
-
onNativeOptionRemove: d.useCallback((
|
|
2896
|
-
|
|
2897
|
-
const
|
|
2898
|
-
return
|
|
2895
|
+
onNativeOptionRemove: d.useCallback((D) => {
|
|
2896
|
+
F((Y) => {
|
|
2897
|
+
const R = new Set(Y);
|
|
2898
|
+
return R.delete(D), R;
|
|
2899
2899
|
});
|
|
2900
2900
|
}, []),
|
|
2901
2901
|
children: n
|
|
@@ -2910,15 +2910,15 @@ var Eu = [" ", "Enter", "ArrowUp", "ArrowDown"], Au = [" ", "Enter"], at = "Sele
|
|
|
2910
2910
|
name: f,
|
|
2911
2911
|
autoComplete: p,
|
|
2912
2912
|
value: G,
|
|
2913
|
-
onChange: (
|
|
2913
|
+
onChange: (D) => X(D.target.value),
|
|
2914
2914
|
disabled: g,
|
|
2915
2915
|
form: w,
|
|
2916
2916
|
children: [
|
|
2917
2917
|
G === void 0 ? /* @__PURE__ */ u("option", { value: "" }) : null,
|
|
2918
|
-
Array.from(
|
|
2918
|
+
Array.from(T)
|
|
2919
2919
|
]
|
|
2920
2920
|
},
|
|
2921
|
-
|
|
2921
|
+
U
|
|
2922
2922
|
) : null
|
|
2923
2923
|
]
|
|
2924
2924
|
}
|
|
@@ -2927,7 +2927,7 @@ var Eu = [" ", "Enter", "ArrowUp", "ArrowDown"], Au = [" ", "Enter"], at = "Sele
|
|
|
2927
2927
|
Ks.displayName = at;
|
|
2928
2928
|
var Xs = "SelectTrigger", qs = d.forwardRef(
|
|
2929
2929
|
(e, t) => {
|
|
2930
|
-
const { __scopeSelect: n, disabled: o = !1, ...r } = e, s = kn(n), i = Je(Xs, n), a = i.disabled || o, l =
|
|
2930
|
+
const { __scopeSelect: n, disabled: o = !1, ...r } = e, s = kn(n), i = Je(Xs, n), a = i.disabled || o, l = ae(t, i.onTriggerChange), c = Tn(n), f = d.useRef("touch"), [p, g, m] = wi((h) => {
|
|
2931
2931
|
const v = c().filter((C) => !C.disabled), x = v.find((C) => C.value === i.value), S = xi(v, h, x);
|
|
2932
2932
|
S !== void 0 && i.onValueChange(S.value);
|
|
2933
2933
|
}), w = (h) => {
|
|
@@ -2971,7 +2971,7 @@ var Xs = "SelectTrigger", qs = d.forwardRef(
|
|
|
2971
2971
|
qs.displayName = Xs;
|
|
2972
2972
|
var Zs = "SelectValue", Qs = d.forwardRef(
|
|
2973
2973
|
(e, t) => {
|
|
2974
|
-
const { __scopeSelect: n, className: o, style: r, children: s, placeholder: i = "", ...a } = e, l = Je(Zs, n), { onValueNodeHasChildrenChange: c } = l, f = s !== void 0, p =
|
|
2974
|
+
const { __scopeSelect: n, className: o, style: r, children: s, placeholder: i = "", ...a } = e, l = Je(Zs, n), { onValueNodeHasChildrenChange: c } = l, f = s !== void 0, p = ae(t, l.onValueNodeChange);
|
|
2975
2975
|
return he(() => {
|
|
2976
2976
|
c(f);
|
|
2977
2977
|
}, [c, f]), /* @__PURE__ */ u(
|
|
@@ -3033,64 +3033,64 @@ var Te = 10, [ni, et] = Nt(lt), Ou = "SelectContentImpl", Iu = /* @__PURE__ */ x
|
|
|
3033
3033
|
avoidCollisions: v,
|
|
3034
3034
|
//
|
|
3035
3035
|
...x
|
|
3036
|
-
} = e, S = Je(lt, n), [C, y] = d.useState(null), [E,
|
|
3036
|
+
} = e, S = Je(lt, n), [C, y] = d.useState(null), [E, L] = d.useState(null), k = ae(t, (M) => y(M)), [A, G] = d.useState(null), [X, j] = d.useState(
|
|
3037
3037
|
null
|
|
3038
|
-
), q = Tn(n), [
|
|
3038
|
+
), q = Tn(n), [T, F] = d.useState(!1), U = d.useRef(!1);
|
|
3039
3039
|
d.useEffect(() => {
|
|
3040
3040
|
if (C) return Bs(C);
|
|
3041
3041
|
}, [C]), cs();
|
|
3042
|
-
const
|
|
3043
|
-
(
|
|
3044
|
-
const [ee, ...
|
|
3045
|
-
for (const
|
|
3046
|
-
if (
|
|
3042
|
+
const D = d.useCallback(
|
|
3043
|
+
(M) => {
|
|
3044
|
+
const [ee, ...se] = q().map((re) => re.ref.current), [Q] = se.slice(-1), oe = document.activeElement;
|
|
3045
|
+
for (const re of M)
|
|
3046
|
+
if (re === oe || (re?.scrollIntoView({ block: "nearest" }), re === ee && E && (E.scrollTop = 0), re === Q && E && (E.scrollTop = E.scrollHeight), re?.focus(), document.activeElement !== oe)) return;
|
|
3047
3047
|
},
|
|
3048
3048
|
[q, E]
|
|
3049
3049
|
), Y = d.useCallback(
|
|
3050
|
-
() =>
|
|
3051
|
-
[
|
|
3050
|
+
() => D([A, C]),
|
|
3051
|
+
[D, A, C]
|
|
3052
3052
|
);
|
|
3053
3053
|
d.useEffect(() => {
|
|
3054
|
-
|
|
3055
|
-
}, [
|
|
3056
|
-
const { onOpenChange:
|
|
3054
|
+
T && Y();
|
|
3055
|
+
}, [T, Y]);
|
|
3056
|
+
const { onOpenChange: R, triggerPointerDownPosRef: ne } = S;
|
|
3057
3057
|
d.useEffect(() => {
|
|
3058
3058
|
if (C) {
|
|
3059
|
-
let
|
|
3059
|
+
let M = { x: 0, y: 0 };
|
|
3060
3060
|
const ee = (Q) => {
|
|
3061
|
-
|
|
3061
|
+
M = {
|
|
3062
3062
|
x: Math.abs(Math.round(Q.pageX) - (ne.current?.x ?? 0)),
|
|
3063
3063
|
y: Math.abs(Math.round(Q.pageY) - (ne.current?.y ?? 0))
|
|
3064
3064
|
};
|
|
3065
|
-
},
|
|
3066
|
-
|
|
3065
|
+
}, se = (Q) => {
|
|
3066
|
+
M.x <= 10 && M.y <= 10 ? Q.preventDefault() : C.contains(Q.target) || R(!1), document.removeEventListener("pointermove", ee), ne.current = null;
|
|
3067
3067
|
};
|
|
3068
|
-
return ne.current !== null && (document.addEventListener("pointermove", ee), document.addEventListener("pointerup",
|
|
3069
|
-
document.removeEventListener("pointermove", ee), document.removeEventListener("pointerup",
|
|
3068
|
+
return ne.current !== null && (document.addEventListener("pointermove", ee), document.addEventListener("pointerup", se, { capture: !0, once: !0 })), () => {
|
|
3069
|
+
document.removeEventListener("pointermove", ee), document.removeEventListener("pointerup", se, { capture: !0 });
|
|
3070
3070
|
};
|
|
3071
3071
|
}
|
|
3072
|
-
}, [C,
|
|
3073
|
-
const
|
|
3074
|
-
return window.addEventListener("blur",
|
|
3075
|
-
window.removeEventListener("blur",
|
|
3072
|
+
}, [C, R, ne]), d.useEffect(() => {
|
|
3073
|
+
const M = () => R(!1);
|
|
3074
|
+
return window.addEventListener("blur", M), window.addEventListener("resize", M), () => {
|
|
3075
|
+
window.removeEventListener("blur", M), window.removeEventListener("resize", M);
|
|
3076
3076
|
};
|
|
3077
|
-
}, [
|
|
3078
|
-
const [
|
|
3079
|
-
const ee = q().filter((oe) => !oe.disabled),
|
|
3077
|
+
}, [R]);
|
|
3078
|
+
const [N, _] = wi((M) => {
|
|
3079
|
+
const ee = q().filter((oe) => !oe.disabled), se = ee.find((oe) => oe.ref.current === document.activeElement), Q = xi(ee, M, se);
|
|
3080
3080
|
Q && setTimeout(() => Q.ref.current.focus());
|
|
3081
3081
|
}), V = d.useCallback(
|
|
3082
|
-
(
|
|
3083
|
-
const Q = !
|
|
3084
|
-
(S.value !== void 0 && S.value === ee || Q) && (G(
|
|
3082
|
+
(M, ee, se) => {
|
|
3083
|
+
const Q = !U.current && !se;
|
|
3084
|
+
(S.value !== void 0 && S.value === ee || Q) && (G(M), Q && (U.current = !0));
|
|
3085
3085
|
},
|
|
3086
3086
|
[S.value]
|
|
3087
|
-
), I = d.useCallback(() => C?.focus(), [C]),
|
|
3088
|
-
(
|
|
3089
|
-
const Q = !
|
|
3090
|
-
(S.value !== void 0 && S.value === ee || Q) && j(
|
|
3087
|
+
), I = d.useCallback(() => C?.focus(), [C]), $ = d.useCallback(
|
|
3088
|
+
(M, ee, se) => {
|
|
3089
|
+
const Q = !U.current && !se;
|
|
3090
|
+
(S.value !== void 0 && S.value === ee || Q) && j(M);
|
|
3091
3091
|
},
|
|
3092
3092
|
[S.value]
|
|
3093
|
-
),
|
|
3093
|
+
), K = o === "popper" ? vo : ri, le = K === vo ? {
|
|
3094
3094
|
side: a,
|
|
3095
3095
|
sideOffset: l,
|
|
3096
3096
|
align: c,
|
|
@@ -3108,26 +3108,26 @@ var Te = 10, [ni, et] = Nt(lt), Ou = "SelectContentImpl", Iu = /* @__PURE__ */ x
|
|
|
3108
3108
|
scope: n,
|
|
3109
3109
|
content: C,
|
|
3110
3110
|
viewport: E,
|
|
3111
|
-
onViewportChange:
|
|
3111
|
+
onViewportChange: L,
|
|
3112
3112
|
itemRefCallback: V,
|
|
3113
3113
|
selectedItem: A,
|
|
3114
3114
|
onItemLeave: I,
|
|
3115
|
-
itemTextRefCallback:
|
|
3115
|
+
itemTextRefCallback: $,
|
|
3116
3116
|
focusSelectedItem: Y,
|
|
3117
3117
|
selectedItemText: X,
|
|
3118
3118
|
position: o,
|
|
3119
|
-
isPositioned:
|
|
3120
|
-
searchRef:
|
|
3119
|
+
isPositioned: T,
|
|
3120
|
+
searchRef: N,
|
|
3121
3121
|
children: /* @__PURE__ */ u(Ho, { as: Iu, allowPinchZoom: !0, children: /* @__PURE__ */ u(
|
|
3122
3122
|
Oo,
|
|
3123
3123
|
{
|
|
3124
3124
|
asChild: !0,
|
|
3125
3125
|
trapped: S.open,
|
|
3126
|
-
onMountAutoFocus: (
|
|
3127
|
-
|
|
3126
|
+
onMountAutoFocus: (M) => {
|
|
3127
|
+
M.preventDefault();
|
|
3128
3128
|
},
|
|
3129
|
-
onUnmountAutoFocus: te(r, (
|
|
3130
|
-
S.trigger?.focus({ preventScroll: !0 }),
|
|
3129
|
+
onUnmountAutoFocus: te(r, (M) => {
|
|
3130
|
+
S.trigger?.focus({ preventScroll: !0 }), M.preventDefault();
|
|
3131
3131
|
}),
|
|
3132
3132
|
children: /* @__PURE__ */ u(
|
|
3133
3133
|
_o,
|
|
@@ -3136,19 +3136,19 @@ var Te = 10, [ni, et] = Nt(lt), Ou = "SelectContentImpl", Iu = /* @__PURE__ */ x
|
|
|
3136
3136
|
disableOutsidePointerEvents: !0,
|
|
3137
3137
|
onEscapeKeyDown: s,
|
|
3138
3138
|
onPointerDownOutside: i,
|
|
3139
|
-
onFocusOutside: (
|
|
3139
|
+
onFocusOutside: (M) => M.preventDefault(),
|
|
3140
3140
|
onDismiss: () => S.onOpenChange(!1),
|
|
3141
3141
|
children: /* @__PURE__ */ u(
|
|
3142
|
-
|
|
3142
|
+
K,
|
|
3143
3143
|
{
|
|
3144
3144
|
role: "listbox",
|
|
3145
3145
|
id: S.contentId,
|
|
3146
3146
|
"data-state": S.open ? "open" : "closed",
|
|
3147
3147
|
dir: S.dir,
|
|
3148
|
-
onContextMenu: (
|
|
3148
|
+
onContextMenu: (M) => M.preventDefault(),
|
|
3149
3149
|
...x,
|
|
3150
|
-
...
|
|
3151
|
-
onPlaced: () =>
|
|
3150
|
+
...le,
|
|
3151
|
+
onPlaced: () => F(!0),
|
|
3152
3152
|
ref: k,
|
|
3153
3153
|
style: {
|
|
3154
3154
|
// flex layout so we can place the scroll buttons properly
|
|
@@ -3158,15 +3158,15 @@ var Te = 10, [ni, et] = Nt(lt), Ou = "SelectContentImpl", Iu = /* @__PURE__ */ x
|
|
|
3158
3158
|
outline: "none",
|
|
3159
3159
|
...x.style
|
|
3160
3160
|
},
|
|
3161
|
-
onKeyDown: te(x.onKeyDown, (
|
|
3162
|
-
const ee =
|
|
3163
|
-
if (
|
|
3161
|
+
onKeyDown: te(x.onKeyDown, (M) => {
|
|
3162
|
+
const ee = M.ctrlKey || M.altKey || M.metaKey;
|
|
3163
|
+
if (M.key === "Tab" && M.preventDefault(), !ee && M.key.length === 1 && _(M.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(M.key)) {
|
|
3164
3164
|
let Q = q().filter((oe) => !oe.disabled).map((oe) => oe.ref.current);
|
|
3165
|
-
if (["ArrowUp", "End"].includes(
|
|
3166
|
-
const oe =
|
|
3167
|
-
Q = Q.slice(
|
|
3165
|
+
if (["ArrowUp", "End"].includes(M.key) && (Q = Q.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(M.key)) {
|
|
3166
|
+
const oe = M.target, re = Q.indexOf(oe);
|
|
3167
|
+
Q = Q.slice(re + 1);
|
|
3168
3168
|
}
|
|
3169
|
-
setTimeout(() =>
|
|
3169
|
+
setTimeout(() => D(Q)), M.preventDefault();
|
|
3170
3170
|
}
|
|
3171
3171
|
})
|
|
3172
3172
|
}
|
|
@@ -3181,11 +3181,11 @@ var Te = 10, [ni, et] = Nt(lt), Ou = "SelectContentImpl", Iu = /* @__PURE__ */ x
|
|
|
3181
3181
|
);
|
|
3182
3182
|
oi.displayName = Ou;
|
|
3183
3183
|
var Mu = "SelectItemAlignedPosition", ri = d.forwardRef((e, t) => {
|
|
3184
|
-
const { __scopeSelect: n, onPlaced: o, ...r } = e, s = Je(lt, n), i = et(lt, n), [a, l] = d.useState(null), [c, f] = d.useState(null), p =
|
|
3184
|
+
const { __scopeSelect: n, onPlaced: o, ...r } = e, s = Je(lt, n), i = et(lt, n), [a, l] = d.useState(null), [c, f] = d.useState(null), p = ae(t, (k) => f(k)), g = Tn(n), m = d.useRef(!1), w = d.useRef(!0), { viewport: h, selectedItem: v, selectedItemText: x, focusSelectedItem: S } = i, C = d.useCallback(() => {
|
|
3185
3185
|
if (s.trigger && s.valueNode && a && c && h && v && x) {
|
|
3186
3186
|
const k = s.trigger.getBoundingClientRect(), A = c.getBoundingClientRect(), G = s.valueNode.getBoundingClientRect(), X = x.getBoundingClientRect();
|
|
3187
3187
|
if (s.dir !== "rtl") {
|
|
3188
|
-
const oe = X.left - A.left,
|
|
3188
|
+
const oe = X.left - A.left, re = G.left - oe, ue = k.left - re, Ae = k.width + ue, Re = Math.max(Ae, A.width), nt = window.innerWidth - Te, ot = pr(re, [
|
|
3189
3189
|
Te,
|
|
3190
3190
|
// Prevents the content from going off the starting edge of the
|
|
3191
3191
|
// viewport. It may still go off the ending edge, but this can be
|
|
@@ -3196,33 +3196,33 @@ var Mu = "SelectItemAlignedPosition", ri = d.forwardRef((e, t) => {
|
|
|
3196
3196
|
]);
|
|
3197
3197
|
a.style.minWidth = Ae + "px", a.style.left = ot + "px";
|
|
3198
3198
|
} else {
|
|
3199
|
-
const oe = A.right - X.right,
|
|
3199
|
+
const oe = A.right - X.right, re = window.innerWidth - G.right - oe, ue = window.innerWidth - k.right - re, Ae = k.width + ue, Re = Math.max(Ae, A.width), nt = window.innerWidth - Te, ot = pr(re, [
|
|
3200
3200
|
Te,
|
|
3201
3201
|
Math.max(Te, nt - Re)
|
|
3202
3202
|
]);
|
|
3203
3203
|
a.style.minWidth = Ae + "px", a.style.right = ot + "px";
|
|
3204
3204
|
}
|
|
3205
|
-
const j = g(), q = window.innerHeight - Te * 2,
|
|
3206
|
-
if (ee <=
|
|
3205
|
+
const j = g(), q = window.innerHeight - Te * 2, T = h.scrollHeight, F = window.getComputedStyle(c), U = parseInt(F.borderTopWidth, 10), D = parseInt(F.paddingTop, 10), Y = parseInt(F.borderBottomWidth, 10), R = parseInt(F.paddingBottom, 10), ne = U + D + T + R + Y, N = Math.min(v.offsetHeight * 5, ne), _ = window.getComputedStyle(h), V = parseInt(_.paddingTop, 10), I = parseInt(_.paddingBottom, 10), $ = k.top + k.height / 2 - Te, K = q - $, le = v.offsetHeight / 2, M = v.offsetTop + le, ee = U + D + M, se = ne - ee;
|
|
3206
|
+
if (ee <= $) {
|
|
3207
3207
|
const oe = j.length > 0 && v === j[j.length - 1].ref.current;
|
|
3208
3208
|
a.style.bottom = "0px";
|
|
3209
|
-
const
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
(oe ? I : 0) +
|
|
3209
|
+
const re = c.clientHeight - h.offsetTop - h.offsetHeight, ue = Math.max(
|
|
3210
|
+
K,
|
|
3211
|
+
le + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
|
3212
|
+
(oe ? I : 0) + re + Y
|
|
3213
3213
|
), Ae = ee + ue;
|
|
3214
3214
|
a.style.height = Ae + "px";
|
|
3215
3215
|
} else {
|
|
3216
3216
|
const oe = j.length > 0 && v === j[0].ref.current;
|
|
3217
3217
|
a.style.top = "0px";
|
|
3218
3218
|
const ue = Math.max(
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
(oe ? V : 0) +
|
|
3222
|
-
) +
|
|
3223
|
-
a.style.height = ue + "px", h.scrollTop = ee -
|
|
3219
|
+
$,
|
|
3220
|
+
U + h.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
3221
|
+
(oe ? V : 0) + le
|
|
3222
|
+
) + se;
|
|
3223
|
+
a.style.height = ue + "px", h.scrollTop = ee - $ + h.offsetTop;
|
|
3224
3224
|
}
|
|
3225
|
-
a.style.margin = `${Te}px 0`, a.style.minHeight =
|
|
3225
|
+
a.style.margin = `${Te}px 0`, a.style.minHeight = N + "px", a.style.maxHeight = q + "px", o?.(), requestAnimationFrame(() => m.current = !0);
|
|
3226
3226
|
}
|
|
3227
3227
|
}, [
|
|
3228
3228
|
g,
|
|
@@ -3241,7 +3241,7 @@ var Mu = "SelectItemAlignedPosition", ri = d.forwardRef((e, t) => {
|
|
|
3241
3241
|
he(() => {
|
|
3242
3242
|
c && E(window.getComputedStyle(c).zIndex);
|
|
3243
3243
|
}, [c]);
|
|
3244
|
-
const
|
|
3244
|
+
const L = d.useCallback(
|
|
3245
3245
|
(k) => {
|
|
3246
3246
|
k && w.current === !0 && (C(), S?.(), w.current = !1);
|
|
3247
3247
|
},
|
|
@@ -3253,7 +3253,7 @@ var Mu = "SelectItemAlignedPosition", ri = d.forwardRef((e, t) => {
|
|
|
3253
3253
|
scope: n,
|
|
3254
3254
|
contentWrapper: a,
|
|
3255
3255
|
shouldExpandOnScrollRef: m,
|
|
3256
|
-
onScrollButtonChange:
|
|
3256
|
+
onScrollButtonChange: L,
|
|
3257
3257
|
children: /* @__PURE__ */ u(
|
|
3258
3258
|
"div",
|
|
3259
3259
|
{
|
|
@@ -3316,7 +3316,7 @@ var Du = "SelectPopperPosition", vo = d.forwardRef((e, t) => {
|
|
|
3316
3316
|
vo.displayName = Du;
|
|
3317
3317
|
var [Lu, Vo] = Nt(lt, {}), yo = "SelectViewport", si = d.forwardRef(
|
|
3318
3318
|
(e, t) => {
|
|
3319
|
-
const { __scopeSelect: n, nonce: o, ...r } = e, s = et(yo, n), i = Vo(yo, n), a =
|
|
3319
|
+
const { __scopeSelect: n, nonce: o, ...r } = e, s = et(yo, n), i = Vo(yo, n), a = ae(t, s.onViewportChange), l = d.useRef(0);
|
|
3320
3320
|
return /* @__PURE__ */ O(Ve, { children: [
|
|
3321
3321
|
/* @__PURE__ */ u(
|
|
3322
3322
|
"style",
|
|
@@ -3389,7 +3389,7 @@ var bn = "SelectItem", [zu, ui] = Nt(bn), di = d.forwardRef(
|
|
|
3389
3389
|
disabled: r = !1,
|
|
3390
3390
|
textValue: s,
|
|
3391
3391
|
...i
|
|
3392
|
-
} = e, a = Je(bn, n), l = et(bn, n), c = a.value === o, [f, p] = d.useState(s ?? ""), [g, m] = d.useState(!1), w =
|
|
3392
|
+
} = e, a = Je(bn, n), l = et(bn, n), c = a.value === o, [f, p] = d.useState(s ?? ""), [g, m] = d.useState(!1), w = ae(
|
|
3393
3393
|
t,
|
|
3394
3394
|
(S) => l.itemRefCallback?.(S, o, r)
|
|
3395
3395
|
), h = Ut(), v = d.useRef("touch"), x = () => {
|
|
@@ -3461,7 +3461,7 @@ var bn = "SelectItem", [zu, ui] = Nt(bn), di = d.forwardRef(
|
|
|
3461
3461
|
di.displayName = bn;
|
|
3462
3462
|
var Ft = "SelectItemText", fi = d.forwardRef(
|
|
3463
3463
|
(e, t) => {
|
|
3464
|
-
const { __scopeSelect: n, className: o, style: r, ...s } = e, i = Je(Ft, n), a = et(Ft, n), l = ui(Ft, n), c = ku(Ft, n), [f, p] = d.useState(null), g =
|
|
3464
|
+
const { __scopeSelect: n, className: o, style: r, ...s } = e, i = Je(Ft, n), a = et(Ft, n), l = ui(Ft, n), c = ku(Ft, n), [f, p] = d.useState(null), g = ae(
|
|
3465
3465
|
t,
|
|
3466
3466
|
(x) => p(x),
|
|
3467
3467
|
l.onItemTextChange,
|
|
@@ -3485,7 +3485,7 @@ var pi = "SelectItemIndicator", Bu = d.forwardRef(
|
|
|
3485
3485
|
);
|
|
3486
3486
|
Bu.displayName = pi;
|
|
3487
3487
|
var wo = "SelectScrollUpButton", mi = d.forwardRef((e, t) => {
|
|
3488
|
-
const n = et(wo, e.__scopeSelect), o = Vo(wo, e.__scopeSelect), [r, s] = d.useState(!1), i =
|
|
3488
|
+
const n = et(wo, e.__scopeSelect), o = Vo(wo, e.__scopeSelect), [r, s] = d.useState(!1), i = ae(t, o.onScrollButtonChange);
|
|
3489
3489
|
return he(() => {
|
|
3490
3490
|
if (n.viewport && n.isPositioned) {
|
|
3491
3491
|
let a = function() {
|
|
@@ -3509,7 +3509,7 @@ var wo = "SelectScrollUpButton", mi = d.forwardRef((e, t) => {
|
|
|
3509
3509
|
});
|
|
3510
3510
|
mi.displayName = wo;
|
|
3511
3511
|
var xo = "SelectScrollDownButton", Uu = d.forwardRef((e, t) => {
|
|
3512
|
-
const n = et(xo, e.__scopeSelect), o = Vo(xo, e.__scopeSelect), [r, s] = d.useState(!1), i =
|
|
3512
|
+
const n = et(xo, e.__scopeSelect), o = Vo(xo, e.__scopeSelect), [r, s] = d.useState(!1), i = ae(t, o.onScrollButtonChange);
|
|
3513
3513
|
return he(() => {
|
|
3514
3514
|
if (n.viewport && n.isPositioned) {
|
|
3515
3515
|
let a = function() {
|
|
@@ -3572,7 +3572,7 @@ var So = "SelectArrow", bi = d.forwardRef(
|
|
|
3572
3572
|
bi.displayName = So;
|
|
3573
3573
|
var Hu = "SelectBubbleInput", vi = d.forwardRef(
|
|
3574
3574
|
({ __scopeSelect: e, value: t, ...n }, o) => {
|
|
3575
|
-
const r = d.useRef(null), s =
|
|
3575
|
+
const r = d.useRef(null), s = ae(o, r), i = Fs(t);
|
|
3576
3576
|
return d.useEffect(() => {
|
|
3577
3577
|
const a = r.current;
|
|
3578
3578
|
if (!a) return;
|
|
@@ -4023,7 +4023,7 @@ function Ni() {
|
|
|
4023
4023
|
}
|
|
4024
4024
|
let y, E = "";
|
|
4025
4025
|
const {
|
|
4026
|
-
implementation:
|
|
4026
|
+
implementation: L,
|
|
4027
4027
|
createNodeIterator: k,
|
|
4028
4028
|
createDocumentFragment: A,
|
|
4029
4029
|
getElementsByTagName: G
|
|
@@ -4031,24 +4031,24 @@ function Ni() {
|
|
|
4031
4031
|
importNode: X
|
|
4032
4032
|
} = o;
|
|
4033
4033
|
let j = Kr();
|
|
4034
|
-
t.isSupported = typeof Ci == "function" && typeof C == "function" &&
|
|
4034
|
+
t.isSupported = typeof Ci == "function" && typeof C == "function" && L && L.createHTMLDocument !== void 0;
|
|
4035
4035
|
const {
|
|
4036
4036
|
MUSTACHE_EXPR: q,
|
|
4037
|
-
ERB_EXPR:
|
|
4038
|
-
TMPLIT_EXPR:
|
|
4039
|
-
DATA_ATTR:
|
|
4040
|
-
ARIA_ATTR:
|
|
4037
|
+
ERB_EXPR: T,
|
|
4038
|
+
TMPLIT_EXPR: F,
|
|
4039
|
+
DATA_ATTR: U,
|
|
4040
|
+
ARIA_ATTR: D,
|
|
4041
4041
|
IS_SCRIPT_OR_DATA: Y,
|
|
4042
|
-
ATTR_WHITESPACE:
|
|
4042
|
+
ATTR_WHITESPACE: R,
|
|
4043
4043
|
CUSTOM_ELEMENT: ne
|
|
4044
4044
|
} = Yr;
|
|
4045
4045
|
let {
|
|
4046
|
-
IS_ALLOWED_URI:
|
|
4046
|
+
IS_ALLOWED_URI: N
|
|
4047
4047
|
} = Yr, _ = null;
|
|
4048
4048
|
const V = J({}, [...Hr, ...no, ...oo, ...ro, ...Vr]);
|
|
4049
4049
|
let I = null;
|
|
4050
|
-
const
|
|
4051
|
-
let
|
|
4050
|
+
const $ = J({}, [...jr, ...so, ...Gr, ...on]);
|
|
4051
|
+
let K = Object.seal(Co(null, {
|
|
4052
4052
|
tagNameCheck: {
|
|
4053
4053
|
writable: !0,
|
|
4054
4054
|
configurable: !1,
|
|
@@ -4067,7 +4067,7 @@ function Ni() {
|
|
|
4067
4067
|
enumerable: !0,
|
|
4068
4068
|
value: !1
|
|
4069
4069
|
}
|
|
4070
|
-
})),
|
|
4070
|
+
})), le = null, M = null;
|
|
4071
4071
|
const ee = Object.seal(Co(null, {
|
|
4072
4072
|
tagCheck: {
|
|
4073
4073
|
writable: !0,
|
|
@@ -4082,7 +4082,7 @@ function Ni() {
|
|
|
4082
4082
|
value: null
|
|
4083
4083
|
}
|
|
4084
4084
|
}));
|
|
4085
|
-
let
|
|
4085
|
+
let se = !0, Q = !0, oe = !1, re = !0, ue = !1, Ae = !0, Re = !1, nt = !1, ot = !1, ut = !1, jt = !1, Gt = !1, Ko = !0, Xo = !1;
|
|
4086
4086
|
const va = "user-content-";
|
|
4087
4087
|
let $n = !0, kt = !1, dt = {}, ft = null;
|
|
4088
4088
|
const qo = J({}, ["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"]);
|
|
@@ -4103,7 +4103,7 @@ function Ni() {
|
|
|
4103
4103
|
let b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4104
4104
|
if (!(mt && mt === b)) {
|
|
4105
4105
|
if ((!b || typeof b != "object") && (b = {}), b = He(b), Pt = // eslint-disable-next-line unicorn/prefer-includes
|
|
4106
|
-
xa.indexOf(b.PARSER_MEDIA_TYPE) === -1 ? Sa : b.PARSER_MEDIA_TYPE, fe = Pt === "application/xhtml+xml" ? eo : dn, _ = ke(b, "ALLOWED_TAGS") ? J({}, b.ALLOWED_TAGS, fe) : V, I = ke(b, "ALLOWED_ATTR") ? J({}, b.ALLOWED_ATTR, fe) :
|
|
4106
|
+
xa.indexOf(b.PARSER_MEDIA_TYPE) === -1 ? Sa : b.PARSER_MEDIA_TYPE, fe = Pt === "application/xhtml+xml" ? eo : dn, _ = ke(b, "ALLOWED_TAGS") ? J({}, b.ALLOWED_TAGS, fe) : V, I = ke(b, "ALLOWED_ATTR") ? J({}, b.ALLOWED_ATTR, fe) : $, Un = ke(b, "ALLOWED_NAMESPACES") ? J({}, b.ALLOWED_NAMESPACES, eo) : ya, zn = ke(b, "ADD_URI_SAFE_ATTR") ? J(He(Jo), b.ADD_URI_SAFE_ATTR, fe) : Jo, Zo = ke(b, "ADD_DATA_URI_TAGS") ? J(He(Qo), b.ADD_DATA_URI_TAGS, fe) : Qo, ft = ke(b, "FORBID_CONTENTS") ? J({}, b.FORBID_CONTENTS, fe) : qo, le = ke(b, "FORBID_TAGS") ? J({}, b.FORBID_TAGS, fe) : He({}), M = ke(b, "FORBID_ATTR") ? J({}, b.FORBID_ATTR, fe) : He({}), dt = ke(b, "USE_PROFILES") ? b.USE_PROFILES : !1, se = b.ALLOW_ARIA_ATTR !== !1, Q = b.ALLOW_DATA_ATTR !== !1, oe = b.ALLOW_UNKNOWN_PROTOCOLS || !1, re = b.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ue = b.SAFE_FOR_TEMPLATES || !1, Ae = b.SAFE_FOR_XML !== !1, Re = b.WHOLE_DOCUMENT || !1, ut = b.RETURN_DOM || !1, jt = b.RETURN_DOM_FRAGMENT || !1, Gt = b.RETURN_TRUSTED_TYPE || !1, ot = b.FORCE_BODY || !1, Ko = b.SANITIZE_DOM !== !1, Xo = b.SANITIZE_NAMED_PROPS || !1, $n = b.KEEP_CONTENT !== !1, kt = b.IN_PLACE || !1, N = b.ALLOWED_URI_REGEXP || Ei, pt = b.NAMESPACE || ze, Xt = b.MATHML_TEXT_INTEGRATION_POINTS || Xt, qt = b.HTML_INTEGRATION_POINTS || qt, K = b.CUSTOM_ELEMENT_HANDLING || {}, b.CUSTOM_ELEMENT_HANDLING && er(b.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (K.tagNameCheck = b.CUSTOM_ELEMENT_HANDLING.tagNameCheck), b.CUSTOM_ELEMENT_HANDLING && er(b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (K.attributeNameCheck = b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), b.CUSTOM_ELEMENT_HANDLING && typeof b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (K.allowCustomizedBuiltInElements = b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ue && (Q = !1), jt && (ut = !0), dt && (_ = J({}, Vr), I = [], dt.html === !0 && (J(_, Hr), J(I, jr)), dt.svg === !0 && (J(_, no), J(I, so), J(I, on)), dt.svgFilters === !0 && (J(_, oo), J(I, so), J(I, on)), dt.mathMl === !0 && (J(_, ro), J(I, Gr), J(I, on))), b.ADD_TAGS && (typeof b.ADD_TAGS == "function" ? ee.tagCheck = b.ADD_TAGS : (_ === V && (_ = He(_)), J(_, b.ADD_TAGS, fe))), b.ADD_ATTR && (typeof b.ADD_ATTR == "function" ? ee.attributeCheck = b.ADD_ATTR : (I === $ && (I = He(I)), J(I, b.ADD_ATTR, fe))), b.ADD_URI_SAFE_ATTR && J(zn, b.ADD_URI_SAFE_ATTR, fe), b.FORBID_CONTENTS && (ft === qo && (ft = He(ft)), J(ft, b.FORBID_CONTENTS, fe)), $n && (_["#text"] = !0), Re && J(_, ["html", "head", "body"]), _.table && (J(_, ["tbody"]), delete le.tbody), b.TRUSTED_TYPES_POLICY) {
|
|
4107
4107
|
if (typeof b.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
4108
4108
|
throw It('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
4109
4109
|
if (typeof b.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -4119,8 +4119,8 @@ function Ni() {
|
|
|
4119
4119
|
namespaceURI: pt,
|
|
4120
4120
|
tagName: "template"
|
|
4121
4121
|
});
|
|
4122
|
-
const
|
|
4123
|
-
return Un[b.namespaceURI] ? b.namespaceURI === Kt ? P.namespaceURI === ze ?
|
|
4122
|
+
const W = dn(b.tagName), ie = dn(P.tagName);
|
|
4123
|
+
return Un[b.namespaceURI] ? b.namespaceURI === Kt ? P.namespaceURI === ze ? W === "svg" : P.namespaceURI === Yt ? W === "svg" && (ie === "annotation-xml" || Xt[ie]) : !!tr[W] : b.namespaceURI === Yt ? P.namespaceURI === ze ? W === "math" : P.namespaceURI === Kt ? W === "math" && qt[ie] : !!nr[W] : b.namespaceURI === ze ? P.namespaceURI === Kt && !qt[ie] || P.namespaceURI === Yt && !Xt[ie] ? !1 : !nr[W] && (wa[W] || !tr[W]) : !!(Pt === "application/xhtml+xml" && Un[b.namespaceURI]) : !1;
|
|
4124
4124
|
}, Oe = function(b) {
|
|
4125
4125
|
_t(t.removed, {
|
|
4126
4126
|
element: b
|
|
@@ -4154,29 +4154,29 @@ function Ni() {
|
|
|
4154
4154
|
} catch {
|
|
4155
4155
|
}
|
|
4156
4156
|
}, or = function(b) {
|
|
4157
|
-
let P = null,
|
|
4157
|
+
let P = null, W = null;
|
|
4158
4158
|
if (ot)
|
|
4159
4159
|
b = "<remove></remove>" + b;
|
|
4160
4160
|
else {
|
|
4161
4161
|
const ce = to(b, /^[\r\n\t ]+/);
|
|
4162
|
-
|
|
4162
|
+
W = ce && ce[0];
|
|
4163
4163
|
}
|
|
4164
4164
|
Pt === "application/xhtml+xml" && pt === ze && (b = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + b + "</body></html>");
|
|
4165
|
-
const
|
|
4165
|
+
const ie = y ? y.createHTML(b) : b;
|
|
4166
4166
|
if (pt === ze)
|
|
4167
4167
|
try {
|
|
4168
|
-
P = new g().parseFromString(
|
|
4168
|
+
P = new g().parseFromString(ie, Pt);
|
|
4169
4169
|
} catch {
|
|
4170
4170
|
}
|
|
4171
4171
|
if (!P || !P.documentElement) {
|
|
4172
|
-
P =
|
|
4172
|
+
P = L.createDocument(pt, "template", null);
|
|
4173
4173
|
try {
|
|
4174
|
-
P.documentElement.innerHTML = Bn ? E :
|
|
4174
|
+
P.documentElement.innerHTML = Bn ? E : ie;
|
|
4175
4175
|
} catch {
|
|
4176
4176
|
}
|
|
4177
4177
|
}
|
|
4178
4178
|
const me = P.body || P.documentElement;
|
|
4179
|
-
return b &&
|
|
4179
|
+
return b && W && me.insertBefore(n.createTextNode(W), me.childNodes[0] || null), pt === ze ? G.call(P, Re ? "html" : "body")[0] : Re ? P.documentElement : me;
|
|
4180
4180
|
}, rr = function(b) {
|
|
4181
4181
|
return k.call(
|
|
4182
4182
|
b.ownerDocument || b,
|
|
@@ -4191,60 +4191,60 @@ function Ni() {
|
|
|
4191
4191
|
return typeof a == "function" && b instanceof a;
|
|
4192
4192
|
};
|
|
4193
4193
|
function Be(H, b, P) {
|
|
4194
|
-
nn(H, (
|
|
4195
|
-
|
|
4194
|
+
nn(H, (W) => {
|
|
4195
|
+
W.call(t, b, P, mt);
|
|
4196
4196
|
});
|
|
4197
4197
|
}
|
|
4198
4198
|
const ir = function(b) {
|
|
4199
4199
|
let P = null;
|
|
4200
4200
|
if (Be(j.beforeSanitizeElements, b, null), Hn(b))
|
|
4201
4201
|
return Oe(b), !0;
|
|
4202
|
-
const
|
|
4202
|
+
const W = fe(b.nodeName);
|
|
4203
4203
|
if (Be(j.uponSanitizeElement, b, {
|
|
4204
|
-
tagName:
|
|
4204
|
+
tagName: W,
|
|
4205
4205
|
allowedTags: _
|
|
4206
4206
|
}), Ae && b.hasChildNodes() && !sr(b.firstElementChild) && ge(/<[/\w!]/g, b.innerHTML) && ge(/<[/\w!]/g, b.textContent) || b.nodeType === Dt.progressingInstruction || Ae && b.nodeType === Dt.comment && ge(/<[/\w]/g, b.data))
|
|
4207
4207
|
return Oe(b), !0;
|
|
4208
|
-
if (!(ee.tagCheck instanceof Function && ee.tagCheck(
|
|
4209
|
-
if (!
|
|
4208
|
+
if (!(ee.tagCheck instanceof Function && ee.tagCheck(W)) && (!_[W] || le[W])) {
|
|
4209
|
+
if (!le[W] && lr(W) && (K.tagNameCheck instanceof RegExp && ge(K.tagNameCheck, W) || K.tagNameCheck instanceof Function && K.tagNameCheck(W)))
|
|
4210
4210
|
return !1;
|
|
4211
|
-
if ($n && !ft[
|
|
4212
|
-
const
|
|
4213
|
-
if (me &&
|
|
4211
|
+
if ($n && !ft[W]) {
|
|
4212
|
+
const ie = C(b) || b.parentNode, me = S(b) || b.childNodes;
|
|
4213
|
+
if (me && ie) {
|
|
4214
4214
|
const ce = me.length;
|
|
4215
4215
|
for (let we = ce - 1; we >= 0; --we) {
|
|
4216
4216
|
const Ue = h(me[we], !0);
|
|
4217
|
-
Ue.__removalCount = (b.__removalCount || 0) + 1,
|
|
4217
|
+
Ue.__removalCount = (b.__removalCount || 0) + 1, ie.insertBefore(Ue, x(b));
|
|
4218
4218
|
}
|
|
4219
4219
|
}
|
|
4220
4220
|
}
|
|
4221
4221
|
return Oe(b), !0;
|
|
4222
4222
|
}
|
|
4223
|
-
return b instanceof l && !Ea(b) || (
|
|
4224
|
-
P = Ot(P,
|
|
4223
|
+
return b instanceof l && !Ea(b) || (W === "noscript" || W === "noembed" || W === "noframes") && ge(/<\/no(script|embed|frames)/i, b.innerHTML) ? (Oe(b), !0) : (ue && b.nodeType === Dt.text && (P = b.textContent, nn([q, T, F], (ie) => {
|
|
4224
|
+
P = Ot(P, ie, " ");
|
|
4225
4225
|
}), b.textContent !== P && (_t(t.removed, {
|
|
4226
4226
|
element: b.cloneNode()
|
|
4227
4227
|
}), b.textContent = P)), Be(j.afterSanitizeElements, b, null), !1);
|
|
4228
|
-
}, ar = function(b, P,
|
|
4229
|
-
if (Ko && (P === "id" || P === "name") && (
|
|
4228
|
+
}, ar = function(b, P, W) {
|
|
4229
|
+
if (Ko && (P === "id" || P === "name") && (W in n || W in Ca))
|
|
4230
4230
|
return !1;
|
|
4231
|
-
if (!(Q && !
|
|
4232
|
-
if (!(
|
|
4231
|
+
if (!(Q && !M[P] && ge(U, P))) {
|
|
4232
|
+
if (!(se && ge(D, P))) {
|
|
4233
4233
|
if (!(ee.attributeCheck instanceof Function && ee.attributeCheck(P, b))) {
|
|
4234
|
-
if (!I[P] ||
|
|
4234
|
+
if (!I[P] || M[P]) {
|
|
4235
4235
|
if (
|
|
4236
4236
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
4237
4237
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4238
4238
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
4239
|
-
!(lr(b) && (
|
|
4239
|
+
!(lr(b) && (K.tagNameCheck instanceof RegExp && ge(K.tagNameCheck, b) || K.tagNameCheck instanceof Function && K.tagNameCheck(b)) && (K.attributeNameCheck instanceof RegExp && ge(K.attributeNameCheck, P) || K.attributeNameCheck instanceof Function && K.attributeNameCheck(P, b)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
4240
4240
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4241
|
-
P === "is" &&
|
|
4241
|
+
P === "is" && K.allowCustomizedBuiltInElements && (K.tagNameCheck instanceof RegExp && ge(K.tagNameCheck, W) || K.tagNameCheck instanceof Function && K.tagNameCheck(W)))
|
|
4242
4242
|
) return !1;
|
|
4243
4243
|
} else if (!zn[P]) {
|
|
4244
|
-
if (!ge(
|
|
4245
|
-
if (!((P === "src" || P === "xlink:href" || P === "href") && b !== "script" && Ld(
|
|
4246
|
-
if (!(oe && !ge(Y, Ot(
|
|
4247
|
-
if (
|
|
4244
|
+
if (!ge(N, Ot(W, R, ""))) {
|
|
4245
|
+
if (!((P === "src" || P === "xlink:href" || P === "href") && b !== "script" && Ld(W, "data:") === 0 && Zo[b])) {
|
|
4246
|
+
if (!(oe && !ge(Y, Ot(W, R, "")))) {
|
|
4247
|
+
if (W)
|
|
4248
4248
|
return !1;
|
|
4249
4249
|
}
|
|
4250
4250
|
}
|
|
@@ -4263,22 +4263,22 @@ function Ni() {
|
|
|
4263
4263
|
} = b;
|
|
4264
4264
|
if (!P || Hn(b))
|
|
4265
4265
|
return;
|
|
4266
|
-
const
|
|
4266
|
+
const W = {
|
|
4267
4267
|
attrName: "",
|
|
4268
4268
|
attrValue: "",
|
|
4269
4269
|
keepAttr: !0,
|
|
4270
4270
|
allowedAttributes: I,
|
|
4271
4271
|
forceKeepAttr: void 0
|
|
4272
4272
|
};
|
|
4273
|
-
let
|
|
4274
|
-
for (;
|
|
4275
|
-
const me = P[
|
|
4273
|
+
let ie = P.length;
|
|
4274
|
+
for (; ie--; ) {
|
|
4275
|
+
const me = P[ie], {
|
|
4276
4276
|
name: ce,
|
|
4277
4277
|
namespaceURI: we,
|
|
4278
4278
|
value: Ue
|
|
4279
4279
|
} = me, ht = fe(ce), Vn = Ue;
|
|
4280
4280
|
let pe = ce === "value" ? Vn : Fd(Vn);
|
|
4281
|
-
if (
|
|
4281
|
+
if (W.attrName = ht, W.attrValue = pe, W.keepAttr = !0, W.forceKeepAttr = void 0, Be(j.uponSanitizeAttribute, b, W), pe = W.attrValue, Xo && (ht === "id" || ht === "name") && (rt(ce, b), pe = va + pe), Ae && ge(/((--!?|])>)|<\/(style|title|textarea)/i, pe)) {
|
|
4282
4282
|
rt(ce, b);
|
|
4283
4283
|
continue;
|
|
4284
4284
|
}
|
|
@@ -4286,17 +4286,17 @@ function Ni() {
|
|
|
4286
4286
|
rt(ce, b);
|
|
4287
4287
|
continue;
|
|
4288
4288
|
}
|
|
4289
|
-
if (
|
|
4289
|
+
if (W.forceKeepAttr)
|
|
4290
4290
|
continue;
|
|
4291
|
-
if (!
|
|
4291
|
+
if (!W.keepAttr) {
|
|
4292
4292
|
rt(ce, b);
|
|
4293
4293
|
continue;
|
|
4294
4294
|
}
|
|
4295
|
-
if (!
|
|
4295
|
+
if (!re && ge(/\/>/i, pe)) {
|
|
4296
4296
|
rt(ce, b);
|
|
4297
4297
|
continue;
|
|
4298
4298
|
}
|
|
4299
|
-
ue && nn([q,
|
|
4299
|
+
ue && nn([q, T, F], (dr) => {
|
|
4300
4300
|
pe = Ot(pe, dr, " ");
|
|
4301
4301
|
});
|
|
4302
4302
|
const ur = fe(b.nodeName);
|
|
@@ -4325,13 +4325,13 @@ function Ni() {
|
|
|
4325
4325
|
Be(j.afterSanitizeAttributes, b, null);
|
|
4326
4326
|
}, Aa = function H(b) {
|
|
4327
4327
|
let P = null;
|
|
4328
|
-
const
|
|
4329
|
-
for (Be(j.beforeSanitizeShadowDOM, b, null); P =
|
|
4328
|
+
const W = rr(b);
|
|
4329
|
+
for (Be(j.beforeSanitizeShadowDOM, b, null); P = W.nextNode(); )
|
|
4330
4330
|
Be(j.uponSanitizeShadowNode, P, null), ir(P), cr(P), P.content instanceof s && H(P.content);
|
|
4331
4331
|
Be(j.afterSanitizeShadowDOM, b, null);
|
|
4332
4332
|
};
|
|
4333
4333
|
return t.sanitize = function(H) {
|
|
4334
|
-
let b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, P = null,
|
|
4334
|
+
let b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, P = null, W = null, ie = null, me = null;
|
|
4335
4335
|
if (Bn = !H, Bn && (H = "<!-->"), typeof H != "string" && !sr(H))
|
|
4336
4336
|
if (typeof H.toString == "function") {
|
|
4337
4337
|
if (H = H.toString(), typeof H != "string")
|
|
@@ -4343,11 +4343,11 @@ function Ni() {
|
|
|
4343
4343
|
if (nt || Wn(b), t.removed = [], typeof H == "string" && (kt = !1), kt) {
|
|
4344
4344
|
if (H.nodeName) {
|
|
4345
4345
|
const Ue = fe(H.nodeName);
|
|
4346
|
-
if (!_[Ue] ||
|
|
4346
|
+
if (!_[Ue] || le[Ue])
|
|
4347
4347
|
throw It("root node is forbidden and cannot be sanitized in-place");
|
|
4348
4348
|
}
|
|
4349
4349
|
} else if (H instanceof a)
|
|
4350
|
-
P = or("<!---->"),
|
|
4350
|
+
P = or("<!---->"), W = P.ownerDocument.importNode(H, !0), W.nodeType === Dt.element && W.nodeName === "BODY" || W.nodeName === "HTML" ? P = W : P.appendChild(W);
|
|
4351
4351
|
else {
|
|
4352
4352
|
if (!ut && !ue && !Re && // eslint-disable-next-line unicorn/prefer-includes
|
|
4353
4353
|
H.indexOf("<") === -1)
|
|
@@ -4357,8 +4357,8 @@ function Ni() {
|
|
|
4357
4357
|
}
|
|
4358
4358
|
P && ot && Oe(P.firstChild);
|
|
4359
4359
|
const ce = rr(kt ? H : P);
|
|
4360
|
-
for (;
|
|
4361
|
-
ir(
|
|
4360
|
+
for (; ie = ce.nextNode(); )
|
|
4361
|
+
ir(ie), cr(ie), ie.content instanceof s && Aa(ie.content);
|
|
4362
4362
|
if (kt)
|
|
4363
4363
|
return H;
|
|
4364
4364
|
if (ut) {
|
|
@@ -4371,7 +4371,7 @@ function Ni() {
|
|
|
4371
4371
|
}
|
|
4372
4372
|
let we = Re ? P.outerHTML : P.innerHTML;
|
|
4373
4373
|
return Re && _["!doctype"] && P.ownerDocument && P.ownerDocument.doctype && P.ownerDocument.doctype.name && ge(Ai, P.ownerDocument.doctype.name) && (we = "<!DOCTYPE " + P.ownerDocument.doctype.name + `>
|
|
4374
|
-
` + we), ue && nn([q,
|
|
4374
|
+
` + we), ue && nn([q, T, F], (Ue) => {
|
|
4375
4375
|
we = Ot(we, Ue, " ");
|
|
4376
4376
|
}), y && Gt ? y.createHTML(we) : we;
|
|
4377
4377
|
}, t.setConfig = function() {
|
|
@@ -4381,8 +4381,8 @@ function Ni() {
|
|
|
4381
4381
|
mt = null, nt = !1;
|
|
4382
4382
|
}, t.isValidAttribute = function(H, b, P) {
|
|
4383
4383
|
mt || Wn({});
|
|
4384
|
-
const
|
|
4385
|
-
return ar(
|
|
4384
|
+
const W = fe(H), ie = fe(b);
|
|
4385
|
+
return ar(W, ie, P);
|
|
4386
4386
|
}, t.addHook = function(H, b) {
|
|
4387
4387
|
typeof b == "function" && _t(j[H], b);
|
|
4388
4388
|
}, t.removeHook = function(H, b) {
|
|
@@ -4496,7 +4496,7 @@ function nf(e, t) {
|
|
|
4496
4496
|
return d.useReducer((n, o) => t[n][o] ?? n, e);
|
|
4497
4497
|
}
|
|
4498
4498
|
var Pn = (e) => {
|
|
4499
|
-
const { present: t, children: n } = e, o = of(t), r = typeof n == "function" ? n({ present: o.isPresent }) : d.Children.only(n), s =
|
|
4499
|
+
const { present: t, children: n } = e, o = of(t), r = typeof n == "function" ? n({ present: o.isPresent }) : d.Children.only(n), s = ae(o.ref, rf(r));
|
|
4500
4500
|
return typeof n == "function" || o.isPresent ? d.cloneElement(r, { ref: s }) : null;
|
|
4501
4501
|
};
|
|
4502
4502
|
Pn.displayName = "Presence";
|
|
@@ -4623,7 +4623,7 @@ var Pi = "PopoverAnchor", lf = d.forwardRef(
|
|
|
4623
4623
|
lf.displayName = Pi;
|
|
4624
4624
|
var _i = "PopoverTrigger", Oi = d.forwardRef(
|
|
4625
4625
|
(e, t) => {
|
|
4626
|
-
const { __scopePopover: n, ...o } = e, r = tt(_i, n), s = Ht(n), i =
|
|
4626
|
+
const { __scopePopover: n, ...o } = e, r = tt(_i, n), s = Ht(n), i = ae(t, r.triggerRef), a = /* @__PURE__ */ u(
|
|
4627
4627
|
Ri.button,
|
|
4628
4628
|
{
|
|
4629
4629
|
type: "button",
|
|
@@ -4656,7 +4656,7 @@ var Ct = "PopoverContent", Mi = d.forwardRef(
|
|
|
4656
4656
|
Mi.displayName = Ct;
|
|
4657
4657
|
var df = /* @__PURE__ */ xe("PopoverContent.RemoveScroll"), ff = d.forwardRef(
|
|
4658
4658
|
(e, t) => {
|
|
4659
|
-
const n = tt(Ct, e.__scopePopover), o = d.useRef(null), r =
|
|
4659
|
+
const n = tt(Ct, e.__scopePopover), o = d.useRef(null), r = ae(t, o), s = d.useRef(!1);
|
|
4660
4660
|
return d.useEffect(() => {
|
|
4661
4661
|
const i = o.current;
|
|
4662
4662
|
if (i) return Bs(i);
|
|
@@ -5041,8 +5041,8 @@ const Sf = (e, t) => {
|
|
|
5041
5041
|
continue;
|
|
5042
5042
|
i.push(y);
|
|
5043
5043
|
const E = r(x, v);
|
|
5044
|
-
for (let
|
|
5045
|
-
const k = E[
|
|
5044
|
+
for (let L = 0; L < E.length; ++L) {
|
|
5045
|
+
const k = E[L];
|
|
5046
5046
|
i.push(C + k);
|
|
5047
5047
|
}
|
|
5048
5048
|
l = f + (l.length > 0 ? " " + l : l);
|
|
@@ -5106,11 +5106,11 @@ const Sf = (e, t) => {
|
|
|
5106
5106
|
"bottom-left",
|
|
5107
5107
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
5108
5108
|
"left-bottom"
|
|
5109
|
-
], E = () => [...y(), B, z],
|
|
5109
|
+
], E = () => [...y(), B, z], L = () => ["auto", "hidden", "clip", "visible", "scroll"], k = () => ["auto", "contain", "none"], A = () => [B, z, l], G = () => [yt, "full", "auto", ...A()], X = () => [Ye, "none", "subgrid", B, z], j = () => ["auto", {
|
|
5110
5110
|
span: ["full", Ye, B, z]
|
|
5111
|
-
}, Ye, B, z], q = () => [Ye, "auto", B, z],
|
|
5111
|
+
}, Ye, B, z], q = () => [Ye, "auto", B, z], T = () => ["auto", "min", "max", "fr", B, z], F = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], U = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], D = () => ["auto", ...A()], Y = () => [yt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...A()], R = () => [e, B, z], ne = () => [...y(), Jr, Qr, {
|
|
5112
5112
|
position: [B, z]
|
|
5113
|
-
}],
|
|
5113
|
+
}], N = () => ["no-repeat", {
|
|
5114
5114
|
repeat: ["", "x", "y", "space", "round"]
|
|
5115
5115
|
}], _ = () => ["auto", "cover", "contain", rp, tp, {
|
|
5116
5116
|
size: [B, z]
|
|
@@ -5122,14 +5122,14 @@ const Sf = (e, t) => {
|
|
|
5122
5122
|
c,
|
|
5123
5123
|
B,
|
|
5124
5124
|
z
|
|
5125
|
-
],
|
|
5125
|
+
], $ = () => ["", Z, Lt, st], K = () => ["solid", "dashed", "dotted", "double"], le = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], M = () => [Z, io, Jr, Qr], ee = () => [
|
|
5126
5126
|
// Deprecated since Tailwind CSS v4.0.0
|
|
5127
5127
|
"",
|
|
5128
5128
|
"none",
|
|
5129
5129
|
w,
|
|
5130
5130
|
B,
|
|
5131
5131
|
z
|
|
5132
|
-
],
|
|
5132
|
+
], se = () => ["none", Z, B, z], Q = () => ["none", Z, B, z], oe = () => [Z, B, z], re = () => [yt, "full", ...A()];
|
|
5133
5133
|
return {
|
|
5134
5134
|
cacheSize: 500,
|
|
5135
5135
|
theme: {
|
|
@@ -5260,21 +5260,21 @@ const Sf = (e, t) => {
|
|
|
5260
5260
|
* @see https://tailwindcss.com/docs/overflow
|
|
5261
5261
|
*/
|
|
5262
5262
|
overflow: [{
|
|
5263
|
-
overflow:
|
|
5263
|
+
overflow: L()
|
|
5264
5264
|
}],
|
|
5265
5265
|
/**
|
|
5266
5266
|
* Overflow X
|
|
5267
5267
|
* @see https://tailwindcss.com/docs/overflow
|
|
5268
5268
|
*/
|
|
5269
5269
|
"overflow-x": [{
|
|
5270
|
-
"overflow-x":
|
|
5270
|
+
"overflow-x": L()
|
|
5271
5271
|
}],
|
|
5272
5272
|
/**
|
|
5273
5273
|
* Overflow Y
|
|
5274
5274
|
* @see https://tailwindcss.com/docs/overflow
|
|
5275
5275
|
*/
|
|
5276
5276
|
"overflow-y": [{
|
|
5277
|
-
"overflow-y":
|
|
5277
|
+
"overflow-y": L()
|
|
5278
5278
|
}],
|
|
5279
5279
|
/**
|
|
5280
5280
|
* Overscroll Behavior
|
|
@@ -5497,14 +5497,14 @@ const Sf = (e, t) => {
|
|
|
5497
5497
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
5498
5498
|
*/
|
|
5499
5499
|
"auto-cols": [{
|
|
5500
|
-
"auto-cols":
|
|
5500
|
+
"auto-cols": T()
|
|
5501
5501
|
}],
|
|
5502
5502
|
/**
|
|
5503
5503
|
* Grid Auto Rows
|
|
5504
5504
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
5505
5505
|
*/
|
|
5506
5506
|
"auto-rows": [{
|
|
5507
|
-
"auto-rows":
|
|
5507
|
+
"auto-rows": T()
|
|
5508
5508
|
}],
|
|
5509
5509
|
/**
|
|
5510
5510
|
* Gap
|
|
@@ -5532,35 +5532,35 @@ const Sf = (e, t) => {
|
|
|
5532
5532
|
* @see https://tailwindcss.com/docs/justify-content
|
|
5533
5533
|
*/
|
|
5534
5534
|
"justify-content": [{
|
|
5535
|
-
justify: [
|
|
5535
|
+
justify: [...F(), "normal"]
|
|
5536
5536
|
}],
|
|
5537
5537
|
/**
|
|
5538
5538
|
* Justify Items
|
|
5539
5539
|
* @see https://tailwindcss.com/docs/justify-items
|
|
5540
5540
|
*/
|
|
5541
5541
|
"justify-items": [{
|
|
5542
|
-
"justify-items": [...
|
|
5542
|
+
"justify-items": [...U(), "normal"]
|
|
5543
5543
|
}],
|
|
5544
5544
|
/**
|
|
5545
5545
|
* Justify Self
|
|
5546
5546
|
* @see https://tailwindcss.com/docs/justify-self
|
|
5547
5547
|
*/
|
|
5548
5548
|
"justify-self": [{
|
|
5549
|
-
"justify-self": ["auto", ...
|
|
5549
|
+
"justify-self": ["auto", ...U()]
|
|
5550
5550
|
}],
|
|
5551
5551
|
/**
|
|
5552
5552
|
* Align Content
|
|
5553
5553
|
* @see https://tailwindcss.com/docs/align-content
|
|
5554
5554
|
*/
|
|
5555
5555
|
"align-content": [{
|
|
5556
|
-
content: ["normal",
|
|
5556
|
+
content: ["normal", ...F()]
|
|
5557
5557
|
}],
|
|
5558
5558
|
/**
|
|
5559
5559
|
* Align Items
|
|
5560
5560
|
* @see https://tailwindcss.com/docs/align-items
|
|
5561
5561
|
*/
|
|
5562
5562
|
"align-items": [{
|
|
5563
|
-
items: [...
|
|
5563
|
+
items: [...U(), {
|
|
5564
5564
|
baseline: ["", "last"]
|
|
5565
5565
|
}]
|
|
5566
5566
|
}],
|
|
@@ -5569,7 +5569,7 @@ const Sf = (e, t) => {
|
|
|
5569
5569
|
* @see https://tailwindcss.com/docs/align-self
|
|
5570
5570
|
*/
|
|
5571
5571
|
"align-self": [{
|
|
5572
|
-
self: ["auto", ...
|
|
5572
|
+
self: ["auto", ...U(), {
|
|
5573
5573
|
baseline: ["", "last"]
|
|
5574
5574
|
}]
|
|
5575
5575
|
}],
|
|
@@ -5578,21 +5578,21 @@ const Sf = (e, t) => {
|
|
|
5578
5578
|
* @see https://tailwindcss.com/docs/place-content
|
|
5579
5579
|
*/
|
|
5580
5580
|
"place-content": [{
|
|
5581
|
-
"place-content":
|
|
5581
|
+
"place-content": F()
|
|
5582
5582
|
}],
|
|
5583
5583
|
/**
|
|
5584
5584
|
* Place Items
|
|
5585
5585
|
* @see https://tailwindcss.com/docs/place-items
|
|
5586
5586
|
*/
|
|
5587
5587
|
"place-items": [{
|
|
5588
|
-
"place-items": [...
|
|
5588
|
+
"place-items": [...U(), "baseline"]
|
|
5589
5589
|
}],
|
|
5590
5590
|
/**
|
|
5591
5591
|
* Place Self
|
|
5592
5592
|
* @see https://tailwindcss.com/docs/place-self
|
|
5593
5593
|
*/
|
|
5594
5594
|
"place-self": [{
|
|
5595
|
-
"place-self": ["auto", ...
|
|
5595
|
+
"place-self": ["auto", ...U()]
|
|
5596
5596
|
}],
|
|
5597
5597
|
// Spacing
|
|
5598
5598
|
/**
|
|
@@ -5663,63 +5663,63 @@ const Sf = (e, t) => {
|
|
|
5663
5663
|
* @see https://tailwindcss.com/docs/margin
|
|
5664
5664
|
*/
|
|
5665
5665
|
m: [{
|
|
5666
|
-
m:
|
|
5666
|
+
m: D()
|
|
5667
5667
|
}],
|
|
5668
5668
|
/**
|
|
5669
5669
|
* Margin X
|
|
5670
5670
|
* @see https://tailwindcss.com/docs/margin
|
|
5671
5671
|
*/
|
|
5672
5672
|
mx: [{
|
|
5673
|
-
mx:
|
|
5673
|
+
mx: D()
|
|
5674
5674
|
}],
|
|
5675
5675
|
/**
|
|
5676
5676
|
* Margin Y
|
|
5677
5677
|
* @see https://tailwindcss.com/docs/margin
|
|
5678
5678
|
*/
|
|
5679
5679
|
my: [{
|
|
5680
|
-
my:
|
|
5680
|
+
my: D()
|
|
5681
5681
|
}],
|
|
5682
5682
|
/**
|
|
5683
5683
|
* Margin Start
|
|
5684
5684
|
* @see https://tailwindcss.com/docs/margin
|
|
5685
5685
|
*/
|
|
5686
5686
|
ms: [{
|
|
5687
|
-
ms:
|
|
5687
|
+
ms: D()
|
|
5688
5688
|
}],
|
|
5689
5689
|
/**
|
|
5690
5690
|
* Margin End
|
|
5691
5691
|
* @see https://tailwindcss.com/docs/margin
|
|
5692
5692
|
*/
|
|
5693
5693
|
me: [{
|
|
5694
|
-
me:
|
|
5694
|
+
me: D()
|
|
5695
5695
|
}],
|
|
5696
5696
|
/**
|
|
5697
5697
|
* Margin Top
|
|
5698
5698
|
* @see https://tailwindcss.com/docs/margin
|
|
5699
5699
|
*/
|
|
5700
5700
|
mt: [{
|
|
5701
|
-
mt:
|
|
5701
|
+
mt: D()
|
|
5702
5702
|
}],
|
|
5703
5703
|
/**
|
|
5704
5704
|
* Margin Right
|
|
5705
5705
|
* @see https://tailwindcss.com/docs/margin
|
|
5706
5706
|
*/
|
|
5707
5707
|
mr: [{
|
|
5708
|
-
mr:
|
|
5708
|
+
mr: D()
|
|
5709
5709
|
}],
|
|
5710
5710
|
/**
|
|
5711
5711
|
* Margin Bottom
|
|
5712
5712
|
* @see https://tailwindcss.com/docs/margin
|
|
5713
5713
|
*/
|
|
5714
5714
|
mb: [{
|
|
5715
|
-
mb:
|
|
5715
|
+
mb: D()
|
|
5716
5716
|
}],
|
|
5717
5717
|
/**
|
|
5718
5718
|
* Margin Left
|
|
5719
5719
|
* @see https://tailwindcss.com/docs/margin
|
|
5720
5720
|
*/
|
|
5721
5721
|
ml: [{
|
|
5722
|
-
ml:
|
|
5722
|
+
ml: D()
|
|
5723
5723
|
}],
|
|
5724
5724
|
/**
|
|
5725
5725
|
* Space Between X
|
|
@@ -5944,14 +5944,14 @@ const Sf = (e, t) => {
|
|
|
5944
5944
|
* @see https://v3.tailwindcss.com/docs/placeholder-color
|
|
5945
5945
|
*/
|
|
5946
5946
|
"placeholder-color": [{
|
|
5947
|
-
placeholder:
|
|
5947
|
+
placeholder: R()
|
|
5948
5948
|
}],
|
|
5949
5949
|
/**
|
|
5950
5950
|
* Text Color
|
|
5951
5951
|
* @see https://tailwindcss.com/docs/text-color
|
|
5952
5952
|
*/
|
|
5953
5953
|
"text-color": [{
|
|
5954
|
-
text:
|
|
5954
|
+
text: R()
|
|
5955
5955
|
}],
|
|
5956
5956
|
/**
|
|
5957
5957
|
* Text Decoration
|
|
@@ -5963,7 +5963,7 @@ const Sf = (e, t) => {
|
|
|
5963
5963
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
5964
5964
|
*/
|
|
5965
5965
|
"text-decoration-style": [{
|
|
5966
|
-
decoration: [...
|
|
5966
|
+
decoration: [...K(), "wavy"]
|
|
5967
5967
|
}],
|
|
5968
5968
|
/**
|
|
5969
5969
|
* Text Decoration Thickness
|
|
@@ -5977,7 +5977,7 @@ const Sf = (e, t) => {
|
|
|
5977
5977
|
* @see https://tailwindcss.com/docs/text-decoration-color
|
|
5978
5978
|
*/
|
|
5979
5979
|
"text-decoration-color": [{
|
|
5980
|
-
decoration:
|
|
5980
|
+
decoration: R()
|
|
5981
5981
|
}],
|
|
5982
5982
|
/**
|
|
5983
5983
|
* Text Underline Offset
|
|
@@ -6088,7 +6088,7 @@ const Sf = (e, t) => {
|
|
|
6088
6088
|
* @see https://tailwindcss.com/docs/background-repeat
|
|
6089
6089
|
*/
|
|
6090
6090
|
"bg-repeat": [{
|
|
6091
|
-
bg:
|
|
6091
|
+
bg: N()
|
|
6092
6092
|
}],
|
|
6093
6093
|
/**
|
|
6094
6094
|
* Background Size
|
|
@@ -6115,7 +6115,7 @@ const Sf = (e, t) => {
|
|
|
6115
6115
|
* @see https://tailwindcss.com/docs/background-color
|
|
6116
6116
|
*/
|
|
6117
6117
|
"bg-color": [{
|
|
6118
|
-
bg:
|
|
6118
|
+
bg: R()
|
|
6119
6119
|
}],
|
|
6120
6120
|
/**
|
|
6121
6121
|
* Gradient Color Stops From Position
|
|
@@ -6143,21 +6143,21 @@ const Sf = (e, t) => {
|
|
|
6143
6143
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
6144
6144
|
*/
|
|
6145
6145
|
"gradient-from": [{
|
|
6146
|
-
from:
|
|
6146
|
+
from: R()
|
|
6147
6147
|
}],
|
|
6148
6148
|
/**
|
|
6149
6149
|
* Gradient Color Stops Via
|
|
6150
6150
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
6151
6151
|
*/
|
|
6152
6152
|
"gradient-via": [{
|
|
6153
|
-
via:
|
|
6153
|
+
via: R()
|
|
6154
6154
|
}],
|
|
6155
6155
|
/**
|
|
6156
6156
|
* Gradient Color Stops To
|
|
6157
6157
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
6158
6158
|
*/
|
|
6159
6159
|
"gradient-to": [{
|
|
6160
|
-
to:
|
|
6160
|
+
to: R()
|
|
6161
6161
|
}],
|
|
6162
6162
|
// ---------------
|
|
6163
6163
|
// --- Borders ---
|
|
@@ -6272,70 +6272,70 @@ const Sf = (e, t) => {
|
|
|
6272
6272
|
* @see https://tailwindcss.com/docs/border-width
|
|
6273
6273
|
*/
|
|
6274
6274
|
"border-w": [{
|
|
6275
|
-
border:
|
|
6275
|
+
border: $()
|
|
6276
6276
|
}],
|
|
6277
6277
|
/**
|
|
6278
6278
|
* Border Width X
|
|
6279
6279
|
* @see https://tailwindcss.com/docs/border-width
|
|
6280
6280
|
*/
|
|
6281
6281
|
"border-w-x": [{
|
|
6282
|
-
"border-x":
|
|
6282
|
+
"border-x": $()
|
|
6283
6283
|
}],
|
|
6284
6284
|
/**
|
|
6285
6285
|
* Border Width Y
|
|
6286
6286
|
* @see https://tailwindcss.com/docs/border-width
|
|
6287
6287
|
*/
|
|
6288
6288
|
"border-w-y": [{
|
|
6289
|
-
"border-y":
|
|
6289
|
+
"border-y": $()
|
|
6290
6290
|
}],
|
|
6291
6291
|
/**
|
|
6292
6292
|
* Border Width Start
|
|
6293
6293
|
* @see https://tailwindcss.com/docs/border-width
|
|
6294
6294
|
*/
|
|
6295
6295
|
"border-w-s": [{
|
|
6296
|
-
"border-s":
|
|
6296
|
+
"border-s": $()
|
|
6297
6297
|
}],
|
|
6298
6298
|
/**
|
|
6299
6299
|
* Border Width End
|
|
6300
6300
|
* @see https://tailwindcss.com/docs/border-width
|
|
6301
6301
|
*/
|
|
6302
6302
|
"border-w-e": [{
|
|
6303
|
-
"border-e":
|
|
6303
|
+
"border-e": $()
|
|
6304
6304
|
}],
|
|
6305
6305
|
/**
|
|
6306
6306
|
* Border Width Top
|
|
6307
6307
|
* @see https://tailwindcss.com/docs/border-width
|
|
6308
6308
|
*/
|
|
6309
6309
|
"border-w-t": [{
|
|
6310
|
-
"border-t":
|
|
6310
|
+
"border-t": $()
|
|
6311
6311
|
}],
|
|
6312
6312
|
/**
|
|
6313
6313
|
* Border Width Right
|
|
6314
6314
|
* @see https://tailwindcss.com/docs/border-width
|
|
6315
6315
|
*/
|
|
6316
6316
|
"border-w-r": [{
|
|
6317
|
-
"border-r":
|
|
6317
|
+
"border-r": $()
|
|
6318
6318
|
}],
|
|
6319
6319
|
/**
|
|
6320
6320
|
* Border Width Bottom
|
|
6321
6321
|
* @see https://tailwindcss.com/docs/border-width
|
|
6322
6322
|
*/
|
|
6323
6323
|
"border-w-b": [{
|
|
6324
|
-
"border-b":
|
|
6324
|
+
"border-b": $()
|
|
6325
6325
|
}],
|
|
6326
6326
|
/**
|
|
6327
6327
|
* Border Width Left
|
|
6328
6328
|
* @see https://tailwindcss.com/docs/border-width
|
|
6329
6329
|
*/
|
|
6330
6330
|
"border-w-l": [{
|
|
6331
|
-
"border-l":
|
|
6331
|
+
"border-l": $()
|
|
6332
6332
|
}],
|
|
6333
6333
|
/**
|
|
6334
6334
|
* Divide Width X
|
|
6335
6335
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
6336
6336
|
*/
|
|
6337
6337
|
"divide-x": [{
|
|
6338
|
-
"divide-x":
|
|
6338
|
+
"divide-x": $()
|
|
6339
6339
|
}],
|
|
6340
6340
|
/**
|
|
6341
6341
|
* Divide Width X Reverse
|
|
@@ -6347,7 +6347,7 @@ const Sf = (e, t) => {
|
|
|
6347
6347
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
6348
6348
|
*/
|
|
6349
6349
|
"divide-y": [{
|
|
6350
|
-
"divide-y":
|
|
6350
|
+
"divide-y": $()
|
|
6351
6351
|
}],
|
|
6352
6352
|
/**
|
|
6353
6353
|
* Divide Width Y Reverse
|
|
@@ -6359,91 +6359,91 @@ const Sf = (e, t) => {
|
|
|
6359
6359
|
* @see https://tailwindcss.com/docs/border-style
|
|
6360
6360
|
*/
|
|
6361
6361
|
"border-style": [{
|
|
6362
|
-
border: [...
|
|
6362
|
+
border: [...K(), "hidden", "none"]
|
|
6363
6363
|
}],
|
|
6364
6364
|
/**
|
|
6365
6365
|
* Divide Style
|
|
6366
6366
|
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
|
6367
6367
|
*/
|
|
6368
6368
|
"divide-style": [{
|
|
6369
|
-
divide: [...
|
|
6369
|
+
divide: [...K(), "hidden", "none"]
|
|
6370
6370
|
}],
|
|
6371
6371
|
/**
|
|
6372
6372
|
* Border Color
|
|
6373
6373
|
* @see https://tailwindcss.com/docs/border-color
|
|
6374
6374
|
*/
|
|
6375
6375
|
"border-color": [{
|
|
6376
|
-
border:
|
|
6376
|
+
border: R()
|
|
6377
6377
|
}],
|
|
6378
6378
|
/**
|
|
6379
6379
|
* Border Color X
|
|
6380
6380
|
* @see https://tailwindcss.com/docs/border-color
|
|
6381
6381
|
*/
|
|
6382
6382
|
"border-color-x": [{
|
|
6383
|
-
"border-x":
|
|
6383
|
+
"border-x": R()
|
|
6384
6384
|
}],
|
|
6385
6385
|
/**
|
|
6386
6386
|
* Border Color Y
|
|
6387
6387
|
* @see https://tailwindcss.com/docs/border-color
|
|
6388
6388
|
*/
|
|
6389
6389
|
"border-color-y": [{
|
|
6390
|
-
"border-y":
|
|
6390
|
+
"border-y": R()
|
|
6391
6391
|
}],
|
|
6392
6392
|
/**
|
|
6393
6393
|
* Border Color S
|
|
6394
6394
|
* @see https://tailwindcss.com/docs/border-color
|
|
6395
6395
|
*/
|
|
6396
6396
|
"border-color-s": [{
|
|
6397
|
-
"border-s":
|
|
6397
|
+
"border-s": R()
|
|
6398
6398
|
}],
|
|
6399
6399
|
/**
|
|
6400
6400
|
* Border Color E
|
|
6401
6401
|
* @see https://tailwindcss.com/docs/border-color
|
|
6402
6402
|
*/
|
|
6403
6403
|
"border-color-e": [{
|
|
6404
|
-
"border-e":
|
|
6404
|
+
"border-e": R()
|
|
6405
6405
|
}],
|
|
6406
6406
|
/**
|
|
6407
6407
|
* Border Color Top
|
|
6408
6408
|
* @see https://tailwindcss.com/docs/border-color
|
|
6409
6409
|
*/
|
|
6410
6410
|
"border-color-t": [{
|
|
6411
|
-
"border-t":
|
|
6411
|
+
"border-t": R()
|
|
6412
6412
|
}],
|
|
6413
6413
|
/**
|
|
6414
6414
|
* Border Color Right
|
|
6415
6415
|
* @see https://tailwindcss.com/docs/border-color
|
|
6416
6416
|
*/
|
|
6417
6417
|
"border-color-r": [{
|
|
6418
|
-
"border-r":
|
|
6418
|
+
"border-r": R()
|
|
6419
6419
|
}],
|
|
6420
6420
|
/**
|
|
6421
6421
|
* Border Color Bottom
|
|
6422
6422
|
* @see https://tailwindcss.com/docs/border-color
|
|
6423
6423
|
*/
|
|
6424
6424
|
"border-color-b": [{
|
|
6425
|
-
"border-b":
|
|
6425
|
+
"border-b": R()
|
|
6426
6426
|
}],
|
|
6427
6427
|
/**
|
|
6428
6428
|
* Border Color Left
|
|
6429
6429
|
* @see https://tailwindcss.com/docs/border-color
|
|
6430
6430
|
*/
|
|
6431
6431
|
"border-color-l": [{
|
|
6432
|
-
"border-l":
|
|
6432
|
+
"border-l": R()
|
|
6433
6433
|
}],
|
|
6434
6434
|
/**
|
|
6435
6435
|
* Divide Color
|
|
6436
6436
|
* @see https://tailwindcss.com/docs/divide-color
|
|
6437
6437
|
*/
|
|
6438
6438
|
"divide-color": [{
|
|
6439
|
-
divide:
|
|
6439
|
+
divide: R()
|
|
6440
6440
|
}],
|
|
6441
6441
|
/**
|
|
6442
6442
|
* Outline Style
|
|
6443
6443
|
* @see https://tailwindcss.com/docs/outline-style
|
|
6444
6444
|
*/
|
|
6445
6445
|
"outline-style": [{
|
|
6446
|
-
outline: [...
|
|
6446
|
+
outline: [...K(), "none", "hidden"]
|
|
6447
6447
|
}],
|
|
6448
6448
|
/**
|
|
6449
6449
|
* Outline Offset
|
|
@@ -6464,7 +6464,7 @@ const Sf = (e, t) => {
|
|
|
6464
6464
|
* @see https://tailwindcss.com/docs/outline-color
|
|
6465
6465
|
*/
|
|
6466
6466
|
"outline-color": [{
|
|
6467
|
-
outline:
|
|
6467
|
+
outline: R()
|
|
6468
6468
|
}],
|
|
6469
6469
|
// ---------------
|
|
6470
6470
|
// --- Effects ---
|
|
@@ -6488,7 +6488,7 @@ const Sf = (e, t) => {
|
|
|
6488
6488
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
|
|
6489
6489
|
*/
|
|
6490
6490
|
"shadow-color": [{
|
|
6491
|
-
shadow:
|
|
6491
|
+
shadow: R()
|
|
6492
6492
|
}],
|
|
6493
6493
|
/**
|
|
6494
6494
|
* Inset Box Shadow
|
|
@@ -6502,14 +6502,14 @@ const Sf = (e, t) => {
|
|
|
6502
6502
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
|
|
6503
6503
|
*/
|
|
6504
6504
|
"inset-shadow-color": [{
|
|
6505
|
-
"inset-shadow":
|
|
6505
|
+
"inset-shadow": R()
|
|
6506
6506
|
}],
|
|
6507
6507
|
/**
|
|
6508
6508
|
* Ring Width
|
|
6509
6509
|
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
|
6510
6510
|
*/
|
|
6511
6511
|
"ring-w": [{
|
|
6512
|
-
ring:
|
|
6512
|
+
ring: $()
|
|
6513
6513
|
}],
|
|
6514
6514
|
/**
|
|
6515
6515
|
* Ring Width Inset
|
|
@@ -6523,7 +6523,7 @@ const Sf = (e, t) => {
|
|
|
6523
6523
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
|
|
6524
6524
|
*/
|
|
6525
6525
|
"ring-color": [{
|
|
6526
|
-
ring:
|
|
6526
|
+
ring: R()
|
|
6527
6527
|
}],
|
|
6528
6528
|
/**
|
|
6529
6529
|
* Ring Offset Width
|
|
@@ -6541,21 +6541,21 @@ const Sf = (e, t) => {
|
|
|
6541
6541
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
6542
6542
|
*/
|
|
6543
6543
|
"ring-offset-color": [{
|
|
6544
|
-
"ring-offset":
|
|
6544
|
+
"ring-offset": R()
|
|
6545
6545
|
}],
|
|
6546
6546
|
/**
|
|
6547
6547
|
* Inset Ring Width
|
|
6548
6548
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
|
6549
6549
|
*/
|
|
6550
6550
|
"inset-ring-w": [{
|
|
6551
|
-
"inset-ring":
|
|
6551
|
+
"inset-ring": $()
|
|
6552
6552
|
}],
|
|
6553
6553
|
/**
|
|
6554
6554
|
* Inset Ring Color
|
|
6555
6555
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
|
|
6556
6556
|
*/
|
|
6557
6557
|
"inset-ring-color": [{
|
|
6558
|
-
"inset-ring":
|
|
6558
|
+
"inset-ring": R()
|
|
6559
6559
|
}],
|
|
6560
6560
|
/**
|
|
6561
6561
|
* Text Shadow
|
|
@@ -6569,7 +6569,7 @@ const Sf = (e, t) => {
|
|
|
6569
6569
|
* @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
|
|
6570
6570
|
*/
|
|
6571
6571
|
"text-shadow-color": [{
|
|
6572
|
-
"text-shadow":
|
|
6572
|
+
"text-shadow": R()
|
|
6573
6573
|
}],
|
|
6574
6574
|
/**
|
|
6575
6575
|
* Opacity
|
|
@@ -6583,14 +6583,14 @@ const Sf = (e, t) => {
|
|
|
6583
6583
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
6584
6584
|
*/
|
|
6585
6585
|
"mix-blend": [{
|
|
6586
|
-
"mix-blend": [...
|
|
6586
|
+
"mix-blend": [...le(), "plus-darker", "plus-lighter"]
|
|
6587
6587
|
}],
|
|
6588
6588
|
/**
|
|
6589
6589
|
* Background Blend Mode
|
|
6590
6590
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
6591
6591
|
*/
|
|
6592
6592
|
"bg-blend": [{
|
|
6593
|
-
"bg-blend":
|
|
6593
|
+
"bg-blend": le()
|
|
6594
6594
|
}],
|
|
6595
6595
|
/**
|
|
6596
6596
|
* Mask Clip
|
|
@@ -6614,103 +6614,103 @@ const Sf = (e, t) => {
|
|
|
6614
6614
|
"mask-linear": [Z]
|
|
6615
6615
|
}],
|
|
6616
6616
|
"mask-image-linear-from-pos": [{
|
|
6617
|
-
"mask-linear-from":
|
|
6617
|
+
"mask-linear-from": M()
|
|
6618
6618
|
}],
|
|
6619
6619
|
"mask-image-linear-to-pos": [{
|
|
6620
|
-
"mask-linear-to":
|
|
6620
|
+
"mask-linear-to": M()
|
|
6621
6621
|
}],
|
|
6622
6622
|
"mask-image-linear-from-color": [{
|
|
6623
|
-
"mask-linear-from":
|
|
6623
|
+
"mask-linear-from": R()
|
|
6624
6624
|
}],
|
|
6625
6625
|
"mask-image-linear-to-color": [{
|
|
6626
|
-
"mask-linear-to":
|
|
6626
|
+
"mask-linear-to": R()
|
|
6627
6627
|
}],
|
|
6628
6628
|
"mask-image-t-from-pos": [{
|
|
6629
|
-
"mask-t-from":
|
|
6629
|
+
"mask-t-from": M()
|
|
6630
6630
|
}],
|
|
6631
6631
|
"mask-image-t-to-pos": [{
|
|
6632
|
-
"mask-t-to":
|
|
6632
|
+
"mask-t-to": M()
|
|
6633
6633
|
}],
|
|
6634
6634
|
"mask-image-t-from-color": [{
|
|
6635
|
-
"mask-t-from":
|
|
6635
|
+
"mask-t-from": R()
|
|
6636
6636
|
}],
|
|
6637
6637
|
"mask-image-t-to-color": [{
|
|
6638
|
-
"mask-t-to":
|
|
6638
|
+
"mask-t-to": R()
|
|
6639
6639
|
}],
|
|
6640
6640
|
"mask-image-r-from-pos": [{
|
|
6641
|
-
"mask-r-from":
|
|
6641
|
+
"mask-r-from": M()
|
|
6642
6642
|
}],
|
|
6643
6643
|
"mask-image-r-to-pos": [{
|
|
6644
|
-
"mask-r-to":
|
|
6644
|
+
"mask-r-to": M()
|
|
6645
6645
|
}],
|
|
6646
6646
|
"mask-image-r-from-color": [{
|
|
6647
|
-
"mask-r-from":
|
|
6647
|
+
"mask-r-from": R()
|
|
6648
6648
|
}],
|
|
6649
6649
|
"mask-image-r-to-color": [{
|
|
6650
|
-
"mask-r-to":
|
|
6650
|
+
"mask-r-to": R()
|
|
6651
6651
|
}],
|
|
6652
6652
|
"mask-image-b-from-pos": [{
|
|
6653
|
-
"mask-b-from":
|
|
6653
|
+
"mask-b-from": M()
|
|
6654
6654
|
}],
|
|
6655
6655
|
"mask-image-b-to-pos": [{
|
|
6656
|
-
"mask-b-to":
|
|
6656
|
+
"mask-b-to": M()
|
|
6657
6657
|
}],
|
|
6658
6658
|
"mask-image-b-from-color": [{
|
|
6659
|
-
"mask-b-from":
|
|
6659
|
+
"mask-b-from": R()
|
|
6660
6660
|
}],
|
|
6661
6661
|
"mask-image-b-to-color": [{
|
|
6662
|
-
"mask-b-to":
|
|
6662
|
+
"mask-b-to": R()
|
|
6663
6663
|
}],
|
|
6664
6664
|
"mask-image-l-from-pos": [{
|
|
6665
|
-
"mask-l-from":
|
|
6665
|
+
"mask-l-from": M()
|
|
6666
6666
|
}],
|
|
6667
6667
|
"mask-image-l-to-pos": [{
|
|
6668
|
-
"mask-l-to":
|
|
6668
|
+
"mask-l-to": M()
|
|
6669
6669
|
}],
|
|
6670
6670
|
"mask-image-l-from-color": [{
|
|
6671
|
-
"mask-l-from":
|
|
6671
|
+
"mask-l-from": R()
|
|
6672
6672
|
}],
|
|
6673
6673
|
"mask-image-l-to-color": [{
|
|
6674
|
-
"mask-l-to":
|
|
6674
|
+
"mask-l-to": R()
|
|
6675
6675
|
}],
|
|
6676
6676
|
"mask-image-x-from-pos": [{
|
|
6677
|
-
"mask-x-from":
|
|
6677
|
+
"mask-x-from": M()
|
|
6678
6678
|
}],
|
|
6679
6679
|
"mask-image-x-to-pos": [{
|
|
6680
|
-
"mask-x-to":
|
|
6680
|
+
"mask-x-to": M()
|
|
6681
6681
|
}],
|
|
6682
6682
|
"mask-image-x-from-color": [{
|
|
6683
|
-
"mask-x-from":
|
|
6683
|
+
"mask-x-from": R()
|
|
6684
6684
|
}],
|
|
6685
6685
|
"mask-image-x-to-color": [{
|
|
6686
|
-
"mask-x-to":
|
|
6686
|
+
"mask-x-to": R()
|
|
6687
6687
|
}],
|
|
6688
6688
|
"mask-image-y-from-pos": [{
|
|
6689
|
-
"mask-y-from":
|
|
6689
|
+
"mask-y-from": M()
|
|
6690
6690
|
}],
|
|
6691
6691
|
"mask-image-y-to-pos": [{
|
|
6692
|
-
"mask-y-to":
|
|
6692
|
+
"mask-y-to": M()
|
|
6693
6693
|
}],
|
|
6694
6694
|
"mask-image-y-from-color": [{
|
|
6695
|
-
"mask-y-from":
|
|
6695
|
+
"mask-y-from": R()
|
|
6696
6696
|
}],
|
|
6697
6697
|
"mask-image-y-to-color": [{
|
|
6698
|
-
"mask-y-to":
|
|
6698
|
+
"mask-y-to": R()
|
|
6699
6699
|
}],
|
|
6700
6700
|
"mask-image-radial": [{
|
|
6701
6701
|
"mask-radial": [B, z]
|
|
6702
6702
|
}],
|
|
6703
6703
|
"mask-image-radial-from-pos": [{
|
|
6704
|
-
"mask-radial-from":
|
|
6704
|
+
"mask-radial-from": M()
|
|
6705
6705
|
}],
|
|
6706
6706
|
"mask-image-radial-to-pos": [{
|
|
6707
|
-
"mask-radial-to":
|
|
6707
|
+
"mask-radial-to": M()
|
|
6708
6708
|
}],
|
|
6709
6709
|
"mask-image-radial-from-color": [{
|
|
6710
|
-
"mask-radial-from":
|
|
6710
|
+
"mask-radial-from": R()
|
|
6711
6711
|
}],
|
|
6712
6712
|
"mask-image-radial-to-color": [{
|
|
6713
|
-
"mask-radial-to":
|
|
6713
|
+
"mask-radial-to": R()
|
|
6714
6714
|
}],
|
|
6715
6715
|
"mask-image-radial-shape": [{
|
|
6716
6716
|
"mask-radial": ["circle", "ellipse"]
|
|
@@ -6728,16 +6728,16 @@ const Sf = (e, t) => {
|
|
|
6728
6728
|
"mask-conic": [Z]
|
|
6729
6729
|
}],
|
|
6730
6730
|
"mask-image-conic-from-pos": [{
|
|
6731
|
-
"mask-conic-from":
|
|
6731
|
+
"mask-conic-from": M()
|
|
6732
6732
|
}],
|
|
6733
6733
|
"mask-image-conic-to-pos": [{
|
|
6734
|
-
"mask-conic-to":
|
|
6734
|
+
"mask-conic-to": M()
|
|
6735
6735
|
}],
|
|
6736
6736
|
"mask-image-conic-from-color": [{
|
|
6737
|
-
"mask-conic-from":
|
|
6737
|
+
"mask-conic-from": R()
|
|
6738
6738
|
}],
|
|
6739
6739
|
"mask-image-conic-to-color": [{
|
|
6740
|
-
"mask-conic-to":
|
|
6740
|
+
"mask-conic-to": R()
|
|
6741
6741
|
}],
|
|
6742
6742
|
/**
|
|
6743
6743
|
* Mask Mode
|
|
@@ -6765,7 +6765,7 @@ const Sf = (e, t) => {
|
|
|
6765
6765
|
* @see https://tailwindcss.com/docs/mask-repeat
|
|
6766
6766
|
*/
|
|
6767
6767
|
"mask-repeat": [{
|
|
6768
|
-
mask:
|
|
6768
|
+
mask: N()
|
|
6769
6769
|
}],
|
|
6770
6770
|
/**
|
|
6771
6771
|
* Mask Size
|
|
@@ -6844,7 +6844,7 @@ const Sf = (e, t) => {
|
|
|
6844
6844
|
* @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
|
|
6845
6845
|
*/
|
|
6846
6846
|
"drop-shadow-color": [{
|
|
6847
|
-
"drop-shadow":
|
|
6847
|
+
"drop-shadow": R()
|
|
6848
6848
|
}],
|
|
6849
6849
|
/**
|
|
6850
6850
|
* Grayscale
|
|
@@ -7076,28 +7076,28 @@ const Sf = (e, t) => {
|
|
|
7076
7076
|
* @see https://tailwindcss.com/docs/rotate
|
|
7077
7077
|
*/
|
|
7078
7078
|
rotate: [{
|
|
7079
|
-
rotate:
|
|
7079
|
+
rotate: se()
|
|
7080
7080
|
}],
|
|
7081
7081
|
/**
|
|
7082
7082
|
* Rotate X
|
|
7083
7083
|
* @see https://tailwindcss.com/docs/rotate
|
|
7084
7084
|
*/
|
|
7085
7085
|
"rotate-x": [{
|
|
7086
|
-
"rotate-x":
|
|
7086
|
+
"rotate-x": se()
|
|
7087
7087
|
}],
|
|
7088
7088
|
/**
|
|
7089
7089
|
* Rotate Y
|
|
7090
7090
|
* @see https://tailwindcss.com/docs/rotate
|
|
7091
7091
|
*/
|
|
7092
7092
|
"rotate-y": [{
|
|
7093
|
-
"rotate-y":
|
|
7093
|
+
"rotate-y": se()
|
|
7094
7094
|
}],
|
|
7095
7095
|
/**
|
|
7096
7096
|
* Rotate Z
|
|
7097
7097
|
* @see https://tailwindcss.com/docs/rotate
|
|
7098
7098
|
*/
|
|
7099
7099
|
"rotate-z": [{
|
|
7100
|
-
"rotate-z":
|
|
7100
|
+
"rotate-z": se()
|
|
7101
7101
|
}],
|
|
7102
7102
|
/**
|
|
7103
7103
|
* Scale
|
|
@@ -7179,28 +7179,28 @@ const Sf = (e, t) => {
|
|
|
7179
7179
|
* @see https://tailwindcss.com/docs/translate
|
|
7180
7180
|
*/
|
|
7181
7181
|
translate: [{
|
|
7182
|
-
translate:
|
|
7182
|
+
translate: re()
|
|
7183
7183
|
}],
|
|
7184
7184
|
/**
|
|
7185
7185
|
* Translate X
|
|
7186
7186
|
* @see https://tailwindcss.com/docs/translate
|
|
7187
7187
|
*/
|
|
7188
7188
|
"translate-x": [{
|
|
7189
|
-
"translate-x":
|
|
7189
|
+
"translate-x": re()
|
|
7190
7190
|
}],
|
|
7191
7191
|
/**
|
|
7192
7192
|
* Translate Y
|
|
7193
7193
|
* @see https://tailwindcss.com/docs/translate
|
|
7194
7194
|
*/
|
|
7195
7195
|
"translate-y": [{
|
|
7196
|
-
"translate-y":
|
|
7196
|
+
"translate-y": re()
|
|
7197
7197
|
}],
|
|
7198
7198
|
/**
|
|
7199
7199
|
* Translate Z
|
|
7200
7200
|
* @see https://tailwindcss.com/docs/translate
|
|
7201
7201
|
*/
|
|
7202
7202
|
"translate-z": [{
|
|
7203
|
-
"translate-z":
|
|
7203
|
+
"translate-z": re()
|
|
7204
7204
|
}],
|
|
7205
7205
|
/**
|
|
7206
7206
|
* Translate None
|
|
@@ -7215,7 +7215,7 @@ const Sf = (e, t) => {
|
|
|
7215
7215
|
* @see https://tailwindcss.com/docs/accent-color
|
|
7216
7216
|
*/
|
|
7217
7217
|
accent: [{
|
|
7218
|
-
accent:
|
|
7218
|
+
accent: R()
|
|
7219
7219
|
}],
|
|
7220
7220
|
/**
|
|
7221
7221
|
* Appearance
|
|
@@ -7229,7 +7229,7 @@ const Sf = (e, t) => {
|
|
|
7229
7229
|
* @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
|
|
7230
7230
|
*/
|
|
7231
7231
|
"caret-color": [{
|
|
7232
|
-
caret:
|
|
7232
|
+
caret: R()
|
|
7233
7233
|
}],
|
|
7234
7234
|
/**
|
|
7235
7235
|
* Color Scheme
|
|
@@ -7475,7 +7475,7 @@ const Sf = (e, t) => {
|
|
|
7475
7475
|
* @see https://tailwindcss.com/docs/fill
|
|
7476
7476
|
*/
|
|
7477
7477
|
fill: [{
|
|
7478
|
-
fill: ["none", ...
|
|
7478
|
+
fill: ["none", ...R()]
|
|
7479
7479
|
}],
|
|
7480
7480
|
/**
|
|
7481
7481
|
* Stroke Width
|
|
@@ -7489,7 +7489,7 @@ const Sf = (e, t) => {
|
|
|
7489
7489
|
* @see https://tailwindcss.com/docs/stroke
|
|
7490
7490
|
*/
|
|
7491
7491
|
stroke: [{
|
|
7492
|
-
stroke: ["none", ...
|
|
7492
|
+
stroke: ["none", ...R()]
|
|
7493
7493
|
}],
|
|
7494
7494
|
// ---------------------
|
|
7495
7495
|
// --- Accessibility ---
|
|
@@ -7703,62 +7703,62 @@ function es({
|
|
|
7703
7703
|
!v && e.uploadEndpoint && console.error(
|
|
7704
7704
|
`api_URL prop is required when using FileField with upload functionality for field "${e.name}"`
|
|
7705
7705
|
);
|
|
7706
|
-
const x = (
|
|
7707
|
-
if (
|
|
7708
|
-
const
|
|
7709
|
-
return `${parseFloat((
|
|
7710
|
-
}, S = async (
|
|
7711
|
-
const
|
|
7712
|
-
|
|
7713
|
-
const
|
|
7706
|
+
const x = (T) => {
|
|
7707
|
+
if (T === 0) return "0 Bytes";
|
|
7708
|
+
const F = 1024, U = ["Bytes", "KB", "MB", "GB"], D = Math.floor(Math.log(T) / Math.log(F));
|
|
7709
|
+
return `${parseFloat((T / F ** D).toFixed(2))} ${U[D]}`;
|
|
7710
|
+
}, S = async (T) => {
|
|
7711
|
+
const F = new FormData();
|
|
7712
|
+
F.append("file", T);
|
|
7713
|
+
const U = await fetch(`${v}`, {
|
|
7714
7714
|
method: "POST",
|
|
7715
|
-
body:
|
|
7715
|
+
body: F
|
|
7716
7716
|
});
|
|
7717
|
-
if (!
|
|
7717
|
+
if (!U.ok)
|
|
7718
7718
|
throw fn.error("Upload failed"), new Error("Upload failed");
|
|
7719
|
-
return await
|
|
7720
|
-
}, C = async (
|
|
7721
|
-
if (
|
|
7722
|
-
if (
|
|
7719
|
+
return await U.json();
|
|
7720
|
+
}, C = async (T, F) => {
|
|
7721
|
+
if (!F) return;
|
|
7722
|
+
if (T.maxSize && F.size > T.maxSize)
|
|
7723
7723
|
throw new Error(
|
|
7724
|
-
`File size must not exceed ${x(
|
|
7724
|
+
`File size must not exceed ${x(T.maxSize)}`
|
|
7725
7725
|
);
|
|
7726
|
-
const
|
|
7727
|
-
s(
|
|
7728
|
-
}, y = async (
|
|
7729
|
-
const
|
|
7730
|
-
if (
|
|
7731
|
-
throw new Error(`Maximum ${
|
|
7732
|
-
|
|
7733
|
-
if (
|
|
7726
|
+
const U = await S(F), D = { ...t, [T.name]: U };
|
|
7727
|
+
s(T.name, U), i(D);
|
|
7728
|
+
}, y = async (T, F) => {
|
|
7729
|
+
const U = t[T.name] || [];
|
|
7730
|
+
if (T.maxFiles && U.length + F.length > T.maxFiles)
|
|
7731
|
+
throw new Error(`Maximum ${T.maxFiles} files allowed`);
|
|
7732
|
+
F.forEach((R) => {
|
|
7733
|
+
if (T.maxSize && R.size > T.maxSize)
|
|
7734
7734
|
throw new Error(
|
|
7735
|
-
`Each file must not exceed ${x(
|
|
7735
|
+
`Each file must not exceed ${x(T.maxSize)}`
|
|
7736
7736
|
);
|
|
7737
7737
|
});
|
|
7738
|
-
const
|
|
7739
|
-
|
|
7738
|
+
const D = await Promise.all(
|
|
7739
|
+
F.map((R) => S(R))
|
|
7740
7740
|
// Updated call
|
|
7741
|
-
), Y = [...
|
|
7742
|
-
s(
|
|
7743
|
-
}, E = async (
|
|
7741
|
+
), Y = [...U, ...D];
|
|
7742
|
+
s(T.name, Y), i({ ...t, [T.name]: Y });
|
|
7743
|
+
}, E = async (T, F) => {
|
|
7744
7744
|
if (c) return;
|
|
7745
|
-
const
|
|
7745
|
+
const U = Array.from(F);
|
|
7746
7746
|
try {
|
|
7747
|
-
e.type === "multifile" ? await y(e,
|
|
7748
|
-
} catch (
|
|
7749
|
-
fn.error(`Upload failed: ${
|
|
7747
|
+
e.type === "multifile" ? await y(e, U) : await C(e, U[0]), r.current?.[T] && (r.current[T].value = "");
|
|
7748
|
+
} catch (D) {
|
|
7749
|
+
fn.error(`Upload failed: ${D.message}`);
|
|
7750
7750
|
}
|
|
7751
|
-
},
|
|
7751
|
+
}, L = async (T, F) => {
|
|
7752
7752
|
if (c) return;
|
|
7753
|
-
let
|
|
7754
|
-
e.type === "file" ?
|
|
7755
|
-
}, k = (
|
|
7756
|
-
|
|
7757
|
-
}, A = (
|
|
7758
|
-
|
|
7759
|
-
}, G = (
|
|
7760
|
-
|
|
7761
|
-
}, X = e.accept ? e.accept.split(",").map((
|
|
7753
|
+
let U;
|
|
7754
|
+
e.type === "file" ? U = "" : U = (t[T] || []).filter((Y) => Y !== F), s(T, U), i({ ...t, [T]: U }), r.current?.[T] && (r.current[T].value = "");
|
|
7755
|
+
}, k = (T) => {
|
|
7756
|
+
T.preventDefault(), c || h(!0);
|
|
7757
|
+
}, A = (T) => {
|
|
7758
|
+
T.preventDefault(), c || h(!1);
|
|
7759
|
+
}, G = (T) => {
|
|
7760
|
+
T.preventDefault(), h(!1), !c && T.dataTransfer.files && T.dataTransfer.files.length > 0 && E(e.name, T.dataTransfer.files);
|
|
7761
|
+
}, X = e.accept ? e.accept.split(",").map((T) => T.split("/")[1] || T.split(".")[1] || T).join(", ").toUpperCase() : "PNG, JPG, PDF", j = e.maxSize ? `, up to ${x(e.maxSize)}` : "", q = `
|
|
7762
7762
|
w-full flex flex-col items-center justify-center p-6 border-2 border-dashed rounded-lg transition-all duration-200
|
|
7763
7763
|
// Ensure focus styling is handled correctly for the button element
|
|
7764
7764
|
focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-opacity-50
|
|
@@ -7808,30 +7808,30 @@ function es({
|
|
|
7808
7808
|
/* @__PURE__ */ u(
|
|
7809
7809
|
"input",
|
|
7810
7810
|
{
|
|
7811
|
-
ref: (
|
|
7812
|
-
|
|
7811
|
+
ref: (T) => {
|
|
7812
|
+
T && r && r.current && (r.current[e.name] = T);
|
|
7813
7813
|
},
|
|
7814
7814
|
id: e.name,
|
|
7815
7815
|
type: "file",
|
|
7816
7816
|
accept: e.accept,
|
|
7817
7817
|
multiple: f,
|
|
7818
7818
|
className: "sr-only",
|
|
7819
|
-
onChange: (
|
|
7819
|
+
onChange: (T) => E(e.name, T.target.files),
|
|
7820
7820
|
disabled: c
|
|
7821
7821
|
}
|
|
7822
7822
|
),
|
|
7823
|
-
m.length > 0 && /* @__PURE__ */ u("div", { className: "space-y-2 pt-2 border-t border-gray-200", children: m.map((
|
|
7824
|
-
const
|
|
7823
|
+
m.length > 0 && /* @__PURE__ */ u("div", { className: "space-y-2 pt-2 border-t border-gray-200", children: m.map((T, F) => {
|
|
7824
|
+
const U = T.original_name || T.name || "File", D = T.size || null;
|
|
7825
7825
|
return /* @__PURE__ */ O(
|
|
7826
7826
|
"div",
|
|
7827
7827
|
{
|
|
7828
7828
|
className: "flex items-center justify-between p-2 bg-gray-50 rounded",
|
|
7829
7829
|
children: [
|
|
7830
7830
|
/* @__PURE__ */ O("div", { className: "flex items-center space-x-2 min-w-0", children: [
|
|
7831
|
-
/* @__PURE__ */ u("span", { className: "text-sm truncate", children:
|
|
7832
|
-
|
|
7831
|
+
/* @__PURE__ */ u("span", { className: "text-sm truncate", children: U }),
|
|
7832
|
+
D && /* @__PURE__ */ O("span", { className: "text-xs text-gray-500 flex-shrink-0", children: [
|
|
7833
7833
|
"(",
|
|
7834
|
-
x(
|
|
7834
|
+
x(D),
|
|
7835
7835
|
")"
|
|
7836
7836
|
] })
|
|
7837
7837
|
] }),
|
|
@@ -7839,7 +7839,7 @@ function es({
|
|
|
7839
7839
|
"button",
|
|
7840
7840
|
{
|
|
7841
7841
|
type: "button",
|
|
7842
|
-
onClick: () =>
|
|
7842
|
+
onClick: () => L(e.name, T),
|
|
7843
7843
|
className: `text-red-500 hover:text-red-700 ml-3 flex-shrink-0 ${c ? "cursor-not-allowed opacity-50" : ""}`,
|
|
7844
7844
|
disabled: c,
|
|
7845
7845
|
children: "Remove"
|
|
@@ -7847,17 +7847,17 @@ function es({
|
|
|
7847
7847
|
)
|
|
7848
7848
|
]
|
|
7849
7849
|
},
|
|
7850
|
-
|
|
7850
|
+
T.url || T.original_name || F
|
|
7851
7851
|
);
|
|
7852
7852
|
}) }),
|
|
7853
|
-
Object.entries(p).map(([
|
|
7853
|
+
Object.entries(p).map(([T, F]) => F.status === "uploading" ? /* @__PURE__ */ O("div", { className: "relative pt-1", children: [
|
|
7854
7854
|
/* @__PURE__ */ O("div", { className: "flex items-center justify-between", children: [
|
|
7855
7855
|
/* @__PURE__ */ O("span", { className: "text-xs font-semibold inline-block text-blue-600", children: [
|
|
7856
7856
|
"Uploading ",
|
|
7857
|
-
|
|
7857
|
+
T
|
|
7858
7858
|
] }),
|
|
7859
7859
|
/* @__PURE__ */ O("span", { className: "text-xs font-semibold inline-block text-blue-600", children: [
|
|
7860
|
-
|
|
7860
|
+
F.progress,
|
|
7861
7861
|
"%"
|
|
7862
7862
|
] })
|
|
7863
7863
|
] }),
|
|
@@ -7865,10 +7865,10 @@ function es({
|
|
|
7865
7865
|
"div",
|
|
7866
7866
|
{
|
|
7867
7867
|
className: "shadow-none flex flex-col text-center whitespace-nowrap text-white justify-center bg-blue-500",
|
|
7868
|
-
style: { width: `${
|
|
7868
|
+
style: { width: `${F.progress}%` }
|
|
7869
7869
|
}
|
|
7870
7870
|
) })
|
|
7871
|
-
] },
|
|
7871
|
+
] }, T) : null)
|
|
7872
7872
|
] })
|
|
7873
7873
|
},
|
|
7874
7874
|
e.name
|
|
@@ -7935,10 +7935,10 @@ function fp({ field: e, formValues: t, handleChange: n, handleBlur: o, error: r
|
|
|
7935
7935
|
}
|
|
7936
7936
|
const E = new Date(y);
|
|
7937
7937
|
l ? (E.setHours(l.getHours()), E.setMinutes(l.getMinutes())) : (E.setHours(12), E.setMinutes(0)), n(e.name, E);
|
|
7938
|
-
}, m = (y, E,
|
|
7938
|
+
}, m = (y, E, L) => {
|
|
7939
7939
|
const k = l ? new Date(l) : /* @__PURE__ */ new Date();
|
|
7940
7940
|
let A = parseInt(y);
|
|
7941
|
-
|
|
7941
|
+
L === "PM" && A !== 12 && (A += 12), L === "AM" && A === 12 && (A = 0), k.setHours(A), k.setMinutes(parseInt(E)), n(e.name, k);
|
|
7942
7942
|
}, w = () => {
|
|
7943
7943
|
let y = parseInt(c);
|
|
7944
7944
|
y = y % 12 + 1, m(y.toString(), f, p);
|
|
@@ -7975,7 +7975,7 @@ function fp({ field: e, formValues: t, handleChange: n, handleBlur: o, error: r
|
|
|
7975
7975
|
${r ? "border-red-500 focus-visible:ring-red-500" : "border-slate-200 focus-visible:ring-blue-500"}
|
|
7976
7976
|
`,
|
|
7977
7977
|
children: [
|
|
7978
|
-
l ? /* @__PURE__ */ u("span", { className: "text-slate-900
|
|
7978
|
+
l ? /* @__PURE__ */ u("span", { className: "text-slate-900 ", children: l.toLocaleString() }) : /* @__PURE__ */ u("span", { className: "text-slate-400", children: e.placeholder || "Select date and time" }),
|
|
7979
7979
|
/* @__PURE__ */ O(
|
|
7980
7980
|
"svg",
|
|
7981
7981
|
{
|
|
@@ -8272,12 +8272,12 @@ var Dp = d.forwardRef((e, t) => {
|
|
|
8272
8272
|
onEntryFocus: c,
|
|
8273
8273
|
preventScrollOnEntryFocus: f = !1,
|
|
8274
8274
|
...p
|
|
8275
|
-
} = e, g = d.useRef(null), m =
|
|
8275
|
+
} = e, g = d.useRef(null), m = ae(t, g), w = Po(s), [h, v] = Bt({
|
|
8276
8276
|
prop: i,
|
|
8277
8277
|
defaultProp: a ?? null,
|
|
8278
8278
|
onChange: l,
|
|
8279
8279
|
caller: Vt
|
|
8280
|
-
}), [x, S] = d.useState(!1), C = qe(c), y = ea(n), E = d.useRef(!1), [
|
|
8280
|
+
}), [x, S] = d.useState(!1), C = qe(c), y = ea(n), E = d.useRef(!1), [L, k] = d.useState(0);
|
|
8281
8281
|
return d.useEffect(() => {
|
|
8282
8282
|
const A = g.current;
|
|
8283
8283
|
if (A)
|
|
@@ -8306,7 +8306,7 @@ var Dp = d.forwardRef((e, t) => {
|
|
|
8306
8306
|
children: /* @__PURE__ */ u(
|
|
8307
8307
|
Ji.div,
|
|
8308
8308
|
{
|
|
8309
|
-
tabIndex: x ||
|
|
8309
|
+
tabIndex: x || L === 0 ? -1 : 0,
|
|
8310
8310
|
"data-orientation": o,
|
|
8311
8311
|
...p,
|
|
8312
8312
|
ref: m,
|
|
@@ -8319,10 +8319,10 @@ var Dp = d.forwardRef((e, t) => {
|
|
|
8319
8319
|
if (A.target === A.currentTarget && G && !x) {
|
|
8320
8320
|
const X = new CustomEvent(co, Pp);
|
|
8321
8321
|
if (A.currentTarget.dispatchEvent(X), !X.defaultPrevented) {
|
|
8322
|
-
const j = y().filter((
|
|
8322
|
+
const j = y().filter((D) => D.focusable), q = j.find((D) => D.active), T = j.find((D) => D.id === h), U = [q, T, ...j].filter(
|
|
8323
8323
|
Boolean
|
|
8324
|
-
).map((
|
|
8325
|
-
sa(
|
|
8324
|
+
).map((D) => D.ref.current);
|
|
8325
|
+
sa(U, f);
|
|
8326
8326
|
}
|
|
8327
8327
|
}
|
|
8328
8328
|
E.current = !1;
|
|
@@ -8429,7 +8429,7 @@ var Bp = na, Up = ra, Yo = "Radio", [Wp, ia] = ct(Yo), [Hp, Vp] = Wp(Yo), aa = d
|
|
|
8429
8429
|
onCheck: l,
|
|
8430
8430
|
form: c,
|
|
8431
8431
|
...f
|
|
8432
|
-
} = e, [p, g] = d.useState(null), m =
|
|
8432
|
+
} = e, [p, g] = d.useState(null), m = ae(t, (v) => g(v)), w = d.useRef(!1), h = p ? c || !!p.closest("form") : !0;
|
|
8433
8433
|
return /* @__PURE__ */ O(Hp, { scope: n, checked: r, disabled: i, children: [
|
|
8434
8434
|
/* @__PURE__ */ u(
|
|
8435
8435
|
Ln.button,
|
|
@@ -8489,7 +8489,7 @@ var jp = "RadioBubbleInput", ua = d.forwardRef(
|
|
|
8489
8489
|
bubbles: o = !0,
|
|
8490
8490
|
...r
|
|
8491
8491
|
}, s) => {
|
|
8492
|
-
const i = d.useRef(null), a =
|
|
8492
|
+
const i = d.useRef(null), a = ae(i, s), l = Fs(n), c = Es(t);
|
|
8493
8493
|
return d.useEffect(() => {
|
|
8494
8494
|
const f = i.current;
|
|
8495
8495
|
if (!f) return;
|
|
@@ -8587,7 +8587,7 @@ var Gp = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Fn = "RadioGroup",
|
|
|
8587
8587
|
ma.displayName = Fn;
|
|
8588
8588
|
var ha = "RadioGroupItem", ga = d.forwardRef(
|
|
8589
8589
|
(e, t) => {
|
|
8590
|
-
const { __scopeRadioGroup: n, disabled: o, ...r } = e, s = Xp(ha, n), i = s.disabled || o, a = fa(n), l = pa(n), c = d.useRef(null), f =
|
|
8590
|
+
const { __scopeRadioGroup: n, disabled: o, ...r } = e, s = Xp(ha, n), i = s.disabled || o, a = fa(n), l = pa(n), c = d.useRef(null), f = ae(t, c), p = s.value === r.value, g = d.useRef(!1);
|
|
8591
8591
|
return d.useEffect(() => {
|
|
8592
8592
|
const m = (h) => {
|
|
8593
8593
|
Gp.includes(h.key) && (g.current = !0);
|
|
@@ -8918,17 +8918,16 @@ function rm({ field: e, formValues: t, handleChange: n, handleBlur: o, error: r
|
|
|
8918
8918
|
const y = parseInt(c);
|
|
8919
8919
|
f((y === 0 ? 55 : y - 5).toString().padStart(2, "0"));
|
|
8920
8920
|
};
|
|
8921
|
-
return /* @__PURE__ */
|
|
8922
|
-
/* @__PURE__ */
|
|
8923
|
-
|
|
8924
|
-
|
|
8925
|
-
|
|
8926
|
-
|
|
8927
|
-
|
|
8928
|
-
|
|
8929
|
-
|
|
8930
|
-
|
|
8931
|
-
className: `
|
|
8921
|
+
return /* @__PURE__ */ u("div", { children: /* @__PURE__ */ O(In, { open: s, onOpenChange: i, children: [
|
|
8922
|
+
/* @__PURE__ */ u(Mn, { asChild: !0, children: /* @__PURE__ */ O(
|
|
8923
|
+
"button",
|
|
8924
|
+
{
|
|
8925
|
+
type: "button",
|
|
8926
|
+
id: e.name,
|
|
8927
|
+
"aria-haspopup": "dialog",
|
|
8928
|
+
"aria-expanded": s,
|
|
8929
|
+
onClick: () => i(!0),
|
|
8930
|
+
className: `
|
|
8932
8931
|
inline-flex items-center justify-between gap-2
|
|
8933
8932
|
w-full h-9 rounded-md border bg-white
|
|
8934
8933
|
px-3 py-2 text-sm font-normal shadow-sm
|
|
@@ -8937,206 +8936,204 @@ function rm({ field: e, formValues: t, handleChange: n, handleBlur: o, error: r
|
|
|
8937
8936
|
disabled:cursor-not-allowed disabled:opacity-50
|
|
8938
8937
|
${r ? "border-red-500 focus-visible:ring-red-500" : "border-gray-300 focus-visible:ring-blue-500"}
|
|
8939
8938
|
`,
|
|
8940
|
-
|
|
8941
|
-
|
|
8942
|
-
|
|
8943
|
-
|
|
8944
|
-
|
|
8945
|
-
|
|
8946
|
-
|
|
8947
|
-
|
|
8948
|
-
|
|
8949
|
-
|
|
8950
|
-
|
|
8951
|
-
|
|
8952
|
-
|
|
8953
|
-
|
|
8954
|
-
|
|
8955
|
-
|
|
8956
|
-
|
|
8957
|
-
|
|
8958
|
-
|
|
8959
|
-
|
|
8960
|
-
|
|
8961
|
-
|
|
8962
|
-
|
|
8963
|
-
|
|
8964
|
-
|
|
8965
|
-
|
|
8966
|
-
|
|
8967
|
-
|
|
8968
|
-
|
|
8969
|
-
|
|
8970
|
-
|
|
8971
|
-
|
|
8972
|
-
|
|
8973
|
-
|
|
8974
|
-
|
|
8975
|
-
|
|
8976
|
-
|
|
8977
|
-
|
|
8978
|
-
|
|
8979
|
-
|
|
8980
|
-
|
|
8981
|
-
|
|
8982
|
-
|
|
8983
|
-
|
|
8984
|
-
|
|
8985
|
-
|
|
8986
|
-
|
|
8987
|
-
|
|
8988
|
-
|
|
8989
|
-
|
|
8990
|
-
|
|
8991
|
-
|
|
8992
|
-
|
|
8993
|
-
|
|
8994
|
-
|
|
8995
|
-
|
|
8996
|
-
|
|
8997
|
-
|
|
8998
|
-
|
|
8999
|
-
|
|
9000
|
-
|
|
9001
|
-
|
|
9002
|
-
|
|
9003
|
-
|
|
9004
|
-
|
|
9005
|
-
|
|
9006
|
-
|
|
9007
|
-
|
|
9008
|
-
|
|
9009
|
-
|
|
9010
|
-
|
|
9011
|
-
|
|
9012
|
-
|
|
9013
|
-
|
|
9014
|
-
|
|
9015
|
-
|
|
9016
|
-
|
|
9017
|
-
|
|
9018
|
-
|
|
9019
|
-
|
|
9020
|
-
|
|
9021
|
-
|
|
9022
|
-
|
|
9023
|
-
|
|
9024
|
-
|
|
9025
|
-
|
|
9026
|
-
|
|
9027
|
-
|
|
9028
|
-
] }),
|
|
9029
|
-
/* @__PURE__ */ u("span", { className: "text-2xl font-semibold", children: ":" }),
|
|
9030
|
-
/* @__PURE__ */ O("div", { className: "flex flex-col items-center", children: [
|
|
9031
|
-
/* @__PURE__ */ u(
|
|
9032
|
-
"button",
|
|
9033
|
-
{
|
|
9034
|
-
type: "button",
|
|
9035
|
-
onClick: S,
|
|
9036
|
-
className: "p-1 hover:bg-gray-100 rounded",
|
|
9037
|
-
children: /* @__PURE__ */ u(
|
|
9038
|
-
"svg",
|
|
9039
|
-
{
|
|
9040
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
9041
|
-
width: "16",
|
|
9042
|
-
height: "16",
|
|
9043
|
-
viewBox: "0 0 24 24",
|
|
9044
|
-
fill: "none",
|
|
9045
|
-
stroke: "currentColor",
|
|
9046
|
-
strokeWidth: "2",
|
|
9047
|
-
children: /* @__PURE__ */ u("polyline", { points: "18 15 12 9 6 15" })
|
|
9048
|
-
}
|
|
9049
|
-
)
|
|
9050
|
-
}
|
|
9051
|
-
),
|
|
9052
|
-
/* @__PURE__ */ u(
|
|
9053
|
-
"input",
|
|
9054
|
-
{
|
|
9055
|
-
type: "text",
|
|
9056
|
-
value: c,
|
|
9057
|
-
onChange: (y) => {
|
|
9058
|
-
const E = y.target.value.replace(/\D/g, "");
|
|
9059
|
-
(E === "" || parseInt(E) >= 0 && parseInt(E) <= 59) && f(E.padStart(2, "0"));
|
|
9060
|
-
},
|
|
9061
|
-
className: "w-14 text-center text-2xl font-semibold border-0 focus:outline-none focus:ring-2 focus:ring-blue-500 rounded py-2",
|
|
9062
|
-
maxLength: "2"
|
|
9063
|
-
}
|
|
9064
|
-
),
|
|
9065
|
-
/* @__PURE__ */ u(
|
|
9066
|
-
"button",
|
|
9067
|
-
{
|
|
9068
|
-
type: "button",
|
|
9069
|
-
onClick: C,
|
|
9070
|
-
className: "p-1 hover:bg-gray-100 rounded",
|
|
9071
|
-
children: /* @__PURE__ */ u(
|
|
9072
|
-
"svg",
|
|
9073
|
-
{
|
|
9074
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
9075
|
-
width: "16",
|
|
9076
|
-
height: "16",
|
|
9077
|
-
viewBox: "0 0 24 24",
|
|
9078
|
-
fill: "none",
|
|
9079
|
-
stroke: "currentColor",
|
|
9080
|
-
strokeWidth: "2",
|
|
9081
|
-
children: /* @__PURE__ */ u("polyline", { points: "6 9 12 15 18 9" })
|
|
9082
|
-
}
|
|
9083
|
-
)
|
|
9084
|
-
}
|
|
9085
|
-
)
|
|
9086
|
-
] }),
|
|
9087
|
-
/* @__PURE__ */ O("div", { className: "flex flex-col gap-1 ml-2", children: [
|
|
9088
|
-
/* @__PURE__ */ u(
|
|
9089
|
-
"button",
|
|
9090
|
-
{
|
|
9091
|
-
type: "button",
|
|
9092
|
-
onClick: () => g("AM"),
|
|
9093
|
-
className: `
|
|
9094
|
-
px-3 py-1 text-sm font-medium rounded
|
|
9095
|
-
${p === "AM" ? "bg-blue-600 text-white" : "bg-gray-100 text-gray-700 hover:bg-gray-200"}
|
|
9096
|
-
`,
|
|
9097
|
-
children: "AM"
|
|
9098
|
-
}
|
|
9099
|
-
),
|
|
9100
|
-
/* @__PURE__ */ u(
|
|
9101
|
-
"button",
|
|
9102
|
-
{
|
|
9103
|
-
type: "button",
|
|
9104
|
-
onClick: () => g("PM"),
|
|
9105
|
-
className: `
|
|
9106
|
-
px-3 py-1 text-sm font-medium rounded
|
|
9107
|
-
${p === "PM" ? "bg-blue-600 text-white" : "bg-gray-100 text-gray-700 hover:bg-gray-200"}
|
|
9108
|
-
`,
|
|
9109
|
-
children: "PM"
|
|
9110
|
-
}
|
|
9111
|
-
)
|
|
9112
|
-
] })
|
|
8939
|
+
children: [
|
|
8940
|
+
m ? /* @__PURE__ */ u("span", { children: m }) : /* @__PURE__ */ u("span", { className: "text-gray-400", children: e.placeholder || "Select time" }),
|
|
8941
|
+
/* @__PURE__ */ O(
|
|
8942
|
+
"svg",
|
|
8943
|
+
{
|
|
8944
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8945
|
+
width: "16",
|
|
8946
|
+
height: "16",
|
|
8947
|
+
viewBox: "0 0 24 24",
|
|
8948
|
+
fill: "none",
|
|
8949
|
+
stroke: "currentColor",
|
|
8950
|
+
strokeWidth: "2",
|
|
8951
|
+
strokeLinecap: "round",
|
|
8952
|
+
strokeLinejoin: "round",
|
|
8953
|
+
className: "lucide lucide-clock opacity-70",
|
|
8954
|
+
children: [
|
|
8955
|
+
/* @__PURE__ */ u("circle", { cx: "12", cy: "12", r: "10" }),
|
|
8956
|
+
/* @__PURE__ */ u("polyline", { points: "12 6 12 12 16 14" })
|
|
8957
|
+
]
|
|
8958
|
+
}
|
|
8959
|
+
)
|
|
8960
|
+
]
|
|
8961
|
+
}
|
|
8962
|
+
) }),
|
|
8963
|
+
/* @__PURE__ */ u(
|
|
8964
|
+
Dn,
|
|
8965
|
+
{
|
|
8966
|
+
align: "start",
|
|
8967
|
+
sideOffset: 2,
|
|
8968
|
+
className: "z-50 rounded-md border border-gray-200 bg-white p-4 shadow-md w-64",
|
|
8969
|
+
children: /* @__PURE__ */ O("div", { className: "flex flex-col gap-4", children: [
|
|
8970
|
+
/* @__PURE__ */ O("div", { className: "flex items-center justify-center gap-2", children: [
|
|
8971
|
+
/* @__PURE__ */ O("div", { className: "flex flex-col items-center", children: [
|
|
8972
|
+
/* @__PURE__ */ u(
|
|
8973
|
+
"button",
|
|
8974
|
+
{
|
|
8975
|
+
type: "button",
|
|
8976
|
+
onClick: v,
|
|
8977
|
+
className: "p-1 hover:bg-gray-100 rounded",
|
|
8978
|
+
children: /* @__PURE__ */ u(
|
|
8979
|
+
"svg",
|
|
8980
|
+
{
|
|
8981
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8982
|
+
width: "16",
|
|
8983
|
+
height: "16",
|
|
8984
|
+
viewBox: "0 0 24 24",
|
|
8985
|
+
fill: "none",
|
|
8986
|
+
stroke: "currentColor",
|
|
8987
|
+
strokeWidth: "2",
|
|
8988
|
+
children: /* @__PURE__ */ u("polyline", { points: "18 15 12 9 6 15" })
|
|
8989
|
+
}
|
|
8990
|
+
)
|
|
8991
|
+
}
|
|
8992
|
+
),
|
|
8993
|
+
/* @__PURE__ */ u(
|
|
8994
|
+
"input",
|
|
8995
|
+
{
|
|
8996
|
+
type: "text",
|
|
8997
|
+
value: a,
|
|
8998
|
+
onChange: (y) => {
|
|
8999
|
+
const E = y.target.value.replace(/\D/g, "");
|
|
9000
|
+
(E === "" || parseInt(E) >= 1 && parseInt(E) <= 12) && l(E.padStart(2, "0"));
|
|
9001
|
+
},
|
|
9002
|
+
className: "w-14 text-center text-2xl font-semibold border-0 focus:outline-none focus:ring-2 focus:ring-blue-500 rounded py-2",
|
|
9003
|
+
maxLength: "2"
|
|
9004
|
+
}
|
|
9005
|
+
),
|
|
9006
|
+
/* @__PURE__ */ u(
|
|
9007
|
+
"button",
|
|
9008
|
+
{
|
|
9009
|
+
type: "button",
|
|
9010
|
+
onClick: x,
|
|
9011
|
+
className: "p-1 hover:bg-gray-100 rounded",
|
|
9012
|
+
children: /* @__PURE__ */ u(
|
|
9013
|
+
"svg",
|
|
9014
|
+
{
|
|
9015
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9016
|
+
width: "16",
|
|
9017
|
+
height: "16",
|
|
9018
|
+
viewBox: "0 0 24 24",
|
|
9019
|
+
fill: "none",
|
|
9020
|
+
stroke: "currentColor",
|
|
9021
|
+
strokeWidth: "2",
|
|
9022
|
+
children: /* @__PURE__ */ u("polyline", { points: "6 9 12 15 18 9" })
|
|
9023
|
+
}
|
|
9024
|
+
)
|
|
9025
|
+
}
|
|
9026
|
+
)
|
|
9113
9027
|
] }),
|
|
9114
|
-
/* @__PURE__ */
|
|
9028
|
+
/* @__PURE__ */ u("span", { className: "text-2xl font-semibold", children: ":" }),
|
|
9029
|
+
/* @__PURE__ */ O("div", { className: "flex flex-col items-center", children: [
|
|
9115
9030
|
/* @__PURE__ */ u(
|
|
9116
9031
|
"button",
|
|
9117
9032
|
{
|
|
9118
9033
|
type: "button",
|
|
9119
|
-
onClick:
|
|
9120
|
-
className: "
|
|
9121
|
-
children:
|
|
9034
|
+
onClick: S,
|
|
9035
|
+
className: "p-1 hover:bg-gray-100 rounded",
|
|
9036
|
+
children: /* @__PURE__ */ u(
|
|
9037
|
+
"svg",
|
|
9038
|
+
{
|
|
9039
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9040
|
+
width: "16",
|
|
9041
|
+
height: "16",
|
|
9042
|
+
viewBox: "0 0 24 24",
|
|
9043
|
+
fill: "none",
|
|
9044
|
+
stroke: "currentColor",
|
|
9045
|
+
strokeWidth: "2",
|
|
9046
|
+
children: /* @__PURE__ */ u("polyline", { points: "18 15 12 9 6 15" })
|
|
9047
|
+
}
|
|
9048
|
+
)
|
|
9049
|
+
}
|
|
9050
|
+
),
|
|
9051
|
+
/* @__PURE__ */ u(
|
|
9052
|
+
"input",
|
|
9053
|
+
{
|
|
9054
|
+
type: "text",
|
|
9055
|
+
value: c,
|
|
9056
|
+
onChange: (y) => {
|
|
9057
|
+
const E = y.target.value.replace(/\D/g, "");
|
|
9058
|
+
(E === "" || parseInt(E) >= 0 && parseInt(E) <= 59) && f(E.padStart(2, "0"));
|
|
9059
|
+
},
|
|
9060
|
+
className: "w-14 text-center text-2xl font-semibold border-0 focus:outline-none focus:ring-2 focus:ring-blue-500 rounded py-2",
|
|
9061
|
+
maxLength: "2"
|
|
9122
9062
|
}
|
|
9123
9063
|
),
|
|
9124
9064
|
/* @__PURE__ */ u(
|
|
9125
9065
|
"button",
|
|
9126
9066
|
{
|
|
9127
9067
|
type: "button",
|
|
9128
|
-
onClick:
|
|
9129
|
-
className: "
|
|
9130
|
-
children:
|
|
9068
|
+
onClick: C,
|
|
9069
|
+
className: "p-1 hover:bg-gray-100 rounded",
|
|
9070
|
+
children: /* @__PURE__ */ u(
|
|
9071
|
+
"svg",
|
|
9072
|
+
{
|
|
9073
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9074
|
+
width: "16",
|
|
9075
|
+
height: "16",
|
|
9076
|
+
viewBox: "0 0 24 24",
|
|
9077
|
+
fill: "none",
|
|
9078
|
+
stroke: "currentColor",
|
|
9079
|
+
strokeWidth: "2",
|
|
9080
|
+
children: /* @__PURE__ */ u("polyline", { points: "6 9 12 15 18 9" })
|
|
9081
|
+
}
|
|
9082
|
+
)
|
|
9083
|
+
}
|
|
9084
|
+
)
|
|
9085
|
+
] }),
|
|
9086
|
+
/* @__PURE__ */ O("div", { className: "flex flex-col gap-1 ml-2", children: [
|
|
9087
|
+
/* @__PURE__ */ u(
|
|
9088
|
+
"button",
|
|
9089
|
+
{
|
|
9090
|
+
type: "button",
|
|
9091
|
+
onClick: () => g("AM"),
|
|
9092
|
+
className: `
|
|
9093
|
+
px-3 py-1 text-sm font-medium rounded
|
|
9094
|
+
${p === "AM" ? "bg-blue-600 text-white" : "bg-gray-100 text-gray-700 hover:bg-gray-200"}
|
|
9095
|
+
`,
|
|
9096
|
+
children: "AM"
|
|
9097
|
+
}
|
|
9098
|
+
),
|
|
9099
|
+
/* @__PURE__ */ u(
|
|
9100
|
+
"button",
|
|
9101
|
+
{
|
|
9102
|
+
type: "button",
|
|
9103
|
+
onClick: () => g("PM"),
|
|
9104
|
+
className: `
|
|
9105
|
+
px-3 py-1 text-sm font-medium rounded
|
|
9106
|
+
${p === "PM" ? "bg-blue-600 text-white" : "bg-gray-100 text-gray-700 hover:bg-gray-200"}
|
|
9107
|
+
`,
|
|
9108
|
+
children: "PM"
|
|
9131
9109
|
}
|
|
9132
9110
|
)
|
|
9133
9111
|
] })
|
|
9112
|
+
] }),
|
|
9113
|
+
/* @__PURE__ */ O("div", { className: "flex items-center justify-between gap-2 border-t border-gray-200 pt-3", children: [
|
|
9114
|
+
/* @__PURE__ */ u(
|
|
9115
|
+
"button",
|
|
9116
|
+
{
|
|
9117
|
+
type: "button",
|
|
9118
|
+
onClick: h,
|
|
9119
|
+
className: "inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border border-gray-300 bg-white hover:bg-gray-100 hover:text-gray-900 h-9 px-4 py-2",
|
|
9120
|
+
children: "Clear"
|
|
9121
|
+
}
|
|
9122
|
+
),
|
|
9123
|
+
/* @__PURE__ */ u(
|
|
9124
|
+
"button",
|
|
9125
|
+
{
|
|
9126
|
+
type: "button",
|
|
9127
|
+
onClick: w,
|
|
9128
|
+
className: "inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 bg-blue-600 text-white hover:bg-blue-700 h-9 px-4 py-2",
|
|
9129
|
+
children: "Done"
|
|
9130
|
+
}
|
|
9131
|
+
)
|
|
9134
9132
|
] })
|
|
9135
|
-
}
|
|
9136
|
-
|
|
9137
|
-
|
|
9138
|
-
|
|
9139
|
-
] });
|
|
9133
|
+
] })
|
|
9134
|
+
}
|
|
9135
|
+
)
|
|
9136
|
+
] }) });
|
|
9140
9137
|
}
|
|
9141
9138
|
function sm({ message: e }) {
|
|
9142
9139
|
return /* @__PURE__ */ u("div", { className: "rounded-lg bg-red-50 border border-red-100 p-4 shadow-sm", children: /* @__PURE__ */ O("div", { className: "flex items-center gap-3", children: [
|
|
@@ -9207,7 +9204,7 @@ const ym = ({
|
|
|
9207
9204
|
const [c, f] = be({ ...i }), [p, g] = be({}), [m, w] = be({}), [h, v] = be({}), [x, S] = be({}), [C, y] = be({
|
|
9208
9205
|
isOpen: !1,
|
|
9209
9206
|
fieldName: null
|
|
9210
|
-
}), E = rs({}),
|
|
9207
|
+
}), E = rs({}), L = [
|
|
9211
9208
|
"hidden",
|
|
9212
9209
|
"html",
|
|
9213
9210
|
"linebreak",
|
|
@@ -9235,28 +9232,28 @@ const ym = ({
|
|
|
9235
9232
|
linebreak: Rp
|
|
9236
9233
|
}),
|
|
9237
9234
|
[]
|
|
9238
|
-
), A = async (
|
|
9235
|
+
), A = async (N, _ = null) => {
|
|
9239
9236
|
if (!e) {
|
|
9240
|
-
const V = `apiClient prop is required when using fields with optionsUrl. Field "${
|
|
9237
|
+
const V = `apiClient prop is required when using fields with optionsUrl. Field "${N.name}" requires optionsUrl but no apiClient was provided.`;
|
|
9241
9238
|
l && console.error(V), fn.error(V);
|
|
9242
9239
|
return;
|
|
9243
9240
|
}
|
|
9244
9241
|
try {
|
|
9245
|
-
const V = await e(`/${
|
|
9242
|
+
const V = await e(`/${N.optionsUrl}`);
|
|
9246
9243
|
let I = [];
|
|
9247
|
-
|
|
9248
|
-
{ value: "", label: `Select ${
|
|
9244
|
+
N.type === "select" ? I = [
|
|
9245
|
+
{ value: "", label: `Select ${N.label.toLowerCase()}` },
|
|
9249
9246
|
...V.data
|
|
9250
9247
|
] : I = [
|
|
9251
|
-
...V.data.map((
|
|
9252
|
-
value:
|
|
9253
|
-
label:
|
|
9248
|
+
...V.data.map(($) => ({
|
|
9249
|
+
value: $.value,
|
|
9250
|
+
label: $.label
|
|
9254
9251
|
}))
|
|
9255
|
-
], o.fields.forEach((
|
|
9256
|
-
|
|
9252
|
+
], o.fields.forEach(($) => {
|
|
9253
|
+
$.name === N.name && ($.options = I);
|
|
9257
9254
|
});
|
|
9258
9255
|
} catch (V) {
|
|
9259
|
-
l && console.error(`Failed to load options for ${
|
|
9256
|
+
l && console.error(`Failed to load options for ${N.name}:`, V);
|
|
9260
9257
|
} finally {
|
|
9261
9258
|
}
|
|
9262
9259
|
};
|
|
@@ -9274,76 +9271,77 @@ const ym = ({
|
|
|
9274
9271
|
}), f(_);
|
|
9275
9272
|
}
|
|
9276
9273
|
}, [o]);
|
|
9277
|
-
const G = (
|
|
9278
|
-
const I = typeof _ == "object" && _ !== null && !Array.isArray(_) && !(_ instanceof Date),
|
|
9279
|
-
if (
|
|
9280
|
-
return l && console.warn(`VALIDATION FAILED (REQUIRED): ${
|
|
9281
|
-
if (
|
|
9274
|
+
const G = (N, _, V) => {
|
|
9275
|
+
const I = typeof _ == "object" && _ !== null && !Array.isArray(_) && !(_ instanceof Date), $ = _ == null || typeof _ == "string" && _.trim() === "" || Array.isArray(_) && _.length === 0 || N.type === "checkbox" && _ === !1 || I && Object.keys(_).length === 0;
|
|
9276
|
+
if (N.required && $)
|
|
9277
|
+
return l && console.warn(`VALIDATION FAILED (REQUIRED): ${N.name} is empty.`), `${N.label} is required`;
|
|
9278
|
+
if ($ && !N.required)
|
|
9282
9279
|
return null;
|
|
9283
|
-
if (
|
|
9284
|
-
const
|
|
9285
|
-
if (
|
|
9280
|
+
if (N.validate) {
|
|
9281
|
+
const K = N.validate(_, V);
|
|
9282
|
+
if (K) return K;
|
|
9286
9283
|
}
|
|
9287
|
-
if (
|
|
9284
|
+
if (N.type === "email" && _ && !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(_))
|
|
9288
9285
|
return "Please enter a valid email address";
|
|
9289
|
-
if (
|
|
9290
|
-
if (
|
|
9291
|
-
return `${
|
|
9292
|
-
if (
|
|
9293
|
-
return `${
|
|
9286
|
+
if (N.type === "number") {
|
|
9287
|
+
if (N.min !== void 0 && _ < N.min)
|
|
9288
|
+
return `${N.label} must be at least ${N.min}`;
|
|
9289
|
+
if (N.max !== void 0 && _ > N.max)
|
|
9290
|
+
return `${N.label} must be no more than ${N.max}`;
|
|
9294
9291
|
}
|
|
9295
|
-
return
|
|
9296
|
-
}, X = (
|
|
9297
|
-
const V = o.fields.find((
|
|
9292
|
+
return N.type === "date" && _ && !fr(_).isValid() ? `${N.label} must be a valid date` : N.maxLength && _ && _.length > N.maxLength ? `${N.label} must not exceed ${N.maxLength} characters` : null;
|
|
9293
|
+
}, X = (N, _) => {
|
|
9294
|
+
const V = o.fields.find(($) => $.name === N);
|
|
9298
9295
|
if (!V) return;
|
|
9299
9296
|
const I = { ...c };
|
|
9300
|
-
V.type === "multiselect" ? I[
|
|
9301
|
-
(
|
|
9302
|
-
) : V.type === "dateRange" ? I[
|
|
9297
|
+
V.type === "multiselect" ? I[N] = Array.isArray(_) ? _ : Array.from(_.target.selectedOptions).map(
|
|
9298
|
+
($) => $.value
|
|
9299
|
+
) : V.type === "dateRange" ? I[N] = [
|
|
9303
9300
|
{
|
|
9304
9301
|
startDate: _[0].from,
|
|
9305
9302
|
endDate: _[0].to,
|
|
9306
9303
|
key: "selection"
|
|
9307
9304
|
}
|
|
9308
|
-
] : V.type === "dayTimePicker" ? I[
|
|
9309
|
-
if (
|
|
9310
|
-
const
|
|
9311
|
-
I[
|
|
9305
|
+
] : V.type === "dayTimePicker" ? I[N] = _ ? fr(_).format("YYYY-MM-DD HH:mm:ss") : "" : I[N] = _, V.type === "select" && o.fields.forEach(($) => {
|
|
9306
|
+
if ($.showIf && !$.showIf(I)) {
|
|
9307
|
+
const K = $.type === "multiselect" || $.type === "checkbox" && $.options && $.options.length > 0;
|
|
9308
|
+
I[$.name] = K ? [] : "";
|
|
9312
9309
|
}
|
|
9313
|
-
}), o.fields.forEach((
|
|
9314
|
-
if (typeof
|
|
9315
|
-
const
|
|
9316
|
-
I[
|
|
9310
|
+
}), o.fields.forEach(($) => {
|
|
9311
|
+
if (typeof $.disabled == "function" && $.disabled(I)) {
|
|
9312
|
+
const K = $.type === "multiselect" || $.type === "checkbox" && $.options && $.options.length > 0;
|
|
9313
|
+
I[$.name] = K ? [] : "";
|
|
9317
9314
|
}
|
|
9318
9315
|
}), f(I);
|
|
9319
|
-
|
|
9320
|
-
|
|
9321
|
-
|
|
9322
|
-
|
|
9323
|
-
const re = G(M, I[M.name], I);
|
|
9324
|
-
re && (K[M.name] = re);
|
|
9325
|
-
}
|
|
9326
|
-
}), g(K);
|
|
9327
|
-
}, j = (T) => {
|
|
9328
|
-
w({ ...m, [T]: !0 });
|
|
9329
|
-
}, q = (T) => {
|
|
9330
|
-
T.preventDefault();
|
|
9316
|
+
}, j = (N) => {
|
|
9317
|
+
w({ ...m, [N]: !0 });
|
|
9318
|
+
}, q = (N) => {
|
|
9319
|
+
N.preventDefault();
|
|
9331
9320
|
const _ = {};
|
|
9332
9321
|
o.fields.forEach((I) => {
|
|
9333
9322
|
_[I.name] = !0;
|
|
9334
9323
|
}), w(_);
|
|
9335
9324
|
const V = {};
|
|
9336
|
-
o.fields.forEach((I) => {
|
|
9337
|
-
if (I.name && (typeof I.disabled == "function" ? I.disabled(c) : I.disabled,
|
|
9338
|
-
const
|
|
9339
|
-
|
|
9325
|
+
if (o.fields.forEach((I) => {
|
|
9326
|
+
if (I.name && (typeof I.disabled == "function" ? I.disabled(c) : I.disabled, !I.showIf || I.showIf(c))) {
|
|
9327
|
+
const $ = G(I, c[I.name], c);
|
|
9328
|
+
$ && (V[I.name] = $);
|
|
9340
9329
|
}
|
|
9341
|
-
}), g(V), Object.keys(V).length === 0
|
|
9330
|
+
}), g(V), Object.keys(V).length === 0) {
|
|
9331
|
+
const I = {};
|
|
9332
|
+
o.fields.forEach(($) => {
|
|
9333
|
+
$.name && (I[$.name] = {
|
|
9334
|
+
value: c[$.name],
|
|
9335
|
+
fieldType: $.fieldType || "string"
|
|
9336
|
+
});
|
|
9337
|
+
}), l ? console.log("Form submitted with values:", I) : r(I);
|
|
9338
|
+
} else
|
|
9339
|
+
fn.error("Please correct the errors in the form");
|
|
9342
9340
|
};
|
|
9343
9341
|
fo(() => {
|
|
9344
9342
|
a(c);
|
|
9345
9343
|
}, [c, a]);
|
|
9346
|
-
const
|
|
9344
|
+
const T = {
|
|
9347
9345
|
green: "border-green-500 bg-green-50",
|
|
9348
9346
|
blue: "border-blue-500 bg-blue-50",
|
|
9349
9347
|
red: "border-red-500 bg-red-50",
|
|
@@ -9353,32 +9351,32 @@ const ym = ({
|
|
|
9353
9351
|
gray: "border-gray-500 bg-gray-50",
|
|
9354
9352
|
pink: "border-pink-500 bg-pink-50",
|
|
9355
9353
|
orange: "border-orange-500 bg-orange-50"
|
|
9356
|
-
},
|
|
9357
|
-
C.fieldName && S((
|
|
9358
|
-
...
|
|
9354
|
+
}, F = () => {
|
|
9355
|
+
C.fieldName && S((N) => ({
|
|
9356
|
+
...N,
|
|
9359
9357
|
[C.fieldName]: !0
|
|
9360
9358
|
})), y({ isOpen: !1, fieldName: null });
|
|
9361
|
-
},
|
|
9359
|
+
}, U = () => {
|
|
9362
9360
|
y({ isOpen: !1, fieldName: null });
|
|
9363
9361
|
};
|
|
9364
|
-
function
|
|
9362
|
+
function D(N, _, V) {
|
|
9365
9363
|
if (l && (V ? console.log(
|
|
9366
9364
|
`[fieldFormat RENDER] Rendering error for ${_.name}: ${V}`
|
|
9367
9365
|
) : p[_.name] && console.log(
|
|
9368
9366
|
`[fieldFormat RENDER] Error exists in state for ${_.name} but not passed in props!`
|
|
9369
|
-
)),
|
|
9370
|
-
return /* @__PURE__ */ u("div", { className: _.fieldClass || "col-span-full", children:
|
|
9371
|
-
const I = _.containerStyle,
|
|
9367
|
+
)), L.includes(_.type))
|
|
9368
|
+
return /* @__PURE__ */ u("div", { className: _.fieldClass || "col-span-full", children: N });
|
|
9369
|
+
const I = _.containerStyle, $ = _.color || "blue", K = I === "card" ? `rounded-lg border text-card-foreground shadow-sm p-4 ${_.containerClassName || T[$] || T.blue}` : "", le = x[_.name] === !0, M = _.disabled === !0 && _.override === !0, ee = () => {
|
|
9372
9370
|
const Q = _.name;
|
|
9373
|
-
!
|
|
9371
|
+
!le ? y({
|
|
9374
9372
|
isOpen: !0,
|
|
9375
9373
|
fieldName: Q
|
|
9376
|
-
}) : S((
|
|
9377
|
-
...
|
|
9374
|
+
}) : S((re) => ({
|
|
9375
|
+
...re,
|
|
9378
9376
|
[Q]: !1
|
|
9379
9377
|
// Lock it back (set override to false)
|
|
9380
9378
|
}));
|
|
9381
|
-
},
|
|
9379
|
+
}, se = /* @__PURE__ */ O(Ve, { children: [
|
|
9382
9380
|
_.label && /* @__PURE__ */ O(
|
|
9383
9381
|
"label",
|
|
9384
9382
|
{
|
|
@@ -9387,54 +9385,54 @@ const ym = ({
|
|
|
9387
9385
|
children: [
|
|
9388
9386
|
_.label,
|
|
9389
9387
|
_.required && /* @__PURE__ */ u("span", { className: "text-red-500 ml-1", children: "*" }),
|
|
9390
|
-
|
|
9388
|
+
M && /* @__PURE__ */ u(
|
|
9391
9389
|
"button",
|
|
9392
9390
|
{
|
|
9393
9391
|
type: "button",
|
|
9394
9392
|
onClick: ee,
|
|
9395
9393
|
className: `ml-2 p-[0.25rem] rounded-sm transition-all duration-150
|
|
9396
|
-
${
|
|
9397
|
-
title:
|
|
9398
|
-
children:
|
|
9394
|
+
${le ? " text-gray-600 bg-gray-100" : " text-gray-600 hover:bg-gray-300"}`,
|
|
9395
|
+
title: le ? "Field is Overridden (Enabled)" : "Field is Locked (Disabled)",
|
|
9396
|
+
children: le ? /* @__PURE__ */ u(Ed, { size: 14 }) : /* @__PURE__ */ u(Nd, { size: 14 })
|
|
9399
9397
|
}
|
|
9400
9398
|
)
|
|
9401
9399
|
]
|
|
9402
9400
|
}
|
|
9403
9401
|
),
|
|
9404
|
-
/* @__PURE__ */ u("div", { children:
|
|
9402
|
+
/* @__PURE__ */ u("div", { children: N }),
|
|
9405
9403
|
V && /* @__PURE__ */ u("p", { className: "text-sm text-red-500 mt-1", children: V })
|
|
9406
9404
|
] });
|
|
9407
|
-
return /* @__PURE__ */ u("div", { className: `mb-4 ${_.fieldClass || "col-span-8"}`, children: I === "card" ? /* @__PURE__ */ u("div", { className:
|
|
9405
|
+
return /* @__PURE__ */ u("div", { className: `mb-4 ${_.fieldClass || "col-span-8"}`, children: I === "card" ? /* @__PURE__ */ u("div", { className: K, children: se }) : se });
|
|
9408
9406
|
}
|
|
9409
|
-
const Y = (
|
|
9410
|
-
if (
|
|
9411
|
-
const _ = k[
|
|
9412
|
-
if (c[
|
|
9413
|
-
const
|
|
9414
|
-
c[
|
|
9407
|
+
const Y = (N) => {
|
|
9408
|
+
if (N.showIf && !N.showIf(c)) return null;
|
|
9409
|
+
const _ = k[N.type] || Br;
|
|
9410
|
+
if (c[N.name] === void 0) {
|
|
9411
|
+
const le = N.type === "multiselect" || N.type === "checkbox" && N.options && N.options.length > 0;
|
|
9412
|
+
c[N.name] = N.value !== void 0 ? N.value : le ? [] : "";
|
|
9415
9413
|
}
|
|
9416
|
-
const V = p[
|
|
9417
|
-
return
|
|
9414
|
+
const V = p[N.name] ? p[N.name] : null, I = typeof N.disabled == "function" ? N.disabled(c) : !!N.disabled, $ = x[N.name] === !0, K = I && !$;
|
|
9415
|
+
return D(
|
|
9418
9416
|
/* @__PURE__ */ u(
|
|
9419
9417
|
_,
|
|
9420
9418
|
{
|
|
9421
|
-
field:
|
|
9419
|
+
field: N,
|
|
9422
9420
|
formValues: c,
|
|
9423
9421
|
handleChange: X,
|
|
9424
|
-
handleBlur: () => j(
|
|
9422
|
+
handleBlur: () => j(N.name),
|
|
9425
9423
|
setCharCounts: v,
|
|
9426
|
-
charCount: h[
|
|
9424
|
+
charCount: h[N.name] || 0,
|
|
9427
9425
|
api_URL: t,
|
|
9428
9426
|
error: V,
|
|
9429
9427
|
fileInputRefs: E,
|
|
9430
|
-
disabled:
|
|
9428
|
+
disabled: K
|
|
9431
9429
|
}
|
|
9432
9430
|
),
|
|
9433
|
-
|
|
9431
|
+
N,
|
|
9434
9432
|
V
|
|
9435
9433
|
);
|
|
9436
9434
|
}, ne = o?.fields?.find(
|
|
9437
|
-
(
|
|
9435
|
+
(N) => N.name === C.fieldName
|
|
9438
9436
|
)?.label || C.fieldName;
|
|
9439
9437
|
return /* @__PURE__ */ O(
|
|
9440
9438
|
"form",
|
|
@@ -9442,7 +9440,7 @@ const ym = ({
|
|
|
9442
9440
|
onSubmit: q,
|
|
9443
9441
|
className: "grid grid-cols-12 gap-x-4 mx-auto w-full ",
|
|
9444
9442
|
children: [
|
|
9445
|
-
o ? o.fields.map((
|
|
9443
|
+
o ? o.fields.map((N) => /* @__PURE__ */ u("div", { className: "col-span-full", children: Y(N) }, N.name + N.type)) : /* @__PURE__ */ u("div", { children: "Loading..." }),
|
|
9446
9444
|
/* @__PURE__ */ u(
|
|
9447
9445
|
"div",
|
|
9448
9446
|
{
|
|
@@ -9451,75 +9449,83 @@ const ym = ({
|
|
|
9451
9449
|
}
|
|
9452
9450
|
),
|
|
9453
9451
|
C.isOpen && /* @__PURE__ */ O(Ve, { children: [
|
|
9454
|
-
/* @__PURE__ */ u("div", { className: "fixed inset-0 z-[99] bg-black opacity-40" }),
|
|
9455
9452
|
/* @__PURE__ */ u(
|
|
9456
|
-
"
|
|
9453
|
+
"div",
|
|
9457
9454
|
{
|
|
9458
|
-
|
|
9459
|
-
|
|
9460
|
-
|
|
9461
|
-
|
|
9462
|
-
|
|
9463
|
-
|
|
9464
|
-
|
|
9465
|
-
|
|
9466
|
-
|
|
9467
|
-
|
|
9468
|
-
|
|
9469
|
-
|
|
9470
|
-
|
|
9471
|
-
|
|
9472
|
-
|
|
9473
|
-
|
|
9474
|
-
|
|
9475
|
-
|
|
9476
|
-
|
|
9477
|
-
|
|
9478
|
-
|
|
9479
|
-
|
|
9455
|
+
className: "fixed inset-0 z-30 bg-black opacity-40",
|
|
9456
|
+
onClick: U,
|
|
9457
|
+
tabIndex: 0,
|
|
9458
|
+
role: "button",
|
|
9459
|
+
onKeyDown: (N) => {
|
|
9460
|
+
(N.key === "Enter" || N.key === " ") && U();
|
|
9461
|
+
}
|
|
9462
|
+
}
|
|
9463
|
+
),
|
|
9464
|
+
/* @__PURE__ */ u("div", { className: "fixed inset-0 z-50 flex items-center justify-center p-4", children: /* @__PURE__ */ O(
|
|
9465
|
+
"div",
|
|
9466
|
+
{
|
|
9467
|
+
className: "bg-white rounded-xl shadow-2xl w-full max-w-sm transform transition-all",
|
|
9468
|
+
onClick: (N) => N.stopPropagation(),
|
|
9469
|
+
tabIndex: -1,
|
|
9470
|
+
role: "dialog",
|
|
9471
|
+
"aria-modal": "true",
|
|
9472
|
+
onKeyDown: (N) => {
|
|
9473
|
+
N.key === "Escape" && U();
|
|
9474
|
+
},
|
|
9475
|
+
children: [
|
|
9476
|
+
/* @__PURE__ */ O("div", { className: "flex justify-between items-center border-b p-4", children: [
|
|
9477
|
+
/* @__PURE__ */ u("h3", { className: "text-xl font-bold text-gray-900", children: "Confirm Field Unlock" }),
|
|
9478
|
+
/* @__PURE__ */ u(
|
|
9479
|
+
"button",
|
|
9480
|
+
{
|
|
9481
|
+
type: "button",
|
|
9482
|
+
onClick: U,
|
|
9483
|
+
className: "text-gray-400 hover:text-gray-600 p-1 rounded-full hover:bg-gray-100 transition",
|
|
9484
|
+
"aria-label": "Close",
|
|
9485
|
+
children: /* @__PURE__ */ u(Td, { size: 20 })
|
|
9486
|
+
}
|
|
9487
|
+
)
|
|
9488
|
+
] }),
|
|
9489
|
+
/* @__PURE__ */ O("div", { className: "p-6 flex flex-col gap-2", children: [
|
|
9490
|
+
/* @__PURE__ */ O("p", { className: "text-gray-700 text-sm leading-relaxed ", children: [
|
|
9491
|
+
"Are you sure you want to",
|
|
9492
|
+
" ",
|
|
9493
|
+
/* @__PURE__ */ O("span", { className: "font-extrabold text-destructive", children: [
|
|
9494
|
+
"unlock",
|
|
9495
|
+
" "
|
|
9480
9496
|
] }),
|
|
9481
|
-
|
|
9482
|
-
|
|
9483
|
-
|
|
9484
|
-
|
|
9485
|
-
|
|
9486
|
-
|
|
9487
|
-
|
|
9488
|
-
|
|
9489
|
-
|
|
9490
|
-
|
|
9491
|
-
|
|
9492
|
-
|
|
9493
|
-
|
|
9494
|
-
|
|
9495
|
-
|
|
9496
|
-
|
|
9497
|
-
|
|
9498
|
-
|
|
9499
|
-
|
|
9500
|
-
|
|
9501
|
-
|
|
9502
|
-
|
|
9503
|
-
|
|
9504
|
-
|
|
9505
|
-
|
|
9506
|
-
|
|
9507
|
-
|
|
9508
|
-
|
|
9509
|
-
|
|
9510
|
-
|
|
9511
|
-
onClick: $,
|
|
9512
|
-
className: "px-4 py-2 text-sm font-medium text-white bg-destructive rounded-lg hover:bg-red-700 transition shadow-md",
|
|
9513
|
-
children: "Unlock Field"
|
|
9514
|
-
}
|
|
9515
|
-
)
|
|
9516
|
-
] })
|
|
9517
|
-
] })
|
|
9518
|
-
]
|
|
9519
|
-
}
|
|
9520
|
-
)
|
|
9497
|
+
"the field"
|
|
9498
|
+
] }),
|
|
9499
|
+
/* @__PURE__ */ O("p", { className: "font-bold", children: [
|
|
9500
|
+
'"',
|
|
9501
|
+
ne,
|
|
9502
|
+
'"'
|
|
9503
|
+
] }),
|
|
9504
|
+
/* @__PURE__ */ u("div", { className: "italic text-sm text-gray-500 mb-2", children: "This action allows editing of a protected value." }),
|
|
9505
|
+
/* @__PURE__ */ O("div", { className: "flex justify-end gap-3 ", children: [
|
|
9506
|
+
/* @__PURE__ */ u(
|
|
9507
|
+
"button",
|
|
9508
|
+
{
|
|
9509
|
+
type: "button",
|
|
9510
|
+
onClick: U,
|
|
9511
|
+
className: "px-4 py-2 text-sm font-medium text-gray-700 bg-gray-200 rounded-lg hover:bg-gray-300 transition",
|
|
9512
|
+
children: "Cancel"
|
|
9513
|
+
}
|
|
9514
|
+
),
|
|
9515
|
+
/* @__PURE__ */ u(
|
|
9516
|
+
"button",
|
|
9517
|
+
{
|
|
9518
|
+
type: "button",
|
|
9519
|
+
onClick: F,
|
|
9520
|
+
className: "px-4 py-2 text-sm font-medium text-white bg-destructive rounded-lg hover:bg-red-700 transition shadow-md",
|
|
9521
|
+
children: "Unlock Field"
|
|
9522
|
+
}
|
|
9523
|
+
)
|
|
9524
|
+
] })
|
|
9525
|
+
] })
|
|
9526
|
+
]
|
|
9521
9527
|
}
|
|
9522
|
-
)
|
|
9528
|
+
) })
|
|
9523
9529
|
] })
|
|
9524
9530
|
]
|
|
9525
9531
|
}
|