opsfuse-ui 0.1.0

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.
Files changed (209) hide show
  1. package/.claude/settings.local.json +8 -0
  2. package/.claude/skills/brief-to-tasks/SKILL.md +74 -0
  3. package/.claude/skills/design-brief/SKILL.md +120 -0
  4. package/.claude/skills/design-flow/SKILL.md +124 -0
  5. package/.claude/skills/design-review/SKILL.md +249 -0
  6. package/.claude/skills/design-tokens/SKILL.md +198 -0
  7. package/.claude/skills/frontend-design/SKILL.md +144 -0
  8. package/.claude/skills/grill-me/SKILL.md +21 -0
  9. package/.claude/skills/information-architecture/SKILL.md +111 -0
  10. package/.claude/skills/opsfuse-color-theme/SKILL.md +251 -0
  11. package/.claude/skills/opsfuse-components/SKILL.md +1439 -0
  12. package/.claude/skills/opsfuse-setup/SKILL.md +548 -0
  13. package/.claude/skills/opsfuse-ui-consistency/SKILL.md +160 -0
  14. package/README.md +356 -0
  15. package/dist/chunk-BdsCSvBP.js +20 -0
  16. package/dist/clsx-D7D_XZ_-.js +16 -0
  17. package/dist/components/logo/LogoMaker.d.ts +43 -0
  18. package/dist/components/logo/LogoMaker.d.ts.map +1 -0
  19. package/dist/components/logo/RecruitSmartly.d.ts +4 -0
  20. package/dist/components/logo/RecruitSmartly.d.ts.map +1 -0
  21. package/dist/components/logo/SkillReady.d.ts +4 -0
  22. package/dist/components/logo/SkillReady.d.ts.map +1 -0
  23. package/dist/components/logo/TalentScan.d.ts +4 -0
  24. package/dist/components/logo/TalentScan.d.ts.map +1 -0
  25. package/dist/components/logo/Verity.d.ts +4 -0
  26. package/dist/components/logo/Verity.d.ts.map +1 -0
  27. package/dist/components/logo/WorkLog.d.ts +4 -0
  28. package/dist/components/logo/WorkLog.d.ts.map +1 -0
  29. package/dist/components/opsfuse-root.d.ts +7 -0
  30. package/dist/components/opsfuse-root.d.ts.map +1 -0
  31. package/dist/components/opsfuse-theme-provider.d.ts +15 -0
  32. package/dist/components/opsfuse-theme-provider.d.ts.map +1 -0
  33. package/dist/components/ui/Header.d.ts +17 -0
  34. package/dist/components/ui/Header.d.ts.map +1 -0
  35. package/dist/components/ui/accordion.d.ts +20 -0
  36. package/dist/components/ui/accordion.d.ts.map +1 -0
  37. package/dist/components/ui/alert-dialog.d.ts +15 -0
  38. package/dist/components/ui/alert-dialog.d.ts.map +1 -0
  39. package/dist/components/ui/alert.d.ts +26 -0
  40. package/dist/components/ui/alert.d.ts.map +1 -0
  41. package/dist/components/ui/aspect-ratio.d.ts +4 -0
  42. package/dist/components/ui/aspect-ratio.d.ts.map +1 -0
  43. package/dist/components/ui/autocomplete.d.ts +24 -0
  44. package/dist/components/ui/autocomplete.d.ts.map +1 -0
  45. package/dist/components/ui/avatar.d.ts +9 -0
  46. package/dist/components/ui/avatar.d.ts.map +1 -0
  47. package/dist/components/ui/badge.d.ts +10 -0
  48. package/dist/components/ui/badge.d.ts.map +1 -0
  49. package/dist/components/ui/breadcrumb.d.ts +12 -0
  50. package/dist/components/ui/breadcrumb.d.ts.map +1 -0
  51. package/dist/components/ui/button-group.d.ts +12 -0
  52. package/dist/components/ui/button-group.d.ts.map +1 -0
  53. package/dist/components/ui/button.d.ts +14 -0
  54. package/dist/components/ui/button.d.ts.map +1 -0
  55. package/dist/components/ui/calendar.d.ts +11 -0
  56. package/dist/components/ui/calendar.d.ts.map +1 -0
  57. package/dist/components/ui/card.d.ts +14 -0
  58. package/dist/components/ui/card.d.ts.map +1 -0
  59. package/dist/components/ui/carousel.d.ts +29 -0
  60. package/dist/components/ui/carousel.d.ts.map +1 -0
  61. package/dist/components/ui/chart.d.ts +45 -0
  62. package/dist/components/ui/chart.d.ts.map +1 -0
  63. package/dist/components/ui/checkbox.d.ts +10 -0
  64. package/dist/components/ui/checkbox.d.ts.map +1 -0
  65. package/dist/components/ui/collapsible.d.ts +6 -0
  66. package/dist/components/ui/collapsible.d.ts.map +1 -0
  67. package/dist/components/ui/combobox.d.ts +40 -0
  68. package/dist/components/ui/combobox.d.ts.map +1 -0
  69. package/dist/components/ui/command.d.ts +19 -0
  70. package/dist/components/ui/command.d.ts.map +1 -0
  71. package/dist/components/ui/context-menu.d.ts +32 -0
  72. package/dist/components/ui/context-menu.d.ts.map +1 -0
  73. package/dist/components/ui/dialog.d.ts +30 -0
  74. package/dist/components/ui/dialog.d.ts.map +1 -0
  75. package/dist/components/ui/direction.d.ts +8 -0
  76. package/dist/components/ui/direction.d.ts.map +1 -0
  77. package/dist/components/ui/drawer.d.ts +14 -0
  78. package/dist/components/ui/drawer.d.ts.map +1 -0
  79. package/dist/components/ui/dropdown-menu.d.ts +30 -0
  80. package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
  81. package/dist/components/ui/empty.d.ts +12 -0
  82. package/dist/components/ui/empty.d.ts.map +1 -0
  83. package/dist/components/ui/field.d.ts +25 -0
  84. package/dist/components/ui/field.d.ts.map +1 -0
  85. package/dist/components/ui/form.d.ts +27 -0
  86. package/dist/components/ui/form.d.ts.map +1 -0
  87. package/dist/components/ui/hover-card.d.ts +7 -0
  88. package/dist/components/ui/hover-card.d.ts.map +1 -0
  89. package/dist/components/ui/input-group.d.ts +18 -0
  90. package/dist/components/ui/input-group.d.ts.map +1 -0
  91. package/dist/components/ui/input-otp.d.ts +12 -0
  92. package/dist/components/ui/input-otp.d.ts.map +1 -0
  93. package/dist/components/ui/input.d.ts +12 -0
  94. package/dist/components/ui/input.d.ts.map +1 -0
  95. package/dist/components/ui/item.d.ts +24 -0
  96. package/dist/components/ui/item.d.ts.map +1 -0
  97. package/dist/components/ui/kbd.d.ts +4 -0
  98. package/dist/components/ui/kbd.d.ts.map +1 -0
  99. package/dist/components/ui/label.d.ts +5 -0
  100. package/dist/components/ui/label.d.ts.map +1 -0
  101. package/dist/components/ui/menubar.d.ts +31 -0
  102. package/dist/components/ui/menubar.d.ts.map +1 -0
  103. package/dist/components/ui/navigation-menu.d.ts +15 -0
  104. package/dist/components/ui/navigation-menu.d.ts.map +1 -0
  105. package/dist/components/ui/pagination.d.ts +15 -0
  106. package/dist/components/ui/pagination.d.ts.map +1 -0
  107. package/dist/components/ui/popover.d.ts +11 -0
  108. package/dist/components/ui/popover.d.ts.map +1 -0
  109. package/dist/components/ui/progress.d.ts +19 -0
  110. package/dist/components/ui/progress.d.ts.map +1 -0
  111. package/dist/components/ui/radio-group.d.ts +11 -0
  112. package/dist/components/ui/radio-group.d.ts.map +1 -0
  113. package/dist/components/ui/resizable.d.ts +8 -0
  114. package/dist/components/ui/resizable.d.ts.map +1 -0
  115. package/dist/components/ui/scroll-area.d.ts +6 -0
  116. package/dist/components/ui/scroll-area.d.ts.map +1 -0
  117. package/dist/components/ui/select.d.ts +27 -0
  118. package/dist/components/ui/select.d.ts.map +1 -0
  119. package/dist/components/ui/separator.d.ts +5 -0
  120. package/dist/components/ui/separator.d.ts.map +1 -0
  121. package/dist/components/ui/shadcn/shadcn-accordion.d.ts +8 -0
  122. package/dist/components/ui/shadcn/shadcn-accordion.d.ts.map +1 -0
  123. package/dist/components/ui/shadcn/shadcn-alert-dialog.d.ts +19 -0
  124. package/dist/components/ui/shadcn/shadcn-alert-dialog.d.ts.map +1 -0
  125. package/dist/components/ui/shadcn/shadcn-avatar.d.ts +12 -0
  126. package/dist/components/ui/shadcn/shadcn-avatar.d.ts.map +1 -0
  127. package/dist/components/ui/shadcn/shadcn-combobox.d.ts +33 -0
  128. package/dist/components/ui/shadcn/shadcn-combobox.d.ts.map +1 -0
  129. package/dist/components/ui/shadcn/shadcn-dropdown-menu.d.ts +30 -0
  130. package/dist/components/ui/shadcn/shadcn-dropdown-menu.d.ts.map +1 -0
  131. package/dist/components/ui/shadcn/shadcn-empty.d.ts +12 -0
  132. package/dist/components/ui/shadcn/shadcn-empty.d.ts.map +1 -0
  133. package/dist/components/ui/shadcn/shadcn-pagination.d.ts +18 -0
  134. package/dist/components/ui/shadcn/shadcn-pagination.d.ts.map +1 -0
  135. package/dist/components/ui/shadcn/shadcn-select.d.ts +24 -0
  136. package/dist/components/ui/shadcn/shadcn-select.d.ts.map +1 -0
  137. package/dist/components/ui/shadcn/shadcn-tabs.d.ts +12 -0
  138. package/dist/components/ui/shadcn/shadcn-tabs.d.ts.map +1 -0
  139. package/dist/components/ui/shadcn/shadcn-tooltip.d.ts +11 -0
  140. package/dist/components/ui/shadcn/shadcn-tooltip.d.ts.map +1 -0
  141. package/dist/components/ui/sheet.d.ts +28 -0
  142. package/dist/components/ui/sheet.d.ts.map +1 -0
  143. package/dist/components/ui/sidebar.d.ts +70 -0
  144. package/dist/components/ui/sidebar.d.ts.map +1 -0
  145. package/dist/components/ui/skeleton.d.ts +3 -0
  146. package/dist/components/ui/skeleton.d.ts.map +1 -0
  147. package/dist/components/ui/slider.d.ts +22 -0
  148. package/dist/components/ui/slider.d.ts.map +1 -0
  149. package/dist/components/ui/sonner.d.ts +5 -0
  150. package/dist/components/ui/sonner.d.ts.map +1 -0
  151. package/dist/components/ui/spinner.d.ts +3 -0
  152. package/dist/components/ui/spinner.d.ts.map +1 -0
  153. package/dist/components/ui/switch.d.ts +12 -0
  154. package/dist/components/ui/switch.d.ts.map +1 -0
  155. package/dist/components/ui/table.d.ts +11 -0
  156. package/dist/components/ui/table.d.ts.map +1 -0
  157. package/dist/components/ui/tabs.d.ts +22 -0
  158. package/dist/components/ui/tabs.d.ts.map +1 -0
  159. package/dist/components/ui/textarea.d.ts +9 -0
  160. package/dist/components/ui/textarea.d.ts.map +1 -0
  161. package/dist/components/ui/toggle-group.d.ts +11 -0
  162. package/dist/components/ui/toggle-group.d.ts.map +1 -0
  163. package/dist/components/ui/toggle.d.ts +10 -0
  164. package/dist/components/ui/toggle.d.ts.map +1 -0
  165. package/dist/components/ui/tooltip.d.ts +15 -0
  166. package/dist/components/ui/tooltip.d.ts.map +1 -0
  167. package/dist/core.d.ts +2 -0
  168. package/dist/core.d.ts.map +1 -0
  169. package/dist/core.js +3 -0
  170. package/dist/es6-D-3xKXBT.js +24045 -0
  171. package/dist/extended.d.ts +2 -0
  172. package/dist/extended.d.ts.map +1 -0
  173. package/dist/extended.js +3 -0
  174. package/dist/hooks/use-mobile.d.ts +2 -0
  175. package/dist/hooks/use-mobile.d.ts.map +1 -0
  176. package/dist/icons.d.ts +2 -0
  177. package/dist/icons.d.ts.map +1 -0
  178. package/dist/icons.js +2 -0
  179. package/dist/index.d.ts +2 -0
  180. package/dist/index.d.ts.map +1 -0
  181. package/dist/index.js +2194 -0
  182. package/dist/input-group-DIfVGMYe.js +5196 -0
  183. package/dist/input-otp-DwLGFwVo.js +11879 -0
  184. package/dist/lib/brand-theme.d.ts +4 -0
  185. package/dist/lib/brand-theme.d.ts.map +1 -0
  186. package/dist/lib/document-dark-mode.d.ts +8 -0
  187. package/dist/lib/document-dark-mode.d.ts.map +1 -0
  188. package/dist/lib/opsfuse-portal-theme.d.ts +21 -0
  189. package/dist/lib/opsfuse-portal-theme.d.ts.map +1 -0
  190. package/dist/lib/theme-scope.d.ts +3 -0
  191. package/dist/lib/theme-scope.d.ts.map +1 -0
  192. package/dist/lib/utils.d.ts +3 -0
  193. package/dist/lib/utils.d.ts.map +1 -0
  194. package/dist/lucide-react-DLVJK_zM.js +38405 -0
  195. package/dist/public-api-core.d.ts +61 -0
  196. package/dist/public-api-core.d.ts.map +1 -0
  197. package/dist/public-api-extended.d.ts +9 -0
  198. package/dist/public-api-extended.d.ts.map +1 -0
  199. package/dist/public-api.d.ts +73 -0
  200. package/dist/public-api.d.ts.map +1 -0
  201. package/dist/recharts.d.ts +2 -0
  202. package/dist/recharts.d.ts.map +1 -0
  203. package/dist/recharts.js +2 -0
  204. package/dist/style.css +3 -0
  205. package/dist/style.layered.css +3 -0
  206. package/dist/toggle-group-D21Ul2kd.js +10171 -0
  207. package/package.json +113 -0
  208. package/scripts/postinstall.mjs +67 -0
  209. package/scripts/unwrap-css-layers.mjs +36 -0
