@jsg-developer/vue-pack 0.0.9-beta-2 → 0.0.9-beta-3

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 (89) hide show
  1. package/THIRD_PARTY_LICENSES.json +1 -1
  2. package/dist/chunks/ArrayObject-DwVt3eh-.es.js +4 -0
  3. package/dist/chunks/{ArrayObject-BA88O7bP.cjs.js → ArrayObject-e7im6eBP.cjs.js} +1 -1
  4. package/dist/chunks/{ColorPicker-W_cn5ezl.cjs.js → ColorPicker-CxZWLnsr.cjs.js} +1 -1
  5. package/dist/chunks/ColorPicker-DQUgC1cK.es.js +4 -0
  6. package/dist/chunks/{ComboboxComponent-Dwlhjcru.cjs.js → ComboboxComponent-5Zxsxn-S.cjs.js} +1 -1
  7. package/dist/chunks/ComboboxComponent-CkKLd9DX.es.js +4 -0
  8. package/dist/chunks/{CurrencyInput-CNQzGqgu.cjs.js → CurrencyInput-BKbPcc_k.cjs.js} +1 -1
  9. package/dist/chunks/CurrencyInput-Cff03PXP.es.js +4 -0
  10. package/dist/chunks/DateInput-Bpk81F9d.es.js +4 -0
  11. package/dist/chunks/{DateInput-DMFCzQCr.cjs.js → DateInput-D0NRZEqD.cjs.js} +1 -1
  12. package/dist/chunks/{DateTimeInput-8w4T-EZX.cjs.js → DateTimeInput-BZvisXR0.cjs.js} +1 -1
  13. package/dist/chunks/{DateTimeInput-CC70bKnU.es.js → DateTimeInput-_VELf1-m.es.js} +1 -1
  14. package/dist/chunks/{DateTimeInput.vue_vue_type_script_setup_true_lang-BLJgRk91.es.js → DateTimeInput.vue_vue_type_script_setup_true_lang-BQYxHJQE.es.js} +1 -1
  15. package/dist/chunks/{DateTimeInput.vue_vue_type_script_setup_true_lang-DmmVjDPV.cjs.js → DateTimeInput.vue_vue_type_script_setup_true_lang-D2mOJLif.cjs.js} +1 -1
  16. package/dist/chunks/EmailInput-BZDxyq5g.es.js +4 -0
  17. package/dist/chunks/{EmailInput-EU4MR4Jw.cjs.js → EmailInput-C4S7LL5_.cjs.js} +1 -1
  18. package/dist/chunks/{FileArrayInput-CR-seczb.cjs.js → FileArrayInput-DblD-30I.cjs.js} +1 -1
  19. package/dist/chunks/{FileArrayInput-DljGrRxA.es.js → FileArrayInput-cVGEFZqV.es.js} +2 -2
  20. package/dist/chunks/{FileArrayInput.vue_vue_type_script_setup_true_lang-C7UCpQqG.es.js → FileArrayInput.vue_vue_type_script_setup_true_lang-BEWmM_CM.es.js} +1 -1
  21. package/dist/chunks/{FileArrayInput.vue_vue_type_script_setup_true_lang-DtC-rygi.cjs.js → FileArrayInput.vue_vue_type_script_setup_true_lang-DcqfeQO5.cjs.js} +1 -1
  22. package/dist/chunks/{FileInput-A1qH_OLh.cjs.js → FileInput-D-0k_iz0.cjs.js} +1 -1
  23. package/dist/chunks/FileInput-LIRvJZP2.es.js +4 -0
  24. package/dist/chunks/GroupRenderer-C9p8bQHX.es.js +4 -0
  25. package/dist/chunks/{GroupRenderer-BL1UiQs5.cjs.js → GroupRenderer-hNIJHbIp.cjs.js} +1 -1
  26. package/dist/chunks/{ImageArrayInput-B3f9I0U1.cjs.js → ImageArrayInput-Du1Q-41Z.cjs.js} +1 -1
  27. package/dist/chunks/{ImageArrayInput-Bl0af1_X.es.js → ImageArrayInput-NUG8P1Ac.es.js} +2 -2
  28. package/dist/chunks/{ImageArrayInput.vue_vue_type_script_setup_true_lang-d88H9xj4.cjs.js → ImageArrayInput.vue_vue_type_script_setup_true_lang-CJOFV2o_.cjs.js} +1 -1
  29. package/dist/chunks/{ImageArrayInput.vue_vue_type_script_setup_true_lang-NqHOY8OF.es.js → ImageArrayInput.vue_vue_type_script_setup_true_lang-WuIapM3i.es.js} +1 -1
  30. package/dist/chunks/{ImageInput-KmSPSWhK.cjs.js → ImageInput-COEb7BD5.cjs.js} +1 -1
  31. package/dist/chunks/ImageInput-Dz_mUKCF.es.js +4 -0
  32. package/dist/chunks/NumberInput-CsyzfqAn.es.js +4 -0
  33. package/dist/chunks/{NumberInput-C47NQmuA.cjs.js → NumberInput-CvW50XFc.cjs.js} +1 -1
  34. package/dist/chunks/{ObjectInput-e0FX9gIv.cjs.js → ObjectInput-HW2Wjhk5.cjs.js} +1 -1
  35. package/dist/chunks/ObjectInput-Te_0mFFS.es.js +4 -0
  36. package/dist/chunks/{PasswordInput-CgeIq4tr.cjs.js → PasswordInput-Df5rrA0r.cjs.js} +1 -1
  37. package/dist/chunks/PasswordInput-xJx1guCb.es.js +4 -0
  38. package/dist/chunks/{RateInput-C7irYBQy.cjs.js → RateInput-DsHmxlza.cjs.js} +1 -1
  39. package/dist/chunks/RateInput-UcMY-PnU.es.js +4 -0
  40. package/dist/chunks/{TabelData-jJvzQD8f.es.js → TabelData-Do3nGlBe.es.js} +534 -533
  41. package/dist/chunks/TabelData-DqlPp5LB.cjs.js +1 -0
  42. package/dist/chunks/TagInput-BLyDR_aS.es.js +4 -0
  43. package/dist/chunks/{TagInput-DC9jPCR9.cjs.js → TagInput-xCVvF9VU.cjs.js} +1 -1
  44. package/dist/chunks/{TelInput-BTioT0Aa.cjs.js → TelInput-BJkfhAXe.cjs.js} +1 -1
  45. package/dist/chunks/TelInput-BmeWPMjY.es.js +4 -0
  46. package/dist/chunks/TextAreaInput-DpPRpX-5.es.js +4 -0
  47. package/dist/chunks/{TextAreaInput-BXlGB91c.cjs.js → TextAreaInput-qHwC8xk9.cjs.js} +1 -1
  48. package/dist/chunks/{TextAreaQuill-CJyF1I1R.es.js → TextAreaQuill-CwZ5FWRz.es.js} +39 -39
  49. package/dist/chunks/{TextAreaQuill-DKgdqbEG.cjs.js → TextAreaQuill-rwHzRCn6.cjs.js} +1 -1
  50. package/dist/chunks/{TextInput-CC8TbO0N.cjs.js → TextInput-DieQudfP.cjs.js} +1 -1
  51. package/dist/chunks/TextInput-e8-Tu3na.es.js +4 -0
  52. package/dist/chunks/{TimeInput-BvUbIEtA.cjs.js → TimeInput-AW3f-c8y.cjs.js} +1 -1
  53. package/dist/chunks/TimeInput-DBrqpniq.es.js +4 -0
  54. package/dist/chunks/ToggleInput-CDmLr0hh.es.js +4 -0
  55. package/dist/chunks/{ToggleInput-DfAKsRdZ.cjs.js → ToggleInput-PjdfJ_1T.cjs.js} +1 -1
  56. package/dist/chunks/{UrlInput-C8bIoQBb.cjs.js → UrlInput-JCbB7d5E.cjs.js} +1 -1
  57. package/dist/chunks/UrlInput-ThxoL471.es.js +4 -0
  58. package/dist/chunks/{resize-DsxsWx52.cjs.js → resize-CN1xkf2l.cjs.js} +1 -1
  59. package/dist/chunks/{resize-2N3sqejU.es.js → resize-DTJl7NMU.es.js} +1 -1
  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 +179 -135
  64. package/dist/style.css +1 -1
  65. package/dist/types/components/UI/Display/BaseLabel.vue.d.ts +1 -16
  66. package/dist/vue.cjs.js +1 -1
  67. package/dist/vue.es.js +6 -6
  68. package/package.json +1 -1
  69. package/dist/chunks/ArrayObject-DYnfWxW-.es.js +0 -4
  70. package/dist/chunks/ColorPicker-CqrPcGbi.es.js +0 -4
  71. package/dist/chunks/ComboboxComponent-BU-VQz2u.es.js +0 -4
  72. package/dist/chunks/CurrencyInput-DVlgxmiu.es.js +0 -4
  73. package/dist/chunks/DateInput-B1EpMWa0.es.js +0 -4
  74. package/dist/chunks/EmailInput-B0F3AHeq.es.js +0 -4
  75. package/dist/chunks/FileInput-CC5a2_o2.es.js +0 -4
  76. package/dist/chunks/GroupRenderer-Cj7o8pSh.es.js +0 -4
  77. package/dist/chunks/ImageInput-DL8tNIdV.es.js +0 -4
  78. package/dist/chunks/NumberInput-BOjP2XCy.es.js +0 -4
  79. package/dist/chunks/ObjectInput-DLkhG2Ha.es.js +0 -4
  80. package/dist/chunks/PasswordInput-CkF4phav.es.js +0 -4
  81. package/dist/chunks/RateInput-DYD5aMQX.es.js +0 -4
  82. package/dist/chunks/TabelData-DV56gH8Y.cjs.js +0 -1
  83. package/dist/chunks/TagInput-B6F5GleV.es.js +0 -4
  84. package/dist/chunks/TelInput-BwtzcLzw.es.js +0 -4
  85. package/dist/chunks/TextAreaInput-B-dcc-ch.es.js +0 -4
  86. package/dist/chunks/TextInput-BwgTx7Xt.es.js +0 -4
  87. package/dist/chunks/TimeInput-DsiHBSIo.es.js +0 -4
  88. package/dist/chunks/ToggleInput-mQ_mnG4E.es.js +0 -4
  89. package/dist/chunks/UrlInput-o1uJulwN.es.js +0 -4
@@ -1,15 +1,15 @@
1
- import { defineComponent as fe, createElementBlock as a, openBlock as d, withKeys as Xe, createElementVNode as s, normalizeClass as q, toDisplayString as m, mergeProps as Ee, renderSlot as it, createTextVNode as ye, ref as V, computed as X, inject as gt, createCommentVNode as F, createVNode as K, unref as l, Fragment as P, renderList as R, createBlock as be, normalizeStyle as Se, onMounted as ze, onUnmounted as ut, Transition as _e, withCtx as Ce, withModifiers as Ye, toRaw as He, watch as Me, nextTick as Oe, provide as ct, withDirectives as Ve, isRef as Fe, vModelText as jt, vModelCheckbox as qe } from "vue";
2
- import bt from "dompurify";
3
- import { ac as Le, z as et, M as $e, ab as ke, u as ft, K as Ne, L as ht, F as mt } from "./resize-2N3sqejU.es.js";
4
- import vt from "lodash.isequal";
1
+ import { defineComponent as fe, createElementBlock as a, openBlock as d, withKeys as Xe, createElementVNode as t, normalizeClass as G, toDisplayString as m, mergeProps as Ee, ref as V, computed as X, inject as it, createCommentVNode as F, createVNode as K, unref as l, Fragment as P, renderList as R, createBlock as be, normalizeStyle as Le, onMounted as ze, onUnmounted as gt, Transition as _e, withCtx as Ce, withModifiers as Ye, createTextVNode as pe, toRaw as He, watch as Me, nextTick as Oe, provide as ut, withDirectives as Ve, isRef as Fe, vModelText as ct, vModelCheckbox as Ge } from "vue";
2
+ import jt from "dompurify";
3
+ import { ac as Se, z as et, M as $e, ab as ye, u as bt, K as Ne, L as ft, F as ht } from "./resize-DTJl7NMU.es.js";
4
+ import mt from "lodash.isequal";
5
5
  import "zod";
