manolis-ui 0.0.13 → 0.1.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.
@@ -1,8 +1,8 @@
1
- import { defineComponent as M, computed as S, createElementBlock as a, openBlock as n, normalizeClass as $, createCommentVNode as x, renderSlot as w, createTextVNode as ne, createElementVNode as t, Fragment as y, renderList as _, toDisplayString as b, ref as k, h as te, onMounted as F, watch as E, withDirectives as U, createVNode as W, isRef as Te, vModelCheckbox as Me, unref as V, defineAsyncComponent as Be, onBeforeUnmount as Ie, normalizeStyle as Oe, createBlock as re, resolveDynamicComponent as ie, mergeProps as ue, nextTick as de, onUnmounted as pe, vModelSelect as j, vModelText as ee } from "vue";
1
+ import { defineComponent as M, computed as x, createElementBlock as o, openBlock as n, normalizeClass as k, createCommentVNode as S, renderSlot as w, createTextVNode as ne, createElementVNode as t, Fragment as y, renderList as _, toDisplayString as h, ref as $, h as te, onMounted as E, watch as N, withDirectives as U, createVNode as W, isRef as Te, vModelCheckbox as Me, unref as A, defineAsyncComponent as Be, onBeforeUnmount as Oe, normalizeStyle as Ie, createBlock as re, resolveDynamicComponent as ie, mergeProps as ue, nextTick as de, onUnmounted as pe, vModelSelect as R, vModelText as ee } from "vue";
2
2
  const Ue = {
3
3
  key: 0,
4
4
  class: "loading loading-spinner"
5
- }, gn = /* @__PURE__ */ M({
5
+ }, fn = /* @__PURE__ */ M({
6
6
  __name: "ButtonComponent",
7
7
  props: {
8
8
  outlined: { type: Boolean, default: !1 },
@@ -13,7 +13,7 @@ const Ue = {
13
13
  shape: {}
14
14
  },
15
15
  setup(d) {
16
- const u = d, e = S(() => {
16
+ const u = d, e = x(() => {
17
17
  switch (u.size) {
18
18
  case "large":
19
19
  return "btn-lg";
@@ -28,7 +28,7 @@ const Ue = {
28
28
  default:
29
29
  return "";
30
30
  }
31
- }), s = S(() => {
31
+ }), a = x(() => {
32
32
  switch (u.type) {
33
33
  case "neutral":
34
34
  return "btn-neutral";
@@ -53,7 +53,7 @@ const Ue = {
53
53
  default:
54
54
  return "btn-neutral";
55
55
  }
56
- }), i = S(() => {
56
+ }), i = x(() => {
57
57
  switch (u.shape) {
58
58
  case "square":
59
59
  return "btn-square";
@@ -63,19 +63,19 @@ const Ue = {
63
63
  return "";
64
64
  }
65
65
  });
66
- return (l, p) => (n(), a("button", {
67
- class: $(["btn", { "btn-outline": u.outlined }, { "btn-active": u.active }, s.value, e.value, i.value])
66
+ return (s, p) => (n(), o("button", {
67
+ class: k(["btn", { "btn-outline": u.outlined }, { "btn-active": u.active }, a.value, e.value, i.value])
68
68
  }, [
69
- l.loading ? (n(), a("span", Ue)) : x("", !0),
70
- w(l.$slots, "default", {}, () => [
69
+ s.loading ? (n(), o("span", Ue)) : S("", !0),
70
+ w(s.$slots, "default", {}, () => [
71
71
  p[0] || (p[0] = ne("Submit"))
72
72
  ])
73
73
  ], 2));
74
74
  }
75
- }), Ve = {
75
+ }), Ae = {
76
76
  tabindex: "0",
77
77
  class: "z-1 bg-base-100 shadow-sm p-2 rounded-sm min-w-[inherit] md:min-w-full xl:min-w-52 dropdown-content menu"
78
- }, Ae = ["href"], hn = /* @__PURE__ */ M({
78
+ }, Ve = ["href"], vn = /* @__PURE__ */ M({
79
79
  __name: "dropdown",
80
80
  props: {
81
81
  items: {},
@@ -93,27 +93,27 @@ const Ue = {
93
93
  }, e = {
94
94
  start: "",
95
95
  end: "dropdown-end"
96
- }, s = d;
97
- return (i, l) => (n(), a("div", {
98
- class: $(["dropdown", u[s.position], e[s.floatPosition], { "dropdown-open": s.forceOpen }, { "dropdown-hover": s.openOnHover }])
96
+ }, a = d;
97
+ return (i, s) => (n(), o("div", {
98
+ class: k(["dropdown", u[a.position], e[a.floatPosition], { "dropdown-open": a.forceOpen }, { "dropdown-hover": a.openOnHover }])
99
99
  }, [
100
100
  w(i.$slots, "default", {
101
101
  tabindex: "0",
102
102
  role: "button"
103
103
  }, () => [
104
- l[0] || (l[0] = t("div", { class: "m-1 btn" }, "Open dropdown", -1))
104
+ s[0] || (s[0] = t("div", { class: "m-1 btn" }, "Open dropdown", -1))
105
105
  ]),
106
- t("ul", Ve, [
107
- (n(!0), a(y, null, _(i.items, (p) => (n(), a("li", null, [
106
+ t("ul", Ae, [
107
+ (n(!0), o(y, null, _(i.items, (p) => (n(), o("li", null, [
108
108
  t("a", {
109
109
  href: p.link
110
- }, b(p.text), 9, Ae)
110
+ }, h(p.text), 9, Ve)
111
111
  ]))), 256)),
112
112
  w(i.$slots, "additional")
113
113
  ])
114
114
  ], 2));
115
115
  }
116
- }), Pe = { class: "modal-box" }, je = { class: "modal-action" }, bn = /* @__PURE__ */ M({
116
+ }), Pe = { class: "modal-box" }, Re = { class: "modal-action" }, gn = /* @__PURE__ */ M({
117
117
  __name: "modal",
118
118
  props: {
119
119
  position: { default: "center" },
@@ -124,38 +124,38 @@ const Ue = {
124
124
  top: "modal-top",
125
125
  bottom: "modal-bottom",
126
126
  center: "modal-middle"
127
- }, s = k(null), i = () => {
127
+ }, a = $(null), i = () => {
128
128
  var p;
129
- (p = s.value) == null || p.showModal();
130
- }, l = () => {
129
+ (p = a.value) == null || p.showModal();
130
+ }, s = () => {
131
131
  var p;
132
- (p = s.value) == null || p.close();
132
+ (p = a.value) == null || p.close();
133
133
  };
134
- return (p, h) => (n(), a(y, null, [
134
+ return (p, b) => (n(), o(y, null, [
135
135
  t("span", {
136
136
  class: "w-fit cursor-pointer",
137
137
  onClick: i
138
138
  }, [
139
139
  w(p.$slots, "trigger", { role: "button" }, () => [
140
- h[0] || (h[0] = t("button", { class: "btn" }, "Open", -1))
140
+ b[0] || (b[0] = t("button", { class: "btn" }, "Open", -1))
141
141
  ])
142
142
  ]),
143
143
  t("dialog", {
144
144
  ref_key: "dialog",
145
- ref: s,
146
- class: $(["modal", e[u.position]])
145
+ ref: a,
146
+ class: k(["modal", e[u.position]])
147
147
  }, [
148
148
  t("div", Pe, [
149
149
  w(p.$slots, "default"),
150
- t("div", je, [
150
+ t("div", Re, [
151
151
  w(p.$slots, "actions"),
152
152
  t("form", {
153
153
  method: "dialog",
154
- onSubmit: l,
155
- class: $(p.withBackdrop ? "modal-backdrop" : "")
154
+ onSubmit: s,
155
+ class: k(p.withBackdrop ? "modal-backdrop" : "")
156
156
  }, [
157
157
  w(p.$slots, "close-button", {}, () => [
158
- h[1] || (h[1] = t("button", { class: "btn" }, "Close", -1))
158
+ b[1] || (b[1] = t("button", { class: "btn" }, "Close", -1))
159
159
  ])
160
160
  ], 34)
161
161
  ])
@@ -163,21 +163,21 @@ const Ue = {
163
163
  ], 2)
164
164
  ], 64));
165
165
  }
166
- }), ze = { class: "swap-on" }, Ne = { class: "swap-off" }, yn = /* @__PURE__ */ M({
166
+ }), je = { class: "swap-on" }, ze = { class: "swap-off" }, bn = /* @__PURE__ */ M({
167
167
  __name: "swap",
168
168
  props: {
169
169
  effect: {}
170
170
  },
171
171
  setup(d) {
172
172
  const u = d;
173
- return (e, s) => (n(), a("label", {
174
- class: $(["swap", u.effect ? `swap-${e.effect}` : ""])
173
+ return (e, a) => (n(), o("label", {
174
+ class: k(["swap", u.effect ? `swap-${e.effect}` : ""])
175
175
  }, [
176
- s[0] || (s[0] = t("input", { type: "checkbox" }, null, -1)),
177
- t("div", ze, [
176
+ a[0] || (a[0] = t("input", { type: "checkbox" }, null, -1)),
177
+ t("div", je, [
178
178
  w(e.$slots, "on")
179
179
  ]),
180
- t("div", Ne, [
180
+ t("div", ze, [
181
181
  w(e.$slots, "off")
182
182
  ])
183
183
  ], 2));
@@ -189,7 +189,7 @@ const Ue = {
189
189
  * This source code is licensed under the ISC license.
190
190
  * See the LICENSE file in the root directory of this source tree.
191
191
  */
192
- const Ee = (d) => d.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
192
+ const Ne = (d) => d.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
193
193
  /**
194
194
  * @license lucide-vue-next v0.468.0 - ISC
195
195
  *
@@ -213,18 +213,18 @@ var J = {
213
213
  * This source code is licensed under the ISC license.
214
214
  * See the LICENSE file in the root directory of this source tree.
215
215
  */
216
- const Le = ({ size: d, strokeWidth: u = 2, absoluteStrokeWidth: e, color: s, iconNode: i, name: l, class: p, ...h }, { slots: f }) => te(
216
+ const Ee = ({ size: d, strokeWidth: u = 2, absoluteStrokeWidth: e, color: a, iconNode: i, name: s, class: p, ...b }, { slots: v }) => te(
217
217
  "svg",
218
218
  {
219
219
  ...J,
220
220
  width: d || J.width,
221
221
  height: d || J.height,
222
- stroke: s || J.stroke,
222
+ stroke: a || J.stroke,
223
223
  "stroke-width": e ? Number(u) * 24 / Number(d) : u,
224
- class: ["lucide", `lucide-${Ee(l ?? "icon")}`],
225
- ...h
224
+ class: ["lucide", `lucide-${Ne(s ?? "icon")}`],
225
+ ...b
226
226
  },
227
- [...i.map((m) => te(...m)), ...f.default ? [f.default()] : []]
227
+ [...i.map((m) => te(...m)), ...v.default ? [v.default()] : []]
228
228
  );
229
229
  /**
230
230
  * @license lucide-vue-next v0.468.0 - ISC
@@ -232,14 +232,14 @@ const Le = ({ size: d, strokeWidth: u = 2, absoluteStrokeWidth: e, color: s, ico
232
232
  * This source code is licensed under the ISC license.
233
233
  * See the LICENSE file in the root directory of this source tree.
234
234
  */
235
- const ae = (d, u) => (e, { slots: s }) => te(
236
- Le,
235
+ const ae = (d, u) => (e, { slots: a }) => te(
236
+ Ee,
237
237
  {
238
238
  ...e,
239
239
  iconNode: u,
240
240
  name: d
241
241
  },
242
- s
242
+ a
243
243
  );
244
244
  /**
245
245
  * @license lucide-vue-next v0.468.0 - ISC
@@ -247,7 +247,7 @@ const ae = (d, u) => (e, { slots: s }) => te(
247
247
  * This source code is licensed under the ISC license.
248
248
  * See the LICENSE file in the root directory of this source tree.
249
249
  */
250
- const Re = ae("MoonIcon", [
250
+ const Le = ae("MoonIcon", [
251
251
  ["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z", key: "a7tn18" }]
252
252
  ]);
253
253
  /**
@@ -277,16 +277,16 @@ const Fe = ae("SunIcon", [
277
277
  ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
278
278
  ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
279
279
  ]), He = (d, u) => {
280
- const e = k(null);
281
- return F(() => {
280
+ const e = $(null);
281
+ return E(() => {
282
282
  if (typeof window < "u") {
283
- const s = window.localStorage.getItem(d);
284
- e.value = s ? JSON.parse(s) : u;
283
+ const a = window.localStorage.getItem(d);
284
+ e.value = a ? JSON.parse(a) : u;
285
285
  }
286
- }), E(e, (s) => {
287
- typeof window < "u" && window.localStorage.setItem(d, JSON.stringify(s));
286
+ }), N(e, (a) => {
287
+ typeof window < "u" && window.localStorage.setItem(d, JSON.stringify(a));
288
288
  }), e;
289
- }, qe = { class: "swap-rotate swap" }, Ye = ["true-value", "false-value"], wn = /* @__PURE__ */ M({
289
+ }, qe = { class: "swap-rotate swap" }, Ye = ["true-value", "false-value"], hn = /* @__PURE__ */ M({
290
290
  __name: "theme-controller",
291
291
  props: {
292
292
  lightTheme: { default: "light" },
@@ -294,26 +294,26 @@ const Fe = ae("SunIcon", [
294
294
  },
295
295
  setup(d) {
296
296
  const u = d, e = He("theme", u.lightTheme);
297
- function s(i) {
297
+ function a(i) {
298
298
  typeof window < "u" && window.document && document.documentElement.setAttribute("data-theme", i);
299
299
  }
300
- return F(() => s(e.value ? e.value : "")), E(e, (i) => {
301
- s(i);
302
- }), (i, l) => (n(), a("label", qe, [
300
+ return E(() => a(e.value ? e.value : "")), N(e, (i) => {
301
+ a(i);
302
+ }), (i, s) => (n(), o("label", qe, [
303
303
  U(t("input", {
304
304
  type: "checkbox",
305
305
  class: "theme-controller",
306
- "onUpdate:modelValue": l[0] || (l[0] = (p) => Te(e) ? e.value = p : null),
306
+ "onUpdate:modelValue": s[0] || (s[0] = (p) => Te(e) ? e.value = p : null),
307
307
  "true-value": u.lightTheme,
308
308
  "false-value": u.darkTheme
309
309
  }, null, 8, Ye), [
310
- [Me, V(e)]
310
+ [Me, A(e)]
311
311
  ]),
312
- W(V(Fe), { class: "swap-off fill-current" }),
313
- W(V(Re), { class: "swap-on fill-current" })
312
+ W(A(Fe), { class: "swap-off fill-current" }),
313
+ W(A(Le), { class: "swap-on fill-current" })
314
314
  ]));
315
315
  }
316
- }), Je = ["name"], We = { class: "collapse-title font-bold text-2xl lg:text-4xl" }, Xe = { class: "collapse-content" }, Ze = ["innerHTML"], _n = /* @__PURE__ */ M({
316
+ }), Je = ["name"], We = { class: "collapse-title font-bold text-2xl lg:text-4xl" }, Xe = { class: "collapse-content" }, Ze = ["innerHTML"], yn = /* @__PURE__ */ M({
317
317
  __name: "accordion",
318
318
  props: {
319
319
  name: {},
@@ -323,16 +323,16 @@ const Fe = ae("SunIcon", [
323
323
  },
324
324
  setup(d) {
325
325
  const u = d;
326
- return (e, s) => (n(!0), a(y, null, _(u.items, (i, l) => (n(), a("div", {
327
- class: $(["collapse border border-base-300", [e.icon ? `collapse-${e.icon}` : "", { "join-item": e.joinItems }]]),
328
- key: l
326
+ return (e, a) => (n(!0), o(y, null, _(u.items, (i, s) => (n(), o("div", {
327
+ class: k(["collapse border border-base-300", [e.icon ? `collapse-${e.icon}` : "", { "join-item": e.joinItems }]]),
328
+ key: s
329
329
  }, [
330
330
  t("input", {
331
331
  type: "radio",
332
332
  name: e.name,
333
333
  value: "true"
334
334
  }, null, 8, Je),
335
- t("div", We, b(i.title), 1),
335
+ t("div", We, h(i.title), 1),
336
336
  t("div", Xe, [
337
337
  t("span", {
338
338
  innerHTML: i.content
@@ -340,40 +340,41 @@ const Fe = ae("SunIcon", [
340
340
  ])
341
341
  ], 2))), 128));
342
342
  }
343
- }), Ke = {
344
- key: 0,
345
- class: "rounded-sm"
346
- }, Ge = ["src"], Qe = {
347
- key: 1,
348
- class: "flex justify-center bg-neutral p-[25%] rounded-full w-16 text-neutral-content text-center"
349
- }, et = { class: "text-xl" }, kn = /* @__PURE__ */ M({
343
+ }), Ke = ["src"], Ge = { class: "text-xl" }, wn = /* @__PURE__ */ M({
350
344
  __name: "avatar",
351
345
  props: {
352
346
  image: {},
353
347
  onlineStatus: { default: "none" },
354
- initials: {}
348
+ initials: {},
349
+ fullyRounded: { type: Boolean, default: !1 }
355
350
  },
356
351
  setup(d) {
357
- const u = d, e = k(u.onlineStatus);
358
- return E(
352
+ const u = d, e = $(u.onlineStatus);
353
+ return N(
359
354
  () => u.onlineStatus,
360
- (s) => {
361
- s && (e.value = s);
355
+ (a) => {
356
+ a && (e.value = a);
362
357
  }
363
- ), (s, i) => (n(), a("div", {
364
- class: $(["avatar", `avatar-${s.onlineStatus}`])
358
+ ), (a, i) => (n(), o("div", {
359
+ class: k(["avatar", [{ "avatar-online": e.value === "online" }, { "avatar-offline": e.value === "offline" }]])
365
360
  }, [
366
- s.image ? (n(), a("div", Ke, [
361
+ a.image ? (n(), o("div", {
362
+ key: 0,
363
+ class: k(["rounded", [{ "rounded-full": a.fullyRounded }, { rounded: !a.fullyRounded }]])
364
+ }, [
367
365
  t("img", {
368
- src: s.image,
366
+ src: a.image,
369
367
  class: "w-full h-full"
370
- }, null, 8, Ge)
371
- ])) : (n(), a("div", Qe, [
372
- t("p", et, b(s.initials), 1)
373
- ]))
368
+ }, null, 8, Ke)
369
+ ], 2)) : (n(), o("div", {
370
+ key: 1,
371
+ class: k(["flex justify-center bg-neutral p-[25%] rounded w-16 text-neutral-content text-center", [{ "rounded-full": a.fullyRounded }, { rounded: !a.fullyRounded }]])
372
+ }, [
373
+ t("p", Ge, h(a.initials), 1)
374
+ ], 2))
374
375
  ], 2));
375
376
  }
376
- }), $n = /* @__PURE__ */ M({
377
+ }), kn = /* @__PURE__ */ M({
377
378
  __name: "badge",
378
379
  props: {
379
380
  color: { default: "neutral" },
@@ -386,7 +387,7 @@ const Fe = ae("SunIcon", [
386
387
  small: "badge-sm",
387
388
  medium: "badge-md",
388
389
  large: "badge-lg"
389
- }, s = {
390
+ }, a = {
390
391
  neutral: "badge-neutral",
391
392
  primary: "badge-primary",
392
393
  secondary: "badge-secondary",
@@ -397,28 +398,28 @@ const Fe = ae("SunIcon", [
397
398
  warning: "badge-warning",
398
399
  error: "badge-error"
399
400
  };
400
- return (i, l) => (n(), a("span", {
401
- class: $(["badge", e[u.size], s[u.color], { "badge-outline": u.outline }])
401
+ return (i, s) => (n(), o("span", {
402
+ class: k(["badge", e[u.size], a[u.color], { "badge-outline": u.outline }])
402
403
  }, [
403
404
  w(i.$slots, "default")
404
405
  ], 2));
405
406
  }
406
- }), tt = ["src", "alt"], nt = {
407
+ }), Qe = ["src", "alt"], et = {
407
408
  key: 1,
408
409
  class: "w-full h-32 skeleton"
409
- }, at = {
410
+ }, tt = {
410
411
  key: 0,
411
412
  class: "card-body"
412
- }, ot = {
413
+ }, nt = {
413
414
  key: 0,
414
415
  class: "group-hover:text-primary text-left text-lg cursor-pointer card-title"
415
- }, st = {
416
+ }, at = {
416
417
  key: 1,
417
418
  class: "text-left"
418
- }, lt = { class: "flex-col flex-nowrap mt-auto card-actions" }, rt = {
419
+ }, ot = { class: "flex-col flex-nowrap mt-auto card-actions" }, lt = {
419
420
  key: 1,
420
421
  class: "card-body"
421
- }, Cn = /* @__PURE__ */ M({
422
+ }, _n = /* @__PURE__ */ M({
422
423
  __name: "card",
423
424
  props: {
424
425
  imgUrl: { default: "" },
@@ -430,47 +431,47 @@ const Fe = ae("SunIcon", [
430
431
  class: { default: "" }
431
432
  },
432
433
  setup(d) {
433
- const u = d, e = k(u.outlined);
434
- return E(
434
+ const u = d, e = $(u.outlined);
435
+ return N(
435
436
  () => u.outlined,
436
- (s) => {
437
- e.value = s;
437
+ (a) => {
438
+ e.value = a;
438
439
  }
439
- ), (s, i) => (n(), a("div", {
440
- class: $(["bg-base-100 shadow-xl rounded-sm min-w-64 max-w-full h-full card card-compact group", e.value ? "border-4 border-primary" : ""])
440
+ ), (a, i) => (n(), o("div", {
441
+ class: k(["bg-base-100 shadow-xl rounded-sm min-w-64 max-w-full h-full card card-compact group", e.value ? "border-4 border-primary" : ""])
441
442
  }, [
442
443
  t("figure", null, [
443
- s.imgUrl || s.imgUrl && !s.loading ? (n(), a("img", {
444
+ a.imgUrl || a.imgUrl && !a.loading ? (n(), o("img", {
444
445
  key: 0,
445
- src: s.imgUrl,
446
- alt: s.alt,
447
- class: $(["rounded-sm w-full h-44 object-cover", {
448
- hidden: s.loading
446
+ src: a.imgUrl,
447
+ alt: a.alt,
448
+ class: k(["rounded-sm w-full h-44 object-cover", {
449
+ hidden: a.loading
449
450
  }])
450
- }, null, 10, tt)) : x("", !0),
451
- s.loading && s.imgUrl ? (n(), a("div", nt)) : x("", !0)
451
+ }, null, 10, Qe)) : S("", !0),
452
+ a.loading && a.imgUrl ? (n(), o("div", et)) : S("", !0)
452
453
  ]),
453
- s.loading ? x("", !0) : (n(), a("div", at, [
454
- s.title ? (n(), a("h2", ot, b(s.title), 1)) : x("", !0),
455
- w(s.$slots, "details"),
456
- s.description ? (n(), a("p", st, b(s.description), 1)) : x("", !0),
457
- t("div", lt, [
458
- w(s.$slots, "actions")
454
+ a.loading ? S("", !0) : (n(), o("div", tt, [
455
+ a.title ? (n(), o("h2", nt, h(a.title), 1)) : S("", !0),
456
+ w(a.$slots, "details"),
457
+ a.description ? (n(), o("p", at, h(a.description), 1)) : S("", !0),
458
+ t("div", ot, [
459
+ w(a.$slots, "actions")
459
460
  ])
460
461
  ])),
461
- s.loading ? (n(), a("div", rt, i[0] || (i[0] = [
462
+ a.loading ? (n(), o("div", lt, i[0] || (i[0] = [
462
463
  t("div", { class: "flex flex-col gap-4 w-52" }, [
463
464
  t("div", { class: "w-28 h-4 skeleton" }),
464
465
  t("div", { class: "w-full h-4 skeleton" }),
465
466
  t("div", { class: "w-full h-4 skeleton" })
466
467
  ], -1)
467
- ]))) : x("", !0)
468
+ ]))) : S("", !0)
468
469
  ], 2));
469
470
  }
470
- }), it = { class: "flex gap-4 bg-base-100 w-full tabs tabs-boxed" }, ut = ["onClick"], dt = { class: "text-sm" }, ct = { class: "md:block hidden opacity-35 text-xs truncate overflow-hidden ..." }, pt = { class: "hidden" }, mt = {
471
+ }), st = { class: "flex gap-4 bg-base-100 w-full tabs tabs-boxed" }, rt = ["onClick"], it = { class: "text-sm" }, ut = { class: "md:block hidden opacity-35 text-xs truncate overflow-hidden ..." }, dt = { class: "hidden" }, ct = {
471
472
  id: "advancedSearchMobile",
472
473
  class: "modal"
473
- }, vt = { class: "modal-box" }, ft = { class: "font-bold text-lg" }, gt = ["checked"], ht = { class: "flex justify-between items-center pr-4 w-full font-medium text-xl collapse-title" }, bt = { class: "text-sm" }, yt = { class: "flex place-content-center p-0 collapse-content" }, wt = /* @__PURE__ */ M({
474
+ }, pt = { class: "modal-box" }, mt = { class: "font-bold text-lg" }, ft = ["checked"], vt = { class: "flex justify-between items-center pr-4 w-full font-medium text-xl collapse-title" }, gt = { class: "text-sm" }, bt = { class: "flex place-content-center p-0 collapse-content" }, ht = /* @__PURE__ */ M({
474
475
  __name: "advancedSearch",
475
476
  props: {
476
477
  searchOptions: {},
@@ -478,31 +479,31 @@ const Fe = ae("SunIcon", [
478
479
  },
479
480
  emits: ["search", "update:search-data"],
480
481
  setup(d, { emit: u }) {
481
- const e = d, s = u, i = k(null), l = {
482
- datetime: Be(() => Promise.resolve().then(() => Ht))
483
- }, p = k({}), h = k({ left: "0px", top: "0px", transform: "translateX(0%)" }), f = k(null);
484
- function m(C, I) {
485
- var B, O, g;
482
+ const e = d, a = u, i = $(null), s = {
483
+ datetime: Be(() => Promise.resolve().then(() => Lt))
484
+ }, p = $({}), b = $({ left: "0px", top: "0px", transform: "translateX(0%)" }), v = $(null);
485
+ function m(C, O) {
486
+ var B, I, g;
486
487
  if ((B = i.value) != null && B.name) {
487
- s("update:search-data", {
488
+ a("update:search-data", {
488
489
  tab: i.value.name,
489
490
  data: C
490
491
  });
491
492
  return;
492
493
  }
493
494
  if (e.searchOptions) {
494
- let D = (g = (O = e.searchOptions) == null ? void 0 : O.find((A) => (A == null ? void 0 : A.category) === e.currentCategory)) == null ? void 0 : g.tabs[I];
495
- D !== void 0 && (D.value = C, s("update:search-data", {
495
+ let D = (g = (I = e.searchOptions) == null ? void 0 : I.find((V) => (V == null ? void 0 : V.category) === e.currentCategory)) == null ? void 0 : g.tabs[O];
496
+ D !== void 0 && (D.value = C, a("update:search-data", {
496
497
  tab: D == null ? void 0 : D.name,
497
498
  data: D == null ? void 0 : D.value
498
499
  }));
499
500
  }
500
501
  }
501
- function v() {
502
- s("search");
502
+ function f() {
503
+ a("search");
503
504
  }
504
- async function z(C) {
505
- f.value && !f.value.contains(C.target) && (await de(), i.value = null);
505
+ async function j(C) {
506
+ v.value && !v.value.contains(C.target) && (await de(), i.value = null);
506
507
  }
507
508
  async function Z() {
508
509
  if (typeof window < "u" && window.innerWidth <= 768) {
@@ -513,91 +514,91 @@ const Fe = ae("SunIcon", [
513
514
  async function K(C) {
514
515
  var B;
515
516
  i.value = C, await de();
516
- const I = p.value[C.name];
517
- if (I) {
518
- const O = I.getBoundingClientRect(), g = ((B = f.value) == null ? void 0 : B.getBoundingClientRect()) || { left: 0, top: 0 };
519
- window.innerWidth > 768 ? h.value = {
520
- left: `${O.left + O.width / 2 - g.left}px`,
521
- top: `${O.bottom - g.top}px`,
517
+ const O = p.value[C.name];
518
+ if (O) {
519
+ const I = O.getBoundingClientRect(), g = ((B = v.value) == null ? void 0 : B.getBoundingClientRect()) || { left: 0, top: 0 };
520
+ window.innerWidth > 768 ? b.value = {
521
+ left: `${I.left + I.width / 2 - g.left}px`,
522
+ top: `${I.bottom - g.top}px`,
522
523
  transform: "translateX(-50%)"
523
- } : h.value = {
524
+ } : b.value = {
524
525
  left: "50%",
525
- top: `${O.bottom - g.top}px`,
526
+ top: `${I.bottom - g.top}px`,
526
527
  transform: "translateX(-50%)"
527
528
  // Center the popup horizontally on mobile
528
529
  };
529
530
  } else
530
531
  console.error("Tab element not found for:", C.name);
531
532
  }
532
- return F(() => {
533
- document.addEventListener("click", z);
534
- }), Ie(() => {
535
- document.removeEventListener("click", z);
536
- }), (C, I) => {
537
- var B, O;
538
- return n(), a(y, null, [
533
+ return E(() => {
534
+ document.addEventListener("click", j);
535
+ }), Oe(() => {
536
+ document.removeEventListener("click", j);
537
+ }), (C, O) => {
538
+ var B, I;
539
+ return n(), o(y, null, [
539
540
  t("div", {
540
541
  ref_key: "searchContainer",
541
- ref: f,
542
+ ref: v,
542
543
  class: "w-full"
543
544
  }, [
544
545
  t("div", {
545
546
  class: "group/search relative flex place-items-center border-2 shadow-md p-2 border-base-300/25 rounded-sm w-full transition-all cursor-pointer md:cursor-auto",
546
547
  onClick: Z
547
548
  }, [
548
- t("div", it, [
549
- (n(!0), a(y, null, _(((B = e.searchOptions.find((g) => g.category === e.currentCategory)) == null ? void 0 : B.tabs) || [], (g) => {
549
+ t("div", st, [
550
+ (n(!0), o(y, null, _(((B = e.searchOptions.find((g) => g.category === e.currentCategory)) == null ? void 0 : B.tabs) || [], (g) => {
550
551
  var D;
551
- return n(), a("button", {
552
+ return n(), o("button", {
552
553
  key: g.name,
553
- onClick: (A) => K(g),
554
- class: $([{ "tab-active": ((D = i.value) == null ? void 0 : D.name) === g.name }, "group/searchitem relative after:top-0 after:-right-2 after:absolute first-of-type:flex-auto last-of-type:flex-auto md:after:content-[''] last-of-type:after:content-none after:content-none after:bg-base-200 hover:bg-base-200 p-1 rounded-sm w-auto after:w-[1px] after:h-10 text-start overflow-x-hidden pointer-events-none md:pointer-events-auto"]),
554
+ onClick: (V) => K(g),
555
+ class: k([{ "tab-active": ((D = i.value) == null ? void 0 : D.name) === g.name }, "group/searchitem relative after:top-0 after:-right-2 after:absolute first-of-type:flex-auto last-of-type:flex-auto md:after:content-[''] last-of-type:after:content-none after:content-none after:bg-base-200 hover:bg-base-200 p-1 rounded-sm w-auto after:w-[1px] after:h-10 text-start overflow-x-hidden pointer-events-none md:pointer-events-auto"]),
555
556
  ref_for: !0,
556
- ref: (A) => p.value[g.name] = A
557
+ ref: (V) => p.value[g.name] = V
557
558
  }, [
558
- t("p", dt, b(g.name), 1),
559
- t("p", ct, b(g.description), 1)
560
- ], 10, ut);
559
+ t("p", it, h(g.name), 1),
560
+ t("p", ut, h(g.description), 1)
561
+ ], 10, rt);
561
562
  }), 128))
562
563
  ]),
563
- i.value ? (n(), a("div", {
564
+ i.value ? (n(), o("div", {
564
565
  key: 0,
565
566
  class: "absolute flex shadow-sm mt-4 w-fit max-w-full transition-all tab-content",
566
- style: Oe(h.value)
567
+ style: Ie(b.value)
567
568
  }, [
568
- (n(), re(ie(l[i.value.type]), ue(i.value.props ? i.value.props : null, { onUpdated: m }), null, 16))
569
- ], 4)) : x("", !0),
569
+ (n(), re(ie(s[i.value.type]), ue(i.value.props ? i.value.props : null, { onUpdated: m }), null, 16))
570
+ ], 4)) : S("", !0),
570
571
  t("button", {
571
572
  title: "search",
572
573
  type: "submit",
573
574
  class: "ml-1 btn btn-primary btn-square",
574
- onClick: v
575
+ onClick: f
575
576
  }, [
576
- W(V(ce), {
577
+ W(A(ce), {
577
578
  size: 24,
578
579
  color: "white"
579
580
  })
580
581
  ])
581
582
  ]),
582
- t("div", pt, [
583
+ t("div", dt, [
583
584
  t("button", {
584
585
  title: "search",
585
- onClick: I[0] || (I[0] = () => {
586
+ onClick: O[0] || (O[0] = () => {
586
587
  })
587
588
  }, [
588
- W(V(ce), {
589
+ W(A(ce), {
589
590
  size: 24,
590
591
  color: "white"
591
592
  })
592
593
  ])
593
594
  ])
594
595
  ], 512),
595
- t("dialog", mt, [
596
- t("div", vt, [
596
+ t("dialog", ct, [
597
+ t("div", pt, [
597
598
  w(C.$slots, "additionalForMobile", {}, () => [
598
- t("h3", ft, b(C.currentCategory), 1)
599
+ t("h3", mt, h(C.currentCategory), 1)
599
600
  ], !0),
600
- (n(!0), a(y, null, _(((O = e.searchOptions.find((g) => g.category === e.currentCategory)) == null ? void 0 : O.tabs) || [], (g, D) => (n(), a("div", {
601
+ (n(!0), o(y, null, _(((I = e.searchOptions.find((g) => g.category === e.currentCategory)) == null ? void 0 : I.tabs) || [], (g, D) => (n(), o("div", {
601
602
  class: "bg-base-200 my-4 collapse",
602
603
  key: g.name
603
604
  }, [
@@ -605,15 +606,15 @@ const Fe = ae("SunIcon", [
605
606
  type: "radio",
606
607
  name: "my-accordion-1",
607
608
  checked: D === 0
608
- }, null, 8, gt),
609
- t("div", ht, [
610
- ne(b(g.name) + " ", 1),
611
- t("p", bt, b(g.description), 1)
609
+ }, null, 8, ft),
610
+ t("div", vt, [
611
+ ne(h(g.name) + " ", 1),
612
+ t("p", gt, h(g.description), 1)
612
613
  ]),
613
- t("div", yt, [
614
- I[1] || (I[1] = t("br", null, null, -1)),
615
- (n(), re(ie(l[g.type]), ue({ ref_for: !0 }, g.props || {}, {
616
- onUpdated: (A) => m(A, D)
614
+ t("div", bt, [
615
+ O[1] || (O[1] = t("br", null, null, -1)),
616
+ (n(), re(ie(s[g.type]), ue({ ref_for: !0 }, g.props || {}, {
617
+ onUpdated: (V) => m(V, D)
617
618
  }), null, 16, ["onUpdated"]))
618
619
  ])
619
620
  ]))), 128)),
@@ -621,7 +622,7 @@ const Fe = ae("SunIcon", [
621
622
  t("form", { method: "dialog" }, [
622
623
  t("button", {
623
624
  class: "btn btn-primary",
624
- onClick: v
625
+ onClick: f
625
626
  }, "Close and Search")
626
627
  ])
627
628
  ])
@@ -632,34 +633,34 @@ const Fe = ae("SunIcon", [
632
633
  }
633
634
  }), X = (d, u) => {
634
635
  const e = d.__vccOpts || d;
635
- for (const [s, i] of u)
636
- e[s] = i;
636
+ for (const [a, i] of u)
637
+ e[a] = i;
637
638
  return e;
638
- }, Sn = /* @__PURE__ */ X(wt, [["__scopeId", "data-v-08fa37eb"]]), _t = ["placeholder", "value", "id"], kt = ["id"], $t = {
639
+ }, $n = /* @__PURE__ */ X(ht, [["__scopeId", "data-v-08fa37eb"]]), yt = ["placeholder", "value", "id"], wt = ["id"], kt = {
639
640
  key: 0,
640
641
  class: "flex justify-between items-center place-content-center mb-4"
641
- }, Ct = ["value"], St = ["value"], xt = {
642
+ }, _t = ["value"], $t = ["value"], Ct = {
642
643
  key: 1,
643
644
  class: "gap-2 grid grid-cols-7"
644
- }, Dt = ["onClick"], Tt = {
645
+ }, St = ["onClick"], xt = {
645
646
  key: 2,
646
647
  class: "mt-4 lg:w-80"
647
- }, Mt = {
648
+ }, Dt = {
648
649
  key: 0,
649
650
  class: "mb-2 font-bold text-lg"
650
- }, Bt = { key: 1 }, It = {
651
+ }, Tt = { key: 1 }, Mt = {
651
652
  key: 1,
652
653
  class: "flex gap-4"
653
- }, Ot = ["value"], Ut = ["value"], Vt = {
654
+ }, Bt = ["value"], Ot = ["value"], It = {
654
655
  key: 2,
655
656
  class: "flex flex-col gap-4"
656
- }, At = {
657
+ }, Ut = {
657
658
  key: 1,
658
659
  class: "flex gap-2"
659
- }, Pt = ["value"], jt = ["value"], zt = {
660
+ }, At = ["value"], Vt = ["value"], Pt = {
660
661
  key: 1,
661
662
  class: "flex gap-2"
662
- }, Nt = ["value"], Et = ["value"], Lt = { class: "flex gap-2 mt-4" }, Rt = {
663
+ }, Rt = ["value"], jt = ["value"], zt = { class: "flex gap-2 mt-4" }, Nt = {
663
664
  __name: "datetimePicker",
664
665
  props: {
665
666
  mode: {
@@ -692,97 +693,97 @@ const Fe = ae("SunIcon", [
692
693
  emits: ["updated"],
693
694
  setup(d, { emit: u }) {
694
695
  const e = d;
695
- E(() => e.range, (r) => {
696
- r ? (l.value = { start: null, end: null }, p.value = { start: null, end: null }) : (l.value = null, p.value = null);
696
+ N(() => e.range, (r) => {
697
+ r ? (s.value = { start: null, end: null }, p.value = { start: null, end: null }) : (s.value = null, p.value = null);
697
698
  });
698
- const s = u, i = k(!1), l = k(e.range ? { start: null, end: null } : null), p = k(e.range ? { start: null, end: null } : null), h = k((/* @__PURE__ */ new Date()).toLocaleString("default", { month: "long" })), f = k((/* @__PURE__ */ new Date()).getFullYear()), m = k(e.range ? { start: 0, end: 0 } : 0), v = k(e.range ? { start: 0, end: 0 } : 0), z = k(null), Z = S(() => `${e.id}-input`), K = S(() => `${e.id}-popup`), C = S(() => e.mode === "date" || e.mode === "datetime"), I = S(() => e.mode === "time" || e.mode === "datetime");
699
- S(() => new Date(f.value, B.value));
700
- const B = S(() => q.indexOf(h.value)), O = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], g = S(() => new Date(f.value, B.value).getDay()), D = S(() => {
701
- const r = new Date(f.value, B.value + 1, 0).getDate();
702
- return Array.from({ length: r }, (c, o) => new Date(f.value, B.value, o + 1));
703
- }), A = S(() => Array.from({ length: g.value }, (r, c) => c)), G = Array.from({ length: 24 }, (r, c) => c), Q = Array.from({ length: 60 }, (r, c) => c), H = S(
699
+ const a = u, i = $(!1), s = $(e.range ? { start: null, end: null } : null), p = $(e.range ? { start: null, end: null } : null), b = $((/* @__PURE__ */ new Date()).toLocaleString("default", { month: "long" })), v = $((/* @__PURE__ */ new Date()).getFullYear()), m = $(e.range ? { start: 0, end: 0 } : 0), f = $(e.range ? { start: 0, end: 0 } : 0), j = $(null), Z = x(() => `${e.id}-input`), K = x(() => `${e.id}-popup`), C = x(() => e.mode === "date" || e.mode === "datetime"), O = x(() => e.mode === "time" || e.mode === "datetime");
700
+ x(() => new Date(v.value, B.value));
701
+ const B = x(() => q.indexOf(b.value)), I = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], g = x(() => new Date(v.value, B.value).getDay()), D = x(() => {
702
+ const r = new Date(v.value, B.value + 1, 0).getDate();
703
+ return Array.from({ length: r }, (c, l) => new Date(v.value, B.value, l + 1));
704
+ }), V = x(() => Array.from({ length: g.value }, (r, c) => c)), G = Array.from({ length: 24 }, (r, c) => c), Q = Array.from({ length: 60 }, (r, c) => c), H = x(
704
705
  () => typeof navigator < "u" && /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
705
706
  navigator.userAgent
706
707
  )
707
- ), q = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], me = S(() => {
708
+ ), q = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], me = x(() => {
708
709
  const r = (/* @__PURE__ */ new Date()).getFullYear();
709
- return Array.from({ length: 100 }, (c, o) => r - 50 + o);
710
- }), ve = S(() => {
711
- if (!C.value || !l.value) return "";
712
- if (e.range && l.value.start && l.value.end) {
713
- const r = l.value.start.toLocaleDateString("en-US"), c = l.value.end.toLocaleDateString("en-US");
710
+ return Array.from({ length: 100 }, (c, l) => r - 50 + l);
711
+ }), fe = x(() => {
712
+ if (!C.value || !s.value) return "";
713
+ if (e.range && s.value.start && s.value.end) {
714
+ const r = s.value.start.toLocaleDateString("en-US"), c = s.value.end.toLocaleDateString("en-US");
714
715
  return `${r} - ${c}`;
715
716
  }
716
- return !e.range && l.value ? l.value.toLocaleDateString("en-US") : "";
717
- }), L = (r) => r instanceof Date ? r : new Date(r), N = (r) => r instanceof Date && !isNaN(r), fe = S(() => {
718
- if (!I.value) return "";
717
+ return !e.range && s.value ? s.value.toLocaleDateString("en-US") : "";
718
+ }), L = (r) => r instanceof Date ? r : new Date(r), z = (r) => r instanceof Date && !isNaN(r), ve = x(() => {
719
+ if (!O.value) return "";
719
720
  const r = (c) => {
720
- var Y, R, le;
721
- const o = ((Y = m.value) == null ? void 0 : Y[c]) ?? m.value, P = ((R = v.value) == null ? void 0 : R[c]) ?? v.value;
722
- return H.value ? ((le = p.value) == null ? void 0 : le[c]) ?? p.value : `${o.toString().padStart(2, "0")}:${P.toString().padStart(2, "0")}`;
721
+ var Y, F, se;
722
+ const l = ((Y = m.value) == null ? void 0 : Y[c]) ?? m.value, P = ((F = f.value) == null ? void 0 : F[c]) ?? f.value;
723
+ return H.value ? ((se = p.value) == null ? void 0 : se[c]) ?? p.value : `${l.toString().padStart(2, "0")}:${P.toString().padStart(2, "0")}`;
723
724
  };
724
725
  return e.range ? `${r("start")} - ${r("end")}` : r();
725
- }), ge = S(() => {
726
- const r = ve.value, c = fe.value;
726
+ }), ge = x(() => {
727
+ const r = fe.value, c = ve.value;
727
728
  return `${r} ${c}`.trim();
728
- }), he = () => i.value = !i.value, oe = () => {
729
- T(), be();
730
- }, be = () => i.value = !1, ye = () => {
731
- l.value = e.range ? { start: null, end: null } : null, p.value = e.range ? { start: null, end: null } : null, T();
729
+ }), be = () => i.value = !i.value, oe = () => {
730
+ T(), he();
731
+ }, he = () => i.value = !1, ye = () => {
732
+ s.value = e.range ? { start: null, end: null } : null, p.value = e.range ? { start: null, end: null } : null, T();
732
733
  }, we = (r) => {
733
- e.range ? l.value.start && l.value.end ? l.value = { start: r, end: null } : l.value.start ? l.value.end = r : l.value.start = r : l.value = r, T();
734
- }, _e = (r) => (r = L(r), e.range ? l.value.start && N(l.value.start) && r.getTime() === l.value.start.getTime() || l.value.end && N(l.value.end) && r.getTime() === l.value.end.getTime() : N(l.value) && r.getTime() === l.value.getTime()), ke = (r) => {
734
+ e.range ? s.value.start && s.value.end ? s.value = { start: r, end: null } : s.value.start ? s.value.end = r : s.value.start = r : s.value = r, T();
735
+ }, ke = (r) => (r = L(r), e.range ? s.value.start && z(s.value.start) && r.getTime() === s.value.start.getTime() || s.value.end && z(s.value.end) && r.getTime() === s.value.end.getTime() : z(s.value) && r.getTime() === s.value.getTime()), _e = (r) => {
735
736
  r = L(r);
736
737
  const c = /* @__PURE__ */ new Date();
737
738
  return r.getDate() === c.getDate() && r.getMonth() === c.getMonth() && r.getFullYear() === c.getFullYear();
738
- }, $e = (r) => (r = L(r), e.range && N(l.value.start) && r.getTime() === l.value.start.getTime()), Ce = (r) => (r = L(r), e.range && N(l.value.end) && r.getTime() === l.value.end.getTime()), Se = (r) => {
739
- if (r = L(r), e.range && N(l.value.start) && N(l.value.end)) {
740
- const c = l.value.start.getTime(), o = l.value.end.getTime(), P = r.getTime();
741
- return P > c && P < o;
739
+ }, $e = (r) => (r = L(r), e.range && z(s.value.start) && r.getTime() === s.value.start.getTime()), Ce = (r) => (r = L(r), e.range && z(s.value.end) && r.getTime() === s.value.end.getTime()), Se = (r) => {
740
+ if (r = L(r), e.range && z(s.value.start) && z(s.value.end)) {
741
+ const c = s.value.start.getTime(), l = s.value.end.getTime(), P = r.getTime();
742
+ return P > c && P < l;
742
743
  }
743
744
  return !1;
744
745
  }, xe = () => {
745
746
  let r = B.value - 1;
746
- r < 0 && (r = 11, f.value--), h.value = q[r], T();
747
+ r < 0 && (r = 11, v.value--), b.value = q[r], T();
747
748
  }, De = () => {
748
749
  let r = B.value + 1;
749
- r > 11 && (r = 0, f.value++), h.value = q[r], T();
750
- }, se = (r) => {
751
- z.value && !z.value.contains(r.target) && i.value == !0 && oe();
750
+ r > 11 && (r = 0, v.value++), b.value = q[r], T();
751
+ }, le = (r) => {
752
+ j.value && !j.value.contains(r.target) && i.value == !0 && oe();
752
753
  }, T = () => {
753
754
  let r = {};
754
- const c = (o, P, Y) => {
755
- o instanceof Date && !isNaN(o) || (o = /* @__PURE__ */ new Date());
756
- const R = new Date(o);
757
- return R.setUTCHours(P, Y, 0, 0), R.toISOString();
755
+ const c = (l, P, Y) => {
756
+ l instanceof Date && !isNaN(l) || (l = /* @__PURE__ */ new Date());
757
+ const F = new Date(l);
758
+ return F.setUTCHours(P, Y, 0, 0), F.toISOString();
758
759
  };
759
760
  e.range ? (r.from = c(
760
- l.value.start,
761
+ s.value.start,
761
762
  m.value.start,
762
- v.value.start
763
+ f.value.start
763
764
  ), r.to = c(
764
- l.value.end,
765
+ s.value.end,
765
766
  m.value.end,
766
- v.value.end
767
+ f.value.end
767
768
  )) : r = c(
768
- l.value,
769
+ s.value,
769
770
  m.value,
770
- v.value
771
- ), s("updated", r);
771
+ f.value
772
+ ), a("updated", r);
772
773
  };
773
- return F(() => {
774
- e.initialDate && (e.range && e.initialDate.start && e.initialDate.end ? l.value = {
774
+ return E(() => {
775
+ e.initialDate && (e.range && e.initialDate.start && e.initialDate.end ? s.value = {
775
776
  start: new Date(e.initialDate.start),
776
777
  end: new Date(e.initialDate.end)
777
- } : e.initialDate.start && (l.value = { start: new Date(e.initialDate.start) })), e.range ? (m.value.start = m.value.start ?? (/* @__PURE__ */ new Date()).getHours(), m.value.end = m.value.end ?? (/* @__PURE__ */ new Date()).getHours(), v.value.start = v.value.start ?? (/* @__PURE__ */ new Date()).getMinutes(), v.value.end = v.value.end ?? (/* @__PURE__ */ new Date()).getMinutes()) : (m.value = m.value ?? (/* @__PURE__ */ new Date()).getHours(), v.value = v.value ?? (/* @__PURE__ */ new Date()).getMinutes());
778
- }), e.popup && F(() => document.addEventListener("click", se)), pe(() => document.removeEventListener("click", se)), (r, c) => (n(), a("div", {
778
+ } : e.initialDate.start && (s.value = { start: new Date(e.initialDate.start) })), e.range ? (m.value.start = m.value.start ?? (/* @__PURE__ */ new Date()).getHours(), m.value.end = m.value.end ?? (/* @__PURE__ */ new Date()).getHours(), f.value.start = f.value.start ?? (/* @__PURE__ */ new Date()).getMinutes(), f.value.end = f.value.end ?? (/* @__PURE__ */ new Date()).getMinutes()) : (m.value = m.value ?? (/* @__PURE__ */ new Date()).getHours(), f.value = f.value ?? (/* @__PURE__ */ new Date()).getMinutes());
779
+ }), e.popup && E(() => document.addEventListener("click", le)), pe(() => document.removeEventListener("click", le)), (r, c) => (n(), o("div", {
779
780
  class: "inline-block relative w-full lg:w-[360px]",
780
781
  ref_key: "pickerContainer",
781
- ref: z
782
+ ref: j
782
783
  }, [
783
784
  t("div", {
784
785
  class: "flex items-center gap-2 cursor-pointer",
785
- onClick: he
786
+ onClick: be
786
787
  }, [
787
788
  d.popup ? w(r.$slots, "default", { key: 0 }, () => [
788
789
  t("input", {
@@ -792,16 +793,16 @@ const Fe = ae("SunIcon", [
792
793
  value: ge.value,
793
794
  readonly: "",
794
795
  id: Z.value
795
- }, null, 8, _t),
796
+ }, null, 8, yt),
796
797
  c[11] || (c[11] = t("button", { class: "btn btn-ghost" }, " 📅 ", -1))
797
- ], !0) : x("", !0)
798
+ ], !0) : S("", !0)
798
799
  ]),
799
- i.value || !d.popup ? (n(), a("div", {
800
+ i.value || !d.popup ? (n(), o("div", {
800
801
  key: 0,
801
- class: $(["z-50 lg:bg-base-100 md:mt-2 md:p-4 px-4 rounded-md w-full", [{ absolute: d.popup }]]),
802
+ class: k(["z-50 lg:bg-base-100 md:mt-2 md:p-4 px-4 rounded-md w-full", [{ absolute: d.popup }]]),
802
803
  id: K.value
803
804
  }, [
804
- C.value ? (n(), a("div", $t, [
805
+ C.value ? (n(), o("div", kt, [
805
806
  t("button", {
806
807
  class: "hidden md:block btn-outline btn btn-primary md:btn-sm",
807
808
  onClick: xe
@@ -823,27 +824,27 @@ const Fe = ae("SunIcon", [
823
824
  ])),
824
825
  U(t("select", {
825
826
  class: "border-none w-fit select",
826
- "onUpdate:modelValue": c[0] || (c[0] = (o) => h.value = o),
827
+ "onUpdate:modelValue": c[0] || (c[0] = (l) => b.value = l),
827
828
  onChange: T
828
829
  }, [
829
- (n(), a(y, null, _(q, (o, P) => t("option", {
830
+ (n(), o(y, null, _(q, (l, P) => t("option", {
830
831
  key: P,
831
- value: o
832
- }, b(o), 9, Ct)), 64))
832
+ value: l
833
+ }, h(l), 9, _t)), 64))
833
834
  ], 544), [
834
- [j, h.value]
835
+ [R, b.value]
835
836
  ]),
836
837
  U(t("select", {
837
838
  class: "border-none w-24 select",
838
- "onUpdate:modelValue": c[1] || (c[1] = (o) => f.value = o),
839
+ "onUpdate:modelValue": c[1] || (c[1] = (l) => v.value = l),
839
840
  onChange: T
840
841
  }, [
841
- (n(!0), a(y, null, _(me.value, (o) => (n(), a("option", {
842
- key: o,
843
- value: o
844
- }, b(o), 9, St))), 128))
842
+ (n(!0), o(y, null, _(me.value, (l) => (n(), o("option", {
843
+ key: l,
844
+ value: l
845
+ }, h(l), 9, $t))), 128))
845
846
  ], 544), [
846
- [j, f.value]
847
+ [R, v.value]
847
848
  ]),
848
849
  t("button", {
849
850
  class: "hidden md:block btn-outline btn btn-primary md:btn-sm",
@@ -864,54 +865,54 @@ const Fe = ae("SunIcon", [
864
865
  })
865
866
  ], -1)
866
867
  ]))
867
- ])) : x("", !0),
868
- C.value ? (n(), a("div", xt, [
869
- (n(), a(y, null, _(O, (o) => t("div", {
870
- key: o,
868
+ ])) : S("", !0),
869
+ C.value ? (n(), o("div", Ct, [
870
+ (n(), o(y, null, _(I, (l) => t("div", {
871
+ key: l,
871
872
  class: "text-center"
872
- }, b(o), 1)), 64)),
873
- (n(!0), a(y, null, _(A.value, (o) => (n(), a("div", {
874
- key: o,
873
+ }, h(l), 1)), 64)),
874
+ (n(!0), o(y, null, _(V.value, (l) => (n(), o("div", {
875
+ key: l,
875
876
  class: "text-center"
876
877
  }))), 128)),
877
- (n(!0), a(y, null, _(D.value, (o) => (n(), a("div", {
878
- key: o,
879
- class: $(["hover:bg-primary-10 py-1 rounded-full text-center cursor-pointer", {
880
- "bg-primary text-primary-content": _e(o),
881
- today: ke(o),
882
- "range-start bg-primary text-primary-content": $e(o),
883
- "range-end bg-primary text-primary-content": Ce(o),
884
- "in-range bg-primary/20 hover:bg-primary/10": Se(o)
878
+ (n(!0), o(y, null, _(D.value, (l) => (n(), o("div", {
879
+ key: l,
880
+ class: k(["hover:bg-primary-10 py-1 rounded-full text-center cursor-pointer", {
881
+ "bg-primary text-primary-content": ke(l),
882
+ today: _e(l),
883
+ "range-start bg-primary text-primary-content": $e(l),
884
+ "range-end bg-primary text-primary-content": Ce(l),
885
+ "in-range bg-primary/20 hover:bg-primary/10": Se(l)
885
886
  }]),
886
- onClick: (P) => we(o)
887
- }, b(o.getDate()), 11, Dt))), 128))
888
- ])) : x("", !0),
889
- I.value ? (n(), a("div", Tt, [
890
- e.range ? x("", !0) : (n(), a("h3", Mt, "Select Time")),
891
- e.range ? (n(), a("div", Vt, [
887
+ onClick: (P) => we(l)
888
+ }, h(l.getDate()), 11, St))), 128))
889
+ ])) : S("", !0),
890
+ O.value ? (n(), o("div", xt, [
891
+ e.range ? S("", !0) : (n(), o("h3", Dt, "Select Time")),
892
+ e.range ? (n(), o("div", It, [
892
893
  t("div", null, [
893
894
  c[14] || (c[14] = t("p", { class: "font-bold" }, "Start Time", -1)),
894
- H.value ? U((n(), a("input", {
895
+ H.value ? U((n(), o("input", {
895
896
  key: 0,
896
897
  type: "time",
897
898
  class: "input-bordered w-full input",
898
- "onUpdate:modelValue": c[5] || (c[5] = (o) => p.value.start = o),
899
+ "onUpdate:modelValue": c[5] || (c[5] = (l) => p.value.start = l),
899
900
  onChange: T
900
901
  }, null, 544)), [
901
902
  [ee, p.value.start]
902
- ]) : (n(), a("div", At, [
903
+ ]) : (n(), o("div", Ut, [
903
904
  U(t("select", {
904
905
  class: "w-full select-bordered select",
905
- "onUpdate:modelValue": c[6] || (c[6] = (o) => m.value.start = o),
906
+ "onUpdate:modelValue": c[6] || (c[6] = (l) => m.value.start = l),
906
907
  onChange: T
907
908
  }, [
908
- (n(!0), a(y, null, _(V(G), (o) => (n(), a("option", {
909
- key: o,
910
- value: o
911
- }, b(o.toString().padStart(2, "0")), 9, Pt))), 128))
909
+ (n(!0), o(y, null, _(A(G), (l) => (n(), o("option", {
910
+ key: l,
911
+ value: l
912
+ }, h(l.toString().padStart(2, "0")), 9, At))), 128))
912
913
  ], 544), [
913
914
  [
914
- j,
915
+ R,
915
916
  m.value.start,
916
917
  void 0,
917
918
  { number: !0 }
@@ -919,17 +920,17 @@ const Fe = ae("SunIcon", [
919
920
  ]),
920
921
  U(t("select", {
921
922
  class: "w-full select-bordered select",
922
- "onUpdate:modelValue": c[7] || (c[7] = (o) => v.value.start = o),
923
+ "onUpdate:modelValue": c[7] || (c[7] = (l) => f.value.start = l),
923
924
  onChange: T
924
925
  }, [
925
- (n(!0), a(y, null, _(V(Q), (o) => (n(), a("option", {
926
- key: o,
927
- value: o
928
- }, b(o.toString().padStart(2, "0")), 9, jt))), 128))
926
+ (n(!0), o(y, null, _(A(Q), (l) => (n(), o("option", {
927
+ key: l,
928
+ value: l
929
+ }, h(l.toString().padStart(2, "0")), 9, Vt))), 128))
929
930
  ], 544), [
930
931
  [
931
- j,
932
- v.value.start,
932
+ R,
933
+ f.value.start,
933
934
  void 0,
934
935
  { number: !0 }
935
936
  ]
@@ -938,27 +939,27 @@ const Fe = ae("SunIcon", [
938
939
  ]),
939
940
  t("div", null, [
940
941
  c[15] || (c[15] = t("p", { class: "font-bold" }, "End Time", -1)),
941
- H.value ? U((n(), a("input", {
942
+ H.value ? U((n(), o("input", {
942
943
  key: 0,
943
944
  type: "time",
944
945
  class: "input-bordered w-full input",
945
- "onUpdate:modelValue": c[8] || (c[8] = (o) => p.value.end = o),
946
+ "onUpdate:modelValue": c[8] || (c[8] = (l) => p.value.end = l),
946
947
  onChange: T
947
948
  }, null, 544)), [
948
949
  [ee, p.value.end]
949
- ]) : (n(), a("div", zt, [
950
+ ]) : (n(), o("div", Pt, [
950
951
  U(t("select", {
951
952
  class: "w-full select-bordered select",
952
- "onUpdate:modelValue": c[9] || (c[9] = (o) => m.value.end = o),
953
+ "onUpdate:modelValue": c[9] || (c[9] = (l) => m.value.end = l),
953
954
  onChange: T
954
955
  }, [
955
- (n(!0), a(y, null, _(V(G), (o) => (n(), a("option", {
956
- key: o,
957
- value: o
958
- }, b(o.toString().padStart(2, "0")), 9, Nt))), 128))
956
+ (n(!0), o(y, null, _(A(G), (l) => (n(), o("option", {
957
+ key: l,
958
+ value: l
959
+ }, h(l.toString().padStart(2, "0")), 9, Rt))), 128))
959
960
  ], 544), [
960
961
  [
961
- j,
962
+ R,
962
963
  m.value.end,
963
964
  void 0,
964
965
  { number: !0 }
@@ -966,45 +967,45 @@ const Fe = ae("SunIcon", [
966
967
  ]),
967
968
  U(t("select", {
968
969
  class: "w-full select-bordered select",
969
- "onUpdate:modelValue": c[10] || (c[10] = (o) => v.value.end = o),
970
+ "onUpdate:modelValue": c[10] || (c[10] = (l) => f.value.end = l),
970
971
  onChange: T
971
972
  }, [
972
- (n(!0), a(y, null, _(V(Q), (o) => (n(), a("option", {
973
- key: o,
974
- value: o
975
- }, b(o.toString().padStart(2, "0")), 9, Et))), 128))
973
+ (n(!0), o(y, null, _(A(Q), (l) => (n(), o("option", {
974
+ key: l,
975
+ value: l
976
+ }, h(l.toString().padStart(2, "0")), 9, jt))), 128))
976
977
  ], 544), [
977
978
  [
978
- j,
979
- v.value.end,
979
+ R,
980
+ f.value.end,
980
981
  void 0,
981
982
  { number: !0 }
982
983
  ]
983
984
  ])
984
985
  ]))
985
986
  ])
986
- ])) : (n(), a("div", Bt, [
987
- H.value ? U((n(), a("input", {
987
+ ])) : (n(), o("div", Tt, [
988
+ H.value ? U((n(), o("input", {
988
989
  key: 0,
989
990
  type: "time",
990
991
  class: "input-bordered w-full input",
991
- "onUpdate:modelValue": c[2] || (c[2] = (o) => p.value = o),
992
+ "onUpdate:modelValue": c[2] || (c[2] = (l) => p.value = l),
992
993
  onChange: T
993
994
  }, null, 544)), [
994
995
  [ee, p.value]
995
- ]) : (n(), a("div", It, [
996
+ ]) : (n(), o("div", Mt, [
996
997
  U(t("select", {
997
998
  class: "w-full select-bordered select",
998
- "onUpdate:modelValue": c[3] || (c[3] = (o) => m.value = o),
999
+ "onUpdate:modelValue": c[3] || (c[3] = (l) => m.value = l),
999
1000
  onChange: T
1000
1001
  }, [
1001
- (n(!0), a(y, null, _(V(G), (o) => (n(), a("option", {
1002
- key: o,
1003
- value: o
1004
- }, b(o.toString().padStart(2, "0")), 9, Ot))), 128))
1002
+ (n(!0), o(y, null, _(A(G), (l) => (n(), o("option", {
1003
+ key: l,
1004
+ value: l
1005
+ }, h(l.toString().padStart(2, "0")), 9, Bt))), 128))
1005
1006
  ], 544), [
1006
1007
  [
1007
- j,
1008
+ R,
1008
1009
  m.value,
1009
1010
  void 0,
1010
1011
  { number: !0 }
@@ -1012,42 +1013,42 @@ const Fe = ae("SunIcon", [
1012
1013
  ]),
1013
1014
  U(t("select", {
1014
1015
  class: "w-full select-bordered select",
1015
- "onUpdate:modelValue": c[4] || (c[4] = (o) => v.value = o),
1016
+ "onUpdate:modelValue": c[4] || (c[4] = (l) => f.value = l),
1016
1017
  onChange: T
1017
1018
  }, [
1018
- (n(!0), a(y, null, _(V(Q), (o) => (n(), a("option", {
1019
- key: o,
1020
- value: o
1021
- }, b(o.toString().padStart(2, "0")), 9, Ut))), 128))
1019
+ (n(!0), o(y, null, _(A(Q), (l) => (n(), o("option", {
1020
+ key: l,
1021
+ value: l
1022
+ }, h(l.toString().padStart(2, "0")), 9, Ot))), 128))
1022
1023
  ], 544), [
1023
1024
  [
1024
- j,
1025
- v.value,
1025
+ R,
1026
+ f.value,
1026
1027
  void 0,
1027
1028
  { number: !0 }
1028
1029
  ]
1029
1030
  ])
1030
1031
  ]))
1031
1032
  ]))
1032
- ])) : x("", !0),
1033
- t("div", Lt, [
1033
+ ])) : S("", !0),
1034
+ t("div", zt, [
1034
1035
  t("button", {
1035
- class: $(["btn btn-secondary", d.popup ? "w-fit" : "w-full"]),
1036
+ class: k(["btn btn-secondary", d.popup ? "w-fit" : "w-full"]),
1036
1037
  onClick: ye
1037
1038
  }, "Clear", 2),
1038
- d.popup ? (n(), a("button", {
1039
+ d.popup ? (n(), o("button", {
1039
1040
  key: 0,
1040
1041
  class: "btn btn-primary btn-wide",
1041
1042
  onClick: oe
1042
- }, "Close")) : x("", !0)
1043
+ }, "Close")) : S("", !0)
1043
1044
  ])
1044
- ], 10, kt)) : x("", !0)
1045
+ ], 10, wt)) : S("", !0)
1045
1046
  ], 512));
1046
1047
  }
1047
- }, Ft = /* @__PURE__ */ X(Rt, [["__scopeId", "data-v-cb781ab6"]]), Ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1048
+ }, Et = /* @__PURE__ */ X(Nt, [["__scopeId", "data-v-cb781ab6"]]), Lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1048
1049
  __proto__: null,
1049
- default: Ft
1050
- }, Symbol.toStringTag, { value: "Module" })), qt = ["value", "checked", "onChange", "disabled"], xn = /* @__PURE__ */ M({
1050
+ default: Et
1051
+ }, Symbol.toStringTag, { value: "Module" })), Ft = ["value", "checked", "onChange", "disabled"], Cn = /* @__PURE__ */ M({
1051
1052
  __name: "rating",
1052
1053
  props: {
1053
1054
  initialRating: { default: 0 },
@@ -1057,29 +1058,29 @@ const Fe = ae("SunIcon", [
1057
1058
  size: { default: "sm" }
1058
1059
  },
1059
1060
  setup(d) {
1060
- const u = d, e = k(u.initialRating);
1061
- E(
1061
+ const u = d, e = $(u.initialRating);
1062
+ N(
1062
1063
  () => u.initialRating,
1063
1064
  (i) => {
1064
1065
  e.value = i;
1065
1066
  }
1066
1067
  );
1067
- const s = (i) => {
1068
+ const a = (i) => {
1068
1069
  e.value = i;
1069
1070
  };
1070
- return (i, l) => (n(), a("div", {
1071
- class: $(["rating", [
1071
+ return (i, s) => (n(), o("div", {
1072
+ class: k(["rating", [
1072
1073
  `rating-${u.size}`,
1073
1074
  { "rating-half": i.halfStars }
1074
1075
  ]])
1075
1076
  }, [
1076
- (n(!0), a(y, null, _(i.numberOfStars * (i.halfStars ? 2 : 1), (p) => (n(), a("input", {
1077
+ (n(!0), o(y, null, _(i.numberOfStars * (i.halfStars ? 2 : 1), (p) => (n(), o("input", {
1077
1078
  key: p,
1078
1079
  type: "radio",
1079
1080
  value: i.halfStars ? p * 0.5 : p,
1080
1081
  checked: e.value === (i.halfStars ? p * 0.5 : p),
1081
- onChange: (h) => i.isInteractive ? s(i.halfStars ? p * 0.5 : p) : null,
1082
- class: $(["mask mask-star", {
1082
+ onChange: (b) => i.isInteractive ? a(i.halfStars ? p * 0.5 : p) : null,
1083
+ class: k(["mask mask-star", {
1083
1084
  "bg-yellow-400": e.value >= (i.halfStars ? p * 0.5 : p),
1084
1085
  "mask-half-1": i.halfStars && p % 2 !== 0,
1085
1086
  "mask-half-2": i.halfStars && p % 2 === 0,
@@ -1087,54 +1088,54 @@ const Fe = ae("SunIcon", [
1087
1088
  "cursor-default": !i.isInteractive
1088
1089
  }]),
1089
1090
  disabled: !i.isInteractive
1090
- }, null, 42, qt))), 128))
1091
+ }, null, 42, Ft))), 128))
1091
1092
  ], 2));
1092
1093
  }
1093
- }), Yt = {
1094
+ }), Ht = {
1094
1095
  key: 0,
1095
1096
  class: "loading loading-spinner loading-md mx-auto"
1096
- }, Dn = /* @__PURE__ */ M({
1097
+ }, Sn = /* @__PURE__ */ M({
1097
1098
  __name: "loader",
1098
1099
  props: {
1099
1100
  loading: { type: Boolean, default: !0 }
1100
1101
  },
1101
1102
  setup(d) {
1102
- const u = d, e = k(u.loading);
1103
- return E(
1103
+ const u = d, e = $(u.loading);
1104
+ return N(
1104
1105
  () => u.loading,
1105
- (s) => {
1106
- e.value = s;
1106
+ (a) => {
1107
+ e.value = a;
1107
1108
  }
1108
- ), (s, i) => e.value ? (n(), a("span", Yt)) : x("", !0);
1109
+ ), (a, i) => e.value ? (n(), o("span", Ht)) : S("", !0);
1109
1110
  }
1110
- }), Jt = { class: "bg-base-200 mx-auto md:px-10 py-10 text-base-content" }, Wt = { class: "footer sm:footer-horizontal container" }, Xt = { class: "footer-title" }, Zt = ["href"], Kt = { class: "ml-auto" }, Tn = /* @__PURE__ */ M({
1111
+ }), qt = { class: "bg-base-200 mx-auto md:px-10 py-10 text-base-content" }, Yt = { class: "footer sm:footer-horizontal container" }, Jt = { class: "footer-title" }, Wt = ["href"], Xt = { class: "ml-auto" }, xn = /* @__PURE__ */ M({
1111
1112
  __name: "footer",
1112
1113
  props: {
1113
1114
  items: {}
1114
1115
  },
1115
1116
  setup(d) {
1116
1117
  const u = d;
1117
- return (e, s) => (n(), a("div", Jt, [
1118
- t("footer", Wt, [
1119
- (n(!0), a(y, null, _(u.items, (i) => (n(), a("nav", null, [
1120
- t("h6", Xt, b(i.title), 1),
1121
- (n(!0), a(y, null, _(i.items, (l) => (n(), a("a", {
1118
+ return (e, a) => (n(), o("div", qt, [
1119
+ t("footer", Yt, [
1120
+ (n(!0), o(y, null, _(u.items, (i) => (n(), o("nav", null, [
1121
+ t("h6", Jt, h(i.title), 1),
1122
+ (n(!0), o(y, null, _(i.items, (s) => (n(), o("a", {
1122
1123
  class: "link link-hover",
1123
- href: l.link
1124
- }, b(l.text), 9, Zt))), 256))
1124
+ href: s.link
1125
+ }, h(s.text), 9, Wt))), 256))
1125
1126
  ]))), 256)),
1126
- t("aside", Kt, [
1127
+ t("aside", Xt, [
1127
1128
  w(e.$slots, "default")
1128
1129
  ])
1129
1130
  ])
1130
1131
  ]));
1131
1132
  }
1132
- }), Gt = {}, Qt = { class: "min-h-40 container hero" }, en = { class: "px-0! text-center hero-content" }, tn = { class: "mt-9 text-4xl" };
1133
- function nn(d, u) {
1134
- return n(), a("div", Qt, [
1135
- t("div", en, [
1133
+ }), Zt = {}, Kt = { class: "min-h-40 container hero" }, Gt = { class: "px-0! text-center hero-content" }, Qt = { class: "mt-9 text-4xl" };
1134
+ function en(d, u) {
1135
+ return n(), o("div", Kt, [
1136
+ t("div", Gt, [
1136
1137
  t("div", null, [
1137
- t("h1", tn, [
1138
+ t("h1", Qt, [
1138
1139
  w(d.$slots, "title", {}, () => [
1139
1140
  u[0] || (u[0] = ne("hero title"))
1140
1141
  ])
@@ -1149,7 +1150,7 @@ function nn(d, u) {
1149
1150
  ])
1150
1151
  ]);
1151
1152
  }
1152
- const Mn = /* @__PURE__ */ X(Gt, [["render", nn]]), an = { class: "categories flex flex-row gap-4 place-content-center" }, on = ["onClick"], Bn = /* @__PURE__ */ M({
1153
+ const Dn = /* @__PURE__ */ X(Zt, [["render", en]]), tn = { class: "categories flex flex-row gap-4 place-content-center" }, nn = ["onClick"], Tn = /* @__PURE__ */ M({
1153
1154
  __name: "categoryNavigation",
1154
1155
  props: {
1155
1156
  searchOptions: {},
@@ -1157,122 +1158,126 @@ const Mn = /* @__PURE__ */ X(Gt, [["render", nn]]), an = { class: "categories fl
1157
1158
  },
1158
1159
  emits: ["update:currentCategory"],
1159
1160
  setup(d, { emit: u }) {
1160
- const e = d, s = u;
1161
- function i(l) {
1162
- s("update:currentCategory", l);
1161
+ const e = d, a = u;
1162
+ function i(s) {
1163
+ a("update:currentCategory", s);
1163
1164
  }
1164
- return (l, p) => (n(), a("div", an, [
1165
- (n(!0), a(y, null, _(e.searchOptions, (h) => (n(), a("div", {
1166
- key: h.category
1165
+ return (s, p) => (n(), o("div", tn, [
1166
+ (n(!0), o(y, null, _(e.searchOptions, (b) => (n(), o("div", {
1167
+ key: b.category
1167
1168
  }, [
1168
1169
  t("button", {
1169
- onClick: (f) => i(h.category),
1170
- class: $(["truncate", { "font-semibold": e.currentCategory === h.category }])
1171
- }, b(h.category), 11, on)
1170
+ onClick: (v) => i(b.category),
1171
+ class: k(["truncate", { "font-semibold": e.currentCategory === b.category }])
1172
+ }, h(b.category), 11, nn)
1172
1173
  ]))), 128))
1173
1174
  ]));
1174
1175
  }
1175
- }), sn = { class: "md:flex hidden navbar-start" }, ln = { class: "md:flex justify-center items-center hidden navbar-center" }, rn = { class: "md:flex hidden navbar-end" }, un = { class: "navbar-bottom md:flex hidden" }, dn = /* @__PURE__ */ M({
1176
+ }), an = { class: "md:flex hidden navbar-start" }, on = { class: "md:flex justify-center items-center hidden navbar-center" }, ln = { class: "md:flex hidden navbar-end" }, sn = { class: "navbar-bottom md:flex hidden" }, rn = /* @__PURE__ */ M({
1176
1177
  __name: "navigationBar",
1177
1178
  props: {
1178
1179
  isCollapsed: { type: Boolean, default: !0 }
1179
1180
  },
1180
1181
  setup(d) {
1181
1182
  const u = d;
1182
- return (e, s) => (n(), a("nav", {
1183
- class: $(["place-items-start border-primary bg-base-100 px-5 py-5 border-b-4 transition-all navbar navigationbar", u.isCollapsed ? "collapsed" : ""])
1183
+ return (e, a) => (n(), o("nav", {
1184
+ class: k(["place-items-start border-primary bg-base-100 px-5 py-5 border-b-4 transition-all navbar navigationbar", u.isCollapsed ? "collapsed" : ""])
1184
1185
  }, [
1185
- t("div", sn, [
1186
+ t("div", an, [
1186
1187
  w(e.$slots, "start", {}, void 0, !0)
1187
1188
  ]),
1188
- t("div", ln, [
1189
+ t("div", on, [
1189
1190
  w(e.$slots, "center", {}, void 0, !0)
1190
1191
  ]),
1191
- t("div", rn, [
1192
+ t("div", ln, [
1192
1193
  w(e.$slots, "end", {}, void 0, !0)
1193
1194
  ]),
1194
- t("div", un, [
1195
+ t("div", sn, [
1195
1196
  w(e.$slots, "bottom", {}, void 0, !0)
1196
1197
  ])
1197
1198
  ], 2));
1198
1199
  }
1199
- }), In = /* @__PURE__ */ X(dn, [["__scopeId", "data-v-8ddb2b45"]]), cn = {
1200
+ }), Mn = /* @__PURE__ */ X(rn, [["__scopeId", "data-v-8ddb2b45"]]), un = {
1200
1201
  role: "tablist",
1201
- class: "tabs tabs-bordered tabs-lg mt-28 relative w-full"
1202
- }, pn = {
1202
+ class: "relative tabs-bordered w-full tabs tabs-lg"
1203
+ }, dn = {
1204
+ key: 0,
1205
+ class: "hidden top-4 right-0 absolute md:flex gap-4"
1206
+ }, cn = ["onClick", "aria-selected"], pn = {
1203
1207
  key: 0,
1204
- class: "hidden md:flex gap-4 right-0 top-4 absolute"
1205
- }, mn = ["onClick", "aria-selected"], vn = {
1206
1208
  role: "tabpanel",
1207
- class: "tab-content border-base-300 border-t-2 border-x-0 border-b-0 p-6 overflow-x-auto max-w-full"
1208
- }, On = /* @__PURE__ */ M({
1209
+ class: "p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full overflow-x-auto tab-content"
1210
+ }, Bn = /* @__PURE__ */ M({
1209
1211
  __name: "tab",
1210
1212
  props: {
1211
1213
  items: {},
1212
- withControlls: { type: Boolean },
1213
- rotateTabsAfter: {}
1214
+ withControlls: { type: Boolean, default: !1 },
1215
+ rotateTabsAfter: { default: 0 },
1216
+ buttonOnlyMode: { type: Boolean, default: !1 }
1214
1217
  },
1215
1218
  emits: ["tab-changed"],
1216
1219
  setup(d, { emit: u }) {
1217
- const e = d, s = k(e.items[0]), i = u;
1218
- function l(f) {
1219
- s.value = f, i("tab-changed", f);
1220
+ const e = d, a = $(e.items[0]), i = u;
1221
+ function s(v) {
1222
+ a.value = v, i("tab-changed", v);
1220
1223
  }
1221
1224
  function p() {
1222
- const m = (e.items.indexOf(s.value) + 1) % e.items.length;
1223
- l(e.items[m]);
1225
+ const m = (e.items.indexOf(a.value) + 1) % e.items.length;
1226
+ s(e.items[m]);
1224
1227
  }
1225
- function h() {
1226
- const m = (e.items.indexOf(s.value) - 1 + e.items.length) % e.items.length;
1227
- l(e.items[m]);
1228
+ function b() {
1229
+ const m = (e.items.indexOf(a.value) - 1 + e.items.length) % e.items.length;
1230
+ s(e.items[m]);
1228
1231
  }
1229
- return pe(() => {
1230
- e.rotateTabsAfter && setInterval(() => {
1232
+ return E(() => {
1233
+ e.items && s(e.items[0]);
1234
+ }), pe(() => {
1235
+ e.rotateTabsAfter && e.rotateTabsAfter > 0 && setInterval(() => {
1231
1236
  p();
1232
1237
  }, e.rotateTabsAfter * 1e3);
1233
- }), (f, m) => (n(), a("div", cn, [
1234
- f.withControlls ? (n(), a("div", pn, [
1238
+ }), (v, m) => (n(), o("div", un, [
1239
+ v.withControlls ? (n(), o("div", dn, [
1235
1240
  t("button", {
1236
- onClick: m[0] || (m[0] = (v) => h()),
1241
+ onClick: m[0] || (m[0] = (f) => b()),
1237
1242
  class: "cursor-pointer"
1238
1243
  }, "Previous"),
1239
1244
  t("button", {
1240
- onClick: m[1] || (m[1] = (v) => p()),
1241
- class: "cursor-pointer text-primary"
1245
+ onClick: m[1] || (m[1] = (f) => p()),
1246
+ class: "text-primary cursor-pointer"
1242
1247
  }, "Next")
1243
- ])) : x("", !0),
1244
- (n(!0), a(y, null, _(f.items, (v) => (n(), a(y, null, [
1248
+ ])) : S("", !0),
1249
+ (n(!0), o(y, null, _(v.items, (f) => (n(), o(y, null, [
1245
1250
  t("a", {
1246
1251
  type: "button",
1247
1252
  role: "tab",
1248
- class: $(["tab min-w-max", v === s.value ? "bg-primary text-base-100" : ""]),
1249
- onClick: (z) => l(v),
1250
- "aria-selected": s.value == v
1251
- }, b(v), 11, mn),
1252
- t("div", vn, [
1253
- w(f.$slots, `${v}-tab`)
1254
- ])
1253
+ class: k(["min-w-max tab", f === a.value ? "bg-primary text-base-100" : ""]),
1254
+ onClick: (j) => s(f),
1255
+ "aria-selected": a.value == f
1256
+ }, h(f), 11, cn),
1257
+ v.buttonOnlyMode ? S("", !0) : (n(), o("div", pn, [
1258
+ w(v.$slots, `${f}-tab`)
1259
+ ]))
1255
1260
  ], 64))), 256))
1256
1261
  ]));
1257
1262
  }
1258
1263
  });
1259
1264
  export {
1260
- _n as Accordion,
1261
- Sn as AdvancedSearch,
1262
- kn as Avatar,
1263
- $n as Badge,
1264
- gn as ButtonComponent,
1265
- Cn as Card,
1266
- Bn as CategoryNavigation,
1267
- Ft as DatetimePicker,
1268
- hn as Dropdown,
1269
- Tn as Footer,
1270
- Mn as Hero,
1271
- Dn as Loader,
1272
- bn as Modal,
1273
- In as NavigationBar,
1274
- xn as Rating,
1275
- yn as Swap,
1276
- On as Tab,
1277
- wn as ThemeController
1265
+ yn as Accordion,
1266
+ $n as AdvancedSearch,
1267
+ wn as Avatar,
1268
+ kn as Badge,
1269
+ fn as ButtonComponent,
1270
+ _n as Card,
1271
+ Tn as CategoryNavigation,
1272
+ Et as DatetimePicker,
1273
+ vn as Dropdown,
1274
+ xn as Footer,
1275
+ Dn as Hero,
1276
+ Sn as Loader,
1277
+ gn as Modal,
1278
+ Mn as NavigationBar,
1279
+ Cn as Rating,
1280
+ bn as Swap,
1281
+ Bn as Tab,
1282
+ hn as ThemeController
1278
1283
  };