manolis-ui 0.17.0 → 0.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/manolis-ui.css +1 -1
- package/dist/manolis-ui.js +109 -107
- package/dist/manolis-ui.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/manolis-ui.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.carousel[data-v-db55a6a5]{-ms-overflow-style:none;scrollbar-width:none}.carousel[data-v-db55a6a5]::-webkit-scrollbar{display:none}.carousel-item[data-v-507384bc]{flex-shrink:0}.tab-content[data-v-577c3624]{background-color:var(--color-base-100);padding:1rem;border-radius:var(--radius-box, .5rem);box-shadow:var(--tw-shadow-lg);border:1px solid var(--color-base-300)}.tabs button[data-v-577c3624]{cursor:pointer;flex-grow:1;flex-shrink:1;min-width:0;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:0 1rem;position:relative}.tabs button .text-sm[data-v-577c3624],.tabs button .text-xs[data-v-577c3624]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.tabs button>.inline-component-wrapper[data-v-577c3624]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:0 1rem;background-color:var(--color-base-100);z-index:1}.tabs button.tab-active-inline .flex-col[data-v-577c3624]{visibility:hidden}@media (max-width: 768px){.tab-content[data-v-577c3624]{width:90%;left:50%!important;transform:translate(-50%)!important;top:auto!important;bottom:unset!important;margin-top:10px;position:fixed;max-height:80vh;overflow-y:auto}}@media (min-width: 769px){.tab-content[data-v-577c3624]{width:auto;left:unset;transform:unset;position:absolute;max-height:unset;overflow-y:visible}.tabs-boxed .tab[data-v-577c3624]{flex-basis:0}}@media (max-width: 768px){.collapse-title>div[data-v-577c3624]:last-child{opacity:.75}}.tabs-boxed .tab.tab-active[data-v-577c3624],.tabs-boxed .tab.tab-active[data-v-577c3624]:hover{background-color:var(--color-primary);color:var(--color-primary-content)}.tabs-boxed .tab.tab-active-inline[data-v-577c3624]{background-color:var(--color-primary);color:var(--color-primary-content);flex:6}.tabs button>.inline-component-wrapper[data-v-577c3624] *{color:var(--color-base-content)}input[type=time][data-v-
|
|
1
|
+
.carousel[data-v-db55a6a5]{-ms-overflow-style:none;scrollbar-width:none}.carousel[data-v-db55a6a5]::-webkit-scrollbar{display:none}.carousel-item[data-v-507384bc]{flex-shrink:0}.tab-content[data-v-577c3624]{background-color:var(--color-base-100);padding:1rem;border-radius:var(--radius-box, .5rem);box-shadow:var(--tw-shadow-lg);border:1px solid var(--color-base-300)}.tabs button[data-v-577c3624]{cursor:pointer;flex-grow:1;flex-shrink:1;min-width:0;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:0 1rem;position:relative}.tabs button .text-sm[data-v-577c3624],.tabs button .text-xs[data-v-577c3624]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.tabs button>.inline-component-wrapper[data-v-577c3624]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:0 1rem;background-color:var(--color-base-100);z-index:1}.tabs button.tab-active-inline .flex-col[data-v-577c3624]{visibility:hidden}@media (max-width: 768px){.tab-content[data-v-577c3624]{width:90%;left:50%!important;transform:translate(-50%)!important;top:auto!important;bottom:unset!important;margin-top:10px;position:fixed;max-height:80vh;overflow-y:auto}}@media (min-width: 769px){.tab-content[data-v-577c3624]{width:auto;left:unset;transform:unset;position:absolute;max-height:unset;overflow-y:visible}.tabs-boxed .tab[data-v-577c3624]{flex-basis:0}}@media (max-width: 768px){.collapse-title>div[data-v-577c3624]:last-child{opacity:.75}}.tabs-boxed .tab.tab-active[data-v-577c3624],.tabs-boxed .tab.tab-active[data-v-577c3624]:hover{background-color:var(--color-primary);color:var(--color-primary-content)}.tabs-boxed .tab.tab-active-inline[data-v-577c3624]{background-color:var(--color-primary);color:var(--color-primary-content);flex:6}.tabs button>.inline-component-wrapper[data-v-577c3624] *{color:var(--color-base-content)}input[type=time][data-v-e0b34494]::-webkit-calendar-picker-indicator{opacity:0;position:absolute;height:100%;width:100%}.cally[data-v-e0b34494] ::part(selected){border-radius:var(--radius-field)!important;background:var(--color-primary)!important;color:var(--color-primary-content)!important}.cally[data-v-e0b34494] ::part(day){font-size:var(--text-base)!important}.cally div[part=container][data-v-e0b34494]{padding:0!important}.cally[data-v-e0b34494] ::part(button day today){background:var(--color-secondary);color:var(--color-secondary-content)}.navigationbar[data-v-8ddb2b45]{display:grid;grid-template-columns:auto auto auto;grid-template-rows:auto auto;grid-template-areas:"center center center" "bottom bottom bottom";position:fixed;width:100%!important;gap:0 1rem;align-items:center;padding:var(--navbar-padding, .5rem);min-height:4rem;z-index:5}@media (min-width: 768px){.navigationbar[data-v-8ddb2b45]{grid-template-columns:.7fr 1.6fr .7fr;grid-template-areas:"start center end" "bottom bottom bottom";grid-row-gap:2rem;padding:2rem}}.navbar-start[data-v-8ddb2b45]{grid-area:start;height:100%}.navbar-center[data-v-8ddb2b45]{grid-area:center;width:100%;height:100%}.navbar-end[data-v-8ddb2b45]{width:100%;height:100%;grid-area:end}.navbar-bottom[data-v-8ddb2b45]{grid-area:center;width:100%;display:flex;justify-content:center;align-items:center}@media (min-width: 768px){.navbar-bottom[data-v-8ddb2b45]{grid-area:bottom}}nav.navigationbar.collapsed[data-v-8ddb2b45]{top:0;z-index:10;grid-template-columns:auto 1fr auto!important}@media (min-width: 768px){nav.navigationbar.collapsed[data-v-8ddb2b45]{row-gap:0;padding:1rem}}nav.navigationbar.collapsed .navbar-bottom[data-v-8ddb2b45]{grid-area:center!important}
|
package/dist/manolis-ui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as L, computed as J, createElementBlock as s, openBlock as a, normalizeClass as M, createCommentVNode as T, renderSlot as V, createTextVNode as be, createElementVNode as n, Fragment as R, renderList as q, toDisplayString as z, ref as k, watch as
|
|
1
|
+
import { defineComponent as L, computed as J, createElementBlock as s, openBlock as a, normalizeClass as M, createCommentVNode as T, renderSlot as V, createTextVNode as be, createElementVNode as n, Fragment as R, renderList as q, toDisplayString as z, ref as k, watch as _, h as ve, onMounted as ne, withDirectives as ue, createVNode as le, isRef as Ce, vModelCheckbox as Se, unref as G, provide as Ie, normalizeStyle as se, inject as Te, useId as Me, defineAsyncComponent as de, nextTick as ee, onBeforeUnmount as pe, withModifiers as Z, createBlock as Q, resolveDynamicComponent as ce, mergeProps as fe, withKeys as te, resolveComponent as me, withCtx as he, vModelText as ye, useSlots as Ve, Comment as Be, vShow as ze, onUnmounted as Oe } from "vue";
|
|
2
2
|
const De = ["disabled"], Pe = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "loading loading-spinner"
|
|
@@ -141,7 +141,7 @@ const De = ["disabled"], Pe = {
|
|
|
141
141
|
var o;
|
|
142
142
|
(o = t.value) == null || o.close();
|
|
143
143
|
};
|
|
144
|
-
return
|
|
144
|
+
return _(
|
|
145
145
|
() => d.forceOpen,
|
|
146
146
|
(o) => {
|
|
147
147
|
o == !0 && r(), o == !1 && i();
|
|
@@ -179,7 +179,7 @@ const De = ["disabled"], Pe = {
|
|
|
179
179
|
], 2)
|
|
180
180
|
], 64));
|
|
181
181
|
}
|
|
182
|
-
}), Re = { class: "flex justify-center items-center swap-on" },
|
|
182
|
+
}), Re = { class: "flex justify-center items-center swap-on" }, _e = { class: "flex justify-center items-center swap-off" }, Zl = /* @__PURE__ */ L({
|
|
183
183
|
__name: "swap",
|
|
184
184
|
props: {
|
|
185
185
|
effect: {}
|
|
@@ -193,7 +193,7 @@ const De = ["disabled"], Pe = {
|
|
|
193
193
|
n("div", Re, [
|
|
194
194
|
V(l.$slots, "on")
|
|
195
195
|
]),
|
|
196
|
-
n("div",
|
|
196
|
+
n("div", _e, [
|
|
197
197
|
V(l.$slots, "off")
|
|
198
198
|
])
|
|
199
199
|
], 2));
|
|
@@ -205,7 +205,7 @@ const De = ["disabled"], Pe = {
|
|
|
205
205
|
* This source code is licensed under the ISC license.
|
|
206
206
|
* See the LICENSE file in the root directory of this source tree.
|
|
207
207
|
*/
|
|
208
|
-
const
|
|
208
|
+
const Ne = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
209
209
|
/**
|
|
210
210
|
* @license lucide-vue-next v0.468.0 - ISC
|
|
211
211
|
*
|
|
@@ -237,7 +237,7 @@ const Fe = ({ size: e, strokeWidth: d = 2, absoluteStrokeWidth: l, color: t, ico
|
|
|
237
237
|
height: e || re.height,
|
|
238
238
|
stroke: t || re.stroke,
|
|
239
239
|
"stroke-width": l ? Number(d) * 24 / Number(e) : d,
|
|
240
|
-
class: ["lucide", `lucide-${
|
|
240
|
+
class: ["lucide", `lucide-${Ne(i ?? "icon")}`],
|
|
241
241
|
...v
|
|
242
242
|
},
|
|
243
243
|
[...r.map((h) => ve(...h)), ...m.default ? [m.default()] : []]
|
|
@@ -320,7 +320,7 @@ const He = ie("SunIcon", [
|
|
|
320
320
|
const t = window.localStorage.getItem(e);
|
|
321
321
|
l.value = t ? JSON.parse(t) : d;
|
|
322
322
|
}
|
|
323
|
-
}),
|
|
323
|
+
}), _(l, (t) => {
|
|
324
324
|
typeof window < "u" && window.localStorage.setItem(e, JSON.stringify(t));
|
|
325
325
|
}), l;
|
|
326
326
|
}, Xe = { class: "swap-rotate swap" }, Ge = ["true-value", "false-value"], Ql = /* @__PURE__ */ L({
|
|
@@ -334,7 +334,7 @@ const He = ie("SunIcon", [
|
|
|
334
334
|
function t(r) {
|
|
335
335
|
typeof window < "u" && window.document && document.documentElement.setAttribute("data-theme", r);
|
|
336
336
|
}
|
|
337
|
-
return ne(() => t(l.value ? l.value : "")),
|
|
337
|
+
return ne(() => t(l.value ? l.value : "")), _(l, (r) => {
|
|
338
338
|
t(r);
|
|
339
339
|
}), (r, i) => (a(), s("label", Xe, [
|
|
340
340
|
ue(n("input", {
|
|
@@ -387,7 +387,7 @@ const He = ie("SunIcon", [
|
|
|
387
387
|
},
|
|
388
388
|
setup(e) {
|
|
389
389
|
const d = e, l = k(d.onlineStatus);
|
|
390
|
-
return
|
|
390
|
+
return _(
|
|
391
391
|
() => d.onlineStatus,
|
|
392
392
|
(t) => {
|
|
393
393
|
t && (l.value = t);
|
|
@@ -471,7 +471,7 @@ const He = ie("SunIcon", [
|
|
|
471
471
|
},
|
|
472
472
|
setup(e) {
|
|
473
473
|
const d = e, l = k(d.outlined);
|
|
474
|
-
return
|
|
474
|
+
return _(
|
|
475
475
|
() => d.outlined,
|
|
476
476
|
(t) => {
|
|
477
477
|
l.value = t;
|
|
@@ -573,9 +573,9 @@ const He = ie("SunIcon", [
|
|
|
573
573
|
r.value ? o.value = r.value.children.length : o.value = 0;
|
|
574
574
|
}, h = async (y) => {
|
|
575
575
|
if (!r.value || l.slidesPerView <= 0 || i.value || (m(), o.value === 0)) return;
|
|
576
|
-
const w = (y % o.value + o.value) % o.value, S = r.value,
|
|
577
|
-
if (
|
|
578
|
-
const
|
|
576
|
+
const w = (y % o.value + o.value) % o.value, S = r.value, j = l.sliderOrientation === "vertical" ? (S.offsetHeight - (l.slidesPerView - 1) * l.gap) / l.slidesPerView : (S.offsetWidth - (l.slidesPerView - 1) * l.gap) / l.slidesPerView;
|
|
577
|
+
if (j <= 0) return;
|
|
578
|
+
const N = j + l.gap, U = w * N, K = l.sliderOrientation === "vertical" ? S.scrollHeight - S.offsetHeight : S.scrollWidth - S.offsetWidth, f = Math.max(0, Math.min(U, K + 0.5));
|
|
579
579
|
i.value = !0, S.style.scrollBehavior = "auto";
|
|
580
580
|
const g = l.sliderOrientation === "vertical" ? S.scrollTop : S.scrollLeft, C = f - g;
|
|
581
581
|
if (Math.abs(C) < 1) {
|
|
@@ -595,18 +595,18 @@ const He = ie("SunIcon", [
|
|
|
595
595
|
h(y);
|
|
596
596
|
}, c = () => {
|
|
597
597
|
if (!r.value || l.slidesPerView <= 0 || (m(), o.value === 0)) return;
|
|
598
|
-
const y = r.value, w = l.sliderOrientation === "vertical" ? y.offsetHeight : y.offsetWidth, S = l.slidesPerView > 1 ? (l.slidesPerView - 1) * l.gap : 0,
|
|
599
|
-
if (
|
|
600
|
-
const
|
|
598
|
+
const y = r.value, w = l.sliderOrientation === "vertical" ? y.offsetHeight : y.offsetWidth, S = l.slidesPerView > 1 ? (l.slidesPerView - 1) * l.gap : 0, j = (w - S) / l.slidesPerView;
|
|
599
|
+
if (j <= 0) return;
|
|
600
|
+
const N = Math.max(0, o.value - l.slidesPerView), U = Math.min(Math.max(0, l.initialSlide), N), K = U * (j + l.gap), f = l.sliderOrientation === "vertical" ? y.scrollHeight - y.offsetHeight : y.scrollWidth - y.offsetWidth, g = Math.max(0, Math.min(K, f + 0.5));
|
|
601
601
|
l.sliderOrientation === "vertical" ? y.scrollTo({ top: g, behavior: "auto" }) : y.scrollTo({ left: g, behavior: "auto" }), t.value = U;
|
|
602
602
|
};
|
|
603
603
|
return ne(() => {
|
|
604
604
|
requestAnimationFrame(() => {
|
|
605
605
|
requestAnimationFrame(c);
|
|
606
606
|
}), m();
|
|
607
|
-
}),
|
|
607
|
+
}), _(() => l.initialSlide, (y) => {
|
|
608
608
|
requestAnimationFrame(() => h(y));
|
|
609
|
-
}),
|
|
609
|
+
}), _(() => [l.slidesPerView, l.gap], () => {
|
|
610
610
|
requestAnimationFrame(() => {
|
|
611
611
|
requestAnimationFrame(() => {
|
|
612
612
|
if (m(), o.value === 0) return;
|
|
@@ -650,11 +650,11 @@ const He = ie("SunIcon", [
|
|
|
650
650
|
])
|
|
651
651
|
])) : T("", !0),
|
|
652
652
|
e.showIndicators ? (a(), s("div", dt, [
|
|
653
|
-
(a(!0), s(R, null, q(o.value, (S,
|
|
654
|
-
key: `dot-${
|
|
655
|
-
onClick: (
|
|
656
|
-
class: M(["btn btn-circle btn-xs", { "btn-active":
|
|
657
|
-
"aria-label": `Go to slide ${
|
|
653
|
+
(a(!0), s(R, null, q(o.value, (S, j) => (a(), s("button", {
|
|
654
|
+
key: `dot-${j}`,
|
|
655
|
+
onClick: (N) => $(j),
|
|
656
|
+
class: M(["btn btn-circle btn-xs", { "btn-active": j === t.value }]),
|
|
657
|
+
"aria-label": `Go to slide ${j + 1}`
|
|
658
658
|
}, null, 10, ct))), 128))
|
|
659
659
|
])) : T("", !0)
|
|
660
660
|
]));
|
|
@@ -801,7 +801,7 @@ const He = ie("SunIcon", [
|
|
|
801
801
|
);
|
|
802
802
|
}
|
|
803
803
|
}
|
|
804
|
-
async function
|
|
804
|
+
async function j(f) {
|
|
805
805
|
var C, B, u;
|
|
806
806
|
if (typeof window < "u" && window.innerWidth <= 768) {
|
|
807
807
|
S();
|
|
@@ -828,7 +828,7 @@ const He = ie("SunIcon", [
|
|
|
828
828
|
);
|
|
829
829
|
}
|
|
830
830
|
}
|
|
831
|
-
const
|
|
831
|
+
const N = (f) => {
|
|
832
832
|
const g = f.relatedTarget;
|
|
833
833
|
setTimeout(() => {
|
|
834
834
|
var C;
|
|
@@ -839,7 +839,7 @@ const He = ie("SunIcon", [
|
|
|
839
839
|
}, U = () => {
|
|
840
840
|
console.log("Enter key pressed on inline component, closing inline view."), i.value = null;
|
|
841
841
|
};
|
|
842
|
-
|
|
842
|
+
_(o, (f) => {
|
|
843
843
|
var g;
|
|
844
844
|
console.log(
|
|
845
845
|
"advanced-search: inlineComponentRef changed. New Value:",
|
|
@@ -898,7 +898,7 @@ const He = ie("SunIcon", [
|
|
|
898
898
|
var x, E, W, H, oe;
|
|
899
899
|
return a(), s("button", {
|
|
900
900
|
key: `${u.name}-${O}`,
|
|
901
|
-
onClick: Z((p) =>
|
|
901
|
+
onClick: Z((p) => j(u), ["stop"]),
|
|
902
902
|
class: M([{
|
|
903
903
|
"tab-active": ((x = i.value) == null ? void 0 : x.name) === u.name,
|
|
904
904
|
"tab-active-inline": ((E = i.value) == null ? void 0 : E.name) === u.name && ((W = i.value) == null ? void 0 : W.displayMode) === "inline"
|
|
@@ -912,7 +912,7 @@ const He = ie("SunIcon", [
|
|
|
912
912
|
modelValue: i.value.value,
|
|
913
913
|
onUpdated: g[0] || (g[0] = (p) => c(p)),
|
|
914
914
|
"onUpdate:modelValue": g[1] || (g[1] = (p) => c(p)),
|
|
915
|
-
onBlur:
|
|
915
|
+
onBlur: N,
|
|
916
916
|
onKeydown: te(Z(U, ["stop", "prevent"]), ["enter"]),
|
|
917
917
|
ref_for: !0,
|
|
918
918
|
ref_key: "inlineComponentRef",
|
|
@@ -1009,7 +1009,7 @@ const He = ie("SunIcon", [
|
|
|
1009
1009
|
}), on = /* @__PURE__ */ ae(Bt, [["__scopeId", "data-v-577c3624"]]), zt = { 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" }, Ot = { key: 0 }, Dt = { key: 1 }, Pt = ["id", "onKeydown"], jt = {
|
|
1010
1010
|
key: 2,
|
|
1011
1011
|
class: "flex justify-center p-4"
|
|
1012
|
-
}, Et = { 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" }, Lt = { class: "join-item" }, At = ["id", "disabled", "value"], Rt = { class: "join-item" },
|
|
1012
|
+
}, Et = { 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" }, Lt = { class: "join-item" }, At = ["id", "disabled", "value"], Rt = { class: "join-item" }, _t = ["id", "disabled", "value"], Nt = {
|
|
1013
1013
|
key: 3,
|
|
1014
1014
|
class: "p-4 min-w-2xs"
|
|
1015
1015
|
}, Ft = ["id", "disabled", "value"], qt = {
|
|
@@ -1045,52 +1045,54 @@ const He = ie("SunIcon", [
|
|
|
1045
1045
|
}), y = (p) => p instanceof Date ? p.toISOString() : p, w = (p) => p.split("T")[0] || "", S = (p) => {
|
|
1046
1046
|
const b = p instanceof Date ? p : new Date(p);
|
|
1047
1047
|
if (isNaN(b.getTime())) return "";
|
|
1048
|
-
const
|
|
1049
|
-
return `${
|
|
1050
|
-
},
|
|
1048
|
+
const D = String(b.getHours()).padStart(2, "0"), P = String(b.getMinutes()).padStart(2, "0");
|
|
1049
|
+
return `${D}:${P}`;
|
|
1050
|
+
}, j = () => {
|
|
1051
1051
|
const p = /* @__PURE__ */ new Date(), b = S(p);
|
|
1052
|
-
let
|
|
1053
|
-
if (!
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1052
|
+
let D = t.initialDate;
|
|
1053
|
+
if (!D && t.mode !== "time" && (D = t.range ? { start: p, end: p } : p), !!D) {
|
|
1054
|
+
if (!D) {
|
|
1055
|
+
t.mode === "time" && (t.range ? ($.value.from = b, $.value.to = b) : $.value.single = b);
|
|
1056
|
+
return;
|
|
1057
|
+
}
|
|
1058
|
+
if (t.range && typeof D == "object" && "start" in D) {
|
|
1059
|
+
const P = y(D.start), F = y(D.end);
|
|
1060
|
+
c.value.start = w(P), c.value.end = w(F), t.mode !== "date" && ($.value.from = S(P), $.value.to = S(F));
|
|
1061
|
+
} else {
|
|
1062
|
+
const P = y(D);
|
|
1063
|
+
c.value.single = w(P), t.mode !== "date" && ($.value.single = S(P));
|
|
1064
|
+
}
|
|
1063
1065
|
}
|
|
1064
|
-
},
|
|
1065
|
-
const p = (
|
|
1066
|
-
if (!
|
|
1067
|
-
if (
|
|
1066
|
+
}, N = J(() => {
|
|
1067
|
+
const p = (P) => {
|
|
1068
|
+
if (!P) return "";
|
|
1069
|
+
if (P.includes(":")) return P;
|
|
1068
1070
|
try {
|
|
1069
|
-
return (/* @__PURE__ */ new Date(
|
|
1071
|
+
return (/* @__PURE__ */ new Date(P + "T00:00:00")).toLocaleDateString(t.locale, {
|
|
1070
1072
|
year: "numeric",
|
|
1071
1073
|
month: "numeric",
|
|
1072
1074
|
day: "numeric"
|
|
1073
1075
|
});
|
|
1074
1076
|
} catch {
|
|
1075
|
-
const [F, X, Y] =
|
|
1077
|
+
const [F, X, Y] = P.split("-");
|
|
1076
1078
|
return `${Y}/${X}/${F}`;
|
|
1077
1079
|
}
|
|
1078
1080
|
};
|
|
1079
|
-
let b = "",
|
|
1080
|
-
if ((t.mode === "date" || t.mode === "datetime") && (t.range ? c.value.start && c.value.end && (b = `${c.value.start} - ${c.value.end}`) : c.value.single && (b = c.value.single)), (t.mode === "time" || t.mode === "datetime") && (t.range ? $.value.from && $.value.to && (
|
|
1081
|
+
let b = "", D = "";
|
|
1082
|
+
if ((t.mode === "date" || t.mode === "datetime") && (t.range ? c.value.start && c.value.end && (b = `${c.value.start} - ${c.value.end}`) : c.value.single && (b = c.value.single)), (t.mode === "time" || t.mode === "datetime") && (t.range ? $.value.from && $.value.to && (D = `${$.value.from} - ${$.value.to}`) : $.value.single && (D = $.value.single)), t.mode === "date")
|
|
1081
1083
|
return t.range ? b.split(" - ").map(p).join(" - ") : p(b);
|
|
1082
1084
|
if (t.mode === "time")
|
|
1083
|
-
return
|
|
1085
|
+
return D;
|
|
1084
1086
|
if (t.mode === "datetime")
|
|
1085
1087
|
if (t.range) {
|
|
1086
|
-
const
|
|
1087
|
-
if (
|
|
1088
|
-
return `${p(
|
|
1089
|
-
if (
|
|
1090
|
-
return `${p(
|
|
1088
|
+
const P = c.value.start, F = c.value.end, X = $.value.from, Y = $.value.to;
|
|
1089
|
+
if (P && F && X && Y)
|
|
1090
|
+
return `${p(P)} ${X} - ${p(F)} ${Y}`;
|
|
1091
|
+
if (P)
|
|
1092
|
+
return `${p(P)} ${X || ""}`.trim();
|
|
1091
1093
|
} else {
|
|
1092
|
-
const
|
|
1093
|
-
return `${p(
|
|
1094
|
+
const P = c.value.single, F = $.value.single;
|
|
1095
|
+
return `${p(P)} ${F || ""}`.trim();
|
|
1094
1096
|
}
|
|
1095
1097
|
return "";
|
|
1096
1098
|
}), U = () => {
|
|
@@ -1099,21 +1101,21 @@ const He = ie("SunIcon", [
|
|
|
1099
1101
|
else if (m.value) {
|
|
1100
1102
|
const p = m.value.value;
|
|
1101
1103
|
if (typeof p == "string" && p.includes("/")) {
|
|
1102
|
-
const [b,
|
|
1103
|
-
c.value.start = b || null, c.value.end =
|
|
1104
|
+
const [b, D] = p.split("/");
|
|
1105
|
+
c.value.start = b || null, c.value.end = D || null;
|
|
1104
1106
|
} else
|
|
1105
1107
|
c.value.start = p || null, c.value.end = p || null;
|
|
1106
1108
|
}
|
|
1107
1109
|
}, K = () => c.value.start && c.value.end ? `${c.value.start}/${c.value.end}` : null, f = () => {
|
|
1108
1110
|
if (t.range) {
|
|
1109
|
-
const
|
|
1111
|
+
const D = c.value.start, P = c.value.end || c.value.start, F = $.value.from, X = $.value.to;
|
|
1110
1112
|
if (t.mode === "time")
|
|
1111
1113
|
return F && X ? { start: F, end: X } : null;
|
|
1112
1114
|
if (t.mode === "date")
|
|
1113
|
-
return
|
|
1115
|
+
return D && P ? { start: D, end: P } : null;
|
|
1114
1116
|
if (t.mode === "datetime") {
|
|
1115
|
-
if (!
|
|
1116
|
-
const Y = F ? `${F}:00` : "00:00:00", xe = X ? `${X}:00` : "23:59:59", ke = `${
|
|
1117
|
+
if (!D || !P) return null;
|
|
1118
|
+
const Y = F ? `${F}:00` : "00:00:00", xe = X ? `${X}:00` : "23:59:59", ke = `${D}T${Y}`, $e = `${P}T${xe}`;
|
|
1117
1119
|
return { start: ke, end: $e };
|
|
1118
1120
|
}
|
|
1119
1121
|
return null;
|
|
@@ -1125,8 +1127,8 @@ const He = ie("SunIcon", [
|
|
|
1125
1127
|
return p || null;
|
|
1126
1128
|
if (t.mode === "datetime") {
|
|
1127
1129
|
if (!p) return null;
|
|
1128
|
-
const
|
|
1129
|
-
return `${p}T${
|
|
1130
|
+
const D = b ? `${b}:00` : "00:00:00";
|
|
1131
|
+
return `${p}T${D}`;
|
|
1130
1132
|
}
|
|
1131
1133
|
return null;
|
|
1132
1134
|
}, g = async () => {
|
|
@@ -1146,8 +1148,8 @@ const He = ie("SunIcon", [
|
|
|
1146
1148
|
g(), o.value = !1;
|
|
1147
1149
|
}, x = (p) => {
|
|
1148
1150
|
!t.popup || !o.value || setTimeout(() => {
|
|
1149
|
-
const b = i.value,
|
|
1150
|
-
b && !b.contains(
|
|
1151
|
+
const b = i.value, D = p.target, P = `date-picker-${t.id}-popup`;
|
|
1152
|
+
b && !b.contains(D) && !p.target.closest(`#${P}`) && O();
|
|
1151
1153
|
}, 0);
|
|
1152
1154
|
}, E = () => {
|
|
1153
1155
|
O();
|
|
@@ -1165,8 +1167,8 @@ const He = ie("SunIcon", [
|
|
|
1165
1167
|
return ne(() => {
|
|
1166
1168
|
l && import("./cally-ZU3K2Th7.js").catch((p) => {
|
|
1167
1169
|
console.warn("Failed to load cally:", p);
|
|
1168
|
-
}),
|
|
1169
|
-
}),
|
|
1170
|
+
}), j();
|
|
1171
|
+
}), _(c, async (p) => {
|
|
1170
1172
|
if (await ee(), v.value && p.single) {
|
|
1171
1173
|
const b = p.single;
|
|
1172
1174
|
v.value.value !== b && (v.value.value = b);
|
|
@@ -1176,12 +1178,12 @@ const He = ie("SunIcon", [
|
|
|
1176
1178
|
b && m.value.value !== b && (m.value.value = b);
|
|
1177
1179
|
}
|
|
1178
1180
|
g();
|
|
1179
|
-
}, { immediate: !0, deep: !0 }),
|
|
1181
|
+
}, { immediate: !0, deep: !0 }), _([c, v, m], async () => {
|
|
1180
1182
|
await ee(), v.value && c.value.single && !v.value.value && (v.value.value = c.value.single), m.value && c.value.start && c.value.end && !m.value.value && (m.value.value = `${c.value.start}/${c.value.end}`), g();
|
|
1181
|
-
}, { immediate: !0 }),
|
|
1183
|
+
}, { immediate: !0 }), _([h, I, A], () => {
|
|
1182
1184
|
g();
|
|
1183
1185
|
}, { immediate: !0 }), (p, b) => {
|
|
1184
|
-
const
|
|
1186
|
+
const D = me("calendar-month"), P = me("calendar-date"), F = me("calendar-range");
|
|
1185
1187
|
return a(), s("div", {
|
|
1186
1188
|
class: "inline-block relative w-fit lg:w-full",
|
|
1187
1189
|
ref_key: "pickerContainer",
|
|
@@ -1194,7 +1196,7 @@ const He = ie("SunIcon", [
|
|
|
1194
1196
|
onClick: b[0] || (b[0] = (X) => t.disabled ? null : u())
|
|
1195
1197
|
}, [
|
|
1196
1198
|
n("div", zt, [
|
|
1197
|
-
|
|
1199
|
+
N.value ? (a(), s("span", Dt, z(N.value), 1)) : (a(), s("span", Ot, z(t.placeholder), 1))
|
|
1198
1200
|
])
|
|
1199
1201
|
])) : T("", !0),
|
|
1200
1202
|
o.value || !t.popup ? (a(), s("div", {
|
|
@@ -1208,7 +1210,7 @@ const He = ie("SunIcon", [
|
|
|
1208
1210
|
te(Z(W, ["prevent"]), ["enter"])
|
|
1209
1211
|
]
|
|
1210
1212
|
}, [
|
|
1211
|
-
!t.range && t.mode !== "time" && l ? (a(), Q(
|
|
1213
|
+
!t.range && t.mode !== "time" && l ? (a(), Q(P, {
|
|
1212
1214
|
key: 0,
|
|
1213
1215
|
class: "cally w-full",
|
|
1214
1216
|
ref_key: "datePicker",
|
|
@@ -1261,7 +1263,7 @@ const He = ie("SunIcon", [
|
|
|
1261
1263
|
})
|
|
1262
1264
|
], -1)
|
|
1263
1265
|
])]),
|
|
1264
|
-
le(
|
|
1266
|
+
le(D, {
|
|
1265
1267
|
locale: t.locale
|
|
1266
1268
|
}, null, 8, ["locale"])
|
|
1267
1269
|
]),
|
|
@@ -1320,7 +1322,7 @@ const He = ie("SunIcon", [
|
|
|
1320
1322
|
})
|
|
1321
1323
|
], -1)
|
|
1322
1324
|
])]),
|
|
1323
|
-
le(
|
|
1325
|
+
le(D, {
|
|
1324
1326
|
locale: t.locale
|
|
1325
1327
|
}, null, 8, ["locale"])
|
|
1326
1328
|
]),
|
|
@@ -1363,11 +1365,11 @@ const He = ie("SunIcon", [
|
|
|
1363
1365
|
onChange: B,
|
|
1364
1366
|
disabled: t.disabled,
|
|
1365
1367
|
value: $.value.to || ""
|
|
1366
|
-
}, null, 40,
|
|
1368
|
+
}, null, 40, _t)
|
|
1367
1369
|
])
|
|
1368
1370
|
])
|
|
1369
1371
|
])) : T("", !0),
|
|
1370
|
-
!t.range && t.mode !== "date" ? (a(), s("div",
|
|
1372
|
+
!t.range && t.mode !== "date" ? (a(), s("div", Nt, [
|
|
1371
1373
|
n("input", {
|
|
1372
1374
|
class: "open:bg-primary open:rounded w-full input input-bordered justify-center",
|
|
1373
1375
|
type: "time",
|
|
@@ -1389,7 +1391,7 @@ const He = ie("SunIcon", [
|
|
|
1389
1391
|
], 544);
|
|
1390
1392
|
};
|
|
1391
1393
|
}
|
|
1392
|
-
}), Wt = /* @__PURE__ */ ae(Ut, [["__scopeId", "data-v-
|
|
1394
|
+
}), Wt = /* @__PURE__ */ ae(Ut, [["__scopeId", "data-v-e0b34494"]]), Ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1393
1395
|
__proto__: null,
|
|
1394
1396
|
default: Wt
|
|
1395
1397
|
}, Symbol.toStringTag, { value: "Module" })), Kt = ["value", "checked", "onChange", "disabled"], sn = /* @__PURE__ */ L({
|
|
@@ -1406,7 +1408,7 @@ const He = ie("SunIcon", [
|
|
|
1406
1408
|
},
|
|
1407
1409
|
setup(e) {
|
|
1408
1410
|
const d = e, l = k(d.initialRating);
|
|
1409
|
-
|
|
1411
|
+
_(
|
|
1410
1412
|
() => d.initialRating,
|
|
1411
1413
|
(r) => {
|
|
1412
1414
|
l.value = r;
|
|
@@ -1478,7 +1480,7 @@ const He = ie("SunIcon", [
|
|
|
1478
1480
|
}, $ = (c) => {
|
|
1479
1481
|
c.key === "Enter" ? h() : c.key === "Backspace" && v.value === "" && A();
|
|
1480
1482
|
};
|
|
1481
|
-
return
|
|
1483
|
+
return _(() => l.modelValue, (c) => {
|
|
1482
1484
|
r.value = [...c];
|
|
1483
1485
|
}), (c, y) => (a(), s("div", {
|
|
1484
1486
|
class: M(["flex flex-wrap gap-2 bg-base-100 shadow px-4 py-6 border border-base-content/20 rounded", c.$props.class])
|
|
@@ -1608,13 +1610,13 @@ const He = ie("SunIcon", [
|
|
|
1608
1610
|
h.value = !1, c.value = null, o.value || (m.value && v.value !== m.value.text ? v.value = m.value.text : m.value || (v.value = ""));
|
|
1609
1611
|
}, S = () => {
|
|
1610
1612
|
h.value ? w() : y();
|
|
1611
|
-
},
|
|
1613
|
+
}, j = J(() => {
|
|
1612
1614
|
const u = v.value ? v.value.toLowerCase() : "";
|
|
1613
1615
|
return u === "" && !h.value ? [] : t.options.filter(
|
|
1614
1616
|
(x) => x && x.text ? x.text.toLowerCase().includes(u) : ""
|
|
1615
1617
|
);
|
|
1616
1618
|
});
|
|
1617
|
-
|
|
1619
|
+
_(
|
|
1618
1620
|
() => t.modelValue,
|
|
1619
1621
|
(u, O) => {
|
|
1620
1622
|
if (u !== O && w(), u == null)
|
|
@@ -1627,19 +1629,19 @@ const He = ie("SunIcon", [
|
|
|
1627
1629
|
{ immediate: !0 }
|
|
1628
1630
|
// Run immediately on component mount
|
|
1629
1631
|
);
|
|
1630
|
-
const
|
|
1632
|
+
const N = (u) => {
|
|
1631
1633
|
A.value && !A.value.contains(u.target) && w();
|
|
1632
1634
|
}, U = () => {
|
|
1633
1635
|
setTimeout(() => {
|
|
1634
1636
|
A.value && !A.value.contains(document.activeElement) && w();
|
|
1635
1637
|
}, 100);
|
|
1636
1638
|
};
|
|
1637
|
-
|
|
1639
|
+
_(h, (u) => {
|
|
1638
1640
|
u ? setTimeout(() => {
|
|
1639
|
-
document.addEventListener("click",
|
|
1640
|
-
}, 0) : document.removeEventListener("click",
|
|
1641
|
+
document.addEventListener("click", N);
|
|
1642
|
+
}, 0) : document.removeEventListener("click", N);
|
|
1641
1643
|
}), pe(() => {
|
|
1642
|
-
document.removeEventListener("click",
|
|
1644
|
+
document.removeEventListener("click", N), window.removeEventListener("keydown", B);
|
|
1643
1645
|
});
|
|
1644
1646
|
const K = () => {
|
|
1645
1647
|
if (t.disabled) return;
|
|
@@ -1648,22 +1650,22 @@ const He = ie("SunIcon", [
|
|
|
1648
1650
|
}, f = (u) => {
|
|
1649
1651
|
m.value = u, o.value || (v.value = u.text), r("update:modelValue", u.value), r("select", u), w();
|
|
1650
1652
|
}, g = () => {
|
|
1651
|
-
|
|
1653
|
+
j.value.length > 0 && f(j.value[0]);
|
|
1652
1654
|
}, C = () => {
|
|
1653
1655
|
h.value || y();
|
|
1654
1656
|
}, B = (u) => {
|
|
1655
|
-
if (!h.value ||
|
|
1656
|
-
const O =
|
|
1657
|
+
if (!h.value || j.value.length === 0) return;
|
|
1658
|
+
const O = j.value.findIndex(
|
|
1657
1659
|
(E, W) => "option-" + W === c.value
|
|
1658
1660
|
);
|
|
1659
1661
|
let x = -1;
|
|
1660
1662
|
if (u.key === "ArrowDown")
|
|
1661
|
-
u.preventDefault(), x = (O + 1) %
|
|
1663
|
+
u.preventDefault(), x = (O + 1) % j.value.length;
|
|
1662
1664
|
else if (u.key === "ArrowUp")
|
|
1663
|
-
u.preventDefault(), x = (O - 1 +
|
|
1665
|
+
u.preventDefault(), x = (O - 1 + j.value.length) % j.value.length;
|
|
1664
1666
|
else if (u.key === "Enter" && c.value) {
|
|
1665
1667
|
u.preventDefault();
|
|
1666
|
-
const E =
|
|
1668
|
+
const E = j.value.find(
|
|
1667
1669
|
(W, H) => "option-" + H === c.value
|
|
1668
1670
|
);
|
|
1669
1671
|
E && f(E);
|
|
@@ -1681,10 +1683,10 @@ const He = ie("SunIcon", [
|
|
|
1681
1683
|
});
|
|
1682
1684
|
}
|
|
1683
1685
|
};
|
|
1684
|
-
return
|
|
1686
|
+
return _(h, (u) => {
|
|
1685
1687
|
u ? (window.addEventListener("keydown", B), !o.value && !v.value && m.value && (v.value = m.value.text)) : window.removeEventListener("keydown", B);
|
|
1686
1688
|
}), pe(() => {
|
|
1687
|
-
document.removeEventListener("click",
|
|
1689
|
+
document.removeEventListener("click", N), window.removeEventListener("keydown", B);
|
|
1688
1690
|
}), d({
|
|
1689
1691
|
isDropdownOpen: h,
|
|
1690
1692
|
// Expose state
|
|
@@ -1761,7 +1763,7 @@ const He = ie("SunIcon", [
|
|
|
1761
1763
|
], 46, sl),
|
|
1762
1764
|
ue(n("div", rl, [
|
|
1763
1765
|
n("ul", ul, [
|
|
1764
|
-
(a(!0), s(R, null, q(
|
|
1766
|
+
(a(!0), s(R, null, q(j.value, (x, E) => (a(), s("li", {
|
|
1765
1767
|
key: x.value,
|
|
1766
1768
|
onMousedown: Z((W) => f(x), ["prevent"]),
|
|
1767
1769
|
class: "hover:bg-base-200 rounded-md w-full cursor-pointer",
|
|
@@ -1773,7 +1775,7 @@ const He = ie("SunIcon", [
|
|
|
1773
1775
|
], 40, dl))), 128))
|
|
1774
1776
|
])
|
|
1775
1777
|
], 512), [
|
|
1776
|
-
[ze, h.value &&
|
|
1778
|
+
[ze, h.value && j.value.length > 0]
|
|
1777
1779
|
])
|
|
1778
1780
|
], 512));
|
|
1779
1781
|
}
|
|
@@ -1804,17 +1806,17 @@ const He = ie("SunIcon", [
|
|
|
1804
1806
|
emits: ["update:modelValue", "validate"],
|
|
1805
1807
|
setup(e, { expose: d, emit: l }) {
|
|
1806
1808
|
const t = e, r = l, i = k(null), o = k(!1), v = k(""), m = J(() => {
|
|
1807
|
-
var S,
|
|
1809
|
+
var S, j, N, U;
|
|
1808
1810
|
let c = !0, y = "";
|
|
1809
1811
|
const w = t.modelValue;
|
|
1810
|
-
return (S = t.rules) != null && S.required && (w == null || w === "") && (c = !1, y = "This field is required."), c && ((
|
|
1812
|
+
return (S = t.rules) != null && S.required && (w == null || w === "") && (c = !1, y = "This field is required."), c && ((j = t.rules) == null ? void 0 : j.minLength) !== void 0 && typeof w == "string" && w.length < t.rules.minLength && (c = !1, y = `Must be at least ${t.rules.minLength} characters.`), c && ((N = t.rules) == null ? void 0 : N.maxLength) !== void 0 && typeof w == "string" && w.length > t.rules.maxLength && (c = !1, y = `Cannot exceed ${t.rules.maxLength} characters.`), c && ((U = t.rules) != null && U.email) && typeof w == "string" && w && (/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(w) || (c = !1, y = "Please enter a valid email address.")), v.value = y, r("validate", c), c;
|
|
1811
1813
|
}), h = J(() => o.value && !m.value), I = (c) => {
|
|
1812
1814
|
const y = c.target;
|
|
1813
1815
|
r("update:modelValue", y.value), o.value && m.value;
|
|
1814
1816
|
}, A = () => {
|
|
1815
1817
|
o.value = !0, m.value;
|
|
1816
1818
|
};
|
|
1817
|
-
return
|
|
1819
|
+
return _(
|
|
1818
1820
|
() => t.modelValue,
|
|
1819
1821
|
() => {
|
|
1820
1822
|
o.value && m.value;
|
|
@@ -1886,7 +1888,7 @@ const He = ie("SunIcon", [
|
|
|
1886
1888
|
},
|
|
1887
1889
|
setup(e) {
|
|
1888
1890
|
const d = e, l = k(d.loading);
|
|
1889
|
-
return
|
|
1891
|
+
return _(
|
|
1890
1892
|
() => d.loading,
|
|
1891
1893
|
(t) => {
|
|
1892
1894
|
l.value = t;
|
|
@@ -2013,7 +2015,7 @@ const vn = /* @__PURE__ */ ae(zl, [["render", jl]]), El = { class: "flex flex-ro
|
|
|
2013
2015
|
]))), 128))
|
|
2014
2016
|
]));
|
|
2015
2017
|
}
|
|
2016
|
-
}), Al = { class: "md:flex hidden navbar-start" }, Rl = { class: "md:flex justify-center items-center hidden navbar-center" },
|
|
2018
|
+
}), Al = { class: "md:flex hidden navbar-start" }, Rl = { class: "md:flex justify-center items-center hidden navbar-center" }, _l = { class: "md:flex hidden navbar-end" }, Nl = { class: "navbar-bottom md:flex hidden" }, Fl = /* @__PURE__ */ L({
|
|
2017
2019
|
__name: "navigationBar",
|
|
2018
2020
|
props: {
|
|
2019
2021
|
isCollapsed: { type: Boolean, default: !0 }
|
|
@@ -2029,10 +2031,10 @@ const vn = /* @__PURE__ */ ae(zl, [["render", jl]]), El = { class: "flex flex-ro
|
|
|
2029
2031
|
n("div", Rl, [
|
|
2030
2032
|
V(l.$slots, "center", {}, void 0, !0)
|
|
2031
2033
|
]),
|
|
2032
|
-
n("div",
|
|
2034
|
+
n("div", _l, [
|
|
2033
2035
|
V(l.$slots, "end", {}, void 0, !0)
|
|
2034
2036
|
]),
|
|
2035
|
-
n("div",
|
|
2037
|
+
n("div", Nl, [
|
|
2036
2038
|
V(l.$slots, "bottom", {}, void 0, !0)
|
|
2037
2039
|
])
|
|
2038
2040
|
], 2));
|
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 Rt=ne("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"}]]),qt=(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},Ht={class:"swap-rotate swap"},Wt=["true-value","false-value"],Kt=e.defineComponent({__name:"theme-controller",props:{lightTheme:{default:"light"},darkTheme:{default:"dark"}},setup(t){const n=t,l=qt("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",Ht,[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,Wt),[[e.vModelCheckbox,e.unref(l)]]),e.createVNode(e.unref(Rt),{class:"swap-off fill-current"}),e.createVNode(e.unref(Ut),{class:"swap-on fill-current"})]))}}),Yt=["name"],Jt={class:"collapse-title font-bold text-2xl lg:text-4xl"},Xt={class:"collapse-content"},Gt=["innerHTML"],Zt=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,Yt),e.createElementVNode("div",Jt,e.toDisplayString(r.title),1),e.createElementVNode("div",Xt,[e.createElementVNode("span",{innerHTML:r.content},null,8,Gt)])],2))),128))}}),Qt=["src"],en={class:"text-xl"},tn=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,Qt)],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",en,e.toDisplayString(t.initials),1)],2))],2))}}),nn=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))}}),on=["src","alt"],ln={key:0,class:"card-body"},an={key:0,class:"group-hover:text-primary text-lg text-left cursor-pointer card-title"},rn={key:1,class:"text-left"},sn={class:"flex-col flex-nowrap mt-auto card-actions"},cn={key:1,class:"card-body"},dn=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,on)):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",ln,[t.title?(e.openBlock(),e.createElementBlock("h2",an,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"details"),t.description?(e.openBlock(),e.createElementBlock("p",rn,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0),e.createElementVNode("div",sn,[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))}}),Re=Symbol("CarouselItemStyle"),un={class:"relative h-full"},mn={key:0,class:"top-1/2 right-5 left-5 z-10 absolute flex justify-between -translate-y-1/2 transform"},fn={key:1,class:"bottom-5 z-10 absolute flex justify-center gap-2 py-2 w-full"},pn=["onClick","aria-label"],hn=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}},setup(t,{expose:n}){const l=t,o=e.ref(l.initialSlide),r=e.ref(null),a=e.ref(!1),s=e.ref(0),c=e.computed(()=>({width:`calc((100% - ${l.slidesPerView>1?(l.slidesPerView-1)*l.gap:0}px) / ${l.slidesPerView})`}));e.provide(Re,c);const i=()=>{r.value?s.value=r.value.children.length:s.value=0},u=async g=>{if(!r.value||l.slidesPerView<=0||a.value||(i(),s.value===0))return;const y=(g%s.value+s.value)%s.value,b=r.value,k=l.sliderOrientation==="vertical"?(b.offsetHeight-(l.slidesPerView-1)*l.gap)/l.slidesPerView:(b.offsetWidth-(l.slidesPerView-1)*l.gap)/l.slidesPerView;if(k<=0)return;const T=k+l.gap,A=y*T,F=l.sliderOrientation==="vertical"?b.scrollHeight-b.offsetHeight:b.scrollWidth-b.offsetWidth,h=Math.max(0,Math.min(A,F+.5));a.value=!0,b.style.scrollBehavior="auto";const B=l.sliderOrientation==="vertical"?b.scrollTop:b.scrollLeft,v=h-B;if(Math.abs(v)<1){a.value=!1,o.value=y;return}const N=performance.now(),p=$=>{const E=$-N,M=Math.min(1,E/l.slideDuration),L=M<.5?4*M*M*M:1-Math.pow(-2*M+2,3)/2,j=B+v*L;l.sliderOrientation==="vertical"?b.scrollTop=j:b.scrollLeft=j,M<1?requestAnimationFrame(p):(l.sliderOrientation==="vertical"?b.scrollTop=h:b.scrollLeft=h,o.value=y,a.value=!1)};requestAnimationFrame(p)},m=()=>{u(o.value+1)},x=()=>{u(o.value-1)},f=g=>{u(g)},d=()=>{if(!r.value||l.slidesPerView<=0||(i(),s.value===0))return;const g=r.value,y=l.sliderOrientation==="vertical"?g.offsetHeight:g.offsetWidth,b=l.slidesPerView>1?(l.slidesPerView-1)*l.gap:0,k=(y-b)/l.slidesPerView;if(k<=0)return;const T=Math.max(0,s.value-l.slidesPerView),A=Math.min(Math.max(0,l.initialSlide),T),F=A*(k+l.gap),h=l.sliderOrientation==="vertical"?g.scrollHeight-g.offsetHeight:g.scrollWidth-g.offsetWidth,B=Math.max(0,Math.min(F,h+.5));l.sliderOrientation==="vertical"?g.scrollTo({top:B,behavior:"auto"}):g.scrollTo({left:B,behavior:"auto"}),o.value=A};return e.onMounted(()=>{requestAnimationFrame(()=>{requestAnimationFrame(d)}),i()}),e.watch(()=>l.initialSlide,g=>{requestAnimationFrame(()=>u(g))}),e.watch(()=>[l.slidesPerView,l.gap],()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{if(i(),s.value===0)return;const g=Math.max(0,s.value-l.slidesPerView),y=Math.min(o.value,g),b=l.slideDuration;l.slideDuration=0,u(y),l.slideDuration=b})})}),n({scrollToSlide:u}),(g,y)=>(e.openBlock(),e.createElementBlock("div",un,[e.createElementVNode("div",{ref_key:"carouselContainer",ref:r,class:e.normalizeClass(["rounded w-full h-full overflow-x-scroll scroll-smooth carousel",[{"carousel-horizontal md:snap-none":t.sliderOrientation=="horizontal"},{"carousel-vertical":t.sliderOrientation=="vertical"}]]),style:e.normalizeStyle({gap:`${t.gap}px`})},[e.renderSlot(g.$slots,"default",{},void 0,!0)],6),t.showNavigationButtons?(e.openBlock(),e.createElementBlock("div",mn,[e.createElementVNode("div",{onClick:x,role:"button","aria-label":"Previous Slide"},[e.renderSlot(g.$slots,"prevButton",{},()=>[y[0]||(y[0]=e.createElementVNode("button",{class:"btn btn-circle",tabindex:"-1"},"❮",-1))],!0)]),e.createElementVNode("div",{onClick:m,role:"button","aria-label":"Next Slide"},[e.renderSlot(g.$slots,"nextButton",{},()=>[y[1]||(y[1]=e.createElementVNode("button",{class:"btn btn-circle",tabindex:"-1"},"❯",-1))],!0)])])):e.createCommentVNode("",!0),t.showIndicators?(e.openBlock(),e.createElementBlock("div",fn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(b,k)=>(e.openBlock(),e.createElementBlock("button",{key:`dot-${k}`,onClick:T=>f(k),class:e.normalizeClass(["btn btn-circle btn-xs",{"btn-active":k===o.value}]),"aria-label":`Go to slide ${k+1}`},null,10,pn))),128))])):e.createCommentVNode("",!0)]))}}),X=(t,n)=>{const l=t.__vccOpts||t;for(const[o,r]of n)l[o]=r;return l},gn=X(hn,[["__scopeId","data-v-db55a6a5"]]),yn=X(e.defineComponent({__name:"carouselItem",setup(t){const n=e.inject(Re,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"]]),bn={class:"flex gap-4 bg-base-100 w-full tabs tabs-boxed"},kn=["onClick"],wn={key:0,class:"inline-component-wrapper flex grow justify-center items-center w-full h-full"},xn={key:1,class:"flex flex-col"},En={class:"text-sm"},Bn={key:0,class:"opacity-75 overflow-hidden text-xs truncate ..."},$n={key:1,class:"hidden md:block opacity-35 overflow-hidden text-xs truncate ..."},Cn={class:"hidden"},Sn=["id"],vn={class:"modal-box"},Vn={class:"font-bold text-lg"},Nn=["name","checked"],Dn={class:"collapse-title flex justify-between items-center pr-4 w-full font-medium text-xl"},Tn={key:0,class:"opacity-75 overflow-hidden text-sm truncate ..."},Mn={key:1,class:"opacity-35 text-sm"},zn={class:"collapse-content flex place-content-center p-0"},In=X(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(()=>Yn)),"standard-select":e.defineAsyncComponent(()=>Promise.resolve().then(()=>io)),"custom-text":e.defineAsyncComponent(()=>Promise.resolve().then(()=>So))},i=e.ref({}),u=e.ref({left:"0px",top:"0px",transform:"translateX(0%)"}),m=e.ref(null),x=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 v=new Date(h.value);if(!isNaN(v.getTime()))return v.toLocaleString()}catch{}else if(h.range&&typeof h.value=="object"&&h.value!==null&&"start"in h.value&&"end"in h.value)try{const v=new Date(h.value.start),N=new Date(h.value.end);if(!isNaN(v.getTime())&&!isNaN(N.getTime()))return`${v.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 v=h.props.options.find(N=>N.value===h.value);if(v)return v.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,$;const B=(p=a.value)==null?void 0:p.name;if(!B){console.warn("componentValueUpdated called but no active tab.");return}const v=($=l.searchOptions.find(E=>(E==null?void 0:E.category)===l.currentCategory))==null?void 0:$.tabs,N=v==null?void 0:v.find(E=>E.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 g(){o("search")}async function y(h){var N;const B=document.getElementById(`advancedSearchMobile-${r}`),v=B&&B.contains(h.target);((N=a.value)==null?void 0:N.displayMode)==="popup"&&m.value&&!m.value.contains(h.target)&&!v&&(await e.nextTick(),a.value=null)}async function b(){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 v,N,p;if(typeof window<"u"&&window.innerWidth<=768){b();return}const B=h.displayMode??"popup";if(((v=a.value)==null?void 0:v.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 $=i.value[h.name];if($&&m.value){const E=$.getBoundingClientRect(),M=m.value.getBoundingClientRect(),L=E.bottom-M.top,j=E.left+E.width/2-M.left;u.value={left:`${j}px`,top:`${L+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 v;((v=a.value)==null?void 0:v.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)},A=()=>{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",y),window.addEventListener("resize",F)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",y),window.removeEventListener("resize",F)});const F=()=>{var h,B;if(typeof window<"u"){const v=window.innerWidth<=768,N=a.value!==null&&(a.value.displayMode==="popup"||a.value.displayMode==="inline")&&window.innerWidth>768;!v&&(((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),v&&!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&&!v&&(console.log("Modal is open on desktop, closing modal and active tab."),p.close(),a.value=null)}};return(h,B)=>{var v,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:b},[e.createElementVNode("div",bn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((v=l.searchOptions.find(p=>p.category===l.currentCategory))==null?void 0:v.tabs)||[],(p,$)=>{var E,M,L,j,H;return e.openBlock(),e.createElementBlock("button",{key:`${p.name}-${$}`,onClick:e.withModifiers(w=>k(p),["stop"]),class:e.normalizeClass([{"tab-active":((E=a.value)==null?void 0:E.name)===p.name,"tab-active-inline":((M=a.value)==null?void 0:M.name)===p.name&&((L=a.value)==null?void 0:L.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:w=>i.value[p.name]=w},[((j=a.value)==null?void 0:j.name)===p.name&&((H=a.value)==null?void 0:H.displayMode)==="inline"?(e.openBlock(),e.createElementBlock("div",wn,[(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]=w=>d(w)),"onUpdate:modelValue":B[1]||(B[1]=w=>d(w)),onBlur:T,onKeydown:e.withKeys(e.withModifiers(A,["stop","prevent"]),["enter"]),ref_for:!0,ref_key:"inlineComponentRef",ref:s}),null,16,["modelValue","onKeydown"]))])):(e.openBlock(),e.createElementBlock("div",xn,[e.createElementVNode("p",En,e.toDisplayString(p.name),1),p.value!==void 0&&p.value!==null&&p.value!==""?(e.openBlock(),e.createElementBlock("p",Bn,e.toDisplayString(x(p)),1)):(e.openBlock(),e.createElementBlock("p",$n,e.toDisplayString(p.description),1))]))],10,kn)}),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(g,["stop"])},[e.createVNode(e.unref(Ue),{size:24,color:"white"})])]),e.createElementVNode("div",Cn,[e.createElementVNode("button",{title:"search",onClick:B[4]||(B[4]=()=>{})},[e.createVNode(e.unref(Ue),{size:24,color:"white"})])])],512),e.createElementVNode("dialog",{id:`advancedSearchMobile-${e.unref(r)}`,class:"modal"},[e.createElementVNode("div",vn,[e.renderSlot(h.$slots,"additionalForMobile",{},()=>[e.createElementVNode("h3",Vn,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,$)=>(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:$===0},null,8,Nn),e.createElementVNode("div",Dn,[e.createElementVNode("div",null,e.toDisplayString(p.name),1),p.value!==void 0&&p.value!==null&&p.value!==""?(e.openBlock(),e.createElementBlock("div",Tn,e.toDisplayString(x(p)),1)):(e.openBlock(),e.createElementBlock("div",Mn,e.toDisplayString(p.description),1))]),e.createElementVNode("div",zn,[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]=E=>f(E)),"onUpdate:modelValue":B[6]||(B[6]=E=>f(E))}),null,16,["modelValue"]))])]))),128)),e.createElementVNode("div",{class:"modal-action"},[e.createElementVNode("form",{method:"dialog"},[e.createElementVNode("button",{class:"btn btn-primary",onClick:g}," Close and Search ")])])])],8,Sn)],64)}}}),[["__scopeId","data-v-577c3624"]]),Pn={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"},On={key:0},An={key:1},jn=["id","onKeydown"],Ln={key:2,class:"flex justify-center p-4"},Fn={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"},_n={class:"join-item"},Un=["id","disabled","value"],Rn={class:"join-item"},qn=["id","disabled","value"],Hn={key:3,class:"p-4 min-w-2xs"},Wn=["id","disabled","value"],Kn={key:4,class:"flex px-4 my-4 w-full justify-end"},qe=X(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),x=e.ref(null),f=e.ref({from:"",to:"",single:""}),d=e.ref({single:null,start:null,end:null}),g=w=>w instanceof Date?w.toISOString():w,y=w=>w.split("T")[0]||"",b=w=>{const C=w instanceof Date?w:new Date(w);if(isNaN(C.getTime()))return"";const V=String(C.getHours()).padStart(2,"0"),D=String(C.getMinutes()).padStart(2,"0");return`${V}:${D}`},k=()=>{const w=new Date,C=b(w);let V=o.initialDate;if(!V&&o.mode!=="time"&&(V=o.range?{start:w,end:w}:w),!V){o.mode==="time"&&(o.range?(f.value.from=C,f.value.to=C):f.value.single=C);return}if(o.range&&typeof V=="object"&&"start"in V){const D=g(V.start),I=g(V.end);d.value.start=y(D),d.value.end=y(I),o.mode!=="date"&&(f.value.from=b(D),f.value.to=b(I))}else{const D=g(V);d.value.single=y(D),o.mode!=="date"&&(f.value.single=b(D))}},T=e.computed(()=>{const w=D=>{if(!D)return"";if(D.includes(":"))return D;try{return new Date(D+"T00:00:00").toLocaleDateString(o.locale,{year:"numeric",month:"numeric",day:"numeric"})}catch{const[I,O,U]=D.split("-");return`${U}/${O}/${I}`}};let C="",V="";if((o.mode==="date"||o.mode==="datetime")&&(o.range?d.value.start&&d.value.end&&(C=`${d.value.start} - ${d.value.end}`):d.value.single&&(C=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?C.split(" - ").map(w).join(" - "):w(C);if(o.mode==="time")return V;if(o.mode==="datetime")if(o.range){const D=d.value.start,I=d.value.end,O=f.value.from,U=f.value.to;if(D&&I&&O&&U)return`${w(D)} ${O} - ${w(I)} ${U}`;if(D)return`${w(D)} ${O||""}`.trim()}else{const D=d.value.single,I=f.value.single;return`${w(D)} ${I||""}`.trim()}return""}),A=()=>{if(c.value)d.value.single=c.value.value||null;else if(i.value){const w=i.value.value;if(typeof w=="string"&&w.includes("/")){const[C,V]=w.split("/");d.value.start=C||null,d.value.end=V||null}else d.value.start=w||null,d.value.end=w||null}},F=()=>d.value.start&&d.value.end?`${d.value.start}/${d.value.end}`:null,h=()=>{if(o.range){const V=d.value.start,D=d.value.end||d.value.start,I=f.value.from,O=f.value.to;if(o.mode==="time")return I&&O?{start:I,end:O}:null;if(o.mode==="date")return V&&D?{start:V,end:D}:null;if(o.mode==="datetime"){if(!V||!D)return null;const U=I?`${I}:00`:"00:00:00",be=O?`${O}:00`:"23:59:59",ke=`${V}T${U}`,ta=`${D}T${be}`;return{start:ke,end:ta}}return null}const w=d.value.single,C=f.value.single;if(o.mode==="time")return C||null;if(o.mode==="date")return w||null;if(o.mode==="datetime"){if(!w)return null;const V=C?`${C}:00`:"00:00:00";return`${w}T${V}`}return null},B=async()=>{A();const w=h();r("update:modelValue",w),r("change",w)},v=()=>{e.nextTick(()=>{B()})},N=w=>{const C=w.target;o.range?C===m.value?f.value.from=C.value:C===x.value&&(f.value.to=C.value):f.value.single=C.value,B()},p=()=>{s.value=!s.value},$=()=>{B(),s.value=!1},E=w=>{!o.popup||!s.value||setTimeout(()=>{const C=a.value,V=w.target,D=`date-picker-${o.id}-popup`;C&&!C.contains(V)&&!w.target.closest(`#${D}`)&&$()},0)},M=()=>{$()},L=()=>{B(),o.popup&&(s.value=!1)},j=()=>{if(!l)return;const w=o.range?i.value:c.value;w&&typeof w.navigate=="function"&&w.navigate(-1)},H=()=>{if(!l)return;const w=o.range?i.value:c.value;w&&typeof w.navigate=="function"&&w.navigate(1)};return e.onMounted(()=>{l&&Promise.resolve().then(()=>ea).catch(w=>{console.warn("Failed to load cally:",w)}),k()}),e.watch(d,async w=>{if(await e.nextTick(),c.value&&w.single){const C=w.single;c.value.value!==C&&(c.value.value=C)}if(i.value){const C=F();C&&i.value.value!==C&&(i.value.value=C)}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,x],()=>{B()},{immediate:!0}),(w,C)=>{const V=e.resolveComponent("calendar-month"),D=e.resolveComponent("calendar-date"),I=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:E},[o.popup?(e.openBlock(),e.createElementBlock("div",{key:0,class:"flex items-center gap-2 cursor-pointer w-full",onClick:C[0]||(C[0]=O=>o.disabled?null:p())},[e.createElementVNode("div",Pn,[T.value?(e.openBlock(),e.createElementBlock("span",An,e.toDisplayString(T.value),1)):(e.openBlock(),e.createElementBlock("span",On,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:[C[1]||(C[1]=e.withKeys(e.withModifiers(()=>{},["prevent","stop"]),["tab"])),e.withKeys(M,["esc"]),e.withKeys(e.withModifiers(L,["prevent"]),["enter"])]},[!o.range&&o.mode!=="time"&&l?(e.openBlock(),e.createBlock(D,{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:v},{default:e.withCtx(()=>[e.createElementVNode("button",{slot:"previous",class:"btn-outline btn btn-primary md:btn-sm",onClick:j},[...C[2]||(C[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:H},[...C[3]||(C[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(I,{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:v},{default:e.withCtx(()=>[e.createElementVNode("button",{slot:"previous",class:"btn-outline btn btn-primary md:btn-sm",onClick:j},[...C[4]||(C[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:H},[...C[5]||(C[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",Ln,[e.createElementVNode("div",Fn,[e.createElementVNode("div",_n,[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,Un)]),C[6]||(C[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",Rn,[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:x,id:`${o.id}-time-to`,onChange:N,disabled:o.disabled,value:f.value.to||""},null,40,qn)])])])):e.createCommentVNode("",!0),!o.range&&o.mode!=="date"?(e.openBlock(),e.createElementBlock("div",Hn,[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,Wn)])):e.createCommentVNode("",!0),o.popup&&o.closeText?(e.openBlock(),e.createElementBlock("div",Kn,[e.createElementVNode("button",{class:"btn btn-primary max-lg:w-full",onClick:$},e.toDisplayString(o.closeText),1)])):e.createCommentVNode("",!0)],42,jn)):e.createCommentVNode("",!0)],544)}}}),[["__scopeId","data-v-ffeaa872"]]),Yn=Object.freeze(Object.defineProperty({__proto__:null,default:qe},Symbol.toStringTag,{value:"Module"})),Jn=["value","checked","onChange","disabled"],Xn=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,Jn))),128))],2))}}),Gn={class:"badge"},Zn=["onClick"],Qn={class:"opacity-75"},eo=["placeholder"],to=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(g=>g!==d),o("update:modelValue",r.value)},x=()=>{c.value===""&&(r.value.pop(),o("update:modelValue",r.value))},f=d=>{d.key==="Enter"?u():d.key==="Backspace"&&c.value===""&&x()};return e.watch(()=>l.modelValue,d=>{r.value=[...d]}),(d,g)=>(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,y=>e.renderSlot(d.$slots,"tag",{key:y,tag:y},()=>[e.createElementVNode("div",Gn,[e.createElementVNode("button",{class:"px-1! py-0! h-fit font-bold cursor-pointer",onClick:b=>m(y),"aria-label":"Remove tag"},"X",8,Zn),e.createElementVNode("span",Qn,e.toDisplayString(y),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":g[0]||(g[0]=y=>c.value=y),type:"text",placeholder:t.placeholder||"Type here",class:"h-full input input-ghost",onKeydown:f,"aria-label":"Add tags"},null,40,eo)),[[e.vModelText,c.value]]):e.createCommentVNode("",!0)])],2))}}),no={class:"w-full max-w-xs form-control"},oo={key:0,class:"label"},lo={class:"label-text"},ao=["value"],ro={key:0,value:"",disabled:"",selected:""},so=["value"],He=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",no,[t.label?(e.openBlock(),e.createElementBlock("label",oo,[e.createElementVNode("span",lo,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",ro,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,so))),128))],40,ao)]))}}),io=Object.freeze(Object.defineProperty({__proto__:null,default:He},Symbol.toStringTag,{value:"Module"})),co={key:0,class:"label"},uo={class:"label-text"},mo=["onKeydown","aria-expanded","aria-activedescendant"],fo=["placeholder","disabled"],po={class:"top-full z-10 absolute bg-base-100 shadow-lg mt-1 rounded-md w-full dropdown-content",role:"listbox"},ho={class:"flex-nowrap p-0 w-[inherit] max-h-60 overflow-y-auto menu"},go=["onMousedown","id","aria-selected"],yo={__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 $=(a.default?a.default():[]).filter(E=>E.type!==e.Comment);return console.log("hasDefaultSlotContent computed:",$.length>0),$.length>0}),c=e.ref(""),i=e.ref(null),u=e.ref(!1),m=e.ref(null),x=e.ref(null),f=e.ref(null),d=e.ref(null),g=()=>{u.value=!o.disabled},y=()=>{u.value=!1,d.value=null,s.value||(i.value&&c.value!==i.value.text?c.value=i.value.text:i.value||(c.value=""))},b=()=>{u.value?y():g()},k=e.computed(()=>{const p=c.value?c.value.toLowerCase():"";return p===""&&!u.value?[]:o.options.filter(E=>E&&E.text?E.text.toLowerCase().includes(p):"")});e.watch(()=>o.modelValue,(p,$)=>{if(p!==$&&y(),p==null)i.value=null,!u.value&&!s.value&&(c.value="");else{const E=o.options.find(M=>M.value===p);E?(i.value=E,!u.value&&!s.value&&(c.value=E.text)):(i.value=null,!u.value&&!s.value&&(c.value=""))}},{immediate:!0});const T=p=>{x.value&&!x.value.contains(p.target)&&y()},A=()=>{setTimeout(()=>{x.value&&!x.value.contains(document.activeElement)&&y()},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 F=()=>{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),y()},B=()=>{k.value.length>0&&h(k.value[0])},v=()=>{u.value||g()},N=p=>{if(!u.value||k.value.length===0)return;const $=k.value.findIndex((M,L)=>"option-"+L===d.value);let E=-1;if(p.key==="ArrowDown")p.preventDefault(),E=($+1)%k.value.length;else if(p.key==="ArrowUp")p.preventDefault(),E=($-1+k.value.length)%k.value.length;else if(p.key==="Enter"&&d.value){p.preventDefault();const M=k.value.find((L,j)=>"option-"+j===d.value);M&&h(M);return}else if(p.key==="Escape"){p.preventDefault(),y(),f.value&&f.value.focus();return}else if(s.value)return;if(E!==-1){d.value="option-"+E;const M=document.getElementById(d.value);M&&requestAnimationFrame(()=>{M.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:g,closeDropdown:y,toggleDropdown:b,selectItem:h,filterText:c,hasDefaultSlotContent:s}),(p,$)=>(e.openBlock(),e.createElementBlock("div",{class:"relative w-full max-w-xs form-control",ref_key:"componentRoot",ref:x},[t.label?(e.openBlock(),e.createElementBlock("label",co,[e.createElementVNode("span",uo,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:$[1]||($[1]=E=>s.value?b():g()),onKeydown:[e.withKeys(e.withModifiers(B,["prevent"]),["enter"]),e.withKeys(e.withModifiers(B,["prevent"]),["space"])],onBlur:A,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":$[0]||($[0]=E=>c.value=E),ref_key:"filterInput",ref:m,onFocus:g,onInput:v,tabindex:"-1",disabled:o.disabled},null,40,fo)),[[e.vModelText,c.value]])]),i.value&&!t.disabled?(e.openBlock(),e.createBlock(e.unref(_t),{key:0,size:20,class:"mx-2 text-base-content/50 hover:text-base-content/80 cursor-pointer",onClick:e.withModifiers(F,["stop"])})):e.createCommentVNode("",!0),s.value&&!i.value?(e.openBlock(),e.createBlock(e.unref(Ft),{key:1,class:e.normalizeClass([{"rotate-180":u.value},"mx-2"]),size:20},null,8,["class"])):e.createCommentVNode("",!0)],46,mo),e.withDirectives(e.createElementVNode("div",po,[e.createElementVNode("ul",ho,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,(E,M)=>(e.openBlock(),e.createElementBlock("li",{key:E.value,onMousedown:e.withModifiers(L=>h(E),["prevent"]),class:"hover:bg-base-200 rounded-md w-full cursor-pointer",id:"option-"+M,role:"option","aria-selected":i.value&&i.value.value===E.value},[e.createElementVNode("a",null,e.toDisplayString(E.text),1)],40,go))),128))])],512),[[e.vShow,u.value&&k.value.length>0]])],512))}},bo={class:"w-full max-w-xs form-control"},ko={key:0,class:"label"},wo={class:"label-text"},xo=["type","placeholder","disabled","value"],Eo={key:1,class:"label"},Bo={class:"label-text-alt text-error validator-hint"},$o={key:2,class:"label"},Co={class:"label-text-alt text-success validator-hint"},We=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 b,k,T,A;let d=!0,g="";const y=o.modelValue;return(b=o.rules)!=null&&b.required&&(y==null||y==="")&&(d=!1,g="This field is required."),d&&((k=o.rules)==null?void 0:k.minLength)!==void 0&&typeof y=="string"&&y.length<o.rules.minLength&&(d=!1,g=`Must be at least ${o.rules.minLength} characters.`),d&&((T=o.rules)==null?void 0:T.maxLength)!==void 0&&typeof y=="string"&&y.length>o.rules.maxLength&&(d=!1,g=`Cannot exceed ${o.rules.maxLength} characters.`),d&&((A=o.rules)!=null&&A.email)&&typeof y=="string"&&y&&(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(y)||(d=!1,g="Please enter a valid email address.")),c.value=g,r("validate",d),d}),u=e.computed(()=>s.value&&!i.value),m=d=>{const g=d.target;r("update:modelValue",g.value),s.value&&i.value},x=()=>{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,g)=>(e.openBlock(),e.createElementBlock("div",bo,[t.label?(e.openBlock(),e.createElementBlock("label",ko,[e.createElementVNode("span",wo,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:x},null,42,xo),u.value?(e.openBlock(),e.createElementBlock("div",Eo,[e.createElementVNode("span",Bo,e.toDisplayString(c.value),1)])):i.value&&s.value&&t.successMessage?(e.openBlock(),e.createElementBlock("div",$o,[e.createElementVNode("span",Co,e.toDisplayString(t.successMessage),1)])):e.createCommentVNode("",!0)]))}}),So=Object.freeze(Object.defineProperty({__proto__:null,default:We},Symbol.toStringTag,{value:"Module"})),vo=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)}}),Vo={class:"footer sm:footer-horizontal container"},No={class:"footer-title"},Do=["href"],To={key:0,class:"sm:hidden w-full"},Mo={class:"border-b-2 border-base-100 last:border-b-0 w-full"},zo={tabindex:"0",class:"collapse collapse-plus w-full"},Io={class:"collapse-title font-bold text-lg collapsible-footer-title"},Po={class:"collapse-content flex w-full text-sm"},Oo={class:"flex flex-col gap-2.5"},Ao={class:"w-full"},jo=["href"],Lo={class:"w-full"},Fo=e.defineComponent({__name:"footer",props:{items:{},background:{},color:{},collapseOnMobile:{type:Boolean,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",Vo,[(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",No,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,Do))),256))],2))),256)),t.collapseOnMobile?(e.openBlock(),e.createElementBlock("nav",To,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,r=>(e.openBlock(),e.createElementBlock("ul",Mo,[e.createElementVNode("div",zo,[e.createElementVNode("div",Io,e.toDisplayString(r.title),1),e.createElementVNode("div",Po,[e.createElementVNode("ul",Oo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.items,a=>(e.openBlock(),e.createElementBlock("li",Ao,[e.createElementVNode("a",{class:"w-full font-medium link link-hover",href:a.link},e.toDisplayString(a.text),9,jo)]))),256))])])])]))),256))])):e.createCommentVNode("",!0),e.createElementVNode("aside",Lo,[e.renderSlot(l.$slots,"default")])])],2))}}),_o={},Uo={class:"min-h-40 container hero"},Ro={class:"px-0! text-center hero-content"},qo={class:"mt-9 text-4xl"};function Ho(t,n){return e.openBlock(),e.createElementBlock("div",Uo,[e.createElementVNode("div",Ro,[e.createElementVNode("div",null,[e.createElementVNode("h1",qo,[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 Wo=X(_o,[["render",Ho]]),Ko={class:"flex flex-row place-content-center gap-4 categories"},Yo=["onClick"],Jo=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",Ko,[(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,Yo)]))),128))]))}}),Xo={class:"md:flex hidden navbar-start"},Go={class:"md:flex justify-center items-center hidden navbar-center"},Zo={class:"md:flex hidden navbar-end"},Qo={class:"navbar-bottom md:flex hidden"},el=X(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",Xo,[e.renderSlot(l.$slots,"start",{},void 0,!0)]),e.createElementVNode("div",Go,[e.renderSlot(l.$slots,"center",{},void 0,!0)]),e.createElementVNode("div",Zo,[e.renderSlot(l.$slots,"end",{},void 0,!0)]),e.createElementVNode("div",Qo,[e.renderSlot(l.$slots,"bottom",{},void 0,!0)])],2))}}),[["__scopeId","data-v-8ddb2b45"]]),tl={key:0,class:"hidden top-4 right-0 absolute md:flex gap-4"},nl=["onClick","aria-selected"],ol={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"},ll={class:"p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full"},al=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",tl,[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:x=>a(m),"aria-selected":o.value==m},e.toDisplayString(m),11,nl),t.buttonOnlyMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ol,[e.renderSlot(i.$slots,`${m}-tab`)]))],64))),256))],2),e.createElementVNode("div",ll,[e.renderSlot(i.$slots,"default")])],64))}});typeof document>"u"&&(globalThis.document={}),typeof window>"u"&&(globalThis.window=globalThis);class rl{constructor(n){Fe(this,J);Fe(this,ee,new Set);_e(this,J,n)}get current(){return te(this,J)}set current(n){te(this,J)!=n&&(_e(this,J,n),te(this,ee).forEach(l=>l(n)))}on(n){return te(this,ee).add(n),()=>te(this,ee).delete(n)}}J=new WeakMap,ee=new WeakMap;const Ke=t=>new rl(t),we=Symbol.for("atomico.hooks");globalThis[we]=globalThis[we]||{};let G=globalThis[we];const sl=Symbol.for("Atomico.suspense"),Ye=Symbol.for("Atomico.effect"),il=Symbol.for("Atomico.layoutEffect"),Je=Symbol.for("Atomico.insertionEffect"),Z=(t,n,l)=>{const{i:o,hooks:r}=G.c,a=r[o]=r[o]||{};return a.value=t(a.value),a.effect=n,a.tag=l,G.c.i++,r[o].value},cl=t=>Z((n=Ke(t))=>n),oe=()=>Z((t=Ke(G.c.host))=>t),Xe=()=>G.c.update,dl=(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=>{G.c={host:n,hooks:o,update:t,i:0,id:l};let i;try{r=!1,i=c()}catch(u){if(u!==sl)throw u;r=!0}finally{G.c=null}return i},cleanEffects:c=>(s(Je,c),()=>(s(il,c),()=>{s(Ye,c)})),isSuspense:a}},Q=Symbol.for;function Ge(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",le=t=>typeof t=="object",{isArray:ul}=Array,xe=(t,n)=>(n?t instanceof HTMLStyleElement:!0)&&"hydrate"in((t==null?void 0:t.dataset)||{});function Ze(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 Qe=(t,n,l)=>(t.addEventListener(n,l),()=>t.removeEventListener(n,l));class et{constructor(n,l,o){this.message=l,this.target=n,this.value=o}}class tt extends et{}class ml extends et{}const me="Custom",fl=null,pl={true:1,"":1,1:1};function hl(t,n,l,o,r){const{type:a,reflect:s,event:c,value:i,attr:u=gl(n)}=(l==null?void 0:l.name)!=me&&le(l)&&l!=fl?l:{type:l},m=(a==null?void 0:a.name)===me&&a.map,x=i!=null?a==Function||!q(i)?()=>i:i:null;Object.defineProperty(t,n,{configurable:!0,set(f){const d=this[n];x&&a!=Boolean&&f==null&&(f=x());const{error:g,value:y}=(m?kl:wl)(a,f);if(g&&y!=null)throw new tt(this,`The value defined for prop '${n}' must be of type '${a.name}'`,y);d!=y&&(this._props[n]=y??void 0,this.update(),c&&nt(this,c),this.updated.then(()=>{s&&(this._ignoreAttr=u,yl(this,a,u,this[n]),this._ignoreAttr=null)}))},get(){return this._props[n]}}),x&&(r[n]=x()),o[u]={prop:n,type:a}}const nt=(t,{type:n,base:l=CustomEvent,...o})=>t.dispatchEvent(new l(n,o)),gl=t=>t.replace(/([A-Z])/g,"-$1").toLowerCase(),yl=(t,n,l,o)=>o==null||n==Boolean&&!o?t.removeAttribute(l):t.setAttribute(l,(n==null?void 0:n.name)===me&&(n!=null&&n.serialize)?n==null?void 0:n.serialize(o):le(o)?JSON.stringify(o):n==Boolean?"":o),bl=(t,n)=>t==Boolean?!!pl[n]:t==Number?Number(n):t==String?n:t==Array||t==Object?JSON.parse(n):t.name==me?n:new t(n),kl=({map:t},n)=>{try{return{value:t(n),error:!1}}catch{return{value:n,error:!0}}},wl=(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 xl=0;const El=t=>{var l;return((l=(t==null?void 0:t.dataset)||{})==null?void 0:l.hydrate)||""||"c"+xl++},ae=(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,x;this.mounted=new Promise(b=>this.mount=()=>{b(),m!=this.parentNode&&(x!=m?this.unmounted.then(this.update):this.update()),m=this.parentNode}),this.unmounted=new Promise(b=>this.unmount=()=>{b(),(m!=this.parentNode||!this.isConnected)&&(f.cleanEffects(!0)()(),x=this.parentNode,m=null)}),this.symbolId=this.symbolId||Symbol(),this.symbolIdParent=Symbol();const f=dl(()=>this.update(),this,El(this));let d,g=!0;const y=xe(this);this.update=()=>(d||(d=!0,this.updated=(this.updated||this.mounted).then(()=>{try{const b=f.load(this._render),k=f.cleanEffects();return b&&b.render(this,this.symbolId,y),d=!1,g&&!f.isSuspense()&&(g=!1,!y&&Bl(this)),k()}finally{d=!1}}).then(b=>{b&&b()})),this.updated),this.update()}connectedCallback(){this.mount(),super.connectedCallback&&super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback(),this.unmount()}attributeChangedCallback(m,x,f){if(l[m]){if(m===this._ignoreAttr||x===f)return;const{prop:d,type:g}=l[m];try{this[d]=bl(g,f)}catch{throw new ml(this,`The value defined as attr '${m}' cannot be parsed by type '${g.name}'`,f)}}else super.attributeChangedCallback(m,x,f)}static get props(){return{...super.props,...s}}static get observedAttributes(){const m=super.observedAttributes||[];for(const x in s)hl(this.prototype,x,s[x],l,o);return Object.keys(l).concat(m)}}return i};function Bl(t){const{styles:n}=t.constructor,{shadowRoot:l}=t;if(l&&n.length){const o=[];Ze(n,r=>{r&&(r instanceof Element?l.appendChild(r.cloneNode(!0)):o.push(r))}),o.length&&(l.adoptedStyleSheets=o)}}const ot=t=>(n,l)=>{Z(([o,r]=[])=>((r||!r)&&(r&&Ge(r,l)?o=o||!0:(q(o)&&o(),o=null)),[o,l]),([o,r],a)=>a?(q(o)&&o(),[]):[o||n(),r],t)},re=ot(Ye),$l=ot(Je);class lt 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 Ee=t=>{const n=Xe();return Z((l=new lt(t,(o,r,a)=>{o=q(o)?o(r[0]):o,o!==r[0]&&(r[0]=o,a||n())}))=>l)},W=(t,n)=>{const[l]=Z(([o,r,a=0]=[])=>((!r||r&&!Ge(r,n))&&(o=t()),[o,n,a]));return l},Be=t=>{const{current:n}=oe();if(!(t in n))throw new tt(n,`For useProp("${t}"), the prop does not exist on the host.`,t);return Z((l=new lt(n[t],(o,r)=>{o=q(o)?o(n[t]):o,n[t]=o}))=>(l[0]=n[t],l))},K=(t,n={})=>{const l=oe();return l[t]||(l[t]=(o=n.detail)=>nt(l.current,{type:t,...n,detail:o})),l[t]},$e=Q("atomico/options");globalThis[$e]=globalThis[$e]||{sheet:!!document.adoptedStyleSheets};const at=globalThis[$e],Cl={checked:1,value:1,selected:1},Sl={list:1,type:1,size:1,form:1,width:1,height:1,src:1,href:1,slot:1},vl={shadowDom:1,staticNode:1,cloneNode:1,children:1,key:1},fe={},Ce=[];class Se extends Text{}const Vl=Q("atomico/id"),se=Q("atomico/type"),ve=Q("atomico/ref"),rt=Q("atomico/vnode"),Nl=()=>{};function Dl(t,n,l){return it(this,t,n,l)}const st=(t,n,...l)=>{const o=n||fe;let{children:r}=o;if(r=r??(l.length?l:Ce),t===Nl)return r;const a=t?t instanceof Node?1:t.prototype instanceof HTMLElement&&2:0;if(a===!1&&t instanceof Function)return t(r!=Ce?{children:r,...o}:o);const s=at.render||Dl;return{[se]:rt,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 it(t,n,l=Vl,o,r){let a;if(n&&n[l]&&n[l].vnode==t||t[se]!=rt)return n;(t||!n)&&(r=r||t.type=="svg",a=t.type!="host"&&(t.raw==1?(n&&t.clone?n[ve]:n)!=t.type:t.raw==2?!(n instanceof t.type):n?n[ve]||n.localName!=t.type:!n),a&&t.type!=null&&(t.raw==1&&t.clone?(o=!0,n=t.type.cloneNode(!0),n[ve]=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]:fe,{vnode:c=fe,cycle:i=0}=s;let{fragment:u,handlers:m}=s;const{children:x=Ce,props:f=fe}=c;if(m=a?{}:m||{},t.static&&!a)return n;if(t.shadow&&!n.shadowRoot&&n.attachShadow({mode:"open",...t.shadow}),t.props!=f&&zl(n,f,t.props,m,r),t.children!==x){const d=t.shadow?n.shadowRoot:n;u=Ml(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 Tl(t,n){const l=new Se(""),o=new Se("");let r;if(t[n?"prepend":"append"](l),n){let{lastElementChild:a}=t;for(;a;){const{previousElementSibling:s}=a;if(xe(a,!0)&&!xe(s,!0)){r=a;break}a=s}}return r?r.before(o):t.append(o),{markStart:l,markEnd:o}}function Ml(t,n,l,o,r,a){t=t==null?null:ul(t)?t:[t];const s=n||Tl(l,r),{markStart:c,markEnd:i,keyes:u}=s;let m;const x=u&&new Set;let f=c;if(t&&Ze(t,d=>{if(typeof d=="object"&&!d[se])return;const g=d[se]&&d.key,y=u&&g!=null&&u.get(g);f!=i&&f===y?x.delete(f):f=f==i?i:f.nextSibling;const b=u?y:f;let k=b;if(d[se])k=it(d,b,o,r,a);else{const T=d+"";!(k instanceof Text)||k instanceof Se?k=new Text(T):k.data!=T&&(k.data=T)}k!=f&&(u&&x.delete(k),!b||u?(l.insertBefore(k,f),u&&f!=i&&x.add(f)):b==i?l.insertBefore(k,i):(l.replaceChild(k,b),f=k)),g!=null&&(m=m||new Map,m.set(g,k))}),f=f==i?i:f.nextSibling,n&&f!=i)for(;f!=i;){const d=f;f=f.nextSibling,d.remove()}return x&&x.forEach(d=>d.remove()),s.keyes=m,s}function zl(t,n,l,o,r){for(const a in n)!(a in l)&&ct(t,a,n[a],null,r,o);for(const a in l)ct(t,a,n[a],l[a],r,o)}function ct(t,n,l,o,r,a){if(n=n=="class"&&!r?"className":n,l=l??null,o=o??null,n in t&&Cl[n]&&(l=t[n]),!(o===l||vl[n]||n[0]=="_"))if(n[0]=="o"&&n[1]=="n"&&(q(o)||q(l)))Il(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=le(l),i=le(o);if(c)for(const u in l)if(i)!(u in o)&&dt(s,u,null);else break;if(i)for(const u in o){const m=o[u];c&&l[u]===m||dt(s,u,m)}else s.cssText=o}else{const s=n[0]=="$"?n.slice(1):n;s===n&&(!r&&!Sl[n]&&n in t||q(o)||q(l))?t[n]=o??"":o==null?t.removeAttribute(s):t.setAttribute(s,le(o)?JSON.stringify(o):o)}}function Il(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 dt(t,n,l){let o="setProperty";l==null&&(o="removeProperty",l=null),~n.indexOf("-")?t[o](n,l):t[n]=l}const ut={};function pe(t,...n){const l=(t.raw||t).reduce((o,r,a)=>o+r+(n[a]||""),"");return ut[l]=ut[l]||Pl(l)}function Pl(t){if(at.sheet){const n=new CSSStyleSheet;return n.replaceSync(t),n}else{const n=document.createElement("style");return n.textContent=t,n}}const Ol=st("host",{style:"display: contents"}),Ve=Q("atomico/context"),Al=(t,n)=>{const l=oe();$l(()=>Qe(l.current,"ConnectContext",o=>{t===o.detail.id&&(o.stopPropagation(),o.detail.connect(n))}),[t])},jl=t=>{const n=K("ConnectContext",{bubbles:!0,composed:!0}),l=()=>{let a;return n({id:t,connect(s){a=s}}),a},[o,r]=Ee(l);return re(()=>{o||(t[Ve]||(t[Ve]=customElements.whenDefined(new t().localName)),t[Ve].then(()=>r(l)))},[t]),o},Ll=t=>{const n=jl(t),l=Xe();return re(()=>{if(n)return Qe(n,"UpdatedValue",l)},[n]),(n||t).value},Fl=t=>{const n=ae(()=>(Al(n,oe().current),Ol),{props:{value:{type:Object,event:{type:"UpdatedValue"},value:()=>t}}});return n.value=t,n},z=(t,n,l)=>(n==null?n={key:l}:n.key=l,st(t,n)),ie=z,mt=pe`*,*:before,*:after{box-sizing:border-box}button{padding:0;touch-action:manipulation;cursor:pointer;user-select:none}`,ft=pe`.vh{position:absolute;transform:scale(0)}`;function Ne(){const t=new Date;return new P(t.getFullYear(),t.getMonth()+1,t.getDate())}function De(t,n=0){const l=R(t),o=l.getUTCDay(),r=(o<n?7:0)+o-n;return l.setUTCDate(l.getUTCDate()-r),P.from(l)}function pt(t,n=0){return De(t,n).add({days:6})}function ht(t){return P.from(new Date(Date.UTC(t.year,t.month,0)))}function he(t,n,l){return n&&P.compare(t,n)<0?n:l&&P.compare(t,l)>0?l:t}const _l={days:1};function Ul(t,n=0){let l=De(t.toPlainDate(),n);const o=pt(ht(t),n),r=[];for(;P.compare(l,o)<0;){const a=[];for(let s=0;s<7;s++)a.push(l),l=l.add(_l);r.push(a)}return r}function R(t){return new Date(Date.UTC(t.year,t.month-1,t.day??1))}const Rl=/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[0-1])$/,Te=(t,n)=>t.toString().padStart(n,"0");class P{constructor(n,l,o){this.year=n,this.month=l,this.day=o}add(n){const l=R(this);if("days"in n)return l.setUTCDate(this.day+n.days),P.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=P.from(R({year:o,month:r,day:1}));return he(P.from(l),a,ht(a))}toString(){return`${Te(this.year,4)}-${Te(this.month,2)}-${Te(this.day,2)}`}toPlainYearMonth(){return new ge(this.year,this.month)}equals(n){return P.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(Rl);if(!l)throw new TypeError(n);const[,o,r,a]=l;return new P(parseInt(o,10),parseInt(r,10),parseInt(a,10))}return new P(n.getUTCFullYear(),n.getUTCMonth()+1,n.getUTCDate())}}class ge{constructor(n,l){this.year=n,this.month=l}add(n){const l=R(this),o=(n.months??0)+(n.years??0)*12;return l.setUTCMonth(l.getUTCMonth()+o),new ge(l.getUTCFullYear(),l.getUTCMonth()+1)}equals(n){return this.year===n.year&&this.month===n.month}toPlainDate(){return new P(this.year,this.month,1)}}function ye(t,n){if(n)try{return t.from(n)}catch{}}function Y(t){const[n,l]=Be(t);return[W(()=>ye(P,n),[n]),o=>l(o==null?void 0:o.toString())]}function ql(t){const[n="",l]=Be(t);return[W(()=>{const[o,r]=n.split("/"),a=ye(P,o),s=ye(P,r);return a&&s?[a,s]:[]},[n]),o=>l(`${o[0]}/${o[1]}`)]}function Hl(t){const[n="",l]=Be(t);return[W(()=>{const o=[];for(const r of n.trim().split(/\s+/)){const a=ye(P,r);a&&o.push(a)}return o},[n]),o=>l(o.join(" "))]}function ce(t,n){return W(()=>new Intl.DateTimeFormat(n,{timeZone:"UTC",...t}),[n,t])}function gt(t,n,l){const o=ce(t,l);return W(()=>{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 yt=(t,n,l)=>he(t,n,l)===t,bt=t=>t.target.matches(":dir(ltr)"),Wl={month:"long",day:"numeric"},Kl={month:"long"},Yl={weekday:"long"},Me={bubbles:!0};function Jl({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:x}=n,f=c??Ne(),d=gt(Yl,o,u),g=W(()=>({weekday:x}),[x]),y=gt(g,o,u),b=ce(Wl,u),k=ce(Kl,u),T=W(()=>i.start.add({months:l}),[i,l]),A=W(()=>Ul(T,o),[T,o]),F=K("focusday",Me),h=K("selectday",Me),B=K("hoverday",Me);function v($){F(he($,a,s))}function N($){let E;switch($.key){case"ArrowRight":E=m.add({days:bt($)?1:-1});break;case"ArrowLeft":E=m.add({days:bt($)?-1:1});break;case"ArrowDown":E=m.add({days:7});break;case"ArrowUp":E=m.add({days:-7});break;case"PageUp":E=m.add($.shiftKey?{years:-1}:{months:-1});break;case"PageDown":E=m.add($.shiftKey?{years:1}:{months:1});break;case"Home":E=De(m,o);break;case"End":E=pt(m,o);break;default:return}v(E),$.preventDefault()}function p($){var D,I;const E=T.equals($);if(!n.showOutsideDays&&!E)return;const M=$.equals(m),L=$.equals(f),j=R($),H=r==null?void 0:r(j),w=!yt($,a,s);let C="",V;if(n.type==="range"){const[O,U]=n.value,be=O==null?void 0:O.equals($),ke=U==null?void 0:U.equals($);V=O&&U&&yt($,O,U),C=`${be?"range-start":""} ${ke?"range-end":""} ${V&&!be&&!ke?"range-inner":""}`}else n.type==="multi"?V=n.value.some(O=>O.equals($)):V=(D=n.value)==null?void 0:D.equals($);return{part:`${`button day day-${j.getDay()} ${E?V?"selected":"":"outside"} ${H?"disallowed":""} ${L?"today":""} ${((I=n.getDayParts)==null?void 0:I.call(n,j))??""}`} ${C}`,tabindex:E&&M?0:-1,disabled:w,"aria-disabled":H?"true":void 0,"aria-pressed":E&&V,"aria-current":L?"date":void 0,"aria-label":b.format(j),onkeydown:N,onclick(){H||h($),v($)},onmouseover(){!H&&!w&&B($)}}}return{weeks:A,yearMonth:T,daysLong:d,daysVisible:y,formatter:k,getDayProps:p}}const ze=Ne(),Ie=Fl({type:"date",firstDayOfWeek:1,focusedDate:ze,page:{start:ze.toPlainYearMonth(),end:ze.toPlainYearMonth()}});customElements.define("calendar-ctx",Ie);const Xl=(t,n)=>(n+t)%7,kt=ae(t=>{const n=Ll(Ie),l=cl(),o=Jl({props:t,context:n});function r(){var a;(a=l.current.querySelector("button[tabindex='0']"))==null||a.focus()}return ie("host",{shadowDom:!0,focus:r,children:[z("div",{id:"h",part:"heading",children:o.formatter.format(R(o.yearMonth))}),ie("table",{ref:l,"aria-labelledby":"h",part:"table",children:[z("thead",{children:z("tr",{part:"tr head",children:o.daysLong.map((a,s)=>ie("th",{part:`th day day-${Xl(n.firstDayOfWeek,s)}`,scope:"col",children:[z("span",{class:"vh",children:a}),z("span",{"aria-hidden":"true",children:o.daysVisible[s]})]}))})}),z("tbody",{children:o.weeks.map((a,s)=>z("tr",{part:"tr week",children:a.map((c,i)=>{const u=o.getDayProps(c);return z("td",{part:"td",children:u&&z("button",{...u,children:c.day})},i)})},s))})]})]})},{props:{offset:{type:Number,value:0}},styles:[mt,ft,pe`: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",kt);function wt(t){return z("button",{part:`button ${t.name} ${t.onclick?"":"disabled"}`,onclick:t.onclick,"aria-disabled":t.onclick?null:"true",children:z("slot",{name:t.name,children:t.children})})}function Pe(t){const n=R(t.page.start),l=R(t.page.end);return ie("div",{role:"group","aria-labelledby":"h",part:"container",children:[z("div",{id:"h",class:"vh","aria-live":"polite","aria-atomic":"true",children:t.formatVerbose.formatRange(n,l)}),ie("div",{part:"header",children:[z(wt,{name:"previous",onclick:t.previous,children:"Previous"}),z("slot",{part:"heading",name:"heading",children:z("div",{"aria-hidden":"true",children:t.format.formatRange(n,l)})}),z(wt,{name:"next",onclick:t.next,children:"Next"})]}),z(Ie,{value:t,onselectday:t.onSelect,onfocusday:t.onFocus,onhoverday:t.onHover,children:z("slot",{})})]})}const Oe={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"}},Ae=[mt,ft,pe`: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}`],Gl={year:"numeric"},Zl={year:"numeric",month:"long"};function je(t,n){return(n.year-t.year)*12+n.month-t.month}const xt=(t,n)=>(t=n===12?new ge(t.year,1):t,{start:t,end:t.add({months:n-1})});function Ql({pageBy:t,focusedDate:n,months:l,max:o,min:r,goto:a}){const s=t==="single"?1:l,[c,i]=Ee(()=>xt(n.toPlainYearMonth(),l)),u=x=>i(xt(c.start.add({months:x}),l)),m=x=>{const f=je(c.start,x.toPlainYearMonth());return f>=0&&f<l};return re(()=>{if(m(n))return;const x=je(n.toPlainYearMonth(),c.start);a(n.add({months:x}))},[c.start]),re(()=>{if(m(n))return;const x=je(c.start,n.toPlainYearMonth());u(x===-1?-s:x===l?s:Math.floor(x/l)*l)},[n,s,l]),{page:c,previous:!r||!m(r)?()=>u(-s):void 0,next:!o||!m(o)?()=>u(s):void 0}}function Le({months:t,pageBy:n,locale:l,focusedDate:o,setFocusedDate:r}){const[a]=Y("min"),[s]=Y("max"),[c]=Y("today"),i=K("focusday"),u=K("change"),m=W(()=>he(o??c??Ne(),a,s),[o,c,a,s]);function x(k){r(k),i(R(k))}const{next:f,previous:d,page:g}=Ql({pageBy:n,focusedDate:m,months:t,min:a,max:s,goto:x}),y=oe();function b(k){const T=(k==null?void 0:k.target)??"day";T==="day"?y.current.querySelectorAll("calendar-month").forEach(A=>A.focus(k)):y.current.shadowRoot.querySelector(`[part~='${T}']`).focus(k)}return{format:ce(Gl,l),formatVerbose:ce(Zl,l),page:g,focusedDate:m,dispatch:u,onFocus(k){k.stopPropagation(),x(k.detail),setTimeout(b)},min:a,max:s,today:c,next:f,previous:d,focus:b}}const Et=ae(t=>{const[n,l]=Y("value"),[o=n,r]=Y("focusedDate"),a=Le({...t,focusedDate:o,setFocusedDate:r});function s(c){l(c.detail),a.dispatch()}return z("host",{shadowDom:!0,focus:a.focus,children:z(Pe,{...t,...a,type:"date",value:n,onSelect:s})})},{props:Oe,styles:Ae});customElements.define("calendar-date",Et);const Bt=(t,n)=>P.compare(t,n)<0?[t,n]:[n,t],$t=ae(t=>{const[n,l]=ql("value"),[o=n[0],r]=Y("focusedDate"),a=Le({...t,focusedDate:o,setFocusedDate:r}),s=K("rangestart"),c=K("rangeend"),[i,u]=Y("tentative"),[m,x]=Ee();re(()=>x(void 0),[i]);function f(b){a.onFocus(b),d(b)}function d(b){b.stopPropagation(),i&&x(b.detail)}function g(b){const k=b.detail;b.stopPropagation(),i?(l(Bt(i,k)),u(void 0),c(R(k)),a.dispatch()):(u(k),s(R(k)))}const y=i?Bt(i,m??i):n;return z("host",{shadowDom:!0,focus:a.focus,children:z(Pe,{...t,...a,type:"range",value:y,onFocus:f,onHover:d,onSelect:g})})},{props:{...Oe,tentative:{type:String,value:""}},styles:Ae});customElements.define("calendar-range",$t);const Ct=ae(t=>{const[n,l]=Hl("value"),[o=n[0],r]=Y("focusedDate"),a=Le({...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 z("host",{shadowDom:!0,focus:a.focus,children:z(Pe,{...t,...a,type:"multi",value:n,onSelect:s})})},{props:Oe,styles:Ae});customElements.define("calendar-multi",Ct);const ea=Object.freeze(Object.defineProperty({__proto__:null,CalendarDate:Et,CalendarMonth:kt,CalendarMulti:Ct,CalendarRange:$t},Symbol.toStringTag,{value:"Module"}));S.Accordion=Zt,S.AdvancedSearch=In,S.Avatar=tn,S.Badge=nn,S.ButtonComponent=Vt,S.Card=dn,S.Carousel=gn,S.CarouselItem=yn,S.CategoryNavigation=Jo,S.DatetimePicker=qe,S.Dropdown=Tt,S.FilterableSelect=yo,S.Footer=Fo,S.Hero=Wo,S.InputField=We,S.Loader=vo,S.Modal=It,S.NavigationBar=el,S.Rating=Xn,S.Selector=He,S.Swap=At,S.Tab=al,S.TagInput=to,S.ThemeController=Kt,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})}));
|
|
46
|
+
*/const Rt=ne("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"}]]),qt=(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},Ht={class:"swap-rotate swap"},Wt=["true-value","false-value"],Kt=e.defineComponent({__name:"theme-controller",props:{lightTheme:{default:"light"},darkTheme:{default:"dark"}},setup(t){const n=t,l=qt("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",Ht,[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,Wt),[[e.vModelCheckbox,e.unref(l)]]),e.createVNode(e.unref(Rt),{class:"swap-off fill-current"}),e.createVNode(e.unref(Ut),{class:"swap-on fill-current"})]))}}),Yt=["name"],Jt={class:"collapse-title font-bold text-2xl lg:text-4xl"},Xt={class:"collapse-content"},Gt=["innerHTML"],Zt=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,Yt),e.createElementVNode("div",Jt,e.toDisplayString(r.title),1),e.createElementVNode("div",Xt,[e.createElementVNode("span",{innerHTML:r.content},null,8,Gt)])],2))),128))}}),Qt=["src"],en={class:"text-xl"},tn=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,Qt)],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",en,e.toDisplayString(t.initials),1)],2))],2))}}),nn=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))}}),on=["src","alt"],ln={key:0,class:"card-body"},an={key:0,class:"group-hover:text-primary text-lg text-left cursor-pointer card-title"},rn={key:1,class:"text-left"},sn={class:"flex-col flex-nowrap mt-auto card-actions"},cn={key:1,class:"card-body"},dn=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,on)):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",ln,[t.title?(e.openBlock(),e.createElementBlock("h2",an,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"details"),t.description?(e.openBlock(),e.createElementBlock("p",rn,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0),e.createElementVNode("div",sn,[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))}}),Re=Symbol("CarouselItemStyle"),un={class:"relative h-full"},mn={key:0,class:"top-1/2 right-5 left-5 z-10 absolute flex justify-between -translate-y-1/2 transform"},fn={key:1,class:"bottom-5 z-10 absolute flex justify-center gap-2 py-2 w-full"},pn=["onClick","aria-label"],hn=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}},setup(t,{expose:n}){const l=t,o=e.ref(l.initialSlide),r=e.ref(null),a=e.ref(!1),s=e.ref(0),c=e.computed(()=>({width:`calc((100% - ${l.slidesPerView>1?(l.slidesPerView-1)*l.gap:0}px) / ${l.slidesPerView})`}));e.provide(Re,c);const i=()=>{r.value?s.value=r.value.children.length:s.value=0},u=async g=>{if(!r.value||l.slidesPerView<=0||a.value||(i(),s.value===0))return;const y=(g%s.value+s.value)%s.value,b=r.value,k=l.sliderOrientation==="vertical"?(b.offsetHeight-(l.slidesPerView-1)*l.gap)/l.slidesPerView:(b.offsetWidth-(l.slidesPerView-1)*l.gap)/l.slidesPerView;if(k<=0)return;const T=k+l.gap,A=y*T,F=l.sliderOrientation==="vertical"?b.scrollHeight-b.offsetHeight:b.scrollWidth-b.offsetWidth,h=Math.max(0,Math.min(A,F+.5));a.value=!0,b.style.scrollBehavior="auto";const B=l.sliderOrientation==="vertical"?b.scrollTop:b.scrollLeft,v=h-B;if(Math.abs(v)<1){a.value=!1,o.value=y;return}const N=performance.now(),p=$=>{const E=$-N,M=Math.min(1,E/l.slideDuration),L=M<.5?4*M*M*M:1-Math.pow(-2*M+2,3)/2,j=B+v*L;l.sliderOrientation==="vertical"?b.scrollTop=j:b.scrollLeft=j,M<1?requestAnimationFrame(p):(l.sliderOrientation==="vertical"?b.scrollTop=h:b.scrollLeft=h,o.value=y,a.value=!1)};requestAnimationFrame(p)},m=()=>{u(o.value+1)},x=()=>{u(o.value-1)},f=g=>{u(g)},d=()=>{if(!r.value||l.slidesPerView<=0||(i(),s.value===0))return;const g=r.value,y=l.sliderOrientation==="vertical"?g.offsetHeight:g.offsetWidth,b=l.slidesPerView>1?(l.slidesPerView-1)*l.gap:0,k=(y-b)/l.slidesPerView;if(k<=0)return;const T=Math.max(0,s.value-l.slidesPerView),A=Math.min(Math.max(0,l.initialSlide),T),F=A*(k+l.gap),h=l.sliderOrientation==="vertical"?g.scrollHeight-g.offsetHeight:g.scrollWidth-g.offsetWidth,B=Math.max(0,Math.min(F,h+.5));l.sliderOrientation==="vertical"?g.scrollTo({top:B,behavior:"auto"}):g.scrollTo({left:B,behavior:"auto"}),o.value=A};return e.onMounted(()=>{requestAnimationFrame(()=>{requestAnimationFrame(d)}),i()}),e.watch(()=>l.initialSlide,g=>{requestAnimationFrame(()=>u(g))}),e.watch(()=>[l.slidesPerView,l.gap],()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{if(i(),s.value===0)return;const g=Math.max(0,s.value-l.slidesPerView),y=Math.min(o.value,g),b=l.slideDuration;l.slideDuration=0,u(y),l.slideDuration=b})})}),n({scrollToSlide:u}),(g,y)=>(e.openBlock(),e.createElementBlock("div",un,[e.createElementVNode("div",{ref_key:"carouselContainer",ref:r,class:e.normalizeClass(["rounded w-full h-full overflow-x-scroll scroll-smooth carousel",[{"carousel-horizontal md:snap-none":t.sliderOrientation=="horizontal"},{"carousel-vertical":t.sliderOrientation=="vertical"}]]),style:e.normalizeStyle({gap:`${t.gap}px`})},[e.renderSlot(g.$slots,"default",{},void 0,!0)],6),t.showNavigationButtons?(e.openBlock(),e.createElementBlock("div",mn,[e.createElementVNode("div",{onClick:x,role:"button","aria-label":"Previous Slide"},[e.renderSlot(g.$slots,"prevButton",{},()=>[y[0]||(y[0]=e.createElementVNode("button",{class:"btn btn-circle",tabindex:"-1"},"❮",-1))],!0)]),e.createElementVNode("div",{onClick:m,role:"button","aria-label":"Next Slide"},[e.renderSlot(g.$slots,"nextButton",{},()=>[y[1]||(y[1]=e.createElementVNode("button",{class:"btn btn-circle",tabindex:"-1"},"❯",-1))],!0)])])):e.createCommentVNode("",!0),t.showIndicators?(e.openBlock(),e.createElementBlock("div",fn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(b,k)=>(e.openBlock(),e.createElementBlock("button",{key:`dot-${k}`,onClick:T=>f(k),class:e.normalizeClass(["btn btn-circle btn-xs",{"btn-active":k===o.value}]),"aria-label":`Go to slide ${k+1}`},null,10,pn))),128))])):e.createCommentVNode("",!0)]))}}),X=(t,n)=>{const l=t.__vccOpts||t;for(const[o,r]of n)l[o]=r;return l},gn=X(hn,[["__scopeId","data-v-db55a6a5"]]),yn=X(e.defineComponent({__name:"carouselItem",setup(t){const n=e.inject(Re,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"]]),bn={class:"flex gap-4 bg-base-100 w-full tabs tabs-boxed"},kn=["onClick"],wn={key:0,class:"inline-component-wrapper flex grow justify-center items-center w-full h-full"},xn={key:1,class:"flex flex-col"},En={class:"text-sm"},Bn={key:0,class:"opacity-75 overflow-hidden text-xs truncate ..."},$n={key:1,class:"hidden md:block opacity-35 overflow-hidden text-xs truncate ..."},Cn={class:"hidden"},Sn=["id"],vn={class:"modal-box"},Vn={class:"font-bold text-lg"},Nn=["name","checked"],Dn={class:"collapse-title flex justify-between items-center pr-4 w-full font-medium text-xl"},Tn={key:0,class:"opacity-75 overflow-hidden text-sm truncate ..."},Mn={key:1,class:"opacity-35 text-sm"},zn={class:"collapse-content flex place-content-center p-0"},In=X(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(()=>Yn)),"standard-select":e.defineAsyncComponent(()=>Promise.resolve().then(()=>io)),"custom-text":e.defineAsyncComponent(()=>Promise.resolve().then(()=>So))},i=e.ref({}),u=e.ref({left:"0px",top:"0px",transform:"translateX(0%)"}),m=e.ref(null),x=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 v=new Date(h.value);if(!isNaN(v.getTime()))return v.toLocaleString()}catch{}else if(h.range&&typeof h.value=="object"&&h.value!==null&&"start"in h.value&&"end"in h.value)try{const v=new Date(h.value.start),N=new Date(h.value.end);if(!isNaN(v.getTime())&&!isNaN(N.getTime()))return`${v.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 v=h.props.options.find(N=>N.value===h.value);if(v)return v.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,$;const B=(p=a.value)==null?void 0:p.name;if(!B){console.warn("componentValueUpdated called but no active tab.");return}const v=($=l.searchOptions.find(E=>(E==null?void 0:E.category)===l.currentCategory))==null?void 0:$.tabs,N=v==null?void 0:v.find(E=>E.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 g(){o("search")}async function y(h){var N;const B=document.getElementById(`advancedSearchMobile-${r}`),v=B&&B.contains(h.target);((N=a.value)==null?void 0:N.displayMode)==="popup"&&m.value&&!m.value.contains(h.target)&&!v&&(await e.nextTick(),a.value=null)}async function b(){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 v,N,p;if(typeof window<"u"&&window.innerWidth<=768){b();return}const B=h.displayMode??"popup";if(((v=a.value)==null?void 0:v.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 $=i.value[h.name];if($&&m.value){const E=$.getBoundingClientRect(),M=m.value.getBoundingClientRect(),L=E.bottom-M.top,j=E.left+E.width/2-M.left;u.value={left:`${j}px`,top:`${L+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 v;((v=a.value)==null?void 0:v.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)},A=()=>{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",y),window.addEventListener("resize",F)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",y),window.removeEventListener("resize",F)});const F=()=>{var h,B;if(typeof window<"u"){const v=window.innerWidth<=768,N=a.value!==null&&(a.value.displayMode==="popup"||a.value.displayMode==="inline")&&window.innerWidth>768;!v&&(((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),v&&!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&&!v&&(console.log("Modal is open on desktop, closing modal and active tab."),p.close(),a.value=null)}};return(h,B)=>{var v,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:b},[e.createElementVNode("div",bn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((v=l.searchOptions.find(p=>p.category===l.currentCategory))==null?void 0:v.tabs)||[],(p,$)=>{var E,M,L,j,H;return e.openBlock(),e.createElementBlock("button",{key:`${p.name}-${$}`,onClick:e.withModifiers(w=>k(p),["stop"]),class:e.normalizeClass([{"tab-active":((E=a.value)==null?void 0:E.name)===p.name,"tab-active-inline":((M=a.value)==null?void 0:M.name)===p.name&&((L=a.value)==null?void 0:L.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:w=>i.value[p.name]=w},[((j=a.value)==null?void 0:j.name)===p.name&&((H=a.value)==null?void 0:H.displayMode)==="inline"?(e.openBlock(),e.createElementBlock("div",wn,[(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]=w=>d(w)),"onUpdate:modelValue":B[1]||(B[1]=w=>d(w)),onBlur:T,onKeydown:e.withKeys(e.withModifiers(A,["stop","prevent"]),["enter"]),ref_for:!0,ref_key:"inlineComponentRef",ref:s}),null,16,["modelValue","onKeydown"]))])):(e.openBlock(),e.createElementBlock("div",xn,[e.createElementVNode("p",En,e.toDisplayString(p.name),1),p.value!==void 0&&p.value!==null&&p.value!==""?(e.openBlock(),e.createElementBlock("p",Bn,e.toDisplayString(x(p)),1)):(e.openBlock(),e.createElementBlock("p",$n,e.toDisplayString(p.description),1))]))],10,kn)}),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(g,["stop"])},[e.createVNode(e.unref(Ue),{size:24,color:"white"})])]),e.createElementVNode("div",Cn,[e.createElementVNode("button",{title:"search",onClick:B[4]||(B[4]=()=>{})},[e.createVNode(e.unref(Ue),{size:24,color:"white"})])])],512),e.createElementVNode("dialog",{id:`advancedSearchMobile-${e.unref(r)}`,class:"modal"},[e.createElementVNode("div",vn,[e.renderSlot(h.$slots,"additionalForMobile",{},()=>[e.createElementVNode("h3",Vn,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,$)=>(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:$===0},null,8,Nn),e.createElementVNode("div",Dn,[e.createElementVNode("div",null,e.toDisplayString(p.name),1),p.value!==void 0&&p.value!==null&&p.value!==""?(e.openBlock(),e.createElementBlock("div",Tn,e.toDisplayString(x(p)),1)):(e.openBlock(),e.createElementBlock("div",Mn,e.toDisplayString(p.description),1))]),e.createElementVNode("div",zn,[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]=E=>f(E)),"onUpdate:modelValue":B[6]||(B[6]=E=>f(E))}),null,16,["modelValue"]))])]))),128)),e.createElementVNode("div",{class:"modal-action"},[e.createElementVNode("form",{method:"dialog"},[e.createElementVNode("button",{class:"btn btn-primary",onClick:g}," Close and Search ")])])])],8,Sn)],64)}}}),[["__scopeId","data-v-577c3624"]]),Pn={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"},On={key:0},An={key:1},jn=["id","onKeydown"],Ln={key:2,class:"flex justify-center p-4"},Fn={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"},_n={class:"join-item"},Un=["id","disabled","value"],Rn={class:"join-item"},qn=["id","disabled","value"],Hn={key:3,class:"p-4 min-w-2xs"},Wn=["id","disabled","value"],Kn={key:4,class:"flex px-4 my-4 w-full justify-end"},qe=X(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),x=e.ref(null),f=e.ref({from:"",to:"",single:""}),d=e.ref({single:null,start:null,end:null}),g=w=>w instanceof Date?w.toISOString():w,y=w=>w.split("T")[0]||"",b=w=>{const C=w instanceof Date?w:new Date(w);if(isNaN(C.getTime()))return"";const V=String(C.getHours()).padStart(2,"0"),D=String(C.getMinutes()).padStart(2,"0");return`${V}:${D}`},k=()=>{const w=new Date,C=b(w);let V=o.initialDate;if(!V&&o.mode!=="time"&&(V=o.range?{start:w,end:w}:w),!!V){if(!V){o.mode==="time"&&(o.range?(f.value.from=C,f.value.to=C):f.value.single=C);return}if(o.range&&typeof V=="object"&&"start"in V){const D=g(V.start),I=g(V.end);d.value.start=y(D),d.value.end=y(I),o.mode!=="date"&&(f.value.from=b(D),f.value.to=b(I))}else{const D=g(V);d.value.single=y(D),o.mode!=="date"&&(f.value.single=b(D))}}},T=e.computed(()=>{const w=D=>{if(!D)return"";if(D.includes(":"))return D;try{return new Date(D+"T00:00:00").toLocaleDateString(o.locale,{year:"numeric",month:"numeric",day:"numeric"})}catch{const[I,O,U]=D.split("-");return`${U}/${O}/${I}`}};let C="",V="";if((o.mode==="date"||o.mode==="datetime")&&(o.range?d.value.start&&d.value.end&&(C=`${d.value.start} - ${d.value.end}`):d.value.single&&(C=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?C.split(" - ").map(w).join(" - "):w(C);if(o.mode==="time")return V;if(o.mode==="datetime")if(o.range){const D=d.value.start,I=d.value.end,O=f.value.from,U=f.value.to;if(D&&I&&O&&U)return`${w(D)} ${O} - ${w(I)} ${U}`;if(D)return`${w(D)} ${O||""}`.trim()}else{const D=d.value.single,I=f.value.single;return`${w(D)} ${I||""}`.trim()}return""}),A=()=>{if(c.value)d.value.single=c.value.value||null;else if(i.value){const w=i.value.value;if(typeof w=="string"&&w.includes("/")){const[C,V]=w.split("/");d.value.start=C||null,d.value.end=V||null}else d.value.start=w||null,d.value.end=w||null}},F=()=>d.value.start&&d.value.end?`${d.value.start}/${d.value.end}`:null,h=()=>{if(o.range){const V=d.value.start,D=d.value.end||d.value.start,I=f.value.from,O=f.value.to;if(o.mode==="time")return I&&O?{start:I,end:O}:null;if(o.mode==="date")return V&&D?{start:V,end:D}:null;if(o.mode==="datetime"){if(!V||!D)return null;const U=I?`${I}:00`:"00:00:00",be=O?`${O}:00`:"23:59:59",ke=`${V}T${U}`,ta=`${D}T${be}`;return{start:ke,end:ta}}return null}const w=d.value.single,C=f.value.single;if(o.mode==="time")return C||null;if(o.mode==="date")return w||null;if(o.mode==="datetime"){if(!w)return null;const V=C?`${C}:00`:"00:00:00";return`${w}T${V}`}return null},B=async()=>{A();const w=h();r("update:modelValue",w),r("change",w)},v=()=>{e.nextTick(()=>{B()})},N=w=>{const C=w.target;o.range?C===m.value?f.value.from=C.value:C===x.value&&(f.value.to=C.value):f.value.single=C.value,B()},p=()=>{s.value=!s.value},$=()=>{B(),s.value=!1},E=w=>{!o.popup||!s.value||setTimeout(()=>{const C=a.value,V=w.target,D=`date-picker-${o.id}-popup`;C&&!C.contains(V)&&!w.target.closest(`#${D}`)&&$()},0)},M=()=>{$()},L=()=>{B(),o.popup&&(s.value=!1)},j=()=>{if(!l)return;const w=o.range?i.value:c.value;w&&typeof w.navigate=="function"&&w.navigate(-1)},H=()=>{if(!l)return;const w=o.range?i.value:c.value;w&&typeof w.navigate=="function"&&w.navigate(1)};return e.onMounted(()=>{l&&Promise.resolve().then(()=>ea).catch(w=>{console.warn("Failed to load cally:",w)}),k()}),e.watch(d,async w=>{if(await e.nextTick(),c.value&&w.single){const C=w.single;c.value.value!==C&&(c.value.value=C)}if(i.value){const C=F();C&&i.value.value!==C&&(i.value.value=C)}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,x],()=>{B()},{immediate:!0}),(w,C)=>{const V=e.resolveComponent("calendar-month"),D=e.resolveComponent("calendar-date"),I=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:E},[o.popup?(e.openBlock(),e.createElementBlock("div",{key:0,class:"flex items-center gap-2 cursor-pointer w-full",onClick:C[0]||(C[0]=O=>o.disabled?null:p())},[e.createElementVNode("div",Pn,[T.value?(e.openBlock(),e.createElementBlock("span",An,e.toDisplayString(T.value),1)):(e.openBlock(),e.createElementBlock("span",On,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:[C[1]||(C[1]=e.withKeys(e.withModifiers(()=>{},["prevent","stop"]),["tab"])),e.withKeys(M,["esc"]),e.withKeys(e.withModifiers(L,["prevent"]),["enter"])]},[!o.range&&o.mode!=="time"&&l?(e.openBlock(),e.createBlock(D,{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:v},{default:e.withCtx(()=>[e.createElementVNode("button",{slot:"previous",class:"btn-outline btn btn-primary md:btn-sm",onClick:j},[...C[2]||(C[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:H},[...C[3]||(C[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(I,{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:v},{default:e.withCtx(()=>[e.createElementVNode("button",{slot:"previous",class:"btn-outline btn btn-primary md:btn-sm",onClick:j},[...C[4]||(C[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:H},[...C[5]||(C[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",Ln,[e.createElementVNode("div",Fn,[e.createElementVNode("div",_n,[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,Un)]),C[6]||(C[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",Rn,[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:x,id:`${o.id}-time-to`,onChange:N,disabled:o.disabled,value:f.value.to||""},null,40,qn)])])])):e.createCommentVNode("",!0),!o.range&&o.mode!=="date"?(e.openBlock(),e.createElementBlock("div",Hn,[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,Wn)])):e.createCommentVNode("",!0),o.popup&&o.closeText?(e.openBlock(),e.createElementBlock("div",Kn,[e.createElementVNode("button",{class:"btn btn-primary max-lg:w-full",onClick:$},e.toDisplayString(o.closeText),1)])):e.createCommentVNode("",!0)],42,jn)):e.createCommentVNode("",!0)],544)}}}),[["__scopeId","data-v-e0b34494"]]),Yn=Object.freeze(Object.defineProperty({__proto__:null,default:qe},Symbol.toStringTag,{value:"Module"})),Jn=["value","checked","onChange","disabled"],Xn=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,Jn))),128))],2))}}),Gn={class:"badge"},Zn=["onClick"],Qn={class:"opacity-75"},eo=["placeholder"],to=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(g=>g!==d),o("update:modelValue",r.value)},x=()=>{c.value===""&&(r.value.pop(),o("update:modelValue",r.value))},f=d=>{d.key==="Enter"?u():d.key==="Backspace"&&c.value===""&&x()};return e.watch(()=>l.modelValue,d=>{r.value=[...d]}),(d,g)=>(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,y=>e.renderSlot(d.$slots,"tag",{key:y,tag:y},()=>[e.createElementVNode("div",Gn,[e.createElementVNode("button",{class:"px-1! py-0! h-fit font-bold cursor-pointer",onClick:b=>m(y),"aria-label":"Remove tag"},"X",8,Zn),e.createElementVNode("span",Qn,e.toDisplayString(y),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":g[0]||(g[0]=y=>c.value=y),type:"text",placeholder:t.placeholder||"Type here",class:"h-full input input-ghost",onKeydown:f,"aria-label":"Add tags"},null,40,eo)),[[e.vModelText,c.value]]):e.createCommentVNode("",!0)])],2))}}),no={class:"w-full max-w-xs form-control"},oo={key:0,class:"label"},lo={class:"label-text"},ao=["value"],ro={key:0,value:"",disabled:"",selected:""},so=["value"],He=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",no,[t.label?(e.openBlock(),e.createElementBlock("label",oo,[e.createElementVNode("span",lo,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",ro,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,so))),128))],40,ao)]))}}),io=Object.freeze(Object.defineProperty({__proto__:null,default:He},Symbol.toStringTag,{value:"Module"})),co={key:0,class:"label"},uo={class:"label-text"},mo=["onKeydown","aria-expanded","aria-activedescendant"],fo=["placeholder","disabled"],po={class:"top-full z-10 absolute bg-base-100 shadow-lg mt-1 rounded-md w-full dropdown-content",role:"listbox"},ho={class:"flex-nowrap p-0 w-[inherit] max-h-60 overflow-y-auto menu"},go=["onMousedown","id","aria-selected"],yo={__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 $=(a.default?a.default():[]).filter(E=>E.type!==e.Comment);return console.log("hasDefaultSlotContent computed:",$.length>0),$.length>0}),c=e.ref(""),i=e.ref(null),u=e.ref(!1),m=e.ref(null),x=e.ref(null),f=e.ref(null),d=e.ref(null),g=()=>{u.value=!o.disabled},y=()=>{u.value=!1,d.value=null,s.value||(i.value&&c.value!==i.value.text?c.value=i.value.text:i.value||(c.value=""))},b=()=>{u.value?y():g()},k=e.computed(()=>{const p=c.value?c.value.toLowerCase():"";return p===""&&!u.value?[]:o.options.filter(E=>E&&E.text?E.text.toLowerCase().includes(p):"")});e.watch(()=>o.modelValue,(p,$)=>{if(p!==$&&y(),p==null)i.value=null,!u.value&&!s.value&&(c.value="");else{const E=o.options.find(M=>M.value===p);E?(i.value=E,!u.value&&!s.value&&(c.value=E.text)):(i.value=null,!u.value&&!s.value&&(c.value=""))}},{immediate:!0});const T=p=>{x.value&&!x.value.contains(p.target)&&y()},A=()=>{setTimeout(()=>{x.value&&!x.value.contains(document.activeElement)&&y()},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 F=()=>{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),y()},B=()=>{k.value.length>0&&h(k.value[0])},v=()=>{u.value||g()},N=p=>{if(!u.value||k.value.length===0)return;const $=k.value.findIndex((M,L)=>"option-"+L===d.value);let E=-1;if(p.key==="ArrowDown")p.preventDefault(),E=($+1)%k.value.length;else if(p.key==="ArrowUp")p.preventDefault(),E=($-1+k.value.length)%k.value.length;else if(p.key==="Enter"&&d.value){p.preventDefault();const M=k.value.find((L,j)=>"option-"+j===d.value);M&&h(M);return}else if(p.key==="Escape"){p.preventDefault(),y(),f.value&&f.value.focus();return}else if(s.value)return;if(E!==-1){d.value="option-"+E;const M=document.getElementById(d.value);M&&requestAnimationFrame(()=>{M.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:g,closeDropdown:y,toggleDropdown:b,selectItem:h,filterText:c,hasDefaultSlotContent:s}),(p,$)=>(e.openBlock(),e.createElementBlock("div",{class:"relative w-full max-w-xs form-control",ref_key:"componentRoot",ref:x},[t.label?(e.openBlock(),e.createElementBlock("label",co,[e.createElementVNode("span",uo,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:$[1]||($[1]=E=>s.value?b():g()),onKeydown:[e.withKeys(e.withModifiers(B,["prevent"]),["enter"]),e.withKeys(e.withModifiers(B,["prevent"]),["space"])],onBlur:A,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":$[0]||($[0]=E=>c.value=E),ref_key:"filterInput",ref:m,onFocus:g,onInput:v,tabindex:"-1",disabled:o.disabled},null,40,fo)),[[e.vModelText,c.value]])]),i.value&&!t.disabled?(e.openBlock(),e.createBlock(e.unref(_t),{key:0,size:20,class:"mx-2 text-base-content/50 hover:text-base-content/80 cursor-pointer",onClick:e.withModifiers(F,["stop"])})):e.createCommentVNode("",!0),s.value&&!i.value?(e.openBlock(),e.createBlock(e.unref(Ft),{key:1,class:e.normalizeClass([{"rotate-180":u.value},"mx-2"]),size:20},null,8,["class"])):e.createCommentVNode("",!0)],46,mo),e.withDirectives(e.createElementVNode("div",po,[e.createElementVNode("ul",ho,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,(E,M)=>(e.openBlock(),e.createElementBlock("li",{key:E.value,onMousedown:e.withModifiers(L=>h(E),["prevent"]),class:"hover:bg-base-200 rounded-md w-full cursor-pointer",id:"option-"+M,role:"option","aria-selected":i.value&&i.value.value===E.value},[e.createElementVNode("a",null,e.toDisplayString(E.text),1)],40,go))),128))])],512),[[e.vShow,u.value&&k.value.length>0]])],512))}},bo={class:"w-full max-w-xs form-control"},ko={key:0,class:"label"},wo={class:"label-text"},xo=["type","placeholder","disabled","value"],Eo={key:1,class:"label"},Bo={class:"label-text-alt text-error validator-hint"},$o={key:2,class:"label"},Co={class:"label-text-alt text-success validator-hint"},We=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 b,k,T,A;let d=!0,g="";const y=o.modelValue;return(b=o.rules)!=null&&b.required&&(y==null||y==="")&&(d=!1,g="This field is required."),d&&((k=o.rules)==null?void 0:k.minLength)!==void 0&&typeof y=="string"&&y.length<o.rules.minLength&&(d=!1,g=`Must be at least ${o.rules.minLength} characters.`),d&&((T=o.rules)==null?void 0:T.maxLength)!==void 0&&typeof y=="string"&&y.length>o.rules.maxLength&&(d=!1,g=`Cannot exceed ${o.rules.maxLength} characters.`),d&&((A=o.rules)!=null&&A.email)&&typeof y=="string"&&y&&(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(y)||(d=!1,g="Please enter a valid email address.")),c.value=g,r("validate",d),d}),u=e.computed(()=>s.value&&!i.value),m=d=>{const g=d.target;r("update:modelValue",g.value),s.value&&i.value},x=()=>{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,g)=>(e.openBlock(),e.createElementBlock("div",bo,[t.label?(e.openBlock(),e.createElementBlock("label",ko,[e.createElementVNode("span",wo,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:x},null,42,xo),u.value?(e.openBlock(),e.createElementBlock("div",Eo,[e.createElementVNode("span",Bo,e.toDisplayString(c.value),1)])):i.value&&s.value&&t.successMessage?(e.openBlock(),e.createElementBlock("div",$o,[e.createElementVNode("span",Co,e.toDisplayString(t.successMessage),1)])):e.createCommentVNode("",!0)]))}}),So=Object.freeze(Object.defineProperty({__proto__:null,default:We},Symbol.toStringTag,{value:"Module"})),vo=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)}}),Vo={class:"footer sm:footer-horizontal container"},No={class:"footer-title"},Do=["href"],To={key:0,class:"sm:hidden w-full"},Mo={class:"border-b-2 border-base-100 last:border-b-0 w-full"},zo={tabindex:"0",class:"collapse collapse-plus w-full"},Io={class:"collapse-title font-bold text-lg collapsible-footer-title"},Po={class:"collapse-content flex w-full text-sm"},Oo={class:"flex flex-col gap-2.5"},Ao={class:"w-full"},jo=["href"],Lo={class:"w-full"},Fo=e.defineComponent({__name:"footer",props:{items:{},background:{},color:{},collapseOnMobile:{type:Boolean,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",Vo,[(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",No,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,Do))),256))],2))),256)),t.collapseOnMobile?(e.openBlock(),e.createElementBlock("nav",To,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,r=>(e.openBlock(),e.createElementBlock("ul",Mo,[e.createElementVNode("div",zo,[e.createElementVNode("div",Io,e.toDisplayString(r.title),1),e.createElementVNode("div",Po,[e.createElementVNode("ul",Oo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.items,a=>(e.openBlock(),e.createElementBlock("li",Ao,[e.createElementVNode("a",{class:"w-full font-medium link link-hover",href:a.link},e.toDisplayString(a.text),9,jo)]))),256))])])])]))),256))])):e.createCommentVNode("",!0),e.createElementVNode("aside",Lo,[e.renderSlot(l.$slots,"default")])])],2))}}),_o={},Uo={class:"min-h-40 container hero"},Ro={class:"px-0! text-center hero-content"},qo={class:"mt-9 text-4xl"};function Ho(t,n){return e.openBlock(),e.createElementBlock("div",Uo,[e.createElementVNode("div",Ro,[e.createElementVNode("div",null,[e.createElementVNode("h1",qo,[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 Wo=X(_o,[["render",Ho]]),Ko={class:"flex flex-row place-content-center gap-4 categories"},Yo=["onClick"],Jo=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",Ko,[(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,Yo)]))),128))]))}}),Xo={class:"md:flex hidden navbar-start"},Go={class:"md:flex justify-center items-center hidden navbar-center"},Zo={class:"md:flex hidden navbar-end"},Qo={class:"navbar-bottom md:flex hidden"},el=X(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",Xo,[e.renderSlot(l.$slots,"start",{},void 0,!0)]),e.createElementVNode("div",Go,[e.renderSlot(l.$slots,"center",{},void 0,!0)]),e.createElementVNode("div",Zo,[e.renderSlot(l.$slots,"end",{},void 0,!0)]),e.createElementVNode("div",Qo,[e.renderSlot(l.$slots,"bottom",{},void 0,!0)])],2))}}),[["__scopeId","data-v-8ddb2b45"]]),tl={key:0,class:"hidden top-4 right-0 absolute md:flex gap-4"},nl=["onClick","aria-selected"],ol={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"},ll={class:"p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full"},al=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",tl,[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:x=>a(m),"aria-selected":o.value==m},e.toDisplayString(m),11,nl),t.buttonOnlyMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ol,[e.renderSlot(i.$slots,`${m}-tab`)]))],64))),256))],2),e.createElementVNode("div",ll,[e.renderSlot(i.$slots,"default")])],64))}});typeof document>"u"&&(globalThis.document={}),typeof window>"u"&&(globalThis.window=globalThis);class rl{constructor(n){Fe(this,J);Fe(this,ee,new Set);_e(this,J,n)}get current(){return te(this,J)}set current(n){te(this,J)!=n&&(_e(this,J,n),te(this,ee).forEach(l=>l(n)))}on(n){return te(this,ee).add(n),()=>te(this,ee).delete(n)}}J=new WeakMap,ee=new WeakMap;const Ke=t=>new rl(t),we=Symbol.for("atomico.hooks");globalThis[we]=globalThis[we]||{};let G=globalThis[we];const sl=Symbol.for("Atomico.suspense"),Ye=Symbol.for("Atomico.effect"),il=Symbol.for("Atomico.layoutEffect"),Je=Symbol.for("Atomico.insertionEffect"),Z=(t,n,l)=>{const{i:o,hooks:r}=G.c,a=r[o]=r[o]||{};return a.value=t(a.value),a.effect=n,a.tag=l,G.c.i++,r[o].value},cl=t=>Z((n=Ke(t))=>n),oe=()=>Z((t=Ke(G.c.host))=>t),Xe=()=>G.c.update,dl=(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=>{G.c={host:n,hooks:o,update:t,i:0,id:l};let i;try{r=!1,i=c()}catch(u){if(u!==sl)throw u;r=!0}finally{G.c=null}return i},cleanEffects:c=>(s(Je,c),()=>(s(il,c),()=>{s(Ye,c)})),isSuspense:a}},Q=Symbol.for;function Ge(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",le=t=>typeof t=="object",{isArray:ul}=Array,xe=(t,n)=>(n?t instanceof HTMLStyleElement:!0)&&"hydrate"in((t==null?void 0:t.dataset)||{});function Ze(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 Qe=(t,n,l)=>(t.addEventListener(n,l),()=>t.removeEventListener(n,l));class et{constructor(n,l,o){this.message=l,this.target=n,this.value=o}}class tt extends et{}class ml extends et{}const me="Custom",fl=null,pl={true:1,"":1,1:1};function hl(t,n,l,o,r){const{type:a,reflect:s,event:c,value:i,attr:u=gl(n)}=(l==null?void 0:l.name)!=me&&le(l)&&l!=fl?l:{type:l},m=(a==null?void 0:a.name)===me&&a.map,x=i!=null?a==Function||!q(i)?()=>i:i:null;Object.defineProperty(t,n,{configurable:!0,set(f){const d=this[n];x&&a!=Boolean&&f==null&&(f=x());const{error:g,value:y}=(m?kl:wl)(a,f);if(g&&y!=null)throw new tt(this,`The value defined for prop '${n}' must be of type '${a.name}'`,y);d!=y&&(this._props[n]=y??void 0,this.update(),c&&nt(this,c),this.updated.then(()=>{s&&(this._ignoreAttr=u,yl(this,a,u,this[n]),this._ignoreAttr=null)}))},get(){return this._props[n]}}),x&&(r[n]=x()),o[u]={prop:n,type:a}}const nt=(t,{type:n,base:l=CustomEvent,...o})=>t.dispatchEvent(new l(n,o)),gl=t=>t.replace(/([A-Z])/g,"-$1").toLowerCase(),yl=(t,n,l,o)=>o==null||n==Boolean&&!o?t.removeAttribute(l):t.setAttribute(l,(n==null?void 0:n.name)===me&&(n!=null&&n.serialize)?n==null?void 0:n.serialize(o):le(o)?JSON.stringify(o):n==Boolean?"":o),bl=(t,n)=>t==Boolean?!!pl[n]:t==Number?Number(n):t==String?n:t==Array||t==Object?JSON.parse(n):t.name==me?n:new t(n),kl=({map:t},n)=>{try{return{value:t(n),error:!1}}catch{return{value:n,error:!0}}},wl=(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 xl=0;const El=t=>{var l;return((l=(t==null?void 0:t.dataset)||{})==null?void 0:l.hydrate)||""||"c"+xl++},ae=(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,x;this.mounted=new Promise(b=>this.mount=()=>{b(),m!=this.parentNode&&(x!=m?this.unmounted.then(this.update):this.update()),m=this.parentNode}),this.unmounted=new Promise(b=>this.unmount=()=>{b(),(m!=this.parentNode||!this.isConnected)&&(f.cleanEffects(!0)()(),x=this.parentNode,m=null)}),this.symbolId=this.symbolId||Symbol(),this.symbolIdParent=Symbol();const f=dl(()=>this.update(),this,El(this));let d,g=!0;const y=xe(this);this.update=()=>(d||(d=!0,this.updated=(this.updated||this.mounted).then(()=>{try{const b=f.load(this._render),k=f.cleanEffects();return b&&b.render(this,this.symbolId,y),d=!1,g&&!f.isSuspense()&&(g=!1,!y&&Bl(this)),k()}finally{d=!1}}).then(b=>{b&&b()})),this.updated),this.update()}connectedCallback(){this.mount(),super.connectedCallback&&super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback(),this.unmount()}attributeChangedCallback(m,x,f){if(l[m]){if(m===this._ignoreAttr||x===f)return;const{prop:d,type:g}=l[m];try{this[d]=bl(g,f)}catch{throw new ml(this,`The value defined as attr '${m}' cannot be parsed by type '${g.name}'`,f)}}else super.attributeChangedCallback(m,x,f)}static get props(){return{...super.props,...s}}static get observedAttributes(){const m=super.observedAttributes||[];for(const x in s)hl(this.prototype,x,s[x],l,o);return Object.keys(l).concat(m)}}return i};function Bl(t){const{styles:n}=t.constructor,{shadowRoot:l}=t;if(l&&n.length){const o=[];Ze(n,r=>{r&&(r instanceof Element?l.appendChild(r.cloneNode(!0)):o.push(r))}),o.length&&(l.adoptedStyleSheets=o)}}const ot=t=>(n,l)=>{Z(([o,r]=[])=>((r||!r)&&(r&&Ge(r,l)?o=o||!0:(q(o)&&o(),o=null)),[o,l]),([o,r],a)=>a?(q(o)&&o(),[]):[o||n(),r],t)},re=ot(Ye),$l=ot(Je);class lt 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 Ee=t=>{const n=Xe();return Z((l=new lt(t,(o,r,a)=>{o=q(o)?o(r[0]):o,o!==r[0]&&(r[0]=o,a||n())}))=>l)},W=(t,n)=>{const[l]=Z(([o,r,a=0]=[])=>((!r||r&&!Ge(r,n))&&(o=t()),[o,n,a]));return l},Be=t=>{const{current:n}=oe();if(!(t in n))throw new tt(n,`For useProp("${t}"), the prop does not exist on the host.`,t);return Z((l=new lt(n[t],(o,r)=>{o=q(o)?o(n[t]):o,n[t]=o}))=>(l[0]=n[t],l))},K=(t,n={})=>{const l=oe();return l[t]||(l[t]=(o=n.detail)=>nt(l.current,{type:t,...n,detail:o})),l[t]},$e=Q("atomico/options");globalThis[$e]=globalThis[$e]||{sheet:!!document.adoptedStyleSheets};const at=globalThis[$e],Cl={checked:1,value:1,selected:1},Sl={list:1,type:1,size:1,form:1,width:1,height:1,src:1,href:1,slot:1},vl={shadowDom:1,staticNode:1,cloneNode:1,children:1,key:1},fe={},Ce=[];class Se extends Text{}const Vl=Q("atomico/id"),se=Q("atomico/type"),ve=Q("atomico/ref"),rt=Q("atomico/vnode"),Nl=()=>{};function Dl(t,n,l){return it(this,t,n,l)}const st=(t,n,...l)=>{const o=n||fe;let{children:r}=o;if(r=r??(l.length?l:Ce),t===Nl)return r;const a=t?t instanceof Node?1:t.prototype instanceof HTMLElement&&2:0;if(a===!1&&t instanceof Function)return t(r!=Ce?{children:r,...o}:o);const s=at.render||Dl;return{[se]:rt,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 it(t,n,l=Vl,o,r){let a;if(n&&n[l]&&n[l].vnode==t||t[se]!=rt)return n;(t||!n)&&(r=r||t.type=="svg",a=t.type!="host"&&(t.raw==1?(n&&t.clone?n[ve]:n)!=t.type:t.raw==2?!(n instanceof t.type):n?n[ve]||n.localName!=t.type:!n),a&&t.type!=null&&(t.raw==1&&t.clone?(o=!0,n=t.type.cloneNode(!0),n[ve]=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]:fe,{vnode:c=fe,cycle:i=0}=s;let{fragment:u,handlers:m}=s;const{children:x=Ce,props:f=fe}=c;if(m=a?{}:m||{},t.static&&!a)return n;if(t.shadow&&!n.shadowRoot&&n.attachShadow({mode:"open",...t.shadow}),t.props!=f&&zl(n,f,t.props,m,r),t.children!==x){const d=t.shadow?n.shadowRoot:n;u=Ml(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 Tl(t,n){const l=new Se(""),o=new Se("");let r;if(t[n?"prepend":"append"](l),n){let{lastElementChild:a}=t;for(;a;){const{previousElementSibling:s}=a;if(xe(a,!0)&&!xe(s,!0)){r=a;break}a=s}}return r?r.before(o):t.append(o),{markStart:l,markEnd:o}}function Ml(t,n,l,o,r,a){t=t==null?null:ul(t)?t:[t];const s=n||Tl(l,r),{markStart:c,markEnd:i,keyes:u}=s;let m;const x=u&&new Set;let f=c;if(t&&Ze(t,d=>{if(typeof d=="object"&&!d[se])return;const g=d[se]&&d.key,y=u&&g!=null&&u.get(g);f!=i&&f===y?x.delete(f):f=f==i?i:f.nextSibling;const b=u?y:f;let k=b;if(d[se])k=it(d,b,o,r,a);else{const T=d+"";!(k instanceof Text)||k instanceof Se?k=new Text(T):k.data!=T&&(k.data=T)}k!=f&&(u&&x.delete(k),!b||u?(l.insertBefore(k,f),u&&f!=i&&x.add(f)):b==i?l.insertBefore(k,i):(l.replaceChild(k,b),f=k)),g!=null&&(m=m||new Map,m.set(g,k))}),f=f==i?i:f.nextSibling,n&&f!=i)for(;f!=i;){const d=f;f=f.nextSibling,d.remove()}return x&&x.forEach(d=>d.remove()),s.keyes=m,s}function zl(t,n,l,o,r){for(const a in n)!(a in l)&&ct(t,a,n[a],null,r,o);for(const a in l)ct(t,a,n[a],l[a],r,o)}function ct(t,n,l,o,r,a){if(n=n=="class"&&!r?"className":n,l=l??null,o=o??null,n in t&&Cl[n]&&(l=t[n]),!(o===l||vl[n]||n[0]=="_"))if(n[0]=="o"&&n[1]=="n"&&(q(o)||q(l)))Il(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=le(l),i=le(o);if(c)for(const u in l)if(i)!(u in o)&&dt(s,u,null);else break;if(i)for(const u in o){const m=o[u];c&&l[u]===m||dt(s,u,m)}else s.cssText=o}else{const s=n[0]=="$"?n.slice(1):n;s===n&&(!r&&!Sl[n]&&n in t||q(o)||q(l))?t[n]=o??"":o==null?t.removeAttribute(s):t.setAttribute(s,le(o)?JSON.stringify(o):o)}}function Il(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 dt(t,n,l){let o="setProperty";l==null&&(o="removeProperty",l=null),~n.indexOf("-")?t[o](n,l):t[n]=l}const ut={};function pe(t,...n){const l=(t.raw||t).reduce((o,r,a)=>o+r+(n[a]||""),"");return ut[l]=ut[l]||Pl(l)}function Pl(t){if(at.sheet){const n=new CSSStyleSheet;return n.replaceSync(t),n}else{const n=document.createElement("style");return n.textContent=t,n}}const Ol=st("host",{style:"display: contents"}),Ve=Q("atomico/context"),Al=(t,n)=>{const l=oe();$l(()=>Qe(l.current,"ConnectContext",o=>{t===o.detail.id&&(o.stopPropagation(),o.detail.connect(n))}),[t])},jl=t=>{const n=K("ConnectContext",{bubbles:!0,composed:!0}),l=()=>{let a;return n({id:t,connect(s){a=s}}),a},[o,r]=Ee(l);return re(()=>{o||(t[Ve]||(t[Ve]=customElements.whenDefined(new t().localName)),t[Ve].then(()=>r(l)))},[t]),o},Ll=t=>{const n=jl(t),l=Xe();return re(()=>{if(n)return Qe(n,"UpdatedValue",l)},[n]),(n||t).value},Fl=t=>{const n=ae(()=>(Al(n,oe().current),Ol),{props:{value:{type:Object,event:{type:"UpdatedValue"},value:()=>t}}});return n.value=t,n},z=(t,n,l)=>(n==null?n={key:l}:n.key=l,st(t,n)),ie=z,mt=pe`*,*:before,*:after{box-sizing:border-box}button{padding:0;touch-action:manipulation;cursor:pointer;user-select:none}`,ft=pe`.vh{position:absolute;transform:scale(0)}`;function Ne(){const t=new Date;return new P(t.getFullYear(),t.getMonth()+1,t.getDate())}function De(t,n=0){const l=R(t),o=l.getUTCDay(),r=(o<n?7:0)+o-n;return l.setUTCDate(l.getUTCDate()-r),P.from(l)}function pt(t,n=0){return De(t,n).add({days:6})}function ht(t){return P.from(new Date(Date.UTC(t.year,t.month,0)))}function he(t,n,l){return n&&P.compare(t,n)<0?n:l&&P.compare(t,l)>0?l:t}const _l={days:1};function Ul(t,n=0){let l=De(t.toPlainDate(),n);const o=pt(ht(t),n),r=[];for(;P.compare(l,o)<0;){const a=[];for(let s=0;s<7;s++)a.push(l),l=l.add(_l);r.push(a)}return r}function R(t){return new Date(Date.UTC(t.year,t.month-1,t.day??1))}const Rl=/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[0-1])$/,Te=(t,n)=>t.toString().padStart(n,"0");class P{constructor(n,l,o){this.year=n,this.month=l,this.day=o}add(n){const l=R(this);if("days"in n)return l.setUTCDate(this.day+n.days),P.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=P.from(R({year:o,month:r,day:1}));return he(P.from(l),a,ht(a))}toString(){return`${Te(this.year,4)}-${Te(this.month,2)}-${Te(this.day,2)}`}toPlainYearMonth(){return new ge(this.year,this.month)}equals(n){return P.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(Rl);if(!l)throw new TypeError(n);const[,o,r,a]=l;return new P(parseInt(o,10),parseInt(r,10),parseInt(a,10))}return new P(n.getUTCFullYear(),n.getUTCMonth()+1,n.getUTCDate())}}class ge{constructor(n,l){this.year=n,this.month=l}add(n){const l=R(this),o=(n.months??0)+(n.years??0)*12;return l.setUTCMonth(l.getUTCMonth()+o),new ge(l.getUTCFullYear(),l.getUTCMonth()+1)}equals(n){return this.year===n.year&&this.month===n.month}toPlainDate(){return new P(this.year,this.month,1)}}function ye(t,n){if(n)try{return t.from(n)}catch{}}function Y(t){const[n,l]=Be(t);return[W(()=>ye(P,n),[n]),o=>l(o==null?void 0:o.toString())]}function ql(t){const[n="",l]=Be(t);return[W(()=>{const[o,r]=n.split("/"),a=ye(P,o),s=ye(P,r);return a&&s?[a,s]:[]},[n]),o=>l(`${o[0]}/${o[1]}`)]}function Hl(t){const[n="",l]=Be(t);return[W(()=>{const o=[];for(const r of n.trim().split(/\s+/)){const a=ye(P,r);a&&o.push(a)}return o},[n]),o=>l(o.join(" "))]}function ce(t,n){return W(()=>new Intl.DateTimeFormat(n,{timeZone:"UTC",...t}),[n,t])}function gt(t,n,l){const o=ce(t,l);return W(()=>{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 yt=(t,n,l)=>he(t,n,l)===t,bt=t=>t.target.matches(":dir(ltr)"),Wl={month:"long",day:"numeric"},Kl={month:"long"},Yl={weekday:"long"},Me={bubbles:!0};function Jl({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:x}=n,f=c??Ne(),d=gt(Yl,o,u),g=W(()=>({weekday:x}),[x]),y=gt(g,o,u),b=ce(Wl,u),k=ce(Kl,u),T=W(()=>i.start.add({months:l}),[i,l]),A=W(()=>Ul(T,o),[T,o]),F=K("focusday",Me),h=K("selectday",Me),B=K("hoverday",Me);function v($){F(he($,a,s))}function N($){let E;switch($.key){case"ArrowRight":E=m.add({days:bt($)?1:-1});break;case"ArrowLeft":E=m.add({days:bt($)?-1:1});break;case"ArrowDown":E=m.add({days:7});break;case"ArrowUp":E=m.add({days:-7});break;case"PageUp":E=m.add($.shiftKey?{years:-1}:{months:-1});break;case"PageDown":E=m.add($.shiftKey?{years:1}:{months:1});break;case"Home":E=De(m,o);break;case"End":E=pt(m,o);break;default:return}v(E),$.preventDefault()}function p($){var D,I;const E=T.equals($);if(!n.showOutsideDays&&!E)return;const M=$.equals(m),L=$.equals(f),j=R($),H=r==null?void 0:r(j),w=!yt($,a,s);let C="",V;if(n.type==="range"){const[O,U]=n.value,be=O==null?void 0:O.equals($),ke=U==null?void 0:U.equals($);V=O&&U&&yt($,O,U),C=`${be?"range-start":""} ${ke?"range-end":""} ${V&&!be&&!ke?"range-inner":""}`}else n.type==="multi"?V=n.value.some(O=>O.equals($)):V=(D=n.value)==null?void 0:D.equals($);return{part:`${`button day day-${j.getDay()} ${E?V?"selected":"":"outside"} ${H?"disallowed":""} ${L?"today":""} ${((I=n.getDayParts)==null?void 0:I.call(n,j))??""}`} ${C}`,tabindex:E&&M?0:-1,disabled:w,"aria-disabled":H?"true":void 0,"aria-pressed":E&&V,"aria-current":L?"date":void 0,"aria-label":b.format(j),onkeydown:N,onclick(){H||h($),v($)},onmouseover(){!H&&!w&&B($)}}}return{weeks:A,yearMonth:T,daysLong:d,daysVisible:y,formatter:k,getDayProps:p}}const ze=Ne(),Ie=Fl({type:"date",firstDayOfWeek:1,focusedDate:ze,page:{start:ze.toPlainYearMonth(),end:ze.toPlainYearMonth()}});customElements.define("calendar-ctx",Ie);const Xl=(t,n)=>(n+t)%7,kt=ae(t=>{const n=Ll(Ie),l=cl(),o=Jl({props:t,context:n});function r(){var a;(a=l.current.querySelector("button[tabindex='0']"))==null||a.focus()}return ie("host",{shadowDom:!0,focus:r,children:[z("div",{id:"h",part:"heading",children:o.formatter.format(R(o.yearMonth))}),ie("table",{ref:l,"aria-labelledby":"h",part:"table",children:[z("thead",{children:z("tr",{part:"tr head",children:o.daysLong.map((a,s)=>ie("th",{part:`th day day-${Xl(n.firstDayOfWeek,s)}`,scope:"col",children:[z("span",{class:"vh",children:a}),z("span",{"aria-hidden":"true",children:o.daysVisible[s]})]}))})}),z("tbody",{children:o.weeks.map((a,s)=>z("tr",{part:"tr week",children:a.map((c,i)=>{const u=o.getDayProps(c);return z("td",{part:"td",children:u&&z("button",{...u,children:c.day})},i)})},s))})]})]})},{props:{offset:{type:Number,value:0}},styles:[mt,ft,pe`: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",kt);function wt(t){return z("button",{part:`button ${t.name} ${t.onclick?"":"disabled"}`,onclick:t.onclick,"aria-disabled":t.onclick?null:"true",children:z("slot",{name:t.name,children:t.children})})}function Pe(t){const n=R(t.page.start),l=R(t.page.end);return ie("div",{role:"group","aria-labelledby":"h",part:"container",children:[z("div",{id:"h",class:"vh","aria-live":"polite","aria-atomic":"true",children:t.formatVerbose.formatRange(n,l)}),ie("div",{part:"header",children:[z(wt,{name:"previous",onclick:t.previous,children:"Previous"}),z("slot",{part:"heading",name:"heading",children:z("div",{"aria-hidden":"true",children:t.format.formatRange(n,l)})}),z(wt,{name:"next",onclick:t.next,children:"Next"})]}),z(Ie,{value:t,onselectday:t.onSelect,onfocusday:t.onFocus,onhoverday:t.onHover,children:z("slot",{})})]})}const Oe={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"}},Ae=[mt,ft,pe`: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}`],Gl={year:"numeric"},Zl={year:"numeric",month:"long"};function je(t,n){return(n.year-t.year)*12+n.month-t.month}const xt=(t,n)=>(t=n===12?new ge(t.year,1):t,{start:t,end:t.add({months:n-1})});function Ql({pageBy:t,focusedDate:n,months:l,max:o,min:r,goto:a}){const s=t==="single"?1:l,[c,i]=Ee(()=>xt(n.toPlainYearMonth(),l)),u=x=>i(xt(c.start.add({months:x}),l)),m=x=>{const f=je(c.start,x.toPlainYearMonth());return f>=0&&f<l};return re(()=>{if(m(n))return;const x=je(n.toPlainYearMonth(),c.start);a(n.add({months:x}))},[c.start]),re(()=>{if(m(n))return;const x=je(c.start,n.toPlainYearMonth());u(x===-1?-s:x===l?s:Math.floor(x/l)*l)},[n,s,l]),{page:c,previous:!r||!m(r)?()=>u(-s):void 0,next:!o||!m(o)?()=>u(s):void 0}}function Le({months:t,pageBy:n,locale:l,focusedDate:o,setFocusedDate:r}){const[a]=Y("min"),[s]=Y("max"),[c]=Y("today"),i=K("focusday"),u=K("change"),m=W(()=>he(o??c??Ne(),a,s),[o,c,a,s]);function x(k){r(k),i(R(k))}const{next:f,previous:d,page:g}=Ql({pageBy:n,focusedDate:m,months:t,min:a,max:s,goto:x}),y=oe();function b(k){const T=(k==null?void 0:k.target)??"day";T==="day"?y.current.querySelectorAll("calendar-month").forEach(A=>A.focus(k)):y.current.shadowRoot.querySelector(`[part~='${T}']`).focus(k)}return{format:ce(Gl,l),formatVerbose:ce(Zl,l),page:g,focusedDate:m,dispatch:u,onFocus(k){k.stopPropagation(),x(k.detail),setTimeout(b)},min:a,max:s,today:c,next:f,previous:d,focus:b}}const Et=ae(t=>{const[n,l]=Y("value"),[o=n,r]=Y("focusedDate"),a=Le({...t,focusedDate:o,setFocusedDate:r});function s(c){l(c.detail),a.dispatch()}return z("host",{shadowDom:!0,focus:a.focus,children:z(Pe,{...t,...a,type:"date",value:n,onSelect:s})})},{props:Oe,styles:Ae});customElements.define("calendar-date",Et);const Bt=(t,n)=>P.compare(t,n)<0?[t,n]:[n,t],$t=ae(t=>{const[n,l]=ql("value"),[o=n[0],r]=Y("focusedDate"),a=Le({...t,focusedDate:o,setFocusedDate:r}),s=K("rangestart"),c=K("rangeend"),[i,u]=Y("tentative"),[m,x]=Ee();re(()=>x(void 0),[i]);function f(b){a.onFocus(b),d(b)}function d(b){b.stopPropagation(),i&&x(b.detail)}function g(b){const k=b.detail;b.stopPropagation(),i?(l(Bt(i,k)),u(void 0),c(R(k)),a.dispatch()):(u(k),s(R(k)))}const y=i?Bt(i,m??i):n;return z("host",{shadowDom:!0,focus:a.focus,children:z(Pe,{...t,...a,type:"range",value:y,onFocus:f,onHover:d,onSelect:g})})},{props:{...Oe,tentative:{type:String,value:""}},styles:Ae});customElements.define("calendar-range",$t);const Ct=ae(t=>{const[n,l]=Hl("value"),[o=n[0],r]=Y("focusedDate"),a=Le({...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 z("host",{shadowDom:!0,focus:a.focus,children:z(Pe,{...t,...a,type:"multi",value:n,onSelect:s})})},{props:Oe,styles:Ae});customElements.define("calendar-multi",Ct);const ea=Object.freeze(Object.defineProperty({__proto__:null,CalendarDate:Et,CalendarMonth:kt,CalendarMulti:Ct,CalendarRange:$t},Symbol.toStringTag,{value:"Module"}));S.Accordion=Zt,S.AdvancedSearch=In,S.Avatar=tn,S.Badge=nn,S.ButtonComponent=Vt,S.Card=dn,S.Carousel=gn,S.CarouselItem=yn,S.CategoryNavigation=Jo,S.DatetimePicker=qe,S.Dropdown=Tt,S.FilterableSelect=yo,S.Footer=Fo,S.Hero=Wo,S.InputField=We,S.Loader=vo,S.Modal=It,S.NavigationBar=el,S.Rating=Xn,S.Selector=He,S.Swap=At,S.Tab=al,S.TagInput=to,S.ThemeController=Kt,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})}));
|