manolis-ui 0.3.3 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/manolis-ui.css +1 -1
- package/dist/manolis-ui.js +72 -72
- package/dist/manolis-ui.umd.cjs +1 -1
- package/dist/style.css +0 -3
- package/package.json +1 -1
package/dist/manolis-ui.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.carousel[data-v-
|
|
1
|
+
.carousel[data-v-f820adac]{-ms-overflow-style:none;scrollbar-width:none}.carousel[data-v-f820adac]::-webkit-scrollbar{display:none}.carousel-item[data-v-b38df5e3]{flex-shrink:0}.tabs button[data-v-08fa37eb]{cursor:pointer}.tab-content[data-v-08fa37eb]{position:absolute;z-index:10;transform-origin:top center;transition:opacity .3s ease}.tabs-boxed[data-v-08fa37eb] :is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]),.tabs-boxed[data-v-08fa37eb] :is(input:checked){background-color:var(--color-base-300);color:var(--color-base-content)}@media (max-width: 768px){.tab-content[data-v-08fa37eb]{width:100%;left:50%;transform:translate(-50%);top:auto;bottom:0}}@media (min-width: 769px){.tab-content[data-v-08fa37eb]{width:auto;left:unset;transform:unset}}.input[data-v-488ecabe]{cursor:pointer}.navigationbar[data-v-8ddb2b45]{display:grid;grid-template-columns:auto auto auto;grid-template-rows:auto auto;grid-template-areas:"center center center" "bottom bottom bottom";position:fixed;width:100%!important;gap:0 1rem;align-items:center;padding:var(--navbar-padding, .5rem);min-height:4rem;z-index:5}@media (min-width: 768px){.navigationbar[data-v-8ddb2b45]{grid-template-columns:.7fr 1.6fr .7fr;grid-template-areas:"start center end" "bottom bottom bottom";grid-row-gap:2rem;padding:2rem}}.navbar-start[data-v-8ddb2b45]{grid-area:start;height:100%}.navbar-center[data-v-8ddb2b45]{grid-area:center;width:100%;height:100%}.navbar-end[data-v-8ddb2b45]{width:100%;height:100%;grid-area:end}.navbar-bottom[data-v-8ddb2b45]{grid-area:center;width:100%;display:flex;justify-content:center;align-items:center}@media (min-width: 768px){.navbar-bottom[data-v-8ddb2b45]{grid-area:bottom}}nav.navigationbar.collapsed[data-v-8ddb2b45]{top:0;z-index:10;grid-template-columns:auto 1fr auto!important}@media (min-width: 768px){nav.navigationbar.collapsed[data-v-8ddb2b45]{row-gap:0;padding:1rem}}nav.navigationbar.collapsed .navbar-bottom[data-v-8ddb2b45]{grid-area:center!important}
|
package/dist/manolis-ui.js
CHANGED
|
@@ -131,13 +131,13 @@ const Ue = {
|
|
|
131
131
|
var p;
|
|
132
132
|
(p = t.value) == null || p.close();
|
|
133
133
|
};
|
|
134
|
-
return (p,
|
|
134
|
+
return (p, h) => (a(), l(_, null, [
|
|
135
135
|
n("span", {
|
|
136
136
|
class: "w-fit cursor-pointer",
|
|
137
137
|
onClick: r
|
|
138
138
|
}, [
|
|
139
139
|
w(p.$slots, "trigger", { role: "button" }, () => [
|
|
140
|
-
|
|
140
|
+
h[0] || (h[0] = n("button", { class: "btn" }, "Open", -1))
|
|
141
141
|
])
|
|
142
142
|
]),
|
|
143
143
|
n("dialog", {
|
|
@@ -155,7 +155,7 @@ const Ue = {
|
|
|
155
155
|
class: x(p.withBackdrop ? "modal-backdrop" : "")
|
|
156
156
|
}, [
|
|
157
157
|
w(p.$slots, "close-button", {}, () => [
|
|
158
|
-
|
|
158
|
+
h[1] || (h[1] = n("button", { class: "btn" }, "Close", -1))
|
|
159
159
|
])
|
|
160
160
|
], 34)
|
|
161
161
|
])
|
|
@@ -213,7 +213,7 @@ var ee = {
|
|
|
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 qe = ({ size: u, strokeWidth: o = 2, absoluteStrokeWidth: e, color: t, iconNode: r, name: s, class: p, ...
|
|
216
|
+
const qe = ({ size: u, strokeWidth: o = 2, absoluteStrokeWidth: e, color: t, iconNode: r, name: s, class: p, ...h }, { slots: v }) => oe(
|
|
217
217
|
"svg",
|
|
218
218
|
{
|
|
219
219
|
...ee,
|
|
@@ -222,7 +222,7 @@ const qe = ({ size: u, strokeWidth: o = 2, absoluteStrokeWidth: e, color: t, ico
|
|
|
222
222
|
stroke: t || ee.stroke,
|
|
223
223
|
"stroke-width": e ? Number(o) * 24 / Number(u) : o,
|
|
224
224
|
class: ["lucide", `lucide-${Ee(s ?? "icon")}`],
|
|
225
|
-
...
|
|
225
|
+
...h
|
|
226
226
|
},
|
|
227
227
|
[...r.map((m) => oe(...m)), ...v.default ? [v.default()] : []]
|
|
228
228
|
);
|
|
@@ -482,7 +482,7 @@ const Ye = ne("SunIcon", [
|
|
|
482
482
|
]))) : T("", !0)
|
|
483
483
|
], 2));
|
|
484
484
|
}
|
|
485
|
-
}),
|
|
485
|
+
}), he = Symbol("CarouselItemStyle"), dt = { class: "relative" }, ct = { class: "top-1/2 right-5 left-5 z-10 absolute flex justify-between -translate-y-1/2 transform" }, pt = {
|
|
486
486
|
key: 0,
|
|
487
487
|
class: "bottom-5 z-10 absolute flex justify-center gap-2 py-2 w-full"
|
|
488
488
|
}, ft = ["onClick", "aria-label"], mt = /* @__PURE__ */ V({
|
|
@@ -516,8 +516,8 @@ const Ye = ne("SunIcon", [
|
|
|
516
516
|
const o = u, e = S(o.initialSlide), t = S(null), r = S(!1), s = S(0), p = B(() => ({
|
|
517
517
|
width: `calc((100% - ${o.slidesPerView > 1 ? (o.slidesPerView - 1) * o.gap : 0}px) / ${o.slidesPerView})`
|
|
518
518
|
}));
|
|
519
|
-
Ve(
|
|
520
|
-
const
|
|
519
|
+
Ve(he, p);
|
|
520
|
+
const h = () => {
|
|
521
521
|
if (!t.value || o.slidesPerView <= 0) return 0;
|
|
522
522
|
const f = t.value.offsetWidth, g = o.slidesPerView > 1 ? (o.slidesPerView - 1) * o.gap : 0;
|
|
523
523
|
return (f - g) / o.slidesPerView;
|
|
@@ -525,7 +525,7 @@ const Ye = ne("SunIcon", [
|
|
|
525
525
|
t.value ? s.value = t.value.children.length : s.value = 0;
|
|
526
526
|
}, m = async (f) => {
|
|
527
527
|
if (!t.value || o.slidesPerView <= 0 || r.value || (v(), s.value === 0)) return;
|
|
528
|
-
const g = (f % s.value + s.value) % s.value, k = t.value, D =
|
|
528
|
+
const g = (f % s.value + s.value) % s.value, k = t.value, D = h();
|
|
529
529
|
if (D <= 0) return;
|
|
530
530
|
const y = D + o.gap, I = g * y, O = k.scrollWidth - k.offsetWidth, R = Math.max(0, Math.min(I, O + 0.5));
|
|
531
531
|
r.value = !0, k.style.scrollBehavior = "auto";
|
|
@@ -539,7 +539,7 @@ const Ye = ne("SunIcon", [
|
|
|
539
539
|
k.scrollLeft = Y + q * le, A < 1 ? requestAnimationFrame(Z) : (k.scrollLeft = R, e.value = g, r.value = !1);
|
|
540
540
|
};
|
|
541
541
|
requestAnimationFrame(Z);
|
|
542
|
-
},
|
|
542
|
+
}, b = () => {
|
|
543
543
|
m(e.value + 1);
|
|
544
544
|
}, L = () => {
|
|
545
545
|
m(e.value - 1);
|
|
@@ -547,7 +547,7 @@ const Ye = ne("SunIcon", [
|
|
|
547
547
|
m(f);
|
|
548
548
|
}, M = () => {
|
|
549
549
|
if (!t.value || o.slidesPerView <= 0 || (v(), s.value === 0)) return;
|
|
550
|
-
const f = t.value, g =
|
|
550
|
+
const f = t.value, g = h();
|
|
551
551
|
if (g <= 0) return;
|
|
552
552
|
const k = Math.max(0, s.value - o.slidesPerView), D = Math.min(Math.max(0, o.initialSlide), k), y = g + o.gap, I = D * y, O = f.scrollWidth - f.offsetWidth, R = Math.max(0, Math.min(I, O + 0.5));
|
|
553
553
|
f.scrollTo({ left: R, behavior: "auto" }), e.value = D;
|
|
@@ -570,7 +570,7 @@ const Ye = ne("SunIcon", [
|
|
|
570
570
|
n("div", {
|
|
571
571
|
ref_key: "carouselContainer",
|
|
572
572
|
ref: t,
|
|
573
|
-
class: "rounded
|
|
573
|
+
class: "rounded w-full overflow-x-scroll scroll-smooth carousel carousel-horizontal",
|
|
574
574
|
style: re({ gap: `${u.gap}px` })
|
|
575
575
|
}, [
|
|
576
576
|
w(f.$slots, "default", {}, void 0, !0)
|
|
@@ -589,7 +589,7 @@ const Ye = ne("SunIcon", [
|
|
|
589
589
|
], !0)
|
|
590
590
|
]),
|
|
591
591
|
n("div", {
|
|
592
|
-
onClick:
|
|
592
|
+
onClick: b,
|
|
593
593
|
role: "button",
|
|
594
594
|
"aria-label": "Next Slide"
|
|
595
595
|
}, [
|
|
@@ -616,10 +616,10 @@ const Ye = ne("SunIcon", [
|
|
|
616
616
|
for (const [t, r] of o)
|
|
617
617
|
e[t] = r;
|
|
618
618
|
return e;
|
|
619
|
-
}, qn = /* @__PURE__ */ G(mt, [["__scopeId", "data-v-
|
|
619
|
+
}, qn = /* @__PURE__ */ G(mt, [["__scopeId", "data-v-f820adac"]]), vt = /* @__PURE__ */ V({
|
|
620
620
|
__name: "carouselItem",
|
|
621
621
|
setup(u) {
|
|
622
|
-
const o = Pe(
|
|
622
|
+
const o = Pe(he, S({}));
|
|
623
623
|
return (e, t) => (a(), l("div", {
|
|
624
624
|
class: "relative w-full carousel-item",
|
|
625
625
|
style: re(z(o))
|
|
@@ -627,7 +627,7 @@ const Ye = ne("SunIcon", [
|
|
|
627
627
|
w(e.$slots, "default", {}, void 0, !0)
|
|
628
628
|
], 4));
|
|
629
629
|
}
|
|
630
|
-
}), Wn = /* @__PURE__ */ G(vt, [["__scopeId", "data-v-b38df5e3"]]), gt = { class: "flex gap-4 bg-base-100 w-full tabs tabs-boxed" },
|
|
630
|
+
}), Wn = /* @__PURE__ */ G(vt, [["__scopeId", "data-v-b38df5e3"]]), gt = { class: "flex gap-4 bg-base-100 w-full tabs tabs-boxed" }, ht = ["onClick"], bt = { class: "text-sm" }, yt = { class: "md:block hidden opacity-35 text-xs truncate overflow-hidden ..." }, wt = { class: "hidden" }, kt = {
|
|
631
631
|
id: "advancedSearchMobile",
|
|
632
632
|
class: "modal"
|
|
633
633
|
}, _t = { class: "modal-box" }, $t = { class: "font-bold text-lg" }, St = ["checked"], xt = { class: "flex justify-between items-center pr-4 w-full font-medium text-xl collapse-title" }, Ct = { class: "text-sm" }, Dt = { class: "flex place-content-center p-0 collapse-content" }, Mt = /* @__PURE__ */ V({
|
|
@@ -640,7 +640,7 @@ const Ye = ne("SunIcon", [
|
|
|
640
640
|
setup(u, { emit: o }) {
|
|
641
641
|
const e = u, t = o, r = S(null), s = {
|
|
642
642
|
datetime: Oe(() => Promise.resolve().then(() => Qt))
|
|
643
|
-
}, p = S({}),
|
|
643
|
+
}, p = S({}), h = S({ left: "0px", top: "0px", transform: "translateX(0%)" }), v = S(null);
|
|
644
644
|
function m(f, g) {
|
|
645
645
|
var k, D, y;
|
|
646
646
|
if ((k = r.value) != null && k.name) {
|
|
@@ -658,7 +658,7 @@ const Ye = ne("SunIcon", [
|
|
|
658
658
|
}));
|
|
659
659
|
}
|
|
660
660
|
}
|
|
661
|
-
function
|
|
661
|
+
function b() {
|
|
662
662
|
t("search");
|
|
663
663
|
}
|
|
664
664
|
async function L(f) {
|
|
@@ -676,11 +676,11 @@ const Ye = ne("SunIcon", [
|
|
|
676
676
|
const g = p.value[f.name];
|
|
677
677
|
if (g) {
|
|
678
678
|
const D = g.getBoundingClientRect(), y = ((k = v.value) == null ? void 0 : k.getBoundingClientRect()) || { left: 0, top: 0 };
|
|
679
|
-
window.innerWidth > 768 ?
|
|
679
|
+
window.innerWidth > 768 ? h.value = {
|
|
680
680
|
left: `${D.left + D.width / 2 - y.left}px`,
|
|
681
681
|
top: `${D.bottom - y.top}px`,
|
|
682
682
|
transform: "translateX(-50%)"
|
|
683
|
-
} :
|
|
683
|
+
} : h.value = {
|
|
684
684
|
left: "50%",
|
|
685
685
|
top: `${D.bottom - y.top}px`,
|
|
686
686
|
transform: "translateX(-50%)"
|
|
@@ -715,15 +715,15 @@ const Ye = ne("SunIcon", [
|
|
|
715
715
|
ref_for: !0,
|
|
716
716
|
ref: (O) => p.value[y.name] = O
|
|
717
717
|
}, [
|
|
718
|
-
n("p",
|
|
718
|
+
n("p", bt, $(y.name), 1),
|
|
719
719
|
n("p", yt, $(y.description), 1)
|
|
720
|
-
], 10,
|
|
720
|
+
], 10, ht);
|
|
721
721
|
}), 128))
|
|
722
722
|
]),
|
|
723
723
|
r.value ? (a(), l("div", {
|
|
724
724
|
key: 0,
|
|
725
725
|
class: "absolute flex shadow-sm mt-4 w-fit max-w-full transition-all tab-content",
|
|
726
|
-
style: re(
|
|
726
|
+
style: re(h.value)
|
|
727
727
|
}, [
|
|
728
728
|
(a(), ce(pe(s[r.value.type]), fe(r.value.props ? r.value.props : null, { onUpdated: m }), null, 16))
|
|
729
729
|
], 4)) : T("", !0),
|
|
@@ -731,7 +731,7 @@ const Ye = ne("SunIcon", [
|
|
|
731
731
|
title: "search",
|
|
732
732
|
type: "submit",
|
|
733
733
|
class: "ml-1 btn btn-primary btn-square",
|
|
734
|
-
onClick:
|
|
734
|
+
onClick: b
|
|
735
735
|
}, [
|
|
736
736
|
X(z(ve), {
|
|
737
737
|
size: 24,
|
|
@@ -781,7 +781,7 @@ const Ye = ne("SunIcon", [
|
|
|
781
781
|
n("form", { method: "dialog" }, [
|
|
782
782
|
n("button", {
|
|
783
783
|
class: "btn btn-primary",
|
|
784
|
-
onClick:
|
|
784
|
+
onClick: b
|
|
785
785
|
}, "Close and Search")
|
|
786
786
|
])
|
|
787
787
|
])
|
|
@@ -850,9 +850,9 @@ const Ye = ne("SunIcon", [
|
|
|
850
850
|
j(() => e.range, (d) => {
|
|
851
851
|
d ? (s.value = { start: null, end: null }, p.value = { start: null, end: null }) : (s.value = null, p.value = null);
|
|
852
852
|
});
|
|
853
|
-
const t = o, r = S(!1), s = S(e.range ? { start: null, end: null } : null), p = S(e.range ? { start: null, end: null } : null),
|
|
853
|
+
const t = o, r = S(!1), s = S(e.range ? { start: null, end: null } : null), p = S(e.range ? { start: null, end: null } : null), h = S((/* @__PURE__ */ new Date()).toLocaleString("default", { month: "long" })), v = S((/* @__PURE__ */ new Date()).getFullYear()), m = S(e.range ? { start: 0, end: 0 } : 0), b = S(e.range ? { start: 0, end: 0 } : 0), L = S(null), E = B(() => `${e.id}-input`), M = B(() => `${e.id}-popup`), f = B(() => e.mode === "date" || e.mode === "datetime"), g = B(() => e.mode === "time" || e.mode === "datetime");
|
|
854
854
|
B(() => new Date(v.value, k.value));
|
|
855
|
-
const k = B(() => J.indexOf(
|
|
855
|
+
const k = B(() => J.indexOf(h.value)), D = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], y = B(() => new Date(v.value, k.value).getDay()), I = B(() => {
|
|
856
856
|
const d = new Date(v.value, k.value + 1, 0).getDate();
|
|
857
857
|
return Array.from({ length: d }, (c, i) => new Date(v.value, k.value, i + 1));
|
|
858
858
|
}), O = B(() => Array.from({ length: y.value }, (d, c) => c)), R = Array.from({ length: 24 }, (d, c) => c), Y = Array.from({ length: 60 }, (d, c) => c), q = B(
|
|
@@ -873,11 +873,11 @@ const Ye = ne("SunIcon", [
|
|
|
873
873
|
if (!g.value) return "";
|
|
874
874
|
const d = (c) => {
|
|
875
875
|
var Q, K, de;
|
|
876
|
-
const i = ((Q = m.value) == null ? void 0 : Q[c]) ?? m.value, N = ((K =
|
|
876
|
+
const i = ((Q = m.value) == null ? void 0 : Q[c]) ?? m.value, N = ((K = b.value) == null ? void 0 : K[c]) ?? b.value;
|
|
877
877
|
return q.value ? ((de = p.value) == null ? void 0 : de[c]) ?? p.value : `${i.toString().padStart(2, "0")}:${N.toString().padStart(2, "0")}`;
|
|
878
878
|
};
|
|
879
879
|
return e.range ? `${d("start")} - ${d("end")}` : d();
|
|
880
|
-
}),
|
|
880
|
+
}), be = B(() => {
|
|
881
881
|
const d = ae.value, c = le.value;
|
|
882
882
|
return `${d} ${c}`.trim();
|
|
883
883
|
}), ye = () => r.value = !r.value, ie = () => {
|
|
@@ -898,10 +898,10 @@ const Ye = ne("SunIcon", [
|
|
|
898
898
|
return !1;
|
|
899
899
|
}, Me = () => {
|
|
900
900
|
let d = k.value - 1;
|
|
901
|
-
d < 0 && (d = 11, v.value--),
|
|
901
|
+
d < 0 && (d = 11, v.value--), h.value = J[d], P();
|
|
902
902
|
}, Te = () => {
|
|
903
903
|
let d = k.value + 1;
|
|
904
|
-
d > 11 && (d = 0, v.value++),
|
|
904
|
+
d > 11 && (d = 0, v.value++), h.value = J[d], P();
|
|
905
905
|
}, ue = (d) => {
|
|
906
906
|
L.value && !L.value.contains(d.target) && r.value == !0 && ie();
|
|
907
907
|
}, P = () => {
|
|
@@ -914,22 +914,22 @@ const Ye = ne("SunIcon", [
|
|
|
914
914
|
e.range ? (d.from = c(
|
|
915
915
|
s.value.start,
|
|
916
916
|
m.value.start,
|
|
917
|
-
|
|
917
|
+
b.value.start
|
|
918
918
|
), d.to = c(
|
|
919
919
|
s.value.end,
|
|
920
920
|
m.value.end,
|
|
921
|
-
|
|
921
|
+
b.value.end
|
|
922
922
|
)) : d = c(
|
|
923
923
|
s.value,
|
|
924
924
|
m.value,
|
|
925
|
-
|
|
925
|
+
b.value
|
|
926
926
|
), t("updated", d);
|
|
927
927
|
};
|
|
928
928
|
return H(() => {
|
|
929
929
|
e.initialDate && (e.range && e.initialDate.start && e.initialDate.end ? s.value = {
|
|
930
930
|
start: new Date(e.initialDate.start),
|
|
931
931
|
end: new Date(e.initialDate.end)
|
|
932
|
-
} : 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(),
|
|
932
|
+
} : 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(), b.value.start = b.value.start ?? (/* @__PURE__ */ new Date()).getMinutes(), b.value.end = b.value.end ?? (/* @__PURE__ */ new Date()).getMinutes()) : (m.value = m.value ?? (/* @__PURE__ */ new Date()).getHours(), b.value = b.value ?? (/* @__PURE__ */ new Date()).getMinutes());
|
|
933
933
|
}), e.popup && H(() => document.addEventListener("click", ue)), ge(() => document.removeEventListener("click", ue)), (d, c) => (a(), l("div", {
|
|
934
934
|
class: "inline-block relative w-full lg:w-[360px]",
|
|
935
935
|
ref_key: "pickerContainer",
|
|
@@ -944,7 +944,7 @@ const Ye = ne("SunIcon", [
|
|
|
944
944
|
type: "text",
|
|
945
945
|
class: "input-bordered w-full cursor-pointer input",
|
|
946
946
|
placeholder: u.placeholder,
|
|
947
|
-
value:
|
|
947
|
+
value: be.value,
|
|
948
948
|
readonly: "",
|
|
949
949
|
id: E.value
|
|
950
950
|
}, null, 8, Tt),
|
|
@@ -980,7 +980,7 @@ const Ye = ne("SunIcon", [
|
|
|
980
980
|
])),
|
|
981
981
|
U(n("select", {
|
|
982
982
|
class: "border-none w-fit select",
|
|
983
|
-
"onUpdate:modelValue": c[0] || (c[0] = (i) =>
|
|
983
|
+
"onUpdate:modelValue": c[0] || (c[0] = (i) => h.value = i),
|
|
984
984
|
onChange: P
|
|
985
985
|
}, [
|
|
986
986
|
(a(), l(_, null, C(J, (i, N) => n("option", {
|
|
@@ -988,7 +988,7 @@ const Ye = ne("SunIcon", [
|
|
|
988
988
|
value: i
|
|
989
989
|
}, $(i), 9, Pt)), 64))
|
|
990
990
|
], 544), [
|
|
991
|
-
[F,
|
|
991
|
+
[F, h.value]
|
|
992
992
|
]),
|
|
993
993
|
U(n("select", {
|
|
994
994
|
class: "border-none w-24 select",
|
|
@@ -1076,7 +1076,7 @@ const Ye = ne("SunIcon", [
|
|
|
1076
1076
|
]),
|
|
1077
1077
|
U(n("select", {
|
|
1078
1078
|
class: "w-full select-bordered select",
|
|
1079
|
-
"onUpdate:modelValue": c[7] || (c[7] = (i) =>
|
|
1079
|
+
"onUpdate:modelValue": c[7] || (c[7] = (i) => b.value.start = i),
|
|
1080
1080
|
onChange: P
|
|
1081
1081
|
}, [
|
|
1082
1082
|
(a(!0), l(_, null, C(z(Y), (i) => (a(), l("option", {
|
|
@@ -1086,7 +1086,7 @@ const Ye = ne("SunIcon", [
|
|
|
1086
1086
|
], 544), [
|
|
1087
1087
|
[
|
|
1088
1088
|
F,
|
|
1089
|
-
|
|
1089
|
+
b.value.start,
|
|
1090
1090
|
void 0,
|
|
1091
1091
|
{ number: !0 }
|
|
1092
1092
|
]
|
|
@@ -1123,7 +1123,7 @@ const Ye = ne("SunIcon", [
|
|
|
1123
1123
|
]),
|
|
1124
1124
|
U(n("select", {
|
|
1125
1125
|
class: "w-full select-bordered select",
|
|
1126
|
-
"onUpdate:modelValue": c[10] || (c[10] = (i) =>
|
|
1126
|
+
"onUpdate:modelValue": c[10] || (c[10] = (i) => b.value.end = i),
|
|
1127
1127
|
onChange: P
|
|
1128
1128
|
}, [
|
|
1129
1129
|
(a(!0), l(_, null, C(z(Y), (i) => (a(), l("option", {
|
|
@@ -1133,7 +1133,7 @@ const Ye = ne("SunIcon", [
|
|
|
1133
1133
|
], 544), [
|
|
1134
1134
|
[
|
|
1135
1135
|
F,
|
|
1136
|
-
|
|
1136
|
+
b.value.end,
|
|
1137
1137
|
void 0,
|
|
1138
1138
|
{ number: !0 }
|
|
1139
1139
|
]
|
|
@@ -1169,7 +1169,7 @@ const Ye = ne("SunIcon", [
|
|
|
1169
1169
|
]),
|
|
1170
1170
|
U(n("select", {
|
|
1171
1171
|
class: "w-full select-bordered select",
|
|
1172
|
-
"onUpdate:modelValue": c[4] || (c[4] = (i) =>
|
|
1172
|
+
"onUpdate:modelValue": c[4] || (c[4] = (i) => b.value = i),
|
|
1173
1173
|
onChange: P
|
|
1174
1174
|
}, [
|
|
1175
1175
|
(a(!0), l(_, null, C(z(Y), (i) => (a(), l("option", {
|
|
@@ -1179,7 +1179,7 @@ const Ye = ne("SunIcon", [
|
|
|
1179
1179
|
], 544), [
|
|
1180
1180
|
[
|
|
1181
1181
|
F,
|
|
1182
|
-
|
|
1182
|
+
b.value,
|
|
1183
1183
|
void 0,
|
|
1184
1184
|
{ number: !0 }
|
|
1185
1185
|
]
|
|
@@ -1235,7 +1235,7 @@ const Ye = ne("SunIcon", [
|
|
|
1235
1235
|
type: "radio",
|
|
1236
1236
|
value: r.halfStars ? p * 0.5 : p,
|
|
1237
1237
|
checked: e.value === (r.halfStars ? p * 0.5 : p),
|
|
1238
|
-
onChange: (
|
|
1238
|
+
onChange: (h) => r.isInteractive ? t(r.halfStars ? p * 0.5 : p) : null,
|
|
1239
1239
|
class: x(["mask mask-star", {
|
|
1240
1240
|
"bg-yellow-400": e.value >= (r.halfStars ? p * 0.5 : p),
|
|
1241
1241
|
"mask-half-1": r.halfStars && p % 2 !== 0,
|
|
@@ -1257,15 +1257,15 @@ const Ye = ne("SunIcon", [
|
|
|
1257
1257
|
},
|
|
1258
1258
|
emits: ["update:modelValue"],
|
|
1259
1259
|
setup(u, { emit: o }) {
|
|
1260
|
-
const e = u, t = o, r = S([...e.modelValue]), s = e.maxTagAmount === void 0 ? -1 : e.maxTagAmount, p = S(null),
|
|
1261
|
-
const M =
|
|
1262
|
-
M && !r.value.includes(M) && (r.value.push(M), t("update:modelValue", r.value),
|
|
1263
|
-
},
|
|
1260
|
+
const e = u, t = o, r = S([...e.modelValue]), s = e.maxTagAmount === void 0 ? -1 : e.maxTagAmount, p = S(null), h = S(""), v = B(() => s < 0 || r.value.length < s), m = () => {
|
|
1261
|
+
const M = h.value.trim();
|
|
1262
|
+
M && !r.value.includes(M) && (r.value.push(M), t("update:modelValue", r.value), h.value = "");
|
|
1263
|
+
}, b = (M) => {
|
|
1264
1264
|
r.value = r.value.filter((f) => f !== M), t("update:modelValue", r.value);
|
|
1265
1265
|
}, L = () => {
|
|
1266
|
-
|
|
1266
|
+
h.value === "" && (r.value.pop(), t("update:modelValue", r.value));
|
|
1267
1267
|
}, E = (M) => {
|
|
1268
|
-
M.key === "Enter" ? m() : M.key === "Backspace" &&
|
|
1268
|
+
M.key === "Enter" ? m() : M.key === "Backspace" && h.value === "" && L();
|
|
1269
1269
|
};
|
|
1270
1270
|
return j(() => e.modelValue, (M) => {
|
|
1271
1271
|
r.value = [...M];
|
|
@@ -1279,7 +1279,7 @@ const Ye = ne("SunIcon", [
|
|
|
1279
1279
|
n("div", tn, [
|
|
1280
1280
|
n("button", {
|
|
1281
1281
|
class: "!px-1 !py-0 h-fit font-bold cursor-pointer",
|
|
1282
|
-
onClick: (k) =>
|
|
1282
|
+
onClick: (k) => b(g),
|
|
1283
1283
|
"aria-label": "Remove tag"
|
|
1284
1284
|
}, "X", 8, nn),
|
|
1285
1285
|
n("span", an, $(g), 1)
|
|
@@ -1290,14 +1290,14 @@ const Ye = ne("SunIcon", [
|
|
|
1290
1290
|
key: 0,
|
|
1291
1291
|
ref_key: "inputRef",
|
|
1292
1292
|
ref: p,
|
|
1293
|
-
"onUpdate:modelValue": f[0] || (f[0] = (g) =>
|
|
1293
|
+
"onUpdate:modelValue": f[0] || (f[0] = (g) => h.value = g),
|
|
1294
1294
|
type: "text",
|
|
1295
1295
|
placeholder: M.placeholder || "Type here",
|
|
1296
1296
|
class: "h-full input input-ghost",
|
|
1297
1297
|
onKeydown: E,
|
|
1298
1298
|
"aria-label": "Add tags"
|
|
1299
1299
|
}, null, 40, ln)), [
|
|
1300
|
-
[te,
|
|
1300
|
+
[te, h.value]
|
|
1301
1301
|
]) : T("", !0)
|
|
1302
1302
|
])
|
|
1303
1303
|
], 2));
|
|
@@ -1350,7 +1350,7 @@ const Ye = ne("SunIcon", [
|
|
|
1350
1350
|
}, dn = { class: "border-b-2 border-base-100 last:border-b-0 w-full" }, cn = {
|
|
1351
1351
|
tabindex: "0",
|
|
1352
1352
|
class: "collapse collapse-plus w-full"
|
|
1353
|
-
}, pn = { class: "collapse-title font-bold text-lg collapsible-footer-title" }, fn = { class: "collapse-content flex w-full text-sm" }, mn = { class: "flex flex-col gap-2.5" }, vn = { class: "w-full" }, gn = ["href"],
|
|
1353
|
+
}, pn = { class: "collapse-title font-bold text-lg collapsible-footer-title" }, fn = { class: "collapse-content flex w-full text-sm" }, mn = { class: "flex flex-col gap-2.5" }, vn = { class: "w-full" }, gn = ["href"], hn = { class: "w-full" }, Kn = /* @__PURE__ */ V({
|
|
1354
1354
|
__name: "footer",
|
|
1355
1355
|
props: {
|
|
1356
1356
|
items: {},
|
|
@@ -1390,13 +1390,13 @@ const Ye = ne("SunIcon", [
|
|
|
1390
1390
|
])
|
|
1391
1391
|
]))), 256))
|
|
1392
1392
|
])) : T("", !0),
|
|
1393
|
-
n("aside",
|
|
1393
|
+
n("aside", hn, [
|
|
1394
1394
|
w(e.$slots, "default")
|
|
1395
1395
|
])
|
|
1396
1396
|
])
|
|
1397
1397
|
], 2));
|
|
1398
1398
|
}
|
|
1399
|
-
}),
|
|
1399
|
+
}), bn = {}, yn = { class: "min-h-40 container hero" }, wn = { class: "px-0! text-center hero-content" }, kn = { class: "mt-9 text-4xl" };
|
|
1400
1400
|
function _n(u, o) {
|
|
1401
1401
|
return a(), l("div", yn, [
|
|
1402
1402
|
n("div", wn, [
|
|
@@ -1416,7 +1416,7 @@ function _n(u, o) {
|
|
|
1416
1416
|
])
|
|
1417
1417
|
]);
|
|
1418
1418
|
}
|
|
1419
|
-
const Xn = /* @__PURE__ */ G(
|
|
1419
|
+
const Xn = /* @__PURE__ */ G(bn, [["render", _n]]), $n = { class: "flex flex-row place-content-center gap-4 categories" }, Sn = ["onClick"], Zn = /* @__PURE__ */ V({
|
|
1420
1420
|
__name: "categoryNavigation",
|
|
1421
1421
|
props: {
|
|
1422
1422
|
searchOptions: {},
|
|
@@ -1429,13 +1429,13 @@ const Xn = /* @__PURE__ */ G(hn, [["render", _n]]), $n = { class: "flex flex-row
|
|
|
1429
1429
|
t("update:currentCategory", s);
|
|
1430
1430
|
}
|
|
1431
1431
|
return (s, p) => (a(), l("div", $n, [
|
|
1432
|
-
(a(!0), l(_, null, C(e.searchOptions, (
|
|
1433
|
-
key:
|
|
1432
|
+
(a(!0), l(_, null, C(e.searchOptions, (h) => (a(), l("div", {
|
|
1433
|
+
key: h.category
|
|
1434
1434
|
}, [
|
|
1435
1435
|
n("button", {
|
|
1436
|
-
onClick: (v) => r(
|
|
1437
|
-
class: x(["truncate btn btn-ghost", { "font-semibold": e.currentCategory ===
|
|
1438
|
-
}, $(
|
|
1436
|
+
onClick: (v) => r(h.category),
|
|
1437
|
+
class: x(["truncate btn btn-ghost", { "font-semibold": e.currentCategory === h.category }])
|
|
1438
|
+
}, $(h.category), 11, Sn)
|
|
1439
1439
|
]))), 128))
|
|
1440
1440
|
]));
|
|
1441
1441
|
}
|
|
@@ -1488,7 +1488,7 @@ const Xn = /* @__PURE__ */ G(hn, [["render", _n]]), $n = { class: "flex flex-row
|
|
|
1488
1488
|
const m = (e.items.indexOf(t.value) + 1) % e.items.length;
|
|
1489
1489
|
s(e.items[m]);
|
|
1490
1490
|
}
|
|
1491
|
-
function
|
|
1491
|
+
function h() {
|
|
1492
1492
|
const m = (e.items.indexOf(t.value) - 1 + e.items.length) % e.items.length;
|
|
1493
1493
|
s(e.items[m]);
|
|
1494
1494
|
}
|
|
@@ -1505,24 +1505,24 @@ const Xn = /* @__PURE__ */ G(hn, [["render", _n]]), $n = { class: "flex flex-row
|
|
|
1505
1505
|
}, [
|
|
1506
1506
|
v.withControlls ? (a(), l("div", In, [
|
|
1507
1507
|
n("button", {
|
|
1508
|
-
onClick: m[0] || (m[0] = (
|
|
1508
|
+
onClick: m[0] || (m[0] = (b) => h()),
|
|
1509
1509
|
class: "cursor-pointer"
|
|
1510
1510
|
}, "Previous"),
|
|
1511
1511
|
n("button", {
|
|
1512
|
-
onClick: m[1] || (m[1] = (
|
|
1512
|
+
onClick: m[1] || (m[1] = (b) => p()),
|
|
1513
1513
|
class: "text-primary cursor-pointer"
|
|
1514
1514
|
}, "Next")
|
|
1515
1515
|
])) : T("", !0),
|
|
1516
|
-
(a(!0), l(_, null, C(v.items, (
|
|
1516
|
+
(a(!0), l(_, null, C(v.items, (b) => (a(), l(_, null, [
|
|
1517
1517
|
n("a", {
|
|
1518
1518
|
type: "button",
|
|
1519
1519
|
role: "tab",
|
|
1520
|
-
class: x(["min-w-max tab",
|
|
1521
|
-
onClick: (L) => s(
|
|
1522
|
-
"aria-selected": t.value ==
|
|
1523
|
-
}, $(
|
|
1520
|
+
class: x(["min-w-max tab", b === t.value ? "bg-primary text-base-100" : ""]),
|
|
1521
|
+
onClick: (L) => s(b),
|
|
1522
|
+
"aria-selected": t.value == b
|
|
1523
|
+
}, $(b), 11, Bn),
|
|
1524
1524
|
v.buttonOnlyMode ? T("", !0) : (a(), l("div", Vn, [
|
|
1525
|
-
w(v.$slots, `${
|
|
1525
|
+
w(v.$slots, `${b}-tab`)
|
|
1526
1526
|
]))
|
|
1527
1527
|
], 64))), 256))
|
|
1528
1528
|
], 2),
|
package/dist/manolis-ui.umd.cjs
CHANGED
|
@@ -38,4 +38,4 @@
|
|
|
38
38
|
*
|
|
39
39
|
* This source code is licensed under the ISC license.
|
|
40
40
|
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/const ie=P("SunIcon",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),de=(s,o)=>{const t=e.ref(null);return e.onMounted(()=>{if(typeof window<"u"){const n=window.localStorage.getItem(s);t.value=n?JSON.parse(n):o}}),e.watch(t,n=>{typeof window<"u"&&window.localStorage.setItem(s,JSON.stringify(n))}),t},me={class:"swap-rotate swap"},pe=["true-value","false-value"],fe=e.defineComponent({__name:"theme-controller",props:{lightTheme:{default:"light"},darkTheme:{default:"dark"}},setup(s){const o=s,t=de("theme",o.lightTheme);function n(a){typeof window<"u"&&window.document&&document.documentElement.setAttribute("data-theme",a)}return e.onMounted(()=>n(t.value?t.value:"")),e.watch(t,a=>{n(a)}),(a,l)=>(e.openBlock(),e.createElementBlock("label",me,[e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:"theme-controller","onUpdate:modelValue":l[0]||(l[0]=d=>e.isRef(t)?t.value=d:null),"true-value":o.lightTheme,"false-value":o.darkTheme},null,8,pe),[[e.vModelCheckbox,e.unref(t)]]),e.createVNode(e.unref(ie),{class:"swap-off fill-current"}),e.createVNode(e.unref(ce),{class:"swap-on fill-current"})]))}}),ue=["name"],ge={class:"collapse-title font-bold text-2xl lg:text-4xl"},ke={class:"collapse-content"},he=["innerHTML"],be=e.defineComponent({__name:"accordion",props:{name:{},items:{},joinItems:{type:Boolean,default:!1},icon:{}},setup(s){const o=s;return(t,n)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["collapse border border-base-300",[t.icon?`collapse-${t.icon}`:"",{"join-item":t.joinItems}]]),key:l},[e.createElementVNode("input",{type:"radio",name:t.name,value:"true"},null,8,ue),e.createElementVNode("div",ge,e.toDisplayString(a.title),1),e.createElementVNode("div",ke,[e.createElementVNode("span",{innerHTML:a.content},null,8,he)])],2))),128))}}),ye=["src"],we={class:"text-xl"},Be=e.defineComponent({__name:"avatar",props:{image:{},onlineStatus:{default:"none"},initials:{},fullyRounded:{type:Boolean,default:!1}},setup(s){const o=s,t=e.ref(o.onlineStatus);return e.watch(()=>o.onlineStatus,n=>{n&&(t.value=n)}),(n,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["avatar",[{"avatar-online":t.value==="online"},{"avatar-offline":t.value==="offline"}]])},[n.image?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["rounded",[{"rounded-full":n.fullyRounded},{rounded:!n.fullyRounded}]])},[e.createElementVNode("img",{src:n.image,class:"w-full h-full"},null,8,ye)],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["flex justify-center bg-neutral p-[25%] rounded w-16 text-neutral-content text-center",[{"rounded-full":n.fullyRounded},{rounded:!n.fullyRounded}]])},[e.createElementVNode("p",we,e.toDisplayString(n.initials),1)],2))],2))}}),Ee=e.defineComponent({__name:"badge",props:{color:{default:"neutral"},outline:{type:Boolean,default:!1},size:{default:"medium"}},setup(s){const o=s,t={"extra small":"badge-xs",small:"badge-sm",medium:"badge-md",large:"badge-lg"},n={neutral:"badge-neutral",primary:"badge-primary",secondary:"badge-secondary",accent:"badge-accent",ghost:"badge-ghost",info:"badge-info",success:"badge-success",warning:"badge-warning",error:"badge-error"};return(a,l)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["badge",t[o.size],n[o.color],{"badge-outline":o.outline}])},[e.renderSlot(a.$slots,"default")],2))}}),Se=["src","alt"],Ve={key:1,class:"w-full h-32 skeleton"},_e={key:0,class:"card-body"},Ce={key:0,class:"group-hover:text-primary text-lg text-left cursor-pointer card-title"},$e={key:1,class:"text-left"},Ne={class:"flex-col flex-nowrap mt-auto card-actions"},De={key:1,class:"card-body"},xe=e.defineComponent({__name:"card",props:{imgUrl:{default:""},alt:{default:"A beautiful picture that says something about this card"},title:{default:""},description:{default:""},outlined:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},class:{default:""},background:{default:"bg-base-100"},color:{default:""}},setup(s){const o=s,t=e.ref(o.outlined);return e.watch(()=>o.outlined,n=>{t.value=n}),(n,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["group bg-base-100 shadow-xl rounded-sm min-w-64 max-w-full h-full card card-compact",[{"border-4 border-primary":t.value},n.color??"",n.background]])},[e.createElementVNode("figure",null,[n.imgUrl||n.imgUrl&&!n.loading?(e.openBlock(),e.createElementBlock("img",{key:0,src:n.imgUrl,alt:n.alt,class:e.normalizeClass(["rounded-sm w-full h-44 object-cover",{hidden:n.loading}])},null,10,Se)):e.createCommentVNode("",!0),n.loading&&n.imgUrl?(e.openBlock(),e.createElementBlock("div",Ve)):e.createCommentVNode("",!0)]),n.loading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",_e,[n.title?(e.openBlock(),e.createElementBlock("h2",Ce,e.toDisplayString(n.title),1)):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"details"),n.description?(e.openBlock(),e.createElementBlock("p",$e,e.toDisplayString(n.description),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Ne,[e.renderSlot(n.$slots,"actions")])])),n.loading?(e.openBlock(),e.createElementBlock("div",De,a[0]||(a[0]=[e.createElementVNode("div",{class:"flex flex-col gap-4 w-52"},[e.createElementVNode("div",{class:"w-28 h-4 skeleton"}),e.createElementVNode("div",{class:"w-full h-4 skeleton"}),e.createElementVNode("div",{class:"w-full h-4 skeleton"})],-1)]))):e.createCommentVNode("",!0)],2))}}),q=Symbol("CarouselItemStyle"),Me={class:"relative"},Te={class:"top-1/2 right-5 left-5 z-10 absolute flex justify-between -translate-y-1/2 transform"},ze={key:0,class:"bottom-5 z-10 absolute flex justify-center gap-2 py-2 w-full"},Ie=["onClick","aria-label"],Le=e.defineComponent({__name:"carousel",props:{showIndicators:{type:Boolean,default:!0},initialSlide:{type:Number,default:0},slidesPerView:{type:Number,default:1,validator:s=>s>=1},gap:{type:Number,default:0,validator:s=>s>=0},slideDuration:{type:Number,default:300,validator:s=>s>=0}},setup(s){const o=s,t=e.ref(o.initialSlide),n=e.ref(null),a=e.ref(!1),l=e.ref(0),d=e.computed(()=>({width:`calc((100% - ${o.slidesPerView>1?(o.slidesPerView-1)*o.gap:0}px) / ${o.slidesPerView})`}));e.provide(q,d);const g=()=>{if(!n.value||o.slidesPerView<=0)return 0;const m=n.value.offsetWidth,u=o.slidesPerView>1?(o.slidesPerView-1)*o.gap:0;return(m-u)/o.slidesPerView},f=()=>{n.value?l.value=n.value.children.length:l.value=0},p=async m=>{if(!n.value||o.slidesPerView<=0||a.value||(f(),l.value===0))return;const u=(m%l.value+l.value)%l.value,b=n.value,w=g();if(w<=0)return;const h=w+o.gap,E=u*h,V=b.scrollWidth-b.offsetWidth,N=Math.max(0,Math.min(E,V+.5));a.value=!0,b.style.scrollBehavior="auto";const z=b.scrollLeft,x=N-z;if(Math.abs(x)<1){a.value=!1,t.value=u;return}const I=performance.now(),O=U=>{const M=U-I,_=Math.min(1,M/o.slideDuration),j=_<.5?4*_*_*_:1-Math.pow(-2*_+2,3)/2;b.scrollLeft=z+x*j,_<1?requestAnimationFrame(O):(b.scrollLeft=N,t.value=u,a.value=!1)};requestAnimationFrame(O)},k=()=>{p(t.value+1)},C=()=>{p(t.value-1)},D=m=>{p(m)},B=()=>{if(!n.value||o.slidesPerView<=0||(f(),l.value===0))return;const m=n.value,u=g();if(u<=0)return;const b=Math.max(0,l.value-o.slidesPerView),w=Math.min(Math.max(0,o.initialSlide),b),h=u+o.gap,E=w*h,V=m.scrollWidth-m.offsetWidth,N=Math.max(0,Math.min(E,V+.5));m.scrollTo({left:N,behavior:"auto"}),t.value=w};return e.onMounted(()=>{requestAnimationFrame(()=>{requestAnimationFrame(B)}),f()}),e.watch(()=>o.initialSlide,m=>{requestAnimationFrame(()=>p(m))}),e.watch(()=>[o.slidesPerView,o.gap],()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{if(f(),l.value===0)return;const m=Math.max(0,l.value-o.slidesPerView),u=Math.min(t.value,m),b=o.slideDuration;o.slideDuration=0,p(u),o.slideDuration=b})})}),(m,u)=>(e.openBlock(),e.createElementBlock("div",Me,[e.createElementVNode("div",{ref_key:"carouselContainer",ref:n,class:"rounded-box w-full overflow-x-scroll scroll-smooth snap-none carousel carousel-horizontal",style:e.normalizeStyle({gap:`${s.gap}px`})},[e.renderSlot(m.$slots,"default",{},void 0,!0)],4),e.createElementVNode("div",Te,[e.createElementVNode("div",{onClick:C,role:"button","aria-label":"Previous Slide"},[e.renderSlot(m.$slots,"prevButton",{},()=>[u[0]||(u[0]=e.createElementVNode("button",{class:"btn btn-circle",tabindex:"-1"},"❮",-1))],!0)]),e.createElementVNode("div",{onClick:k,role:"button","aria-label":"Next Slide"},[e.renderSlot(m.$slots,"nextButton",{},()=>[u[1]||(u[1]=e.createElementVNode("button",{class:"btn btn-circle",tabindex:"-1"},"❯",-1))],!0)])]),s.showIndicators?(e.openBlock(),e.createElementBlock("div",ze,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(b,w)=>(e.openBlock(),e.createElementBlock("button",{key:`dot-${w}`,onClick:h=>D(w),class:e.normalizeClass(["btn btn-circle btn-xs",{"btn-active":w===t.value}]),"aria-label":`Go to slide ${w+1}`},null,10,Ie))),128))])):e.createCommentVNode("",!0)]))}}),T=(s,o)=>{const t=s.__vccOpts||s;for(const[n,a]of o)t[n]=a;return t},Fe=T(Le,[["__scopeId","data-v-a3dda8dc"]]),Pe=T(e.defineComponent({__name:"carouselItem",setup(s){const o=e.inject(q,e.ref({}));return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:"relative w-full carousel-item",style:e.normalizeStyle(e.unref(o))},[e.renderSlot(t.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-b38df5e3"]]),Oe={class:"flex gap-4 bg-base-100 w-full tabs tabs-boxed"},Ae=["onClick"],Ue={class:"text-sm"},je={class:"md:block hidden opacity-35 text-xs truncate overflow-hidden ..."},Re={class:"hidden"},qe={id:"advancedSearchMobile",class:"modal"},We={class:"modal-box"},He={class:"font-bold text-lg"},Ye=["checked"],Je={class:"flex justify-between items-center pr-4 w-full font-medium text-xl collapse-title"},Ge={class:"text-sm"},Ke={class:"flex place-content-center p-0 collapse-content"},Xe=T(e.defineComponent({__name:"advancedSearch",props:{searchOptions:{},currentCategory:{}},emits:["search","update:search-data"],setup(s,{emit:o}){const t=s,n=o,a=e.ref(null),l={datetime:e.defineAsyncComponent(()=>Promise.resolve().then(()=>yt))},d=e.ref({}),g=e.ref({left:"0px",top:"0px",transform:"translateX(0%)"}),f=e.ref(null);function p(m,u){var b,w,h;if((b=a.value)!=null&&b.name){n("update:search-data",{tab:a.value.name,data:m});return}if(t.searchOptions){let E=(h=(w=t.searchOptions)==null?void 0:w.find(V=>(V==null?void 0:V.category)===t.currentCategory))==null?void 0:h.tabs[u];E!==void 0&&(E.value=m,n("update:search-data",{tab:E==null?void 0:E.name,data:E==null?void 0:E.value}))}}function k(){n("search")}async function C(m){f.value&&!f.value.contains(m.target)&&(await e.nextTick(),a.value=null)}async function D(){if(typeof window<"u"&&window.innerWidth<=768){const m=document.getElementById("advancedSearchMobile");m?m.showModal():console.warn("Modal element not found.")}}async function B(m){var b;a.value=m,await e.nextTick();const u=d.value[m.name];if(u){const w=u.getBoundingClientRect(),h=((b=f.value)==null?void 0:b.getBoundingClientRect())||{left:0,top:0};window.innerWidth>768?g.value={left:`${w.left+w.width/2-h.left}px`,top:`${w.bottom-h.top}px`,transform:"translateX(-50%)"}:g.value={left:"50%",top:`${w.bottom-h.top}px`,transform:"translateX(-50%)"}}else console.error("Tab element not found for:",m.name)}return e.onMounted(()=>{document.addEventListener("click",C)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",C)}),(m,u)=>{var b,w;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{ref_key:"searchContainer",ref:f,class:"w-full"},[e.createElementVNode("div",{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",onClick:D},[e.createElementVNode("div",Oe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((b=t.searchOptions.find(h=>h.category===t.currentCategory))==null?void 0:b.tabs)||[],h=>{var E;return e.openBlock(),e.createElementBlock("button",{key:h.name,onClick:V=>B(h),class:e.normalizeClass([{"tab-active":((E=a.value)==null?void 0:E.name)===h.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"]),ref_for:!0,ref:V=>d.value[h.name]=V},[e.createElementVNode("p",Ue,e.toDisplayString(h.name),1),e.createElementVNode("p",je,e.toDisplayString(h.description),1)],10,Ae)}),128))]),a.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"absolute flex shadow-sm mt-4 w-fit max-w-full transition-all tab-content",style:e.normalizeStyle(g.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l[a.value.type]),e.mergeProps(a.value.props?a.value.props:null,{onUpdated:p}),null,16))],4)):e.createCommentVNode("",!0),e.createElementVNode("button",{title:"search",type:"submit",class:"ml-1 btn btn-primary btn-square",onClick:k},[e.createVNode(e.unref(R),{size:24,color:"white"})])]),e.createElementVNode("div",Re,[e.createElementVNode("button",{title:"search",onClick:u[0]||(u[0]=()=>{})},[e.createVNode(e.unref(R),{size:24,color:"white"})])])],512),e.createElementVNode("dialog",qe,[e.createElementVNode("div",We,[e.renderSlot(m.$slots,"additionalForMobile",{},()=>[e.createElementVNode("h3",He,e.toDisplayString(m.currentCategory),1)],!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((w=t.searchOptions.find(h=>h.category===t.currentCategory))==null?void 0:w.tabs)||[],(h,E)=>(e.openBlock(),e.createElementBlock("div",{class:"bg-base-200 my-4 collapse",key:h.name},[e.createElementVNode("input",{type:"radio",name:"my-accordion-1",checked:E===0},null,8,Ye),e.createElementVNode("div",Je,[e.createTextVNode(e.toDisplayString(h.name)+" ",1),e.createElementVNode("p",Ge,e.toDisplayString(h.description),1)]),e.createElementVNode("div",Ke,[u[1]||(u[1]=e.createElementVNode("br",null,null,-1)),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l[h.type]),e.mergeProps({ref_for:!0},h.props||{},{onUpdated:V=>p(V,E)}),null,16,["onUpdated"]))])]))),128)),e.createElementVNode("div",{class:"modal-action"},[e.createElementVNode("form",{method:"dialog"},[e.createElementVNode("button",{class:"btn btn-primary",onClick:k},"Close and Search")])])])])],64)}}}),[["__scopeId","data-v-08fa37eb"]]),Ze=["placeholder","value","id"],Qe={class:"btn btn-ghost"},ve=["id"],et={key:0,class:"flex justify-between items-center place-content-center mb-4"},tt=["value"],nt=["value"],ot={key:1,class:"gap-2 grid grid-cols-7"},lt=["onClick"],at={key:2,class:"mt-4 lg:w-80"},rt={key:0,class:"mb-2 font-bold text-lg"},st={key:1},ct={key:1,class:"flex gap-4"},it=["value"],dt=["value"],mt={key:2,class:"flex flex-col gap-4"},pt={key:1,class:"flex gap-2"},ft=["value"],ut=["value"],gt={key:1,class:"flex gap-2"},kt=["value"],ht=["value"],bt={class:"flex gap-2 mt-4"},W=T({__name:"datetimePicker",props:{mode:{type:String,default:"datetime",validator:s=>["datetime","date","time"].includes(s)},range:{type:Boolean,default:!1},placeholder:{type:String,default:"Select date and time"},popup:{type:Boolean,default:!1},id:{type:String,default:"datetimepicker"},initialDate:{type:Object,default:()=>null}},emits:["updated"],setup(s,{emit:o}){const t=s;e.watch(()=>t.range,c=>{c?(l.value={start:null,end:null},d.value={start:null,end:null}):(l.value=null,d.value=null)});const n=o,a=e.ref(!1),l=e.ref(t.range?{start:null,end:null}:null),d=e.ref(t.range?{start:null,end:null}:null),g=e.ref(new Date().toLocaleString("default",{month:"long"})),f=e.ref(new Date().getFullYear()),p=e.ref(t.range?{start:0,end:0}:0),k=e.ref(t.range?{start:0,end:0}:0),C=e.ref(null),D=e.computed(()=>`${t.id}-input`),B=e.computed(()=>`${t.id}-popup`),m=e.computed(()=>t.mode==="date"||t.mode==="datetime"),u=e.computed(()=>t.mode==="time"||t.mode==="datetime");e.computed(()=>new Date(f.value,b.value));const b=e.computed(()=>I.indexOf(g.value)),w=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],h=e.computed(()=>new Date(f.value,b.value).getDay()),E=e.computed(()=>{const c=new Date(f.value,b.value+1,0).getDate();return Array.from({length:c},(i,r)=>new Date(f.value,b.value,r+1))}),V=e.computed(()=>Array.from({length:h.value},(c,i)=>i)),N=Array.from({length:24},(c,i)=>i),z=Array.from({length:60},(c,i)=>i),x=e.computed(()=>typeof navigator<"u"&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)),I=["January","February","March","April","May","June","July","August","September","October","November","December"],O=e.computed(()=>{const c=new Date().getFullYear();return Array.from({length:100},(i,r)=>c-50+r)}),U=e.computed(()=>{if(!m.value||!l.value)return"";if(t.range&&l.value.start&&l.value.end){const c=l.value.start.toLocaleDateString("en-US"),i=l.value.end.toLocaleDateString("en-US");return`${c} - ${i}`}return!t.range&&l.value?l.value.toLocaleDateString("en-US"):""}),M=c=>c instanceof Date?c:new Date(c),_=c=>c instanceof Date&&!isNaN(c),j=e.computed(()=>{if(!u.value)return"";const c=i=>{var A,L,J;const r=((A=p.value)==null?void 0:A[i])??p.value,$=((L=k.value)==null?void 0:L[i])??k.value;return x.value?((J=d.value)==null?void 0:J[i])??d.value:`${r.toString().padStart(2,"0")}:${$.toString().padStart(2,"0")}`};return t.range?`${c("start")} - ${c("end")}`:c()}),rn=e.computed(()=>{const c=U.value,i=j.value;return`${c} ${i}`.trim()}),sn=()=>a.value=!a.value,H=()=>{S(),cn()},cn=()=>a.value=!1,dn=()=>{l.value=t.range?{start:null,end:null}:null,d.value=t.range?{start:null,end:null}:null,S()},mn=c=>{t.range?l.value.start&&l.value.end?l.value={start:c,end:null}:l.value.start?l.value.end=c:l.value.start=c:l.value=c,S()},pn=c=>(c=M(c),t.range?l.value.start&&_(l.value.start)&&c.getTime()===l.value.start.getTime()||l.value.end&&_(l.value.end)&&c.getTime()===l.value.end.getTime():_(l.value)&&c.getTime()===l.value.getTime()),fn=c=>{c=M(c);const i=new Date;return c.getDate()===i.getDate()&&c.getMonth()===i.getMonth()&&c.getFullYear()===i.getFullYear()},un=c=>(c=M(c),t.range&&_(l.value.start)&&c.getTime()===l.value.start.getTime()),gn=c=>(c=M(c),t.range&&_(l.value.end)&&c.getTime()===l.value.end.getTime()),kn=c=>{if(c=M(c),t.range&&_(l.value.start)&&_(l.value.end)){const i=l.value.start.getTime(),r=l.value.end.getTime(),$=c.getTime();return $>i&&$<r}return!1},hn=()=>{let c=b.value-1;c<0&&(c=11,f.value--),g.value=I[c],S()},bn=()=>{let c=b.value+1;c>11&&(c=0,f.value++),g.value=I[c],S()},Y=c=>{C.value&&!C.value.contains(c.target)&&a.value==!0&&H()},S=()=>{let c={};const i=(r,$,A)=>{r instanceof Date&&!isNaN(r)||(r=new Date);const L=new Date(r);return L.setUTCHours($,A,0,0),L.toISOString()};t.range?(c.from=i(l.value.start,p.value.start,k.value.start),c.to=i(l.value.end,p.value.end,k.value.end)):c=i(l.value,p.value,k.value),n("updated",c)};return e.onMounted(()=>{t.initialDate&&(t.range&&t.initialDate.start&&t.initialDate.end?l.value={start:new Date(t.initialDate.start),end:new Date(t.initialDate.end)}:t.initialDate.start&&(l.value={start:new Date(t.initialDate.start)})),t.range?(p.value.start=p.value.start??new Date().getHours(),p.value.end=p.value.end??new Date().getHours(),k.value.start=k.value.start??new Date().getMinutes(),k.value.end=k.value.end??new Date().getMinutes()):(p.value=p.value??new Date().getHours(),k.value=k.value??new Date().getMinutes())}),t.popup&&e.onMounted(()=>document.addEventListener("click",Y)),e.onUnmounted(()=>document.removeEventListener("click",Y)),(c,i)=>(e.openBlock(),e.createElementBlock("div",{class:"inline-block relative w-full lg:w-[360px]",ref_key:"pickerContainer",ref:C},[e.createElementVNode("div",{class:"flex items-center gap-2 cursor-pointer",onClick:sn},[s.popup?e.renderSlot(c.$slots,"default",{key:0},()=>[e.createElementVNode("input",{type:"text",class:"input-bordered w-full cursor-pointer input",placeholder:s.placeholder,value:rn.value,readonly:"",id:D.value},null,8,Ze),e.createElementVNode("button",Qe,[e.createVNode(e.unref(se))])],!0):e.createCommentVNode("",!0)]),a.value||!s.popup?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["z-50 lg:bg-base-100 md:mt-2 md:p-4 px-4 rounded-md w-full",[{absolute:s.popup}]]),id:B.value},[m.value?(e.openBlock(),e.createElementBlock("div",et,[e.createElementVNode("button",{class:"hidden md:block btn-outline btn btn-primary md:btn-sm",onClick:hn},i[11]||(i[11]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1)])),e.withDirectives(e.createElementVNode("select",{class:"border-none w-fit select","onUpdate:modelValue":i[0]||(i[0]=r=>g.value=r),onChange:S},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(I,(r,$)=>e.createElementVNode("option",{key:$,value:r},e.toDisplayString(r),9,tt)),64))],544),[[e.vModelSelect,g.value]]),e.withDirectives(e.createElementVNode("select",{class:"border-none w-24 select","onUpdate:modelValue":i[1]||(i[1]=r=>f.value=r),onChange:S},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.value,r=>(e.openBlock(),e.createElementBlock("option",{key:r,value:r},e.toDisplayString(r),9,nt))),128))],544),[[e.vModelSelect,f.value]]),e.createElementVNode("button",{class:"hidden md:block btn-outline btn btn-primary md:btn-sm",onClick:bn},i[12]||(i[12]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"})],-1)]))])):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("div",ot,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(w,r=>e.createElementVNode("div",{key:r,class:"text-center"},e.toDisplayString(r),1)),64)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.value,r=>(e.openBlock(),e.createElementBlock("div",{key:r,class:"text-center"}))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,r=>(e.openBlock(),e.createElementBlock("div",{key:r,class:e.normalizeClass(["hover:bg-primary-10 py-1 rounded-full text-center cursor-pointer",{"bg-primary text-primary-content":pn(r),today:fn(r),"range-start bg-primary text-primary-content":un(r),"range-end bg-primary text-primary-content":gn(r),"in-range bg-primary/20 hover:bg-primary/10":kn(r)}]),onClick:$=>mn(r)},e.toDisplayString(r.getDate()),11,lt))),128))])):e.createCommentVNode("",!0),u.value?(e.openBlock(),e.createElementBlock("div",at,[t.range?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("h3",rt,"Select Time")),t.range?(e.openBlock(),e.createElementBlock("div",mt,[e.createElementVNode("div",null,[i[13]||(i[13]=e.createElementVNode("p",{class:"font-bold"},"Start Time",-1)),x.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,type:"time",class:"input-bordered w-full input","onUpdate:modelValue":i[5]||(i[5]=r=>d.value.start=r),onChange:S},null,544)),[[e.vModelText,d.value.start]]):(e.openBlock(),e.createElementBlock("div",pt,[e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[6]||(i[6]=r=>p.value.start=r),onChange:S},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(N),r=>(e.openBlock(),e.createElementBlock("option",{key:r,value:r},e.toDisplayString(r.toString().padStart(2,"0")),9,ft))),128))],544),[[e.vModelSelect,p.value.start,void 0,{number:!0}]]),e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[7]||(i[7]=r=>k.value.start=r),onChange:S},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(z),r=>(e.openBlock(),e.createElementBlock("option",{key:r,value:r},e.toDisplayString(r.toString().padStart(2,"0")),9,ut))),128))],544),[[e.vModelSelect,k.value.start,void 0,{number:!0}]])]))]),e.createElementVNode("div",null,[i[14]||(i[14]=e.createElementVNode("p",{class:"font-bold"},"End Time",-1)),x.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,type:"time",class:"input-bordered w-full input","onUpdate:modelValue":i[8]||(i[8]=r=>d.value.end=r),onChange:S},null,544)),[[e.vModelText,d.value.end]]):(e.openBlock(),e.createElementBlock("div",gt,[e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[9]||(i[9]=r=>p.value.end=r),onChange:S},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(N),r=>(e.openBlock(),e.createElementBlock("option",{key:r,value:r},e.toDisplayString(r.toString().padStart(2,"0")),9,kt))),128))],544),[[e.vModelSelect,p.value.end,void 0,{number:!0}]]),e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[10]||(i[10]=r=>k.value.end=r),onChange:S},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(z),r=>(e.openBlock(),e.createElementBlock("option",{key:r,value:r},e.toDisplayString(r.toString().padStart(2,"0")),9,ht))),128))],544),[[e.vModelSelect,k.value.end,void 0,{number:!0}]])]))])])):(e.openBlock(),e.createElementBlock("div",st,[x.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,type:"time",class:"input-bordered w-full input","onUpdate:modelValue":i[2]||(i[2]=r=>d.value=r),onChange:S},null,544)),[[e.vModelText,d.value]]):(e.openBlock(),e.createElementBlock("div",ct,[e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[3]||(i[3]=r=>p.value=r),onChange:S},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(N),r=>(e.openBlock(),e.createElementBlock("option",{key:r,value:r},e.toDisplayString(r.toString().padStart(2,"0")),9,it))),128))],544),[[e.vModelSelect,p.value,void 0,{number:!0}]]),e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[4]||(i[4]=r=>k.value=r),onChange:S},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(z),r=>(e.openBlock(),e.createElementBlock("option",{key:r,value:r},e.toDisplayString(r.toString().padStart(2,"0")),9,dt))),128))],544),[[e.vModelSelect,k.value,void 0,{number:!0}]])]))]))])):e.createCommentVNode("",!0),e.createElementVNode("div",bt,[e.createElementVNode("button",{class:e.normalizeClass(["btn btn-secondary",s.popup?"w-fit":"w-full"]),onClick:dn},"Clear",2),s.popup?(e.openBlock(),e.createElementBlock("button",{key:0,class:"btn btn-primary btn-wide",onClick:H},"Close")):e.createCommentVNode("",!0)])],10,ve)):e.createCommentVNode("",!0)],512))}},[["__scopeId","data-v-488ecabe"]]),yt=Object.freeze(Object.defineProperty({__proto__:null,default:W},Symbol.toStringTag,{value:"Module"})),wt=["value","checked","onChange","disabled"],Bt=e.defineComponent({__name:"rating",props:{initialRating:{default:0},numberOfStars:{default:5},halfStars:{type:Boolean,default:!0},isInteractive:{type:Boolean,default:!1},size:{default:"sm"}},setup(s){const o=s,t=e.ref(o.initialRating);e.watch(()=>o.initialRating,a=>{t.value=a});const n=a=>{t.value=a};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["rating",[`rating-${o.size}`,{"rating-half":a.halfStars}]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.numberOfStars*(a.halfStars?2:1),d=>(e.openBlock(),e.createElementBlock("input",{key:d,type:"radio",value:a.halfStars?d*.5:d,checked:t.value===(a.halfStars?d*.5:d),onChange:g=>a.isInteractive?n(a.halfStars?d*.5:d):null,class:e.normalizeClass(["mask mask-star",{"bg-yellow-400":t.value>=(a.halfStars?d*.5:d),"mask-half-1":a.halfStars&&d%2!==0,"mask-half-2":a.halfStars&&d%2===0,"cursor-pointer":a.isInteractive,"cursor-default":!a.isInteractive}]),disabled:!a.isInteractive},null,42,wt))),128))],2))}}),Et={class:"badge"},St=["onClick"],Vt={class:"opacity-75"},_t=["placeholder"],Ct=e.defineComponent({__name:"taginput",props:{modelValue:{},maxTagAmount:{},placeholder:{},class:{}},emits:["update:modelValue"],setup(s,{emit:o}){const t=s,n=o,a=e.ref([...t.modelValue]),l=t.maxTagAmount===void 0?-1:t.maxTagAmount,d=e.ref(null),g=e.ref(""),f=e.computed(()=>l<0||a.value.length<l),p=()=>{const B=g.value.trim();B&&!a.value.includes(B)&&(a.value.push(B),n("update:modelValue",a.value),g.value="")},k=B=>{a.value=a.value.filter(m=>m!==B),n("update:modelValue",a.value)},C=()=>{g.value===""&&(a.value.pop(),n("update:modelValue",a.value))},D=B=>{B.key==="Enter"?p():B.key==="Backspace"&&g.value===""&&C()};return e.watch(()=>t.modelValue,B=>{a.value=[...B]}),(B,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex flex-wrap gap-2 bg-base-100 shadow px-4 py-6 border border-base-content/20 rounded",B.$props.class])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,u=>e.renderSlot(B.$slots,"tag",{key:u,tag:u},()=>[e.createElementVNode("div",Et,[e.createElementVNode("button",{class:"!px-1 !py-0 h-fit font-bold cursor-pointer",onClick:b=>k(u),"aria-label":"Remove tag"},"X",8,St),e.createElementVNode("span",Vt,e.toDisplayString(u),1)])])),128)),e.renderSlot(B.$slots,"input",{showInput:f.value},()=>[f.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,ref_key:"inputRef",ref:d,"onUpdate:modelValue":m[0]||(m[0]=u=>g.value=u),type:"text",placeholder:B.placeholder||"Type here",class:"h-full input input-ghost",onKeydown:D,"aria-label":"Add tags"},null,40,_t)),[[e.vModelText,g.value]]):e.createCommentVNode("",!0)])],2))}}),$t=e.defineComponent({__name:"loader",props:{loading:{type:Boolean,default:!0},size:{default:"md"},type:{default:"spinner"},color:{default:"primary"}},setup(s){const o=s,t=e.ref(o.loading);return e.watch(()=>o.loading,n=>{t.value=n}),(n,a)=>t.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["loading",[{"loading-xs":n.size==="xs"},{"loading-sm":n.size==="sm"},{"loading-md":n.size==="md"},{"loading-lg":n.size==="lg"},{"loading-xl":n.size==="xl"},{"loading-spinner":n.type==="spinner"},{"loading-dots":n.type==="dots"},{"loading-ring":n.type==="ring"},{"loading-balls":n.type==="balls"},{"loading-bars":n.type==="bars"},{"loading-infinity":n.type==="infinity"},{"text-primary":n.color==="primary"},{"text-secondary":n.color==="secondary"},{"text-accent":n.color==="accent"},{"text-neutral":n.color==="neutral"},{"text-info":n.color==="info"},{"text-success":n.color==="success"},{"text-warning":n.color==="warning"},{"text-error":n.color==="error"}]])},null,2)):e.createCommentVNode("",!0)}}),Nt={class:"footer sm:footer-horizontal container"},Dt={class:"footer-title"},xt=["href"],Mt={key:0,class:"sm:hidden w-full"},Tt={class:"border-b-2 border-base-100 last:border-b-0 w-full"},zt={tabindex:"0",class:"collapse collapse-plus w-full"},It={class:"collapse-title font-bold text-lg collapsible-footer-title"},Lt={class:"collapse-content flex w-full text-sm"},Ft={class:"flex flex-col gap-2.5"},Pt={class:"w-full"},Ot=["href"],At={class:"w-full"},Ut=e.defineComponent({__name:"footer",props:{items:{},background:{},color:{},collapseOnMobile:{type:Boolean,default:!1}},setup(s){const o=s;return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["mx-auto md:px-10 py-10 text-base-content",[t.background??"bg-base-200",t.color??"text-base-content"]])},[e.createElementVNode("footer",Nt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,a=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass([{"hidden sm:grid":t.collapseOnMobile}])},[e.createElementVNode("h6",Dt,e.toDisplayString(a.title),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.items,l=>(e.openBlock(),e.createElementBlock("a",{class:"link link-hover",href:l.link},e.toDisplayString(l.text),9,xt))),256))],2))),256)),t.collapseOnMobile?(e.openBlock(),e.createElementBlock("nav",Mt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,a=>(e.openBlock(),e.createElementBlock("ul",Tt,[e.createElementVNode("div",zt,[e.createElementVNode("div",It,e.toDisplayString(a.title),1),e.createElementVNode("div",Lt,[e.createElementVNode("ul",Ft,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.items,l=>(e.openBlock(),e.createElementBlock("li",Pt,[e.createElementVNode("a",{class:"w-full font-medium link link-hover",href:l.link},e.toDisplayString(l.text),9,Ot)]))),256))])])])]))),256))])):e.createCommentVNode("",!0),e.createElementVNode("aside",At,[e.renderSlot(t.$slots,"default")])])],2))}}),jt={},Rt={class:"min-h-40 container hero"},qt={class:"px-0! text-center hero-content"},Wt={class:"mt-9 text-4xl"};function Ht(s,o){return e.openBlock(),e.createElementBlock("div",Rt,[e.createElementVNode("div",qt,[e.createElementVNode("div",null,[e.createElementVNode("h1",Wt,[e.renderSlot(s.$slots,"title",{},()=>[o[0]||(o[0]=e.createTextVNode("hero title"))])]),e.createElementVNode("p",null,[e.renderSlot(s.$slots,"description",{class:"py-9"})]),e.renderSlot(s.$slots,"call-to-action-block",{class:"max-w-full"},()=>[o[1]||(o[1]=e.createElementVNode("button",{class:"btn btn-primary"},"Call to action",-1))])])])])}const Yt=T(jt,[["render",Ht]]),Jt={class:"flex flex-row place-content-center gap-4 categories"},Gt=["onClick"],Kt=e.defineComponent({__name:"categoryNavigation",props:{searchOptions:{},currentCategory:{}},emits:["update:currentCategory"],setup(s,{emit:o}){const t=s,n=o;function a(l){n("update:currentCategory",l)}return(l,d)=>(e.openBlock(),e.createElementBlock("div",Jt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.searchOptions,g=>(e.openBlock(),e.createElementBlock("div",{key:g.category},[e.createElementVNode("button",{onClick:f=>a(g.category),class:e.normalizeClass(["truncate btn btn-ghost",{"font-semibold":t.currentCategory===g.category}])},e.toDisplayString(g.category),11,Gt)]))),128))]))}}),Xt={class:"md:flex hidden navbar-start"},Zt={class:"md:flex justify-center items-center hidden navbar-center"},Qt={class:"md:flex hidden navbar-end"},vt={class:"navbar-bottom md:flex hidden"},en=T(e.defineComponent({__name:"navigationBar",props:{isCollapsed:{type:Boolean,default:!0}},setup(s){const o=s;return(t,n)=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass(["place-items-start border-primary bg-base-100 px-5 py-5 border-b-4 transition-all navbar navigationbar",o.isCollapsed?"collapsed":""])},[e.createElementVNode("div",Xt,[e.renderSlot(t.$slots,"start",{},void 0,!0)]),e.createElementVNode("div",Zt,[e.renderSlot(t.$slots,"center",{},void 0,!0)]),e.createElementVNode("div",Qt,[e.renderSlot(t.$slots,"end",{},void 0,!0)]),e.createElementVNode("div",vt,[e.renderSlot(t.$slots,"bottom",{},void 0,!0)])],2))}}),[["__scopeId","data-v-8ddb2b45"]]),tn={key:0,class:"hidden top-4 right-0 absolute md:flex gap-4"},nn=["onClick","aria-selected"],on={key:0,role:"tabpanel",class:"p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full overflow-x-auto tab-content"},ln={class:"p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full"},an=e.defineComponent({__name:"tab",props:{items:{},withControlls:{type:Boolean,default:!1},rotateTabsAfter:{default:0},buttonOnlyMode:{type:Boolean,default:!1}},emits:["tab-changed"],setup(s,{emit:o}){const t=s,n=e.ref(t.items[0]),a=o;function l(f){n.value=f,a("tab-changed",f)}function d(){const p=(t.items.indexOf(n.value)+1)%t.items.length;l(t.items[p])}function g(){const p=(t.items.indexOf(n.value)-1+t.items.length)%t.items.length;l(t.items[p])}return e.onMounted(()=>{t.items&&l(t.items[0])}),e.onUnmounted(()=>{t.rotateTabsAfter&&t.rotateTabsAfter>0&&setInterval(()=>{d()},t.rotateTabsAfter*1e3)}),(f,p)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{role:"tablist",class:e.normalizeClass(["relative tabs-bordered w-full tabs tabs-lg",{"flex-nowrap overflow-x-auto":f.buttonOnlyMode}])},[f.withControlls?(e.openBlock(),e.createElementBlock("div",tn,[e.createElementVNode("button",{onClick:p[0]||(p[0]=k=>g()),class:"cursor-pointer"},"Previous"),e.createElementVNode("button",{onClick:p[1]||(p[1]=k=>d()),class:"text-primary cursor-pointer"},"Next")])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.items,k=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("a",{type:"button",role:"tab",class:e.normalizeClass(["min-w-max tab",k===n.value?"bg-primary text-base-100":""]),onClick:C=>l(k),"aria-selected":n.value==k},e.toDisplayString(k),11,nn),f.buttonOnlyMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",on,[e.renderSlot(f.$slots,`${k}-tab`)]))],64))),256))],2),e.createElementVNode("div",ln,[e.renderSlot(f.$slots,"default")])],64))}});y.Accordion=be,y.AdvancedSearch=Xe,y.Avatar=Be,y.Badge=Ee,y.ButtonComponent=K,y.Card=xe,y.Carousel=Fe,y.CarouselItem=Pe,y.CategoryNavigation=Kt,y.DatetimePicker=W,y.Dropdown=Q,y.Footer=Ut,y.Hero=Yt,y.Loader=$t,y.Modal=te,y.NavigationBar=en,y.Rating=Bt,y.Swap=le,y.Tab=an,y.TagInput=Ct,y.ThemeController=fe,Object.defineProperty(y,Symbol.toStringTag,{value:"Module"})});
|
|
41
|
+
*/const ie=P("SunIcon",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),de=(s,o)=>{const t=e.ref(null);return e.onMounted(()=>{if(typeof window<"u"){const n=window.localStorage.getItem(s);t.value=n?JSON.parse(n):o}}),e.watch(t,n=>{typeof window<"u"&&window.localStorage.setItem(s,JSON.stringify(n))}),t},me={class:"swap-rotate swap"},pe=["true-value","false-value"],fe=e.defineComponent({__name:"theme-controller",props:{lightTheme:{default:"light"},darkTheme:{default:"dark"}},setup(s){const o=s,t=de("theme",o.lightTheme);function n(a){typeof window<"u"&&window.document&&document.documentElement.setAttribute("data-theme",a)}return e.onMounted(()=>n(t.value?t.value:"")),e.watch(t,a=>{n(a)}),(a,l)=>(e.openBlock(),e.createElementBlock("label",me,[e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:"theme-controller","onUpdate:modelValue":l[0]||(l[0]=d=>e.isRef(t)?t.value=d:null),"true-value":o.lightTheme,"false-value":o.darkTheme},null,8,pe),[[e.vModelCheckbox,e.unref(t)]]),e.createVNode(e.unref(ie),{class:"swap-off fill-current"}),e.createVNode(e.unref(ce),{class:"swap-on fill-current"})]))}}),ue=["name"],ge={class:"collapse-title font-bold text-2xl lg:text-4xl"},ke={class:"collapse-content"},he=["innerHTML"],be=e.defineComponent({__name:"accordion",props:{name:{},items:{},joinItems:{type:Boolean,default:!1},icon:{}},setup(s){const o=s;return(t,n)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["collapse border border-base-300",[t.icon?`collapse-${t.icon}`:"",{"join-item":t.joinItems}]]),key:l},[e.createElementVNode("input",{type:"radio",name:t.name,value:"true"},null,8,ue),e.createElementVNode("div",ge,e.toDisplayString(a.title),1),e.createElementVNode("div",ke,[e.createElementVNode("span",{innerHTML:a.content},null,8,he)])],2))),128))}}),ye=["src"],we={class:"text-xl"},Be=e.defineComponent({__name:"avatar",props:{image:{},onlineStatus:{default:"none"},initials:{},fullyRounded:{type:Boolean,default:!1}},setup(s){const o=s,t=e.ref(o.onlineStatus);return e.watch(()=>o.onlineStatus,n=>{n&&(t.value=n)}),(n,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["avatar",[{"avatar-online":t.value==="online"},{"avatar-offline":t.value==="offline"}]])},[n.image?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["rounded",[{"rounded-full":n.fullyRounded},{rounded:!n.fullyRounded}]])},[e.createElementVNode("img",{src:n.image,class:"w-full h-full"},null,8,ye)],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["flex justify-center bg-neutral p-[25%] rounded w-16 text-neutral-content text-center",[{"rounded-full":n.fullyRounded},{rounded:!n.fullyRounded}]])},[e.createElementVNode("p",we,e.toDisplayString(n.initials),1)],2))],2))}}),Ee=e.defineComponent({__name:"badge",props:{color:{default:"neutral"},outline:{type:Boolean,default:!1},size:{default:"medium"}},setup(s){const o=s,t={"extra small":"badge-xs",small:"badge-sm",medium:"badge-md",large:"badge-lg"},n={neutral:"badge-neutral",primary:"badge-primary",secondary:"badge-secondary",accent:"badge-accent",ghost:"badge-ghost",info:"badge-info",success:"badge-success",warning:"badge-warning",error:"badge-error"};return(a,l)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["badge",t[o.size],n[o.color],{"badge-outline":o.outline}])},[e.renderSlot(a.$slots,"default")],2))}}),Se=["src","alt"],Ve={key:1,class:"w-full h-32 skeleton"},_e={key:0,class:"card-body"},Ce={key:0,class:"group-hover:text-primary text-lg text-left cursor-pointer card-title"},$e={key:1,class:"text-left"},Ne={class:"flex-col flex-nowrap mt-auto card-actions"},De={key:1,class:"card-body"},xe=e.defineComponent({__name:"card",props:{imgUrl:{default:""},alt:{default:"A beautiful picture that says something about this card"},title:{default:""},description:{default:""},outlined:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},class:{default:""},background:{default:"bg-base-100"},color:{default:""}},setup(s){const o=s,t=e.ref(o.outlined);return e.watch(()=>o.outlined,n=>{t.value=n}),(n,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["group bg-base-100 shadow-xl rounded-sm min-w-64 max-w-full h-full card card-compact",[{"border-4 border-primary":t.value},n.color??"",n.background]])},[e.createElementVNode("figure",null,[n.imgUrl||n.imgUrl&&!n.loading?(e.openBlock(),e.createElementBlock("img",{key:0,src:n.imgUrl,alt:n.alt,class:e.normalizeClass(["rounded-sm w-full h-44 object-cover",{hidden:n.loading}])},null,10,Se)):e.createCommentVNode("",!0),n.loading&&n.imgUrl?(e.openBlock(),e.createElementBlock("div",Ve)):e.createCommentVNode("",!0)]),n.loading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",_e,[n.title?(e.openBlock(),e.createElementBlock("h2",Ce,e.toDisplayString(n.title),1)):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"details"),n.description?(e.openBlock(),e.createElementBlock("p",$e,e.toDisplayString(n.description),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Ne,[e.renderSlot(n.$slots,"actions")])])),n.loading?(e.openBlock(),e.createElementBlock("div",De,a[0]||(a[0]=[e.createElementVNode("div",{class:"flex flex-col gap-4 w-52"},[e.createElementVNode("div",{class:"w-28 h-4 skeleton"}),e.createElementVNode("div",{class:"w-full h-4 skeleton"}),e.createElementVNode("div",{class:"w-full h-4 skeleton"})],-1)]))):e.createCommentVNode("",!0)],2))}}),q=Symbol("CarouselItemStyle"),Me={class:"relative"},Te={class:"top-1/2 right-5 left-5 z-10 absolute flex justify-between -translate-y-1/2 transform"},ze={key:0,class:"bottom-5 z-10 absolute flex justify-center gap-2 py-2 w-full"},Ie=["onClick","aria-label"],Le=e.defineComponent({__name:"carousel",props:{showIndicators:{type:Boolean,default:!0},initialSlide:{type:Number,default:0},slidesPerView:{type:Number,default:1,validator:s=>s>=1},gap:{type:Number,default:0,validator:s=>s>=0},slideDuration:{type:Number,default:300,validator:s=>s>=0}},setup(s){const o=s,t=e.ref(o.initialSlide),n=e.ref(null),a=e.ref(!1),l=e.ref(0),d=e.computed(()=>({width:`calc((100% - ${o.slidesPerView>1?(o.slidesPerView-1)*o.gap:0}px) / ${o.slidesPerView})`}));e.provide(q,d);const g=()=>{if(!n.value||o.slidesPerView<=0)return 0;const m=n.value.offsetWidth,u=o.slidesPerView>1?(o.slidesPerView-1)*o.gap:0;return(m-u)/o.slidesPerView},f=()=>{n.value?l.value=n.value.children.length:l.value=0},p=async m=>{if(!n.value||o.slidesPerView<=0||a.value||(f(),l.value===0))return;const u=(m%l.value+l.value)%l.value,b=n.value,w=g();if(w<=0)return;const h=w+o.gap,E=u*h,V=b.scrollWidth-b.offsetWidth,N=Math.max(0,Math.min(E,V+.5));a.value=!0,b.style.scrollBehavior="auto";const z=b.scrollLeft,x=N-z;if(Math.abs(x)<1){a.value=!1,t.value=u;return}const I=performance.now(),O=U=>{const M=U-I,_=Math.min(1,M/o.slideDuration),j=_<.5?4*_*_*_:1-Math.pow(-2*_+2,3)/2;b.scrollLeft=z+x*j,_<1?requestAnimationFrame(O):(b.scrollLeft=N,t.value=u,a.value=!1)};requestAnimationFrame(O)},k=()=>{p(t.value+1)},C=()=>{p(t.value-1)},D=m=>{p(m)},B=()=>{if(!n.value||o.slidesPerView<=0||(f(),l.value===0))return;const m=n.value,u=g();if(u<=0)return;const b=Math.max(0,l.value-o.slidesPerView),w=Math.min(Math.max(0,o.initialSlide),b),h=u+o.gap,E=w*h,V=m.scrollWidth-m.offsetWidth,N=Math.max(0,Math.min(E,V+.5));m.scrollTo({left:N,behavior:"auto"}),t.value=w};return e.onMounted(()=>{requestAnimationFrame(()=>{requestAnimationFrame(B)}),f()}),e.watch(()=>o.initialSlide,m=>{requestAnimationFrame(()=>p(m))}),e.watch(()=>[o.slidesPerView,o.gap],()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{if(f(),l.value===0)return;const m=Math.max(0,l.value-o.slidesPerView),u=Math.min(t.value,m),b=o.slideDuration;o.slideDuration=0,p(u),o.slideDuration=b})})}),(m,u)=>(e.openBlock(),e.createElementBlock("div",Me,[e.createElementVNode("div",{ref_key:"carouselContainer",ref:n,class:"rounded w-full overflow-x-scroll scroll-smooth carousel carousel-horizontal",style:e.normalizeStyle({gap:`${s.gap}px`})},[e.renderSlot(m.$slots,"default",{},void 0,!0)],4),e.createElementVNode("div",Te,[e.createElementVNode("div",{onClick:C,role:"button","aria-label":"Previous Slide"},[e.renderSlot(m.$slots,"prevButton",{},()=>[u[0]||(u[0]=e.createElementVNode("button",{class:"btn btn-circle",tabindex:"-1"},"❮",-1))],!0)]),e.createElementVNode("div",{onClick:k,role:"button","aria-label":"Next Slide"},[e.renderSlot(m.$slots,"nextButton",{},()=>[u[1]||(u[1]=e.createElementVNode("button",{class:"btn btn-circle",tabindex:"-1"},"❯",-1))],!0)])]),s.showIndicators?(e.openBlock(),e.createElementBlock("div",ze,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(b,w)=>(e.openBlock(),e.createElementBlock("button",{key:`dot-${w}`,onClick:h=>D(w),class:e.normalizeClass(["btn btn-circle btn-xs",{"btn-active":w===t.value}]),"aria-label":`Go to slide ${w+1}`},null,10,Ie))),128))])):e.createCommentVNode("",!0)]))}}),T=(s,o)=>{const t=s.__vccOpts||s;for(const[n,a]of o)t[n]=a;return t},Fe=T(Le,[["__scopeId","data-v-f820adac"]]),Pe=T(e.defineComponent({__name:"carouselItem",setup(s){const o=e.inject(q,e.ref({}));return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:"relative w-full carousel-item",style:e.normalizeStyle(e.unref(o))},[e.renderSlot(t.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-b38df5e3"]]),Oe={class:"flex gap-4 bg-base-100 w-full tabs tabs-boxed"},Ae=["onClick"],Ue={class:"text-sm"},je={class:"md:block hidden opacity-35 text-xs truncate overflow-hidden ..."},Re={class:"hidden"},qe={id:"advancedSearchMobile",class:"modal"},We={class:"modal-box"},He={class:"font-bold text-lg"},Ye=["checked"],Je={class:"flex justify-between items-center pr-4 w-full font-medium text-xl collapse-title"},Ge={class:"text-sm"},Ke={class:"flex place-content-center p-0 collapse-content"},Xe=T(e.defineComponent({__name:"advancedSearch",props:{searchOptions:{},currentCategory:{}},emits:["search","update:search-data"],setup(s,{emit:o}){const t=s,n=o,a=e.ref(null),l={datetime:e.defineAsyncComponent(()=>Promise.resolve().then(()=>yt))},d=e.ref({}),g=e.ref({left:"0px",top:"0px",transform:"translateX(0%)"}),f=e.ref(null);function p(m,u){var b,w,h;if((b=a.value)!=null&&b.name){n("update:search-data",{tab:a.value.name,data:m});return}if(t.searchOptions){let E=(h=(w=t.searchOptions)==null?void 0:w.find(V=>(V==null?void 0:V.category)===t.currentCategory))==null?void 0:h.tabs[u];E!==void 0&&(E.value=m,n("update:search-data",{tab:E==null?void 0:E.name,data:E==null?void 0:E.value}))}}function k(){n("search")}async function C(m){f.value&&!f.value.contains(m.target)&&(await e.nextTick(),a.value=null)}async function D(){if(typeof window<"u"&&window.innerWidth<=768){const m=document.getElementById("advancedSearchMobile");m?m.showModal():console.warn("Modal element not found.")}}async function B(m){var b;a.value=m,await e.nextTick();const u=d.value[m.name];if(u){const w=u.getBoundingClientRect(),h=((b=f.value)==null?void 0:b.getBoundingClientRect())||{left:0,top:0};window.innerWidth>768?g.value={left:`${w.left+w.width/2-h.left}px`,top:`${w.bottom-h.top}px`,transform:"translateX(-50%)"}:g.value={left:"50%",top:`${w.bottom-h.top}px`,transform:"translateX(-50%)"}}else console.error("Tab element not found for:",m.name)}return e.onMounted(()=>{document.addEventListener("click",C)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",C)}),(m,u)=>{var b,w;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{ref_key:"searchContainer",ref:f,class:"w-full"},[e.createElementVNode("div",{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",onClick:D},[e.createElementVNode("div",Oe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((b=t.searchOptions.find(h=>h.category===t.currentCategory))==null?void 0:b.tabs)||[],h=>{var E;return e.openBlock(),e.createElementBlock("button",{key:h.name,onClick:V=>B(h),class:e.normalizeClass([{"tab-active":((E=a.value)==null?void 0:E.name)===h.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"]),ref_for:!0,ref:V=>d.value[h.name]=V},[e.createElementVNode("p",Ue,e.toDisplayString(h.name),1),e.createElementVNode("p",je,e.toDisplayString(h.description),1)],10,Ae)}),128))]),a.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"absolute flex shadow-sm mt-4 w-fit max-w-full transition-all tab-content",style:e.normalizeStyle(g.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l[a.value.type]),e.mergeProps(a.value.props?a.value.props:null,{onUpdated:p}),null,16))],4)):e.createCommentVNode("",!0),e.createElementVNode("button",{title:"search",type:"submit",class:"ml-1 btn btn-primary btn-square",onClick:k},[e.createVNode(e.unref(R),{size:24,color:"white"})])]),e.createElementVNode("div",Re,[e.createElementVNode("button",{title:"search",onClick:u[0]||(u[0]=()=>{})},[e.createVNode(e.unref(R),{size:24,color:"white"})])])],512),e.createElementVNode("dialog",qe,[e.createElementVNode("div",We,[e.renderSlot(m.$slots,"additionalForMobile",{},()=>[e.createElementVNode("h3",He,e.toDisplayString(m.currentCategory),1)],!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((w=t.searchOptions.find(h=>h.category===t.currentCategory))==null?void 0:w.tabs)||[],(h,E)=>(e.openBlock(),e.createElementBlock("div",{class:"bg-base-200 my-4 collapse",key:h.name},[e.createElementVNode("input",{type:"radio",name:"my-accordion-1",checked:E===0},null,8,Ye),e.createElementVNode("div",Je,[e.createTextVNode(e.toDisplayString(h.name)+" ",1),e.createElementVNode("p",Ge,e.toDisplayString(h.description),1)]),e.createElementVNode("div",Ke,[u[1]||(u[1]=e.createElementVNode("br",null,null,-1)),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l[h.type]),e.mergeProps({ref_for:!0},h.props||{},{onUpdated:V=>p(V,E)}),null,16,["onUpdated"]))])]))),128)),e.createElementVNode("div",{class:"modal-action"},[e.createElementVNode("form",{method:"dialog"},[e.createElementVNode("button",{class:"btn btn-primary",onClick:k},"Close and Search")])])])])],64)}}}),[["__scopeId","data-v-08fa37eb"]]),Ze=["placeholder","value","id"],Qe={class:"btn btn-ghost"},ve=["id"],et={key:0,class:"flex justify-between items-center place-content-center mb-4"},tt=["value"],nt=["value"],ot={key:1,class:"gap-2 grid grid-cols-7"},lt=["onClick"],at={key:2,class:"mt-4 lg:w-80"},rt={key:0,class:"mb-2 font-bold text-lg"},st={key:1},ct={key:1,class:"flex gap-4"},it=["value"],dt=["value"],mt={key:2,class:"flex flex-col gap-4"},pt={key:1,class:"flex gap-2"},ft=["value"],ut=["value"],gt={key:1,class:"flex gap-2"},kt=["value"],ht=["value"],bt={class:"flex gap-2 mt-4"},W=T({__name:"datetimePicker",props:{mode:{type:String,default:"datetime",validator:s=>["datetime","date","time"].includes(s)},range:{type:Boolean,default:!1},placeholder:{type:String,default:"Select date and time"},popup:{type:Boolean,default:!1},id:{type:String,default:"datetimepicker"},initialDate:{type:Object,default:()=>null}},emits:["updated"],setup(s,{emit:o}){const t=s;e.watch(()=>t.range,c=>{c?(l.value={start:null,end:null},d.value={start:null,end:null}):(l.value=null,d.value=null)});const n=o,a=e.ref(!1),l=e.ref(t.range?{start:null,end:null}:null),d=e.ref(t.range?{start:null,end:null}:null),g=e.ref(new Date().toLocaleString("default",{month:"long"})),f=e.ref(new Date().getFullYear()),p=e.ref(t.range?{start:0,end:0}:0),k=e.ref(t.range?{start:0,end:0}:0),C=e.ref(null),D=e.computed(()=>`${t.id}-input`),B=e.computed(()=>`${t.id}-popup`),m=e.computed(()=>t.mode==="date"||t.mode==="datetime"),u=e.computed(()=>t.mode==="time"||t.mode==="datetime");e.computed(()=>new Date(f.value,b.value));const b=e.computed(()=>I.indexOf(g.value)),w=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],h=e.computed(()=>new Date(f.value,b.value).getDay()),E=e.computed(()=>{const c=new Date(f.value,b.value+1,0).getDate();return Array.from({length:c},(i,r)=>new Date(f.value,b.value,r+1))}),V=e.computed(()=>Array.from({length:h.value},(c,i)=>i)),N=Array.from({length:24},(c,i)=>i),z=Array.from({length:60},(c,i)=>i),x=e.computed(()=>typeof navigator<"u"&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)),I=["January","February","March","April","May","June","July","August","September","October","November","December"],O=e.computed(()=>{const c=new Date().getFullYear();return Array.from({length:100},(i,r)=>c-50+r)}),U=e.computed(()=>{if(!m.value||!l.value)return"";if(t.range&&l.value.start&&l.value.end){const c=l.value.start.toLocaleDateString("en-US"),i=l.value.end.toLocaleDateString("en-US");return`${c} - ${i}`}return!t.range&&l.value?l.value.toLocaleDateString("en-US"):""}),M=c=>c instanceof Date?c:new Date(c),_=c=>c instanceof Date&&!isNaN(c),j=e.computed(()=>{if(!u.value)return"";const c=i=>{var A,L,J;const r=((A=p.value)==null?void 0:A[i])??p.value,$=((L=k.value)==null?void 0:L[i])??k.value;return x.value?((J=d.value)==null?void 0:J[i])??d.value:`${r.toString().padStart(2,"0")}:${$.toString().padStart(2,"0")}`};return t.range?`${c("start")} - ${c("end")}`:c()}),rn=e.computed(()=>{const c=U.value,i=j.value;return`${c} ${i}`.trim()}),sn=()=>a.value=!a.value,H=()=>{S(),cn()},cn=()=>a.value=!1,dn=()=>{l.value=t.range?{start:null,end:null}:null,d.value=t.range?{start:null,end:null}:null,S()},mn=c=>{t.range?l.value.start&&l.value.end?l.value={start:c,end:null}:l.value.start?l.value.end=c:l.value.start=c:l.value=c,S()},pn=c=>(c=M(c),t.range?l.value.start&&_(l.value.start)&&c.getTime()===l.value.start.getTime()||l.value.end&&_(l.value.end)&&c.getTime()===l.value.end.getTime():_(l.value)&&c.getTime()===l.value.getTime()),fn=c=>{c=M(c);const i=new Date;return c.getDate()===i.getDate()&&c.getMonth()===i.getMonth()&&c.getFullYear()===i.getFullYear()},un=c=>(c=M(c),t.range&&_(l.value.start)&&c.getTime()===l.value.start.getTime()),gn=c=>(c=M(c),t.range&&_(l.value.end)&&c.getTime()===l.value.end.getTime()),kn=c=>{if(c=M(c),t.range&&_(l.value.start)&&_(l.value.end)){const i=l.value.start.getTime(),r=l.value.end.getTime(),$=c.getTime();return $>i&&$<r}return!1},hn=()=>{let c=b.value-1;c<0&&(c=11,f.value--),g.value=I[c],S()},bn=()=>{let c=b.value+1;c>11&&(c=0,f.value++),g.value=I[c],S()},Y=c=>{C.value&&!C.value.contains(c.target)&&a.value==!0&&H()},S=()=>{let c={};const i=(r,$,A)=>{r instanceof Date&&!isNaN(r)||(r=new Date);const L=new Date(r);return L.setUTCHours($,A,0,0),L.toISOString()};t.range?(c.from=i(l.value.start,p.value.start,k.value.start),c.to=i(l.value.end,p.value.end,k.value.end)):c=i(l.value,p.value,k.value),n("updated",c)};return e.onMounted(()=>{t.initialDate&&(t.range&&t.initialDate.start&&t.initialDate.end?l.value={start:new Date(t.initialDate.start),end:new Date(t.initialDate.end)}:t.initialDate.start&&(l.value={start:new Date(t.initialDate.start)})),t.range?(p.value.start=p.value.start??new Date().getHours(),p.value.end=p.value.end??new Date().getHours(),k.value.start=k.value.start??new Date().getMinutes(),k.value.end=k.value.end??new Date().getMinutes()):(p.value=p.value??new Date().getHours(),k.value=k.value??new Date().getMinutes())}),t.popup&&e.onMounted(()=>document.addEventListener("click",Y)),e.onUnmounted(()=>document.removeEventListener("click",Y)),(c,i)=>(e.openBlock(),e.createElementBlock("div",{class:"inline-block relative w-full lg:w-[360px]",ref_key:"pickerContainer",ref:C},[e.createElementVNode("div",{class:"flex items-center gap-2 cursor-pointer",onClick:sn},[s.popup?e.renderSlot(c.$slots,"default",{key:0},()=>[e.createElementVNode("input",{type:"text",class:"input-bordered w-full cursor-pointer input",placeholder:s.placeholder,value:rn.value,readonly:"",id:D.value},null,8,Ze),e.createElementVNode("button",Qe,[e.createVNode(e.unref(se))])],!0):e.createCommentVNode("",!0)]),a.value||!s.popup?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["z-50 lg:bg-base-100 md:mt-2 md:p-4 px-4 rounded-md w-full",[{absolute:s.popup}]]),id:B.value},[m.value?(e.openBlock(),e.createElementBlock("div",et,[e.createElementVNode("button",{class:"hidden md:block btn-outline btn btn-primary md:btn-sm",onClick:hn},i[11]||(i[11]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1)])),e.withDirectives(e.createElementVNode("select",{class:"border-none w-fit select","onUpdate:modelValue":i[0]||(i[0]=r=>g.value=r),onChange:S},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(I,(r,$)=>e.createElementVNode("option",{key:$,value:r},e.toDisplayString(r),9,tt)),64))],544),[[e.vModelSelect,g.value]]),e.withDirectives(e.createElementVNode("select",{class:"border-none w-24 select","onUpdate:modelValue":i[1]||(i[1]=r=>f.value=r),onChange:S},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.value,r=>(e.openBlock(),e.createElementBlock("option",{key:r,value:r},e.toDisplayString(r),9,nt))),128))],544),[[e.vModelSelect,f.value]]),e.createElementVNode("button",{class:"hidden md:block btn-outline btn btn-primary md:btn-sm",onClick:bn},i[12]||(i[12]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"})],-1)]))])):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("div",ot,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(w,r=>e.createElementVNode("div",{key:r,class:"text-center"},e.toDisplayString(r),1)),64)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.value,r=>(e.openBlock(),e.createElementBlock("div",{key:r,class:"text-center"}))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,r=>(e.openBlock(),e.createElementBlock("div",{key:r,class:e.normalizeClass(["hover:bg-primary-10 py-1 rounded-full text-center cursor-pointer",{"bg-primary text-primary-content":pn(r),today:fn(r),"range-start bg-primary text-primary-content":un(r),"range-end bg-primary text-primary-content":gn(r),"in-range bg-primary/20 hover:bg-primary/10":kn(r)}]),onClick:$=>mn(r)},e.toDisplayString(r.getDate()),11,lt))),128))])):e.createCommentVNode("",!0),u.value?(e.openBlock(),e.createElementBlock("div",at,[t.range?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("h3",rt,"Select Time")),t.range?(e.openBlock(),e.createElementBlock("div",mt,[e.createElementVNode("div",null,[i[13]||(i[13]=e.createElementVNode("p",{class:"font-bold"},"Start Time",-1)),x.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,type:"time",class:"input-bordered w-full input","onUpdate:modelValue":i[5]||(i[5]=r=>d.value.start=r),onChange:S},null,544)),[[e.vModelText,d.value.start]]):(e.openBlock(),e.createElementBlock("div",pt,[e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[6]||(i[6]=r=>p.value.start=r),onChange:S},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(N),r=>(e.openBlock(),e.createElementBlock("option",{key:r,value:r},e.toDisplayString(r.toString().padStart(2,"0")),9,ft))),128))],544),[[e.vModelSelect,p.value.start,void 0,{number:!0}]]),e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[7]||(i[7]=r=>k.value.start=r),onChange:S},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(z),r=>(e.openBlock(),e.createElementBlock("option",{key:r,value:r},e.toDisplayString(r.toString().padStart(2,"0")),9,ut))),128))],544),[[e.vModelSelect,k.value.start,void 0,{number:!0}]])]))]),e.createElementVNode("div",null,[i[14]||(i[14]=e.createElementVNode("p",{class:"font-bold"},"End Time",-1)),x.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,type:"time",class:"input-bordered w-full input","onUpdate:modelValue":i[8]||(i[8]=r=>d.value.end=r),onChange:S},null,544)),[[e.vModelText,d.value.end]]):(e.openBlock(),e.createElementBlock("div",gt,[e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[9]||(i[9]=r=>p.value.end=r),onChange:S},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(N),r=>(e.openBlock(),e.createElementBlock("option",{key:r,value:r},e.toDisplayString(r.toString().padStart(2,"0")),9,kt))),128))],544),[[e.vModelSelect,p.value.end,void 0,{number:!0}]]),e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[10]||(i[10]=r=>k.value.end=r),onChange:S},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(z),r=>(e.openBlock(),e.createElementBlock("option",{key:r,value:r},e.toDisplayString(r.toString().padStart(2,"0")),9,ht))),128))],544),[[e.vModelSelect,k.value.end,void 0,{number:!0}]])]))])])):(e.openBlock(),e.createElementBlock("div",st,[x.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,type:"time",class:"input-bordered w-full input","onUpdate:modelValue":i[2]||(i[2]=r=>d.value=r),onChange:S},null,544)),[[e.vModelText,d.value]]):(e.openBlock(),e.createElementBlock("div",ct,[e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[3]||(i[3]=r=>p.value=r),onChange:S},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(N),r=>(e.openBlock(),e.createElementBlock("option",{key:r,value:r},e.toDisplayString(r.toString().padStart(2,"0")),9,it))),128))],544),[[e.vModelSelect,p.value,void 0,{number:!0}]]),e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[4]||(i[4]=r=>k.value=r),onChange:S},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(z),r=>(e.openBlock(),e.createElementBlock("option",{key:r,value:r},e.toDisplayString(r.toString().padStart(2,"0")),9,dt))),128))],544),[[e.vModelSelect,k.value,void 0,{number:!0}]])]))]))])):e.createCommentVNode("",!0),e.createElementVNode("div",bt,[e.createElementVNode("button",{class:e.normalizeClass(["btn btn-secondary",s.popup?"w-fit":"w-full"]),onClick:dn},"Clear",2),s.popup?(e.openBlock(),e.createElementBlock("button",{key:0,class:"btn btn-primary btn-wide",onClick:H},"Close")):e.createCommentVNode("",!0)])],10,ve)):e.createCommentVNode("",!0)],512))}},[["__scopeId","data-v-488ecabe"]]),yt=Object.freeze(Object.defineProperty({__proto__:null,default:W},Symbol.toStringTag,{value:"Module"})),wt=["value","checked","onChange","disabled"],Bt=e.defineComponent({__name:"rating",props:{initialRating:{default:0},numberOfStars:{default:5},halfStars:{type:Boolean,default:!0},isInteractive:{type:Boolean,default:!1},size:{default:"sm"}},setup(s){const o=s,t=e.ref(o.initialRating);e.watch(()=>o.initialRating,a=>{t.value=a});const n=a=>{t.value=a};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["rating",[`rating-${o.size}`,{"rating-half":a.halfStars}]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.numberOfStars*(a.halfStars?2:1),d=>(e.openBlock(),e.createElementBlock("input",{key:d,type:"radio",value:a.halfStars?d*.5:d,checked:t.value===(a.halfStars?d*.5:d),onChange:g=>a.isInteractive?n(a.halfStars?d*.5:d):null,class:e.normalizeClass(["mask mask-star",{"bg-yellow-400":t.value>=(a.halfStars?d*.5:d),"mask-half-1":a.halfStars&&d%2!==0,"mask-half-2":a.halfStars&&d%2===0,"cursor-pointer":a.isInteractive,"cursor-default":!a.isInteractive}]),disabled:!a.isInteractive},null,42,wt))),128))],2))}}),Et={class:"badge"},St=["onClick"],Vt={class:"opacity-75"},_t=["placeholder"],Ct=e.defineComponent({__name:"taginput",props:{modelValue:{},maxTagAmount:{},placeholder:{},class:{}},emits:["update:modelValue"],setup(s,{emit:o}){const t=s,n=o,a=e.ref([...t.modelValue]),l=t.maxTagAmount===void 0?-1:t.maxTagAmount,d=e.ref(null),g=e.ref(""),f=e.computed(()=>l<0||a.value.length<l),p=()=>{const B=g.value.trim();B&&!a.value.includes(B)&&(a.value.push(B),n("update:modelValue",a.value),g.value="")},k=B=>{a.value=a.value.filter(m=>m!==B),n("update:modelValue",a.value)},C=()=>{g.value===""&&(a.value.pop(),n("update:modelValue",a.value))},D=B=>{B.key==="Enter"?p():B.key==="Backspace"&&g.value===""&&C()};return e.watch(()=>t.modelValue,B=>{a.value=[...B]}),(B,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex flex-wrap gap-2 bg-base-100 shadow px-4 py-6 border border-base-content/20 rounded",B.$props.class])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,u=>e.renderSlot(B.$slots,"tag",{key:u,tag:u},()=>[e.createElementVNode("div",Et,[e.createElementVNode("button",{class:"!px-1 !py-0 h-fit font-bold cursor-pointer",onClick:b=>k(u),"aria-label":"Remove tag"},"X",8,St),e.createElementVNode("span",Vt,e.toDisplayString(u),1)])])),128)),e.renderSlot(B.$slots,"input",{showInput:f.value},()=>[f.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,ref_key:"inputRef",ref:d,"onUpdate:modelValue":m[0]||(m[0]=u=>g.value=u),type:"text",placeholder:B.placeholder||"Type here",class:"h-full input input-ghost",onKeydown:D,"aria-label":"Add tags"},null,40,_t)),[[e.vModelText,g.value]]):e.createCommentVNode("",!0)])],2))}}),$t=e.defineComponent({__name:"loader",props:{loading:{type:Boolean,default:!0},size:{default:"md"},type:{default:"spinner"},color:{default:"primary"}},setup(s){const o=s,t=e.ref(o.loading);return e.watch(()=>o.loading,n=>{t.value=n}),(n,a)=>t.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["loading",[{"loading-xs":n.size==="xs"},{"loading-sm":n.size==="sm"},{"loading-md":n.size==="md"},{"loading-lg":n.size==="lg"},{"loading-xl":n.size==="xl"},{"loading-spinner":n.type==="spinner"},{"loading-dots":n.type==="dots"},{"loading-ring":n.type==="ring"},{"loading-balls":n.type==="balls"},{"loading-bars":n.type==="bars"},{"loading-infinity":n.type==="infinity"},{"text-primary":n.color==="primary"},{"text-secondary":n.color==="secondary"},{"text-accent":n.color==="accent"},{"text-neutral":n.color==="neutral"},{"text-info":n.color==="info"},{"text-success":n.color==="success"},{"text-warning":n.color==="warning"},{"text-error":n.color==="error"}]])},null,2)):e.createCommentVNode("",!0)}}),Nt={class:"footer sm:footer-horizontal container"},Dt={class:"footer-title"},xt=["href"],Mt={key:0,class:"sm:hidden w-full"},Tt={class:"border-b-2 border-base-100 last:border-b-0 w-full"},zt={tabindex:"0",class:"collapse collapse-plus w-full"},It={class:"collapse-title font-bold text-lg collapsible-footer-title"},Lt={class:"collapse-content flex w-full text-sm"},Ft={class:"flex flex-col gap-2.5"},Pt={class:"w-full"},Ot=["href"],At={class:"w-full"},Ut=e.defineComponent({__name:"footer",props:{items:{},background:{},color:{},collapseOnMobile:{type:Boolean,default:!1}},setup(s){const o=s;return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["mx-auto md:px-10 py-10 text-base-content",[t.background??"bg-base-200",t.color??"text-base-content"]])},[e.createElementVNode("footer",Nt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,a=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass([{"hidden sm:grid":t.collapseOnMobile}])},[e.createElementVNode("h6",Dt,e.toDisplayString(a.title),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.items,l=>(e.openBlock(),e.createElementBlock("a",{class:"link link-hover",href:l.link},e.toDisplayString(l.text),9,xt))),256))],2))),256)),t.collapseOnMobile?(e.openBlock(),e.createElementBlock("nav",Mt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,a=>(e.openBlock(),e.createElementBlock("ul",Tt,[e.createElementVNode("div",zt,[e.createElementVNode("div",It,e.toDisplayString(a.title),1),e.createElementVNode("div",Lt,[e.createElementVNode("ul",Ft,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.items,l=>(e.openBlock(),e.createElementBlock("li",Pt,[e.createElementVNode("a",{class:"w-full font-medium link link-hover",href:l.link},e.toDisplayString(l.text),9,Ot)]))),256))])])])]))),256))])):e.createCommentVNode("",!0),e.createElementVNode("aside",At,[e.renderSlot(t.$slots,"default")])])],2))}}),jt={},Rt={class:"min-h-40 container hero"},qt={class:"px-0! text-center hero-content"},Wt={class:"mt-9 text-4xl"};function Ht(s,o){return e.openBlock(),e.createElementBlock("div",Rt,[e.createElementVNode("div",qt,[e.createElementVNode("div",null,[e.createElementVNode("h1",Wt,[e.renderSlot(s.$slots,"title",{},()=>[o[0]||(o[0]=e.createTextVNode("hero title"))])]),e.createElementVNode("p",null,[e.renderSlot(s.$slots,"description",{class:"py-9"})]),e.renderSlot(s.$slots,"call-to-action-block",{class:"max-w-full"},()=>[o[1]||(o[1]=e.createElementVNode("button",{class:"btn btn-primary"},"Call to action",-1))])])])])}const Yt=T(jt,[["render",Ht]]),Jt={class:"flex flex-row place-content-center gap-4 categories"},Gt=["onClick"],Kt=e.defineComponent({__name:"categoryNavigation",props:{searchOptions:{},currentCategory:{}},emits:["update:currentCategory"],setup(s,{emit:o}){const t=s,n=o;function a(l){n("update:currentCategory",l)}return(l,d)=>(e.openBlock(),e.createElementBlock("div",Jt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.searchOptions,g=>(e.openBlock(),e.createElementBlock("div",{key:g.category},[e.createElementVNode("button",{onClick:f=>a(g.category),class:e.normalizeClass(["truncate btn btn-ghost",{"font-semibold":t.currentCategory===g.category}])},e.toDisplayString(g.category),11,Gt)]))),128))]))}}),Xt={class:"md:flex hidden navbar-start"},Zt={class:"md:flex justify-center items-center hidden navbar-center"},Qt={class:"md:flex hidden navbar-end"},vt={class:"navbar-bottom md:flex hidden"},en=T(e.defineComponent({__name:"navigationBar",props:{isCollapsed:{type:Boolean,default:!0}},setup(s){const o=s;return(t,n)=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass(["place-items-start border-primary bg-base-100 px-5 py-5 border-b-4 transition-all navbar navigationbar",o.isCollapsed?"collapsed":""])},[e.createElementVNode("div",Xt,[e.renderSlot(t.$slots,"start",{},void 0,!0)]),e.createElementVNode("div",Zt,[e.renderSlot(t.$slots,"center",{},void 0,!0)]),e.createElementVNode("div",Qt,[e.renderSlot(t.$slots,"end",{},void 0,!0)]),e.createElementVNode("div",vt,[e.renderSlot(t.$slots,"bottom",{},void 0,!0)])],2))}}),[["__scopeId","data-v-8ddb2b45"]]),tn={key:0,class:"hidden top-4 right-0 absolute md:flex gap-4"},nn=["onClick","aria-selected"],on={key:0,role:"tabpanel",class:"p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full overflow-x-auto tab-content"},ln={class:"p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full"},an=e.defineComponent({__name:"tab",props:{items:{},withControlls:{type:Boolean,default:!1},rotateTabsAfter:{default:0},buttonOnlyMode:{type:Boolean,default:!1}},emits:["tab-changed"],setup(s,{emit:o}){const t=s,n=e.ref(t.items[0]),a=o;function l(f){n.value=f,a("tab-changed",f)}function d(){const p=(t.items.indexOf(n.value)+1)%t.items.length;l(t.items[p])}function g(){const p=(t.items.indexOf(n.value)-1+t.items.length)%t.items.length;l(t.items[p])}return e.onMounted(()=>{t.items&&l(t.items[0])}),e.onUnmounted(()=>{t.rotateTabsAfter&&t.rotateTabsAfter>0&&setInterval(()=>{d()},t.rotateTabsAfter*1e3)}),(f,p)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{role:"tablist",class:e.normalizeClass(["relative tabs-bordered w-full tabs tabs-lg",{"flex-nowrap overflow-x-auto":f.buttonOnlyMode}])},[f.withControlls?(e.openBlock(),e.createElementBlock("div",tn,[e.createElementVNode("button",{onClick:p[0]||(p[0]=k=>g()),class:"cursor-pointer"},"Previous"),e.createElementVNode("button",{onClick:p[1]||(p[1]=k=>d()),class:"text-primary cursor-pointer"},"Next")])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.items,k=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("a",{type:"button",role:"tab",class:e.normalizeClass(["min-w-max tab",k===n.value?"bg-primary text-base-100":""]),onClick:C=>l(k),"aria-selected":n.value==k},e.toDisplayString(k),11,nn),f.buttonOnlyMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",on,[e.renderSlot(f.$slots,`${k}-tab`)]))],64))),256))],2),e.createElementVNode("div",ln,[e.renderSlot(f.$slots,"default")])],64))}});y.Accordion=be,y.AdvancedSearch=Xe,y.Avatar=Be,y.Badge=Ee,y.ButtonComponent=K,y.Card=xe,y.Carousel=Fe,y.CarouselItem=Pe,y.CategoryNavigation=Kt,y.DatetimePicker=W,y.Dropdown=Q,y.Footer=Ut,y.Hero=Yt,y.Loader=$t,y.Modal=te,y.NavigationBar=en,y.Rating=Bt,y.Swap=le,y.Tab=an,y.TagInput=Ct,y.ThemeController=fe,Object.defineProperty(y,Symbol.toStringTag,{value:"Module"})});
|
package/dist/style.css
CHANGED