manolis-ui 0.2.7 → 0.2.9

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 T, createElementBlock as o, openBlock as a, normalizeClass as k, createCommentVNode as D, renderSlot as h, createTextVNode as ae, createElementVNode as n, Fragment as y, renderList as C, toDisplayString as w, ref as _, h as ne, onMounted as E, watch as L, withDirectives as V, createVNode as Y, isRef as Te, vModelCheckbox as Me, unref as A, 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 Z } from "vue";
1
+ import { defineComponent as M, computed as T, createElementBlock as o, openBlock as a, normalizeClass as w, createCommentVNode as x, renderSlot as y, createTextVNode as ae, createElementVNode as n, Fragment as h, renderList as $, toDisplayString as b, ref as C, h as ne, onMounted as E, watch as L, withDirectives as V, createVNode as Y, 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 j, vModelText as Z } from "vue";
2
2
  const Ve = {
3
3
  key: 0,
4
4
  class: "loading loading-spinner"
5
- }, bn = /* @__PURE__ */ M({
5
+ }, Sn = /* @__PURE__ */ M({
6
6
  __name: "ButtonComponent",
7
7
  props: {
8
8
  outlined: { type: Boolean, default: !1 },
@@ -64,10 +64,10 @@ const Ve = {
64
64
  }
65
65
  });
66
66
  return (r, p) => (a(), o("button", {
67
- class: k(["btn", { "btn-outline": u.outlined }, { "btn-active": u.active }, t.value, e.value, l.value])
67
+ class: w(["btn", { "btn-outline": u.outlined }, { "btn-active": u.active }, t.value, e.value, l.value])
68
68
  }, [
69
- r.loading ? (a(), o("span", Ve)) : D("", !0),
70
- h(r.$slots, "default", {}, () => [
69
+ r.loading ? (a(), o("span", Ve)) : x("", !0),
70
+ y(r.$slots, "default", {}, () => [
71
71
  p[0] || (p[0] = ae("Submit"))
72
72
  ])
73
73
  ], 2));
@@ -75,7 +75,7 @@ const Ve = {
75
75
  }), Ue = {
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"], yn = /* @__PURE__ */ M({
78
+ }, Ae = ["href"], Dn = /* @__PURE__ */ M({
79
79
  __name: "dropdown",
80
80
  props: {
81
81
  items: {},
@@ -95,25 +95,25 @@ const Ve = {
95
95
  end: "dropdown-end"
96
96
  }, t = d;
97
97
  return (l, r) => (a(), o("div", {
98
- class: k(["dropdown", u[t.position], e[t.floatPosition], { "dropdown-open": t.forceOpen }, { "dropdown-hover": t.openOnHover }])
98
+ class: w(["dropdown", u[t.position], e[t.floatPosition], { "dropdown-open": t.forceOpen }, { "dropdown-hover": t.openOnHover }])
99
99
  }, [
100
- h(l.$slots, "default", {
100
+ y(l.$slots, "default", {
101
101
  tabindex: "0",
102
102
  role: "button"
103
103
  }, () => [
104
104
  r[0] || (r[0] = n("div", { class: "m-1 btn" }, "Open dropdown", -1))
105
105
  ]),
106
106
  n("ul", Ue, [
107
- (a(!0), o(y, null, C(l.items, (p) => (a(), o("li", null, [
107
+ (a(!0), o(h, null, $(l.items, (p) => (a(), o("li", null, [
108
108
  n("a", {
109
109
  href: p.link
110
- }, w(p.text), 9, Ae)
110
+ }, b(p.text), 9, Ae)
111
111
  ]))), 256)),
112
- h(l.$slots, "additional")
112
+ y(l.$slots, "additional")
113
113
  ])
114
114
  ], 2));
115
115
  }
116
- }), ze = { class: "modal-box" }, Re = { class: "modal-action" }, wn = /* @__PURE__ */ M({
116
+ }), ze = { class: "modal-box" }, Re = { class: "modal-action" }, Tn = /* @__PURE__ */ M({
117
117
  __name: "modal",
118
118
  props: {
119
119
  position: { default: "center" },
@@ -124,37 +124,37 @@ const Ve = {
124
124
  top: "modal-top",
125
125
  bottom: "modal-bottom",
126
126
  center: "modal-middle"
127
- }, t = _(null), l = () => {
127
+ }, t = C(null), l = () => {
128
128
  var p;
129
129
  (p = t.value) == null || p.showModal();
130
130
  }, r = () => {
131
131
  var p;
132
132
  (p = t.value) == null || p.close();
133
133
  };
134
- return (p, v) => (a(), o(y, null, [
134
+ return (p, v) => (a(), o(h, null, [
135
135
  n("span", {
136
136
  class: "w-fit cursor-pointer",
137
137
  onClick: l
138
138
  }, [
139
- h(p.$slots, "trigger", { role: "button" }, () => [
139
+ y(p.$slots, "trigger", { role: "button" }, () => [
140
140
  v[0] || (v[0] = n("button", { class: "btn" }, "Open", -1))
141
141
  ])
142
142
  ]),
143
143
  n("dialog", {
144
144
  ref_key: "dialog",
145
145
  ref: t,
146
- class: k(["modal", e[u.position]])
146
+ class: w(["modal", e[u.position]])
147
147
  }, [
148
148
  n("div", ze, [
149
- h(p.$slots, "default"),
149
+ y(p.$slots, "default"),
150
150
  n("div", Re, [
151
- h(p.$slots, "actions"),
151
+ y(p.$slots, "actions"),
152
152
  n("form", {
153
153
  method: "dialog",
154
154
  onSubmit: r,
155
- class: k(p.withBackdrop ? "modal-backdrop" : "")
155
+ class: w(p.withBackdrop ? "modal-backdrop" : "")
156
156
  }, [
157
- h(p.$slots, "close-button", {}, () => [
157
+ y(p.$slots, "close-button", {}, () => [
158
158
  v[1] || (v[1] = n("button", { class: "btn" }, "Close", -1))
159
159
  ])
160
160
  ], 34)
@@ -163,7 +163,7 @@ const Ve = {
163
163
  ], 2)
164
164
  ], 64));
165
165
  }
166
- }), Pe = { class: "swap-on" }, je = { class: "swap-off" }, kn = /* @__PURE__ */ M({
166
+ }), Pe = { class: "swap-on" }, je = { class: "swap-off" }, Mn = /* @__PURE__ */ M({
167
167
  __name: "swap",
168
168
  props: {
169
169
  effect: {}
@@ -171,14 +171,14 @@ const Ve = {
171
171
  setup(d) {
172
172
  const u = d;
173
173
  return (e, t) => (a(), o("label", {
174
- class: k(["swap", u.effect ? `swap-${e.effect}` : ""])
174
+ class: w(["swap", u.effect ? `swap-${e.effect}` : ""])
175
175
  }, [
176
176
  t[0] || (t[0] = n("input", { type: "checkbox" }, null, -1)),
177
177
  n("div", Pe, [
178
- h(e.$slots, "on")
178
+ y(e.$slots, "on")
179
179
  ]),
180
180
  n("div", je, [
181
- h(e.$slots, "off")
181
+ y(e.$slots, "off")
182
182
  ])
183
183
  ], 2));
184
184
  }
@@ -289,7 +289,7 @@ const He = G("SunIcon", [
289
289
  ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
290
290
  ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
291
291
  ]), qe = (d, u) => {
292
- const e = _(null);
292
+ const e = C(null);
293
293
  return E(() => {
294
294
  if (typeof window < "u") {
295
295
  const t = window.localStorage.getItem(d);
@@ -298,7 +298,7 @@ const He = G("SunIcon", [
298
298
  }), L(e, (t) => {
299
299
  typeof window < "u" && window.localStorage.setItem(d, JSON.stringify(t));
300
300
  }), e;
301
- }, Ye = { class: "swap-rotate swap" }, Je = ["true-value", "false-value"], $n = /* @__PURE__ */ M({
301
+ }, Ye = { class: "swap-rotate swap" }, Je = ["true-value", "false-value"], Bn = /* @__PURE__ */ M({
302
302
  __name: "theme-controller",
303
303
  props: {
304
304
  lightTheme: { default: "light" },
@@ -325,7 +325,7 @@ const He = G("SunIcon", [
325
325
  Y(A(Fe), { class: "swap-on fill-current" })
326
326
  ]));
327
327
  }
328
- }), Xe = ["name"], Ke = { class: "collapse-title font-bold text-2xl lg:text-4xl" }, We = { class: "collapse-content" }, Ze = ["innerHTML"], _n = /* @__PURE__ */ M({
328
+ }), Xe = ["name"], Ke = { class: "collapse-title font-bold text-2xl lg:text-4xl" }, We = { class: "collapse-content" }, Ze = ["innerHTML"], On = /* @__PURE__ */ M({
329
329
  __name: "accordion",
330
330
  props: {
331
331
  name: {},
@@ -335,8 +335,8 @@ const He = G("SunIcon", [
335
335
  },
336
336
  setup(d) {
337
337
  const u = d;
338
- return (e, t) => (a(!0), o(y, null, C(u.items, (l, r) => (a(), o("div", {
339
- class: k(["collapse border border-base-300", [e.icon ? `collapse-${e.icon}` : "", { "join-item": e.joinItems }]]),
338
+ return (e, t) => (a(!0), o(h, null, $(u.items, (l, r) => (a(), o("div", {
339
+ class: w(["collapse border border-base-300", [e.icon ? `collapse-${e.icon}` : "", { "join-item": e.joinItems }]]),
340
340
  key: r
341
341
  }, [
342
342
  n("input", {
@@ -344,7 +344,7 @@ const He = G("SunIcon", [
344
344
  name: e.name,
345
345
  value: "true"
346
346
  }, null, 8, Xe),
347
- n("div", Ke, w(l.title), 1),
347
+ n("div", Ke, b(l.title), 1),
348
348
  n("div", We, [
349
349
  n("span", {
350
350
  innerHTML: l.content
@@ -352,7 +352,7 @@ const He = G("SunIcon", [
352
352
  ])
353
353
  ], 2))), 128));
354
354
  }
355
- }), Ge = ["src"], Qe = { class: "text-xl" }, Cn = /* @__PURE__ */ M({
355
+ }), Ge = ["src"], Qe = { class: "text-xl" }, In = /* @__PURE__ */ M({
356
356
  __name: "avatar",
357
357
  props: {
358
358
  image: {},
@@ -361,18 +361,18 @@ const He = G("SunIcon", [
361
361
  fullyRounded: { type: Boolean, default: !1 }
362
362
  },
363
363
  setup(d) {
364
- const u = d, e = _(u.onlineStatus);
364
+ const u = d, e = C(u.onlineStatus);
365
365
  return L(
366
366
  () => u.onlineStatus,
367
367
  (t) => {
368
368
  t && (e.value = t);
369
369
  }
370
370
  ), (t, l) => (a(), o("div", {
371
- class: k(["avatar", [{ "avatar-online": e.value === "online" }, { "avatar-offline": e.value === "offline" }]])
371
+ class: w(["avatar", [{ "avatar-online": e.value === "online" }, { "avatar-offline": e.value === "offline" }]])
372
372
  }, [
373
373
  t.image ? (a(), o("div", {
374
374
  key: 0,
375
- class: k(["rounded", [{ "rounded-full": t.fullyRounded }, { rounded: !t.fullyRounded }]])
375
+ class: w(["rounded", [{ "rounded-full": t.fullyRounded }, { rounded: !t.fullyRounded }]])
376
376
  }, [
377
377
  n("img", {
378
378
  src: t.image,
@@ -380,13 +380,13 @@ const He = G("SunIcon", [
380
380
  }, null, 8, Ge)
381
381
  ], 2)) : (a(), o("div", {
382
382
  key: 1,
383
- class: k(["flex justify-center bg-neutral p-[25%] rounded w-16 text-neutral-content text-center", [{ "rounded-full": t.fullyRounded }, { rounded: !t.fullyRounded }]])
383
+ class: w(["flex justify-center bg-neutral p-[25%] rounded w-16 text-neutral-content text-center", [{ "rounded-full": t.fullyRounded }, { rounded: !t.fullyRounded }]])
384
384
  }, [
385
- n("p", Qe, w(t.initials), 1)
385
+ n("p", Qe, b(t.initials), 1)
386
386
  ], 2))
387
387
  ], 2));
388
388
  }
389
- }), Sn = /* @__PURE__ */ M({
389
+ }), Vn = /* @__PURE__ */ M({
390
390
  __name: "badge",
391
391
  props: {
392
392
  color: { default: "neutral" },
@@ -411,9 +411,9 @@ const He = G("SunIcon", [
411
411
  error: "badge-error"
412
412
  };
413
413
  return (l, r) => (a(), o("span", {
414
- class: k(["badge", e[u.size], t[u.color], { "badge-outline": u.outline }])
414
+ class: w(["badge", e[u.size], t[u.color], { "badge-outline": u.outline }])
415
415
  }, [
416
- h(l.$slots, "default")
416
+ y(l.$slots, "default")
417
417
  ], 2));
418
418
  }
419
419
  }), et = ["src", "alt"], tt = {
@@ -431,7 +431,7 @@ const He = G("SunIcon", [
431
431
  }, lt = { class: "flex-col flex-nowrap mt-auto card-actions" }, st = {
432
432
  key: 1,
433
433
  class: "card-body"
434
- }, xn = /* @__PURE__ */ M({
434
+ }, Un = /* @__PURE__ */ M({
435
435
  __name: "card",
436
436
  props: {
437
437
  imgUrl: { default: "" },
@@ -443,32 +443,32 @@ const He = G("SunIcon", [
443
443
  class: { default: "" }
444
444
  },
445
445
  setup(d) {
446
- const u = d, e = _(u.outlined);
446
+ const u = d, e = C(u.outlined);
447
447
  return L(
448
448
  () => u.outlined,
449
449
  (t) => {
450
450
  e.value = t;
451
451
  }
452
452
  ), (t, l) => (a(), o("div", {
453
- class: k(["group bg-base-100 shadow-xl rounded-sm min-w-64 max-w-full h-full card card-compact", e.value ? "border-4 border-primary" : ""])
453
+ class: w(["group bg-base-100 shadow-xl rounded-sm min-w-64 max-w-full h-full card card-compact", e.value ? "border-4 border-primary" : ""])
454
454
  }, [
455
455
  n("figure", null, [
456
456
  t.imgUrl || t.imgUrl && !t.loading ? (a(), o("img", {
457
457
  key: 0,
458
458
  src: t.imgUrl,
459
459
  alt: t.alt,
460
- class: k(["rounded-sm w-full h-44 object-cover", {
460
+ class: w(["rounded-sm w-full h-44 object-cover", {
461
461
  hidden: t.loading
462
462
  }])
463
- }, null, 10, et)) : D("", !0),
464
- t.loading && t.imgUrl ? (a(), o("div", tt)) : D("", !0)
463
+ }, null, 10, et)) : x("", !0),
464
+ t.loading && t.imgUrl ? (a(), o("div", tt)) : x("", !0)
465
465
  ]),
466
- t.loading ? D("", !0) : (a(), o("div", nt, [
467
- t.title ? (a(), o("h2", at, w(t.title), 1)) : D("", !0),
468
- h(t.$slots, "details"),
469
- t.description ? (a(), o("p", ot, w(t.description), 1)) : D("", !0),
466
+ t.loading ? x("", !0) : (a(), o("div", nt, [
467
+ t.title ? (a(), o("h2", at, b(t.title), 1)) : x("", !0),
468
+ y(t.$slots, "details"),
469
+ t.description ? (a(), o("p", ot, b(t.description), 1)) : x("", !0),
470
470
  n("div", lt, [
471
- h(t.$slots, "actions")
471
+ y(t.$slots, "actions")
472
472
  ])
473
473
  ])),
474
474
  t.loading ? (a(), o("div", st, l[0] || (l[0] = [
@@ -477,7 +477,7 @@ const He = G("SunIcon", [
477
477
  n("div", { class: "w-full h-4 skeleton" }),
478
478
  n("div", { class: "w-full h-4 skeleton" })
479
479
  ], -1)
480
- ]))) : D("", !0)
480
+ ]))) : x("", !0)
481
481
  ], 2));
482
482
  }
483
483
  }), rt = { class: "flex gap-4 bg-base-100 w-full tabs tabs-boxed" }, it = ["onClick"], ut = { class: "text-sm" }, dt = { class: "md:block hidden opacity-35 text-xs truncate overflow-hidden ..." }, ct = { class: "hidden" }, pt = {
@@ -491,64 +491,64 @@ const He = G("SunIcon", [
491
491
  },
492
492
  emits: ["search", "update:search-data"],
493
493
  setup(d, { emit: u }) {
494
- const e = d, t = u, l = _(null), r = {
494
+ const e = d, t = u, l = C(null), r = {
495
495
  datetime: Be(() => Promise.resolve().then(() => Ht))
496
- }, p = _({}), v = _({ left: "0px", top: "0px", transform: "translateX(0%)" }), f = _(null);
497
- function m($, x) {
498
- var B, U, b;
496
+ }, p = C({}), v = C({ left: "0px", top: "0px", transform: "translateX(0%)" }), f = C(null);
497
+ function m(_, D) {
498
+ var B, U, k;
499
499
  if ((B = l.value) != null && B.name) {
500
500
  t("update:search-data", {
501
501
  tab: l.value.name,
502
- data: $
502
+ data: _
503
503
  });
504
504
  return;
505
505
  }
506
506
  if (e.searchOptions) {
507
- let I = (b = (U = e.searchOptions) == null ? void 0 : U.find((z) => (z == null ? void 0 : z.category) === e.currentCategory)) == null ? void 0 : b.tabs[x];
508
- I !== void 0 && (I.value = $, t("update:search-data", {
509
- tab: I == null ? void 0 : I.name,
510
- data: I == null ? void 0 : I.value
507
+ let O = (k = (U = e.searchOptions) == null ? void 0 : U.find((z) => (z == null ? void 0 : z.category) === e.currentCategory)) == null ? void 0 : k.tabs[D];
508
+ O !== void 0 && (O.value = _, t("update:search-data", {
509
+ tab: O == null ? void 0 : O.name,
510
+ data: O == null ? void 0 : O.value
511
511
  }));
512
512
  }
513
513
  }
514
514
  function g() {
515
515
  t("search");
516
516
  }
517
- async function R($) {
518
- f.value && !f.value.contains($.target) && (await de(), l.value = null);
517
+ async function R(_) {
518
+ f.value && !f.value.contains(_.target) && (await de(), l.value = null);
519
519
  }
520
520
  async function F() {
521
521
  if (typeof window < "u" && window.innerWidth <= 768) {
522
- const $ = document.getElementById("advancedSearchMobile");
523
- $ ? $.showModal() : console.warn("Modal element not found.");
522
+ const _ = document.getElementById("advancedSearchMobile");
523
+ _ ? _.showModal() : console.warn("Modal element not found.");
524
524
  }
525
525
  }
526
- async function S($) {
526
+ async function S(_) {
527
527
  var B;
528
- l.value = $, await de();
529
- const x = p.value[$.name];
530
- if (x) {
531
- const U = x.getBoundingClientRect(), b = ((B = f.value) == null ? void 0 : B.getBoundingClientRect()) || { left: 0, top: 0 };
528
+ l.value = _, await de();
529
+ const D = p.value[_.name];
530
+ if (D) {
531
+ const U = D.getBoundingClientRect(), k = ((B = f.value) == null ? void 0 : B.getBoundingClientRect()) || { left: 0, top: 0 };
532
532
  window.innerWidth > 768 ? v.value = {
533
- left: `${U.left + U.width / 2 - b.left}px`,
534
- top: `${U.bottom - b.top}px`,
533
+ left: `${U.left + U.width / 2 - k.left}px`,
534
+ top: `${U.bottom - k.top}px`,
535
535
  transform: "translateX(-50%)"
536
536
  } : v.value = {
537
537
  left: "50%",
538
- top: `${U.bottom - b.top}px`,
538
+ top: `${U.bottom - k.top}px`,
539
539
  transform: "translateX(-50%)"
540
540
  // Center the popup horizontally on mobile
541
541
  };
542
542
  } else
543
- console.error("Tab element not found for:", $.name);
543
+ console.error("Tab element not found for:", _.name);
544
544
  }
545
545
  return E(() => {
546
546
  document.addEventListener("click", R);
547
- }), Ie(() => {
547
+ }), Oe(() => {
548
548
  document.removeEventListener("click", R);
549
- }), ($, x) => {
549
+ }), (_, D) => {
550
550
  var B, U;
551
- return a(), o(y, null, [
551
+ return a(), o(h, null, [
552
552
  n("div", {
553
553
  ref_key: "searchContainer",
554
554
  ref: f,
@@ -559,27 +559,27 @@ const He = G("SunIcon", [
559
559
  onClick: F
560
560
  }, [
561
561
  n("div", rt, [
562
- (a(!0), o(y, null, C(((B = e.searchOptions.find((b) => b.category === e.currentCategory)) == null ? void 0 : B.tabs) || [], (b) => {
563
- var I;
562
+ (a(!0), o(h, null, $(((B = e.searchOptions.find((k) => k.category === e.currentCategory)) == null ? void 0 : B.tabs) || [], (k) => {
563
+ var O;
564
564
  return a(), o("button", {
565
- key: b.name,
566
- onClick: (z) => S(b),
567
- class: k([{ "tab-active": ((I = l.value) == null ? void 0 : I.name) === b.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"]),
565
+ key: k.name,
566
+ onClick: (z) => S(k),
567
+ class: w([{ "tab-active": ((O = l.value) == null ? void 0 : O.name) === k.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"]),
568
568
  ref_for: !0,
569
- ref: (z) => p.value[b.name] = z
569
+ ref: (z) => p.value[k.name] = z
570
570
  }, [
571
- n("p", ut, w(b.name), 1),
572
- n("p", dt, w(b.description), 1)
571
+ n("p", ut, b(k.name), 1),
572
+ n("p", dt, b(k.description), 1)
573
573
  ], 10, it);
574
574
  }), 128))
575
575
  ]),
576
576
  l.value ? (a(), o("div", {
577
577
  key: 0,
578
578
  class: "absolute flex shadow-sm mt-4 w-fit max-w-full transition-all tab-content",
579
- style: Oe(v.value)
579
+ style: Ie(v.value)
580
580
  }, [
581
581
  (a(), re(ie(r[l.value.type]), ue(l.value.props ? l.value.props : null, { onUpdated: m }), null, 16))
582
- ], 4)) : D("", !0),
582
+ ], 4)) : x("", !0),
583
583
  n("button", {
584
584
  title: "search",
585
585
  type: "submit",
@@ -595,7 +595,7 @@ const He = G("SunIcon", [
595
595
  n("div", ct, [
596
596
  n("button", {
597
597
  title: "search",
598
- onClick: x[0] || (x[0] = () => {
598
+ onClick: D[0] || (D[0] = () => {
599
599
  })
600
600
  }, [
601
601
  Y(A(ce), {
@@ -607,26 +607,26 @@ const He = G("SunIcon", [
607
607
  ], 512),
608
608
  n("dialog", pt, [
609
609
  n("div", mt, [
610
- h($.$slots, "additionalForMobile", {}, () => [
611
- n("h3", ft, w($.currentCategory), 1)
610
+ y(_.$slots, "additionalForMobile", {}, () => [
611
+ n("h3", ft, b(_.currentCategory), 1)
612
612
  ], !0),
613
- (a(!0), o(y, null, C(((U = e.searchOptions.find((b) => b.category === e.currentCategory)) == null ? void 0 : U.tabs) || [], (b, I) => (a(), o("div", {
613
+ (a(!0), o(h, null, $(((U = e.searchOptions.find((k) => k.category === e.currentCategory)) == null ? void 0 : U.tabs) || [], (k, O) => (a(), o("div", {
614
614
  class: "bg-base-200 my-4 collapse",
615
- key: b.name
615
+ key: k.name
616
616
  }, [
617
617
  n("input", {
618
618
  type: "radio",
619
619
  name: "my-accordion-1",
620
- checked: I === 0
620
+ checked: O === 0
621
621
  }, null, 8, vt),
622
622
  n("div", gt, [
623
- ae(w(b.name) + " ", 1),
624
- n("p", ht, w(b.description), 1)
623
+ ae(b(k.name) + " ", 1),
624
+ n("p", ht, b(k.description), 1)
625
625
  ]),
626
626
  n("div", bt, [
627
- x[1] || (x[1] = n("br", null, null, -1)),
628
- (a(), re(ie(r[b.type]), ue({ ref_for: !0 }, b.props || {}, {
629
- onUpdated: (z) => m(z, I)
627
+ D[1] || (D[1] = n("br", null, null, -1)),
628
+ (a(), re(ie(r[k.type]), ue({ ref_for: !0 }, k.props || {}, {
629
+ onUpdated: (z) => m(z, O)
630
630
  }), null, 16, ["onUpdated"]))
631
631
  ])
632
632
  ]))), 128)),
@@ -648,10 +648,10 @@ const He = G("SunIcon", [
648
648
  for (const [t, l] of u)
649
649
  e[t] = l;
650
650
  return e;
651
- }, Dn = /* @__PURE__ */ Q(yt, [["__scopeId", "data-v-08fa37eb"]]), wt = ["placeholder", "value", "id"], kt = { class: "btn btn-ghost" }, $t = ["id"], _t = {
651
+ }, An = /* @__PURE__ */ Q(yt, [["__scopeId", "data-v-08fa37eb"]]), wt = ["placeholder", "value", "id"], kt = { class: "btn btn-ghost" }, _t = ["id"], $t = {
652
652
  key: 0,
653
653
  class: "flex justify-between items-center place-content-center mb-4"
654
- }, Ct = ["value"], St = ["value"], xt = {
654
+ }, Ct = ["value"], xt = ["value"], St = {
655
655
  key: 1,
656
656
  class: "gap-2 grid grid-cols-7"
657
657
  }, Dt = ["onClick"], Tt = {
@@ -660,10 +660,10 @@ const He = G("SunIcon", [
660
660
  }, Mt = {
661
661
  key: 0,
662
662
  class: "mb-2 font-bold text-lg"
663
- }, Bt = { key: 1 }, It = {
663
+ }, Bt = { key: 1 }, Ot = {
664
664
  key: 1,
665
665
  class: "flex gap-4"
666
- }, Ot = ["value"], Vt = ["value"], Ut = {
666
+ }, It = ["value"], Vt = ["value"], Ut = {
667
667
  key: 2,
668
668
  class: "flex flex-col gap-4"
669
669
  }, At = {
@@ -708,12 +708,12 @@ const He = G("SunIcon", [
708
708
  L(() => e.range, (i) => {
709
709
  i ? (r.value = { start: null, end: null }, p.value = { start: null, end: null }) : (r.value = null, p.value = null);
710
710
  });
711
- const t = u, l = _(!1), r = _(e.range ? { start: null, end: null } : null), p = _(e.range ? { start: null, end: null } : null), v = _((/* @__PURE__ */ new Date()).toLocaleString("default", { month: "long" })), f = _((/* @__PURE__ */ new Date()).getFullYear()), m = _(e.range ? { start: 0, end: 0 } : 0), g = _(e.range ? { start: 0, end: 0 } : 0), R = _(null), F = T(() => `${e.id}-input`), S = T(() => `${e.id}-popup`), $ = T(() => e.mode === "date" || e.mode === "datetime"), x = T(() => e.mode === "time" || e.mode === "datetime");
711
+ const t = u, l = C(!1), r = C(e.range ? { start: null, end: null } : null), p = C(e.range ? { start: null, end: null } : null), v = C((/* @__PURE__ */ new Date()).toLocaleString("default", { month: "long" })), f = C((/* @__PURE__ */ new Date()).getFullYear()), m = C(e.range ? { start: 0, end: 0 } : 0), g = C(e.range ? { start: 0, end: 0 } : 0), R = C(null), F = T(() => `${e.id}-input`), S = T(() => `${e.id}-popup`), _ = T(() => e.mode === "date" || e.mode === "datetime"), D = T(() => e.mode === "time" || e.mode === "datetime");
712
712
  T(() => new Date(f.value, B.value));
713
- const B = T(() => X.indexOf(v.value)), U = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], b = T(() => new Date(f.value, B.value).getDay()), I = T(() => {
713
+ const B = T(() => X.indexOf(v.value)), U = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], k = T(() => new Date(f.value, B.value).getDay()), O = T(() => {
714
714
  const i = new Date(f.value, B.value + 1, 0).getDate();
715
715
  return Array.from({ length: i }, (c, s) => new Date(f.value, B.value, s + 1));
716
- }), z = T(() => Array.from({ length: b.value }, (i, c) => c)), ee = Array.from({ length: 24 }, (i, c) => c), te = Array.from({ length: 60 }, (i, c) => c), J = T(
716
+ }), z = T(() => Array.from({ length: k.value }, (i, c) => c)), ee = Array.from({ length: 24 }, (i, c) => c), te = Array.from({ length: 60 }, (i, c) => c), J = T(
717
717
  () => typeof navigator < "u" && /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
718
718
  navigator.userAgent
719
719
  )
@@ -721,14 +721,14 @@ const He = G("SunIcon", [
721
721
  const i = (/* @__PURE__ */ new Date()).getFullYear();
722
722
  return Array.from({ length: 100 }, (c, s) => i - 50 + s);
723
723
  }), fe = T(() => {
724
- if (!$.value || !r.value) return "";
724
+ if (!_.value || !r.value) return "";
725
725
  if (e.range && r.value.start && r.value.end) {
726
726
  const i = r.value.start.toLocaleDateString("en-US"), c = r.value.end.toLocaleDateString("en-US");
727
727
  return `${i} - ${c}`;
728
728
  }
729
729
  return !e.range && r.value ? r.value.toLocaleDateString("en-US") : "";
730
730
  }), H = (i) => i instanceof Date ? i : new Date(i), N = (i) => i instanceof Date && !isNaN(i), ve = T(() => {
731
- if (!x.value) return "";
731
+ if (!D.value) return "";
732
732
  const i = (c) => {
733
733
  var K, q, se;
734
734
  const s = ((K = m.value) == null ? void 0 : K[c]) ?? m.value, P = ((q = g.value) == null ? void 0 : q[c]) ?? g.value;
@@ -739,30 +739,30 @@ const He = G("SunIcon", [
739
739
  const i = fe.value, c = ve.value;
740
740
  return `${i} ${c}`.trim();
741
741
  }), he = () => l.value = !l.value, oe = () => {
742
- O(), be();
742
+ I(), be();
743
743
  }, be = () => l.value = !1, ye = () => {
744
- r.value = e.range ? { start: null, end: null } : null, p.value = e.range ? { start: null, end: null } : null, O();
744
+ r.value = e.range ? { start: null, end: null } : null, p.value = e.range ? { start: null, end: null } : null, I();
745
745
  }, we = (i) => {
746
- e.range ? r.value.start && r.value.end ? r.value = { start: i, end: null } : r.value.start ? r.value.end = i : r.value.start = i : r.value = i, O();
747
- }, ke = (i) => (i = H(i), e.range ? r.value.start && N(r.value.start) && i.getTime() === r.value.start.getTime() || r.value.end && N(r.value.end) && i.getTime() === r.value.end.getTime() : N(r.value) && i.getTime() === r.value.getTime()), $e = (i) => {
746
+ e.range ? r.value.start && r.value.end ? r.value = { start: i, end: null } : r.value.start ? r.value.end = i : r.value.start = i : r.value = i, I();
747
+ }, ke = (i) => (i = H(i), e.range ? r.value.start && N(r.value.start) && i.getTime() === r.value.start.getTime() || r.value.end && N(r.value.end) && i.getTime() === r.value.end.getTime() : N(r.value) && i.getTime() === r.value.getTime()), _e = (i) => {
748
748
  i = H(i);
749
749
  const c = /* @__PURE__ */ new Date();
750
750
  return i.getDate() === c.getDate() && i.getMonth() === c.getMonth() && i.getFullYear() === c.getFullYear();
751
- }, _e = (i) => (i = H(i), e.range && N(r.value.start) && i.getTime() === r.value.start.getTime()), Ce = (i) => (i = H(i), e.range && N(r.value.end) && i.getTime() === r.value.end.getTime()), Se = (i) => {
751
+ }, $e = (i) => (i = H(i), e.range && N(r.value.start) && i.getTime() === r.value.start.getTime()), Ce = (i) => (i = H(i), e.range && N(r.value.end) && i.getTime() === r.value.end.getTime()), xe = (i) => {
752
752
  if (i = H(i), e.range && N(r.value.start) && N(r.value.end)) {
753
753
  const c = r.value.start.getTime(), s = r.value.end.getTime(), P = i.getTime();
754
754
  return P > c && P < s;
755
755
  }
756
756
  return !1;
757
- }, xe = () => {
757
+ }, Se = () => {
758
758
  let i = B.value - 1;
759
- i < 0 && (i = 11, f.value--), v.value = X[i], O();
759
+ i < 0 && (i = 11, f.value--), v.value = X[i], I();
760
760
  }, De = () => {
761
761
  let i = B.value + 1;
762
- i > 11 && (i = 0, f.value++), v.value = X[i], O();
762
+ i > 11 && (i = 0, f.value++), v.value = X[i], I();
763
763
  }, le = (i) => {
764
764
  R.value && !R.value.contains(i.target) && l.value == !0 && oe();
765
- }, O = () => {
765
+ }, I = () => {
766
766
  let i = {};
767
767
  const c = (s, P, K) => {
768
768
  s instanceof Date && !isNaN(s) || (s = /* @__PURE__ */ new Date());
@@ -797,7 +797,7 @@ const He = G("SunIcon", [
797
797
  class: "flex items-center gap-2 cursor-pointer",
798
798
  onClick: he
799
799
  }, [
800
- d.popup ? h(i.$slots, "default", { key: 0 }, () => [
800
+ d.popup ? y(i.$slots, "default", { key: 0 }, () => [
801
801
  n("input", {
802
802
  type: "text",
803
803
  class: "input-bordered w-full cursor-pointer input",
@@ -809,17 +809,17 @@ const He = G("SunIcon", [
809
809
  n("button", kt, [
810
810
  Y(A(Ee))
811
811
  ])
812
- ], !0) : D("", !0)
812
+ ], !0) : x("", !0)
813
813
  ]),
814
814
  l.value || !d.popup ? (a(), o("div", {
815
815
  key: 0,
816
- class: k(["z-50 lg:bg-base-100 md:mt-2 md:p-4 px-4 rounded-md w-full", [{ absolute: d.popup }]]),
816
+ class: w(["z-50 lg:bg-base-100 md:mt-2 md:p-4 px-4 rounded-md w-full", [{ absolute: d.popup }]]),
817
817
  id: S.value
818
818
  }, [
819
- $.value ? (a(), o("div", _t, [
819
+ _.value ? (a(), o("div", $t, [
820
820
  n("button", {
821
821
  class: "hidden md:block btn-outline btn btn-primary md:btn-sm",
822
- onClick: xe
822
+ onClick: Se
823
823
  }, c[11] || (c[11] = [
824
824
  n("svg", {
825
825
  xmlns: "http://www.w3.org/2000/svg",
@@ -839,24 +839,24 @@ const He = G("SunIcon", [
839
839
  V(n("select", {
840
840
  class: "border-none w-fit select",
841
841
  "onUpdate:modelValue": c[0] || (c[0] = (s) => v.value = s),
842
- onChange: O
842
+ onChange: I
843
843
  }, [
844
- (a(), o(y, null, C(X, (s, P) => n("option", {
844
+ (a(), o(h, null, $(X, (s, P) => n("option", {
845
845
  key: P,
846
846
  value: s
847
- }, w(s), 9, Ct)), 64))
847
+ }, b(s), 9, Ct)), 64))
848
848
  ], 544), [
849
849
  [j, v.value]
850
850
  ]),
851
851
  V(n("select", {
852
852
  class: "border-none w-24 select",
853
853
  "onUpdate:modelValue": c[1] || (c[1] = (s) => f.value = s),
854
- onChange: O
854
+ onChange: I
855
855
  }, [
856
- (a(!0), o(y, null, C(me.value, (s) => (a(), o("option", {
856
+ (a(!0), o(h, null, $(me.value, (s) => (a(), o("option", {
857
857
  key: s,
858
858
  value: s
859
- }, w(s), 9, St))), 128))
859
+ }, b(s), 9, xt))), 128))
860
860
  ], 544), [
861
861
  [j, f.value]
862
862
  ]),
@@ -879,30 +879,30 @@ const He = G("SunIcon", [
879
879
  })
880
880
  ], -1)
881
881
  ]))
882
- ])) : D("", !0),
883
- $.value ? (a(), o("div", xt, [
884
- (a(), o(y, null, C(U, (s) => n("div", {
882
+ ])) : x("", !0),
883
+ _.value ? (a(), o("div", St, [
884
+ (a(), o(h, null, $(U, (s) => n("div", {
885
885
  key: s,
886
886
  class: "text-center"
887
- }, w(s), 1)), 64)),
888
- (a(!0), o(y, null, C(z.value, (s) => (a(), o("div", {
887
+ }, b(s), 1)), 64)),
888
+ (a(!0), o(h, null, $(z.value, (s) => (a(), o("div", {
889
889
  key: s,
890
890
  class: "text-center"
891
891
  }))), 128)),
892
- (a(!0), o(y, null, C(I.value, (s) => (a(), o("div", {
892
+ (a(!0), o(h, null, $(O.value, (s) => (a(), o("div", {
893
893
  key: s,
894
- class: k(["hover:bg-primary-10 py-1 rounded-full text-center cursor-pointer", {
894
+ class: w(["hover:bg-primary-10 py-1 rounded-full text-center cursor-pointer", {
895
895
  "bg-primary text-primary-content": ke(s),
896
- today: $e(s),
897
- "range-start bg-primary text-primary-content": _e(s),
896
+ today: _e(s),
897
+ "range-start bg-primary text-primary-content": $e(s),
898
898
  "range-end bg-primary text-primary-content": Ce(s),
899
- "in-range bg-primary/20 hover:bg-primary/10": Se(s)
899
+ "in-range bg-primary/20 hover:bg-primary/10": xe(s)
900
900
  }]),
901
901
  onClick: (P) => we(s)
902
- }, w(s.getDate()), 11, Dt))), 128))
903
- ])) : D("", !0),
904
- x.value ? (a(), o("div", Tt, [
905
- e.range ? D("", !0) : (a(), o("h3", Mt, "Select Time")),
902
+ }, b(s.getDate()), 11, Dt))), 128))
903
+ ])) : x("", !0),
904
+ D.value ? (a(), o("div", Tt, [
905
+ e.range ? x("", !0) : (a(), o("h3", Mt, "Select Time")),
906
906
  e.range ? (a(), o("div", Ut, [
907
907
  n("div", null, [
908
908
  c[13] || (c[13] = n("p", { class: "font-bold" }, "Start Time", -1)),
@@ -911,19 +911,19 @@ const He = G("SunIcon", [
911
911
  type: "time",
912
912
  class: "input-bordered w-full input",
913
913
  "onUpdate:modelValue": c[5] || (c[5] = (s) => p.value.start = s),
914
- onChange: O
914
+ onChange: I
915
915
  }, null, 544)), [
916
916
  [Z, p.value.start]
917
917
  ]) : (a(), o("div", At, [
918
918
  V(n("select", {
919
919
  class: "w-full select-bordered select",
920
920
  "onUpdate:modelValue": c[6] || (c[6] = (s) => m.value.start = s),
921
- onChange: O
921
+ onChange: I
922
922
  }, [
923
- (a(!0), o(y, null, C(A(ee), (s) => (a(), o("option", {
923
+ (a(!0), o(h, null, $(A(ee), (s) => (a(), o("option", {
924
924
  key: s,
925
925
  value: s
926
- }, w(s.toString().padStart(2, "0")), 9, zt))), 128))
926
+ }, b(s.toString().padStart(2, "0")), 9, zt))), 128))
927
927
  ], 544), [
928
928
  [
929
929
  j,
@@ -935,12 +935,12 @@ const He = G("SunIcon", [
935
935
  V(n("select", {
936
936
  class: "w-full select-bordered select",
937
937
  "onUpdate:modelValue": c[7] || (c[7] = (s) => g.value.start = s),
938
- onChange: O
938
+ onChange: I
939
939
  }, [
940
- (a(!0), o(y, null, C(A(te), (s) => (a(), o("option", {
940
+ (a(!0), o(h, null, $(A(te), (s) => (a(), o("option", {
941
941
  key: s,
942
942
  value: s
943
- }, w(s.toString().padStart(2, "0")), 9, Rt))), 128))
943
+ }, b(s.toString().padStart(2, "0")), 9, Rt))), 128))
944
944
  ], 544), [
945
945
  [
946
946
  j,
@@ -958,19 +958,19 @@ const He = G("SunIcon", [
958
958
  type: "time",
959
959
  class: "input-bordered w-full input",
960
960
  "onUpdate:modelValue": c[8] || (c[8] = (s) => p.value.end = s),
961
- onChange: O
961
+ onChange: I
962
962
  }, null, 544)), [
963
963
  [Z, p.value.end]
964
964
  ]) : (a(), o("div", Pt, [
965
965
  V(n("select", {
966
966
  class: "w-full select-bordered select",
967
967
  "onUpdate:modelValue": c[9] || (c[9] = (s) => m.value.end = s),
968
- onChange: O
968
+ onChange: I
969
969
  }, [
970
- (a(!0), o(y, null, C(A(ee), (s) => (a(), o("option", {
970
+ (a(!0), o(h, null, $(A(ee), (s) => (a(), o("option", {
971
971
  key: s,
972
972
  value: s
973
- }, w(s.toString().padStart(2, "0")), 9, jt))), 128))
973
+ }, b(s.toString().padStart(2, "0")), 9, jt))), 128))
974
974
  ], 544), [
975
975
  [
976
976
  j,
@@ -982,12 +982,12 @@ const He = G("SunIcon", [
982
982
  V(n("select", {
983
983
  class: "w-full select-bordered select",
984
984
  "onUpdate:modelValue": c[10] || (c[10] = (s) => g.value.end = s),
985
- onChange: O
985
+ onChange: I
986
986
  }, [
987
- (a(!0), o(y, null, C(A(te), (s) => (a(), o("option", {
987
+ (a(!0), o(h, null, $(A(te), (s) => (a(), o("option", {
988
988
  key: s,
989
989
  value: s
990
- }, w(s.toString().padStart(2, "0")), 9, Lt))), 128))
990
+ }, b(s.toString().padStart(2, "0")), 9, Lt))), 128))
991
991
  ], 544), [
992
992
  [
993
993
  j,
@@ -1004,19 +1004,19 @@ const He = G("SunIcon", [
1004
1004
  type: "time",
1005
1005
  class: "input-bordered w-full input",
1006
1006
  "onUpdate:modelValue": c[2] || (c[2] = (s) => p.value = s),
1007
- onChange: O
1007
+ onChange: I
1008
1008
  }, null, 544)), [
1009
1009
  [Z, p.value]
1010
- ]) : (a(), o("div", It, [
1010
+ ]) : (a(), o("div", Ot, [
1011
1011
  V(n("select", {
1012
1012
  class: "w-full select-bordered select",
1013
1013
  "onUpdate:modelValue": c[3] || (c[3] = (s) => m.value = s),
1014
- onChange: O
1014
+ onChange: I
1015
1015
  }, [
1016
- (a(!0), o(y, null, C(A(ee), (s) => (a(), o("option", {
1016
+ (a(!0), o(h, null, $(A(ee), (s) => (a(), o("option", {
1017
1017
  key: s,
1018
1018
  value: s
1019
- }, w(s.toString().padStart(2, "0")), 9, Ot))), 128))
1019
+ }, b(s.toString().padStart(2, "0")), 9, It))), 128))
1020
1020
  ], 544), [
1021
1021
  [
1022
1022
  j,
@@ -1028,12 +1028,12 @@ const He = G("SunIcon", [
1028
1028
  V(n("select", {
1029
1029
  class: "w-full select-bordered select",
1030
1030
  "onUpdate:modelValue": c[4] || (c[4] = (s) => g.value = s),
1031
- onChange: O
1031
+ onChange: I
1032
1032
  }, [
1033
- (a(!0), o(y, null, C(A(te), (s) => (a(), o("option", {
1033
+ (a(!0), o(h, null, $(A(te), (s) => (a(), o("option", {
1034
1034
  key: s,
1035
1035
  value: s
1036
- }, w(s.toString().padStart(2, "0")), 9, Vt))), 128))
1036
+ }, b(s.toString().padStart(2, "0")), 9, Vt))), 128))
1037
1037
  ], 544), [
1038
1038
  [
1039
1039
  j,
@@ -1044,25 +1044,25 @@ const He = G("SunIcon", [
1044
1044
  ])
1045
1045
  ]))
1046
1046
  ]))
1047
- ])) : D("", !0),
1047
+ ])) : x("", !0),
1048
1048
  n("div", Nt, [
1049
1049
  n("button", {
1050
- class: k(["btn btn-secondary", d.popup ? "w-fit" : "w-full"]),
1050
+ class: w(["btn btn-secondary", d.popup ? "w-fit" : "w-full"]),
1051
1051
  onClick: ye
1052
1052
  }, "Clear", 2),
1053
1053
  d.popup ? (a(), o("button", {
1054
1054
  key: 0,
1055
1055
  class: "btn btn-primary btn-wide",
1056
1056
  onClick: oe
1057
- }, "Close")) : D("", !0)
1057
+ }, "Close")) : x("", !0)
1058
1058
  ])
1059
- ], 10, $t)) : D("", !0)
1059
+ ], 10, _t)) : x("", !0)
1060
1060
  ], 512));
1061
1061
  }
1062
1062
  }, Ft = /* @__PURE__ */ Q(Et, [["__scopeId", "data-v-488ecabe"]]), Ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1063
1063
  __proto__: null,
1064
1064
  default: Ft
1065
- }, Symbol.toStringTag, { value: "Module" })), qt = ["value", "checked", "onChange", "disabled"], Tn = /* @__PURE__ */ M({
1065
+ }, Symbol.toStringTag, { value: "Module" })), qt = ["value", "checked", "onChange", "disabled"], zn = /* @__PURE__ */ M({
1066
1066
  __name: "rating",
1067
1067
  props: {
1068
1068
  initialRating: { default: 0 },
@@ -1072,7 +1072,7 @@ const He = G("SunIcon", [
1072
1072
  size: { default: "sm" }
1073
1073
  },
1074
1074
  setup(d) {
1075
- const u = d, e = _(u.initialRating);
1075
+ const u = d, e = C(u.initialRating);
1076
1076
  L(
1077
1077
  () => u.initialRating,
1078
1078
  (l) => {
@@ -1083,18 +1083,18 @@ const He = G("SunIcon", [
1083
1083
  e.value = l;
1084
1084
  };
1085
1085
  return (l, r) => (a(), o("div", {
1086
- class: k(["rating", [
1086
+ class: w(["rating", [
1087
1087
  `rating-${u.size}`,
1088
1088
  { "rating-half": l.halfStars }
1089
1089
  ]])
1090
1090
  }, [
1091
- (a(!0), o(y, null, C(l.numberOfStars * (l.halfStars ? 2 : 1), (p) => (a(), o("input", {
1091
+ (a(!0), o(h, null, $(l.numberOfStars * (l.halfStars ? 2 : 1), (p) => (a(), o("input", {
1092
1092
  key: p,
1093
1093
  type: "radio",
1094
1094
  value: l.halfStars ? p * 0.5 : p,
1095
1095
  checked: e.value === (l.halfStars ? p * 0.5 : p),
1096
1096
  onChange: (v) => l.isInteractive ? t(l.halfStars ? p * 0.5 : p) : null,
1097
- class: k(["mask mask-star", {
1097
+ class: w(["mask mask-star", {
1098
1098
  "bg-yellow-400": e.value >= (l.halfStars ? p * 0.5 : p),
1099
1099
  "mask-half-1": l.halfStars && p % 2 !== 0,
1100
1100
  "mask-half-2": l.halfStars && p % 2 === 0,
@@ -1105,7 +1105,7 @@ const He = G("SunIcon", [
1105
1105
  }, null, 42, qt))), 128))
1106
1106
  ], 2));
1107
1107
  }
1108
- }), Yt = { class: "badge" }, Jt = ["onClick"], Xt = { class: "opacity-75" }, Kt = ["placeholder"], Mn = /* @__PURE__ */ M({
1108
+ }), Yt = { class: "badge" }, Jt = ["onClick"], Xt = { class: "opacity-75" }, Kt = ["placeholder"], Rn = /* @__PURE__ */ M({
1109
1109
  __name: "taginput",
1110
1110
  props: {
1111
1111
  modelValue: {},
@@ -1115,11 +1115,11 @@ const He = G("SunIcon", [
1115
1115
  },
1116
1116
  emits: ["update:modelValue"],
1117
1117
  setup(d, { emit: u }) {
1118
- const e = d, t = u, l = _([...e.modelValue]), r = e.maxTagAmount === void 0 ? -1 : e.maxTagAmount, p = _(null), v = _(""), f = T(() => r < 0 || l.value.length < r), m = () => {
1118
+ const e = d, t = u, l = C([...e.modelValue]), r = e.maxTagAmount === void 0 ? -1 : e.maxTagAmount, p = C(null), v = C(""), f = T(() => r < 0 || l.value.length < r), m = () => {
1119
1119
  const S = v.value.trim();
1120
1120
  S && !l.value.includes(S) && (l.value.push(S), t("update:modelValue", l.value), v.value = "");
1121
1121
  }, g = (S) => {
1122
- l.value = l.value.filter(($) => $ !== S), t("update:modelValue", l.value);
1122
+ l.value = l.value.filter((_) => _ !== S), t("update:modelValue", l.value);
1123
1123
  }, R = () => {
1124
1124
  v.value === "" && (l.value.pop(), t("update:modelValue", l.value));
1125
1125
  }, F = (S) => {
@@ -1127,28 +1127,28 @@ const He = G("SunIcon", [
1127
1127
  };
1128
1128
  return L(() => e.modelValue, (S) => {
1129
1129
  l.value = [...S];
1130
- }), (S, $) => (a(), o("div", {
1131
- class: k(["flex flex-wrap gap-2 bg-base-100 shadow px-4 py-6 border border-base-content/20 rounded", S.$props.class])
1130
+ }), (S, _) => (a(), o("div", {
1131
+ class: w(["flex flex-wrap gap-2 bg-base-100 shadow px-4 py-6 border border-base-content/20 rounded", S.$props.class])
1132
1132
  }, [
1133
- (a(!0), o(y, null, C(l.value, (x) => h(S.$slots, "tag", {
1134
- key: x,
1135
- tag: x
1133
+ (a(!0), o(h, null, $(l.value, (D) => y(S.$slots, "tag", {
1134
+ key: D,
1135
+ tag: D
1136
1136
  }, () => [
1137
1137
  n("div", Yt, [
1138
1138
  n("button", {
1139
1139
  class: "!px-1 !py-0 h-fit font-bold cursor-pointer",
1140
- onClick: (B) => g(x),
1140
+ onClick: (B) => g(D),
1141
1141
  "aria-label": "Remove tag"
1142
1142
  }, "X", 8, Jt),
1143
- n("span", Xt, w(x), 1)
1143
+ n("span", Xt, b(D), 1)
1144
1144
  ])
1145
1145
  ])), 128)),
1146
- h(S.$slots, "input", { showInput: f.value }, () => [
1146
+ y(S.$slots, "input", { showInput: f.value }, () => [
1147
1147
  f.value ? V((a(), o("input", {
1148
1148
  key: 0,
1149
1149
  ref_key: "inputRef",
1150
1150
  ref: p,
1151
- "onUpdate:modelValue": $[0] || ($[0] = (x) => v.value = x),
1151
+ "onUpdate:modelValue": _[0] || (_[0] = (D) => v.value = D),
1152
1152
  type: "text",
1153
1153
  placeholder: S.placeholder || "Type here",
1154
1154
  class: "h-full input input-ghost",
@@ -1156,11 +1156,11 @@ const He = G("SunIcon", [
1156
1156
  "aria-label": "Add tags"
1157
1157
  }, null, 40, Kt)), [
1158
1158
  [Z, v.value]
1159
- ]) : D("", !0)
1159
+ ]) : x("", !0)
1160
1160
  ])
1161
1161
  ], 2));
1162
1162
  }
1163
- }), Bn = /* @__PURE__ */ M({
1163
+ }), Pn = /* @__PURE__ */ M({
1164
1164
  __name: "loader",
1165
1165
  props: {
1166
1166
  loading: { type: Boolean, default: !0 },
@@ -1169,7 +1169,7 @@ const He = G("SunIcon", [
1169
1169
  color: { default: "primary" }
1170
1170
  },
1171
1171
  setup(d) {
1172
- const u = d, e = _(u.loading);
1172
+ const u = d, e = C(u.loading);
1173
1173
  return L(
1174
1174
  () => u.loading,
1175
1175
  (t) => {
@@ -1177,7 +1177,7 @@ const He = G("SunIcon", [
1177
1177
  }
1178
1178
  ), (t, l) => e.value ? (a(), o("span", {
1179
1179
  key: 0,
1180
- class: k(["loading", [
1180
+ class: w(["loading", [
1181
1181
  { "loading-xs": t.size === "xs" },
1182
1182
  { "loading-sm": t.size === "sm" },
1183
1183
  { "loading-md": t.size === "md" },
@@ -1200,55 +1200,81 @@ const He = G("SunIcon", [
1200
1200
  { "text-warning": t.color === "warning" },
1201
1201
  { "text-error": t.color === "error" }
1202
1202
  ]])
1203
- }, null, 2)) : D("", !0);
1203
+ }, null, 2)) : x("", !0);
1204
1204
  }
1205
- }), Wt = { class: "footer sm:footer-horizontal container" }, Zt = { class: "footer-title" }, Gt = ["href"], Qt = { class: "w-full" }, In = /* @__PURE__ */ M({
1205
+ }), Wt = { class: "footer sm:footer-horizontal container" }, Zt = { class: "footer-title" }, Gt = ["href"], Qt = {
1206
+ key: 0,
1207
+ class: "sm:hidden w-full"
1208
+ }, en = { class: "border-b-2 border-base-100 last:border-b-0 w-full" }, tn = {
1209
+ tabindex: "0",
1210
+ class: "collapse collapse-plus w-full"
1211
+ }, nn = { class: "collapse-title font-bold text-lg collapsible-footer-title" }, an = { class: "collapse-content flex w-full text-sm" }, on = { class: "flex flex-col gap-2.5" }, ln = { class: "w-full" }, sn = ["href"], rn = { class: "w-full" }, jn = /* @__PURE__ */ M({
1206
1212
  __name: "footer",
1207
1213
  props: {
1208
1214
  items: {},
1209
1215
  background: {},
1210
- color: {}
1216
+ color: {},
1217
+ collapseOnMobile: { type: Boolean, default: !1 }
1211
1218
  },
1212
1219
  setup(d) {
1213
1220
  const u = d;
1214
1221
  return (e, t) => (a(), o("div", {
1215
- class: k(["mx-auto md:px-10 py-10 text-base-content", [e.background ?? "bg-base-200", e.color ?? "text-base-content"]])
1222
+ class: w(["mx-auto md:px-10 py-10 text-base-content", [e.background ?? "bg-base-200", e.color ?? "text-base-content"]])
1216
1223
  }, [
1217
1224
  n("footer", Wt, [
1218
- (a(!0), o(y, null, C(u.items, (l) => (a(), o("nav", null, [
1219
- n("h6", Zt, w(l.title), 1),
1220
- (a(!0), o(y, null, C(l.items, (r) => (a(), o("a", {
1225
+ (a(!0), o(h, null, $(u.items, (l) => (a(), o("nav", {
1226
+ class: w([{ "hidden sm:grid": e.collapseOnMobile }])
1227
+ }, [
1228
+ n("h6", Zt, b(l.title), 1),
1229
+ (a(!0), o(h, null, $(l.items, (r) => (a(), o("a", {
1221
1230
  class: "link link-hover",
1222
1231
  href: r.link
1223
- }, w(r.text), 9, Gt))), 256))
1224
- ]))), 256)),
1225
- n("aside", Qt, [
1226
- h(e.$slots, "default")
1232
+ }, b(r.text), 9, Gt))), 256))
1233
+ ], 2))), 256)),
1234
+ e.collapseOnMobile ? (a(), o("nav", Qt, [
1235
+ (a(!0), o(h, null, $(u.items, (l) => (a(), o("ul", en, [
1236
+ n("div", tn, [
1237
+ n("div", nn, b(l.title), 1),
1238
+ n("div", an, [
1239
+ n("ul", on, [
1240
+ (a(!0), o(h, null, $(l.items, (r) => (a(), o("li", ln, [
1241
+ n("a", {
1242
+ class: "w-full font-medium link link-hover",
1243
+ href: r.link
1244
+ }, b(r.text), 9, sn)
1245
+ ]))), 256))
1246
+ ])
1247
+ ])
1248
+ ])
1249
+ ]))), 256))
1250
+ ])) : x("", !0),
1251
+ n("aside", rn, [
1252
+ y(e.$slots, "default")
1227
1253
  ])
1228
1254
  ])
1229
1255
  ], 2));
1230
1256
  }
1231
- }), en = {}, tn = { class: "min-h-40 container hero" }, nn = { class: "px-0! text-center hero-content" }, an = { class: "mt-9 text-4xl" };
1232
- function on(d, u) {
1233
- return a(), o("div", tn, [
1234
- n("div", nn, [
1257
+ }), un = {}, dn = { class: "min-h-40 container hero" }, cn = { class: "px-0! text-center hero-content" }, pn = { class: "mt-9 text-4xl" };
1258
+ function mn(d, u) {
1259
+ return a(), o("div", dn, [
1260
+ n("div", cn, [
1235
1261
  n("div", null, [
1236
- n("h1", an, [
1237
- h(d.$slots, "title", {}, () => [
1262
+ n("h1", pn, [
1263
+ y(d.$slots, "title", {}, () => [
1238
1264
  u[0] || (u[0] = ae("hero title"))
1239
1265
  ])
1240
1266
  ]),
1241
1267
  n("p", null, [
1242
- h(d.$slots, "description", { class: "py-9" })
1268
+ y(d.$slots, "description", { class: "py-9" })
1243
1269
  ]),
1244
- h(d.$slots, "call-to-action-block", { class: "max-w-full" }, () => [
1270
+ y(d.$slots, "call-to-action-block", { class: "max-w-full" }, () => [
1245
1271
  u[1] || (u[1] = n("button", { class: "btn btn-primary" }, "Call to action", -1))
1246
1272
  ])
1247
1273
  ])
1248
1274
  ])
1249
1275
  ]);
1250
1276
  }
1251
- const On = /* @__PURE__ */ Q(en, [["render", on]]), ln = { class: "categories flex flex-row gap-4 place-content-center" }, sn = ["onClick"], Vn = /* @__PURE__ */ M({
1277
+ const Ln = /* @__PURE__ */ Q(un, [["render", mn]]), fn = { class: "categories flex flex-row gap-4 place-content-center" }, vn = ["onClick"], Nn = /* @__PURE__ */ M({
1252
1278
  __name: "categoryNavigation",
1253
1279
  props: {
1254
1280
  searchOptions: {},
@@ -1260,18 +1286,18 @@ const On = /* @__PURE__ */ Q(en, [["render", on]]), ln = { class: "categories fl
1260
1286
  function l(r) {
1261
1287
  t("update:currentCategory", r);
1262
1288
  }
1263
- return (r, p) => (a(), o("div", ln, [
1264
- (a(!0), o(y, null, C(e.searchOptions, (v) => (a(), o("div", {
1289
+ return (r, p) => (a(), o("div", fn, [
1290
+ (a(!0), o(h, null, $(e.searchOptions, (v) => (a(), o("div", {
1265
1291
  key: v.category
1266
1292
  }, [
1267
1293
  n("button", {
1268
1294
  onClick: (f) => l(v.category),
1269
- class: k(["truncate", { "font-semibold": e.currentCategory === v.category }])
1270
- }, w(v.category), 11, sn)
1295
+ class: w(["truncate", { "font-semibold": e.currentCategory === v.category }])
1296
+ }, b(v.category), 11, vn)
1271
1297
  ]))), 128))
1272
1298
  ]));
1273
1299
  }
1274
- }), rn = { class: "md:flex hidden navbar-start" }, un = { class: "md:flex justify-center items-center hidden navbar-center" }, dn = { class: "md:flex hidden navbar-end" }, cn = { class: "navbar-bottom md:flex hidden" }, pn = /* @__PURE__ */ M({
1300
+ }), gn = { class: "md:flex hidden navbar-start" }, hn = { class: "md:flex justify-center items-center hidden navbar-center" }, bn = { class: "md:flex hidden navbar-end" }, yn = { class: "navbar-bottom md:flex hidden" }, wn = /* @__PURE__ */ M({
1275
1301
  __name: "navigationBar",
1276
1302
  props: {
1277
1303
  isCollapsed: { type: Boolean, default: !0 }
@@ -1279,30 +1305,30 @@ const On = /* @__PURE__ */ Q(en, [["render", on]]), ln = { class: "categories fl
1279
1305
  setup(d) {
1280
1306
  const u = d;
1281
1307
  return (e, t) => (a(), o("nav", {
1282
- class: k(["place-items-start border-primary bg-base-100 px-5 py-5 border-b-4 transition-all navbar navigationbar", u.isCollapsed ? "collapsed" : ""])
1308
+ class: w(["place-items-start border-primary bg-base-100 px-5 py-5 border-b-4 transition-all navbar navigationbar", u.isCollapsed ? "collapsed" : ""])
1283
1309
  }, [
1284
- n("div", rn, [
1285
- h(e.$slots, "start", {}, void 0, !0)
1310
+ n("div", gn, [
1311
+ y(e.$slots, "start", {}, void 0, !0)
1286
1312
  ]),
1287
- n("div", un, [
1288
- h(e.$slots, "center", {}, void 0, !0)
1313
+ n("div", hn, [
1314
+ y(e.$slots, "center", {}, void 0, !0)
1289
1315
  ]),
1290
- n("div", dn, [
1291
- h(e.$slots, "end", {}, void 0, !0)
1316
+ n("div", bn, [
1317
+ y(e.$slots, "end", {}, void 0, !0)
1292
1318
  ]),
1293
- n("div", cn, [
1294
- h(e.$slots, "bottom", {}, void 0, !0)
1319
+ n("div", yn, [
1320
+ y(e.$slots, "bottom", {}, void 0, !0)
1295
1321
  ])
1296
1322
  ], 2));
1297
1323
  }
1298
- }), Un = /* @__PURE__ */ Q(pn, [["__scopeId", "data-v-8ddb2b45"]]), mn = {
1324
+ }), En = /* @__PURE__ */ Q(wn, [["__scopeId", "data-v-8ddb2b45"]]), kn = {
1299
1325
  key: 0,
1300
1326
  class: "hidden top-4 right-0 absolute md:flex gap-4"
1301
- }, fn = ["onClick", "aria-selected"], vn = {
1327
+ }, _n = ["onClick", "aria-selected"], $n = {
1302
1328
  key: 0,
1303
1329
  role: "tabpanel",
1304
1330
  class: "p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full overflow-x-auto tab-content"
1305
- }, gn = { class: "p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full" }, An = /* @__PURE__ */ M({
1331
+ }, Cn = { class: "p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full" }, Fn = /* @__PURE__ */ M({
1306
1332
  __name: "tab",
1307
1333
  props: {
1308
1334
  items: {},
@@ -1312,7 +1338,7 @@ const On = /* @__PURE__ */ Q(en, [["render", on]]), ln = { class: "categories fl
1312
1338
  },
1313
1339
  emits: ["tab-changed"],
1314
1340
  setup(d, { emit: u }) {
1315
- const e = d, t = _(e.items[0]), l = u;
1341
+ const e = d, t = C(e.items[0]), l = u;
1316
1342
  function r(f) {
1317
1343
  t.value = f, l("tab-changed", f);
1318
1344
  }
@@ -1330,12 +1356,12 @@ const On = /* @__PURE__ */ Q(en, [["render", on]]), ln = { class: "categories fl
1330
1356
  e.rotateTabsAfter && e.rotateTabsAfter > 0 && setInterval(() => {
1331
1357
  p();
1332
1358
  }, e.rotateTabsAfter * 1e3);
1333
- }), (f, m) => (a(), o(y, null, [
1359
+ }), (f, m) => (a(), o(h, null, [
1334
1360
  n("div", {
1335
1361
  role: "tablist",
1336
- class: k(["relative tabs-bordered w-full tabs tabs-lg", { "flex-nowrap overflow-x-auto": f.buttonOnlyMode }])
1362
+ class: w(["relative tabs-bordered w-full tabs tabs-lg", { "flex-nowrap overflow-x-auto": f.buttonOnlyMode }])
1337
1363
  }, [
1338
- f.withControlls ? (a(), o("div", mn, [
1364
+ f.withControlls ? (a(), o("div", kn, [
1339
1365
  n("button", {
1340
1366
  onClick: m[0] || (m[0] = (g) => v()),
1341
1367
  class: "cursor-pointer"
@@ -1344,44 +1370,44 @@ const On = /* @__PURE__ */ Q(en, [["render", on]]), ln = { class: "categories fl
1344
1370
  onClick: m[1] || (m[1] = (g) => p()),
1345
1371
  class: "text-primary cursor-pointer"
1346
1372
  }, "Next")
1347
- ])) : D("", !0),
1348
- (a(!0), o(y, null, C(f.items, (g) => (a(), o(y, null, [
1373
+ ])) : x("", !0),
1374
+ (a(!0), o(h, null, $(f.items, (g) => (a(), o(h, null, [
1349
1375
  n("a", {
1350
1376
  type: "button",
1351
1377
  role: "tab",
1352
- class: k(["min-w-max tab", g === t.value ? "bg-primary text-base-100" : ""]),
1378
+ class: w(["min-w-max tab", g === t.value ? "bg-primary text-base-100" : ""]),
1353
1379
  onClick: (R) => r(g),
1354
1380
  "aria-selected": t.value == g
1355
- }, w(g), 11, fn),
1356
- f.buttonOnlyMode ? D("", !0) : (a(), o("div", vn, [
1357
- h(f.$slots, `${g}-tab`)
1381
+ }, b(g), 11, _n),
1382
+ f.buttonOnlyMode ? x("", !0) : (a(), o("div", $n, [
1383
+ y(f.$slots, `${g}-tab`)
1358
1384
  ]))
1359
1385
  ], 64))), 256))
1360
1386
  ], 2),
1361
- n("div", gn, [
1362
- h(f.$slots, "default")
1387
+ n("div", Cn, [
1388
+ y(f.$slots, "default")
1363
1389
  ])
1364
1390
  ], 64));
1365
1391
  }
1366
1392
  });
1367
1393
  export {
1368
- _n as Accordion,
1369
- Dn as AdvancedSearch,
1370
- Cn as Avatar,
1371
- Sn as Badge,
1372
- bn as ButtonComponent,
1373
- xn as Card,
1374
- Vn as CategoryNavigation,
1394
+ On as Accordion,
1395
+ An as AdvancedSearch,
1396
+ In as Avatar,
1397
+ Vn as Badge,
1398
+ Sn as ButtonComponent,
1399
+ Un as Card,
1400
+ Nn as CategoryNavigation,
1375
1401
  Ft as DatetimePicker,
1376
- yn as Dropdown,
1377
- In as Footer,
1378
- On as Hero,
1379
- Bn as Loader,
1380
- wn as Modal,
1381
- Un as NavigationBar,
1382
- Tn as Rating,
1383
- kn as Swap,
1384
- An as Tab,
1385
- Mn as TagInput,
1386
- $n as ThemeController
1402
+ Dn as Dropdown,
1403
+ jn as Footer,
1404
+ Ln as Hero,
1405
+ Pn as Loader,
1406
+ Tn as Modal,
1407
+ En as NavigationBar,
1408
+ zn as Rating,
1409
+ Mn as Swap,
1410
+ Fn as Tab,
1411
+ Rn as TagInput,
1412
+ Bn as ThemeController
1387
1413
  };