manolis-ui 0.17.13 → 0.17.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -0
- package/dist/manolis-ui.js +120 -115
- package/dist/manolis-ui.umd.cjs +1 -1
- package/dist/style.css +5 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/manolis-ui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as _, computed as ee, createElementBlock as r, openBlock as o, normalizeClass as
|
|
1
|
+
import { defineComponent as _, computed as ee, createElementBlock as r, openBlock as o, normalizeClass as z, createCommentVNode as O, renderSlot as V, createTextVNode as Re, createElementVNode as n, Fragment as W, renderList as Z, toDisplayString as L, ref as h, watch as q, h as De, onMounted as he, withDirectives as Se, createVNode as ue, isRef as Ue, vModelCheckbox as He, unref as se, provide as We, onUnmounted as Ve, normalizeStyle as we, Transition as Pe, withCtx as Ce, inject as Ke, useId as Xe, defineAsyncComponent as ze, nextTick as me, onBeforeUnmount as Ee, withModifiers as re, createBlock as ve, resolveDynamicComponent as Te, mergeProps as Be, withKeys as pe, resolveComponent as Oe, vModelText as Ne, useSlots as Ye, Comment as Ge, vShow as Je } from "vue";
|
|
2
2
|
const Ze = ["disabled"], Qe = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "loading loading-spinner"
|
|
@@ -65,7 +65,7 @@ const Ze = ["disabled"], Qe = {
|
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
67
|
return (a, u) => (o(), r("button", {
|
|
68
|
-
class:
|
|
68
|
+
class: z([
|
|
69
69
|
"btn",
|
|
70
70
|
{ "btn-outline": d.outlined },
|
|
71
71
|
{ "btn-active": d.active },
|
|
@@ -76,7 +76,7 @@ const Ze = ["disabled"], Qe = {
|
|
|
76
76
|
disabled: d.disabled
|
|
77
77
|
}, [
|
|
78
78
|
e.loading ? (o(), r("span", Qe)) : O("", !0),
|
|
79
|
-
|
|
79
|
+
V(a.$slots, "default", {}, () => [
|
|
80
80
|
u[0] || (u[0] = Re("Submit", -1))
|
|
81
81
|
])
|
|
82
82
|
], 10, Ze));
|
|
@@ -104,9 +104,9 @@ const Ze = ["disabled"], Qe = {
|
|
|
104
104
|
end: "dropdown-end"
|
|
105
105
|
}, t = e;
|
|
106
106
|
return (s, a) => (o(), r("div", {
|
|
107
|
-
class:
|
|
107
|
+
class: z(["dropdown", d[t.position], l[t.floatPosition], { "dropdown-open": t.forceOpen }, { "dropdown-hover": t.openOnHover }])
|
|
108
108
|
}, [
|
|
109
|
-
|
|
109
|
+
V(s.$slots, "default", {
|
|
110
110
|
tabindex: "0",
|
|
111
111
|
role: "button"
|
|
112
112
|
}, () => [
|
|
@@ -118,7 +118,7 @@ const Ze = ["disabled"], Qe = {
|
|
|
118
118
|
href: u.link
|
|
119
119
|
}, L(u.text), 9, tt)
|
|
120
120
|
]))), 256)),
|
|
121
|
-
|
|
121
|
+
V(s.$slots, "additional")
|
|
122
122
|
])
|
|
123
123
|
], 2));
|
|
124
124
|
}
|
|
@@ -152,25 +152,25 @@ const Ze = ["disabled"], Qe = {
|
|
|
152
152
|
class: "w-fit cursor-pointer",
|
|
153
153
|
onClick: s
|
|
154
154
|
}, [
|
|
155
|
-
|
|
155
|
+
V(u.$slots, "trigger", { role: "button" }, () => [
|
|
156
156
|
m[0] || (m[0] = n("button", { class: "btn" }, "Open", -1))
|
|
157
157
|
])
|
|
158
158
|
])) : O("", !0),
|
|
159
159
|
n("dialog", {
|
|
160
160
|
ref_key: "dialog",
|
|
161
161
|
ref: t,
|
|
162
|
-
class:
|
|
162
|
+
class: z(["modal", l[d.position]])
|
|
163
163
|
}, [
|
|
164
164
|
n("div", lt, [
|
|
165
|
-
|
|
165
|
+
V(u.$slots, "default"),
|
|
166
166
|
n("div", nt, [
|
|
167
|
-
|
|
167
|
+
V(u.$slots, "actions"),
|
|
168
168
|
n("form", {
|
|
169
169
|
method: "dialog",
|
|
170
170
|
onSubmit: a,
|
|
171
|
-
class:
|
|
171
|
+
class: z(e.withBackdrop ? "modal-backdrop" : "")
|
|
172
172
|
}, [
|
|
173
|
-
|
|
173
|
+
V(u.$slots, "close-button", {}, () => [
|
|
174
174
|
m[1] || (m[1] = n("button", { class: "btn" }, "Close", -1))
|
|
175
175
|
])
|
|
176
176
|
], 34)
|
|
@@ -187,14 +187,14 @@ const Ze = ["disabled"], Qe = {
|
|
|
187
187
|
setup(e) {
|
|
188
188
|
const d = e;
|
|
189
189
|
return (l, t) => (o(), r("label", {
|
|
190
|
-
class:
|
|
190
|
+
class: z(["swap", d.effect ? `swap-${e.effect}` : ""])
|
|
191
191
|
}, [
|
|
192
192
|
t[0] || (t[0] = n("input", { type: "checkbox" }, null, -1)),
|
|
193
193
|
n("div", at, [
|
|
194
|
-
|
|
194
|
+
V(l.$slots, "on")
|
|
195
195
|
]),
|
|
196
196
|
n("div", ot, [
|
|
197
|
-
|
|
197
|
+
V(l.$slots, "off")
|
|
198
198
|
])
|
|
199
199
|
], 2));
|
|
200
200
|
}
|
|
@@ -361,7 +361,7 @@ const ct = xe("SunIcon", [
|
|
|
361
361
|
setup(e) {
|
|
362
362
|
const d = e;
|
|
363
363
|
return (l, t) => (o(!0), r(W, null, Z(d.items, (s, a) => (o(), r("div", {
|
|
364
|
-
class:
|
|
364
|
+
class: z(["collapse border border-base-300", [e.icon ? `collapse-${e.icon}` : "", { "join-item": e.joinItems }]]),
|
|
365
365
|
key: a
|
|
366
366
|
}, [
|
|
367
367
|
n("input", {
|
|
@@ -393,11 +393,11 @@ const ct = xe("SunIcon", [
|
|
|
393
393
|
t && (l.value = t);
|
|
394
394
|
}
|
|
395
395
|
), (t, s) => (o(), r("div", {
|
|
396
|
-
class:
|
|
396
|
+
class: z(["avatar", [{ "avatar-online": l.value === "online" }, { "avatar-offline": l.value === "offline" }]])
|
|
397
397
|
}, [
|
|
398
398
|
e.image ? (o(), r("div", {
|
|
399
399
|
key: 0,
|
|
400
|
-
class:
|
|
400
|
+
class: z(["rounded", [{ "rounded-full": e.fullyRounded }, { rounded: !e.fullyRounded }]])
|
|
401
401
|
}, [
|
|
402
402
|
n("img", {
|
|
403
403
|
src: e.image,
|
|
@@ -405,7 +405,7 @@ const ct = xe("SunIcon", [
|
|
|
405
405
|
}, null, 8, bt)
|
|
406
406
|
], 2)) : (o(), r("div", {
|
|
407
407
|
key: 1,
|
|
408
|
-
class:
|
|
408
|
+
class: z(["flex justify-center bg-neutral p-[25%] rounded w-16 text-neutral-content text-center", [{ "rounded-full": e.fullyRounded }, { rounded: !e.fullyRounded }]])
|
|
409
409
|
}, [
|
|
410
410
|
n("p", wt, L(e.initials), 1)
|
|
411
411
|
], 2))
|
|
@@ -436,9 +436,9 @@ const ct = xe("SunIcon", [
|
|
|
436
436
|
error: "badge-error"
|
|
437
437
|
};
|
|
438
438
|
return (s, a) => (o(), r("span", {
|
|
439
|
-
class:
|
|
439
|
+
class: z(["badge", l[d.size], t[d.color], { "badge-outline": d.outline }])
|
|
440
440
|
}, [
|
|
441
|
-
|
|
441
|
+
V(s.$slots, "default")
|
|
442
442
|
], 2));
|
|
443
443
|
}
|
|
444
444
|
}), xt = ["src", "alt"], kt = {
|
|
@@ -477,7 +477,7 @@ const ct = xe("SunIcon", [
|
|
|
477
477
|
l.value = t;
|
|
478
478
|
}
|
|
479
479
|
), (t, s) => (o(), r("div", {
|
|
480
|
-
class:
|
|
480
|
+
class: z(["group bg-base-100 shadow-xl rounded-sm min-w-64 max-w-full h-full card card-compact", [
|
|
481
481
|
{ "border-4 border-primary": l.value },
|
|
482
482
|
e.color ?? "",
|
|
483
483
|
e.background,
|
|
@@ -485,13 +485,13 @@ const ct = xe("SunIcon", [
|
|
|
485
485
|
]])
|
|
486
486
|
}, [
|
|
487
487
|
n("figure", {
|
|
488
|
-
class:
|
|
488
|
+
class: z([{ "contents!": e.horizontal && e.imgWidth }])
|
|
489
489
|
}, [
|
|
490
490
|
e.imgUrl || e.imgUrl && !e.loading ? (o(), r("img", {
|
|
491
491
|
key: 0,
|
|
492
492
|
src: e.imgUrl,
|
|
493
493
|
alt: e.alt,
|
|
494
|
-
class:
|
|
494
|
+
class: z(["rounded-sm object-cover", [
|
|
495
495
|
{
|
|
496
496
|
hidden: e.loading
|
|
497
497
|
},
|
|
@@ -501,15 +501,15 @@ const ct = xe("SunIcon", [
|
|
|
501
501
|
}, null, 10, xt)) : O("", !0),
|
|
502
502
|
e.loading && e.imgUrl ? (o(), r("div", {
|
|
503
503
|
key: 1,
|
|
504
|
-
class:
|
|
504
|
+
class: z(["w-full skeleton", e.imgHeight])
|
|
505
505
|
}, null, 2)) : O("", !0)
|
|
506
506
|
], 2),
|
|
507
507
|
e.loading ? O("", !0) : (o(), r("div", kt, [
|
|
508
508
|
e.title ? (o(), r("h2", $t, L(e.title), 1)) : O("", !0),
|
|
509
|
-
|
|
509
|
+
V(t.$slots, "details"),
|
|
510
510
|
e.description ? (o(), r("p", St, L(e.description), 1)) : O("", !0),
|
|
511
511
|
n("div", Ct, [
|
|
512
|
-
|
|
512
|
+
V(t.$slots, "actions")
|
|
513
513
|
])
|
|
514
514
|
])),
|
|
515
515
|
e.loading ? (o(), r("div", It, [...s[0] || (s[0] = [
|
|
@@ -587,7 +587,7 @@ const ct = xe("SunIcon", [
|
|
|
587
587
|
}
|
|
588
588
|
},
|
|
589
589
|
setup(e, { expose: d }) {
|
|
590
|
-
const l = e, t = h(l.initialSlide), s = h(null), a = h(null), u = h(0), m = h(!1), i = h(0), y = h(0), M = h(!1), R = h(0), k = h(0), c = h(0),
|
|
590
|
+
const l = e, t = h(l.initialSlide), s = h(null), a = h(null), u = h(0), m = h(!1), i = h(0), y = h(0), M = h(!1), R = h(0), k = h(0), c = h(0), E = h(0), C = h(0), H = h(0), F = h(0), K = h(null), Q = h(null), le = h(0), f = h(null), b = ee(() => {
|
|
591
591
|
const I = Object.keys(l.breakpoints).map(Number).sort((P, U) => P - U);
|
|
592
592
|
let $ = {};
|
|
593
593
|
for (const P of I)
|
|
@@ -638,8 +638,8 @@ const ct = xe("SunIcon", [
|
|
|
638
638
|
}, w = (I) => {
|
|
639
639
|
m.value && K.value && (l.autoplay && ae(), cancelAnimationFrame(K.value), m.value = !1);
|
|
640
640
|
const $ = "touches" in I ? I.touches[0] : I;
|
|
641
|
-
R.value = $.clientX, k.value = $.clientY, f.value = null, c.value = u.value,
|
|
642
|
-
},
|
|
641
|
+
R.value = $.clientX, k.value = $.clientY, f.value = null, c.value = u.value, E.value = 0, C.value = 0, H.value = 0, F.value = performance.now(), s.value && (s.value.style.scrollSnapType = "none"), document.addEventListener("mousemove", T, { passive: !1 }), document.addEventListener("mouseup", N), document.addEventListener("touchmove", T, { passive: !1 }), document.addEventListener("touchend", N);
|
|
642
|
+
}, T = (I) => {
|
|
643
643
|
const $ = "touches" in I ? I.touches[0] : I;
|
|
644
644
|
if (!f.value) {
|
|
645
645
|
const be = Math.abs($.clientX - R.value), fe = Math.abs($.clientY - k.value), ke = 5;
|
|
@@ -663,12 +663,12 @@ const ct = xe("SunIcon", [
|
|
|
663
663
|
if (!M.value || !a.value || !s.value) return;
|
|
664
664
|
I.cancelable && I.preventDefault();
|
|
665
665
|
const P = performance.now(), U = P - F.value, J = l.sliderOrientation === "horizontal" ? $.clientX : $.clientY, X = l.sliderOrientation === "horizontal" ? R.value : k.value, oe = l.sliderOrientation === "horizontal" ? C.value || X : H.value || X, Y = J - oe;
|
|
666
|
-
U > 0 && (
|
|
666
|
+
U > 0 && (E.value = Y / U * 1e3);
|
|
667
667
|
const ie = J - X;
|
|
668
668
|
let ne = c.value - ie;
|
|
669
669
|
ne < 0 ? ne = ne * 0.3 : ne > j.value && (ne = j.value + (ne - j.value) * 0.3), le.value = ne, a.value.style.transform = l.sliderOrientation === "horizontal" ? `translate3d(${-le.value}px, 0, 0)` : `translate3d(0, ${-le.value}px, 0)`, l.sliderOrientation === "horizontal" ? C.value = J : H.value = J, F.value = P;
|
|
670
670
|
}, B = () => {
|
|
671
|
-
document.removeEventListener("mousemove",
|
|
671
|
+
document.removeEventListener("mousemove", T), document.removeEventListener("mouseup", N), document.removeEventListener("touchmove", T), document.removeEventListener("touchend", N);
|
|
672
672
|
}, N = () => {
|
|
673
673
|
if (!M.value || !s.value || !a.value) return;
|
|
674
674
|
const $ = l.sliderOrientation === "horizontal" ? c.value - (C.value - R.value) : c.value - (H.value - k.value), P = Math.max(0, Math.min($, j.value)), U = x() + S.value;
|
|
@@ -689,8 +689,8 @@ const ct = xe("SunIcon", [
|
|
|
689
689
|
return;
|
|
690
690
|
}
|
|
691
691
|
const J = Math.max(0, i.value - Math.floor(g.value)), X = 100, oe = Math.round(P / U);
|
|
692
|
-
if (Math.abs(
|
|
693
|
-
const Y = -Math.sign(
|
|
692
|
+
if (Math.abs(E.value) > X) {
|
|
693
|
+
const Y = -Math.sign(E.value), ie = oe + Y;
|
|
694
694
|
A(Math.max(0, Math.min(J, ie)));
|
|
695
695
|
} else
|
|
696
696
|
A(Math.max(0, Math.min(J, oe)));
|
|
@@ -742,21 +742,21 @@ const ct = xe("SunIcon", [
|
|
|
742
742
|
n("div", {
|
|
743
743
|
ref_key: "carouselContainer",
|
|
744
744
|
ref: s,
|
|
745
|
-
class:
|
|
745
|
+
class: z(["rounded w-full h-full carousel", [{ "carousel-horizontal": e.sliderOrientation == "horizontal" }, { "carousel-vertical": e.sliderOrientation == "vertical" }, { "cursor-grabbing !select-none": M.value }]]),
|
|
746
746
|
style: { scrollSnapType: "none" }
|
|
747
747
|
}, [
|
|
748
748
|
n("div", {
|
|
749
749
|
ref_key: "slidesContainer",
|
|
750
750
|
ref: a,
|
|
751
|
-
class:
|
|
751
|
+
class: z(["w-full h-full transition-transform duration-0 ease-out", e.sliderOrientation === "horizontal" ? "flex" : "block"]),
|
|
752
752
|
style: we({ gap: `${S.value}px` })
|
|
753
753
|
}, [
|
|
754
|
-
|
|
754
|
+
V(I.$slots, "default", {}, void 0, !0)
|
|
755
755
|
], 6)
|
|
756
756
|
], 2),
|
|
757
757
|
e.showNavigationButtons ? (o(), r("div", {
|
|
758
758
|
key: 0,
|
|
759
|
-
class:
|
|
759
|
+
class: z([{ "top-1/2 right-5 left-5 z-10 absolute flex justify-between items-center -translate-y-1/2 transform": e.sliderOrientation === "horizontal" }, { "right-0 absolute flex justify-between items-center -translate-y-1/2 transform rotate-90 top-1/2 gap-3": e.sliderOrientation === "vertical" }])
|
|
760
760
|
}, [
|
|
761
761
|
ue(Pe, { name: "fade" }, {
|
|
762
762
|
default: Ce(() => [
|
|
@@ -766,7 +766,7 @@ const ct = xe("SunIcon", [
|
|
|
766
766
|
role: "button",
|
|
767
767
|
"aria-label": "Previous Slide"
|
|
768
768
|
}, [
|
|
769
|
-
|
|
769
|
+
V(I.$slots, "prevButton", {}, () => [
|
|
770
770
|
$[0] || ($[0] = n("button", {
|
|
771
771
|
class: "btn btn-circle text-xs",
|
|
772
772
|
tabindex: "-1"
|
|
@@ -786,7 +786,7 @@ const ct = xe("SunIcon", [
|
|
|
786
786
|
role: "button",
|
|
787
787
|
"aria-label": "Next Slide"
|
|
788
788
|
}, [
|
|
789
|
-
|
|
789
|
+
V(I.$slots, "nextButton", {}, () => [
|
|
790
790
|
$[1] || ($[1] = n("button", {
|
|
791
791
|
class: "btn btn-circle text-xs",
|
|
792
792
|
tabindex: "-1"
|
|
@@ -802,7 +802,7 @@ const ct = xe("SunIcon", [
|
|
|
802
802
|
(o(!0), r(W, null, Z(i.value, (P, U) => (o(), r("button", {
|
|
803
803
|
key: `dot-${U}`,
|
|
804
804
|
onClick: (J) => p(U),
|
|
805
|
-
class:
|
|
805
|
+
class: z(["btn btn-circle btn-xs", { "btn-active": U === t.value }]),
|
|
806
806
|
"aria-label": `Go to slide ${U + 1}`
|
|
807
807
|
}, null, 10, Ot))), 128))
|
|
808
808
|
])) : O("", !0)
|
|
@@ -821,7 +821,7 @@ const ct = xe("SunIcon", [
|
|
|
821
821
|
class: "w-full h-full carousel-item",
|
|
822
822
|
style: we(se(d))
|
|
823
823
|
}, [
|
|
824
|
-
|
|
824
|
+
V(l.$slots, "default", {}, void 0, !0)
|
|
825
825
|
], 4));
|
|
826
826
|
}
|
|
827
827
|
}), Cn = /* @__PURE__ */ ge(Vt, [["__scopeId", "data-v-507384bc"]]), Et = { class: "flex gap-4 bg-base-100 w-full tabs tabs-boxed" }, Lt = ["onClick"], jt = {
|
|
@@ -932,7 +932,7 @@ const ct = xe("SunIcon", [
|
|
|
932
932
|
function c(f) {
|
|
933
933
|
k(f);
|
|
934
934
|
}
|
|
935
|
-
function
|
|
935
|
+
function E() {
|
|
936
936
|
t("search");
|
|
937
937
|
}
|
|
938
938
|
async function C(f) {
|
|
@@ -1048,7 +1048,7 @@ const ct = xe("SunIcon", [
|
|
|
1048
1048
|
return o(), r("button", {
|
|
1049
1049
|
key: `${v.name}-${D}`,
|
|
1050
1050
|
onClick: re((p) => F(v), ["stop"]),
|
|
1051
|
-
class:
|
|
1051
|
+
class: z([{
|
|
1052
1052
|
"tab-active": ((x = a.value) == null ? void 0 : x.name) === v.name,
|
|
1053
1053
|
"tab-active-inline": ((j = a.value) == null ? void 0 : j.name) === v.name && ((A = a.value) == null ? void 0 : A.displayMode) === "inline"
|
|
1054
1054
|
// Add new class
|
|
@@ -1089,7 +1089,7 @@ const ct = xe("SunIcon", [
|
|
|
1089
1089
|
title: "search",
|
|
1090
1090
|
type: "submit",
|
|
1091
1091
|
class: "ml-1 btn btn-primary btn-square",
|
|
1092
|
-
onClick: re(
|
|
1092
|
+
onClick: re(E, ["stop"])
|
|
1093
1093
|
}, [
|
|
1094
1094
|
ue(se(Ae), {
|
|
1095
1095
|
size: 24,
|
|
@@ -1115,7 +1115,7 @@ const ct = xe("SunIcon", [
|
|
|
1115
1115
|
class: "modal"
|
|
1116
1116
|
}, [
|
|
1117
1117
|
n("div", qt, [
|
|
1118
|
-
|
|
1118
|
+
V(f.$slots, "additionalForMobile", {}, () => [
|
|
1119
1119
|
n("h3", Ut, L(e.currentCategory), 1)
|
|
1120
1120
|
], !0),
|
|
1121
1121
|
(o(!0), r(W, null, Z(((S = l.searchOptions.find(
|
|
@@ -1146,7 +1146,7 @@ const ct = xe("SunIcon", [
|
|
|
1146
1146
|
n("form", { method: "dialog" }, [
|
|
1147
1147
|
n("button", {
|
|
1148
1148
|
class: "btn btn-primary",
|
|
1149
|
-
onClick:
|
|
1149
|
+
onClick: E
|
|
1150
1150
|
}, " Close and Search ")
|
|
1151
1151
|
])
|
|
1152
1152
|
])
|
|
@@ -1191,24 +1191,24 @@ const ct = xe("SunIcon", [
|
|
|
1191
1191
|
single: null,
|
|
1192
1192
|
start: null,
|
|
1193
1193
|
end: null
|
|
1194
|
-
}),
|
|
1194
|
+
}), E = (p) => p instanceof Date ? p.toISOString() : p, C = (p) => p.split("T")[0] || "", H = (p) => {
|
|
1195
1195
|
const w = p instanceof Date ? p : new Date(p);
|
|
1196
1196
|
if (isNaN(w.getTime())) return "";
|
|
1197
|
-
const
|
|
1198
|
-
return `${
|
|
1197
|
+
const T = String(w.getHours()).padStart(2, "0"), B = String(w.getMinutes()).padStart(2, "0");
|
|
1198
|
+
return `${T}:${B}`;
|
|
1199
1199
|
}, F = () => {
|
|
1200
1200
|
const p = /* @__PURE__ */ new Date(), w = H(p);
|
|
1201
|
-
let
|
|
1202
|
-
if (!
|
|
1203
|
-
if (!
|
|
1201
|
+
let T = t.initialDate;
|
|
1202
|
+
if (!T && t.mode !== "time" && (T = t.range ? { start: p, end: p } : p), !!T) {
|
|
1203
|
+
if (!T) {
|
|
1204
1204
|
t.mode === "time" && (t.range ? (k.value.from = w, k.value.to = w) : k.value.single = w);
|
|
1205
1205
|
return;
|
|
1206
1206
|
}
|
|
1207
|
-
if (t.range && typeof
|
|
1208
|
-
const B =
|
|
1207
|
+
if (t.range && typeof T == "object" && "start" in T) {
|
|
1208
|
+
const B = E(T.start), N = E(T.end);
|
|
1209
1209
|
c.value.start = C(B), c.value.end = C(N), t.mode !== "date" && (k.value.from = H(B), k.value.to = H(N));
|
|
1210
1210
|
} else {
|
|
1211
|
-
const B =
|
|
1211
|
+
const B = E(T);
|
|
1212
1212
|
c.value.single = C(B), t.mode !== "date" && (k.value.single = H(B));
|
|
1213
1213
|
}
|
|
1214
1214
|
}
|
|
@@ -1227,11 +1227,11 @@ const ct = xe("SunIcon", [
|
|
|
1227
1227
|
return `${ae}/${G}/${N}`;
|
|
1228
1228
|
}
|
|
1229
1229
|
};
|
|
1230
|
-
let w = "",
|
|
1231
|
-
if ((t.mode === "date" || t.mode === "datetime") && (t.range ? c.value.start && c.value.end && (w = `${c.value.start} - ${c.value.end}`) : c.value.single && (w = c.value.single)), (t.mode === "time" || t.mode === "datetime") && (t.range ? k.value.from && k.value.to && (
|
|
1230
|
+
let w = "", T = "";
|
|
1231
|
+
if ((t.mode === "date" || t.mode === "datetime") && (t.range ? c.value.start && c.value.end && (w = `${c.value.start} - ${c.value.end}`) : c.value.single && (w = c.value.single)), (t.mode === "time" || t.mode === "datetime") && (t.range ? k.value.from && k.value.to && (T = `${k.value.from} - ${k.value.to}`) : k.value.single && (T = k.value.single)), t.mode === "date")
|
|
1232
1232
|
return t.range ? w.split(" - ").map(p).join(" - ") : p(w);
|
|
1233
1233
|
if (t.mode === "time")
|
|
1234
|
-
return
|
|
1234
|
+
return T;
|
|
1235
1235
|
if (t.mode === "datetime")
|
|
1236
1236
|
if (t.range) {
|
|
1237
1237
|
const B = c.value.start, N = c.value.end, G = k.value.from, ae = k.value.to;
|
|
@@ -1250,21 +1250,21 @@ const ct = xe("SunIcon", [
|
|
|
1250
1250
|
else if (i.value) {
|
|
1251
1251
|
const p = i.value.value;
|
|
1252
1252
|
if (typeof p == "string" && p.includes("/")) {
|
|
1253
|
-
const [w,
|
|
1254
|
-
c.value.start = w || null, c.value.end =
|
|
1253
|
+
const [w, T] = p.split("/");
|
|
1254
|
+
c.value.start = w || null, c.value.end = T || null;
|
|
1255
1255
|
} else
|
|
1256
1256
|
c.value.start = p || null, c.value.end = p || null;
|
|
1257
1257
|
}
|
|
1258
1258
|
}, le = () => c.value.start && c.value.end ? `${c.value.start}/${c.value.end}` : null, f = () => {
|
|
1259
1259
|
if (t.range) {
|
|
1260
|
-
const
|
|
1260
|
+
const T = c.value.start, B = c.value.end || c.value.start, N = k.value.from, G = k.value.to;
|
|
1261
1261
|
if (t.mode === "time")
|
|
1262
1262
|
return N && G ? { start: N, end: G } : null;
|
|
1263
1263
|
if (t.mode === "date")
|
|
1264
|
-
return
|
|
1264
|
+
return T && B ? { start: T, end: B } : null;
|
|
1265
1265
|
if (t.mode === "datetime") {
|
|
1266
|
-
if (!
|
|
1267
|
-
const ae = N ? `${N}:00` : "00:00:00", ce = G ? `${G}:00` : "23:59:59", ye = `${
|
|
1266
|
+
if (!T || !B) return null;
|
|
1267
|
+
const ae = N ? `${N}:00` : "00:00:00", ce = G ? `${G}:00` : "23:59:59", ye = `${T}T${ae}`, Ie = `${B}T${ce}`;
|
|
1268
1268
|
return { start: ye, end: Ie };
|
|
1269
1269
|
}
|
|
1270
1270
|
return null;
|
|
@@ -1276,8 +1276,8 @@ const ct = xe("SunIcon", [
|
|
|
1276
1276
|
return p || null;
|
|
1277
1277
|
if (t.mode === "datetime") {
|
|
1278
1278
|
if (!p) return null;
|
|
1279
|
-
const
|
|
1280
|
-
return `${p}T${
|
|
1279
|
+
const T = w ? `${w}:00` : "00:00:00";
|
|
1280
|
+
return `${p}T${T}`;
|
|
1281
1281
|
}
|
|
1282
1282
|
return null;
|
|
1283
1283
|
}, b = async () => {
|
|
@@ -1297,8 +1297,8 @@ const ct = xe("SunIcon", [
|
|
|
1297
1297
|
b(), u.value = !1;
|
|
1298
1298
|
}, x = (p) => {
|
|
1299
1299
|
!t.popup || !u.value || setTimeout(() => {
|
|
1300
|
-
const w = a.value,
|
|
1301
|
-
w && !w.contains(
|
|
1300
|
+
const w = a.value, T = p.target, B = `date-picker-${t.id}-popup`;
|
|
1301
|
+
w && !w.contains(T) && !p.target.closest(`#${B}`) && D();
|
|
1302
1302
|
}, 0);
|
|
1303
1303
|
}, j = () => {
|
|
1304
1304
|
D();
|
|
@@ -1332,7 +1332,7 @@ const ct = xe("SunIcon", [
|
|
|
1332
1332
|
}, { immediate: !0 }), q([y, M, R], () => {
|
|
1333
1333
|
b();
|
|
1334
1334
|
}, { immediate: !0 }), (p, w) => {
|
|
1335
|
-
const
|
|
1335
|
+
const T = Oe("calendar-month"), B = Oe("calendar-date"), N = Oe("calendar-range");
|
|
1336
1336
|
return o(), r("div", {
|
|
1337
1337
|
class: "inline-block relative w-fit lg:w-full",
|
|
1338
1338
|
ref_key: "pickerContainer",
|
|
@@ -1350,7 +1350,7 @@ const ct = xe("SunIcon", [
|
|
|
1350
1350
|
])) : O("", !0),
|
|
1351
1351
|
u.value || !t.popup ? (o(), r("div", {
|
|
1352
1352
|
key: 1,
|
|
1353
|
-
class:
|
|
1353
|
+
class: z(["z-50 bg-base-100 rounded-md w-full min-w-xs overflow-hidden", { "absolute top-full left-0 mt-2 shadow-lg": t.popup, "mt-2": !t.popup }]),
|
|
1354
1354
|
id: `date-picker-${t.id}-popup`,
|
|
1355
1355
|
onKeydown: [
|
|
1356
1356
|
w[1] || (w[1] = pe(re(() => {
|
|
@@ -1412,7 +1412,7 @@ const ct = xe("SunIcon", [
|
|
|
1412
1412
|
})
|
|
1413
1413
|
], -1)
|
|
1414
1414
|
])]),
|
|
1415
|
-
ue(
|
|
1415
|
+
ue(T, {
|
|
1416
1416
|
locale: t.locale
|
|
1417
1417
|
}, null, 8, ["locale"])
|
|
1418
1418
|
]),
|
|
@@ -1471,7 +1471,7 @@ const ct = xe("SunIcon", [
|
|
|
1471
1471
|
})
|
|
1472
1472
|
], -1)
|
|
1473
1473
|
])]),
|
|
1474
|
-
ue(
|
|
1474
|
+
ue(T, {
|
|
1475
1475
|
locale: t.locale
|
|
1476
1476
|
}, null, 8, ["locale"])
|
|
1477
1477
|
]),
|
|
@@ -1567,7 +1567,7 @@ const ct = xe("SunIcon", [
|
|
|
1567
1567
|
l.value = s;
|
|
1568
1568
|
};
|
|
1569
1569
|
return (s, a) => (o(), r("div", {
|
|
1570
|
-
class:
|
|
1570
|
+
class: z(["rating", [
|
|
1571
1571
|
`rating-${d.size}`,
|
|
1572
1572
|
{ "rating-half": e.halfStars },
|
|
1573
1573
|
{ "pointer-events-none": !e.isInteractive }
|
|
@@ -1579,7 +1579,7 @@ const ct = xe("SunIcon", [
|
|
|
1579
1579
|
value: e.halfStars ? u * 0.5 : u,
|
|
1580
1580
|
checked: l.value === (e.halfStars ? u * 0.5 : u),
|
|
1581
1581
|
onChange: (m) => e.isInteractive ? t(e.halfStars ? u * 0.5 : u) : null,
|
|
1582
|
-
class:
|
|
1582
|
+
class: z(["mask", [
|
|
1583
1583
|
{
|
|
1584
1584
|
// 'bg-yellow-400': rating >= (halfStars ? i * 0.5 : i),
|
|
1585
1585
|
"mask-half-1": e.halfStars && u % 2 !== 0,
|
|
@@ -1623,7 +1623,7 @@ const ct = xe("SunIcon", [
|
|
|
1623
1623
|
const c = m.value.trim();
|
|
1624
1624
|
c && !s.value.includes(c) && (s.value.push(c), t("update:modelValue", s.value), m.value = "");
|
|
1625
1625
|
}, M = (c) => {
|
|
1626
|
-
s.value = s.value.filter((
|
|
1626
|
+
s.value = s.value.filter((E) => E !== c), t("update:modelValue", s.value);
|
|
1627
1627
|
}, R = () => {
|
|
1628
1628
|
m.value === "" && (s.value.pop(), t("update:modelValue", s.value));
|
|
1629
1629
|
}, k = (c) => {
|
|
@@ -1631,10 +1631,10 @@ const ct = xe("SunIcon", [
|
|
|
1631
1631
|
};
|
|
1632
1632
|
return q(() => l.modelValue, (c) => {
|
|
1633
1633
|
s.value = [...c];
|
|
1634
|
-
}), (c,
|
|
1635
|
-
class:
|
|
1634
|
+
}), (c, E) => (o(), r("div", {
|
|
1635
|
+
class: z(["flex flex-wrap gap-2 bg-base-100 shadow px-4 py-6 border border-base-content/20 rounded", c.$props.class])
|
|
1636
1636
|
}, [
|
|
1637
|
-
(o(!0), r(W, null, Z(s.value, (C) =>
|
|
1637
|
+
(o(!0), r(W, null, Z(s.value, (C) => V(c.$slots, "tag", {
|
|
1638
1638
|
key: C,
|
|
1639
1639
|
tag: C
|
|
1640
1640
|
}, () => [
|
|
@@ -1647,12 +1647,12 @@ const ct = xe("SunIcon", [
|
|
|
1647
1647
|
n("span", hl, L(C), 1)
|
|
1648
1648
|
])
|
|
1649
1649
|
])), 128)),
|
|
1650
|
-
|
|
1650
|
+
V(c.$slots, "input", { showInput: i.value }, () => [
|
|
1651
1651
|
i.value ? Se((o(), r("input", {
|
|
1652
1652
|
key: 0,
|
|
1653
1653
|
ref_key: "inputRef",
|
|
1654
1654
|
ref: u,
|
|
1655
|
-
"onUpdate:modelValue":
|
|
1655
|
+
"onUpdate:modelValue": E[0] || (E[0] = (C) => m.value = C),
|
|
1656
1656
|
type: "text",
|
|
1657
1657
|
placeholder: e.placeholder || "Type here",
|
|
1658
1658
|
class: "h-full input input-ghost",
|
|
@@ -1753,12 +1753,12 @@ const ct = xe("SunIcon", [
|
|
|
1753
1753
|
const t = e, s = l, a = Ye(), u = ee(() => {
|
|
1754
1754
|
const D = (a.default ? a.default() : []).filter((x) => x.type !== Ge);
|
|
1755
1755
|
return console.log("hasDefaultSlotContent computed:", D.length > 0), D.length > 0;
|
|
1756
|
-
}), m = h(""), i = h(null), y = h(!1), M = h(null), R = h(null), k = h(null), c = h(null),
|
|
1756
|
+
}), m = h(""), i = h(null), y = h(!1), M = h(null), R = h(null), k = h(null), c = h(null), E = () => {
|
|
1757
1757
|
y.value = !t.disabled;
|
|
1758
1758
|
}, C = () => {
|
|
1759
1759
|
y.value = !1, c.value = null, u.value || (i.value && m.value !== i.value.text ? m.value = i.value.text : i.value || (m.value = ""));
|
|
1760
1760
|
}, H = () => {
|
|
1761
|
-
y.value ? C() :
|
|
1761
|
+
y.value ? C() : E();
|
|
1762
1762
|
}, F = ee(() => {
|
|
1763
1763
|
const v = m.value ? m.value.toLowerCase() : "";
|
|
1764
1764
|
return v === "" && !y.value ? [] : t.options.filter(
|
|
@@ -1801,7 +1801,7 @@ const ct = xe("SunIcon", [
|
|
|
1801
1801
|
}, b = () => {
|
|
1802
1802
|
F.value.length > 0 && f(F.value[0]);
|
|
1803
1803
|
}, g = () => {
|
|
1804
|
-
y.value ||
|
|
1804
|
+
y.value || E();
|
|
1805
1805
|
}, S = (v) => {
|
|
1806
1806
|
if (!y.value || F.value.length === 0) return;
|
|
1807
1807
|
const D = F.value.findIndex(
|
|
@@ -1841,7 +1841,7 @@ const ct = xe("SunIcon", [
|
|
|
1841
1841
|
// Expose state
|
|
1842
1842
|
selectedItem: i,
|
|
1843
1843
|
// Expose selected item
|
|
1844
|
-
openDropdown:
|
|
1844
|
+
openDropdown: E,
|
|
1845
1845
|
// Expose method to open
|
|
1846
1846
|
closeDropdown: C,
|
|
1847
1847
|
// Expose method to close
|
|
@@ -1862,12 +1862,12 @@ const ct = xe("SunIcon", [
|
|
|
1862
1862
|
n("span", Cl, L(e.label), 1)
|
|
1863
1863
|
])) : O("", !0),
|
|
1864
1864
|
n("div", {
|
|
1865
|
-
class:
|
|
1865
|
+
class: z(["flex items-center input-bordered rounded-md w-fit cursor-pointer", { input: !u.value, select: !u.value }]),
|
|
1866
1866
|
style: we(
|
|
1867
1867
|
i.value ? "background-image: unset; padding-right: 0.5rem;" : ""
|
|
1868
1868
|
),
|
|
1869
1869
|
tabindex: "0",
|
|
1870
|
-
onClick: D[1] || (D[1] = (x) => u.value ? H() :
|
|
1870
|
+
onClick: D[1] || (D[1] = (x) => u.value ? H() : E()),
|
|
1871
1871
|
onKeydown: [
|
|
1872
1872
|
pe(re(b, ["prevent"]), ["enter"]),
|
|
1873
1873
|
pe(re(b, ["prevent"]), ["space"])
|
|
@@ -1881,7 +1881,7 @@ const ct = xe("SunIcon", [
|
|
|
1881
1881
|
ref_key: "activatorWrapper",
|
|
1882
1882
|
ref: k
|
|
1883
1883
|
}, [
|
|
1884
|
-
|
|
1884
|
+
V(v.$slots, "default", {}, () => [
|
|
1885
1885
|
u.value ? O("", !0) : Se((o(), r("input", {
|
|
1886
1886
|
key: 0,
|
|
1887
1887
|
type: "text",
|
|
@@ -1890,7 +1890,7 @@ const ct = xe("SunIcon", [
|
|
|
1890
1890
|
"onUpdate:modelValue": D[0] || (D[0] = (x) => m.value = x),
|
|
1891
1891
|
ref_key: "filterInput",
|
|
1892
1892
|
ref: M,
|
|
1893
|
-
onFocus:
|
|
1893
|
+
onFocus: E,
|
|
1894
1894
|
onInput: g,
|
|
1895
1895
|
tabindex: "-1",
|
|
1896
1896
|
disabled: t.disabled
|
|
@@ -1906,7 +1906,7 @@ const ct = xe("SunIcon", [
|
|
|
1906
1906
|
})) : O("", !0),
|
|
1907
1907
|
u.value && !i.value ? (o(), ve(se(rt), {
|
|
1908
1908
|
key: 1,
|
|
1909
|
-
class:
|
|
1909
|
+
class: z([{ "rotate-180": y.value }, "mx-2"]),
|
|
1910
1910
|
size: 20
|
|
1911
1911
|
}, null, 8, ["class"])) : O("", !0)
|
|
1912
1912
|
], 46, Il),
|
|
@@ -1956,12 +1956,12 @@ const ct = xe("SunIcon", [
|
|
|
1956
1956
|
setup(e, { expose: d, emit: l }) {
|
|
1957
1957
|
const t = e, s = l, a = h(null), u = h(!1), m = h(""), i = ee(() => {
|
|
1958
1958
|
var H, F, K, Q;
|
|
1959
|
-
let c = !0,
|
|
1959
|
+
let c = !0, E = "";
|
|
1960
1960
|
const C = t.modelValue;
|
|
1961
|
-
return (H = t.rules) != null && H.required && (C == null || C === "") && (c = !1,
|
|
1961
|
+
return (H = t.rules) != null && H.required && (C == null || C === "") && (c = !1, E = "This field is required."), c && ((F = t.rules) == null ? void 0 : F.minLength) !== void 0 && typeof C == "string" && C.length < t.rules.minLength && (c = !1, E = `Must be at least ${t.rules.minLength} characters.`), c && ((K = t.rules) == null ? void 0 : K.maxLength) !== void 0 && typeof C == "string" && C.length > t.rules.maxLength && (c = !1, E = `Cannot exceed ${t.rules.maxLength} characters.`), c && ((Q = t.rules) != null && Q.email) && typeof C == "string" && C && (/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(C) || (c = !1, E = "Please enter a valid email address.")), m.value = E, s("validate", c), c;
|
|
1962
1962
|
}), y = ee(() => u.value && !i.value), M = (c) => {
|
|
1963
|
-
const
|
|
1964
|
-
s("update:modelValue",
|
|
1963
|
+
const E = c.target;
|
|
1964
|
+
s("update:modelValue", E.value), u.value && i.value;
|
|
1965
1965
|
}, R = () => {
|
|
1966
1966
|
u.value = !0, i.value;
|
|
1967
1967
|
};
|
|
@@ -1978,18 +1978,18 @@ const ct = xe("SunIcon", [
|
|
|
1978
1978
|
isValid: i,
|
|
1979
1979
|
isTouched: u,
|
|
1980
1980
|
errorMessage: m
|
|
1981
|
-
}), (c,
|
|
1981
|
+
}), (c, E) => (o(), r("div", Ol, [
|
|
1982
1982
|
e.label ? (o(), r("label", Dl, [
|
|
1983
1983
|
n("span", Vl, L(e.label), 1)
|
|
1984
1984
|
])) : O("", !0),
|
|
1985
|
-
|
|
1985
|
+
V(c.$slots, "default"),
|
|
1986
1986
|
n("input", {
|
|
1987
1987
|
ref_key: "inputElement",
|
|
1988
1988
|
ref: a,
|
|
1989
1989
|
type: e.type,
|
|
1990
1990
|
placeholder: e.placeholder,
|
|
1991
1991
|
disabled: t.disabled,
|
|
1992
|
-
class:
|
|
1992
|
+
class: z(["input-bordered rounded-md w-full input validator", [
|
|
1993
1993
|
{
|
|
1994
1994
|
// Size classes - Apply based on size prop
|
|
1995
1995
|
"input-xs": e.size === "xs",
|
|
@@ -2044,7 +2044,7 @@ const ct = xe("SunIcon", [
|
|
|
2044
2044
|
}
|
|
2045
2045
|
), (t, s) => l.value ? (o(), r("span", {
|
|
2046
2046
|
key: 0,
|
|
2047
|
-
class:
|
|
2047
|
+
class: z(["loading", [
|
|
2048
2048
|
{ "loading-xs": e.size === "xs" },
|
|
2049
2049
|
{ "loading-sm": e.size === "sm" },
|
|
2050
2050
|
{ "loading-md": e.size === "md" },
|
|
@@ -2087,14 +2087,14 @@ const ct = xe("SunIcon", [
|
|
|
2087
2087
|
setup(e) {
|
|
2088
2088
|
const d = e;
|
|
2089
2089
|
return (l, t) => (o(), r("div", {
|
|
2090
|
-
class:
|
|
2090
|
+
class: z(["mx-auto md:px-10 py-10 text-base-content", [e.background ?? "bg-base-200", e.color ?? "text-base-content"]])
|
|
2091
2091
|
}, [
|
|
2092
2092
|
n("footer", Rl, [
|
|
2093
2093
|
n("div", {
|
|
2094
|
-
class:
|
|
2094
|
+
class: z(["footer sm:footer-horizontal", [{ "sm:grid-rows-1": d.rows === 1 }, { "sm:grid-rows-2": d.rows === 2 }, { "sm:grid-rows-3": d.rows === 3 }]])
|
|
2095
2095
|
}, [
|
|
2096
2096
|
(o(!0), r(W, null, Z(d.items, (s) => (o(), r("nav", {
|
|
2097
|
-
class:
|
|
2097
|
+
class: z([{ "hidden sm:grid": e.collapseOnMobile }])
|
|
2098
2098
|
}, [
|
|
2099
2099
|
n("h6", Nl, L(s.title), 1),
|
|
2100
2100
|
(o(!0), r(W, null, Z(s.items, (a) => (o(), r("a", {
|
|
@@ -2102,6 +2102,11 @@ const ct = xe("SunIcon", [
|
|
|
2102
2102
|
href: a.link
|
|
2103
2103
|
}, L(a.text), 9, _l))), 256))
|
|
2104
2104
|
], 2))), 256)),
|
|
2105
|
+
n("nav", {
|
|
2106
|
+
class: z(["empty:hidden", [{ "hidden sm:grid": e.collapseOnMobile }]])
|
|
2107
|
+
}, [
|
|
2108
|
+
V(l.$slots, "extra-row")
|
|
2109
|
+
], 2),
|
|
2105
2110
|
e.collapseOnMobile ? (o(), r("nav", Fl, [
|
|
2106
2111
|
(o(!0), r(W, null, Z(d.items, (s) => (o(), r("ul", ql, [
|
|
2107
2112
|
n("div", Ul, [
|
|
@@ -2121,7 +2126,7 @@ const ct = xe("SunIcon", [
|
|
|
2121
2126
|
])) : O("", !0)
|
|
2122
2127
|
], 2),
|
|
2123
2128
|
n("aside", Gl, [
|
|
2124
|
-
|
|
2129
|
+
V(l.$slots, "default")
|
|
2125
2130
|
])
|
|
2126
2131
|
])
|
|
2127
2132
|
], 2));
|
|
@@ -2132,14 +2137,14 @@ function tn(e, d) {
|
|
|
2132
2137
|
n("div", Ql, [
|
|
2133
2138
|
n("div", null, [
|
|
2134
2139
|
n("h1", en, [
|
|
2135
|
-
|
|
2140
|
+
V(e.$slots, "title", {}, () => [
|
|
2136
2141
|
d[0] || (d[0] = Re("hero title", -1))
|
|
2137
2142
|
])
|
|
2138
2143
|
]),
|
|
2139
2144
|
n("p", null, [
|
|
2140
|
-
|
|
2145
|
+
V(e.$slots, "description", { class: "py-9" })
|
|
2141
2146
|
]),
|
|
2142
|
-
|
|
2147
|
+
V(e.$slots, "call-to-action-block", { class: "max-w-full" }, () => [
|
|
2143
2148
|
d[1] || (d[1] = n("button", { class: "btn btn-primary" }, "Call to action", -1))
|
|
2144
2149
|
])
|
|
2145
2150
|
])
|
|
@@ -2164,7 +2169,7 @@ const En = /* @__PURE__ */ ge(Jl, [["render", tn]]), ln = { class: "flex flex-ro
|
|
|
2164
2169
|
}, [
|
|
2165
2170
|
n("button", {
|
|
2166
2171
|
onClick: (i) => s(m.category),
|
|
2167
|
-
class:
|
|
2172
|
+
class: z(["truncate btn btn-ghost", { "font-semibold": l.currentCategory === m.category }])
|
|
2168
2173
|
}, L(m.category), 11, nn)
|
|
2169
2174
|
]))), 128))
|
|
2170
2175
|
]));
|
|
@@ -2177,19 +2182,19 @@ const En = /* @__PURE__ */ ge(Jl, [["render", tn]]), ln = { class: "flex flex-ro
|
|
|
2177
2182
|
setup(e) {
|
|
2178
2183
|
const d = e;
|
|
2179
2184
|
return (l, t) => (o(), r("nav", {
|
|
2180
|
-
class:
|
|
2185
|
+
class: z(["place-items-start border-primary bg-base-100 px-5 py-5 border-b-4 transition-all navbar navigationbar", d.isCollapsed ? "collapsed" : ""])
|
|
2181
2186
|
}, [
|
|
2182
2187
|
n("div", an, [
|
|
2183
|
-
|
|
2188
|
+
V(l.$slots, "start", {}, void 0, !0)
|
|
2184
2189
|
]),
|
|
2185
2190
|
n("div", on, [
|
|
2186
|
-
|
|
2191
|
+
V(l.$slots, "center", {}, void 0, !0)
|
|
2187
2192
|
]),
|
|
2188
2193
|
n("div", sn, [
|
|
2189
|
-
|
|
2194
|
+
V(l.$slots, "end", {}, void 0, !0)
|
|
2190
2195
|
]),
|
|
2191
2196
|
n("div", rn, [
|
|
2192
|
-
|
|
2197
|
+
V(l.$slots, "bottom", {}, void 0, !0)
|
|
2193
2198
|
])
|
|
2194
2199
|
], 2));
|
|
2195
2200
|
}
|
|
@@ -2231,7 +2236,7 @@ const En = /* @__PURE__ */ ge(Jl, [["render", tn]]), ln = { class: "flex flex-ro
|
|
|
2231
2236
|
}), (i, y) => (o(), r(W, null, [
|
|
2232
2237
|
n("div", {
|
|
2233
2238
|
role: "tablist",
|
|
2234
|
-
class:
|
|
2239
|
+
class: z(["relative tabs-bordered w-full tabs tabs-lg", { "flex-nowrap overflow-x-auto": e.buttonOnlyMode }])
|
|
2235
2240
|
}, [
|
|
2236
2241
|
e.withControlls ? (o(), r("div", dn, [
|
|
2237
2242
|
n("button", {
|
|
@@ -2247,17 +2252,17 @@ const En = /* @__PURE__ */ ge(Jl, [["render", tn]]), ln = { class: "flex flex-ro
|
|
|
2247
2252
|
n("a", {
|
|
2248
2253
|
type: "button",
|
|
2249
2254
|
role: "tab",
|
|
2250
|
-
class:
|
|
2255
|
+
class: z(["min-w-max tab", M === t.value ? "bg-primary text-base-100" : ""]),
|
|
2251
2256
|
onClick: (R) => a(M),
|
|
2252
2257
|
"aria-selected": t.value == M
|
|
2253
2258
|
}, L(M), 11, cn),
|
|
2254
2259
|
e.buttonOnlyMode ? O("", !0) : (o(), r("div", vn, [
|
|
2255
|
-
|
|
2260
|
+
V(i.$slots, `${M}-tab`)
|
|
2256
2261
|
]))
|
|
2257
2262
|
], 64))), 256))
|
|
2258
2263
|
], 2),
|
|
2259
2264
|
n("div", fn, [
|
|
2260
|
-
|
|
2265
|
+
V(i.$slots, "default")
|
|
2261
2266
|
])
|
|
2262
2267
|
], 64));
|
|
2263
2268
|
}
|
package/dist/manolis-ui.umd.cjs
CHANGED
|
@@ -43,4 +43,4 @@
|
|
|
43
43
|
*
|
|
44
44
|
* This source code is licensed under the ISC license.
|
|
45
45
|
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/const rn=he("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"}]]),sn=(t,n)=>{const l=e.ref(null);return e.onMounted(()=>{if(typeof window<"u"){const o=window.localStorage.getItem(t);l.value=o?JSON.parse(o):n}}),e.watch(l,o=>{typeof window<"u"&&window.localStorage.setItem(t,JSON.stringify(o))}),l},cn={class:"swap-rotate swap"},dn=["true-value","false-value"],un=e.defineComponent({__name:"theme-controller",props:{lightTheme:{default:"light"},darkTheme:{default:"dark"}},setup(t){const n=t,l=sn("theme",n.lightTheme);function o(r){typeof window<"u"&&window.document&&document.documentElement.setAttribute("data-theme",r)}return e.onMounted(()=>o(l.value?l.value:"")),e.watch(l,r=>{o(r)}),(r,a)=>(e.openBlock(),e.createElementBlock("label",cn,[e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:"theme-controller","onUpdate:modelValue":a[0]||(a[0]=s=>e.isRef(l)?l.value=s:null),"true-value":n.lightTheme,"false-value":n.darkTheme},null,8,dn),[[e.vModelCheckbox,e.unref(l)]]),e.createVNode(e.unref(rn),{class:"swap-off fill-current"}),e.createVNode(e.unref(an),{class:"swap-on fill-current"})]))}}),mn=["name"],fn={class:"collapse-title font-bold text-2xl lg:text-4xl"},pn={class:"collapse-content"},hn=["innerHTML"],gn=e.defineComponent({__name:"accordion",props:{name:{},items:{},joinItems:{type:Boolean,default:!1},icon:{}},setup(t){const n=t;return(l,o)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,(r,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["collapse border border-base-300",[t.icon?`collapse-${t.icon}`:"",{"join-item":t.joinItems}]]),key:a},[e.createElementVNode("input",{type:"radio",name:t.name,value:"true"},null,8,mn),e.createElementVNode("div",fn,e.toDisplayString(r.title),1),e.createElementVNode("div",pn,[e.createElementVNode("span",{innerHTML:r.content},null,8,hn)])],2))),128))}}),yn=["src"],bn={class:"text-xl"},kn=e.defineComponent({__name:"avatar",props:{image:{},onlineStatus:{default:"none"},initials:{},fullyRounded:{type:Boolean,default:!1}},setup(t){const n=t,l=e.ref(n.onlineStatus);return e.watch(()=>n.onlineStatus,o=>{o&&(l.value=o)}),(o,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["avatar",[{"avatar-online":l.value==="online"},{"avatar-offline":l.value==="offline"}]])},[t.image?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["rounded",[{"rounded-full":t.fullyRounded},{rounded:!t.fullyRounded}]])},[e.createElementVNode("img",{src:t.image,class:"w-full h-full"},null,8,yn)],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":t.fullyRounded},{rounded:!t.fullyRounded}]])},[e.createElementVNode("p",bn,e.toDisplayString(t.initials),1)],2))],2))}}),wn=e.defineComponent({__name:"badge",props:{color:{default:"neutral"},outline:{type:Boolean,default:!1},size:{default:"medium"}},setup(t){const n=t,l={"extra small":"badge-xs",small:"badge-sm",medium:"badge-md",large:"badge-lg"},o={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(r,a)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["badge",l[n.size],o[n.color],{"badge-outline":n.outline}])},[e.renderSlot(r.$slots,"default")],2))}}),vn=["src","alt"],xn={key:0,class:"card-body"},En={key:0,class:"group-hover:text-primary text-lg text-left cursor-pointer card-title"},Bn={key:1,class:"text-left"},$n={class:"flex-col flex-nowrap mt-auto card-actions"},Cn={key:1,class:"card-body"},Sn=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:""},imgHeight:{default:"h-44"},imgWidth:{default:""},horizontal:{type:Boolean,default:!1}},setup(t){const n=t,l=e.ref(n.outlined);return e.watch(()=>n.outlined,o=>{l.value=o}),(o,r)=>(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":l.value},t.color??"",t.background,{"card-side":t.horizontal}]])},[e.createElementVNode("figure",{class:e.normalizeClass([{"contents!":t.horizontal&&t.imgWidth}])},[t.imgUrl||t.imgUrl&&!t.loading?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.imgUrl,alt:t.alt,class:e.normalizeClass(["rounded-sm object-cover",[{hidden:t.loading},!t.horizontal&&t.imgHeight?t.imgHeight:"h-full",t.horizontal&&t.imgWidth?t.imgWidth:"w-full"]])},null,10,vn)):e.createCommentVNode("",!0),t.loading&&t.imgUrl?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["w-full skeleton",t.imgHeight])},null,2)):e.createCommentVNode("",!0)],2),t.loading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",xn,[t.title?(e.openBlock(),e.createElementBlock("h2",En,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"details"),t.description?(e.openBlock(),e.createElementBlock("p",Bn,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0),e.createElementVNode("div",$n,[e.renderSlot(o.$slots,"actions")])])),t.loading?(e.openBlock(),e.createElementBlock("div",Cn,[...r[0]||(r[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))}}),lt=Symbol("CarouselItemStyle"),Vn={class:"relative h-full"},Nn={key:0,class:"flex-shrink-0"},Dn={key:0,class:"flex-shrink-0"},zn={key:1,id:"carousel-indicators",class:"bottom-5 z-10 absolute flex justify-center gap-2 py-2 w-full"},Tn=["onClick","aria-label"],Mn=e.defineComponent({__name:"carousel",props:{showIndicators:{type:Boolean,default:!0},showNavigationButtons:{type:Boolean,default:!0},sliderOrientation:{type:String,default:"horizontal",required:!1,validator:t=>t=="horizontal"||t=="vertical"},initialSlide:{type:Number,default:0},slidesPerView:{type:Number,default:1,validator:t=>t>=1},gap:{type:Number,default:0,validator:t=>t>=0},slideDuration:{type:Number,default:300,validator:t=>t>=0},breakpoints:{type:Object,default:()=>({})},infinite:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},autoplayInterval:{type:Number,default:3e3,validator:t=>t>0}},setup(t,{expose:n}){const l=t,o=e.ref(l.initialSlide),r=e.ref(null),a=e.ref(null),s=e.ref(0),c=e.ref(!1),i=e.ref(0),u=e.ref(0),m=e.ref(!1),y=e.ref(0),f=e.ref(0),d=e.ref(0),$=e.ref(0),v=e.ref(0),C=e.ref(0),k=e.ref(0),M=e.ref(null),U=e.ref(null),Y=e.ref(0),h=e.ref(null),B=e.computed(()=>{const z=Object.keys(l.breakpoints).map(Number).sort((P,F)=>P-F);let D={};for(const P of z)u.value>=P&&(D={...D,...l.breakpoints[P]});return D}),w=e.computed(()=>B.value.slidesPerView??l.slidesPerView),N=e.computed(()=>B.value.gap??l.gap),p=e.computed(()=>{const z=l.sliderOrientation==="horizontal",P=`calc((100% - ${w.value>1?(w.value-1)*N.value:0}px) / ${w.value})`;return z?{width:P}:{height:P}});e.provide(lt,p);const x=()=>{a.value?i.value=a.value.children.length:i.value=0},b=()=>{if(!r.value||w.value<=0)return 0;const D=l.sliderOrientation==="horizontal"?r.value.offsetWidth:r.value.offsetHeight,P=(w.value-1)*N.value;return D<=0?0:(D-P)/w.value},I=e.computed(()=>{if(!r.value||i.value===0||w.value===0)return 0;const D=l.sliderOrientation==="horizontal"?r.value.offsetWidth:r.value.offsetHeight,P=b(),F=i.value*(P+N.value)-N.value;return Math.max(0,F-D)}),O=async(z,D=!1)=>{if(!r.value||w.value<=0||c.value||(x(),i.value===0))return;const P=b();if(P<=0)return;const F=P+N.value,K=I.value;let R=z;l.infinite?R=(z%i.value+i.value)%i.value:R=Math.max(0,Math.min(z,i.value-w.value));const te=R*F,W=l.infinite?te:Math.max(0,Math.min(te,K));if(D||l.slideDuration===0){a.value&&(a.value.style.transitionDuration="0ms",a.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-W}px, 0, 0)`:`translate3d(0, ${-W}px, 0)`),s.value=W,o.value=R,c.value=!1,l.autoplay&&ee();return}c.value=!0;const oe=s.value,Z=W-oe,Ee=performance.now(),fe=Te=>{if(!a.value)return;const ka=Te-Ee,Ut=Math.min(1,ka/l.slideDuration),wa=1-Math.pow(1-Ut,3),et=oe+Z*wa;a.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-et}px, 0, 0)`:`translate3d(0, ${-et}px, 0)`,s.value=et,Ut<1?M.value=requestAnimationFrame(fe):(a.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-W}px, 0, 0)`:`translate3d(0, ${-W}px, 0)`,s.value=W,o.value=R,c.value=!1,l.autoplay&&ee(),M.value=null)};M.value=requestAnimationFrame(fe)},q=()=>{l.infinite&&o.value>=i.value-w.value?O(0):O(o.value+1)},J=()=>{l.infinite&&o.value<=0?O(i.value-w.value):O(o.value-1)},g=z=>{O(z)},E=z=>{c.value&&M.value&&(l.autoplay&&H(),cancelAnimationFrame(M.value),c.value=!1);const D="touches"in z?z.touches[0]:z;y.value=D.clientX,f.value=D.clientY,h.value=null,d.value=s.value,$.value=0,v.value=0,C.value=0,k.value=performance.now(),r.value&&(r.value.style.scrollSnapType="none"),document.addEventListener("mousemove",V,{passive:!1}),document.addEventListener("mouseup",j),document.addEventListener("touchmove",V,{passive:!1}),document.addEventListener("touchend",j)},V=z=>{const D="touches"in z?z.touches[0]:z;if(!h.value){const Ee=Math.abs(D.clientX-y.value),fe=Math.abs(D.clientY-f.value),Te=5;if(Ee>Te||fe>Te)if(l.sliderOrientation==="horizontal")if(Ee>fe)h.value="horizontal",m.value=!0;else{T();return}else if(fe>Ee)h.value="vertical",m.value=!0;else{T();return}else return}if(!m.value||!a.value||!r.value)return;z.cancelable&&z.preventDefault();const P=performance.now(),F=P-k.value,K=l.sliderOrientation==="horizontal"?D.clientX:D.clientY,R=l.sliderOrientation==="horizontal"?y.value:f.value,te=l.sliderOrientation==="horizontal"?v.value||R:C.value||R,W=K-te;F>0&&($.value=W/F*1e3);const oe=K-R;let Z=d.value-oe;Z<0?Z=Z*.3:Z>I.value&&(Z=I.value+(Z-I.value)*.3),Y.value=Z,a.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-Y.value}px, 0, 0)`:`translate3d(0, ${-Y.value}px, 0)`,l.sliderOrientation==="horizontal"?v.value=K:C.value=K,k.value=P},T=()=>{document.removeEventListener("mousemove",V),document.removeEventListener("mouseup",j),document.removeEventListener("touchmove",V),document.removeEventListener("touchend",j)},j=()=>{if(!m.value||!r.value||!a.value)return;const D=l.sliderOrientation==="horizontal"?d.value-(v.value-y.value):d.value-(C.value-f.value),P=Math.max(0,Math.min(D,I.value)),F=b()+N.value;if(m.value=!1,T(),s.value=P,l.infinite){if(D<0){O(i.value-1);return}else if(D>I.value){O(0);return}}else if(D<0){O(0);return}else if(D>I.value){const W=Math.max(0,i.value-Math.floor(w.value));O(W);return}const K=Math.max(0,i.value-Math.floor(w.value)),R=100,te=Math.round(P/F);if(Math.abs($.value)>R){const W=-Math.sign($.value),oe=te+W;O(Math.max(0,Math.min(K,oe)))}else O(Math.max(0,Math.min(K,te)))},A=()=>{!l.autoplay||U.value!==null||(U.value=setInterval(()=>{q()},l.autoplayInterval))},H=()=>{U.value!==null&&(clearInterval(U.value),U.value=null)},ee=()=>{H(),setTimeout(()=>{A()},500)},re=()=>{u.value=window.innerWidth},Qe=()=>{if(!r.value||w.value<=0||(x(),i.value===0))return;const z=b();if(z<=0)return;const D=Math.max(0,i.value-w.value),P=Math.min(Math.max(0,l.initialSlide),D),F=P*(z+N.value),K=I.value,R=Math.max(0,Math.min(F,K));a.value&&(a.value.style.transitionDuration="0ms",a.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-R}px, 0, 0)`:`translate3d(0, ${-R}px, 0)`),s.value=R,o.value=P};e.onUnmounted(()=>{window.removeEventListener("resize",re)});let _t=!1;return e.onMounted(()=>{var D,P,F,K,R,te,W,oe;u.value=window.innerWidth;const z=e.watch(i,Z=>{Z>0&&!_t&&(Qe(),_t=!0,z())});l.autoplay&&A(),window.addEventListener("resize",re),x(),(D=r.value)==null||D.addEventListener("mousedown",E),(P=r.value)==null||P.addEventListener("touchstart",E,{passive:!0}),l.showNavigationButtons&&((R=(K=(F=r.value)==null?void 0:F.parentElement)==null?void 0:K.querySelector(".absolute.flex.justify-between"))==null||R.addEventListener("click",ee)),l.showIndicators&&((oe=(W=(te=r.value)==null?void 0:te.parentElement)==null?void 0:W.querySelector(".bottom-5.flex.justify-center"))==null||oe.addEventListener("click",ee))}),e.onUnmounted(()=>{window.removeEventListener("resize",re)}),e.watch(()=>l.autoplay,z=>{z?A():H()}),e.watch(()=>l.autoplayInterval,ee),e.watch(()=>l.initialSlide,z=>{requestAnimationFrame(()=>O(z,!0))}),e.watch([w,N],()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{if(x(),i.value===0)return;const z=Math.max(0,i.value-w.value),D=Math.min(o.value,z);O(D,!0)})})}),n({scrollToSlide:O}),(z,D)=>(e.openBlock(),e.createElementBlock("div",Vn,[e.createElementVNode("div",{ref_key:"carouselContainer",ref:r,class:e.normalizeClass(["rounded w-full h-full carousel",[{"carousel-horizontal":t.sliderOrientation=="horizontal"},{"carousel-vertical":t.sliderOrientation=="vertical"},{"cursor-grabbing !select-none":m.value}]]),style:{scrollSnapType:"none"}},[e.createElementVNode("div",{ref_key:"slidesContainer",ref:a,class:e.normalizeClass(["w-full h-full transition-transform duration-0 ease-out",t.sliderOrientation==="horizontal"?"flex":"block"]),style:e.normalizeStyle({gap:`${N.value}px`})},[e.renderSlot(z.$slots,"default",{},void 0,!0)],6)],2),t.showNavigationButtons?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([{"top-1/2 right-5 left-5 z-10 absolute flex justify-between items-center -translate-y-1/2 transform":t.sliderOrientation==="horizontal"},{"right-0 absolute flex justify-between items-center -translate-y-1/2 transform rotate-90 top-1/2 gap-3":t.sliderOrientation==="vertical"}])},[e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[l.infinite||o.value>0?(e.openBlock(),e.createElementBlock("div",Nn,[e.createElementVNode("div",{onClick:J,role:"button","aria-label":"Previous Slide"},[e.renderSlot(z.$slots,"prevButton",{},()=>[D[0]||(D[0]=e.createElementVNode("button",{class:"btn btn-circle text-xs",tabindex:"-1"},"❮",-1))],!0)])])):e.createCommentVNode("",!0)]),_:3}),D[2]||(D[2]=e.createElementVNode("div",{class:"flex-grow"},null,-1)),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[l.infinite||o.value<i.value-w.value?(e.openBlock(),e.createElementBlock("div",Dn,[e.createElementVNode("div",{onClick:q,role:"button","aria-label":"Next Slide"},[e.renderSlot(z.$slots,"nextButton",{},()=>[D[1]||(D[1]=e.createElementVNode("button",{class:"btn btn-circle text-xs",tabindex:"-1"},"❯",-1))],!0)])])):e.createCommentVNode("",!0)]),_:3})],2)):e.createCommentVNode("",!0),t.showIndicators?(e.openBlock(),e.createElementBlock("div",zn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(P,F)=>(e.openBlock(),e.createElementBlock("button",{key:`dot-${F}`,onClick:K=>g(F),class:e.normalizeClass(["btn btn-circle btn-xs",{"btn-active":F===o.value}]),"aria-label":`Go to slide ${F+1}`},null,10,Tn))),128))])):e.createCommentVNode("",!0)]))}}),ie=(t,n)=>{const l=t.__vccOpts||t;for(const[o,r]of n)l[o]=r;return l},In=ie(Mn,[["__scopeId","data-v-dd58428c"]]),On=ie(e.defineComponent({__name:"carouselItem",setup(t){const n=e.inject(lt,e.ref({}));return(l,o)=>(e.openBlock(),e.createElementBlock("div",{class:"w-full h-full carousel-item",style:e.normalizeStyle(e.unref(n))},[e.renderSlot(l.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-507384bc"]]),Pn={class:"flex gap-4 bg-base-100 w-full tabs tabs-boxed"},Ln=["onClick"],jn={key:0,class:"inline-component-wrapper flex grow justify-center items-center w-full h-full"},An={key:1,class:"flex flex-col"},Fn={class:"text-sm"},_n={key:0,class:"opacity-75 overflow-hidden text-xs truncate ..."},Un={key:1,class:"hidden md:block opacity-35 overflow-hidden text-xs truncate ..."},Rn={class:"hidden"},qn=["id"],Hn={class:"modal-box"},Wn={class:"font-bold text-lg"},Kn=["name","checked"],Yn={class:"collapse-title flex justify-between items-center pr-4 w-full font-medium text-xl"},Xn={key:0,class:"opacity-75 overflow-hidden text-sm truncate ..."},Jn={key:1,class:"opacity-35 text-sm"},Gn={class:"collapse-content flex place-content-center p-0"},Zn=ie(e.defineComponent({__name:"advancedSearch",props:{searchOptions:{},currentCategory:{},id:{},value:{}},emits:["search","update:search-data"],setup(t,{emit:n}){const l=t,o=n,r=l.id??`advancedSearch-${e.useId()}`,a=e.ref(null),s=e.ref(null),c={datetime:e.defineAsyncComponent(()=>Promise.resolve().then(()=>fo)),"standard-select":e.defineAsyncComponent(()=>Promise.resolve().then(()=>So)),"custom-text":e.defineAsyncComponent(()=>Promise.resolve().then(()=>qo))},i=e.ref({}),u=e.ref({left:"0px",top:"0px",transform:"translateX(0%)"}),m=e.ref(null),y=h=>{var B;if(h.value===void 0||h.value===null||h.value==="")return"";switch(h.type){case"datetime":if(typeof h.value=="string")try{const w=new Date(h.value);if(!isNaN(w.getTime()))return w.toLocaleString()}catch{}else if(h.range&&typeof h.value=="object"&&h.value!==null&&"start"in h.value&&"end"in h.value)try{const w=new Date(h.value.start),N=new Date(h.value.end);if(!isNaN(w.getTime())&&!isNaN(N.getTime()))return`${w.toLocaleDateString()} - ${N.toLocaleDateString()}`}catch{}break;case"custom-range":if(typeof h.value=="object"&&h.value!==null&&"start"in h.value&&"end"in h.value)return`${h.value.start} - ${h.value.end}`;break;case"custom-number":if(typeof h.value=="number")return h.value.toString();break;case"standard-select":case"custom-select":if((B=h.props)!=null&&B.options&&Array.isArray(h.props.options)){const w=h.props.options.find(N=>N.value===h.value);if(w)return w.text}return String(h.value);case"custom-text":if(typeof h.value=="string")return h.value;break}return String(h.value)};function f(h){var p,x;const B=(p=a.value)==null?void 0:p.name;if(!B){console.warn("componentValueUpdated called but no active tab.");return}const w=(x=l.searchOptions.find(b=>(b==null?void 0:b.category)===l.currentCategory))==null?void 0:x.tabs,N=w==null?void 0:w.find(b=>b.name===B);N?(N.value=h,o("update:search-data",{tab:N.name,data:h})):console.error(`Tab with name "${B}" not found in current category.`)}function d(h){f(h)}function $(){o("search")}async function v(h){var N;const B=document.getElementById(`advancedSearchMobile-${r}`),w=B&&B.contains(h.target);((N=a.value)==null?void 0:N.displayMode)==="popup"&&m.value&&!m.value.contains(h.target)&&!w&&(await e.nextTick(),a.value=null)}async function C(){if(typeof window<"u"&&window.innerWidth<=768){const h=document.getElementById(`advancedSearchMobile-${r}`);h?(a.value=null,h.showModal()):console.warn(`Mobile modal element not found. Ensure it exists with id="advancedSearchMobile-${r}".`)}}async function k(h){var w,N,p;if(typeof window<"u"&&window.innerWidth<=768){C();return}const B=h.displayMode??"popup";if(((w=a.value)==null?void 0:w.name)===h.name&&((N=a.value)==null?void 0:N.displayMode)===B)a.value=null;else if(a.value={...h,displayMode:B},await e.nextTick(),((p=a.value)==null?void 0:p.displayMode)==="popup"){const x=i.value[h.name];if(x&&m.value){const b=x.getBoundingClientRect(),I=m.value.getBoundingClientRect(),O=b.bottom-I.top,q=b.left+b.width/2-I.left;u.value={left:`${q}px`,top:`${O+8}px`,transform:"translateX(-50%)"}}else console.error("Tab element or search container not found for positioning:",h.name)}}const M=h=>{const B=h.relatedTarget;setTimeout(()=>{var w;((w=a.value)==null?void 0:w.displayMode)==="inline"&&m.value&&(!B||!m.value.contains(B))?(console.log("Blur detected outside container, closing inline view."),a.value=null):console.log("Blur detected, but staying within container or not an inline tab.")},50)},U=()=>{console.log("Enter key pressed on inline component, closing inline view."),a.value=null};e.watch(s,h=>{var B;console.log("advanced-search: inlineComponentRef changed. New Value:",h),console.log("advanced-search: activeTab.value:",a.value),h&&((B=a.value)==null?void 0:B.displayMode)==="inline"?(console.log("advanced-search: Inline component ref is available and active tab is inline. Attempting to focus child input..."),e.nextTick(()=>{console.log("advanced-search: Inside nextTick. Attempting to call child's focus method..."),console.log("advanced-search: Type of newValue:",typeof h),console.log("advanced-search: Does newValue have focusInput?",typeof h.focusInput=="function"),h&&typeof h.focusInput=="function"?(console.log("advanced-search: Calling exposed focusInput() method on child instance."),h.focusInput()):console.warn('advanced-search: Child inline component instance does not expose a "focusInput" method or is not ready.',h)})):console.log(h?"advanced-search: inlineComponentRef available, but active tab is not inline.":"advanced-search: inlineComponentRef is now null (component likely unmounted).")}),e.onMounted(()=>{document.addEventListener("click",v),window.addEventListener("resize",Y)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",v),window.removeEventListener("resize",Y)});const Y=()=>{var h,B;if(typeof window<"u"){const w=window.innerWidth<=768,N=a.value!==null&&(a.value.displayMode==="popup"||a.value.displayMode==="inline")&&window.innerWidth>768;!w&&(((h=a.value)==null?void 0:h.displayMode)==="popup"||((B=a.value)==null?void 0:B.displayMode)==="inline")&&window.innerWidth<=768&&(console.log("Resizing to mobile, closing active tab."),a.value=null),w&&!N&&a.value!==null&&(console.log("Resizing to desktop from potential mobile active state, closing active tab."),a.value=null);const p=document.getElementById(`advancedSearchMobile-${r}`);p!=null&&p.open&&!w&&(console.log("Modal is open on desktop, closing modal and active tab."),p.close(),a.value=null)}};return(h,B)=>{var w,N;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{ref_key:"searchContainer",ref:m,class:"w-full"},[e.createElementVNode("div",{class:"group/search relative flex place-items-center shadow-md p-2 border-2 border-base-300/25 rounded-sm w-full transition-all cursor-pointer md:cursor-auto",onClick:C},[e.createElementVNode("div",Pn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((w=l.searchOptions.find(p=>p.category===l.currentCategory))==null?void 0:w.tabs)||[],(p,x)=>{var b,I,O,q,J;return e.openBlock(),e.createElementBlock("button",{key:`${p.name}-${x}`,onClick:e.withModifiers(g=>k(p),["stop"]),class:e.normalizeClass([{"tab-active":((b=a.value)==null?void 0:b.name)===p.name,"tab-active-inline":((I=a.value)==null?void 0:I.name)===p.name&&((O=a.value)==null?void 0:O.displayMode)==="inline"},"group/searchitem after:top-0 after:-right-2 after:absolute relative first-of-type:flex-auto last-of-type:flex-auto after:bg-base-200 hover:bg-base-200 p-1 rounded-sm w-auto after:w-px after:h-10 overflow-x-hidden text-start md:after:content-[''] after:content-none last-of-type:after:content-none"]),ref_for:!0,ref:g=>i.value[p.name]=g},[((q=a.value)==null?void 0:q.name)===p.name&&((J=a.value)==null?void 0:J.displayMode)==="inline"?(e.openBlock(),e.createElementBlock("div",jn,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c[a.value.type]),e.mergeProps({ref_for:!0},a.value.props||{},{modelValue:a.value.value,onUpdated:B[0]||(B[0]=g=>d(g)),"onUpdate:modelValue":B[1]||(B[1]=g=>d(g)),onBlur:M,onKeydown:e.withKeys(e.withModifiers(U,["stop","prevent"]),["enter"]),ref_for:!0,ref_key:"inlineComponentRef",ref:s}),null,16,["modelValue","onKeydown"]))])):(e.openBlock(),e.createElementBlock("div",An,[e.createElementVNode("p",Fn,e.toDisplayString(p.name),1),p.value!==void 0&&p.value!==null&&p.value!==""?(e.openBlock(),e.createElementBlock("p",_n,e.toDisplayString(y(p)),1)):(e.openBlock(),e.createElementBlock("p",Un,e.toDisplayString(p.description),1))]))],10,Ln)}),128))]),a.value&&a.value.displayMode==="popup"?(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(u.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c[a.value.type]),e.mergeProps(a.value.props||{},{modelValue:a.value.value,onUpdated:B[2]||(B[2]=p=>f(p)),"onUpdate:modelValue":B[3]||(B[3]=p=>f(p))}),null,16,["modelValue"]))],4)):e.createCommentVNode("",!0),e.createElementVNode("button",{title:"search",type:"submit",class:"ml-1 btn btn-primary btn-square",onClick:e.withModifiers($,["stop"])},[e.createVNode(e.unref(ot),{size:24,color:"white"})])]),e.createElementVNode("div",Rn,[e.createElementVNode("button",{title:"search",onClick:B[4]||(B[4]=()=>{})},[e.createVNode(e.unref(ot),{size:24,color:"white"})])])],512),e.createElementVNode("dialog",{id:`advancedSearchMobile-${e.unref(r)}`,class:"modal"},[e.createElementVNode("div",Hn,[e.renderSlot(h.$slots,"additionalForMobile",{},()=>[e.createElementVNode("h3",Wn,e.toDisplayString(t.currentCategory),1)],!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((N=l.searchOptions.find(p=>p.category===l.currentCategory))==null?void 0:N.tabs)||[],(p,x)=>(e.openBlock(),e.createElementBlock("div",{class:"collapse bg-base-200 my-4",key:p.name},[e.createElementVNode("input",{type:"radio",name:`accordion-${e.unref(r)}`,checked:x===0},null,8,Kn),e.createElementVNode("div",Yn,[e.createElementVNode("div",null,e.toDisplayString(p.name),1),p.value!==void 0&&p.value!==null&&p.value!==""?(e.openBlock(),e.createElementBlock("div",Xn,e.toDisplayString(y(p)),1)):(e.openBlock(),e.createElementBlock("div",Jn,e.toDisplayString(p.description),1))]),e.createElementVNode("div",Gn,[B[7]||(B[7]=e.createElementVNode("br",null,null,-1)),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c[p.type]),e.mergeProps({ref_for:!0},p.props||{},{modelValue:p.value,onUpdated:B[5]||(B[5]=b=>f(b)),"onUpdate:modelValue":B[6]||(B[6]=b=>f(b))}),null,16,["modelValue"]))])]))),128)),e.createElementVNode("div",{class:"modal-action"},[e.createElementVNode("form",{method:"dialog"},[e.createElementVNode("button",{class:"btn btn-primary",onClick:$}," Close and Search ")])])])],8,qn)],64)}}}),[["__scopeId","data-v-577c3624"]]),Qn={class:"z-30 relative flex items-center bg-base-100 date-filter-input px-4 border-2 border-primary rounded-md w-full min-h-10 font-semibold text-primary text-sm"},eo={key:0},to={key:1},no=["id","onKeydown"],oo={key:2,class:"flex justify-center p-4"},lo={class:"join items-center gap-2 max-w-2xs md:max-w-full justify-between max-md:input max-md:input-bordered !rounded overflow-hidden mx-auto"},ao={class:"join-item"},ro=["id","disabled","value"],so={class:"join-item"},io=["id","disabled","value"],co={key:3,class:"p-4 min-w-2xs"},uo=["id","disabled","value"],mo={key:4,class:"flex px-4 my-4 w-full justify-end"},at=ie(e.defineComponent({__name:"datetimePicker",props:{mode:{default:"datetime"},range:{type:Boolean,default:!1},placeholder:{default:"Select date and time"},popup:{type:Boolean,default:!1},id:{default:"date-time-picker"},initialDate:{default:null},disabled:{type:Boolean,default:!1},locale:{default:"en-US"},format:{},firstDayOfWeek:{default:1},min:{},max:{},closeText:{default:"Close"}},emits:["update:modelValue","change"],setup(t,{emit:n}){const l=typeof window<"u",o=t,r=n,a=e.ref(null),s=e.ref(!1),c=e.ref(null),i=e.ref(null),u=e.ref(null),m=e.ref(null),y=e.ref(null),f=e.ref({from:"",to:"",single:""}),d=e.ref({single:null,start:null,end:null}),$=g=>g instanceof Date?g.toISOString():g,v=g=>g.split("T")[0]||"",C=g=>{const E=g instanceof Date?g:new Date(g);if(isNaN(E.getTime()))return"";const V=String(E.getHours()).padStart(2,"0"),T=String(E.getMinutes()).padStart(2,"0");return`${V}:${T}`},k=()=>{const g=new Date,E=C(g);let V=o.initialDate;if(!V&&o.mode!=="time"&&(V=o.range?{start:g,end:g}:g),!!V){if(!V){o.mode==="time"&&(o.range?(f.value.from=E,f.value.to=E):f.value.single=E);return}if(o.range&&typeof V=="object"&&"start"in V){const T=$(V.start),j=$(V.end);d.value.start=v(T),d.value.end=v(j),o.mode!=="date"&&(f.value.from=C(T),f.value.to=C(j))}else{const T=$(V);d.value.single=v(T),o.mode!=="date"&&(f.value.single=C(T))}}},M=e.computed(()=>{const g=T=>{if(!T)return"";if(T.includes(":"))return T;try{return new Date(T+"T00:00:00").toLocaleDateString(o.locale,{year:"numeric",month:"numeric",day:"numeric"})}catch{const[j,A,H]=T.split("-");return`${H}/${A}/${j}`}};let E="",V="";if((o.mode==="date"||o.mode==="datetime")&&(o.range?d.value.start&&d.value.end&&(E=`${d.value.start} - ${d.value.end}`):d.value.single&&(E=d.value.single)),(o.mode==="time"||o.mode==="datetime")&&(o.range?f.value.from&&f.value.to&&(V=`${f.value.from} - ${f.value.to}`):f.value.single&&(V=f.value.single)),o.mode==="date")return o.range?E.split(" - ").map(g).join(" - "):g(E);if(o.mode==="time")return V;if(o.mode==="datetime")if(o.range){const T=d.value.start,j=d.value.end,A=f.value.from,H=f.value.to;if(T&&j&&A&&H)return`${g(T)} ${A} - ${g(j)} ${H}`;if(T)return`${g(T)} ${A||""}`.trim()}else{const T=d.value.single,j=f.value.single;return`${g(T)} ${j||""}`.trim()}return""}),U=()=>{if(c.value)d.value.single=c.value.value||null;else if(i.value){const g=i.value.value;if(typeof g=="string"&&g.includes("/")){const[E,V]=g.split("/");d.value.start=E||null,d.value.end=V||null}else d.value.start=g||null,d.value.end=g||null}},Y=()=>d.value.start&&d.value.end?`${d.value.start}/${d.value.end}`:null,h=()=>{if(o.range){const V=d.value.start,T=d.value.end||d.value.start,j=f.value.from,A=f.value.to;if(o.mode==="time")return j&&A?{start:j,end:A}:null;if(o.mode==="date")return V&&T?{start:V,end:T}:null;if(o.mode==="datetime"){if(!V||!T)return null;const H=j?`${j}:00`:"00:00:00",ee=A?`${A}:00`:"23:59:59",re=`${V}T${H}`,Qe=`${T}T${ee}`;return{start:re,end:Qe}}return null}const g=d.value.single,E=f.value.single;if(o.mode==="time")return E||null;if(o.mode==="date")return g||null;if(o.mode==="datetime"){if(!g)return null;const V=E?`${E}:00`:"00:00:00";return`${g}T${V}`}return null},B=async()=>{U();const g=h();r("update:modelValue",g),r("change",g)},w=()=>{e.nextTick(()=>{B()})},N=g=>{const E=g.target;o.range?E===m.value?f.value.from=E.value:E===y.value&&(f.value.to=E.value):f.value.single=E.value,B()},p=()=>{s.value=!s.value},x=()=>{B(),s.value=!1},b=g=>{!o.popup||!s.value||setTimeout(()=>{const E=a.value,V=g.target,T=`date-picker-${o.id}-popup`;E&&!E.contains(V)&&!g.target.closest(`#${T}`)&&x()},0)},I=()=>{x()},O=()=>{B(),o.popup&&(s.value=!1)},q=()=>{if(!l)return;const g=o.range?i.value:c.value;g&&typeof g.navigate=="function"&&g.navigate(-1)},J=()=>{if(!l)return;const g=o.range?i.value:c.value;g&&typeof g.navigate=="function"&&g.navigate(1)};return e.onMounted(()=>{l&&Promise.resolve().then(()=>ba).catch(g=>{console.warn("Failed to load cally:",g)}),k()}),e.watch(d,async g=>{if(await e.nextTick(),c.value&&g.single){const E=g.single;c.value.value!==E&&(c.value.value=E)}if(i.value){const E=Y();E&&i.value.value!==E&&(i.value.value=E)}B()},{immediate:!0,deep:!0}),e.watch([d,c,i],async()=>{await e.nextTick(),c.value&&d.value.single&&!c.value.value&&(c.value.value=d.value.single),i.value&&d.value.start&&d.value.end&&!i.value.value&&(i.value.value=`${d.value.start}/${d.value.end}`),B()},{immediate:!0}),e.watch([u,m,y],()=>{B()},{immediate:!0}),(g,E)=>{const V=e.resolveComponent("calendar-month"),T=e.resolveComponent("calendar-date"),j=e.resolveComponent("calendar-range");return e.openBlock(),e.createElementBlock("div",{class:"inline-block relative w-fit lg:w-full",ref_key:"pickerContainer",ref:a,onMousedownCapture:b},[o.popup?(e.openBlock(),e.createElementBlock("div",{key:0,class:"flex items-center gap-2 cursor-pointer w-full",onClick:E[0]||(E[0]=A=>o.disabled?null:p())},[e.createElementVNode("div",Qn,[M.value?(e.openBlock(),e.createElementBlock("span",to,e.toDisplayString(M.value),1)):(e.openBlock(),e.createElementBlock("span",eo,e.toDisplayString(o.placeholder),1))])])):e.createCommentVNode("",!0),s.value||!o.popup?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["z-50 bg-base-100 rounded-md w-full min-w-xs overflow-hidden",{"absolute top-full left-0 mt-2 shadow-lg":o.popup,"mt-2":!o.popup}]),id:`date-picker-${o.id}-popup`,onKeydown:[E[1]||(E[1]=e.withKeys(e.withModifiers(()=>{},["prevent","stop"]),["tab"])),e.withKeys(I,["esc"]),e.withKeys(e.withModifiers(O,["prevent"]),["enter"])]},[!o.range&&o.mode!=="time"&&l?(e.openBlock(),e.createBlock(T,{key:0,class:"cally w-full",ref_key:"datePicker",ref:c,id:`${o.id}-date`,min:o.min,max:o.max,disabled:o.disabled,"first-day-of-week":o.firstDayOfWeek,onChange:w},{default:e.withCtx(()=>[e.createElementVNode("button",{slot:"previous",class:"btn-outline btn btn-primary md:btn-sm",onClick:q},[...E[2]||(E[2]=[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.createElementVNode("button",{slot:"next",class:"btn-outline btn btn-primary md:btn-sm",onClick:J},[...E[3]||(E[3]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"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.createVNode(V,{locale:o.locale},null,8,["locale"])]),_:1},8,["id","min","max","disabled","first-day-of-week"])):e.createCommentVNode("",!0),o.range&&o.mode!=="time"&&l?(e.openBlock(),e.createBlock(j,{key:1,class:"cally w-full",ref_key:"rangeDatePicker",ref:i,id:`${o.id}-date-range`,min:o.min,max:o.max,disabled:o.disabled,"first-day-of-week":o.firstDayOfWeek,onChange:w},{default:e.withCtx(()=>[e.createElementVNode("button",{slot:"previous",class:"btn-outline btn btn-primary md:btn-sm",onClick:q},[...E[4]||(E[4]=[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.createElementVNode("button",{slot:"next",class:"btn-outline btn btn-primary md:btn-sm",onClick:J},[...E[5]||(E[5]=[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.createVNode(V,{locale:o.locale},null,8,["locale"])]),_:1},8,["id","min","max","disabled","first-day-of-week"])):e.createCommentVNode("",!0),o.range&&o.mode!=="date"?(e.openBlock(),e.createElementBlock("div",oo,[e.createElementVNode("div",lo,[e.createElementVNode("div",ao,[e.createElementVNode("input",{class:"text-center hover:border-b-2 hover:-mb-0.5 open:bg-primary open:p-1 open:-m-0.5 open:rounded w-full relative",type:"time",ref_key:"timeFromInput",ref:m,id:`${o.id}-time-from`,placeholder:"from",onChange:N,disabled:o.disabled,value:f.value.from||""},null,40,ro)]),E[6]||(E[6]=e.createElementVNode("svg",{class:"join-item",viewBox:"0 0 1024 1024",focusable:"false","data-icon":"swap-right",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"})],-1)),e.createElementVNode("div",so,[e.createElementVNode("input",{class:"text-center hover:border-b-2 hover:-mb-0.5 open:bg-primary open:p-1 open:-m-0.5 open:rounded w-full relative",type:"time",ref_key:"timeToInput",ref:y,id:`${o.id}-time-to`,onChange:N,disabled:o.disabled,value:f.value.to||""},null,40,io)])])])):e.createCommentVNode("",!0),!o.range&&o.mode!=="date"?(e.openBlock(),e.createElementBlock("div",co,[e.createElementVNode("input",{class:"open:bg-primary open:rounded w-full input input-bordered justify-center",type:"time",ref_key:"timeInput",ref:u,id:`${o.id}-time`,onChange:N,disabled:o.disabled,value:f.value.single||""},null,40,uo)])):e.createCommentVNode("",!0),o.popup&&o.closeText?(e.openBlock(),e.createElementBlock("div",mo,[e.createElementVNode("button",{class:"btn btn-primary max-lg:w-full",onClick:x},e.toDisplayString(o.closeText),1)])):e.createCommentVNode("",!0)],42,no)):e.createCommentVNode("",!0)],544)}}}),[["__scopeId","data-v-e0b34494"]]),fo=Object.freeze(Object.defineProperty({__proto__:null,default:at},Symbol.toStringTag,{value:"Module"})),po=["value","checked","onChange","disabled"],ho=e.defineComponent({__name:"rating",props:{initialRating:{default:0},numberOfStars:{default:5},halfStars:{type:Boolean,default:!0},isInteractive:{type:Boolean,default:!1},size:{default:"sm"},shape:{default:"star"},color:{default:"bg-yellow-400"},gap:{default:0}},setup(t){const n=t,l=e.ref(n.initialRating);e.watch(()=>n.initialRating,r=>{l.value=r});const o=r=>{l.value=r};return(r,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["rating",[`rating-${n.size}`,{"rating-half":t.halfStars},{"pointer-events-none":!t.isInteractive}]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.numberOfStars*(t.halfStars?2:1),s=>(e.openBlock(),e.createElementBlock("input",{key:s,type:"radio",value:t.halfStars?s*.5:s,checked:l.value===(t.halfStars?s*.5:s),onChange:c=>t.isInteractive?o(t.halfStars?s*.5:s):null,class:e.normalizeClass(["mask",[{"mask-half-1":t.halfStars&&s%2!==0,"mask-half-2":t.halfStars&&s%2===0,"cursor-pointer":t.isInteractive,"cursor-default":!t.isInteractive,"mask-star":t.shape==="star","mask-star-2":t.shape==="star-bold","mask-heart":t.shape==="heart","mask-hexagon":t.shape==="hexagon-vertical","mask-hexagon-2":t.shape==="hexagon-horizontal","mask-decagon":t.shape==="decagon","mask-pentagon":t.shape==="pentagon","mask-diamond":t.shape==="diamond","mask-square":t.shape==="square","mask-triangle":t.shape==="triangle-top","mask-triangle-2":t.shape==="triangle-bottom","mask-triangle-3":t.shape==="triangle-left","mask-triangle-4":t.shape==="triangle-right"},l.value>=(t.halfStars?s*.5:s)?n.color:""]]),style:e.normalizeStyle({marginRight:t.halfStars&&s%2===0?`${n.gap}px`:t.halfStars?"0":`${n.gap}px`}),disabled:!t.isInteractive},null,46,po))),128))],2))}}),go={class:"badge"},yo=["onClick"],bo={class:"opacity-75"},ko=["placeholder"],wo=e.defineComponent({__name:"taginput",props:{modelValue:{},maxTagAmount:{},placeholder:{},class:{}},emits:["update:modelValue"],setup(t,{emit:n}){const l=t,o=n,r=e.ref([...l.modelValue]),a=l.maxTagAmount===void 0?-1:l.maxTagAmount,s=e.ref(null),c=e.ref(""),i=e.computed(()=>a<0||r.value.length<a),u=()=>{const d=c.value.trim();d&&!r.value.includes(d)&&(r.value.push(d),o("update:modelValue",r.value),c.value="")},m=d=>{r.value=r.value.filter($=>$!==d),o("update:modelValue",r.value)},y=()=>{c.value===""&&(r.value.pop(),o("update:modelValue",r.value))},f=d=>{d.key==="Enter"?u():d.key==="Backspace"&&c.value===""&&y()};return e.watch(()=>l.modelValue,d=>{r.value=[...d]}),(d,$)=>(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",d.$props.class])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,v=>e.renderSlot(d.$slots,"tag",{key:v,tag:v},()=>[e.createElementVNode("div",go,[e.createElementVNode("button",{class:"px-1! py-0! h-fit font-bold cursor-pointer",onClick:C=>m(v),"aria-label":"Remove tag"},"X",8,yo),e.createElementVNode("span",bo,e.toDisplayString(v),1)])])),128)),e.renderSlot(d.$slots,"input",{showInput:i.value},()=>[i.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,ref_key:"inputRef",ref:s,"onUpdate:modelValue":$[0]||($[0]=v=>c.value=v),type:"text",placeholder:t.placeholder||"Type here",class:"h-full input input-ghost",onKeydown:f,"aria-label":"Add tags"},null,40,ko)),[[e.vModelText,c.value]]):e.createCommentVNode("",!0)])],2))}}),vo={class:"w-full max-w-xs form-control"},xo={key:0,class:"label"},Eo={class:"label-text"},Bo=["value"],$o={key:0,value:"",disabled:"",selected:""},Co=["value"],rt=e.defineComponent({__name:"select",props:{options:{},label:{},placeholder:{},modelValue:{}},emits:["update:modelValue"],setup(t,{expose:n,emit:l}){console.log(t.placeholder);const r=l,a=e.ref(null),s=i=>{const u=i.target;r("update:modelValue",u.value)};return n({focusInput:()=>{var i;console.log("select.vue: focusInput method called."),(i=a.value)==null||i.focus()}}),(i,u)=>(e.openBlock(),e.createElementBlock("div",vo,[t.label?(e.openBlock(),e.createElementBlock("label",xo,[e.createElementVNode("span",Eo,e.toDisplayString(t.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("select",{ref_key:"selectElement",ref:a,class:"rounded-md w-full select-bordered select",value:t.modelValue,onChange:s},[t.placeholder?(e.openBlock(),e.createElementBlock("option",$o,e.toDisplayString(t.placeholder),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,m=>(e.openBlock(),e.createElementBlock("option",{key:m.value,value:m.value},e.toDisplayString(m.text),9,Co))),128))],40,Bo)]))}}),So=Object.freeze(Object.defineProperty({__proto__:null,default:rt},Symbol.toStringTag,{value:"Module"})),Vo={key:0,class:"label"},No={class:"label-text"},Do=["onKeydown","aria-expanded","aria-activedescendant"],zo=["placeholder","disabled"],To={class:"top-full z-10 absolute bg-base-100 shadow-lg mt-1 rounded-md w-full dropdown-content",role:"listbox"},Mo={class:"flex-nowrap p-0 w-[inherit] max-h-60 overflow-y-auto menu"},Io=["onMousedown","id","aria-selected"],Oo={__name:"filterableSelect",props:{options:{type:Array,required:!0,default:()=>[]},label:{type:String,default:""},placeholder:{type:String,default:"Select an option"},modelValue:{type:[String,Number,Object,null],default:null},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","select","clear"],setup(t,{expose:n,emit:l}){const o=t,r=l,a=e.useSlots(),s=e.computed(()=>{const x=(a.default?a.default():[]).filter(b=>b.type!==e.Comment);return console.log("hasDefaultSlotContent computed:",x.length>0),x.length>0}),c=e.ref(""),i=e.ref(null),u=e.ref(!1),m=e.ref(null),y=e.ref(null),f=e.ref(null),d=e.ref(null),$=()=>{u.value=!o.disabled},v=()=>{u.value=!1,d.value=null,s.value||(i.value&&c.value!==i.value.text?c.value=i.value.text:i.value||(c.value=""))},C=()=>{u.value?v():$()},k=e.computed(()=>{const p=c.value?c.value.toLowerCase():"";return p===""&&!u.value?[]:o.options.filter(b=>b&&b.text?b.text.toLowerCase().includes(p):"")});e.watch(()=>o.modelValue,(p,x)=>{if(p!==x&&v(),p==null)i.value=null,!u.value&&!s.value&&(c.value="");else{const b=o.options.find(I=>I.value===p);b?(i.value=b,!u.value&&!s.value&&(c.value=b.text)):(i.value=null,!u.value&&!s.value&&(c.value=""))}},{immediate:!0});const M=p=>{y.value&&!y.value.contains(p.target)&&v()},U=()=>{setTimeout(()=>{y.value&&!y.value.contains(document.activeElement)&&v()},100)};e.watch(u,p=>{p?setTimeout(()=>{document.addEventListener("click",M)},0):document.removeEventListener("click",M)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",M),window.removeEventListener("keydown",N)});const Y=()=>{if(o.disabled)return;const p=i.value;r("update:modelValue",null),p&&r("clear",p)},h=p=>{i.value=p,s.value||(c.value=p.text),r("update:modelValue",p.value),r("select",p),v()},B=()=>{k.value.length>0&&h(k.value[0])},w=()=>{u.value||$()},N=p=>{if(!u.value||k.value.length===0)return;const x=k.value.findIndex((I,O)=>"option-"+O===d.value);let b=-1;if(p.key==="ArrowDown")p.preventDefault(),b=(x+1)%k.value.length;else if(p.key==="ArrowUp")p.preventDefault(),b=(x-1+k.value.length)%k.value.length;else if(p.key==="Enter"&&d.value){p.preventDefault();const I=k.value.find((O,q)=>"option-"+q===d.value);I&&h(I);return}else if(p.key==="Escape"){p.preventDefault(),v(),f.value&&f.value.focus();return}else if(s.value)return;if(b!==-1){d.value="option-"+b;const I=document.getElementById(d.value);I&&requestAnimationFrame(()=>{I.scrollIntoView({block:"nearest",behavior:"smooth"})})}};return e.watch(u,p=>{p?(window.addEventListener("keydown",N),!s.value&&!c.value&&i.value&&(c.value=i.value.text)):window.removeEventListener("keydown",N)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",M),window.removeEventListener("keydown",N)}),n({isDropdownOpen:u,selectedItem:i,openDropdown:$,closeDropdown:v,toggleDropdown:C,selectItem:h,filterText:c,hasDefaultSlotContent:s}),(p,x)=>(e.openBlock(),e.createElementBlock("div",{class:"relative w-full max-w-xs form-control",ref_key:"componentRoot",ref:y},[t.label?(e.openBlock(),e.createElementBlock("label",Vo,[e.createElementVNode("span",No,e.toDisplayString(t.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["flex items-center input-bordered rounded-md w-fit cursor-pointer",{input:!s.value,select:!s.value}]),style:e.normalizeStyle(i.value?"background-image: unset; padding-right: 0.5rem;":""),tabindex:"0",onClick:x[1]||(x[1]=b=>s.value?C():$()),onKeydown:[e.withKeys(e.withModifiers(B,["prevent"]),["enter"]),e.withKeys(e.withModifiers(B,["prevent"]),["space"])],onBlur:U,role:"combobox","aria-haspopup":"listbox","aria-expanded":u.value,"aria-activedescendant":d.value,"aria-autocomplete":"list",ref_key:"activatorWrapper",ref:f},[e.renderSlot(p.$slots,"default",{},()=>[s.value?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,type:"text",placeholder:t.placeholder,class:"bg-transparent border-none focus:outline-none w-full","onUpdate:modelValue":x[0]||(x[0]=b=>c.value=b),ref_key:"filterInput",ref:m,onFocus:$,onInput:w,tabindex:"-1",disabled:o.disabled},null,40,zo)),[[e.vModelText,c.value]])]),i.value&&!t.disabled?(e.openBlock(),e.createBlock(e.unref(ln),{key:0,size:20,class:"mx-2 text-base-content/50 hover:text-base-content/80 cursor-pointer",onClick:e.withModifiers(Y,["stop"])})):e.createCommentVNode("",!0),s.value&&!i.value?(e.openBlock(),e.createBlock(e.unref(on),{key:1,class:e.normalizeClass([{"rotate-180":u.value},"mx-2"]),size:20},null,8,["class"])):e.createCommentVNode("",!0)],46,Do),e.withDirectives(e.createElementVNode("div",To,[e.createElementVNode("ul",Mo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,(b,I)=>(e.openBlock(),e.createElementBlock("li",{key:b.value,onMousedown:e.withModifiers(O=>h(b),["prevent"]),class:"hover:bg-base-200 rounded-md w-full cursor-pointer",id:"option-"+I,role:"option","aria-selected":i.value&&i.value.value===b.value},[e.createElementVNode("a",null,e.toDisplayString(b.text),1)],40,Io))),128))])],512),[[e.vShow,u.value&&k.value.length>0]])],512))}},Po={class:"w-full max-w-xs form-control"},Lo={key:0,class:"label"},jo={class:"label-text"},Ao=["type","placeholder","disabled","value"],Fo={key:1,class:"label"},_o={class:"label-text-alt text-error validator-hint"},Uo={key:2,class:"label"},Ro={class:"label-text-alt text-success validator-hint"},st=e.defineComponent({__name:"inputField",props:{modelValue:{default:""},label:{default:""},placeholder:{default:""},type:{default:"text"},rules:{default:()=>({})},needsValidation:{type:Boolean,default:!1},successMessage:{default:""},size:{default:"md"},color:{default:""},style:{default:""},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","validate"],setup(t,{expose:n,emit:l}){const o=t,r=l,a=e.ref(null),s=e.ref(!1),c=e.ref(""),i=e.computed(()=>{var C,k,M,U;let d=!0,$="";const v=o.modelValue;return(C=o.rules)!=null&&C.required&&(v==null||v==="")&&(d=!1,$="This field is required."),d&&((k=o.rules)==null?void 0:k.minLength)!==void 0&&typeof v=="string"&&v.length<o.rules.minLength&&(d=!1,$=`Must be at least ${o.rules.minLength} characters.`),d&&((M=o.rules)==null?void 0:M.maxLength)!==void 0&&typeof v=="string"&&v.length>o.rules.maxLength&&(d=!1,$=`Cannot exceed ${o.rules.maxLength} characters.`),d&&((U=o.rules)!=null&&U.email)&&typeof v=="string"&&v&&(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(v)||(d=!1,$="Please enter a valid email address.")),c.value=$,r("validate",d),d}),u=e.computed(()=>s.value&&!i.value),m=d=>{const $=d.target;r("update:modelValue",$.value),s.value&&i.value},y=()=>{s.value=!0,i.value};return e.watch(()=>o.modelValue,()=>{s.value&&i.value}),n({focusInput:()=>{var d;console.log("inputField.vue: focusInput method called."),(d=a.value)==null||d.focus()},isValid:i,isTouched:s,errorMessage:c}),(d,$)=>(e.openBlock(),e.createElementBlock("div",Po,[t.label?(e.openBlock(),e.createElementBlock("label",Lo,[e.createElementVNode("span",jo,e.toDisplayString(t.label),1)])):e.createCommentVNode("",!0),e.renderSlot(d.$slots,"default"),e.createElementVNode("input",{ref_key:"inputElement",ref:a,type:t.type,placeholder:t.placeholder,disabled:o.disabled,class:e.normalizeClass(["input-bordered rounded-md w-full input validator",[{"input-xs":t.size==="xs","input-sm":t.size==="sm","input-md":t.size==="md","input-lg":t.size==="lg","input-xl":t.size==="xl","input-ghost":t.style==="ghost","input-neutral":t.color==="neutral"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-primary":t.color==="primary"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-secondary":t.color==="secondary"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-accent":t.color==="accent"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-info":t.color==="info"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-success":t.color==="success"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-warning":t.color==="warning"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-error":u.value,"input-success-validation":i.value&&s.value&&!u.value&&t.needsValidation}]]),value:t.modelValue,onInput:m,onBlur:y},null,42,Ao),u.value?(e.openBlock(),e.createElementBlock("div",Fo,[e.createElementVNode("span",_o,e.toDisplayString(c.value),1)])):i.value&&s.value&&t.successMessage?(e.openBlock(),e.createElementBlock("div",Uo,[e.createElementVNode("span",Ro,e.toDisplayString(t.successMessage),1)])):e.createCommentVNode("",!0)]))}}),qo=Object.freeze(Object.defineProperty({__proto__:null,default:st},Symbol.toStringTag,{value:"Module"})),Ho=e.defineComponent({__name:"loader",props:{loading:{type:Boolean,default:!0},size:{default:"md"},type:{default:"spinner"},color:{default:"primary"}},setup(t){const n=t,l=e.ref(n.loading);return e.watch(()=>n.loading,o=>{l.value=o}),(o,r)=>l.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["loading",[{"loading-xs":t.size==="xs"},{"loading-sm":t.size==="sm"},{"loading-md":t.size==="md"},{"loading-lg":t.size==="lg"},{"loading-xl":t.size==="xl"},{"loading-spinner":t.type==="spinner"},{"loading-dots":t.type==="dots"},{"loading-ring":t.type==="ring"},{"loading-balls":t.type==="balls"},{"loading-bars":t.type==="bars"},{"loading-infinity":t.type==="infinity"},{"text-primary":t.color==="primary"},{"text-secondary":t.color==="secondary"},{"text-accent":t.color==="accent"},{"text-neutral":t.color==="neutral"},{"text-info":t.color==="info"},{"text-success":t.color==="success"},{"text-warning":t.color==="warning"},{"text-error":t.color==="error"}]])},null,2)):e.createCommentVNode("",!0)}}),Wo={class:"container flex flex-col sm:flex-row"},Ko={class:"footer-title"},Yo=["href"],Xo={key:0,class:"sm:hidden w-full"},Jo={class:"border-b-2 border-base-100 last:border-b-0 w-full"},Go={tabindex:"0",class:"collapse collapse-plus w-full"},Zo={class:"collapse-title font-bold text-lg collapsible-footer-title"},Qo={class:"collapse-content flex w-full text-sm"},el={class:"flex flex-col gap-2.5"},tl={class:"w-full"},nl=["href"],ol={class:"w-full"},ll=e.defineComponent({__name:"footer",props:{items:{},background:{},color:{},collapseOnMobile:{type:Boolean,default:!1},rows:{default:1}},setup(t){const n=t;return(l,o)=>(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",Wo,[e.createElementVNode("div",{class:e.normalizeClass(["footer sm:footer-horizontal",[{"sm:grid-rows-1":n.rows===1},{"sm:grid-rows-2":n.rows===2},{"sm:grid-rows-3":n.rows===3}]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,r=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass([{"hidden sm:grid":t.collapseOnMobile}])},[e.createElementVNode("h6",Ko,e.toDisplayString(r.title),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.items,a=>(e.openBlock(),e.createElementBlock("a",{class:"link link-hover",href:a.link},e.toDisplayString(a.text),9,Yo))),256))],2))),256)),t.collapseOnMobile?(e.openBlock(),e.createElementBlock("nav",Xo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,r=>(e.openBlock(),e.createElementBlock("ul",Jo,[e.createElementVNode("div",Go,[e.createElementVNode("div",Zo,e.toDisplayString(r.title),1),e.createElementVNode("div",Qo,[e.createElementVNode("ul",el,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.items,a=>(e.openBlock(),e.createElementBlock("li",tl,[e.createElementVNode("a",{class:"w-full font-medium link link-hover",href:a.link},e.toDisplayString(a.text),9,nl)]))),256))])])])]))),256))])):e.createCommentVNode("",!0)],2),e.createElementVNode("aside",ol,[e.renderSlot(l.$slots,"default")])])],2))}}),al={},rl={class:"min-h-40 container hero"},sl={class:"px-0! text-center hero-content"},il={class:"mt-9 text-4xl"};function cl(t,n){return e.openBlock(),e.createElementBlock("div",rl,[e.createElementVNode("div",sl,[e.createElementVNode("div",null,[e.createElementVNode("h1",il,[e.renderSlot(t.$slots,"title",{},()=>[n[0]||(n[0]=e.createTextVNode("hero title",-1))])]),e.createElementVNode("p",null,[e.renderSlot(t.$slots,"description",{class:"py-9"})]),e.renderSlot(t.$slots,"call-to-action-block",{class:"max-w-full"},()=>[n[1]||(n[1]=e.createElementVNode("button",{class:"btn btn-primary"},"Call to action",-1))])])])])}const dl=ie(al,[["render",cl]]),ul={class:"flex flex-row place-content-center gap-4 categories"},ml=["onClick"],fl=e.defineComponent({__name:"categoryNavigation",props:{searchOptions:{},currentCategory:{}},emits:["update:currentCategory"],setup(t,{emit:n}){const l=t,o=n;function r(a){o("update:currentCategory",a)}return(a,s)=>(e.openBlock(),e.createElementBlock("div",ul,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.searchOptions,c=>(e.openBlock(),e.createElementBlock("div",{key:c.category},[e.createElementVNode("button",{onClick:i=>r(c.category),class:e.normalizeClass(["truncate btn btn-ghost",{"font-semibold":l.currentCategory===c.category}])},e.toDisplayString(c.category),11,ml)]))),128))]))}}),pl={class:"md:flex hidden navbar-start"},hl={class:"md:flex justify-center items-center hidden navbar-center"},gl={class:"md:flex hidden navbar-end"},yl={class:"navbar-bottom md:flex hidden"},bl=ie(e.defineComponent({__name:"navigationBar",props:{isCollapsed:{type:Boolean,default:!0}},setup(t){const n=t;return(l,o)=>(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",n.isCollapsed?"collapsed":""])},[e.createElementVNode("div",pl,[e.renderSlot(l.$slots,"start",{},void 0,!0)]),e.createElementVNode("div",hl,[e.renderSlot(l.$slots,"center",{},void 0,!0)]),e.createElementVNode("div",gl,[e.renderSlot(l.$slots,"end",{},void 0,!0)]),e.createElementVNode("div",yl,[e.renderSlot(l.$slots,"bottom",{},void 0,!0)])],2))}}),[["__scopeId","data-v-8ddb2b45"]]),kl={key:0,class:"hidden top-4 right-0 absolute md:flex gap-4"},wl=["onClick","aria-selected"],vl={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"},xl={class:"p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full"},El=e.defineComponent({__name:"tab",props:{items:{},withControlls:{type:Boolean,default:!1},rotateTabsAfter:{default:0},buttonOnlyMode:{type:Boolean,default:!1}},emits:["tab-changed"],setup(t,{emit:n}){const l=t,o=e.ref(l.items[0]),r=n;function a(i){o.value=i,r("tab-changed",i)}function s(){const u=(l.items.indexOf(o.value)+1)%l.items.length;a(l.items[u])}function c(){const u=(l.items.indexOf(o.value)-1+l.items.length)%l.items.length;a(l.items[u])}return e.onMounted(()=>{l.items&&a(l.items[0])}),e.onUnmounted(()=>{l.rotateTabsAfter&&l.rotateTabsAfter>0&&setInterval(()=>{s()},l.rotateTabsAfter*1e3)}),(i,u)=>(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":t.buttonOnlyMode}])},[t.withControlls?(e.openBlock(),e.createElementBlock("div",kl,[e.createElementVNode("button",{onClick:u[0]||(u[0]=m=>c()),class:"cursor-pointer"},"Previous"),e.createElementVNode("button",{onClick:u[1]||(u[1]=m=>s()),class:"text-primary cursor-pointer"},"Next")])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,m=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("a",{type:"button",role:"tab",class:e.normalizeClass(["min-w-max tab",m===o.value?"bg-primary text-base-100":""]),onClick:y=>a(m),"aria-selected":o.value==m},e.toDisplayString(m),11,wl),t.buttonOnlyMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",vl,[e.renderSlot(i.$slots,`${m}-tab`)]))],64))),256))],2),e.createElementVNode("div",xl,[e.renderSlot(i.$slots,"default")])],64))}});typeof document>"u"&&(globalThis.document={}),typeof window>"u"&&(globalThis.window=globalThis);class Bl{constructor(n){tt(this,se);tt(this,me,new Set);nt(this,se,n)}get current(){return pe(this,se)}set current(n){pe(this,se)!=n&&(nt(this,se,n),pe(this,me).forEach(l=>l(n)))}on(n){return pe(this,me).add(n),()=>pe(this,me).delete(n)}}se=new WeakMap,me=new WeakMap;const it=t=>new Bl(t),Me=Symbol.for("atomico.hooks");globalThis[Me]=globalThis[Me]||{};let ce=globalThis[Me];const $l=Symbol.for("Atomico.suspense"),ct=Symbol.for("Atomico.effect"),Cl=Symbol.for("Atomico.layoutEffect"),dt=Symbol.for("Atomico.insertionEffect"),de=(t,n,l)=>{const{i:o,hooks:r}=ce.c,a=r[o]=r[o]||{};return a.value=t(a.value),a.effect=n,a.tag=l,ce.c.i++,r[o].value},Sl=t=>de((n=it(t))=>n),ge=()=>de((t=it(ce.c.host))=>t),ut=()=>ce.c.update,Vl=(t,n,l=0)=>{let o={},r=!1;const a=()=>r,s=(c,i)=>{for(const u in o){const m=o[u];m.effect&&m.tag===c&&(m.value=m.effect(m.value,i))}};return{load:c=>{ce.c={host:n,hooks:o,update:t,i:0,id:l};let i;try{r=!1,i=c()}catch(u){if(u!==$l)throw u;r=!0}finally{ce.c=null}return i},cleanEffects:c=>(s(dt,c),()=>(s(Cl,c),()=>{s(ct,c)})),isSuspense:a}},ue=Symbol.for;function mt(t,n){const l=t.length;if(l!==n.length)return!1;for(let o=0;o<l;o++){let r=t[o],a=n[o];if(r!==a)return!1}return!0}const Q=t=>typeof t=="function",ye=t=>typeof t=="object",{isArray:Nl}=Array,Ie=(t,n)=>(n?t instanceof HTMLStyleElement:!0)&&"hydrate"in((t==null?void 0:t.dataset)||{});function ft(t,n){let l;const o=r=>{let{length:a}=r;for(let s=0;s<a;s++){const c=r[s];if(c&&Array.isArray(c))o(c);else{const i=typeof c;if(c==null||i==="function"||i==="boolean")continue;i==="string"||i==="number"?(l==null&&(l=""),l+=c):(l!=null&&(n(l),l=null),n(c))}}};o(t),l!=null&&n(l)}const pt=(t,n,l)=>(t.addEventListener(n,l),()=>t.removeEventListener(n,l));class ht{constructor(n,l,o){this.message=l,this.target=n,this.value=o}}class gt extends ht{}class Dl extends ht{}const Ce="Custom",zl=null,Tl={true:1,"":1,1:1};function Ml(t,n,l,o,r){const{type:a,reflect:s,event:c,value:i,attr:u=Il(n)}=(l==null?void 0:l.name)!=Ce&&ye(l)&&l!=zl?l:{type:l},m=(a==null?void 0:a.name)===Ce&&a.map,y=i!=null?a==Function||!Q(i)?()=>i:i:null;Object.defineProperty(t,n,{configurable:!0,set(f){const d=this[n];y&&a!=Boolean&&f==null&&(f=y());const{error:$,value:v}=(m?Ll:jl)(a,f);if($&&v!=null)throw new gt(this,`The value defined for prop '${n}' must be of type '${a.name}'`,v);d!=v&&(this._props[n]=v??void 0,this.update(),c&&yt(this,c),this.updated.then(()=>{s&&(this._ignoreAttr=u,Ol(this,a,u,this[n]),this._ignoreAttr=null)}))},get(){return this._props[n]}}),y&&(r[n]=y()),o[u]={prop:n,type:a}}const yt=(t,{type:n,base:l=CustomEvent,...o})=>t.dispatchEvent(new l(n,o)),Il=t=>t.replace(/([A-Z])/g,"-$1").toLowerCase(),Ol=(t,n,l,o)=>o==null||n==Boolean&&!o?t.removeAttribute(l):t.setAttribute(l,(n==null?void 0:n.name)===Ce&&(n!=null&&n.serialize)?n==null?void 0:n.serialize(o):ye(o)?JSON.stringify(o):n==Boolean?"":o),Pl=(t,n)=>t==Boolean?!!Tl[n]:t==Number?Number(n):t==String?n:t==Array||t==Object?JSON.parse(n):t.name==Ce?n:new t(n),Ll=({map:t},n)=>{try{return{value:t(n),error:!1}}catch{return{value:n,error:!0}}},jl=(t,n)=>t==null||n==null?{value:n,error:!1}:t!=String&&n===""?{value:void 0,error:!1}:t==Object||t==Array||t==Symbol?{value:n,error:{}.toString.call(n)!==`[object ${t.name}]`}:n instanceof t?{value:n,error:t==Number&&Number.isNaN(n.valueOf())}:t==String||t==Number||t==Boolean?{value:n,error:t==Number?typeof n!="number"?!0:Number.isNaN(n):t==String?typeof n!="string":typeof n!="boolean"}:{value:n,error:!0};let Al=0;const Fl=t=>{var l;return((l=(t==null?void 0:t.dataset)||{})==null?void 0:l.hydrate)||""||"c"+Al++},be=(t,n=HTMLElement)=>{const l={},o={},r="prototype"in n&&n.prototype instanceof Element,a=r?n:"base"in n?n.base:HTMLElement,{props:s,styles:c}=r?t:n;class i extends a{constructor(){super(),this._setup(),this._render=()=>t({...this._props});for(const m in o)this[m]=o[m]}static get styles(){return[super.styles,c]}async _setup(){if(this._props)return;this._props={};let m,y;this.mounted=new Promise(C=>this.mount=()=>{C(),m!=this.parentNode&&(y!=m?this.unmounted.then(this.update):this.update()),m=this.parentNode}),this.unmounted=new Promise(C=>this.unmount=()=>{C(),(m!=this.parentNode||!this.isConnected)&&(f.cleanEffects(!0)()(),y=this.parentNode,m=null)}),this.symbolId=this.symbolId||Symbol(),this.symbolIdParent=Symbol();const f=Vl(()=>this.update(),this,Fl(this));let d,$=!0;const v=Ie(this);this.update=()=>(d||(d=!0,this.updated=(this.updated||this.mounted).then(()=>{try{const C=f.load(this._render),k=f.cleanEffects();return C&&C.render(this,this.symbolId,v),d=!1,$&&!f.isSuspense()&&($=!1,!v&&_l(this)),k()}finally{d=!1}}).then(C=>{C&&C()})),this.updated),this.update()}connectedCallback(){this.mount(),super.connectedCallback&&super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback(),this.unmount()}attributeChangedCallback(m,y,f){if(l[m]){if(m===this._ignoreAttr||y===f)return;const{prop:d,type:$}=l[m];try{this[d]=Pl($,f)}catch{throw new Dl(this,`The value defined as attr '${m}' cannot be parsed by type '${$.name}'`,f)}}else super.attributeChangedCallback(m,y,f)}static get props(){return{...super.props,...s}}static get observedAttributes(){const m=super.observedAttributes||[];for(const y in s)Ml(this.prototype,y,s[y],l,o);return Object.keys(l).concat(m)}}return i};function _l(t){const{styles:n}=t.constructor,{shadowRoot:l}=t;if(l&&n.length){const o=[];ft(n,r=>{r&&(r instanceof Element?l.appendChild(r.cloneNode(!0)):o.push(r))}),o.length&&(l.adoptedStyleSheets=o)}}const bt=t=>(n,l)=>{de(([o,r]=[])=>((r||!r)&&(r&&mt(r,l)?o=o||!0:(Q(o)&&o(),o=null)),[o,l]),([o,r],a)=>a?(Q(o)&&o(),[]):[o||n(),r],t)},ke=bt(ct),Ul=bt(dt);class kt extends Array{constructor(n,l){let o=!0;const r=a=>{try{l(a,this,o)}finally{o=!1}};super(void 0,r,l),r(n)}}const Oe=t=>{const n=ut();return de((l=new kt(t,(o,r,a)=>{o=Q(o)?o(r[0]):o,o!==r[0]&&(r[0]=o,a||n())}))=>l)},ne=(t,n)=>{const[l]=de(([o,r,a=0]=[])=>((!r||r&&!mt(r,n))&&(o=t()),[o,n,a]));return l},Pe=t=>{const{current:n}=ge();if(!(t in n))throw new gt(n,`For useProp("${t}"), the prop does not exist on the host.`,t);return de((l=new kt(n[t],(o,r)=>{o=Q(o)?o(n[t]):o,n[t]=o}))=>(l[0]=n[t],l))},le=(t,n={})=>{const l=ge();return l[t]||(l[t]=(o=n.detail)=>yt(l.current,{type:t,...n,detail:o})),l[t]},Le=ue("atomico/options");globalThis[Le]=globalThis[Le]||{sheet:!!document.adoptedStyleSheets};const wt=globalThis[Le],Rl={checked:1,value:1,selected:1},ql={list:1,type:1,size:1,form:1,width:1,height:1,src:1,href:1,slot:1},Hl={shadowDom:1,staticNode:1,cloneNode:1,children:1,key:1},Se={},je=[];class Ae extends Text{}const Wl=ue("atomico/id"),we=ue("atomico/type"),Fe=ue("atomico/ref"),vt=ue("atomico/vnode"),Kl=()=>{};function Yl(t,n,l){return Et(this,t,n,l)}const xt=(t,n,...l)=>{const o=n||Se;let{children:r}=o;if(r=r??(l.length?l:je),t===Kl)return r;const a=t?t instanceof Node?1:t.prototype instanceof HTMLElement&&2:0;if(a===!1&&t instanceof Function)return t(r!=je?{children:r,...o}:o);const s=wt.render||Yl;return{[we]:vt,type:t,props:o,children:r,key:o.key,shadow:o.shadowDom,static:o.staticNode,raw:a,is:o.is,clone:o.cloneNode,render:s}};function Et(t,n,l=Wl,o,r){let a;if(n&&n[l]&&n[l].vnode==t||t[we]!=vt)return n;(t||!n)&&(r=r||t.type=="svg",a=t.type!="host"&&(t.raw==1?(n&&t.clone?n[Fe]:n)!=t.type:t.raw==2?!(n instanceof t.type):n?n[Fe]||n.localName!=t.type:!n),a&&t.type!=null&&(t.raw==1&&t.clone?(o=!0,n=t.type.cloneNode(!0),n[Fe]=t.type):n=t.raw==1?t.type:t.raw==2?new t.type:r?document.createElementNS("http://www.w3.org/2000/svg",t.type):document.createElement(t.type,t.is?{is:t.is}:void 0)));const s=n[l]?n[l]:Se,{vnode:c=Se,cycle:i=0}=s;let{fragment:u,handlers:m}=s;const{children:y=je,props:f=Se}=c;if(m=a?{}:m||{},t.static&&!a)return n;if(t.shadow&&!n.shadowRoot&&n.attachShadow({mode:"open",...t.shadow}),t.props!=f&&Gl(n,f,t.props,m,r),t.children!==y){const d=t.shadow?n.shadowRoot:n;u=Jl(t.children,u,d,l,!i&&o,r&&t.type=="foreignObject"?!1:r)}return n[l]={vnode:t,handlers:m,fragment:u,cycle:i+1},n}function Xl(t,n){const l=new Ae(""),o=new Ae("");let r;if(t[n?"prepend":"append"](l),n){let{lastElementChild:a}=t;for(;a;){const{previousElementSibling:s}=a;if(Ie(a,!0)&&!Ie(s,!0)){r=a;break}a=s}}return r?r.before(o):t.append(o),{markStart:l,markEnd:o}}function Jl(t,n,l,o,r,a){t=t==null?null:Nl(t)?t:[t];const s=n||Xl(l,r),{markStart:c,markEnd:i,keyes:u}=s;let m;const y=u&&new Set;let f=c;if(t&&ft(t,d=>{if(typeof d=="object"&&!d[we])return;const $=d[we]&&d.key,v=u&&$!=null&&u.get($);f!=i&&f===v?y.delete(f):f=f==i?i:f.nextSibling;const C=u?v:f;let k=C;if(d[we])k=Et(d,C,o,r,a);else{const M=d+"";!(k instanceof Text)||k instanceof Ae?k=new Text(M):k.data!=M&&(k.data=M)}k!=f&&(u&&y.delete(k),!C||u?(l.insertBefore(k,f),u&&f!=i&&y.add(f)):C==i?l.insertBefore(k,i):(l.replaceChild(k,C),f=k)),$!=null&&(m=m||new Map,m.set($,k))}),f=f==i?i:f.nextSibling,n&&f!=i)for(;f!=i;){const d=f;f=f.nextSibling,d.remove()}return y&&y.forEach(d=>d.remove()),s.keyes=m,s}function Gl(t,n,l,o,r){for(const a in n)!(a in l)&&Bt(t,a,n[a],null,r,o);for(const a in l)Bt(t,a,n[a],l[a],r,o)}function Bt(t,n,l,o,r,a){if(n=n=="class"&&!r?"className":n,l=l??null,o=o??null,n in t&&Rl[n]&&(l=t[n]),!(o===l||Hl[n]||n[0]=="_"))if(n[0]=="o"&&n[1]=="n"&&(Q(o)||Q(l)))Zl(t,n.slice(2),o,a);else if(n=="ref")o&&(Q(o)?o(t):o.current=t);else if(n=="style"){const{style:s}=t;l=l||"",o=o||"";const c=ye(l),i=ye(o);if(c)for(const u in l)if(i)!(u in o)&&$t(s,u,null);else break;if(i)for(const u in o){const m=o[u];c&&l[u]===m||$t(s,u,m)}else s.cssText=o}else{const s=n[0]=="$"?n.slice(1):n;s===n&&(!r&&!ql[n]&&n in t||Q(o)||Q(l))?t[n]=o??"":o==null?t.removeAttribute(s):t.setAttribute(s,ye(o)?JSON.stringify(o):o)}}function Zl(t,n,l,o){if(o.handleEvent||(o.handleEvent=r=>o[r.type].call(t,r)),l){if(!o[n]){const r=l.capture||l.once||l.passive?Object.assign({},l):null;t.addEventListener(n,o,r)}o[n]=l}else o[n]&&(t.removeEventListener(n,o),delete o[n])}function $t(t,n,l){let o="setProperty";l==null&&(o="removeProperty",l=null),~n.indexOf("-")?t[o](n,l):t[n]=l}const Ct={};function Ve(t,...n){const l=(t.raw||t).reduce((o,r,a)=>o+r+(n[a]||""),"");return Ct[l]=Ct[l]||Ql(l)}function Ql(t){if(wt.sheet){const n=new CSSStyleSheet;return n.replaceSync(t),n}else{const n=document.createElement("style");return n.textContent=t,n}}const ea=xt("host",{style:"display: contents"}),_e=ue("atomico/context"),ta=(t,n)=>{const l=ge();Ul(()=>pt(l.current,"ConnectContext",o=>{t===o.detail.id&&(o.stopPropagation(),o.detail.connect(n))}),[t])},na=t=>{const n=le("ConnectContext",{bubbles:!0,composed:!0}),l=()=>{let a;return n({id:t,connect(s){a=s}}),a},[o,r]=Oe(l);return ke(()=>{o||(t[_e]||(t[_e]=customElements.whenDefined(new t().localName)),t[_e].then(()=>r(l)))},[t]),o},oa=t=>{const n=na(t),l=ut();return ke(()=>{if(n)return pt(n,"UpdatedValue",l)},[n]),(n||t).value},la=t=>{const n=be(()=>(ta(n,ge().current),ea),{props:{value:{type:Object,event:{type:"UpdatedValue"},value:()=>t}}});return n.value=t,n},L=(t,n,l)=>(n==null?n={key:l}:n.key=l,xt(t,n)),ve=L,St=Ve`*,*:before,*:after{box-sizing:border-box}button{padding:0;touch-action:manipulation;cursor:pointer;user-select:none}`,Vt=Ve`.vh{position:absolute;transform:scale(0)}`;function Ue(){const t=new Date;return new _(t.getFullYear(),t.getMonth()+1,t.getDate())}function Re(t,n=0){const l=G(t),o=l.getUTCDay(),r=(o<n?7:0)+o-n;return l.setUTCDate(l.getUTCDate()-r),_.from(l)}function Nt(t,n=0){return Re(t,n).add({days:6})}function Dt(t){return _.from(new Date(Date.UTC(t.year,t.month,0)))}function Ne(t,n,l){return n&&_.compare(t,n)<0?n:l&&_.compare(t,l)>0?l:t}const aa={days:1};function ra(t,n=0){let l=Re(t.toPlainDate(),n);const o=Nt(Dt(t),n),r=[];for(;_.compare(l,o)<0;){const a=[];for(let s=0;s<7;s++)a.push(l),l=l.add(aa);r.push(a)}return r}function G(t){return new Date(Date.UTC(t.year,t.month-1,t.day??1))}const sa=/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[0-1])$/,qe=(t,n)=>t.toString().padStart(n,"0");class _{constructor(n,l,o){this.year=n,this.month=l,this.day=o}add(n){const l=G(this);if("days"in n)return l.setUTCDate(this.day+n.days),_.from(l);let{year:o,month:r}=this;"months"in n?(r=this.month+n.months,l.setUTCMonth(r-1)):(o=this.year+n.years,l.setUTCFullYear(o));const a=_.from(G({year:o,month:r,day:1}));return Ne(_.from(l),a,Dt(a))}toString(){return`${qe(this.year,4)}-${qe(this.month,2)}-${qe(this.day,2)}`}toPlainYearMonth(){return new De(this.year,this.month)}equals(n){return _.compare(this,n)===0}static compare(n,l){return n.year<l.year?-1:n.year>l.year?1:n.month<l.month?-1:n.month>l.month?1:n.day<l.day?-1:n.day>l.day?1:0}static from(n){if(typeof n=="string"){const l=n.match(sa);if(!l)throw new TypeError(n);const[,o,r,a]=l;return new _(parseInt(o,10),parseInt(r,10),parseInt(a,10))}return new _(n.getUTCFullYear(),n.getUTCMonth()+1,n.getUTCDate())}}class De{constructor(n,l){this.year=n,this.month=l}add(n){const l=G(this),o=(n.months??0)+(n.years??0)*12;return l.setUTCMonth(l.getUTCMonth()+o),new De(l.getUTCFullYear(),l.getUTCMonth()+1)}equals(n){return this.year===n.year&&this.month===n.month}toPlainDate(){return new _(this.year,this.month,1)}}function ze(t,n){if(n)try{return t.from(n)}catch{}}function ae(t){const[n,l]=Pe(t);return[ne(()=>ze(_,n),[n]),o=>l(o==null?void 0:o.toString())]}function ia(t){const[n="",l]=Pe(t);return[ne(()=>{const[o,r]=n.split("/"),a=ze(_,o),s=ze(_,r);return a&&s?[a,s]:[]},[n]),o=>l(`${o[0]}/${o[1]}`)]}function ca(t){const[n="",l]=Pe(t);return[ne(()=>{const o=[];for(const r of n.trim().split(/\s+/)){const a=ze(_,r);a&&o.push(a)}return o},[n]),o=>l(o.join(" "))]}function xe(t,n){return ne(()=>new Intl.DateTimeFormat(n,{timeZone:"UTC",...t}),[n,t])}function zt(t,n,l){const o=xe(t,l);return ne(()=>{const r=[],a=new Date;for(var s=0;s<7;s++){const c=(a.getUTCDay()-n+7)%7;r[c]=o.format(a),a.setUTCDate(a.getUTCDate()+1)}return r},[n,o])}const Tt=(t,n,l)=>Ne(t,n,l)===t,Mt=t=>t.target.matches(":dir(ltr)"),da={month:"long",day:"numeric"},ua={month:"long"},ma={weekday:"long"},He={bubbles:!0};function fa({props:t,context:n}){const{offset:l}=t,{firstDayOfWeek:o,isDateDisallowed:r,min:a,max:s,today:c,page:i,locale:u,focusedDate:m,formatWeekday:y}=n,f=c??Ue(),d=zt(ma,o,u),$=ne(()=>({weekday:y}),[y]),v=zt($,o,u),C=xe(da,u),k=xe(ua,u),M=ne(()=>i.start.add({months:l}),[i,l]),U=ne(()=>ra(M,o),[M,o]),Y=le("focusday",He),h=le("selectday",He),B=le("hoverday",He);function w(x){Y(Ne(x,a,s))}function N(x){let b;switch(x.key){case"ArrowRight":b=m.add({days:Mt(x)?1:-1});break;case"ArrowLeft":b=m.add({days:Mt(x)?-1:1});break;case"ArrowDown":b=m.add({days:7});break;case"ArrowUp":b=m.add({days:-7});break;case"PageUp":b=m.add(x.shiftKey?{years:-1}:{months:-1});break;case"PageDown":b=m.add(x.shiftKey?{years:1}:{months:1});break;case"Home":b=Re(m,o);break;case"End":b=Nt(m,o);break;default:return}w(b),x.preventDefault()}function p(x){var T,j;const b=M.equals(x);if(!n.showOutsideDays&&!b)return;const I=x.equals(m),O=x.equals(f),q=G(x),J=r==null?void 0:r(q),g=!Tt(x,a,s);let E="",V;if(n.type==="range"){const[A,H]=n.value,ee=A==null?void 0:A.equals(x),re=H==null?void 0:H.equals(x);V=A&&H&&Tt(x,A,H),E=`${ee?"range-start":""} ${re?"range-end":""} ${V&&!ee&&!re?"range-inner":""}`}else n.type==="multi"?V=n.value.some(A=>A.equals(x)):V=(T=n.value)==null?void 0:T.equals(x);return{part:`${`button day day-${q.getDay()} ${b?V?"selected":"":"outside"} ${J?"disallowed":""} ${O?"today":""} ${((j=n.getDayParts)==null?void 0:j.call(n,q))??""}`} ${E}`,tabindex:b&&I?0:-1,disabled:g,"aria-disabled":J?"true":void 0,"aria-pressed":b&&V,"aria-current":O?"date":void 0,"aria-label":C.format(q),onkeydown:N,onclick(){J||h(x),w(x)},onmouseover(){!J&&!g&&B(x)}}}return{weeks:U,yearMonth:M,daysLong:d,daysVisible:v,formatter:k,getDayProps:p}}const We=Ue(),Ke=la({type:"date",firstDayOfWeek:1,focusedDate:We,page:{start:We.toPlainYearMonth(),end:We.toPlainYearMonth()}});customElements.define("calendar-ctx",Ke);const pa=(t,n)=>(n+t)%7,It=be(t=>{const n=oa(Ke),l=Sl(),o=fa({props:t,context:n});function r(){var a;(a=l.current.querySelector("button[tabindex='0']"))==null||a.focus()}return ve("host",{shadowDom:!0,focus:r,children:[L("div",{id:"h",part:"heading",children:o.formatter.format(G(o.yearMonth))}),ve("table",{ref:l,"aria-labelledby":"h",part:"table",children:[L("thead",{children:L("tr",{part:"tr head",children:o.daysLong.map((a,s)=>ve("th",{part:`th day day-${pa(n.firstDayOfWeek,s)}`,scope:"col",children:[L("span",{class:"vh",children:a}),L("span",{"aria-hidden":"true",children:o.daysVisible[s]})]}))})}),L("tbody",{children:o.weeks.map((a,s)=>L("tr",{part:"tr week",children:a.map((c,i)=>{const u=o.getDayProps(c);return L("td",{part:"td",children:u&&L("button",{...u,children:c.day})},i)})},s))})]})]})},{props:{offset:{type:Number,value:0}},styles:[St,Vt,Ve`:host{--color-accent: black;--color-text-on-accent: white;display:flex;flex-direction:column;gap:.25rem;text-align:center;inline-size:fit-content}table{border-collapse:collapse;font-size:.875rem}th{font-weight:700;block-size:2.25rem}td{padding-inline:0}button{color:inherit;font-size:inherit;background:transparent;border:0;font-variant-numeric:tabular-nums;block-size:2.25rem;inline-size:2.25rem}button:hover:where(:not(:disabled,[aria-disabled])){background:#0000000d}button:is([aria-pressed=true],:focus-visible){background:var(--color-accent);color:var(--color-text-on-accent)}button:focus-visible{outline:1px solid var(--color-text-on-accent);outline-offset:-2px}button:disabled,:host::part(outside),:host::part(disallowed){cursor:default;opacity:.5}`]});customElements.define("calendar-month",It);function Ot(t){return L("button",{part:`button ${t.name} ${t.onclick?"":"disabled"}`,onclick:t.onclick,"aria-disabled":t.onclick?null:"true",children:L("slot",{name:t.name,children:t.children})})}function Ye(t){const n=G(t.page.start),l=G(t.page.end);return ve("div",{role:"group","aria-labelledby":"h",part:"container",children:[L("div",{id:"h",class:"vh","aria-live":"polite","aria-atomic":"true",children:t.formatVerbose.formatRange(n,l)}),ve("div",{part:"header",children:[L(Ot,{name:"previous",onclick:t.previous,children:"Previous"}),L("slot",{part:"heading",name:"heading",children:L("div",{"aria-hidden":"true",children:t.format.formatRange(n,l)})}),L(Ot,{name:"next",onclick:t.next,children:"Next"})]}),L(Ke,{value:t,onselectday:t.onSelect,onfocusday:t.onFocus,onhoverday:t.onHover,children:L("slot",{})})]})}const Xe={value:{type:String,value:""},min:{type:String,value:""},max:{type:String,value:""},today:{type:String,value:""},isDateDisallowed:{type:Function,value:t=>!1},formatWeekday:{type:String,value:()=>"narrow"},getDayParts:{type:Function,value:t=>""},firstDayOfWeek:{type:Number,value:()=>1},showOutsideDays:{type:Boolean,value:!1},locale:{type:String,value:()=>{}},months:{type:Number,value:1},focusedDate:{type:String,value:()=>{}},pageBy:{type:String,value:()=>"months"}},Je=[St,Vt,Ve`:host{display:block;inline-size:fit-content}[role=group]{display:flex;flex-direction:column;gap:1em}:host::part(header){display:flex;align-items:center;justify-content:space-between}:host::part(heading){font-weight:700;font-size:1.25em}button{display:flex;align-items:center;justify-content:center}button[aria-disabled]{cursor:default;opacity:.5}`],ha={year:"numeric"},ga={year:"numeric",month:"long"};function Ge(t,n){return(n.year-t.year)*12+n.month-t.month}const Pt=(t,n)=>(t=n===12?new De(t.year,1):t,{start:t,end:t.add({months:n-1})});function ya({pageBy:t,focusedDate:n,months:l,max:o,min:r,goto:a}){const s=t==="single"?1:l,[c,i]=Oe(()=>Pt(n.toPlainYearMonth(),l)),u=y=>i(Pt(c.start.add({months:y}),l)),m=y=>{const f=Ge(c.start,y.toPlainYearMonth());return f>=0&&f<l};return ke(()=>{if(m(n))return;const y=Ge(n.toPlainYearMonth(),c.start);a(n.add({months:y}))},[c.start]),ke(()=>{if(m(n))return;const y=Ge(c.start,n.toPlainYearMonth());u(y===-1?-s:y===l?s:Math.floor(y/l)*l)},[n,s,l]),{page:c,previous:!r||!m(r)?()=>u(-s):void 0,next:!o||!m(o)?()=>u(s):void 0}}function Ze({months:t,pageBy:n,locale:l,focusedDate:o,setFocusedDate:r}){const[a]=ae("min"),[s]=ae("max"),[c]=ae("today"),i=le("focusday"),u=le("change"),m=ne(()=>Ne(o??c??Ue(),a,s),[o,c,a,s]);function y(k){r(k),i(G(k))}const{next:f,previous:d,page:$}=ya({pageBy:n,focusedDate:m,months:t,min:a,max:s,goto:y}),v=ge();function C(k){const M=(k==null?void 0:k.target)??"day";M==="day"?v.current.querySelectorAll("calendar-month").forEach(U=>U.focus(k)):v.current.shadowRoot.querySelector(`[part~='${M}']`).focus(k)}return{format:xe(ha,l),formatVerbose:xe(ga,l),page:$,focusedDate:m,dispatch:u,onFocus(k){k.stopPropagation(),y(k.detail),setTimeout(C)},min:a,max:s,today:c,next:f,previous:d,focus:C}}const Lt=be(t=>{const[n,l]=ae("value"),[o=n,r]=ae("focusedDate"),a=Ze({...t,focusedDate:o,setFocusedDate:r});function s(c){l(c.detail),a.dispatch()}return L("host",{shadowDom:!0,focus:a.focus,children:L(Ye,{...t,...a,type:"date",value:n,onSelect:s})})},{props:Xe,styles:Je});customElements.define("calendar-date",Lt);const jt=(t,n)=>_.compare(t,n)<0?[t,n]:[n,t],At=be(t=>{const[n,l]=ia("value"),[o=n[0],r]=ae("focusedDate"),a=Ze({...t,focusedDate:o,setFocusedDate:r}),s=le("rangestart"),c=le("rangeend"),[i,u]=ae("tentative"),[m,y]=Oe();ke(()=>y(void 0),[i]);function f(C){a.onFocus(C),d(C)}function d(C){C.stopPropagation(),i&&y(C.detail)}function $(C){const k=C.detail;C.stopPropagation(),i?(l(jt(i,k)),u(void 0),c(G(k)),a.dispatch()):(u(k),s(G(k)))}const v=i?jt(i,m??i):n;return L("host",{shadowDom:!0,focus:a.focus,children:L(Ye,{...t,...a,type:"range",value:v,onFocus:f,onHover:d,onSelect:$})})},{props:{...Xe,tentative:{type:String,value:""}},styles:Je});customElements.define("calendar-range",At);const Ft=be(t=>{const[n,l]=ca("value"),[o=n[0],r]=ae("focusedDate"),a=Ze({...t,focusedDate:o,setFocusedDate:r});function s(c){const i=[...n],u=n.findIndex(m=>m.equals(c.detail));u<0?i.push(c.detail):i.splice(u,1),l(i),a.dispatch()}return L("host",{shadowDom:!0,focus:a.focus,children:L(Ye,{...t,...a,type:"multi",value:n,onSelect:s})})},{props:Xe,styles:Je});customElements.define("calendar-multi",Ft);const ba=Object.freeze(Object.defineProperty({__proto__:null,CalendarDate:Lt,CalendarMonth:It,CalendarMulti:Ft,CalendarRange:At},Symbol.toStringTag,{value:"Module"}));S.Accordion=gn,S.AdvancedSearch=Zn,S.Avatar=kn,S.Badge=wn,S.ButtonComponent=Ht,S.Card=Sn,S.Carousel=In,S.CarouselItem=On,S.CategoryNavigation=fl,S.DatetimePicker=at,S.Dropdown=Yt,S.FilterableSelect=Oo,S.Footer=ll,S.Hero=dl,S.InputField=st,S.Loader=Ho,S.Modal=Gt,S.NavigationBar=bl,S.Rating=ho,S.Selector=rt,S.Swap=en,S.Tab=El,S.TagInput=wo,S.ThemeController=un,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})}));
|
|
46
|
+
*/const rn=he("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"}]]),sn=(t,n)=>{const l=e.ref(null);return e.onMounted(()=>{if(typeof window<"u"){const o=window.localStorage.getItem(t);l.value=o?JSON.parse(o):n}}),e.watch(l,o=>{typeof window<"u"&&window.localStorage.setItem(t,JSON.stringify(o))}),l},cn={class:"swap-rotate swap"},dn=["true-value","false-value"],un=e.defineComponent({__name:"theme-controller",props:{lightTheme:{default:"light"},darkTheme:{default:"dark"}},setup(t){const n=t,l=sn("theme",n.lightTheme);function o(r){typeof window<"u"&&window.document&&document.documentElement.setAttribute("data-theme",r)}return e.onMounted(()=>o(l.value?l.value:"")),e.watch(l,r=>{o(r)}),(r,a)=>(e.openBlock(),e.createElementBlock("label",cn,[e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:"theme-controller","onUpdate:modelValue":a[0]||(a[0]=s=>e.isRef(l)?l.value=s:null),"true-value":n.lightTheme,"false-value":n.darkTheme},null,8,dn),[[e.vModelCheckbox,e.unref(l)]]),e.createVNode(e.unref(rn),{class:"swap-off fill-current"}),e.createVNode(e.unref(an),{class:"swap-on fill-current"})]))}}),mn=["name"],fn={class:"collapse-title font-bold text-2xl lg:text-4xl"},pn={class:"collapse-content"},hn=["innerHTML"],gn=e.defineComponent({__name:"accordion",props:{name:{},items:{},joinItems:{type:Boolean,default:!1},icon:{}},setup(t){const n=t;return(l,o)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,(r,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["collapse border border-base-300",[t.icon?`collapse-${t.icon}`:"",{"join-item":t.joinItems}]]),key:a},[e.createElementVNode("input",{type:"radio",name:t.name,value:"true"},null,8,mn),e.createElementVNode("div",fn,e.toDisplayString(r.title),1),e.createElementVNode("div",pn,[e.createElementVNode("span",{innerHTML:r.content},null,8,hn)])],2))),128))}}),yn=["src"],bn={class:"text-xl"},kn=e.defineComponent({__name:"avatar",props:{image:{},onlineStatus:{default:"none"},initials:{},fullyRounded:{type:Boolean,default:!1}},setup(t){const n=t,l=e.ref(n.onlineStatus);return e.watch(()=>n.onlineStatus,o=>{o&&(l.value=o)}),(o,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["avatar",[{"avatar-online":l.value==="online"},{"avatar-offline":l.value==="offline"}]])},[t.image?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["rounded",[{"rounded-full":t.fullyRounded},{rounded:!t.fullyRounded}]])},[e.createElementVNode("img",{src:t.image,class:"w-full h-full"},null,8,yn)],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":t.fullyRounded},{rounded:!t.fullyRounded}]])},[e.createElementVNode("p",bn,e.toDisplayString(t.initials),1)],2))],2))}}),wn=e.defineComponent({__name:"badge",props:{color:{default:"neutral"},outline:{type:Boolean,default:!1},size:{default:"medium"}},setup(t){const n=t,l={"extra small":"badge-xs",small:"badge-sm",medium:"badge-md",large:"badge-lg"},o={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(r,a)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["badge",l[n.size],o[n.color],{"badge-outline":n.outline}])},[e.renderSlot(r.$slots,"default")],2))}}),vn=["src","alt"],xn={key:0,class:"card-body"},En={key:0,class:"group-hover:text-primary text-lg text-left cursor-pointer card-title"},Bn={key:1,class:"text-left"},$n={class:"flex-col flex-nowrap mt-auto card-actions"},Cn={key:1,class:"card-body"},Sn=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:""},imgHeight:{default:"h-44"},imgWidth:{default:""},horizontal:{type:Boolean,default:!1}},setup(t){const n=t,l=e.ref(n.outlined);return e.watch(()=>n.outlined,o=>{l.value=o}),(o,r)=>(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":l.value},t.color??"",t.background,{"card-side":t.horizontal}]])},[e.createElementVNode("figure",{class:e.normalizeClass([{"contents!":t.horizontal&&t.imgWidth}])},[t.imgUrl||t.imgUrl&&!t.loading?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.imgUrl,alt:t.alt,class:e.normalizeClass(["rounded-sm object-cover",[{hidden:t.loading},!t.horizontal&&t.imgHeight?t.imgHeight:"h-full",t.horizontal&&t.imgWidth?t.imgWidth:"w-full"]])},null,10,vn)):e.createCommentVNode("",!0),t.loading&&t.imgUrl?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["w-full skeleton",t.imgHeight])},null,2)):e.createCommentVNode("",!0)],2),t.loading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",xn,[t.title?(e.openBlock(),e.createElementBlock("h2",En,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"details"),t.description?(e.openBlock(),e.createElementBlock("p",Bn,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0),e.createElementVNode("div",$n,[e.renderSlot(o.$slots,"actions")])])),t.loading?(e.openBlock(),e.createElementBlock("div",Cn,[...r[0]||(r[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))}}),lt=Symbol("CarouselItemStyle"),Vn={class:"relative h-full"},Nn={key:0,class:"flex-shrink-0"},Dn={key:0,class:"flex-shrink-0"},zn={key:1,id:"carousel-indicators",class:"bottom-5 z-10 absolute flex justify-center gap-2 py-2 w-full"},Mn=["onClick","aria-label"],Tn=e.defineComponent({__name:"carousel",props:{showIndicators:{type:Boolean,default:!0},showNavigationButtons:{type:Boolean,default:!0},sliderOrientation:{type:String,default:"horizontal",required:!1,validator:t=>t=="horizontal"||t=="vertical"},initialSlide:{type:Number,default:0},slidesPerView:{type:Number,default:1,validator:t=>t>=1},gap:{type:Number,default:0,validator:t=>t>=0},slideDuration:{type:Number,default:300,validator:t=>t>=0},breakpoints:{type:Object,default:()=>({})},infinite:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},autoplayInterval:{type:Number,default:3e3,validator:t=>t>0}},setup(t,{expose:n}){const l=t,o=e.ref(l.initialSlide),r=e.ref(null),a=e.ref(null),s=e.ref(0),c=e.ref(!1),i=e.ref(0),u=e.ref(0),m=e.ref(!1),y=e.ref(0),f=e.ref(0),d=e.ref(0),$=e.ref(0),v=e.ref(0),C=e.ref(0),k=e.ref(0),T=e.ref(null),U=e.ref(null),Y=e.ref(0),h=e.ref(null),B=e.computed(()=>{const z=Object.keys(l.breakpoints).map(Number).sort((P,F)=>P-F);let D={};for(const P of z)u.value>=P&&(D={...D,...l.breakpoints[P]});return D}),w=e.computed(()=>B.value.slidesPerView??l.slidesPerView),N=e.computed(()=>B.value.gap??l.gap),p=e.computed(()=>{const z=l.sliderOrientation==="horizontal",P=`calc((100% - ${w.value>1?(w.value-1)*N.value:0}px) / ${w.value})`;return z?{width:P}:{height:P}});e.provide(lt,p);const x=()=>{a.value?i.value=a.value.children.length:i.value=0},b=()=>{if(!r.value||w.value<=0)return 0;const D=l.sliderOrientation==="horizontal"?r.value.offsetWidth:r.value.offsetHeight,P=(w.value-1)*N.value;return D<=0?0:(D-P)/w.value},I=e.computed(()=>{if(!r.value||i.value===0||w.value===0)return 0;const D=l.sliderOrientation==="horizontal"?r.value.offsetWidth:r.value.offsetHeight,P=b(),F=i.value*(P+N.value)-N.value;return Math.max(0,F-D)}),O=async(z,D=!1)=>{if(!r.value||w.value<=0||c.value||(x(),i.value===0))return;const P=b();if(P<=0)return;const F=P+N.value,K=I.value;let R=z;l.infinite?R=(z%i.value+i.value)%i.value:R=Math.max(0,Math.min(z,i.value-w.value));const te=R*F,W=l.infinite?te:Math.max(0,Math.min(te,K));if(D||l.slideDuration===0){a.value&&(a.value.style.transitionDuration="0ms",a.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-W}px, 0, 0)`:`translate3d(0, ${-W}px, 0)`),s.value=W,o.value=R,c.value=!1,l.autoplay&&ee();return}c.value=!0;const oe=s.value,Z=W-oe,Ee=performance.now(),fe=Me=>{if(!a.value)return;const ka=Me-Ee,Ut=Math.min(1,ka/l.slideDuration),wa=1-Math.pow(1-Ut,3),et=oe+Z*wa;a.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-et}px, 0, 0)`:`translate3d(0, ${-et}px, 0)`,s.value=et,Ut<1?T.value=requestAnimationFrame(fe):(a.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-W}px, 0, 0)`:`translate3d(0, ${-W}px, 0)`,s.value=W,o.value=R,c.value=!1,l.autoplay&&ee(),T.value=null)};T.value=requestAnimationFrame(fe)},q=()=>{l.infinite&&o.value>=i.value-w.value?O(0):O(o.value+1)},J=()=>{l.infinite&&o.value<=0?O(i.value-w.value):O(o.value-1)},g=z=>{O(z)},E=z=>{c.value&&T.value&&(l.autoplay&&H(),cancelAnimationFrame(T.value),c.value=!1);const D="touches"in z?z.touches[0]:z;y.value=D.clientX,f.value=D.clientY,h.value=null,d.value=s.value,$.value=0,v.value=0,C.value=0,k.value=performance.now(),r.value&&(r.value.style.scrollSnapType="none"),document.addEventListener("mousemove",V,{passive:!1}),document.addEventListener("mouseup",j),document.addEventListener("touchmove",V,{passive:!1}),document.addEventListener("touchend",j)},V=z=>{const D="touches"in z?z.touches[0]:z;if(!h.value){const Ee=Math.abs(D.clientX-y.value),fe=Math.abs(D.clientY-f.value),Me=5;if(Ee>Me||fe>Me)if(l.sliderOrientation==="horizontal")if(Ee>fe)h.value="horizontal",m.value=!0;else{M();return}else if(fe>Ee)h.value="vertical",m.value=!0;else{M();return}else return}if(!m.value||!a.value||!r.value)return;z.cancelable&&z.preventDefault();const P=performance.now(),F=P-k.value,K=l.sliderOrientation==="horizontal"?D.clientX:D.clientY,R=l.sliderOrientation==="horizontal"?y.value:f.value,te=l.sliderOrientation==="horizontal"?v.value||R:C.value||R,W=K-te;F>0&&($.value=W/F*1e3);const oe=K-R;let Z=d.value-oe;Z<0?Z=Z*.3:Z>I.value&&(Z=I.value+(Z-I.value)*.3),Y.value=Z,a.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-Y.value}px, 0, 0)`:`translate3d(0, ${-Y.value}px, 0)`,l.sliderOrientation==="horizontal"?v.value=K:C.value=K,k.value=P},M=()=>{document.removeEventListener("mousemove",V),document.removeEventListener("mouseup",j),document.removeEventListener("touchmove",V),document.removeEventListener("touchend",j)},j=()=>{if(!m.value||!r.value||!a.value)return;const D=l.sliderOrientation==="horizontal"?d.value-(v.value-y.value):d.value-(C.value-f.value),P=Math.max(0,Math.min(D,I.value)),F=b()+N.value;if(m.value=!1,M(),s.value=P,l.infinite){if(D<0){O(i.value-1);return}else if(D>I.value){O(0);return}}else if(D<0){O(0);return}else if(D>I.value){const W=Math.max(0,i.value-Math.floor(w.value));O(W);return}const K=Math.max(0,i.value-Math.floor(w.value)),R=100,te=Math.round(P/F);if(Math.abs($.value)>R){const W=-Math.sign($.value),oe=te+W;O(Math.max(0,Math.min(K,oe)))}else O(Math.max(0,Math.min(K,te)))},A=()=>{!l.autoplay||U.value!==null||(U.value=setInterval(()=>{q()},l.autoplayInterval))},H=()=>{U.value!==null&&(clearInterval(U.value),U.value=null)},ee=()=>{H(),setTimeout(()=>{A()},500)},re=()=>{u.value=window.innerWidth},Qe=()=>{if(!r.value||w.value<=0||(x(),i.value===0))return;const z=b();if(z<=0)return;const D=Math.max(0,i.value-w.value),P=Math.min(Math.max(0,l.initialSlide),D),F=P*(z+N.value),K=I.value,R=Math.max(0,Math.min(F,K));a.value&&(a.value.style.transitionDuration="0ms",a.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-R}px, 0, 0)`:`translate3d(0, ${-R}px, 0)`),s.value=R,o.value=P};e.onUnmounted(()=>{window.removeEventListener("resize",re)});let _t=!1;return e.onMounted(()=>{var D,P,F,K,R,te,W,oe;u.value=window.innerWidth;const z=e.watch(i,Z=>{Z>0&&!_t&&(Qe(),_t=!0,z())});l.autoplay&&A(),window.addEventListener("resize",re),x(),(D=r.value)==null||D.addEventListener("mousedown",E),(P=r.value)==null||P.addEventListener("touchstart",E,{passive:!0}),l.showNavigationButtons&&((R=(K=(F=r.value)==null?void 0:F.parentElement)==null?void 0:K.querySelector(".absolute.flex.justify-between"))==null||R.addEventListener("click",ee)),l.showIndicators&&((oe=(W=(te=r.value)==null?void 0:te.parentElement)==null?void 0:W.querySelector(".bottom-5.flex.justify-center"))==null||oe.addEventListener("click",ee))}),e.onUnmounted(()=>{window.removeEventListener("resize",re)}),e.watch(()=>l.autoplay,z=>{z?A():H()}),e.watch(()=>l.autoplayInterval,ee),e.watch(()=>l.initialSlide,z=>{requestAnimationFrame(()=>O(z,!0))}),e.watch([w,N],()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{if(x(),i.value===0)return;const z=Math.max(0,i.value-w.value),D=Math.min(o.value,z);O(D,!0)})})}),n({scrollToSlide:O}),(z,D)=>(e.openBlock(),e.createElementBlock("div",Vn,[e.createElementVNode("div",{ref_key:"carouselContainer",ref:r,class:e.normalizeClass(["rounded w-full h-full carousel",[{"carousel-horizontal":t.sliderOrientation=="horizontal"},{"carousel-vertical":t.sliderOrientation=="vertical"},{"cursor-grabbing !select-none":m.value}]]),style:{scrollSnapType:"none"}},[e.createElementVNode("div",{ref_key:"slidesContainer",ref:a,class:e.normalizeClass(["w-full h-full transition-transform duration-0 ease-out",t.sliderOrientation==="horizontal"?"flex":"block"]),style:e.normalizeStyle({gap:`${N.value}px`})},[e.renderSlot(z.$slots,"default",{},void 0,!0)],6)],2),t.showNavigationButtons?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([{"top-1/2 right-5 left-5 z-10 absolute flex justify-between items-center -translate-y-1/2 transform":t.sliderOrientation==="horizontal"},{"right-0 absolute flex justify-between items-center -translate-y-1/2 transform rotate-90 top-1/2 gap-3":t.sliderOrientation==="vertical"}])},[e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[l.infinite||o.value>0?(e.openBlock(),e.createElementBlock("div",Nn,[e.createElementVNode("div",{onClick:J,role:"button","aria-label":"Previous Slide"},[e.renderSlot(z.$slots,"prevButton",{},()=>[D[0]||(D[0]=e.createElementVNode("button",{class:"btn btn-circle text-xs",tabindex:"-1"},"❮",-1))],!0)])])):e.createCommentVNode("",!0)]),_:3}),D[2]||(D[2]=e.createElementVNode("div",{class:"flex-grow"},null,-1)),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[l.infinite||o.value<i.value-w.value?(e.openBlock(),e.createElementBlock("div",Dn,[e.createElementVNode("div",{onClick:q,role:"button","aria-label":"Next Slide"},[e.renderSlot(z.$slots,"nextButton",{},()=>[D[1]||(D[1]=e.createElementVNode("button",{class:"btn btn-circle text-xs",tabindex:"-1"},"❯",-1))],!0)])])):e.createCommentVNode("",!0)]),_:3})],2)):e.createCommentVNode("",!0),t.showIndicators?(e.openBlock(),e.createElementBlock("div",zn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(P,F)=>(e.openBlock(),e.createElementBlock("button",{key:`dot-${F}`,onClick:K=>g(F),class:e.normalizeClass(["btn btn-circle btn-xs",{"btn-active":F===o.value}]),"aria-label":`Go to slide ${F+1}`},null,10,Mn))),128))])):e.createCommentVNode("",!0)]))}}),ie=(t,n)=>{const l=t.__vccOpts||t;for(const[o,r]of n)l[o]=r;return l},In=ie(Tn,[["__scopeId","data-v-dd58428c"]]),On=ie(e.defineComponent({__name:"carouselItem",setup(t){const n=e.inject(lt,e.ref({}));return(l,o)=>(e.openBlock(),e.createElementBlock("div",{class:"w-full h-full carousel-item",style:e.normalizeStyle(e.unref(n))},[e.renderSlot(l.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-507384bc"]]),Pn={class:"flex gap-4 bg-base-100 w-full tabs tabs-boxed"},Ln=["onClick"],jn={key:0,class:"inline-component-wrapper flex grow justify-center items-center w-full h-full"},An={key:1,class:"flex flex-col"},Fn={class:"text-sm"},_n={key:0,class:"opacity-75 overflow-hidden text-xs truncate ..."},Un={key:1,class:"hidden md:block opacity-35 overflow-hidden text-xs truncate ..."},Rn={class:"hidden"},qn=["id"],Hn={class:"modal-box"},Wn={class:"font-bold text-lg"},Kn=["name","checked"],Yn={class:"collapse-title flex justify-between items-center pr-4 w-full font-medium text-xl"},Xn={key:0,class:"opacity-75 overflow-hidden text-sm truncate ..."},Jn={key:1,class:"opacity-35 text-sm"},Gn={class:"collapse-content flex place-content-center p-0"},Zn=ie(e.defineComponent({__name:"advancedSearch",props:{searchOptions:{},currentCategory:{},id:{},value:{}},emits:["search","update:search-data"],setup(t,{emit:n}){const l=t,o=n,r=l.id??`advancedSearch-${e.useId()}`,a=e.ref(null),s=e.ref(null),c={datetime:e.defineAsyncComponent(()=>Promise.resolve().then(()=>fo)),"standard-select":e.defineAsyncComponent(()=>Promise.resolve().then(()=>So)),"custom-text":e.defineAsyncComponent(()=>Promise.resolve().then(()=>qo))},i=e.ref({}),u=e.ref({left:"0px",top:"0px",transform:"translateX(0%)"}),m=e.ref(null),y=h=>{var B;if(h.value===void 0||h.value===null||h.value==="")return"";switch(h.type){case"datetime":if(typeof h.value=="string")try{const w=new Date(h.value);if(!isNaN(w.getTime()))return w.toLocaleString()}catch{}else if(h.range&&typeof h.value=="object"&&h.value!==null&&"start"in h.value&&"end"in h.value)try{const w=new Date(h.value.start),N=new Date(h.value.end);if(!isNaN(w.getTime())&&!isNaN(N.getTime()))return`${w.toLocaleDateString()} - ${N.toLocaleDateString()}`}catch{}break;case"custom-range":if(typeof h.value=="object"&&h.value!==null&&"start"in h.value&&"end"in h.value)return`${h.value.start} - ${h.value.end}`;break;case"custom-number":if(typeof h.value=="number")return h.value.toString();break;case"standard-select":case"custom-select":if((B=h.props)!=null&&B.options&&Array.isArray(h.props.options)){const w=h.props.options.find(N=>N.value===h.value);if(w)return w.text}return String(h.value);case"custom-text":if(typeof h.value=="string")return h.value;break}return String(h.value)};function f(h){var p,x;const B=(p=a.value)==null?void 0:p.name;if(!B){console.warn("componentValueUpdated called but no active tab.");return}const w=(x=l.searchOptions.find(b=>(b==null?void 0:b.category)===l.currentCategory))==null?void 0:x.tabs,N=w==null?void 0:w.find(b=>b.name===B);N?(N.value=h,o("update:search-data",{tab:N.name,data:h})):console.error(`Tab with name "${B}" not found in current category.`)}function d(h){f(h)}function $(){o("search")}async function v(h){var N;const B=document.getElementById(`advancedSearchMobile-${r}`),w=B&&B.contains(h.target);((N=a.value)==null?void 0:N.displayMode)==="popup"&&m.value&&!m.value.contains(h.target)&&!w&&(await e.nextTick(),a.value=null)}async function C(){if(typeof window<"u"&&window.innerWidth<=768){const h=document.getElementById(`advancedSearchMobile-${r}`);h?(a.value=null,h.showModal()):console.warn(`Mobile modal element not found. Ensure it exists with id="advancedSearchMobile-${r}".`)}}async function k(h){var w,N,p;if(typeof window<"u"&&window.innerWidth<=768){C();return}const B=h.displayMode??"popup";if(((w=a.value)==null?void 0:w.name)===h.name&&((N=a.value)==null?void 0:N.displayMode)===B)a.value=null;else if(a.value={...h,displayMode:B},await e.nextTick(),((p=a.value)==null?void 0:p.displayMode)==="popup"){const x=i.value[h.name];if(x&&m.value){const b=x.getBoundingClientRect(),I=m.value.getBoundingClientRect(),O=b.bottom-I.top,q=b.left+b.width/2-I.left;u.value={left:`${q}px`,top:`${O+8}px`,transform:"translateX(-50%)"}}else console.error("Tab element or search container not found for positioning:",h.name)}}const T=h=>{const B=h.relatedTarget;setTimeout(()=>{var w;((w=a.value)==null?void 0:w.displayMode)==="inline"&&m.value&&(!B||!m.value.contains(B))?(console.log("Blur detected outside container, closing inline view."),a.value=null):console.log("Blur detected, but staying within container or not an inline tab.")},50)},U=()=>{console.log("Enter key pressed on inline component, closing inline view."),a.value=null};e.watch(s,h=>{var B;console.log("advanced-search: inlineComponentRef changed. New Value:",h),console.log("advanced-search: activeTab.value:",a.value),h&&((B=a.value)==null?void 0:B.displayMode)==="inline"?(console.log("advanced-search: Inline component ref is available and active tab is inline. Attempting to focus child input..."),e.nextTick(()=>{console.log("advanced-search: Inside nextTick. Attempting to call child's focus method..."),console.log("advanced-search: Type of newValue:",typeof h),console.log("advanced-search: Does newValue have focusInput?",typeof h.focusInput=="function"),h&&typeof h.focusInput=="function"?(console.log("advanced-search: Calling exposed focusInput() method on child instance."),h.focusInput()):console.warn('advanced-search: Child inline component instance does not expose a "focusInput" method or is not ready.',h)})):console.log(h?"advanced-search: inlineComponentRef available, but active tab is not inline.":"advanced-search: inlineComponentRef is now null (component likely unmounted).")}),e.onMounted(()=>{document.addEventListener("click",v),window.addEventListener("resize",Y)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",v),window.removeEventListener("resize",Y)});const Y=()=>{var h,B;if(typeof window<"u"){const w=window.innerWidth<=768,N=a.value!==null&&(a.value.displayMode==="popup"||a.value.displayMode==="inline")&&window.innerWidth>768;!w&&(((h=a.value)==null?void 0:h.displayMode)==="popup"||((B=a.value)==null?void 0:B.displayMode)==="inline")&&window.innerWidth<=768&&(console.log("Resizing to mobile, closing active tab."),a.value=null),w&&!N&&a.value!==null&&(console.log("Resizing to desktop from potential mobile active state, closing active tab."),a.value=null);const p=document.getElementById(`advancedSearchMobile-${r}`);p!=null&&p.open&&!w&&(console.log("Modal is open on desktop, closing modal and active tab."),p.close(),a.value=null)}};return(h,B)=>{var w,N;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{ref_key:"searchContainer",ref:m,class:"w-full"},[e.createElementVNode("div",{class:"group/search relative flex place-items-center shadow-md p-2 border-2 border-base-300/25 rounded-sm w-full transition-all cursor-pointer md:cursor-auto",onClick:C},[e.createElementVNode("div",Pn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((w=l.searchOptions.find(p=>p.category===l.currentCategory))==null?void 0:w.tabs)||[],(p,x)=>{var b,I,O,q,J;return e.openBlock(),e.createElementBlock("button",{key:`${p.name}-${x}`,onClick:e.withModifiers(g=>k(p),["stop"]),class:e.normalizeClass([{"tab-active":((b=a.value)==null?void 0:b.name)===p.name,"tab-active-inline":((I=a.value)==null?void 0:I.name)===p.name&&((O=a.value)==null?void 0:O.displayMode)==="inline"},"group/searchitem after:top-0 after:-right-2 after:absolute relative first-of-type:flex-auto last-of-type:flex-auto after:bg-base-200 hover:bg-base-200 p-1 rounded-sm w-auto after:w-px after:h-10 overflow-x-hidden text-start md:after:content-[''] after:content-none last-of-type:after:content-none"]),ref_for:!0,ref:g=>i.value[p.name]=g},[((q=a.value)==null?void 0:q.name)===p.name&&((J=a.value)==null?void 0:J.displayMode)==="inline"?(e.openBlock(),e.createElementBlock("div",jn,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c[a.value.type]),e.mergeProps({ref_for:!0},a.value.props||{},{modelValue:a.value.value,onUpdated:B[0]||(B[0]=g=>d(g)),"onUpdate:modelValue":B[1]||(B[1]=g=>d(g)),onBlur:T,onKeydown:e.withKeys(e.withModifiers(U,["stop","prevent"]),["enter"]),ref_for:!0,ref_key:"inlineComponentRef",ref:s}),null,16,["modelValue","onKeydown"]))])):(e.openBlock(),e.createElementBlock("div",An,[e.createElementVNode("p",Fn,e.toDisplayString(p.name),1),p.value!==void 0&&p.value!==null&&p.value!==""?(e.openBlock(),e.createElementBlock("p",_n,e.toDisplayString(y(p)),1)):(e.openBlock(),e.createElementBlock("p",Un,e.toDisplayString(p.description),1))]))],10,Ln)}),128))]),a.value&&a.value.displayMode==="popup"?(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(u.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c[a.value.type]),e.mergeProps(a.value.props||{},{modelValue:a.value.value,onUpdated:B[2]||(B[2]=p=>f(p)),"onUpdate:modelValue":B[3]||(B[3]=p=>f(p))}),null,16,["modelValue"]))],4)):e.createCommentVNode("",!0),e.createElementVNode("button",{title:"search",type:"submit",class:"ml-1 btn btn-primary btn-square",onClick:e.withModifiers($,["stop"])},[e.createVNode(e.unref(ot),{size:24,color:"white"})])]),e.createElementVNode("div",Rn,[e.createElementVNode("button",{title:"search",onClick:B[4]||(B[4]=()=>{})},[e.createVNode(e.unref(ot),{size:24,color:"white"})])])],512),e.createElementVNode("dialog",{id:`advancedSearchMobile-${e.unref(r)}`,class:"modal"},[e.createElementVNode("div",Hn,[e.renderSlot(h.$slots,"additionalForMobile",{},()=>[e.createElementVNode("h3",Wn,e.toDisplayString(t.currentCategory),1)],!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((N=l.searchOptions.find(p=>p.category===l.currentCategory))==null?void 0:N.tabs)||[],(p,x)=>(e.openBlock(),e.createElementBlock("div",{class:"collapse bg-base-200 my-4",key:p.name},[e.createElementVNode("input",{type:"radio",name:`accordion-${e.unref(r)}`,checked:x===0},null,8,Kn),e.createElementVNode("div",Yn,[e.createElementVNode("div",null,e.toDisplayString(p.name),1),p.value!==void 0&&p.value!==null&&p.value!==""?(e.openBlock(),e.createElementBlock("div",Xn,e.toDisplayString(y(p)),1)):(e.openBlock(),e.createElementBlock("div",Jn,e.toDisplayString(p.description),1))]),e.createElementVNode("div",Gn,[B[7]||(B[7]=e.createElementVNode("br",null,null,-1)),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c[p.type]),e.mergeProps({ref_for:!0},p.props||{},{modelValue:p.value,onUpdated:B[5]||(B[5]=b=>f(b)),"onUpdate:modelValue":B[6]||(B[6]=b=>f(b))}),null,16,["modelValue"]))])]))),128)),e.createElementVNode("div",{class:"modal-action"},[e.createElementVNode("form",{method:"dialog"},[e.createElementVNode("button",{class:"btn btn-primary",onClick:$}," Close and Search ")])])])],8,qn)],64)}}}),[["__scopeId","data-v-577c3624"]]),Qn={class:"z-30 relative flex items-center bg-base-100 date-filter-input px-4 border-2 border-primary rounded-md w-full min-h-10 font-semibold text-primary text-sm"},eo={key:0},to={key:1},no=["id","onKeydown"],oo={key:2,class:"flex justify-center p-4"},lo={class:"join items-center gap-2 max-w-2xs md:max-w-full justify-between max-md:input max-md:input-bordered !rounded overflow-hidden mx-auto"},ao={class:"join-item"},ro=["id","disabled","value"],so={class:"join-item"},io=["id","disabled","value"],co={key:3,class:"p-4 min-w-2xs"},uo=["id","disabled","value"],mo={key:4,class:"flex px-4 my-4 w-full justify-end"},at=ie(e.defineComponent({__name:"datetimePicker",props:{mode:{default:"datetime"},range:{type:Boolean,default:!1},placeholder:{default:"Select date and time"},popup:{type:Boolean,default:!1},id:{default:"date-time-picker"},initialDate:{default:null},disabled:{type:Boolean,default:!1},locale:{default:"en-US"},format:{},firstDayOfWeek:{default:1},min:{},max:{},closeText:{default:"Close"}},emits:["update:modelValue","change"],setup(t,{emit:n}){const l=typeof window<"u",o=t,r=n,a=e.ref(null),s=e.ref(!1),c=e.ref(null),i=e.ref(null),u=e.ref(null),m=e.ref(null),y=e.ref(null),f=e.ref({from:"",to:"",single:""}),d=e.ref({single:null,start:null,end:null}),$=g=>g instanceof Date?g.toISOString():g,v=g=>g.split("T")[0]||"",C=g=>{const E=g instanceof Date?g:new Date(g);if(isNaN(E.getTime()))return"";const V=String(E.getHours()).padStart(2,"0"),M=String(E.getMinutes()).padStart(2,"0");return`${V}:${M}`},k=()=>{const g=new Date,E=C(g);let V=o.initialDate;if(!V&&o.mode!=="time"&&(V=o.range?{start:g,end:g}:g),!!V){if(!V){o.mode==="time"&&(o.range?(f.value.from=E,f.value.to=E):f.value.single=E);return}if(o.range&&typeof V=="object"&&"start"in V){const M=$(V.start),j=$(V.end);d.value.start=v(M),d.value.end=v(j),o.mode!=="date"&&(f.value.from=C(M),f.value.to=C(j))}else{const M=$(V);d.value.single=v(M),o.mode!=="date"&&(f.value.single=C(M))}}},T=e.computed(()=>{const g=M=>{if(!M)return"";if(M.includes(":"))return M;try{return new Date(M+"T00:00:00").toLocaleDateString(o.locale,{year:"numeric",month:"numeric",day:"numeric"})}catch{const[j,A,H]=M.split("-");return`${H}/${A}/${j}`}};let E="",V="";if((o.mode==="date"||o.mode==="datetime")&&(o.range?d.value.start&&d.value.end&&(E=`${d.value.start} - ${d.value.end}`):d.value.single&&(E=d.value.single)),(o.mode==="time"||o.mode==="datetime")&&(o.range?f.value.from&&f.value.to&&(V=`${f.value.from} - ${f.value.to}`):f.value.single&&(V=f.value.single)),o.mode==="date")return o.range?E.split(" - ").map(g).join(" - "):g(E);if(o.mode==="time")return V;if(o.mode==="datetime")if(o.range){const M=d.value.start,j=d.value.end,A=f.value.from,H=f.value.to;if(M&&j&&A&&H)return`${g(M)} ${A} - ${g(j)} ${H}`;if(M)return`${g(M)} ${A||""}`.trim()}else{const M=d.value.single,j=f.value.single;return`${g(M)} ${j||""}`.trim()}return""}),U=()=>{if(c.value)d.value.single=c.value.value||null;else if(i.value){const g=i.value.value;if(typeof g=="string"&&g.includes("/")){const[E,V]=g.split("/");d.value.start=E||null,d.value.end=V||null}else d.value.start=g||null,d.value.end=g||null}},Y=()=>d.value.start&&d.value.end?`${d.value.start}/${d.value.end}`:null,h=()=>{if(o.range){const V=d.value.start,M=d.value.end||d.value.start,j=f.value.from,A=f.value.to;if(o.mode==="time")return j&&A?{start:j,end:A}:null;if(o.mode==="date")return V&&M?{start:V,end:M}:null;if(o.mode==="datetime"){if(!V||!M)return null;const H=j?`${j}:00`:"00:00:00",ee=A?`${A}:00`:"23:59:59",re=`${V}T${H}`,Qe=`${M}T${ee}`;return{start:re,end:Qe}}return null}const g=d.value.single,E=f.value.single;if(o.mode==="time")return E||null;if(o.mode==="date")return g||null;if(o.mode==="datetime"){if(!g)return null;const V=E?`${E}:00`:"00:00:00";return`${g}T${V}`}return null},B=async()=>{U();const g=h();r("update:modelValue",g),r("change",g)},w=()=>{e.nextTick(()=>{B()})},N=g=>{const E=g.target;o.range?E===m.value?f.value.from=E.value:E===y.value&&(f.value.to=E.value):f.value.single=E.value,B()},p=()=>{s.value=!s.value},x=()=>{B(),s.value=!1},b=g=>{!o.popup||!s.value||setTimeout(()=>{const E=a.value,V=g.target,M=`date-picker-${o.id}-popup`;E&&!E.contains(V)&&!g.target.closest(`#${M}`)&&x()},0)},I=()=>{x()},O=()=>{B(),o.popup&&(s.value=!1)},q=()=>{if(!l)return;const g=o.range?i.value:c.value;g&&typeof g.navigate=="function"&&g.navigate(-1)},J=()=>{if(!l)return;const g=o.range?i.value:c.value;g&&typeof g.navigate=="function"&&g.navigate(1)};return e.onMounted(()=>{l&&Promise.resolve().then(()=>ba).catch(g=>{console.warn("Failed to load cally:",g)}),k()}),e.watch(d,async g=>{if(await e.nextTick(),c.value&&g.single){const E=g.single;c.value.value!==E&&(c.value.value=E)}if(i.value){const E=Y();E&&i.value.value!==E&&(i.value.value=E)}B()},{immediate:!0,deep:!0}),e.watch([d,c,i],async()=>{await e.nextTick(),c.value&&d.value.single&&!c.value.value&&(c.value.value=d.value.single),i.value&&d.value.start&&d.value.end&&!i.value.value&&(i.value.value=`${d.value.start}/${d.value.end}`),B()},{immediate:!0}),e.watch([u,m,y],()=>{B()},{immediate:!0}),(g,E)=>{const V=e.resolveComponent("calendar-month"),M=e.resolveComponent("calendar-date"),j=e.resolveComponent("calendar-range");return e.openBlock(),e.createElementBlock("div",{class:"inline-block relative w-fit lg:w-full",ref_key:"pickerContainer",ref:a,onMousedownCapture:b},[o.popup?(e.openBlock(),e.createElementBlock("div",{key:0,class:"flex items-center gap-2 cursor-pointer w-full",onClick:E[0]||(E[0]=A=>o.disabled?null:p())},[e.createElementVNode("div",Qn,[T.value?(e.openBlock(),e.createElementBlock("span",to,e.toDisplayString(T.value),1)):(e.openBlock(),e.createElementBlock("span",eo,e.toDisplayString(o.placeholder),1))])])):e.createCommentVNode("",!0),s.value||!o.popup?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["z-50 bg-base-100 rounded-md w-full min-w-xs overflow-hidden",{"absolute top-full left-0 mt-2 shadow-lg":o.popup,"mt-2":!o.popup}]),id:`date-picker-${o.id}-popup`,onKeydown:[E[1]||(E[1]=e.withKeys(e.withModifiers(()=>{},["prevent","stop"]),["tab"])),e.withKeys(I,["esc"]),e.withKeys(e.withModifiers(O,["prevent"]),["enter"])]},[!o.range&&o.mode!=="time"&&l?(e.openBlock(),e.createBlock(M,{key:0,class:"cally w-full",ref_key:"datePicker",ref:c,id:`${o.id}-date`,min:o.min,max:o.max,disabled:o.disabled,"first-day-of-week":o.firstDayOfWeek,onChange:w},{default:e.withCtx(()=>[e.createElementVNode("button",{slot:"previous",class:"btn-outline btn btn-primary md:btn-sm",onClick:q},[...E[2]||(E[2]=[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.createElementVNode("button",{slot:"next",class:"btn-outline btn btn-primary md:btn-sm",onClick:J},[...E[3]||(E[3]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"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.createVNode(V,{locale:o.locale},null,8,["locale"])]),_:1},8,["id","min","max","disabled","first-day-of-week"])):e.createCommentVNode("",!0),o.range&&o.mode!=="time"&&l?(e.openBlock(),e.createBlock(j,{key:1,class:"cally w-full",ref_key:"rangeDatePicker",ref:i,id:`${o.id}-date-range`,min:o.min,max:o.max,disabled:o.disabled,"first-day-of-week":o.firstDayOfWeek,onChange:w},{default:e.withCtx(()=>[e.createElementVNode("button",{slot:"previous",class:"btn-outline btn btn-primary md:btn-sm",onClick:q},[...E[4]||(E[4]=[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.createElementVNode("button",{slot:"next",class:"btn-outline btn btn-primary md:btn-sm",onClick:J},[...E[5]||(E[5]=[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.createVNode(V,{locale:o.locale},null,8,["locale"])]),_:1},8,["id","min","max","disabled","first-day-of-week"])):e.createCommentVNode("",!0),o.range&&o.mode!=="date"?(e.openBlock(),e.createElementBlock("div",oo,[e.createElementVNode("div",lo,[e.createElementVNode("div",ao,[e.createElementVNode("input",{class:"text-center hover:border-b-2 hover:-mb-0.5 open:bg-primary open:p-1 open:-m-0.5 open:rounded w-full relative",type:"time",ref_key:"timeFromInput",ref:m,id:`${o.id}-time-from`,placeholder:"from",onChange:N,disabled:o.disabled,value:f.value.from||""},null,40,ro)]),E[6]||(E[6]=e.createElementVNode("svg",{class:"join-item",viewBox:"0 0 1024 1024",focusable:"false","data-icon":"swap-right",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"})],-1)),e.createElementVNode("div",so,[e.createElementVNode("input",{class:"text-center hover:border-b-2 hover:-mb-0.5 open:bg-primary open:p-1 open:-m-0.5 open:rounded w-full relative",type:"time",ref_key:"timeToInput",ref:y,id:`${o.id}-time-to`,onChange:N,disabled:o.disabled,value:f.value.to||""},null,40,io)])])])):e.createCommentVNode("",!0),!o.range&&o.mode!=="date"?(e.openBlock(),e.createElementBlock("div",co,[e.createElementVNode("input",{class:"open:bg-primary open:rounded w-full input input-bordered justify-center",type:"time",ref_key:"timeInput",ref:u,id:`${o.id}-time`,onChange:N,disabled:o.disabled,value:f.value.single||""},null,40,uo)])):e.createCommentVNode("",!0),o.popup&&o.closeText?(e.openBlock(),e.createElementBlock("div",mo,[e.createElementVNode("button",{class:"btn btn-primary max-lg:w-full",onClick:x},e.toDisplayString(o.closeText),1)])):e.createCommentVNode("",!0)],42,no)):e.createCommentVNode("",!0)],544)}}}),[["__scopeId","data-v-e0b34494"]]),fo=Object.freeze(Object.defineProperty({__proto__:null,default:at},Symbol.toStringTag,{value:"Module"})),po=["value","checked","onChange","disabled"],ho=e.defineComponent({__name:"rating",props:{initialRating:{default:0},numberOfStars:{default:5},halfStars:{type:Boolean,default:!0},isInteractive:{type:Boolean,default:!1},size:{default:"sm"},shape:{default:"star"},color:{default:"bg-yellow-400"},gap:{default:0}},setup(t){const n=t,l=e.ref(n.initialRating);e.watch(()=>n.initialRating,r=>{l.value=r});const o=r=>{l.value=r};return(r,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["rating",[`rating-${n.size}`,{"rating-half":t.halfStars},{"pointer-events-none":!t.isInteractive}]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.numberOfStars*(t.halfStars?2:1),s=>(e.openBlock(),e.createElementBlock("input",{key:s,type:"radio",value:t.halfStars?s*.5:s,checked:l.value===(t.halfStars?s*.5:s),onChange:c=>t.isInteractive?o(t.halfStars?s*.5:s):null,class:e.normalizeClass(["mask",[{"mask-half-1":t.halfStars&&s%2!==0,"mask-half-2":t.halfStars&&s%2===0,"cursor-pointer":t.isInteractive,"cursor-default":!t.isInteractive,"mask-star":t.shape==="star","mask-star-2":t.shape==="star-bold","mask-heart":t.shape==="heart","mask-hexagon":t.shape==="hexagon-vertical","mask-hexagon-2":t.shape==="hexagon-horizontal","mask-decagon":t.shape==="decagon","mask-pentagon":t.shape==="pentagon","mask-diamond":t.shape==="diamond","mask-square":t.shape==="square","mask-triangle":t.shape==="triangle-top","mask-triangle-2":t.shape==="triangle-bottom","mask-triangle-3":t.shape==="triangle-left","mask-triangle-4":t.shape==="triangle-right"},l.value>=(t.halfStars?s*.5:s)?n.color:""]]),style:e.normalizeStyle({marginRight:t.halfStars&&s%2===0?`${n.gap}px`:t.halfStars?"0":`${n.gap}px`}),disabled:!t.isInteractive},null,46,po))),128))],2))}}),go={class:"badge"},yo=["onClick"],bo={class:"opacity-75"},ko=["placeholder"],wo=e.defineComponent({__name:"taginput",props:{modelValue:{},maxTagAmount:{},placeholder:{},class:{}},emits:["update:modelValue"],setup(t,{emit:n}){const l=t,o=n,r=e.ref([...l.modelValue]),a=l.maxTagAmount===void 0?-1:l.maxTagAmount,s=e.ref(null),c=e.ref(""),i=e.computed(()=>a<0||r.value.length<a),u=()=>{const d=c.value.trim();d&&!r.value.includes(d)&&(r.value.push(d),o("update:modelValue",r.value),c.value="")},m=d=>{r.value=r.value.filter($=>$!==d),o("update:modelValue",r.value)},y=()=>{c.value===""&&(r.value.pop(),o("update:modelValue",r.value))},f=d=>{d.key==="Enter"?u():d.key==="Backspace"&&c.value===""&&y()};return e.watch(()=>l.modelValue,d=>{r.value=[...d]}),(d,$)=>(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",d.$props.class])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,v=>e.renderSlot(d.$slots,"tag",{key:v,tag:v},()=>[e.createElementVNode("div",go,[e.createElementVNode("button",{class:"px-1! py-0! h-fit font-bold cursor-pointer",onClick:C=>m(v),"aria-label":"Remove tag"},"X",8,yo),e.createElementVNode("span",bo,e.toDisplayString(v),1)])])),128)),e.renderSlot(d.$slots,"input",{showInput:i.value},()=>[i.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,ref_key:"inputRef",ref:s,"onUpdate:modelValue":$[0]||($[0]=v=>c.value=v),type:"text",placeholder:t.placeholder||"Type here",class:"h-full input input-ghost",onKeydown:f,"aria-label":"Add tags"},null,40,ko)),[[e.vModelText,c.value]]):e.createCommentVNode("",!0)])],2))}}),vo={class:"w-full max-w-xs form-control"},xo={key:0,class:"label"},Eo={class:"label-text"},Bo=["value"],$o={key:0,value:"",disabled:"",selected:""},Co=["value"],rt=e.defineComponent({__name:"select",props:{options:{},label:{},placeholder:{},modelValue:{}},emits:["update:modelValue"],setup(t,{expose:n,emit:l}){console.log(t.placeholder);const r=l,a=e.ref(null),s=i=>{const u=i.target;r("update:modelValue",u.value)};return n({focusInput:()=>{var i;console.log("select.vue: focusInput method called."),(i=a.value)==null||i.focus()}}),(i,u)=>(e.openBlock(),e.createElementBlock("div",vo,[t.label?(e.openBlock(),e.createElementBlock("label",xo,[e.createElementVNode("span",Eo,e.toDisplayString(t.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("select",{ref_key:"selectElement",ref:a,class:"rounded-md w-full select-bordered select",value:t.modelValue,onChange:s},[t.placeholder?(e.openBlock(),e.createElementBlock("option",$o,e.toDisplayString(t.placeholder),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,m=>(e.openBlock(),e.createElementBlock("option",{key:m.value,value:m.value},e.toDisplayString(m.text),9,Co))),128))],40,Bo)]))}}),So=Object.freeze(Object.defineProperty({__proto__:null,default:rt},Symbol.toStringTag,{value:"Module"})),Vo={key:0,class:"label"},No={class:"label-text"},Do=["onKeydown","aria-expanded","aria-activedescendant"],zo=["placeholder","disabled"],Mo={class:"top-full z-10 absolute bg-base-100 shadow-lg mt-1 rounded-md w-full dropdown-content",role:"listbox"},To={class:"flex-nowrap p-0 w-[inherit] max-h-60 overflow-y-auto menu"},Io=["onMousedown","id","aria-selected"],Oo={__name:"filterableSelect",props:{options:{type:Array,required:!0,default:()=>[]},label:{type:String,default:""},placeholder:{type:String,default:"Select an option"},modelValue:{type:[String,Number,Object,null],default:null},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","select","clear"],setup(t,{expose:n,emit:l}){const o=t,r=l,a=e.useSlots(),s=e.computed(()=>{const x=(a.default?a.default():[]).filter(b=>b.type!==e.Comment);return console.log("hasDefaultSlotContent computed:",x.length>0),x.length>0}),c=e.ref(""),i=e.ref(null),u=e.ref(!1),m=e.ref(null),y=e.ref(null),f=e.ref(null),d=e.ref(null),$=()=>{u.value=!o.disabled},v=()=>{u.value=!1,d.value=null,s.value||(i.value&&c.value!==i.value.text?c.value=i.value.text:i.value||(c.value=""))},C=()=>{u.value?v():$()},k=e.computed(()=>{const p=c.value?c.value.toLowerCase():"";return p===""&&!u.value?[]:o.options.filter(b=>b&&b.text?b.text.toLowerCase().includes(p):"")});e.watch(()=>o.modelValue,(p,x)=>{if(p!==x&&v(),p==null)i.value=null,!u.value&&!s.value&&(c.value="");else{const b=o.options.find(I=>I.value===p);b?(i.value=b,!u.value&&!s.value&&(c.value=b.text)):(i.value=null,!u.value&&!s.value&&(c.value=""))}},{immediate:!0});const T=p=>{y.value&&!y.value.contains(p.target)&&v()},U=()=>{setTimeout(()=>{y.value&&!y.value.contains(document.activeElement)&&v()},100)};e.watch(u,p=>{p?setTimeout(()=>{document.addEventListener("click",T)},0):document.removeEventListener("click",T)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",T),window.removeEventListener("keydown",N)});const Y=()=>{if(o.disabled)return;const p=i.value;r("update:modelValue",null),p&&r("clear",p)},h=p=>{i.value=p,s.value||(c.value=p.text),r("update:modelValue",p.value),r("select",p),v()},B=()=>{k.value.length>0&&h(k.value[0])},w=()=>{u.value||$()},N=p=>{if(!u.value||k.value.length===0)return;const x=k.value.findIndex((I,O)=>"option-"+O===d.value);let b=-1;if(p.key==="ArrowDown")p.preventDefault(),b=(x+1)%k.value.length;else if(p.key==="ArrowUp")p.preventDefault(),b=(x-1+k.value.length)%k.value.length;else if(p.key==="Enter"&&d.value){p.preventDefault();const I=k.value.find((O,q)=>"option-"+q===d.value);I&&h(I);return}else if(p.key==="Escape"){p.preventDefault(),v(),f.value&&f.value.focus();return}else if(s.value)return;if(b!==-1){d.value="option-"+b;const I=document.getElementById(d.value);I&&requestAnimationFrame(()=>{I.scrollIntoView({block:"nearest",behavior:"smooth"})})}};return e.watch(u,p=>{p?(window.addEventListener("keydown",N),!s.value&&!c.value&&i.value&&(c.value=i.value.text)):window.removeEventListener("keydown",N)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",T),window.removeEventListener("keydown",N)}),n({isDropdownOpen:u,selectedItem:i,openDropdown:$,closeDropdown:v,toggleDropdown:C,selectItem:h,filterText:c,hasDefaultSlotContent:s}),(p,x)=>(e.openBlock(),e.createElementBlock("div",{class:"relative w-full max-w-xs form-control",ref_key:"componentRoot",ref:y},[t.label?(e.openBlock(),e.createElementBlock("label",Vo,[e.createElementVNode("span",No,e.toDisplayString(t.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["flex items-center input-bordered rounded-md w-fit cursor-pointer",{input:!s.value,select:!s.value}]),style:e.normalizeStyle(i.value?"background-image: unset; padding-right: 0.5rem;":""),tabindex:"0",onClick:x[1]||(x[1]=b=>s.value?C():$()),onKeydown:[e.withKeys(e.withModifiers(B,["prevent"]),["enter"]),e.withKeys(e.withModifiers(B,["prevent"]),["space"])],onBlur:U,role:"combobox","aria-haspopup":"listbox","aria-expanded":u.value,"aria-activedescendant":d.value,"aria-autocomplete":"list",ref_key:"activatorWrapper",ref:f},[e.renderSlot(p.$slots,"default",{},()=>[s.value?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,type:"text",placeholder:t.placeholder,class:"bg-transparent border-none focus:outline-none w-full","onUpdate:modelValue":x[0]||(x[0]=b=>c.value=b),ref_key:"filterInput",ref:m,onFocus:$,onInput:w,tabindex:"-1",disabled:o.disabled},null,40,zo)),[[e.vModelText,c.value]])]),i.value&&!t.disabled?(e.openBlock(),e.createBlock(e.unref(ln),{key:0,size:20,class:"mx-2 text-base-content/50 hover:text-base-content/80 cursor-pointer",onClick:e.withModifiers(Y,["stop"])})):e.createCommentVNode("",!0),s.value&&!i.value?(e.openBlock(),e.createBlock(e.unref(on),{key:1,class:e.normalizeClass([{"rotate-180":u.value},"mx-2"]),size:20},null,8,["class"])):e.createCommentVNode("",!0)],46,Do),e.withDirectives(e.createElementVNode("div",Mo,[e.createElementVNode("ul",To,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,(b,I)=>(e.openBlock(),e.createElementBlock("li",{key:b.value,onMousedown:e.withModifiers(O=>h(b),["prevent"]),class:"hover:bg-base-200 rounded-md w-full cursor-pointer",id:"option-"+I,role:"option","aria-selected":i.value&&i.value.value===b.value},[e.createElementVNode("a",null,e.toDisplayString(b.text),1)],40,Io))),128))])],512),[[e.vShow,u.value&&k.value.length>0]])],512))}},Po={class:"w-full max-w-xs form-control"},Lo={key:0,class:"label"},jo={class:"label-text"},Ao=["type","placeholder","disabled","value"],Fo={key:1,class:"label"},_o={class:"label-text-alt text-error validator-hint"},Uo={key:2,class:"label"},Ro={class:"label-text-alt text-success validator-hint"},st=e.defineComponent({__name:"inputField",props:{modelValue:{default:""},label:{default:""},placeholder:{default:""},type:{default:"text"},rules:{default:()=>({})},needsValidation:{type:Boolean,default:!1},successMessage:{default:""},size:{default:"md"},color:{default:""},style:{default:""},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","validate"],setup(t,{expose:n,emit:l}){const o=t,r=l,a=e.ref(null),s=e.ref(!1),c=e.ref(""),i=e.computed(()=>{var C,k,T,U;let d=!0,$="";const v=o.modelValue;return(C=o.rules)!=null&&C.required&&(v==null||v==="")&&(d=!1,$="This field is required."),d&&((k=o.rules)==null?void 0:k.minLength)!==void 0&&typeof v=="string"&&v.length<o.rules.minLength&&(d=!1,$=`Must be at least ${o.rules.minLength} characters.`),d&&((T=o.rules)==null?void 0:T.maxLength)!==void 0&&typeof v=="string"&&v.length>o.rules.maxLength&&(d=!1,$=`Cannot exceed ${o.rules.maxLength} characters.`),d&&((U=o.rules)!=null&&U.email)&&typeof v=="string"&&v&&(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(v)||(d=!1,$="Please enter a valid email address.")),c.value=$,r("validate",d),d}),u=e.computed(()=>s.value&&!i.value),m=d=>{const $=d.target;r("update:modelValue",$.value),s.value&&i.value},y=()=>{s.value=!0,i.value};return e.watch(()=>o.modelValue,()=>{s.value&&i.value}),n({focusInput:()=>{var d;console.log("inputField.vue: focusInput method called."),(d=a.value)==null||d.focus()},isValid:i,isTouched:s,errorMessage:c}),(d,$)=>(e.openBlock(),e.createElementBlock("div",Po,[t.label?(e.openBlock(),e.createElementBlock("label",Lo,[e.createElementVNode("span",jo,e.toDisplayString(t.label),1)])):e.createCommentVNode("",!0),e.renderSlot(d.$slots,"default"),e.createElementVNode("input",{ref_key:"inputElement",ref:a,type:t.type,placeholder:t.placeholder,disabled:o.disabled,class:e.normalizeClass(["input-bordered rounded-md w-full input validator",[{"input-xs":t.size==="xs","input-sm":t.size==="sm","input-md":t.size==="md","input-lg":t.size==="lg","input-xl":t.size==="xl","input-ghost":t.style==="ghost","input-neutral":t.color==="neutral"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-primary":t.color==="primary"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-secondary":t.color==="secondary"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-accent":t.color==="accent"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-info":t.color==="info"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-success":t.color==="success"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-warning":t.color==="warning"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-error":u.value,"input-success-validation":i.value&&s.value&&!u.value&&t.needsValidation}]]),value:t.modelValue,onInput:m,onBlur:y},null,42,Ao),u.value?(e.openBlock(),e.createElementBlock("div",Fo,[e.createElementVNode("span",_o,e.toDisplayString(c.value),1)])):i.value&&s.value&&t.successMessage?(e.openBlock(),e.createElementBlock("div",Uo,[e.createElementVNode("span",Ro,e.toDisplayString(t.successMessage),1)])):e.createCommentVNode("",!0)]))}}),qo=Object.freeze(Object.defineProperty({__proto__:null,default:st},Symbol.toStringTag,{value:"Module"})),Ho=e.defineComponent({__name:"loader",props:{loading:{type:Boolean,default:!0},size:{default:"md"},type:{default:"spinner"},color:{default:"primary"}},setup(t){const n=t,l=e.ref(n.loading);return e.watch(()=>n.loading,o=>{l.value=o}),(o,r)=>l.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["loading",[{"loading-xs":t.size==="xs"},{"loading-sm":t.size==="sm"},{"loading-md":t.size==="md"},{"loading-lg":t.size==="lg"},{"loading-xl":t.size==="xl"},{"loading-spinner":t.type==="spinner"},{"loading-dots":t.type==="dots"},{"loading-ring":t.type==="ring"},{"loading-balls":t.type==="balls"},{"loading-bars":t.type==="bars"},{"loading-infinity":t.type==="infinity"},{"text-primary":t.color==="primary"},{"text-secondary":t.color==="secondary"},{"text-accent":t.color==="accent"},{"text-neutral":t.color==="neutral"},{"text-info":t.color==="info"},{"text-success":t.color==="success"},{"text-warning":t.color==="warning"},{"text-error":t.color==="error"}]])},null,2)):e.createCommentVNode("",!0)}}),Wo={class:"container flex flex-col sm:flex-row"},Ko={class:"footer-title"},Yo=["href"],Xo={key:0,class:"sm:hidden w-full"},Jo={class:"border-b-2 border-base-100 last:border-b-0 w-full"},Go={tabindex:"0",class:"collapse collapse-plus w-full"},Zo={class:"collapse-title font-bold text-lg collapsible-footer-title"},Qo={class:"collapse-content flex w-full text-sm"},el={class:"flex flex-col gap-2.5"},tl={class:"w-full"},nl=["href"],ol={class:"w-full"},ll=e.defineComponent({__name:"footer",props:{items:{},background:{},color:{},collapseOnMobile:{type:Boolean,default:!1},rows:{default:1}},setup(t){const n=t;return(l,o)=>(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",Wo,[e.createElementVNode("div",{class:e.normalizeClass(["footer sm:footer-horizontal",[{"sm:grid-rows-1":n.rows===1},{"sm:grid-rows-2":n.rows===2},{"sm:grid-rows-3":n.rows===3}]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,r=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass([{"hidden sm:grid":t.collapseOnMobile}])},[e.createElementVNode("h6",Ko,e.toDisplayString(r.title),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.items,a=>(e.openBlock(),e.createElementBlock("a",{class:"link link-hover",href:a.link},e.toDisplayString(a.text),9,Yo))),256))],2))),256)),e.createElementVNode("nav",{class:e.normalizeClass(["empty:hidden",[{"hidden sm:grid":t.collapseOnMobile}]])},[e.renderSlot(l.$slots,"extra-row")],2),t.collapseOnMobile?(e.openBlock(),e.createElementBlock("nav",Xo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,r=>(e.openBlock(),e.createElementBlock("ul",Jo,[e.createElementVNode("div",Go,[e.createElementVNode("div",Zo,e.toDisplayString(r.title),1),e.createElementVNode("div",Qo,[e.createElementVNode("ul",el,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.items,a=>(e.openBlock(),e.createElementBlock("li",tl,[e.createElementVNode("a",{class:"w-full font-medium link link-hover",href:a.link},e.toDisplayString(a.text),9,nl)]))),256))])])])]))),256))])):e.createCommentVNode("",!0)],2),e.createElementVNode("aside",ol,[e.renderSlot(l.$slots,"default")])])],2))}}),al={},rl={class:"min-h-40 container hero"},sl={class:"px-0! text-center hero-content"},il={class:"mt-9 text-4xl"};function cl(t,n){return e.openBlock(),e.createElementBlock("div",rl,[e.createElementVNode("div",sl,[e.createElementVNode("div",null,[e.createElementVNode("h1",il,[e.renderSlot(t.$slots,"title",{},()=>[n[0]||(n[0]=e.createTextVNode("hero title",-1))])]),e.createElementVNode("p",null,[e.renderSlot(t.$slots,"description",{class:"py-9"})]),e.renderSlot(t.$slots,"call-to-action-block",{class:"max-w-full"},()=>[n[1]||(n[1]=e.createElementVNode("button",{class:"btn btn-primary"},"Call to action",-1))])])])])}const dl=ie(al,[["render",cl]]),ul={class:"flex flex-row place-content-center gap-4 categories"},ml=["onClick"],fl=e.defineComponent({__name:"categoryNavigation",props:{searchOptions:{},currentCategory:{}},emits:["update:currentCategory"],setup(t,{emit:n}){const l=t,o=n;function r(a){o("update:currentCategory",a)}return(a,s)=>(e.openBlock(),e.createElementBlock("div",ul,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.searchOptions,c=>(e.openBlock(),e.createElementBlock("div",{key:c.category},[e.createElementVNode("button",{onClick:i=>r(c.category),class:e.normalizeClass(["truncate btn btn-ghost",{"font-semibold":l.currentCategory===c.category}])},e.toDisplayString(c.category),11,ml)]))),128))]))}}),pl={class:"md:flex hidden navbar-start"},hl={class:"md:flex justify-center items-center hidden navbar-center"},gl={class:"md:flex hidden navbar-end"},yl={class:"navbar-bottom md:flex hidden"},bl=ie(e.defineComponent({__name:"navigationBar",props:{isCollapsed:{type:Boolean,default:!0}},setup(t){const n=t;return(l,o)=>(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",n.isCollapsed?"collapsed":""])},[e.createElementVNode("div",pl,[e.renderSlot(l.$slots,"start",{},void 0,!0)]),e.createElementVNode("div",hl,[e.renderSlot(l.$slots,"center",{},void 0,!0)]),e.createElementVNode("div",gl,[e.renderSlot(l.$slots,"end",{},void 0,!0)]),e.createElementVNode("div",yl,[e.renderSlot(l.$slots,"bottom",{},void 0,!0)])],2))}}),[["__scopeId","data-v-8ddb2b45"]]),kl={key:0,class:"hidden top-4 right-0 absolute md:flex gap-4"},wl=["onClick","aria-selected"],vl={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"},xl={class:"p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full"},El=e.defineComponent({__name:"tab",props:{items:{},withControlls:{type:Boolean,default:!1},rotateTabsAfter:{default:0},buttonOnlyMode:{type:Boolean,default:!1}},emits:["tab-changed"],setup(t,{emit:n}){const l=t,o=e.ref(l.items[0]),r=n;function a(i){o.value=i,r("tab-changed",i)}function s(){const u=(l.items.indexOf(o.value)+1)%l.items.length;a(l.items[u])}function c(){const u=(l.items.indexOf(o.value)-1+l.items.length)%l.items.length;a(l.items[u])}return e.onMounted(()=>{l.items&&a(l.items[0])}),e.onUnmounted(()=>{l.rotateTabsAfter&&l.rotateTabsAfter>0&&setInterval(()=>{s()},l.rotateTabsAfter*1e3)}),(i,u)=>(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":t.buttonOnlyMode}])},[t.withControlls?(e.openBlock(),e.createElementBlock("div",kl,[e.createElementVNode("button",{onClick:u[0]||(u[0]=m=>c()),class:"cursor-pointer"},"Previous"),e.createElementVNode("button",{onClick:u[1]||(u[1]=m=>s()),class:"text-primary cursor-pointer"},"Next")])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,m=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("a",{type:"button",role:"tab",class:e.normalizeClass(["min-w-max tab",m===o.value?"bg-primary text-base-100":""]),onClick:y=>a(m),"aria-selected":o.value==m},e.toDisplayString(m),11,wl),t.buttonOnlyMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",vl,[e.renderSlot(i.$slots,`${m}-tab`)]))],64))),256))],2),e.createElementVNode("div",xl,[e.renderSlot(i.$slots,"default")])],64))}});typeof document>"u"&&(globalThis.document={}),typeof window>"u"&&(globalThis.window=globalThis);class Bl{constructor(n){tt(this,se);tt(this,me,new Set);nt(this,se,n)}get current(){return pe(this,se)}set current(n){pe(this,se)!=n&&(nt(this,se,n),pe(this,me).forEach(l=>l(n)))}on(n){return pe(this,me).add(n),()=>pe(this,me).delete(n)}}se=new WeakMap,me=new WeakMap;const it=t=>new Bl(t),Te=Symbol.for("atomico.hooks");globalThis[Te]=globalThis[Te]||{};let ce=globalThis[Te];const $l=Symbol.for("Atomico.suspense"),ct=Symbol.for("Atomico.effect"),Cl=Symbol.for("Atomico.layoutEffect"),dt=Symbol.for("Atomico.insertionEffect"),de=(t,n,l)=>{const{i:o,hooks:r}=ce.c,a=r[o]=r[o]||{};return a.value=t(a.value),a.effect=n,a.tag=l,ce.c.i++,r[o].value},Sl=t=>de((n=it(t))=>n),ge=()=>de((t=it(ce.c.host))=>t),ut=()=>ce.c.update,Vl=(t,n,l=0)=>{let o={},r=!1;const a=()=>r,s=(c,i)=>{for(const u in o){const m=o[u];m.effect&&m.tag===c&&(m.value=m.effect(m.value,i))}};return{load:c=>{ce.c={host:n,hooks:o,update:t,i:0,id:l};let i;try{r=!1,i=c()}catch(u){if(u!==$l)throw u;r=!0}finally{ce.c=null}return i},cleanEffects:c=>(s(dt,c),()=>(s(Cl,c),()=>{s(ct,c)})),isSuspense:a}},ue=Symbol.for;function mt(t,n){const l=t.length;if(l!==n.length)return!1;for(let o=0;o<l;o++){let r=t[o],a=n[o];if(r!==a)return!1}return!0}const Q=t=>typeof t=="function",ye=t=>typeof t=="object",{isArray:Nl}=Array,Ie=(t,n)=>(n?t instanceof HTMLStyleElement:!0)&&"hydrate"in((t==null?void 0:t.dataset)||{});function ft(t,n){let l;const o=r=>{let{length:a}=r;for(let s=0;s<a;s++){const c=r[s];if(c&&Array.isArray(c))o(c);else{const i=typeof c;if(c==null||i==="function"||i==="boolean")continue;i==="string"||i==="number"?(l==null&&(l=""),l+=c):(l!=null&&(n(l),l=null),n(c))}}};o(t),l!=null&&n(l)}const pt=(t,n,l)=>(t.addEventListener(n,l),()=>t.removeEventListener(n,l));class ht{constructor(n,l,o){this.message=l,this.target=n,this.value=o}}class gt extends ht{}class Dl extends ht{}const Ce="Custom",zl=null,Ml={true:1,"":1,1:1};function Tl(t,n,l,o,r){const{type:a,reflect:s,event:c,value:i,attr:u=Il(n)}=(l==null?void 0:l.name)!=Ce&&ye(l)&&l!=zl?l:{type:l},m=(a==null?void 0:a.name)===Ce&&a.map,y=i!=null?a==Function||!Q(i)?()=>i:i:null;Object.defineProperty(t,n,{configurable:!0,set(f){const d=this[n];y&&a!=Boolean&&f==null&&(f=y());const{error:$,value:v}=(m?Ll:jl)(a,f);if($&&v!=null)throw new gt(this,`The value defined for prop '${n}' must be of type '${a.name}'`,v);d!=v&&(this._props[n]=v??void 0,this.update(),c&&yt(this,c),this.updated.then(()=>{s&&(this._ignoreAttr=u,Ol(this,a,u,this[n]),this._ignoreAttr=null)}))},get(){return this._props[n]}}),y&&(r[n]=y()),o[u]={prop:n,type:a}}const yt=(t,{type:n,base:l=CustomEvent,...o})=>t.dispatchEvent(new l(n,o)),Il=t=>t.replace(/([A-Z])/g,"-$1").toLowerCase(),Ol=(t,n,l,o)=>o==null||n==Boolean&&!o?t.removeAttribute(l):t.setAttribute(l,(n==null?void 0:n.name)===Ce&&(n!=null&&n.serialize)?n==null?void 0:n.serialize(o):ye(o)?JSON.stringify(o):n==Boolean?"":o),Pl=(t,n)=>t==Boolean?!!Ml[n]:t==Number?Number(n):t==String?n:t==Array||t==Object?JSON.parse(n):t.name==Ce?n:new t(n),Ll=({map:t},n)=>{try{return{value:t(n),error:!1}}catch{return{value:n,error:!0}}},jl=(t,n)=>t==null||n==null?{value:n,error:!1}:t!=String&&n===""?{value:void 0,error:!1}:t==Object||t==Array||t==Symbol?{value:n,error:{}.toString.call(n)!==`[object ${t.name}]`}:n instanceof t?{value:n,error:t==Number&&Number.isNaN(n.valueOf())}:t==String||t==Number||t==Boolean?{value:n,error:t==Number?typeof n!="number"?!0:Number.isNaN(n):t==String?typeof n!="string":typeof n!="boolean"}:{value:n,error:!0};let Al=0;const Fl=t=>{var l;return((l=(t==null?void 0:t.dataset)||{})==null?void 0:l.hydrate)||""||"c"+Al++},be=(t,n=HTMLElement)=>{const l={},o={},r="prototype"in n&&n.prototype instanceof Element,a=r?n:"base"in n?n.base:HTMLElement,{props:s,styles:c}=r?t:n;class i extends a{constructor(){super(),this._setup(),this._render=()=>t({...this._props});for(const m in o)this[m]=o[m]}static get styles(){return[super.styles,c]}async _setup(){if(this._props)return;this._props={};let m,y;this.mounted=new Promise(C=>this.mount=()=>{C(),m!=this.parentNode&&(y!=m?this.unmounted.then(this.update):this.update()),m=this.parentNode}),this.unmounted=new Promise(C=>this.unmount=()=>{C(),(m!=this.parentNode||!this.isConnected)&&(f.cleanEffects(!0)()(),y=this.parentNode,m=null)}),this.symbolId=this.symbolId||Symbol(),this.symbolIdParent=Symbol();const f=Vl(()=>this.update(),this,Fl(this));let d,$=!0;const v=Ie(this);this.update=()=>(d||(d=!0,this.updated=(this.updated||this.mounted).then(()=>{try{const C=f.load(this._render),k=f.cleanEffects();return C&&C.render(this,this.symbolId,v),d=!1,$&&!f.isSuspense()&&($=!1,!v&&_l(this)),k()}finally{d=!1}}).then(C=>{C&&C()})),this.updated),this.update()}connectedCallback(){this.mount(),super.connectedCallback&&super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback(),this.unmount()}attributeChangedCallback(m,y,f){if(l[m]){if(m===this._ignoreAttr||y===f)return;const{prop:d,type:$}=l[m];try{this[d]=Pl($,f)}catch{throw new Dl(this,`The value defined as attr '${m}' cannot be parsed by type '${$.name}'`,f)}}else super.attributeChangedCallback(m,y,f)}static get props(){return{...super.props,...s}}static get observedAttributes(){const m=super.observedAttributes||[];for(const y in s)Tl(this.prototype,y,s[y],l,o);return Object.keys(l).concat(m)}}return i};function _l(t){const{styles:n}=t.constructor,{shadowRoot:l}=t;if(l&&n.length){const o=[];ft(n,r=>{r&&(r instanceof Element?l.appendChild(r.cloneNode(!0)):o.push(r))}),o.length&&(l.adoptedStyleSheets=o)}}const bt=t=>(n,l)=>{de(([o,r]=[])=>((r||!r)&&(r&&mt(r,l)?o=o||!0:(Q(o)&&o(),o=null)),[o,l]),([o,r],a)=>a?(Q(o)&&o(),[]):[o||n(),r],t)},ke=bt(ct),Ul=bt(dt);class kt extends Array{constructor(n,l){let o=!0;const r=a=>{try{l(a,this,o)}finally{o=!1}};super(void 0,r,l),r(n)}}const Oe=t=>{const n=ut();return de((l=new kt(t,(o,r,a)=>{o=Q(o)?o(r[0]):o,o!==r[0]&&(r[0]=o,a||n())}))=>l)},ne=(t,n)=>{const[l]=de(([o,r,a=0]=[])=>((!r||r&&!mt(r,n))&&(o=t()),[o,n,a]));return l},Pe=t=>{const{current:n}=ge();if(!(t in n))throw new gt(n,`For useProp("${t}"), the prop does not exist on the host.`,t);return de((l=new kt(n[t],(o,r)=>{o=Q(o)?o(n[t]):o,n[t]=o}))=>(l[0]=n[t],l))},le=(t,n={})=>{const l=ge();return l[t]||(l[t]=(o=n.detail)=>yt(l.current,{type:t,...n,detail:o})),l[t]},Le=ue("atomico/options");globalThis[Le]=globalThis[Le]||{sheet:!!document.adoptedStyleSheets};const wt=globalThis[Le],Rl={checked:1,value:1,selected:1},ql={list:1,type:1,size:1,form:1,width:1,height:1,src:1,href:1,slot:1},Hl={shadowDom:1,staticNode:1,cloneNode:1,children:1,key:1},Se={},je=[];class Ae extends Text{}const Wl=ue("atomico/id"),we=ue("atomico/type"),Fe=ue("atomico/ref"),vt=ue("atomico/vnode"),Kl=()=>{};function Yl(t,n,l){return Et(this,t,n,l)}const xt=(t,n,...l)=>{const o=n||Se;let{children:r}=o;if(r=r??(l.length?l:je),t===Kl)return r;const a=t?t instanceof Node?1:t.prototype instanceof HTMLElement&&2:0;if(a===!1&&t instanceof Function)return t(r!=je?{children:r,...o}:o);const s=wt.render||Yl;return{[we]:vt,type:t,props:o,children:r,key:o.key,shadow:o.shadowDom,static:o.staticNode,raw:a,is:o.is,clone:o.cloneNode,render:s}};function Et(t,n,l=Wl,o,r){let a;if(n&&n[l]&&n[l].vnode==t||t[we]!=vt)return n;(t||!n)&&(r=r||t.type=="svg",a=t.type!="host"&&(t.raw==1?(n&&t.clone?n[Fe]:n)!=t.type:t.raw==2?!(n instanceof t.type):n?n[Fe]||n.localName!=t.type:!n),a&&t.type!=null&&(t.raw==1&&t.clone?(o=!0,n=t.type.cloneNode(!0),n[Fe]=t.type):n=t.raw==1?t.type:t.raw==2?new t.type:r?document.createElementNS("http://www.w3.org/2000/svg",t.type):document.createElement(t.type,t.is?{is:t.is}:void 0)));const s=n[l]?n[l]:Se,{vnode:c=Se,cycle:i=0}=s;let{fragment:u,handlers:m}=s;const{children:y=je,props:f=Se}=c;if(m=a?{}:m||{},t.static&&!a)return n;if(t.shadow&&!n.shadowRoot&&n.attachShadow({mode:"open",...t.shadow}),t.props!=f&&Gl(n,f,t.props,m,r),t.children!==y){const d=t.shadow?n.shadowRoot:n;u=Jl(t.children,u,d,l,!i&&o,r&&t.type=="foreignObject"?!1:r)}return n[l]={vnode:t,handlers:m,fragment:u,cycle:i+1},n}function Xl(t,n){const l=new Ae(""),o=new Ae("");let r;if(t[n?"prepend":"append"](l),n){let{lastElementChild:a}=t;for(;a;){const{previousElementSibling:s}=a;if(Ie(a,!0)&&!Ie(s,!0)){r=a;break}a=s}}return r?r.before(o):t.append(o),{markStart:l,markEnd:o}}function Jl(t,n,l,o,r,a){t=t==null?null:Nl(t)?t:[t];const s=n||Xl(l,r),{markStart:c,markEnd:i,keyes:u}=s;let m;const y=u&&new Set;let f=c;if(t&&ft(t,d=>{if(typeof d=="object"&&!d[we])return;const $=d[we]&&d.key,v=u&&$!=null&&u.get($);f!=i&&f===v?y.delete(f):f=f==i?i:f.nextSibling;const C=u?v:f;let k=C;if(d[we])k=Et(d,C,o,r,a);else{const T=d+"";!(k instanceof Text)||k instanceof Ae?k=new Text(T):k.data!=T&&(k.data=T)}k!=f&&(u&&y.delete(k),!C||u?(l.insertBefore(k,f),u&&f!=i&&y.add(f)):C==i?l.insertBefore(k,i):(l.replaceChild(k,C),f=k)),$!=null&&(m=m||new Map,m.set($,k))}),f=f==i?i:f.nextSibling,n&&f!=i)for(;f!=i;){const d=f;f=f.nextSibling,d.remove()}return y&&y.forEach(d=>d.remove()),s.keyes=m,s}function Gl(t,n,l,o,r){for(const a in n)!(a in l)&&Bt(t,a,n[a],null,r,o);for(const a in l)Bt(t,a,n[a],l[a],r,o)}function Bt(t,n,l,o,r,a){if(n=n=="class"&&!r?"className":n,l=l??null,o=o??null,n in t&&Rl[n]&&(l=t[n]),!(o===l||Hl[n]||n[0]=="_"))if(n[0]=="o"&&n[1]=="n"&&(Q(o)||Q(l)))Zl(t,n.slice(2),o,a);else if(n=="ref")o&&(Q(o)?o(t):o.current=t);else if(n=="style"){const{style:s}=t;l=l||"",o=o||"";const c=ye(l),i=ye(o);if(c)for(const u in l)if(i)!(u in o)&&$t(s,u,null);else break;if(i)for(const u in o){const m=o[u];c&&l[u]===m||$t(s,u,m)}else s.cssText=o}else{const s=n[0]=="$"?n.slice(1):n;s===n&&(!r&&!ql[n]&&n in t||Q(o)||Q(l))?t[n]=o??"":o==null?t.removeAttribute(s):t.setAttribute(s,ye(o)?JSON.stringify(o):o)}}function Zl(t,n,l,o){if(o.handleEvent||(o.handleEvent=r=>o[r.type].call(t,r)),l){if(!o[n]){const r=l.capture||l.once||l.passive?Object.assign({},l):null;t.addEventListener(n,o,r)}o[n]=l}else o[n]&&(t.removeEventListener(n,o),delete o[n])}function $t(t,n,l){let o="setProperty";l==null&&(o="removeProperty",l=null),~n.indexOf("-")?t[o](n,l):t[n]=l}const Ct={};function Ve(t,...n){const l=(t.raw||t).reduce((o,r,a)=>o+r+(n[a]||""),"");return Ct[l]=Ct[l]||Ql(l)}function Ql(t){if(wt.sheet){const n=new CSSStyleSheet;return n.replaceSync(t),n}else{const n=document.createElement("style");return n.textContent=t,n}}const ea=xt("host",{style:"display: contents"}),_e=ue("atomico/context"),ta=(t,n)=>{const l=ge();Ul(()=>pt(l.current,"ConnectContext",o=>{t===o.detail.id&&(o.stopPropagation(),o.detail.connect(n))}),[t])},na=t=>{const n=le("ConnectContext",{bubbles:!0,composed:!0}),l=()=>{let a;return n({id:t,connect(s){a=s}}),a},[o,r]=Oe(l);return ke(()=>{o||(t[_e]||(t[_e]=customElements.whenDefined(new t().localName)),t[_e].then(()=>r(l)))},[t]),o},oa=t=>{const n=na(t),l=ut();return ke(()=>{if(n)return pt(n,"UpdatedValue",l)},[n]),(n||t).value},la=t=>{const n=be(()=>(ta(n,ge().current),ea),{props:{value:{type:Object,event:{type:"UpdatedValue"},value:()=>t}}});return n.value=t,n},L=(t,n,l)=>(n==null?n={key:l}:n.key=l,xt(t,n)),ve=L,St=Ve`*,*:before,*:after{box-sizing:border-box}button{padding:0;touch-action:manipulation;cursor:pointer;user-select:none}`,Vt=Ve`.vh{position:absolute;transform:scale(0)}`;function Ue(){const t=new Date;return new _(t.getFullYear(),t.getMonth()+1,t.getDate())}function Re(t,n=0){const l=G(t),o=l.getUTCDay(),r=(o<n?7:0)+o-n;return l.setUTCDate(l.getUTCDate()-r),_.from(l)}function Nt(t,n=0){return Re(t,n).add({days:6})}function Dt(t){return _.from(new Date(Date.UTC(t.year,t.month,0)))}function Ne(t,n,l){return n&&_.compare(t,n)<0?n:l&&_.compare(t,l)>0?l:t}const aa={days:1};function ra(t,n=0){let l=Re(t.toPlainDate(),n);const o=Nt(Dt(t),n),r=[];for(;_.compare(l,o)<0;){const a=[];for(let s=0;s<7;s++)a.push(l),l=l.add(aa);r.push(a)}return r}function G(t){return new Date(Date.UTC(t.year,t.month-1,t.day??1))}const sa=/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[0-1])$/,qe=(t,n)=>t.toString().padStart(n,"0");class _{constructor(n,l,o){this.year=n,this.month=l,this.day=o}add(n){const l=G(this);if("days"in n)return l.setUTCDate(this.day+n.days),_.from(l);let{year:o,month:r}=this;"months"in n?(r=this.month+n.months,l.setUTCMonth(r-1)):(o=this.year+n.years,l.setUTCFullYear(o));const a=_.from(G({year:o,month:r,day:1}));return Ne(_.from(l),a,Dt(a))}toString(){return`${qe(this.year,4)}-${qe(this.month,2)}-${qe(this.day,2)}`}toPlainYearMonth(){return new De(this.year,this.month)}equals(n){return _.compare(this,n)===0}static compare(n,l){return n.year<l.year?-1:n.year>l.year?1:n.month<l.month?-1:n.month>l.month?1:n.day<l.day?-1:n.day>l.day?1:0}static from(n){if(typeof n=="string"){const l=n.match(sa);if(!l)throw new TypeError(n);const[,o,r,a]=l;return new _(parseInt(o,10),parseInt(r,10),parseInt(a,10))}return new _(n.getUTCFullYear(),n.getUTCMonth()+1,n.getUTCDate())}}class De{constructor(n,l){this.year=n,this.month=l}add(n){const l=G(this),o=(n.months??0)+(n.years??0)*12;return l.setUTCMonth(l.getUTCMonth()+o),new De(l.getUTCFullYear(),l.getUTCMonth()+1)}equals(n){return this.year===n.year&&this.month===n.month}toPlainDate(){return new _(this.year,this.month,1)}}function ze(t,n){if(n)try{return t.from(n)}catch{}}function ae(t){const[n,l]=Pe(t);return[ne(()=>ze(_,n),[n]),o=>l(o==null?void 0:o.toString())]}function ia(t){const[n="",l]=Pe(t);return[ne(()=>{const[o,r]=n.split("/"),a=ze(_,o),s=ze(_,r);return a&&s?[a,s]:[]},[n]),o=>l(`${o[0]}/${o[1]}`)]}function ca(t){const[n="",l]=Pe(t);return[ne(()=>{const o=[];for(const r of n.trim().split(/\s+/)){const a=ze(_,r);a&&o.push(a)}return o},[n]),o=>l(o.join(" "))]}function xe(t,n){return ne(()=>new Intl.DateTimeFormat(n,{timeZone:"UTC",...t}),[n,t])}function zt(t,n,l){const o=xe(t,l);return ne(()=>{const r=[],a=new Date;for(var s=0;s<7;s++){const c=(a.getUTCDay()-n+7)%7;r[c]=o.format(a),a.setUTCDate(a.getUTCDate()+1)}return r},[n,o])}const Mt=(t,n,l)=>Ne(t,n,l)===t,Tt=t=>t.target.matches(":dir(ltr)"),da={month:"long",day:"numeric"},ua={month:"long"},ma={weekday:"long"},He={bubbles:!0};function fa({props:t,context:n}){const{offset:l}=t,{firstDayOfWeek:o,isDateDisallowed:r,min:a,max:s,today:c,page:i,locale:u,focusedDate:m,formatWeekday:y}=n,f=c??Ue(),d=zt(ma,o,u),$=ne(()=>({weekday:y}),[y]),v=zt($,o,u),C=xe(da,u),k=xe(ua,u),T=ne(()=>i.start.add({months:l}),[i,l]),U=ne(()=>ra(T,o),[T,o]),Y=le("focusday",He),h=le("selectday",He),B=le("hoverday",He);function w(x){Y(Ne(x,a,s))}function N(x){let b;switch(x.key){case"ArrowRight":b=m.add({days:Tt(x)?1:-1});break;case"ArrowLeft":b=m.add({days:Tt(x)?-1:1});break;case"ArrowDown":b=m.add({days:7});break;case"ArrowUp":b=m.add({days:-7});break;case"PageUp":b=m.add(x.shiftKey?{years:-1}:{months:-1});break;case"PageDown":b=m.add(x.shiftKey?{years:1}:{months:1});break;case"Home":b=Re(m,o);break;case"End":b=Nt(m,o);break;default:return}w(b),x.preventDefault()}function p(x){var M,j;const b=T.equals(x);if(!n.showOutsideDays&&!b)return;const I=x.equals(m),O=x.equals(f),q=G(x),J=r==null?void 0:r(q),g=!Mt(x,a,s);let E="",V;if(n.type==="range"){const[A,H]=n.value,ee=A==null?void 0:A.equals(x),re=H==null?void 0:H.equals(x);V=A&&H&&Mt(x,A,H),E=`${ee?"range-start":""} ${re?"range-end":""} ${V&&!ee&&!re?"range-inner":""}`}else n.type==="multi"?V=n.value.some(A=>A.equals(x)):V=(M=n.value)==null?void 0:M.equals(x);return{part:`${`button day day-${q.getDay()} ${b?V?"selected":"":"outside"} ${J?"disallowed":""} ${O?"today":""} ${((j=n.getDayParts)==null?void 0:j.call(n,q))??""}`} ${E}`,tabindex:b&&I?0:-1,disabled:g,"aria-disabled":J?"true":void 0,"aria-pressed":b&&V,"aria-current":O?"date":void 0,"aria-label":C.format(q),onkeydown:N,onclick(){J||h(x),w(x)},onmouseover(){!J&&!g&&B(x)}}}return{weeks:U,yearMonth:T,daysLong:d,daysVisible:v,formatter:k,getDayProps:p}}const We=Ue(),Ke=la({type:"date",firstDayOfWeek:1,focusedDate:We,page:{start:We.toPlainYearMonth(),end:We.toPlainYearMonth()}});customElements.define("calendar-ctx",Ke);const pa=(t,n)=>(n+t)%7,It=be(t=>{const n=oa(Ke),l=Sl(),o=fa({props:t,context:n});function r(){var a;(a=l.current.querySelector("button[tabindex='0']"))==null||a.focus()}return ve("host",{shadowDom:!0,focus:r,children:[L("div",{id:"h",part:"heading",children:o.formatter.format(G(o.yearMonth))}),ve("table",{ref:l,"aria-labelledby":"h",part:"table",children:[L("thead",{children:L("tr",{part:"tr head",children:o.daysLong.map((a,s)=>ve("th",{part:`th day day-${pa(n.firstDayOfWeek,s)}`,scope:"col",children:[L("span",{class:"vh",children:a}),L("span",{"aria-hidden":"true",children:o.daysVisible[s]})]}))})}),L("tbody",{children:o.weeks.map((a,s)=>L("tr",{part:"tr week",children:a.map((c,i)=>{const u=o.getDayProps(c);return L("td",{part:"td",children:u&&L("button",{...u,children:c.day})},i)})},s))})]})]})},{props:{offset:{type:Number,value:0}},styles:[St,Vt,Ve`:host{--color-accent: black;--color-text-on-accent: white;display:flex;flex-direction:column;gap:.25rem;text-align:center;inline-size:fit-content}table{border-collapse:collapse;font-size:.875rem}th{font-weight:700;block-size:2.25rem}td{padding-inline:0}button{color:inherit;font-size:inherit;background:transparent;border:0;font-variant-numeric:tabular-nums;block-size:2.25rem;inline-size:2.25rem}button:hover:where(:not(:disabled,[aria-disabled])){background:#0000000d}button:is([aria-pressed=true],:focus-visible){background:var(--color-accent);color:var(--color-text-on-accent)}button:focus-visible{outline:1px solid var(--color-text-on-accent);outline-offset:-2px}button:disabled,:host::part(outside),:host::part(disallowed){cursor:default;opacity:.5}`]});customElements.define("calendar-month",It);function Ot(t){return L("button",{part:`button ${t.name} ${t.onclick?"":"disabled"}`,onclick:t.onclick,"aria-disabled":t.onclick?null:"true",children:L("slot",{name:t.name,children:t.children})})}function Ye(t){const n=G(t.page.start),l=G(t.page.end);return ve("div",{role:"group","aria-labelledby":"h",part:"container",children:[L("div",{id:"h",class:"vh","aria-live":"polite","aria-atomic":"true",children:t.formatVerbose.formatRange(n,l)}),ve("div",{part:"header",children:[L(Ot,{name:"previous",onclick:t.previous,children:"Previous"}),L("slot",{part:"heading",name:"heading",children:L("div",{"aria-hidden":"true",children:t.format.formatRange(n,l)})}),L(Ot,{name:"next",onclick:t.next,children:"Next"})]}),L(Ke,{value:t,onselectday:t.onSelect,onfocusday:t.onFocus,onhoverday:t.onHover,children:L("slot",{})})]})}const Xe={value:{type:String,value:""},min:{type:String,value:""},max:{type:String,value:""},today:{type:String,value:""},isDateDisallowed:{type:Function,value:t=>!1},formatWeekday:{type:String,value:()=>"narrow"},getDayParts:{type:Function,value:t=>""},firstDayOfWeek:{type:Number,value:()=>1},showOutsideDays:{type:Boolean,value:!1},locale:{type:String,value:()=>{}},months:{type:Number,value:1},focusedDate:{type:String,value:()=>{}},pageBy:{type:String,value:()=>"months"}},Je=[St,Vt,Ve`:host{display:block;inline-size:fit-content}[role=group]{display:flex;flex-direction:column;gap:1em}:host::part(header){display:flex;align-items:center;justify-content:space-between}:host::part(heading){font-weight:700;font-size:1.25em}button{display:flex;align-items:center;justify-content:center}button[aria-disabled]{cursor:default;opacity:.5}`],ha={year:"numeric"},ga={year:"numeric",month:"long"};function Ge(t,n){return(n.year-t.year)*12+n.month-t.month}const Pt=(t,n)=>(t=n===12?new De(t.year,1):t,{start:t,end:t.add({months:n-1})});function ya({pageBy:t,focusedDate:n,months:l,max:o,min:r,goto:a}){const s=t==="single"?1:l,[c,i]=Oe(()=>Pt(n.toPlainYearMonth(),l)),u=y=>i(Pt(c.start.add({months:y}),l)),m=y=>{const f=Ge(c.start,y.toPlainYearMonth());return f>=0&&f<l};return ke(()=>{if(m(n))return;const y=Ge(n.toPlainYearMonth(),c.start);a(n.add({months:y}))},[c.start]),ke(()=>{if(m(n))return;const y=Ge(c.start,n.toPlainYearMonth());u(y===-1?-s:y===l?s:Math.floor(y/l)*l)},[n,s,l]),{page:c,previous:!r||!m(r)?()=>u(-s):void 0,next:!o||!m(o)?()=>u(s):void 0}}function Ze({months:t,pageBy:n,locale:l,focusedDate:o,setFocusedDate:r}){const[a]=ae("min"),[s]=ae("max"),[c]=ae("today"),i=le("focusday"),u=le("change"),m=ne(()=>Ne(o??c??Ue(),a,s),[o,c,a,s]);function y(k){r(k),i(G(k))}const{next:f,previous:d,page:$}=ya({pageBy:n,focusedDate:m,months:t,min:a,max:s,goto:y}),v=ge();function C(k){const T=(k==null?void 0:k.target)??"day";T==="day"?v.current.querySelectorAll("calendar-month").forEach(U=>U.focus(k)):v.current.shadowRoot.querySelector(`[part~='${T}']`).focus(k)}return{format:xe(ha,l),formatVerbose:xe(ga,l),page:$,focusedDate:m,dispatch:u,onFocus(k){k.stopPropagation(),y(k.detail),setTimeout(C)},min:a,max:s,today:c,next:f,previous:d,focus:C}}const Lt=be(t=>{const[n,l]=ae("value"),[o=n,r]=ae("focusedDate"),a=Ze({...t,focusedDate:o,setFocusedDate:r});function s(c){l(c.detail),a.dispatch()}return L("host",{shadowDom:!0,focus:a.focus,children:L(Ye,{...t,...a,type:"date",value:n,onSelect:s})})},{props:Xe,styles:Je});customElements.define("calendar-date",Lt);const jt=(t,n)=>_.compare(t,n)<0?[t,n]:[n,t],At=be(t=>{const[n,l]=ia("value"),[o=n[0],r]=ae("focusedDate"),a=Ze({...t,focusedDate:o,setFocusedDate:r}),s=le("rangestart"),c=le("rangeend"),[i,u]=ae("tentative"),[m,y]=Oe();ke(()=>y(void 0),[i]);function f(C){a.onFocus(C),d(C)}function d(C){C.stopPropagation(),i&&y(C.detail)}function $(C){const k=C.detail;C.stopPropagation(),i?(l(jt(i,k)),u(void 0),c(G(k)),a.dispatch()):(u(k),s(G(k)))}const v=i?jt(i,m??i):n;return L("host",{shadowDom:!0,focus:a.focus,children:L(Ye,{...t,...a,type:"range",value:v,onFocus:f,onHover:d,onSelect:$})})},{props:{...Xe,tentative:{type:String,value:""}},styles:Je});customElements.define("calendar-range",At);const Ft=be(t=>{const[n,l]=ca("value"),[o=n[0],r]=ae("focusedDate"),a=Ze({...t,focusedDate:o,setFocusedDate:r});function s(c){const i=[...n],u=n.findIndex(m=>m.equals(c.detail));u<0?i.push(c.detail):i.splice(u,1),l(i),a.dispatch()}return L("host",{shadowDom:!0,focus:a.focus,children:L(Ye,{...t,...a,type:"multi",value:n,onSelect:s})})},{props:Xe,styles:Je});customElements.define("calendar-multi",Ft);const ba=Object.freeze(Object.defineProperty({__proto__:null,CalendarDate:Lt,CalendarMonth:It,CalendarMulti:Ft,CalendarRange:At},Symbol.toStringTag,{value:"Module"}));S.Accordion=gn,S.AdvancedSearch=Zn,S.Avatar=kn,S.Badge=wn,S.ButtonComponent=Ht,S.Card=Sn,S.Carousel=In,S.CarouselItem=On,S.CategoryNavigation=fl,S.DatetimePicker=at,S.Dropdown=Yt,S.FilterableSelect=Oo,S.Footer=ll,S.Hero=dl,S.InputField=st,S.Loader=Ho,S.Modal=Gt,S.NavigationBar=bl,S.Rating=ho,S.Selector=rt,S.Swap=en,S.Tab=El,S.TagInput=wo,S.ThemeController=un,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})}));
|
package/dist/style.css
CHANGED