opsfuse-ui 0.1.9 → 0.1.11

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 (176) hide show
  1. package/.claude/skills/opsfuse-color-theme/SKILL.md +1 -1
  2. package/.claude/skills/opsfuse-components/SKILL.md +1 -1
  3. package/.claude/skills/opsfuse-setup/SKILL.md +94 -419
  4. package/.claude/skills/opsfuse-ui-consistency/SKILL.md +1 -1
  5. package/dist/{chunk-BdsCSvBP.js → chunk-Dqa2HsxW.js} +1 -1
  6. package/dist/components/logo/LogoMaker.d.ts +1 -1
  7. package/dist/components/logo/LogoMaker.d.ts.map +1 -1
  8. package/dist/components/logo/RecruitSmartly.d.ts +1 -1
  9. package/dist/components/logo/RecruitSmartly.d.ts.map +1 -1
  10. package/dist/components/logo/SkillReady.d.ts +1 -1
  11. package/dist/components/logo/SkillReady.d.ts.map +1 -1
  12. package/dist/components/logo/TalentScan.d.ts +1 -1
  13. package/dist/components/logo/TalentScan.d.ts.map +1 -1
  14. package/dist/components/logo/Verity.d.ts +1 -1
  15. package/dist/components/logo/Verity.d.ts.map +1 -1
  16. package/dist/components/logo/WorkLog.d.ts +1 -1
  17. package/dist/components/logo/WorkLog.d.ts.map +1 -1
  18. package/dist/components/opsfuse-root.d.ts +1 -1
  19. package/dist/components/opsfuse-root.d.ts.map +1 -1
  20. package/dist/components/opsfuse-theme-provider.d.ts +1 -1
  21. package/dist/components/opsfuse-theme-provider.d.ts.map +1 -1
  22. package/dist/components/ui/Header.d.ts +1 -1
  23. package/dist/components/ui/Header.d.ts.map +1 -1
  24. package/dist/components/ui/accordion.d.ts +1 -1
  25. package/dist/components/ui/accordion.d.ts.map +1 -1
  26. package/dist/components/ui/alert-dialog.d.ts +1 -1
  27. package/dist/components/ui/alert-dialog.d.ts.map +1 -1
  28. package/dist/components/ui/alert.d.ts +5 -5
  29. package/dist/components/ui/alert.d.ts.map +1 -1
  30. package/dist/components/ui/aspect-ratio.d.ts +1 -1
  31. package/dist/components/ui/aspect-ratio.d.ts.map +1 -1
  32. package/dist/components/ui/autocomplete.d.ts +1 -1
  33. package/dist/components/ui/autocomplete.d.ts.map +1 -1
  34. package/dist/components/ui/avatar.d.ts +1 -1
  35. package/dist/components/ui/avatar.d.ts.map +1 -1
  36. package/dist/components/ui/badge.d.ts +1 -1
  37. package/dist/components/ui/badge.d.ts.map +1 -1
  38. package/dist/components/ui/breadcrumb.d.ts +7 -7
  39. package/dist/components/ui/breadcrumb.d.ts.map +1 -1
  40. package/dist/components/ui/button-group.d.ts +3 -3
  41. package/dist/components/ui/button-group.d.ts.map +1 -1
  42. package/dist/components/ui/button.d.ts +1 -1
  43. package/dist/components/ui/button.d.ts.map +1 -1
  44. package/dist/components/ui/calendar.d.ts +2 -2
  45. package/dist/components/ui/calendar.d.ts.map +1 -1
  46. package/dist/components/ui/card.d.ts +7 -7
  47. package/dist/components/ui/card.d.ts.map +1 -1
  48. package/dist/components/ui/carousel.d.ts +5 -5
  49. package/dist/components/ui/carousel.d.ts.map +1 -1
  50. package/dist/components/ui/chart.d.ts +4 -4
  51. package/dist/components/ui/chart.d.ts.map +1 -1
  52. package/dist/components/ui/checkbox.d.ts +1 -1
  53. package/dist/components/ui/checkbox.d.ts.map +1 -1
  54. package/dist/components/ui/collapsible.d.ts +3 -3
  55. package/dist/components/ui/collapsible.d.ts.map +1 -1
  56. package/dist/components/ui/combobox.d.ts +1 -1
  57. package/dist/components/ui/combobox.d.ts.map +1 -1
  58. package/dist/components/ui/command.d.ts +9 -9
  59. package/dist/components/ui/command.d.ts.map +1 -1
  60. package/dist/components/ui/context-menu.d.ts +15 -15
  61. package/dist/components/ui/context-menu.d.ts.map +1 -1
  62. package/dist/components/ui/dialog.d.ts +11 -11
  63. package/dist/components/ui/dialog.d.ts.map +1 -1
  64. package/dist/components/ui/direction.d.ts +1 -1
  65. package/dist/components/ui/direction.d.ts.map +1 -1
  66. package/dist/components/ui/drawer.d.ts +10 -10
  67. package/dist/components/ui/drawer.d.ts.map +1 -1
  68. package/dist/components/ui/dropdown-menu.d.ts +1 -1
  69. package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
  70. package/dist/components/ui/empty.d.ts +1 -1
  71. package/dist/components/ui/empty.d.ts.map +1 -1
  72. package/dist/components/ui/field.d.ts +10 -10
  73. package/dist/components/ui/field.d.ts.map +1 -1
  74. package/dist/components/ui/form.d.ts +5 -5
  75. package/dist/components/ui/form.d.ts.map +1 -1
  76. package/dist/components/ui/hover-card.d.ts +3 -3
  77. package/dist/components/ui/hover-card.d.ts.map +1 -1
  78. package/dist/components/ui/input-group.d.ts +6 -6
  79. package/dist/components/ui/input-group.d.ts.map +1 -1
  80. package/dist/components/ui/input-otp.d.ts +4 -4
  81. package/dist/components/ui/input-otp.d.ts.map +1 -1
  82. package/dist/components/ui/input.d.ts +1 -1
  83. package/dist/components/ui/input.d.ts.map +1 -1
  84. package/dist/components/ui/item.d.ts +10 -10
  85. package/dist/components/ui/item.d.ts.map +1 -1
  86. package/dist/components/ui/kbd.d.ts +2 -2
  87. package/dist/components/ui/kbd.d.ts.map +1 -1
  88. package/dist/components/ui/label.d.ts +1 -1
  89. package/dist/components/ui/label.d.ts.map +1 -1
  90. package/dist/components/ui/menubar.d.ts +16 -16
  91. package/dist/components/ui/menubar.d.ts.map +1 -1
  92. package/dist/components/ui/navigation-menu.d.ts +8 -8
  93. package/dist/components/ui/navigation-menu.d.ts.map +1 -1
  94. package/dist/components/ui/pagination.d.ts +1 -1
  95. package/dist/components/ui/pagination.d.ts.map +1 -1
  96. package/dist/components/ui/popover.d.ts +7 -7
  97. package/dist/components/ui/popover.d.ts.map +1 -1
  98. package/dist/components/ui/progress.d.ts +1 -1
  99. package/dist/components/ui/progress.d.ts.map +1 -1
  100. package/dist/components/ui/radio-group.d.ts +2 -2
  101. package/dist/components/ui/radio-group.d.ts.map +1 -1
  102. package/dist/components/ui/resizable.d.ts +3 -3
  103. package/dist/components/ui/resizable.d.ts.map +1 -1
  104. package/dist/components/ui/scroll-area.d.ts +2 -2
  105. package/dist/components/ui/scroll-area.d.ts.map +1 -1
  106. package/dist/components/ui/select.d.ts +1 -1
  107. package/dist/components/ui/select.d.ts.map +1 -1
  108. package/dist/components/ui/separator.d.ts +1 -1
  109. package/dist/components/ui/separator.d.ts.map +1 -1
  110. package/dist/components/ui/shadcn/shadcn-accordion.d.ts +4 -4
  111. package/dist/components/ui/shadcn/shadcn-accordion.d.ts.map +1 -1
  112. package/dist/components/ui/shadcn/shadcn-alert-dialog.d.ts +12 -12
  113. package/dist/components/ui/shadcn/shadcn-alert-dialog.d.ts.map +1 -1
  114. package/dist/components/ui/shadcn/shadcn-avatar.d.ts +6 -6
  115. package/dist/components/ui/shadcn/shadcn-avatar.d.ts.map +1 -1
  116. package/dist/components/ui/shadcn/shadcn-combobox.d.ts +15 -15
  117. package/dist/components/ui/shadcn/shadcn-combobox.d.ts.map +1 -1
  118. package/dist/components/ui/shadcn/shadcn-dropdown-menu.d.ts +15 -15
  119. package/dist/components/ui/shadcn/shadcn-dropdown-menu.d.ts.map +1 -1
  120. package/dist/components/ui/shadcn/shadcn-empty.d.ts +6 -6
  121. package/dist/components/ui/shadcn/shadcn-empty.d.ts.map +1 -1
  122. package/dist/components/ui/shadcn/shadcn-pagination.d.ts +7 -7
  123. package/dist/components/ui/shadcn/shadcn-pagination.d.ts.map +1 -1
  124. package/dist/components/ui/shadcn/shadcn-select.d.ts +11 -11
  125. package/dist/components/ui/shadcn/shadcn-select.d.ts.map +1 -1
  126. package/dist/components/ui/shadcn/shadcn-tabs.d.ts +4 -4
  127. package/dist/components/ui/shadcn/shadcn-tabs.d.ts.map +1 -1
  128. package/dist/components/ui/shadcn/shadcn-tooltip.d.ts +4 -4
  129. package/dist/components/ui/shadcn/shadcn-tooltip.d.ts.map +1 -1
  130. package/dist/components/ui/sheet.d.ts +9 -9
  131. package/dist/components/ui/sheet.d.ts.map +1 -1
  132. package/dist/components/ui/sidebar.d.ts +23 -23
  133. package/dist/components/ui/sidebar.d.ts.map +1 -1
  134. package/dist/components/ui/skeleton.d.ts +1 -1
  135. package/dist/components/ui/skeleton.d.ts.map +1 -1
  136. package/dist/components/ui/slider.d.ts +2 -2
  137. package/dist/components/ui/slider.d.ts.map +1 -1
  138. package/dist/components/ui/sonner.d.ts +1 -1
  139. package/dist/components/ui/sonner.d.ts.map +1 -1
  140. package/dist/components/ui/spinner.d.ts +1 -1
  141. package/dist/components/ui/spinner.d.ts.map +1 -1
  142. package/dist/components/ui/switch.d.ts +1 -1
  143. package/dist/components/ui/switch.d.ts.map +1 -1
  144. package/dist/components/ui/table.d.ts +8 -8
  145. package/dist/components/ui/table.d.ts.map +1 -1
  146. package/dist/components/ui/tabs.d.ts +1 -1
  147. package/dist/components/ui/tabs.d.ts.map +1 -1
  148. package/dist/components/ui/textarea.d.ts +1 -1
  149. package/dist/components/ui/textarea.d.ts.map +1 -1
  150. package/dist/components/ui/toggle-group.d.ts +2 -2
  151. package/dist/components/ui/toggle-group.d.ts.map +1 -1
  152. package/dist/components/ui/toggle.d.ts +1 -1
  153. package/dist/components/ui/toggle.d.ts.map +1 -1
  154. package/dist/components/ui/tooltip.d.ts +1 -1
  155. package/dist/components/ui/tooltip.d.ts.map +1 -1
  156. package/dist/core.js +2 -2
  157. package/dist/{date-fns-BNhPf8zY.js → date-fns-DTKqTajJ.js} +2 -2
  158. package/dist/date-fns-locale.js +49 -50
  159. package/dist/date-fns.js +2 -2
  160. package/dist/{es6-DckNYvTU.js → es6-CLjPx7Zx.js} +6647 -6696
  161. package/dist/extended.js +2 -2
  162. package/dist/icons.js +2 -2
  163. package/dist/index.js +1178 -490
  164. package/dist/{input-group-Cw_lNmMp.js → input-group-Cs_7xSjN.js} +1460 -1258
  165. package/dist/{input-otp-oZKFMiS3.js → input-otp-CGTrl2aj.js} +3707 -3622
  166. package/dist/lib/opsfuse-portal-theme.d.ts +2 -2
  167. package/dist/lib/opsfuse-portal-theme.d.ts.map +1 -1
  168. package/dist/{lucide-react-BST2iBrS.js → lucide-react-Dil0H3iN.js} +11864 -11499
  169. package/dist/recharts.js +1 -1
  170. package/dist/style.css +232 -3
  171. package/dist/{toggle-group-Dsb7pnyJ.js → toggle-group-BBYrK3NA.js} +3942 -3103
  172. package/package.json +3 -2
  173. package/theme.css +206 -0
  174. package/dist/style.layered.css +0 -3
  175. /package/dist/{clsx-BD2qMUU1.js → clsx-BWCAbrjV.js} +0 -0
  176. /package/dist/{isSameWeek-BUR9Q_Qt.js → isSameWeek-B6PEe-M_.js} +0 -0
package/dist/index.js CHANGED
@@ -1,57 +1,57 @@
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-Cw_lNmMp.js";
2
- import { t as he } from "./date-fns-BNhPf8zY.js";
3
- import { gT as ge, t as _e } from "./lucide-react-BST2iBrS.js";
4
- import { t as ve } from "./es6-DckNYvTU.js";
5
- import { $ as ye, $n as be, $r as xe, $t as Se, A as Ce, An as we, Ar as Te, At as Ee, B as De, Bn as Oe, Br as ke, Bt as Ae, C as je, Cn as Me, Cr as Ne, Ct as Pe, D as Fe, Dn as Ie, Dr as Le, Dt as Re, E as ze, En as Be, Er as Ve, Et as He, F as Ue, Fn as We, Fr as Ge, Ft as Ke, G as qe, Gn as Je, Gr as Ye, Gt as Xe, H as Ze, Hn as Qe, Hr as $e, Ht as et, I as tt, In as nt, Ir as rt, It as it, J as at, Jn as ot, Jr as st, Jt as ct, K as lt, Kn as ut, Kr as dt, Kt as ft, L as pt, Ln as mt, Lr as ht, Lt as gt, M as _t, Mn as vt, Mr as yt, Mt as bt, N as xt, Nn as St, Nr as Ct, Nt as wt, O as Tt, On as Et, Or as Dt, Ot, P as kt, Pn as At, Pr as jt, Pt as Mt, Q as Nt, Qn as Pt, Qr as Ft, Qt as It, R as Lt, Rn as Rt, Rr as zt, Rt as Bt, S as Vt, Sn as Ht, Sr as Ut, St as Wt, T as Gt, Tn as Kt, Tr as qt, Tt as Jt, U as Yt, Un as Xt, Ur as Zt, Ut as Qt, V as $t, Vn as en, Vr as tn, Vt as nn, W as rn, Wn as an, Wr as on, Wt as sn, X as cn, Xn as ln, Xr as un, Xt as dn, Y as fn, Yn as pn, Yr as mn, Yt as hn, Z as gn, Zn as _n, Zr as vn, Zt as yn, _ as bn, _n as xn, _r as Sn, _t as Cn, a as wn, ai as Tn, an as En, ar as Dn, at as On, b as kn, bn as An, br as jn, bt as Mn, c as Nn, ci as Pn, cn as Fn, cr as In, ct as Ln, d as Rn, dn as zn, dr as Bn, dt as Vn, ei as Hn, en as Un, er as Wn, et as Gn, f as Kn, fn as qn, fr as Jn, ft as Yn, g as Xn, gn as Zn, gr as Qn, gt as $n, h as er, hn as tr, hr as nr, ht as rr, i as ir, ii as ar, in as or, ir as sr, it as cr, j as lr, jn as ur, jr as dr, jt as fr, k as pr, kn as mr, kr as hr, kt as gr, l as _r, li as vr, ln as yr, lr as br, lt as xr, m as Sr, mn as Cr, mr as wr, mt as Tr, n as Er, ni as Dr, nn as Or, nr as kr, nt as Ar, o as jr, oi as Mr, on as Nr, or as Pr, ot as Fr, p as Ir, pn as Lr, pr as Rr, pt as zr, q as Br, qn as Vr, qr as Hr, qt as Ur, r as Wr, ri as Gr, rn as Kr, rr as qr, rt as Jr, s as Yr, si as Xr, sn as Zr, sr as Qr, st as $r, t as ei, ti, tn as ni, tr as ri, tt as ii, u as ai, ui as oi, un as si, ur as ci, ut as li, v as ui, vn as di, vr as fi, vt as pi, w as mi, wn as hi, wr as gi, wt as _i, x as vi, xn as yi, xr as bi, xt as xi, y as Si, yn as Ci, yr as wi, yt as Ti, z as Ei, zn as Di, zr as Oi, zt as ki } from "./toggle-group-Dsb7pnyJ.js";
6
- import { $ as Ai, A as ji, B as Mi, C as Ni, D as Pi, E as Fi, F as Ii, G as Li, H as Ri, I as zi, J as Bi, K as Vi, L as Hi, M as Ui, N as Wi, O as Gi, P as Ki, Q as qi, R as Ji, S as Yi, T as Xi, U as Zi, V as Qi, W as $i, X as ea, Y as ta, Z as na, _ as ra, a as ia, b as aa, c as oa, d as sa, et as ca, f as la, g as ua, h as da, i as fa, j as pa, k as ma, l as ha, m as ga, n as _a, o as va, p as ya, q as ba, r as xa, s as Sa, t as Ca, tt as wa, u as Ta, v as Ea, w as Da, x as Oa, y as ka, z as Aa } from "./input-otp-oZKFMiS3.js";
7
- import * as ja from "react";
8
- import { createContext as Ma, useCallback as Na, useContext as Pa, useEffect as Fa, useLayoutEffect as Ia, useMemo as y, useRef as La, useState as b } from "react";
9
- import { useSyncExternalStoreWithSelector as Ra } from "use-sync-external-store/shim/with-selector";
10
- import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
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, Vt as d, _ as f, a as p, b as m, c as h, d as g, f as _, g as v, h as y, i as b, k as x, l as S, m as ee, n as te, o as ne, p as re, r as ie, s as ae, t as oe, u as se, v as ce, x as le, y as ue } from "./input-group-Cs_7xSjN.js";
2
+ import { t as de } from "./date-fns-DTKqTajJ.js";
3
+ import { kT as fe, t as pe } from "./lucide-react-Dil0H3iN.js";
4
+ import { t as me } from "./es6-CLjPx7Zx.js";
5
+ import { $ as he, $n as ge, $r as _e, $t as ve, A as ye, An as be, Ar as xe, At as Se, B as Ce, Bn as we, Br as Te, Bt as Ee, C as De, Cn as Oe, Cr as ke, Ct as Ae, D as je, Dn as Me, Dr as Ne, Dt as Pe, E as Fe, En as Ie, Er as Le, Et as Re, F as ze, Fn as Be, Fr as Ve, Ft as He, G as Ue, Gn as We, Gr as Ge, Gt as Ke, H as qe, Hn as Je, Hr as Ye, Ht as Xe, I as Ze, In as Qe, Ir as $e, It as et, J as tt, Jn as nt, Jr as rt, Jt as it, K as at, Kn as ot, Kr as st, Kt as ct, L as lt, Ln as ut, Lr as dt, Lt as ft, M as pt, Mn as mt, Mr as ht, Mt as gt, N as _t, Nn as vt, Nr as yt, Nt as bt, O as xt, On as St, Or as Ct, Ot as wt, P as Tt, Pn as Et, Pr as Dt, Pt as Ot, Q as kt, Qn as At, Qr as jt, Qt as Mt, R as Nt, Rn as Pt, Rr as Ft, Rt as It, S as Lt, Sn as Rt, Sr as zt, St as Bt, T as Vt, Tn as Ht, Tr as Ut, Tt as Wt, U as Gt, Un as Kt, Ur as qt, Ut as Jt, V as Yt, Vn as Xt, Vr as Zt, Vt as Qt, W as $t, Wn as en, Wr as tn, Wt as nn, X as rn, Xn as an, Xr as on, Xt as sn, Y as cn, Yn as ln, Yr as un, Yt as dn, Z as fn, Zn as pn, Zr as mn, Zt as hn, _ as gn, _n, _r as vn, _t as yn, a as bn, ai as xn, an as Sn, ar as Cn, at as wn, b as Tn, bn as En, br as Dn, bt as On, c as kn, ci as An, cn as jn, cr as Mn, ct as Nn, d as Pn, dn as Fn, dr as In, dt as Ln, ei as Rn, en as zn, er as Bn, et as Vn, f as Hn, fn as Un, fr as Wn, ft as Gn, g as Kn, gn as qn, gr as Jn, gt as Yn, h as Xn, hn as Zn, hr as Qn, ht as $n, i as er, ii as tr, in as nr, ir as rr, it as ir, j as ar, jn as or, jr as sr, jt as cr, k as lr, kn as ur, kr as dr, kt as fr, l as pr, li as mr, ln as hr, lr as gr, lt as _r, m as vr, mn as yr, mr as br, mt as xr, n as Sr, ni as Cr, nn as wr, nr as Tr, nt as Er, o as Dr, oi as Or, on as kr, or as Ar, ot as jr, p as Mr, pn as Nr, pr as Pr, pt as Fr, q as Ir, qn as Lr, qr as Rr, qt as zr, r as Br, ri as Vr, rn as Hr, rr as Ur, rt as Wr, s as Gr, si as Kr, sn as qr, sr as Jr, st as Yr, t as Xr, ti as Zr, tn as Qr, tr as $r, tt as ei, u as ti, ui as ni, un as ri, ur as ii, ut as ai, v as oi, vn as si, vr as ci, vt as li, w as ui, wn as di, wr as fi, wt as pi, x as mi, xn as hi, xr as gi, xt as _i, y as vi, yn as yi, yr as bi, yt as xi, z as Si, zn as Ci, zr as wi, zt as Ti } from "./toggle-group-BBYrK3NA.js";
6
+ import { $ as Ei, A as Di, B as Oi, C as ki, D as Ai, E as ji, F as Mi, G as Ni, H as Pi, I as Fi, J as Ii, K as Li, L as Ri, M as zi, N as Bi, O as Vi, P as Hi, Q as Ui, R as Wi, S as Gi, T as Ki, U as qi, V as Ji, W as Yi, X as Xi, Y as Zi, Z as Qi, _ as $i, a as ea, b as ta, c as na, d as ra, et as ia, f as aa, g as oa, h as sa, i as ca, j as la, k as ua, l as da, m as fa, n as pa, o as ma, p as ha, q as ga, r as _a, s as va, t as ya, tt as ba, u as xa, v as Sa, w as Ca, x as wa, y as Ta, z as Ea } from "./input-otp-CGTrl2aj.js";
7
+ import * as Da from "react";
8
+ import { createContext as Oa, useCallback as ka, useContext as Aa, useEffect as ja, useLayoutEffect as Ma, useMemo as C, useRef as Na, useState as w } from "react";
9
+ import { useSyncExternalStoreWithSelector as Pa } from "use-sync-external-store/shim/with-selector";
10
+ import { Fragment as Fa, jsx as T, jsxs as E } from "react/jsx-runtime";
11
11
  //#region src/components/ui/autocomplete.tsx
