ynotsoft-dynamic-form 1.0.51 → 1.0.52
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 +987 -960
- package/dist/dynamic-form.umd.cjs +15 -15
- package/package.json +1 -1
package/dist/dynamic-form.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as u, jsxs as O, Fragment as
|
|
1
|
+
import { jsx as u, jsxs as O, Fragment as Le } from "react/jsx-runtime";
|
|
2
2
|
import * as d from "react";
|
|
3
3
|
import Ke, { useLayoutEffect as Na, useState as be, forwardRef as os, createElement as uo, useRef as rs, useEffect as fo, useMemo as Ra } from "react";
|
|
4
4
|
import { toast as fn } from "react-hot-toast";
|
|
@@ -209,8 +209,8 @@ function ss(e) {
|
|
|
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 = ae(v, y),
|
|
213
|
-
return Ke.useEffect(() => (
|
|
212
|
+
const { scope: x, children: S, ...C } = h, y = Ke.useRef(null), E = ae(v, y), $ = s(f, x);
|
|
213
|
+
return Ke.useEffect(() => ($.itemMap.set(y, { ref: y, ...C }), () => void $.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
|
+
($, k) => C.indexOf($.ref.current) - C.indexOf(k.ref.current)
|
|
225
225
|
);
|
|
226
226
|
}, [v.collectionRef, v.itemMap]);
|
|
227
227
|
}
|
|
@@ -294,11 +294,11 @@ var Ha = "DismissableLayer", po = "dismissableLayer.update", Va = "dismissableLa
|
|
|
294
294
|
onDismiss: a,
|
|
295
295
|
...l
|
|
296
296
|
} = e, c = d.useContext(as), [f, p] = d.useState(null), g = f?.ownerDocument ?? globalThis?.document, [, m] = d.useState({}), w = ae(t, (k) => p(k)), h = Array.from(c.layers), [v] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), x = h.indexOf(v), S = f ? h.indexOf(f) : -1, C = c.layersWithOutsidePointerEventsDisabled.size > 0, y = S >= x, E = Ka((k) => {
|
|
297
|
-
const
|
|
297
|
+
const N = k.target, G = [...c.branches].some((K) => K.contains(N));
|
|
298
298
|
!y || G || (r?.(k), i?.(k), k.defaultPrevented || a?.());
|
|
299
|
-
}, g),
|
|
300
|
-
const
|
|
301
|
-
[...c.branches].some((
|
|
299
|
+
}, g), $ = Xa((k) => {
|
|
300
|
+
const N = k.target;
|
|
301
|
+
[...c.branches].some((K) => K.contains(N)) || (s?.(k), i?.(k), k.defaultPrevented || a?.());
|
|
302
302
|
}, g);
|
|
303
303
|
return Wa((k) => {
|
|
304
304
|
S === c.layers.size - 1 && (o?.(k), !k.defaultPrevented && a && (k.preventDefault(), a()));
|
|
@@ -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, $.onFocusCapture),
|
|
325
|
+
onBlurCapture: te(e.onBlurCapture, $.onBlurCapture),
|
|
326
326
|
onPointerDownCapture: te(
|
|
327
327
|
e.onPointerDownCapture,
|
|
328
328
|
E.onPointerDownCapture
|
|
@@ -850,15 +850,15 @@ 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
|
|
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], $ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(c));
|
|
854
|
+
let k = $ ? $[C] : 0;
|
|
855
|
+
(!k || !await (i.isElement == null ? void 0 : i.isElement($))) && (k = a.floating[C] || s.floating[w]);
|
|
856
|
+
const N = y / 2 - E / 2, G = k / 2 - h[w] / 2 - 1, K = Ze(p[x], G), j = Ze(p[S], G), X = K, T = k - h[w] - j, F = k / 2 - h[w] / 2 + N, H = mo(X, F, T), D = !l.arrow && Et(r) != null && F !== H && s.reference[w] / 2 - (F < X ? K : j) - h[w] / 2 < 0, Y = D ? F < X ? F - X : F - T : 0;
|
|
857
857
|
return {
|
|
858
858
|
[m]: g[m] + Y,
|
|
859
859
|
data: {
|
|
860
|
-
[m]:
|
|
861
|
-
centerOffset: F -
|
|
860
|
+
[m]: H,
|
|
861
|
+
centerOffset: F - H - Y,
|
|
862
862
|
...D && {
|
|
863
863
|
alignmentOffset: Y
|
|
864
864
|
}
|
|
@@ -890,46 +890,46 @@ 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 &&
|
|
895
|
-
const k = [a, ...E],
|
|
896
|
-
let
|
|
897
|
-
if (f && G.push(
|
|
893
|
+
const x = Ge(r), S = Me(a), C = Ge(a) === a, y = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), E = g || (C || !h ? [mn(a)] : fl(a)), $ = w !== "none";
|
|
894
|
+
!g && $ && E.push(...gl(a, h, w, y));
|
|
895
|
+
const k = [a, ...E], N = await $t(t, v), G = [];
|
|
896
|
+
let K = ((o = s.flip) == null ? void 0 : o.overflows) || [];
|
|
897
|
+
if (f && G.push(N[x]), p) {
|
|
898
898
|
const F = dl(r, i, y);
|
|
899
|
-
G.push(
|
|
899
|
+
G.push(N[F[0]], N[F[1]]);
|
|
900
900
|
}
|
|
901
|
-
if (
|
|
901
|
+
if (K = [...K, {
|
|
902
902
|
placement: r,
|
|
903
903
|
overflows: G
|
|
904
904
|
}], !G.every((F) => F <= 0)) {
|
|
905
|
-
var j,
|
|
906
|
-
const F = (((j = s.flip) == null ? void 0 : j.index) || 0) + 1,
|
|
907
|
-
if (
|
|
905
|
+
var j, X;
|
|
906
|
+
const F = (((j = s.flip) == null ? void 0 : j.index) || 0) + 1, H = k[F];
|
|
907
|
+
if (H && (!(p === "alignment" ? S !== Me(H) : !1) || // We leave the current main axis only if every placement on that axis
|
|
908
908
|
// overflows the main axis.
|
|
909
|
-
|
|
909
|
+
K.every((R) => Me(R.placement) === S ? R.overflows[0] > 0 : !0)))
|
|
910
910
|
return {
|
|
911
911
|
data: {
|
|
912
912
|
index: F,
|
|
913
|
-
overflows:
|
|
913
|
+
overflows: K
|
|
914
914
|
},
|
|
915
915
|
reset: {
|
|
916
|
-
placement:
|
|
916
|
+
placement: H
|
|
917
917
|
}
|
|
918
918
|
};
|
|
919
|
-
let D = (
|
|
919
|
+
let D = (X = K.filter((Y) => Y.overflows[0] <= 0).sort((Y, R) => Y.overflows[1] - R.overflows[1])[0]) == null ? void 0 : X.placement;
|
|
920
920
|
if (!D)
|
|
921
921
|
switch (m) {
|
|
922
922
|
case "bestFit": {
|
|
923
923
|
var T;
|
|
924
|
-
const Y = (T =
|
|
925
|
-
if (
|
|
924
|
+
const Y = (T = K.filter((R) => {
|
|
925
|
+
if ($) {
|
|
926
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((R) => [R.placement, R.overflows.filter((ne) => ne > 0).reduce((ne,
|
|
932
|
+
}).map((R) => [R.placement, R.overflows.filter((ne) => ne > 0).reduce((ne, le) => ne + le, 0)]).sort((R, ne) => R[1] - ne[1])[0]) == null ? void 0 : T[0];
|
|
933
933
|
Y && (D = Y);
|
|
934
934
|
break;
|
|
935
935
|
}
|
|
@@ -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), $ = 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 > $ && (w = $);
|
|
1144
1144
|
}
|
|
1145
1145
|
return {
|
|
1146
1146
|
[g]: m,
|
|
@@ -1169,15 +1169,15 @@ 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),
|
|
1173
|
-
let k = y,
|
|
1174
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (
|
|
1175
|
-
const
|
|
1176
|
-
m ?
|
|
1172
|
+
const S = h - f.top - f.bottom, C = w - f.left - f.right, y = Ze(h - f[v], S), E = Ze(w - f[x], C), $ = !t.middlewareData.shift;
|
|
1173
|
+
let k = y, N = E;
|
|
1174
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (N = C), (o = t.middlewareData.shift) != null && o.enabled.y && (k = S), $ && !g) {
|
|
1175
|
+
const K = Se(f.left, 0), j = Se(f.right, 0), X = Se(f.top, 0), T = Se(f.bottom, 0);
|
|
1176
|
+
m ? N = w - 2 * (K !== 0 || j !== 0 ? K + j : Se(f.left, f.right)) : k = h - 2 * (X !== 0 || T !== 0 ? X + T : Se(f.top, f.bottom));
|
|
1177
1177
|
}
|
|
1178
1178
|
await l({
|
|
1179
1179
|
...t,
|
|
1180
|
-
availableWidth:
|
|
1180
|
+
availableWidth: N,
|
|
1181
1181
|
availableHeight: k
|
|
1182
1182
|
});
|
|
1183
1183
|
const G = await i.getDimensions(a.floating);
|
|
@@ -1199,7 +1199,7 @@ function Ce(e) {
|
|
|
1199
1199
|
var t;
|
|
1200
1200
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
1201
1201
|
}
|
|
1202
|
-
function
|
|
1202
|
+
function $e(e) {
|
|
1203
1203
|
var t;
|
|
1204
1204
|
return (t = (ps(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
1205
1205
|
}
|
|
@@ -1209,7 +1209,7 @@ function ps(e) {
|
|
|
1209
1209
|
function Pe(e) {
|
|
1210
1210
|
return xn() ? e instanceof Element || e instanceof Ce(e).Element : !1;
|
|
1211
1211
|
}
|
|
1212
|
-
function
|
|
1212
|
+
function Fe(e) {
|
|
1213
1213
|
return xn() ? e instanceof HTMLElement || e instanceof Ce(e).HTMLElement : !1;
|
|
1214
1214
|
}
|
|
1215
1215
|
function Rr(e) {
|
|
@@ -1246,7 +1246,7 @@ function Lo(e) {
|
|
|
1246
1246
|
}
|
|
1247
1247
|
function Ml(e) {
|
|
1248
1248
|
let t = Qe(e);
|
|
1249
|
-
for (;
|
|
1249
|
+
for (; Fe(t) && !St(t); ) {
|
|
1250
1250
|
if (Lo(t))
|
|
1251
1251
|
return t;
|
|
1252
1252
|
if (Sn(t))
|
|
@@ -1282,13 +1282,13 @@ function Qe(e) {
|
|
|
1282
1282
|
e.assignedSlot || // DOM Element detected.
|
|
1283
1283
|
e.parentNode || // ShadowRoot detected.
|
|
1284
1284
|
Rr(e) && e.host || // Fallback.
|
|
1285
|
-
|
|
1285
|
+
$e(e)
|
|
1286
1286
|
);
|
|
1287
1287
|
return Rr(t) ? t.host : t;
|
|
1288
1288
|
}
|
|
1289
1289
|
function ms(e) {
|
|
1290
1290
|
const t = Qe(e);
|
|
1291
|
-
return St(t) ? e.ownerDocument ? e.ownerDocument.body : e.body :
|
|
1291
|
+
return St(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Fe(t) && Wt(t) ? t : ms(t);
|
|
1292
1292
|
}
|
|
1293
1293
|
function zt(e, t, n) {
|
|
1294
1294
|
var o;
|
|
@@ -1306,7 +1306,7 @@ function go(e) {
|
|
|
1306
1306
|
function hs(e) {
|
|
1307
1307
|
const t = _e(e);
|
|
1308
1308
|
let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
|
|
1309
|
-
const r =
|
|
1309
|
+
const r = Fe(e), s = r ? e.offsetWidth : n, i = r ? e.offsetHeight : o, a = pn(n) !== s || pn(o) !== i;
|
|
1310
1310
|
return a && (n = s, o = i), {
|
|
1311
1311
|
width: n,
|
|
1312
1312
|
height: o,
|
|
@@ -1318,7 +1318,7 @@ function $o(e) {
|
|
|
1318
1318
|
}
|
|
1319
1319
|
function wt(e) {
|
|
1320
1320
|
const t = $o(e);
|
|
1321
|
-
if (!
|
|
1321
|
+
if (!Fe(t))
|
|
1322
1322
|
return De(1);
|
|
1323
1323
|
const n = t.getBoundingClientRect(), {
|
|
1324
1324
|
width: o,
|
|
@@ -1366,7 +1366,7 @@ function it(e, t, n, o) {
|
|
|
1366
1366
|
}
|
|
1367
1367
|
function En(e, t) {
|
|
1368
1368
|
const n = Cn(e).scrollLeft;
|
|
1369
|
-
return t ? t.left + n : it(
|
|
1369
|
+
return t ? t.left + n : it($e(e)).left + n;
|
|
1370
1370
|
}
|
|
1371
1371
|
function bs(e, t) {
|
|
1372
1372
|
const n = e.getBoundingClientRect(), o = n.left + t.scrollLeft - En(e, n), r = n.top + t.scrollTop;
|
|
@@ -1382,15 +1382,15 @@ function $l(e) {
|
|
|
1382
1382
|
offsetParent: o,
|
|
1383
1383
|
strategy: r
|
|
1384
1384
|
} = e;
|
|
1385
|
-
const s = r === "fixed", i =
|
|
1385
|
+
const s = r === "fixed", i = $e(o), a = t ? Sn(t.floating) : !1;
|
|
1386
1386
|
if (o === i || a && s)
|
|
1387
1387
|
return n;
|
|
1388
1388
|
let l = {
|
|
1389
1389
|
scrollLeft: 0,
|
|
1390
1390
|
scrollTop: 0
|
|
1391
1391
|
}, c = De(1);
|
|
1392
|
-
const f = De(0), p =
|
|
1393
|
-
if ((p || !p && !s) && ((At(o) !== "body" || Wt(i)) && (l = Cn(o)),
|
|
1392
|
+
const f = De(0), p = Fe(o);
|
|
1393
|
+
if ((p || !p && !s) && ((At(o) !== "body" || Wt(i)) && (l = Cn(o)), Fe(o))) {
|
|
1394
1394
|
const m = it(o);
|
|
1395
1395
|
c = wt(o), f.x = m.x + o.clientLeft, f.y = m.y + o.clientTop;
|
|
1396
1396
|
}
|
|
@@ -1406,7 +1406,7 @@ function zl(e) {
|
|
|
1406
1406
|
return Array.from(e.getClientRects());
|
|
1407
1407
|
}
|
|
1408
1408
|
function Bl(e) {
|
|
1409
|
-
const t =
|
|
1409
|
+
const t = $e(e), n = Cn(e), o = e.ownerDocument.body, r = Se(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), s = Se(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
|
|
1410
1410
|
let i = -n.scrollLeft + En(e);
|
|
1411
1411
|
const a = -n.scrollTop;
|
|
1412
1412
|
return _e(o).direction === "rtl" && (i += Se(t.clientWidth, o.clientWidth) - r), {
|
|
@@ -1418,7 +1418,7 @@ function Bl(e) {
|
|
|
1418
1418
|
}
|
|
1419
1419
|
const Tr = 25;
|
|
1420
1420
|
function Ul(e, t) {
|
|
1421
|
-
const n = Ce(e), o =
|
|
1421
|
+
const n = Ce(e), o = $e(e), r = n.visualViewport;
|
|
1422
1422
|
let s = o.clientWidth, i = o.clientHeight, a = 0, l = 0;
|
|
1423
1423
|
if (r) {
|
|
1424
1424
|
s = r.width, i = r.height;
|
|
@@ -1439,7 +1439,7 @@ function Ul(e, t) {
|
|
|
1439
1439
|
}
|
|
1440
1440
|
const Wl = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
1441
1441
|
function Hl(e, t) {
|
|
1442
|
-
const n = it(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, s =
|
|
1442
|
+
const n = it(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, s = Fe(e) ? wt(e) : De(1), i = e.clientWidth * s.x, a = e.clientHeight * s.y, l = r * s.x, c = o * s.y;
|
|
1443
1443
|
return {
|
|
1444
1444
|
width: i,
|
|
1445
1445
|
height: a,
|
|
@@ -1452,7 +1452,7 @@ function kr(e, t, n) {
|
|
|
1452
1452
|
if (t === "viewport")
|
|
1453
1453
|
o = Ul(e, n);
|
|
1454
1454
|
else if (t === "document")
|
|
1455
|
-
o = Bl(
|
|
1455
|
+
o = Bl($e(e));
|
|
1456
1456
|
else if (Pe(t))
|
|
1457
1457
|
o = Hl(t, n);
|
|
1458
1458
|
else {
|
|
@@ -1512,7 +1512,7 @@ function Gl(e) {
|
|
|
1512
1512
|
};
|
|
1513
1513
|
}
|
|
1514
1514
|
function Yl(e, t, n) {
|
|
1515
|
-
const o =
|
|
1515
|
+
const o = Fe(t), r = $e(t), s = n === "fixed", i = it(e, !0, s, t);
|
|
1516
1516
|
let a = {
|
|
1517
1517
|
scrollLeft: 0,
|
|
1518
1518
|
scrollTop: 0
|
|
@@ -1539,18 +1539,18 @@ function Kn(e) {
|
|
|
1539
1539
|
return _e(e).position === "static";
|
|
1540
1540
|
}
|
|
1541
1541
|
function Pr(e, t) {
|
|
1542
|
-
if (!
|
|
1542
|
+
if (!Fe(e) || _e(e).position === "fixed")
|
|
1543
1543
|
return null;
|
|
1544
1544
|
if (t)
|
|
1545
1545
|
return t(e);
|
|
1546
1546
|
let n = e.offsetParent;
|
|
1547
|
-
return
|
|
1547
|
+
return $e(e) === n && (n = n.ownerDocument.body), n;
|
|
1548
1548
|
}
|
|
1549
1549
|
function ys(e, t) {
|
|
1550
1550
|
const n = Ce(e);
|
|
1551
1551
|
if (Sn(e))
|
|
1552
1552
|
return n;
|
|
1553
|
-
if (!
|
|
1553
|
+
if (!Fe(e)) {
|
|
1554
1554
|
let r = Qe(e);
|
|
1555
1555
|
for (; r && !St(r); ) {
|
|
1556
1556
|
if (Pe(r) && !Kn(r))
|
|
@@ -1581,7 +1581,7 @@ function Xl(e) {
|
|
|
1581
1581
|
}
|
|
1582
1582
|
const ql = {
|
|
1583
1583
|
convertOffsetParentRelativeRectToViewportRelativeRect: $l,
|
|
1584
|
-
getDocumentElement:
|
|
1584
|
+
getDocumentElement: $e,
|
|
1585
1585
|
getClippingRect: jl,
|
|
1586
1586
|
getOffsetParent: ys,
|
|
1587
1587
|
getElementRects: Kl,
|
|
@@ -1596,7 +1596,7 @@ function ws(e, t) {
|
|
|
1596
1596
|
}
|
|
1597
1597
|
function Zl(e, t) {
|
|
1598
1598
|
let n = null, o;
|
|
1599
|
-
const r =
|
|
1599
|
+
const r = $e(e);
|
|
1600
1600
|
function s() {
|
|
1601
1601
|
var a;
|
|
1602
1602
|
clearTimeout(o), (a = n) == null || a.disconnect(), n = null;
|
|
@@ -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($) {
|
|
1620
|
+
const k = $[0].intersectionRatio;
|
|
1621
1621
|
if (k !== l) {
|
|
1622
1622
|
if (!y)
|
|
1623
1623
|
return i();
|
|
@@ -1758,33 +1758,33 @@ function lc(e) {
|
|
|
1758
1758
|
}), [g, m] = d.useState(o);
|
|
1759
1759
|
gn(g, o) || m(o);
|
|
1760
1760
|
const [w, h] = d.useState(null), [v, x] = d.useState(null), S = d.useCallback((R) => {
|
|
1761
|
-
R !==
|
|
1761
|
+
R !== $.current && ($.current = R, h(R));
|
|
1762
1762
|
}, []), C = d.useCallback((R) => {
|
|
1763
1763
|
R !== k.current && (k.current = R, x(R));
|
|
1764
|
-
}, []), y = s || w, E = i || v,
|
|
1765
|
-
if (
|
|
1764
|
+
}, []), y = s || w, E = i || v, $ = d.useRef(null), k = d.useRef(null), N = d.useRef(f), G = l != null, K = Xn(l), j = Xn(r), X = Xn(c), T = d.useCallback(() => {
|
|
1765
|
+
if (!$.current || !k.current)
|
|
1766
1766
|
return;
|
|
1767
1767
|
const R = {
|
|
1768
1768
|
placement: t,
|
|
1769
1769
|
strategy: n,
|
|
1770
1770
|
middleware: g
|
|
1771
1771
|
};
|
|
1772
|
-
j.current && (R.platform = j.current), sc(
|
|
1773
|
-
const
|
|
1772
|
+
j.current && (R.platform = j.current), sc($.current, k.current, R).then((ne) => {
|
|
1773
|
+
const le = {
|
|
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
|
|
1777
1777
|
// `isPositioned` will be `false` initially on the next open, avoid
|
|
1778
1778
|
// setting it to `true` when `open === false` (must be specified).
|
|
1779
|
-
isPositioned:
|
|
1779
|
+
isPositioned: X.current !== !1
|
|
1780
1780
|
};
|
|
1781
|
-
F.current && !gn(
|
|
1782
|
-
p(
|
|
1781
|
+
F.current && !gn(N.current, le) && (N.current = le, wn.flushSync(() => {
|
|
1782
|
+
p(le);
|
|
1783
1783
|
}));
|
|
1784
1784
|
});
|
|
1785
|
-
}, [g, t, n, j,
|
|
1785
|
+
}, [g, t, n, j, X]);
|
|
1786
1786
|
ln(() => {
|
|
1787
|
-
c === !1 &&
|
|
1787
|
+
c === !1 && N.current.isPositioned && (N.current.isPositioned = !1, p((R) => ({
|
|
1788
1788
|
...R,
|
|
1789
1789
|
isPositioned: !1
|
|
1790
1790
|
})));
|
|
@@ -1793,14 +1793,14 @@ function lc(e) {
|
|
|
1793
1793
|
ln(() => (F.current = !0, () => {
|
|
1794
1794
|
F.current = !1;
|
|
1795
1795
|
}), []), ln(() => {
|
|
1796
|
-
if (y && (
|
|
1797
|
-
if (
|
|
1798
|
-
return
|
|
1796
|
+
if (y && ($.current = y), E && (k.current = E), y && E) {
|
|
1797
|
+
if (K.current)
|
|
1798
|
+
return K.current(y, E, T);
|
|
1799
1799
|
T();
|
|
1800
1800
|
}
|
|
1801
|
-
}, [y, E, T,
|
|
1802
|
-
const
|
|
1803
|
-
reference:
|
|
1801
|
+
}, [y, E, T, K, G]);
|
|
1802
|
+
const H = d.useMemo(() => ({
|
|
1803
|
+
reference: $,
|
|
1804
1804
|
floating: k,
|
|
1805
1805
|
setReference: S,
|
|
1806
1806
|
setFloating: C
|
|
@@ -1815,26 +1815,26 @@ function lc(e) {
|
|
|
1815
1815
|
};
|
|
1816
1816
|
if (!D.floating)
|
|
1817
1817
|
return R;
|
|
1818
|
-
const ne = Or(D.floating, f.x),
|
|
1818
|
+
const ne = Or(D.floating, f.x), le = Or(D.floating, f.y);
|
|
1819
1819
|
return a ? {
|
|
1820
1820
|
...R,
|
|
1821
|
-
transform: "translate(" + ne + "px, " +
|
|
1821
|
+
transform: "translate(" + ne + "px, " + le + "px)",
|
|
1822
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: le
|
|
1829
1829
|
};
|
|
1830
1830
|
}, [n, a, D.floating, f.x, f.y]);
|
|
1831
1831
|
return d.useMemo(() => ({
|
|
1832
1832
|
...f,
|
|
1833
1833
|
update: T,
|
|
1834
|
-
refs:
|
|
1834
|
+
refs: H,
|
|
1835
1835
|
elements: D,
|
|
1836
1836
|
floatingStyles: Y
|
|
1837
|
-
}), [f, T,
|
|
1837
|
+
}), [f, T, H, D, Y]);
|
|
1838
1838
|
}
|
|
1839
1839
|
const cc = (e) => {
|
|
1840
1840
|
function t(n) {
|
|
@@ -1998,23 +1998,23 @@ 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 = ae(t, (
|
|
2002
|
-
padding:
|
|
2001
|
+
} = e, v = Ns(Bo, n), [x, S] = d.useState(null), C = ae(t, (I) => S(I)), [y, E] = d.useState(null), $ = Es(y), k = $?.width ?? 0, N = $?.height ?? 0, G = o + (s !== "center" ? "-" + s : ""), K = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, j = Array.isArray(c) ? c : [c], X = j.length > 0, T = {
|
|
2002
|
+
padding: K,
|
|
2003
2003
|
boundary: j.filter(Nc),
|
|
2004
2004
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
2005
|
-
altBoundary:
|
|
2006
|
-
}, { refs: F, floatingStyles:
|
|
2005
|
+
altBoundary: X
|
|
2006
|
+
}, { refs: F, floatingStyles: H, 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: (...I) => Ql(...I, {
|
|
2011
2011
|
animationFrame: m === "always"
|
|
2012
2012
|
}),
|
|
2013
2013
|
elements: {
|
|
2014
2014
|
reference: v.anchor
|
|
2015
2015
|
},
|
|
2016
2016
|
middleware: [
|
|
2017
|
-
uc({ mainAxis: r +
|
|
2017
|
+
uc({ mainAxis: r + N, alignmentAxis: i }),
|
|
2018
2018
|
l && dc({
|
|
2019
2019
|
mainAxis: !0,
|
|
2020
2020
|
crossAxis: !1,
|
|
@@ -2024,33 +2024,33 @@ var Bo = "PopperContent", [Cc, Ec] = As(Bo), Ps = d.forwardRef(
|
|
|
2024
2024
|
l && pc({ ...T }),
|
|
2025
2025
|
mc({
|
|
2026
2026
|
...T,
|
|
2027
|
-
apply: ({ elements:
|
|
2028
|
-
const { width:
|
|
2029
|
-
|
|
2027
|
+
apply: ({ elements: I, rects: J, availableWidth: se, availableHeight: Z }) => {
|
|
2028
|
+
const { width: ee, height: oe } = J.reference, ce = I.floating.style;
|
|
2029
|
+
ce.setProperty("--radix-popper-available-width", `${se}px`), ce.setProperty("--radix-popper-available-height", `${Z}px`), ce.setProperty("--radix-popper-anchor-width", `${ee}px`), ce.setProperty("--radix-popper-anchor-height", `${oe}px`);
|
|
2030
2030
|
}
|
|
2031
2031
|
}),
|
|
2032
2032
|
y && gc({ element: y, padding: a }),
|
|
2033
|
-
Rc({ arrowWidth: k, arrowHeight:
|
|
2033
|
+
Rc({ arrowWidth: k, arrowHeight: N }),
|
|
2034
2034
|
g && hc({ strategy: "referenceHidden", ...T })
|
|
2035
2035
|
]
|
|
2036
|
-
}), [ne,
|
|
2036
|
+
}), [ne, le] = Is(D), A = qe(w);
|
|
2037
2037
|
he(() => {
|
|
2038
|
-
Y &&
|
|
2039
|
-
}, [Y,
|
|
2040
|
-
const
|
|
2038
|
+
Y && A?.();
|
|
2039
|
+
}, [Y, A]);
|
|
2040
|
+
const L = R.arrow?.x, _ = R.arrow?.y, z = R.arrow?.centerOffset !== 0, [M, re] = d.useState();
|
|
2041
2041
|
return he(() => {
|
|
2042
|
-
x &&
|
|
2042
|
+
x && re(window.getComputedStyle(x).zIndex);
|
|
2043
2043
|
}, [x]), /* @__PURE__ */ u(
|
|
2044
2044
|
"div",
|
|
2045
2045
|
{
|
|
2046
2046
|
ref: F.setFloating,
|
|
2047
2047
|
"data-radix-popper-content-wrapper": "",
|
|
2048
2048
|
style: {
|
|
2049
|
-
...
|
|
2050
|
-
transform: Y ?
|
|
2049
|
+
...H,
|
|
2050
|
+
transform: Y ? H.transform : "translate(0, -200%)",
|
|
2051
2051
|
// keep off the page when measuring
|
|
2052
2052
|
minWidth: "max-content",
|
|
2053
|
-
zIndex:
|
|
2053
|
+
zIndex: M,
|
|
2054
2054
|
"--radix-popper-transform-origin": [
|
|
2055
2055
|
R.transformOrigin?.x,
|
|
2056
2056
|
R.transformOrigin?.y
|
|
@@ -2070,14 +2070,14 @@ var Bo = "PopperContent", [Cc, Ec] = As(Bo), Ps = d.forwardRef(
|
|
|
2070
2070
|
scope: n,
|
|
2071
2071
|
placedSide: ne,
|
|
2072
2072
|
onArrowChange: E,
|
|
2073
|
-
arrowX:
|
|
2074
|
-
arrowY:
|
|
2075
|
-
shouldHideArrow:
|
|
2073
|
+
arrowX: L,
|
|
2074
|
+
arrowY: _,
|
|
2075
|
+
shouldHideArrow: z,
|
|
2076
2076
|
children: /* @__PURE__ */ u(
|
|
2077
2077
|
Cs.div,
|
|
2078
2078
|
{
|
|
2079
2079
|
"data-side": ne,
|
|
2080
|
-
"data-align":
|
|
2080
|
+
"data-align": le,
|
|
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, $ = 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: $ })) : d.createElement(S, Ie({}, k, { className: l, ref: $ }), 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, $ = h.target, k = Math.abs(C) > Math.abs(y) ? "h" : "v";
|
|
2767
|
+
if ("touches" in h && k === "h" && $.type === "range")
|
|
2768
2768
|
return !1;
|
|
2769
|
-
var
|
|
2770
|
-
if (!
|
|
2769
|
+
var N = Dr(k, $);
|
|
2770
|
+
if (!N)
|
|
2771
2771
|
return !0;
|
|
2772
|
-
if (
|
|
2772
|
+
if (N ? E = k : (E = k === "v" ? "h" : "v", N = Dr(k, $)), !N)
|
|
2773
2773
|
return !1;
|
|
2774
2774
|
if (!o.current && "changedTouches" in h && (C || y) && (o.current = E), !E)
|
|
2775
2775
|
return !0;
|
|
@@ -2854,17 +2854,17 @@ 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), $ = Po(c), [k, N] = Bt({
|
|
2858
2858
|
prop: o,
|
|
2859
2859
|
defaultProp: r ?? !1,
|
|
2860
2860
|
onChange: s,
|
|
2861
2861
|
caller: at
|
|
2862
|
-
}), [G,
|
|
2862
|
+
}), [G, K] = Bt({
|
|
2863
2863
|
prop: i,
|
|
2864
2864
|
defaultProp: a,
|
|
2865
2865
|
onChange: l,
|
|
2866
2866
|
caller: at
|
|
2867
|
-
}), j = d.useRef(null),
|
|
2867
|
+
}), j = d.useRef(null), X = v ? w || !!v.closest("form") : !0, [T, F] = d.useState(/* @__PURE__ */ new Set()), H = Array.from(T).map((D) => D.props.value).join(";");
|
|
2868
2868
|
return /* @__PURE__ */ u(Ms, { ...h, children: /* @__PURE__ */ O(
|
|
2869
2869
|
Ru,
|
|
2870
2870
|
{
|
|
@@ -2878,10 +2878,10 @@ var Eu = [" ", "Enter", "ArrowUp", "ArrowDown"], Au = [" ", "Enter"], at = "Sele
|
|
|
2878
2878
|
onValueNodeHasChildrenChange: E,
|
|
2879
2879
|
contentId: Ut(),
|
|
2880
2880
|
value: G,
|
|
2881
|
-
onValueChange:
|
|
2881
|
+
onValueChange: K,
|
|
2882
2882
|
open: k,
|
|
2883
|
-
onOpenChange:
|
|
2884
|
-
dir:
|
|
2883
|
+
onOpenChange: N,
|
|
2884
|
+
dir: $,
|
|
2885
2885
|
triggerPointerDownPosRef: j,
|
|
2886
2886
|
disabled: g,
|
|
2887
2887
|
children: [
|
|
@@ -2901,7 +2901,7 @@ var Eu = [" ", "Enter", "ArrowUp", "ArrowDown"], Au = [" ", "Enter"], at = "Sele
|
|
|
2901
2901
|
children: n
|
|
2902
2902
|
}
|
|
2903
2903
|
) }),
|
|
2904
|
-
|
|
2904
|
+
X ? /* @__PURE__ */ O(
|
|
2905
2905
|
vi,
|
|
2906
2906
|
{
|
|
2907
2907
|
"aria-hidden": !0,
|
|
@@ -2910,7 +2910,7 @@ var Eu = [" ", "Enter", "ArrowUp", "ArrowDown"], Au = [" ", "Enter"], at = "Sele
|
|
|
2910
2910
|
name: f,
|
|
2911
2911
|
autoComplete: p,
|
|
2912
2912
|
value: G,
|
|
2913
|
-
onChange: (D) =>
|
|
2913
|
+
onChange: (D) => K(D.target.value),
|
|
2914
2914
|
disabled: g,
|
|
2915
2915
|
form: w,
|
|
2916
2916
|
children: [
|
|
@@ -2918,7 +2918,7 @@ var Eu = [" ", "Enter", "ArrowUp", "ArrowDown"], Au = [" ", "Enter"], at = "Sele
|
|
|
2918
2918
|
Array.from(T)
|
|
2919
2919
|
]
|
|
2920
2920
|
},
|
|
2921
|
-
|
|
2921
|
+
H
|
|
2922
2922
|
) : null
|
|
2923
2923
|
]
|
|
2924
2924
|
}
|
|
@@ -2980,7 +2980,7 @@ var Zs = "SelectValue", Qs = d.forwardRef(
|
|
|
2980
2980
|
...a,
|
|
2981
2981
|
ref: p,
|
|
2982
2982
|
style: { pointerEvents: "none" },
|
|
2983
|
-
children: yi(l.value) ? /* @__PURE__ */ u(
|
|
2983
|
+
children: yi(l.value) ? /* @__PURE__ */ u(Le, { children: i }) : s
|
|
2984
2984
|
}
|
|
2985
2985
|
);
|
|
2986
2986
|
}
|
|
@@ -3033,22 +3033,22 @@ 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, $] = d.useState(null), k = ae(t, (I) => y(I)), [N, G] = d.useState(null), [K, j] = d.useState(
|
|
3037
3037
|
null
|
|
3038
|
-
),
|
|
3038
|
+
), X = Tn(n), [T, F] = d.useState(!1), H = d.useRef(!1);
|
|
3039
3039
|
d.useEffect(() => {
|
|
3040
3040
|
if (C) return Bs(C);
|
|
3041
3041
|
}, [C]), cs();
|
|
3042
3042
|
const D = d.useCallback(
|
|
3043
|
-
(
|
|
3044
|
-
const [
|
|
3045
|
-
for (const
|
|
3046
|
-
if (
|
|
3043
|
+
(I) => {
|
|
3044
|
+
const [J, ...se] = X().map((oe) => oe.ref.current), [Z] = se.slice(-1), ee = document.activeElement;
|
|
3045
|
+
for (const oe of I)
|
|
3046
|
+
if (oe === ee || (oe?.scrollIntoView({ block: "nearest" }), oe === J && E && (E.scrollTop = 0), oe === Z && E && (E.scrollTop = E.scrollHeight), oe?.focus(), document.activeElement !== ee)) return;
|
|
3047
3047
|
},
|
|
3048
|
-
[
|
|
3048
|
+
[X, E]
|
|
3049
3049
|
), Y = d.useCallback(
|
|
3050
|
-
() => D([
|
|
3051
|
-
[D,
|
|
3050
|
+
() => D([N, C]),
|
|
3051
|
+
[D, N, C]
|
|
3052
3052
|
);
|
|
3053
3053
|
d.useEffect(() => {
|
|
3054
3054
|
T && Y();
|
|
@@ -3056,41 +3056,41 @@ var Te = 10, [ni, et] = Nt(lt), Ou = "SelectContentImpl", Iu = /* @__PURE__ */ x
|
|
|
3056
3056
|
const { onOpenChange: R, triggerPointerDownPosRef: ne } = S;
|
|
3057
3057
|
d.useEffect(() => {
|
|
3058
3058
|
if (C) {
|
|
3059
|
-
let
|
|
3060
|
-
const
|
|
3061
|
-
|
|
3062
|
-
x: Math.abs(Math.round(
|
|
3063
|
-
y: Math.abs(Math.round(
|
|
3059
|
+
let I = { x: 0, y: 0 };
|
|
3060
|
+
const J = (Z) => {
|
|
3061
|
+
I = {
|
|
3062
|
+
x: Math.abs(Math.round(Z.pageX) - (ne.current?.x ?? 0)),
|
|
3063
|
+
y: Math.abs(Math.round(Z.pageY) - (ne.current?.y ?? 0))
|
|
3064
3064
|
};
|
|
3065
|
-
}, se = (
|
|
3066
|
-
|
|
3065
|
+
}, se = (Z) => {
|
|
3066
|
+
I.x <= 10 && I.y <= 10 ? Z.preventDefault() : C.contains(Z.target) || R(!1), document.removeEventListener("pointermove", J), ne.current = null;
|
|
3067
3067
|
};
|
|
3068
|
-
return ne.current !== null && (document.addEventListener("pointermove",
|
|
3069
|
-
document.removeEventListener("pointermove",
|
|
3068
|
+
return ne.current !== null && (document.addEventListener("pointermove", J), document.addEventListener("pointerup", se, { capture: !0, once: !0 })), () => {
|
|
3069
|
+
document.removeEventListener("pointermove", J), document.removeEventListener("pointerup", se, { capture: !0 });
|
|
3070
3070
|
};
|
|
3071
3071
|
}
|
|
3072
3072
|
}, [C, R, ne]), d.useEffect(() => {
|
|
3073
|
-
const
|
|
3074
|
-
return window.addEventListener("blur",
|
|
3075
|
-
window.removeEventListener("blur",
|
|
3073
|
+
const I = () => R(!1);
|
|
3074
|
+
return window.addEventListener("blur", I), window.addEventListener("resize", I), () => {
|
|
3075
|
+
window.removeEventListener("blur", I), window.removeEventListener("resize", I);
|
|
3076
3076
|
};
|
|
3077
3077
|
}, [R]);
|
|
3078
|
-
const [
|
|
3079
|
-
const
|
|
3080
|
-
|
|
3081
|
-
}),
|
|
3082
|
-
(
|
|
3083
|
-
const
|
|
3084
|
-
(S.value !== void 0 && S.value ===
|
|
3078
|
+
const [le, A] = wi((I) => {
|
|
3079
|
+
const J = X().filter((ee) => !ee.disabled), se = J.find((ee) => ee.ref.current === document.activeElement), Z = xi(J, I, se);
|
|
3080
|
+
Z && setTimeout(() => Z.ref.current.focus());
|
|
3081
|
+
}), L = d.useCallback(
|
|
3082
|
+
(I, J, se) => {
|
|
3083
|
+
const Z = !H.current && !se;
|
|
3084
|
+
(S.value !== void 0 && S.value === J || Z) && (G(I), Z && (H.current = !0));
|
|
3085
3085
|
},
|
|
3086
3086
|
[S.value]
|
|
3087
|
-
),
|
|
3088
|
-
(
|
|
3089
|
-
const
|
|
3090
|
-
(S.value !== void 0 && S.value ===
|
|
3087
|
+
), _ = d.useCallback(() => C?.focus(), [C]), z = d.useCallback(
|
|
3088
|
+
(I, J, se) => {
|
|
3089
|
+
const Z = !H.current && !se;
|
|
3090
|
+
(S.value !== void 0 && S.value === J || Z) && j(I);
|
|
3091
3091
|
},
|
|
3092
3092
|
[S.value]
|
|
3093
|
-
),
|
|
3093
|
+
), M = o === "popper" ? vo : ri, re = M === 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:
|
|
3112
|
-
itemRefCallback:
|
|
3113
|
-
selectedItem:
|
|
3114
|
-
onItemLeave:
|
|
3115
|
-
itemTextRefCallback:
|
|
3111
|
+
onViewportChange: $,
|
|
3112
|
+
itemRefCallback: L,
|
|
3113
|
+
selectedItem: N,
|
|
3114
|
+
onItemLeave: _,
|
|
3115
|
+
itemTextRefCallback: z,
|
|
3116
3116
|
focusSelectedItem: Y,
|
|
3117
|
-
selectedItemText:
|
|
3117
|
+
selectedItemText: K,
|
|
3118
3118
|
position: o,
|
|
3119
3119
|
isPositioned: T,
|
|
3120
|
-
searchRef:
|
|
3120
|
+
searchRef: le,
|
|
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: (I) => {
|
|
3127
|
+
I.preventDefault();
|
|
3128
3128
|
},
|
|
3129
|
-
onUnmountAutoFocus: te(r, (
|
|
3130
|
-
S.trigger?.focus({ preventScroll: !0 }),
|
|
3129
|
+
onUnmountAutoFocus: te(r, (I) => {
|
|
3130
|
+
S.trigger?.focus({ preventScroll: !0 }), I.preventDefault();
|
|
3131
3131
|
}),
|
|
3132
3132
|
children: /* @__PURE__ */ u(
|
|
3133
3133
|
_o,
|
|
@@ -3136,18 +3136,18 @@ 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: (I) => I.preventDefault(),
|
|
3140
3140
|
onDismiss: () => S.onOpenChange(!1),
|
|
3141
3141
|
children: /* @__PURE__ */ u(
|
|
3142
|
-
|
|
3142
|
+
M,
|
|
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: (I) => I.preventDefault(),
|
|
3149
3149
|
...x,
|
|
3150
|
-
...
|
|
3150
|
+
...re,
|
|
3151
3151
|
onPlaced: () => F(!0),
|
|
3152
3152
|
ref: k,
|
|
3153
3153
|
style: {
|
|
@@ -3158,15 +3158,15 @@ var Te = 10, [ni, et] = Nt(lt), Ou = "SelectContentImpl", Iu = /* @__PURE__ */ x
|
|
|
3158
3158
|
outline: "none",
|
|
3159
3159
|
...x.style
|
|
3160
3160
|
},
|
|
3161
|
-
onKeyDown: te(x.onKeyDown, (
|
|
3162
|
-
const
|
|
3163
|
-
if (
|
|
3164
|
-
let
|
|
3165
|
-
if (["ArrowUp", "End"].includes(
|
|
3166
|
-
const
|
|
3167
|
-
|
|
3161
|
+
onKeyDown: te(x.onKeyDown, (I) => {
|
|
3162
|
+
const J = I.ctrlKey || I.altKey || I.metaKey;
|
|
3163
|
+
if (I.key === "Tab" && I.preventDefault(), !J && I.key.length === 1 && A(I.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(I.key)) {
|
|
3164
|
+
let Z = X().filter((ee) => !ee.disabled).map((ee) => ee.ref.current);
|
|
3165
|
+
if (["ArrowUp", "End"].includes(I.key) && (Z = Z.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(I.key)) {
|
|
3166
|
+
const ee = I.target, oe = Z.indexOf(ee);
|
|
3167
|
+
Z = Z.slice(oe + 1);
|
|
3168
3168
|
}
|
|
3169
|
-
setTimeout(() => D(
|
|
3169
|
+
setTimeout(() => D(Z)), I.preventDefault();
|
|
3170
3170
|
}
|
|
3171
3171
|
})
|
|
3172
3172
|
}
|
|
@@ -3183,9 +3183,9 @@ oi.displayName = Ou;
|
|
|
3183
3183
|
var Mu = "SelectItemAlignedPosition", ri = d.forwardRef((e, t) => {
|
|
3184
3184
|
const { __scopeSelect: n, onPlaced: o, ...r } = e, s = Je(lt, n), i = et(lt, n), [a, l] = d.useState(null), [c, f] = d.useState(null), p = ae(t, (k) => f(k)), g = Tn(n), m = d.useRef(!1), w = d.useRef(!0), { viewport: h, selectedItem: v, selectedItemText: x, focusSelectedItem: S } = i, C = d.useCallback(() => {
|
|
3185
3185
|
if (s.trigger && s.valueNode && a && c && h && v && x) {
|
|
3186
|
-
const k = s.trigger.getBoundingClientRect(),
|
|
3186
|
+
const k = s.trigger.getBoundingClientRect(), N = c.getBoundingClientRect(), G = s.valueNode.getBoundingClientRect(), K = x.getBoundingClientRect();
|
|
3187
3187
|
if (s.dir !== "rtl") {
|
|
3188
|
-
const
|
|
3188
|
+
const ee = K.left - N.left, oe = G.left - ee, ce = k.left - oe, Ae = k.width + ce, Re = Math.max(Ae, N.width), nt = window.innerWidth - Te, ot = pr(oe, [
|
|
3189
3189
|
Te,
|
|
3190
3190
|
// Prevents the content from going off the starting edge of the
|
|
3191
3191
|
// viewport. It may still go off the ending edge, but this can be
|
|
@@ -3196,33 +3196,33 @@ var Mu = "SelectItemAlignedPosition", ri = d.forwardRef((e, t) => {
|
|
|
3196
3196
|
]);
|
|
3197
3197
|
a.style.minWidth = Ae + "px", a.style.left = ot + "px";
|
|
3198
3198
|
} else {
|
|
3199
|
-
const
|
|
3199
|
+
const ee = N.right - K.right, oe = window.innerWidth - G.right - ee, ce = window.innerWidth - k.right - oe, Ae = k.width + ce, Re = Math.max(Ae, N.width), nt = window.innerWidth - Te, ot = pr(oe, [
|
|
3200
3200
|
Te,
|
|
3201
3201
|
Math.max(Te, nt - Re)
|
|
3202
3202
|
]);
|
|
3203
3203
|
a.style.minWidth = Ae + "px", a.style.right = ot + "px";
|
|
3204
3204
|
}
|
|
3205
|
-
const j = g(),
|
|
3206
|
-
if (
|
|
3207
|
-
const
|
|
3205
|
+
const j = g(), X = window.innerHeight - Te * 2, T = h.scrollHeight, F = window.getComputedStyle(c), H = parseInt(F.borderTopWidth, 10), D = parseInt(F.paddingTop, 10), Y = parseInt(F.borderBottomWidth, 10), R = parseInt(F.paddingBottom, 10), ne = H + D + T + R + Y, le = Math.min(v.offsetHeight * 5, ne), A = window.getComputedStyle(h), L = parseInt(A.paddingTop, 10), _ = parseInt(A.paddingBottom, 10), z = k.top + k.height / 2 - Te, M = X - z, re = v.offsetHeight / 2, I = v.offsetTop + re, J = H + D + I, se = ne - J;
|
|
3206
|
+
if (J <= z) {
|
|
3207
|
+
const ee = j.length > 0 && v === j[j.length - 1].ref.current;
|
|
3208
3208
|
a.style.bottom = "0px";
|
|
3209
|
-
const
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
(
|
|
3213
|
-
), Ae =
|
|
3209
|
+
const oe = c.clientHeight - h.offsetTop - h.offsetHeight, ce = Math.max(
|
|
3210
|
+
M,
|
|
3211
|
+
re + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
|
3212
|
+
(ee ? _ : 0) + oe + Y
|
|
3213
|
+
), Ae = J + ce;
|
|
3214
3214
|
a.style.height = Ae + "px";
|
|
3215
3215
|
} else {
|
|
3216
|
-
const
|
|
3216
|
+
const ee = j.length > 0 && v === j[0].ref.current;
|
|
3217
3217
|
a.style.top = "0px";
|
|
3218
|
-
const
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
(
|
|
3218
|
+
const ce = Math.max(
|
|
3219
|
+
z,
|
|
3220
|
+
H + h.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
3221
|
+
(ee ? L : 0) + re
|
|
3222
3222
|
) + se;
|
|
3223
|
-
a.style.height =
|
|
3223
|
+
a.style.height = ce + "px", h.scrollTop = J - z + h.offsetTop;
|
|
3224
3224
|
}
|
|
3225
|
-
a.style.margin = `${Te}px 0`, a.style.minHeight =
|
|
3225
|
+
a.style.margin = `${Te}px 0`, a.style.minHeight = le + "px", a.style.maxHeight = X + "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 $ = 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: $,
|
|
3257
3257
|
children: /* @__PURE__ */ u(
|
|
3258
3258
|
"div",
|
|
3259
3259
|
{
|
|
@@ -3317,7 +3317,7 @@ vo.displayName = Du;
|
|
|
3317
3317
|
var [Lu, Vo] = Nt(lt, {}), yo = "SelectViewport", si = d.forwardRef(
|
|
3318
3318
|
(e, t) => {
|
|
3319
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
|
-
return /* @__PURE__ */ O(
|
|
3320
|
+
return /* @__PURE__ */ O(Le, { children: [
|
|
3321
3321
|
/* @__PURE__ */ u(
|
|
3322
3322
|
"style",
|
|
3323
3323
|
{
|
|
@@ -3470,7 +3470,7 @@ var Ft = "SelectItemText", fi = d.forwardRef(
|
|
|
3470
3470
|
() => /* @__PURE__ */ u("option", { value: l.value, disabled: l.disabled, children: m }, l.value),
|
|
3471
3471
|
[l.disabled, l.value, m]
|
|
3472
3472
|
), { onNativeOptionAdd: h, onNativeOptionRemove: v } = c;
|
|
3473
|
-
return he(() => (h(w), () => v(w)), [h, v, w]), /* @__PURE__ */ O(
|
|
3473
|
+
return he(() => (h(w), () => v(w)), [h, v, w]), /* @__PURE__ */ O(Le, { children: [
|
|
3474
3474
|
/* @__PURE__ */ u(Ee.span, { id: l.textId, ...s, ref: g }),
|
|
3475
3475
|
l.isSelected && i.valueNode && !i.valueNodeHasChildren ? wn.createPortal(s.children, i.valueNode) : null
|
|
3476
3476
|
] });
|
|
@@ -3677,7 +3677,7 @@ const ld = os(
|
|
|
3677
3677
|
]
|
|
3678
3678
|
)
|
|
3679
3679
|
);
|
|
3680
|
-
const
|
|
3680
|
+
const ze = (e, t) => {
|
|
3681
3681
|
const n = os(
|
|
3682
3682
|
({ className: o, ...r }, s) => uo(ld, {
|
|
3683
3683
|
ref: s,
|
|
@@ -3692,47 +3692,47 @@ const $e = (e, t) => {
|
|
|
3692
3692
|
);
|
|
3693
3693
|
return n.displayName = zr(e), n;
|
|
3694
3694
|
};
|
|
3695
|
-
const cd = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], ud =
|
|
3695
|
+
const cd = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], ud = ze("chevron-down", cd);
|
|
3696
3696
|
const dd = [
|
|
3697
3697
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
3698
3698
|
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
3699
3699
|
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
3700
|
-
], fd =
|
|
3700
|
+
], fd = ze("circle-alert", dd);
|
|
3701
3701
|
const pd = [
|
|
3702
3702
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
3703
3703
|
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
3704
|
-
], md =
|
|
3704
|
+
], md = ze("circle-check", pd);
|
|
3705
3705
|
const hd = [
|
|
3706
3706
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
3707
3707
|
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
3708
3708
|
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
3709
|
-
], gd =
|
|
3710
|
-
const bd = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]], vd =
|
|
3709
|
+
], gd = ze("circle-x", hd);
|
|
3710
|
+
const bd = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]], vd = ze("circle", bd);
|
|
3711
3711
|
const yd = [
|
|
3712
3712
|
["path", { d: "M12 13v8", key: "1l5pq0" }],
|
|
3713
3713
|
["path", { d: "M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242", key: "1pljnt" }],
|
|
3714
3714
|
["path", { d: "m8 17 4-4 4 4", key: "1quai1" }]
|
|
3715
|
-
], wd =
|
|
3715
|
+
], wd = ze("cloud-upload", yd);
|
|
3716
3716
|
const xd = [
|
|
3717
3717
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
3718
3718
|
["path", { d: "M12 16v-4", key: "1dtifu" }],
|
|
3719
3719
|
["path", { d: "M12 8h.01", key: "e9boi3" }]
|
|
3720
|
-
], Sd =
|
|
3720
|
+
], Sd = ze("info", xd);
|
|
3721
3721
|
const Cd = [
|
|
3722
3722
|
["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
|
|
3723
3723
|
["path", { d: "M7 11V7a5 5 0 0 1 9.9-1", key: "1mm8w8" }]
|
|
3724
|
-
], Ed =
|
|
3724
|
+
], Ed = ze("lock-open", Cd);
|
|
3725
3725
|
const Ad = [
|
|
3726
3726
|
["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
|
|
3727
3727
|
["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }]
|
|
3728
|
-
], Nd =
|
|
3728
|
+
], Nd = ze("lock", Ad);
|
|
3729
3729
|
const Rd = [
|
|
3730
3730
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
3731
3731
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
3732
|
-
], Td =
|
|
3732
|
+
], Td = ze("x", Rd);
|
|
3733
3733
|
function kd({ field: e, formValues: t, handleChange: n, handleBlur: o, error: r }) {
|
|
3734
3734
|
const s = t[e.name] || "", i = typeof e.disabled == "function" ? e.disabled(t) : e.disabled, a = e.options || [];
|
|
3735
|
-
return /* @__PURE__ */ O(
|
|
3735
|
+
return /* @__PURE__ */ O(Le, { children: [
|
|
3736
3736
|
/* @__PURE__ */ O(
|
|
3737
3737
|
ju,
|
|
3738
3738
|
{
|
|
@@ -3803,7 +3803,7 @@ function Pd({
|
|
|
3803
3803
|
disabled: s
|
|
3804
3804
|
}) {
|
|
3805
3805
|
const i = s;
|
|
3806
|
-
return /* @__PURE__ */ u(
|
|
3806
|
+
return /* @__PURE__ */ u(Le, { children: /* @__PURE__ */ u(
|
|
3807
3807
|
"input",
|
|
3808
3808
|
{
|
|
3809
3809
|
...e.props,
|
|
@@ -3828,33 +3828,58 @@ function Br({
|
|
|
3828
3828
|
disabled: s
|
|
3829
3829
|
}) {
|
|
3830
3830
|
const i = s;
|
|
3831
|
-
return /* @__PURE__ */
|
|
3832
|
-
"
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3831
|
+
return /* @__PURE__ */ u(Le, { children: /* @__PURE__ */ u(
|
|
3832
|
+
"input",
|
|
3833
|
+
{
|
|
3834
|
+
...e.props,
|
|
3835
|
+
id: e.name,
|
|
3836
|
+
type: e.type || "",
|
|
3837
|
+
value: t[e.name] || "",
|
|
3838
|
+
onChange: (a) => n(e.name, a.target.value),
|
|
3839
|
+
onBlur: () => o(e.name),
|
|
3840
|
+
disabled: i,
|
|
3841
|
+
name: e.name,
|
|
3842
|
+
placeholder: e.placeholder || "",
|
|
3843
|
+
min: e.minLength,
|
|
3844
|
+
max: e.maxLength,
|
|
3845
|
+
className: `flex h-10 w-full rounded-md border px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 ${r ? "border-red-500 focus-visible:ring-red-500" : "border-input focus-visible:ring-blue-500"} ${i ? "bg-gray-50 text-gray-500" : "bg-background"}`
|
|
3846
|
+
}
|
|
3847
|
+
) });
|
|
3848
|
+
}
|
|
3849
|
+
function _d({
|
|
3850
|
+
field: e,
|
|
3851
|
+
formValues: t,
|
|
3852
|
+
handleChange: n,
|
|
3853
|
+
handleBlur: o,
|
|
3854
|
+
error: r,
|
|
3855
|
+
disabled: s
|
|
3856
|
+
}) {
|
|
3857
|
+
const i = s;
|
|
3858
|
+
return /* @__PURE__ */ u(Le, { children: /* @__PURE__ */ u(
|
|
3859
|
+
"input",
|
|
3860
|
+
{
|
|
3861
|
+
...e.props,
|
|
3862
|
+
id: e.name,
|
|
3863
|
+
type: "number",
|
|
3864
|
+
value: t[e.name] || "",
|
|
3865
|
+
onChange: (a) => n(e.name, a.target.value),
|
|
3866
|
+
onBlur: () => o(e.name),
|
|
3867
|
+
disabled: i,
|
|
3868
|
+
name: e.name,
|
|
3869
|
+
placeholder: e.placeholder || "",
|
|
3870
|
+
min: e.min,
|
|
3871
|
+
max: e.max,
|
|
3872
|
+
step: e.step,
|
|
3873
|
+
className: `flex h-10 w-full rounded-md border px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 ${r ? "border-red-500 focus-visible:ring-red-500" : "border-input focus-visible:ring-blue-500"} ${i ? "bg-gray-50 text-gray-500" : "bg-background"}`
|
|
3874
|
+
}
|
|
3875
|
+
) });
|
|
3851
3876
|
}
|
|
3852
3877
|
const {
|
|
3853
3878
|
entries: Ci,
|
|
3854
3879
|
setPrototypeOf: Ur,
|
|
3855
|
-
isFrozen:
|
|
3856
|
-
getPrototypeOf:
|
|
3857
|
-
getOwnPropertyDescriptor:
|
|
3880
|
+
isFrozen: Od,
|
|
3881
|
+
getPrototypeOf: Id,
|
|
3882
|
+
getOwnPropertyDescriptor: Md
|
|
3858
3883
|
} = Object;
|
|
3859
3884
|
let {
|
|
3860
3885
|
freeze: ve,
|
|
@@ -3880,7 +3905,7 @@ Ao || (Ao = function(t) {
|
|
|
3880
3905
|
o[r - 1] = arguments[r];
|
|
3881
3906
|
return new t(...o);
|
|
3882
3907
|
});
|
|
3883
|
-
const nn = ye(Array.prototype.forEach),
|
|
3908
|
+
const nn = ye(Array.prototype.forEach), Dd = ye(Array.prototype.lastIndexOf), Wr = ye(Array.prototype.pop), _t = ye(Array.prototype.push), Ld = ye(Array.prototype.splice), dn = ye(String.prototype.toLowerCase), eo = ye(String.prototype.toString), to = ye(String.prototype.match), Ot = ye(String.prototype.replace), Fd = ye(String.prototype.indexOf), $d = ye(String.prototype.trim), ke = ye(Object.prototype.hasOwnProperty), ge = ye(RegExp.prototype.test), It = zd(TypeError);
|
|
3884
3909
|
function ye(e) {
|
|
3885
3910
|
return function(t) {
|
|
3886
3911
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
@@ -3889,14 +3914,14 @@ function ye(e) {
|
|
|
3889
3914
|
return Eo(e, t, o);
|
|
3890
3915
|
};
|
|
3891
3916
|
}
|
|
3892
|
-
function
|
|
3917
|
+
function zd(e) {
|
|
3893
3918
|
return function() {
|
|
3894
3919
|
for (var t = arguments.length, n = new Array(t), o = 0; o < t; o++)
|
|
3895
3920
|
n[o] = arguments[o];
|
|
3896
3921
|
return Ao(e, n);
|
|
3897
3922
|
};
|
|
3898
3923
|
}
|
|
3899
|
-
function
|
|
3924
|
+
function Q(e, t) {
|
|
3900
3925
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : dn;
|
|
3901
3926
|
Ur && Ur(e, null);
|
|
3902
3927
|
let o = t.length;
|
|
@@ -3904,58 +3929,58 @@ function J(e, t) {
|
|
|
3904
3929
|
let r = t[o];
|
|
3905
3930
|
if (typeof r == "string") {
|
|
3906
3931
|
const s = n(r);
|
|
3907
|
-
s !== r && (
|
|
3932
|
+
s !== r && (Od(t) || (t[o] = s), r = s);
|
|
3908
3933
|
}
|
|
3909
3934
|
e[r] = !0;
|
|
3910
3935
|
}
|
|
3911
3936
|
return e;
|
|
3912
3937
|
}
|
|
3913
|
-
function
|
|
3938
|
+
function Bd(e) {
|
|
3914
3939
|
for (let t = 0; t < e.length; t++)
|
|
3915
3940
|
ke(e, t) || (e[t] = null);
|
|
3916
3941
|
return e;
|
|
3917
3942
|
}
|
|
3918
|
-
function
|
|
3943
|
+
function Ve(e) {
|
|
3919
3944
|
const t = Co(null);
|
|
3920
3945
|
for (const [n, o] of Ci(e))
|
|
3921
|
-
ke(e, n) && (Array.isArray(o) ? t[n] =
|
|
3946
|
+
ke(e, n) && (Array.isArray(o) ? t[n] = Bd(o) : o && typeof o == "object" && o.constructor === Object ? t[n] = Ve(o) : t[n] = o);
|
|
3922
3947
|
return t;
|
|
3923
3948
|
}
|
|
3924
3949
|
function Mt(e, t) {
|
|
3925
3950
|
for (; e !== null; ) {
|
|
3926
|
-
const o =
|
|
3951
|
+
const o = Md(e, t);
|
|
3927
3952
|
if (o) {
|
|
3928
3953
|
if (o.get)
|
|
3929
3954
|
return ye(o.get);
|
|
3930
3955
|
if (typeof o.value == "function")
|
|
3931
3956
|
return ye(o.value);
|
|
3932
3957
|
}
|
|
3933
|
-
e =
|
|
3958
|
+
e = Id(e);
|
|
3934
3959
|
}
|
|
3935
3960
|
function n() {
|
|
3936
3961
|
return null;
|
|
3937
3962
|
}
|
|
3938
3963
|
return n;
|
|
3939
3964
|
}
|
|
3940
|
-
const Hr = ve(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), no = ve(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), oo = ve(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]),
|
|
3965
|
+
const Hr = ve(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), no = ve(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), oo = ve(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Ud = ve(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), ro = ve(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Wd = ve(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Vr = ve(["#text"]), jr = ve(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), so = ve(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Gr = ve(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), on = ve(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Hd = Ne(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Vd = Ne(/<%[\w\W]*|[\w\W]*%>/gm), jd = Ne(/\$\{[\w\W]*/gm), Gd = Ne(/^data-[\-\w.\u00B7-\uFFFF]+$/), Yd = Ne(/^aria-[\-\w]+$/), Ei = Ne(
|
|
3941
3966
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
3942
3967
|
// eslint-disable-line no-useless-escape
|
|
3943
|
-
),
|
|
3968
|
+
), Kd = Ne(/^(?:\w+script|data):/i), Xd = Ne(
|
|
3944
3969
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
3945
3970
|
// eslint-disable-line no-control-regex
|
|
3946
|
-
), Ai = Ne(/^html$/i),
|
|
3971
|
+
), Ai = Ne(/^html$/i), qd = Ne(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
3947
3972
|
var Yr = /* @__PURE__ */ Object.freeze({
|
|
3948
3973
|
__proto__: null,
|
|
3949
|
-
ARIA_ATTR:
|
|
3950
|
-
ATTR_WHITESPACE:
|
|
3951
|
-
CUSTOM_ELEMENT:
|
|
3952
|
-
DATA_ATTR:
|
|
3974
|
+
ARIA_ATTR: Yd,
|
|
3975
|
+
ATTR_WHITESPACE: Xd,
|
|
3976
|
+
CUSTOM_ELEMENT: qd,
|
|
3977
|
+
DATA_ATTR: Gd,
|
|
3953
3978
|
DOCTYPE_NAME: Ai,
|
|
3954
|
-
ERB_EXPR:
|
|
3979
|
+
ERB_EXPR: Vd,
|
|
3955
3980
|
IS_ALLOWED_URI: Ei,
|
|
3956
|
-
IS_SCRIPT_OR_DATA:
|
|
3957
|
-
MUSTACHE_EXPR:
|
|
3958
|
-
TMPLIT_EXPR:
|
|
3981
|
+
IS_SCRIPT_OR_DATA: Kd,
|
|
3982
|
+
MUSTACHE_EXPR: Hd,
|
|
3983
|
+
TMPLIT_EXPR: jd
|
|
3959
3984
|
});
|
|
3960
3985
|
const Dt = {
|
|
3961
3986
|
element: 1,
|
|
@@ -3964,9 +3989,9 @@ const Dt = {
|
|
|
3964
3989
|
progressingInstruction: 7,
|
|
3965
3990
|
comment: 8,
|
|
3966
3991
|
document: 9
|
|
3967
|
-
},
|
|
3992
|
+
}, Zd = function() {
|
|
3968
3993
|
return typeof window > "u" ? null : window;
|
|
3969
|
-
},
|
|
3994
|
+
}, Qd = function(t, n) {
|
|
3970
3995
|
if (typeof t != "object" || typeof t.createPolicy != "function")
|
|
3971
3996
|
return null;
|
|
3972
3997
|
let o = null;
|
|
@@ -3999,8 +4024,8 @@ const Dt = {
|
|
|
3999
4024
|
};
|
|
4000
4025
|
};
|
|
4001
4026
|
function Ni() {
|
|
4002
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
4003
|
-
const t = (
|
|
4027
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Zd();
|
|
4028
|
+
const t = (V) => Ni(V);
|
|
4004
4029
|
if (t.version = "3.3.0", t.removed = [], !e || !e.document || e.document.nodeType !== Dt.document || !e.Element)
|
|
4005
4030
|
return t.isSupported = !1, t;
|
|
4006
4031
|
let {
|
|
@@ -4018,37 +4043,37 @@ function Ni() {
|
|
|
4018
4043
|
trustedTypes: m
|
|
4019
4044
|
} = e, w = l.prototype, h = Mt(w, "cloneNode"), v = Mt(w, "remove"), x = Mt(w, "nextSibling"), S = Mt(w, "childNodes"), C = Mt(w, "parentNode");
|
|
4020
4045
|
if (typeof i == "function") {
|
|
4021
|
-
const
|
|
4022
|
-
|
|
4046
|
+
const V = n.createElement("template");
|
|
4047
|
+
V.content && V.content.ownerDocument && (n = V.content.ownerDocument);
|
|
4023
4048
|
}
|
|
4024
4049
|
let y, E = "";
|
|
4025
4050
|
const {
|
|
4026
|
-
implementation:
|
|
4051
|
+
implementation: $,
|
|
4027
4052
|
createNodeIterator: k,
|
|
4028
|
-
createDocumentFragment:
|
|
4053
|
+
createDocumentFragment: N,
|
|
4029
4054
|
getElementsByTagName: G
|
|
4030
4055
|
} = n, {
|
|
4031
|
-
importNode:
|
|
4056
|
+
importNode: K
|
|
4032
4057
|
} = o;
|
|
4033
4058
|
let j = Kr();
|
|
4034
|
-
t.isSupported = typeof Ci == "function" && typeof C == "function" &&
|
|
4059
|
+
t.isSupported = typeof Ci == "function" && typeof C == "function" && $ && $.createHTMLDocument !== void 0;
|
|
4035
4060
|
const {
|
|
4036
|
-
MUSTACHE_EXPR:
|
|
4061
|
+
MUSTACHE_EXPR: X,
|
|
4037
4062
|
ERB_EXPR: T,
|
|
4038
4063
|
TMPLIT_EXPR: F,
|
|
4039
|
-
DATA_ATTR:
|
|
4064
|
+
DATA_ATTR: H,
|
|
4040
4065
|
ARIA_ATTR: D,
|
|
4041
4066
|
IS_SCRIPT_OR_DATA: Y,
|
|
4042
4067
|
ATTR_WHITESPACE: R,
|
|
4043
4068
|
CUSTOM_ELEMENT: ne
|
|
4044
4069
|
} = Yr;
|
|
4045
4070
|
let {
|
|
4046
|
-
IS_ALLOWED_URI:
|
|
4047
|
-
} = Yr,
|
|
4048
|
-
const
|
|
4049
|
-
let
|
|
4050
|
-
const
|
|
4051
|
-
let
|
|
4071
|
+
IS_ALLOWED_URI: le
|
|
4072
|
+
} = Yr, A = null;
|
|
4073
|
+
const L = Q({}, [...Hr, ...no, ...oo, ...ro, ...Vr]);
|
|
4074
|
+
let _ = null;
|
|
4075
|
+
const z = Q({}, [...jr, ...so, ...Gr, ...on]);
|
|
4076
|
+
let M = Object.seal(Co(null, {
|
|
4052
4077
|
tagNameCheck: {
|
|
4053
4078
|
writable: !0,
|
|
4054
4079
|
configurable: !1,
|
|
@@ -4067,8 +4092,8 @@ function Ni() {
|
|
|
4067
4092
|
enumerable: !0,
|
|
4068
4093
|
value: !1
|
|
4069
4094
|
}
|
|
4070
|
-
})),
|
|
4071
|
-
const
|
|
4095
|
+
})), re = null, I = null;
|
|
4096
|
+
const J = Object.seal(Co(null, {
|
|
4072
4097
|
tagCheck: {
|
|
4073
4098
|
writable: !0,
|
|
4074
4099
|
configurable: !1,
|
|
@@ -4082,18 +4107,18 @@ function Ni() {
|
|
|
4082
4107
|
value: null
|
|
4083
4108
|
}
|
|
4084
4109
|
}));
|
|
4085
|
-
let se = !0,
|
|
4110
|
+
let se = !0, Z = !0, ee = !1, oe = !0, ce = !1, Ae = !0, Re = !1, nt = !1, ot = !1, ut = !1, jt = !1, Gt = !1, Ko = !0, Xo = !1;
|
|
4086
4111
|
const va = "user-content-";
|
|
4087
4112
|
let $n = !0, kt = !1, dt = {}, ft = null;
|
|
4088
|
-
const qo =
|
|
4113
|
+
const qo = Q({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
4089
4114
|
let Zo = null;
|
|
4090
|
-
const Qo =
|
|
4115
|
+
const Qo = Q({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
4091
4116
|
let zn = null;
|
|
4092
|
-
const Jo =
|
|
4093
|
-
let pt =
|
|
4094
|
-
const ya =
|
|
4095
|
-
let Xt =
|
|
4096
|
-
const wa =
|
|
4117
|
+
const Jo = Q({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Yt = "http://www.w3.org/1998/Math/MathML", Kt = "http://www.w3.org/2000/svg", Be = "http://www.w3.org/1999/xhtml";
|
|
4118
|
+
let pt = Be, Bn = !1, Un = null;
|
|
4119
|
+
const ya = Q({}, [Yt, Kt, Be], eo);
|
|
4120
|
+
let Xt = Q({}, ["mi", "mo", "mn", "ms", "mtext"]), qt = Q({}, ["annotation-xml"]);
|
|
4121
|
+
const wa = Q({}, ["title", "style", "font", "a", "script"]);
|
|
4097
4122
|
let Pt = null;
|
|
4098
4123
|
const xa = ["application/xhtml+xml", "text/html"], Sa = "text/html";
|
|
4099
4124
|
let fe = null, mt = null;
|
|
@@ -4102,25 +4127,25 @@ function Ni() {
|
|
|
4102
4127
|
}, Wn = function() {
|
|
4103
4128
|
let b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4104
4129
|
if (!(mt && mt === b)) {
|
|
4105
|
-
if ((!b || typeof b != "object") && (b = {}), b =
|
|
4106
|
-
xa.indexOf(b.PARSER_MEDIA_TYPE) === -1 ? Sa : b.PARSER_MEDIA_TYPE, fe = Pt === "application/xhtml+xml" ? eo : dn,
|
|
4130
|
+
if ((!b || typeof b != "object") && (b = {}), b = Ve(b), Pt = // eslint-disable-next-line unicorn/prefer-includes
|
|
4131
|
+
xa.indexOf(b.PARSER_MEDIA_TYPE) === -1 ? Sa : b.PARSER_MEDIA_TYPE, fe = Pt === "application/xhtml+xml" ? eo : dn, A = ke(b, "ALLOWED_TAGS") ? Q({}, b.ALLOWED_TAGS, fe) : L, _ = ke(b, "ALLOWED_ATTR") ? Q({}, b.ALLOWED_ATTR, fe) : z, Un = ke(b, "ALLOWED_NAMESPACES") ? Q({}, b.ALLOWED_NAMESPACES, eo) : ya, zn = ke(b, "ADD_URI_SAFE_ATTR") ? Q(Ve(Jo), b.ADD_URI_SAFE_ATTR, fe) : Jo, Zo = ke(b, "ADD_DATA_URI_TAGS") ? Q(Ve(Qo), b.ADD_DATA_URI_TAGS, fe) : Qo, ft = ke(b, "FORBID_CONTENTS") ? Q({}, b.FORBID_CONTENTS, fe) : qo, re = ke(b, "FORBID_TAGS") ? Q({}, b.FORBID_TAGS, fe) : Ve({}), I = ke(b, "FORBID_ATTR") ? Q({}, b.FORBID_ATTR, fe) : Ve({}), dt = ke(b, "USE_PROFILES") ? b.USE_PROFILES : !1, se = b.ALLOW_ARIA_ATTR !== !1, Z = b.ALLOW_DATA_ATTR !== !1, ee = b.ALLOW_UNKNOWN_PROTOCOLS || !1, oe = b.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ce = b.SAFE_FOR_TEMPLATES || !1, Ae = b.SAFE_FOR_XML !== !1, Re = b.WHOLE_DOCUMENT || !1, ut = b.RETURN_DOM || !1, jt = b.RETURN_DOM_FRAGMENT || !1, Gt = b.RETURN_TRUSTED_TYPE || !1, ot = b.FORCE_BODY || !1, Ko = b.SANITIZE_DOM !== !1, Xo = b.SANITIZE_NAMED_PROPS || !1, $n = b.KEEP_CONTENT !== !1, kt = b.IN_PLACE || !1, le = b.ALLOWED_URI_REGEXP || Ei, pt = b.NAMESPACE || Be, Xt = b.MATHML_TEXT_INTEGRATION_POINTS || Xt, qt = b.HTML_INTEGRATION_POINTS || qt, M = b.CUSTOM_ELEMENT_HANDLING || {}, b.CUSTOM_ELEMENT_HANDLING && er(b.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (M.tagNameCheck = b.CUSTOM_ELEMENT_HANDLING.tagNameCheck), b.CUSTOM_ELEMENT_HANDLING && er(b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (M.attributeNameCheck = b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), b.CUSTOM_ELEMENT_HANDLING && typeof b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (M.allowCustomizedBuiltInElements = b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ce && (Z = !1), jt && (ut = !0), dt && (A = Q({}, Vr), _ = [], dt.html === !0 && (Q(A, Hr), Q(_, jr)), dt.svg === !0 && (Q(A, no), Q(_, so), Q(_, on)), dt.svgFilters === !0 && (Q(A, oo), Q(_, so), Q(_, on)), dt.mathMl === !0 && (Q(A, ro), Q(_, Gr), Q(_, on))), b.ADD_TAGS && (typeof b.ADD_TAGS == "function" ? J.tagCheck = b.ADD_TAGS : (A === L && (A = Ve(A)), Q(A, b.ADD_TAGS, fe))), b.ADD_ATTR && (typeof b.ADD_ATTR == "function" ? J.attributeCheck = b.ADD_ATTR : (_ === z && (_ = Ve(_)), Q(_, b.ADD_ATTR, fe))), b.ADD_URI_SAFE_ATTR && Q(zn, b.ADD_URI_SAFE_ATTR, fe), b.FORBID_CONTENTS && (ft === qo && (ft = Ve(ft)), Q(ft, b.FORBID_CONTENTS, fe)), $n && (A["#text"] = !0), Re && Q(A, ["html", "head", "body"]), A.table && (Q(A, ["tbody"]), delete re.tbody), b.TRUSTED_TYPES_POLICY) {
|
|
4107
4132
|
if (typeof b.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
4108
4133
|
throw It('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
4109
4134
|
if (typeof b.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
4110
4135
|
throw It('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
4111
4136
|
y = b.TRUSTED_TYPES_POLICY, E = y.createHTML("");
|
|
4112
4137
|
} else
|
|
4113
|
-
y === void 0 && (y =
|
|
4138
|
+
y === void 0 && (y = Qd(m, r)), y !== null && typeof E == "string" && (E = y.createHTML(""));
|
|
4114
4139
|
ve && ve(b), mt = b;
|
|
4115
4140
|
}
|
|
4116
|
-
}, tr =
|
|
4141
|
+
}, tr = Q({}, [...no, ...oo, ...Ud]), nr = Q({}, [...ro, ...Wd]), Ea = function(b) {
|
|
4117
4142
|
let P = C(b);
|
|
4118
4143
|
(!P || !P.tagName) && (P = {
|
|
4119
4144
|
namespaceURI: pt,
|
|
4120
4145
|
tagName: "template"
|
|
4121
4146
|
});
|
|
4122
4147
|
const W = dn(b.tagName), ie = dn(P.tagName);
|
|
4123
|
-
return Un[b.namespaceURI] ? b.namespaceURI === Kt ? P.namespaceURI ===
|
|
4148
|
+
return Un[b.namespaceURI] ? b.namespaceURI === Kt ? P.namespaceURI === Be ? W === "svg" : P.namespaceURI === Yt ? W === "svg" && (ie === "annotation-xml" || Xt[ie]) : !!tr[W] : b.namespaceURI === Yt ? P.namespaceURI === Be ? W === "math" : P.namespaceURI === Kt ? W === "math" && qt[ie] : !!nr[W] : b.namespaceURI === Be ? 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
4149
|
}, Oe = function(b) {
|
|
4125
4150
|
_t(t.removed, {
|
|
4126
4151
|
element: b
|
|
@@ -4158,25 +4183,25 @@ function Ni() {
|
|
|
4158
4183
|
if (ot)
|
|
4159
4184
|
b = "<remove></remove>" + b;
|
|
4160
4185
|
else {
|
|
4161
|
-
const
|
|
4162
|
-
W =
|
|
4186
|
+
const ue = to(b, /^[\r\n\t ]+/);
|
|
4187
|
+
W = ue && ue[0];
|
|
4163
4188
|
}
|
|
4164
|
-
Pt === "application/xhtml+xml" && pt ===
|
|
4189
|
+
Pt === "application/xhtml+xml" && pt === Be && (b = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + b + "</body></html>");
|
|
4165
4190
|
const ie = y ? y.createHTML(b) : b;
|
|
4166
|
-
if (pt ===
|
|
4191
|
+
if (pt === Be)
|
|
4167
4192
|
try {
|
|
4168
4193
|
P = new g().parseFromString(ie, Pt);
|
|
4169
4194
|
} catch {
|
|
4170
4195
|
}
|
|
4171
4196
|
if (!P || !P.documentElement) {
|
|
4172
|
-
P =
|
|
4197
|
+
P = $.createDocument(pt, "template", null);
|
|
4173
4198
|
try {
|
|
4174
4199
|
P.documentElement.innerHTML = Bn ? E : ie;
|
|
4175
4200
|
} catch {
|
|
4176
4201
|
}
|
|
4177
4202
|
}
|
|
4178
4203
|
const me = P.body || P.documentElement;
|
|
4179
|
-
return b && W && me.insertBefore(n.createTextNode(W), me.childNodes[0] || null), pt ===
|
|
4204
|
+
return b && W && me.insertBefore(n.createTextNode(W), me.childNodes[0] || null), pt === Be ? G.call(P, Re ? "html" : "body")[0] : Re ? P.documentElement : me;
|
|
4180
4205
|
}, rr = function(b) {
|
|
4181
4206
|
return k.call(
|
|
4182
4207
|
b.ownerDocument || b,
|
|
@@ -4190,60 +4215,60 @@ function Ni() {
|
|
|
4190
4215
|
}, sr = function(b) {
|
|
4191
4216
|
return typeof a == "function" && b instanceof a;
|
|
4192
4217
|
};
|
|
4193
|
-
function
|
|
4194
|
-
nn(
|
|
4218
|
+
function Ue(V, b, P) {
|
|
4219
|
+
nn(V, (W) => {
|
|
4195
4220
|
W.call(t, b, P, mt);
|
|
4196
4221
|
});
|
|
4197
4222
|
}
|
|
4198
4223
|
const ir = function(b) {
|
|
4199
4224
|
let P = null;
|
|
4200
|
-
if (
|
|
4225
|
+
if (Ue(j.beforeSanitizeElements, b, null), Hn(b))
|
|
4201
4226
|
return Oe(b), !0;
|
|
4202
4227
|
const W = fe(b.nodeName);
|
|
4203
|
-
if (
|
|
4228
|
+
if (Ue(j.uponSanitizeElement, b, {
|
|
4204
4229
|
tagName: W,
|
|
4205
|
-
allowedTags:
|
|
4230
|
+
allowedTags: A
|
|
4206
4231
|
}), 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
4232
|
return Oe(b), !0;
|
|
4208
|
-
if (!(
|
|
4209
|
-
if (!
|
|
4233
|
+
if (!(J.tagCheck instanceof Function && J.tagCheck(W)) && (!A[W] || re[W])) {
|
|
4234
|
+
if (!re[W] && lr(W) && (M.tagNameCheck instanceof RegExp && ge(M.tagNameCheck, W) || M.tagNameCheck instanceof Function && M.tagNameCheck(W)))
|
|
4210
4235
|
return !1;
|
|
4211
4236
|
if ($n && !ft[W]) {
|
|
4212
4237
|
const ie = C(b) || b.parentNode, me = S(b) || b.childNodes;
|
|
4213
4238
|
if (me && ie) {
|
|
4214
|
-
const
|
|
4215
|
-
for (let we =
|
|
4216
|
-
const
|
|
4217
|
-
|
|
4239
|
+
const ue = me.length;
|
|
4240
|
+
for (let we = ue - 1; we >= 0; --we) {
|
|
4241
|
+
const We = h(me[we], !0);
|
|
4242
|
+
We.__removalCount = (b.__removalCount || 0) + 1, ie.insertBefore(We, x(b));
|
|
4218
4243
|
}
|
|
4219
4244
|
}
|
|
4220
4245
|
}
|
|
4221
4246
|
return Oe(b), !0;
|
|
4222
4247
|
}
|
|
4223
|
-
return b instanceof l && !Ea(b) || (W === "noscript" || W === "noembed" || W === "noframes") && ge(/<\/no(script|embed|frames)/i, b.innerHTML) ? (Oe(b), !0) : (
|
|
4248
|
+
return b instanceof l && !Ea(b) || (W === "noscript" || W === "noembed" || W === "noframes") && ge(/<\/no(script|embed|frames)/i, b.innerHTML) ? (Oe(b), !0) : (ce && b.nodeType === Dt.text && (P = b.textContent, nn([X, T, F], (ie) => {
|
|
4224
4249
|
P = Ot(P, ie, " ");
|
|
4225
4250
|
}), b.textContent !== P && (_t(t.removed, {
|
|
4226
4251
|
element: b.cloneNode()
|
|
4227
|
-
}), b.textContent = P)),
|
|
4252
|
+
}), b.textContent = P)), Ue(j.afterSanitizeElements, b, null), !1);
|
|
4228
4253
|
}, ar = function(b, P, W) {
|
|
4229
4254
|
if (Ko && (P === "id" || P === "name") && (W in n || W in Ca))
|
|
4230
4255
|
return !1;
|
|
4231
|
-
if (!(
|
|
4256
|
+
if (!(Z && !I[P] && ge(H, P))) {
|
|
4232
4257
|
if (!(se && ge(D, P))) {
|
|
4233
|
-
if (!(
|
|
4234
|
-
if (!
|
|
4258
|
+
if (!(J.attributeCheck instanceof Function && J.attributeCheck(P, b))) {
|
|
4259
|
+
if (!_[P] || I[P]) {
|
|
4235
4260
|
if (
|
|
4236
4261
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
4237
4262
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4238
4263
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
4239
|
-
!(lr(b) && (
|
|
4264
|
+
!(lr(b) && (M.tagNameCheck instanceof RegExp && ge(M.tagNameCheck, b) || M.tagNameCheck instanceof Function && M.tagNameCheck(b)) && (M.attributeNameCheck instanceof RegExp && ge(M.attributeNameCheck, P) || M.attributeNameCheck instanceof Function && M.attributeNameCheck(P, b)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
4240
4265
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4241
|
-
P === "is" &&
|
|
4266
|
+
P === "is" && M.allowCustomizedBuiltInElements && (M.tagNameCheck instanceof RegExp && ge(M.tagNameCheck, W) || M.tagNameCheck instanceof Function && M.tagNameCheck(W)))
|
|
4242
4267
|
) return !1;
|
|
4243
4268
|
} else if (!zn[P]) {
|
|
4244
|
-
if (!ge(
|
|
4245
|
-
if (!((P === "src" || P === "xlink:href" || P === "href") && b !== "script" &&
|
|
4246
|
-
if (!(
|
|
4269
|
+
if (!ge(le, Ot(W, R, ""))) {
|
|
4270
|
+
if (!((P === "src" || P === "xlink:href" || P === "href") && b !== "script" && Fd(W, "data:") === 0 && Zo[b])) {
|
|
4271
|
+
if (!(ee && !ge(Y, Ot(W, R, "")))) {
|
|
4247
4272
|
if (W)
|
|
4248
4273
|
return !1;
|
|
4249
4274
|
}
|
|
@@ -4257,7 +4282,7 @@ function Ni() {
|
|
|
4257
4282
|
}, lr = function(b) {
|
|
4258
4283
|
return b !== "annotation-xml" && to(b, ne);
|
|
4259
4284
|
}, cr = function(b) {
|
|
4260
|
-
|
|
4285
|
+
Ue(j.beforeSanitizeAttributes, b, null);
|
|
4261
4286
|
const {
|
|
4262
4287
|
attributes: P
|
|
4263
4288
|
} = b;
|
|
@@ -4267,41 +4292,41 @@ function Ni() {
|
|
|
4267
4292
|
attrName: "",
|
|
4268
4293
|
attrValue: "",
|
|
4269
4294
|
keepAttr: !0,
|
|
4270
|
-
allowedAttributes:
|
|
4295
|
+
allowedAttributes: _,
|
|
4271
4296
|
forceKeepAttr: void 0
|
|
4272
4297
|
};
|
|
4273
4298
|
let ie = P.length;
|
|
4274
4299
|
for (; ie--; ) {
|
|
4275
4300
|
const me = P[ie], {
|
|
4276
|
-
name:
|
|
4301
|
+
name: ue,
|
|
4277
4302
|
namespaceURI: we,
|
|
4278
|
-
value:
|
|
4279
|
-
} = me, ht = fe(
|
|
4280
|
-
let pe =
|
|
4281
|
-
if (W.attrName = ht, W.attrValue = pe, W.keepAttr = !0, W.forceKeepAttr = void 0,
|
|
4282
|
-
rt(
|
|
4303
|
+
value: We
|
|
4304
|
+
} = me, ht = fe(ue), Vn = We;
|
|
4305
|
+
let pe = ue === "value" ? Vn : $d(Vn);
|
|
4306
|
+
if (W.attrName = ht, W.attrValue = pe, W.keepAttr = !0, W.forceKeepAttr = void 0, Ue(j.uponSanitizeAttribute, b, W), pe = W.attrValue, Xo && (ht === "id" || ht === "name") && (rt(ue, b), pe = va + pe), Ae && ge(/((--!?|])>)|<\/(style|title|textarea)/i, pe)) {
|
|
4307
|
+
rt(ue, b);
|
|
4283
4308
|
continue;
|
|
4284
4309
|
}
|
|
4285
4310
|
if (ht === "attributename" && to(pe, "href")) {
|
|
4286
|
-
rt(
|
|
4311
|
+
rt(ue, b);
|
|
4287
4312
|
continue;
|
|
4288
4313
|
}
|
|
4289
4314
|
if (W.forceKeepAttr)
|
|
4290
4315
|
continue;
|
|
4291
4316
|
if (!W.keepAttr) {
|
|
4292
|
-
rt(
|
|
4317
|
+
rt(ue, b);
|
|
4293
4318
|
continue;
|
|
4294
4319
|
}
|
|
4295
|
-
if (!
|
|
4296
|
-
rt(
|
|
4320
|
+
if (!oe && ge(/\/>/i, pe)) {
|
|
4321
|
+
rt(ue, b);
|
|
4297
4322
|
continue;
|
|
4298
4323
|
}
|
|
4299
|
-
|
|
4324
|
+
ce && nn([X, T, F], (dr) => {
|
|
4300
4325
|
pe = Ot(pe, dr, " ");
|
|
4301
4326
|
});
|
|
4302
4327
|
const ur = fe(b.nodeName);
|
|
4303
4328
|
if (!ar(ur, ht, pe)) {
|
|
4304
|
-
rt(
|
|
4329
|
+
rt(ue, b);
|
|
4305
4330
|
continue;
|
|
4306
4331
|
}
|
|
4307
4332
|
if (y && typeof m == "object" && typeof m.getAttributeType == "function" && !we)
|
|
@@ -4317,89 +4342,89 @@ function Ni() {
|
|
|
4317
4342
|
}
|
|
4318
4343
|
if (pe !== Vn)
|
|
4319
4344
|
try {
|
|
4320
|
-
we ? b.setAttributeNS(we,
|
|
4345
|
+
we ? b.setAttributeNS(we, ue, pe) : b.setAttribute(ue, pe), Hn(b) ? Oe(b) : Wr(t.removed);
|
|
4321
4346
|
} catch {
|
|
4322
|
-
rt(
|
|
4347
|
+
rt(ue, b);
|
|
4323
4348
|
}
|
|
4324
4349
|
}
|
|
4325
|
-
|
|
4326
|
-
}, Aa = function
|
|
4350
|
+
Ue(j.afterSanitizeAttributes, b, null);
|
|
4351
|
+
}, Aa = function V(b) {
|
|
4327
4352
|
let P = null;
|
|
4328
4353
|
const W = rr(b);
|
|
4329
|
-
for (
|
|
4330
|
-
|
|
4331
|
-
|
|
4354
|
+
for (Ue(j.beforeSanitizeShadowDOM, b, null); P = W.nextNode(); )
|
|
4355
|
+
Ue(j.uponSanitizeShadowNode, P, null), ir(P), cr(P), P.content instanceof s && V(P.content);
|
|
4356
|
+
Ue(j.afterSanitizeShadowDOM, b, null);
|
|
4332
4357
|
};
|
|
4333
|
-
return t.sanitize = function(
|
|
4358
|
+
return t.sanitize = function(V) {
|
|
4334
4359
|
let b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, P = null, W = null, ie = null, me = null;
|
|
4335
|
-
if (Bn = !
|
|
4336
|
-
if (typeof
|
|
4337
|
-
if (
|
|
4360
|
+
if (Bn = !V, Bn && (V = "<!-->"), typeof V != "string" && !sr(V))
|
|
4361
|
+
if (typeof V.toString == "function") {
|
|
4362
|
+
if (V = V.toString(), typeof V != "string")
|
|
4338
4363
|
throw It("dirty is not a string, aborting");
|
|
4339
4364
|
} else
|
|
4340
4365
|
throw It("toString is not a function");
|
|
4341
4366
|
if (!t.isSupported)
|
|
4342
|
-
return
|
|
4343
|
-
if (nt || Wn(b), t.removed = [], typeof
|
|
4344
|
-
if (
|
|
4345
|
-
const
|
|
4346
|
-
if (!
|
|
4367
|
+
return V;
|
|
4368
|
+
if (nt || Wn(b), t.removed = [], typeof V == "string" && (kt = !1), kt) {
|
|
4369
|
+
if (V.nodeName) {
|
|
4370
|
+
const We = fe(V.nodeName);
|
|
4371
|
+
if (!A[We] || re[We])
|
|
4347
4372
|
throw It("root node is forbidden and cannot be sanitized in-place");
|
|
4348
4373
|
}
|
|
4349
|
-
} else if (
|
|
4350
|
-
P = or("<!---->"), W = P.ownerDocument.importNode(
|
|
4374
|
+
} else if (V instanceof a)
|
|
4375
|
+
P = or("<!---->"), W = P.ownerDocument.importNode(V, !0), W.nodeType === Dt.element && W.nodeName === "BODY" || W.nodeName === "HTML" ? P = W : P.appendChild(W);
|
|
4351
4376
|
else {
|
|
4352
|
-
if (!ut && !
|
|
4353
|
-
|
|
4354
|
-
return y && Gt ? y.createHTML(
|
|
4355
|
-
if (P = or(
|
|
4377
|
+
if (!ut && !ce && !Re && // eslint-disable-next-line unicorn/prefer-includes
|
|
4378
|
+
V.indexOf("<") === -1)
|
|
4379
|
+
return y && Gt ? y.createHTML(V) : V;
|
|
4380
|
+
if (P = or(V), !P)
|
|
4356
4381
|
return ut ? null : Gt ? E : "";
|
|
4357
4382
|
}
|
|
4358
4383
|
P && ot && Oe(P.firstChild);
|
|
4359
|
-
const
|
|
4360
|
-
for (; ie =
|
|
4384
|
+
const ue = rr(kt ? V : P);
|
|
4385
|
+
for (; ie = ue.nextNode(); )
|
|
4361
4386
|
ir(ie), cr(ie), ie.content instanceof s && Aa(ie.content);
|
|
4362
4387
|
if (kt)
|
|
4363
|
-
return
|
|
4388
|
+
return V;
|
|
4364
4389
|
if (ut) {
|
|
4365
4390
|
if (jt)
|
|
4366
|
-
for (me =
|
|
4391
|
+
for (me = N.call(P.ownerDocument); P.firstChild; )
|
|
4367
4392
|
me.appendChild(P.firstChild);
|
|
4368
4393
|
else
|
|
4369
4394
|
me = P;
|
|
4370
|
-
return (
|
|
4395
|
+
return (_.shadowroot || _.shadowrootmode) && (me = K.call(o, me, !0)), me;
|
|
4371
4396
|
}
|
|
4372
4397
|
let we = Re ? P.outerHTML : P.innerHTML;
|
|
4373
|
-
return Re &&
|
|
4374
|
-
` + we),
|
|
4375
|
-
we = Ot(we,
|
|
4398
|
+
return Re && A["!doctype"] && P.ownerDocument && P.ownerDocument.doctype && P.ownerDocument.doctype.name && ge(Ai, P.ownerDocument.doctype.name) && (we = "<!DOCTYPE " + P.ownerDocument.doctype.name + `>
|
|
4399
|
+
` + we), ce && nn([X, T, F], (We) => {
|
|
4400
|
+
we = Ot(we, We, " ");
|
|
4376
4401
|
}), y && Gt ? y.createHTML(we) : we;
|
|
4377
4402
|
}, t.setConfig = function() {
|
|
4378
|
-
let
|
|
4379
|
-
Wn(
|
|
4403
|
+
let V = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4404
|
+
Wn(V), nt = !0;
|
|
4380
4405
|
}, t.clearConfig = function() {
|
|
4381
4406
|
mt = null, nt = !1;
|
|
4382
|
-
}, t.isValidAttribute = function(
|
|
4407
|
+
}, t.isValidAttribute = function(V, b, P) {
|
|
4383
4408
|
mt || Wn({});
|
|
4384
|
-
const W = fe(
|
|
4409
|
+
const W = fe(V), ie = fe(b);
|
|
4385
4410
|
return ar(W, ie, P);
|
|
4386
|
-
}, t.addHook = function(
|
|
4387
|
-
typeof b == "function" && _t(j[
|
|
4388
|
-
}, t.removeHook = function(
|
|
4411
|
+
}, t.addHook = function(V, b) {
|
|
4412
|
+
typeof b == "function" && _t(j[V], b);
|
|
4413
|
+
}, t.removeHook = function(V, b) {
|
|
4389
4414
|
if (b !== void 0) {
|
|
4390
|
-
const P =
|
|
4391
|
-
return P === -1 ? void 0 :
|
|
4415
|
+
const P = Dd(j[V], b);
|
|
4416
|
+
return P === -1 ? void 0 : Ld(j[V], P, 1)[0];
|
|
4392
4417
|
}
|
|
4393
|
-
return Wr(j[
|
|
4394
|
-
}, t.removeHooks = function(
|
|
4395
|
-
j[
|
|
4418
|
+
return Wr(j[V]);
|
|
4419
|
+
}, t.removeHooks = function(V) {
|
|
4420
|
+
j[V] = [];
|
|
4396
4421
|
}, t.removeAllHooks = function() {
|
|
4397
4422
|
j = Kr();
|
|
4398
4423
|
}, t;
|
|
4399
4424
|
}
|
|
4400
|
-
var
|
|
4401
|
-
const
|
|
4402
|
-
function
|
|
4425
|
+
var Jd = Ni();
|
|
4426
|
+
const ef = (e) => Jd.sanitize(e);
|
|
4427
|
+
function tf({ field: e, formValues: t, disabled: n }) {
|
|
4403
4428
|
const o = n, r = t[e.name] || e.content || "", s = `mb-4 ${e.fieldClass ? e.fieldClass : "col-span-full"}`, i = `
|
|
4404
4429
|
w-full px-3 py-2 border rounded-md overflow-y-auto max-h-40 prose prose-sm max-w-none shadow-inner transition duration-150
|
|
4405
4430
|
${o ? "bg-gray-100 text-gray-500 border-gray-300 cursor-not-allowed" : "bg-white text-gray-800 border-gray-200 hover:border-gray-300"}
|
|
@@ -4410,19 +4435,19 @@ function ef({ field: e, formValues: t, disabled: n }) {
|
|
|
4410
4435
|
"div",
|
|
4411
4436
|
{
|
|
4412
4437
|
className: i,
|
|
4413
|
-
dangerouslySetInnerHTML: { __html:
|
|
4438
|
+
dangerouslySetInnerHTML: { __html: ef(r) }
|
|
4414
4439
|
}
|
|
4415
4440
|
)
|
|
4416
4441
|
] }, e.name);
|
|
4417
4442
|
}
|
|
4418
|
-
function
|
|
4443
|
+
function nf({ field: e, formValues: t, handleChange: n, handleBlur: o, error: r }) {
|
|
4419
4444
|
const s = typeof e.disabled == "function" ? e.disabled(t) : e.disabled, i = e.options || [], a = e.inline || e.layout === "inline";
|
|
4420
4445
|
if (i.length > 0) {
|
|
4421
4446
|
const l = Array.isArray(t[e.name]) ? t[e.name] : [], c = (p, g) => {
|
|
4422
4447
|
let m;
|
|
4423
4448
|
g ? m = [...l, p] : m = l.filter((w) => w !== p), n(e.name, m);
|
|
4424
4449
|
}, f = r && e.required && l.length === 0;
|
|
4425
|
-
return /* @__PURE__ */ u(
|
|
4450
|
+
return /* @__PURE__ */ u(Le, { children: /* @__PURE__ */ u(
|
|
4426
4451
|
"div",
|
|
4427
4452
|
{
|
|
4428
4453
|
className: a ? "grid grid-cols-4 gap-3 mt-3" : "space-y-3 mt-3",
|
|
@@ -4492,16 +4517,16 @@ function tf({ field: e, formValues: t, handleChange: n, handleBlur: o, error: r
|
|
|
4492
4517
|
] })
|
|
4493
4518
|
] }) });
|
|
4494
4519
|
}
|
|
4495
|
-
function
|
|
4520
|
+
function of(e, t) {
|
|
4496
4521
|
return d.useReducer((n, o) => t[n][o] ?? n, e);
|
|
4497
4522
|
}
|
|
4498
4523
|
var Pn = (e) => {
|
|
4499
|
-
const { present: t, children: n } = e, o =
|
|
4524
|
+
const { present: t, children: n } = e, o = rf(t), r = typeof n == "function" ? n({ present: o.isPresent }) : d.Children.only(n), s = ae(o.ref, sf(r));
|
|
4500
4525
|
return typeof n == "function" || o.isPresent ? d.cloneElement(r, { ref: s }) : null;
|
|
4501
4526
|
};
|
|
4502
4527
|
Pn.displayName = "Presence";
|
|
4503
|
-
function
|
|
4504
|
-
const [t, n] = d.useState(), o = d.useRef(null), r = d.useRef(e), s = d.useRef("none"), i = e ? "mounted" : "unmounted", [a, l] =
|
|
4528
|
+
function rf(e) {
|
|
4529
|
+
const [t, n] = d.useState(), o = d.useRef(null), r = d.useRef(e), s = d.useRef("none"), i = e ? "mounted" : "unmounted", [a, l] = of(i, {
|
|
4505
4530
|
mounted: {
|
|
4506
4531
|
UNMOUNT: "unmounted",
|
|
4507
4532
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -4552,11 +4577,11 @@ function of(e) {
|
|
|
4552
4577
|
function rn(e) {
|
|
4553
4578
|
return e?.animationName || "none";
|
|
4554
4579
|
}
|
|
4555
|
-
function
|
|
4580
|
+
function sf(e) {
|
|
4556
4581
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
4557
4582
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
4558
4583
|
}
|
|
4559
|
-
var
|
|
4584
|
+
var af = [
|
|
4560
4585
|
"a",
|
|
4561
4586
|
"button",
|
|
4562
4587
|
"div",
|
|
@@ -4574,7 +4599,7 @@ var sf = [
|
|
|
4574
4599
|
"span",
|
|
4575
4600
|
"svg",
|
|
4576
4601
|
"ul"
|
|
4577
|
-
], Ri =
|
|
4602
|
+
], Ri = af.reduce((e, t) => {
|
|
4578
4603
|
const n = /* @__PURE__ */ xe(`Primitive.${t}`), o = d.forwardRef((r, s) => {
|
|
4579
4604
|
const { asChild: i, ...a } = r, l = i ? n : t;
|
|
4580
4605
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u(l, { ...a, ref: s });
|
|
@@ -4582,7 +4607,7 @@ var sf = [
|
|
|
4582
4607
|
return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
|
|
4583
4608
|
}, {}), _n = "Popover", [Ti] = ct(_n, [
|
|
4584
4609
|
An
|
|
4585
|
-
]), Ht = An(), [
|
|
4610
|
+
]), Ht = An(), [lf, tt] = Ti(_n), ki = (e) => {
|
|
4586
4611
|
const {
|
|
4587
4612
|
__scopePopover: t,
|
|
4588
4613
|
children: n,
|
|
@@ -4597,7 +4622,7 @@ var sf = [
|
|
|
4597
4622
|
caller: _n
|
|
4598
4623
|
});
|
|
4599
4624
|
return /* @__PURE__ */ u(Ms, { ...a, children: /* @__PURE__ */ u(
|
|
4600
|
-
|
|
4625
|
+
lf,
|
|
4601
4626
|
{
|
|
4602
4627
|
scope: t,
|
|
4603
4628
|
contentId: Ut(),
|
|
@@ -4614,13 +4639,13 @@ var sf = [
|
|
|
4614
4639
|
) });
|
|
4615
4640
|
};
|
|
4616
4641
|
ki.displayName = _n;
|
|
4617
|
-
var Pi = "PopoverAnchor",
|
|
4642
|
+
var Pi = "PopoverAnchor", cf = d.forwardRef(
|
|
4618
4643
|
(e, t) => {
|
|
4619
4644
|
const { __scopePopover: n, ...o } = e, r = tt(Pi, n), s = Ht(n), { onCustomAnchorAdd: i, onCustomAnchorRemove: a } = r;
|
|
4620
4645
|
return d.useEffect(() => (i(), () => a()), [i, a]), /* @__PURE__ */ u(Uo, { ...s, ...o, ref: t });
|
|
4621
4646
|
}
|
|
4622
4647
|
);
|
|
4623
|
-
|
|
4648
|
+
cf.displayName = Pi;
|
|
4624
4649
|
var _i = "PopoverTrigger", Oi = d.forwardRef(
|
|
4625
4650
|
(e, t) => {
|
|
4626
4651
|
const { __scopePopover: n, ...o } = e, r = tt(_i, n), s = Ht(n), i = ae(t, r.triggerRef), a = /* @__PURE__ */ u(
|
|
@@ -4640,27 +4665,27 @@ var _i = "PopoverTrigger", Oi = d.forwardRef(
|
|
|
4640
4665
|
}
|
|
4641
4666
|
);
|
|
4642
4667
|
Oi.displayName = _i;
|
|
4643
|
-
var jo = "PopoverPortal", [
|
|
4668
|
+
var jo = "PopoverPortal", [uf, df] = Ti(jo, {
|
|
4644
4669
|
forceMount: void 0
|
|
4645
4670
|
}), Ii = (e) => {
|
|
4646
4671
|
const { __scopePopover: t, forceMount: n, children: o, container: r } = e, s = tt(jo, t);
|
|
4647
|
-
return /* @__PURE__ */ u(
|
|
4672
|
+
return /* @__PURE__ */ u(uf, { scope: t, forceMount: n, children: /* @__PURE__ */ u(Pn, { present: n || s.open, children: /* @__PURE__ */ u(Wo, { asChild: !0, container: r, children: o }) }) });
|
|
4648
4673
|
};
|
|
4649
4674
|
Ii.displayName = jo;
|
|
4650
4675
|
var Ct = "PopoverContent", Mi = d.forwardRef(
|
|
4651
4676
|
(e, t) => {
|
|
4652
|
-
const n =
|
|
4653
|
-
return /* @__PURE__ */ u(Pn, { present: o || s.open, children: s.modal ? /* @__PURE__ */ u(
|
|
4677
|
+
const n = df(Ct, e.__scopePopover), { forceMount: o = n.forceMount, ...r } = e, s = tt(Ct, e.__scopePopover);
|
|
4678
|
+
return /* @__PURE__ */ u(Pn, { present: o || s.open, children: s.modal ? /* @__PURE__ */ u(pf, { ...r, ref: t }) : /* @__PURE__ */ u(mf, { ...r, ref: t }) });
|
|
4654
4679
|
}
|
|
4655
4680
|
);
|
|
4656
4681
|
Mi.displayName = Ct;
|
|
4657
|
-
var
|
|
4682
|
+
var ff = /* @__PURE__ */ xe("PopoverContent.RemoveScroll"), pf = d.forwardRef(
|
|
4658
4683
|
(e, t) => {
|
|
4659
4684
|
const n = tt(Ct, e.__scopePopover), o = d.useRef(null), r = ae(t, o), s = d.useRef(!1);
|
|
4660
4685
|
return d.useEffect(() => {
|
|
4661
4686
|
const i = o.current;
|
|
4662
4687
|
if (i) return Bs(i);
|
|
4663
|
-
}, []), /* @__PURE__ */ u(Ho, { as:
|
|
4688
|
+
}, []), /* @__PURE__ */ u(Ho, { as: ff, allowPinchZoom: !0, children: /* @__PURE__ */ u(
|
|
4664
4689
|
Di,
|
|
4665
4690
|
{
|
|
4666
4691
|
...e,
|
|
@@ -4686,7 +4711,7 @@ var df = /* @__PURE__ */ xe("PopoverContent.RemoveScroll"), ff = d.forwardRef(
|
|
|
4686
4711
|
}
|
|
4687
4712
|
) });
|
|
4688
4713
|
}
|
|
4689
|
-
),
|
|
4714
|
+
), mf = d.forwardRef(
|
|
4690
4715
|
(e, t) => {
|
|
4691
4716
|
const n = tt(Ct, e.__scopePopover), o = d.useRef(!1), r = d.useRef(!1);
|
|
4692
4717
|
return /* @__PURE__ */ u(
|
|
@@ -4763,7 +4788,7 @@ var df = /* @__PURE__ */ xe("PopoverContent.RemoveScroll"), ff = d.forwardRef(
|
|
|
4763
4788
|
}
|
|
4764
4789
|
);
|
|
4765
4790
|
}
|
|
4766
|
-
), Li = "PopoverClose",
|
|
4791
|
+
), Li = "PopoverClose", hf = d.forwardRef(
|
|
4767
4792
|
(e, t) => {
|
|
4768
4793
|
const { __scopePopover: n, ...o } = e, r = tt(Li, n);
|
|
4769
4794
|
return /* @__PURE__ */ u(
|
|
@@ -4777,18 +4802,18 @@ var df = /* @__PURE__ */ xe("PopoverContent.RemoveScroll"), ff = d.forwardRef(
|
|
|
4777
4802
|
);
|
|
4778
4803
|
}
|
|
4779
4804
|
);
|
|
4780
|
-
|
|
4781
|
-
var
|
|
4805
|
+
hf.displayName = Li;
|
|
4806
|
+
var gf = "PopoverArrow", bf = d.forwardRef(
|
|
4782
4807
|
(e, t) => {
|
|
4783
4808
|
const { __scopePopover: n, ...o } = e, r = Ht(n);
|
|
4784
4809
|
return /* @__PURE__ */ u(Ls, { ...r, ...o, ref: t });
|
|
4785
4810
|
}
|
|
4786
4811
|
);
|
|
4787
|
-
|
|
4812
|
+
bf.displayName = gf;
|
|
4788
4813
|
function Fi(e) {
|
|
4789
4814
|
return e ? "open" : "closed";
|
|
4790
4815
|
}
|
|
4791
|
-
var
|
|
4816
|
+
var vf = ki, yf = Oi, wf = Ii, xf = Mi;
|
|
4792
4817
|
function $i(e) {
|
|
4793
4818
|
var t, n, o = "";
|
|
4794
4819
|
if (typeof e == "string" || typeof e == "number") o += e;
|
|
@@ -4798,40 +4823,40 @@ function $i(e) {
|
|
|
4798
4823
|
} else for (n in e) e[n] && (o && (o += " "), o += n);
|
|
4799
4824
|
return o;
|
|
4800
4825
|
}
|
|
4801
|
-
function
|
|
4826
|
+
function Sf() {
|
|
4802
4827
|
for (var e, t, n = 0, o = "", r = arguments.length; n < r; n++) (e = arguments[n]) && (t = $i(e)) && (o && (o += " "), o += t);
|
|
4803
4828
|
return o;
|
|
4804
4829
|
}
|
|
4805
|
-
const
|
|
4830
|
+
const Cf = (e, t) => {
|
|
4806
4831
|
const n = new Array(e.length + t.length);
|
|
4807
4832
|
for (let o = 0; o < e.length; o++)
|
|
4808
4833
|
n[o] = e[o];
|
|
4809
4834
|
for (let o = 0; o < t.length; o++)
|
|
4810
4835
|
n[e.length + o] = t[o];
|
|
4811
4836
|
return n;
|
|
4812
|
-
},
|
|
4837
|
+
}, Ef = (e, t) => ({
|
|
4813
4838
|
classGroupId: e,
|
|
4814
4839
|
validator: t
|
|
4815
4840
|
}), zi = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
|
|
4816
4841
|
nextPart: e,
|
|
4817
4842
|
validators: t,
|
|
4818
4843
|
classGroupId: n
|
|
4819
|
-
}), vn = "-", Xr = [],
|
|
4820
|
-
const t =
|
|
4844
|
+
}), vn = "-", Xr = [], Af = "arbitrary..", Nf = (e) => {
|
|
4845
|
+
const t = Tf(e), {
|
|
4821
4846
|
conflictingClassGroups: n,
|
|
4822
4847
|
conflictingClassGroupModifiers: o
|
|
4823
4848
|
} = e;
|
|
4824
4849
|
return {
|
|
4825
4850
|
getClassGroupId: (i) => {
|
|
4826
4851
|
if (i.startsWith("[") && i.endsWith("]"))
|
|
4827
|
-
return
|
|
4852
|
+
return Rf(i);
|
|
4828
4853
|
const a = i.split(vn), l = a[0] === "" && a.length > 1 ? 1 : 0;
|
|
4829
4854
|
return Bi(a, l, t);
|
|
4830
4855
|
},
|
|
4831
4856
|
getConflictingClassGroupIds: (i, a) => {
|
|
4832
4857
|
if (a) {
|
|
4833
4858
|
const l = o[i], c = n[i];
|
|
4834
|
-
return l ? c ?
|
|
4859
|
+
return l ? c ? Cf(c, l) : l : c || Xr;
|
|
4835
4860
|
}
|
|
4836
4861
|
return n[i] || Xr;
|
|
4837
4862
|
}
|
|
@@ -4853,16 +4878,16 @@ const Sf = (e, t) => {
|
|
|
4853
4878
|
if (f.validator(a))
|
|
4854
4879
|
return f.classGroupId;
|
|
4855
4880
|
}
|
|
4856
|
-
},
|
|
4881
|
+
}, Rf = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
4857
4882
|
const t = e.slice(1, -1), n = t.indexOf(":"), o = t.slice(0, n);
|
|
4858
|
-
return o ?
|
|
4859
|
-
})(),
|
|
4883
|
+
return o ? Af + o : void 0;
|
|
4884
|
+
})(), Tf = (e) => {
|
|
4860
4885
|
const {
|
|
4861
4886
|
theme: t,
|
|
4862
4887
|
classGroups: n
|
|
4863
4888
|
} = e;
|
|
4864
|
-
return
|
|
4865
|
-
},
|
|
4889
|
+
return kf(n, t);
|
|
4890
|
+
}, kf = (e, t) => {
|
|
4866
4891
|
const n = zi();
|
|
4867
4892
|
for (const o in e) {
|
|
4868
4893
|
const r = e[o];
|
|
@@ -4873,28 +4898,28 @@ const Sf = (e, t) => {
|
|
|
4873
4898
|
const r = e.length;
|
|
4874
4899
|
for (let s = 0; s < r; s++) {
|
|
4875
4900
|
const i = e[s];
|
|
4876
|
-
|
|
4901
|
+
Pf(i, t, n, o);
|
|
4877
4902
|
}
|
|
4878
|
-
},
|
|
4903
|
+
}, Pf = (e, t, n, o) => {
|
|
4879
4904
|
if (typeof e == "string") {
|
|
4880
|
-
|
|
4905
|
+
_f(e, t, n);
|
|
4881
4906
|
return;
|
|
4882
4907
|
}
|
|
4883
4908
|
if (typeof e == "function") {
|
|
4884
|
-
|
|
4909
|
+
Of(e, t, n, o);
|
|
4885
4910
|
return;
|
|
4886
4911
|
}
|
|
4887
|
-
|
|
4888
|
-
},
|
|
4912
|
+
If(e, t, n, o);
|
|
4913
|
+
}, _f = (e, t, n) => {
|
|
4889
4914
|
const o = e === "" ? t : Ui(t, e);
|
|
4890
4915
|
o.classGroupId = n;
|
|
4891
|
-
},
|
|
4892
|
-
if (
|
|
4916
|
+
}, Of = (e, t, n, o) => {
|
|
4917
|
+
if (Mf(e)) {
|
|
4893
4918
|
Go(e(o), t, n, o);
|
|
4894
4919
|
return;
|
|
4895
4920
|
}
|
|
4896
|
-
t.validators === null && (t.validators = []), t.validators.push(
|
|
4897
|
-
},
|
|
4921
|
+
t.validators === null && (t.validators = []), t.validators.push(Ef(n, e));
|
|
4922
|
+
}, If = (e, t, n, o) => {
|
|
4898
4923
|
const r = Object.entries(e), s = r.length;
|
|
4899
4924
|
for (let i = 0; i < s; i++) {
|
|
4900
4925
|
const [a, l] = r[i];
|
|
@@ -4909,7 +4934,7 @@ const Sf = (e, t) => {
|
|
|
4909
4934
|
a || (a = zi(), n.nextPart.set(i, a)), n = a;
|
|
4910
4935
|
}
|
|
4911
4936
|
return n;
|
|
4912
|
-
},
|
|
4937
|
+
}, Mf = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Df = (e) => {
|
|
4913
4938
|
if (e < 1)
|
|
4914
4939
|
return {
|
|
4915
4940
|
get: () => {
|
|
@@ -4933,13 +4958,13 @@ const Sf = (e, t) => {
|
|
|
4933
4958
|
s in n ? n[s] = i : r(s, i);
|
|
4934
4959
|
}
|
|
4935
4960
|
};
|
|
4936
|
-
}, No = "!", qr = ":",
|
|
4961
|
+
}, No = "!", qr = ":", Lf = [], Zr = (e, t, n, o, r) => ({
|
|
4937
4962
|
modifiers: e,
|
|
4938
4963
|
hasImportantModifier: t,
|
|
4939
4964
|
baseClassName: n,
|
|
4940
4965
|
maybePostfixModifierPosition: o,
|
|
4941
4966
|
isExternal: r
|
|
4942
|
-
}),
|
|
4967
|
+
}), Ff = (e) => {
|
|
4943
4968
|
const {
|
|
4944
4969
|
prefix: t,
|
|
4945
4970
|
experimentalParseClassName: n
|
|
@@ -4976,7 +5001,7 @@ const Sf = (e, t) => {
|
|
|
4976
5001
|
};
|
|
4977
5002
|
if (t) {
|
|
4978
5003
|
const r = t + qr, s = o;
|
|
4979
|
-
o = (i) => i.startsWith(r) ? s(i.slice(r.length)) : Zr(
|
|
5004
|
+
o = (i) => i.startsWith(r) ? s(i.slice(r.length)) : Zr(Lf, !1, i, void 0, !0);
|
|
4980
5005
|
}
|
|
4981
5006
|
if (n) {
|
|
4982
5007
|
const r = o;
|
|
@@ -4986,7 +5011,7 @@ const Sf = (e, t) => {
|
|
|
4986
5011
|
});
|
|
4987
5012
|
}
|
|
4988
5013
|
return o;
|
|
4989
|
-
},
|
|
5014
|
+
}, $f = (e) => {
|
|
4990
5015
|
const t = /* @__PURE__ */ new Map();
|
|
4991
5016
|
return e.orderSensitiveModifiers.forEach((n, o) => {
|
|
4992
5017
|
t.set(n, 1e6 + o);
|
|
@@ -4999,18 +5024,18 @@ const Sf = (e, t) => {
|
|
|
4999
5024
|
}
|
|
5000
5025
|
return r.length > 0 && (r.sort(), o.push(...r)), o;
|
|
5001
5026
|
};
|
|
5002
|
-
},
|
|
5003
|
-
cache:
|
|
5004
|
-
parseClassName:
|
|
5005
|
-
sortModifiers:
|
|
5006
|
-
...
|
|
5007
|
-
}),
|
|
5027
|
+
}, zf = (e) => ({
|
|
5028
|
+
cache: Df(e.cacheSize),
|
|
5029
|
+
parseClassName: Ff(e),
|
|
5030
|
+
sortModifiers: $f(e),
|
|
5031
|
+
...Nf(e)
|
|
5032
|
+
}), Bf = /\s+/, Uf = (e, t) => {
|
|
5008
5033
|
const {
|
|
5009
5034
|
parseClassName: n,
|
|
5010
5035
|
getClassGroupId: o,
|
|
5011
5036
|
getConflictingClassGroupIds: r,
|
|
5012
5037
|
sortModifiers: s
|
|
5013
|
-
} = t, i = [], a = e.trim().split(
|
|
5038
|
+
} = t, i = [], a = e.trim().split(Bf);
|
|
5014
5039
|
let l = "";
|
|
5015
5040
|
for (let c = a.length - 1; c >= 0; c -= 1) {
|
|
5016
5041
|
const f = a[c], {
|
|
@@ -5041,14 +5066,14 @@ const Sf = (e, t) => {
|
|
|
5041
5066
|
continue;
|
|
5042
5067
|
i.push(y);
|
|
5043
5068
|
const E = r(x, v);
|
|
5044
|
-
for (let
|
|
5045
|
-
const k = E[
|
|
5069
|
+
for (let $ = 0; $ < E.length; ++$) {
|
|
5070
|
+
const k = E[$];
|
|
5046
5071
|
i.push(C + k);
|
|
5047
5072
|
}
|
|
5048
5073
|
l = f + (l.length > 0 ? " " + l : l);
|
|
5049
5074
|
}
|
|
5050
5075
|
return l;
|
|
5051
|
-
},
|
|
5076
|
+
}, Wf = (...e) => {
|
|
5052
5077
|
let t = 0, n, o, r = "";
|
|
5053
5078
|
for (; t < e.length; )
|
|
5054
5079
|
(n = e[t++]) && (o = Wi(n)) && (r && (r += " "), r += o);
|
|
@@ -5060,34 +5085,34 @@ const Sf = (e, t) => {
|
|
|
5060
5085
|
for (let o = 0; o < e.length; o++)
|
|
5061
5086
|
e[o] && (t = Wi(e[o])) && (n && (n += " "), n += t);
|
|
5062
5087
|
return n;
|
|
5063
|
-
},
|
|
5088
|
+
}, Hf = (e, ...t) => {
|
|
5064
5089
|
let n, o, r, s;
|
|
5065
5090
|
const i = (l) => {
|
|
5066
5091
|
const c = t.reduce((f, p) => p(f), e());
|
|
5067
|
-
return n =
|
|
5092
|
+
return n = zf(c), o = n.cache.get, r = n.cache.set, s = a, a(l);
|
|
5068
5093
|
}, a = (l) => {
|
|
5069
5094
|
const c = o(l);
|
|
5070
5095
|
if (c)
|
|
5071
5096
|
return c;
|
|
5072
|
-
const f =
|
|
5097
|
+
const f = Uf(l, n);
|
|
5073
5098
|
return r(l, f), f;
|
|
5074
5099
|
};
|
|
5075
|
-
return s = i, (...l) => s(
|
|
5076
|
-
},
|
|
5077
|
-
const t = (n) => n[e] ||
|
|
5100
|
+
return s = i, (...l) => s(Wf(...l));
|
|
5101
|
+
}, Vf = [], de = (e) => {
|
|
5102
|
+
const t = (n) => n[e] || Vf;
|
|
5078
5103
|
return t.isThemeGetter = !0, t;
|
|
5079
|
-
}, Hi = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Vi = /^\((?:(\w[\w-]*):)?(.+)\)$/i,
|
|
5104
|
+
}, Hi = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Vi = /^\((?:(\w[\w-]*):)?(.+)\)$/i, jf = /^\d+\/\d+$/, Gf = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Yf = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Kf = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Xf = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, qf = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, yt = (e) => jf.test(e), q = (e) => !!e && !Number.isNaN(Number(e)), Ye = (e) => !!e && Number.isInteger(Number(e)), io = (e) => e.endsWith("%") && q(e.slice(0, -1)), He = (e) => Gf.test(e), Zf = () => !0, Qf = (e) => (
|
|
5080
5105
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
5081
5106
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
5082
5107
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
5083
|
-
|
|
5084
|
-
), ji = () => !1,
|
|
5108
|
+
Yf.test(e) && !Kf.test(e)
|
|
5109
|
+
), ji = () => !1, Jf = (e) => Xf.test(e), ep = (e) => qf.test(e), tp = (e) => !B(e) && !U(e), np = (e) => Rt(e, Ki, ji), B = (e) => Hi.test(e), st = (e) => Rt(e, Xi, Qf), ao = (e) => Rt(e, ap, q), Qr = (e) => Rt(e, Gi, ji), op = (e) => Rt(e, Yi, ep), sn = (e) => Rt(e, qi, Jf), U = (e) => Vi.test(e), Lt = (e) => Tt(e, Xi), rp = (e) => Tt(e, lp), Jr = (e) => Tt(e, Gi), sp = (e) => Tt(e, Ki), ip = (e) => Tt(e, Yi), an = (e) => Tt(e, qi, !0), Rt = (e, t, n) => {
|
|
5085
5110
|
const o = Hi.exec(e);
|
|
5086
5111
|
return o ? o[1] ? t(o[1]) : n(o[2]) : !1;
|
|
5087
5112
|
}, Tt = (e, t, n = !1) => {
|
|
5088
5113
|
const o = Vi.exec(e);
|
|
5089
5114
|
return o ? o[1] ? t(o[1]) : n : !1;
|
|
5090
|
-
}, Gi = (e) => e === "position" || e === "percentage", Yi = (e) => e === "image" || e === "url", Ki = (e) => e === "length" || e === "size" || e === "bg-size", Xi = (e) => e === "length",
|
|
5115
|
+
}, Gi = (e) => e === "position" || e === "percentage", Yi = (e) => e === "image" || e === "url", Ki = (e) => e === "length" || e === "size" || e === "bg-size", Xi = (e) => e === "length", ap = (e) => e === "number", lp = (e) => e === "family-name", qi = (e) => e === "shadow", cp = () => {
|
|
5091
5116
|
const e = de("color"), t = de("font"), n = de("text"), o = de("font-weight"), r = de("tracking"), s = de("leading"), i = de("breakpoint"), a = de("container"), l = de("spacing"), c = de("radius"), f = de("shadow"), p = de("inset-shadow"), g = de("text-shadow"), m = de("drop-shadow"), w = de("blur"), h = de("perspective"), v = de("aspect"), x = de("ease"), S = de("animate"), C = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], y = () => [
|
|
5092
5117
|
"center",
|
|
5093
5118
|
"top",
|
|
@@ -5106,51 +5131,51 @@ const Sf = (e, t) => {
|
|
|
5106
5131
|
"bottom-left",
|
|
5107
5132
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
5108
5133
|
"left-bottom"
|
|
5109
|
-
], E = () => [...y(),
|
|
5110
|
-
span: ["full", Ye,
|
|
5111
|
-
}, Ye,
|
|
5112
|
-
position: [
|
|
5113
|
-
}],
|
|
5134
|
+
], E = () => [...y(), U, B], $ = () => ["auto", "hidden", "clip", "visible", "scroll"], k = () => ["auto", "contain", "none"], N = () => [U, B, l], G = () => [yt, "full", "auto", ...N()], K = () => [Ye, "none", "subgrid", U, B], j = () => ["auto", {
|
|
5135
|
+
span: ["full", Ye, U, B]
|
|
5136
|
+
}, Ye, U, B], X = () => [Ye, "auto", U, B], T = () => ["auto", "min", "max", "fr", U, B], F = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], H = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], D = () => ["auto", ...N()], Y = () => [yt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...N()], R = () => [e, U, B], ne = () => [...y(), Jr, Qr, {
|
|
5137
|
+
position: [U, B]
|
|
5138
|
+
}], le = () => ["no-repeat", {
|
|
5114
5139
|
repeat: ["", "x", "y", "space", "round"]
|
|
5115
|
-
}],
|
|
5116
|
-
size: [
|
|
5117
|
-
}],
|
|
5140
|
+
}], A = () => ["auto", "cover", "contain", sp, np, {
|
|
5141
|
+
size: [U, B]
|
|
5142
|
+
}], L = () => [io, Lt, st], _ = () => [
|
|
5118
5143
|
// Deprecated since Tailwind CSS v4.0.0
|
|
5119
5144
|
"",
|
|
5120
5145
|
"none",
|
|
5121
5146
|
"full",
|
|
5122
5147
|
c,
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
],
|
|
5148
|
+
U,
|
|
5149
|
+
B
|
|
5150
|
+
], z = () => ["", q, Lt, st], M = () => ["solid", "dashed", "dotted", "double"], re = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], I = () => [q, io, Jr, Qr], J = () => [
|
|
5126
5151
|
// Deprecated since Tailwind CSS v4.0.0
|
|
5127
5152
|
"",
|
|
5128
5153
|
"none",
|
|
5129
5154
|
w,
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
], se = () => ["none",
|
|
5155
|
+
U,
|
|
5156
|
+
B
|
|
5157
|
+
], se = () => ["none", q, U, B], Z = () => ["none", q, U, B], ee = () => [q, U, B], oe = () => [yt, "full", ...N()];
|
|
5133
5158
|
return {
|
|
5134
5159
|
cacheSize: 500,
|
|
5135
5160
|
theme: {
|
|
5136
5161
|
animate: ["spin", "ping", "pulse", "bounce"],
|
|
5137
5162
|
aspect: ["video"],
|
|
5138
|
-
blur: [
|
|
5139
|
-
breakpoint: [
|
|
5140
|
-
color: [
|
|
5141
|
-
container: [
|
|
5142
|
-
"drop-shadow": [
|
|
5163
|
+
blur: [He],
|
|
5164
|
+
breakpoint: [He],
|
|
5165
|
+
color: [Zf],
|
|
5166
|
+
container: [He],
|
|
5167
|
+
"drop-shadow": [He],
|
|
5143
5168
|
ease: ["in", "out", "in-out"],
|
|
5144
|
-
font: [
|
|
5169
|
+
font: [tp],
|
|
5145
5170
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
5146
|
-
"inset-shadow": [
|
|
5171
|
+
"inset-shadow": [He],
|
|
5147
5172
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
5148
5173
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
5149
|
-
radius: [
|
|
5150
|
-
shadow: [
|
|
5151
|
-
spacing: ["px",
|
|
5152
|
-
text: [
|
|
5153
|
-
"text-shadow": [
|
|
5174
|
+
radius: [He],
|
|
5175
|
+
shadow: [He],
|
|
5176
|
+
spacing: ["px", q],
|
|
5177
|
+
text: [He],
|
|
5178
|
+
"text-shadow": [He],
|
|
5154
5179
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
5155
5180
|
},
|
|
5156
5181
|
classGroups: {
|
|
@@ -5162,7 +5187,7 @@ const Sf = (e, t) => {
|
|
|
5162
5187
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
5163
5188
|
*/
|
|
5164
5189
|
aspect: [{
|
|
5165
|
-
aspect: ["auto", "square", yt,
|
|
5190
|
+
aspect: ["auto", "square", yt, B, U, v]
|
|
5166
5191
|
}],
|
|
5167
5192
|
/**
|
|
5168
5193
|
* Container
|
|
@@ -5175,7 +5200,7 @@ const Sf = (e, t) => {
|
|
|
5175
5200
|
* @see https://tailwindcss.com/docs/columns
|
|
5176
5201
|
*/
|
|
5177
5202
|
columns: [{
|
|
5178
|
-
columns: [
|
|
5203
|
+
columns: [q, B, U, a]
|
|
5179
5204
|
}],
|
|
5180
5205
|
/**
|
|
5181
5206
|
* Break After
|
|
@@ -5260,21 +5285,21 @@ const Sf = (e, t) => {
|
|
|
5260
5285
|
* @see https://tailwindcss.com/docs/overflow
|
|
5261
5286
|
*/
|
|
5262
5287
|
overflow: [{
|
|
5263
|
-
overflow:
|
|
5288
|
+
overflow: $()
|
|
5264
5289
|
}],
|
|
5265
5290
|
/**
|
|
5266
5291
|
* Overflow X
|
|
5267
5292
|
* @see https://tailwindcss.com/docs/overflow
|
|
5268
5293
|
*/
|
|
5269
5294
|
"overflow-x": [{
|
|
5270
|
-
"overflow-x":
|
|
5295
|
+
"overflow-x": $()
|
|
5271
5296
|
}],
|
|
5272
5297
|
/**
|
|
5273
5298
|
* Overflow Y
|
|
5274
5299
|
* @see https://tailwindcss.com/docs/overflow
|
|
5275
5300
|
*/
|
|
5276
5301
|
"overflow-y": [{
|
|
5277
|
-
"overflow-y":
|
|
5302
|
+
"overflow-y": $()
|
|
5278
5303
|
}],
|
|
5279
5304
|
/**
|
|
5280
5305
|
* Overscroll Behavior
|
|
@@ -5375,7 +5400,7 @@ const Sf = (e, t) => {
|
|
|
5375
5400
|
* @see https://tailwindcss.com/docs/z-index
|
|
5376
5401
|
*/
|
|
5377
5402
|
z: [{
|
|
5378
|
-
z: [Ye, "auto",
|
|
5403
|
+
z: [Ye, "auto", U, B]
|
|
5379
5404
|
}],
|
|
5380
5405
|
// ------------------------
|
|
5381
5406
|
// --- Flexbox and Grid ---
|
|
@@ -5385,7 +5410,7 @@ const Sf = (e, t) => {
|
|
|
5385
5410
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
5386
5411
|
*/
|
|
5387
5412
|
basis: [{
|
|
5388
|
-
basis: [yt, "full", "auto", a, ...
|
|
5413
|
+
basis: [yt, "full", "auto", a, ...N()]
|
|
5389
5414
|
}],
|
|
5390
5415
|
/**
|
|
5391
5416
|
* Flex Direction
|
|
@@ -5406,35 +5431,35 @@ const Sf = (e, t) => {
|
|
|
5406
5431
|
* @see https://tailwindcss.com/docs/flex
|
|
5407
5432
|
*/
|
|
5408
5433
|
flex: [{
|
|
5409
|
-
flex: [
|
|
5434
|
+
flex: [q, yt, "auto", "initial", "none", B]
|
|
5410
5435
|
}],
|
|
5411
5436
|
/**
|
|
5412
5437
|
* Flex Grow
|
|
5413
5438
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
5414
5439
|
*/
|
|
5415
5440
|
grow: [{
|
|
5416
|
-
grow: ["",
|
|
5441
|
+
grow: ["", q, U, B]
|
|
5417
5442
|
}],
|
|
5418
5443
|
/**
|
|
5419
5444
|
* Flex Shrink
|
|
5420
5445
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
5421
5446
|
*/
|
|
5422
5447
|
shrink: [{
|
|
5423
|
-
shrink: ["",
|
|
5448
|
+
shrink: ["", q, U, B]
|
|
5424
5449
|
}],
|
|
5425
5450
|
/**
|
|
5426
5451
|
* Order
|
|
5427
5452
|
* @see https://tailwindcss.com/docs/order
|
|
5428
5453
|
*/
|
|
5429
5454
|
order: [{
|
|
5430
|
-
order: [Ye, "first", "last", "none",
|
|
5455
|
+
order: [Ye, "first", "last", "none", U, B]
|
|
5431
5456
|
}],
|
|
5432
5457
|
/**
|
|
5433
5458
|
* Grid Template Columns
|
|
5434
5459
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
5435
5460
|
*/
|
|
5436
5461
|
"grid-cols": [{
|
|
5437
|
-
"grid-cols":
|
|
5462
|
+
"grid-cols": K()
|
|
5438
5463
|
}],
|
|
5439
5464
|
/**
|
|
5440
5465
|
* Grid Column Start / End
|
|
@@ -5448,21 +5473,21 @@ const Sf = (e, t) => {
|
|
|
5448
5473
|
* @see https://tailwindcss.com/docs/grid-column
|
|
5449
5474
|
*/
|
|
5450
5475
|
"col-start": [{
|
|
5451
|
-
"col-start":
|
|
5476
|
+
"col-start": X()
|
|
5452
5477
|
}],
|
|
5453
5478
|
/**
|
|
5454
5479
|
* Grid Column End
|
|
5455
5480
|
* @see https://tailwindcss.com/docs/grid-column
|
|
5456
5481
|
*/
|
|
5457
5482
|
"col-end": [{
|
|
5458
|
-
"col-end":
|
|
5483
|
+
"col-end": X()
|
|
5459
5484
|
}],
|
|
5460
5485
|
/**
|
|
5461
5486
|
* Grid Template Rows
|
|
5462
5487
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
5463
5488
|
*/
|
|
5464
5489
|
"grid-rows": [{
|
|
5465
|
-
"grid-rows":
|
|
5490
|
+
"grid-rows": K()
|
|
5466
5491
|
}],
|
|
5467
5492
|
/**
|
|
5468
5493
|
* Grid Row Start / End
|
|
@@ -5476,14 +5501,14 @@ const Sf = (e, t) => {
|
|
|
5476
5501
|
* @see https://tailwindcss.com/docs/grid-row
|
|
5477
5502
|
*/
|
|
5478
5503
|
"row-start": [{
|
|
5479
|
-
"row-start":
|
|
5504
|
+
"row-start": X()
|
|
5480
5505
|
}],
|
|
5481
5506
|
/**
|
|
5482
5507
|
* Grid Row End
|
|
5483
5508
|
* @see https://tailwindcss.com/docs/grid-row
|
|
5484
5509
|
*/
|
|
5485
5510
|
"row-end": [{
|
|
5486
|
-
"row-end":
|
|
5511
|
+
"row-end": X()
|
|
5487
5512
|
}],
|
|
5488
5513
|
/**
|
|
5489
5514
|
* Grid Auto Flow
|
|
@@ -5511,21 +5536,21 @@ const Sf = (e, t) => {
|
|
|
5511
5536
|
* @see https://tailwindcss.com/docs/gap
|
|
5512
5537
|
*/
|
|
5513
5538
|
gap: [{
|
|
5514
|
-
gap:
|
|
5539
|
+
gap: N()
|
|
5515
5540
|
}],
|
|
5516
5541
|
/**
|
|
5517
5542
|
* Gap X
|
|
5518
5543
|
* @see https://tailwindcss.com/docs/gap
|
|
5519
5544
|
*/
|
|
5520
5545
|
"gap-x": [{
|
|
5521
|
-
"gap-x":
|
|
5546
|
+
"gap-x": N()
|
|
5522
5547
|
}],
|
|
5523
5548
|
/**
|
|
5524
5549
|
* Gap Y
|
|
5525
5550
|
* @see https://tailwindcss.com/docs/gap
|
|
5526
5551
|
*/
|
|
5527
5552
|
"gap-y": [{
|
|
5528
|
-
"gap-y":
|
|
5553
|
+
"gap-y": N()
|
|
5529
5554
|
}],
|
|
5530
5555
|
/**
|
|
5531
5556
|
* Justify Content
|
|
@@ -5539,14 +5564,14 @@ const Sf = (e, t) => {
|
|
|
5539
5564
|
* @see https://tailwindcss.com/docs/justify-items
|
|
5540
5565
|
*/
|
|
5541
5566
|
"justify-items": [{
|
|
5542
|
-
"justify-items": [...
|
|
5567
|
+
"justify-items": [...H(), "normal"]
|
|
5543
5568
|
}],
|
|
5544
5569
|
/**
|
|
5545
5570
|
* Justify Self
|
|
5546
5571
|
* @see https://tailwindcss.com/docs/justify-self
|
|
5547
5572
|
*/
|
|
5548
5573
|
"justify-self": [{
|
|
5549
|
-
"justify-self": ["auto", ...
|
|
5574
|
+
"justify-self": ["auto", ...H()]
|
|
5550
5575
|
}],
|
|
5551
5576
|
/**
|
|
5552
5577
|
* Align Content
|
|
@@ -5560,7 +5585,7 @@ const Sf = (e, t) => {
|
|
|
5560
5585
|
* @see https://tailwindcss.com/docs/align-items
|
|
5561
5586
|
*/
|
|
5562
5587
|
"align-items": [{
|
|
5563
|
-
items: [...
|
|
5588
|
+
items: [...H(), {
|
|
5564
5589
|
baseline: ["", "last"]
|
|
5565
5590
|
}]
|
|
5566
5591
|
}],
|
|
@@ -5569,7 +5594,7 @@ const Sf = (e, t) => {
|
|
|
5569
5594
|
* @see https://tailwindcss.com/docs/align-self
|
|
5570
5595
|
*/
|
|
5571
5596
|
"align-self": [{
|
|
5572
|
-
self: ["auto", ...
|
|
5597
|
+
self: ["auto", ...H(), {
|
|
5573
5598
|
baseline: ["", "last"]
|
|
5574
5599
|
}]
|
|
5575
5600
|
}],
|
|
@@ -5585,14 +5610,14 @@ const Sf = (e, t) => {
|
|
|
5585
5610
|
* @see https://tailwindcss.com/docs/place-items
|
|
5586
5611
|
*/
|
|
5587
5612
|
"place-items": [{
|
|
5588
|
-
"place-items": [...
|
|
5613
|
+
"place-items": [...H(), "baseline"]
|
|
5589
5614
|
}],
|
|
5590
5615
|
/**
|
|
5591
5616
|
* Place Self
|
|
5592
5617
|
* @see https://tailwindcss.com/docs/place-self
|
|
5593
5618
|
*/
|
|
5594
5619
|
"place-self": [{
|
|
5595
|
-
"place-self": ["auto", ...
|
|
5620
|
+
"place-self": ["auto", ...H()]
|
|
5596
5621
|
}],
|
|
5597
5622
|
// Spacing
|
|
5598
5623
|
/**
|
|
@@ -5600,63 +5625,63 @@ const Sf = (e, t) => {
|
|
|
5600
5625
|
* @see https://tailwindcss.com/docs/padding
|
|
5601
5626
|
*/
|
|
5602
5627
|
p: [{
|
|
5603
|
-
p:
|
|
5628
|
+
p: N()
|
|
5604
5629
|
}],
|
|
5605
5630
|
/**
|
|
5606
5631
|
* Padding X
|
|
5607
5632
|
* @see https://tailwindcss.com/docs/padding
|
|
5608
5633
|
*/
|
|
5609
5634
|
px: [{
|
|
5610
|
-
px:
|
|
5635
|
+
px: N()
|
|
5611
5636
|
}],
|
|
5612
5637
|
/**
|
|
5613
5638
|
* Padding Y
|
|
5614
5639
|
* @see https://tailwindcss.com/docs/padding
|
|
5615
5640
|
*/
|
|
5616
5641
|
py: [{
|
|
5617
|
-
py:
|
|
5642
|
+
py: N()
|
|
5618
5643
|
}],
|
|
5619
5644
|
/**
|
|
5620
5645
|
* Padding Start
|
|
5621
5646
|
* @see https://tailwindcss.com/docs/padding
|
|
5622
5647
|
*/
|
|
5623
5648
|
ps: [{
|
|
5624
|
-
ps:
|
|
5649
|
+
ps: N()
|
|
5625
5650
|
}],
|
|
5626
5651
|
/**
|
|
5627
5652
|
* Padding End
|
|
5628
5653
|
* @see https://tailwindcss.com/docs/padding
|
|
5629
5654
|
*/
|
|
5630
5655
|
pe: [{
|
|
5631
|
-
pe:
|
|
5656
|
+
pe: N()
|
|
5632
5657
|
}],
|
|
5633
5658
|
/**
|
|
5634
5659
|
* Padding Top
|
|
5635
5660
|
* @see https://tailwindcss.com/docs/padding
|
|
5636
5661
|
*/
|
|
5637
5662
|
pt: [{
|
|
5638
|
-
pt:
|
|
5663
|
+
pt: N()
|
|
5639
5664
|
}],
|
|
5640
5665
|
/**
|
|
5641
5666
|
* Padding Right
|
|
5642
5667
|
* @see https://tailwindcss.com/docs/padding
|
|
5643
5668
|
*/
|
|
5644
5669
|
pr: [{
|
|
5645
|
-
pr:
|
|
5670
|
+
pr: N()
|
|
5646
5671
|
}],
|
|
5647
5672
|
/**
|
|
5648
5673
|
* Padding Bottom
|
|
5649
5674
|
* @see https://tailwindcss.com/docs/padding
|
|
5650
5675
|
*/
|
|
5651
5676
|
pb: [{
|
|
5652
|
-
pb:
|
|
5677
|
+
pb: N()
|
|
5653
5678
|
}],
|
|
5654
5679
|
/**
|
|
5655
5680
|
* Padding Left
|
|
5656
5681
|
* @see https://tailwindcss.com/docs/padding
|
|
5657
5682
|
*/
|
|
5658
5683
|
pl: [{
|
|
5659
|
-
pl:
|
|
5684
|
+
pl: N()
|
|
5660
5685
|
}],
|
|
5661
5686
|
/**
|
|
5662
5687
|
* Margin
|
|
@@ -5726,7 +5751,7 @@ const Sf = (e, t) => {
|
|
|
5726
5751
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
5727
5752
|
*/
|
|
5728
5753
|
"space-x": [{
|
|
5729
|
-
"space-x":
|
|
5754
|
+
"space-x": N()
|
|
5730
5755
|
}],
|
|
5731
5756
|
/**
|
|
5732
5757
|
* Space Between X Reverse
|
|
@@ -5738,7 +5763,7 @@ const Sf = (e, t) => {
|
|
|
5738
5763
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
5739
5764
|
*/
|
|
5740
5765
|
"space-y": [{
|
|
5741
|
-
"space-y":
|
|
5766
|
+
"space-y": N()
|
|
5742
5767
|
}],
|
|
5743
5768
|
/**
|
|
5744
5769
|
* Space Between Y Reverse
|
|
@@ -5839,21 +5864,21 @@ const Sf = (e, t) => {
|
|
|
5839
5864
|
* @see https://tailwindcss.com/docs/font-weight
|
|
5840
5865
|
*/
|
|
5841
5866
|
"font-weight": [{
|
|
5842
|
-
font: [o,
|
|
5867
|
+
font: [o, U, ao]
|
|
5843
5868
|
}],
|
|
5844
5869
|
/**
|
|
5845
5870
|
* Font Stretch
|
|
5846
5871
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
5847
5872
|
*/
|
|
5848
5873
|
"font-stretch": [{
|
|
5849
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", io,
|
|
5874
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", io, B]
|
|
5850
5875
|
}],
|
|
5851
5876
|
/**
|
|
5852
5877
|
* Font Family
|
|
5853
5878
|
* @see https://tailwindcss.com/docs/font-family
|
|
5854
5879
|
*/
|
|
5855
5880
|
"font-family": [{
|
|
5856
|
-
font: [
|
|
5881
|
+
font: [rp, B, t]
|
|
5857
5882
|
}],
|
|
5858
5883
|
/**
|
|
5859
5884
|
* Font Variant Numeric
|
|
@@ -5890,14 +5915,14 @@ const Sf = (e, t) => {
|
|
|
5890
5915
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
5891
5916
|
*/
|
|
5892
5917
|
tracking: [{
|
|
5893
|
-
tracking: [r,
|
|
5918
|
+
tracking: [r, U, B]
|
|
5894
5919
|
}],
|
|
5895
5920
|
/**
|
|
5896
5921
|
* Line Clamp
|
|
5897
5922
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
5898
5923
|
*/
|
|
5899
5924
|
"line-clamp": [{
|
|
5900
|
-
"line-clamp": [
|
|
5925
|
+
"line-clamp": [q, "none", U, ao]
|
|
5901
5926
|
}],
|
|
5902
5927
|
/**
|
|
5903
5928
|
* Line Height
|
|
@@ -5907,7 +5932,7 @@ const Sf = (e, t) => {
|
|
|
5907
5932
|
leading: [
|
|
5908
5933
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
5909
5934
|
s,
|
|
5910
|
-
...
|
|
5935
|
+
...N()
|
|
5911
5936
|
]
|
|
5912
5937
|
}],
|
|
5913
5938
|
/**
|
|
@@ -5915,7 +5940,7 @@ const Sf = (e, t) => {
|
|
|
5915
5940
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
5916
5941
|
*/
|
|
5917
5942
|
"list-image": [{
|
|
5918
|
-
"list-image": ["none",
|
|
5943
|
+
"list-image": ["none", U, B]
|
|
5919
5944
|
}],
|
|
5920
5945
|
/**
|
|
5921
5946
|
* List Style Position
|
|
@@ -5929,7 +5954,7 @@ const Sf = (e, t) => {
|
|
|
5929
5954
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
5930
5955
|
*/
|
|
5931
5956
|
"list-style-type": [{
|
|
5932
|
-
list: ["disc", "decimal", "none",
|
|
5957
|
+
list: ["disc", "decimal", "none", U, B]
|
|
5933
5958
|
}],
|
|
5934
5959
|
/**
|
|
5935
5960
|
* Text Alignment
|
|
@@ -5963,14 +5988,14 @@ const Sf = (e, t) => {
|
|
|
5963
5988
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
5964
5989
|
*/
|
|
5965
5990
|
"text-decoration-style": [{
|
|
5966
|
-
decoration: [...
|
|
5991
|
+
decoration: [...M(), "wavy"]
|
|
5967
5992
|
}],
|
|
5968
5993
|
/**
|
|
5969
5994
|
* Text Decoration Thickness
|
|
5970
5995
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
5971
5996
|
*/
|
|
5972
5997
|
"text-decoration-thickness": [{
|
|
5973
|
-
decoration: [
|
|
5998
|
+
decoration: [q, "from-font", "auto", U, st]
|
|
5974
5999
|
}],
|
|
5975
6000
|
/**
|
|
5976
6001
|
* Text Decoration Color
|
|
@@ -5984,7 +6009,7 @@ const Sf = (e, t) => {
|
|
|
5984
6009
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
5985
6010
|
*/
|
|
5986
6011
|
"underline-offset": [{
|
|
5987
|
-
"underline-offset": [
|
|
6012
|
+
"underline-offset": [q, "auto", U, B]
|
|
5988
6013
|
}],
|
|
5989
6014
|
/**
|
|
5990
6015
|
* Text Transform
|
|
@@ -6008,14 +6033,14 @@ const Sf = (e, t) => {
|
|
|
6008
6033
|
* @see https://tailwindcss.com/docs/text-indent
|
|
6009
6034
|
*/
|
|
6010
6035
|
indent: [{
|
|
6011
|
-
indent:
|
|
6036
|
+
indent: N()
|
|
6012
6037
|
}],
|
|
6013
6038
|
/**
|
|
6014
6039
|
* Vertical Alignment
|
|
6015
6040
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
6016
6041
|
*/
|
|
6017
6042
|
"vertical-align": [{
|
|
6018
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
6043
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", U, B]
|
|
6019
6044
|
}],
|
|
6020
6045
|
/**
|
|
6021
6046
|
* Whitespace
|
|
@@ -6050,7 +6075,7 @@ const Sf = (e, t) => {
|
|
|
6050
6075
|
* @see https://tailwindcss.com/docs/content
|
|
6051
6076
|
*/
|
|
6052
6077
|
content: [{
|
|
6053
|
-
content: ["none",
|
|
6078
|
+
content: ["none", U, B]
|
|
6054
6079
|
}],
|
|
6055
6080
|
// -------------------
|
|
6056
6081
|
// --- Backgrounds ---
|
|
@@ -6088,14 +6113,14 @@ const Sf = (e, t) => {
|
|
|
6088
6113
|
* @see https://tailwindcss.com/docs/background-repeat
|
|
6089
6114
|
*/
|
|
6090
6115
|
"bg-repeat": [{
|
|
6091
|
-
bg:
|
|
6116
|
+
bg: le()
|
|
6092
6117
|
}],
|
|
6093
6118
|
/**
|
|
6094
6119
|
* Background Size
|
|
6095
6120
|
* @see https://tailwindcss.com/docs/background-size
|
|
6096
6121
|
*/
|
|
6097
6122
|
"bg-size": [{
|
|
6098
|
-
bg:
|
|
6123
|
+
bg: A()
|
|
6099
6124
|
}],
|
|
6100
6125
|
/**
|
|
6101
6126
|
* Background Image
|
|
@@ -6105,10 +6130,10 @@ const Sf = (e, t) => {
|
|
|
6105
6130
|
bg: ["none", {
|
|
6106
6131
|
linear: [{
|
|
6107
6132
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
6108
|
-
}, Ye,
|
|
6109
|
-
radial: ["",
|
|
6110
|
-
conic: [Ye,
|
|
6111
|
-
},
|
|
6133
|
+
}, Ye, U, B],
|
|
6134
|
+
radial: ["", U, B],
|
|
6135
|
+
conic: [Ye, U, B]
|
|
6136
|
+
}, ip, op]
|
|
6112
6137
|
}],
|
|
6113
6138
|
/**
|
|
6114
6139
|
* Background Color
|
|
@@ -6122,21 +6147,21 @@ const Sf = (e, t) => {
|
|
|
6122
6147
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
6123
6148
|
*/
|
|
6124
6149
|
"gradient-from-pos": [{
|
|
6125
|
-
from:
|
|
6150
|
+
from: L()
|
|
6126
6151
|
}],
|
|
6127
6152
|
/**
|
|
6128
6153
|
* Gradient Color Stops Via Position
|
|
6129
6154
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
6130
6155
|
*/
|
|
6131
6156
|
"gradient-via-pos": [{
|
|
6132
|
-
via:
|
|
6157
|
+
via: L()
|
|
6133
6158
|
}],
|
|
6134
6159
|
/**
|
|
6135
6160
|
* Gradient Color Stops To Position
|
|
6136
6161
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
6137
6162
|
*/
|
|
6138
6163
|
"gradient-to-pos": [{
|
|
6139
|
-
to:
|
|
6164
|
+
to: L()
|
|
6140
6165
|
}],
|
|
6141
6166
|
/**
|
|
6142
6167
|
* Gradient Color Stops From
|
|
@@ -6167,175 +6192,175 @@ const Sf = (e, t) => {
|
|
|
6167
6192
|
* @see https://tailwindcss.com/docs/border-radius
|
|
6168
6193
|
*/
|
|
6169
6194
|
rounded: [{
|
|
6170
|
-
rounded:
|
|
6195
|
+
rounded: _()
|
|
6171
6196
|
}],
|
|
6172
6197
|
/**
|
|
6173
6198
|
* Border Radius Start
|
|
6174
6199
|
* @see https://tailwindcss.com/docs/border-radius
|
|
6175
6200
|
*/
|
|
6176
6201
|
"rounded-s": [{
|
|
6177
|
-
"rounded-s":
|
|
6202
|
+
"rounded-s": _()
|
|
6178
6203
|
}],
|
|
6179
6204
|
/**
|
|
6180
6205
|
* Border Radius End
|
|
6181
6206
|
* @see https://tailwindcss.com/docs/border-radius
|
|
6182
6207
|
*/
|
|
6183
6208
|
"rounded-e": [{
|
|
6184
|
-
"rounded-e":
|
|
6209
|
+
"rounded-e": _()
|
|
6185
6210
|
}],
|
|
6186
6211
|
/**
|
|
6187
6212
|
* Border Radius Top
|
|
6188
6213
|
* @see https://tailwindcss.com/docs/border-radius
|
|
6189
6214
|
*/
|
|
6190
6215
|
"rounded-t": [{
|
|
6191
|
-
"rounded-t":
|
|
6216
|
+
"rounded-t": _()
|
|
6192
6217
|
}],
|
|
6193
6218
|
/**
|
|
6194
6219
|
* Border Radius Right
|
|
6195
6220
|
* @see https://tailwindcss.com/docs/border-radius
|
|
6196
6221
|
*/
|
|
6197
6222
|
"rounded-r": [{
|
|
6198
|
-
"rounded-r":
|
|
6223
|
+
"rounded-r": _()
|
|
6199
6224
|
}],
|
|
6200
6225
|
/**
|
|
6201
6226
|
* Border Radius Bottom
|
|
6202
6227
|
* @see https://tailwindcss.com/docs/border-radius
|
|
6203
6228
|
*/
|
|
6204
6229
|
"rounded-b": [{
|
|
6205
|
-
"rounded-b":
|
|
6230
|
+
"rounded-b": _()
|
|
6206
6231
|
}],
|
|
6207
6232
|
/**
|
|
6208
6233
|
* Border Radius Left
|
|
6209
6234
|
* @see https://tailwindcss.com/docs/border-radius
|
|
6210
6235
|
*/
|
|
6211
6236
|
"rounded-l": [{
|
|
6212
|
-
"rounded-l":
|
|
6237
|
+
"rounded-l": _()
|
|
6213
6238
|
}],
|
|
6214
6239
|
/**
|
|
6215
6240
|
* Border Radius Start Start
|
|
6216
6241
|
* @see https://tailwindcss.com/docs/border-radius
|
|
6217
6242
|
*/
|
|
6218
6243
|
"rounded-ss": [{
|
|
6219
|
-
"rounded-ss":
|
|
6244
|
+
"rounded-ss": _()
|
|
6220
6245
|
}],
|
|
6221
6246
|
/**
|
|
6222
6247
|
* Border Radius Start End
|
|
6223
6248
|
* @see https://tailwindcss.com/docs/border-radius
|
|
6224
6249
|
*/
|
|
6225
6250
|
"rounded-se": [{
|
|
6226
|
-
"rounded-se":
|
|
6251
|
+
"rounded-se": _()
|
|
6227
6252
|
}],
|
|
6228
6253
|
/**
|
|
6229
6254
|
* Border Radius End End
|
|
6230
6255
|
* @see https://tailwindcss.com/docs/border-radius
|
|
6231
6256
|
*/
|
|
6232
6257
|
"rounded-ee": [{
|
|
6233
|
-
"rounded-ee":
|
|
6258
|
+
"rounded-ee": _()
|
|
6234
6259
|
}],
|
|
6235
6260
|
/**
|
|
6236
6261
|
* Border Radius End Start
|
|
6237
6262
|
* @see https://tailwindcss.com/docs/border-radius
|
|
6238
6263
|
*/
|
|
6239
6264
|
"rounded-es": [{
|
|
6240
|
-
"rounded-es":
|
|
6265
|
+
"rounded-es": _()
|
|
6241
6266
|
}],
|
|
6242
6267
|
/**
|
|
6243
6268
|
* Border Radius Top Left
|
|
6244
6269
|
* @see https://tailwindcss.com/docs/border-radius
|
|
6245
6270
|
*/
|
|
6246
6271
|
"rounded-tl": [{
|
|
6247
|
-
"rounded-tl":
|
|
6272
|
+
"rounded-tl": _()
|
|
6248
6273
|
}],
|
|
6249
6274
|
/**
|
|
6250
6275
|
* Border Radius Top Right
|
|
6251
6276
|
* @see https://tailwindcss.com/docs/border-radius
|
|
6252
6277
|
*/
|
|
6253
6278
|
"rounded-tr": [{
|
|
6254
|
-
"rounded-tr":
|
|
6279
|
+
"rounded-tr": _()
|
|
6255
6280
|
}],
|
|
6256
6281
|
/**
|
|
6257
6282
|
* Border Radius Bottom Right
|
|
6258
6283
|
* @see https://tailwindcss.com/docs/border-radius
|
|
6259
6284
|
*/
|
|
6260
6285
|
"rounded-br": [{
|
|
6261
|
-
"rounded-br":
|
|
6286
|
+
"rounded-br": _()
|
|
6262
6287
|
}],
|
|
6263
6288
|
/**
|
|
6264
6289
|
* Border Radius Bottom Left
|
|
6265
6290
|
* @see https://tailwindcss.com/docs/border-radius
|
|
6266
6291
|
*/
|
|
6267
6292
|
"rounded-bl": [{
|
|
6268
|
-
"rounded-bl":
|
|
6293
|
+
"rounded-bl": _()
|
|
6269
6294
|
}],
|
|
6270
6295
|
/**
|
|
6271
6296
|
* Border Width
|
|
6272
6297
|
* @see https://tailwindcss.com/docs/border-width
|
|
6273
6298
|
*/
|
|
6274
6299
|
"border-w": [{
|
|
6275
|
-
border:
|
|
6300
|
+
border: z()
|
|
6276
6301
|
}],
|
|
6277
6302
|
/**
|
|
6278
6303
|
* Border Width X
|
|
6279
6304
|
* @see https://tailwindcss.com/docs/border-width
|
|
6280
6305
|
*/
|
|
6281
6306
|
"border-w-x": [{
|
|
6282
|
-
"border-x":
|
|
6307
|
+
"border-x": z()
|
|
6283
6308
|
}],
|
|
6284
6309
|
/**
|
|
6285
6310
|
* Border Width Y
|
|
6286
6311
|
* @see https://tailwindcss.com/docs/border-width
|
|
6287
6312
|
*/
|
|
6288
6313
|
"border-w-y": [{
|
|
6289
|
-
"border-y":
|
|
6314
|
+
"border-y": z()
|
|
6290
6315
|
}],
|
|
6291
6316
|
/**
|
|
6292
6317
|
* Border Width Start
|
|
6293
6318
|
* @see https://tailwindcss.com/docs/border-width
|
|
6294
6319
|
*/
|
|
6295
6320
|
"border-w-s": [{
|
|
6296
|
-
"border-s":
|
|
6321
|
+
"border-s": z()
|
|
6297
6322
|
}],
|
|
6298
6323
|
/**
|
|
6299
6324
|
* Border Width End
|
|
6300
6325
|
* @see https://tailwindcss.com/docs/border-width
|
|
6301
6326
|
*/
|
|
6302
6327
|
"border-w-e": [{
|
|
6303
|
-
"border-e":
|
|
6328
|
+
"border-e": z()
|
|
6304
6329
|
}],
|
|
6305
6330
|
/**
|
|
6306
6331
|
* Border Width Top
|
|
6307
6332
|
* @see https://tailwindcss.com/docs/border-width
|
|
6308
6333
|
*/
|
|
6309
6334
|
"border-w-t": [{
|
|
6310
|
-
"border-t":
|
|
6335
|
+
"border-t": z()
|
|
6311
6336
|
}],
|
|
6312
6337
|
/**
|
|
6313
6338
|
* Border Width Right
|
|
6314
6339
|
* @see https://tailwindcss.com/docs/border-width
|
|
6315
6340
|
*/
|
|
6316
6341
|
"border-w-r": [{
|
|
6317
|
-
"border-r":
|
|
6342
|
+
"border-r": z()
|
|
6318
6343
|
}],
|
|
6319
6344
|
/**
|
|
6320
6345
|
* Border Width Bottom
|
|
6321
6346
|
* @see https://tailwindcss.com/docs/border-width
|
|
6322
6347
|
*/
|
|
6323
6348
|
"border-w-b": [{
|
|
6324
|
-
"border-b":
|
|
6349
|
+
"border-b": z()
|
|
6325
6350
|
}],
|
|
6326
6351
|
/**
|
|
6327
6352
|
* Border Width Left
|
|
6328
6353
|
* @see https://tailwindcss.com/docs/border-width
|
|
6329
6354
|
*/
|
|
6330
6355
|
"border-w-l": [{
|
|
6331
|
-
"border-l":
|
|
6356
|
+
"border-l": z()
|
|
6332
6357
|
}],
|
|
6333
6358
|
/**
|
|
6334
6359
|
* Divide Width X
|
|
6335
6360
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
6336
6361
|
*/
|
|
6337
6362
|
"divide-x": [{
|
|
6338
|
-
"divide-x":
|
|
6363
|
+
"divide-x": z()
|
|
6339
6364
|
}],
|
|
6340
6365
|
/**
|
|
6341
6366
|
* Divide Width X Reverse
|
|
@@ -6347,7 +6372,7 @@ const Sf = (e, t) => {
|
|
|
6347
6372
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
6348
6373
|
*/
|
|
6349
6374
|
"divide-y": [{
|
|
6350
|
-
"divide-y":
|
|
6375
|
+
"divide-y": z()
|
|
6351
6376
|
}],
|
|
6352
6377
|
/**
|
|
6353
6378
|
* Divide Width Y Reverse
|
|
@@ -6359,14 +6384,14 @@ const Sf = (e, t) => {
|
|
|
6359
6384
|
* @see https://tailwindcss.com/docs/border-style
|
|
6360
6385
|
*/
|
|
6361
6386
|
"border-style": [{
|
|
6362
|
-
border: [...
|
|
6387
|
+
border: [...M(), "hidden", "none"]
|
|
6363
6388
|
}],
|
|
6364
6389
|
/**
|
|
6365
6390
|
* Divide Style
|
|
6366
6391
|
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
|
6367
6392
|
*/
|
|
6368
6393
|
"divide-style": [{
|
|
6369
|
-
divide: [...
|
|
6394
|
+
divide: [...M(), "hidden", "none"]
|
|
6370
6395
|
}],
|
|
6371
6396
|
/**
|
|
6372
6397
|
* Border Color
|
|
@@ -6443,21 +6468,21 @@ const Sf = (e, t) => {
|
|
|
6443
6468
|
* @see https://tailwindcss.com/docs/outline-style
|
|
6444
6469
|
*/
|
|
6445
6470
|
"outline-style": [{
|
|
6446
|
-
outline: [...
|
|
6471
|
+
outline: [...M(), "none", "hidden"]
|
|
6447
6472
|
}],
|
|
6448
6473
|
/**
|
|
6449
6474
|
* Outline Offset
|
|
6450
6475
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
6451
6476
|
*/
|
|
6452
6477
|
"outline-offset": [{
|
|
6453
|
-
"outline-offset": [
|
|
6478
|
+
"outline-offset": [q, U, B]
|
|
6454
6479
|
}],
|
|
6455
6480
|
/**
|
|
6456
6481
|
* Outline Width
|
|
6457
6482
|
* @see https://tailwindcss.com/docs/outline-width
|
|
6458
6483
|
*/
|
|
6459
6484
|
"outline-w": [{
|
|
6460
|
-
outline: ["",
|
|
6485
|
+
outline: ["", q, Lt, st]
|
|
6461
6486
|
}],
|
|
6462
6487
|
/**
|
|
6463
6488
|
* Outline Color
|
|
@@ -6509,7 +6534,7 @@ const Sf = (e, t) => {
|
|
|
6509
6534
|
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
|
6510
6535
|
*/
|
|
6511
6536
|
"ring-w": [{
|
|
6512
|
-
ring:
|
|
6537
|
+
ring: z()
|
|
6513
6538
|
}],
|
|
6514
6539
|
/**
|
|
6515
6540
|
* Ring Width Inset
|
|
@@ -6532,7 +6557,7 @@ const Sf = (e, t) => {
|
|
|
6532
6557
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
6533
6558
|
*/
|
|
6534
6559
|
"ring-offset-w": [{
|
|
6535
|
-
"ring-offset": [
|
|
6560
|
+
"ring-offset": [q, st]
|
|
6536
6561
|
}],
|
|
6537
6562
|
/**
|
|
6538
6563
|
* Ring Offset Color
|
|
@@ -6548,7 +6573,7 @@ const Sf = (e, t) => {
|
|
|
6548
6573
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
|
6549
6574
|
*/
|
|
6550
6575
|
"inset-ring-w": [{
|
|
6551
|
-
"inset-ring":
|
|
6576
|
+
"inset-ring": z()
|
|
6552
6577
|
}],
|
|
6553
6578
|
/**
|
|
6554
6579
|
* Inset Ring Color
|
|
@@ -6576,21 +6601,21 @@ const Sf = (e, t) => {
|
|
|
6576
6601
|
* @see https://tailwindcss.com/docs/opacity
|
|
6577
6602
|
*/
|
|
6578
6603
|
opacity: [{
|
|
6579
|
-
opacity: [
|
|
6604
|
+
opacity: [q, U, B]
|
|
6580
6605
|
}],
|
|
6581
6606
|
/**
|
|
6582
6607
|
* Mix Blend Mode
|
|
6583
6608
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
6584
6609
|
*/
|
|
6585
6610
|
"mix-blend": [{
|
|
6586
|
-
"mix-blend": [...
|
|
6611
|
+
"mix-blend": [...re(), "plus-darker", "plus-lighter"]
|
|
6587
6612
|
}],
|
|
6588
6613
|
/**
|
|
6589
6614
|
* Background Blend Mode
|
|
6590
6615
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
6591
6616
|
*/
|
|
6592
6617
|
"bg-blend": [{
|
|
6593
|
-
"bg-blend":
|
|
6618
|
+
"bg-blend": re()
|
|
6594
6619
|
}],
|
|
6595
6620
|
/**
|
|
6596
6621
|
* Mask Clip
|
|
@@ -6611,13 +6636,13 @@ const Sf = (e, t) => {
|
|
|
6611
6636
|
* @see https://tailwindcss.com/docs/mask-image
|
|
6612
6637
|
*/
|
|
6613
6638
|
"mask-image-linear-pos": [{
|
|
6614
|
-
"mask-linear": [
|
|
6639
|
+
"mask-linear": [q]
|
|
6615
6640
|
}],
|
|
6616
6641
|
"mask-image-linear-from-pos": [{
|
|
6617
|
-
"mask-linear-from":
|
|
6642
|
+
"mask-linear-from": I()
|
|
6618
6643
|
}],
|
|
6619
6644
|
"mask-image-linear-to-pos": [{
|
|
6620
|
-
"mask-linear-to":
|
|
6645
|
+
"mask-linear-to": I()
|
|
6621
6646
|
}],
|
|
6622
6647
|
"mask-image-linear-from-color": [{
|
|
6623
6648
|
"mask-linear-from": R()
|
|
@@ -6626,10 +6651,10 @@ const Sf = (e, t) => {
|
|
|
6626
6651
|
"mask-linear-to": R()
|
|
6627
6652
|
}],
|
|
6628
6653
|
"mask-image-t-from-pos": [{
|
|
6629
|
-
"mask-t-from":
|
|
6654
|
+
"mask-t-from": I()
|
|
6630
6655
|
}],
|
|
6631
6656
|
"mask-image-t-to-pos": [{
|
|
6632
|
-
"mask-t-to":
|
|
6657
|
+
"mask-t-to": I()
|
|
6633
6658
|
}],
|
|
6634
6659
|
"mask-image-t-from-color": [{
|
|
6635
6660
|
"mask-t-from": R()
|
|
@@ -6638,10 +6663,10 @@ const Sf = (e, t) => {
|
|
|
6638
6663
|
"mask-t-to": R()
|
|
6639
6664
|
}],
|
|
6640
6665
|
"mask-image-r-from-pos": [{
|
|
6641
|
-
"mask-r-from":
|
|
6666
|
+
"mask-r-from": I()
|
|
6642
6667
|
}],
|
|
6643
6668
|
"mask-image-r-to-pos": [{
|
|
6644
|
-
"mask-r-to":
|
|
6669
|
+
"mask-r-to": I()
|
|
6645
6670
|
}],
|
|
6646
6671
|
"mask-image-r-from-color": [{
|
|
6647
6672
|
"mask-r-from": R()
|
|
@@ -6650,10 +6675,10 @@ const Sf = (e, t) => {
|
|
|
6650
6675
|
"mask-r-to": R()
|
|
6651
6676
|
}],
|
|
6652
6677
|
"mask-image-b-from-pos": [{
|
|
6653
|
-
"mask-b-from":
|
|
6678
|
+
"mask-b-from": I()
|
|
6654
6679
|
}],
|
|
6655
6680
|
"mask-image-b-to-pos": [{
|
|
6656
|
-
"mask-b-to":
|
|
6681
|
+
"mask-b-to": I()
|
|
6657
6682
|
}],
|
|
6658
6683
|
"mask-image-b-from-color": [{
|
|
6659
6684
|
"mask-b-from": R()
|
|
@@ -6662,10 +6687,10 @@ const Sf = (e, t) => {
|
|
|
6662
6687
|
"mask-b-to": R()
|
|
6663
6688
|
}],
|
|
6664
6689
|
"mask-image-l-from-pos": [{
|
|
6665
|
-
"mask-l-from":
|
|
6690
|
+
"mask-l-from": I()
|
|
6666
6691
|
}],
|
|
6667
6692
|
"mask-image-l-to-pos": [{
|
|
6668
|
-
"mask-l-to":
|
|
6693
|
+
"mask-l-to": I()
|
|
6669
6694
|
}],
|
|
6670
6695
|
"mask-image-l-from-color": [{
|
|
6671
6696
|
"mask-l-from": R()
|
|
@@ -6674,10 +6699,10 @@ const Sf = (e, t) => {
|
|
|
6674
6699
|
"mask-l-to": R()
|
|
6675
6700
|
}],
|
|
6676
6701
|
"mask-image-x-from-pos": [{
|
|
6677
|
-
"mask-x-from":
|
|
6702
|
+
"mask-x-from": I()
|
|
6678
6703
|
}],
|
|
6679
6704
|
"mask-image-x-to-pos": [{
|
|
6680
|
-
"mask-x-to":
|
|
6705
|
+
"mask-x-to": I()
|
|
6681
6706
|
}],
|
|
6682
6707
|
"mask-image-x-from-color": [{
|
|
6683
6708
|
"mask-x-from": R()
|
|
@@ -6686,10 +6711,10 @@ const Sf = (e, t) => {
|
|
|
6686
6711
|
"mask-x-to": R()
|
|
6687
6712
|
}],
|
|
6688
6713
|
"mask-image-y-from-pos": [{
|
|
6689
|
-
"mask-y-from":
|
|
6714
|
+
"mask-y-from": I()
|
|
6690
6715
|
}],
|
|
6691
6716
|
"mask-image-y-to-pos": [{
|
|
6692
|
-
"mask-y-to":
|
|
6717
|
+
"mask-y-to": I()
|
|
6693
6718
|
}],
|
|
6694
6719
|
"mask-image-y-from-color": [{
|
|
6695
6720
|
"mask-y-from": R()
|
|
@@ -6698,13 +6723,13 @@ const Sf = (e, t) => {
|
|
|
6698
6723
|
"mask-y-to": R()
|
|
6699
6724
|
}],
|
|
6700
6725
|
"mask-image-radial": [{
|
|
6701
|
-
"mask-radial": [
|
|
6726
|
+
"mask-radial": [U, B]
|
|
6702
6727
|
}],
|
|
6703
6728
|
"mask-image-radial-from-pos": [{
|
|
6704
|
-
"mask-radial-from":
|
|
6729
|
+
"mask-radial-from": I()
|
|
6705
6730
|
}],
|
|
6706
6731
|
"mask-image-radial-to-pos": [{
|
|
6707
|
-
"mask-radial-to":
|
|
6732
|
+
"mask-radial-to": I()
|
|
6708
6733
|
}],
|
|
6709
6734
|
"mask-image-radial-from-color": [{
|
|
6710
6735
|
"mask-radial-from": R()
|
|
@@ -6725,13 +6750,13 @@ const Sf = (e, t) => {
|
|
|
6725
6750
|
"mask-radial-at": y()
|
|
6726
6751
|
}],
|
|
6727
6752
|
"mask-image-conic-pos": [{
|
|
6728
|
-
"mask-conic": [
|
|
6753
|
+
"mask-conic": [q]
|
|
6729
6754
|
}],
|
|
6730
6755
|
"mask-image-conic-from-pos": [{
|
|
6731
|
-
"mask-conic-from":
|
|
6756
|
+
"mask-conic-from": I()
|
|
6732
6757
|
}],
|
|
6733
6758
|
"mask-image-conic-to-pos": [{
|
|
6734
|
-
"mask-conic-to":
|
|
6759
|
+
"mask-conic-to": I()
|
|
6735
6760
|
}],
|
|
6736
6761
|
"mask-image-conic-from-color": [{
|
|
6737
6762
|
"mask-conic-from": R()
|
|
@@ -6765,14 +6790,14 @@ const Sf = (e, t) => {
|
|
|
6765
6790
|
* @see https://tailwindcss.com/docs/mask-repeat
|
|
6766
6791
|
*/
|
|
6767
6792
|
"mask-repeat": [{
|
|
6768
|
-
mask:
|
|
6793
|
+
mask: le()
|
|
6769
6794
|
}],
|
|
6770
6795
|
/**
|
|
6771
6796
|
* Mask Size
|
|
6772
6797
|
* @see https://tailwindcss.com/docs/mask-size
|
|
6773
6798
|
*/
|
|
6774
6799
|
"mask-size": [{
|
|
6775
|
-
mask:
|
|
6800
|
+
mask: A()
|
|
6776
6801
|
}],
|
|
6777
6802
|
/**
|
|
6778
6803
|
* Mask Type
|
|
@@ -6786,7 +6811,7 @@ const Sf = (e, t) => {
|
|
|
6786
6811
|
* @see https://tailwindcss.com/docs/mask-image
|
|
6787
6812
|
*/
|
|
6788
6813
|
"mask-image": [{
|
|
6789
|
-
mask: ["none",
|
|
6814
|
+
mask: ["none", U, B]
|
|
6790
6815
|
}],
|
|
6791
6816
|
// ---------------
|
|
6792
6817
|
// --- Filters ---
|
|
@@ -6800,8 +6825,8 @@ const Sf = (e, t) => {
|
|
|
6800
6825
|
// Deprecated since Tailwind CSS v3.0.0
|
|
6801
6826
|
"",
|
|
6802
6827
|
"none",
|
|
6803
|
-
|
|
6804
|
-
|
|
6828
|
+
U,
|
|
6829
|
+
B
|
|
6805
6830
|
]
|
|
6806
6831
|
}],
|
|
6807
6832
|
/**
|
|
@@ -6809,21 +6834,21 @@ const Sf = (e, t) => {
|
|
|
6809
6834
|
* @see https://tailwindcss.com/docs/blur
|
|
6810
6835
|
*/
|
|
6811
6836
|
blur: [{
|
|
6812
|
-
blur:
|
|
6837
|
+
blur: J()
|
|
6813
6838
|
}],
|
|
6814
6839
|
/**
|
|
6815
6840
|
* Brightness
|
|
6816
6841
|
* @see https://tailwindcss.com/docs/brightness
|
|
6817
6842
|
*/
|
|
6818
6843
|
brightness: [{
|
|
6819
|
-
brightness: [
|
|
6844
|
+
brightness: [q, U, B]
|
|
6820
6845
|
}],
|
|
6821
6846
|
/**
|
|
6822
6847
|
* Contrast
|
|
6823
6848
|
* @see https://tailwindcss.com/docs/contrast
|
|
6824
6849
|
*/
|
|
6825
6850
|
contrast: [{
|
|
6826
|
-
contrast: [
|
|
6851
|
+
contrast: [q, U, B]
|
|
6827
6852
|
}],
|
|
6828
6853
|
/**
|
|
6829
6854
|
* Drop Shadow
|
|
@@ -6851,35 +6876,35 @@ const Sf = (e, t) => {
|
|
|
6851
6876
|
* @see https://tailwindcss.com/docs/grayscale
|
|
6852
6877
|
*/
|
|
6853
6878
|
grayscale: [{
|
|
6854
|
-
grayscale: ["",
|
|
6879
|
+
grayscale: ["", q, U, B]
|
|
6855
6880
|
}],
|
|
6856
6881
|
/**
|
|
6857
6882
|
* Hue Rotate
|
|
6858
6883
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
6859
6884
|
*/
|
|
6860
6885
|
"hue-rotate": [{
|
|
6861
|
-
"hue-rotate": [
|
|
6886
|
+
"hue-rotate": [q, U, B]
|
|
6862
6887
|
}],
|
|
6863
6888
|
/**
|
|
6864
6889
|
* Invert
|
|
6865
6890
|
* @see https://tailwindcss.com/docs/invert
|
|
6866
6891
|
*/
|
|
6867
6892
|
invert: [{
|
|
6868
|
-
invert: ["",
|
|
6893
|
+
invert: ["", q, U, B]
|
|
6869
6894
|
}],
|
|
6870
6895
|
/**
|
|
6871
6896
|
* Saturate
|
|
6872
6897
|
* @see https://tailwindcss.com/docs/saturate
|
|
6873
6898
|
*/
|
|
6874
6899
|
saturate: [{
|
|
6875
|
-
saturate: [
|
|
6900
|
+
saturate: [q, U, B]
|
|
6876
6901
|
}],
|
|
6877
6902
|
/**
|
|
6878
6903
|
* Sepia
|
|
6879
6904
|
* @see https://tailwindcss.com/docs/sepia
|
|
6880
6905
|
*/
|
|
6881
6906
|
sepia: [{
|
|
6882
|
-
sepia: ["",
|
|
6907
|
+
sepia: ["", q, U, B]
|
|
6883
6908
|
}],
|
|
6884
6909
|
/**
|
|
6885
6910
|
* Backdrop Filter
|
|
@@ -6890,8 +6915,8 @@ const Sf = (e, t) => {
|
|
|
6890
6915
|
// Deprecated since Tailwind CSS v3.0.0
|
|
6891
6916
|
"",
|
|
6892
6917
|
"none",
|
|
6893
|
-
|
|
6894
|
-
|
|
6918
|
+
U,
|
|
6919
|
+
B
|
|
6895
6920
|
]
|
|
6896
6921
|
}],
|
|
6897
6922
|
/**
|
|
@@ -6899,63 +6924,63 @@ const Sf = (e, t) => {
|
|
|
6899
6924
|
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
6900
6925
|
*/
|
|
6901
6926
|
"backdrop-blur": [{
|
|
6902
|
-
"backdrop-blur":
|
|
6927
|
+
"backdrop-blur": J()
|
|
6903
6928
|
}],
|
|
6904
6929
|
/**
|
|
6905
6930
|
* Backdrop Brightness
|
|
6906
6931
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
6907
6932
|
*/
|
|
6908
6933
|
"backdrop-brightness": [{
|
|
6909
|
-
"backdrop-brightness": [
|
|
6934
|
+
"backdrop-brightness": [q, U, B]
|
|
6910
6935
|
}],
|
|
6911
6936
|
/**
|
|
6912
6937
|
* Backdrop Contrast
|
|
6913
6938
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
6914
6939
|
*/
|
|
6915
6940
|
"backdrop-contrast": [{
|
|
6916
|
-
"backdrop-contrast": [
|
|
6941
|
+
"backdrop-contrast": [q, U, B]
|
|
6917
6942
|
}],
|
|
6918
6943
|
/**
|
|
6919
6944
|
* Backdrop Grayscale
|
|
6920
6945
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
6921
6946
|
*/
|
|
6922
6947
|
"backdrop-grayscale": [{
|
|
6923
|
-
"backdrop-grayscale": ["",
|
|
6948
|
+
"backdrop-grayscale": ["", q, U, B]
|
|
6924
6949
|
}],
|
|
6925
6950
|
/**
|
|
6926
6951
|
* Backdrop Hue Rotate
|
|
6927
6952
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
6928
6953
|
*/
|
|
6929
6954
|
"backdrop-hue-rotate": [{
|
|
6930
|
-
"backdrop-hue-rotate": [
|
|
6955
|
+
"backdrop-hue-rotate": [q, U, B]
|
|
6931
6956
|
}],
|
|
6932
6957
|
/**
|
|
6933
6958
|
* Backdrop Invert
|
|
6934
6959
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
6935
6960
|
*/
|
|
6936
6961
|
"backdrop-invert": [{
|
|
6937
|
-
"backdrop-invert": ["",
|
|
6962
|
+
"backdrop-invert": ["", q, U, B]
|
|
6938
6963
|
}],
|
|
6939
6964
|
/**
|
|
6940
6965
|
* Backdrop Opacity
|
|
6941
6966
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
6942
6967
|
*/
|
|
6943
6968
|
"backdrop-opacity": [{
|
|
6944
|
-
"backdrop-opacity": [
|
|
6969
|
+
"backdrop-opacity": [q, U, B]
|
|
6945
6970
|
}],
|
|
6946
6971
|
/**
|
|
6947
6972
|
* Backdrop Saturate
|
|
6948
6973
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
6949
6974
|
*/
|
|
6950
6975
|
"backdrop-saturate": [{
|
|
6951
|
-
"backdrop-saturate": [
|
|
6976
|
+
"backdrop-saturate": [q, U, B]
|
|
6952
6977
|
}],
|
|
6953
6978
|
/**
|
|
6954
6979
|
* Backdrop Sepia
|
|
6955
6980
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
6956
6981
|
*/
|
|
6957
6982
|
"backdrop-sepia": [{
|
|
6958
|
-
"backdrop-sepia": ["",
|
|
6983
|
+
"backdrop-sepia": ["", q, U, B]
|
|
6959
6984
|
}],
|
|
6960
6985
|
// --------------
|
|
6961
6986
|
// --- Tables ---
|
|
@@ -6972,21 +6997,21 @@ const Sf = (e, t) => {
|
|
|
6972
6997
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
6973
6998
|
*/
|
|
6974
6999
|
"border-spacing": [{
|
|
6975
|
-
"border-spacing":
|
|
7000
|
+
"border-spacing": N()
|
|
6976
7001
|
}],
|
|
6977
7002
|
/**
|
|
6978
7003
|
* Border Spacing X
|
|
6979
7004
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
6980
7005
|
*/
|
|
6981
7006
|
"border-spacing-x": [{
|
|
6982
|
-
"border-spacing-x":
|
|
7007
|
+
"border-spacing-x": N()
|
|
6983
7008
|
}],
|
|
6984
7009
|
/**
|
|
6985
7010
|
* Border Spacing Y
|
|
6986
7011
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
6987
7012
|
*/
|
|
6988
7013
|
"border-spacing-y": [{
|
|
6989
|
-
"border-spacing-y":
|
|
7014
|
+
"border-spacing-y": N()
|
|
6990
7015
|
}],
|
|
6991
7016
|
/**
|
|
6992
7017
|
* Table Layout
|
|
@@ -7010,7 +7035,7 @@ const Sf = (e, t) => {
|
|
|
7010
7035
|
* @see https://tailwindcss.com/docs/transition-property
|
|
7011
7036
|
*/
|
|
7012
7037
|
transition: [{
|
|
7013
|
-
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none",
|
|
7038
|
+
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", U, B]
|
|
7014
7039
|
}],
|
|
7015
7040
|
/**
|
|
7016
7041
|
* Transition Behavior
|
|
@@ -7024,28 +7049,28 @@ const Sf = (e, t) => {
|
|
|
7024
7049
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
7025
7050
|
*/
|
|
7026
7051
|
duration: [{
|
|
7027
|
-
duration: [
|
|
7052
|
+
duration: [q, "initial", U, B]
|
|
7028
7053
|
}],
|
|
7029
7054
|
/**
|
|
7030
7055
|
* Transition Timing Function
|
|
7031
7056
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
7032
7057
|
*/
|
|
7033
7058
|
ease: [{
|
|
7034
|
-
ease: ["linear", "initial", x,
|
|
7059
|
+
ease: ["linear", "initial", x, U, B]
|
|
7035
7060
|
}],
|
|
7036
7061
|
/**
|
|
7037
7062
|
* Transition Delay
|
|
7038
7063
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
7039
7064
|
*/
|
|
7040
7065
|
delay: [{
|
|
7041
|
-
delay: [
|
|
7066
|
+
delay: [q, U, B]
|
|
7042
7067
|
}],
|
|
7043
7068
|
/**
|
|
7044
7069
|
* Animation
|
|
7045
7070
|
* @see https://tailwindcss.com/docs/animation
|
|
7046
7071
|
*/
|
|
7047
7072
|
animate: [{
|
|
7048
|
-
animate: ["none", S,
|
|
7073
|
+
animate: ["none", S, U, B]
|
|
7049
7074
|
}],
|
|
7050
7075
|
// ------------------
|
|
7051
7076
|
// --- Transforms ---
|
|
@@ -7062,7 +7087,7 @@ const Sf = (e, t) => {
|
|
|
7062
7087
|
* @see https://tailwindcss.com/docs/perspective
|
|
7063
7088
|
*/
|
|
7064
7089
|
perspective: [{
|
|
7065
|
-
perspective: [h,
|
|
7090
|
+
perspective: [h, U, B]
|
|
7066
7091
|
}],
|
|
7067
7092
|
/**
|
|
7068
7093
|
* Perspective Origin
|
|
@@ -7104,28 +7129,28 @@ const Sf = (e, t) => {
|
|
|
7104
7129
|
* @see https://tailwindcss.com/docs/scale
|
|
7105
7130
|
*/
|
|
7106
7131
|
scale: [{
|
|
7107
|
-
scale:
|
|
7132
|
+
scale: Z()
|
|
7108
7133
|
}],
|
|
7109
7134
|
/**
|
|
7110
7135
|
* Scale X
|
|
7111
7136
|
* @see https://tailwindcss.com/docs/scale
|
|
7112
7137
|
*/
|
|
7113
7138
|
"scale-x": [{
|
|
7114
|
-
"scale-x":
|
|
7139
|
+
"scale-x": Z()
|
|
7115
7140
|
}],
|
|
7116
7141
|
/**
|
|
7117
7142
|
* Scale Y
|
|
7118
7143
|
* @see https://tailwindcss.com/docs/scale
|
|
7119
7144
|
*/
|
|
7120
7145
|
"scale-y": [{
|
|
7121
|
-
"scale-y":
|
|
7146
|
+
"scale-y": Z()
|
|
7122
7147
|
}],
|
|
7123
7148
|
/**
|
|
7124
7149
|
* Scale Z
|
|
7125
7150
|
* @see https://tailwindcss.com/docs/scale
|
|
7126
7151
|
*/
|
|
7127
7152
|
"scale-z": [{
|
|
7128
|
-
"scale-z":
|
|
7153
|
+
"scale-z": Z()
|
|
7129
7154
|
}],
|
|
7130
7155
|
/**
|
|
7131
7156
|
* Scale 3D
|
|
@@ -7137,28 +7162,28 @@ const Sf = (e, t) => {
|
|
|
7137
7162
|
* @see https://tailwindcss.com/docs/skew
|
|
7138
7163
|
*/
|
|
7139
7164
|
skew: [{
|
|
7140
|
-
skew:
|
|
7165
|
+
skew: ee()
|
|
7141
7166
|
}],
|
|
7142
7167
|
/**
|
|
7143
7168
|
* Skew X
|
|
7144
7169
|
* @see https://tailwindcss.com/docs/skew
|
|
7145
7170
|
*/
|
|
7146
7171
|
"skew-x": [{
|
|
7147
|
-
"skew-x":
|
|
7172
|
+
"skew-x": ee()
|
|
7148
7173
|
}],
|
|
7149
7174
|
/**
|
|
7150
7175
|
* Skew Y
|
|
7151
7176
|
* @see https://tailwindcss.com/docs/skew
|
|
7152
7177
|
*/
|
|
7153
7178
|
"skew-y": [{
|
|
7154
|
-
"skew-y":
|
|
7179
|
+
"skew-y": ee()
|
|
7155
7180
|
}],
|
|
7156
7181
|
/**
|
|
7157
7182
|
* Transform
|
|
7158
7183
|
* @see https://tailwindcss.com/docs/transform
|
|
7159
7184
|
*/
|
|
7160
7185
|
transform: [{
|
|
7161
|
-
transform: [
|
|
7186
|
+
transform: [U, B, "", "none", "gpu", "cpu"]
|
|
7162
7187
|
}],
|
|
7163
7188
|
/**
|
|
7164
7189
|
* Transform Origin
|
|
@@ -7179,28 +7204,28 @@ const Sf = (e, t) => {
|
|
|
7179
7204
|
* @see https://tailwindcss.com/docs/translate
|
|
7180
7205
|
*/
|
|
7181
7206
|
translate: [{
|
|
7182
|
-
translate:
|
|
7207
|
+
translate: oe()
|
|
7183
7208
|
}],
|
|
7184
7209
|
/**
|
|
7185
7210
|
* Translate X
|
|
7186
7211
|
* @see https://tailwindcss.com/docs/translate
|
|
7187
7212
|
*/
|
|
7188
7213
|
"translate-x": [{
|
|
7189
|
-
"translate-x":
|
|
7214
|
+
"translate-x": oe()
|
|
7190
7215
|
}],
|
|
7191
7216
|
/**
|
|
7192
7217
|
* Translate Y
|
|
7193
7218
|
* @see https://tailwindcss.com/docs/translate
|
|
7194
7219
|
*/
|
|
7195
7220
|
"translate-y": [{
|
|
7196
|
-
"translate-y":
|
|
7221
|
+
"translate-y": oe()
|
|
7197
7222
|
}],
|
|
7198
7223
|
/**
|
|
7199
7224
|
* Translate Z
|
|
7200
7225
|
* @see https://tailwindcss.com/docs/translate
|
|
7201
7226
|
*/
|
|
7202
7227
|
"translate-z": [{
|
|
7203
|
-
"translate-z":
|
|
7228
|
+
"translate-z": oe()
|
|
7204
7229
|
}],
|
|
7205
7230
|
/**
|
|
7206
7231
|
* Translate None
|
|
@@ -7243,7 +7268,7 @@ const Sf = (e, t) => {
|
|
|
7243
7268
|
* @see https://tailwindcss.com/docs/cursor
|
|
7244
7269
|
*/
|
|
7245
7270
|
cursor: [{
|
|
7246
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out",
|
|
7271
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", U, B]
|
|
7247
7272
|
}],
|
|
7248
7273
|
/**
|
|
7249
7274
|
* Field Sizing
|
|
@@ -7278,126 +7303,126 @@ const Sf = (e, t) => {
|
|
|
7278
7303
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
7279
7304
|
*/
|
|
7280
7305
|
"scroll-m": [{
|
|
7281
|
-
"scroll-m":
|
|
7306
|
+
"scroll-m": N()
|
|
7282
7307
|
}],
|
|
7283
7308
|
/**
|
|
7284
7309
|
* Scroll Margin X
|
|
7285
7310
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
7286
7311
|
*/
|
|
7287
7312
|
"scroll-mx": [{
|
|
7288
|
-
"scroll-mx":
|
|
7313
|
+
"scroll-mx": N()
|
|
7289
7314
|
}],
|
|
7290
7315
|
/**
|
|
7291
7316
|
* Scroll Margin Y
|
|
7292
7317
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
7293
7318
|
*/
|
|
7294
7319
|
"scroll-my": [{
|
|
7295
|
-
"scroll-my":
|
|
7320
|
+
"scroll-my": N()
|
|
7296
7321
|
}],
|
|
7297
7322
|
/**
|
|
7298
7323
|
* Scroll Margin Start
|
|
7299
7324
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
7300
7325
|
*/
|
|
7301
7326
|
"scroll-ms": [{
|
|
7302
|
-
"scroll-ms":
|
|
7327
|
+
"scroll-ms": N()
|
|
7303
7328
|
}],
|
|
7304
7329
|
/**
|
|
7305
7330
|
* Scroll Margin End
|
|
7306
7331
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
7307
7332
|
*/
|
|
7308
7333
|
"scroll-me": [{
|
|
7309
|
-
"scroll-me":
|
|
7334
|
+
"scroll-me": N()
|
|
7310
7335
|
}],
|
|
7311
7336
|
/**
|
|
7312
7337
|
* Scroll Margin Top
|
|
7313
7338
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
7314
7339
|
*/
|
|
7315
7340
|
"scroll-mt": [{
|
|
7316
|
-
"scroll-mt":
|
|
7341
|
+
"scroll-mt": N()
|
|
7317
7342
|
}],
|
|
7318
7343
|
/**
|
|
7319
7344
|
* Scroll Margin Right
|
|
7320
7345
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
7321
7346
|
*/
|
|
7322
7347
|
"scroll-mr": [{
|
|
7323
|
-
"scroll-mr":
|
|
7348
|
+
"scroll-mr": N()
|
|
7324
7349
|
}],
|
|
7325
7350
|
/**
|
|
7326
7351
|
* Scroll Margin Bottom
|
|
7327
7352
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
7328
7353
|
*/
|
|
7329
7354
|
"scroll-mb": [{
|
|
7330
|
-
"scroll-mb":
|
|
7355
|
+
"scroll-mb": N()
|
|
7331
7356
|
}],
|
|
7332
7357
|
/**
|
|
7333
7358
|
* Scroll Margin Left
|
|
7334
7359
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
7335
7360
|
*/
|
|
7336
7361
|
"scroll-ml": [{
|
|
7337
|
-
"scroll-ml":
|
|
7362
|
+
"scroll-ml": N()
|
|
7338
7363
|
}],
|
|
7339
7364
|
/**
|
|
7340
7365
|
* Scroll Padding
|
|
7341
7366
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
7342
7367
|
*/
|
|
7343
7368
|
"scroll-p": [{
|
|
7344
|
-
"scroll-p":
|
|
7369
|
+
"scroll-p": N()
|
|
7345
7370
|
}],
|
|
7346
7371
|
/**
|
|
7347
7372
|
* Scroll Padding X
|
|
7348
7373
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
7349
7374
|
*/
|
|
7350
7375
|
"scroll-px": [{
|
|
7351
|
-
"scroll-px":
|
|
7376
|
+
"scroll-px": N()
|
|
7352
7377
|
}],
|
|
7353
7378
|
/**
|
|
7354
7379
|
* Scroll Padding Y
|
|
7355
7380
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
7356
7381
|
*/
|
|
7357
7382
|
"scroll-py": [{
|
|
7358
|
-
"scroll-py":
|
|
7383
|
+
"scroll-py": N()
|
|
7359
7384
|
}],
|
|
7360
7385
|
/**
|
|
7361
7386
|
* Scroll Padding Start
|
|
7362
7387
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
7363
7388
|
*/
|
|
7364
7389
|
"scroll-ps": [{
|
|
7365
|
-
"scroll-ps":
|
|
7390
|
+
"scroll-ps": N()
|
|
7366
7391
|
}],
|
|
7367
7392
|
/**
|
|
7368
7393
|
* Scroll Padding End
|
|
7369
7394
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
7370
7395
|
*/
|
|
7371
7396
|
"scroll-pe": [{
|
|
7372
|
-
"scroll-pe":
|
|
7397
|
+
"scroll-pe": N()
|
|
7373
7398
|
}],
|
|
7374
7399
|
/**
|
|
7375
7400
|
* Scroll Padding Top
|
|
7376
7401
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
7377
7402
|
*/
|
|
7378
7403
|
"scroll-pt": [{
|
|
7379
|
-
"scroll-pt":
|
|
7404
|
+
"scroll-pt": N()
|
|
7380
7405
|
}],
|
|
7381
7406
|
/**
|
|
7382
7407
|
* Scroll Padding Right
|
|
7383
7408
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
7384
7409
|
*/
|
|
7385
7410
|
"scroll-pr": [{
|
|
7386
|
-
"scroll-pr":
|
|
7411
|
+
"scroll-pr": N()
|
|
7387
7412
|
}],
|
|
7388
7413
|
/**
|
|
7389
7414
|
* Scroll Padding Bottom
|
|
7390
7415
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
7391
7416
|
*/
|
|
7392
7417
|
"scroll-pb": [{
|
|
7393
|
-
"scroll-pb":
|
|
7418
|
+
"scroll-pb": N()
|
|
7394
7419
|
}],
|
|
7395
7420
|
/**
|
|
7396
7421
|
* Scroll Padding Left
|
|
7397
7422
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
7398
7423
|
*/
|
|
7399
7424
|
"scroll-pl": [{
|
|
7400
|
-
"scroll-pl":
|
|
7425
|
+
"scroll-pl": N()
|
|
7401
7426
|
}],
|
|
7402
7427
|
/**
|
|
7403
7428
|
* Scroll Snap Align
|
|
@@ -7465,7 +7490,7 @@ const Sf = (e, t) => {
|
|
|
7465
7490
|
* @see https://tailwindcss.com/docs/will-change
|
|
7466
7491
|
*/
|
|
7467
7492
|
"will-change": [{
|
|
7468
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
7493
|
+
"will-change": ["auto", "scroll", "contents", "transform", U, B]
|
|
7469
7494
|
}],
|
|
7470
7495
|
// -----------
|
|
7471
7496
|
// --- SVG ---
|
|
@@ -7482,7 +7507,7 @@ const Sf = (e, t) => {
|
|
|
7482
7507
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
7483
7508
|
*/
|
|
7484
7509
|
"stroke-w": [{
|
|
7485
|
-
stroke: [
|
|
7510
|
+
stroke: [q, Lt, st, ao]
|
|
7486
7511
|
}],
|
|
7487
7512
|
/**
|
|
7488
7513
|
* Stroke
|
|
@@ -7557,19 +7582,19 @@ const Sf = (e, t) => {
|
|
|
7557
7582
|
},
|
|
7558
7583
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
7559
7584
|
};
|
|
7560
|
-
},
|
|
7585
|
+
}, up = /* @__PURE__ */ Hf(cp);
|
|
7561
7586
|
function On(...e) {
|
|
7562
|
-
return
|
|
7587
|
+
return up(Sf(e));
|
|
7563
7588
|
}
|
|
7564
7589
|
function In({
|
|
7565
7590
|
...e
|
|
7566
7591
|
}) {
|
|
7567
|
-
return /* @__PURE__ */ u(
|
|
7592
|
+
return /* @__PURE__ */ u(vf, { "data-slot": "popover", ...e });
|
|
7568
7593
|
}
|
|
7569
7594
|
function Mn({
|
|
7570
7595
|
...e
|
|
7571
7596
|
}) {
|
|
7572
|
-
return /* @__PURE__ */ u(
|
|
7597
|
+
return /* @__PURE__ */ u(yf, { "data-slot": "popover-trigger", ...e });
|
|
7573
7598
|
}
|
|
7574
7599
|
function Dn({
|
|
7575
7600
|
className: e,
|
|
@@ -7577,8 +7602,8 @@ function Dn({
|
|
|
7577
7602
|
sideOffset: n = 4,
|
|
7578
7603
|
...o
|
|
7579
7604
|
}) {
|
|
7580
|
-
return /* @__PURE__ */ u(
|
|
7581
|
-
|
|
7605
|
+
return /* @__PURE__ */ u(wf, { children: /* @__PURE__ */ u(
|
|
7606
|
+
xf,
|
|
7582
7607
|
{
|
|
7583
7608
|
"data-slot": "popover-content",
|
|
7584
7609
|
align: t,
|
|
@@ -7591,7 +7616,7 @@ function Dn({
|
|
|
7591
7616
|
}
|
|
7592
7617
|
) });
|
|
7593
7618
|
}
|
|
7594
|
-
function
|
|
7619
|
+
function dp({
|
|
7595
7620
|
field: e,
|
|
7596
7621
|
formValues: t,
|
|
7597
7622
|
handleChange: n,
|
|
@@ -7705,29 +7730,29 @@ function es({
|
|
|
7705
7730
|
);
|
|
7706
7731
|
const x = (T) => {
|
|
7707
7732
|
if (T === 0) return "0 Bytes";
|
|
7708
|
-
const F = 1024,
|
|
7709
|
-
return `${parseFloat((T / F ** D).toFixed(2))} ${
|
|
7733
|
+
const F = 1024, H = ["Bytes", "KB", "MB", "GB"], D = Math.floor(Math.log(T) / Math.log(F));
|
|
7734
|
+
return `${parseFloat((T / F ** D).toFixed(2))} ${H[D]}`;
|
|
7710
7735
|
}, S = async (T) => {
|
|
7711
7736
|
const F = new FormData();
|
|
7712
7737
|
F.append("file", T);
|
|
7713
|
-
const
|
|
7738
|
+
const H = await fetch(`${v}`, {
|
|
7714
7739
|
method: "POST",
|
|
7715
7740
|
body: F
|
|
7716
7741
|
});
|
|
7717
|
-
if (!
|
|
7742
|
+
if (!H.ok)
|
|
7718
7743
|
throw fn.error("Upload failed"), new Error("Upload failed");
|
|
7719
|
-
return await
|
|
7744
|
+
return await H.json();
|
|
7720
7745
|
}, C = async (T, F) => {
|
|
7721
7746
|
if (!F) return;
|
|
7722
7747
|
if (T.maxSize && F.size > T.maxSize)
|
|
7723
7748
|
throw new Error(
|
|
7724
7749
|
`File size must not exceed ${x(T.maxSize)}`
|
|
7725
7750
|
);
|
|
7726
|
-
const
|
|
7727
|
-
s(T.name,
|
|
7751
|
+
const H = await S(F), D = { ...t, [T.name]: H };
|
|
7752
|
+
s(T.name, H), i(D);
|
|
7728
7753
|
}, y = async (T, F) => {
|
|
7729
|
-
const
|
|
7730
|
-
if (T.maxFiles &&
|
|
7754
|
+
const H = t[T.name] || [];
|
|
7755
|
+
if (T.maxFiles && H.length + F.length > T.maxFiles)
|
|
7731
7756
|
throw new Error(`Maximum ${T.maxFiles} files allowed`);
|
|
7732
7757
|
F.forEach((R) => {
|
|
7733
7758
|
if (T.maxSize && R.size > T.maxSize)
|
|
@@ -7738,27 +7763,27 @@ function es({
|
|
|
7738
7763
|
const D = await Promise.all(
|
|
7739
7764
|
F.map((R) => S(R))
|
|
7740
7765
|
// Updated call
|
|
7741
|
-
), Y = [...
|
|
7766
|
+
), Y = [...H, ...D];
|
|
7742
7767
|
s(T.name, Y), i({ ...t, [T.name]: Y });
|
|
7743
7768
|
}, E = async (T, F) => {
|
|
7744
7769
|
if (c) return;
|
|
7745
|
-
const
|
|
7770
|
+
const H = Array.from(F);
|
|
7746
7771
|
try {
|
|
7747
|
-
e.type === "multifile" ? await y(e,
|
|
7772
|
+
e.type === "multifile" ? await y(e, H) : await C(e, H[0]), r.current?.[T] && (r.current[T].value = "");
|
|
7748
7773
|
} catch (D) {
|
|
7749
7774
|
fn.error(`Upload failed: ${D.message}`);
|
|
7750
7775
|
}
|
|
7751
|
-
},
|
|
7776
|
+
}, $ = async (T, F) => {
|
|
7752
7777
|
if (c) return;
|
|
7753
|
-
let
|
|
7754
|
-
e.type === "file" ?
|
|
7778
|
+
let H;
|
|
7779
|
+
e.type === "file" ? H = "" : H = (t[T] || []).filter((Y) => Y !== F), s(T, H), i({ ...t, [T]: H }), r.current?.[T] && (r.current[T].value = "");
|
|
7755
7780
|
}, k = (T) => {
|
|
7756
7781
|
T.preventDefault(), c || h(!0);
|
|
7757
|
-
},
|
|
7782
|
+
}, N = (T) => {
|
|
7758
7783
|
T.preventDefault(), c || h(!1);
|
|
7759
7784
|
}, G = (T) => {
|
|
7760
7785
|
T.preventDefault(), h(!1), !c && T.dataTransfer.files && T.dataTransfer.files.length > 0 && E(e.name, T.dataTransfer.files);
|
|
7761
|
-
},
|
|
7786
|
+
}, K = 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)}` : "", X = `
|
|
7762
7787
|
w-full flex flex-col items-center justify-center p-6 border-2 border-dashed rounded-lg transition-all duration-200
|
|
7763
7788
|
// Ensure focus styling is handled correctly for the button element
|
|
7764
7789
|
focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-opacity-50
|
|
@@ -7773,13 +7798,13 @@ function es({
|
|
|
7773
7798
|
"button",
|
|
7774
7799
|
{
|
|
7775
7800
|
type: "button",
|
|
7776
|
-
className:
|
|
7801
|
+
className: X,
|
|
7777
7802
|
onClick: () => {
|
|
7778
7803
|
c || r?.current?.[e.name]?.click();
|
|
7779
7804
|
},
|
|
7780
7805
|
onDragOver: k,
|
|
7781
7806
|
onDragEnter: k,
|
|
7782
|
-
onDragLeave:
|
|
7807
|
+
onDragLeave: N,
|
|
7783
7808
|
onDrop: G,
|
|
7784
7809
|
disabled: c,
|
|
7785
7810
|
children: [
|
|
@@ -7798,7 +7823,7 @@ function es({
|
|
|
7798
7823
|
/* @__PURE__ */ u("span", { className: "font-light", children: " or drag and drop" })
|
|
7799
7824
|
] }),
|
|
7800
7825
|
/* @__PURE__ */ O("p", { className: "text-xs mt-1 text-gray-500", children: [
|
|
7801
|
-
|
|
7826
|
+
K,
|
|
7802
7827
|
j,
|
|
7803
7828
|
f && e.maxFiles && `, Max ${e.maxFiles} files`
|
|
7804
7829
|
] })
|
|
@@ -7821,14 +7846,14 @@ function es({
|
|
|
7821
7846
|
}
|
|
7822
7847
|
),
|
|
7823
7848
|
m.length > 0 && /* @__PURE__ */ u("div", { className: "space-y-2 pt-2 border-t border-gray-200", children: m.map((T, F) => {
|
|
7824
|
-
const
|
|
7849
|
+
const H = T.original_name || T.name || "File", D = T.size || null;
|
|
7825
7850
|
return /* @__PURE__ */ O(
|
|
7826
7851
|
"div",
|
|
7827
7852
|
{
|
|
7828
7853
|
className: "flex items-center justify-between p-2 bg-gray-50 rounded",
|
|
7829
7854
|
children: [
|
|
7830
7855
|
/* @__PURE__ */ O("div", { className: "flex items-center space-x-2 min-w-0", children: [
|
|
7831
|
-
/* @__PURE__ */ u("span", { className: "text-sm truncate", children:
|
|
7856
|
+
/* @__PURE__ */ u("span", { className: "text-sm truncate", children: H }),
|
|
7832
7857
|
D && /* @__PURE__ */ O("span", { className: "text-xs text-gray-500 flex-shrink-0", children: [
|
|
7833
7858
|
"(",
|
|
7834
7859
|
x(D),
|
|
@@ -7839,7 +7864,7 @@ function es({
|
|
|
7839
7864
|
"button",
|
|
7840
7865
|
{
|
|
7841
7866
|
type: "button",
|
|
7842
|
-
onClick: () =>
|
|
7867
|
+
onClick: () => $(e.name, T),
|
|
7843
7868
|
className: `text-red-500 hover:text-red-700 ml-3 flex-shrink-0 ${c ? "cursor-not-allowed opacity-50" : ""}`,
|
|
7844
7869
|
disabled: c,
|
|
7845
7870
|
children: "Remove"
|
|
@@ -7874,7 +7899,7 @@ function es({
|
|
|
7874
7899
|
e.name
|
|
7875
7900
|
);
|
|
7876
7901
|
}
|
|
7877
|
-
function
|
|
7902
|
+
function fp({
|
|
7878
7903
|
field: e,
|
|
7879
7904
|
formValues: t,
|
|
7880
7905
|
handleChange: n,
|
|
@@ -7927,7 +7952,7 @@ function dp({
|
|
|
7927
7952
|
r && /* @__PURE__ */ u("p", { className: "mt-1 text-sm text-red-500", children: r })
|
|
7928
7953
|
] });
|
|
7929
7954
|
}
|
|
7930
|
-
function
|
|
7955
|
+
function pp({ field: e, formValues: t, handleChange: n, handleBlur: o, error: r }) {
|
|
7931
7956
|
const [s, i] = be(!1), a = t[e.name], l = a ? new Date(a) : null, c = l ? (l.getHours() % 12 || 12).toString().padStart(2, "0") : "12", f = l ? l.getMinutes().toString().padStart(2, "0") : "00", p = l ? l.getHours() >= 12 ? "PM" : "AM" : "PM", g = (y) => {
|
|
7932
7957
|
if (!y) {
|
|
7933
7958
|
n(e.name, null);
|
|
@@ -7935,10 +7960,10 @@ function fp({ field: e, formValues: t, handleChange: n, handleBlur: o, error: r
|
|
|
7935
7960
|
}
|
|
7936
7961
|
const E = new Date(y);
|
|
7937
7962
|
l ? (E.setHours(l.getHours()), E.setMinutes(l.getMinutes())) : (E.setHours(12), E.setMinutes(0)), n(e.name, E);
|
|
7938
|
-
}, m = (y, E,
|
|
7963
|
+
}, m = (y, E, $) => {
|
|
7939
7964
|
const k = l ? new Date(l) : /* @__PURE__ */ new Date();
|
|
7940
|
-
let
|
|
7941
|
-
|
|
7965
|
+
let N = parseInt(y);
|
|
7966
|
+
$ === "PM" && N !== 12 && (N += 12), $ === "AM" && N === 12 && (N = 0), k.setHours(N), k.setMinutes(parseInt(E)), n(e.name, k);
|
|
7942
7967
|
}, w = () => {
|
|
7943
7968
|
let y = parseInt(c);
|
|
7944
7969
|
y = y % 12 + 1, m(y.toString(), f, p);
|
|
@@ -8085,19 +8110,19 @@ function fp({ field: e, formValues: t, handleChange: n, handleBlur: o, error: r
|
|
|
8085
8110
|
r && /* @__PURE__ */ u("p", { className: "mt-1 text-sm text-red-500", children: r })
|
|
8086
8111
|
] });
|
|
8087
8112
|
}
|
|
8088
|
-
var
|
|
8089
|
-
function
|
|
8113
|
+
var mp = Symbol.for("react.lazy"), yn = d[" use ".trim().toString()];
|
|
8114
|
+
function hp(e) {
|
|
8090
8115
|
return typeof e == "object" && e !== null && "then" in e;
|
|
8091
8116
|
}
|
|
8092
8117
|
function Zi(e) {
|
|
8093
|
-
return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof ===
|
|
8118
|
+
return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === mp && "_payload" in e && hp(e._payload);
|
|
8094
8119
|
}
|
|
8095
8120
|
// @__NO_SIDE_EFFECTS__
|
|
8096
|
-
function
|
|
8097
|
-
const t = /* @__PURE__ */
|
|
8121
|
+
function gp(e) {
|
|
8122
|
+
const t = /* @__PURE__ */ bp(e), n = d.forwardRef((o, r) => {
|
|
8098
8123
|
let { children: s, ...i } = o;
|
|
8099
8124
|
Zi(s) && typeof yn == "function" && (s = yn(s._payload));
|
|
8100
|
-
const a = d.Children.toArray(s), l = a.find(
|
|
8125
|
+
const a = d.Children.toArray(s), l = a.find(yp);
|
|
8101
8126
|
if (l) {
|
|
8102
8127
|
const c = l.props.children, f = a.map((p) => p === l ? d.Children.count(c) > 1 ? d.Children.only(null) : d.isValidElement(c) ? c.props.children : null : p);
|
|
8103
8128
|
return /* @__PURE__ */ u(t, { ...i, ref: r, children: d.isValidElement(c) ? d.cloneElement(c, void 0, f) : null });
|
|
@@ -8107,22 +8132,22 @@ function hp(e) {
|
|
|
8107
8132
|
return n.displayName = `${e}.Slot`, n;
|
|
8108
8133
|
}
|
|
8109
8134
|
// @__NO_SIDE_EFFECTS__
|
|
8110
|
-
function
|
|
8135
|
+
function bp(e) {
|
|
8111
8136
|
const t = d.forwardRef((n, o) => {
|
|
8112
8137
|
let { children: r, ...s } = n;
|
|
8113
8138
|
if (Zi(r) && typeof yn == "function" && (r = yn(r._payload)), d.isValidElement(r)) {
|
|
8114
|
-
const i =
|
|
8139
|
+
const i = xp(r), a = wp(s, r.props);
|
|
8115
8140
|
return r.type !== d.Fragment && (a.ref = o ? ko(o, i) : i), d.cloneElement(r, a);
|
|
8116
8141
|
}
|
|
8117
8142
|
return d.Children.count(r) > 1 ? d.Children.only(null) : null;
|
|
8118
8143
|
});
|
|
8119
8144
|
return t.displayName = `${e}.SlotClone`, t;
|
|
8120
8145
|
}
|
|
8121
|
-
var
|
|
8122
|
-
function
|
|
8123
|
-
return d.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
8146
|
+
var vp = Symbol("radix.slottable");
|
|
8147
|
+
function yp(e) {
|
|
8148
|
+
return d.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === vp;
|
|
8124
8149
|
}
|
|
8125
|
-
function
|
|
8150
|
+
function wp(e, t) {
|
|
8126
8151
|
const n = { ...t };
|
|
8127
8152
|
for (const o in t) {
|
|
8128
8153
|
const r = e[o], s = t[o];
|
|
@@ -8133,11 +8158,11 @@ function yp(e, t) {
|
|
|
8133
8158
|
}
|
|
8134
8159
|
return { ...e, ...n };
|
|
8135
8160
|
}
|
|
8136
|
-
function
|
|
8161
|
+
function xp(e) {
|
|
8137
8162
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
8138
8163
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
8139
8164
|
}
|
|
8140
|
-
var
|
|
8165
|
+
var Sp = [
|
|
8141
8166
|
"a",
|
|
8142
8167
|
"button",
|
|
8143
8168
|
"div",
|
|
@@ -8155,16 +8180,16 @@ var xp = [
|
|
|
8155
8180
|
"span",
|
|
8156
8181
|
"svg",
|
|
8157
8182
|
"ul"
|
|
8158
|
-
],
|
|
8159
|
-
const n = /* @__PURE__ */
|
|
8183
|
+
], Cp = Sp.reduce((e, t) => {
|
|
8184
|
+
const n = /* @__PURE__ */ gp(`Primitive.${t}`), o = d.forwardRef((r, s) => {
|
|
8160
8185
|
const { asChild: i, ...a } = r, l = i ? n : t;
|
|
8161
8186
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u(l, { ...a, ref: s });
|
|
8162
8187
|
});
|
|
8163
8188
|
return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
|
|
8164
|
-
}, {}),
|
|
8165
|
-
const { decorative: n, orientation: o = ts, ...r } = e, s =
|
|
8189
|
+
}, {}), Ep = "Separator", ts = "horizontal", Ap = ["horizontal", "vertical"], Qi = d.forwardRef((e, t) => {
|
|
8190
|
+
const { decorative: n, orientation: o = ts, ...r } = e, s = Np(o) ? o : ts, a = n ? { role: "none" } : { "aria-orientation": s === "vertical" ? s : void 0, role: "separator" };
|
|
8166
8191
|
return /* @__PURE__ */ u(
|
|
8167
|
-
|
|
8192
|
+
Cp.div,
|
|
8168
8193
|
{
|
|
8169
8194
|
"data-orientation": s,
|
|
8170
8195
|
...a,
|
|
@@ -8173,11 +8198,11 @@ var xp = [
|
|
|
8173
8198
|
}
|
|
8174
8199
|
);
|
|
8175
8200
|
});
|
|
8176
|
-
Qi.displayName =
|
|
8177
|
-
function
|
|
8178
|
-
return
|
|
8201
|
+
Qi.displayName = Ep;
|
|
8202
|
+
function Np(e) {
|
|
8203
|
+
return Ap.includes(e);
|
|
8179
8204
|
}
|
|
8180
|
-
var
|
|
8205
|
+
var Rp = Qi;
|
|
8181
8206
|
function lo({
|
|
8182
8207
|
className: e,
|
|
8183
8208
|
orientation: t = "horizontal",
|
|
@@ -8185,7 +8210,7 @@ function lo({
|
|
|
8185
8210
|
...o
|
|
8186
8211
|
}) {
|
|
8187
8212
|
return /* @__PURE__ */ u(
|
|
8188
|
-
|
|
8213
|
+
Rp,
|
|
8189
8214
|
{
|
|
8190
8215
|
"data-slot": "separator",
|
|
8191
8216
|
decorative: n,
|
|
@@ -8198,14 +8223,14 @@ function lo({
|
|
|
8198
8223
|
}
|
|
8199
8224
|
);
|
|
8200
8225
|
}
|
|
8201
|
-
function
|
|
8226
|
+
function Tp({ field: e }) {
|
|
8202
8227
|
return e?.label ? /* @__PURE__ */ O("div", { className: "relative flex items-center py-4", children: [
|
|
8203
8228
|
/* @__PURE__ */ u(lo, { className: "flex-1 h-px bg-gray-300" }),
|
|
8204
8229
|
/* @__PURE__ */ u("span", { className: "px-3 font-medium text-gray-600 bg-white", children: e.label }),
|
|
8205
8230
|
/* @__PURE__ */ u(lo, { className: "flex-1 h-px bg-gray-300" })
|
|
8206
8231
|
] }) : /* @__PURE__ */ u(lo, { className: "my-4 h-px bg-gray-300" });
|
|
8207
8232
|
}
|
|
8208
|
-
var
|
|
8233
|
+
var kp = [
|
|
8209
8234
|
"a",
|
|
8210
8235
|
"button",
|
|
8211
8236
|
"div",
|
|
@@ -8223,13 +8248,13 @@ var Tp = [
|
|
|
8223
8248
|
"span",
|
|
8224
8249
|
"svg",
|
|
8225
8250
|
"ul"
|
|
8226
|
-
], Ln =
|
|
8251
|
+
], Ln = kp.reduce((e, t) => {
|
|
8227
8252
|
const n = /* @__PURE__ */ xe(`Primitive.${t}`), o = d.forwardRef((r, s) => {
|
|
8228
8253
|
const { asChild: i, ...a } = r, l = i ? n : t;
|
|
8229
8254
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u(l, { ...a, ref: s });
|
|
8230
8255
|
});
|
|
8231
8256
|
return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
|
|
8232
|
-
}, {}),
|
|
8257
|
+
}, {}), Pp = [
|
|
8233
8258
|
"a",
|
|
8234
8259
|
"button",
|
|
8235
8260
|
"div",
|
|
@@ -8247,20 +8272,20 @@ var Tp = [
|
|
|
8247
8272
|
"span",
|
|
8248
8273
|
"svg",
|
|
8249
8274
|
"ul"
|
|
8250
|
-
], Ji =
|
|
8275
|
+
], Ji = Pp.reduce((e, t) => {
|
|
8251
8276
|
const n = /* @__PURE__ */ xe(`Primitive.${t}`), o = d.forwardRef((r, s) => {
|
|
8252
8277
|
const { asChild: i, ...a } = r, l = i ? n : t;
|
|
8253
8278
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u(l, { ...a, ref: s });
|
|
8254
8279
|
});
|
|
8255
8280
|
return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
|
|
8256
|
-
}, {}), co = "rovingFocusGroup.onEntryFocus",
|
|
8281
|
+
}, {}), co = "rovingFocusGroup.onEntryFocus", _p = { bubbles: !1, cancelable: !0 }, Vt = "RovingFocusGroup", [Ro, ea, Op] = ss(Vt), [Ip, ta] = ct(
|
|
8257
8282
|
Vt,
|
|
8258
|
-
[
|
|
8259
|
-
), [
|
|
8260
|
-
(e, t) => /* @__PURE__ */ u(Ro.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ u(Ro.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ u(
|
|
8283
|
+
[Op]
|
|
8284
|
+
), [Mp, Dp] = Ip(Vt), na = d.forwardRef(
|
|
8285
|
+
(e, t) => /* @__PURE__ */ u(Ro.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ u(Ro.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ u(Lp, { ...e, ref: t }) }) })
|
|
8261
8286
|
);
|
|
8262
8287
|
na.displayName = Vt;
|
|
8263
|
-
var
|
|
8288
|
+
var Lp = d.forwardRef((e, t) => {
|
|
8264
8289
|
const {
|
|
8265
8290
|
__scopeRovingFocusGroup: n,
|
|
8266
8291
|
orientation: o,
|
|
@@ -8277,13 +8302,13 @@ var Dp = d.forwardRef((e, t) => {
|
|
|
8277
8302
|
defaultProp: a ?? null,
|
|
8278
8303
|
onChange: l,
|
|
8279
8304
|
caller: Vt
|
|
8280
|
-
}), [x, S] = d.useState(!1), C = qe(c), y = ea(n), E = d.useRef(!1), [
|
|
8305
|
+
}), [x, S] = d.useState(!1), C = qe(c), y = ea(n), E = d.useRef(!1), [$, k] = d.useState(0);
|
|
8281
8306
|
return d.useEffect(() => {
|
|
8282
|
-
const
|
|
8283
|
-
if (
|
|
8284
|
-
return
|
|
8307
|
+
const N = g.current;
|
|
8308
|
+
if (N)
|
|
8309
|
+
return N.addEventListener(co, C), () => N.removeEventListener(co, C);
|
|
8285
8310
|
}, [C]), /* @__PURE__ */ u(
|
|
8286
|
-
|
|
8311
|
+
Mp,
|
|
8287
8312
|
{
|
|
8288
8313
|
scope: n,
|
|
8289
8314
|
orientation: o,
|
|
@@ -8291,22 +8316,22 @@ var Dp = d.forwardRef((e, t) => {
|
|
|
8291
8316
|
loop: r,
|
|
8292
8317
|
currentTabStopId: h,
|
|
8293
8318
|
onItemFocus: d.useCallback(
|
|
8294
|
-
(
|
|
8319
|
+
(N) => v(N),
|
|
8295
8320
|
[v]
|
|
8296
8321
|
),
|
|
8297
8322
|
onItemShiftTab: d.useCallback(() => S(!0), []),
|
|
8298
8323
|
onFocusableItemAdd: d.useCallback(
|
|
8299
|
-
() => k((
|
|
8324
|
+
() => k((N) => N + 1),
|
|
8300
8325
|
[]
|
|
8301
8326
|
),
|
|
8302
8327
|
onFocusableItemRemove: d.useCallback(
|
|
8303
|
-
() => k((
|
|
8328
|
+
() => k((N) => N - 1),
|
|
8304
8329
|
[]
|
|
8305
8330
|
),
|
|
8306
8331
|
children: /* @__PURE__ */ u(
|
|
8307
8332
|
Ji.div,
|
|
8308
8333
|
{
|
|
8309
|
-
tabIndex: x ||
|
|
8334
|
+
tabIndex: x || $ === 0 ? -1 : 0,
|
|
8310
8335
|
"data-orientation": o,
|
|
8311
8336
|
...p,
|
|
8312
8337
|
ref: m,
|
|
@@ -8314,15 +8339,15 @@ var Dp = d.forwardRef((e, t) => {
|
|
|
8314
8339
|
onMouseDown: te(e.onMouseDown, () => {
|
|
8315
8340
|
E.current = !0;
|
|
8316
8341
|
}),
|
|
8317
|
-
onFocus: te(e.onFocus, (
|
|
8342
|
+
onFocus: te(e.onFocus, (N) => {
|
|
8318
8343
|
const G = !E.current;
|
|
8319
|
-
if (
|
|
8320
|
-
const
|
|
8321
|
-
if (
|
|
8322
|
-
const j = y().filter((D) => D.focusable),
|
|
8344
|
+
if (N.target === N.currentTarget && G && !x) {
|
|
8345
|
+
const K = new CustomEvent(co, _p);
|
|
8346
|
+
if (N.currentTarget.dispatchEvent(K), !K.defaultPrevented) {
|
|
8347
|
+
const j = y().filter((D) => D.focusable), X = j.find((D) => D.active), T = j.find((D) => D.id === h), H = [X, T, ...j].filter(
|
|
8323
8348
|
Boolean
|
|
8324
8349
|
).map((D) => D.ref.current);
|
|
8325
|
-
sa(
|
|
8350
|
+
sa(H, f);
|
|
8326
8351
|
}
|
|
8327
8352
|
}
|
|
8328
8353
|
E.current = !1;
|
|
@@ -8341,7 +8366,7 @@ var Dp = d.forwardRef((e, t) => {
|
|
|
8341
8366
|
tabStopId: s,
|
|
8342
8367
|
children: i,
|
|
8343
8368
|
...a
|
|
8344
|
-
} = e, l = Ut(), c = s || l, f =
|
|
8369
|
+
} = e, l = Ut(), c = s || l, f = Dp(oa, n), p = f.currentTabStopId === c, g = ea(n), { onFocusableItemAdd: m, onFocusableItemRemove: w, currentTabStopId: h } = f;
|
|
8345
8370
|
return d.useEffect(() => {
|
|
8346
8371
|
if (o)
|
|
8347
8372
|
return m(), () => w();
|
|
@@ -8369,7 +8394,7 @@ var Dp = d.forwardRef((e, t) => {
|
|
|
8369
8394
|
return;
|
|
8370
8395
|
}
|
|
8371
8396
|
if (v.target !== v.currentTarget) return;
|
|
8372
|
-
const x =
|
|
8397
|
+
const x = zp(v, f.orientation, f.dir);
|
|
8373
8398
|
if (x !== void 0) {
|
|
8374
8399
|
if (v.metaKey || v.ctrlKey || v.altKey || v.shiftKey) return;
|
|
8375
8400
|
v.preventDefault();
|
|
@@ -8378,7 +8403,7 @@ var Dp = d.forwardRef((e, t) => {
|
|
|
8378
8403
|
else if (x === "prev" || x === "next") {
|
|
8379
8404
|
x === "prev" && C.reverse();
|
|
8380
8405
|
const y = C.indexOf(v.currentTarget);
|
|
8381
|
-
C = f.loop ?
|
|
8406
|
+
C = f.loop ? Bp(C, y + 1) : C.slice(y + 1);
|
|
8382
8407
|
}
|
|
8383
8408
|
setTimeout(() => sa(C));
|
|
8384
8409
|
}
|
|
@@ -8391,7 +8416,7 @@ var Dp = d.forwardRef((e, t) => {
|
|
|
8391
8416
|
}
|
|
8392
8417
|
);
|
|
8393
8418
|
ra.displayName = oa;
|
|
8394
|
-
var
|
|
8419
|
+
var Fp = {
|
|
8395
8420
|
ArrowLeft: "prev",
|
|
8396
8421
|
ArrowUp: "prev",
|
|
8397
8422
|
ArrowRight: "next",
|
|
@@ -8401,23 +8426,23 @@ var Lp = {
|
|
|
8401
8426
|
PageDown: "last",
|
|
8402
8427
|
End: "last"
|
|
8403
8428
|
};
|
|
8404
|
-
function
|
|
8429
|
+
function $p(e, t) {
|
|
8405
8430
|
return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
8406
8431
|
}
|
|
8407
|
-
function
|
|
8408
|
-
const o =
|
|
8432
|
+
function zp(e, t, n) {
|
|
8433
|
+
const o = $p(e.key, n);
|
|
8409
8434
|
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(o)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(o)))
|
|
8410
|
-
return
|
|
8435
|
+
return Fp[o];
|
|
8411
8436
|
}
|
|
8412
8437
|
function sa(e, t = !1) {
|
|
8413
8438
|
const n = document.activeElement;
|
|
8414
8439
|
for (const o of e)
|
|
8415
8440
|
if (o === n || (o.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
8416
8441
|
}
|
|
8417
|
-
function
|
|
8442
|
+
function Bp(e, t) {
|
|
8418
8443
|
return e.map((n, o) => e[(t + o) % e.length]);
|
|
8419
8444
|
}
|
|
8420
|
-
var
|
|
8445
|
+
var Up = na, Wp = ra, Yo = "Radio", [Hp, ia] = ct(Yo), [Vp, jp] = Hp(Yo), aa = d.forwardRef(
|
|
8421
8446
|
(e, t) => {
|
|
8422
8447
|
const {
|
|
8423
8448
|
__scopeRadio: n,
|
|
@@ -8430,7 +8455,7 @@ var Bp = na, Up = ra, Yo = "Radio", [Wp, ia] = ct(Yo), [Hp, Vp] = Wp(Yo), aa = d
|
|
|
8430
8455
|
form: c,
|
|
8431
8456
|
...f
|
|
8432
8457
|
} = e, [p, g] = d.useState(null), m = ae(t, (v) => g(v)), w = d.useRef(!1), h = p ? c || !!p.closest("form") : !0;
|
|
8433
|
-
return /* @__PURE__ */ O(
|
|
8458
|
+
return /* @__PURE__ */ O(Vp, { scope: n, checked: r, disabled: i, children: [
|
|
8434
8459
|
/* @__PURE__ */ u(
|
|
8435
8460
|
Ln.button,
|
|
8436
8461
|
{
|
|
@@ -8468,7 +8493,7 @@ var Bp = na, Up = ra, Yo = "Radio", [Wp, ia] = ct(Yo), [Hp, Vp] = Wp(Yo), aa = d
|
|
|
8468
8493
|
aa.displayName = Yo;
|
|
8469
8494
|
var la = "RadioIndicator", ca = d.forwardRef(
|
|
8470
8495
|
(e, t) => {
|
|
8471
|
-
const { __scopeRadio: n, forceMount: o, ...r } = e, s =
|
|
8496
|
+
const { __scopeRadio: n, forceMount: o, ...r } = e, s = jp(la, n);
|
|
8472
8497
|
return /* @__PURE__ */ u(Pn, { present: o || s.checked, children: /* @__PURE__ */ u(
|
|
8473
8498
|
Ln.span,
|
|
8474
8499
|
{
|
|
@@ -8481,7 +8506,7 @@ var la = "RadioIndicator", ca = d.forwardRef(
|
|
|
8481
8506
|
}
|
|
8482
8507
|
);
|
|
8483
8508
|
ca.displayName = la;
|
|
8484
|
-
var
|
|
8509
|
+
var Gp = "RadioBubbleInput", ua = d.forwardRef(
|
|
8485
8510
|
({
|
|
8486
8511
|
__scopeRadio: e,
|
|
8487
8512
|
control: t,
|
|
@@ -8522,14 +8547,14 @@ var jp = "RadioBubbleInput", ua = d.forwardRef(
|
|
|
8522
8547
|
);
|
|
8523
8548
|
}
|
|
8524
8549
|
);
|
|
8525
|
-
ua.displayName =
|
|
8550
|
+
ua.displayName = Gp;
|
|
8526
8551
|
function da(e) {
|
|
8527
8552
|
return e ? "checked" : "unchecked";
|
|
8528
8553
|
}
|
|
8529
|
-
var
|
|
8554
|
+
var Yp = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Fn = "RadioGroup", [Kp] = ct(Fn, [
|
|
8530
8555
|
ta,
|
|
8531
8556
|
ia
|
|
8532
|
-
]), fa = ta(), pa = ia(), [
|
|
8557
|
+
]), fa = ta(), pa = ia(), [Xp, qp] = Kp(Fn), ma = d.forwardRef(
|
|
8533
8558
|
(e, t) => {
|
|
8534
8559
|
const {
|
|
8535
8560
|
__scopeRadioGroup: n,
|
|
@@ -8550,7 +8575,7 @@ var Gp = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Fn = "RadioGroup",
|
|
|
8550
8575
|
caller: Fn
|
|
8551
8576
|
});
|
|
8552
8577
|
return /* @__PURE__ */ u(
|
|
8553
|
-
|
|
8578
|
+
Xp,
|
|
8554
8579
|
{
|
|
8555
8580
|
scope: n,
|
|
8556
8581
|
name: o,
|
|
@@ -8559,7 +8584,7 @@ var Gp = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Fn = "RadioGroup",
|
|
|
8559
8584
|
value: h,
|
|
8560
8585
|
onValueChange: v,
|
|
8561
8586
|
children: /* @__PURE__ */ u(
|
|
8562
|
-
|
|
8587
|
+
Up,
|
|
8563
8588
|
{
|
|
8564
8589
|
asChild: !0,
|
|
8565
8590
|
...m,
|
|
@@ -8587,16 +8612,16 @@ var Gp = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Fn = "RadioGroup",
|
|
|
8587
8612
|
ma.displayName = Fn;
|
|
8588
8613
|
var ha = "RadioGroupItem", ga = d.forwardRef(
|
|
8589
8614
|
(e, t) => {
|
|
8590
|
-
const { __scopeRadioGroup: n, disabled: o, ...r } = e, s =
|
|
8615
|
+
const { __scopeRadioGroup: n, disabled: o, ...r } = e, s = qp(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
8616
|
return d.useEffect(() => {
|
|
8592
8617
|
const m = (h) => {
|
|
8593
|
-
|
|
8618
|
+
Yp.includes(h.key) && (g.current = !0);
|
|
8594
8619
|
}, w = () => g.current = !1;
|
|
8595
8620
|
return document.addEventListener("keydown", m), document.addEventListener("keyup", w), () => {
|
|
8596
8621
|
document.removeEventListener("keydown", m), document.removeEventListener("keyup", w);
|
|
8597
8622
|
};
|
|
8598
8623
|
}, []), /* @__PURE__ */ u(
|
|
8599
|
-
|
|
8624
|
+
Wp,
|
|
8600
8625
|
{
|
|
8601
8626
|
asChild: !0,
|
|
8602
8627
|
...a,
|
|
@@ -8626,20 +8651,20 @@ var ha = "RadioGroupItem", ga = d.forwardRef(
|
|
|
8626
8651
|
}
|
|
8627
8652
|
);
|
|
8628
8653
|
ga.displayName = ha;
|
|
8629
|
-
var
|
|
8654
|
+
var Zp = "RadioGroupIndicator", ba = d.forwardRef(
|
|
8630
8655
|
(e, t) => {
|
|
8631
8656
|
const { __scopeRadioGroup: n, ...o } = e, r = pa(n);
|
|
8632
8657
|
return /* @__PURE__ */ u(ca, { ...r, ...o, ref: t });
|
|
8633
8658
|
}
|
|
8634
8659
|
);
|
|
8635
|
-
ba.displayName =
|
|
8636
|
-
var
|
|
8637
|
-
function
|
|
8660
|
+
ba.displayName = Zp;
|
|
8661
|
+
var Qp = ma, Jp = ga, em = ba;
|
|
8662
|
+
function tm({
|
|
8638
8663
|
className: e,
|
|
8639
8664
|
...t
|
|
8640
8665
|
}) {
|
|
8641
8666
|
return /* @__PURE__ */ u(
|
|
8642
|
-
|
|
8667
|
+
Qp,
|
|
8643
8668
|
{
|
|
8644
8669
|
"data-slot": "radio-group",
|
|
8645
8670
|
className: On("grid gap-3", e),
|
|
@@ -8652,7 +8677,7 @@ function ns({
|
|
|
8652
8677
|
...t
|
|
8653
8678
|
}) {
|
|
8654
8679
|
return /* @__PURE__ */ u(
|
|
8655
|
-
|
|
8680
|
+
Jp,
|
|
8656
8681
|
{
|
|
8657
8682
|
"data-slot": "radio-group-item",
|
|
8658
8683
|
className: On(
|
|
@@ -8661,7 +8686,7 @@ function ns({
|
|
|
8661
8686
|
),
|
|
8662
8687
|
...t,
|
|
8663
8688
|
children: /* @__PURE__ */ u(
|
|
8664
|
-
|
|
8689
|
+
em,
|
|
8665
8690
|
{
|
|
8666
8691
|
"data-slot": "radio-group-indicator",
|
|
8667
8692
|
className: "relative flex items-center justify-center",
|
|
@@ -8676,7 +8701,7 @@ function ns({
|
|
|
8676
8701
|
}
|
|
8677
8702
|
);
|
|
8678
8703
|
}
|
|
8679
|
-
function
|
|
8704
|
+
function nm({
|
|
8680
8705
|
field: e,
|
|
8681
8706
|
formValues: t,
|
|
8682
8707
|
handleChange: n,
|
|
@@ -8692,7 +8717,7 @@ function tm({
|
|
|
8692
8717
|
className: `mb-4 ${e.fieldClass ? e.fieldClass : "col-span-full"}`,
|
|
8693
8718
|
children: [
|
|
8694
8719
|
/* @__PURE__ */ u(
|
|
8695
|
-
|
|
8720
|
+
tm,
|
|
8696
8721
|
{
|
|
8697
8722
|
value: i,
|
|
8698
8723
|
onValueChange: (g) => n(e.name, g),
|
|
@@ -8764,7 +8789,7 @@ function tm({
|
|
|
8764
8789
|
}
|
|
8765
8790
|
);
|
|
8766
8791
|
}
|
|
8767
|
-
function
|
|
8792
|
+
function om({ field: e }) {
|
|
8768
8793
|
const t = e.text || e.label || "", n = e.description || "", o = e.size || "2xl", r = e.separator || !1, s = e.align || "left", i = e.className || "", a = {
|
|
8769
8794
|
md: "text-lg font-semibold",
|
|
8770
8795
|
lg: "text-xl font-bold",
|
|
@@ -8802,7 +8827,7 @@ function nm({ field: e }) {
|
|
|
8802
8827
|
)
|
|
8803
8828
|
);
|
|
8804
8829
|
}
|
|
8805
|
-
function
|
|
8830
|
+
function rm({
|
|
8806
8831
|
field: e,
|
|
8807
8832
|
formValues: t,
|
|
8808
8833
|
handleChange: n,
|
|
@@ -8892,7 +8917,7 @@ function om({
|
|
|
8892
8917
|
)
|
|
8893
8918
|
] }) });
|
|
8894
8919
|
}
|
|
8895
|
-
function
|
|
8920
|
+
function sm({ field: e, formValues: t, handleChange: n, handleBlur: o, error: r }) {
|
|
8896
8921
|
const [s, i] = be(!1), [a, l] = be("12"), [c, f] = be("00"), [p, g] = be("PM"), m = t[e.name] || "";
|
|
8897
8922
|
Ke.useEffect(() => {
|
|
8898
8923
|
if (m) {
|
|
@@ -9135,13 +9160,13 @@ function rm({ field: e, formValues: t, handleChange: n, handleBlur: o, error: r
|
|
|
9135
9160
|
)
|
|
9136
9161
|
] }) });
|
|
9137
9162
|
}
|
|
9138
|
-
function
|
|
9163
|
+
function im({ message: e }) {
|
|
9139
9164
|
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: [
|
|
9140
9165
|
/* @__PURE__ */ u(gd, { "aria-hidden": "true", className: "size-5 text-red-500 shrink-0" }),
|
|
9141
9166
|
/* @__PURE__ */ u("span", { className: "text-sm font-medium text-red-900", children: e })
|
|
9142
9167
|
] }) });
|
|
9143
9168
|
}
|
|
9144
|
-
function
|
|
9169
|
+
function am({ message: e }) {
|
|
9145
9170
|
return /* @__PURE__ */ u("div", { className: "rounded-lg bg-amber-50 border border-amber-100 p-4 shadow-sm", children: /* @__PURE__ */ O("div", { className: "flex items-center gap-3", children: [
|
|
9146
9171
|
/* @__PURE__ */ u(
|
|
9147
9172
|
fd,
|
|
@@ -9153,7 +9178,7 @@ function im({ message: e }) {
|
|
|
9153
9178
|
/* @__PURE__ */ u("span", { className: "text-sm font-medium text-amber-900", children: e })
|
|
9154
9179
|
] }) });
|
|
9155
9180
|
}
|
|
9156
|
-
function
|
|
9181
|
+
function lm({ message: e }) {
|
|
9157
9182
|
return /* @__PURE__ */ u("div", { className: "rounded-lg bg-green-50 border border-green-100 p-4 shadow-sm", children: /* @__PURE__ */ O("div", { className: "flex items-center gap-3", children: [
|
|
9158
9183
|
/* @__PURE__ */ u(
|
|
9159
9184
|
md,
|
|
@@ -9165,183 +9190,185 @@ function am({ message: e }) {
|
|
|
9165
9190
|
/* @__PURE__ */ u("span", { className: "text-sm font-medium text-green-900", children: e })
|
|
9166
9191
|
] }) });
|
|
9167
9192
|
}
|
|
9168
|
-
function
|
|
9193
|
+
function cm({ message: e }) {
|
|
9169
9194
|
return /* @__PURE__ */ u("div", { className: "rounded-lg bg-blue-50 border border-blue-100 p-4 shadow-sm", children: /* @__PURE__ */ O("div", { className: "flex items-center gap-3", children: [
|
|
9170
9195
|
/* @__PURE__ */ u(Sd, { "aria-hidden": "true", className: "size-5 text-blue-600 shrink-0" }),
|
|
9171
9196
|
/* @__PURE__ */ u("span", { className: "text-sm font-medium text-blue-900", children: e })
|
|
9172
9197
|
] }) });
|
|
9173
9198
|
}
|
|
9174
|
-
function
|
|
9199
|
+
function um({ field: e }) {
|
|
9175
9200
|
const { variant: t = "info", message: n, content: o } = e, r = n || o || "";
|
|
9176
9201
|
switch (t.toLowerCase()) {
|
|
9177
9202
|
case "error":
|
|
9178
9203
|
case "danger":
|
|
9179
|
-
return /* @__PURE__ */ u(
|
|
9204
|
+
return /* @__PURE__ */ u(im, { message: r });
|
|
9180
9205
|
case "success":
|
|
9181
|
-
return /* @__PURE__ */ u(
|
|
9206
|
+
return /* @__PURE__ */ u(lm, { message: r });
|
|
9182
9207
|
case "warning":
|
|
9183
9208
|
case "warn":
|
|
9184
|
-
return /* @__PURE__ */ u(
|
|
9209
|
+
return /* @__PURE__ */ u(am, { message: r });
|
|
9185
9210
|
case "info":
|
|
9186
9211
|
case "information":
|
|
9187
9212
|
default:
|
|
9188
|
-
return /* @__PURE__ */ u(
|
|
9213
|
+
return /* @__PURE__ */ u(cm, { message: r });
|
|
9189
9214
|
}
|
|
9190
9215
|
}
|
|
9191
|
-
const
|
|
9216
|
+
const wm = ({
|
|
9192
9217
|
apiClient: e,
|
|
9193
9218
|
api_URL: t,
|
|
9194
9219
|
footerMode: n = "normal",
|
|
9195
9220
|
formDefinition: o,
|
|
9196
|
-
|
|
9221
|
+
returnType: r = !1,
|
|
9222
|
+
sendFormValues: s = () => {
|
|
9197
9223
|
},
|
|
9198
|
-
children:
|
|
9199
|
-
defaultValues:
|
|
9200
|
-
onFieldsChange:
|
|
9224
|
+
children: i,
|
|
9225
|
+
defaultValues: a = {},
|
|
9226
|
+
onFieldsChange: l = () => {
|
|
9201
9227
|
},
|
|
9202
|
-
debugMode:
|
|
9228
|
+
debugMode: c = !1
|
|
9203
9229
|
}) => {
|
|
9204
|
-
const [
|
|
9230
|
+
const [f, p] = be({ ...a }), [g, m] = be({}), [w, h] = be({}), [v, x] = be({}), [S, C] = be({}), [y, E] = be({
|
|
9205
9231
|
isOpen: !1,
|
|
9206
9232
|
fieldName: null
|
|
9207
|
-
}),
|
|
9233
|
+
}), $ = rs({}), k = [
|
|
9208
9234
|
"hidden",
|
|
9209
9235
|
"html",
|
|
9210
9236
|
"linebreak",
|
|
9211
9237
|
"header",
|
|
9212
9238
|
"alert"
|
|
9213
|
-
],
|
|
9239
|
+
], N = Ra(
|
|
9214
9240
|
() => ({
|
|
9215
9241
|
file: es,
|
|
9216
9242
|
multifile: es,
|
|
9217
|
-
dateRange:
|
|
9218
|
-
date:
|
|
9219
|
-
dayTimePicker:
|
|
9220
|
-
time:
|
|
9243
|
+
dateRange: dp,
|
|
9244
|
+
date: rm,
|
|
9245
|
+
dayTimePicker: pp,
|
|
9246
|
+
time: sm,
|
|
9221
9247
|
hidden: _a,
|
|
9222
9248
|
multiselect: Oa,
|
|
9223
9249
|
select: kd,
|
|
9224
9250
|
email: Pd,
|
|
9225
|
-
litertext:
|
|
9226
|
-
checkbox:
|
|
9227
|
-
radiogroup:
|
|
9251
|
+
litertext: tf,
|
|
9252
|
+
checkbox: nf,
|
|
9253
|
+
radiogroup: nm,
|
|
9228
9254
|
input: Br,
|
|
9229
|
-
|
|
9230
|
-
|
|
9231
|
-
|
|
9232
|
-
|
|
9255
|
+
number: _d,
|
|
9256
|
+
textarea: fp,
|
|
9257
|
+
header: om,
|
|
9258
|
+
alert: um,
|
|
9259
|
+
linebreak: Tp
|
|
9233
9260
|
}),
|
|
9234
9261
|
[]
|
|
9235
|
-
),
|
|
9262
|
+
), G = async (A, L = null) => {
|
|
9236
9263
|
if (!e) {
|
|
9237
|
-
const
|
|
9238
|
-
|
|
9264
|
+
const _ = `apiClient prop is required when using fields with optionsUrl. Field "${A.name}" requires optionsUrl but no apiClient was provided.`;
|
|
9265
|
+
c && console.error(_), fn.error(_);
|
|
9239
9266
|
return;
|
|
9240
9267
|
}
|
|
9241
9268
|
try {
|
|
9242
|
-
const
|
|
9243
|
-
let
|
|
9244
|
-
|
|
9245
|
-
{ value: "", label: `Select ${
|
|
9246
|
-
...
|
|
9247
|
-
] :
|
|
9248
|
-
...
|
|
9249
|
-
value:
|
|
9250
|
-
label:
|
|
9269
|
+
const _ = await e(`/${A.optionsUrl}`);
|
|
9270
|
+
let z = [];
|
|
9271
|
+
A.type === "select" ? z = [
|
|
9272
|
+
{ value: "", label: `Select ${A.label.toLowerCase()}` },
|
|
9273
|
+
..._.data
|
|
9274
|
+
] : z = [
|
|
9275
|
+
..._.data.map((M) => ({
|
|
9276
|
+
value: M.value,
|
|
9277
|
+
label: M.label
|
|
9251
9278
|
}))
|
|
9252
|
-
], o.fields.forEach((
|
|
9253
|
-
|
|
9279
|
+
], o.fields.forEach((M) => {
|
|
9280
|
+
M.name === A.name && (M.options = z);
|
|
9254
9281
|
});
|
|
9255
|
-
} catch (
|
|
9256
|
-
|
|
9282
|
+
} catch (_) {
|
|
9283
|
+
c && console.error(`Failed to load options for ${A.name}:`, _);
|
|
9257
9284
|
} finally {
|
|
9258
9285
|
}
|
|
9259
9286
|
};
|
|
9260
9287
|
fo(() => {
|
|
9261
9288
|
if (o?.fields && o.fields.length > 0) {
|
|
9262
|
-
if (!o.fields.some((
|
|
9263
|
-
o.fields.forEach((
|
|
9264
|
-
|
|
9289
|
+
if (!o.fields.some((_) => _.value)) return;
|
|
9290
|
+
o.fields.forEach((_) => {
|
|
9291
|
+
_.optionsUrl && G(_);
|
|
9265
9292
|
});
|
|
9266
|
-
const
|
|
9267
|
-
o.fields.forEach((
|
|
9268
|
-
if (!
|
|
9269
|
-
const
|
|
9270
|
-
_
|
|
9271
|
-
}),
|
|
9293
|
+
const L = {};
|
|
9294
|
+
o.fields.forEach((_) => {
|
|
9295
|
+
if (!_.name) return;
|
|
9296
|
+
const z = _.type === "multiselect" || _.type === "checkbox" && _.options && _.options.length > 0;
|
|
9297
|
+
L[_.name] = a[_.name] ?? _.value ?? (z ? [] : "");
|
|
9298
|
+
}), p(L);
|
|
9272
9299
|
}
|
|
9273
9300
|
}, [o]);
|
|
9274
|
-
const
|
|
9275
|
-
const
|
|
9276
|
-
if (
|
|
9277
|
-
return
|
|
9278
|
-
if (
|
|
9301
|
+
const K = (A, L, _) => {
|
|
9302
|
+
const z = typeof L == "object" && L !== null && !Array.isArray(L) && !(L instanceof Date), M = L == null || typeof L == "string" && L.trim() === "" || Array.isArray(L) && L.length === 0 || A.type === "checkbox" && L === !1 || z && Object.keys(L).length === 0;
|
|
9303
|
+
if (A.required && M)
|
|
9304
|
+
return c && console.warn(`VALIDATION FAILED (REQUIRED): ${A.name} is empty.`), `${A.label} is required`;
|
|
9305
|
+
if (M && !A.required)
|
|
9279
9306
|
return null;
|
|
9280
|
-
if (
|
|
9281
|
-
const
|
|
9282
|
-
if (
|
|
9307
|
+
if (A.validate) {
|
|
9308
|
+
const re = A.validate(L, _);
|
|
9309
|
+
if (re) return re;
|
|
9283
9310
|
}
|
|
9284
|
-
if (
|
|
9311
|
+
if (A.type === "email" && L && !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(L))
|
|
9285
9312
|
return "Please enter a valid email address";
|
|
9286
|
-
if (
|
|
9287
|
-
if (
|
|
9288
|
-
return `${
|
|
9289
|
-
if (
|
|
9290
|
-
return `${
|
|
9313
|
+
if (A.type === "number") {
|
|
9314
|
+
if (A.min !== void 0 && L < A.min)
|
|
9315
|
+
return `${A.label} must be at least ${A.min}`;
|
|
9316
|
+
if (A.max !== void 0 && L > A.max)
|
|
9317
|
+
return `${A.label} must be no more than ${A.max}`;
|
|
9291
9318
|
}
|
|
9292
|
-
return
|
|
9293
|
-
},
|
|
9294
|
-
const
|
|
9295
|
-
if (!
|
|
9296
|
-
const
|
|
9297
|
-
|
|
9298
|
-
(
|
|
9299
|
-
) :
|
|
9319
|
+
return A.type === "date" && L && !fr(L).isValid() ? `${A.label} must be a valid date` : A.maxLength && L && L.length > A.maxLength ? `${A.label} must not exceed ${A.maxLength} characters` : null;
|
|
9320
|
+
}, j = (A, L) => {
|
|
9321
|
+
const _ = o.fields.find((M) => M.name === A);
|
|
9322
|
+
if (!_) return;
|
|
9323
|
+
const z = { ...f };
|
|
9324
|
+
_.type === "multiselect" ? z[A] = Array.isArray(L) ? L : Array.from(L.target.selectedOptions).map(
|
|
9325
|
+
(M) => M.value
|
|
9326
|
+
) : _.type === "dateRange" ? z[A] = [
|
|
9300
9327
|
{
|
|
9301
|
-
startDate:
|
|
9302
|
-
endDate:
|
|
9328
|
+
startDate: L[0].from,
|
|
9329
|
+
endDate: L[0].to,
|
|
9303
9330
|
key: "selection"
|
|
9304
9331
|
}
|
|
9305
|
-
] :
|
|
9306
|
-
if (
|
|
9307
|
-
const
|
|
9308
|
-
|
|
9332
|
+
] : _.type === "dayTimePicker" ? z[A] = L ? fr(L).format("YYYY-MM-DD HH:mm:ss") : "" : _.type === "number" ? z[A] = L === "" ? "" : Number(L) : z[A] = L, _.type === "select" && o.fields.forEach((M) => {
|
|
9333
|
+
if (M.showIf && !M.showIf(z)) {
|
|
9334
|
+
const re = M.type === "multiselect" || M.type === "checkbox" && M.options && M.options.length > 0;
|
|
9335
|
+
z[M.name] = re ? [] : "";
|
|
9309
9336
|
}
|
|
9310
|
-
}), o.fields.forEach((
|
|
9311
|
-
if (typeof
|
|
9312
|
-
const
|
|
9313
|
-
|
|
9337
|
+
}), o.fields.forEach((M) => {
|
|
9338
|
+
if (typeof M.disabled == "function" && M.disabled(z)) {
|
|
9339
|
+
const re = M.type === "multiselect" || M.type === "checkbox" && M.options && M.options.length > 0;
|
|
9340
|
+
z[M.name] = re ? [] : "";
|
|
9314
9341
|
}
|
|
9315
|
-
}),
|
|
9316
|
-
},
|
|
9317
|
-
|
|
9318
|
-
},
|
|
9319
|
-
|
|
9342
|
+
}), p(z);
|
|
9343
|
+
}, X = (A) => {
|
|
9344
|
+
h({ ...w, [A]: !0 });
|
|
9345
|
+
}, T = (A) => {
|
|
9346
|
+
A.preventDefault();
|
|
9347
|
+
const L = {};
|
|
9348
|
+
o.fields.forEach((z) => {
|
|
9349
|
+
L[z.name] = !0;
|
|
9350
|
+
}), h(L);
|
|
9320
9351
|
const _ = {};
|
|
9321
|
-
o.fields.forEach((
|
|
9322
|
-
|
|
9323
|
-
|
|
9324
|
-
|
|
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] = $);
|
|
9352
|
+
if (o.fields.forEach((z) => {
|
|
9353
|
+
if (z.name && (typeof z.disabled == "function" ? z.disabled(f) : z.disabled, !z.showIf || z.showIf(f))) {
|
|
9354
|
+
const M = K(z, f[z.name], f);
|
|
9355
|
+
M && (_[z.name] = M);
|
|
9329
9356
|
}
|
|
9330
|
-
}),
|
|
9331
|
-
const
|
|
9332
|
-
o.fields.forEach((
|
|
9333
|
-
|
|
9334
|
-
value:
|
|
9335
|
-
fieldType:
|
|
9336
|
-
});
|
|
9337
|
-
}),
|
|
9357
|
+
}), m(_), Object.keys(_).length === 0) {
|
|
9358
|
+
const z = {};
|
|
9359
|
+
o.fields.forEach((M) => {
|
|
9360
|
+
M.name && (r ? z[M.name] = {
|
|
9361
|
+
value: f[M.name],
|
|
9362
|
+
fieldType: M.fieldType || "string"
|
|
9363
|
+
} : z[M.name] = f[M.name]);
|
|
9364
|
+
}), c ? console.log("Form submitted with values:", z) : s(z);
|
|
9338
9365
|
} else
|
|
9339
9366
|
fn.error("Please correct the errors in the form");
|
|
9340
9367
|
};
|
|
9341
9368
|
fo(() => {
|
|
9342
|
-
|
|
9343
|
-
}, [
|
|
9344
|
-
const
|
|
9369
|
+
l(f);
|
|
9370
|
+
}, [f, l]);
|
|
9371
|
+
const F = {
|
|
9345
9372
|
green: "border-green-500 bg-green-50",
|
|
9346
9373
|
blue: "border-blue-500 bg-blue-50",
|
|
9347
9374
|
red: "border-red-500 bg-red-50",
|
|
@@ -9351,113 +9378,113 @@ const ym = ({
|
|
|
9351
9378
|
gray: "border-gray-500 bg-gray-50",
|
|
9352
9379
|
pink: "border-pink-500 bg-pink-50",
|
|
9353
9380
|
orange: "border-orange-500 bg-orange-50"
|
|
9354
|
-
},
|
|
9355
|
-
|
|
9356
|
-
...
|
|
9357
|
-
[
|
|
9358
|
-
})),
|
|
9359
|
-
},
|
|
9360
|
-
|
|
9381
|
+
}, H = () => {
|
|
9382
|
+
y.fieldName && C((A) => ({
|
|
9383
|
+
...A,
|
|
9384
|
+
[y.fieldName]: !0
|
|
9385
|
+
})), E({ isOpen: !1, fieldName: null });
|
|
9386
|
+
}, D = () => {
|
|
9387
|
+
E({ isOpen: !1, fieldName: null });
|
|
9361
9388
|
};
|
|
9362
|
-
function
|
|
9363
|
-
if (
|
|
9364
|
-
`[fieldFormat RENDER] Rendering error for ${
|
|
9365
|
-
) :
|
|
9366
|
-
`[fieldFormat RENDER] Error exists in state for ${
|
|
9367
|
-
)),
|
|
9368
|
-
return /* @__PURE__ */ u("div", { className:
|
|
9369
|
-
const
|
|
9370
|
-
const
|
|
9371
|
-
!
|
|
9389
|
+
function Y(A, L, _) {
|
|
9390
|
+
if (c && (_ ? console.log(
|
|
9391
|
+
`[fieldFormat RENDER] Rendering error for ${L.name}: ${_}`
|
|
9392
|
+
) : g[L.name] && console.log(
|
|
9393
|
+
`[fieldFormat RENDER] Error exists in state for ${L.name} but not passed in props!`
|
|
9394
|
+
)), k.includes(L.type))
|
|
9395
|
+
return /* @__PURE__ */ u("div", { className: L.fieldClass || "col-span-full", children: A });
|
|
9396
|
+
const z = L.containerStyle, M = L.color || "blue", re = z === "card" ? `rounded-lg border text-card-foreground shadow-sm p-4 ${L.containerClassName || F[M] || F.blue}` : "", I = S[L.name] === !0, J = L.disabled === !0 && L.override === !0, se = () => {
|
|
9397
|
+
const ee = L.name;
|
|
9398
|
+
!I ? E({
|
|
9372
9399
|
isOpen: !0,
|
|
9373
|
-
fieldName:
|
|
9374
|
-
}) :
|
|
9375
|
-
...
|
|
9376
|
-
[
|
|
9400
|
+
fieldName: ee
|
|
9401
|
+
}) : C((ce) => ({
|
|
9402
|
+
...ce,
|
|
9403
|
+
[ee]: !1
|
|
9377
9404
|
// Lock it back (set override to false)
|
|
9378
9405
|
}));
|
|
9379
|
-
},
|
|
9380
|
-
|
|
9406
|
+
}, Z = /* @__PURE__ */ O(Le, { children: [
|
|
9407
|
+
L.label && /* @__PURE__ */ O(
|
|
9381
9408
|
"label",
|
|
9382
9409
|
{
|
|
9383
|
-
htmlFor:
|
|
9410
|
+
htmlFor: L.name,
|
|
9384
9411
|
className: "block text-sm font-medium mb-1",
|
|
9385
9412
|
children: [
|
|
9386
|
-
|
|
9387
|
-
|
|
9388
|
-
|
|
9413
|
+
L.label,
|
|
9414
|
+
L.required && /* @__PURE__ */ u("span", { className: "text-red-500 ml-1", children: "*" }),
|
|
9415
|
+
J && /* @__PURE__ */ u(
|
|
9389
9416
|
"button",
|
|
9390
9417
|
{
|
|
9391
9418
|
type: "button",
|
|
9392
|
-
onClick:
|
|
9419
|
+
onClick: se,
|
|
9393
9420
|
className: `ml-2 p-[0.25rem] rounded-sm transition-all duration-150
|
|
9394
|
-
${
|
|
9395
|
-
title:
|
|
9396
|
-
children:
|
|
9421
|
+
${I ? " text-gray-600 bg-gray-100" : " text-gray-600 hover:bg-gray-300"}`,
|
|
9422
|
+
title: I ? "Field is Overridden (Enabled)" : "Field is Locked (Disabled)",
|
|
9423
|
+
children: I ? /* @__PURE__ */ u(Ed, { size: 14 }) : /* @__PURE__ */ u(Nd, { size: 14 })
|
|
9397
9424
|
}
|
|
9398
9425
|
)
|
|
9399
9426
|
]
|
|
9400
9427
|
}
|
|
9401
9428
|
),
|
|
9402
|
-
/* @__PURE__ */ u("div", { children:
|
|
9403
|
-
|
|
9429
|
+
/* @__PURE__ */ u("div", { children: A }),
|
|
9430
|
+
_ && /* @__PURE__ */ u("p", { className: "text-sm text-red-500 mt-1", children: _ })
|
|
9404
9431
|
] });
|
|
9405
|
-
return /* @__PURE__ */ u("div", { className: `mb-4 ${
|
|
9432
|
+
return /* @__PURE__ */ u("div", { className: `mb-4 ${L.fieldClass || "col-span-8"}`, children: z === "card" ? /* @__PURE__ */ u("div", { className: re, children: Z }) : Z });
|
|
9406
9433
|
}
|
|
9407
|
-
const
|
|
9408
|
-
if (
|
|
9409
|
-
const
|
|
9410
|
-
if (
|
|
9411
|
-
const
|
|
9412
|
-
|
|
9434
|
+
const R = (A) => {
|
|
9435
|
+
if (A.showIf && !A.showIf(f)) return null;
|
|
9436
|
+
const L = N[A.type] || Br;
|
|
9437
|
+
if (f[A.name] === void 0) {
|
|
9438
|
+
const I = A.type === "multiselect" || A.type === "checkbox" && A.options && A.options.length > 0;
|
|
9439
|
+
f[A.name] = A.value !== void 0 ? A.value : I ? [] : "";
|
|
9413
9440
|
}
|
|
9414
|
-
const
|
|
9415
|
-
return
|
|
9441
|
+
const _ = g[A.name] ? g[A.name] : null, z = typeof A.disabled == "function" ? A.disabled(f) : !!A.disabled, M = S[A.name] === !0, re = z && !M;
|
|
9442
|
+
return Y(
|
|
9416
9443
|
/* @__PURE__ */ u(
|
|
9417
|
-
|
|
9444
|
+
L,
|
|
9418
9445
|
{
|
|
9419
|
-
field:
|
|
9420
|
-
formValues:
|
|
9421
|
-
handleChange:
|
|
9422
|
-
handleBlur: () =>
|
|
9423
|
-
setCharCounts:
|
|
9424
|
-
charCount:
|
|
9446
|
+
field: A,
|
|
9447
|
+
formValues: f,
|
|
9448
|
+
handleChange: j,
|
|
9449
|
+
handleBlur: () => X(A.name),
|
|
9450
|
+
setCharCounts: x,
|
|
9451
|
+
charCount: v[A.name] || 0,
|
|
9425
9452
|
api_URL: t,
|
|
9426
|
-
error:
|
|
9427
|
-
fileInputRefs:
|
|
9428
|
-
disabled:
|
|
9453
|
+
error: _,
|
|
9454
|
+
fileInputRefs: $,
|
|
9455
|
+
disabled: re
|
|
9429
9456
|
}
|
|
9430
9457
|
),
|
|
9431
|
-
|
|
9432
|
-
|
|
9458
|
+
A,
|
|
9459
|
+
_
|
|
9433
9460
|
);
|
|
9434
|
-
},
|
|
9435
|
-
(
|
|
9436
|
-
)?.label ||
|
|
9461
|
+
}, le = o?.fields?.find(
|
|
9462
|
+
(A) => A.name === y.fieldName
|
|
9463
|
+
)?.label || y.fieldName;
|
|
9437
9464
|
return /* @__PURE__ */ O(
|
|
9438
9465
|
"form",
|
|
9439
9466
|
{
|
|
9440
|
-
onSubmit:
|
|
9467
|
+
onSubmit: T,
|
|
9441
9468
|
className: "grid grid-cols-12 gap-x-4 mx-auto w-full ",
|
|
9442
9469
|
children: [
|
|
9443
|
-
o ? o.fields.map((
|
|
9470
|
+
o ? o.fields.map((A) => /* @__PURE__ */ u("div", { className: "col-span-full", children: R(A) }, A.name + A.type)) : /* @__PURE__ */ u("div", { children: "Loading..." }),
|
|
9444
9471
|
/* @__PURE__ */ u(
|
|
9445
9472
|
"div",
|
|
9446
9473
|
{
|
|
9447
9474
|
className: n === "sticky" ? "absolute col-span-full w-full bottom-0 bg-white py-4 flex justify-end gap-2 z-50" : "col-span-full mt-4 flex justify-end gap-2",
|
|
9448
|
-
children:
|
|
9475
|
+
children: i
|
|
9449
9476
|
}
|
|
9450
9477
|
),
|
|
9451
|
-
|
|
9478
|
+
y.isOpen && /* @__PURE__ */ O(Le, { children: [
|
|
9452
9479
|
/* @__PURE__ */ u(
|
|
9453
9480
|
"div",
|
|
9454
9481
|
{
|
|
9455
9482
|
className: "fixed inset-0 z-30 bg-black opacity-40",
|
|
9456
|
-
onClick:
|
|
9483
|
+
onClick: D,
|
|
9457
9484
|
tabIndex: 0,
|
|
9458
9485
|
role: "button",
|
|
9459
|
-
onKeyDown: (
|
|
9460
|
-
(
|
|
9486
|
+
onKeyDown: (A) => {
|
|
9487
|
+
(A.key === "Enter" || A.key === " ") && D();
|
|
9461
9488
|
}
|
|
9462
9489
|
}
|
|
9463
9490
|
),
|
|
@@ -9465,12 +9492,12 @@ const ym = ({
|
|
|
9465
9492
|
"div",
|
|
9466
9493
|
{
|
|
9467
9494
|
className: "bg-white rounded-xl shadow-2xl w-full max-w-sm transform transition-all",
|
|
9468
|
-
onClick: (
|
|
9495
|
+
onClick: (A) => A.stopPropagation(),
|
|
9469
9496
|
tabIndex: -1,
|
|
9470
9497
|
role: "dialog",
|
|
9471
9498
|
"aria-modal": "true",
|
|
9472
|
-
onKeyDown: (
|
|
9473
|
-
|
|
9499
|
+
onKeyDown: (A) => {
|
|
9500
|
+
A.key === "Escape" && D();
|
|
9474
9501
|
},
|
|
9475
9502
|
children: [
|
|
9476
9503
|
/* @__PURE__ */ O("div", { className: "flex justify-between items-center border-b p-4", children: [
|
|
@@ -9479,7 +9506,7 @@ const ym = ({
|
|
|
9479
9506
|
"button",
|
|
9480
9507
|
{
|
|
9481
9508
|
type: "button",
|
|
9482
|
-
onClick:
|
|
9509
|
+
onClick: D,
|
|
9483
9510
|
className: "text-gray-400 hover:text-gray-600 p-1 rounded-full hover:bg-gray-100 transition",
|
|
9484
9511
|
"aria-label": "Close",
|
|
9485
9512
|
children: /* @__PURE__ */ u(Td, { size: 20 })
|
|
@@ -9498,7 +9525,7 @@ const ym = ({
|
|
|
9498
9525
|
] }),
|
|
9499
9526
|
/* @__PURE__ */ O("p", { className: "font-bold", children: [
|
|
9500
9527
|
'"',
|
|
9501
|
-
|
|
9528
|
+
le,
|
|
9502
9529
|
'"'
|
|
9503
9530
|
] }),
|
|
9504
9531
|
/* @__PURE__ */ u("div", { className: "italic text-sm text-gray-500 mb-2", children: "This action allows editing of a protected value." }),
|
|
@@ -9507,7 +9534,7 @@ const ym = ({
|
|
|
9507
9534
|
"button",
|
|
9508
9535
|
{
|
|
9509
9536
|
type: "button",
|
|
9510
|
-
onClick:
|
|
9537
|
+
onClick: D,
|
|
9511
9538
|
className: "px-4 py-2 text-sm font-medium text-gray-700 bg-gray-200 rounded-lg hover:bg-gray-300 transition",
|
|
9512
9539
|
children: "Cancel"
|
|
9513
9540
|
}
|
|
@@ -9516,7 +9543,7 @@ const ym = ({
|
|
|
9516
9543
|
"button",
|
|
9517
9544
|
{
|
|
9518
9545
|
type: "button",
|
|
9519
|
-
onClick:
|
|
9546
|
+
onClick: H,
|
|
9520
9547
|
className: "px-4 py-2 text-sm font-medium text-white bg-destructive rounded-lg hover:bg-red-700 transition shadow-md",
|
|
9521
9548
|
children: "Unlock Field"
|
|
9522
9549
|
}
|
|
@@ -9532,6 +9559,6 @@ const ym = ({
|
|
|
9532
9559
|
);
|
|
9533
9560
|
};
|
|
9534
9561
|
export {
|
|
9535
|
-
|
|
9536
|
-
|
|
9562
|
+
wm as DynamicForm,
|
|
9563
|
+
wm as default
|
|
9537
9564
|
};
|