@wssto2/vue-core 0.4.19 → 0.4.20

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 (54) hide show
  1. package/dist/{Activity-CLyG5Y9o.js → Activity-C0NvjIi5.js} +3 -3
  2. package/dist/{Changes-xF1VMbqD.js → Changes-hoMHeAZt.js} +2 -2
  3. package/dist/{CollectionPage.vue_vue_type_script_setup_true_lang-nojILoAf.js → CollectionPage.vue_vue_type_script_setup_true_lang-BNM_cbXa.js} +2 -2
  4. package/dist/DateField.vue_vue_type_script_setup_true_lang-CpuH0WTl.js +281 -0
  5. package/dist/{DeadLetters-AbbNs69D.js → DeadLetters-O6QReswO.js} +2 -2
  6. package/dist/{FormGroup.vue_vue_type_script_setup_true_lang-C7nq7MJB.js → FormGroup.vue_vue_type_script_setup_true_lang-DSwSRsA5.js} +2 -1
  7. package/dist/{General-De4Q6Wfn.js → General-9Sgxb74n.js} +4 -4
  8. package/dist/{NewRolePage-QAv_XsT0.js → NewRolePage-D-LunWMH.js} +2 -2
  9. package/dist/NumberField.vue_vue_type_script_setup_true_lang-DaE5BLm4.js +161 -0
  10. package/dist/{ProfilePage-CjjKhkHX.js → ProfilePage-DJUDCyEr.js} +3 -3
  11. package/dist/{RoleEditor.vue_vue_type_script_setup_true_lang-FLJk6Kb2.js → RoleEditor.vue_vue_type_script_setup_true_lang-D-b-O6SG.js} +4 -4
  12. package/dist/{RolePage-De7s2sYr.js → RolePage-Ha-EgoEJ.js} +4 -4
  13. package/dist/{RolesPage-TXQKtK_J.js → RolesPage-8uWWCClN.js} +3 -3
  14. package/dist/SelectField.vue_vue_type_script_setup_true_lang-C3FbRQW7.js +515 -0
  15. package/dist/{SessionList.vue_vue_type_script_setup_true_lang-CuxVe7rm.js → SessionList.vue_vue_type_script_setup_true_lang-D5qm77Zo.js} +1 -1
  16. package/dist/{Sessions-BDLI0o-z.js → Sessions-Dz4KYMu9.js} +2 -2
  17. package/dist/{SettingsPage-Kzcqv91E.js → SettingsPage-D47NSOYW.js} +3 -3
  18. package/dist/{SignIn-DKo46hNK.js → SignIn-CNv68Tba.js} +2 -2
  19. package/dist/{SignInPage-B2v3is80.js → SignInPage-CsjC4aiV.js} +2 -2
  20. package/dist/{SignIns-D-_a_S6O.js → SignIns-CgsNf8uf.js} +1 -1
  21. package/dist/{TextField.vue_vue_type_script_setup_true_lang-BslHroDP.js → TextField.vue_vue_type_script_setup_true_lang-CP2WeU36.js} +114 -111
  22. package/dist/TextareaField.vue_vue_type_script_setup_true_lang-BJ4__cvJ.js +93 -0
  23. package/dist/TimeField.vue_vue_type_script_setup_true_lang-DBxKAWRo.js +190 -0
  24. package/dist/{UserRecord-BR70ai9q.js → UserRecord-B9r_9U1z.js} +4 -4
  25. package/dist/{UsersList-BC9S6omH.js → UsersList-BBLa3OCv.js} +6 -6
  26. package/dist/access/index.js +1 -1
  27. package/dist/collection/index.js +1 -1
  28. package/dist/form/ComboField.vue.d.ts +7 -3
  29. package/dist/form/DateField.vue.d.ts +4 -0
  30. package/dist/form/DateTimeField.vue.d.ts +4 -0
  31. package/dist/form/MoneyField.vue.d.ts +10 -5
  32. package/dist/form/NumberField.vue.d.ts +13 -5
  33. package/dist/form/SelectField.vue.d.ts +3 -1
  34. package/dist/form/TextField.vue.d.ts +4 -0
  35. package/dist/form/TextareaField.vue.d.ts +4 -0
  36. package/dist/form/TimeField.vue.d.ts +4 -0
  37. package/dist/form/index.d.ts +1 -1
  38. package/dist/form/index.js +1036 -1012
  39. package/dist/form/options.d.ts +4 -0
  40. package/dist/identity/index.js +1 -1
  41. package/dist/{index-B9KqrN-F.js → index-D-0JNiFF.js} +2 -2
  42. package/dist/{index-BrqxylSS.js → index-D6BjUQJT.js} +5 -5
  43. package/dist/{index-D8akxuKo.js → index-Dxu7ZfCC.js} +11 -11
  44. package/dist/index.d.ts +1 -1
  45. package/dist/index.js +1 -1
  46. package/dist/notifications/index.js +1 -1
  47. package/dist/{status-vMwum3Y9.js → status-BLTC7wi1.js} +1 -1
  48. package/dist/styles.css +1 -1
  49. package/package.json +1 -1
  50. package/dist/DateField.vue_vue_type_script_setup_true_lang-CfPwcEM2.js +0 -278
  51. package/dist/NumberField.vue_vue_type_script_setup_true_lang-djJvP6Og.js +0 -150
  52. package/dist/SelectField.vue_vue_type_script_setup_true_lang-ByDo_32P.js +0 -493
  53. package/dist/TextareaField.vue_vue_type_script_setup_true_lang-XZRHwx-n.js +0 -91
  54. package/dist/TimeField.vue_vue_type_script_setup_true_lang-BB7ZGpvP.js +0 -187
@@ -1,47 +1,47 @@
1
- import { _ as Oe, s as He, c as Se, f as et } from "../FormErrors.vue_vue_type_script_setup_true_lang-DWcVKZM3.js";
2
- import { E as No, u as Po, a as Ko } from "../FormErrors.vue_vue_type_script_setup_true_lang-DWcVKZM3.js";
3
- import { f as ze, u as st } from "../useCommand-YN9EMb7s.js";
4
- import { _ as Ho, a as Uo } from "../useCommand-YN9EMb7s.js";
5
- import { ref as P, computed as w, defineComponent as K, openBlock as i, createBlock as q, mergeProps as J, unref as s, createSlots as X, withCtx as c, createElementVNode as p, normalizeClass as j, createElementBlock as k, Fragment as re, renderList as xe, createVNode as O, createCommentVNode as z, toDisplayString as C, renderSlot as B, mergeDefaults as ue, useModel as le, useId as je, withKeys as Ce, withModifiers as ge, createTextVNode as Y, mergeModels as oe, useTemplateRef as H, shallowRef as Le, watch as ie, normalizeProps as Ve, guardReactiveProps as qe, nextTick as ke, provide as Re, inject as tt, onBeforeUnmount as Ee, onMounted as rt, toRef as it, toValue as Me, getCurrentScope as ut, onScopeDispose as dt, shallowReactive as Ue, normalizeStyle as ct, resolveDynamicComponent as ft } from "vue";
1
+ import { _ as Me, s as He, c as Se, f as et } from "../FormErrors.vue_vue_type_script_setup_true_lang-DWcVKZM3.js";
2
+ import { E as Ko, u as Ao, a as Ho } from "../FormErrors.vue_vue_type_script_setup_true_lang-DWcVKZM3.js";
3
+ import { f as De, u as st } from "../useCommand-YN9EMb7s.js";
4
+ import { _ as Yo, a as Wo } from "../useCommand-YN9EMb7s.js";
5
+ import { ref as N, computed as k, defineComponent as P, openBlock as i, createBlock as O, mergeProps as Q, unref as s, createSlots as ee, withCtx as m, createElementVNode as p, normalizeClass as j, createElementBlock as y, Fragment as ue, renderList as xe, createVNode as M, createCommentVNode as T, toDisplayString as _, renderSlot as C, mergeDefaults as ce, useModel as ie, useId as je, withKeys as Ce, withModifiers as be, createTextVNode as Y, mergeModels as se, useTemplateRef as U, shallowRef as Le, watch as de, normalizeProps as Ve, guardReactiveProps as qe, nextTick as he, provide as Re, inject as tt, onBeforeUnmount as Ee, onMounted as rt, toRef as it, toValue as Oe, getCurrentScope as ut, onScopeDispose as dt, shallowReactive as Ue, normalizeStyle as ct, resolveDynamicComponent as ft } from "vue";
6
6
  import { a as Ie } from "../leaveGuard-Cc8yeLxM.js";
7
- import { M as Wo, c as Jo, i as Xo, l as Qo, u as Zo } from "../leaveGuard-Cc8yeLxM.js";
8
- import { _ as tn } from "../LeaveGuardRoot.vue_vue_type_script_setup_true_lang-Cv7KlA5y.js";
9
- import { u as ln } from "../useResourceForm-CP2lCwmD.js";
10
- import { _ as Q } from "../Icon.vue_vue_type_script_lang-D7oC-d-S.js";
11
- import { u as at, _ as he, f as de, b as ce, a as lt, c as Ge, e as mt, h as vt, i as pt, d as bt } from "../control-B4SdblL6.js";
12
- import { useI18n as ee } from "vue-i18n";
7
+ import { M as Zo, c as Xo, i as Qo, l as en, u as tn } from "../leaveGuard-Cc8yeLxM.js";
8
+ import { _ as ln } from "../LeaveGuardRoot.vue_vue_type_script_setup_true_lang-Cv7KlA5y.js";
9
+ import { u as nn } from "../useResourceForm-CP2lCwmD.js";
10
+ import { _ as te } from "../Icon.vue_vue_type_script_lang-D7oC-d-S.js";
11
+ import { u as at, _ as ye, f as fe, b as me, a as lt, c as Ge, e as mt, h as vt, i as pt, d as bt } from "../control-B4SdblL6.js";
12
+ import { useI18n as oe } from "vue-i18n";
13
13
  import { b as gt } from "../controlSurface-t7OEFESJ.js";
14
- import { a as yt } from "../TextField.vue_vue_type_script_setup_true_lang-BslHroDP.js";
15
- import { _ as nn } from "../TextField.vue_vue_type_script_setup_true_lang-BslHroDP.js";
14
+ import { a as yt } from "../TextField.vue_vue_type_script_setup_true_lang-CP2WeU36.js";
15
+ import { _ as rn } from "../TextField.vue_vue_type_script_setup_true_lang-CP2WeU36.js";
16
16
  import { u as ht, l as kt } from "../suggestions-DHJFKB26.js";
17
- import { r as rn } from "../suggestions-DHJFKB26.js";
18
- import { s as $e, u as Ye, i as xt, o as _e, e as Fe, k as wt, _ as $t, l as _t, c as St, b as Ct, t as De, g as Ft, q as Bt } from "../useTypedEntry-C7k7Dyl-.js";
19
- import { u as Lt, a as Tt, s as Dt } from "../DateField.vue_vue_type_script_setup_true_lang-CfPwcEM2.js";
20
- import { _ as dn } from "../DateField.vue_vue_type_script_setup_true_lang-CfPwcEM2.js";
17
+ import { r as dn } from "../suggestions-DHJFKB26.js";
18
+ import { s as $e, u as Ye, i as xt, o as _e, e as Fe, k as wt, _ as $t, l as _t, c as St, b as Ct, t as ze, g as Ft, q as Bt } from "../useTypedEntry-C7k7Dyl-.js";
19
+ import { u as Lt, a as Tt, s as zt } from "../DateField.vue_vue_type_script_setup_true_lang-CpuH0WTl.js";
20
+ import { _ as fn } from "../DateField.vue_vue_type_script_setup_true_lang-CpuH0WTl.js";
21
21
  import { _ as ot } from "../DateButton.vue_vue_type_script_setup_true_lang-CovKG5lN.js";
22
- import { u as zt } from "../format-D8X4zsx6.js";
22
+ import { u as Dt } from "../format-D8X4zsx6.js";
23
23
  import { u as Ne } from "../mediaQuery-CygcXmFW.js";
24
24
  import { _ as Pe } from "../Popover.vue_vue_type_script_setup_true_lang-C70GrCP7.js";
25
- import { u as Vt } from "../TimeField.vue_vue_type_script_setup_true_lang-BB7ZGpvP.js";
26
- import { _ as fn } from "../TimeField.vue_vue_type_script_setup_true_lang-BB7ZGpvP.js";
27
- import { _ as ye } from "../Button.vue_vue_type_script_setup_true_lang-CL9Qh5yq.js";
28
- import { _ as qt, r as Rt } from "../FormGroup.vue_vue_type_script_setup_true_lang-C7nq7MJB.js";
29
- import { a as vn, c as pn, p as bn, u as gn } from "../FormGroup.vue_vue_type_script_setup_true_lang-C7nq7MJB.js";
30
- import { _ as hn } from "../FormView.vue_vue_type_script_setup_true_lang-Dbfg_jGh.js";
31
- import { i as Mt } from "../intlLocale-CeRU44qJ.js";
32
- import { a as Ot } from "../environment-Dva-SG8D.js";
33
- import { _ as jt } from "../NumberField.vue_vue_type_script_setup_true_lang-djJvP6Og.js";
25
+ import { u as Vt } from "../TimeField.vue_vue_type_script_setup_true_lang-DBxKAWRo.js";
26
+ import { _ as vn } from "../TimeField.vue_vue_type_script_setup_true_lang-DBxKAWRo.js";
27
+ import { _ as ge } from "../Button.vue_vue_type_script_setup_true_lang-CL9Qh5yq.js";
28
+ import { _ as qt, r as Rt } from "../FormGroup.vue_vue_type_script_setup_true_lang-DSwSRsA5.js";
29
+ import { a as bn, c as gn, p as yn, u as hn } from "../FormGroup.vue_vue_type_script_setup_true_lang-DSwSRsA5.js";
30
+ import { _ as xn } from "../FormView.vue_vue_type_script_setup_true_lang-Dbfg_jGh.js";
31
+ import { i as Ot } from "../intlLocale-CeRU44qJ.js";
32
+ import { a as Mt } from "../environment-Dva-SG8D.js";
33
+ import { _ as jt } from "../NumberField.vue_vue_type_script_setup_true_lang-DaE5BLm4.js";
34
34
  import { _ as Et } from "../Sheet.vue_vue_type_script_setup_true_lang-DgOFV4fa.js";
35
- import { u as It, a as We } from "../SelectField.vue_vue_type_script_setup_true_lang-ByDo_32P.js";
36
- import { _ as xn, b as wn } from "../SelectField.vue_vue_type_script_setup_true_lang-ByDo_32P.js";
37
- import { g as _n, m as Sn } from "../options-Ba_0uLWN.js";
38
- import { _ as Fn } from "../OtpInput.vue_vue_type_script_setup_true_lang-gp4FfWAH.js";
35
+ import { u as It, a as We } from "../SelectField.vue_vue_type_script_setup_true_lang-C3FbRQW7.js";
36
+ import { _ as $n, b as _n } from "../SelectField.vue_vue_type_script_setup_true_lang-C3FbRQW7.js";
37
+ import { g as Cn, m as Fn } from "../options-Ba_0uLWN.js";
38
+ import { _ as Ln } from "../OtpInput.vue_vue_type_script_setup_true_lang-gp4FfWAH.js";
39
39
  import { _ as Je } from "../PhotoViewer.vue_vue_type_script_setup_true_lang-QPCW3Xi6.js";
40
- import { _ as Ln } from "../SegmentedField.vue_vue_type_script_setup_true_lang-Dg-_ZjgR.js";
41
- import { _ as Dn } from "../SwitchField.vue_vue_type_script_setup_true_lang-ALvJisiP.js";
42
- import { _ as Vn } from "../TextareaField.vue_vue_type_script_setup_true_lang-XZRHwx-n.js";
40
+ import { _ as zn } from "../SegmentedField.vue_vue_type_script_setup_true_lang-Dg-_ZjgR.js";
41
+ import { _ as Vn } from "../SwitchField.vue_vue_type_script_setup_true_lang-ALvJisiP.js";
42
+ import { _ as Rn } from "../TextareaField.vue_vue_type_script_setup_true_lang-BJ4__cvJ.js";
43
43
  import { _ as Gt } from "../Modal.vue_vue_type_script_setup_true_lang-DpBb8ans.js";
44
- import { _ as Xe } from "../Banner.vue_vue_type_script_setup_true_lang-DSStj_5z.js";
44
+ import { _ as Ze } from "../Banner.vue_vue_type_script_setup_true_lang-DSStj_5z.js";
45
45
  import { D as Nt } from "../useWaitStatus-fsacMl4W.js";
46
46
  import { t as Pt } from "../toast-CqSDTWRX.js";
47
47
  import { a as Kt } from "../AdaptivePageShell.vue_vue_type_script_setup_true_lang-CxU9aNRQ.js";
@@ -49,15 +49,15 @@ import { _ as At, a as Ht } from "../SectionList.vue_vue_type_script_setup_true_
49
49
  import { p as Ut } from "../sectionIndex-BS0ic5W7.js";
50
50
  import { u as Yt } from "../useSaveChrome-7huA3FzR.js";
51
51
  import { matchedRouteKey as Wt, onBeforeRouteLeave as Jt } from "vue-router";
