@jsg-developer/vue-pack 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/README.md +16 -66
  2. package/dist/chunks/ArrayObject-CC-LVTui.es.js +4 -0
  3. package/dist/chunks/{ArrayObject-Dqa0clzu.cjs.js → ArrayObject-CGzlqVE4.cjs.js} +1 -1
  4. package/dist/chunks/{ColorPicker-CEsbb5Ag.cjs.js → ColorPicker-B-7lnPz_.cjs.js} +1 -1
  5. package/dist/chunks/ColorPicker-DWajlDz5.es.js +4 -0
  6. package/dist/chunks/{ComboboxComponent-DtoaVSR4.cjs.js → ComboboxComponent-6WfHYEwL.cjs.js} +1 -1
  7. package/dist/chunks/ComboboxComponent-RENQ1FXI.es.js +4 -0
  8. package/dist/chunks/CurrencyInput-CmGrI2Vy.es.js +4 -0
  9. package/dist/chunks/{CurrencyInput-DTIcqJ1a.cjs.js → CurrencyInput-Dzho-dGX.cjs.js} +1 -1
  10. package/dist/chunks/{DateInput-C0SOusmw.cjs.js → DateInput-G26GgCwa.cjs.js} +1 -1
  11. package/dist/chunks/DateInput-J06kg5C-.es.js +4 -0
  12. package/dist/chunks/{DateTimeInput-DbpV0Qce.cjs.js → DateTimeInput-BDjAaSxl.cjs.js} +1 -1
  13. package/dist/chunks/{DateTimeInput-BZAT0grx.es.js → DateTimeInput-DYcjPrwh.es.js} +1 -1
  14. package/dist/chunks/{DateTimeInput.vue_vue_type_script_setup_true_lang-FyVamvm3.cjs.js → DateTimeInput.vue_vue_type_script_setup_true_lang-CEMOLDbR.cjs.js} +1 -1
  15. package/dist/chunks/{DateTimeInput.vue_vue_type_script_setup_true_lang-DYyoakjs.es.js → DateTimeInput.vue_vue_type_script_setup_true_lang-DLvsYOFE.es.js} +1 -1
  16. package/dist/chunks/EmailInput-Did4kNYA.es.js +4 -0
  17. package/dist/chunks/{EmailInput-Bj1hOlZq.cjs.js → EmailInput-mVz5VWCr.cjs.js} +1 -1
  18. package/dist/chunks/{FileArrayInput-BRvQ9JCt.es.js → FileArrayInput-C5drCF6p.es.js} +2 -2
  19. package/dist/chunks/{FileArrayInput-QS2XM7US.cjs.js → FileArrayInput-sF9cSGx6.cjs.js} +1 -1
  20. package/dist/chunks/{FileArrayInput.vue_vue_type_script_setup_true_lang-CKH_wEse.es.js → FileArrayInput.vue_vue_type_script_setup_true_lang-BC-fFxew.es.js} +1 -1
  21. package/dist/chunks/{FileArrayInput.vue_vue_type_script_setup_true_lang-CyOGfL5U.cjs.js → FileArrayInput.vue_vue_type_script_setup_true_lang-C1s1YDCy.cjs.js} +1 -1
  22. package/dist/chunks/FileInput-DEk9Pscj.es.js +4 -0
  23. package/dist/chunks/{FileInput-BHGryD14.cjs.js → FileInput-skfda07B.cjs.js} +1 -1
  24. package/dist/chunks/{GroupRenderer-BmfWEPk1.cjs.js → GroupRenderer-BvBpL8Bq.cjs.js} +1 -1
  25. package/dist/chunks/GroupRenderer-D_3hmVS4.es.js +4 -0
  26. package/dist/chunks/{ImageArrayInput-B-pILI_I.es.js → ImageArrayInput-CbJzqdrg.es.js} +2 -2
  27. package/dist/chunks/{ImageArrayInput-DFnXWcsl.cjs.js → ImageArrayInput-Cn1-cDwf.cjs.js} +1 -1
  28. package/dist/chunks/{ImageArrayInput.vue_vue_type_script_setup_true_lang-BIwMeD6G.cjs.js → ImageArrayInput.vue_vue_type_script_setup_true_lang-BHfmeojG.cjs.js} +1 -1
  29. package/dist/chunks/{ImageArrayInput.vue_vue_type_script_setup_true_lang-1D9mZZ7m.es.js → ImageArrayInput.vue_vue_type_script_setup_true_lang-EJntCDiU.es.js} +1 -1
  30. package/dist/chunks/{ImageInput-CSNbCtqh.cjs.js → ImageInput-BtNhmF5M.cjs.js} +1 -1
  31. package/dist/chunks/ImageInput-hwY64_P3.es.js +4 -0
  32. package/dist/chunks/NumberInput-0l-TANaP.es.js +4 -0
  33. package/dist/chunks/{NumberInput-D5mN1V1M.cjs.js → NumberInput-BMznnD_p.cjs.js} +1 -1
  34. package/dist/chunks/{ObjectInput-DR0aOSLh.cjs.js → ObjectInput-BEGBttyq.cjs.js} +1 -1
  35. package/dist/chunks/ObjectInput-DA7Hfck0.es.js +4 -0
  36. package/dist/chunks/{PasswordInput-DdG4fb10.cjs.js → PasswordInput-DVnZLrab.cjs.js} +1 -1
  37. package/dist/chunks/PasswordInput-DxSoZlRM.es.js +4 -0
  38. package/dist/chunks/RateInput-LQcqAf2f.es.js +4 -0
  39. package/dist/chunks/{RateInput-D4PLWJsQ.cjs.js → RateInput-hNeff8s7.cjs.js} +1 -1
  40. package/dist/chunks/{TabelData-BK_AEoh6.cjs.js → TabelData-Ct-CexJm.cjs.js} +1 -1
  41. package/dist/chunks/{TabelData-BHcz4exi.es.js → TabelData-Dz9sLYJR.es.js} +1 -1
  42. package/dist/chunks/TagInput-Cc7wwjcX.es.js +4 -0
  43. package/dist/chunks/{TagInput-Cr_dgIv1.cjs.js → TagInput-D7Jt9ghP.cjs.js} +1 -1
  44. package/dist/chunks/TelInput-DDqFalm6.es.js +4 -0
  45. package/dist/chunks/{TelInput-C5MYts-b.cjs.js → TelInput-DPwx7ozA.cjs.js} +1 -1
  46. package/dist/chunks/{TextAreaInput-CVZds8O-.cjs.js → TextAreaInput-Bm1U-giD.cjs.js} +1 -1
  47. package/dist/chunks/TextAreaInput-LkFerA8R.es.js +4 -0
  48. package/dist/chunks/{TextAreaQuill-XwQgVWLw.cjs.js → TextAreaQuill-BUmElXSq.cjs.js} +1 -1
  49. package/dist/chunks/{TextAreaQuill-CtpmFHK7.es.js → TextAreaQuill-PSKHjt67.es.js} +1 -1
  50. package/dist/chunks/{TextInput-BcOxjfnX.cjs.js → TextInput-BePpVfyt.cjs.js} +1 -1
  51. package/dist/chunks/TextInput-oBJKDYmM.es.js +4 -0
  52. package/dist/chunks/{TimeInput-DP9dzBSv.cjs.js → TimeInput-Bz62wZi1.cjs.js} +1 -1
  53. package/dist/chunks/TimeInput-DrXYIRmu.es.js +4 -0
  54. package/dist/chunks/ToggleInput-7phZ6wcS.es.js +4 -0
  55. package/dist/chunks/{ToggleInput-BQJ9Z0_X.cjs.js → ToggleInput-Dp4Lv_6z.cjs.js} +1 -1
  56. package/dist/chunks/{UrlInput-DpNGJGaX.cjs.js → UrlInput-ClHoXv2k.cjs.js} +1 -1
  57. package/dist/chunks/UrlInput-YQFu4Cb3.es.js +4 -0
  58. package/dist/chunks/resize-B3p3dEqX.cjs.js +12 -0
  59. package/dist/chunks/{resize-BA9Vve1P.es.js → resize-DjoINfaT.es.js} +686 -681
  60. package/dist/init.cjs.js +1 -1
  61. package/dist/init.es.js +1 -1
  62. package/dist/jsgd-vue-pack.cjs.js +1 -1
  63. package/dist/jsgd-vue-pack.es.js +7 -7
  64. package/dist/style.css +1 -1
  65. package/dist/vue.cjs.js +1 -1
  66. package/dist/vue.es.js +6 -6
  67. package/package.json +1 -1
  68. package/dist/chunks/ArrayObject-DDeI93dc.es.js +0 -4
  69. package/dist/chunks/ColorPicker-I60o5_GX.es.js +0 -4
  70. package/dist/chunks/ComboboxComponent-68U96D9p.es.js +0 -4
  71. package/dist/chunks/CurrencyInput-DGUkU3FD.es.js +0 -4
  72. package/dist/chunks/DateInput-Co6VpTHT.es.js +0 -4
  73. package/dist/chunks/EmailInput-qqhKRmvT.es.js +0 -4
  74. package/dist/chunks/FileInput-DxTlDCLx.es.js +0 -4
  75. package/dist/chunks/GroupRenderer-DMAdfCgE.es.js +0 -4
  76. package/dist/chunks/ImageInput-CRCYTGxc.es.js +0 -4
  77. package/dist/chunks/NumberInput-JR5PkxyV.es.js +0 -4
  78. package/dist/chunks/ObjectInput-Dqfri61J.es.js +0 -4
  79. package/dist/chunks/PasswordInput-U7M7le-1.es.js +0 -4
  80. package/dist/chunks/RateInput-RaBWxAY-.es.js +0 -4
  81. package/dist/chunks/TagInput-Bm2yhHqX.es.js +0 -4
  82. package/dist/chunks/TelInput-DcBE7hlb.es.js +0 -4
  83. package/dist/chunks/TextAreaInput-Cggq_qmY.es.js +0 -4
  84. package/dist/chunks/TextInput-fKC87ySl.es.js +0 -4
  85. package/dist/chunks/TimeInput-CbrXOhwB.es.js +0 -4
  86. package/dist/chunks/ToggleInput-i8LrK8Ut.es.js +0 -4
  87. package/dist/chunks/UrlInput-ckEhZgRN.es.js +0 -4
  88. package/dist/chunks/resize-DDw7Ie92.cjs.js +0 -12
@@ -1,8 +1,8 @@
1
- import { ref as A, inject as ae, computed as Z, watch as se, toRaw as Te, defineComponent as re, onMounted as Oe, onUnmounted as Tt, createBlock as J, openBlock as m, Transition as Ce, withCtx as ue, createElementVNode as n, createVNode as Ie, normalizeClass as R, createElementBlock as w, createCommentVNode as $, toDisplayString as M, unref as a, TransitionGroup as Et, Fragment as X, renderList as te, createTextVNode as _, withModifiers as Ve, normalizeStyle as Pe, defineAsyncComponent as de, resolveDynamicComponent as Lt, renderSlot as Pt, Teleport as Rt, nextTick as zt, withDirectives as tt, vModelText as xt, createStaticVNode as yt, isRef as Bt, vModelCheckbox as Ut, withKeys as Kt } from "vue";
1
+ import { ref as A, inject as ae, computed as Z, watch as se, toRaw as Te, defineComponent as le, onMounted as Oe, onUnmounted as Vt, createBlock as J, openBlock as m, Transition as Ce, withCtx as ue, createElementVNode as n, createVNode as Ie, normalizeClass as R, createElementBlock as w, createCommentVNode as $, toDisplayString as M, unref as a, TransitionGroup as Tt, Fragment as X, renderList as te, createTextVNode as _, withModifiers as Ve, normalizeStyle as Pe, defineAsyncComponent as re, resolveDynamicComponent as Et, renderSlot as Lt, Teleport as Pt, nextTick as Rt, withDirectives as et, vModelText as vt, createStaticVNode as xt, isRef as zt, vModelCheckbox as Bt, withKeys as Ut } from "vue";
2
2
  import "dompurify";
3
3
  import ze from "lodash.isequal";
