vlite3 1.2.7 → 1.2.8

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.
@@ -1,28 +1,28 @@
1
- import { defineComponent as pe, inject as Se, computed as r, onMounted as te, onUnmounted as O, ref as K, watch as ae, openBlock as s, createElementBlock as d, withKeys as le, withModifiers as J, normalizeClass as m, createElementVNode as f, createVNode as T, mergeProps as M, toDisplayString as z, unref as t, renderSlot as ie, createCommentVNode as c, createBlock as C, Fragment as Ce, renderList as Fe } from "vue";
2
- import { useForm as we } from "./composables/useForm.js";
1
+ import { defineComponent as we, inject as Ae, computed as r, onMounted as ae, onUnmounted as O, ref as E, watch as le, openBlock as s, createElementBlock as d, withKeys as ie, withModifiers as J, normalizeClass as m, createElementVNode as f, createVNode as T, mergeProps as K, toDisplayString as z, unref as t, renderSlot as se, createCommentVNode as c, createBlock as C, Fragment as Te, renderList as Re } from "vue";
2
+ import { useForm as Pe } from "./composables/useForm.js";
3
3
  import Q from "./FormFields.vue.js";
4
- import Ae from "./FormField.vue.js";
5
- import Te from "./FormSkeleton.vue.js";
4
+ import Ue from "./FormField.vue.js";
5
+ import Ve from "./FormSkeleton.vue.js";
6
6
  import R from "../Button.vue.js";
7
- import Re from "../BackButton.vue.js";
8
- import Pe from "../Timeline/Timeline.vue.js";
7
+ import ze from "../BackButton.vue.js";
8
+ import Be from "../Timeline/Timeline.vue.js";
9
9
  import "@iconify/vue";