package/dist/index.js ADDED
@@ -0,0 +1,2194 @@
1
+ import { A as e, C as t, D as n, E as r, F as i, I as a, M as o, N as s, O as c, P as l, S as u, Ut as d, _ as f, a as p, b as ee, c as m, d as h, f as g, g as te, h as _, i as v, k as ne, l as re, m as ie, n as ae, o as oe, p as se, r as ce, s as le, t as ue, u as de, v as fe, x as pe, y as me } from "./input-group-DIfVGMYe.js";
2
+ import { gT as he, t as ge } from "./lucide-react-DLVJK_zM.js";
3
+ import { t as _e } from "./es6-D-3xKXBT.js";
4
+ import { $ as ve, $n as ye, $r as be, $t as xe, A as Se, An as Ce, Ar as we, At as Te, B as Ee, Bn as De, Br as Oe, Bt as ke, C as Ae, Cn as je, Cr as Me, Ct as Ne, D as Pe, Dn as Fe, Dr as Ie, Dt as Le, E as Re, En as ze, Er as Be, Et as Ve, F as He, Fn as Ue, Fr as We, Ft as Ge, G as Ke, Gn as qe, Gr as Je, Gt as Ye, H as Xe, Hn as Ze, Hr as Qe, Ht as $e, I as et, In as tt, Ir as nt, It as rt, J as it, Jn as at, Jr as ot, Jt as st, K as ct, Kn as lt, Kr as ut, Kt as dt, L as ft, Ln as pt, Lr as mt, Lt as ht, M as gt, Mn as _t, Mr as vt, Mt as yt, N as bt, Nn as xt, Nr as St, Nt as Ct, O as wt, On as Tt, Or as Et, Ot as Dt, P as Ot, Pn as kt, Pr as At, Pt as jt, Q as Mt, Qn as Nt, Qr as Pt, Qt as Ft, R as It, Rn as Lt, Rr as Rt, Rt as zt, S as Bt, Sn as Vt, Sr as Ht, St as Ut, T as Wt, Tn as Gt, Tr as Kt, Tt as qt, U as Jt, Un as Yt, Ur as Xt, Ut as Zt, V as Qt, Vn as $t, Vr as en, Vt as tn, W as nn, Wn as rn, Wr as an, Wt as on, X as sn, Xn as cn, Xr as ln, Xt as un, Y as dn, Yn as fn, Yr as pn, Yt as mn, Z as hn, Zn as gn, Zr as _n, Zt as vn, _ as yn, _n as bn, _r as xn, _t as Sn, a as Cn, ai as wn, an as Tn, ar as En, at as Dn, b as On, bn as kn, br as An, bt as jn, c as Mn, ci as Nn, cn as Pn, cr as Fn, ct as In, d as Ln, dn as Rn, dr as zn, dt as Bn, ei as Vn, en as Hn, er as Un, et as Wn, f as Gn, fn as Kn, fr as qn, ft as Jn, g as Yn, gn as Xn, gr as Zn, gt as Qn, h as $n, hn as er, hr as tr, ht as nr, i as rr, ii as ir, in as ar, ir as or, it as sr, j as cr, jn as lr, jr as ur, jt as dr, k as fr, kn as pr, kr as mr, kt as hr, l as gr, li as _r, ln as vr, lr as yr, lt as br, m as xr, mn as Sr, mr as Cr, mt as wr, n as Tr, ni as Er, nn as Dr, nr as Or, nt as kr, o as Ar, oi as jr, on as Mr, or as Nr, ot as Pr, p as Fr, pn as Ir, pr as Lr, pt as Rr, q as zr, qn as Br, qr as Vr, qt as Hr, r as Ur, ri as Wr, rn as Gr, rr as Kr, rt as qr, s as Jr, si as Yr, sn as Xr, sr as Zr, st as Qr, t as $r, ti as ei, tn as ti, tr as ni, tt as ri, u as ii, ui as ai, un as oi, ur as si, ut as ci, v as li, vn as ui, vr as di, vt as fi, w as pi, wn as mi, wr as hi, wt as gi, x as _i, xn as vi, xr as yi, xt as bi, y as xi, yn as Si, yr as Ci, yt as wi, z as Ti, zn as Ei, zr as Di, zt as Oi } from "./toggle-group-D21Ul2kd.js";
5
+ import { $ as ki, A as Ai, B as ji, C as Mi, D as Ni, E as Pi, F as Fi, G as Ii, H as Li, I as Ri, J as zi, K as Bi, L as Vi, M as Hi, N as Ui, O as Wi, P as Gi, Q as Ki, R as qi, S as Ji, T as Yi, U as Xi, V as Zi, W as Qi, X as $i, Y as ea, Z as ta, _ as na, a as ra, b as ia, c as aa, d as oa, et as sa, f as ca, g as la, h as ua, i as da, j as fa, k as pa, l as ma, m as ha, n 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-DwLGFwVo.js";
6
+ import * as Aa from "react";
7
+ import { createContext as ja, useCallback as Ma, useContext as Na, useEffect as Pa, useLayoutEffect as Fa, useMemo as y, useRef as Ia, useState as b } from "react";
8
+ import { useSyncExternalStoreWithSelector as La } from "use-sync-external-store/shim/with-selector";
9
+ import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
10
+ //#region src/components/ui/autocomplete.tsx
11
+ function Ra({ items: e, placeholder: t = "Select...", placeholderIcon: n, emptyMessage: r = "No items found.", disabled: i = !1, triggerWidth: a = "w-64", label: o, multiple: s, ...c }) {
12
+ let u = Ca();
13
+ return /* @__PURE__ */ C("div", {
14
+ className: "flex flex-col gap-2",
15
+ children: [o && /* @__PURE__ */ S(re, { children: o }), /* @__PURE__ */ C(ka, {
16
+ items: e,
17
+ multiple: s,
18
+ disabled: i,
19
+ ...c,
20
+ children: [s ? /* @__PURE__ */ C(Zi, {
21
+ ref: u,
22
+ className: a,
23
+ children: [n ? /* @__PURE__ */ S("span", {
24
+ "data-icon": "inline-start",
25
+ className: "contents text-muted-foreground [&>svg:not([class*='size-'])]:size-4",
26
+ children: n
27
+ }) : null, /* @__PURE__ */ S(sa, { children: (e) => {
28
+ let n = e ?? [];
29
+ return /* @__PURE__ */ C(Aa.Fragment, { children: [n.map((e) => /* @__PURE__ */ S(ji, { children: e.label }, e.value)), /* @__PURE__ */ S(Li, {
30
+ placeholder: t,
31
+ disabled: i
32
+ })] });
33
+ } })]
34
+ }) : /* @__PURE__ */ S(ki, { render: /* @__PURE__ */ C(l, {
35
+ variant: "outline",
36
+ className: d(a, "justify-between font-normal"),
37
+ children: [/* @__PURE__ */ C("span", {
38
+ className: "flex min-w-0 items-center gap-2",
39
+ children: [n ? /* @__PURE__ */ S("span", {
40
+ "data-icon": "inline-start",
41
+ className: "contents text-muted-foreground [&>svg:not([class*='size-'])]:size-4",
42
+ children: n
43
+ }) : null, /* @__PURE__ */ S(sa, { placeholder: t })]
44
+ }), /* @__PURE__ */ S(he, { className: "ml-2 size-4 shrink-0 text-muted-foreground" })]
45
+ }) }), /* @__PURE__ */ C(Qi, {
46
+ anchor: s ? u : void 0,
47
+ children: [
48
+ /* @__PURE__ */ S(zi, {
49
+ showTrigger: !1,
50
+ placeholder: "Search"
51
+ }),
52
+ /* @__PURE__ */ S(Ii, { children: r }),
53
+ /* @__PURE__ */ S(ta, { children: (e) => /* @__PURE__ */ S(ea, {
54
+ value: e,
55
+ children: e.label
56
+ }, e.value) })
57
+ ]
58
+ })]
59
+ })]
60
+ });
61
+ }
62
+ //#endregion
63
+ //#region node_modules/@tanstack/store/dist/esm/alien.js
64
+ var w = /* @__PURE__ */ ((e) => (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))(w || {});
65
+ /* @__NO_SIDE_EFFECTS__ */
66
+ function za({ update: e, notify: t, unwatched: n }) {
67
+ return {
68
+ link: r,
69
+ unlink: i,
70
+ propagate: a,
71
+ checkDirty: o,
72
+ shallowPropagate: s
73
+ };
74
+ function r(e, t, n) {
75
+ let r = t.depsTail;
76
+ if (r !== void 0 && r.dep === e) return;
77
+ let i = r === void 0 ? t.deps : r.nextDep;
78
+ if (i !== void 0 && i.dep === e) {
79
+ i.version = n, t.depsTail = i;
80
+ return;
81
+ }
82
+ let a = e.subsTail;
83
+ if (a !== void 0 && a.version === n && a.sub === t) return;
84
+ let o = t.depsTail = e.subsTail = {
85
+ version: n,
86
+ dep: e,
87
+ sub: t,
88
+ prevDep: r,
89
+ nextDep: i,
90
+ prevSub: a,
91
+ nextSub: void 0
92
+ };
93
+ i !== void 0 && (i.prevDep = o), r === void 0 ? t.deps = o : r.nextDep = o, a === void 0 ? e.subs = o : a.nextSub = o;
94
+ }
95
+ function i(e, t = e.sub) {
96
+ let r = e.dep, i = e.prevDep, a = e.nextDep, o = e.nextSub, s = e.prevSub;
97
+ return a === void 0 ? t.depsTail = i : a.prevDep = i, i === void 0 ? t.deps = a : i.nextDep = a, o === void 0 ? r.subsTail = s : o.prevSub = s, s === void 0 ? (r.subs = o) === void 0 && n(r) : s.nextSub = o, a;
98
+ }
99
+ function a(e) {
100
+ let n = e.nextSub, r;
101
+ top: do {
102
+ let i = e.sub, a = i.flags;
103
+ if (a & 60 ? a & 12 ? a & 4 ? !(a & 48) && c(e, i) ? (i.flags = a | 40, a &= 1) : a = 0 : i.flags = a & -9 | 32 : a = 0 : i.flags = a | 32, a & 2 && t(i), a & 1) {
104
+ let t = i.subs;
105
+ if (t !== void 0) {
106
+ let i = (e = t).nextSub;
107
+ i !== void 0 && (r = {
108
+ value: n,
109
+ prev: r
110
+ }, n = i);
111
+ continue;
112
+ }
113
+ }
114
+ if ((e = n) !== void 0) {
115
+ n = e.nextSub;
116
+ continue;
117
+ }
118
+ for (; r !== void 0;) if (e = r.value, r = r.prev, e !== void 0) {
119
+ n = e.nextSub;
120
+ continue top;
121
+ }
122
+ break;
123
+ } while (!0);
124
+ }
125
+ function o(t, n) {
126
+ let r, i = 0, a = !1;
127
+ top: do {
128
+ let o = t.dep, c = o.flags;
129
+ if (n.flags & 16) a = !0;
130
+ else if ((c & 17) == 17) {
131
+ if (e(o)) {
132
+ let e = o.subs;
133
+ e.nextSub !== void 0 && s(e), a = !0;
134
+ }
135
+ } else if ((c & 33) == 33) {
136
+ (t.nextSub !== void 0 || t.prevSub !== void 0) && (r = {
137
+ value: t,
138
+ prev: r
139
+ }), t = o.deps, n = o, ++i;
140
+ continue;
141
+ }
142
+ if (!a) {
143
+ let e = t.nextDep;
144
+ if (e !== void 0) {
145
+ t = e;
146
+ continue;
147
+ }
148
+ }
149
+ for (; i--;) {
150
+ let i = n.subs, o = i.nextSub !== void 0;
151
+ if (o ? (t = r.value, r = r.prev) : t = i, a) {
152
+ if (e(n)) {
153
+ o && s(i), n = t.sub;
154
+ continue;
155
+ }
156
+ a = !1;
157
+ } else n.flags &= -33;
158
+ n = t.sub;
159
+ let c = t.nextDep;
160
+ if (c !== void 0) {
161
+ t = c;
162
+ continue top;
163
+ }
164
+ }
165
+ return a;
166
+ } while (!0);
167
+ }
168
+ function s(e) {
169
+ do {
170
+ let n = e.sub, r = n.flags;
171
+ (r & 48) == 32 && (n.flags = r | 16, (r & 6) == 2 && t(n));
172
+ } while ((e = e.nextSub) !== void 0);
173
+ }
174
+ function c(e, t) {
175
+ let n = t.depsTail;
176
+ for (; n !== void 0;) {
177
+ if (n === e) return !0;
178
+ n = n.prevDep;
179
+ }
180
+ return !1;
181
+ }
182
+ }
183
+ //#endregion
184
+ //#region node_modules/@tanstack/store/dist/esm/atom.js
185
+ function Ba(e, t, n) {
186
+ let r = typeof e == "object", i = r ? e : void 0;
187
+ return {
188
+ next: (r ? e.next : e)?.bind(i),
189
+ error: (r ? e.error : t)?.bind(i),
190
+ complete: (r ? e.complete : n)?.bind(i)
191
+ };
192
+ }
193
+ var Va = [], T = 0, { link: Ha, unlink: Ua, propagate: Wa, checkDirty: Ga, shallowPropagate: Ka } = /* @__PURE__ */ za({
194
+ update(e) {
195
+ return e._update();
196
+ },
197
+ notify(e) {
198
+ Va[qa++] = e, e.flags &= ~w.Watching;
199
+ },
200
+ unwatched(e) {
201
+ e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = w.Mutable | w.Dirty, k(e));
202
+ }
203
+ }), E = 0, qa = 0, D, Ja = 0;
204
+ function O(e) {
205
+ try {
206
+ ++Ja, e();
207
+ } finally {
208
+ --Ja || Ya();
209
+ }
210
+ }
211
+ function k(e) {
212
+ let t = e.depsTail, n = t === void 0 ? e.deps : t.nextDep;
213
+ for (; n !== void 0;) n = Ua(n, e);
214
+ }
215
+ function Ya() {
216
+ if (!(Ja > 0)) {
217
+ for (; E < qa;) {
218
+ let e = Va[E];
219
+ Va[E++] = void 0, e.notify();
220
+ }
221
+ E = 0, qa = 0;
222
+ }
223
+ }
224
+ function Xa(e, t) {
225
+ let n = typeof e == "function", r = e, i = {
226
+ _snapshot: n ? void 0 : e,
227
+ subs: void 0,
228
+ subsTail: void 0,
229
+ deps: void 0,
230
+ depsTail: void 0,
231
+ flags: n ? w.None : w.Mutable,
232
+ get() {
233
+ return D !== void 0 && Ha(i, D, T), i._snapshot;
234
+ },
235
+ subscribe(e) {
236
+ let t = Ba(e), n = { current: !1 }, r = Za(() => {
237
+ i.get(), n.current ? t.next?.(i._snapshot) : n.current = !0;
238
+ });
239
+ return { unsubscribe: () => {
240
+ r.stop();
241
+ } };
242
+ },
243
+ _update(e) {
244
+ let a = D, o = t?.compare ?? Object.is;
245
+ if (n) D = i, ++T, i.depsTail = void 0;
246
+ else if (e === void 0) return !1;
247
+ n && (i.flags = w.Mutable | w.RecursedCheck);
248
+ try {
249
+ let t = i._snapshot, a = typeof e == "function" ? e(t) : e === void 0 && n ? r(t) : e;
250
+ return t === void 0 || !o(t, a) ? (i._snapshot = a, !0) : !1;
251
+ } finally {
252
+ D = a, n && (i.flags &= ~w.RecursedCheck), k(i);
253
+ }
254
+ }
255
+ };
256
+ return n ? (i.flags = w.Mutable | w.Dirty, i.get = function() {
257
+ let e = i.flags;
258
+ if (e & w.Dirty || e & w.Pending && Ga(i.deps, i)) {
259
+ if (i._update()) {
260
+ let e = i.subs;
261
+ e !== void 0 && Ka(e);
262
+ }
263
+ } else e & w.Pending && (i.flags = e & ~w.Pending);
264
+ return D !== void 0 && Ha(i, D, T), i._snapshot;
265
+ }) : i.set = function(e) {
266
+ if (i._update(e)) {
267
+ let e = i.subs;
268
+ e !== void 0 && (Wa(e), Ka(e), Ya());
269
+ }
270
+ }, i;
271
+ }
272
+ function Za(e) {
273
+ let t = () => {
274
+ let t = D;
275
+ D = n, ++T, n.depsTail = void 0, n.flags = w.Watching | w.RecursedCheck;
276
+ try {
277
+ return e();
278
+ } finally {
279
+ D = t, n.flags &= ~w.RecursedCheck, k(n);
280
+ }
281
+ }, n = {
282
+ deps: void 0,
283
+ depsTail: void 0,
284
+ subs: void 0,
285
+ subsTail: void 0,
286
+ flags: w.Watching | w.RecursedCheck,
287
+ notify() {
288
+ let e = this.flags;
289
+ e & w.Dirty || e & w.Pending && Ga(this.deps, this) ? t() : this.flags = w.Watching;
290
+ },
291
+ stop() {
292
+ this.flags = w.None, this.depsTail = void 0, k(this);
293
+ }
294
+ };
295
+ return t(), n;
296
+ }
297
+ //#endregion
298
+ //#region node_modules/@tanstack/store/dist/esm/store.js
299
+ var Qa = class {
300
+ constructor(e) {
301
+ this.atom = Xa(e);
302
+ }
303
+ setState(e) {
304
+ this.atom.set(e);
305
+ }
306
+ get state() {
307
+ return this.atom.get();
308
+ }
309
+ get() {
310
+ return this.state;
311
+ }
312
+ subscribe(e) {
313
+ return this.atom.subscribe(Ba(e));
314
+ }
315
+ }, $a = class {
316
+ constructor(e) {
317
+ this.atom = Xa(e);
318
+ }
319
+ get state() {
320
+ return this.atom.get();
321
+ }
322
+ get() {
323
+ return this.state;
324
+ }
325
+ subscribe(e) {
326
+ return this.atom.subscribe(Ba(e));
327
+ }
328
+ };
329
+ function A(e) {
330
+ return typeof e == "function" ? new $a(e) : new Qa(e);
331
+ }
332
+ //#endregion
333
+ //#region node_modules/@tanstack/pacer-lite/dist/lite-throttler.js
334
+ var eo = class {
335
+ constructor(e, t) {
336
+ this.fn = e, this.options = t, this.lastExecutionTime = 0, this.isPending = !1, this.maybeExecute = (...e) => {
337
+ let t = Date.now() - this.lastExecutionTime;
338
+ if (this.options.leading && t >= this.options.wait) this.execute(...e);
339
+ else if (this.lastArgs = e, !this.timeoutId && this.options.trailing) {
340
+ let e = this.options.wait - t;
341
+ this.isPending = !0, this.timeoutId = setTimeout(() => {
342
+ this.lastArgs !== void 0 && this.execute(...this.lastArgs);
343
+ }, e);
344
+ }
345
+ }, this.execute = (...e) => {
346
+ this.fn(...e), this.options.onExecute?.(e, this), this.lastExecutionTime = Date.now(), this.clearTimeout(), this.lastArgs = void 0, this.isPending = !1;
347
+ }, this.flush = () => {
348
+ this.isPending && this.lastArgs && this.execute(...this.lastArgs);
349
+ }, this.cancel = () => {
350
+ this.clearTimeout(), this.lastArgs = void 0, this.isPending = !1;
351
+ }, this.clearTimeout = () => {
352
+ this.timeoutId &&= (clearTimeout(this.timeoutId), void 0);
353
+ }, this.options.leading === void 0 && this.options.trailing === void 0 && (this.options.leading = !0, this.options.trailing = !0);
354
+ }
355
+ };
356
+ function to(e, t) {
357
+ return new eo(e, t).maybeExecute;
358
+ }
359
+ //#endregion
360
+ //#region node_modules/@tanstack/devtools-event-client/dist/esm/plugin.js
361
+ var no = class {
362
+ #e = !0;
363
+ #t;
364
+ #n;
365
+ #r;
366
+ #i;
367
+ #a;
368
+ #o;
369
+ #s;
370
+ #c = 0;
371
+ #l = 5;
372
+ #u = !1;
373
+ #d = !1;
374
+ #f = null;
375
+ #p = () => {
376
+ this.debugLog("Connected to event bus"), this.#a = !0, this.#u = !1, this.debugLog("Emitting queued events", this.#i), this.#i.forEach((e) => this.emitEventToBus(e)), this.#i = [], this.stopConnectLoop(), this.#n().removeEventListener("tanstack-connect-success", this.#p);
377
+ };
378
+ #m = () => {
379
+ if (this.#c < this.#l) {
380
+ this.#c++, this.dispatchCustomEvent("tanstack-connect", {});
381
+ return;
382
+ }
383
+ this.#n().removeEventListener("tanstack-connect", this.#m), this.#d = !0, this.debugLog("Max retries reached, giving up on connection"), this.stopConnectLoop();
384
+ };
385
+ #h = () => {
386
+ this.#u || (this.#u = !0, this.#n().addEventListener("tanstack-connect-success", this.#p), this.#m());
387
+ };
388
+ constructor({ pluginId: e, debug: t = !1, enabled: n = !0, reconnectEveryMs: r = 300 }) {
389
+ this.#t = e, this.#e = n, this.#n = this.getGlobalTarget, this.#r = t, this.debugLog(" Initializing event subscription for plugin", this.#t), this.#i = [], this.#a = !1, this.#d = !1, this.#o = null, this.#s = r;
390
+ }
391
+ startConnectLoop() {
392
+ this.#o !== null || this.#a || (this.debugLog(`Starting connect loop (every ${this.#s}ms)`), this.#o = setInterval(this.#m, this.#s));
393
+ }
394
+ stopConnectLoop() {
395
+ this.#u = !1, this.#o !== null && (clearInterval(this.#o), this.#o = null, this.#i = [], this.debugLog("Stopped connect loop"));
396
+ }
397
+ debugLog(...e) {
398
+ this.#r && console.log(`🌴 [tanstack-devtools:${this.#t}-plugin]`, ...e);
399
+ }
400
+ getGlobalTarget() {
401
+ if (typeof globalThis < "u" && globalThis.__TANSTACK_EVENT_TARGET__) return this.debugLog("Using global event target"), globalThis.__TANSTACK_EVENT_TARGET__;
402
+ if (typeof window < "u" && window.addEventListener !== void 0) return this.debugLog("Using window as event target"), window;
403
+ let e = typeof EventTarget < "u" ? new EventTarget() : void 0;
404
+ return e === void 0 || e.addEventListener === void 0 ? (this.debugLog("No event mechanism available, running in non-web environment"), {
405
+ addEventListener: () => {},
406
+ removeEventListener: () => {},
407
+ dispatchEvent: () => !1
408
+ }) : (this.debugLog("Using new EventTarget as fallback"), e);
409
+ }
410
+ getPluginId() {
411
+ return this.#t;
412
+ }
413
+ dispatchCustomEventShim(e, t) {
414
+ try {
415
+ let n = new Event(e, { detail: t });
416
+ this.#n().dispatchEvent(n);
417
+ } catch {
418
+ this.debugLog("Failed to dispatch shim event");
419
+ }
420
+ }
421
+ dispatchCustomEvent(e, t) {
422
+ try {
423
+ this.#n().dispatchEvent(new CustomEvent(e, { detail: t }));
424
+ } catch {
425
+ this.dispatchCustomEventShim(e, t);
426
+ }
427
+ }
428
+ emitEventToBus(e) {
429
+ this.debugLog("Emitting event to client bus", e), this.dispatchCustomEvent("tanstack-dispatch-event", e);
430
+ }
431
+ createEventPayload(e, t) {
432
+ return {
433
+ type: `${this.#t}:${e}`,
434
+ payload: t,
435
+ pluginId: this.#t
436
+ };
437
+ }
438
+ emit(e, t) {
439
+ if (!this.#e) {
440
+ this.debugLog("Event bus client is disabled, not emitting event", e, t);
441
+ return;
442
+ }
443
+ if (this.#f && (this.debugLog("Emitting event to internal event target", e, t), this.#f.dispatchEvent(new CustomEvent(`${this.#t}:${e}`, { detail: this.createEventPayload(e, t) }))), this.#d) {
444
+ this.debugLog("Previously failed to connect, not emitting to bus");
445
+ return;
446
+ }
447
+ if (!this.#a) {
448
+ this.debugLog("Bus not available, will be pushed as soon as connected"), this.#i.push(this.createEventPayload(e, t)), typeof CustomEvent < "u" && !this.#u && (this.#h(), this.startConnectLoop());
449
+ return;
450
+ }
451
+ return this.emitEventToBus(this.createEventPayload(e, t));
452
+ }
453
+ on(e, t, n) {
454
+ let r = n?.withEventTarget ?? !1, i = `${this.#t}:${e}`;
455
+ if (r && (this.#f ||= new EventTarget(), this.#f.addEventListener(i, (e) => {
456
+ t(e.detail);
457
+ })), !this.#e) return this.debugLog("Event bus client is disabled, not registering event", i), () => {};
458
+ let a = (e) => {
459
+ this.debugLog("Received event from bus", e.detail), t(e.detail);
460
+ };
461
+ return this.#n().addEventListener(i, a), this.debugLog("Registered event to bus", i), () => {
462
+ r && this.#f?.removeEventListener(i, a), this.#n().removeEventListener(i, a);
463
+ };
464
+ }
465
+ onAll(e) {
466
+ if (!this.#e) return this.debugLog("Event bus client is disabled, not registering event"), () => {};
467
+ let t = (t) => {
468
+ let n = t.detail;
469
+ e(n);
470
+ };
471
+ return this.#n().addEventListener("tanstack-devtools-global", t), () => this.#n().removeEventListener("tanstack-devtools-global", t);
472
+ }
473
+ onAllPluginEvents(e) {
474
+ if (!this.#e) return this.debugLog("Event bus client is disabled, not registering event"), () => {};
475
+ let t = (t) => {
476
+ let n = t.detail;
477
+ this.#t && n.pluginId !== this.#t || e(n);
478
+ };
479
+ return this.#n().addEventListener("tanstack-devtools-global", t), () => this.#n().removeEventListener("tanstack-devtools-global", t);
480
+ }
481
+ }, j = new class extends no {
482
+ constructor() {
483
+ super({
484
+ pluginId: "form-devtools",
485
+ reconnectEveryMs: 1e3
486
+ });
487
+ }
488
+ }();
489
+ //#endregion
490
+ //#region node_modules/@tanstack/form-core/dist/esm/utils.js
491
+ function M(e, t) {
492
+ return typeof e == "function" ? e(t) : e;
493
+ }
494
+ function N(e, t) {
495
+ return I(t).reduce((e, t) => {
496
+ if (e === null) return null;
497
+ if (e !== void 0) return e[t];
498
+ }, e);
499
+ }
500
+ function P(e, t, n) {
501
+ let r = I(t);
502
+ function i(e) {
503
+ if (!r.length) return M(n, e);
504
+ let t = r.shift();
505
+ if (typeof t == "string" || typeof t == "number" && !Array.isArray(e)) return typeof e == "object" ? (e === null && (e = {}), {
506
+ ...e,
507
+ [t]: i(e[t])
508
+ }) : { [t]: i() };
509
+ if (Array.isArray(e) && typeof t == "number") {
510
+ let n = e.slice(0, t);
511
+ return [
512
+ ...n.length ? n : Array(t),
513
+ i(e[t]),
514
+ ...e.slice(t + 1)
515
+ ];
516
+ }
517
+ return [...Array(t), i()];
518
+ }
519
+ return i(e);
520
+ }
521
+ function ro(e, t) {
522
+ let n = I(t);
523
+ function r(e) {
524
+ if (!e) return;
525
+ if (n.length === 1) {
526
+ let t = n[0];
527
+ if (Array.isArray(e) && typeof t == "number") return e.filter((e, n) => n !== t);
528
+ let { [t]: r, ...i } = e;
529
+ return i;
530
+ }
531
+ let t = n.shift();
532
+ if ((typeof t == "string" || typeof t == "number" && !Array.isArray(e)) && typeof e == "object") return {
533
+ ...e,
534
+ [t]: r(e[t])
535
+ };
536
+ if (typeof t == "number" && Array.isArray(e)) {
537
+ if (t >= e.length) return e;
538
+ let n = e.slice(0, t);
539
+ return [
540
+ ...n.length ? n : Array(t),
541
+ r(e[t]),
542
+ ...e.slice(t + 1)
543
+ ];
544
+ }
545
+ throw Error("It seems we have created an infinite loop in deleteBy. ");
546
+ }
547
+ return r(e);
548
+ }
549
+ var io = /^(\d+)$/gm, ao = /\.(\d+)(?=\.)/gm, oo = /^(\d+)\./gm, so = /\.(\d+$)/gm, co = /\.{2,}/gm, lo = "__int__", F = `${lo}$1`;
550
+ function I(e) {
551
+ if (Array.isArray(e)) return [...e];
552
+ if (typeof e != "string") throw Error("Path must be a string.");
553
+ return e.replace(/(^\[)|]/gm, "").replace(/\[/g, ".").replace(io, F).replace(ao, `.${F}.`).replace(oo, `${F}.`).replace(so, `.${F}`).replace(co, ".").split(".").map((e) => {
554
+ if (e.startsWith(lo)) {
555
+ let t = e.substring(7), n = parseInt(t, 10);
556
+ return String(n) === t ? n : t;
557
+ }
558
+ return e;
559
+ });
560
+ }
561
+ function uo(e, t) {
562
+ return e.length === 0 ? t : t.length === 0 ? e : t.startsWith("[") || t.startsWith(".") ? e + t : `${e}.${t}`;
563
+ }
564
+ function fo(e) {
565
+ return !(Array.isArray(e) && e.length === 0);
566
+ }
567
+ function po(e, t) {
568
+ return t.validationLogic({
569
+ form: t.form,
570
+ validators: t.validators,
571
+ event: {
572
+ type: e,
573
+ async: !1
574
+ },
575
+ runValidation: (e) => e.validators.filter(Boolean).map((e) => ({
576
+ cause: e.cause,
577
+ validate: e.fn
578
+ }))
579
+ });
580
+ }
581
+ function mo(e, t) {
582
+ let { asyncDebounceMs: n } = t, { onBlurAsyncDebounceMs: r, onChangeAsyncDebounceMs: i, onDynamicAsyncDebounceMs: a } = t.validators || {}, o = n ?? 0;
583
+ return t.validationLogic({
584
+ form: t.form,
585
+ validators: t.validators,
586
+ event: {
587
+ type: e,
588
+ async: !0
589
+ },
590
+ runValidation: (t) => t.validators.filter(Boolean).map((t) => {
591
+ let n = t?.cause || e, s = o;
592
+ switch (n) {
593
+ case "change":
594
+ s = i ?? o;
595
+ break;
596
+ case "blur":
597
+ s = r ?? o;
598
+ break;
599
+ case "dynamic":
600
+ s = a ?? o;
601
+ break;
602
+ case "submit":
603
+ s = 0;
604
+ break;
605
+ }
606
+ return e === "submit" && (s = 0), {
607
+ cause: n,
608
+ validate: t.fn,
609
+ debounceMs: s
610
+ };
611
+ })
612
+ });
613
+ }
614
+ var L = (e) => !!e && typeof e == "object" && "fields" in e;
615
+ function R(e, t) {
616
+ if (Object.is(e, t)) return !0;
617
+ if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
618
+ if (e instanceof Date && t instanceof Date) return e.getTime() === t.getTime();
619
+ if (e instanceof Map && t instanceof Map) {
620
+ if (e.size !== t.size) return !1;
621
+ for (let [n, r] of e) if (!t.has(n) || !Object.is(r, t.get(n))) return !1;
622
+ return !0;
623
+ }
624
+ if (e instanceof Set && t instanceof Set) {
625
+ if (e.size !== t.size) return !1;
626
+ for (let n of e) if (!t.has(n)) return !1;
627
+ return !0;
628
+ }
629
+ let n = Object.keys(e), r = Object.keys(t);
630
+ if (n.length !== r.length) return !1;
631
+ for (let i of n) if (!r.includes(i) || !R(e[i], t[i])) return !1;
632
+ return !0;
633
+ }
634
+ var ho = ({ newFormValidatorError: e, isPreviousErrorFromFormValidator: t, previousErrorValue: n }) => e ? {
635
+ newErrorValue: e,
636
+ newSource: "form"
637
+ } : t ? {
638
+ newErrorValue: void 0,
639
+ newSource: void 0
640
+ } : n ? {
641
+ newErrorValue: n,
642
+ newSource: "field"
643
+ } : {
644
+ newErrorValue: void 0,
645
+ newSource: void 0
646
+ }, go = ({ formLevelError: e, fieldLevelError: t }) => t ? {
647
+ newErrorValue: t,
648
+ newSource: "field"
649
+ } : e ? {
650
+ newErrorValue: e,
651
+ newSource: "form"
652
+ } : {
653
+ newErrorValue: void 0,
654
+ newSource: void 0
655
+ };
656
+ function z(e, t) {
657
+ return e == null ? t : {
658
+ ...e,
659
+ ...t
660
+ };
661
+ }
662
+ for (var B = 256, V = [], H; B--;) V[B] = (B + 256).toString(16).substring(1);
663
+ function _o() {
664
+ let e = 0, t, n = "";
665
+ if (!H || B + 16 > 256) {
666
+ for (H = Array(256), e = 256; e--;) H[e] = 256 * Math.random() | 0;
667
+ e = 0, B = 0;
668
+ }
669
+ 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 += "-");
670
+ return B++, n;
671
+ }
672
+ var vo = to((e) => j.emit("form-state", {
673
+ id: e.formId,
674
+ state: e.store.state
675
+ }), { wait: 300 });
676
+ function U(e) {
677
+ if (typeof e != "object" || !e) return e;
678
+ if (e instanceof Date) return new Date(e.getTime());
679
+ if (Array.isArray(e)) {
680
+ let t = [];
681
+ for (let n = 0; n < e.length; n++) t[n] = U(e[n]);
682
+ return t;
683
+ }
684
+ if (e instanceof Map) {
685
+ let t = /* @__PURE__ */ new Map();
686
+ return e.forEach((e, n) => {
687
+ t.set(n, U(e));
688
+ }), t;
689
+ }
690
+ if (e instanceof Set) {
691
+ let t = /* @__PURE__ */ new Set();
692
+ return e.forEach((e) => {
693
+ t.add(U(e));
694
+ }), t;
695
+ }
696
+ let t = {};
697
+ for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = U(e[n]));
698
+ return t;
699
+ }
700
+ //#endregion
701
+ //#region node_modules/@tanstack/form-core/dist/esm/ValidationLogic.js
702
+ var W = (e) => {
703
+ if (!e.validators) return e.runValidation({
704
+ validators: [],
705
+ form: e.form
706
+ });
707
+ let t = e.event.async, n = t ? void 0 : {
708
+ fn: e.validators.onMount,
709
+ cause: "mount"
710
+ }, r = {
711
+ fn: t ? e.validators.onChangeAsync : e.validators.onChange,
712
+ cause: "change"
713
+ }, i = {
714
+ fn: t ? e.validators.onBlurAsync : e.validators.onBlur,
715
+ cause: "blur"
716
+ }, a = {
717
+ fn: t ? e.validators.onSubmitAsync : e.validators.onSubmit,
718
+ cause: "submit"
719
+ }, o = t ? void 0 : {
720
+ fn: () => void 0,
721
+ cause: "server"
722
+ };
723
+ switch (e.event.type) {
724
+ case "mount": return e.runValidation({
725
+ validators: [n],
726
+ form: e.form
727
+ });
728
+ case "submit": return e.runValidation({
729
+ validators: [
730
+ r,
731
+ i,
732
+ a,
733
+ o
734
+ ],
735
+ form: e.form
736
+ });
737
+ case "server": return e.runValidation({
738
+ validators: [],
739
+ form: e.form
740
+ });
741
+ case "blur": return e.runValidation({
742
+ validators: [i, o],
743
+ form: e.form
744
+ });
745
+ case "change": return e.runValidation({
746
+ validators: [r, o],
747
+ form: e.form
748
+ });
749
+ default: throw Error(`Unknown validation event type: ${e.event.type}`);
750
+ }
751
+ };
752
+ //#endregion
753
+ //#region node_modules/@tanstack/form-core/dist/esm/standardSchemaValidator.js
754
+ function yo(e, t) {
755
+ let n = /* @__PURE__ */ new Map();
756
+ for (let r of e) {
757
+ let e = r.path ?? [], i = t, a = "";
758
+ for (let t = 0; t < e.length; t++) {
759
+ let n = e[t];
760
+ if (n === void 0) continue;
761
+ let r = typeof n == "object" ? n.key : n, o = Number(r);
762
+ Array.isArray(i) && !Number.isNaN(o) ? a += `[${o}]` : a += (t > 0 ? "." : "") + String(r), i = typeof i == "object" && i ? i[r] : void 0;
763
+ }
764
+ n.set(a, (n.get(a) ?? []).concat(r));
765
+ }
766
+ return Object.fromEntries(n);
767
+ }
768
+ var bo = (e, t) => {
769
+ let n = yo(e, t);
770
+ return {
771
+ form: n,
772
+ fields: n
773
+ };
774
+ }, G = {
775
+ validate({ value: e, validationSource: t }, n) {
776
+ let r = n["~standard"].validate(e);
777
+ if (r instanceof Promise) throw Error("async function passed to sync validator");
778
+ if (r.issues) return t === "field" ? r.issues : bo(r.issues, e);
779
+ },
780
+ async validateAsync({ value: e, validationSource: t }, n) {
781
+ let r = await n["~standard"].validate(e);
782
+ if (r.issues) return t === "field" ? r.issues : bo(r.issues, e);
783
+ }
784
+ }, xo = (e) => !!e && "~standard" in e, K = {
785
+ isValidating: !1,
786
+ isTouched: !1,
787
+ isBlurred: !1,
788
+ isDirty: !1,
789
+ isPristine: !0,
790
+ isValid: !0,
791
+ isDefaultValue: !0,
792
+ errors: [],
793
+ errorMap: {},
794
+ errorSourceMap: {}
795
+ };
796
+ function q(e) {
797
+ function t(t, n, r) {
798
+ let i = o(t, n, "move", r), s = Math.min(n, r), l = Math.max(n, r);
799
+ for (let e = s; e <= l; e++) i.push(a(t, e));
800
+ let u = Object.keys(e.fieldInfo).reduce((r, i) => (i.startsWith(a(t, n)) && r.set(i, e.getFieldMeta(i)), r), /* @__PURE__ */ new Map());
801
+ c(i, n < r ? "up" : "down"), Object.keys(e.fieldInfo).filter((e) => e.startsWith(a(t, r))).forEach((i) => {
802
+ let o = i.replace(a(t, r), a(t, n)), s = u.get(o);
803
+ s && e.setFieldMeta(i, s);
804
+ });
805
+ }
806
+ function n(e, t) {
807
+ c(o(e, t, "remove"), "up");
808
+ }
809
+ function r(t, n, r) {
810
+ o(t, n, "swap", r).forEach((i) => {
811
+ if (!i.toString().startsWith(a(t, n))) return;
812
+ let o = i.toString().replace(a(t, n), a(t, r)), [s, c] = [e.getFieldMeta(i), e.getFieldMeta(o)];
813
+ s && e.setFieldMeta(o, s), c && e.setFieldMeta(i, c);
814
+ });
815
+ }
816
+ function i(t, n) {
817
+ let r = o(t, n, "insert");
818
+ c(r, "down"), r.forEach((r) => {
819
+ r.toString().startsWith(a(t, n)) && e.setFieldMeta(r, l());
820
+ });
821
+ }
822
+ function a(e, t) {
823
+ return `${e}[${t}]`;
824
+ }
825
+ function o(t, n, r, i) {
826
+ let o = [a(t, n)];
827
+ switch (r) {
828
+ case "swap":
829
+ o.push(a(t, i));
830
+ break;
831
+ case "move": {
832
+ let [e, r] = [Math.min(n, i), Math.max(n, i)];
833
+ for (let n = e; n <= r; n++) o.push(a(t, n));
834
+ break;
835
+ }
836
+ default: {
837
+ let r = e.getFieldValue(t), i = Array.isArray(r) ? r.length : 0;
838
+ for (let e = n + 1; e < i; e++) o.push(a(t, e));
839
+ break;
840
+ }
841
+ }
842
+ return Object.keys(e.fieldInfo).filter((e) => o.some((t) => e.startsWith(t)));
843
+ }
844
+ function s(e, t) {
845
+ return e.replace(/\[(\d+)\]/, (e, n) => {
846
+ let r = parseInt(n, 10);
847
+ return `[${t === "up" ? r + 1 : Math.max(0, r - 1)}]`;
848
+ });
849
+ }
850
+ function c(t, n) {
851
+ (n === "up" ? t : [...t].reverse()).forEach((t) => {
852
+ let r = s(t.toString(), n), i = e.getFieldMeta(r);
853
+ i ? e.setFieldMeta(t, i) : e.setFieldMeta(t, l());
854
+ });
855
+ }
856
+ let l = () => K;
857
+ return {
858
+ handleArrayMove: t,
859
+ handleArrayRemove: n,
860
+ handleArraySwap: r,
861
+ handleArrayInsert: i
862
+ };
863
+ }
864
+ //#endregion
865
+ //#region node_modules/@tanstack/form-core/dist/esm/FormApi.js
866
+ function So(e) {
867
+ return {
868
+ values: e.values ?? {},
869
+ errorMap: e.errorMap ?? {},
870
+ fieldMetaBase: e.fieldMetaBase ?? {},
871
+ isSubmitted: e.isSubmitted ?? !1,
872
+ isSubmitting: e.isSubmitting ?? !1,
873
+ isValidating: e.isValidating ?? !1,
874
+ submissionAttempts: e.submissionAttempts ?? 0,
875
+ isSubmitSuccessful: e.isSubmitSuccessful ?? !1,
876
+ validationMetaMap: e.validationMetaMap ?? {
877
+ onChange: void 0,
878
+ onBlur: void 0,
879
+ onSubmit: void 0,
880
+ onMount: void 0,
881
+ onServer: void 0,
882
+ onDynamic: void 0
883
+ }
884
+ };
885
+ }
886
+ var Co = class {
887
+ constructor(e) {
888
+ this.options = {}, this.fieldInfo = {}, this.mount = () => {
889
+ let e = this.store.subscribe(() => {
890
+ vo(this);
891
+ }), t = j.on("request-form-state", (e) => {
892
+ e.payload.id === this._formId && j.emit("form-api", {
893
+ id: this._formId,
894
+ state: this.store.state,
895
+ options: this.options
896
+ });
897
+ }), n = j.on("request-form-reset", (e) => {
898
+ e.payload.id === this._formId && this.reset();
899
+ }), r = j.on("request-form-force-submit", (e) => {
900
+ e.payload.id === this._formId && (this._devtoolsSubmissionOverride = !0, this.handleSubmit(), this._devtoolsSubmissionOverride = !1);
901
+ }), i = () => {
902
+ r(), n(), t(), e.unsubscribe(), j.emit("form-unmounted", { id: this._formId });
903
+ };
904
+ this.options.listeners?.onMount?.({ formApi: this });
905
+ let { onMount: a } = this.options.validators || {};
906
+ return j.emit("form-api", {
907
+ id: this._formId,
908
+ state: this.store.state,
909
+ options: this.options
910
+ }), a && this.validateSync("mount"), i;
911
+ }, this.update = (e) => {
912
+ if (!e) return;
913
+ let t = this.options;
914
+ this.options = e;
915
+ let n = e.defaultValues && !R(e.defaultValues, t.defaultValues) && !this.state.isTouched, r = !R(e.defaultState, t.defaultState) && !this.state.isTouched;
916
+ !n && !r || (O(() => {
917
+ this.baseStore.setState(() => So(Object.assign({}, this.state, r ? e.defaultState : {}, n ? { values: e.defaultValues } : {})));
918
+ }), j.emit("form-api", {
919
+ id: this._formId,
920
+ state: this.store.state,
921
+ options: this.options
922
+ }));
923
+ }, this.reset = (e, t) => {
924
+ let { fieldMeta: n } = this.state, r = this.resetFieldMeta(n);
925
+ e && !t?.keepDefaultValues && (this.options = {
926
+ ...this.options,
927
+ defaultValues: e
928
+ }), this.baseStore.setState(() => So({
929
+ ...this.options.defaultState,
930
+ values: e ?? this.options.defaultValues ?? this.options.defaultState?.values,
931
+ fieldMetaBase: r
932
+ }));
933
+ }, this.validateAllFields = async (e) => {
934
+ let t = [];
935
+ return O(() => {
936
+ Object.values(this.fieldInfo).forEach((n) => {
937
+ if (!n.instance) return;
938
+ let r = n.instance;
939
+ t.push(Promise.resolve().then(() => r.validate(e, { skipFormValidation: !0 }))), n.instance.state.meta.isTouched || n.instance.setMeta((e) => ({
940
+ ...e,
941
+ isTouched: !0
942
+ }));
943
+ });
944
+ }), (await Promise.all(t)).flat();
945
+ }, this.validateArrayFieldsStartingFrom = async (e, t, n) => {
946
+ let r = this.getFieldValue(e), i = Array.isArray(r) ? Math.max(r.length - 1, 0) : null, a = [`${e}[${t}]`];
947
+ for (let n = t + 1; n <= (i ?? 0); n++) a.push(`${e}[${n}]`);
948
+ let o = Object.keys(this.fieldInfo).filter((e) => a.some((t) => e.startsWith(t))), s = [];
949
+ return O(() => {
950
+ o.forEach((e) => {
951
+ s.push(Promise.resolve().then(() => this.validateField(e, n)));
952
+ });
953
+ }), (await Promise.all(s)).flat();
954
+ }, this.validateField = (e, t) => {
955
+ let n = this.fieldInfo[e]?.instance;
956
+ if (!n) {
957
+ let { hasErrored: n } = this.validateSync(t);
958
+ return n && !this.options.asyncAlways ? this.getFieldMeta(e)?.errors ?? [] : this.validateAsync(t).then(() => this.getFieldMeta(e)?.errors ?? []);
959
+ }
960
+ return n.state.meta.isTouched || n.setMeta((e) => ({
961
+ ...e,
962
+ isTouched: !0
963
+ })), n.validate(t);
964
+ }, this.validateSync = (e) => {
965
+ let t = po(e, {
966
+ ...this.options,
967
+ form: this,
968
+ validationLogic: this.options.validationLogic || W
969
+ }), n = !1, r = {};
970
+ return O(() => {
971
+ for (let e of t) {
972
+ if (!e.validate) continue;
973
+ let { formError: t, fieldErrors: i } = J(this.runValidator({
974
+ validate: e.validate,
975
+ value: {
976
+ value: this.state.values,
977
+ formApi: this,
978
+ validationSource: "form"
979
+ },
980
+ type: "validate"
981
+ })), a = Y(e.cause), o = /* @__PURE__ */ new Set([...Object.keys(this.state.fieldMeta), ...Object.keys(i || {})]);
982
+ for (let e of o) {
983
+ if (this.baseStore.state.fieldMetaBase[e] === void 0 && !i?.[e]) continue;
984
+ let { errorMap: t, errorSourceMap: n } = this.getFieldMeta(e) ?? K, o = i?.[e], { newErrorValue: s, newSource: c } = ho({
985
+ newFormValidatorError: o,
986
+ isPreviousErrorFromFormValidator: n?.[a] === "form",
987
+ previousErrorValue: t?.[a]
988
+ });
989
+ c === "form" && (r[e] = {
990
+ ...r[e],
991
+ [a]: o
992
+ }), t?.[a] !== s && this.setFieldMeta(e, (e = K) => ({
993
+ ...e,
994
+ errorMap: {
995
+ ...e.errorMap,
996
+ [a]: s
997
+ },
998
+ errorSourceMap: {
999
+ ...e.errorSourceMap,
1000
+ [a]: c
1001
+ }
1002
+ }));
1003
+ }
1004
+ this.state.errorMap?.[a] !== t && this.baseStore.setState((e) => ({
1005
+ ...e,
1006
+ errorMap: {
1007
+ ...e.errorMap,
1008
+ [a]: t
1009
+ }
1010
+ })), (t || i) && (n = !0);
1011
+ }
1012
+ let i = Y("submit");
1013
+ this.state.errorMap?.[i] && e !== "submit" && !n && this.baseStore.setState((e) => ({
1014
+ ...e,
1015
+ errorMap: {
1016
+ ...e.errorMap,
1017
+ [i]: void 0
1018
+ }
1019
+ }));
1020
+ let a = Y("server");
1021
+ this.state.errorMap?.[a] && e !== "server" && !n && this.baseStore.setState((e) => ({
1022
+ ...e,
1023
+ errorMap: {
1024
+ ...e.errorMap,
1025
+ [a]: void 0
1026
+ }
1027
+ }));
1028
+ }), {
1029
+ hasErrored: n,
1030
+ fieldsErrorMap: r
1031
+ };
1032
+ }, this.validateAsync = async (e) => {
1033
+ let t = mo(e, {
1034
+ ...this.options,
1035
+ form: this,
1036
+ validationLogic: this.options.validationLogic || W
1037
+ });
1038
+ this.state.isFormValidating || this.baseStore.setState((e) => ({
1039
+ ...e,
1040
+ isFormValidating: !0
1041
+ }));
1042
+ let n = [], r;
1043
+ for (let e of t) {
1044
+ if (!e.validate) continue;
1045
+ let t = Y(e.cause);
1046
+ this.state.validationMetaMap[t]?.lastAbortController.abort();
1047
+ let i = new AbortController();
1048
+ this.state.validationMetaMap[t] = { lastAbortController: i }, n.push(new Promise(async (t) => {
1049
+ let n;
1050
+ try {
1051
+ n = await new Promise((t, n) => {
1052
+ setTimeout(async () => {
1053
+ if (i.signal.aborted) return t(void 0);
1054
+ try {
1055
+ t(await this.runValidator({
1056
+ validate: e.validate,
1057
+ value: {
1058
+ value: this.state.values,
1059
+ formApi: this,
1060
+ validationSource: "form",
1061
+ signal: i.signal
1062
+ },
1063
+ type: "validateAsync"
1064
+ }));
1065
+ } catch (e) {
1066
+ n(e);
1067
+ }
1068
+ }, e.debounceMs);
1069
+ });
1070
+ } catch (e) {
1071
+ n = e;
1072
+ }
1073
+ let { formError: a, fieldErrors: o } = J(n);
1074
+ o && (r = r ? {
1075
+ ...r,
1076
+ ...o
1077
+ } : o);
1078
+ let s = Y(e.cause);
1079
+ for (let e of Object.keys(this.state.fieldMeta)) {
1080
+ if (this.baseStore.state.fieldMetaBase[e] === void 0) continue;
1081
+ let t = this.getFieldMeta(e);
1082
+ if (!t) continue;
1083
+ let { errorMap: n, errorSourceMap: i } = t, a = r?.[e], { newErrorValue: o, newSource: c } = ho({
1084
+ newFormValidatorError: a,
1085
+ isPreviousErrorFromFormValidator: i?.[s] === "form",
1086
+ previousErrorValue: n?.[s]
1087
+ });
1088
+ n?.[s] !== o && this.setFieldMeta(e, (e) => ({
1089
+ ...e,
1090
+ errorMap: {
1091
+ ...e.errorMap,
1092
+ [s]: o
1093
+ },
1094
+ errorSourceMap: {
1095
+ ...e.errorSourceMap,
1096
+ [s]: c
1097
+ }
1098
+ }));
1099
+ }
1100
+ this.baseStore.setState((e) => ({
1101
+ ...e,
1102
+ errorMap: {
1103
+ ...e.errorMap,
1104
+ [s]: a
1105
+ }
1106
+ })), t(r ? {
1107
+ fieldErrors: r,
1108
+ errorMapKey: s
1109
+ } : void 0);
1110
+ }));
1111
+ }
1112
+ let i = [], a = {};
1113
+ if (n.length) {
1114
+ i = await Promise.all(n);
1115
+ for (let e of i) if (e?.fieldErrors) {
1116
+ let { errorMapKey: t } = e;
1117
+ for (let [n, r] of Object.entries(e.fieldErrors)) a[n] = {
1118
+ ...a[n] || {},
1119
+ [t]: r
1120
+ };
1121
+ }
1122
+ }
1123
+ return this.baseStore.setState((e) => ({
1124
+ ...e,
1125
+ isFormValidating: !1
1126
+ })), a;
1127
+ }, this.validate = (e) => {
1128
+ let { hasErrored: t, fieldsErrorMap: n } = this.validateSync(e);
1129
+ return t && !this.options.asyncAlways ? n : this.validateAsync(e);
1130
+ }, this._handleSubmit = async (e) => {
1131
+ this.baseStore.setState((e) => ({
1132
+ ...e,
1133
+ isSubmitted: !1,
1134
+ submissionAttempts: e.submissionAttempts + 1,
1135
+ isSubmitSuccessful: !1
1136
+ })), O(() => {
1137
+ Object.values(this.fieldInfo).forEach((e) => {
1138
+ e.instance && (e.instance.state.meta.isTouched || e.instance.setMeta((e) => ({
1139
+ ...e,
1140
+ isTouched: !0
1141
+ })));
1142
+ });
1143
+ });
1144
+ let t = e ?? this.options.onSubmitMeta;
1145
+ if (!this.state.canSubmit && !this._devtoolsSubmissionOverride) {
1146
+ this.options.onSubmitInvalid?.({
1147
+ value: this.state.values,
1148
+ formApi: this,
1149
+ meta: t
1150
+ });
1151
+ return;
1152
+ }
1153
+ this.baseStore.setState((e) => ({
1154
+ ...e,
1155
+ isSubmitting: !0
1156
+ }));
1157
+ let n = () => {
1158
+ this.baseStore.setState((e) => ({
1159
+ ...e,
1160
+ isSubmitting: !1
1161
+ }));
1162
+ };
1163
+ if (await this.validateAllFields("submit"), !this.state.isFieldsValid) {
1164
+ n(), this.options.onSubmitInvalid?.({
1165
+ value: this.state.values,
1166
+ formApi: this,
1167
+ meta: t
1168
+ }), j.emit("form-submission", {
1169
+ id: this._formId,
1170
+ submissionAttempt: this.state.submissionAttempts,
1171
+ successful: !1,
1172
+ stage: "validateAllFields",
1173
+ errors: Object.values(this.state.fieldMeta).map((e) => e.errors).flat()
1174
+ });
1175
+ return;
1176
+ }
1177
+ if (await this.validate("submit"), !this.state.isValid) {
1178
+ n(), this.options.onSubmitInvalid?.({
1179
+ value: this.state.values,
1180
+ formApi: this,
1181
+ meta: t
1182
+ }), j.emit("form-submission", {
1183
+ id: this._formId,
1184
+ submissionAttempt: this.state.submissionAttempts,
1185
+ successful: !1,
1186
+ stage: "validate",
1187
+ errors: this.state.errors
1188
+ });
1189
+ return;
1190
+ }
1191
+ O(() => {
1192
+ Object.values(this.fieldInfo).forEach((e) => {
1193
+ e.instance?.options.listeners?.onSubmit?.({
1194
+ value: e.instance.state.value,
1195
+ fieldApi: e.instance
1196
+ });
1197
+ });
1198
+ }), this.options.listeners?.onSubmit?.({
1199
+ formApi: this,
1200
+ meta: t
1201
+ });
1202
+ try {
1203
+ await this.options.onSubmit?.({
1204
+ value: this.state.values,
1205
+ formApi: this,
1206
+ meta: t
1207
+ }), O(() => {
1208
+ this.baseStore.setState((e) => ({
1209
+ ...e,
1210
+ isSubmitted: !0,
1211
+ isSubmitSuccessful: !0
1212
+ })), j.emit("form-submission", {
1213
+ id: this._formId,
1214
+ submissionAttempt: this.state.submissionAttempts,
1215
+ successful: !0
1216
+ }), n();
1217
+ });
1218
+ } catch (e) {
1219
+ throw this.baseStore.setState((e) => ({
1220
+ ...e,
1221
+ isSubmitSuccessful: !1
1222
+ })), j.emit("form-submission", {
1223
+ id: this._formId,
1224
+ submissionAttempt: this.state.submissionAttempts,
1225
+ successful: !1,
1226
+ stage: "inflight",
1227
+ onError: e
1228
+ }), n(), e;
1229
+ }
1230
+ }, this.getFieldValue = (e) => N(this.state.values, e), this.getFieldMeta = (e) => this.state.fieldMeta[e], this.getFieldInfo = (e) => this.fieldInfo[e] ||= {
1231
+ instance: null,
1232
+ validationMetaMap: {
1233
+ onChange: void 0,
1234
+ onBlur: void 0,
1235
+ onSubmit: void 0,
1236
+ onMount: void 0,
1237
+ onServer: void 0,
1238
+ onDynamic: void 0
1239
+ }
1240
+ }, this.setFieldMeta = (e, t) => {
1241
+ this.baseStore.setState((n) => ({
1242
+ ...n,
1243
+ fieldMetaBase: {
1244
+ ...n.fieldMetaBase,
1245
+ [e]: M(t, n.fieldMetaBase[e])
1246
+ }
1247
+ }));
1248
+ }, this.resetFieldMeta = (e) => Object.keys(e).reduce((e, t) => {
1249
+ let n = t;
1250
+ return e[n] = K, e;
1251
+ }, {}), this.setFieldValue = (e, t, n) => {
1252
+ let r = n?.dontUpdateMeta ?? !1, i = n?.dontRunListeners ?? !1, a = n?.dontValidate ?? !1;
1253
+ O(() => {
1254
+ r || this.setFieldMeta(e, (e) => ({
1255
+ ...e,
1256
+ isTouched: !0,
1257
+ isDirty: !0,
1258
+ errorMap: {
1259
+ ...e?.errorMap,
1260
+ onMount: void 0
1261
+ }
1262
+ })), this.baseStore.setState((n) => ({
1263
+ ...n,
1264
+ values: P(n.values, e, t)
1265
+ }));
1266
+ }), i || this.getFieldInfo(e).instance?.triggerOnChangeListener(), a || this.validateField(e, "change");
1267
+ }, this.deleteField = (e) => {
1268
+ let t = [...Object.keys(this.fieldInfo).filter((t) => {
1269
+ let n = e.toString();
1270
+ return t !== n && t.startsWith(n);
1271
+ }), e];
1272
+ this.baseStore.setState((e) => {
1273
+ let n = { ...e };
1274
+ return t.forEach((e) => {
1275
+ n.values = ro(n.values, e), delete this.fieldInfo[e], delete n.fieldMetaBase[e];
1276
+ }), n;
1277
+ });
1278
+ }, this.pushFieldValue = (e, t, n) => {
1279
+ this.setFieldValue(e, (e) => [...Array.isArray(e) ? e : [], t], n);
1280
+ }, this.insertFieldValue = async (e, t, n, r) => {
1281
+ this.setFieldValue(e, (e) => [
1282
+ ...e.slice(0, t),
1283
+ n,
1284
+ ...e.slice(t)
1285
+ ], z(r, { dontValidate: !0 }));
1286
+ let i = r?.dontValidate ?? !1;
1287
+ i || await this.validateField(e, "change"), q(this).handleArrayInsert(e, t), i || await this.validateArrayFieldsStartingFrom(e, t, "change");
1288
+ }, this.replaceFieldValue = async (e, t, n, r) => {
1289
+ this.setFieldValue(e, (e) => e.map((e, r) => r === t ? n : e), z(r, { dontValidate: !0 })), (r?.dontValidate ?? !1) || (await this.validateField(e, "change"), await this.validateArrayFieldsStartingFrom(e, t, "change"));
1290
+ }, this.removeFieldValue = async (e, t, n) => {
1291
+ let r = this.getFieldValue(e), i = Array.isArray(r) ? Math.max(r.length - 1, 0) : null;
1292
+ if (this.setFieldValue(e, (e) => e.filter((e, n) => n !== t), z(n, { dontValidate: !0 })), q(this).handleArrayRemove(e, t), i !== null) {
1293
+ let t = `${e}[${i}]`;
1294
+ this.deleteField(t);
1295
+ }
1296
+ (n?.dontValidate ?? !1) || (await this.validateField(e, "change"), await this.validateArrayFieldsStartingFrom(e, t, "change"));
1297
+ }, this.swapFieldValues = (e, t, n, r) => {
1298
+ this.setFieldValue(e, (e) => {
1299
+ let r = e[t], i = e[n];
1300
+ return P(P(e, `${t}`, i), `${n}`, r);
1301
+ }, z(r, { dontValidate: !0 })), q(this).handleArraySwap(e, t, n), (r?.dontValidate ?? !1) || (this.validateField(e, "change"), this.validateField(`${e}[${t}]`, "change"), this.validateField(`${e}[${n}]`, "change"));
1302
+ }, this.moveFieldValues = (e, t, n, r) => {
1303
+ this.setFieldValue(e, (e) => {
1304
+ let r = [...e];
1305
+ return r.splice(n, 0, r.splice(t, 1)[0]), r;
1306
+ }, z(r, { dontValidate: !0 })), q(this).handleArrayMove(e, t, n), (r?.dontValidate ?? !1) || (this.validateField(e, "change"), this.validateField(`${e}[${t}]`, "change"), this.validateField(`${e}[${n}]`, "change"));
1307
+ }, this.clearFieldValues = (e, t) => {
1308
+ let n = this.getFieldValue(e), r = Array.isArray(n) ? Math.max(n.length - 1, 0) : null;
1309
+ if (this.setFieldValue(e, [], z(t, { dontValidate: !0 })), r !== null) for (let t = 0; t <= r; t++) {
1310
+ let n = `${e}[${t}]`;
1311
+ this.deleteField(n);
1312
+ }
1313
+ (t?.dontValidate ?? !1) || this.validateField(e, "change");
1314
+ }, this.resetField = (e) => {
1315
+ this.baseStore.setState((t) => ({
1316
+ ...t,
1317
+ fieldMetaBase: {
1318
+ ...t.fieldMetaBase,
1319
+ [e]: K
1320
+ },
1321
+ values: this.options.defaultValues ? P(t.values, e, N(this.options.defaultValues, e)) : t.values
1322
+ }));
1323
+ }, this.setErrorMap = (e) => {
1324
+ O(() => {
1325
+ Object.entries(e).forEach(([e, t]) => {
1326
+ let n = e;
1327
+ if (L(t)) {
1328
+ let { formError: e, fieldErrors: r } = J(t);
1329
+ for (let e of Object.keys(this.fieldInfo)) this.getFieldMeta(e) && this.setFieldMeta(e, (t) => ({
1330
+ ...t,
1331
+ errorMap: {
1332
+ ...t.errorMap,
1333
+ [n]: r?.[e]
1334
+ },
1335
+ errorSourceMap: {
1336
+ ...t.errorSourceMap,
1337
+ [n]: "form"
1338
+ }
1339
+ }));
1340
+ this.baseStore.setState((t) => ({
1341
+ ...t,
1342
+ errorMap: {
1343
+ ...t.errorMap,
1344
+ [n]: e
1345
+ }
1346
+ }));
1347
+ } else this.baseStore.setState((e) => ({
1348
+ ...e,
1349
+ errorMap: {
1350
+ ...e.errorMap,
1351
+ [n]: t
1352
+ }
1353
+ }));
1354
+ });
1355
+ });
1356
+ }, this.getAllErrors = () => ({
1357
+ form: {
1358
+ errors: this.state.errors,
1359
+ errorMap: this.state.errorMap
1360
+ },
1361
+ fields: Object.entries(this.state.fieldMeta).reduce((e, [t, n]) => (Object.keys(n).length && n.errors.length && (e[t] = {
1362
+ errors: n.errors,
1363
+ errorMap: n.errorMap
1364
+ }), e), {})
1365
+ }), this.parseValuesWithSchema = (e) => G.validate({
1366
+ value: this.state.values,
1367
+ validationSource: "form"
1368
+ }, e), this.parseValuesWithSchemaAsync = (e) => G.validateAsync({
1369
+ value: this.state.values,
1370
+ validationSource: "form"
1371
+ }, e), this.timeoutIds = {
1372
+ validations: {},
1373
+ listeners: {},
1374
+ formListeners: {}
1375
+ }, this._formId = e?.formId ?? _o(), this._devtoolsSubmissionOverride = !1;
1376
+ let t = So({
1377
+ ...e?.defaultState,
1378
+ values: e?.defaultValues ?? e?.defaultState?.values
1379
+ });
1380
+ if (e?.transform) {
1381
+ t = e.transform({ state: t }).state;
1382
+ for (let e of Object.keys(t.errorMap)) {
1383
+ let n = t.errorMap[e];
1384
+ if (!(n === void 0 || !L(n))) for (let r of Object.keys(n.fields)) {
1385
+ let i = n.fields[r];
1386
+ if (i === void 0) continue;
1387
+ let a = t.fieldMetaBase[r];
1388
+ t.fieldMetaBase[r] = {
1389
+ isTouched: !1,
1390
+ isValidating: !1,
1391
+ isBlurred: !1,
1392
+ isDirty: !1,
1393
+ ...a ?? {},
1394
+ errorSourceMap: {
1395
+ ...a?.errorSourceMap ?? {},
1396
+ onChange: "form"
1397
+ },
1398
+ errorMap: {
1399
+ ...a?.errorMap ?? {},
1400
+ [e]: i
1401
+ }
1402
+ };
1403
+ }
1404
+ }
1405
+ }
1406
+ this.baseStore = A(t);
1407
+ let n;
1408
+ this.fieldMetaDerived = A((e) => {
1409
+ let t = this.baseStore.get(), r = 0, i = {};
1410
+ for (let a of Object.keys(t.fieldMetaBase)) {
1411
+ let o = t.fieldMetaBase[a], s = n?.fieldMetaBase[a], c = e?.[a], l = N(t.values, a), u = c?.errors;
1412
+ if (!s || o.errorMap !== s.errorMap) {
1413
+ u = Object.values(o.errorMap ?? {}).filter((e) => e !== void 0);
1414
+ let e = this.getFieldInfo(a)?.instance;
1415
+ (!e || !e.options.disableErrorFlat) && (u = u.flat(1));
1416
+ }
1417
+ let d = !fo(u), f = !o.isDirty, p = R(l, N(this.options.defaultValues, a)) || R(l, this.getFieldInfo(a)?.instance?.options.defaultValue);
1418
+ if (c && c.isPristine === f && c.isValid === d && c.isDefaultValue === p && c.errors === u && o === s) {
1419
+ i[a] = c, r++;
1420
+ continue;
1421
+ }
1422
+ i[a] = {
1423
+ ...o,
1424
+ errors: u ?? [],
1425
+ isPristine: f,
1426
+ isValid: d,
1427
+ isDefaultValue: p
1428
+ };
1429
+ }
1430
+ return Object.keys(t.fieldMetaBase).length ? e && r === Object.keys(t.fieldMetaBase).length ? e : (n = this.baseStore.get(), i) : i;
1431
+ });
1432
+ let r;
1433
+ this.store = A((e) => {
1434
+ 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)), ee = !!a, m = e?.errors ?? [];
1435
+ (!r || t.errorMap !== r.errorMap) && (m = Object.values(t.errorMap).reduce((e, t) => t === void 0 ? e : t && L(t) ? (e.push(t.form), e) : (e.push(t), e), []));
1436
+ let h = m.length === 0, g = o && h, te = this.options.canSubmitWhenInvalid ?? !1, _ = t.submissionAttempts === 0 && !s && !p || !ee && !t.isSubmitting && g || te, v = t.errorMap;
1437
+ if (u && (m = m.filter((e) => e !== t.errorMap.onMount), v = Object.assign(v, { onMount: void 0 })), e && r && e.errorMap === v && e.fieldMeta === this.fieldMetaDerived.state && e.errors === m && e.isFieldsValidating === a && e.isFieldsValid === o && e.isFormValid === h && e.isValid === g && e.canSubmit === _ && e.isTouched === s && e.isBlurred === c && e.isPristine === f && e.isDefaultValue === l && e.isDirty === d && R(r, t)) return e;
1438
+ let ne = {
1439
+ ...t,
1440
+ errorMap: v,
1441
+ fieldMeta: this.fieldMetaDerived.state,
1442
+ errors: m,
1443
+ isFieldsValidating: a,
1444
+ isFieldsValid: o,
1445
+ isFormValid: h,
1446
+ isValid: g,
1447
+ canSubmit: _,
1448
+ isTouched: s,
1449
+ isBlurred: c,
1450
+ isPristine: f,
1451
+ isDefaultValue: l,
1452
+ isDirty: d
1453
+ };
1454
+ return r = this.baseStore.get(), ne;
1455
+ }), this.handleSubmit = this.handleSubmit.bind(this), this.update(e || {});
1456
+ }
1457
+ get state() {
1458
+ return this.store.state;
1459
+ }
1460
+ get formId() {
1461
+ return this._formId;
1462
+ }
1463
+ runValidator(e) {
1464
+ return xo(e.validate) ? G[e.type](e.value, e.validate) : e.validate(e.value);
1465
+ }
1466
+ handleSubmit(e) {
1467
+ return this._handleSubmit(e);
1468
+ }
1469
+ };
1470
+ function J(e) {
1471
+ return e ? L(e) ? {
1472
+ formError: J(e.form).formError,
1473
+ fieldErrors: e.fields
1474
+ } : { formError: e } : { formError: void 0 };
1475
+ }
1476
+ function Y(e) {
1477
+ switch (e) {
1478
+ case "submit": return "onSubmit";
1479
+ case "blur": return "onBlur";
1480
+ case "mount": return "onMount";
1481
+ case "server": return "onServer";
1482
+ case "dynamic": return "onDynamic";
1483
+ default: return "onChange";
1484
+ }
1485
+ }
1486
+ //#endregion
1487
+ //#region node_modules/@tanstack/form-core/dist/esm/FieldApi.js
1488
+ var wo = class {
1489
+ constructor(e) {
1490
+ this.options = {}, this.mount = () => {
1491
+ this.options.defaultValue !== void 0 && !this.getMeta().isTouched && this.form.setFieldValue(this.name, this.options.defaultValue, { dontUpdateMeta: !0 });
1492
+ let e = this.getInfo();
1493
+ e.instance = this, this.update(this.options);
1494
+ let { onMount: t } = this.options.validators || {};
1495
+ if (t) {
1496
+ let e = this.runValidator({
1497
+ validate: t,
1498
+ value: {
1499
+ value: this.state.value,
1500
+ fieldApi: this,
1501
+ validationSource: "field"
1502
+ },
1503
+ type: "validate"
1504
+ });
1505
+ e && this.setMeta((t) => ({
1506
+ ...t,
1507
+ errorMap: {
1508
+ ...t?.errorMap,
1509
+ onMount: e
1510
+ },
1511
+ errorSourceMap: {
1512
+ ...t?.errorSourceMap,
1513
+ onMount: "field"
1514
+ }
1515
+ }));
1516
+ }
1517
+ return this.options.listeners?.onMount?.({
1518
+ value: this.state.value,
1519
+ fieldApi: this
1520
+ }), () => {
1521
+ for (let [e, t] of Object.entries(this.timeoutIds.validations)) t && (clearTimeout(t), this.timeoutIds.validations[e] = null);
1522
+ for (let [e, t] of Object.entries(this.timeoutIds.listeners)) t && (clearTimeout(t), this.timeoutIds.listeners[e] = null);
1523
+ for (let [e, t] of Object.entries(this.timeoutIds.formListeners)) t && (clearTimeout(t), this.timeoutIds.formListeners[e] = null);
1524
+ let e = this.form.fieldInfo[this.name];
1525
+ if (e && e.instance === this) {
1526
+ for (let [t, n] of Object.entries(e.validationMetaMap)) n?.lastAbortController.abort(), e.validationMetaMap[t] = void 0;
1527
+ this.form.baseStore.setState((e) => ({
1528
+ ...e,
1529
+ fieldMetaBase: {
1530
+ ...e.fieldMetaBase,
1531
+ [this.name]: {
1532
+ ...K,
1533
+ isTouched: e.fieldMetaBase[this.name]?.isTouched ?? K.isTouched,
1534
+ isBlurred: e.fieldMetaBase[this.name]?.isBlurred ?? K.isBlurred,
1535
+ isDirty: e.fieldMetaBase[this.name]?.isDirty ?? K.isDirty
1536
+ }
1537
+ }
1538
+ })), e.instance = null, this.options.listeners?.onUnmount?.({
1539
+ value: this.state.value,
1540
+ fieldApi: this
1541
+ }), this.form.options.listeners?.onFieldUnmount?.({
1542
+ formApi: this.form,
1543
+ fieldApi: this
1544
+ });
1545
+ }
1546
+ };
1547
+ }, this.update = (e) => {
1548
+ 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, {
1549
+ dontUpdateMeta: !0,
1550
+ dontValidate: !0,
1551
+ dontRunListeners: !0
1552
+ })), this.form.getFieldMeta(this.name) || this.form.setFieldMeta(this.name, this.state.meta);
1553
+ }, this.getValue = () => this.form.getFieldValue(this.name), this.setValue = (e, t) => {
1554
+ this.form.setFieldValue(this.name, e, z(t, {
1555
+ dontRunListeners: !0,
1556
+ dontValidate: !0
1557
+ })), t?.dontRunListeners || this.triggerOnChangeListener(), t?.dontValidate || this.validate("change");
1558
+ }, this.getMeta = () => this.store.state.meta, this.setMeta = (e) => this.form.setFieldMeta(this.name, e), this.getInfo = () => this.form.getFieldInfo(this.name), this.pushValue = (e, t) => {
1559
+ this.form.pushFieldValue(this.name, e, z(t, { dontRunListeners: !0 })), t?.dontRunListeners || this.triggerOnChangeListener();
1560
+ }, this.insertValue = (e, t, n) => {
1561
+ this.form.insertFieldValue(this.name, e, t, z(n, { dontRunListeners: !0 })), n?.dontRunListeners || this.triggerOnChangeListener();
1562
+ }, this.replaceValue = (e, t, n) => {
1563
+ this.form.replaceFieldValue(this.name, e, t, z(n, { dontRunListeners: !0 })), n?.dontRunListeners || this.triggerOnChangeListener();
1564
+ }, this.removeValue = (e, t) => {
1565
+ this.form.removeFieldValue(this.name, e, z(t, { dontRunListeners: !0 })), t?.dontRunListeners || this.triggerOnChangeListener();
1566
+ }, this.swapValues = (e, t, n) => {
1567
+ this.form.swapFieldValues(this.name, e, t, z(n, { dontRunListeners: !0 })), n?.dontRunListeners || this.triggerOnChangeListener();
1568
+ }, this.moveValue = (e, t, n) => {
1569
+ this.form.moveFieldValues(this.name, e, t, z(n, { dontRunListeners: !0 })), n?.dontRunListeners || this.triggerOnChangeListener();
1570
+ }, this.clearValues = (e) => {
1571
+ this.form.clearFieldValues(this.name, z(e, { dontRunListeners: !0 })), e?.dontRunListeners || this.triggerOnChangeListener();
1572
+ }, this.getLinkedFields = (e) => {
1573
+ let t = Object.values(this.form.fieldInfo), n = [];
1574
+ for (let r of t) {
1575
+ if (!r.instance) continue;
1576
+ let { onChangeListenTo: t, onBlurListenTo: i } = r.instance.options.validators || {};
1577
+ e === "change" && t?.includes(this.name) && n.push(r.instance), e === "blur" && i?.includes(this.name) && n.push(r.instance);
1578
+ }
1579
+ return n;
1580
+ }, this.validateSync = (e, t) => {
1581
+ let n = po(e, {
1582
+ ...this.options,
1583
+ form: this.form,
1584
+ validationLogic: this.form.options.validationLogic || W
1585
+ }), r = this.getLinkedFields(e).reduce((t, n) => {
1586
+ let r = po(e, {
1587
+ ...n.options,
1588
+ form: n.form,
1589
+ validationLogic: n.form.options.validationLogic || W
1590
+ });
1591
+ return r.forEach((e) => {
1592
+ e.field = n;
1593
+ }), t.concat(r);
1594
+ }, []), i = !1;
1595
+ O(() => {
1596
+ let e = (e, n) => {
1597
+ let r = X(n.cause), a = n.validate ? To(e.runValidator({
1598
+ validate: n.validate,
1599
+ value: {
1600
+ value: e.store.state.value,
1601
+ validationSource: "field",
1602
+ fieldApi: e
1603
+ },
1604
+ type: "validate"
1605
+ })) : void 0, o = t[r], { newErrorValue: s, newSource: c } = go({
1606
+ formLevelError: o,
1607
+ fieldLevelError: a
1608
+ });
1609
+ e.state.meta.errorMap?.[r] !== s && e.setMeta((e) => ({
1610
+ ...e,
1611
+ errorMap: {
1612
+ ...e.errorMap,
1613
+ [r]: s
1614
+ },
1615
+ errorSourceMap: {
1616
+ ...e.errorSourceMap,
1617
+ [r]: c
1618
+ }
1619
+ })), s && (i = !0);
1620
+ };
1621
+ for (let t of n) e(this, t);
1622
+ for (let t of r) t.validate && e(t.field, t);
1623
+ });
1624
+ let a = X("submit");
1625
+ return this.state.meta.errorMap?.[a] && e !== "submit" && !i && this.setMeta((e) => ({
1626
+ ...e,
1627
+ errorMap: {
1628
+ ...e.errorMap,
1629
+ [a]: void 0
1630
+ },
1631
+ errorSourceMap: {
1632
+ ...e.errorSourceMap,
1633
+ [a]: void 0
1634
+ }
1635
+ })), { hasErrored: i };
1636
+ }, this.validateAsync = async (e, t) => {
1637
+ let n = mo(e, {
1638
+ ...this.options,
1639
+ form: this.form,
1640
+ validationLogic: this.form.options.validationLogic || W
1641
+ }), r = await t, i = this.getLinkedFields(e), a = i.reduce((t, n) => {
1642
+ let r = mo(e, {
1643
+ ...n.options,
1644
+ form: n.form,
1645
+ validationLogic: n.form.options.validationLogic || W
1646
+ });
1647
+ return r.forEach((e) => {
1648
+ e.field = n;
1649
+ }), t.concat(r);
1650
+ }, []), o = [], s = [], c = n.some((e) => e.validate) || a.some((e) => e.validate);
1651
+ if (c) {
1652
+ this.state.meta.isValidating || this.setMeta((e) => ({
1653
+ ...e,
1654
+ isValidating: !0
1655
+ }));
1656
+ for (let e of i) e.setMeta((e) => ({
1657
+ ...e,
1658
+ isValidating: !0
1659
+ }));
1660
+ }
1661
+ let l = (e, t, n) => {
1662
+ let i = X(t.cause), a = e.getInfo();
1663
+ a.validationMetaMap[i]?.lastAbortController.abort();
1664
+ let o = new AbortController();
1665
+ a.validationMetaMap[i] = { lastAbortController: o }, n.push(new Promise(async (n) => {
1666
+ let a;
1667
+ try {
1668
+ a = await new Promise((n, r) => {
1669
+ e.timeoutIds.validations[t.cause] && clearTimeout(e.timeoutIds.validations[t.cause]), e.timeoutIds.validations[t.cause] = setTimeout(async () => {
1670
+ if (o.signal.aborted) return n(void 0);
1671
+ try {
1672
+ n(await this.runValidator({
1673
+ validate: t.validate,
1674
+ value: {
1675
+ value: e.store.state.value,
1676
+ fieldApi: e,
1677
+ signal: o.signal,
1678
+ validationSource: "field"
1679
+ },
1680
+ type: "validateAsync"
1681
+ }));
1682
+ } catch (e) {
1683
+ r(e);
1684
+ }
1685
+ }, t.debounceMs);
1686
+ });
1687
+ } catch (e) {
1688
+ a = e;
1689
+ }
1690
+ if (o.signal.aborted) return n(void 0);
1691
+ let s = To(a), c = r[e.name]?.[i], { newErrorValue: l, newSource: u } = go({
1692
+ formLevelError: c,
1693
+ fieldLevelError: s
1694
+ });
1695
+ if (e.getInfo().instance !== e) return n(void 0);
1696
+ e.setMeta((e) => ({
1697
+ ...e,
1698
+ errorMap: {
1699
+ ...e?.errorMap,
1700
+ [i]: l
1701
+ },
1702
+ errorSourceMap: {
1703
+ ...e.errorSourceMap,
1704
+ [i]: u
1705
+ }
1706
+ })), n(l);
1707
+ }));
1708
+ };
1709
+ for (let e of n) e.validate && l(this, e, o);
1710
+ for (let e of a) e.validate && l(e.field, e, s);
1711
+ let u = [];
1712
+ if ((o.length || s.length) && (u = await Promise.all(o), await Promise.all(s)), c) {
1713
+ this.setMeta((e) => ({
1714
+ ...e,
1715
+ isValidating: !1
1716
+ }));
1717
+ for (let e of i) e.setMeta((e) => ({
1718
+ ...e,
1719
+ isValidating: !1
1720
+ }));
1721
+ }
1722
+ return u.filter(Boolean);
1723
+ }, this.validate = (e, t) => {
1724
+ if (!this.state.meta.isTouched) return [];
1725
+ let { fieldsErrorMap: n } = t?.skipFormValidation ? { fieldsErrorMap: {} } : this.form.validateSync(e), { hasErrored: r } = this.validateSync(e, n[this.name] ?? {});
1726
+ if (r && !this.options.asyncAlways) return this.getInfo().validationMetaMap[X(e)]?.lastAbortController.abort(), this.state.meta.errors;
1727
+ let i = t?.skipFormValidation ? Promise.resolve({}) : this.form.validateAsync(e);
1728
+ return this.validateAsync(e, i);
1729
+ }, this.handleChange = (e) => {
1730
+ this.setValue(e);
1731
+ }, this.handleBlur = () => {
1732
+ this.state.meta.isTouched || this.setMeta((e) => ({
1733
+ ...e,
1734
+ isTouched: !0
1735
+ })), this.state.meta.isBlurred || this.setMeta((e) => ({
1736
+ ...e,
1737
+ isBlurred: !0
1738
+ })), this.validate("blur"), this.triggerOnBlurListener();
1739
+ }, this.setErrorMap = (e) => {
1740
+ this.setMeta((t) => ({
1741
+ ...t,
1742
+ errorMap: {
1743
+ ...t.errorMap,
1744
+ ...e
1745
+ }
1746
+ }));
1747
+ }, this.parseValueWithSchema = (e) => G.validate({
1748
+ value: this.state.value,
1749
+ validationSource: "field"
1750
+ }, e), this.parseValueWithSchemaAsync = (e) => G.validateAsync({
1751
+ value: this.state.value,
1752
+ validationSource: "field"
1753
+ }, e), this.triggerOnChangeListener = () => {
1754
+ let e = this.form.options.listeners?.onChangeDebounceMs;
1755
+ e && e > 0 ? (this.timeoutIds.formListeners.change && clearTimeout(this.timeoutIds.formListeners.change), this.timeoutIds.formListeners.change = setTimeout(() => {
1756
+ this.form.options.listeners?.onChange?.({
1757
+ formApi: this.form,
1758
+ fieldApi: this
1759
+ });
1760
+ }, e)) : this.form.options.listeners?.onChange?.({
1761
+ formApi: this.form,
1762
+ fieldApi: this
1763
+ });
1764
+ let t = this.options.listeners?.onChangeDebounceMs;
1765
+ t && t > 0 ? (this.timeoutIds.listeners.change && clearTimeout(this.timeoutIds.listeners.change), this.timeoutIds.listeners.change = setTimeout(() => {
1766
+ this.options.listeners?.onChange?.({
1767
+ value: this.state.value,
1768
+ fieldApi: this
1769
+ });
1770
+ }, t)) : this.options.listeners?.onChange?.({
1771
+ value: this.state.value,
1772
+ fieldApi: this
1773
+ });
1774
+ }, this.form = e.form, this.name = e.name, this.options = e, this.timeoutIds = {
1775
+ validations: {},
1776
+ listeners: {},
1777
+ formListeners: {}
1778
+ }, this.store = A((t) => {
1779
+ this.form.store.get();
1780
+ let n = this.form.getFieldMeta(this.name) ?? {
1781
+ ...K,
1782
+ ...e.defaultMeta
1783
+ }, r = this.form.getFieldValue(this.name);
1784
+ return !n.isTouched && r === void 0 && this.options.defaultValue !== void 0 && !R(r, this.options.defaultValue) && (r = this.options.defaultValue), t && t.value === r && t.meta === n ? t : {
1785
+ value: r,
1786
+ meta: n
1787
+ };
1788
+ });
1789
+ }
1790
+ get state() {
1791
+ return this.store.state;
1792
+ }
1793
+ runValidator(e) {
1794
+ return xo(e.validate) ? G[e.type](e.value, e.validate) : e.validate(e.value);
1795
+ }
1796
+ triggerOnBlurListener() {
1797
+ let e = this.form.options.listeners?.onBlurDebounceMs;
1798
+ e && e > 0 ? (this.timeoutIds.formListeners.blur && clearTimeout(this.timeoutIds.formListeners.blur), this.timeoutIds.formListeners.blur = setTimeout(() => {
1799
+ this.form.options.listeners?.onBlur?.({
1800
+ formApi: this.form,
1801
+ fieldApi: this
1802
+ });
1803
+ }, e)) : this.form.options.listeners?.onBlur?.({
1804
+ formApi: this.form,
1805
+ fieldApi: this
1806
+ });
1807
+ let t = this.options.listeners?.onBlurDebounceMs;
1808
+ t && t > 0 ? (this.timeoutIds.listeners.blur && clearTimeout(this.timeoutIds.listeners.blur), this.timeoutIds.listeners.blur = setTimeout(() => {
1809
+ this.options.listeners?.onBlur?.({
1810
+ value: this.state.value,
1811
+ fieldApi: this
1812
+ });
1813
+ }, t)) : this.options.listeners?.onBlur?.({
1814
+ value: this.state.value,
1815
+ fieldApi: this
1816
+ });
1817
+ }
1818
+ };
1819
+ function To(e) {
1820
+ if (e) return e;
1821
+ }
1822
+ function X(e) {
1823
+ switch (e) {
1824
+ case "submit": return "onSubmit";
1825
+ case "blur": return "onBlur";
1826
+ case "mount": return "onMount";
1827
+ case "server": return "onServer";
1828
+ case "dynamic": return "onDynamic";
1829
+ default: return "onChange";
1830
+ }
1831
+ }
1832
+ //#endregion
1833
+ //#region node_modules/@tanstack/form-core/dist/esm/FieldGroupApi.js
1834
+ var Eo = class e {
1835
+ constructor(t) {
1836
+ if (this.getFormFieldName = (e) => {
1837
+ if (typeof this.fieldsMap == "string") return uo(this.fieldsMap, e);
1838
+ let t = I(e)[0];
1839
+ if (typeof t != "string") return "";
1840
+ let n = e.slice(t.length), r = this.fieldsMap[t];
1841
+ return uo(r, n);
1842
+ }, this.getFormFieldOptions = (e) => {
1843
+ let t = { ...e }, n = t.validators;
1844
+ if (t.name = this.getFormFieldName(e.name), n && (n.onChangeListenTo || n.onBlurListenTo)) {
1845
+ let e = { ...n }, r = (e) => {
1846
+ if (e) return e.map((e) => this.getFormFieldName(e));
1847
+ };
1848
+ e.onChangeListenTo = r(n.onChangeListenTo), e.onBlurListenTo = r(n.onBlurListenTo), t.validators = e;
1849
+ }
1850
+ return t;
1851
+ }, this.mount = () => () => {}, this.validateArrayFieldsStartingFrom = async (e, t, n) => this.form.validateArrayFieldsStartingFrom(this.getFormFieldName(e), t, n), this.validateField = (e, t) => this.form.validateField(this.getFormFieldName(e), t), this.getFieldValue = (e) => this.form.getFieldValue(this.getFormFieldName(e)), this.getFieldMeta = (e) => this.form.getFieldMeta(this.getFormFieldName(e)), this.setFieldMeta = (e, t) => this.form.setFieldMeta(this.getFormFieldName(e), t), this.setFieldValue = (e, t, n) => this.form.setFieldValue(this.getFormFieldName(e), t, n), this.deleteField = (e) => this.form.deleteField(this.getFormFieldName(e)), this.pushFieldValue = (e, t, n) => this.form.pushFieldValue(this.getFormFieldName(e), t, n), this.insertFieldValue = async (e, t, n, r) => this.form.insertFieldValue(this.getFormFieldName(e), t, n, r), this.replaceFieldValue = async (e, t, n, r) => this.form.replaceFieldValue(this.getFormFieldName(e), t, n, r), this.removeFieldValue = async (e, t, n) => this.form.removeFieldValue(this.getFormFieldName(e), t, n), this.swapFieldValues = (e, t, n, r) => this.form.swapFieldValues(this.getFormFieldName(e), t, n, r), this.moveFieldValues = (e, t, n, r) => this.form.moveFieldValues(this.getFormFieldName(e), t, n, r), this.clearFieldValues = (e, t) => this.form.clearFieldValues(this.getFormFieldName(e), t), this.resetField = (e) => this.form.resetField(this.getFormFieldName(e)), this.validateAllFields = (e) => this.form.validateAllFields(e), t.form instanceof e) {
1852
+ let e = t.form;
1853
+ if (this.form = e.form, typeof t.fields == "string") this.fieldsMap = e.getFormFieldName(t.fields);
1854
+ else {
1855
+ let n = { ...t.fields };
1856
+ for (let t in n) n[t] = e.getFormFieldName(n[t]);
1857
+ this.fieldsMap = n;
1858
+ }
1859
+ } else this.form = t.form, this.fieldsMap = t.fields;
1860
+ this.store = A(() => {
1861
+ let e = this.form.store.get(), t;
1862
+ if (typeof this.fieldsMap == "string") t = N(e.values, this.fieldsMap);
1863
+ else {
1864
+ t = {};
1865
+ let n = this.fieldsMap;
1866
+ for (let r in n) t[r] = N(e.values, n[r]);
1867
+ }
1868
+ return { values: t };
1869
+ });
1870
+ }
1871
+ get state() {
1872
+ return this.store.state;
1873
+ }
1874
+ async handleSubmit(e) {
1875
+ return this.form.handleSubmit(e);
1876
+ }
1877
+ };
1878
+ //#endregion
1879
+ //#region node_modules/@tanstack/form-core/dist/esm/transform.js
1880
+ function Do(e, t) {
1881
+ if (!t) return;
1882
+ let n = Object.assign({}, e, { state: U(e.state) });
1883
+ t(n), n.fieldInfo !== e.fieldInfo && (e.fieldInfo = n.fieldInfo), n.options !== e.options && (e.options = n.options);
1884
+ let r = Object.keys({
1885
+ values: null,
1886
+ validationMetaMap: null,
1887
+ fieldMetaBase: null,
1888
+ isSubmitting: null,
1889
+ isSubmitted: null,
1890
+ isValidating: null,
1891
+ submissionAttempts: null,
1892
+ isSubmitSuccessful: null,
1893
+ _force_re_eval: null
1894
+ }).reduce((t, r) => (e.state[r] !== n.state[r] && (t[r] = n.state[r]), t), {});
1895
+ return O(() => {
1896
+ Object.keys(r).length && e.baseStore.setState((e) => ({
1897
+ ...e,
1898
+ ...r
1899
+ })), n.state.errorMap !== e.state.errorMap && e.setErrorMap(n.state.errorMap);
1900
+ }), n;
1901
+ }
1902
+ //#endregion
1903
+ //#region node_modules/@tanstack/react-store/dist/esm/useStore.js
1904
+ function Oo(e, t) {
1905
+ return e === t;
1906
+ }
1907
+ function Z(e, t, n = Oo) {
1908
+ let r = Ma((t) => {
1909
+ if (!e) return () => {};
1910
+ let { unsubscribe: n } = e.subscribe(t);
1911
+ return n;
1912
+ }, [e]), i = Ma(() => e?.get(), [e]);
1913
+ return La(r, i, i, t, n);
1914
+ }
1915
+ //#endregion
1916
+ //#region node_modules/@tanstack/react-form/dist/esm/useIsomorphicLayoutEffect.js
1917
+ var Q = typeof window < "u" ? Fa : Pa;
1918
+ //#endregion
1919
+ //#region node_modules/@tanstack/react-form/dist/esm/useField.js
1920
+ function ko(e) {
1921
+ let [t, n] = b(() => ({
1922
+ form: e.form,
1923
+ name: e.name
1924
+ })), [r, i] = b(() => new wo({ ...e }));
1925
+ (t.form !== e.form || t.name !== e.name) && (i(new wo({ ...e })), n({
1926
+ form: e.form,
1927
+ name: e.name
1928
+ }));
1929
+ let a = Z(r.store, e.mode === "array" ? (e) => Object.keys(e.value ?? []).length : (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 = y(() => {
1930
+ let t = {
1931
+ ...r,
1932
+ get state() {
1933
+ return {
1934
+ value: e.mode === "array" ? r.state.value : a,
1935
+ get meta() {
1936
+ return {
1937
+ ...r.state.meta,
1938
+ isTouched: o,
1939
+ isBlurred: s,
1940
+ isDirty: c,
1941
+ errorMap: l,
1942
+ errorSourceMap: u,
1943
+ isValidating: d
1944
+ };
1945
+ }
1946
+ };
1947
+ }
1948
+ };
1949
+ return t.Field = Ao, t;
1950
+ }, [
1951
+ r,
1952
+ e.mode,
1953
+ a,
1954
+ o,
1955
+ s,
1956
+ c,
1957
+ l,
1958
+ u,
1959
+ d
1960
+ ]);
1961
+ return Q(r.mount, [r]), Q(() => {
1962
+ r.update(e);
1963
+ }), f;
1964
+ }
1965
+ var Ao = (({ children: e, ...t }) => {
1966
+ let n = ko(t);
1967
+ return /* @__PURE__ */ S(x, { children: y(() => M(e, n), [e, n]) });
1968
+ });
1969
+ //#endregion
1970
+ //#region node_modules/@tanstack/react-form/dist/esm/useUUID.js
1971
+ function jo() {
1972
+ return b(() => _o())[0];
1973
+ }
1974
+ //#endregion
1975
+ //#region node_modules/@tanstack/react-form/dist/esm/useFormId.js
1976
+ var Mo = Aa, No = Aa.version.split(".")[0] === "17" ? jo : Mo.useId;
1977
+ //#endregion
1978
+ //#region node_modules/@tanstack/react-form/dist/esm/useForm.js
1979
+ function Po({ form: e, selector: t = (e) => e, children: n }) {
1980
+ return /* @__PURE__ */ S(x, { children: M(n, Z(e.store, t)) });
1981
+ }
1982
+ function Fo(e) {
1983
+ let t = No(), [n, r] = b(e?.formId), [i, a] = b(() => new Co({
1984
+ ...e,
1985
+ formId: e?.formId ?? t
1986
+ }));
1987
+ if (n !== e?.formId) {
1988
+ let n = e?.formId ?? t;
1989
+ a(new Co({
1990
+ ...e,
1991
+ formId: n
1992
+ })), r(n);
1993
+ }
1994
+ let o = y(() => {
1995
+ let e = {
1996
+ ...i,
1997
+ handleSubmit: ((...e) => i._handleSubmit(...e)),
1998
+ get formId() {
1999
+ return i._formId;
2000
+ },
2001
+ get state() {
2002
+ return i.store.state;
2003
+ }
2004
+ };
2005
+ return e.Field = function(e) {
2006
+ return /* @__PURE__ */ S(Ao, {
2007
+ ...e,
2008
+ form: i
2009
+ });
2010
+ }, e.Subscribe = function(e) {
2011
+ return /* @__PURE__ */ S(Po, {
2012
+ form: i,
2013
+ selector: e.selector,
2014
+ children: e.children
2015
+ });
2016
+ }, e;
2017
+ }, [i]);
2018
+ Q(i.mount, []), Q(() => {
2019
+ i.update(e);
2020
+ });
2021
+ let s = Ia(!1);
2022
+ return Q(() => {
2023
+ s.current && e?.transform && Do(i, e.transform);
2024
+ }, [i, e?.transform]), Q(() => {
2025
+ s.current = !0;
2026
+ }), o;
2027
+ }
2028
+ //#endregion
2029
+ //#region node_modules/@tanstack/react-form/dist/esm/useFieldGroup.js
2030
+ function Io({ lens: e, selector: t = (e) => e, children: n }) {
2031
+ return /* @__PURE__ */ S(x, { children: M(n, Z(e.store, t)) });
2032
+ }
2033
+ function Lo(e) {
2034
+ let [t] = b(() => {
2035
+ let n = new Eo(e), r = e.form instanceof Eo ? e.form.form : e.form, i = n;
2036
+ return i.AppForm = function(e) {
2037
+ return /* @__PURE__ */ S(r.AppForm, { ...e });
2038
+ }, i.AppField = function(e) {
2039
+ return /* @__PURE__ */ S(r.AppField, { ...t.getFormFieldOptions(e) });
2040
+ }, i.Field = function(e) {
2041
+ return /* @__PURE__ */ S(r.Field, { ...t.getFormFieldOptions(e) });
2042
+ }, i.Subscribe = function(e) {
2043
+ return /* @__PURE__ */ S(Io, {
2044
+ lens: t,
2045
+ selector: e.selector,
2046
+ children: e.children
2047
+ });
2048
+ }, Object.assign(i, { ...e.formComponents });
2049
+ });
2050
+ return Q(t.mount, [t]), t;
2051
+ }
2052
+ //#endregion
2053
+ //#region node_modules/@tanstack/react-form/dist/esm/createFormHook.js
2054
+ var Ro = ja(null), zo = ja(null);
2055
+ function Bo() {
2056
+ let e = Na(zo);
2057
+ if (!e) throw Error("`formContext` only works when within a `formComponent` passed to `createFormHook`");
2058
+ return e;
2059
+ }
2060
+ function Vo() {
2061
+ function e() {
2062
+ let e = Na(Ro);
2063
+ if (!e) throw Error("`fieldContext` only works when within a `fieldComponent` passed to `createFormHook`");
2064
+ return e;
2065
+ }
2066
+ return {
2067
+ fieldContext: Ro,
2068
+ useFieldContext: e,
2069
+ useFormContext: Bo,
2070
+ formContext: zo
2071
+ };
2072
+ }
2073
+ function Ho({ fieldComponents: e, fieldContext: t, formContext: n, formComponents: r }) {
2074
+ function i(i) {
2075
+ let a = Fo(i), o = y(() => ({ children: e }) => /* @__PURE__ */ S(n.Provider, {
2076
+ value: a,
2077
+ children: e
2078
+ }), [a]), s = y(() => (({ children: n, ...r }) => /* @__PURE__ */ S(a.Field, {
2079
+ ...r,
2080
+ children: (r) => /* @__PURE__ */ S(t.Provider, {
2081
+ value: r,
2082
+ children: n(Object.assign(r, e))
2083
+ })
2084
+ })), [a]);
2085
+ return y(() => Object.assign(a, {
2086
+ AppField: s,
2087
+ AppForm: o,
2088
+ ...r
2089
+ }), [
2090
+ a,
2091
+ s,
2092
+ o
2093
+ ]);
2094
+ }
2095
+ function a({ render: e, props: t }) {
2096
+ return function(n) {
2097
+ return e({
2098
+ ...t,
2099
+ ...n
2100
+ });
2101
+ };
2102
+ }
2103
+ function o({ render: e, props: t, defaultValues: n }) {
2104
+ return function(i) {
2105
+ let a = Lo(y(() => ({
2106
+ form: i.form,
2107
+ fields: i.fields,
2108
+ defaultValues: n,
2109
+ formComponents: r
2110
+ }), [i.form, i.fields]));
2111
+ return e({
2112
+ ...t,
2113
+ ...i,
2114
+ group: a
2115
+ });
2116
+ };
2117
+ }
2118
+ function s(e) {
2119
+ return Bo();
2120
+ }
2121
+ function c(i) {
2122
+ return Ho({
2123
+ fieldContext: t,
2124
+ formContext: n,
2125
+ fieldComponents: {
2126
+ ...e,
2127
+ ...i.fieldComponents
2128
+ },
2129
+ formComponents: {
2130
+ ...r,
2131
+ ...i.formComponents
2132
+ }
2133
+ });
2134
+ }
2135
+ return {
2136
+ useAppForm: i,
2137
+ withForm: a,
2138
+ withFieldGroup: o,
2139
+ useTypedAppFormContext: s,
2140
+ extendForm: c
2141
+ };
2142
+ }
2143
+ //#endregion
2144
+ //#region src/components/ui/form.tsx
2145
+ var { fieldContext: Uo, formContext: Wo, useFieldContext: $, useFormContext: Go } = Vo();
2146
+ function Ko({ className: e, ...t }) {
2147
+ return /* @__PURE__ */ S("div", {
2148
+ "data-slot": "form-item",
2149
+ className: d("flex flex-col gap-1.5", e),
2150
+ ...t
2151
+ });
2152
+ }
2153
+ function qo({ className: e, ...t }) {
2154
+ let n = $(), r = Z(n.store, (e) => e.meta.errors);
2155
+ return /* @__PURE__ */ S(re, {
2156
+ "data-slot": "form-label",
2157
+ htmlFor: String(n.name),
2158
+ className: d(r.length > 0 && "text-destructive", e),
2159
+ ...t
2160
+ });
2161
+ }
2162
+ function Jo({ className: e, ...t }) {
2163
+ let n = $(), r = Z(n.store, (e) => e.meta.errors), i = String(n.name);
2164
+ return /* @__PURE__ */ S("div", {
2165
+ "data-slot": "form-control",
2166
+ id: i,
2167
+ "aria-describedby": `${i}-description ${i}-message`,
2168
+ "aria-invalid": r.length > 0 || void 0,
2169
+ className: d("w-full", e),
2170
+ ...t
2171
+ });
2172
+ }
2173
+ function Yo({ className: e, ...t }) {
2174
+ let n = $();
2175
+ return /* @__PURE__ */ S("p", {
2176
+ "data-slot": "form-description",
2177
+ id: `${String(n.name)}-description`,
2178
+ className: d("text-sm text-muted-foreground", e),
2179
+ ...t
2180
+ });
2181
+ }
2182
+ function Xo({ className: e, children: t, ...n }) {
2183
+ let r = $(), i = Z(r.store, (e) => e.meta.errors), a = t ?? (i.length > 0 ? i[0]?.message ?? String(i[0]) : null);
2184
+ return a ? /* @__PURE__ */ S("p", {
2185
+ "data-slot": "form-message",
2186
+ id: `${String(r.name)}-message`,
2187
+ role: "alert",
2188
+ className: d("text-sm font-normal text-destructive", e),
2189
+ ...n,
2190
+ children: a
2191
+ }) : null;
2192
+ }
2193
+ //#endregion
2194
+ export { Cr as Accordion, tr as AccordionContent, Zn as AccordionItem, xn as AccordionTrigger, be as Alert, Vn as AlertAction, ei as AlertDescription, en as AlertDialog, Qe as AlertDialogAction, Xt as AlertDialogCancel, an as AlertDialogContent, Je as AlertDialogDescription, ut as AlertDialogFooter, Vr as AlertDialogHeader, ot as AlertDialogMedia, pn as AlertDialogOverlay, ln as AlertDialogPortal, _n as AlertDialogTitle, Pt as AlertDialogTrigger, Er as AlertProvider, Wr as AlertTitle, Lr as AspectRatio, Ra as Autocomplete, qn as Avatar, si as Badge, Kr as Breadcrumb, or as BreadcrumbEllipsis, En as BreadcrumbItem, Nr as BreadcrumbLink, Zr as BreadcrumbList, Fn as BreadcrumbPage, yr as BreadcrumbSeparator, l as Button, Nt as ButtonGroup, ye as ButtonGroupSeparator, Un as ButtonGroupText, ka as CCombobox, Ri as Calendar, Vi as CalendarDayButton, qe as Card, lt as CardAction, Br as CardContent, at as CardDescription, fn as CardFooter, cn as CardHeader, gn as CardTitle, Ai as Carousel, fa as CarouselContent, Hi as CarouselItem, Ui as CarouselNext, Gi as CarouselPrevious, Ea as ChartContainer, Yi as ChartLegend, Pi as ChartLegendContent, Ni as ChartStyle, Wi as ChartTooltip, pa as ChartTooltipContent, rn as Checkbox, $t as Collapsible, Ze as CollapsibleContent, Yt as CollapsibleTrigger, qi as Combobox, ji as ComboboxChip, Zi as ComboboxChips, Li as ComboboxChipsInput, Xi as ComboboxCollection, Qi as ComboboxContent, Ii as ComboboxEmpty, Bi as ComboboxField, ya as ComboboxGroup, zi as ComboboxInput, ea as ComboboxItem, $i as ComboboxLabel, ta as ComboboxList, Ki as ComboboxSeparator, ki as ComboboxTrigger, sa as ComboboxValue, ua as Command, la as CommandDialog, na as CommandEmpty, Ta as CommandGroup, Oa as CommandInput, ia as CommandItem, Da as CommandList, Ji as CommandSeparator, Mi as CommandShortcut, Di as ConfirmationDialogProvider, ze as ContextMenu, Fe as ContextMenuCheckboxItem, Tt as ContextMenuContent, pr as ContextMenuGroup, Ce as ContextMenuItem, lr as ContextMenuLabel, _t as ContextMenuPortal, xt as ContextMenuRadioGroup, kt as ContextMenuRadioItem, Ue as ContextMenuSeparator, tt as ContextMenuShortcut, pt as ContextMenuSub, Lt as ContextMenuSubContent, Ei as ContextMenuSubTrigger, De as ContextMenuTrigger, o as DEFAULT_OPSFUSE_BRAND_THEME, g as Dialog, se as DialogClose, ie as DialogContent, _ as DialogDescription, te as DialogFooter, f as DialogHeader, fe as DialogOverlay, me as DialogPortal, ee as DialogProvider, pe as DialogTitle, u as DialogTrigger, mi as DirectionProvider, ra as Drawer, _a as DrawerClose, xa as DrawerContent, aa as DrawerDescription, ma as DrawerFooter, wa as DrawerHeader, oa as DrawerOverlay, ca as DrawerPortal, va as DrawerTitle, ha as DrawerTrigger, je as DropdownMenu, Vt as Empty, Kn as Field, Ir as FieldContent, Sr as FieldDescription, er as FieldError, Xn as FieldGroup, bn as FieldLabel, ui as FieldLegend, Si as FieldSeparator, kn as FieldSet, vi as FieldTitle, Jo as FormControl, Yo as FormDescription, Ko as FormItem, qo as FormLabel, Xo as FormMessage, vr as HoverCard, oi as HoverCardContent, Rn as HoverCardTrigger, m as Input, ue as InputGroup, ae as InputGroupAddon, ce as InputGroupButton, v as InputGroupInput, p as InputGroupText, oe as InputGroupTextarea, Sa as InputOTP, ga as InputOTPGroup, ba as InputOTPSeparator, da as InputOTPSlot, Ft as Item, xe as ItemActions, Hn as ItemContent, ti as ItemDescription, Dr as ItemFooter, Gr as ItemGroup, ar as ItemHeader, Tn as ItemMedia, Mr as ItemSeparator, Xr as ItemTitle, un as Kbd, vn as KbdGroup, re as Label, ge as Lucide, jt as Menubar, Ge as MenubarCheckboxItem, rt as MenubarContent, ht as MenubarGroup, zt as MenubarItem, Oi as MenubarLabel, ke as MenubarMenu, tn as MenubarPortal, $e as MenubarRadioGroup, Zt as MenubarRadioItem, on as MenubarSeparator, Ye as MenubarShortcut, dt as MenubarSub, Hr as MenubarSubContent, st as MenubarSubTrigger, mn as MenubarTrigger, qt as NavigationMenu, Ve as NavigationMenuContent, Le as NavigationMenuIndicator, Dt as NavigationMenuItem, hr as NavigationMenuLink, Te as NavigationMenuList, dr as NavigationMenuTrigger, yt as NavigationMenuViewport, s as OPSFUSE_BRAND_THEMES, e as OPSFUSE_THEME_SCOPE, Ci as OpsfuseRoot, An as OpsfuseThemeProvider, Pn as PageHeader, fi as Pagination, wi as PaginationContent, jn as PaginationEllipsis, bi as PaginationItem, Ut as PaginationLink, Ne as PaginationNext, gi as PaginationPrevious, Sn as PaginationWrapper, ci as Popover, Bn as PopoverAnchor, Jn as PopoverContent, Rr as PopoverDescription, wr as PopoverHeader, nr as PopoverTitle, Qn as PopoverTrigger, br as Progress, Qr as RadioGroup, In as RadioGroupItem, _e as Recharts, ai as RecruitSmartly, sr as ResizableHandle, Dn as ResizablePanel, Pr as ResizablePanelGroup, Ke as SSelect, Me as STooltip, kr as ScrollArea, qr as ScrollBar, nn as Select, ct as SelectContent, zr as SelectField, it as SelectGroup, dn as SelectItem, sn as SelectLabel, hn as SelectScrollDownButton, Mt as SelectScrollUpButton, ve as SelectSeparator, Wn as SelectTrigger, ri as SelectValue, Or as Separator, mr as Sheet, we as SheetClose, ur as SheetContent, vt as SheetDescription, St as SheetFooter, At as SheetHeader, We as SheetProvider, nt as SheetTitle, mt as SheetTrigger, xi as Sidebar, On as SidebarContent, _i as SidebarFooter, Bt as SidebarGroup, Ae as SidebarGroupAction, pi as SidebarGroupContent, Wt as SidebarGroupLabel, Re as SidebarHeader, Pe as SidebarInput, wt as SidebarInset, fr as SidebarMenu, Se as SidebarMenuAction, cr as SidebarMenuBadge, gt as SidebarMenuButton, bt as SidebarMenuItem, Ot as SidebarMenuSkeleton, He as SidebarMenuSub, et as SidebarMenuSubButton, ft as SidebarMenuSubItem, It as SidebarProvider, Ti as SidebarRail, Ee as SidebarSeparator, Qt as SidebarTrigger, Jt as Skeleton, _r as SkillReady, Be as Slider, Ie as SliderDialogProvider, a as Spinner, li as Switch, ii as Table, Ln as TableBody, Gn as TableCaption, Fr as TableCell, xr as TableFooter, $n as TableHead, Yn as TableHeader, yn as TableRow, Ar as Tabs, Cn as TabsComponent, Jr as TabsContent, Mn as TabsList, gr as TabsTrigger, Nn as TalentScan, le as Textarea, de as Toaster, Ur as Toggle, $r as ToggleGroup, Tr as ToggleGroupItem, yi as Tooltip, Ht as TooltipContent, hi as TooltipProvider, Kt as TooltipTrigger, Yr as Verity, jr as WorkLog, zn as badgeVariants, ni as buttonGroupVariants, i as buttonVariants, d as cn, Oe as confirm, Ho as createFormHook, ir as dismissAlert, Uo as fieldContext, Wo as formContext, r as mergeOpsfusePortalSurface, Ct as navigationMenuTriggerStyle, t as openDialog, Rt as openSheet, Et as openSlider, n as opsfuseBrandThemeClass, wn as showAlert, h as toast, rr as toggleVariants, Fi as useCarousel, Ca as useComboboxAnchor, Gt as useDirection, $ as useFieldContext, Go as useFormContext, di as useIsMobile, c as useOpsfuseBrandTheme, ne as useOpsfusePortalSurface, Xe as useSidebar };