4
- import { ZodError as Ot } from "zod";
5
- function Ft(e, s) {
4
+ import { ZodError as Kt } from "zod";
5
+ function Ot(e, s) {
6
6
  const t = A([]), g = ae("TableComponents")?.labels, r = Z(() => `${e.field.label ?? e.fieldKey} ${e.field.required ? g.value.required ?? "*" : g.value.optional ?? "(Optional)"}`), l = (d, u) => [.../* @__PURE__ */ new Set([...d, ...u])];
7
7
  return {
8
8
  label: r,
@@ -18,20 +18,20 @@ function Ft(e, s) {
18
18
  mergeNumberArrays: l
19
19
  };
20
20
  }
21
- function Nt(e, s) {
21
+ function Ft(e, s) {
22
22
  for (e = Math.abs(e), s = Math.abs(s); s !== 0; ) {
23
23
  const t = e % s;
24
24
  e = s, s = t;
25
25
  }
26
26
  return e || 1;
27
27
  }
28
- function Ge(e, s) {
28
+ function We(e, s) {
29
29
  if (e === 0 || s === 0)
30
30
  return { w: e, h: s };
31
- const t = Nt(e, s);
31
+ const t = Ft(e, s);
32
32
  return { w: Math.round(e / t), h: Math.round(s / t) };
33
33
  }
34
- function nt(e, s) {
34
+ function lt(e, s) {
35
35
  if (s === 0)
36
36
  return `${e}:0`;
37
37
  const t = e / s, g = {
@@ -44,13 +44,13 @@ function nt(e, s) {
44
44
  for (const [o, d] of Object.entries(g))
45
45
  if (Math.abs(t - d) < r)
46
46
  return o;
47
- const l = Ge(e, s);
47
+ const l = We(e, s);
48
48
  return `${l.w}:${l.h}`;
49
49
  }
50
50
  function ce() {
51
51
  return Math.random().toString(36).substring(2, 9);
52
52
  }
53
- function qt(e, s) {
53
+ function Nt(e, s) {
54
54
  if (Array.isArray(e) && Array.isArray(s)) {
55
55
  if (e.length !== s.length) return !1;
56
56
  for (let t = 0; t < e.length; t++) if (e[t] !== s[t]) return !1;
@@ -58,8 +58,8 @@ function qt(e, s) {
58
58
  }
59
59
  return e === s;
60
60
  }
61
- function ot(e) {
62
- return Array.isArray(e) ? e.some(ot) : e && typeof e == "object" ? Object.values(e).some(ot) : typeof e == "string" ? e.trim().length > 0 : !1;
61
+ function nt(e) {
62
+ return Array.isArray(e) ? e.some(nt) : e && typeof e == "object" ? Object.values(e).some(nt) : typeof e == "string" ? e.trim().length > 0 : !1;
63
63
  }
64
64
  function W(e, s) {
65
65
  return s.split(".").reduce((t, g) => t?.[g], e);
@@ -68,7 +68,7 @@ function ve(e, s, t) {
68
68
  const g = s.split("."), r = g.pop(), l = g.reduce((o, d) => (o[d] || (o[d] = {}), o[d]), e);
69
69
  l[r] = t;
70
70
  }
71
- function Ht(e, s) {
71
+ function qt(e, s) {
72
72
  const t = s.split(".");
73
73
  let g = e;
74
74
  for (let l = 0; l < t.length - 1; l++) {
@@ -80,18 +80,18 @@ function Ht(e, s) {
80
80
  for (let l = t.length - 2; l >= 0; l--) {
81
81
  const o = t.slice(0, l + 1).join("."), d = W(e, o);
82
82
  if (d && typeof d == "object" && Object.keys(d).length === 0)
83
- Ht(e, o);
83
+ qt(e, o);
84
84
  else
85
85
  break;
86
86
  }
87
87
  }
88
- function it(e) {
88
+ function ot(e) {
89
89
  return e == null ? !0 : Array.isArray(e) ? e.length === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !1;
90
90
  }
91
- function Wt(e, s) {
91
+ function Ht(e, s) {
92
92
  const t = s.split("."), g = (r, l) => {
93
93
  if (!l.length || !r)
94
- return it(r);
94
+ return ot(r);
95
95
  const o = l[0], d = l.slice(1), u = /^\d+$/.test(o), v = u ? parseInt(o, 10) : -1;
96
96
  if (d.length === 0)
97
97
  Array.isArray(r) && u ? v < r.length && r.splice(v, 1) : typeof r == "object" && !Array.isArray(r) && delete r[o];
@@ -99,31 +99,31 @@ function Wt(e, s) {
99
99
  const x = Array.isArray(r) && u ? r[v] : r[o];
100
100
  g(x, d) && (Array.isArray(r) && u ? v < r.length && r.splice(v, 1) : typeof r == "object" && !Array.isArray(r) && delete r[o]);
101
101
  }
102
- return it(r);
102
+ return ot(r);
103
103
  };
104
104
  g(e, t);
105
105
  }
106
- function gt(e, s = "optionGroupSchema") {
106
+ function it(e, s = "optionGroupSchema") {
107
107
  const t = new RegExp(`(\\.?${s})+`, "g");
108
108
  return e.replace(t, "").replace(/\.+/g, ".").replace(/^\.|\.$/g, "");
109
109
  }
110
- const Gt = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, Jt = /^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/, Yt = /^([01]\d|2[0-3]):([0-5]\d)$/, Zt = /^[+]?[\d\s-]{7,15}$/, Xt = /^\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)?$/;
110
+ const Wt = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, Gt = /^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/, Jt = /^([01]\d|2[0-3]):([0-5]\d)$/, Yt = /^[+]?[\d\s-]{7,15}$/, Zt = /^\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)?$/;
111
111
  function Me(e) {
112
- if (!Jt.test(e))
112
+ if (!Gt.test(e))
113
113
  throw new Error(`Invalid DateOnly format: ${e}. Use YYYY-MM-DD`);
114
114
  return e;
115
115
  }
116
- function ut(e) {
117
- if (!Yt.test(e))
116
+ function gt(e) {
117
+ if (!Jt.test(e))
118
118
  throw new Error(`Invalid TimeOnly format: ${e}. Use HH:mm`);
119
119
  return e;
120
120
  }
121
- function Rr(e) {
122
- if (!Xt.test(e))
121
+ function Pr(e) {
122
+ if (!Zt.test(e))
123
123
  throw new Error(`Invalid DateTimeString format: ${e}. Use ISO YYYY-MM-DDTHH:mm[:ss]`);
124
124
  return e;
125
125
  }
126
- const kt = {
126
+ const yt = {
127
127
  en: "{label} is required",
128
128
  id: "{label} wajib diisi",
129
129
  es: "{label} es obligatorio",
@@ -517,7 +517,7 @@ const kt = {
517
517
  zh: "您最多只能上传 {max} 个文件",
518
518
  ja: "アップロードできるファイルは最大 {max} 件までです"
519
519
  }
520
- }, oe = {
520
+ }, ie = {
521
521
  en: {
522
522
  lang: "en",
523
523
  required: "(Required)",
@@ -1271,19 +1271,19 @@ const kt = {
1271
1271
  }
1272
1272
  }
1273
1273
  };
1274
- function zr(e, s) {
1275
- oe[e] = s;
1274
+ function Rr(e, s) {
1275
+ ie[e] = s;
1276
1276
  }
1277
- function Br(e, s) {
1278
- kt[e] = s;
1277
+ function zr(e, s) {
1278
+ yt[e] = s;
1279
1279
  }
1280
- function Ur(e, s, t) {
1280
+ function Br(e, s, t) {
1281
1281
  Le[e] || (Le[e] = {}), Le[e][s] = t;
1282
1282
  }
1283
- function ct(e, s) {
1284
- return kt[e].replace(/\{(\w+)\}/g, (g, r) => s[r] || "");
1283
+ function ut(e, s) {
1284
+ return yt[e].replace(/\{(\w+)\}/g, (g, r) => s[r] || "");
1285
1285
  }
1286
- function Qt(e, s, t, g, r) {
1286
+ function Xt(e, s, t, g, r) {
1287
1287
  const l = A({}), o = A([]), d = A({}), u = A({}), v = A({}), x = A({}), c = A({}), i = A(!1), j = A(null), h = Z(() => e.isUpdate ? Object.keys(l.value).some((b) => {
1288
1288
  const y = l.value[b], T = v.value[b];
1289
1289
  return Array.isArray(y) && Array.isArray(T) ? JSON.stringify(y) !== JSON.stringify(T) : y instanceof File ? !0 : y !== T;
@@ -1296,48 +1296,48 @@ function Qt(e, s, t, g, r) {
1296
1296
  { deep: !0, immediate: !0 }
1297
1297
  );
1298
1298
  function f() {
1299
- if (!e.seo) return;
1300
- const b = e.seo, y = l.value, T = b.title ? W(y, b.title) : "", P = b.description ? W(y, b.description) : "", U = b.focusKeyword ? W(y, b.focusKeyword) : "", z = b.news ? W(y, b.news) : "", H = document.createElement("div");
1299
+ if (typeof document > "u" || !e.seo) return;
1300
+ const b = e.seo, y = l.value, T = b.title ? W(y, b.title) : "", P = b.description ? W(y, b.description) : "", K = b.focusKeyword ? W(y, b.focusKeyword) : "", z = b.news ? W(y, b.news) : "", H = document.createElement("div");
1301
1301
  H.innerHTML = z || "";
1302
- const he = H.textContent || H.innerText || "", ne = he.toLowerCase().match(/[a-z0-9\u00C0-\u00FF]+/gi) || [], be = ne.length, ye = [];
1303
- let lt = 0, Fe = 0;
1304
- const me = (pe, ke, $e, we = 1) => {
1305
- ye.push({ passed: pe, message: ke, label: $e }), Fe += we, pe && (lt += we);
1302
+ const be = H.textContent || H.innerText || "", oe = be.toLowerCase().match(/[a-z0-9\u00C0-\u00FF]+/gi) || [], fe = oe.length, ye = [];
1303
+ let rt = 0, Fe = 0;
1304
+ const me = (pe, De, we, $e = 1) => {
1305
+ ye.push({ passed: pe, message: De, label: we }), Fe += $e, pe && (rt += $e);
1306
1306
  };
1307
- if (U && U.length > 2) {
1308
- const pe = U.toLowerCase(), ke = (T || "").toLowerCase();
1307
+ if (K && K.length > 2) {
1308
+ const pe = K.toLowerCase(), De = (T || "").toLowerCase();
1309
1309
  me(
1310
- ke.includes(pe),
1311
- ke.includes(pe) ? "Focus Keyword ada di Judul" : "Focus Keyword tidak ditemukan di Judul",
1310
+ De.includes(pe),
1311
+ De.includes(pe) ? "Focus Keyword ada di Judul" : "Focus Keyword tidak ditemukan di Judul",
1312
1312
  "Title Keyword",
1313
1313
  3
1314
1314
  );
1315
- const $e = (P || "").toLowerCase();
1315
+ const we = (P || "").toLowerCase();
1316
1316
  if (me(
1317
- $e.includes(pe),
1318
- $e.includes(pe) ? "Focus Keyword ada di Deskripsi" : "Focus Keyword tidak ditemukan di Meta Desc",
1317
+ we.includes(pe),
1318
+ we.includes(pe) ? "Focus Keyword ada di Deskripsi" : "Focus Keyword tidak ditemukan di Meta Desc",
1319
1319
  "Description Keyword",
1320
1320
  2
1321
1321
  ), b.news) {
1322
- const we = pe.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), Se = (he.toLowerCase().match(new RegExp(we, "g")) || []).length;
1322
+ const $e = pe.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), de = (be.toLowerCase().match(new RegExp($e, "g")) || []).length;
1323
1323
  if (me(
1324
- Se > 0,
1325
- Se > 0 ? `Focus Keyword muncul ${Se} kali` : "Focus Keyword tidak ada di konten",
1324
+ de > 0,
1325
+ de > 0 ? `Focus Keyword muncul ${de} kali` : "Focus Keyword tidak ada di konten",
1326
1326
  "Content Keyword Presence",
1327
1327
  3
1328
- ), be > 0 && Se > 0) {
1329
- const ie = Se / be * 100, fe = ie.toFixed(2);
1330
- ie > 3.5 ? me(
1328
+ ), fe > 0 && de > 0) {
1329
+ const he = de / fe * 100, ke = he.toFixed(2);
1330
+ he > 3.5 ? me(
1331
1331
  !1,
1332
- `Keyword Density terlalu tinggi (${fe}%). Terlalu banyak pengulangan!`,
1332
+ `Keyword Density terlalu tinggi (${ke}%). Terlalu banyak pengulangan!`,
1333
1333
  "Keyword Density",
1334
1334
  2
1335
- ) : ie < 0.3 ? me(
1335
+ ) : he < 0.3 ? me(
1336
1336
  !0,
1337
- `Keyword Density agak rendah (${fe}%), coba tambah sedikit lagi.`,
1337
+ `Keyword Density agak rendah (${ke}%), coba tambah sedikit lagi.`,
1338
1338
  "Keyword Density",
1339
1339
  1
1340
- ) : me(!0, `Keyword Density bagus (${fe}%).`, "Keyword Density", 2);
1340
+ ) : me(!0, `Keyword Density bagus (${ke}%).`, "Keyword Density", 2);
1341
1341
  }
1342
1342
  }
1343
1343
  } else
@@ -1357,50 +1357,55 @@ function Qt(e, s, t, g, r) {
1357
1357
  2
1358
1358
  ), b.news) {
1359
1359
  if (me(
1360
- be >= 300,
1361
- be >= 300 ? `Jumlah kata cukup (${be})` : `Konten terlalu pendek (${be}/300 kata)`,
1360
+ fe >= 300,
1361
+ fe >= 300 ? `Jumlah kata cukup (${fe})` : `Konten terlalu pendek (${fe}/300 kata)`,
1362
1362
  "Word Count",
1363
1363
  3
1364
- ), be > 50) {
1365
- const ie = {}, fe = U ? U.toLowerCase() : "";
1366
- ne.forEach((Ae) => {
1367
- Ae.length > 3 && Ae !== fe && (ie[Ae] = (ie[Ae] || 0) + 1);
1364
+ ), fe > 50) {
1365
+ const de = {}, he = K ? K.toLowerCase() : "";
1366
+ oe.forEach((Ae) => {
1367
+ Ae.length > 3 && Ae !== he && (de[Ae] = (de[Ae] || 0) + 1);
1368
1368
  });
1369
- const He = Object.entries(ie).filter(([Ae, Vt]) => Vt / be * 100 > 4.5).map(([Ae]) => Ae);
1369
+ const ke = Object.entries(de).filter(([Ae, It]) => It / fe * 100 > 4.5).map(([Ae]) => Ae);
1370
1370
  me(
1371
- He.length === 0,
1372
- He.length === 0 ? "Variasi kata bagus" : `Kata diulang berlebihan: "${He.slice(0, 3).join(", ")}..."`,
1371
+ ke.length === 0,
1372
+ ke.length === 0 ? "Variasi kata bagus" : `Kata diulang berlebihan: "${ke.slice(0, 3).join(", ")}..."`,
1373
1373
  "Repetitive Words",
1374
1374
  1
1375
1375
  );
1376
1376
  }
1377
- const pe = he.substring(0, 200).toLowerCase();
1378
- U && me(
1379
- pe.includes(U.toLowerCase()),
1380
- pe.includes(U.toLowerCase()) ? "Keyword ada di awal artikel" : "Keyword sebaiknya ada di paragraf 1",
1381
- "First Paragraph",
1382
- 1
1383
- );
1384
- const ke = H.getElementsByTagName("img");
1385
- if (ke.length > 0) {
1386
- let ie = 0;
1387
- for (let fe = 0; fe < ke.length; fe++)
1388
- ke[fe].getAttribute("alt") || ie++;
1377
+ if (be.length > 0) {
1378
+ const de = Math.min(be.length, 200), he = be.substring(0, de).toLowerCase();
1379
+ if (K) {
1380
+ const ke = K.toLowerCase();
1381
+ me(
1382
+ he.includes(ke),
1383
+ he.includes(ke) ? "Keyword ada di awal artikel" : "Keyword sebaiknya ada di paragraf 1",
1384
+ "First Paragraph",
1385
+ 1
1386
+ );
1387
+ }
1388
+ }
1389
+ const pe = H.getElementsByTagName("img");
1390
+ if (pe.length > 0) {
1391
+ let de = 0;
1392
+ for (let he = 0; he < pe.length; he++)
1393
+ pe[he].getAttribute("alt") || de++;
1389
1394
  me(
1390
- ie === 0,
1391
- ie === 0 ? `Gambar (${ke.length}) memiliki Alt Text` : `${ie} gambar tanpa Alt Text`,
1395
+ de === 0,
1396
+ de === 0 ? `Gambar (${pe.length}) memiliki Alt Text` : `${de} gambar tanpa Alt Text`,
1392
1397
  "Image Alt",
1393
1398
  2
1394
1399
  );
1395
1400
  }
1396
- const $e = H.querySelectorAll("video, iframe");
1397
- if ($e.length > 0) {
1398
- let ie = 0;
1399
- $e.forEach((fe) => {
1400
- !fe.getAttribute("title") && !fe.getAttribute("aria-label") && ie++;
1401
+ const De = H.querySelectorAll("video, iframe");
1402
+ if (De.length > 0) {
1403
+ let de = 0;
1404
+ De.forEach((he) => {
1405
+ !he.getAttribute("title") && !he.getAttribute("aria-label") && de++;
1401
1406
  }), me(
1402
- ie === 0,
1403
- ie === 0 ? "Video memiliki label/title" : "Video tanpa atribut title",
1407
+ de === 0,
1408
+ de === 0 ? "Video memiliki label/title" : "Video tanpa atribut title",
1404
1409
  "Video Access",
1405
1410
  2
1406
1411
  );
@@ -1412,30 +1417,30 @@ function Qt(e, s, t, g, r) {
1412
1417
  `Struktur bagus: Ditemukan ${we.length} subheading (H2/H3)`,
1413
1418
  "Subheadings",
1414
1419
  1
1415
- ), U) {
1416
- let ie = !1;
1417
- we.forEach((fe) => {
1418
- (fe.textContent || "").toLowerCase().includes(U.toLowerCase()) && (ie = !0);
1420
+ ), K) {
1421
+ let de = !1;
1422
+ we.forEach((he) => {
1423
+ (he.textContent || "").toLowerCase().includes(K.toLowerCase()) && (de = !0);
1419
1424
  }), me(
1420
- ie,
1421
- ie ? "Keyword muncul di subheading" : "Sebaiknya masukkan keyword di salah satu H2/H3",
1425
+ de,
1426
+ de ? "Keyword muncul di subheading" : "Sebaiknya masukkan keyword di salah satu H2/H3",
1422
1427
  "Heading Keyword",
1423
1428
  1
1424
1429
  );
1425
1430
  }
1426
1431
  } else
1427
- be > 300 && me(
1432
+ fe > 300 && me(
1428
1433
  !1,
1429
1434
  "Artikel panjang sebaiknya menggunakan Subheading (H2/H3)",
1430
1435
  "Subheadings",
1431
1436
  1
1432
1437
  );
1433
- const Se = H.querySelectorAll("a");
1434
- Se.length > 0 ? me(!0, `Ditemukan ${Se.length} tautan (links) dalam artikel`, "Links", 1) : me(!1, "Artikel belum memiliki tautan (internal/eksternal)", "Links", 1);
1438
+ const $e = H.querySelectorAll("a");
1439
+ $e.length > 0 ? me(!0, `Ditemukan ${$e.length} tautan (links) dalam artikel`, "Links", 1) : me(!1, "Artikel belum memiliki tautan (internal/eksternal)", "Links", 1);
1435
1440
  }
1436
- const It = Fe > 0 ? Math.round(lt / Fe * 100) : 0;
1441
+ const Ct = Fe > 0 ? Math.round(rt / Fe * 100) : 0;
1437
1442
  j.value = {
1438
- score: It,
1443
+ score: Ct,
1439
1444
  details: ye
1440
1445
  };
1441
1446
  }
@@ -1450,54 +1455,54 @@ function Qt(e, s, t, g, r) {
1450
1455
  const y = {}, T = {}, P = e.initialData ?? {};
1451
1456
  V(b, y, T, P), l.value = y, v.value = T;
1452
1457
  }
1453
- function V(b, y, T, P = {}, U) {
1458
+ function V(b, y, T, P = {}, K) {
1454
1459
  for (const [z, H] of Object.entries(b)) {
1455
1460
  if (H.type === "optionGroupSchema") {
1456
1461
  if (H.withValue) {
1457
- const ne = z in P ? P[z] : C(H);
1458
- ve(y, z, ne), ve(
1462
+ const oe = z in P ? P[z] : C(H);
1463
+ ve(y, z, oe), ve(
1459
1464
  T,
1460
1465
  z,
1461
- structuredClone(Te(ne))
1466
+ structuredClone(Te(oe))
1462
1467
  );
1463
1468
  }
1464
1469
  S(H, y, T, P);
1465
1470
  continue;
1466
1471
  }
1467
1472
  if (H.type === "object") {
1468
- const ne = P[z] || {};
1473
+ const oe = P[z] || {};
1469
1474
  y[z] = {}, T[z] = {}, V(
1470
1475
  H.schema || {},
1471
1476
  y[z],
1472
1477
  T[z],
1473
- ne
1478
+ oe
1474
1479
  );
1475
1480
  continue;
1476
1481
  }
1477
- const he = z in P ? P[z] : C(H);
1478
- ve(y, z, he), ve(
1482
+ const be = z in P ? P[z] : C(H);
1483
+ ve(y, z, be), ve(
1479
1484
  T,
1480
1485
  z,
1481
- structuredClone(Te(he))
1486
+ structuredClone(Te(be))
1482
1487
  );
1483
1488
  }
1484
1489
  }
1485
1490
  function S(b, y, T, P) {
1486
- for (const [U, z] of Object.entries(b.options))
1487
- for (const [H, he] of Object.entries(z)) {
1488
- const ne = he;
1489
- if (ne.type === "object") {
1491
+ for (const [K, z] of Object.entries(b.options))
1492
+ for (const [H, be] of Object.entries(z)) {
1493
+ const oe = be;
1494
+ if (oe.type === "object") {
1490
1495
  const ye = P[H] || {};
1491
1496
  y[H] = {}, T[H] = {}, V(
1492
- ne.schema || {},
1497
+ oe.schema || {},
1493
1498
  y[H],
1494
1499
  T[H],
1495
1500
  ye
1496
1501
  );
1497
1502
  continue;
1498
1503
  }
1499
- const be = H in P ? P[H] : C(ne);
1500
- y[H] = be, T[H] = structuredClone(Te(be));
1504
+ const fe = H in P ? P[H] : C(oe);
1505
+ y[H] = fe, T[H] = structuredClone(Te(fe));
1501
1506
  }
1502
1507
  }
1503
1508
  function C(b) {
@@ -1533,10 +1538,10 @@ function Qt(e, s, t, g, r) {
1533
1538
  }
1534
1539
  function B(b, y) {
1535
1540
  const T = W(u.value, y);
1536
- qt(T, b) || ve(u.value, y, b);
1541
+ Nt(T, b) || ve(u.value, y, b);
1537
1542
  }
1538
1543
  function ee(b) {
1539
- Wt(u.value, b);
1544
+ Ht(u.value, b);
1540
1545
  }
1541
1546
  function O() {
1542
1547
  let b = !0;
@@ -1545,34 +1550,34 @@ function Qt(e, s, t, g, r) {
1545
1550
  function Q() {
1546
1551
  let b = O();
1547
1552
  function y(T, P = "") {
1548
- let U = !0;
1553
+ let K = !0;
1549
1554
  for (const [z, H] of Object.entries(T)) {
1550
- const he = P ? `${P}.${z}` : z;
1555
+ const be = P ? `${P}.${z}` : z;
1551
1556
  if (H.type === "object") {
1552
- const be = l.value[z] || {};
1553
- U = q(he, H.schema || {}, be) && U;
1557
+ const fe = l.value[z] || {};
1558
+ K = q(be, H.schema || {}, fe) && K;
1554
1559
  continue;
1555
1560
  }
1556
1561
  if (H.type === "optionGroupSchema") {
1557
- U = p(z, H, z) && U;
1562
+ K = p(z, H, z) && K;
1558
1563
  continue;
1559
1564
  }
1560
- U = k(z, H) && U;
1565
+ K = k(z, H) && K;
1561
1566
  }
1562
- return d.value.length === 0 && (b = !0), U;
1567
+ return d.value.length === 0 && (b = !0), K;
1563
1568
  }
1564
1569
  return b = y(e.schema) && b, d.value.length === 0 && (b = !0), b;
1565
1570
  }
1566
1571
  function q(b, y, T) {
1567
1572
  let P = !0;
1568
- for (const [U, z] of Object.entries(y)) {
1569
- const H = b ? `${b}.${U}` : U;
1573
+ for (const [K, z] of Object.entries(y)) {
1574
+ const H = b ? `${b}.${K}` : K;
1570
1575
  if (z.type === "object") {
1571
- P = q(H, z.schema || {}, T?.[U] || {}) && P;
1576
+ P = q(H, z.schema || {}, T?.[K] || {}) && P;
1572
1577
  continue;
1573
1578
  }
1574
1579
  if (z.type === "optionGroupSchema") {
1575
- P = p(H, z, U) && P;
1580
+ P = p(H, z, K) && P;
1576
1581
  continue;
1577
1582
  }
1578
1583
  k(H, z) ? ee(H) : P = !1;
@@ -1582,7 +1587,7 @@ function Qt(e, s, t, g, r) {
1582
1587
  function k(b, y) {
1583
1588
  const T = W(l.value, b);
1584
1589
  if (y.required && L(T)) {
1585
- ve(d.value, b, ct(e.lang ?? "en", { label: y.label ?? b }));
1590
+ ve(d.value, b, ut(e.lang ?? "en", { label: y.label ?? b }));
1586
1591
  const P = W(d.value, b);
1587
1592
  return g("error", y.label ?? b, Array.isArray(P) ? P : [P]), !1;
1588
1593
  } else if (W(u.value, b)) {
@@ -1595,33 +1600,33 @@ function Qt(e, s, t, g, r) {
1595
1600
  function p(b, y, T) {
1596
1601
  const P = y.typeDesign === "cekbox" && (!Array.isArray(W(c.value, b)) || W(c.value, b).length === 0) || y.typeDesign !== "cekbox" && W(x.value, b) == null;
1597
1602
  if (y.required && P) {
1598
- ve(d.value, b, ct(e.lang ?? "en", { label: y.label ?? b }));
1599
- const U = W(d.value, b);
1600
- return U && g("error", y.label ?? b, Array.isArray(U) ? U : [U]), !1;
1603
+ ve(d.value, b, ut(e.lang ?? "en", { label: y.label ?? b }));
1604
+ const K = W(d.value, b);
1605
+ return K && g("error", y.label ?? b, Array.isArray(K) ? K : [K]), !1;
1601
1606
  }
1602
1607
  if (y.typeDesign === "select") {
1603
- const U = W(x.value, b);
1604
- return U == null || !y.options[U] ? !0 : E(y.options[U], gt(b, T));
1608
+ const K = W(x.value, b);
1609
+ return K == null || !y.options[K] ? !0 : E(y.options[K], it(b, T));
1605
1610
  }
1606
1611
  if (y.typeDesign === "cekbox") {
1607
- const U = Array.isArray(W(c.value, b)) ? W(c.value, b) : [];
1612
+ const K = Array.isArray(W(c.value, b)) ? W(c.value, b) : [];
1608
1613
  let z = !0;
1609
- for (const H of U)
1610
- y.options[H] && (z = E(y.options[H], gt(b, T)) && z);
1614
+ for (const H of K)
1615
+ y.options[H] && (z = E(y.options[H], it(b, T)) && z);
1611
1616
  return z;
1612
1617
  }
1613
1618
  return !0;
1614
1619
  }
1615
1620
  function E(b, y) {
1616
1621
  let T = !0;
1617
- for (const [P, U] of Object.entries(b)) {
1622
+ for (const [P, K] of Object.entries(b)) {
1618
1623
  const z = y ? y + "." + P : P;
1619
- if (U.type === "object") {
1620
- const he = W(l.value, z) || {};
1621
- T = q(z, U.schema || {}, he) && T;
1624
+ if (K.type === "object") {
1625
+ const be = W(l.value, z) || {};
1626
+ T = q(z, K.schema || {}, be) && T;
1622
1627
  continue;
1623
1628
  }
1624
- if (!k(z, U)) {
1629
+ if (!k(z, K)) {
1625
1630
  T = !1;
1626
1631
  continue;
1627
1632
  }
@@ -1642,23 +1647,23 @@ function Qt(e, s, t, g, r) {
1642
1647
  }, 2e3);
1643
1648
  return;
1644
1649
  }
1645
- const b = le();
1650
+ const b = ne();
1646
1651
  e.seo?.sendSeo && j.value && (b.seoScore = j.value.score), s("submit", b), setTimeout(() => {
1647
1652
  i.value = !1;
1648
1653
  }, 2e3);
1649
1654
  }
1650
- function le() {
1655
+ function ne() {
1651
1656
  const b = e.schema, y = l.value, T = e.initialData ?? {}, P = e.id && e.isUpdate ? { id: e.id } : {};
1652
1657
  return F(b, y, T, P);
1653
1658
  }
1654
1659
  function F(b, y, T, P = {}) {
1655
1660
  if (Array.isArray(b)) {
1656
- for (const U of b)
1657
- for (const [z, H] of Object.entries(U)) {
1661
+ for (const K of b)
1662
+ for (const [z, H] of Object.entries(K)) {
1658
1663
  if (H.type === "optionGroupSchema") {
1659
1664
  Object.assign(
1660
1665
  P,
1661
- K(H, y, T, z, y?.[z])
1666
+ U(H, y, T, z, y?.[z])
1662
1667
  );
1663
1668
  continue;
1664
1669
  }
@@ -1674,19 +1679,19 @@ function Qt(e, s, t, g, r) {
1674
1679
  }
1675
1680
  return P;
1676
1681
  }
1677
- for (const [U, z] of Object.entries(b)) {
1682
+ for (const [K, z] of Object.entries(b)) {
1678
1683
  if (z.type === "optionGroupSchema") {
1679
1684
  Object.assign(
1680
1685
  P,
1681
- K(z, y, T, U, y?.[U])
1686
+ U(z, y, T, K, y?.[K])
1682
1687
  );
1683
1688
  continue;
1684
1689
  }
1685
1690
  if (z.type === "object") {
1686
- P[U] = F(z.schema, y?.[U] ?? {}, T?.[U] ?? {});
1691
+ P[K] = F(z.schema, y?.[K] ?? {}, T?.[K] ?? {});
1687
1692
  continue;
1688
1693
  }
1689
- P[U] = G(y?.[U], z, T?.[U]);
1694
+ P[K] = G(y?.[K], z, T?.[K]);
1690
1695
  }
1691
1696
  return P;
1692
1697
  }
@@ -1707,28 +1712,28 @@ function Qt(e, s, t, g, r) {
1707
1712
  }
1708
1713
  return b;
1709
1714
  }
1710
- function K(b, y, T, P, U) {
1715
+ function U(b, y, T, P, K) {
1711
1716
  const z = {};
1712
- b.withValue && P && (z[P] = G(U, b, T?.[P]));
1713
- for (const [H, he] of Object.entries(b.options))
1714
- for (const [ne, be] of Object.entries(he)) {
1715
- const ye = be;
1717
+ b.withValue && P && (z[P] = G(K, b, T?.[P]));
1718
+ for (const [H, be] of Object.entries(b.options))
1719
+ for (const [oe, fe] of Object.entries(be)) {
1720
+ const ye = fe;
1716
1721
  if (ye.type === "object") {
1717
- z[ne] = F(
1722
+ z[oe] = F(
1718
1723
  ye.schema || {},
1719
- y?.[ne] ?? {},
1720
- T?.[ne] ?? {}
1724
+ y?.[oe] ?? {},
1725
+ T?.[oe] ?? {}
1721
1726
  );
1722
1727
  continue;
1723
1728
  }
1724
1729
  if (ye.type === "optionGroupSchema") {
1725
1730
  Object.assign(
1726
1731
  z,
1727
- K(ye, y, T, ne, y?.[ne])
1732
+ U(ye, y, T, oe, y?.[oe])
1728
1733
  );
1729
1734
  continue;
1730
1735
  }
1731
- z[ne] = G(y?.[ne], ye, T?.[ne]);
1736
+ z[oe] = G(y?.[oe], ye, T?.[oe]);
1732
1737
  }
1733
1738
  return z;
1734
1739
  }
@@ -1752,30 +1757,30 @@ function Qt(e, s, t, g, r) {
1752
1757
  deleteInputValidateErrorMessage: ee
1753
1758
  };
1754
1759
  }
1755
- const _t = { class: "jsgd-fixed jsgd-inset-0 jsgd-z-20 jsgd-flex jsgd-items-center jsgd-justify-center jsgd-p-4 jsgd-bg-black/70 jsgd-backdrop-blur-md" }, es = { 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 jsgd-flex-shrink-0" }, ts = { class: "jsgd-flex jsgd-justify-between jsgd-items-center" }, ss = { 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" }, as = { class: "jsgd-flex jsgd-items-center jsgd-gap-3 jsgd-flex-wrap" }, ds = {
1760
+ const Qt = { class: "jsgd-fixed jsgd-inset-0 jsgd-z-20 jsgd-flex jsgd-items-center jsgd-justify-center jsgd-p-4 jsgd-bg-black/70 jsgd-backdrop-blur-md" }, _t = { 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 jsgd-flex-shrink-0" }, es = { class: "jsgd-flex jsgd-justify-between jsgd-items-center" }, ts = { 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" }, ss = { class: "jsgd-flex jsgd-items-center jsgd-gap-3 jsgd-flex-wrap" }, as = {
1756
1761
  key: 0,
1757
1762
  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]"
1758
- }, rs = {
1763
+ }, ds = {
1759
1764
  key: 1,
1760
1765
  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]"
1761
- }, ls = { class: "jsgd-text-xl md:jsgd-text-2xl jsgd-font-bold jsgd-m-0 jsgd-animate-[slideInFromBottom_0.5s_ease-out_0.1s_both]" }, ns = { class: "jsgd-flex jsgd-items-center jsgd-gap-1" }, os = { class: "jsgd-font-bold jsgd-text-white" }, is = { class: "jsgd-flex-1 jsgd-relative jsgd-flex jsgd-flex-col jsgd-overflow-y-auto jsgd-modal-scrollbar" }, gs = { class: "md:jsgd-p-8 jsgd-bg-white jsgd-relative dark:jsgd-bg-slate-800 jsgd-flex-1" }, us = { class: "jsgd-flex jsgd-p-6 md:jsgd-p-8 jsgd-border-1 jsgd-border-solid jsgd-border-slate-200 jsgd-shadow-lg md:jsgd-rounded-xl jsgd-flex-col jsgd-gap-6 dark:jsgd-border-blue-600 dark:jsgd-shadow-blue-900/50" }, cs = { 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 jsgd-flex-shrink-0" }, ms = { class: "jsgd-flex jsgd-justify-center md:jsgd-justify-end jsgd-gap-4 jsgd-flex-row" }, js = { class: "jsgd-flex jsgd-items-center jsgd-gap-2 jsgd-transition-opacity jsgd-duration-300" }, bs = ["disabled"], hs = {
1766
+ }, rs = { class: "jsgd-text-xl md:jsgd-text-2xl jsgd-font-bold jsgd-m-0 jsgd-animate-[slideInFromBottom_0.5s_ease-out_0.1s_both]" }, ls = { class: "jsgd-flex jsgd-items-center jsgd-gap-1" }, ns = { class: "jsgd-font-bold jsgd-text-white" }, os = { class: "jsgd-flex-1 jsgd-relative jsgd-flex jsgd-flex-col jsgd-overflow-y-auto jsgd-modal-scrollbar" }, is = { class: "md:jsgd-p-8 jsgd-bg-white jsgd-relative dark:jsgd-bg-slate-800 jsgd-flex-1" }, gs = { class: "jsgd-flex jsgd-p-6 md:jsgd-p-8 jsgd-border-1 jsgd-border-solid jsgd-border-slate-200 jsgd-shadow-lg md:jsgd-rounded-xl jsgd-flex-col jsgd-gap-6 dark:jsgd-border-blue-600 dark:jsgd-shadow-blue-900/50" }, us = { 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 jsgd-flex-shrink-0" }, cs = { class: "jsgd-flex jsgd-justify-center md:jsgd-justify-end jsgd-gap-4 jsgd-flex-row" }, ms = { class: "jsgd-flex jsgd-items-center jsgd-gap-2 jsgd-transition-opacity jsgd-duration-300" }, js = ["disabled"], bs = {
1762
1767
  key: 0,
1763
1768
  class: "jsgd-flex jsgd-items-center jsgd-animate-[rotate_1s_linear_infinite]"
1764
- }, fs = { class: "jsgd-bg-white jsgd-w-full jsgd-max-w-[380px] jsgd-max-h-[70vh] jsgd-flex jsgd-flex-col jsgd-rounded-2xl jsgd-shadow-2xl jsgd-border jsgd-border-slate-100 dark:jsgd-bg-slate-800 dark:jsgd-border-slate-600 jsgd-animate-[popupScale_0.3s_cubic-bezier(0.34,1.56,0.64,1)]" }, ps = { class: "jsgd-p-4 jsgd-border-b jsgd-border-slate-100 dark:jsgd-border-slate-700 jsgd-flex jsgd-justify-between jsgd-items-center jsgd-flex-shrink-0" }, vs = { class: "jsgd-p-4 jsgd-overflow-y-auto jsgd-modal-scrollbar jsgd-flex-1" }, xs = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3" }, ys = { class: "jsgd-flex-shrink-0 jsgd-mt-0.5" }, ks = {
1769
+ }, hs = { class: "jsgd-bg-white jsgd-w-full jsgd-max-w-[380px] jsgd-max-h-[70vh] jsgd-flex jsgd-flex-col jsgd-rounded-2xl jsgd-shadow-2xl jsgd-border jsgd-border-slate-100 dark:jsgd-bg-slate-800 dark:jsgd-border-slate-600 jsgd-animate-[popupScale_0.3s_cubic-bezier(0.34,1.56,0.64,1)]" }, fs = { class: "jsgd-p-4 jsgd-border-b jsgd-border-slate-100 dark:jsgd-border-slate-700 jsgd-flex jsgd-justify-between jsgd-items-center jsgd-flex-shrink-0" }, ps = { class: "jsgd-p-4 jsgd-overflow-y-auto jsgd-modal-scrollbar jsgd-flex-1" }, vs = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3" }, xs = { class: "jsgd-flex-shrink-0 jsgd-mt-0.5" }, ys = {
1765
1770
  key: 0,
1766
1771
  width: "16",
1767
1772
  height: "16",
1768
1773
  viewBox: "0 0 24 24",
1769
1774
  fill: "none",
1770
1775
  class: "jsgd-text-emerald-500"
1771
- }, ws = {
1776
+ }, ks = {
1772
1777
  key: 1,
1773
1778
  width: "16",
1774
1779
  height: "16",
1775
1780
  viewBox: "0 0 24 24",
1776
1781
  fill: "none",
1777
1782
  class: "jsgd-text-red-500"
1778
- }, Ss = { class: "jsgd-flex-1" }, Ds = { class: "jsgd-text-xs jsgd-text-slate-600 dark:jsgd-text-slate-300 jsgd-leading-relaxed" }, $s = { class: "jsgd-p-4 jsgd-border-t jsgd-border-slate-100 dark:jsgd-border-slate-700 jsgd-flex-shrink-0" }, As = { class: "jsgd-bg-slate-50 jsgd-rounded-xl jsgd-p-3 jsgd-border jsgd-border-slate-100 dark:jsgd-bg-slate-900/50 dark:jsgd-border-slate-700" }, Ms = { class: "jsgd-flex jsgd-justify-between jsgd-mb-2" }, Cs = { class: "jsgd-w-full jsgd-h-2 jsgd-bg-slate-200 jsgd-rounded-full jsgd-overflow-hidden dark:jsgd-bg-slate-700" }, Is = /* @__PURE__ */ re({
1783
+ }, ws = { class: "jsgd-flex-1" }, Ss = { class: "jsgd-text-xs jsgd-text-slate-600 dark:jsgd-text-slate-300 jsgd-leading-relaxed" }, Ds = { class: "jsgd-p-4 jsgd-border-t jsgd-border-slate-100 dark:jsgd-border-slate-700 jsgd-flex-shrink-0" }, $s = { class: "jsgd-bg-slate-50 jsgd-rounded-xl jsgd-p-3 jsgd-border jsgd-border-slate-100 dark:jsgd-bg-slate-900/50 dark:jsgd-border-slate-700" }, As = { class: "jsgd-flex jsgd-justify-between jsgd-mb-2" }, Ms = { class: "jsgd-w-full jsgd-h-2 jsgd-bg-slate-200 jsgd-rounded-full jsgd-overflow-hidden dark:jsgd-bg-slate-700" }, Cs = /* @__PURE__ */ le({
1779
1784
  __name: "FormModal",
1780
1785
  props: {
1781
1786
  id: {},
@@ -1789,13 +1794,13 @@ const _t = { class: "jsgd-fixed jsgd-inset-0 jsgd-z-20 jsgd-flex jsgd-items-cent
1789
1794
  emits: ["submit", "cancel", "DataChildRemove"],
1790
1795
  setup(e, { emit: s }) {
1791
1796
  const t = ae("TableComponents")?.loader, g = ae("TableComponents")?.ShowAlert, r = e, o = ae("TableComponents", {
1792
- labels: A(oe[r.lang ?? "en"])
1797
+ labels: A(ie[r.lang ?? "en"])
1793
1798
  }).labels, d = s, u = A(!1), v = A(!1), x = () => {
1794
1799
  v.value = window.innerWidth < 1024;
1795
1800
  };
1796
1801
  Oe(() => {
1797
1802
  x(), window.addEventListener("resize", x);
1798
- }), Tt(() => {
1803
+ }), Vt(() => {
1799
1804
  window.removeEventListener("resize", x);
1800
1805
  });
1801
1806
  const {
@@ -1809,7 +1814,7 @@ const _t = { class: "jsgd-fixed jsgd-inset-0 jsgd-z-20 jsgd-flex jsgd-items-cent
1809
1814
  deleteInputValidateErrorMessage: S,
1810
1815
  isSubmitting: C,
1811
1816
  seoResult: B
1812
- } = Qt(
1817
+ } = Xt(
1813
1818
  {
1814
1819
  id: r.id,
1815
1820
  initialData: r.initialData,
@@ -1829,7 +1834,7 @@ const _t = { class: "jsgd-fixed jsgd-inset-0 jsgd-z-20 jsgd-flex jsgd-items-cent
1829
1834
  appear: ""
1830
1835
  }, {
1831
1836
  default: ue(() => [
1832
- n("div", _t, [
1837
+ n("div", Qt, [
1833
1838
  Ie(Ce, {
1834
1839
  name: "jsgd-modal-container",
1835
1840
  appear: ""
@@ -1841,11 +1846,11 @@ const _t = { class: "jsgd-fixed jsgd-inset-0 jsgd-z-20 jsgd-flex jsgd-items-cent
1841
1846
  "xl:jsgd-max-w-[900px] lg:jsgd-max-w-[800px]"
1842
1847
  ]])
1843
1848
  }, [
1844
- n("div", es, [
1845
- n("div", ts, [
1846
- n("div", ss, [
1847
- n("div", as, [
1848
- e.isUpdate ? (m(), w("div", ds, [...O[5] || (O[5] = [
1849
+ n("div", _t, [
1850
+ n("div", es, [
1851
+ n("div", ts, [
1852
+ n("div", ss, [
1853
+ e.isUpdate ? (m(), w("div", as, [...O[5] || (O[5] = [
1849
1854
  n("svg", {
1850
1855
  width: "24",
1851
1856
  height: "24",
@@ -1861,7 +1866,7 @@ const _t = { class: "jsgd-fixed jsgd-inset-0 jsgd-z-20 jsgd-flex jsgd-items-cent
1861
1866
  "stroke-linejoin": "round"
1862
1867
  })
1863
1868
  ], -1)
1864
- ])])) : (m(), w("div", rs, [...O[6] || (O[6] = [
1869
+ ])])) : (m(), w("div", ds, [...O[6] || (O[6] = [
1865
1870
  n("svg", {
1866
1871
  width: "24",
1867
1872
  height: "24",
@@ -1878,7 +1883,7 @@ const _t = { class: "jsgd-fixed jsgd-inset-0 jsgd-z-20 jsgd-flex jsgd-items-cent
1878
1883
  })
1879
1884
  ], -1)
1880
1885
  ])])),
1881
- n("h2", ls, M(e.isUpdate ? typeof a(o)?.title == "object" ? a(o)?.title?.update : a(o)?.title : typeof a(o)?.title == "object" ? a(o)?.title?.create : a(o)?.title), 1),
1886
+ n("h2", rs, M(e.isUpdate ? typeof a(o)?.title == "object" ? a(o)?.title?.update : a(o)?.title : typeof a(o)?.title == "object" ? a(o)?.title?.create : a(o)?.title), 1),
1882
1887
  e.seo ? (m(), w("div", {
1883
1888
  key: 2,
1884
1889
  onClick: O[0] || (O[0] = (Q) => u.value = !0),
@@ -1886,7 +1891,7 @@ const _t = { class: "jsgd-fixed jsgd-inset-0 jsgd-z-20 jsgd-flex jsgd-items-cent
1886
1891
  title: "Click to view SEO Details"
1887
1892
  }, [
1888
1893
  O[8] || (O[8] = n("span", { class: "jsgd-text-xs jsgd-font-semibold jsgd-uppercase jsgd-tracking-wide jsgd-opacity-80" }, "SEO Score", -1)),
1889
- n("div", ns, [
1894
+ n("div", ls, [
1890
1895
  n("div", {
1891
1896
  class: R(["jsgd-w-2 jsgd-h-2 jsgd-rounded-full", {
1892
1897
  "jsgd-bg-red-400": (a(B)?.score || 0) < 50,
@@ -1894,7 +1899,7 @@ const _t = { class: "jsgd-fixed jsgd-inset-0 jsgd-z-20 jsgd-flex jsgd-items-cent
1894
1899
  "jsgd-bg-emerald-400": (a(B)?.score || 0) >= 80
1895
1900
  }])
1896
1901
  }, null, 2),
1897
- n("span", os, M(a(B)?.score || 0), 1),
1902
+ n("span", ns, M(a(B)?.score || 0), 1),
1898
1903
  O[7] || (O[7] = n("svg", {
1899
1904
  width: "14",
1900
1905
  height: "14",
@@ -1930,10 +1935,10 @@ const _t = { class: "jsgd-fixed jsgd-inset-0 jsgd-z-20 jsgd-flex jsgd-items-cent
1930
1935
  ])
1931
1936
  ])
1932
1937
  ]),
1933
- n("div", is, [
1934
- n("div", gs, [
1935
- n("div", us, [
1936
- Ie(Et, {
1938
+ n("div", os, [
1939
+ n("div", is, [
1940
+ n("div", gs, [
1941
+ Ie(Tt, {
1937
1942
  name: "jsgd-form-field",
1938
1943
  tag: "div",
1939
1944
  class: "jsgd-flex jsgd-flex-col jsgd-gap-6"
@@ -1966,15 +1971,15 @@ const _t = { class: "jsgd-fixed jsgd-inset-0 jsgd-z-20 jsgd-flex jsgd-items-cent
1966
1971
  ])
1967
1972
  ])
1968
1973
  ]),
1969
- n("div", cs, [
1970
- n("div", ms, [
1974
+ n("div", us, [
1975
+ n("div", cs, [
1971
1976
  n("button", {
1972
1977
  type: "button",
1973
1978
  onClick: O[1] || (O[1] = //@ts-ignore
1974
1979
  (...Q) => a(D) && a(D)(...Q)),
1975
1980
  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"
1976
1981
  }, [
1977
- n("span", js, [
1982
+ n("span", ms, [
1978
1983
  O[9] || (O[9] = n("svg", {
1979
1984
  width: "16",
1980
1985
  height: "16",
@@ -2020,7 +2025,7 @@ const _t = { class: "jsgd-fixed jsgd-inset-0 jsgd-z-20 jsgd-flex jsgd-items-cent
2020
2025
  ], -1)),
2021
2026
  _(" " + M(e.isUpdate ? typeof a(o)?.btn?.submit == "object" ? a(o)?.btn?.submit?.update : a(o)?.btn?.submit : typeof a(o)?.btn?.submit == "object" ? a(o)?.btn?.submit?.create : a(o)?.btn?.submit), 1)
2022
2027
  ], 2),
2023
- a(C) ? (m(), w("span", hs, [...O[11] || (O[11] = [
2028
+ a(C) ? (m(), w("span", bs, [...O[11] || (O[11] = [
2024
2029
  n("svg", {
2025
2030
  width: "16",
2026
2031
  height: "16",
@@ -2037,7 +2042,7 @@ const _t = { class: "jsgd-fixed jsgd-inset-0 jsgd-z-20 jsgd-flex jsgd-items-cent
2037
2042
  })
2038
2043
  ], -1)
2039
2044
  ])])) : $("", !0)
2040
- ], 8, bs)
2045
+ ], 8, js)
2041
2046
  ])
2042
2047
  ]),
2043
2048
  Ie(Ce, { name: "jsgd-seo-popup" }, {
@@ -2047,8 +2052,8 @@ const _t = { class: "jsgd-fixed jsgd-inset-0 jsgd-z-20 jsgd-flex jsgd-items-cent
2047
2052
  class: "jsgd-absolute jsgd-inset-0 jsgd-z-50 jsgd-flex jsgd-items-center jsgd-justify-center jsgd-bg-black/40 jsgd-backdrop-blur-[2px] jsgd-p-4",
2048
2053
  onClick: O[4] || (O[4] = Ve((Q) => u.value = !1, ["self"]))
2049
2054
  }, [
2050
- n("div", fs, [
2051
- n("div", ps, [
2055
+ n("div", hs, [
2056
+ n("div", fs, [
2052
2057
  O[13] || (O[13] = n("h3", { class: "jsgd-text-base jsgd-font-bold jsgd-text-slate-700 dark:jsgd-text-white jsgd-m-0" }, " SEO Analysis ", -1)),
2053
2058
  n("button", {
2054
2059
  onClick: O[3] || (O[3] = (Q) => u.value = !1),
@@ -2079,8 +2084,8 @@ const _t = { class: "jsgd-fixed jsgd-inset-0 jsgd-z-20 jsgd-flex jsgd-items-cent
2079
2084
  ], -1)
2080
2085
  ])])
2081
2086
  ]),
2082
- n("div", vs, [
2083
- n("div", xs, [
2087
+ n("div", ps, [
2088
+ n("div", vs, [
2084
2089
  (m(!0), w(X, null, te(a(B)?.details, (Q, q) => (m(), w("div", {
2085
2090
  key: q,
2086
2091
  class: R([
@@ -2088,8 +2093,8 @@ const _t = { class: "jsgd-fixed jsgd-inset-0 jsgd-z-20 jsgd-flex jsgd-items-cent
2088
2093
  Q.passed ? "jsgd-bg-emerald-50/50 jsgd-border-emerald-100 dark:jsgd-bg-emerald-900/10 dark:jsgd-border-emerald-800" : "jsgd-bg-red-50/50 jsgd-border-red-100 dark:jsgd-bg-red-900/10 dark:jsgd-border-red-800"
2089
2094
  ])
2090
2095
  }, [
2091
- n("div", ys, [
2092
- Q.passed ? (m(), w("svg", ks, [...O[14] || (O[14] = [
2096
+ n("div", xs, [
2097
+ Q.passed ? (m(), w("svg", ys, [...O[14] || (O[14] = [
2093
2098
  n("path", {
2094
2099
  d: "M20 6L9 17l-5-5",
2095
2100
  stroke: "currentColor",
@@ -2097,7 +2102,7 @@ const _t = { class: "jsgd-fixed jsgd-inset-0 jsgd-z-20 jsgd-flex jsgd-items-cent
2097
2102
  "stroke-linecap": "round",
2098
2103
  "stroke-linejoin": "round"
2099
2104
  }, null, -1)
2100
- ])])) : (m(), w("svg", ws, [...O[15] || (O[15] = [
2105
+ ])])) : (m(), w("svg", ks, [...O[15] || (O[15] = [
2101
2106
  n("path", {
2102
2107
  d: "M18 6L6 18M6 6l12 12",
2103
2108
  stroke: "currentColor",
@@ -2107,21 +2112,21 @@ const _t = { class: "jsgd-fixed jsgd-inset-0 jsgd-z-20 jsgd-flex jsgd-items-cent
2107
2112
  }, null, -1)
2108
2113
  ])]))
2109
2114
  ]),
2110
- n("div", Ss, [
2115
+ n("div", ws, [
2111
2116
  n("p", {
2112
2117
  class: R([
2113
2118
  "jsgd-text-xs jsgd-font-bold jsgd-uppercase jsgd-mb-0.5",
2114
2119
  Q.passed ? "jsgd-text-emerald-700 dark:jsgd-text-emerald-400" : "jsgd-text-red-700 dark:jsgd-text-red-400"
2115
2120
  ])
2116
2121
  }, M(Q.label), 3),
2117
- n("p", Ds, M(Q.message), 1)
2122
+ n("p", Ss, M(Q.message), 1)
2118
2123
  ])
2119
2124
  ], 2))), 128))
2120
2125
  ])
2121
2126
  ]),
2122
- n("div", $s, [
2123
- n("div", As, [
2124
- n("div", Ms, [
2127
+ n("div", Ds, [
2128
+ n("div", $s, [
2129
+ n("div", As, [
2125
2130
  O[16] || (O[16] = n("span", { class: "jsgd-text-xs jsgd-font-bold jsgd-uppercase jsgd-text-slate-500" }, "Total Score", -1)),
2126
2131
  n("span", {
2127
2132
  class: R(["jsgd-text-sm jsgd-font-bold", {
@@ -2131,7 +2136,7 @@ const _t = { class: "jsgd-fixed jsgd-inset-0 jsgd-z-20 jsgd-flex jsgd-items-cent
2131
2136
  }])
2132
2137
  }, M(a(B)?.score || 0) + "%", 3)
2133
2138
  ]),
2134
- n("div", Cs, [
2139
+ n("div", Ms, [
2135
2140
  n("div", {
2136
2141
  class: R(["jsgd-h-full jsgd-transition-all jsgd-duration-500", {
2137
2142
  "jsgd-bg-red-500": (a(B)?.score || 0) < 50,
@@ -2157,12 +2162,12 @@ const _t = { class: "jsgd-fixed jsgd-inset-0 jsgd-z-20 jsgd-flex jsgd-items-cent
2157
2162
  _: 1
2158
2163
  }));
2159
2164
  }
2160
- }), wt = (e, s) => {
2165
+ }), kt = (e, s) => {
2161
2166
  const t = e.__vccOpts || e;
2162
2167
  for (const [g, r] of s)
2163
2168
  t[g] = r;
2164
2169
  return t;
2165
- }, St = /* @__PURE__ */ wt(Is, [["__scopeId", "data-v-b99ec057"]]), Be = /* @__PURE__ */ re({
2170
+ }, wt = /* @__PURE__ */ kt(Cs, [["__scopeId", "data-v-b99ec057"]]), Be = /* @__PURE__ */ le({
2166
2171
  __name: "FormFieldRenderer",
2167
2172
  props: {
2168
2173
  field: {},
@@ -2175,7 +2180,7 @@ const _t = { class: "jsgd-fixed jsgd-inset-0 jsgd-z-20 jsgd-flex jsgd-items-cent
2175
2180
  },
2176
2181
  emits: ["update:model-value", "push:errors", "remove:errors", "selected-option-change", "multi-selected-change"],
2177
2182
  setup(e, { emit: s }) {
2178
- const t = de(() => import("./ImageInput-CRCYTGxc.es.js")), g = de(() => import("./ColorPicker-I60o5_GX.es.js")), r = de(() => import("./ComboboxComponent-68U96D9p.es.js")), l = de(() => import("./ArrayObject-DDeI93dc.es.js")), o = de(() => import("./GroupRenderer-DMAdfCgE.es.js")), d = de(() => import("./TextAreaQuill-CtpmFHK7.es.js")), u = de(() => import("./FileArrayInput-BRvQ9JCt.es.js")), v = de(() => import("./TextInput-fKC87ySl.es.js")), x = de(() => import("./TelInput-DcBE7hlb.es.js")), c = de(() => import("./CurrencyInput-DGUkU3FD.es.js")), i = de(() => import("./RateInput-RaBWxAY-.es.js")), j = de(() => import("./NumberInput-JR5PkxyV.es.js")), h = de(() => import("./EmailInput-qqhKRmvT.es.js")), f = de(() => import("./PasswordInput-U7M7le-1.es.js")), D = de(() => import("./UrlInput-ckEhZgRN.es.js")), V = de(() => import("./ToggleInput-i8LrK8Ut.es.js")), S = de(() => import("./TagInput-Bm2yhHqX.es.js")), C = de(() => import("./ObjectInput-Dqfri61J.es.js")), B = de(() => import("./TextAreaInput-Cggq_qmY.es.js")), ee = de(() => import("./DateInput-Co6VpTHT.es.js")), O = de(() => import("./TimeInput-CbrXOhwB.es.js")), Q = de(() => import("./DateTimeInput-BZAT0grx.es.js")), q = de(() => import("./FileInput-DxTlDCLx.es.js")), k = de(() => import("./ImageArrayInput-B-pILI_I.es.js")), p = e, E = A({ ...p.formData }), L = A({ ...p.errors }), Y = s;
2183
+ const t = re(() => import("./ImageInput-hwY64_P3.es.js")), g = re(() => import("./ColorPicker-DWajlDz5.es.js")), r = re(() => import("./ComboboxComponent-RENQ1FXI.es.js")), l = re(() => import("./ArrayObject-CC-LVTui.es.js")), o = re(() => import("./GroupRenderer-D_3hmVS4.es.js")), d = re(() => import("./TextAreaQuill-PSKHjt67.es.js")), u = re(() => import("./FileArrayInput-C5drCF6p.es.js")), v = re(() => import("./TextInput-oBJKDYmM.es.js")), x = re(() => import("./TelInput-DDqFalm6.es.js")), c = re(() => import("./CurrencyInput-CmGrI2Vy.es.js")), i = re(() => import("./RateInput-LQcqAf2f.es.js")), j = re(() => import("./NumberInput-0l-TANaP.es.js")), h = re(() => import("./EmailInput-Did4kNYA.es.js")), f = re(() => import("./PasswordInput-DxSoZlRM.es.js")), D = re(() => import("./UrlInput-YQFu4Cb3.es.js")), V = re(() => import("./ToggleInput-7phZ6wcS.es.js")), S = re(() => import("./TagInput-Cc7wwjcX.es.js")), C = re(() => import("./ObjectInput-DA7Hfck0.es.js")), B = re(() => import("./TextAreaInput-LkFerA8R.es.js")), ee = re(() => import("./DateInput-J06kg5C-.es.js")), O = re(() => import("./TimeInput-DrXYIRmu.es.js")), Q = re(() => import("./DateTimeInput-DYcjPrwh.es.js")), q = re(() => import("./FileInput-DEk9Pscj.es.js")), k = re(() => import("./ImageArrayInput-CbJzqdrg.es.js")), p = e, E = A({ ...p.formData }), L = A({ ...p.errors }), Y = s;
2179
2184
  se(
2180
2185
  () => p,
2181
2186
  () => {
@@ -2183,12 +2188,12 @@ const _t = { class: "jsgd-fixed jsgd-inset-0 jsgd-z-20 jsgd-flex jsgd-items-cent
2183
2188
  },
2184
2189
  { immediate: !0, deep: !0 }
2185
2190
  );
2186
- const le = A(p.isUpdate ? void 0 : p.field.value);
2191
+ const ne = A(p.isUpdate ? void 0 : p.field.value);
2187
2192
  function F() {
2188
2193
  const N = W(E.value, p.fieldKey);
2189
- return !N && typeof N != "boolean" && !p.isUpdate ? (Y("update:model-value", le.value, p.fieldKey), le.value) : (p.field.type === "dateTime", N);
2194
+ return !N && typeof N != "boolean" && !p.isUpdate ? (Y("update:model-value", ne.value, p.fieldKey), ne.value) : (p.field.type === "dateTime", N);
2190
2195
  }
2191
- const { label: G, handlers: K } = Ft(p, Y);
2196
+ const { label: G, handlers: U } = Ot(p, Y);
2192
2197
  return (N, b) => (m(), w("div", null, [
2193
2198
  e.field.type === "text" ? (m(), J(a(v), {
2194
2199
  key: 0,
@@ -2202,8 +2207,8 @@ const _t = { class: "jsgd-fixed jsgd-inset-0 jsgd-z-20 jsgd-flex jsgd-items-cent
2202
2207
  lang: e.lang,
2203
2208
  placeholder: e.field.placeholder,
2204
2209
  "onUpdate:modelValue": b[0] || (b[0] = (y) => N.$emit("update:model-value", y, e.fieldKey)),
2205
- "onRemove:error": a(K).removeError,
2206
- "onPush:error": a(K).pushError
2210
+ "onRemove:error": a(U).removeError,
2211
+ "onPush:error": a(U).pushError
2207
2212
  }, null, 8, ["id", "type", "label", "model-value", "error", "disabled", "validate", "lang", "placeholder", "onRemove:error", "onPush:error"])) : $("", !0),
2208
2213
  e.field.type === "tel" ? (m(), J(a(x), {
2209
2214
  key: 1,
@@ -2216,8 +2221,8 @@ const _t = { class: "jsgd-fixed jsgd-inset-0 jsgd-z-20 jsgd-flex jsgd-items-cent
2216
2221
  lang: e.lang,
2217
2222
  placeholder: e.field.placeholder,
2218
2223
  "onUpdate:modelValue": b[1] || (b[1] = (y) => N.$emit("update:model-value", y, e.fieldKey)),
2219
- "onRemove:error": a(K).removeError,
2220
- "onPush:error": a(K).pushError
2224
+ "onRemove:error": a(U).removeError,
2225
+ "onPush:error": a(U).pushError
2221
2226
  }, null, 8, ["id", "label", "model-value", "error", "disabled", "validate", "lang", "placeholder", "onRemove:error", "onPush:error"])) : $("", !0),
2222
2227
  e.field.type === "currency" ? (m(), J(a(c), {
2223
2228
  key: 2,
@@ -2230,8 +2235,8 @@ const _t = { class: "jsgd-fixed jsgd-inset-0 jsgd-z-20 jsgd-flex jsgd-items-cent
2230
2235
  lang: e.lang,
2231
2236
  placeholder: e.field.placeholder,
2232
2237
  "onUpdate:modelValue": b[2] || (b[2] = (y) => N.$emit("update:model-value", y, e.fieldKey)),
2233
- "onRemove:error": a(K).removeError,
2234
- "onPush:error": a(K).pushError
2238
+ "onRemove:error": a(U).removeError,
2239
+ "onPush:error": a(U).pushError
2235
2240
  }, null, 8, ["id", "label", "model-value", "error", "disabled", "validate", "lang", "placeholder", "onRemove:error", "onPush:error"])) : $("", !0),
2236
2241
  e.field.type === "rate" ? (m(), J(a(i), {
2237
2242
  key: 3,
@@ -2255,8 +2260,8 @@ const _t = { class: "jsgd-fixed jsgd-inset-0 jsgd-z-20 jsgd-flex jsgd-items-cent
2255
2260
  lang: e.lang,
2256
2261
  validate: e.field.validate,
2257
2262
  "onUpdate:modelValue": b[4] || (b[4] = (y) => N.$emit("update:model-value", y, e.fieldKey)),
2258
- "onRemove:error": a(K).removeError,
2259
- "onPush:error": a(K).pushError
2263
+ "onRemove:error": a(U).removeError,
2264
+ "onPush:error": a(U).pushError
2260
2265
  }, null, 8, ["id", "label", "placeholder", "model-value", "error", "disabled", "lang", "validate", "onRemove:error", "onPush:error"])) : $("", !0),
2261
2266
  e.field.type === "email" ? (m(), J(a(h), {
2262
2267
  key: 5,
@@ -2270,8 +2275,8 @@ const _t = { class: "jsgd-fixed jsgd-inset-0 jsgd-z-20 jsgd-flex jsgd-items-cent
2270
2275
  validate: e.field.validate,
2271
2276
  lang: e.lang,
2272
2277
  "onUpdate:modelValue": b[5] || (b[5] = (y) => N.$emit("update:model-value", y, e.fieldKey)),
2273
- "onRemove:error": a(K).removeError,
2274
- "onPush:error": a(K).pushError
2278
+ "onRemove:error": a(U).removeError,
2279
+ "onPush:error": a(U).pushError
2275
2280
  }, null, 8, ["id", "type", "label", "placeholder", "model-value", "error", "disabled", "validate", "lang", "onRemove:error", "onPush:error"])) : $("", !0),
2276
2281
  e.field.type === "tag" ? (m(), J(a(S), {
2277
2282
  key: 6,
@@ -2306,8 +2311,8 @@ const _t = { class: "jsgd-fixed jsgd-inset-0 jsgd-z-20 jsgd-flex jsgd-items-cent
2306
2311
  validate: e.field.validate ?? !0,
2307
2312
  lang: e.lang,
2308
2313
  "onUpdate:modelValue": b[8] || (b[8] = (y) => N.$emit("update:model-value", y, e.fieldKey)),
2309
- "onRemove:error": b[9] || (b[9] = (y) => a(K).removeError(e.fieldKey)),
2310
- "onPush:error": b[10] || (b[10] = (y) => a(K).pushError(y, e.fieldKey))
2314
+ "onRemove:error": b[9] || (b[9] = (y) => a(U).removeError(e.fieldKey)),
2315
+ "onPush:error": b[10] || (b[10] = (y) => a(U).pushError(y, e.fieldKey))
2311
2316
  }, null, 8, ["id", "label", "placeholder", "model-value", "error", "disabled", "validate", "lang"])) : $("", !0),
2312
2317
  e.field.type === "password" ? (m(), J(a(f), {
2313
2318
  key: 9,
@@ -2320,8 +2325,8 @@ const _t = { class: "jsgd-fixed jsgd-inset-0 jsgd-z-20 jsgd-flex jsgd-items-cent
2320
2325
  disabled: e.field.disabled,
2321
2326
  validate: e.field.validate,
2322
2327
  "onUpdate:modelValue": b[11] || (b[11] = (y) => N.$emit("update:model-value", y, e.fieldKey)),
2323
- "onRemove:error": a(K).removeError,
2324
- "onPush:error": a(K).pushError
2328
+ "onRemove:error": a(U).removeError,
2329
+ "onPush:error": a(U).pushError
2325
2330
  }, null, 8, ["id", "label", "lang", "placeholder", "model-value", "error", "disabled", "validate", "onRemove:error", "onPush:error"])) : $("", !0),
2326
2331
  e.field.type === "quillEditor" ? (m(), J(a(d), {
2327
2332
  key: 10,
@@ -2335,8 +2340,8 @@ const _t = { class: "jsgd-fixed jsgd-inset-0 jsgd-z-20 jsgd-flex jsgd-items-cent
2335
2340
  apiUploadImage: e.field.apiUploadImage,
2336
2341
  apiUploadVideo: e.field.apiUploadVideo,
2337
2342
  "onUpdate:modelValue": b[12] || (b[12] = (y) => N.$emit("update:model-value", y, e.fieldKey)),
2338
- "onRemove:error": a(K).removeError,
2339
- "onPush:error": a(K).pushError
2343
+ "onRemove:error": a(U).removeError,
2344
+ "onPush:error": a(U).pushError
2340
2345
  }, null, 8, ["id", "label", "error", "model-value", "disabled", "lang", "validate", "apiUploadImage", "apiUploadVideo", "onRemove:error", "onPush:error"])) : $("", !0),
2341
2346
  e.field.type === "textArea" ? (m(), J(a(B), {
2342
2347
  key: 11,
@@ -2348,8 +2353,8 @@ const _t = { class: "jsgd-fixed jsgd-inset-0 jsgd-z-20 jsgd-flex jsgd-items-cent
2348
2353
  lang: e.lang,
2349
2354
  validate: e.field.validate,
2350
2355
  "onUpdate:modelValue": b[13] || (b[13] = (y) => N.$emit("update:model-value", y, e.fieldKey)),
2351
- "onRemove:error": a(K).removeError,
2352
- "onPush:error": a(K).pushError
2356
+ "onRemove:error": a(U).removeError,
2357
+ "onPush:error": a(U).pushError
2353
2358
  }, null, 8, ["id", "label", "error", "model-value", "disabled", "lang", "validate", "onRemove:error", "onPush:error"])) : $("", !0),
2354
2359
  e.field.type === "image" ? (m(), J(a(t), {
2355
2360
  key: 12,
@@ -2362,8 +2367,8 @@ const _t = { class: "jsgd-fixed jsgd-inset-0 jsgd-z-20 jsgd-flex jsgd-items-cent
2362
2367
  validate: e.field.validate,
2363
2368
  watermark: e.field.watermark,
2364
2369
  error: a(W)(L.value, e.fieldKey),
2365
- "onRemove:error": a(K).removeError,
2366
- "onPush:error": a(K).pushError,
2370
+ "onRemove:error": a(U).removeError,
2371
+ "onPush:error": a(U).pushError,
2367
2372
  lang: e.lang
2368
2373
  }, null, 8, ["id", "label", "model-value", "disabled", "preview-alt", "validate", "watermark", "error", "onRemove:error", "onPush:error", "lang"])) : $("", !0),
2369
2374
  e.field.type === "imageArray" ? (m(), J(a(k), {
@@ -2377,8 +2382,8 @@ const _t = { class: "jsgd-fixed jsgd-inset-0 jsgd-z-20 jsgd-flex jsgd-items-cent
2377
2382
  validate: e.field.validate,
2378
2383
  watermark: e.field.watermark,
2379
2384
  error: a(W)(L.value, e.fieldKey),
2380
- "onRemove:error": a(K).removeError,
2381
- "onPush:error": a(K).pushError,
2385
+ "onRemove:error": a(U).removeError,
2386
+ "onPush:error": a(U).pushError,
2382
2387
  lang: e.lang
2383
2388
  }, null, 8, ["id", "label", "model-value", "disabled", "preview-alt", "validate", "watermark", "error", "onRemove:error", "onPush:error", "lang"])) : $("", !0),
2384
2389
  e.field.type === "file" ? (m(), J(a(q), {
@@ -2391,8 +2396,8 @@ const _t = { class: "jsgd-fixed jsgd-inset-0 jsgd-z-20 jsgd-flex jsgd-items-cent
2391
2396
  "onUpdate:modelValue": b[16] || (b[16] = (y) => N.$emit("update:model-value", y, e.fieldKey)),
2392
2397
  validate: e.field.validate,
2393
2398
  error: a(W)(L.value, e.fieldKey),
2394
- "onRemove:error": a(K).removeError,
2395
- "onPush:error": a(K).pushError,
2399
+ "onRemove:error": a(U).removeError,
2400
+ "onPush:error": a(U).pushError,
2396
2401
  lang: e.lang
2397
2402
  }, null, 8, ["id", "label", "model-value", "disabled", "preview-alt", "validate", "error", "onRemove:error", "onPush:error", "lang"])) : $("", !0),
2398
2403
  e.field.type === "fileArray" ? (m(), J(a(u), {
@@ -2405,8 +2410,8 @@ const _t = { class: "jsgd-fixed jsgd-inset-0 jsgd-z-20 jsgd-flex jsgd-items-cent
2405
2410
  "onUpdate:modelValue": b[17] || (b[17] = (y) => N.$emit("update:model-value", y, e.fieldKey)),
2406
2411
  validate: e.field.validate,
2407
2412
  error: a(W)(L.value, e.fieldKey),
2408
- "onRemove:error": a(K).removeError,
2409
- "onPush:error": a(K).pushError,
2413
+ "onRemove:error": a(U).removeError,
2414
+ "onPush:error": a(U).pushError,
2410
2415
  lang: e.lang
2411
2416
  }, null, 8, ["id", "label", "model-value", "disabled", "preview-alt", "validate", "error", "onRemove:error", "onPush:error", "lang"])) : $("", !0),
2412
2417
  e.field.type === "color" ? (m(), J(a(g), {
@@ -2447,8 +2452,8 @@ const _t = { class: "jsgd-fixed jsgd-inset-0 jsgd-z-20 jsgd-flex jsgd-items-cent
2447
2452
  disabled: e.field.disabled,
2448
2453
  lang: e.lang,
2449
2454
  "onUpdate:modelValue": b[20] || (b[20] = (y, T) => N.$emit("update:model-value", y, T)),
2450
- "onRemove:errors": b[21] || (b[21] = (y) => a(K).removeError(y)),
2451
- "onPush:errors": b[22] || (b[22] = (y, T) => a(K).pushError(y, T)),
2455
+ "onRemove:errors": b[21] || (b[21] = (y) => a(U).removeError(y)),
2456
+ "onPush:errors": b[22] || (b[22] = (y, T) => a(U).pushError(y, T)),
2452
2457
  onMultiSelectedChange: b[23] || (b[23] = (y, T) => N.$emit("multi-selected-change", y, T)),
2453
2458
  onSelectedOptionChange: b[24] || (b[24] = (y, T) => N.$emit("selected-option-change", y, T))
2454
2459
  }, null, 8, ["id", "label", "schema", "form-data", "errors", "disabled", "lang"])) : $("", !0),
@@ -2474,8 +2479,8 @@ const _t = { class: "jsgd-fixed jsgd-inset-0 jsgd-z-20 jsgd-flex jsgd-items-cent
2474
2479
  validate: e.field.validate,
2475
2480
  lang: e.lang,
2476
2481
  "onUpdate:modelValue": b[26] || (b[26] = (y) => N.$emit("update:model-value", y, e.fieldKey)),
2477
- "onRemove:error": a(K).removeError,
2478
- "onPush:error": a(K).pushError
2482
+ "onRemove:error": a(U).removeError,
2483
+ "onPush:error": a(U).pushError
2479
2484
  }, null, 8, ["id", "label", "model-value", "error", "disabled", "placeholder", "validate", "lang", "onRemove:error", "onPush:error"])) : $("", !0),
2480
2485
  e.field.type === "time" ? (m(), J(a(O), {
2481
2486
  key: 21,
@@ -2488,8 +2493,8 @@ const _t = { class: "jsgd-fixed jsgd-inset-0 jsgd-z-20 jsgd-flex jsgd-items-cent
2488
2493
  validate: e.field.validate,
2489
2494
  lang: e.lang,
2490
2495
  "onUpdate:modelValue": b[27] || (b[27] = (y) => N.$emit("update:model-value", y, e.fieldKey)),
2491
- "onRemove:error": a(K).removeError,
2492
- "onPush:error": a(K).pushError
2496
+ "onRemove:error": a(U).removeError,
2497
+ "onPush:error": a(U).pushError
2493
2498
  }, null, 8, ["id", "label", "model-value", "error", "disabled", "placeholder", "validate", "lang", "onRemove:error", "onPush:error"])) : $("", !0),
2494
2499
  e.field.type === "dateTime" ? (m(), J(a(Q), {
2495
2500
  key: 22,
@@ -2503,8 +2508,8 @@ const _t = { class: "jsgd-fixed jsgd-inset-0 jsgd-z-20 jsgd-flex jsgd-items-cent
2503
2508
  "output-format": e.field.outputFormat,
2504
2509
  lang: e.lang,
2505
2510
  "onUpdate:modelValue": b[28] || (b[28] = (y) => N.$emit("update:model-value", y, e.fieldKey)),
2506
- "onRemove:error": a(K).removeError,
2507
- "onPush:error": a(K).pushError
2511
+ "onRemove:error": a(U).removeError,
2512
+ "onPush:error": a(U).pushError
2508
2513
  }, null, 8, ["id", "label", "model-value", "error", "disabled", "placeholder", "validate", "output-format", "lang", "onRemove:error", "onPush:error"])) : $("", !0),
2509
2514
  e.field.type === "optionGroupSchema" ? (m(), J(a(o), {
2510
2515
  key: 23,
@@ -2522,8 +2527,8 @@ const _t = { class: "jsgd-fixed jsgd-inset-0 jsgd-z-20 jsgd-flex jsgd-items-cent
2522
2527
  onMultiSelectedChange: b[29] || (b[29] = (y, T) => N.$emit("multi-selected-change", y, T)),
2523
2528
  onSelectedOptionChange: b[30] || (b[30] = (y, T) => N.$emit("selected-option-change", y, T)),
2524
2529
  "onUpdate:modelValue": b[31] || (b[31] = (y, T) => N.$emit("update:model-value", y, T)),
2525
- "onRemove:error": a(K).removeError,
2526
- "onPush:error": a(K).pushError
2530
+ "onRemove:error": a(U).removeError,
2531
+ "onPush:error": a(U).pushError
2527
2532
  }, null, 8, ["id", "label", "type-design", "options", "options-labels", "required", "disabled", "form-data", "errors", "error", "with-value", "onRemove:error", "onPush:error"])) : $("", !0)
2528
2533
  ]));
2529
2534
  }
@@ -2535,10 +2540,10 @@ function I(e, s, t) {
2535
2540
  g = g.replace(`{${r}}`, String(l));
2536
2541
  return g;
2537
2542
  }
2538
- const Vs = { class: "jsgd-text-sm jsgd-font-medium jsgd-leading-snug jsgd-whitespace-pre-wrap" }, Ts = { key: 1 }, Es = {
2543
+ const Is = { class: "jsgd-text-sm jsgd-font-medium jsgd-leading-snug jsgd-whitespace-pre-wrap" }, Vs = { key: 1 }, Ts = {
2539
2544
  key: 0,
2540
2545
  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"
2541
- }, xe = /* @__PURE__ */ re({
2546
+ }, xe = /* @__PURE__ */ le({
2542
2547
  __name: "Tooltip",
2543
2548
  props: {
2544
2549
  text: {
@@ -2574,7 +2579,7 @@ const Vs = { class: "jsgd-text-sm jsgd-font-medium jsgd-leading-snug jsgd-whites
2574
2579
  }
2575
2580
  }), u = () => {
2576
2581
  window.clearTimeout(o), o = window.setTimeout(async () => {
2577
- t.value = !0, await zt(), x();
2582
+ t.value = !0, await Rt(), x();
2578
2583
  }, 300);
2579
2584
  }, v = () => {
2580
2585
  window.clearTimeout(o), t.value = !1;
@@ -2599,7 +2604,7 @@ const Vs = { class: "jsgd-text-sm jsgd-font-medium jsgd-leading-snug jsgd-whites
2599
2604
  }
2600
2605
  l.value = { top: `${h}px`, left: `${f}px` };
2601
2606
  }
2602
- return (c, i) => (m(), J(Lt(e.as), {
2607
+ return (c, i) => (m(), J(Et(e.as), {
2603
2608
  class: "jsgd-inline-flex jsgd-cursor-pointer",
2604
2609
  ref_key: "trigger",
2605
2610
  ref: g,
@@ -2607,8 +2612,8 @@ const Vs = { class: "jsgd-text-sm jsgd-font-medium jsgd-leading-snug jsgd-whites
2607
2612
  onMouseleave: v
2608
2613
  }, {
2609
2614
  default: ue(() => [
2610
- Pt(c.$slots, "default"),
2611
- (m(), J(Rt, { to: "body" }, [
2615
+ Lt(c.$slots, "default"),
2616
+ (m(), J(Pt, { to: "body" }, [
2612
2617
  Ie(Ce, {
2613
2618
  "enter-active-class": "jsgd-transition-all jsgd-duration-200 jsgd-ease-out",
2614
2619
  "enter-from-class": "jsgd-opacity-0 jsgd-translate-y-2",
@@ -2625,10 +2630,10 @@ const Vs = { class: "jsgd-text-sm jsgd-font-medium jsgd-leading-snug jsgd-whites
2625
2630
  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)]",
2626
2631
  style: Pe(l.value)
2627
2632
  }, [
2628
- n("div", Vs, [
2629
- Array.isArray(e.text) ? (m(!0), w(X, { key: 0 }, te(e.text, (j, h) => (m(), w("p", { key: h }, M(j), 1))), 128)) : (m(), w("p", Ts, M(e.text), 1))
2633
+ n("div", Is, [
2634
+ Array.isArray(e.text) ? (m(!0), w(X, { key: 0 }, te(e.text, (j, h) => (m(), w("p", { key: h }, M(j), 1))), 128)) : (m(), w("p", Vs, M(e.text), 1))
2630
2635
  ]),
2631
- e.hotkey ? (m(), w("span", Es, M(e.hotkey), 1)) : $("", !0),
2636
+ e.hotkey ? (m(), w("span", Ts, M(e.hotkey), 1)) : $("", !0),
2632
2637
  n("div", {
2633
2638
  class: R(["jsgd-absolute jsgd-w-0 jsgd-h-0 jsgd-border-[6px] jsgd-border-transparent", d.value])
2634
2639
  }, null, 2)
@@ -2642,20 +2647,20 @@ const Vs = { class: "jsgd-text-sm jsgd-font-medium jsgd-leading-snug jsgd-whites
2642
2647
  }, 544));
2643
2648
  }
2644
2649
  });
2645
- let Je = [], Ye = [], Ue = "MyAppDB", mt = 1;
2650
+ let Ge = [], Je = [], Ue = "MyAppDB", ct = 1;
2646
2651
  const je = {
2647
2652
  single: /* @__PURE__ */ new Set(),
2648
2653
  array: /* @__PURE__ */ new Set()
2649
2654
  };
2650
- let Ze = !1;
2651
- function Ls(e) {
2652
- Ze || (Ze = !0, Ue = e.dbName || Ue, mt = e.dbVersion || mt, Je = e.storeSingle || [], Ye = e.storeArray || [], Je.forEach((s) => je.single.add(s)), Ye.forEach((s) => je.array.add(s)));
2655
+ let Ye = !1;
2656
+ function Es(e) {
2657
+ Ye || (Ye = !0, Ue = e.dbName || Ue, ct = e.dbVersion || ct, Ge = e.storeSingle || [], Je = e.storeArray || [], Ge.forEach((s) => je.single.add(s)), Je.forEach((s) => je.array.add(s)));
2653
2658
  }
2654
- function jt(e) {
2659
+ function mt(e) {
2655
2660
  return je.array.has(e);
2656
2661
  }
2657
- async function De(e = []) {
2658
- Ze || Ls({}), e.forEach(Ps);
2662
+ async function Se(e = []) {
2663
+ Ye || Es({}), e.forEach(Ls);
2659
2664
  const s = await new Promise((o, d) => {
2660
2665
  const u = indexedDB.open(Ue);
2661
2666
  u.onsuccess = () => o(u.result), u.onerror = () => d(u.error);
@@ -2681,12 +2686,12 @@ async function De(e = []) {
2681
2686
  }, u.onsuccess = () => o(u.result), u.onerror = () => d(u.error);
2682
2687
  });
2683
2688
  }
2684
- function Ps(e) {
2685
- const s = Je.includes(e) || je.single.has(e), t = Ye.includes(e) || je.array.has(e);
2689
+ function Ls(e) {
2690
+ const s = Ge.includes(e) || je.single.has(e), t = Je.includes(e) || je.array.has(e);
2686
2691
  !s && !t && je.array.add(e);
2687
2692
  }
2688
2693
  async function Re(e) {
2689
- const s = Object.keys(e), t = await De(s), g = t.transaction(Array.from(t.objectStoreNames), "readwrite");
2694
+ const s = Object.keys(e), t = await Se(s), g = t.transaction(Array.from(t.objectStoreNames), "readwrite");
2690
2695
  for (const r of s)
2691
2696
  if (je.single.has(r) && e[r] !== void 0)
2692
2697
  g.objectStore(r).put(e[r], "current");
@@ -2698,9 +2703,9 @@ async function Re(e) {
2698
2703
  g.oncomplete = () => r(), g.onerror = () => l(g.error);
2699
2704
  });
2700
2705
  }
2701
- async function Kr(e, s = "current") {
2706
+ async function Ur(e, s = "current") {
2702
2707
  je.single.add(e);
2703
- const t = await De([e]);
2708
+ const t = await Se([e]);
2704
2709
  if (!t.objectStoreNames.contains(e)) return;
2705
2710
  const r = t.transaction(e, "readonly").objectStore(e);
2706
2711
  return new Promise((l, o) => {
@@ -2708,9 +2713,9 @@ async function Kr(e, s = "current") {
2708
2713
  d.onsuccess = () => l(d.result), d.onerror = () => o(d.error);
2709
2714
  });
2710
2715
  }
2711
- async function bt(e) {
2716
+ async function jt(e) {
2712
2717
  je.array.add(e);
2713
- const s = await De([e]);
2718
+ const s = await Se([e]);
2714
2719
  if (!s.objectStoreNames.contains(e)) return [];
2715
2720
  const g = s.transaction(e, "readonly").objectStore(e);
2716
2721
  return new Promise((r, l) => {
@@ -2718,16 +2723,16 @@ async function bt(e) {
2718
2723
  o.onsuccess = () => r(o.result || []), o.onerror = () => l(o.error);
2719
2724
  });
2720
2725
  }
2721
- async function ht(e, s) {
2726
+ async function bt(e, s) {
2722
2727
  je.array.add(e);
2723
- const g = (await De([e])).transaction(e, "readwrite");
2728
+ const g = (await Se([e])).transaction(e, "readwrite");
2724
2729
  return g.objectStore(e).put(s), new Promise((l, o) => {
2725
2730
  g.oncomplete = () => l(), g.onerror = () => o(g.error);
2726
2731
  });
2727
2732
  }
2728
- async function Or(e, s) {
2733
+ async function Kr(e, s) {
2729
2734
  je.array.add(e);
2730
- const t = await De([e]);
2735
+ const t = await Se([e]);
2731
2736
  if (!t.objectStoreNames.contains(e)) return;
2732
2737
  const r = t.transaction(e, "readonly").objectStore(e);
2733
2738
  return new Promise((l, o) => {
@@ -2735,17 +2740,17 @@ async function Or(e, s) {
2735
2740
  d.onsuccess = () => l(d.result), d.onerror = () => o(d.error);
2736
2741
  });
2737
2742
  }
2738
- async function Fr(e) {
2739
- const s = await De([e]);
2743
+ async function Or(e) {
2744
+ const s = await Se([e]);
2740
2745
  if (!s.objectStoreNames.contains(e)) return;
2741
2746
  const t = s.transaction(e, "readwrite");
2742
2747
  return t.objectStore(e).clear(), new Promise((g, r) => {
2743
2748
  t.oncomplete = () => g(), t.onerror = () => r(t.error);
2744
2749
  });
2745
2750
  }
2746
- async function Nr(e, s) {
2751
+ async function Fr(e, s) {
2747
2752
  je.array.add(e);
2748
- const t = await De([e]);
2753
+ const t = await Se([e]);
2749
2754
  if (!t.objectStoreNames.contains(e)) {
2750
2755
  console.warn(`Store "${e}" not found. Skipping delete operation.`);
2751
2756
  return;
@@ -2755,11 +2760,11 @@ async function Nr(e, s) {
2755
2760
  g.oncomplete = () => r(), g.onerror = () => l(g.error);
2756
2761
  });
2757
2762
  }
2758
- async function ft(e) {
2763
+ async function ht(e) {
2759
2764
  const s = Object.keys(e);
2760
2765
  if (s.length === 0) return;
2761
2766
  s.forEach((l) => je.array.add(l));
2762
- const t = await De(s), g = s.filter((l) => t.objectStoreNames.contains(l));
2767
+ const t = await Se(s), g = s.filter((l) => t.objectStoreNames.contains(l));
2763
2768
  if (g.length === 0) return;
2764
2769
  const r = t.transaction(g, "readwrite");
2765
2770
  for (const [l, o] of Object.entries(e)) {
@@ -2771,7 +2776,7 @@ async function ft(e) {
2771
2776
  r.oncomplete = () => l(), r.onerror = () => o(r.error);
2772
2777
  });
2773
2778
  }
2774
- async function We(e, s = {}) {
2779
+ async function He(e, s = {}) {
2775
2780
  const { authType: t = "cookie", token: g, customHeaders: r, ...l } = s, o = new Headers(l.headers || {});
2776
2781
  if (t === "bearer" && g)
2777
2782
  o.set("Authorization", `Bearer ${g}`);
@@ -2798,13 +2803,13 @@ async function We(e, s = {}) {
2798
2803
  }
2799
2804
  return d;
2800
2805
  }
2801
- const st = (e) => e ? e.toLowerCase().replace(/&/g, "and").replace(/[^a-z0-9\s-]/g, "").replace(/\s+/g, "-").replace(/-+/g, "-") : "", ge = (e) => e[Math.floor(Math.random() * e.length)], Dt = (e, s) => new Date(e.getTime() + Math.random() * (s.getTime() - e.getTime())), Rs = {
2806
+ const tt = (e) => e ? e.toLowerCase().replace(/&/g, "and").replace(/[^a-z0-9\s-]/g, "").replace(/\s+/g, "-").replace(/-+/g, "-") : "", ge = (e) => e[Math.floor(Math.random() * e.length)], St = (e, s) => new Date(e.getTime() + Math.random() * (s.getTime() - e.getTime())), Ps = {
2802
2807
  id: 1,
2803
2808
  username: "admin",
2804
2809
  password: "bcrypt_hashed_password_placeholder",
2805
2810
  token: null,
2806
2811
  limitToken: null
2807
- }, zs = {
2812
+ }, Rs = {
2808
2813
  id: 1,
2809
2814
  name: "Solusi Pesta Surabaya",
2810
2815
  icon: "https://picsum.photos/300/300?random=1",
@@ -2831,38 +2836,38 @@ const st = (e) => e ? e.toLowerCase().replace(/&/g, "and").replace(/[^a-z0-9\s-]
2831
2836
  tokoPedia: "https://tokopedia.com/pestaselalu",
2832
2837
  createAt: /* @__PURE__ */ new Date("2025-01-01T00:00:00.000Z"),
2833
2838
  updateAt: /* @__PURE__ */ new Date()
2834
- }, Bs = {
2839
+ }, zs = {
2835
2840
  id: 1,
2836
2841
  name: "Bapak Wijaya",
2837
2842
  photo: "https://picsum.photos/300/300?random=2",
2838
2843
  bio: "Owner PT Pesta Selalu. Siap melayani kebutuhan acara Anda dengan profesional.",
2839
2844
  createdAt: /* @__PURE__ */ new Date("2025-01-01T00:00:00.000Z"),
2840
2845
  updatedAt: /* @__PURE__ */ new Date()
2841
- }, Us = {
2846
+ }, Bs = {
2842
2847
  id: 1,
2843
2848
  type: "PriceDistance",
2844
2849
  coordinateX: -7.289167,
2845
2850
  coordinateY: 112.73439,
2846
2851
  price: 5e3,
2847
2852
  distance: 1
2848
- }, Ks = Array.from({ length: 20 }, (e, s) => ({
2853
+ }, Us = Array.from({ length: 20 }, (e, s) => ({
2849
2854
  id: s + 1,
2850
2855
  category: ge(["Pemesanan", "Pembayaran", "Pengiriman", "Lainnya"]),
2851
2856
  question: `Ini adalah pertanyaan umum nomor ${s + 1}?`,
2852
2857
  answer: `Ini adalah jawaban untuk pertanyaan umum nomor ${s + 1}.`,
2853
- createAt: Dt(new Date(2024, 0, 1), /* @__PURE__ */ new Date()),
2858
+ createAt: St(new Date(2024, 0, 1), /* @__PURE__ */ new Date()),
2854
2859
  updateAt: /* @__PURE__ */ new Date()
2855
- })), at = Array.from({ length: 20 }, (e, s) => ({
2860
+ })), st = Array.from({ length: 20 }, (e, s) => ({
2856
2861
  id: s + 1,
2857
2862
  name: `Tipe Alat ${s + 1}`,
2858
2863
  createAt: /* @__PURE__ */ new Date(),
2859
2864
  updateAt: /* @__PURE__ */ new Date()
2860
- })), dt = Array.from({ length: 20 }, (e, s) => ({
2865
+ })), at = Array.from({ length: 20 }, (e, s) => ({
2861
2866
  id: s + 1,
2862
2867
  name: `Model Alat ${s + 1}`,
2863
2868
  createAt: /* @__PURE__ */ new Date(),
2864
2869
  updateAt: /* @__PURE__ */ new Date()
2865
- })), rt = Array.from({ length: 20 }, (e, s) => ({
2870
+ })), dt = Array.from({ length: 20 }, (e, s) => ({
2866
2871
  id: s + 1,
2867
2872
  name: `Alat Pesta ${s + 1}`,
2868
2873
  image: `https://picsum.photos/300/300?random=${100 + s}`,
@@ -2873,11 +2878,11 @@ const st = (e) => e ? e.toLowerCase().replace(/&/g, "and").replace(/[^a-z0-9\s-]
2873
2878
  sizeZ: parseFloat((Math.random() * 5).toFixed(2)),
2874
2879
  unitOfMeasure: ge(["cm", "m", "inch"]),
2875
2880
  dimensions: parseFloat((Math.random() * 100).toFixed(2)),
2876
- modelId: ge(dt).id,
2877
- typeId: ge(at).id,
2881
+ modelId: ge(at).id,
2882
+ typeId: ge(st).id,
2878
2883
  createAt: /* @__PURE__ */ new Date(),
2879
2884
  updateAt: /* @__PURE__ */ new Date()
2880
- })), $t = Array.from({ length: 20 }, (e, s) => {
2885
+ })), Dt = Array.from({ length: 20 }, (e, s) => {
2881
2886
  const t = Math.floor(Math.random() * 3) + 1, g = t + Math.floor(Math.random() * 3) + 1, r = Array.from(
2882
2887
  { length: g },
2883
2888
  () => `#${Math.floor(Math.random() * 16777215).toString(16).padStart(6, "0")}`
@@ -2890,20 +2895,20 @@ const st = (e) => e ? e.toLowerCase().replace(/&/g, "and").replace(/[^a-z0-9\s-]
2890
2895
  createAt: /* @__PURE__ */ new Date(),
2891
2896
  updateAt: /* @__PURE__ */ new Date()
2892
2897
  };
2893
- }), At = Array.from({ length: 20 }, (e, s) => {
2898
+ }), $t = Array.from({ length: 20 }, (e, s) => {
2894
2899
  const t = s % 3;
2895
2900
  return {
2896
2901
  id: s + 1,
2897
2902
  name: `Aksesoris ${s + 1}`,
2898
2903
  price: (Math.floor(Math.random() * 20) + 1) * 1e3,
2899
2904
  description: `Deskripsi untuk Aksesoris ${s + 1}.`,
2900
- typeId: t === 2 ? ge(at).id : null,
2901
- modelId: t === 1 ? ge(dt).id : null,
2902
- toolsId: t === 0 ? ge(rt).id : null,
2905
+ typeId: t === 2 ? ge(st).id : null,
2906
+ modelId: t === 1 ? ge(at).id : null,
2907
+ toolsId: t === 0 ? ge(dt).id : null,
2903
2908
  createAt: /* @__PURE__ */ new Date(),
2904
2909
  updateAt: /* @__PURE__ */ new Date()
2905
2910
  };
2906
- }), Os = Array.from({ length: 40 }, (e, s) => {
2911
+ }), Ks = Array.from({ length: 40 }, (e, s) => {
2907
2912
  const t = Math.random() > 0.5, g = Math.floor(s / 2) + 1;
2908
2913
  return {
2909
2914
  id: s + 1,
@@ -2913,10 +2918,10 @@ const st = (e) => e ? e.toLowerCase().replace(/&/g, "and").replace(/[^a-z0-9\s-]
2913
2918
  colors: t ? null : [
2914
2919
  `#${Math.floor(Math.random() * 16777215).toString(16).padStart(6, "0")}`
2915
2920
  ],
2916
- colorToolsId: t ? ge($t).id : null,
2921
+ colorToolsId: t ? ge(Dt).id : null,
2917
2922
  createAt: /* @__PURE__ */ new Date()
2918
2923
  };
2919
- }), Xe = Array.from({ length: 20 }, (e, s) => {
2924
+ }), Ze = Array.from({ length: 20 }, (e, s) => {
2920
2925
  const t = `Promo Heboh #${s + 1}`, g = ge(["DISCOUNT", "DAY_RENT", "FREE_SHIPPING"]), r = ge(["RateDiscount", "NominalDiscount"]);
2921
2926
  let l;
2922
2927
  return g === "DISCOUNT" ? l = {
@@ -2943,7 +2948,7 @@ const st = (e) => e ? e.toLowerCase().replace(/&/g, "and").replace(/[^a-z0-9\s-]
2943
2948
  }, {
2944
2949
  id: s + 1,
2945
2950
  title: t,
2946
- slug: st(t),
2951
+ slug: tt(t),
2947
2952
  keywords: ["promo", `promo-${s + 1}`],
2948
2953
  description: `Deskripsi lengkap untuk ${t}.`,
2949
2954
  type: g,
@@ -2960,8 +2965,8 @@ const st = (e) => e ? e.toLowerCase().replace(/&/g, "and").replace(/[^a-z0-9\s-]
2960
2965
  ...l
2961
2966
  }
2962
2967
  };
2963
- }), Fs = Array.from({ length: 20 }, (e, s) => {
2964
- const t = `Berita Terkini Edisi ke-${s + 1}`, g = st(t), r = ge(["Buku", "Artikel", "Jurnal"]);
2968
+ }), Os = Array.from({ length: 20 }, (e, s) => {
2969
+ const t = `Berita Terkini Edisi ke-${s + 1}`, g = tt(t), r = ge(["Buku", "Artikel", "Jurnal"]);
2965
2970
  return {
2966
2971
  id: s + 1,
2967
2972
  title: t,
@@ -2989,42 +2994,42 @@ const st = (e) => e ? e.toLowerCase().replace(/&/g, "and").replace(/[^a-z0-9\s-]
2989
2994
  ],
2990
2995
  show: !0,
2991
2996
  orderCode: null,
2992
- createdAt: Dt(new Date(2024, 0, 1), /* @__PURE__ */ new Date()),
2997
+ createdAt: St(new Date(2024, 0, 1), /* @__PURE__ */ new Date()),
2993
2998
  updatedAt: /* @__PURE__ */ new Date()
2994
2999
  };
2995
- }), Mt = Array.from({ length: 20 }, (e, s) => {
3000
+ }), At = Array.from({ length: 20 }, (e, s) => {
2996
3001
  const t = `Halaman ${s + 1}`;
2997
3002
  return {
2998
3003
  id: s + 1,
2999
3004
  name: t,
3000
3005
  image: `https://picsum.photos/300/300?random=${500 + s}`,
3001
- slug: st(t),
3006
+ slug: tt(t),
3002
3007
  description: `Deskripsi untuk ${t}`,
3003
3008
  active: Math.random() > 0.2,
3004
3009
  createAt: /* @__PURE__ */ new Date(),
3005
3010
  updateAt: /* @__PURE__ */ new Date()
3006
3011
  };
3007
- }), Ns = Array.from({ length: 20 }, (e, s) => ({
3012
+ }), Fs = Array.from({ length: 20 }, (e, s) => ({
3008
3013
  id: s + 1,
3009
3014
  title: `Layanan Unggulan ${s + 1}`,
3010
3015
  image: `https://picsum.photos/300/300?random=${600 + s}`,
3011
3016
  description: `Deskripsi lengkap untuk layanan unggulan kami nomor ${s + 1}.`,
3012
3017
  createdAt: /* @__PURE__ */ new Date(),
3013
3018
  updatedAt: /* @__PURE__ */ new Date()
3014
- })), qs = Array.from({ length: 20 }, (e, s) => ({
3019
+ })), Ns = Array.from({ length: 20 }, (e, s) => ({
3015
3020
  id: s + 1,
3016
3021
  email: `subscriber${s + 1}@example.com`,
3017
3022
  number: `089876543${(21 + s).toString().padStart(2, "0")}`,
3018
3023
  createAt: /* @__PURE__ */ new Date(),
3019
3024
  updatedAt: /* @__PURE__ */ new Date()
3020
- })), Hs = Array.from({ length: 20 }, (e, s) => ({
3025
+ })), qs = Array.from({ length: 20 }, (e, s) => ({
3021
3026
  id: s + 1,
3022
- pageId: ge(Mt).id,
3027
+ pageId: ge(At).id,
3023
3028
  device: ge(["Desktop", "Mobile", "Tablet"]),
3024
3029
  ip: `192.168.1.${s + 1}`,
3025
3030
  userAgent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",
3026
3031
  createAt: /* @__PURE__ */ new Date()
3027
- })), Ws = Array.from({ length: 20 }, (e, s) => ({
3032
+ })), Hs = Array.from({ length: 20 }, (e, s) => ({
3028
3033
  id: s + 1,
3029
3034
  name: `Pengunjung ${s + 1}`,
3030
3035
  email: `visitor${s + 1}@example.com`,
@@ -3035,13 +3040,13 @@ const st = (e) => e ? e.toLowerCase().replace(/&/g, "and").replace(/[^a-z0-9\s-]
3035
3040
  published: Math.random() > 0.5,
3036
3041
  createdAt: /* @__PURE__ */ new Date(),
3037
3042
  updatedAt: /* @__PURE__ */ new Date()
3038
- })), Gs = Array.from({ length: 20 }, (e, s) => ({
3043
+ })), Ws = Array.from({ length: 20 }, (e, s) => ({
3039
3044
  id: s + 1,
3040
3045
  pay: (Math.floor(Math.random() * 50) + 1) * 1e4,
3041
3046
  note: `Pengeluaran untuk item ${s + 1}.`,
3042
3047
  createdAt: /* @__PURE__ */ new Date(),
3043
3048
  updatedAt: /* @__PURE__ */ new Date()
3044
- })), Ct = [], Qe = [], _e = [], Ee = [], et = [];
3049
+ })), Mt = [], Xe = [], Qe = [], Ee = [], _e = [];
3045
3050
  for (let e = 0; e < 20; e++) {
3046
3051
  const s = `ORD-${Date.now()}-${e}`, t = (Math.floor(Math.random() * 200) + 50) * 1e4, g = Math.random() > 0.7 ? Math.random() * 5e4 : 0, r = Math.random() > 0.7 ? Math.random() * 2e4 : 0, l = 5e4, o = t - g + (l - r), d = ge([
3047
3052
  "verify",
@@ -3053,7 +3058,7 @@ for (let e = 0; e < 20; e++) {
3053
3058
  "waitingDpPayment",
3054
3059
  "eventOngoing"
3055
3060
  ]);
3056
- Ct.push({
3061
+ Mt.push({
3057
3062
  id: e + 1,
3058
3063
  orderCode: s,
3059
3064
  firstName: "Pelanggan",
@@ -3075,15 +3080,15 @@ for (let e = 0; e < 20; e++) {
3075
3080
  installationDate: new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + e + 9)),
3076
3081
  demolitionDate: new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + e + 12)),
3077
3082
  invoice: `INV/2025/10/${e + 1}`,
3078
- promoShippingId: Math.random() > 0.8 ? ge(Xe).id : null,
3079
- promoDiscountId: Math.random() > 0.8 ? ge(Xe).id : null,
3083
+ promoShippingId: Math.random() > 0.8 ? ge(Ze).id : null,
3084
+ promoDiscountId: Math.random() > 0.8 ? ge(Ze).id : null,
3080
3085
  message: `Catatan khusus untuk pesanan ${e + 1}.`,
3081
3086
  additionalCharges: Math.random() > 0.9 ? [{ name: "Biaya Kebersihan", price: 1e5 }] : null,
3082
3087
  read: Math.random() > 0.5,
3083
3088
  createAt: /* @__PURE__ */ new Date(),
3084
3089
  updateAt: /* @__PURE__ */ new Date()
3085
- }), d === "completed" && et.push({
3086
- id: et.length + 1,
3090
+ }), d === "completed" && _e.push({
3091
+ id: _e.length + 1,
3087
3092
  nameCustomer: `Pelanggan ${e + 1}`,
3088
3093
  photoCustomer: `https://picsum.photos/300/300?random=${700 + e}`,
3089
3094
  rate: ge([3, 4, 5]),
@@ -3097,19 +3102,19 @@ for (let e = 0; e < 20; e++) {
3097
3102
  updateAt: /* @__PURE__ */ new Date()
3098
3103
  });
3099
3104
  for (let u = 0; u < Math.floor(Math.random() * 2) + 1; u++) {
3100
- const v = Qe.length + 1;
3101
- if (Qe.push({
3105
+ const v = Xe.length + 1;
3106
+ if (Xe.push({
3102
3107
  id: v,
3103
3108
  orderId: e + 1,
3104
- toolId: ge(rt).id,
3109
+ toolId: ge(dt).id,
3105
3110
  quantity: Math.floor(Math.random() * 10) + 1,
3106
3111
  subTotal: (Math.floor(Math.random() * 100) + 1) * 1e3
3107
3112
  }), Math.random() > 0.5)
3108
3113
  for (let x = 0; x < Math.floor(Math.random() * 2); x++)
3109
- _e.push({
3110
- id: _e.length + 1,
3114
+ Qe.push({
3115
+ id: Qe.length + 1,
3111
3116
  orderToolsId: v,
3112
- subToolId: ge(At).id,
3117
+ subToolId: ge($t).id,
3113
3118
  quantity: Math.floor(Math.random() * 5) + 1,
3114
3119
  subTotal: (Math.floor(Math.random() * 20) + 1) * 1e3
3115
3120
  });
@@ -3138,45 +3143,45 @@ for (let e = 0; e < 20; e++) {
3138
3143
  updatedAt: /* @__PURE__ */ new Date()
3139
3144
  });
3140
3145
  }
3141
- const qr = {
3142
- admin: Rs,
3143
- company: zs,
3144
- profil: Bs,
3145
- shippingPrice: Us,
3146
- QandA: Ks,
3147
- promo: Xe,
3148
- news: Fs,
3149
- type: at,
3150
- model: dt,
3151
- tools: rt,
3152
- subTool: At,
3153
- subToolsImages: Os,
3154
- color: $t,
3155
- pages: Mt,
3156
- rateCustomerOrder: et,
3146
+ const Nr = {
3147
+ admin: Ps,
3148
+ company: Rs,
3149
+ profil: zs,
3150
+ shippingPrice: Bs,
3151
+ QandA: Us,
3152
+ promo: Ze,
3153
+ news: Os,
3154
+ type: st,
3155
+ model: at,
3156
+ tools: dt,
3157
+ subTool: $t,
3158
+ subToolsImages: Ks,
3159
+ color: Dt,
3160
+ pages: At,
3161
+ rateCustomerOrder: _e,
3157
3162
  incomes: Ee,
3158
- expenditure: Gs,
3159
- services: Ns,
3160
- subscribe: qs,
3161
- visitors: Hs,
3162
- cqs: Ws,
3163
- orders: Ct,
3164
- orderTools: Qe,
3165
- orderAccessories: _e
3163
+ expenditure: Ws,
3164
+ services: Fs,
3165
+ subscribe: Ns,
3166
+ visitors: qs,
3167
+ cqs: Hs,
3168
+ orders: Mt,
3169
+ orderTools: Xe,
3170
+ orderAccessories: Qe
3166
3171
  // Note: orderDistances would likely be nested in a real app, but following a flat structure for this file.
3167
3172
  };
3168
- function pt(e, s) {
3173
+ function ft(e, s) {
3169
3174
  try {
3170
3175
  return e.parse(s);
3171
3176
  } catch (t) {
3172
- if (t instanceof Ot) {
3177
+ if (t instanceof Kt) {
3173
3178
  const g = t.issues.map((r) => `${r.path.length > 0 ? r.path.join(".") : "root"}: ${r.message}`).join(", ");
3174
3179
  throw new Error(`Validation failed: ${g}`);
3175
3180
  }
3176
3181
  throw t;
3177
3182
  }
3178
3183
  }
3179
- function Hr(e, s) {
3184
+ function qr(e, s) {
3180
3185
  const t = e.safeParse(s);
3181
3186
  return t.success ? {
3182
3187
  success: !0,
@@ -3191,19 +3196,19 @@ function Hr(e, s) {
3191
3196
  }
3192
3197
  };
3193
3198
  }
3194
- const Js = async (e, s, t = "id", g = "ids") => {
3199
+ const Gs = async (e, s, t = "id", g = "ids") => {
3195
3200
  const { data: r, oldData: l, validation: o, endpoint: d, mode: u, db: v, deleteDataDB: x, demo: c } = e, i = x ?? !0;
3196
3201
  if (u !== "get" && !r)
3197
3202
  return {
3198
3203
  message: "data Not Found"
3199
3204
  };
3200
- const j = o ? pt(o, r) : { ...r }, h = l ? o ? pt(o, l) : { ...l } : void 0;
3205
+ const j = o ? ft(o, r) : { ...r }, h = l ? o ? ft(o, l) : { ...l } : void 0;
3201
3206
  if (c) {
3202
3207
  if (!v)
3203
3208
  throw new Error("Demo mode requires a `db` (IndexedDB store name) to be specified.");
3204
3209
  switch (u) {
3205
3210
  case "create": {
3206
- const k = { ...j, [t]: `demo-${Date.now()}` }, p = await bt(v);
3211
+ const k = { ...j, [t]: `demo-${Date.now()}` }, p = await jt(v);
3207
3212
  return await Re({ [v]: [...p, k] }), {
3208
3213
  message: "Data created in demo mode.",
3209
3214
  data: k,
@@ -3211,7 +3216,7 @@ const Js = async (e, s, t = "id", g = "ids") => {
3211
3216
  };
3212
3217
  }
3213
3218
  case "update":
3214
- return await ht(v, j), {
3219
+ return await bt(v, j), {
3215
3220
  message: "Data updated in demo mode.",
3216
3221
  data: j,
3217
3222
  response: !0
@@ -3219,7 +3224,7 @@ const Js = async (e, s, t = "id", g = "ids") => {
3219
3224
  case "delete":
3220
3225
  case "deleteMany": {
3221
3226
  const k = j[g] || [j[t]];
3222
- return k && k.length > 0 && await ft({ [v]: k }), {
3227
+ return k && k.length > 0 && await ht({ [v]: k }), {
3223
3228
  message: "Data deleted in demo mode.",
3224
3229
  response: !0
3225
3230
  };
@@ -3236,10 +3241,10 @@ const Js = async (e, s, t = "id", g = "ids") => {
3236
3241
  endpoint: f,
3237
3242
  remaining: D,
3238
3243
  remainingOld: V
3239
- } = Ys(d, j, h);
3244
+ } = Js(d, j, h);
3240
3245
  let S = u === "create" ? "POST" : u === "update" ? "PATCH" : "DELETE", C = !1;
3241
3246
  if (u === "delete" || u === "deleteMany") {
3242
- const k = Object.keys(D).length > 0 ? JSON.stringify(D) : void 0, p = await We(f, {
3247
+ const k = Object.keys(D).length > 0 ? JSON.stringify(D) : void 0, p = await He(f, {
3243
3248
  method: S,
3244
3249
  headers: k ? { "Content-Type": "application/json" } : void 0,
3245
3250
  body: k,
@@ -3252,7 +3257,7 @@ const Js = async (e, s, t = "id", g = "ids") => {
3252
3257
  throw new Error(L.message || "Gagal menghapus data");
3253
3258
  }
3254
3259
  const E = await p.json();
3255
- return i && v && await ft({
3260
+ return i && v && await ht({
3256
3261
  [v]: r[g ?? "ids"] || r[t ?? "id"] || D._id
3257
3262
  }), {
3258
3263
  message: E.message,
@@ -3260,7 +3265,7 @@ const Js = async (e, s, t = "id", g = "ids") => {
3260
3265
  };
3261
3266
  }
3262
3267
  if (u === "get") {
3263
- const k = await We(f, {
3268
+ const k = await He(f, {
3264
3269
  method: "GET",
3265
3270
  authType: e.authType,
3266
3271
  token: e.token,
@@ -3271,7 +3276,7 @@ const Js = async (e, s, t = "id", g = "ids") => {
3271
3276
  throw new Error(E.message || "Failed to fetch data");
3272
3277
  }
3273
3278
  const p = await k.json();
3274
- return v && p.data && (jt(v) ? await Re({ [v]: p.data }) : await Re({ [v]: [p.data] })), {
3279
+ return v && p.data && (mt(v) ? await Re({ [v]: p.data }) : await Re({ [v]: [p.data] })), {
3275
3280
  ...p,
3276
3281
  message: p.message ?? "Data fetched successfully",
3277
3282
  response: k.ok
@@ -3300,7 +3305,7 @@ const Js = async (e, s, t = "id", g = "ids") => {
3300
3305
  const p = D[k], E = Array.isArray(p) && p.length === 0;
3301
3306
  p != null && !E && (ee[k] = p, Ke(B, k, p, ee, void 0, void 0, s) && (C = !0));
3302
3307
  }
3303
- const Q = await We(
3308
+ const Q = await He(
3304
3309
  f,
3305
3310
  C ? {
3306
3311
  method: S,
@@ -3323,11 +3328,11 @@ const Js = async (e, s, t = "id", g = "ids") => {
3323
3328
  }
3324
3329
  const q = await Q.json();
3325
3330
  if (v) {
3326
- const k = jt(v);
3331
+ const k = mt(v);
3327
3332
  if (u === "update")
3328
- await ht(v, q.data);
3333
+ await bt(v, q.data);
3329
3334
  else if (u === "create" && k) {
3330
- const p = await bt(v);
3335
+ const p = await jt(v);
3331
3336
  await Re({ [v]: [...p, q.data] });
3332
3337
  }
3333
3338
  }
@@ -3424,7 +3429,7 @@ function Ke(e, s, t, g, r = {}, l, o, d, u) {
3424
3429
  } else t instanceof File ? (e.append(x, t), g[s] = t.name, v = !0) : t != null && !Array.isArray(t) && (e.append(x, String(t)), g[s] = t);
3425
3430
  return v;
3426
3431
  }
3427
- function Ys(e, s, t) {
3432
+ function Js(e, s, t) {
3428
3433
  const g = { ...s }, r = t ? { ...t } : void 0;
3429
3434
  return {
3430
3435
  endpoint: e.replace(/:([a-zA-Z_][a-zA-Z0-9_]*)/g, (o, d) => {
@@ -3436,19 +3441,19 @@ function Ys(e, s, t) {
3436
3441
  remainingOld: r
3437
3442
  };
3438
3443
  }
3439
- const Zs = {
3444
+ const Ys = {
3440
3445
  key: 0,
3441
3446
  class: "jsgd-fixed jsgd-inset-0 jsgd-z-100 jsgd-grid jsgd-place-items-center jsgd-bg-slate-900/70 jsgd-backdrop-blur-sm"
3442
- }, Xs = { 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" }, Qs = {
3447
+ }, Zs = { 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" }, Xs = {
3443
3448
  key: 0,
3444
3449
  class: "jsgd-flex jsgd-flex-col jsgd-items-center jsgd-gap-4"
3445
- }, _s = { class: "jsgd-text-slate-500 jsgd-font-medium dark:jsgd-text-slate-400" }, ea = {
3450
+ }, Qs = { class: "jsgd-text-slate-500 jsgd-font-medium dark:jsgd-text-slate-400" }, _s = {
3446
3451
  key: 1,
3447
3452
  class: "jsgd-flex jsgd-flex-col jsgd-items-center jsgd-gap-4"
3448
- }, ta = { class: "jsgd-font-medium jsgd-text-slate-700 dark:jsgd-text-slate-200" }, sa = {
3453
+ }, ea = { class: "jsgd-font-medium jsgd-text-slate-700 dark:jsgd-text-slate-200" }, ta = {
3449
3454
  key: 2,
3450
3455
  class: "jsgd-flex jsgd-flex-col jsgd-items-center jsgd-gap-4"
3451
- }, aa = { class: "jsgd-font-medium jsgd-text-slate-700 dark:jsgd-text-slate-200" }, da = /* @__PURE__ */ re({
3456
+ }, sa = { class: "jsgd-font-medium jsgd-text-slate-700 dark:jsgd-text-slate-200" }, aa = /* @__PURE__ */ le({
3452
3457
  __name: "LoaderSuccessError",
3453
3458
  emits: ["success", "error"],
3454
3459
  setup(e, { expose: s, emit: t }) {
@@ -3468,13 +3473,13 @@ const Zs = {
3468
3473
  "leave-to-class": "jsgd-opacity-0"
3469
3474
  }, {
3470
3475
  default: ue(() => [
3471
- r.value ? (m(), w("div", Zs, [
3472
- n("div", Xs, [
3473
- l.value === "loading" ? (m(), w("div", Qs, [
3476
+ r.value ? (m(), w("div", Ys, [
3477
+ n("div", Zs, [
3478
+ l.value === "loading" ? (m(), w("div", Xs, [
3474
3479
  x[0] || (x[0] = n("div", { class: "jsgd-w-12 jsgd-h-12 jsgd-animate-spin spinner" }, null, -1)),
3475
- n("p", _s, M(o.value || "Memproses..."), 1)
3480
+ n("p", Qs, M(o.value || "Memproses..."), 1)
3476
3481
  ])) : $("", !0),
3477
- l.value === "success" ? (m(), w("div", ea, [
3482
+ l.value === "success" ? (m(), w("div", _s, [
3478
3483
  x[1] || (x[1] = n("div", { class: "jsgd-relative jsgd-animate-[popIn_400ms_cubic-bezier(0.16,1,0.3,1)_backwards]" }, [
3479
3484
  n("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" }, [
3480
3485
  n("span", { class: "jsgd-i-mdi-check jsgd-w-8 jsgd-h-8 jsgd-text-green-600 dark:jsgd-text-green-400" })
@@ -3484,9 +3489,9 @@ const Zs = {
3484
3489
  style: { "animation-delay": "0.2s" }
3485
3490
  })
3486
3491
  ], -1)),
3487
- n("p", ta, M(o.value || "Berhasil!"), 1)
3492
+ n("p", ea, M(o.value || "Berhasil!"), 1)
3488
3493
  ])) : $("", !0),
3489
- l.value === "error" ? (m(), w("div", sa, [
3494
+ l.value === "error" ? (m(), w("div", ta, [
3490
3495
  x[2] || (x[2] = n("div", { class: "jsgd-relative jsgd-animate-[popIn_400ms_cubic-bezier(0.16,1,0.3,1)_backwards]" }, [
3491
3496
  n("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" }, [
3492
3497
  n("span", { class: "jsgd-i-mdi-close jsgd-w-8 jsgd-h-8 jsgd-text-red-600 dark:jsgd-text-red-400" })
@@ -3496,7 +3501,7 @@ const Zs = {
3496
3501
  style: { "animation-delay": "0.2s" }
3497
3502
  })
3498
3503
  ], -1)),
3499
- n("p", aa, M(o.value || "Gagal!"), 1)
3504
+ n("p", sa, M(o.value || "Gagal!"), 1)
3500
3505
  ])) : $("", !0)
3501
3506
  ])
3502
3507
  ])) : $("", !0)
@@ -3504,8 +3509,8 @@ const Zs = {
3504
3509
  _: 1
3505
3510
  }));
3506
3511
  }
3507
- }), ra = /* @__PURE__ */ wt(da, [["__scopeId", "data-v-2ec15644"]]);
3508
- function la(e, s, t) {
3512
+ }), da = /* @__PURE__ */ kt(aa, [["__scopeId", "data-v-2ec15644"]]);
3513
+ function ra(e, s, t) {
3509
3514
  const g = A(!1), r = A({}), l = A(null), o = A([]), d = A([...e.modelValue ?? []]);
3510
3515
  se(
3511
3516
  () => e.modelValue,
@@ -3538,7 +3543,7 @@ function la(e, s, t) {
3538
3543
  getImageSrc: (h) => typeof h == "string" ? h : h instanceof File ? URL.createObjectURL(h) : ""
3539
3544
  };
3540
3545
  }
3541
- function na(e, s) {
3546
+ function la(e, s) {
3542
3547
  const t = A(null), g = A([]), r = A([]);
3543
3548
  let l = null, o = !1;
3544
3549
  const d = (S) => !(S == null || typeof S == "string" && S.trim() === "" || Array.isArray(S) && S.length === 0 || typeof S == "object" && !Array.isArray(S) && Object.keys(S).length === 0), u = (S, C) => Object.keys(S).some((B) => d(C[B])), v = (S) => {
@@ -3608,15 +3613,15 @@ function na(e, s) {
3608
3613
  errorRemove: V
3609
3614
  };
3610
3615
  }
3611
- const vt = {
3616
+ const pt = {
3612
3617
  id: { currency: "IDR", symbol: "Rp", locale: "id-ID" },
3613
3618
  en: { currency: "USD", symbol: "$", locale: "en-US" },
3614
3619
  us: { currency: "USD", symbol: "$", locale: "en-US" }
3615
3620
  };
3616
- function oa(e, s) {
3621
+ function na(e, s) {
3617
3622
  const t = ae("TableComponents", {
3618
- labels: A(oe[e.lang ?? "en"])
3619
- }), g = Z(() => t.labels.value.lang ?? "en"), r = Z(() => vt[g.value] || vt.en), l = A(""), o = A(!1), d = Z(() => r.value.symbol), u = (i) => i == null ? "" : new Intl.NumberFormat(r.value.locale, {
3623
+ labels: A(ie[e.lang ?? "en"])
3624
+ }), g = Z(() => t.labels.value.lang ?? "en"), r = Z(() => pt[g.value] || pt.en), l = A(""), o = A(!1), d = Z(() => r.value.symbol), u = (i) => i == null ? "" : new Intl.NumberFormat(r.value.locale, {
3620
3625
  // style: 'currency' akan menambahkan simbol, kita hanya butuh pemisah ribuan.
3621
3626
  // currency: currencyInfo.value.currency,
3622
3627
  minimumFractionDigits: 0,
@@ -3644,10 +3649,10 @@ function oa(e, s) {
3644
3649
  onBlur: c
3645
3650
  };
3646
3651
  }
3647
- const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga = { 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" }, ua = { class: "jsgd-flex jsgd-items-center jsgd-gap-4 jsgd-min-w-0" }, ca = ["src"], ma = { class: "jsgd-font-medium jsgd-text-slate-900 jsgd-whitespace-nowrap jsgd-overflow-hidden jsgd-text-ellipsis dark:jsgd-text-slate-100" }, ja = { 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" }, ba = ["onClick"], ha = ["onClick"], fa = ["disabled"], pa = {
3652
+ const oa = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ia = { 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" }, ga = { class: "jsgd-flex jsgd-items-center jsgd-gap-4 jsgd-min-w-0" }, ua = ["src"], ca = { class: "jsgd-font-medium jsgd-text-slate-900 jsgd-whitespace-nowrap jsgd-overflow-hidden jsgd-text-ellipsis dark:jsgd-text-slate-100" }, ma = { 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" }, ja = ["onClick"], ba = ["onClick"], ha = ["disabled"], fa = {
3648
3653
  key: 1,
3649
3654
  class: "jsgd-mt-2 jsgd-text-sm jsgd-text-red-500 jsgd-animate-[slideIn_300ms_ease-out] dark:jsgd-text-red-400"
3650
- }, Wr = /* @__PURE__ */ re({
3655
+ }, Hr = /* @__PURE__ */ le({
3651
3656
  __name: "ArrayObject",
3652
3657
  props: {
3653
3658
  id: { default: ce() },
@@ -3661,7 +3666,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
3661
3666
  emits: ["update:modelValue"],
3662
3667
  setup(e, { emit: s }) {
3663
3668
  const t = e, r = ae("TableComponents", {
3664
- labels: A(oe[t.lang ?? "en"])
3669
+ labels: A(ie[t.lang ?? "en"])
3665
3670
  }).labels, l = s, {
3666
3671
  showModal: o,
3667
3672
  currentEditItem: d,
@@ -3673,7 +3678,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
3673
3678
  remove: j,
3674
3679
  getImageSrc: h,
3675
3680
  localItems: f
3676
- } = la(t, r, l);
3681
+ } = ra(t, r, l);
3677
3682
  return (D, V) => (m(), w(X, null, [
3678
3683
  n("label", {
3679
3684
  class: R(["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": t.error }])
@@ -3683,23 +3688,23 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
3683
3688
  "jsgd-border-red-300 jsgd-bg-red-50 dark:jsgd-border-red-800 dark:jsgd-bg-red-900/10": t.error
3684
3689
  }])
3685
3690
  }, [
3686
- n("div", ia, [
3691
+ n("div", oa, [
3687
3692
  (m(!0), w(X, null, te(a(f), (S, C) => (m(), w("div", {
3688
3693
  key: C,
3689
3694
  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",
3690
3695
  style: Pe({ animationDelay: `${C * 50}ms` })
3691
3696
  }, [
3692
- n("div", ga, [
3693
- n("div", ua, [
3697
+ n("div", ia, [
3698
+ n("div", ga, [
3694
3699
  S?.image ? (m(), w("img", {
3695
3700
  key: 0,
3696
3701
  src: a(h)(S.image),
3697
3702
  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",
3698
3703
  alt: "Preview Gambar"
3699
- }, null, 8, ca)) : $("", !0),
3700
- n("span", ma, M(S?.name || `Item ${C + 1}`), 1)
3704
+ }, null, 8, ua)) : $("", !0),
3705
+ n("span", ca, M(S?.name || `Item ${C + 1}`), 1)
3701
3706
  ]),
3702
- n("div", ja, [
3707
+ n("div", ma, [
3703
3708
  n("span", {
3704
3709
  role: "button",
3705
3710
  tabindex: "0",
@@ -3707,7 +3712,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
3707
3712
  "jsgd-opacity-50 jsgd-cursor-not-allowed jsgd-pointer-events-none": e.disabled
3708
3713
  }]),
3709
3714
  onClick: (B) => !e.disabled && a(c)(C)
3710
- }, M(a(r)?.btn?.edit || "Edit"), 11, ba),
3715
+ }, M(a(r)?.btn?.edit || "Edit"), 11, ja),
3711
3716
  n("span", {
3712
3717
  role: "button",
3713
3718
  tabindex: "0",
@@ -3715,7 +3720,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
3715
3720
  "jsgd-opacity-50 jsgd-cursor-not-allowed jsgd-pointer-events-none": e.disabled
3716
3721
  }]),
3717
3722
  onClick: (B) => !e.disabled && a(j)(C)
3718
- }, M(a(r)?.btn?.remove || "Remove"), 11, ha)
3723
+ }, M(a(r)?.btn?.remove || "Remove"), 11, ba)
3719
3724
  ])
3720
3725
  ])
3721
3726
  ], 4))), 128))
@@ -3726,8 +3731,8 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
3726
3731
  (...S) => a(x) && a(x)(...S)),
3727
3732
  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",
3728
3733
  disabled: e.disabled
3729
- }, M(a(v)), 9, fa),
3730
- a(o) ? (m(), J(a(St), {
3734
+ }, M(a(v)), 9, ha),
3735
+ a(o) ? (m(), J(a(wt), {
3731
3736
  key: 0,
3732
3737
  id: a(d).id || null,
3733
3738
  schema: t.schema,
@@ -3737,17 +3742,17 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
3737
3742
  onSubmit: a(i),
3738
3743
  onCancel: V[1] || (V[1] = () => o.value = !1)
3739
3744
  }, null, 8, ["id", "schema", "initial-data", "is-update", "lang", "onSubmit"])) : $("", !0),
3740
- t.error ? (m(), w("p", pa, M(t.error), 1)) : $("", !0)
3745
+ t.error ? (m(), w("p", fa, M(t.error), 1)) : $("", !0)
3741
3746
  ], 2)
3742
3747
  ], 64));
3743
3748
  }
3744
- }), va = { 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" }, xa = ["onClick", "disabled"], ya = ["disabled"], ka = {
3749
+ }), pa = { 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" }, va = ["onClick", "disabled"], xa = ["disabled"], ya = {
3745
3750
  key: 0,
3746
3751
  class: "jsgd-flex jsgd-justify-end jsgd-mt-4"
3747
- }, wa = ["disabled"], Sa = {
3752
+ }, ka = ["disabled"], wa = {
3748
3753
  key: 2,
3749
3754
  class: "jsgd-mt-2 jsgd-text-sm jsgd-text-red-500 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
3750
- }, Gr = /* @__PURE__ */ re({
3755
+ }, Wr = /* @__PURE__ */ le({
3751
3756
  __name: "ColorPicker",
3752
3757
  props: {
3753
3758
  id: { default: ce() },
@@ -3763,7 +3768,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
3763
3768
  emits: ["update:modelValue", "push:error", "remove:error"],
3764
3769
  setup(e, { emit: s }) {
3765
3770
  const t = e, g = s, r = A("#000000"), l = A([...t.modelValue ?? []]), d = ae("TableComponents", {
3766
- labels: A(oe[t.lang ?? "en"])
3771
+ labels: A(ie[t.lang ?? "en"])
3767
3772
  }).labels, u = A([]);
3768
3773
  se(
3769
3774
  () => ({
@@ -3800,7 +3805,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
3800
3805
  "jsgd-border-red-300 jsgd-bg-red-50 dark:jsgd-border-red-800 dark:jsgd-bg-red-900/10": u.value.length !== 0 || e.error
3801
3806
  }])
3802
3807
  }, [
3803
- n("div", va, [
3808
+ n("div", pa, [
3804
3809
  (m(!0), w(X, null, te(l.value, (j, h) => (m(), w("div", {
3805
3810
  key: h,
3806
3811
  class: "jsgd-relative jsgd-animate-[popIn_300ms_ease-out_backwards] jsgd-group",
@@ -3816,49 +3821,49 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
3816
3821
  onClick: (f) => x(h),
3817
3822
  disabled: e.disabled,
3818
3823
  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"
3819
- }, " × ", 8, xa))
3824
+ }, " × ", 8, va))
3820
3825
  ], 4))), 128))
3821
3826
  ]),
3822
- tt(n("input", {
3827
+ et(n("input", {
3823
3828
  type: "color",
3824
3829
  "onUpdate:modelValue": i[0] || (i[0] = (j) => r.value = j),
3825
3830
  disabled: e.disabled,
3826
3831
  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"
3827
- }, null, 8, ya), [
3828
- [xt, r.value]
3832
+ }, null, 8, xa), [
3833
+ [vt, r.value]
3829
3834
  ]),
3830
- t.single ? $("", !0) : (m(), w("div", ka, [
3835
+ t.single ? $("", !0) : (m(), w("div", ya, [
3831
3836
  n("button", {
3832
3837
  type: "button",
3833
3838
  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",
3834
3839
  disabled: e.disabled,
3835
3840
  onClick: v
3836
- }, M(a(d)?.btn?.add ?? "Tambah"), 9, wa)
3841
+ }, M(a(d)?.btn?.add ?? "Tambah"), 9, ka)
3837
3842
  ])),
3838
3843
  u.value.length !== 0 ? (m(!0), w(X, { key: 1 }, te(u.value, (j, h) => (m(), w("p", {
3839
3844
  key: h,
3840
3845
  class: "jsgd-mt-2 jsgd-text-sm jsgd-text-red-500 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
3841
- }, M(j), 1))), 128)) : typeof t.error == "string" ? (m(), w("p", Sa, M(e.error), 1)) : $("", !0)
3846
+ }, M(j), 1))), 128)) : typeof t.error == "string" ? (m(), w("p", wa, M(e.error), 1)) : $("", !0)
3842
3847
  ], 2)
3843
3848
  ], 64));
3844
3849
  }
3845
- }), Da = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, $a = { class: "jsgd-relative" }, Aa = ["placeholder", "disabled"], Ma = {
3850
+ }), Sa = { class: "jsgd-relative jsgd-w-full jsgd-mb-4" }, Da = { class: "jsgd-relative" }, $a = ["placeholder", "disabled"], Aa = {
3846
3851
  key: 1,
3847
3852
  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"
3848
- }, Ca = {
3853
+ }, Ma = {
3849
3854
  key: 1,
3850
3855
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 dark:jsgd-text-red-400"
3851
- }, Ia = ["onMousedown"], Va = { class: "jsgd-flex jsgd-items-center jsgd-justify-between jsgd-gap-4" }, Ta = { class: "jsgd-truncate" }, Ea = {
3856
+ }, Ca = ["onMousedown"], Ia = { class: "jsgd-flex jsgd-items-center jsgd-justify-between jsgd-gap-4" }, Va = { class: "jsgd-truncate" }, Ta = {
3852
3857
  key: 0,
3853
3858
  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",
3854
3859
  fill: "none",
3855
3860
  stroke: "currentColor",
3856
3861
  viewBox: "0 0 24 24",
3857
3862
  xmlns: "http://www.w3.org/2000/svg"
3858
- }, La = { class: "jsgd-flex jsgd-items-center jsgd-gap-2" }, Pa = {
3863
+ }, Ea = { class: "jsgd-flex jsgd-items-center jsgd-gap-2" }, La = {
3859
3864
  key: 1,
3860
3865
  class: "jsgd-px-4 jsgd-py-3 jsgd-text-slate-500 jsgd-italic jsgd-cursor-default dark:jsgd-text-slate-400"
3861
- }, Jr = /* @__PURE__ */ re({
3866
+ }, Gr = /* @__PURE__ */ le({
3862
3867
  __name: "ComboboxComponent",
3863
3868
  props: {
3864
3869
  id: { default: ce() },
@@ -3878,7 +3883,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
3878
3883
  emits: ["update:modelValue"],
3879
3884
  setup(e, { emit: s }) {
3880
3885
  const t = e, r = ae("TableComponents", {
3881
- labels: A(oe[t.lang ?? "en"])
3886
+ labels: A(ie[t.lang ?? "en"])
3882
3887
  }).labels, l = s, o = A([...t.options]), d = A([...t.optionsView || t.options]);
3883
3888
  se(
3884
3889
  () => t.options,
@@ -3937,7 +3942,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
3937
3942
  }
3938
3943
  try {
3939
3944
  c.value?.show("loading", "Please wait...");
3940
- const { image: k, ...p } = q, E = t.withCreate?.submitOption?.delete?.authType ?? t.withCreate?.submitOption?.global?.authType ?? "cookie", L = t.withCreate?.submitOption?.delete?.token ?? t.withCreate?.submitOption?.global?.token ?? void 0, Y = t.withCreate?.submitOption?.delete?.customHeaders ?? t.withCreate?.submitOption?.global?.customHeaders ?? void 0, le = await Js({
3945
+ const { image: k, ...p } = q, E = t.withCreate?.submitOption?.delete?.authType ?? t.withCreate?.submitOption?.global?.authType ?? "cookie", L = t.withCreate?.submitOption?.delete?.token ?? t.withCreate?.submitOption?.global?.token ?? void 0, Y = t.withCreate?.submitOption?.delete?.customHeaders ?? t.withCreate?.submitOption?.global?.customHeaders ?? void 0, ne = await Gs({
3941
3946
  data: p,
3942
3947
  validation: t.withCreate?.validation ?? void 0,
3943
3948
  endpoint: t.withCreate.endPoint,
@@ -3949,7 +3954,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
3949
3954
  customHeaders: Y
3950
3955
  });
3951
3956
  c.value?.show("success", "Data created successfully");
3952
- const F = t.optionsIsNumber ? le.data[t.withCreate?.keys?.idKey ?? "id"] : le.data[t.withCreate?.keys?.nameKey ?? "name"], G = le.data[t.withCreate?.keys?.nameKey ?? "name"];
3957
+ const F = t.optionsIsNumber ? ne.data[t.withCreate?.keys?.idKey ?? "id"] : ne.data[t.withCreate?.keys?.nameKey ?? "name"], G = ne.data[t.withCreate?.keys?.nameKey ?? "name"];
3953
3958
  F != null && G != null && (o.value.some(
3954
3959
  (N) => N?.toString().toLowerCase() === F.toString().toLowerCase()
3955
3960
  ) || (o.value.push(F), d.value.push(G))), l("update:modelValue", F, t.id), x.value = !1, u.value = !1;
@@ -3957,13 +3962,13 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
3957
3962
  console.error(k), c.value?.show("error", "Failed to create data");
3958
3963
  }
3959
3964
  };
3960
- return (q, k) => (m(), w("div", Da, [
3965
+ return (q, k) => (m(), w("div", Sa, [
3961
3966
  e.label ? (m(), w("label", {
3962
3967
  key: 0,
3963
3968
  class: R(["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": t.error }])
3964
3969
  }, M(e.label), 3)) : $("", !0),
3965
- n("div", $a, [
3966
- V.value ? $("", !0) : tt((m(), w("input", {
3970
+ n("div", Da, [
3971
+ V.value ? $("", !0) : et((m(), w("input", {
3967
3972
  key: 0,
3968
3973
  type: "text",
3969
3974
  "onUpdate:modelValue": k[0] || (k[0] = (p) => v.value = p),
@@ -3975,10 +3980,10 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
3975
3980
  "jsgd-border-red-400 focus:jsgd-ring-red-500/20 dark:jsgd-border-red-400 dark:focus:jsgd-ring-red-400/25": t.error,
3976
3981
  "jsgd-rounded-b-none": u.value
3977
3982
  }])
3978
- }, null, 42, Aa)), [
3979
- [xt, v.value]
3983
+ }, null, 42, $a)), [
3984
+ [vt, v.value]
3980
3985
  ]),
3981
- V.value ? $("", !0) : (m(), w("div", Ma, [
3986
+ V.value ? $("", !0) : (m(), w("div", Aa, [
3982
3987
  (m(), w("svg", {
3983
3988
  class: R(["jsgd-w-5 jsgd-h-5 jsgd-transition-transform jsgd-duration-200", { "jsgd-rotate-180": u.value }]),
3984
3989
  fill: "none",
@@ -4022,7 +4027,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
4022
4027
  ])], 2))
4023
4028
  ], 2)) : $("", !0)
4024
4029
  ]),
4025
- t.error ? (m(), w("p", Ca, M(t.error), 1)) : $("", !0),
4030
+ t.error ? (m(), w("p", Ma, M(t.error), 1)) : $("", !0),
4026
4031
  Ie(Ce, {
4027
4032
  "enter-active-class": "jsgd-animate-[slideDownFade_200ms_ease-out]",
4028
4033
  "enter-from-class": "jsgd-opacity-0",
@@ -4046,9 +4051,9 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
4046
4051
  "jsgd-bg-blue-50 jsgd-text-blue-700 jsgd-font-medium dark:jsgd-bg-blue-900/30 dark:jsgd-text-blue-300": h(p, e.modelValue)
4047
4052
  }])
4048
4053
  }, [
4049
- n("div", Va, [
4050
- n("span", Ta, M(p === "" ? "— Empty —" : D(p)), 1),
4051
- p === e.modelValue ? (m(), w("svg", Ea, [...k[7] || (k[7] = [
4054
+ n("div", Ia, [
4055
+ n("span", Va, M(p === "" ? "— Empty —" : D(p)), 1),
4056
+ p === e.modelValue ? (m(), w("svg", Ta, [...k[7] || (k[7] = [
4052
4057
  n("path", {
4053
4058
  "stroke-linecap": "round",
4054
4059
  "stroke-linejoin": "round",
@@ -4057,13 +4062,13 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
4057
4062
  }, null, -1)
4058
4063
  ])])) : $("", !0)
4059
4064
  ])
4060
- ], 42, Ia))), 128)),
4065
+ ], 42, Ca))), 128)),
4061
4066
  e.withCreate && v.value && ee(v.value) ? (m(), w("li", {
4062
4067
  key: 0,
4063
4068
  onMousedown: k[3] || (k[3] = Ve((p) => x.value = !0, ["prevent"])),
4064
4069
  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"
4065
4070
  }, [
4066
- n("div", La, [
4071
+ n("div", Ea, [
4067
4072
  k[8] || (k[8] = n("svg", {
4068
4073
  class: "jsgd-w-5 jsgd-h-5 jsgd-text-blue-600 dark:jsgd-text-blue-400",
4069
4074
  fill: "none",
@@ -4081,28 +4086,28 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
4081
4086
  _(" " + M(a(r)?.btn?.add ?? "Create new") + ' "' + M(v.value) + '" ', 1)
4082
4087
  ])
4083
4088
  ], 32)) : $("", !0),
4084
- B.value.length === 0 ? (m(), w("li", Pa, M(e.withCreate ? "No matches. Create new data" : "No options available"), 1)) : $("", !0)
4089
+ B.value.length === 0 ? (m(), w("li", La, M(e.withCreate ? "No matches. Create new data" : "No options available"), 1)) : $("", !0)
4085
4090
  ], 2)) : $("", !0)
4086
4091
  ]),
4087
4092
  _: 1
4088
4093
  }),
4089
- x.value && e.withCreate?.schema ? (m(), J(a(St), {
4094
+ x.value && e.withCreate?.schema ? (m(), J(a(wt), {
4090
4095
  key: 2,
4091
4096
  schema: e.withCreate.schema,
4092
4097
  "initial-data": { name: v.value },
4093
4098
  onSubmit: Q,
4094
4099
  onCancel: k[4] || (k[4] = () => x.value = !1)
4095
4100
  }, null, 8, ["schema", "initial-data"])) : $("", !0),
4096
- Ie(a(ra), {
4101
+ Ie(a(da), {
4097
4102
  ref_key: "loader",
4098
4103
  ref: c
4099
4104
  }, null, 512)
4100
4105
  ]));
4101
4106
  }
4102
- }), Ra = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, za = ["for"], Ba = { class: "jsgd-relative" }, Ua = { class: "jsgd-absolute jsgd-left-3 jsgd-top-1/2 -jsgd-translate-y-1/2 jsgd-text-slate-500 jsgd-pointer-events-none dark:jsgd-text-slate-400" }, Ka = ["id", "value", "disabled", "placeholder"], Oa = {
4107
+ }), Pa = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, Ra = ["for"], za = { class: "jsgd-relative" }, Ba = { class: "jsgd-absolute jsgd-left-3 jsgd-top-1/2 -jsgd-translate-y-1/2 jsgd-text-slate-500 jsgd-pointer-events-none dark:jsgd-text-slate-400" }, Ua = ["id", "value", "disabled", "placeholder"], Ka = {
4103
4108
  key: 0,
4104
4109
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
4105
- }, Yr = /* @__PURE__ */ re({
4110
+ }, Jr = /* @__PURE__ */ le({
4106
4111
  __name: "CurrencyInput",
4107
4112
  props: {
4108
4113
  id: { default: ce() },
@@ -4117,8 +4122,8 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
4117
4122
  emits: ["update:modelValue", "push:error", "remove:error"],
4118
4123
  setup(e, { emit: s }) {
4119
4124
  const t = e, g = s, l = ae("TableComponents", {
4120
- labels: A(oe[t.lang ?? "en"])
4121
- }).labels, o = Z(() => l?.value?.lang ?? "en"), { formattedValue: d, currencySymbol: u, onInput: v, onBlur: x } = oa(t, g), c = Z(() => {
4125
+ labels: A(ie[t.lang ?? "en"])
4126
+ }).labels, o = Z(() => l?.value?.lang ?? "en"), { formattedValue: d, currencySymbol: u, onInput: v, onBlur: x } = na(t, g), c = Z(() => {
4122
4127
  if (t.validate) {
4123
4128
  const h = t.validate, f = [];
4124
4129
  return h.min !== void 0 && f.push(I("numberMin", { min: String(h.min) }, o.value)), h.max !== void 0 && f.push(I("numberMax", { max: String(h.max) }, o.value)), f.join(`
@@ -4139,7 +4144,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
4139
4144
  { deep: !0, immediate: !0 }
4140
4145
  );
4141
4146
  const j = Z(() => t.placeholder ?? l.value.placeholder?.number ?? "");
4142
- return (h, f) => (m(), w("div", Ra, [
4147
+ return (h, f) => (m(), w("div", Pa, [
4143
4148
  n("label", {
4144
4149
  for: e.id,
4145
4150
  class: R(["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": i.value.length || e.error }])
@@ -4155,9 +4160,9 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
4155
4160
  ])]),
4156
4161
  _: 1
4157
4162
  }, 8, ["text"])) : $("", !0)
4158
- ], 10, za),
4159
- n("div", Ba, [
4160
- n("div", Ua, M(a(u)), 1),
4163
+ ], 10, Ra),
4164
+ n("div", za, [
4165
+ n("div", Ba, M(a(u)), 1),
4161
4166
  n("input", {
4162
4167
  id: e.id,
4163
4168
  type: "text",
@@ -4172,19 +4177,19 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
4172
4177
  class: R(["jsgd-w-full jsgd-py-3 jsgd-pl-10 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", {
4173
4178
  "jsgd-border-red-400 focus:jsgd-ring-red-500/20 dark:jsgd-border-red-400 dark:focus:jsgd-ring-red-400/25": i.value.length || e.error
4174
4179
  }])
4175
- }, null, 42, Ka)
4180
+ }, null, 42, Ua)
4176
4181
  ]),
4177
4182
  (m(!0), w(X, null, te(i.value, (D, V) => (m(), w("p", {
4178
4183
  key: V,
4179
4184
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
4180
4185
  }, M(D), 1))), 128)),
4181
- typeof t.error == "string" && i.value.length === 0 ? (m(), w("p", Oa, M(e.error), 1)) : $("", !0)
4186
+ typeof t.error == "string" && i.value.length === 0 ? (m(), w("p", Ka, M(e.error), 1)) : $("", !0)
4182
4187
  ]));
4183
4188
  }
4184
- }), Fa = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, Na = ["for"], qa = { class: "jsgd-flex jsgd-items-center jsgd-gap-1" }, Ha = ["onClick", "onMouseenter"], Wa = {
4189
+ }), Oa = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, Fa = ["for"], Na = { class: "jsgd-flex jsgd-items-center jsgd-gap-1" }, qa = ["onClick", "onMouseenter"], Ha = {
4185
4190
  key: 0,
4186
4191
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
4187
- }, Zr = /* @__PURE__ */ re({
4192
+ }, Yr = /* @__PURE__ */ le({
4188
4193
  __name: "RateInput",
4189
4194
  props: {
4190
4195
  id: { default: ce() },
@@ -4209,12 +4214,12 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
4209
4214
  const v = r.value === u ? 0 : u;
4210
4215
  r.value = v, g("update:modelValue", v, t.id);
4211
4216
  }
4212
- return (u, v) => (m(), w("div", Fa, [
4217
+ return (u, v) => (m(), w("div", Oa, [
4213
4218
  n("label", {
4214
4219
  for: e.id,
4215
4220
  class: R(["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": e.error }])
4216
- }, M(e.label), 11, Na),
4217
- n("div", qa, [
4221
+ }, M(e.label), 11, Fa),
4222
+ n("div", Na, [
4218
4223
  (m(!0), w(X, null, te(o.value, (x) => (m(), w("span", {
4219
4224
  key: x,
4220
4225
  class: R([
@@ -4230,15 +4235,15 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
4230
4235
  onClick: (c) => !e.disabled && d(x),
4231
4236
  onMouseenter: (c) => !e.disabled && (l.value = x),
4232
4237
  onMouseleave: v[0] || (v[0] = (c) => !e.disabled && (l.value = 0))
4233
- }, null, 42, Ha))), 128))
4238
+ }, null, 42, qa))), 128))
4234
4239
  ]),
4235
- typeof t.error == "string" ? (m(), w("p", Wa, M(e.error), 1)) : $("", !0)
4240
+ typeof t.error == "string" ? (m(), w("p", Ha, M(e.error), 1)) : $("", !0)
4236
4241
  ]));
4237
4242
  }
4238
- }), Ga = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, Ja = ["for"], Ya = { class: "jsgd-relative" }, Za = ["id", "value", "disabled", "min", "max", "placeholder"], Xa = {
4243
+ }), Wa = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, Ga = ["for"], Ja = { class: "jsgd-relative" }, Ya = ["id", "value", "disabled", "min", "max", "placeholder"], Za = {
4239
4244
  key: 0,
4240
4245
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
4241
- }, Xr = /* @__PURE__ */ re({
4246
+ }, Zr = /* @__PURE__ */ le({
4242
4247
  __name: "DateInput",
4243
4248
  props: {
4244
4249
  id: { default: ce() },
@@ -4253,7 +4258,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
4253
4258
  emits: ["update:modelValue", "push:error", "remove:error"],
4254
4259
  setup(e, { emit: s }) {
4255
4260
  const t = e, r = ae("TableComponents", {
4256
- labels: A(oe[t.lang ?? "en"])
4261
+ labels: A(ie[t.lang ?? "en"])
4257
4262
  }).labels;
4258
4263
  Z(() => r?.value?.lang ?? "en");
4259
4264
  const l = s, o = Z(() => {
@@ -4299,7 +4304,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
4299
4304
  const c = x.target;
4300
4305
  l("update:modelValue", c.value, t.id);
4301
4306
  }
4302
- return (x, c) => (m(), w("div", Ga, [
4307
+ return (x, c) => (m(), w("div", Wa, [
4303
4308
  n("label", {
4304
4309
  for: e.id,
4305
4310
  class: R(["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 || e.error }])
@@ -4315,8 +4320,8 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
4315
4320
  ])]),
4316
4321
  _: 1
4317
4322
  }, 8, ["text"])) : $("", !0)
4318
- ], 10, Ja),
4319
- n("div", Ya, [
4323
+ ], 10, Ga),
4324
+ n("div", Ja, [
4320
4325
  c[1] || (c[1] = n("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" }, [
4321
4326
  n("span", { class: "jsgd-i-mdi-calendar jsgd-w-5 jsgd-h-5" })
4322
4327
  ], -1)),
@@ -4332,19 +4337,19 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
4332
4337
  class: R(["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", {
4333
4338
  "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 || e.error
4334
4339
  }])
4335
- }, null, 42, Za)
4340
+ }, null, 42, Ya)
4336
4341
  ]),
4337
4342
  (m(!0), w(X, null, te(d.value, (i, j) => (m(), w("p", {
4338
4343
  key: j,
4339
4344
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
4340
4345
  }, M(i), 1))), 128)),
4341
- typeof t.error == "string" && d.value.length === 0 ? (m(), w("p", Xa, M(e.error), 1)) : $("", !0)
4346
+ typeof t.error == "string" && d.value.length === 0 ? (m(), w("p", Za, M(e.error), 1)) : $("", !0)
4342
4347
  ]));
4343
4348
  }
4344
- }), Qa = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, _a = ["for"], ed = { class: "jsgd-relative" }, td = ["id", "value", "disabled", "placeholder"], sd = {
4349
+ }), Xa = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, Qa = ["for"], _a = { class: "jsgd-relative" }, ed = ["id", "value", "disabled", "placeholder"], td = {
4345
4350
  key: 1,
4346
4351
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
4347
- }, Qr = /* @__PURE__ */ re({
4352
+ }, Xr = /* @__PURE__ */ le({
4348
4353
  __name: "EmailInput",
4349
4354
  props: {
4350
4355
  id: { default: ce() },
@@ -4359,7 +4364,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
4359
4364
  emits: ["update:modelValue", "push:error", "remove:error"],
4360
4365
  setup(e, { emit: s }) {
4361
4366
  const t = e, g = String(t.modelValue ?? ""), l = ae("TableComponents", {
4362
- labels: A(oe[t.lang ?? "en"])
4367
+ labels: A(ie[t.lang ?? "en"])
4363
4368
  }).labels, o = s, d = Z(() => {
4364
4369
  if (t.validate) {
4365
4370
  const c = t.validate, i = [];
@@ -4384,7 +4389,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
4384
4389
  const D = j.duplicate.map(String).includes(f), V = String(g) === f;
4385
4390
  D && !V && h.push(I("valueList", { value: f }, t.lang ?? "en"));
4386
4391
  }
4387
- Gt.test(f) || h.push(I("email", void 0, t.lang ?? "en")), u.value = h, h.length ? o("push:error", h, t.id) : o("remove:error", t.id);
4392
+ Wt.test(f) || h.push(I("email", void 0, t.lang ?? "en")), u.value = h, h.length ? o("push:error", h, t.id) : o("remove:error", t.id);
4388
4393
  }
4389
4394
  );
4390
4395
  const v = Z(() => t.placeholder ?? l?.value?.placeholder?.email ?? "");
@@ -4393,7 +4398,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
4393
4398
  const i = c.target;
4394
4399
  o("update:modelValue", i.value, t.id);
4395
4400
  }
4396
- return (c, i) => (m(), w("div", Qa, [
4401
+ return (c, i) => (m(), w("div", Xa, [
4397
4402
  n("label", {
4398
4403
  for: e.id,
4399
4404
  class: R(["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.length !== 0 || e.error }])
@@ -4409,8 +4414,8 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
4409
4414
  ])]),
4410
4415
  _: 1
4411
4416
  }, 8, ["text"])) : $("", !0)
4412
- ], 10, _a),
4413
- n("div", ed, [
4417
+ ], 10, Qa),
4418
+ n("div", _a, [
4414
4419
  i[1] || (i[1] = n("div", { class: "jsgd-absolute jsgd-left-3 jsgd-top-1/2 -jsgd-translate-y-1/2 jsgd-text-slate-400 jsgd-pointer-events-none" }, [
4415
4420
  n("svg", {
4416
4421
  xmlns: "http://www.w3.org/2000/svg",
@@ -4437,25 +4442,25 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
4437
4442
  class: R(["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", {
4438
4443
  "jsgd-border-red-400 focus:jsgd-ring-red-500/20 dark:jsgd-border-red-400 dark:focus:jsgd-ring-red-400/25": u.value.length !== 0 || e.error
4439
4444
  }])
4440
- }, null, 42, td)
4445
+ }, null, 42, ed)
4441
4446
  ]),
4442
4447
  u.value.length !== 0 ? (m(!0), w(X, { key: 0 }, te(u.value, (j, h) => (m(), w("p", {
4443
4448
  key: h,
4444
4449
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
4445
4450
  }, M(j), 1))), 128)) : $("", !0),
4446
- typeof t.error == "string" && u.value.length === 0 ? (m(), w("p", sd, M(e.error), 1)) : $("", !0)
4451
+ typeof t.error == "string" && u.value.length === 0 ? (m(), w("p", td, M(e.error), 1)) : $("", !0)
4447
4452
  ]));
4448
4453
  }
4449
- }), ad = { class: "jsgd-w-full jsgd-mb-4" }, dd = ["for"], rd = { class: "jsgd-flex jsgd-flex-col jsgd-items-center jsgd-justify-center jsgd-p-8 jsgd-gap-5 jsgd-relative jsgd-overflow-hidden" }, ld = ["id", "disabled"], nd = { class: "jsgd-flex jsgd-items-center jsgd-gap-3 jsgd-z-10" }, od = ["for"], id = ["disabled"], gd = {
4454
+ }), sd = { class: "jsgd-w-full jsgd-mb-4" }, ad = ["for"], dd = { class: "jsgd-flex jsgd-flex-col jsgd-items-center jsgd-justify-center jsgd-p-8 jsgd-gap-5 jsgd-relative jsgd-overflow-hidden" }, rd = ["id", "disabled"], ld = { class: "jsgd-flex jsgd-items-center jsgd-gap-3 jsgd-z-10" }, nd = ["for"], od = ["disabled"], id = {
4450
4455
  key: 0,
4451
4456
  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"
4452
- }, ud = { class: "jsgd-m-0 jsgd-leading-relaxed jsgd-break-words" }, cd = {
4457
+ }, gd = { class: "jsgd-m-0 jsgd-leading-relaxed jsgd-break-words" }, ud = {
4453
4458
  key: 0,
4454
4459
  class: "jsgd-m-0 jsgd-leading-relaxed jsgd-break-words"
4455
- }, md = {
4460
+ }, cd = {
4456
4461
  key: 1,
4457
4462
  class: "jsgd-m-0 jsgd-leading-relaxed jsgd-break-words"
4458
- }, jd = { class: "jsgd-mt-2 jsgd-flex jsgd-flex-col jsgd-gap-1" }, _r = /* @__PURE__ */ re({
4463
+ }, md = { class: "jsgd-mt-2 jsgd-flex jsgd-flex-col jsgd-gap-1" }, Qr = /* @__PURE__ */ le({
4459
4464
  __name: "FileInput",
4460
4465
  props: {
4461
4466
  id: { default: ce() },
@@ -4469,7 +4474,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
4469
4474
  emits: ["update:modelValue", "push:error", "remove:error"],
4470
4475
  setup(e, { emit: s }) {
4471
4476
  const t = e, r = ae("TableComponents", {
4472
- labels: A(oe[t.lang ?? "en"])
4477
+ labels: A(ie[t.lang ?? "en"])
4473
4478
  }).labels, l = ae("TableComponents")?.ShowAlert, o = s, d = A(""), u = A(""), v = A(""), x = A(!0), c = A([]), i = Z(() => {
4474
4479
  if (t.validate) {
4475
4480
  const S = t.validate, C = [];
@@ -4511,7 +4516,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
4511
4516
  function V() {
4512
4517
  d.value = "", u.value = "", v.value = "", c.value = [];
4513
4518
  }
4514
- return (S, C) => (m(), w("div", ad, [
4519
+ return (S, C) => (m(), w("div", sd, [
4515
4520
  n("label", {
4516
4521
  for: e.id,
4517
4522
  class: R(["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": c.value.length !== 0 || e.error }])
@@ -4527,32 +4532,32 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
4527
4532
  ])]),
4528
4533
  _: 1
4529
4534
  }, 8, ["text"])) : $("", !0)
4530
- ], 10, dd),
4535
+ ], 10, ad),
4531
4536
  n("div", {
4532
4537
  class: R(["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", {
4533
4538
  "jsgd-border-red-300 dark:jsgd-border-red-800": c.value.length !== 0 || e.error
4534
4539
  }])
4535
4540
  }, [
4536
- n("div", rd, [
4537
- C[4] || (C[4] = yt('<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)),
4541
+ n("div", dd, [
4542
+ C[4] || (C[4] = xt('<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)),
4538
4543
  n("input", {
4539
4544
  id: e.id,
4540
4545
  type: "file",
4541
4546
  onChange: h,
4542
4547
  class: "jsgd-hidden",
4543
4548
  disabled: t.disabled
4544
- }, null, 40, ld),
4545
- n("div", nd, [
4549
+ }, null, 40, rd),
4550
+ n("div", ld, [
4546
4551
  n("label", {
4547
4552
  for: e.id,
4548
4553
  class: R(["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": t.disabled }])
4549
- }, M(a(r)?.btn?.upload ?? "Upload"), 11, od),
4554
+ }, M(a(r)?.btn?.upload ?? "Upload"), 11, nd),
4550
4555
  n("button", {
4551
4556
  type: "button",
4552
4557
  onClick: j,
4553
4558
  disabled: t.disabled,
4554
4559
  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-slate-600 jsgd-text-white hover:jsgd-bg-slate-700 dark:jsgd-bg-slate-500 dark:hover:jsgd-bg-slate-400"
4555
- }, " URL ", 8, id),
4560
+ }, " URL ", 8, od),
4556
4561
  d.value && !t.disabled ? (m(), w("button", {
4557
4562
  key: 0,
4558
4563
  type: "button",
@@ -4560,22 +4565,22 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
4560
4565
  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"
4561
4566
  }, M(a(r)?.btn?.remove || "Hapus"), 1)) : $("", !0)
4562
4567
  ]),
4563
- d.value ? (m(), w("div", gd, [
4564
- n("p", ud, [
4568
+ d.value ? (m(), w("div", id, [
4569
+ n("p", gd, [
4565
4570
  C[1] || (C[1] = n("b", { class: "jsgd-text-slate-900 dark:jsgd-text-slate-100" }, "Name:", -1)),
4566
4571
  _(" " + M(d.value), 1)
4567
4572
  ]),
4568
- u.value ? (m(), w("p", cd, [
4573
+ u.value ? (m(), w("p", ud, [
4569
4574
  C[2] || (C[2] = n("b", { class: "jsgd-text-slate-900 dark:jsgd-text-slate-100" }, "Size:", -1)),
4570
4575
  _(" " + M(u.value), 1)
4571
4576
  ])) : $("", !0),
4572
- v.value ? (m(), w("p", md, [
4577
+ v.value ? (m(), w("p", cd, [
4573
4578
  C[3] || (C[3] = n("b", { class: "jsgd-text-slate-900 dark:jsgd-text-slate-100" }, "Type:", -1)),
4574
4579
  _(" " + M(v.value), 1)
4575
4580
  ])) : $("", !0)
4576
4581
  ])) : $("", !0)
4577
4582
  ]),
4578
- n("div", jd, [
4583
+ n("div", md, [
4579
4584
  (m(!0), w(X, null, te(c.value, (B, ee) => (m(), w("p", {
4580
4585
  key: ee,
4581
4586
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
@@ -4584,19 +4589,19 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
4584
4589
  ], 2)
4585
4590
  ]));
4586
4591
  }
4587
- }), bd = { 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" }, hd = {
4592
+ }), jd = { 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" }, bd = {
4588
4593
  key: 0,
4589
4594
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mb-4 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
4590
- }, fd = { class: "jsgd-relative jsgd-mb-2" }, pd = {
4595
+ }, hd = { class: "jsgd-relative jsgd-mb-2" }, fd = {
4591
4596
  key: 0,
4592
4597
  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"
4593
- }, vd = ["onMousedown"], xd = { class: "jsgd-flex jsgd-items-center jsgd-justify-between jsgd-gap-4" }, yd = { class: "jsgd-truncate" }, kd = {
4598
+ }, pd = ["onMousedown"], vd = { class: "jsgd-flex jsgd-items-center jsgd-justify-between jsgd-gap-4" }, xd = { class: "jsgd-truncate" }, yd = {
4594
4599
  key: 0,
4595
4600
  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"
4596
- }, wd = { 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" }, Sd = ["value"], Dd = {
4601
+ }, kd = { 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" }, wd = ["value"], Sd = {
4597
4602
  key: 0,
4598
4603
  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"
4599
- }, el = /* @__PURE__ */ re({
4604
+ }, _r = /* @__PURE__ */ le({
4600
4605
  __name: "GroupRenderer",
4601
4606
  props: {
4602
4607
  id: { default: ce() },
@@ -4615,8 +4620,8 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
4615
4620
  emits: ["update:model-value", "push:errors", "remove:errors", "selected-option-change", "multi-selected-change"],
4616
4621
  setup(e, { emit: s }) {
4617
4622
  const t = s, g = e, l = ae("TableComponents", {
4618
- labels: A(oe[g.lang ?? "en"])
4619
- }).labels, { selectedOption: o, multiSelected: d, errorPush: u, errorRemove: v } = na(
4623
+ labels: A(ie[g.lang ?? "en"])
4624
+ }).labels, { selectedOption: o, multiSelected: d, errorPush: u, errorRemove: v } = la(
4620
4625
  g,
4621
4626
  t
4622
4627
  ), x = A(!1);
@@ -4627,10 +4632,10 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
4627
4632
  n("label", {
4628
4633
  class: R(["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": g.error }])
4629
4634
  }, M(e.label), 3),
4630
- n("div", bd, [
4631
- g.error ? (m(), w("p", hd, M(g.error), 1)) : $("", !0),
4635
+ n("div", jd, [
4636
+ g.error ? (m(), w("p", bd, M(g.error), 1)) : $("", !0),
4632
4637
  e.typeDesign === "select" || e.typeDesign === "dropdown" ? (m(), w(X, { key: 1 }, [
4633
- n("div", fd, [
4638
+ n("div", hd, [
4634
4639
  n("div", {
4635
4640
  onClick: j[0] || (j[0] = (h) => x.value = !x.value),
4636
4641
  class: R(["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": x.value }])
@@ -4649,7 +4654,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
4649
4654
  "leave-to-class": "jsgd-opacity-0"
4650
4655
  }, {
4651
4656
  default: ue(() => [
4652
- x.value ? (m(), w("ul", pd, [
4657
+ x.value ? (m(), w("ul", fd, [
4653
4658
  e.required ? $("", !0) : (m(), w("li", {
4654
4659
  key: 0,
4655
4660
  onMousedown: j[1] || (j[1] = Ve((h) => c(null), ["prevent"])),
@@ -4662,11 +4667,11 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
4662
4667
  "jsgd-bg-blue-50 jsgd-text-blue-700 jsgd-font-medium dark:jsgd-bg-blue-900/30 dark:jsgd-text-blue-300": a(o) === f
4663
4668
  }])
4664
4669
  }, [
4665
- n("div", xd, [
4666
- n("span", yd, M(g.optionsLabels?.[f] ?? f), 1),
4667
- a(o) === f ? (m(), w("span", kd)) : $("", !0)
4670
+ n("div", vd, [
4671
+ n("span", xd, M(g.optionsLabels?.[f] ?? f), 1),
4672
+ a(o) === f ? (m(), w("span", yd)) : $("", !0)
4668
4673
  ])
4669
- ], 42, vd))), 128))
4674
+ ], 42, pd))), 128))
4670
4675
  ])) : $("", !0)
4671
4676
  ]),
4672
4677
  _: 1
@@ -4690,21 +4695,21 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
4690
4695
  key: f,
4691
4696
  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"
4692
4697
  }, [
4693
- n("label", wd, [
4694
- tt(n("input", {
4698
+ n("label", kd, [
4699
+ et(n("input", {
4695
4700
  type: "checkbox",
4696
- "onUpdate:modelValue": j[2] || (j[2] = (D) => Bt(d) ? d.value = D : null),
4701
+ "onUpdate:modelValue": j[2] || (j[2] = (D) => zt(d) ? d.value = D : null),
4697
4702
  value: f,
4698
4703
  class: "jsgd-opacity-0 jsgd-w-0 jsgd-h-0 jsgd-absolute peer"
4699
- }, null, 8, Sd), [
4700
- [Ut, a(d)]
4704
+ }, null, 8, wd), [
4705
+ [Bt, a(d)]
4701
4706
  ]),
4702
4707
  j[3] || (j[3] = n("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" }, [
4703
4708
  n("span", { class: "jsgd-i-mdi-check jsgd-w-3.5 jsgd-h-3.5 dark:jsgd-text-white jsgd-opacity-0 group-has-[:checked]:jsgd-opacity-100 jsgd-transition-opacity" })
4704
4709
  ], -1)),
4705
4710
  _(" " + M(g.optionsLabels?.[f] ?? f), 1)
4706
4711
  ]),
4707
- a(d).includes(f) ? (m(), w("div", Dd, [
4712
+ a(d).includes(f) ? (m(), w("div", Sd, [
4708
4713
  (m(!0), w(X, null, te(h, (D, V) => (m(), J(a(Be), {
4709
4714
  key: V,
4710
4715
  field: D,
@@ -4723,19 +4728,19 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
4723
4728
  ])
4724
4729
  ]));
4725
4730
  }
4726
- }), $d = { class: "jsgd-w-full" }, Ad = ["for"], Md = {
4731
+ }), Dd = { class: "jsgd-w-full" }, $d = ["for"], Ad = {
4727
4732
  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",
4728
4733
  style: { "grid-template-areas": "'preview info' 'preview buttons'" }
4729
- }, Cd = ["src", "alt"], Id = ["id", "disabled"], Vd = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 md:jsgd-contents" }, Td = {
4734
+ }, Md = ["src", "alt"], Cd = ["id", "disabled"], Id = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 md:jsgd-contents" }, Vd = {
4730
4735
  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",
4731
4736
  style: { "grid-area": "info" }
4732
- }, Ed = { class: "jsgd-text-slate-900 jsgd-font-medium jsgd-text-right jsgd-break-words dark:jsgd-text-slate-100" }, Ld = { class: "jsgd-text-slate-900 jsgd-font-medium jsgd-text-right jsgd-break-words dark:jsgd-text-slate-100" }, Pd = { class: "jsgd-text-slate-900 jsgd-font-medium jsgd-text-right jsgd-break-words dark:jsgd-text-slate-100" }, Rd = { class: "jsgd-text-slate-900 jsgd-font-medium jsgd-text-right jsgd-break-words dark:jsgd-text-slate-100" }, zd = {
4737
+ }, Td = { class: "jsgd-text-slate-900 jsgd-font-medium jsgd-text-right jsgd-break-words dark:jsgd-text-slate-100" }, Ed = { class: "jsgd-text-slate-900 jsgd-font-medium jsgd-text-right jsgd-break-words dark:jsgd-text-slate-100" }, Ld = { class: "jsgd-text-slate-900 jsgd-font-medium jsgd-text-right jsgd-break-words dark:jsgd-text-slate-100" }, Pd = { class: "jsgd-text-slate-900 jsgd-font-medium jsgd-text-right jsgd-break-words dark:jsgd-text-slate-100" }, Rd = {
4733
4738
  class: "jsgd-flex jsgd-justify-center jsgd-gap-3 jsgd-w-full md:jsgd-self-end",
4734
4739
  style: { "grid-area": "buttons" }
4735
- }, Bd = ["for"], Ud = ["disabled"], Kd = { class: "jsgd-px-1" }, Od = {
4740
+ }, zd = ["for"], Bd = ["disabled"], Ud = { class: "jsgd-px-1" }, Kd = {
4736
4741
  key: 1,
4737
4742
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
4738
- }, tl = /* @__PURE__ */ re({
4743
+ }, el = /* @__PURE__ */ le({
4739
4744
  __name: "ImageInput",
4740
4745
  props: {
4741
4746
  id: { default: ce() },
@@ -4752,7 +4757,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
4752
4757
  emits: ["update:modelValue", "push:error", "remove:error"],
4753
4758
  setup(e, { emit: s }) {
4754
4759
  const t = e, r = ae("TableComponents", {
4755
- labels: A(oe[t.lang ?? "en"])
4760
+ labels: A(ie[t.lang ?? "en"])
4756
4761
  }).labels, l = ae("TableComponents")?.ShowAlert, o = s, d = A(""), u = A(""), v = A(""), x = A(""), c = A(null), i = A(null), j = A(
4757
4762
  t.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"
4758
4763
  ), h = A(!0);
@@ -4793,14 +4798,14 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
4793
4798
  j.value = L;
4794
4799
  const Y = new Image();
4795
4800
  Y.onload = () => {
4796
- u.value = `${Y.width} x ${Y.height}`, x.value = nt(Y.width, Y.height), c.value = { width: Y.width, height: Y.height }, Q();
4801
+ u.value = `${Y.width} x ${Y.height}`, x.value = lt(Y.width, Y.height), c.value = { width: Y.width, height: Y.height }, Q();
4797
4802
  }, Y.src = L;
4798
4803
  }, p.readAsDataURL(k);
4799
4804
  } else if (typeof k == "string" && k) {
4800
4805
  j.value = k, d.value = k.split("/").pop() || k, v.value = "N/A";
4801
4806
  const p = new Image();
4802
4807
  p.onload = () => {
4803
- u.value = `${p.width} x ${p.height}`, x.value = nt(p.width, p.height), c.value = { width: p.width, height: p.height }, Q();
4808
+ u.value = `${p.width} x ${p.height}`, x.value = lt(p.width, p.height), c.value = { width: p.width, height: p.height }, Q();
4804
4809
  }, p.onerror = () => {
4805
4810
  u.value = "Invalid", x.value = "N/A", c.value = null, Q();
4806
4811
  }, p.src = k;
@@ -4819,7 +4824,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
4819
4824
  function C(k, p = !1) {
4820
4825
  return new Promise((E, L) => {
4821
4826
  const Y = new Image();
4822
- p && (Y.crossOrigin = "anonymous"), Y.onload = () => E(Y), Y.onerror = (le) => {
4827
+ p && (Y.crossOrigin = "anonymous"), Y.onload = () => E(Y), Y.onerror = (ne) => {
4823
4828
  L(new Error(`Failed to load image: ${k}`));
4824
4829
  }, Y.src = k;
4825
4830
  });
@@ -4834,32 +4839,32 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
4834
4839
  // File lokal, bukan cross-origin
4835
4840
  C(p.url, !0)
4836
4841
  // Watermark, mungkin cross-origin
4837
- ]), le = document.createElement("canvas");
4838
- le.width = L.width, le.height = L.height;
4839
- const F = le.getContext("2d");
4842
+ ]), ne = document.createElement("canvas");
4843
+ ne.width = L.width, ne.height = L.height;
4844
+ const F = ne.getContext("2d");
4840
4845
  if (!F) return k;
4841
4846
  F.drawImage(L, 0, 0), F.globalAlpha = p.transparant / 100;
4842
- let G = 0, K = 0;
4847
+ let G = 0, U = 0;
4843
4848
  const N = 10;
4844
4849
  switch (p.position) {
4845
4850
  case "top-left":
4846
- G = N, K = N, F.drawImage(Y, G, K);
4851
+ G = N, U = N, F.drawImage(Y, G, U);
4847
4852
  break;
4848
4853
  case "top-right":
4849
- G = L.width - Y.width - N, K = N, F.drawImage(Y, G, K);
4854
+ G = L.width - Y.width - N, U = N, F.drawImage(Y, G, U);
4850
4855
  break;
4851
4856
  case "bottom-left":
4852
- G = N, K = L.height - Y.height - N, F.drawImage(Y, G, K);
4857
+ G = N, U = L.height - Y.height - N, F.drawImage(Y, G, U);
4853
4858
  break;
4854
4859
  case "bottom-right":
4855
- G = L.width - Y.width - N, K = L.height - Y.height - N, F.drawImage(Y, G, K);
4860
+ G = L.width - Y.width - N, U = L.height - Y.height - N, F.drawImage(Y, G, U);
4856
4861
  break;
4857
4862
  case "full":
4858
4863
  F.drawImage(Y, 0, 0, L.width, L.height);
4859
4864
  break;
4860
4865
  }
4861
4866
  return F.globalAlpha = 1, new Promise((b, y) => {
4862
- le.toBlob((T) => {
4867
+ ne.toBlob((T) => {
4863
4868
  if (T) {
4864
4869
  const P = new File([T], k.name, { type: k.type });
4865
4870
  b(P);
@@ -4899,15 +4904,15 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
4899
4904
  ]), o("update:modelValue", null, t.id);
4900
4905
  return;
4901
4906
  }
4902
- let le = E;
4907
+ let ne = E;
4903
4908
  if (t.watermark)
4904
4909
  try {
4905
- le = await B(E);
4910
+ ne = await B(E);
4906
4911
  } catch {
4907
4912
  o("update:modelValue", null, t.id);
4908
4913
  return;
4909
4914
  }
4910
- o("update:modelValue", le, t.id);
4915
+ o("update:modelValue", ne, t.id);
4911
4916
  }
4912
4917
  }
4913
4918
  function O() {
@@ -4926,8 +4931,8 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
4926
4931
  if (t.validate.maxSize && (h.value = i.value <= t.validate.maxSize, h.value || k.push(I("imageMaxSize", { max: t.validate.maxSize }, t.lang ?? "en"))), t.validate.pixel && c.value) {
4927
4932
  const p = t.validate.pixel, E = c.value.width, L = c.value.height;
4928
4933
  if (("minWidth" in p || "maxWidth" in p || "minHeight" in p || "maxHeight" in p) && (p.minWidth && E < p.minWidth && k.push(I("imageMinWidth", { min: p.minWidth }, t.lang ?? "en")), p.minHeight && L < p.minHeight && k.push(I("imageMinHeight", { min: p.minHeight }, t.lang ?? "en")), p.maxWidth && E > p.maxWidth && k.push(I("imageMaxWidth", { max: p.maxWidth }, t.lang ?? "en")), p.maxHeight && L > p.maxHeight && k.push(I("imageMaxHeight", { max: p.maxHeight }, t.lang ?? "en"))), "width" in p || "height" in p) {
4929
- const Y = !p.width || E === p.width, le = !p.height || L === p.height;
4930
- (!Y || !le) && k.push(
4934
+ const Y = !p.width || E === p.width, ne = !p.height || L === p.height;
4935
+ (!Y || !ne) && k.push(
4931
4936
  I(
4932
4937
  "imagePixel",
4933
4938
  {
@@ -4940,11 +4945,11 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
4940
4945
  }
4941
4946
  }
4942
4947
  if (t.validate.ratio && c.value) {
4943
- const p = t.validate.ratio.Width, E = t.validate.ratio.Height, L = c.value.width, Y = c.value.height, le = Ge(L, Y), F = Ge(p, E);
4944
- let G = le.w === F.w && le.h === F.h;
4948
+ const p = t.validate.ratio.Width, E = t.validate.ratio.Height, L = c.value.width, Y = c.value.height, ne = We(L, Y), F = We(p, E);
4949
+ let G = ne.w === F.w && ne.h === F.h;
4945
4950
  if (!G) {
4946
- const K = L / Y, N = p / E;
4947
- G = Math.abs(K - N) <= 0.01;
4951
+ const U = L / Y, N = p / E;
4952
+ G = Math.abs(U - N) <= 0.01;
4948
4953
  }
4949
4954
  f.value = G, f.value || k.push(
4950
4955
  I(
@@ -4962,7 +4967,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
4962
4967
  function q() {
4963
4968
  d.value = "", u.value = "", v.value = "", x.value = "", D.value = [], j.value = t.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";
4964
4969
  }
4965
- return (k, p) => (m(), w("div", $d, [
4970
+ return (k, p) => (m(), w("div", Dd, [
4966
4971
  n("label", {
4967
4972
  for: e.id,
4968
4973
  class: R(["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": D.value.length !== 0 || e.error }])
@@ -4978,19 +4983,19 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
4978
4983
  ])]),
4979
4984
  _: 1
4980
4985
  }, 8, ["text"])) : $("", !0)
4981
- ], 10, Ad),
4986
+ ], 10, $d),
4982
4987
  n("div", {
4983
4988
  class: R(["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", {
4984
4989
  "jsgd-border-red-400 dark:jsgd-border-red-500": D.value.length !== 0 || e.error
4985
4990
  }])
4986
4991
  }, [
4987
- n("div", Md, [
4992
+ n("div", Ad, [
4988
4993
  n("img", {
4989
4994
  src: j.value,
4990
4995
  alt: e.previewAlt,
4991
4996
  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",
4992
4997
  style: { "grid-area": "preview" }
4993
- }, null, 8, Cd),
4998
+ }, null, 8, Md),
4994
4999
  n("input", {
4995
5000
  id: e.id,
4996
5001
  type: "file",
@@ -4998,37 +5003,37 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
4998
5003
  onChange: ee,
4999
5004
  class: "jsgd-hidden",
5000
5005
  disabled: t.disabled
5001
- }, null, 40, Id),
5002
- n("div", Vd, [
5003
- n("div", Td, [
5006
+ }, null, 40, Cd),
5007
+ n("div", Id, [
5008
+ n("div", Vd, [
5004
5009
  d.value ? (m(), w(X, { key: 0 }, [
5005
5010
  p[1] || (p[1] = n("span", { class: "jsgd-font-medium jsgd-text-slate-600 dark:jsgd-text-slate-400" }, "Name", -1)),
5006
- n("span", Ed, M(d.value.length > 20 ? d.value.slice(0, 20) + "..." : d.value), 1)
5011
+ n("span", Td, M(d.value.length > 20 ? d.value.slice(0, 20) + "..." : d.value), 1)
5007
5012
  ], 64)) : $("", !0),
5008
5013
  u.value ? (m(), w(X, { key: 1 }, [
5009
5014
  p[2] || (p[2] = n("span", { class: "jsgd-font-medium jsgd-text-slate-600 dark:jsgd-text-slate-400" }, "Pixels", -1)),
5010
- n("span", Ld, M(u.value), 1)
5015
+ n("span", Ed, M(u.value), 1)
5011
5016
  ], 64)) : $("", !0),
5012
5017
  v.value ? (m(), w(X, { key: 2 }, [
5013
5018
  p[3] || (p[3] = n("span", { class: "jsgd-font-medium jsgd-text-slate-600 dark:jsgd-text-slate-400" }, "Size", -1)),
5014
- n("span", Pd, M(v.value), 1)
5019
+ n("span", Ld, M(v.value), 1)
5015
5020
  ], 64)) : $("", !0),
5016
5021
  x.value ? (m(), w(X, { key: 3 }, [
5017
5022
  p[4] || (p[4] = n("span", { class: "jsgd-font-medium jsgd-text-slate-600 dark:jsgd-text-slate-400" }, "Ratio", -1)),
5018
- n("span", Rd, M(x.value), 1)
5023
+ n("span", Pd, M(x.value), 1)
5019
5024
  ], 64)) : $("", !0)
5020
5025
  ]),
5021
- n("div", zd, [
5026
+ n("div", Rd, [
5022
5027
  n("label", {
5023
5028
  for: e.id,
5024
5029
  class: R(["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": t.disabled }])
5025
- }, M(a(r)?.btn?.upload ?? "Upload"), 11, Bd),
5030
+ }, M(a(r)?.btn?.upload ?? "Upload"), 11, zd),
5026
5031
  n("button", {
5027
5032
  type: "button",
5028
5033
  onClick: S,
5029
5034
  disabled: t.disabled,
5030
5035
  class: "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-slate-600 jsgd-text-white hover:jsgd-bg-slate-700 dark:jsgd-bg-slate-500 dark:hover:jsgd-bg-slate-400"
5031
- }, " URL ", 8, Ud),
5036
+ }, " URL ", 8, Bd),
5032
5037
  e.modelValue && !t.disabled ? (m(), w("button", {
5033
5038
  key: 0,
5034
5039
  type: "button",
@@ -5039,12 +5044,12 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
5039
5044
  ])
5040
5045
  ])
5041
5046
  ], 2),
5042
- n("div", Kd, [
5047
+ n("div", Ud, [
5043
5048
  D.value.length !== 0 ? (m(!0), w(X, { key: 0 }, te(D.value, (E, L) => (m(), w("p", {
5044
5049
  key: L,
5045
5050
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
5046
5051
  }, M(E), 1))), 128)) : $("", !0),
5047
- typeof t.error == "string" && D.value.length === 0 ? (m(), w("p", Od, M(t.error), 1)) : $("", !0),
5052
+ typeof t.error == "string" && D.value.length === 0 ? (m(), w("p", Kd, M(t.error), 1)) : $("", !0),
5048
5053
  Array.isArray(t.error) && D.value.length === 0 ? (m(!0), w(X, { key: 2 }, te(t.error, (E, L) => (m(), w("p", {
5049
5054
  key: "ext-" + L,
5050
5055
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
@@ -5052,10 +5057,10 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
5052
5057
  ])
5053
5058
  ]));
5054
5059
  }
5055
- }), Fd = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, Nd = ["for"], qd = { class: "jsgd-relative" }, Hd = ["id", "value", "disabled", "placeholder"], Wd = {
5060
+ }), Od = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, Fd = ["for"], Nd = { class: "jsgd-relative" }, qd = ["id", "value", "disabled", "placeholder"], Hd = {
5056
5061
  key: 1,
5057
5062
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
5058
- }, sl = /* @__PURE__ */ re({
5063
+ }, tl = /* @__PURE__ */ le({
5059
5064
  __name: "NumberInput",
5060
5065
  props: {
5061
5066
  id: { default: ce() },
@@ -5070,7 +5075,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
5070
5075
  emits: ["update:modelValue", "push:error", "remove:error"],
5071
5076
  setup(e, { emit: s }) {
5072
5077
  const t = e, g = String(t.modelValue ?? ""), l = ae("TableComponents", {
5073
- labels: A(oe[t.lang ?? "en"])
5078
+ labels: A(ie[t.lang ?? "en"])
5074
5079
  }).labels, o = s, d = Z(() => {
5075
5080
  if (t.validate) {
5076
5081
  const c = t.validate, i = [];
@@ -5109,7 +5114,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
5109
5114
  const i = c.target;
5110
5115
  o("update:modelValue", i.value, t.id);
5111
5116
  }
5112
- return (c, i) => (m(), w("div", Fd, [
5117
+ return (c, i) => (m(), w("div", Od, [
5113
5118
  n("label", {
5114
5119
  for: e.id,
5115
5120
  class: R(["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.length !== 0 || e.error }])
@@ -5125,9 +5130,9 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
5125
5130
  ])]),
5126
5131
  _: 1
5127
5132
  }, 8, ["text"])) : $("", !0)
5128
- ], 10, Nd),
5129
- n("div", qd, [
5130
- i[1] || (i[1] = yt('<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)),
5133
+ ], 10, Fd),
5134
+ n("div", Nd, [
5135
+ i[1] || (i[1] = xt('<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)),
5131
5136
  n("input", {
5132
5137
  id: e.id,
5133
5138
  type: "number",
@@ -5138,16 +5143,16 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
5138
5143
  class: R(["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", {
5139
5144
  "jsgd-border-red-400 focus:jsgd-ring-red-500/20 dark:jsgd-border-red-400 dark:focus:jsgd-ring-red-400/25": u.value.length !== 0 || e.error
5140
5145
  }])
5141
- }, null, 42, Hd)
5146
+ }, null, 42, qd)
5142
5147
  ]),
5143
5148
  u.value.length !== 0 ? (m(!0), w(X, { key: 0 }, te(u.value, (j, h) => (m(), w("p", {
5144
5149
  key: h,
5145
5150
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
5146
5151
  }, M(j), 1))), 128)) : $("", !0),
5147
- typeof t.error == "string" && u.value.length === 0 ? (m(), w("p", Wd, M(e.error), 1)) : $("", !0)
5152
+ typeof t.error == "string" && u.value.length === 0 ? (m(), w("p", Hd, M(e.error), 1)) : $("", !0)
5148
5153
  ]));
5149
5154
  }
5150
- }), Gd = { class: "jsgd-w-full jsgd-mb-6 jsgd-animate-[slideUpFade_500ms_ease-out_backwards]" }, Jd = { 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" }, Yd = { 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" }, al = /* @__PURE__ */ re({
5155
+ }), Wd = { class: "jsgd-w-full jsgd-mb-6 jsgd-animate-[slideUpFade_500ms_ease-out_backwards]" }, Gd = { 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" }, Jd = { 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" }, sl = /* @__PURE__ */ le({
5151
5156
  __name: "ObjectInput",
5152
5157
  props: {
5153
5158
  id: { default: ce() },
@@ -5168,9 +5173,9 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
5168
5173
  t.value = { ...s.formData }, g.value = { ...s.errors };
5169
5174
  },
5170
5175
  { immediate: !0, deep: !0 }
5171
- ), (r, l) => (m(), w("div", Gd, [
5172
- n("label", Jd, M(s.label), 1),
5173
- n("div", Yd, [
5176
+ ), (r, l) => (m(), w("div", Wd, [
5177
+ n("label", Gd, M(s.label), 1),
5178
+ n("div", Jd, [
5174
5179
  (m(!0), w(X, null, te(s.schema, (o, d) => (m(), J(a(Be), {
5175
5180
  key: d,
5176
5181
  field: o,
@@ -5187,10 +5192,10 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
5187
5192
  ])
5188
5193
  ]));
5189
5194
  }
5190
- }), Zd = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, Xd = ["for"], Qd = { class: "jsgd-relative" }, _d = ["id", "type", "disabled", "placeholder"], er = {
5195
+ }), Yd = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, Zd = ["for"], Xd = { class: "jsgd-relative" }, Qd = ["id", "type", "disabled", "placeholder"], _d = {
5191
5196
  key: 1,
5192
5197
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
5193
- }, dl = /* @__PURE__ */ re({
5198
+ }, al = /* @__PURE__ */ le({
5194
5199
  __name: "PasswordInput",
5195
5200
  props: {
5196
5201
  id: { default: ce() },
@@ -5205,7 +5210,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
5205
5210
  emits: ["update:modelValue", "push:error", "remove:error"],
5206
5211
  setup(e, { emit: s }) {
5207
5212
  const t = e, r = ae("TableComponents", {
5208
- labels: A(oe[t.lang ?? "en"])
5213
+ labels: A(ie[t.lang ?? "en"])
5209
5214
  }).labels, l = s;
5210
5215
  function o(i) {
5211
5216
  if (!t.validate) return [];
@@ -5247,7 +5252,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
5247
5252
  const j = i.target;
5248
5253
  l("update:modelValue", j.value, t.id);
5249
5254
  }
5250
- return (i, j) => (m(), w("div", Zd, [
5255
+ return (i, j) => (m(), w("div", Yd, [
5251
5256
  n("label", {
5252
5257
  for: e.id,
5253
5258
  class: R(["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": v.value.length !== 0 || e.error }])
@@ -5263,8 +5268,8 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
5263
5268
  ])]),
5264
5269
  _: 1
5265
5270
  }, 8, ["text"])) : $("", !0)
5266
- ], 10, Xd),
5267
- n("div", Qd, [
5271
+ ], 10, Zd),
5272
+ n("div", Xd, [
5268
5273
  j[1] || (j[1] = n("div", { class: "jsgd-absolute jsgd-left-3 jsgd-top-1/2 -jsgd-translate-y-1/2 jsgd-text-slate-400 jsgd-pointer-events-none" }, [
5269
5274
  n("p", { class: "jsgd-i-mdi-lock-outline jsgd-w-5 jsgd-h-5" })
5270
5275
  ], -1)),
@@ -5277,19 +5282,19 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
5277
5282
  disabled: e.disabled,
5278
5283
  placeholder: x.value,
5279
5284
  onInput: c
5280
- }, null, 42, _d)
5285
+ }, null, 42, Qd)
5281
5286
  ]),
5282
5287
  v.value.length !== 0 ? (m(!0), w(X, { key: 0 }, te(v.value, (h, f) => (m(), w("p", {
5283
5288
  key: f,
5284
5289
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
5285
5290
  }, M(h), 1))), 128)) : $("", !0),
5286
- typeof t.error == "string" && v.value.length === 0 ? (m(), w("p", er, M(e.error), 1)) : $("", !0)
5291
+ typeof t.error == "string" && v.value.length === 0 ? (m(), w("p", _d, M(e.error), 1)) : $("", !0)
5287
5292
  ]));
5288
5293
  }
5289
- }), tr = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, sr = ["for"], ar = ["onClick"], dr = ["onKeydown", "placeholder"], rr = {
5294
+ }), er = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, tr = ["for"], sr = ["onClick"], ar = ["onKeydown", "placeholder"], dr = {
5290
5295
  key: 1,
5291
5296
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
5292
- }, rl = /* @__PURE__ */ re({
5297
+ }, dl = /* @__PURE__ */ le({
5293
5298
  __name: "TagInput",
5294
5299
  props: {
5295
5300
  id: { default: ce() },
@@ -5304,7 +5309,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
5304
5309
  emits: ["update:modelValue", "push:error", "remove:error"],
5305
5310
  setup(e, { emit: s }) {
5306
5311
  const t = e, g = s, l = ae("TableComponents", {
5307
- labels: A(oe[t.lang ?? "en"])
5312
+ labels: A(ie[t.lang ?? "en"])
5308
5313
  }).labels, o = A(), d = Z(() => {
5309
5314
  if (t.validate) {
5310
5315
  const i = t.validate, j = [];
@@ -5342,7 +5347,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
5342
5347
  t.id
5343
5348
  );
5344
5349
  }
5345
- return (i, j) => (m(), w("div", tr, [
5350
+ return (i, j) => (m(), w("div", er, [
5346
5351
  n("label", {
5347
5352
  for: e.id,
5348
5353
  class: R(["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.length !== 0 || e.error }])
@@ -5358,7 +5363,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
5358
5363
  ])]),
5359
5364
  _: 1
5360
5365
  }, 8, ["text"])) : $("", !0)
5361
- ], 10, sr),
5366
+ ], 10, tr),
5362
5367
  n("div", {
5363
5368
  class: R(["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", {
5364
5369
  "jsgd-border-red-400 focus-within:jsgd-ring-red-500/20 dark:jsgd-border-red-400 dark:focus-within:jsgd-ring-red-400/25": u.value.length !== 0 || e.error,
@@ -5375,7 +5380,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
5375
5380
  type: "button",
5376
5381
  onClick: (D) => c(f),
5377
5382
  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"
5378
- }, " × ", 8, ar))
5383
+ }, " × ", 8, sr))
5379
5384
  ]))), 128)),
5380
5385
  e.disabled ? $("", !0) : (m(), w("input", {
5381
5386
  key: 0,
@@ -5383,20 +5388,20 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
5383
5388
  ref: o,
5384
5389
  type: "text",
5385
5390
  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",
5386
- onKeydown: Kt(Ve(x, ["prevent"]), ["enter"]),
5391
+ onKeydown: Ut(Ve(x, ["prevent"]), ["enter"]),
5387
5392
  placeholder: v.value
5388
- }, null, 40, dr))
5393
+ }, null, 40, ar))
5389
5394
  ], 2),
5390
5395
  u.value.length !== 0 ? (m(!0), w(X, { key: 0 }, te(u.value, (h, f) => (m(), w("p", {
5391
5396
  key: f,
5392
5397
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
5393
- }, M(h), 1))), 128)) : typeof t.error == "string" ? (m(), w("p", rr, M(e.error), 1)) : $("", !0)
5398
+ }, M(h), 1))), 128)) : typeof t.error == "string" ? (m(), w("p", dr, M(e.error), 1)) : $("", !0)
5394
5399
  ]));
5395
5400
  }
5396
- }), lr = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, nr = ["for"], or = ["id", "value", "placeholder", "disabled"], ir = {
5401
+ }), rr = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, lr = ["for"], nr = ["id", "value", "placeholder", "disabled"], or = {
5397
5402
  key: 1,
5398
5403
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
5399
- }, ll = /* @__PURE__ */ re({
5404
+ }, rl = /* @__PURE__ */ le({
5400
5405
  __name: "TextAreaInput",
5401
5406
  props: {
5402
5407
  id: { default: ce() },
@@ -5411,7 +5416,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
5411
5416
  emits: ["update:modelValue", "push:error", "remove:error"],
5412
5417
  setup(e, { emit: s }) {
5413
5418
  const t = e, g = s, l = ae("TableComponents", {
5414
- labels: A(oe[t.lang ?? "en"])
5419
+ labels: A(ie[t.lang ?? "en"])
5415
5420
  }).labels, o = Z(() => {
5416
5421
  if (t.validate) {
5417
5422
  const x = t.validate, c = [];
@@ -5446,7 +5451,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
5446
5451
  const c = x.target;
5447
5452
  g("update:modelValue", c.value, t.id);
5448
5453
  }
5449
- return (x, c) => (m(), w("div", lr, [
5454
+ return (x, c) => (m(), w("div", rr, [
5450
5455
  n("label", {
5451
5456
  for: e.id,
5452
5457
  class: R(["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 || e.error }])
@@ -5462,7 +5467,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
5462
5467
  ])]),
5463
5468
  _: 1
5464
5469
  }, 8, ["text"])) : $("", !0)
5465
- ], 10, nr),
5470
+ ], 10, lr),
5466
5471
  n("textarea", {
5467
5472
  id: e.id,
5468
5473
  value: e.modelValue,
@@ -5473,18 +5478,18 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
5473
5478
  "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 || e.error
5474
5479
  }]),
5475
5480
  onInput: v
5476
- }, null, 42, or),
5481
+ }, null, 42, nr),
5477
5482
  d.value.length !== 0 ? (m(!0), w(X, { key: 0 }, te(d.value, (i, j) => (m(), w("p", {
5478
5483
  key: j,
5479
5484
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
5480
5485
  }, M(i), 1))), 128)) : $("", !0),
5481
- typeof t.error == "string" && d.value.length === 0 ? (m(), w("p", ir, M(e.error), 1)) : $("", !0)
5486
+ typeof t.error == "string" && d.value.length === 0 ? (m(), w("p", or, M(e.error), 1)) : $("", !0)
5482
5487
  ]));
5483
5488
  }
5484
- }), gr = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, ur = ["for"], cr = { class: "jsgd-relative" }, mr = ["id", "value", "disabled", "placeholder"], jr = {
5489
+ }), ir = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, gr = ["for"], ur = { class: "jsgd-relative" }, cr = ["id", "value", "disabled", "placeholder"], mr = {
5485
5490
  key: 0,
5486
5491
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
5487
- }, nl = /* @__PURE__ */ re({
5492
+ }, ll = /* @__PURE__ */ le({
5488
5493
  __name: "TelInput",
5489
5494
  props: {
5490
5495
  id: { default: ce() },
@@ -5499,7 +5504,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
5499
5504
  emits: ["update:modelValue", "push:error", "remove:error"],
5500
5505
  setup(e, { emit: s }) {
5501
5506
  const t = e, g = s, l = ae("TableComponents", {
5502
- labels: A(oe[t.lang ?? "en"])
5507
+ labels: A(ie[t.lang ?? "en"])
5503
5508
  }).labels;
5504
5509
  Z(() => l?.value?.lang ?? "en");
5505
5510
  const o = A([]);
@@ -5511,7 +5516,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
5511
5516
  return;
5512
5517
  }
5513
5518
  const c = [], i = String(v ?? "");
5514
- Zt.test(i) || c.push("Invalid phone number format"), o.value = c, c.length ? g("push:error", c, t.id) : g("remove:error", t.id);
5519
+ Yt.test(i) || c.push("Invalid phone number format"), o.value = c, c.length ? g("push:error", c, t.id) : g("remove:error", t.id);
5515
5520
  },
5516
5521
  { deep: !0, immediate: !0 }
5517
5522
  );
@@ -5521,12 +5526,12 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
5521
5526
  const x = v.target;
5522
5527
  g("update:modelValue", x.value, t.id);
5523
5528
  }
5524
- return (v, x) => (m(), w("div", gr, [
5529
+ return (v, x) => (m(), w("div", ir, [
5525
5530
  n("label", {
5526
5531
  for: e.id,
5527
5532
  class: R(["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": o.value.length || e.error }])
5528
- }, M(e.label), 11, ur),
5529
- n("div", cr, [
5533
+ }, M(e.label), 11, gr),
5534
+ n("div", ur, [
5530
5535
  x[0] || (x[0] = n("div", { class: "jsgd-absolute jsgd-left-3 jsgd-top-1/2 -jsgd-translate-y-1/2 jsgd-text-slate-400 jsgd-pointer-events-none" }, [
5531
5536
  n("p", { class: "jsgd-i-mdi-phone jsgd-w-5 jsgd-h-5" })
5532
5537
  ], -1)),
@@ -5540,19 +5545,19 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
5540
5545
  class: R(["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", {
5541
5546
  "jsgd-border-red-400 focus:jsgd-ring-red-500/20 dark:jsgd-border-red-400 dark:focus:jsgd-ring-red-400/25": o.value.length || e.error
5542
5547
  }])
5543
- }, null, 42, mr)
5548
+ }, null, 42, cr)
5544
5549
  ]),
5545
5550
  (m(!0), w(X, null, te(o.value, (c, i) => (m(), w("p", {
5546
5551
  key: i,
5547
5552
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
5548
5553
  }, M(c), 1))), 128)),
5549
- typeof t.error == "string" && o.value.length === 0 ? (m(), w("p", jr, M(e.error), 1)) : $("", !0)
5554
+ typeof t.error == "string" && o.value.length === 0 ? (m(), w("p", mr, M(e.error), 1)) : $("", !0)
5550
5555
  ]));
5551
5556
  }
5552
- }), br = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, hr = ["for"], fr = ["id", "value", "disabled", "placeholder"], pr = {
5557
+ }), jr = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, br = ["for"], hr = ["id", "value", "disabled", "placeholder"], fr = {
5553
5558
  key: 1,
5554
5559
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
5555
- }, ol = /* @__PURE__ */ re({
5560
+ }, nl = /* @__PURE__ */ le({
5556
5561
  __name: "TextInput",
5557
5562
  props: {
5558
5563
  id: { default: ce() },
@@ -5567,7 +5572,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
5567
5572
  emits: ["update:modelValue", "push:error", "remove:error"],
5568
5573
  setup(e, { emit: s }) {
5569
5574
  const t = e, g = String(t.modelValue ?? ""), l = ae("TableComponents", {
5570
- labels: A(oe[t.lang ?? "en"])
5575
+ labels: A(ie[t.lang ?? "en"])
5571
5576
  }).labels, o = s, d = Z(() => {
5572
5577
  if (t.validate) {
5573
5578
  const c = t.validate, i = [];
@@ -5609,7 +5614,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
5609
5614
  const i = c.target;
5610
5615
  o("update:modelValue", i.value, t.id);
5611
5616
  }
5612
- return (c, i) => (m(), w("div", br, [
5617
+ return (c, i) => (m(), w("div", jr, [
5613
5618
  n("label", {
5614
5619
  for: e.id,
5615
5620
  class: R(["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.length !== 0 || e.error }])
@@ -5625,7 +5630,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
5625
5630
  ])]),
5626
5631
  _: 1
5627
5632
  }, 8, ["text"])) : $("", !0)
5628
- ], 10, hr),
5633
+ ], 10, br),
5629
5634
  n("input", {
5630
5635
  id: e.id,
5631
5636
  type: "text",
@@ -5636,18 +5641,18 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
5636
5641
  class: R(["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", {
5637
5642
  "jsgd-border-red-400 focus:jsgd-ring-red-500/20 dark:jsgd-border-red-400 dark:focus:jsgd-ring-red-400/25": u.value.length !== 0 || e.error
5638
5643
  }])
5639
- }, null, 42, fr),
5644
+ }, null, 42, hr),
5640
5645
  u.value.length !== 0 ? (m(!0), w(X, { key: 0 }, te(u.value, (j, h) => (m(), w("p", {
5641
5646
  key: h,
5642
5647
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
5643
5648
  }, M(j), 1))), 128)) : $("", !0),
5644
- typeof t.error == "string" && u.value.length === 0 ? (m(), w("p", pr, M(e.error), 1)) : $("", !0)
5649
+ typeof t.error == "string" && u.value.length === 0 ? (m(), w("p", fr, M(e.error), 1)) : $("", !0)
5645
5650
  ]));
5646
5651
  }
5647
- }), vr = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, xr = ["for"], yr = { class: "jsgd-relative" }, kr = ["id", "value", "disabled", "min", "max", "placeholder"], wr = {
5652
+ }), pr = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, vr = ["for"], xr = { class: "jsgd-relative" }, yr = ["id", "value", "disabled", "min", "max", "placeholder"], kr = {
5648
5653
  key: 0,
5649
5654
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
5650
- }, il = /* @__PURE__ */ re({
5655
+ }, ol = /* @__PURE__ */ le({
5651
5656
  __name: "TimeInput",
5652
5657
  props: {
5653
5658
  id: { default: ce() },
@@ -5662,7 +5667,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
5662
5667
  emits: ["update:modelValue", "push:error", "remove:error"],
5663
5668
  setup(e, { emit: s }) {
5664
5669
  const t = e, r = ae("TableComponents", {
5665
- labels: A(oe[t.lang ?? "en"])
5670
+ labels: A(ie[t.lang ?? "en"])
5666
5671
  }).labels, l = s, o = Z(() => {
5667
5672
  if (t.validate) {
5668
5673
  const c = t.validate, i = [];
@@ -5688,7 +5693,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
5688
5693
  const h = [], f = u(c);
5689
5694
  if (j && typeof j == "object") {
5690
5695
  try {
5691
- ut(c);
5696
+ gt(c);
5692
5697
  } catch (S) {
5693
5698
  d.value = [String(S)], l("push:error", d.value, t.id);
5694
5699
  return;
@@ -5701,7 +5706,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
5701
5706
  ), Oe(() => {
5702
5707
  if (t.modelValue)
5703
5708
  try {
5704
- ut(t.modelValue);
5709
+ gt(t.modelValue);
5705
5710
  } catch (c) {
5706
5711
  d.value = [String(c)], l("push:error", d.value, t.id);
5707
5712
  return;
@@ -5713,7 +5718,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
5713
5718
  const i = c.target;
5714
5719
  l("update:modelValue", i.value, t.id);
5715
5720
  }
5716
- return (c, i) => (m(), w("div", vr, [
5721
+ return (c, i) => (m(), w("div", pr, [
5717
5722
  n("label", {
5718
5723
  for: e.id,
5719
5724
  class: R(["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 || e.error }])
@@ -5729,8 +5734,8 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
5729
5734
  ])]),
5730
5735
  _: 1
5731
5736
  }, 8, ["text"])) : $("", !0)
5732
- ], 10, xr),
5733
- n("div", yr, [
5737
+ ], 10, vr),
5738
+ n("div", xr, [
5734
5739
  i[1] || (i[1] = n("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" }, [
5735
5740
  n("span", { class: "jsgd-i-mdi-clock-outline jsgd-w-5 jsgd-h-5" })
5736
5741
  ], -1)),
@@ -5746,16 +5751,16 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
5746
5751
  class: R(["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", {
5747
5752
  "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 || e.error
5748
5753
  }])
5749
- }, null, 42, kr)
5754
+ }, null, 42, yr)
5750
5755
  ]),
5751
5756
  (m(!0), w(X, null, te(d.value, (j, h) => (m(), w("p", {
5752
5757
  key: h,
5753
5758
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
5754
5759
  }, M(j), 1))), 128)),
5755
- typeof t.error == "string" && d.value.length === 0 ? (m(), w("p", wr, M(e.error), 1)) : $("", !0)
5760
+ typeof t.error == "string" && d.value.length === 0 ? (m(), w("p", kr, M(e.error), 1)) : $("", !0)
5756
5761
  ]));
5757
5762
  }
5758
- }), Sr = { class: "jsgd-w-full jsgd-mb-6 jsgd-flex jsgd-justify-between jsgd-items-center jsgd-gap-4" }, Dr = ["for"], $r = ["id", "aria-checked", "disabled"], gl = /* @__PURE__ */ re({
5763
+ }), wr = { class: "jsgd-w-full jsgd-mb-6 jsgd-flex jsgd-justify-between jsgd-items-center jsgd-gap-4" }, Sr = ["for"], Dr = ["id", "aria-checked", "disabled"], il = /* @__PURE__ */ le({
5759
5764
  __name: "ToggleInput",
5760
5765
  props: {
5761
5766
  id: { default: ce() },
@@ -5767,7 +5772,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
5767
5772
  emits: ["update:modelValue"],
5768
5773
  setup(e, { emit: s }) {
5769
5774
  const t = e, g = s, r = t.modelValue, l = A(r), o = ae("TableComponents", {
5770
- labels: A(oe[t.lang ?? "en"])
5775
+ labels: A(ie[t.lang ?? "en"])
5771
5776
  });
5772
5777
  se(
5773
5778
  () => l.value,
@@ -5779,11 +5784,11 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
5779
5784
  function u() {
5780
5785
  l.value = !l.value;
5781
5786
  }
5782
- return (v, x) => (m(), w("div", Sr, [
5787
+ return (v, x) => (m(), w("div", wr, [
5783
5788
  n("label", {
5784
5789
  for: e.id,
5785
5790
  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"
5786
- }, M(e.label), 9, Dr),
5791
+ }, M(e.label), 9, Sr),
5787
5792
  n("button", {
5788
5793
  id: e.id,
5789
5794
  type: "button",
@@ -5805,13 +5810,13 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
5805
5810
  l.value ? "jsgd-left-3 jsgd-text-white jsgd-opacity-100" : "jsgd-right-3 jsgd-text-slate-600 jsgd-opacity-100 dark:jsgd-text-slate-300"
5806
5811
  ])
5807
5812
  }, M(l.value ? a(d)?.btn.toogle.active : a(d)?.btn.toogle.inactive), 3)
5808
- ], 10, $r)
5813
+ ], 10, Dr)
5809
5814
  ]));
5810
5815
  }
5811
- }), Ar = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, Mr = ["for"], Cr = { class: "jsgd-relative" }, Ir = ["id", "value", "disabled", "placeholder"], Vr = {
5816
+ }), $r = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, Ar = ["for"], Mr = { class: "jsgd-relative" }, Cr = ["id", "value", "disabled", "placeholder"], Ir = {
5812
5817
  key: 0,
5813
5818
  class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
5814
- }, ul = /* @__PURE__ */ re({
5819
+ }, gl = /* @__PURE__ */ le({
5815
5820
  __name: "UrlInput",
5816
5821
  props: {
5817
5822
  id: { default: ce() },
@@ -5826,7 +5831,7 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
5826
5831
  emits: ["update:modelValue", "push:error", "remove:error"],
5827
5832
  setup(e, { emit: s }) {
5828
5833
  const t = A(void 0), g = A(), r = e, o = ae("TableComponents", {
5829
- labels: A(oe[r.lang ?? "en"])
5834
+ labels: A(ie[r.lang ?? "en"])
5830
5835
  }).labels, d = s;
5831
5836
  function u(v) {
5832
5837
  if (r.disabled) return;
@@ -5847,12 +5852,12 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
5847
5852
  g.value = r.error || t.value || "";
5848
5853
  },
5849
5854
  { deep: !0 }
5850
- ), (v, x) => (m(), w("div", Ar, [
5855
+ ), (v, x) => (m(), w("div", $r, [
5851
5856
  n("label", {
5852
5857
  for: e.id,
5853
5858
  class: R(["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 }])
5854
- }, M(e.label), 11, Mr),
5855
- n("div", Cr, [
5859
+ }, M(e.label), 11, Ar),
5860
+ n("div", Mr, [
5856
5861
  x[0] || (x[0] = n("div", { class: "jsgd-absolute jsgd-left-3 jsgd-top-1/2 -jsgd-translate-y-1/2 jsgd-text-slate-400 jsgd-pointer-events-none" }, [
5857
5862
  n("p", { class: "jsgd-i-mdi-link-variant jsgd-w-5 jsgd-h-5" })
5858
5863
  ], -1)),
@@ -5866,77 +5871,77 @@ const ia = { class: "jsgd-flex jsgd-flex-col jsgd-gap-3 jsgd-box-border" }, ga =
5866
5871
  "jsgd-border-red-400 focus:jsgd-ring-red-500/20 dark:jsgd-border-red-400 dark:focus:jsgd-ring-red-400/25": g.value
5867
5872
  }]),
5868
5873
  placeholder: e.placeholder ?? a(o)?.placeholder.url + ": https://example.com"
5869
- }, null, 42, Ir)
5874
+ }, null, 42, Cr)
5870
5875
  ]),
5871
- g.value ? (m(), w("p", Vr, M(g.value), 1)) : $("", !0)
5876
+ g.value ? (m(), w("p", Ir, M(g.value), 1)) : $("", !0)
5872
5877
  ]));
5873
5878
  }
5874
5879
  });
5875
5880
  export {
5876
- Wt as $,
5877
- zr as A,
5878
- Br as B,
5879
- Ur as C,
5880
- pt as D,
5881
- Hr as E,
5882
- St as F,
5883
- Ls as G,
5884
- jt as H,
5881
+ Ht as $,
5882
+ Rr as A,
5883
+ zr as B,
5884
+ Br as C,
5885
+ ft as D,
5886
+ qr as E,
5887
+ wt as F,
5888
+ Es as G,
5889
+ mt as H,
5885
5890
  Re as I,
5886
- Kr as J,
5887
- bt as K,
5888
- ra as L,
5889
- Or as M,
5890
- Fr as N,
5891
- Nr as O,
5892
- ft as P,
5893
- qr as Q,
5894
- Nt as R,
5895
- Ge as S,
5896
- nt as T,
5891
+ Ur as J,
5892
+ jt as K,
5893
+ da as L,
5894
+ Kr as M,
5895
+ Or as N,
5896
+ Fr as O,
5897
+ ht as P,
5898
+ Nr as Q,
5899
+ Ft as R,
5900
+ We as S,
5901
+ lt as T,
5897
5902
  ce as U,
5898
- qt as V,
5899
- ot as W,
5903
+ Nt as V,
5904
+ nt as W,
5900
5905
  W as X,
5901
5906
  ve as Y,
5902
- Ht as Z,
5907
+ qt as Z,
5903
5908
  Be as _,
5904
5909
  xe as a,
5905
- gt as a0,
5906
- Gt as a1,
5907
- Jt as a2,
5908
- Yt as a3,
5909
- Zt as a4,
5910
- Xt as a5,
5910
+ it as a0,
5911
+ Wt as a1,
5912
+ Gt as a2,
5913
+ Jt as a3,
5914
+ Yt as a4,
5915
+ Zt as a5,
5911
5916
  Me as a6,
5912
- ut as a7,
5913
- Rr as a8,
5917
+ gt as a7,
5918
+ Pr as a8,
5914
5919
  I as a9,
5915
- Js as aa,
5916
- wt as ab,
5917
- Wr as b,
5918
- Gr as c,
5919
- Jr as d,
5920
- Yr as e,
5921
- Zr as f,
5922
- Xr as g,
5923
- Qr as h,
5924
- _r as i,
5925
- el as j,
5926
- tl as k,
5927
- sl as l,
5928
- al as m,
5929
- dl as n,
5930
- rl as o,
5931
- ll as p,
5932
- nl as q,
5933
- ol as r,
5934
- We as s,
5935
- il as t,
5936
- ht as u,
5937
- gl as v,
5938
- ul as w,
5939
- kt as x,
5920
+ Gs as aa,
5921
+ kt as ab,
5922
+ Hr as b,
5923
+ Wr as c,
5924
+ Gr as d,
5925
+ Jr as e,
5926
+ Yr as f,
5927
+ Zr as g,
5928
+ Xr as h,
5929
+ Qr as i,
5930
+ _r as j,
5931
+ el as k,
5932
+ tl as l,
5933
+ sl as m,
5934
+ al as n,
5935
+ dl as o,
5936
+ rl as p,
5937
+ ll as q,
5938
+ nl as r,
5939
+ He as s,
5940
+ ol as t,
5941
+ bt as u,
5942
+ il as v,
5943
+ gl as w,
5944
+ yt as x,
5940
5945
  Le as y,
5941
- oe as z
5946
+ ie as z
5942
5947
  };