10
- import { $t as Ue } from "../../utils/i18n.js";
11
- import { useVLiteConfig as Ve } from "../../core/config.js";
12
- import { resolveFieldType as ze } from "./utils/form.utils.js";
13
- const Be = ["onKeydown"], Le = { class: "flex items-center gap-3" }, Ne = { class: "flex items-center gap-2 shrink-0" }, De = {
10
+ import { $t as Le } from "../../utils/i18n.js";
11
+ import { useVLiteConfig as Ne } from "../../core/config.js";
12
+ import { resolveFieldType as De } from "./utils/form.utils.js";
13
+ const qe = ["onKeydown"], He = { class: "flex items-center gap-3" }, $e = { class: "flex items-center gap-2 shrink-0" }, Ie = {
14
14
  key: 0,
15
15
  class: "w-full order-first lg:order-last lg:min-w-100 lg:max-w-[380px] shrink-0"
16
- }, qe = { key: 0 }, He = { class: "text-base font-semibold text-foreground" }, $e = {
16
+ }, Ee = { key: 0 }, Ke = { class: "text-base font-semibold text-foreground" }, Me = {
17
17
  key: 0,
18
18
  class: "text-sm text-muted-foreground mt-1"
19
- }, Ie = {
19
+ }, Ge = {
20
20
  key: 2,
21
21
  class: "form-step"
22
- }, Ke = { class: "text-lg font-semibold text-foreground" }, Me = {
22
+ }, je = { class: "text-lg font-semibold text-foreground" }, Oe = {
23
23
  key: 0,
24
24
  class: "text-sm text-muted-foreground mt-1"
25
- }, Ge = { class: "flex gap-3 items-center" }, at = /* @__PURE__ */ pe({
25
+ }, Je = { class: "flex gap-3 items-center" }, nt = /* @__PURE__ */ we({
26
26
  __name: "Form",
27
27
  props: {
28
28
  schema: {},
@@ -62,126 +62,140 @@ const Be = ["onKeydown"], Le = { class: "flex items-center gap-3" }, Ne = { clas
62
62
  backButtonPath: {}
63
63
  },
64
64
  emits: ["onSubmit", "onCancel", "onStepChange", "onAddonAction", "onBack"],
65
- setup(e, { emit: se }) {
66
- const l = e, h = se, v = Se("modal-context", null), ne = Ve(), B = r(() => ne?.components?.form || {}), L = r(() => l.variant ?? B.value.variant ?? "outline"), N = r(() => l.size ?? B.value.size ?? "md"), D = r(() => l.rounded ?? B.value.rounded ?? "md"), G = r(
65
+ setup(e, { expose: ne, emit: oe }) {
66
+ const l = e, b = oe, v = Ae("modal-context", null), re = Ne(), B = r(() => re?.components?.form || {}), L = r(() => l.variant ?? B.value.variant ?? "outline"), N = r(() => l.size ?? B.value.size ?? "md"), D = r(() => l.rounded ?? B.value.rounded ?? "md"), M = r(
67
67
  () => l.showRequiredAsterisk ?? B.value.showRequiredAsterisk ?? !0
68
- ), oe = r(() => l.showCancel || !!v), F = r(() => !!v), P = r(() => l.stickyFooter || F.value);
69
- te(() => {
68
+ ), ue = r(() => l.showCancel || !!v), F = r(() => !!v), P = r(() => l.stickyFooter || F.value);
69
+ ae(() => {
70
70
  l.footer && F.value && v?.registerFormFooter?.(!0);
71
71
  }), O(() => {
72
72
  F.value && v?.registerFormFooter?.(!1);
73
73
  });
74
- const re = K(null), j = K(null), W = K(!1);
75
- let E = null;
76
- te(() => {
77
- j.value && (E = new IntersectionObserver(
74
+ const de = E(null), G = E(null), W = E(!1);
75
+ let j = null;
76
+ ae(() => {
77
+ G.value && (j = new IntersectionObserver(
78
78
  ([a]) => {
79
79
  W.value = !a.isIntersecting;
80
80
  },
81
81
  { threshold: 0 }
82
- ), E.observe(j.value));
82
+ ), j.observe(G.value));
83
83
  }), O(() => {
84
- E?.disconnect();
84
+ j?.disconnect();
85
85
  });
86
- const w = r(() => !l.schema || l.schema.length === 0 ? !1 : Array.isArray(l.schema[0])), u = r(() => l.tabs && l.tabs.length > 0 && w.value), n = K(0), X = r(() => l.tabs ? l.tabs.map((a, i) => ({
86
+ const w = r(() => !l.schema || l.schema.length === 0 ? !1 : Array.isArray(l.schema[0])), u = r(() => l.tabs && l.tabs.length > 0 && w.value), n = E(0), X = r(() => l.tabs ? l.tabs.map((a, i) => ({
87
87
  id: a.id?.toString() || i.toString(),
88
88
  title: a.title,
89
89
  icon: a.icon,
90
90
  description: a.description,
91
91
  status: i < n.value ? "completed" : i === n.value ? "current" : "upcoming"
92
- })) : []), x = r(() => w.value ? l.schema : [l.schema]), Y = r(() => u.value ? x.value[n.value] || [] : []), g = r(() => u.value ? null : (w.value ? l.schema.flat() : l.schema).find((i) => ze(i, {
93
- values: b.value,
94
- globalValues: b.value,
92
+ })) : []), S = r(() => w.value ? l.schema : [l.schema]), Y = r(() => u.value ? S.value[n.value] || [] : []), g = r(() => u.value ? null : (w.value ? l.schema.flat() : l.schema).find((i) => De(i, {
93
+ values: h.value,
94
+ globalValues: h.value,
95
95
  isUpdate: l.isUpdate
96
96
  }) === "thumbnailSelector") ?? null), A = r(() => !!g.value), {
97
- formValues: b,
98
- errors: k,
99
- isSubmitting: p,
97
+ formValues: h,
98
+ errors: y,
99
+ isSubmitting: x,
100
100
  fieldLoading: q,
101
- handleFieldChange: ue,
102
- validateField: de,
103
- validateAll: ce,
101
+ handleFieldChange: ce,
102
+ validateField: me,
103
+ validateAll: Z,
104
104
  isFieldVisible: U,
105
105
  isFieldDisabled: V,
106
106
  isFieldReadonly: H,
107
- handleSubmit: me,
108
- reinitialize: ve
109
- } = we({
107
+ handleSubmit: ve,
108
+ reinitialize: fe,
109
+ resetForm: ge,
110
+ setFieldError: he,
111
+ clearErrors: be
112
+ } = Pe({
110
113
  schema: l.schema,
111
114
  values: l.values,
112
115
  isUpdate: l.isUpdate,
113
116
  folderId: l.folderId,
114
117
  emitFields: l.emitFields,
115
118
  onSubmit: (a) => {
116
- h("onSubmit", a, v?.close || (() => {
119
+ b("onSubmit", a, v?.close || (() => {
117
120
  }));
118
121
  }
119
122
  });
120
- ae(
121
- () => l.loading || p.value,
123
+ le(
124
+ () => l.loading || x.value,
122
125
  (a) => {
123
126
  v?.setSubmitting && v.setSubmitting(a);
124
127
  },
125
128
  { immediate: !0 }
126
129
  ), O(() => {
127
130
  v?.setSubmitting && v.setSubmitting(!1);
128
- }), ae(
131
+ }), le(
129
132
  [() => l.schema, () => l.values, () => l.schemaLoading],
130
133
  ([a, i, o]) => {
131
- o || ve(a, i);
134
+ o || fe(a, i);
132
135
  }
133
136
  );
134
137
  const $ = (a, i) => {
135
- ue(a, i.value, i.data);
136
- }, fe = async () => {
138
+ ce(a, i.value, i.data);
139
+ }, ye = async () => {
137
140
  if (!u.value) return !0;
138
141
  const a = Y.value;
139
142
  let i = !0;
140
143
  for (const o of a) {
141
144
  if (!U(o) || V(o)) continue;
142
- await de(o) && (i = !1);
145
+ await me(o) && (i = !1);
143
146
  }
144
147
  return i;
145
- }, ge = r(() => u.value ? n.value < x.value.length - 1 : !1), Z = r(() => u.value ? n.value > 0 : !1), I = r(() => u.value ? n.value === x.value.length - 1 : !0), _ = async () => {
146
- !ge.value || !await fe() || (n.value++, h("onStepChange", n.value));
147
- }, he = () => {
148
- Z.value && (n.value--, h("onStepChange", n.value));
149
- }, be = (a, i) => {
150
- i <= n.value && (n.value = i, h("onStepChange", n.value));
151
- }, S = async () => {
148
+ }, xe = r(() => u.value ? n.value < S.value.length - 1 : !1), _ = r(() => u.value ? n.value > 0 : !1), I = r(() => u.value ? n.value === S.value.length - 1 : !0), ee = async () => {
149
+ !xe.value || !await ye() || (n.value++, b("onStepChange", n.value));
150
+ }, ke = () => {
151
+ _.value && (n.value--, b("onStepChange", n.value));
152
+ }, pe = (a, i) => {
153
+ i <= n.value && (n.value = i, b("onStepChange", n.value));
154
+ }, k = async () => {
152
155
  if (u.value) {
153
156
  if (!I.value && !l.isUpdate) {
154
- await _();
157
+ await ee();
155
158
  return;
156
159
  }
157
- if (!await ce()) {
158
- const i = x.value.findIndex(
159
- (o) => o.some((y) => !!k.value[y.name])
160
+ if (!await Z()) {
161
+ const i = S.value.findIndex(
162
+ (o) => o.some((p) => !!y.value[p.name])
160
163
  );
161
- i !== -1 && i !== n.value && (n.value = i, h("onStepChange", n.value));
164
+ i !== -1 && i !== n.value && (n.value = i, b("onStepChange", n.value));
162
165
  return;
163
166
  }
164
167
  }
165
168
  try {
166
- await me();
169
+ await ve();
167
170
  } catch {
168
171
  }
169
- }, ye = (a) => {
172
+ }, Se = (a) => {
170
173
  if (a.key !== "Enter") return;
171
174
  const o = a.target.tagName.toLowerCase();
172
- o !== "textarea" && o !== "button" && (a.preventDefault(), S());
173
- }, ee = (a) => {
174
- (a.metaKey || a.ctrlKey) && a.key === "s" && (a.preventDefault(), S());
175
- }, xe = () => {
176
- h("onCancel"), v && v?.close?.();
175
+ o !== "textarea" && o !== "button" && (a.preventDefault(), k());
176
+ }, te = (a) => {
177
+ (a.metaKey || a.ctrlKey) && a.key === "s" && (a.preventDefault(), k());
178
+ };
179
+ ne({
180
+ formValues: h,
181
+ errors: y,
182
+ isSubmitting: x,
183
+ handleSubmit: k,
184
+ validateAll: Z,
185
+ resetForm: ge,
186
+ setFieldError: he,
187
+ clearErrors: be
188
+ });
189
+ const Ce = () => {
190
+ b("onCancel"), v && v?.close?.();
177
191
  };
178
192
  return (a, i) => (s(), d("form", {
179
193
  class: m(["form-container ", l.class, e.isPage && "pb-10"]),
180
- onSubmit: J(S, ["prevent"]),
194
+ onSubmit: J(k, ["prevent"]),
181
195
  onKeydown: [
182
- ye,
183
- le(J(ee, ["meta", "prevent"]), ["s"]),
184
- le(J(ee, ["ctrl", "prevent"]), ["s"])
196
+ Se,
197
+ ie(J(te, ["meta", "prevent"]), ["s"]),
198
+ ie(J(te, ["ctrl", "prevent"]), ["s"])
185
199
  ]
186
200
  }, [
187
201
  e.isPage ? (s(), d("div", {
@@ -191,29 +205,29 @@ const Be = ["onKeydown"], Le = { class: "flex items-center gap-3" }, Ne = { clas
191
205
  e.pageHeaderClass
192
206
  ])
193
207
  }, [
194
- f("div", Le, [
195
- T(Re, M(e.backButtonProps, {
208
+ f("div", He, [
209
+ T(ze, K(e.backButtonProps, {
196
210
  fallback: e.backButtonPath,
197
211
  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"
198
212
  }), null, 16, ["fallback"]),
199
213
  f("h1", {
200
214
  class: m(["text-foreground max-sm:text-lg text-fs-5 truncate", e.pageTitleClass])
201
- }, z(e.pageTitleI18n ? t(Ue)(e.pageTitleI18n) : e.pageTitle), 3)
215
+ }, z(e.pageTitleI18n ? t(Le)(e.pageTitleI18n) : e.pageTitle), 3)
202
216
  ]),
203
- f("div", Ne, [
204
- ie(a.$slots, "header-actions", {
205
- values: t(b),
206
- isSubmitting: t(p),
207
- handleSubmit: S
217
+ f("div", $e, [
218
+ se(a.$slots, "header-actions", {
219
+ values: t(h),
220
+ isSubmitting: t(x),
221
+ handleSubmit: k
208
222
  }, void 0, !0),
209
- T(R, M({
223
+ T(R, K({
210
224
  type: "button",
211
225
  variant: e.isUpdate ? "outline" : "primary",
212
226
  text: e.submitText
213
227
  }, e.submitProps, {
214
228
  disabled: e.schemaLoading,
215
- loading: e.loading || t(p),
216
- onClick: S,
229
+ loading: e.loading || t(x),
230
+ onClick: k,
217
231
  class: "max-sm:hidden"
218
232
  }), null, 16, ["variant", "text", "disabled", "loading"])
219
233
  ])
@@ -222,38 +236,38 @@ const Be = ["onKeydown"], Le = { class: "flex items-center gap-3" }, Ne = { clas
222
236
  key: 1,
223
237
  class: m(["form-timeline", e.timelineTextPosition == "right" ? "mb-2" : "mb-8"])
224
238
  }, [
225
- T(t(Pe), {
239
+ T(t(Be), {
226
240
  steps: X.value,
227
241
  activeStep: n.value,
228
242
  direction: "horizontal",
229
243
  textPosition: e.timelineTextPosition,
230
244
  clickable: !0,
231
- onStepClick: be
245
+ onStepClick: pe
232
246
  }, null, 8, ["steps", "activeStep", "textPosition"])
233
247
  ], 2)) : c("", !0),
234
248
  f("div", {
235
249
  class: m(e.footer && P.value ? "pb-2" : "")
236
250
  }, [
237
- e.schemaLoading ? (s(), C(Te, {
251
+ e.schemaLoading ? (s(), C(Ve, {
238
252
  key: 0,
239
253
  isGrouped: w.value
240
254
  }, null, 8, ["isGrouped"])) : (s(), d("div", {
241
255
  key: 1,
242
256
  class: m(A.value ? "flex flex-col lg:flex-row gap-10 lg:gap-16" : "")
243
257
  }, [
244
- A.value ? (s(), d("div", De, [
245
- g.value && t(U)(g.value) ? (s(), C(Ae, {
258
+ A.value ? (s(), d("div", Ie, [
259
+ g.value && t(U)(g.value) ? (s(), C(Ue, {
246
260
  key: 0,
247
261
  field: g.value,
248
- value: t(b)[g.value.name],
249
- values: t(b),
250
- errors: t(k),
262
+ value: t(h)[g.value.name],
263
+ values: t(h),
264
+ errors: t(y),
251
265
  variant: L.value,
252
266
  size: N.value,
253
267
  rounded: D.value,
254
268
  disabled: t(V)(g.value),
255
269
  readonly: t(H)(g.value),
256
- error: t(k)[g.value.name] || "",
270
+ error: t(y)[g.value.name] || "",
257
271
  isUpdate: e.isUpdate,
258
272
  loading: t(q)[g.value?.name],
259
273
  onChange: i[0] || (i[0] = (o) => $(g.value.name, o))
@@ -266,101 +280,101 @@ const Be = ["onKeydown"], Le = { class: "flex items-center gap-3" }, Ne = { clas
266
280
  key: 1,
267
281
  class: m(["form-groups space-y-6", e.groupContainerClass])
268
282
  }, [
269
- (s(!0), d(Ce, null, Fe(x.value, (o, y) => (s(), d("div", {
270
- key: y,
283
+ (s(!0), d(Te, null, Re(S.value, (o, p) => (s(), d("div", {
284
+ key: p,
271
285
  class: m([
272
286
  "form-group overflow-hidden bg-body",
273
287
  e.groupClass,
274
- x.value?.length > 1 ? "border rounded" : ""
288
+ S.value?.length > 1 ? "border rounded" : ""
275
289
  ])
276
290
  }, [
277
- e.groupsHeadings?.[y] ? (s(), d("div", {
291
+ e.groupsHeadings?.[p] ? (s(), d("div", {
278
292
  key: 0,
279
293
  class: m(["form-group-header bg-muted/50 px-4 py-2.5 border-b", e.headerClass])
280
294
  }, [
281
- f("h3", He, z(e.groupsHeadings[y]), 1),
282
- e.groupHeadingsDescription?.[y] ? (s(), d("p", $e, z(e.groupHeadingsDescription[y]), 1)) : c("", !0)
295
+ f("h3", Ke, z(e.groupsHeadings[p]), 1),
296
+ e.groupHeadingsDescription?.[p] ? (s(), d("p", Me, z(e.groupHeadingsDescription[p]), 1)) : c("", !0)
283
297
  ], 2)) : c("", !0),
284
298
  f("div", {
285
- class: m(["form-group-body", [e.groupBodyClass, x.value?.length > 1 ? "p-4.5" : ""]])
299
+ class: m(["form-group-body", [e.groupBodyClass, S.value?.length > 1 ? "p-4.5" : ""]])
286
300
  }, [
287
301
  T(Q, {
288
302
  schema: o,
289
- values: t(b),
290
- errors: t(k),
303
+ values: t(h),
304
+ errors: t(y),
291
305
  fieldLoading: t(q),
292
306
  variant: L.value,
293
307
  size: N.value,
294
308
  rounded: D.value,
295
309
  className: e.className,
296
310
  isUpdate: e.isUpdate,
297
- showRequiredAsterisk: G.value,
311
+ showRequiredAsterisk: M.value,
298
312
  isFieldVisible: t(U),
299
313
  isFieldDisabled: t(V),
300
314
  isFieldReadonly: t(H),
301
315
  excludeTypes: A.value ? ["thumbnailSelector"] : [],
302
316
  onChange: $,
303
- onAddonAction: i[2] || (i[2] = (ke) => h("onAddonAction", ke))
317
+ onAddonAction: i[2] || (i[2] = (Fe) => b("onAddonAction", Fe))
304
318
  }, null, 8, ["schema", "values", "errors", "fieldLoading", "variant", "size", "rounded", "className", "isUpdate", "showRequiredAsterisk", "isFieldVisible", "isFieldDisabled", "isFieldReadonly", "excludeTypes"])
305
319
  ], 2)
306
320
  ], 2))), 128))
307
- ], 2)) : u.value ? (s(), d("div", Ie, [
321
+ ], 2)) : u.value ? (s(), d("div", Ge, [
308
322
  e.tabs?.[n.value] ? (s(), d("div", {
309
323
  key: 0,
310
324
  class: m(["form-step-header mb-6", e.headerClass])
311
325
  }, [
312
- f("h2", Ke, z(e.tabs[n.value].title), 1),
313
- e.tabs[n.value].description ? (s(), d("p", Me, z(e.tabs[n.value].description), 1)) : c("", !0)
326
+ f("h2", je, z(e.tabs[n.value].title), 1),
327
+ e.tabs[n.value].description ? (s(), d("p", Oe, z(e.tabs[n.value].description), 1)) : c("", !0)
314
328
  ], 2)) : c("", !0),
315
329
  T(Q, {
316
330
  schema: Y.value,
317
- values: t(b),
318
- errors: t(k),
331
+ values: t(h),
332
+ errors: t(y),
319
333
  fieldLoading: t(q),
320
334
  variant: L.value,
321
335
  size: N.value,
322
336
  rounded: D.value,
323
337
  className: e.className,
324
338
  isUpdate: e.isUpdate,
325
- showRequiredAsterisk: G.value,
339
+ showRequiredAsterisk: M.value,
326
340
  isFieldVisible: t(U),
327
341
  isFieldDisabled: t(V),
328
342
  isFieldReadonly: t(H),
329
343
  excludeTypes: A.value ? ["thumbnailSelector"] : [],
330
344
  onChange: $,
331
- onAddonAction: i[3] || (i[3] = (o) => h("onAddonAction", o))
345
+ onAddonAction: i[3] || (i[3] = (o) => b("onAddonAction", o))
332
346
  }, null, 8, ["schema", "values", "errors", "fieldLoading", "variant", "size", "rounded", "className", "isUpdate", "showRequiredAsterisk", "isFieldVisible", "isFieldDisabled", "isFieldReadonly", "excludeTypes"])
333
- ])) : c("", !0) : (s(), d("div", qe, [
347
+ ])) : c("", !0) : (s(), d("div", Ee, [
334
348
  T(Q, {
335
349
  schema: e.schema,
336
- values: t(b),
337
- errors: t(k),
350
+ values: t(h),
351
+ errors: t(y),
338
352
  fieldLoading: t(q),
339
353
  variant: L.value,
340
354
  size: N.value,
341
355
  rounded: D.value,
342
356
  className: e.className,
343
357
  isUpdate: e.isUpdate,
344
- showRequiredAsterisk: G.value,
358
+ showRequiredAsterisk: M.value,
345
359
  isFieldVisible: t(U),
346
360
  isFieldDisabled: t(V),
347
361
  isFieldReadonly: t(H),
348
362
  excludeTypes: A.value ? ["thumbnailSelector"] : [],
349
363
  onChange: $,
350
- onAddonAction: i[1] || (i[1] = (o) => h("onAddonAction", o))
364
+ onAddonAction: i[1] || (i[1] = (o) => b("onAddonAction", o))
351
365
  }, null, 8, ["schema", "values", "errors", "fieldLoading", "variant", "size", "rounded", "className", "isUpdate", "showRequiredAsterisk", "isFieldVisible", "isFieldDisabled", "isFieldReadonly", "excludeTypes"])
352
366
  ])),
353
- ie(a.$slots, "default", {
354
- values: t(b),
355
- errors: t(k),
356
- isSubmitting: t(p),
357
- handleSubmit: S
367
+ se(a.$slots, "default", {
368
+ values: t(h),
369
+ errors: t(y),
370
+ isSubmitting: t(x),
371
+ handleSubmit: k
358
372
  }, void 0, !0)
359
373
  ], 2)
360
374
  ], 2)),
361
375
  f("div", {
362
376
  ref_key: "sentinelRef",
363
- ref: j,
377
+ ref: G,
364
378
  class: "form-scroll-sentinel h-px w-full",
365
379
  "aria-hidden": "true"
366
380
  }, null, 512)
@@ -368,7 +382,7 @@ const Be = ["onKeydown"], Le = { class: "flex items-center gap-3" }, Ne = { clas
368
382
  e.footer && !e.schemaLoading ? (s(), d("div", {
369
383
  key: 2,
370
384
  ref_key: "footerRef",
371
- ref: re,
385
+ ref: de,
372
386
  class: m([
373
387
  "form-footer items-center gap-3 z-20 rounded-b-md!",
374
388
  e.isPage ? "flex sm:hidden" : "flex",
@@ -388,35 +402,35 @@ const Be = ["onKeydown"], Le = { class: "flex items-center gap-3" }, Ne = { clas
388
402
  !P.value && !F.value ? "mt-6" : ""
389
403
  ])
390
404
  }, [
391
- f("div", Ge, [
392
- oe.value ? (s(), C(R, {
405
+ f("div", Je, [
406
+ ue.value ? (s(), C(R, {
393
407
  key: 0,
394
408
  type: "button",
395
409
  variant: "outline",
396
410
  text: e.cancelText,
397
- disabled: e.loading || t(p),
398
- onClick: xe
411
+ disabled: e.loading || t(x),
412
+ onClick: Ce
399
413
  }, null, 8, ["text", "disabled"])) : c("", !0),
400
- u.value && e.isUpdate && !I.value ? (s(), C(R, M({
414
+ u.value && e.isUpdate && !I.value ? (s(), C(R, K({
401
415
  key: 1,
402
416
  type: "button",
403
417
  variant: "primary",
404
418
  text: e.submitText
405
419
  }, e.submitProps, {
406
- loading: e.loading || t(p),
407
- onClick: S
420
+ loading: e.loading || t(x),
421
+ onClick: k
408
422
  }), null, 16, ["text", "loading"])) : c("", !0)
409
423
  ]),
410
424
  f("div", {
411
425
  class: m(["flex gap-3 items-center", u.value && "ml-auto"])
412
426
  }, [
413
- u.value && Z.value ? (s(), C(R, {
427
+ u.value && _.value ? (s(), C(R, {
414
428
  key: 0,
415
429
  type: "button",
416
430
  variant: "outline",
417
431
  icon: "lucide:arrow-left",
418
432
  text: "Previous",
419
- onClick: he
433
+ onClick: ke
420
434
  })) : c("", !0),
421
435
  u.value && !I.value ? (s(), C(R, {
422
436
  key: 1,
@@ -424,21 +438,21 @@ const Be = ["onKeydown"], Le = { class: "flex items-center gap-3" }, Ne = { clas
424
438
  variant: e.isUpdate ? "outline" : "primary",
425
439
  text: "Next",
426
440
  iconRight: "lucide:arrow-right",
427
- onClick: _
441
+ onClick: ee
428
442
  }, null, 8, ["variant"])) : c("", !0),
429
- !u.value || I.value ? (s(), C(R, M({
443
+ !u.value || I.value ? (s(), C(R, K({
430
444
  key: 2,
431
445
  type: "submit",
432
446
  variant: "primary",
433
447
  text: e.submitText
434
448
  }, e.submitProps, {
435
- loading: e.loading || t(p)
449
+ loading: e.loading || t(x)
436
450
  }), null, 16, ["text", "loading"])) : c("", !0)
437
451
  ], 2)
438
452
  ], 2)) : c("", !0)
439
- ], 42, Be));
453
+ ], 42, qe));
440
454
  }
441
455
  });
442
456
  export {
443
- at as default
457
+ nt as default
444
458
  };