@jsg-developer/vue-pack 0.0.3 → 0.0.4

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,6 +1,5 @@
1
1
  import { ref as z, inject as le, computed as _, watch as ne, toRaw as Xe, defineComponent as oe, onMounted as st, onUnmounted as Da, createBlock as Z, openBlock as f, Transition as He, withCtx as ce, createElementVNode as i, withModifiers as Ne, unref as m, createVNode as We, normalizeClass as H, createElementBlock as k, toDisplayString as F, TransitionGroup as Ia, Fragment as ee, renderList as de, createTextVNode as te, createCommentVNode as V, resolveDynamicComponent as Ea, renderSlot as Va, Teleport as js, normalizeStyle as Ge, nextTick as La, withDirectives as Dt, vModelText as fs, createStaticVNode as hs, isRef as za, vModelCheckbox as Fa, withKeys as Oa } from "vue";
2
2
  import "dompurify";
3
- import Pa from "quill";
4
3
  function bs(t, o, e) {
5
4
  function u(d, g) {
6
5
  if (d._zod || Object.defineProperty(d, "_zod", {
@@ -13,10 +12,10 @@ function bs(t, o, e) {
13
12
  }), d._zod.traits.has(t))
14
13
  return;
15
14
  d._zod.traits.add(t), o(d, g);
16
- const p = j.prototype, y = Object.keys(p);
15
+ const b = j.prototype, y = Object.keys(b);
17
16
  for (let r = 0; r < y.length; r++) {
18
17
  const a = y[r];
19
- a in d || (d[a] = p[a].bind(d));
18
+ a in d || (d[a] = b[a].bind(d));
20
19
  }
21
20
  }
22
21
  const n = e?.Parent ?? Object;
@@ -25,11 +24,11 @@ function bs(t, o, e) {
25
24
  Object.defineProperty(c, "name", { value: t });
26
25
  function j(d) {
27
26
  var g;
28
- const p = e?.Parent ? new c() : this;
29
- u(p, d), (g = p._zod).deferred ?? (g.deferred = []);
30
- for (const y of p._zod.deferred)
27
+ const b = e?.Parent ? new c() : this;
28
+ u(b, d), (g = b._zod).deferred ?? (g.deferred = []);
29
+ for (const y of b._zod.deferred)
31
30
  y();
32
- return p;
31
+ return b;
33
32
  }
34
33
  return Object.defineProperty(j, "init", { value: u }), Object.defineProperty(j, Symbol.hasInstance, {
35
34
  value: (d) => e?.Parent && d instanceof e.Parent ? !0 : d?._zod?.traits?.has(t)
@@ -38,7 +37,7 @@ function bs(t, o, e) {
38
37
  function At(t, o) {
39
38
  return typeof o == "bigint" ? o.toString() : o;
40
39
  }
41
- const Ba = (t, o) => {
40
+ const Pa = (t, o) => {
42
41
  t.name = "$ZodError", Object.defineProperty(t, "_zod", {
43
42
  value: t._zod,
44
43
  enumerable: !1
@@ -49,14 +48,14 @@ const Ba = (t, o) => {
49
48
  value: () => t.message,
50
49
  enumerable: !1
51
50
  });
52
- }, Ra = bs("$ZodError", Ba);
53
- function Ua(t, o = (e) => e.message) {
51
+ }, Ba = bs("$ZodError", Pa);
52
+ function Ra(t, o = (e) => e.message) {
54
53
  const e = {}, u = [];
55
54
  for (const n of t.issues)
56
55
  n.path.length > 0 ? (e[n.path[0]] = e[n.path[0]] || [], e[n.path[0]].push(o(n))) : u.push(o(n));
57
56
  return { formErrors: u, fieldErrors: e };
58
57
  }
59
- function qa(t, o = (e) => e.message) {
58
+ function Ua(t, o = (e) => e.message) {
60
59
  const e = { _errors: [] }, u = (n) => {
61
60
  for (const c of n.issues)
62
61
  if (c.code === "invalid_union" && c.errors.length)
@@ -78,7 +77,7 @@ function qa(t, o = (e) => e.message) {
78
77
  return u(t), e;
79
78
  }
80
79
  var ts;
81
- class Ka {
80
+ class qa {
82
81
  constructor() {
83
82
  this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
84
83
  }
@@ -107,18 +106,18 @@ class Ka {
107
106
  return this._map.has(o);
108
107
  }
109
108
  }
110
- function Ha() {
111
- return new Ka();
109
+ function Ka() {
110
+ return new qa();
112
111
  }
113
- (ts = globalThis).__zod_globalRegistry ?? (ts.__zod_globalRegistry = Ha());
114
- const Na = (t, o) => {
115
- Ra.init(t, o), t.name = "ZodError", Object.defineProperties(t, {
112
+ (ts = globalThis).__zod_globalRegistry ?? (ts.__zod_globalRegistry = Ka());
113
+ const Ha = (t, o) => {
114
+ Ba.init(t, o), t.name = "ZodError", Object.defineProperties(t, {
116
115
  format: {
117
- value: (e) => qa(t, e)
116
+ value: (e) => Ua(t, e)
118
117
  // enumerable: false,
119
118
  },
120
119
  flatten: {
121
- value: (e) => Ua(t, e)
120
+ value: (e) => Ra(t, e)
122
121
  // enumerable: false,
123
122
  },
124
123
  addIssue: {
@@ -140,8 +139,8 @@ const Na = (t, o) => {
140
139
  // enumerable: false,
141
140
  }
142
141
  });
143
- }, Wa = bs("ZodError", Na);
144
- function Ga(t, o) {
142
+ }, Na = bs("ZodError", Ha);
143
+ function Wa(t, o) {
145
144
  const e = z([]), u = le("TableComponents")?.labels, n = _(() => `${t.field.label ?? t.fieldKey} ${t.field.required ? u.value.required ?? "*" : u.value.optional ?? "(Optional)"}`), c = (d, g) => [.../* @__PURE__ */ new Set([...d, ...g])];
146
145
  return {
147
146
  label: n,
@@ -157,7 +156,7 @@ function Ga(t, o) {
157
156
  mergeNumberArrays: c
158
157
  };
159
158
  }
160
- function Za(t, o) {
159
+ function Ga(t, o) {
161
160
  for (t = Math.abs(t), o = Math.abs(o); o !== 0; ) {
162
161
  const e = t % o;
163
162
  t = o, o = e;
@@ -167,10 +166,10 @@ function Za(t, o) {
167
166
  function tt(t, o) {
168
167
  if (t === 0 || o === 0)
169
168
  return { w: t, h: o };
170
- const e = Za(t, o);
169
+ const e = Ga(t, o);
171
170
  return { w: Math.round(t / e), h: Math.round(o / e) };
172
171
  }
173
- function Ya(t, o) {
172
+ function Za(t, o) {
174
173
  if (o === 0)
175
174
  return `${t}:0`;
176
175
  const e = t / o, u = {
@@ -189,7 +188,7 @@ function Ya(t, o) {
189
188
  function fe() {
190
189
  return Math.random().toString(36).substring(2, 9);
191
190
  }
192
- function Ja(t, o) {
191
+ function Ya(t, o) {
193
192
  if (Array.isArray(t) && Array.isArray(o)) {
194
193
  if (t.length !== o.length) return !1;
195
194
  for (let e = 0; e < t.length; e++) if (t[e] !== o[e]) return !1;
@@ -207,7 +206,7 @@ function Ae(t, o, e) {
207
206
  const u = o.split("."), n = u.pop(), c = u.reduce((j, d) => (j[d] || (j[d] = {}), j[d]), t);
208
207
  c[n] = e;
209
208
  }
210
- function Qa(t, o) {
209
+ function Ja(t, o) {
211
210
  const e = o.split(".");
212
211
  let u = t;
213
212
  for (let c = 0; c < e.length - 1; c++) {
@@ -219,7 +218,7 @@ function Qa(t, o) {
219
218
  for (let c = e.length - 2; c >= 0; c--) {
220
219
  const j = e.slice(0, c + 1).join("."), d = X(t, j);
221
220
  if (d && typeof d == "object" && Object.keys(d).length === 0)
222
- Qa(t, j);
221
+ Ja(t, j);
223
222
  else
224
223
  break;
225
224
  }
@@ -227,16 +226,16 @@ function Qa(t, o) {
227
226
  function as(t) {
228
227
  return t == null ? !0 : Array.isArray(t) ? t.length === 0 : typeof t == "object" ? Object.keys(t).length === 0 : !1;
229
228
  }
230
- function Xa(t, o) {
229
+ function Qa(t, o) {
231
230
  const e = o.split("."), u = (n, c) => {
232
231
  if (!c.length || !n)
233
232
  return as(n);
234
- const j = c[0], d = c.slice(1), g = /^\d+$/.test(j), p = g ? parseInt(j, 10) : -1;
233
+ const j = c[0], d = c.slice(1), g = /^\d+$/.test(j), b = g ? parseInt(j, 10) : -1;
235
234
  if (d.length === 0)
236
- Array.isArray(n) && g ? p < n.length && n.splice(p, 1) : typeof n == "object" && !Array.isArray(n) && delete n[j];
235
+ Array.isArray(n) && g ? b < n.length && n.splice(b, 1) : typeof n == "object" && !Array.isArray(n) && delete n[j];
237
236
  else {
238
- const y = Array.isArray(n) && g ? n[p] : n[j];
239
- u(y, d) && (Array.isArray(n) && g ? p < n.length && n.splice(p, 1) : typeof n == "object" && !Array.isArray(n) && delete n[j]);
237
+ const y = Array.isArray(n) && g ? n[b] : n[j];
238
+ u(y, d) && (Array.isArray(n) && g ? b < n.length && n.splice(b, 1) : typeof n == "object" && !Array.isArray(n) && delete n[j]);
240
239
  }
241
240
  return as(n);
242
241
  };
@@ -246,19 +245,19 @@ function ds(t, o = "optionGroupSchema") {
246
245
  const e = new RegExp(`(\\.?${o})+`, "g");
247
246
  return t.replace(e, "").replace(/\.+/g, ".").replace(/^\.|\.$/g, "");
248
247
  }
249
- const _a = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ed = /^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/, td = /^([01]\d|2[0-3]):([0-5]\d)$/, sd = /^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])T([01]\d|2[0-3]):([0-5]\d)(:[0-5]\d)?$/;
248
+ const Xa = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, _a = /^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/, ed = /^([01]\d|2[0-3]):([0-5]\d)$/, td = /^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])T([01]\d|2[0-3]):([0-5]\d)(:[0-5]\d)?$/;
250
249
  function qe(t) {
251
- if (!ed.test(t))
250
+ if (!_a.test(t))
252
251
  throw new Error(`Invalid DateOnly format: ${t}. Use YYYY-MM-DD`);
253
252
  return t;
254
253
  }
255
254
  function rs(t) {
256
- if (!td.test(t))
255
+ if (!ed.test(t))
257
256
  throw new Error(`Invalid TimeOnly format: ${t}. Use HH:mm`);
258
257
  return t;
259
258
  }
260
- function Xn(t) {
261
- if (!sd.test(t))
259
+ function Jn(t) {
260
+ if (!td.test(t))
262
261
  throw new Error(`Invalid DateTimeString format: ${t}. Use ISO YYYY-MM-DDTHH:mm[:ss]`);
263
262
  return t;
264
263
  }
@@ -1402,33 +1401,33 @@ const ps = {
1402
1401
  }
1403
1402
  }
1404
1403
  };
1405
- function _n(t, o) {
1404
+ function Qn(t, o) {
1406
1405
  me[t] = o;
1407
1406
  }
1408
- function ei(t, o) {
1407
+ function Xn(t, o) {
1409
1408
  ps[t] = o;
1410
1409
  }
1411
- function ti(t, o, e) {
1410
+ function _n(t, o, e) {
1412
1411
  et[t] || (et[t] = {}), et[t][o] = e;
1413
1412
  }
1414
1413
  function ls(t, o) {
1415
1414
  return ps[t].replace(/\{(\w+)\}/g, (u, n) => o[n] || "");
1416
1415
  }
1417
- function ad(t, o, e, u, n) {
1418
- const c = z({}), j = z([]), d = z({}), g = z({}), p = z({}), y = z({}), r = z({}), a = z(!1), l = _(() => t.isUpdate ? Object.keys(c.value).some((D) => {
1419
- const B = c.value[D], W = p.value[D];
1416
+ function sd(t, o, e, u, n) {
1417
+ const c = z({}), j = z([]), d = z({}), g = z({}), b = z({}), y = z({}), r = z({}), a = z(!1), l = _(() => t.isUpdate ? Object.keys(c.value).some((D) => {
1418
+ const B = c.value[D], W = b.value[D];
1420
1419
  return Array.isArray(B) && Array.isArray(W) ? JSON.stringify(B) !== JSON.stringify(W) : B instanceof File ? !0 : B !== W;
1421
1420
  }) : !0);
1422
1421
  ne(
1423
1422
  [() => t.schema, () => t.initialData],
1424
1423
  ([D, B], [W, K]) => {
1425
- (D !== W || B !== K) && b(D);
1424
+ (D !== W || B !== K) && p(D);
1426
1425
  },
1427
1426
  { immediate: !0, deep: !0 }
1428
1427
  );
1429
- function b(D = t.schema) {
1428
+ function p(D = t.schema) {
1430
1429
  const B = {}, W = {}, K = t.initialData ?? {};
1431
- x(D, B, W, K), c.value = B, p.value = W;
1430
+ x(D, B, W, K), c.value = B, b.value = W;
1432
1431
  }
1433
1432
  function x(D, B, W, K = {}, G) {
1434
1433
  for (const [N, J] of Object.entries(D)) {
@@ -1513,10 +1512,10 @@ function ad(t, o, e, u, n) {
1513
1512
  }
1514
1513
  function A(D, B) {
1515
1514
  const W = X(g.value, B);
1516
- Ja(W, D) || Ae(g.value, B, D);
1515
+ Ya(W, D) || Ae(g.value, B, D);
1517
1516
  }
1518
1517
  function S(D) {
1519
- Xa(g.value, D);
1518
+ Qa(g.value, D);
1520
1519
  }
1521
1520
  function C() {
1522
1521
  let D = !0;
@@ -1723,7 +1722,7 @@ function ad(t, o, e, u, n) {
1723
1722
  multiSelected: r,
1724
1723
  isSubmitting: a,
1725
1724
  DataChildRemove: j,
1726
- initializeFormData: b,
1725
+ initializeFormData: p,
1727
1726
  validate: O,
1728
1727
  handleSubmit: L,
1729
1728
  handleCancel: je,
@@ -1731,16 +1730,16 @@ function ad(t, o, e, u, n) {
1731
1730
  deleteInputValidateErrorMessage: S
1732
1731
  };
1733
1732
  }
1734
- const dd = { class: "jsgd-p-6 jsgd-bg-gradient-to-br jsgd-from-indigo-600 jsgd-to-violet-600 jsgd-text-white jsgd-relative jsgd-shadow-md md:jsgd-px-8 md:jsgd-py-6" }, rd = { class: "jsgd-flex jsgd-justify-between jsgd-items-center" }, ld = { class: "jsgd-flex jsgd-items-center jsgd-gap-3 jsgd-text-center md:jsgd-text-left md:jsgd-flex-row jsgd-flex-col md:jsgd-gap-3" }, nd = {
1733
+ const ad = { class: "jsgd-p-6 jsgd-bg-gradient-to-br jsgd-from-indigo-600 jsgd-to-violet-600 jsgd-text-white jsgd-relative jsgd-shadow-md md:jsgd-px-8 md:jsgd-py-6" }, dd = { class: "jsgd-flex jsgd-justify-between jsgd-items-center" }, rd = { class: "jsgd-flex jsgd-items-center jsgd-gap-3 jsgd-text-center md:jsgd-text-left md:jsgd-flex-row jsgd-flex-col md:jsgd-gap-3" }, ld = {
1735
1734
  key: 0,
1736
1735
  class: "jsgd-bg-white/20 jsgd-rounded-xl jsgd-w-10 jsgd-h-10 jsgd-flex jsgd-items-center jsgd-justify-center jsgd-backdrop-blur-md jsgd-animate-[slideInFromBottom_0.5s_ease-out]"
1737
- }, id = {
1736
+ }, nd = {
1738
1737
  key: 1,
1739
1738
  class: "jsgd-bg-white/20 jsgd-rounded-xl jsgd-w-10 jsgd-h-10 jsgd-flex jsgd-items-center jsgd-justify-center jsgd-backdrop-blur-md jsgd-animate-[slideInFromBottom_0.5s_ease-out]"
1740
- }, od = { class: "jsgd-text-xl md:jsgd-text-2xl jsgd-font-bold jsgd-m-0 jsgd-shadow-sm jsgd-animate-[slideInFromBottom_0.5s_ease-out_0.1s_both]" }, gd = { class: "jsgd-flex-1 jsgd-overflow-y-auto jsgd-p-6 md:jsgd-p-8 jsgd-bg-white jsgd-relative dark:jsgd-bg-slate-800 jsgd-modal-scrollbar" }, ud = { class: "jsgd-flex jsgd-p-6 md:jsgd-p-8 jsgd-border-1 jsgd-border-solid jsgd-border-slate-200 jsgd-shadow-lg jsgd-rounded-xl jsgd-flex-col jsgd-gap-6 dark:jsgd-border-blue-600 dark:jsgd-shadow-blue-900/50" }, cd = { class: "jsgd-p-5 md:jsgd-p-6 jsgd-bg-slate-50 jsgd-border-t jsgd-border-slate-200 jsgd-relative dark:jsgd-bg-slate-900 dark:jsgd-border-slate-700" }, md = { class: "jsgd-flex jsgd-justify-end jsgd-gap-4 jsgd-flex-col md:jsgd-flex-row" }, jd = { class: "jsgd-flex jsgd-items-center jsgd-gap-2 jsgd-transition-opacity jsgd-duration-300" }, fd = ["disabled"], hd = {
1739
+ }, id = { class: "jsgd-text-xl md:jsgd-text-2xl jsgd-font-bold jsgd-m-0 jsgd-shadow-sm jsgd-animate-[slideInFromBottom_0.5s_ease-out_0.1s_both]" }, od = { class: "jsgd-flex-1 jsgd-overflow-y-auto jsgd-p-6 md:jsgd-p-8 jsgd-bg-white jsgd-relative dark:jsgd-bg-slate-800 jsgd-modal-scrollbar" }, gd = { class: "jsgd-flex jsgd-p-6 md:jsgd-p-8 jsgd-border-1 jsgd-border-solid jsgd-border-slate-200 jsgd-shadow-lg jsgd-rounded-xl jsgd-flex-col jsgd-gap-6 dark:jsgd-border-blue-600 dark:jsgd-shadow-blue-900/50" }, ud = { class: "jsgd-p-5 md:jsgd-p-6 jsgd-bg-slate-50 jsgd-border-t jsgd-border-slate-200 jsgd-relative dark:jsgd-bg-slate-900 dark:jsgd-border-slate-700" }, cd = { class: "jsgd-flex jsgd-justify-end jsgd-gap-4 jsgd-flex-col md:jsgd-flex-row" }, md = { class: "jsgd-flex jsgd-items-center jsgd-gap-2 jsgd-transition-opacity jsgd-duration-300" }, jd = ["disabled"], fd = {
1741
1740
  key: 0,
1742
1741
  class: "jsgd-flex jsgd-items-center jsgd-animate-[rotate_1s_linear_infinite]"
1743
- }, bd = /* @__PURE__ */ oe({
1742
+ }, hd = /* @__PURE__ */ oe({
1744
1743
  __name: "FormModal",
1745
1744
  props: {
1746
1745
  id: {},
@@ -1754,25 +1753,25 @@ const dd = { class: "jsgd-p-6 jsgd-bg-gradient-to-br jsgd-from-indigo-600 jsgd-t
1754
1753
  setup(t, { emit: o }) {
1755
1754
  const e = le("TableComponents")?.loader, u = le("TableComponents")?.ShowAlert, n = t, j = le("TableComponents", {
1756
1755
  labels: z(me[n.lang ?? "en"])
1757
- }).labels, d = o, g = z(!1), p = () => {
1756
+ }).labels, d = o, g = z(!1), b = () => {
1758
1757
  g.value = window.innerWidth < 768;
1759
1758
  };
1760
1759
  st(() => {
1761
- p(), window.addEventListener("resize", p);
1760
+ b(), window.addEventListener("resize", b);
1762
1761
  }), Da(() => {
1763
- window.removeEventListener("resize", p);
1762
+ window.removeEventListener("resize", b);
1764
1763
  });
1765
1764
  const {
1766
1765
  formData: y,
1767
1766
  errors: r,
1768
1767
  seletedOption: a,
1769
1768
  multiSelected: l,
1770
- handleSubmit: b,
1769
+ handleSubmit: p,
1771
1770
  handleCancel: x,
1772
1771
  pushInputValidateErrorMessage: w,
1773
1772
  deleteInputValidateErrorMessage: $,
1774
1773
  isSubmitting: A
1775
- } = ad(
1774
+ } = sd(
1776
1775
  {
1777
1776
  id: n.id,
1778
1777
  initialData: n.initialData,
@@ -1807,10 +1806,10 @@ const dd = { class: "jsgd-p-6 jsgd-bg-gradient-to-br jsgd-from-indigo-600 jsgd-t
1807
1806
  i("div", {
1808
1807
  class: H(["jsgd-w-full jsgd-h-full jsgd-flex jsgd-flex-col jsgd-max-h-screen jsgd-bg-gradient-to-br jsgd-from-white jsgd-to-slate-50 jsgd-shadow-2xl jsgd-overflow-hidden jsgd-relative before:jsgd-content-[''] before:jsgd-absolute before:jsgd-top-0 before:jsgd-left-0 before:jsgd-right-0 before:jsgd-h-px before:jsgd-bg-gradient-to-r before:jsgd-from-transparent before:jsgd-via-white/80 before:jsgd-to-transparent before:jsgd-z-10 md:jsgd-h-auto md:jsgd-w-[90%] md:jsgd-max-w-[700px] md:jsgd-max-h-[90vh] md:jsgd-rounded-2xl lg:jsgd-w-[80%] lg:jsgd-max-w-[800px] xl:jsgd-max-w-[900px] dark:jsgd-from-slate-800 dark:jsgd-to-slate-900 dark:jsgd-text-slate-100", { "jsgd-rounded-none jsgd-h-screen": g.value }])
1809
1808
  }, [
1810
- i("div", dd, [
1811
- i("div", rd, [
1812
- i("div", ld, [
1813
- t.isUpdate ? (f(), k("div", nd, [...C[4] || (C[4] = [
1809
+ i("div", ad, [
1810
+ i("div", dd, [
1811
+ i("div", rd, [
1812
+ t.isUpdate ? (f(), k("div", ld, [...C[4] || (C[4] = [
1814
1813
  i("svg", {
1815
1814
  width: "24",
1816
1815
  height: "24",
@@ -1826,7 +1825,7 @@ const dd = { class: "jsgd-p-6 jsgd-bg-gradient-to-br jsgd-from-indigo-600 jsgd-t
1826
1825
  "stroke-linejoin": "round"
1827
1826
  })
1828
1827
  ], -1)
1829
- ])])) : (f(), k("div", id, [...C[5] || (C[5] = [
1828
+ ])])) : (f(), k("div", nd, [...C[5] || (C[5] = [
1830
1829
  i("svg", {
1831
1830
  width: "24",
1832
1831
  height: "24",
@@ -1843,7 +1842,7 @@ const dd = { class: "jsgd-p-6 jsgd-bg-gradient-to-br jsgd-from-indigo-600 jsgd-t
1843
1842
  })
1844
1843
  ], -1)
1845
1844
  ])])),
1846
- i("h2", od, F(t.isUpdate ? typeof m(j)?.title == "object" ? m(j)?.title?.update : m(j)?.title : typeof m(j)?.title == "object" ? m(j)?.title?.create : m(j)?.title), 1)
1845
+ i("h2", id, F(t.isUpdate ? typeof m(j)?.title == "object" ? m(j)?.title?.update : m(j)?.title : typeof m(j)?.title == "object" ? m(j)?.title?.create : m(j)?.title), 1)
1847
1846
  ]),
1848
1847
  i("button", {
1849
1848
  class: "jsgd-bg-white/20 jsgd-border-none jsgd-rounded-full jsgd-w-10 jsgd-h-10 jsgd-flex jsgd-items-center jsgd-justify-center jsgd-cursor-pointer jsgd-text-white jsgd-transition-all jsgd-backdrop-blur-md hover:jsgd-bg-white/30 hover:jsgd-scale-110 hover:jsgd-rotate-90 jsgd-animate-[slideInFromBottom_0.5s_ease-out_0.2s_both]",
@@ -1869,8 +1868,8 @@ const dd = { class: "jsgd-p-6 jsgd-bg-gradient-to-br jsgd-from-indigo-600 jsgd-t
1869
1868
  ])])
1870
1869
  ])
1871
1870
  ]),
1872
- i("div", gd, [
1873
- i("div", ud, [
1871
+ i("div", od, [
1872
+ i("div", gd, [
1874
1873
  We(Ia, {
1875
1874
  name: "jsgd-form-field",
1876
1875
  tag: "div",
@@ -1903,15 +1902,15 @@ const dd = { class: "jsgd-p-6 jsgd-bg-gradient-to-br jsgd-from-indigo-600 jsgd-t
1903
1902
  })
1904
1903
  ])
1905
1904
  ]),
1906
- i("div", cd, [
1907
- i("div", md, [
1905
+ i("div", ud, [
1906
+ i("div", cd, [
1908
1907
  i("button", {
1909
1908
  type: "button",
1910
1909
  onClick: C[1] || (C[1] = //@ts-ignore
1911
1910
  (...O) => m(x) && m(x)(...O)),
1912
1911
  class: "jsgd-px-7 jsgd-py-3.5 jsgd-rounded-xl jsgd-border-none jsgd-font-semibold jsgd-text-sm jsgd-cursor-pointer jsgd-transition-all jsgd-relative jsgd-overflow-hidden jsgd-flex jsgd-items-center jsgd-gap-2 jsgd-min-w-[100px] jsgd-justify-center disabled:jsgd-opacity-70 disabled:jsgd-cursor-not-allowed before:jsgd-content-[''] before:jsgd-absolute before:jsgd-top-0 before:jsgd-left-[-100%] before:jsgd-w-full before:jsgd-h-full before:jsgd-bg-gradient-to-r before:jsgd-from-transparent before:jsgd-via-white/30 before:jsgd-to-transparent before:jsgd-transition-[left] before:jsgd-duration-600 hover:before:jsgd-left-full jsgd-text-white jsgd-bg-gradient-to-br jsgd-from-red-500 jsgd-to-red-600 jsgd-shadow-md hover:jsgd-from-red-600 hover:jsgd-to-red-700 hover:-jsgd-translate-y-0.5 active:jsgd-translate-y-0"
1913
1912
  }, [
1914
- i("span", jd, [
1913
+ i("span", md, [
1915
1914
  C[7] || (C[7] = i("svg", {
1916
1915
  width: "16",
1917
1916
  height: "16",
@@ -1933,7 +1932,7 @@ const dd = { class: "jsgd-p-6 jsgd-bg-gradient-to-br jsgd-from-indigo-600 jsgd-t
1933
1932
  i("button", {
1934
1933
  type: "submit",
1935
1934
  onClick: C[2] || (C[2] = //@ts-ignore
1936
- (...O) => m(b) && m(b)(...O)),
1935
+ (...O) => m(p) && m(p)(...O)),
1937
1936
  class: "jsgd-px-7 jsgd-py-3.5 jsgd-rounded-xl jsgd-border-none jsgd-font-semibold jsgd-text-sm jsgd-cursor-pointer jsgd-transition-all jsgd-relative jsgd-overflow-hidden jsgd-flex jsgd-items-center jsgd-gap-2 jsgd-min-w-[100px] jsgd-justify-center disabled:jsgd-opacity-70 disabled:jsgd-cursor-not-allowed before:jsgd-content-[''] before:jsgd-absolute before:jsgd-top-0 before:jsgd-left-[-100%] before:jsgd-w-full before:jsgd-h-full before:jsgd-bg-gradient-to-r before:jsgd-from-transparent before:jsgd-via-white/30 before:jsgd-to-transparent before:jsgd-transition-[left] before:jsgd-duration-600 hover:before:jsgd-left-full jsgd-text-white jsgd-bg-gradient-to-br jsgd-from-emerald-500 jsgd-to-emerald-600 jsgd-shadow-md hover:jsgd-from-emerald-600 hover:jsgd-to-emerald-700 hover:-jsgd-translate-y-0.5 active:jsgd-translate-y-0",
1938
1937
  disabled: m(A)
1939
1938
  }, [
@@ -1957,7 +1956,7 @@ const dd = { class: "jsgd-p-6 jsgd-bg-gradient-to-br jsgd-from-indigo-600 jsgd-t
1957
1956
  ], -1)),
1958
1957
  te(" " + F(t.isUpdate ? typeof m(j)?.btn?.submit == "object" ? m(j)?.btn?.submit?.update : m(j)?.btn?.submit : typeof m(j)?.btn?.submit == "object" ? m(j)?.btn?.submit?.create : m(j)?.btn?.submit), 1)
1959
1958
  ], 2),
1960
- m(A) ? (f(), k("span", hd, [...C[9] || (C[9] = [
1959
+ m(A) ? (f(), k("span", fd, [...C[9] || (C[9] = [
1961
1960
  i("svg", {
1962
1961
  width: "16",
1963
1962
  height: "16",
@@ -1974,7 +1973,7 @@ const dd = { class: "jsgd-p-6 jsgd-bg-gradient-to-br jsgd-from-indigo-600 jsgd-t
1974
1973
  })
1975
1974
  ], -1)
1976
1975
  ])])) : V("", !0)
1977
- ], 8, fd)
1976
+ ], 8, jd)
1978
1977
  ])
1979
1978
  ])
1980
1979
  ], 2)
@@ -1991,7 +1990,7 @@ const dd = { class: "jsgd-p-6 jsgd-bg-gradient-to-br jsgd-from-indigo-600 jsgd-t
1991
1990
  for (const [u, n] of o)
1992
1991
  e[u] = n;
1993
1992
  return e;
1994
- }, vs = /* @__PURE__ */ It(bd, [["__scopeId", "data-v-1eaee158"]]);
1993
+ }, vs = /* @__PURE__ */ It(hd, [["__scopeId", "data-v-1eaee158"]]);
1995
1994
  function E(t, o, e) {
1996
1995
  let u = et[t][e ?? "en"] || et[t].en;
1997
1996
  if (o)
@@ -1999,7 +1998,7 @@ function E(t, o, e) {
1999
1998
  u = u.replace(`{${n}}`, String(c));
2000
1999
  return u;
2001
2000
  }
2002
- const pd = { class: "jsgd-text-sm jsgd-font-medium jsgd-leading-snug jsgd-whitespace-pre-wrap" }, vd = { key: 1 }, xd = {
2001
+ const bd = { class: "jsgd-text-sm jsgd-font-medium jsgd-leading-snug jsgd-whitespace-pre-wrap" }, pd = { key: 1 }, vd = {
2003
2002
  key: 0,
2004
2003
  class: "jsgd-px-1.5 jsgd-py-0.5 jsgd-bg-slate-700 jsgd-text-slate-300 jsgd-text-xs jsgd-rounded dark:jsgd-bg-slate-600 dark:jsgd-text-slate-400"
2005
2004
  }, xe = /* @__PURE__ */ oe({
@@ -2040,35 +2039,35 @@ const pd = { class: "jsgd-text-sm jsgd-font-medium jsgd-leading-snug jsgd-whites
2040
2039
  window.clearTimeout(j), j = window.setTimeout(async () => {
2041
2040
  e.value = !0, await La(), y();
2042
2041
  }, 300);
2043
- }, p = () => {
2042
+ }, b = () => {
2044
2043
  window.clearTimeout(j), e.value = !1;
2045
2044
  };
2046
2045
  function y() {
2047
2046
  if (!u.value || !n.value) return;
2048
2047
  const r = u.value.getBoundingClientRect(), a = n.value.getBoundingClientRect(), l = 8;
2049
- let b = 0, x = 0;
2048
+ let p = 0, x = 0;
2050
2049
  switch (o.position) {
2051
2050
  case "bottom":
2052
- b = r.bottom + l, x = r.left + r.width / 2 - a.width / 2;
2051
+ p = r.bottom + l, x = r.left + r.width / 2 - a.width / 2;
2053
2052
  break;
2054
2053
  case "left":
2055
- b = r.top + r.height / 2 - a.height / 2, x = r.left - a.width - l;
2054
+ p = r.top + r.height / 2 - a.height / 2, x = r.left - a.width - l;
2056
2055
  break;
2057
2056
  case "right":
2058
- b = r.top + r.height / 2 - a.height / 2, x = r.right + l;
2057
+ p = r.top + r.height / 2 - a.height / 2, x = r.right + l;
2059
2058
  break;
2060
2059
  default:
2061
- b = r.top - a.height - l, x = r.left + r.width / 2 - a.width / 2;
2060
+ p = r.top - a.height - l, x = r.left + r.width / 2 - a.width / 2;
2062
2061
  break;
2063
2062
  }
2064
- c.value = { top: `${b}px`, left: `${x}px` };
2063
+ c.value = { top: `${p}px`, left: `${x}px` };
2065
2064
  }
2066
2065
  return (r, a) => (f(), Z(Ea(t.as), {
2067
2066
  class: "jsgd-inline-flex jsgd-cursor-pointer",
2068
2067
  ref_key: "trigger",
2069
2068
  ref: u,
2070
2069
  onMouseenter: g,
2071
- onMouseleave: p
2070
+ onMouseleave: b
2072
2071
  }, {
2073
2072
  default: ce(() => [
2074
2073
  Va(r.$slots, "default"),
@@ -2089,10 +2088,10 @@ const pd = { class: "jsgd-text-sm jsgd-font-medium jsgd-leading-snug jsgd-whites
2089
2088
  class: "jsgd-fixed jsgd-z-[1000] jsgd-flex jsgd-items-start jsgd-gap-3 jsgd-px-4 jsgd-py-2.5 jsgd-bg-slate-800 jsgd-text-slate-50 jsgd-rounded-xl jsgd-shadow-lg jsgd-w-max jsgd-max-w-[300px] jsgd-pointer-events-none dark:jsgd-bg-slate-900 dark:jsgd-text-slate-100 dark:jsgd-shadow-[0_4px_20px_-2px_rgba(0,0,0,0.4),inset_0_0_0_1px_rgba(96,165,250,0.5),0_0_12px_rgba(96,165,250,0.2)]",
2090
2089
  style: Ge(c.value)
2091
2090
  }, [
2092
- i("div", pd, [
2093
- Array.isArray(t.text) ? (f(!0), k(ee, { key: 0 }, de(t.text, (l, b) => (f(), k("p", { key: b }, F(l), 1))), 128)) : (f(), k("p", vd, F(t.text), 1))
2091
+ i("div", bd, [
2092
+ Array.isArray(t.text) ? (f(!0), k(ee, { key: 0 }, de(t.text, (l, p) => (f(), k("p", { key: p }, F(l), 1))), 128)) : (f(), k("p", pd, F(t.text), 1))
2094
2093
  ]),
2095
- t.hotkey ? (f(), k("span", xd, F(t.hotkey), 1)) : V("", !0),
2094
+ t.hotkey ? (f(), k("span", vd, F(t.hotkey), 1)) : V("", !0),
2096
2095
  i("div", {
2097
2096
  class: H(["jsgd-absolute jsgd-w-0 jsgd-h-0 jsgd-border-[6px] jsgd-border-transparent", d.value])
2098
2097
  }, null, 2)
@@ -2105,30 +2104,30 @@ const pd = { class: "jsgd-text-sm jsgd-font-medium jsgd-leading-snug jsgd-whites
2105
2104
  _: 3
2106
2105
  }, 544));
2107
2106
  }
2108
- }), yd = {
2107
+ }), xd = {
2109
2108
  key: 0,
2110
2109
  class: "jsgd-fixed jsgd-inset-0 jsgd-z-100 jsgd-grid jsgd-place-items-center jsgd-bg-slate-900/70 jsgd-backdrop-blur-sm"
2111
- }, wd = { class: "jsgd-bg-white jsgd-p-8 jsgd-rounded-xl jsgd-shadow-2xl jsgd-flex jsgd-flex-col jsgd-items-center jsgd-w-[90%] jsgd-max-w-sm jsgd-text-center jsgd-transition-transform jsgd-duration-300 dark:jsgd-bg-slate-800" }, kd = {
2110
+ }, yd = { class: "jsgd-bg-white jsgd-p-8 jsgd-rounded-xl jsgd-shadow-2xl jsgd-flex jsgd-flex-col jsgd-items-center jsgd-w-[90%] jsgd-max-w-sm jsgd-text-center jsgd-transition-transform jsgd-duration-300 dark:jsgd-bg-slate-800" }, wd = {
2112
2111
  key: 0,
2113
2112
  class: "jsgd-flex jsgd-flex-col jsgd-items-center jsgd-gap-4"
2114
- }, Sd = { class: "jsgd-text-slate-500 jsgd-font-medium dark:jsgd-text-slate-400" }, $d = {
2113
+ }, kd = { class: "jsgd-text-slate-500 jsgd-font-medium dark:jsgd-text-slate-400" }, Sd = {
2115
2114
  key: 1,
2116
2115
  class: "jsgd-flex jsgd-flex-col jsgd-items-center jsgd-gap-4"
2117
- }, Ad = { class: "jsgd-font-medium jsgd-text-slate-700 dark:jsgd-text-slate-200" }, Td = {
2116
+ }, $d = { class: "jsgd-font-medium jsgd-text-slate-700 dark:jsgd-text-slate-200" }, Ad = {
2118
2117
  key: 2,
2119
2118
  class: "jsgd-flex jsgd-flex-col jsgd-items-center jsgd-gap-4"
2120
- }, Md = { class: "jsgd-font-medium jsgd-text-slate-700 dark:jsgd-text-slate-200" }, Cd = /* @__PURE__ */ oe({
2119
+ }, Td = { class: "jsgd-font-medium jsgd-text-slate-700 dark:jsgd-text-slate-200" }, Md = /* @__PURE__ */ oe({
2121
2120
  __name: "LoaderSuccessError",
2122
2121
  emits: ["success", "error"],
2123
2122
  setup(t, { expose: o, emit: e }) {
2124
- const u = e, n = z(!1), c = z("loading"), j = z(""), d = (p = "loading", y = "") => {
2125
- n.value = !0, c.value = p, j.value = y, p !== "loading" && setTimeout(() => {
2126
- g(), u(p === "success" ? "success" : "error");
2123
+ const u = e, n = z(!1), c = z("loading"), j = z(""), d = (b = "loading", y = "") => {
2124
+ n.value = !0, c.value = b, j.value = y, b !== "loading" && setTimeout(() => {
2125
+ g(), u(b === "success" ? "success" : "error");
2127
2126
  }, 3e3);
2128
2127
  }, g = () => {
2129
2128
  n.value = !1;
2130
2129
  };
2131
- return o({ show: d, hide: g }), (p, y) => (f(), Z(He, {
2130
+ return o({ show: d, hide: g }), (b, y) => (f(), Z(He, {
2132
2131
  "enter-active-class": "jsgd-transition-opacity jsgd-duration-300 jsgd-ease-out",
2133
2132
  "enter-from-class": "jsgd-opacity-0",
2134
2133
  "enter-to-class": "jsgd-opacity-100",
@@ -2137,13 +2136,13 @@ const pd = { class: "jsgd-text-sm jsgd-font-medium jsgd-leading-snug jsgd-whites
2137
2136
  "leave-to-class": "jsgd-opacity-0"
2138
2137
  }, {
2139
2138
  default: ce(() => [
2140
- n.value ? (f(), k("div", yd, [
2141
- i("div", wd, [
2142
- c.value === "loading" ? (f(), k("div", kd, [
2139
+ n.value ? (f(), k("div", xd, [
2140
+ i("div", yd, [
2141
+ c.value === "loading" ? (f(), k("div", wd, [
2143
2142
  y[0] || (y[0] = i("div", { class: "jsgd-w-12 jsgd-h-12 jsgd-animate-spin spinner" }, null, -1)),
2144
- i("p", Sd, F(j.value || "Memproses..."), 1)
2143
+ i("p", kd, F(j.value || "Memproses..."), 1)
2145
2144
  ])) : V("", !0),
2146
- c.value === "success" ? (f(), k("div", $d, [
2145
+ c.value === "success" ? (f(), k("div", Sd, [
2147
2146
  y[1] || (y[1] = i("div", { class: "jsgd-relative jsgd-animate-[popIn_400ms_cubic-bezier(0.16,1,0.3,1)_backwards]" }, [
2148
2147
  i("div", { class: "jsgd-w-14 jsgd-h-14 jsgd-rounded-full jsgd-grid jsgd-place-items-center jsgd-bg-green-100 dark:jsgd-bg-green-900/50" }, [
2149
2148
  i("span", { class: "jsgd-i-mdi-check jsgd-w-8 jsgd-h-8 jsgd-text-green-600 dark:jsgd-text-green-400" })
@@ -2153,9 +2152,9 @@ const pd = { class: "jsgd-text-sm jsgd-font-medium jsgd-leading-snug jsgd-whites
2153
2152
  style: { "animation-delay": "0.2s" }
2154
2153
  })
2155
2154
  ], -1)),
2156
- i("p", Ad, F(j.value || "Berhasil!"), 1)
2155
+ i("p", $d, F(j.value || "Berhasil!"), 1)
2157
2156
  ])) : V("", !0),
2158
- c.value === "error" ? (f(), k("div", Td, [
2157
+ c.value === "error" ? (f(), k("div", Ad, [
2159
2158
  y[2] || (y[2] = i("div", { class: "jsgd-relative jsgd-animate-[popIn_400ms_cubic-bezier(0.16,1,0.3,1)_backwards]" }, [
2160
2159
  i("div", { class: "jsgd-w-14 jsgd-h-14 jsgd-rounded-full jsgd-grid jsgd-place-items-center jsgd-bg-red-100 dark:jsgd-bg-red-900/50" }, [
2161
2160
  i("span", { class: "jsgd-i-mdi-close jsgd-w-8 jsgd-h-8 jsgd-text-red-600 dark:jsgd-text-red-400" })
@@ -2165,7 +2164,7 @@ const pd = { class: "jsgd-text-sm jsgd-font-medium jsgd-leading-snug jsgd-whites
2165
2164
  style: { "animation-delay": "0.2s" }
2166
2165
  })
2167
2166
  ], -1)),
2168
- i("p", Md, F(j.value || "Gagal!"), 1)
2167
+ i("p", Td, F(j.value || "Gagal!"), 1)
2169
2168
  ])) : V("", !0)
2170
2169
  ])
2171
2170
  ])) : V("", !0)
@@ -2173,13 +2172,13 @@ const pd = { class: "jsgd-text-sm jsgd-font-medium jsgd-leading-snug jsgd-whites
2173
2172
  _: 1
2174
2173
  }));
2175
2174
  }
2176
- }), Dd = /* @__PURE__ */ It(Cd, [["__scopeId", "data-v-2ec15644"]]);
2177
- function Id(t, o, e) {
2175
+ }), Cd = /* @__PURE__ */ It(Md, [["__scopeId", "data-v-2ec15644"]]);
2176
+ function Dd(t, o, e) {
2178
2177
  const u = z(!1), n = z({}), c = z(null), j = z([]), d = z([...t.modelValue ?? []]);
2179
2178
  ne(
2180
2179
  () => t.modelValue,
2181
- (b) => {
2182
- d.value = [...b ?? []];
2180
+ (p) => {
2181
+ d.value = [...p ?? []];
2183
2182
  }
2184
2183
  );
2185
2184
  const g = _(() => o.value.btn.add || "Add Item");
@@ -2193,24 +2192,24 @@ function Id(t, o, e) {
2193
2192
  handleAddClick: () => {
2194
2193
  n.value = {}, c.value = null, u.value = !0;
2195
2194
  },
2196
- handleEditClick: (b) => {
2197
- n.value = { ...d.value[b] }, c.value = b, u.value = !0;
2195
+ handleEditClick: (p) => {
2196
+ n.value = { ...d.value[p] }, c.value = p, u.value = !0;
2198
2197
  },
2199
- handleSubmit: (b) => {
2198
+ handleSubmit: (p) => {
2200
2199
  const x = [...d.value];
2201
- c.value === null ? x.push(b) : (n.value.id && (b.id = n.value.id), x[c.value] = b), d.value = x, e("update:modelValue", x, t.id), u.value = !1;
2200
+ c.value === null ? x.push(p) : (n.value.id && (p.id = n.value.id), x[c.value] = p), d.value = x, e("update:modelValue", x, t.id), u.value = !1;
2202
2201
  },
2203
- remove: (b) => {
2202
+ remove: (p) => {
2204
2203
  const x = [...d.value];
2205
- x.splice(b, 1), d.value = x, e("update:modelValue", x, t.id);
2204
+ x.splice(p, 1), d.value = x, e("update:modelValue", x, t.id);
2206
2205
  },
2207
- getImageSrc: (b) => typeof b == "string" ? b : b instanceof File ? URL.createObjectURL(b) : ""
2206
+ getImageSrc: (p) => typeof p == "string" ? p : p instanceof File ? URL.createObjectURL(p) : ""
2208
2207
  };
2209
2208
  }
2210
- function Ed(t, o) {
2209
+ function Id(t, o) {
2211
2210
  const e = z(null), u = z([]), n = z([]);
2212
2211
  let c = null, j = !1;
2213
- const d = (A) => !(A == null || typeof A == "string" && A.trim() === "" || Array.isArray(A) && A.length === 0 || typeof A == "object" && !Array.isArray(A) && Object.keys(A).length === 0), g = (A, S) => Object.keys(A).some((C) => d(S[C])), p = (A) => {
2212
+ const d = (A) => !(A == null || typeof A == "string" && A.trim() === "" || Array.isArray(A) && A.length === 0 || typeof A == "object" && !Array.isArray(A) && Object.keys(A).length === 0), g = (A, S) => Object.keys(A).some((C) => d(S[C])), b = (A) => {
2214
2213
  Object.keys(A).forEach((S) => {
2215
2214
  t.formData[S] = null, o("update:model-value", null, S);
2216
2215
  });
@@ -2235,13 +2234,13 @@ function Ed(t, o) {
2235
2234
  u.value = A;
2236
2235
  }, l = () => {
2237
2236
  r(), a(), j = !0;
2238
- }, b = () => {
2239
- c && t.options[c] && p(t.options[c]), e.value && t.options[e.value] && y(t.options[e.value]), c = e.value;
2237
+ }, p = () => {
2238
+ c && t.options[c] && b(t.options[c]), e.value && t.options[e.value] && y(t.options[e.value]), c = e.value;
2240
2239
  }, x = () => {
2241
2240
  const S = Object.keys(t.options).filter((C) => !u.value.includes(C));
2242
2241
  for (const C of S) {
2243
2242
  const O = t.options[C];
2244
- O && p(O);
2243
+ O && b(O);
2245
2244
  }
2246
2245
  for (const C of u.value) {
2247
2246
  const O = t.options[C];
@@ -2255,7 +2254,7 @@ function Ed(t, o) {
2255
2254
  return ne(
2256
2255
  e,
2257
2256
  () => {
2258
- o("selected-option-change", e.value, t.id), t.withValue && o("update:model-value", e.value, t.id), j && b();
2257
+ o("selected-option-change", e.value, t.id), t.withValue && o("update:model-value", e.value, t.id), j && p();
2259
2258
  },
2260
2259
  { deep: !0 }
2261
2260
  ), ne(
@@ -2271,16 +2270,16 @@ function Ed(t, o) {
2271
2270
  multiSelected: u,
2272
2271
  fieldIsColor: n,
2273
2272
  initializeFormData: l,
2274
- handleSelectChange: b,
2273
+ handleSelectChange: p,
2275
2274
  handleCheckboxChange: x,
2276
2275
  errorPush: w,
2277
2276
  errorRemove: $
2278
2277
  };
2279
2278
  }
2280
- const Vd = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, Ld = { class: "jsgd-flex jsgd-justify-between jsgd-items-center jsgd-p-3 jsgd-gap-4 max-[640px]:jsgd-flex-col max-[640px]:jsgd-items-start" }, zd = { class: "jsgd-flex jsgd-items-center jsgd-gap-4 jsgd-min-w-0" }, Fd = ["src"], Od = { class: "jsgd-font-medium jsgd-text-slate-900 jsgd-whitespace-nowrap jsgd-overflow-hidden jsgd-text-ellipsis dark:jsgd-text-slate-100" }, Pd = { class: "jsgd-flex jsgd-items-center jsgd-gap-4 jsgd-shrink-0 max-[640px]:jsgd-w-full max-[640px]:jsgd-justify-end max-[640px]:jsgd-pt-2 max-[640px]:jsgd-border-t-1 max-[640px]:jsgd-border-solid max-[640px]:jsgd-border-slate-200 dark:max-[640px]:jsgd-border-slate-600" }, Bd = ["onClick"], Rd = ["onClick"], Ud = ["disabled"], qd = {
2279
+ const Ed = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, Vd = { class: "jsgd-flex jsgd-justify-between jsgd-items-center jsgd-p-3 jsgd-gap-4 max-[640px]:jsgd-flex-col max-[640px]:jsgd-items-start" }, Ld = { class: "jsgd-flex jsgd-items-center jsgd-gap-4 jsgd-min-w-0" }, zd = ["src"], Fd = { class: "jsgd-font-medium jsgd-text-slate-900 jsgd-whitespace-nowrap jsgd-overflow-hidden jsgd-text-ellipsis dark:jsgd-text-slate-100" }, Od = { class: "jsgd-flex jsgd-items-center jsgd-gap-4 jsgd-shrink-0 max-[640px]:jsgd-w-full max-[640px]:jsgd-justify-end max-[640px]:jsgd-pt-2 max-[640px]:jsgd-border-t-1 max-[640px]:jsgd-border-solid max-[640px]:jsgd-border-slate-200 dark:max-[640px]:jsgd-border-slate-600" }, Pd = ["onClick"], Bd = ["onClick"], Rd = ["disabled"], Ud = {
2281
2280
  key: 1,
2282
2281
  class: "jsgd-mt-2 jsgd-text-sm jsgd-text-red-500 jsgd-animate-[slideIn_300ms_ease-out] dark:jsgd-text-red-400"
2283
- }, Kd = /* @__PURE__ */ oe({
2282
+ }, qd = /* @__PURE__ */ oe({
2284
2283
  __name: "ArrayObject",
2285
2284
  props: {
2286
2285
  id: { default: fe() },
@@ -2299,14 +2298,14 @@ const Vd = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, Ld =
2299
2298
  showModal: j,
2300
2299
  currentEditItem: d,
2301
2300
  currentEditIndex: g,
2302
- addButtonText: p,
2301
+ addButtonText: b,
2303
2302
  handleAddClick: y,
2304
2303
  handleEditClick: r,
2305
2304
  handleSubmit: a,
2306
2305
  remove: l,
2307
- getImageSrc: b,
2306
+ getImageSrc: p,
2308
2307
  localItems: x
2309
- } = Id(e, n, c);
2308
+ } = Dd(e, n, c);
2310
2309
  return (w, $) => (f(), k(ee, null, [
2311
2310
  i("label", {
2312
2311
  class: H(["jsgd-block jsgd-text-sm jsgd-font-semibold jsgd-mb-3 jsgd-text-slate-900 jsgd-transition-colors jsgd-duration-200 dark:jsgd-text-slate-100", { "jsgd-text-red-500 dark:jsgd-text-red-400": e.error }])
@@ -2316,23 +2315,23 @@ const Vd = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, Ld =
2316
2315
  "jsgd-border-red-300 jsgd-bg-red-50 dark:jsgd-border-red-800 dark:jsgd-bg-red-900/10": e.error
2317
2316
  }])
2318
2317
  }, [
2319
- i("div", Vd, [
2318
+ i("div", Ed, [
2320
2319
  (f(!0), k(ee, null, de(m(x), (A, S) => (f(), k("div", {
2321
2320
  key: S,
2322
2321
  class: "jsgd-bg-slate-50 jsgd-border-1 jsgd-border-solid jsgd-border-slate-200 jsgd-rounded-lg jsgd-transition-all jsgd-duration-200 jsgd-animate-[slideIn_500ms_ease-out_backwards] hover:jsgd-bg-white hover:-jsgd-translate-y-0.5 hover:jsgd-shadow-md dark:jsgd-bg-slate-700 dark:jsgd-border-slate-600 dark:hover:jsgd-bg-slate-600",
2323
2322
  style: Ge({ animationDelay: `${S * 50}ms` })
2324
2323
  }, [
2325
- i("div", Ld, [
2326
- i("div", zd, [
2324
+ i("div", Vd, [
2325
+ i("div", Ld, [
2327
2326
  A?.image ? (f(), k("img", {
2328
2327
  key: 0,
2329
- src: m(b)(A.image),
2328
+ src: m(p)(A.image),
2330
2329
  class: "jsgd-w-14 jsgd-h-14 jsgd-object-cover jsgd-rounded-full jsgd-border-2 jsgd-border-white jsgd-shadow-sm jsgd-shrink-0 dark:jsgd-border-slate-500",
2331
2330
  alt: "Preview Gambar"
2332
- }, null, 8, Fd)) : V("", !0),
2333
- i("span", Od, F(A?.name || `Item ${S + 1}`), 1)
2331
+ }, null, 8, zd)) : V("", !0),
2332
+ i("span", Fd, F(A?.name || `Item ${S + 1}`), 1)
2334
2333
  ]),
2335
- i("div", Pd, [
2334
+ i("div", Od, [
2336
2335
  i("span", {
2337
2336
  role: "button",
2338
2337
  tabindex: "0",
@@ -2340,7 +2339,7 @@ const Vd = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, Ld =
2340
2339
  "jsgd-opacity-50 jsgd-cursor-not-allowed jsgd-pointer-events-none": t.disabled
2341
2340
  }]),
2342
2341
  onClick: (C) => !t.disabled && m(r)(S)
2343
- }, F(m(n)?.btn?.edit || "Edit"), 11, Bd),
2342
+ }, F(m(n)?.btn?.edit || "Edit"), 11, Pd),
2344
2343
  i("span", {
2345
2344
  role: "button",
2346
2345
  tabindex: "0",
@@ -2348,7 +2347,7 @@ const Vd = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, Ld =
2348
2347
  "jsgd-opacity-50 jsgd-cursor-not-allowed jsgd-pointer-events-none": t.disabled
2349
2348
  }]),
2350
2349
  onClick: (C) => !t.disabled && m(l)(S)
2351
- }, F(m(n)?.btn?.remove || "Remove"), 11, Rd)
2350
+ }, F(m(n)?.btn?.remove || "Remove"), 11, Bd)
2352
2351
  ])
2353
2352
  ])
2354
2353
  ], 4))), 128))
@@ -2359,7 +2358,7 @@ const Vd = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, Ld =
2359
2358
  (...A) => m(y) && m(y)(...A)),
2360
2359
  class: "jsgd-inline-flex jsgd-items-center jsgd-gap-2 jsgd-mt-5 jsgd-px-5 jsgd-py-2.5 jsgd-font-semibold jsgd-text-sm jsgd-border-none jsgd-rounded-md jsgd-text-white jsgd-bg-blue-600 jsgd-cursor-pointer jsgd-transition-all jsgd-duration-200 hover:jsgd-bg-blue-700 hover:-jsgd-translate-y-0.5 hover:jsgd-shadow-lg disabled:jsgd-bg-slate-400 disabled:jsgd-cursor-not-allowed dark:jsgd-bg-blue-500 dark:hover:jsgd-bg-blue-400 dark:disabled:jsgd-bg-slate-600 before:jsgd-content-['+'] before:jsgd-text-xl before:jsgd-leading-none",
2361
2360
  disabled: t.disabled
2362
- }, F(m(p)), 9, Ud),
2361
+ }, F(m(b)), 9, Rd),
2363
2362
  m(j) ? (f(), Z(m(vs), {
2364
2363
  key: 0,
2365
2364
  id: m(d).id || null,
@@ -2370,17 +2369,17 @@ const Vd = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, Ld =
2370
2369
  onSubmit: m(a),
2371
2370
  onCancel: $[1] || ($[1] = () => j.value = !1)
2372
2371
  }, null, 8, ["id", "schema", "initial-data", "is-update", "lang", "onSubmit"])) : V("", !0),
2373
- e.error ? (f(), k("p", qd, F(e.error), 1)) : V("", !0)
2372
+ e.error ? (f(), k("p", Ud, F(e.error), 1)) : V("", !0)
2374
2373
  ], 2)
2375
2374
  ], 64));
2376
2375
  }
2377
- }), Hd = { class: "jsgd-flex jsgd-flex-wrap jsgd-gap-3 jsgd-p-3 jsgd-mb-4 jsgd-min-h-[3.5rem] jsgd-bg-slate-50 jsgd-rounded-lg jsgd-border-1 jsgd-border-solid jsgd-border-dashed jsgd-border-slate-300 dark:jsgd-bg-slate-700 dark:jsgd-border-slate-600" }, Nd = ["onClick", "disabled"], Wd = ["disabled"], Gd = {
2376
+ }), Kd = { class: "jsgd-flex jsgd-flex-wrap jsgd-gap-3 jsgd-p-3 jsgd-mb-4 jsgd-min-h-[3.5rem] jsgd-bg-slate-50 jsgd-rounded-lg jsgd-border-1 jsgd-border-solid jsgd-border-dashed jsgd-border-slate-300 dark:jsgd-bg-slate-700 dark:jsgd-border-slate-600" }, Hd = ["onClick", "disabled"], Nd = ["disabled"], Wd = {
2378
2377
  key: 0,
2379
2378
  class: "jsgd-flex jsgd-justify-end jsgd-mt-4"
2380
- }, Zd = ["disabled"], Yd = {
2379
+ }, Gd = ["disabled"], Zd = {
2381
2380
  key: 2,
2382
2381
  class: "jsgd-mt-2 jsgd-text-sm jsgd-text-red-500 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
2383
- }, Jd = /* @__PURE__ */ oe({
2382
+ }, Yd = /* @__PURE__ */ oe({
2384
2383
  __name: "ColorPicker",
2385
2384
  props: {
2386
2385
  id: { default: fe() },
@@ -2405,20 +2404,20 @@ const Vd = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, Ld =
2405
2404
  validate: e.validate,
2406
2405
  single: e.single
2407
2406
  }),
2408
- ({ modelValue: r, disabled: a, validate: l, single: b }) => {
2409
- if (Array.isArray(r) ? c.value = [...r] : c.value = [r], a || b) {
2407
+ ({ modelValue: r, disabled: a, validate: l, single: p }) => {
2408
+ if (Array.isArray(r) ? c.value = [...r] : c.value = [r], a || p) {
2410
2409
  g.value = [];
2411
2410
  return;
2412
2411
  }
2413
2412
  const x = [], w = c.value.length;
2414
- if (l && typeof l == "object" && !b) {
2413
+ if (l && typeof l == "object" && !p) {
2415
2414
  const { min: $, max: A } = l;
2416
2415
  $ !== void 0 && w < $ && x.push(E("arrayColorMin", { min: String($) }, e.lang ?? "en")), A !== void 0 && w > A && x.push(E("arrayColorMax", { max: String(A) }, e.lang ?? "en"));
2417
2416
  }
2418
2417
  g.value = x, x.length ? u("push:error", x, e.id) : u("remove:error", e.id);
2419
2418
  }
2420
2419
  );
2421
- function p() {
2420
+ function b() {
2422
2421
  e.single ? (c.value = [n.value], u("update:modelValue", n.value, e.id)) : c.value.includes(n.value) || (c.value.push(n.value), u("update:modelValue", c.value, e.id));
2423
2422
  }
2424
2423
  function y(r) {
@@ -2433,11 +2432,11 @@ const Vd = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, Ld =
2433
2432
  "jsgd-border-red-300 jsgd-bg-red-50 dark:jsgd-border-red-800 dark:jsgd-bg-red-900/10": g.value.length !== 0 || t.error
2434
2433
  }])
2435
2434
  }, [
2436
- i("div", Hd, [
2437
- (f(!0), k(ee, null, de(c.value, (l, b) => (f(), k("div", {
2438
- key: b,
2435
+ i("div", Kd, [
2436
+ (f(!0), k(ee, null, de(c.value, (l, p) => (f(), k("div", {
2437
+ key: p,
2439
2438
  class: "jsgd-relative jsgd-animate-[popIn_300ms_ease-out_backwards] jsgd-group",
2440
- style: Ge({ animationDelay: `${b * 50}ms` })
2439
+ style: Ge({ animationDelay: `${p * 50}ms` })
2441
2440
  }, [
2442
2441
  i("div", {
2443
2442
  style: Ge({ backgroundColor: l }),
@@ -2446,10 +2445,10 @@ const Vd = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, Ld =
2446
2445
  e.single ? V("", !0) : (f(), k("button", {
2447
2446
  key: 0,
2448
2447
  type: "button",
2449
- onClick: (x) => y(b),
2448
+ onClick: (x) => y(p),
2450
2449
  disabled: t.disabled,
2451
2450
  class: "jsgd-absolute jsgd-top-[-0.25rem] jsgd-right-[-0.25rem] jsgd-w-5 jsgd-h-5 jsgd-flex jsgd-items-center jsgd-justify-center jsgd-text-base jsgd-font-bold jsgd-leading-none jsgd-text-white jsgd-bg-red-500 jsgd-rounded-full jsgd-border-2 jsgd-border-white jsgd-cursor-pointer jsgd-opacity-0 jsgd-scale-50 jsgd-transition-all jsgd-duration-200 hover:jsgd-bg-red-600 hover:jsgd-scale-110 hover:jsgd-rotate-90 group-hover:jsgd-opacity-100 group-hover:jsgd-scale-100 disabled:jsgd-opacity-60 disabled:jsgd-cursor-not-allowed disabled:jsgd-transform-none dark:jsgd-border-slate-800 dark:jsgd-bg-red-600 dark:hover:jsgd-bg-red-500"
2452
- }, " × ", 8, Nd))
2451
+ }, " × ", 8, Hd))
2453
2452
  ], 4))), 128))
2454
2453
  ]),
2455
2454
  Dt(i("input", {
@@ -2457,21 +2456,21 @@ const Vd = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, Ld =
2457
2456
  "onUpdate:modelValue": a[0] || (a[0] = (l) => n.value = l),
2458
2457
  disabled: t.disabled,
2459
2458
  class: "jsgd-appearance-none jsgd-w-full jsgd-h-10 jsgd-bg-transparent jsgd-border-1 jsgd-border-solid jsgd-border-slate-200 jsgd-rounded-md jsgd-box-border jsgd-cursor-pointer jsgd-p-0 jsgd-overflow-hidden disabled:jsgd-opacity-60 disabled:jsgd-cursor-not-allowed [&::-webkit-color-swatch-wrapper]:jsgd-p-0 [&::-webkit-color-swatch]:jsgd-border-none [&::-webkit-color-swatch]:jsgd-rounded-[5px] [&::-moz-color-swatch]:jsgd-border-none [&::-moz-color-swatch]:jsgd-rounded-[5px] dark:jsgd-border-slate-600"
2460
- }, null, 8, Wd), [
2459
+ }, null, 8, Nd), [
2461
2460
  [fs, n.value]
2462
2461
  ]),
2463
- e.single ? V("", !0) : (f(), k("div", Gd, [
2462
+ e.single ? V("", !0) : (f(), k("div", Wd, [
2464
2463
  i("button", {
2465
2464
  type: "button",
2466
2465
  class: "jsgd-inline-flex jsgd-items-center jsgd-gap-2 jsgd-px-4 jsgd-py-2 jsgd-font-semibold jsgd-text-sm jsgd-border-none jsgd-rounded-md jsgd-text-white jsgd-bg-green-500 jsgd-cursor-pointer jsgd-transition-all jsgd-duration-200 hover:jsgd-bg-green-600 hover:jsgd-scale-105 hover:jsgd-shadow-md disabled:jsgd-opacity-60 disabled:jsgd-cursor-not-allowed dark:jsgd-bg-green-500 dark:hover:jsgd-bg-green-400",
2467
2466
  disabled: t.disabled,
2468
- onClick: p
2469
- }, F(m(d)?.btn?.add ?? "Tambah"), 9, Zd)
2467
+ onClick: b
2468
+ }, F(m(d)?.btn?.add ?? "Tambah"), 9, Gd)
2470
2469
  ])),
2471
- g.value.length !== 0 ? (f(!0), k(ee, { key: 1 }, de(g.value, (l, b) => (f(), k("p", {
2472
- key: b,
2470
+ g.value.length !== 0 ? (f(!0), k(ee, { key: 1 }, de(g.value, (l, p) => (f(), k("p", {
2471
+ key: p,
2473
2472
  class: "jsgd-mt-2 jsgd-text-sm jsgd-text-red-500 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
2474
- }, F(l), 1))), 128)) : typeof e.error == "string" ? (f(), k("p", Yd, F(t.error), 1)) : V("", !0)
2473
+ }, F(l), 1))), 128)) : typeof e.error == "string" ? (f(), k("p", Zd, F(t.error), 1)) : V("", !0)
2475
2474
  ], 2)
2476
2475
  ], 64));
2477
2476
  }
@@ -2480,14 +2479,14 @@ function ns(t, o) {
2480
2479
  try {
2481
2480
  return t.parse(o);
2482
2481
  } catch (e) {
2483
- if (e instanceof Wa) {
2482
+ if (e instanceof Na) {
2484
2483
  const u = e.issues.map((n) => `${n.path.length > 0 ? n.path.join(".") : "root"}: ${n.message}`).join(", ");
2485
2484
  throw new Error(`Validation failed: ${u}`);
2486
2485
  }
2487
2486
  throw e;
2488
2487
  }
2489
2488
  }
2490
- function si(t, o) {
2489
+ function ei(t, o) {
2491
2490
  const e = t.safeParse(o);
2492
2491
  return e.success ? {
2493
2492
  success: !0,
@@ -2503,15 +2502,15 @@ function si(t, o) {
2503
2502
  };
2504
2503
  }
2505
2504
  var ut = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2506
- function Qd(t) {
2505
+ function Jd(t) {
2507
2506
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
2508
2507
  }
2509
2508
  var _e = { exports: {} };
2510
2509
  _e.exports;
2511
2510
  var is;
2512
- function Xd() {
2511
+ function Qd() {
2513
2512
  return is || (is = 1, (function(t, o) {
2514
- var e = 200, u = "__lodash_hash_undefined__", n = 1, c = 2, j = 9007199254740991, d = "[object Arguments]", g = "[object Array]", p = "[object AsyncFunction]", y = "[object Boolean]", r = "[object Date]", a = "[object Error]", l = "[object Function]", b = "[object GeneratorFunction]", x = "[object Map]", w = "[object Number]", $ = "[object Null]", A = "[object Object]", S = "[object Promise]", C = "[object Proxy]", O = "[object RegExp]", R = "[object Set]", P = "[object String]", M = "[object Symbol]", v = "[object Undefined]", T = "[object WeakMap]", L = "[object ArrayBuffer]", U = "[object DataView]", re = "[object Float32Array]", se = "[object Float64Array]", ae = "[object Int8Array]", je = "[object Int16Array]", D = "[object Int32Array]", B = "[object Uint8Array]", W = "[object Uint8ClampedArray]", K = "[object Uint16Array]", G = "[object Uint32Array]", N = /[\\^$.*+?()[\]{}|]/g, J = /^\[object .+?Constructor\]$/, ye = /^(?:0|[1-9]\d*)$/, Y = {};
2513
+ var e = 200, u = "__lodash_hash_undefined__", n = 1, c = 2, j = 9007199254740991, d = "[object Arguments]", g = "[object Array]", b = "[object AsyncFunction]", y = "[object Boolean]", r = "[object Date]", a = "[object Error]", l = "[object Function]", p = "[object GeneratorFunction]", x = "[object Map]", w = "[object Number]", $ = "[object Null]", A = "[object Object]", S = "[object Promise]", C = "[object Proxy]", O = "[object RegExp]", R = "[object Set]", P = "[object String]", M = "[object Symbol]", v = "[object Undefined]", T = "[object WeakMap]", L = "[object ArrayBuffer]", U = "[object DataView]", re = "[object Float32Array]", se = "[object Float64Array]", ae = "[object Int8Array]", je = "[object Int16Array]", D = "[object Int32Array]", B = "[object Uint8Array]", W = "[object Uint8ClampedArray]", K = "[object Uint16Array]", G = "[object Uint32Array]", N = /[\\^$.*+?()[\]{}|]/g, J = /^\[object .+?Constructor\]$/, ye = /^(?:0|[1-9]\d*)$/, Y = {};
2515
2514
  Y[re] = Y[se] = Y[ae] = Y[je] = Y[D] = Y[B] = Y[W] = Y[K] = Y[G] = !0, Y[d] = Y[g] = Y[L] = Y[y] = Y[U] = Y[r] = Y[a] = Y[l] = Y[x] = Y[w] = Y[A] = Y[O] = Y[R] = Y[P] = Y[T] = !1;
2516
2515
  var Me = typeof ut == "object" && ut && ut.Object === Object && ut, Ce = typeof self == "object" && self && self.Object === Object && self, De = Me || Ce || Function("return this")(), Et = o && !o.nodeType && o, Vt = Et && !0 && t && !t.nodeType && t, Lt = Vt && Vt.exports === Et, bt = Lt && Me.process, zt = (function() {
2517
2516
  try {
@@ -2962,7 +2961,7 @@ function Xd() {
2962
2961
  if (!Xt(s))
2963
2962
  return !1;
2964
2963
  var h = Je(s);
2965
- return h == l || h == b || h == p || h == C;
2964
+ return h == l || h == p || h == b || h == C;
2966
2965
  }
2967
2966
  function Qt(s) {
2968
2967
  return typeof s == "number" && s > -1 && s % 1 == 0 && s <= j;
@@ -2987,28 +2986,28 @@ function Xd() {
2987
2986
  t.exports = Aa;
2988
2987
  })(_e, _e.exports)), _e.exports;
2989
2988
  }
2990
- var _d = Xd();
2991
- const mt = /* @__PURE__ */ Qd(_d), er = async (t, o, e = "id", u = "ids") => {
2992
- const { data: n, oldData: c, validation: j, endpoint: d, mode: g, db: p, deleteDataDB: y, demo: r } = t, a = y ?? !0;
2989
+ var Xd = Qd();
2990
+ const mt = /* @__PURE__ */ Jd(Xd), _d = async (t, o, e = "id", u = "ids") => {
2991
+ const { data: n, oldData: c, validation: j, endpoint: d, mode: g, db: b, deleteDataDB: y, demo: r } = t, a = y ?? !0;
2993
2992
  if (g !== "get" && !n)
2994
2993
  return {
2995
2994
  message: "data Not Found"
2996
2995
  };
2997
- const l = j ? ns(j, n) : { ...n }, b = c ? j ? ns(j, c) : { ...c } : void 0;
2996
+ const l = j ? ns(j, n) : { ...n }, p = c ? j ? ns(j, c) : { ...c } : void 0;
2998
2997
  if (r) {
2999
- if (!p)
2998
+ if (!b)
3000
2999
  throw new Error("Demo mode requires a `db` (IndexedDB store name) to be specified.");
3001
3000
  switch (g) {
3002
3001
  case "create": {
3003
- const v = { ...l, [e]: `demo-${Date.now()}` }, T = await us(p);
3004
- return await ct({ [p]: [...T, v] }), {
3002
+ const v = { ...l, [e]: `demo-${Date.now()}` }, T = await us(b);
3003
+ return await ct({ [b]: [...T, v] }), {
3005
3004
  message: "Data created in demo mode.",
3006
3005
  data: v,
3007
3006
  response: !0
3008
3007
  };
3009
3008
  }
3010
3009
  case "update":
3011
- return await cs(p, l), {
3010
+ return await cs(b, l), {
3012
3011
  message: "Data updated in demo mode.",
3013
3012
  data: l,
3014
3013
  response: !0
@@ -3016,7 +3015,7 @@ const mt = /* @__PURE__ */ Qd(_d), er = async (t, o, e = "id", u = "ids") => {
3016
3015
  case "delete":
3017
3016
  case "deleteMany": {
3018
3017
  const v = l[u] || [l[e]];
3019
- return v && v.length > 0 && await ms({ [p]: v }), {
3018
+ return v && v.length > 0 && await ms({ [b]: v }), {
3020
3019
  message: "Data deleted in demo mode.",
3021
3020
  response: !0
3022
3021
  };
@@ -3033,7 +3032,7 @@ const mt = /* @__PURE__ */ Qd(_d), er = async (t, o, e = "id", u = "ids") => {
3033
3032
  endpoint: x,
3034
3033
  remaining: w,
3035
3034
  remainingOld: $
3036
- } = tr(d, l, b);
3035
+ } = er(d, l, p);
3037
3036
  let A = g === "create" ? "POST" : g === "update" ? "PATCH" : "DELETE", S = !1;
3038
3037
  if (g === "delete" || g === "deleteMany") {
3039
3038
  const v = Object.keys(w).length > 0 ? JSON.stringify(w) : void 0, T = await $t(x, {
@@ -3049,8 +3048,8 @@ const mt = /* @__PURE__ */ Qd(_d), er = async (t, o, e = "id", u = "ids") => {
3049
3048
  throw new Error(U.message || "Gagal menghapus data");
3050
3049
  }
3051
3050
  const L = await T.json();
3052
- return a && p && await ms({
3053
- [p]: n[u ?? "ids"] || n[e ?? "id"] || w._id
3051
+ return a && b && await ms({
3052
+ [b]: n[u ?? "ids"] || n[e ?? "id"] || w._id
3054
3053
  }), {
3055
3054
  message: L.message,
3056
3055
  response: T.ok
@@ -3068,7 +3067,7 @@ const mt = /* @__PURE__ */ Qd(_d), er = async (t, o, e = "id", u = "ids") => {
3068
3067
  throw new Error(L.message || "Failed to fetch data");
3069
3068
  }
3070
3069
  const T = await v.json();
3071
- return p && T.data && (gs(p) ? await ct({ [p]: T.data }) : await ct({ [p]: [T.data] })), {
3070
+ return b && T.data && (gs(b) ? await ct({ [b]: T.data }) : await ct({ [b]: [T.data] })), {
3072
3071
  ...T,
3073
3072
  message: T.message ?? "Data fetched successfully",
3074
3073
  response: v.ok
@@ -3119,13 +3118,13 @@ const mt = /* @__PURE__ */ Qd(_d), er = async (t, o, e = "id", u = "ids") => {
3119
3118
  throw new Error(v.message || "Failed to process data");
3120
3119
  }
3121
3120
  const M = await P.json();
3122
- if (p) {
3123
- const v = gs(p);
3121
+ if (b) {
3122
+ const v = gs(b);
3124
3123
  if (g === "update")
3125
- await cs(p, M.data);
3124
+ await cs(b, M.data);
3126
3125
  else if (g === "create" && v) {
3127
- const T = await us(p);
3128
- await ct({ [p]: [...T, M.data] });
3126
+ const T = await us(b);
3127
+ await ct({ [b]: [...T, M.data] });
3129
3128
  }
3130
3129
  }
3131
3130
  return {
@@ -3135,18 +3134,18 @@ const mt = /* @__PURE__ */ Qd(_d), er = async (t, o, e = "id", u = "ids") => {
3135
3134
  };
3136
3135
  };
3137
3136
  function jt(t, o, e, u, n = {}, c, j, d, g) {
3138
- let p = !1;
3137
+ let b = !1;
3139
3138
  const y = c ? `${c}[${o}]` : o;
3140
3139
  if (Array.isArray(e) && e.length > 0 && typeof e[0] == "object" && !(e[0] instanceof File)) {
3141
3140
  const r = new Set(
3142
- e.map((b) => b[d ?? "id"]).filter((b) => b !== void 0)
3141
+ e.map((p) => p[d ?? "id"]).filter((p) => p !== void 0)
3143
3142
  );
3144
3143
  if (Array.isArray(n)) {
3145
- const b = n.filter(
3144
+ const p = n.filter(
3146
3145
  (x) => x[d ?? "id"] !== void 0 && !r.has(x[d ?? "id"])
3147
3146
  );
3148
- if (b.length > 0) {
3149
- const x = b.map((w) => w[d ?? "id"]);
3147
+ if (p.length > 0) {
3148
+ const x = p.map((w) => w[d ?? "id"]);
3150
3149
  u[o + "_deleted"] = x, x.forEach((w) => {
3151
3150
  t.append(`${o}_deleted[]`, String(w));
3152
3151
  });
@@ -3155,16 +3154,16 @@ function jt(t, o, e, u, n = {}, c, j, d, g) {
3155
3154
  const a = [];
3156
3155
  u[o] = a;
3157
3156
  let l = 0;
3158
- e.forEach((b) => {
3159
- const x = {}, w = (Array.isArray(n) ? n.find((A) => A[d ?? "id"] === b[d ?? "id"]) : void 0) || {};
3160
- let $ = !b[d ?? "id"] || !1;
3161
- for (const A in b) {
3162
- const S = b[A], C = w?.[A], O = !mt(S, C);
3163
- if (S != null && (O || !b[d ?? "id"])) {
3164
- b[d ?? "id"] ? A !== "id" && ($ = !0) : $ = !0;
3157
+ e.forEach((p) => {
3158
+ const x = {}, w = (Array.isArray(n) ? n.find((A) => A[d ?? "id"] === p[d ?? "id"]) : void 0) || {};
3159
+ let $ = !p[d ?? "id"] || !1;
3160
+ for (const A in p) {
3161
+ const S = p[A], C = w?.[A], O = !mt(S, C);
3162
+ if (S != null && (O || !p[d ?? "id"])) {
3163
+ p[d ?? "id"] ? A !== "id" && ($ = !0) : $ = !0;
3165
3164
  const R = `${y}[${l}][${A}]`;
3166
3165
  if (S instanceof File)
3167
- t.append(R, S), p = !0, x[A] = S.name;
3166
+ t.append(R, S), b = !0, x[A] = S.name;
3168
3167
  else if (Array.isArray(S) || typeof S == "object" && S !== null) {
3169
3168
  const P = `${y}[${l}]`;
3170
3169
  jt(
@@ -3179,21 +3178,21 @@ function jt(t, o, e, u, n = {}, c, j, d, g) {
3179
3178
  // Parent key untuk FormData
3180
3179
  j,
3181
3180
  d
3182
- ) && (p = !0);
3181
+ ) && (b = !0);
3183
3182
  } else
3184
3183
  t.append(R, String(S)), x[A] = S;
3185
3184
  }
3186
3185
  }
3187
- $ && (b[d ?? "id"] !== void 0 && (t.append(`${y}[${l}][${d}]`, String(b[d ?? "id"])), x[d ?? "id"] = b[d ?? "id"]), l += 1, a.push(x));
3186
+ $ && (p[d ?? "id"] !== void 0 && (t.append(`${y}[${l}][${d}]`, String(p[d ?? "id"])), x[d ?? "id"] = p[d ?? "id"]), l += 1, a.push(x));
3188
3187
  }), a.length === 0 && delete u[o];
3189
3188
  } else if (typeof e == "object" && e !== null && !(e instanceof File) && !Array.isArray(e)) {
3190
3189
  const r = {};
3191
3190
  let a = !1, l;
3192
- for (const b in e) {
3193
- const x = e[b], w = n?.[b] ?? null, A = Array.isArray(x) && x.length === 0 ? null : x, S = !mt(A, w);
3194
- b === (d ?? "id") ? l = x : S && (jt(
3191
+ for (const p in e) {
3192
+ const x = e[p], w = n?.[p] ?? null, A = Array.isArray(x) && x.length === 0 ? null : x, S = !mt(A, w);
3193
+ p === (d ?? "id") ? l = x : S && (jt(
3195
3194
  t,
3196
- b,
3195
+ p,
3197
3196
  x,
3198
3197
  r,
3199
3198
  // Target JSON sekarang adalah 'newParsedObject'
@@ -3203,7 +3202,7 @@ function jt(t, o, e, u, n = {}, c, j, d, g) {
3203
3202
  // Parent key untuk FormData
3204
3203
  j,
3205
3204
  d
3206
- ) && (p = !0), a = !0);
3205
+ ) && (b = !0), a = !0);
3207
3206
  }
3208
3207
  a && Object.keys(r).length > 0 ? (l && (r[d ?? "id"] = l), u[o] = r) : delete u[o];
3209
3208
  } else if (Array.isArray(e) && (typeof e[0] != "object" || e[0] === null))
@@ -3212,16 +3211,16 @@ function jt(t, o, e, u, n = {}, c, j, d, g) {
3212
3211
  t.append(l, String(r));
3213
3212
  })) : u[o] = null;
3214
3213
  else if (Array.isArray(e) && e.some((r) => r instanceof File)) {
3215
- p = !0;
3214
+ b = !0;
3216
3215
  const r = [];
3217
3216
  e.forEach((a, l) => {
3218
- const b = `${y}[${l}]`;
3219
- a instanceof File ? (t.append(b, a), r.push(a.name)) : (t.append(b, a), r.push(a));
3217
+ const p = `${y}[${l}]`;
3218
+ a instanceof File ? (t.append(p, a), r.push(a.name)) : (t.append(p, a), r.push(a));
3220
3219
  }), u[o] = r;
3221
- } else e instanceof File ? (t.append(y, e), u[o] = e.name, p = !0) : e != null && !Array.isArray(e) && (t.append(y, String(e)), u[o] = e);
3222
- return p;
3220
+ } else e instanceof File ? (t.append(y, e), u[o] = e.name, b = !0) : e != null && !Array.isArray(e) && (t.append(y, String(e)), u[o] = e);
3221
+ return b;
3223
3222
  }
3224
- function tr(t, o, e) {
3223
+ function er(t, o, e) {
3225
3224
  const u = { ...o }, n = e ? { ...e } : void 0;
3226
3225
  return {
3227
3226
  endpoint: t.replace(/:([a-zA-Z_][a-zA-Z0-9_]*)/g, (j, d) => {
@@ -3233,23 +3232,23 @@ function tr(t, o, e) {
3233
3232
  remainingOld: n
3234
3233
  };
3235
3234
  }
3236
- const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd-relative" }, dr = ["placeholder", "disabled"], rr = {
3235
+ const tr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, sr = { class: "jsgd-relative" }, ar = ["placeholder", "disabled"], dr = {
3237
3236
  key: 1,
3238
3237
  class: "jsgd-absolute jsgd-right-3 jsgd-top-1/2 -jsgd-translate-y-1/2 jsgd-pointer-events-none jsgd-text-slate-500 dark:jsgd-text-slate-400"
3239
- }, lr = {
3238
+ }, rr = {
3240
3239
  key: 1,
3241
3240
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 dark:jsgd-text-red-400"
3242
- }, nr = ["onMousedown"], ir = { class: "jsgd-flex jsgd-items-center jsgd-justify-between jsgd-gap-4" }, or = { class: "jsgd-truncate" }, gr = {
3241
+ }, lr = ["onMousedown"], nr = { class: "jsgd-flex jsgd-items-center jsgd-justify-between jsgd-gap-4" }, ir = { class: "jsgd-truncate" }, or = {
3243
3242
  key: 0,
3244
3243
  class: "jsgd-w-5 jsgd-h-5 jsgd-text-blue-500 jsgd-shrink-0 jsgd-transition-all jsgd-duration-200 dark:jsgd-text-blue-400",
3245
3244
  fill: "none",
3246
3245
  stroke: "currentColor",
3247
3246
  viewBox: "0 0 24 24",
3248
3247
  xmlns: "http://www.w3.org/2000/svg"
3249
- }, ur = { class: "jsgd-flex jsgd-items-center jsgd-gap-2" }, cr = {
3248
+ }, gr = { class: "jsgd-flex jsgd-items-center jsgd-gap-2" }, ur = {
3250
3249
  key: 1,
3251
3250
  class: "jsgd-px-4 jsgd-py-3 jsgd-text-slate-500 jsgd-italic jsgd-cursor-default dark:jsgd-text-slate-400"
3252
- }, mr = /* @__PURE__ */ oe({
3251
+ }, cr = /* @__PURE__ */ oe({
3253
3252
  __name: "ComboboxComponent",
3254
3253
  props: {
3255
3254
  id: { default: fe() },
@@ -3284,30 +3283,30 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
3284
3283
  },
3285
3284
  { deep: !0 }
3286
3285
  );
3287
- const g = z(!1), p = z(""), y = z(!1), r = z(null), a = () => {
3288
- g.value = !0, p.value = x.value || "";
3286
+ const g = z(!1), b = z(""), y = z(!1), r = z(null), a = () => {
3287
+ g.value = !0, b.value = x.value || "";
3289
3288
  }, l = () => {
3290
3289
  setTimeout(() => {
3291
3290
  g.value = !1;
3292
3291
  }, 200);
3293
- }, b = (M, v) => e.optionsIsNumber ? Number(M) === Number(v) : String(M) === String(v), x = _(() => w(e.modelValue ?? "")), w = (M) => {
3292
+ }, p = (M, v) => e.optionsIsNumber ? Number(M) === Number(v) : String(M) === String(v), x = _(() => w(e.modelValue ?? "")), w = (M) => {
3294
3293
  const v = j.value.findIndex((T) => T === M);
3295
3294
  return v !== -1 && (d.value?.length ?? 0) > v ? d.value[v].toString() : M?.toString?.() ?? "";
3296
3295
  };
3297
3296
  ne(
3298
3297
  () => e.modelValue,
3299
3298
  (M) => {
3300
- M === null && c("update:modelValue", "", e.id), g.value || (p.value = w(M ?? ""));
3299
+ M === null && c("update:modelValue", "", e.id), g.value || (b.value = w(M ?? ""));
3301
3300
  },
3302
3301
  { immediate: !0, deep: !0 }
3303
3302
  );
3304
3303
  const $ = _(() => !e.withCreate && j.value.length < 5), A = _(() => {
3305
- const M = p.value.toLowerCase().trim(), v = j.value.filter((L, U) => (d.value[U].toString()?.toLowerCase?.() ?? "").includes(M)), T = d.value.some(
3304
+ const M = b.value.toLowerCase().trim(), v = j.value.filter((L, U) => (d.value[U].toString()?.toLowerCase?.() ?? "").includes(M)), T = d.value.some(
3306
3305
  (L) => L.toString().toLowerCase().trim() === M
3307
3306
  );
3308
3307
  return M && !T ? [...v] : v;
3309
3308
  }), S = _(() => {
3310
- const M = p.value.toLowerCase().trim();
3309
+ const M = b.value.toLowerCase().trim();
3311
3310
  return j.value.filter((v, T) => (d.value[T].toString()?.toLowerCase?.() ?? "").includes(M));
3312
3311
  }), C = _(() => {
3313
3312
  const M = $.value ? j.value : e.withCreate ? A.value : S.value;
@@ -3320,7 +3319,7 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
3320
3319
  }, R = (M) => {
3321
3320
  if (e.disabled) return;
3322
3321
  const v = e.optionsIsNumber && M !== "" ? Number(M) : M;
3323
- c("update:modelValue", v, e.id), g.value = !1, p.value = w(v);
3322
+ c("update:modelValue", v, e.id), g.value = !1, b.value = w(v);
3324
3323
  }, P = async (M) => {
3325
3324
  if (!e.withCreate.endPoint || !e.withCreate.DB_NAME) {
3326
3325
  r.value?.show("error", "Server Error!");
@@ -3328,7 +3327,7 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
3328
3327
  }
3329
3328
  try {
3330
3329
  r.value?.show("loading", "Please wait...");
3331
- const { image: v, ...T } = M, L = e.withCreate?.submitOption?.delete?.authType ?? e.withCreate?.submitOption?.global?.authType ?? "cookie", U = e.withCreate?.submitOption?.delete?.token ?? e.withCreate?.submitOption?.global?.token ?? void 0, re = e.withCreate?.submitOption?.delete?.customHeaders ?? e.withCreate?.submitOption?.global?.customHeaders ?? void 0, se = await er({
3330
+ const { image: v, ...T } = M, L = e.withCreate?.submitOption?.delete?.authType ?? e.withCreate?.submitOption?.global?.authType ?? "cookie", U = e.withCreate?.submitOption?.delete?.token ?? e.withCreate?.submitOption?.global?.token ?? void 0, re = e.withCreate?.submitOption?.delete?.customHeaders ?? e.withCreate?.submitOption?.global?.customHeaders ?? void 0, se = await _d({
3332
3331
  data: T,
3333
3332
  validation: e.withCreate?.validation ?? void 0,
3334
3333
  endpoint: e.withCreate.endPoint,
@@ -3348,16 +3347,16 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
3348
3347
  console.error(v), r.value?.show("error", "Failed to create data");
3349
3348
  }
3350
3349
  };
3351
- return (M, v) => (f(), k("div", sr, [
3350
+ return (M, v) => (f(), k("div", tr, [
3352
3351
  t.label ? (f(), k("label", {
3353
3352
  key: 0,
3354
3353
  class: H(["jsgd-block jsgd-text-sm jsgd-font-medium jsgd-mb-2 jsgd-text-slate-900 jsgd-transition-colors jsgd-duration-200 dark:jsgd-text-slate-100", { "jsgd-text-red-500 dark:jsgd-text-red-400": e.error }])
3355
3354
  }, F(t.label), 3)) : V("", !0),
3356
- i("div", ar, [
3355
+ i("div", sr, [
3357
3356
  $.value ? V("", !0) : Dt((f(), k("input", {
3358
3357
  key: 0,
3359
3358
  type: "text",
3360
- "onUpdate:modelValue": v[0] || (v[0] = (T) => p.value = T),
3359
+ "onUpdate:modelValue": v[0] || (v[0] = (T) => b.value = T),
3361
3360
  placeholder: m(n)?.placeholder?.select,
3362
3361
  onFocus: v[1] || (v[1] = (T) => !e.disabled && a()),
3363
3362
  onBlur: l,
@@ -3366,10 +3365,10 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
3366
3365
  "jsgd-border-red-400 focus:jsgd-ring-red-500/20 dark:jsgd-border-red-400 dark:focus:jsgd-ring-red-400/25": e.error,
3367
3366
  "jsgd-rounded-b-none": g.value
3368
3367
  }])
3369
- }, null, 42, dr)), [
3370
- [fs, p.value]
3368
+ }, null, 42, ar)), [
3369
+ [fs, b.value]
3371
3370
  ]),
3372
- $.value ? V("", !0) : (f(), k("div", rr, [
3371
+ $.value ? V("", !0) : (f(), k("div", dr, [
3373
3372
  (f(), k("svg", {
3374
3373
  class: H(["jsgd-w-5 jsgd-h-5 jsgd-transition-transform jsgd-duration-200", { "jsgd-rotate-180": g.value }]),
3375
3374
  fill: "none",
@@ -3387,7 +3386,7 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
3387
3386
  ])),
3388
3387
  $.value ? (f(), k("div", {
3389
3388
  key: 2,
3390
- onClick: v[2] || (v[2] = (T) => !e.disabled && (g.value = !g.value)),
3389
+ onClick: v[2] || (v[2] = (T) => !e.disabled && (g.value = !g.value) && !y.value),
3391
3390
  class: H(["jsgd-w-full jsgd-py-3 jsgd-pl-4 jsgd-pr-4 jsgd-text-base jsgd-text-slate-900 jsgd-bg-white jsgd-border-1 jsgd-border-solid jsgd-border-slate-300 jsgd-rounded-lg jsgd-transition-all jsgd-duration-200 jsgd-box-border jsgd-cursor-pointer jsgd-flex jsgd-items-center jsgd-justify-between focus-visible:jsgd-outline-none focus-visible:jsgd-border-blue-500 focus-visible:jsgd-ring-4 focus-visible:jsgd-ring-blue-500/20 dark:jsgd-bg-slate-800 dark:jsgd-text-slate-100 dark:jsgd-border-slate-600 dark:focus-visible:jsgd-border-blue-400 dark:focus-visible:jsgd-ring-blue-400/25", {
3392
3391
  "jsgd-bg-slate-100 jsgd-text-slate-500 jsgd-cursor-not-allowed dark:jsgd-bg-slate-700": e.disabled,
3393
3392
  "jsgd-border-red-400 focus-visible:jsgd-ring-red-500/20 dark:jsgd-border-red-400 dark:focus-visible:jsgd-ring-red-400/25": e.error,
@@ -3413,7 +3412,7 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
3413
3412
  ])], 2))
3414
3413
  ], 2)) : V("", !0)
3415
3414
  ]),
3416
- e.error ? (f(), k("p", lr, F(e.error), 1)) : V("", !0),
3415
+ e.error ? (f(), k("p", rr, F(e.error), 1)) : V("", !0),
3417
3416
  We(He, {
3418
3417
  "enter-active-class": "jsgd-animate-[slideDownFade_200ms_ease-out]",
3419
3418
  "enter-from-class": "jsgd-opacity-0",
@@ -3423,7 +3422,7 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
3423
3422
  "leave-to-class": "jsgd-opacity-0"
3424
3423
  }, {
3425
3424
  default: ce(() => [
3426
- g.value ? (f(), k("ul", {
3425
+ g.value && !y.value ? (f(), k("ul", {
3427
3426
  key: 0,
3428
3427
  class: H(["jsgd-absolute jsgd-list-none jsgd-z-200 jsgd-w-full jsgd-px-2 jsgd-mx-0 jsgd-mt-[-1px] jsgd-py-2 jsgd-bg-white/95 jsgd-border-1 jsgd-border-solid jsgd-border-blue-500 jsgd-border-t-0 jsgd-rounded-b-lg jsgd-shadow-xl jsgd-max-h-64 jsgd-overflow-y-auto jsgd-backdrop-blur-md jsgd-box-border dark:jsgd-bg-slate-800/95 dark:jsgd-border-blue-400", {
3429
3428
  "jsgd-border-red-400 dark:jsgd-border-red-400": e.error,
@@ -3434,12 +3433,12 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
3434
3433
  key: T,
3435
3434
  onMousedown: Ne((L) => R(T), ["prevent"]),
3436
3435
  class: H(["jsgd-px-4 jsgd-py-3 jsgd-cursor-pointer jsgd-transition-colors jsgd-duration-200 hover:jsgd-bg-slate-50 dark:hover:jsgd-bg-slate-700", {
3437
- "jsgd-bg-blue-50 jsgd-text-blue-700 jsgd-font-medium dark:jsgd-bg-blue-900/30 dark:jsgd-text-blue-300": b(T, t.modelValue)
3436
+ "jsgd-bg-blue-50 jsgd-text-blue-700 jsgd-font-medium dark:jsgd-bg-blue-900/30 dark:jsgd-text-blue-300": p(T, t.modelValue)
3438
3437
  }])
3439
3438
  }, [
3440
- i("div", ir, [
3441
- i("span", or, F(T === "" ? "— Empty —" : w(T)), 1),
3442
- T === t.modelValue ? (f(), k("svg", gr, [...v[7] || (v[7] = [
3439
+ i("div", nr, [
3440
+ i("span", ir, F(T === "" ? "— Empty —" : w(T)), 1),
3441
+ T === t.modelValue ? (f(), k("svg", or, [...v[7] || (v[7] = [
3443
3442
  i("path", {
3444
3443
  "stroke-linecap": "round",
3445
3444
  "stroke-linejoin": "round",
@@ -3448,13 +3447,13 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
3448
3447
  }, null, -1)
3449
3448
  ])])) : V("", !0)
3450
3449
  ])
3451
- ], 42, nr))), 128)),
3452
- t.withCreate && p.value && O(p.value) ? (f(), k("li", {
3450
+ ], 42, lr))), 128)),
3451
+ t.withCreate && b.value && O(b.value) ? (f(), k("li", {
3453
3452
  key: 0,
3454
3453
  onMousedown: v[3] || (v[3] = Ne((T) => y.value = !0, ["prevent"])),
3455
3454
  class: "jsgd-px-4 jsgd-py-3 jsgd-cursor-pointer jsgd-transition-colors jsgd-duration-200 hover:jsgd-bg-slate-50 jsgd-text-blue-600 jsgd-font-medium dark:jsgd-text-blue-400 dark:hover:jsgd-bg-slate-700"
3456
3455
  }, [
3457
- i("div", ur, [
3456
+ i("div", gr, [
3458
3457
  v[8] || (v[8] = i("svg", {
3459
3458
  class: "jsgd-w-5 jsgd-h-5 jsgd-text-blue-600 dark:jsgd-text-blue-400",
3460
3459
  fill: "none",
@@ -3469,10 +3468,10 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
3469
3468
  d: "M12 6v6m0 0v6m0-6h6m-6 0H6"
3470
3469
  })
3471
3470
  ], -1)),
3472
- te(" " + F(m(n)?.btn?.add ?? "Create new") + ' "' + F(p.value) + '" ', 1)
3471
+ te(" " + F(m(n)?.btn?.add ?? "Create new") + ' "' + F(b.value) + '" ', 1)
3473
3472
  ])
3474
3473
  ], 32)) : V("", !0),
3475
- C.value.length === 0 ? (f(), k("li", cr, F(t.withCreate ? "No matches. Create new data" : "No options available"), 1)) : V("", !0)
3474
+ C.value.length === 0 ? (f(), k("li", ur, F(t.withCreate ? "No matches. Create new data" : "No options available"), 1)) : V("", !0)
3476
3475
  ], 2)) : V("", !0)
3477
3476
  ]),
3478
3477
  _: 1
@@ -3480,20 +3479,20 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
3480
3479
  y.value && t.withCreate?.schema ? (f(), Z(m(vs), {
3481
3480
  key: 2,
3482
3481
  schema: t.withCreate.schema,
3483
- "initial-data": {},
3482
+ "initial-data": { name: b.value },
3484
3483
  onSubmit: P,
3485
3484
  onCancel: v[4] || (v[4] = () => y.value = !1)
3486
- }, null, 8, ["schema"])) : V("", !0),
3487
- We(m(Dd), {
3485
+ }, null, 8, ["schema", "initial-data"])) : V("", !0),
3486
+ We(m(Cd), {
3488
3487
  ref_key: "loader",
3489
3488
  ref: r
3490
3489
  }, null, 512)
3491
3490
  ]));
3492
3491
  }
3493
- }), jr = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, fr = ["for"], hr = { class: "jsgd-relative" }, br = ["id", "value", "disabled", "min", "max", "placeholder"], pr = {
3492
+ }), mr = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, jr = ["for"], fr = { class: "jsgd-relative" }, hr = ["id", "value", "disabled", "min", "max", "placeholder"], br = {
3494
3493
  key: 0,
3495
3494
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
3496
- }, vr = /* @__PURE__ */ oe({
3495
+ }, pr = /* @__PURE__ */ oe({
3497
3496
  __name: "DateInput",
3498
3497
  props: {
3499
3498
  id: { default: fe() },
@@ -3526,7 +3525,7 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
3526
3525
  d.value = [];
3527
3526
  return;
3528
3527
  }
3529
- const l = [], b = qe(y);
3528
+ const l = [], p = qe(y);
3530
3529
  if (a && typeof a == "object") {
3531
3530
  try {
3532
3531
  qe(y);
@@ -3535,7 +3534,7 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
3535
3534
  return;
3536
3535
  }
3537
3536
  const { minDate: x, maxDate: w } = a, $ = x ? qe(x) : void 0, A = w ? qe(w) : void 0;
3538
- $ && b && b < $ && l.push(E("dateMin", { min: qe($) }, e.lang ?? "en")), A && b && b > A && l.push(E("dateMax", { max: qe(A) }, e.lang ?? "en"));
3537
+ $ && p && p < $ && l.push(E("dateMin", { min: qe($) }, e.lang ?? "en")), A && p && p > A && l.push(E("dateMax", { max: qe(A) }, e.lang ?? "en"));
3539
3538
  }
3540
3539
  d.value = l, l.length ? c("push:error", l, e.id) : c("remove:error", e.id);
3541
3540
  }
@@ -3549,12 +3548,12 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
3549
3548
  }
3550
3549
  });
3551
3550
  const g = _(() => e.placeholder ?? n?.value?.placeholder?.date ?? "");
3552
- function p(y) {
3551
+ function b(y) {
3553
3552
  if (e.disabled) return;
3554
3553
  const r = y.target;
3555
3554
  c("update:modelValue", r.value, e.id);
3556
3555
  }
3557
- return (y, r) => (f(), k("div", jr, [
3556
+ return (y, r) => (f(), k("div", mr, [
3558
3557
  i("label", {
3559
3558
  for: t.id,
3560
3559
  class: H(["jsgd-inline-flex jsgd-items-center jsgd-gap-2 jsgd-text-sm jsgd-font-medium jsgd-mb-2 jsgd-text-slate-900 jsgd-transition-colors jsgd-duration-200 dark:jsgd-text-slate-100", { "jsgd-text-red-500 dark:jsgd-text-red-400": d.value.length || t.error }])
@@ -3570,8 +3569,8 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
3570
3569
  ])]),
3571
3570
  _: 1
3572
3571
  }, 8, ["text"])) : V("", !0)
3573
- ], 10, fr),
3574
- i("div", hr, [
3572
+ ], 10, jr),
3573
+ i("div", fr, [
3575
3574
  r[1] || (r[1] = i("div", { class: "jsgd-absolute jsgd-right-3 jsgd-top-1/2 -jsgd-translate-y-1/2 jsgd-pointer-events-none jsgd-text-slate-500 dark:jsgd-text-slate-400" }, [
3576
3575
  i("span", { class: "jsgd-i-mdi-calendar jsgd-w-5 jsgd-h-5" })
3577
3576
  ], -1)),
@@ -3582,24 +3581,24 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
3582
3581
  disabled: t.disabled,
3583
3582
  min: e.validate?.minDate,
3584
3583
  max: e.validate?.maxDate,
3585
- onInput: p,
3584
+ onInput: b,
3586
3585
  placeholder: g.value,
3587
3586
  class: H(["jsgd-w-full jsgd-py-3 jsgd-px-4 jsgd-text-base jsgd-text-slate-900 jsgd-bg-white jsgd-border jsgd-border-slate-300 jsgd-rounded-lg jsgd-transition-all jsgd-duration-200 jsgd-box-border jsgd-appearance-none focus:jsgd-outline-none focus:jsgd-border-blue-500 focus:jsgd-ring-4 focus:jsgd-ring-blue-500/20 disabled:jsgd-bg-slate-100 disabled:jsgd-text-slate-500 disabled:jsgd-cursor-not-allowed dark:jsgd-bg-slate-800 dark:jsgd-text-slate-100 dark:jsgd-border-slate-600 dark:focus:jsgd-border-blue-400 dark:focus:jsgd-ring-blue-400/25 dark:disabled:jsgd-bg-slate-700 [color-scheme:light_dark] [&::-webkit-calendar-picker-indicator]:jsgd-opacity-0 [&::-webkit-calendar-picker-indicator]:jsgd-cursor-pointer [&::-webkit-calendar-picker-indicator]:jsgd-absolute [&::-webkit-calendar-picker-indicator]:jsgd-right-3 [&::-webkit-calendar-picker-indicator]:jsgd-top-1/2 [&::-webkit-calendar-picker-indicator]:-jsgd-translate-y-1/2 [&::-webkit-calendar-picker-indicator]:jsgd-w-6 [&::-webkit-calendar-picker-indicator]:jsgd-h-6", {
3588
3587
  "jsgd-border-red-400 focus:jsgd-ring-red-500/20 dark:jsgd-border-red-400 dark:focus:jsgd-ring-red-400/25": d.value.length || t.error
3589
3588
  }])
3590
- }, null, 42, br)
3589
+ }, null, 42, hr)
3591
3590
  ]),
3592
3591
  (f(!0), k(ee, null, de(d.value, (a, l) => (f(), k("p", {
3593
3592
  key: l,
3594
3593
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
3595
3594
  }, F(a), 1))), 128)),
3596
- typeof e.error == "string" && d.value.length === 0 ? (f(), k("p", pr, F(t.error), 1)) : V("", !0)
3595
+ typeof e.error == "string" && d.value.length === 0 ? (f(), k("p", br, F(t.error), 1)) : V("", !0)
3597
3596
  ]));
3598
3597
  }
3599
- }), xr = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, yr = ["for"], wr = { class: "jsgd-relative" }, kr = ["id", "value", "disabled", "min", "max", "placeholder"], Sr = {
3598
+ }), vr = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, xr = ["for"], yr = { class: "jsgd-relative" }, wr = ["id", "value", "disabled", "min", "max", "placeholder"], kr = {
3600
3599
  key: 0,
3601
3600
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
3602
- }, $r = /* @__PURE__ */ oe({
3601
+ }, Sr = /* @__PURE__ */ oe({
3603
3602
  __name: "DateTimeInput",
3604
3603
  props: {
3605
3604
  id: { type: String, default: () => fe() },
@@ -3630,8 +3629,8 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
3630
3629
  try {
3631
3630
  const l = new Date(a);
3632
3631
  if (isNaN(l.getTime())) return "";
3633
- const b = l.getFullYear(), x = (l.getMonth() + 1).toString().padStart(2, "0"), w = l.getDate().toString().padStart(2, "0"), $ = l.getHours().toString().padStart(2, "0"), A = l.getMinutes().toString().padStart(2, "0");
3634
- return `${b}-${x}-${w}T${$}:${A}`;
3632
+ const p = l.getFullYear(), x = (l.getMonth() + 1).toString().padStart(2, "0"), w = l.getDate().toString().padStart(2, "0"), $ = l.getHours().toString().padStart(2, "0"), A = l.getMinutes().toString().padStart(2, "0");
3633
+ return `${p}-${x}-${w}T${$}:${A}`;
3635
3634
  } catch {
3636
3635
  return "";
3637
3636
  }
@@ -3643,27 +3642,27 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
3643
3642
  `);
3644
3643
  }
3645
3644
  return "";
3646
- }), p = z([]);
3645
+ }), b = z([]);
3647
3646
  ne(
3648
3647
  () => ({
3649
3648
  val: e.modelValue,
3650
3649
  disabled: e.disabled,
3651
3650
  validate: e.validate
3652
3651
  }),
3653
- ({ val: a, disabled: l, validate: b }) => {
3652
+ ({ val: a, disabled: l, validate: p }) => {
3654
3653
  if (l) {
3655
- p.value = [];
3654
+ b.value = [];
3656
3655
  return;
3657
3656
  }
3658
3657
  const x = [], w = j(a);
3659
- if (b) {
3660
- const { minDateTime: $, maxDateTime: A } = b;
3658
+ if (p) {
3659
+ const { minDateTime: $, maxDateTime: A } = p;
3661
3660
  if (w) {
3662
3661
  const S = $ ? j($) : void 0, C = A ? j(A) : void 0;
3663
3662
  S && w < S && x.push(E("dateTimeMin", { min: String(S) }, e.lang ?? "en")), C && w > C && x.push(E("dateTimeMax", { max: String(C) }, e.lang ?? "en"));
3664
3663
  }
3665
3664
  }
3666
- p.value = x, x.length ? c("push:error", x, e.id) : c("remove:error", e.id);
3665
+ b.value = x, x.length ? c("push:error", x, e.id) : c("remove:error", e.id);
3667
3666
  },
3668
3667
  { deep: !0, immediate: !0 }
3669
3668
  );
@@ -3672,12 +3671,12 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
3672
3671
  );
3673
3672
  function r(a) {
3674
3673
  if (e.disabled) return;
3675
- const b = a.target.value;
3676
- if (!b) {
3674
+ const p = a.target.value;
3675
+ if (!p) {
3677
3676
  c("update:modelValue", "", e.id);
3678
3677
  return;
3679
3678
  }
3680
- const x = `${b}:00`, w = new Date(x);
3679
+ const x = `${p}:00`, w = new Date(x);
3681
3680
  let $ = "";
3682
3681
  if (e.outputFormat === "utc")
3683
3682
  $ = w.toISOString();
@@ -3687,10 +3686,10 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
3687
3686
  }
3688
3687
  c("update:modelValue", $, e.id);
3689
3688
  }
3690
- return (a, l) => (f(), k("div", xr, [
3689
+ return (a, l) => (f(), k("div", vr, [
3691
3690
  i("label", {
3692
3691
  for: t.id,
3693
- class: H(["jsgd-inline-flex jsgd-items-center jsgd-gap-2 jsgd-text-sm jsgd-font-medium jsgd-mb-2 jsgd-text-slate-900 jsgd-transition-colors jsgd-duration-200 dark:jsgd-text-slate-100", { "jsgd-text-red-500 dark:jsgd-text-red-400": p.value.length || t.error }])
3692
+ class: H(["jsgd-inline-flex jsgd-items-center jsgd-gap-2 jsgd-text-sm jsgd-font-medium jsgd-mb-2 jsgd-text-slate-900 jsgd-transition-colors jsgd-duration-200 dark:jsgd-text-slate-100", { "jsgd-text-red-500 dark:jsgd-text-red-400": b.value.length || t.error }])
3694
3693
  }, [
3695
3694
  te(F(t.label) + " ", 1),
3696
3695
  g.value ? (f(), Z(m(xe), {
@@ -3703,8 +3702,8 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
3703
3702
  ])]),
3704
3703
  _: 1
3705
3704
  }, 8, ["text"])) : V("", !0)
3706
- ], 10, yr),
3707
- i("div", wr, [
3705
+ ], 10, xr),
3706
+ i("div", yr, [
3708
3707
  l[1] || (l[1] = i("div", { class: "jsgd-absolute jsgd-right-3 jsgd-top-1/2 -jsgd-translate-y-1/2 jsgd-pointer-events-none jsgd-text-slate-500 dark:jsgd-text-slate-400" }, [
3709
3708
  i("span", { class: "jsgd-i-mdi-calendar-clock jsgd-w-5 jsgd-h-5" })
3710
3709
  ], -1)),
@@ -3718,21 +3717,21 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
3718
3717
  onInput: r,
3719
3718
  placeholder: y.value,
3720
3719
  class: H(["jsgd-w-full jsgd-py-3 jsgd-px-4 jsgd-text-base jsgd-text-slate-900 jsgd-bg-white jsgd-border-1 jsgd-border-solid jsgd-border-slate-300 jsgd-rounded-lg jsgd-transition-all jsgd-duration-200 jsgd-box-border jsgd-appearance-none focus:jsgd-outline-none focus:jsgd-border-blue-500 focus:jsgd-ring-4 focus:jsgd-ring-blue-500/20 disabled:jsgd-bg-slate-100 disabled:jsgd-text-slate-500 disabled:jsgd-cursor-not-allowed dark:jsgd-bg-slate-800 dark:jsgd-text-slate-100 dark:jsgd-border-slate-600 dark:focus:jsgd-border-blue-400 dark:focus:jsgd-ring-blue-400/25 dark:disabled:jsgd-bg-slate-700 [color-scheme:light_dark] [&::-webkit-calendar-picker-indicator]:jsgd-opacity-0 [&::-webkit-calendar-picker-indicator]:jsgd-cursor-pointer [&::-webkit-calendar-picker-indicator]:jsgd-absolute [&::-webkit-calendar-picker-indicator]:jsgd-right-3 [&::-webkit-calendar-picker-indicator]:jsgd-top-1/2 [&::-webkit-calendar-picker-indicator]:-jsgd-translate-y-1/2 [&::-webkit-calendar-picker-indicator]:jsgd-w-6 [&::-webkit-calendar-picker-indicator]:jsgd-h-6", {
3721
- "jsgd-border-red-400 focus:jsgd-ring-red-500/20 dark:jsgd-border-red-400 dark:focus:jsgd-ring-red-400/25": p.value.length || t.error
3720
+ "jsgd-border-red-400 focus:jsgd-ring-red-500/20 dark:jsgd-border-red-400 dark:focus:jsgd-ring-red-400/25": b.value.length || t.error
3722
3721
  }])
3723
- }, null, 42, kr)
3722
+ }, null, 42, wr)
3724
3723
  ]),
3725
- (f(!0), k(ee, null, de(p.value, (b, x) => (f(), k("p", {
3724
+ (f(!0), k(ee, null, de(b.value, (p, x) => (f(), k("p", {
3726
3725
  key: x,
3727
3726
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
3728
- }, F(b), 1))), 128)),
3729
- typeof e.error == "string" && p.value.length === 0 ? (f(), k("p", Sr, F(t.error), 1)) : V("", !0)
3727
+ }, F(p), 1))), 128)),
3728
+ typeof e.error == "string" && b.value.length === 0 ? (f(), k("p", kr, F(t.error), 1)) : V("", !0)
3730
3729
  ]));
3731
3730
  }
3732
- }), Ar = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, Tr = ["for"], Mr = { class: "jsgd-relative" }, Cr = ["id", "value", "disabled", "placeholder"], Dr = {
3731
+ }), $r = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, Ar = ["for"], Tr = { class: "jsgd-relative" }, Mr = ["id", "value", "disabled", "placeholder"], Cr = {
3733
3732
  key: 1,
3734
3733
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
3735
- }, Ir = /* @__PURE__ */ oe({
3734
+ }, Dr = /* @__PURE__ */ oe({
3736
3735
  __name: "EmailInput",
3737
3736
  props: {
3738
3737
  id: { default: fe() },
@@ -3767,21 +3766,21 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
3767
3766
  g.value = [];
3768
3767
  return;
3769
3768
  }
3770
- const b = [], x = String(r ?? "");
3769
+ const p = [], x = String(r ?? "");
3771
3770
  if (l && Array.isArray(l.duplicate) && l.duplicate.length > 0) {
3772
3771
  const w = l.duplicate.map(String).includes(x), $ = String(u) === x;
3773
- w && !$ && b.push(E("valueList", { value: x }, e.lang ?? "en"));
3772
+ w && !$ && p.push(E("valueList", { value: x }, e.lang ?? "en"));
3774
3773
  }
3775
- _a.test(x) || b.push(E("email", void 0, e.lang ?? "en")), g.value = b, b.length ? j("push:error", b, e.id) : j("remove:error", e.id);
3774
+ Xa.test(x) || p.push(E("email", void 0, e.lang ?? "en")), g.value = p, p.length ? j("push:error", p, e.id) : j("remove:error", e.id);
3776
3775
  }
3777
3776
  );
3778
- const p = _(() => e.placeholder ?? c?.value?.placeholder?.email ?? "");
3777
+ const b = _(() => e.placeholder ?? c?.value?.placeholder?.email ?? "");
3779
3778
  function y(r) {
3780
3779
  if (e.disabled) return;
3781
3780
  const a = r.target;
3782
3781
  j("update:modelValue", a.value, e.id);
3783
3782
  }
3784
- return (r, a) => (f(), k("div", Ar, [
3783
+ return (r, a) => (f(), k("div", $r, [
3785
3784
  i("label", {
3786
3785
  for: t.id,
3787
3786
  class: H(["jsgd-inline-flex jsgd-items-center jsgd-gap-2 jsgd-text-sm jsgd-font-medium jsgd-mb-2 jsgd-text-slate-900 jsgd-transition-colors jsgd-duration-200 dark:jsgd-text-slate-100", { "jsgd-text-red-500 dark:jsgd-text-red-400": g.value.length !== 0 || t.error }])
@@ -3797,8 +3796,8 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
3797
3796
  ])]),
3798
3797
  _: 1
3799
3798
  }, 8, ["text"])) : V("", !0)
3800
- ], 10, Tr),
3801
- i("div", Mr, [
3799
+ ], 10, Ar),
3800
+ i("div", Tr, [
3802
3801
  a[1] || (a[1] = i("div", { class: "jsgd-absolute jsgd-left-3 jsgd-top-1/2 -jsgd-translate-y-1/2 jsgd-text-slate-400 jsgd-pointer-events-none" }, [
3803
3802
  i("svg", {
3804
3803
  xmlns: "http://www.w3.org/2000/svg",
@@ -3821,26 +3820,26 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
3821
3820
  value: t.modelValue,
3822
3821
  disabled: t.disabled,
3823
3822
  onInput: y,
3824
- placeholder: p.value,
3823
+ placeholder: b.value,
3825
3824
  class: H(["jsgd-w-full jsgd-py-3 jsgd-pl-11 jsgd-pr-4 jsgd-text-base jsgd-text-slate-900 jsgd-bg-white jsgd-border jsgd-border-slate-300 jsgd-rounded-lg jsgd-transition-all jsgd-duration-200 jsgd-box-border focus:jsgd-outline-none focus:jsgd-border-blue-500 focus:jsgd-ring-4 focus:jsgd-ring-blue-500/20 disabled:jsgd-bg-slate-100 disabled:jsgd-text-slate-500 disabled:jsgd-cursor-not-allowed dark:jsgd-bg-slate-800 dark:jsgd-text-slate-100 dark:jsgd-border-slate-600 dark:focus:jsgd-border-blue-400 dark:focus:jsgd-ring-blue-400/25 dark:disabled:jsgd-bg-slate-700", {
3826
3825
  "jsgd-border-red-400 focus:jsgd-ring-red-500/20 dark:jsgd-border-red-400 dark:focus:jsgd-ring-red-400/25": g.value.length !== 0 || t.error
3827
3826
  }])
3828
- }, null, 42, Cr)
3827
+ }, null, 42, Mr)
3829
3828
  ]),
3830
- g.value.length !== 0 ? (f(!0), k(ee, { key: 0 }, de(g.value, (l, b) => (f(), k("p", {
3831
- key: b,
3829
+ g.value.length !== 0 ? (f(!0), k(ee, { key: 0 }, de(g.value, (l, p) => (f(), k("p", {
3830
+ key: p,
3832
3831
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
3833
3832
  }, F(l), 1))), 128)) : V("", !0),
3834
- typeof e.error == "string" && g.value.length === 0 ? (f(), k("p", Dr, F(t.error), 1)) : V("", !0)
3833
+ typeof e.error == "string" && g.value.length === 0 ? (f(), k("p", Cr, F(t.error), 1)) : V("", !0)
3835
3834
  ]));
3836
3835
  }
3837
- }), Er = { class: "jsgd-w-full jsgd-mb-4" }, Vr = ["for"], Lr = {
3836
+ }), Ir = { class: "jsgd-w-full jsgd-mb-4" }, Er = ["for"], Vr = {
3838
3837
  key: 0,
3839
3838
  class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-mb-6"
3840
- }, zr = { class: "jsgd-flex jsgd-items-center jsgd-gap-3 jsgd-min-w-0" }, Fr = { class: "jsgd-flex jsgd-flex-col jsgd-overflow-hidden" }, Or = { class: "jsgd-font-medium jsgd-text-slate-900 jsgd-truncate dark:jsgd-text-slate-100" }, Pr = { class: "jsgd-text-xs jsgd-text-slate-500 dark:jsgd-text-slate-400" }, Br = ["onClick"], Rr = {
3839
+ }, Lr = { class: "jsgd-flex jsgd-items-center jsgd-gap-3 jsgd-min-w-0" }, zr = { class: "jsgd-flex jsgd-flex-col jsgd-overflow-hidden" }, Fr = { class: "jsgd-font-medium jsgd-text-slate-900 jsgd-truncate dark:jsgd-text-slate-100" }, Or = { class: "jsgd-text-xs jsgd-text-slate-500 dark:jsgd-text-slate-400" }, Pr = ["onClick"], Br = {
3841
3840
  key: 1,
3842
3841
  class: "jsgd-text-center jsgd-py-8 jsgd-px-4 jsgd-text-slate-400 jsgd-italic dark:jsgd-text-slate-500"
3843
- }, Ur = { class: "jsgd-text-center jsgd-mt-4" }, qr = ["id", "disabled"], Kr = ["for"], Hr = { class: "jsgd-mt-2 jsgd-flex jsgd-flex-col jsgd-gap-1" }, Nr = /* @__PURE__ */ oe({
3842
+ }, Rr = { class: "jsgd-text-center jsgd-mt-4" }, Ur = ["id", "disabled"], qr = ["for"], Kr = { class: "jsgd-mt-2 jsgd-flex jsgd-flex-col jsgd-gap-1" }, Hr = /* @__PURE__ */ oe({
3844
3843
  __name: "FileArrayInput",
3845
3844
  props: {
3846
3845
  id: { default: fe },
@@ -3855,7 +3854,7 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
3855
3854
  setup(t, { emit: o }) {
3856
3855
  const e = t, u = o, c = le("TableComponents", {
3857
3856
  labels: z(me[e.lang ?? "en"])
3858
- }).labels, j = le("TableComponents")?.ShowAlert, d = z([]), g = z([]), p = _(() => g.value.length > 0 ? g.value : typeof e.error == "string" ? [e.error] : Array.isArray(e.error) ? e.error : []), y = _(() => e.disabled ? !0 : e.validate?.maxFiles && e.modelValue && e.modelValue.length >= e.validate.maxFiles), r = _(() => {
3857
+ }).labels, j = le("TableComponents")?.ShowAlert, d = z([]), g = z([]), b = _(() => g.value.length > 0 ? g.value : typeof e.error == "string" ? [e.error] : Array.isArray(e.error) ? e.error : []), y = _(() => e.disabled ? !0 : e.validate?.maxFiles && e.modelValue && e.modelValue.length >= e.validate.maxFiles), r = _(() => {
3859
3858
  if (!e.validate) return "";
3860
3859
  const w = e.validate, $ = [];
3861
3860
  return w.maxFiles && $.push(E("fileMaxFiles", { max: w.maxFiles }, e.lang ?? "en")), w.allowedTypes && $.push(E("fileType", {}, e.lang ?? "en") + ` (${w.allowedTypes.join(", ")})`), w.maxSize && $.push(E("fileMaxSize", { max: w.maxSize }, e.lang ?? "en")), $.join(`
@@ -3865,7 +3864,7 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
3865
3864
  () => e.modelValue,
3866
3865
  (w) => {
3867
3866
  if (!w || w.length === 0) {
3868
- d.value = [], b();
3867
+ d.value = [], p();
3869
3868
  return;
3870
3869
  }
3871
3870
  d.value = w.map(($) => $ instanceof File ? {
@@ -3874,7 +3873,7 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
3874
3873
  } : {
3875
3874
  name: $,
3876
3875
  size: "N/A"
3877
- }), b();
3876
+ }), p();
3878
3877
  },
3879
3878
  { immediate: !0, deep: !0 }
3880
3879
  );
@@ -3905,7 +3904,7 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
3905
3904
  const $ = [...e.modelValue || []];
3906
3905
  $.splice(w, 1), u("update:modelValue", $);
3907
3906
  }
3908
- function b() {
3907
+ function p() {
3909
3908
  if (!e.validate || !e.modelValue || e.modelValue.length === 0) {
3910
3909
  g.value = [], u("remove:error", e.id);
3911
3910
  return;
@@ -3930,10 +3929,10 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
3930
3929
  `File #${$} (${w.name}): ` + E("fileMaxSize", { max: S.maxSize }, e.lang ?? "en")
3931
3930
  ), A;
3932
3931
  }
3933
- return (w, $) => (f(), k("div", Er, [
3932
+ return (w, $) => (f(), k("div", Ir, [
3934
3933
  i("label", {
3935
3934
  for: t.id,
3936
- class: H(["jsgd-inline-flex jsgd-items-center jsgd-gap-2 jsgd-text-sm jsgd-font-medium jsgd-mb-2 jsgd-text-slate-900 jsgd-transition-colors jsgd-duration-200 dark:jsgd-text-slate-100", { "jsgd-text-red-500 dark:jsgd-text-red-400": p.value.length !== 0 }])
3935
+ class: H(["jsgd-inline-flex jsgd-items-center jsgd-gap-2 jsgd-text-sm jsgd-font-medium jsgd-mb-2 jsgd-text-slate-900 jsgd-transition-colors jsgd-duration-200 dark:jsgd-text-slate-100", { "jsgd-text-red-500 dark:jsgd-text-red-400": b.value.length !== 0 }])
3937
3936
  }, [
3938
3937
  te(F(t.label) + " ", 1),
3939
3938
  r.value ? (f(), Z(m(xe), {
@@ -3946,21 +3945,21 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
3946
3945
  ])]),
3947
3946
  _: 1
3948
3947
  }, 8, ["text"])) : V("", !0)
3949
- ], 10, Vr),
3948
+ ], 10, Er),
3950
3949
  i("div", {
3951
- class: H(["jsgd-bg-white jsgd-border-2 jsgd-border-dashed jsgd-border-slate-300 jsgd-rounded-xl jsgd-p-6 jsgd-transition-colors jsgd-duration-200 hover:jsgd-bg-slate-50 hover:jsgd-border-blue-500 dark:jsgd-bg-slate-800 dark:jsgd-border-slate-600 dark:hover:jsgd-bg-slate-700 dark:hover:jsgd-border-blue-400", { "jsgd-border-red-300 dark:jsgd-border-red-800": p.value.length !== 0 }])
3950
+ class: H(["jsgd-bg-white jsgd-border-2 jsgd-border-dashed jsgd-border-slate-300 jsgd-rounded-xl jsgd-p-6 jsgd-transition-colors jsgd-duration-200 hover:jsgd-bg-slate-50 hover:jsgd-border-blue-500 dark:jsgd-bg-slate-800 dark:jsgd-border-slate-600 dark:hover:jsgd-bg-slate-700 dark:hover:jsgd-border-blue-400", { "jsgd-border-red-300 dark:jsgd-border-red-800": b.value.length !== 0 }])
3952
3951
  }, [
3953
- d.value.length > 0 ? (f(), k("div", Lr, [
3952
+ d.value.length > 0 ? (f(), k("div", Vr, [
3954
3953
  (f(!0), k(ee, null, de(d.value, (A, S) => (f(), k("div", {
3955
3954
  key: S,
3956
3955
  class: "jsgd-group jsgd-flex jsgd-items-center jsgd-justify-between jsgd-p-3 jsgd-bg-slate-50 jsgd-border jsgd-border-slate-200 jsgd-rounded-lg jsgd-shadow-sm jsgd-transition-all jsgd-duration-200 jsgd-animate-[slideInFade_500ms_ease-out_backwards] hover:-jsgd-translate-y-0.5 hover:jsgd-shadow-md dark:jsgd-bg-slate-700 dark:jsgd-border-slate-600 dark:hover:jsgd-bg-slate-600",
3957
3956
  style: Ge({ animationDelay: `${S * 60}ms` })
3958
3957
  }, [
3959
- i("div", zr, [
3958
+ i("div", Lr, [
3960
3959
  $[1] || ($[1] = i("span", { class: "jsgd-text-2xl jsgd-text-slate-500 jsgd-shrink-0 dark:jsgd-text-slate-400" }, "📄", -1)),
3961
- i("div", Fr, [
3962
- i("span", Or, F(A.name), 1),
3963
- i("span", Pr, F(A.size), 1)
3960
+ i("div", zr, [
3961
+ i("span", Fr, F(A.name), 1),
3962
+ i("span", Or, F(A.size), 1)
3964
3963
  ])
3965
3964
  ]),
3966
3965
  t.disabled ? V("", !0) : (f(), k("button", {
@@ -3968,12 +3967,12 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
3968
3967
  onClick: (C) => l(S),
3969
3968
  class: "jsgd-w-6 jsgd-h-6 jsgd-flex jsgd-items-center jsgd-justify-center jsgd-pb-[5px] jsgd-shrink-0 jsgd-ml-4 jsgd-text-xl jsgd-font-bold jsgd-text-white jsgd-bg-red-500 jsgd-rounded-full jsgd-border-none jsgd-cursor-pointer jsgd-opacity-0 jsgd-scale-50 jsgd-transition-all jsgd-duration-200 hover:jsgd-bg-red-600 hover:jsgd-scale-110 hover:jsgd-rotate-90 group-hover:jsgd-opacity-100 group-hover:jsgd-scale-100",
3970
3969
  "aria-label": "Remove file"
3971
- }, " × ", 8, Br))
3970
+ }, " × ", 8, Pr))
3972
3971
  ], 4))), 128))
3973
- ])) : (f(), k("div", Rr, [
3972
+ ])) : (f(), k("div", Br, [
3974
3973
  i("p", null, F(m(c)?.message?.noItemSelected), 1)
3975
3974
  ])),
3976
- i("div", Ur, [
3975
+ i("div", Rr, [
3977
3976
  i("input", {
3978
3977
  id: t.id,
3979
3978
  type: "file",
@@ -3981,33 +3980,33 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
3981
3980
  onChange: a,
3982
3981
  class: "jsgd-hidden",
3983
3982
  disabled: e.disabled
3984
- }, null, 40, qr),
3983
+ }, null, 40, Ur),
3985
3984
  i("label", {
3986
3985
  for: t.id,
3987
3986
  class: H(["jsgd-inline-flex jsgd-items-center jsgd-gap-2 jsgd-px-5 jsgd-py-2.5 jsgd-font-medium jsgd-border-none jsgd-rounded-lg jsgd-text-white jsgd-bg-blue-500 jsgd-cursor-pointer jsgd-transition-all jsgd-duration-200 hover:jsgd-bg-blue-600 hover:jsgd-scale-105 hover:jsgd-shadow-lg disabled:jsgd-bg-slate-100 disabled:jsgd-text-slate-500 disabled:jsgd-cursor-not-allowed dark:jsgd-bg-blue-600 dark:hover:jsgd-bg-blue-500 dark:disabled:jsgd-bg-slate-700 dark:disabled:jsgd-text-slate-400 before:jsgd-content-['+'] before:jsgd-text-lg before:jsgd-leading-none", {
3988
3987
  "jsgd-bg-slate-100 jsgd-text-slate-500 jsgd-cursor-not-allowed dark:jsgd-bg-slate-700 dark:jsgd-text-slate-400": y.value
3989
3988
  }])
3990
- }, F(m(c)?.btn?.add ?? "Add Files"), 11, Kr)
3989
+ }, F(m(c)?.btn?.add ?? "Add Files"), 11, qr)
3991
3990
  ])
3992
3991
  ], 2),
3993
- i("div", Hr, [
3994
- p.value.length > 0 ? (f(!0), k(ee, { key: 0 }, de(p.value, (A, S) => (f(), k("p", {
3992
+ i("div", Kr, [
3993
+ b.value.length > 0 ? (f(!0), k(ee, { key: 0 }, de(b.value, (A, S) => (f(), k("p", {
3995
3994
  key: S,
3996
3995
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
3997
3996
  }, F(A), 1))), 128)) : V("", !0)
3998
3997
  ])
3999
3998
  ]));
4000
3999
  }
4001
- }), Wr = { class: "jsgd-w-full jsgd-mb-4" }, Gr = ["for"], Zr = { class: "jsgd-flex jsgd-flex-col jsgd-items-center jsgd-justify-center jsgd-p-8 jsgd-gap-5 jsgd-relative jsgd-overflow-hidden" }, Yr = ["id", "disabled"], Jr = { class: "jsgd-flex jsgd-items-center jsgd-gap-3 jsgd-z-10" }, Qr = ["for"], Xr = {
4000
+ }), Nr = { class: "jsgd-w-full jsgd-mb-4" }, Wr = ["for"], Gr = { class: "jsgd-flex jsgd-flex-col jsgd-items-center jsgd-justify-center jsgd-p-8 jsgd-gap-5 jsgd-relative jsgd-overflow-hidden" }, Zr = ["id", "disabled"], Yr = { class: "jsgd-flex jsgd-items-center jsgd-gap-3 jsgd-z-10" }, Jr = ["for"], Qr = {
4002
4001
  key: 0,
4003
4002
  class: "jsgd-w-full jsgd-p-4 jsgd-bg-blue-50 jsgd-rounded-lg jsgd-text-sm jsgd-text-slate-600 jsgd-animate-[slideUpFade_400ms_ease-out] jsgd-z-10 dark:jsgd-bg-blue-900/20 dark:jsgd-text-slate-300"
4004
- }, _r = { class: "jsgd-m-0 jsgd-leading-relaxed jsgd-break-words" }, el = {
4003
+ }, Xr = { class: "jsgd-m-0 jsgd-leading-relaxed jsgd-break-words" }, _r = {
4005
4004
  key: 0,
4006
4005
  class: "jsgd-m-0 jsgd-leading-relaxed jsgd-break-words"
4007
- }, tl = {
4006
+ }, el = {
4008
4007
  key: 1,
4009
4008
  class: "jsgd-m-0 jsgd-leading-relaxed jsgd-break-words"
4010
- }, sl = { class: "jsgd-mt-2 jsgd-flex jsgd-flex-col jsgd-gap-1" }, al = /* @__PURE__ */ oe({
4009
+ }, tl = { class: "jsgd-mt-2 jsgd-flex jsgd-flex-col jsgd-gap-1" }, sl = /* @__PURE__ */ oe({
4011
4010
  __name: "FileInput",
4012
4011
  props: {
4013
4012
  id: { default: fe() },
@@ -4022,7 +4021,7 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
4022
4021
  setup(t, { emit: o }) {
4023
4022
  const e = t, n = le("TableComponents", {
4024
4023
  labels: z(me[e.lang ?? "en"])
4025
- }).labels, c = o, j = z(""), d = z(""), g = z(""), p = z(!0), y = z([]), r = _(() => {
4024
+ }).labels, c = o, j = z(""), d = z(""), g = z(""), b = z(!0), y = z([]), r = _(() => {
4026
4025
  if (e.validate) {
4027
4026
  const w = e.validate, $ = [];
4028
4027
  return w.allowedTypes && $.push(E("fileType", {}, e.lang ?? "en") + ` (${w.allowedTypes.join(", ")})`), w.maxSize && $.push(E("fileMaxSize", { max: w.maxSize }, e.lang ?? "en")), $.join(`
@@ -4033,7 +4032,7 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
4033
4032
  ne(
4034
4033
  () => e.modelValue,
4035
4034
  (w) => {
4036
- w instanceof File ? (j.value = w.name, d.value = `${(w.size / 1024).toFixed(2)} KB`, g.value = w.type.split("/").pop() || w.name.split(".").pop() || "unknown", b(w)) : x();
4035
+ w instanceof File ? (j.value = w.name, d.value = `${(w.size / 1024).toFixed(2)} KB`, g.value = w.type.split("/").pop() || w.name.split(".").pop() || "unknown", p(w)) : x();
4037
4036
  },
4038
4037
  { immediate: !0 }
4039
4038
  );
@@ -4045,18 +4044,18 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
4045
4044
  function l() {
4046
4045
  e.disabled || (c("update:modelValue", null, e.id), c("remove:error", e.id));
4047
4046
  }
4048
- function b(w) {
4047
+ function p(w) {
4049
4048
  const $ = [];
4050
4049
  if (e.validate?.allowedTypes) {
4051
4050
  const A = w.name.split(".").pop()?.toLowerCase(), S = e.validate.allowedTypes.map((C) => C.toLowerCase());
4052
4051
  (!A || !S.includes(A)) && $.push(E("fileType", {}, e.lang ?? "en") + ` (${S.join(", ")})`);
4053
4052
  }
4054
- e.validate?.maxSize && (p.value = w.size / 1024 <= e.validate.maxSize, p.value || $.push(E("fileMaxSize", { max: e.validate.maxSize }, e.lang ?? "en"))), y.value = $, $.length ? c("push:error", $, e.id) : c("remove:error", e.id);
4053
+ e.validate?.maxSize && (b.value = w.size / 1024 <= e.validate.maxSize, b.value || $.push(E("fileMaxSize", { max: e.validate.maxSize }, e.lang ?? "en"))), y.value = $, $.length ? c("push:error", $, e.id) : c("remove:error", e.id);
4055
4054
  }
4056
4055
  function x() {
4057
4056
  j.value = "", d.value = "", g.value = "", y.value = [];
4058
4057
  }
4059
- return (w, $) => (f(), k("div", Wr, [
4058
+ return (w, $) => (f(), k("div", Nr, [
4060
4059
  i("label", {
4061
4060
  for: t.id,
4062
4061
  class: H(["jsgd-inline-flex jsgd-items-center jsgd-gap-2 jsgd-text-sm jsgd-font-medium jsgd-mb-2 jsgd-text-slate-900 jsgd-transition-colors jsgd-duration-200 dark:jsgd-text-slate-100", { "jsgd-text-red-500 dark:jsgd-text-red-400": y.value.length !== 0 || t.error }])
@@ -4072,13 +4071,13 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
4072
4071
  ])]),
4073
4072
  _: 1
4074
4073
  }, 8, ["text"])) : V("", !0)
4075
- ], 10, Gr),
4074
+ ], 10, Wr),
4076
4075
  i("div", {
4077
4076
  class: H(["jsgd-bg-slate-50 jsgd-border-2 jsgd-border-dashed jsgd-border-slate-300 jsgd-rounded-xl jsgd-transition-colors jsgd-duration-200 hover:jsgd-bg-slate-100 hover:jsgd-border-blue-500 dark:jsgd-bg-slate-800 dark:jsgd-border-slate-600 dark:hover:jsgd-bg-slate-700 dark:hover:jsgd-border-blue-400", {
4078
4077
  "jsgd-border-red-300 dark:jsgd-border-red-800": y.value.length !== 0 || t.error
4079
4078
  }])
4080
4079
  }, [
4081
- i("div", Zr, [
4080
+ i("div", Gr, [
4082
4081
  $[4] || ($[4] = hs('<div class="jsgd-absolute jsgd-top-1/2 jsgd-left-1/2 -jsgd-translate-x-1/2 -jsgd-translate-y-1/2 jsgd-w-16 jsgd-h-16 jsgd-opacity-10 jsgd-text-slate-900 jsgd-pointer-events-none jsgd-transition-opacity jsgd-duration-200 group-hover:jsgd-opacity-20 dark:jsgd-text-slate-100"><svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="17 8 12 3 7 8"></polyline><line x1="12" y1="3" x2="12" y2="15"></line></svg></div>', 1)),
4083
4082
  i("input", {
4084
4083
  id: t.id,
@@ -4086,12 +4085,12 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
4086
4085
  onChange: a,
4087
4086
  class: "jsgd-hidden",
4088
4087
  disabled: e.disabled
4089
- }, null, 40, Yr),
4090
- i("div", Jr, [
4088
+ }, null, 40, Zr),
4089
+ i("div", Yr, [
4091
4090
  i("label", {
4092
4091
  for: t.id,
4093
4092
  class: H(["jsgd-inline-flex jsgd-items-center jsgd-justify-center jsgd-gap-2 jsgd-px-5 jsgd-py-2.5 jsgd-font-medium jsgd-rounded-lg jsgd-border-none jsgd-cursor-pointer jsgd-transition-all jsgd-duration-200 hover:-jsgd-translate-y-0.5 hover:jsgd-shadow-md disabled:jsgd-opacity-60 disabled:jsgd-cursor-not-allowed jsgd-bg-blue-600 jsgd-text-white hover:jsgd-bg-blue-700 dark:jsgd-bg-blue-500 dark:hover:jsgd-bg-blue-400", { "jsgd-opacity-60 jsgd-cursor-not-allowed": e.disabled }])
4094
- }, F(j.value ? m(n)?.btn?.change : m(n)?.btn?.select), 11, Qr),
4093
+ }, F(j.value ? m(n)?.btn?.change : m(n)?.btn?.select), 11, Jr),
4095
4094
  j.value && !e.disabled ? (f(), k("button", {
4096
4095
  key: 0,
4097
4096
  type: "button",
@@ -4099,22 +4098,22 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
4099
4098
  class: "jsgd-inline-flex jsgd-items-center jsgd-justify-center jsgd-gap-2 jsgd-px-5 jsgd-py-2.5 jsgd-font-medium jsgd-rounded-lg jsgd-border-none jsgd-cursor-pointer jsgd-transition-all jsgd-duration-200 hover:-jsgd-translate-y-0.5 hover:jsgd-shadow-md disabled:jsgd-opacity-60 disabled:jsgd-cursor-not-allowed jsgd-bg-red-500 jsgd-text-white hover:jsgd-bg-red-600 dark:jsgd-bg-red-600 dark:hover:jsgd-bg-red-500"
4100
4099
  }, F(m(n)?.btn?.remove || "Hapus"), 1)) : V("", !0)
4101
4100
  ]),
4102
- j.value ? (f(), k("div", Xr, [
4103
- i("p", _r, [
4101
+ j.value ? (f(), k("div", Qr, [
4102
+ i("p", Xr, [
4104
4103
  $[1] || ($[1] = i("b", { class: "jsgd-text-slate-900 dark:jsgd-text-slate-100" }, "Name:", -1)),
4105
4104
  te(" " + F(j.value), 1)
4106
4105
  ]),
4107
- d.value ? (f(), k("p", el, [
4106
+ d.value ? (f(), k("p", _r, [
4108
4107
  $[2] || ($[2] = i("b", { class: "jsgd-text-slate-900 dark:jsgd-text-slate-100" }, "Size:", -1)),
4109
4108
  te(" " + F(d.value), 1)
4110
4109
  ])) : V("", !0),
4111
- g.value ? (f(), k("p", tl, [
4110
+ g.value ? (f(), k("p", el, [
4112
4111
  $[3] || ($[3] = i("b", { class: "jsgd-text-slate-900 dark:jsgd-text-slate-100" }, "Type:", -1)),
4113
4112
  te(" " + F(g.value), 1)
4114
4113
  ])) : V("", !0)
4115
4114
  ])) : V("", !0)
4116
4115
  ]),
4117
- i("div", sl, [
4116
+ i("div", tl, [
4118
4117
  (f(!0), k(ee, null, de(y.value, (A, S) => (f(), k("p", {
4119
4118
  key: S,
4120
4119
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
@@ -4123,19 +4122,19 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
4123
4122
  ], 2)
4124
4123
  ]));
4125
4124
  }
4126
- }), dl = { class: "jsgd-bg-white jsgd-border-1 jsgd-border-solid jsgd-border-slate-200 jsgd-rounded-lg jsgd-p-6 jsgd-shadow-xl jsgd-transition-all jsgd-duration-200 jsgd-animate-[fadeIn_400ms_ease-out] jsgd-mb-4 jsgd-z-10 dark:jsgd-bg-slate-800 dark:jsgd-border-slate-700" }, rl = {
4125
+ }), al = { class: "jsgd-bg-white jsgd-border-1 jsgd-border-solid jsgd-border-slate-200 jsgd-rounded-lg jsgd-p-6 jsgd-shadow-xl jsgd-transition-all jsgd-duration-200 jsgd-animate-[fadeIn_400ms_ease-out] jsgd-mb-4 jsgd-z-10 dark:jsgd-bg-slate-800 dark:jsgd-border-slate-700" }, dl = {
4127
4126
  key: 0,
4128
4127
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mb-4 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
4129
- }, ll = { class: "jsgd-relative jsgd-mb-2" }, nl = {
4128
+ }, rl = { class: "jsgd-relative jsgd-mb-2" }, ll = {
4130
4129
  key: 0,
4131
4130
  class: "jsgd-absolute jsgd-list-none jsgd-z-200 jsgd-w-full jsgd-px-2 jsgd-mx-0 jsgd-mt-[-1px] jsgd-py-2 jsgd-bg-white/95 jsgd-border-1 jsgd-border-solid jsgd-border-blue-500 jsgd-border-t-0 jsgd-rounded-b-lg jsgd-shadow-xl jsgd-max-h-64 jsgd-overflow-y-auto jsgd-backdrop-blur-md jsgd-box-border dark:jsgd-bg-slate-800/95 dark:jsgd-border-blue-400"
4132
- }, il = ["onMousedown"], ol = { class: "jsgd-flex jsgd-items-center jsgd-justify-between jsgd-gap-4" }, gl = { class: "jsgd-truncate" }, ul = {
4131
+ }, nl = ["onMousedown"], il = { class: "jsgd-flex jsgd-items-center jsgd-justify-between jsgd-gap-4" }, ol = { class: "jsgd-truncate" }, gl = {
4133
4132
  key: 0,
4134
4133
  class: "jsgd-i-mdi-check jsgd-w-5 jsgd-h-5 jsgd-text-blue-500 jsgd-shrink-0 jsgd-transition-all jsgd-duration-200 dark:jsgd-text-blue-400"
4135
- }, cl = { class: "jsgd-flex jsgd-items-center jsgd-gap-3 jsgd-font-medium jsgd-text-slate-900 jsgd-cursor-pointer dark:jsgd-text-slate-100 jsgd-group" }, ml = ["value"], jl = {
4134
+ }, ul = { class: "jsgd-flex jsgd-items-center jsgd-gap-3 jsgd-font-medium jsgd-text-slate-900 jsgd-cursor-pointer dark:jsgd-text-slate-100 jsgd-group" }, cl = ["value"], ml = {
4136
4135
  key: 0,
4137
4136
  class: "jsgd-mt-4 jsgd-pt-4 jsgd-px-4 jsgd-border-1.5 jsgd-rounded-2xl jsgd-border-solid jsgd-border-blue-500 jsgd-animate-[revealContent_400ms_ease-out] jsgd-overflow-visible dark:jsgd-border-blue-400"
4138
- }, fl = /* @__PURE__ */ oe({
4137
+ }, jl = /* @__PURE__ */ oe({
4139
4138
  __name: "GroupRenderer",
4140
4139
  props: {
4141
4140
  id: { default: fe() },
@@ -4155,7 +4154,7 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
4155
4154
  setup(t, { emit: o }) {
4156
4155
  const e = o, u = t, c = le("TableComponents", {
4157
4156
  labels: z(me[u.lang ?? "en"])
4158
- }).labels, { selectedOption: j, multiSelected: d, errorPush: g, errorRemove: p } = Ed(
4157
+ }).labels, { selectedOption: j, multiSelected: d, errorPush: g, errorRemove: b } = Id(
4159
4158
  u,
4160
4159
  e
4161
4160
  ), y = z(!1);
@@ -4166,12 +4165,12 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
4166
4165
  i("label", {
4167
4166
  class: H(["jsgd-block jsgd-text-sm jsgd-font-medium jsgd-mb-2 jsgd-text-slate-900 jsgd-transition-colors jsgd-duration-200 dark:jsgd-text-slate-100", { "jsgd-text-red-500 dark:jsgd-text-red-400": u.error }])
4168
4167
  }, F(t.label), 3),
4169
- i("div", dl, [
4170
- u.error ? (f(), k("p", rl, F(u.error), 1)) : V("", !0),
4168
+ i("div", al, [
4169
+ u.error ? (f(), k("p", dl, F(u.error), 1)) : V("", !0),
4171
4170
  t.typeDesign === "select" || t.typeDesign === "dropdown" ? (f(), k(ee, { key: 1 }, [
4172
- i("div", ll, [
4171
+ i("div", rl, [
4173
4172
  i("div", {
4174
- onClick: l[0] || (l[0] = (b) => y.value = !y.value),
4173
+ onClick: l[0] || (l[0] = (p) => y.value = !y.value),
4175
4174
  class: H(["jsgd-w-full jsgd-py-3 jsgd-pl-4 jsgd-pr-4 jsgd-text-base jsgd-text-slate-900 jsgd-bg-white jsgd-border-1 jsgd-border-solid jsgd-border-slate-300 jsgd-rounded-lg jsgd-transition-all jsgd-duration-200 jsgd-box-border jsgd-cursor-pointer jsgd-flex jsgd-items-center jsgd-justify-between focus-visible:jsgd-outline-none focus-visible:jsgd-border-blue-500 focus-visible:jsgd-ring-4 focus-visible:jsgd-ring-blue-500/20 dark:jsgd-bg-slate-800 dark:jsgd-text-slate-100 dark:jsgd-border-slate-600 dark:focus-visible:jsgd-border-blue-400 dark:focus-visible:jsgd-ring-blue-400/25", { "jsgd-rounded-b-none": y.value }])
4176
4175
  }, [
4177
4176
  i("span", {
@@ -4188,54 +4187,54 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
4188
4187
  "leave-to-class": "jsgd-opacity-0"
4189
4188
  }, {
4190
4189
  default: ce(() => [
4191
- y.value ? (f(), k("ul", nl, [
4190
+ y.value ? (f(), k("ul", ll, [
4192
4191
  t.required ? V("", !0) : (f(), k("li", {
4193
4192
  key: 0,
4194
- onMousedown: l[1] || (l[1] = Ne((b) => r(null), ["prevent"])),
4193
+ onMousedown: l[1] || (l[1] = Ne((p) => r(null), ["prevent"])),
4195
4194
  class: "jsgd-px-4 jsgd-py-3 jsgd-cursor-pointer jsgd-transition-colors jsgd-duration-200 hover:jsgd-bg-slate-50 dark:hover:jsgd-bg-slate-700"
4196
4195
  }, F(m(c)?.noSelection), 33)),
4197
- (f(!0), k(ee, null, de(t.options, (b, x) => (f(), k("li", {
4196
+ (f(!0), k(ee, null, de(t.options, (p, x) => (f(), k("li", {
4198
4197
  key: x,
4199
4198
  onMousedown: Ne((w) => r(x), ["prevent"]),
4200
4199
  class: H(["jsgd-px-4 jsgd-py-3 jsgd-cursor-pointer jsgd-transition-colors jsgd-duration-200 hover:jsgd-bg-slate-50 dark:hover:jsgd-bg-slate-700", {
4201
4200
  "jsgd-bg-blue-50 jsgd-text-blue-700 jsgd-font-medium dark:jsgd-bg-blue-900/30 dark:jsgd-text-blue-300": m(j) === x
4202
4201
  }])
4203
4202
  }, [
4204
- i("div", ol, [
4205
- i("span", gl, F(u.optionsLabels?.[x] ?? x), 1),
4206
- m(j) === x ? (f(), k("span", ul)) : V("", !0)
4203
+ i("div", il, [
4204
+ i("span", ol, F(u.optionsLabels?.[x] ?? x), 1),
4205
+ m(j) === x ? (f(), k("span", gl)) : V("", !0)
4207
4206
  ])
4208
- ], 42, il))), 128))
4207
+ ], 42, nl))), 128))
4209
4208
  ])) : V("", !0)
4210
4209
  ]),
4211
4210
  _: 1
4212
4211
  })
4213
4212
  ]),
4214
- m(j) && t.options[m(j)] ? (f(!0), k(ee, { key: 0 }, de(t.options[m(j)], (b, x) => (f(), Z(m(ft), {
4213
+ m(j) && t.options[m(j)] ? (f(!0), k(ee, { key: 0 }, de(t.options[m(j)], (p, x) => (f(), Z(m(ft), {
4215
4214
  class: "jsgd-mt-6 jsgd-animate-[revealContent_400ms_ease-out]",
4216
4215
  "form-data": u.formData,
4217
4216
  errors: t.errors,
4218
4217
  lang: t.lang ?? "en",
4219
4218
  "onUpdate:modelValue": (w, $) => a.$emit("update:model-value", w, $),
4220
4219
  "onPush:errors": m(g),
4221
- "onRemove:errors": m(p),
4220
+ "onRemove:errors": m(b),
4222
4221
  onMultiSelectedChange: (w, $) => a.$emit("multi-selected-change", w, $),
4223
4222
  onSelectedOptionChange: (w, $) => a.$emit("selected-option-change", w, $),
4224
4223
  key: x,
4225
- field: b,
4224
+ field: p,
4226
4225
  "field-key": x
4227
4226
  }, null, 8, ["form-data", "errors", "lang", "onUpdate:modelValue", "onPush:errors", "onRemove:errors", "onMultiSelectedChange", "onSelectedOptionChange", "field", "field-key"]))), 128)) : V("", !0)
4228
- ], 64)) : t.typeDesign === "cekbox" ? (f(!0), k(ee, { key: 2 }, de(t.options, (b, x) => (f(), k("div", {
4227
+ ], 64)) : t.typeDesign === "cekbox" ? (f(!0), k(ee, { key: 2 }, de(t.options, (p, x) => (f(), k("div", {
4229
4228
  key: x,
4230
4229
  class: "jsgd-mb-4 jsgd-p-4 jsgd-border-1 jsgd-border-solid jsgd-border-slate-200 jsgd-rounded-lg jsgd-transition-all jsgd-duration-200 has-[:checked]:jsgd-border-blue-500 has-[:checked]:jsgd-bg-blue-50/50 dark:jsgd-border-slate-700 dark:has-[:checked]:jsgd-border-blue-400 dark:has-[:checked]:jsgd-bg-blue-900/20 last:jsgd-mb-0"
4231
4230
  }, [
4232
- i("label", cl, [
4231
+ i("label", ul, [
4233
4232
  Dt(i("input", {
4234
4233
  type: "checkbox",
4235
4234
  "onUpdate:modelValue": l[2] || (l[2] = (w) => za(d) ? d.value = w : null),
4236
4235
  value: x,
4237
4236
  class: "jsgd-opacity-0 jsgd-w-0 jsgd-h-0 jsgd-absolute peer"
4238
- }, null, 8, ml), [
4237
+ }, null, 8, cl), [
4239
4238
  [Fa, m(d)]
4240
4239
  ]),
4241
4240
  l[3] || (l[3] = i("div", { class: "jsgd-w-5 jsgd-h-5 jsgd-border-1.5 jsgd-border-solid jsgd-border-slate-700 jsgd-rounded jsgd-bg-white jsgd-transition-all jsgd-duration-200 jsgd-shrink-0 jsgd-flex jsgd-items-center jsgd-justify-center peer-checked:jsgd-bg-blue-500 peer-checked:jsgd-border-blue-500 dark:jsgd-border-slate-500 dark:jsgd-bg-slate-800 dark:peer-checked:jsgd-bg-blue-500" }, [
@@ -4243,8 +4242,8 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
4243
4242
  ], -1)),
4244
4243
  te(" " + F(u.optionsLabels?.[x] ?? x), 1)
4245
4244
  ]),
4246
- m(d).includes(x) ? (f(), k("div", jl, [
4247
- (f(!0), k(ee, null, de(b, (w, $) => (f(), Z(m(ft), {
4245
+ m(d).includes(x) ? (f(), k("div", ml, [
4246
+ (f(!0), k(ee, null, de(p, (w, $) => (f(), Z(m(ft), {
4248
4247
  key: $,
4249
4248
  field: w,
4250
4249
  "field-key": $,
@@ -4253,7 +4252,7 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
4253
4252
  lang: t.lang ?? "en",
4254
4253
  "onUpdate:modelValue": (A, S) => a.$emit("update:model-value", A, S),
4255
4254
  "onPush:errors": m(g),
4256
- "onRemove:errors": m(p),
4255
+ "onRemove:errors": m(b),
4257
4256
  onMultiSelectedChange: (A, S) => a.$emit("multi-selected-change", A, S),
4258
4257
  onSelectedOptionChange: (A, S) => a.$emit("selected-option-change", A, S)
4259
4258
  }, null, 8, ["field", "field-key", "form-data", "errors", "lang", "onUpdate:modelValue", "onPush:errors", "onRemove:errors", "onMultiSelectedChange", "onSelectedOptionChange"]))), 128))
@@ -4262,13 +4261,13 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
4262
4261
  ])
4263
4262
  ]));
4264
4263
  }
4265
- }), hl = { class: "jsgd-w-full jsgd-mb-4" }, bl = ["for"], pl = {
4264
+ }), fl = { class: "jsgd-w-full jsgd-mb-4" }, hl = ["for"], bl = {
4266
4265
  key: 0,
4267
4266
  class: "jsgd-grid jsgd-grid-cols-2 jsgd-gap-4 jsgd-mb-6 min-[480px]:jsgd-grid-cols-3 md:jsgd-grid-cols-4 lg:jsgd-grid-cols-5"
4268
- }, vl = ["src", "alt"], xl = ["onClick"], yl = {
4267
+ }, pl = ["src", "alt"], vl = ["onClick"], xl = {
4269
4268
  key: 1,
4270
4269
  class: "jsgd-text-center jsgd-py-8 jsgd-px-4 jsgd-text-slate-400 dark:jsgd-text-slate-500"
4271
- }, wl = { class: "jsgd-text-center jsgd-mt-4" }, kl = ["id", "disabled"], Sl = ["for"], $l = { class: "jsgd-mt-2 jsgd-flex jsgd-flex-col jsgd-gap-1" }, Al = /* @__PURE__ */ oe({
4270
+ }, yl = { class: "jsgd-text-center jsgd-mt-4" }, wl = ["id", "disabled"], kl = ["for"], Sl = { class: "jsgd-mt-2 jsgd-flex jsgd-flex-col jsgd-gap-1" }, $l = /* @__PURE__ */ oe({
4272
4271
  __name: "ImageArrayInput",
4273
4272
  props: {
4274
4273
  id: { default: fe },
@@ -4286,7 +4285,7 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
4286
4285
  setup(t, { emit: o }) {
4287
4286
  const e = t, u = o, c = le("TableComponents", {
4288
4287
  labels: z(me[e.lang ?? "en"])
4289
- }).labels, j = le("TableComponents")?.ShowAlert, d = z([]), g = z([]), p = _(() => g.value.length > 0 ? g.value : typeof e.error == "string" ? [e.error] : Array.isArray(e.error) ? e.error : []), y = _(() => e.disabled ? !0 : e.validate?.maxFiles && e.modelValue && e.modelValue.length >= e.validate.maxFiles), r = _(() => {
4288
+ }).labels, j = le("TableComponents")?.ShowAlert, d = z([]), g = z([]), b = _(() => g.value.length > 0 ? g.value : typeof e.error == "string" ? [e.error] : Array.isArray(e.error) ? e.error : []), y = _(() => e.disabled ? !0 : e.validate?.maxFiles && e.modelValue && e.modelValue.length >= e.validate.maxFiles), r = _(() => {
4290
4289
  if (!e.validate) return "";
4291
4290
  const S = e.validate, C = [];
4292
4291
  if (S.maxFiles && C.push(E("imageMaxFiles", { max: S.maxFiles }, e.lang ?? "en")), S.allowedTypes && C.push(E("imageType", {}, e.lang ?? "en") + ` (${S.allowedTypes.join(", ")})`), S.maxSize && C.push(E("imageMaxSize", { max: S.maxSize }, e.lang ?? "en")), S.pixel) {
@@ -4381,7 +4380,7 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
4381
4380
  URL.revokeObjectURL(O);
4382
4381
  }
4383
4382
  }
4384
- async function b(S) {
4383
+ async function p(S) {
4385
4384
  if (e.disabled) return;
4386
4385
  const C = S.target, O = C.files;
4387
4386
  if (!O || O.length === 0) return;
@@ -4483,10 +4482,10 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
4483
4482
  }, O.onerror = () => C({ width: 0, height: 0 }), O.readAsDataURL(S);
4484
4483
  });
4485
4484
  }
4486
- return (S, C) => (f(), k("div", hl, [
4485
+ return (S, C) => (f(), k("div", fl, [
4487
4486
  i("label", {
4488
4487
  for: t.id,
4489
- class: H(["jsgd-inline-flex jsgd-items-center jsgd-gap-2 jsgd-text-sm jsgd-font-medium jsgd-mb-2 jsgd-text-slate-900 jsgd-transition-colors jsgd-duration-200 dark:jsgd-text-slate-100", { "jsgd-text-red-500 dark:jsgd-text-red-400": p.value.length !== 0 }])
4488
+ class: H(["jsgd-inline-flex jsgd-items-center jsgd-gap-2 jsgd-text-sm jsgd-font-medium jsgd-mb-2 jsgd-text-slate-900 jsgd-transition-colors jsgd-duration-200 dark:jsgd-text-slate-100", { "jsgd-text-red-500 dark:jsgd-text-red-400": b.value.length !== 0 }])
4490
4489
  }, [
4491
4490
  te(F(t.label) + " ", 1),
4492
4491
  r.value ? (f(), Z(m(xe), {
@@ -4499,11 +4498,11 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
4499
4498
  ])]),
4500
4499
  _: 1
4501
4500
  }, 8, ["text"])) : V("", !0)
4502
- ], 10, bl),
4501
+ ], 10, hl),
4503
4502
  i("div", {
4504
- class: H(["jsgd-bg-slate-50 jsgd-border-2 jsgd-border-dashed jsgd-border-slate-300 jsgd-rounded-xl jsgd-p-6 jsgd-transition-colors jsgd-duration-200 hover:jsgd-bg-slate-100 hover:jsgd-border-blue-500 dark:jsgd-bg-slate-800 dark:jsgd-border-slate-600 dark:hover:jsgd-bg-slate-700 dark:hover:jsgd-border-blue-400", { "jsgd-border-red-300 dark:jsgd-border-red-800": p.value.length !== 0 }])
4503
+ class: H(["jsgd-bg-slate-50 jsgd-border-2 jsgd-border-dashed jsgd-border-slate-300 jsgd-rounded-xl jsgd-p-6 jsgd-transition-colors jsgd-duration-200 hover:jsgd-bg-slate-100 hover:jsgd-border-blue-500 dark:jsgd-bg-slate-800 dark:jsgd-border-slate-600 dark:hover:jsgd-bg-slate-700 dark:hover:jsgd-border-blue-400", { "jsgd-border-red-300 dark:jsgd-border-red-800": b.value.length !== 0 }])
4505
4504
  }, [
4506
- d.value.length > 0 ? (f(), k("div", pl, [
4505
+ d.value.length > 0 ? (f(), k("div", bl, [
4507
4506
  (f(!0), k(ee, null, de(d.value, (O, R) => (f(), k("div", {
4508
4507
  key: R,
4509
4508
  class: "jsgd-relative jsgd-rounded-lg jsgd-overflow-hidden jsgd-shadow-sm jsgd-transition-all jsgd-duration-200 jsgd-group hover:jsgd-scale-105 hover:jsgd-shadow-lg jsgd-animate-[popIn_0.4s_ease-out_backwards]",
@@ -4513,56 +4512,56 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
4513
4512
  src: O,
4514
4513
  alt: `${t.previewAlt} ${R + 1}`,
4515
4514
  class: "jsgd-block jsgd-w-full jsgd-aspect-square jsgd-object-cover jsgd-bg-white dark:jsgd-bg-transparent"
4516
- }, null, 8, vl),
4515
+ }, null, 8, pl),
4517
4516
  t.disabled ? V("", !0) : (f(), k("button", {
4518
4517
  key: 0,
4519
4518
  onClick: (P) => x(R),
4520
4519
  class: "jsgd-absolute jsgd-top-2 jsgd-right-2 jsgd-w-7 jsgd-h-7 jsgd-pb-[5px] jsgd-flex jsgd-items-center jsgd-justify-center jsgd-text-xl jsgd-font-bold jsgd-leading-none jsgd-text-white jsgd-bg-red-500/80 jsgd-backdrop-blur-sm jsgd-rounded-full jsgd-border-2 jsgd-border-white jsgd-cursor-pointer jsgd-opacity-0 jsgd-scale-50 jsgd-transition-all jsgd-duration-200 hover:jsgd-bg-red-600 hover:jsgd-scale-110 hover:jsgd-rotate-90 group-hover:jsgd-opacity-100 group-hover:jsgd-scale-100",
4521
4520
  "aria-label": "Remove image"
4522
- }, " × ", 8, xl))
4521
+ }, " × ", 8, vl))
4523
4522
  ], 4))), 128))
4524
- ])) : (f(), k("div", yl, [
4523
+ ])) : (f(), k("div", xl, [
4525
4524
  i("p", null, F(m(c)?.message?.noItemSelected), 1)
4526
4525
  ])),
4527
- i("div", wl, [
4526
+ i("div", yl, [
4528
4527
  i("input", {
4529
4528
  id: t.id,
4530
4529
  type: "file",
4531
4530
  accept: "image/*",
4532
4531
  multiple: "",
4533
- onChange: b,
4532
+ onChange: p,
4534
4533
  class: "jsgd-hidden",
4535
4534
  disabled: e.disabled
4536
- }, null, 40, kl),
4535
+ }, null, 40, wl),
4537
4536
  i("label", {
4538
4537
  for: t.id,
4539
4538
  class: H(["jsgd-inline-flex jsgd-items-center jsgd-gap-2 jsgd-px-5 jsgd-py-2.5 jsgd-font-medium jsgd-border-none jsgd-rounded-lg jsgd-text-white jsgd-bg-blue-500 jsgd-cursor-pointer jsgd-transition-all jsgd-duration-200 hover:jsgd-bg-blue-600 hover:jsgd-scale-105 hover:jsgd-shadow-lg disabled:jsgd-bg-slate-100 disabled:jsgd-text-slate-500 disabled:jsgd-cursor-not-allowed dark:jsgd-bg-blue-600 dark:hover:jsgd-bg-blue-500 dark:disabled:jsgd-bg-slate-700 dark:disabled:jsgd-text-slate-400 before:jsgd-content-['+'] before:jsgd-text-lg before:jsgd-leading-none", {
4540
4539
  "jsgd-bg-slate-100 jsgd-text-slate-500 jsgd-cursor-not-allowed dark:jsgd-bg-slate-700 dark:jsgd-text-slate-400": y.value
4541
4540
  }])
4542
- }, F(m(c)?.btn?.add), 11, Sl)
4541
+ }, F(m(c)?.btn?.add), 11, kl)
4543
4542
  ])
4544
4543
  ], 2),
4545
- i("div", $l, [
4546
- p.value.length > 0 ? (f(!0), k(ee, { key: 0 }, de(p.value, (O, R) => (f(), k("p", {
4544
+ i("div", Sl, [
4545
+ b.value.length > 0 ? (f(!0), k(ee, { key: 0 }, de(b.value, (O, R) => (f(), k("p", {
4547
4546
  key: R,
4548
4547
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
4549
4548
  }, F(O), 1))), 128)) : V("", !0)
4550
4549
  ])
4551
4550
  ]));
4552
4551
  }
4553
- }), Tl = { class: "jsgd-w-full" }, Ml = ["for"], Cl = {
4552
+ }), Al = { class: "jsgd-w-full" }, Tl = ["for"], Ml = {
4554
4553
  class: "jsgd-p-3 jsgd-flex jsgd-flex-col jsgd-gap-3 md:jsgd-p-4 md:jsgd-grid md:jsgd-grid-cols-2 md:jsgd-gap-x-6 md:jsgd-gap-y-4 md:jsgd-items-start",
4555
4554
  style: { "grid-template-areas": "'preview info' 'preview buttons'" }
4556
- }, Dl = ["src", "alt"], Il = ["id", "disabled"], El = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 md:jsgd-contents" }, Vl = {
4555
+ }, Cl = ["src", "alt"], Dl = ["id", "disabled"], Il = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 md:jsgd-contents" }, El = {
4557
4556
  class: "jsgd-w-full jsgd-box-border jsgd-grid jsgd-grid-cols-[auto_1fr] jsgd-gap-x-4 jsgd-gap-y-1 jsgd-p-3 jsgd-bg-blue-50 jsgd-rounded-lg jsgd-text-sm jsgd-animate-[slideUpFade_400ms_ease-out] dark:jsgd-bg-blue-900/20",
4558
4557
  style: { "grid-area": "info" }
4559
- }, Ll = { class: "jsgd-text-slate-900 jsgd-font-medium jsgd-text-right jsgd-break-words dark:jsgd-text-slate-100" }, zl = { class: "jsgd-text-slate-900 jsgd-font-medium jsgd-text-right jsgd-break-words dark:jsgd-text-slate-100" }, Fl = { class: "jsgd-text-slate-900 jsgd-font-medium jsgd-text-right jsgd-break-words dark:jsgd-text-slate-100" }, Ol = { class: "jsgd-text-slate-900 jsgd-font-medium jsgd-text-right jsgd-break-words dark:jsgd-text-slate-100" }, Pl = {
4558
+ }, Vl = { class: "jsgd-text-slate-900 jsgd-font-medium jsgd-text-right jsgd-break-words dark:jsgd-text-slate-100" }, Ll = { class: "jsgd-text-slate-900 jsgd-font-medium jsgd-text-right jsgd-break-words dark:jsgd-text-slate-100" }, zl = { class: "jsgd-text-slate-900 jsgd-font-medium jsgd-text-right jsgd-break-words dark:jsgd-text-slate-100" }, Fl = { class: "jsgd-text-slate-900 jsgd-font-medium jsgd-text-right jsgd-break-words dark:jsgd-text-slate-100" }, Ol = {
4560
4559
  class: "jsgd-flex jsgd-justify-center jsgd-gap-3 jsgd-w-full md:jsgd-self-end",
4561
4560
  style: { "grid-area": "buttons" }
4562
- }, Bl = ["for"], Rl = { class: "jsgd-px-1" }, Ul = {
4561
+ }, Pl = ["for"], Bl = { class: "jsgd-px-1" }, Rl = {
4563
4562
  key: 1,
4564
4563
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
4565
- }, ql = /* @__PURE__ */ oe({
4564
+ }, Ul = /* @__PURE__ */ oe({
4566
4565
  __name: "ImageInput",
4567
4566
  props: {
4568
4567
  id: { default: fe() },
@@ -4580,9 +4579,9 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
4580
4579
  setup(t, { emit: o }) {
4581
4580
  const e = t, n = le("TableComponents", {
4582
4581
  labels: z(me[e.lang ?? "en"])
4583
- }).labels, c = le("TableComponents")?.ShowAlert, j = o, d = z(""), g = z(""), p = z(""), y = z(""), r = z(null), a = z(null), l = z(
4582
+ }).labels, c = le("TableComponents")?.ShowAlert, j = o, d = z(""), g = z(""), b = z(""), y = z(""), r = z(null), a = z(null), l = z(
4584
4583
  e.previewImage || "https://static.vecteezy.com/system/resources/thumbnails/005/720/408/small_2x/crossed-image-icon-picture-not-available-delete-picture-symbol-free-vector.jpg"
4585
- ), b = z(!0);
4584
+ ), p = z(!0);
4586
4585
  z(!0);
4587
4586
  const x = z(!0), w = z([]), $ = _(() => {
4588
4587
  if (e.validate) {
@@ -4613,14 +4612,14 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
4613
4612
  () => e.modelValue,
4614
4613
  (M) => {
4615
4614
  if (M instanceof File) {
4616
- d.value = M.name, a.value = M.size / 1024, p.value = `${a.value.toFixed(2)} KB`;
4615
+ d.value = M.name, a.value = M.size / 1024, b.value = `${a.value.toFixed(2)} KB`;
4617
4616
  const v = new FileReader();
4618
4617
  v.onload = (T) => {
4619
4618
  const L = T.target?.result;
4620
4619
  l.value = L;
4621
4620
  const U = new Image();
4622
4621
  U.onload = () => {
4623
- g.value = `${U.width} x ${U.height}`, y.value = Ya(U.width, U.height), r.value = { width: U.width, height: U.height }, R();
4622
+ g.value = `${U.width} x ${U.height}`, y.value = Za(U.width, U.height), r.value = { width: U.width, height: U.height }, R();
4624
4623
  }, U.src = L;
4625
4624
  }, v.readAsDataURL(M);
4626
4625
  } else if (typeof M == "string") {
@@ -4741,7 +4740,7 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
4741
4740
  const v = e.modelValue.name.split(".").pop()?.toLowerCase(), T = e.validate.allowedTypes.map((U) => U.toLowerCase());
4742
4741
  v && T.includes(v) || M.push(E("imageType", {}, e.lang ?? "en") + ` (${T.join(", ")})`);
4743
4742
  }
4744
- if (e.validate.maxSize && (b.value = a.value <= e.validate.maxSize, b.value || M.push(E("imageMaxSize", { max: e.validate.maxSize }, e.lang ?? "en"))), e.validate.pixel && r.value) {
4743
+ if (e.validate.maxSize && (p.value = a.value <= e.validate.maxSize, p.value || M.push(E("imageMaxSize", { max: e.validate.maxSize }, e.lang ?? "en"))), e.validate.pixel && r.value) {
4745
4744
  const v = e.validate.pixel, T = r.value.width, L = r.value.height;
4746
4745
  if (("minWidth" in v || "maxWidth" in v || "minHeight" in v || "maxHeight" in v) && (v.minWidth && T < v.minWidth && M.push(E("imageMinWidth", { min: v.minWidth }, e.lang ?? "en")), v.minHeight && L < v.minHeight && M.push(E("imageMinHeight", { min: v.minHeight }, e.lang ?? "en")), v.maxWidth && T > v.maxWidth && M.push(E("imageMaxWidth", { max: v.maxWidth }, e.lang ?? "en")), v.maxHeight && L > v.maxHeight && M.push(E("imageMaxHeight", { max: v.maxHeight }, e.lang ?? "en"))), "width" in v || "height" in v) {
4747
4746
  const U = !v.width || T === v.width, re = !v.height || L === v.height;
@@ -4778,9 +4777,9 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
4778
4777
  w.value = M, M.length ? j("push:error", M, e.id) : j("remove:error", e.id);
4779
4778
  }
4780
4779
  function P() {
4781
- d.value = "", g.value = "", p.value = "", y.value = "", w.value = [], l.value = e.previewImage || "https://static.vecteezy.com/system/resources/thumbnails/005/720/408/small_2x/crossed-image-icon-picture-not-available-delete-picture-symbol-free-vector.jpg";
4780
+ d.value = "", g.value = "", b.value = "", y.value = "", w.value = [], l.value = e.previewImage || "https://static.vecteezy.com/system/resources/thumbnails/005/720/408/small_2x/crossed-image-icon-picture-not-available-delete-picture-symbol-free-vector.jpg";
4782
4781
  }
4783
- return (M, v) => (f(), k("div", Tl, [
4782
+ return (M, v) => (f(), k("div", Al, [
4784
4783
  i("label", {
4785
4784
  for: t.id,
4786
4785
  class: H(["jsgd-inline-flex jsgd-items-center jsgd-gap-2 jsgd-text-sm jsgd-font-medium jsgd-mb-2 jsgd-text-slate-900 jsgd-transition-colors jsgd-duration-200 dark:jsgd-text-slate-100", { "has-error": w.value.length !== 0 || t.error }])
@@ -4796,19 +4795,19 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
4796
4795
  ])]),
4797
4796
  _: 1
4798
4797
  }, 8, ["text"])) : V("", !0)
4799
- ], 10, Ml),
4798
+ ], 10, Tl),
4800
4799
  i("div", {
4801
4800
  class: H(["jsgd-bg-slate-50 jsgd-border-1 jsgd-border-solid jsgd-border-slate-200 jsgd-rounded-xl jsgd-shadow-sm jsgd-mb-4 jsgd-transition-colors jsgd-duration-200 dark:jsgd-bg-slate-800/50 dark:jsgd-border-slate-700", {
4802
4801
  "jsgd-border-red-400 dark:jsgd-border-red-500": w.value.length !== 0 || t.error
4803
4802
  }])
4804
4803
  }, [
4805
- i("div", Cl, [
4804
+ i("div", Ml, [
4806
4805
  i("img", {
4807
4806
  src: l.value,
4808
4807
  alt: t.previewAlt,
4809
4808
  class: "jsgd-block jsgd-w-full jsgd-aspect-video jsgd-object-contain jsgd-rounded-lg jsgd-border-1 jsgd-border-solid jsgd-border-slate-200 jsgd-shadow-sm jsgd-transition-transform jsgd-duration-200 hover:jsgd-scale-105 md:jsgd-h-full dark:jsgd-border-slate-700",
4810
4809
  style: { "grid-area": "preview" }
4811
- }, null, 8, Dl),
4810
+ }, null, 8, Cl),
4812
4811
  i("input", {
4813
4812
  id: t.id,
4814
4813
  type: "file",
@@ -4816,31 +4815,31 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
4816
4815
  onChange: C,
4817
4816
  class: "jsgd-hidden",
4818
4817
  disabled: e.disabled
4819
- }, null, 40, Il),
4820
- i("div", El, [
4821
- i("div", Vl, [
4818
+ }, null, 40, Dl),
4819
+ i("div", Il, [
4820
+ i("div", El, [
4822
4821
  d.value ? (f(), k(ee, { key: 0 }, [
4823
4822
  v[1] || (v[1] = i("span", { class: "jsgd-font-medium jsgd-text-slate-600 dark:jsgd-text-slate-400" }, "Name", -1)),
4824
- i("span", Ll, F(d.value.length > 20 ? d.value.slice(0, 20) + "..." : d.value), 1)
4823
+ i("span", Vl, F(d.value.length > 20 ? d.value.slice(0, 20) + "..." : d.value), 1)
4825
4824
  ], 64)) : V("", !0),
4826
4825
  g.value ? (f(), k(ee, { key: 1 }, [
4827
4826
  v[2] || (v[2] = i("span", { class: "jsgd-font-medium jsgd-text-slate-600 dark:jsgd-text-slate-400" }, "Pixels", -1)),
4828
- i("span", zl, F(g.value), 1)
4827
+ i("span", Ll, F(g.value), 1)
4829
4828
  ], 64)) : V("", !0),
4830
- p.value ? (f(), k(ee, { key: 2 }, [
4829
+ b.value ? (f(), k(ee, { key: 2 }, [
4831
4830
  v[3] || (v[3] = i("span", { class: "jsgd-font-medium jsgd-text-slate-600 dark:jsgd-text-slate-400" }, "Size", -1)),
4832
- i("span", Fl, F(p.value), 1)
4831
+ i("span", zl, F(b.value), 1)
4833
4832
  ], 64)) : V("", !0),
4834
4833
  y.value ? (f(), k(ee, { key: 3 }, [
4835
4834
  v[4] || (v[4] = i("span", { class: "jsgd-font-medium jsgd-text-slate-600 dark:jsgd-text-slate-400" }, "Ratio", -1)),
4836
- i("span", Ol, F(y.value), 1)
4835
+ i("span", Fl, F(y.value), 1)
4837
4836
  ], 64)) : V("", !0)
4838
4837
  ]),
4839
- i("div", Pl, [
4838
+ i("div", Ol, [
4840
4839
  i("label", {
4841
4840
  for: t.id,
4842
4841
  class: H(["jsgd-flex-grow jsgd-inline-flex jsgd-items-center jsgd-justify-center jsgd-gap-2 jsgd-px-4 jsgd-py-2.5 jsgd-font-medium jsgd-rounded-lg jsgd-border-none jsgd-cursor-pointer jsgd-transition-all jsgd-duration-200 hover:-jsgd-translate-y-0.5 hover:jsgd-shadow-md disabled:jsgd-opacity-60 disabled:jsgd-cursor-not-allowed jsgd-bg-blue-600 jsgd-text-white hover:jsgd-bg-blue-700 dark:jsgd-bg-blue-500 dark:hover:jsgd-bg-blue-400", { "jsgd-opacity-60 jsgd-cursor-not-allowed": e.disabled }])
4843
- }, F(t.modelValue ? m(n)?.btn?.change : m(n)?.btn?.select), 11, Bl),
4842
+ }, F(t.modelValue ? m(n)?.btn?.change : m(n)?.btn?.select), 11, Pl),
4844
4843
  t.modelValue && !e.disabled ? (f(), k("button", {
4845
4844
  key: 0,
4846
4845
  type: "button",
@@ -4851,12 +4850,12 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
4851
4850
  ])
4852
4851
  ])
4853
4852
  ], 2),
4854
- i("div", Rl, [
4853
+ i("div", Bl, [
4855
4854
  w.value.length !== 0 ? (f(!0), k(ee, { key: 0 }, de(w.value, (T, L) => (f(), k("p", {
4856
4855
  key: L,
4857
4856
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
4858
4857
  }, F(T), 1))), 128)) : V("", !0),
4859
- typeof e.error == "string" && w.value.length === 0 ? (f(), k("p", Ul, F(e.error), 1)) : V("", !0),
4858
+ typeof e.error == "string" && w.value.length === 0 ? (f(), k("p", Rl, F(e.error), 1)) : V("", !0),
4860
4859
  Array.isArray(e.error) && w.value.length === 0 ? (f(!0), k(ee, { key: 2 }, de(e.error, (T, L) => (f(), k("p", {
4861
4860
  key: "ext-" + L,
4862
4861
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
@@ -4864,10 +4863,10 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
4864
4863
  ])
4865
4864
  ]));
4866
4865
  }
4867
- }), Kl = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, Hl = ["for"], Nl = { class: "jsgd-relative" }, Wl = ["id", "value", "disabled", "placeholder"], Gl = {
4866
+ }), ql = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, Kl = ["for"], Hl = { class: "jsgd-relative" }, Nl = ["id", "value", "disabled", "placeholder"], Wl = {
4868
4867
  key: 1,
4869
4868
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
4870
- }, Zl = /* @__PURE__ */ oe({
4869
+ }, Gl = /* @__PURE__ */ oe({
4871
4870
  __name: "NumberInput",
4872
4871
  props: {
4873
4872
  id: { default: fe() },
@@ -4902,26 +4901,26 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
4902
4901
  g.value = [], j("remove:error", e.id);
4903
4902
  return;
4904
4903
  }
4905
- const b = [], x = String(r ?? "");
4904
+ const p = [], x = String(r ?? "");
4906
4905
  if (Array.isArray(l?.duplicate)) {
4907
4906
  const w = l.duplicate.map(String).includes(x), $ = String(u) === x;
4908
- w && !$ && b.push(E("valueList", { value: x }, e.lang ?? "en"));
4907
+ w && !$ && p.push(E("valueList", { value: x }, e.lang ?? "en"));
4909
4908
  }
4910
4909
  if (l && x !== "") {
4911
4910
  const w = Number(x);
4912
- isNaN(w) ? b.push(E("numberInvalid", void 0, e.lang ?? "en")) : (l.integer && !Number.isInteger(w) && b.push(E("numberInteger", void 0, e.lang ?? "en")), l.min !== void 0 && w < l.min && b.push(E("numberMin", { min: String(l.min) }, e.lang ?? "en")), l.max !== void 0 && w > l.max && b.push(E("numberMax", { max: String(l.max) }, e.lang ?? "en")));
4911
+ isNaN(w) ? p.push(E("numberInvalid", void 0, e.lang ?? "en")) : (l.integer && !Number.isInteger(w) && p.push(E("numberInteger", void 0, e.lang ?? "en")), l.min !== void 0 && w < l.min && p.push(E("numberMin", { min: String(l.min) }, e.lang ?? "en")), l.max !== void 0 && w > l.max && p.push(E("numberMax", { max: String(l.max) }, e.lang ?? "en")));
4913
4912
  }
4914
- g.value = b, b.length ? j("push:error", b, e.id) : e.id && j("remove:error", e.id);
4913
+ g.value = p, p.length ? j("push:error", p, e.id) : e.id && j("remove:error", e.id);
4915
4914
  },
4916
4915
  { deep: !0 }
4917
4916
  );
4918
- const p = _(() => e.placeholder ?? c?.value?.placeholder.number ?? "");
4917
+ const b = _(() => e.placeholder ?? c?.value?.placeholder.number ?? "");
4919
4918
  function y(r) {
4920
4919
  if (e.disabled) return;
4921
4920
  const a = r.target;
4922
4921
  j("update:modelValue", a.value, e.id);
4923
4922
  }
4924
- return (r, a) => (f(), k("div", Kl, [
4923
+ return (r, a) => (f(), k("div", ql, [
4925
4924
  i("label", {
4926
4925
  for: t.id,
4927
4926
  class: H(["jsgd-inline-flex jsgd-items-center jsgd-gap-2 jsgd-text-sm jsgd-font-medium jsgd-mb-2 jsgd-text-slate-900 jsgd-transition-colors jsgd-duration-200 dark:jsgd-text-slate-100", { "jsgd-text-red-500 dark:jsgd-text-red-400": g.value.length !== 0 || t.error }])
@@ -4937,8 +4936,8 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
4937
4936
  ])]),
4938
4937
  _: 1
4939
4938
  }, 8, ["text"])) : V("", !0)
4940
- ], 10, Hl),
4941
- i("div", Nl, [
4939
+ ], 10, Kl),
4940
+ i("div", Hl, [
4942
4941
  a[1] || (a[1] = hs('<div class="jsgd-absolute jsgd-left-3 jsgd-top-1/2 -jsgd-translate-y-1/2 jsgd-text-slate-400 jsgd-pointer-events-none"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="4" y1="9" x2="20" y2="9"></line><line x1="4" y1="15" x2="20" y2="15"></line><line x1="10" y1="3" x2="8" y2="21"></line><line x1="16" y1="3" x2="14" y2="21"></line></svg></div>', 1)),
4943
4942
  i("input", {
4944
4943
  id: t.id,
@@ -4946,20 +4945,20 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
4946
4945
  value: t.modelValue,
4947
4946
  disabled: t.disabled,
4948
4947
  onInput: y,
4949
- placeholder: p.value,
4948
+ placeholder: b.value,
4950
4949
  class: H(["jsgd-w-full jsgd-py-3 jsgd-pl-11 jsgd-pr-4 jsgd-text-base jsgd-text-slate-900 jsgd-bg-white jsgd-border jsgd-border-slate-300 jsgd-rounded-lg jsgd-transition-all jsgd-duration-200 jsgd-box-border focus:jsgd-outline-none focus:jsgd-border-blue-500 focus:jsgd-ring-4 focus:jsgd-ring-blue-500/20 disabled:jsgd-bg-slate-100 disabled:jsgd-text-slate-500 disabled:jsgd-cursor-not-allowed dark:jsgd-bg-slate-800 dark:jsgd-text-slate-100 dark:jsgd-border-slate-600 dark:focus:jsgd-border-blue-400 dark:focus:jsgd-ring-blue-400/25 dark:disabled:jsgd-bg-slate-700 [appearance:textfield] [&::-webkit-outer-spin-button]:jsgd-appearance-none [&::-webkit-inner-spin-button]:jsgd-appearance-none", {
4951
4950
  "jsgd-border-red-400 focus:jsgd-ring-red-500/20 dark:jsgd-border-red-400 dark:focus:jsgd-ring-red-400/25": g.value.length !== 0 || t.error
4952
4951
  }])
4953
- }, null, 42, Wl)
4952
+ }, null, 42, Nl)
4954
4953
  ]),
4955
- g.value.length !== 0 ? (f(!0), k(ee, { key: 0 }, de(g.value, (l, b) => (f(), k("p", {
4956
- key: b,
4954
+ g.value.length !== 0 ? (f(!0), k(ee, { key: 0 }, de(g.value, (l, p) => (f(), k("p", {
4955
+ key: p,
4957
4956
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
4958
4957
  }, F(l), 1))), 128)) : V("", !0),
4959
- typeof e.error == "string" && g.value.length === 0 ? (f(), k("p", Gl, F(t.error), 1)) : V("", !0)
4958
+ typeof e.error == "string" && g.value.length === 0 ? (f(), k("p", Wl, F(t.error), 1)) : V("", !0)
4960
4959
  ]));
4961
4960
  }
4962
- }), Yl = { class: "jsgd-w-full jsgd-mb-6 jsgd-animate-[slideUpFade_500ms_ease-out_backwards]" }, Jl = { class: "jsgd-block jsgd-text-lg jsgd-font-semibold jsgd-mb-3 jsgd-text-slate-900 jsgd-pl-1 jsgd-border-l-20 jsgd-border-slate-200 jsgd-transition-all jsgd-duration-200 dark:jsgd-text-slate-100 dark:jsgd-border-slate-600" }, Ql = { class: "jsgd-bg-slate-50 jsgd-border-1 jsgd-border-solid jsgd-border-slate-200 jsgd-rounded-xl jsgd-p-6 jsgd-shadow-sm jsgd-flex jsgd-flex-col jsgd-gap-6 dark:jsgd-bg-slate-800 dark:jsgd-border-slate-700 max-[640px]:jsgd-p-4 max-[640px]:jsgd-gap-4" }, Xl = /* @__PURE__ */ oe({
4961
+ }), Zl = { class: "jsgd-w-full jsgd-mb-6 jsgd-animate-[slideUpFade_500ms_ease-out_backwards]" }, Yl = { class: "jsgd-block jsgd-text-lg jsgd-font-semibold jsgd-mb-3 jsgd-text-slate-900 jsgd-pl-1 jsgd-border-l-20 jsgd-border-slate-200 jsgd-transition-all jsgd-duration-200 dark:jsgd-text-slate-100 dark:jsgd-border-slate-600" }, Jl = { class: "jsgd-bg-slate-50 jsgd-border-1 jsgd-border-solid jsgd-border-slate-200 jsgd-rounded-xl jsgd-p-6 jsgd-shadow-sm jsgd-flex jsgd-flex-col jsgd-gap-6 dark:jsgd-bg-slate-800 dark:jsgd-border-slate-700 max-[640px]:jsgd-p-4 max-[640px]:jsgd-gap-4" }, Ql = /* @__PURE__ */ oe({
4963
4962
  __name: "ObjectInput",
4964
4963
  props: {
4965
4964
  id: { default: fe() },
@@ -4980,9 +4979,9 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
4980
4979
  e.value = { ...o.formData }, u.value = { ...o.errors };
4981
4980
  },
4982
4981
  { immediate: !0, deep: !0 }
4983
- ), (n, c) => (f(), k("div", Yl, [
4984
- i("label", Jl, F(o.label), 1),
4985
- i("div", Ql, [
4982
+ ), (n, c) => (f(), k("div", Zl, [
4983
+ i("label", Yl, F(o.label), 1),
4984
+ i("div", Jl, [
4986
4985
  (f(!0), k(ee, null, de(o.schema, (j, d) => (f(), Z(m(ft), {
4987
4986
  key: d,
4988
4987
  field: j,
@@ -4990,19 +4989,19 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
4990
4989
  "form-data": o.formData,
4991
4990
  errors: o.errors,
4992
4991
  lang: t.lang ?? "en",
4993
- "onUpdate:modelValue": c[0] || (c[0] = (g, p) => n.$emit("update:model-value", g, o.id + "." + p)),
4992
+ "onUpdate:modelValue": c[0] || (c[0] = (g, b) => n.$emit("update:model-value", g, o.id + "." + b)),
4994
4993
  "onRemove:errors": c[1] || (c[1] = (g) => n.$emit("remove:errors", o.id + "." + g)),
4995
- "onPush:errors": c[2] || (c[2] = (g, p) => n.$emit("push:errors", g, o.id + "." + p)),
4996
- onMultiSelectedChange: c[3] || (c[3] = (g, p) => n.$emit("multi-selected-change", g, o.id + "." + p)),
4997
- onSelectedOptionChange: c[4] || (c[4] = (g, p) => n.$emit("selected-option-change", g, o.id + "." + p))
4994
+ "onPush:errors": c[2] || (c[2] = (g, b) => n.$emit("push:errors", g, o.id + "." + b)),
4995
+ onMultiSelectedChange: c[3] || (c[3] = (g, b) => n.$emit("multi-selected-change", g, o.id + "." + b)),
4996
+ onSelectedOptionChange: c[4] || (c[4] = (g, b) => n.$emit("selected-option-change", g, o.id + "." + b))
4998
4997
  }, null, 8, ["field", "field-key", "form-data", "errors", "lang"]))), 128))
4999
4998
  ])
5000
4999
  ]));
5001
5000
  }
5002
- }), _l = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, en = ["for"], tn = { class: "jsgd-relative" }, sn = ["id", "type", "disabled", "placeholder"], an = {
5001
+ }), Xl = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, _l = ["for"], en = { class: "jsgd-relative" }, tn = ["id", "type", "disabled", "placeholder"], sn = {
5003
5002
  key: 1,
5004
5003
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
5005
- }, dn = /* @__PURE__ */ oe({
5004
+ }, an = /* @__PURE__ */ oe({
5006
5005
  __name: "PasswordInput",
5007
5006
  props: {
5008
5007
  id: { default: fe() },
@@ -5022,14 +5021,14 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5022
5021
  function j(a) {
5023
5022
  if (!e.validate) return [];
5024
5023
  const l = [], {
5025
- minLength: b,
5024
+ minLength: p,
5026
5025
  maxLength: x,
5027
5026
  requireUppercase: w,
5028
5027
  requireLowercase: $,
5029
5028
  requireNumber: A,
5030
5029
  requireSpecialChar: S
5031
5030
  } = e.validate;
5032
- return b && a.length < b && l.push(E("passwordMin", { min: String(b) }, e.lang ?? "en")), x && a.length > x && l.push(E("passwordMax", { max: String(x) }, e.lang ?? "en")), w && !/[A-Z]/.test(a) && l.push(E("passwordUpper", void 0, e.lang ?? "en")), $ && !/[a-z]/.test(a) && l.push(E("passwordLower", void 0, e.lang ?? "en")), A && !/\d/.test(a) && l.push(E("passwordNumber", void 0, e.lang ?? "en")), S && !/[^A-Za-z0-9]/.test(a) && l.push(E("passwordSymbol", void 0, e.lang ?? "en")), l;
5031
+ return p && a.length < p && l.push(E("passwordMin", { min: String(p) }, e.lang ?? "en")), x && a.length > x && l.push(E("passwordMax", { max: String(x) }, e.lang ?? "en")), w && !/[A-Z]/.test(a) && l.push(E("passwordUpper", void 0, e.lang ?? "en")), $ && !/[a-z]/.test(a) && l.push(E("passwordLower", void 0, e.lang ?? "en")), A && !/\d/.test(a) && l.push(E("passwordNumber", void 0, e.lang ?? "en")), S && !/[^A-Za-z0-9]/.test(a) && l.push(E("passwordSymbol", void 0, e.lang ?? "en")), l;
5033
5032
  }
5034
5033
  const d = _(() => {
5035
5034
  if (e.validate) {
@@ -5038,7 +5037,7 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5038
5037
  `);
5039
5038
  }
5040
5039
  return "";
5041
- }), g = z(!1), p = z([]);
5040
+ }), g = z(!1), b = z([]);
5042
5041
  ne(
5043
5042
  () => ({
5044
5043
  val: e.modelValue,
@@ -5046,11 +5045,11 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5046
5045
  }),
5047
5046
  ({ val: a, disabled: l }) => {
5048
5047
  if (l) {
5049
- p.value = [];
5048
+ b.value = [];
5050
5049
  return;
5051
5050
  }
5052
- const b = j(String(a ?? ""));
5053
- p.value = b, b.length !== 0 ? c("push:error", b, e.id) : e.id && c("remove:error", e.id);
5051
+ const p = j(String(a ?? ""));
5052
+ b.value = p, p.length !== 0 ? c("push:error", p, e.id) : e.id && c("remove:error", e.id);
5054
5053
  }
5055
5054
  );
5056
5055
  const y = _(() => e.placeholder ?? n?.value?.placeholder?.password ?? "");
@@ -5059,10 +5058,10 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5059
5058
  const l = a.target;
5060
5059
  c("update:modelValue", l.value, e.id);
5061
5060
  }
5062
- return (a, l) => (f(), k("div", _l, [
5061
+ return (a, l) => (f(), k("div", Xl, [
5063
5062
  i("label", {
5064
5063
  for: t.id,
5065
- class: H(["jsgd-inline-flex jsgd-items-center jsgd-gap-2 jsgd-text-sm jsgd-font-medium jsgd-mb-2 jsgd-text-slate-900 jsgd-transition-colors jsgd-duration-200 dark:jsgd-text-slate-100", { "jsgd-text-red-500 dark:jsgd-text-red-400": p.value.length !== 0 || t.error }])
5064
+ class: H(["jsgd-inline-flex jsgd-items-center jsgd-gap-2 jsgd-text-sm jsgd-font-medium jsgd-mb-2 jsgd-text-slate-900 jsgd-transition-colors jsgd-duration-200 dark:jsgd-text-slate-100", { "jsgd-text-red-500 dark:jsgd-text-red-400": b.value.length !== 0 || t.error }])
5066
5065
  }, [
5067
5066
  te(F(t.label) + " ", 1),
5068
5067
  d.value ? (f(), Z(m(xe), {
@@ -5075,8 +5074,8 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5075
5074
  ])]),
5076
5075
  _: 1
5077
5076
  }, 8, ["text"])) : V("", !0)
5078
- ], 10, en),
5079
- i("div", tn, [
5077
+ ], 10, _l),
5078
+ i("div", en, [
5080
5079
  l[1] || (l[1] = i("div", { class: "jsgd-absolute jsgd-left-3 jsgd-top-1/2 -jsgd-translate-y-1/2 jsgd-text-slate-400 jsgd-pointer-events-none" }, [
5081
5080
  i("p", { class: "jsgd-i-mdi-lock-outline jsgd-w-5 jsgd-h-5" })
5082
5081
  ], -1)),
@@ -5084,24 +5083,24 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5084
5083
  id: t.id,
5085
5084
  type: g.value ? "text" : "password",
5086
5085
  class: H(["jsgd-w-full jsgd-py-3 jsgd-pl-11 jsgd-pr-4 jsgd-text-base jsgd-text-slate-900 jsgd-bg-white jsgd-border jsgd-border-slate-300 jsgd-rounded-lg jsgd-transition-all jsgd-duration-200 jsgd-box-border focus:jsgd-outline-none focus:jsgd-border-blue-500 focus:jsgd-ring-4 focus:jsgd-ring-blue-500/20 disabled:jsgd-bg-slate-100 disabled:jsgd-text-slate-500 disabled:jsgd-cursor-not-allowed dark:jsgd-bg-slate-800 dark:jsgd-text-slate-100 dark:jsgd-border-slate-600 dark:focus:jsgd-border-blue-400 dark:focus:jsgd-ring-blue-400/25 dark:disabled:jsgd-bg-slate-700", {
5087
- "jsgd-border-red-400 focus:jsgd-ring-red-500/20 dark:jsgd-border-red-400 dark:focus:jsgd-ring-red-400/25": p.value.length !== 0 || t.error
5086
+ "jsgd-border-red-400 focus:jsgd-ring-red-500/20 dark:jsgd-border-red-400 dark:focus:jsgd-ring-red-400/25": b.value.length !== 0 || t.error
5088
5087
  }]),
5089
5088
  disabled: t.disabled,
5090
5089
  placeholder: y.value,
5091
5090
  onInput: r
5092
- }, null, 42, sn)
5091
+ }, null, 42, tn)
5093
5092
  ]),
5094
- p.value.length !== 0 ? (f(!0), k(ee, { key: 0 }, de(p.value, (b, x) => (f(), k("p", {
5093
+ b.value.length !== 0 ? (f(!0), k(ee, { key: 0 }, de(b.value, (p, x) => (f(), k("p", {
5095
5094
  key: x,
5096
5095
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
5097
- }, F(b), 1))), 128)) : V("", !0),
5098
- typeof e.error == "string" && p.value.length === 0 ? (f(), k("p", an, F(t.error), 1)) : V("", !0)
5096
+ }, F(p), 1))), 128)) : V("", !0),
5097
+ typeof e.error == "string" && b.value.length === 0 ? (f(), k("p", sn, F(t.error), 1)) : V("", !0)
5099
5098
  ]));
5100
5099
  }
5101
- }), rn = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, ln = ["for"], nn = ["onClick"], on = ["onKeydown", "placeholder"], gn = {
5100
+ }), dn = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, rn = ["for"], ln = ["onClick"], nn = ["onKeydown", "placeholder"], on = {
5102
5101
  key: 1,
5103
5102
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
5104
- }, un = /* @__PURE__ */ oe({
5103
+ }, gn = /* @__PURE__ */ oe({
5105
5104
  __name: "TagInput",
5106
5105
  props: {
5107
5106
  id: { default: fe() },
@@ -5131,17 +5130,17 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5131
5130
  disabled: e.disabled,
5132
5131
  validate: e.validate
5133
5132
  }),
5134
- ({ val: a, disabled: l, validate: b }) => {
5133
+ ({ val: a, disabled: l, validate: p }) => {
5135
5134
  if (l) {
5136
5135
  g.value = [], u("remove:error", e.id);
5137
5136
  return;
5138
5137
  }
5139
5138
  const x = [], w = a ?? [];
5140
- b && (b.min !== void 0 && w.length < b.min && x.push(E("arrayTagMin", { min: String(b.min) }, e.lang ?? "en")), b.max !== void 0 && w.length > b.max && x.push(E("arrayTagMax", { max: String(b.max) }, e.lang ?? "en"))), g.value = x, x.length ? u("push:error", x, e.id) : e.id && u("remove:error", e.id);
5139
+ p && (p.min !== void 0 && w.length < p.min && x.push(E("arrayTagMin", { min: String(p.min) }, e.lang ?? "en")), p.max !== void 0 && w.length > p.max && x.push(E("arrayTagMax", { max: String(p.max) }, e.lang ?? "en"))), g.value = x, x.length ? u("push:error", x, e.id) : e.id && u("remove:error", e.id);
5141
5140
  },
5142
5141
  { deep: !0 }
5143
5142
  );
5144
- const p = _(() => g.value.length > 0 ? g.value[0] + "..." : e.placeholder ?? c?.value?.placeholder?.tag ?? "");
5143
+ const b = _(() => g.value.length > 0 ? g.value[0] + "..." : e.placeholder ?? c?.value?.placeholder?.tag ?? "");
5145
5144
  function y() {
5146
5145
  if (e.disabled) return;
5147
5146
  const a = j.value?.value?.trim();
@@ -5150,11 +5149,11 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5150
5149
  function r(a) {
5151
5150
  e.disabled || u(
5152
5151
  "update:modelValue",
5153
- e.modelValue.filter((l, b) => b !== a),
5152
+ e.modelValue.filter((l, p) => p !== a),
5154
5153
  e.id
5155
5154
  );
5156
5155
  }
5157
- return (a, l) => (f(), k("div", rn, [
5156
+ return (a, l) => (f(), k("div", dn, [
5158
5157
  i("label", {
5159
5158
  for: t.id,
5160
5159
  class: H(["jsgd-inline-flex jsgd-items-center jsgd-gap-2 jsgd-text-sm jsgd-font-medium jsgd-mb-2 jsgd-text-slate-900 jsgd-transition-colors jsgd-duration-200 dark:jsgd-text-slate-100", { "jsgd-text-red-500 dark:jsgd-text-red-400": g.value.length !== 0 || t.error }])
@@ -5170,24 +5169,24 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5170
5169
  ])]),
5171
5170
  _: 1
5172
5171
  }, 8, ["text"])) : V("", !0)
5173
- ], 10, ln),
5172
+ ], 10, rn),
5174
5173
  i("div", {
5175
5174
  class: H(["jsgd-flex jsgd-flex-wrap jsgd-items-center jsgd-gap-2 jsgd-border-1 jsgd-border-solid jsgd-border-slate-300 jsgd-rounded-lg jsgd-p-2 jsgd-bg-white jsgd-transition-all jsgd-duration-200 jsgd-cursor-text jsgd-box-border focus-within:jsgd-border-blue-500 focus-within:jsgd-ring-4 focus-within:jsgd-ring-blue-500/20 dark:jsgd-bg-slate-800 dark:jsgd-border-slate-600 dark:focus-within:jsgd-border-blue-400 dark:focus-within:jsgd-ring-blue-400/25", {
5176
5175
  "jsgd-border-red-400 focus-within:jsgd-ring-red-500/20 dark:jsgd-border-red-400 dark:focus-within:jsgd-ring-red-400/25": g.value.length !== 0 || t.error,
5177
5176
  "jsgd-bg-slate-100 jsgd-cursor-not-allowed dark:jsgd-bg-slate-700": t.disabled
5178
5177
  }])
5179
5178
  }, [
5180
- (f(!0), k(ee, null, de(t.modelValue, (b, x) => (f(), k("span", {
5179
+ (f(!0), k(ee, null, de(t.modelValue, (p, x) => (f(), k("span", {
5181
5180
  key: x,
5182
5181
  class: "jsgd-inline-flex jsgd-items-center jsgd-gap-2 jsgd-px-3 jsgd-py-1 jsgd-bg-blue-100 jsgd-text-blue-800 jsgd-font-medium jsgd-text-sm jsgd-rounded-full jsgd-whitespace-nowrap jsgd-animate-[popIn_300ms_ease-out_backwards] dark:jsgd-bg-blue-900 dark:jsgd-text-blue-200"
5183
5182
  }, [
5184
- te(F(b) + " ", 1),
5183
+ te(F(p) + " ", 1),
5185
5184
  t.disabled ? V("", !0) : (f(), k("button", {
5186
5185
  key: 0,
5187
5186
  type: "button",
5188
5187
  onClick: (w) => r(x),
5189
5188
  class: "jsgd-w-4 jsgd-h-4 jsgd-flex jsgd-items-center jsgd-justify-center jsgd-bg-transparent jsgd-border-none jsgd-rounded-full jsgd-text-red-500 jsgd-cursor-pointer jsgd-font-bold jsgd-leading-none jsgd-transition-all jsgd-duration-200 hover:jsgd-bg-red-500 hover:jsgd-text-white hover:jsgd-rotate-180 dark:jsgd-text-red-400 dark:hover:jsgd-bg-red-500 dark:hover:jsgd-text-white"
5190
- }, " × ", 8, nn))
5189
+ }, " × ", 8, ln))
5191
5190
  ]))), 128)),
5192
5191
  t.disabled ? V("", !0) : (f(), k("input", {
5193
5192
  key: 0,
@@ -5196,19 +5195,19 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5196
5195
  type: "text",
5197
5196
  class: "jsgd-flex-grow jsgd-min-w-[120px] jsgd-border-none jsgd-outline-none jsgd-bg-transparent jsgd-text-slate-900 jsgd-text-base jsgd-p-1 dark:jsgd-text-slate-100",
5198
5197
  onKeydown: Oa(Ne(y, ["prevent"]), ["enter"]),
5199
- placeholder: p.value
5200
- }, null, 40, on))
5198
+ placeholder: b.value
5199
+ }, null, 40, nn))
5201
5200
  ], 2),
5202
- g.value.length !== 0 ? (f(!0), k(ee, { key: 0 }, de(g.value, (b, x) => (f(), k("p", {
5201
+ g.value.length !== 0 ? (f(!0), k(ee, { key: 0 }, de(g.value, (p, x) => (f(), k("p", {
5203
5202
  key: x,
5204
5203
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
5205
- }, F(b), 1))), 128)) : typeof e.error == "string" ? (f(), k("p", gn, F(t.error), 1)) : V("", !0)
5204
+ }, F(p), 1))), 128)) : typeof e.error == "string" ? (f(), k("p", on, F(t.error), 1)) : V("", !0)
5206
5205
  ]));
5207
5206
  }
5208
- }), cn = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, mn = ["for"], jn = ["id", "value", "placeholder", "disabled"], fn = {
5207
+ }), un = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, cn = ["for"], mn = ["id", "value", "placeholder", "disabled"], jn = {
5209
5208
  key: 1,
5210
5209
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
5211
- }, hn = /* @__PURE__ */ oe({
5210
+ }, fn = /* @__PURE__ */ oe({
5212
5211
  __name: "TextAreaInput",
5213
5212
  props: {
5214
5213
  id: { default: fe() },
@@ -5243,22 +5242,22 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5243
5242
  d.value = [], u("remove:error", e.id);
5244
5243
  return;
5245
5244
  }
5246
- const l = [], b = String(y ?? "").trim();
5245
+ const l = [], p = String(y ?? "").trim();
5247
5246
  if (a) {
5248
5247
  const { minLength: x, maxLength: w } = a;
5249
- x !== void 0 && b.length < x && l.push(E("textMinLength", { min: String(x) }, e.lang ?? "en")), w !== void 0 && b.length > w && l.push(E("textMaxLength", { max: String(w) }, e.lang ?? "en"));
5248
+ x !== void 0 && p.length < x && l.push(E("textMinLength", { min: String(x) }, e.lang ?? "en")), w !== void 0 && p.length > w && l.push(E("textMaxLength", { max: String(w) }, e.lang ?? "en"));
5250
5249
  }
5251
5250
  d.value = l, l.length ? u("push:error", l, e.id) : u("remove:error", e.id);
5252
5251
  },
5253
5252
  { deep: !0 }
5254
5253
  );
5255
5254
  const g = _(() => e.placeholder ?? c.value.placeholder?.string ?? "");
5256
- function p(y) {
5255
+ function b(y) {
5257
5256
  if (e.disabled) return;
5258
5257
  const r = y.target;
5259
5258
  u("update:modelValue", r.value, e.id);
5260
5259
  }
5261
- return (y, r) => (f(), k("div", cn, [
5260
+ return (y, r) => (f(), k("div", un, [
5262
5261
  i("label", {
5263
5262
  for: t.id,
5264
5263
  class: H(["jsgd-inline-flex jsgd-items-center jsgd-gap-2 jsgd-text-sm jsgd-font-medium jsgd-mb-2 jsgd-text-slate-900 jsgd-transition-colors jsgd-duration-200 dark:jsgd-text-slate-100", { "jsgd-text-red-500 dark:jsgd-text-red-400": d.value.length !== 0 || t.error }])
@@ -5274,7 +5273,7 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5274
5273
  ])]),
5275
5274
  _: 1
5276
5275
  }, 8, ["text"])) : V("", !0)
5277
- ], 10, mn),
5276
+ ], 10, cn),
5278
5277
  i("textarea", {
5279
5278
  id: t.id,
5280
5279
  value: t.modelValue,
@@ -5284,25 +5283,25 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5284
5283
  class: H(["jsgd-w-full jsgd-p-4 jsgd-text-base jsgd-text-slate-900 jsgd-bg-white jsgd-border jsgd-border-slate-300 jsgd-rounded-lg jsgd-transition-all jsgd-duration-200 jsgd-box-border jsgd-resize-y jsgd-min-h-[8rem] focus:jsgd-outline-none focus:jsgd-border-blue-500 focus:jsgd-ring-4 focus:jsgd-ring-blue-500/20 disabled:jsgd-bg-slate-100 disabled:jsgd-text-slate-500 disabled:jsgd-cursor-not-allowed disabled:jsgd-resize-none dark:jsgd-bg-slate-800 dark:jsgd-text-slate-100 dark:jsgd-border-slate-600 dark:focus:jsgd-border-blue-400 dark:focus:jsgd-ring-blue-400/25 dark:disabled:jsgd-bg-slate-700", {
5285
5284
  "jsgd-border-red-400 focus:jsgd-ring-red-500/20 dark:jsgd-border-red-400 dark:focus:jsgd-ring-red-400/25": d.value.length !== 0 || t.error
5286
5285
  }]),
5287
- onInput: p
5288
- }, null, 42, jn),
5286
+ onInput: b
5287
+ }, null, 42, mn),
5289
5288
  d.value.length !== 0 ? (f(!0), k(ee, { key: 0 }, de(d.value, (a, l) => (f(), k("p", {
5290
5289
  key: l,
5291
5290
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
5292
5291
  }, F(a), 1))), 128)) : V("", !0),
5293
- typeof e.error == "string" && d.value.length === 0 ? (f(), k("p", fn, F(t.error), 1)) : V("", !0)
5292
+ typeof e.error == "string" && d.value.length === 0 ? (f(), k("p", jn, F(t.error), 1)) : V("", !0)
5294
5293
  ]));
5295
5294
  }
5296
- }), bn = ["for"], pn = ["id"], vn = { class: "ql-formats" }, xn = {
5295
+ }), hn = ["for"], bn = ["id"], pn = { class: "ql-formats" }, vn = {
5297
5296
  key: 0,
5298
5297
  viewBox: "0 0 18 18"
5299
- }, yn = {
5298
+ }, xn = {
5300
5299
  key: 1,
5301
5300
  viewBox: "0 0 18 18"
5302
- }, wn = ["id"], kn = {
5301
+ }, yn = ["id"], wn = {
5303
5302
  key: 1,
5304
5303
  class: "error-message"
5305
- }, Sn = /* @__PURE__ */ oe({
5304
+ }, kn = /* @__PURE__ */ oe({
5306
5305
  __name: "TextAreaQuill",
5307
5306
  props: {
5308
5307
  id: { default: fe() },
@@ -5326,7 +5325,7 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5326
5325
  });
5327
5326
  const g = le("TableComponents", {
5328
5327
  labels: z(me[e.lang ?? "en"])
5329
- }).labels, p = _(
5328
+ }).labels, b = _(
5330
5329
  () => e.placeholder ?? g.value.placeholder?.richText ?? "Write content here..."
5331
5330
  ), y = _(() => {
5332
5331
  if (e.validate) {
@@ -5342,28 +5341,30 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5342
5341
  disabled: e.disabled,
5343
5342
  validate: e.validate
5344
5343
  }),
5345
- ({ val: a, disabled: l, validate: b }) => {
5344
+ ({ val: a, disabled: l, validate: p }) => {
5346
5345
  if (l) {
5347
5346
  r.value = [], u("remove:error", e.id);
5348
5347
  return;
5349
5348
  }
5350
5349
  const x = [], w = String(a ?? "").replace(/<[^>]*>?/gm, "").trim();
5351
- if (b) {
5352
- const { minLength: $, maxLength: A } = b;
5350
+ if (p) {
5351
+ const { minLength: $, maxLength: A } = p;
5353
5352
  $ !== void 0 && w.length < $ && w.length !== 0 && x.push(E("textMinLength", { min: String($) }, e.lang ?? "en")), A !== void 0 && w.length > A && x.push(E("textMaxLength", { max: String(A) }, e.lang ?? "en"));
5354
5353
  }
5355
5354
  r.value = x, x.length ? u("push:error", x, e.id) : u("remove:error", e.id);
5356
5355
  },
5357
5356
  { deep: !0 }
5358
- ), st(() => {
5357
+ ), st(async () => {
5358
+ if (typeof window > "u") return;
5359
5359
  const a = document.getElementById(`editor-container-${e.id}`);
5360
5360
  if (!a) {
5361
5361
  console.error(`Editor container with ID editor-container-${e.id} not found`);
5362
5362
  return;
5363
5363
  }
5364
- n = new Pa(a, {
5364
+ const { default: l } = await import("quill");
5365
+ n = new l(a, {
5365
5366
  modules: { toolbar: `#toolbar-container-${e.id}` },
5366
- placeholder: p.value,
5367
+ placeholder: b.value,
5367
5368
  theme: "snow",
5368
5369
  readOnly: e.disabled ?? !1
5369
5370
  }), e.modelValue && (n.root.innerHTML = e.modelValue), n.on("text-change", () => {
@@ -5396,7 +5397,7 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5396
5397
  ])]),
5397
5398
  _: 1
5398
5399
  }, 8, ["text"])) : V("", !0)
5399
- ], 10, bn),
5400
+ ], 10, hn),
5400
5401
  i("div", {
5401
5402
  id: `toolbar-container-${t.id}`,
5402
5403
  class: "quill-toolbar"
@@ -5462,12 +5463,12 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5462
5463
  }),
5463
5464
  i("select", { class: "ql-align" })
5464
5465
  ], -1)),
5465
- i("span", vn, [
5466
+ i("span", pn, [
5466
5467
  i("button", {
5467
5468
  onClick: j,
5468
5469
  class: "maximize-button"
5469
5470
  }, [
5470
- c.value ? (f(), k("svg", yn, [...l[2] || (l[2] = [
5471
+ c.value ? (f(), k("svg", xn, [...l[2] || (l[2] = [
5471
5472
  i("rect", {
5472
5473
  class: "ql-stroke",
5473
5474
  x: "5",
@@ -5483,7 +5484,7 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5483
5484
  class: "ql-stroke",
5484
5485
  points: "3 15 8 10"
5485
5486
  }, null, -1)
5486
- ])])) : (f(), k("svg", xn, [...l[1] || (l[1] = [
5487
+ ])])) : (f(), k("svg", vn, [...l[1] || (l[1] = [
5487
5488
  i("rect", {
5488
5489
  class: "ql-stroke",
5489
5490
  x: "3",
@@ -5522,23 +5523,23 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5522
5523
  ])]))
5523
5524
  ])
5524
5525
  ])
5525
- ], 8, pn),
5526
+ ], 8, bn),
5526
5527
  i("div", {
5527
5528
  id: `editor-container-${t.id}`,
5528
5529
  class: H(["quill-editor-container", { "has-error": t.error }])
5529
- }, null, 10, wn),
5530
- r.value.length !== 0 ? (f(!0), k(ee, { key: 0 }, de(r.value, (b, x) => (f(), k("p", {
5530
+ }, null, 10, yn),
5531
+ r.value.length !== 0 ? (f(!0), k(ee, { key: 0 }, de(r.value, (p, x) => (f(), k("p", {
5531
5532
  key: x,
5532
5533
  class: "error-message"
5533
- }, F(b), 1))), 128)) : V("", !0),
5534
- typeof e.error == "string" && r.value.length === 0 ? (f(), k("p", kn, F(t.error), 1)) : V("", !0)
5534
+ }, F(p), 1))), 128)) : V("", !0),
5535
+ typeof e.error == "string" && r.value.length === 0 ? (f(), k("p", wn, F(t.error), 1)) : V("", !0)
5535
5536
  ], 2)
5536
5537
  ], 8, ["disabled"]));
5537
5538
  }
5538
- }), $n = /* @__PURE__ */ It(Sn, [["__scopeId", "data-v-b9f7410b"]]), An = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, Tn = ["for"], Mn = ["id", "value", "disabled", "placeholder"], Cn = {
5539
+ }), Sn = /* @__PURE__ */ It(kn, [["__scopeId", "data-v-478acb07"]]), $n = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, An = ["for"], Tn = ["id", "value", "disabled", "placeholder"], Mn = {
5539
5540
  key: 1,
5540
5541
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
5541
- }, Dn = /* @__PURE__ */ oe({
5542
+ }, Cn = /* @__PURE__ */ oe({
5542
5543
  __name: "TextInput",
5543
5544
  props: {
5544
5545
  id: { default: fe() },
@@ -5573,29 +5574,29 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5573
5574
  g.value = [];
5574
5575
  return;
5575
5576
  }
5576
- const b = [], x = String(r ?? "");
5577
+ const p = [], x = String(r ?? "");
5577
5578
  if (l) {
5578
5579
  if (Array.isArray(l.duplicate) && l.duplicate.length > 0) {
5579
5580
  const w = l.duplicate.map(String).includes(x), $ = String(u) === x;
5580
- w && !$ && b.push(E("valueList", { value: x }, e.lang ?? "en"));
5581
+ w && !$ && p.push(E("valueList", { value: x }, e.lang ?? "en"));
5581
5582
  }
5582
- l.minLength !== void 0 && x.length < l.minLength && b.push(
5583
+ l.minLength !== void 0 && x.length < l.minLength && p.push(
5583
5584
  E("textMinLength", { min: String(l.minLength) }, e.lang ?? "en")
5584
- ), l.maxLength !== void 0 && x.length > l.maxLength && b.push(
5585
+ ), l.maxLength !== void 0 && x.length > l.maxLength && p.push(
5585
5586
  E("textMaxLength", { max: String(l.maxLength) }, e.lang ?? "en")
5586
- ), l.pattern && (new RegExp(l.pattern).test(x) || b.push(E("textPattern")));
5587
+ ), l.pattern && (new RegExp(l.pattern).test(x) || p.push(E("textPattern")));
5587
5588
  }
5588
- g.value = b, b.length ? j("push:error", b, e.id) : j("remove:error", e.id);
5589
+ g.value = p, p.length ? j("push:error", p, e.id) : j("remove:error", e.id);
5589
5590
  },
5590
5591
  { deep: !0 }
5591
5592
  );
5592
- const p = _(() => e.placeholder ?? c?.value?.placeholder?.string ?? "");
5593
+ const b = _(() => e.placeholder ?? c?.value?.placeholder?.string ?? "");
5593
5594
  function y(r) {
5594
5595
  if (e.disabled) return;
5595
5596
  const a = r.target;
5596
5597
  j("update:modelValue", a.value, e.id);
5597
5598
  }
5598
- return (r, a) => (f(), k("div", An, [
5599
+ return (r, a) => (f(), k("div", $n, [
5599
5600
  i("label", {
5600
5601
  for: t.id,
5601
5602
  class: H(["jsgd-inline-flex jsgd-items-center jsgd-gap-2 jsgd-text-sm jsgd-font-medium jsgd-mb-2 jsgd-text-slate-900 jsgd-transition-colors jsgd-duration-200 dark:jsgd-text-slate-100", { "jsgd-text-red-500 dark:jsgd-text-red-400": g.value.length !== 0 || t.error }])
@@ -5611,29 +5612,29 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5611
5612
  ])]),
5612
5613
  _: 1
5613
5614
  }, 8, ["text"])) : V("", !0)
5614
- ], 10, Tn),
5615
+ ], 10, An),
5615
5616
  i("input", {
5616
5617
  id: t.id,
5617
5618
  type: "text",
5618
5619
  value: t.modelValue,
5619
5620
  disabled: t.disabled,
5620
5621
  onInput: y,
5621
- placeholder: p.value,
5622
+ placeholder: b.value,
5622
5623
  class: H(["jsgd-w-full jsgd-py-3 jsgd-px-4 jsgd-text-base jsgd-text-slate-900 jsgd-bg-white jsgd-border jsgd-border-slate-300 jsgd-rounded-lg jsgd-transition-all jsgd-duration-200 jsgd-box-border focus:jsgd-outline-none focus:jsgd-border-blue-500 focus:jsgd-ring-4 focus:jsgd-ring-blue-500/20 disabled:jsgd-bg-slate-100 disabled:jsgd-text-slate-500 disabled:jsgd-cursor-not-allowed dark:jsgd-bg-slate-800 dark:jsgd-text-slate-100 dark:jsgd-border-slate-600 dark:focus:jsgd-border-blue-400 dark:focus:jsgd-ring-blue-400/25 dark:disabled:jsgd-bg-slate-700", {
5623
5624
  "jsgd-border-red-400 focus:jsgd-ring-red-500/20 dark:jsgd-border-red-400 dark:focus:jsgd-ring-red-400/25": g.value.length !== 0 || t.error
5624
5625
  }])
5625
- }, null, 42, Mn),
5626
- g.value.length !== 0 ? (f(!0), k(ee, { key: 0 }, de(g.value, (l, b) => (f(), k("p", {
5627
- key: b,
5626
+ }, null, 42, Tn),
5627
+ g.value.length !== 0 ? (f(!0), k(ee, { key: 0 }, de(g.value, (l, p) => (f(), k("p", {
5628
+ key: p,
5628
5629
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
5629
5630
  }, F(l), 1))), 128)) : V("", !0),
5630
- typeof e.error == "string" && g.value.length === 0 ? (f(), k("p", Cn, F(t.error), 1)) : V("", !0)
5631
+ typeof e.error == "string" && g.value.length === 0 ? (f(), k("p", Mn, F(t.error), 1)) : V("", !0)
5631
5632
  ]));
5632
5633
  }
5633
- }), In = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, En = ["for"], Vn = { class: "jsgd-relative" }, Ln = ["id", "value", "disabled", "min", "max", "placeholder"], zn = {
5634
+ }), Dn = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, In = ["for"], En = { class: "jsgd-relative" }, Vn = ["id", "value", "disabled", "min", "max", "placeholder"], Ln = {
5634
5635
  key: 0,
5635
5636
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
5636
- }, Fn = /* @__PURE__ */ oe({
5637
+ }, zn = /* @__PURE__ */ oe({
5637
5638
  __name: "TimeInput",
5638
5639
  props: {
5639
5640
  id: { default: fe() },
@@ -5661,8 +5662,8 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5661
5662
  if (!r) return;
5662
5663
  const [a, l] = r.split(":").map(Number);
5663
5664
  if (isNaN(a) || isNaN(l)) return;
5664
- const b = /* @__PURE__ */ new Date();
5665
- return b.setHours(a, l, 0, 0), b;
5665
+ const p = /* @__PURE__ */ new Date();
5666
+ return p.setHours(a, l, 0, 0), p;
5666
5667
  }
5667
5668
  ne(
5668
5669
  () => [e.modelValue, e.disabled, e.validate],
@@ -5671,7 +5672,7 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5671
5672
  d.value = [];
5672
5673
  return;
5673
5674
  }
5674
- const b = [], x = g(r);
5675
+ const p = [], x = g(r);
5675
5676
  if (l && typeof l == "object") {
5676
5677
  try {
5677
5678
  rs(r);
@@ -5680,9 +5681,9 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5680
5681
  return;
5681
5682
  }
5682
5683
  const w = l.minTime ? g(l.minTime) : void 0, $ = l.maxTime ? g(l.maxTime) : void 0;
5683
- w && x && x < w && b.push(E("timeMin", { min: l.minTime ?? "" }, e.lang ?? "en")), $ && x && x > $ && b.push(E("timeMax", { max: l.maxTime ?? "" }, e.lang ?? "en"));
5684
+ w && x && x < w && p.push(E("timeMin", { min: l.minTime ?? "" }, e.lang ?? "en")), $ && x && x > $ && p.push(E("timeMax", { max: l.maxTime ?? "" }, e.lang ?? "en"));
5684
5685
  }
5685
- d.value = b, b.length ? c("push:error", b, e.id) : c("remove:error", e.id);
5686
+ d.value = p, p.length ? c("push:error", p, e.id) : c("remove:error", e.id);
5686
5687
  }
5687
5688
  ), st(() => {
5688
5689
  if (e.modelValue)
@@ -5693,13 +5694,13 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5693
5694
  return;
5694
5695
  }
5695
5696
  });
5696
- const p = _(() => e.placeholder ?? n?.value?.placeholder?.time ?? "");
5697
+ const b = _(() => e.placeholder ?? n?.value?.placeholder?.time ?? "");
5697
5698
  function y(r) {
5698
5699
  if (e.disabled) return;
5699
5700
  const a = r.target;
5700
5701
  c("update:modelValue", a.value, e.id);
5701
5702
  }
5702
- return (r, a) => (f(), k("div", In, [
5703
+ return (r, a) => (f(), k("div", Dn, [
5703
5704
  i("label", {
5704
5705
  for: t.id,
5705
5706
  class: H(["jsgd-inline-flex jsgd-items-center jsgd-gap-2 jsgd-text-sm jsgd-font-medium jsgd-mb-2 jsgd-text-slate-900 jsgd-transition-colors jsgd-duration-200 dark:jsgd-text-slate-100", { "jsgd-text-red-500 dark:jsgd-text-red-400": d.value.length || t.error }])
@@ -5715,8 +5716,8 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5715
5716
  ])]),
5716
5717
  _: 1
5717
5718
  }, 8, ["text"])) : V("", !0)
5718
- ], 10, En),
5719
- i("div", Vn, [
5719
+ ], 10, In),
5720
+ i("div", En, [
5720
5721
  a[1] || (a[1] = i("div", { class: "jsgd-absolute jsgd-right-3 jsgd-top-1/2 -jsgd-translate-y-1/2 jsgd-pointer-events-none jsgd-text-slate-500 dark:jsgd-text-slate-400" }, [
5721
5722
  i("span", { class: "jsgd-i-mdi-clock-outline jsgd-w-5 jsgd-h-5" })
5722
5723
  ], -1)),
@@ -5728,20 +5729,20 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5728
5729
  min: e.validate?.minTime,
5729
5730
  max: e.validate?.maxTime,
5730
5731
  onInput: y,
5731
- placeholder: p.value,
5732
+ placeholder: b.value,
5732
5733
  class: H(["jsgd-w-full jsgd-py-3 jsgd-pl-4 jsgd-pr-10 jsgd-text-base jsgd-text-slate-900 jsgd-bg-white jsgd-border-1 jsgd-border-solid jsgd-border-slate-300 jsgd-rounded-lg jsgd-transition-all jsgd-duration-200 jsgd-box-border jsgd-appearance-none focus:jsgd-outline-none focus:jsgd-border-blue-500 focus:jsgd-ring-4 focus:jsgd-ring-blue-500/20 disabled:jsgd-bg-slate-100 disabled:jsgd-text-slate-500 disabled:jsgd-cursor-not-allowed dark:jsgd-bg-slate-800 dark:jsgd-text-slate-100 dark:jsgd-border-slate-600 dark:focus:jsgd-border-blue-400 dark:focus:jsgd-ring-blue-400/25 dark:disabled:jsgd-bg-slate-700 [color-scheme:light_dark] [&::-webkit-calendar-picker-indicator]:jsgd-opacity-0 [&::-webkit-calendar-picker-indicator]:jsgd-cursor-pointer [&::-webkit-calendar-picker-indicator]:jsgd-absolute [&::-webkit-calendar-picker-indicator]:jsgd-right-3 [&::-webkit-calendar-picker-indicator]:jsgd-top-1/2 [&::-webkit-calendar-picker-indicator]:-jsgd-translate-y-1/2 [&::-webkit-calendar-picker-indicator]:jsgd-w-6 [&::-webkit-calendar-picker-indicator]:jsgd-h-6", {
5733
5734
  "jsgd-border-red-400 focus:jsgd-ring-red-500/20 dark:jsgd-border-red-400 dark:focus:jsgd-ring-red-400/25": d.value.length || t.error
5734
5735
  }])
5735
- }, null, 42, Ln)
5736
+ }, null, 42, Vn)
5736
5737
  ]),
5737
- (f(!0), k(ee, null, de(d.value, (l, b) => (f(), k("p", {
5738
- key: b,
5738
+ (f(!0), k(ee, null, de(d.value, (l, p) => (f(), k("p", {
5739
+ key: p,
5739
5740
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
5740
5741
  }, F(l), 1))), 128)),
5741
- typeof e.error == "string" && d.value.length === 0 ? (f(), k("p", zn, F(t.error), 1)) : V("", !0)
5742
+ typeof e.error == "string" && d.value.length === 0 ? (f(), k("p", Ln, F(t.error), 1)) : V("", !0)
5742
5743
  ]));
5743
5744
  }
5744
- }), On = { class: "jsgd-w-full jsgd-mb-6 jsgd-flex jsgd-justify-between jsgd-items-center jsgd-gap-4" }, Pn = ["for"], Bn = ["id", "aria-checked", "disabled"], Rn = /* @__PURE__ */ oe({
5745
+ }), Fn = { class: "jsgd-w-full jsgd-mb-6 jsgd-flex jsgd-justify-between jsgd-items-center jsgd-gap-4" }, On = ["for"], Pn = ["id", "aria-checked", "disabled"], Bn = /* @__PURE__ */ oe({
5745
5746
  __name: "ToggleInput",
5746
5747
  props: {
5747
5748
  id: { default: fe() },
@@ -5758,11 +5759,11 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5758
5759
  function j() {
5759
5760
  e.disabled || c("update:modelValue", !e.modelValue, e.id);
5760
5761
  }
5761
- return (d, g) => (f(), k("div", On, [
5762
+ return (d, g) => (f(), k("div", Fn, [
5762
5763
  i("label", {
5763
5764
  for: t.id,
5764
5765
  class: "jsgd-text-base jsgd-font-medium jsgd-text-slate-900 jsgd-transition-colors jsgd-duration-200 jsgd-flex-grow dark:jsgd-text-slate-100"
5765
- }, F(t.label), 9, Pn),
5766
+ }, F(t.label), 9, On),
5766
5767
  i("button", {
5767
5768
  id: t.id,
5768
5769
  type: "button",
@@ -5784,13 +5785,13 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5784
5785
  t.modelValue ? "jsgd-left-3 jsgd-text-white jsgd-opacity-100" : "jsgd-right-3 jsgd-text-slate-600 jsgd-opacity-100 dark:jsgd-text-slate-300"
5785
5786
  ])
5786
5787
  }, F(t.modelValue ? m(n)?.btn.toogle.active : m(n)?.btn.toogle.inactive), 3)
5787
- ], 10, Bn)
5788
+ ], 10, Pn)
5788
5789
  ]));
5789
5790
  }
5790
- }), Un = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, qn = ["for"], Kn = { class: "jsgd-relative" }, Hn = ["id", "value", "disabled", "placeholder"], Nn = {
5791
+ }), Rn = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, Un = ["for"], qn = { class: "jsgd-relative" }, Kn = ["id", "value", "disabled", "placeholder"], Hn = {
5791
5792
  key: 0,
5792
5793
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
5793
- }, Wn = /* @__PURE__ */ oe({
5794
+ }, Nn = /* @__PURE__ */ oe({
5794
5795
  __name: "UrlInput",
5795
5796
  props: {
5796
5797
  id: { default: fe() },
@@ -5807,9 +5808,9 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5807
5808
  const e = z(void 0), u = z(), n = t, j = le("TableComponents", {
5808
5809
  labels: z(me[n.lang ?? "en"])
5809
5810
  }).labels, d = o;
5810
- function g(p) {
5811
+ function g(b) {
5811
5812
  if (n.disabled) return;
5812
- const y = p.target;
5813
+ const y = b.target;
5813
5814
  if (d("update:modelValue", y.value, n.id), !y.value) {
5814
5815
  e.value = void 0, d("remove:error", n.id);
5815
5816
  return;
@@ -5826,12 +5827,12 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5826
5827
  u.value = n.error || e.value || "";
5827
5828
  },
5828
5829
  { deep: !0 }
5829
- ), (p, y) => (f(), k("div", Un, [
5830
+ ), (b, y) => (f(), k("div", Rn, [
5830
5831
  i("label", {
5831
5832
  for: t.id,
5832
5833
  class: H(["jsgd-inline-flex jsgd-items-center jsgd-gap-2 jsgd-text-sm jsgd-font-medium jsgd-mb-2 jsgd-text-slate-900 jsgd-transition-colors jsgd-duration-200 dark:jsgd-text-slate-100", { "jsgd-text-red-500 dark:jsgd-text-red-400": u.value }])
5833
- }, F(t.label), 11, qn),
5834
- i("div", Kn, [
5834
+ }, F(t.label), 11, Un),
5835
+ i("div", qn, [
5835
5836
  y[0] || (y[0] = i("div", { class: "jsgd-absolute jsgd-left-3 jsgd-top-1/2 -jsgd-translate-y-1/2 jsgd-text-slate-400 jsgd-pointer-events-none" }, [
5836
5837
  i("p", { class: "jsgd-i-mdi-link-variant jsgd-w-5 jsgd-h-5" })
5837
5838
  ], -1)),
@@ -5845,9 +5846,9 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5845
5846
  "jsgd-border-red-400 focus:jsgd-ring-red-500/20 dark:jsgd-border-red-400 dark:focus:jsgd-ring-red-400/25": u.value
5846
5847
  }]),
5847
5848
  placeholder: t.placeholder ?? m(j)?.placeholder.url + ": https://example.com"
5848
- }, null, 42, Hn)
5849
+ }, null, 42, Kn)
5849
5850
  ]),
5850
- u.value ? (f(), k("p", Nn, F(u.value), 1)) : V("", !0)
5851
+ u.value ? (f(), k("p", Hn, F(u.value), 1)) : V("", !0)
5851
5852
  ]));
5852
5853
  }
5853
5854
  }), ft = /* @__PURE__ */ oe({
@@ -5876,9 +5877,9 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5876
5877
  const r = X(u.value, e.fieldKey);
5877
5878
  return !r && !e.isUpdate ? (c("update:model-value", j.value, e.fieldKey), j.value) : (e.field.type === "dateTime", r);
5878
5879
  }
5879
- const { label: g, handlers: p } = Ga(e, c);
5880
+ const { label: g, handlers: b } = Wa(e, c);
5880
5881
  return (y, r) => (f(), k("div", null, [
5881
- t.field.type === "text" ? (f(), Z(m(Dn), {
5882
+ t.field.type === "text" ? (f(), Z(m(Cn), {
5882
5883
  key: 0,
5883
5884
  id: t.fieldKey,
5884
5885
  label: m(g),
@@ -5889,10 +5890,10 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5889
5890
  lang: t.lang,
5890
5891
  placeholder: t.field.placeholder,
5891
5892
  "onUpdate:modelValue": r[0] || (r[0] = (a) => y.$emit("update:model-value", a, t.fieldKey)),
5892
- "onRemove:error": m(p).removeError,
5893
- "onPush:error": m(p).pushError
5893
+ "onRemove:error": m(b).removeError,
5894
+ "onPush:error": m(b).pushError
5894
5895
  }, null, 8, ["id", "label", "model-value", "error", "disabled", "validate", "lang", "placeholder", "onRemove:error", "onPush:error"])) : V("", !0),
5895
- t.field.type === "number" ? (f(), Z(m(Zl), {
5896
+ t.field.type === "number" ? (f(), Z(m(Gl), {
5896
5897
  key: 1,
5897
5898
  id: t.fieldKey,
5898
5899
  label: m(g),
@@ -5903,10 +5904,10 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5903
5904
  lang: t.lang,
5904
5905
  validate: t.field.validate,
5905
5906
  "onUpdate:modelValue": r[1] || (r[1] = (a) => y.$emit("update:model-value", a, t.fieldKey)),
5906
- "onRemove:error": m(p).removeError,
5907
- "onPush:error": m(p).pushError
5907
+ "onRemove:error": m(b).removeError,
5908
+ "onPush:error": m(b).pushError
5908
5909
  }, null, 8, ["id", "label", "placeholder", "model-value", "error", "disabled", "lang", "validate", "onRemove:error", "onPush:error"])) : V("", !0),
5909
- t.field.type === "email" ? (f(), Z(m(Ir), {
5910
+ t.field.type === "email" ? (f(), Z(m(Dr), {
5910
5911
  key: 2,
5911
5912
  id: t.fieldKey,
5912
5913
  label: m(g),
@@ -5917,10 +5918,10 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5917
5918
  validate: t.field.validate,
5918
5919
  lang: t.lang,
5919
5920
  "onUpdate:modelValue": r[2] || (r[2] = (a) => y.$emit("update:model-value", a, t.fieldKey)),
5920
- "onRemove:error": m(p).removeError,
5921
- "onPush:error": m(p).pushError
5921
+ "onRemove:error": m(b).removeError,
5922
+ "onPush:error": m(b).pushError
5922
5923
  }, null, 8, ["id", "label", "placeholder", "model-value", "error", "disabled", "validate", "lang", "onRemove:error", "onPush:error"])) : V("", !0),
5923
- t.field.type === "tag" ? (f(), Z(m(un), {
5924
+ t.field.type === "tag" ? (f(), Z(m(gn), {
5924
5925
  key: 3,
5925
5926
  id: t.fieldKey,
5926
5927
  label: m(g),
@@ -5932,7 +5933,7 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5932
5933
  validate: t.field.validate,
5933
5934
  "onUpdate:modelValue": r[3] || (r[3] = (a) => y.$emit("update:model-value", a, t.fieldKey))
5934
5935
  }, null, 8, ["id", "label", "placeholder", "model-value", "error", "disabled", "lang", "validate"])) : V("", !0),
5935
- t.field.type === "toggle" ? (f(), Z(m(Rn), {
5936
+ t.field.type === "toggle" ? (f(), Z(m(Bn), {
5936
5937
  key: 4,
5937
5938
  id: t.fieldKey,
5938
5939
  label: m(g),
@@ -5942,7 +5943,7 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5942
5943
  lang: t.lang,
5943
5944
  "onUpdate:modelValue": r[4] || (r[4] = (a) => y.$emit("update:model-value", a, t.fieldKey))
5944
5945
  }, null, 8, ["id", "label", "model-value", "error", "disabled", "lang"])) : V("", !0),
5945
- t.field.type === "url" ? (f(), Z(m(Wn), {
5946
+ t.field.type === "url" ? (f(), Z(m(Nn), {
5946
5947
  key: 5,
5947
5948
  id: t.fieldKey,
5948
5949
  label: m(g),
@@ -5953,10 +5954,10 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5953
5954
  validate: t.field.validate ?? !0,
5954
5955
  lang: t.lang,
5955
5956
  "onUpdate:modelValue": r[5] || (r[5] = (a) => y.$emit("update:model-value", a, t.fieldKey)),
5956
- "onRemove:error": r[6] || (r[6] = (a) => m(p).removeError(t.fieldKey)),
5957
- "onPush:error": r[7] || (r[7] = (a) => m(p).pushError(a, t.fieldKey))
5957
+ "onRemove:error": r[6] || (r[6] = (a) => m(b).removeError(t.fieldKey)),
5958
+ "onPush:error": r[7] || (r[7] = (a) => m(b).pushError(a, t.fieldKey))
5958
5959
  }, null, 8, ["id", "label", "placeholder", "model-value", "error", "disabled", "validate", "lang"])) : V("", !0),
5959
- t.field.type === "password" ? (f(), Z(m(dn), {
5960
+ t.field.type === "password" ? (f(), Z(m(an), {
5960
5961
  key: 6,
5961
5962
  id: t.fieldKey,
5962
5963
  label: m(g),
@@ -5967,10 +5968,10 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5967
5968
  disabled: t.field.disabled,
5968
5969
  validate: t.field.validate,
5969
5970
  "onUpdate:modelValue": r[8] || (r[8] = (a) => y.$emit("update:model-value", a, t.fieldKey)),
5970
- "onRemove:error": m(p).removeError,
5971
- "onPush:error": m(p).pushError
5971
+ "onRemove:error": m(b).removeError,
5972
+ "onPush:error": m(b).pushError
5972
5973
  }, null, 8, ["id", "label", "lang", "placeholder", "model-value", "error", "disabled", "validate", "onRemove:error", "onPush:error"])) : V("", !0),
5973
- t.field.type === "richText" ? (f(), Z(m($n), {
5974
+ t.field.type === "richText" ? (f(), Z(m(Sn), {
5974
5975
  key: 7,
5975
5976
  id: t.fieldKey,
5976
5977
  label: m(g),
@@ -5980,10 +5981,10 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5980
5981
  lang: t.lang,
5981
5982
  validate: t.field.validate,
5982
5983
  "onUpdate:modelValue": r[9] || (r[9] = (a) => y.$emit("update:model-value", a, t.fieldKey)),
5983
- "onRemove:error": m(p).removeError,
5984
- "onPush:error": m(p).pushError
5984
+ "onRemove:error": m(b).removeError,
5985
+ "onPush:error": m(b).pushError
5985
5986
  }, null, 8, ["id", "label", "error", "model-value", "disabled", "lang", "validate", "onRemove:error", "onPush:error"])) : V("", !0),
5986
- t.field.type === "textArea" ? (f(), Z(m(hn), {
5987
+ t.field.type === "textArea" ? (f(), Z(m(fn), {
5987
5988
  key: 8,
5988
5989
  id: t.fieldKey,
5989
5990
  label: m(g),
@@ -5993,10 +5994,10 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
5993
5994
  lang: t.lang,
5994
5995
  validate: t.field.validate,
5995
5996
  "onUpdate:modelValue": r[10] || (r[10] = (a) => y.$emit("update:model-value", a, t.fieldKey)),
5996
- "onRemove:error": m(p).removeError,
5997
- "onPush:error": m(p).pushError
5997
+ "onRemove:error": m(b).removeError,
5998
+ "onPush:error": m(b).pushError
5998
5999
  }, null, 8, ["id", "label", "error", "model-value", "disabled", "lang", "validate", "onRemove:error", "onPush:error"])) : V("", !0),
5999
- t.field.type === "image" ? (f(), Z(m(ql), {
6000
+ t.field.type === "image" ? (f(), Z(m(Ul), {
6000
6001
  key: 9,
6001
6002
  id: t.fieldKey,
6002
6003
  label: m(g),
@@ -6007,11 +6008,11 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
6007
6008
  validate: t.field.validate,
6008
6009
  watermark: t.field.watermark,
6009
6010
  error: m(X)(n.value, t.fieldKey),
6010
- "onRemove:error": m(p).removeError,
6011
- "onPush:error": m(p).pushError,
6011
+ "onRemove:error": m(b).removeError,
6012
+ "onPush:error": m(b).pushError,
6012
6013
  lang: t.lang
6013
6014
  }, null, 8, ["id", "label", "model-value", "disabled", "preview-alt", "validate", "watermark", "error", "onRemove:error", "onPush:error", "lang"])) : V("", !0),
6014
- t.field.type === "imageArray" ? (f(), Z(m(Al), {
6015
+ t.field.type === "imageArray" ? (f(), Z(m($l), {
6015
6016
  key: 10,
6016
6017
  id: t.fieldKey,
6017
6018
  label: m(g),
@@ -6022,11 +6023,11 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
6022
6023
  validate: t.field.validate,
6023
6024
  watermark: t.field.watermark,
6024
6025
  error: m(X)(n.value, t.fieldKey),
6025
- "onRemove:error": m(p).removeError,
6026
- "onPush:error": m(p).pushError,
6026
+ "onRemove:error": m(b).removeError,
6027
+ "onPush:error": m(b).pushError,
6027
6028
  lang: t.lang
6028
6029
  }, null, 8, ["id", "label", "model-value", "disabled", "preview-alt", "validate", "watermark", "error", "onRemove:error", "onPush:error", "lang"])) : V("", !0),
6029
- t.field.type === "file" ? (f(), Z(m(al), {
6030
+ t.field.type === "file" ? (f(), Z(m(sl), {
6030
6031
  key: 11,
6031
6032
  id: t.fieldKey,
6032
6033
  label: m(g),
@@ -6036,11 +6037,11 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
6036
6037
  "onUpdate:modelValue": r[13] || (r[13] = (a) => y.$emit("update:model-value", a, t.fieldKey)),
6037
6038
  validate: t.field.validate,
6038
6039
  error: m(X)(n.value, t.fieldKey),
6039
- "onRemove:error": m(p).removeError,
6040
- "onPush:error": m(p).pushError,
6040
+ "onRemove:error": m(b).removeError,
6041
+ "onPush:error": m(b).pushError,
6041
6042
  lang: t.lang
6042
6043
  }, null, 8, ["id", "label", "model-value", "disabled", "preview-alt", "validate", "error", "onRemove:error", "onPush:error", "lang"])) : V("", !0),
6043
- t.field.type === "fileArray" ? (f(), Z(m(Nr), {
6044
+ t.field.type === "fileArray" ? (f(), Z(m(Hr), {
6044
6045
  key: 12,
6045
6046
  id: t.fieldKey,
6046
6047
  label: m(g),
@@ -6050,11 +6051,11 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
6050
6051
  "onUpdate:modelValue": r[14] || (r[14] = (a) => y.$emit("update:model-value", a, t.fieldKey)),
6051
6052
  validate: t.field.validate,
6052
6053
  error: m(X)(n.value, t.fieldKey),
6053
- "onRemove:error": m(p).removeError,
6054
- "onPush:error": m(p).pushError,
6054
+ "onRemove:error": m(b).removeError,
6055
+ "onPush:error": m(b).pushError,
6055
6056
  lang: t.lang
6056
6057
  }, null, 8, ["id", "label", "model-value", "disabled", "preview-alt", "validate", "error", "onRemove:error", "onPush:error", "lang"])) : V("", !0),
6057
- t.field.type === "color" ? (f(), Z(m(Jd), {
6058
+ t.field.type === "color" ? (f(), Z(m(Yd), {
6058
6059
  key: 13,
6059
6060
  id: t.fieldKey,
6060
6061
  label: m(g),
@@ -6066,7 +6067,7 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
6066
6067
  single: t.field.single,
6067
6068
  lang: t.lang
6068
6069
  }, null, 8, ["id", "label", "model-value", "error", "disabled", "validate", "single", "lang"])) : V("", !0),
6069
- t.field.type === "select" ? (f(), Z(m(mr), {
6070
+ t.field.type === "select" ? (f(), Z(m(cr), {
6070
6071
  key: 14,
6071
6072
  id: t.fieldKey,
6072
6073
  label: m(g),
@@ -6082,7 +6083,7 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
6082
6083
  "onUpdate:modelValue": r[16] || (r[16] = (a) => y.$emit("update:model-value", a, t.fieldKey)),
6083
6084
  lang: t.lang
6084
6085
  }, null, 8, ["id", "label", "options", "options-view", "type", "error", "required", "disabled", "model-value", "with-create", "demo", "lang"])) : V("", !0),
6085
- t.field.type === "object" ? (f(), Z(m(Xl), {
6086
+ t.field.type === "object" ? (f(), Z(m(Ql), {
6086
6087
  key: 15,
6087
6088
  id: t.fieldKey,
6088
6089
  label: m(g),
@@ -6092,12 +6093,12 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
6092
6093
  disabled: t.field.disabled,
6093
6094
  lang: t.lang,
6094
6095
  "onUpdate:modelValue": r[17] || (r[17] = (a, l) => y.$emit("update:model-value", a, l)),
6095
- "onRemove:errors": r[18] || (r[18] = (a) => m(p).removeError(a)),
6096
- "onPush:errors": r[19] || (r[19] = (a, l) => m(p).pushError(a, l)),
6096
+ "onRemove:errors": r[18] || (r[18] = (a) => m(b).removeError(a)),
6097
+ "onPush:errors": r[19] || (r[19] = (a, l) => m(b).pushError(a, l)),
6097
6098
  onMultiSelectedChange: r[20] || (r[20] = (a, l) => y.$emit("multi-selected-change", a, l)),
6098
6099
  onSelectedOptionChange: r[21] || (r[21] = (a, l) => y.$emit("selected-option-change", a, l))
6099
6100
  }, null, 8, ["id", "label", "schema", "form-data", "errors", "disabled", "lang"])) : V("", !0),
6100
- t.field.type === "arrayObject" ? (f(), Z(m(Kd), {
6101
+ t.field.type === "arrayObject" ? (f(), Z(m(qd), {
6101
6102
  key: 16,
6102
6103
  id: t.fieldKey,
6103
6104
  label: m(g),
@@ -6108,7 +6109,7 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
6108
6109
  lang: t.lang,
6109
6110
  "onUpdate:modelValue": r[22] || (r[22] = (a) => y.$emit("update:model-value", a, t.fieldKey))
6110
6111
  }, null, 8, ["id", "label", "model-value", "schema", "disabled", "error", "lang"])) : V("", !0),
6111
- t.field.type === "date" ? (f(), Z(m(vr), {
6112
+ t.field.type === "date" ? (f(), Z(m(pr), {
6112
6113
  key: 17,
6113
6114
  id: t.fieldKey,
6114
6115
  label: m(g),
@@ -6119,10 +6120,10 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
6119
6120
  validate: t.field.validate,
6120
6121
  lang: t.lang,
6121
6122
  "onUpdate:modelValue": r[23] || (r[23] = (a) => y.$emit("update:model-value", a, t.fieldKey)),
6122
- "onRemove:error": m(p).removeError,
6123
- "onPush:error": m(p).pushError
6123
+ "onRemove:error": m(b).removeError,
6124
+ "onPush:error": m(b).pushError
6124
6125
  }, null, 8, ["id", "label", "model-value", "error", "disabled", "placeholder", "validate", "lang", "onRemove:error", "onPush:error"])) : V("", !0),
6125
- t.field.type === "time" ? (f(), Z(m(Fn), {
6126
+ t.field.type === "time" ? (f(), Z(m(zn), {
6126
6127
  key: 18,
6127
6128
  id: t.fieldKey,
6128
6129
  label: m(g),
@@ -6133,10 +6134,10 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
6133
6134
  validate: t.field.validate,
6134
6135
  lang: t.lang,
6135
6136
  "onUpdate:modelValue": r[24] || (r[24] = (a) => y.$emit("update:model-value", a, t.fieldKey)),
6136
- "onRemove:error": m(p).removeError,
6137
- "onPush:error": m(p).pushError
6137
+ "onRemove:error": m(b).removeError,
6138
+ "onPush:error": m(b).pushError
6138
6139
  }, null, 8, ["id", "label", "model-value", "error", "disabled", "placeholder", "validate", "lang", "onRemove:error", "onPush:error"])) : V("", !0),
6139
- t.field.type === "dateTime" ? (f(), Z(m($r), {
6140
+ t.field.type === "dateTime" ? (f(), Z(m(Sr), {
6140
6141
  key: 19,
6141
6142
  id: t.fieldKey,
6142
6143
  label: m(g),
@@ -6148,10 +6149,10 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
6148
6149
  "output-format": t.field.outputFormat,
6149
6150
  lang: t.lang,
6150
6151
  "onUpdate:modelValue": r[25] || (r[25] = (a) => y.$emit("update:model-value", a, t.fieldKey)),
6151
- "onRemove:error": m(p).removeError,
6152
- "onPush:error": m(p).pushError
6152
+ "onRemove:error": m(b).removeError,
6153
+ "onPush:error": m(b).pushError
6153
6154
  }, null, 8, ["id", "label", "model-value", "error", "disabled", "placeholder", "validate", "output-format", "lang", "onRemove:error", "onPush:error"])) : V("", !0),
6154
- t.field.type === "optionGroupSchema" ? (f(), Z(m(fl), {
6155
+ t.field.type === "optionGroupSchema" ? (f(), Z(m(jl), {
6155
6156
  key: 20,
6156
6157
  id: t.fieldKey,
6157
6158
  label: m(g),
@@ -6167,8 +6168,8 @@ const sr = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, ar = { class: "jsgd
6167
6168
  onMultiSelectedChange: r[26] || (r[26] = (a, l) => y.$emit("multi-selected-change", a, l)),
6168
6169
  onSelectedOptionChange: r[27] || (r[27] = (a, l) => y.$emit("selected-option-change", a, l)),
6169
6170
  "onUpdate:modelValue": r[28] || (r[28] = (a, l) => y.$emit("update:model-value", a, l)),
6170
- "onRemove:error": m(p).removeError,
6171
- "onPush:error": m(p).pushError
6171
+ "onRemove:error": m(b).removeError,
6172
+ "onPush:error": m(b).pushError
6172
6173
  }, null, 8, ["id", "label", "type-design", "options", "options-labels", "required", "disabled", "form-data", "errors", "error", "with-value", "onRemove:error", "onPush:error"])) : V("", !0)
6173
6174
  ]));
6174
6175
  }
@@ -6179,14 +6180,14 @@ const be = {
6179
6180
  array: /* @__PURE__ */ new Set()
6180
6181
  };
6181
6182
  let Ct = !1;
6182
- function Gn(t) {
6183
+ function Wn(t) {
6183
6184
  Ct || (Ct = !0, ht = t.dbName || ht, os = t.dbVersion || os, Tt = t.storeSingle || [], Mt = t.storeArray || [], Tt.forEach((o) => be.single.add(o)), Mt.forEach((o) => be.array.add(o)));
6184
6185
  }
6185
6186
  function gs(t) {
6186
6187
  return be.array.has(t);
6187
6188
  }
6188
6189
  async function Fe(t = []) {
6189
- Ct || Gn({}), t.forEach(Zn);
6190
+ Ct || Wn({}), t.forEach(Gn);
6190
6191
  const o = await new Promise((j, d) => {
6191
6192
  const g = indexedDB.open(ht);
6192
6193
  g.onsuccess = () => j(g.result), g.onerror = () => d(g.error);
@@ -6202,8 +6203,8 @@ async function Fe(t = []) {
6202
6203
  const c = o.version;
6203
6204
  return o.close(), new Promise((j, d) => {
6204
6205
  const g = indexedDB.open(ht, c + 1);
6205
- g.onupgradeneeded = (p) => {
6206
- const y = p.target.result, r = new Set(Array.from(y.objectStoreNames));
6206
+ g.onupgradeneeded = (b) => {
6207
+ const y = b.target.result, r = new Set(Array.from(y.objectStoreNames));
6207
6208
  be.single.forEach((a) => {
6208
6209
  r.has(a) || y.createObjectStore(a);
6209
6210
  }), be.array.forEach((a) => {
@@ -6212,7 +6213,7 @@ async function Fe(t = []) {
6212
6213
  }, g.onsuccess = () => j(g.result), g.onerror = () => d(g.error);
6213
6214
  });
6214
6215
  }
6215
- function Zn(t) {
6216
+ function Gn(t) {
6216
6217
  const o = Tt.includes(t) || be.single.has(t), e = Mt.includes(t) || be.array.has(t);
6217
6218
  !o && !e && be.array.add(t);
6218
6219
  }
@@ -6229,7 +6230,7 @@ async function ct(t) {
6229
6230
  u.oncomplete = () => n(), u.onerror = () => c(u.error);
6230
6231
  });
6231
6232
  }
6232
- async function ai(t, o = "current") {
6233
+ async function ti(t, o = "current") {
6233
6234
  be.single.add(t);
6234
6235
  const e = await Fe([t]);
6235
6236
  if (!e.objectStoreNames.contains(t)) return;
@@ -6256,7 +6257,7 @@ async function cs(t, o) {
6256
6257
  u.oncomplete = () => c(), u.onerror = () => j(u.error);
6257
6258
  });
6258
6259
  }
6259
- async function di(t, o) {
6260
+ async function si(t, o) {
6260
6261
  be.array.add(t);
6261
6262
  const e = await Fe([t]);
6262
6263
  if (!e.objectStoreNames.contains(t)) return;
@@ -6266,7 +6267,7 @@ async function di(t, o) {
6266
6267
  d.onsuccess = () => c(d.result), d.onerror = () => j(d.error);
6267
6268
  });
6268
6269
  }
6269
- async function ri(t) {
6270
+ async function ai(t) {
6270
6271
  const o = await Fe([t]);
6271
6272
  if (!o.objectStoreNames.contains(t)) return;
6272
6273
  const e = o.transaction(t, "readwrite");
@@ -6274,7 +6275,7 @@ async function ri(t) {
6274
6275
  e.oncomplete = () => u(), e.onerror = () => n(e.error);
6275
6276
  });
6276
6277
  }
6277
- async function li(t, o) {
6278
+ async function di(t, o) {
6278
6279
  be.array.add(t);
6279
6280
  const e = await Fe([t]);
6280
6281
  if (!e.objectStoreNames.contains(t)) {
@@ -6296,7 +6297,7 @@ async function ms(t) {
6296
6297
  for (const [c, j] of Object.entries(t)) {
6297
6298
  if (!u.includes(c)) continue;
6298
6299
  const d = n.objectStore(c);
6299
- (Array.isArray(j) ? j : [j]).forEach((p) => d.delete(p));
6300
+ (Array.isArray(j) ? j : [j]).forEach((b) => d.delete(b));
6300
6301
  }
6301
6302
  return new Promise((c, j) => {
6302
6303
  n.oncomplete = () => c(), n.onerror = () => j(n.error);
@@ -6307,8 +6308,8 @@ async function $t(t, o = {}) {
6307
6308
  if (e === "bearer" && u)
6308
6309
  j.set("Authorization", `Bearer ${u}`);
6309
6310
  else if (e === "custom" && n)
6310
- for (const [g, p] of Object.entries(n))
6311
- j.set(g, p);
6311
+ for (const [g, b] of Object.entries(n))
6312
+ j.set(g, b);
6312
6313
  const d = await fetch(t, {
6313
6314
  ...c,
6314
6315
  headers: j,
@@ -6321,79 +6322,79 @@ async function $t(t, o = {}) {
6321
6322
  } catch {
6322
6323
  g = null;
6323
6324
  }
6324
- const p = {
6325
+ const b = {
6325
6326
  status: d.status,
6326
6327
  message: g?.message ?? g?.error ?? g?.errors ?? d.statusText ?? "Unknown error"
6327
6328
  };
6328
- return Promise.reject(p);
6329
+ return Promise.reject(b);
6329
6330
  }
6330
6331
  return d;
6331
6332
  }
6332
6333
  export {
6333
- Xa as $,
6334
- ti as A,
6334
+ Qa as $,
6335
+ _n as A,
6335
6336
  ns as B,
6336
- si as C,
6337
- Gn as D,
6337
+ ei as C,
6338
+ Wn as D,
6338
6339
  gs as E,
6339
6340
  vs as F,
6340
6341
  ct as G,
6341
- ai as H,
6342
+ ti as H,
6342
6343
  us as I,
6343
6344
  cs as J,
6344
- di as K,
6345
- Dd as L,
6346
- ri as M,
6347
- li as N,
6345
+ si as K,
6346
+ Cd as L,
6347
+ ai as M,
6348
+ di as N,
6348
6349
  ms as O,
6349
6350
  $t as P,
6350
- Za as Q,
6351
+ Ga as Q,
6351
6352
  tt as R,
6352
- Ya as S,
6353
- $n as T,
6353
+ Za as S,
6354
+ Sn as T,
6354
6355
  fe as U,
6355
- Ja as V,
6356
+ Ya as V,
6356
6357
  ss as W,
6357
6358
  X,
6358
6359
  Ae as Y,
6359
- Qa as Z,
6360
+ Ja as Z,
6360
6361
  ft as _,
6361
6362
  xe as a,
6362
6363
  ds as a0,
6363
- _a as a1,
6364
- ed as a2,
6365
- td as a3,
6366
- sd as a4,
6364
+ Xa as a1,
6365
+ _a as a2,
6366
+ ed as a3,
6367
+ td as a4,
6367
6368
  qe as a5,
6368
6369
  rs as a6,
6369
- Xn as a7,
6370
+ Jn as a7,
6370
6371
  E as a8,
6371
- er as a9,
6372
+ _d as a9,
6372
6373
  It as aa,
6373
6374
  mt as ab,
6374
- Kd as b,
6375
- Jd as c,
6376
- mr as d,
6377
- vr as e,
6378
- $r as f,
6379
- Ir as g,
6380
- Nr as h,
6381
- al as i,
6382
- fl as j,
6383
- Al as k,
6384
- ql as l,
6385
- Zl as m,
6386
- Xl as n,
6387
- dn as o,
6388
- un as p,
6389
- hn as q,
6390
- Dn as r,
6391
- Fn as s,
6392
- Rn as t,
6393
- Wn as u,
6375
+ qd as b,
6376
+ Yd as c,
6377
+ cr as d,
6378
+ pr as e,
6379
+ Sr as f,
6380
+ Dr as g,
6381
+ Hr as h,
6382
+ sl as i,
6383
+ jl as j,
6384
+ $l as k,
6385
+ Ul as l,
6386
+ Gl as m,
6387
+ Ql as n,
6388
+ an as o,
6389
+ gn as p,
6390
+ fn as q,
6391
+ Cn as r,
6392
+ zn as s,
6393
+ Bn as t,
6394
+ Nn as u,
6394
6395
  ps as v,
6395
6396
  et as w,
6396
6397
  me as x,
6397
- _n as y,
6398
- ei as z
6398
+ Qn as y,
6399
+ Xn as z
6399
6400
  };