vlite3 1.4.30 → 1.4.32

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 (79) hide show
  1. package/components/Accordion/Accordion.vue.js +19 -16
  2. package/components/Accordion/AccordionContent.vue.js +2 -2
  3. package/components/Accordion/AccordionItem.vue.js +38 -36
  4. package/components/CategoryManager/CategoryManager.vue2.js +3 -2
  5. package/components/Chart/GanttChart.vue.d.ts +13 -1
  6. package/components/Chart/GanttChart.vue.js +2 -2
  7. package/components/Chart/GanttChart.vue2.js +1185 -607
  8. package/components/Chart/GanttChartDateUtils.d.ts +38 -0
  9. package/components/Chart/GanttChartDateUtils.js +79 -0
  10. package/components/Chart/GanttChartDependencyUtils.d.ts +92 -0
  11. package/components/Chart/GanttChartDependencyUtils.js +113 -0
  12. package/components/Chart/GanttChartResizePreviewUtils.d.ts +52 -0
  13. package/components/Chart/GanttChartResizePreviewUtils.js +53 -0
  14. package/components/Chart/GanttChartTooltipUtils.d.ts +41 -0
  15. package/components/Chart/GanttChartTooltipUtils.js +63 -0
  16. package/components/Chart/index.d.ts +3 -1
  17. package/components/Chart/types.d.ts +76 -1
  18. package/components/Chart/types.js +8 -0
  19. package/components/FilePicker/FilePickerDropzone.vue.js +1 -1
  20. package/components/FilePicker/index.vue.js +2 -4
  21. package/components/Form/AccordionView.vue2.js +5 -2
  22. package/components/Form/AccordionView.vue3.js +250 -0
  23. package/components/Form/Form.vue.d.ts +0 -2
  24. package/components/Form/Form.vue.js +1 -1
  25. package/components/Form/Form.vue2.js +415 -354
  26. package/components/Form/FormField.vue.js +175 -196
  27. package/components/Form/FormFields.vue.js +1 -1
  28. package/components/Form/FormFields.vue2.js +60 -60
  29. package/components/Form/FormSkeleton.vue.js +50 -35
  30. package/components/Form/TableView.vue.js +59 -43
  31. package/components/Form/composables/useForm.js +159 -148
  32. package/components/Form/index.vue2.js +8 -8
  33. package/components/Form/utils/form.utils.d.ts +2 -0
  34. package/components/Form/utils/form.utils.js +17 -13
  35. package/components/GoogleMap.vue.d.ts +1 -1
  36. package/components/PanZoomViewport/PanZoomViewport.vue.d.ts +189 -0
  37. package/components/PanZoomViewport/PanZoomViewport.vue.js +7 -0
  38. package/components/PanZoomViewport/PanZoomViewport.vue2.js +536 -0
  39. package/components/PanZoomViewport/index.d.ts +2 -0
  40. package/components/PanZoomViewport/types.d.ts +121 -0
  41. package/components/ScaleGenerator/ScaleGenerator.vue.d.ts +3 -0
  42. package/components/ScaleGenerator/ScaleGenerator.vue.js +5 -108
  43. package/components/ScaleGenerator/ScaleGenerator.vue2.js +143 -2
  44. package/components/ScaleGenerator/types.d.ts +2 -0
  45. package/components/Screen/ScreenFilter.vue.js +18 -17
  46. package/components/SeoProvider/SeoProvider.vue.d.ts +4 -1
  47. package/components/SeoProvider/SeoProvider.vue.js +39 -33
  48. package/components/SeoProvider/domAdapter.d.ts +1 -4
  49. package/components/SeoProvider/domAdapter.js +71 -58
  50. package/components/SeoProvider/index.d.ts +5 -2
  51. package/components/SeoProvider/normalizeSeo.d.ts +10 -49
  52. package/components/SeoProvider/normalizeSeo.js +246 -182
  53. package/components/SeoProvider/plainText.d.ts +8 -0
  54. package/components/SeoProvider/plainText.js +117 -0
  55. package/components/SeoProvider/seoUrl.d.ts +13 -0
  56. package/components/SeoProvider/seoUrl.js +25 -0
  57. package/components/SeoProvider/structuredData.d.ts +100 -0
  58. package/components/SeoProvider/structuredData.js +33 -0
  59. package/components/SeoProvider/types.d.ts +47 -109
  60. package/components/Tabes/Tabes.vue.d.ts +10 -1
  61. package/components/Tabes/Tabes.vue.js +1 -1
  62. package/components/Tabes/Tabes.vue2.js +271 -170
  63. package/components/Tabes/TabesMarkerGeometry.d.ts +34 -0
  64. package/components/Tabes/TabesMarkerGeometry.js +21 -0
  65. package/components/Tabes/tabes.utils.d.ts +14 -0
  66. package/components/Tabes/tabes.utils.js +26 -0
  67. package/components/Tabes/types.d.ts +32 -0
  68. package/components/ThemeProvider/ThemeProvider.vue.d.ts +2 -0
  69. package/components/ThemeProvider/ThemeProvider.vue.js +29 -23
  70. package/components/ThemeProvider/index.d.ts +1 -1
  71. package/components/ThemeProvider/themeVars.d.ts +9 -13
  72. package/components/ThemeProvider/themeVars.js +173 -125
  73. package/components/ThemeProvider/types.d.ts +10 -0
  74. package/components/index.d.ts +2 -1
  75. package/index.d.ts +1 -0
  76. package/index.js +415 -387
  77. package/package.json +3 -2
  78. package/style.css +1 -1
  79. package/components/Form/AccordionView.vue.js +0 -222
@@ -1,35 +1,35 @@
1
- import { defineComponent as Ve, computed as o, inject as Le, onMounted as ue, onUnmounted as Y, ref as M, watch as de, openBlock as n, createElementBlock as d, withKeys as ce, withModifiers as Z, normalizeClass as m, createElementVNode as x, createVNode as k, mergeProps as G, toDisplayString as H, renderSlot as me, unref as a, createCommentVNode as c, createBlock as F, withCtx as ve, Fragment as Ie, renderList as ze } from "vue";
2
- import { useForm as Ne } from "./composables/useForm.js";
3
- import j from "./FormFields.vue.js";
4
- import Be from "./FormField.vue.js";
5
- import De from "./FormSkeleton.vue.js";
6
- import qe from "../Accordion/Accordion.vue.js";
1
+ import { defineComponent as Ge, computed as o, inject as He, getCurrentInstance as $e, onMounted as Me, onUnmounted as _, shallowRef as ee, watch as te, nextTick as Oe, openBlock as n, createElementBlock as c, withKeys as ye, withModifiers as ae, normalizeClass as v, createElementVNode as p, createVNode as k, mergeProps as O, toDisplayString as j, renderSlot as he, unref as l, createCommentVNode as d, createBlock as C, withCtx as be, Fragment as je, renderList as Ke, isMemoSame as Ye } from "vue";
2
+ import { useForm as Je } from "./composables/useForm.js";
3
+ import X from "./FormFields.vue.js";
4
+ import Qe from "./FormField.vue.js";
5
+ import We from "./FormSkeleton.vue.js";
6
+ import Xe from "../Accordion/Accordion.vue.js";
7
7
  import S from "../Button.vue.js";
