manolis-ui 0.19.1 → 0.19.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -991,6 +991,22 @@ declare interface Toast_2 {
991
991
  duration: number;
992
992
  }
993
993
 
994
+ export declare function ToastComposable(): {
995
+ toasts: Readonly<Ref<readonly {
996
+ readonly id: string;
997
+ readonly message: string;
998
+ readonly type: ToastType;
999
+ readonly duration: number;
1000
+ }[], readonly {
1001
+ readonly id: string;
1002
+ readonly message: string;
1003
+ readonly type: ToastType;
1004
+ readonly duration: number;
1005
+ }[]>>;
1006
+ addToast: (message: string, type?: ToastType, duration?: number) => void;
1007
+ removeToast: (id: string) => void;
1008
+ };
1009
+
994
1010
  export declare const ToastNotification: DefineComponent<ExtractPropTypes< {
995
1011
  toast: {
996
1012
  type: PropType<Toast_2>;
@@ -1 +1 @@
1
- .cursor-grabbing .carousel-item[data-v-d9ad9601]{cursor:grabbing!important;pointer-events:none}.carousel-vertical[data-v-d9ad9601]{overflow:hidden}.pointer-events-none[data-v-d9ad9601]{pointer-events:none}.carousel[data-v-d9ad9601]{overflow:hidden;-ms-overflow-style:none;scrollbar-width:none}.carousel[data-v-d9ad9601]::-webkit-scrollbar{display:none}.fade-enter-active[data-v-d9ad9601],.fade-leave-active[data-v-d9ad9601]{transition:opacity .3s ease}.fade-enter-from[data-v-d9ad9601],.fade-leave-to[data-v-d9ad9601]{opacity:0}.fade-leave-active[data-v-d9ad9601]{pointer-events: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)}.alert[data-v-08105eee]{position:relative;padding-bottom:.75rem}.progress[data-v-08105eee]{height:4px;opacity:.8;transition:value .05s linear}.toast-fade-enter-active[data-v-f910f41f],.toast-fade-leave-active[data-v-f910f41f]{transition:all .5s ease}.toast-fade-enter-from[data-v-f910f41f],.toast-fade-leave-to[data-v-f910f41f]{opacity:0;transform:translate(30px)}.toast-start .toast-fade-enter-from[data-v-f910f41f],.toast-start .toast-fade-leave-to[data-v-f910f41f]{transform:translate(-30px)}.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}
1
+ .cursor-grabbing .carousel-item[data-v-d9ad9601]{cursor:grabbing!important;pointer-events:none}.carousel-vertical[data-v-d9ad9601]{overflow:hidden}.pointer-events-none[data-v-d9ad9601]{pointer-events:none}.carousel[data-v-d9ad9601]{overflow:hidden;-ms-overflow-style:none;scrollbar-width:none}.carousel[data-v-d9ad9601]::-webkit-scrollbar{display:none}.fade-enter-active[data-v-d9ad9601],.fade-leave-active[data-v-d9ad9601]{transition:opacity .3s ease}.fade-enter-from[data-v-d9ad9601],.fade-leave-to[data-v-d9ad9601]{opacity:0}.fade-leave-active[data-v-d9ad9601]{pointer-events: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)}.alert[data-v-bc0c6917]{position:relative;padding-bottom:.75rem}.progress[data-v-bc0c6917]{height:4px;opacity:.8;transition:value .05s linear}.toast-fade-enter-active[data-v-e10fa884],.toast-fade-leave-active[data-v-e10fa884]{transition:all .5s ease}.toast-fade-enter-from[data-v-e10fa884],.toast-fade-leave-to[data-v-e10fa884]{opacity:0;transform:translate(30px)}.toast-start .toast-fade-enter-from[data-v-e10fa884],.toast-start .toast-fade-leave-to[data-v-e10fa884]{transform:translate(-30px)}.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}
@@ -1,4 +1,4 @@
1
- import { defineComponent as A, computed as K, createElementBlock as i, openBlock as o, normalizeClass as S, createCommentVNode as z, renderSlot as O, createTextVNode as Ae, createElementVNode as a, Fragment as H, renderList as G, toDisplayString as V, ref as h, watch as F, h as Ve, onMounted as me, withDirectives as Ie, createVNode as ue, isRef as We, vModelCheckbox as Ke, unref as le, provide as Xe, onUnmounted as Ee, normalizeStyle as xe, Transition as Pe, withCtx as we, inject as Ye, useId as Ge, defineAsyncComponent as ze, nextTick as ge, onBeforeUnmount as _e, withModifiers as re, createBlock as ce, resolveDynamicComponent as Be, mergeProps as Oe, withKeys as ye, resolveComponent as De, vModelText as Ne, useSlots as Je, Comment as Ze, vShow as Qe, readonly as et, TransitionGroup as tt } from "vue";
1
+ import { defineComponent as A, computed as K, createElementBlock as i, openBlock as o, normalizeClass as S, createCommentVNode as z, renderSlot as O, createTextVNode as Ae, createElementVNode as a, Fragment as H, renderList as G, toDisplayString as V, ref as h, watch as F, h as Ve, onMounted as me, withDirectives as Ie, createVNode as ue, isRef as We, vModelCheckbox as Ke, unref as le, provide as Xe, onUnmounted as Ee, normalizeStyle as xe, Transition as Pe, withCtx as we, inject as Ye, useId as Ge, defineAsyncComponent as ze, nextTick as ge, onBeforeUnmount as _e, withModifiers as re, createBlock as ce, resolveDynamicComponent as Be, mergeProps as Oe, withKeys as be, resolveComponent as De, vModelText as Ne, useSlots as Je, Comment as Ze, vShow as Qe, readonly as et, TransitionGroup as tt } from "vue";
2
2
  const lt = ["disabled"], at = {
3
3
  key: 0,
4
4
  class: "loading loading-spinner"
@@ -323,7 +323,7 @@ const pt = ke("SunIcon", [
323
323
  }), F(l, (t) => {
324
324
  typeof window < "u" && window.localStorage.setItem(e, JSON.stringify(t));
325
325
  }), l;
326
- }, gt = { class: "swap-rotate swap" }, yt = ["true-value", "false-value"], La = /* @__PURE__ */ A({
326
+ }, gt = { class: "swap-rotate swap" }, bt = ["true-value", "false-value"], La = /* @__PURE__ */ A({
327
327
  __name: "theme-controller",
328
328
  props: {
329
329
  lightTheme: { default: "light" },
@@ -343,14 +343,14 @@ const pt = ke("SunIcon", [
343
343
  "onUpdate:modelValue": n[0] || (n[0] = (r) => We(l) ? l.value = r : null),
344
344
  "true-value": c.lightTheme,
345
345
  "false-value": c.darkTheme
346
- }, null, 8, yt), [
346
+ }, null, 8, bt), [
347
347
  [Ke, le(l)]
348
348
  ]),
349
349
  ue(le(pt), { class: "swap-off fill-current" }),
350
350
  ue(le(mt), { class: "swap-on fill-current" })
351
351
  ]));
352
352
  }