52
- function Xt(o) {
53
- const t = P(null);
52
+ function Zt(o) {
53
+ const t = N(null);
54
54
  return {
55
- isDirty: w(() => t.value !== null && JSON.stringify(o()) !== t.value),
55
+ isDirty: k(() => t.value !== null && JSON.stringify(o()) !== t.value),
56
56
  markClean: () => t.value = JSON.stringify(o())
57
57
  };
58
58
  }
59
- function yo(o) {
60
- const t = P(!1), e = Xt(o), { confirmDiscard: a } = Ie(() => t.value && e.isDirty.value);
59
+ function ko(o) {
60
+ const t = N(!1), e = Zt(o), { confirmDiscard: a } = Ie(() => t.value && e.isDirty.value);
61
61
  return {
62
62
  /** The sheet was just filled: its current values are the baseline. */
63
63
  opened: () => {
@@ -70,16 +70,16 @@ function yo(o) {
70
70
  beforeDismiss: a
71
71
  };
72
72
  }
73
- const Qt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Zt = ["name", "value", "checked", "disabled", "onChange"], ea = { class: "min-w-0 flex-1" }, ta = { class: "block text-body font-semibold text-content-strong" }, aa = {
73
+ const Xt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Qt = ["name", "value", "checked", "disabled", "onChange"], ea = { class: "min-w-0 flex-1" }, ta = { class: "block text-body font-semibold text-content-strong" }, aa = {
74
74
  key: 0,
75
75
  class: "mt-0.5 block text-footnote text-content-muted"
76
76
  }, la = {
77
77
  key: 1,
78
78
  class: "flex size-5 shrink-0 items-center justify-center rounded-full bg-control-on text-white",
79
79
  "aria-hidden": "true"
80
- }, ho = /* @__PURE__ */ K({
80
+ }, xo = /* @__PURE__ */ P({
81
81
  __name: "CardSelectField",
82
- props: /* @__PURE__ */ ue({
82
+ props: /* @__PURE__ */ ce({
83
83
  label: {},
84
84
  labelHidden: { type: Boolean },
85
85
  hint: {},
@@ -93,79 +93,79 @@ const Qt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Zt = ["name
93
93
  modelValue: {},
94
94
  options: {},
95
95
  columns: {}
96
- }, { ...ce, modelValue: null, columns: 2 }),
96
+ }, { ...me, modelValue: null, columns: 2 }),
97
97
  emits: ["update:modelValue"],
98
98
  setup(o, { emit: t }) {
99
- const e = o, a = t, { editable: n } = at(e), l = { 1: "grid-cols-1", 2: "grid-cols-2", 3: "grid-cols-3", 4: "grid-cols-4" }, u = w(() => l[e.columns]);
100
- return (d, g) => (i(), q(he, J(s(de)(e), {
101
- value: e.options.find((x) => x.value === e.modelValue)?.label ?? null,
99
+ const e = o, a = t, { editable: n } = at(e), l = { 1: "grid-cols-1", 2: "grid-cols-2", 3: "grid-cols-3", 4: "grid-cols-4" }, u = k(() => l[e.columns]);
100
+ return (c, b) => (i(), O(ye, Q(s(fe)(e), {
101
+ value: e.options.find((h) => h.value === e.modelValue)?.label ?? null,
102
102
  "row-layout": "stacked"
103
- }), X({
104
- default: c(({ id: x, describedby: $, invalid: y }) => [
103
+ }), ee({
104
+ default: m(({ id: h, describedby: w, invalid: x }) => [
105
105
  p("div", {
106
- id: x,
106
+ id: h,
107
107
  role: "radiogroup",
108
108
  "aria-label": e.label,
109
- "aria-describedby": $,
110
- "aria-invalid": y || void 0,
109
+ "aria-describedby": w,
110
+ "aria-invalid": x || void 0,
111
111
  class: j(["grid w-full gap-2.5", u.value]),
112
112
  "data-test": "card-select"
113
113
  }, [
114
- (i(!0), k(re, null, xe(e.options, (r) => (i(), k("label", {
114
+ (i(!0), y(ue, null, xe(e.options, (r) => (i(), y("label", {
115
115
  key: r.value,
116
116
  class: j(["relative flex items-center gap-3 rounded-group bg-fill p-3.5 transition-colors duration-motion-fast focus-within:outline-2 focus-within:outline-offset-2 focus-within:outline-border-focus", [r.value === e.modelValue ? "bg-tint-soft ring-[1.5px] ring-inset ring-border-selected" : "hover:bg-fill-strong", e.disabled || !s(n) || r.disabled ? "cursor-not-allowed opacity-60" : "cursor-pointer"]])
117
117
  }, [
118
118
  p("input", {
119
119
  type: "radio",
120
120
  class: "sr-only",
121
- name: e.name ?? x,
121
+ name: e.name ?? h,
122
122
  value: r.value,
123
123
  checked: r.value === e.modelValue,
124
124
  disabled: e.disabled || !s(n) || r.disabled,
125
125
  onChange: (f) => a("update:modelValue", r.value)
126
- }, null, 40, Zt),
127
- r.icon ? (i(), k("span", {
126
+ }, null, 40, Qt),
127
+ r.icon ? (i(), y("span", {
128
128
  key: 0,
129
129
  class: j(["flex size-9 shrink-0 items-center justify-center rounded-control", r.value === e.modelValue ? "bg-control-on text-white" : "bg-fill-strong text-content-muted"])
130
130
  }, [
131
- O(s(Q), {
131
+ M(s(te), {
132
132
  name: r.icon,
133
133
  size: 18
134
134
  }, null, 8, ["name"])
135
- ], 2)) : z("", !0),
135
+ ], 2)) : T("", !0),
136
136
  p("span", ea, [
137
- p("span", ta, C(r.label), 1),
138
- r.description ? (i(), k("span", aa, C(r.description), 1)) : z("", !0)
137
+ p("span", ta, _(r.label), 1),
138
+ r.description ? (i(), y("span", aa, _(r.description), 1)) : T("", !0)
139
139
  ]),
140
- r.value === e.modelValue ? (i(), k("span", la, [
141
- O(s(Q), {
140
+ r.value === e.modelValue ? (i(), y("span", la, [
141
+ M(s(te), {
142
142
  name: "checkCustom",
143
143
  size: 12
144
144
  })
145
- ])) : z("", !0)
145
+ ])) : T("", !0)
146
146
  ], 2))), 128))
147
- ], 10, Qt)
147
+ ], 10, Xt)
148
148
  ]),
149
149
  _: 2
150
150
  }, [
151
- d.$slots.trailing ? {
151
+ c.$slots.trailing ? {
152
152
  name: "trailing",
153
- fn: c(() => [
154
- B(d.$slots, "trailing")
153
+ fn: m(() => [
154
+ C(c.$slots, "trailing")
155
155
  ]),
156
156
  key: "0"
157
157
  } : void 0,
158
- d.$slots.labelTrailing ? {
158
+ c.$slots.labelTrailing ? {
159
159
  name: "labelTrailing",
160
- fn: c(() => [
161
- B(d.$slots, "labelTrailing")
160
+ fn: m(() => [
161
+ C(c.$slots, "labelTrailing")
162
162
  ]),
163
163
  key: "1"
164
164
  } : void 0,
165
- d.$slots.readonly ? {
165
+ c.$slots.readonly ? {
166
166
  name: "readonly",
167
- fn: c(() => [
168
- B(d.$slots, "readonly")
167
+ fn: m(() => [
168
+ C(c.$slots, "readonly")
169
169
  ]),
170
170
  key: "2"
171
171
  } : void 0
@@ -174,9 +174,9 @@ const Qt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Zt = ["name
174
174
  }), oa = ["data-field-error"], na = ["aria-checked", "aria-disabled", "aria-describedby", "aria-invalid", "tabindex", "onKeydown"], sa = { class: "flex min-w-0 flex-1 flex-col items-start" }, ra = {
175
175
  key: 0,
176
176
  class: "flex shrink-0 items-center gap-2.5"
177
- }, ia = ["id"], ko = /* @__PURE__ */ K({
177
+ }, ia = ["id"], wo = /* @__PURE__ */ P({
178
178
  __name: "CheckboxField",
179
- props: /* @__PURE__ */ oe({
179
+ props: /* @__PURE__ */ se({
180
180
  label: {},
181
181
  description: { default: void 0 },
182
182
  disabled: { type: Boolean, default: !1 },
@@ -188,10 +188,10 @@ const Qt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Zt = ["name
188
188
  }),
189
189
  emits: ["update:modelValue"],
190
190
  setup(o) {
191
- const t = o, e = le(o, "modelValue"), a = !!lt(), n = je(), l = () => {
191
+ const t = o, e = ie(o, "modelValue"), a = !!lt(), n = je(), l = () => {
192
192
  t.disabled || (e.value = !e.value);
193
193
  };
194
- return (u, d) => (i(), k("div", {
194
+ return (u, c) => (i(), y("div", {
195
195
  "data-field-error": t.error ? "true" : void 0
196
196
  }, [
197
197
  p("div", {
@@ -205,19 +205,19 @@ const Qt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Zt = ["name
205
205
  class: j(["group/check flex items-center transition-colors duration-motion-fast focus-visible:outline-2 focus-visible:outline-border-focus", [t.variant === "row" ? "gap-3 pl-row-inset focus-visible:-outline-offset-2" : "gap-2.5 rounded-control px-2 py-1.5 focus-visible:outline-offset-1", a && t.variant === "row" ? "first:rounded-t-group last:rounded-b-group" : "", t.disabled ? "cursor-not-allowed" : t.variant === "row" ? "cursor-pointer hover:bg-fill/60 active:bg-fill" : "cursor-pointer hover:bg-fill"]]),
206
206
  onClick: l,
207
207
  onKeydown: [
208
- Ce(ge(l, ["prevent"]), ["space"]),
209
- Ce(ge(l, ["prevent"]), ["enter"])
208
+ Ce(be(l, ["prevent"]), ["space"]),
209
+ Ce(be(l, ["prevent"]), ["enter"])
210
210
  ]
211
211
  }, [
212
212
  p("span", {
213
213
  class: j(["flex shrink-0 items-center justify-center rounded-full border-2", [t.variant === "row" ? "size-5.5" : "size-5", e.value ? t.disabled ? "border-content-disabled bg-content-disabled text-white" : "border-control-on bg-control-on text-white" : "border-border-control"]]),
214
214
  "aria-hidden": "true"
215
215
  }, [
216
- e.value ? (i(), q(s(Q), {
216
+ e.value ? (i(), O(s(te), {
217
217
  key: 0,
218
218
  name: "checkCustom",
219
219
  size: 12
220
- })) : z("", !0)
220
+ })) : T("", !0)
221
221
  ], 2),
222
222
  p("div", {
223
223
  class: j(["flex min-w-0 flex-1 items-center gap-3", t.variant === "row" ? "min-h-row border-t border-border-separator py-2 pr-row-inset group-first/check:border-t-0" : ""])
@@ -225,39 +225,39 @@ const Qt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Zt = ["name
225
225
  p("div", sa, [
226
226
  p("p", {
227
227
  class: j(["w-full text-body", [t.variant === "row" ? "break-words" : "truncate", t.disabled ? "text-content-muted" : e.value ? "text-content-strong" : "text-content"]])
228
- }, C(t.label), 3),
229
- t.description ? (i(), k("p", {
228
+ }, _(t.label), 3),
229
+ t.description ? (i(), y("p", {
230
230
  key: 0,
231
231
  class: j(["tabular-nums text-content-muted", t.variant === "row" ? "text-footnote" : "text-xs"])
232
- }, C(t.description), 3)) : z("", !0),
233
- B(u.$slots, "default")
232
+ }, _(t.description), 3)) : T("", !0),
233
+ C(u.$slots, "default")
234
234
  ]),
235
- u.$slots.trailing ? (i(), k("div", ra, [
236
- B(u.$slots, "trailing")
237
- ])) : z("", !0)
235
+ u.$slots.trailing ? (i(), y("div", ra, [
236
+ C(u.$slots, "trailing")
237
+ ])) : T("", !0)
238
238
  ], 2)
239
239
  ], 42, na),
240
- t.error ? (i(), k("p", {
240
+ t.error ? (i(), y("p", {
241
241
  key: 0,
242
242
  id: `${s(n)}-error`,
243
243
  role: "alert",
244
244
  class: "flex items-start gap-1.5 px-2 pt-1 text-footnote text-content-destructive"
245
245
  }, [
246
- O(s(Q), {
246
+ M(s(te), {
247
247
  name: "alertTriangle",
248
248
  size: 14,
249
249
  class: "mt-px shrink-0"
250
250
  }),
251
- Y(" " + C(t.error), 1)
252
- ], 8, ia)) : z("", !0)
251
+ Y(" " + _(t.error), 1)
252
+ ], 8, ia)) : T("", !0)
253
253
  ], 8, oa));
254
254
  }
255
255
  }), ua = {
256
256
  key: 0,
257
257
  class: "text-body text-content-muted"
258
- }, da = ["id", "aria-label", "aria-describedby", "aria-invalid"], ca = ["aria-pressed", "disabled", "onClick"], xo = /* @__PURE__ */ K({
258
+ }, da = ["id", "aria-label", "aria-describedby", "aria-invalid"], ca = ["aria-pressed", "disabled", "onClick"], $o = /* @__PURE__ */ P({
259
259
  __name: "ChoiceChips",
260
- props: /* @__PURE__ */ oe(/* @__PURE__ */ ue({
260
+ props: /* @__PURE__ */ se(/* @__PURE__ */ ce({
261
261
  label: {},
262
262
  labelHidden: { type: Boolean },
263
263
  hint: {},
@@ -269,42 +269,42 @@ const Qt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Zt = ["name
269
269
  presentation: {},
270
270
  name: {},
271
271
  options: {}
272
- }, { ...ce }), {
272
+ }, { ...me }), {
273
273
  modelValue: { default: () => [] },
274
274
  modelModifiers: {}
275
275
  }),
276
276
  emits: ["update:modelValue"],
277
277
  setup(o) {
278
- const t = o, e = le(o, "modelValue"), a = (n) => e.value = e.value.includes(n) ? e.value.filter((l) => l !== n) : [...e.value, n];
279
- return (n, l) => (i(), q(he, J(s(de)(t), {
278
+ const t = o, e = ie(o, "modelValue"), a = (n) => e.value = e.value.includes(n) ? e.value.filter((l) => l !== n) : [...e.value, n];
279
+ return (n, l) => (i(), O(ye, Q(s(fe)(t), {
280
280
  value: t.options.filter((u) => e.value.includes(u.value)).map((u) => u.label).join(", ") || null,
281
281
  "row-layout": "stacked"
282
- }), X({
283
- default: c(({ id: u, describedby: d, invalid: g }) => [
284
- t.options.length === 0 ? (i(), k("span", ua, "—")) : (i(), k("div", {
282
+ }), ee({
283
+ default: m(({ id: u, describedby: c, invalid: b }) => [
284
+ t.options.length === 0 ? (i(), y("span", ua, "—")) : (i(), y("div", {
285
285
  key: 1,
286
286
  id: u,
287
287
  role: "group",
288
288
  "aria-label": t.label,
289
- "aria-describedby": d,
290
- "aria-invalid": g || void 0,
289
+ "aria-describedby": c,
290
+ "aria-invalid": b || void 0,
291
291
  class: "flex flex-wrap gap-1.5 py-1",
292
292
  "data-test": "choice-chips"
293
293
  }, [
294
- (i(!0), k(re, null, xe(t.options, (x) => (i(), k("button", {
295
- key: x.value,
294
+ (i(!0), y(ue, null, xe(t.options, (h) => (i(), y("button", {
295
+ key: h.value,
296
296
  type: "button",
297
- "aria-pressed": e.value.includes(x.value),
298
- disabled: t.disabled || x.disabled,
299
- class: j(["inline-flex min-h-8 cursor-pointer items-center gap-1.5 rounded-full px-3 text-subheadline transition-colors duration-motion-fast focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus disabled:cursor-not-allowed disabled:opacity-60", e.value.includes(x.value) ? "bg-tint-soft font-semibold text-content-link" : "bg-fill font-medium text-content-strong hover:bg-fill-strong"]),
300
- onClick: ($) => a(x.value)
297
+ "aria-pressed": e.value.includes(h.value),
298
+ disabled: t.disabled || h.disabled,
299
+ class: j(["inline-flex min-h-8 cursor-pointer items-center gap-1.5 rounded-full px-3 text-subheadline transition-colors duration-motion-fast focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus disabled:cursor-not-allowed disabled:opacity-60", e.value.includes(h.value) ? "bg-tint-soft font-semibold text-content-link" : "bg-fill font-medium text-content-strong hover:bg-fill-strong"]),
300
+ onClick: (w) => a(h.value)
301
301
  }, [
302
- e.value.includes(x.value) ? (i(), q(s(Q), {
302
+ e.value.includes(h.value) ? (i(), O(s(te), {
303
303
  key: 0,
304
304
  name: "checkCustom",
305
305
  size: 12
306
- })) : z("", !0),
307
- Y(" " + C(x.label), 1)
306
+ })) : T("", !0),
307
+ Y(" " + _(h.label), 1)
308
308
  ], 10, ca))), 128))
309
309
  ], 8, da))
310
310
  ]),
@@ -312,30 +312,34 @@ const Qt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Zt = ["name
312
312
  }, [
313
313
  n.$slots.trailing ? {
314
314
  name: "trailing",
315
- fn: c(() => [
316
- B(n.$slots, "trailing")
315
+ fn: m(() => [
316
+ C(n.$slots, "trailing")
317
317
  ]),
318
318
  key: "0"
319
319
  } : void 0,
320
320
  n.$slots.labelTrailing ? {
321
321
  name: "labelTrailing",
322
- fn: c(() => [
323
- B(n.$slots, "labelTrailing")
322
+ fn: m(() => [
323
+ C(n.$slots, "labelTrailing")
324
324
  ]),
325
325
  key: "1"
326
326
  } : void 0,
327
327
  n.$slots.readonly ? {
328
328
  name: "readonly",
329
- fn: c(() => [
330
- B(n.$slots, "readonly")
329
+ fn: m(() => [
330
+ C(n.$slots, "readonly")
331
331
  ]),
332
332
  key: "2"
333
333
  } : void 0
334
334
  ]), 1040, ["value"]));
335
335
  }
336
- }), fa = ["id", "value", "name", "placeholder", "disabled", "required", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-required", "aria-invalid", "aria-describedby"], wo = /* @__PURE__ */ K({
336
+ }), fa = {
337
+ key: 0,
338
+ class: "flex shrink-0 items-center",
339
+ "data-test": "field-value"
340
+ }, ma = ["id", "value", "name", "placeholder", "disabled", "required", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-required", "aria-invalid", "aria-describedby"], va = { class: "block break-words text-body text-content-strong" }, _o = /* @__PURE__ */ P({
337
341
  __name: "ComboField",
338
- props: /* @__PURE__ */ oe(/* @__PURE__ */ ue({
342
+ props: /* @__PURE__ */ se(/* @__PURE__ */ ce({
339
343
  label: {},
340
344
  labelHidden: { type: Boolean },
341
345
  hint: {},
@@ -356,99 +360,104 @@ const Qt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Zt = ["name
356
360
  recents: {},
357
361
  width: {},
358
362
  rowLayout: {}
359
- }, { ...ce, options: void 0, search: void 0, selected: null, placeholder: void 0, minLength: 1, debounce: 300, limit: 30, recents: void 0, width: "md", rowLayout: void 0 }), {
363
+ }, { ...me, options: void 0, search: void 0, selected: null, placeholder: void 0, minLength: 1, debounce: 300, limit: 30, recents: void 0, width: "md", rowLayout: void 0 }), {
360
364
  modelValue: { default: null },
361
365
  modelModifiers: {}
362
366
  }),
363
- emits: /* @__PURE__ */ oe(["picked"], ["update:modelValue"]),
367
+ emits: /* @__PURE__ */ se(["picked", "focus", "blur"], ["update:modelValue"]),
364
368
  setup(o, { expose: t, emit: e }) {
365
- const a = o, n = le(o, "modelValue"), l = e, { t: u } = ee(), d = !!lt(), g = Ge("text", () => a.error ? "error" : a.disabled ? "locked" : "rest"), x = w(() => a.rowLayout === "stacked"), $ = w(() => d && !x.value ? gt(a.width) : "w-full"), y = H("input"), r = H("anchor"), f = Le(null), b = Le(""), S = ht({
369
+ const a = o, n = ie(o, "modelValue"), l = e, { t: u } = oe(), c = !!lt(), b = Ge("text", () => a.error ? "error" : a.disabled ? "locked" : "rest"), h = k(() => a.rowLayout === "stacked"), w = k(() => c && !h.value ? gt(a.width) : "w-full"), x = U("input"), r = U("anchor"), f = Le(null), g = Le(""), S = ht({
366
370
  source: () => a.search ?? a.options,
367
371
  minLength: () => a.minLength,
368
372
  debounce: () => a.debounce,
369
373
  limit: () => a.limit,
370
374
  listAllWhenEmpty: !0,
371
375
  recents: () => a.recents
372
- }), { items: T, open: h, status: G, highlighted: F, showingRecent: E } = S, I = w(() => {
373
- const R = n.value;
374
- return R === null ? null : [f.value, a.selected, ...a.options ?? []].find((A) => A?.value === R) ?? null;
376
+ }), { items: z, open: $, status: I, highlighted: F, showingRecent: E } = S, R = k(() => {
377
+ const D = n.value;
378
+ return D === null ? null : [f.value, a.selected, ...a.options ?? []].find((A) => A?.value === D) ?? null;
375
379
  });
376
- ie(I, (R) => {
377
- h.value || (b.value = R?.label ?? "");
380
+ de(R, (D) => {
381
+ $.value || (g.value = D?.label ?? "");
378
382
  }, { immediate: !0 });
379
- function U(R) {
380
- b.value = R.target.value, S.ask(b.value), b.value === "" && (n.value = null, f.value = null);
383
+ function Z(D) {
384
+ g.value = D.target.value, S.ask(g.value), g.value === "" && (n.value = null, f.value = null);
381
385
  }
382
- function ne() {
383
- a.disabled || S.show("");
386
+ function W(D) {
387
+ l("focus", D), a.disabled || S.show("");
384
388
  }
385
- function Z(R) {
386
- S.close(), S.remember(R), f.value = R, n.value = R.value, b.value = R.label, l("picked", R);
389
+ function J(D) {
390
+ S.close(), S.remember(D), f.value = D, n.value = D.value, g.value = D.label, l("picked", D);
387
391
  }
388
- function te() {
389
- S.close(), b.value = I.value?.label ?? "";
392
+ function ae(D) {
393
+ S.close(), g.value = R.value?.label ?? "", l("blur", D);
390
394
  }
391
- const fe = w(() => kt(h.value, T.value.length, G.value, !0));
392
- return t({ focus: () => y.value?.focus() }), (R, A) => (i(), q(he, J(s(de)(a), {
393
- value: I.value?.label ?? null,
395
+ const ve = k(() => kt($.value, z.value.length, I.value, !0));
396
+ return t({ focus: () => x.value?.focus() }), (D, A) => (i(), O(ye, Q(s(fe)(a), {
397
+ value: R.value?.label ?? null,
394
398
  "row-layout": a.rowLayout
395
- }), X({
396
- default: c(({ id: N, describedby: ae, invalid: se }) => [
399
+ }), ee({
400
+ default: m(({ id: G, describedby: ne, invalid: re }) => [
397
401
  p("div", {
398
402
  ref_key: "anchor",
399
403
  ref: r,
400
- class: j(["flex items-center gap-1.5", [s(g), $.value]])
404
+ class: j(["flex items-center gap-1.5", [s(b), w.value]])
401
405
  }, [
406
+ D.$slots.value && R.value ? (i(), y("span", fa, [
407
+ C(D.$slots, "value", {
408
+ option: R.value
409
+ })
410
+ ])) : T("", !0),
402
411
  p("input", {
403
- id: N,
412
+ id: G,
404
413
  ref_key: "input",
405
- ref: y,
414
+ ref: x,
406
415
  role: "combobox",
407
416
  type: "text",
408
417
  autocomplete: "off",
409
- value: b.value,
418
+ value: g.value,
410
419
  name: a.name,
411
420
  placeholder: a.placeholder,
412
421
  disabled: a.disabled,
413
422
  required: a.required,
414
423
  "aria-autocomplete": "list",
415
- "aria-expanded": fe.value,
416
- "aria-controls": `${N}-list`,
417
- "aria-activedescendant": fe.value && s(T).length > 0 ? `${N}-option-${s(F)}` : void 0,
424
+ "aria-expanded": ve.value,
425
+ "aria-controls": `${G}-list`,
426
+ "aria-activedescendant": ve.value && s(z).length > 0 ? `${G}-option-${s(F)}` : void 0,
418
427
  "aria-required": a.required || void 0,
419
- "aria-invalid": se || void 0,
420
- "aria-describedby": ae,
421
- class: j(["block w-full min-w-0 border-0 bg-transparent px-0 py-1 text-body text-content-strong placeholder:text-content-disabled focus:outline-none focus:ring-0 disabled:cursor-not-allowed", d && !x.value ? "compact:text-right" : ""]),
422
- onInput: U,
423
- onFocus: ne,
424
- onBlur: te,
425
- onKeydown: A[0] || (A[0] = (W) => s(S).keydown(W, { pick: Z, enterNeedsMove: !1 }))
426
- }, null, 42, fa),
427
- O(s(Q), {
428
+ "aria-invalid": re || void 0,
429
+ "aria-describedby": ne,
430
+ class: j(["block w-full min-w-0 border-0 bg-transparent px-0 py-1 text-body text-content-strong placeholder:text-content-disabled focus:outline-none focus:ring-0 disabled:cursor-not-allowed", c && !h.value ? "compact:text-right" : ""]),
431
+ onInput: Z,
432
+ onFocus: W,
433
+ onBlur: ae,
434
+ onKeydown: A[0] || (A[0] = (le) => s(S).keydown(le, { pick: J, enterNeedsMove: !1 }))
435
+ }, null, 42, ma),
436
+ M(s(te), {
428
437
  name: "search",
429
438
  size: 14,
430
439
  class: "shrink-0 text-content-muted"
431
440
  })
432
441
  ], 2),
433
- O(yt, {
434
- id: N,
442
+ M(yt, {
443
+ id: G,
435
444
  anchor: r.value,
436
- open: s(h),
437
- items: s(T),
445
+ open: s($),
446
+ items: s(z),
438
447
  highlighted: s(F),
439
- query: b.value,
440
- status: s(G),
448
+ query: g.value,
449
+ status: s(I),
441
450
  recent: s(E),
442
451
  "empty-message": !0,
443
452
  selected: n.value,
444
453
  hint: s(u)("core.form.suggestions.keys_pick"),
445
- onPick: Z,
446
- onHover: A[1] || (A[1] = (W) => s(S).highlight(W))
447
- }, X({ _: 2 }, [
448
- R.$slots.option ? {
454
+ onPick: J,
455
+ onHover: A[1] || (A[1] = (le) => s(S).highlight(le))
456
+ }, ee({ _: 2 }, [
457
+ D.$slots.option ? {
449
458
  name: "option",
450
- fn: c((W) => [
451
- B(R.$slots, "option", Ve(qe(W)))
459
+ fn: m((le) => [
460
+ C(D.$slots, "option", Ve(qe(le)))
452
461
  ]),
453
462
  key: "0"
454
463
  } : void 0
@@ -456,41 +465,51 @@ const Qt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Zt = ["name
456
465
  ]),
457
466
  _: 2
458
467
  }, [
459
- R.$slots.trailing ? {
468
+ D.$slots.trailing ? {
460
469
  name: "trailing",
461
- fn: c(() => [
462
- B(R.$slots, "trailing")
470
+ fn: m(() => [
471
+ C(D.$slots, "trailing")
463
472
  ]),
464
473
  key: "0"
465
474
  } : void 0,
466
- R.$slots.labelTrailing ? {
475
+ D.$slots.labelTrailing ? {
467
476
  name: "labelTrailing",
468
- fn: c(() => [
469
- B(R.$slots, "labelTrailing")
477
+ fn: m(() => [
478
+ C(D.$slots, "labelTrailing")
470
479
  ]),
471
480
  key: "1"
472
481
  } : void 0,
473
- R.$slots.readonly ? {
482
+ D.$slots.readonly ? {
474
483
  name: "readonly",
475
- fn: c(() => [
476
- B(R.$slots, "readonly")
484
+ fn: m(() => [
485
+ C(D.$slots, "readonly")
477
486
  ]),
478
487
  key: "2"
488
+ } : D.$slots.value && R.value ? {
489
+ name: "readonly",
490
+ fn: m(() => [
491
+ p("span", va, [
492
+ C(D.$slots, "value", {
493
+ option: R.value
494
+ })
495
+ ])
496
+ ]),
497
+ key: "3"
479
498
  } : void 0
480
499
  ]), 1040, ["value", "row-layout"]));
481
500
  }
482
- }), ma = {
501
+ }), pa = {
483
502
  key: 0,
484
503
  class: "whitespace-normal"
485
- }, va = { class: "whitespace-nowrap" }, pa = { class: "whitespace-nowrap" }, ba = ["id", "name", "value", "placeholder", "disabled", "required", "aria-required", "aria-invalid", "aria-describedby"], ga = ["aria-label", "onClick"], ya = {
504
+ }, ba = { class: "whitespace-nowrap" }, ga = { class: "whitespace-nowrap" }, ya = ["id", "name", "value", "placeholder", "disabled", "required", "aria-required", "aria-invalid", "aria-describedby"], ha = ["aria-label", "onClick"], ka = {
486
505
  class: "-m-3 flex",
487
506
  "data-test": "date-time-popover"
488
- }, ha = { class: "flex w-75 flex-col gap-2.5 border-r border-border-separator p-3.5" }, ka = {
507
+ }, xa = { class: "flex w-75 flex-col gap-2.5 border-r border-border-separator p-3.5" }, wa = {
489
508
  key: 0,
490
509
  class: "border-t border-border-separator pt-2.5"
491
- }, xa = { class: "flex w-48 flex-col gap-2.5 px-3 py-3.5" }, wa = ["for"], $a = ["id", "value", "placeholder", "aria-invalid"], _a = ["onClick"], $o = /* @__PURE__ */ K({
510
+ }, $a = { class: "flex w-48 flex-col gap-2.5 px-3 py-3.5" }, _a = ["for"], Sa = ["id", "value", "placeholder", "aria-invalid"], Ca = ["onClick"], So = /* @__PURE__ */ P({
492
511
  __name: "DateTimeField",
493
- props: /* @__PURE__ */ oe(/* @__PURE__ */ ue({
512
+ props: /* @__PURE__ */ se(/* @__PURE__ */ ce({
494
513
  label: {},
495
514
  labelHidden: { type: Boolean },
496
515
  hint: {},
@@ -507,187 +526,190 @@ const Qt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Zt = ["name
507
526
  openOn: {},
508
527
  minuteStep: {},
509
528
  quickPicks: {}
510
- }, { ...ce, min: void 0, max: void 0, disabledDates: void 0, openOn: void 0, minuteStep: 1, quickPicks: void 0 }), {
529
+ }, { ...me, min: void 0, max: void 0, disabledDates: void 0, openOn: void 0, minuteStep: 1, quickPicks: void 0 }), {
511
530
  modelValue: { default: null },
512
531
  modelModifiers: {}
513
532
  }),
514
- emits: ["update:modelValue"],
515
- setup(o, { expose: t }) {
516
- const e = o, a = le(o, "modelValue"), { t: n } = ee(), l = zt(), u = Ne(), d = H("input"), g = H("popover"), x = H("calendar"), $ = H("sheet"), y = w(() => ({ min: e.min?.slice(0, 10), max: e.max?.slice(0, 10), disabled: e.disabledDates })), r = w(() => e.min && e.min.length === 10 ? `${e.min}T00:00` : e.min), f = w(() => e.max && e.max.length === 10 ? `${e.max}T23:59` : e.max), b = (_, M) => !Ft(M, { disabled: e.disabledDates }) && (!r.value || _ >= r.value) && (!f.value || _ <= f.value), S = Lt(() => y.value), T = Vt(() => e.minuteStep), h = w(() => $e(a.value));
517
- function G(_) {
518
- const { date: M, time: ve } = Dt(_), v = M === null ? h.value.day ?? Fe() : S.parse(M);
519
- if (!v) return { error: S.invalidMessage() };
520
- let V = h.value.time ?? De(e.minuteStep);
521
- if (ve !== null) {
522
- const L = T.parse(ve);
523
- if ("error" in L) return L;
524
- V = L.value;
533
+ emits: /* @__PURE__ */ se(["focus", "blur"], ["update:modelValue"]),
534
+ setup(o, { expose: t, emit: e }) {
535
+ const a = o, n = ie(o, "modelValue"), l = e, { t: u } = oe(), c = Dt(), b = Ne(), h = U("input"), w = U("popover"), x = U("calendar"), r = U("sheet"), f = k(() => ({ min: a.min?.slice(0, 10), max: a.max?.slice(0, 10), disabled: a.disabledDates })), g = k(() => a.min && a.min.length === 10 ? `${a.min}T00:00` : a.min), S = k(() => a.max && a.max.length === 10 ? `${a.max}T23:59` : a.max), z = (L, d) => !Ft(d, { disabled: a.disabledDates }) && (!g.value || L >= g.value) && (!S.value || L <= S.value), $ = Lt(() => f.value), I = Vt(() => a.minuteStep), F = k(() => $e(n.value));
536
+ function E(L) {
537
+ const { date: d, time: V } = zt(L), v = d === null ? F.value.day ?? Fe() : $.parse(d);
538
+ if (!v) return { error: $.invalidMessage() };
539
+ let q = F.value.time ?? ze(a.minuteStep);
540
+ if (V !== null) {
541
+ const K = I.parse(V);
542
+ if ("error" in K) return K;
543
+ q = K.value;
525
544
  }
526
- const m = _e(v, V);
527
- return b(m, v) ? { value: m } : { error: S.unavailableMessage() };
545
+ const B = _e(v, q);
546
+ return z(B, v) ? { value: B } : { error: $.unavailableMessage() };
528
547
  }
529
- const F = Ye({ model: a, display: (_) => `${l.date($e(_).day)} ${$e(_).time ?? ""}`.trim(), parse: G }), E = w({
530
- get: () => h.value.time,
531
- set: (_) => {
532
- _ && xt(_) && (a.value = _e(h.value.day ?? Fe(), _));
548
+ const R = Ye({ model: n, display: (L) => `${c.date($e(L).day)} ${$e(L).time ?? ""}`.trim(), parse: E }), Z = k({
549
+ get: () => F.value.time,
550
+ set: (L) => {
551
+ L && xt(L) && (n.value = _e(F.value.day ?? Fe(), L));
533
552
  }
534
- }), I = Ye({ model: E, display: (_) => _, parse: T.parse }), U = Tt(() => e.quickPicks ?? (u.value ? void 0 : []), () => u.value, () => y.value), ne = w(() => e.error || F.message.value || I.message.value), Z = w(() => a.value ? l.dateTime(a.value) : null), te = Ge("date", () => ne.value ? "error" : e.disabled ? "locked" : "rest"), fe = w(() => {
535
- const _ = F.typed.value;
536
- return _ ? $e(_).day ?? null : null;
537
- }), R = w(() => fe.value ?? (wt(h.value.day) ? h.value.day : null)), A = w(() => F.typed.value ? $e(F.typed.value).time : h.value.time);
538
- function N(_) {
539
- _ && F.set(_e(_, h.value.time ?? De(e.minuteStep)));
553
+ }), W = Ye({ model: Z, display: (L) => L, parse: I.parse }), J = Tt(() => a.quickPicks ?? (b.value ? void 0 : []), () => b.value, () => f.value), ae = k(() => a.error || R.message.value || W.message.value), ve = k(() => n.value ? c.dateTime(n.value) : null), D = Ge("date", () => ae.value ? "error" : a.disabled ? "locked" : "rest"), A = k(() => {
554
+ const L = R.typed.value;
555
+ return L ? $e(L).day ?? null : null;
556
+ }), G = k(() => A.value ?? (wt(F.value.day) ? F.value.day : null)), ne = k(() => R.typed.value ? $e(R.typed.value).time : F.value.time);
557
+ function re(L) {
558
+ L && R.set(_e(L, F.value.time ?? ze(a.minuteStep)));
540
559
  }
541
- function ae(_) {
542
- _ && F.set(_e(h.value.day ?? Fe(), _));
560
+ function le(L) {
561
+ L && R.set(_e(F.value.day ?? Fe(), L));
543
562
  }
544
- function se(_) {
545
- F.set(_e(Fe(), De(e.minuteStep))), _();
563
+ function ke(L) {
564
+ R.set(_e(Fe(), ze(a.minuteStep))), L();
546
565
  }
547
- const W = je();
548
- async function me(_) {
549
- e.disabled || (g.value?.present(), _ && (await ke(), await ke(), x.value?.focus()));
566
+ const we = je();
567
+ async function X(L) {
568
+ a.disabled || (w.value?.present(), L && (await he(), await he(), x.value?.focus()));
550
569
  }
551
- function we(_) {
552
- _.key === "Enter" ? (F.commit(), g.value?.dismiss()) : _.key === "ArrowDown" && (_.preventDefault(), me(!0));
570
+ function pe(L) {
571
+ L.key === "Enter" ? (R.commit(), w.value?.dismiss()) : L.key === "ArrowDown" && (L.preventDefault(), X(!0));
553
572
  }
554
- return t({ focus: () => d.value?.focus() }), (_, M) => (i(), q(he, J({ ...s(de)(e), error: ne.value }, {
555
- value: Z.value,
573
+ return t({ focus: () => h.value?.focus() }), (L, d) => (i(), O(ye, Q({ ...s(fe)(a), error: ae.value }, {
574
+ value: ve.value,
556
575
  "value-style": "numeric"
557
- }), X({
558
- default: c(({ id: ve, describedby: v, invalid: V }) => [
559
- s(u) ? (i(), k(re, { key: 0 }, [
560
- O(ot, J({ id: ve, "aria-describedby": v }, {
561
- disabled: e.disabled,
562
- invalid: V,
563
- placeholder: s(n)("core.form.select.choose"),
564
- onClick: M[0] || (M[0] = (m) => $.value?.present())
576
+ }), ee({
577
+ default: m(({ id: V, describedby: v, invalid: q }) => [
578
+ s(b) ? (i(), y(ue, { key: 0 }, [
579
+ M(ot, Q({ id: V, "aria-describedby": v }, {
580
+ disabled: a.disabled,
581
+ invalid: q,
582
+ placeholder: s(u)("core.form.select.choose"),
583
+ onClick: d[0] || (d[0] = (B) => r.value?.present())
565
584
  }), {
566
- default: c(() => [
567
- a.value ? (i(), k("span", ma, [
568
- p("span", va, C(s(l).date(h.value.day)), 1),
569
- M[7] || (M[7] = Y(C(" "), -1)),
570
- p("span", pa, C(h.value.time), 1)
571
- ])) : z("", !0)
585
+ default: m(() => [
586
+ n.value ? (i(), y("span", pa, [
587
+ p("span", ba, _(s(c).date(F.value.day)), 1),
588
+ d[8] || (d[8] = Y(_(" "), -1)),
589
+ p("span", ga, _(F.value.time), 1)
590
+ ])) : T("", !0)
572
591
  ]),
573
592
  _: 1
574
593
  }, 16, ["disabled", "invalid", "placeholder"]),
575
- O($t, {
594
+ M($t, {
576
595
  ref_key: "sheet",
577
- ref: $,
578
- title: e.label ?? s(n)("core.form.date.calendar"),
596
+ ref: r,
597
+ title: a.label ?? s(u)("core.form.date.calendar"),
579
598
  mode: "datetime",
580
- "model-value": a.value,
581
- min: y.value.min,
582
- max: y.value.max,
583
- "disabled-dates": e.disabledDates,
584
- "open-on": e.openOn,
585
- shortcuts: s(U),
586
- step: e.minuteStep,
587
- clearable: !e.required,
588
- "onUpdate:modelValue": s(F).set
599
+ "model-value": n.value,
600
+ min: f.value.min,
601
+ max: f.value.max,
602
+ "disabled-dates": a.disabledDates,
603
+ "open-on": a.openOn,
604
+ shortcuts: s(J),
605
+ step: a.minuteStep,
606
+ clearable: !a.required,
607
+ "onUpdate:modelValue": s(R).set
589
608
  }, null, 8, ["title", "model-value", "min", "max", "disabled-dates", "open-on", "shortcuts", "step", "clearable", "onUpdate:modelValue"])
590
- ], 64)) : (i(), q(Pe, {
609
+ ], 64)) : (i(), O(Pe, {
591
610
  key: 1,
592
611
  ref_key: "popover",
593
- ref: g,
594
- label: e.label ?? s(n)("core.form.date.calendar"),
612
+ ref: w,
613
+ label: a.label ?? s(u)("core.form.date.calendar"),
595
614
  width: "auto",
596
615
  placement: "bottom-start",
597
616
  arrow: !1,
598
617
  autofocus: !1
599
618
  }, {
600
- trigger: c(({ attrs: m, presented: L }) => [
619
+ trigger: m(({ attrs: B, presented: K }) => [
601
620
  p("div", {
602
- class: j(["inline-flex max-w-full items-center gap-2", s(te)])
621
+ class: j(["inline-flex max-w-full items-center gap-2", s(D)])
603
622
  }, [
604
- p("input", J({
605
- id: ve,
623
+ p("input", Q({
624
+ id: V,
606
625
  ref_key: "input",
607
- ref: d
608
- }, m, {
626
+ ref: h
627
+ }, B, {
609
628
  type: "text",
610
629
  role: "combobox",
611
630
  autocomplete: "off",
612
631
  size: "20",
613
- name: e.name,
614
- value: s(F).text.value,
615
- placeholder: s(S).placeholder.value,
616
- disabled: e.disabled,
617
- required: e.required,
618
- "aria-required": e.required || void 0,
619
- "aria-invalid": V || void 0,
632
+ name: a.name,
633
+ value: s(R).text.value,
634
+ placeholder: s($).placeholder.value,
635
+ disabled: a.disabled,
636
+ required: a.required,
637
+ "aria-required": a.required || void 0,
638
+ "aria-invalid": q || void 0,
620
639
  "aria-describedby": v,
621
640
  class: "block min-h-7 min-w-0 border-0 bg-transparent py-1 pl-2.5 text-body tabular-nums text-content-strong placeholder:text-content-disabled focus:outline-none focus:ring-0 disabled:cursor-not-allowed",
622
- onInput: M[1] || (M[1] = (D) => s(F).input(D.target.value)),
623
- onBlur: M[2] || (M[2] = (D) => s(F).commit()),
624
- onKeydown: we,
625
- onClick: M[3] || (M[3] = (D) => me(!1))
626
- }), null, 16, ba),
627
- e.disabled ? z("", !0) : (i(), k("button", {
641
+ onInput: d[1] || (d[1] = (H) => s(R).input(H.target.value)),
642
+ onFocus: d[2] || (d[2] = (H) => l("focus", H)),
643
+ onBlur: d[3] || (d[3] = (H) => {
644
+ s(R).commit(), l("blur", H);
645
+ }),
646
+ onKeydown: pe,
647
+ onClick: d[4] || (d[4] = (H) => X(!1))
648
+ }), null, 16, ya),
649
+ a.disabled ? T("", !0) : (i(), y("button", {
628
650
  key: 0,
629
651
  type: "button",
630
652
  tabindex: "-1",
631
- "aria-label": s(n)("core.form.date.open"),
653
+ "aria-label": s(u)("core.form.date.open"),
632
654
  class: "mr-2 flex shrink-0 cursor-pointer items-center text-content-link",
633
- onClick: (D) => L ? g.value?.dismiss() : me(!0)
655
+ onClick: (H) => K ? w.value?.dismiss() : X(!0)
634
656
  }, [
635
- O(s(Q), {
657
+ M(s(te), {
636
658
  name: "calendarLine",
637
659
  size: 18
638
660
  })
639
- ], 8, ga))
661
+ ], 8, ha))
640
662
  ], 2)
641
663
  ]),
642
- default: c(({ dismiss: m }) => [
643
- p("div", ya, [
644
- p("div", ha, [
645
- O(_t, {
664
+ default: m(({ dismiss: B }) => [
665
+ p("div", ka, [
666
+ p("div", xa, [
667
+ M(_t, {
646
668
  ref_key: "calendar",
647
669
  ref: x,
648
- "model-value": R.value,
649
- min: y.value.min,
650
- max: y.value.max,
651
- "disabled-dates": e.disabledDates,
652
- "open-on": e.openOn,
653
- "onUpdate:modelValue": N
670
+ "model-value": G.value,
671
+ min: f.value.min,
672
+ max: f.value.max,
673
+ "disabled-dates": a.disabledDates,
674
+ "open-on": a.openOn,
675
+ "onUpdate:modelValue": re
654
676
  }, null, 8, ["model-value", "min", "max", "disabled-dates", "open-on"]),
655
- s(U).length > 0 ? (i(), k("div", ka, [
656
- O(St, {
657
- items: s(U),
658
- selected: R.value,
659
- onPick: N
677
+ s(J).length > 0 ? (i(), y("div", wa, [
678
+ M(St, {
679
+ items: s(J),
680
+ selected: G.value,
681
+ onPick: re
660
682
  }, null, 8, ["items", "selected"])
661
- ])) : z("", !0)
683
+ ])) : T("", !0)
662
684
  ]),
663
- p("div", xa, [
685
+ p("div", $a, [
664
686
  p("label", {
665
- for: s(W),
687
+ for: s(we),
666
688
  class: "text-footnote font-semibold text-content-muted"
667
- }, C(s(n)("core.form.time.label")), 9, wa),
689
+ }, _(s(u)("core.form.time.label")), 9, _a),
668
690
  p("input", {
669
- id: s(W),
691
+ id: s(we),
670
692
  type: "text",
671
693
  autocomplete: "off",
672
694
  inputmode: "numeric",
673
- value: s(I).text.value,
674
- placeholder: s(T).placeholder.value,
675
- "aria-invalid": s(I).message.value ? !0 : void 0,
695
+ value: s(W).text.value,
696
+ placeholder: s(I).placeholder.value,
697
+ "aria-invalid": s(W).message.value ? !0 : void 0,
676
698
  class: "rounded-control bg-fill p-1.5 text-center text-[20px] font-semibold tabular-nums text-content-strong placeholder:text-base placeholder:font-normal placeholder:text-content-disabled focus:outline-2 focus:outline-border-focus",
677
- onInput: M[4] || (M[4] = (L) => s(I).input(L.target.value)),
678
- onBlur: M[5] || (M[5] = (L) => s(I).commit()),
679
- onKeydown: M[6] || (M[6] = Ce(ge((L) => s(I).commit(), ["prevent"]), ["enter"]))
680
- }, null, 40, $a),
681
- O(Ct, {
682
- "model-value": A.value,
683
- step: e.minuteStep,
684
- "onUpdate:modelValue": ae
699
+ onInput: d[5] || (d[5] = (K) => s(W).input(K.target.value)),
700
+ onBlur: d[6] || (d[6] = (K) => s(W).commit()),
701
+ onKeydown: d[7] || (d[7] = Ce(be((K) => s(W).commit(), ["prevent"]), ["enter"]))
702
+ }, null, 40, Sa),
703
+ M(Ct, {
704
+ "model-value": ne.value,
705
+ step: a.minuteStep,
706
+ "onUpdate:modelValue": le
685
707
  }, null, 8, ["model-value", "step"]),
686
708
  p("button", {
687
709
  type: "button",
688
710
  class: "cursor-pointer self-start rounded-full bg-tint-soft px-2.5 py-1.5 text-footnote font-medium text-content-link focus-visible:outline-2 focus-visible:outline-border-focus",
689
- onClick: (L) => se(m)
690
- }, C(s(n)("core.form.time.now")), 9, _a)
711
+ onClick: (K) => ke(B)
712
+ }, _(s(u)("core.form.time.now")), 9, Ca)
691
713
  ])
692
714
  ])
693
715
  ]),
@@ -696,24 +718,24 @@ const Qt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Zt = ["name
696
718
  ]),
697
719
  _: 2
698
720
  }, [
699
- _.$slots.trailing ? {
721
+ L.$slots.trailing ? {
700
722
  name: "trailing",
701
- fn: c(() => [
702
- B(_.$slots, "trailing")
723
+ fn: m(() => [
724
+ C(L.$slots, "trailing")
703
725
  ]),
704
726
  key: "0"
705
727
  } : void 0,
706
- _.$slots.labelTrailing ? {
728
+ L.$slots.labelTrailing ? {
707
729
  name: "labelTrailing",
708
- fn: c(() => [
709
- B(_.$slots, "labelTrailing")
730
+ fn: m(() => [
731
+ C(L.$slots, "labelTrailing")
710
732
  ]),
711
733
  key: "1"
712
734
  } : void 0,
713
- _.$slots.readonly ? {
735
+ L.$slots.readonly ? {
714
736
  name: "readonly",
715
- fn: c(() => [
716
- B(_.$slots, "readonly")
737
+ fn: m(() => [
738
+ C(L.$slots, "readonly")
717
739
  ]),
718
740
  key: "2"
719
741
  } : void 0
@@ -724,9 +746,9 @@ function nt(o, t = {}) {
724
746
  const e = t.accept ?? [];
725
747
  if (e.length > 0) {
726
748
  const a = o.name.lastIndexOf("."), n = a === -1 ? "" : o.name.slice(a).toLowerCase(), l = o.type.toLowerCase();
727
- if (!e.some((d) => {
728
- const g = d.trim().toLowerCase();
729
- return g.startsWith(".") ? g === n : g.endsWith("/*") ? l.startsWith(g.slice(0, -1)) : g === l;
749
+ if (!e.some((c) => {
750
+ const b = c.trim().toLowerCase();
751
+ return b.startsWith(".") ? b === n : b.endsWith("/*") ? l.startsWith(b.slice(0, -1)) : b === l;
730
752
  })) return "invalid_type";
731
753
  }
732
754
  return (t.maxSize ?? 0) > 0 && o.size > (t.maxSize ?? 0) ? "too_large" : null;
@@ -734,13 +756,13 @@ function nt(o, t = {}) {
734
756
  function Be(o) {
735
757
  return o < 1024 ? `${o} B` : o < 1024 * 1024 ? `${Math.round(o / 1024)} KB` : `${(o / (1024 * 1024)).toFixed(o % (1024 * 1024) === 0 ? 0 : 1)} MB`;
736
758
  }
737
- const Sa = { class: "w-full" }, Ca = ["id", "accept", "disabled", "aria-describedby", "aria-invalid"], Fa = {
759
+ const Fa = { class: "w-full" }, Ba = ["id", "accept", "disabled", "aria-describedby", "aria-invalid"], La = {
738
760
  key: 0,
739
761
  class: "flex items-center gap-3 rounded-group bg-fill p-3",
740
762
  "data-test": "file-selected"
741
- }, Ba = { class: "min-w-0 flex-1" }, La = { class: "truncate text-body font-medium text-content-strong" }, Ta = { class: "text-footnote text-content-muted" }, Da = ["disabled", "aria-label", "title"], za = ["aria-disabled"], Va = { class: "font-semibold text-content-link" }, qa = { class: "text-content-muted" }, _o = /* @__PURE__ */ K({
763
+ }, Ta = { class: "min-w-0 flex-1" }, za = { class: "truncate text-body font-medium text-content-strong" }, Da = { class: "text-footnote text-content-muted" }, Va = ["disabled", "aria-label", "title"], qa = ["aria-disabled"], Ra = { class: "font-semibold text-content-link" }, Oa = { class: "text-content-muted" }, Co = /* @__PURE__ */ P({
742
764
  __name: "FileField",
743
- props: /* @__PURE__ */ oe(/* @__PURE__ */ ue({
765
+ props: /* @__PURE__ */ se(/* @__PURE__ */ ce({
744
766
  label: {},
745
767
  labelHidden: { type: Boolean },
746
768
  hint: {},
@@ -754,33 +776,33 @@ const Sa = { class: "w-full" }, Ca = ["id", "accept", "disabled", "aria-describe
754
776
  variant: {},
755
777
  accept: {},
756
778
  maxSize: {}
757
- }, { ...ce, variant: "button", accept: () => [], maxSize: 0 }), {
779
+ }, { ...me, variant: "button", accept: () => [], maxSize: 0 }), {
758
780
  modelValue: { default: null },
759
781
  modelModifiers: {}
760
782
  }),
761
783
  emits: ["update:modelValue"],
762
784
  setup(o, { expose: t }) {
763
- const e = o, a = le(o, "modelValue"), { t: n } = ee(), l = H("chooser"), u = P(!1), d = P(null), g = w(() => {
785
+ const e = o, a = ie(o, "modelValue"), { t: n } = oe(), l = U("chooser"), u = N(!1), c = N(null), b = k(() => {
764
786
  if (e.hint) return e.hint;
765
- const y = [];
766
- return e.accept.length && y.push(n("core.form.file.allowed", { formats: e.accept.map((r) => r.replace(/^\./, "").toUpperCase()).join(", ") })), e.maxSize > 0 && y.push(n("core.form.file.max_size", { size: Be(e.maxSize) })), y.join(" · ") || void 0;
787
+ const x = [];
788
+ return e.accept.length && x.push(n("core.form.file.allowed", { formats: e.accept.map((r) => r.replace(/^\./, "").toUpperCase()).join(", ") })), e.maxSize > 0 && x.push(n("core.form.file.max_size", { size: Be(e.maxSize) })), x.join(" · ") || void 0;
767
789
  });
768
- function x(y) {
769
- if (!y) return;
770
- const r = nt(y, { accept: e.accept, maxSize: e.maxSize });
771
- r ? (d.value = r === "invalid_type" ? n("core.form.file.invalid_type") : n("core.form.file.too_large", { size: Be(e.maxSize) }), a.value = null) : (d.value = null, a.value = y);
790
+ function h(x) {
791
+ if (!x) return;
792
+ const r = nt(x, { accept: e.accept, maxSize: e.maxSize });
793
+ r ? (c.value = r === "invalid_type" ? n("core.form.file.invalid_type") : n("core.form.file.too_large", { size: Be(e.maxSize) }), a.value = null) : (c.value = null, a.value = x);
772
794
  }
773
- function $() {
774
- a.value = null, d.value = null;
795
+ function w() {
796
+ a.value = null, c.value = null;
775
797
  }
776
- return ie(a, (y) => {
777
- !y && l.value && (l.value.value = "");
778
- }), t({ clear: $ }), (y, r) => (i(), q(he, J({ ...s(de)(e), hint: g.value, error: d.value ?? e.error }, {
798
+ return de(a, (x) => {
799
+ !x && l.value && (l.value.value = "");
800
+ }), t({ clear: w }), (x, r) => (i(), O(ye, Q({ ...s(fe)(e), hint: b.value, error: c.value ?? e.error }, {
779
801
  value: a.value?.name ?? null,
780
802
  "row-layout": "stacked"
781
- }), X({
782
- default: c(({ id: f, describedby: b, invalid: S }) => [
783
- p("div", Sa, [
803
+ }), ee({
804
+ default: m(({ id: f, describedby: g, invalid: S }) => [
805
+ p("div", Fa, [
784
806
  p("input", {
785
807
  id: f,
786
808
  ref_key: "chooser",
@@ -790,14 +812,14 @@ const Sa = { class: "w-full" }, Ca = ["id", "accept", "disabled", "aria-describe
790
812
  tabindex: "-1",
791
813
  accept: e.accept.join(",") || void 0,
792
814
  disabled: e.disabled,
793
- "aria-describedby": b,
815
+ "aria-describedby": g,
794
816
  "aria-invalid": S || void 0,
795
- onChange: r[0] || (r[0] = (T) => x(T.target.files?.[0]))
796
- }, null, 40, Ca),
797
- a.value ? (i(), k("div", Fa, [
798
- p("div", Ba, [
799
- p("p", La, C(a.value.name), 1),
800
- p("p", Ta, C(s(Be)(a.value.size)), 1)
817
+ onChange: r[0] || (r[0] = (z) => h(z.target.files?.[0]))
818
+ }, null, 40, Ba),
819
+ a.value ? (i(), y("div", La, [
820
+ p("div", Ta, [
821
+ p("p", za, _(a.value.name), 1),
822
+ p("p", Da, _(s(Be)(a.value.size)), 1)
801
823
  ]),
802
824
  p("button", {
803
825
  type: "button",
@@ -805,40 +827,40 @@ const Sa = { class: "w-full" }, Ca = ["id", "accept", "disabled", "aria-describe
805
827
  "aria-label": s(n)("core.form.file.remove"),
806
828
  title: s(n)("core.form.file.remove"),
807
829
  class: "flex size-7 shrink-0 cursor-pointer items-center justify-center rounded-full text-content-muted hover:bg-fill-strong focus-visible:outline-2 focus-visible:outline-border-focus disabled:cursor-not-allowed",
808
- onClick: $
830
+ onClick: w
809
831
  }, [
810
- O(s(Q), {
832
+ M(s(te), {
811
833
  name: "close",
812
834
  size: 14
813
835
  })
814
- ], 8, Da)
815
- ])) : e.variant === "dropzone" ? (i(), k("div", {
836
+ ], 8, Va)
837
+ ])) : e.variant === "dropzone" ? (i(), y("div", {
816
838
  key: 1,
817
839
  role: "button",
818
840
  tabindex: "0",
819
841
  "data-test": "file-dropzone",
820
842
  "aria-disabled": e.disabled || void 0,
821
843
  class: j(["cursor-pointer rounded-group border-2 border-dashed p-6 text-center text-body transition-colors duration-motion-fast focus-visible:outline-2 focus-visible:outline-border-focus", u.value ? "border-border-focus bg-tint-soft" : "border-border-control hover:bg-fill"]),
822
- onClick: r[1] || (r[1] = (T) => !e.disabled && l.value?.click()),
844
+ onClick: r[1] || (r[1] = (z) => !e.disabled && l.value?.click()),
823
845
  onKeydown: [
824
- r[2] || (r[2] = Ce(ge((T) => !e.disabled && l.value?.click(), ["prevent"]), ["enter"])),
825
- r[3] || (r[3] = Ce(ge((T) => !e.disabled && l.value?.click(), ["prevent"]), ["space"]))
846
+ r[2] || (r[2] = Ce(be((z) => !e.disabled && l.value?.click(), ["prevent"]), ["enter"])),
847
+ r[3] || (r[3] = Ce(be((z) => !e.disabled && l.value?.click(), ["prevent"]), ["space"]))
826
848
  ],
827
- onDragover: r[4] || (r[4] = ge((T) => u.value = !0, ["prevent"])),
828
- onDragleave: r[5] || (r[5] = ge((T) => u.value = !1, ["prevent"])),
829
- onDrop: r[6] || (r[6] = ge((T) => {
830
- u.value = !1, e.disabled || x(T.dataTransfer?.files?.[0]);
849
+ onDragover: r[4] || (r[4] = be((z) => u.value = !0, ["prevent"])),
850
+ onDragleave: r[5] || (r[5] = be((z) => u.value = !1, ["prevent"])),
851
+ onDrop: r[6] || (r[6] = be((z) => {
852
+ u.value = !1, e.disabled || h(z.dataTransfer?.files?.[0]);
831
853
  }, ["prevent"]))
832
854
  }, [
833
- p("span", Va, C(s(n)("core.form.file.choose")), 1),
834
- p("span", qa, C(" " + s(n)("core.form.file.drop")), 1)
835
- ], 42, za)) : (i(), q(ye, {
855
+ p("span", Ra, _(s(n)("core.form.file.choose")), 1),
856
+ p("span", Oa, _(" " + s(n)("core.form.file.drop")), 1)
857
+ ], 42, qa)) : (i(), O(ge, {
836
858
  key: 2,
837
859
  disabled: e.disabled,
838
- onClick: r[7] || (r[7] = (T) => l.value?.click())
860
+ onClick: r[7] || (r[7] = (z) => l.value?.click())
839
861
  }, {
840
- default: c(() => [
841
- Y(C(s(n)("core.form.file.choose")), 1)
862
+ default: m(() => [
863
+ Y(_(s(n)("core.form.file.choose")), 1)
842
864
  ]),
843
865
  _: 1
844
866
  }, 8, ["disabled"]))
@@ -846,30 +868,30 @@ const Sa = { class: "w-full" }, Ca = ["id", "accept", "disabled", "aria-describe
846
868
  ]),
847
869
  _: 2
848
870
  }, [
849
- y.$slots.trailing ? {
871
+ x.$slots.trailing ? {
850
872
  name: "trailing",
851
- fn: c(() => [
852
- B(y.$slots, "trailing")
873
+ fn: m(() => [
874
+ C(x.$slots, "trailing")
853
875
  ]),
854
876
  key: "0"
855
877
  } : void 0,
856
- y.$slots.labelTrailing ? {
878
+ x.$slots.labelTrailing ? {
857
879
  name: "labelTrailing",
858
- fn: c(() => [
859
- B(y.$slots, "labelTrailing")
880
+ fn: m(() => [
881
+ C(x.$slots, "labelTrailing")
860
882
  ]),
861
883
  key: "1"
862
884
  } : void 0,
863
- y.$slots.readonly ? {
885
+ x.$slots.readonly ? {
864
886
  name: "readonly",
865
- fn: c(() => [
866
- B(y.$slots, "readonly")
887
+ fn: m(() => [
888
+ C(x.$slots, "readonly")
867
889
  ]),
868
890
  key: "2"
869
891
  } : void 0
870
892
  ]), 1040, ["value"]));
871
893
  }
872
- }), Ra = ["disabled"], So = /* @__PURE__ */ K({
894
+ }), Ma = ["disabled"], Fo = /* @__PURE__ */ P({
873
895
  __name: "FormGroupButton",
874
896
  props: {
875
897
  label: {},
@@ -879,16 +901,16 @@ const Sa = { class: "w-full" }, Ca = ["id", "accept", "disabled", "aria-describe
879
901
  emits: ["click"],
880
902
  setup(o, { emit: t }) {
881
903
  const e = o, a = t;
882
- return (n, l) => (i(), q(qt, null, {
883
- default: c(() => [
884
- O(mt, { layout: "stacked" }, {
885
- default: c(() => [
904
+ return (n, l) => (i(), O(qt, null, {
905
+ default: m(() => [
906
+ M(mt, { layout: "stacked" }, {
907
+ default: m(() => [
886
908
  p("button", {
887
909
  type: "button",
888
910
  disabled: e.disabled,
889
911
  class: j(["w-full py-1 text-center text-body focus-visible:outline-2 focus-visible:outline-border-focus disabled:text-content-disabled", e.tone === "critical" ? "text-content-destructive" : "text-content-link"]),
890
912
  onClick: l[0] || (l[0] = (u) => a("click"))
891
- }, C(e.label), 11, Ra)
913
+ }, _(e.label), 11, Ma)
892
914
  ]),
893
915
  _: 1
894
916
  })
@@ -896,31 +918,31 @@ const Sa = { class: "w-full" }, Ca = ["id", "accept", "disabled", "aria-describe
896
918
  _: 1
897
919
  }));
898
920
  }
899
- }), Co = /* @__PURE__ */ K({
921
+ }), Bo = /* @__PURE__ */ P({
900
922
  __name: "FormIndent",
901
923
  setup(o) {
902
- return Re(vt, pt() + 1), (t, e) => B(t.$slots, "default");
924
+ return Re(vt, pt() + 1), (t, e) => C(t.$slots, "default");
903
925
  }
904
926
  });
905
- function Ma(o, t) {
927
+ function ja(o, t) {
906
928
  return t.filter((e) => (o?.[e] ?? "").trim() === "");
907
929
  }
908
- const Oa = ["id", "aria-labelledby"], ja = ["id", "value", "lang", "name", "rows", "placeholder", "maxlength", "disabled", "aria-required", "aria-invalid", "aria-describedby"], Ea = ["id", "value", "lang", "name", "placeholder", "maxlength", "disabled", "aria-required", "aria-invalid", "aria-describedby"], Ia = {
930
+ const Ea = ["id", "aria-labelledby"], Ia = ["id", "value", "lang", "name", "rows", "placeholder", "maxlength", "disabled", "aria-required", "aria-invalid", "aria-describedby"], Ga = ["id", "value", "lang", "name", "placeholder", "maxlength", "disabled", "aria-required", "aria-invalid", "aria-describedby"], Na = {
909
931
  key: 0,
910
932
  class: "mt-1.5 flex items-center gap-2"
911
- }, Ga = {
933
+ }, Pa = {
912
934
  key: 0,
913
935
  class: "flex-1 text-footnote text-status-warning-content",
914
936
  "data-test": "i18n-missing"
915
- }, Na = {
937
+ }, Ka = {
916
938
  key: 1,
917
939
  class: "flex-1"
918
- }, Pa = ["aria-label"], Ka = ["id", "aria-selected", "tabindex", "aria-controls", "aria-label", "title", "onClick", "onKeydown"], Aa = ["data-state"], Ha = { class: "w-full" }, Ua = { class: "whitespace-pre-line break-words text-body text-content-strong" }, Ya = ["aria-expanded"], Wa = { class: "flex-1" }, Ja = {
940
+ }, Aa = ["aria-label"], Ha = ["id", "aria-selected", "tabindex", "aria-controls", "aria-label", "title", "onClick", "onKeydown"], Ua = ["data-state"], Ya = { class: "w-full" }, Wa = { class: "whitespace-pre-line break-words text-body text-content-strong" }, Ja = ["aria-expanded"], Za = { class: "flex-1" }, Xa = {
919
941
  key: 0,
920
942
  class: "mt-1 flex flex-col gap-1.5"
921
- }, Xa = ["title"], Fo = /* @__PURE__ */ K({
943
+ }, Qa = ["title"], Lo = /* @__PURE__ */ P({
922
944
  __name: "I18nField",
923
- props: /* @__PURE__ */ oe(/* @__PURE__ */ ue({
945
+ props: /* @__PURE__ */ se(/* @__PURE__ */ ce({
924
946
  label: {},
925
947
  labelHidden: { type: Boolean },
926
948
  hint: {},
@@ -938,198 +960,198 @@ const Oa = ["id", "aria-labelledby"], ja = ["id", "value", "lang", "name", "rows
938
960
  rows: {},
939
961
  placeholder: {},
940
962
  maxLength: {}
941
- }, { ...ce, locales: void 0, defaultLocale: void 0, requiredLocales: () => [], multiline: !1, rows: 3, placeholder: void 0, maxLength: void 0 }), {
963
+ }, { ...me, locales: void 0, defaultLocale: void 0, requiredLocales: () => [], multiline: !1, rows: 3, placeholder: void 0, maxLength: void 0 }), {
942
964
  modelValue: { default: () => ({}) },
943
965
  modelModifiers: {}
944
966
  }),
945
967
  emits: ["update:modelValue"],
946
968
  setup(o, { expose: t }) {
947
- const e = o, a = le(o, "modelValue"), { t: n, locale: l, availableLocales: u } = ee(), d = tt(Ot, null), g = je(), x = H("field"), $ = H("root"), { editable: y } = at(e), r = Ge(e.multiline ? "area" : "text", () => e.error || ae.value ? "error" : e.disabled ? "locked" : "rest"), f = w(() => e.locales ?? d?.locales ?? u), b = w(() => e.defaultLocale ?? f.value[0] ?? ""), S = w(() => f.value.includes(b.value) ? [b.value, ...f.value.filter((m) => m !== b.value)] : f.value), T = P(null), h = w(() => T.value !== null && S.value.includes(T.value) ? T.value : S.value.includes(l.value) ? l.value : b.value), G = (m) => a.value[m] ?? "", F = (m) => G(m).trim() !== "", E = (m) => m.toUpperCase();
948
- function I(m) {
969
+ const e = o, a = ie(o, "modelValue"), { t: n, locale: l, availableLocales: u } = oe(), c = tt(Mt, null), b = je(), h = U("field"), w = U("root"), { editable: x } = at(e), r = Ge(e.multiline ? "area" : "text", () => e.error || ne.value ? "error" : e.disabled ? "locked" : "rest"), f = k(() => e.locales ?? c?.locales ?? u), g = k(() => e.defaultLocale ?? f.value[0] ?? ""), S = k(() => f.value.includes(g.value) ? [g.value, ...f.value.filter((v) => v !== g.value)] : f.value), z = N(null), $ = k(() => z.value !== null && S.value.includes(z.value) ? z.value : S.value.includes(l.value) ? l.value : g.value), I = (v) => a.value[v] ?? "", F = (v) => I(v).trim() !== "", E = (v) => v.toUpperCase();
970
+ function R(v) {
949
971
  try {
950
- return new Intl.DisplayNames([Mt(l.value)], { type: "language" }).of(m) ?? E(m);
972
+ return new Intl.DisplayNames([Ot(l.value)], { type: "language" }).of(v) ?? E(v);
951
973
  } catch {
952
- return E(m);
974
+ return E(v);
953
975
  }
954
976
  }
955
- const U = (m) => m.map(I).join(", ");
956
- function ne(m, L) {
957
- a.value = { ...a.value, [m]: L };
977
+ const Z = (v) => v.map(R).join(", ");
978
+ function W(v, q) {
979
+ a.value = { ...a.value, [v]: q };
958
980
  }
959
- const Z = (m) => `${g}-tab-${m}`;
960
- function te(m, L) {
961
- T.value = m, L && ke(() => x.value?.focus());
981
+ const J = (v) => `${b}-tab-${v}`;
982
+ function ae(v, q) {
983
+ z.value = v, q && he(() => h.value?.focus());
962
984
  }
963
- function fe(m, L) {
964
- const D = S.value.length - 1, pe = { ArrowRight: L + 1, ArrowLeft: L - 1, Home: 0, End: D }[m.key];
965
- if (pe === void 0) return;
966
- m.preventDefault();
967
- const be = S.value[(pe + S.value.length) % S.value.length];
968
- be !== void 0 && (te(be, !1), ke(() => document.getElementById(Z(be))?.focus()));
985
+ function ve(v, q) {
986
+ const B = S.value.length - 1, K = { ArrowRight: q + 1, ArrowLeft: q - 1, Home: 0, End: B }[v.key];
987
+ if (K === void 0) return;
988
+ v.preventDefault();
989
+ const H = S.value[(K + S.value.length) % S.value.length];
990
+ H !== void 0 && (ae(H, !1), he(() => document.getElementById(J(H))?.focus()));
969
991
  }
970
- const R = P(!1);
971
- function A(m) {
972
- $.value?.contains(m.relatedTarget) || (R.value = !0);
992
+ const D = N(!1);
993
+ function A(v) {
994
+ w.value?.contains(v.relatedTarget) || (D.value = !0);
973
995
  }
974
- const N = w(() => Ma(a.value, e.requiredLocales)), ae = w(() => R.value && N.value.length > 0 ? n("core.form.i18n.required", { languages: U(N.value) }) : void 0), se = w(() => e.requiredLocales.length > 0 ? N.value.length === 0 : S.value.some(F)), W = w(() => S.value.filter((m) => !F(m) && !(ae.value && N.value.includes(m)))), me = w(() => F(b.value) && S.value.some((m) => m !== b.value && !F(m)));
996
+ const G = k(() => ja(a.value, e.requiredLocales)), ne = k(() => D.value && G.value.length > 0 ? n("core.form.i18n.required", { languages: Z(G.value) }) : void 0), re = k(() => e.requiredLocales.length > 0 ? G.value.length === 0 : S.value.some(F)), le = k(() => S.value.filter((v) => !F(v) && !(ne.value && G.value.includes(v)))), ke = k(() => F(g.value) && S.value.some((v) => v !== g.value && !F(v)));
975
997
  function we() {
976
- const m = G(b.value);
977
- a.value = { ...a.value, ...Object.fromEntries(S.value.filter((L) => !F(L)).map((L) => [L, m])) };
998
+ const v = I(g.value);
999
+ a.value = { ...a.value, ...Object.fromEntries(S.value.filter((q) => !F(q)).map((q) => [q, v])) };
978
1000
  }
979
- const _ = w(() => [l.value, b.value, ...S.value].find((m) => S.value.includes(m) && F(m))), M = w(() => S.value.filter((m) => m !== _.value)), ve = w(() => M.value.filter(F).length), v = P(!1), V = w(() => e.label && !y.value && _.value ? `${e.label} · ${E(_.value)}` : e.label);
980
- return t({ focus: () => x.value?.focus() }), (m, L) => (i(), q(he, J({ ...s(de)(e), label: V.value, error: e.error ?? ae.value, required: e.required || e.requiredLocales.length > 0 }, {
981
- value: s(y) ? se.value ? "written" : null : _.value ? G(_.value) : null,
1001
+ const X = k(() => [l.value, g.value, ...S.value].find((v) => S.value.includes(v) && F(v))), pe = k(() => S.value.filter((v) => v !== X.value)), L = k(() => pe.value.filter(F).length), d = N(!1), V = k(() => e.label && !x.value && X.value ? `${e.label} · ${E(X.value)}` : e.label);
1002
+ return t({ focus: () => h.value?.focus() }), (v, q) => (i(), O(ye, Q({ ...s(fe)(e), label: V.value, error: e.error ?? ne.value, required: e.required || e.requiredLocales.length > 0 }, {
1003
+ value: s(x) ? re.value ? "written" : null : X.value ? I(X.value) : null,
982
1004
  "row-layout": "stacked"
983
- }), X({
984
- default: c(({ id: D, describedby: pe, invalid: be }) => [
1005
+ }), ee({
1006
+ default: m(({ id: B, describedby: K, invalid: H }) => [
985
1007
  p("div", {
986
1008
  ref_key: "root",
987
- ref: $,
1009
+ ref: w,
988
1010
  class: "w-full",
989
1011
  onFocusout: A
990
1012
  }, [
991
1013
  p("div", {
992
- id: `${s(g)}-panel`,
1014
+ id: `${s(b)}-panel`,
993
1015
  role: "tabpanel",
994
- "aria-labelledby": Z(h.value)
1016
+ "aria-labelledby": J($.value)
995
1017
  }, [
996
1018
  p("div", {
997
1019
  class: j(["w-full", s(r)])
998
1020
  }, [
999
- e.multiline ? (i(), k("textarea", {
1021
+ e.multiline ? (i(), y("textarea", {
1000
1022
  key: 0,
1001
- id: D,
1023
+ id: B,
1002
1024
  ref_key: "field",
1003
- ref: x,
1004
- value: G(h.value),
1005
- lang: h.value,
1025
+ ref: h,
1026
+ value: I($.value),
1027
+ lang: $.value,
1006
1028
  name: e.name,
1007
1029
  rows: e.rows,
1008
1030
  placeholder: e.placeholder,
1009
1031
  maxlength: e.maxLength,
1010
1032
  disabled: e.disabled,
1011
1033
  "aria-required": e.required || void 0,
1012
- "aria-invalid": be || void 0,
1013
- "aria-describedby": pe,
1034
+ "aria-invalid": H || void 0,
1035
+ "aria-describedby": K,
1014
1036
  "data-test": "i18n-input",
1015
1037
  class: "block w-full resize-y border-0 bg-transparent px-0 py-1 text-body text-content-strong placeholder:text-content-disabled focus:outline-none focus:ring-0 disabled:cursor-not-allowed",
1016
- onInput: L[0] || (L[0] = (Te) => ne(h.value, Te.target.value))
1017
- }, null, 40, ja)) : (i(), k("input", {
1038
+ onInput: q[0] || (q[0] = (Te) => W($.value, Te.target.value))
1039
+ }, null, 40, Ia)) : (i(), y("input", {
1018
1040
  key: 1,
1019
- id: D,
1041
+ id: B,
1020
1042
  ref_key: "field",
1021
- ref: x,
1022
- value: G(h.value),
1023
- lang: h.value,
1043
+ ref: h,
1044
+ value: I($.value),
1045
+ lang: $.value,
1024
1046
  type: "text",
1025
1047
  name: e.name,
1026
1048
  placeholder: e.placeholder,
1027
1049
  maxlength: e.maxLength,
1028
1050
  disabled: e.disabled,
1029
1051
  "aria-required": e.required || void 0,
1030
- "aria-invalid": be || void 0,
1031
- "aria-describedby": pe,
1052
+ "aria-invalid": H || void 0,
1053
+ "aria-describedby": K,
1032
1054
  "data-test": "i18n-input",
1033
1055
  class: "block w-full min-w-0 border-0 bg-transparent px-0 py-1 text-body text-content-strong placeholder:text-content-disabled focus:outline-none focus:ring-0 disabled:cursor-not-allowed",
1034
- onInput: L[1] || (L[1] = (Te) => ne(h.value, Te.target.value))
1035
- }, null, 40, Ea))
1056
+ onInput: q[1] || (q[1] = (Te) => W($.value, Te.target.value))
1057
+ }, null, 40, Ga))
1036
1058
  ], 2)
1037
- ], 8, Oa),
1038
- W.value.length > 0 || me.value ? (i(), k("div", Ia, [
1039
- W.value.length > 0 ? (i(), k("p", Ga, C(s(n)("core.form.i18n.missing", { languages: U(W.value) })), 1)) : (i(), k("span", Na)),
1040
- me.value && !e.disabled ? (i(), k("button", {
1059
+ ], 8, Ea),
1060
+ le.value.length > 0 || ke.value ? (i(), y("div", Na, [
1061
+ le.value.length > 0 ? (i(), y("p", Pa, _(s(n)("core.form.i18n.missing", { languages: Z(le.value) })), 1)) : (i(), y("span", Ka)),
1062
+ ke.value && !e.disabled ? (i(), y("button", {
1041
1063
  key: 2,
1042
1064
  type: "button",
1043
1065
  "data-test": "i18n-copy",
1044
1066
  class: "shrink-0 cursor-pointer rounded-control bg-tint-soft px-2.5 py-1.5 text-footnote font-medium text-content-link transition-colors duration-motion-fast hover:bg-fill focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus",
1045
1067
  onClick: we
1046
- }, C(s(n)("core.form.i18n.copy", { language: E(b.value) })), 1)) : z("", !0)
1047
- ])) : z("", !0)
1068
+ }, _(s(n)("core.form.i18n.copy", { language: E(g.value) })), 1)) : T("", !0)
1069
+ ])) : T("", !0)
1048
1070
  ], 544)
1049
1071
  ]),
1050
- labelTrailing: c(() => [
1072
+ labelTrailing: m(() => [
1051
1073
  p("div", {
1052
1074
  role: "tablist",
1053
1075
  "aria-label": s(n)("core.form.i18n.languages"),
1054
1076
  class: "flex shrink-0 gap-0.5 rounded-control bg-fill p-0.5",
1055
1077
  "data-test": "i18n-tabs"
1056
1078
  }, [
1057
- (i(!0), k(re, null, xe(S.value, (D, pe) => (i(), k("button", {
1058
- id: Z(D),
1059
- key: D,
1079
+ (i(!0), y(ue, null, xe(S.value, (B, K) => (i(), y("button", {
1080
+ id: J(B),
1081
+ key: B,
1060
1082
  type: "button",
1061
1083
  role: "tab",
1062
- "aria-selected": D === h.value,
1063
- tabindex: D === h.value ? 0 : -1,
1064
- "aria-controls": `${s(g)}-panel`,
1065
- "aria-label": s(n)(F(D) ? "core.form.i18n.tab_written" : "core.form.i18n.tab_empty", { language: I(D) }),
1066
- title: I(D),
1067
- class: j(["flex min-h-7 cursor-pointer items-center gap-1.5 rounded-control px-2.5 py-1 text-footnote font-semibold transition-colors duration-motion-fast focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus", D === h.value ? "bg-segment-selected text-content-strong shadow-sm" : "text-content-muted hover:text-content-strong"]),
1068
- onClick: (be) => te(D, !0),
1069
- onKeydown: (be) => fe(be, pe)
1084
+ "aria-selected": B === $.value,
1085
+ tabindex: B === $.value ? 0 : -1,
1086
+ "aria-controls": `${s(b)}-panel`,
1087
+ "aria-label": s(n)(F(B) ? "core.form.i18n.tab_written" : "core.form.i18n.tab_empty", { language: R(B) }),
1088
+ title: R(B),
1089
+ class: j(["flex min-h-7 cursor-pointer items-center gap-1.5 rounded-control px-2.5 py-1 text-footnote font-semibold transition-colors duration-motion-fast focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus", B === $.value ? "bg-segment-selected text-content-strong shadow-sm" : "text-content-muted hover:text-content-strong"]),
1090
+ onClick: (H) => ae(B, !0),
1091
+ onKeydown: (H) => ve(H, K)
1070
1092
  }, [
1071
- Y(C(E(D)) + " ", 1),
1093
+ Y(_(E(B)) + " ", 1),
1072
1094
  p("span", {
1073
1095
  "aria-hidden": "true",
1074
- class: j(["size-1.5 rounded-full", F(D) ? "bg-status-success-solid" : ae.value && N.value.includes(D) ? "bg-content-destructive" : "bg-content-disabled"]),
1096
+ class: j(["size-1.5 rounded-full", F(B) ? "bg-status-success-solid" : ne.value && G.value.includes(B) ? "bg-content-destructive" : "bg-content-disabled"]),
1075
1097
  "data-test": "i18n-dot",
1076
- "data-state": F(D) ? "written" : ae.value && N.value.includes(D) ? "required" : "empty"
1077
- }, null, 10, Aa)
1078
- ], 42, Ka))), 128))
1079
- ], 8, Pa)
1098
+ "data-state": F(B) ? "written" : ne.value && G.value.includes(B) ? "required" : "empty"
1099
+ }, null, 10, Ua)
1100
+ ], 42, Ha))), 128))
1101
+ ], 8, Aa)
1080
1102
  ]),
1081
1103
  _: 2
1082
1104
  }, [
1083
- _.value ? {
1105
+ X.value ? {
1084
1106
  name: "readonly",
1085
- fn: c(() => [
1086
- p("div", Ha, [
1087
- p("p", Ua, C(G(_.value)), 1),
1088
- M.value.length > 0 ? (i(), k(re, { key: 0 }, [
1107
+ fn: m(() => [
1108
+ p("div", Ya, [
1109
+ p("p", Wa, _(I(X.value)), 1),
1110
+ pe.value.length > 0 ? (i(), y(ue, { key: 0 }, [
1089
1111
  p("button", {
1090
1112
  type: "button",
1091
- "aria-expanded": v.value,
1113
+ "aria-expanded": d.value,
1092
1114
  class: "mt-1.5 flex w-full cursor-pointer items-center gap-2 text-left text-footnote text-content-muted focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus",
1093
- onClick: L[2] || (L[2] = (D) => v.value = !v.value)
1115
+ onClick: q[2] || (q[2] = (B) => d.value = !d.value)
1094
1116
  }, [
1095
- p("span", Wa, C(s(n)("core.form.i18n.more", { count: M.value.length, filled: ve.value })), 1),
1096
- O(s(Q), {
1117
+ p("span", Za, _(s(n)("core.form.i18n.more", { count: pe.value.length, filled: L.value })), 1),
1118
+ M(s(te), {
1097
1119
  name: "arrowRightSLine",
1098
1120
  size: 16,
1099
- class: j(["shrink-0 transition-transform duration-motion-fast", v.value ? "rotate-90" : ""])
1121
+ class: j(["shrink-0 transition-transform duration-motion-fast", d.value ? "rotate-90" : ""])
1100
1122
  }, null, 8, ["class"])
1101
- ], 8, Ya),
1102
- v.value ? (i(), k("dl", Ja, [
1103
- (i(!0), k(re, null, xe(M.value, (D) => (i(), k("div", {
1104
- key: D,
1123
+ ], 8, Ja),
1124
+ d.value ? (i(), y("dl", Xa, [
1125
+ (i(!0), y(ue, null, xe(pe.value, (B) => (i(), y("div", {
1126
+ key: B,
1105
1127
  class: "flex gap-2 text-body"
1106
1128
  }, [
1107
1129
  p("dt", {
1108
1130
  class: "w-8 shrink-0 text-footnote font-semibold leading-6 text-content-muted",
1109
- title: I(D)
1110
- }, C(E(D)), 9, Xa),
1131
+ title: R(B)
1132
+ }, _(E(B)), 9, Qa),
1111
1133
  p("dd", {
1112
- class: j(["min-w-0 flex-1 whitespace-pre-line break-words", F(D) ? "text-content-strong" : "text-content-disabled"])
1113
- }, C(F(D) ? G(D) : s(n)("core.state.no_value")), 3)
1134
+ class: j(["min-w-0 flex-1 whitespace-pre-line break-words", F(B) ? "text-content-strong" : "text-content-disabled"])
1135
+ }, _(F(B) ? I(B) : s(n)("core.state.no_value")), 3)
1114
1136
  ]))), 128))
1115
- ])) : z("", !0)
1116
- ], 64)) : z("", !0)
1137
+ ])) : T("", !0)
1138
+ ], 64)) : T("", !0)
1117
1139
  ])
1118
1140
  ]),
1119
1141
  key: "0"
1120
1142
  } : void 0,
1121
- m.$slots.trailing ? {
1143
+ v.$slots.trailing ? {
1122
1144
  name: "trailing",
1123
- fn: c(() => [
1124
- B(m.$slots, "trailing")
1145
+ fn: m(() => [
1146
+ C(v.$slots, "trailing")
1125
1147
  ]),
1126
1148
  key: "1"
1127
1149
  } : void 0
1128
1150
  ]), 1040, ["value"]));
1129
1151
  }
1130
- }), Bo = /* @__PURE__ */ K({
1152
+ }), To = /* @__PURE__ */ P({
1131
1153
  __name: "MoneyField",
1132
- props: /* @__PURE__ */ oe(/* @__PURE__ */ ue({
1154
+ props: /* @__PURE__ */ ce({
1133
1155
  label: {},
1134
1156
  labelHidden: { type: Boolean },
1135
1157
  hint: {},
@@ -1140,54 +1162,56 @@ const Oa = ["id", "aria-labelledby"], ja = ["id", "value", "lang", "name", "rows
1140
1162
  lockedReason: {},
1141
1163
  presentation: {},
1142
1164
  name: {},
1165
+ modelValue: {},
1143
1166
  currency: {},
1144
1167
  decimals: {},
1168
+ blankZero: { type: Boolean },
1145
1169
  negative: { type: Boolean },
1146
1170
  width: {}
1147
- }, { ...ce, decimals: 2, negative: !1, width: "sm" }), {
1148
- modelValue: { default: null },
1149
- modelModifiers: {}
1150
- }),
1151
- emits: ["update:modelValue"],
1152
- setup(o, { expose: t }) {
1153
- const e = o, a = le(o, "modelValue"), n = H("field");
1154
- return t({ focus: () => n.value?.focus() }), (l, u) => (i(), q(jt, J({
1171
+ }, { ...me, modelValue: void 0, decimals: 2, blankZero: !1, negative: !1, width: "sm" }),
1172
+ emits: ["update:modelValue", "focus", "blur"],
1173
+ setup(o, { expose: t, emit: e }) {
1174
+ const a = o, n = e, l = U("field");
1175
+ return t({ focus: () => l.value?.focus() }), (u, c) => (i(), O(jt, Q({
1155
1176
  ref_key: "field",
1156
- ref: n,
1157
- modelValue: a.value,
1158
- "onUpdate:modelValue": u[0] || (u[0] = (d) => a.value = d)
1159
- }, s(de)(e), {
1160
- decimals: e.decimals,
1161
- negative: e.negative,
1162
- suffix: e.currency,
1163
- width: e.width
1164
- }), X({ _: 2 }, [
1165
- l.$slots.trailing ? {
1177
+ ref: l,
1178
+ "model-value": a.modelValue,
1179
+ "onUpdate:modelValue": c[0] || (c[0] = (b) => n("update:modelValue", b))
1180
+ }, s(fe)(a), {
1181
+ decimals: a.decimals,
1182
+ negative: a.negative,
1183
+ "blank-zero": a.blankZero,
1184
+ suffix: a.currency,
1185
+ width: a.width,
1186
+ onFocus: c[1] || (c[1] = (b) => n("focus", b)),
1187
+ onBlur: c[2] || (c[2] = (b) => n("blur", b))
1188
+ }), ee({ _: 2 }, [
1189
+ u.$slots.trailing ? {
1166
1190
  name: "trailing",
1167
- fn: c(() => [
1168
- B(l.$slots, "trailing")
1191
+ fn: m(() => [
1192
+ C(u.$slots, "trailing")
1169
1193
  ]),
1170
1194
  key: "0"
1171
1195
  } : void 0,
1172
- l.$slots.labelTrailing ? {
1196
+ u.$slots.labelTrailing ? {
1173
1197
  name: "labelTrailing",
1174
- fn: c(() => [
1175
- B(l.$slots, "labelTrailing")
1198
+ fn: m(() => [
1199
+ C(u.$slots, "labelTrailing")
1176
1200
  ]),
1177
1201
  key: "1"
1178
1202
  } : void 0,
1179
- l.$slots.readonly ? {
1203
+ u.$slots.readonly ? {
1180
1204
  name: "readonly",
1181
- fn: c(() => [
1182
- B(l.$slots, "readonly")
1205
+ fn: m(() => [
1206
+ C(u.$slots, "readonly")
1183
1207
  ]),
1184
1208
  key: "2"
1185
1209
  } : void 0
1186
- ]), 1040, ["modelValue", "decimals", "negative", "suffix", "width"]));
1210
+ ]), 1040, ["model-value", "decimals", "negative", "blank-zero", "suffix", "width"]));
1187
1211
  }
1188
- }), Qa = { class: "flex flex-col gap-2" }, Za = ["onClick"], Lo = /* @__PURE__ */ K({
1212
+ }), el = { class: "flex flex-col gap-2" }, tl = ["onClick"], zo = /* @__PURE__ */ P({
1189
1213
  __name: "MonthYearField",
1190
- props: /* @__PURE__ */ oe(/* @__PURE__ */ ue({
1214
+ props: /* @__PURE__ */ se(/* @__PURE__ */ ce({
1191
1215
  label: {},
1192
1216
  labelHidden: { type: Boolean },
1193
1217
  hint: {},
@@ -1200,7 +1224,7 @@ const Oa = ["id", "aria-labelledby"], ja = ["id", "value", "lang", "name", "rows
1200
1224
  name: {},
1201
1225
  minYear: {},
1202
1226
  maxYear: {}
1203
- }, { ...ce, minYear: 1970, maxYear: () => (/* @__PURE__ */ new Date()).getFullYear() + 1 }), {
1227
+ }, { ...me, minYear: 1970, maxYear: () => (/* @__PURE__ */ new Date()).getFullYear() + 1 }), {
1204
1228
  month: { default: null },
1205
1229
  monthModifiers: {},
1206
1230
  year: { default: null },
@@ -1208,58 +1232,58 @@ const Oa = ["id", "aria-labelledby"], ja = ["id", "value", "lang", "name", "rows
1208
1232
  }),
1209
1233
  emits: ["update:month", "update:year"],
1210
1234
  setup(o) {
1211
- const t = o, e = le(o, "month"), a = le(o, "year"), { t: n } = ee(), l = w(() => e.value !== null && e.value >= 1 && e.value <= 12), u = ($, y) => n(`core.form.months.${y}.${$}`), d = w(() => l.value && a.value !== null ? n("core.form.months.with_year", { month: u(e.value, "long"), year: a.value }) : a.value !== null ? String(a.value) : l.value ? u(e.value, "long") : "");
1212
- function g($, y) {
1213
- e.value = $.month, a.value = $.year, y();
1235
+ const t = o, e = ie(o, "month"), a = ie(o, "year"), { t: n } = oe(), l = k(() => e.value !== null && e.value >= 1 && e.value <= 12), u = (w, x) => n(`core.form.months.${x}.${w}`), c = k(() => l.value && a.value !== null ? n("core.form.months.with_year", { month: u(e.value, "long"), year: a.value }) : a.value !== null ? String(a.value) : l.value ? u(e.value, "long") : "");
1236
+ function b(w, x) {
1237
+ e.value = w.month, a.value = w.year, x();
1214
1238
  }
1215
- function x($) {
1216
- e.value = null, a.value = null, $();
1239
+ function h(w) {
1240
+ e.value = null, a.value = null, w();
1217
1241
  }
1218
- return ($, y) => (i(), q(he, J(s(de)(t), {
1219
- value: d.value || null
1220
- }), X({
1221
- default: c(({ id: r, describedby: f, invalid: b }) => [
1222
- O(Pe, {
1223
- label: t.label ?? d.value,
1242
+ return (w, x) => (i(), O(ye, Q(s(fe)(t), {
1243
+ value: c.value || null
1244
+ }), ee({
1245
+ default: m(({ id: r, describedby: f, invalid: g }) => [
1246
+ M(Pe, {
1247
+ label: t.label ?? c.value,
1224
1248
  width: "sm",
1225
1249
  placement: "bottom-start",
1226
1250
  arrow: !1
1227
1251
  }, {
1228
- trigger: c(({ toggle: S, presented: T }) => [
1229
- O(ot, J({ id: r, "aria-describedby": f }, {
1230
- expanded: T,
1252
+ trigger: m(({ toggle: S, presented: z }) => [
1253
+ M(ot, Q({ id: r, "aria-describedby": f }, {
1254
+ expanded: z,
1231
1255
  disabled: t.disabled,
1232
- invalid: b,
1256
+ invalid: g,
1233
1257
  onClick: S
1234
1258
  }), {
1235
- default: c(() => [
1236
- d.value ? (i(), k(re, { key: 0 }, [
1237
- Y(C(d.value), 1),
1238
- O(s(Q), {
1259
+ default: m(() => [
1260
+ c.value ? (i(), y(ue, { key: 0 }, [
1261
+ Y(_(c.value), 1),
1262
+ M(s(te), {
1239
1263
  name: "calendarLine",
1240
1264
  size: 16,
1241
1265
  class: "ml-2 shrink-0 text-content-muted"
1242
1266
  })
1243
- ], 64)) : z("", !0)
1267
+ ], 64)) : T("", !0)
1244
1268
  ]),
1245
1269
  _: 1
1246
1270
  }, 16, ["expanded", "disabled", "invalid", "onClick"])
1247
1271
  ]),
1248
- default: c(({ dismiss: S }) => [
1249
- p("div", Qa, [
1250
- O(Bt, {
1272
+ default: m(({ dismiss: S }) => [
1273
+ p("div", el, [
1274
+ M(Bt, {
1251
1275
  month: e.value,
1252
1276
  year: a.value,
1253
1277
  "min-year": t.minYear,
1254
1278
  "max-year": t.maxYear,
1255
- onPick: (T) => g(T, S)
1279
+ onPick: (z) => b(z, S)
1256
1280
  }, null, 8, ["month", "year", "min-year", "max-year", "onPick"]),
1257
- l.value || a.value !== null ? (i(), k("button", {
1281
+ l.value || a.value !== null ? (i(), y("button", {
1258
1282
  key: 0,
1259
1283
  type: "button",
1260
1284
  class: "cursor-pointer self-start rounded-control px-1 text-footnote text-content-link",
1261
- onClick: (T) => x(S)
1262
- }, C(s(n)("core.form.select.clear")), 9, Za)) : z("", !0)
1285
+ onClick: (z) => h(S)
1286
+ }, _(s(n)("core.form.select.clear")), 9, tl)) : T("", !0)
1263
1287
  ])
1264
1288
  ]),
1265
1289
  _: 2
@@ -1267,32 +1291,32 @@ const Oa = ["id", "aria-labelledby"], ja = ["id", "value", "lang", "name", "rows
1267
1291
  ]),
1268
1292
  _: 2
1269
1293
  }, [
1270
- $.$slots.trailing ? {
1294
+ w.$slots.trailing ? {
1271
1295
  name: "trailing",
1272
- fn: c(() => [
1273
- B($.$slots, "trailing")
1296
+ fn: m(() => [
1297
+ C(w.$slots, "trailing")
1274
1298
  ]),
1275
1299
  key: "0"
1276
1300
  } : void 0,
1277
- $.$slots.labelTrailing ? {
1301
+ w.$slots.labelTrailing ? {
1278
1302
  name: "labelTrailing",
1279
- fn: c(() => [
1280
- B($.$slots, "labelTrailing")
1303
+ fn: m(() => [
1304
+ C(w.$slots, "labelTrailing")
1281
1305
  ]),
1282
1306
  key: "1"
1283
1307
  } : void 0,
1284
- $.$slots.readonly ? {
1308
+ w.$slots.readonly ? {
1285
1309
  name: "readonly",
1286
- fn: c(() => [
1287
- B($.$slots, "readonly")
1310
+ fn: m(() => [
1311
+ C(w.$slots, "readonly")
1288
1312
  ]),
1289
1313
  key: "2"
1290
1314
  } : void 0
1291
1315
  ]), 1040, ["value"]));
1292
1316
  }
1293
- }), el = { class: "flex min-w-0 flex-wrap items-center gap-1.5 py-0.5" }, tl = { class: "truncate" }, al = ["disabled", "aria-label", "onClick"], ll = ["id", "disabled", "aria-expanded", "aria-invalid", "aria-describedby", "aria-busy"], ol = ["id", "disabled", "aria-invalid", "aria-describedby", "aria-busy", "onClick"], nl = { class: "max-h-72 overflow-y-auto" }, sl = { class: "flex items-center justify-between gap-2" }, Qe = "inline-flex min-h-7 cursor-pointer items-center gap-1 rounded-control bg-fill px-2.5 py-1 text-body text-content-muted hover:bg-fill-strong focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus disabled:cursor-not-allowed disabled:opacity-45", To = /* @__PURE__ */ K({
1317
+ }), al = { class: "flex min-w-0 flex-wrap items-center gap-1.5 py-0.5" }, ll = { class: "truncate" }, ol = ["disabled", "aria-label", "onClick"], nl = ["id", "disabled", "aria-expanded", "aria-invalid", "aria-describedby", "aria-busy"], sl = ["id", "disabled", "aria-invalid", "aria-describedby", "aria-busy", "onClick"], rl = { class: "max-h-72 overflow-y-auto" }, il = { class: "flex items-center justify-between gap-2" }, Xe = "inline-flex min-h-7 cursor-pointer items-center gap-1 rounded-control bg-fill px-2.5 py-1 text-body text-content-muted hover:bg-fill-strong focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus disabled:cursor-not-allowed disabled:opacity-45", Do = /* @__PURE__ */ P({
1294
1318
  __name: "MultiSelectField",
1295
- props: /* @__PURE__ */ oe(/* @__PURE__ */ ue({
1319
+ props: /* @__PURE__ */ se(/* @__PURE__ */ ce({
1296
1320
  label: {},
1297
1321
  labelHidden: { type: Boolean },
1298
1322
  hint: {},
@@ -1307,114 +1331,114 @@ const Oa = ["id", "aria-labelledby"], ja = ["id", "value", "lang", "name", "rows
1307
1331
  selected: {},
1308
1332
  placeholder: {},
1309
1333
  searchFrom: {}
1310
- }, { ...ce, selected: () => [], placeholder: void 0, searchFrom: 9 }), {
1334
+ }, { ...me, selected: () => [], placeholder: void 0, searchFrom: 9 }), {
1311
1335
  modelValue: { default: () => [] },
1312
1336
  modelModifiers: {}
1313
1337
  }),
1314
1338
  emits: ["update:modelValue"],
1315
1339
  setup(o) {
1316
- const t = o, e = le(o, "modelValue"), { t: a } = ee(), n = Ne(), l = H("sheet"), u = P(!1), d = It(() => t.options, (r) => {
1317
- const f = e.value.filter((b) => r.some((S) => S.value === b));
1340
+ const t = o, e = ie(o, "modelValue"), { t: a } = oe(), n = Ne(), l = U("sheet"), u = N(!1), c = It(() => t.options, (r) => {
1341
+ const f = e.value.filter((g) => r.some((S) => S.value === g));
1318
1342
  f.length !== e.value.length && (e.value = f);
1319
- }), g = w(() => e.value.flatMap((r) => {
1320
- const f = d.known.value.find((b) => b.value === r) ?? t.selected.find((b) => b.value === r);
1343
+ }), b = k(() => e.value.flatMap((r) => {
1344
+ const f = c.known.value.find((g) => g.value === r) ?? t.selected.find((g) => g.value === r);
1321
1345
  return f ? [f] : [];
1322
- })), x = w(() => t.placeholder ?? a("core.form.select.choose"));
1323
- function $(r) {
1346
+ })), h = k(() => t.placeholder ?? a("core.form.select.choose"));
1347
+ function w(r) {
1324
1348
  r !== null && (e.value = e.value.includes(r) ? e.value.filter((f) => f !== r) : [...e.value, r]);
1325
1349
  }
1326
- const y = (r) => e.value = e.value.filter((f) => f !== r);
1327
- return (r, f) => (i(), q(he, J(s(de)(t), {
1328
- value: g.value.length ? g.value.map((b) => b.label).join(", ") : null,
1350
+ const x = (r) => e.value = e.value.filter((f) => f !== r);
1351
+ return (r, f) => (i(), O(ye, Q(s(fe)(t), {
1352
+ value: b.value.length ? b.value.map((g) => g.label).join(", ") : null,
1329
1353
  "row-layout": "stacked"
1330
- }), X({
1331
- default: c(({ id: b, describedby: S, invalid: T }) => [
1332
- p("div", el, [
1333
- (i(!0), k(re, null, xe(g.value, (h) => (i(), k("span", {
1334
- key: String(h.value),
1354
+ }), ee({
1355
+ default: m(({ id: g, describedby: S, invalid: z }) => [
1356
+ p("div", al, [
1357
+ (i(!0), y(ue, null, xe(b.value, ($) => (i(), y("span", {
1358
+ key: String($.value),
1335
1359
  "data-test": "chip",
1336
1360
  class: "inline-flex min-h-7 max-w-full items-center gap-1 rounded-full bg-tint-soft pl-3 pr-1 text-subheadline font-medium text-content-link"
1337
1361
  }, [
1338
- p("span", tl, C(h.label), 1),
1362
+ p("span", ll, _($.label), 1),
1339
1363
  p("button", {
1340
1364
  type: "button",
1341
1365
  disabled: t.disabled,
1342
- "aria-label": `${s(a)("core.form.select.clear")}: ${h.label}`,
1366
+ "aria-label": `${s(a)("core.form.select.clear")}: ${$.label}`,
1343
1367
  class: "flex size-5 shrink-0 cursor-pointer items-center justify-center rounded-full hover:bg-fill focus-visible:outline-2 focus-visible:outline-border-focus disabled:cursor-not-allowed",
1344
- onClick: (G) => y(h.value)
1368
+ onClick: (I) => x($.value)
1345
1369
  }, [
1346
- O(s(Q), {
1370
+ M(s(te), {
1347
1371
  name: "close",
1348
1372
  size: 12
1349
1373
  })
1350
- ], 8, al)
1374
+ ], 8, ol)
1351
1375
  ]))), 128)),
1352
- s(n) ? (i(), k("button", {
1376
+ s(n) ? (i(), y("button", {
1353
1377
  key: 0,
1354
- id: b,
1378
+ id: g,
1355
1379
  type: "button",
1356
1380
  disabled: t.disabled,
1357
1381
  "aria-haspopup": "dialog",
1358
1382
  "aria-expanded": u.value,
1359
- "aria-invalid": T || void 0,
1383
+ "aria-invalid": z || void 0,
1360
1384
  "aria-describedby": S,
1361
- "aria-busy": s(d).loading.value || void 0,
1362
- class: j(Qe),
1363
- onClick: f[0] || (f[0] = (h) => l.value?.present())
1385
+ "aria-busy": s(c).loading.value || void 0,
1386
+ class: j(Xe),
1387
+ onClick: f[0] || (f[0] = ($) => l.value?.present())
1364
1388
  }, [
1365
- s(d).loading.value ? (i(), q(s(Q), {
1389
+ s(c).loading.value ? (i(), O(s(te), {
1366
1390
  key: 0,
1367
1391
  name: "loader4Line",
1368
1392
  size: 14,
1369
1393
  class: "shrink-0 animate-spin"
1370
- })) : z("", !0),
1371
- Y(" " + C(g.value.length ? s(a)("core.actions.edit") : x.value), 1)
1372
- ], 8, ll)) : (i(), q(Pe, {
1394
+ })) : T("", !0),
1395
+ Y(" " + _(b.value.length ? s(a)("core.actions.edit") : h.value), 1)
1396
+ ], 8, nl)) : (i(), O(Pe, {
1373
1397
  key: 1,
1374
- label: t.label ?? x.value,
1398
+ label: t.label ?? h.value,
1375
1399
  width: "lg",
1376
1400
  "match-trigger-width": "",
1377
1401
  placement: "bottom-start",
1378
1402
  arrow: !1
1379
1403
  }, {
1380
- trigger: c(({ toggle: h, attrs: G }) => [
1381
- p("button", J({
1382
- id: b,
1404
+ trigger: m(({ toggle: $, attrs: I }) => [
1405
+ p("button", Q({
1406
+ id: g,
1383
1407
  type: "button"
1384
- }, G, {
1408
+ }, I, {
1385
1409
  "aria-haspopup": "listbox",
1386
1410
  disabled: t.disabled,
1387
- "aria-invalid": T || void 0,
1411
+ "aria-invalid": z || void 0,
1388
1412
  "aria-describedby": S,
1389
- "aria-busy": s(d).loading.value || void 0,
1390
- class: Qe,
1391
- onClick: h
1413
+ "aria-busy": s(c).loading.value || void 0,
1414
+ class: Xe,
1415
+ onClick: $
1392
1416
  }), [
1393
- s(d).loading.value ? (i(), q(s(Q), {
1417
+ s(c).loading.value ? (i(), O(s(te), {
1394
1418
  key: 0,
1395
1419
  name: "loader4Line",
1396
1420
  size: 14,
1397
1421
  class: "shrink-0 animate-spin"
1398
- })) : z("", !0),
1399
- Y(" " + C(g.value.length ? s(a)("core.actions.edit") : x.value), 1)
1400
- ], 16, ol)
1422
+ })) : T("", !0),
1423
+ Y(" " + _(b.value.length ? s(a)("core.actions.edit") : h.value), 1)
1424
+ ], 16, sl)
1401
1425
  ]),
1402
- default: c(() => [
1403
- p("div", nl, [
1404
- O(We, {
1405
- options: s(d).rows.value,
1406
- status: s(d).status.value,
1426
+ default: m(() => [
1427
+ p("div", rl, [
1428
+ M(We, {
1429
+ options: s(c).rows.value,
1430
+ status: s(c).status.value,
1407
1431
  "model-value": e.value,
1408
1432
  multiple: "",
1409
1433
  "search-from": t.searchFrom,
1410
1434
  presentation: "plain",
1411
- onSelect: $,
1412
- onRetry: f[1] || (f[1] = (h) => s(d).reload())
1413
- }, X({ _: 2 }, [
1435
+ onSelect: w,
1436
+ onRetry: f[1] || (f[1] = ($) => s(c).reload())
1437
+ }, ee({ _: 2 }, [
1414
1438
  r.$slots.option ? {
1415
1439
  name: "option",
1416
- fn: c((h) => [
1417
- B(r.$slots, "option", Ve(qe(h)))
1440
+ fn: m(($) => [
1441
+ C(r.$slots, "option", Ve(qe($)))
1418
1442
  ]),
1419
1443
  key: "0"
1420
1444
  } : void 0
@@ -1424,88 +1448,88 @@ const Oa = ["id", "aria-labelledby"], ja = ["id", "value", "lang", "name", "rows
1424
1448
  _: 2
1425
1449
  }, 1032, ["label"]))
1426
1450
  ]),
1427
- s(n) ? (i(), q(Et, {
1451
+ s(n) ? (i(), O(Et, {
1428
1452
  key: 0,
1429
1453
  ref_key: "sheet",
1430
1454
  ref: l,
1431
- title: t.label ?? x.value,
1455
+ title: t.label ?? h.value,
1432
1456
  grouped: "",
1433
- onPresented: f[5] || (f[5] = (h) => u.value = !0),
1434
- onDismissed: f[6] || (f[6] = (h) => u.value = !1)
1457
+ onPresented: f[5] || (f[5] = ($) => u.value = !0),
1458
+ onDismissed: f[6] || (f[6] = ($) => u.value = !1)
1435
1459
  }, {
1436
- footer: c(() => [
1437
- p("div", sl, [
1438
- O(ye, {
1460
+ footer: m(() => [
1461
+ p("div", il, [
1462
+ M(ge, {
1439
1463
  prominence: "plain",
1440
1464
  disabled: e.value.length === 0,
1441
- onClick: f[3] || (f[3] = (h) => e.value = [])
1465
+ onClick: f[3] || (f[3] = ($) => e.value = [])
1442
1466
  }, {
1443
- default: c(() => [
1444
- Y(C(s(a)("core.form.select.clear")), 1)
1467
+ default: m(() => [
1468
+ Y(_(s(a)("core.form.select.clear")), 1)
1445
1469
  ]),
1446
1470
  _: 1
1447
1471
  }, 8, ["disabled"]),
1448
- O(ye, {
1472
+ M(ge, {
1449
1473
  prominence: "primary",
1450
- onClick: f[4] || (f[4] = (h) => l.value?.dismiss())
1474
+ onClick: f[4] || (f[4] = ($) => l.value?.dismiss())
1451
1475
  }, {
1452
- default: c(() => [
1453
- Y(C(s(a)("core.form.select.done")), 1)
1476
+ default: m(() => [
1477
+ Y(_(s(a)("core.form.select.done")), 1)
1454
1478
  ]),
1455
1479
  _: 1
1456
1480
  })
1457
1481
  ])
1458
1482
  ]),
1459
- default: c(() => [
1460
- O(We, {
1461
- options: s(d).rows.value,
1462
- status: s(d).status.value,
1483
+ default: m(() => [
1484
+ M(We, {
1485
+ options: s(c).rows.value,
1486
+ status: s(c).status.value,
1463
1487
  "model-value": e.value,
1464
1488
  multiple: "",
1465
1489
  "search-from": t.searchFrom,
1466
- onSelect: $,
1467
- onRetry: f[2] || (f[2] = (h) => s(d).reload())
1468
- }, X({ _: 2 }, [
1490
+ onSelect: w,
1491
+ onRetry: f[2] || (f[2] = ($) => s(c).reload())
1492
+ }, ee({ _: 2 }, [
1469
1493
  r.$slots.option ? {
1470
1494
  name: "option",
1471
- fn: c((h) => [
1472
- B(r.$slots, "option", Ve(qe(h)))
1495
+ fn: m(($) => [
1496
+ C(r.$slots, "option", Ve(qe($)))
1473
1497
  ]),
1474
1498
  key: "0"
1475
1499
  } : void 0
1476
1500
  ]), 1032, ["options", "status", "model-value", "search-from"])
1477
1501
  ]),
1478
1502
  _: 3
1479
- }, 8, ["title"])) : z("", !0)
1503
+ }, 8, ["title"])) : T("", !0)
1480
1504
  ]),
1481
1505
  _: 2
1482
1506
  }, [
1483
1507
  r.$slots.trailing ? {
1484
1508
  name: "trailing",
1485
- fn: c(() => [
1486
- B(r.$slots, "trailing")
1509
+ fn: m(() => [
1510
+ C(r.$slots, "trailing")
1487
1511
  ]),
1488
1512
  key: "0"
1489
1513
  } : void 0,
1490
1514
  r.$slots.labelTrailing ? {
1491
1515
  name: "labelTrailing",
1492
- fn: c(() => [
1493
- B(r.$slots, "labelTrailing")
1516
+ fn: m(() => [
1517
+ C(r.$slots, "labelTrailing")
1494
1518
  ]),
1495
1519
  key: "1"
1496
1520
  } : void 0,
1497
1521
  r.$slots.readonly ? {
1498
1522
  name: "readonly",
1499
- fn: c(() => [
1500
- B(r.$slots, "readonly")
1523
+ fn: m(() => [
1524
+ C(r.$slots, "readonly")
1501
1525
  ]),
1502
1526
  key: "2"
1503
1527
  } : void 0
1504
1528
  ]), 1040, ["value"]));
1505
1529
  }
1506
- }), rl = ["aria-label"], il = ["src"], ul = { class: "flex flex-wrap items-center gap-3" }, dl = ["id", "accept", "disabled", "aria-describedby", "aria-invalid"], cl = ["aria-label"], fl = ["src"], Do = /* @__PURE__ */ K({
1530
+ }), ul = ["aria-label"], dl = ["src"], cl = { class: "flex flex-wrap items-center gap-3" }, fl = ["id", "accept", "disabled", "aria-describedby", "aria-invalid"], ml = ["aria-label"], vl = ["src"], Vo = /* @__PURE__ */ P({
1507
1531
  __name: "PhotoField",
1508
- props: /* @__PURE__ */ oe(/* @__PURE__ */ ue({
1532
+ props: /* @__PURE__ */ se(/* @__PURE__ */ ce({
1509
1533
  label: {},
1510
1534
  labelHidden: { type: Boolean },
1511
1535
  hint: {},
@@ -1518,59 +1542,59 @@ const Oa = ["id", "aria-labelledby"], ja = ["id", "value", "lang", "name", "rows
1518
1542
  name: {},
1519
1543
  accept: {},
1520
1544
  maxSize: {}
1521
- }, { ...ce, accept: () => ["image/jpeg", "image/png", "image/webp", "image/gif"], maxSize: 5 * 1024 * 1024 }), {
1545
+ }, { ...me, accept: () => ["image/jpeg", "image/png", "image/webp", "image/gif"], maxSize: 5 * 1024 * 1024 }), {
1522
1546
  modelValue: { default: null },
1523
1547
  modelModifiers: {}
1524
1548
  }),
1525
1549
  emits: ["update:modelValue"],
1526
1550
  setup(o) {
1527
- const t = o, e = le(o, "modelValue"), { t: a } = ee(), n = H("chooser"), l = P(null), u = P(null);
1528
- function d() {
1551
+ const t = o, e = ie(o, "modelValue"), { t: a } = oe(), n = U("chooser"), l = N(null), u = N(null);
1552
+ function c() {
1529
1553
  u.value && URL.revokeObjectURL(u.value), u.value = null;
1530
1554
  }
1531
- ie(
1555
+ de(
1532
1556
  e,
1533
1557
  (r) => {
1534
- d(), r instanceof File && (u.value = URL.createObjectURL(r)), r === null && n.value && (n.value.value = "");
1558
+ c(), r instanceof File && (u.value = URL.createObjectURL(r)), r === null && n.value && (n.value.value = "");
1535
1559
  },
1536
1560
  { immediate: !0 }
1537
- ), Ee(d);
1538
- const g = w(() => e.value instanceof File ? u.value : e.value), x = H("viewer"), $ = w(() => g.value ? [{ src: g.value, alt: t.label ?? a("core.viewer.label"), downloadName: e.value instanceof File ? e.value.name : void 0 }] : []);
1539
- function y(r) {
1561
+ ), Ee(c);
1562
+ const b = k(() => e.value instanceof File ? u.value : e.value), h = U("viewer"), w = k(() => b.value ? [{ src: b.value, alt: t.label ?? a("core.viewer.label"), downloadName: e.value instanceof File ? e.value.name : void 0 }] : []);
1563
+ function x(r) {
1540
1564
  if (!r) return;
1541
1565
  const f = nt(r, { accept: t.accept, maxSize: t.maxSize });
1542
1566
  f ? l.value = f === "invalid_type" ? a("core.form.file.invalid_type") : a("core.form.file.too_large", { size: Be(t.maxSize) }) : (l.value = null, e.value = r);
1543
1567
  }
1544
- return (r, f) => (i(), q(he, J({ ...s(de)(t), error: l.value ?? t.error }, {
1545
- value: g.value ? s(a)("core.form.file.choose") : null,
1568
+ return (r, f) => (i(), O(ye, Q({ ...s(fe)(t), error: l.value ?? t.error }, {
1569
+ value: b.value ? s(a)("core.form.file.choose") : null,
1546
1570
  "row-layout": "stacked"
1547
- }), X({
1548
- readonly: c(() => [
1549
- g.value ? (i(), k("button", {
1571
+ }), ee({
1572
+ readonly: m(() => [
1573
+ b.value ? (i(), y("button", {
1550
1574
  key: 0,
1551
1575
  type: "button",
1552
1576
  "aria-label": s(a)("core.viewer.open"),
1553
1577
  "data-test": "photo-open",
1554
1578
  class: "block cursor-zoom-in rounded-group focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus",
1555
- onClick: f[0] || (f[0] = (b) => x.value?.present(0))
1579
+ onClick: f[0] || (f[0] = (g) => h.value?.present(0))
1556
1580
  }, [
1557
1581
  p("img", {
1558
- src: g.value,
1582
+ src: b.value,
1559
1583
  alt: "",
1560
1584
  class: "size-40 rounded-group object-cover"
1561
- }, null, 8, il)
1562
- ], 8, rl)) : z("", !0),
1563
- g.value ? (i(), q(Je, {
1585
+ }, null, 8, dl)
1586
+ ], 8, ul)) : T("", !0),
1587
+ b.value ? (i(), O(Je, {
1564
1588
  key: 1,
1565
1589
  ref_key: "viewer",
1566
- ref: x,
1567
- items: $.value
1568
- }, null, 8, ["items"])) : z("", !0)
1590
+ ref: h,
1591
+ items: w.value
1592
+ }, null, 8, ["items"])) : T("", !0)
1569
1593
  ]),
1570
- default: c(({ id: b, describedby: S, invalid: T }) => [
1571
- p("div", ul, [
1594
+ default: m(({ id: g, describedby: S, invalid: z }) => [
1595
+ p("div", cl, [
1572
1596
  p("input", {
1573
- id: b,
1597
+ id: g,
1574
1598
  ref_key: "chooser",
1575
1599
  ref: n,
1576
1600
  type: "file",
@@ -1579,74 +1603,74 @@ const Oa = ["id", "aria-labelledby"], ja = ["id", "value", "lang", "name", "rows
1579
1603
  accept: t.accept.join(","),
1580
1604
  disabled: t.disabled,
1581
1605
  "aria-describedby": S,
1582
- "aria-invalid": T || void 0,
1583
- onChange: f[1] || (f[1] = (h) => y(h.target.files?.[0]))
1584
- }, null, 40, dl),
1585
- g.value ? (i(), k("button", {
1606
+ "aria-invalid": z || void 0,
1607
+ onChange: f[1] || (f[1] = ($) => x($.target.files?.[0]))
1608
+ }, null, 40, fl),
1609
+ b.value ? (i(), y("button", {
1586
1610
  key: 0,
1587
1611
  type: "button",
1588
1612
  "aria-label": s(a)("core.viewer.open"),
1589
1613
  "data-test": "photo-open",
1590
1614
  class: "block cursor-zoom-in rounded-group focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus",
1591
- onClick: f[2] || (f[2] = (h) => x.value?.present(0))
1615
+ onClick: f[2] || (f[2] = ($) => h.value?.present(0))
1592
1616
  }, [
1593
1617
  p("img", {
1594
- src: g.value,
1618
+ src: b.value,
1595
1619
  alt: "",
1596
1620
  "data-test": "photo-preview",
1597
1621
  class: "size-28 rounded-group object-cover"
1598
- }, null, 8, fl)
1599
- ], 8, cl)) : z("", !0),
1600
- O(ye, {
1622
+ }, null, 8, vl)
1623
+ ], 8, ml)) : T("", !0),
1624
+ M(ge, {
1601
1625
  disabled: t.disabled,
1602
- onClick: f[3] || (f[3] = (h) => n.value?.click())
1626
+ onClick: f[3] || (f[3] = ($) => n.value?.click())
1603
1627
  }, {
1604
- default: c(() => [
1605
- Y(C(s(a)("core.form.file.choose")), 1)
1628
+ default: m(() => [
1629
+ Y(_(s(a)("core.form.file.choose")), 1)
1606
1630
  ]),
1607
1631
  _: 1
1608
1632
  }, 8, ["disabled"]),
1609
- g.value ? (i(), q(ye, {
1633
+ b.value ? (i(), O(ge, {
1610
1634
  key: 1,
1611
1635
  prominence: "plain",
1612
1636
  tone: "critical",
1613
1637
  disabled: t.disabled,
1614
- onClick: f[4] || (f[4] = (h) => {
1638
+ onClick: f[4] || (f[4] = ($) => {
1615
1639
  e.value = null, l.value = null;
1616
1640
  })
1617
1641
  }, {
1618
- default: c(() => [
1619
- Y(C(s(a)("core.form.file.remove")), 1)
1642
+ default: m(() => [
1643
+ Y(_(s(a)("core.form.file.remove")), 1)
1620
1644
  ]),
1621
1645
  _: 1
1622
- }, 8, ["disabled"])) : z("", !0)
1646
+ }, 8, ["disabled"])) : T("", !0)
1623
1647
  ]),
1624
- g.value ? (i(), q(Je, {
1648
+ b.value ? (i(), O(Je, {
1625
1649
  key: 0,
1626
1650
  ref_key: "viewer",
1627
- ref: x,
1628
- items: $.value
1629
- }, null, 8, ["items"])) : z("", !0)
1651
+ ref: h,
1652
+ items: w.value
1653
+ }, null, 8, ["items"])) : T("", !0)
1630
1654
  ]),
1631
1655
  _: 2
1632
1656
  }, [
1633
1657
  r.$slots.trailing ? {
1634
1658
  name: "trailing",
1635
- fn: c(() => [
1636
- B(r.$slots, "trailing")
1659
+ fn: m(() => [
1660
+ C(r.$slots, "trailing")
1637
1661
  ]),
1638
1662
  key: "0"
1639
1663
  } : void 0,
1640
1664
  r.$slots.labelTrailing ? {
1641
1665
  name: "labelTrailing",
1642
- fn: c(() => [
1643
- B(r.$slots, "labelTrailing")
1666
+ fn: m(() => [
1667
+ C(r.$slots, "labelTrailing")
1644
1668
  ]),
1645
1669
  key: "1"
1646
1670
  } : void 0
1647
1671
  ]), 1040, ["value"]));
1648
1672
  }
1649
- }), ml = { class: "text-footnote" }, vl = { class: "text-footnote" }, zo = /* @__PURE__ */ K({
1673
+ }), pl = { class: "text-footnote" }, bl = { class: "text-footnote" }, qo = /* @__PURE__ */ P({
1650
1674
  __name: "GroupSheet",
1651
1675
  props: {
1652
1676
  sheet: {},
@@ -1659,20 +1683,20 @@ const Oa = ["id", "aria-labelledby"], ja = ["id", "value", "lang", "name", "rows
1659
1683
  },
1660
1684
  emits: ["saved"],
1661
1685
  setup(o, { emit: t }) {
1662
- const e = o, a = t, { t: n } = ee(), l = H("modal"), u = H("body"), d = P(!1);
1663
- let g = null;
1664
- ie(() => e.sheet.open.value, (y) => {
1665
- y ? (d.value = !1, l.value?.present()) : l.value?.dismiss();
1686
+ const e = o, a = t, { t: n } = oe(), l = U("modal"), u = U("body"), c = N(!1);
1687
+ let b = null;
1688
+ de(() => e.sheet.open.value, (x) => {
1689
+ x ? (c.value = !1, l.value?.present()) : l.value?.dismiss();
1666
1690
  }), rt(() => {
1667
1691
  e.sheet.open.value && l.value?.present();
1668
1692
  }), Ee(() => {
1669
- g && clearTimeout(g);
1693
+ b && clearTimeout(b);
1670
1694
  });
1671
- async function x() {
1672
- await e.sheet.save() && (d.value = !0, a("saved"), g = setTimeout(() => e.sheet.dismiss(), Nt));
1695
+ async function h() {
1696
+ await e.sheet.save() && (c.value = !0, a("saved"), b = setTimeout(() => e.sheet.dismiss(), Nt));
1673
1697
  }
1674
- const $ = w(() => e.sheet.saving.value ? "processing" : d.value ? "done" : "idle");
1675
- return (y, r) => (i(), q(Gt, {
1698
+ const w = k(() => e.sheet.saving.value ? "processing" : c.value ? "done" : "idle");
1699
+ return (x, r) => (i(), O(Gt, {
1676
1700
  ref_key: "modal",
1677
1701
  ref: l,
1678
1702
  size: e.size,
@@ -1681,50 +1705,50 @@ const Oa = ["id", "aria-labelledby"], ja = ["id", "value", "lang", "name", "rows
1681
1705
  subtitle: e.subtitle,
1682
1706
  "before-dismiss": e.sheet.beforeDismiss,
1683
1707
  "primary-label": e.editable ? s(n)("core.actions.save") : void 0,
1684
- status: $.value,
1708
+ status: w.value,
1685
1709
  "processing-label": s(n)("core.actions.saving"),
1686
1710
  "done-label": s(n)("core.actions.saved"),
1687
- onPrimary: x,
1711
+ onPrimary: h,
1688
1712
  onDismissed: r[0] || (r[0] = (f) => e.sheet.closed())
1689
1713
  }, {
1690
- default: c(() => [
1714
+ default: m(() => [
1691
1715
  p("div", {
1692
1716
  ref_key: "body",
1693
1717
  ref: u,
1694
1718
  class: "flex min-w-0 flex-col gap-group-gap"
1695
1719
  }, [
1696
- e.sheet.notice.value ? (i(), q(Xe, {
1720
+ e.sheet.notice.value ? (i(), O(Ze, {
1697
1721
  key: 0,
1698
1722
  tone: "warning",
1699
1723
  "data-test": "group-sheet-notice"
1700
1724
  }, {
1701
- default: c(() => [
1702
- p("p", ml, C(e.sheet.notice.value), 1)
1725
+ default: m(() => [
1726
+ p("p", pl, _(e.sheet.notice.value), 1)
1703
1727
  ]),
1704
1728
  _: 1
1705
- })) : z("", !0),
1706
- e.sheet.foreignGroups.value.length ? (i(), q(Xe, {
1729
+ })) : T("", !0),
1730
+ e.sheet.foreignGroups.value.length ? (i(), O(Ze, {
1707
1731
  key: 1,
1708
1732
  tone: "warning",
1709
1733
  "data-test": "group-sheet-foreign"
1710
1734
  }, {
1711
- default: c(() => [
1712
- p("p", vl, C(s(n)("core.form.group.foreign", { groups: e.sheet.foreignGroups.value.map(e.groupLabel).join(", ") })), 1)
1735
+ default: m(() => [
1736
+ p("p", bl, _(s(n)("core.form.group.foreign", { groups: e.sheet.foreignGroups.value.map(e.groupLabel).join(", ") })), 1)
1713
1737
  ]),
1714
1738
  _: 1
1715
- })) : z("", !0),
1716
- O(Oe, {
1739
+ })) : T("", !0),
1740
+ M(Me, {
1717
1741
  form: e.sheet.form,
1718
1742
  label: e.fieldLabel,
1719
1743
  scope: u.value
1720
1744
  }, null, 8, ["form", "label", "scope"]),
1721
- B(y.$slots, "default")
1745
+ C(x.$slots, "default")
1722
1746
  ], 512)
1723
1747
  ]),
1724
1748
  _: 3
1725
1749
  }, 8, ["size", "title", "subtitle", "before-dismiss", "primary-label", "status", "processing-label", "done-label"]));
1726
1750
  }
1727
- }), pl = ["data-group"], Vo = /* @__PURE__ */ K({
1751
+ }), gl = ["data-group"], Ro = /* @__PURE__ */ P({
1728
1752
  __name: "RecordGroupScope",
1729
1753
  props: {
1730
1754
  only: {},
@@ -1732,56 +1756,56 @@ const Oa = ["id", "aria-labelledby"], ja = ["id", "value", "lang", "name", "rows
1732
1756
  },
1733
1757
  setup(o) {
1734
1758
  const t = o;
1735
- return Re(Rt, { only: it(t, "only") }), Re(bt, w(() => t.editable)), (e, a) => (i(), k("div", {
1759
+ return Re(Rt, { only: it(t, "only") }), Re(bt, k(() => t.editable)), (e, a) => (i(), y("div", {
1736
1760
  class: "flex min-w-0 flex-col gap-group-gap",
1737
1761
  "data-test": "record-group-scope",
1738
1762
  "data-group": t.only
1739
1763
  }, [
1740
- B(e.$slots, "default")
1741
- ], 8, pl));
1764
+ C(e.$slots, "default")
1765
+ ], 8, gl));
1742
1766
  }
1743
1767
  });
1744
- function qo(o) {
1768
+ function Oo(o) {
1745
1769
  const { form: t } = o;
1746
1770
  if (o.rebase && !t.rebase) throw new Error("useGroupSheet: `rebase` needs a record form (useResourceForm), which can take the freshly read record as its base.");
1747
- const e = () => typeof o.fields == "function" ? o.fields() : o.fields, a = () => Me(o.restore) ?? e(), n = P(!1), l = P(!1), u = P([]), d = P(null), g = Le({});
1748
- let x = {};
1749
- const $ = (F) => Object.fromEntries(F.map((E) => [E, Se(t.values[E])])), y = w(() => n.value && !He($(a()), g.value)), { confirmDiscard: r } = Ie(() => y.value);
1771
+ const e = () => typeof o.fields == "function" ? o.fields() : o.fields, a = () => Oe(o.restore) ?? e(), n = N(!1), l = N(!1), u = N([]), c = N(null), b = Le({});
1772
+ let h = {};
1773
+ const w = (F) => Object.fromEntries(F.map((E) => [E, Se(t.values[E])])), x = k(() => n.value && !He(w(a()), b.value)), { confirmDiscard: r } = Ie(() => x.value);
1750
1774
  function f() {
1751
- x = $(a()), g.value = Se(x);
1775
+ h = w(a()), b.value = Se(h);
1752
1776
  }
1753
- function b() {
1754
- f(), u.value = [], d.value = null, t.dismissFailure(), n.value = !0;
1777
+ function g() {
1778
+ f(), u.value = [], c.value = null, t.dismissFailure(), n.value = !0;
1755
1779
  }
1756
1780
  function S() {
1757
1781
  if (n.value) {
1758
- y.value && Object.assign(t.values, Se(x));
1782
+ x.value && Object.assign(t.values, Se(h));
1759
1783
  for (const F of e()) t.errors.clear(F);
1760
1784
  t.dismissFailure(), n.value = !1;
1761
1785
  }
1762
1786
  }
1763
- function T(F) {
1764
- const E = new Set(e()), I = Me(o.group), U = /* @__PURE__ */ new Set();
1765
- for (const ne of Object.keys(F.all())) {
1766
- const Z = et(ne);
1767
- if (E.has(Z)) continue;
1768
- const te = o.groupOf?.(Z) ?? o.fallbackGroup;
1769
- te && te !== I && U.add(te);
1787
+ function z(F) {
1788
+ const E = new Set(e()), R = Oe(o.group), Z = /* @__PURE__ */ new Set();
1789
+ for (const W of Object.keys(F.all())) {
1790
+ const J = et(W);
1791
+ if (E.has(J)) continue;
1792
+ const ae = o.groupOf?.(J) ?? o.fallbackGroup;
1793
+ ae && ae !== R && Z.add(ae);
1770
1794
  }
1771
- u.value = [...U];
1795
+ u.value = [...Z];
1772
1796
  }
1773
- async function h(F) {
1774
- const E = Se($(e().filter((I) => !He(t.values[I], g.value[I]))));
1797
+ async function $(F) {
1798
+ const E = Se(w(e().filter((R) => !He(t.values[R], b.value[R]))));
1775
1799
  try {
1776
1800
  await F.reload();
1777
1801
  } catch {
1778
1802
  return;
1779
1803
  }
1780
- t.rebase?.() && (f(), Object.assign(t.values, E), d.value = F.message());
1804
+ t.rebase?.() && (f(), Object.assign(t.values, E), c.value = F.message());
1781
1805
  }
1782
- async function G() {
1806
+ async function I() {
1783
1807
  if (l.value) return !1;
1784
- l.value = !0, u.value = [], d.value = null;
1808
+ l.value = !0, u.value = [], c.value = null;
1785
1809
  try {
1786
1810
  const F = o.onSaved ? () => o.onSaved?.() : void 0;
1787
1811
  let E;
@@ -1796,7 +1820,7 @@ function qo(o) {
1796
1820
  case "aborted":
1797
1821
  return !1;
1798
1822
  case "failed":
1799
- return E.failure.kind === "conflict" && o.rebase ? await h(o.rebase) : T(t.errors), !1;
1823
+ return E.failure.kind === "conflict" && o.rebase ? await $(o.rebase) : z(t.errors), !1;
1800
1824
  }
1801
1825
  } finally {
1802
1826
  l.value = !1;
@@ -1805,67 +1829,67 @@ function qo(o) {
1805
1829
  return {
1806
1830
  open: n,
1807
1831
  saving: l,
1808
- dirty: y,
1832
+ dirty: x,
1809
1833
  foreignGroups: u,
1810
- notice: d,
1834
+ notice: c,
1811
1835
  failure: t.failure,
1812
1836
  form: t,
1813
- present: b,
1837
+ present: g,
1814
1838
  dismiss: () => {
1815
1839
  n.value = !1;
1816
1840
  },
1817
- save: G,
1841
+ save: I,
1818
1842
  beforeDismiss: r,
1819
1843
  closed: S
1820
1844
  };
1821
1845
  }
1822
- const bl = { hidden: "" }, gl = /* @__PURE__ */ K({
1846
+ const yl = { hidden: "" }, hl = /* @__PURE__ */ P({
1823
1847
  __name: "EditorChrome",
1824
1848
  props: {
1825
1849
  options: {}
1826
1850
  },
1827
1851
  setup(o) {
1828
- return Yt(o.options), (e, a) => (i(), k("span", bl));
1852
+ return Yt(o.options), (e, a) => (i(), y("span", yl));
1829
1853
  }
1830
1854
  });
1831
- function yl(o) {
1832
- const t = P(0);
1855
+ function kl(o) {
1856
+ const t = N(0);
1833
1857
  let e = 0;
1834
1858
  const a = () => {
1835
1859
  e || (e = requestAnimationFrame(() => {
1836
1860
  e = 0, t.value++;
1837
1861
  }));
1838
1862
  }, n = typeof MutationObserver > "u" ? null : new MutationObserver(a);
1839
- ie(
1863
+ de(
1840
1864
  () => o.sections.value,
1841
- (d) => {
1865
+ (c) => {
1842
1866
  n?.disconnect();
1843
- for (const g of d)
1844
- n?.observe(g.element, { subtree: !0, childList: !0, attributes: !0, attributeFilter: ["data-field-error", "data-field-required", "data-field-filled"] });
1867
+ for (const b of c)
1868
+ n?.observe(b.element, { subtree: !0, childList: !0, attributes: !0, attributeFilter: ["data-field-error", "data-field-required", "data-field-filled"] });
1845
1869
  a();
1846
1870
  },
1847
1871
  { immediate: !0 }
1848
1872
  ), ut() && dt(() => {
1849
1873
  n?.disconnect(), e && cancelAnimationFrame(e);
1850
1874
  });
1851
- const l = w(() => (t.value, Object.fromEntries(
1852
- o.sections.value.map((d) => [
1853
- d.id,
1875
+ const l = k(() => (t.value, Object.fromEntries(
1876
+ o.sections.value.map((c) => [
1877
+ c.id,
1854
1878
  {
1855
- errors: d.element.querySelectorAll("[data-field-error]").length,
1856
- required: { total: d.element.querySelectorAll("[data-field-required]").length, filled: d.element.querySelectorAll("[data-field-required][data-field-filled]").length }
1879
+ errors: c.element.querySelectorAll("[data-field-error]").length,
1880
+ required: { total: c.element.querySelectorAll("[data-field-required]").length, filled: c.element.querySelectorAll("[data-field-required][data-field-filled]").length }
1857
1881
  }
1858
1882
  ])
1859
- ))), u = w(() => Object.values(l.value).reduce((d, g) => ({ filled: d.filled + g.required.filled, total: d.total + g.required.total }), { filled: 0, total: 0 }));
1883
+ ))), u = k(() => Object.values(l.value).reduce((c, b) => ({ filled: c.filled + b.required.filled, total: c.total + b.required.total }), { filled: 0, total: 0 }));
1860
1884
  return { states: l, totals: u };
1861
1885
  }
1862
- const hl = {
1886
+ const xl = {
1863
1887
  class: "grid min-w-0 grid-cols-1 items-start gap-8 lg:grid-cols-[12.5rem_minmax(0,1fr)]",
1864
1888
  "data-test": "editor-page"
1865
- }, kl = {
1889
+ }, wl = {
1866
1890
  key: 0,
1867
1891
  class: "sticky top-[calc(var(--app-bar-height)+1.5rem+var(--shell-banner-h,0px))] hidden min-w-0 flex-col gap-4 self-start lg:flex"
1868
- }, Ro = /* @__PURE__ */ K({
1892
+ }, Mo = /* @__PURE__ */ P({
1869
1893
  __name: "EditorPage",
1870
1894
  props: {
1871
1895
  title: {},
@@ -1877,7 +1901,7 @@ const hl = {
1877
1901
  },
1878
1902
  emits: ["save", "cancel"],
1879
1903
  setup(o, { emit: t }) {
1880
- const e = o, a = t, { t: n } = ee(), l = Ne(), u = Ut(), { states: d, totals: g } = yl(u), x = H("content"), $ = w(
1904
+ const e = o, a = t, { t: n } = oe(), l = Ne(), u = Ut(), { states: c, totals: b } = kl(u), h = U("content"), w = k(
1881
1905
  () => e.form ? {
1882
1906
  form: e.form,
1883
1907
  label: () => e.saveLabel ?? n("core.actions.save"),
@@ -1892,89 +1916,89 @@ const hl = {
1892
1916
  }
1893
1917
  } : null
1894
1918
  );
1895
- ie(
1919
+ de(
1896
1920
  () => e.form?.failure.value,
1897
1921
  async (r) => {
1898
- r?.kind === "invalid" && (await ke(), await ze(x.value ?? document, u));
1922
+ r?.kind === "invalid" && (await he(), await De(h.value ?? document, u));
1899
1923
  }
1900
1924
  );
1901
- function y(r) {
1902
- const f = u.sections.value.find((b) => b.id === r)?.element;
1903
- f && ke(() => ze(f));
1925
+ function x(r) {
1926
+ const f = u.sections.value.find((g) => g.id === r)?.element;
1927
+ f && he(() => De(f));
1904
1928
  }
1905
- return (r, f) => (i(), q(Kt, {
1929
+ return (r, f) => (i(), O(Kt, {
1906
1930
  title: e.title,
1907
1931
  back: e.back,
1908
1932
  width: "content"
1909
- }, X({
1910
- default: c(() => [
1911
- $.value ? (i(), q(gl, {
1933
+ }, ee({
1934
+ default: m(() => [
1935
+ w.value ? (i(), O(hl, {
1912
1936
  key: 0,
1913
- options: $.value
1914
- }, null, 8, ["options"])) : z("", !0),
1915
- p("div", hl, [
1916
- s(l) ? z("", !0) : (i(), k("aside", kl, [
1917
- O(At, {
1937
+ options: w.value
1938
+ }, null, 8, ["options"])) : T("", !0),
1939
+ p("div", xl, [
1940
+ s(l) ? T("", !0) : (i(), y("aside", wl, [
1941
+ M(At, {
1918
1942
  standalone: "",
1919
- states: s(d),
1920
- progress: s(g),
1921
- onSelect: y
1943
+ states: s(c),
1944
+ progress: s(b),
1945
+ onSelect: x
1922
1946
  }, null, 8, ["states", "progress"]),
1923
- B(r.$slots, "aside")
1947
+ C(r.$slots, "aside")
1924
1948
  ])),
1925
1949
  p("div", {
1926
1950
  ref_key: "content",
1927
- ref: x,
1951
+ ref: h,
1928
1952
  class: "flex min-w-0 flex-col gap-section-gap"
1929
1953
  }, [
1930
- e.form ? (i(), q(Oe, {
1954
+ e.form ? (i(), O(Me, {
1931
1955
  key: 0,
1932
1956
  form: e.form,
1933
1957
  label: e.fieldLabel,
1934
- scope: x.value
1935
- }, null, 8, ["form", "label", "scope"])) : z("", !0),
1936
- B(r.$slots, "default")
1958
+ scope: h.value
1959
+ }, null, 8, ["form", "label", "scope"])) : T("", !0),
1960
+ C(r.$slots, "default")
1937
1961
  ], 512)
1938
1962
  ]),
1939
- s(l) ? (i(), q(Ht, {
1963
+ s(l) ? (i(), O(Ht, {
1940
1964
  key: 1,
1941
- states: s(d)
1942
- }, null, 8, ["states"])) : z("", !0)
1965
+ states: s(c)
1966
+ }, null, 8, ["states"])) : T("", !0)
1943
1967
  ]),
1944
1968
  _: 2
1945
1969
  }, [
1946
1970
  r.$slots.header ? {
1947
1971
  name: "header",
1948
- fn: c(() => [
1949
- B(r.$slots, "header")
1972
+ fn: m(() => [
1973
+ C(r.$slots, "header")
1950
1974
  ]),
1951
1975
  key: "0"
1952
1976
  } : void 0,
1953
1977
  r.$slots.pager ? {
1954
1978
  name: "pager",
1955
- fn: c(() => [
1956
- B(r.$slots, "pager")
1979
+ fn: m(() => [
1980
+ C(r.$slots, "pager")
1957
1981
  ]),
1958
1982
  key: "1"
1959
1983
  } : void 0,
1960
1984
  r.$slots.notices ? {
1961
1985
  name: "notices",
1962
- fn: c(() => [
1963
- B(r.$slots, "notices")
1986
+ fn: m(() => [
1987
+ C(r.$slots, "notices")
1964
1988
  ]),
1965
1989
  key: "2"
1966
1990
  } : void 0,
1967
1991
  r.$slots.bottom ? {
1968
1992
  name: "bottom",
1969
- fn: c(() => [
1970
- B(r.$slots, "bottom")
1993
+ fn: m(() => [
1994
+ C(r.$slots, "bottom")
1971
1995
  ]),
1972
1996
  key: "3"
1973
1997
  } : void 0
1974
1998
  ]), 1032, ["title", "back"]));
1975
1999
  }
1976
2000
  });
1977
- function Mo(o) {
2001
+ function jo(o) {
1978
2002
  const t = Le(null);
1979
2003
  let e = null;
1980
2004
  const a = st({
@@ -1999,9 +2023,9 @@ function Mo(o) {
1999
2023
  }
2000
2024
  };
2001
2025
  }
2002
- const xl = ["value", "aria-label", "disabled", "aria-invalid", "placeholder"], Oo = /* @__PURE__ */ K({
2026
+ const $l = ["value", "aria-label", "disabled", "aria-invalid", "placeholder"], Eo = /* @__PURE__ */ P({
2003
2027
  __name: "NumberCell",
2004
- props: /* @__PURE__ */ oe({
2028
+ props: /* @__PURE__ */ se({
2005
2029
  label: {},
2006
2030
  min: { default: 0 },
2007
2031
  max: { default: 9999 },
@@ -2015,13 +2039,13 @@ const xl = ["value", "aria-label", "disabled", "aria-invalid", "placeholder"], O
2015
2039
  }),
2016
2040
  emits: ["update:modelValue"],
2017
2041
  setup(o) {
2018
- const t = o, e = le(o, "modelValue");
2042
+ const t = o, e = ie(o, "modelValue");
2019
2043
  function a(l) {
2020
2044
  const u = l.target.value.replace(/\D/g, "");
2021
2045
  e.value = u === "" ? null : Math.min(t.max, Math.max(t.min, Number(u)));
2022
2046
  }
2023
2047
  const n = (l) => l.target.value = e.value === null ? "" : String(e.value);
2024
- return (l, u) => (i(), k("input", {
2048
+ return (l, u) => (i(), y("input", {
2025
2049
  value: e.value ?? "",
2026
2050
  type: "text",
2027
2051
  inputmode: "numeric",
@@ -2033,7 +2057,7 @@ const xl = ["value", "aria-label", "disabled", "aria-invalid", "placeholder"], O
2033
2057
  class: j(["rounded-control bg-fill px-2 py-1 text-right text-body tabular-nums text-content-strong transition-[background-color,box-shadow] duration-motion-fast ease-motion-standard placeholder:text-content-disabled focus:bg-surface-cell focus:outline-none focus:ring-[1.5px] focus:ring-inset focus:ring-border-focus disabled:opacity-45", [t.wide ? "w-28" : "w-16", t.invalid ? "bg-status-danger-surface ring-[1.5px] ring-inset ring-border-destructive" : ""]]),
2034
2058
  onInput: a,
2035
2059
  onBlur: n
2036
- }, null, 42, xl));
2060
+ }, null, 42, $l));
2037
2061
  }
2038
2062
  }), Ke = "vue-core:step-draft:";
2039
2063
  function Ae(o) {
@@ -2043,7 +2067,7 @@ function Ae(o) {
2043
2067
  return null;
2044
2068
  }
2045
2069
  }
2046
- function wl(o) {
2070
+ function _l(o) {
2047
2071
  try {
2048
2072
  const t = Ae(o)?.getItem(Ke + o.key);
2049
2073
  if (!t) return null;
@@ -2053,7 +2077,7 @@ function wl(o) {
2053
2077
  return null;
2054
2078
  }
2055
2079
  }
2056
- function $l(o, t) {
2080
+ function Sl(o, t) {
2057
2081
  try {
2058
2082
  const e = Ae(o);
2059
2083
  if (!e) return !1;
@@ -2063,181 +2087,181 @@ function $l(o, t) {
2063
2087
  return !1;
2064
2088
  }
2065
2089
  }
2066
- function Ze(o) {
2090
+ function Qe(o) {
2067
2091
  try {
2068
2092
  Ae(o)?.removeItem(Ke + o.key);
2069
2093
  } catch {
2070
2094
  }
2071
2095
  }
2072
- function _l(o, t) {
2096
+ function Cl(o, t) {
2073
2097
  for (const [e, a] of Object.entries(o)) {
2074
2098
  if (!(e in t)) continue;
2075
2099
  const n = t[e];
2076
2100
  (n === null || a === null || a === void 0 || typeof n == typeof a && Array.isArray(n) === Array.isArray(a)) && (o[e] = n);
2077
2101
  }
2078
2102
  }
2079
- function jo(o, t) {
2080
- const { t: e } = ee(), a = w(() => Me(t.steps));
2103
+ function Io(o, t) {
2104
+ const { t: e } = oe(), a = k(() => Oe(t.steps));
2081
2105
  if (a.value.length === 0) throw new Error("useStepForm: a flow needs at least one step.");
2082
- const n = P(a.value[0].name), l = Ue(/* @__PURE__ */ new Set()), u = Ue(/* @__PURE__ */ new Set([a.value[0].name])), d = P(null), g = P(!1), x = P(0), $ = P(!1), y = P(!1);
2106
+ const n = N(a.value[0].name), l = Ue(/* @__PURE__ */ new Set()), u = Ue(/* @__PURE__ */ new Set([a.value[0].name])), c = N(null), b = N(!1), h = N(0), w = N(!1), x = N(!1);
2083
2107
  let r = !1, f = 0;
2084
- const b = w(() => Math.max(0, a.value.findIndex((v) => v.name === n.value))), S = (v) => v.fields?.filter((V) => o.errors.has(V)).length ?? 0, T = w(
2085
- () => a.value.map((v, V) => {
2086
- const m = S(v), L = V === b.value;
2108
+ const g = k(() => Math.max(0, a.value.findIndex((d) => d.name === n.value))), S = (d) => d.fields?.filter((V) => o.errors.has(V)).length ?? 0, z = k(
2109
+ () => a.value.map((d, V) => {
2110
+ const v = S(d), q = V === g.value;
2087
2111
  return {
2088
- name: v.name,
2089
- label: v.label,
2112
+ name: d.name,
2113
+ label: d.label,
2090
2114
  position: V + 1,
2091
- state: L ? "current" : l.has(v.name) && m === 0 ? "done" : "todo",
2092
- errors: m,
2093
- reachable: !L && (u.has(v.name) || V < b.value)
2115
+ state: q ? "current" : l.has(d.name) && v === 0 ? "done" : "todo",
2116
+ errors: v,
2117
+ reachable: !q && (u.has(d.name) || V < g.value)
2094
2118
  };
2095
2119
  })
2096
- ), h = w(() => T.value[b.value]), G = w(() => T.value.length), F = w(() => b.value === 0), E = w(() => b.value === G.value - 1), I = w(() => g.value || o.submitting.value);
2097
- function U(v) {
2098
- const V = a.value[v];
2099
- V && (d.value = v > b.value ? "forward" : "back", n.value = V.name, u.add(V.name), f = v, $.value = !1);
2120
+ ), $ = k(() => z.value[g.value]), I = k(() => z.value.length), F = k(() => g.value === 0), E = k(() => g.value === I.value - 1), R = k(() => b.value || o.submitting.value);
2121
+ function Z(d) {
2122
+ const V = a.value[d];
2123
+ V && (c.value = d > g.value ? "forward" : "back", n.value = V.name, u.add(V.name), f = d, w.value = !1);
2100
2124
  }
2101
- ie(
2102
- () => a.value.map((v) => v.name).join("\0"),
2125
+ de(
2126
+ () => a.value.map((d) => d.name).join("\0"),
2103
2127
  () => {
2104
- const v = a.value, V = v.findIndex((L) => L.name === n.value), m = V === -1 ? Math.min(f, v.length - 1) : V;
2105
- n.value = v[m].name, f = m, v.forEach((L, D) => {
2106
- D > m && (l.delete(L.name), u.delete(L.name));
2128
+ const d = a.value, V = d.findIndex((q) => q.name === n.value), v = V === -1 ? Math.min(f, d.length - 1) : V;
2129
+ n.value = d[v].name, f = v, d.forEach((q, B) => {
2130
+ B > v && (l.delete(q.name), u.delete(q.name));
2107
2131
  }), u.add(n.value);
2108
- for (const L of [l, u]) for (const D of [...L]) v.some((pe) => pe.name === D) || L.delete(D);
2132
+ for (const q of [l, u]) for (const B of [...q]) d.some((K) => K.name === B) || q.delete(B);
2109
2133
  }
2110
2134
  );
2111
- function ne(v) {
2112
- const V = v.fields;
2135
+ function W(d) {
2136
+ const V = d.fields;
2113
2137
  if (!V?.length) return !0;
2114
- const m = Object.entries(o.errors.all()).filter(([D]) => !V.includes(et(D))), L = o.check(v.fields);
2115
- return m.length > 0 && o.errors.set({ ...Object.fromEntries(m), ...o.errors.all() }), L;
2138
+ const v = Object.entries(o.errors.all()).filter(([B]) => !V.includes(et(B))), q = o.check(d.fields);
2139
+ return v.length > 0 && o.errors.set({ ...Object.fromEntries(v), ...o.errors.all() }), q;
2116
2140
  }
2117
- async function Z(v) {
2118
- if (!ne(v))
2119
- return x.value++, !1;
2120
- if (!v.beforeNext) return !0;
2121
- g.value = !0;
2141
+ async function J(d) {
2142
+ if (!W(d))
2143
+ return h.value++, !1;
2144
+ if (!d.beforeNext) return !0;
2145
+ b.value = !0;
2122
2146
  try {
2123
- if (await v.beforeNext()) return !0;
2147
+ if (await d.beforeNext()) return !0;
2124
2148
  } finally {
2125
- g.value = !1;
2149
+ b.value = !1;
2126
2150
  }
2127
- return x.value++, !1;
2151
+ return h.value++, !1;
2128
2152
  }
2129
- async function te() {
2130
- const v = await o.submit(t.submit, t.submitOptions);
2131
- if (v.status === "saved" || v.status === "saved-refresh-failed")
2132
- return r = !0, se(), t.onSaved?.(v.value), !0;
2133
- if (v.status === "failed" && (x.value++, h.value.errors === 0)) {
2134
- const V = T.value.findIndex((m) => m.errors > 0);
2135
- V !== -1 && U(V);
2153
+ async function ae() {
2154
+ const d = await o.submit(t.submit, t.submitOptions);
2155
+ if (d.status === "saved" || d.status === "saved-refresh-failed")
2156
+ return r = !0, re(), t.onSaved?.(d.value), !0;
2157
+ if (d.status === "failed" && (h.value++, $.value.errors === 0)) {
2158
+ const V = z.value.findIndex((v) => v.errors > 0);
2159
+ V !== -1 && Z(V);
2136
2160
  }
2137
2161
  return !1;
2138
2162
  }
2139
- async function fe() {
2140
- if (I.value) return !1;
2141
- const v = a.value[b.value];
2142
- return await Z(v) ? (l.add(v.name), b.value < G.value - 1 ? (U(b.value + 1), !0) : te()) : !1;
2163
+ async function ve() {
2164
+ if (R.value) return !1;
2165
+ const d = a.value[g.value];
2166
+ return await J(d) ? (l.add(d.name), g.value < I.value - 1 ? (Z(g.value + 1), !0) : ae()) : !1;
2143
2167
  }
2144
- async function R(v) {
2145
- if (I.value) return !1;
2146
- const V = a.value.findIndex((m) => m.name === v);
2168
+ async function D(d) {
2169
+ if (R.value) return !1;
2170
+ const V = a.value.findIndex((v) => v.name === d);
2147
2171
  if (V === -1) return !1;
2148
- if (V <= b.value)
2149
- return V < b.value && U(V), !0;
2150
- if (!u.has(v)) return !1;
2151
- for (; b.value < V; ) if (!await fe()) return !1;
2152
- return b.value === V;
2172
+ if (V <= g.value)
2173
+ return V < g.value && Z(V), !0;
2174
+ if (!u.has(d)) return !1;
2175
+ for (; g.value < V; ) if (!await ve()) return !1;
2176
+ return g.value === V;
2153
2177
  }
2154
2178
  const A = t.draft;
2155
- let N;
2156
- function ae() {
2157
- if (N = void 0, !(!A || r)) {
2179
+ let G;
2180
+ function ne() {
2181
+ if (G = void 0, !(!A || r)) {
2158
2182
  if (!o.dirty.value) {
2159
- Ze(A), y.value = !1;
2183
+ Qe(A), x.value = !1;
2160
2184
  return;
2161
2185
  }
2162
- y.value = $l(A, { values: Se(o.values), step: n.value, passed: [...l] });
2186
+ x.value = Sl(A, { values: Se(o.values), step: n.value, passed: [...l] });
2163
2187
  }
2164
2188
  }
2165
- function se() {
2166
- r = !0, clearTimeout(N), N = void 0, y.value = !1, A && Ze(A);
2189
+ function re() {
2190
+ r = !0, clearTimeout(G), G = void 0, x.value = !1, A && Qe(A);
2167
2191
  }
2168
2192
  if (A) {
2169
- const v = wl(A);
2170
- if (v) {
2171
- _l(o.values, v.values);
2172
- const V = a.value.map((m) => m.name);
2173
- V.includes(v.step) && (n.value = v.step);
2174
- for (const m of v.passed) V.includes(m) && l.add(m);
2175
- for (const m of [...l, n.value]) u.add(m);
2176
- f = b.value, $.value = o.dirty.value, y.value = $.value;
2193
+ const d = _l(A);
2194
+ if (d) {
2195
+ Cl(o.values, d.values);
2196
+ const V = a.value.map((v) => v.name);
2197
+ V.includes(d.step) && (n.value = d.step);
2198
+ for (const v of d.passed) V.includes(v) && l.add(v);
2199
+ for (const v of [...l, n.value]) u.add(v);
2200
+ f = g.value, w.value = o.dirty.value, x.value = w.value;
2177
2201
  }
2178
- ie(
2202
+ de(
2179
2203
  [() => o.values, n, () => [...l].join("\0")],
2180
2204
  () => {
2181
- r || (clearTimeout(N), N = setTimeout(ae, 400));
2205
+ r || (clearTimeout(G), G = setTimeout(ne, 400));
2182
2206
  },
2183
2207
  { deep: !0 }
2184
2208
  ), Ee(() => {
2185
- N !== void 0 && (clearTimeout(N), ae());
2209
+ G !== void 0 && (clearTimeout(G), ne());
2186
2210
  });
2187
2211
  }
2188
- const { confirmDiscard: W } = Ie(() => !r && o.dirty.value);
2189
- tt(Wt, null) && Jt(() => (r || se(), !0));
2190
- async function me() {
2191
- const v = await W();
2192
- return v && se(), v;
2212
+ const { confirmDiscard: le } = Ie(() => !r && o.dirty.value);
2213
+ tt(Wt, null) && Jt(() => (r || re(), !0));
2214
+ async function ke() {
2215
+ const d = await le();
2216
+ return d && re(), d;
2193
2217
  }
2194
2218
  function we() {
2195
- o.reset(), l.clear(), u.clear(), d.value = null, n.value = a.value[0].name, u.add(n.value), f = 0, $.value = !1, se(), r = !1;
2219
+ o.reset(), l.clear(), u.clear(), c.value = null, n.value = a.value[0].name, u.add(n.value), f = 0, w.value = !1, re(), r = !1;
2196
2220
  }
2197
- const _ = w(() => {
2198
- const v = [e("core.steps.position", { current: b.value + 1, total: G.value }), h.value.label];
2199
- return y.value && v.push(e("core.steps.draft_saved")), v.join(" · ");
2200
- }), M = w(() => {
2201
- const v = a.value[b.value];
2202
- return v.nextLabel ? v.nextLabel : E.value ? t.submitLabel ?? e("core.actions.save") : e("core.steps.next_named", { step: a.value[b.value + 1].label });
2203
- }), ve = w(() => F.value ? null : a.value[b.value - 1].label);
2221
+ const X = k(() => {
2222
+ const d = [e("core.steps.position", { current: g.value + 1, total: I.value }), $.value.label];
2223
+ return x.value && d.push(e("core.steps.draft_saved")), d.join(" · ");
2224
+ }), pe = k(() => {
2225
+ const d = a.value[g.value];
2226
+ return d.nextLabel ? d.nextLabel : E.value ? t.submitLabel ?? e("core.actions.save") : e("core.steps.next_named", { step: a.value[g.value + 1].label });
2227
+ }), L = k(() => F.value ? null : a.value[g.value - 1].label);
2204
2228
  return {
2205
- steps: T,
2206
- current: h,
2207
- index: b,
2208
- count: G,
2229
+ steps: z,
2230
+ current: $,
2231
+ index: g,
2232
+ count: I,
2209
2233
  isFirst: F,
2210
2234
  isLast: E,
2211
- busy: I,
2212
- direction: d,
2213
- subtitle: _,
2214
- nextLabel: M,
2215
- backLabel: ve,
2216
- restored: $,
2217
- refusals: x,
2235
+ busy: R,
2236
+ direction: c,
2237
+ subtitle: X,
2238
+ nextLabel: pe,
2239
+ backLabel: L,
2240
+ restored: w,
2241
+ refusals: h,
2218
2242
  errors: o.errors,
2219
2243
  failure: o.failure,
2220
- next: fe,
2221
- back: () => U(b.value - 1),
2222
- goTo: R,
2244
+ next: ve,
2245
+ back: () => Z(g.value - 1),
2246
+ goTo: D,
2223
2247
  restart: we,
2224
- confirmDiscard: me,
2225
- bindDialog: () => ({ subtitle: _.value, primaryLabel: M.value, status: I.value ? "processing" : "idle", beforeDismiss: me })
2248
+ confirmDiscard: ke,
2249
+ bindDialog: () => ({ subtitle: X.value, primaryLabel: pe.value, status: R.value ? "processing" : "idle", beforeDismiss: ke })
2226
2250
  };
2227
2251
  }
2228
- const Sl = {
2252
+ const Fl = {
2229
2253
  class: "flex flex-wrap items-center gap-2.5 border-t border-border-separator pt-3.5",
2230
2254
  "data-test": "step-navigation"
2231
- }, Cl = /* @__PURE__ */ K({
2255
+ }, Bl = /* @__PURE__ */ P({
2232
2256
  __name: "StepNavigation",
2233
2257
  props: {
2234
2258
  flow: {}
2235
2259
  },
2236
2260
  emits: ["cancel"],
2237
2261
  setup(o) {
2238
- const t = o, { t: e } = ee();
2239
- return (a, n) => (i(), k("div", Sl, [
2240
- t.flow.backLabel.value ? (i(), q(ye, {
2262
+ const t = o, { t: e } = oe();
2263
+ return (a, n) => (i(), y("div", Fl, [
2264
+ t.flow.backLabel.value ? (i(), O(ge, {
2241
2265
  key: 0,
2242
2266
  prominence: "plain",
2243
2267
  icon: "arrowLeftSLine",
@@ -2245,64 +2269,64 @@ const Sl = {
2245
2269
  "data-test": "step-back",
2246
2270
  onClick: n[0] || (n[0] = (l) => t.flow.back())
2247
2271
  }, {
2248
- default: c(() => [
2249
- Y(C(t.flow.backLabel.value), 1)
2272
+ default: m(() => [
2273
+ Y(_(t.flow.backLabel.value), 1)
2250
2274
  ]),
2251
2275
  _: 1
2252
- }, 8, ["disabled"])) : z("", !0),
2276
+ }, 8, ["disabled"])) : T("", !0),
2253
2277
  n[3] || (n[3] = p("div", { class: "grow" }, null, -1)),
2254
- O(ye, {
2278
+ M(ge, {
2255
2279
  prominence: "plain",
2256
2280
  "data-test": "step-cancel",
2257
2281
  onClick: n[1] || (n[1] = (l) => a.$emit("cancel"))
2258
2282
  }, {
2259
- default: c(() => [
2260
- Y(C(s(e)("core.actions.cancel")), 1)
2283
+ default: m(() => [
2284
+ Y(_(s(e)("core.actions.cancel")), 1)
2261
2285
  ]),
2262
2286
  _: 1
2263
2287
  }),
2264
- O(ye, {
2288
+ M(ge, {
2265
2289
  prominence: "primary",
2266
2290
  processing: t.flow.busy.value,
2267
2291
  "data-test": "step-next",
2268
2292
  onClick: n[2] || (n[2] = (l) => t.flow.next())
2269
2293
  }, {
2270
- default: c(() => [
2271
- Y(C(t.flow.nextLabel.value), 1)
2294
+ default: m(() => [
2295
+ Y(_(t.flow.nextLabel.value), 1)
2272
2296
  ]),
2273
2297
  _: 1
2274
2298
  }, 8, ["processing"])
2275
2299
  ]));
2276
2300
  }
2277
- }), Fl = ["aria-label"], Bl = ["aria-current"], Ll = ["aria-label"], Tl = {
2301
+ }), Ll = ["aria-label"], Tl = ["aria-current"], zl = ["aria-label"], Dl = {
2278
2302
  key: 2,
2279
2303
  class: "sr-only"
2280
- }, Dl = {
2304
+ }, Vl = {
2281
2305
  key: 1,
2282
2306
  "data-test": "step-dots",
2283
2307
  class: "flex justify-center gap-1.5",
2284
2308
  "aria-hidden": "true"
2285
- }, zl = ["data-state"], Vl = /* @__PURE__ */ K({
2309
+ }, ql = ["data-state"], Rl = /* @__PURE__ */ P({
2286
2310
  __name: "StepProgress",
2287
2311
  props: {
2288
2312
  flow: {},
2289
2313
  progress: { default: "bar" }
2290
2314
  },
2291
2315
  setup(o) {
2292
- const t = o, { t: e } = ee();
2293
- return (a, n) => t.progress === "bar" ? (i(), k("ol", {
2316
+ const t = o, { t: e } = oe();
2317
+ return (a, n) => t.progress === "bar" ? (i(), y("ol", {
2294
2318
  key: 0,
2295
2319
  "aria-label": s(e)("core.steps.label"),
2296
2320
  "data-test": "step-bar",
2297
2321
  class: "grid min-w-0 gap-2",
2298
2322
  style: ct({ gridTemplateColumns: `repeat(${t.flow.count.value}, minmax(0, 1fr))` })
2299
2323
  }, [
2300
- (i(!0), k(re, null, xe(t.flow.steps.value, (l) => (i(), k("li", {
2324
+ (i(!0), y(ue, null, xe(t.flow.steps.value, (l) => (i(), y("li", {
2301
2325
  key: l.name,
2302
2326
  class: "flex min-w-0",
2303
2327
  "aria-current": l.state === "current" ? "step" : void 0
2304
2328
  }, [
2305
- (i(), q(ft(l.reachable ? "button" : "div"), {
2329
+ (i(), O(ft(l.reachable ? "button" : "div"), {
2306
2330
  type: l.reachable ? "button" : void 0,
2307
2331
  disabled: l.reachable ? t.flow.busy.value : void 0,
2308
2332
  "data-test": `step-${l.name}`,
@@ -2310,7 +2334,7 @@ const Sl = {
2310
2334
  class: j(["group flex min-w-0 flex-1 flex-col gap-1.5 text-left", l.reachable ? "cursor-pointer rounded-control focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus disabled:cursor-default" : ""]),
2311
2335
  onClick: (u) => l.reachable ? t.flow.goTo(l.name) : void 0
2312
2336
  }, {
2313
- default: c(() => [
2337
+ default: m(() => [
2314
2338
  p("span", {
2315
2339
  class: j(["h-1 rounded-full transition-colors duration-motion-normal", l.errors > 0 ? "bg-status-danger-solid" : l.state === "current" ? "bg-tint" : l.state === "done" ? "bg-control-on" : "bg-fill-strong"]),
2316
2340
  "aria-hidden": "true"
@@ -2318,43 +2342,43 @@ const Sl = {
2318
2342
  p("span", {
2319
2343
  class: j(["flex min-w-0 items-center gap-1.5 text-footnote", l.state === "current" ? "font-bold text-content-strong" : l.state === "done" ? "font-medium text-content-link" : "font-medium text-content-muted"])
2320
2344
  }, [
2321
- l.state === "done" ? (i(), q(s(Q), {
2345
+ l.state === "done" ? (i(), O(s(te), {
2322
2346
  key: 0,
2323
2347
  name: "checkCustom",
2324
2348
  size: 12,
2325
2349
  class: "shrink-0"
2326
- })) : z("", !0),
2350
+ })) : T("", !0),
2327
2351
  p("span", {
2328
2352
  class: j(["truncate", l.reachable ? "group-hover:text-content-link" : ""])
2329
- }, C(l.position) + ". " + C(l.label), 3),
2330
- l.errors > 0 ? (i(), k("span", {
2353
+ }, _(l.position) + ". " + _(l.label), 3),
2354
+ l.errors > 0 ? (i(), y("span", {
2331
2355
  key: 1,
2332
2356
  "data-test": "step-errors",
2333
2357
  "aria-label": s(e)("core.form.sections.errors", { count: l.errors }),
2334
2358
  class: "min-w-4.5 shrink-0 rounded-full bg-status-danger-solid px-1.5 text-center text-caption font-semibold text-white"
2335
- }, C(l.errors), 9, Ll)) : z("", !0),
2336
- l.state === "done" ? (i(), k("span", Tl, C(s(e)("core.steps.done")), 1)) : z("", !0)
2359
+ }, _(l.errors), 9, zl)) : T("", !0),
2360
+ l.state === "done" ? (i(), y("span", Dl, _(s(e)("core.steps.done")), 1)) : T("", !0)
2337
2361
  ], 2)
2338
2362
  ]),
2339
2363
  _: 2
2340
2364
  }, 1032, ["type", "disabled", "data-test", "data-state", "class", "onClick"]))
2341
- ], 8, Bl))), 128))
2342
- ], 12, Fl)) : (i(), k("div", Dl, [
2343
- (i(!0), k(re, null, xe(t.flow.steps.value, (l) => (i(), k("span", {
2365
+ ], 8, Tl))), 128))
2366
+ ], 12, Ll)) : (i(), y("div", Vl, [
2367
+ (i(!0), y(ue, null, xe(t.flow.steps.value, (l) => (i(), y("span", {
2344
2368
  key: l.name,
2345
2369
  class: j(["h-1.5 rounded-full transition-all duration-motion-fast", [l.state === "current" ? "w-4.5" : "w-1.5", l.errors > 0 ? "bg-status-danger-solid" : l.state === "todo" && l.position > t.flow.index.value ? "bg-fill-strong" : "bg-tint"]]),
2346
2370
  "data-state": l.errors > 0 ? "error" : l.state
2347
- }, null, 10, zl))), 128))
2371
+ }, null, 10, ql))), 128))
2348
2372
  ]));
2349
2373
  }
2350
- }), ql = ["data-step"], Rl = {
2374
+ }), Ol = ["data-step"], Ml = {
2351
2375
  class: "sr-only",
2352
2376
  "aria-live": "polite"
2353
- }, Ml = {
2377
+ }, jl = {
2354
2378
  key: 1,
2355
2379
  "data-test": "step-restored",
2356
2380
  class: "flex items-center gap-2 text-footnote text-content-muted"
2357
- }, Eo = /* @__PURE__ */ K({
2381
+ }, Go = /* @__PURE__ */ P({
2358
2382
  __name: "StepForm",
2359
2383
  props: {
2360
2384
  flow: {},
@@ -2363,40 +2387,40 @@ const Sl = {
2363
2387
  },
2364
2388
  emits: ["cancel"],
2365
2389
  setup(o) {
2366
- const t = o, { t: e } = ee(), a = H("body");
2367
- return ie(() => t.flow.current.value.name, async () => {
2368
- await ke(), a.value?.focus();
2369
- }), ie(() => t.flow.refusals.value, async () => {
2370
- await ke(), a.value && await ze(a.value);
2371
- }), (n, l) => (i(), k("div", {
2390
+ const t = o, { t: e } = oe(), a = U("body");
2391
+ return de(() => t.flow.current.value.name, async () => {
2392
+ await he(), a.value?.focus();
2393
+ }), de(() => t.flow.refusals.value, async () => {
2394
+ await he(), a.value && await De(a.value);
2395
+ }), (n, l) => (i(), y("div", {
2372
2396
  class: "flex min-w-0 flex-col gap-group-gap",
2373
2397
  "data-test": "step-form",
2374
2398
  "data-step": t.flow.current.value.name
2375
2399
  }, [
2376
- t.progress !== "none" ? (i(), q(Vl, {
2400
+ t.progress !== "none" ? (i(), O(Rl, {
2377
2401
  key: 0,
2378
2402
  flow: t.flow,
2379
2403
  progress: t.progress
2380
- }, null, 8, ["flow", "progress"])) : z("", !0),
2381
- p("p", Rl, C(t.flow.subtitle.value), 1),
2382
- t.flow.restored.value ? (i(), k("div", Ml, [
2383
- p("span", null, C(s(e)("core.steps.restored")), 1),
2384
- O(ye, {
2404
+ }, null, 8, ["flow", "progress"])) : T("", !0),
2405
+ p("p", Ml, _(t.flow.subtitle.value), 1),
2406
+ t.flow.restored.value ? (i(), y("div", jl, [
2407
+ p("span", null, _(s(e)("core.steps.restored")), 1),
2408
+ M(ge, {
2385
2409
  prominence: "link",
2386
2410
  size: "sm",
2387
2411
  onClick: l[0] || (l[0] = (u) => t.flow.restart())
2388
2412
  }, {
2389
- default: c(() => [
2390
- Y(C(s(e)("core.steps.start_over")), 1)
2413
+ default: m(() => [
2414
+ Y(_(s(e)("core.steps.start_over")), 1)
2391
2415
  ]),
2392
2416
  _: 1
2393
2417
  })
2394
- ])) : z("", !0),
2395
- (i(), q(Oe, {
2418
+ ])) : T("", !0),
2419
+ (i(), O(Me, {
2396
2420
  key: t.flow.current.value.name,
2397
2421
  form: t.flow
2398
2422
  }, null, 8, ["form"])),
2399
- (i(), k("form", {
2423
+ (i(), y("form", {
2400
2424
  key: t.flow.current.value.name,
2401
2425
  ref_key: "body",
2402
2426
  ref: a,
@@ -2404,9 +2428,9 @@ const Sl = {
2404
2428
  novalidate: "",
2405
2429
  "data-test": "step-body",
2406
2430
  class: j(["flex min-w-0 flex-col gap-group-gap outline-none", t.flow.direction.value === "back" ? "animate-step-back" : t.flow.direction.value === "forward" ? "animate-step-in" : ""]),
2407
- onSubmit: l[1] || (l[1] = ge((u) => t.flow.next(), ["prevent"]))
2431
+ onSubmit: l[1] || (l[1] = be((u) => t.flow.next(), ["prevent"]))
2408
2432
  }, [
2409
- B(n.$slots, t.flow.current.value.name),
2433
+ C(n.$slots, t.flow.current.value.name),
2410
2434
  l[3] || (l[3] = p("button", {
2411
2435
  type: "submit",
2412
2436
  class: "sr-only",
@@ -2414,87 +2438,87 @@ const Sl = {
2414
2438
  "aria-hidden": "true"
2415
2439
  }, null, -1))
2416
2440
  ], 34)),
2417
- t.navigation === "inline" ? (i(), q(Cl, {
2441
+ t.navigation === "inline" ? (i(), O(Bl, {
2418
2442
  key: 2,
2419
2443
  flow: t.flow,
2420
2444
  onCancel: l[2] || (l[2] = (u) => n.$emit("cancel"))
2421
- }, null, 8, ["flow"])) : z("", !0)
2422
- ], 8, ql));
2445
+ }, null, 8, ["flow"])) : T("", !0)
2446
+ ], 8, Ol));
2423
2447
  }
2424
2448
  });
2425
2449
  export {
2426
2450
  _t as Calendar,
2427
- ho as CardSelectField,
2428
- ko as CheckboxField,
2429
- xo as ChoiceChips,
2430
- wo as ComboField,
2431
- Ho as CommandDialog,
2432
- dn as DateField,
2433
- $o as DateTimeField,
2434
- Ro as EditorPage,
2435
- No as ErrorBag,
2436
- he as Field,
2437
- _o as FileField,
2438
- Oe as FormErrors,
2451
+ xo as CardSelectField,
2452
+ wo as CheckboxField,
2453
+ $o as ChoiceChips,
2454
+ _o as ComboField,
2455
+ Yo as CommandDialog,
2456
+ fn as DateField,
2457
+ So as DateTimeField,
2458
+ Mo as EditorPage,
2459
+ Ko as ErrorBag,
2460
+ ye as Field,
2461
+ Co as FileField,
2462
+ Me as FormErrors,
2439
2463
  qt as FormGroup,
2440
- So as FormGroupButton,
2441
- Co as FormIndent,
2464
+ Fo as FormGroupButton,
2465
+ Bo as FormIndent,
2442
2466
  mt as FormRow,
2443
- hn as FormView,
2444
- vn as GroupEditAction,
2445
- zo as GroupSheet,
2446
- Fo as I18nField,
2447
- tn as LeaveGuardRoot,
2448
- Wo as MissingLeaveGuardRootError,
2449
- Bo as MoneyField,
2450
- Lo as MonthYearField,
2451
- To as MultiSelectField,
2452
- Oo as NumberCell,
2467
+ xn as FormView,
2468
+ bn as GroupEditAction,
2469
+ qo as GroupSheet,
2470
+ Lo as I18nField,
2471
+ ln as LeaveGuardRoot,
2472
+ Zo as MissingLeaveGuardRootError,
2473
+ To as MoneyField,
2474
+ zo as MonthYearField,
2475
+ Do as MultiSelectField,
2476
+ Eo as NumberCell,
2453
2477
  jt as NumberField,
2454
2478
  We as OptionList,
2455
- Fn as OtpInput,
2456
- Do as PhotoField,
2457
- Vo as RecordGroupScope,
2458
- Ln as SegmentedField,
2459
- xn as SelectField,
2460
- Eo as StepForm,
2461
- Cl as StepNavigation,
2462
- Vl as StepProgress,
2463
- Dn as SwitchField,
2464
- nn as TextField,
2465
- Vn as TextareaField,
2466
- fn as TimeField,
2479
+ Ln as OtpInput,
2480
+ Vo as PhotoField,
2481
+ Ro as RecordGroupScope,
2482
+ zn as SegmentedField,
2483
+ $n as SelectField,
2484
+ Go as StepForm,
2485
+ Bl as StepNavigation,
2486
+ Rl as StepProgress,
2487
+ Vn as SwitchField,
2488
+ rn as TextField,
2489
+ Rn as TextareaField,
2490
+ vn as TimeField,
2467
2491
  nt as checkFile,
2468
- pn as createFieldGroups,
2469
- Jo as createLeaveGuard,
2470
- ce as fieldDefaults,
2471
- Uo as fieldKey,
2472
- de as fieldProps,
2473
- ze as focusFirstError,
2492
+ gn as createFieldGroups,
2493
+ Xo as createLeaveGuard,
2494
+ me as fieldDefaults,
2495
+ Wo as fieldKey,
2496
+ fe as fieldProps,
2497
+ De as focusFirstError,
2474
2498
  bt as formEditableKey,
2475
2499
  Be as formatBytes,
2476
- _n as groupOptions,
2477
- Xo as installLeaveGuard,
2478
- Qo as leaveGuardKey,
2479
- Sn as matchOptions,
2480
- Ma as missingLocales,
2481
- bn as provideRecordGroups,
2482
- rn as recentChoicesKey,
2500
+ Cn as groupOptions,
2501
+ Qo as installLeaveGuard,
2502
+ en as leaveGuardKey,
2503
+ Fn as matchOptions,
2504
+ ja as missingLocales,
2505
+ yn as provideRecordGroups,
2506
+ dn as recentChoicesKey,
2483
2507
  Rt as recordGroupsKey,
2484
2508
  st as useCommand,
2485
- Xt as useDirtySnapshot,
2509
+ Zt as useDirtySnapshot,
2486
2510
  at as useFieldMode,
2487
- Po as useForm,
2488
- qo as useGroupSheet,
2489
- Ko as useHiddenFieldErrors,
2511
+ Ao as useForm,
2512
+ Oo as useGroupSheet,
2513
+ Ho as useHiddenFieldErrors,
2490
2514
  Ie as useLeaveGuard,
2491
- Zo as useLeaveGuardContext,
2492
- wn as useOptions,
2493
- Mo as useRecordDialog,
2494
- gn as useRecordGroups,
2495
- ln as useResourceForm,
2515
+ tn as useLeaveGuardContext,
2516
+ _n as useOptions,
2517
+ jo as useRecordDialog,
2518
+ hn as useRecordGroups,
2519
+ nn as useResourceForm,
2496
2520
  Yt as useSaveChrome,
2497
- yl as useSectionStates,
2498
- yo as useSheetDiscardGuard,
2499
- jo as useStepForm
2521
+ kl as useSectionStates,
2522
+ ko as useSheetDiscardGuard,
2523
+ Io as useStepForm
2500
2524
  };