8
- import $e from "../BackButton.vue.js";
9
- import Ge from "../Timeline/Timeline.vue.js";
8
+ import Ze from "../BackButton.vue.js";
9
+ import _e from "../Timeline/Timeline.vue.js";
10
10
  import "@iconify/vue";
11
- import { resolveI18nText as He } from "../../utils/i18n.js";
12
- import { useVLiteConfig as Ee } from "../../core/config.js";
13
- import { resolveFieldType as Ke } from "./utils/form.utils.js";
14
- const Me = ["onKeydown"], je = { class: "flex items-center gap-3" }, Oe = { class: "flex items-center gap-2 shrink-0" }, Je = {
11
+ import { resolveI18nText as et } from "../../utils/i18n.js";
12
+ import { useVLiteConfig as tt } from "../../core/config.js";
13
+ import { resolveFieldType as at } from "./utils/form.utils.js";
14
+ const lt = ["onKeydown"], it = { class: "flex items-center gap-3" }, st = { class: "flex items-center gap-2 shrink-0" }, nt = {
15
15
  key: 0,
16
16
  class: "w-full order-first lg:order-last lg:min-w-100 lg:max-w-[380px] shrink-0"
17
- }, Qe = { key: 0 }, We = {
17
+ }, ot = { key: 0 }, rt = {
18
18
  key: 0,
19
19
  class: "flex gap-3 items-end ml-auto"
20
- }, Xe = { class: "text-base font-semibold text-foreground" }, Ye = {
20
+ }, ut = { class: "text-base font-semibold text-foreground" }, dt = {
21
21
  key: 0,
22
22
  class: "text-sm text-muted-foreground mt-1"
23
- }, Ze = {
23
+ }, ct = {
24
24
  key: 3,
25
25
  class: "form-step"
26
- }, _e = { class: "text-lg font-semibold text-foreground" }, et = {
26
+ }, vt = { class: "text-lg font-semibold text-foreground" }, mt = {
27
27
  key: 0,
28
28
  class: "text-sm text-muted-foreground mt-1"
29
- }, tt = {
29
+ }, ft = {
30
30
  key: 0,
31
31
  class: "flex gap-3 items-center"
32
- }, gt = /* @__PURE__ */ Ve({
32
+ }, Pt = /* @__PURE__ */ Ge({
33
33
  __name: "Form",
34
34
  props: {
35
35
  schema: {},
@@ -71,413 +71,468 @@ const Me = ["onKeydown"], je = { class: "flex items-center gap-3" }, Oe = { clas
71
71
  layout: { default: "vertical" }
72
72
  },
73
73
  emits: ["onSubmit", "onCancel", "onStepChange", "onAddonAction", "onBack", "onChange"],
74
- setup(e, { expose: fe, emit: ge }) {
75
- const t = e, g = ge, he = o(() => He(t.pageTitleI18n, t.pageTitle)), h = Le("modal-context", null), ye = Ee(), E = o(() => ye?.components?.form || {}), V = o(() => t.variant ?? E.value.variant ?? "outline"), L = o(() => t.size ?? E.value.size ?? "md"), I = o(() => t.rounded ?? E.value.rounded ?? "md"), K = o(
76
- () => t.showRequiredAsterisk ?? E.value.showRequiredAsterisk ?? !0
77
- ), O = o(() => t.showCancel || !!h), U = o(() => !!h), z = o(
78
- () => t.layout !== "inline" && (t.stickyFooter || U.value)
74
+ setup(e, { expose: xe, emit: pe }) {
75
+ const i = e, f = pe, ke = o(() => et(i.pageTitleI18n, i.pageTitle)), g = He("modal-context", null), Ce = tt(), K = o(() => Ce?.components?.form || {}), U = o(() => i.variant ?? K.value.variant ?? "outline"), I = o(() => i.size ?? K.value.size ?? "md"), z = o(() => i.rounded ?? K.value.rounded ?? "md"), D = o(
76
+ () => i.showRequiredAsterisk ?? K.value.showRequiredAsterisk ?? !0
77
+ ), Y = o(() => i.showCancel || !!g), E = o(() => !!g), Se = $e(), Fe = o(() => {
78
+ const t = Se?.vnode.props;
79
+ return !!t && (Object.prototype.hasOwnProperty.call(t, "stickyFooter") || Object.prototype.hasOwnProperty.call(t, "sticky-footer")) && i.stickyFooter;
80
+ }), L = o(
81
+ () => i.layout !== "inline" && (i.stickyFooter || E.value)
79
82
  );
80
- ue(() => {
81
- t.footer && U.value && h?.registerFormFooter?.(!0);
82
- }), Y(() => {
83
- U.value && h?.registerFormFooter?.(!1);
83
+ Me(() => {
84
+ i.footer && E.value && g?.registerFormFooter?.(!0);
85
+ }), _(() => {
86
+ E.value && g?.registerFormFooter?.(!1);
84
87
  });
85
- const be = M(null), J = M(null), _ = M(!1);
86
- let Q = null;
87
- ue(() => {
88
- J.value && (Q = new IntersectionObserver(
89
- ([i]) => {
90
- _.value = !i.isIntersecting;
91
- },
92
- { threshold: 0 }
93
- ), Q.observe(J.value));
94
- }), Y(() => {
95
- Q?.disconnect();
88
+ const F = ee(null), q = ee(!1), le = (t) => {
89
+ let a = t?.parentElement ?? null;
90
+ for (; a && a !== document.body; ) {
91
+ const { overflowY: s } = getComputedStyle(a);
92
+ if (s === "auto" || s === "scroll" || s === "overlay")
93
+ return a;
94
+ a = a.parentElement;
95
+ }
96
+ return document.documentElement;
97
+ }, ie = () => {
98
+ if (!L.value || !F.value) {
99
+ q.value = !1;
100
+ return;
101
+ }
102
+ const t = le(F.value);
103
+ if (!t) {
104
+ q.value = !1;
105
+ return;
106
+ }
107
+ q.value = t.scrollHeight > t.clientHeight + 1;
108
+ }, we = o(
109
+ () => L.value && (E.value || Fe.value || q.value)
110
+ );
111
+ let A = null;
112
+ te(
113
+ [F, L, () => i.schemaLoading],
114
+ async () => {
115
+ if (A?.disconnect(), A = null, await Oe(), !F.value || !L.value) {
116
+ q.value = !1;
117
+ return;
118
+ }
119
+ const t = le(F.value);
120
+ if (ie(), typeof ResizeObserver > "u" || !t) return;
121
+ A = new ResizeObserver(() => ie()), A.observe(t), A.observe(F.value);
122
+ const a = F.value.closest("form");
123
+ a && A.observe(a);
124
+ },
125
+ { flush: "post", immediate: !0 }
126
+ ), _(() => {
127
+ A?.disconnect();
96
128
  });
97
- const w = o(() => !t.schema || t.schema.length === 0 ? !1 : Array.isArray(t.schema[0])), u = o(() => t.tabs && t.tabs.length > 0 && w.value), r = M(0), ee = o(() => t.tabs ? t.tabs.map((i, l) => ({
98
- id: i.id?.toString() || l.toString(),
99
- title: i.title,
100
- icon: i.icon,
101
- description: i.description,
102
- status: l < r.value ? "completed" : l === r.value ? "current" : "upcoming"
103
- })) : []), N = o(() => w.value ? t.schema : [t.schema]), te = o(() => u.value ? N.value[r.value] || [] : []), ae = (i) => {
104
- if (!i) return [];
105
- if (Array.isArray(i)) return i;
129
+ const T = o(() => !i.schema || i.schema.length === 0 ? !1 : Array.isArray(i.schema[0])), u = o(() => i.tabs && i.tabs.length > 0 && T.value), r = ee(0), se = o(() => i.tabs ? i.tabs.map((t, a) => ({
130
+ id: t.id?.toString() || a.toString(),
131
+ title: t.title,
132
+ icon: t.icon,
133
+ description: t.description,
134
+ status: a < r.value ? "completed" : a === r.value ? "current" : "upcoming"
135
+ })) : []), G = o(() => T.value ? i.schema : [i.schema]), ne = o(() => u.value ? G.value[r.value] || [] : []), oe = (t) => {
136
+ if (!t) return [];
137
+ if (Array.isArray(t)) return t;
106
138
  try {
107
- const l = i({
108
- values: v.value,
109
- globalValues: v.value,
110
- isUpdate: t.isUpdate
139
+ const a = t({
140
+ values: m.value,
141
+ globalValues: m.value,
142
+ isUpdate: i.isUpdate
111
143
  });
112
- return Array.isArray(l) ? l : [];
113
- } catch (l) {
114
- return console.error("[Form] Error evaluating dynamic group headings:", l), [];
144
+ return Array.isArray(a) ? a : [];
145
+ } catch (a) {
146
+ return console.error("[Form] Error evaluating dynamic group headings:", a), [];
115
147
  }
116
- }, W = o(() => ae(t.groupsHeadings)), X = o(
117
- () => ae(t.groupHeadingsDescription)
118
- ), B = o(() => {
119
- const i = N.value, l = [];
120
- for (let s = 0; s < i.length; s++) {
121
- const f = i[s];
122
- !Array.isArray(f) || f.length === 0 || f.some((Pe) => T(Pe)) && l.push({ schema: f, originalIndex: s });
148
+ }, J = o(() => oe(i.groupsHeadings)), Q = o(
149
+ () => oe(i.groupHeadingsDescription)
150
+ ), H = o(() => {
151
+ const t = G.value, a = [];
152
+ for (let s = 0; s < t.length; s++) {
153
+ const x = t[s];
154
+ !Array.isArray(x) || x.length === 0 || x.some((me) => R(me)) && a.push({ schema: x, originalIndex: s });
123
155
  }
124
- return l;
125
- }), y = o(() => u.value ? null : (w.value ? t.schema.flat() : t.schema).find((l) => Ke(l, {
126
- values: v.value,
127
- globalValues: v.value,
128
- isUpdate: t.isUpdate
129
- }) === "thumbnailSelector") ?? null), A = o(() => !!y.value), {
130
- formValues: v,
131
- errors: p,
132
- isSubmitting: b,
133
- fieldLoading: D,
134
- handleFieldChange: le,
135
- validateField: xe,
136
- validateAll: ie,
137
- isFieldVisible: T,
138
- isFieldDisabled: R,
139
- isFieldReadonly: q,
140
- handleSubmit: pe,
141
- reinitialize: ke,
142
- resetForm: Ce,
143
- setFieldError: Fe,
144
- clearErrors: Se
145
- } = Ne({
146
- schema: t.schema,
147
- values: t.values,
148
- isUpdate: t.isUpdate,
149
- folderId: t.folderId,
150
- emitFields: t.emitFields,
151
- onSubmit: (i) => {
152
- g("onSubmit", i, h?.close || (() => {
156
+ return a;
157
+ }), Ae = o(
158
+ () => H.value.map((t) => ({
159
+ id: `form-group-${t.originalIndex}`,
160
+ title: J.value?.[t.originalIndex] || "",
161
+ description: Q.value?.[t.originalIndex] || void 0
162
+ }))
163
+ ), Te = o(() => {
164
+ const t = /* @__PURE__ */ new Map();
165
+ for (const a of H.value)
166
+ t.set(`form-group-${a.originalIndex}`, a.schema);
167
+ return t;
168
+ }), h = o(() => u.value ? null : (T.value ? i.schema.flat() : i.schema).find((a) => at(a, {
169
+ values: m.value,
170
+ globalValues: m.value,
171
+ isUpdate: i.isUpdate
172
+ }) === "thumbnailSelector") ?? null), P = o(() => !!h.value), {
173
+ formValues: m,
174
+ errors: b,
175
+ isSubmitting: y,
176
+ fieldLoading: V,
177
+ handleFieldChange: re,
178
+ validateField: Pe,
179
+ validateAll: ue,
180
+ isFieldVisible: R,
181
+ isFieldDisabled: B,
182
+ isFieldReadonly: $,
183
+ handleSubmit: Re,
184
+ reinitialize: Ue,
185
+ resetForm: Ie,
186
+ setFieldError: ze,
187
+ clearErrors: Le
188
+ } = Je({
189
+ schema: i.schema,
190
+ values: i.values,
191
+ isUpdate: i.isUpdate,
192
+ folderId: i.folderId,
193
+ emitFields: i.emitFields,
194
+ onSubmit: (t) => {
195
+ f("onSubmit", t, g?.close || (() => {
153
196
  }));
154
197
  }
155
198
  });
156
- de(
157
- () => t.loading || b.value,
158
- (i) => {
159
- h?.setSubmitting && h.setSubmitting(i);
199
+ te(
200
+ () => i.loading || y.value,
201
+ (t) => {
202
+ g?.setSubmitting && g.setSubmitting(t);
160
203
  },
161
204
  { immediate: !0 }
162
- ), Y(() => {
163
- h?.setSubmitting && h.setSubmitting(!1);
164
- }), de(
165
- [() => t.schema, () => t.values, () => t.schemaLoading],
166
- ([i, l, s]) => {
167
- s || ke(i, l);
205
+ ), _(() => {
206
+ g?.setSubmitting && g.setSubmitting(!1);
207
+ }), te(
208
+ [() => i.schema, () => i.values, () => i.schemaLoading],
209
+ ([t, a, s]) => {
210
+ s || Ue(t, a);
168
211
  }
169
212
  );
170
- const $ = (i, l) => {
171
- le(i, l.value, l.data), g("onChange", v.value);
172
- }, we = async () => {
213
+ const M = (t, a) => {
214
+ re(t, a.value, a.data), f("onChange", m.value);
215
+ }, Ve = async () => {
173
216
  if (!u.value) return !0;
174
- const i = te.value;
175
- let l = !0;
176
- for (const s of i) {
177
- if (!T(s) || R(s)) continue;
178
- await xe(s) && (l = !1);
217
+ const t = ne.value;
218
+ let a = !0;
219
+ for (const s of t) {
220
+ if (!R(s) || B(s)) continue;
221
+ await Pe(s) && (a = !1);
179
222
  }
180
- return l;
181
- }, Ae = o(() => u.value ? r.value < N.value.length - 1 : !1), se = o(() => u.value ? r.value > 0 : !1), P = o(() => u.value ? r.value === N.value.length - 1 : !0), ne = async () => {
182
- !Ae.value || !await we() || (r.value++, g("onStepChange", r.value));
183
- }, Te = () => {
184
- se.value && (r.value--, g("onStepChange", r.value));
185
- }, Ue = (i, l) => {
186
- l <= r.value && (r.value = l, g("onStepChange", r.value));
187
- }, C = async () => {
223
+ return a;
224
+ }, Be = o(() => u.value ? r.value < G.value.length - 1 : !1), de = o(() => u.value ? r.value > 0 : !1), N = o(() => u.value ? r.value === G.value.length - 1 : !0), ce = async () => {
225
+ !Be.value || !await Ve() || (r.value++, f("onStepChange", r.value));
226
+ }, Ne = () => {
227
+ de.value && (r.value--, f("onStepChange", r.value));
228
+ }, De = (t, a) => {
229
+ a <= r.value && (r.value = a, f("onStepChange", r.value));
230
+ }, w = async () => {
188
231
  if (u.value) {
189
- if (!P.value && !t.isUpdate) {
190
- await ne();
232
+ if (!N.value && !i.isUpdate) {
233
+ await ce();
191
234
  return;
192
235
  }
193
- if (!await ie()) {
194
- const l = N.value.findIndex(
195
- (s) => s.some((f) => !!p.value[f.name])
236
+ if (!await ue()) {
237
+ const a = G.value.findIndex(
238
+ (s) => s.some((x) => !!b.value[x.name])
196
239
  );
197
- l !== -1 && l !== r.value && (r.value = l, g("onStepChange", r.value));
240
+ a !== -1 && a !== r.value && (r.value = a, f("onStepChange", r.value));
198
241
  return;
199
242
  }
200
243
  }
201
244
  try {
202
- await pe();
245
+ await Re();
203
246
  } catch {
204
247
  }
205
- }, Re = (i) => {
206
- if (i.key !== "Enter" || i.defaultPrevented) return;
207
- const l = i.target;
208
- if (!l) return;
209
- const s = l.tagName.toLowerCase();
210
- s !== "textarea" && s !== "button" && (l.isContentEditable || (i.preventDefault(), C()));
211
- }, oe = (i) => {
212
- (i.metaKey || i.ctrlKey) && i.key === "s" && (i.preventDefault(), C());
248
+ }, Ee = (t) => {
249
+ if (t.key !== "Enter" || t.defaultPrevented) return;
250
+ const a = t.target;
251
+ if (!a) return;
252
+ const s = a.tagName.toLowerCase();
253
+ s !== "textarea" && s !== "button" && (a.isContentEditable || (t.preventDefault(), w()));
254
+ }, ve = (t) => {
255
+ (t.metaKey || t.ctrlKey) && t.key === "s" && (t.preventDefault(), w());
213
256
  };
214
- fe({
215
- formValues: v,
216
- errors: p,
217
- isSubmitting: b,
218
- handleSubmit: C,
219
- validateAll: ie,
220
- resetForm: Ce,
221
- setFieldError: Fe,
222
- clearErrors: Se,
223
- setFieldValue: le
257
+ xe({
258
+ formValues: m,
259
+ errors: b,
260
+ isSubmitting: y,
261
+ handleSubmit: w,
262
+ validateAll: ue,
263
+ resetForm: Ie,
264
+ setFieldError: ze,
265
+ clearErrors: Le,
266
+ setFieldValue: re
224
267
  });
225
- const re = () => {
226
- g("onCancel"), h && h?.close?.();
268
+ const Z = () => {
269
+ f("onCancel"), g && g?.close?.();
227
270
  };
228
- return (i, l) => (n(), d("form", {
229
- class: m(["form-container", t.class, e.isPage && "pb-10"]),
230
- onSubmit: Z(C, ["prevent"]),
271
+ return (t, a) => (n(), c("form", {
272
+ class: v(["form-container", i.class, e.isPage && "pb-10"]),
273
+ onSubmit: ae(w, ["prevent"]),
231
274
  onKeydown: [
232
- Re,
233
- ce(Z(oe, ["meta", "prevent"]), ["s"]),
234
- ce(Z(oe, ["ctrl", "prevent"]), ["s"])
275
+ Ee,
276
+ ye(ae(ve, ["meta", "prevent"]), ["s"]),
277
+ ye(ae(ve, ["ctrl", "prevent"]), ["s"])
235
278
  ]
236
279
  }, [
237
- e.isPage ? (n(), d("div", {
280
+ e.isPage ? (n(), c("div", {
238
281
  key: 0,
239
- class: m([
282
+ class: v([
240
283
  "form-page-header sticky top-0 z-30 bg-background flex items-center justify-between pb-3.5 pt-4 -mt-3.5 mb-4.5",
241
284
  e.pageHeaderClass
242
285
  ])
243
286
  }, [
244
- x("div", je, [
245
- k($e, G(e.backButtonProps, {
287
+ p("div", it, [
288
+ k(Ze, O(e.backButtonProps, {
246
289
  fallback: e.backButtonPath,
247
290
  class: "max-sm:w-8 max-sm:h-8 max-sm:min-w-8 max-sm:min-h-8 max-sm:px-0 shrink-0"
248
291
  }), null, 16, ["fallback"]),
249
- x("h1", {
250
- class: m(["text-foreground max-sm:text-lg text-fs-5 truncate", e.pageTitleClass])
251
- }, H(he.value), 3)
292
+ p("h1", {
293
+ class: v(["text-foreground max-sm:text-lg text-fs-5 truncate", e.pageTitleClass])
294
+ }, j(ke.value), 3)
252
295
  ]),
253
- x("div", Oe, [
254
- me(i.$slots, "header-actions", {
255
- values: a(v),
256
- isSubmitting: a(b),
257
- handleSubmit: C
296
+ p("div", st, [
297
+ he(t.$slots, "header-actions", {
298
+ values: l(m),
299
+ isSubmitting: l(y),
300
+ handleSubmit: w
258
301
  }, void 0, !0),
259
- k(S, G({
302
+ k(S, O({
260
303
  type: "button",
261
304
  variant: e.isUpdate ? "outline" : "primary",
262
305
  text: e.submitText
263
306
  }, e.submitProps, {
264
307
  disabled: e.schemaLoading,
265
- loading: e.loading || a(b),
266
- onClick: C,
308
+ loading: e.loading || l(y),
309
+ onClick: w,
267
310
  class: "max-sm:hidden"
268
311
  }), null, 16, ["variant", "text", "disabled", "loading"])
269
312
  ])
270
- ], 2)) : c("", !0),
271
- !e.schemaLoading && u.value && ee.value.length > 0 ? (n(), d("div", {
313
+ ], 2)) : d("", !0),
314
+ !e.schemaLoading && u.value && se.value.length > 0 ? (n(), c("div", {
272
315
  key: 1,
273
- class: m(["form-timeline", e.timelineTextPosition == "right" ? "mb-2" : "mb-8"])
316
+ class: v(["form-timeline", e.timelineTextPosition == "right" ? "mb-2" : "mb-8"])
274
317
  }, [
275
- k(a(Ge), {
276
- steps: ee.value,
318
+ k(l(_e), {
319
+ steps: se.value,
277
320
  activeStep: r.value,
278
321
  direction: "horizontal",
279
322
  textPosition: e.timelineTextPosition,
280
323
  clickable: !0,
281
- onStepClick: Ue
324
+ onStepClick: De
282
325
  }, null, 8, ["steps", "activeStep", "textPosition"])
283
- ], 2)) : c("", !0),
284
- x("div", {
285
- class: m(e.footer && z.value ? "pb-2" : "")
326
+ ], 2)) : d("", !0),
327
+ p("div", {
328
+ class: v(e.footer && L.value ? "pb-2" : "")
286
329
  }, [
287
- e.schemaLoading ? (n(), F(De, {
330
+ e.schemaLoading ? (n(), C(We, {
288
331
  key: 0,
289
- isGrouped: w.value
290
- }, null, 8, ["isGrouped"])) : (n(), d("div", {
332
+ isGrouped: T.value
333
+ }, null, 8, ["isGrouped"])) : (n(), c("div", {
291
334
  key: 1,
292
- class: m(A.value ? "flex flex-col lg:flex-row gap-10 lg:gap-16" : "")
335
+ class: v(P.value ? "flex flex-col lg:flex-row gap-10 lg:gap-16" : "")
293
336
  }, [
294
- A.value ? (n(), d("div", Je, [
295
- y.value && a(T)(y.value) ? (n(), F(Be, {
337
+ P.value ? (n(), c("div", nt, [
338
+ h.value && l(R)(h.value) ? (n(), C(Qe, {
296
339
  key: 0,
297
- field: y.value,
298
- value: a(v)[y.value.name],
299
- values: a(v),
300
- errors: a(p),
301
- variant: V.value,
302
- size: L.value,
303
- rounded: I.value,
304
- disabled: a(R)(y.value),
305
- readonly: a(q)(y.value),
306
- error: a(p)[y.value.name] || "",
340
+ field: h.value,
341
+ value: l(m)[h.value.name],
342
+ values: l(m),
343
+ errors: l(b),
344
+ variant: U.value,
345
+ size: I.value,
346
+ rounded: z.value,
347
+ disabled: l(B)(h.value),
348
+ readonly: l($)(h.value),
349
+ error: l(b)[h.value.name] || "",
307
350
  isUpdate: e.isUpdate,
308
- loading: a(D)[y.value?.name],
309
- onChange: l[0] || (l[0] = (s) => $(y.value.name, s))
310
- }, null, 8, ["field", "value", "values", "errors", "variant", "size", "rounded", "disabled", "readonly", "error", "isUpdate", "loading"])) : c("", !0)
311
- ])) : c("", !0),
312
- x("div", {
313
- class: m(A.value ? "flex-1 min-w-0 order-last lg:order-first" : "w-full")
351
+ loading: l(V)[h.value?.name],
352
+ onChange: a[0] || (a[0] = (s) => M(h.value.name, s))
353
+ }, null, 8, ["field", "value", "values", "errors", "variant", "size", "rounded", "disabled", "readonly", "error", "isUpdate", "loading"])) : d("", !0)
354
+ ])) : d("", !0),
355
+ p("div", {
356
+ class: v(P.value ? "flex-1 min-w-0 order-last lg:order-first" : "w-full")
314
357
  }, [
315
- w.value ? w.value && !u.value && e.groupLayout === "basic" ? (n(), d("div", {
358
+ T.value ? T.value && !u.value && e.groupLayout === "basic" ? (n(), c("div", {
316
359
  key: 1,
317
- class: m(["form-groups space-y-6", e.groupContainerClass])
360
+ class: v(["form-groups space-y-6", e.groupContainerClass])
318
361
  }, [
319
- (n(!0), d(Ie, null, ze(B.value, (s) => (n(), d("div", {
320
- key: s.originalIndex,
321
- class: m([
322
- "form-group overflow-hidden bg-body",
362
+ (n(!0), c(je, null, Ke(H.value, (s, x, me, W) => {
363
+ const fe = [
364
+ s.schema,
365
+ s.originalIndex,
366
+ l(m),
367
+ l(b),
368
+ l(V),
369
+ U.value,
370
+ I.value,
371
+ z.value,
372
+ J.value?.[s.originalIndex],
373
+ Q.value?.[s.originalIndex],
323
374
  e.groupClass,
324
- B.value.length > 1 ? "border rounded" : ""
325
- ])
326
- }, [
327
- W.value?.[s.originalIndex] ? (n(), d("div", {
328
- key: 0,
329
- class: m(["form-group-header bg-muted/50 px-4 py-2.5 border-b", e.headerClass])
375
+ e.groupBodyClass,
376
+ e.headerClass,
377
+ e.className,
378
+ e.isUpdate,
379
+ D.value
380
+ ];
381
+ if (W && W.key === s.originalIndex && Ye(W, fe)) return W;
382
+ const ge = (n(), c("div", {
383
+ key: s.originalIndex,
384
+ class: v([
385
+ "form-group overflow-hidden bg-body",
386
+ e.groupClass,
387
+ H.value.length > 1 ? "border rounded" : ""
388
+ ])
330
389
  }, [
331
- x("h3", Xe, H(W.value[s.originalIndex]), 1),
332
- X.value?.[s.originalIndex] ? (n(), d("p", Ye, H(X.value[s.originalIndex]), 1)) : c("", !0)
333
- ], 2)) : c("", !0),
334
- x("div", {
335
- class: m(["form-group-body", [e.groupBodyClass, B.value.length > 1 ? "p-4.5" : ""]])
336
- }, [
337
- k(j, {
338
- schema: s.schema,
339
- values: a(v),
340
- errors: a(p),
341
- fieldLoading: a(D),
342
- variant: V.value,
343
- size: L.value,
344
- rounded: I.value,
345
- className: e.className,
346
- isUpdate: e.isUpdate,
347
- showRequiredAsterisk: K.value,
348
- isFieldVisible: a(T),
349
- isFieldDisabled: a(R),
350
- isFieldReadonly: a(q),
351
- excludeTypes: A.value ? ["thumbnailSelector"] : [],
352
- onChange: $,
353
- onAddonAction: l[2] || (l[2] = (f) => g("onAddonAction", f))
354
- }, null, 8, ["schema", "values", "errors", "fieldLoading", "variant", "size", "rounded", "className", "isUpdate", "showRequiredAsterisk", "isFieldVisible", "isFieldDisabled", "isFieldReadonly", "excludeTypes"])
355
- ], 2)
356
- ], 2))), 128))
357
- ], 2)) : w.value && !u.value && e.groupLayout === "accordion" ? (n(), d("div", {
390
+ J.value?.[s.originalIndex] ? (n(), c("div", {
391
+ key: 0,
392
+ class: v(["form-group-header bg-muted/50 px-4 py-2.5 border-b", e.headerClass])
393
+ }, [
394
+ p("h3", ut, j(J.value[s.originalIndex]), 1),
395
+ Q.value?.[s.originalIndex] ? (n(), c("p", dt, j(Q.value[s.originalIndex]), 1)) : d("", !0)
396
+ ], 2)) : d("", !0),
397
+ p("div", {
398
+ class: v(["form-group-body", [e.groupBodyClass, H.value.length > 1 ? "p-4.5" : ""]])
399
+ }, [
400
+ k(X, {
401
+ schema: s.schema,
402
+ values: l(m),
403
+ errors: l(b),
404
+ fieldLoading: l(V),
405
+ variant: U.value,
406
+ size: I.value,
407
+ rounded: z.value,
408
+ className: e.className,
409
+ isUpdate: e.isUpdate,
410
+ showRequiredAsterisk: D.value,
411
+ isFieldVisible: l(R),
412
+ isFieldDisabled: l(B),
413
+ isFieldReadonly: l($),
414
+ excludeTypes: P.value ? ["thumbnailSelector"] : [],
415
+ onChange: M,
416
+ onAddonAction: a[2] || (a[2] = (qe) => f("onAddonAction", qe))
417
+ }, null, 8, ["schema", "values", "errors", "fieldLoading", "variant", "size", "rounded", "className", "isUpdate", "showRequiredAsterisk", "isFieldVisible", "isFieldDisabled", "isFieldReadonly", "excludeTypes"])
418
+ ], 2)
419
+ ], 2));
420
+ return ge.memo = fe, ge;
421
+ }, a, 3), 128))
422
+ ], 2)) : T.value && !u.value && e.groupLayout === "accordion" ? (n(), c("div", {
358
423
  key: 2,
359
- class: m(e.groupContainerClass)
424
+ class: v(e.groupContainerClass)
360
425
  }, [
361
- k(qe, {
426
+ k(Xe, {
362
427
  variant: "solid",
363
- items: B.value.map((s) => ({
364
- id: `form-group-${s.originalIndex}`,
365
- title: W.value?.[s.originalIndex] || "",
366
- description: X.value?.[s.originalIndex] || void 0
367
- })),
428
+ items: Ae.value,
368
429
  "allow-multiple": "",
369
- class: m(e.groupClass)
430
+ class: v(e.groupClass)
370
431
  }, {
371
- content: ve(({ item: s }) => [
372
- k(j, {
373
- schema: B.value.find((f) => `form-group-${f.originalIndex}` === s.id)?.schema || [],
374
- values: a(v),
375
- errors: a(p),
376
- fieldLoading: a(D),
377
- variant: V.value,
378
- size: L.value,
379
- rounded: I.value,
432
+ content: be(({ item: s }) => [
433
+ k(X, {
434
+ schema: Te.value.get(s.id) || [],
435
+ values: l(m),
436
+ errors: l(b),
437
+ fieldLoading: l(V),
438
+ variant: U.value,
439
+ size: I.value,
440
+ rounded: z.value,
380
441
  className: e.className,
381
442
  isUpdate: e.isUpdate,
382
- showRequiredAsterisk: K.value,
383
- isFieldVisible: a(T),
384
- isFieldDisabled: a(R),
385
- isFieldReadonly: a(q),
386
- excludeTypes: A.value ? ["thumbnailSelector"] : [],
387
- onChange: $,
388
- onAddonAction: l[3] || (l[3] = (f) => g("onAddonAction", f))
443
+ showRequiredAsterisk: D.value,
444
+ isFieldVisible: l(R),
445
+ isFieldDisabled: l(B),
446
+ isFieldReadonly: l($),
447
+ excludeTypes: P.value ? ["thumbnailSelector"] : [],
448
+ onChange: M,
449
+ onAddonAction: a[5] || (a[5] = (x) => f("onAddonAction", x))
389
450
  }, null, 8, ["schema", "values", "errors", "fieldLoading", "variant", "size", "rounded", "className", "isUpdate", "showRequiredAsterisk", "isFieldVisible", "isFieldDisabled", "isFieldReadonly", "excludeTypes"])
390
451
  ]),
391
452
  _: 1
392
453
  }, 8, ["items", "class"])
393
- ], 2)) : u.value ? (n(), d("div", Ze, [
394
- e.tabs?.[r.value] ? (n(), d("div", {
454
+ ], 2)) : u.value ? (n(), c("div", ct, [
455
+ e.tabs?.[r.value] ? (n(), c("div", {
395
456
  key: 0,
396
- class: m(["form-step-header mb-6", e.headerClass])
457
+ class: v(["form-step-header mb-6", e.headerClass])
397
458
  }, [
398
- x("h2", _e, H(e.tabs[r.value].title), 1),
399
- e.tabs[r.value].description ? (n(), d("p", et, H(e.tabs[r.value].description), 1)) : c("", !0)
400
- ], 2)) : c("", !0),
401
- k(j, {
402
- schema: te.value,
403
- values: a(v),
404
- errors: a(p),
405
- fieldLoading: a(D),
406
- variant: V.value,
407
- size: L.value,
408
- rounded: I.value,
459
+ p("h2", vt, j(e.tabs[r.value].title), 1),
460
+ e.tabs[r.value].description ? (n(), c("p", mt, j(e.tabs[r.value].description), 1)) : d("", !0)
461
+ ], 2)) : d("", !0),
462
+ k(X, {
463
+ schema: ne.value,
464
+ values: l(m),
465
+ errors: l(b),
466
+ fieldLoading: l(V),
467
+ variant: U.value,
468
+ size: I.value,
469
+ rounded: z.value,
409
470
  className: e.className,
410
471
  isUpdate: e.isUpdate,
411
- showRequiredAsterisk: K.value,
412
- isFieldVisible: a(T),
413
- isFieldDisabled: a(R),
414
- isFieldReadonly: a(q),
415
- excludeTypes: A.value ? ["thumbnailSelector"] : [],
416
- onChange: $,
417
- onAddonAction: l[4] || (l[4] = (s) => g("onAddonAction", s))
472
+ showRequiredAsterisk: D.value,
473
+ isFieldVisible: l(R),
474
+ isFieldDisabled: l(B),
475
+ isFieldReadonly: l($),
476
+ excludeTypes: P.value ? ["thumbnailSelector"] : [],
477
+ onChange: M,
478
+ onAddonAction: a[6] || (a[6] = (s) => f("onAddonAction", s))
418
479
  }, null, 8, ["schema", "values", "errors", "fieldLoading", "variant", "size", "rounded", "className", "isUpdate", "showRequiredAsterisk", "isFieldVisible", "isFieldDisabled", "isFieldReadonly", "excludeTypes"])
419
- ])) : c("", !0) : (n(), d("div", Qe, [
420
- k(j, {
480
+ ])) : d("", !0) : (n(), c("div", ot, [
481
+ k(X, {
421
482
  schema: e.schema,
422
- values: a(v),
423
- errors: a(p),
424
- fieldLoading: a(D),
425
- variant: V.value,
426
- size: L.value,
427
- rounded: I.value,
483
+ values: l(m),
484
+ errors: l(b),
485
+ fieldLoading: l(V),
486
+ variant: U.value,
487
+ size: I.value,
488
+ rounded: z.value,
428
489
  className: e.className,
429
490
  isUpdate: e.isUpdate,
430
- showRequiredAsterisk: K.value,
431
- isFieldVisible: a(T),
432
- isFieldDisabled: a(R),
433
- isFieldReadonly: a(q),
434
- excludeTypes: A.value ? ["thumbnailSelector"] : [],
435
- layout: t.layout,
436
- onChange: $,
437
- onAddonAction: l[1] || (l[1] = (s) => g("onAddonAction", s))
491
+ showRequiredAsterisk: D.value,
492
+ isFieldVisible: l(R),
493
+ isFieldDisabled: l(B),
494
+ isFieldReadonly: l($),
495
+ excludeTypes: P.value ? ["thumbnailSelector"] : [],
496
+ layout: i.layout,
497
+ onChange: M,
498
+ onAddonAction: a[1] || (a[1] = (s) => f("onAddonAction", s))
438
499
  }, {
439
- default: ve(() => [
440
- t.layout === "inline" && e.footer ? (n(), d("div", We, [
441
- O.value ? (n(), F(S, {
500
+ default: be(() => [
501
+ i.layout === "inline" && e.footer ? (n(), c("div", rt, [
502
+ Y.value ? (n(), C(S, {
442
503
  key: 0,
443
504
  type: "button",
444
505
  variant: "outline",
445
506
  text: e.cancelText,
446
- disabled: e.loading || a(b),
447
- onClick: re
448
- }, null, 8, ["text", "disabled"])) : c("", !0),
449
- k(S, G({
507
+ disabled: e.loading || l(y),
508
+ onClick: Z
509
+ }, null, 8, ["text", "disabled"])) : d("", !0),
510
+ k(S, O({
450
511
  type: "submit",
451
512
  variant: "primary",
452
513
  text: e.submitText
453
514
  }, e.submitProps, {
454
- loading: e.loading || a(b)
515
+ loading: e.loading || l(y)
455
516
  }), null, 16, ["text", "loading"])
456
- ])) : c("", !0)
517
+ ])) : d("", !0)
457
518
  ]),
458
519
  _: 1
459
520
  }, 8, ["schema", "values", "errors", "fieldLoading", "variant", "size", "rounded", "className", "isUpdate", "showRequiredAsterisk", "isFieldVisible", "isFieldDisabled", "isFieldReadonly", "excludeTypes", "layout"])
460
521
  ])),
461
- me(i.$slots, "default", {
462
- values: a(v),
463
- errors: a(p),
464
- isSubmitting: a(b),
465
- handleSubmit: C
522
+ he(t.$slots, "default", {
523
+ values: l(m),
524
+ errors: l(b),
525
+ isSubmitting: l(y),
526
+ handleSubmit: w
466
527
  }, void 0, !0)
467
528
  ], 2)
468
- ], 2)),
469
- x("div", {
470
- ref_key: "sentinelRef",
471
- ref: J,
472
- class: "form-scroll-sentinel h-px w-full",
473
- "aria-hidden": "true"
474
- }, null, 512)
529
+ ], 2))
475
530
  ], 2),
476
- e.footer && !e.schemaLoading && t.layout !== "inline" ? (n(), d("div", {
531
+ e.footer && !e.schemaLoading && i.layout !== "inline" ? (n(), c("div", {
477
532
  key: 2,
478
533
  ref_key: "footerRef",
479
- ref: be,
480
- class: m([
534
+ ref: F,
535
+ class: v([
481
536
  "form-footer items-center gap-3 z-20 rounded-b-md!",
482
537
  e.isPage ? "flex sm:hidden" : "flex",
483
538
  e.footerClass,
@@ -486,71 +541,77 @@ const Me = ["onKeydown"], je = { class: "flex items-center gap-3" }, Oe = { clas
486
541
  // `sticky bottom-0` anchors the footer to the bottom of the nearest scrollable ancestor
487
542
  // (the modal's overflow-y-auto body), keeping it visible at all times without leaving
488
543
  // the normal document flow (unlike `fixed` which would escape the modal bounds).
489
- z.value ? "sticky bottom-0 bg-body pt-3 pb-3 -mx-0.5 px-0.5 mt-6 border-t border-border/75" : t.layout !== "inline" ? "mt-6" : "",
490
- // Show a subtle top shadow while content is scrolling beneath the sticky footer
491
- (z.value && _.value, ""),
544
+ L.value ? "sticky bottom-0 -mx-0.5 px-0.5 mt-4" : i.layout !== "inline" ? "mt-6" : "",
545
+ // Show the separator for modal/explicit sticky mode, or when the default
546
+ // auto-sticky footer is active because its scroll container overflows.
547
+ we.value ? "border-t border-border/75 bg-body pt-3 pb-3 mt-6" : "",
492
548
  // Inside modal: extend footer flush to modal edge padding
493
- U.value && t.layout !== "inline" ? "-mx-4 px-4 pb-3! mt-7.5!" : "",
494
- // Non-sticky inside modal keeps the original border styling
495
- !z.value && U.value && t.layout !== "inline" ? "border-t border-border/75 mt-5" : "",
496
- !z.value && !U.value && t.layout !== "inline" ? "mt-6" : "",
497
- t.layout === "inline" ? "mt-0 shrink-0" : ""
549
+ E.value && i.layout !== "inline" ? "-mx-4 px-4 pb-3! mt-7.5!" : "",
550
+ i.layout === "inline" ? "mt-0 shrink-0" : ""
498
551
  ])
499
552
  }, [
500
- O.value || u.value && e.isUpdate && !P.value ? (n(), d("div", tt, [
501
- O.value ? (n(), F(S, {
553
+ u.value && (Y.value || e.isUpdate && !N.value) ? (n(), c("div", ft, [
554
+ Y.value ? (n(), C(S, {
502
555
  key: 0,
503
556
  type: "button",
504
557
  variant: "outline",
505
558
  text: e.cancelText,
506
- disabled: e.loading || a(b),
507
- onClick: re
508
- }, null, 8, ["text", "disabled"])) : c("", !0),
509
- u.value && e.isUpdate && !P.value ? (n(), F(S, G({
559
+ disabled: e.loading || l(y),
560
+ onClick: Z
561
+ }, null, 8, ["text", "disabled"])) : d("", !0),
562
+ e.isUpdate && !N.value ? (n(), C(S, O({
510
563
  key: 1,
511
564
  type: "button",
512
565
  variant: "primary",
513
566
  text: e.submitText
514
567
  }, e.submitProps, {
515
- loading: e.loading || a(b),
516
- onClick: C
517
- }), null, 16, ["text", "loading"])) : c("", !0)
518
- ])) : c("", !0),
519
- x("div", {
520
- class: m(["flex gap-3 items-center", [
568
+ loading: e.loading || l(y),
569
+ onClick: w
570
+ }), null, 16, ["text", "loading"])) : d("", !0)
571
+ ])) : d("", !0),
572
+ p("div", {
573
+ class: v(["flex gap-3 items-center", [
521
574
  u.value && "ml-auto",
522
- !u.value || P.value ? "w-full justify-end" : ""
575
+ !u.value || N.value ? "w-full justify-end" : ""
523
576
  ]])
524
577
  }, [
525
- u.value && se.value ? (n(), F(S, {
578
+ Y.value && !u.value ? (n(), C(S, {
526
579
  key: 0,
527
580
  type: "button",
528
581
  variant: "outline",
582
+ text: e.cancelText,
583
+ disabled: e.loading || l(y),
584
+ onClick: Z
585
+ }, null, 8, ["text", "disabled"])) : d("", !0),
586
+ u.value && de.value ? (n(), C(S, {
587
+ key: 1,
588
+ type: "button",
589
+ variant: "outline",
529
590
  icon: "lucide:arrow-left",
530
591
  text: "Previous",
531
- onClick: Te
532
- })) : c("", !0),
533
- u.value && !P.value ? (n(), F(S, {
534
- key: 1,
592
+ onClick: Ne
593
+ })) : d("", !0),
594
+ u.value && !N.value ? (n(), C(S, {
595
+ key: 2,
535
596
  type: "button",
536
597
  variant: e.isUpdate ? "outline" : "primary",
537
598
  text: "Next",
538
599
  iconRight: "lucide:arrow-right",
539
- onClick: ne
540
- }, null, 8, ["variant"])) : c("", !0),
541
- !u.value || P.value ? (n(), F(S, G({
542
- key: 2,
600
+ onClick: ce
601
+ }, null, 8, ["variant"])) : d("", !0),
602
+ !u.value || N.value ? (n(), C(S, O({
603
+ key: 3,
543
604
  type: "submit",
544
605
  variant: "primary",
545
606
  text: e.submitText
546
607
  }, e.submitProps, {
547
- loading: e.loading || a(b)
548
- }), null, 16, ["text", "loading"])) : c("", !0)
608
+ loading: e.loading || l(y)
609
+ }), null, 16, ["text", "loading"])) : d("", !0)
549
610
  ], 2)
550
- ], 2)) : c("", !0)
551
- ], 42, Me));
611
+ ], 2)) : d("", !0)
612
+ ], 42, lt));
552
613
  }
553
614
  });
554
615
  export {
555
- gt as default
616
+ Pt as default
556
617
  };