353
- }), bt = {
353
+ }), yt = {
354
354
  key: 0,
355
355
  class: "join join-vertical w-full"
356
356
  }, wt = ["name"], xt = {
@@ -370,7 +370,7 @@ const pt = ke("SunIcon", [
370
370
  },
371
371
  setup(e) {
372
372
  const c = e;
373
- return (l, t) => c.joinItems ? (o(), i("div", bt, [
373
+ return (l, t) => c.joinItems ? (o(), i("div", yt, [
374
374
  (o(!0), i(H, null, G(c.items, (s, n) => (o(), i("div", {
375
375
  class: S(["collapse border border-base-300 join-item", [e.icon ? `collapse-${e.icon}` : ""]]),
376
376
  key: n
@@ -616,14 +616,14 @@ const pt = ke("SunIcon", [
616
616
  }
617
617
  },
618
618
  setup(e, { expose: c }) {
619
- const l = e, t = h(l.initialSlide), s = h(null), n = h(null), r = h(0), m = h(!1), u = h(0), g = h(0), I = h(!1), P = h(0), k = h(0), d = h(0), E = h(0), T = h(0), W = h(0), q = h(0), X = h(null), ee = h(null), ae = h(0), f = h(null), b = K(() => {
619
+ const l = e, t = h(l.initialSlide), s = h(null), n = h(null), r = h(0), m = h(!1), u = h(0), g = h(0), I = h(!1), P = h(0), k = h(0), d = h(0), E = h(0), T = h(0), W = h(0), q = h(0), X = h(null), ee = h(null), ae = h(0), f = h(null), y = K(() => {
620
620
  const C = Object.keys(l.breakpoints).map(Number).sort((L, U) => L - U);
621
621
  let $ = {};
622
622
  for (const L of C)
623
623
  g.value >= L && ($ = { ...$, ...l.breakpoints[L] });
624
624
  return $;
625
- }), y = K(() => b.value.slidesPerView ?? l.slidesPerView), M = K(() => b.value.gap ?? l.gap), v = K(() => {
626
- const C = l.sliderOrientation === "horizontal", L = `calc((100% - ${y.value > 1 ? (y.value - 1) * M.value : 0}px) / ${y.value})`;
625
+ }), b = K(() => y.value.slidesPerView ?? l.slidesPerView), M = K(() => y.value.gap ?? l.gap), v = K(() => {
626
+ const C = l.sliderOrientation === "horizontal", L = `calc((100% - ${b.value > 1 ? (b.value - 1) * M.value : 0}px) / ${b.value})`;
627
627
  return C ? {
628
628
  width: L
629
629
  } : { height: L };
@@ -632,36 +632,36 @@ const pt = ke("SunIcon", [
632
632
  const _ = () => {
633
633
  n.value ? u.value = n.value.children.length : u.value = 0;
634
634
  }, x = () => {
635
- if (!s.value || y.value <= 0) return 0;
636
- const $ = l.sliderOrientation === "horizontal" ? s.value.offsetWidth : s.value.offsetHeight, L = (y.value - 1) * M.value;
637
- return $ <= 0 ? 0 : ($ - L) / y.value;
635
+ if (!s.value || b.value <= 0) return 0;
636
+ const $ = l.sliderOrientation === "horizontal" ? s.value.offsetWidth : s.value.offsetHeight, L = (b.value - 1) * M.value;
637
+ return $ <= 0 ? 0 : ($ - L) / b.value;
638
638
  }, j = K(() => {
639
- if (!s.value || u.value === 0 || y.value === 0) return 0;
639
+ if (!s.value || u.value === 0 || b.value === 0) return 0;
640
640
  const $ = l.sliderOrientation === "horizontal" ? s.value.offsetWidth : s.value.offsetHeight, L = x(), U = u.value * (L + M.value) - M.value;
641
641
  return Math.max(0, U - $);
642
642
  }), R = async (C, $ = !1) => {
643
- if (!s.value || y.value <= 0 || m.value || (_(), u.value === 0)) return;
643
+ if (!s.value || b.value <= 0 || m.value || (_(), u.value === 0)) return;
644
644
  const L = x();
645
645
  if (L <= 0) return;
646
646
  const U = L + M.value, Q = j.value;
647
647
  let Y = C;
648
- l.infinite ? Y = (C % u.value + u.value) % u.value : Y = Math.max(0, Math.min(C, u.value - y.value));
648
+ l.infinite ? Y = (C % u.value + u.value) % u.value : Y = Math.max(0, Math.min(C, u.value - b.value));
649
649
  const se = Y * U, J = l.infinite ? se : Math.max(0, Math.min(se, Q));
650
650
  if ($ || l.slideDuration === 0) {
651
651
  n.value && (n.value.style.transitionDuration = "0ms", n.value.style.transform = l.sliderOrientation === "horizontal" ? `translate3d(${-J}px, 0, 0)` : `translate3d(0, ${-J}px, 0)`), r.value = J, t.value = Y, m.value = !1, l.autoplay && fe();
652
652
  return;
653
653
  }
654
654
  m.value = !0;
655
- const ie = r.value, oe = J - ie, be = performance.now(), he = ($e) => {
655
+ const ie = r.value, oe = J - ie, ye = performance.now(), he = ($e) => {
656
656
  if (!n.value) return;
657
- const He = $e - be, Le = Math.min(1, He / l.slideDuration), Ue = 1 - Math.pow(1 - Le, 3), Te = ie + oe * Ue;
657
+ const He = $e - ye, Le = Math.min(1, He / l.slideDuration), Ue = 1 - Math.pow(1 - Le, 3), Te = ie + oe * Ue;
658
658
  n.value.style.transform = l.sliderOrientation === "horizontal" ? `translate3d(${-Te}px, 0, 0)` : `translate3d(0, ${-Te}px, 0)`, r.value = Te, Le < 1 ? X.value = requestAnimationFrame(he) : (n.value.style.transform = l.sliderOrientation === "horizontal" ? `translate3d(${-J}px, 0, 0)` : `translate3d(0, ${-J}px, 0)`, r.value = J, t.value = Y, m.value = !1, l.autoplay && fe(), X.value = null);
659
659
  };
660
660
  X.value = requestAnimationFrame(he);
661
661
  }, te = () => {
662
- l.infinite && t.value >= u.value - y.value ? R(0) : R(t.value + 1);
662
+ l.infinite && t.value >= u.value - b.value ? R(0) : R(t.value + 1);
663
663
  }, ve = () => {
664
- l.infinite && t.value <= 0 ? R(u.value - y.value) : R(t.value - 1);
664
+ l.infinite && t.value <= 0 ? R(u.value - b.value) : R(t.value - 1);
665
665
  }, p = (C) => {
666
666
  R(C);
667
667
  }, w = (C) => {
@@ -671,16 +671,16 @@ const pt = ke("SunIcon", [
671
671
  }, B = (C) => {
672
672
  const $ = "touches" in C ? C.touches[0] : C;
673
673
  if (!f.value) {
674
- const be = Math.abs($.clientX - P.value), he = Math.abs($.clientY - k.value), $e = 5;
675
- if (be > $e || he > $e)
674
+ const ye = Math.abs($.clientX - P.value), he = Math.abs($.clientY - k.value), $e = 5;
675
+ if (ye > $e || he > $e)
676
676
  if (l.sliderOrientation === "horizontal")
677
- if (be > he)
677
+ if (ye > he)
678
678
  f.value = "horizontal", I.value = !0;
679
679
  else {
680
680
  D();
681
681
  return;
682
682
  }
683
- else if (he > be)
683
+ else if (he > ye)
684
684
  f.value = "vertical", I.value = !0;
685
685
  else {
686
686
  D();
@@ -713,11 +713,11 @@ const pt = ke("SunIcon", [
713
713
  R(0);
714
714
  return;
715
715
  } else if ($ > j.value) {
716
- const J = Math.max(0, u.value - Math.floor(y.value));
716
+ const J = Math.max(0, u.value - Math.floor(b.value));
717
717
  R(J);
718
718
  return;
719
719
  }
720
- const Q = Math.max(0, u.value - Math.floor(y.value)), Y = 100, se = Math.round(L / U);
720
+ const Q = Math.max(0, u.value - Math.floor(b.value)), Y = 100, se = Math.round(L / U);
721
721
  if (Math.abs(E.value) > Y) {
722
722
  const J = -Math.sign(E.value), ie = se + J;
723
723
  R(Math.max(0, Math.min(Q, ie)));
@@ -739,10 +739,10 @@ const pt = ke("SunIcon", [
739
739
  const { width: $ } = C[0].contentRect;
740
740
  Math.abs($ - g.value) > 1 && (g.value = $);
741
741
  }, Fe = () => {
742
- if (!s.value || y.value <= 0 || (_(), u.value === 0)) return;
742
+ if (!s.value || b.value <= 0 || (_(), u.value === 0)) return;
743
743
  const C = x();
744
744
  if (C <= 0) return;
745
- const $ = Math.max(0, u.value - y.value), L = Math.min(Math.max(0, l.initialSlide), $), U = L * (C + M.value), Q = j.value, Y = Math.max(0, Math.min(U, Q));
745
+ const $ = Math.max(0, u.value - b.value), L = Math.min(Math.max(0, l.initialSlide), $), U = L * (C + M.value), Q = j.value, Y = Math.max(0, Math.min(U, Q));
746
746
  n.value && (n.value.style.transitionDuration = "0ms", n.value.style.transform = l.sliderOrientation === "horizontal" ? `translate3d(${-Y}px, 0, 0)` : `translate3d(0, ${-Y}px, 0)`), r.value = Y, t.value = L;
747
747
  };
748
748
  let je = !1;
@@ -759,11 +759,11 @@ const pt = ke("SunIcon", [
759
759
  C ? Z() : ne();
760
760
  }), F(() => l.autoplayInterval, fe), F(() => l.initialSlide, (C) => {
761
761
  requestAnimationFrame(() => R(C, !0));
762
- }), F([y, M], () => {
762
+ }), F([b, M], () => {
763
763
  requestAnimationFrame(() => {
764
764
  requestAnimationFrame(() => {
765
765
  if (_(), u.value === 0) return;
766
- const C = Math.max(0, u.value - y.value), $ = Math.min(t.value, C);
766
+ const C = Math.max(0, u.value - b.value), $ = Math.min(t.value, C);
767
767
  R($, !0);
768
768
  });
769
769
  });
@@ -809,7 +809,7 @@ const pt = ke("SunIcon", [
809
809
  $[2] || ($[2] = a("div", { class: "flex-grow" }, null, -1)),
810
810
  ue(Pe, { name: "fade" }, {
811
811
  default: we(() => [
812
- l.infinite || t.value < u.value - y.value ? (o(), i("div", At, [
812
+ l.infinite || t.value < u.value - b.value ? (o(), i("div", At, [
813
813
  a("div", {
814
814
  onClick: te,
815
815
  role: "button",
@@ -894,23 +894,23 @@ const pt = ke("SunIcon", [
894
894
  top: "0px",
895
895
  transform: "translateX(0%)"
896
896
  }), I = h(null), P = (f) => {
897
- var b;
897
+ var y;
898
898
  if (f.value === void 0 || f.value === null || f.value === "")
899
899
  return "";
900
900
  switch (f.type) {
901
901
  case "datetime":
902
902
  if (typeof f.value == "string")
903
903
  try {
904
- const y = new Date(f.value);
905
- if (!isNaN(y.getTime()))
906
- return y.toLocaleString();
904
+ const b = new Date(f.value);
905
+ if (!isNaN(b.getTime()))
906
+ return b.toLocaleString();
907
907
  } catch {
908
908
  }
909
909
  else if (f.range && typeof f.value == "object" && f.value !== null && "start" in f.value && "end" in f.value)
910
910
  try {
911
- const y = new Date(f.value.start), M = new Date(f.value.end);
912
- if (!isNaN(y.getTime()) && !isNaN(M.getTime()))
913
- return `${y.toLocaleDateString()} - ${M.toLocaleDateString()}`;
911
+ const b = new Date(f.value.start), M = new Date(f.value.end);
912
+ if (!isNaN(b.getTime()) && !isNaN(M.getTime()))
913
+ return `${b.toLocaleDateString()} - ${M.toLocaleDateString()}`;
914
914
  } catch {
915
915
  }
916
916
  break;
@@ -924,12 +924,12 @@ const pt = ke("SunIcon", [
924
924
  break;
925
925
  case "standard-select":
926
926
  case "custom-select":
927
- if ((b = f.props) != null && b.options && Array.isArray(f.props.options)) {
928
- const y = f.props.options.find(
927
+ if ((y = f.props) != null && y.options && Array.isArray(f.props.options)) {
928
+ const b = f.props.options.find(
929
929
  (M) => M.value === f.value
930
930
  );
931
- if (y)
932
- return y.text;
931
+ if (b)
932
+ return b.text;
933
933
  }
934
934
  return String(f.value);
935
935
  case "custom-text":
@@ -941,21 +941,21 @@ const pt = ke("SunIcon", [
941
941
  };
942
942
  function k(f) {
943
943
  var v, _;
944
- const b = (v = n.value) == null ? void 0 : v.name;
945
- if (!b) {
944
+ const y = (v = n.value) == null ? void 0 : v.name;
945
+ if (!y) {
946
946
  console.warn("componentValueUpdated called but no active tab.");
947
947
  return;
948
948
  }
949
- const y = (_ = l.searchOptions.find(
949
+ const b = (_ = l.searchOptions.find(
950
950
  (x) => (x == null ? void 0 : x.category) === l.currentCategory
951
- )) == null ? void 0 : _.tabs, M = y == null ? void 0 : y.find(
952
- (x) => x.name === b
951
+ )) == null ? void 0 : _.tabs, M = b == null ? void 0 : b.find(
952
+ (x) => x.name === y
953
953
  );
954
954
  M ? (M.value = f, t("update:search-data", {
955
955
  tab: M.name,
956
956
  data: f
957
957
  })) : console.error(
958
- `Tab with name "${b}" not found in current category.`
958
+ `Tab with name "${y}" not found in current category.`
959
959
  );
960
960
  }
961
961
  function d(f) {
@@ -966,8 +966,8 @@ const pt = ke("SunIcon", [
966
966
  }
967
967
  async function T(f) {
968
968
  var M;
969
- const b = document.getElementById(`advancedSearchMobile-${s}`), y = b && b.contains(f.target);
970
- ((M = n.value) == null ? void 0 : M.displayMode) === "popup" && I.value && !I.value.contains(f.target) && !y && (await ge(), n.value = null);
969
+ const y = document.getElementById(`advancedSearchMobile-${s}`), b = y && y.contains(f.target);
970
+ ((M = n.value) == null ? void 0 : M.displayMode) === "popup" && I.value && !I.value.contains(f.target) && !b && (await ge(), n.value = null);
971
971
  }
972
972
  async function W() {
973
973
  if (typeof window < "u" && window.innerWidth <= 768) {
@@ -980,15 +980,15 @@ const pt = ke("SunIcon", [
980
980
  }
981
981
  }
982
982
  async function q(f) {
983
- var y, M, v;
983
+ var b, M, v;
984
984
  if (typeof window < "u" && window.innerWidth <= 768) {
985
985
  W();
986
986
  return;
987
987
  }
988
- const b = f.displayMode ?? "popup";
989
- if (((y = n.value) == null ? void 0 : y.name) === f.name && ((M = n.value) == null ? void 0 : M.displayMode) === b)
988
+ const y = f.displayMode ?? "popup";
989
+ if (((b = n.value) == null ? void 0 : b.name) === f.name && ((M = n.value) == null ? void 0 : M.displayMode) === y)
990
990
  n.value = null;
991
- else if (n.value = { ...f, displayMode: b }, await ge(), ((v = n.value) == null ? void 0 : v.displayMode) === "popup") {
991
+ else if (n.value = { ...f, displayMode: y }, await ge(), ((v = n.value) == null ? void 0 : v.displayMode) === "popup") {
992
992
  const _ = u.value[f.name];
993
993
  if (_ && I.value) {
994
994
  const x = _.getBoundingClientRect(), j = I.value.getBoundingClientRect(), R = x.bottom - j.top, te = x.left + x.width / 2 - j.left;
@@ -1007,10 +1007,10 @@ const pt = ke("SunIcon", [
1007
1007
  }
1008
1008
  }
1009
1009
  const X = (f) => {
1010
- const b = f.relatedTarget;
1010
+ const y = f.relatedTarget;
1011
1011
  setTimeout(() => {
1012
- var y;
1013
- ((y = n.value) == null ? void 0 : y.displayMode) === "inline" && I.value && (!b || !I.value.contains(b)) ? (console.log("Blur detected outside container, closing inline view."), n.value = null) : console.log(
1012
+ var b;
1013
+ ((b = n.value) == null ? void 0 : b.displayMode) === "inline" && I.value && (!y || !I.value.contains(y)) ? (console.log("Blur detected outside container, closing inline view."), n.value = null) : console.log(
1014
1014
  "Blur detected, but staying within container or not an inline tab."
1015
1015
  );
1016
1016
  }, 50);
@@ -1018,11 +1018,11 @@ const pt = ke("SunIcon", [
1018
1018
  console.log("Enter key pressed on inline component, closing inline view."), n.value = null;
1019
1019
  };
1020
1020
  F(r, (f) => {
1021
- var b;
1021
+ var y;
1022
1022
  console.log(
1023
1023
  "advanced-search: inlineComponentRef changed. New Value:",
1024
1024
  f
1025
- ), console.log("advanced-search: activeTab.value:", n.value), f && ((b = n.value) == null ? void 0 : b.displayMode) === "inline" ? (console.log(
1025
+ ), console.log("advanced-search: activeTab.value:", n.value), f && ((y = n.value) == null ? void 0 : y.displayMode) === "inline" ? (console.log(
1026
1026
  "advanced-search: Inline component ref is available and active tab is inline. Attempting to focus child input..."
1027
1027
  ), ge(() => {
1028
1028
  console.log(
@@ -1045,20 +1045,20 @@ const pt = ke("SunIcon", [
1045
1045
  document.removeEventListener("click", T), window.removeEventListener("resize", ae);
1046
1046
  });
1047
1047
  const ae = () => {
1048
- var f, b;
1048
+ var f, y;
1049
1049
  if (typeof window < "u") {
1050
- const y = window.innerWidth <= 768, M = n.value !== null && (n.value.displayMode === "popup" || n.value.displayMode === "inline") && window.innerWidth > 768;
1051
- !y && (((f = n.value) == null ? void 0 : f.displayMode) === "popup" || ((b = n.value) == null ? void 0 : b.displayMode) === "inline") && window.innerWidth <= 768 && (console.log("Resizing to mobile, closing active tab."), n.value = null), y && !M && n.value !== null && (console.log(
1050
+ const b = window.innerWidth <= 768, M = n.value !== null && (n.value.displayMode === "popup" || n.value.displayMode === "inline") && window.innerWidth > 768;
1051
+ !b && (((f = n.value) == null ? void 0 : f.displayMode) === "popup" || ((y = n.value) == null ? void 0 : y.displayMode) === "inline") && window.innerWidth <= 768 && (console.log("Resizing to mobile, closing active tab."), n.value = null), b && !M && n.value !== null && (console.log(
1052
1052
  "Resizing to desktop from potential mobile active state, closing active tab."
1053
1053
  ), n.value = null);
1054
1054
  const v = document.getElementById(
1055
1055
  `advancedSearchMobile-${s}`
1056
1056
  );
1057
- v != null && v.open && !y && (console.log("Modal is open on desktop, closing modal and active tab."), v.close(), n.value = null);
1057
+ v != null && v.open && !b && (console.log("Modal is open on desktop, closing modal and active tab."), v.close(), n.value = null);
1058
1058
  }
1059
1059
  };
1060
- return (f, b) => {
1061
- var y, M;
1060
+ return (f, y) => {
1061
+ var b, M;
1062
1062
  return o(), i(H, null, [
1063
1063
  a("div", {
1064
1064
  ref_key: "searchContainer",
@@ -1070,9 +1070,9 @@ const pt = ke("SunIcon", [
1070
1070
  onClick: W
1071
1071
  }, [
1072
1072
  a("div", Ut, [
1073
- (o(!0), i(H, null, G(((y = l.searchOptions.find(
1073
+ (o(!0), i(H, null, G(((b = l.searchOptions.find(
1074
1074
  (v) => v.category === l.currentCategory
1075
- )) == null ? void 0 : y.tabs) || [], (v, _) => {
1075
+ )) == null ? void 0 : b.tabs) || [], (v, _) => {
1076
1076
  var x, j, R, te, ve;
1077
1077
  return o(), i("button", {
1078
1078
  key: `${v.name}-${_}`,
@@ -1088,10 +1088,10 @@ const pt = ke("SunIcon", [
1088
1088
  ((te = n.value) == null ? void 0 : te.name) === v.name && ((ve = n.value) == null ? void 0 : ve.displayMode) === "inline" ? (o(), i("div", Kt, [
1089
1089
  (o(), ce(Be(m[n.value.type]), Oe({ ref_for: !0 }, n.value.props || {}, {
1090
1090
  modelValue: n.value.value,
1091
- onUpdated: b[0] || (b[0] = (p) => d(p)),
1092
- "onUpdate:modelValue": b[1] || (b[1] = (p) => d(p)),
1091
+ onUpdated: y[0] || (y[0] = (p) => d(p)),
1092
+ "onUpdate:modelValue": y[1] || (y[1] = (p) => d(p)),
1093
1093
  onBlur: X,
1094
- onKeydown: ye(re(ee, ["stop", "prevent"]), ["enter"]),
1094
+ onKeydown: be(re(ee, ["stop", "prevent"]), ["enter"]),
1095
1095
  ref_for: !0,
1096
1096
  ref_key: "inlineComponentRef",
1097
1097
  ref: r
@@ -1110,8 +1110,8 @@ const pt = ke("SunIcon", [
1110
1110
  }, [
1111
1111
  (o(), ce(Be(m[n.value.type]), Oe(n.value.props || {}, {
1112
1112
  modelValue: n.value.value,
1113
- onUpdated: b[2] || (b[2] = (v) => k(v)),
1114
- "onUpdate:modelValue": b[3] || (b[3] = (v) => k(v))
1113
+ onUpdated: y[2] || (y[2] = (v) => k(v)),
1114
+ "onUpdate:modelValue": y[3] || (y[3] = (v) => k(v))
1115
1115
  }), null, 16, ["modelValue"]))
1116
1116
  ], 4)) : z("", !0),
1117
1117
  a("button", {
@@ -1129,7 +1129,7 @@ const pt = ke("SunIcon", [
1129
1129
  a("div", Zt, [
1130
1130
  a("button", {
1131
1131
  title: "search",
1132
- onClick: b[4] || (b[4] = () => {
1132
+ onClick: y[4] || (y[4] = () => {
1133
1133
  })
1134
1134
  }, [
1135
1135
  ue(le(Re), {
@@ -1163,11 +1163,11 @@ const pt = ke("SunIcon", [
1163
1163
  v.value !== void 0 && v.value !== null && v.value !== "" ? (o(), i("div", nl, V(P(v)), 1)) : (o(), i("div", ol, V(v.description), 1))
1164
1164
  ]),
1165
1165
  a("div", sl, [
1166
- b[7] || (b[7] = a("br", null, null, -1)),
1166
+ y[7] || (y[7] = a("br", null, null, -1)),
1167
1167
  (o(), ce(Be(m[v.type]), Oe({ ref_for: !0 }, v.props || {}, {
1168
1168
  modelValue: v.value,
1169
- onUpdated: b[5] || (b[5] = (x) => k(x)),
1170
- "onUpdate:modelValue": b[6] || (b[6] = (x) => k(x))
1169
+ onUpdated: y[5] || (y[5] = (x) => k(x)),
1170
+ "onUpdate:modelValue": y[6] || (y[6] = (x) => k(x))
1171
1171
  }), null, 16, ["modelValue"]))
1172
1172
  ])
1173
1173
  ]))), 128)),
@@ -1187,10 +1187,10 @@ const pt = ke("SunIcon", [
1187
1187
  }), Ha = /* @__PURE__ */ de(il, [["__scopeId", "data-v-577c3624"]]), rl = { 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" }, ul = { key: 0 }, cl = { key: 1 }, dl = ["id", "onKeydown"], vl = {
1188
1188
  key: 2,
1189
1189
  class: "flex justify-center p-4"
1190
- }, fl = { 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" }, ml = { class: "join-item" }, pl = ["id", "disabled", "value"], hl = { class: "join-item" }, gl = ["id", "disabled", "value"], yl = {
1190
+ }, fl = { 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" }, ml = { class: "join-item" }, pl = ["id", "disabled", "value"], hl = { class: "join-item" }, gl = ["id", "disabled", "value"], bl = {
1191
1191
  key: 3,
1192
1192
  class: "p-4 min-w-2xs"
1193
- }, bl = ["id", "disabled", "value"], wl = {
1193
+ }, yl = ["id", "disabled", "value"], wl = {
1194
1194
  key: 4,
1195
1195
  class: "flex px-4 my-4 w-full justify-end"
1196
1196
  }, xl = /* @__PURE__ */ A({
@@ -1309,21 +1309,21 @@ const pt = ke("SunIcon", [
1309
1309
  return `${p}T${B}`;
1310
1310
  }
1311
1311
  return null;
1312
- }, b = async () => {
1312
+ }, y = async () => {
1313
1313
  ee();
1314
1314
  const p = f();
1315
1315
  s("update:modelValue", p), s("change", p);
1316
- }, y = () => {
1316
+ }, b = () => {
1317
1317
  ge(() => {
1318
- b();
1318
+ y();
1319
1319
  });
1320
1320
  }, M = (p) => {
1321
1321
  const w = p.target;
1322
- t.range ? w === I.value ? k.value.from = w.value : w === P.value && (k.value.to = w.value) : k.value.single = w.value, b();
1322
+ t.range ? w === I.value ? k.value.from = w.value : w === P.value && (k.value.to = w.value) : k.value.single = w.value, y();
1323
1323
  }, v = () => {
1324
1324
  r.value = !r.value;
1325
1325
  }, _ = () => {
1326
- b(), r.value = !1;
1326
+ y(), r.value = !1;
1327
1327
  }, x = (p) => {
1328
1328
  !t.popup || !r.value || setTimeout(() => {
1329
1329
  const w = n.value, B = p.target, D = `date-picker-${t.id}-popup`;
@@ -1332,7 +1332,7 @@ const pt = ke("SunIcon", [
1332
1332
  }, j = () => {
1333
1333
  _();
1334
1334
  }, R = () => {
1335
- b(), t.popup && (r.value = !1);
1335
+ y(), t.popup && (r.value = !1);
1336
1336
  }, te = () => {
1337
1337
  if (!l) return;
1338
1338
  const p = t.range ? u.value : m.value;
@@ -1355,11 +1355,11 @@ const pt = ke("SunIcon", [
1355
1355
  const w = ae();
1356
1356
  w && u.value.value !== w && (u.value.value = w);
1357
1357
  }
1358
- b();
1358
+ y();
1359
1359
  }, { immediate: !0, deep: !0 }), F([d, m, u], async () => {
1360
- await ge(), m.value && d.value.single && !m.value.value && (m.value.value = d.value.single), u.value && d.value.start && d.value.end && !u.value.value && (u.value.value = `${d.value.start}/${d.value.end}`), b();
1360
+ await ge(), m.value && d.value.single && !m.value.value && (m.value.value = d.value.single), u.value && d.value.start && d.value.end && !u.value.value && (u.value.value = `${d.value.start}/${d.value.end}`), y();
1361
1361
  }, { immediate: !0 }), F([g, I, P], () => {
1362
- b();
1362
+ y();
1363
1363
  }, { immediate: !0 }), (p, w) => {
1364
1364
  const B = De("calendar-month"), D = De("calendar-date"), N = De("calendar-range");
1365
1365
  return o(), i("div", {
@@ -1382,10 +1382,10 @@ const pt = ke("SunIcon", [
1382
1382
  class: S(["z-50 bg-base-100 rounded-md w-full min-w-xs overflow-hidden", { "absolute top-full left-0 mt-2 shadow-lg": t.popup, "mt-2": !t.popup }]),
1383
1383
  id: `date-picker-${t.id}-popup`,
1384
1384
  onKeydown: [
1385
- w[1] || (w[1] = ye(re(() => {
1385
+ w[1] || (w[1] = be(re(() => {
1386
1386
  }, ["prevent", "stop"]), ["tab"])),
1387
- ye(j, ["esc"]),
1388
- ye(re(R, ["prevent"]), ["enter"])
1387
+ be(j, ["esc"]),
1388
+ be(re(R, ["prevent"]), ["enter"])
1389
1389
  ]
1390
1390
  }, [
1391
1391
  !t.range && t.mode !== "time" && l ? (o(), ce(D, {
@@ -1398,7 +1398,7 @@ const pt = ke("SunIcon", [
1398
1398
  max: t.max,
1399
1399
  disabled: t.disabled,
1400
1400
  "first-day-of-week": t.firstDayOfWeek,
1401
- onChange: y
1401
+ onChange: b
1402
1402
  }, {
1403
1403
  default: we(() => [
1404
1404
  a("button", {
@@ -1457,7 +1457,7 @@ const pt = ke("SunIcon", [
1457
1457
  max: t.max,
1458
1458
  disabled: t.disabled,
1459
1459
  "first-day-of-week": t.firstDayOfWeek,
1460
- onChange: y
1460
+ onChange: b
1461
1461
  }, {
1462
1462
  default: we(() => [
1463
1463
  a("button", {
@@ -1547,7 +1547,7 @@ const pt = ke("SunIcon", [
1547
1547
  ])
1548
1548
  ])
1549
1549
  ])) : z("", !0),
1550
- !t.range && t.mode !== "date" ? (o(), i("div", yl, [
1550
+ !t.range && t.mode !== "date" ? (o(), i("div", bl, [
1551
1551
  a("input", {
1552
1552
  class: "open:bg-primary open:rounded w-full input input-bordered justify-center",
1553
1553
  type: "time",
@@ -1557,7 +1557,7 @@ const pt = ke("SunIcon", [
1557
1557
  onChange: M,
1558
1558
  disabled: t.disabled,
1559
1559
  value: k.value.single || ""
1560
- }, null, 40, bl)
1560
+ }, null, 40, yl)
1561
1561
  ])) : z("", !0),
1562
1562
  t.popup && t.closeText ? (o(), i("div", wl, [
1563
1563
  a("button", {
@@ -1827,9 +1827,9 @@ const pt = ke("SunIcon", [
1827
1827
  s("update:modelValue", null), v && s("clear", v);
1828
1828
  }, f = (v) => {
1829
1829
  u.value = v, r.value || (m.value = v.text), s("update:modelValue", v.value), s("select", v), T();
1830
- }, b = () => {
1831
- q.value.length > 0 && f(q.value[0]);
1832
1830
  }, y = () => {
1831
+ q.value.length > 0 && f(q.value[0]);
1832
+ }, b = () => {
1833
1833
  g.value || E();
1834
1834
  }, M = (v) => {
1835
1835
  if (!g.value || q.value.length === 0) return;
@@ -1898,8 +1898,8 @@ const pt = ke("SunIcon", [
1898
1898
  tabindex: "0",
1899
1899
  onClick: _[1] || (_[1] = (x) => r.value ? W() : E()),
1900
1900
  onKeydown: [
1901
- ye(re(b, ["prevent"]), ["enter"]),
1902
- ye(re(b, ["prevent"]), ["space"])
1901
+ be(re(y, ["prevent"]), ["enter"]),
1902
+ be(re(y, ["prevent"]), ["space"])
1903
1903
  ],
1904
1904
  onBlur: ee,
1905
1905
  role: "combobox",
@@ -1920,7 +1920,7 @@ const pt = ke("SunIcon", [
1920
1920
  ref_key: "filterInput",
1921
1921
  ref: I,
1922
1922
  onFocus: E,
1923
- onInput: y,
1923
+ onInput: b,
1924
1924
  tabindex: "-1",
1925
1925
  disabled: t.disabled
1926
1926
  }, null, 40, Pl)), [
@@ -2157,7 +2157,7 @@ const Jl = ["value"], Zl = /* @__PURE__ */ A({
2157
2157
  });
2158
2158
  return (u, g) => (o(), i("div", {
2159
2159
  role: "alert",
2160
- class: S(["alert", m.value, "shadow-lg"])
2160
+ class: S(["alert z-60", m.value, "shadow-lg"])
2161
2161
  }, [
2162
2162
  a("span", null, V(e.toast.message), 1),
2163
2163
  a("progress", {
@@ -2167,7 +2167,7 @@ const Jl = ["value"], Zl = /* @__PURE__ */ A({
2167
2167
  }, null, 8, Jl)
2168
2168
  ], 2));
2169
2169
  }
2170
- }), Ql = /* @__PURE__ */ de(Zl, [["__scopeId", "data-v-08105eee"]]), ea = /* @__PURE__ */ A({
2170
+ }), Ql = /* @__PURE__ */ de(Zl, [["__scopeId", "data-v-bc0c6917"]]), ea = /* @__PURE__ */ A({
2171
2171
  __name: "ToastContainer",
2172
2172
  props: {
2173
2173
  position: {
@@ -2189,7 +2189,7 @@ const Jl = ["value"], Zl = /* @__PURE__ */ A({
2189
2189
  };
2190
2190
  });
2191
2191
  return (n, r) => (o(), i("div", {
2192
- class: S(["toast", s.value])
2192
+ class: S(["toast z-50", s.value])
2193
2193
  }, [
2194
2194
  ue(tt, { name: "toast-fade" }, {
2195
2195
  default: we(() => [
@@ -2203,7 +2203,7 @@ const Jl = ["value"], Zl = /* @__PURE__ */ A({
2203
2203
  })
2204
2204
  ], 2));
2205
2205
  }
2206
- }), Ja = /* @__PURE__ */ de(ea, [["__scopeId", "data-v-f910f41f"]]), ta = {
2206
+ }), Ja = /* @__PURE__ */ de(ea, [["__scopeId", "data-v-e10fa884"]]), ta = {
2207
2207
  xmlns: "http://www.w3.org/2000/svg",
2208
2208
  fill: "none",
2209
2209
  viewBox: "0 0 24 24",
@@ -2338,12 +2338,12 @@ const Jl = ["value"], Zl = /* @__PURE__ */ A({
2338
2338
  ])
2339
2339
  ], 2));
2340
2340
  }
2341
- }), ha = {}, ga = { class: "min-h-40 container hero" }, ya = { class: "px-0! text-center hero-content" }, ba = { class: "mt-9 text-4xl" };
2341
+ }), ha = {}, ga = { class: "min-h-40 container hero" }, ba = { class: "px-0! text-center hero-content" }, ya = { class: "mt-9 text-4xl" };
2342
2342
  function wa(e, c) {
2343
2343
  return o(), i("div", ga, [
2344
- a("div", ya, [
2344
+ a("div", ba, [
2345
2345
  a("div", null, [
2346
- a("h1", ba, [
2346
+ a("h1", ya, [
2347
2347
  O(e.$slots, "title", {}, () => [
2348
2348
  c[0] || (c[0] = Ae("hero title", -1))
2349
2349
  ])
@@ -2503,5 +2503,6 @@ export {
2503
2503
  Wa as TagInput,
2504
2504
  La as ThemeController,
2505
2505
  Ja as Toast,
2506
+ Gl as ToastComposable,
2506
2507
  Ql as ToastNotification
2507
2508
  };
@@ -1,9 +1,9 @@
1
- (function(C,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(C=typeof globalThis<"u"?globalThis:C||self,e(C.ManolisUi={},C.Vue))})(this,(function(C,e){"use strict";var Ht=C=>{throw TypeError(C)};var Wt=(C,e,X)=>e.has(C)||Ht("Cannot "+X);var pe=(C,e,X)=>(Wt(C,e,"read from private field"),X?X.call(C):e.get(C)),nt=(C,e,X)=>e.has(C)?Ht("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(C):e.set(C,X),ot=(C,e,X,Be)=>(Wt(C,e,"write to private field"),Be?Be.call(C,X):e.set(C,X),X);var ie,me;const X=["disabled"],Be={key:0,class:"loading loading-spinner"},Kt=e.defineComponent({__name:"ButtonComponent",props:{outlined:{type:Boolean,default:!1},active:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},type:{},size:{},shape:{},disabled:{type:Boolean,default:!1}},setup(t){const n=t,l=e.computed(()=>{switch(n.size){case"large":return"btn-lg";case"small":return"btn-sm";case"tiny":return"btn-tiny";case"wide":return"btn-wide";case"full":return"w-full";default:return""}}),o=e.computed(()=>{switch(n.type){case"neutral":return"btn-neutral";case"primary":return"btn-primary";case"secondary":return"btn-secondary";case"accent":return"btn-accent";case"ghost":return"btn-ghost";case"link":return"btn-link px-0!";case"info":return"btn-info";case"success":return"btn-success";case"warning":return"btn-warning";case"error":return"btn-error";default:return"btn-neutral"}}),r=e.computed(()=>{switch(n.shape){case"square":return"btn-square";case"circle":return"btn-circle";default:return""}});return(a,s)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["btn",{"btn-outline":n.outlined},{"btn-active":n.active},o.value,l.value,r.value]),disabled:n.disabled},[t.loading?(e.openBlock(),e.createElementBlock("span",Be)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"default",{},()=>[s[0]||(s[0]=e.createTextVNode("Submit",-1))])],10,X))}}),Yt={tabindex:"0",class:"z-1 bg-base-100 shadow-sm p-2 rounded-sm min-w-[inherit] md:min-w-full xl:min-w-52 dropdown-content menu"},Xt=["href"],Gt=e.defineComponent({__name:"dropdown",props:{items:{},position:{default:"bottom"},floatPosition:{default:"start"},openOnHover:{type:Boolean,default:!1},forceOpen:{type:Boolean,default:!1}},setup(t){const n={left:"dropdown-left",right:"dropdown-right",bottom:"dropdown-bottom",top:"dropdown-top"},l={start:"",end:"dropdown-end"},o=t;return(r,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["dropdown",n[o.position],l[o.floatPosition],{"dropdown-open":o.forceOpen},{"dropdown-hover":o.openOnHover}])},[e.renderSlot(r.$slots,"default",{tabindex:"0",role:"button"},()=>[a[0]||(a[0]=e.createElementVNode("div",{class:"m-1 btn"},"Open dropdown",-1))]),e.createElementVNode("ul",Yt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,s=>(e.openBlock(),e.createElementBlock("li",null,[e.createElementVNode("a",{href:s.link},e.toDisplayString(s.text),9,Xt)]))),256)),e.renderSlot(r.$slots,"additional")])],2))}}),Jt={class:"modal-box"},Zt={class:"modal-action"},Qt=e.defineComponent({__name:"modal",props:{position:{default:"center"},withBackdrop:{type:Boolean,default:!1},forceOpen:{type:[Boolean,null],default:null}},setup(t){const n=t,l={top:"modal-top",bottom:"modal-bottom",center:"modal-middle"},o=e.ref(null),r=()=>{var s;(s=o.value)==null||s.showModal()},a=()=>{var s;(s=o.value)==null||s.close()};return e.watch(()=>n.forceOpen,s=>{s==!0&&r(),s==!1&&a()}),(s,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[n.forceOpen==null?(e.openBlock(),e.createElementBlock("span",{key:0,class:"w-fit cursor-pointer",onClick:r},[e.renderSlot(s.$slots,"trigger",{role:"button"},()=>[c[0]||(c[0]=e.createElementVNode("button",{class:"btn"},"Open",-1))])])):e.createCommentVNode("",!0),e.createElementVNode("dialog",{ref_key:"dialog",ref:o,class:e.normalizeClass(["modal",l[n.position]])},[e.createElementVNode("div",Jt,[e.renderSlot(s.$slots,"default"),e.createElementVNode("div",Zt,[e.renderSlot(s.$slots,"actions"),e.createElementVNode("form",{method:"dialog",onSubmit:a,class:e.normalizeClass(t.withBackdrop?"modal-backdrop":"")},[e.renderSlot(s.$slots,"close-button",{},()=>[c[1]||(c[1]=e.createElementVNode("button",{class:"btn"},"Close",-1))])],34)])])],2)],64))}}),en={class:"flex justify-center items-center swap-on"},tn={class:"flex justify-center items-center swap-off"},nn=e.defineComponent({__name:"swap",props:{effect:{}},setup(t){const n=t;return(l,o)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["swap",n.effect?`swap-${t.effect}`:""])},[o[0]||(o[0]=e.createElementVNode("input",{type:"checkbox"},null,-1)),e.createElementVNode("div",en,[e.renderSlot(l.$slots,"on")]),e.createElementVNode("div",tn,[e.renderSlot(l.$slots,"off")])],2))}});/**
1
+ (function($,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):($=typeof globalThis<"u"?globalThis:$||self,e($.ManolisUi={},$.Vue))})(this,(function($,e){"use strict";var Wt=$=>{throw TypeError($)};var Kt=($,e,X)=>e.has($)||Wt("Cannot "+X);var pe=($,e,X)=>(Kt($,e,"read from private field"),X?X.call($):e.get($)),nt=($,e,X)=>e.has($)?Wt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add($):e.set($,X),ot=($,e,X,Be)=>(Kt($,e,"write to private field"),Be?Be.call($,X):e.set($,X),X);var ie,me;const X=["disabled"],Be={key:0,class:"loading loading-spinner"},Yt=e.defineComponent({__name:"ButtonComponent",props:{outlined:{type:Boolean,default:!1},active:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},type:{},size:{},shape:{},disabled:{type:Boolean,default:!1}},setup(t){const n=t,l=e.computed(()=>{switch(n.size){case"large":return"btn-lg";case"small":return"btn-sm";case"tiny":return"btn-tiny";case"wide":return"btn-wide";case"full":return"w-full";default:return""}}),o=e.computed(()=>{switch(n.type){case"neutral":return"btn-neutral";case"primary":return"btn-primary";case"secondary":return"btn-secondary";case"accent":return"btn-accent";case"ghost":return"btn-ghost";case"link":return"btn-link px-0!";case"info":return"btn-info";case"success":return"btn-success";case"warning":return"btn-warning";case"error":return"btn-error";default:return"btn-neutral"}}),r=e.computed(()=>{switch(n.shape){case"square":return"btn-square";case"circle":return"btn-circle";default:return""}});return(a,s)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["btn",{"btn-outline":n.outlined},{"btn-active":n.active},o.value,l.value,r.value]),disabled:n.disabled},[t.loading?(e.openBlock(),e.createElementBlock("span",Be)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"default",{},()=>[s[0]||(s[0]=e.createTextVNode("Submit",-1))])],10,X))}}),Xt={tabindex:"0",class:"z-1 bg-base-100 shadow-sm p-2 rounded-sm min-w-[inherit] md:min-w-full xl:min-w-52 dropdown-content menu"},Gt=["href"],Jt=e.defineComponent({__name:"dropdown",props:{items:{},position:{default:"bottom"},floatPosition:{default:"start"},openOnHover:{type:Boolean,default:!1},forceOpen:{type:Boolean,default:!1}},setup(t){const n={left:"dropdown-left",right:"dropdown-right",bottom:"dropdown-bottom",top:"dropdown-top"},l={start:"",end:"dropdown-end"},o=t;return(r,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["dropdown",n[o.position],l[o.floatPosition],{"dropdown-open":o.forceOpen},{"dropdown-hover":o.openOnHover}])},[e.renderSlot(r.$slots,"default",{tabindex:"0",role:"button"},()=>[a[0]||(a[0]=e.createElementVNode("div",{class:"m-1 btn"},"Open dropdown",-1))]),e.createElementVNode("ul",Xt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,s=>(e.openBlock(),e.createElementBlock("li",null,[e.createElementVNode("a",{href:s.link},e.toDisplayString(s.text),9,Gt)]))),256)),e.renderSlot(r.$slots,"additional")])],2))}}),Zt={class:"modal-box"},Qt={class:"modal-action"},en=e.defineComponent({__name:"modal",props:{position:{default:"center"},withBackdrop:{type:Boolean,default:!1},forceOpen:{type:[Boolean,null],default:null}},setup(t){const n=t,l={top:"modal-top",bottom:"modal-bottom",center:"modal-middle"},o=e.ref(null),r=()=>{var s;(s=o.value)==null||s.showModal()},a=()=>{var s;(s=o.value)==null||s.close()};return e.watch(()=>n.forceOpen,s=>{s==!0&&r(),s==!1&&a()}),(s,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[n.forceOpen==null?(e.openBlock(),e.createElementBlock("span",{key:0,class:"w-fit cursor-pointer",onClick:r},[e.renderSlot(s.$slots,"trigger",{role:"button"},()=>[c[0]||(c[0]=e.createElementVNode("button",{class:"btn"},"Open",-1))])])):e.createCommentVNode("",!0),e.createElementVNode("dialog",{ref_key:"dialog",ref:o,class:e.normalizeClass(["modal",l[n.position]])},[e.createElementVNode("div",Zt,[e.renderSlot(s.$slots,"default"),e.createElementVNode("div",Qt,[e.renderSlot(s.$slots,"actions"),e.createElementVNode("form",{method:"dialog",onSubmit:a,class:e.normalizeClass(t.withBackdrop?"modal-backdrop":"")},[e.renderSlot(s.$slots,"close-button",{},()=>[c[1]||(c[1]=e.createElementVNode("button",{class:"btn"},"Close",-1))])],34)])])],2)],64))}}),tn={class:"flex justify-center items-center swap-on"},nn={class:"flex justify-center items-center swap-off"},on=e.defineComponent({__name:"swap",props:{effect:{}},setup(t){const n=t;return(l,o)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["swap",n.effect?`swap-${t.effect}`:""])},[o[0]||(o[0]=e.createElementVNode("input",{type:"checkbox"},null,-1)),e.createElementVNode("div",tn,[e.renderSlot(l.$slots,"on")]),e.createElementVNode("div",nn,[e.renderSlot(l.$slots,"off")])],2))}});/**
2
2
  * @license lucide-vue-next v0.468.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
5
5
  * See the LICENSE file in the root directory of this source tree.
6
- */const on=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
6
+ */const ln=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
7
7
  * @license lucide-vue-next v0.468.0 - ISC
8
8
  *
9
9
  * This source code is licensed under the ISC license.
@@ -13,27 +13,27 @@
13
13
  *
14
14
  * This source code is licensed under the ISC license.
15
15
  * See the LICENSE file in the root directory of this source tree.
16
- */const ln=({size:t,strokeWidth:n=2,absoluteStrokeWidth:l,color:o,iconNode:r,name:a,class:s,...c},{slots:i})=>e.h("svg",{...$e,width:t||$e.width,height:t||$e.height,stroke:o||$e.stroke,"stroke-width":l?Number(n)*24/Number(t):n,class:["lucide",`lucide-${on(a??"icon")}`],...c},[...r.map(u=>e.h(...u)),...i.default?[i.default()]:[]]);/**
16
+ */const an=({size:t,strokeWidth:n=2,absoluteStrokeWidth:l,color:o,iconNode:r,name:a,class:s,...c},{slots:i})=>e.h("svg",{...$e,width:t||$e.width,height:t||$e.height,stroke:o||$e.stroke,"stroke-width":l?Number(n)*24/Number(t):n,class:["lucide",`lucide-${ln(a??"icon")}`],...c},[...r.map(u=>e.h(...u)),...i.default?[i.default()]:[]]);/**
17
17
  * @license lucide-vue-next v0.468.0 - ISC
18
18
  *
19
19
  * This source code is licensed under the ISC license.
20
20
  * See the LICENSE file in the root directory of this source tree.
21
- */const he=(t,n)=>(l,{slots:o})=>e.h(ln,{...l,iconNode:n,name:t},o);/**
21
+ */const he=(t,n)=>(l,{slots:o})=>e.h(an,{...l,iconNode:n,name:t},o);/**
22
22
  * @license lucide-vue-next v0.468.0 - ISC
23
23
  *
24
24
  * This source code is licensed under the ISC license.
25
25
  * See the LICENSE file in the root directory of this source tree.
26
- */const an=he("CircleChevronDownIcon",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 10-4 4-4-4",key:"894hmk"}]]);/**
26
+ */const rn=he("CircleChevronDownIcon",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 10-4 4-4-4",key:"894hmk"}]]);/**
27
27
  * @license lucide-vue-next v0.468.0 - ISC
28
28
  *
29
29
  * This source code is licensed under the ISC license.
30
30
  * See the LICENSE file in the root directory of this source tree.
31
- */const rn=he("CircleXIcon",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
31
+ */const sn=he("CircleXIcon",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
32
32
  * @license lucide-vue-next v0.468.0 - ISC
33
33
  *
34
34
  * This source code is licensed under the ISC license.
35
35
  * See the LICENSE file in the root directory of this source tree.
36
- */const sn=he("MoonIcon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
36
+ */const cn=he("MoonIcon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
37
37
  * @license lucide-vue-next v0.468.0 - ISC
38
38
  *
39
39
  * This source code is licensed under the ISC license.
@@ -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 cn=he("SunIcon",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),dn=(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},un={class:"swap-rotate swap"},mn=["true-value","false-value"],fn=e.defineComponent({__name:"theme-controller",props:{lightTheme:{default:"light"},darkTheme:{default:"dark"}},setup(t){const n=t,l=dn("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",un,[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,mn),[[e.vModelCheckbox,e.unref(l)]]),e.createVNode(e.unref(cn),{class:"swap-off fill-current"}),e.createVNode(e.unref(sn),{class:"swap-on fill-current"})]))}}),pn={key:0,class:"join join-vertical w-full"},hn=["name"],gn={key:1,type:"checkbox"},yn={class:"collapse-title font-bold text-2xl lg:text-4xl"},bn={class:"collapse-content"},kn=["innerHTML"],wn=["name"],xn={key:1,type:"checkbox"},vn={class:"collapse-title font-bold text-2xl lg:text-4xl"},En={class:"collapse-content"},Bn=["innerHTML"],$n=e.defineComponent({__name:"accordion",props:{name:{},items:{},joinItems:{type:Boolean,default:!1},icon:{},toggle:{type:Boolean,default:!1}},setup(t){const n=t;return(l,o)=>n.joinItems?(e.openBlock(),e.createElementBlock("div",pn,[(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 join-item",[t.icon?`collapse-${t.icon}`:""]]),key:a},[t.toggle?(e.openBlock(),e.createElementBlock("input",gn)):(e.openBlock(),e.createElementBlock("input",{key:0,type:"radio",name:t.name,value:"true"},null,8,hn)),e.createElementVNode("div",yn,e.toDisplayString(r.title),1),e.createElementVNode("div",bn,[e.createElementVNode("span",{innerHTML:r.content},null,8,kn)])],2))),128))])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(n.items,(r,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["collapse border border-base-300",[t.icon?`collapse-${t.icon}`:""]]),key:a},[t.toggle?(e.openBlock(),e.createElementBlock("input",xn)):(e.openBlock(),e.createElementBlock("input",{key:0,type:"radio",name:t.name,value:"true"},null,8,wn)),e.createElementVNode("div",vn,e.toDisplayString(r.title),1),e.createElementVNode("div",En,[e.createElementVNode("span",{innerHTML:r.content},null,8,Bn)])],2))),128))}}),Cn=["src"],Sn={class:"text-xl"},Vn=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,Cn)],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",Sn,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))}}),Dn=["src","alt"],zn={key:0,class:"card-body"},Tn={key:0,class:"group-hover:text-primary text-lg text-left cursor-pointer card-title"},Mn={key:1,class:"text-left"},In={class:"flex-col flex-nowrap mt-auto card-actions"},On={key:1,class:"card-body"},_n=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,Dn)):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",zn,[t.title?(e.openBlock(),e.createElementBlock("h2",Tn,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"details"),t.description?(e.openBlock(),e.createElementBlock("p",Mn,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0),e.createElementVNode("div",In,[e.renderSlot(o.$slots,"actions")])])),t.loading?(e.openBlock(),e.createElementBlock("div",On,[...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))}}),at=Symbol("CarouselItemStyle"),Ln={class:"relative h-full"},Pn={key:0,class:"flex-shrink-0"},jn={key:0,class:"flex-shrink-0"},An={key:1,id:"carousel-indicators",class:"bottom-5 z-10 absolute flex justify-center gap-2 py-2 w-full"},Fn=["onClick","aria-label"],Un=e.defineComponent({__name:"carousel",props:{showIndicators:{type:Boolean,default:!0},showNavigationButtons:{type:Boolean,default:!0},sliderOrientation:{type:String,default:"horizontal",required:!1,validator:t=>t=="horizontal"||t=="vertical"},initialSlide:{type:Number,default:0},slidesPerView:{type:Number,default:1,validator:t=>t>=1},gap:{type:Number,default:0,validator:t=>t>=0},slideDuration:{type:Number,default:300,validator:t=>t>=0},breakpoints:{type:Object,default:()=>({})},infinite:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},autoplayInterval:{type:Number,default:3e3,validator:t=>t>0}},setup(t,{expose:n}){const l=t,o=e.ref(l.initialSlide),r=e.ref(null),a=e.ref(null),s=e.ref(0),c=e.ref(!1),i=e.ref(0),u=e.ref(0),m=e.ref(!1),g=e.ref(0),f=e.ref(0),d=e.ref(0),$=e.ref(0),x=e.ref(0),S=e.ref(0),k=e.ref(0),M=e.ref(null),U=e.ref(null),Y=e.ref(0),h=e.ref(null),B=e.computed(()=>{const D=Object.keys(l.breakpoints).map(Number).sort((_,A)=>_-A);let V={};for(const _ of D)u.value>=_&&(V={...V,...l.breakpoints[_]});return V}),w=e.computed(()=>B.value.slidesPerView??l.slidesPerView),z=e.computed(()=>B.value.gap??l.gap),p=e.computed(()=>{const D=l.sliderOrientation==="horizontal",_=`calc((100% - ${w.value>1?(w.value-1)*z.value:0}px) / ${w.value})`;return D?{width:_}:{height:_}});e.provide(at,p);const v=()=>{a.value?i.value=a.value.children.length:i.value=0},b=()=>{if(!r.value||w.value<=0)return 0;const V=l.sliderOrientation==="horizontal"?r.value.offsetWidth:r.value.offsetHeight,_=(w.value-1)*z.value;return V<=0?0:(V-_)/w.value},I=e.computed(()=>{if(!r.value||i.value===0||w.value===0)return 0;const V=l.sliderOrientation==="horizontal"?r.value.offsetWidth:r.value.offsetHeight,_=b(),A=i.value*(_+z.value)-z.value;return Math.max(0,A-V)}),O=async(D,V=!1)=>{if(!r.value||w.value<=0||c.value||(v(),i.value===0))return;const _=b();if(_<=0)return;const A=_+z.value,K=I.value;let R=D;l.infinite?R=(D%i.value+i.value)%i.value:R=Math.max(0,Math.min(D,i.value-w.value));const te=R*A,W=l.infinite?te:Math.max(0,Math.min(te,K));if(V||l.slideDuration===0){a.value&&(a.value.style.transitionDuration="0ms",a.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-W}px, 0, 0)`:`translate3d(0, ${-W}px, 0)`),s.value=W,o.value=R,c.value=!1,l.autoplay&&ee();return}c.value=!0;const le=s.value,Z=W-le,Ee=performance.now(),fe=Me=>{if(!a.value)return;const _a=Me-Ee,qt=Math.min(1,_a/l.slideDuration),La=1-Math.pow(1-qt,3),tt=le+Z*La;a.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-tt}px, 0, 0)`:`translate3d(0, ${-tt}px, 0)`,s.value=tt,qt<1?M.value=requestAnimationFrame(fe):(a.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-W}px, 0, 0)`:`translate3d(0, ${-W}px, 0)`,s.value=W,o.value=R,c.value=!1,l.autoplay&&ee(),M.value=null)};M.value=requestAnimationFrame(fe)},q=()=>{l.infinite&&o.value>=i.value-w.value?O(0):O(o.value+1)},G=()=>{l.infinite&&o.value<=0?O(i.value-w.value):O(o.value-1)},y=D=>{O(D)},E=D=>{c.value&&M.value&&(l.autoplay&&H(),cancelAnimationFrame(M.value),c.value=!1);const V="touches"in D?D.touches[0]:D;g.value=V.clientX,f.value=V.clientY,h.value=null,d.value=s.value,$.value=0,x.value=0,S.value=0,k.value=performance.now(),r.value&&(r.value.style.scrollSnapType="none"),document.addEventListener("mousemove",N,{passive:!1}),document.addEventListener("mouseup",P),document.addEventListener("touchmove",N,{passive:!1}),document.addEventListener("touchend",P)},N=D=>{const V="touches"in D?D.touches[0]:D;if(!h.value){const Ee=Math.abs(V.clientX-g.value),fe=Math.abs(V.clientY-f.value),Me=5;if(Ee>Me||fe>Me)if(l.sliderOrientation==="horizontal")if(Ee>fe)h.value="horizontal",m.value=!0;else{T();return}else if(fe>Ee)h.value="vertical",m.value=!0;else{T();return}else return}if(!m.value||!a.value||!r.value)return;D.cancelable&&D.preventDefault();const _=performance.now(),A=_-k.value,K=l.sliderOrientation==="horizontal"?V.clientX:V.clientY,R=l.sliderOrientation==="horizontal"?g.value:f.value,te=l.sliderOrientation==="horizontal"?x.value||R:S.value||R,W=K-te;A>0&&($.value=W/A*1e3);const le=K-R;let Z=d.value-le;Z<0?Z=Z*.3:Z>I.value&&(Z=I.value+(Z-I.value)*.3),Y.value=Z,a.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-Y.value}px, 0, 0)`:`translate3d(0, ${-Y.value}px, 0)`,l.sliderOrientation==="horizontal"?x.value=K:S.value=K,k.value=_},T=()=>{document.removeEventListener("mousemove",N),document.removeEventListener("mouseup",P),document.removeEventListener("touchmove",N),document.removeEventListener("touchend",P)},P=()=>{if(!m.value||!r.value||!a.value)return;const V=l.sliderOrientation==="horizontal"?d.value-(x.value-g.value):d.value-(S.value-f.value),_=Math.max(0,Math.min(V,I.value)),A=b()+z.value;if(m.value=!1,T(),s.value=_,l.infinite){if(V<0){O(i.value-1);return}else if(V>I.value){O(0);return}}else if(V<0){O(0);return}else if(V>I.value){const W=Math.max(0,i.value-Math.floor(w.value));O(W);return}const K=Math.max(0,i.value-Math.floor(w.value)),R=100,te=Math.round(_/A);if(Math.abs($.value)>R){const W=-Math.sign($.value),le=te+W;O(Math.max(0,Math.min(K,le)))}else O(Math.max(0,Math.min(K,te)))},j=()=>{!l.autoplay||U.value!==null||(U.value=setInterval(()=>{q()},l.autoplayInterval))},H=()=>{U.value!==null&&(clearInterval(U.value),U.value=null)},ee=()=>{H(),setTimeout(()=>{j()},500)},oe=e.ref(null),et=D=>{if(!D||D.length===0)return;const{width:V}=D[0].contentRect;Math.abs(V-u.value)>1&&(u.value=V)},Oa=()=>{if(!r.value||w.value<=0||(v(),i.value===0))return;const D=b();if(D<=0)return;const V=Math.max(0,i.value-w.value),_=Math.min(Math.max(0,l.initialSlide),V),A=_*(D+z.value),K=I.value,R=Math.max(0,Math.min(A,K));a.value&&(a.value.style.transitionDuration="0ms",a.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-R}px, 0, 0)`:`translate3d(0, ${-R}px, 0)`),s.value=R,o.value=_};let Rt=!1;return e.onMounted(()=>{var V,_,A,K,R,te,W,le;u.value=window.innerWidth;const D=e.watch(i,Z=>{Z>0&&!Rt&&(Oa(),Rt=!0,D())});l.autoplay&&j(),v(),r.value&&(oe.value=new ResizeObserver(et),oe.value.observe(r.value)),(V=r.value)==null||V.addEventListener("mousedown",E),(_=r.value)==null||_.addEventListener("touchstart",E,{passive:!0}),l.showNavigationButtons&&((R=(K=(A=r.value)==null?void 0:A.parentElement)==null?void 0:K.querySelector(".absolute.flex.justify-between"))==null||R.addEventListener("click",ee)),l.showIndicators&&((le=(W=(te=r.value)==null?void 0:te.parentElement)==null?void 0:W.querySelector(".bottom-5.flex.justify-center"))==null||le.addEventListener("click",ee))}),e.onUnmounted(()=>{oe.value&&oe.value.disconnect(),H()}),e.watch(()=>l.autoplay,D=>{D?j():H()}),e.watch(()=>l.autoplayInterval,ee),e.watch(()=>l.initialSlide,D=>{requestAnimationFrame(()=>O(D,!0))}),e.watch([w,z],()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{if(v(),i.value===0)return;const D=Math.max(0,i.value-w.value),V=Math.min(o.value,D);O(V,!0)})})}),n({scrollToSlide:O}),(D,V)=>(e.openBlock(),e.createElementBlock("div",Ln,[e.createElementVNode("div",{ref_key:"carouselContainer",ref:r,class:e.normalizeClass(["rounded w-full h-full carousel",[{"carousel-horizontal":t.sliderOrientation=="horizontal"},{"carousel-vertical":t.sliderOrientation=="vertical"},{"cursor-grabbing !select-none":m.value}]]),style:{scrollSnapType:"none"}},[e.createElementVNode("div",{ref_key:"slidesContainer",ref:a,class:e.normalizeClass(["w-full h-full transition-transform duration-0 ease-out",t.sliderOrientation==="horizontal"?"flex":"block"]),style:e.normalizeStyle({gap:`${z.value}px`})},[e.renderSlot(D.$slots,"default",{},void 0,!0)],6)],2),t.showNavigationButtons?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([{"top-1/2 right-5 left-5 z-10 absolute flex justify-between items-center -translate-y-1/2 transform":t.sliderOrientation==="horizontal"},{"right-0 absolute flex justify-between items-center -translate-y-1/2 transform rotate-90 top-1/2 gap-3":t.sliderOrientation==="vertical"}])},[e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[l.infinite||o.value>0?(e.openBlock(),e.createElementBlock("div",Pn,[e.createElementVNode("div",{onClick:G,role:"button","aria-label":"Previous Slide"},[e.renderSlot(D.$slots,"prevButton",{},()=>[V[0]||(V[0]=e.createElementVNode("button",{class:"btn btn-circle text-xs",tabindex:"-1"},"❮",-1))],!0)])])):e.createCommentVNode("",!0)]),_:3}),V[2]||(V[2]=e.createElementVNode("div",{class:"flex-grow"},null,-1)),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[l.infinite||o.value<i.value-w.value?(e.openBlock(),e.createElementBlock("div",jn,[e.createElementVNode("div",{onClick:q,role:"button","aria-label":"Next Slide"},[e.renderSlot(D.$slots,"nextButton",{},()=>[V[1]||(V[1]=e.createElementVNode("button",{class:"btn btn-circle text-xs",tabindex:"-1"},"❯",-1))],!0)])])):e.createCommentVNode("",!0)]),_:3})],2)):e.createCommentVNode("",!0),t.showIndicators?(e.openBlock(),e.createElementBlock("div",An,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(_,A)=>(e.openBlock(),e.createElementBlock("button",{key:`dot-${A}`,onClick:K=>y(A),class:e.normalizeClass(["btn btn-circle btn-xs",{"btn-active":A===o.value}]),"aria-label":`Go to slide ${A+1}`},null,10,Fn))),128))])):e.createCommentVNode("",!0)]))}}),ae=(t,n)=>{const l=t.__vccOpts||t;for(const[o,r]of n)l[o]=r;return l},Rn=ae(Un,[["__scopeId","data-v-d9ad9601"]]),qn=ae(e.defineComponent({__name:"carouselItem",setup(t){const n=e.inject(at,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"]]),Hn={class:"flex gap-4 bg-base-100 w-full tabs tabs-boxed"},Wn=["onClick"],Kn={key:0,class:"inline-component-wrapper flex grow justify-center items-center w-full h-full"},Yn={key:1,class:"flex flex-col"},Xn={class:"text-sm"},Gn={key:0,class:"opacity-75 overflow-hidden text-xs truncate ..."},Jn={key:1,class:"hidden md:block opacity-35 overflow-hidden text-xs truncate ..."},Zn={class:"hidden"},Qn=["id"],eo={class:"modal-box"},to={class:"font-bold text-lg"},no=["name","checked"],oo={class:"collapse-title flex justify-between items-center pr-4 w-full font-medium text-xl"},lo={key:0,class:"opacity-75 overflow-hidden text-sm truncate ..."},ao={key:1,class:"opacity-35 text-sm"},ro={class:"collapse-content flex place-content-center p-0"},so=ae(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(()=>vo)),"standard-select":e.defineAsyncComponent(()=>Promise.resolve().then(()=>_o)),"custom-text":e.defineAsyncComponent(()=>Promise.resolve().then(()=>Qo))},i=e.ref({}),u=e.ref({left:"0px",top:"0px",transform:"translateX(0%)"}),m=e.ref(null),g=h=>{var B;if(h.value===void 0||h.value===null||h.value==="")return"";switch(h.type){case"datetime":if(typeof h.value=="string")try{const w=new Date(h.value);if(!isNaN(w.getTime()))return w.toLocaleString()}catch{}else if(h.range&&typeof h.value=="object"&&h.value!==null&&"start"in h.value&&"end"in h.value)try{const w=new Date(h.value.start),z=new Date(h.value.end);if(!isNaN(w.getTime())&&!isNaN(z.getTime()))return`${w.toLocaleDateString()} - ${z.toLocaleDateString()}`}catch{}break;case"custom-range":if(typeof h.value=="object"&&h.value!==null&&"start"in h.value&&"end"in h.value)return`${h.value.start} - ${h.value.end}`;break;case"custom-number":if(typeof h.value=="number")return h.value.toString();break;case"standard-select":case"custom-select":if((B=h.props)!=null&&B.options&&Array.isArray(h.props.options)){const w=h.props.options.find(z=>z.value===h.value);if(w)return w.text}return String(h.value);case"custom-text":if(typeof h.value=="string")return h.value;break}return String(h.value)};function f(h){var p,v;const B=(p=a.value)==null?void 0:p.name;if(!B){console.warn("componentValueUpdated called but no active tab.");return}const w=(v=l.searchOptions.find(b=>(b==null?void 0:b.category)===l.currentCategory))==null?void 0:v.tabs,z=w==null?void 0:w.find(b=>b.name===B);z?(z.value=h,o("update:search-data",{tab:z.name,data:h})):console.error(`Tab with name "${B}" not found in current category.`)}function d(h){f(h)}function $(){o("search")}async function x(h){var z;const B=document.getElementById(`advancedSearchMobile-${r}`),w=B&&B.contains(h.target);((z=a.value)==null?void 0:z.displayMode)==="popup"&&m.value&&!m.value.contains(h.target)&&!w&&(await e.nextTick(),a.value=null)}async function S(){if(typeof window<"u"&&window.innerWidth<=768){const h=document.getElementById(`advancedSearchMobile-${r}`);h?(a.value=null,h.showModal()):console.warn(`Mobile modal element not found. Ensure it exists with id="advancedSearchMobile-${r}".`)}}async function k(h){var w,z,p;if(typeof window<"u"&&window.innerWidth<=768){S();return}const B=h.displayMode??"popup";if(((w=a.value)==null?void 0:w.name)===h.name&&((z=a.value)==null?void 0:z.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 v=i.value[h.name];if(v&&m.value){const b=v.getBoundingClientRect(),I=m.value.getBoundingClientRect(),O=b.bottom-I.top,q=b.left+b.width/2-I.left;u.value={left:`${q}px`,top:`${O+8}px`,transform:"translateX(-50%)"}}else console.error("Tab element or search container not found for positioning:",h.name)}}const M=h=>{const B=h.relatedTarget;setTimeout(()=>{var w;((w=a.value)==null?void 0:w.displayMode)==="inline"&&m.value&&(!B||!m.value.contains(B))?(console.log("Blur detected outside container, closing inline view."),a.value=null):console.log("Blur detected, but staying within container or not an inline tab.")},50)},U=()=>{console.log("Enter key pressed on inline component, closing inline view."),a.value=null};e.watch(s,h=>{var B;console.log("advanced-search: inlineComponentRef changed. New Value:",h),console.log("advanced-search: activeTab.value:",a.value),h&&((B=a.value)==null?void 0:B.displayMode)==="inline"?(console.log("advanced-search: Inline component ref is available and active tab is inline. Attempting to focus child input..."),e.nextTick(()=>{console.log("advanced-search: Inside nextTick. Attempting to call child's focus method..."),console.log("advanced-search: Type of newValue:",typeof h),console.log("advanced-search: Does newValue have focusInput?",typeof h.focusInput=="function"),h&&typeof h.focusInput=="function"?(console.log("advanced-search: Calling exposed focusInput() method on child instance."),h.focusInput()):console.warn('advanced-search: Child inline component instance does not expose a "focusInput" method or is not ready.',h)})):console.log(h?"advanced-search: inlineComponentRef available, but active tab is not inline.":"advanced-search: inlineComponentRef is now null (component likely unmounted).")}),e.onMounted(()=>{document.addEventListener("click",x),window.addEventListener("resize",Y)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",x),window.removeEventListener("resize",Y)});const Y=()=>{var h,B;if(typeof window<"u"){const w=window.innerWidth<=768,z=a.value!==null&&(a.value.displayMode==="popup"||a.value.displayMode==="inline")&&window.innerWidth>768;!w&&(((h=a.value)==null?void 0:h.displayMode)==="popup"||((B=a.value)==null?void 0:B.displayMode)==="inline")&&window.innerWidth<=768&&(console.log("Resizing to mobile, closing active tab."),a.value=null),w&&!z&&a.value!==null&&(console.log("Resizing to desktop from potential mobile active state, closing active tab."),a.value=null);const p=document.getElementById(`advancedSearchMobile-${r}`);p!=null&&p.open&&!w&&(console.log("Modal is open on desktop, closing modal and active tab."),p.close(),a.value=null)}};return(h,B)=>{var w,z;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:S},[e.createElementVNode("div",Hn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((w=l.searchOptions.find(p=>p.category===l.currentCategory))==null?void 0:w.tabs)||[],(p,v)=>{var b,I,O,q,G;return e.openBlock(),e.createElementBlock("button",{key:`${p.name}-${v}`,onClick:e.withModifiers(y=>k(p),["stop"]),class:e.normalizeClass([{"tab-active":((b=a.value)==null?void 0:b.name)===p.name,"tab-active-inline":((I=a.value)==null?void 0:I.name)===p.name&&((O=a.value)==null?void 0:O.displayMode)==="inline"},"group/searchitem after:top-0 after:-right-2 after:absolute relative first-of-type:flex-auto last-of-type:flex-auto after:bg-base-200 hover:bg-base-200 p-1 rounded-sm w-auto after:w-px after:h-10 overflow-x-hidden text-start md:after:content-[''] after:content-none last-of-type:after:content-none"]),ref_for:!0,ref:y=>i.value[p.name]=y},[((q=a.value)==null?void 0:q.name)===p.name&&((G=a.value)==null?void 0:G.displayMode)==="inline"?(e.openBlock(),e.createElementBlock("div",Kn,[(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]=y=>d(y)),"onUpdate:modelValue":B[1]||(B[1]=y=>d(y)),onBlur:M,onKeydown:e.withKeys(e.withModifiers(U,["stop","prevent"]),["enter"]),ref_for:!0,ref_key:"inlineComponentRef",ref:s}),null,16,["modelValue","onKeydown"]))])):(e.openBlock(),e.createElementBlock("div",Yn,[e.createElementVNode("p",Xn,e.toDisplayString(p.name),1),p.value!==void 0&&p.value!==null&&p.value!==""?(e.openBlock(),e.createElementBlock("p",Gn,e.toDisplayString(g(p)),1)):(e.openBlock(),e.createElementBlock("p",Jn,e.toDisplayString(p.description),1))]))],10,Wn)}),128))]),a.value&&a.value.displayMode==="popup"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"absolute flex shadow-sm mt-4 w-fit max-w-full transition-all tab-content",style:e.normalizeStyle(u.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c[a.value.type]),e.mergeProps(a.value.props||{},{modelValue:a.value.value,onUpdated:B[2]||(B[2]=p=>f(p)),"onUpdate:modelValue":B[3]||(B[3]=p=>f(p))}),null,16,["modelValue"]))],4)):e.createCommentVNode("",!0),e.createElementVNode("button",{title:"search",type:"submit",class:"ml-1 btn btn-primary btn-square",onClick:e.withModifiers($,["stop"])},[e.createVNode(e.unref(lt),{size:24,color:"white"})])]),e.createElementVNode("div",Zn,[e.createElementVNode("button",{title:"search",onClick:B[4]||(B[4]=()=>{})},[e.createVNode(e.unref(lt),{size:24,color:"white"})])])],512),e.createElementVNode("dialog",{id:`advancedSearchMobile-${e.unref(r)}`,class:"modal"},[e.createElementVNode("div",eo,[e.renderSlot(h.$slots,"additionalForMobile",{},()=>[e.createElementVNode("h3",to,e.toDisplayString(t.currentCategory),1)],!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((z=l.searchOptions.find(p=>p.category===l.currentCategory))==null?void 0:z.tabs)||[],(p,v)=>(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:v===0},null,8,no),e.createElementVNode("div",oo,[e.createElementVNode("div",null,e.toDisplayString(p.name),1),p.value!==void 0&&p.value!==null&&p.value!==""?(e.openBlock(),e.createElementBlock("div",lo,e.toDisplayString(g(p)),1)):(e.openBlock(),e.createElementBlock("div",ao,e.toDisplayString(p.description),1))]),e.createElementVNode("div",ro,[B[7]||(B[7]=e.createElementVNode("br",null,null,-1)),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c[p.type]),e.mergeProps({ref_for:!0},p.props||{},{modelValue:p.value,onUpdated:B[5]||(B[5]=b=>f(b)),"onUpdate:modelValue":B[6]||(B[6]=b=>f(b))}),null,16,["modelValue"]))])]))),128)),e.createElementVNode("div",{class:"modal-action"},[e.createElementVNode("form",{method:"dialog"},[e.createElementVNode("button",{class:"btn btn-primary",onClick:$}," Close and Search ")])])])],8,Qn)],64)}}}),[["__scopeId","data-v-577c3624"]]),io={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"},co={key:0},uo={key:1},mo=["id","onKeydown"],fo={key:2,class:"flex justify-center p-4"},po={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"},ho={class:"join-item"},go=["id","disabled","value"],yo={class:"join-item"},bo=["id","disabled","value"],ko={key:3,class:"p-4 min-w-2xs"},wo=["id","disabled","value"],xo={key:4,class:"flex px-4 my-4 w-full justify-end"},rt=ae(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),g=e.ref(null),f=e.ref({from:"",to:"",single:""}),d=e.ref({single:null,start:null,end:null}),$=y=>y instanceof Date?y.toISOString():y,x=y=>y.split("T")[0]||"",S=y=>{const E=y instanceof Date?y:new Date(y);if(isNaN(E.getTime()))return"";const N=String(E.getHours()).padStart(2,"0"),T=String(E.getMinutes()).padStart(2,"0");return`${N}:${T}`},k=()=>{const y=new Date,E=S(y);let N=o.initialDate;if(!N&&o.mode!=="time"&&(N=o.range?{start:y,end:y}:y),!!N){if(!N){o.mode==="time"&&(o.range?(f.value.from=E,f.value.to=E):f.value.single=E);return}if(o.range&&typeof N=="object"&&"start"in N){const T=$(N.start),P=$(N.end);d.value.start=x(T),d.value.end=x(P),o.mode!=="date"&&(f.value.from=S(T),f.value.to=S(P))}else{const T=$(N);d.value.single=x(T),o.mode!=="date"&&(f.value.single=S(T))}}},M=e.computed(()=>{const y=T=>{if(!T)return"";if(T.includes(":"))return T;try{return new Date(T+"T00:00:00").toLocaleDateString(o.locale,{year:"numeric",month:"numeric",day:"numeric"})}catch{const[P,j,H]=T.split("-");return`${H}/${j}/${P}`}};let E="",N="";if((o.mode==="date"||o.mode==="datetime")&&(o.range?d.value.start&&d.value.end&&(E=`${d.value.start} - ${d.value.end}`):d.value.single&&(E=d.value.single)),(o.mode==="time"||o.mode==="datetime")&&(o.range?f.value.from&&f.value.to&&(N=`${f.value.from} - ${f.value.to}`):f.value.single&&(N=f.value.single)),o.mode==="date")return o.range?E.split(" - ").map(y).join(" - "):y(E);if(o.mode==="time")return N;if(o.mode==="datetime")if(o.range){const T=d.value.start,P=d.value.end,j=f.value.from,H=f.value.to;if(T&&P&&j&&H)return`${y(T)} ${j} - ${y(P)} ${H}`;if(T)return`${y(T)} ${j||""}`.trim()}else{const T=d.value.single,P=f.value.single;return`${y(T)} ${P||""}`.trim()}return""}),U=()=>{if(c.value)d.value.single=c.value.value||null;else if(i.value){const y=i.value.value;if(typeof y=="string"&&y.includes("/")){const[E,N]=y.split("/");d.value.start=E||null,d.value.end=N||null}else d.value.start=y||null,d.value.end=y||null}},Y=()=>d.value.start&&d.value.end?`${d.value.start}/${d.value.end}`:null,h=()=>{if(o.range){const N=d.value.start,T=d.value.end||d.value.start,P=f.value.from,j=f.value.to;if(o.mode==="time")return P&&j?{start:P,end:j}:null;if(o.mode==="date")return N&&T?{start:N,end:T}:null;if(o.mode==="datetime"){if(!N||!T)return null;const H=P?`${P}:00`:"00:00:00",ee=j?`${j}:00`:"23:59:59",oe=`${N}T${H}`,et=`${T}T${ee}`;return{start:oe,end:et}}return null}const y=d.value.single,E=f.value.single;if(o.mode==="time")return E||null;if(o.mode==="date")return y||null;if(o.mode==="datetime"){if(!y)return null;const N=E?`${E}:00`:"00:00:00";return`${y}T${N}`}return null},B=async()=>{U();const y=h();r("update:modelValue",y),r("change",y)},w=()=>{e.nextTick(()=>{B()})},z=y=>{const E=y.target;o.range?E===m.value?f.value.from=E.value:E===g.value&&(f.value.to=E.value):f.value.single=E.value,B()},p=()=>{s.value=!s.value},v=()=>{B(),s.value=!1},b=y=>{!o.popup||!s.value||setTimeout(()=>{const E=a.value,N=y.target,T=`date-picker-${o.id}-popup`;E&&!E.contains(N)&&!y.target.closest(`#${T}`)&&v()},0)},I=()=>{v()},O=()=>{B(),o.popup&&(s.value=!1)},q=()=>{if(!l)return;const y=o.range?i.value:c.value;y&&typeof y.navigate=="function"&&y.navigate(-1)},G=()=>{if(!l)return;const y=o.range?i.value:c.value;y&&typeof y.navigate=="function"&&y.navigate(1)};return e.onMounted(()=>{l&&Promise.resolve().then(()=>Ia).catch(y=>{console.warn("Failed to load cally:",y)}),k()}),e.watch(d,async y=>{if(await e.nextTick(),c.value&&y.single){const E=y.single;c.value.value!==E&&(c.value.value=E)}if(i.value){const E=Y();E&&i.value.value!==E&&(i.value.value=E)}B()},{immediate:!0,deep:!0}),e.watch([d,c,i],async()=>{await e.nextTick(),c.value&&d.value.single&&!c.value.value&&(c.value.value=d.value.single),i.value&&d.value.start&&d.value.end&&!i.value.value&&(i.value.value=`${d.value.start}/${d.value.end}`),B()},{immediate:!0}),e.watch([u,m,g],()=>{B()},{immediate:!0}),(y,E)=>{const N=e.resolveComponent("calendar-month"),T=e.resolveComponent("calendar-date"),P=e.resolveComponent("calendar-range");return e.openBlock(),e.createElementBlock("div",{class:"inline-block relative w-fit lg:w-full",ref_key:"pickerContainer",ref:a,onMousedownCapture:b},[o.popup?(e.openBlock(),e.createElementBlock("div",{key:0,class:"flex items-center gap-2 cursor-pointer w-full",onClick:E[0]||(E[0]=j=>o.disabled?null:p())},[e.createElementVNode("div",io,[M.value?(e.openBlock(),e.createElementBlock("span",uo,e.toDisplayString(M.value),1)):(e.openBlock(),e.createElementBlock("span",co,e.toDisplayString(o.placeholder),1))])])):e.createCommentVNode("",!0),s.value||!o.popup?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["z-50 bg-base-100 rounded-md w-full min-w-xs overflow-hidden",{"absolute top-full left-0 mt-2 shadow-lg":o.popup,"mt-2":!o.popup}]),id:`date-picker-${o.id}-popup`,onKeydown:[E[1]||(E[1]=e.withKeys(e.withModifiers(()=>{},["prevent","stop"]),["tab"])),e.withKeys(I,["esc"]),e.withKeys(e.withModifiers(O,["prevent"]),["enter"])]},[!o.range&&o.mode!=="time"&&l?(e.openBlock(),e.createBlock(T,{key:0,class:"cally w-full",ref_key:"datePicker",ref:c,id:`${o.id}-date`,min:o.min,max:o.max,disabled:o.disabled,"first-day-of-week":o.firstDayOfWeek,onChange:w},{default:e.withCtx(()=>[e.createElementVNode("button",{slot:"previous",class:"btn-outline btn btn-primary md:btn-sm",onClick:q},[...E[2]||(E[2]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1)])]),e.createElementVNode("button",{slot:"next",class:"btn-outline btn btn-primary md:btn-sm",onClick:G},[...E[3]||(E[3]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"})],-1)])]),e.createVNode(N,{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(P,{key:1,class:"cally w-full",ref_key:"rangeDatePicker",ref:i,id:`${o.id}-date-range`,min:o.min,max:o.max,disabled:o.disabled,"first-day-of-week":o.firstDayOfWeek,onChange:w},{default:e.withCtx(()=>[e.createElementVNode("button",{slot:"previous",class:"btn-outline btn btn-primary md:btn-sm",onClick:q},[...E[4]||(E[4]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1)])]),e.createElementVNode("button",{slot:"next",class:"btn-outline btn btn-primary md:btn-sm",onClick:G},[...E[5]||(E[5]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"})],-1)])]),e.createVNode(N,{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",fo,[e.createElementVNode("div",po,[e.createElementVNode("div",ho,[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:z,disabled:o.disabled,value:f.value.from||""},null,40,go)]),E[6]||(E[6]=e.createElementVNode("svg",{class:"join-item",viewBox:"0 0 1024 1024",focusable:"false","data-icon":"swap-right",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"})],-1)),e.createElementVNode("div",yo,[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:g,id:`${o.id}-time-to`,onChange:z,disabled:o.disabled,value:f.value.to||""},null,40,bo)])])])):e.createCommentVNode("",!0),!o.range&&o.mode!=="date"?(e.openBlock(),e.createElementBlock("div",ko,[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:z,disabled:o.disabled,value:f.value.single||""},null,40,wo)])):e.createCommentVNode("",!0),o.popup&&o.closeText?(e.openBlock(),e.createElementBlock("div",xo,[e.createElementVNode("button",{class:"btn btn-primary max-lg:w-full",onClick:v},e.toDisplayString(o.closeText),1)])):e.createCommentVNode("",!0)],42,mo)):e.createCommentVNode("",!0)],544)}}}),[["__scopeId","data-v-e0b34494"]]),vo=Object.freeze(Object.defineProperty({__proto__:null,default:rt},Symbol.toStringTag,{value:"Module"})),Eo=["value","checked","onChange","disabled"],Bo=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,Eo))),128))],2))}}),$o={class:"badge"},Co=["onClick"],So={class:"opacity-75"},Vo=["placeholder"],No=e.defineComponent({__name:"taginput",props:{modelValue:{},maxTagAmount:{},placeholder:{},class:{}},emits:["update:modelValue"],setup(t,{emit:n}){const l=t,o=n,r=e.ref([...l.modelValue]),a=l.maxTagAmount===void 0?-1:l.maxTagAmount,s=e.ref(null),c=e.ref(""),i=e.computed(()=>a<0||r.value.length<a),u=()=>{const d=c.value.trim();d&&!r.value.includes(d)&&(r.value.push(d),o("update:modelValue",r.value),c.value="")},m=d=>{r.value=r.value.filter($=>$!==d),o("update:modelValue",r.value)},g=()=>{c.value===""&&(r.value.pop(),o("update:modelValue",r.value))},f=d=>{d.key==="Enter"?u():d.key==="Backspace"&&c.value===""&&g()};return e.watch(()=>l.modelValue,d=>{r.value=[...d]}),(d,$)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex flex-wrap gap-2 bg-base-100 shadow px-4 py-6 border border-base-content/20 rounded",d.$props.class])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,x=>e.renderSlot(d.$slots,"tag",{key:x,tag:x},()=>[e.createElementVNode("div",$o,[e.createElementVNode("button",{class:"px-1! py-0! h-fit font-bold cursor-pointer",onClick:S=>m(x),"aria-label":"Remove tag"},"X",8,Co),e.createElementVNode("span",So,e.toDisplayString(x),1)])])),128)),e.renderSlot(d.$slots,"input",{showInput:i.value},()=>[i.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,ref_key:"inputRef",ref:s,"onUpdate:modelValue":$[0]||($[0]=x=>c.value=x),type:"text",placeholder:t.placeholder||"Type here",class:"h-full input input-ghost",onKeydown:f,"aria-label":"Add tags"},null,40,Vo)),[[e.vModelText,c.value]]):e.createCommentVNode("",!0)])],2))}}),Do={class:"w-full max-w-xs form-control"},zo={key:0,class:"label"},To={class:"label-text"},Mo=["value"],Io={key:0,value:"",disabled:"",selected:""},Oo=["value"],st=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",Do,[t.label?(e.openBlock(),e.createElementBlock("label",zo,[e.createElementVNode("span",To,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",Io,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,Oo))),128))],40,Mo)]))}}),_o=Object.freeze(Object.defineProperty({__proto__:null,default:st},Symbol.toStringTag,{value:"Module"})),Lo={key:0,class:"label"},Po={class:"label-text"},jo=["onKeydown","aria-expanded","aria-activedescendant"],Ao=["placeholder","disabled"],Fo={class:"top-full z-10 absolute bg-base-100 shadow-lg mt-1 rounded-md w-full dropdown-content",role:"listbox"},Uo={class:"flex-nowrap p-0 w-[inherit] max-h-60 overflow-y-auto menu"},Ro=["onMousedown","id","aria-selected"],qo={__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 v=(a.default?a.default():[]).filter(b=>b.type!==e.Comment);return console.log("hasDefaultSlotContent computed:",v.length>0),v.length>0}),c=e.ref(""),i=e.ref(null),u=e.ref(!1),m=e.ref(null),g=e.ref(null),f=e.ref(null),d=e.ref(null),$=()=>{u.value=!o.disabled},x=()=>{u.value=!1,d.value=null,s.value||(i.value&&c.value!==i.value.text?c.value=i.value.text:i.value||(c.value=""))},S=()=>{u.value?x():$()},k=e.computed(()=>{const p=c.value?c.value.toLowerCase():"";return p===""&&!u.value?[]:o.options.filter(b=>b&&b.text?b.text.toLowerCase().includes(p):"")});e.watch(()=>o.modelValue,(p,v)=>{if(p!==v&&x(),p==null)i.value=null,!u.value&&!s.value&&(c.value="");else{const b=o.options.find(I=>I.value===p);b?(i.value=b,!u.value&&!s.value&&(c.value=b.text)):(i.value=null,!u.value&&!s.value&&(c.value=""))}},{immediate:!0});const M=p=>{g.value&&!g.value.contains(p.target)&&x()},U=()=>{setTimeout(()=>{g.value&&!g.value.contains(document.activeElement)&&x()},100)};e.watch(u,p=>{p?setTimeout(()=>{document.addEventListener("click",M)},0):document.removeEventListener("click",M)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",M),window.removeEventListener("keydown",z)});const Y=()=>{if(o.disabled)return;const p=i.value;r("update:modelValue",null),p&&r("clear",p)},h=p=>{i.value=p,s.value||(c.value=p.text),r("update:modelValue",p.value),r("select",p),x()},B=()=>{k.value.length>0&&h(k.value[0])},w=()=>{u.value||$()},z=p=>{if(!u.value||k.value.length===0)return;const v=k.value.findIndex((I,O)=>"option-"+O===d.value);let b=-1;if(p.key==="ArrowDown")p.preventDefault(),b=(v+1)%k.value.length;else if(p.key==="ArrowUp")p.preventDefault(),b=(v-1+k.value.length)%k.value.length;else if(p.key==="Enter"&&d.value){p.preventDefault();const I=k.value.find((O,q)=>"option-"+q===d.value);I&&h(I);return}else if(p.key==="Escape"){p.preventDefault(),x(),f.value&&f.value.focus();return}else if(s.value)return;if(b!==-1){d.value="option-"+b;const I=document.getElementById(d.value);I&&requestAnimationFrame(()=>{I.scrollIntoView({block:"nearest",behavior:"smooth"})})}};return e.watch(u,p=>{p?(window.addEventListener("keydown",z),!s.value&&!c.value&&i.value&&(c.value=i.value.text)):window.removeEventListener("keydown",z)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",M),window.removeEventListener("keydown",z)}),n({isDropdownOpen:u,selectedItem:i,openDropdown:$,closeDropdown:x,toggleDropdown:S,selectItem:h,filterText:c,hasDefaultSlotContent:s}),(p,v)=>(e.openBlock(),e.createElementBlock("div",{class:"relative w-full max-w-xs form-control",ref_key:"componentRoot",ref:g},[t.label?(e.openBlock(),e.createElementBlock("label",Lo,[e.createElementVNode("span",Po,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:v[1]||(v[1]=b=>s.value?S():$()),onKeydown:[e.withKeys(e.withModifiers(B,["prevent"]),["enter"]),e.withKeys(e.withModifiers(B,["prevent"]),["space"])],onBlur:U,role:"combobox","aria-haspopup":"listbox","aria-expanded":u.value,"aria-activedescendant":d.value,"aria-autocomplete":"list",ref_key:"activatorWrapper",ref:f},[e.renderSlot(p.$slots,"default",{},()=>[s.value?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,type:"text",placeholder:t.placeholder,class:"bg-transparent border-none focus:outline-none w-full","onUpdate:modelValue":v[0]||(v[0]=b=>c.value=b),ref_key:"filterInput",ref:m,onFocus:$,onInput:w,tabindex:"-1",disabled:o.disabled},null,40,Ao)),[[e.vModelText,c.value]])]),i.value&&!t.disabled?(e.openBlock(),e.createBlock(e.unref(rn),{key:0,size:20,class:"mx-2 text-base-content/50 hover:text-base-content/80 cursor-pointer",onClick:e.withModifiers(Y,["stop"])})):e.createCommentVNode("",!0),s.value&&!i.value?(e.openBlock(),e.createBlock(e.unref(an),{key:1,class:e.normalizeClass([{"rotate-180":u.value},"mx-2"]),size:20},null,8,["class"])):e.createCommentVNode("",!0)],46,jo),e.withDirectives(e.createElementVNode("div",Fo,[e.createElementVNode("ul",Uo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,(b,I)=>(e.openBlock(),e.createElementBlock("li",{key:b.value,onMousedown:e.withModifiers(O=>h(b),["prevent"]),class:"hover:bg-base-200 rounded-md w-full cursor-pointer",id:"option-"+I,role:"option","aria-selected":i.value&&i.value.value===b.value},[e.createElementVNode("a",null,e.toDisplayString(b.text),1)],40,Ro))),128))])],512),[[e.vShow,u.value&&k.value.length>0]])],512))}},Ho={class:"w-full max-w-xs form-control"},Wo={key:0,class:"label"},Ko={class:"label-text"},Yo=["type","placeholder","disabled","value"],Xo={key:1,class:"label"},Go={class:"label-text-alt text-error validator-hint"},Jo={key:2,class:"label"},Zo={class:"label-text-alt text-success validator-hint"},it=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 S,k,M,U;let d=!0,$="";const x=o.modelValue;return(S=o.rules)!=null&&S.required&&(x==null||x==="")&&(d=!1,$="This field is required."),d&&((k=o.rules)==null?void 0:k.minLength)!==void 0&&typeof x=="string"&&x.length<o.rules.minLength&&(d=!1,$=`Must be at least ${o.rules.minLength} characters.`),d&&((M=o.rules)==null?void 0:M.maxLength)!==void 0&&typeof x=="string"&&x.length>o.rules.maxLength&&(d=!1,$=`Cannot exceed ${o.rules.maxLength} characters.`),d&&((U=o.rules)!=null&&U.email)&&typeof x=="string"&&x&&(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(x)||(d=!1,$="Please enter a valid email address.")),c.value=$,r("validate",d),d}),u=e.computed(()=>s.value&&!i.value),m=d=>{const $=d.target;r("update:modelValue",$.value),s.value&&i.value},g=()=>{s.value=!0,i.value};return e.watch(()=>o.modelValue,()=>{s.value&&i.value}),n({focusInput:()=>{var d;console.log("inputField.vue: focusInput method called."),(d=a.value)==null||d.focus()},isValid:i,isTouched:s,errorMessage:c}),(d,$)=>(e.openBlock(),e.createElementBlock("div",Ho,[t.label?(e.openBlock(),e.createElementBlock("label",Wo,[e.createElementVNode("span",Ko,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:g},null,42,Yo),u.value?(e.openBlock(),e.createElementBlock("div",Xo,[e.createElementVNode("span",Go,e.toDisplayString(c.value),1)])):i.value&&s.value&&t.successMessage?(e.openBlock(),e.createElementBlock("div",Jo,[e.createElementVNode("span",Zo,e.toDisplayString(t.successMessage),1)])):e.createCommentVNode("",!0)]))}}),Qo=Object.freeze(Object.defineProperty({__proto__:null,default:it},Symbol.toStringTag,{value:"Module"})),el=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)}}),Ce=e.ref([]);function tl(){const t=(l,o="default",r=5e3)=>{const a=Math.random().toString(36).substring(2,9);Ce.value.push({id:a,message:l,type:o,duration:r})},n=l=>{Ce.value=Ce.value.filter(o=>o.id!==l)};return{toasts:e.readonly(Ce),addToast:t,removeToast:n}}const nl=["value"],ct=ae(e.defineComponent({__name:"ToastNotification",props:{toast:{type:Object,required:!0}},emits:["remove"],setup(t,{emit:n}){const l=t,o=n,r=e.ref(100);let a=null,s=null;e.onMounted(()=>{const i=l.toast.duration,u=Date.now();a=setTimeout(()=>{o("remove",l.toast.id)},i),s=setInterval(()=>{const m=Date.now()-u,g=Math.max(0,i-m);r.value=g/i*100,g===0&&clearInterval(s)},50)}),e.onUnmounted(()=>{a&&clearTimeout(a),s&&clearInterval(s)});const c=e.computed(()=>{switch(l.toast.type){case"success":return"alert-success";case"warning":return"alert-warning";case"error":return"alert-error";case"info":return"alert-info";default:return""}});return(i,u)=>(e.openBlock(),e.createElementBlock("div",{role:"alert",class:e.normalizeClass(["alert",c.value,"shadow-lg"])},[e.createElementVNode("span",null,e.toDisplayString(t.toast.message),1),e.createElementVNode("progress",{class:e.normalizeClass(["progress absolute bottom-0 left-0 w-full progress-neutral"]),value:r.value,max:"100"},null,8,nl)],2))}}),[["__scopeId","data-v-08105eee"]]),ol=ae(e.defineComponent({__name:"ToastContainer",props:{position:{type:String,default:"top-end"}},setup(t){const n=t,{toasts:l,removeToast:o}=tl(),r=e.computed(()=>{const[a,s]=n.position.split("-");return{"toast-top":a==="top","toast-middle":a==="middle","toast-bottom":a==="bottom","toast-start":s==="start","toast-center":s==="center","toast-end":s==="end"}});return(a,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["toast",r.value])},[e.createVNode(e.TransitionGroup,{name:"toast-fade"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),c=>(e.openBlock(),e.createBlock(ct,{key:c.id,toast:c,onRemove:i=>e.unref(o)(c.id)},null,8,["toast","onRemove"]))),128))]),_:1})],2))}}),[["__scopeId","data-v-f910f41f"]]),ll={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",class:"w-6 h-6 stroke-current shrink-0"},al=["d"],rl={class:"empty:hidden"},sl=e.defineComponent({__name:"alert",props:{type:{default:"default"},message:{},closable:{type:Boolean,default:!1},modelValue:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(t,{emit:n}){const l=t,o=n,r=e.computed({get:()=>l.modelValue,set:i=>o("update:modelValue",i)}),a=e.computed(()=>{switch(l.type){case"info":return"alert-info";case"success":return"alert-success";case"warning":return"alert-warning";case"error":return"alert-error";default:return""}}),s=e.computed(()=>{switch(l.type){case"info":return"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z";case"success":return"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z";case"warning":return"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z";case"error":return"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z";default:return"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}}),c=()=>{r.value=!1};return(i,u)=>r.value?(e.openBlock(),e.createElementBlock("div",{key:0,role:"alert",class:e.normalizeClass(["alert",a.value])},[e.renderSlot(i.$slots,"icon",{class:"w-6 h-6"},()=>[(e.openBlock(),e.createElementBlock("svg",ll,[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:s.value},null,8,al)]))]),e.createElementVNode("span",null,e.toDisplayString(t.message),1),e.createElementVNode("div",rl,[t.closable?(e.openBlock(),e.createElementBlock("button",{key:0,class:"btn btn-sm btn-ghost",onClick:c},"Close")):e.createCommentVNode("",!0),e.renderSlot(i.$slots,"default")])],2)):e.createCommentVNode("",!0)}}),il={class:"container flex flex-col sm:flex-row"},cl={class:"footer-title"},dl=["href"],ul={key:0,class:"sm:hidden w-full"},ml={class:"border-b-2 border-base-100 last:border-b-0 w-full"},fl={tabindex:"0",class:"collapse collapse-plus w-full"},pl={class:"collapse-title font-bold text-lg collapsible-footer-title"},hl={class:"collapse-content flex w-full text-sm"},gl={class:"flex flex-col gap-2.5"},yl={class:"w-full"},bl=["href"],kl={class:"sm:w-1/4"},wl=e.defineComponent({__name:"footer",props:{items:{},background:{},color:{},collapseOnMobile:{type:Boolean,default:!1},rows:{default:1}},setup(t){const n=t;return(l,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["mx-auto md:px-10 py-10 text-base-content",[t.background??"bg-base-200",t.color??"text-base-content"]])},[e.createElementVNode("footer",il,[e.createElementVNode("div",{class:e.normalizeClass(["footer sm:footer-horizontal sm:w-3/4",[{"sm:grid-rows-1":n.rows===1},{"sm:grid-rows-2":n.rows===2},{"sm:grid-rows-3":n.rows===3}]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,r=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass([{"hidden sm:grid w-max":t.collapseOnMobile}])},[e.createElementVNode("h6",cl,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,dl))),256))],2))),256)),e.createElementVNode("nav",{class:e.normalizeClass(["empty:hidden",[{"hidden sm:grid":t.collapseOnMobile}]])},[e.renderSlot(l.$slots,"extra-row")],2),t.collapseOnMobile?(e.openBlock(),e.createElementBlock("nav",ul,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,r=>(e.openBlock(),e.createElementBlock("ul",ml,[e.createElementVNode("div",fl,[e.createElementVNode("div",pl,e.toDisplayString(r.title),1),e.createElementVNode("div",hl,[e.createElementVNode("ul",gl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.items,a=>(e.openBlock(),e.createElementBlock("li",yl,[e.createElementVNode("a",{class:"w-full font-medium link link-hover",href:a.link},e.toDisplayString(a.text),9,bl)]))),256))])])])]))),256))])):e.createCommentVNode("",!0)],2),e.createElementVNode("aside",kl,[e.renderSlot(l.$slots,"default")])])],2))}}),xl={},vl={class:"min-h-40 container hero"},El={class:"px-0! text-center hero-content"},Bl={class:"mt-9 text-4xl"};function $l(t,n){return e.openBlock(),e.createElementBlock("div",vl,[e.createElementVNode("div",El,[e.createElementVNode("div",null,[e.createElementVNode("h1",Bl,[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 Cl=ae(xl,[["render",$l]]),Sl={class:"flex flex-row place-content-center gap-4 categories"},Vl=["onClick"],Nl=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",Sl,[(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,Vl)]))),128))]))}}),Dl={class:"md:flex hidden navbar-start"},zl={class:"md:flex justify-center items-center hidden navbar-center"},Tl={class:"md:flex hidden navbar-end"},Ml={class:"navbar-bottom md:flex hidden"},Il=ae(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",Dl,[e.renderSlot(l.$slots,"start",{},void 0,!0)]),e.createElementVNode("div",zl,[e.renderSlot(l.$slots,"center",{},void 0,!0)]),e.createElementVNode("div",Tl,[e.renderSlot(l.$slots,"end",{},void 0,!0)]),e.createElementVNode("div",Ml,[e.renderSlot(l.$slots,"bottom",{},void 0,!0)])],2))}}),[["__scopeId","data-v-8ddb2b45"]]),Ol={key:0,class:"hidden top-4 right-0 absolute md:flex gap-4"},_l=["onClick","aria-selected"],Ll={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"},Pl={class:"p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full"},jl=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",Ol,[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:g=>a(m),"aria-selected":o.value==m},e.toDisplayString(m),11,_l),t.buttonOnlyMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Ll,[e.renderSlot(i.$slots,`${m}-tab`)]))],64))),256))],2),e.createElementVNode("div",Pl,[e.renderSlot(i.$slots,"default")])],64))}});typeof document>"u"&&(globalThis.document={}),typeof window>"u"&&(globalThis.window=globalThis);class Al{constructor(n){nt(this,ie);nt(this,me,new Set);ot(this,ie,n)}get current(){return pe(this,ie)}set current(n){pe(this,ie)!=n&&(ot(this,ie,n),pe(this,me).forEach(l=>l(n)))}on(n){return pe(this,me).add(n),()=>pe(this,me).delete(n)}}ie=new WeakMap,me=new WeakMap;const dt=t=>new Al(t),Ie=Symbol.for("atomico.hooks");globalThis[Ie]=globalThis[Ie]||{};let ce=globalThis[Ie];const Fl=Symbol.for("Atomico.suspense"),ut=Symbol.for("Atomico.effect"),Ul=Symbol.for("Atomico.layoutEffect"),mt=Symbol.for("Atomico.insertionEffect"),de=(t,n,l)=>{const{i:o,hooks:r}=ce.c,a=r[o]=r[o]||{};return a.value=t(a.value),a.effect=n,a.tag=l,ce.c.i++,r[o].value},Rl=t=>de((n=dt(t))=>n),ge=()=>de((t=dt(ce.c.host))=>t),ft=()=>ce.c.update,ql=(t,n,l=0)=>{let o={},r=!1;const a=()=>r,s=(c,i)=>{for(const u in o){const m=o[u];m.effect&&m.tag===c&&(m.value=m.effect(m.value,i))}};return{load:c=>{ce.c={host:n,hooks:o,update:t,i:0,id:l};let i;try{r=!1,i=c()}catch(u){if(u!==Fl)throw u;r=!0}finally{ce.c=null}return i},cleanEffects:c=>(s(mt,c),()=>(s(Ul,c),()=>{s(ut,c)})),isSuspense:a}},ue=Symbol.for;function pt(t,n){const l=t.length;if(l!==n.length)return!1;for(let o=0;o<l;o++){let r=t[o],a=n[o];if(r!==a)return!1}return!0}const Q=t=>typeof t=="function",ye=t=>typeof t=="object",{isArray:Hl}=Array,Oe=(t,n)=>(n?t instanceof HTMLStyleElement:!0)&&"hydrate"in((t==null?void 0:t.dataset)||{});function ht(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 gt=(t,n,l)=>(t.addEventListener(n,l),()=>t.removeEventListener(n,l));class yt{constructor(n,l,o){this.message=l,this.target=n,this.value=o}}class bt extends yt{}class Wl extends yt{}const Se="Custom",Kl=null,Yl={true:1,"":1,1:1};function Xl(t,n,l,o,r){const{type:a,reflect:s,event:c,value:i,attr:u=Gl(n)}=(l==null?void 0:l.name)!=Se&&ye(l)&&l!=Kl?l:{type:l},m=(a==null?void 0:a.name)===Se&&a.map,g=i!=null?a==Function||!Q(i)?()=>i:i:null;Object.defineProperty(t,n,{configurable:!0,set(f){const d=this[n];g&&a!=Boolean&&f==null&&(f=g());const{error:$,value:x}=(m?Ql:ea)(a,f);if($&&x!=null)throw new bt(this,`The value defined for prop '${n}' must be of type '${a.name}'`,x);d!=x&&(this._props[n]=x??void 0,this.update(),c&&kt(this,c),this.updated.then(()=>{s&&(this._ignoreAttr=u,Jl(this,a,u,this[n]),this._ignoreAttr=null)}))},get(){return this._props[n]}}),g&&(r[n]=g()),o[u]={prop:n,type:a}}const kt=(t,{type:n,base:l=CustomEvent,...o})=>t.dispatchEvent(new l(n,o)),Gl=t=>t.replace(/([A-Z])/g,"-$1").toLowerCase(),Jl=(t,n,l,o)=>o==null||n==Boolean&&!o?t.removeAttribute(l):t.setAttribute(l,(n==null?void 0:n.name)===Se&&(n!=null&&n.serialize)?n==null?void 0:n.serialize(o):ye(o)?JSON.stringify(o):n==Boolean?"":o),Zl=(t,n)=>t==Boolean?!!Yl[n]:t==Number?Number(n):t==String?n:t==Array||t==Object?JSON.parse(n):t.name==Se?n:new t(n),Ql=({map:t},n)=>{try{return{value:t(n),error:!1}}catch{return{value:n,error:!0}}},ea=(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 ta=0;const na=t=>{var l;return((l=(t==null?void 0:t.dataset)||{})==null?void 0:l.hydrate)||""||"c"+ta++},be=(t,n=HTMLElement)=>{const l={},o={},r="prototype"in n&&n.prototype instanceof Element,a=r?n:"base"in n?n.base:HTMLElement,{props:s,styles:c}=r?t:n;class i extends a{constructor(){super(),this._setup(),this._render=()=>t({...this._props});for(const m in o)this[m]=o[m]}static get styles(){return[super.styles,c]}async _setup(){if(this._props)return;this._props={};let m,g;this.mounted=new Promise(S=>this.mount=()=>{S(),m!=this.parentNode&&(g!=m?this.unmounted.then(this.update):this.update()),m=this.parentNode}),this.unmounted=new Promise(S=>this.unmount=()=>{S(),(m!=this.parentNode||!this.isConnected)&&(f.cleanEffects(!0)()(),g=this.parentNode,m=null)}),this.symbolId=this.symbolId||Symbol(),this.symbolIdParent=Symbol();const f=ql(()=>this.update(),this,na(this));let d,$=!0;const x=Oe(this);this.update=()=>(d||(d=!0,this.updated=(this.updated||this.mounted).then(()=>{try{const S=f.load(this._render),k=f.cleanEffects();return S&&S.render(this,this.symbolId,x),d=!1,$&&!f.isSuspense()&&($=!1,!x&&oa(this)),k()}finally{d=!1}}).then(S=>{S&&S()})),this.updated),this.update()}connectedCallback(){this.mount(),super.connectedCallback&&super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback(),this.unmount()}attributeChangedCallback(m,g,f){if(l[m]){if(m===this._ignoreAttr||g===f)return;const{prop:d,type:$}=l[m];try{this[d]=Zl($,f)}catch{throw new Wl(this,`The value defined as attr '${m}' cannot be parsed by type '${$.name}'`,f)}}else super.attributeChangedCallback(m,g,f)}static get props(){return{...super.props,...s}}static get observedAttributes(){const m=super.observedAttributes||[];for(const g in s)Xl(this.prototype,g,s[g],l,o);return Object.keys(l).concat(m)}}return i};function oa(t){const{styles:n}=t.constructor,{shadowRoot:l}=t;if(l&&n.length){const o=[];ht(n,r=>{r&&(r instanceof Element?l.appendChild(r.cloneNode(!0)):o.push(r))}),o.length&&(l.adoptedStyleSheets=o)}}const wt=t=>(n,l)=>{de(([o,r]=[])=>((r||!r)&&(r&&pt(r,l)?o=o||!0:(Q(o)&&o(),o=null)),[o,l]),([o,r],a)=>a?(Q(o)&&o(),[]):[o||n(),r],t)},ke=wt(ut),la=wt(mt);class xt 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 _e=t=>{const n=ft();return de((l=new xt(t,(o,r,a)=>{o=Q(o)?o(r[0]):o,o!==r[0]&&(r[0]=o,a||n())}))=>l)},ne=(t,n)=>{const[l]=de(([o,r,a=0]=[])=>((!r||r&&!pt(r,n))&&(o=t()),[o,n,a]));return l},Le=t=>{const{current:n}=ge();if(!(t in n))throw new bt(n,`For useProp("${t}"), the prop does not exist on the host.`,t);return de((l=new xt(n[t],(o,r)=>{o=Q(o)?o(n[t]):o,n[t]=o}))=>(l[0]=n[t],l))},re=(t,n={})=>{const l=ge();return l[t]||(l[t]=(o=n.detail)=>kt(l.current,{type:t,...n,detail:o})),l[t]},Pe=ue("atomico/options");globalThis[Pe]=globalThis[Pe]||{sheet:!!document.adoptedStyleSheets};const vt=globalThis[Pe],aa={checked:1,value:1,selected:1},ra={list:1,type:1,size:1,form:1,width:1,height:1,src:1,href:1,slot:1},sa={shadowDom:1,staticNode:1,cloneNode:1,children:1,key:1},Ve={},je=[];class Ae extends Text{}const ia=ue("atomico/id"),we=ue("atomico/type"),Fe=ue("atomico/ref"),Et=ue("atomico/vnode"),ca=()=>{};function da(t,n,l){return $t(this,t,n,l)}const Bt=(t,n,...l)=>{const o=n||Ve;let{children:r}=o;if(r=r??(l.length?l:je),t===ca)return r;const a=t?t instanceof Node?1:t.prototype instanceof HTMLElement&&2:0;if(a===!1&&t instanceof Function)return t(r!=je?{children:r,...o}:o);const s=vt.render||da;return{[we]:Et,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 $t(t,n,l=ia,o,r){let a;if(n&&n[l]&&n[l].vnode==t||t[we]!=Et)return n;(t||!n)&&(r=r||t.type=="svg",a=t.type!="host"&&(t.raw==1?(n&&t.clone?n[Fe]:n)!=t.type:t.raw==2?!(n instanceof t.type):n?n[Fe]||n.localName!=t.type:!n),a&&t.type!=null&&(t.raw==1&&t.clone?(o=!0,n=t.type.cloneNode(!0),n[Fe]=t.type):n=t.raw==1?t.type:t.raw==2?new t.type:r?document.createElementNS("http://www.w3.org/2000/svg",t.type):document.createElement(t.type,t.is?{is:t.is}:void 0)));const s=n[l]?n[l]:Ve,{vnode:c=Ve,cycle:i=0}=s;let{fragment:u,handlers:m}=s;const{children:g=je,props:f=Ve}=c;if(m=a?{}:m||{},t.static&&!a)return n;if(t.shadow&&!n.shadowRoot&&n.attachShadow({mode:"open",...t.shadow}),t.props!=f&&fa(n,f,t.props,m,r),t.children!==g){const d=t.shadow?n.shadowRoot:n;u=ma(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 ua(t,n){const l=new Ae(""),o=new Ae("");let r;if(t[n?"prepend":"append"](l),n){let{lastElementChild:a}=t;for(;a;){const{previousElementSibling:s}=a;if(Oe(a,!0)&&!Oe(s,!0)){r=a;break}a=s}}return r?r.before(o):t.append(o),{markStart:l,markEnd:o}}function ma(t,n,l,o,r,a){t=t==null?null:Hl(t)?t:[t];const s=n||ua(l,r),{markStart:c,markEnd:i,keyes:u}=s;let m;const g=u&&new Set;let f=c;if(t&&ht(t,d=>{if(typeof d=="object"&&!d[we])return;const $=d[we]&&d.key,x=u&&$!=null&&u.get($);f!=i&&f===x?g.delete(f):f=f==i?i:f.nextSibling;const S=u?x:f;let k=S;if(d[we])k=$t(d,S,o,r,a);else{const M=d+"";!(k instanceof Text)||k instanceof Ae?k=new Text(M):k.data!=M&&(k.data=M)}k!=f&&(u&&g.delete(k),!S||u?(l.insertBefore(k,f),u&&f!=i&&g.add(f)):S==i?l.insertBefore(k,i):(l.replaceChild(k,S),f=k)),$!=null&&(m=m||new Map,m.set($,k))}),f=f==i?i:f.nextSibling,n&&f!=i)for(;f!=i;){const d=f;f=f.nextSibling,d.remove()}return g&&g.forEach(d=>d.remove()),s.keyes=m,s}function fa(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&&aa[n]&&(l=t[n]),!(o===l||sa[n]||n[0]=="_"))if(n[0]=="o"&&n[1]=="n"&&(Q(o)||Q(l)))pa(t,n.slice(2),o,a);else if(n=="ref")o&&(Q(o)?o(t):o.current=t);else if(n=="style"){const{style:s}=t;l=l||"",o=o||"";const c=ye(l),i=ye(o);if(c)for(const u in l)if(i)!(u in o)&&St(s,u,null);else break;if(i)for(const u in o){const m=o[u];c&&l[u]===m||St(s,u,m)}else s.cssText=o}else{const s=n[0]=="$"?n.slice(1):n;s===n&&(!r&&!ra[n]&&n in t||Q(o)||Q(l))?t[n]=o??"":o==null?t.removeAttribute(s):t.setAttribute(s,ye(o)?JSON.stringify(o):o)}}function pa(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 St(t,n,l){let o="setProperty";l==null&&(o="removeProperty",l=null),~n.indexOf("-")?t[o](n,l):t[n]=l}const Vt={};function Ne(t,...n){const l=(t.raw||t).reduce((o,r,a)=>o+r+(n[a]||""),"");return Vt[l]=Vt[l]||ha(l)}function ha(t){if(vt.sheet){const n=new CSSStyleSheet;return n.replaceSync(t),n}else{const n=document.createElement("style");return n.textContent=t,n}}const ga=Bt("host",{style:"display: contents"}),Ue=ue("atomico/context"),ya=(t,n)=>{const l=ge();la(()=>gt(l.current,"ConnectContext",o=>{t===o.detail.id&&(o.stopPropagation(),o.detail.connect(n))}),[t])},ba=t=>{const n=re("ConnectContext",{bubbles:!0,composed:!0}),l=()=>{let a;return n({id:t,connect(s){a=s}}),a},[o,r]=_e(l);return ke(()=>{o||(t[Ue]||(t[Ue]=customElements.whenDefined(new t().localName)),t[Ue].then(()=>r(l)))},[t]),o},ka=t=>{const n=ba(t),l=ft();return ke(()=>{if(n)return gt(n,"UpdatedValue",l)},[n]),(n||t).value},wa=t=>{const n=be(()=>(ya(n,ge().current),ga),{props:{value:{type:Object,event:{type:"UpdatedValue"},value:()=>t}}});return n.value=t,n},L=(t,n,l)=>(n==null?n={key:l}:n.key=l,Bt(t,n)),xe=L,Nt=Ne`*,*:before,*:after{box-sizing:border-box}button{padding:0;touch-action:manipulation;cursor:pointer;user-select:none}`,Dt=Ne`.vh{position:absolute;transform:scale(0)}`;function Re(){const t=new Date;return new F(t.getFullYear(),t.getMonth()+1,t.getDate())}function qe(t,n=0){const l=J(t),o=l.getUTCDay(),r=(o<n?7:0)+o-n;return l.setUTCDate(l.getUTCDate()-r),F.from(l)}function zt(t,n=0){return qe(t,n).add({days:6})}function Tt(t){return F.from(new Date(Date.UTC(t.year,t.month,0)))}function De(t,n,l){return n&&F.compare(t,n)<0?n:l&&F.compare(t,l)>0?l:t}const xa={days:1};function va(t,n=0){let l=qe(t.toPlainDate(),n);const o=zt(Tt(t),n),r=[];for(;F.compare(l,o)<0;){const a=[];for(let s=0;s<7;s++)a.push(l),l=l.add(xa);r.push(a)}return r}function J(t){return new Date(Date.UTC(t.year,t.month-1,t.day??1))}const Ea=/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[0-1])$/,He=(t,n)=>t.toString().padStart(n,"0");class F{constructor(n,l,o){this.year=n,this.month=l,this.day=o}add(n){const l=J(this);if("days"in n)return l.setUTCDate(this.day+n.days),F.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=F.from(J({year:o,month:r,day:1}));return De(F.from(l),a,Tt(a))}toString(){return`${He(this.year,4)}-${He(this.month,2)}-${He(this.day,2)}`}toPlainYearMonth(){return new ze(this.year,this.month)}equals(n){return F.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(Ea);if(!l)throw new TypeError(n);const[,o,r,a]=l;return new F(parseInt(o,10),parseInt(r,10),parseInt(a,10))}return new F(n.getUTCFullYear(),n.getUTCMonth()+1,n.getUTCDate())}}class ze{constructor(n,l){this.year=n,this.month=l}add(n){const l=J(this),o=(n.months??0)+(n.years??0)*12;return l.setUTCMonth(l.getUTCMonth()+o),new ze(l.getUTCFullYear(),l.getUTCMonth()+1)}equals(n){return this.year===n.year&&this.month===n.month}toPlainDate(){return new F(this.year,this.month,1)}}function Te(t,n){if(n)try{return t.from(n)}catch{}}function se(t){const[n,l]=Le(t);return[ne(()=>Te(F,n),[n]),o=>l(o==null?void 0:o.toString())]}function Ba(t){const[n="",l]=Le(t);return[ne(()=>{const[o,r]=n.split("/"),a=Te(F,o),s=Te(F,r);return a&&s?[a,s]:[]},[n]),o=>l(`${o[0]}/${o[1]}`)]}function $a(t){const[n="",l]=Le(t);return[ne(()=>{const o=[];for(const r of n.trim().split(/\s+/)){const a=Te(F,r);a&&o.push(a)}return o},[n]),o=>l(o.join(" "))]}function ve(t,n){return ne(()=>new Intl.DateTimeFormat(n,{timeZone:"UTC",...t}),[n,t])}function Mt(t,n,l){const o=ve(t,l);return ne(()=>{const r=[],a=new Date;for(var s=0;s<7;s++){const c=(a.getUTCDay()-n+7)%7;r[c]=o.format(a),a.setUTCDate(a.getUTCDate()+1)}return r},[n,o])}const It=(t,n,l)=>De(t,n,l)===t,Ot=t=>t.target.matches(":dir(ltr)"),Ca={month:"long",day:"numeric"},Sa={month:"long"},Va={weekday:"long"},We={bubbles:!0};function Na({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:g}=n,f=c??Re(),d=Mt(Va,o,u),$=ne(()=>({weekday:g}),[g]),x=Mt($,o,u),S=ve(Ca,u),k=ve(Sa,u),M=ne(()=>i.start.add({months:l}),[i,l]),U=ne(()=>va(M,o),[M,o]),Y=re("focusday",We),h=re("selectday",We),B=re("hoverday",We);function w(v){Y(De(v,a,s))}function z(v){let b;switch(v.key){case"ArrowRight":b=m.add({days:Ot(v)?1:-1});break;case"ArrowLeft":b=m.add({days:Ot(v)?-1:1});break;case"ArrowDown":b=m.add({days:7});break;case"ArrowUp":b=m.add({days:-7});break;case"PageUp":b=m.add(v.shiftKey?{years:-1}:{months:-1});break;case"PageDown":b=m.add(v.shiftKey?{years:1}:{months:1});break;case"Home":b=qe(m,o);break;case"End":b=zt(m,o);break;default:return}w(b),v.preventDefault()}function p(v){var T,P;const b=M.equals(v);if(!n.showOutsideDays&&!b)return;const I=v.equals(m),O=v.equals(f),q=J(v),G=r==null?void 0:r(q),y=!It(v,a,s);let E="",N;if(n.type==="range"){const[j,H]=n.value,ee=j==null?void 0:j.equals(v),oe=H==null?void 0:H.equals(v);N=j&&H&&It(v,j,H),E=`${ee?"range-start":""} ${oe?"range-end":""} ${N&&!ee&&!oe?"range-inner":""}`}else n.type==="multi"?N=n.value.some(j=>j.equals(v)):N=(T=n.value)==null?void 0:T.equals(v);return{part:`${`button day day-${q.getDay()} ${b?N?"selected":"":"outside"} ${G?"disallowed":""} ${O?"today":""} ${((P=n.getDayParts)==null?void 0:P.call(n,q))??""}`} ${E}`,tabindex:b&&I?0:-1,disabled:y,"aria-disabled":G?"true":void 0,"aria-pressed":b&&N,"aria-current":O?"date":void 0,"aria-label":S.format(q),onkeydown:z,onclick(){G||h(v),w(v)},onmouseover(){!G&&!y&&B(v)}}}return{weeks:U,yearMonth:M,daysLong:d,daysVisible:x,formatter:k,getDayProps:p}}const Ke=Re(),Ye=wa({type:"date",firstDayOfWeek:1,focusedDate:Ke,page:{start:Ke.toPlainYearMonth(),end:Ke.toPlainYearMonth()}});customElements.define("calendar-ctx",Ye);const Da=(t,n)=>(n+t)%7,_t=be(t=>{const n=ka(Ye),l=Rl(),o=Na({props:t,context:n});function r(){var a;(a=l.current.querySelector("button[tabindex='0']"))==null||a.focus()}return xe("host",{shadowDom:!0,focus:r,children:[L("div",{id:"h",part:"heading",children:o.formatter.format(J(o.yearMonth))}),xe("table",{ref:l,"aria-labelledby":"h",part:"table",children:[L("thead",{children:L("tr",{part:"tr head",children:o.daysLong.map((a,s)=>xe("th",{part:`th day day-${Da(n.firstDayOfWeek,s)}`,scope:"col",children:[L("span",{class:"vh",children:a}),L("span",{"aria-hidden":"true",children:o.daysVisible[s]})]}))})}),L("tbody",{children:o.weeks.map((a,s)=>L("tr",{part:"tr week",children:a.map((c,i)=>{const u=o.getDayProps(c);return L("td",{part:"td",children:u&&L("button",{...u,children:c.day})},i)})},s))})]})]})},{props:{offset:{type:Number,value:0}},styles:[Nt,Dt,Ne`: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",_t);function Lt(t){return L("button",{part:`button ${t.name} ${t.onclick?"":"disabled"}`,onclick:t.onclick,"aria-disabled":t.onclick?null:"true",children:L("slot",{name:t.name,children:t.children})})}function Xe(t){const n=J(t.page.start),l=J(t.page.end);return xe("div",{role:"group","aria-labelledby":"h",part:"container",children:[L("div",{id:"h",class:"vh","aria-live":"polite","aria-atomic":"true",children:t.formatVerbose.formatRange(n,l)}),xe("div",{part:"header",children:[L(Lt,{name:"previous",onclick:t.previous,children:"Previous"}),L("slot",{part:"heading",name:"heading",children:L("div",{"aria-hidden":"true",children:t.format.formatRange(n,l)})}),L(Lt,{name:"next",onclick:t.next,children:"Next"})]}),L(Ye,{value:t,onselectday:t.onSelect,onfocusday:t.onFocus,onhoverday:t.onHover,children:L("slot",{})})]})}const Ge={value:{type:String,value:""},min:{type:String,value:""},max:{type:String,value:""},today:{type:String,value:""},isDateDisallowed:{type:Function,value:t=>!1},formatWeekday:{type:String,value:()=>"narrow"},getDayParts:{type:Function,value:t=>""},firstDayOfWeek:{type:Number,value:()=>1},showOutsideDays:{type:Boolean,value:!1},locale:{type:String,value:()=>{}},months:{type:Number,value:1},focusedDate:{type:String,value:()=>{}},pageBy:{type:String,value:()=>"months"}},Je=[Nt,Dt,Ne`: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}`],za={year:"numeric"},Ta={year:"numeric",month:"long"};function Ze(t,n){return(n.year-t.year)*12+n.month-t.month}const Pt=(t,n)=>(t=n===12?new ze(t.year,1):t,{start:t,end:t.add({months:n-1})});function Ma({pageBy:t,focusedDate:n,months:l,max:o,min:r,goto:a}){const s=t==="single"?1:l,[c,i]=_e(()=>Pt(n.toPlainYearMonth(),l)),u=g=>i(Pt(c.start.add({months:g}),l)),m=g=>{const f=Ze(c.start,g.toPlainYearMonth());return f>=0&&f<l};return ke(()=>{if(m(n))return;const g=Ze(n.toPlainYearMonth(),c.start);a(n.add({months:g}))},[c.start]),ke(()=>{if(m(n))return;const g=Ze(c.start,n.toPlainYearMonth());u(g===-1?-s:g===l?s:Math.floor(g/l)*l)},[n,s,l]),{page:c,previous:!r||!m(r)?()=>u(-s):void 0,next:!o||!m(o)?()=>u(s):void 0}}function Qe({months:t,pageBy:n,locale:l,focusedDate:o,setFocusedDate:r}){const[a]=se("min"),[s]=se("max"),[c]=se("today"),i=re("focusday"),u=re("change"),m=ne(()=>De(o??c??Re(),a,s),[o,c,a,s]);function g(k){r(k),i(J(k))}const{next:f,previous:d,page:$}=Ma({pageBy:n,focusedDate:m,months:t,min:a,max:s,goto:g}),x=ge();function S(k){const M=(k==null?void 0:k.target)??"day";M==="day"?x.current.querySelectorAll("calendar-month").forEach(U=>U.focus(k)):x.current.shadowRoot.querySelector(`[part~='${M}']`).focus(k)}return{format:ve(za,l),formatVerbose:ve(Ta,l),page:$,focusedDate:m,dispatch:u,onFocus(k){k.stopPropagation(),g(k.detail),setTimeout(S)},min:a,max:s,today:c,next:f,previous:d,focus:S}}const jt=be(t=>{const[n,l]=se("value"),[o=n,r]=se("focusedDate"),a=Qe({...t,focusedDate:o,setFocusedDate:r});function s(c){l(c.detail),a.dispatch()}return L("host",{shadowDom:!0,focus:a.focus,children:L(Xe,{...t,...a,type:"date",value:n,onSelect:s})})},{props:Ge,styles:Je});customElements.define("calendar-date",jt);const At=(t,n)=>F.compare(t,n)<0?[t,n]:[n,t],Ft=be(t=>{const[n,l]=Ba("value"),[o=n[0],r]=se("focusedDate"),a=Qe({...t,focusedDate:o,setFocusedDate:r}),s=re("rangestart"),c=re("rangeend"),[i,u]=se("tentative"),[m,g]=_e();ke(()=>g(void 0),[i]);function f(S){a.onFocus(S),d(S)}function d(S){S.stopPropagation(),i&&g(S.detail)}function $(S){const k=S.detail;S.stopPropagation(),i?(l(At(i,k)),u(void 0),c(J(k)),a.dispatch()):(u(k),s(J(k)))}const x=i?At(i,m??i):n;return L("host",{shadowDom:!0,focus:a.focus,children:L(Xe,{...t,...a,type:"range",value:x,onFocus:f,onHover:d,onSelect:$})})},{props:{...Ge,tentative:{type:String,value:""}},styles:Je});customElements.define("calendar-range",Ft);const Ut=be(t=>{const[n,l]=$a("value"),[o=n[0],r]=se("focusedDate"),a=Qe({...t,focusedDate:o,setFocusedDate:r});function s(c){const i=[...n],u=n.findIndex(m=>m.equals(c.detail));u<0?i.push(c.detail):i.splice(u,1),l(i),a.dispatch()}return L("host",{shadowDom:!0,focus:a.focus,children:L(Xe,{...t,...a,type:"multi",value:n,onSelect:s})})},{props:Ge,styles:Je});customElements.define("calendar-multi",Ut);const Ia=Object.freeze(Object.defineProperty({__proto__:null,CalendarDate:jt,CalendarMonth:_t,CalendarMulti:Ut,CalendarRange:Ft},Symbol.toStringTag,{value:"Module"}));C.Accordion=$n,C.AdvancedSearch=so,C.Alert=sl,C.Avatar=Vn,C.Badge=Nn,C.ButtonComponent=Kt,C.Card=_n,C.Carousel=Rn,C.CarouselItem=qn,C.CategoryNavigation=Nl,C.DatetimePicker=rt,C.Dropdown=Gt,C.FilterableSelect=qo,C.Footer=wl,C.Hero=Cl,C.InputField=it,C.Loader=el,C.Modal=Qt,C.NavigationBar=Il,C.Rating=Bo,C.Selector=st,C.Swap=nn,C.Tab=jl,C.TagInput=No,C.ThemeController=fn,C.Toast=ol,C.ToastNotification=ct,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})}));
46
+ */const dn=he("SunIcon",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),un=(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},mn={class:"swap-rotate swap"},fn=["true-value","false-value"],pn=e.defineComponent({__name:"theme-controller",props:{lightTheme:{default:"light"},darkTheme:{default:"dark"}},setup(t){const n=t,l=un("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",mn,[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,fn),[[e.vModelCheckbox,e.unref(l)]]),e.createVNode(e.unref(dn),{class:"swap-off fill-current"}),e.createVNode(e.unref(cn),{class:"swap-on fill-current"})]))}}),hn={key:0,class:"join join-vertical w-full"},gn=["name"],yn={key:1,type:"checkbox"},bn={class:"collapse-title font-bold text-2xl lg:text-4xl"},kn={class:"collapse-content"},wn=["innerHTML"],xn=["name"],vn={key:1,type:"checkbox"},En={class:"collapse-title font-bold text-2xl lg:text-4xl"},Bn={class:"collapse-content"},$n=["innerHTML"],Cn=e.defineComponent({__name:"accordion",props:{name:{},items:{},joinItems:{type:Boolean,default:!1},icon:{},toggle:{type:Boolean,default:!1}},setup(t){const n=t;return(l,o)=>n.joinItems?(e.openBlock(),e.createElementBlock("div",hn,[(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 join-item",[t.icon?`collapse-${t.icon}`:""]]),key:a},[t.toggle?(e.openBlock(),e.createElementBlock("input",yn)):(e.openBlock(),e.createElementBlock("input",{key:0,type:"radio",name:t.name,value:"true"},null,8,gn)),e.createElementVNode("div",bn,e.toDisplayString(r.title),1),e.createElementVNode("div",kn,[e.createElementVNode("span",{innerHTML:r.content},null,8,wn)])],2))),128))])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(n.items,(r,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["collapse border border-base-300",[t.icon?`collapse-${t.icon}`:""]]),key:a},[t.toggle?(e.openBlock(),e.createElementBlock("input",vn)):(e.openBlock(),e.createElementBlock("input",{key:0,type:"radio",name:t.name,value:"true"},null,8,xn)),e.createElementVNode("div",En,e.toDisplayString(r.title),1),e.createElementVNode("div",Bn,[e.createElementVNode("span",{innerHTML:r.content},null,8,$n)])],2))),128))}}),Sn=["src"],Vn={class:"text-xl"},Nn=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,Sn)],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",Vn,e.toDisplayString(t.initials),1)],2))],2))}}),Dn=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))}}),zn=["src","alt"],Tn={key:0,class:"card-body"},Mn={key:0,class:"group-hover:text-primary text-lg text-left cursor-pointer card-title"},In={key:1,class:"text-left"},On={class:"flex-col flex-nowrap mt-auto card-actions"},_n={key:1,class:"card-body"},Ln=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,zn)):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",Tn,[t.title?(e.openBlock(),e.createElementBlock("h2",Mn,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"details"),t.description?(e.openBlock(),e.createElementBlock("p",In,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0),e.createElementVNode("div",On,[e.renderSlot(o.$slots,"actions")])])),t.loading?(e.openBlock(),e.createElementBlock("div",_n,[...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))}}),at=Symbol("CarouselItemStyle"),Pn={class:"relative h-full"},jn={key:0,class:"flex-shrink-0"},An={key:0,class:"flex-shrink-0"},Fn={key:1,id:"carousel-indicators",class:"bottom-5 z-10 absolute flex justify-center gap-2 py-2 w-full"},Un=["onClick","aria-label"],Rn=e.defineComponent({__name:"carousel",props:{showIndicators:{type:Boolean,default:!0},showNavigationButtons:{type:Boolean,default:!0},sliderOrientation:{type:String,default:"horizontal",required:!1,validator:t=>t=="horizontal"||t=="vertical"},initialSlide:{type:Number,default:0},slidesPerView:{type:Number,default:1,validator:t=>t>=1},gap:{type:Number,default:0,validator:t=>t>=0},slideDuration:{type:Number,default:300,validator:t=>t>=0},breakpoints:{type:Object,default:()=>({})},infinite:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},autoplayInterval:{type:Number,default:3e3,validator:t=>t>0}},setup(t,{expose:n}){const l=t,o=e.ref(l.initialSlide),r=e.ref(null),a=e.ref(null),s=e.ref(0),c=e.ref(!1),i=e.ref(0),u=e.ref(0),m=e.ref(!1),g=e.ref(0),f=e.ref(0),d=e.ref(0),C=e.ref(0),x=e.ref(0),S=e.ref(0),k=e.ref(0),M=e.ref(null),U=e.ref(null),Y=e.ref(0),h=e.ref(null),B=e.computed(()=>{const D=Object.keys(l.breakpoints).map(Number).sort((_,A)=>_-A);let V={};for(const _ of D)u.value>=_&&(V={...V,...l.breakpoints[_]});return V}),w=e.computed(()=>B.value.slidesPerView??l.slidesPerView),z=e.computed(()=>B.value.gap??l.gap),p=e.computed(()=>{const D=l.sliderOrientation==="horizontal",_=`calc((100% - ${w.value>1?(w.value-1)*z.value:0}px) / ${w.value})`;return D?{width:_}:{height:_}});e.provide(at,p);const v=()=>{a.value?i.value=a.value.children.length:i.value=0},b=()=>{if(!r.value||w.value<=0)return 0;const V=l.sliderOrientation==="horizontal"?r.value.offsetWidth:r.value.offsetHeight,_=(w.value-1)*z.value;return V<=0?0:(V-_)/w.value},I=e.computed(()=>{if(!r.value||i.value===0||w.value===0)return 0;const V=l.sliderOrientation==="horizontal"?r.value.offsetWidth:r.value.offsetHeight,_=b(),A=i.value*(_+z.value)-z.value;return Math.max(0,A-V)}),O=async(D,V=!1)=>{if(!r.value||w.value<=0||c.value||(v(),i.value===0))return;const _=b();if(_<=0)return;const A=_+z.value,K=I.value;let R=D;l.infinite?R=(D%i.value+i.value)%i.value:R=Math.max(0,Math.min(D,i.value-w.value));const te=R*A,W=l.infinite?te:Math.max(0,Math.min(te,K));if(V||l.slideDuration===0){a.value&&(a.value.style.transitionDuration="0ms",a.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-W}px, 0, 0)`:`translate3d(0, ${-W}px, 0)`),s.value=W,o.value=R,c.value=!1,l.autoplay&&ee();return}c.value=!0;const le=s.value,Z=W-le,Ee=performance.now(),fe=Me=>{if(!a.value)return;const _a=Me-Ee,Ht=Math.min(1,_a/l.slideDuration),La=1-Math.pow(1-Ht,3),tt=le+Z*La;a.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-tt}px, 0, 0)`:`translate3d(0, ${-tt}px, 0)`,s.value=tt,Ht<1?M.value=requestAnimationFrame(fe):(a.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-W}px, 0, 0)`:`translate3d(0, ${-W}px, 0)`,s.value=W,o.value=R,c.value=!1,l.autoplay&&ee(),M.value=null)};M.value=requestAnimationFrame(fe)},q=()=>{l.infinite&&o.value>=i.value-w.value?O(0):O(o.value+1)},G=()=>{l.infinite&&o.value<=0?O(i.value-w.value):O(o.value-1)},y=D=>{O(D)},E=D=>{c.value&&M.value&&(l.autoplay&&H(),cancelAnimationFrame(M.value),c.value=!1);const V="touches"in D?D.touches[0]:D;g.value=V.clientX,f.value=V.clientY,h.value=null,d.value=s.value,C.value=0,x.value=0,S.value=0,k.value=performance.now(),r.value&&(r.value.style.scrollSnapType="none"),document.addEventListener("mousemove",N,{passive:!1}),document.addEventListener("mouseup",P),document.addEventListener("touchmove",N,{passive:!1}),document.addEventListener("touchend",P)},N=D=>{const V="touches"in D?D.touches[0]:D;if(!h.value){const Ee=Math.abs(V.clientX-g.value),fe=Math.abs(V.clientY-f.value),Me=5;if(Ee>Me||fe>Me)if(l.sliderOrientation==="horizontal")if(Ee>fe)h.value="horizontal",m.value=!0;else{T();return}else if(fe>Ee)h.value="vertical",m.value=!0;else{T();return}else return}if(!m.value||!a.value||!r.value)return;D.cancelable&&D.preventDefault();const _=performance.now(),A=_-k.value,K=l.sliderOrientation==="horizontal"?V.clientX:V.clientY,R=l.sliderOrientation==="horizontal"?g.value:f.value,te=l.sliderOrientation==="horizontal"?x.value||R:S.value||R,W=K-te;A>0&&(C.value=W/A*1e3);const le=K-R;let Z=d.value-le;Z<0?Z=Z*.3:Z>I.value&&(Z=I.value+(Z-I.value)*.3),Y.value=Z,a.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-Y.value}px, 0, 0)`:`translate3d(0, ${-Y.value}px, 0)`,l.sliderOrientation==="horizontal"?x.value=K:S.value=K,k.value=_},T=()=>{document.removeEventListener("mousemove",N),document.removeEventListener("mouseup",P),document.removeEventListener("touchmove",N),document.removeEventListener("touchend",P)},P=()=>{if(!m.value||!r.value||!a.value)return;const V=l.sliderOrientation==="horizontal"?d.value-(x.value-g.value):d.value-(S.value-f.value),_=Math.max(0,Math.min(V,I.value)),A=b()+z.value;if(m.value=!1,T(),s.value=_,l.infinite){if(V<0){O(i.value-1);return}else if(V>I.value){O(0);return}}else if(V<0){O(0);return}else if(V>I.value){const W=Math.max(0,i.value-Math.floor(w.value));O(W);return}const K=Math.max(0,i.value-Math.floor(w.value)),R=100,te=Math.round(_/A);if(Math.abs(C.value)>R){const W=-Math.sign(C.value),le=te+W;O(Math.max(0,Math.min(K,le)))}else O(Math.max(0,Math.min(K,te)))},j=()=>{!l.autoplay||U.value!==null||(U.value=setInterval(()=>{q()},l.autoplayInterval))},H=()=>{U.value!==null&&(clearInterval(U.value),U.value=null)},ee=()=>{H(),setTimeout(()=>{j()},500)},oe=e.ref(null),et=D=>{if(!D||D.length===0)return;const{width:V}=D[0].contentRect;Math.abs(V-u.value)>1&&(u.value=V)},Oa=()=>{if(!r.value||w.value<=0||(v(),i.value===0))return;const D=b();if(D<=0)return;const V=Math.max(0,i.value-w.value),_=Math.min(Math.max(0,l.initialSlide),V),A=_*(D+z.value),K=I.value,R=Math.max(0,Math.min(A,K));a.value&&(a.value.style.transitionDuration="0ms",a.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-R}px, 0, 0)`:`translate3d(0, ${-R}px, 0)`),s.value=R,o.value=_};let qt=!1;return e.onMounted(()=>{var V,_,A,K,R,te,W,le;u.value=window.innerWidth;const D=e.watch(i,Z=>{Z>0&&!qt&&(Oa(),qt=!0,D())});l.autoplay&&j(),v(),r.value&&(oe.value=new ResizeObserver(et),oe.value.observe(r.value)),(V=r.value)==null||V.addEventListener("mousedown",E),(_=r.value)==null||_.addEventListener("touchstart",E,{passive:!0}),l.showNavigationButtons&&((R=(K=(A=r.value)==null?void 0:A.parentElement)==null?void 0:K.querySelector(".absolute.flex.justify-between"))==null||R.addEventListener("click",ee)),l.showIndicators&&((le=(W=(te=r.value)==null?void 0:te.parentElement)==null?void 0:W.querySelector(".bottom-5.flex.justify-center"))==null||le.addEventListener("click",ee))}),e.onUnmounted(()=>{oe.value&&oe.value.disconnect(),H()}),e.watch(()=>l.autoplay,D=>{D?j():H()}),e.watch(()=>l.autoplayInterval,ee),e.watch(()=>l.initialSlide,D=>{requestAnimationFrame(()=>O(D,!0))}),e.watch([w,z],()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{if(v(),i.value===0)return;const D=Math.max(0,i.value-w.value),V=Math.min(o.value,D);O(V,!0)})})}),n({scrollToSlide:O}),(D,V)=>(e.openBlock(),e.createElementBlock("div",Pn,[e.createElementVNode("div",{ref_key:"carouselContainer",ref:r,class:e.normalizeClass(["rounded w-full h-full carousel",[{"carousel-horizontal":t.sliderOrientation=="horizontal"},{"carousel-vertical":t.sliderOrientation=="vertical"},{"cursor-grabbing !select-none":m.value}]]),style:{scrollSnapType:"none"}},[e.createElementVNode("div",{ref_key:"slidesContainer",ref:a,class:e.normalizeClass(["w-full h-full transition-transform duration-0 ease-out",t.sliderOrientation==="horizontal"?"flex":"block"]),style:e.normalizeStyle({gap:`${z.value}px`})},[e.renderSlot(D.$slots,"default",{},void 0,!0)],6)],2),t.showNavigationButtons?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([{"top-1/2 right-5 left-5 z-10 absolute flex justify-between items-center -translate-y-1/2 transform":t.sliderOrientation==="horizontal"},{"right-0 absolute flex justify-between items-center -translate-y-1/2 transform rotate-90 top-1/2 gap-3":t.sliderOrientation==="vertical"}])},[e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[l.infinite||o.value>0?(e.openBlock(),e.createElementBlock("div",jn,[e.createElementVNode("div",{onClick:G,role:"button","aria-label":"Previous Slide"},[e.renderSlot(D.$slots,"prevButton",{},()=>[V[0]||(V[0]=e.createElementVNode("button",{class:"btn btn-circle text-xs",tabindex:"-1"},"❮",-1))],!0)])])):e.createCommentVNode("",!0)]),_:3}),V[2]||(V[2]=e.createElementVNode("div",{class:"flex-grow"},null,-1)),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[l.infinite||o.value<i.value-w.value?(e.openBlock(),e.createElementBlock("div",An,[e.createElementVNode("div",{onClick:q,role:"button","aria-label":"Next Slide"},[e.renderSlot(D.$slots,"nextButton",{},()=>[V[1]||(V[1]=e.createElementVNode("button",{class:"btn btn-circle text-xs",tabindex:"-1"},"❯",-1))],!0)])])):e.createCommentVNode("",!0)]),_:3})],2)):e.createCommentVNode("",!0),t.showIndicators?(e.openBlock(),e.createElementBlock("div",Fn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(_,A)=>(e.openBlock(),e.createElementBlock("button",{key:`dot-${A}`,onClick:K=>y(A),class:e.normalizeClass(["btn btn-circle btn-xs",{"btn-active":A===o.value}]),"aria-label":`Go to slide ${A+1}`},null,10,Un))),128))])):e.createCommentVNode("",!0)]))}}),ae=(t,n)=>{const l=t.__vccOpts||t;for(const[o,r]of n)l[o]=r;return l},qn=ae(Rn,[["__scopeId","data-v-d9ad9601"]]),Hn=ae(e.defineComponent({__name:"carouselItem",setup(t){const n=e.inject(at,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"]]),Wn={class:"flex gap-4 bg-base-100 w-full tabs tabs-boxed"},Kn=["onClick"],Yn={key:0,class:"inline-component-wrapper flex grow justify-center items-center w-full h-full"},Xn={key:1,class:"flex flex-col"},Gn={class:"text-sm"},Jn={key:0,class:"opacity-75 overflow-hidden text-xs truncate ..."},Zn={key:1,class:"hidden md:block opacity-35 overflow-hidden text-xs truncate ..."},Qn={class:"hidden"},eo=["id"],to={class:"modal-box"},no={class:"font-bold text-lg"},oo=["name","checked"],lo={class:"collapse-title flex justify-between items-center pr-4 w-full font-medium text-xl"},ao={key:0,class:"opacity-75 overflow-hidden text-sm truncate ..."},ro={key:1,class:"opacity-35 text-sm"},so={class:"collapse-content flex place-content-center p-0"},io=ae(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(()=>Eo)),"standard-select":e.defineAsyncComponent(()=>Promise.resolve().then(()=>Lo)),"custom-text":e.defineAsyncComponent(()=>Promise.resolve().then(()=>el))},i=e.ref({}),u=e.ref({left:"0px",top:"0px",transform:"translateX(0%)"}),m=e.ref(null),g=h=>{var B;if(h.value===void 0||h.value===null||h.value==="")return"";switch(h.type){case"datetime":if(typeof h.value=="string")try{const w=new Date(h.value);if(!isNaN(w.getTime()))return w.toLocaleString()}catch{}else if(h.range&&typeof h.value=="object"&&h.value!==null&&"start"in h.value&&"end"in h.value)try{const w=new Date(h.value.start),z=new Date(h.value.end);if(!isNaN(w.getTime())&&!isNaN(z.getTime()))return`${w.toLocaleDateString()} - ${z.toLocaleDateString()}`}catch{}break;case"custom-range":if(typeof h.value=="object"&&h.value!==null&&"start"in h.value&&"end"in h.value)return`${h.value.start} - ${h.value.end}`;break;case"custom-number":if(typeof h.value=="number")return h.value.toString();break;case"standard-select":case"custom-select":if((B=h.props)!=null&&B.options&&Array.isArray(h.props.options)){const w=h.props.options.find(z=>z.value===h.value);if(w)return w.text}return String(h.value);case"custom-text":if(typeof h.value=="string")return h.value;break}return String(h.value)};function f(h){var p,v;const B=(p=a.value)==null?void 0:p.name;if(!B){console.warn("componentValueUpdated called but no active tab.");return}const w=(v=l.searchOptions.find(b=>(b==null?void 0:b.category)===l.currentCategory))==null?void 0:v.tabs,z=w==null?void 0:w.find(b=>b.name===B);z?(z.value=h,o("update:search-data",{tab:z.name,data:h})):console.error(`Tab with name "${B}" not found in current category.`)}function d(h){f(h)}function C(){o("search")}async function x(h){var z;const B=document.getElementById(`advancedSearchMobile-${r}`),w=B&&B.contains(h.target);((z=a.value)==null?void 0:z.displayMode)==="popup"&&m.value&&!m.value.contains(h.target)&&!w&&(await e.nextTick(),a.value=null)}async function S(){if(typeof window<"u"&&window.innerWidth<=768){const h=document.getElementById(`advancedSearchMobile-${r}`);h?(a.value=null,h.showModal()):console.warn(`Mobile modal element not found. Ensure it exists with id="advancedSearchMobile-${r}".`)}}async function k(h){var w,z,p;if(typeof window<"u"&&window.innerWidth<=768){S();return}const B=h.displayMode??"popup";if(((w=a.value)==null?void 0:w.name)===h.name&&((z=a.value)==null?void 0:z.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 v=i.value[h.name];if(v&&m.value){const b=v.getBoundingClientRect(),I=m.value.getBoundingClientRect(),O=b.bottom-I.top,q=b.left+b.width/2-I.left;u.value={left:`${q}px`,top:`${O+8}px`,transform:"translateX(-50%)"}}else console.error("Tab element or search container not found for positioning:",h.name)}}const M=h=>{const B=h.relatedTarget;setTimeout(()=>{var w;((w=a.value)==null?void 0:w.displayMode)==="inline"&&m.value&&(!B||!m.value.contains(B))?(console.log("Blur detected outside container, closing inline view."),a.value=null):console.log("Blur detected, but staying within container or not an inline tab.")},50)},U=()=>{console.log("Enter key pressed on inline component, closing inline view."),a.value=null};e.watch(s,h=>{var B;console.log("advanced-search: inlineComponentRef changed. New Value:",h),console.log("advanced-search: activeTab.value:",a.value),h&&((B=a.value)==null?void 0:B.displayMode)==="inline"?(console.log("advanced-search: Inline component ref is available and active tab is inline. Attempting to focus child input..."),e.nextTick(()=>{console.log("advanced-search: Inside nextTick. Attempting to call child's focus method..."),console.log("advanced-search: Type of newValue:",typeof h),console.log("advanced-search: Does newValue have focusInput?",typeof h.focusInput=="function"),h&&typeof h.focusInput=="function"?(console.log("advanced-search: Calling exposed focusInput() method on child instance."),h.focusInput()):console.warn('advanced-search: Child inline component instance does not expose a "focusInput" method or is not ready.',h)})):console.log(h?"advanced-search: inlineComponentRef available, but active tab is not inline.":"advanced-search: inlineComponentRef is now null (component likely unmounted).")}),e.onMounted(()=>{document.addEventListener("click",x),window.addEventListener("resize",Y)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",x),window.removeEventListener("resize",Y)});const Y=()=>{var h,B;if(typeof window<"u"){const w=window.innerWidth<=768,z=a.value!==null&&(a.value.displayMode==="popup"||a.value.displayMode==="inline")&&window.innerWidth>768;!w&&(((h=a.value)==null?void 0:h.displayMode)==="popup"||((B=a.value)==null?void 0:B.displayMode)==="inline")&&window.innerWidth<=768&&(console.log("Resizing to mobile, closing active tab."),a.value=null),w&&!z&&a.value!==null&&(console.log("Resizing to desktop from potential mobile active state, closing active tab."),a.value=null);const p=document.getElementById(`advancedSearchMobile-${r}`);p!=null&&p.open&&!w&&(console.log("Modal is open on desktop, closing modal and active tab."),p.close(),a.value=null)}};return(h,B)=>{var w,z;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:S},[e.createElementVNode("div",Wn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((w=l.searchOptions.find(p=>p.category===l.currentCategory))==null?void 0:w.tabs)||[],(p,v)=>{var b,I,O,q,G;return e.openBlock(),e.createElementBlock("button",{key:`${p.name}-${v}`,onClick:e.withModifiers(y=>k(p),["stop"]),class:e.normalizeClass([{"tab-active":((b=a.value)==null?void 0:b.name)===p.name,"tab-active-inline":((I=a.value)==null?void 0:I.name)===p.name&&((O=a.value)==null?void 0:O.displayMode)==="inline"},"group/searchitem after:top-0 after:-right-2 after:absolute relative first-of-type:flex-auto last-of-type:flex-auto after:bg-base-200 hover:bg-base-200 p-1 rounded-sm w-auto after:w-px after:h-10 overflow-x-hidden text-start md:after:content-[''] after:content-none last-of-type:after:content-none"]),ref_for:!0,ref:y=>i.value[p.name]=y},[((q=a.value)==null?void 0:q.name)===p.name&&((G=a.value)==null?void 0:G.displayMode)==="inline"?(e.openBlock(),e.createElementBlock("div",Yn,[(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]=y=>d(y)),"onUpdate:modelValue":B[1]||(B[1]=y=>d(y)),onBlur:M,onKeydown:e.withKeys(e.withModifiers(U,["stop","prevent"]),["enter"]),ref_for:!0,ref_key:"inlineComponentRef",ref:s}),null,16,["modelValue","onKeydown"]))])):(e.openBlock(),e.createElementBlock("div",Xn,[e.createElementVNode("p",Gn,e.toDisplayString(p.name),1),p.value!==void 0&&p.value!==null&&p.value!==""?(e.openBlock(),e.createElementBlock("p",Jn,e.toDisplayString(g(p)),1)):(e.openBlock(),e.createElementBlock("p",Zn,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(C,["stop"])},[e.createVNode(e.unref(lt),{size:24,color:"white"})])]),e.createElementVNode("div",Qn,[e.createElementVNode("button",{title:"search",onClick:B[4]||(B[4]=()=>{})},[e.createVNode(e.unref(lt),{size:24,color:"white"})])])],512),e.createElementVNode("dialog",{id:`advancedSearchMobile-${e.unref(r)}`,class:"modal"},[e.createElementVNode("div",to,[e.renderSlot(h.$slots,"additionalForMobile",{},()=>[e.createElementVNode("h3",no,e.toDisplayString(t.currentCategory),1)],!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((z=l.searchOptions.find(p=>p.category===l.currentCategory))==null?void 0:z.tabs)||[],(p,v)=>(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:v===0},null,8,oo),e.createElementVNode("div",lo,[e.createElementVNode("div",null,e.toDisplayString(p.name),1),p.value!==void 0&&p.value!==null&&p.value!==""?(e.openBlock(),e.createElementBlock("div",ao,e.toDisplayString(g(p)),1)):(e.openBlock(),e.createElementBlock("div",ro,e.toDisplayString(p.description),1))]),e.createElementVNode("div",so,[B[7]||(B[7]=e.createElementVNode("br",null,null,-1)),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c[p.type]),e.mergeProps({ref_for:!0},p.props||{},{modelValue:p.value,onUpdated:B[5]||(B[5]=b=>f(b)),"onUpdate:modelValue":B[6]||(B[6]=b=>f(b))}),null,16,["modelValue"]))])]))),128)),e.createElementVNode("div",{class:"modal-action"},[e.createElementVNode("form",{method:"dialog"},[e.createElementVNode("button",{class:"btn btn-primary",onClick:C}," Close and Search ")])])])],8,eo)],64)}}}),[["__scopeId","data-v-577c3624"]]),co={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"},uo={key:0},mo={key:1},fo=["id","onKeydown"],po={key:2,class:"flex justify-center p-4"},ho={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"},go={class:"join-item"},yo=["id","disabled","value"],bo={class:"join-item"},ko=["id","disabled","value"],wo={key:3,class:"p-4 min-w-2xs"},xo=["id","disabled","value"],vo={key:4,class:"flex px-4 my-4 w-full justify-end"},rt=ae(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),g=e.ref(null),f=e.ref({from:"",to:"",single:""}),d=e.ref({single:null,start:null,end:null}),C=y=>y instanceof Date?y.toISOString():y,x=y=>y.split("T")[0]||"",S=y=>{const E=y instanceof Date?y:new Date(y);if(isNaN(E.getTime()))return"";const N=String(E.getHours()).padStart(2,"0"),T=String(E.getMinutes()).padStart(2,"0");return`${N}:${T}`},k=()=>{const y=new Date,E=S(y);let N=o.initialDate;if(!N&&o.mode!=="time"&&(N=o.range?{start:y,end:y}:y),!!N){if(!N){o.mode==="time"&&(o.range?(f.value.from=E,f.value.to=E):f.value.single=E);return}if(o.range&&typeof N=="object"&&"start"in N){const T=C(N.start),P=C(N.end);d.value.start=x(T),d.value.end=x(P),o.mode!=="date"&&(f.value.from=S(T),f.value.to=S(P))}else{const T=C(N);d.value.single=x(T),o.mode!=="date"&&(f.value.single=S(T))}}},M=e.computed(()=>{const y=T=>{if(!T)return"";if(T.includes(":"))return T;try{return new Date(T+"T00:00:00").toLocaleDateString(o.locale,{year:"numeric",month:"numeric",day:"numeric"})}catch{const[P,j,H]=T.split("-");return`${H}/${j}/${P}`}};let E="",N="";if((o.mode==="date"||o.mode==="datetime")&&(o.range?d.value.start&&d.value.end&&(E=`${d.value.start} - ${d.value.end}`):d.value.single&&(E=d.value.single)),(o.mode==="time"||o.mode==="datetime")&&(o.range?f.value.from&&f.value.to&&(N=`${f.value.from} - ${f.value.to}`):f.value.single&&(N=f.value.single)),o.mode==="date")return o.range?E.split(" - ").map(y).join(" - "):y(E);if(o.mode==="time")return N;if(o.mode==="datetime")if(o.range){const T=d.value.start,P=d.value.end,j=f.value.from,H=f.value.to;if(T&&P&&j&&H)return`${y(T)} ${j} - ${y(P)} ${H}`;if(T)return`${y(T)} ${j||""}`.trim()}else{const T=d.value.single,P=f.value.single;return`${y(T)} ${P||""}`.trim()}return""}),U=()=>{if(c.value)d.value.single=c.value.value||null;else if(i.value){const y=i.value.value;if(typeof y=="string"&&y.includes("/")){const[E,N]=y.split("/");d.value.start=E||null,d.value.end=N||null}else d.value.start=y||null,d.value.end=y||null}},Y=()=>d.value.start&&d.value.end?`${d.value.start}/${d.value.end}`:null,h=()=>{if(o.range){const N=d.value.start,T=d.value.end||d.value.start,P=f.value.from,j=f.value.to;if(o.mode==="time")return P&&j?{start:P,end:j}:null;if(o.mode==="date")return N&&T?{start:N,end:T}:null;if(o.mode==="datetime"){if(!N||!T)return null;const H=P?`${P}:00`:"00:00:00",ee=j?`${j}:00`:"23:59:59",oe=`${N}T${H}`,et=`${T}T${ee}`;return{start:oe,end:et}}return null}const y=d.value.single,E=f.value.single;if(o.mode==="time")return E||null;if(o.mode==="date")return y||null;if(o.mode==="datetime"){if(!y)return null;const N=E?`${E}:00`:"00:00:00";return`${y}T${N}`}return null},B=async()=>{U();const y=h();r("update:modelValue",y),r("change",y)},w=()=>{e.nextTick(()=>{B()})},z=y=>{const E=y.target;o.range?E===m.value?f.value.from=E.value:E===g.value&&(f.value.to=E.value):f.value.single=E.value,B()},p=()=>{s.value=!s.value},v=()=>{B(),s.value=!1},b=y=>{!o.popup||!s.value||setTimeout(()=>{const E=a.value,N=y.target,T=`date-picker-${o.id}-popup`;E&&!E.contains(N)&&!y.target.closest(`#${T}`)&&v()},0)},I=()=>{v()},O=()=>{B(),o.popup&&(s.value=!1)},q=()=>{if(!l)return;const y=o.range?i.value:c.value;y&&typeof y.navigate=="function"&&y.navigate(-1)},G=()=>{if(!l)return;const y=o.range?i.value:c.value;y&&typeof y.navigate=="function"&&y.navigate(1)};return e.onMounted(()=>{l&&Promise.resolve().then(()=>Ia).catch(y=>{console.warn("Failed to load cally:",y)}),k()}),e.watch(d,async y=>{if(await e.nextTick(),c.value&&y.single){const E=y.single;c.value.value!==E&&(c.value.value=E)}if(i.value){const E=Y();E&&i.value.value!==E&&(i.value.value=E)}B()},{immediate:!0,deep:!0}),e.watch([d,c,i],async()=>{await e.nextTick(),c.value&&d.value.single&&!c.value.value&&(c.value.value=d.value.single),i.value&&d.value.start&&d.value.end&&!i.value.value&&(i.value.value=`${d.value.start}/${d.value.end}`),B()},{immediate:!0}),e.watch([u,m,g],()=>{B()},{immediate:!0}),(y,E)=>{const N=e.resolveComponent("calendar-month"),T=e.resolveComponent("calendar-date"),P=e.resolveComponent("calendar-range");return e.openBlock(),e.createElementBlock("div",{class:"inline-block relative w-fit lg:w-full",ref_key:"pickerContainer",ref:a,onMousedownCapture:b},[o.popup?(e.openBlock(),e.createElementBlock("div",{key:0,class:"flex items-center gap-2 cursor-pointer w-full",onClick:E[0]||(E[0]=j=>o.disabled?null:p())},[e.createElementVNode("div",co,[M.value?(e.openBlock(),e.createElementBlock("span",mo,e.toDisplayString(M.value),1)):(e.openBlock(),e.createElementBlock("span",uo,e.toDisplayString(o.placeholder),1))])])):e.createCommentVNode("",!0),s.value||!o.popup?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["z-50 bg-base-100 rounded-md w-full min-w-xs overflow-hidden",{"absolute top-full left-0 mt-2 shadow-lg":o.popup,"mt-2":!o.popup}]),id:`date-picker-${o.id}-popup`,onKeydown:[E[1]||(E[1]=e.withKeys(e.withModifiers(()=>{},["prevent","stop"]),["tab"])),e.withKeys(I,["esc"]),e.withKeys(e.withModifiers(O,["prevent"]),["enter"])]},[!o.range&&o.mode!=="time"&&l?(e.openBlock(),e.createBlock(T,{key:0,class:"cally w-full",ref_key:"datePicker",ref:c,id:`${o.id}-date`,min:o.min,max:o.max,disabled:o.disabled,"first-day-of-week":o.firstDayOfWeek,onChange:w},{default:e.withCtx(()=>[e.createElementVNode("button",{slot:"previous",class:"btn-outline btn btn-primary md:btn-sm",onClick:q},[...E[2]||(E[2]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1)])]),e.createElementVNode("button",{slot:"next",class:"btn-outline btn btn-primary md:btn-sm",onClick:G},[...E[3]||(E[3]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"})],-1)])]),e.createVNode(N,{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(P,{key:1,class:"cally w-full",ref_key:"rangeDatePicker",ref:i,id:`${o.id}-date-range`,min:o.min,max:o.max,disabled:o.disabled,"first-day-of-week":o.firstDayOfWeek,onChange:w},{default:e.withCtx(()=>[e.createElementVNode("button",{slot:"previous",class:"btn-outline btn btn-primary md:btn-sm",onClick:q},[...E[4]||(E[4]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1)])]),e.createElementVNode("button",{slot:"next",class:"btn-outline btn btn-primary md:btn-sm",onClick:G},[...E[5]||(E[5]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"})],-1)])]),e.createVNode(N,{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",po,[e.createElementVNode("div",ho,[e.createElementVNode("div",go,[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:z,disabled:o.disabled,value:f.value.from||""},null,40,yo)]),E[6]||(E[6]=e.createElementVNode("svg",{class:"join-item",viewBox:"0 0 1024 1024",focusable:"false","data-icon":"swap-right",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"})],-1)),e.createElementVNode("div",bo,[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:g,id:`${o.id}-time-to`,onChange:z,disabled:o.disabled,value:f.value.to||""},null,40,ko)])])])):e.createCommentVNode("",!0),!o.range&&o.mode!=="date"?(e.openBlock(),e.createElementBlock("div",wo,[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:z,disabled:o.disabled,value:f.value.single||""},null,40,xo)])):e.createCommentVNode("",!0),o.popup&&o.closeText?(e.openBlock(),e.createElementBlock("div",vo,[e.createElementVNode("button",{class:"btn btn-primary max-lg:w-full",onClick:v},e.toDisplayString(o.closeText),1)])):e.createCommentVNode("",!0)],42,fo)):e.createCommentVNode("",!0)],544)}}}),[["__scopeId","data-v-e0b34494"]]),Eo=Object.freeze(Object.defineProperty({__proto__:null,default:rt},Symbol.toStringTag,{value:"Module"})),Bo=["value","checked","onChange","disabled"],$o=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,Bo))),128))],2))}}),Co={class:"badge"},So=["onClick"],Vo={class:"opacity-75"},No=["placeholder"],Do=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(C=>C!==d),o("update:modelValue",r.value)},g=()=>{c.value===""&&(r.value.pop(),o("update:modelValue",r.value))},f=d=>{d.key==="Enter"?u():d.key==="Backspace"&&c.value===""&&g()};return e.watch(()=>l.modelValue,d=>{r.value=[...d]}),(d,C)=>(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,x=>e.renderSlot(d.$slots,"tag",{key:x,tag:x},()=>[e.createElementVNode("div",Co,[e.createElementVNode("button",{class:"px-1! py-0! h-fit font-bold cursor-pointer",onClick:S=>m(x),"aria-label":"Remove tag"},"X",8,So),e.createElementVNode("span",Vo,e.toDisplayString(x),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":C[0]||(C[0]=x=>c.value=x),type:"text",placeholder:t.placeholder||"Type here",class:"h-full input input-ghost",onKeydown:f,"aria-label":"Add tags"},null,40,No)),[[e.vModelText,c.value]]):e.createCommentVNode("",!0)])],2))}}),zo={class:"w-full max-w-xs form-control"},To={key:0,class:"label"},Mo={class:"label-text"},Io=["value"],Oo={key:0,value:"",disabled:"",selected:""},_o=["value"],st=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",zo,[t.label?(e.openBlock(),e.createElementBlock("label",To,[e.createElementVNode("span",Mo,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",Oo,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,_o))),128))],40,Io)]))}}),Lo=Object.freeze(Object.defineProperty({__proto__:null,default:st},Symbol.toStringTag,{value:"Module"})),Po={key:0,class:"label"},jo={class:"label-text"},Ao=["onKeydown","aria-expanded","aria-activedescendant"],Fo=["placeholder","disabled"],Uo={class:"top-full z-10 absolute bg-base-100 shadow-lg mt-1 rounded-md w-full dropdown-content",role:"listbox"},Ro={class:"flex-nowrap p-0 w-[inherit] max-h-60 overflow-y-auto menu"},qo=["onMousedown","id","aria-selected"],Ho={__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 v=(a.default?a.default():[]).filter(b=>b.type!==e.Comment);return console.log("hasDefaultSlotContent computed:",v.length>0),v.length>0}),c=e.ref(""),i=e.ref(null),u=e.ref(!1),m=e.ref(null),g=e.ref(null),f=e.ref(null),d=e.ref(null),C=()=>{u.value=!o.disabled},x=()=>{u.value=!1,d.value=null,s.value||(i.value&&c.value!==i.value.text?c.value=i.value.text:i.value||(c.value=""))},S=()=>{u.value?x():C()},k=e.computed(()=>{const p=c.value?c.value.toLowerCase():"";return p===""&&!u.value?[]:o.options.filter(b=>b&&b.text?b.text.toLowerCase().includes(p):"")});e.watch(()=>o.modelValue,(p,v)=>{if(p!==v&&x(),p==null)i.value=null,!u.value&&!s.value&&(c.value="");else{const b=o.options.find(I=>I.value===p);b?(i.value=b,!u.value&&!s.value&&(c.value=b.text)):(i.value=null,!u.value&&!s.value&&(c.value=""))}},{immediate:!0});const M=p=>{g.value&&!g.value.contains(p.target)&&x()},U=()=>{setTimeout(()=>{g.value&&!g.value.contains(document.activeElement)&&x()},100)};e.watch(u,p=>{p?setTimeout(()=>{document.addEventListener("click",M)},0):document.removeEventListener("click",M)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",M),window.removeEventListener("keydown",z)});const Y=()=>{if(o.disabled)return;const p=i.value;r("update:modelValue",null),p&&r("clear",p)},h=p=>{i.value=p,s.value||(c.value=p.text),r("update:modelValue",p.value),r("select",p),x()},B=()=>{k.value.length>0&&h(k.value[0])},w=()=>{u.value||C()},z=p=>{if(!u.value||k.value.length===0)return;const v=k.value.findIndex((I,O)=>"option-"+O===d.value);let b=-1;if(p.key==="ArrowDown")p.preventDefault(),b=(v+1)%k.value.length;else if(p.key==="ArrowUp")p.preventDefault(),b=(v-1+k.value.length)%k.value.length;else if(p.key==="Enter"&&d.value){p.preventDefault();const I=k.value.find((O,q)=>"option-"+q===d.value);I&&h(I);return}else if(p.key==="Escape"){p.preventDefault(),x(),f.value&&f.value.focus();return}else if(s.value)return;if(b!==-1){d.value="option-"+b;const I=document.getElementById(d.value);I&&requestAnimationFrame(()=>{I.scrollIntoView({block:"nearest",behavior:"smooth"})})}};return e.watch(u,p=>{p?(window.addEventListener("keydown",z),!s.value&&!c.value&&i.value&&(c.value=i.value.text)):window.removeEventListener("keydown",z)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",M),window.removeEventListener("keydown",z)}),n({isDropdownOpen:u,selectedItem:i,openDropdown:C,closeDropdown:x,toggleDropdown:S,selectItem:h,filterText:c,hasDefaultSlotContent:s}),(p,v)=>(e.openBlock(),e.createElementBlock("div",{class:"relative w-full max-w-xs form-control",ref_key:"componentRoot",ref:g},[t.label?(e.openBlock(),e.createElementBlock("label",Po,[e.createElementVNode("span",jo,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:v[1]||(v[1]=b=>s.value?S():C()),onKeydown:[e.withKeys(e.withModifiers(B,["prevent"]),["enter"]),e.withKeys(e.withModifiers(B,["prevent"]),["space"])],onBlur:U,role:"combobox","aria-haspopup":"listbox","aria-expanded":u.value,"aria-activedescendant":d.value,"aria-autocomplete":"list",ref_key:"activatorWrapper",ref:f},[e.renderSlot(p.$slots,"default",{},()=>[s.value?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,type:"text",placeholder:t.placeholder,class:"bg-transparent border-none focus:outline-none w-full","onUpdate:modelValue":v[0]||(v[0]=b=>c.value=b),ref_key:"filterInput",ref:m,onFocus:C,onInput:w,tabindex:"-1",disabled:o.disabled},null,40,Fo)),[[e.vModelText,c.value]])]),i.value&&!t.disabled?(e.openBlock(),e.createBlock(e.unref(sn),{key:0,size:20,class:"mx-2 text-base-content/50 hover:text-base-content/80 cursor-pointer",onClick:e.withModifiers(Y,["stop"])})):e.createCommentVNode("",!0),s.value&&!i.value?(e.openBlock(),e.createBlock(e.unref(rn),{key:1,class:e.normalizeClass([{"rotate-180":u.value},"mx-2"]),size:20},null,8,["class"])):e.createCommentVNode("",!0)],46,Ao),e.withDirectives(e.createElementVNode("div",Uo,[e.createElementVNode("ul",Ro,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,(b,I)=>(e.openBlock(),e.createElementBlock("li",{key:b.value,onMousedown:e.withModifiers(O=>h(b),["prevent"]),class:"hover:bg-base-200 rounded-md w-full cursor-pointer",id:"option-"+I,role:"option","aria-selected":i.value&&i.value.value===b.value},[e.createElementVNode("a",null,e.toDisplayString(b.text),1)],40,qo))),128))])],512),[[e.vShow,u.value&&k.value.length>0]])],512))}},Wo={class:"w-full max-w-xs form-control"},Ko={key:0,class:"label"},Yo={class:"label-text"},Xo=["type","placeholder","disabled","value"],Go={key:1,class:"label"},Jo={class:"label-text-alt text-error validator-hint"},Zo={key:2,class:"label"},Qo={class:"label-text-alt text-success validator-hint"},it=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 S,k,M,U;let d=!0,C="";const x=o.modelValue;return(S=o.rules)!=null&&S.required&&(x==null||x==="")&&(d=!1,C="This field is required."),d&&((k=o.rules)==null?void 0:k.minLength)!==void 0&&typeof x=="string"&&x.length<o.rules.minLength&&(d=!1,C=`Must be at least ${o.rules.minLength} characters.`),d&&((M=o.rules)==null?void 0:M.maxLength)!==void 0&&typeof x=="string"&&x.length>o.rules.maxLength&&(d=!1,C=`Cannot exceed ${o.rules.maxLength} characters.`),d&&((U=o.rules)!=null&&U.email)&&typeof x=="string"&&x&&(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(x)||(d=!1,C="Please enter a valid email address.")),c.value=C,r("validate",d),d}),u=e.computed(()=>s.value&&!i.value),m=d=>{const C=d.target;r("update:modelValue",C.value),s.value&&i.value},g=()=>{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,C)=>(e.openBlock(),e.createElementBlock("div",Wo,[t.label?(e.openBlock(),e.createElementBlock("label",Ko,[e.createElementVNode("span",Yo,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:g},null,42,Xo),u.value?(e.openBlock(),e.createElementBlock("div",Go,[e.createElementVNode("span",Jo,e.toDisplayString(c.value),1)])):i.value&&s.value&&t.successMessage?(e.openBlock(),e.createElementBlock("div",Zo,[e.createElementVNode("span",Qo,e.toDisplayString(t.successMessage),1)])):e.createCommentVNode("",!0)]))}}),el=Object.freeze(Object.defineProperty({__proto__:null,default:it},Symbol.toStringTag,{value:"Module"})),tl=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)}}),Ce=e.ref([]);function ct(){const t=(l,o="default",r=5e3)=>{const a=Math.random().toString(36).substring(2,9);Ce.value.push({id:a,message:l,type:o,duration:r})},n=l=>{Ce.value=Ce.value.filter(o=>o.id!==l)};return{toasts:e.readonly(Ce),addToast:t,removeToast:n}}const nl=["value"],dt=ae(e.defineComponent({__name:"ToastNotification",props:{toast:{type:Object,required:!0}},emits:["remove"],setup(t,{emit:n}){const l=t,o=n,r=e.ref(100);let a=null,s=null;e.onMounted(()=>{const i=l.toast.duration,u=Date.now();a=setTimeout(()=>{o("remove",l.toast.id)},i),s=setInterval(()=>{const m=Date.now()-u,g=Math.max(0,i-m);r.value=g/i*100,g===0&&clearInterval(s)},50)}),e.onUnmounted(()=>{a&&clearTimeout(a),s&&clearInterval(s)});const c=e.computed(()=>{switch(l.toast.type){case"success":return"alert-success";case"warning":return"alert-warning";case"error":return"alert-error";case"info":return"alert-info";default:return""}});return(i,u)=>(e.openBlock(),e.createElementBlock("div",{role:"alert",class:e.normalizeClass(["alert z-60",c.value,"shadow-lg"])},[e.createElementVNode("span",null,e.toDisplayString(t.toast.message),1),e.createElementVNode("progress",{class:e.normalizeClass(["progress absolute bottom-0 left-0 w-full progress-neutral"]),value:r.value,max:"100"},null,8,nl)],2))}}),[["__scopeId","data-v-bc0c6917"]]),ol=ae(e.defineComponent({__name:"ToastContainer",props:{position:{type:String,default:"top-end"}},setup(t){const n=t,{toasts:l,removeToast:o}=ct(),r=e.computed(()=>{const[a,s]=n.position.split("-");return{"toast-top":a==="top","toast-middle":a==="middle","toast-bottom":a==="bottom","toast-start":s==="start","toast-center":s==="center","toast-end":s==="end"}});return(a,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["toast z-50",r.value])},[e.createVNode(e.TransitionGroup,{name:"toast-fade"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),c=>(e.openBlock(),e.createBlock(dt,{key:c.id,toast:c,onRemove:i=>e.unref(o)(c.id)},null,8,["toast","onRemove"]))),128))]),_:1})],2))}}),[["__scopeId","data-v-e10fa884"]]),ll={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",class:"w-6 h-6 stroke-current shrink-0"},al=["d"],rl={class:"empty:hidden"},sl=e.defineComponent({__name:"alert",props:{type:{default:"default"},message:{},closable:{type:Boolean,default:!1},modelValue:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(t,{emit:n}){const l=t,o=n,r=e.computed({get:()=>l.modelValue,set:i=>o("update:modelValue",i)}),a=e.computed(()=>{switch(l.type){case"info":return"alert-info";case"success":return"alert-success";case"warning":return"alert-warning";case"error":return"alert-error";default:return""}}),s=e.computed(()=>{switch(l.type){case"info":return"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z";case"success":return"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z";case"warning":return"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z";case"error":return"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z";default:return"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}}),c=()=>{r.value=!1};return(i,u)=>r.value?(e.openBlock(),e.createElementBlock("div",{key:0,role:"alert",class:e.normalizeClass(["alert",a.value])},[e.renderSlot(i.$slots,"icon",{class:"w-6 h-6"},()=>[(e.openBlock(),e.createElementBlock("svg",ll,[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:s.value},null,8,al)]))]),e.createElementVNode("span",null,e.toDisplayString(t.message),1),e.createElementVNode("div",rl,[t.closable?(e.openBlock(),e.createElementBlock("button",{key:0,class:"btn btn-sm btn-ghost",onClick:c},"Close")):e.createCommentVNode("",!0),e.renderSlot(i.$slots,"default")])],2)):e.createCommentVNode("",!0)}}),il={class:"container flex flex-col sm:flex-row"},cl={class:"footer-title"},dl=["href"],ul={key:0,class:"sm:hidden w-full"},ml={class:"border-b-2 border-base-100 last:border-b-0 w-full"},fl={tabindex:"0",class:"collapse collapse-plus w-full"},pl={class:"collapse-title font-bold text-lg collapsible-footer-title"},hl={class:"collapse-content flex w-full text-sm"},gl={class:"flex flex-col gap-2.5"},yl={class:"w-full"},bl=["href"],kl={class:"sm:w-1/4"},wl=e.defineComponent({__name:"footer",props:{items:{},background:{},color:{},collapseOnMobile:{type:Boolean,default:!1},rows:{default:1}},setup(t){const n=t;return(l,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["mx-auto md:px-10 py-10 text-base-content",[t.background??"bg-base-200",t.color??"text-base-content"]])},[e.createElementVNode("footer",il,[e.createElementVNode("div",{class:e.normalizeClass(["footer sm:footer-horizontal sm:w-3/4",[{"sm:grid-rows-1":n.rows===1},{"sm:grid-rows-2":n.rows===2},{"sm:grid-rows-3":n.rows===3}]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,r=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass([{"hidden sm:grid w-max":t.collapseOnMobile}])},[e.createElementVNode("h6",cl,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,dl))),256))],2))),256)),e.createElementVNode("nav",{class:e.normalizeClass(["empty:hidden",[{"hidden sm:grid":t.collapseOnMobile}]])},[e.renderSlot(l.$slots,"extra-row")],2),t.collapseOnMobile?(e.openBlock(),e.createElementBlock("nav",ul,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,r=>(e.openBlock(),e.createElementBlock("ul",ml,[e.createElementVNode("div",fl,[e.createElementVNode("div",pl,e.toDisplayString(r.title),1),e.createElementVNode("div",hl,[e.createElementVNode("ul",gl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.items,a=>(e.openBlock(),e.createElementBlock("li",yl,[e.createElementVNode("a",{class:"w-full font-medium link link-hover",href:a.link},e.toDisplayString(a.text),9,bl)]))),256))])])])]))),256))])):e.createCommentVNode("",!0)],2),e.createElementVNode("aside",kl,[e.renderSlot(l.$slots,"default")])])],2))}}),xl={},vl={class:"min-h-40 container hero"},El={class:"px-0! text-center hero-content"},Bl={class:"mt-9 text-4xl"};function $l(t,n){return e.openBlock(),e.createElementBlock("div",vl,[e.createElementVNode("div",El,[e.createElementVNode("div",null,[e.createElementVNode("h1",Bl,[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 Cl=ae(xl,[["render",$l]]),Sl={class:"flex flex-row place-content-center gap-4 categories"},Vl=["onClick"],Nl=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",Sl,[(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,Vl)]))),128))]))}}),Dl={class:"md:flex hidden navbar-start"},zl={class:"md:flex justify-center items-center hidden navbar-center"},Tl={class:"md:flex hidden navbar-end"},Ml={class:"navbar-bottom md:flex hidden"},Il=ae(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",Dl,[e.renderSlot(l.$slots,"start",{},void 0,!0)]),e.createElementVNode("div",zl,[e.renderSlot(l.$slots,"center",{},void 0,!0)]),e.createElementVNode("div",Tl,[e.renderSlot(l.$slots,"end",{},void 0,!0)]),e.createElementVNode("div",Ml,[e.renderSlot(l.$slots,"bottom",{},void 0,!0)])],2))}}),[["__scopeId","data-v-8ddb2b45"]]),Ol={key:0,class:"hidden top-4 right-0 absolute md:flex gap-4"},_l=["onClick","aria-selected"],Ll={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"},Pl={class:"p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full"},jl=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",Ol,[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:g=>a(m),"aria-selected":o.value==m},e.toDisplayString(m),11,_l),t.buttonOnlyMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Ll,[e.renderSlot(i.$slots,`${m}-tab`)]))],64))),256))],2),e.createElementVNode("div",Pl,[e.renderSlot(i.$slots,"default")])],64))}});typeof document>"u"&&(globalThis.document={}),typeof window>"u"&&(globalThis.window=globalThis);class Al{constructor(n){nt(this,ie);nt(this,me,new Set);ot(this,ie,n)}get current(){return pe(this,ie)}set current(n){pe(this,ie)!=n&&(ot(this,ie,n),pe(this,me).forEach(l=>l(n)))}on(n){return pe(this,me).add(n),()=>pe(this,me).delete(n)}}ie=new WeakMap,me=new WeakMap;const ut=t=>new Al(t),Ie=Symbol.for("atomico.hooks");globalThis[Ie]=globalThis[Ie]||{};let ce=globalThis[Ie];const Fl=Symbol.for("Atomico.suspense"),mt=Symbol.for("Atomico.effect"),Ul=Symbol.for("Atomico.layoutEffect"),ft=Symbol.for("Atomico.insertionEffect"),de=(t,n,l)=>{const{i:o,hooks:r}=ce.c,a=r[o]=r[o]||{};return a.value=t(a.value),a.effect=n,a.tag=l,ce.c.i++,r[o].value},Rl=t=>de((n=ut(t))=>n),ge=()=>de((t=ut(ce.c.host))=>t),pt=()=>ce.c.update,ql=(t,n,l=0)=>{let o={},r=!1;const a=()=>r,s=(c,i)=>{for(const u in o){const m=o[u];m.effect&&m.tag===c&&(m.value=m.effect(m.value,i))}};return{load:c=>{ce.c={host:n,hooks:o,update:t,i:0,id:l};let i;try{r=!1,i=c()}catch(u){if(u!==Fl)throw u;r=!0}finally{ce.c=null}return i},cleanEffects:c=>(s(ft,c),()=>(s(Ul,c),()=>{s(mt,c)})),isSuspense:a}},ue=Symbol.for;function ht(t,n){const l=t.length;if(l!==n.length)return!1;for(let o=0;o<l;o++){let r=t[o],a=n[o];if(r!==a)return!1}return!0}const Q=t=>typeof t=="function",ye=t=>typeof t=="object",{isArray:Hl}=Array,Oe=(t,n)=>(n?t instanceof HTMLStyleElement:!0)&&"hydrate"in((t==null?void 0:t.dataset)||{});function gt(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 yt=(t,n,l)=>(t.addEventListener(n,l),()=>t.removeEventListener(n,l));class bt{constructor(n,l,o){this.message=l,this.target=n,this.value=o}}class kt extends bt{}class Wl extends bt{}const Se="Custom",Kl=null,Yl={true:1,"":1,1:1};function Xl(t,n,l,o,r){const{type:a,reflect:s,event:c,value:i,attr:u=Gl(n)}=(l==null?void 0:l.name)!=Se&&ye(l)&&l!=Kl?l:{type:l},m=(a==null?void 0:a.name)===Se&&a.map,g=i!=null?a==Function||!Q(i)?()=>i:i:null;Object.defineProperty(t,n,{configurable:!0,set(f){const d=this[n];g&&a!=Boolean&&f==null&&(f=g());const{error:C,value:x}=(m?Ql:ea)(a,f);if(C&&x!=null)throw new kt(this,`The value defined for prop '${n}' must be of type '${a.name}'`,x);d!=x&&(this._props[n]=x??void 0,this.update(),c&&wt(this,c),this.updated.then(()=>{s&&(this._ignoreAttr=u,Jl(this,a,u,this[n]),this._ignoreAttr=null)}))},get(){return this._props[n]}}),g&&(r[n]=g()),o[u]={prop:n,type:a}}const wt=(t,{type:n,base:l=CustomEvent,...o})=>t.dispatchEvent(new l(n,o)),Gl=t=>t.replace(/([A-Z])/g,"-$1").toLowerCase(),Jl=(t,n,l,o)=>o==null||n==Boolean&&!o?t.removeAttribute(l):t.setAttribute(l,(n==null?void 0:n.name)===Se&&(n!=null&&n.serialize)?n==null?void 0:n.serialize(o):ye(o)?JSON.stringify(o):n==Boolean?"":o),Zl=(t,n)=>t==Boolean?!!Yl[n]:t==Number?Number(n):t==String?n:t==Array||t==Object?JSON.parse(n):t.name==Se?n:new t(n),Ql=({map:t},n)=>{try{return{value:t(n),error:!1}}catch{return{value:n,error:!0}}},ea=(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 ta=0;const na=t=>{var l;return((l=(t==null?void 0:t.dataset)||{})==null?void 0:l.hydrate)||""||"c"+ta++},be=(t,n=HTMLElement)=>{const l={},o={},r="prototype"in n&&n.prototype instanceof Element,a=r?n:"base"in n?n.base:HTMLElement,{props:s,styles:c}=r?t:n;class i extends a{constructor(){super(),this._setup(),this._render=()=>t({...this._props});for(const m in o)this[m]=o[m]}static get styles(){return[super.styles,c]}async _setup(){if(this._props)return;this._props={};let m,g;this.mounted=new Promise(S=>this.mount=()=>{S(),m!=this.parentNode&&(g!=m?this.unmounted.then(this.update):this.update()),m=this.parentNode}),this.unmounted=new Promise(S=>this.unmount=()=>{S(),(m!=this.parentNode||!this.isConnected)&&(f.cleanEffects(!0)()(),g=this.parentNode,m=null)}),this.symbolId=this.symbolId||Symbol(),this.symbolIdParent=Symbol();const f=ql(()=>this.update(),this,na(this));let d,C=!0;const x=Oe(this);this.update=()=>(d||(d=!0,this.updated=(this.updated||this.mounted).then(()=>{try{const S=f.load(this._render),k=f.cleanEffects();return S&&S.render(this,this.symbolId,x),d=!1,C&&!f.isSuspense()&&(C=!1,!x&&oa(this)),k()}finally{d=!1}}).then(S=>{S&&S()})),this.updated),this.update()}connectedCallback(){this.mount(),super.connectedCallback&&super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback(),this.unmount()}attributeChangedCallback(m,g,f){if(l[m]){if(m===this._ignoreAttr||g===f)return;const{prop:d,type:C}=l[m];try{this[d]=Zl(C,f)}catch{throw new Wl(this,`The value defined as attr '${m}' cannot be parsed by type '${C.name}'`,f)}}else super.attributeChangedCallback(m,g,f)}static get props(){return{...super.props,...s}}static get observedAttributes(){const m=super.observedAttributes||[];for(const g in s)Xl(this.prototype,g,s[g],l,o);return Object.keys(l).concat(m)}}return i};function oa(t){const{styles:n}=t.constructor,{shadowRoot:l}=t;if(l&&n.length){const o=[];gt(n,r=>{r&&(r instanceof Element?l.appendChild(r.cloneNode(!0)):o.push(r))}),o.length&&(l.adoptedStyleSheets=o)}}const xt=t=>(n,l)=>{de(([o,r]=[])=>((r||!r)&&(r&&ht(r,l)?o=o||!0:(Q(o)&&o(),o=null)),[o,l]),([o,r],a)=>a?(Q(o)&&o(),[]):[o||n(),r],t)},ke=xt(mt),la=xt(ft);class vt 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 _e=t=>{const n=pt();return de((l=new vt(t,(o,r,a)=>{o=Q(o)?o(r[0]):o,o!==r[0]&&(r[0]=o,a||n())}))=>l)},ne=(t,n)=>{const[l]=de(([o,r,a=0]=[])=>((!r||r&&!ht(r,n))&&(o=t()),[o,n,a]));return l},Le=t=>{const{current:n}=ge();if(!(t in n))throw new kt(n,`For useProp("${t}"), the prop does not exist on the host.`,t);return de((l=new vt(n[t],(o,r)=>{o=Q(o)?o(n[t]):o,n[t]=o}))=>(l[0]=n[t],l))},re=(t,n={})=>{const l=ge();return l[t]||(l[t]=(o=n.detail)=>wt(l.current,{type:t,...n,detail:o})),l[t]},Pe=ue("atomico/options");globalThis[Pe]=globalThis[Pe]||{sheet:!!document.adoptedStyleSheets};const Et=globalThis[Pe],aa={checked:1,value:1,selected:1},ra={list:1,type:1,size:1,form:1,width:1,height:1,src:1,href:1,slot:1},sa={shadowDom:1,staticNode:1,cloneNode:1,children:1,key:1},Ve={},je=[];class Ae extends Text{}const ia=ue("atomico/id"),we=ue("atomico/type"),Fe=ue("atomico/ref"),Bt=ue("atomico/vnode"),ca=()=>{};function da(t,n,l){return Ct(this,t,n,l)}const $t=(t,n,...l)=>{const o=n||Ve;let{children:r}=o;if(r=r??(l.length?l:je),t===ca)return r;const a=t?t instanceof Node?1:t.prototype instanceof HTMLElement&&2:0;if(a===!1&&t instanceof Function)return t(r!=je?{children:r,...o}:o);const s=Et.render||da;return{[we]:Bt,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 Ct(t,n,l=ia,o,r){let a;if(n&&n[l]&&n[l].vnode==t||t[we]!=Bt)return n;(t||!n)&&(r=r||t.type=="svg",a=t.type!="host"&&(t.raw==1?(n&&t.clone?n[Fe]:n)!=t.type:t.raw==2?!(n instanceof t.type):n?n[Fe]||n.localName!=t.type:!n),a&&t.type!=null&&(t.raw==1&&t.clone?(o=!0,n=t.type.cloneNode(!0),n[Fe]=t.type):n=t.raw==1?t.type:t.raw==2?new t.type:r?document.createElementNS("http://www.w3.org/2000/svg",t.type):document.createElement(t.type,t.is?{is:t.is}:void 0)));const s=n[l]?n[l]:Ve,{vnode:c=Ve,cycle:i=0}=s;let{fragment:u,handlers:m}=s;const{children:g=je,props:f=Ve}=c;if(m=a?{}:m||{},t.static&&!a)return n;if(t.shadow&&!n.shadowRoot&&n.attachShadow({mode:"open",...t.shadow}),t.props!=f&&fa(n,f,t.props,m,r),t.children!==g){const d=t.shadow?n.shadowRoot:n;u=ma(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 ua(t,n){const l=new Ae(""),o=new Ae("");let r;if(t[n?"prepend":"append"](l),n){let{lastElementChild:a}=t;for(;a;){const{previousElementSibling:s}=a;if(Oe(a,!0)&&!Oe(s,!0)){r=a;break}a=s}}return r?r.before(o):t.append(o),{markStart:l,markEnd:o}}function ma(t,n,l,o,r,a){t=t==null?null:Hl(t)?t:[t];const s=n||ua(l,r),{markStart:c,markEnd:i,keyes:u}=s;let m;const g=u&&new Set;let f=c;if(t&&gt(t,d=>{if(typeof d=="object"&&!d[we])return;const C=d[we]&&d.key,x=u&&C!=null&&u.get(C);f!=i&&f===x?g.delete(f):f=f==i?i:f.nextSibling;const S=u?x:f;let k=S;if(d[we])k=Ct(d,S,o,r,a);else{const M=d+"";!(k instanceof Text)||k instanceof Ae?k=new Text(M):k.data!=M&&(k.data=M)}k!=f&&(u&&g.delete(k),!S||u?(l.insertBefore(k,f),u&&f!=i&&g.add(f)):S==i?l.insertBefore(k,i):(l.replaceChild(k,S),f=k)),C!=null&&(m=m||new Map,m.set(C,k))}),f=f==i?i:f.nextSibling,n&&f!=i)for(;f!=i;){const d=f;f=f.nextSibling,d.remove()}return g&&g.forEach(d=>d.remove()),s.keyes=m,s}function fa(t,n,l,o,r){for(const a in n)!(a in l)&&St(t,a,n[a],null,r,o);for(const a in l)St(t,a,n[a],l[a],r,o)}function St(t,n,l,o,r,a){if(n=n=="class"&&!r?"className":n,l=l??null,o=o??null,n in t&&aa[n]&&(l=t[n]),!(o===l||sa[n]||n[0]=="_"))if(n[0]=="o"&&n[1]=="n"&&(Q(o)||Q(l)))pa(t,n.slice(2),o,a);else if(n=="ref")o&&(Q(o)?o(t):o.current=t);else if(n=="style"){const{style:s}=t;l=l||"",o=o||"";const c=ye(l),i=ye(o);if(c)for(const u in l)if(i)!(u in o)&&Vt(s,u,null);else break;if(i)for(const u in o){const m=o[u];c&&l[u]===m||Vt(s,u,m)}else s.cssText=o}else{const s=n[0]=="$"?n.slice(1):n;s===n&&(!r&&!ra[n]&&n in t||Q(o)||Q(l))?t[n]=o??"":o==null?t.removeAttribute(s):t.setAttribute(s,ye(o)?JSON.stringify(o):o)}}function pa(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 Vt(t,n,l){let o="setProperty";l==null&&(o="removeProperty",l=null),~n.indexOf("-")?t[o](n,l):t[n]=l}const Nt={};function Ne(t,...n){const l=(t.raw||t).reduce((o,r,a)=>o+r+(n[a]||""),"");return Nt[l]=Nt[l]||ha(l)}function ha(t){if(Et.sheet){const n=new CSSStyleSheet;return n.replaceSync(t),n}else{const n=document.createElement("style");return n.textContent=t,n}}const ga=$t("host",{style:"display: contents"}),Ue=ue("atomico/context"),ya=(t,n)=>{const l=ge();la(()=>yt(l.current,"ConnectContext",o=>{t===o.detail.id&&(o.stopPropagation(),o.detail.connect(n))}),[t])},ba=t=>{const n=re("ConnectContext",{bubbles:!0,composed:!0}),l=()=>{let a;return n({id:t,connect(s){a=s}}),a},[o,r]=_e(l);return ke(()=>{o||(t[Ue]||(t[Ue]=customElements.whenDefined(new t().localName)),t[Ue].then(()=>r(l)))},[t]),o},ka=t=>{const n=ba(t),l=pt();return ke(()=>{if(n)return yt(n,"UpdatedValue",l)},[n]),(n||t).value},wa=t=>{const n=be(()=>(ya(n,ge().current),ga),{props:{value:{type:Object,event:{type:"UpdatedValue"},value:()=>t}}});return n.value=t,n},L=(t,n,l)=>(n==null?n={key:l}:n.key=l,$t(t,n)),xe=L,Dt=Ne`*,*:before,*:after{box-sizing:border-box}button{padding:0;touch-action:manipulation;cursor:pointer;user-select:none}`,zt=Ne`.vh{position:absolute;transform:scale(0)}`;function Re(){const t=new Date;return new F(t.getFullYear(),t.getMonth()+1,t.getDate())}function qe(t,n=0){const l=J(t),o=l.getUTCDay(),r=(o<n?7:0)+o-n;return l.setUTCDate(l.getUTCDate()-r),F.from(l)}function Tt(t,n=0){return qe(t,n).add({days:6})}function Mt(t){return F.from(new Date(Date.UTC(t.year,t.month,0)))}function De(t,n,l){return n&&F.compare(t,n)<0?n:l&&F.compare(t,l)>0?l:t}const xa={days:1};function va(t,n=0){let l=qe(t.toPlainDate(),n);const o=Tt(Mt(t),n),r=[];for(;F.compare(l,o)<0;){const a=[];for(let s=0;s<7;s++)a.push(l),l=l.add(xa);r.push(a)}return r}function J(t){return new Date(Date.UTC(t.year,t.month-1,t.day??1))}const Ea=/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[0-1])$/,He=(t,n)=>t.toString().padStart(n,"0");class F{constructor(n,l,o){this.year=n,this.month=l,this.day=o}add(n){const l=J(this);if("days"in n)return l.setUTCDate(this.day+n.days),F.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=F.from(J({year:o,month:r,day:1}));return De(F.from(l),a,Mt(a))}toString(){return`${He(this.year,4)}-${He(this.month,2)}-${He(this.day,2)}`}toPlainYearMonth(){return new ze(this.year,this.month)}equals(n){return F.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(Ea);if(!l)throw new TypeError(n);const[,o,r,a]=l;return new F(parseInt(o,10),parseInt(r,10),parseInt(a,10))}return new F(n.getUTCFullYear(),n.getUTCMonth()+1,n.getUTCDate())}}class ze{constructor(n,l){this.year=n,this.month=l}add(n){const l=J(this),o=(n.months??0)+(n.years??0)*12;return l.setUTCMonth(l.getUTCMonth()+o),new ze(l.getUTCFullYear(),l.getUTCMonth()+1)}equals(n){return this.year===n.year&&this.month===n.month}toPlainDate(){return new F(this.year,this.month,1)}}function Te(t,n){if(n)try{return t.from(n)}catch{}}function se(t){const[n,l]=Le(t);return[ne(()=>Te(F,n),[n]),o=>l(o==null?void 0:o.toString())]}function Ba(t){const[n="",l]=Le(t);return[ne(()=>{const[o,r]=n.split("/"),a=Te(F,o),s=Te(F,r);return a&&s?[a,s]:[]},[n]),o=>l(`${o[0]}/${o[1]}`)]}function $a(t){const[n="",l]=Le(t);return[ne(()=>{const o=[];for(const r of n.trim().split(/\s+/)){const a=Te(F,r);a&&o.push(a)}return o},[n]),o=>l(o.join(" "))]}function ve(t,n){return ne(()=>new Intl.DateTimeFormat(n,{timeZone:"UTC",...t}),[n,t])}function It(t,n,l){const o=ve(t,l);return ne(()=>{const r=[],a=new Date;for(var s=0;s<7;s++){const c=(a.getUTCDay()-n+7)%7;r[c]=o.format(a),a.setUTCDate(a.getUTCDate()+1)}return r},[n,o])}const Ot=(t,n,l)=>De(t,n,l)===t,_t=t=>t.target.matches(":dir(ltr)"),Ca={month:"long",day:"numeric"},Sa={month:"long"},Va={weekday:"long"},We={bubbles:!0};function Na({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:g}=n,f=c??Re(),d=It(Va,o,u),C=ne(()=>({weekday:g}),[g]),x=It(C,o,u),S=ve(Ca,u),k=ve(Sa,u),M=ne(()=>i.start.add({months:l}),[i,l]),U=ne(()=>va(M,o),[M,o]),Y=re("focusday",We),h=re("selectday",We),B=re("hoverday",We);function w(v){Y(De(v,a,s))}function z(v){let b;switch(v.key){case"ArrowRight":b=m.add({days:_t(v)?1:-1});break;case"ArrowLeft":b=m.add({days:_t(v)?-1:1});break;case"ArrowDown":b=m.add({days:7});break;case"ArrowUp":b=m.add({days:-7});break;case"PageUp":b=m.add(v.shiftKey?{years:-1}:{months:-1});break;case"PageDown":b=m.add(v.shiftKey?{years:1}:{months:1});break;case"Home":b=qe(m,o);break;case"End":b=Tt(m,o);break;default:return}w(b),v.preventDefault()}function p(v){var T,P;const b=M.equals(v);if(!n.showOutsideDays&&!b)return;const I=v.equals(m),O=v.equals(f),q=J(v),G=r==null?void 0:r(q),y=!Ot(v,a,s);let E="",N;if(n.type==="range"){const[j,H]=n.value,ee=j==null?void 0:j.equals(v),oe=H==null?void 0:H.equals(v);N=j&&H&&Ot(v,j,H),E=`${ee?"range-start":""} ${oe?"range-end":""} ${N&&!ee&&!oe?"range-inner":""}`}else n.type==="multi"?N=n.value.some(j=>j.equals(v)):N=(T=n.value)==null?void 0:T.equals(v);return{part:`${`button day day-${q.getDay()} ${b?N?"selected":"":"outside"} ${G?"disallowed":""} ${O?"today":""} ${((P=n.getDayParts)==null?void 0:P.call(n,q))??""}`} ${E}`,tabindex:b&&I?0:-1,disabled:y,"aria-disabled":G?"true":void 0,"aria-pressed":b&&N,"aria-current":O?"date":void 0,"aria-label":S.format(q),onkeydown:z,onclick(){G||h(v),w(v)},onmouseover(){!G&&!y&&B(v)}}}return{weeks:U,yearMonth:M,daysLong:d,daysVisible:x,formatter:k,getDayProps:p}}const Ke=Re(),Ye=wa({type:"date",firstDayOfWeek:1,focusedDate:Ke,page:{start:Ke.toPlainYearMonth(),end:Ke.toPlainYearMonth()}});customElements.define("calendar-ctx",Ye);const Da=(t,n)=>(n+t)%7,Lt=be(t=>{const n=ka(Ye),l=Rl(),o=Na({props:t,context:n});function r(){var a;(a=l.current.querySelector("button[tabindex='0']"))==null||a.focus()}return xe("host",{shadowDom:!0,focus:r,children:[L("div",{id:"h",part:"heading",children:o.formatter.format(J(o.yearMonth))}),xe("table",{ref:l,"aria-labelledby":"h",part:"table",children:[L("thead",{children:L("tr",{part:"tr head",children:o.daysLong.map((a,s)=>xe("th",{part:`th day day-${Da(n.firstDayOfWeek,s)}`,scope:"col",children:[L("span",{class:"vh",children:a}),L("span",{"aria-hidden":"true",children:o.daysVisible[s]})]}))})}),L("tbody",{children:o.weeks.map((a,s)=>L("tr",{part:"tr week",children:a.map((c,i)=>{const u=o.getDayProps(c);return L("td",{part:"td",children:u&&L("button",{...u,children:c.day})},i)})},s))})]})]})},{props:{offset:{type:Number,value:0}},styles:[Dt,zt,Ne`: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",Lt);function Pt(t){return L("button",{part:`button ${t.name} ${t.onclick?"":"disabled"}`,onclick:t.onclick,"aria-disabled":t.onclick?null:"true",children:L("slot",{name:t.name,children:t.children})})}function Xe(t){const n=J(t.page.start),l=J(t.page.end);return xe("div",{role:"group","aria-labelledby":"h",part:"container",children:[L("div",{id:"h",class:"vh","aria-live":"polite","aria-atomic":"true",children:t.formatVerbose.formatRange(n,l)}),xe("div",{part:"header",children:[L(Pt,{name:"previous",onclick:t.previous,children:"Previous"}),L("slot",{part:"heading",name:"heading",children:L("div",{"aria-hidden":"true",children:t.format.formatRange(n,l)})}),L(Pt,{name:"next",onclick:t.next,children:"Next"})]}),L(Ye,{value:t,onselectday:t.onSelect,onfocusday:t.onFocus,onhoverday:t.onHover,children:L("slot",{})})]})}const Ge={value:{type:String,value:""},min:{type:String,value:""},max:{type:String,value:""},today:{type:String,value:""},isDateDisallowed:{type:Function,value:t=>!1},formatWeekday:{type:String,value:()=>"narrow"},getDayParts:{type:Function,value:t=>""},firstDayOfWeek:{type:Number,value:()=>1},showOutsideDays:{type:Boolean,value:!1},locale:{type:String,value:()=>{}},months:{type:Number,value:1},focusedDate:{type:String,value:()=>{}},pageBy:{type:String,value:()=>"months"}},Je=[Dt,zt,Ne`: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}`],za={year:"numeric"},Ta={year:"numeric",month:"long"};function Ze(t,n){return(n.year-t.year)*12+n.month-t.month}const jt=(t,n)=>(t=n===12?new ze(t.year,1):t,{start:t,end:t.add({months:n-1})});function Ma({pageBy:t,focusedDate:n,months:l,max:o,min:r,goto:a}){const s=t==="single"?1:l,[c,i]=_e(()=>jt(n.toPlainYearMonth(),l)),u=g=>i(jt(c.start.add({months:g}),l)),m=g=>{const f=Ze(c.start,g.toPlainYearMonth());return f>=0&&f<l};return ke(()=>{if(m(n))return;const g=Ze(n.toPlainYearMonth(),c.start);a(n.add({months:g}))},[c.start]),ke(()=>{if(m(n))return;const g=Ze(c.start,n.toPlainYearMonth());u(g===-1?-s:g===l?s:Math.floor(g/l)*l)},[n,s,l]),{page:c,previous:!r||!m(r)?()=>u(-s):void 0,next:!o||!m(o)?()=>u(s):void 0}}function Qe({months:t,pageBy:n,locale:l,focusedDate:o,setFocusedDate:r}){const[a]=se("min"),[s]=se("max"),[c]=se("today"),i=re("focusday"),u=re("change"),m=ne(()=>De(o??c??Re(),a,s),[o,c,a,s]);function g(k){r(k),i(J(k))}const{next:f,previous:d,page:C}=Ma({pageBy:n,focusedDate:m,months:t,min:a,max:s,goto:g}),x=ge();function S(k){const M=(k==null?void 0:k.target)??"day";M==="day"?x.current.querySelectorAll("calendar-month").forEach(U=>U.focus(k)):x.current.shadowRoot.querySelector(`[part~='${M}']`).focus(k)}return{format:ve(za,l),formatVerbose:ve(Ta,l),page:C,focusedDate:m,dispatch:u,onFocus(k){k.stopPropagation(),g(k.detail),setTimeout(S)},min:a,max:s,today:c,next:f,previous:d,focus:S}}const At=be(t=>{const[n,l]=se("value"),[o=n,r]=se("focusedDate"),a=Qe({...t,focusedDate:o,setFocusedDate:r});function s(c){l(c.detail),a.dispatch()}return L("host",{shadowDom:!0,focus:a.focus,children:L(Xe,{...t,...a,type:"date",value:n,onSelect:s})})},{props:Ge,styles:Je});customElements.define("calendar-date",At);const Ft=(t,n)=>F.compare(t,n)<0?[t,n]:[n,t],Ut=be(t=>{const[n,l]=Ba("value"),[o=n[0],r]=se("focusedDate"),a=Qe({...t,focusedDate:o,setFocusedDate:r}),s=re("rangestart"),c=re("rangeend"),[i,u]=se("tentative"),[m,g]=_e();ke(()=>g(void 0),[i]);function f(S){a.onFocus(S),d(S)}function d(S){S.stopPropagation(),i&&g(S.detail)}function C(S){const k=S.detail;S.stopPropagation(),i?(l(Ft(i,k)),u(void 0),c(J(k)),a.dispatch()):(u(k),s(J(k)))}const x=i?Ft(i,m??i):n;return L("host",{shadowDom:!0,focus:a.focus,children:L(Xe,{...t,...a,type:"range",value:x,onFocus:f,onHover:d,onSelect:C})})},{props:{...Ge,tentative:{type:String,value:""}},styles:Je});customElements.define("calendar-range",Ut);const Rt=be(t=>{const[n,l]=$a("value"),[o=n[0],r]=se("focusedDate"),a=Qe({...t,focusedDate:o,setFocusedDate:r});function s(c){const i=[...n],u=n.findIndex(m=>m.equals(c.detail));u<0?i.push(c.detail):i.splice(u,1),l(i),a.dispatch()}return L("host",{shadowDom:!0,focus:a.focus,children:L(Xe,{...t,...a,type:"multi",value:n,onSelect:s})})},{props:Ge,styles:Je});customElements.define("calendar-multi",Rt);const Ia=Object.freeze(Object.defineProperty({__proto__:null,CalendarDate:At,CalendarMonth:Lt,CalendarMulti:Rt,CalendarRange:Ut},Symbol.toStringTag,{value:"Module"}));$.Accordion=Cn,$.AdvancedSearch=io,$.Alert=sl,$.Avatar=Nn,$.Badge=Dn,$.ButtonComponent=Yt,$.Card=Ln,$.Carousel=qn,$.CarouselItem=Hn,$.CategoryNavigation=Nl,$.DatetimePicker=rt,$.Dropdown=Jt,$.FilterableSelect=Ho,$.Footer=wl,$.Hero=Cl,$.InputField=it,$.Loader=tl,$.Modal=en,$.NavigationBar=Il,$.Rating=$o,$.Selector=st,$.Swap=on,$.Tab=jl,$.TagInput=Do,$.ThemeController=pn,$.Toast=ol,$.ToastComposable=ct,$.ToastNotification=dt,Object.defineProperty($,Symbol.toStringTag,{value:"Module"})}));
package/dist/style.css CHANGED
@@ -2340,6 +2340,9 @@
2340
2340
  .z-50 {
2341
2341
  z-index: 50;
2342
2342
  }
2343
+ .z-60 {
2344
+ z-index: 60;
2345
+ }
2343
2346
  .tab-content {
2344
2347
  order: var(--tabcontent-order);
2345
2348
  display: none;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "manolis-ui",
3
3
  "private": false,
4
- "version": "0.19.1",
4
+ "version": "0.19.3",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist/*"