@point-hub/papp 0.0.11 → 0.0.12

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.
package/dist/index.js CHANGED
@@ -1,15 +1,77 @@
1
1
  var Ci = Object.defineProperty;
2
2
  var Ei = (e, t, n) => t in e ? Ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var pa = (e, t, n) => (Ei(e, typeof t != "symbol" ? t + "" : t, n), n);
4
- import { defineComponent as U, ref as D, resolveComponent as vt, openBlock as A, createElementBlock as q, normalizeClass as K, createElementVNode as H, createCommentVNode as ie, createBlock as pe, renderSlot as te, toDisplayString as be, createVNode as fe, provide as Ee, inject as Pe, watch as ye, normalizeStyle as xn, createTextVNode as Kn, Fragment as Me, renderList as ht, cloneVNode as _i, h as de, onMounted as re, watchEffect as Ce, nextTick as ge, computed as k, toRaw as ne, onUnmounted as _e, Teleport as Li, reactive as Rr, unref as J, shallowRef as Za, withCtx as Q, Transition as Br, useCssVars as Ii, useSlots as Ai, toRefs as Ja, withKeys as Mi, withDirectives as dt, vShow as Ri, onBeforeUnmount as Zn, isRef as Je, resolveDynamicComponent as He, mergeProps as Bi, normalizeProps as Fi, guardReactiveProps as Vi, getCurrentInstance as ji, isReactive as fa, isVNode as Ni, createApp as va, createSlots as Hi, vModelCheckbox as Qa, resolveDirective as eo, vModelText as Wt, vModelDynamic as Ui } from "vue";
4
+ import { defineComponent as U, ref as D, provide as Ee, openBlock as A, createElementBlock as q, renderSlot as te, inject as Pe, watch as ye, createElementVNode as H, toDisplayString as be, normalizeClass as K, normalizeStyle as xn, createTextVNode as Kn, resolveComponent as vt, createCommentVNode as ie, createBlock as pe, createVNode as fe, Fragment as Me, renderList as ht, cloneVNode as _i, h as de, onMounted as re, watchEffect as Ce, nextTick as ge, computed as k, toRaw as ne, onUnmounted as _e, Teleport as Li, reactive as Rr, unref as J, shallowRef as Za, withCtx as Q, Transition as Br, useCssVars as Ii, useSlots as Ai, toRefs as Ja, withKeys as Mi, withDirectives as dt, vShow as Ri, onBeforeUnmount as Zn, isRef as Je, resolveDynamicComponent as He, mergeProps as Bi, normalizeProps as Fi, guardReactiveProps as Vi, getCurrentInstance as ji, isReactive as fa, isVNode as Ni, createApp as va, createSlots as Hi, vModelCheckbox as Qa, resolveDirective as eo, vModelText as Wt, vModelDynamic as Ui } from "vue";
5
5
  import { defineStore as Fr } from "pinia";