12
- function za({ items: e, placeholder: t = "Select...", placeholderIcon: n, emptyMessage: r = "No items found.", disabled: i = !1, triggerWidth: a = "w-64", label: o, multiple: s, ...c }) {
13
- let u = wa();
14
- return /* @__PURE__ */ C("div", {
12
+ function Ia({ items: e, placeholder: t = "Select...", placeholderIcon: n, emptyMessage: r = "No items found.", disabled: i = !1, triggerWidth: a = "w-64", label: o, multiple: s, ...c }) {
13
+ let u = ba();
14
+ return /* @__PURE__ */ E("div", {
15
15
  className: "flex flex-col gap-2",
16
- children: [o && /* @__PURE__ */ S(re, { children: o }), /* @__PURE__ */ C(Aa, {
16
+ children: [o && /* @__PURE__ */ T(S, { children: o }), /* @__PURE__ */ E(Ea, {
17
17
  items: e,
18
18
  multiple: s,
19
19
  disabled: i,
20
20
  ...c,
21
- children: [s ? /* @__PURE__ */ C(Qi, {
21
+ children: [s ? /* @__PURE__ */ E(Ji, {
22
22
  ref: u,
23
23
  className: a,
24
- children: [n ? /* @__PURE__ */ S("span", {
24
+ children: [n ? /* @__PURE__ */ T("span", {
25
25
  "data-icon": "inline-start",
26
26
  className: "contents text-muted-foreground [&>svg:not([class*='size-'])]:size-4",
27
27
  children: n
28
- }) : null, /* @__PURE__ */ S(ca, { children: (e) => {
28
+ }) : null, /* @__PURE__ */ T(ia, { children: (e) => {
29
29
  let n = e ?? [];
30
- return /* @__PURE__ */ C(ja.Fragment, { children: [n.map((e) => /* @__PURE__ */ S(Mi, { children: e.label }, e.value)), /* @__PURE__ */ S(Ri, {
30
+ return /* @__PURE__ */ E(Da.Fragment, { children: [n.map((e) => /* @__PURE__ */ T(Oi, { children: e.label }, e.value)), /* @__PURE__ */ T(Pi, {
31
31
  placeholder: t,
32
32
  disabled: i
33
33
  })] });
34
34
  } })]
35
- }) : /* @__PURE__ */ S(Ai, { render: /* @__PURE__ */ C(l, {
35
+ }) : /* @__PURE__ */ T(Ei, { render: /* @__PURE__ */ E(l, {
36
36
  variant: "outline",
37
37
  className: d(a, "justify-between font-normal"),
38
- children: [/* @__PURE__ */ C("span", {
38
+ children: [/* @__PURE__ */ E("span", {
39
39
  className: "flex min-w-0 items-center gap-2",
40
- children: [n ? /* @__PURE__ */ S("span", {
40
+ children: [n ? /* @__PURE__ */ T("span", {
41
41
  "data-icon": "inline-start",
42
42
  className: "contents text-muted-foreground [&>svg:not([class*='size-'])]:size-4",
43
43
  children: n
44
- }) : null, /* @__PURE__ */ S(ca, { placeholder: t })]
45
- }), /* @__PURE__ */ S(ge, { className: "ml-2 size-4 shrink-0 text-muted-foreground" })]
46
- }) }), /* @__PURE__ */ C($i, {
44
+ }) : null, /* @__PURE__ */ T(ia, { placeholder: t })]
45
+ }), /* @__PURE__ */ T(fe, { className: "ml-2 size-4 shrink-0 text-muted-foreground" })]
46
+ }) }), /* @__PURE__ */ E(Yi, {
47
47
  anchor: s ? u : void 0,
48
48
  children: [
49
- /* @__PURE__ */ S(Bi, {
49
+ /* @__PURE__ */ T(Ii, {
50
50
  showTrigger: !1,
51
51
  placeholder: "Search"
52
52
  }),
53
- /* @__PURE__ */ S(Li, { children: r }),
54
- /* @__PURE__ */ S(na, { children: (e) => /* @__PURE__ */ S(ta, {
53
+ /* @__PURE__ */ T(Ni, { children: r }),
54
+ /* @__PURE__ */ T(Qi, { children: (e) => /* @__PURE__ */ T(Zi, {
55
55
  value: e,
56
56
  children: e.label
57
57
  }, e.value) })
@@ -61,10 +61,12 @@ function za({ items: e, placeholder: t = "Select...", placeholderIcon: n, emptyM
61
61
  });
62
62
  }
63
63
  //#endregion
64
- //#region node_modules/@tanstack/store/dist/esm/alien.js
65
- 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 || {});
64
+ //#region node_modules/@tanstack/store/dist/alien.js
65
+ var D = /* @__PURE__ */ function(e) {
66
+ return e[e.None = 0] = "None", e[e.Mutable = 1] = "Mutable", e[e.Watching = 2] = "Watching", e[e.RecursedCheck = 4] = "RecursedCheck", e[e.Recursed = 8] = "Recursed", e[e.Dirty = 16] = "Dirty", e[e.Pending = 32] = "Pending", e;
67
+ }({});
66
68
  /* @__NO_SIDE_EFFECTS__ */
67
- function Ba({ update: e, notify: t, unwatched: n }) {
69
+ function La({ update: e, notify: t, unwatched: n }) {
68
70
  return {
69
71
  link: r,
70
72
  unlink: i,
@@ -101,7 +103,7 @@ function Ba({ update: e, notify: t, unwatched: n }) {
101
103
  let n = e.nextSub, r;
102
104
  top: do {
103
105
  let i = e.sub, a = i.flags;
104
- 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) {
106
+ if (a & (D.RecursedCheck | D.Recursed | D.Dirty | D.Pending) ? a & (D.RecursedCheck | D.Recursed) ? a & D.RecursedCheck ? !(a & (D.Dirty | D.Pending)) && c(e, i) ? (i.flags = a | (D.Recursed | D.Pending), a &= D.Mutable) : a = D.None : i.flags = a & ~D.Recursed | D.Pending : a = D.None : i.flags = a | D.Pending, a & D.Watching && t(i), a & D.Mutable) {
105
107
  let t = i.subs;
106
108
  if (t !== void 0) {
107
109
  let i = (e = t).nextSub;
@@ -127,13 +129,13 @@ function Ba({ update: e, notify: t, unwatched: n }) {
127
129
  let r, i = 0, a = !1;
128
130
  top: do {
129
131
  let o = t.dep, c = o.flags;
130
- if (n.flags & 16) a = !0;
131
- else if ((c & 17) == 17) {
132
+ if (n.flags & D.Dirty) a = !0;
133
+ else if ((c & (D.Mutable | D.Dirty)) === (D.Mutable | D.Dirty)) {
132
134
  if (e(o)) {
133
135
  let e = o.subs;
134
136
  e.nextSub !== void 0 && s(e), a = !0;
135
137
  }
136
- } else if ((c & 33) == 33) {
138
+ } else if ((c & (D.Mutable | D.Pending)) === (D.Mutable | D.Pending)) {
137
139
  (t.nextSub !== void 0 || t.prevSub !== void 0) && (r = {
138
140
  value: t,
139
141
  prev: r
@@ -155,7 +157,7 @@ function Ba({ update: e, notify: t, unwatched: n }) {
155
157
  continue;
156
158
  }
157
159
  a = !1;
158
- } else n.flags &= -33;
160
+ } else n.flags &= ~D.Pending;
159
161
  n = t.sub;
160
162
  let c = t.nextDep;
161
163
  if (c !== void 0) {
@@ -169,7 +171,7 @@ function Ba({ update: e, notify: t, unwatched: n }) {
169
171
  function s(e) {
170
172
  do {
171
173
  let n = e.sub, r = n.flags;
172
- (r & 48) == 32 && (n.flags = r | 16, (r & 6) == 2 && t(n));
174
+ (r & (D.Pending | D.Dirty)) === D.Pending && (n.flags = r | D.Dirty, (r & (D.Watching | D.RecursedCheck)) === D.Watching && t(n));
173
175
  } while ((e = e.nextSub) !== void 0);
174
176
  }
175
177
  function c(e, t) {
@@ -182,8 +184,8 @@ function Ba({ update: e, notify: t, unwatched: n }) {
182
184
  }
183
185
  }
184
186
  //#endregion
185
- //#region node_modules/@tanstack/store/dist/esm/atom.js
186
- function Va(e, t, n) {
187
+ //#region node_modules/@tanstack/store/dist/atom.js
188
+ function Ra(e, t, n) {
187
189
  let r = typeof e == "object", i = r ? e : void 0;
188
190
  return {
189
191
  next: (r ? e.next : e)?.bind(i),
@@ -191,50 +193,50 @@ function Va(e, t, n) {
191
193
  complete: (r ? e.complete : n)?.bind(i)
192
194
  };
193
195
  }
194
- var Ha = [], T = 0, { link: Ua, unlink: Wa, propagate: Ga, checkDirty: Ka, shallowPropagate: qa } = /* @__PURE__ */ Ba({
196
+ var za = [], Ba = 0, { link: Va, unlink: Ha, propagate: Ua, checkDirty: Wa, shallowPropagate: Ga } = /* @__PURE__ */ La({
195
197
  update(e) {
196
198
  return e._update();
197
199
  },
198
200
  notify(e) {
199
- Ha[Ja++] = e, e.flags &= ~w.Watching;
201
+ za[Ka++] = e, e.flags &= ~D.Watching;
200
202
  },
201
203
  unwatched(e) {
202
- e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = w.Mutable | w.Dirty, k(e));
204
+ e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = D.Mutable | D.Dirty, Ja(e));
203
205
  }
204
- }), E = 0, Ja = 0, D, Ya = 0;
205
- function O(e) {
206
+ }), O = 0, Ka = 0, k, qa = 0;
207
+ function A(e) {
206
208
  try {
207
- ++Ya, e();
209
+ ++qa, e();
208
210
  } finally {
209
- --Ya || Xa();
211
+ --qa || Ya();
210
212
  }
211
213
  }
212
- function k(e) {
214
+ function Ja(e) {
213
215
  let t = e.depsTail, n = t === void 0 ? e.deps : t.nextDep;
214
- for (; n !== void 0;) n = Wa(n, e);
216
+ for (; n !== void 0;) n = Ha(n, e);
215
217
  }
216
- function Xa() {
217
- if (!(Ya > 0)) {
218
- for (; E < Ja;) {
219
- let e = Ha[E];
220
- Ha[E++] = void 0, e.notify();
218
+ function Ya() {
219
+ if (!(qa > 0)) {
220
+ for (; O < Ka;) {
221
+ let e = za[O];
222
+ za[O++] = void 0, e.notify();
221
223
  }
222
- E = 0, Ja = 0;
224
+ O = 0, Ka = 0;
223
225
  }
224
226
  }
225
- function Za(e, t) {
227
+ function Xa(e, t) {
226
228
  let n = typeof e == "function", r = e, i = {
227
229
  _snapshot: n ? void 0 : e,
228
230
  subs: void 0,
229
231
  subsTail: void 0,
230
232
  deps: void 0,
231
233
  depsTail: void 0,
232
- flags: n ? w.None : w.Mutable,
234
+ flags: n ? D.None : D.Mutable,
233
235
  get() {
234
- return D !== void 0 && Ua(i, D, T), i._snapshot;
236
+ return k !== void 0 && Va(i, k, Ba), i._snapshot;
235
237
  },
236
238
  subscribe(e) {
237
- let t = Va(e), n = { current: !1 }, r = Qa(() => {
239
+ let t = Ra(e), n = { current: !1 }, r = Za(() => {
238
240
  i.get(), n.current ? t.next?.(i._snapshot) : n.current = !0;
239
241
  });
240
242
  return { unsubscribe: () => {
@@ -242,64 +244,64 @@ function Za(e, t) {
242
244
  } };
243
245
  },
244
246
  _update(e) {
245
- let a = D, o = t?.compare ?? Object.is;
246
- if (n) D = i, ++T, i.depsTail = void 0;
247
+ let a = k, o = t?.compare ?? Object.is;
248
+ if (n) k = i, ++Ba, i.depsTail = void 0;
247
249
  else if (e === void 0) return !1;
248
- n && (i.flags = w.Mutable | w.RecursedCheck);
250
+ n && (i.flags = D.Mutable | D.RecursedCheck);
249
251
  try {
250
252
  let t = i._snapshot, a = typeof e == "function" ? e(t) : e === void 0 && n ? r(t) : e;
251
253
  return t === void 0 || !o(t, a) ? (i._snapshot = a, !0) : !1;
252
254
  } finally {
253
- D = a, n && (i.flags &= ~w.RecursedCheck), k(i);
255
+ k = a, n && (i.flags &= ~D.RecursedCheck), Ja(i);
254
256
  }
255
257
  }
256
258
  };
257
- return n ? (i.flags = w.Mutable | w.Dirty, i.get = function() {
259
+ return n ? (i.flags = D.Mutable | D.Dirty, i.get = function() {
258
260
  let e = i.flags;
259
- if (e & w.Dirty || e & w.Pending && Ka(i.deps, i)) {
261
+ if (e & D.Dirty || e & D.Pending && Wa(i.deps, i)) {
260
262
  if (i._update()) {
261
263
  let e = i.subs;
262
- e !== void 0 && qa(e);
264
+ e !== void 0 && Ga(e);
263
265
  }
264
- } else e & w.Pending && (i.flags = e & ~w.Pending);
265
- return D !== void 0 && Ua(i, D, T), i._snapshot;
266
+ } else e & D.Pending && (i.flags = e & ~D.Pending);
267
+ return k !== void 0 && Va(i, k, Ba), i._snapshot;
266
268
  }) : i.set = function(e) {
267
269
  if (i._update(e)) {
268
270
  let e = i.subs;
269
- e !== void 0 && (Ga(e), qa(e), Xa());
271
+ e !== void 0 && (Ua(e), Ga(e), Ya());
270
272
  }
271
273
  }, i;
272
274
  }
273
- function Qa(e) {
275
+ function Za(e) {
274
276
  let t = () => {
275
- let t = D;
276
- D = n, ++T, n.depsTail = void 0, n.flags = w.Watching | w.RecursedCheck;
277
+ let t = k;
278
+ k = n, ++Ba, n.depsTail = void 0, n.flags = D.Watching | D.RecursedCheck;
277
279
  try {
278
280
  return e();
279
281
  } finally {
280
- D = t, n.flags &= ~w.RecursedCheck, k(n);
282
+ k = t, n.flags &= ~D.RecursedCheck, Ja(n);
281
283
  }
282
284
  }, n = {
283
285
  deps: void 0,
284
286
  depsTail: void 0,
285
287
  subs: void 0,
286
288
  subsTail: void 0,
287
- flags: w.Watching | w.RecursedCheck,
289
+ flags: D.Watching | D.RecursedCheck,
288
290
  notify() {
289
291
  let e = this.flags;
290
- e & w.Dirty || e & w.Pending && Ka(this.deps, this) ? t() : this.flags = w.Watching;
292
+ e & D.Dirty || e & D.Pending && Wa(this.deps, this) ? t() : this.flags = D.Watching;
291
293
  },
292
294
  stop() {
293
- this.flags = w.None, this.depsTail = void 0, k(this);
295
+ this.flags = D.None, this.depsTail = void 0, Ja(this);
294
296
  }
295
297
  };
296
298
  return t(), n;
297
299
  }
298
300
  //#endregion
299
- //#region node_modules/@tanstack/store/dist/esm/store.js
300
- var $a = class {
301
- constructor(e) {
302
- this.atom = Za(e);
301
+ //#region node_modules/@tanstack/store/dist/store.js
302
+ var Qa = class {
303
+ constructor(e, t) {
304
+ this.atom = Xa(e), this.get = this.get.bind(this), this.setState = this.setState.bind(this), this.subscribe = this.subscribe.bind(this), t && (this.actions = t(this));
303
305
  }
304
306
  setState(e) {
305
307
  this.atom.set(e);
@@ -311,11 +313,11 @@ var $a = class {
311
313
  return this.state;
312
314
  }
313
315
  subscribe(e) {
314
- return this.atom.subscribe(Va(e));
316
+ return this.atom.subscribe(Ra(e));
315
317
  }
316
- }, eo = class {
318
+ }, $a = class {
317
319
  constructor(e) {
318
- this.atom = Za(e);
320
+ this.atom = Xa(e);
319
321
  }
320
322
  get state() {
321
323
  return this.atom.get();
@@ -324,15 +326,15 @@ var $a = class {
324
326
  return this.state;
325
327
  }
326
328
  subscribe(e) {
327
- return this.atom.subscribe(Va(e));
329
+ return this.atom.subscribe(Ra(e));
328
330
  }
329
331
  };
330
- function A(e) {
331
- return typeof e == "function" ? new eo(e) : new $a(e);
332
+ function j(e, t) {
333
+ return typeof e == "function" ? new $a(e) : t ? new Qa(e, t) : new Qa(e);
332
334
  }
333
335
  //#endregion
334
336
  //#region node_modules/@tanstack/pacer-lite/dist/lite-throttler.js
335
- var to = class {
337
+ var eo = class {
336
338
  constructor(e, t) {
337
339
  this.fn = e, this.options = t, this.lastExecutionTime = 0, this.isPending = !1, this.maybeExecute = (...e) => {
338
340
  let t = Date.now() - this.lastExecutionTime;
@@ -354,12 +356,12 @@ var to = class {
354
356
  }, this.options.leading === void 0 && this.options.trailing === void 0 && (this.options.leading = !0, this.options.trailing = !0);
355
357
  }
356
358
  };
357
- function no(e, t) {
358
- return new to(e, t).maybeExecute;
359
+ function to(e, t) {
360
+ return new eo(e, t).maybeExecute;
359
361
  }
360
362
  //#endregion
361
363
  //#region node_modules/@tanstack/devtools-event-client/dist/esm/plugin.js
362
- var ro = class {
364
+ var no = class {
363
365
  #e = !0;
364
366
  #t;
365
367
  #n;
@@ -479,7 +481,7 @@ var ro = class {
479
481
  };
480
482
  return this.#n().addEventListener("tanstack-devtools-global", t), () => this.#n().removeEventListener("tanstack-devtools-global", t);
481
483
  }
482
- }, j = new class extends ro {
484
+ }, M = new class extends no {
483
485
  constructor() {
484
486
  super({
485
487
  pluginId: "form-devtools",
@@ -489,19 +491,19 @@ var ro = class {
489
491
  }();
490
492
  //#endregion
491
493
  //#region node_modules/@tanstack/form-core/dist/esm/utils.js
492
- function M(e, t) {
494
+ function N(e, t) {
493
495
  return typeof e == "function" ? e(t) : e;
494
496
  }
495
- function N(e, t) {
497
+ function P(e, t) {
496
498
  return I(t).reduce((e, t) => {
497
499
  if (e === null) return null;
498
500
  if (e !== void 0) return e[t];
499
501
  }, e);
500
502
  }
501
- function P(e, t, n) {
503
+ function F(e, t, n) {
502
504
  let r = I(t);
503
505
  function i(e) {
504
- if (!r.length) return M(n, e);
506
+ if (!r.length) return N(n, e);
505
507
  let t = r.shift();
506
508
  if (typeof t == "string" || typeof t == "number" && !Array.isArray(e)) return typeof e == "object" ? (e === null && (e = {}), {
507
509
  ...e,
@@ -519,7 +521,7 @@ function P(e, t, n) {
519
521
  }
520
522
  return i(e);
521
523
  }
522
- function io(e, t) {
524
+ function ro(e, t) {
523
525
  let n = I(t);
524
526
  function r(e) {
525
527
  if (!e) return;
@@ -547,30 +549,42 @@ function io(e, t) {
547
549
  }
548
550
  return r(e);
549
551
  }
550
- var ao = /^(\d+)$/gm, oo = /\.(\d+)(?=\.)/gm, so = /^(\d+)\./gm, co = /\.(\d+$)/gm, lo = /\.{2,}/gm, uo = "__int__", F = `${uo}$1`;
552
+ var io = 46, ao = 91, oo = 93, so = 48, co = 57;
551
553
  function I(e) {
552
554
  if (Array.isArray(e)) return [...e];
553
555
  if (typeof e != "string") throw Error("Path must be a string.");
554
- return e.replace(/(^\[)|]/gm, "").replace(/\[/g, ".").replace(ao, F).replace(oo, `.${F}.`).replace(so, `${F}.`).replace(co, `.${F}`).replace(lo, ".").split(".").map((e) => {
555
- if (e.startsWith(uo)) {
556
- let t = e.substring(7), n = parseInt(t, 10);
557
- return String(n) === t ? n : t;
558
- }
559
- return e;
560
- });
556
+ let t = e.length, n = [], r = +(t > 0 && e.charCodeAt(0) === ao), i = !0, a = -1;
557
+ for (let o = r; o <= t; o++) {
558
+ let s = o < t ? e.charCodeAt(o) : -1;
559
+ if (o === t || s === io || s === ao || s === oo) {
560
+ let t = o - r;
561
+ if (t > 0) {
562
+ let a = i && (t === 1 || e.charCodeAt(r) !== so), s = e.slice(r, o);
563
+ if (a) {
564
+ let e = parseInt(s, 10);
565
+ t <= 15 || String(e) === s ? n.push(e) : n.push(s);
566
+ } else n.push(s);
567
+ } else a !== oo && !(a === -1 && s === oo) && !(a === s && (s === io || s === ao)) && n.push("");
568
+ r = o + 1, i = !0;
569
+ } else (s < so || s > co) && (i = !1);
570
+ a = s;
571
+ }
572
+ return n.length || n.push(""), n;
561
573
  }
562
- function fo(e, t) {
574
+ function lo(e, t) {
563
575
  return e.length === 0 ? t : t.length === 0 ? e : t.startsWith("[") || t.startsWith(".") ? e + t : `${e}.${t}`;
564
576
  }
565
- function po(e) {
577
+ function uo(e) {
566
578
  return !(Array.isArray(e) && e.length === 0);
567
579
  }
568
- function mo(e, t) {
580
+ function L(e, t) {
569
581
  return t.validationLogic({
570
582
  form: t.form,
583
+ group: t.group,
571
584
  validators: t.validators,
572
585
  event: {
573
586
  type: e,
587
+ fieldName: t.fieldName,
574
588
  async: !1
575
589
  },
576
590
  runValidation: (e) => e.validators.filter(Boolean).map((e) => ({
@@ -579,13 +593,15 @@ function mo(e, t) {
579
593
  }))
580
594
  });
581
595
  }
582
- function ho(e, t) {
596
+ function R(e, t) {
583
597
  let { asyncDebounceMs: n } = t, { onBlurAsyncDebounceMs: r, onChangeAsyncDebounceMs: i, onDynamicAsyncDebounceMs: a } = t.validators || {}, o = n ?? 0;
584
598
  return t.validationLogic({
585
599
  form: t.form,
600
+ group: t.group,
586
601
  validators: t.validators,
587
602
  event: {
588
603
  type: e,
604
+ fieldName: t.fieldName,
589
605
  async: !0
590
606
  },
591
607
  runValidation: (t) => t.validators.filter(Boolean).map((t) => {
@@ -612,8 +628,8 @@ function ho(e, t) {
612
628
  })
613
629
  });
614
630
  }
615
- var L = (e) => !!e && typeof e == "object" && "fields" in e;
616
- function R(e, t) {
631
+ var z = (e) => !!e && typeof e == "object" && "fields" in e;
632
+ function B(e, t) {
617
633
  if (Object.is(e, t)) return !0;
618
634
  if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
619
635
  if (e instanceof Date && t instanceof Date) return e.getTime() === t.getTime();
@@ -628,11 +644,11 @@ function R(e, t) {
628
644
  return !0;
629
645
  }
630
646
  let n = Object.keys(e), r = Object.keys(t);
631
- if (n.length !== r.length) return !1;
632
- for (let i of n) if (!r.includes(i) || !R(e[i], t[i])) return !1;
647
+ if (n.length !== r.length || n.length === 0 && !Array.isArray(e) && !Array.isArray(t) && (Object.getPrototypeOf(e) !== Object.prototype || Object.getPrototypeOf(t) !== Object.prototype)) return !1;
648
+ for (let i of n) if (!r.includes(i) || !B(e[i], t[i])) return !1;
633
649
  return !0;
634
650
  }
635
- var go = ({ newFormValidatorError: e, isPreviousErrorFromFormValidator: t, previousErrorValue: n }) => e ? {
651
+ var fo = ({ newFormValidatorError: e, isPreviousErrorFromFormValidator: t, previousErrorValue: n }) => e ? {
636
652
  newErrorValue: e,
637
653
  newSource: "form"
638
654
  } : t ? {
@@ -644,7 +660,7 @@ var go = ({ newFormValidatorError: e, isPreviousErrorFromFormValidator: t, previ
644
660
  } : {
645
661
  newErrorValue: void 0,
646
662
  newSource: void 0
647
- }, _o = ({ formLevelError: e, fieldLevelError: t }) => t ? {
663
+ }, po = ({ formLevelError: e, fieldLevelError: t }) => t ? {
648
664
  newErrorValue: t,
649
665
  newSource: "field"
650
666
  } : e ? {
@@ -654,23 +670,23 @@ var go = ({ newFormValidatorError: e, isPreviousErrorFromFormValidator: t, previ
654
670
  newErrorValue: void 0,
655
671
  newSource: void 0
656
672
  };
657
- function z(e, t) {
673
+ function V(e, t) {
658
674
  return e == null ? t : {
659
675
  ...e,
660
676
  ...t
661
677
  };
662
678
  }
663
- for (var B = 256, V = [], H; B--;) V[B] = (B + 256).toString(16).substring(1);
664
- function vo() {
679
+ for (var H = 256, mo = [], ho; H--;) mo[H] = (H + 256).toString(16).substring(1);
680
+ function go() {
665
681
  let e = 0, t, n = "";
666
- if (!H || B + 16 > 256) {
667
- for (H = Array(256), e = 256; e--;) H[e] = 256 * Math.random() | 0;
668
- e = 0, B = 0;
682
+ if (!ho || H + 16 > 256) {
683
+ for (ho = Array(256), e = 256; e--;) ho[e] = 256 * Math.random() | 0;
684
+ e = 0, H = 0;
669
685
  }
670
- 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 += "-");
671
- return B++, n;
686
+ for (; e < 16; e++) t = ho[H + e], e === 6 ? n += mo[t & 15 | 64] : e === 8 ? n += mo[t & 63 | 128] : n += mo[t], e & 1 && e > 1 && e < 11 && (n += "-");
687
+ return H++, n;
672
688
  }
673
- var yo = no((e) => j.emit("form-state", {
689
+ var _o = to((e) => M.emit("form-state", {
674
690
  id: e.formId,
675
691
  state: e.store.state
676
692
  }), { wait: 300 });
@@ -698,9 +714,12 @@ function U(e) {
698
714
  for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = U(e[n]));
699
715
  return t;
700
716
  }
717
+ function W(e, t) {
718
+ return t === e || t.startsWith(`${e}.`) || t.startsWith(`${e}[`);
719
+ }
701
720
  //#endregion
702
721
  //#region node_modules/@tanstack/form-core/dist/esm/ValidationLogic.js
703
- var W = (e) => {
722
+ var G = (e) => {
704
723
  if (!e.validators) return e.runValidation({
705
724
  validators: [],
706
725
  form: e.form
@@ -752,7 +771,7 @@ var W = (e) => {
752
771
  };
753
772
  //#endregion
754
773
  //#region node_modules/@tanstack/form-core/dist/esm/standardSchemaValidator.js
755
- function bo(e, t) {
774
+ function vo(e, t) {
756
775
  let n = /* @__PURE__ */ new Map();
757
776
  for (let r of e) {
758
777
  let e = r.path ?? [], i = t, a = "";
@@ -766,23 +785,23 @@ function bo(e, t) {
766
785
  }
767
786
  return Object.fromEntries(n);
768
787
  }
769
- var xo = (e, t) => {
770
- let n = bo(e, t);
788
+ var yo = (e, t) => {
789
+ let n = vo(e, t);
771
790
  return {
772
791
  form: n,
773
792
  fields: n
774
793
  };
775
- }, G = {
794
+ }, K = {
776
795
  validate({ value: e, validationSource: t }, n) {
777
796
  let r = n["~standard"].validate(e);
778
797
  if (r instanceof Promise) throw Error("async function passed to sync validator");
779
- if (r.issues) return t === "field" ? r.issues : xo(r.issues, e);
798
+ if (r.issues) return t === "field" ? r.issues : yo(r.issues, e);
780
799
  },
781
800
  async validateAsync({ value: e, validationSource: t }, n) {
782
801
  let r = await n["~standard"].validate(e);
783
- if (r.issues) return t === "field" ? r.issues : xo(r.issues, e);
802
+ if (r.issues) return t === "field" ? r.issues : yo(r.issues, e);
784
803
  }
785
- }, So = (e) => !!e && "~standard" in e, K = {
804
+ }, bo = (e) => !!e && "~standard" in e, q = {
786
805
  isValidating: !1,
787
806
  isTouched: !1,
788
807
  isBlurred: !1,
@@ -792,83 +811,95 @@ var xo = (e, t) => {
792
811
  isDefaultValue: !0,
793
812
  errors: [],
794
813
  errorMap: {},
795
- errorSourceMap: {}
814
+ errorSourceMap: {},
815
+ _arrayVersion: 0
796
816
  };
797
- function q(e) {
798
- function t(t, n, r) {
799
- let i = o(t, n, "move", r), s = Math.min(n, r), l = Math.max(n, r);
800
- for (let e = s; e <= l; e++) i.push(a(t, e));
801
- let u = Object.keys(e.fieldInfo).reduce((r, i) => (i.startsWith(a(t, n)) && r.set(i, e.getFieldMeta(i)), r), /* @__PURE__ */ new Map());
802
- c(i, n < r ? "up" : "down"), Object.keys(e.fieldInfo).filter((e) => e.startsWith(a(t, r))).forEach((i) => {
803
- let o = i.replace(a(t, r), a(t, n)), s = u.get(o);
804
- s && e.setFieldMeta(i, s);
817
+ function J(e) {
818
+ function t(t) {
819
+ let n = e.getFieldMeta(t) ?? q;
820
+ e.setFieldMeta(t, {
821
+ ...n,
822
+ _arrayVersion: (n._arrayVersion || 0) + 1
823
+ });
824
+ }
825
+ function n(n, r, i) {
826
+ t(n);
827
+ let a = s(n, r, "move", i), c = Math.min(r, i), u = Math.max(r, i);
828
+ for (let e = c; e <= u; e++) a.push(o(n, e));
829
+ let d = Object.keys(e.fieldInfo).reduce((t, i) => (i.startsWith(o(n, r)) && t.set(i, e.getFieldMeta(i)), t), /* @__PURE__ */ new Map());
830
+ l(a, r < i ? "up" : "down"), Object.keys(e.fieldInfo).filter((e) => e.startsWith(o(n, i))).forEach((t) => {
831
+ let a = t.replace(o(n, i), o(n, r)), s = d.get(a);
832
+ s && e.setFieldMeta(t, s);
805
833
  });
806
834
  }
807
- function n(e, t) {
808
- c(o(e, t, "remove"), "up");
835
+ function r(e, n) {
836
+ t(e), l(s(e, n, "remove"), "up");
809
837
  }
810
- function r(t, n, r) {
811
- o(t, n, "swap", r).forEach((i) => {
812
- if (!i.toString().startsWith(a(t, n))) return;
813
- let o = i.toString().replace(a(t, n), a(t, r)), [s, c] = [e.getFieldMeta(i), e.getFieldMeta(o)];
814
- s && e.setFieldMeta(o, s), c && e.setFieldMeta(i, c);
838
+ function i(n, r, i) {
839
+ t(n), s(n, r, "swap", i).forEach((t) => {
840
+ if (!t.toString().startsWith(o(n, r))) return;
841
+ let a = t.toString().replace(o(n, r), o(n, i)), [s, c] = [e.getFieldMeta(t), e.getFieldMeta(a)];
842
+ s && e.setFieldMeta(a, s), c && e.setFieldMeta(t, c);
815
843
  });
816
844
  }
817
- function i(t, n) {
818
- let r = o(t, n, "insert");
819
- c(r, "down"), r.forEach((r) => {
820
- r.toString().startsWith(a(t, n)) && e.setFieldMeta(r, l());
845
+ function a(n, r) {
846
+ t(n);
847
+ let i = s(n, r, "insert");
848
+ l(i, "down"), i.forEach((t) => {
849
+ t.toString().startsWith(o(n, r)) && e.setFieldMeta(t, u());
821
850
  });
822
851
  }
823
- function a(e, t) {
852
+ function o(e, t) {
824
853
  return `${e}[${t}]`;
825
854
  }
826
- function o(t, n, r, i) {
827
- let o = [a(t, n)];
855
+ function s(t, n, r, i) {
856
+ let a = [o(t, n)];
828
857
  switch (r) {
829
858
  case "swap":
830
- o.push(a(t, i));
859
+ a.push(o(t, i));
831
860
  break;
832
861
  case "move": {
833
862
  let [e, r] = [Math.min(n, i), Math.max(n, i)];
834
- for (let n = e; n <= r; n++) o.push(a(t, n));
863
+ for (let n = e; n <= r; n++) a.push(o(t, n));
835
864
  break;
836
865
  }
837
866
  default: {
838
867
  let r = e.getFieldValue(t), i = Array.isArray(r) ? r.length : 0;
839
- for (let e = n + 1; e < i; e++) o.push(a(t, e));
868
+ for (let e = n + 1; e < i; e++) a.push(o(t, e));
840
869
  break;
841
870
  }
842
871
  }
843
- return Object.keys(e.fieldInfo).filter((e) => o.some((t) => e.startsWith(t)));
872
+ return Object.keys(e.fieldInfo).filter((e) => a.some((t) => e.startsWith(t)));
844
873
  }
845
- function s(e, t) {
874
+ function c(e, t) {
846
875
  return e.replace(/\[(\d+)\]/, (e, n) => {
847
876
  let r = parseInt(n, 10);
848
877
  return `[${t === "up" ? r + 1 : Math.max(0, r - 1)}]`;
849
878
  });
850
879
  }
851
- function c(t, n) {
880
+ function l(t, n) {
852
881
  (n === "up" ? t : [...t].reverse()).forEach((t) => {
853
- let r = s(t.toString(), n), i = e.getFieldMeta(r);
854
- i ? e.setFieldMeta(t, i) : e.setFieldMeta(t, l());
882
+ let r = c(t.toString(), n), i = e.getFieldMeta(r);
883
+ i ? e.setFieldMeta(t, i) : e.setFieldMeta(t, u());
855
884
  });
856
885
  }
857
- let l = () => K;
886
+ let u = () => q;
858
887
  return {
859
- handleArrayMove: t,
860
- handleArrayRemove: n,
861
- handleArraySwap: r,
862
- handleArrayInsert: i
888
+ bumpArrayVersion: t,
889
+ handleArrayMove: n,
890
+ handleArrayRemove: r,
891
+ handleArraySwap: i,
892
+ handleArrayInsert: a
863
893
  };
864
894
  }
865
895
  //#endregion
866
896
  //#region node_modules/@tanstack/form-core/dist/esm/FormApi.js
867
- function Co(e) {
897
+ function xo(e) {
868
898
  return {
869
899
  values: e.values ?? {},
870
900
  errorMap: e.errorMap ?? {},
871
901
  fieldMetaBase: e.fieldMetaBase ?? {},
902
+ formGroupStateBase: e.formGroupStateBase ?? {},
872
903
  isSubmitted: e.isSubmitted ?? !1,
873
904
  isSubmitting: e.isSubmitting ?? !1,
874
905
  isValidating: e.isValidating ?? !1,
@@ -884,27 +915,27 @@ function Co(e) {
884
915
  }
885
916
  };
886
917
  }
887
- var wo = class {
918
+ var So = class {
888
919
  constructor(e) {
889
- this.options = {}, this.fieldInfo = {}, this.mount = () => {
920
+ this.options = {}, this.fieldInfo = {}, this.formGroupApis = /* @__PURE__ */ new Set(), this.mount = () => {
890
921
  let e = this.store.subscribe(() => {
891
- yo(this);
892
- }), t = j.on("request-form-state", (e) => {
893
- e.payload.id === this._formId && j.emit("form-api", {
922
+ _o(this);
923
+ }), t = M.on("request-form-state", (e) => {
924
+ e.payload.id === this._formId && M.emit("form-api", {
894
925
  id: this._formId,
895
926
  state: this.store.state,
896
927
  options: this.options
897
928
  });
898
- }), n = j.on("request-form-reset", (e) => {
929
+ }), n = M.on("request-form-reset", (e) => {
899
930
  e.payload.id === this._formId && this.reset();
900
- }), r = j.on("request-form-force-submit", (e) => {
931
+ }), r = M.on("request-form-force-submit", (e) => {
901
932
  e.payload.id === this._formId && (this._devtoolsSubmissionOverride = !0, this.handleSubmit(), this._devtoolsSubmissionOverride = !1);
902
933
  }), i = () => {
903
- r(), n(), t(), e.unsubscribe(), j.emit("form-unmounted", { id: this._formId });
934
+ r(), n(), t(), e.unsubscribe(), M.emit("form-unmounted", { id: this._formId });
904
935
  };
905
936
  this.options.listeners?.onMount?.({ formApi: this });
906
937
  let { onMount: a } = this.options.validators || {};
907
- return j.emit("form-api", {
938
+ return M.emit("form-api", {
908
939
  id: this._formId,
909
940
  state: this.store.state,
910
941
  options: this.options
@@ -913,31 +944,45 @@ var wo = class {
913
944
  if (!e) return;
914
945
  let t = this.options;
915
946
  this.options = e;
916
- let n = e.defaultValues && !R(e.defaultValues, t.defaultValues) && !this.state.isTouched, r = !R(e.defaultState, t.defaultState) && !this.state.isTouched;
917
- !n && !r || (O(() => {
918
- this.baseStore.setState(() => Co(Object.assign({}, this.state, r ? e.defaultState : {}, n ? { values: e.defaultValues } : {})));
919
- }), j.emit("form-api", {
920
- id: this._formId,
921
- state: this.store.state,
922
- options: this.options
923
- }));
947
+ let n = e.defaultValues && !B(e.defaultValues, t.defaultValues) && !this.state.isTouched, r = !B(e.defaultState, t.defaultState) && !this.state.isTouched;
948
+ if (!(!n && !r)) {
949
+ if (A(() => {
950
+ this.baseStore.setState(() => xo(Object.assign({}, this.state, r ? e.defaultState : {}, n ? { values: e.defaultValues } : {})));
951
+ }), n) {
952
+ let e = J(this);
953
+ for (let t of Object.keys(this.fieldInfo)) Array.isArray(this.getFieldValue(t)) && e.bumpArrayVersion(t);
954
+ }
955
+ M.emit("form-api", {
956
+ id: this._formId,
957
+ state: this.store.state,
958
+ options: this.options
959
+ });
960
+ }
924
961
  }, this.reset = (e, t) => {
925
962
  let { fieldMeta: n } = this.state, r = this.resetFieldMeta(n);
926
963
  e && !t?.keepDefaultValues && (this.options = {
927
964
  ...this.options,
928
965
  defaultValues: e
929
- }), this.baseStore.setState(() => Co({
930
- ...this.options.defaultState,
931
- values: e ?? this.options.defaultValues ?? this.options.defaultState?.values,
932
- fieldMetaBase: r
933
- }));
966
+ }), this.baseStore.setState(() => {
967
+ let t = e ?? this.options.defaultValues ?? this.options.defaultState?.values;
968
+ return e || Object.values(this.fieldInfo).forEach((e) => {
969
+ e.instance && e.instance.options.defaultValue !== void 0 && (t = F(t, e.instance.name, e.instance.options.defaultValue));
970
+ }), xo({
971
+ ...this.options.defaultState,
972
+ values: t,
973
+ fieldMetaBase: r
974
+ });
975
+ });
934
976
  }, this.validateAllFields = async (e) => {
935
977
  let t = [];
936
- return O(() => {
978
+ return A(() => {
937
979
  Object.values(this.fieldInfo).forEach((n) => {
938
980
  if (!n.instance) return;
939
981
  let r = n.instance;
940
- t.push(Promise.resolve().then(() => r.validate(e, { skipFormValidation: !0 }))), n.instance.state.meta.isTouched || n.instance.setMeta((e) => ({
982
+ t.push(Promise.resolve().then(() => r.validate(e, {
983
+ skipFormValidation: !0,
984
+ skipGroupValidation: !0
985
+ }))), n.instance.store.state.meta.isTouched || n.instance.setMeta((e) => ({
941
986
  ...e,
942
987
  isTouched: !0
943
988
  }));
@@ -947,7 +992,7 @@ var wo = class {
947
992
  let r = this.getFieldValue(e), i = Array.isArray(r) ? Math.max(r.length - 1, 0) : null, a = [`${e}[${t}]`];
948
993
  for (let n = t + 1; n <= (i ?? 0); n++) a.push(`${e}[${n}]`);
949
994
  let o = Object.keys(this.fieldInfo).filter((e) => a.some((t) => e.startsWith(t))), s = [];
950
- return O(() => {
995
+ return A(() => {
951
996
  o.forEach((e) => {
952
997
  s.push(Promise.resolve().then(() => this.validateField(e, n)));
953
998
  });
@@ -958,20 +1003,21 @@ var wo = class {
958
1003
  let { hasErrored: n } = this.validateSync(t);
959
1004
  return n && !this.options.asyncAlways ? this.getFieldMeta(e)?.errors ?? [] : this.validateAsync(t).then(() => this.getFieldMeta(e)?.errors ?? []);
960
1005
  }
961
- return n.state.meta.isTouched || n.setMeta((e) => ({
1006
+ return n.store.state.meta.isTouched || n.setMeta((e) => ({
962
1007
  ...e,
963
1008
  isTouched: !0
964
1009
  })), n.validate(t);
965
- }, this.validateSync = (e) => {
966
- let t = mo(e, {
1010
+ }, this.validateSync = (e, t) => {
1011
+ let n = L(e, {
967
1012
  ...this.options,
968
1013
  form: this,
969
- validationLogic: this.options.validationLogic || W
970
- }), n = !1, r = {};
971
- return O(() => {
972
- for (let e of t) {
1014
+ group: t?.group,
1015
+ validationLogic: this.options.validationLogic || G
1016
+ }), r = !1, i = {};
1017
+ return A(() => {
1018
+ for (let e of n) {
973
1019
  if (!e.validate) continue;
974
- let { formError: t, fieldErrors: i } = J(this.runValidator({
1020
+ let { formError: n, fieldErrors: a } = Co(this.runValidator({
975
1021
  validate: e.validate,
976
1022
  value: {
977
1023
  value: this.state.values,
@@ -979,79 +1025,82 @@ var wo = class {
979
1025
  validationSource: "form"
980
1026
  },
981
1027
  type: "validate"
982
- })), a = Y(e.cause), o = /* @__PURE__ */ new Set([...Object.keys(this.state.fieldMeta), ...Object.keys(i || {})]);
983
- for (let e of o) {
984
- if (this.baseStore.state.fieldMetaBase[e] === void 0 && !i?.[e]) continue;
985
- let { errorMap: t, errorSourceMap: n } = this.getFieldMeta(e) ?? K, o = i?.[e], { newErrorValue: s, newSource: c } = go({
986
- newFormValidatorError: o,
987
- isPreviousErrorFromFormValidator: n?.[a] === "form",
988
- previousErrorValue: t?.[a]
1028
+ })), o = Y(e.cause), s = /* @__PURE__ */ new Set([...Object.keys(this.state.fieldMeta), ...Object.keys(a || {})]);
1029
+ t?.filterFieldNames && (s = new Set([...s].filter(t.filterFieldNames)));
1030
+ for (let e of s) {
1031
+ if (this.baseStore.state.fieldMetaBase[e] === void 0 && !a?.[e]) continue;
1032
+ let { errorMap: t, errorSourceMap: n } = this.getFieldMeta(e) ?? q, r = a?.[e], { newErrorValue: s, newSource: c } = fo({
1033
+ newFormValidatorError: r,
1034
+ isPreviousErrorFromFormValidator: n?.[o] === "form",
1035
+ previousErrorValue: t?.[o]
989
1036
  });
990
- c === "form" && (r[e] = {
991
- ...r[e],
992
- [a]: o
993
- }), t?.[a] !== s && this.setFieldMeta(e, (e = K) => ({
1037
+ c === "form" && (i[e] = {
1038
+ ...i[e],
1039
+ [o]: r
1040
+ }), t?.[o] !== s && this.setFieldMeta(e, (e = q) => ({
994
1041
  ...e,
995
1042
  errorMap: {
996
1043
  ...e.errorMap,
997
- [a]: s
1044
+ [o]: s
998
1045
  },
999
1046
  errorSourceMap: {
1000
1047
  ...e.errorSourceMap,
1001
- [a]: c
1048
+ [o]: c
1002
1049
  }
1003
1050
  }));
1004
1051
  }
1005
- this.state.errorMap?.[a] !== t && this.baseStore.setState((e) => ({
1052
+ t?.dontUpdateFormErrorMap || this.state.errorMap?.[o] !== n && this.baseStore.setState((e) => ({
1006
1053
  ...e,
1007
1054
  errorMap: {
1008
1055
  ...e.errorMap,
1009
- [a]: t
1056
+ [o]: n
1010
1057
  }
1011
- })), (t || i) && (n = !0);
1058
+ })), (n || a) && (r = !0);
1012
1059
  }
1013
- let i = Y("submit");
1014
- this.state.errorMap?.[i] && e !== "submit" && !n && this.baseStore.setState((e) => ({
1060
+ if (t?.dontUpdateFormErrorMap) return;
1061
+ let a = Y("submit");
1062
+ this.state.errorMap?.[a] && e !== "submit" && !r && this.baseStore.setState((e) => ({
1015
1063
  ...e,
1016
1064
  errorMap: {
1017
1065
  ...e.errorMap,
1018
- [i]: void 0
1066
+ [a]: void 0
1019
1067
  }
1020
1068
  }));
1021
- let a = Y("server");
1022
- this.state.errorMap?.[a] && e !== "server" && !n && this.baseStore.setState((e) => ({
1069
+ let o = Y("server");
1070
+ this.state.errorMap?.[o] && e !== "server" && !r && this.baseStore.setState((e) => ({
1023
1071
  ...e,
1024
1072
  errorMap: {
1025
1073
  ...e.errorMap,
1026
- [a]: void 0
1074
+ [o]: void 0
1027
1075
  }
1028
1076
  }));
1029
1077
  }), {
1030
- hasErrored: n,
1031
- fieldsErrorMap: r
1078
+ hasErrored: r,
1079
+ fieldsErrorMap: i
1032
1080
  };
1033
- }, this.validateAsync = async (e) => {
1034
- let t = ho(e, {
1081
+ }, this.validateAsync = async (e, t) => {
1082
+ let n = R(e, {
1035
1083
  ...this.options,
1036
1084
  form: this,
1037
- validationLogic: this.options.validationLogic || W
1085
+ group: t?.group,
1086
+ validationLogic: this.options.validationLogic || G
1038
1087
  });
1039
1088
  this.state.isFormValidating || this.baseStore.setState((e) => ({
1040
1089
  ...e,
1041
1090
  isFormValidating: !0
1042
1091
  }));
1043
- let n = [], r;
1044
- for (let e of t) {
1092
+ let r = [], i;
1093
+ for (let e of n) {
1045
1094
  if (!e.validate) continue;
1046
- let t = Y(e.cause);
1047
- this.state.validationMetaMap[t]?.lastAbortController.abort();
1048
- let i = new AbortController();
1049
- this.state.validationMetaMap[t] = { lastAbortController: i }, n.push(new Promise(async (t) => {
1050
- let n;
1095
+ let n = Y(e.cause);
1096
+ this.state.validationMetaMap[n]?.lastAbortController.abort();
1097
+ let a = new AbortController();
1098
+ this.state.validationMetaMap[n] = { lastAbortController: a }, r.push(new Promise(async (n) => {
1099
+ let r;
1051
1100
  try {
1052
- n = await new Promise((t, n) => {
1101
+ r = await new Promise((t, n) => {
1053
1102
  setTimeout(async () => {
1054
- if (i.signal.aborted) return t(void 0);
1103
+ if (a.signal.aborted) return t(void 0);
1055
1104
  try {
1056
1105
  t(await this.runValidator({
1057
1106
  validate: e.validate,
@@ -1059,7 +1108,7 @@ var wo = class {
1059
1108
  value: this.state.values,
1060
1109
  formApi: this,
1061
1110
  validationSource: "form",
1062
- signal: i.signal
1111
+ signal: a.signal
1063
1112
  },
1064
1113
  type: "validateAsync"
1065
1114
  }));
@@ -1069,54 +1118,55 @@ var wo = class {
1069
1118
  }, e.debounceMs);
1070
1119
  });
1071
1120
  } catch (e) {
1072
- n = e;
1121
+ r = e;
1073
1122
  }
1074
- let { formError: a, fieldErrors: o } = J(n);
1075
- o && (r = r ? {
1076
- ...r,
1077
- ...o
1078
- } : o);
1079
- let s = Y(e.cause);
1080
- for (let e of Object.keys(this.state.fieldMeta)) {
1123
+ let { formError: o, fieldErrors: s } = Co(r);
1124
+ s && (i = i ? {
1125
+ ...i,
1126
+ ...s
1127
+ } : s);
1128
+ let c = Y(e.cause), l = Object.keys(this.state.fieldMeta);
1129
+ t?.filterFieldNames && (l = l.filter(t.filterFieldNames));
1130
+ for (let e of l) {
1081
1131
  if (this.baseStore.state.fieldMetaBase[e] === void 0) continue;
1082
1132
  let t = this.getFieldMeta(e);
1083
1133
  if (!t) continue;
1084
- let { errorMap: n, errorSourceMap: i } = t, a = r?.[e], { newErrorValue: o, newSource: c } = go({
1134
+ let { errorMap: n, errorSourceMap: r } = t, a = i?.[e], { newErrorValue: o, newSource: s } = fo({
1085
1135
  newFormValidatorError: a,
1086
- isPreviousErrorFromFormValidator: i?.[s] === "form",
1087
- previousErrorValue: n?.[s]
1136
+ isPreviousErrorFromFormValidator: r?.[c] === "form",
1137
+ previousErrorValue: n?.[c]
1088
1138
  });
1089
- n?.[s] !== o && this.setFieldMeta(e, (e) => ({
1139
+ n?.[c] !== o && this.setFieldMeta(e, (e) => ({
1090
1140
  ...e,
1091
1141
  errorMap: {
1092
1142
  ...e.errorMap,
1093
- [s]: o
1143
+ [c]: o
1094
1144
  },
1095
1145
  errorSourceMap: {
1096
1146
  ...e.errorSourceMap,
1097
- [s]: c
1147
+ [c]: s
1098
1148
  }
1099
1149
  }));
1100
1150
  }
1101
- this.baseStore.setState((e) => ({
1151
+ t?.dontUpdateFormErrorMap || this.baseStore.setState((e) => ({
1102
1152
  ...e,
1103
1153
  errorMap: {
1104
1154
  ...e.errorMap,
1105
- [s]: a
1155
+ [c]: o
1106
1156
  }
1107
- })), t(r ? {
1108
- fieldErrors: r,
1109
- errorMapKey: s
1157
+ })), n(i ? {
1158
+ fieldErrors: i,
1159
+ errorMapKey: c
1110
1160
  } : void 0);
1111
1161
  }));
1112
1162
  }
1113
- let i = [], a = {};
1114
- if (n.length) {
1115
- i = await Promise.all(n);
1116
- for (let e of i) if (e?.fieldErrors) {
1163
+ let a = [], o = {};
1164
+ if (r.length) {
1165
+ a = await Promise.all(r);
1166
+ for (let e of a) if (e?.fieldErrors) {
1117
1167
  let { errorMapKey: t } = e;
1118
- for (let [n, r] of Object.entries(e.fieldErrors)) a[n] = {
1119
- ...a[n] || {},
1168
+ for (let [n, r] of Object.entries(e.fieldErrors)) o[n] = {
1169
+ ...o[n] || {},
1120
1170
  [t]: r
1121
1171
  };
1122
1172
  }
@@ -1124,19 +1174,19 @@ var wo = class {
1124
1174
  return this.baseStore.setState((e) => ({
1125
1175
  ...e,
1126
1176
  isFormValidating: !1
1127
- })), a;
1128
- }, this.validate = (e) => {
1129
- let { hasErrored: t, fieldsErrorMap: n } = this.validateSync(e);
1130
- return t && !this.options.asyncAlways ? n : this.validateAsync(e);
1177
+ })), o;
1178
+ }, this.validate = (e, t) => {
1179
+ let { hasErrored: n, fieldsErrorMap: r } = this.validateSync(e, t);
1180
+ return n && !this.options.asyncAlways ? r : this.validateAsync(e, t);
1131
1181
  }, this._handleSubmit = async (e) => {
1132
1182
  this.baseStore.setState((e) => ({
1133
1183
  ...e,
1134
1184
  isSubmitted: !1,
1135
1185
  submissionAttempts: e.submissionAttempts + 1,
1136
1186
  isSubmitSuccessful: !1
1137
- })), O(() => {
1187
+ })), A(() => {
1138
1188
  Object.values(this.fieldInfo).forEach((e) => {
1139
- e.instance && (e.instance.state.meta.isTouched || e.instance.setMeta((e) => ({
1189
+ e.instance && (e.instance.store.state.meta.isTouched || e.instance.setMeta((e) => ({
1140
1190
  ...e,
1141
1191
  isTouched: !0
1142
1192
  })));
@@ -1166,7 +1216,7 @@ var wo = class {
1166
1216
  value: this.state.values,
1167
1217
  formApi: this,
1168
1218
  meta: t
1169
- }), j.emit("form-submission", {
1219
+ }), M.emit("form-submission", {
1170
1220
  id: this._formId,
1171
1221
  submissionAttempt: this.state.submissionAttempts,
1172
1222
  successful: !1,
@@ -1180,7 +1230,7 @@ var wo = class {
1180
1230
  value: this.state.values,
1181
1231
  formApi: this,
1182
1232
  meta: t
1183
- }), j.emit("form-submission", {
1233
+ }), M.emit("form-submission", {
1184
1234
  id: this._formId,
1185
1235
  submissionAttempt: this.state.submissionAttempts,
1186
1236
  successful: !1,
@@ -1189,12 +1239,9 @@ var wo = class {
1189
1239
  });
1190
1240
  return;
1191
1241
  }
1192
- O(() => {
1242
+ A(() => {
1193
1243
  Object.values(this.fieldInfo).forEach((e) => {
1194
- e.instance?.options.listeners?.onSubmit?.({
1195
- value: e.instance.state.value,
1196
- fieldApi: e.instance
1197
- });
1244
+ e.instance?.triggerOnSubmitListener();
1198
1245
  });
1199
1246
  }), this.options.listeners?.onSubmit?.({
1200
1247
  formApi: this,
@@ -1205,12 +1252,12 @@ var wo = class {
1205
1252
  value: this.state.values,
1206
1253
  formApi: this,
1207
1254
  meta: t
1208
- }), O(() => {
1255
+ }), A(() => {
1209
1256
  this.baseStore.setState((e) => ({
1210
1257
  ...e,
1211
1258
  isSubmitted: !0,
1212
1259
  isSubmitSuccessful: !0
1213
- })), j.emit("form-submission", {
1260
+ })), M.emit("form-submission", {
1214
1261
  id: this._formId,
1215
1262
  submissionAttempt: this.state.submissionAttempts,
1216
1263
  successful: !0
@@ -1220,7 +1267,7 @@ var wo = class {
1220
1267
  throw this.baseStore.setState((e) => ({
1221
1268
  ...e,
1222
1269
  isSubmitSuccessful: !1
1223
- })), j.emit("form-submission", {
1270
+ })), M.emit("form-submission", {
1224
1271
  id: this._formId,
1225
1272
  submissionAttempt: this.state.submissionAttempts,
1226
1273
  successful: !1,
@@ -1228,7 +1275,7 @@ var wo = class {
1228
1275
  onError: e
1229
1276
  }), n(), e;
1230
1277
  }
1231
- }, this.getFieldValue = (e) => N(this.state.values, e), this.getFieldMeta = (e) => this.state.fieldMeta[e], this.getFieldInfo = (e) => this.fieldInfo[e] ||= {
1278
+ }, this.getFieldValue = (e) => P(this.state.values, e), this.getFieldMeta = (e) => this.state.fieldMeta[e], this.getFormGroupMeta = (e) => this.formGroupMetaDerived.state[e], this.getFieldInfo = (e) => this.fieldInfo[e] ||= {
1232
1279
  instance: null,
1233
1280
  validationMetaMap: {
1234
1281
  onChange: void 0,
@@ -1243,15 +1290,15 @@ var wo = class {
1243
1290
  ...n,
1244
1291
  fieldMetaBase: {
1245
1292
  ...n.fieldMetaBase,
1246
- [e]: M(t, n.fieldMetaBase[e])
1293
+ [e]: N(t, n.fieldMetaBase[e])
1247
1294
  }
1248
1295
  }));
1249
1296
  }, this.resetFieldMeta = (e) => Object.keys(e).reduce((e, t) => {
1250
1297
  let n = t;
1251
- return e[n] = K, e;
1298
+ return e[n] = q, e;
1252
1299
  }, {}), this.setFieldValue = (e, t, n) => {
1253
1300
  let r = n?.dontUpdateMeta ?? !1, i = n?.dontRunListeners ?? !1, a = n?.dontValidate ?? !1;
1254
- O(() => {
1301
+ A(() => {
1255
1302
  r || this.setFieldMeta(e, (e) => ({
1256
1303
  ...e,
1257
1304
  isTouched: !0,
@@ -1262,7 +1309,7 @@ var wo = class {
1262
1309
  }
1263
1310
  })), this.baseStore.setState((n) => ({
1264
1311
  ...n,
1265
- values: P(n.values, e, t)
1312
+ values: F(n.values, e, t)
1266
1313
  }));
1267
1314
  }), i || this.getFieldInfo(e).instance?.triggerOnChangeListener(), a || this.validateField(e, "change");
1268
1315
  }, this.deleteField = (e) => {
@@ -1273,24 +1320,24 @@ var wo = class {
1273
1320
  this.baseStore.setState((e) => {
1274
1321
  let n = { ...e };
1275
1322
  return t.forEach((e) => {
1276
- n.values = io(n.values, e), delete this.fieldInfo[e], delete n.fieldMetaBase[e];
1323
+ n.values = ro(n.values, e), delete this.fieldInfo[e], delete n.fieldMetaBase[e];
1277
1324
  }), n;
1278
1325
  });
1279
1326
  }, this.pushFieldValue = (e, t, n) => {
1280
- this.setFieldValue(e, (e) => [...Array.isArray(e) ? e : [], t], n);
1327
+ this.setFieldValue(e, (e) => [...Array.isArray(e) ? e : [], t], n), J(this).bumpArrayVersion(e);
1281
1328
  }, this.insertFieldValue = async (e, t, n, r) => {
1282
1329
  this.setFieldValue(e, (e) => [
1283
1330
  ...e.slice(0, t),
1284
1331
  n,
1285
1332
  ...e.slice(t)
1286
- ], z(r, { dontValidate: !0 }));
1333
+ ], V(r, { dontValidate: !0 }));
1287
1334
  let i = r?.dontValidate ?? !1;
1288
- i || await this.validateField(e, "change"), q(this).handleArrayInsert(e, t), i || await this.validateArrayFieldsStartingFrom(e, t, "change");
1335
+ i || await this.validateField(e, "change"), J(this).handleArrayInsert(e, t), i || await this.validateArrayFieldsStartingFrom(e, t, "change");
1289
1336
  }, this.replaceFieldValue = async (e, t, n, r) => {
1290
- 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"));
1337
+ this.setFieldValue(e, (e) => e.map((e, r) => r === t ? n : e), V(r, { dontValidate: !0 })), J(this).bumpArrayVersion(e), (r?.dontValidate ?? !1) || (await this.validateField(e, "change"), await this.validateArrayFieldsStartingFrom(e, t, "change"));
1291
1338
  }, this.removeFieldValue = async (e, t, n) => {
1292
1339
  let r = this.getFieldValue(e), i = Array.isArray(r) ? Math.max(r.length - 1, 0) : null;
1293
- if (this.setFieldValue(e, (e) => e.filter((e, n) => n !== t), z(n, { dontValidate: !0 })), q(this).handleArrayRemove(e, t), i !== null) {
1340
+ if (this.setFieldValue(e, (e) => e.filter((e, n) => n !== t), V(n, { dontValidate: !0 })), J(this).handleArrayRemove(e, t), i !== null) {
1294
1341
  let t = `${e}[${i}]`;
1295
1342
  this.deleteField(t);
1296
1343
  }
@@ -1298,35 +1345,38 @@ var wo = class {
1298
1345
  }, this.swapFieldValues = (e, t, n, r) => {
1299
1346
  this.setFieldValue(e, (e) => {
1300
1347
  let r = e[t], i = e[n];
1301
- return P(P(e, `${t}`, i), `${n}`, r);
1302
- }, 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"));
1348
+ return F(F(e, `${t}`, i), `${n}`, r);
1349
+ }, V(r, { dontValidate: !0 })), J(this).handleArraySwap(e, t, n), (r?.dontValidate ?? !1) || (this.validateField(e, "change"), this.validateField(`${e}[${t}]`, "change"), this.validateField(`${e}[${n}]`, "change"));
1303
1350
  }, this.moveFieldValues = (e, t, n, r) => {
1304
1351
  this.setFieldValue(e, (e) => {
1305
1352
  let r = [...e];
1306
1353
  return r.splice(n, 0, r.splice(t, 1)[0]), r;
1307
- }, 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"));
1354
+ }, V(r, { dontValidate: !0 })), J(this).handleArrayMove(e, t, n), (r?.dontValidate ?? !1) || (this.validateField(e, "change"), this.validateField(`${e}[${t}]`, "change"), this.validateField(`${e}[${n}]`, "change"));
1308
1355
  }, this.clearFieldValues = (e, t) => {
1309
1356
  let n = this.getFieldValue(e), r = Array.isArray(n) ? Math.max(n.length - 1, 0) : null;
1310
- if (this.setFieldValue(e, [], z(t, { dontValidate: !0 })), r !== null) for (let t = 0; t <= r; t++) {
1357
+ if (this.setFieldValue(e, [], V(t, { dontValidate: !0 })), J(this).bumpArrayVersion(e), r !== null) for (let t = 0; t <= r; t++) {
1311
1358
  let n = `${e}[${t}]`;
1312
1359
  this.deleteField(n);
1313
1360
  }
1314
1361
  (t?.dontValidate ?? !1) || this.validateField(e, "change");
1315
1362
  }, this.resetField = (e) => {
1316
- this.baseStore.setState((t) => ({
1317
- ...t,
1318
- fieldMetaBase: {
1319
- ...t.fieldMetaBase,
1320
- [e]: K
1321
- },
1322
- values: this.options.defaultValues ? P(t.values, e, N(this.options.defaultValues, e)) : t.values
1323
- }));
1363
+ this.baseStore.setState((t) => {
1364
+ let n = this.getFieldInfo(e).instance?.options.defaultValue, r = P(this.options.defaultValues, e), i = n ?? r;
1365
+ return {
1366
+ ...t,
1367
+ fieldMetaBase: {
1368
+ ...t.fieldMetaBase,
1369
+ [e]: q
1370
+ },
1371
+ values: i === void 0 ? t.values : F(t.values, e, i)
1372
+ };
1373
+ });
1324
1374
  }, this.setErrorMap = (e) => {
1325
- O(() => {
1375
+ A(() => {
1326
1376
  Object.entries(e).forEach(([e, t]) => {
1327
1377
  let n = e;
1328
- if (L(t)) {
1329
- let { formError: e, fieldErrors: r } = J(t);
1378
+ if (z(t)) {
1379
+ let { formError: e, fieldErrors: r } = Co(t);
1330
1380
  for (let e of Object.keys(this.fieldInfo)) this.getFieldMeta(e) && this.setFieldMeta(e, (t) => ({
1331
1381
  ...t,
1332
1382
  errorMap: {
@@ -1363,18 +1413,18 @@ var wo = class {
1363
1413
  errors: n.errors,
1364
1414
  errorMap: n.errorMap
1365
1415
  }), e), {})
1366
- }), this.parseValuesWithSchema = (e) => G.validate({
1416
+ }), this.parseValuesWithSchema = (e) => K.validate({
1367
1417
  value: this.state.values,
1368
1418
  validationSource: "form"
1369
- }, e), this.parseValuesWithSchemaAsync = (e) => G.validateAsync({
1419
+ }, e), this.parseValuesWithSchemaAsync = (e) => K.validateAsync({
1370
1420
  value: this.state.values,
1371
1421
  validationSource: "form"
1372
1422
  }, e), this.timeoutIds = {
1373
1423
  validations: {},
1374
1424
  listeners: {},
1375
1425
  formListeners: {}
1376
- }, this._formId = e?.formId ?? vo(), this._devtoolsSubmissionOverride = !1;
1377
- let t = Co({
1426
+ }, this._formId = e?.formId ?? go(), this._devtoolsSubmissionOverride = !1;
1427
+ let t = xo({
1378
1428
  ...e?.defaultState,
1379
1429
  values: e?.defaultValues ?? e?.defaultState?.values
1380
1430
  });
@@ -1382,7 +1432,7 @@ var wo = class {
1382
1432
  t = e.transform({ state: t }).state;
1383
1433
  for (let e of Object.keys(t.errorMap)) {
1384
1434
  let n = t.errorMap[e];
1385
- if (!(n === void 0 || !L(n))) for (let r of Object.keys(n.fields)) {
1435
+ if (!(n === void 0 || !z(n))) for (let r of Object.keys(n.fields)) {
1386
1436
  let i = n.fields[r];
1387
1437
  if (i === void 0) continue;
1388
1438
  let a = t.fieldMetaBase[r];
@@ -1391,6 +1441,7 @@ var wo = class {
1391
1441
  isValidating: !1,
1392
1442
  isBlurred: !1,
1393
1443
  isDirty: !1,
1444
+ _arrayVersion: 0,
1394
1445
  ...a ?? {},
1395
1446
  errorSourceMap: {
1396
1447
  ...a?.errorSourceMap ?? {},
@@ -1404,18 +1455,18 @@ var wo = class {
1404
1455
  }
1405
1456
  }
1406
1457
  }
1407
- this.baseStore = A(t);
1458
+ this.baseStore = j(t);
1408
1459
  let n;
1409
- this.fieldMetaDerived = A((e) => {
1460
+ this.fieldMetaDerived = j((e) => {
1410
1461
  let t = this.baseStore.get(), r = 0, i = {};
1411
1462
  for (let a of Object.keys(t.fieldMetaBase)) {
1412
- let o = t.fieldMetaBase[a], s = n?.fieldMetaBase[a], c = e?.[a], l = N(t.values, a), u = c?.errors;
1463
+ let o = t.fieldMetaBase[a], s = n?.fieldMetaBase[a], c = e?.[a], l = P(t.values, a), u = c?.errors;
1413
1464
  if (!s || o.errorMap !== s.errorMap) {
1414
1465
  u = Object.values(o.errorMap ?? {}).filter((e) => e !== void 0);
1415
1466
  let e = this.getFieldInfo(a)?.instance;
1416
1467
  (!e || !e.options.disableErrorFlat) && (u = u.flat(1));
1417
1468
  }
1418
- let d = !po(u), f = !o.isDirty, p = R(l, N(this.options.defaultValues, a)) || R(l, this.getFieldInfo(a)?.instance?.options.defaultValue);
1469
+ let d = !uo(u), f = !o.isDirty, p = B(l, this.getFieldInfo(a)?.instance?.options.defaultValue ?? P(this.options.defaultValues, a));
1419
1470
  if (c && c.isPristine === f && c.isValid === d && c.isDefaultValue === p && c.errors === u && o === s) {
1420
1471
  i[a] = c, r++;
1421
1472
  continue;
@@ -1429,30 +1480,84 @@ var wo = class {
1429
1480
  };
1430
1481
  }
1431
1482
  return Object.keys(t.fieldMetaBase).length ? e && r === Object.keys(t.fieldMetaBase).length ? e : (n = this.baseStore.get(), i) : i;
1483
+ }), this.formGroupMetaDerived = j((e) => {
1484
+ let t = this.baseStore.get(), n = this.fieldMetaDerived.get(), r = {};
1485
+ for (let i of this.formGroupApis) {
1486
+ let a = i.name, o = t.formGroupStateBase[a] ?? {
1487
+ isSubmitted: !1,
1488
+ isSubmitting: !1,
1489
+ isValidating: !1,
1490
+ submissionAttempts: 0,
1491
+ isSubmitSuccessful: !1
1492
+ }, s = n[a], c = !1, l = !0, u = !1, d = !1, f = !0, p = !1;
1493
+ for (let e in n) {
1494
+ if (e === a || !W(a, e)) continue;
1495
+ let t = n[e];
1496
+ t && (t.isValidating && (c = !0), t.isValid || (l = !1), t.isTouched && (u = !0), t.isBlurred && (d = !0), t.isDefaultValue || (f = !1), t.isDirty && (p = !0));
1497
+ }
1498
+ let m = !p, h = !!c || o.isValidating, g = s?.errorMap ?? {}, _ = s?.errorSourceMap ?? {}, v = !!(g.onMount || Object.entries(n).some(([e, t]) => t && e !== a && W(a, e) && t.errorMap.onMount)), y = e?.[a], b = y?.errors ?? [];
1499
+ (!y || y.__srcErrorMap !== g) && (b = Object.values(g).reduce((e, t) => {
1500
+ if (t === void 0) return e;
1501
+ if (t && typeof t == "object" && "fields" in t) {
1502
+ let n = t.group;
1503
+ return n !== void 0 && e.push(n), e;
1504
+ }
1505
+ return e.push(t), e;
1506
+ }, []));
1507
+ let x = b.length === 0, S = l && x, ee = i.options.canSubmitWhenInvalid ?? !1, te = o.submissionAttempts === 0 && !u && !v || !h && !o.isSubmitting && S || ee;
1508
+ if (y && y.errorMap === g && y.errorSourceMap === _ && y.errors === b && y.isFieldsValidating === c && y.isFieldsValid === l && y.isGroupValid === x && y.isValid === S && y.canSubmit === te && y.isTouched === u && y.isBlurred === d && y.isPristine === m && y.isDefaultValue === f && y.isDirty === p && y.isValidating === h && y.isSubmitting === o.isSubmitting && y.isSubmitted === o.isSubmitted && y.submissionAttempts === o.submissionAttempts && y.isSubmitSuccessful === o.isSubmitSuccessful) {
1509
+ r[a] = y;
1510
+ continue;
1511
+ }
1512
+ let ne = {
1513
+ ...o,
1514
+ errorMap: g,
1515
+ errorSourceMap: _,
1516
+ _arrayVersion: s?._arrayVersion ?? 0,
1517
+ isTouched: u,
1518
+ isBlurred: d,
1519
+ isDirty: p,
1520
+ isPristine: m,
1521
+ isDefaultValue: f,
1522
+ isValid: S,
1523
+ errors: b,
1524
+ isValidating: h,
1525
+ isFieldsValidating: c,
1526
+ isFieldsValid: l,
1527
+ isGroupValid: x,
1528
+ canSubmit: te
1529
+ };
1530
+ Object.defineProperty(ne, "__srcErrorMap", {
1531
+ value: g,
1532
+ enumerable: !1,
1533
+ configurable: !0
1534
+ }), r[a] = ne;
1535
+ }
1536
+ return r;
1432
1537
  });
1433
1538
  let r;
1434
- this.store = A((e) => {
1435
- 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 ?? [];
1436
- (!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), []));
1437
- 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;
1438
- 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;
1439
- let ne = {
1539
+ this.store = j((e) => {
1540
+ let t = this.baseStore.get(), n = this.fieldMetaDerived.get(), i = Object.values(n).filter(Boolean), a = i.some((e) => e.isValidating), o = i.every((e) => e.isValid), s = i.some((e) => e.isTouched), c = i.some((e) => e.isBlurred), l = i.every((e) => e.isDefaultValue), u = s && t.errorMap?.onMount, d = i.some((e) => e.isDirty), f = !d, p = !!(t.errorMap?.onMount || i.some((e) => e?.errorMap?.onMount)), m = !!a, h = e?.errors ?? [];
1541
+ (!r || t.errorMap !== r.errorMap) && (h = Object.values(t.errorMap).reduce((e, t) => t === void 0 ? e : t && z(t) ? (e.push(t.form), e) : (e.push(t), e), []));
1542
+ let g = h.length === 0, _ = o && g, v = this.options.canSubmitWhenInvalid ?? !1, y = t.submissionAttempts === 0 && !s && !p || !m && !t.isSubmitting && _ || v, b = t.errorMap;
1543
+ if (u && (h = h.filter((e) => e !== t.errorMap.onMount), b = Object.assign(b, { onMount: void 0 })), e && r && e.errorMap === b && e.fieldMeta === this.fieldMetaDerived.state && e.errors === h && e.isFieldsValidating === a && e.isFieldsValid === o && e.isFormValid === g && e.isValid === _ && e.canSubmit === y && e.isTouched === s && e.isBlurred === c && e.isPristine === f && e.isDefaultValue === l && e.isDirty === d && B(r, t)) return e;
1544
+ let x = {
1440
1545
  ...t,
1441
- errorMap: v,
1546
+ errorMap: b,
1442
1547
  fieldMeta: this.fieldMetaDerived.state,
1443
- errors: m,
1548
+ errors: h,
1444
1549
  isFieldsValidating: a,
1445
1550
  isFieldsValid: o,
1446
- isFormValid: h,
1447
- isValid: g,
1448
- canSubmit: _,
1551
+ isFormValid: g,
1552
+ isValid: _,
1553
+ canSubmit: y,
1449
1554
  isTouched: s,
1450
1555
  isBlurred: c,
1451
1556
  isPristine: f,
1452
1557
  isDefaultValue: l,
1453
1558
  isDirty: d
1454
1559
  };
1455
- return r = this.baseStore.get(), ne;
1560
+ return r = this.baseStore.get(), x;
1456
1561
  }), this.handleSubmit = this.handleSubmit.bind(this), this.update(e || {});
1457
1562
  }
1458
1563
  get state() {
@@ -1462,15 +1567,15 @@ var wo = class {
1462
1567
  return this._formId;
1463
1568
  }
1464
1569
  runValidator(e) {
1465
- return So(e.validate) ? G[e.type](e.value, e.validate) : e.validate(e.value);
1570
+ return bo(e.validate) ? K[e.type](e.value, e.validate) : e.validate(e.value);
1466
1571
  }
1467
1572
  handleSubmit(e) {
1468
1573
  return this._handleSubmit(e);
1469
1574
  }
1470
1575
  };
1471
- function J(e) {
1472
- return e ? L(e) ? {
1473
- formError: J(e.form).formError,
1576
+ function Co(e) {
1577
+ return e ? z(e) ? {
1578
+ formError: Co(e.form).formError,
1474
1579
  fieldErrors: e.fields
1475
1580
  } : { formError: e } : { formError: void 0 };
1476
1581
  }
@@ -1486,8 +1591,8 @@ function Y(e) {
1486
1591
  }
1487
1592
  //#endregion
1488
1593
  //#region node_modules/@tanstack/form-core/dist/esm/FieldApi.js
1489
- var To = class {
1490
- constructor(e) {
1594
+ var wo = class e {
1595
+ constructor(t) {
1491
1596
  this.options = {}, this.mount = () => {
1492
1597
  this.options.defaultValue !== void 0 && !this.getMeta().isTouched && this.form.setFieldValue(this.name, this.options.defaultValue, { dontUpdateMeta: !0 });
1493
1598
  let e = this.getInfo();
@@ -1530,10 +1635,10 @@ var To = class {
1530
1635
  fieldMetaBase: {
1531
1636
  ...e.fieldMetaBase,
1532
1637
  [this.name]: {
1533
- ...K,
1534
- isTouched: e.fieldMetaBase[this.name]?.isTouched ?? K.isTouched,
1535
- isBlurred: e.fieldMetaBase[this.name]?.isBlurred ?? K.isBlurred,
1536
- isDirty: e.fieldMetaBase[this.name]?.isDirty ?? K.isDirty
1638
+ ...q,
1639
+ isTouched: e.fieldMetaBase[this.name]?.isTouched ?? q.isTouched,
1640
+ isBlurred: e.fieldMetaBase[this.name]?.isBlurred ?? q.isBlurred,
1641
+ isDirty: e.fieldMetaBase[this.name]?.isDirty ?? q.isDirty
1537
1642
  }
1538
1643
  }
1539
1644
  })), e.instance = null, this.options.listeners?.onUnmount?.({
@@ -1546,56 +1651,58 @@ var To = class {
1546
1651
  }
1547
1652
  };
1548
1653
  }, this.update = (e) => {
1549
- 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, {
1654
+ this.options = e, this.name = e.name, !this.state.meta.isTouched && this.options.defaultValue !== void 0 && (B(this.form.getFieldValue(this.name), e.defaultValue) || this.form.setFieldValue(this.name, e.defaultValue, {
1550
1655
  dontUpdateMeta: !0,
1551
1656
  dontValidate: !0,
1552
1657
  dontRunListeners: !0
1553
1658
  })), this.form.getFieldMeta(this.name) || this.form.setFieldMeta(this.name, this.state.meta);
1554
1659
  }, this.getValue = () => this.form.getFieldValue(this.name), this.setValue = (e, t) => {
1555
- this.form.setFieldValue(this.name, e, z(t, {
1660
+ this.form.setFieldValue(this.name, e, V(t, {
1556
1661
  dontRunListeners: !0,
1557
1662
  dontValidate: !0
1558
1663
  })), t?.dontRunListeners || this.triggerOnChangeListener(), t?.dontValidate || this.validate("change");
1559
1664
  }, 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) => {
1560
- this.form.pushFieldValue(this.name, e, z(t, { dontRunListeners: !0 })), t?.dontRunListeners || this.triggerOnChangeListener();
1665
+ this.form.pushFieldValue(this.name, e, V(t, { dontRunListeners: !0 })), t?.dontRunListeners || this.triggerOnChangeListener();
1561
1666
  }, this.insertValue = (e, t, n) => {
1562
- this.form.insertFieldValue(this.name, e, t, z(n, { dontRunListeners: !0 })), n?.dontRunListeners || this.triggerOnChangeListener();
1667
+ this.form.insertFieldValue(this.name, e, t, V(n, { dontRunListeners: !0 })), n?.dontRunListeners || this.triggerOnChangeListener();
1563
1668
  }, this.replaceValue = (e, t, n) => {
1564
- this.form.replaceFieldValue(this.name, e, t, z(n, { dontRunListeners: !0 })), n?.dontRunListeners || this.triggerOnChangeListener();
1669
+ this.form.replaceFieldValue(this.name, e, t, V(n, { dontRunListeners: !0 })), n?.dontRunListeners || this.triggerOnChangeListener();
1565
1670
  }, this.removeValue = (e, t) => {
1566
- this.form.removeFieldValue(this.name, e, z(t, { dontRunListeners: !0 })), t?.dontRunListeners || this.triggerOnChangeListener();
1671
+ this.form.removeFieldValue(this.name, e, V(t, { dontRunListeners: !0 })), t?.dontRunListeners || this.triggerOnChangeListener();
1567
1672
  }, this.swapValues = (e, t, n) => {
1568
- this.form.swapFieldValues(this.name, e, t, z(n, { dontRunListeners: !0 })), n?.dontRunListeners || this.triggerOnChangeListener();
1673
+ this.form.swapFieldValues(this.name, e, t, V(n, { dontRunListeners: !0 })), n?.dontRunListeners || this.triggerOnChangeListener();
1569
1674
  }, this.moveValue = (e, t, n) => {
1570
- this.form.moveFieldValues(this.name, e, t, z(n, { dontRunListeners: !0 })), n?.dontRunListeners || this.triggerOnChangeListener();
1675
+ this.form.moveFieldValues(this.name, e, t, V(n, { dontRunListeners: !0 })), n?.dontRunListeners || this.triggerOnChangeListener();
1571
1676
  }, this.clearValues = (e) => {
1572
- this.form.clearFieldValues(this.name, z(e, { dontRunListeners: !0 })), e?.dontRunListeners || this.triggerOnChangeListener();
1573
- }, this.getLinkedFields = (e) => {
1574
- let t = Object.values(this.form.fieldInfo), n = [];
1575
- for (let r of t) {
1576
- if (!r.instance) continue;
1577
- let { onChangeListenTo: t, onBlurListenTo: i } = r.instance.options.validators || {};
1578
- e === "change" && t?.includes(this.name) && n.push(r.instance), e === "blur" && i?.includes(this.name) && n.push(r.instance);
1677
+ this.form.clearFieldValues(this.name, V(e, { dontRunListeners: !0 })), e?.dontRunListeners || this.triggerOnChangeListener();
1678
+ }, this.getLinkedFields = (t) => {
1679
+ let n = Object.values(this.form.fieldInfo), r = [];
1680
+ for (let i of n) {
1681
+ if (!i.instance || !(i.instance instanceof e)) continue;
1682
+ let { onChangeListenTo: n, onBlurListenTo: a } = i.instance.options.validators || {};
1683
+ t === "change" && n?.includes(this.name) && r.push(i.instance), t === "blur" && a?.includes(this.name) && r.push(i.instance);
1579
1684
  }
1580
- return n;
1685
+ return r;
1581
1686
  }, this.validateSync = (e, t) => {
1582
- let n = mo(e, {
1687
+ let n = L(e, {
1583
1688
  ...this.options,
1584
1689
  form: this.form,
1585
- validationLogic: this.form.options.validationLogic || W
1690
+ fieldName: this.name,
1691
+ validationLogic: this.form.options.validationLogic || G
1586
1692
  }), r = this.getLinkedFields(e).reduce((t, n) => {
1587
- let r = mo(e, {
1693
+ let r = L(e, {
1588
1694
  ...n.options,
1589
1695
  form: n.form,
1590
- validationLogic: n.form.options.validationLogic || W
1696
+ fieldName: n.name,
1697
+ validationLogic: n.form.options.validationLogic || G
1591
1698
  });
1592
1699
  return r.forEach((e) => {
1593
1700
  e.field = n;
1594
1701
  }), t.concat(r);
1595
1702
  }, []), i = !1;
1596
- O(() => {
1703
+ A(() => {
1597
1704
  let e = (e, n) => {
1598
- let r = X(n.cause), a = n.validate ? Eo(e.runValidator({
1705
+ let r = X(n.cause), a = n.validate ? To(e.runValidator({
1599
1706
  validate: n.validate,
1600
1707
  value: {
1601
1708
  value: e.store.state.value,
@@ -1603,7 +1710,7 @@ var To = class {
1603
1710
  fieldApi: e
1604
1711
  },
1605
1712
  type: "validate"
1606
- })) : void 0, o = t[r], { newErrorValue: s, newSource: c } = _o({
1713
+ })) : void 0, o = t[r], { newErrorValue: s, newSource: c } = po({
1607
1714
  formLevelError: o,
1608
1715
  fieldLevelError: a
1609
1716
  });
@@ -1635,15 +1742,17 @@ var To = class {
1635
1742
  }
1636
1743
  })), { hasErrored: i };
1637
1744
  }, this.validateAsync = async (e, t) => {
1638
- let n = ho(e, {
1745
+ let n = R(e, {
1639
1746
  ...this.options,
1640
1747
  form: this.form,
1641
- validationLogic: this.form.options.validationLogic || W
1748
+ fieldName: this.name,
1749
+ validationLogic: this.form.options.validationLogic || G
1642
1750
  }), r = await t, i = this.getLinkedFields(e), a = i.reduce((t, n) => {
1643
- let r = ho(e, {
1751
+ let r = R(e, {
1644
1752
  ...n.options,
1645
1753
  form: n.form,
1646
- validationLogic: n.form.options.validationLogic || W
1754
+ fieldName: n.name,
1755
+ validationLogic: n.form.options.validationLogic || G
1647
1756
  });
1648
1757
  return r.forEach((e) => {
1649
1758
  e.field = n;
@@ -1689,7 +1798,7 @@ var To = class {
1689
1798
  a = e;
1690
1799
  }
1691
1800
  if (o.signal.aborted) return n(void 0);
1692
- let s = Eo(a), c = r[e.name]?.[i], { newErrorValue: l, newSource: u } = _o({
1801
+ let s = To(a), c = r[e.name]?.[i], { newErrorValue: l, newSource: u } = po({
1693
1802
  formLevelError: c,
1694
1803
  fieldLevelError: s
1695
1804
  });
@@ -1723,10 +1832,33 @@ var To = class {
1723
1832
  return u.filter(Boolean);
1724
1833
  }, this.validate = (e, t) => {
1725
1834
  if (!this.state.meta.isTouched) return [];
1726
- let { fieldsErrorMap: n } = t?.skipFormValidation ? { fieldsErrorMap: {} } : this.form.validateSync(e), { hasErrored: r } = this.validateSync(e, n[this.name] ?? {});
1727
- if (r && !this.options.asyncAlways) return this.getInfo().validationMetaMap[X(e)]?.lastAbortController.abort(), this.state.meta.errors;
1728
- let i = t?.skipFormValidation ? Promise.resolve({}) : this.form.validateAsync(e);
1729
- return this.validateAsync(e, i);
1835
+ let n = t?.skipGroupValidation ? [] : Array.from(this.form.formGroupApis).filter((e) => this.name.startsWith(e.name)), r = (t?.skipFormValidation ? { fieldsErrorMap: {} } : this.form.validateSync(e)).fieldsErrorMap[this.name] ?? {};
1836
+ if (!t?.skipFormValidation) for (let t of n) {
1837
+ if (t.state.meta.submissionAttempts === 0) continue;
1838
+ let { fieldsErrorMap: n } = this.form.validateSync(e, {
1839
+ group: t,
1840
+ dontUpdateFormErrorMap: !0,
1841
+ filterFieldNames: (e) => W(t.name, e)
1842
+ });
1843
+ r = {
1844
+ ...r,
1845
+ ...n[this.name] ?? {}
1846
+ };
1847
+ }
1848
+ let { hasErrored: i } = this.validateSync(e, r), a = /* @__PURE__ */ new WeakMap();
1849
+ for (let t of n) {
1850
+ let { hasErrored: n } = t.validateSync(e, {}, { skipRelatedFieldValidation: !0 });
1851
+ a.set(t, n);
1852
+ }
1853
+ if (i && !this.options.asyncAlways) {
1854
+ this.getInfo().validationMetaMap[X(e)]?.lastAbortController.abort();
1855
+ let t = [];
1856
+ for (let r of n) r.getInfo().validationMetaMap[X(e)]?.lastAbortController.abort(), t.push(r.state.meta.errors);
1857
+ return [...this.state.meta.errors, ...t.flat()];
1858
+ }
1859
+ let o = t?.skipFormValidation ? Promise.resolve({}) : this.form.validateAsync(e), s = this.validateAsync(e, o), c = [];
1860
+ for (let t of n) a.get(t) && !t.options.asyncAlways || c.push(t.validateAsync(e, o, { skipRelatedFieldValidation: !0 }));
1861
+ return c.length === 0 ? s : Promise.all([s, ...c]).then((e) => e.flat());
1730
1862
  }, this.handleChange = (e) => {
1731
1863
  this.setValue(e);
1732
1864
  }, this.handleBlur = () => {
@@ -1745,13 +1877,34 @@ var To = class {
1745
1877
  ...e
1746
1878
  }
1747
1879
  }));
1748
- }, this.parseValueWithSchema = (e) => G.validate({
1880
+ }, this.parseValueWithSchema = (e) => K.validate({
1749
1881
  value: this.state.value,
1750
1882
  validationSource: "field"
1751
- }, e), this.parseValueWithSchemaAsync = (e) => G.validateAsync({
1883
+ }, e), this.parseValueWithSchemaAsync = (e) => K.validateAsync({
1752
1884
  value: this.state.value,
1753
1885
  validationSource: "field"
1754
- }, e), this.triggerOnChangeListener = () => {
1886
+ }, e), this.triggerOnBlurListener = () => {
1887
+ let e = this.form.options.listeners?.onBlurDebounceMs;
1888
+ e && e > 0 ? (this.timeoutIds.formListeners.blur && clearTimeout(this.timeoutIds.formListeners.blur), this.timeoutIds.formListeners.blur = setTimeout(() => {
1889
+ this.form.options.listeners?.onBlur?.({
1890
+ formApi: this.form,
1891
+ fieldApi: this
1892
+ });
1893
+ }, e)) : this.form.options.listeners?.onBlur?.({
1894
+ formApi: this.form,
1895
+ fieldApi: this
1896
+ });
1897
+ let t = this.options.listeners?.onBlurDebounceMs;
1898
+ t && t > 0 ? (this.timeoutIds.listeners.blur && clearTimeout(this.timeoutIds.listeners.blur), this.timeoutIds.listeners.blur = setTimeout(() => {
1899
+ this.options.listeners?.onBlur?.({
1900
+ value: this.state.value,
1901
+ fieldApi: this
1902
+ });
1903
+ }, t)) : this.options.listeners?.onBlur?.({
1904
+ value: this.state.value,
1905
+ fieldApi: this
1906
+ });
1907
+ }, this.triggerOnChangeListener = () => {
1755
1908
  let e = this.form.options.listeners?.onChangeDebounceMs;
1756
1909
  e && e > 0 ? (this.timeoutIds.formListeners.change && clearTimeout(this.timeoutIds.formListeners.change), this.timeoutIds.formListeners.change = setTimeout(() => {
1757
1910
  this.form.options.listeners?.onChange?.({
@@ -1772,17 +1925,23 @@ var To = class {
1772
1925
  value: this.state.value,
1773
1926
  fieldApi: this
1774
1927
  });
1775
- }, this.form = e.form, this.name = e.name, this.options = e, this.timeoutIds = {
1928
+ for (let e of this.form.formGroupApis) W(e.name, this.name) && e.triggerOnChangeListener();
1929
+ }, this.triggerOnSubmitListener = () => {
1930
+ this.options.listeners?.onSubmit?.({
1931
+ value: this.state.value,
1932
+ fieldApi: this
1933
+ });
1934
+ }, this.form = t.form, this.name = t.name, this.options = t, this.timeoutIds = {
1776
1935
  validations: {},
1777
1936
  listeners: {},
1778
1937
  formListeners: {}
1779
- }, this.store = A((t) => {
1938
+ }, this.store = j((e) => {
1780
1939
  this.form.store.get();
1781
1940
  let n = this.form.getFieldMeta(this.name) ?? {
1782
- ...K,
1783
- ...e.defaultMeta
1941
+ ...q,
1942
+ ...t.defaultMeta
1784
1943
  }, r = this.form.getFieldValue(this.name);
1785
- 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 : {
1944
+ return !n.isTouched && r === void 0 && this.options.defaultValue !== void 0 && !B(r, this.options.defaultValue) && (r = this.options.defaultValue), e && e.value === r && e.meta === n ? e : {
1786
1945
  value: r,
1787
1946
  meta: n
1788
1947
  };
@@ -1792,35 +1951,495 @@ var To = class {
1792
1951
  return this.store.state;
1793
1952
  }
1794
1953
  runValidator(e) {
1795
- return So(e.validate) ? G[e.type](e.value, e.validate) : e.validate(e.value);
1954
+ return bo(e.validate) ? K[e.type](e.value, e.validate) : e.validate(e.value);
1796
1955
  }
1797
- triggerOnBlurListener() {
1798
- let e = this.form.options.listeners?.onBlurDebounceMs;
1799
- e && e > 0 ? (this.timeoutIds.formListeners.blur && clearTimeout(this.timeoutIds.formListeners.blur), this.timeoutIds.formListeners.blur = setTimeout(() => {
1800
- this.form.options.listeners?.onBlur?.({
1956
+ };
1957
+ function To(e) {
1958
+ if (e) return e;
1959
+ }
1960
+ function X(e) {
1961
+ switch (e) {
1962
+ case "submit": return "onSubmit";
1963
+ case "blur": return "onBlur";
1964
+ case "mount": return "onMount";
1965
+ case "server": return "onServer";
1966
+ case "dynamic": return "onDynamic";
1967
+ default: return "onChange";
1968
+ }
1969
+ }
1970
+ //#endregion
1971
+ //#region node_modules/@tanstack/form-core/dist/esm/FormGroupApi.js
1972
+ function Eo(e) {
1973
+ return {
1974
+ isSubmitted: e.isSubmitted ?? !1,
1975
+ isSubmitting: e.isSubmitting ?? !1,
1976
+ isValidating: e.isValidating ?? !1,
1977
+ submissionAttempts: e.submissionAttempts ?? 0,
1978
+ isSubmitSuccessful: e.isSubmitSuccessful ?? !1
1979
+ };
1980
+ }
1981
+ function Do(e) {
1982
+ return {
1983
+ ...q,
1984
+ ...e,
1985
+ errors: [],
1986
+ isPristine: !0,
1987
+ isValid: !0,
1988
+ isDefaultValue: !0,
1989
+ isFieldsValidating: !1,
1990
+ isFieldsValid: !0,
1991
+ isGroupValid: !0,
1992
+ canSubmit: !0,
1993
+ isSubmitting: !1,
1994
+ isSubmitted: !1,
1995
+ isValidating: !1,
1996
+ submissionAttempts: 0,
1997
+ isSubmitSuccessful: !1
1998
+ };
1999
+ }
2000
+ var Oo = class e {
2001
+ constructor(t) {
2002
+ this.options = {}, this.setFormGroupState = (e) => {
2003
+ this.form.baseStore.setState((t) => {
2004
+ let n = t.formGroupStateBase[this.name] ?? Eo({});
2005
+ return {
2006
+ ...t,
2007
+ formGroupStateBase: {
2008
+ ...t.formGroupStateBase,
2009
+ [this.name]: e(n)
2010
+ }
2011
+ };
2012
+ });
2013
+ }, this._lastDistributedFieldNames = {}, this.update = (e) => {
2014
+ this.options = e, this.name = e.name, !this.state.meta.isTouched && this.options.defaultValue !== void 0 && (B(this.form.getFieldValue(this.name), e.defaultValue) || this.form.setFieldValue(this.name, e.defaultValue, {
2015
+ dontUpdateMeta: !0,
2016
+ dontValidate: !0,
2017
+ dontRunListeners: !0
2018
+ })), this.form.getFieldMeta(this.name) || this.form.setFieldMeta(this.name, {
2019
+ ...q,
2020
+ ...this.options.defaultMeta
2021
+ });
2022
+ }, this.mount = () => {
2023
+ this.update(this.options), this.form.formGroupApis.add(this), this.fieldInfo.instance = this, this.form.baseStore.setState((e) => ({
2024
+ ...e,
2025
+ formGroupStateBase: {
2026
+ ...e.formGroupStateBase,
2027
+ [this.name]: e.formGroupStateBase[this.name] ?? Eo({ ...this.options.defaultState })
2028
+ }
2029
+ }));
2030
+ let { onMount: e } = this.options.validators || {};
2031
+ if (e) {
2032
+ let t = this.runValidator({
2033
+ validate: e,
2034
+ value: {
2035
+ value: this.state.value,
2036
+ groupApi: this,
2037
+ validationSource: "form"
2038
+ },
2039
+ type: "validate"
2040
+ }), n = t, r;
2041
+ Ao(t) && (n = t.group, r = t.fields);
2042
+ let i = ko(n);
2043
+ i && this.setMeta((e) => ({
2044
+ ...e,
2045
+ errorMap: {
2046
+ ...e.errorMap,
2047
+ onMount: i
2048
+ },
2049
+ errorSourceMap: {
2050
+ ...e.errorSourceMap,
2051
+ onMount: "field"
2052
+ }
2053
+ })), this.distributeFieldErrors("onMount", r);
2054
+ }
2055
+ return this.options.listeners?.onMount?.({
2056
+ value: this.state.value,
2057
+ groupApi: this
2058
+ }), () => {
2059
+ for (let [e, t] of Object.entries(this.timeoutIds.validations)) t && (clearTimeout(t), this.timeoutIds.validations[e] = null);
2060
+ for (let [e, t] of Object.entries(this.timeoutIds.listeners)) t && (clearTimeout(t), this.timeoutIds.listeners[e] = null);
2061
+ for (let [e, t] of Object.entries(this.timeoutIds.formListeners)) t && (clearTimeout(t), this.timeoutIds.formListeners[e] = null);
2062
+ if (this.fieldInfo.instance === this) {
2063
+ for (let [e, t] of Object.entries(this.fieldInfo.validationMetaMap)) t?.lastAbortController.abort(), this.fieldInfo.validationMetaMap[e] = void 0;
2064
+ this.form.formGroupApis.delete(this), this.form.baseStore.setState((e) => ({
2065
+ ...e,
2066
+ formGroupStateBase: {
2067
+ ...e.formGroupStateBase,
2068
+ [this.name]: Eo({})
2069
+ }
2070
+ })), this.fieldInfo.instance = null, this.options.listeners?.onUnmount?.({
2071
+ value: this.state.value,
2072
+ groupApi: this
2073
+ });
2074
+ }
2075
+ };
2076
+ }, this.setValue = (e, t) => {
2077
+ this.form.setFieldValue(this.name, e, V(t, {
2078
+ dontRunListeners: !0,
2079
+ dontValidate: !0
2080
+ })), t?.dontRunListeners || this.triggerOnChangeListener(), t?.dontValidate || this.validate("change");
2081
+ }, this.getMeta = () => this.store.state.meta, this.setMeta = (e) => this.form.setFieldMeta(this.name, e), this.getInfo = () => this.fieldInfo, this.getRelatedFields = () => {
2082
+ let e = Object.values(this.form.fieldInfo), t = [];
2083
+ for (let n of e) n.instance && n.instance instanceof wo && n.instance.name.startsWith(this.name) && t.push(n.instance);
2084
+ return t;
2085
+ }, this.getRelatedFieldMetasDerived = () => {
2086
+ let e = Object.entries(this.form.fieldMetaDerived.state), t = [];
2087
+ for (let [n, r] of e) n !== this.name && W(this.name, n) && t.push({
2088
+ ...r,
2089
+ name: n
2090
+ });
2091
+ return t;
2092
+ }, this.buildChildFieldName = (e) => e === "" ? this.name : e.startsWith("[") ? `${this.name}${e}` : `${this.name}.${e}`, this.distributeFieldErrors = (e, t) => {
2093
+ let n = this._lastDistributedFieldNames[e] ?? /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
2094
+ if (t) for (let [e, n] of Object.entries(t)) n == null || n === !1 || r.add(this.buildChildFieldName(e));
2095
+ let i = /* @__PURE__ */ new Set([...n, ...r]), a = !1;
2096
+ for (let n of i) {
2097
+ let r = n.startsWith(this.name + "[") ? n.slice(this.name.length) : n.slice(this.name.length + 1), i = t?.[r], o = this.form.getFieldMeta(n);
2098
+ if (!o && !i) continue;
2099
+ let s = o?.errorMap[e], { newErrorValue: c, newSource: l } = fo({
2100
+ newFormValidatorError: i,
2101
+ isPreviousErrorFromFormValidator: o?.errorSourceMap[e] === "form",
2102
+ previousErrorValue: s
2103
+ });
2104
+ c && (a = !0), !(s === c && o?.errorSourceMap[e] === l) && this.form.setFieldMeta(n, (t) => ({
2105
+ ...t,
2106
+ errorMap: {
2107
+ ...t.errorMap,
2108
+ [e]: c
2109
+ },
2110
+ errorSourceMap: {
2111
+ ...t.errorSourceMap,
2112
+ [e]: l
2113
+ }
2114
+ }));
2115
+ }
2116
+ return this._lastDistributedFieldNames[e] = r, a;
2117
+ }, this.validateSync = (t, n, r = {}) => {
2118
+ let i = L(t, {
2119
+ ...this.options,
2120
+ form: this.form,
2121
+ group: this,
2122
+ validationLogic: this.options.validationLogic || this.form.options.validationLogic || G
2123
+ }), a = (r.skipRelatedFieldValidation ? [] : this.getRelatedFields()).reduce((e, n) => {
2124
+ let r = L(t, {
2125
+ ...n.options,
2126
+ form: n.form,
2127
+ validationLogic: n.form.options.validationLogic || G
2128
+ });
2129
+ return r.forEach((e) => {
2130
+ e.field = n;
2131
+ }), e.concat(r);
2132
+ }, []), o = !1;
2133
+ A(() => {
2134
+ let t = (t, r) => {
2135
+ let i = Mo(r.cause), a = t === this, s;
2136
+ r.validate && (s = t.runValidator({
2137
+ validate: r.validate,
2138
+ value: {
2139
+ value: t.store.state.value,
2140
+ validationSource: a ? "form" : "field",
2141
+ ...t instanceof e ? { groupApi: t } : { fieldApi: t }
2142
+ },
2143
+ type: "validate"
2144
+ }));
2145
+ let c = s, l;
2146
+ a && Ao(s) && (c = s.group, l = s.fields);
2147
+ let u = ko(c), d = n[i], { newErrorValue: f, newSource: p } = po({
2148
+ formLevelError: d,
2149
+ fieldLevelError: u
2150
+ });
2151
+ t.state.meta.errorMap?.[i] !== f && t.setMeta((e) => ({
2152
+ ...e,
2153
+ errorMap: {
2154
+ ...e.errorMap,
2155
+ [i]: f
2156
+ },
2157
+ errorSourceMap: {
2158
+ ...e.errorSourceMap,
2159
+ [i]: p
2160
+ }
2161
+ })), f && (o = !0), a && this.distributeFieldErrors(i, l) && (o = !0);
2162
+ };
2163
+ for (let e of i) t(this, e);
2164
+ for (let e of a) e.validate && t(e.field, e);
2165
+ });
2166
+ let s = Mo("submit");
2167
+ return this.state.meta.errorMap?.[s] && t !== "submit" && !o && this.setMeta((e) => ({
2168
+ ...e,
2169
+ errorMap: {
2170
+ ...e.errorMap,
2171
+ [s]: void 0
2172
+ },
2173
+ errorSourceMap: {
2174
+ ...e.errorSourceMap,
2175
+ [s]: void 0
2176
+ }
2177
+ })), { hasErrored: o };
2178
+ }, this.validateAsync = async (t, n, r = {}) => {
2179
+ let i = R(t, {
2180
+ ...this.options,
2181
+ form: this.form,
2182
+ group: this,
2183
+ validationLogic: this.options.validationLogic || this.form.options.validationLogic || G
2184
+ }), a = await n, o = r.skipRelatedFieldValidation ? [] : this.getRelatedFields(), s = o.reduce((e, n) => {
2185
+ let r = R(t, {
2186
+ ...n.options,
2187
+ form: n.form,
2188
+ validationLogic: n.form.options.validationLogic || G
2189
+ });
2190
+ return r.forEach((e) => {
2191
+ e.field = n;
2192
+ }), e.concat(r);
2193
+ }, []), c = [], l = [], u = i.some((e) => e.validate) || s.some((e) => e.validate);
2194
+ if (u) {
2195
+ this.state.meta.isValidating || this.setMeta((e) => ({
2196
+ ...e,
2197
+ isValidating: !0
2198
+ }));
2199
+ for (let e of o) e.setMeta((e) => ({
2200
+ ...e,
2201
+ isValidating: !0
2202
+ }));
2203
+ }
2204
+ let d = (t, n, r) => {
2205
+ let i = Mo(n.cause), o = t.getInfo();
2206
+ o.validationMetaMap[i]?.lastAbortController.abort();
2207
+ let s = new AbortController();
2208
+ o.validationMetaMap[i] = { lastAbortController: s };
2209
+ let c = t === this;
2210
+ r.push(new Promise(async (r) => {
2211
+ let o;
2212
+ try {
2213
+ o = await new Promise((r, i) => {
2214
+ t.timeoutIds.validations[n.cause] && clearTimeout(t.timeoutIds.validations[n.cause]), t.timeoutIds.validations[n.cause] = setTimeout(async () => {
2215
+ if (s.signal.aborted) return r(void 0);
2216
+ try {
2217
+ r(await this.runValidator({
2218
+ validate: n.validate,
2219
+ value: {
2220
+ value: t.store.state.value,
2221
+ signal: s.signal,
2222
+ validationSource: c ? "form" : "field",
2223
+ ...t instanceof e ? { groupApi: t } : { fieldApi: t }
2224
+ },
2225
+ type: "validateAsync"
2226
+ }));
2227
+ } catch (e) {
2228
+ i(e);
2229
+ }
2230
+ }, n.debounceMs);
2231
+ });
2232
+ } catch (e) {
2233
+ o = e;
2234
+ }
2235
+ if (s.signal.aborted) return r(void 0);
2236
+ let l = o, u;
2237
+ c && Ao(o) && (l = o.group, u = o.fields);
2238
+ let d = ko(l), f = a[t.name]?.[i], { newErrorValue: p, newSource: m } = po({
2239
+ formLevelError: f,
2240
+ fieldLevelError: d
2241
+ });
2242
+ if (t.getInfo().instance !== t) return r(void 0);
2243
+ t.setMeta((e) => ({
2244
+ ...e,
2245
+ errorMap: {
2246
+ ...e?.errorMap,
2247
+ [i]: p
2248
+ },
2249
+ errorSourceMap: {
2250
+ ...e.errorSourceMap,
2251
+ [i]: m
2252
+ }
2253
+ })), c && this.distributeFieldErrors(i, u), r(p);
2254
+ }));
2255
+ };
2256
+ for (let e of i) e.validate && d(this, e, c);
2257
+ for (let e of s) e.validate && d(e.field, e, l);
2258
+ let f = [];
2259
+ if ((c.length || l.length) && (f = await Promise.all(c), await Promise.all(l)), u) {
2260
+ this.setMeta((e) => ({
2261
+ ...e,
2262
+ isValidating: !1
2263
+ }));
2264
+ for (let e of o) e.setMeta((e) => ({
2265
+ ...e,
2266
+ isValidating: !1
2267
+ }));
2268
+ }
2269
+ return f.filter(Boolean);
2270
+ }, this.validateAllFields = async (e) => {
2271
+ let t = [];
2272
+ return A(() => {
2273
+ Object.values(this.getRelatedFields()).forEach((n) => {
2274
+ t.push(Promise.resolve().then(() => n.validate(e, {
2275
+ skipFormValidation: !0,
2276
+ skipGroupValidation: !0
2277
+ }))), n.store.state.meta.isTouched || n.setMeta((e) => ({
2278
+ ...e,
2279
+ isTouched: !0
2280
+ }));
2281
+ });
2282
+ }), (await Promise.all(t)).flat();
2283
+ }, this.validateArrayFieldsStartingFrom = (e, t, n) => this.form.validateArrayFieldsStartingFrom(e, t, n), this.validateField = (e, t) => this.form.validateField(e, t), this.getFieldValue = (e) => this.form.getFieldValue(e), this.getFieldMeta = (e) => this.form.getFieldMeta(e), this.setFieldMeta = (e, t) => this.form.setFieldMeta(e, t), this.setFieldValue = (e, t) => this.form.setFieldValue(e, t), this.deleteField = (e) => this.form.deleteField(e), this.pushFieldValue = (e, t) => this.form.pushFieldValue(e, t), this.insertFieldValue = (e, t, n) => this.form.insertFieldValue(e, t, n), this.replaceFieldValue = (e, t, n) => this.form.replaceFieldValue(e, t, n), this.swapFieldValues = (e, t, n) => this.form.swapFieldValues(e, t, n), this.moveFieldValues = (e, t, n) => this.form.moveFieldValues(e, t, n), this.clearFieldValues = (e) => this.form.clearFieldValues(e), this.resetField = (e) => this.form.resetField(e), this.removeFieldValue = (e, t) => this.form.removeFieldValue(e, t), this.areRelatedFieldsValid = () => Object.values(this.getRelatedFields()).every((e) => e.state.meta.isValid), this.validate = (e, t) => {
2284
+ let { fieldsErrorMap: n } = t?.skipFormValidation ? { fieldsErrorMap: {} } : this.form.validateSync(e, {
2285
+ dontUpdateFormErrorMap: !0,
2286
+ filterFieldNames: (e) => W(this.name, e)
2287
+ }), { hasErrored: r } = this.validateSync(e, n[this.name] ?? {}, { skipRelatedFieldValidation: t?.skipRelatedFieldValidation });
2288
+ if (r && !this.options.asyncAlways) return this.getInfo().validationMetaMap[Mo(e)]?.lastAbortController.abort(), this.state.meta.errors;
2289
+ let i = t?.skipFormValidation ? Promise.resolve({}) : this.form.validateAsync(e, {
2290
+ dontUpdateFormErrorMap: !0,
2291
+ filterFieldNames: (e) => W(this.name, e)
2292
+ });
2293
+ return this.validateAsync(e, i, { skipRelatedFieldValidation: t?.skipRelatedFieldValidation });
2294
+ }, this.triggerOnChangeListener = () => {
2295
+ let e = this.form.options.listeners?.onChangeGroupDebounceMs;
2296
+ e && e > 0 ? (this.timeoutIds.formListeners.change && clearTimeout(this.timeoutIds.formListeners.change), this.timeoutIds.formListeners.change = setTimeout(() => {
2297
+ this.form.options.listeners?.onChangeGroup?.({
2298
+ formApi: this.form,
2299
+ groupApi: this
2300
+ });
2301
+ }, e)) : this.form.options.listeners?.onChangeGroup?.({
1801
2302
  formApi: this.form,
1802
- fieldApi: this
2303
+ groupApi: this
1803
2304
  });
1804
- }, e)) : this.form.options.listeners?.onBlur?.({
1805
- formApi: this.form,
1806
- fieldApi: this
1807
- });
1808
- let t = this.options.listeners?.onBlurDebounceMs;
1809
- t && t > 0 ? (this.timeoutIds.listeners.blur && clearTimeout(this.timeoutIds.listeners.blur), this.timeoutIds.listeners.blur = setTimeout(() => {
1810
- this.options.listeners?.onBlur?.({
2305
+ let t = this.options.listeners?.onChangeDebounceMs;
2306
+ t && t > 0 ? (this.timeoutIds.listeners.change && clearTimeout(this.timeoutIds.listeners.change), this.timeoutIds.listeners.change = setTimeout(() => {
2307
+ this.options.listeners?.onChange?.({
2308
+ value: this.state.value,
2309
+ groupApi: this
2310
+ });
2311
+ }, t)) : this.options.listeners?.onChange?.({
1811
2312
  value: this.state.value,
1812
- fieldApi: this
2313
+ groupApi: this
1813
2314
  });
1814
- }, t)) : this.options.listeners?.onBlur?.({
1815
- value: this.state.value,
1816
- fieldApi: this
1817
- });
2315
+ }, this.triggerOnSubmitListener = () => {
2316
+ this.options.listeners?.onSubmit?.({
2317
+ value: this.state.value,
2318
+ groupApi: this
2319
+ });
2320
+ }, this._handleSubmit = async (e) => {
2321
+ this.setFormGroupState((e) => ({
2322
+ ...e,
2323
+ isSubmitted: !1,
2324
+ submissionAttempts: e.submissionAttempts + 1,
2325
+ isSubmitSuccessful: !1
2326
+ })), A(() => {
2327
+ Object.values(this.getRelatedFields()).forEach((e) => {
2328
+ e.state.meta.isTouched || e.setMeta((e) => ({
2329
+ ...e,
2330
+ isTouched: !0
2331
+ }));
2332
+ });
2333
+ });
2334
+ let t = e ?? this.options.onSubmitMeta;
2335
+ this.setFormGroupState((e) => ({
2336
+ ...e,
2337
+ isSubmitting: !0
2338
+ }));
2339
+ let n = () => {
2340
+ this.setFormGroupState((e) => ({
2341
+ ...e,
2342
+ isSubmitting: !1
2343
+ }));
2344
+ };
2345
+ if (await this.validateAllFields("submit"), !this.areRelatedFieldsValid()) {
2346
+ n(), this.options.onGroupSubmitInvalid?.({
2347
+ value: this.state.value,
2348
+ groupApi: this,
2349
+ meta: t
2350
+ });
2351
+ return;
2352
+ }
2353
+ if (await this.validate("submit", { skipRelatedFieldValidation: !0 }), !this.areRelatedFieldsValid() || !this.state.meta.isValid) {
2354
+ n(), this.options.onGroupSubmitInvalid?.({
2355
+ value: this.state.value,
2356
+ groupApi: this,
2357
+ meta: t
2358
+ });
2359
+ return;
2360
+ }
2361
+ A(() => {
2362
+ Object.values(this.getRelatedFields()).forEach((e) => {
2363
+ e.options.listeners?.onGroupSubmit?.({
2364
+ value: e.state.value,
2365
+ fieldApi: e
2366
+ });
2367
+ });
2368
+ }), this.options.listeners?.onSubmit?.({
2369
+ groupApi: this,
2370
+ value: this.state.value
2371
+ });
2372
+ try {
2373
+ await this.options.onGroupSubmit?.({
2374
+ value: this.state.value,
2375
+ groupApi: this,
2376
+ meta: t
2377
+ }), A(() => {
2378
+ this.setFormGroupState((e) => ({
2379
+ ...e,
2380
+ isSubmitted: !0,
2381
+ isSubmitSuccessful: !0
2382
+ })), n();
2383
+ });
2384
+ } catch (e) {
2385
+ throw this.setFormGroupState((e) => ({
2386
+ ...e,
2387
+ isSubmitSuccessful: !1
2388
+ })), n(), e;
2389
+ }
2390
+ }, this.form = t.form, this.name = t.name, this.options = t, this.timeoutIds = {
2391
+ validations: {},
2392
+ listeners: {},
2393
+ formListeners: {}
2394
+ }, this.fieldInfo = {
2395
+ instance: null,
2396
+ validationMetaMap: {
2397
+ onChange: void 0,
2398
+ onBlur: void 0,
2399
+ onSubmit: void 0,
2400
+ onMount: void 0,
2401
+ onServer: void 0,
2402
+ onDynamic: void 0
2403
+ }
2404
+ }, this.store = j((e) => {
2405
+ this.form.formGroupMetaDerived.get(), this.form.baseStore.get();
2406
+ let n = this.form.getFormGroupMeta(this.name) ?? Do(t.defaultMeta), r = this.form.getFieldValue(this.name);
2407
+ return !n.isTouched && r === void 0 && this.options.defaultValue !== void 0 && !B(r, this.options.defaultValue) && (r = this.options.defaultValue), e && e.value === r && e.meta === n ? e : {
2408
+ value: r,
2409
+ meta: n
2410
+ };
2411
+ }), this.handleSubmit = this.handleSubmit.bind(this);
2412
+ }
2413
+ get state() {
2414
+ return this.store.state;
2415
+ }
2416
+ runValidator(e) {
2417
+ if (bo(e.validate)) {
2418
+ let t = K[e.type](e.value, e.validate);
2419
+ return e.type === "validate" ? jo(t) : t.then(jo);
2420
+ }
2421
+ return e.validate(e.value);
2422
+ }
2423
+ handleSubmit(e) {
2424
+ return this._handleSubmit(e);
1818
2425
  }
1819
2426
  };
1820
- function Eo(e) {
2427
+ function ko(e) {
1821
2428
  if (e) return e;
1822
2429
  }
1823
- function X(e) {
2430
+ function Ao(e) {
2431
+ return !!e && typeof e == "object" && "fields" in e;
2432
+ }
2433
+ function jo(e) {
2434
+ if (!e || typeof e != "object" || !("form" in e) && !("fields" in e)) return e;
2435
+ let { form: t, fields: n, ...r } = e;
2436
+ return {
2437
+ ...r,
2438
+ group: t,
2439
+ fields: n
2440
+ };
2441
+ }
2442
+ function Mo(e) {
1824
2443
  switch (e) {
1825
2444
  case "submit": return "onSubmit";
1826
2445
  case "blur": return "onBlur";
@@ -1832,14 +2451,14 @@ function X(e) {
1832
2451
  }
1833
2452
  //#endregion
1834
2453
  //#region node_modules/@tanstack/form-core/dist/esm/FieldGroupApi.js
1835
- var Do = class e {
2454
+ var No = class e {
1836
2455
  constructor(t) {
1837
2456
  if (this.getFormFieldName = (e) => {
1838
- if (typeof this.fieldsMap == "string") return fo(this.fieldsMap, e);
2457
+ if (typeof this.fieldsMap == "string") return lo(this.fieldsMap, e);
1839
2458
  let t = I(e)[0];
1840
2459
  if (typeof t != "string") return "";
1841
2460
  let n = e.slice(t.length), r = this.fieldsMap[t];
1842
- return fo(r, n);
2461
+ return lo(r, n);
1843
2462
  }, this.getFormFieldOptions = (e) => {
1844
2463
  let t = { ...e }, n = t.validators;
1845
2464
  if (t.name = this.getFormFieldName(e.name), n && (n.onChangeListenTo || n.onBlurListenTo)) {
@@ -1858,13 +2477,13 @@ var Do = class e {
1858
2477
  this.fieldsMap = n;
1859
2478
  }
1860
2479
  } else this.form = t.form, this.fieldsMap = t.fields;
1861
- this.store = A(() => {
2480
+ this.store = j(() => {
1862
2481
  let e = this.form.store.get(), t;
1863
- if (typeof this.fieldsMap == "string") t = N(e.values, this.fieldsMap);
2482
+ if (typeof this.fieldsMap == "string") t = P(e.values, this.fieldsMap);
1864
2483
  else {
1865
2484
  t = {};
1866
2485
  let n = this.fieldsMap;
1867
- for (let r in n) t[r] = N(e.values, n[r]);
2486
+ for (let r in n) t[r] = P(e.values, n[r]);
1868
2487
  }
1869
2488
  return { values: t };
1870
2489
  });
@@ -1878,7 +2497,7 @@ var Do = class e {
1878
2497
  };
1879
2498
  //#endregion
1880
2499
  //#region node_modules/@tanstack/form-core/dist/esm/transform.js
1881
- function Oo(e, t) {
2500
+ function Po(e, t) {
1882
2501
  if (!t) return;
1883
2502
  let n = Object.assign({}, e, { state: U(e.state) });
1884
2503
  t(n), n.fieldInfo !== e.fieldInfo && (e.fieldInfo = n.fieldInfo), n.options !== e.options && (e.options = n.options);
@@ -1886,6 +2505,7 @@ function Oo(e, t) {
1886
2505
  values: null,
1887
2506
  validationMetaMap: null,
1888
2507
  fieldMetaBase: null,
2508
+ formGroupStateBase: null,
1889
2509
  isSubmitting: null,
1890
2510
  isSubmitted: null,
1891
2511
  isValidating: null,
@@ -1893,7 +2513,7 @@ function Oo(e, t) {
1893
2513
  isSubmitSuccessful: null,
1894
2514
  _force_re_eval: null
1895
2515
  }).reduce((t, r) => (e.state[r] !== n.state[r] && (t[r] = n.state[r]), t), {});
1896
- return O(() => {
2516
+ return A(() => {
1897
2517
  Object.keys(r).length && e.baseStore.setState((e) => ({
1898
2518
  ...e,
1899
2519
  ...r
@@ -1901,54 +2521,50 @@ function Oo(e, t) {
1901
2521
  }), n;
1902
2522
  }
1903
2523
  //#endregion
1904
- //#region node_modules/@tanstack/react-store/dist/esm/useStore.js
1905
- function ko(e, t) {
2524
+ //#region node_modules/@tanstack/react-store/dist/useSelector.js
2525
+ function Fo(e, t) {
1906
2526
  return e === t;
1907
2527
  }
1908
- function Z(e, t, n = ko) {
1909
- let r = Na((t) => {
1910
- if (!e) return () => {};
2528
+ function Io(e, t = (e) => e, n) {
2529
+ let r = n?.compare ?? Fo, i = ka((t) => {
1911
2530
  let { unsubscribe: n } = e.subscribe(t);
1912
2531
  return n;
1913
- }, [e]), i = Na(() => e?.get(), [e]);
1914
- return Ra(r, i, i, t, n);
2532
+ }, [e]), a = ka(() => e.get(), [e]);
2533
+ return Pa(i, a, a, t, r);
1915
2534
  }
1916
2535
  //#endregion
1917
- //#region node_modules/@tanstack/react-form/dist/esm/useIsomorphicLayoutEffect.js
1918
- var Q = typeof window < "u" ? Ia : Fa;
2536
+ //#region node_modules/@tanstack/react-store/dist/useStore.js
2537
+ var Z = (e, t = (e) => e, n) => Io(e, t, { compare: n }), Q = typeof window < "u" ? Ma : ja;
1919
2538
  //#endregion
1920
2539
  //#region node_modules/@tanstack/react-form/dist/esm/useField.js
1921
- function Ao(e) {
1922
- let [t, n] = b(() => ({
2540
+ function Lo(e) {
2541
+ let [t, n] = w(() => ({
1923
2542
  form: e.form,
1924
2543
  name: e.name
1925
- })), [r, i] = b(() => new To({ ...e }));
1926
- (t.form !== e.form || t.name !== e.name) && (i(new To({ ...e })), n({
2544
+ })), [r, i] = w(() => new wo({ ...e }));
2545
+ (t.form !== e.form || t.name !== e.name) && (i(new wo({ ...e })), n({
1927
2546
  form: e.form,
1928
2547
  name: e.name
1929
2548
  }));
1930
- 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(() => {
1931
- let t = {
1932
- ...r,
1933
- get state() {
1934
- return {
1935
- value: e.mode === "array" ? r.state.value : a,
1936
- get meta() {
1937
- return {
1938
- ...r.state.meta,
1939
- isTouched: o,
1940
- isBlurred: s,
1941
- isDirty: c,
1942
- errorMap: l,
1943
- errorSourceMap: u,
1944
- isValidating: d
1945
- };
1946
- }
1947
- };
1948
- }
1949
- };
1950
- return t.Field = jo, t;
1951
- }, [
2549
+ let a = Z(r.store, e.mode === "array" ? (e) => e.meta._arrayVersion || 0 : (e) => e.value), o = Z(r.store, (e) => e.meta.isTouched), s = Z(r.store, (e) => e.meta.isBlurred), c = Z(r.store, (e) => e.meta.isDirty), l = Z(r.store, (e) => e.meta.errorMap), u = Z(r.store, (e) => e.meta.errorSourceMap), d = Z(r.store, (e) => e.meta.isValidating), f = C(() => ({
2550
+ ...r,
2551
+ get state() {
2552
+ return {
2553
+ value: e.mode === "array" ? r.state.value : a,
2554
+ get meta() {
2555
+ return {
2556
+ ...r.state.meta,
2557
+ isTouched: o,
2558
+ isBlurred: s,
2559
+ isDirty: c,
2560
+ errorMap: l,
2561
+ errorSourceMap: u,
2562
+ isValidating: d
2563
+ };
2564
+ }
2565
+ };
2566
+ }
2567
+ }), [
1952
2568
  r,
1953
2569
  e.mode,
1954
2570
  a,
@@ -1963,36 +2579,103 @@ function Ao(e) {
1963
2579
  r.update(e);
1964
2580
  }), f;
1965
2581
  }
1966
- var jo = (({ children: e, ...t }) => {
1967
- let n = Ao(t);
1968
- return /* @__PURE__ */ S(x, { children: y(() => M(e, n), [e, n]) });
2582
+ var Ro = (({ children: e, ...t }) => {
2583
+ let n = Lo(t);
2584
+ return /* @__PURE__ */ T(Fa, { children: C(() => N(e, n), [e, n]) });
1969
2585
  });
1970
2586
  //#endregion
1971
2587
  //#region node_modules/@tanstack/react-form/dist/esm/useUUID.js
1972
- function Mo() {
1973
- return b(() => vo())[0];
2588
+ function zo() {
2589
+ return w(() => go())[0];
1974
2590
  }
1975
2591
  //#endregion
1976
2592
  //#region node_modules/@tanstack/react-form/dist/esm/useFormId.js
1977
- var No = ja, Po = ja.version.split(".")[0] === "17" ? Mo : No.useId;
2593
+ var Bo = Da, Vo = Da.version.split(".")[0] === "17" ? zo : Bo.useId;
2594
+ //#endregion
2595
+ //#region node_modules/@tanstack/react-form/dist/esm/useFormGroup.js
2596
+ function Ho(e) {
2597
+ let [t, n] = w(() => ({
2598
+ form: e.form,
2599
+ name: e.name
2600
+ })), [r, i] = w(() => new Oo({ ...e }));
2601
+ (t.form !== e.form || t.name !== e.name) && (i(new Oo({ ...e })), n({
2602
+ form: e.form,
2603
+ name: e.name
2604
+ }));
2605
+ let a = Z(r.store, (e) => e.value), o = Z(r.store, (e) => e.meta.isTouched), s = Z(r.store, (e) => e.meta.isBlurred), c = Z(r.store, (e) => e.meta.isDirty), l = Z(r.store, (e) => e.meta.errorMap), u = Z(r.store, (e) => e.meta.errorSourceMap), d = Z(r.store, (e) => e.meta.isValidating), f = Z(r.store, (e) => e.meta.isSubmitting), p = Z(r.store, (e) => e.meta.isSubmitted), m = Z(r.store, (e) => e.meta.submissionAttempts), h = Z(r.store, (e) => e.meta.isSubmitSuccessful), g = Z(r.store, (e) => e.meta.canSubmit), _ = Z(r.store, (e) => e.meta.isValid), v = Z(r.store, (e) => e.meta.isFieldsValid), y = Z(r.store, (e) => e.meta.isFieldsValidating), b = Z(r.store, (e) => e.meta.isGroupValid), x = C(() => ({
2606
+ ...r,
2607
+ handleSubmit: ((...e) => r._handleSubmit(...e)),
2608
+ get state() {
2609
+ return {
2610
+ ...r.state,
2611
+ value: a,
2612
+ get meta() {
2613
+ return {
2614
+ ...r.state.meta,
2615
+ isTouched: o,
2616
+ isBlurred: s,
2617
+ isDirty: c,
2618
+ errorMap: l,
2619
+ errorSourceMap: u,
2620
+ isValidating: d,
2621
+ isSubmitting: f,
2622
+ isSubmitted: p,
2623
+ submissionAttempts: m,
2624
+ isSubmitSuccessful: h,
2625
+ canSubmit: g,
2626
+ isValid: _,
2627
+ isFieldsValid: v,
2628
+ isFieldsValidating: y,
2629
+ isGroupValid: b
2630
+ };
2631
+ }
2632
+ };
2633
+ }
2634
+ }), [
2635
+ r,
2636
+ a,
2637
+ o,
2638
+ s,
2639
+ c,
2640
+ l,
2641
+ u,
2642
+ d,
2643
+ f,
2644
+ p,
2645
+ m,
2646
+ h,
2647
+ g,
2648
+ _,
2649
+ v,
2650
+ y,
2651
+ b
2652
+ ]);
2653
+ return Q(r.mount, [r]), Q(() => {
2654
+ r.update(e);
2655
+ }), x;
2656
+ }
2657
+ var Uo = (({ children: e, ...t }) => {
2658
+ let n = Ho(t);
2659
+ return /* @__PURE__ */ T(Fa, { children: C(() => N(e, n), [e, n]) });
2660
+ });
1978
2661
  //#endregion
1979
2662
  //#region node_modules/@tanstack/react-form/dist/esm/useForm.js
1980
- function Fo({ form: e, selector: t = (e) => e, children: n }) {
1981
- return /* @__PURE__ */ S(x, { children: M(n, Z(e.store, t)) });
2663
+ function Wo({ form: e, selector: t = (e) => e, children: n }) {
2664
+ return /* @__PURE__ */ T(Fa, { children: N(n, Z(e.store, t)) });
1982
2665
  }
1983
- function Io(e) {
1984
- let t = Po(), [n, r] = b(e?.formId), [i, a] = b(() => new wo({
2666
+ function Go(e) {
2667
+ let t = Vo(), [n, r] = w(e?.formId), [i, a] = w(() => new So({
1985
2668
  ...e,
1986
2669
  formId: e?.formId ?? t
1987
2670
  }));
1988
2671
  if (n !== e?.formId) {
1989
2672
  let n = e?.formId ?? t;
1990
- a(new wo({
2673
+ a(new So({
1991
2674
  ...e,
1992
2675
  formId: n
1993
2676
  })), r(n);
1994
2677
  }
1995
- let o = y(() => {
2678
+ let o = C(() => {
1996
2679
  let e = {
1997
2680
  ...i,
1998
2681
  handleSubmit: ((...e) => i._handleSubmit(...e)),
@@ -2004,12 +2687,17 @@ function Io(e) {
2004
2687
  }
2005
2688
  };
2006
2689
  return e.Field = function(e) {
2007
- return /* @__PURE__ */ S(jo, {
2690
+ return /* @__PURE__ */ T(Ro, {
2691
+ ...e,
2692
+ form: i
2693
+ });
2694
+ }, e.FormGroup = function(e) {
2695
+ return /* @__PURE__ */ T(Uo, {
2008
2696
  ...e,
2009
2697
  form: i
2010
2698
  });
2011
2699
  }, e.Subscribe = function(e) {
2012
- return /* @__PURE__ */ S(Fo, {
2700
+ return /* @__PURE__ */ T(Wo, {
2013
2701
  form: i,
2014
2702
  selector: e.selector,
2015
2703
  children: e.children
@@ -2019,29 +2707,29 @@ function Io(e) {
2019
2707
  Q(i.mount, []), Q(() => {
2020
2708
  i.update(e);
2021
2709
  });
2022
- let s = La(!1);
2710
+ let s = Na(!1);
2023
2711
  return Q(() => {
2024
- s.current && e?.transform && Oo(i, e.transform);
2712
+ s.current && e?.transform && Po(i, e.transform);
2025
2713
  }, [i, e?.transform]), Q(() => {
2026
2714
  s.current = !0;
2027
2715
  }), o;
2028
2716
  }
2029
2717
  //#endregion
2030
2718
  //#region node_modules/@tanstack/react-form/dist/esm/useFieldGroup.js
2031
- function Lo({ lens: e, selector: t = (e) => e, children: n }) {
2032
- return /* @__PURE__ */ S(x, { children: M(n, Z(e.store, t)) });
2719
+ function Ko({ lens: e, selector: t = (e) => e, children: n }) {
2720
+ return /* @__PURE__ */ T(Fa, { children: N(n, Z(e.store, t)) });
2033
2721
  }
2034
- function Ro(e) {
2035
- let [t] = b(() => {
2036
- let n = new Do(e), r = e.form instanceof Do ? e.form.form : e.form, i = n;
2722
+ function qo(e) {
2723
+ let [t] = w(() => {
2724
+ let n = new No(e), r = e.form instanceof No ? e.form.form : e.form, i = n;
2037
2725
  return i.AppForm = function(e) {
2038
- return /* @__PURE__ */ S(r.AppForm, { ...e });
2726
+ return /* @__PURE__ */ T(r.AppForm, { ...e });
2039
2727
  }, i.AppField = function(e) {
2040
- return /* @__PURE__ */ S(r.AppField, { ...t.getFormFieldOptions(e) });
2728
+ return /* @__PURE__ */ T(r.AppField, { ...t.getFormFieldOptions(e) });
2041
2729
  }, i.Field = function(e) {
2042
- return /* @__PURE__ */ S(r.Field, { ...t.getFormFieldOptions(e) });
2730
+ return /* @__PURE__ */ T(r.Field, { ...t.getFormFieldOptions(e) });
2043
2731
  }, i.Subscribe = function(e) {
2044
- return /* @__PURE__ */ S(Lo, {
2732
+ return /* @__PURE__ */ T(Ko, {
2045
2733
  lens: t,
2046
2734
  selector: e.selector,
2047
2735
  children: e.children
@@ -2052,38 +2740,38 @@ function Ro(e) {
2052
2740
  }
2053
2741
  //#endregion
2054
2742
  //#region node_modules/@tanstack/react-form/dist/esm/createFormHook.js
2055
- var zo = Ma(null), Bo = Ma(null);
2056
- function Vo() {
2057
- let e = Pa(Bo);
2743
+ var Jo = Oa(null), Yo = Oa(null);
2744
+ function Xo() {
2745
+ let e = Aa(Yo);
2058
2746
  if (!e) throw Error("`formContext` only works when within a `formComponent` passed to `createFormHook`");
2059
2747
  return e;
2060
2748
  }
2061
- function Ho() {
2749
+ function Zo() {
2062
2750
  function e() {
2063
- let e = Pa(zo);
2751
+ let e = Aa(Jo);
2064
2752
  if (!e) throw Error("`fieldContext` only works when within a `fieldComponent` passed to `createFormHook`");
2065
2753
  return e;
2066
2754
  }
2067
2755
  return {
2068
- fieldContext: zo,
2756
+ fieldContext: Jo,
2069
2757
  useFieldContext: e,
2070
- useFormContext: Vo,
2071
- formContext: Bo
2758
+ useFormContext: Xo,
2759
+ formContext: Yo
2072
2760
  };
2073
2761
  }
2074
- function Uo({ fieldComponents: e, fieldContext: t, formContext: n, formComponents: r }) {
2762
+ function Qo({ fieldComponents: e, fieldContext: t, formContext: n, formComponents: r }) {
2075
2763
  function i(i) {
2076
- let a = Io(i), o = y(() => ({ children: e }) => /* @__PURE__ */ S(n.Provider, {
2764
+ let a = Go(i), o = C(() => ({ children: e }) => /* @__PURE__ */ T(n.Provider, {
2077
2765
  value: a,
2078
2766
  children: e
2079
- }), [a]), s = y(() => (({ children: n, ...r }) => /* @__PURE__ */ S(a.Field, {
2767
+ }), [a]), s = C(() => (({ children: n, ...r }) => /* @__PURE__ */ T(a.Field, {
2080
2768
  ...r,
2081
- children: (r) => /* @__PURE__ */ S(t.Provider, {
2769
+ children: (r) => /* @__PURE__ */ T(t.Provider, {
2082
2770
  value: r,
2083
2771
  children: n(Object.assign(r, e))
2084
2772
  })
2085
2773
  })), [a]);
2086
- return y(() => Object.assign(a, {
2774
+ return C(() => Object.assign(a, {
2087
2775
  AppField: s,
2088
2776
  AppForm: o,
2089
2777
  ...r
@@ -2103,7 +2791,7 @@ function Uo({ fieldComponents: e, fieldContext: t, formContext: n, formComponent
2103
2791
  }
2104
2792
  function o({ render: e, props: t, defaultValues: n }) {
2105
2793
  return function(i) {
2106
- let a = Ro(y(() => ({
2794
+ let a = qo(C(() => ({
2107
2795
  form: i.form,
2108
2796
  fields: i.fields,
2109
2797
  defaultValues: n,
@@ -2117,10 +2805,10 @@ function Uo({ fieldComponents: e, fieldContext: t, formContext: n, formComponent
2117
2805
  };
2118
2806
  }
2119
2807
  function s(e) {
2120
- return Vo();
2808
+ return Xo();
2121
2809
  }
2122
2810
  function c(i) {
2123
- return Uo({
2811
+ return Qo({
2124
2812
  fieldContext: t,
2125
2813
  formContext: n,
2126
2814
  fieldComponents: {
@@ -2143,26 +2831,26 @@ function Uo({ fieldComponents: e, fieldContext: t, formContext: n, formComponent
2143
2831
  }
2144
2832
  //#endregion
2145
2833
  //#region src/components/ui/form.tsx
2146
- var { fieldContext: Wo, formContext: Go, useFieldContext: $, useFormContext: Ko } = Ho();
2147
- function qo({ className: e, ...t }) {
2148
- return /* @__PURE__ */ S("div", {
2834
+ var { fieldContext: $o, formContext: es, useFieldContext: $, useFormContext: ts } = Zo();
2835
+ function ns({ className: e, ...t }) {
2836
+ return /* @__PURE__ */ T("div", {
2149
2837
  "data-slot": "form-item",
2150
2838
  className: d("flex flex-col gap-1.5", e),
2151
2839
  ...t
2152
2840
  });
2153
2841
  }
2154
- function Jo({ className: e, ...t }) {
2842
+ function rs({ className: e, ...t }) {
2155
2843
  let n = $(), r = Z(n.store, (e) => e.meta.errors);
2156
- return /* @__PURE__ */ S(re, {
2844
+ return /* @__PURE__ */ T(S, {
2157
2845
  "data-slot": "form-label",
2158
2846
  htmlFor: String(n.name),
2159
2847
  className: d(r.length > 0 && "text-destructive", e),
2160
2848
  ...t
2161
2849
  });
2162
2850
  }
2163
- function Yo({ className: e, ...t }) {
2851
+ function is({ className: e, ...t }) {
2164
2852
  let n = $(), r = Z(n.store, (e) => e.meta.errors), i = String(n.name);
2165
- return /* @__PURE__ */ S("div", {
2853
+ return /* @__PURE__ */ T("div", {
2166
2854
  "data-slot": "form-control",
2167
2855
  id: i,
2168
2856
  "aria-describedby": `${i}-description ${i}-message`,
@@ -2171,18 +2859,18 @@ function Yo({ className: e, ...t }) {
2171
2859
  ...t
2172
2860
  });
2173
2861
  }
2174
- function Xo({ className: e, ...t }) {
2862
+ function as({ className: e, ...t }) {
2175
2863
  let n = $();
2176
- return /* @__PURE__ */ S("p", {
2864
+ return /* @__PURE__ */ T("p", {
2177
2865
  "data-slot": "form-description",
2178
2866
  id: `${String(n.name)}-description`,
2179
2867
  className: d("text-sm text-muted-foreground", e),
2180
2868
  ...t
2181
2869
  });
2182
2870
  }
2183
- function Zo({ className: e, children: t, ...n }) {
2871
+ function os({ className: e, children: t, ...n }) {
2184
2872
  let r = $(), i = Z(r.store, (e) => e.meta.errors), a = t ?? (i.length > 0 ? i[0]?.message ?? String(i[0]) : null);
2185
- return a ? /* @__PURE__ */ S("p", {
2873
+ return a ? /* @__PURE__ */ T("p", {
2186
2874
  "data-slot": "form-message",
2187
2875
  id: `${String(r.name)}-message`,
2188
2876
  role: "alert",
@@ -2192,4 +2880,4 @@ function Zo({ className: e, children: t, ...n }) {
2192
2880
  }) : null;
2193
2881
  }
2194
2882
  //#endregion
2195
- export { wr as Accordion, nr as AccordionContent, Qn as AccordionItem, Sn as AccordionTrigger, xe as Alert, Hn as AlertAction, ti as AlertDescription, tn as AlertDialog, $e as AlertDialogAction, Zt as AlertDialogCancel, on as AlertDialogContent, Ye as AlertDialogDescription, dt as AlertDialogFooter, Hr as AlertDialogHeader, st as AlertDialogMedia, mn as AlertDialogOverlay, un as AlertDialogPortal, vn as AlertDialogTitle, Ft as AlertDialogTrigger, Dr as AlertProvider, Gr as AlertTitle, Rr as AspectRatio, za as Autocomplete, Jn as Avatar, ci as Badge, qr as Breadcrumb, sr as BreadcrumbEllipsis, Dn as BreadcrumbItem, Pr as BreadcrumbLink, Qr as BreadcrumbList, In as BreadcrumbPage, br as BreadcrumbSeparator, l as Button, Pt as ButtonGroup, be as ButtonGroupSeparator, Wn as ButtonGroupText, Aa as CCombobox, zi as Calendar, Hi as CalendarDayButton, Je as Card, ut as CardAction, Vr as CardContent, ot as CardDescription, pn as CardFooter, ln as CardHeader, _n as CardTitle, ji as Carousel, pa as CarouselContent, Ui as CarouselItem, Wi as CarouselNext, Ki as CarouselPrevious, Da as ChartContainer, Xi as ChartLegend, Fi as ChartLegendContent, Pi as ChartStyle, Gi as ChartTooltip, ma as ChartTooltipContent, an as Checkbox, en as Collapsible, Qe as CollapsibleContent, Xt as CollapsibleTrigger, Ji as Combobox, Mi as ComboboxChip, Qi as ComboboxChips, Ri as ComboboxChipsInput, Zi as ComboboxCollection, $i as ComboboxContent, Li as ComboboxEmpty, Vi as ComboboxField, ba as ComboboxGroup, Bi as ComboboxInput, ta as ComboboxItem, ea as ComboboxLabel, na as ComboboxList, qi as ComboboxSeparator, Ai as ComboboxTrigger, ca as ComboboxValue, da as Command, ua as CommandDialog, ra as CommandEmpty, Ea as CommandGroup, ka as CommandInput, aa as CommandItem, Oa as CommandList, Yi as CommandSeparator, Ni as CommandShortcut, Oi as ConfirmationDialogProvider, Be as ContextMenu, Ie as ContextMenuCheckboxItem, Et as ContextMenuContent, mr as ContextMenuGroup, we as ContextMenuItem, ur as ContextMenuLabel, vt as ContextMenuPortal, St as ContextMenuRadioGroup, At as ContextMenuRadioItem, We as ContextMenuSeparator, nt as ContextMenuShortcut, mt as ContextMenuSub, Rt as ContextMenuSubContent, Di as ContextMenuSubTrigger, Oe as ContextMenuTrigger, o as DEFAULT_OPSFUSE_BRAND_THEME, he as DateFns, 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, hi as DirectionProvider, ia as Drawer, va as DrawerClose, Sa as DrawerContent, oa as DrawerDescription, ha as DrawerFooter, Ta as DrawerHeader, sa as DrawerOverlay, la as DrawerPortal, ya as DrawerTitle, ga as DrawerTrigger, Me as DropdownMenu, Ht as Empty, qn as Field, Lr as FieldContent, Cr as FieldDescription, tr as FieldError, Zn as FieldGroup, xn as FieldLabel, di as FieldLegend, Ci as FieldSeparator, An as FieldSet, yi as FieldTitle, Yo as FormControl, Xo as FormDescription, qo as FormItem, Jo as FormLabel, Zo as FormMessage, yr as HoverCard, si as HoverCardContent, zn as HoverCardTrigger, m as Input, ue as InputGroup, ae as InputGroupAddon, ce as InputGroupButton, v as InputGroupInput, p as InputGroupText, oe as InputGroupTextarea, Ca as InputOTP, _a as InputOTPGroup, xa as InputOTPSeparator, fa as InputOTPSlot, It as Item, Se as ItemActions, Un as ItemContent, ni as ItemDescription, Or as ItemFooter, Kr as ItemGroup, or as ItemHeader, En as ItemMedia, Nr as ItemSeparator, Zr as ItemTitle, dn as Kbd, yn as KbdGroup, re as Label, _e as Lucide, Mt as Menubar, Ke as MenubarCheckboxItem, it as MenubarContent, gt as MenubarGroup, Bt as MenubarItem, ki as MenubarLabel, Ae as MenubarMenu, nn as MenubarPortal, et as MenubarRadioGroup, Qt as MenubarRadioItem, sn as MenubarSeparator, Xe as MenubarShortcut, ft as MenubarSub, Ur as MenubarSubContent, ct as MenubarSubTrigger, hn as MenubarTrigger, Jt as NavigationMenu, He as NavigationMenuContent, Re as NavigationMenuIndicator, Ot as NavigationMenuItem, gr as NavigationMenuLink, Ee as NavigationMenuList, fr as NavigationMenuTrigger, bt as NavigationMenuViewport, s as OPSFUSE_BRAND_THEMES, e as OPSFUSE_THEME_SCOPE, wi as OpsfuseRoot, jn as OpsfuseThemeProvider, Fn as PageHeader, pi as Pagination, Ti as PaginationContent, Mn as PaginationEllipsis, xi as PaginationItem, Wt as PaginationLink, Pe as PaginationNext, _i as PaginationPrevious, Cn as PaginationWrapper, li as Popover, Vn as PopoverAnchor, Yn as PopoverContent, zr as PopoverDescription, Tr as PopoverHeader, rr as PopoverTitle, $n as PopoverTrigger, xr as Progress, $r as RadioGroup, Ln as RadioGroupItem, ve as Recharts, oi as RecruitSmartly, cr as ResizableHandle, On as ResizablePanel, Fr as ResizablePanelGroup, qe as SSelect, Ne as STooltip, Ar as ScrollArea, Jr as ScrollBar, rn as Select, lt as SelectContent, Br as SelectField, at as SelectGroup, fn as SelectItem, cn as SelectLabel, gn as SelectScrollDownButton, Nt as SelectScrollUpButton, ye as SelectSeparator, Gn as SelectTrigger, ii as SelectValue, kr as Separator, hr as Sheet, Te as SheetClose, dr as SheetContent, yt as SheetDescription, Ct as SheetFooter, jt as SheetHeader, Ge as SheetProvider, rt as SheetTitle, ht as SheetTrigger, Si as Sidebar, kn as SidebarContent, vi as SidebarFooter, Vt as SidebarGroup, je as SidebarGroupAction, mi as SidebarGroupContent, Gt as SidebarGroupLabel, ze as SidebarHeader, Fe as SidebarInput, Tt as SidebarInset, pr as SidebarMenu, Ce as SidebarMenuAction, lr as SidebarMenuBadge, _t as SidebarMenuButton, xt as SidebarMenuItem, kt as SidebarMenuSkeleton, Ue as SidebarMenuSub, tt as SidebarMenuSubButton, pt as SidebarMenuSubItem, Lt as SidebarProvider, Ei as SidebarRail, De as SidebarSeparator, $t as SidebarTrigger, Yt as Skeleton, vr as SkillReady, Ve as Slider, Le as SliderDialogProvider, a as Spinner, ui as Switch, ai as Table, Rn as TableBody, Kn as TableCaption, Ir as TableCell, Sr as TableFooter, er as TableHead, Xn as TableHeader, bn as TableRow, jr as Tabs, wn as TabsComponent, Yr as TabsContent, Nn as TabsList, _r as TabsTrigger, Pn as TalentScan, le as Textarea, de as Toaster, Wr as Toggle, ei as ToggleGroup, Er as ToggleGroupItem, bi as Tooltip, Ut as TooltipContent, gi as TooltipProvider, qt as TooltipTrigger, Xr as Verity, Mr as WorkLog, Bn as badgeVariants, ri as buttonGroupVariants, i as buttonVariants, d as cn, ke as confirm, Uo as createFormHook, ar as dismissAlert, Wo as fieldContext, Go as formContext, r as mergeOpsfusePortalSurface, wt as navigationMenuTriggerStyle, t as openDialog, zt as openSheet, Dt as openSlider, n as opsfuseBrandThemeClass, Tn as showAlert, h as toast, ir as toggleVariants, Ii as useCarousel, wa as useComboboxAnchor, Kt as useDirection, $ as useFieldContext, Ko as useFormContext, fi as useIsMobile, c as useOpsfuseBrandTheme, ne as useOpsfusePortalSurface, Ze as useSidebar };
2883
+ export { br as Accordion, Qn as AccordionContent, Jn as AccordionItem, vn as AccordionTrigger, _e as Alert, Rn as AlertAction, Zr as AlertDescription, Zt as AlertDialog, Ye as AlertDialogAction, qt as AlertDialogCancel, tn as AlertDialogContent, Ge as AlertDialogDescription, st as AlertDialogFooter, Rr as AlertDialogHeader, rt as AlertDialogMedia, un as AlertDialogOverlay, on as AlertDialogPortal, mn as AlertDialogTitle, jt as AlertDialogTrigger, Cr as AlertProvider, Vr as AlertTitle, Pr as AspectRatio, Ia as Autocomplete, Wn as Avatar, ii as Badge, Ur as Breadcrumb, rr as BreadcrumbEllipsis, Cn as BreadcrumbItem, Ar as BreadcrumbLink, Jr as BreadcrumbList, Mn as BreadcrumbPage, gr as BreadcrumbSeparator, l as Button, At as ButtonGroup, ge as ButtonGroupSeparator, Bn as ButtonGroupText, Ea as CCombobox, Fi as Calendar, Ri as CalendarDayButton, We as Card, ot as CardAction, Lr as CardContent, nt as CardDescription, ln as CardFooter, an as CardHeader, pn as CardTitle, Di as Carousel, la as CarouselContent, zi as CarouselItem, Bi as CarouselNext, Hi as CarouselPrevious, Ca as ChartContainer, Ki as ChartLegend, ji as ChartLegendContent, Ai as ChartStyle, Vi as ChartTooltip, ua as ChartTooltipContent, en as Checkbox, Xt as Collapsible, Je as CollapsibleContent, Kt as CollapsibleTrigger, Wi as Combobox, Oi as ComboboxChip, Ji as ComboboxChips, Pi as ComboboxChipsInput, qi as ComboboxCollection, Yi as ComboboxContent, Ni as ComboboxEmpty, Li as ComboboxField, ga as ComboboxGroup, Ii as ComboboxInput, Zi as ComboboxItem, Xi as ComboboxLabel, Qi as ComboboxList, Ui as ComboboxSeparator, Ei as ComboboxTrigger, ia as ComboboxValue, sa as Command, oa as CommandDialog, $i as CommandEmpty, Sa as CommandGroup, Ta as CommandInput, ta as CommandItem, wa as CommandList, Gi as CommandSeparator, ki as CommandShortcut, wi as ConfirmationDialogProvider, Ie as ContextMenu, Me as ContextMenuCheckboxItem, St as ContextMenuContent, ur as ContextMenuGroup, be as ContextMenuItem, or as ContextMenuLabel, mt as ContextMenuPortal, vt as ContextMenuRadioGroup, Et as ContextMenuRadioItem, Be as ContextMenuSeparator, Qe as ContextMenuShortcut, ut as ContextMenuSub, Pt as ContextMenuSubContent, Ci as ContextMenuSubTrigger, we as ContextMenuTrigger, o as DEFAULT_OPSFUSE_BRAND_THEME, de as DateFns, _ as Dialog, re as DialogClose, ee as DialogContent, y as DialogDescription, v as DialogFooter, f as DialogHeader, ce as DialogOverlay, ue as DialogPortal, m as DialogProvider, le as DialogTitle, u as DialogTrigger, di as DirectionProvider, ea as Drawer, ma as DrawerClose, va as DrawerContent, na as DrawerDescription, da as DrawerFooter, xa as DrawerHeader, ra as DrawerOverlay, aa as DrawerPortal, ha as DrawerTitle, fa as DrawerTrigger, Oe as DropdownMenu, Rt as Empty, Un as Field, Nr as FieldContent, yr as FieldDescription, Zn as FieldError, qn as FieldGroup, _n as FieldLabel, si as FieldLegend, yi as FieldSeparator, En as FieldSet, hi as FieldTitle, is as FormControl, as as FormDescription, ns as FormItem, rs as FormLabel, os as FormMessage, hr as HoverCard, ri as HoverCardContent, Fn as HoverCardTrigger, h as Input, oe as InputGroup, te as InputGroupAddon, ie as InputGroupButton, b as InputGroupInput, p as InputGroupText, ne as InputGroupTextarea, ya as InputOTP, pa as InputOTPGroup, _a as InputOTPSeparator, ca as InputOTPSlot, Mt as Item, ve as ItemActions, zn as ItemContent, Qr as ItemDescription, wr as ItemFooter, Hr as ItemGroup, nr as ItemHeader, Sn as ItemMedia, kr as ItemSeparator, qr as ItemTitle, sn as Kbd, hn as KbdGroup, S as Label, pe as Lucide, Ot as Menubar, He as MenubarCheckboxItem, et as MenubarContent, ft as MenubarGroup, It as MenubarItem, Ti as MenubarLabel, Ee as MenubarMenu, Qt as MenubarPortal, Xe as MenubarRadioGroup, Jt as MenubarRadioItem, nn as MenubarSeparator, Ke as MenubarShortcut, ct as MenubarSub, zr as MenubarSubContent, it as MenubarSubTrigger, dn as MenubarTrigger, Wt as NavigationMenu, Re as NavigationMenuContent, Pe as NavigationMenuIndicator, wt as NavigationMenuItem, fr as NavigationMenuLink, Se as NavigationMenuList, cr as NavigationMenuTrigger, gt as NavigationMenuViewport, s as OPSFUSE_BRAND_THEMES, e as OPSFUSE_THEME_SCOPE, bi as OpsfuseRoot, Dn as OpsfuseThemeProvider, jn as PageHeader, li as Pagination, xi as PaginationContent, On as PaginationEllipsis, _i as PaginationItem, Bt as PaginationLink, Ae as PaginationNext, pi as PaginationPrevious, yn as PaginationWrapper, ai as Popover, Ln as PopoverAnchor, Gn as PopoverContent, Fr as PopoverDescription, xr as PopoverHeader, $n as PopoverTitle, Yn as PopoverTrigger, _r as Progress, Yr as RadioGroup, Nn as RadioGroupItem, me as Recharts, ni as RecruitSmartly, ir as ResizableHandle, wn as ResizablePanel, jr as ResizablePanelGroup, Ue as SSelect, ke as STooltip, Er as ScrollArea, Wr as ScrollBar, $t as Select, at as SelectContent, Ir as SelectField, tt as SelectGroup, cn as SelectItem, rn as SelectLabel, fn as SelectScrollDownButton, kt as SelectScrollUpButton, he as SelectSeparator, Vn as SelectTrigger, ei as SelectValue, Tr as Separator, dr as Sheet, xe as SheetClose, sr as SheetContent, ht as SheetDescription, yt as SheetFooter, Dt as SheetHeader, Ve as SheetProvider, $e as SheetTitle, dt as SheetTrigger, vi as Sidebar, Tn as SidebarContent, mi as SidebarFooter, Lt as SidebarGroup, De as SidebarGroupAction, ui as SidebarGroupContent, Vt as SidebarGroupLabel, Fe as SidebarHeader, je as SidebarInput, xt as SidebarInset, lr as SidebarMenu, ye as SidebarMenuAction, ar as SidebarMenuBadge, pt as SidebarMenuButton, _t as SidebarMenuItem, Tt as SidebarMenuSkeleton, ze as SidebarMenuSub, Ze as SidebarMenuSubButton, lt as SidebarMenuSubItem, Nt as SidebarProvider, Si as SidebarRail, Ce as SidebarSeparator, Yt as SidebarTrigger, Gt as Skeleton, mr as SkillReady, Le as Slider, Ne as SliderDialogProvider, a as Spinner, oi as Switch, ti as Table, Pn as TableBody, Hn as TableCaption, Mr as TableCell, vr as TableFooter, Xn as TableHead, Kn as TableHeader, gn as TableRow, Dr as Tabs, bn as TabsComponent, Gr as TabsContent, kn as TabsList, pr as TabsTrigger, An as TalentScan, ae as Textarea, se as Toaster, Br as Toggle, Xr as ToggleGroup, Sr as ToggleGroupItem, gi as Tooltip, zt as TooltipContent, fi as TooltipProvider, Ut as TooltipTrigger, Kr as Verity, Or as WorkLog, In as badgeVariants, $r as buttonGroupVariants, i as buttonVariants, d as cn, Te as confirm, Qo as createFormHook, tr as dismissAlert, $o as fieldContext, es as formContext, r as mergeOpsfusePortalSurface, bt as navigationMenuTriggerStyle, t as openDialog, Ft as openSheet, Ct as openSlider, n as opsfuseBrandThemeClass, xn as showAlert, g as toast, er as toggleVariants, Mi as useCarousel, ba as useComboboxAnchor, Ht as useDirection, $ as useFieldContext, ts as useFormContext, ci as useIsMobile, c as useOpsfuseBrandTheme, x as useOpsfusePortalSurface, qe as useSidebar };