6
- const yt = ["aria-labelledby"], kt = {
6
+ const vt = ["aria-labelledby"], yt = {
7
7
  id: "dialog-title",
8
8
  class: "jsgd-text-2xl jsgd-font-bold jsgd-text-slate-800 jsgd-mb-3 dark:jsgd-text-slate-100"
9
- }, xt = {
9
+ }, kt = {
10
10
  id: "dialog-desc",
11
11
  class: "jsgd-text-slate-500 jsgd-leading-relaxed jsgd-mb-10 dark:jsgd-text-slate-400"
12
- }, pt = { class: "jsgd-grid jsgd-grid-cols-2 jsgd-gap-4" }, wt = /* @__PURE__ */ fe({
12
+ }, xt = { class: "jsgd-grid jsgd-grid-cols-2 jsgd-gap-4" }, pt = /* @__PURE__ */ fe({
13
13
  __name: "WarningForm",
14
14
  props: {
15
15
  title: { default: "Warning Title" },
@@ -17,88 +17,86 @@ const yt = ["aria-labelledby"], kt = {
17
17
  isGreen: { type: Boolean, default: !1 }
18
18
  },
19
19
  emits: ["confirm", "close"],
20
- setup(e, { emit: u }) {
21
- const i = e, n = u;
22
- return (g, t) => (d(), a("div", {
20
+ setup(e, { emit: c }) {
21
+ const i = e, n = c;
22
+ return (g, s) => (d(), a("div", {
23
23
  class: "jsgd-fixed jsgd-inset-0 jsgd-z-36 jsgd-grid jsgd-place-items-center jsgd-p-4 jsgd-bg-slate-900/60 jsgd-backdrop-blur-sm jsgd-animate-[fadeIn_250ms_ease-out]",
24
- onKeydown: t[2] || (t[2] = Xe((y) => n("close"), ["esc"]))
24
+ onKeydown: s[2] || (s[2] = Xe((y) => n("close"), ["esc"]))
25
25
  }, [
26
- s("div", {
26
+ t("div", {
27
27
  class: "jsgd-relative jsgd-w-full jsgd-max-w-md jsgd-pt-16 jsgd-pb-8 jsgd-px-8 jsgd-bg-gradient-to-br jsgd-from-white jsgd-to-slate-50 jsgd-rounded-2xl jsgd-shadow-2xl jsgd-text-center jsgd-animate-[scaleIn_250ms_cubic-bezier(0.16,1,0.3,1)] jsgd-border-1 jsgd-border-solid jsgd-border-slate-200 dark:jsgd-from-slate-800 dark:jsgd-to-slate-900 dark:jsgd-border-slate-700",
28
28
  role: "dialog",
29
29
  "aria-modal": "true",
30
30
  "aria-labelledby": i.title
31
31
  }, [
32
- s("div", {
33
- class: q([
32
+ t("div", {
33
+ class: G([
34
34
  "jsgd-absolute jsgd-top-[-2.25rem] jsgd-left-1/2 -jsgd-translate-x-1/2 jsgd-w-[4.5rem] jsgd-h-[4.5rem] jsgd-rounded-full jsgd-grid jsgd-place-items-center jsgd-border-4 jsgd-border-solid jsgd-border-white jsgd-shadow-md jsgd-animate-[scaleIn_400ms_150ms_ease-out_backwards] dark:jsgd-border-slate-800",
35
35
  i.isGreen ? "jsgd-bg-green-100 dark:jsgd-bg-green-900/50" : "jsgd-bg-red-100 dark:jsgd-bg-red-900/50"
36
36
  ])
37
37
  }, [
38
- s("span", {
39
- class: q(["jsgd-w-9 jsgd-h-9", [
38
+ t("span", {
39
+ class: G(["jsgd-w-9 jsgd-h-9", [
40
40
  i.isGreen ? "jsgd-i-mdi-check-decagram" : "jsgd-i-mdi-alert-decagram",
41
41
  i.isGreen ? "jsgd-text-green-600 dark:jsgd-text-green-400" : "jsgd-text-red-600 dark:jsgd-text-red-400"
42
42
  ]])
43
43
  }, null, 2)
44
44
  ], 2),
45
- s("h2", kt, m(i.title), 1),
46
- s("p", xt, m(i.message), 1),
47
- s("div", pt, [
48
- s("button", {
49
- class: q([
45
+ t("h2", yt, m(i.title), 1),
46
+ t("p", kt, m(i.message), 1),
47
+ t("div", xt, [
48
+ t("button", {
49
+ class: G([
50
50
  "jsgd-w-full jsgd-py-3.5 jsgd-px-4 jsgd-rounded-lg jsgd-border-none jsgd-font-semibold jsgd-text-sm jsgd-cursor-pointer jsgd-transition-all jsgd-duration-300 jsgd-ease-[cubic-bezier(0.4,0,0.2,1)] jsgd-relative jsgd-overflow-hidden hover:-jsgd-translate-y-0.5 jsgd-text-white",
51
51
  i.isGreen ? "jsgd-bg-gradient-to-br jsgd-from-green-500 jsgd-to-emerald-600 jsgd-shadow-lg jsgd-shadow-green-500/20 hover:jsgd-shadow-xl hover:jsgd-shadow-green-500/30" : "jsgd-bg-gradient-to-br jsgd-from-red-500 jsgd-to-rose-600 jsgd-shadow-lg jsgd-shadow-red-500/20 hover:jsgd-shadow-xl hover:jsgd-shadow-red-500/30"
52
52
  ]),
53
- onClick: t[0] || (t[0] = (y) => n("confirm"))
53
+ onClick: s[0] || (s[0] = (y) => n("confirm"))
54
54
  }, " Ya ", 2),
55
- s("button", {
55
+ t("button", {
56
56
  class: "jsgd-w-full jsgd-py-3.5 jsgd-px-4 jsgd-rounded-lg jsgd-font-semibold jsgd-text-sm jsgd-cursor-pointer jsgd-transition-all jsgd-duration-300 jsgd-ease-[cubic-bezier(0.4,0,0.2,1)] jsgd-relative jsgd-overflow-hidden hover:-jsgd-translate-y-0.5 jsgd-bg-slate-200 jsgd-text-slate-700 jsgd-border-1 jsgd-border-solid jsgd-border-slate-300 hover:jsgd-bg-slate-300 dark:jsgd-bg-slate-700 dark:jsgd-text-slate-200 dark:jsgd-border-slate-600 dark:hover:jsgd-bg-slate-600",
57
- onClick: t[1] || (t[1] = (y) => n("close"))
57
+ onClick: s[1] || (s[1] = (y) => n("close"))
58
58
  }, " Tidak ")
59
59
  ])
60
- ], 8, yt)
60
+ ], 8, vt)
61
61
  ], 32));
62
62
  }
63
- }), Ze = /* @__PURE__ */ Le(wt, [["__scopeId", "data-v-d74c76a7"]]), _t = ["src", "alt"], Qe = /* @__PURE__ */ fe({
63
+ }), Ze = /* @__PURE__ */ Se(pt, [["__scopeId", "data-v-d74c76a7"]]), wt = ["src", "alt"], Qe = /* @__PURE__ */ fe({
64
64
  __name: "BaseImage",
65
65
  props: {
66
66
  src: {},
67
67
  alt: {}
68
68
  },
69
69
  setup(e) {
70
- return (u, i) => (d(), a("img", Ee({
70
+ return (c, i) => (d(), a("img", Ee({
71
71
  src: e.src,
72
72
  alt: e.alt,
73
73
  loading: "lazy",
74
74
  decoding: "async",
75
75
  class: "jsgd-object-cover"
76
- }, u.$attrs), null, 16, _t));
76
+ }, c.$attrs), null, 16, wt));
77
77
  }
78
- }), Ct = { class: "jsgd-block jsgd-mb-2 jsgd-cursor-default jsgd-transition-colors jsgd-duration-200 jsgd-text-slate-700 dark:jsgd-text-slate-300 jsgd-text-sm md:jsgd-text-base jsgd-font-medium hover:jsgd-animate-subtle-glow" }, E = /* @__PURE__ */ fe({
78
+ }), _t = { class: "jsgd-block jsgd-mb-2 jsgd-cursor-default jsgd-transition-colors jsgd-duration-200 jsgd-text-slate-700 dark:jsgd-text-slate-300 jsgd-text-sm md:jsgd-text-base jsgd-font-medium hover:jsgd-animate-subtle-glow" }, Ct = { class: "jsgd-font-bold" }, E = /* @__PURE__ */ fe({
79
79
  __name: "BaseLabel",
80
80
  props: {
81
81
  label: {}
82
82
  },
83
83
  setup(e) {
84
- return (u, i) => (d(), a("label", Ct, [
85
- it(u.$slots, "default", {}, () => [
86
- ye(m(e.label), 1)
87
- ])
84
+ return (c, i) => (d(), a("label", _t, [
85
+ t("h4", Ct, "⬜ " + m(e.label), 1)
88
86
  ]));
89
87
  }
90
88
  });
91
- function Ue(e = "id-ID", u = "Asia/Jakarta") {
92
- let i = e, n = u;
89
+ function Ue(e = "id-ID", c = "Asia/Jakarta") {
90
+ let i = e, n = c;
93
91
  try {
94
- typeof navigator < "u" && (i = navigator.language || e), n = Intl.DateTimeFormat().resolvedOptions().timeZone || u;
92
+ typeof navigator < "u" && (i = navigator.language || e), n = Intl.DateTimeFormat().resolvedOptions().timeZone || c;
95
93
  } catch {
96
94
  }
97
95
  return { locale: i, timeZone: n };
98
96
  }
99
- function We(e, u = "id-ID") {
97
+ function We(e, c = "id-ID") {
100
98
  const i = Intl.DateTimeFormat.supportedLocalesOf([e]);
101
- return i.length > 0 ? i[0] : u;
99
+ return i.length > 0 ? i[0] : c;
102
100
  }
103
101
  function Re(e) {
104
102
  return e instanceof Date && !isNaN(e.getTime());
@@ -106,10 +104,10 @@ function Re(e) {
106
104
  const Mt = (e) => {
107
105
  try {
108
106
  if (!e) return "-";
109
- const u = new Date(e);
110
- if (!Re(u)) return e;
107
+ const c = new Date(e);
108
+ if (!Re(c)) return e;
111
109
  const { locale: i, timeZone: n } = Ue();
112
- return u.toLocaleDateString(We(i), {
110
+ return c.toLocaleDateString(We(i), {
113
111
  weekday: "long",
114
112
  year: "numeric",
115
113
  month: "long",
@@ -122,10 +120,10 @@ const Mt = (e) => {
122
120
  }, Dt = (e) => {
123
121
  try {
124
122
  if (!e) return "-";
125
- const u = /* @__PURE__ */ new Date(`1970-01-01T${e}`);
126
- if (!Re(u)) return e;
123
+ const c = /* @__PURE__ */ new Date(`1970-01-01T${e}`);
124
+ if (!Re(c)) return e;
127
125
  const { locale: i, timeZone: n } = Ue();
128
- return u.toLocaleTimeString(We(i), {
126
+ return c.toLocaleTimeString(We(i), {
129
127
  hour: "2-digit",
130
128
  minute: "2-digit",
131
129
  timeZone: n
@@ -136,10 +134,10 @@ const Mt = (e) => {
136
134
  }, $t = (e) => {
137
135
  try {
138
136
  if (!e) return "-";
139
- const u = new Date(e);
140
- if (!Re(u)) return e;
137
+ const c = new Date(e);
138
+ if (!Re(c)) return e;
141
139
  const { locale: i, timeZone: n } = Ue();
142
- return u.toLocaleString(We(i), {
140
+ return c.toLocaleString(We(i), {
143
141
  weekday: "short",
144
142
  year: "numeric",
145
143
  month: "short",
@@ -151,13 +149,16 @@ const Mt = (e) => {
151
149
  } catch {
152
150
  return e;
153
151
  }
154
- }, At = ["id"], Tt = { key: 0 }, Ot = { class: "jsgd-text-slate-700 dark:jsgd-text-slate-200 jsgd-leading-relaxed" }, Ht = { key: 1 }, Kt = ["innerHTML"], Bt = {
152
+ }, At = ["id"], Tt = { key: 0 }, Ot = { class: "jsgd-text-slate-700 dark:jsgd-text-slate-200 jsgd-leading-relaxed" }, Ht = {
153
+ key: 1,
154
+ class: "quill-editor"
155
+ }, Kt = ["innerHTML"], Bt = {
155
156
  key: 1,
156
157
  class: "jsgd-text-slate-700 dark:jsgd-text-slate-200 jsgd-leading-relaxed jsgd-italic"
157
- }, St = { key: 2 }, Lt = ["innerHTML"], It = {
158
+ }, Lt = { key: 2 }, St = ["innerHTML"], It = {
158
159
  key: 1,
159
160
  class: "jsgd-text-slate-700 dark:jsgd-text-slate-200 jsgd-leading-relaxed jsgd-italic"
160
- }, Vt = { key: 3 }, Ft = { class: "jsgd-flex jsgd-items-center jsgd-gap-4" }, Nt = { class: "jsgd-text-slate-700 dark:jsgd-text-slate-200 jsgd-leading-relaxed jsgd-font-mono" }, Pt = { key: 4 }, Et = { class: "jsgd-text-slate-700 dark:jsgd-text-slate-200 jsgd-leading-relaxed" }, zt = { key: 5 }, Ut = { class: "jsgd-text-slate-700 dark:jsgd-text-slate-200 jsgd-leading-relaxed" }, Wt = { key: 6 }, Rt = { class: "jsgd-text-slate-700 dark:jsgd-text-slate-200 jsgd-leading-relaxed" }, Gt = { key: 7 }, qt = { key: 8 }, Zt = { key: 0 }, Qt = ["href"], Jt = {
161
+ }, Vt = { key: 3 }, Ft = { class: "jsgd-flex jsgd-items-center jsgd-gap-4" }, Nt = { class: "jsgd-text-slate-700 dark:jsgd-text-slate-200 jsgd-leading-relaxed jsgd-font-mono" }, Pt = { key: 4 }, Et = { class: "jsgd-text-slate-700 dark:jsgd-text-slate-200 jsgd-leading-relaxed" }, zt = { key: 5 }, Ut = { class: "jsgd-text-slate-700 dark:jsgd-text-slate-200 jsgd-leading-relaxed" }, Wt = { key: 6 }, Rt = { class: "jsgd-text-slate-700 dark:jsgd-text-slate-200 jsgd-leading-relaxed" }, qt = { key: 7 }, Gt = { key: 8 }, Zt = { key: 0 }, Qt = ["href"], Jt = {
161
162
  key: 1,
162
163
  class: "jsgd-flex jsgd-items-center jsgd-gap-2"
163
164
  }, Xt = { class: "jsgd-text-sm jsgd-text-slate-500 dark:jsgd-text-slate-400" }, Yt = ["href"], es = {
@@ -202,7 +203,7 @@ const Mt = (e) => {
202
203
  }, Bs = {
203
204
  key: 1,
204
205
  class: "jsgd-text-slate-700 dark:jsgd-text-slate-200 jsgd-leading-relaxed jsgd-italic"
205
- }, Ss = { key: 20 }, Ls = { class: "jsgd-flex jsgd-flex-wrap jsgd-gap-2" }, Is = ["title", "onClick"], Vs = {
206
+ }, Ls = { key: 20 }, Ss = { class: "jsgd-flex jsgd-flex-wrap jsgd-gap-2" }, Is = ["title", "onClick"], Vs = {
206
207
  key: 1,
207
208
  class: "jsgd-text-slate-700 dark:jsgd-text-slate-200 jsgd-leading-relaxed jsgd-italic"
208
209
  }, Fs = { key: 21 }, Ns = { class: "jsgd-text-slate-700 dark:jsgd-text-slate-200 jsgd-leading-relaxed" }, Ps = { key: 22 }, Es = {
@@ -226,17 +227,17 @@ const Mt = (e) => {
226
227
  lang: {}
227
228
  },
228
229
  emits: ["image-click"],
229
- setup(e, { emit: u }) {
230
- const i = V(!1), n = e, g = u, t = X(() => n.formData?.[n.fieldKey]), y = X(() => {
231
- const H = t.value;
230
+ setup(e, { emit: c }) {
231
+ const i = V(!1), n = e, g = c, s = X(() => n.formData?.[n.fieldKey]), y = X(() => {
232
+ const H = s.value;
232
233
  return n.valueNullView && n.field.type !== "optionGroupSchema" ? !0 : $(H);
233
- }), f = gt("TableComponents", {
234
+ }), f = it("TableComponents", {
234
235
  labels: V(et[n.lang ?? "en"])
235
236
  }), _ = (H) => {
236
237
  if (typeof H != "number") return H;
237
238
  const z = n.lang === "id" ? "id-ID" : "en-US", A = n.lang === "id" ? "IDR" : "USD";
238
239
  return console.log(n.lang, A), new Intl.NumberFormat(z, { style: "currency", currency: A }).format(H);
239
- }, j = f.labels, $ = (H) => H != null && H !== "" && !(Array.isArray(H) && H.length === 0), c = X(() => {
240
+ }, j = f.labels, $ = (H) => H != null && H !== "" && !(Array.isArray(H) && H.length === 0), u = X(() => {
240
241
  let H = n.field.label || n.fieldKey || "";
241
242
  return n.field.type === "optionGroupSchema" ? n.field.label ?? "" : H;
242
243
  }), b = (H) => H instanceof File, N = (H) => URL.createObjectURL(H), Z = (H) => {
@@ -248,27 +249,27 @@ const Mt = (e) => {
248
249
  id: e.fieldKey
249
250
  }, [
250
251
  e.field.type === "text" ? (d(), a("div", Tt, [
251
- K(l(E), { label: c.value }, null, 8, ["label"]),
252
- s("p", Ot, m(t.value || "-"), 1)
252
+ K(l(E), { label: u.value }, null, 8, ["label"]),
253
+ t("p", Ot, m(s.value || "-"), 1)
253
254
  ])) : e.field.type === "quillEditor" ? (d(), a("div", Ht, [
254
- K(l(E), { label: c.value }, null, 8, ["label"]),
255
- t.value ? (d(), a("div", {
255
+ K(l(E), { label: u.value }, null, 8, ["label"]),
256
+ s.value ? (d(), a("article", {
256
257
  key: 0,
257
- class: "prose-content",
258
- innerHTML: t.value
258
+ class: "prose jsgd-max-w-none prose-content dark:prose-invert",
259
+ innerHTML: s.value
259
260
  }, null, 8, Kt)) : (d(), a("p", Bt, " - "))
260
- ])) : e.field.type === "textArea" ? (d(), a("div", St, [
261
- K(l(E), { label: c.value }, null, 8, ["label"]),
262
- t.value ? (d(), a("div", {
261
+ ])) : e.field.type === "textArea" ? (d(), a("div", Lt, [
262
+ K(l(E), { label: u.value }, null, 8, ["label"]),
263
+ s.value ? (d(), a("div", {
263
264
  key: 0,
264
265
  class: "prose-content",
265
- innerHTML: t.value
266
- }, null, 8, Lt)) : (d(), a("p", It, " - "))
266
+ innerHTML: s.value
267
+ }, null, 8, St)) : (d(), a("p", It, " - "))
267
268
  ])) : e.field.type === "password" ? (d(), a("div", Vt, [
268
- K(l(E), { label: c.value }, null, 8, ["label"]),
269
- s("div", Ft, [
270
- s("p", Nt, m(i.value ? t.value ?? "-" : t.value ? "•".repeat(String(t.value).length) : "-"), 1),
271
- t.value ? (d(), a("button", {
269
+ K(l(E), { label: u.value }, null, 8, ["label"]),
270
+ t("div", Ft, [
271
+ t("p", Nt, m(i.value ? s.value ?? "-" : s.value ? "•".repeat(String(s.value).length) : "-"), 1),
272
+ s.value ? (d(), a("button", {
272
273
  key: 0,
273
274
  type: "button",
274
275
  class: "jsgd-text-sm jsgd-text-blue-600 jsgd-bg-transparent jsgd-border-none jsgd-cursor-pointer jsgd-transition-colors hover:jsgd-text-blue-500 dark:jsgd-text-blue-400 dark:hover:jsgd-text-blue-300",
@@ -276,36 +277,36 @@ const Mt = (e) => {
276
277
  }, m(i.value ? "Hide" : "Show"), 1)) : F("", !0)
277
278
  ])
278
279
  ])) : e.field.type === "date" ? (d(), a("div", Pt, [
279
- K(l(E), { label: c.value }, null, 8, ["label"]),
280
- s("p", Et, m(t.value ? l(Mt)(t.value) : "-"), 1)
280
+ K(l(E), { label: u.value }, null, 8, ["label"]),
281
+ t("p", Et, m(s.value ? l(Mt)(s.value) : "-"), 1)
281
282
  ])) : e.field.type === "time" ? (d(), a("div", zt, [
282
- K(l(E), { label: c.value }, null, 8, ["label"]),
283
- s("p", Ut, m(t.value ? l(Dt)(t.value) : "-"), 1)
283
+ K(l(E), { label: u.value }, null, 8, ["label"]),
284
+ t("p", Ut, m(s.value ? l(Dt)(s.value) : "-"), 1)
284
285
  ])) : e.field.type === "dateTime" ? (d(), a("div", Wt, [
285
- K(l(E), { label: c.value }, null, 8, ["label"]),
286
- s("p", Rt, m(t.value ? l($t)(t.value) : "-"), 1)
287
- ])) : e.field.type === "toggle" ? (d(), a("div", Gt, [
288
- K(l(E), { label: c.value }, null, 8, ["label"]),
289
- s("p", {
290
- class: q([
286
+ K(l(E), { label: u.value }, null, 8, ["label"]),
287
+ t("p", Rt, m(s.value ? l($t)(s.value) : "-"), 1)
288
+ ])) : e.field.type === "toggle" ? (d(), a("div", qt, [
289
+ K(l(E), { label: u.value }, null, 8, ["label"]),
290
+ t("p", {
291
+ class: G([
291
292
  "jsgd-inline-flex jsgd-items-center jsgd-gap-2 jsgd-px-3 jsgd-py-1 jsgd-font-medium jsgd-rounded-full",
292
- t.value ? "jsgd-bg-green-100 jsgd-text-green-800 dark:jsgd-bg-green-900 dark:jsgd-text-green-200" : "jsgd-bg-red-100 jsgd-text-red-800 dark:jsgd-bg-red-900 dark:jsgd-text-red-200"
293
+ s.value ? "jsgd-bg-green-100 jsgd-text-green-800 dark:jsgd-bg-green-900 dark:jsgd-text-green-200" : "jsgd-bg-red-100 jsgd-text-red-800 dark:jsgd-bg-red-900 dark:jsgd-text-red-200"
293
294
  ])
294
- }, m(t.value ? l(j).btn.toogle.active : l(j).btn.toogle.inactive) + " ⦿ ", 3)
295
- ])) : e.field.type === "file" ? (d(), a("div", qt, [
296
- K(l(E), { label: c.value }, null, 8, ["label"]),
297
- t.value ? (d(), a("div", Zt, [
298
- typeof t.value == "string" ? (d(), a("a", {
295
+ }, m(s.value ? l(j).btn.toogle.active : l(j).btn.toogle.inactive) + " ⦿ ", 3)
296
+ ])) : e.field.type === "file" ? (d(), a("div", Gt, [
297
+ K(l(E), { label: u.value }, null, 8, ["label"]),
298
+ s.value ? (d(), a("div", Zt, [
299
+ typeof s.value == "string" ? (d(), a("a", {
299
300
  key: 0,
300
- href: t.value,
301
+ href: s.value,
301
302
  target: "_blank",
302
303
  rel: "noopener noreferrer",
303
304
  class: "jsgd-font-medium jsgd-text-blue-600 jsgd-underline jsgd-underline-offset-2 jsgd-transition-colors hover:jsgd-text-blue-500 dark:jsgd-text-blue-400 dark:hover:jsgd-text-blue-300"
304
- }, m(t.value.split("/").pop() || t.value), 9, Qt)) : b(t.value) ? (d(), a("div", Jt, [
305
- s("span", null, m(t.value.name), 1),
306
- s("span", Xt, "(" + m((t.value.size / 1024).toFixed(1)) + " KB)", 1),
307
- s("a", {
308
- href: N(t.value),
305
+ }, m(s.value.split("/").pop() || s.value), 9, Qt)) : b(s.value) ? (d(), a("div", Jt, [
306
+ t("span", null, m(s.value.name), 1),
307
+ t("span", Xt, "(" + m((s.value.size / 1024).toFixed(1)) + " KB)", 1),
308
+ t("a", {
309
+ href: N(s.value),
309
310
  target: "_blank",
310
311
  rel: "noopener noreferrer",
311
312
  class: "jsgd-font-medium jsgd-text-blue-600 jsgd-underline jsgd-underline-offset-2 jsgd-transition-colors hover:jsgd-text-blue-500 dark:jsgd-text-blue-400 dark:hover:jsgd-text-blue-300"
@@ -313,9 +314,9 @@ const Mt = (e) => {
313
314
  ])) : F("", !0)
314
315
  ])) : (d(), a("div", es, " - "))
315
316
  ])) : e.field.type === "fileArray" ? (d(), a("div", ts, [
316
- K(l(E), { label: c.value }, null, 8, ["label"]),
317
- Array.isArray(t.value) && t.value.length ? (d(), a("div", ss, [
318
- (d(!0), a(P, null, R(t.value, (A, v) => (d(), a("div", { key: v }, [
317
+ K(l(E), { label: u.value }, null, 8, ["label"]),
318
+ Array.isArray(s.value) && s.value.length ? (d(), a("div", ss, [
319
+ (d(!0), a(P, null, R(s.value, (A, v) => (d(), a("div", { key: v }, [
319
320
  typeof A == "string" ? (d(), a("a", {
320
321
  key: 0,
321
322
  href: A,
@@ -323,9 +324,9 @@ const Mt = (e) => {
323
324
  rel: "noopener noreferrer",
324
325
  class: "jsgd-font-medium jsgd-text-blue-600 jsgd-underline jsgd-underline-offset-2 jsgd-transition-colors hover:jsgd-text-blue-500 dark:jsgd-text-blue-400 dark:hover:jsgd-text-blue-300"
325
326
  }, m(A.split("/").pop() || A), 9, ds)) : b(A) ? (d(), a("div", as, [
326
- s("span", null, m(A.name), 1),
327
- s("span", ls, "(" + m((A.size / 1024).toFixed(1)) + " KB)", 1),
328
- s("a", {
327
+ t("span", null, m(A.name), 1),
328
+ t("span", ls, "(" + m((A.size / 1024).toFixed(1)) + " KB)", 1),
329
+ t("a", {
329
330
  href: N(A),
330
331
  target: "_blank",
331
332
  rel: "noopener noreferrer",
@@ -335,64 +336,64 @@ const Mt = (e) => {
335
336
  ]))), 128))
336
337
  ])) : (d(), a("div", os, " - "))
337
338
  ])) : e.field.type === "number" ? (d(), a("div", rs, [
338
- K(l(E), { label: c.value }, null, 8, ["label"]),
339
- s("p", is, m(t.value ?? "-"), 1)
339
+ K(l(E), { label: u.value }, null, 8, ["label"]),
340
+ t("p", is, m(s.value ?? "-"), 1)
340
341
  ])) : e.field.type === "currency" ? (d(), a("div", gs, [
341
- K(l(E), { label: c.value }, null, 8, ["label"]),
342
- s("p", us, m(t.value !== null && t.value !== void 0 ? _(t.value) : "-"), 1)
342
+ K(l(E), { label: u.value }, null, 8, ["label"]),
343
+ t("p", us, m(s.value !== null && s.value !== void 0 ? _(s.value) : "-"), 1)
343
344
  ])) : e.field.type === "rate" ? (d(), a("div", cs, [
344
- K(l(E), { label: c.value }, null, 8, ["label"]),
345
- t.value > 0 ? (d(), a("div", js, [
346
- (d(), a(P, null, R(5, (A) => s("svg", {
345
+ K(l(E), { label: u.value }, null, 8, ["label"]),
346
+ s.value > 0 ? (d(), a("div", js, [
347
+ (d(), a(P, null, R(5, (A) => t("svg", {
347
348
  key: A,
348
349
  width: "20",
349
350
  height: "20",
350
351
  viewBox: "0 0 24 24",
351
- class: q(
352
- A <= t.value ? "jsgd-text-amber-400" : "jsgd-text-slate-300 dark:jsgd-text-slate-600"
352
+ class: G(
353
+ A <= s.value ? "jsgd-text-amber-400" : "jsgd-text-slate-300 dark:jsgd-text-slate-600"
353
354
  )
354
355
  }, [...z[5] || (z[5] = [
355
- s("path", {
356
+ t("path", {
356
357
  fill: "currentColor",
357
358
  d: "M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"
358
359
  }, null, -1)
359
360
  ])], 2)), 64)),
360
- s("span", bs, "(" + m(t.value) + " / 5)", 1)
361
+ t("span", bs, "(" + m(s.value) + " / 5)", 1)
361
362
  ])) : (d(), a("p", fs, " - "))
362
363
  ])) : e.field.type === "email" ? (d(), a("div", hs, [
363
- K(l(E), { label: c.value }, null, 8, ["label"]),
364
- s("p", ms, m(t.value ?? "-"), 1)
364
+ K(l(E), { label: u.value }, null, 8, ["label"]),
365
+ t("p", ms, m(s.value ?? "-"), 1)
365
366
  ])) : e.field.type === "url" ? (d(), a("div", vs, [
366
- K(l(E), { label: c.value }, null, 8, ["label"]),
367
- s("a", {
368
- href: t.value,
367
+ K(l(E), { label: u.value }, null, 8, ["label"]),
368
+ t("a", {
369
+ href: s.value,
369
370
  target: "_blank",
370
371
  rel: "noopener noreferrer",
371
372
  class: "jsgd-font-medium jsgd-text-blue-600 jsgd-underline jsgd-underline-offset-2 jsgd-transition-colors hover:jsgd-text-blue-500 dark:jsgd-text-blue-400 dark:hover:jsgd-text-blue-300"
372
- }, m(t.value ?? "-"), 9, ys)
373
+ }, m(s.value ?? "-"), 9, ys)
373
374
  ])) : e.field.type === "tel" ? (d(), a("div", ks, [
374
- K(l(E), { label: c.value }, null, 8, ["label"]),
375
- t.value ? (d(), a("a", {
375
+ K(l(E), { label: u.value }, null, 8, ["label"]),
376
+ s.value ? (d(), a("a", {
376
377
  key: 0,
377
- href: `tel:${t.value}`,
378
+ href: `tel:${s.value}`,
378
379
  class: "jsgd-font-medium jsgd-text-blue-600 jsgd-underline jsgd-underline-offset-2 jsgd-transition-colors hover:jsgd-text-blue-500 dark:jsgd-text-blue-400 dark:hover:jsgd-text-blue-300"
379
- }, m(t.value), 9, xs)) : (d(), a("p", ps, " - "))
380
+ }, m(s.value), 9, xs)) : (d(), a("p", ps, " - "))
380
381
  ])) : e.field.type === "tag" ? (d(), a("div", ws, [
381
- K(l(E), { label: c.value }, null, 8, ["label"]),
382
- Array.isArray(t.value) && t.value.length ? (d(), a("div", _s, [
383
- (d(!0), a(P, null, R(t.value, (A, v) => (d(), a("span", {
382
+ K(l(E), { label: u.value }, null, 8, ["label"]),
383
+ Array.isArray(s.value) && s.value.length ? (d(), a("div", _s, [
384
+ (d(!0), a(P, null, R(s.value, (A, v) => (d(), a("span", {
384
385
  key: v,
385
386
  class: "jsgd-inline-block jsgd-px-3 jsgd-py-1 jsgd-text-xs jsgd-font-medium jsgd-text-blue-800 jsgd-bg-blue-100 jsgd-rounded-full dark:jsgd-bg-blue-900 dark:jsgd-text-blue-300"
386
387
  }, m(A), 1))), 128))
387
388
  ])) : (d(), a("p", Cs, " - "))
388
389
  ])) : e.field.type === "object" ? (d(), a("div", Ms, [
389
- K(l(E), { label: c.value }, null, 8, ["label"]),
390
- t.value && typeof t.value == "object" && Object.keys(t.value).length ? (d(), a("div", Ds, [
390
+ K(l(E), { label: u.value }, null, 8, ["label"]),
391
+ s.value && typeof s.value == "object" && Object.keys(s.value).length ? (d(), a("div", Ds, [
391
392
  (d(!0), a(P, null, R(e.field.schema, (A, v) => (d(), be(l(Ke), {
392
393
  key: v,
393
394
  field: A,
394
395
  "field-key": v,
395
- "form-data": t.value,
396
+ "form-data": s.value,
396
397
  "value-null-view": e.valueNullView,
397
398
  "optional-text": e.optionalText,
398
399
  "required-text": e.requiredText,
@@ -400,19 +401,19 @@ const Mt = (e) => {
400
401
  }, null, 8, ["field", "field-key", "form-data", "value-null-view", "optional-text", "required-text"]))), 128))
401
402
  ])) : (d(), a("div", $s, " - "))
402
403
  ])) : e.field.type === "image" ? (d(), a("div", As, [
403
- K(l(E), { label: c.value }, null, 8, ["label"]),
404
- t.value ? (d(), a("div", Ts, [
404
+ K(l(E), { label: u.value }, null, 8, ["label"]),
405
+ s.value ? (d(), a("div", Ts, [
405
406
  K(l(Qe), {
406
- src: t.value,
407
+ src: s.value,
407
408
  alt: "Image",
408
409
  class: "jsgd-block jsgd-rounded-md jsgd-shadow-md jsgd-border jsgd-border-slate-200 jsgd-cursor-pointer jsgd-transition-all hover:jsgd-scale-105 hover:jsgd-shadow-lg jsgd-w-full jsgd-max-w-48 jsgd-aspect-video jsgd-object-contain dark:jsgd-border-slate-700",
409
- onClick: z[2] || (z[2] = (A) => g("image-click", t.value))
410
+ onClick: z[2] || (z[2] = (A) => g("image-click", s.value))
410
411
  }, null, 8, ["src"])
411
412
  ])) : (d(), a("div", Os, " - "))
412
413
  ])) : e.field.type === "imageArray" ? (d(), a("div", Hs, [
413
- K(l(E), { label: c.value }, null, 8, ["label"]),
414
- Array.isArray(t.value) && t.value.length ? (d(), a("div", Ks, [
415
- (d(!0), a(P, null, R(t.value, (A, v) => (d(), a("div", { key: v }, [
414
+ K(l(E), { label: u.value }, null, 8, ["label"]),
415
+ Array.isArray(s.value) && s.value.length ? (d(), a("div", Ks, [
416
+ (d(!0), a(P, null, R(s.value, (A, v) => (d(), a("div", { key: v }, [
416
417
  K(l(Qe), {
417
418
  src: A,
418
419
  alt: `Image ${v + 1}`,
@@ -421,47 +422,47 @@ const Mt = (e) => {
421
422
  }, null, 8, ["src", "alt", "onClick"])
422
423
  ]))), 128))
423
424
  ])) : (d(), a("div", Bs, " - "))
424
- ])) : e.field.type === "color" ? (d(), a("div", Ss, [
425
- K(l(E), { label: c.value }, null, 8, ["label"]),
426
- s("div", Ls, [
427
- Array.isArray(t.value) && t.value.length ? (d(!0), a(P, { key: 0 }, R(t.value, (A, v) => (d(), a("div", {
425
+ ])) : e.field.type === "color" ? (d(), a("div", Ls, [
426
+ K(l(E), { label: u.value }, null, 8, ["label"]),
427
+ t("div", Ss, [
428
+ Array.isArray(s.value) && s.value.length ? (d(!0), a(P, { key: 0 }, R(s.value, (A, v) => (d(), a("div", {
428
429
  key: v,
429
430
  class: "jsgd-w-8 jsgd-h-8 jsgd-rounded-full jsgd-border-2 jsgd-border-white jsgd-shadow-[0_0_0_1px] jsgd-shadow-slate-300 jsgd-cursor-pointer jsgd-transition-transform hover:jsgd-scale-110 dark:jsgd-border-slate-800 dark:jsgd-shadow-slate-600",
430
- style: Se({ backgroundColor: A }),
431
+ style: Le({ backgroundColor: A }),
431
432
  title: A,
432
433
  onClick: (x) => Z(A)
433
434
  }, null, 12, Is))), 128)) : (d(), a("div", Vs, " - "))
434
435
  ])
435
436
  ])) : e.field.type === "select" ? (d(), a("div", Fs, [
436
- K(l(E), { label: c.value }, null, 8, ["label"]),
437
- s("p", Ns, m(t.value || "-"), 1)
437
+ K(l(E), { label: u.value }, null, 8, ["label"]),
438
+ t("p", Ns, m(s.value || "-"), 1)
438
439
  ])) : e.field.type === "arrayObject" ? (d(), a("div", Ps, [
439
- K(l(E), { label: c.value }, null, 8, ["label"]),
440
- Array.isArray(t.value) && t.value.length ? (d(), a("div", Es, [
441
- (d(!0), a(P, null, R(t.value, (A, v) => (d(), a("div", {
440
+ K(l(E), { label: u.value }, null, 8, ["label"]),
441
+ Array.isArray(s.value) && s.value.length ? (d(), a("div", Es, [
442
+ (d(!0), a(P, null, R(s.value, (A, v) => (d(), a("div", {
442
443
  key: v,
443
444
  class: "jsgd-p-4 jsgd-border jsgd-border-slate-200 jsgd-rounded-md jsgd-bg-slate-50 jsgd-shadow-inner dark:jsgd-border-slate-700 dark:jsgd-bg-slate-800/50"
444
445
  }, [
445
- (d(!0), a(P, null, R(e.field.schema, (x, S) => (d(), be(l(Ke), {
446
- key: S,
446
+ (d(!0), a(P, null, R(e.field.schema, (x, L) => (d(), be(l(Ke), {
447
+ key: L,
447
448
  field: x,
448
- "field-key": S,
449
+ "field-key": L,
449
450
  "form-data": A,
450
451
  "value-null-view": e.valueNullView,
451
452
  "optional-text": e.optionalText,
452
453
  "required-text": e.requiredText,
453
- onImageClick: z[3] || (z[3] = (L) => g("image-click", L))
454
+ onImageClick: z[3] || (z[3] = (S) => g("image-click", S))
454
455
  }, null, 8, ["field", "field-key", "form-data", "value-null-view", "optional-text", "required-text"]))), 128))
455
456
  ]))), 128))
456
457
  ])) : (d(), a("div", zs, " - "))
457
458
  ])) : F("", !0)
458
459
  ], 8, At)) : e.field.type === "optionGroupSchema" ? (d(), a("div", Us, [
459
- e.formData[e.fieldKey] || c.value ? (d(), be(l(E), {
460
+ e.formData[e.fieldKey] || u.value ? (d(), be(l(E), {
460
461
  key: 0,
461
- label: e.formData[e.fieldKey] ? c.value + ":" + (e.formData[e.fieldKey] ?? "") : c.value,
462
+ label: e.formData[e.fieldKey] ? u.value + ":" + (e.formData[e.fieldKey] ?? "") : u.value,
462
463
  class: "!jsgd-text-lg !jsgd-font-semibold !jsgd-text-slate-900 dark:!jsgd-text-slate-100 !jsgd-border-l-4 !jsgd-border-slate-400 !jsgd-pl-3 dark:!jsgd-border-slate-600"
463
464
  }, null, 8, ["label"])) : F("", !0),
464
- s("div", Ws, [
465
+ t("div", Ws, [
465
466
  (d(!0), a(P, null, R(e.field.options, (A, v) => (d(), a("div", {
466
467
  key: v,
467
468
  class: "jsgd-p-4 jsgd-border jsgd-border-slate-200 jsgd-rounded-md jsgd-bg-slate-50 jsgd-shadow-inner dark:jsgd-border-slate-700 dark:jsgd-bg-slate-800/50"
@@ -470,22 +471,22 @@ const Mt = (e) => {
470
471
  label: v,
471
472
  class: "option-group-item-label"
472
473
  }, null, 8, ["label"]),
473
- z[6] || (z[6] = s("hr", { class: "option-group-divider" }, null, -1)),
474
- (d(!0), a(P, null, R(A, (x, S) => (d(), be(l(Ke), {
475
- key: S,
474
+ z[6] || (z[6] = t("hr", { class: "option-group-divider" }, null, -1)),
475
+ (d(!0), a(P, null, R(A, (x, L) => (d(), be(l(Ke), {
476
+ key: L,
476
477
  field: x,
477
- "field-key": S,
478
+ "field-key": L,
478
479
  "form-data": e.formData,
479
480
  "value-null-view": e.valueNullView,
480
481
  "optional-text": e.optionalText,
481
482
  "required-text": e.requiredText,
482
- onImageClick: z[4] || (z[4] = (L) => g("image-click", L))
483
+ onImageClick: z[4] || (z[4] = (S) => g("image-click", S))
483
484
  }, null, 8, ["field", "field-key", "form-data", "value-null-view", "optional-text", "required-text"]))), 128))
484
485
  ]))), 128))
485
486
  ])
486
487
  ])) : F("", !0);
487
488
  }
488
- }), Ke = /* @__PURE__ */ Le(Rs, [["__scopeId", "data-v-b47627d8"]]), Gs = ["src", "alt"], el = /* @__PURE__ */ fe({
489
+ }), Ke = /* @__PURE__ */ Se(Rs, [["__scopeId", "data-v-b0f6428d"]]), qs = ["src", "alt"], el = /* @__PURE__ */ fe({
489
490
  __name: "ImagePreview",
490
491
  props: {
491
492
  imageUrl: {},
@@ -494,23 +495,23 @@ const Mt = (e) => {
494
495
  alt: { default: "" }
495
496
  },
496
497
  setup(e) {
497
- const u = e, i = V(null), n = V(!0), g = (y) => new Promise((f, _) => {
498
+ const c = e, i = V(null), n = V(!0), g = (y) => new Promise((f, _) => {
498
499
  const j = new Image();
499
500
  j.crossOrigin = "anonymous", j.onload = () => f(j), j.onerror = ($) => _($), j.src = y;
500
- }), t = (y, f) => {
501
+ }), s = (y, f) => {
501
502
  const _ = document.createElement("canvas"), j = _.getContext("2d");
502
503
  if (!j)
503
504
  return console.error("Gagal mendapatkan konteks canvas 2D."), y.src;
504
505
  _.width = y.width, _.height = y.height, j.drawImage(y, 0, 0);
505
- const $ = y.width / u.watermarkSize, c = f.height / f.width * $, b = y.width - $ - 10, N = y.height - c - 10;
506
- return j.globalAlpha = 0.8, j.drawImage(f, b, N, $, c), j.globalAlpha = 1, _.toDataURL("image/png");
506
+ const $ = y.width / c.watermarkSize, u = f.height / f.width * $, b = y.width - $ - 10, N = y.height - u - 10;
507
+ return j.globalAlpha = 0.8, j.drawImage(f, b, N, $, u), j.globalAlpha = 1, _.toDataURL("image/png");
507
508
  };
508
509
  return ze(async () => {
509
510
  try {
510
- const y = await g(u.imageUrl), f = await g(u.watermarkUrl);
511
- i.value = t(y, f);
511
+ const y = await g(c.imageUrl), f = await g(c.watermarkUrl);
512
+ i.value = s(y, f);
512
513
  } catch (y) {
513
- console.error("Gagal menerapkan watermark, menampilkan gambar asli:", y), i.value = u.imageUrl;
514
+ console.error("Gagal menerapkan watermark, menampilkan gambar asli:", y), i.value = c.imageUrl;
514
515
  } finally {
515
516
  n.value = !1;
516
517
  }
@@ -523,21 +524,21 @@ const Mt = (e) => {
523
524
  key: 1,
524
525
  loading: "lazy",
525
526
  src: i.value,
526
- alt: u.alt
527
- }, y.$attrs), null, 16, Gs)) : F("", !0)
527
+ alt: c.alt
528
+ }, y.$attrs), null, 16, qs)) : F("", !0)
528
529
  ], 64));
529
530
  }
530
- }), qs = ["innerHTML"], tl = /* @__PURE__ */ fe({
531
+ }), Gs = ["innerHTML"], tl = /* @__PURE__ */ fe({
531
532
  __name: "SafeHtml",
532
533
  props: {
533
534
  html: {}
534
535
  },
535
536
  setup(e) {
536
- const u = e, i = X(() => bt.sanitize(u.html));
537
+ const c = e, i = X(() => jt.sanitize(c.html));
537
538
  return (n, g) => e.html ? (d(), a("div", {
538
539
  key: 0,
539
540
  innerHTML: i.value
540
- }, null, 8, qs)) : F("", !0);
541
+ }, null, 8, Gs)) : F("", !0);
541
542
  }
542
543
  }), Zs = { class: "modal-header" }, Qs = { class: "header-content" }, Js = { class: "title-section" }, Xs = { class: "modal-title" }, Ys = { class: "modal-body" }, ed = { class: "form-fields-container" }, td = { class: "modal-footer" }, sd = { class: "footer-buttons" }, dd = { class: "btn-content" }, ad = ["src"], ld = /* @__PURE__ */ fe({
543
544
  __name: "ModalDetailData",
@@ -552,15 +553,15 @@ const Mt = (e) => {
552
553
  lang: {}
553
554
  },
554
555
  emits: ["close"],
555
- setup(e, { emit: u }) {
556
- const i = u, n = V(!1), g = V(""), t = () => i("close"), y = (j) => {
556
+ setup(e, { emit: c }) {
557
+ const i = c, n = V(!1), g = V(""), s = () => i("close"), y = (j) => {
557
558
  g.value = j, n.value = !0;
558
559
  }, f = V(!1), _ = () => {
559
560
  f.value = window.innerWidth < 768;
560
561
  };
561
562
  return ze(() => {
562
563
  _(), window.addEventListener("resize", _);
563
- }), ut(() => {
564
+ }), gt(() => {
564
565
  window.removeEventListener("resize", _);
565
566
  }), (j, $) => (d(), a(P, null, [
566
567
  K(_e, {
@@ -568,30 +569,30 @@ const Mt = (e) => {
568
569
  appear: ""
569
570
  }, {
570
571
  default: Ce(() => [
571
- s("div", {
572
+ t("div", {
572
573
  class: "modal-overlay",
573
- onClick: Ye(t, ["self"])
574
+ onClick: Ye(s, ["self"])
574
575
  }, [
575
576
  K(_e, {
576
577
  name: "modal-container",
577
578
  appear: ""
578
579
  }, {
579
580
  default: Ce(() => [
580
- s("div", {
581
- class: q(["modal-container", { "mobile-view": f.value }])
581
+ t("div", {
582
+ class: G(["modal-container", { "mobile-view": f.value }])
582
583
  }, [
583
- s("div", Zs, [
584
- s("div", Qs, [
585
- s("div", Js, [
586
- $[1] || ($[1] = s("div", { class: "icon-container" }, [
587
- s("svg", {
584
+ t("div", Zs, [
585
+ t("div", Qs, [
586
+ t("div", Js, [
587
+ $[1] || ($[1] = t("div", { class: "icon-container" }, [
588
+ t("svg", {
588
589
  width: "24",
589
590
  height: "24",
590
591
  viewBox: "0 0 24 24",
591
592
  fill: "none",
592
593
  xmlns: "http://www.w3.org/2000/svg"
593
594
  }, [
594
- s("path", {
595
+ t("path", {
595
596
  d: "M10 3H6C4.89543 3 4 3.89543 4 5V19C4 20.1046 4.89543 21 6 21H18C19.1046 21 20 20.1046 20 19V5C20 3.89543 19.1046 3 18 3H14M10 3V6C10 6.55228 10.4477 7 11 7H13C13.5523 7 14 6.55228 14 6V3M10 3V1M14 3V1M9 11H15M9 15H15",
596
597
  stroke: "currentColor",
597
598
  "stroke-width": "2",
@@ -600,21 +601,21 @@ const Mt = (e) => {
600
601
  })
601
602
  ])
602
603
  ], -1)),
603
- s("h2", Xs, m(e.title ?? "Detail Data"), 1)
604
+ t("h2", Xs, m(e.title ?? "Detail Data"), 1)
604
605
  ]),
605
- s("button", {
606
+ t("button", {
606
607
  class: "close-btn",
607
- onClick: t,
608
+ onClick: s,
608
609
  "aria-label": "Close"
609
610
  }, [...$[2] || ($[2] = [
610
- s("svg", {
611
+ t("svg", {
611
612
  width: "20",
612
613
  height: "20",
613
614
  viewBox: "0 0 24 24",
614
615
  fill: "none",
615
616
  xmlns: "http://www.w3.org/2000/svg"
616
617
  }, [
617
- s("path", {
618
+ t("path", {
618
619
  d: "M18 6L6 18M6 6L18 18",
619
620
  stroke: "currentColor",
620
621
  "stroke-width": "2",
@@ -625,11 +626,11 @@ const Mt = (e) => {
625
626
  ])])
626
627
  ])
627
628
  ]),
628
- s("div", Ys, [
629
- s("div", ed, [
630
- (d(!0), a(P, null, R(e.schema, (c, b) => (d(), be(l(Ke), {
629
+ t("div", Ys, [
630
+ t("div", ed, [
631
+ (d(!0), a(P, null, R(e.schema, (u, b) => (d(), be(l(Ke), {
631
632
  key: b,
632
- field: c,
633
+ field: u,
633
634
  "field-key": b,
634
635
  "form-data": e.formData,
635
636
  "required-text": e.requiredText,
@@ -640,22 +641,22 @@ const Mt = (e) => {
640
641
  }, null, 8, ["field", "field-key", "form-data", "required-text", "optional-text", "value-null-view", "lang"]))), 128))
641
642
  ])
642
643
  ]),
643
- s("div", td, [
644
- s("div", sd, [
645
- s("button", {
644
+ t("div", td, [
645
+ t("div", sd, [
646
+ t("button", {
646
647
  type: "button",
647
- onClick: t,
648
+ onClick: s,
648
649
  class: "btn btn-primary"
649
650
  }, [
650
- s("span", dd, [
651
- $[3] || ($[3] = s("svg", {
651
+ t("span", dd, [
652
+ $[3] || ($[3] = t("svg", {
652
653
  width: "16",
653
654
  height: "16",
654
655
  viewBox: "0 0 24 24",
655
656
  fill: "none",
656
657
  xmlns: "http://www.w3.org/2000/svg"
657
658
  }, [
658
- s("path", {
659
+ t("path", {
659
660
  d: "M6 18L18 6M6 6L18 18",
660
661
  stroke: "currentColor",
661
662
  "stroke-width": "2",
@@ -663,7 +664,7 @@ const Mt = (e) => {
663
664
  "stroke-linejoin": "round"
664
665
  })
665
666
  ], -1)),
666
- ye(" " + m(e.closeText ?? "Close"), 1)
667
+ pe(" " + m(e.closeText ?? "Close"), 1)
667
668
  ])
668
669
  ])
669
670
  ])
@@ -684,14 +685,14 @@ const Mt = (e) => {
684
685
  n.value ? (d(), a("div", {
685
686
  key: 0,
686
687
  class: "modal-overlay image-preview-overlay",
687
- onClick: $[0] || ($[0] = (c) => n.value = !1)
688
+ onClick: $[0] || ($[0] = (u) => n.value = !1)
688
689
  }, [
689
690
  K(_e, {
690
691
  name: "modal-container",
691
692
  appear: ""
692
693
  }, {
693
694
  default: Ce(() => [
694
- s("img", {
695
+ t("img", {
695
696
  src: g.value,
696
697
  alt: "Preview",
697
698
  class: "image-preview-content"
@@ -705,24 +706,24 @@ const Mt = (e) => {
705
706
  })
706
707
  ], 64));
707
708
  }
708
- }), nd = /* @__PURE__ */ Le(ld, [["__scopeId", "data-v-a78353a9"]]);
709
- async function Be(e, u, i, n) {
709
+ }), nd = /* @__PURE__ */ Se(ld, [["__scopeId", "data-v-a78353a9"]]);
710
+ async function Be(e, c, i, n) {
710
711
  const g = {};
711
- for (const [t, y] of Object.entries(u)) {
712
+ for (const [s, y] of Object.entries(c)) {
712
713
  const f = y?.type;
713
714
  if (f === "select" && y.DB_NAME && !y.optionsIsNumber) {
714
- const j = e[y.baseKey?.base ?? t];
715
+ const j = e[y.baseKey?.base ?? s];
715
716
  if (j !== null) {
716
717
  const $ = await $e(y.DB_NAME, j);
717
- g[t] = $[y.baseKey.name ?? "name"] ?? "";
718
+ g[s] = $[y.baseKey.name ?? "name"] ?? "";
718
719
  } else
719
- g[t] = "";
720
+ g[s] = "";
720
721
  continue;
721
722
  }
722
723
  if (f === "object") {
723
- const j = e[t] || {};
724
- g[t] = await Be(
725
- e[t] || {},
724
+ const j = e[s] || {};
725
+ g[s] = await Be(
726
+ e[s] || {},
726
727
  y.schema || {},
727
728
  j,
728
729
  y.baseKey?.base ?? "id"
@@ -731,18 +732,18 @@ async function Be(e, u, i, n) {
731
732
  }
732
733
  if (f === "optionGroupSchema" && y.options) {
733
734
  if (y.withValue) {
734
- const j = e[t];
735
- g[t] = await De(j);
735
+ const j = e[s];
736
+ g[s] = await De(j);
736
737
  }
737
738
  for (const [j, $] of Object.entries(
738
739
  y.options
739
740
  ))
740
- for (const [c, b] of Object.entries($)) {
741
- const N = b, Z = e[c];
741
+ for (const [u, b] of Object.entries($)) {
742
+ const N = b, Z = e[u];
742
743
  if (N.type === "optionGroupSchema" && N.options) {
743
744
  const H = await Be(
744
745
  e,
745
- { [c]: N },
746
+ { [u]: N },
746
747
  i,
747
748
  n
748
749
  );
@@ -750,36 +751,36 @@ async function Be(e, u, i, n) {
750
751
  continue;
751
752
  }
752
753
  if (N.type === "object") {
753
- g[c] = await Be(
754
- e[c] || {},
754
+ g[u] = await Be(
755
+ e[u] || {},
755
756
  N.schema || {},
756
- e[c] || {},
757
+ e[u] || {},
757
758
  N.baseKey?.base ?? "id"
758
759
  );
759
760
  continue;
760
761
  }
761
762
  if (N.type === "select" && N.DB_NAME && !N.optionsIsNumber) {
762
- const H = e[N.baseKey?.base ?? c];
763
+ const H = e[N.baseKey?.base ?? u];
763
764
  if (H != null) {
764
765
  const z = N.DB_NAME, A = await $e(z, H);
765
- g[c] = A[N.baseKey?.name ?? "name"] ?? void 0;
766
+ g[u] = A[N.baseKey?.name ?? "name"] ?? void 0;
766
767
  } else
767
- g[c] = void 0;
768
+ g[u] = void 0;
768
769
  } else
769
- g[c] = De(Z);
770
+ g[u] = De(Z);
770
771
  }
771
772
  continue;
772
773
  }
773
- const _ = e[t];
774
- g[t] = De(_);
774
+ const _ = e[s];
775
+ g[s] = De(_);
775
776
  }
776
777
  return i && e?.[n ?? "id"] && (g[n ?? "id"] = e?.[n ?? "id"]), g;
777
778
  }
778
- async function Ae(e, u) {
779
+ async function Ae(e, c) {
779
780
  const i = {};
780
- for (const [n, g] of Object.entries(u)) {
781
- const t = g?.type, y = e[g.baseKey?.base ?? n];
782
- if (t === "select" && g.optionsView && g.options && y) {
781
+ for (const [n, g] of Object.entries(c)) {
782
+ const s = g?.type, y = e[g.baseKey?.base ?? n];
783
+ if (s === "select" && g.optionsView && g.options && y) {
783
784
  const f = g.options.findIndex((_) => _ === y);
784
785
  if (!g.optionsView[f] && g.DB_NAME && g.baseKey.name) {
785
786
  const j = (await $e(g.DB_NAME, y))[g.baseKey.name];
@@ -788,11 +789,11 @@ async function Ae(e, u) {
788
789
  i[n] = g.optionsView[f] ?? y;
789
790
  continue;
790
791
  }
791
- if (t === "object") {
792
+ if (s === "object") {
792
793
  i[n] = await Ae(y || {}, g.schema || {});
793
794
  continue;
794
795
  }
795
- if (t === "optionGroupSchema") {
796
+ if (s === "optionGroupSchema") {
796
797
  const f = [];
797
798
  for (const [j, $] of Object.entries(
798
799
  g.options
@@ -802,9 +803,9 @@ async function Ae(e, u) {
802
803
  Object.assign(i, _);
803
804
  continue;
804
805
  }
805
- if (t === "arrayObject") {
806
+ if (s === "arrayObject") {
806
807
  const f = [];
807
- for (const _ of y) {
808
+ for (const _ of y || []) {
808
809
  const j = await Ae(_, g.schema || {});
809
810
  f.push(j);
810
811
  }
@@ -815,32 +816,32 @@ async function Ae(e, u) {
815
816
  }
816
817
  return i;
817
818
  }
818
- async function tt(e, u) {
819
+ async function tt(e, c) {
819
820
  const i = {};
820
- for (const n of u)
821
- for (const [g, t] of Object.entries(n)) {
822
- const y = t?.type, f = e[t.baseKey?.base ?? g];
823
- if (y === "select" && t.optionsView && t.options && f) {
824
- const _ = t.options.findIndex((j) => j === f);
825
- if (!t.optionsView[_] && t.DB_NAME && t.baseKey.name) {
826
- const $ = (await $e(t.DB_NAME, f))[t.baseKey.name];
821
+ for (const n of c)
822
+ for (const [g, s] of Object.entries(n)) {
823
+ const y = s?.type, f = e[s.baseKey?.base ?? g];
824
+ if (y === "select" && s.optionsView && s.options && f) {
825
+ const _ = s.options.findIndex((j) => j === f);
826
+ if (!s.optionsView[_] && s.DB_NAME && s.baseKey.name) {
827
+ const $ = (await $e(s.DB_NAME, f))[s.baseKey.name];
827
828
  i[g] = $;
828
829
  } else
829
- i[g] = t.optionsView[_] ?? f;
830
+ i[g] = s.optionsView[_] ?? f;
830
831
  } else if (y === "optionGroupSchema") {
831
832
  const _ = [];
832
- for (const [$, c] of Object.entries(
833
- t.options
833
+ for (const [$, u] of Object.entries(
834
+ s.options
834
835
  ))
835
- _.push(c);
836
+ _.push(u);
836
837
  const j = await tt(e, _);
837
838
  Object.assign(i, j);
838
839
  } else if (y === "object")
839
- i[g] = await Ae(f || {}, t.schema || {});
840
+ i[g] = await Ae(f || {}, s.schema || {});
840
841
  else if (y === "arrayObject") {
841
842
  const _ = [];
842
843
  for (const j of f) {
843
- const $ = await Ae(j, t.schema || {});
844
+ const $ = await Ae(j, s.schema || {});
844
845
  _.push($);
845
846
  }
846
847
  i[g] = _;
@@ -850,16 +851,16 @@ async function tt(e, u) {
850
851
  }
851
852
  return i;
852
853
  }
853
- function De(e, u) {
854
+ function De(e, c) {
854
855
  return e ?? null;
855
856
  }
856
857
  function me(e) {
857
- const u = He(e), i = Array.isArray(u) ? [] : {};
858
- if (Array.isArray(u))
859
- return u.map((n) => n !== null && typeof n == "object" && !(n instanceof File || n instanceof Blob || n instanceof Date) && !Array.isArray(n) ? me(n) : n);
860
- for (const n in u) {
861
- const g = u[n];
862
- g === void 0 ? i[n] = null : g instanceof File || g instanceof Blob || g instanceof Date ? i[n] = g : typeof g == "string" && (g.trim() === "" || g === "<p><br></p>") || typeof g == "number" && g === 0 ? i[n] = null : Array.isArray(g) ? i[n] = g.map((t) => t !== null && typeof t == "object" && !(t instanceof File || t instanceof Blob || t instanceof Date) && !Array.isArray(t) ? me(t) : t) : typeof g == "object" && g !== null ? i[n] = me(g) : i[n] = g;
858
+ const c = He(e), i = Array.isArray(c) ? [] : {};
859
+ if (Array.isArray(c))
860
+ return c.map((n) => n !== null && typeof n == "object" && !(n instanceof File || n instanceof Blob || n instanceof Date) && !Array.isArray(n) ? me(n) : n);
861
+ for (const n in c) {
862
+ const g = c[n];
863
+ g === void 0 ? i[n] = null : g instanceof File || g instanceof Blob || g instanceof Date ? i[n] = g : typeof g == "string" && (g.trim() === "" || g === "<p><br></p>") || typeof g == "number" && g === 0 ? i[n] = null : Array.isArray(g) ? i[n] = g.map((s) => s !== null && typeof s == "object" && !(s instanceof File || s instanceof Blob || s instanceof Date) && !Array.isArray(s) ? me(s) : s) : typeof g == "object" && g !== null ? i[n] = me(g) : i[n] = g;
863
864
  }
864
865
  return i;
865
866
  }
@@ -884,13 +885,13 @@ function Je(e) {
884
885
  return e.name;
885
886
  }
886
887
  function rd(e) {
887
- return Array.isArray(e) && e.every((u) => Ie(u));
888
+ return Array.isArray(e) && e.every((c) => Ie(c));
888
889
  }
889
890
  function id(e) {
890
- return Array.isArray(e) ? e.every((u) => dt(u)) : !1;
891
+ return Array.isArray(e) ? e.every((c) => dt(c)) : !1;
891
892
  }
892
893
  function gd(e) {
893
- return Array.isArray(e) && e.length > 0 && e.every((u) => st(u) || Ie(u));
894
+ return Array.isArray(e) && e.length > 0 && e.every((c) => st(c) || Ie(c));
894
895
  }
895
896
  function dt(e) {
896
897
  return typeof e != "string" ? !1 : /^#([0-9A-F]{3}){1,2}$/i.test(e) || /^rgb(a?)\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*(,\s*[\d\.]+\s*)?\)$/i.test(e) || /^hsl(a?)\(\s*\d+\s*,\s*[\d\.]+%\s*,\s*[\d\.]+%\s*(,\s*[\d\.]+\s*)?\)$/i.test(e) ? !0 : [
@@ -920,59 +921,59 @@ function ud(e) {
920
921
  return /<\/?[a-z][\s\S]*>/i.test(e);
921
922
  }
922
923
  function cd(e) {
923
- return Object.keys(e).reduce((u, i) => (i !== "id" && (u[i] = e[i]), u), {});
924
+ return Object.keys(e).reduce((c, i) => (i !== "id" && (c[i] = e[i]), c), {});
924
925
  }
925
- function jd(e, u, i, n, g, t, y, f) {
926
+ function jd(e, c, i, n, g, s, y, f) {
926
927
  const _ = V({});
927
928
  async function j(v) {
928
- n.value?.show("loading", t.message.process.loading);
929
+ n.value?.show("loading", s.message.process.loading);
929
930
  try {
930
931
  const x = await y(e.data, v);
931
932
  if (f.isUpdate.value = Number(v), !x) {
932
- n.value?.show("error", t.message.notFound);
933
+ n.value?.show("error", s.message.notFound);
933
934
  return;
934
935
  }
935
- const S = e.base.schema.update ?? e.base.schema.global ?? {};
936
+ const L = e.base.schema.update ?? e.base.schema.global ?? {};
936
937
  if (_.value = await Be(
937
938
  x,
938
- S,
939
+ L,
939
940
  f.isUpdate.value,
940
941
  e.keys?.idKey ?? "id"
941
942
  ), e.base?.justTabel || e.manual?.update || !e.endPoints?.update) {
942
- u("edit", _.value, v), n.value?.hide();
943
+ c("edit", _.value, v), n.value?.hide();
943
944
  return;
944
945
  }
945
946
  f.FormModalOpen.value = !0, n.value?.hide();
946
947
  } catch (x) {
947
- const S = typeof x == "string" ? x : x instanceof Error ? x.message : JSON.stringify(x, Object.getOwnPropertyNames(x));
948
- n.value?.show("error", S || "An unknown error occurred");
948
+ const L = typeof x == "string" ? x : x instanceof Error ? x.message : JSON.stringify(x, Object.getOwnPropertyNames(x));
949
+ n.value?.show("error", L || "An unknown error occurred");
949
950
  }
950
951
  }
951
952
  function $() {
952
953
  if (e.base?.justTabel || e.manual?.create || !e.endPoints?.create) {
953
- u("create");
954
+ c("create");
954
955
  return;
955
956
  }
956
957
  f.isUpdate.value = null, f.FormModalOpen.value = !0;
957
958
  }
958
- async function c(v) {
959
- n.value?.show("loading", t.message.process.loading);
959
+ async function u(v) {
960
+ n.value?.show("loading", s.message.process.loading);
960
961
  try {
961
962
  const x = await y(e.data, v);
962
963
  if (f.isUpdate.value = Number(v), !x) {
963
- n.value?.show("error", t.message.notFound);
964
+ n.value?.show("error", s.message.notFound);
964
965
  return;
965
966
  }
966
967
  if (_.value = await Ae(
967
968
  x,
968
969
  e.base?.schema.display ?? e.base?.schema.global ?? {}
969
970
  ), e.base.justTabel || e.manual?.display) {
970
- u("show", _.value, v), n.value?.hide();
971
+ c("show", _.value, v), n.value?.hide();
971
972
  return;
972
973
  }
973
974
  f.detailItemModal.value = !0, n.value?.hide();
974
975
  } catch (x) {
975
- n.value?.show("error", JSON.stringify(x));
976
+ console.log(x), n.value?.show("error", JSON.stringify(x));
976
977
  }
977
978
  }
978
979
  function b(v) {
@@ -985,22 +986,22 @@ function jd(e, u, i, n, g, t, y, f) {
985
986
  f.showWarningModel.value = !1, f.showWarningModelSelected.value = !1, f.FormModalOpen.value = !1, f.detailItemModal.value = !1, _.value = {}, f.isUpdate.value = null;
986
987
  }
987
988
  const H = async (v) => {
988
- const x = f.isUpdate.value !== null, S = x ? e.endPoints?.update : e.endPoints?.create, L = x ? e.validation?.update || null : e.validation?.create || null, se = x ? "update" : "create", Y = x ? t.message.success.update : t.message.success.create, J = x ? t.message.error.update : t.message.error.create;
989
- if (!S) {
989
+ const x = f.isUpdate.value !== null, L = x ? e.endPoints?.update : e.endPoints?.create, S = x ? e.validation?.update || null : e.validation?.create || null, se = x ? "update" : "create", Y = x ? s.message.success.update : s.message.success.create, J = x ? s.message.error.update : s.message.error.create;
990
+ if (!L) {
990
991
  n.value?.show(
991
992
  "error",
992
- x ? t.message.error.update : t.message.error.create
993
+ x ? s.message.error.update : s.message.error.create
993
994
  );
994
995
  return;
995
996
  }
996
997
  if (Array.isArray(f.dataChildDelete.value) && f.dataChildDelete.value.length > 0 && x) {
997
- const G = e.base.schema.update ?? e.base.schema.global ?? {};
998
+ const q = e.base.schema.update ?? e.base.schema.global ?? {};
998
999
  let U = "", oe, de = await y(
999
1000
  e.data,
1000
1001
  f.isUpdate.value
1001
1002
  ), ue, he, ce = !0;
1002
- for (const re in G) {
1003
- const le = G[re];
1003
+ for (const re in q) {
1004
+ const le = q[re];
1004
1005
  if (le.type === "arrayObject") {
1005
1006
  U = re, oe = le.endPoint?.deleteMany ?? e.endPoints?.deleteMany, ue = le.DB_NAME ?? e.base.source.DB_NAME, he = le.deleteValidation ?? e.validation?.delete ?? void 0, ce = !0;
1006
1007
  break;
@@ -1011,7 +1012,7 @@ function jd(e, u, i, n, g, t, y, f) {
1011
1012
  const le = f.dataChildDelete.value[re];
1012
1013
  e.keys?.idKey, _.value[U] = _.value[U].filter((ee) => ee?.[e.keys?.idKey ?? "id"] !== le), de && Array.isArray(de[U]) && (de[U] = de[U].filter((ee) => ee?.[e.keys?.idKey ?? "id"] !== le));
1013
1014
  }
1014
- const ae = vt(me(v), me(He(_.value))), ie = await A(
1015
+ const ae = mt(me(v), me(He(_.value))), ie = await A(
1015
1016
  f.dataChildDelete.value,
1016
1017
  oe,
1017
1018
  he,
@@ -1019,7 +1020,7 @@ function jd(e, u, i, n, g, t, y, f) {
1019
1020
  ce
1020
1021
  );
1021
1022
  if (ie?.response && ae) {
1022
- n.value?.show("success", t.message.success.delete), await ft(ue, me(He(de))), await i(), Z();
1023
+ n.value?.show("success", s.message.success.delete), await bt(ue, me(He(de))), await i(), Z();
1023
1024
  return;
1024
1025
  } else if (!ie?.response) {
1025
1026
  n.value?.show("error", ie.message);
@@ -1029,103 +1030,103 @@ function jd(e, u, i, n, g, t, y, f) {
1029
1030
  try {
1030
1031
  n.value?.show(
1031
1032
  "loading",
1032
- x ? t.message.process.update : t.message.process.create
1033
+ x ? s.message.process.update : s.message.process.create
1033
1034
  );
1034
- const G = x ? e.submitOption?.update?.authType ?? e.submitOption?.global?.authType ?? "cookie" : e.submitOption?.create?.authType ?? e.submitOption?.global?.authType ?? "cookie", U = x ? e.submitOption?.update?.token ?? e.submitOption?.global?.token ?? void 0 : e.submitOption?.create?.token ?? e.submitOption?.global?.token ?? void 0, oe = x ? e.submitOption?.update?.customHeaders ?? e.submitOption?.global?.customHeaders ?? void 0 : e.submitOption?.create?.customHeaders ?? e.submitOption?.global?.customHeaders ?? void 0;
1035
- await ke({
1035
+ const q = x ? e.submitOption?.update?.authType ?? e.submitOption?.global?.authType ?? "cookie" : e.submitOption?.create?.authType ?? e.submitOption?.global?.authType ?? "cookie", U = x ? e.submitOption?.update?.token ?? e.submitOption?.global?.token ?? void 0 : e.submitOption?.create?.token ?? e.submitOption?.global?.token ?? void 0, oe = x ? e.submitOption?.update?.customHeaders ?? e.submitOption?.global?.customHeaders ?? void 0 : e.submitOption?.create?.customHeaders ?? e.submitOption?.global?.customHeaders ?? void 0;
1036
+ await ye({
1036
1037
  data: me(v),
1037
1038
  oldData: x ? me(He(_.value)) : void 0,
1038
- validation: L ?? void 0,
1039
- endpoint: S,
1039
+ validation: S ?? void 0,
1040
+ endpoint: L,
1040
1041
  mode: se,
1041
1042
  token: U,
1042
- authType: G,
1043
+ authType: q,
1043
1044
  customHeaders: oe,
1044
1045
  db: e.base.source.DB_NAME,
1045
1046
  ...x ? e.submitOption?.update ?? e.submitOption?.global : e.submitOption?.create ?? e.submitOption?.global,
1046
1047
  demo: e.demo
1047
- }), e.base.dataTabelCustomDisplay ? u("refreshData") : await i(), n.value?.show("success", Y), Z();
1048
- } catch (G) {
1048
+ }), e.base.dataTabelCustomDisplay ? c("refreshData") : await i(), n.value?.show("success", Y), Z();
1049
+ } catch (q) {
1049
1050
  g(
1050
1051
  "error",
1051
1052
  J,
1052
- Object.entries(G).map(([U, oe]) => `${U} : ${oe}`)
1053
+ Object.entries(q).map(([U, oe]) => `${U} : ${oe}`)
1053
1054
  ), n.value?.show("error", J);
1054
1055
  }
1055
1056
  };
1056
- async function z(v, x, S, L, se = !0) {
1057
+ async function z(v, x, L, S, se = !0) {
1057
1058
  if (e.base.justTabel || e.manual?.delete || !e.endPoints?.delete) {
1058
- u("delete", v);
1059
+ c("delete", v);
1059
1060
  return;
1060
1061
  }
1061
- if (x = x ?? e.endPoints?.delete, S = S ?? e.validation?.delete, L = L ?? e.base?.source.DB_NAME ?? void 0, !x) {
1062
- n.value?.show("error", t.message.error.delete);
1062
+ if (x = x ?? e.endPoints?.delete, L = L ?? e.validation?.delete, S = S ?? e.base?.source.DB_NAME ?? void 0, !x) {
1063
+ n.value?.show("error", s.message.error.delete);
1063
1064
  return;
1064
1065
  }
1065
1066
  const Y = { [e.keys?.idKey ?? "id"]: v };
1066
1067
  try {
1067
- n.value?.show("loading", t.message.process.delete);
1068
- const J = e.submitOption?.delete?.authType ?? e.submitOption?.global?.authType ?? "cookie", G = e.submitOption?.delete?.token ?? e.submitOption?.global?.token ?? void 0, U = e.submitOption?.delete?.customHeaders ?? e.submitOption?.global?.customHeaders ?? void 0;
1069
- await ke({
1068
+ n.value?.show("loading", s.message.process.delete);
1069
+ const J = e.submitOption?.delete?.authType ?? e.submitOption?.global?.authType ?? "cookie", q = e.submitOption?.delete?.token ?? e.submitOption?.global?.token ?? void 0, U = e.submitOption?.delete?.customHeaders ?? e.submitOption?.global?.customHeaders ?? void 0;
1070
+ await ye({
1070
1071
  data: Y,
1071
- validation: S ?? void 0,
1072
+ validation: L ?? void 0,
1072
1073
  endpoint: x,
1073
1074
  mode: "delete",
1074
- token: G,
1075
+ token: q,
1075
1076
  authType: J,
1076
1077
  customHeaders: U,
1077
- db: L,
1078
+ db: S,
1078
1079
  deleteDataDB: se,
1079
1080
  demo: e.demo,
1080
1081
  ...e.submitOption?.delete ?? e.submitOption?.global
1081
- }), e.base?.dataTabelCustomDisplay ? u("refreshData") : await i(), n.value?.show("success", t.message.success.delete);
1082
+ }), e.base?.dataTabelCustomDisplay ? c("refreshData") : await i(), n.value?.show("success", s.message.success.delete);
1082
1083
  } catch (J) {
1083
1084
  g(
1084
1085
  "error",
1085
- t.message.error.delete,
1086
- Object.entries(J).map(([G, U]) => `${G} : ${U}`)
1087
- ), n.value?.show("error", t.message.error.delete);
1086
+ s.message.error.delete,
1087
+ Object.entries(J).map(([q, U]) => `${q} : ${U}`)
1088
+ ), n.value?.show("error", s.message.error.delete);
1088
1089
  } finally {
1089
1090
  Z();
1090
1091
  }
1091
1092
  }
1092
- async function A(v, x, S, L, se = !0) {
1093
+ async function A(v, x, L, S, se = !0) {
1093
1094
  if (e.base?.justTabel || e.manual?.delete || !e.endPoints?.delete) {
1094
- u("deleteMany", v);
1095
+ c("deleteMany", v);
1095
1096
  return;
1096
1097
  }
1097
- if (x = x ?? e.endPoints?.deleteMany, S = S ?? e.validation?.deleteMany, L = L ?? e.base?.source.DB_NAME ?? void 0, !x) {
1098
- n.value?.show("error", t.message.error.deleteMany);
1098
+ if (x = x ?? e.endPoints?.deleteMany, L = L ?? e.validation?.deleteMany, S = S ?? e.base?.source.DB_NAME ?? void 0, !x) {
1099
+ n.value?.show("error", s.message.error.deleteMany);
1099
1100
  return;
1100
1101
  }
1101
1102
  try {
1102
- n.value?.show("loading", t.message.process.deleteMany);
1103
- const Y = e.submitOption?.delete?.authType ?? e.submitOption?.global?.authType ?? "cookie", J = e.submitOption?.delete?.token ?? e.submitOption?.global?.token ?? void 0, G = e.submitOption?.delete?.customHeaders ?? e.submitOption?.global?.customHeaders ?? void 0, U = await ke({
1103
+ n.value?.show("loading", s.message.process.deleteMany);
1104
+ const Y = e.submitOption?.delete?.authType ?? e.submitOption?.global?.authType ?? "cookie", J = e.submitOption?.delete?.token ?? e.submitOption?.global?.token ?? void 0, q = e.submitOption?.delete?.customHeaders ?? e.submitOption?.global?.customHeaders ?? void 0, U = await ye({
1104
1105
  data: { [e.keys?.idsKey ?? "ids"]: v },
1105
- validation: S ?? void 0,
1106
+ validation: L ?? void 0,
1106
1107
  endpoint: x,
1107
1108
  mode: "delete",
1108
- db: L,
1109
+ db: S,
1109
1110
  authType: Y,
1110
1111
  token: J,
1111
- customHeaders: G,
1112
+ customHeaders: q,
1112
1113
  deleteDataDB: se,
1113
1114
  demo: e.demo
1114
1115
  });
1115
- return f.selectedItems.value = [], e.base?.dataTabelCustomDisplay ? (u("refreshData"), n.value?.show("success", t.message.success.deleteMany), Z(), U) : (await i(), n.value?.show("success", t.message.success.deleteMany), Z(), U);
1116
+ return f.selectedItems.value = [], e.base?.dataTabelCustomDisplay ? (c("refreshData"), n.value?.show("success", s.message.success.deleteMany), Z(), U) : (await i(), n.value?.show("success", s.message.success.deleteMany), Z(), U);
1116
1117
  } catch (Y) {
1117
1118
  g(
1118
1119
  "error",
1119
- t.message.error.deleteMany,
1120
- Object.entries(Y).map(([J, G]) => `${J} : ${G}`)
1121
- ), n.value?.show("error", t.message.error.deleteMany);
1120
+ s.message.error.deleteMany,
1121
+ Object.entries(Y).map(([J, q]) => `${J} : ${q}`)
1122
+ ), n.value?.show("error", s.message.error.deleteMany);
1122
1123
  }
1123
1124
  }
1124
1125
  return {
1125
1126
  initialData: _,
1126
1127
  openEditModal: j,
1127
1128
  openCreateModal: $,
1128
- openShowModal: c,
1129
+ openShowModal: u,
1129
1130
  openWarningDeleteData: b,
1130
1131
  openWarningDeleteSelectedData: N,
1131
1132
  closeModal: Z,
@@ -1134,30 +1135,30 @@ function jd(e, u, i, n, g, t, y, f) {
1134
1135
  DeleteSeletedData: A
1135
1136
  };
1136
1137
  }
1137
- function bd(e, u, i, n) {
1138
- const g = V(""), t = V(1), y = V([]), f = V(!1), _ = V(!1), j = V(!1), $ = V(null), c = V(null), b = V("asc"), N = V(!1), Z = V(!1), H = V(null), z = V(null), A = X(() => e.pagination?.itemsPerPage ?? 10), v = X(() => e.pagination?.maxVisiblePages ?? 5);
1138
+ function bd(e, c, i, n) {
1139
+ const g = V(""), s = V(1), y = V([]), f = V(!1), _ = V(!1), j = V(!1), $ = V(null), u = V(null), b = V("asc"), N = V(!1), Z = V(!1), H = V(null), z = V(null), A = X(() => e.pagination?.itemsPerPage ?? 10), v = X(() => e.pagination?.maxVisiblePages ?? 5);
1139
1140
  V(null), V("none");
1140
1141
  const x = X(() => {
1141
1142
  const p = e.keys?.idKey;
1142
1143
  return e.data.find((C) => C?.[p ?? "id"] === $.value) || {};
1143
- }), S = X(() => {
1144
+ }), L = X(() => {
1144
1145
  const p = e.keys?.idKey ?? "id", C = e.keys?.nameKey ?? "name";
1145
1146
  return e.data.filter((T) => y.value.includes(T[p])).map((T) => T[C]).join(", ");
1146
- }), L = X(() => {
1147
+ }), S = X(() => {
1147
1148
  let p = (e.base.data ?? []).filter(
1148
1149
  (C) => Object.values(C).some(
1149
1150
  (T) => String(T).toLowerCase().includes(g.value.toLowerCase())
1150
1151
  )
1151
1152
  );
1152
- return c.value && p.sort((C, T) => {
1153
- let w = C[c.value], D = T[c.value];
1153
+ return u.value && p.sort((C, T) => {
1154
+ let w = C[u.value], D = T[u.value];
1154
1155
  return typeof w == "string" && (w = w.toLowerCase()), typeof D == "string" && (D = D.toLowerCase()), w < D ? b.value === "asc" ? -1 : 1 : w > D ? b.value === "asc" ? 1 : -1 : 0;
1155
1156
  }), p;
1156
1157
  }), se = X(() => {
1157
- const p = (t.value - 1) * A.value;
1158
- return L.value.slice(p, p + A.value);
1159
- }), Y = X(() => Math.ceil(L.value.length / A.value)), J = X(() => {
1160
- const p = [], C = Y.value, T = t.value, w = v.value;
1158
+ const p = (s.value - 1) * A.value;
1159
+ return S.value.slice(p, p + A.value);
1160
+ }), Y = X(() => Math.ceil(S.value.length / A.value)), J = X(() => {
1161
+ const p = [], C = Y.value, T = s.value, w = v.value;
1161
1162
  if (C <= w + 2) {
1162
1163
  for (let M = 1; M <= C; M++) p.push(M);
1163
1164
  return p;
@@ -1169,17 +1170,17 @@ function bd(e, u, i, n) {
1169
1170
  p.push(M);
1170
1171
  return h < C - 1 && p.push("..."), p.push(C), p;
1171
1172
  });
1172
- function G() {
1173
+ function q() {
1173
1174
  y.value = f.value ? se.value.map((p) => p?.[e.keys?.idKey ?? "id"]) : [];
1174
1175
  }
1175
1176
  function U(p) {
1176
- c.value === p ? b.value = b.value === "desc" ? "asc" : "desc" : (c.value = p, b.value = "desc");
1177
+ u.value === p ? b.value = b.value === "desc" ? "asc" : "desc" : (u.value = p, b.value = "desc");
1177
1178
  }
1178
1179
  function oe() {
1179
- t.value > 1 && t.value--;
1180
+ s.value > 1 && s.value--;
1180
1181
  }
1181
1182
  function de() {
1182
- t.value < Y.value && t.value++;
1183
+ s.value < Y.value && s.value++;
1183
1184
  }
1184
1185
  async function ue() {
1185
1186
  if (e.base.source.DB_NAME) {
@@ -1207,7 +1208,7 @@ function bd(e, u, i, n) {
1207
1208
  authType: e.submitOption?.[T]?.authType ?? e.submitOption?.global?.authType ?? "cookie",
1208
1209
  token: e.submitOption?.[T]?.token ?? e.submitOption?.global?.token,
1209
1210
  customHeaders: e.submitOption?.[T]?.customHeaders ?? e.submitOption?.global?.customHeaders
1210
- }), C = await ke({
1211
+ }), C = await ye({
1211
1212
  mode: "get",
1212
1213
  endpoint: e.base.source.fetchApi?.getAll,
1213
1214
  db: e.base.source.DB_NAME,
@@ -1217,7 +1218,7 @@ function bd(e, u, i, n) {
1217
1218
  const T = {};
1218
1219
  return await Promise.all(
1219
1220
  e.base.source.fetchApi.connect.map(async (w) => {
1220
- const D = await ke({
1221
+ const D = await ye({
1221
1222
  mode: "get",
1222
1223
  endpoint: w.url,
1223
1224
  db: e.base.source.DB_NAME,
@@ -1244,7 +1245,7 @@ function bd(e, u, i, n) {
1244
1245
  if (p.connect?.withDB)
1245
1246
  return await $e(p.connect.withDB.DB_NAME, C);
1246
1247
  if (p.connect?.withFetch) {
1247
- const T = e.submitOption?.delete?.authType ?? e.submitOption?.global?.authType ?? "cookie", w = e.submitOption?.delete?.token ?? e.submitOption?.global?.token ?? void 0, D = e.submitOption?.delete?.customHeaders ?? e.submitOption?.global?.customHeaders ?? void 0, h = await ke({
1248
+ const T = e.submitOption?.delete?.authType ?? e.submitOption?.global?.authType ?? "cookie", w = e.submitOption?.delete?.token ?? e.submitOption?.global?.token ?? void 0, D = e.submitOption?.delete?.customHeaders ?? e.submitOption?.global?.customHeaders ?? void 0, h = await ye({
1248
1249
  mode: "get",
1249
1250
  endpoint: p.connect?.withFetch.url + "/" + C,
1250
1251
  db: e.base.source.DB_NAME,
@@ -1329,7 +1330,7 @@ function bd(e, u, i, n) {
1329
1330
  }), T = async (h) => {
1330
1331
  const M = h.options?.valueKey ?? "id", I = h.options?.viewKey ?? "name";
1331
1332
  let B;
1332
- if (h.options?.url && (B = await ke({
1333
+ if (h.options?.url && (B = await ye({
1333
1334
  mode: "get",
1334
1335
  endpoint: h.options.url,
1335
1336
  ...C("get")
@@ -1380,25 +1381,25 @@ function bd(e, u, i, n) {
1380
1381
  }
1381
1382
  return {
1382
1383
  searchQuery: g,
1383
- currentPage: t,
1384
+ currentPage: s,
1384
1385
  selectedItems: y,
1385
1386
  selectAll: f,
1386
1387
  showWarningModel: _,
1387
1388
  showWarningModelSelected: j,
1388
1389
  idData: $,
1389
- sortField: c,
1390
+ sortField: u,
1390
1391
  sortDirection: b,
1391
1392
  FormModalOpen: N,
1392
1393
  detailItemModal: Z,
1393
1394
  isUpdate: H,
1394
1395
  dataChildDelete: z,
1395
1396
  selectedItem: x,
1396
- selectedItemNames: S,
1397
- filteredData: L,
1397
+ selectedItemNames: L,
1398
+ filteredData: S,
1398
1399
  paginatedData: se,
1399
1400
  totalPages: Y,
1400
1401
  visiblePages: J,
1401
- toggleAll: G,
1402
+ toggleAll: q,
1402
1403
  sortBy: U,
1403
1404
  prevPage: oe,
1404
1405
  nextPage: de,
@@ -1445,9 +1446,9 @@ const fd = {
1445
1446
  }
1446
1447
  }, yd = { class: "jsgd-sr-only" }, kd = { class: "jsgd-font-semibold" }, xd = /* @__PURE__ */ fe({
1447
1448
  __name: "AlertApp",
1448
- setup(e, { expose: u }) {
1449
+ setup(e, { expose: c }) {
1449
1450
  const i = V([]), n = V([]), g = V([]);
1450
- let t = 0;
1451
+ let s = 0;
1451
1452
  const y = (j) => {
1452
1453
  const $ = "jsgd-fixed jsgd-top-4 jsgd-right-4 jsgd-z-100 jsgd-flex jsgd-items-start jsgd-gap-3 jsgd-w-full jsgd-max-w-sm jsgd-p-4 jsgd-mb-4 jsgd-rounded-lg jsgd-shadow-lg jsgd-transition-all jsgd-duration-300 jsgd-ease-[cubic-bezier(0.4,0,0.2,1)] sm:jsgd-max-w-md max-sm:jsgd-left-4";
1453
1454
  return j === "success" ? `${$} jsgd-border-1 jsgd-border-solid jsgd-border-green-200 jsgd-bg-green-50 jsgd-text-green-800 dark:jsgd-bg-green-800/30 dark:jsgd-border-green-700 dark:jsgd-text-green-200` : j === "error" ? `${$} jsgd-border-1 jsgd-border-solid jsgd-border-red-200 jsgd-bg-red-50 jsgd-text-red-800 dark:jsgd-bg-red-800/30 dark:jsgd-border-red-700 dark:jsgd-text-red-200` : $;
@@ -1455,12 +1456,12 @@ const fd = {
1455
1456
  function f() {
1456
1457
  let j = 0;
1457
1458
  g.value = n.value.map(($) => {
1458
- const c = $?.offsetHeight || 0, b = j;
1459
- return j += c + 10, b;
1459
+ const u = $?.offsetHeight || 0, b = j;
1460
+ return j += u + 10, b;
1460
1461
  });
1461
1462
  }
1462
1463
  function _(j) {
1463
- j.id = t++, j.show = !1, i.value.push(j), Oe(() => {
1464
+ j.id = s++, j.show = !1, i.value.push(j), Oe(() => {
1464
1465
  j.show = !0, f();
1465
1466
  }), setTimeout(() => {
1466
1467
  j.show = !1, Oe(() => {
@@ -1472,36 +1473,36 @@ const fd = {
1472
1473
  }
1473
1474
  return Me(i, () => {
1474
1475
  Oe(f);
1475
- }), u({
1476
+ }), c({
1476
1477
  addAlert: _
1477
- }), (j, $) => (d(!0), a(P, null, R(i.value, (c, b) => (d(), a("div", {
1478
- key: c.id,
1478
+ }), (j, $) => (d(!0), a(P, null, R(i.value, (u, b) => (d(), a("div", {
1479
+ key: u.id,
1479
1480
  ref_for: !0,
1480
1481
  ref_key: "alertRefs",
1481
1482
  ref: n,
1482
- class: q(["alert-container", y(c.type)]),
1483
- style: Se({
1483
+ class: G(["alert-container", y(u.type)]),
1484
+ style: Le({
1484
1485
  top: `${g.value[b] ?? 0}px`,
1485
- transform: `translateX(${c.show ? "0" : "200%"})`
1486
+ transform: `translateX(${u.show ? "0" : "200%"})`
1486
1487
  }),
1487
1488
  role: "alert"
1488
1489
  }, [
1489
- s("span", {
1490
- class: q(["jsgd-shrink-0 jsgd-w-5 jsgd-h-5", [
1491
- c.type === "error" ? "jsgd-i-mdi-alert-circle" : "jsgd-i-mdi-check-circle",
1492
- c.type === "error" ? "jsgd-text-red-500 dark:jsgd-text-red-400" : "jsgd-text-green-500 dark:jsgd-text-green-400"
1490
+ t("span", {
1491
+ class: G(["jsgd-shrink-0 jsgd-w-5 jsgd-h-5", [
1492
+ u.type === "error" ? "jsgd-i-mdi-alert-circle" : "jsgd-i-mdi-check-circle",
1493
+ u.type === "error" ? "jsgd-text-red-500 dark:jsgd-text-red-400" : "jsgd-text-green-500 dark:jsgd-text-green-400"
1493
1494
  ]])
1494
1495
  }, null, 2),
1495
- s("span", yd, m(c.type === "error" ? "Error" : "Success"), 1),
1496
- s("div", null, [
1497
- s("span", kd, m(c.title), 1),
1498
- s("ul", {
1499
- class: q([
1496
+ t("span", yd, m(u.type === "error" ? "Error" : "Success"), 1),
1497
+ t("div", null, [
1498
+ t("span", kd, m(u.title), 1),
1499
+ t("ul", {
1500
+ class: G([
1500
1501
  "jsgd-mt-1 jsgd-pl-5 jsgd-text-sm jsgd-list-disc jsgd-list-inside",
1501
- c.type === "error" ? "[&::marker]:jsgd-text-red-500" : "[&::marker]:jsgd-text-green-500"
1502
+ u.type === "error" ? "[&::marker]:jsgd-text-red-500" : "[&::marker]:jsgd-text-green-500"
1502
1503
  ])
1503
1504
  }, [
1504
- (d(!0), a(P, null, R(c.messages, (N, Z) => (d(), a("li", { key: Z }, m(N), 1))), 128))
1505
+ (d(!0), a(P, null, R(u.messages, (N, Z) => (d(), a("li", { key: Z }, m(N), 1))), 128))
1505
1506
  ], 2)
1506
1507
  ])
1507
1508
  ], 6))), 128));
@@ -1516,10 +1517,10 @@ const fd = {
1516
1517
  x: "18",
1517
1518
  y: "19.5",
1518
1519
  class: "percentage"
1519
- }, Bd = { class: "jsgd-flex jsgd-items-center" }, Sd = {
1520
+ }, Bd = { class: "jsgd-flex jsgd-items-center" }, Ld = {
1520
1521
  key: 0,
1521
1522
  class: "jsgd-relative jsgd-min-w-[250px]"
1522
- }, Ld = ["placeholder"], Id = {
1523
+ }, Sd = ["placeholder"], Id = {
1523
1524
  key: 0,
1524
1525
  class: "jsgd-flex jsgd-items-center jsgd-gap-2 jsgd-px-4 jsgd-py-3 jsgd-bg-blue-500 jsgd-text-white jsgd-rounded-lg jsgd-text-sm jsgd-font-medium jsgd-animate-[slideIn_0.3s_ease-out] dark:jsgd-bg-blue-600"
1525
1526
  }, Vd = { class: "jsgd-bg-white/20 jsgd-px-2 jsgd-py-1 jsgd-rounded-md jsgd-font-semibold" }, Fd = {
@@ -1528,7 +1529,7 @@ const fd = {
1528
1529
  }, Nd = { class: "jsgd-text-xl jsgd-font-semibold jsgd-text-slate-800 jsgd-mb-2 dark:jsgd-text-slate-100" }, Pd = { class: "jsgd-text-slate-500 jsgd-mb-8 jsgd-max-w-[300px] dark:jsgd-text-slate-400" }, Ed = {
1529
1530
  key: 1,
1530
1531
  class: "jsgd-flex jsgd-flex-col jsgd-flex-1 jsgd-gap-6"
1531
- }, zd = { class: "jsgd-flex-1 jsgd-overflow-auto jsgd-rounded-lg jsgd-border jsgd-border-slate-200 jsgd-bg-white jsgd-shadow-sm table-scroll-container dark:jsgd-border-slate-700 dark:jsgd-bg-slate-900" }, Ud = { class: "jsgd-w-full jsgd-border-collapse jsgd-bg-white dark:jsgd-bg-slate-900" }, Wd = { class: "jsgd-bg-slate-50 jsgd-border-b jsgd-border-slate-200 dark:jsgd-bg-slate-800 dark:jsgd-border-slate-700" }, Rd = { class: "jsgd-w-12 jsgd-p-4" }, Gd = { class: "jsgd-flex jsgd-items-center jsgd-gap-2" }, qd = ["onClick"], Zd = { class: "jsgd-w-48 jsgd-text-xs jsgd-p-4 jsgd-text-right" }, Qd = { class: "jsgd-bg-white dark:jsgd-bg-slate-900" }, Jd = { class: "jsgd-text-center" }, Xd = ["value"], Yd = ["innerHTML"], ea = { key: 1 }, ta = {
1532
+ }, zd = { class: "jsgd-flex-1 jsgd-overflow-auto jsgd-rounded-lg jsgd-border jsgd-border-slate-200 jsgd-bg-white jsgd-shadow-sm table-scroll-container dark:jsgd-border-slate-700 dark:jsgd-bg-slate-900" }, Ud = { class: "jsgd-w-full jsgd-border-collapse jsgd-bg-white dark:jsgd-bg-slate-900" }, Wd = { class: "jsgd-bg-slate-50 jsgd-border-b jsgd-border-slate-200 dark:jsgd-bg-slate-800 dark:jsgd-border-slate-700" }, Rd = { class: "jsgd-w-12 jsgd-p-4" }, qd = { class: "jsgd-flex jsgd-items-center jsgd-gap-2" }, Gd = ["onClick"], Zd = { class: "jsgd-w-48 jsgd-text-xs jsgd-p-4 jsgd-text-right" }, Qd = { class: "jsgd-bg-white dark:jsgd-bg-slate-900" }, Jd = { class: "jsgd-text-center" }, Xd = ["value"], Yd = ["innerHTML"], ea = { key: 1 }, ta = {
1532
1533
  key: 2,
1533
1534
  class: "jsgd-whitespace-nowrap jsgd-overflow-hidden jsgd-text-ellipsis jsgd-flex jsgd-items-center jsgd-gap-2"
1534
1535
  }, sa = {
@@ -1579,10 +1580,10 @@ const fd = {
1579
1580
  }, Ma = {
1580
1581
  key: 1,
1581
1582
  class: "jsgd-text-slate-400 dark:jsgd-text-slate-500"
1582
- }, Da = { class: "jsgd-p-4 jsgd-text-right jsgd-relative jsgd-align-middle" }, $a = { class: "jsgd-flex jsgd-justify-end jsgd-gap-2" }, Aa = ["onClick"], Ta = ["innerHTML"], Oa = { class: "jsgd-hidden md:jsgd-inline" }, Ha = ["onClick"], Ka = ["innerHTML"], Ba = { class: "jsgd-absolute jsgd-bottom-full jsgd-mb-2 jsgd-left-1/2 -jsgd-translate-x-1/2 jsgd-px-2 jsgd-py-1 jsgd-bg-slate-800 jsgd-text-white jsgd-text-xs jsgd-font-medium jsgd-rounded-md jsgd-whitespace-nowrap jsgd-opacity-0 jsgd-invisible jsgd-transition-all jsgd-pointer-events-none group-hover:jsgd-opacity-100 group-hover:jsgd-visible group-hover:-jsgd-translate-y-1 dark:jsgd-bg-slate-700" }, Sa = ["onClick"], La = {
1583
+ }, Da = { class: "jsgd-p-4 jsgd-text-right jsgd-relative jsgd-align-middle" }, $a = { class: "jsgd-flex jsgd-justify-end jsgd-gap-2" }, Aa = ["onClick"], Ta = ["innerHTML"], Oa = { class: "jsgd-hidden md:jsgd-inline" }, Ha = ["onClick"], Ka = ["innerHTML"], Ba = { class: "jsgd-absolute jsgd-bottom-full jsgd-mb-2 jsgd-left-1/2 -jsgd-translate-x-1/2 jsgd-px-2 jsgd-py-1 jsgd-bg-slate-800 jsgd-text-white jsgd-text-xs jsgd-font-medium jsgd-rounded-md jsgd-whitespace-nowrap jsgd-opacity-0 jsgd-invisible jsgd-transition-all jsgd-pointer-events-none group-hover:jsgd-opacity-100 group-hover:jsgd-visible group-hover:-jsgd-translate-y-1 dark:jsgd-bg-slate-700" }, La = ["onClick"], Sa = {
1583
1584
  key: 0,
1584
1585
  class: "jsgd-absolute jsgd-z-10 jsgd-right-4 jsgd-top-full jsgd-mt-2 jsgd-w-48 jsgd-bg-white jsgd-rounded-lg jsgd-shadow-xl jsgd-border jsgd-border-slate-200 jsgd-overflow-hidden dark:jsgd-bg-slate-800 dark:jsgd-border-slate-700"
1585
- }, Ia = ["onClick"], Va = ["innerHTML"], Fa = { class: "jsgd-flex jsgd-flex-col jsgd-gap-4 jsgd-items-center jsgd-justify-between jsgd-p-6 jsgd-bg-slate-50 jsgd-rounded-2xl jsgd-border jsgd-border-slate-200 md:jsgd-flex-row dark:jsgd-bg-slate-800 dark:jsgd-border-slate-700" }, Na = { class: "jsgd-text-sm jsgd-text-slate-500 jsgd-w-md jsgd-text-center md:jsgd-text-left dark:jsgd-text-slate-400" }, Pa = { class: "jsgd-flex jsgd-items-center jsgd-justify-center md:jsgd-items-end md:jsgd-justify-end jsgd-gap-2 jsgd-w-full" }, Ea = ["disabled"], za = { class: "jsgd-hidden sm:jsgd-block" }, Ua = { class: "jsgd-flex jsgd-items-center jsgd-gap-1 jsgd-overflow-x-auto jsgd-max-w-[200px] sm:jsgd-max-w-none no-scrollbar" }, Wa = ["onClick", "disabled"], Ra = ["disabled"], Ga = { class: "jsgd-hidden sm:jsgd-block" }, qa = /* @__PURE__ */ fe({
1586
+ }, Ia = ["onClick"], Va = ["innerHTML"], Fa = { class: "jsgd-flex jsgd-flex-col jsgd-gap-4 jsgd-items-center jsgd-justify-between jsgd-p-6 jsgd-bg-slate-50 jsgd-rounded-2xl jsgd-border jsgd-border-slate-200 md:jsgd-flex-row dark:jsgd-bg-slate-800 dark:jsgd-border-slate-700" }, Na = { class: "jsgd-text-sm jsgd-text-slate-500 jsgd-w-md jsgd-text-center md:jsgd-text-left dark:jsgd-text-slate-400" }, Pa = { class: "jsgd-flex jsgd-items-center jsgd-justify-center md:jsgd-items-end md:jsgd-justify-end jsgd-gap-2 jsgd-w-full" }, Ea = ["disabled"], za = { class: "jsgd-hidden sm:jsgd-block" }, Ua = { class: "jsgd-flex jsgd-items-center jsgd-gap-1 jsgd-overflow-x-auto jsgd-max-w-[200px] sm:jsgd-max-w-none no-scrollbar" }, Wa = ["onClick", "disabled"], Ra = ["disabled"], qa = { class: "jsgd-hidden sm:jsgd-block" }, Ga = /* @__PURE__ */ fe({
1586
1587
  __name: "TabelData",
1587
1588
  props: {
1588
1589
  base: {},
@@ -1598,8 +1599,8 @@ const fd = {
1598
1599
  demo: { type: Boolean, default: () => !1 }
1599
1600
  },
1600
1601
  emits: ["refreshData", "edit", "create", "show", "delete", "deleteMany", "customAction"],
1601
- setup(e, { expose: u, emit: i }) {
1602
- const n = (O) => typeof O == "string" && /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/.test(O), g = (O) => typeof O == "string" && /^\d{4}-\d{2}-\d{2}$/.test(O), t = (O) => typeof O == "string" && /^\d{2}:\d{2}$/.test(O);
1602
+ setup(e, { expose: c, emit: i }) {
1603
+ const n = (O) => typeof O == "string" && /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/.test(O), g = (O) => typeof O == "string" && /^\d{4}-\d{2}-\d{2}$/.test(O), s = (O) => typeof O == "string" && /^\d{2}:\d{2}$/.test(O);
1603
1604
  function y(O, r = "en") {
1604
1605
  try {
1605
1606
  const k = new Date(O), o = r === "id" ? "id-ID" : r;
@@ -1645,8 +1646,8 @@ const fd = {
1645
1646
  if (typeof O != "number") return O;
1646
1647
  const r = b.value.base.lang === "id" ? "id-ID" : "en-US", k = b.value.base.lang === "id" ? "IDR" : "USD";
1647
1648
  return new Intl.NumberFormat(r, { style: "currency", currency: k }).format(O);
1648
- }, c = e, b = V({
1649
- ...c
1649
+ }, u = e, b = V({
1650
+ ...u
1650
1651
  }), N = i, Z = V(null), H = X(() => {
1651
1652
  const O = b.value.base.seoDisplay, r = ce.value;
1652
1653
  if (!O || !b.value.data || r.length === 0)
@@ -1663,14 +1664,14 @@ const fd = {
1663
1664
  return null;
1664
1665
  const W = o.reduce((ge, te) => ge + te, 0);
1665
1666
  return Math.round(W / o.length);
1666
- }), z = X(() => H.value === null ? "" : H.value >= 80 ? "score-good" : H.value >= 50 ? "score-ok" : "score-bad"), A = V(), v = X(() => et[c.base?.lang ?? "en"]), {
1667
+ }), z = X(() => H.value === null ? "" : H.value >= 80 ? "score-good" : H.value >= 50 ? "score-ok" : "score-bad"), A = V(), v = X(() => et[u.base?.lang ?? "en"]), {
1667
1668
  searchQuery: x,
1668
- currentPage: S,
1669
- selectedItems: L,
1669
+ currentPage: L,
1670
+ selectedItems: S,
1670
1671
  selectAll: se,
1671
1672
  showWarningModel: Y,
1672
1673
  showWarningModelSelected: J,
1673
- idData: G,
1674
+ idData: q,
1674
1675
  FormModalOpen: U,
1675
1676
  detailItemModal: oe,
1676
1677
  isUpdate: de,
@@ -1703,12 +1704,12 @@ const fd = {
1703
1704
  N,
1704
1705
  T,
1705
1706
  Z,
1706
- Ge,
1707
+ qe,
1707
1708
  v.value,
1708
1709
  w,
1709
1710
  {
1710
- selectedItems: L,
1711
- idData: G,
1711
+ selectedItems: S,
1712
+ idData: q,
1712
1713
  isUpdate: de,
1713
1714
  FormModalOpen: U,
1714
1715
  detailItemModal: oe,
@@ -1716,29 +1717,29 @@ const fd = {
1716
1717
  showWarningModel: Y,
1717
1718
  showWarningModelSelected: J
1718
1719
  }
1719
- ), xe = V(null);
1720
+ ), ke = V(null);
1720
1721
  function nt(O, r) {
1721
1722
  N("customAction", { key: O, item: r });
1722
1723
  }
1723
- Me(L, (O) => {
1724
+ Me(S, (O) => {
1724
1725
  se.value = O.length === ae.value.length && ae.value.length > 0;
1725
- }), Me(xe, (O) => {
1726
- O ? window.addEventListener("click", pe) : window.removeEventListener("click", pe);
1726
+ }), Me(ke, (O) => {
1727
+ O ? window.addEventListener("click", xe) : window.removeEventListener("click", xe);
1727
1728
  }), Me(x, () => {
1728
- S.value = 1;
1729
+ L.value = 1;
1729
1730
  }), Me(
1730
- () => c.base.dataTabelCustomDisplay || c.base.schema,
1731
+ () => u.base.dataTabelCustomDisplay || u.base.schema,
1731
1732
  async () => {
1732
1733
  Object.assign(b.value, {
1733
- ...c
1734
- }), L.value = [], await T();
1734
+ ...u
1735
+ }), S.value = [], await T();
1735
1736
  }
1736
1737
  ), ze(async () => {
1737
1738
  Object.assign(b.value, {
1738
- ...c
1739
+ ...u
1739
1740
  }), await T();
1740
- }), ct("TableComponents", { ShowAlert: Ge, loader: Z, labels: v });
1741
- function Ge(O, r, k) {
1741
+ }), ut("TableComponents", { ShowAlert: qe, loader: Z, labels: v });
1742
+ function qe(O, r, k) {
1742
1743
  const o = {
1743
1744
  type: O,
1744
1745
  title: r,
@@ -1747,10 +1748,10 @@ const fd = {
1747
1748
  A.value?.addAlert(o);
1748
1749
  }
1749
1750
  function ot(O) {
1750
- xe.value === O ? xe.value = null : xe.value = O;
1751
+ ke.value === O ? ke.value = null : ke.value = O;
1751
1752
  }
1752
- function pe() {
1753
- xe.value = null;
1753
+ function xe() {
1754
+ ke.value = null;
1754
1755
  }
1755
1756
  function we(O) {
1756
1757
  const r = [], k = O?.[b.value?.keys?.idKey ?? "id"];
@@ -1762,7 +1763,7 @@ const fd = {
1762
1763
  icon: o.icon,
1763
1764
  class: o.class || "jsgd-bg-gray-500/10 jsgd-text-gray-500 hover:jsgd-bg-gray-500 hover:jsgd-text-white dark:jsgd-text-gray-400 dark:hover:jsgd-bg-gray-600",
1764
1765
  handler: () => {
1765
- nt(o.key, O), pe();
1766
+ nt(o.key, O), xe();
1766
1767
  }
1767
1768
  });
1768
1769
  return b.value?.feature?.updateActive && r.push({
@@ -1771,7 +1772,7 @@ const fd = {
1771
1772
  icon: '<svg width="16" height="16" viewBox="0 0 24 24" fill="none"><path d="M11 5H6C4.89543 5 4 5.89543 4 7V18C4 19.1046 4.89543 20 6 20H17C18.1046 20 19 19.1046 19 18V13M17.5858 3.58579C18.3668 2.80474 19.6332 2.80474 20.4142 3.58579C21.1953 4.36683 21.1953 5.63316 20.4142 6.41421L11.8284 15H9L9 12.1716L17.5858 3.58579Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',
1772
1773
  class: "jsgd-bg-blue-500/10 jsgd-text-blue-500 hover:jsgd-bg-blue-500 hover:jsgd-text-white dark:jsgd-text-blue-400 dark:hover:jsgd-bg-blue-600",
1773
1774
  handler: () => {
1774
- h(k), pe();
1775
+ h(k), xe();
1775
1776
  }
1776
1777
  }), b.value?.feature?.deleteActive && r.push({
1777
1778
  key: "delete",
@@ -1779,7 +1780,7 @@ const fd = {
1779
1780
  icon: '<svg width="16" height="16" viewBox="0 0 24 24" fill="none"><path d="M19 7L18.1327 19.1425C18.0579 20.1891 17.187 21 16.1378 21H7.86224C6.81296 21 5.94208 20.1891 5.86732 19.1425L5 7M10 11V17M14 11V17M15 7V4C15 3.44772 14.5523 3 14 3H10C9.44772 3 9 3.44772 9 4V7M4 7H20" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',
1780
1781
  class: "jsgd-bg-red-500/10 jsgd-text-red-500 hover:jsgd-bg-red-500 hover:jsgd-text-white dark:jsgd-text-red-400 dark:hover:jsgd-bg-red-600",
1781
1782
  handler: () => {
1782
- B(k), pe();
1783
+ B(k), xe();
1783
1784
  }
1784
1785
  }), b.value?.feature?.displayActive && r.push({
1785
1786
  key: "display",
@@ -1787,14 +1788,14 @@ const fd = {
1787
1788
  icon: '<svg width="16" height="16" viewBox="0 0 24 24" fill="none"><path d="M1 12C1 12 5 4 12 4C19 4 23 12 23 12C23 12 19 20 12 20C5 20 1 12 1 12Z" stroke="currentColor" stroke-width="2"/><path d="M12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z" stroke="currentColor" stroke-width="2"/></svg>',
1788
1789
  class: "jsgd-bg-slate-500/10 jsgd-text-slate-500 hover:jsgd-bg-slate-500 hover:jsgd-text-white dark:jsgd-text-slate-400 dark:hover:jsgd-bg-slate-400",
1789
1790
  handler: () => {
1790
- I(k), pe();
1791
+ I(k), xe();
1791
1792
  }
1792
1793
  }), r;
1793
1794
  }
1794
- return u({
1795
+ return c({
1795
1796
  refreshData: T
1796
1797
  }), (O, r) => (d(), a("div", pd, [
1797
- K(l(ht), {
1798
+ K(l(ft), {
1798
1799
  ref_key: "loader",
1799
1800
  ref: Z
1800
1801
  }, null, 512),
@@ -1803,7 +1804,7 @@ const fd = {
1803
1804
  title: v.value.warning.delete,
1804
1805
  message: `${l(he).name ?? l(he)[b.value?.keys?.nameKey ?? b.value?.keys?.idKey ?? "id"]}`,
1805
1806
  onConfirm: r[0] || (r[0] = () => {
1806
- l(G) !== null && l(at)(l(G));
1807
+ l(q) !== null && l(at)(l(q));
1807
1808
  }),
1808
1809
  onClose: l(ne)
1809
1810
  }, null, 8, ["title", "message", "onClose"])) : F("", !0),
@@ -1811,7 +1812,7 @@ const fd = {
1811
1812
  key: 1,
1812
1813
  title: v.value.warning.deleteMany,
1813
1814
  message: l(le),
1814
- onConfirm: r[1] || (r[1] = () => l(lt)(l(L))),
1815
+ onConfirm: r[1] || (r[1] = () => l(lt)(l(S))),
1815
1816
  onClose: l(ne)
1816
1817
  }, null, 8, ["title", "message", "onClose"])) : F("", !0),
1817
1818
  l(oe) ? (d(), be(nd, {
@@ -1828,7 +1829,7 @@ const fd = {
1828
1829
  ref_key: "alert",
1829
1830
  ref: A
1830
1831
  }, null, 512),
1831
- l(U) ? (d(), be(mt, {
1832
+ l(U) ? (d(), be(ht, {
1832
1833
  key: 3,
1833
1834
  id: l(de) ?? null,
1834
1835
  "is-update": !!l(de),
@@ -1841,24 +1842,24 @@ const fd = {
1841
1842
  onDataChildRemove: r[3] || (r[3] = (k) => ue.value = k),
1842
1843
  onSubmit: l(je)
1843
1844
  }, null, 8, ["id", "is-update", "schema", "initial-data", "lang", "demo", "seo", "onSubmit"])) : F("", !0),
1844
- s("div", wd, [
1845
- s("div", _d, [
1846
- s("div", Cd, [
1847
- s("div", Md, [
1848
- s("div", Dd, [
1845
+ t("div", wd, [
1846
+ t("div", _d, [
1847
+ t("div", Cd, [
1848
+ t("div", Md, [
1849
+ t("div", Dd, [
1849
1850
  b.value?.feature?.createActive ? (d(), a("button", {
1850
1851
  key: 0,
1851
1852
  onClick: r[4] || (r[4] = (k) => l(M)()),
1852
1853
  class: "jsgd-flex jsgd-items-center jsgd-gap-2 jsgd-px-6 jsgd-py-3 jsgd-border-none jsgd-rounded-lg jsgd-text-sm jsgd-font-medium jsgd-cursor-pointer jsgd-transition-all jsgd-relative jsgd-overflow-hidden disabled:jsgd-opacity-50 disabled:jsgd-cursor-not-allowed disabled:jsgd-transform-none 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/20 before:jsgd-to-transparent before:jsgd-transition-[left] before:jsgd-duration-600 hover:before:jsgd-left-full jsgd-bg-gradient-to-br jsgd-from-blue-500 jsgd-to-blue-600 jsgd-text-white jsgd-shadow-md hover:jsgd-shadow-lg hover:-jsgd-translate-y-0.5 dark:jsgd-from-blue-600 dark:jsgd-to-blue-700"
1853
1854
  }, [
1854
- r[14] || (r[14] = s("span", { class: "jsgd-flex jsgd-items-center jsgd-justify-center" }, [
1855
- s("svg", {
1855
+ r[14] || (r[14] = t("span", { class: "jsgd-flex jsgd-items-center jsgd-justify-center" }, [
1856
+ t("svg", {
1856
1857
  width: "16",
1857
1858
  height: "16",
1858
1859
  viewBox: "0 0 24 24",
1859
1860
  fill: "none"
1860
1861
  }, [
1861
- s("path", {
1862
+ t("path", {
1862
1863
  d: "M12 5V19M5 12H19",
1863
1864
  stroke: "currentColor",
1864
1865
  "stroke-width": "2",
@@ -1867,24 +1868,24 @@ const fd = {
1867
1868
  })
1868
1869
  ])
1869
1870
  ], -1)),
1870
- ye(" " + m(v.value?.btn?.add), 1)
1871
+ pe(" " + m(v.value?.btn?.add), 1)
1871
1872
  ])) : F("", !0),
1872
- l(L).length > 0 && b.value?.feature?.deleteManyActive ? (d(), a("button", {
1873
+ l(S).length > 0 && b.value?.feature?.deleteManyActive ? (d(), a("button", {
1873
1874
  key: 1,
1874
1875
  onClick: r[5] || (r[5] = (k) => l(Q)()),
1875
- class: q(["jsgd-flex jsgd-items-center jsgd-gap-2 jsgd-px-6 jsgd-py-3 jsgd-border-none jsgd-rounded-lg jsgd-text-sm jsgd-font-medium jsgd-cursor-pointer jsgd-transition-all jsgd-relative jsgd-overflow-hidden disabled:jsgd-opacity-50 disabled:jsgd-cursor-not-allowed disabled:jsgd-transform-none 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/20 before:jsgd-to-transparent before:jsgd-transition-[left] before:jsgd-duration-600 hover:before:jsgd-left-full jsgd-bg-gradient-to-br jsgd-from-red-500 jsgd-to-red-600 jsgd-text-white jsgd-shadow-md hover:jsgd-shadow-lg hover:-jsgd-translate-y-0.5 dark:jsgd-from-red-600 dark:jsgd-to-red-700", {
1876
- "jsgd-bg-slate-100 jsgd-text-slate-400 dark:jsgd-bg-slate-700 dark:jsgd-text-slate-500": l(L).length === 0
1876
+ class: G(["jsgd-flex jsgd-items-center jsgd-gap-2 jsgd-px-6 jsgd-py-3 jsgd-border-none jsgd-rounded-lg jsgd-text-sm jsgd-font-medium jsgd-cursor-pointer jsgd-transition-all jsgd-relative jsgd-overflow-hidden disabled:jsgd-opacity-50 disabled:jsgd-cursor-not-allowed disabled:jsgd-transform-none 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/20 before:jsgd-to-transparent before:jsgd-transition-[left] before:jsgd-duration-600 hover:before:jsgd-left-full jsgd-bg-gradient-to-br jsgd-from-red-500 jsgd-to-red-600 jsgd-text-white jsgd-shadow-md hover:jsgd-shadow-lg hover:-jsgd-translate-y-0.5 dark:jsgd-from-red-600 dark:jsgd-to-red-700", {
1877
+ "jsgd-bg-slate-100 jsgd-text-slate-400 dark:jsgd-bg-slate-700 dark:jsgd-text-slate-500": l(S).length === 0
1877
1878
  }]),
1878
- disabled: l(L).length === 0
1879
+ disabled: l(S).length === 0
1879
1880
  }, [
1880
- r[15] || (r[15] = s("span", { class: "jsgd-flex jsgd-items-center jsgd-justify-center" }, [
1881
- s("svg", {
1881
+ r[15] || (r[15] = t("span", { class: "jsgd-flex jsgd-items-center jsgd-justify-center" }, [
1882
+ t("svg", {
1882
1883
  width: "16",
1883
1884
  height: "16",
1884
1885
  viewBox: "0 0 24 24",
1885
1886
  fill: "none"
1886
1887
  }, [
1887
- s("path", {
1888
+ t("path", {
1888
1889
  d: "M19 7L18.1327 19.1425C18.0579 20.1891 17.187 21 16.1378 21H7.86224C6.81296 21 5.94208 20.1891 5.86732 19.1425L5 7M10 11V17M14 11V17M15 7V4C15 3.44772 14.5523 3 14 3H10C9.44772 3 9 3.44772 9 4V7M4 7H20",
1889
1890
  stroke: "currentColor",
1890
1891
  "stroke-width": "2",
@@ -1893,37 +1894,37 @@ const fd = {
1893
1894
  })
1894
1895
  ])
1895
1896
  ], -1)),
1896
- ye(" " + m(v.value?.btn?.deleteMany), 1)
1897
+ pe(" " + m(v.value?.btn?.deleteMany), 1)
1897
1898
  ], 10, $d)) : F("", !0)
1898
1899
  ])
1899
1900
  ]),
1900
1901
  H.value !== null ? (d(), a("div", Ad, [
1901
- s("div", Td, [
1902
+ t("div", Td, [
1902
1903
  (d(), a("svg", Od, [
1903
- r[16] || (r[16] = s("path", {
1904
+ r[16] || (r[16] = t("path", {
1904
1905
  class: "circle-bg",
1905
1906
  d: "M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"
1906
1907
  }, null, -1)),
1907
- s("path", {
1908
- class: q(["circle", z.value]),
1908
+ t("path", {
1909
+ class: G(["circle", z.value]),
1909
1910
  "stroke-dasharray": `${H.value}, 100`,
1910
1911
  d: "M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"
1911
1912
  }, null, 10, Hd),
1912
- s("text", Kd, m(H.value), 1)
1913
+ t("text", Kd, m(H.value), 1)
1913
1914
  ]))
1914
1915
  ]),
1915
- r[17] || (r[17] = s("span", { class: "jsgd-text-sm jsgd-font-medium jsgd-text-slate-600 dark:jsgd-text-slate-300" }, "Average SEO Score", -1))
1916
+ r[17] || (r[17] = t("span", { class: "jsgd-text-sm jsgd-font-medium jsgd-text-slate-600 dark:jsgd-text-slate-300" }, "Average SEO Score", -1))
1916
1917
  ])) : F("", !0),
1917
- s("div", Bd, [
1918
- b.value?.feature?.searchQueryActive ? (d(), a("div", Sd, [
1919
- r[18] || (r[18] = s("div", { class: "jsgd-absolute jsgd-left-3 jsgd-top-1/2 -jsgd-translate-y-1/2 jsgd-text-slate-400 jsgd-flex jsgd-items-center jsgd-justify-center dark:jsgd-text-slate-500" }, [
1920
- s("svg", {
1918
+ t("div", Bd, [
1919
+ b.value?.feature?.searchQueryActive ? (d(), a("div", Ld, [
1920
+ r[18] || (r[18] = t("div", { class: "jsgd-absolute jsgd-left-3 jsgd-top-1/2 -jsgd-translate-y-1/2 jsgd-text-slate-400 jsgd-flex jsgd-items-center jsgd-justify-center dark:jsgd-text-slate-500" }, [
1921
+ t("svg", {
1921
1922
  width: "16",
1922
1923
  height: "16",
1923
1924
  viewBox: "0 0 24 24",
1924
1925
  fill: "none"
1925
1926
  }, [
1926
- s("path", {
1927
+ t("path", {
1927
1928
  d: "M21 21L16.514 16.506M19 10.5C19 15.194 15.194 19 10.5 19C5.806 19 2 15.194 2 10.5C2 5.806 5.806 2 10.5 2C15.194 2 19 5.806 19 10.5Z",
1928
1929
  stroke: "currentColor",
1929
1930
  "stroke-width": "2",
@@ -1932,59 +1933,59 @@ const fd = {
1932
1933
  })
1933
1934
  ])
1934
1935
  ], -1)),
1935
- Ve(s("input", {
1936
+ Ve(t("input", {
1936
1937
  "onUpdate:modelValue": r[6] || (r[6] = (k) => Fe(x) ? x.value = k : null),
1937
1938
  type: "text",
1938
1939
  placeholder: v.value?.search || "Search...",
1939
1940
  class: "jsgd-w-full jsgd-py-3 jsgd-pr-3 jsgd-pl-10 jsgd-bg-white jsgd-border jsgd-border-slate-200 jsgd-rounded-lg jsgd-box-border jsgd-text-slate-800 jsgd-text-sm jsgd-transition-all focus:jsgd-outline-none focus:jsgd-border-blue-500 focus:jsgd-ring-3 focus:jsgd-ring-blue-500/10 dark:jsgd-bg-slate-900 dark:jsgd-border-slate-700 dark:jsgd-text-slate-100 dark:focus:jsgd-border-blue-400",
1940
- onKeyup: r[7] || (r[7] = Xe((k) => S.value = 1, ["enter"]))
1941
- }, null, 40, Ld), [
1942
- [jt, l(x)]
1941
+ onKeyup: r[7] || (r[7] = Xe((k) => L.value = 1, ["enter"]))
1942
+ }, null, 40, Sd), [
1943
+ [ct, l(x)]
1943
1944
  ])
1944
1945
  ])) : F("", !0)
1945
1946
  ])
1946
1947
  ]),
1947
- l(L).length > 0 ? (d(), a("div", Id, [
1948
- s("span", Vd, m(l(L).length), 1),
1949
- ye(" " + m(l(L).length === 1 ? v.value.selection.selectedOne ?? "item is selected" : v.value.selection.selected ?? "items are selected"), 1)
1948
+ l(S).length > 0 ? (d(), a("div", Id, [
1949
+ t("span", Vd, m(l(S).length), 1),
1950
+ pe(" " + m(l(S).length === 1 ? v.value.selection.selectedOne ?? "item is selected" : v.value.selection.selected ?? "items are selected"), 1)
1950
1951
  ])) : F("", !0)
1951
1952
  ]),
1952
1953
  l(ce).length === 0 ? (d(), a("div", Fd, [
1953
- r[20] || (r[20] = s("div", { class: "jsgd-text-slate-400 jsgd-mb-6 jsgd-opacity-70 dark:jsgd-text-slate-500" }, [
1954
- s("svg", {
1954
+ r[20] || (r[20] = t("div", { class: "jsgd-text-slate-400 jsgd-mb-6 jsgd-opacity-70 dark:jsgd-text-slate-500" }, [
1955
+ t("svg", {
1955
1956
  width: "64",
1956
1957
  height: "64",
1957
1958
  viewBox: "0 0 24 24",
1958
1959
  fill: "none"
1959
1960
  }, [
1960
- s("path", {
1961
+ t("path", {
1961
1962
  d: "M3 7V17C3 18.1046 3.89543 19 5 19H19C20.1046 19 21 18.1046 21 17V9C21 7.89543 20.1046 7 19 7H3ZM3 7V5C3 3.89543 3.89543 3 5 3H9",
1962
1963
  stroke: "currentColor",
1963
1964
  "stroke-width": "2",
1964
1965
  "stroke-linecap": "round"
1965
1966
  }),
1966
- s("path", {
1967
+ t("path", {
1967
1968
  d: "M15 13C15 14.6569 13.6569 16 12 16C10.3431 16 9 14.6569 9 13C9 11.3431 10.3431 10 12 10C13.6569 10 15 11.3431 15 13Z",
1968
1969
  stroke: "currentColor",
1969
1970
  "stroke-width": "2"
1970
1971
  })
1971
1972
  ])
1972
1973
  ], -1)),
1973
- s("h3", Nd, m(v.value?.message?.notFound), 1),
1974
- s("p", Pd, m(v.value?.message?.notFoundDesc || "No data available"), 1),
1974
+ t("h3", Nd, m(v.value?.message?.notFound), 1),
1975
+ t("p", Pd, m(v.value?.message?.notFoundDesc || "No data available"), 1),
1975
1976
  b.value?.feature?.createActive ? (d(), a("button", {
1976
1977
  key: 0,
1977
1978
  onClick: r[8] || (r[8] = (k) => l(M)()),
1978
1979
  class: "jsgd-flex jsgd-items-center jsgd-gap-2 jsgd-px-6 jsgd-py-3 jsgd-border-none jsgd-rounded-lg jsgd-text-sm jsgd-font-medium jsgd-cursor-pointer jsgd-transition-all jsgd-relative jsgd-overflow-hidden disabled:jsgd-opacity-50 disabled:jsgd-cursor-not-allowed disabled:jsgd-transform-none 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/20 before:jsgd-to-transparent before:jsgd-transition-[left] before:jsgd-duration-600 hover:before:jsgd-left-full jsgd-bg-gradient-to-br jsgd-from-blue-500 jsgd-to-blue-600 jsgd-text-white jsgd-shadow-md hover:jsgd-shadow-lg hover:-jsgd-translate-y-0.5 jsgd-animate-[pulse_2s_infinite] dark:jsgd-from-blue-600 dark:jsgd-to-blue-700"
1979
1980
  }, [
1980
- r[19] || (r[19] = s("span", { class: "jsgd-flex jsgd-items-center jsgd-justify-center" }, [
1981
- s("svg", {
1981
+ r[19] || (r[19] = t("span", { class: "jsgd-flex jsgd-items-center jsgd-justify-center" }, [
1982
+ t("svg", {
1982
1983
  width: "16",
1983
1984
  height: "16",
1984
1985
  viewBox: "0 0 24 24",
1985
1986
  fill: "none"
1986
1987
  }, [
1987
- s("path", {
1988
+ t("path", {
1988
1989
  d: "M12 5V19M5 12H19",
1989
1990
  stroke: "currentColor",
1990
1991
  "stroke-width": "2",
@@ -1993,14 +1994,14 @@ const fd = {
1993
1994
  })
1994
1995
  ])
1995
1996
  ], -1)),
1996
- ye(" " + m(v.value?.btn?.add), 1)
1997
+ pe(" " + m(v.value?.btn?.add), 1)
1997
1998
  ])) : F("", !0)
1998
1999
  ])) : (d(), a("div", Ed, [
1999
- s("div", zd, [
2000
- s("table", Ud, [
2001
- s("thead", Wd, [
2002
- s("tr", null, [
2003
- s("th", Rd, [
2000
+ t("div", zd, [
2001
+ t("table", Ud, [
2002
+ t("thead", Wd, [
2003
+ t("tr", null, [
2004
+ t("th", Rd, [
2004
2005
  b.value?.feature?.deleteManyActive ? Ve((d(), a("input", {
2005
2006
  key: 0,
2006
2007
  type: "checkbox",
@@ -2009,27 +2010,27 @@ const fd = {
2009
2010
  "onUpdate:modelValue": r[10] || (r[10] = (k) => Fe(se) ? se.value = k : null),
2010
2011
  class: "jsgd-w-4 jsgd-h-4 jsgd-border jsgd-border-slate-200 jsgd-rounded-sm jsgd-bg-white jsgd-cursor-pointer jsgd-transition-all checked:jsgd-bg-blue-500 checked:jsgd-border-blue-500 focus:jsgd-outline-none focus:jsgd-ring-3 focus:jsgd-ring-blue-500/10 dark:jsgd-border-slate-700 dark:jsgd-bg-slate-900 dark:checked:jsgd-bg-blue-600 dark:checked:jsgd-border-blue-600"
2011
2012
  }, null, 544)), [
2012
- [qe, l(se)]
2013
+ [Ge, l(se)]
2013
2014
  ]) : F("", !0)
2014
2015
  ]),
2015
2016
  (d(!0), a(P, null, R(b.value?.base.headersTabelDisplay, (k, o) => (d(), a("th", {
2016
2017
  key: k,
2017
- class: q(["jsgd-p-4 jsgd-text-left jsgd-text-xs jsgd-font-semibold jsgd-text-slate-500 jsgd-uppercase jsgd-tracking-wider jsgd-whitespace-nowrap dark:jsgd-text-slate-400", { "jsgd-hidden md:jsgd-table-cell": o > 0 }])
2018
+ class: G(["jsgd-p-4 jsgd-text-left jsgd-text-xs jsgd-font-semibold jsgd-text-slate-500 jsgd-uppercase jsgd-tracking-wider jsgd-whitespace-nowrap dark:jsgd-text-slate-400", { "jsgd-hidden md:jsgd-table-cell": o > 0 }])
2018
2019
  }, [
2019
- s("div", Gd, [
2020
- ye(m(k) + " ", 1),
2020
+ t("div", qd, [
2021
+ pe(m(k) + " ", 1),
2021
2022
  b.value?.feature?.sortable ? (d(), a("button", {
2022
2023
  key: 0,
2023
2024
  onClick: (W) => l(Te)(k),
2024
2025
  class: "jsgd-bg-transparent jsgd-border-none jsgd-text-slate-400 jsgd-cursor-pointer jsgd-p-1 jsgd-rounded-md jsgd-transition-all jsgd-flex jsgd-items-center jsgd-justify-center hover:jsgd-text-slate-800 hover:jsgd-bg-slate-100 dark:jsgd-text-slate-500 dark:hover:jsgd-text-slate-100 dark:hover:jsgd-bg-slate-700"
2025
2026
  }, [...r[21] || (r[21] = [
2026
- s("svg", {
2027
+ t("svg", {
2027
2028
  width: "16",
2028
2029
  height: "16",
2029
2030
  viewBox: "0 0 24 24",
2030
2031
  fill: "none"
2031
2032
  }, [
2032
- s("path", {
2033
+ t("path", {
2033
2034
  d: "M8 9L12 5L16 9M16 15L12 19L8 15",
2034
2035
  stroke: "currentColor",
2035
2036
  "stroke-width": "2",
@@ -2037,31 +2038,31 @@ const fd = {
2037
2038
  "stroke-linejoin": "round"
2038
2039
  })
2039
2040
  ], -1)
2040
- ])], 8, qd)) : F("", !0)
2041
+ ])], 8, Gd)) : F("", !0)
2041
2042
  ])
2042
2043
  ], 2))), 128)),
2043
- s("th", Zd, m(v.value?.action || "Actions"), 1)
2044
+ t("th", Zd, m(v.value?.action || "Actions"), 1)
2044
2045
  ])
2045
2046
  ]),
2046
- s("tbody", Qd, [
2047
+ t("tbody", Qd, [
2047
2048
  (d(!0), a(P, null, R(l(ae), (k) => (d(), a("tr", {
2048
2049
  key: k?.[b.value?.keys?.idKey ?? "id"],
2049
2050
  class: "jsgd-border-b jsgd-border-slate-50 jsgd-transition-all hover:jsgd-bg-slate-50 dark:jsgd-border-slate-800 dark:hover:jsgd-bg-slate-800"
2050
2051
  }, [
2051
- s("td", Jd, [
2052
+ t("td", Jd, [
2052
2053
  b.value?.feature?.deleteManyActive ? Ve((d(), a("input", {
2053
2054
  key: 0,
2054
2055
  type: "checkbox",
2055
- "onUpdate:modelValue": r[11] || (r[11] = (o) => Fe(L) ? L.value = o : null),
2056
+ "onUpdate:modelValue": r[11] || (r[11] = (o) => Fe(S) ? S.value = o : null),
2056
2057
  value: k?.[b.value?.keys?.idKey ?? "id"],
2057
2058
  class: "jsgd-w-4 jsgd-h-4 jsgd-border jsgd-border-slate-200 jsgd-rounded-sm jsgd-bg-white jsgd-cursor-pointer jsgd-transition-all checked:jsgd-bg-blue-500 checked:jsgd-border-blue-500 focus:jsgd-outline-none focus:jsgd-ring-3 focus:jsgd-ring-blue-500/10 dark:jsgd-border-slate-700 dark:jsgd-bg-slate-900 dark:checked:jsgd-bg-blue-600 dark:checked:jsgd-border-blue-600"
2058
2059
  }, null, 8, Xd)), [
2059
- [qe, l(L)]
2060
+ [Ge, l(S)]
2060
2061
  ]) : F("", !0)
2061
2062
  ]),
2062
2063
  (d(!0), a(P, null, R(l(cd)(k), (o, W, ge) => (d(), a("td", {
2063
2064
  key: W,
2064
- class: q(["jsgd-p-4 jsgd-text-sm jsgd-text-slate-500 jsgd-max-w-[200px] dark:jsgd-text-slate-400", {
2065
+ class: G(["jsgd-p-4 jsgd-text-sm jsgd-text-slate-500 jsgd-max-w-[200px] dark:jsgd-text-slate-400", {
2065
2066
  "jsgd-hidden md:jsgd-table-cell": ge > 0,
2066
2067
  "jsgd-font-semibold jsgd-text-slate-800 dark:jsgd-text-slate-100": ge === 0
2067
2068
  }])
@@ -2072,28 +2073,28 @@ const fd = {
2072
2073
  innerHTML: o,
2073
2074
  class: "jsgd-max-w-full jsgd-max-h-16 jsgd-overflow-hidden"
2074
2075
  }, null, 8, Yd)) : j(W) === "boolean" ? (d(), a("div", ea, [
2075
- s("span", {
2076
- class: q(["jsgd-px-3 jsgd-py-1 jsgd-rounded-full jsgd-text-xs jsgd-font-medium jsgd-inline-block", {
2076
+ t("span", {
2077
+ class: G(["jsgd-px-3 jsgd-py-1 jsgd-rounded-full jsgd-text-xs jsgd-font-medium jsgd-inline-block", {
2077
2078
  "jsgd-bg-green-500/10 jsgd-text-emerald-500 dark:jsgd-text-emerald-400": o,
2078
2079
  "jsgd-bg-red-500/10 jsgd-text-red-500 dark:jsgd-text-red-400": !o
2079
2080
  }])
2080
2081
  }, m(o ? v.value?.btn.toogle?.active || "Active" : v.value?.btn.toogle?.inactive || "Inactive"), 3)
2081
2082
  ])) : j(W) === "dateTime" || n(o) ? (d(), a("div", ta, [
2082
- r[22] || (r[22] = s("svg", {
2083
+ r[22] || (r[22] = t("svg", {
2083
2084
  width: "14",
2084
2085
  height: "14",
2085
2086
  viewBox: "0 0 24 24",
2086
2087
  fill: "none",
2087
2088
  class: "jsgd-shrink-0 jsgd-text-slate-500 dark:jsgd-text-slate-400"
2088
2089
  }, [
2089
- s("path", {
2090
+ t("path", {
2090
2091
  d: "M8 7V3M16 7V3M4 11H20M5 21H19C20.1046 21 21 20.1046 21 19V7C21 5.89543 20.1046 5 19 5H5C3.89543 5 3 5.89543 3 7V19C3 20.1046 3.89543 21 5 21Z",
2091
2092
  stroke: "currentColor",
2092
2093
  "stroke-width": "2",
2093
2094
  "stroke-linecap": "round",
2094
2095
  "stroke-linejoin": "round"
2095
2096
  }),
2096
- s("path", {
2097
+ t("path", {
2097
2098
  d: "M12 15H12.01M12 18H12.01M16 15H16.01M16 18H16.01M8 15H8.01M8 18H8.01",
2098
2099
  stroke: "currentColor",
2099
2100
  "stroke-width": "2",
@@ -2101,16 +2102,16 @@ const fd = {
2101
2102
  "stroke-linejoin": "round"
2102
2103
  })
2103
2104
  ], -1)),
2104
- s("span", null, m(y(o, b.value.base.lang ?? "en")), 1)
2105
+ t("span", null, m(y(o, b.value.base.lang ?? "en")), 1)
2105
2106
  ])) : j(W) === "date" || g(o) ? (d(), a("div", sa, [
2106
- r[23] || (r[23] = s("svg", {
2107
+ r[23] || (r[23] = t("svg", {
2107
2108
  width: "14",
2108
2109
  height: "14",
2109
2110
  viewBox: "0 0 24 24",
2110
2111
  fill: "none",
2111
2112
  class: "jsgd-shrink-0 jsgd-text-slate-500 dark:jsgd-text-slate-400"
2112
2113
  }, [
2113
- s("path", {
2114
+ t("path", {
2114
2115
  d: "M8 7V3M16 7V3M4 11H20M5 21H19C20.1046 21 21 20.1046 21 19V7C21 5.89543 20.1046 5 19 5H5C3.89543 5 3 5.89543 3 7V19C3 20.1046 3.89543 21 5 21Z",
2115
2116
  stroke: "currentColor",
2116
2117
  "stroke-width": "2",
@@ -2118,23 +2119,23 @@ const fd = {
2118
2119
  "stroke-linejoin": "round"
2119
2120
  })
2120
2121
  ], -1)),
2121
- s("span", null, m(f(o, b.value.base.lang ?? "en")), 1)
2122
- ])) : j(W) === "time" || t(o) ? (d(), a("div", da, [
2123
- r[24] || (r[24] = s("svg", {
2122
+ t("span", null, m(f(o, b.value.base.lang ?? "en")), 1)
2123
+ ])) : j(W) === "time" || s(o) ? (d(), a("div", da, [
2124
+ r[24] || (r[24] = t("svg", {
2124
2125
  width: "14",
2125
2126
  height: "14",
2126
2127
  viewBox: "0 0 24 24",
2127
2128
  fill: "none",
2128
2129
  class: "jsgd-shrink-0 jsgd-text-slate-500 dark:jsgd-text-slate-400"
2129
2130
  }, [
2130
- s("path", {
2131
+ t("path", {
2131
2132
  d: "M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",
2132
2133
  stroke: "currentColor",
2133
2134
  "stroke-width": "2",
2134
2135
  "stroke-linecap": "round",
2135
2136
  "stroke-linejoin": "round"
2136
2137
  }),
2137
- s("path", {
2138
+ t("path", {
2138
2139
  d: "M12 6V12L16 14",
2139
2140
  stroke: "currentColor",
2140
2141
  "stroke-width": "2",
@@ -2142,10 +2143,10 @@ const fd = {
2142
2143
  "stroke-linejoin": "round"
2143
2144
  })
2144
2145
  ], -1)),
2145
- s("span", null, m(_(o, b.value.base.lang ?? "en")), 1)
2146
+ t("span", null, m(_(o, b.value.base.lang ?? "en")), 1)
2146
2147
  ])) : j(W) === "image" || l(Ie)(o) ? (d(), a("div", aa, [
2147
- s("div", la, [
2148
- s("img", {
2148
+ t("div", la, [
2149
+ t("img", {
2149
2150
  src: l(Pe)(o),
2150
2151
  class: "jsgd-w-full jsgd-h-full jsgd-object-cover",
2151
2152
  alt: `Preview ${W}`
@@ -2154,14 +2155,14 @@ const fd = {
2154
2155
  ])) : j(W) === "arrayColor" || l(id)(o) ? (d(), a("div", oa, [
2155
2156
  (d(!0), a(P, null, R(o.slice(0, 3), (te, ve) => (d(), a("div", {
2156
2157
  key: ve,
2157
- style: Se({ backgroundColor: te }),
2158
+ style: Le({ backgroundColor: te }),
2158
2159
  class: "jsgd-w-6 jsgd-h-6 jsgd-rounded-full jsgd-border-2 jsgd-border-slate-200 jsgd-inline-block jsgd-mr-1 jsgd-cursor-pointer jsgd-transition-all hover:jsgd-scale-110 dark:jsgd-border-slate-700",
2159
2160
  title: te
2160
2161
  }, null, 12, ra))), 128)),
2161
2162
  o.length > 3 ? (d(), a("span", ia, "+" + m(o.length - 3), 1)) : F("", !0)
2162
2163
  ])) : j(W) === "color" || l(dt)(o) ? (d(), a("div", ga, [
2163
- s("div", {
2164
- style: Se({ backgroundColor: o }),
2164
+ t("div", {
2165
+ style: Le({ backgroundColor: o }),
2165
2166
  class: "jsgd-w-8 jsgd-h-8 jsgd-rounded-full jsgd-border-2 jsgd-border-slate-200 jsgd-inline-block jsgd-mr-1 jsgd-cursor-pointer jsgd-transition-all hover:jsgd-scale-110 dark:jsgd-border-slate-700",
2166
2167
  title: o
2167
2168
  }, null, 12, ua)
@@ -2170,7 +2171,7 @@ const fd = {
2170
2171
  key: ve,
2171
2172
  class: "jsgd-w-8 jsgd-h-8 jsgd-rounded-md jsgd-overflow-hidden jsgd-border jsgd-border-slate-200 dark:jsgd-border-slate-700"
2172
2173
  }, [
2173
- s("img", {
2174
+ t("img", {
2174
2175
  src: l(Pe)(te),
2175
2176
  class: "jsgd-w-full jsgd-h-full jsgd-object-cover",
2176
2177
  alt: `Preview ${W}-${ve}`
@@ -2178,20 +2179,20 @@ const fd = {
2178
2179
  ]))), 128)),
2179
2180
  o.length > 3 ? (d(), a("span", ba, "+" + m(o.length - 3), 1)) : F("", !0)
2180
2181
  ])) : j(W) === "file" || l(st)(o) ? (d(), a("div", fa, [
2181
- s("a", {
2182
+ t("a", {
2182
2183
  href: l(Pe)(o),
2183
2184
  target: "_blank",
2184
2185
  rel: "noopener noreferrer",
2185
2186
  class: "jsgd-flex jsgd-items-center jsgd-gap-2 jsgd-text-slate-500 jsgd-transition-colors hover:jsgd-text-blue-500 dark:jsgd-text-slate-400 dark:hover:jsgd-text-blue-400"
2186
2187
  }, [
2187
- r[25] || (r[25] = s("svg", {
2188
+ r[25] || (r[25] = t("svg", {
2188
2189
  width: "16",
2189
2190
  height: "16",
2190
2191
  viewBox: "0 0 24 24",
2191
2192
  fill: "none",
2192
2193
  class: "jsgd-shrink-0"
2193
2194
  }, [
2194
- s("path", {
2195
+ t("path", {
2195
2196
  d: "M14 3V7C14 7.26522 14.1054 7.51957 14.2929 7.70711C14.4805 7.89464 14.7348 8 15 8H19M14 3H7C5.89543 3 5 3.89543 5 5V19C5 20.1046 5.89543 21 7 21H17C18.1046 21 19 20.1046 19 19V8M14 3L19 8",
2196
2197
  stroke: "currentColor",
2197
2198
  "stroke-width": "2",
@@ -2199,7 +2200,7 @@ const fd = {
2199
2200
  "stroke-linejoin": "round"
2200
2201
  })
2201
2202
  ], -1)),
2202
- s("span", ma, m(l(Je)(o)), 1)
2203
+ t("span", ma, m(l(Je)(o)), 1)
2203
2204
  ], 8, ha)
2204
2205
  ])) : j(W) === "arrayFile" || l(gd)(o) ? (d(), a("div", va, m(o.map((te) => l(Je)(te)).join(", ")), 1)) : j(W) === "url" ? (d(), a("a", {
2205
2206
  key: 11,
@@ -2208,21 +2209,21 @@ const fd = {
2208
2209
  rel: "noopener noreferrer",
2209
2210
  class: "jsgd-flex jsgd-items-center jsgd-gap-2 jsgd-text-blue-500 hover:jsgd-underline jsgd-transition-colors dark:jsgd-text-blue-400"
2210
2211
  }, [
2211
- r[26] || (r[26] = s("svg", {
2212
+ r[26] || (r[26] = t("svg", {
2212
2213
  width: "16",
2213
2214
  height: "16",
2214
2215
  viewBox: "0 0 24 24",
2215
2216
  fill: "none",
2216
2217
  class: "jsgd-shrink-0"
2217
2218
  }, [
2218
- s("path", {
2219
+ t("path", {
2219
2220
  d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.72",
2220
2221
  stroke: "currentColor",
2221
2222
  "stroke-width": "2",
2222
2223
  "stroke-linecap": "round",
2223
2224
  "stroke-linejoin": "round"
2224
2225
  }),
2225
- s("path", {
2226
+ t("path", {
2226
2227
  d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.72-1.72",
2227
2228
  stroke: "currentColor",
2228
2229
  "stroke-width": "2",
@@ -2230,32 +2231,32 @@ const fd = {
2230
2231
  "stroke-linejoin": "round"
2231
2232
  })
2232
2233
  ], -1)),
2233
- s("span", ka, m(o), 1)
2234
+ t("span", ka, m(o), 1)
2234
2235
  ], 8, ya)) : j(W) === "currency" ? (d(), a("div", xa, m($(o)), 1)) : j(W) === "rate" ? (d(), a("div", pa, [
2235
- (d(), a(P, null, R(5, (te) => s("svg", {
2236
+ (d(), a(P, null, R(5, (te) => t("svg", {
2236
2237
  key: te,
2237
2238
  width: "16",
2238
2239
  height: "16",
2239
2240
  viewBox: "0 0 24 24",
2240
- class: q(
2241
+ class: G(
2241
2242
  te <= o ? "jsgd-text-amber-400" : "jsgd-text-slate-300 dark:jsgd-text-slate-600"
2242
2243
  )
2243
2244
  }, [...r[27] || (r[27] = [
2244
- s("path", {
2245
+ t("path", {
2245
2246
  fill: "currentColor",
2246
2247
  d: "M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"
2247
2248
  }, null, -1)
2248
2249
  ])], 2)), 64))
2249
2250
  ])) : j(W) === "seo" ? (d(), a("div", wa, [
2250
- s("div", {
2251
- class: q(["jsgd-w-2.5 jsgd-h-2.5 jsgd-rounded-full", {
2251
+ t("div", {
2252
+ class: G(["jsgd-w-2.5 jsgd-h-2.5 jsgd-rounded-full", {
2252
2253
  "jsgd-bg-red-500": o < 50,
2253
2254
  "jsgd-bg-yellow-500": o >= 50 && o < 80,
2254
2255
  "jsgd-bg-emerald-500": o >= 80
2255
2256
  }])
2256
2257
  }, null, 2),
2257
- s("span", {
2258
- class: q(["jsgd-font-semibold", {
2258
+ t("span", {
2259
+ class: G(["jsgd-font-semibold", {
2259
2260
  "jsgd-text-red-600 dark:jsgd-text-red-400": o < 50,
2260
2261
  "jsgd-text-yellow-600 dark:jsgd-text-yellow-400": o >= 50 && o < 80,
2261
2262
  "jsgd-text-emerald-600 dark:jsgd-text-emerald-400": o >= 80
@@ -2264,26 +2265,26 @@ const fd = {
2264
2265
  ])) : Array.isArray(o) ? (d(), a("div", _a, m(o.join(", ")), 1)) : (d(), a("div", Ca, m(o), 1))
2265
2266
  ], 64)) : (d(), a("span", Ma, "—"))
2266
2267
  ], 2))), 128)),
2267
- s("td", Da, [
2268
- s("div", $a, [
2268
+ t("td", Da, [
2269
+ t("div", $a, [
2269
2270
  we(k).length <= 3 ? (d(!0), a(P, { key: 0 }, R(we(k), (o) => (d(), a("button", {
2270
2271
  key: o.key,
2271
2272
  onClick: o.handler,
2272
- class: q([o.class, "jsgd-flex jsgd-items-center jsgd-gap-1.5 jsgd-px-3 jsgd-py-2 jsgd-border-none jsgd-rounded-lg jsgd-text-xs jsgd-font-medium jsgd-cursor-pointer jsgd-transition-all jsgd-whitespace-nowrap hover:-jsgd-translate-y-px"])
2273
+ class: G([o.class, "jsgd-flex jsgd-items-center jsgd-gap-1.5 jsgd-px-3 jsgd-py-2 jsgd-border-none jsgd-rounded-lg jsgd-text-xs jsgd-font-medium jsgd-cursor-pointer jsgd-transition-all jsgd-whitespace-nowrap hover:-jsgd-translate-y-px"])
2273
2274
  }, [
2274
2275
  o.icon ? (d(), a("span", {
2275
2276
  key: 0,
2276
2277
  class: "jsgd-flex jsgd-items-center jsgd-justify-center jsgd-w-4 jsgd-h-4",
2277
2278
  innerHTML: o.icon
2278
2279
  }, null, 8, Ta)) : F("", !0),
2279
- s("span", Oa, m(o.label), 1)
2280
+ t("span", Oa, m(o.label), 1)
2280
2281
  ], 10, Aa))), 128)) : we(k).length <= 5 ? (d(!0), a(P, { key: 1 }, R(we(k), (o) => (d(), a("div", {
2281
2282
  key: o.key,
2282
2283
  class: "jsgd-relative jsgd-group"
2283
2284
  }, [
2284
- s("button", {
2285
+ t("button", {
2285
2286
  onClick: o.handler,
2286
- class: q([o.class, "jsgd-flex jsgd-items-center jsgd-justify-center jsgd-w-9 jsgd-h-9 jsgd-border-none jsgd-rounded-lg jsgd-cursor-pointer jsgd-transition-all hover:-jsgd-translate-y-px"])
2287
+ class: G([o.class, "jsgd-flex jsgd-items-center jsgd-justify-center jsgd-w-9 jsgd-h-9 jsgd-border-none jsgd-rounded-lg jsgd-cursor-pointer jsgd-transition-all hover:-jsgd-translate-y-px"])
2287
2288
  }, [
2288
2289
  o.icon ? (d(), a("span", {
2289
2290
  key: 0,
@@ -2291,19 +2292,19 @@ const fd = {
2291
2292
  innerHTML: o.icon
2292
2293
  }, null, 8, Ka)) : F("", !0)
2293
2294
  ], 10, Ha),
2294
- s("div", Ba, m(o.label), 1)
2295
+ t("div", Ba, m(o.label), 1)
2295
2296
  ]))), 128)) : (d(), a(P, { key: 2 }, [
2296
- s("button", {
2297
+ t("button", {
2297
2298
  onClick: Ye((o) => ot(k?.[b.value?.keys?.idKey ?? "id"]), ["stop"]),
2298
2299
  class: "jsgd-flex jsgd-items-center jsgd-justify-center jsgd-w-9 jsgd-h-9 jsgd-border-none jsgd-rounded-lg jsgd-text-xs jsgd-font-medium jsgd-cursor-pointer jsgd-transition-all jsgd-whitespace-nowrap jsgd-bg-slate-500/10 jsgd-text-slate-500 hover:jsgd-bg-slate-500 hover:jsgd-text-white hover:-jsgd-translate-y-px dark:jsgd-text-slate-400 dark:hover:jsgd-bg-slate-600"
2299
2300
  }, [...r[28] || (r[28] = [
2300
- s("svg", {
2301
+ t("svg", {
2301
2302
  width: "16",
2302
2303
  height: "16",
2303
2304
  viewBox: "0 0 24 24",
2304
2305
  fill: "none"
2305
2306
  }, [
2306
- s("path", {
2307
+ t("path", {
2307
2308
  d: "M5 12H5.01M12 12H12.01M19 12H19.01",
2308
2309
  stroke: "currentColor",
2309
2310
  "stroke-width": "2",
@@ -2311,15 +2312,15 @@ const fd = {
2311
2312
  "stroke-linejoin": "round"
2312
2313
  })
2313
2314
  ], -1)
2314
- ])], 8, Sa),
2315
+ ])], 8, La),
2315
2316
  K(_e, { name: "jsgd-action-menu" }, {
2316
2317
  default: Ce(() => [
2317
- xe.value === k?.[b.value?.keys?.idKey ?? "id"] ? (d(), a("div", La, [
2318
- s("ul", null, [
2318
+ ke.value === k?.[b.value?.keys?.idKey ?? "id"] ? (d(), a("div", Sa, [
2319
+ t("ul", null, [
2319
2320
  (d(!0), a(P, null, R(we(k), (o) => (d(), a("li", {
2320
2321
  key: `dropdown-${o.key}`
2321
2322
  }, [
2322
- s("button", {
2323
+ t("button", {
2323
2324
  onClick: o.handler,
2324
2325
  class: "jsgd-w-full jsgd-flex jsgd-items-center jsgd-gap-3 jsgd-px-4 jsgd-py-2.5 jsgd-text-left jsgd-text-sm jsgd-border-none jsgd-bg-transparent jsgd-cursor-pointer jsgd-transition-colors jsgd-text-slate-700 hover:jsgd-bg-slate-100 dark:jsgd-text-slate-300 dark:hover:jsgd-bg-slate-700/50"
2325
2326
  }, [
@@ -2328,7 +2329,7 @@ const fd = {
2328
2329
  class: "jsgd-flex jsgd-items-center jsgd-justify-center jsgd-w-4 jsgd-h-4",
2329
2330
  innerHTML: o.icon
2330
2331
  }, null, 8, Va)) : F("", !0),
2331
- s("span", null, m(o.label), 1)
2332
+ t("span", null, m(o.label), 1)
2332
2333
  ], 8, Ia)
2333
2334
  ]))), 128))
2334
2335
  ])
@@ -2343,26 +2344,26 @@ const fd = {
2343
2344
  ])
2344
2345
  ])
2345
2346
  ]),
2346
- s("div", Fa, [
2347
- s("div", Na, m(b.value?.pagination?.indicator?.displayingText || "Showing") + " " + m((l(S) - 1) * (b.value?.pagination?.itemsPerPage ?? 5) + 1) + " - " + m(Math.min(
2348
- l(S) * (b.value?.pagination?.itemsPerPage ?? 5),
2347
+ t("div", Fa, [
2348
+ t("div", Na, m(b.value?.pagination?.indicator?.displayingText || "Showing") + " " + m((l(L) - 1) * (b.value?.pagination?.itemsPerPage ?? 5) + 1) + " - " + m(Math.min(
2349
+ l(L) * (b.value?.pagination?.itemsPerPage ?? 5),
2349
2350
  l(ce).length
2350
2351
  )) + " of " + m(l(ce).length) + " " + m(b.value?.pagination?.indicator?.dataText || "") + " data ", 1),
2351
- s("div", Pa, [
2352
- s("button", {
2352
+ t("div", Pa, [
2353
+ t("button", {
2353
2354
  onClick: r[12] || (r[12] = //@ts-ignore
2354
2355
  (...k) => l(p) && l(p)(...k)),
2355
- disabled: l(S) === 1,
2356
+ disabled: l(L) === 1,
2356
2357
  class: "jsgd-flex jsgd-items-center jsgd-gap-2 jsgd-px-2 sm:jsgd-px-4 jsgd-py-2 sm:jsgd-py-3 jsgd-bg-white jsgd-border jsgd-border-slate-200 jsgd-rounded-lg jsgd-text-slate-800 jsgd-text-sm jsgd-font-medium jsgd-cursor-pointer jsgd-transition-all hover:jsgd-bg-slate-100 hover:-jsgd-translate-y-px disabled:jsgd-opacity-50 disabled:jsgd-cursor-not-allowed disabled:jsgd-transform-none dark:jsgd-bg-slate-900 dark:jsgd-border-slate-700 dark:jsgd-text-slate-100 dark:hover:jsgd-bg-slate-800"
2357
2358
  }, [
2358
- r[29] || (r[29] = s("span", { class: "jsgd-flex jsgd-items-center jsgd-justify-center" }, [
2359
- s("svg", {
2359
+ r[29] || (r[29] = t("span", { class: "jsgd-flex jsgd-items-center jsgd-justify-center" }, [
2360
+ t("svg", {
2360
2361
  width: "16",
2361
2362
  height: "16",
2362
2363
  viewBox: "0 0 24 24",
2363
2364
  fill: "none"
2364
2365
  }, [
2365
- s("path", {
2366
+ t("path", {
2366
2367
  d: "M15 18L9 12L15 6",
2367
2368
  stroke: "currentColor",
2368
2369
  "stroke-width": "2",
@@ -2371,33 +2372,33 @@ const fd = {
2371
2372
  })
2372
2373
  ])
2373
2374
  ], -1)),
2374
- s("span", za, m(v.value?.btn?.prev || "Previous"), 1)
2375
+ t("span", za, m(v.value?.btn?.prev || "Previous"), 1)
2375
2376
  ], 8, Ea),
2376
- s("div", Ua, [
2377
+ t("div", Ua, [
2377
2378
  (d(!0), a(P, null, R(l(re), (k) => (d(), a("button", {
2378
2379
  key: k + "",
2379
- onClick: (o) => typeof k == "number" && (S.value = k),
2380
+ onClick: (o) => typeof k == "number" && (L.value = k),
2380
2381
  disabled: k === "...",
2381
- class: q(["jsgd-min-w-8 sm:jsgd-min-w-10 jsgd-h-8 sm:jsgd-h-10 jsgd-flex jsgd-items-center jsgd-justify-center jsgd-rounded-lg jsgd-text-xs sm:jsgd-text-sm jsgd-font-medium jsgd-transition-all jsgd-flex-shrink-0", [
2382
- l(S) === k ? "jsgd-bg-blue-500 jsgd-text-white jsgd-border jsgd-border-blue-500 jsgd-cursor-default dark:jsgd-bg-blue-600 dark:jsgd-border-blue-600" : k === "..." ? "jsgd-bg-transparent jsgd-text-slate-400 jsgd-cursor-default jsgd-border-transparent" : "jsgd-bg-white jsgd-border jsgd-border-slate-200 jsgd-text-slate-800 jsgd-cursor-pointer hover:jsgd-bg-slate-100 dark:jsgd-bg-slate-900 dark:jsgd-border-slate-700 dark:jsgd-text-slate-100 dark:hover:jsgd-bg-slate-800"
2382
+ class: G(["jsgd-min-w-8 sm:jsgd-min-w-10 jsgd-h-8 sm:jsgd-h-10 jsgd-flex jsgd-items-center jsgd-justify-center jsgd-rounded-lg jsgd-text-xs sm:jsgd-text-sm jsgd-font-medium jsgd-transition-all jsgd-flex-shrink-0", [
2383
+ l(L) === k ? "jsgd-bg-blue-500 jsgd-text-white jsgd-border jsgd-border-blue-500 jsgd-cursor-default dark:jsgd-bg-blue-600 dark:jsgd-border-blue-600" : k === "..." ? "jsgd-bg-transparent jsgd-text-slate-400 jsgd-cursor-default jsgd-border-transparent" : "jsgd-bg-white jsgd-border jsgd-border-slate-200 jsgd-text-slate-800 jsgd-cursor-pointer hover:jsgd-bg-slate-100 dark:jsgd-bg-slate-900 dark:jsgd-border-slate-700 dark:jsgd-text-slate-100 dark:hover:jsgd-bg-slate-800"
2383
2384
  ]])
2384
2385
  }, m(k), 11, Wa))), 128))
2385
2386
  ]),
2386
- s("button", {
2387
+ t("button", {
2387
2388
  onClick: r[13] || (r[13] = //@ts-ignore
2388
2389
  (...k) => l(C) && l(C)(...k)),
2389
- disabled: l(S) === l(ie) || l(ie) === 0,
2390
+ disabled: l(L) === l(ie) || l(ie) === 0,
2390
2391
  class: "jsgd-flex jsgd-items-center jsgd-gap-2 jsgd-px-2 sm:jsgd-px-4 jsgd-py-2 sm:jsgd-py-3 jsgd-bg-white jsgd-border jsgd-border-slate-200 jsgd-rounded-lg jsgd-text-slate-800 jsgd-text-sm jsgd-font-medium jsgd-cursor-pointer jsgd-transition-all hover:jsgd-bg-slate-100 hover:-jsgd-translate-y-px disabled:jsgd-opacity-50 disabled:jsgd-cursor-not-allowed disabled:jsgd-transform-none dark:jsgd-bg-slate-900 dark:jsgd-border-slate-700 dark:jsgd-text-slate-100 dark:hover:jsgd-bg-slate-800"
2391
2392
  }, [
2392
- s("span", Ga, m(v.value?.btn?.next || "Next"), 1),
2393
- r[30] || (r[30] = s("span", { class: "jsgd-flex jsgd-items-center jsgd-justify-center" }, [
2394
- s("svg", {
2393
+ t("span", qa, m(v.value?.btn?.next || "Next"), 1),
2394
+ r[30] || (r[30] = t("span", { class: "jsgd-flex jsgd-items-center jsgd-justify-center" }, [
2395
+ t("svg", {
2395
2396
  width: "16",
2396
2397
  height: "16",
2397
2398
  viewBox: "0 0 24 24",
2398
2399
  fill: "none"
2399
2400
  }, [
2400
- s("path", {
2401
+ t("path", {
2401
2402
  d: "M9 18L15 12L9 6",
2402
2403
  stroke: "currentColor",
2403
2404
  "stroke-width": "2",
@@ -2413,7 +2414,7 @@ const fd = {
2413
2414
  ])
2414
2415
  ]));
2415
2416
  }
2416
- }), ll = /* @__PURE__ */ Le(qa, [["__scopeId", "data-v-c975ec7c"]]);
2417
+ }), ll = /* @__PURE__ */ Se(Ga, [["__scopeId", "data-v-c975ec7c"]]);
2417
2418
  export {
2418
2419
  Ke as F,
2419
2420
  nd as M,