6
- const qi = { class: "alert-icon-container" }, Wi = {
6
+ const qi = { class: "accordion-container" }, Yf = /* @__PURE__ */ U({
7
+ __name: "base-accordion",
8
+ props: {
9
+ alwaysOpen: { type: Boolean, default: !1 }
10
+ },
11
+ setup(e) {
12
+ const n = D(e.alwaysOpen), a = D(0);
13
+ return Ee("alwaysOpen", n), Ee("activeItemId", a), (r, o) => (A(), q("div", qi, [
14
+ te(r.$slots, "default")
15
+ ]));
16
+ }
17
+ }), Wi = { class: "accordion-item" }, zi = 32, Gf = /* @__PURE__ */ U({
18
+ __name: "base-accordion-item",
19
+ props: {
20
+ itemId: {},
21
+ title: { default: "" },
22
+ content: { default: "" }
23
+ },
24
+ setup(e) {
25
+ const t = Pe("alwaysOpen"), n = Pe("activeItemId"), a = D(), r = D(0), o = D(!1);
26
+ ye(n, () => {
27
+ i(), r.value === 0 && (o.value = !1);
28
+ });
29
+ const i = () => {
30
+ o.value && r.value === 0 ? r.value = a.value.scrollHeight + zi : r.value = 0;
31
+ }, l = () => {
32
+ if (o.value = !o.value, t.value) {
33
+ i();
34
+ return;
35
+ }
36
+ n.value !== s.itemId ? n.value = s.itemId : n.value = 0;
37
+ }, s = e;
38
+ return (u, d) => (A(), q("div", Wi, [
39
+ H("button", {
40
+ onClick: d[0] || (d[0] = (h) => l()),
41
+ class: "accordion-title"
42
+ }, [
43
+ te(u.$slots, "title", {}, () => [
44
+ H("span", null, be(s.title), 1)
45
+ ]),
46
+ H("i", {
47
+ class: K(["accordion-collapse-item-icon i-fas-angle-down", {
48
+ "accordiont-collapse-item-icon-active": o.value
49
+ }])
50
+ }, null, 2)
51
+ ]),
52
+ H("div", {
53
+ ref_key: "contentRef",
54
+ ref: a,
55
+ class: K(["accordion-content", {
56
+ "accordion-content-active": o.value
57
+ }]),
58
+ style: xn({
59
+ height: `${r.value}px`
60
+ })
61
+ }, [
62
+ te(u.$slots, "default", {}, () => [
63
+ Kn(be(s.content), 1)
64
+ ])
65
+ ], 6)
66
+ ]));
67
+ }
68
+ }), Yi = { class: "alert-icon-container" }, Gi = {
7
69
  key: 0,
8
70
  class: "alert-icon"
9
- }, zi = {
71
+ }, Xi = {
10
72
  key: 0,
11
73
  class: "block i-far-circle-check"
12
- }, Yi = { class: "alert-text" }, Gi = { class: "font-extrabold" }, qf = /* @__PURE__ */ U({
74
+ }, Ki = { class: "alert-text" }, Zi = { class: "font-extrabold" }, Xf = /* @__PURE__ */ U({
13
75
  __name: "base-alert",
14
76
  props: {
15
77
  title: { default: "" },
@@ -33,9 +95,9 @@ const qi = { class: "alert-icon-container" }, Wi = {
33
95
  key: 0,
34
96
  class: K(n)
35
97
  }, [
36
- H("div", qi, [
37
- i.icon ? (A(), q("div", Wi, [
38
- i.icon === "success" ? (A(), q("i", zi)) : ie("", !0),
98
+ H("div", Yi, [
99
+ i.icon ? (A(), q("div", Gi, [
100
+ i.icon === "success" ? (A(), q("i", Xi)) : ie("", !0),
39
101
  i.icon === "info" ? (A(), pe(s, {
40
102
  key: 1,
41
103
  icon: "i-far-circle-info"
@@ -53,10 +115,10 @@ const qi = { class: "alert-icon-container" }, Wi = {
53
115
  icon: "i-far-triangle-exclamation"
54
116
  })) : ie("", !0)
55
117
  ])) : ie("", !0),
56
- H("div", Yi, [
118
+ H("div", Ki, [
57
119
  H("div", null, [
58
120
  te(i.$slots, "title", {}, () => [
59
- H("span", Gi, be(t.title), 1)
121
+ H("span", Zi, be(t.title), 1)
60
122
  ])
61
123
  ]),
62
124
  H("div", null, [
@@ -75,69 +137,7 @@ const qi = { class: "alert-icon-container" }, Wi = {
75
137
  ]));
76
138
  };
77
139
  }
78
- }), Xi = { class: "accordion-container" }, Wf = /* @__PURE__ */ U({
79
- __name: "base-accordion",
80
- props: {
81
- alwaysOpen: { type: Boolean, default: !1 }
82
- },
83
- setup(e) {
84
- const n = D(e.alwaysOpen), a = D(0);
85
- return Ee("alwaysOpen", n), Ee("activeItemId", a), (r, o) => (A(), q("div", Xi, [
86
- te(r.$slots, "default")
87
- ]));
88
- }
89
- }), Ki = { class: "accordion-item" }, Zi = 32, zf = /* @__PURE__ */ U({
90
- __name: "base-accordion-item",
91
- props: {
92
- itemId: {},
93
- title: { default: "" },
94
- content: { default: "" }
95
- },
96
- setup(e) {
97
- const t = Pe("alwaysOpen"), n = Pe("activeItemId"), a = D(), r = D(0), o = D(!1);
98
- ye(n, () => {
99
- i(), r.value === 0 && (o.value = !1);
100
- });
101
- const i = () => {
102
- o.value && r.value === 0 ? r.value = a.value.scrollHeight + Zi : r.value = 0;
103
- }, l = () => {
104
- if (o.value = !o.value, t.value) {
105
- i();
106
- return;
107
- }
108
- n.value !== s.itemId ? n.value = s.itemId : n.value = 0;
109
- }, s = e;
110
- return (u, d) => (A(), q("div", Ki, [
111
- H("button", {
112
- onClick: d[0] || (d[0] = (h) => l()),
113
- class: "accordion-title"
114
- }, [
115
- te(u.$slots, "title", {}, () => [
116
- H("span", null, be(s.title), 1)
117
- ]),
118
- H("i", {
119
- class: K(["accordion-collapse-item-icon i-fas-angle-down", {
120
- "accordiont-collapse-item-icon-active": o.value
121
- }])
122
- }, null, 2)
123
- ]),
124
- H("div", {
125
- ref_key: "contentRef",
126
- ref: a,
127
- class: K(["accordion-content", {
128
- "accordion-content-active": o.value
129
- }]),
130
- style: xn({
131
- height: `${r.value}px`
132
- })
133
- }, [
134
- te(u.$slots, "default", {}, () => [
135
- Kn(be(s.content), 1)
136
- ])
137
- ], 6)
138
- ]));
139
- }
140
- }), Ji = ["src"], Yf = /* @__PURE__ */ U({
140
+ }), Ji = ["src"], Kf = /* @__PURE__ */ U({
141
141
  __name: "base-avatar",
142
142
  props: {
143
143
  name: {},
@@ -188,10 +188,10 @@ function tl(e, t) {
188
188
  te(e.$slots, "default")
189
189
  ]);
190
190
  }
191
- const Gf = /* @__PURE__ */ jt(Qi, [["render", tl]]), nl = {
191
+ const Zf = /* @__PURE__ */ jt(Qi, [["render", tl]]), nl = {
192
192
  key: 0,
193
193
  class: "h-2 w-2 rounded-full bg-current"
194
- }, Xf = /* @__PURE__ */ U({
194
+ }, Jf = /* @__PURE__ */ U({
195
195
  __name: "base-badge",
196
196
  props: {
197
197
  color: { default: "primary" },
@@ -208,36 +208,7 @@ const Gf = /* @__PURE__ */ jt(Qi, [["render", tl]]), nl = {
208
208
  te(r.$slots, "default")
209
209
  ]));
210
210
  }
211
- }), rl = {
212
- key: 0,
213
- class: "spinner spinner-black spinner-xs"
214
- }, al = {
215
- key: 1,
216
- class: "spinner spinner-white spinner-xs"
217
- }, Kf = /* @__PURE__ */ U({
218
- __name: "base-button",
219
- props: {
220
- size: { default: "md" },
221
- color: { default: "primary" },
222
- variant: { default: "fill" },
223
- shape: { default: "round" },
224
- isBlock: { type: Boolean, default: !1 },
225
- isLoading: { type: Boolean, default: !1 }
226
- },
227
- setup(e) {
228
- const t = e, n = [];
229
- let a = "";
230
- t.variant === "fill" && (a = `btn-${t.color}`), t.variant === "light" && (a = `btn-light-${t.color}`), t.variant === "outline" && (a = `btn-outline-${t.color}`), t.variant === "text" && (a = `btn-text-${t.color}`), n.push(`${a}`);
231
- let r = "";
232
- return t.shape === "sharp" && (r = "rounded-none"), t.shape === "round" && (r = "rounded-lg"), t.shape === "pill" && (r = "rounded-full"), n.push(`${r}`), t.isBlock && n.push("btn-block"), n.push(`btn-${t.size}`), (o, i) => (A(), q("button", {
233
- class: K(["btn", n])
234
- }, [
235
- te(o.$slots, "default"),
236
- o.isLoading && (o.variant === "text" || o.variant === "outline") ? (A(), q("span", rl)) : ie("", !0),
237
- o.isLoading && (o.variant === "fill" || o.variant === "light") ? (A(), q("span", al)) : ie("", !0)
238
- ]));
239
- }
240
- }), ol = { class: "breadcrumb-ul" }, Zf = /* @__PURE__ */ U({
211
+ }), rl = { class: "breadcrumb-ul" }, Qf = /* @__PURE__ */ U({
241
212
  __name: "base-breadcrumb",
242
213
  props: {
243
214
  items: {},
@@ -245,7 +216,7 @@ const Gf = /* @__PURE__ */ jt(Qi, [["render", tl]]), nl = {
245
216
  },
246
217
  setup(e) {
247
218
  const t = e;
248
- return (n, a) => (A(), q("ul", ol, [
219
+ return (n, a) => (A(), q("ul", rl, [
249
220
  (A(!0), q(Me, null, ht(t.items, (r, o) => (A(), q("li", {
250
221
  key: o,
251
222
  class: "breadcrumb-li"
@@ -265,7 +236,36 @@ const Gf = /* @__PURE__ */ jt(Qi, [["render", tl]]), nl = {
265
236
  ]))), 128))
266
237
  ]));
267
238
  }
268
- }), il = { class: "card-header" }, ll = { class: "card-body" }, Jf = /* @__PURE__ */ U({
239
+ }), al = {
240
+ key: 0,
241
+ class: "spinner spinner-black spinner-xs"
242
+ }, ol = {
243
+ key: 1,
244
+ class: "spinner spinner-white spinner-xs"
245
+ }, ev = /* @__PURE__ */ U({
246
+ __name: "base-button",
247
+ props: {
248
+ size: { default: "md" },
249
+ color: { default: "primary" },
250
+ variant: { default: "fill" },
251
+ shape: { default: "round" },
252
+ isBlock: { type: Boolean, default: !1 },
253
+ isLoading: { type: Boolean, default: !1 }
254
+ },
255
+ setup(e) {
256
+ const t = e, n = [];
257
+ let a = "";
258
+ t.variant === "fill" && (a = `btn-${t.color}`), t.variant === "light" && (a = `btn-light-${t.color}`), t.variant === "outline" && (a = `btn-outline-${t.color}`), t.variant === "text" && (a = `btn-text-${t.color}`), n.push(`${a}`);
259
+ let r = "";
260
+ return t.shape === "sharp" && (r = "rounded-none"), t.shape === "round" && (r = "rounded-lg"), t.shape === "pill" && (r = "rounded-full"), n.push(`${r}`), t.isBlock && n.push("btn-block"), n.push(`btn-${t.size}`), (o, i) => (A(), q("button", {
261
+ class: K(["btn", n])
262
+ }, [
263
+ te(o.$slots, "default"),
264
+ o.isLoading && (o.variant === "text" || o.variant === "outline") ? (A(), q("span", al)) : ie("", !0),
265
+ o.isLoading && (o.variant === "fill" || o.variant === "light") ? (A(), q("span", ol)) : ie("", !0)
266
+ ]));
267
+ }
268
+ }), il = { class: "card-header" }, ll = { class: "card-body" }, tv = /* @__PURE__ */ U({
269
269
  __name: "base-card",
270
270
  props: {
271
271
  shadow: { type: Boolean, default: !0 }
@@ -285,7 +285,7 @@ const Gf = /* @__PURE__ */ jt(Qi, [["render", tl]]), nl = {
285
285
  }), sl = {
286
286
  key: 0,
287
287
  class: "text-xs text-slate-500"
288
- }, Qf = /* @__PURE__ */ U({
288
+ }, nv = /* @__PURE__ */ U({
289
289
  __name: "base-divider",
290
290
  props: {
291
291
  text: {},
@@ -2565,7 +2565,7 @@ let _o = Ve.RenderStrategy, Tr = U({ props: { as: { type: [Object, String], defa
2565
2565
  return le({ ourProps: { ...h, as: "template" }, theirProps: {}, slot: {}, slots: { ...a, default: () => [de(Vs, { onBeforeEnter: () => t("beforeEnter"), onAfterEnter: () => t("afterEnter"), onBeforeLeave: () => t("beforeLeave"), onAfterLeave: () => t("afterLeave"), ...n, ...h, ...d }, a.default)] }, attrs: {}, features: _o, visible: i.value === "visible", name: "Transition" });
2566
2566
  };
2567
2567
  } });
2568
- const js = { class: "dropdown-trigger-button" }, ev = /* @__PURE__ */ U({
2568
+ const js = { class: "dropdown-trigger-button" }, rv = /* @__PURE__ */ U({
2569
2569
  __name: "base-dropdown",
2570
2570
  props: {
2571
2571
  position: { default: "left" },
@@ -2611,7 +2611,7 @@ const js = { class: "dropdown-trigger-button" }, ev = /* @__PURE__ */ U({
2611
2611
  });
2612
2612
  };
2613
2613
  }
2614
- }), tv = /* @__PURE__ */ U({
2614
+ }), av = /* @__PURE__ */ U({
2615
2615
  __name: "base-dropdown-item",
2616
2616
  props: {
2617
2617
  text: { default: "" }
@@ -2639,7 +2639,7 @@ const js = { class: "dropdown-trigger-button" }, ev = /* @__PURE__ */ U({
2639
2639
  class: K([t.icon, "inline-block", { "w-1.2em": t.fixedWidth }])
2640
2640
  }, null, 2));
2641
2641
  }
2642
- }), Hs = ["src"], nv = /* @__PURE__ */ U({
2642
+ }), Hs = ["src"], ov = /* @__PURE__ */ U({
2643
2643
  __name: "base-mask",
2644
2644
  props: {
2645
2645
  shape: {},
@@ -2664,7 +2664,7 @@ const js = { class: "dropdown-trigger-button" }, ev = /* @__PURE__ */ U({
2664
2664
  }), Us = /* @__PURE__ */ H("div", {
2665
2665
  class: "fixed inset-0 bg-black/40",
2666
2666
  "aria-hidden": "true"
2667
- }, null, -1), qs = /* @__PURE__ */ H("div", { class: "fixed inset-0 bg-black bg-opacity-25" }, null, -1), Ws = { class: "fixed inset-0 overflow-y-auto" }, zs = { class: "min-h-full flex items-center justify-center text-center" }, rv = /* @__PURE__ */ U({
2667
+ }, null, -1), qs = /* @__PURE__ */ H("div", { class: "fixed inset-0 bg-black bg-opacity-25" }, null, -1), Ws = { class: "fixed inset-0 overflow-y-auto" }, zs = { class: "min-h-full flex items-center justify-center text-center" }, iv = /* @__PURE__ */ U({
2668
2668
  __name: "base-modal",
2669
2669
  props: {
2670
2670
  isOpen: { type: Boolean },
@@ -2759,7 +2759,7 @@ const js = { class: "dropdown-trigger-button" }, ev = /* @__PURE__ */ U({
2759
2759
  }), Ys = {
2760
2760
  key: 0,
2761
2761
  class: "flex w-full items-center justify-between"
2762
- }, Gs = { class: "text-sm text-slate-600 dark:text-slate-400" }, Xs = { class: "flex gap-2" }, Ks = ["onClick"], av = /* @__PURE__ */ U({
2762
+ }, Gs = { class: "text-sm text-slate-600 dark:text-slate-400" }, Xs = { class: "flex gap-2" }, Ks = ["onClick"], lv = /* @__PURE__ */ U({
2763
2763
  __name: "base-pagination",
2764
2764
  props: {
2765
2765
  modelValue: {},
@@ -4081,7 +4081,7 @@ var dd = /* @__PURE__ */ (() => {
4081
4081
  t.component("Popper", e);
4082
4082
  }, e;
4083
4083
  })();
4084
- const ov = /* @__PURE__ */ U({
4084
+ const sv = /* @__PURE__ */ U({
4085
4085
  __name: "base-popover",
4086
4086
  props: {
4087
4087
  placement: { default: "bottom" }
@@ -4100,7 +4100,7 @@ const ov = /* @__PURE__ */ U({
4100
4100
  _: 3
4101
4101
  }, 16, ["placement"]));
4102
4102
  }
4103
- }), iv = /* @__PURE__ */ U({
4103
+ }), uv = /* @__PURE__ */ U({
4104
4104
  __name: "base-progress",
4105
4105
  props: {
4106
4106
  modelValue: {},
@@ -4144,13 +4144,25 @@ const ov = /* @__PURE__ */ U({
4144
4144
  ], 6)
4145
4145
  ], 2));
4146
4146
  }
4147
+ }), dv = /* @__PURE__ */ U({
4148
+ __name: "base-spinner",
4149
+ props: {
4150
+ size: { default: "md" },
4151
+ color: { default: "primary" }
4152
+ },
4153
+ setup(e) {
4154
+ const t = e, n = [];
4155
+ return n.push("spinner"), n.push(`spinner-${t.color}`), n.push(`spinner-${t.size}`), (a, r) => (A(), q("span", {
4156
+ class: K(n)
4157
+ }));
4158
+ }
4147
4159
  }), cd = { class: "step-container" }, pd = ["onClick"], fd = {
4148
4160
  key: 1,
4149
4161
  class: "step-icon"
4150
4162
  }, vd = {
4151
4163
  key: 0,
4152
4164
  class: "step-text"
4153
- }, lv = /* @__PURE__ */ U({
4165
+ }, cv = /* @__PURE__ */ U({
4154
4166
  __name: "base-step",
4155
4167
  props: {
4156
4168
  modelValue: {},
@@ -4193,7 +4205,7 @@ const ov = /* @__PURE__ */ U({
4193
4205
  ]);
4194
4206
  };
4195
4207
  }
4196
- }), sv = /* @__PURE__ */ U({
4208
+ }), pv = /* @__PURE__ */ U({
4197
4209
  __name: "base-tab",
4198
4210
  setup(e) {
4199
4211
  return (t, n) => (A(), pe(J(Es), { as: "template" }, {
@@ -4203,7 +4215,7 @@ const ov = /* @__PURE__ */ U({
4203
4215
  _: 3
4204
4216
  }));
4205
4217
  }
4206
- }), uv = /* @__PURE__ */ U({
4218
+ }), fv = /* @__PURE__ */ U({
4207
4219
  __name: "base-tab-group",
4208
4220
  setup(e) {
4209
4221
  return (t, n) => (A(), pe(J(Ts), { as: "div" }, {
@@ -4213,7 +4225,7 @@ const ov = /* @__PURE__ */ U({
4213
4225
  _: 3
4214
4226
  }));
4215
4227
  }
4216
- }), dv = /* @__PURE__ */ U({
4228
+ }), vv = /* @__PURE__ */ U({
4217
4229
  __name: "base-tab-list",
4218
4230
  setup(e) {
4219
4231
  return (t, n) => (A(), pe(J(Cs), null, {
@@ -4223,7 +4235,7 @@ const ov = /* @__PURE__ */ U({
4223
4235
  _: 3
4224
4236
  }));
4225
4237
  }
4226
- }), cv = /* @__PURE__ */ U({
4238
+ }), mv = /* @__PURE__ */ U({
4227
4239
  __name: "base-tab-panel",
4228
4240
  setup(e) {
4229
4241
  return (t, n) => (A(), pe(J(Ls), null, {
@@ -4233,7 +4245,7 @@ const ov = /* @__PURE__ */ U({
4233
4245
  _: 3
4234
4246
  }));
4235
4247
  }
4236
- }), pv = /* @__PURE__ */ U({
4248
+ }), hv = /* @__PURE__ */ U({
4237
4249
  __name: "base-tab-panels",
4238
4250
  setup(e) {
4239
4251
  return (t, n) => (A(), pe(J(_s), null, {
@@ -4251,13 +4263,13 @@ function gd(e, t) {
4251
4263
  ])
4252
4264
  ]);
4253
4265
  }
4254
- const fv = /* @__PURE__ */ jt(md, [["render", gd]]), yd = {}, wd = { class: "timeline-root" };
4266
+ const bv = /* @__PURE__ */ jt(md, [["render", gd]]), yd = {}, wd = { class: "timeline-root" };
4255
4267
  function xd(e, t) {
4256
4268
  return A(), q("div", wd, [
4257
4269
  te(e.$slots, "default")
4258
4270
  ]);
4259
4271
  }
4260
- const vv = /* @__PURE__ */ jt(yd, [["render", xd]]), $d = {}, Sd = { class: "timeline-body" }, Od = { class: "timeline-point" }, kd = { class: "timeline-content" };
4272
+ const gv = /* @__PURE__ */ jt(yd, [["render", xd]]), $d = {}, Sd = { class: "timeline-body" }, Od = { class: "timeline-point" }, kd = { class: "timeline-content" };
4261
4273
  function Pd(e, t) {
4262
4274
  return A(), q("div", Sd, [
4263
4275
  H("div", Od, [
@@ -4268,7 +4280,7 @@ function Pd(e, t) {
4268
4280
  ])
4269
4281
  ]);
4270
4282
  }
4271
- const mv = /* @__PURE__ */ jt($d, [["render", Pd]]);
4283
+ const yv = /* @__PURE__ */ jt($d, [["render", Pd]]);
4272
4284
  let Nn;
4273
4285
  const Dd = new Uint8Array(16);
4274
4286
  function Td() {
@@ -4313,7 +4325,7 @@ const _d = { class: "toast-container" }, Ld = { class: "self-start mt-0.5" }, Id
4313
4325
  }, Bd = {
4314
4326
  key: 4,
4315
4327
  class: "i-fas-triangle-exclamation block w-4 h-4"
4316
- }, Fd = { class: "ms-3 text-sm" }, Vd = ["onClick"], hv = /* @__PURE__ */ U({
4328
+ }, Fd = { class: "ms-3 text-sm" }, Vd = ["onClick"], wv = /* @__PURE__ */ U({
4317
4329
  __name: "base-toast",
4318
4330
  setup(e, { expose: t }) {
4319
4331
  const n = D([]), a = (o, i) => {
@@ -6665,7 +6677,7 @@ Ep({
6665
6677
  ignoreAttributes: !0,
6666
6678
  plugins: [$p, wp, gp, vp]
6667
6679
  });
6668
- const bv = /* @__PURE__ */ U({
6680
+ const xv = /* @__PURE__ */ U({
6669
6681
  __name: "base-tooltip",
6670
6682
  props: {
6671
6683
  content: {},
@@ -6692,7 +6704,7 @@ const bv = /* @__PURE__ */ U({
6692
6704
  }
6693
6705
  ]), 1032, ["content", "z-index"]));
6694
6706
  }
6695
- }), _p = { class: "" }, Lp = { class: "flex-1 text-left" }, gv = /* @__PURE__ */ U({
6707
+ }), _p = { class: "" }, Lp = { class: "flex-1 text-left" }, $v = /* @__PURE__ */ U({
6696
6708
  __name: "base-treeview",
6697
6709
  props: {
6698
6710
  title: { default: "" },
@@ -6732,18 +6744,6 @@ const bv = /* @__PURE__ */ U({
6732
6744
  ], 512)) : ie("", !0)
6733
6745
  ]));
6734
6746
  }
6735
- }), yv = /* @__PURE__ */ U({
6736
- __name: "base-spinner",
6737
- props: {
6738
- size: { default: "md" },
6739
- color: { default: "primary" }
6740
- },
6741
- setup(e) {
6742
- const t = e, n = [];
6743
- return n.push("spinner"), n.push(`spinner-${t.color}`), n.push(`spinner-${t.size}`), (a, r) => (A(), q("span", {
6744
- class: K(n)
6745
- }));
6746
- }
6747
6747
  }), Ip = ["for"], Ap = {
6748
6748
  key: 0,
6749
6749
  class: "text-xs text-slate-400 italic"
@@ -6949,7 +6949,7 @@ const bv = /* @__PURE__ */ U({
6949
6949
  }, 8, ["label", "layout", "description", "required", "helpers", "errors"]);
6950
6950
  };
6951
6951
  }
6952
- }), wv = /* @__PURE__ */ jt(Wp, [["__scopeId", "data-v-95a5326d"]]), zp = { class: "flex gap-2 items-center" }, Yp = ["id", "required", "disabled"], Gp = ["for"], Xp = { key: 0 }, xv = /* @__PURE__ */ U({
6952
+ }), Sv = /* @__PURE__ */ jt(Wp, [["__scopeId", "data-v-09c6f5c1"]]), zp = { class: "flex gap-2 items-center" }, Yp = ["id", "required", "disabled"], Gp = ["for"], Xp = { key: 0 }, Ov = /* @__PURE__ */ U({
6953
6953
  __name: "base-checkbox",
6954
6954
  props: {
6955
6955
  modelValue: { type: Boolean, default: !1 },
@@ -7522,7 +7522,7 @@ const Jp = /* @__PURE__ */ mi(Zp), Qp = ["required", "disabled"], ef = /* @__PUR
7522
7522
  }, 8, ["label", "layout", "description", "required", "helpers", "errors"]);
7523
7523
  };
7524
7524
  }
7525
- }), $v = /* @__PURE__ */ jt(ef, [["__scopeId", "data-v-fa0130c5"]]), tf = ["multiple", "required", "disabled"], nf = ["multiple", "required", "disabled"], Sv = /* @__PURE__ */ U({
7525
+ }), kv = /* @__PURE__ */ jt(ef, [["__scopeId", "data-v-0fad7e95"]]), tf = ["multiple", "required", "disabled"], nf = ["multiple", "required", "disabled"], Pv = /* @__PURE__ */ U({
7526
7526
  __name: "base-file-upload",
7527
7527
  props: {
7528
7528
  id: {},
@@ -7580,7 +7580,7 @@ const Jp = /* @__PURE__ */ mi(Zp), Qp = ["required", "disabled"], ef = /* @__PUR
7580
7580
  _: 3
7581
7581
  }, 8, ["label", "layout", "description", "required", "helpers", "errors"]));
7582
7582
  }
7583
- }), rf = ["type", "placeholder", "required", "disabled"], Ov = /* @__PURE__ */ U({
7583
+ }), rf = ["type", "placeholder", "required", "disabled"], Dv = /* @__PURE__ */ U({
7584
7584
  __name: "base-input",
7585
7585
  props: {
7586
7586
  modelValue: {},
@@ -7659,7 +7659,7 @@ const Jp = /* @__PURE__ */ mi(Zp), Qp = ["required", "disabled"], ef = /* @__PUR
7659
7659
  _: 3
7660
7660
  }, 8, ["label", "layout", "description", "required", "helpers", "errors"]));
7661
7661
  }
7662
- }), af = ["placeholder", "required", "disabled"], kv = /* @__PURE__ */ U({
7662
+ }), af = ["placeholder", "required", "disabled"], Tv = /* @__PURE__ */ U({
7663
7663
  __name: "base-input-mask",
7664
7664
  props: {
7665
7665
  modelValue: { type: [String, Number, Boolean, null] },
@@ -8330,7 +8330,7 @@ he.Util = pf;
8330
8330
  he.DefaultProperties = vf;
8331
8331
  (typeof qt == "object" && qt ? qt : window).Cleave = he;
8332
8332
  var xi = he;
8333
- const mf = ["placeholder", "required", "disabled"], Pv = /* @__PURE__ */ U({
8333
+ const mf = ["placeholder", "required", "disabled"], Cv = /* @__PURE__ */ U({
8334
8334
  __name: "base-input-number",
8335
8335
  props: {
8336
8336
  modelValue: {},
@@ -8397,7 +8397,7 @@ const mf = ["placeholder", "required", "disabled"], Pv = /* @__PURE__ */ U({
8397
8397
  }, yf = {
8398
8398
  key: 1,
8399
8399
  class: "shrink-0"
8400
- }, wf = { class: "flex items-center" }, xf = { class: "text-sm" }, Dv = /* @__PURE__ */ U({
8400
+ }, wf = { class: "flex items-center" }, xf = { class: "text-sm" }, Ev = /* @__PURE__ */ U({
8401
8401
  __name: "base-radio",
8402
8402
  props: {
8403
8403
  modelValue: { type: [Object, null, String, Number, Boolean] },
@@ -8480,7 +8480,7 @@ const mf = ["placeholder", "required", "disabled"], Pv = /* @__PURE__ */ U({
8480
8480
  }, 8, ["label", "layout", "description", "required", "helpers", "errors"]);
8481
8481
  };
8482
8482
  }
8483
- }), $f = { class: "flex w-full gap-2" }, Sf = ["disabled"], Of = { key: 0 }, Tv = /* @__PURE__ */ U({
8483
+ }), $f = { class: "flex w-full gap-2" }, Sf = ["disabled"], Of = { key: 0 }, _v = /* @__PURE__ */ U({
8484
8484
  __name: "base-range",
8485
8485
  props: {
8486
8486
  modelValue: {},
@@ -8526,84 +8526,16 @@ const mf = ["placeholder", "required", "disabled"], Pv = /* @__PURE__ */ U({
8526
8526
  _: 1
8527
8527
  }, 8, ["label", "layout", "description", "helpers", "errors"]));
8528
8528
  }
8529
- }), kf = ["placeholder", "required", "disabled"], Cv = /* @__PURE__ */ U({
8530
- __name: "base-textarea",
8531
- props: {
8532
- modelValue: {},
8533
- id: {},
8534
- label: {},
8535
- description: {},
8536
- placeholder: {},
8537
- border: { default: "simple" },
8538
- layout: { default: "vertical" },
8539
- required: { type: Boolean, default: !1 },
8540
- disabled: { type: Boolean, default: !1 },
8541
- helpers: {},
8542
- errors: {},
8543
- minHeight: {},
8544
- maxHeight: {}
8545
- },
8546
- emits: ["update:modelValue"],
8547
- setup(e, { emit: t }) {
8548
- const n = e, a = t, r = k({
8549
- set: (s) => {
8550
- a("update:modelValue", s), l();
8551
- },
8552
- get: () => n.modelValue
8553
- }), o = D(0), i = D();
8554
- re(() => {
8555
- l();
8556
- });
8557
- const l = () => {
8558
- o.value = 0, ge(() => {
8559
- var s;
8560
- o.value = (s = i.value) == null ? void 0 : s.scrollHeight;
8561
- });
8562
- };
8563
- return (s, u) => (A(), pe(He(Ke), {
8564
- label: n.label,
8565
- layout: n.layout,
8566
- description: n.description,
8567
- required: n.required,
8568
- helpers: n.helpers,
8569
- errors: n.errors
8570
- }, {
8571
- default: Q(() => [
8572
- dt(H("textarea", {
8573
- ref_key: "textareaRef",
8574
- ref: i,
8575
- placeholder: s.placeholder,
8576
- required: s.required,
8577
- disabled: s.disabled,
8578
- class: K(["form-input resize-none px-2", {
8579
- "border-simple": s.border === "simple",
8580
- "border-full": s.border === "full",
8581
- "border-none": s.border === "none",
8582
- "input-disabled": s.disabled
8583
- }]),
8584
- style: xn({
8585
- height: o.value + "px",
8586
- minHeight: s.minHeight ? s.minHeight + "px" : "inherit",
8587
- maxHeight: s.maxHeight ? s.maxHeight + "px" : "inherit"
8588
- }),
8589
- "onUpdate:modelValue": u[0] || (u[0] = (d) => r.value = d)
8590
- }, null, 14, kf), [
8591
- [Wt, r.value]
8592
- ])
8593
- ]),
8594
- _: 1
8595
- }, 8, ["label", "layout", "description", "required", "helpers", "errors"]));
8596
- }
8597
- }), Pf = { class: "list-box" }, Df = {
8529
+ }), kf = { class: "list-box" }, Pf = {
8598
8530
  key: 0,
8599
8531
  class: "block text-slate-400"
8600
- }, Tf = {
8532
+ }, Df = {
8601
8533
  key: 1,
8602
8534
  class: "block"
8603
- }, Cf = { class: "list-box-button-icon" }, Ef = {
8535
+ }, Tf = { class: "list-box-button-icon" }, Cf = {
8604
8536
  key: 0,
8605
8537
  class: "i-fas-angle-down block h-5 w-5 text-gray-400"
8606
- }, _f = /* @__PURE__ */ U({
8538
+ }, Ef = /* @__PURE__ */ U({
8607
8539
  __name: "base-select",
8608
8540
  props: {
8609
8541
  modelValue: {},
@@ -8644,7 +8576,7 @@ const mf = ["placeholder", "required", "disabled"], Pv = /* @__PURE__ */ U({
8644
8576
  disabled: n.disabled
8645
8577
  }, {
8646
8578
  default: Q(() => [
8647
- H("div", Pf, [
8579
+ H("div", kf, [
8648
8580
  fe(J(cs), {
8649
8581
  class: K(["list-box-button", {
8650
8582
  "border-simple": i.border === "simple",
@@ -8656,13 +8588,13 @@ const mf = ["placeholder", "required", "disabled"], Pv = /* @__PURE__ */ U({
8656
8588
  default: Q(() => {
8657
8589
  var s, u, d;
8658
8590
  return [
8659
- (s = r.value) != null && s.label ? (A(), q("span", Tf, be((u = r.value) == null ? void 0 : u.label), 1)) : (A(), q("span", Df, be(n.placeholder), 1)),
8660
- H("span", Cf, [
8591
+ (s = r.value) != null && s.label ? (A(), q("span", Df, be((u = r.value) == null ? void 0 : u.label), 1)) : (A(), q("span", Pf, be(n.placeholder), 1)),
8592
+ H("span", Tf, [
8661
8593
  (d = r.value) != null && d.label ? (A(), q("i", {
8662
8594
  key: 1,
8663
8595
  class: "i-fas-xmark block h-5 w-5 text-gray-400",
8664
8596
  onClick: l[0] || (l[0] = (h) => o())
8665
- })) : (A(), q("i", Ef))
8597
+ })) : (A(), q("i", Cf))
8666
8598
  ])
8667
8599
  ];
8668
8600
  }),
@@ -8705,7 +8637,7 @@ const mf = ["placeholder", "required", "disabled"], Pv = /* @__PURE__ */ U({
8705
8637
  _: 1
8706
8638
  }, 8, ["label", "layout", "description", "required", "helpers", "errors"]));
8707
8639
  }
8708
- }), Ev = /* @__PURE__ */ jt(_f, [["__scopeId", "data-v-fc50ec2a"]]), Lf = ["disabled"], _v = /* @__PURE__ */ U({
8640
+ }), Lv = /* @__PURE__ */ jt(Ef, [["__scopeId", "data-v-52ee5793"]]), _f = ["disabled"], Iv = /* @__PURE__ */ U({
8709
8641
  __name: "base-switch",
8710
8642
  props: {
8711
8643
  modelValue: { type: Boolean },
@@ -8759,7 +8691,7 @@ const mf = ["placeholder", "required", "disabled"], Pv = /* @__PURE__ */ U({
8759
8691
  ]]),
8760
8692
  type: "checkbox",
8761
8693
  disabled: o.disabled
8762
- }, null, 10, Lf), [
8694
+ }, null, 10, _f), [
8763
8695
  [Qa, r.value]
8764
8696
  ])
8765
8697
  ], 2)
@@ -8768,11 +8700,79 @@ const mf = ["placeholder", "required", "disabled"], Pv = /* @__PURE__ */ U({
8768
8700
  _: 3
8769
8701
  }, 8, ["label", "layout", "description", "required", "helpers", "errors"]));
8770
8702
  }
8771
- }), Lv = {
8703
+ }), Lf = ["placeholder", "required", "disabled"], Av = /* @__PURE__ */ U({
8704
+ __name: "base-textarea",
8705
+ props: {
8706
+ modelValue: {},
8707
+ id: {},
8708
+ label: {},
8709
+ description: {},
8710
+ placeholder: {},
8711
+ border: { default: "simple" },
8712
+ layout: { default: "vertical" },
8713
+ required: { type: Boolean, default: !1 },
8714
+ disabled: { type: Boolean, default: !1 },
8715
+ helpers: {},
8716
+ errors: {},
8717
+ minHeight: {},
8718
+ maxHeight: {}
8719
+ },
8720
+ emits: ["update:modelValue"],
8721
+ setup(e, { emit: t }) {
8722
+ const n = e, a = t, r = k({
8723
+ set: (s) => {
8724
+ a("update:modelValue", s), l();
8725
+ },
8726
+ get: () => n.modelValue
8727
+ }), o = D(0), i = D();
8728
+ re(() => {
8729
+ l();
8730
+ });
8731
+ const l = () => {
8732
+ o.value = 0, ge(() => {
8733
+ var s;
8734
+ o.value = (s = i.value) == null ? void 0 : s.scrollHeight;
8735
+ });
8736
+ };
8737
+ return (s, u) => (A(), pe(He(Ke), {
8738
+ label: n.label,
8739
+ layout: n.layout,
8740
+ description: n.description,
8741
+ required: n.required,
8742
+ helpers: n.helpers,
8743
+ errors: n.errors
8744
+ }, {
8745
+ default: Q(() => [
8746
+ dt(H("textarea", {
8747
+ ref_key: "textareaRef",
8748
+ ref: i,
8749
+ placeholder: s.placeholder,
8750
+ required: s.required,
8751
+ disabled: s.disabled,
8752
+ class: K(["form-input resize-none px-2", {
8753
+ "border-simple": s.border === "simple",
8754
+ "border-full": s.border === "full",
8755
+ "border-none": s.border === "none",
8756
+ "input-disabled": s.disabled
8757
+ }]),
8758
+ style: xn({
8759
+ height: o.value + "px",
8760
+ minHeight: s.minHeight ? s.minHeight + "px" : "inherit",
8761
+ maxHeight: s.maxHeight ? s.maxHeight + "px" : "inherit"
8762
+ }),
8763
+ "onUpdate:modelValue": u[0] || (u[0] = (d) => r.value = d)
8764
+ }, null, 14, Lf), [
8765
+ [Wt, r.value]
8766
+ ])
8767
+ ]),
8768
+ _: 1
8769
+ }, 8, ["label", "layout", "description", "required", "helpers", "errors"]));
8770
+ }
8771
+ }), Mv = {
8772
8772
  install(e) {
8773
8773
  e.component("BaseIcon", Ns);
8774
8774
  }
8775
- }, Iv = {
8775
+ }, Rv = {
8776
8776
  install(e) {
8777
8777
  e.directive("input-mask", {
8778
8778
  mounted: (t, n) => {
@@ -8780,7 +8780,7 @@ const mf = ["placeholder", "required", "disabled"], Pv = /* @__PURE__ */ U({
8780
8780
  }
8781
8781
  });
8782
8782
  }
8783
- }, Av = {
8783
+ }, Bv = {
8784
8784
  install(e) {
8785
8785
  e.use(Cp, {
8786
8786
  directive: "tooltip",
@@ -8794,7 +8794,46 @@ const mf = ["placeholder", "required", "disabled"], Pv = /* @__PURE__ */ U({
8794
8794
  }
8795
8795
  });
8796
8796
  }
8797
- }, $i = Fr("screen-breakpoint", {
8797
+ };
8798
+ function Fv() {
8799
+ const e = document.getElementsByTagName("html")[0], t = D(e.classList.contains("dark"));
8800
+ function n() {
8801
+ localStorage.getItem("dark-mode") === "dark" || !("dark-mode" in localStorage) && window.matchMedia("(prefers-color-scheme: dark)").matches ? (document.documentElement.classList.add("dark"), t.value = !0) : (document.documentElement.classList.remove("dark"), t.value = !1);
8802
+ }
8803
+ function a() {
8804
+ t.value ? (e.classList.remove("dark"), localStorage.setItem("dark-mode", "light")) : (e.classList.add("dark"), localStorage.setItem("dark-mode", "dark")), t.value = e.classList.contains("dark");
8805
+ }
8806
+ return {
8807
+ isDarkMode: t,
8808
+ toggleDarkMode: a,
8809
+ loadDarkMode: n
8810
+ };
8811
+ }
8812
+ class If {
8813
+ constructor() {
8814
+ pa(this, "events", []);
8815
+ }
8816
+ emit(t, n) {
8817
+ const a = this.events.filter((r) => r.name == t);
8818
+ for (const r of a)
8819
+ r.callback && r.callback(n);
8820
+ }
8821
+ on(t, n) {
8822
+ this.events.push({ name: t, callback: n });
8823
+ }
8824
+ remove(t, n) {
8825
+ let a = -1;
8826
+ this.events.some((o, i) => {
8827
+ a = i, o.name === t && n == o.callback;
8828
+ }) && a > -1 && this.events.splice(a, 1);
8829
+ }
8830
+ clear(t) {
8831
+ const n = this.events.length - 1;
8832
+ for (let a = n; a >= 0; a--)
8833
+ this.events[a].name == t && this.events.splice(a, 1);
8834
+ }
8835
+ }
8836
+ const Af = new If(), $i = Fr("screen-breakpoint", {
8798
8837
  state: () => ({
8799
8838
  windowWidth: 0,
8800
8839
  windowHeight: 0,
@@ -8827,7 +8866,16 @@ const mf = ["placeholder", "required", "disabled"], Pv = /* @__PURE__ */ U({
8827
8866
  }
8828
8867
  }
8829
8868
  });
8830
- function Mv() {
8869
+ function Mf() {
8870
+ const e = $i();
8871
+ return { isMobile: () => e.screenBreakpoint === "sm" || e.screenBreakpoint === "md" || e.screenBreakpoint === "lg" };
8872
+ }
8873
+ function Vv() {
8874
+ return {
8875
+ format: (t) => new Intl.NumberFormat(["en", "en"]).format(Number(t.toString()))
8876
+ };
8877
+ }
8878
+ function jv() {
8831
8879
  const e = $i();
8832
8880
  re(async () => {
8833
8881
  e.onResizeWindow(), await ge(() => {
@@ -8839,36 +8887,64 @@ function Mv() {
8839
8887
  });
8840
8888
  });
8841
8889
  }
8842
- function If() {
8843
- const e = $i();
8844
- return { isMobile: () => e.screenBreakpoint === "sm" || e.screenBreakpoint === "md" || e.screenBreakpoint === "lg" };
8890
+ /*!
8891
+ * vue-router v4.2.5
8892
+ * (c) 2023 Eduardo San Martin Morote
8893
+ * @license MIT
8894
+ */
8895
+ var Ga;
8896
+ (function(e) {
8897
+ e.pop = "pop", e.push = "push";
8898
+ })(Ga || (Ga = {}));
8899
+ var Xa;
8900
+ (function(e) {
8901
+ e.back = "back", e.forward = "forward", e.unknown = "";
8902
+ })(Xa || (Xa = {}));
8903
+ Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
8904
+ var Ka;
8905
+ (function(e) {
8906
+ e[e.aborted = 4] = "aborted", e[e.cancelled = 8] = "cancelled", e[e.duplicated = 16] = "duplicated";
8907
+ })(Ka || (Ka = {}));
8908
+ Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
8909
+ Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
8910
+ Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
8911
+ const Rf = Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
8912
+ Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
8913
+ function Bf() {
8914
+ return Pe(Rf);
8845
8915
  }
8846
- const Af = (e) => typeof e == "string" ? JSON.parse(e) : e, Mf = (e) => typeof e == "object" ? JSON.stringify(e) : e;
8847
- class Rf {
8848
- constructor() {
8849
- pa(this, "events", []);
8850
- }
8851
- emit(t, n) {
8852
- const a = this.events.filter((r) => r.name == t);
8853
- for (const r of a)
8854
- r.callback && r.callback(n);
8855
- }
8856
- on(t, n) {
8857
- this.events.push({ name: t, callback: n });
8858
- }
8859
- remove(t, n) {
8860
- let a = -1;
8861
- this.events.some((o, i) => {
8862
- a = i, o.name === t && n == o.callback;
8863
- }) && a > -1 && this.events.splice(a, 1);
8864
- }
8865
- clear(t) {
8866
- const n = this.events.length - 1;
8867
- for (let a = n; a >= 0; a--)
8868
- this.events[a].name == t && this.events.splice(a, 1);
8916
+ const Ff = Fr("sidebar", {
8917
+ state: () => ({
8918
+ isSidebarOpen: document.body.classList.contains("is-sidebar-open")
8919
+ }),
8920
+ actions: {
8921
+ toggleSidebar() {
8922
+ this.isSidebarOpen = document.body.classList.contains("is-sidebar-open"), this.isSidebarOpen ? this.closeSidebar() : this.openSidebar();
8923
+ },
8924
+ openSidebar() {
8925
+ document.body.classList.add("is-sidebar-open"), this.isSidebarOpen = !0;
8926
+ },
8927
+ closeSidebar() {
8928
+ document.body.classList.remove("is-sidebar-open"), this.isSidebarOpen = !1;
8929
+ }
8869
8930
  }
8931
+ });
8932
+ function Nv() {
8933
+ const e = Ff(), t = Bf(), { isMobile: n } = Mf();
8934
+ re(() => {
8935
+ a();
8936
+ }), ye(
8937
+ t,
8938
+ async () => {
8939
+ n() && e.closeSidebar();
8940
+ },
8941
+ { immediate: !0 }
8942
+ );
8943
+ const a = () => {
8944
+ n() ? e.closeSidebar() : e.openSidebar();
8945
+ };
8870
8946
  }
8871
- const Bf = new Rf(), Rv = Fr("websocket", () => {
8947
+ const Vf = (e) => typeof e == "string" ? JSON.parse(e) : e, jf = (e) => typeof e == "object" ? JSON.stringify(e) : e, Hv = Fr("websocket", () => {
8872
8948
  const e = D(), t = D(!1), n = D(0), a = D(10), r = D(1e3), o = D(0), i = D(""), l = () => {
8873
8949
  var f, c;
8874
8950
  return ((f = e.value) == null ? void 0 : f.readyState) === ((c = e.value) == null ? void 0 : c.OPEN);
@@ -8892,8 +8968,8 @@ const Bf = new Rf(), Rv = Fr("websocket", () => {
8892
8968
  d(i.value), n.value < a.value && setTimeout(u, r.value);
8893
8969
  }, d = (f) => {
8894
8970
  i.value = f, e.value = new WebSocket(i.value), e.value.onmessage = (c) => {
8895
- const v = Af(c.data);
8896
- Bf.emit(v.event, v), console.log("message", c);
8971
+ const v = Vf(c.data);
8972
+ Af.emit(v.event, v), console.log("message", c);
8897
8973
  }, e.value.onopen = (c) => {
8898
8974
  console.log("open", c), o.value = 1;
8899
8975
  }, e.value.onclose = (c) => {
@@ -8908,7 +8984,7 @@ const Bf = new Rf(), Rv = Fr("websocket", () => {
8908
8984
  }
8909
8985
  function g(f) {
8910
8986
  var c;
8911
- (c = e.value) == null || c.send(Mf(f));
8987
+ (c = e.value) == null || c.send(jf(f));
8912
8988
  }
8913
8989
  function b() {
8914
8990
  var f;
@@ -8924,139 +9000,75 @@ const Bf = new Rf(), Rv = Fr("websocket", () => {
8924
9000
  isOpen: l,
8925
9001
  isClosed: s
8926
9002
  };
8927
- });
8928
- function Bv() {
8929
- const e = document.getElementsByTagName("html")[0], t = D(e.classList.contains("dark"));
8930
- function n() {
8931
- localStorage.getItem("dark-mode") === "dark" || !("dark-mode" in localStorage) && window.matchMedia("(prefers-color-scheme: dark)").matches ? (document.documentElement.classList.add("dark"), t.value = !0) : (document.documentElement.classList.remove("dark"), t.value = !1);
8932
- }
8933
- function a() {
8934
- t.value ? (e.classList.remove("dark"), localStorage.setItem("dark-mode", "light")) : (e.classList.add("dark"), localStorage.setItem("dark-mode", "dark")), t.value = e.classList.contains("dark");
8935
- }
8936
- return {
8937
- isDarkMode: t,
8938
- toggleDarkMode: a,
8939
- loadDarkMode: n
8940
- };
8941
- }
8942
- function Fv() {
8943
- return {
8944
- format: (t) => new Intl.NumberFormat(["en", "en"]).format(Number(t.toString()))
8945
- };
8946
- }
8947
- /*!
8948
- * vue-router v4.2.5
8949
- * (c) 2023 Eduardo San Martin Morote
8950
- * @license MIT
8951
- */
8952
- var Ga;
8953
- (function(e) {
8954
- e.pop = "pop", e.push = "push";
8955
- })(Ga || (Ga = {}));
8956
- var Xa;
8957
- (function(e) {
8958
- e.back = "back", e.forward = "forward", e.unknown = "";
8959
- })(Xa || (Xa = {}));
8960
- Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
8961
- var Ka;
8962
- (function(e) {
8963
- e[e.aborted = 4] = "aborted", e[e.cancelled = 8] = "cancelled", e[e.duplicated = 16] = "duplicated";
8964
- })(Ka || (Ka = {}));
8965
- Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
8966
- Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
8967
- Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
8968
- const Ff = Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
8969
- Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
8970
- function Vf() {
8971
- return Pe(Ff);
8972
- }
8973
- const jf = Fr("sidebar", {
8974
- state: () => ({
8975
- isSidebarOpen: document.body.classList.contains("is-sidebar-open")
8976
- }),
8977
- actions: {
8978
- toggleSidebar() {
8979
- this.isSidebarOpen = document.body.classList.contains("is-sidebar-open"), this.isSidebarOpen ? this.closeSidebar() : this.openSidebar();
8980
- },
8981
- openSidebar() {
8982
- document.body.classList.add("is-sidebar-open"), this.isSidebarOpen = !0;
8983
- },
8984
- closeSidebar() {
8985
- document.body.classList.remove("is-sidebar-open"), this.isSidebarOpen = !1;
8986
- }
9003
+ }), Nf = { class: "flex justify-between px-4" }, Hf = /* @__PURE__ */ H("p", null, "Pointhub © 2023-2024", -1), Uf = { class: "self-end" }, Uv = /* @__PURE__ */ U({
9004
+ __name: "app-footer",
9005
+ props: {
9006
+ version: {}
9007
+ },
9008
+ setup(e) {
9009
+ return (t, n) => (A(), q("div", Nf, [
9010
+ Hf,
9011
+ H("p", Uf, "v" + be(t.version), 1)
9012
+ ]));
8987
9013
  }
8988
9014
  });
8989
- function Vv() {
8990
- const e = jf(), t = Vf(), { isMobile: n } = If();
8991
- re(() => {
8992
- a();
8993
- }), ye(
8994
- t,
8995
- async () => {
8996
- n() && e.closeSidebar();
8997
- },
8998
- { immediate: !0 }
8999
- );
9000
- const a = () => {
9001
- n() ? e.closeSidebar() : e.openSidebar();
9002
- };
9003
- }
9004
9015
  export {
9005
- Wf as BaseAccordion,
9006
- zf as BaseAccordionItem,
9007
- qf as BaseAlert,
9008
- wv as BaseAutocomplete,
9009
- Yf as BaseAvatar,
9010
- Gf as BaseAvatarGroup,
9011
- Xf as BaseBadge,
9012
- Zf as BaseBreadcrumb,
9013
- Kf as BaseButton,
9014
- Jf as BaseCard,
9015
- xv as BaseCheckbox,
9016
- $v as BaseDatepicker,
9017
- Qf as BaseDivider,
9018
- ev as BaseDropdown,
9019
- tv as BaseDropdownItem,
9020
- Sv as BaseFileUpload,
9016
+ Uv as AppFooter,
9017
+ Yf as BaseAccordion,
9018
+ Gf as BaseAccordionItem,
9019
+ Xf as BaseAlert,
9020
+ Sv as BaseAutocomplete,
9021
+ Kf as BaseAvatar,
9022
+ Zf as BaseAvatarGroup,
9023
+ Jf as BaseBadge,
9024
+ Qf as BaseBreadcrumb,
9025
+ ev as BaseButton,
9026
+ tv as BaseCard,
9027
+ Ov as BaseCheckbox,
9028
+ kv as BaseDatepicker,
9029
+ nv as BaseDivider,
9030
+ rv as BaseDropdown,
9031
+ av as BaseDropdownItem,
9032
+ Pv as BaseFileUpload,
9021
9033
  Ke as BaseForm,
9022
9034
  Ns as BaseIcon,
9023
- Ov as BaseInput,
9024
- kv as BaseInputMask,
9025
- Pv as BaseInputNumber,
9026
- nv as BaseMask,
9027
- rv as BaseModal,
9028
- av as BasePagination,
9029
- ov as BasePopover,
9030
- iv as BaseProgress,
9031
- Dv as BaseRadio,
9032
- Tv as BaseRange,
9033
- Ev as BaseSelect,
9034
- yv as BaseSpinner,
9035
- lv as BaseStep,
9036
- _v as BaseSwitch,
9037
- sv as BaseTab,
9038
- uv as BaseTabGroup,
9039
- dv as BaseTabList,
9040
- cv as BaseTabPanel,
9041
- pv as BaseTabPanels,
9042
- fv as BaseTable,
9043
- Cv as BaseTextarea,
9044
- vv as BaseTimeline,
9045
- mv as BaseTimelineContent,
9046
- hv as BaseToast,
9047
- bv as BaseTooltip,
9048
- gv as BaseTreeview,
9049
- Rf as EventEmitter,
9050
- Lv as PluginIcon,
9051
- Iv as PluginInputMask,
9052
- Av as PluginTooltip,
9053
- Bf as emitter,
9054
- Bv as useDarkMode,
9055
- If as useMobileBreakpoint,
9056
- Fv as useNumeric,
9035
+ Dv as BaseInput,
9036
+ Tv as BaseInputMask,
9037
+ Cv as BaseInputNumber,
9038
+ ov as BaseMask,
9039
+ iv as BaseModal,
9040
+ lv as BasePagination,
9041
+ sv as BasePopover,
9042
+ uv as BaseProgress,
9043
+ Ev as BaseRadio,
9044
+ _v as BaseRange,
9045
+ Lv as BaseSelect,
9046
+ dv as BaseSpinner,
9047
+ cv as BaseStep,
9048
+ Iv as BaseSwitch,
9049
+ pv as BaseTab,
9050
+ fv as BaseTabGroup,
9051
+ vv as BaseTabList,
9052
+ mv as BaseTabPanel,
9053
+ hv as BaseTabPanels,
9054
+ bv as BaseTable,
9055
+ Av as BaseTextarea,
9056
+ gv as BaseTimeline,
9057
+ yv as BaseTimelineContent,
9058
+ wv as BaseToast,
9059
+ xv as BaseTooltip,
9060
+ $v as BaseTreeview,
9061
+ If as EventEmitter,
9062
+ Mv as PluginIcon,
9063
+ Rv as PluginInputMask,
9064
+ Bv as PluginTooltip,
9065
+ Af as emitter,
9066
+ Fv as useDarkMode,
9067
+ Mf as useMobileBreakpoint,
9068
+ Vv as useNumeric,
9057
9069
  $i as useScreenBreakpointStore,
9058
- Mv as useScreenSize,
9059
- Vv as useSidebar,
9060
- jf as useSidebarStore,
9061
- Rv as useWebsocketStore
9070
+ jv as useScreenSize,
9071
+ Nv as useSidebar,
9072
+ Ff as useSidebarStore,
9073
+ Hv as useWebsocketStore
9062
9074
  };