opsfuse-ui 0.1.19 → 0.1.21
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/components/opsfuse-root.d.ts +2 -5
- package/dist/components/opsfuse-root.d.ts.map +1 -1
- package/dist/components/opsfuse-theme-provider.d.ts +8 -1
- package/dist/components/opsfuse-theme-provider.d.ts.map +1 -1
- package/dist/components/ui/breadcrumb.d.ts +1 -1
- package/dist/components/ui/breadcrumb.d.ts.map +1 -1
- package/dist/components/ui/combobox.d.ts +3 -1
- package/dist/components/ui/combobox.d.ts.map +1 -1
- package/dist/components/ui/shadcn/shadcn-combobox.d.ts +1 -1
- package/dist/components/ui/shadcn/shadcn-combobox.d.ts.map +1 -1
- package/dist/components/ui/shadcn/shadcn-pagination.d.ts.map +1 -1
- package/dist/components/ui/sidebar.d.ts +1 -1
- package/dist/components/ui/sidebar.d.ts.map +1 -1
- package/dist/core.js +3 -3
- package/dist/extended.js +2 -2
- package/dist/index.js +319 -319
- package/dist/{input-group-B2bCcHga.js → input-group-BAkukY-L.js} +1092 -1065
- package/dist/{input-otp-VacbU32o.js → input-otp-DyyXKjPp.js} +3607 -3599
- package/dist/lib/link.d.ts +13 -0
- package/dist/lib/link.d.ts.map +1 -0
- package/dist/lib/portaled-layer.d.ts +7 -1
- package/dist/lib/portaled-layer.d.ts.map +1 -1
- package/dist/public-api-core.d.ts +1 -0
- package/dist/public-api-core.d.ts.map +1 -1
- package/dist/public-api.d.ts +1 -0
- package/dist/public-api.d.ts.map +1 -1
- package/dist/{toggle-group-Bzi1t2AX.js → toggle-group-Bpg09Bg7.js} +2998 -2989
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import { A as e, C as t, F as n,
|
|
2
|
-
import { t as
|
|
3
|
-
import { kT as
|
|
4
|
-
import { t as
|
|
5
|
-
import { $ as
|
|
6
|
-
import { $ as
|
|
7
|
-
import * as
|
|
8
|
-
import { createContext as
|
|
9
|
-
import { useSyncExternalStoreWithSelector as
|
|
10
|
-
import { Fragment as
|
|
1
|
+
import { A as e, C as t, F as n, Gt as r, I as i, L as a, M as o, N as s, R as c, S as l, _ as u, a as d, b as f, c as p, d as m, f as h, g, h as _, i as v, j as y, k as b, l as x, m as ee, n as te, o as ne, p as re, r as ie, s as ae, t as oe, u as se, v as ce, x as le, y as ue, z as de } from "./input-group-BAkukY-L.js";
|
|
2
|
+
import { t as fe } from "./date-fns-DTKqTajJ.js";
|
|
3
|
+
import { kT as pe, t as me } from "./lucide-react-Dil0H3iN.js";
|
|
4
|
+
import { t as he } from "./es6-CLjPx7Zx.js";
|
|
5
|
+
import { $ as ge, $n as _e, $r as ve, $t as ye, A as be, An as xe, Ar as Se, At as Ce, B as we, Bn as Te, Br as Ee, Bt as De, C as Oe, Cn as ke, Cr as Ae, Ct as je, D as Me, Dn as Ne, Dr as Pe, Dt as Fe, E as Ie, En as Le, Er as Re, Et as ze, F as Be, Fn as Ve, Fr as He, Ft as Ue, G as We, Gn as Ge, Gr as Ke, Gt as qe, H as Je, Hn as Ye, Hr as Xe, Ht as Ze, I as Qe, In as $e, Ir as et, It as tt, J as nt, Jn as rt, Jr as it, Jt as at, K as ot, Kn as st, Kr as ct, Kt as lt, L as ut, Ln as dt, Lr as ft, Lt as pt, M as mt, Mn as ht, Mr as gt, Mt as _t, N as vt, Nn as yt, Nr as bt, Nt as xt, O as St, On as Ct, Or as wt, Ot as Tt, P as Et, Pn as Dt, Pr as Ot, Pt as kt, Q as At, Qn as jt, Qr as Mt, Qt as Nt, R as Pt, Rn as Ft, Rr as It, Rt as Lt, S as Rt, Sn as zt, Sr as Bt, St as Vt, T as Ht, Tn as Ut, Tr as Wt, Tt as Gt, U as Kt, Un as qt, Ur as Jt, Ut as Yt, V as Xt, Vn as Zt, Vr as Qt, Vt as $t, W as en, Wn as tn, Wr as nn, Wt as rn, X as an, Xn as on, Xr as sn, Xt as cn, Y as ln, Yn as un, Yr as dn, Yt as fn, Z as pn, Zn as mn, Zr as hn, Zt as gn, _ as _n, _n as vn, _r as yn, _t as bn, a as xn, ai as Sn, an as Cn, ar as wn, at as Tn, b as En, bn as Dn, br as On, bt as kn, c as An, ci as jn, cn as Mn, cr as Nn, ct as Pn, d as Fn, di as In, dn as Ln, dr as Rn, dt as zn, ei as Bn, en as Vn, er as Hn, et as Un, f as Wn, fn as Gn, fr as Kn, ft as qn, g as Jn, gn as Yn, gr as Xn, gt as Zn, h as Qn, hn as $n, hr as er, ht as tr, i as nr, ii as rr, in as ir, ir as ar, it as or, j as sr, jn as cr, jr as lr, jt as ur, k as dr, kn as fr, kr as pr, kt as mr, l as hr, li as gr, ln as _r, lr as vr, lt as yr, m as br, mn as xr, mr as Sr, mt as Cr, n as wr, ni as Tr, nn as Er, nr as Dr, nt as Or, o as kr, oi as Ar, on as jr, or as Mr, ot as Nr, p as Pr, pn as Fr, pr as Ir, pt as Lr, q as Rr, qn as zr, qr as Br, qt as Vr, r as Hr, ri as Ur, rn as Wr, rr as Gr, rt as Kr, s as qr, si as Jr, sn as Yr, sr as Xr, st as Zr, t as Qr, ti as $r, tn as ei, tr as ti, tt as ni, u as ri, ui as ii, un as ai, ur as oi, ut as si, v as ci, vn as li, vr as ui, vt as di, w as fi, wn as pi, wr as mi, wt as hi, x as gi, xn as _i, xr as vi, xt as yi, y as bi, yn as xi, yr as Si, yt as Ci, z as wi, zn as Ti, zr as Ei, zt as Di } from "./toggle-group-Bpg09Bg7.js";
|
|
6
|
+
import { $ as Oi, A as ki, B as Ai, C as ji, D as Mi, E as Ni, F as Pi, G as Fi, H as Ii, I as Li, J as Ri, K as zi, L as Bi, M as Vi, N as Hi, O as Ui, P as Wi, Q as Gi, R as Ki, S as qi, T as Ji, U as Yi, V as Xi, W as Zi, X as Qi, Y as $i, Z as ea, _ as ta, a as na, b as ra, c as ia, d as aa, et as oa, f as sa, g as ca, h as la, i as ua, j as da, k as fa, l as pa, m as ma, n as ha, nt as ga, o as _a, p as va, q as ya, r as ba, s as xa, t as Sa, tt as Ca, u as wa, v as Ta, w as Ea, x as Da, y as Oa, z as ka } from "./input-otp-DyyXKjPp.js";
|
|
7
|
+
import * as Aa from "react";
|
|
8
|
+
import { createContext as ja, useCallback as Ma, useContext as Na, useEffect as Pa, useLayoutEffect as Fa, useMemo as S, useRef as Ia, useState as C } from "react";
|
|
9
|
+
import { useSyncExternalStoreWithSelector as La } from "use-sync-external-store/shim/with-selector";
|
|
10
|
+
import { Fragment as Ra, jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
11
11
|
//#region src/components/ui/autocomplete.tsx
|
|
12
|
-
function
|
|
13
|
-
let d =
|
|
14
|
-
return /* @__PURE__ */
|
|
12
|
+
function za({ items: e, placeholder: t = "Select...", placeholderIcon: n, emptyMessage: i = "No items found.", disabled: o = !1, triggerWidth: s = "w-64", label: c, multiple: l, ...u }) {
|
|
13
|
+
let d = ga();
|
|
14
|
+
return /* @__PURE__ */ T("div", {
|
|
15
15
|
className: "flex flex-col gap-2",
|
|
16
|
-
children: [
|
|
16
|
+
children: [c && /* @__PURE__ */ w(x, { children: c }), /* @__PURE__ */ T(ka, {
|
|
17
17
|
items: e,
|
|
18
|
-
multiple:
|
|
19
|
-
disabled:
|
|
20
|
-
...
|
|
21
|
-
children: [
|
|
18
|
+
multiple: l,
|
|
19
|
+
disabled: o,
|
|
20
|
+
...u,
|
|
21
|
+
children: [l ? /* @__PURE__ */ T(Xi, {
|
|
22
22
|
ref: d,
|
|
23
|
-
className:
|
|
24
|
-
children: [n ? /* @__PURE__ */
|
|
23
|
+
className: s,
|
|
24
|
+
children: [n ? /* @__PURE__ */ w("span", {
|
|
25
25
|
"data-icon": "inline-start",
|
|
26
26
|
className: "contents text-muted-foreground [&>svg:not([class*='size-'])]:size-4",
|
|
27
27
|
children: n
|
|
28
|
-
}) : null, /* @__PURE__ */
|
|
28
|
+
}) : null, /* @__PURE__ */ w(Ca, { children: (e) => {
|
|
29
29
|
let n = e ?? [];
|
|
30
|
-
return /* @__PURE__ */
|
|
30
|
+
return /* @__PURE__ */ T(Aa.Fragment, { children: [n.map((e) => /* @__PURE__ */ w(Ai, { children: e.label }, e.value)), /* @__PURE__ */ w(Ii, {
|
|
31
31
|
placeholder: t,
|
|
32
|
-
disabled:
|
|
32
|
+
disabled: o
|
|
33
33
|
})] });
|
|
34
34
|
} })]
|
|
35
|
-
}) : /* @__PURE__ */
|
|
35
|
+
}) : /* @__PURE__ */ w(oa, { render: /* @__PURE__ */ T(a, {
|
|
36
36
|
variant: "outline",
|
|
37
|
-
className:
|
|
38
|
-
children: [/* @__PURE__ */
|
|
37
|
+
className: r(s, "justify-between font-normal"),
|
|
38
|
+
children: [/* @__PURE__ */ T("span", {
|
|
39
39
|
className: "flex min-w-0 items-center gap-2",
|
|
40
|
-
children: [n ? /* @__PURE__ */
|
|
40
|
+
children: [n ? /* @__PURE__ */ w("span", {
|
|
41
41
|
"data-icon": "inline-start",
|
|
42
42
|
className: "contents text-muted-foreground [&>svg:not([class*='size-'])]:size-4",
|
|
43
43
|
children: n
|
|
44
|
-
}) : null, /* @__PURE__ */
|
|
45
|
-
}), /* @__PURE__ */
|
|
46
|
-
}) }), /* @__PURE__ */
|
|
47
|
-
anchor:
|
|
44
|
+
}) : null, /* @__PURE__ */ w(Ca, { placeholder: t })]
|
|
45
|
+
}), /* @__PURE__ */ w(pe, { className: "ml-2 size-4 shrink-0 text-muted-foreground" })]
|
|
46
|
+
}) }), /* @__PURE__ */ T(Zi, {
|
|
47
|
+
anchor: l ? d : void 0,
|
|
48
48
|
children: [
|
|
49
|
-
/* @__PURE__ */
|
|
49
|
+
/* @__PURE__ */ w(Ri, {
|
|
50
50
|
showTrigger: !1,
|
|
51
51
|
placeholder: "Search"
|
|
52
52
|
}),
|
|
53
|
-
/* @__PURE__ */
|
|
54
|
-
/* @__PURE__ */
|
|
53
|
+
/* @__PURE__ */ w(Fi, { children: i }),
|
|
54
|
+
/* @__PURE__ */ w(ea, { children: (e) => /* @__PURE__ */ w($i, {
|
|
55
55
|
value: e,
|
|
56
56
|
children: e.label
|
|
57
57
|
}, e.value) })
|
|
@@ -62,11 +62,11 @@ function La({ items: e, placeholder: t = "Select...", placeholderIcon: n, emptyM
|
|
|
62
62
|
}
|
|
63
63
|
//#endregion
|
|
64
64
|
//#region node_modules/@tanstack/store/dist/alien.js
|
|
65
|
-
var
|
|
65
|
+
var E = /* @__PURE__ */ function(e) {
|
|
66
66
|
return e[e.None = 0] = "None", e[e.Mutable = 1] = "Mutable", e[e.Watching = 2] = "Watching", e[e.RecursedCheck = 4] = "RecursedCheck", e[e.Recursed = 8] = "Recursed", e[e.Dirty = 16] = "Dirty", e[e.Pending = 32] = "Pending", e;
|
|
67
67
|
}({});
|
|
68
68
|
/* @__NO_SIDE_EFFECTS__ */
|
|
69
|
-
function
|
|
69
|
+
function Ba({ update: e, notify: t, unwatched: n }) {
|
|
70
70
|
return {
|
|
71
71
|
link: r,
|
|
72
72
|
unlink: i,
|
|
@@ -103,7 +103,7 @@ function Ra({ update: e, notify: t, unwatched: n }) {
|
|
|
103
103
|
let n = e.nextSub, r;
|
|
104
104
|
top: do {
|
|
105
105
|
let i = e.sub, a = i.flags;
|
|
106
|
-
if (a & (
|
|
106
|
+
if (a & (E.RecursedCheck | E.Recursed | E.Dirty | E.Pending) ? a & (E.RecursedCheck | E.Recursed) ? a & E.RecursedCheck ? !(a & (E.Dirty | E.Pending)) && c(e, i) ? (i.flags = a | (E.Recursed | E.Pending), a &= E.Mutable) : a = E.None : i.flags = a & ~E.Recursed | E.Pending : a = E.None : i.flags = a | E.Pending, a & E.Watching && t(i), a & E.Mutable) {
|
|
107
107
|
let t = i.subs;
|
|
108
108
|
if (t !== void 0) {
|
|
109
109
|
let i = (e = t).nextSub;
|
|
@@ -129,13 +129,13 @@ function Ra({ update: e, notify: t, unwatched: n }) {
|
|
|
129
129
|
let r, i = 0, a = !1;
|
|
130
130
|
top: do {
|
|
131
131
|
let o = t.dep, c = o.flags;
|
|
132
|
-
if (n.flags &
|
|
133
|
-
else if ((c & (
|
|
132
|
+
if (n.flags & E.Dirty) a = !0;
|
|
133
|
+
else if ((c & (E.Mutable | E.Dirty)) === (E.Mutable | E.Dirty)) {
|
|
134
134
|
if (e(o)) {
|
|
135
135
|
let e = o.subs;
|
|
136
136
|
e.nextSub !== void 0 && s(e), a = !0;
|
|
137
137
|
}
|
|
138
|
-
} else if ((c & (
|
|
138
|
+
} else if ((c & (E.Mutable | E.Pending)) === (E.Mutable | E.Pending)) {
|
|
139
139
|
(t.nextSub !== void 0 || t.prevSub !== void 0) && (r = {
|
|
140
140
|
value: t,
|
|
141
141
|
prev: r
|
|
@@ -157,7 +157,7 @@ function Ra({ update: e, notify: t, unwatched: n }) {
|
|
|
157
157
|
continue;
|
|
158
158
|
}
|
|
159
159
|
a = !1;
|
|
160
|
-
} else n.flags &= ~
|
|
160
|
+
} else n.flags &= ~E.Pending;
|
|
161
161
|
n = t.sub;
|
|
162
162
|
let c = t.nextDep;
|
|
163
163
|
if (c !== void 0) {
|
|
@@ -171,7 +171,7 @@ function Ra({ update: e, notify: t, unwatched: n }) {
|
|
|
171
171
|
function s(e) {
|
|
172
172
|
do {
|
|
173
173
|
let n = e.sub, r = n.flags;
|
|
174
|
-
(r & (
|
|
174
|
+
(r & (E.Pending | E.Dirty)) === E.Pending && (n.flags = r | E.Dirty, (r & (E.Watching | E.RecursedCheck)) === E.Watching && t(n));
|
|
175
175
|
} while ((e = e.nextSub) !== void 0);
|
|
176
176
|
}
|
|
177
177
|
function c(e, t) {
|
|
@@ -185,7 +185,7 @@ function Ra({ update: e, notify: t, unwatched: n }) {
|
|
|
185
185
|
}
|
|
186
186
|
//#endregion
|
|
187
187
|
//#region node_modules/@tanstack/store/dist/atom.js
|
|
188
|
-
function
|
|
188
|
+
function Va(e, t, n) {
|
|
189
189
|
let r = typeof e == "object", i = r ? e : void 0;
|
|
190
190
|
return {
|
|
191
191
|
next: (r ? e.next : e)?.bind(i),
|
|
@@ -193,35 +193,35 @@ function za(e, t, n) {
|
|
|
193
193
|
complete: (r ? e.complete : n)?.bind(i)
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
|
-
var
|
|
196
|
+
var Ha = [], D = 0, { link: Ua, unlink: Wa, propagate: Ga, checkDirty: Ka, shallowPropagate: qa } = /* @__PURE__ */ Ba({
|
|
197
197
|
update(e) {
|
|
198
198
|
return e._update();
|
|
199
199
|
},
|
|
200
200
|
notify(e) {
|
|
201
|
-
|
|
201
|
+
Ha[Ya++] = e, e.flags &= ~E.Watching;
|
|
202
202
|
},
|
|
203
203
|
unwatched(e) {
|
|
204
|
-
e.depsTail !== void 0 && (e.depsTail = void 0, e.flags =
|
|
204
|
+
e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = E.Mutable | E.Dirty, A(e));
|
|
205
205
|
}
|
|
206
|
-
}),
|
|
206
|
+
}), Ja = 0, Ya = 0, O, Xa = 0;
|
|
207
207
|
function k(e) {
|
|
208
208
|
try {
|
|
209
|
-
++
|
|
209
|
+
++Xa, e();
|
|
210
210
|
} finally {
|
|
211
|
-
--
|
|
211
|
+
--Xa || Za();
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function A(e) {
|
|
215
215
|
let t = e.depsTail, n = t === void 0 ? e.deps : t.nextDep;
|
|
216
|
-
for (; n !== void 0;) n =
|
|
216
|
+
for (; n !== void 0;) n = Wa(n, e);
|
|
217
217
|
}
|
|
218
218
|
function Za() {
|
|
219
|
-
if (!(
|
|
220
|
-
for (;
|
|
221
|
-
let e =
|
|
222
|
-
|
|
219
|
+
if (!(Xa > 0)) {
|
|
220
|
+
for (; Ja < Ya;) {
|
|
221
|
+
let e = Ha[Ja];
|
|
222
|
+
Ha[Ja++] = void 0, e.notify();
|
|
223
223
|
}
|
|
224
|
-
|
|
224
|
+
Ja = 0, Ya = 0;
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
227
|
function Qa(e, t) {
|
|
@@ -231,12 +231,12 @@ function Qa(e, t) {
|
|
|
231
231
|
subsTail: void 0,
|
|
232
232
|
deps: void 0,
|
|
233
233
|
depsTail: void 0,
|
|
234
|
-
flags: n ?
|
|
234
|
+
flags: n ? E.None : E.Mutable,
|
|
235
235
|
get() {
|
|
236
|
-
return O !== void 0 &&
|
|
236
|
+
return O !== void 0 && Ua(i, O, D), i._snapshot;
|
|
237
237
|
},
|
|
238
238
|
subscribe(e) {
|
|
239
|
-
let t =
|
|
239
|
+
let t = Va(e), n = { current: !1 }, r = $a(() => {
|
|
240
240
|
i.get(), n.current ? t.next?.(i._snapshot) : n.current = !0;
|
|
241
241
|
});
|
|
242
242
|
return { unsubscribe: () => {
|
|
@@ -245,54 +245,54 @@ function Qa(e, t) {
|
|
|
245
245
|
},
|
|
246
246
|
_update(e) {
|
|
247
247
|
let a = O, o = t?.compare ?? Object.is;
|
|
248
|
-
if (n) O = i, ++
|
|
248
|
+
if (n) O = i, ++D, i.depsTail = void 0;
|
|
249
249
|
else if (e === void 0) return !1;
|
|
250
|
-
n && (i.flags =
|
|
250
|
+
n && (i.flags = E.Mutable | E.RecursedCheck);
|
|
251
251
|
try {
|
|
252
252
|
let t = i._snapshot, a = typeof e == "function" ? e(t) : e === void 0 && n ? r(t) : e;
|
|
253
253
|
return t === void 0 || !o(t, a) ? (i._snapshot = a, !0) : !1;
|
|
254
254
|
} finally {
|
|
255
|
-
O = a, n && (i.flags &= ~
|
|
255
|
+
O = a, n && (i.flags &= ~E.RecursedCheck), A(i);
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
};
|
|
259
|
-
return n ? (i.flags =
|
|
259
|
+
return n ? (i.flags = E.Mutable | E.Dirty, i.get = function() {
|
|
260
260
|
let e = i.flags;
|
|
261
|
-
if (e &
|
|
261
|
+
if (e & E.Dirty || e & E.Pending && Ka(i.deps, i)) {
|
|
262
262
|
if (i._update()) {
|
|
263
263
|
let e = i.subs;
|
|
264
|
-
e !== void 0 &&
|
|
264
|
+
e !== void 0 && qa(e);
|
|
265
265
|
}
|
|
266
|
-
} else e &
|
|
267
|
-
return O !== void 0 &&
|
|
266
|
+
} else e & E.Pending && (i.flags = e & ~E.Pending);
|
|
267
|
+
return O !== void 0 && Ua(i, O, D), i._snapshot;
|
|
268
268
|
}) : i.set = function(e) {
|
|
269
269
|
if (i._update(e)) {
|
|
270
270
|
let e = i.subs;
|
|
271
|
-
e !== void 0 && (
|
|
271
|
+
e !== void 0 && (Ga(e), qa(e), Za());
|
|
272
272
|
}
|
|
273
273
|
}, i;
|
|
274
274
|
}
|
|
275
275
|
function $a(e) {
|
|
276
276
|
let t = () => {
|
|
277
277
|
let t = O;
|
|
278
|
-
O = n, ++
|
|
278
|
+
O = n, ++D, n.depsTail = void 0, n.flags = E.Watching | E.RecursedCheck;
|
|
279
279
|
try {
|
|
280
280
|
return e();
|
|
281
281
|
} finally {
|
|
282
|
-
O = t, n.flags &= ~
|
|
282
|
+
O = t, n.flags &= ~E.RecursedCheck, A(n);
|
|
283
283
|
}
|
|
284
284
|
}, n = {
|
|
285
285
|
deps: void 0,
|
|
286
286
|
depsTail: void 0,
|
|
287
287
|
subs: void 0,
|
|
288
288
|
subsTail: void 0,
|
|
289
|
-
flags:
|
|
289
|
+
flags: E.Watching | E.RecursedCheck,
|
|
290
290
|
notify() {
|
|
291
291
|
let e = this.flags;
|
|
292
|
-
e &
|
|
292
|
+
e & E.Dirty || e & E.Pending && Ka(this.deps, this) ? t() : this.flags = E.Watching;
|
|
293
293
|
},
|
|
294
294
|
stop() {
|
|
295
|
-
this.flags =
|
|
295
|
+
this.flags = E.None, this.depsTail = void 0, A(this);
|
|
296
296
|
}
|
|
297
297
|
};
|
|
298
298
|
return t(), n;
|
|
@@ -313,7 +313,7 @@ var eo = class {
|
|
|
313
313
|
return this.state;
|
|
314
314
|
}
|
|
315
315
|
subscribe(e) {
|
|
316
|
-
return this.atom.subscribe(
|
|
316
|
+
return this.atom.subscribe(Va(e));
|
|
317
317
|
}
|
|
318
318
|
}, to = class {
|
|
319
319
|
constructor(e) {
|
|
@@ -326,10 +326,10 @@ var eo = class {
|
|
|
326
326
|
return this.state;
|
|
327
327
|
}
|
|
328
328
|
subscribe(e) {
|
|
329
|
-
return this.atom.subscribe(
|
|
329
|
+
return this.atom.subscribe(Va(e));
|
|
330
330
|
}
|
|
331
331
|
};
|
|
332
|
-
function
|
|
332
|
+
function j(e, t) {
|
|
333
333
|
return typeof e == "function" ? new to(e) : t ? new eo(e, t) : new eo(e);
|
|
334
334
|
}
|
|
335
335
|
//#endregion
|
|
@@ -481,7 +481,7 @@ var io = class {
|
|
|
481
481
|
};
|
|
482
482
|
return this.#n().addEventListener("tanstack-devtools-global", t), () => this.#n().removeEventListener("tanstack-devtools-global", t);
|
|
483
483
|
}
|
|
484
|
-
},
|
|
484
|
+
}, M = new class extends io {
|
|
485
485
|
constructor() {
|
|
486
486
|
super({
|
|
487
487
|
pluginId: "form-devtools",
|
|
@@ -491,19 +491,19 @@ var io = class {
|
|
|
491
491
|
}();
|
|
492
492
|
//#endregion
|
|
493
493
|
//#region node_modules/@tanstack/form-core/dist/esm/utils.js
|
|
494
|
-
function
|
|
494
|
+
function N(e, t) {
|
|
495
495
|
return typeof e == "function" ? e(t) : e;
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function P(e, t) {
|
|
498
498
|
return fo(t).reduce((e, t) => {
|
|
499
499
|
if (e === null) return null;
|
|
500
500
|
if (e !== void 0) return e[t];
|
|
501
501
|
}, e);
|
|
502
502
|
}
|
|
503
|
-
function
|
|
503
|
+
function F(e, t, n) {
|
|
504
504
|
let r = fo(t);
|
|
505
505
|
function i(e) {
|
|
506
|
-
if (!r.length) return
|
|
506
|
+
if (!r.length) return N(n, e);
|
|
507
507
|
let t = r.shift();
|
|
508
508
|
if (typeof t == "string" || typeof t == "number" && !Array.isArray(e)) return typeof e == "object" ? (e === null && (e = {}), {
|
|
509
509
|
...e,
|
|
@@ -577,7 +577,7 @@ function po(e, t) {
|
|
|
577
577
|
function mo(e) {
|
|
578
578
|
return !(Array.isArray(e) && e.length === 0);
|
|
579
579
|
}
|
|
580
|
-
function
|
|
580
|
+
function I(e, t) {
|
|
581
581
|
return t.validationLogic({
|
|
582
582
|
form: t.form,
|
|
583
583
|
group: t.group,
|
|
@@ -593,7 +593,7 @@ function F(e, t) {
|
|
|
593
593
|
}))
|
|
594
594
|
});
|
|
595
595
|
}
|
|
596
|
-
function
|
|
596
|
+
function L(e, t) {
|
|
597
597
|
let { asyncDebounceMs: n } = t, { onBlurAsyncDebounceMs: r, onChangeAsyncDebounceMs: i, onDynamicAsyncDebounceMs: a } = t.validators || {}, o = n ?? 0;
|
|
598
598
|
return t.validationLogic({
|
|
599
599
|
form: t.form,
|
|
@@ -629,7 +629,7 @@ function I(e, t) {
|
|
|
629
629
|
});
|
|
630
630
|
}
|
|
631
631
|
var ho = (e) => !!e && typeof e == "object" && "fields" in e;
|
|
632
|
-
function
|
|
632
|
+
function R(e, t) {
|
|
633
633
|
if (Object.is(e, t)) return !0;
|
|
634
634
|
if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
|
|
635
635
|
if (e instanceof Date && t instanceof Date) return e.getTime() === t.getTime();
|
|
@@ -645,7 +645,7 @@ function L(e, t) {
|
|
|
645
645
|
}
|
|
646
646
|
let n = Object.keys(e), r = Object.keys(t);
|
|
647
647
|
if (n.length !== r.length || n.length === 0 && !Array.isArray(e) && !Array.isArray(t) && (Object.getPrototypeOf(e) !== Object.prototype || Object.getPrototypeOf(t) !== Object.prototype)) return !1;
|
|
648
|
-
for (let i of n) if (!r.includes(i) || !
|
|
648
|
+
for (let i of n) if (!r.includes(i) || !R(e[i], t[i])) return !1;
|
|
649
649
|
return !0;
|
|
650
650
|
}
|
|
651
651
|
var go = ({ newFormValidatorError: e, isPreviousErrorFromFormValidator: t, previousErrorValue: n }) => e ? {
|
|
@@ -660,7 +660,7 @@ var go = ({ newFormValidatorError: e, isPreviousErrorFromFormValidator: t, previ
|
|
|
660
660
|
} : {
|
|
661
661
|
newErrorValue: void 0,
|
|
662
662
|
newSource: void 0
|
|
663
|
-
},
|
|
663
|
+
}, _o = ({ formLevelError: e, fieldLevelError: t }) => t ? {
|
|
664
664
|
newErrorValue: t,
|
|
665
665
|
newSource: "field"
|
|
666
666
|
} : e ? {
|
|
@@ -676,50 +676,50 @@ function z(e, t) {
|
|
|
676
676
|
...t
|
|
677
677
|
};
|
|
678
678
|
}
|
|
679
|
-
for (var B = 256, V = [],
|
|
679
|
+
for (var B = 256, V = [], H; B--;) V[B] = (B + 256).toString(16).substring(1);
|
|
680
680
|
function vo() {
|
|
681
681
|
let e = 0, t, n = "";
|
|
682
|
-
if (!
|
|
683
|
-
for (
|
|
682
|
+
if (!H || B + 16 > 256) {
|
|
683
|
+
for (H = Array(256), e = 256; e--;) H[e] = 256 * Math.random() | 0;
|
|
684
684
|
e = 0, B = 0;
|
|
685
685
|
}
|
|
686
|
-
for (; e < 16; e++) t =
|
|
686
|
+
for (; e < 16; e++) t = H[B + e], e === 6 ? n += V[t & 15 | 64] : e === 8 ? n += V[t & 63 | 128] : n += V[t], e & 1 && e > 1 && e < 11 && (n += "-");
|
|
687
687
|
return B++, n;
|
|
688
688
|
}
|
|
689
|
-
var yo = ro((e) =>
|
|
689
|
+
var yo = ro((e) => M.emit("form-state", {
|
|
690
690
|
id: e.formId,
|
|
691
691
|
state: e.store.state
|
|
692
692
|
}), { wait: 300 });
|
|
693
|
-
function
|
|
693
|
+
function U(e) {
|
|
694
694
|
if (typeof e != "object" || !e) return e;
|
|
695
695
|
if (e instanceof Date) return new Date(e.getTime());
|
|
696
696
|
if (Array.isArray(e)) {
|
|
697
697
|
let t = [];
|
|
698
|
-
for (let n = 0; n < e.length; n++) t[n] =
|
|
698
|
+
for (let n = 0; n < e.length; n++) t[n] = U(e[n]);
|
|
699
699
|
return t;
|
|
700
700
|
}
|
|
701
701
|
if (e instanceof Map) {
|
|
702
702
|
let t = /* @__PURE__ */ new Map();
|
|
703
703
|
return e.forEach((e, n) => {
|
|
704
|
-
t.set(n,
|
|
704
|
+
t.set(n, U(e));
|
|
705
705
|
}), t;
|
|
706
706
|
}
|
|
707
707
|
if (e instanceof Set) {
|
|
708
708
|
let t = /* @__PURE__ */ new Set();
|
|
709
709
|
return e.forEach((e) => {
|
|
710
|
-
t.add(
|
|
710
|
+
t.add(U(e));
|
|
711
711
|
}), t;
|
|
712
712
|
}
|
|
713
713
|
let t = {};
|
|
714
|
-
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
714
|
+
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = U(e[n]));
|
|
715
715
|
return t;
|
|
716
716
|
}
|
|
717
|
-
function
|
|
717
|
+
function W(e, t) {
|
|
718
718
|
return t === e || t.startsWith(`${e}.`) || t.startsWith(`${e}[`);
|
|
719
719
|
}
|
|
720
720
|
//#endregion
|
|
721
721
|
//#region node_modules/@tanstack/form-core/dist/esm/ValidationLogic.js
|
|
722
|
-
var
|
|
722
|
+
var G = (e) => {
|
|
723
723
|
if (!e.validators) return e.runValidation({
|
|
724
724
|
validators: [],
|
|
725
725
|
form: e.form
|
|
@@ -791,7 +791,7 @@ var xo = (e, t) => {
|
|
|
791
791
|
form: n,
|
|
792
792
|
fields: n
|
|
793
793
|
};
|
|
794
|
-
},
|
|
794
|
+
}, K = {
|
|
795
795
|
validate({ value: e, validationSource: t }, n) {
|
|
796
796
|
let r = n["~standard"].validate(e);
|
|
797
797
|
if (r instanceof Promise) throw Error("async function passed to sync validator");
|
|
@@ -801,7 +801,7 @@ var xo = (e, t) => {
|
|
|
801
801
|
let r = await n["~standard"].validate(e);
|
|
802
802
|
if (r.issues) return t === "field" ? r.issues : xo(r.issues, e);
|
|
803
803
|
}
|
|
804
|
-
}, So = (e) => !!e && "~standard" in e,
|
|
804
|
+
}, So = (e) => !!e && "~standard" in e, q = {
|
|
805
805
|
isValidating: !1,
|
|
806
806
|
isTouched: !1,
|
|
807
807
|
isBlurred: !1,
|
|
@@ -814,9 +814,9 @@ var xo = (e, t) => {
|
|
|
814
814
|
errorSourceMap: {},
|
|
815
815
|
_arrayVersion: 0
|
|
816
816
|
};
|
|
817
|
-
function
|
|
817
|
+
function J(e) {
|
|
818
818
|
function t(t) {
|
|
819
|
-
let n = e.getFieldMeta(t) ??
|
|
819
|
+
let n = e.getFieldMeta(t) ?? q;
|
|
820
820
|
e.setFieldMeta(t, {
|
|
821
821
|
...n,
|
|
822
822
|
_arrayVersion: (n._arrayVersion || 0) + 1
|
|
@@ -883,7 +883,7 @@ function q(e) {
|
|
|
883
883
|
i ? e.setFieldMeta(t, i) : e.setFieldMeta(t, u());
|
|
884
884
|
});
|
|
885
885
|
}
|
|
886
|
-
let u = () =>
|
|
886
|
+
let u = () => q;
|
|
887
887
|
return {
|
|
888
888
|
bumpArrayVersion: t,
|
|
889
889
|
handleArrayMove: n,
|
|
@@ -920,22 +920,22 @@ var wo = class {
|
|
|
920
920
|
this.options = {}, this.fieldInfo = {}, this.formGroupApis = /* @__PURE__ */ new Set(), this.mount = () => {
|
|
921
921
|
let e = this.store.subscribe(() => {
|
|
922
922
|
yo(this);
|
|
923
|
-
}), t =
|
|
924
|
-
e.payload.id === this._formId &&
|
|
923
|
+
}), t = M.on("request-form-state", (e) => {
|
|
924
|
+
e.payload.id === this._formId && M.emit("form-api", {
|
|
925
925
|
id: this._formId,
|
|
926
926
|
state: this.store.state,
|
|
927
927
|
options: this.options
|
|
928
928
|
});
|
|
929
|
-
}), n =
|
|
929
|
+
}), n = M.on("request-form-reset", (e) => {
|
|
930
930
|
e.payload.id === this._formId && this.reset();
|
|
931
|
-
}), r =
|
|
931
|
+
}), r = M.on("request-form-force-submit", (e) => {
|
|
932
932
|
e.payload.id === this._formId && (this._devtoolsSubmissionOverride = !0, this.handleSubmit(), this._devtoolsSubmissionOverride = !1);
|
|
933
933
|
}), i = () => {
|
|
934
|
-
r(), n(), t(), e.unsubscribe(),
|
|
934
|
+
r(), n(), t(), e.unsubscribe(), M.emit("form-unmounted", { id: this._formId });
|
|
935
935
|
};
|
|
936
936
|
this.options.listeners?.onMount?.({ formApi: this });
|
|
937
937
|
let { onMount: a } = this.options.validators || {};
|
|
938
|
-
return
|
|
938
|
+
return M.emit("form-api", {
|
|
939
939
|
id: this._formId,
|
|
940
940
|
state: this.store.state,
|
|
941
941
|
options: this.options
|
|
@@ -944,15 +944,15 @@ var wo = class {
|
|
|
944
944
|
if (!e) return;
|
|
945
945
|
let t = this.options;
|
|
946
946
|
this.options = e;
|
|
947
|
-
let n = e.defaultValues && !
|
|
947
|
+
let n = e.defaultValues && !R(e.defaultValues, t.defaultValues) && !this.state.isTouched, r = !R(e.defaultState, t.defaultState) && !this.state.isTouched;
|
|
948
948
|
if (!(!n && !r)) {
|
|
949
949
|
if (k(() => {
|
|
950
950
|
this.baseStore.setState(() => Co(Object.assign({}, this.state, r ? e.defaultState : {}, n ? { values: e.defaultValues } : {})));
|
|
951
951
|
}), n) {
|
|
952
|
-
let e =
|
|
952
|
+
let e = J(this);
|
|
953
953
|
for (let t of Object.keys(this.fieldInfo)) Array.isArray(this.getFieldValue(t)) && e.bumpArrayVersion(t);
|
|
954
954
|
}
|
|
955
|
-
|
|
955
|
+
M.emit("form-api", {
|
|
956
956
|
id: this._formId,
|
|
957
957
|
state: this.store.state,
|
|
958
958
|
options: this.options
|
|
@@ -966,7 +966,7 @@ var wo = class {
|
|
|
966
966
|
}), this.baseStore.setState(() => {
|
|
967
967
|
let t = e ?? this.options.defaultValues ?? this.options.defaultState?.values;
|
|
968
968
|
return e || Object.values(this.fieldInfo).forEach((e) => {
|
|
969
|
-
e.instance && e.instance.options.defaultValue !== void 0 && (t =
|
|
969
|
+
e.instance && e.instance.options.defaultValue !== void 0 && (t = F(t, e.instance.name, e.instance.options.defaultValue));
|
|
970
970
|
}), Co({
|
|
971
971
|
...this.options.defaultState,
|
|
972
972
|
values: t,
|
|
@@ -1008,16 +1008,16 @@ var wo = class {
|
|
|
1008
1008
|
isTouched: !0
|
|
1009
1009
|
})), n.validate(t);
|
|
1010
1010
|
}, this.validateSync = (e, t) => {
|
|
1011
|
-
let n =
|
|
1011
|
+
let n = I(e, {
|
|
1012
1012
|
...this.options,
|
|
1013
1013
|
form: this,
|
|
1014
1014
|
group: t?.group,
|
|
1015
|
-
validationLogic: this.options.validationLogic ||
|
|
1015
|
+
validationLogic: this.options.validationLogic || G
|
|
1016
1016
|
}), r = !1, i = {};
|
|
1017
1017
|
return k(() => {
|
|
1018
1018
|
for (let e of n) {
|
|
1019
1019
|
if (!e.validate) continue;
|
|
1020
|
-
let { formError: n, fieldErrors: a } =
|
|
1020
|
+
let { formError: n, fieldErrors: a } = To(this.runValidator({
|
|
1021
1021
|
validate: e.validate,
|
|
1022
1022
|
value: {
|
|
1023
1023
|
value: this.state.values,
|
|
@@ -1029,7 +1029,7 @@ var wo = class {
|
|
|
1029
1029
|
t?.filterFieldNames && (s = new Set([...s].filter(t.filterFieldNames)));
|
|
1030
1030
|
for (let e of s) {
|
|
1031
1031
|
if (this.baseStore.state.fieldMetaBase[e] === void 0 && !a?.[e]) continue;
|
|
1032
|
-
let { errorMap: t, errorSourceMap: n } = this.getFieldMeta(e) ??
|
|
1032
|
+
let { errorMap: t, errorSourceMap: n } = this.getFieldMeta(e) ?? q, r = a?.[e], { newErrorValue: s, newSource: c } = go({
|
|
1033
1033
|
newFormValidatorError: r,
|
|
1034
1034
|
isPreviousErrorFromFormValidator: n?.[o] === "form",
|
|
1035
1035
|
previousErrorValue: t?.[o]
|
|
@@ -1037,7 +1037,7 @@ var wo = class {
|
|
|
1037
1037
|
c === "form" && (i[e] = {
|
|
1038
1038
|
...i[e],
|
|
1039
1039
|
[o]: r
|
|
1040
|
-
}), t?.[o] !== s && this.setFieldMeta(e, (e =
|
|
1040
|
+
}), t?.[o] !== s && this.setFieldMeta(e, (e = q) => ({
|
|
1041
1041
|
...e,
|
|
1042
1042
|
errorMap: {
|
|
1043
1043
|
...e.errorMap,
|
|
@@ -1079,11 +1079,11 @@ var wo = class {
|
|
|
1079
1079
|
fieldsErrorMap: i
|
|
1080
1080
|
};
|
|
1081
1081
|
}, this.validateAsync = async (e, t) => {
|
|
1082
|
-
let n =
|
|
1082
|
+
let n = L(e, {
|
|
1083
1083
|
...this.options,
|
|
1084
1084
|
form: this,
|
|
1085
1085
|
group: t?.group,
|
|
1086
|
-
validationLogic: this.options.validationLogic ||
|
|
1086
|
+
validationLogic: this.options.validationLogic || G
|
|
1087
1087
|
});
|
|
1088
1088
|
this.state.isFormValidating || this.baseStore.setState((e) => ({
|
|
1089
1089
|
...e,
|
|
@@ -1120,7 +1120,7 @@ var wo = class {
|
|
|
1120
1120
|
} catch (e) {
|
|
1121
1121
|
r = e;
|
|
1122
1122
|
}
|
|
1123
|
-
let { formError: o, fieldErrors: s } =
|
|
1123
|
+
let { formError: o, fieldErrors: s } = To(r);
|
|
1124
1124
|
s && (i = i ? {
|
|
1125
1125
|
...i,
|
|
1126
1126
|
...s
|
|
@@ -1216,7 +1216,7 @@ var wo = class {
|
|
|
1216
1216
|
value: this.state.values,
|
|
1217
1217
|
formApi: this,
|
|
1218
1218
|
meta: t
|
|
1219
|
-
}),
|
|
1219
|
+
}), M.emit("form-submission", {
|
|
1220
1220
|
id: this._formId,
|
|
1221
1221
|
submissionAttempt: this.state.submissionAttempts,
|
|
1222
1222
|
successful: !1,
|
|
@@ -1230,7 +1230,7 @@ var wo = class {
|
|
|
1230
1230
|
value: this.state.values,
|
|
1231
1231
|
formApi: this,
|
|
1232
1232
|
meta: t
|
|
1233
|
-
}),
|
|
1233
|
+
}), M.emit("form-submission", {
|
|
1234
1234
|
id: this._formId,
|
|
1235
1235
|
submissionAttempt: this.state.submissionAttempts,
|
|
1236
1236
|
successful: !1,
|
|
@@ -1257,7 +1257,7 @@ var wo = class {
|
|
|
1257
1257
|
...e,
|
|
1258
1258
|
isSubmitted: !0,
|
|
1259
1259
|
isSubmitSuccessful: !0
|
|
1260
|
-
})),
|
|
1260
|
+
})), M.emit("form-submission", {
|
|
1261
1261
|
id: this._formId,
|
|
1262
1262
|
submissionAttempt: this.state.submissionAttempts,
|
|
1263
1263
|
successful: !0
|
|
@@ -1267,7 +1267,7 @@ var wo = class {
|
|
|
1267
1267
|
throw this.baseStore.setState((e) => ({
|
|
1268
1268
|
...e,
|
|
1269
1269
|
isSubmitSuccessful: !1
|
|
1270
|
-
})),
|
|
1270
|
+
})), M.emit("form-submission", {
|
|
1271
1271
|
id: this._formId,
|
|
1272
1272
|
submissionAttempt: this.state.submissionAttempts,
|
|
1273
1273
|
successful: !1,
|
|
@@ -1275,7 +1275,7 @@ var wo = class {
|
|
|
1275
1275
|
onError: e
|
|
1276
1276
|
}), n(), e;
|
|
1277
1277
|
}
|
|
1278
|
-
}, this.getFieldValue = (e) =>
|
|
1278
|
+
}, this.getFieldValue = (e) => P(this.state.values, e), this.getFieldMeta = (e) => this.state.fieldMeta[e], this.getFormGroupMeta = (e) => this.formGroupMetaDerived.state[e], this.getFieldInfo = (e) => this.fieldInfo[e] ||= {
|
|
1279
1279
|
instance: null,
|
|
1280
1280
|
validationMetaMap: {
|
|
1281
1281
|
onChange: void 0,
|
|
@@ -1290,12 +1290,12 @@ var wo = class {
|
|
|
1290
1290
|
...n,
|
|
1291
1291
|
fieldMetaBase: {
|
|
1292
1292
|
...n.fieldMetaBase,
|
|
1293
|
-
[e]:
|
|
1293
|
+
[e]: N(t, n.fieldMetaBase[e])
|
|
1294
1294
|
}
|
|
1295
1295
|
}));
|
|
1296
1296
|
}, this.resetFieldMeta = (e) => Object.keys(e).reduce((e, t) => {
|
|
1297
1297
|
let n = t;
|
|
1298
|
-
return e[n] =
|
|
1298
|
+
return e[n] = q, e;
|
|
1299
1299
|
}, {}), this.setFieldValue = (e, t, n) => {
|
|
1300
1300
|
let r = n?.dontUpdateMeta ?? !1, i = n?.dontRunListeners ?? !1, a = n?.dontValidate ?? !1;
|
|
1301
1301
|
k(() => {
|
|
@@ -1309,7 +1309,7 @@ var wo = class {
|
|
|
1309
1309
|
}
|
|
1310
1310
|
})), this.baseStore.setState((n) => ({
|
|
1311
1311
|
...n,
|
|
1312
|
-
values:
|
|
1312
|
+
values: F(n.values, e, t)
|
|
1313
1313
|
}));
|
|
1314
1314
|
}), i || this.getFieldInfo(e).instance?.triggerOnChangeListener(), a || this.validateField(e, "change");
|
|
1315
1315
|
}, this.deleteField = (e) => {
|
|
@@ -1324,7 +1324,7 @@ var wo = class {
|
|
|
1324
1324
|
}), n;
|
|
1325
1325
|
});
|
|
1326
1326
|
}, this.pushFieldValue = (e, t, n) => {
|
|
1327
|
-
this.setFieldValue(e, (e) => [...Array.isArray(e) ? e : [], t], n),
|
|
1327
|
+
this.setFieldValue(e, (e) => [...Array.isArray(e) ? e : [], t], n), J(this).bumpArrayVersion(e);
|
|
1328
1328
|
}, this.insertFieldValue = async (e, t, n, r) => {
|
|
1329
1329
|
this.setFieldValue(e, (e) => [
|
|
1330
1330
|
...e.slice(0, t),
|
|
@@ -1332,12 +1332,12 @@ var wo = class {
|
|
|
1332
1332
|
...e.slice(t)
|
|
1333
1333
|
], z(r, { dontValidate: !0 }));
|
|
1334
1334
|
let i = r?.dontValidate ?? !1;
|
|
1335
|
-
i || await this.validateField(e, "change"),
|
|
1335
|
+
i || await this.validateField(e, "change"), J(this).handleArrayInsert(e, t), i || await this.validateArrayFieldsStartingFrom(e, t, "change");
|
|
1336
1336
|
}, this.replaceFieldValue = async (e, t, n, r) => {
|
|
1337
|
-
this.setFieldValue(e, (e) => e.map((e, r) => r === t ? n : e), z(r, { dontValidate: !0 })),
|
|
1337
|
+
this.setFieldValue(e, (e) => e.map((e, r) => r === t ? n : e), z(r, { dontValidate: !0 })), J(this).bumpArrayVersion(e), (r?.dontValidate ?? !1) || (await this.validateField(e, "change"), await this.validateArrayFieldsStartingFrom(e, t, "change"));
|
|
1338
1338
|
}, this.removeFieldValue = async (e, t, n) => {
|
|
1339
1339
|
let r = this.getFieldValue(e), i = Array.isArray(r) ? Math.max(r.length - 1, 0) : null;
|
|
1340
|
-
if (this.setFieldValue(e, (e) => e.filter((e, n) => n !== t), z(n, { dontValidate: !0 })),
|
|
1340
|
+
if (this.setFieldValue(e, (e) => e.filter((e, n) => n !== t), z(n, { dontValidate: !0 })), J(this).handleArrayRemove(e, t), i !== null) {
|
|
1341
1341
|
let t = `${e}[${i}]`;
|
|
1342
1342
|
this.deleteField(t);
|
|
1343
1343
|
}
|
|
@@ -1345,30 +1345,30 @@ var wo = class {
|
|
|
1345
1345
|
}, this.swapFieldValues = (e, t, n, r) => {
|
|
1346
1346
|
this.setFieldValue(e, (e) => {
|
|
1347
1347
|
let r = e[t], i = e[n];
|
|
1348
|
-
return
|
|
1349
|
-
}, z(r, { dontValidate: !0 })),
|
|
1348
|
+
return F(F(e, `${t}`, i), `${n}`, r);
|
|
1349
|
+
}, z(r, { dontValidate: !0 })), J(this).handleArraySwap(e, t, n), (r?.dontValidate ?? !1) || (this.validateField(e, "change"), this.validateField(`${e}[${t}]`, "change"), this.validateField(`${e}[${n}]`, "change"));
|
|
1350
1350
|
}, this.moveFieldValues = (e, t, n, r) => {
|
|
1351
1351
|
this.setFieldValue(e, (e) => {
|
|
1352
1352
|
let r = [...e];
|
|
1353
1353
|
return r.splice(n, 0, r.splice(t, 1)[0]), r;
|
|
1354
|
-
}, z(r, { dontValidate: !0 })),
|
|
1354
|
+
}, z(r, { dontValidate: !0 })), J(this).handleArrayMove(e, t, n), (r?.dontValidate ?? !1) || (this.validateField(e, "change"), this.validateField(`${e}[${t}]`, "change"), this.validateField(`${e}[${n}]`, "change"));
|
|
1355
1355
|
}, this.clearFieldValues = (e, t) => {
|
|
1356
1356
|
let n = this.getFieldValue(e), r = Array.isArray(n) ? Math.max(n.length - 1, 0) : null;
|
|
1357
|
-
if (this.setFieldValue(e, [], z(t, { dontValidate: !0 })),
|
|
1357
|
+
if (this.setFieldValue(e, [], z(t, { dontValidate: !0 })), J(this).bumpArrayVersion(e), r !== null) for (let t = 0; t <= r; t++) {
|
|
1358
1358
|
let n = `${e}[${t}]`;
|
|
1359
1359
|
this.deleteField(n);
|
|
1360
1360
|
}
|
|
1361
1361
|
(t?.dontValidate ?? !1) || this.validateField(e, "change");
|
|
1362
1362
|
}, this.resetField = (e) => {
|
|
1363
1363
|
this.baseStore.setState((t) => {
|
|
1364
|
-
let n = this.getFieldInfo(e).instance?.options.defaultValue, r =
|
|
1364
|
+
let n = this.getFieldInfo(e).instance?.options.defaultValue, r = P(this.options.defaultValues, e), i = n ?? r;
|
|
1365
1365
|
return {
|
|
1366
1366
|
...t,
|
|
1367
1367
|
fieldMetaBase: {
|
|
1368
1368
|
...t.fieldMetaBase,
|
|
1369
|
-
[e]:
|
|
1369
|
+
[e]: q
|
|
1370
1370
|
},
|
|
1371
|
-
values: i === void 0 ? t.values :
|
|
1371
|
+
values: i === void 0 ? t.values : F(t.values, e, i)
|
|
1372
1372
|
};
|
|
1373
1373
|
});
|
|
1374
1374
|
}, this.setErrorMap = (e) => {
|
|
@@ -1376,7 +1376,7 @@ var wo = class {
|
|
|
1376
1376
|
Object.entries(e).forEach(([e, t]) => {
|
|
1377
1377
|
let n = e;
|
|
1378
1378
|
if (ho(t)) {
|
|
1379
|
-
let { formError: e, fieldErrors: r } =
|
|
1379
|
+
let { formError: e, fieldErrors: r } = To(t);
|
|
1380
1380
|
for (let e of Object.keys(this.fieldInfo)) this.getFieldMeta(e) && this.setFieldMeta(e, (t) => ({
|
|
1381
1381
|
...t,
|
|
1382
1382
|
errorMap: {
|
|
@@ -1413,10 +1413,10 @@ var wo = class {
|
|
|
1413
1413
|
errors: n.errors,
|
|
1414
1414
|
errorMap: n.errorMap
|
|
1415
1415
|
}), e), {})
|
|
1416
|
-
}), this.parseValuesWithSchema = (e) =>
|
|
1416
|
+
}), this.parseValuesWithSchema = (e) => K.validate({
|
|
1417
1417
|
value: this.state.values,
|
|
1418
1418
|
validationSource: "form"
|
|
1419
|
-
}, e), this.parseValuesWithSchemaAsync = (e) =>
|
|
1419
|
+
}, e), this.parseValuesWithSchemaAsync = (e) => K.validateAsync({
|
|
1420
1420
|
value: this.state.values,
|
|
1421
1421
|
validationSource: "form"
|
|
1422
1422
|
}, e), this.timeoutIds = {
|
|
@@ -1455,18 +1455,18 @@ var wo = class {
|
|
|
1455
1455
|
}
|
|
1456
1456
|
}
|
|
1457
1457
|
}
|
|
1458
|
-
this.baseStore =
|
|
1458
|
+
this.baseStore = j(t);
|
|
1459
1459
|
let n;
|
|
1460
|
-
this.fieldMetaDerived =
|
|
1460
|
+
this.fieldMetaDerived = j((e) => {
|
|
1461
1461
|
let t = this.baseStore.get(), r = 0, i = {};
|
|
1462
1462
|
for (let a of Object.keys(t.fieldMetaBase)) {
|
|
1463
|
-
let o = t.fieldMetaBase[a], s = n?.fieldMetaBase[a], c = e?.[a], l =
|
|
1463
|
+
let o = t.fieldMetaBase[a], s = n?.fieldMetaBase[a], c = e?.[a], l = P(t.values, a), u = c?.errors;
|
|
1464
1464
|
if (!s || o.errorMap !== s.errorMap) {
|
|
1465
1465
|
u = Object.values(o.errorMap ?? {}).filter((e) => e !== void 0);
|
|
1466
1466
|
let e = this.getFieldInfo(a)?.instance;
|
|
1467
1467
|
(!e || !e.options.disableErrorFlat) && (u = u.flat(1));
|
|
1468
1468
|
}
|
|
1469
|
-
let d = !mo(u), f = !o.isDirty, p =
|
|
1469
|
+
let d = !mo(u), f = !o.isDirty, p = R(l, this.getFieldInfo(a)?.instance?.options.defaultValue ?? P(this.options.defaultValues, a));
|
|
1470
1470
|
if (c && c.isPristine === f && c.isValid === d && c.isDefaultValue === p && c.errors === u && o === s) {
|
|
1471
1471
|
i[a] = c, r++;
|
|
1472
1472
|
continue;
|
|
@@ -1480,7 +1480,7 @@ var wo = class {
|
|
|
1480
1480
|
};
|
|
1481
1481
|
}
|
|
1482
1482
|
return Object.keys(t.fieldMetaBase).length ? e && r === Object.keys(t.fieldMetaBase).length ? e : (n = this.baseStore.get(), i) : i;
|
|
1483
|
-
}), this.formGroupMetaDerived =
|
|
1483
|
+
}), this.formGroupMetaDerived = j((e) => {
|
|
1484
1484
|
let t = this.baseStore.get(), n = this.fieldMetaDerived.get(), r = {};
|
|
1485
1485
|
for (let i of this.formGroupApis) {
|
|
1486
1486
|
let a = i.name, o = t.formGroupStateBase[a] ?? {
|
|
@@ -1491,11 +1491,11 @@ var wo = class {
|
|
|
1491
1491
|
isSubmitSuccessful: !1
|
|
1492
1492
|
}, s = n[a], c = !1, l = !0, u = !1, d = !1, f = !0, p = !1;
|
|
1493
1493
|
for (let e in n) {
|
|
1494
|
-
if (e === a || !
|
|
1494
|
+
if (e === a || !W(a, e)) continue;
|
|
1495
1495
|
let t = n[e];
|
|
1496
1496
|
t && (t.isValidating && (c = !0), t.isValid || (l = !1), t.isTouched && (u = !0), t.isBlurred && (d = !0), t.isDefaultValue || (f = !1), t.isDirty && (p = !0));
|
|
1497
1497
|
}
|
|
1498
|
-
let m = !p, h = !!c || o.isValidating, g = s?.errorMap ?? {}, _ = s?.errorSourceMap ?? {}, v = !!(g.onMount || Object.entries(n).some(([e, t]) => t && e !== a &&
|
|
1498
|
+
let m = !p, h = !!c || o.isValidating, g = s?.errorMap ?? {}, _ = s?.errorSourceMap ?? {}, v = !!(g.onMount || Object.entries(n).some(([e, t]) => t && e !== a && W(a, e) && t.errorMap.onMount)), y = e?.[a], b = y?.errors ?? [];
|
|
1499
1499
|
(!y || y.__srcErrorMap !== g) && (b = Object.values(g).reduce((e, t) => {
|
|
1500
1500
|
if (t === void 0) return e;
|
|
1501
1501
|
if (t && typeof t == "object" && "fields" in t) {
|
|
@@ -1504,12 +1504,12 @@ var wo = class {
|
|
|
1504
1504
|
}
|
|
1505
1505
|
return e.push(t), e;
|
|
1506
1506
|
}, []));
|
|
1507
|
-
let x = b.length === 0,
|
|
1508
|
-
if (y && y.errorMap === g && y.errorSourceMap === _ && y.errors === b && y.isFieldsValidating === c && y.isFieldsValid === l && y.isGroupValid === x && y.isValid ===
|
|
1507
|
+
let x = b.length === 0, ee = l && x, te = i.options.canSubmitWhenInvalid ?? !1, ne = o.submissionAttempts === 0 && !u && !v || !h && !o.isSubmitting && ee || te;
|
|
1508
|
+
if (y && y.errorMap === g && y.errorSourceMap === _ && y.errors === b && y.isFieldsValidating === c && y.isFieldsValid === l && y.isGroupValid === x && y.isValid === ee && y.canSubmit === ne && y.isTouched === u && y.isBlurred === d && y.isPristine === m && y.isDefaultValue === f && y.isDirty === p && y.isValidating === h && y.isSubmitting === o.isSubmitting && y.isSubmitted === o.isSubmitted && y.submissionAttempts === o.submissionAttempts && y.isSubmitSuccessful === o.isSubmitSuccessful) {
|
|
1509
1509
|
r[a] = y;
|
|
1510
1510
|
continue;
|
|
1511
1511
|
}
|
|
1512
|
-
let
|
|
1512
|
+
let re = {
|
|
1513
1513
|
...o,
|
|
1514
1514
|
errorMap: g,
|
|
1515
1515
|
errorSourceMap: _,
|
|
@@ -1519,28 +1519,28 @@ var wo = class {
|
|
|
1519
1519
|
isDirty: p,
|
|
1520
1520
|
isPristine: m,
|
|
1521
1521
|
isDefaultValue: f,
|
|
1522
|
-
isValid:
|
|
1522
|
+
isValid: ee,
|
|
1523
1523
|
errors: b,
|
|
1524
1524
|
isValidating: h,
|
|
1525
1525
|
isFieldsValidating: c,
|
|
1526
1526
|
isFieldsValid: l,
|
|
1527
1527
|
isGroupValid: x,
|
|
1528
|
-
canSubmit:
|
|
1528
|
+
canSubmit: ne
|
|
1529
1529
|
};
|
|
1530
|
-
Object.defineProperty(
|
|
1530
|
+
Object.defineProperty(re, "__srcErrorMap", {
|
|
1531
1531
|
value: g,
|
|
1532
1532
|
enumerable: !1,
|
|
1533
1533
|
configurable: !0
|
|
1534
|
-
}), r[a] =
|
|
1534
|
+
}), r[a] = re;
|
|
1535
1535
|
}
|
|
1536
1536
|
return r;
|
|
1537
1537
|
});
|
|
1538
1538
|
let r;
|
|
1539
|
-
this.store =
|
|
1539
|
+
this.store = j((e) => {
|
|
1540
1540
|
let t = this.baseStore.get(), n = this.fieldMetaDerived.get(), i = Object.values(n).filter(Boolean), a = i.some((e) => e.isValidating), o = i.every((e) => e.isValid), s = i.some((e) => e.isTouched), c = i.some((e) => e.isBlurred), l = i.every((e) => e.isDefaultValue), u = s && t.errorMap?.onMount, d = i.some((e) => e.isDirty), f = !d, p = !!(t.errorMap?.onMount || i.some((e) => e?.errorMap?.onMount)), m = !!a, h = e?.errors ?? [];
|
|
1541
1541
|
(!r || t.errorMap !== r.errorMap) && (h = Object.values(t.errorMap).reduce((e, t) => t === void 0 ? e : t && ho(t) ? (e.push(t.form), e) : (e.push(t), e), []));
|
|
1542
1542
|
let g = h.length === 0, _ = o && g, v = this.options.canSubmitWhenInvalid ?? !1, y = t.submissionAttempts === 0 && !s && !p || !m && !t.isSubmitting && _ || v, b = t.errorMap;
|
|
1543
|
-
if (u && (h = h.filter((e) => e !== t.errorMap.onMount), b = Object.assign(b, { onMount: void 0 })), e && r && e.errorMap === b && e.fieldMeta === this.fieldMetaDerived.state && e.errors === h && e.isFieldsValidating === a && e.isFieldsValid === o && e.isFormValid === g && e.isValid === _ && e.canSubmit === y && e.isTouched === s && e.isBlurred === c && e.isPristine === f && e.isDefaultValue === l && e.isDirty === d &&
|
|
1543
|
+
if (u && (h = h.filter((e) => e !== t.errorMap.onMount), b = Object.assign(b, { onMount: void 0 })), e && r && e.errorMap === b && e.fieldMeta === this.fieldMetaDerived.state && e.errors === h && e.isFieldsValidating === a && e.isFieldsValid === o && e.isFormValid === g && e.isValid === _ && e.canSubmit === y && e.isTouched === s && e.isBlurred === c && e.isPristine === f && e.isDefaultValue === l && e.isDirty === d && R(r, t)) return e;
|
|
1544
1544
|
let x = {
|
|
1545
1545
|
...t,
|
|
1546
1546
|
errorMap: b,
|
|
@@ -1567,15 +1567,15 @@ var wo = class {
|
|
|
1567
1567
|
return this._formId;
|
|
1568
1568
|
}
|
|
1569
1569
|
runValidator(e) {
|
|
1570
|
-
return So(e.validate) ?
|
|
1570
|
+
return So(e.validate) ? K[e.type](e.value, e.validate) : e.validate(e.value);
|
|
1571
1571
|
}
|
|
1572
1572
|
handleSubmit(e) {
|
|
1573
1573
|
return this._handleSubmit(e);
|
|
1574
1574
|
}
|
|
1575
1575
|
};
|
|
1576
|
-
function
|
|
1576
|
+
function To(e) {
|
|
1577
1577
|
return e ? ho(e) ? {
|
|
1578
|
-
formError:
|
|
1578
|
+
formError: To(e.form).formError,
|
|
1579
1579
|
fieldErrors: e.fields
|
|
1580
1580
|
} : { formError: e } : { formError: void 0 };
|
|
1581
1581
|
}
|
|
@@ -1591,7 +1591,7 @@ function Y(e) {
|
|
|
1591
1591
|
}
|
|
1592
1592
|
//#endregion
|
|
1593
1593
|
//#region node_modules/@tanstack/form-core/dist/esm/FieldApi.js
|
|
1594
|
-
var
|
|
1594
|
+
var Eo = class e {
|
|
1595
1595
|
constructor(t) {
|
|
1596
1596
|
this.options = {}, this.mount = () => {
|
|
1597
1597
|
this.options.defaultValue !== void 0 && !this.getMeta().isTouched && this.form.setFieldValue(this.name, this.options.defaultValue, { dontUpdateMeta: !0 });
|
|
@@ -1635,10 +1635,10 @@ var To = class e {
|
|
|
1635
1635
|
fieldMetaBase: {
|
|
1636
1636
|
...e.fieldMetaBase,
|
|
1637
1637
|
[this.name]: {
|
|
1638
|
-
...
|
|
1639
|
-
isTouched: e.fieldMetaBase[this.name]?.isTouched ??
|
|
1640
|
-
isBlurred: e.fieldMetaBase[this.name]?.isBlurred ??
|
|
1641
|
-
isDirty: e.fieldMetaBase[this.name]?.isDirty ??
|
|
1638
|
+
...q,
|
|
1639
|
+
isTouched: e.fieldMetaBase[this.name]?.isTouched ?? q.isTouched,
|
|
1640
|
+
isBlurred: e.fieldMetaBase[this.name]?.isBlurred ?? q.isBlurred,
|
|
1641
|
+
isDirty: e.fieldMetaBase[this.name]?.isDirty ?? q.isDirty
|
|
1642
1642
|
}
|
|
1643
1643
|
}
|
|
1644
1644
|
})), e.instance = null, this.options.listeners?.onUnmount?.({
|
|
@@ -1651,7 +1651,7 @@ var To = class e {
|
|
|
1651
1651
|
}
|
|
1652
1652
|
};
|
|
1653
1653
|
}, this.update = (e) => {
|
|
1654
|
-
this.options = e, this.name = e.name, !this.state.meta.isTouched && this.options.defaultValue !== void 0 && (
|
|
1654
|
+
this.options = e, this.name = e.name, !this.state.meta.isTouched && this.options.defaultValue !== void 0 && (R(this.form.getFieldValue(this.name), e.defaultValue) || this.form.setFieldValue(this.name, e.defaultValue, {
|
|
1655
1655
|
dontUpdateMeta: !0,
|
|
1656
1656
|
dontValidate: !0,
|
|
1657
1657
|
dontRunListeners: !0
|
|
@@ -1684,17 +1684,17 @@ var To = class e {
|
|
|
1684
1684
|
}
|
|
1685
1685
|
return r;
|
|
1686
1686
|
}, this.validateSync = (e, t) => {
|
|
1687
|
-
let n =
|
|
1687
|
+
let n = I(e, {
|
|
1688
1688
|
...this.options,
|
|
1689
1689
|
form: this.form,
|
|
1690
1690
|
fieldName: this.name,
|
|
1691
|
-
validationLogic: this.form.options.validationLogic ||
|
|
1691
|
+
validationLogic: this.form.options.validationLogic || G
|
|
1692
1692
|
}), r = this.getLinkedFields(e).reduce((t, n) => {
|
|
1693
|
-
let r =
|
|
1693
|
+
let r = I(e, {
|
|
1694
1694
|
...n.options,
|
|
1695
1695
|
form: n.form,
|
|
1696
1696
|
fieldName: n.name,
|
|
1697
|
-
validationLogic: n.form.options.validationLogic ||
|
|
1697
|
+
validationLogic: n.form.options.validationLogic || G
|
|
1698
1698
|
});
|
|
1699
1699
|
return r.forEach((e) => {
|
|
1700
1700
|
e.field = n;
|
|
@@ -1702,7 +1702,7 @@ var To = class e {
|
|
|
1702
1702
|
}, []), i = !1;
|
|
1703
1703
|
k(() => {
|
|
1704
1704
|
let e = (e, n) => {
|
|
1705
|
-
let r = X(n.cause), a = n.validate ?
|
|
1705
|
+
let r = X(n.cause), a = n.validate ? Do(e.runValidator({
|
|
1706
1706
|
validate: n.validate,
|
|
1707
1707
|
value: {
|
|
1708
1708
|
value: e.store.state.value,
|
|
@@ -1710,7 +1710,7 @@ var To = class e {
|
|
|
1710
1710
|
fieldApi: e
|
|
1711
1711
|
},
|
|
1712
1712
|
type: "validate"
|
|
1713
|
-
})) : void 0, o = t[r], { newErrorValue: s, newSource: c } =
|
|
1713
|
+
})) : void 0, o = t[r], { newErrorValue: s, newSource: c } = _o({
|
|
1714
1714
|
formLevelError: o,
|
|
1715
1715
|
fieldLevelError: a
|
|
1716
1716
|
});
|
|
@@ -1742,17 +1742,17 @@ var To = class e {
|
|
|
1742
1742
|
}
|
|
1743
1743
|
})), { hasErrored: i };
|
|
1744
1744
|
}, this.validateAsync = async (e, t) => {
|
|
1745
|
-
let n =
|
|
1745
|
+
let n = L(e, {
|
|
1746
1746
|
...this.options,
|
|
1747
1747
|
form: this.form,
|
|
1748
1748
|
fieldName: this.name,
|
|
1749
|
-
validationLogic: this.form.options.validationLogic ||
|
|
1749
|
+
validationLogic: this.form.options.validationLogic || G
|
|
1750
1750
|
}), r = await t, i = this.getLinkedFields(e), a = i.reduce((t, n) => {
|
|
1751
|
-
let r =
|
|
1751
|
+
let r = L(e, {
|
|
1752
1752
|
...n.options,
|
|
1753
1753
|
form: n.form,
|
|
1754
1754
|
fieldName: n.name,
|
|
1755
|
-
validationLogic: n.form.options.validationLogic ||
|
|
1755
|
+
validationLogic: n.form.options.validationLogic || G
|
|
1756
1756
|
});
|
|
1757
1757
|
return r.forEach((e) => {
|
|
1758
1758
|
e.field = n;
|
|
@@ -1798,7 +1798,7 @@ var To = class e {
|
|
|
1798
1798
|
a = e;
|
|
1799
1799
|
}
|
|
1800
1800
|
if (o.signal.aborted) return n(void 0);
|
|
1801
|
-
let s =
|
|
1801
|
+
let s = Do(a), c = r[e.name]?.[i], { newErrorValue: l, newSource: u } = _o({
|
|
1802
1802
|
formLevelError: c,
|
|
1803
1803
|
fieldLevelError: s
|
|
1804
1804
|
});
|
|
@@ -1838,7 +1838,7 @@ var To = class e {
|
|
|
1838
1838
|
let { fieldsErrorMap: n } = this.form.validateSync(e, {
|
|
1839
1839
|
group: t,
|
|
1840
1840
|
dontUpdateFormErrorMap: !0,
|
|
1841
|
-
filterFieldNames: (e) =>
|
|
1841
|
+
filterFieldNames: (e) => W(t.name, e)
|
|
1842
1842
|
});
|
|
1843
1843
|
r = {
|
|
1844
1844
|
...r,
|
|
@@ -1877,10 +1877,10 @@ var To = class e {
|
|
|
1877
1877
|
...e
|
|
1878
1878
|
}
|
|
1879
1879
|
}));
|
|
1880
|
-
}, this.parseValueWithSchema = (e) =>
|
|
1880
|
+
}, this.parseValueWithSchema = (e) => K.validate({
|
|
1881
1881
|
value: this.state.value,
|
|
1882
1882
|
validationSource: "field"
|
|
1883
|
-
}, e), this.parseValueWithSchemaAsync = (e) =>
|
|
1883
|
+
}, e), this.parseValueWithSchemaAsync = (e) => K.validateAsync({
|
|
1884
1884
|
value: this.state.value,
|
|
1885
1885
|
validationSource: "field"
|
|
1886
1886
|
}, e), this.triggerOnBlurListener = () => {
|
|
@@ -1925,7 +1925,7 @@ var To = class e {
|
|
|
1925
1925
|
value: this.state.value,
|
|
1926
1926
|
fieldApi: this
|
|
1927
1927
|
});
|
|
1928
|
-
for (let e of this.form.formGroupApis)
|
|
1928
|
+
for (let e of this.form.formGroupApis) W(e.name, this.name) && e.triggerOnChangeListener();
|
|
1929
1929
|
}, this.triggerOnSubmitListener = () => {
|
|
1930
1930
|
this.options.listeners?.onSubmit?.({
|
|
1931
1931
|
value: this.state.value,
|
|
@@ -1935,13 +1935,13 @@ var To = class e {
|
|
|
1935
1935
|
validations: {},
|
|
1936
1936
|
listeners: {},
|
|
1937
1937
|
formListeners: {}
|
|
1938
|
-
}, this.store =
|
|
1938
|
+
}, this.store = j((e) => {
|
|
1939
1939
|
this.form.store.get();
|
|
1940
1940
|
let n = this.form.getFieldMeta(this.name) ?? {
|
|
1941
|
-
...
|
|
1941
|
+
...q,
|
|
1942
1942
|
...t.defaultMeta
|
|
1943
1943
|
}, r = this.form.getFieldValue(this.name);
|
|
1944
|
-
return !n.isTouched && r === void 0 && this.options.defaultValue !== void 0 && !
|
|
1944
|
+
return !n.isTouched && r === void 0 && this.options.defaultValue !== void 0 && !R(r, this.options.defaultValue) && (r = this.options.defaultValue), e && e.value === r && e.meta === n ? e : {
|
|
1945
1945
|
value: r,
|
|
1946
1946
|
meta: n
|
|
1947
1947
|
};
|
|
@@ -1951,10 +1951,10 @@ var To = class e {
|
|
|
1951
1951
|
return this.store.state;
|
|
1952
1952
|
}
|
|
1953
1953
|
runValidator(e) {
|
|
1954
|
-
return So(e.validate) ?
|
|
1954
|
+
return So(e.validate) ? K[e.type](e.value, e.validate) : e.validate(e.value);
|
|
1955
1955
|
}
|
|
1956
1956
|
};
|
|
1957
|
-
function
|
|
1957
|
+
function Do(e) {
|
|
1958
1958
|
if (e) return e;
|
|
1959
1959
|
}
|
|
1960
1960
|
function X(e) {
|
|
@@ -1969,7 +1969,7 @@ function X(e) {
|
|
|
1969
1969
|
}
|
|
1970
1970
|
//#endregion
|
|
1971
1971
|
//#region node_modules/@tanstack/form-core/dist/esm/FormGroupApi.js
|
|
1972
|
-
function
|
|
1972
|
+
function Oo(e) {
|
|
1973
1973
|
return {
|
|
1974
1974
|
isSubmitted: e.isSubmitted ?? !1,
|
|
1975
1975
|
isSubmitting: e.isSubmitting ?? !1,
|
|
@@ -1978,9 +1978,9 @@ function Do(e) {
|
|
|
1978
1978
|
isSubmitSuccessful: e.isSubmitSuccessful ?? !1
|
|
1979
1979
|
};
|
|
1980
1980
|
}
|
|
1981
|
-
function
|
|
1981
|
+
function ko(e) {
|
|
1982
1982
|
return {
|
|
1983
|
-
...
|
|
1983
|
+
...q,
|
|
1984
1984
|
...e,
|
|
1985
1985
|
errors: [],
|
|
1986
1986
|
isPristine: !0,
|
|
@@ -1997,11 +1997,11 @@ function Oo(e) {
|
|
|
1997
1997
|
isSubmitSuccessful: !1
|
|
1998
1998
|
};
|
|
1999
1999
|
}
|
|
2000
|
-
var
|
|
2000
|
+
var Ao = class e {
|
|
2001
2001
|
constructor(t) {
|
|
2002
2002
|
this.options = {}, this.setFormGroupState = (e) => {
|
|
2003
2003
|
this.form.baseStore.setState((t) => {
|
|
2004
|
-
let n = t.formGroupStateBase[this.name] ??
|
|
2004
|
+
let n = t.formGroupStateBase[this.name] ?? Oo({});
|
|
2005
2005
|
return {
|
|
2006
2006
|
...t,
|
|
2007
2007
|
formGroupStateBase: {
|
|
@@ -2011,12 +2011,12 @@ var ko = class e {
|
|
|
2011
2011
|
};
|
|
2012
2012
|
});
|
|
2013
2013
|
}, this._lastDistributedFieldNames = {}, this.update = (e) => {
|
|
2014
|
-
this.options = e, this.name = e.name, !this.state.meta.isTouched && this.options.defaultValue !== void 0 && (
|
|
2014
|
+
this.options = e, this.name = e.name, !this.state.meta.isTouched && this.options.defaultValue !== void 0 && (R(this.form.getFieldValue(this.name), e.defaultValue) || this.form.setFieldValue(this.name, e.defaultValue, {
|
|
2015
2015
|
dontUpdateMeta: !0,
|
|
2016
2016
|
dontValidate: !0,
|
|
2017
2017
|
dontRunListeners: !0
|
|
2018
2018
|
})), this.form.getFieldMeta(this.name) || this.form.setFieldMeta(this.name, {
|
|
2019
|
-
...
|
|
2019
|
+
...q,
|
|
2020
2020
|
...this.options.defaultMeta
|
|
2021
2021
|
});
|
|
2022
2022
|
}, this.mount = () => {
|
|
@@ -2024,7 +2024,7 @@ var ko = class e {
|
|
|
2024
2024
|
...e,
|
|
2025
2025
|
formGroupStateBase: {
|
|
2026
2026
|
...e.formGroupStateBase,
|
|
2027
|
-
[this.name]: e.formGroupStateBase[this.name] ??
|
|
2027
|
+
[this.name]: e.formGroupStateBase[this.name] ?? Oo({ ...this.options.defaultState })
|
|
2028
2028
|
}
|
|
2029
2029
|
}));
|
|
2030
2030
|
let { onMount: e } = this.options.validators || {};
|
|
@@ -2038,8 +2038,8 @@ var ko = class e {
|
|
|
2038
2038
|
},
|
|
2039
2039
|
type: "validate"
|
|
2040
2040
|
}), n = t, r;
|
|
2041
|
-
|
|
2042
|
-
let i =
|
|
2041
|
+
Mo(t) && (n = t.group, r = t.fields);
|
|
2042
|
+
let i = jo(n);
|
|
2043
2043
|
i && this.setMeta((e) => ({
|
|
2044
2044
|
...e,
|
|
2045
2045
|
errorMap: {
|
|
@@ -2065,7 +2065,7 @@ var ko = class e {
|
|
|
2065
2065
|
...e,
|
|
2066
2066
|
formGroupStateBase: {
|
|
2067
2067
|
...e.formGroupStateBase,
|
|
2068
|
-
[this.name]:
|
|
2068
|
+
[this.name]: Oo({})
|
|
2069
2069
|
}
|
|
2070
2070
|
})), this.fieldInfo.instance = null, this.options.listeners?.onUnmount?.({
|
|
2071
2071
|
value: this.state.value,
|
|
@@ -2080,11 +2080,11 @@ var ko = class e {
|
|
|
2080
2080
|
})), t?.dontRunListeners || this.triggerOnChangeListener(), t?.dontValidate || this.validate("change");
|
|
2081
2081
|
}, this.getMeta = () => this.store.state.meta, this.setMeta = (e) => this.form.setFieldMeta(this.name, e), this.getInfo = () => this.fieldInfo, this.getRelatedFields = () => {
|
|
2082
2082
|
let e = Object.values(this.form.fieldInfo), t = [];
|
|
2083
|
-
for (let n of e) n.instance && n.instance instanceof
|
|
2083
|
+
for (let n of e) n.instance && n.instance instanceof Eo && n.instance.name.startsWith(this.name) && t.push(n.instance);
|
|
2084
2084
|
return t;
|
|
2085
2085
|
}, this.getRelatedFieldMetasDerived = () => {
|
|
2086
2086
|
let e = Object.entries(this.form.fieldMetaDerived.state), t = [];
|
|
2087
|
-
for (let [n, r] of e) n !== this.name &&
|
|
2087
|
+
for (let [n, r] of e) n !== this.name && W(this.name, n) && t.push({
|
|
2088
2088
|
...r,
|
|
2089
2089
|
name: n
|
|
2090
2090
|
});
|
|
@@ -2115,16 +2115,16 @@ var ko = class e {
|
|
|
2115
2115
|
}
|
|
2116
2116
|
return this._lastDistributedFieldNames[e] = r, a;
|
|
2117
2117
|
}, this.validateSync = (t, n, r = {}) => {
|
|
2118
|
-
let i =
|
|
2118
|
+
let i = I(t, {
|
|
2119
2119
|
...this.options,
|
|
2120
2120
|
form: this.form,
|
|
2121
2121
|
group: this,
|
|
2122
|
-
validationLogic: this.options.validationLogic || this.form.options.validationLogic ||
|
|
2122
|
+
validationLogic: this.options.validationLogic || this.form.options.validationLogic || G
|
|
2123
2123
|
}), a = (r.skipRelatedFieldValidation ? [] : this.getRelatedFields()).reduce((e, n) => {
|
|
2124
|
-
let r =
|
|
2124
|
+
let r = I(t, {
|
|
2125
2125
|
...n.options,
|
|
2126
2126
|
form: n.form,
|
|
2127
|
-
validationLogic: n.form.options.validationLogic ||
|
|
2127
|
+
validationLogic: n.form.options.validationLogic || G
|
|
2128
2128
|
});
|
|
2129
2129
|
return r.forEach((e) => {
|
|
2130
2130
|
e.field = n;
|
|
@@ -2132,7 +2132,7 @@ var ko = class e {
|
|
|
2132
2132
|
}, []), o = !1;
|
|
2133
2133
|
k(() => {
|
|
2134
2134
|
let t = (t, r) => {
|
|
2135
|
-
let i =
|
|
2135
|
+
let i = Po(r.cause), a = t === this, s;
|
|
2136
2136
|
r.validate && (s = t.runValidator({
|
|
2137
2137
|
validate: r.validate,
|
|
2138
2138
|
value: {
|
|
@@ -2143,8 +2143,8 @@ var ko = class e {
|
|
|
2143
2143
|
type: "validate"
|
|
2144
2144
|
}));
|
|
2145
2145
|
let c = s, l;
|
|
2146
|
-
a &&
|
|
2147
|
-
let u =
|
|
2146
|
+
a && Mo(s) && (c = s.group, l = s.fields);
|
|
2147
|
+
let u = jo(c), d = n[i], { newErrorValue: f, newSource: p } = _o({
|
|
2148
2148
|
formLevelError: d,
|
|
2149
2149
|
fieldLevelError: u
|
|
2150
2150
|
});
|
|
@@ -2163,7 +2163,7 @@ var ko = class e {
|
|
|
2163
2163
|
for (let e of i) t(this, e);
|
|
2164
2164
|
for (let e of a) e.validate && t(e.field, e);
|
|
2165
2165
|
});
|
|
2166
|
-
let s =
|
|
2166
|
+
let s = Po("submit");
|
|
2167
2167
|
return this.state.meta.errorMap?.[s] && t !== "submit" && !o && this.setMeta((e) => ({
|
|
2168
2168
|
...e,
|
|
2169
2169
|
errorMap: {
|
|
@@ -2176,16 +2176,16 @@ var ko = class e {
|
|
|
2176
2176
|
}
|
|
2177
2177
|
})), { hasErrored: o };
|
|
2178
2178
|
}, this.validateAsync = async (t, n, r = {}) => {
|
|
2179
|
-
let i =
|
|
2179
|
+
let i = L(t, {
|
|
2180
2180
|
...this.options,
|
|
2181
2181
|
form: this.form,
|
|
2182
2182
|
group: this,
|
|
2183
|
-
validationLogic: this.options.validationLogic || this.form.options.validationLogic ||
|
|
2183
|
+
validationLogic: this.options.validationLogic || this.form.options.validationLogic || G
|
|
2184
2184
|
}), a = await n, o = r.skipRelatedFieldValidation ? [] : this.getRelatedFields(), s = o.reduce((e, n) => {
|
|
2185
|
-
let r =
|
|
2185
|
+
let r = L(t, {
|
|
2186
2186
|
...n.options,
|
|
2187
2187
|
form: n.form,
|
|
2188
|
-
validationLogic: n.form.options.validationLogic ||
|
|
2188
|
+
validationLogic: n.form.options.validationLogic || G
|
|
2189
2189
|
});
|
|
2190
2190
|
return r.forEach((e) => {
|
|
2191
2191
|
e.field = n;
|
|
@@ -2202,7 +2202,7 @@ var ko = class e {
|
|
|
2202
2202
|
}));
|
|
2203
2203
|
}
|
|
2204
2204
|
let d = (t, n, r) => {
|
|
2205
|
-
let i =
|
|
2205
|
+
let i = Po(n.cause), o = t.getInfo();
|
|
2206
2206
|
o.validationMetaMap[i]?.lastAbortController.abort();
|
|
2207
2207
|
let s = new AbortController();
|
|
2208
2208
|
o.validationMetaMap[i] = { lastAbortController: s };
|
|
@@ -2234,8 +2234,8 @@ var ko = class e {
|
|
|
2234
2234
|
}
|
|
2235
2235
|
if (s.signal.aborted) return r(void 0);
|
|
2236
2236
|
let l = o, u;
|
|
2237
|
-
c &&
|
|
2238
|
-
let d =
|
|
2237
|
+
c && Mo(o) && (l = o.group, u = o.fields);
|
|
2238
|
+
let d = jo(l), f = a[t.name]?.[i], { newErrorValue: p, newSource: m } = _o({
|
|
2239
2239
|
formLevelError: f,
|
|
2240
2240
|
fieldLevelError: d
|
|
2241
2241
|
});
|
|
@@ -2283,12 +2283,12 @@ var ko = class e {
|
|
|
2283
2283
|
}, this.validateArrayFieldsStartingFrom = (e, t, n) => this.form.validateArrayFieldsStartingFrom(e, t, n), this.validateField = (e, t) => this.form.validateField(e, t), this.getFieldValue = (e) => this.form.getFieldValue(e), this.getFieldMeta = (e) => this.form.getFieldMeta(e), this.setFieldMeta = (e, t) => this.form.setFieldMeta(e, t), this.setFieldValue = (e, t) => this.form.setFieldValue(e, t), this.deleteField = (e) => this.form.deleteField(e), this.pushFieldValue = (e, t) => this.form.pushFieldValue(e, t), this.insertFieldValue = (e, t, n) => this.form.insertFieldValue(e, t, n), this.replaceFieldValue = (e, t, n) => this.form.replaceFieldValue(e, t, n), this.swapFieldValues = (e, t, n) => this.form.swapFieldValues(e, t, n), this.moveFieldValues = (e, t, n) => this.form.moveFieldValues(e, t, n), this.clearFieldValues = (e) => this.form.clearFieldValues(e), this.resetField = (e) => this.form.resetField(e), this.removeFieldValue = (e, t) => this.form.removeFieldValue(e, t), this.areRelatedFieldsValid = () => Object.values(this.getRelatedFields()).every((e) => e.state.meta.isValid), this.validate = (e, t) => {
|
|
2284
2284
|
let { fieldsErrorMap: n } = t?.skipFormValidation ? { fieldsErrorMap: {} } : this.form.validateSync(e, {
|
|
2285
2285
|
dontUpdateFormErrorMap: !0,
|
|
2286
|
-
filterFieldNames: (e) =>
|
|
2286
|
+
filterFieldNames: (e) => W(this.name, e)
|
|
2287
2287
|
}), { hasErrored: r } = this.validateSync(e, n[this.name] ?? {}, { skipRelatedFieldValidation: t?.skipRelatedFieldValidation });
|
|
2288
|
-
if (r && !this.options.asyncAlways) return this.getInfo().validationMetaMap[
|
|
2288
|
+
if (r && !this.options.asyncAlways) return this.getInfo().validationMetaMap[Po(e)]?.lastAbortController.abort(), this.state.meta.errors;
|
|
2289
2289
|
let i = t?.skipFormValidation ? Promise.resolve({}) : this.form.validateAsync(e, {
|
|
2290
2290
|
dontUpdateFormErrorMap: !0,
|
|
2291
|
-
filterFieldNames: (e) =>
|
|
2291
|
+
filterFieldNames: (e) => W(this.name, e)
|
|
2292
2292
|
});
|
|
2293
2293
|
return this.validateAsync(e, i, { skipRelatedFieldValidation: t?.skipRelatedFieldValidation });
|
|
2294
2294
|
}, this.triggerOnChangeListener = () => {
|
|
@@ -2401,10 +2401,10 @@ var ko = class e {
|
|
|
2401
2401
|
onServer: void 0,
|
|
2402
2402
|
onDynamic: void 0
|
|
2403
2403
|
}
|
|
2404
|
-
}, this.store =
|
|
2404
|
+
}, this.store = j((e) => {
|
|
2405
2405
|
this.form.formGroupMetaDerived.get(), this.form.baseStore.get();
|
|
2406
|
-
let n = this.form.getFormGroupMeta(this.name) ??
|
|
2407
|
-
return !n.isTouched && r === void 0 && this.options.defaultValue !== void 0 && !
|
|
2406
|
+
let n = this.form.getFormGroupMeta(this.name) ?? ko(t.defaultMeta), r = this.form.getFieldValue(this.name);
|
|
2407
|
+
return !n.isTouched && r === void 0 && this.options.defaultValue !== void 0 && !R(r, this.options.defaultValue) && (r = this.options.defaultValue), e && e.value === r && e.meta === n ? e : {
|
|
2408
2408
|
value: r,
|
|
2409
2409
|
meta: n
|
|
2410
2410
|
};
|
|
@@ -2415,8 +2415,8 @@ var ko = class e {
|
|
|
2415
2415
|
}
|
|
2416
2416
|
runValidator(e) {
|
|
2417
2417
|
if (So(e.validate)) {
|
|
2418
|
-
let t =
|
|
2419
|
-
return e.type === "validate" ?
|
|
2418
|
+
let t = K[e.type](e.value, e.validate);
|
|
2419
|
+
return e.type === "validate" ? No(t) : t.then(No);
|
|
2420
2420
|
}
|
|
2421
2421
|
return e.validate(e.value);
|
|
2422
2422
|
}
|
|
@@ -2424,13 +2424,13 @@ var ko = class e {
|
|
|
2424
2424
|
return this._handleSubmit(e);
|
|
2425
2425
|
}
|
|
2426
2426
|
};
|
|
2427
|
-
function
|
|
2427
|
+
function jo(e) {
|
|
2428
2428
|
if (e) return e;
|
|
2429
2429
|
}
|
|
2430
|
-
function
|
|
2430
|
+
function Mo(e) {
|
|
2431
2431
|
return !!e && typeof e == "object" && "fields" in e;
|
|
2432
2432
|
}
|
|
2433
|
-
function
|
|
2433
|
+
function No(e) {
|
|
2434
2434
|
if (!e || typeof e != "object" || !("form" in e) && !("fields" in e)) return e;
|
|
2435
2435
|
let { form: t, fields: n, ...r } = e;
|
|
2436
2436
|
return {
|
|
@@ -2439,7 +2439,7 @@ function Mo(e) {
|
|
|
2439
2439
|
fields: n
|
|
2440
2440
|
};
|
|
2441
2441
|
}
|
|
2442
|
-
function
|
|
2442
|
+
function Po(e) {
|
|
2443
2443
|
switch (e) {
|
|
2444
2444
|
case "submit": return "onSubmit";
|
|
2445
2445
|
case "blur": return "onBlur";
|
|
@@ -2451,7 +2451,7 @@ function No(e) {
|
|
|
2451
2451
|
}
|
|
2452
2452
|
//#endregion
|
|
2453
2453
|
//#region node_modules/@tanstack/form-core/dist/esm/FieldGroupApi.js
|
|
2454
|
-
var
|
|
2454
|
+
var Fo = class e {
|
|
2455
2455
|
constructor(t) {
|
|
2456
2456
|
if (this.getFormFieldName = (e) => {
|
|
2457
2457
|
if (typeof this.fieldsMap == "string") return po(this.fieldsMap, e);
|
|
@@ -2477,13 +2477,13 @@ var Po = class e {
|
|
|
2477
2477
|
this.fieldsMap = n;
|
|
2478
2478
|
}
|
|
2479
2479
|
} else this.form = t.form, this.fieldsMap = t.fields;
|
|
2480
|
-
this.store =
|
|
2480
|
+
this.store = j(() => {
|
|
2481
2481
|
let e = this.form.store.get(), t;
|
|
2482
|
-
if (typeof this.fieldsMap == "string") t =
|
|
2482
|
+
if (typeof this.fieldsMap == "string") t = P(e.values, this.fieldsMap);
|
|
2483
2483
|
else {
|
|
2484
2484
|
t = {};
|
|
2485
2485
|
let n = this.fieldsMap;
|
|
2486
|
-
for (let r in n) t[r] =
|
|
2486
|
+
for (let r in n) t[r] = P(e.values, n[r]);
|
|
2487
2487
|
}
|
|
2488
2488
|
return { values: t };
|
|
2489
2489
|
});
|
|
@@ -2497,9 +2497,9 @@ var Po = class e {
|
|
|
2497
2497
|
};
|
|
2498
2498
|
//#endregion
|
|
2499
2499
|
//#region node_modules/@tanstack/form-core/dist/esm/transform.js
|
|
2500
|
-
function
|
|
2500
|
+
function Io(e, t) {
|
|
2501
2501
|
if (!t) return;
|
|
2502
|
-
let n = Object.assign({}, e, { state:
|
|
2502
|
+
let n = Object.assign({}, e, { state: U(e.state) });
|
|
2503
2503
|
t(n), n.fieldInfo !== e.fieldInfo && (e.fieldInfo = n.fieldInfo), n.options !== e.options && (e.options = n.options);
|
|
2504
2504
|
let r = Object.keys({
|
|
2505
2505
|
values: null,
|
|
@@ -2522,31 +2522,31 @@ function Fo(e, t) {
|
|
|
2522
2522
|
}
|
|
2523
2523
|
//#endregion
|
|
2524
2524
|
//#region node_modules/@tanstack/react-store/dist/useSelector.js
|
|
2525
|
-
function
|
|
2525
|
+
function Lo(e, t) {
|
|
2526
2526
|
return e === t;
|
|
2527
2527
|
}
|
|
2528
|
-
function
|
|
2529
|
-
let r = n?.compare ??
|
|
2528
|
+
function Ro(e, t = (e) => e, n) {
|
|
2529
|
+
let r = n?.compare ?? Lo, i = Ma((t) => {
|
|
2530
2530
|
let { unsubscribe: n } = e.subscribe(t);
|
|
2531
2531
|
return n;
|
|
2532
|
-
}, [e]), a =
|
|
2533
|
-
return
|
|
2532
|
+
}, [e]), a = Ma(() => e.get(), [e]);
|
|
2533
|
+
return La(i, a, a, t, r);
|
|
2534
2534
|
}
|
|
2535
2535
|
//#endregion
|
|
2536
2536
|
//#region node_modules/@tanstack/react-store/dist/useStore.js
|
|
2537
|
-
var Z = (e, t = (e) => e, n) =>
|
|
2537
|
+
var Z = (e, t = (e) => e, n) => Ro(e, t, { compare: n }), Q = typeof window < "u" ? Fa : Pa;
|
|
2538
2538
|
//#endregion
|
|
2539
2539
|
//#region node_modules/@tanstack/react-form/dist/esm/useField.js
|
|
2540
|
-
function
|
|
2541
|
-
let [t, n] =
|
|
2540
|
+
function zo(e) {
|
|
2541
|
+
let [t, n] = C(() => ({
|
|
2542
2542
|
form: e.form,
|
|
2543
2543
|
name: e.name
|
|
2544
|
-
})), [r, i] =
|
|
2545
|
-
(t.form !== e.form || t.name !== e.name) && (i(new
|
|
2544
|
+
})), [r, i] = C(() => new Eo({ ...e }));
|
|
2545
|
+
(t.form !== e.form || t.name !== e.name) && (i(new Eo({ ...e })), n({
|
|
2546
2546
|
form: e.form,
|
|
2547
2547
|
name: e.name
|
|
2548
2548
|
}));
|
|
2549
|
-
let a = Z(r.store, e.mode === "array" ? (e) => e.meta._arrayVersion || 0 : (e) => e.value), o = Z(r.store, (e) => e.meta.isTouched), s = Z(r.store, (e) => e.meta.isBlurred), c = Z(r.store, (e) => e.meta.isDirty), l = Z(r.store, (e) => e.meta.errorMap), u = Z(r.store, (e) => e.meta.errorSourceMap), d = Z(r.store, (e) => e.meta.isValidating), f =
|
|
2549
|
+
let a = Z(r.store, e.mode === "array" ? (e) => e.meta._arrayVersion || 0 : (e) => e.value), o = Z(r.store, (e) => e.meta.isTouched), s = Z(r.store, (e) => e.meta.isBlurred), c = Z(r.store, (e) => e.meta.isDirty), l = Z(r.store, (e) => e.meta.errorMap), u = Z(r.store, (e) => e.meta.errorSourceMap), d = Z(r.store, (e) => e.meta.isValidating), f = S(() => ({
|
|
2550
2550
|
...r,
|
|
2551
2551
|
get state() {
|
|
2552
2552
|
return {
|
|
@@ -2579,30 +2579,30 @@ function Ro(e) {
|
|
|
2579
2579
|
r.update(e);
|
|
2580
2580
|
}), f;
|
|
2581
2581
|
}
|
|
2582
|
-
var
|
|
2583
|
-
let n =
|
|
2584
|
-
return /* @__PURE__ */
|
|
2582
|
+
var Bo = (({ children: e, ...t }) => {
|
|
2583
|
+
let n = zo(t);
|
|
2584
|
+
return /* @__PURE__ */ w(Ra, { children: S(() => N(e, n), [e, n]) });
|
|
2585
2585
|
});
|
|
2586
2586
|
//#endregion
|
|
2587
2587
|
//#region node_modules/@tanstack/react-form/dist/esm/useUUID.js
|
|
2588
|
-
function
|
|
2589
|
-
return
|
|
2588
|
+
function Vo() {
|
|
2589
|
+
return C(() => vo())[0];
|
|
2590
2590
|
}
|
|
2591
2591
|
//#endregion
|
|
2592
2592
|
//#region node_modules/@tanstack/react-form/dist/esm/useFormId.js
|
|
2593
|
-
var
|
|
2593
|
+
var Ho = Aa, Uo = Aa.version.split(".")[0] === "17" ? Vo : Ho.useId;
|
|
2594
2594
|
//#endregion
|
|
2595
2595
|
//#region node_modules/@tanstack/react-form/dist/esm/useFormGroup.js
|
|
2596
|
-
function
|
|
2597
|
-
let [t, n] =
|
|
2596
|
+
function Wo(e) {
|
|
2597
|
+
let [t, n] = C(() => ({
|
|
2598
2598
|
form: e.form,
|
|
2599
2599
|
name: e.name
|
|
2600
|
-
})), [r, i] =
|
|
2601
|
-
(t.form !== e.form || t.name !== e.name) && (i(new
|
|
2600
|
+
})), [r, i] = C(() => new Ao({ ...e }));
|
|
2601
|
+
(t.form !== e.form || t.name !== e.name) && (i(new Ao({ ...e })), n({
|
|
2602
2602
|
form: e.form,
|
|
2603
2603
|
name: e.name
|
|
2604
2604
|
}));
|
|
2605
|
-
let a = Z(r.store, (e) => e.value), o = Z(r.store, (e) => e.meta.isTouched), s = Z(r.store, (e) => e.meta.isBlurred), c = Z(r.store, (e) => e.meta.isDirty), l = Z(r.store, (e) => e.meta.errorMap), u = Z(r.store, (e) => e.meta.errorSourceMap), d = Z(r.store, (e) => e.meta.isValidating), f = Z(r.store, (e) => e.meta.isSubmitting), p = Z(r.store, (e) => e.meta.isSubmitted), m = Z(r.store, (e) => e.meta.submissionAttempts), h = Z(r.store, (e) => e.meta.isSubmitSuccessful), g = Z(r.store, (e) => e.meta.canSubmit), _ = Z(r.store, (e) => e.meta.isValid), v = Z(r.store, (e) => e.meta.isFieldsValid), y = Z(r.store, (e) => e.meta.isFieldsValidating), b = Z(r.store, (e) => e.meta.isGroupValid), x =
|
|
2605
|
+
let a = Z(r.store, (e) => e.value), o = Z(r.store, (e) => e.meta.isTouched), s = Z(r.store, (e) => e.meta.isBlurred), c = Z(r.store, (e) => e.meta.isDirty), l = Z(r.store, (e) => e.meta.errorMap), u = Z(r.store, (e) => e.meta.errorSourceMap), d = Z(r.store, (e) => e.meta.isValidating), f = Z(r.store, (e) => e.meta.isSubmitting), p = Z(r.store, (e) => e.meta.isSubmitted), m = Z(r.store, (e) => e.meta.submissionAttempts), h = Z(r.store, (e) => e.meta.isSubmitSuccessful), g = Z(r.store, (e) => e.meta.canSubmit), _ = Z(r.store, (e) => e.meta.isValid), v = Z(r.store, (e) => e.meta.isFieldsValid), y = Z(r.store, (e) => e.meta.isFieldsValidating), b = Z(r.store, (e) => e.meta.isGroupValid), x = S(() => ({
|
|
2606
2606
|
...r,
|
|
2607
2607
|
handleSubmit: ((...e) => r._handleSubmit(...e)),
|
|
2608
2608
|
get state() {
|
|
@@ -2654,17 +2654,17 @@ function Uo(e) {
|
|
|
2654
2654
|
r.update(e);
|
|
2655
2655
|
}), x;
|
|
2656
2656
|
}
|
|
2657
|
-
var
|
|
2658
|
-
let n =
|
|
2659
|
-
return /* @__PURE__ */
|
|
2657
|
+
var Go = (({ children: e, ...t }) => {
|
|
2658
|
+
let n = Wo(t);
|
|
2659
|
+
return /* @__PURE__ */ w(Ra, { children: S(() => N(e, n), [e, n]) });
|
|
2660
2660
|
});
|
|
2661
2661
|
//#endregion
|
|
2662
2662
|
//#region node_modules/@tanstack/react-form/dist/esm/useForm.js
|
|
2663
|
-
function
|
|
2664
|
-
return /* @__PURE__ */
|
|
2663
|
+
function Ko({ form: e, selector: t = (e) => e, children: n }) {
|
|
2664
|
+
return /* @__PURE__ */ w(Ra, { children: N(n, Z(e.store, t)) });
|
|
2665
2665
|
}
|
|
2666
|
-
function
|
|
2667
|
-
let t =
|
|
2666
|
+
function qo(e) {
|
|
2667
|
+
let t = Uo(), [n, r] = C(e?.formId), [i, a] = C(() => new wo({
|
|
2668
2668
|
...e,
|
|
2669
2669
|
formId: e?.formId ?? t
|
|
2670
2670
|
}));
|
|
@@ -2675,7 +2675,7 @@ function Ko(e) {
|
|
|
2675
2675
|
formId: n
|
|
2676
2676
|
})), r(n);
|
|
2677
2677
|
}
|
|
2678
|
-
let o =
|
|
2678
|
+
let o = S(() => {
|
|
2679
2679
|
let e = {
|
|
2680
2680
|
...i,
|
|
2681
2681
|
handleSubmit: ((...e) => i._handleSubmit(...e)),
|
|
@@ -2687,17 +2687,17 @@ function Ko(e) {
|
|
|
2687
2687
|
}
|
|
2688
2688
|
};
|
|
2689
2689
|
return e.Field = function(e) {
|
|
2690
|
-
return /* @__PURE__ */
|
|
2690
|
+
return /* @__PURE__ */ w(Bo, {
|
|
2691
2691
|
...e,
|
|
2692
2692
|
form: i
|
|
2693
2693
|
});
|
|
2694
2694
|
}, e.FormGroup = function(e) {
|
|
2695
|
-
return /* @__PURE__ */
|
|
2695
|
+
return /* @__PURE__ */ w(Go, {
|
|
2696
2696
|
...e,
|
|
2697
2697
|
form: i
|
|
2698
2698
|
});
|
|
2699
2699
|
}, e.Subscribe = function(e) {
|
|
2700
|
-
return /* @__PURE__ */
|
|
2700
|
+
return /* @__PURE__ */ w(Ko, {
|
|
2701
2701
|
form: i,
|
|
2702
2702
|
selector: e.selector,
|
|
2703
2703
|
children: e.children
|
|
@@ -2707,29 +2707,29 @@ function Ko(e) {
|
|
|
2707
2707
|
Q(i.mount, []), Q(() => {
|
|
2708
2708
|
i.update(e);
|
|
2709
2709
|
});
|
|
2710
|
-
let s =
|
|
2710
|
+
let s = Ia(!1);
|
|
2711
2711
|
return Q(() => {
|
|
2712
|
-
s.current && e?.transform &&
|
|
2712
|
+
s.current && e?.transform && Io(i, e.transform);
|
|
2713
2713
|
}, [i, e?.transform]), Q(() => {
|
|
2714
2714
|
s.current = !0;
|
|
2715
2715
|
}), o;
|
|
2716
2716
|
}
|
|
2717
2717
|
//#endregion
|
|
2718
2718
|
//#region node_modules/@tanstack/react-form/dist/esm/useFieldGroup.js
|
|
2719
|
-
function
|
|
2720
|
-
return /* @__PURE__ */
|
|
2719
|
+
function Jo({ lens: e, selector: t = (e) => e, children: n }) {
|
|
2720
|
+
return /* @__PURE__ */ w(Ra, { children: N(n, Z(e.store, t)) });
|
|
2721
2721
|
}
|
|
2722
|
-
function
|
|
2723
|
-
let [t] =
|
|
2724
|
-
let n = new
|
|
2722
|
+
function Yo(e) {
|
|
2723
|
+
let [t] = C(() => {
|
|
2724
|
+
let n = new Fo(e), r = e.form instanceof Fo ? e.form.form : e.form, i = n;
|
|
2725
2725
|
return i.AppForm = function(e) {
|
|
2726
|
-
return /* @__PURE__ */
|
|
2726
|
+
return /* @__PURE__ */ w(r.AppForm, { ...e });
|
|
2727
2727
|
}, i.AppField = function(e) {
|
|
2728
|
-
return /* @__PURE__ */
|
|
2728
|
+
return /* @__PURE__ */ w(r.AppField, { ...t.getFormFieldOptions(e) });
|
|
2729
2729
|
}, i.Field = function(e) {
|
|
2730
|
-
return /* @__PURE__ */
|
|
2730
|
+
return /* @__PURE__ */ w(r.Field, { ...t.getFormFieldOptions(e) });
|
|
2731
2731
|
}, i.Subscribe = function(e) {
|
|
2732
|
-
return /* @__PURE__ */
|
|
2732
|
+
return /* @__PURE__ */ w(Jo, {
|
|
2733
2733
|
lens: t,
|
|
2734
2734
|
selector: e.selector,
|
|
2735
2735
|
children: e.children
|
|
@@ -2740,38 +2740,38 @@ function Jo(e) {
|
|
|
2740
2740
|
}
|
|
2741
2741
|
//#endregion
|
|
2742
2742
|
//#region node_modules/@tanstack/react-form/dist/esm/createFormHook.js
|
|
2743
|
-
var
|
|
2744
|
-
function
|
|
2745
|
-
let e =
|
|
2743
|
+
var Xo = ja(null), Zo = ja(null);
|
|
2744
|
+
function Qo() {
|
|
2745
|
+
let e = Na(Zo);
|
|
2746
2746
|
if (!e) throw Error("`formContext` only works when within a `formComponent` passed to `createFormHook`");
|
|
2747
2747
|
return e;
|
|
2748
2748
|
}
|
|
2749
|
-
function
|
|
2749
|
+
function $o() {
|
|
2750
2750
|
function e() {
|
|
2751
|
-
let e =
|
|
2751
|
+
let e = Na(Xo);
|
|
2752
2752
|
if (!e) throw Error("`fieldContext` only works when within a `fieldComponent` passed to `createFormHook`");
|
|
2753
2753
|
return e;
|
|
2754
2754
|
}
|
|
2755
2755
|
return {
|
|
2756
|
-
fieldContext:
|
|
2756
|
+
fieldContext: Xo,
|
|
2757
2757
|
useFieldContext: e,
|
|
2758
|
-
useFormContext:
|
|
2759
|
-
formContext:
|
|
2758
|
+
useFormContext: Qo,
|
|
2759
|
+
formContext: Zo
|
|
2760
2760
|
};
|
|
2761
2761
|
}
|
|
2762
|
-
function
|
|
2762
|
+
function es({ fieldComponents: e, fieldContext: t, formContext: n, formComponents: r }) {
|
|
2763
2763
|
function i(i) {
|
|
2764
|
-
let a =
|
|
2764
|
+
let a = qo(i), o = S(() => ({ children: e }) => /* @__PURE__ */ w(n.Provider, {
|
|
2765
2765
|
value: a,
|
|
2766
2766
|
children: e
|
|
2767
|
-
}), [a]), s =
|
|
2767
|
+
}), [a]), s = S(() => (({ children: n, ...r }) => /* @__PURE__ */ w(a.Field, {
|
|
2768
2768
|
...r,
|
|
2769
|
-
children: (r) => /* @__PURE__ */
|
|
2769
|
+
children: (r) => /* @__PURE__ */ w(t.Provider, {
|
|
2770
2770
|
value: r,
|
|
2771
2771
|
children: n(Object.assign(r, e))
|
|
2772
2772
|
})
|
|
2773
2773
|
})), [a]);
|
|
2774
|
-
return
|
|
2774
|
+
return S(() => Object.assign(a, {
|
|
2775
2775
|
AppField: s,
|
|
2776
2776
|
AppForm: o,
|
|
2777
2777
|
...r
|
|
@@ -2791,7 +2791,7 @@ function $o({ fieldComponents: e, fieldContext: t, formContext: n, formComponent
|
|
|
2791
2791
|
}
|
|
2792
2792
|
function o({ render: e, props: t, defaultValues: n }) {
|
|
2793
2793
|
return function(i) {
|
|
2794
|
-
let a =
|
|
2794
|
+
let a = Yo(S(() => ({
|
|
2795
2795
|
form: i.form,
|
|
2796
2796
|
fields: i.fields,
|
|
2797
2797
|
defaultValues: n,
|
|
@@ -2805,10 +2805,10 @@ function $o({ fieldComponents: e, fieldContext: t, formContext: n, formComponent
|
|
|
2805
2805
|
};
|
|
2806
2806
|
}
|
|
2807
2807
|
function s(e) {
|
|
2808
|
-
return
|
|
2808
|
+
return Qo();
|
|
2809
2809
|
}
|
|
2810
2810
|
function c(i) {
|
|
2811
|
-
return
|
|
2811
|
+
return es({
|
|
2812
2812
|
fieldContext: t,
|
|
2813
2813
|
formContext: n,
|
|
2814
2814
|
fieldComponents: {
|
|
@@ -2831,53 +2831,53 @@ function $o({ fieldComponents: e, fieldContext: t, formContext: n, formComponent
|
|
|
2831
2831
|
}
|
|
2832
2832
|
//#endregion
|
|
2833
2833
|
//#region src/components/ui/form.tsx
|
|
2834
|
-
var { fieldContext:
|
|
2835
|
-
function
|
|
2836
|
-
return /* @__PURE__ */
|
|
2834
|
+
var { fieldContext: ts, formContext: ns, useFieldContext: $, useFormContext: rs } = $o();
|
|
2835
|
+
function is({ className: e, ...t }) {
|
|
2836
|
+
return /* @__PURE__ */ w("div", {
|
|
2837
2837
|
"data-slot": "form-item",
|
|
2838
|
-
className:
|
|
2838
|
+
className: r("flex flex-col gap-1.5", e),
|
|
2839
2839
|
...t
|
|
2840
2840
|
});
|
|
2841
2841
|
}
|
|
2842
|
-
function
|
|
2843
|
-
let n = $(),
|
|
2844
|
-
return /* @__PURE__ */
|
|
2842
|
+
function as({ className: e, ...t }) {
|
|
2843
|
+
let n = $(), i = Z(n.store, (e) => e.meta.errors);
|
|
2844
|
+
return /* @__PURE__ */ w(x, {
|
|
2845
2845
|
"data-slot": "form-label",
|
|
2846
2846
|
htmlFor: String(n.name),
|
|
2847
|
-
className:
|
|
2847
|
+
className: r(i.length > 0 && "text-destructive", e),
|
|
2848
2848
|
...t
|
|
2849
2849
|
});
|
|
2850
2850
|
}
|
|
2851
|
-
function
|
|
2852
|
-
let n = $(),
|
|
2853
|
-
return /* @__PURE__ */
|
|
2851
|
+
function os({ className: e, ...t }) {
|
|
2852
|
+
let n = $(), i = Z(n.store, (e) => e.meta.errors), a = String(n.name);
|
|
2853
|
+
return /* @__PURE__ */ w("div", {
|
|
2854
2854
|
"data-slot": "form-control",
|
|
2855
|
-
id:
|
|
2856
|
-
"aria-describedby": `${
|
|
2857
|
-
"aria-invalid":
|
|
2858
|
-
className:
|
|
2855
|
+
id: a,
|
|
2856
|
+
"aria-describedby": `${a}-description ${a}-message`,
|
|
2857
|
+
"aria-invalid": i.length > 0 || void 0,
|
|
2858
|
+
className: r("w-full", e),
|
|
2859
2859
|
...t
|
|
2860
2860
|
});
|
|
2861
2861
|
}
|
|
2862
|
-
function
|
|
2862
|
+
function ss({ className: e, ...t }) {
|
|
2863
2863
|
let n = $();
|
|
2864
|
-
return /* @__PURE__ */
|
|
2864
|
+
return /* @__PURE__ */ w("p", {
|
|
2865
2865
|
"data-slot": "form-description",
|
|
2866
2866
|
id: `${String(n.name)}-description`,
|
|
2867
|
-
className:
|
|
2867
|
+
className: r("text-sm text-muted-foreground", e),
|
|
2868
2868
|
...t
|
|
2869
2869
|
});
|
|
2870
2870
|
}
|
|
2871
|
-
function
|
|
2872
|
-
let
|
|
2873
|
-
return
|
|
2871
|
+
function cs({ className: e, children: t, ...n }) {
|
|
2872
|
+
let i = $(), a = Z(i.store, (e) => e.meta.errors), o = t ?? (a.length > 0 ? a[0]?.message ?? String(a[0]) : null);
|
|
2873
|
+
return o ? /* @__PURE__ */ w("p", {
|
|
2874
2874
|
"data-slot": "form-message",
|
|
2875
|
-
id: `${String(
|
|
2875
|
+
id: `${String(i.name)}-message`,
|
|
2876
2876
|
role: "alert",
|
|
2877
|
-
className:
|
|
2877
|
+
className: r("text-sm font-normal text-destructive", e),
|
|
2878
2878
|
...n,
|
|
2879
|
-
children:
|
|
2879
|
+
children: o
|
|
2880
2880
|
}) : null;
|
|
2881
2881
|
}
|
|
2882
2882
|
//#endregion
|
|
2883
|
-
export {
|
|
2883
|
+
export { Sr as Accordion, er as AccordionContent, Xn as AccordionItem, yn as AccordionTrigger, Bn as Alert, $r as AlertAction, Tr as AlertDescription, Xe as AlertDialog, Jt as AlertDialogAction, nn as AlertDialogCancel, Ke as AlertDialogContent, ct as AlertDialogDescription, Br as AlertDialogFooter, it as AlertDialogHeader, dn as AlertDialogMedia, sn as AlertDialogOverlay, hn as AlertDialogPortal, Mt as AlertDialogTitle, ve as AlertDialogTrigger, Ur as AlertProvider, rr as AlertTitle, Ir as AspectRatio, za as Autocomplete, Kn as Avatar, oi as Badge, Gr as Breadcrumb, ar as BreadcrumbEllipsis, wn as BreadcrumbItem, Mr as BreadcrumbLink, Xr as BreadcrumbList, Nn as BreadcrumbPage, vr as BreadcrumbSeparator, a as Button, jt as ButtonGroup, _e as ButtonGroupSeparator, Hn as ButtonGroupText, ka as CCombobox, Li as Calendar, Bi as CalendarDayButton, Ge as Card, st as CardAction, zr as CardContent, rt as CardDescription, un as CardFooter, on as CardHeader, mn as CardTitle, ki as Carousel, da as CarouselContent, Vi as CarouselItem, Hi as CarouselNext, Wi as CarouselPrevious, Ea as ChartContainer, Ji as ChartLegend, Ni as ChartLegendContent, Mi as ChartStyle, Ui as ChartTooltip, fa as ChartTooltipContent, tn as Checkbox, Zt as Collapsible, Ye as CollapsibleContent, qt as CollapsibleTrigger, Ki as Combobox, Ai as ComboboxChip, Xi as ComboboxChips, Ii as ComboboxChipsInput, Yi as ComboboxCollection, Zi as ComboboxContent, Fi as ComboboxEmpty, zi as ComboboxField, ya as ComboboxGroup, Ri as ComboboxInput, $i as ComboboxItem, Qi as ComboboxLabel, ea as ComboboxList, Gi as ComboboxSeparator, Oi as ComboboxStatus, oa as ComboboxTrigger, Ca as ComboboxValue, la as Command, ca as CommandDialog, ta as CommandEmpty, Ta as CommandGroup, Oa as CommandInput, ra as CommandItem, Da as CommandList, qi as CommandSeparator, ji as CommandShortcut, Ee as ConfirmationDialogProvider, Le as ContextMenu, Ne as ContextMenuCheckboxItem, Ct as ContextMenuContent, fr as ContextMenuGroup, xe as ContextMenuItem, cr as ContextMenuLabel, ht as ContextMenuPortal, yt as ContextMenuRadioGroup, Dt as ContextMenuRadioItem, Ve as ContextMenuSeparator, $e as ContextMenuShortcut, dt as ContextMenuSub, Ft as ContextMenuSubContent, Ti as ContextMenuSubTrigger, Te as ContextMenuTrigger, n as DEFAULT_OPSFUSE_BRAND_THEME, fe as DateFns, h as Dialog, re as DialogClose, ee as DialogContent, _ as DialogDescription, g as DialogFooter, u as DialogHeader, ce as DialogOverlay, ue as DialogPortal, f as DialogProvider, le as DialogTitle, l as DialogTrigger, pi as DirectionProvider, na as Drawer, _a as DrawerClose, xa as DrawerContent, ia as DrawerDescription, pa as DrawerFooter, wa as DrawerHeader, aa as DrawerOverlay, sa as DrawerPortal, va as DrawerTitle, ma as DrawerTrigger, ke as DropdownMenu, zt as Empty, Gn as Field, Fr as FieldContent, xr as FieldDescription, $n as FieldError, Yn as FieldGroup, vn as FieldLabel, li as FieldLegend, xi as FieldSeparator, Dn as FieldSet, _i as FieldTitle, os as FormControl, ss as FormDescription, is as FormItem, as as FormLabel, cs as FormMessage, _r as HoverCard, ai as HoverCardContent, Ln as HoverCardTrigger, p as Input, oe as InputGroup, te as InputGroupAddon, ie as InputGroupButton, v as InputGroupInput, d as InputGroupText, ne as InputGroupTextarea, Sa as InputOTP, ha as InputOTPGroup, ba as InputOTPSeparator, ua as InputOTPSlot, Nt as Item, ye as ItemActions, Vn as ItemContent, ei as ItemDescription, Er as ItemFooter, Wr as ItemGroup, ir as ItemHeader, Cn as ItemMedia, jr as ItemSeparator, Yr as ItemTitle, cn as Kbd, gn as KbdGroup, x as Label, me as Lucide, kt as Menubar, Ue as MenubarCheckboxItem, tt as MenubarContent, pt as MenubarGroup, Lt as MenubarItem, Di as MenubarLabel, De as MenubarMenu, $t as MenubarPortal, Ze as MenubarRadioGroup, Yt as MenubarRadioItem, rn as MenubarSeparator, qe as MenubarShortcut, lt as MenubarSub, Vr as MenubarSubContent, at as MenubarSubTrigger, fn as MenubarTrigger, Gt as NavigationMenu, ze as NavigationMenuContent, Fe as NavigationMenuIndicator, Tt as NavigationMenuItem, mr as NavigationMenuLink, Ce as NavigationMenuList, ur as NavigationMenuTrigger, _t as NavigationMenuViewport, i as OPSFUSE_BRAND_THEMES, s as OPSFUSE_THEME_SCOPE, Si as OpsfuseRoot, On as OpsfuseThemeProvider, Mn as PageHeader, di as Pagination, Ci as PaginationContent, kn as PaginationEllipsis, yi as PaginationItem, Vt as PaginationLink, je as PaginationNext, hi as PaginationPrevious, bn as PaginationWrapper, si as Popover, zn as PopoverAnchor, qn as PopoverContent, Lr as PopoverDescription, Cr as PopoverHeader, tr as PopoverTitle, Zn as PopoverTrigger, yr as Progress, Zr as RadioGroup, Pn as RadioGroupItem, he as Recharts, In as RecruitSmartly, or as ResizableHandle, Tn as ResizablePanel, Nr as ResizablePanelGroup, We as SSelect, mi as STooltip, Or as ScrollArea, Kr as ScrollBar, en as Select, ot as SelectContent, Rr as SelectField, nt as SelectGroup, ln as SelectItem, an as SelectLabel, pn as SelectScrollDownButton, At as SelectScrollUpButton, ge as SelectSeparator, Un as SelectTrigger, ni as SelectValue, Dr as Separator, Se as Sheet, lr as SheetClose, gt as SheetContent, bt as SheetDescription, Ot as SheetFooter, He as SheetHeader, et as SheetProvider, ft as SheetTitle, It as SheetTrigger, bi as Sidebar, En as SidebarContent, gi as SidebarFooter, Rt as SidebarGroup, Oe as SidebarGroupAction, fi as SidebarGroupContent, Ht as SidebarGroupLabel, Ie as SidebarHeader, Me as SidebarInput, St as SidebarInset, dr as SidebarMenu, be as SidebarMenuAction, sr as SidebarMenuBadge, mt as SidebarMenuButton, vt as SidebarMenuItem, Et as SidebarMenuSkeleton, Be as SidebarMenuSub, Qe as SidebarMenuSubButton, ut as SidebarMenuSubItem, Pt as SidebarProvider, wi as SidebarRail, we as SidebarSeparator, Xt as SidebarTrigger, Kt as Skeleton, ii as SkillReady, Pe as Slider, wt as SliderDialogProvider, de as Spinner, ci as Switch, ri as Table, Fn as TableBody, Wn as TableCaption, Pr as TableCell, br as TableFooter, Qn as TableHead, Jn as TableHeader, _n as TableRow, kr as Tabs, xn as TabsComponent, qr as TabsContent, An as TabsList, hr as TabsTrigger, gr as TalentScan, ae as Textarea, se as Toaster, Hr as Toggle, Qr as ToggleGroup, wr as ToggleGroupItem, Bt as Tooltip, Ae as TooltipContent, Wt as TooltipProvider, Re as TooltipTrigger, jn as Verity, Jr as WorkLog, Rn as badgeVariants, ti as buttonGroupVariants, c as buttonVariants, r as cn, Qt as confirm, es as createFormHook, Sn as dismissAlert, ts as fieldContext, ns as formContext, b as mergeOpsfusePortalSurface, xt as navigationMenuTriggerStyle, t as openDialog, Ei as openSheet, pr as openSlider, e as opsfuseBrandThemeClass, Ar as showAlert, m as toast, nr as toggleVariants, Pi as useCarousel, ga as useComboboxAnchor, Ut as useDirection, $ as useFieldContext, rs as useFormContext, ui as useIsMobile, vi as useLinkComponent, y as useOpsfuseBrandTheme, o as useOpsfusePortalSurface, Je as useSidebar };
|