manolis-ui 0.17.3 → 0.17.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- .cursor-grabbing .carousel-item[data-v-9f058f5d]{cursor:grabbing!important;pointer-events:none}.carousel-vertical[data-v-9f058f5d]{overflow:hidden}.pointer-events-none[data-v-9f058f5d]{pointer-events:none}.carousel[data-v-9f058f5d]{overflow:hidden;-ms-overflow-style:none;scrollbar-width:none}.carousel[data-v-9f058f5d]::-webkit-scrollbar{display:none}.fade-enter-active[data-v-9f058f5d],.fade-leave-active[data-v-9f058f5d]{transition:opacity .3s ease}.fade-enter-from[data-v-9f058f5d],.fade-leave-to[data-v-9f058f5d]{opacity:0}.fade-leave-active[data-v-9f058f5d]{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)}.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-f4fe3be2]{cursor:grabbing!important;pointer-events:none}.carousel-vertical[data-v-f4fe3be2]{overflow:hidden}.pointer-events-none[data-v-f4fe3be2]{pointer-events:none}.carousel[data-v-f4fe3be2]{overflow:hidden;-ms-overflow-style:none;scrollbar-width:none}.carousel[data-v-f4fe3be2]::-webkit-scrollbar{display:none}.fade-enter-active[data-v-f4fe3be2],.fade-leave-active[data-v-f4fe3be2]{transition:opacity .3s ease}.fade-enter-from[data-v-f4fe3be2],.fade-leave-to[data-v-f4fe3be2]{opacity:0}.fade-leave-active[data-v-f4fe3be2]{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)}.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 _, computed as Q, createElementBlock as i, openBlock as o, normalizeClass as D, createCommentVNode as B, renderSlot as E, createTextVNode as Oe, createElementVNode as n, Fragment as K, renderList as J, toDisplayString as L, ref as g, watch as H, h as Ie, onMounted as ve, withDirectives as ye, createVNode as ie, isRef as _e, vModelCheckbox as Fe, unref as ae, provide as qe, onUnmounted as Ve, normalizeStyle as me, Transition as Be, withCtx as be, inject as Ue, useId as He, defineAsyncComponent as ke, nextTick as de, onBeforeUnmount as Me, withModifiers as se, createBlock as ue, resolveDynamicComponent as $e, mergeProps as Ce, withKeys as ce, resolveComponent as Se, vModelText as Ee, useSlots as We, Comment as Ke, vShow as Xe } from "vue";
1
+ import { defineComponent as _, computed as Q, createElementBlock as i, openBlock as o, normalizeClass as D, createCommentVNode as B, renderSlot as E, createTextVNode as Ve, createElementVNode as n, Fragment as K, renderList as J, toDisplayString as j, ref as g, watch as H, h as Ie, onMounted as ve, withDirectives as ye, createVNode as ie, isRef as _e, vModelCheckbox as Fe, unref as oe, provide as qe, onUnmounted as Me, normalizeStyle as me, Transition as De, withCtx as be, inject as Ue, useId as He, defineAsyncComponent as ke, nextTick as de, onBeforeUnmount as ze, withModifiers as se, createBlock as ue, resolveDynamicComponent as $e, mergeProps as Ce, withKeys as ce, resolveComponent as Se, vModelText as Ee, useSlots as We, Comment as Ke, vShow as Xe } from "vue";
2
2
  const Ye = ["disabled"], Ge = {
3
3
  key: 0,
4
4
  class: "loading loading-spinner"
@@ -77,7 +77,7 @@ const Ye = ["disabled"], Ge = {
77
77
  }, [
78
78
  e.loading ? (o(), i("span", Ge)) : B("", !0),
79
79
  E(a.$slots, "default", {}, () => [
80
- r[0] || (r[0] = Oe("Submit", -1))
80
+ r[0] || (r[0] = Ve("Submit", -1))
81
81
  ])
82
82
  ], 10, Ye));
83
83
  }
@@ -116,7 +116,7 @@ const Ye = ["disabled"], Ge = {
116
116
  (o(!0), i(K, null, J(e.items, (r) => (o(), i("li", null, [
117
117
  n("a", {
118
118
  href: r.link
119
- }, L(r.text), 9, Ze)
119
+ }, j(r.text), 9, Ze)
120
120
  ]))), 256)),
121
121
  E(s.$slots, "additional")
122
122
  ])
@@ -293,7 +293,7 @@ const it = pe("MoonIcon", [
293
293
  * This source code is licensed under the ISC license.
294
294
  * See the LICENSE file in the root directory of this source tree.
295
295
  */
296
- const De = pe("SearchIcon", [
296
+ const Oe = pe("SearchIcon", [
297
297
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
298
298
  ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
299
299
  ]);
@@ -344,10 +344,10 @@ const rt = pe("SunIcon", [
344
344
  "true-value": v.lightTheme,
345
345
  "false-value": v.darkTheme
346
346
  }, null, 8, ct), [
347
- [Fe, ae(l)]
347
+ [Fe, oe(l)]
348
348
  ]),
349
- ie(ae(rt), { class: "swap-off fill-current" }),
350
- ie(ae(it), { class: "swap-on fill-current" })
349
+ ie(oe(rt), { class: "swap-off fill-current" }),
350
+ ie(oe(it), { class: "swap-on fill-current" })
351
351
  ]));
352
352
  }
353
353
  }), vt = ["name"], ft = { class: "collapse-title font-bold text-2xl lg:text-4xl" }, mt = { class: "collapse-content" }, pt = ["innerHTML"], gn = /* @__PURE__ */ _({
@@ -369,7 +369,7 @@ const rt = pe("SunIcon", [
369
369
  name: e.name,
370
370
  value: "true"
371
371
  }, null, 8, vt),
372
- n("div", ft, L(s.title), 1),
372
+ n("div", ft, j(s.title), 1),
373
373
  n("div", mt, [
374
374
  n("span", {
375
375
  innerHTML: s.content
@@ -407,7 +407,7 @@ const rt = pe("SunIcon", [
407
407
  key: 1,
408
408
  class: D(["flex justify-center bg-neutral p-[25%] rounded w-16 text-neutral-content text-center", [{ "rounded-full": e.fullyRounded }, { rounded: !e.fullyRounded }]])
409
409
  }, [
410
- n("p", gt, L(e.initials), 1)
410
+ n("p", gt, j(e.initials), 1)
411
411
  ], 2))
412
412
  ], 2));
413
413
  }
@@ -505,9 +505,9 @@ const rt = pe("SunIcon", [
505
505
  }, null, 2)) : B("", !0)
506
506
  ], 2),
507
507
  e.loading ? B("", !0) : (o(), i("div", bt, [
508
- e.title ? (o(), i("h2", wt, L(e.title), 1)) : B("", !0),
508
+ e.title ? (o(), i("h2", wt, j(e.title), 1)) : B("", !0),
509
509
  E(t.$slots, "details"),
510
- e.description ? (o(), i("p", xt, L(e.description), 1)) : B("", !0),
510
+ e.description ? (o(), i("p", xt, j(e.description), 1)) : B("", !0),
511
511
  n("div", kt, [
512
512
  E(t.$slots, "actions")
513
513
  ])
@@ -521,7 +521,7 @@ const rt = pe("SunIcon", [
521
521
  ])])) : B("", !0)
522
522
  ], 2));
523
523
  }
524
- }), je = Symbol("CarouselItemStyle"), Ct = { class: "relative h-full" }, St = {
524
+ }), Le = Symbol("CarouselItemStyle"), Ct = { class: "relative h-full" }, St = {
525
525
  key: 0,
526
526
  class: "flex-shrink-0"
527
527
  }, It = {
@@ -586,19 +586,19 @@ const rt = pe("SunIcon", [
586
586
  }
587
587
  },
588
588
  setup(e, { expose: v }) {
589
- const l = e, t = g(l.initialSlide), s = g(null), a = g(null), r = g(0), p = g(!1), u = g(0), b = g(typeof window < "u" ? window.innerWidth : 0), I = g(!1), P = g(0), k = g(0), c = g(0), O = g(0), S = g(0), W = g(0), F = g(0), X = g(null), Z = g(null), le = g(0), f = Q(() => {
589
+ const l = e, t = g(l.initialSlide), s = g(null), a = g(null), r = g(0), p = g(!1), u = g(0), b = g(0), I = g(!1), P = g(0), k = g(0), c = g(0), O = g(0), S = g(0), W = g(0), F = g(0), X = g(null), Z = g(null), le = g(0), f = Q(() => {
590
590
  const $ = Object.keys(l.breakpoints).map(Number).sort((A, R) => A - R);
591
591
  let C = {};
592
592
  for (const A of $)
593
593
  b.value >= A && (C = { ...C, ...l.breakpoints[A] });
594
594
  return C;
595
- }), m = Q(() => f.value.slidesPerView ?? l.slidesPerView), x = Q(() => f.value.gap ?? l.gap), j = Q(() => {
595
+ }), m = Q(() => f.value.slidesPerView ?? l.slidesPerView), x = Q(() => f.value.gap ?? l.gap), L = Q(() => {
596
596
  const $ = l.sliderOrientation === "horizontal", A = `calc((100% - ${m.value > 1 ? (m.value - 1) * x.value : 0}px) / ${m.value})`;
597
597
  return $ ? {
598
598
  width: A
599
599
  } : { height: A };
600
600
  });
601
- qe(je, j);
601
+ qe(Le, L);
602
602
  const d = () => {
603
603
  a.value ? u.value = a.value.children.length : u.value = 0;
604
604
  }, V = () => {
@@ -622,12 +622,12 @@ const rt = pe("SunIcon", [
622
622
  return;
623
623
  }
624
624
  p.value = !0;
625
- const he = r.value, Le = Y - he, Ae = performance.now(), ze = (Pe) => {
625
+ const he = r.value, je = Y - he, Ae = performance.now(), Te = (Pe) => {
626
626
  if (!a.value) return;
627
- const Re = Pe - Ae, Te = Math.min(1, Re / l.slideDuration), Ne = 1 - Math.pow(1 - Te, 3), xe = he + Le * Ne;
628
- a.value.style.transform = l.sliderOrientation === "horizontal" ? `translate3d(${-xe}px, 0, 0)` : `translate3d(0, ${-xe}px, 0)`, r.value = xe, Te < 1 ? X.value = requestAnimationFrame(ze) : (a.value.style.transform = l.sliderOrientation === "horizontal" ? `translate3d(${-Y}px, 0, 0)` : `translate3d(0, ${-Y}px, 0)`, r.value = Y, t.value = N, p.value = !1, l.autoplay && G(), X.value = null);
627
+ const Re = Pe - Ae, Be = Math.min(1, Re / l.slideDuration), Ne = 1 - Math.pow(1 - Be, 3), xe = he + je * Ne;
628
+ a.value.style.transform = l.sliderOrientation === "horizontal" ? `translate3d(${-xe}px, 0, 0)` : `translate3d(0, ${-xe}px, 0)`, r.value = xe, Be < 1 ? X.value = requestAnimationFrame(Te) : (a.value.style.transform = l.sliderOrientation === "horizontal" ? `translate3d(${-Y}px, 0, 0)` : `translate3d(0, ${-Y}px, 0)`, r.value = Y, t.value = N, p.value = !1, l.autoplay && G(), X.value = null);
629
629
  };
630
- X.value = requestAnimationFrame(ze);
630
+ X.value = requestAnimationFrame(Te);
631
631
  }, ee = () => {
632
632
  l.infinite && t.value >= u.value - m.value ? z(0) : z(t.value + 1);
633
633
  }, ne = () => {
@@ -690,7 +690,7 @@ const rt = pe("SunIcon", [
690
690
  q(), setTimeout(() => {
691
691
  T();
692
692
  }, 500);
693
- }, oe = () => {
693
+ }, ae = () => {
694
694
  b.value = window.innerWidth;
695
695
  }, we = () => {
696
696
  if (!s.value || m.value <= 0 || (d(), u.value === 0)) return;
@@ -699,13 +699,15 @@ const rt = pe("SunIcon", [
699
699
  const C = Math.max(0, u.value - m.value), A = Math.min(Math.max(0, l.initialSlide), C), R = A * ($ + x.value), U = w.value, N = Math.max(0, Math.min(R, U));
700
700
  a.value && (a.value.style.transitionDuration = "0ms", a.value.style.transform = l.sliderOrientation === "horizontal" ? `translate3d(${-N}px, 0, 0)` : `translate3d(0, ${-N}px, 0)`), r.value = N, t.value = A;
701
701
  };
702
- return ve(() => {
702
+ return Me(() => {
703
+ window.removeEventListener("resize", ae);
704
+ }), ve(() => {
703
705
  var $, C, A, R, U, N, te, Y;
704
- requestAnimationFrame(() => {
706
+ b.value = window.innerWidth, requestAnimationFrame(() => {
705
707
  requestAnimationFrame(we);
706
- }), l.autoplay && T(), window.addEventListener("resize", oe), d(), ($ = s.value) == null || $.addEventListener("mousedown", h), (C = s.value) == null || C.addEventListener("touchstart", h, { passive: !0 }), l.showNavigationButtons && ((U = (R = (A = s.value) == null ? void 0 : A.parentElement) == null ? void 0 : R.querySelector(".absolute.flex.justify-between")) == null || U.addEventListener("click", G)), l.showIndicators && ((Y = (te = (N = s.value) == null ? void 0 : N.parentElement) == null ? void 0 : te.querySelector(".bottom-5.flex.justify-center")) == null || Y.addEventListener("click", G));
707
- }), Ve(() => {
708
- window.removeEventListener("resize", oe);
708
+ }), l.autoplay && T(), window.addEventListener("resize", ae), d(), ($ = s.value) == null || $.addEventListener("mousedown", h), (C = s.value) == null || C.addEventListener("touchstart", h, { passive: !0 }), l.showNavigationButtons && ((U = (R = (A = s.value) == null ? void 0 : A.parentElement) == null ? void 0 : R.querySelector(".absolute.flex.justify-between")) == null || U.addEventListener("click", G)), l.showIndicators && ((Y = (te = (N = s.value) == null ? void 0 : N.parentElement) == null ? void 0 : te.querySelector(".bottom-5.flex.justify-center")) == null || Y.addEventListener("click", G));
709
+ }), Me(() => {
710
+ window.removeEventListener("resize", ae);
709
711
  }), H(() => l.autoplay, ($) => {
710
712
  $ ? T() : q();
711
713
  }), H(() => l.autoplayInterval, G), H(() => l.initialSlide, ($) => {
@@ -738,7 +740,7 @@ const rt = pe("SunIcon", [
738
740
  key: 0,
739
741
  class: D([{ "top-1/2 right-5 left-5 z-10 absolute flex justify-between items-center -translate-y-1/2 transform": e.sliderOrientation === "horizontal" }, { "right-0 absolute flex justify-between items-center -translate-y-1/2 transform rotate-90 top-1/2 gap-3": e.sliderOrientation === "vertical" }])
740
742
  }, [
741
- ie(Be, { name: "fade" }, {
743
+ ie(De, { name: "fade" }, {
742
744
  default: be(() => [
743
745
  l.infinite || t.value > 0 ? (o(), i("div", St, [
744
746
  n("div", {
@@ -758,7 +760,7 @@ const rt = pe("SunIcon", [
758
760
  _: 3
759
761
  }),
760
762
  C[2] || (C[2] = n("div", { class: "flex-grow" }, null, -1)),
761
- ie(Be, { name: "fade" }, {
763
+ ie(De, { name: "fade" }, {
762
764
  default: be(() => [
763
765
  l.infinite || t.value < u.value - m.value ? (o(), i("div", It, [
764
766
  n("div", {
@@ -793,13 +795,13 @@ const rt = pe("SunIcon", [
793
795
  for (const [t, s] of v)
794
796
  l[t] = s;
795
797
  return l;
796
- }, xn = /* @__PURE__ */ fe(Tt, [["__scopeId", "data-v-9f058f5d"]]), Bt = /* @__PURE__ */ _({
798
+ }, xn = /* @__PURE__ */ fe(Tt, [["__scopeId", "data-v-f4fe3be2"]]), Bt = /* @__PURE__ */ _({
797
799
  __name: "carouselItem",
798
800
  setup(e) {
799
- const v = Ue(je, g({}));
801
+ const v = Ue(Le, g({}));
800
802
  return (l, t) => (o(), i("div", {
801
803
  class: "w-full h-full carousel-item",
802
- style: me(ae(v))
804
+ style: me(oe(v))
803
805
  }, [
804
806
  E(l.$slots, "default", {}, void 0, !0)
805
807
  ], 4));
@@ -810,7 +812,7 @@ const rt = pe("SunIcon", [
810
812
  }, Et = {
811
813
  key: 1,
812
814
  class: "flex flex-col"
813
- }, jt = { class: "text-sm" }, Lt = {
815
+ }, Lt = { class: "text-sm" }, jt = {
814
816
  key: 0,
815
817
  class: "opacity-75 overflow-hidden text-xs truncate ..."
816
818
  }, At = {
@@ -859,9 +861,9 @@ const rt = pe("SunIcon", [
859
861
  }
860
862
  else if (f.range && typeof f.value == "object" && f.value !== null && "start" in f.value && "end" in f.value)
861
863
  try {
862
- const x = new Date(f.value.start), j = new Date(f.value.end);
863
- if (!isNaN(x.getTime()) && !isNaN(j.getTime()))
864
- return `${x.toLocaleDateString()} - ${j.toLocaleDateString()}`;
864
+ const x = new Date(f.value.start), L = new Date(f.value.end);
865
+ if (!isNaN(x.getTime()) && !isNaN(L.getTime()))
866
+ return `${x.toLocaleDateString()} - ${L.toLocaleDateString()}`;
865
867
  } catch {
866
868
  }
867
869
  break;
@@ -877,7 +879,7 @@ const rt = pe("SunIcon", [
877
879
  case "custom-select":
878
880
  if ((m = f.props) != null && m.options && Array.isArray(f.props.options)) {
879
881
  const x = f.props.options.find(
880
- (j) => j.value === f.value
882
+ (L) => L.value === f.value
881
883
  );
882
884
  if (x)
883
885
  return x.text;
@@ -899,11 +901,11 @@ const rt = pe("SunIcon", [
899
901
  }
900
902
  const x = (V = l.searchOptions.find(
901
903
  (w) => (w == null ? void 0 : w.category) === l.currentCategory
902
- )) == null ? void 0 : V.tabs, j = x == null ? void 0 : x.find(
904
+ )) == null ? void 0 : V.tabs, L = x == null ? void 0 : x.find(
903
905
  (w) => w.name === m
904
906
  );
905
- j ? (j.value = f, t("update:search-data", {
906
- tab: j.name,
907
+ L ? (L.value = f, t("update:search-data", {
908
+ tab: L.name,
907
909
  data: f
908
910
  })) : console.error(
909
911
  `Tab with name "${m}" not found in current category.`
@@ -916,9 +918,9 @@ const rt = pe("SunIcon", [
916
918
  t("search");
917
919
  }
918
920
  async function S(f) {
919
- var j;
921
+ var L;
920
922
  const m = document.getElementById(`advancedSearchMobile-${s}`), x = m && m.contains(f.target);
921
- ((j = a.value) == null ? void 0 : j.displayMode) === "popup" && I.value && !I.value.contains(f.target) && !x && (await de(), a.value = null);
923
+ ((L = a.value) == null ? void 0 : L.displayMode) === "popup" && I.value && !I.value.contains(f.target) && !x && (await de(), a.value = null);
922
924
  }
923
925
  async function W() {
924
926
  if (typeof window < "u" && window.innerWidth <= 768) {
@@ -931,13 +933,13 @@ const rt = pe("SunIcon", [
931
933
  }
932
934
  }
933
935
  async function F(f) {
934
- var x, j, d;
936
+ var x, L, d;
935
937
  if (typeof window < "u" && window.innerWidth <= 768) {
936
938
  W();
937
939
  return;
938
940
  }
939
941
  const m = f.displayMode ?? "popup";
940
- if (((x = a.value) == null ? void 0 : x.name) === f.name && ((j = a.value) == null ? void 0 : j.displayMode) === m)
942
+ if (((x = a.value) == null ? void 0 : x.name) === f.name && ((L = a.value) == null ? void 0 : L.displayMode) === m)
941
943
  a.value = null;
942
944
  else if (a.value = { ...f, displayMode: m }, await de(), ((d = a.value) == null ? void 0 : d.displayMode) === "popup") {
943
945
  const V = u.value[f.name];
@@ -992,14 +994,14 @@ const rt = pe("SunIcon", [
992
994
  );
993
995
  }), ve(() => {
994
996
  document.addEventListener("click", S), window.addEventListener("resize", le);
995
- }), Me(() => {
997
+ }), ze(() => {
996
998
  document.removeEventListener("click", S), window.removeEventListener("resize", le);
997
999
  });
998
1000
  const le = () => {
999
1001
  var f, m;
1000
1002
  if (typeof window < "u") {
1001
- const x = window.innerWidth <= 768, j = a.value !== null && (a.value.displayMode === "popup" || a.value.displayMode === "inline") && window.innerWidth > 768;
1002
- !x && (((f = a.value) == null ? void 0 : f.displayMode) === "popup" || ((m = a.value) == null ? void 0 : m.displayMode) === "inline") && window.innerWidth <= 768 && (console.log("Resizing to mobile, closing active tab."), a.value = null), x && !j && a.value !== null && (console.log(
1003
+ const x = window.innerWidth <= 768, L = a.value !== null && (a.value.displayMode === "popup" || a.value.displayMode === "inline") && window.innerWidth > 768;
1004
+ !x && (((f = a.value) == null ? void 0 : f.displayMode) === "popup" || ((m = a.value) == null ? void 0 : m.displayMode) === "inline") && window.innerWidth <= 768 && (console.log("Resizing to mobile, closing active tab."), a.value = null), x && !L && a.value !== null && (console.log(
1003
1005
  "Resizing to desktop from potential mobile active state, closing active tab."
1004
1006
  ), a.value = null);
1005
1007
  const d = document.getElementById(
@@ -1009,7 +1011,7 @@ const rt = pe("SunIcon", [
1009
1011
  }
1010
1012
  };
1011
1013
  return (f, m) => {
1012
- var x, j;
1014
+ var x, L;
1013
1015
  return o(), i(K, null, [
1014
1016
  n("div", {
1015
1017
  ref_key: "searchContainer",
@@ -1048,8 +1050,8 @@ const rt = pe("SunIcon", [
1048
1050
  ref: r
1049
1051
  }), null, 16, ["modelValue", "onKeydown"]))
1050
1052
  ])) : (o(), i("div", Et, [
1051
- n("p", jt, L(d.name), 1),
1052
- d.value !== void 0 && d.value !== null && d.value !== "" ? (o(), i("p", Lt, L(P(d)), 1)) : (o(), i("p", At, L(d.description), 1))
1053
+ n("p", Lt, j(d.name), 1),
1054
+ d.value !== void 0 && d.value !== null && d.value !== "" ? (o(), i("p", jt, j(P(d)), 1)) : (o(), i("p", At, j(d.description), 1))
1053
1055
  ]))
1054
1056
  ], 10, Ot);
1055
1057
  }), 128))
@@ -1071,7 +1073,7 @@ const rt = pe("SunIcon", [
1071
1073
  class: "ml-1 btn btn-primary btn-square",
1072
1074
  onClick: se(O, ["stop"])
1073
1075
  }, [
1074
- ie(ae(De), {
1076
+ ie(oe(Oe), {
1075
1077
  size: 24,
1076
1078
  color: "white"
1077
1079
  })
@@ -1083,7 +1085,7 @@ const rt = pe("SunIcon", [
1083
1085
  onClick: m[4] || (m[4] = () => {
1084
1086
  })
1085
1087
  }, [
1086
- ie(ae(De), {
1088
+ ie(oe(Oe), {
1087
1089
  size: 24,
1088
1090
  color: "white"
1089
1091
  })
@@ -1091,27 +1093,27 @@ const rt = pe("SunIcon", [
1091
1093
  ])
1092
1094
  ], 512),
1093
1095
  n("dialog", {
1094
- id: `advancedSearchMobile-${ae(s)}`,
1096
+ id: `advancedSearchMobile-${oe(s)}`,
1095
1097
  class: "modal"
1096
1098
  }, [
1097
1099
  n("div", Nt, [
1098
1100
  E(f.$slots, "additionalForMobile", {}, () => [
1099
- n("h3", _t, L(e.currentCategory), 1)
1101
+ n("h3", _t, j(e.currentCategory), 1)
1100
1102
  ], !0),
1101
- (o(!0), i(K, null, J(((j = l.searchOptions.find(
1103
+ (o(!0), i(K, null, J(((L = l.searchOptions.find(
1102
1104
  (d) => d.category === l.currentCategory
1103
- )) == null ? void 0 : j.tabs) || [], (d, V) => (o(), i("div", {
1105
+ )) == null ? void 0 : L.tabs) || [], (d, V) => (o(), i("div", {
1104
1106
  class: "collapse bg-base-200 my-4",
1105
1107
  key: d.name
1106
1108
  }, [
1107
1109
  n("input", {
1108
1110
  type: "radio",
1109
- name: `accordion-${ae(s)}`,
1111
+ name: `accordion-${oe(s)}`,
1110
1112
  checked: V === 0
1111
1113
  }, null, 8, Ft),
1112
1114
  n("div", qt, [
1113
- n("div", null, L(d.name), 1),
1114
- d.value !== void 0 && d.value !== null && d.value !== "" ? (o(), i("div", Ut, L(P(d)), 1)) : (o(), i("div", Ht, L(d.description), 1))
1115
+ n("div", null, j(d.name), 1),
1116
+ d.value !== void 0 && d.value !== null && d.value !== "" ? (o(), i("div", Ut, j(P(d)), 1)) : (o(), i("div", Ht, j(d.description), 1))
1115
1117
  ]),
1116
1118
  n("div", Wt, [
1117
1119
  m[7] || (m[7] = n("br", null, null, -1)),
@@ -1203,8 +1205,8 @@ const rt = pe("SunIcon", [
1203
1205
  day: "numeric"
1204
1206
  });
1205
1207
  } catch {
1206
- const [q, G, oe] = T.split("-");
1207
- return `${oe}/${G}/${q}`;
1208
+ const [q, G, ae] = T.split("-");
1209
+ return `${ae}/${G}/${q}`;
1208
1210
  }
1209
1211
  };
1210
1212
  let y = "", M = "";
@@ -1214,9 +1216,9 @@ const rt = pe("SunIcon", [
1214
1216
  return M;
1215
1217
  if (t.mode === "datetime")
1216
1218
  if (t.range) {
1217
- const T = c.value.start, q = c.value.end, G = k.value.from, oe = k.value.to;
1218
- if (T && q && G && oe)
1219
- return `${h(T)} ${G} - ${h(q)} ${oe}`;
1219
+ const T = c.value.start, q = c.value.end, G = k.value.from, ae = k.value.to;
1220
+ if (T && q && G && ae)
1221
+ return `${h(T)} ${G} - ${h(q)} ${ae}`;
1220
1222
  if (T)
1221
1223
  return `${h(T)} ${G || ""}`.trim();
1222
1224
  } else {
@@ -1244,7 +1246,7 @@ const rt = pe("SunIcon", [
1244
1246
  return M && T ? { start: M, end: T } : null;
1245
1247
  if (t.mode === "datetime") {
1246
1248
  if (!M || !T) return null;
1247
- const oe = q ? `${q}:00` : "00:00:00", we = G ? `${G}:00` : "23:59:59", $ = `${M}T${oe}`, C = `${T}T${we}`;
1249
+ const ae = q ? `${q}:00` : "00:00:00", we = G ? `${G}:00` : "23:59:59", $ = `${M}T${ae}`, C = `${T}T${we}`;
1248
1250
  return { start: $, end: C };
1249
1251
  }
1250
1252
  return null;
@@ -1268,7 +1270,7 @@ const rt = pe("SunIcon", [
1268
1270
  de(() => {
1269
1271
  m();
1270
1272
  });
1271
- }, j = (h) => {
1273
+ }, L = (h) => {
1272
1274
  const y = h.target;
1273
1275
  t.range ? y === I.value ? k.value.from = y.value : y === P.value && (k.value.to = y.value) : k.value.single = y.value, m();
1274
1276
  }, d = () => {
@@ -1325,7 +1327,7 @@ const rt = pe("SunIcon", [
1325
1327
  onClick: y[0] || (y[0] = (G) => t.disabled ? null : d())
1326
1328
  }, [
1327
1329
  n("div", Xt, [
1328
- X.value ? (o(), i("span", Gt, L(X.value), 1)) : (o(), i("span", Yt, L(t.placeholder), 1))
1330
+ X.value ? (o(), i("span", Gt, j(X.value), 1)) : (o(), i("span", Yt, j(t.placeholder), 1))
1329
1331
  ])
1330
1332
  ])) : B("", !0),
1331
1333
  r.value || !t.popup ? (o(), i("div", {
@@ -1467,7 +1469,7 @@ const rt = pe("SunIcon", [
1467
1469
  ref: I,
1468
1470
  id: `${t.id}-time-from`,
1469
1471
  placeholder: "from",
1470
- onChange: j,
1472
+ onChange: L,
1471
1473
  disabled: t.disabled,
1472
1474
  value: k.value.from || ""
1473
1475
  }, null, 40, tl)
@@ -1491,7 +1493,7 @@ const rt = pe("SunIcon", [
1491
1493
  ref_key: "timeToInput",
1492
1494
  ref: P,
1493
1495
  id: `${t.id}-time-to`,
1494
- onChange: j,
1496
+ onChange: L,
1495
1497
  disabled: t.disabled,
1496
1498
  value: k.value.to || ""
1497
1499
  }, null, 40, nl)
@@ -1505,7 +1507,7 @@ const rt = pe("SunIcon", [
1505
1507
  ref_key: "timeInput",
1506
1508
  ref: b,
1507
1509
  id: `${t.id}-time`,
1508
- onChange: j,
1510
+ onChange: L,
1509
1511
  disabled: t.disabled,
1510
1512
  value: k.value.single || ""
1511
1513
  }, null, 40, ol)
@@ -1514,7 +1516,7 @@ const rt = pe("SunIcon", [
1514
1516
  n("button", {
1515
1517
  class: "btn btn-primary max-lg:w-full",
1516
1518
  onClick: V
1517
- }, L(t.closeText), 1)
1519
+ }, j(t.closeText), 1)
1518
1520
  ])) : B("", !0)
1519
1521
  ], 42, Jt)) : B("", !0)
1520
1522
  ], 544);
@@ -1624,7 +1626,7 @@ const rt = pe("SunIcon", [
1624
1626
  onClick: (W) => I(S),
1625
1627
  "aria-label": "Remove tag"
1626
1628
  }, "X", 8, vl),
1627
- n("span", fl, L(S), 1)
1629
+ n("span", fl, j(S), 1)
1628
1630
  ])
1629
1631
  ])), 128)),
1630
1632
  E(c.$slots, "input", { showInput: u.value }, () => [
@@ -1676,7 +1678,7 @@ const rt = pe("SunIcon", [
1676
1678
  // e.g., the current value: modelValue
1677
1679
  }), (u, b) => (o(), i("div", pl, [
1678
1680
  e.label ? (o(), i("label", hl, [
1679
- n("span", gl, L(e.label), 1)
1681
+ n("span", gl, j(e.label), 1)
1680
1682
  ])) : B("", !0),
1681
1683
  n("select", {
1682
1684
  ref_key: "selectElement",
@@ -1685,11 +1687,11 @@ const rt = pe("SunIcon", [
1685
1687
  value: e.modelValue,
1686
1688
  onChange: r
1687
1689
  }, [
1688
- e.placeholder ? (o(), i("option", bl, L(e.placeholder), 1)) : B("", !0),
1690
+ e.placeholder ? (o(), i("option", bl, j(e.placeholder), 1)) : B("", !0),
1689
1691
  (o(!0), i(K, null, J(e.options, (I) => (o(), i("option", {
1690
1692
  key: I.value,
1691
1693
  value: I.value
1692
- }, L(I.text), 9, wl))), 128))
1694
+ }, j(I.text), 9, wl))), 128))
1693
1695
  ], 40, yl)
1694
1696
  ]));
1695
1697
  }
@@ -1769,8 +1771,8 @@ const rt = pe("SunIcon", [
1769
1771
  d ? setTimeout(() => {
1770
1772
  document.addEventListener("click", X);
1771
1773
  }, 0) : document.removeEventListener("click", X);
1772
- }), Me(() => {
1773
- document.removeEventListener("click", X), window.removeEventListener("keydown", j);
1774
+ }), ze(() => {
1775
+ document.removeEventListener("click", X), window.removeEventListener("keydown", L);
1774
1776
  });
1775
1777
  const le = () => {
1776
1778
  if (t.disabled) return;
@@ -1782,7 +1784,7 @@ const rt = pe("SunIcon", [
1782
1784
  F.value.length > 0 && f(F.value[0]);
1783
1785
  }, x = () => {
1784
1786
  b.value || O();
1785
- }, j = (d) => {
1787
+ }, L = (d) => {
1786
1788
  if (!b.value || F.value.length === 0) return;
1787
1789
  const V = F.value.findIndex(
1788
1790
  (z, ee) => "option-" + ee === c.value
@@ -1813,9 +1815,9 @@ const rt = pe("SunIcon", [
1813
1815
  }
1814
1816
  };
1815
1817
  return H(b, (d) => {
1816
- d ? (window.addEventListener("keydown", j), !r.value && !p.value && u.value && (p.value = u.value.text)) : window.removeEventListener("keydown", j);
1817
- }), Me(() => {
1818
- document.removeEventListener("click", X), window.removeEventListener("keydown", j);
1818
+ d ? (window.addEventListener("keydown", L), !r.value && !p.value && u.value && (p.value = u.value.text)) : window.removeEventListener("keydown", L);
1819
+ }), ze(() => {
1820
+ document.removeEventListener("click", X), window.removeEventListener("keydown", L);
1819
1821
  }), v({
1820
1822
  isDropdownOpen: b,
1821
1823
  // Expose state
@@ -1839,7 +1841,7 @@ const rt = pe("SunIcon", [
1839
1841
  ref: P
1840
1842
  }, [
1841
1843
  e.label ? (o(), i("label", xl, [
1842
- n("span", kl, L(e.label), 1)
1844
+ n("span", kl, j(e.label), 1)
1843
1845
  ])) : B("", !0),
1844
1846
  n("div", {
1845
1847
  class: D(["flex items-center input-bordered rounded-md w-fit cursor-pointer", { input: !r.value, select: !r.value }]),
@@ -1878,13 +1880,13 @@ const rt = pe("SunIcon", [
1878
1880
  [Ee, p.value]
1879
1881
  ])
1880
1882
  ]),
1881
- u.value && !e.disabled ? (o(), ue(ae(st), {
1883
+ u.value && !e.disabled ? (o(), ue(oe(st), {
1882
1884
  key: 0,
1883
1885
  size: 20,
1884
1886
  class: "mx-2 text-base-content/50 hover:text-base-content/80 cursor-pointer",
1885
1887
  onClick: se(le, ["stop"])
1886
1888
  })) : B("", !0),
1887
- r.value && !u.value ? (o(), ue(ae(ot), {
1889
+ r.value && !u.value ? (o(), ue(oe(ot), {
1888
1890
  key: 1,
1889
1891
  class: D([{ "rotate-180": b.value }, "mx-2"]),
1890
1892
  size: 20
@@ -1900,7 +1902,7 @@ const rt = pe("SunIcon", [
1900
1902
  role: "option",
1901
1903
  "aria-selected": u.value && u.value.value === w.value
1902
1904
  }, [
1903
- n("a", null, L(w.text), 1)
1905
+ n("a", null, j(w.text), 1)
1904
1906
  ], 40, Ml))), 128))
1905
1907
  ])
1906
1908
  ], 512), [
@@ -1917,7 +1919,7 @@ const rt = pe("SunIcon", [
1917
1919
  }, Vl = { class: "label-text-alt text-error validator-hint" }, El = {
1918
1920
  key: 2,
1919
1921
  class: "label"
1920
- }, jl = { class: "label-text-alt text-success validator-hint" }, zn = /* @__PURE__ */ _({
1922
+ }, Ll = { class: "label-text-alt text-success validator-hint" }, zn = /* @__PURE__ */ _({
1921
1923
  __name: "inputField",
1922
1924
  props: {
1923
1925
  modelValue: { default: "" },
@@ -1960,7 +1962,7 @@ const rt = pe("SunIcon", [
1960
1962
  errorMessage: p
1961
1963
  }), (c, O) => (o(), i("div", zl, [
1962
1964
  e.label ? (o(), i("label", Tl, [
1963
- n("span", Bl, L(e.label), 1)
1965
+ n("span", Bl, j(e.label), 1)
1964
1966
  ])) : B("", !0),
1965
1967
  E(c.$slots, "default"),
1966
1968
  n("input", {
@@ -2001,9 +2003,9 @@ const rt = pe("SunIcon", [
2001
2003
  onBlur: P
2002
2004
  }, null, 42, Dl),
2003
2005
  b.value ? (o(), i("div", Ol, [
2004
- n("span", Vl, L(p.value), 1)
2006
+ n("span", Vl, j(p.value), 1)
2005
2007
  ])) : u.value && r.value && e.successMessage ? (o(), i("div", El, [
2006
- n("span", jl, L(e.successMessage), 1)
2008
+ n("span", Ll, j(e.successMessage), 1)
2007
2009
  ])) : B("", !0)
2008
2010
  ]));
2009
2011
  }
@@ -2049,7 +2051,7 @@ const rt = pe("SunIcon", [
2049
2051
  ]])
2050
2052
  }, null, 2)) : B("", !0);
2051
2053
  }
2052
- }), Ll = { class: "footer sm:footer-horizontal container" }, Al = { class: "footer-title" }, Pl = ["href"], Rl = {
2054
+ }), jl = { class: "footer sm:footer-horizontal container" }, Al = { class: "footer-title" }, Pl = ["href"], Rl = {
2053
2055
  key: 0,
2054
2056
  class: "sm:hidden w-full"
2055
2057
  }, Nl = { class: "border-b-2 border-base-100 last:border-b-0 w-full" }, _l = {
@@ -2068,27 +2070,27 @@ const rt = pe("SunIcon", [
2068
2070
  return (l, t) => (o(), i("div", {
2069
2071
  class: D(["mx-auto md:px-10 py-10 text-base-content", [e.background ?? "bg-base-200", e.color ?? "text-base-content"]])
2070
2072
  }, [
2071
- n("footer", Ll, [
2073
+ n("footer", jl, [
2072
2074
  (o(!0), i(K, null, J(v.items, (s) => (o(), i("nav", {
2073
2075
  class: D([{ "hidden sm:grid": e.collapseOnMobile }])
2074
2076
  }, [
2075
- n("h6", Al, L(s.title), 1),
2077
+ n("h6", Al, j(s.title), 1),
2076
2078
  (o(!0), i(K, null, J(s.items, (a) => (o(), i("a", {
2077
2079
  class: "link link-hover",
2078
2080
  href: a.link
2079
- }, L(a.text), 9, Pl))), 256))
2081
+ }, j(a.text), 9, Pl))), 256))
2080
2082
  ], 2))), 256)),
2081
2083
  e.collapseOnMobile ? (o(), i("nav", Rl, [
2082
2084
  (o(!0), i(K, null, J(v.items, (s) => (o(), i("ul", Nl, [
2083
2085
  n("div", _l, [
2084
- n("div", Fl, L(s.title), 1),
2086
+ n("div", Fl, j(s.title), 1),
2085
2087
  n("div", ql, [
2086
2088
  n("ul", Ul, [
2087
2089
  (o(!0), i(K, null, J(s.items, (a) => (o(), i("li", Hl, [
2088
2090
  n("a", {
2089
2091
  class: "w-full font-medium link link-hover",
2090
2092
  href: a.link
2091
- }, L(a.text), 9, Wl)
2093
+ }, j(a.text), 9, Wl)
2092
2094
  ]))), 256))
2093
2095
  ])
2094
2096
  ])
@@ -2108,7 +2110,7 @@ function Zl(e, v) {
2108
2110
  n("div", null, [
2109
2111
  n("h1", Jl, [
2110
2112
  E(e.$slots, "title", {}, () => [
2111
- v[0] || (v[0] = Oe("hero title", -1))
2113
+ v[0] || (v[0] = Ve("hero title", -1))
2112
2114
  ])
2113
2115
  ]),
2114
2116
  n("p", null, [
@@ -2140,7 +2142,7 @@ const Dn = /* @__PURE__ */ fe(Xl, [["render", Zl]]), Ql = { class: "flex flex-ro
2140
2142
  n("button", {
2141
2143
  onClick: (u) => s(p.category),
2142
2144
  class: D(["truncate btn btn-ghost", { "font-semibold": l.currentCategory === p.category }])
2143
- }, L(p.category), 11, en)
2145
+ }, j(p.category), 11, en)
2144
2146
  ]))), 128))
2145
2147
  ]));
2146
2148
  }
@@ -2199,7 +2201,7 @@ const Dn = /* @__PURE__ */ fe(Xl, [["render", Zl]]), Ql = { class: "flex flex-ro
2199
2201
  }
2200
2202
  return ve(() => {
2201
2203
  l.items && a(l.items[0]);
2202
- }), Ve(() => {
2204
+ }), Me(() => {
2203
2205
  l.rotateTabsAfter && l.rotateTabsAfter > 0 && setInterval(() => {
2204
2206
  r();
2205
2207
  }, l.rotateTabsAfter * 1e3);
@@ -2225,7 +2227,7 @@ const Dn = /* @__PURE__ */ fe(Xl, [["render", Zl]]), Ql = { class: "flex flex-ro
2225
2227
  class: D(["min-w-max tab", I === t.value ? "bg-primary text-base-100" : ""]),
2226
2228
  onClick: (P) => a(I),
2227
2229
  "aria-selected": t.value == I
2228
- }, L(I), 11, rn),
2230
+ }, j(I), 11, rn),
2229
2231
  e.buttonOnlyMode ? B("", !0) : (o(), i("div", un, [
2230
2232
  E(u.$slots, `${I}-tab`)
2231
2233
  ]))
@@ -1,4 +1,4 @@
1
- (function(S,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(S=typeof globalThis<"u"?globalThis:S||self,e(S.ManolisUi={},S.Vue))})(this,(function(S,e){"use strict";var Lt=S=>{throw TypeError(S)};var jt=(S,e,X)=>e.has(S)||Lt("Cannot "+X);var de=(S,e,X)=>(jt(S,e,"read from private field"),X?X.call(S):e.get(S)),Xe=(S,e,X)=>e.has(S)?Lt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(S):e.set(S,X),Je=(S,e,X,ke)=>(jt(S,e,"write to private field"),ke?ke.call(S,X):e.set(S,X),X);var oe,ie;const X=["disabled"],ke={key:0,class:"loading loading-spinner"},At=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",ke)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"default",{},()=>[s[0]||(s[0]=e.createTextVNode("Submit",-1))])],10,X))}}),Ft={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"},_t=["href"],Ut=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",Ft,[(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,_t)]))),256)),e.renderSlot(r.$slots,"additional")])],2))}}),Rt={class:"modal-box"},qt={class:"modal-action"},Ht=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",Rt,[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))}}),Wt={class:"flex justify-center items-center swap-on"},Kt={class:"flex justify-center items-center swap-off"},Yt=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",Wt,[e.renderSlot(l.$slots,"on")]),e.createElementVNode("div",Kt,[e.renderSlot(l.$slots,"off")])],2))}});/**
1
+ (function(S,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(S=typeof globalThis<"u"?globalThis:S||self,e(S.ManolisUi={},S.Vue))})(this,(function(S,e){"use strict";var Pt=S=>{throw TypeError(S)};var jt=(S,e,X)=>e.has(S)||Pt("Cannot "+X);var de=(S,e,X)=>(jt(S,e,"read from private field"),X?X.call(S):e.get(S)),Xe=(S,e,X)=>e.has(S)?Pt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(S):e.set(S,X),Je=(S,e,X,ke)=>(jt(S,e,"write to private field"),ke?ke.call(S,X):e.set(S,X),X);var oe,ie;const X=["disabled"],ke={key:0,class:"loading loading-spinner"},At=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",ke)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"default",{},()=>[s[0]||(s[0]=e.createTextVNode("Submit",-1))])],10,X))}}),Ft={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"},_t=["href"],Ut=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",Ft,[(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,_t)]))),256)),e.renderSlot(r.$slots,"additional")])],2))}}),Rt={class:"modal-box"},qt={class:"modal-action"},Ht=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",Rt,[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))}}),Wt={class:"flex justify-center items-center swap-on"},Kt={class:"flex justify-center items-center swap-off"},Yt=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",Wt,[e.renderSlot(l.$slots,"on")]),e.createElementVNode("div",Kt,[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.
@@ -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 en=ue("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"}]]),tn=(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},nn={class:"swap-rotate swap"},on=["true-value","false-value"],ln=e.defineComponent({__name:"theme-controller",props:{lightTheme:{default:"light"},darkTheme:{default:"dark"}},setup(t){const n=t,l=tn("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",nn,[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,on),[[e.vModelCheckbox,e.unref(l)]]),e.createVNode(e.unref(en),{class:"swap-off fill-current"}),e.createVNode(e.unref(Qt),{class:"swap-on fill-current"})]))}}),an=["name"],rn={class:"collapse-title font-bold text-2xl lg:text-4xl"},sn={class:"collapse-content"},cn=["innerHTML"],dn=e.defineComponent({__name:"accordion",props:{name:{},items:{},joinItems:{type:Boolean,default:!1},icon:{}},setup(t){const n=t;return(l,o)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,(r,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["collapse border border-base-300",[t.icon?`collapse-${t.icon}`:"",{"join-item":t.joinItems}]]),key:a},[e.createElementVNode("input",{type:"radio",name:t.name,value:"true"},null,8,an),e.createElementVNode("div",rn,e.toDisplayString(r.title),1),e.createElementVNode("div",sn,[e.createElementVNode("span",{innerHTML:r.content},null,8,cn)])],2))),128))}}),un=["src"],mn={class:"text-xl"},fn=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,un)],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",mn,e.toDisplayString(t.initials),1)],2))],2))}}),pn=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))}}),hn=["src","alt"],yn={key:0,class:"card-body"},gn={key:0,class:"group-hover:text-primary text-lg text-left cursor-pointer card-title"},bn={key:1,class:"text-left"},kn={class:"flex-col flex-nowrap mt-auto card-actions"},wn={key:1,class:"card-body"},vn=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,hn)):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",yn,[t.title?(e.openBlock(),e.createElementBlock("h2",gn,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"details"),t.description?(e.openBlock(),e.createElementBlock("p",bn,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0),e.createElementVNode("div",kn,[e.renderSlot(o.$slots,"actions")])])),t.loading?(e.openBlock(),e.createElementBlock("div",wn,[...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))}}),Ze=Symbol("CarouselItemStyle"),xn={class:"relative h-full"},En={key:0,class:"flex-shrink-0"},Bn={key:0,class:"flex-shrink-0"},$n={key:1,class:"bottom-5 z-10 absolute flex justify-center gap-2 py-2 w-full"},Cn=["onClick","aria-label"],Sn=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(typeof window<"u"?window.innerWidth:0),m=e.ref(!1),k=e.ref(0),f=e.ref(0),d=e.ref(0),B=e.ref(0),x=e.ref(0),$=e.ref(0),w=e.ref(0),I=e.ref(null),R=e.ref(null),Y=e.ref(0),h=e.computed(()=>{const V=Object.keys(l.breakpoints).map(Number).sort((O,A)=>O-A);let D={};for(const O of V)u.value>=O&&(D={...D,...l.breakpoints[O]});return D}),y=e.computed(()=>h.value.slidesPerView??l.slidesPerView),C=e.computed(()=>h.value.gap??l.gap),M=e.computed(()=>{const V=l.sliderOrientation==="horizontal",O=`calc((100% - ${y.value>1?(y.value-1)*C.value:0}px) / ${y.value})`;return V?{width:O}:{height:O}});e.provide(Ze,M);const p=()=>{a.value?i.value=a.value.children.length:i.value=0},E=()=>{if(!r.value||y.value<=0)return 0;const D=l.sliderOrientation==="horizontal"?r.value.offsetWidth:r.value.offsetHeight,O=(y.value-1)*C.value;return D<=0?0:(D-O)/y.value},b=e.computed(()=>{if(!r.value||i.value===0||y.value===0)return 0;const D=l.sliderOrientation==="horizontal"?r.value.offsetWidth:r.value.offsetHeight,O=E(),A=i.value*(O+C.value)-C.value;return Math.max(0,A-D)}),z=async(V,D=!1)=>{if(!r.value||y.value<=0||c.value||(p(),i.value===0))return;const O=E();if(O<=0)return;const A=O+C.value,_=b.value;let F=V;l.infinite?F=(V%i.value+i.value)%i.value:F=Math.max(0,Math.min(V,i.value-y.value));const G=F*A,q=l.infinite?G:Math.max(0,Math.min(G,_));if(D||l.slideDuration===0){a.value&&(a.value.style.transitionDuration="0ms",a.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-q}px, 0, 0)`:`translate3d(0, ${-q}px, 0)`),s.value=q,o.value=F,c.value=!1,l.autoplay&&L();return}c.value=!0;const Se=s.value,fa=q-Se,pa=performance.now(),Ot=ha=>{if(!a.value)return;const ya=ha-pa,Pt=Math.min(1,ya/l.slideDuration),ga=1-Math.pow(1-Pt,3),Ye=Se+fa*ga;a.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-Ye}px, 0, 0)`:`translate3d(0, ${-Ye}px, 0)`,s.value=Ye,Pt<1?I.value=requestAnimationFrame(Ot):(a.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-q}px, 0, 0)`:`translate3d(0, ${-q}px, 0)`,s.value=q,o.value=F,c.value=!1,l.autoplay&&L(),I.value=null)};I.value=requestAnimationFrame(Ot)},H=()=>{l.infinite&&o.value>=i.value-y.value?z(0):z(o.value+1)},W=()=>{l.infinite&&o.value<=0?z(i.value-y.value):z(o.value-1)},J=V=>{z(V)},g=V=>{c.value&&I.value&&(l.autoplay&&j(),cancelAnimationFrame(I.value),c.value=!1),m.value=!0;const D="touches"in V?V.touches[0]:V;k.value=D.clientX,f.value=D.clientY,d.value=s.value,B.value=0,x.value=0,$.value=0,w.value=performance.now(),r.value&&(r.value.style.scrollSnapType="none"),document.addEventListener("mousemove",v),document.addEventListener("mouseup",N),document.addEventListener("touchmove",v,{passive:!1}),document.addEventListener("touchend",N)},v=V=>{if(!m.value||!a.value||!r.value)return;V.cancelable&&V.preventDefault();const D="touches"in V?V.touches[0]:V,O=performance.now(),A=O-w.value;let _;if(l.sliderOrientation==="horizontal"){const F=D.clientX,G=F-(x.value||k.value);A>0&&(B.value=G/A*1e3);const q=F-k.value;_=d.value-q,x.value=F}else{const F=D.clientY,G=F-($.value||f.value);A>0&&(B.value=G/A*1e3);const q=F-f.value;_=d.value-q,$.value=F}_<0?_=_*.3:_>b.value&&(_=b.value+(_-b.value)*.3),Y.value=_,a.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-Y.value}px, 0, 0)`:`translate3d(0, ${-Y.value}px, 0)`,w.value=O},N=()=>{if(!m.value||!r.value||!a.value)return;const D=l.sliderOrientation==="horizontal"?d.value-(x.value-k.value):d.value-($.value-f.value),O=Math.max(0,Math.min(D,b.value)),A=E()+C.value;if(m.value=!1,document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",N),document.removeEventListener("touchend",N),s.value=O,l.infinite){if(D<0){z(i.value-1);return}else if(D>b.value){z(0);return}}else if(D<0){z(0);return}else if(D>b.value){const q=Math.max(0,i.value-Math.floor(y.value));z(q);return}const _=Math.max(0,i.value-Math.floor(y.value)),F=100,G=Math.round(O/A);if(Math.abs(B.value)>F){const q=-Math.sign(B.value),Se=G+q;z(Math.max(0,Math.min(_,Se)))}else z(Math.max(0,Math.min(_,G)))},T=()=>{!l.autoplay||R.value!==null||(R.value=setInterval(()=>{H()},l.autoplayInterval))},j=()=>{R.value!==null&&(clearInterval(R.value),R.value=null)},L=()=>{j(),setTimeout(()=>{T()},500)},K=()=>{u.value=window.innerWidth},ce=()=>{if(!r.value||y.value<=0||(p(),i.value===0))return;const V=E();if(V<=0)return;const D=Math.max(0,i.value-y.value),O=Math.min(Math.max(0,l.initialSlide),D),A=O*(V+C.value),_=b.value,F=Math.max(0,Math.min(A,_));a.value&&(a.value.style.transitionDuration="0ms",a.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-F}px, 0, 0)`:`translate3d(0, ${-F}px, 0)`),s.value=F,o.value=O};return e.onMounted(()=>{var V,D,O,A,_,F,G,q;requestAnimationFrame(()=>{requestAnimationFrame(ce)}),l.autoplay&&T(),window.addEventListener("resize",K),p(),(V=r.value)==null||V.addEventListener("mousedown",g),(D=r.value)==null||D.addEventListener("touchstart",g,{passive:!0}),l.showNavigationButtons&&((_=(A=(O=r.value)==null?void 0:O.parentElement)==null?void 0:A.querySelector(".absolute.flex.justify-between"))==null||_.addEventListener("click",L)),l.showIndicators&&((q=(G=(F=r.value)==null?void 0:F.parentElement)==null?void 0:G.querySelector(".bottom-5.flex.justify-center"))==null||q.addEventListener("click",L))}),e.onUnmounted(()=>{window.removeEventListener("resize",K)}),e.watch(()=>l.autoplay,V=>{V?T():j()}),e.watch(()=>l.autoplayInterval,L),e.watch(()=>l.initialSlide,V=>{requestAnimationFrame(()=>z(V,!0))}),e.watch([y,C],()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{if(p(),i.value===0)return;const V=Math.max(0,i.value-y.value),D=Math.min(o.value,V);z(D,!0)})})}),n({scrollToSlide:z}),(V,D)=>(e.openBlock(),e.createElementBlock("div",xn,[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:`${C.value}px`})},[e.renderSlot(V.$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",En,[e.createElementVNode("div",{onClick:W,role:"button","aria-label":"Previous Slide"},[e.renderSlot(V.$slots,"prevButton",{},()=>[D[0]||(D[0]=e.createElementVNode("button",{class:"btn btn-circle text-xs",tabindex:"-1"},"❮",-1))],!0)])])):e.createCommentVNode("",!0)]),_:3}),D[2]||(D[2]=e.createElementVNode("div",{class:"flex-grow"},null,-1)),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[l.infinite||o.value<i.value-y.value?(e.openBlock(),e.createElementBlock("div",Bn,[e.createElementVNode("div",{onClick:H,role:"button","aria-label":"Next Slide"},[e.renderSlot(V.$slots,"nextButton",{},()=>[D[1]||(D[1]=e.createElementVNode("button",{class:"btn btn-circle text-xs",tabindex:"-1"},"❯",-1))],!0)])])):e.createCommentVNode("",!0)]),_:3})],2)):e.createCommentVNode("",!0),t.showIndicators?(e.openBlock(),e.createElementBlock("div",$n,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(O,A)=>(e.openBlock(),e.createElementBlock("button",{key:`dot-${A}`,onClick:_=>J(A),class:e.normalizeClass(["btn btn-circle btn-xs",{"btn-active":A===o.value}]),"aria-label":`Go to slide ${A+1}`},null,10,Cn))),128))])):e.createCommentVNode("",!0)]))}}),le=(t,n)=>{const l=t.__vccOpts||t;for(const[o,r]of n)l[o]=r;return l},Vn=le(Sn,[["__scopeId","data-v-9f058f5d"]]),Nn=le(e.defineComponent({__name:"carouselItem",setup(t){const n=e.inject(Ze,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"]]),Dn={class:"flex gap-4 bg-base-100 w-full tabs tabs-boxed"},Tn=["onClick"],zn={key:0,class:"inline-component-wrapper flex grow justify-center items-center w-full h-full"},Mn={key:1,class:"flex flex-col"},In={class:"text-sm"},On={key:0,class:"opacity-75 overflow-hidden text-xs truncate ..."},Pn={key:1,class:"hidden md:block opacity-35 overflow-hidden text-xs truncate ..."},Ln={class:"hidden"},jn=["id"],An={class:"modal-box"},Fn={class:"font-bold text-lg"},_n=["name","checked"],Un={class:"collapse-title flex justify-between items-center pr-4 w-full font-medium text-xl"},Rn={key:0,class:"opacity-75 overflow-hidden text-sm truncate ..."},qn={key:1,class:"opacity-35 text-sm"},Hn={class:"collapse-content flex place-content-center p-0"},Wn=le(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(()=>ro)),"standard-select":e.defineAsyncComponent(()=>Promise.resolve().then(()=>vo)),"custom-text":e.defineAsyncComponent(()=>Promise.resolve().then(()=>jo))},i=e.ref({}),u=e.ref({left:"0px",top:"0px",transform:"translateX(0%)"}),m=e.ref(null),k=h=>{var y;if(h.value===void 0||h.value===null||h.value==="")return"";switch(h.type){case"datetime":if(typeof h.value=="string")try{const C=new Date(h.value);if(!isNaN(C.getTime()))return C.toLocaleString()}catch{}else if(h.range&&typeof h.value=="object"&&h.value!==null&&"start"in h.value&&"end"in h.value)try{const C=new Date(h.value.start),M=new Date(h.value.end);if(!isNaN(C.getTime())&&!isNaN(M.getTime()))return`${C.toLocaleDateString()} - ${M.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((y=h.props)!=null&&y.options&&Array.isArray(h.props.options)){const C=h.props.options.find(M=>M.value===h.value);if(C)return C.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,E;const y=(p=a.value)==null?void 0:p.name;if(!y){console.warn("componentValueUpdated called but no active tab.");return}const C=(E=l.searchOptions.find(b=>(b==null?void 0:b.category)===l.currentCategory))==null?void 0:E.tabs,M=C==null?void 0:C.find(b=>b.name===y);M?(M.value=h,o("update:search-data",{tab:M.name,data:h})):console.error(`Tab with name "${y}" not found in current category.`)}function d(h){f(h)}function B(){o("search")}async function x(h){var M;const y=document.getElementById(`advancedSearchMobile-${r}`),C=y&&y.contains(h.target);((M=a.value)==null?void 0:M.displayMode)==="popup"&&m.value&&!m.value.contains(h.target)&&!C&&(await e.nextTick(),a.value=null)}async function $(){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 w(h){var C,M,p;if(typeof window<"u"&&window.innerWidth<=768){$();return}const y=h.displayMode??"popup";if(((C=a.value)==null?void 0:C.name)===h.name&&((M=a.value)==null?void 0:M.displayMode)===y)a.value=null;else if(a.value={...h,displayMode:y},await e.nextTick(),((p=a.value)==null?void 0:p.displayMode)==="popup"){const E=i.value[h.name];if(E&&m.value){const b=E.getBoundingClientRect(),z=m.value.getBoundingClientRect(),H=b.bottom-z.top,W=b.left+b.width/2-z.left;u.value={left:`${W}px`,top:`${H+8}px`,transform:"translateX(-50%)"}}else console.error("Tab element or search container not found for positioning:",h.name)}}const I=h=>{const y=h.relatedTarget;setTimeout(()=>{var C;((C=a.value)==null?void 0:C.displayMode)==="inline"&&m.value&&(!y||!m.value.contains(y))?(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)},R=()=>{console.log("Enter key pressed on inline component, closing inline view."),a.value=null};e.watch(s,h=>{var y;console.log("advanced-search: inlineComponentRef changed. New Value:",h),console.log("advanced-search: activeTab.value:",a.value),h&&((y=a.value)==null?void 0:y.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,y;if(typeof window<"u"){const C=window.innerWidth<=768,M=a.value!==null&&(a.value.displayMode==="popup"||a.value.displayMode==="inline")&&window.innerWidth>768;!C&&(((h=a.value)==null?void 0:h.displayMode)==="popup"||((y=a.value)==null?void 0:y.displayMode)==="inline")&&window.innerWidth<=768&&(console.log("Resizing to mobile, closing active tab."),a.value=null),C&&!M&&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&&!C&&(console.log("Modal is open on desktop, closing modal and active tab."),p.close(),a.value=null)}};return(h,y)=>{var C,M;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:$},[e.createElementVNode("div",Dn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((C=l.searchOptions.find(p=>p.category===l.currentCategory))==null?void 0:C.tabs)||[],(p,E)=>{var b,z,H,W,J;return e.openBlock(),e.createElementBlock("button",{key:`${p.name}-${E}`,onClick:e.withModifiers(g=>w(p),["stop"]),class:e.normalizeClass([{"tab-active":((b=a.value)==null?void 0:b.name)===p.name,"tab-active-inline":((z=a.value)==null?void 0:z.name)===p.name&&((H=a.value)==null?void 0:H.displayMode)==="inline"},"group/searchitem after:top-0 after:-right-2 after:absolute relative first-of-type:flex-auto last-of-type:flex-auto after:bg-base-200 hover:bg-base-200 p-1 rounded-sm w-auto after:w-px after:h-10 overflow-x-hidden text-start md:after:content-[''] after:content-none last-of-type:after:content-none"]),ref_for:!0,ref:g=>i.value[p.name]=g},[((W=a.value)==null?void 0:W.name)===p.name&&((J=a.value)==null?void 0:J.displayMode)==="inline"?(e.openBlock(),e.createElementBlock("div",zn,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c[a.value.type]),e.mergeProps({ref_for:!0},a.value.props||{},{modelValue:a.value.value,onUpdated:y[0]||(y[0]=g=>d(g)),"onUpdate:modelValue":y[1]||(y[1]=g=>d(g)),onBlur:I,onKeydown:e.withKeys(e.withModifiers(R,["stop","prevent"]),["enter"]),ref_for:!0,ref_key:"inlineComponentRef",ref:s}),null,16,["modelValue","onKeydown"]))])):(e.openBlock(),e.createElementBlock("div",Mn,[e.createElementVNode("p",In,e.toDisplayString(p.name),1),p.value!==void 0&&p.value!==null&&p.value!==""?(e.openBlock(),e.createElementBlock("p",On,e.toDisplayString(k(p)),1)):(e.openBlock(),e.createElementBlock("p",Pn,e.toDisplayString(p.description),1))]))],10,Tn)}),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:y[2]||(y[2]=p=>f(p)),"onUpdate:modelValue":y[3]||(y[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(B,["stop"])},[e.createVNode(e.unref(Ge),{size:24,color:"white"})])]),e.createElementVNode("div",Ln,[e.createElementVNode("button",{title:"search",onClick:y[4]||(y[4]=()=>{})},[e.createVNode(e.unref(Ge),{size:24,color:"white"})])])],512),e.createElementVNode("dialog",{id:`advancedSearchMobile-${e.unref(r)}`,class:"modal"},[e.createElementVNode("div",An,[e.renderSlot(h.$slots,"additionalForMobile",{},()=>[e.createElementVNode("h3",Fn,e.toDisplayString(t.currentCategory),1)],!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((M=l.searchOptions.find(p=>p.category===l.currentCategory))==null?void 0:M.tabs)||[],(p,E)=>(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:E===0},null,8,_n),e.createElementVNode("div",Un,[e.createElementVNode("div",null,e.toDisplayString(p.name),1),p.value!==void 0&&p.value!==null&&p.value!==""?(e.openBlock(),e.createElementBlock("div",Rn,e.toDisplayString(k(p)),1)):(e.openBlock(),e.createElementBlock("div",qn,e.toDisplayString(p.description),1))]),e.createElementVNode("div",Hn,[y[7]||(y[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:y[5]||(y[5]=b=>f(b)),"onUpdate:modelValue":y[6]||(y[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:B}," Close and Search ")])])])],8,jn)],64)}}}),[["__scopeId","data-v-577c3624"]]),Kn={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"},Yn={key:0},Xn={key:1},Jn=["id","onKeydown"],Gn={key:2,class:"flex justify-center p-4"},Zn={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"},Qn={class:"join-item"},eo=["id","disabled","value"],to={class:"join-item"},no=["id","disabled","value"],oo={key:3,class:"p-4 min-w-2xs"},lo=["id","disabled","value"],ao={key:4,class:"flex px-4 my-4 w-full justify-end"},Qe=le(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),k=e.ref(null),f=e.ref({from:"",to:"",single:""}),d=e.ref({single:null,start:null,end:null}),B=g=>g instanceof Date?g.toISOString():g,x=g=>g.split("T")[0]||"",$=g=>{const v=g instanceof Date?g:new Date(g);if(isNaN(v.getTime()))return"";const N=String(v.getHours()).padStart(2,"0"),T=String(v.getMinutes()).padStart(2,"0");return`${N}:${T}`},w=()=>{const g=new Date,v=$(g);let N=o.initialDate;if(!N&&o.mode!=="time"&&(N=o.range?{start:g,end:g}:g),!!N){if(!N){o.mode==="time"&&(o.range?(f.value.from=v,f.value.to=v):f.value.single=v);return}if(o.range&&typeof N=="object"&&"start"in N){const T=B(N.start),j=B(N.end);d.value.start=x(T),d.value.end=x(j),o.mode!=="date"&&(f.value.from=$(T),f.value.to=$(j))}else{const T=B(N);d.value.single=x(T),o.mode!=="date"&&(f.value.single=$(T))}}},I=e.computed(()=>{const g=T=>{if(!T)return"";if(T.includes(":"))return T;try{return new Date(T+"T00:00:00").toLocaleDateString(o.locale,{year:"numeric",month:"numeric",day:"numeric"})}catch{const[j,L,K]=T.split("-");return`${K}/${L}/${j}`}};let v="",N="";if((o.mode==="date"||o.mode==="datetime")&&(o.range?d.value.start&&d.value.end&&(v=`${d.value.start} - ${d.value.end}`):d.value.single&&(v=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?v.split(" - ").map(g).join(" - "):g(v);if(o.mode==="time")return N;if(o.mode==="datetime")if(o.range){const T=d.value.start,j=d.value.end,L=f.value.from,K=f.value.to;if(T&&j&&L&&K)return`${g(T)} ${L} - ${g(j)} ${K}`;if(T)return`${g(T)} ${L||""}`.trim()}else{const T=d.value.single,j=f.value.single;return`${g(T)} ${j||""}`.trim()}return""}),R=()=>{if(c.value)d.value.single=c.value.value||null;else if(i.value){const g=i.value.value;if(typeof g=="string"&&g.includes("/")){const[v,N]=g.split("/");d.value.start=v||null,d.value.end=N||null}else d.value.start=g||null,d.value.end=g||null}},Y=()=>d.value.start&&d.value.end?`${d.value.start}/${d.value.end}`:null,h=()=>{if(o.range){const N=d.value.start,T=d.value.end||d.value.start,j=f.value.from,L=f.value.to;if(o.mode==="time")return j&&L?{start:j,end:L}:null;if(o.mode==="date")return N&&T?{start:N,end:T}:null;if(o.mode==="datetime"){if(!N||!T)return null;const K=j?`${j}:00`:"00:00:00",ce=L?`${L}:00`:"23:59:59",V=`${N}T${K}`,D=`${T}T${ce}`;return{start:V,end:D}}return null}const g=d.value.single,v=f.value.single;if(o.mode==="time")return v||null;if(o.mode==="date")return g||null;if(o.mode==="datetime"){if(!g)return null;const N=v?`${v}:00`:"00:00:00";return`${g}T${N}`}return null},y=async()=>{R();const g=h();r("update:modelValue",g),r("change",g)},C=()=>{e.nextTick(()=>{y()})},M=g=>{const v=g.target;o.range?v===m.value?f.value.from=v.value:v===k.value&&(f.value.to=v.value):f.value.single=v.value,y()},p=()=>{s.value=!s.value},E=()=>{y(),s.value=!1},b=g=>{!o.popup||!s.value||setTimeout(()=>{const v=a.value,N=g.target,T=`date-picker-${o.id}-popup`;v&&!v.contains(N)&&!g.target.closest(`#${T}`)&&E()},0)},z=()=>{E()},H=()=>{y(),o.popup&&(s.value=!1)},W=()=>{if(!l)return;const g=o.range?i.value:c.value;g&&typeof g.navigate=="function"&&g.navigate(-1)},J=()=>{if(!l)return;const g=o.range?i.value:c.value;g&&typeof g.navigate=="function"&&g.navigate(1)};return e.onMounted(()=>{l&&Promise.resolve().then(()=>ma).catch(g=>{console.warn("Failed to load cally:",g)}),w()}),e.watch(d,async g=>{if(await e.nextTick(),c.value&&g.single){const v=g.single;c.value.value!==v&&(c.value.value=v)}if(i.value){const v=Y();v&&i.value.value!==v&&(i.value.value=v)}y()},{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}`),y()},{immediate:!0}),e.watch([u,m,k],()=>{y()},{immediate:!0}),(g,v)=>{const N=e.resolveComponent("calendar-month"),T=e.resolveComponent("calendar-date"),j=e.resolveComponent("calendar-range");return e.openBlock(),e.createElementBlock("div",{class:"inline-block relative w-fit lg:w-full",ref_key:"pickerContainer",ref:a,onMousedownCapture:b},[o.popup?(e.openBlock(),e.createElementBlock("div",{key:0,class:"flex items-center gap-2 cursor-pointer w-full",onClick:v[0]||(v[0]=L=>o.disabled?null:p())},[e.createElementVNode("div",Kn,[I.value?(e.openBlock(),e.createElementBlock("span",Xn,e.toDisplayString(I.value),1)):(e.openBlock(),e.createElementBlock("span",Yn,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:[v[1]||(v[1]=e.withKeys(e.withModifiers(()=>{},["prevent","stop"]),["tab"])),e.withKeys(z,["esc"]),e.withKeys(e.withModifiers(H,["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:C},{default:e.withCtx(()=>[e.createElementVNode("button",{slot:"previous",class:"btn-outline btn btn-primary md:btn-sm",onClick:W},[...v[2]||(v[2]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1)])]),e.createElementVNode("button",{slot:"next",class:"btn-outline btn btn-primary md:btn-sm",onClick:J},[...v[3]||(v[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(j,{key:1,class:"cally w-full",ref_key:"rangeDatePicker",ref:i,id:`${o.id}-date-range`,min:o.min,max:o.max,disabled:o.disabled,"first-day-of-week":o.firstDayOfWeek,onChange:C},{default:e.withCtx(()=>[e.createElementVNode("button",{slot:"previous",class:"btn-outline btn btn-primary md:btn-sm",onClick:W},[...v[4]||(v[4]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1)])]),e.createElementVNode("button",{slot:"next",class:"btn-outline btn btn-primary md:btn-sm",onClick:J},[...v[5]||(v[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",Gn,[e.createElementVNode("div",Zn,[e.createElementVNode("div",Qn,[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:M,disabled:o.disabled,value:f.value.from||""},null,40,eo)]),v[6]||(v[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",to,[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:k,id:`${o.id}-time-to`,onChange:M,disabled:o.disabled,value:f.value.to||""},null,40,no)])])])):e.createCommentVNode("",!0),!o.range&&o.mode!=="date"?(e.openBlock(),e.createElementBlock("div",oo,[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:M,disabled:o.disabled,value:f.value.single||""},null,40,lo)])):e.createCommentVNode("",!0),o.popup&&o.closeText?(e.openBlock(),e.createElementBlock("div",ao,[e.createElementVNode("button",{class:"btn btn-primary max-lg:w-full",onClick:E},e.toDisplayString(o.closeText),1)])):e.createCommentVNode("",!0)],42,Jn)):e.createCommentVNode("",!0)],544)}}}),[["__scopeId","data-v-e0b34494"]]),ro=Object.freeze(Object.defineProperty({__proto__:null,default:Qe},Symbol.toStringTag,{value:"Module"})),so=["value","checked","onChange","disabled"],io=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,so))),128))],2))}}),co={class:"badge"},uo=["onClick"],mo={class:"opacity-75"},fo=["placeholder"],po=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(B=>B!==d),o("update:modelValue",r.value)},k=()=>{c.value===""&&(r.value.pop(),o("update:modelValue",r.value))},f=d=>{d.key==="Enter"?u():d.key==="Backspace"&&c.value===""&&k()};return e.watch(()=>l.modelValue,d=>{r.value=[...d]}),(d,B)=>(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:$=>m(x),"aria-label":"Remove tag"},"X",8,uo),e.createElementVNode("span",mo,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":B[0]||(B[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,fo)),[[e.vModelText,c.value]]):e.createCommentVNode("",!0)])],2))}}),ho={class:"w-full max-w-xs form-control"},yo={key:0,class:"label"},go={class:"label-text"},bo=["value"],ko={key:0,value:"",disabled:"",selected:""},wo=["value"],et=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",ho,[t.label?(e.openBlock(),e.createElementBlock("label",yo,[e.createElementVNode("span",go,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",ko,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,wo))),128))],40,bo)]))}}),vo=Object.freeze(Object.defineProperty({__proto__:null,default:et},Symbol.toStringTag,{value:"Module"})),xo={key:0,class:"label"},Eo={class:"label-text"},Bo=["onKeydown","aria-expanded","aria-activedescendant"],$o=["placeholder","disabled"],Co={class:"top-full z-10 absolute bg-base-100 shadow-lg mt-1 rounded-md w-full dropdown-content",role:"listbox"},So={class:"flex-nowrap p-0 w-[inherit] max-h-60 overflow-y-auto menu"},Vo=["onMousedown","id","aria-selected"],No={__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 E=(a.default?a.default():[]).filter(b=>b.type!==e.Comment);return console.log("hasDefaultSlotContent computed:",E.length>0),E.length>0}),c=e.ref(""),i=e.ref(null),u=e.ref(!1),m=e.ref(null),k=e.ref(null),f=e.ref(null),d=e.ref(null),B=()=>{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=""))},$=()=>{u.value?x():B()},w=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,E)=>{if(p!==E&&x(),p==null)i.value=null,!u.value&&!s.value&&(c.value="");else{const b=o.options.find(z=>z.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 I=p=>{k.value&&!k.value.contains(p.target)&&x()},R=()=>{setTimeout(()=>{k.value&&!k.value.contains(document.activeElement)&&x()},100)};e.watch(u,p=>{p?setTimeout(()=>{document.addEventListener("click",I)},0):document.removeEventListener("click",I)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",I),window.removeEventListener("keydown",M)});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()},y=()=>{w.value.length>0&&h(w.value[0])},C=()=>{u.value||B()},M=p=>{if(!u.value||w.value.length===0)return;const E=w.value.findIndex((z,H)=>"option-"+H===d.value);let b=-1;if(p.key==="ArrowDown")p.preventDefault(),b=(E+1)%w.value.length;else if(p.key==="ArrowUp")p.preventDefault(),b=(E-1+w.value.length)%w.value.length;else if(p.key==="Enter"&&d.value){p.preventDefault();const z=w.value.find((H,W)=>"option-"+W===d.value);z&&h(z);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 z=document.getElementById(d.value);z&&requestAnimationFrame(()=>{z.scrollIntoView({block:"nearest",behavior:"smooth"})})}};return e.watch(u,p=>{p?(window.addEventListener("keydown",M),!s.value&&!c.value&&i.value&&(c.value=i.value.text)):window.removeEventListener("keydown",M)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",I),window.removeEventListener("keydown",M)}),n({isDropdownOpen:u,selectedItem:i,openDropdown:B,closeDropdown:x,toggleDropdown:$,selectItem:h,filterText:c,hasDefaultSlotContent:s}),(p,E)=>(e.openBlock(),e.createElementBlock("div",{class:"relative w-full max-w-xs form-control",ref_key:"componentRoot",ref:k},[t.label?(e.openBlock(),e.createElementBlock("label",xo,[e.createElementVNode("span",Eo,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:E[1]||(E[1]=b=>s.value?$():B()),onKeydown:[e.withKeys(e.withModifiers(y,["prevent"]),["enter"]),e.withKeys(e.withModifiers(y,["prevent"]),["space"])],onBlur:R,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":E[0]||(E[0]=b=>c.value=b),ref_key:"filterInput",ref:m,onFocus:B,onInput:C,tabindex:"-1",disabled:o.disabled},null,40,$o)),[[e.vModelText,c.value]])]),i.value&&!t.disabled?(e.openBlock(),e.createBlock(e.unref(Zt),{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(Gt),{key:1,class:e.normalizeClass([{"rotate-180":u.value},"mx-2"]),size:20},null,8,["class"])):e.createCommentVNode("",!0)],46,Bo),e.withDirectives(e.createElementVNode("div",Co,[e.createElementVNode("ul",So,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,(b,z)=>(e.openBlock(),e.createElementBlock("li",{key:b.value,onMousedown:e.withModifiers(H=>h(b),["prevent"]),class:"hover:bg-base-200 rounded-md w-full cursor-pointer",id:"option-"+z,role:"option","aria-selected":i.value&&i.value.value===b.value},[e.createElementVNode("a",null,e.toDisplayString(b.text),1)],40,Vo))),128))])],512),[[e.vShow,u.value&&w.value.length>0]])],512))}},Do={class:"w-full max-w-xs form-control"},To={key:0,class:"label"},zo={class:"label-text"},Mo=["type","placeholder","disabled","value"],Io={key:1,class:"label"},Oo={class:"label-text-alt text-error validator-hint"},Po={key:2,class:"label"},Lo={class:"label-text-alt text-success validator-hint"},tt=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 $,w,I,R;let d=!0,B="";const x=o.modelValue;return($=o.rules)!=null&&$.required&&(x==null||x==="")&&(d=!1,B="This field is required."),d&&((w=o.rules)==null?void 0:w.minLength)!==void 0&&typeof x=="string"&&x.length<o.rules.minLength&&(d=!1,B=`Must be at least ${o.rules.minLength} characters.`),d&&((I=o.rules)==null?void 0:I.maxLength)!==void 0&&typeof x=="string"&&x.length>o.rules.maxLength&&(d=!1,B=`Cannot exceed ${o.rules.maxLength} characters.`),d&&((R=o.rules)!=null&&R.email)&&typeof x=="string"&&x&&(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(x)||(d=!1,B="Please enter a valid email address.")),c.value=B,r("validate",d),d}),u=e.computed(()=>s.value&&!i.value),m=d=>{const B=d.target;r("update:modelValue",B.value),s.value&&i.value},k=()=>{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,B)=>(e.openBlock(),e.createElementBlock("div",Do,[t.label?(e.openBlock(),e.createElementBlock("label",To,[e.createElementVNode("span",zo,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:k},null,42,Mo),u.value?(e.openBlock(),e.createElementBlock("div",Io,[e.createElementVNode("span",Oo,e.toDisplayString(c.value),1)])):i.value&&s.value&&t.successMessage?(e.openBlock(),e.createElementBlock("div",Po,[e.createElementVNode("span",Lo,e.toDisplayString(t.successMessage),1)])):e.createCommentVNode("",!0)]))}}),jo=Object.freeze(Object.defineProperty({__proto__:null,default:tt},Symbol.toStringTag,{value:"Module"})),Ao=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)}}),Fo={class:"footer sm:footer-horizontal container"},_o={class:"footer-title"},Uo=["href"],Ro={key:0,class:"sm:hidden w-full"},qo={class:"border-b-2 border-base-100 last:border-b-0 w-full"},Ho={tabindex:"0",class:"collapse collapse-plus w-full"},Wo={class:"collapse-title font-bold text-lg collapsible-footer-title"},Ko={class:"collapse-content flex w-full text-sm"},Yo={class:"flex flex-col gap-2.5"},Xo={class:"w-full"},Jo=["href"],Go={class:"w-full"},Zo=e.defineComponent({__name:"footer",props:{items:{},background:{},color:{},collapseOnMobile:{type:Boolean,default:!1}},setup(t){const n=t;return(l,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["mx-auto md:px-10 py-10 text-base-content",[t.background??"bg-base-200",t.color??"text-base-content"]])},[e.createElementVNode("footer",Fo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,r=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass([{"hidden sm:grid":t.collapseOnMobile}])},[e.createElementVNode("h6",_o,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,Uo))),256))],2))),256)),t.collapseOnMobile?(e.openBlock(),e.createElementBlock("nav",Ro,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,r=>(e.openBlock(),e.createElementBlock("ul",qo,[e.createElementVNode("div",Ho,[e.createElementVNode("div",Wo,e.toDisplayString(r.title),1),e.createElementVNode("div",Ko,[e.createElementVNode("ul",Yo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.items,a=>(e.openBlock(),e.createElementBlock("li",Xo,[e.createElementVNode("a",{class:"w-full font-medium link link-hover",href:a.link},e.toDisplayString(a.text),9,Jo)]))),256))])])])]))),256))])):e.createCommentVNode("",!0),e.createElementVNode("aside",Go,[e.renderSlot(l.$slots,"default")])])],2))}}),Qo={},el={class:"min-h-40 container hero"},tl={class:"px-0! text-center hero-content"},nl={class:"mt-9 text-4xl"};function ol(t,n){return e.openBlock(),e.createElementBlock("div",el,[e.createElementVNode("div",tl,[e.createElementVNode("div",null,[e.createElementVNode("h1",nl,[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 ll=le(Qo,[["render",ol]]),al={class:"flex flex-row place-content-center gap-4 categories"},rl=["onClick"],sl=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",al,[(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,rl)]))),128))]))}}),il={class:"md:flex hidden navbar-start"},cl={class:"md:flex justify-center items-center hidden navbar-center"},dl={class:"md:flex hidden navbar-end"},ul={class:"navbar-bottom md:flex hidden"},ml=le(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",il,[e.renderSlot(l.$slots,"start",{},void 0,!0)]),e.createElementVNode("div",cl,[e.renderSlot(l.$slots,"center",{},void 0,!0)]),e.createElementVNode("div",dl,[e.renderSlot(l.$slots,"end",{},void 0,!0)]),e.createElementVNode("div",ul,[e.renderSlot(l.$slots,"bottom",{},void 0,!0)])],2))}}),[["__scopeId","data-v-8ddb2b45"]]),fl={key:0,class:"hidden top-4 right-0 absolute md:flex gap-4"},pl=["onClick","aria-selected"],hl={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"},yl={class:"p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full"},gl=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",fl,[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:k=>a(m),"aria-selected":o.value==m},e.toDisplayString(m),11,pl),t.buttonOnlyMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",hl,[e.renderSlot(i.$slots,`${m}-tab`)]))],64))),256))],2),e.createElementVNode("div",yl,[e.renderSlot(i.$slots,"default")])],64))}});typeof document>"u"&&(globalThis.document={}),typeof window>"u"&&(globalThis.window=globalThis);class bl{constructor(n){Xe(this,oe);Xe(this,ie,new Set);Je(this,oe,n)}get current(){return de(this,oe)}set current(n){de(this,oe)!=n&&(Je(this,oe,n),de(this,ie).forEach(l=>l(n)))}on(n){return de(this,ie).add(n),()=>de(this,ie).delete(n)}}oe=new WeakMap,ie=new WeakMap;const nt=t=>new bl(t),Ve=Symbol.for("atomico.hooks");globalThis[Ve]=globalThis[Ve]||{};let ae=globalThis[Ve];const kl=Symbol.for("Atomico.suspense"),ot=Symbol.for("Atomico.effect"),wl=Symbol.for("Atomico.layoutEffect"),lt=Symbol.for("Atomico.insertionEffect"),re=(t,n,l)=>{const{i:o,hooks:r}=ae.c,a=r[o]=r[o]||{};return a.value=t(a.value),a.effect=n,a.tag=l,ae.c.i++,r[o].value},vl=t=>re((n=nt(t))=>n),me=()=>re((t=nt(ae.c.host))=>t),at=()=>ae.c.update,xl=(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=>{ae.c={host:n,hooks:o,update:t,i:0,id:l};let i;try{r=!1,i=c()}catch(u){if(u!==kl)throw u;r=!0}finally{ae.c=null}return i},cleanEffects:c=>(s(lt,c),()=>(s(wl,c),()=>{s(ot,c)})),isSuspense:a}},se=Symbol.for;function rt(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",fe=t=>typeof t=="object",{isArray:El}=Array,Ne=(t,n)=>(n?t instanceof HTMLStyleElement:!0)&&"hydrate"in((t==null?void 0:t.dataset)||{});function st(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 it=(t,n,l)=>(t.addEventListener(n,l),()=>t.removeEventListener(n,l));class ct{constructor(n,l,o){this.message=l,this.target=n,this.value=o}}class dt extends ct{}class Bl extends ct{}const ve="Custom",$l=null,Cl={true:1,"":1,1:1};function Sl(t,n,l,o,r){const{type:a,reflect:s,event:c,value:i,attr:u=Vl(n)}=(l==null?void 0:l.name)!=ve&&fe(l)&&l!=$l?l:{type:l},m=(a==null?void 0:a.name)===ve&&a.map,k=i!=null?a==Function||!Q(i)?()=>i:i:null;Object.defineProperty(t,n,{configurable:!0,set(f){const d=this[n];k&&a!=Boolean&&f==null&&(f=k());const{error:B,value:x}=(m?Tl:zl)(a,f);if(B&&x!=null)throw new dt(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&&ut(this,c),this.updated.then(()=>{s&&(this._ignoreAttr=u,Nl(this,a,u,this[n]),this._ignoreAttr=null)}))},get(){return this._props[n]}}),k&&(r[n]=k()),o[u]={prop:n,type:a}}const ut=(t,{type:n,base:l=CustomEvent,...o})=>t.dispatchEvent(new l(n,o)),Vl=t=>t.replace(/([A-Z])/g,"-$1").toLowerCase(),Nl=(t,n,l,o)=>o==null||n==Boolean&&!o?t.removeAttribute(l):t.setAttribute(l,(n==null?void 0:n.name)===ve&&(n!=null&&n.serialize)?n==null?void 0:n.serialize(o):fe(o)?JSON.stringify(o):n==Boolean?"":o),Dl=(t,n)=>t==Boolean?!!Cl[n]:t==Number?Number(n):t==String?n:t==Array||t==Object?JSON.parse(n):t.name==ve?n:new t(n),Tl=({map:t},n)=>{try{return{value:t(n),error:!1}}catch{return{value:n,error:!0}}},zl=(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 Ml=0;const Il=t=>{var l;return((l=(t==null?void 0:t.dataset)||{})==null?void 0:l.hydrate)||""||"c"+Ml++},pe=(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,k;this.mounted=new Promise($=>this.mount=()=>{$(),m!=this.parentNode&&(k!=m?this.unmounted.then(this.update):this.update()),m=this.parentNode}),this.unmounted=new Promise($=>this.unmount=()=>{$(),(m!=this.parentNode||!this.isConnected)&&(f.cleanEffects(!0)()(),k=this.parentNode,m=null)}),this.symbolId=this.symbolId||Symbol(),this.symbolIdParent=Symbol();const f=xl(()=>this.update(),this,Il(this));let d,B=!0;const x=Ne(this);this.update=()=>(d||(d=!0,this.updated=(this.updated||this.mounted).then(()=>{try{const $=f.load(this._render),w=f.cleanEffects();return $&&$.render(this,this.symbolId,x),d=!1,B&&!f.isSuspense()&&(B=!1,!x&&Ol(this)),w()}finally{d=!1}}).then($=>{$&&$()})),this.updated),this.update()}connectedCallback(){this.mount(),super.connectedCallback&&super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback(),this.unmount()}attributeChangedCallback(m,k,f){if(l[m]){if(m===this._ignoreAttr||k===f)return;const{prop:d,type:B}=l[m];try{this[d]=Dl(B,f)}catch{throw new Bl(this,`The value defined as attr '${m}' cannot be parsed by type '${B.name}'`,f)}}else super.attributeChangedCallback(m,k,f)}static get props(){return{...super.props,...s}}static get observedAttributes(){const m=super.observedAttributes||[];for(const k in s)Sl(this.prototype,k,s[k],l,o);return Object.keys(l).concat(m)}}return i};function Ol(t){const{styles:n}=t.constructor,{shadowRoot:l}=t;if(l&&n.length){const o=[];st(n,r=>{r&&(r instanceof Element?l.appendChild(r.cloneNode(!0)):o.push(r))}),o.length&&(l.adoptedStyleSheets=o)}}const mt=t=>(n,l)=>{re(([o,r]=[])=>((r||!r)&&(r&&rt(r,l)?o=o||!0:(Q(o)&&o(),o=null)),[o,l]),([o,r],a)=>a?(Q(o)&&o(),[]):[o||n(),r],t)},he=mt(ot),Pl=mt(lt);class ft 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 De=t=>{const n=at();return re((l=new ft(t,(o,r,a)=>{o=Q(o)?o(r[0]):o,o!==r[0]&&(r[0]=o,a||n())}))=>l)},ee=(t,n)=>{const[l]=re(([o,r,a=0]=[])=>((!r||r&&!rt(r,n))&&(o=t()),[o,n,a]));return l},Te=t=>{const{current:n}=me();if(!(t in n))throw new dt(n,`For useProp("${t}"), the prop does not exist on the host.`,t);return re((l=new ft(n[t],(o,r)=>{o=Q(o)?o(n[t]):o,n[t]=o}))=>(l[0]=n[t],l))},te=(t,n={})=>{const l=me();return l[t]||(l[t]=(o=n.detail)=>ut(l.current,{type:t,...n,detail:o})),l[t]},ze=se("atomico/options");globalThis[ze]=globalThis[ze]||{sheet:!!document.adoptedStyleSheets};const pt=globalThis[ze],Ll={checked:1,value:1,selected:1},jl={list:1,type:1,size:1,form:1,width:1,height:1,src:1,href:1,slot:1},Al={shadowDom:1,staticNode:1,cloneNode:1,children:1,key:1},xe={},Me=[];class Ie extends Text{}const Fl=se("atomico/id"),ye=se("atomico/type"),Oe=se("atomico/ref"),ht=se("atomico/vnode"),_l=()=>{};function Ul(t,n,l){return gt(this,t,n,l)}const yt=(t,n,...l)=>{const o=n||xe;let{children:r}=o;if(r=r??(l.length?l:Me),t===_l)return r;const a=t?t instanceof Node?1:t.prototype instanceof HTMLElement&&2:0;if(a===!1&&t instanceof Function)return t(r!=Me?{children:r,...o}:o);const s=pt.render||Ul;return{[ye]:ht,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 gt(t,n,l=Fl,o,r){let a;if(n&&n[l]&&n[l].vnode==t||t[ye]!=ht)return n;(t||!n)&&(r=r||t.type=="svg",a=t.type!="host"&&(t.raw==1?(n&&t.clone?n[Oe]:n)!=t.type:t.raw==2?!(n instanceof t.type):n?n[Oe]||n.localName!=t.type:!n),a&&t.type!=null&&(t.raw==1&&t.clone?(o=!0,n=t.type.cloneNode(!0),n[Oe]=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]:xe,{vnode:c=xe,cycle:i=0}=s;let{fragment:u,handlers:m}=s;const{children:k=Me,props:f=xe}=c;if(m=a?{}:m||{},t.static&&!a)return n;if(t.shadow&&!n.shadowRoot&&n.attachShadow({mode:"open",...t.shadow}),t.props!=f&&Hl(n,f,t.props,m,r),t.children!==k){const d=t.shadow?n.shadowRoot:n;u=ql(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 Rl(t,n){const l=new Ie(""),o=new Ie("");let r;if(t[n?"prepend":"append"](l),n){let{lastElementChild:a}=t;for(;a;){const{previousElementSibling:s}=a;if(Ne(a,!0)&&!Ne(s,!0)){r=a;break}a=s}}return r?r.before(o):t.append(o),{markStart:l,markEnd:o}}function ql(t,n,l,o,r,a){t=t==null?null:El(t)?t:[t];const s=n||Rl(l,r),{markStart:c,markEnd:i,keyes:u}=s;let m;const k=u&&new Set;let f=c;if(t&&st(t,d=>{if(typeof d=="object"&&!d[ye])return;const B=d[ye]&&d.key,x=u&&B!=null&&u.get(B);f!=i&&f===x?k.delete(f):f=f==i?i:f.nextSibling;const $=u?x:f;let w=$;if(d[ye])w=gt(d,$,o,r,a);else{const I=d+"";!(w instanceof Text)||w instanceof Ie?w=new Text(I):w.data!=I&&(w.data=I)}w!=f&&(u&&k.delete(w),!$||u?(l.insertBefore(w,f),u&&f!=i&&k.add(f)):$==i?l.insertBefore(w,i):(l.replaceChild(w,$),f=w)),B!=null&&(m=m||new Map,m.set(B,w))}),f=f==i?i:f.nextSibling,n&&f!=i)for(;f!=i;){const d=f;f=f.nextSibling,d.remove()}return k&&k.forEach(d=>d.remove()),s.keyes=m,s}function Hl(t,n,l,o,r){for(const a in n)!(a in l)&&bt(t,a,n[a],null,r,o);for(const a in l)bt(t,a,n[a],l[a],r,o)}function bt(t,n,l,o,r,a){if(n=n=="class"&&!r?"className":n,l=l??null,o=o??null,n in t&&Ll[n]&&(l=t[n]),!(o===l||Al[n]||n[0]=="_"))if(n[0]=="o"&&n[1]=="n"&&(Q(o)||Q(l)))Wl(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=fe(l),i=fe(o);if(c)for(const u in l)if(i)!(u in o)&&kt(s,u,null);else break;if(i)for(const u in o){const m=o[u];c&&l[u]===m||kt(s,u,m)}else s.cssText=o}else{const s=n[0]=="$"?n.slice(1):n;s===n&&(!r&&!jl[n]&&n in t||Q(o)||Q(l))?t[n]=o??"":o==null?t.removeAttribute(s):t.setAttribute(s,fe(o)?JSON.stringify(o):o)}}function Wl(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 kt(t,n,l){let o="setProperty";l==null&&(o="removeProperty",l=null),~n.indexOf("-")?t[o](n,l):t[n]=l}const wt={};function Ee(t,...n){const l=(t.raw||t).reduce((o,r,a)=>o+r+(n[a]||""),"");return wt[l]=wt[l]||Kl(l)}function Kl(t){if(pt.sheet){const n=new CSSStyleSheet;return n.replaceSync(t),n}else{const n=document.createElement("style");return n.textContent=t,n}}const Yl=yt("host",{style:"display: contents"}),Pe=se("atomico/context"),Xl=(t,n)=>{const l=me();Pl(()=>it(l.current,"ConnectContext",o=>{t===o.detail.id&&(o.stopPropagation(),o.detail.connect(n))}),[t])},Jl=t=>{const n=te("ConnectContext",{bubbles:!0,composed:!0}),l=()=>{let a;return n({id:t,connect(s){a=s}}),a},[o,r]=De(l);return he(()=>{o||(t[Pe]||(t[Pe]=customElements.whenDefined(new t().localName)),t[Pe].then(()=>r(l)))},[t]),o},Gl=t=>{const n=Jl(t),l=at();return he(()=>{if(n)return it(n,"UpdatedValue",l)},[n]),(n||t).value},Zl=t=>{const n=pe(()=>(Xl(n,me().current),Yl),{props:{value:{type:Object,event:{type:"UpdatedValue"},value:()=>t}}});return n.value=t,n},P=(t,n,l)=>(n==null?n={key:l}:n.key=l,yt(t,n)),ge=P,vt=Ee`*,*:before,*:after{box-sizing:border-box}button{padding:0;touch-action:manipulation;cursor:pointer;user-select:none}`,xt=Ee`.vh{position:absolute;transform:scale(0)}`;function Le(){const t=new Date;return new U(t.getFullYear(),t.getMonth()+1,t.getDate())}function je(t,n=0){const l=Z(t),o=l.getUTCDay(),r=(o<n?7:0)+o-n;return l.setUTCDate(l.getUTCDate()-r),U.from(l)}function Et(t,n=0){return je(t,n).add({days:6})}function Bt(t){return U.from(new Date(Date.UTC(t.year,t.month,0)))}function Be(t,n,l){return n&&U.compare(t,n)<0?n:l&&U.compare(t,l)>0?l:t}const Ql={days:1};function ea(t,n=0){let l=je(t.toPlainDate(),n);const o=Et(Bt(t),n),r=[];for(;U.compare(l,o)<0;){const a=[];for(let s=0;s<7;s++)a.push(l),l=l.add(Ql);r.push(a)}return r}function Z(t){return new Date(Date.UTC(t.year,t.month-1,t.day??1))}const ta=/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[0-1])$/,Ae=(t,n)=>t.toString().padStart(n,"0");class U{constructor(n,l,o){this.year=n,this.month=l,this.day=o}add(n){const l=Z(this);if("days"in n)return l.setUTCDate(this.day+n.days),U.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=U.from(Z({year:o,month:r,day:1}));return Be(U.from(l),a,Bt(a))}toString(){return`${Ae(this.year,4)}-${Ae(this.month,2)}-${Ae(this.day,2)}`}toPlainYearMonth(){return new $e(this.year,this.month)}equals(n){return U.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(ta);if(!l)throw new TypeError(n);const[,o,r,a]=l;return new U(parseInt(o,10),parseInt(r,10),parseInt(a,10))}return new U(n.getUTCFullYear(),n.getUTCMonth()+1,n.getUTCDate())}}class $e{constructor(n,l){this.year=n,this.month=l}add(n){const l=Z(this),o=(n.months??0)+(n.years??0)*12;return l.setUTCMonth(l.getUTCMonth()+o),new $e(l.getUTCFullYear(),l.getUTCMonth()+1)}equals(n){return this.year===n.year&&this.month===n.month}toPlainDate(){return new U(this.year,this.month,1)}}function Ce(t,n){if(n)try{return t.from(n)}catch{}}function ne(t){const[n,l]=Te(t);return[ee(()=>Ce(U,n),[n]),o=>l(o==null?void 0:o.toString())]}function na(t){const[n="",l]=Te(t);return[ee(()=>{const[o,r]=n.split("/"),a=Ce(U,o),s=Ce(U,r);return a&&s?[a,s]:[]},[n]),o=>l(`${o[0]}/${o[1]}`)]}function oa(t){const[n="",l]=Te(t);return[ee(()=>{const o=[];for(const r of n.trim().split(/\s+/)){const a=Ce(U,r);a&&o.push(a)}return o},[n]),o=>l(o.join(" "))]}function be(t,n){return ee(()=>new Intl.DateTimeFormat(n,{timeZone:"UTC",...t}),[n,t])}function $t(t,n,l){const o=be(t,l);return ee(()=>{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 Ct=(t,n,l)=>Be(t,n,l)===t,St=t=>t.target.matches(":dir(ltr)"),la={month:"long",day:"numeric"},aa={month:"long"},ra={weekday:"long"},Fe={bubbles:!0};function sa({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:k}=n,f=c??Le(),d=$t(ra,o,u),B=ee(()=>({weekday:k}),[k]),x=$t(B,o,u),$=be(la,u),w=be(aa,u),I=ee(()=>i.start.add({months:l}),[i,l]),R=ee(()=>ea(I,o),[I,o]),Y=te("focusday",Fe),h=te("selectday",Fe),y=te("hoverday",Fe);function C(E){Y(Be(E,a,s))}function M(E){let b;switch(E.key){case"ArrowRight":b=m.add({days:St(E)?1:-1});break;case"ArrowLeft":b=m.add({days:St(E)?-1:1});break;case"ArrowDown":b=m.add({days:7});break;case"ArrowUp":b=m.add({days:-7});break;case"PageUp":b=m.add(E.shiftKey?{years:-1}:{months:-1});break;case"PageDown":b=m.add(E.shiftKey?{years:1}:{months:1});break;case"Home":b=je(m,o);break;case"End":b=Et(m,o);break;default:return}C(b),E.preventDefault()}function p(E){var T,j;const b=I.equals(E);if(!n.showOutsideDays&&!b)return;const z=E.equals(m),H=E.equals(f),W=Z(E),J=r==null?void 0:r(W),g=!Ct(E,a,s);let v="",N;if(n.type==="range"){const[L,K]=n.value,ce=L==null?void 0:L.equals(E),V=K==null?void 0:K.equals(E);N=L&&K&&Ct(E,L,K),v=`${ce?"range-start":""} ${V?"range-end":""} ${N&&!ce&&!V?"range-inner":""}`}else n.type==="multi"?N=n.value.some(L=>L.equals(E)):N=(T=n.value)==null?void 0:T.equals(E);return{part:`${`button day day-${W.getDay()} ${b?N?"selected":"":"outside"} ${J?"disallowed":""} ${H?"today":""} ${((j=n.getDayParts)==null?void 0:j.call(n,W))??""}`} ${v}`,tabindex:b&&z?0:-1,disabled:g,"aria-disabled":J?"true":void 0,"aria-pressed":b&&N,"aria-current":H?"date":void 0,"aria-label":$.format(W),onkeydown:M,onclick(){J||h(E),C(E)},onmouseover(){!J&&!g&&y(E)}}}return{weeks:R,yearMonth:I,daysLong:d,daysVisible:x,formatter:w,getDayProps:p}}const _e=Le(),Ue=Zl({type:"date",firstDayOfWeek:1,focusedDate:_e,page:{start:_e.toPlainYearMonth(),end:_e.toPlainYearMonth()}});customElements.define("calendar-ctx",Ue);const ia=(t,n)=>(n+t)%7,Vt=pe(t=>{const n=Gl(Ue),l=vl(),o=sa({props:t,context:n});function r(){var a;(a=l.current.querySelector("button[tabindex='0']"))==null||a.focus()}return ge("host",{shadowDom:!0,focus:r,children:[P("div",{id:"h",part:"heading",children:o.formatter.format(Z(o.yearMonth))}),ge("table",{ref:l,"aria-labelledby":"h",part:"table",children:[P("thead",{children:P("tr",{part:"tr head",children:o.daysLong.map((a,s)=>ge("th",{part:`th day day-${ia(n.firstDayOfWeek,s)}`,scope:"col",children:[P("span",{class:"vh",children:a}),P("span",{"aria-hidden":"true",children:o.daysVisible[s]})]}))})}),P("tbody",{children:o.weeks.map((a,s)=>P("tr",{part:"tr week",children:a.map((c,i)=>{const u=o.getDayProps(c);return P("td",{part:"td",children:u&&P("button",{...u,children:c.day})},i)})},s))})]})]})},{props:{offset:{type:Number,value:0}},styles:[vt,xt,Ee`: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",Vt);function Nt(t){return P("button",{part:`button ${t.name} ${t.onclick?"":"disabled"}`,onclick:t.onclick,"aria-disabled":t.onclick?null:"true",children:P("slot",{name:t.name,children:t.children})})}function Re(t){const n=Z(t.page.start),l=Z(t.page.end);return ge("div",{role:"group","aria-labelledby":"h",part:"container",children:[P("div",{id:"h",class:"vh","aria-live":"polite","aria-atomic":"true",children:t.formatVerbose.formatRange(n,l)}),ge("div",{part:"header",children:[P(Nt,{name:"previous",onclick:t.previous,children:"Previous"}),P("slot",{part:"heading",name:"heading",children:P("div",{"aria-hidden":"true",children:t.format.formatRange(n,l)})}),P(Nt,{name:"next",onclick:t.next,children:"Next"})]}),P(Ue,{value:t,onselectday:t.onSelect,onfocusday:t.onFocus,onhoverday:t.onHover,children:P("slot",{})})]})}const qe={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"}},He=[vt,xt,Ee`: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}`],ca={year:"numeric"},da={year:"numeric",month:"long"};function We(t,n){return(n.year-t.year)*12+n.month-t.month}const Dt=(t,n)=>(t=n===12?new $e(t.year,1):t,{start:t,end:t.add({months:n-1})});function ua({pageBy:t,focusedDate:n,months:l,max:o,min:r,goto:a}){const s=t==="single"?1:l,[c,i]=De(()=>Dt(n.toPlainYearMonth(),l)),u=k=>i(Dt(c.start.add({months:k}),l)),m=k=>{const f=We(c.start,k.toPlainYearMonth());return f>=0&&f<l};return he(()=>{if(m(n))return;const k=We(n.toPlainYearMonth(),c.start);a(n.add({months:k}))},[c.start]),he(()=>{if(m(n))return;const k=We(c.start,n.toPlainYearMonth());u(k===-1?-s:k===l?s:Math.floor(k/l)*l)},[n,s,l]),{page:c,previous:!r||!m(r)?()=>u(-s):void 0,next:!o||!m(o)?()=>u(s):void 0}}function Ke({months:t,pageBy:n,locale:l,focusedDate:o,setFocusedDate:r}){const[a]=ne("min"),[s]=ne("max"),[c]=ne("today"),i=te("focusday"),u=te("change"),m=ee(()=>Be(o??c??Le(),a,s),[o,c,a,s]);function k(w){r(w),i(Z(w))}const{next:f,previous:d,page:B}=ua({pageBy:n,focusedDate:m,months:t,min:a,max:s,goto:k}),x=me();function $(w){const I=(w==null?void 0:w.target)??"day";I==="day"?x.current.querySelectorAll("calendar-month").forEach(R=>R.focus(w)):x.current.shadowRoot.querySelector(`[part~='${I}']`).focus(w)}return{format:be(ca,l),formatVerbose:be(da,l),page:B,focusedDate:m,dispatch:u,onFocus(w){w.stopPropagation(),k(w.detail),setTimeout($)},min:a,max:s,today:c,next:f,previous:d,focus:$}}const Tt=pe(t=>{const[n,l]=ne("value"),[o=n,r]=ne("focusedDate"),a=Ke({...t,focusedDate:o,setFocusedDate:r});function s(c){l(c.detail),a.dispatch()}return P("host",{shadowDom:!0,focus:a.focus,children:P(Re,{...t,...a,type:"date",value:n,onSelect:s})})},{props:qe,styles:He});customElements.define("calendar-date",Tt);const zt=(t,n)=>U.compare(t,n)<0?[t,n]:[n,t],Mt=pe(t=>{const[n,l]=na("value"),[o=n[0],r]=ne("focusedDate"),a=Ke({...t,focusedDate:o,setFocusedDate:r}),s=te("rangestart"),c=te("rangeend"),[i,u]=ne("tentative"),[m,k]=De();he(()=>k(void 0),[i]);function f($){a.onFocus($),d($)}function d($){$.stopPropagation(),i&&k($.detail)}function B($){const w=$.detail;$.stopPropagation(),i?(l(zt(i,w)),u(void 0),c(Z(w)),a.dispatch()):(u(w),s(Z(w)))}const x=i?zt(i,m??i):n;return P("host",{shadowDom:!0,focus:a.focus,children:P(Re,{...t,...a,type:"range",value:x,onFocus:f,onHover:d,onSelect:B})})},{props:{...qe,tentative:{type:String,value:""}},styles:He});customElements.define("calendar-range",Mt);const It=pe(t=>{const[n,l]=oa("value"),[o=n[0],r]=ne("focusedDate"),a=Ke({...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 P("host",{shadowDom:!0,focus:a.focus,children:P(Re,{...t,...a,type:"multi",value:n,onSelect:s})})},{props:qe,styles:He});customElements.define("calendar-multi",It);const ma=Object.freeze(Object.defineProperty({__proto__:null,CalendarDate:Tt,CalendarMonth:Vt,CalendarMulti:It,CalendarRange:Mt},Symbol.toStringTag,{value:"Module"}));S.Accordion=dn,S.AdvancedSearch=Wn,S.Avatar=fn,S.Badge=pn,S.ButtonComponent=At,S.Card=vn,S.Carousel=Vn,S.CarouselItem=Nn,S.CategoryNavigation=sl,S.DatetimePicker=Qe,S.Dropdown=Ut,S.FilterableSelect=No,S.Footer=Zo,S.Hero=ll,S.InputField=tt,S.Loader=Ao,S.Modal=Ht,S.NavigationBar=ml,S.Rating=io,S.Selector=et,S.Swap=Yt,S.Tab=gl,S.TagInput=po,S.ThemeController=ln,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})}));
46
+ */const en=ue("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"}]]),tn=(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},nn={class:"swap-rotate swap"},on=["true-value","false-value"],ln=e.defineComponent({__name:"theme-controller",props:{lightTheme:{default:"light"},darkTheme:{default:"dark"}},setup(t){const n=t,l=tn("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",nn,[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,on),[[e.vModelCheckbox,e.unref(l)]]),e.createVNode(e.unref(en),{class:"swap-off fill-current"}),e.createVNode(e.unref(Qt),{class:"swap-on fill-current"})]))}}),an=["name"],rn={class:"collapse-title font-bold text-2xl lg:text-4xl"},sn={class:"collapse-content"},cn=["innerHTML"],dn=e.defineComponent({__name:"accordion",props:{name:{},items:{},joinItems:{type:Boolean,default:!1},icon:{}},setup(t){const n=t;return(l,o)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,(r,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["collapse border border-base-300",[t.icon?`collapse-${t.icon}`:"",{"join-item":t.joinItems}]]),key:a},[e.createElementVNode("input",{type:"radio",name:t.name,value:"true"},null,8,an),e.createElementVNode("div",rn,e.toDisplayString(r.title),1),e.createElementVNode("div",sn,[e.createElementVNode("span",{innerHTML:r.content},null,8,cn)])],2))),128))}}),un=["src"],mn={class:"text-xl"},fn=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,un)],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",mn,e.toDisplayString(t.initials),1)],2))],2))}}),pn=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))}}),hn=["src","alt"],gn={key:0,class:"card-body"},yn={key:0,class:"group-hover:text-primary text-lg text-left cursor-pointer card-title"},bn={key:1,class:"text-left"},kn={class:"flex-col flex-nowrap mt-auto card-actions"},wn={key:1,class:"card-body"},vn=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,hn)):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",gn,[t.title?(e.openBlock(),e.createElementBlock("h2",yn,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"details"),t.description?(e.openBlock(),e.createElementBlock("p",bn,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0),e.createElementVNode("div",kn,[e.renderSlot(o.$slots,"actions")])])),t.loading?(e.openBlock(),e.createElementBlock("div",wn,[...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))}}),Ze=Symbol("CarouselItemStyle"),xn={class:"relative h-full"},En={key:0,class:"flex-shrink-0"},Bn={key:0,class:"flex-shrink-0"},$n={key:1,class:"bottom-5 z-10 absolute flex justify-center gap-2 py-2 w-full"},Cn=["onClick","aria-label"],Sn=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),k=e.ref(0),f=e.ref(0),d=e.ref(0),B=e.ref(0),x=e.ref(0),$=e.ref(0),w=e.ref(0),I=e.ref(null),R=e.ref(null),Y=e.ref(0),h=e.computed(()=>{const V=Object.keys(l.breakpoints).map(Number).sort((O,A)=>O-A);let D={};for(const O of V)u.value>=O&&(D={...D,...l.breakpoints[O]});return D}),g=e.computed(()=>h.value.slidesPerView??l.slidesPerView),C=e.computed(()=>h.value.gap??l.gap),M=e.computed(()=>{const V=l.sliderOrientation==="horizontal",O=`calc((100% - ${g.value>1?(g.value-1)*C.value:0}px) / ${g.value})`;return V?{width:O}:{height:O}});e.provide(Ze,M);const p=()=>{a.value?i.value=a.value.children.length:i.value=0},E=()=>{if(!r.value||g.value<=0)return 0;const D=l.sliderOrientation==="horizontal"?r.value.offsetWidth:r.value.offsetHeight,O=(g.value-1)*C.value;return D<=0?0:(D-O)/g.value},b=e.computed(()=>{if(!r.value||i.value===0||g.value===0)return 0;const D=l.sliderOrientation==="horizontal"?r.value.offsetWidth:r.value.offsetHeight,O=E(),A=i.value*(O+C.value)-C.value;return Math.max(0,A-D)}),T=async(V,D=!1)=>{if(!r.value||g.value<=0||c.value||(p(),i.value===0))return;const O=E();if(O<=0)return;const A=O+C.value,_=b.value;let F=V;l.infinite?F=(V%i.value+i.value)%i.value:F=Math.max(0,Math.min(V,i.value-g.value));const G=F*A,q=l.infinite?G:Math.max(0,Math.min(G,_));if(D||l.slideDuration===0){a.value&&(a.value.style.transitionDuration="0ms",a.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-q}px, 0, 0)`:`translate3d(0, ${-q}px, 0)`),s.value=q,o.value=F,c.value=!1,l.autoplay&&P();return}c.value=!0;const Se=s.value,fa=q-Se,pa=performance.now(),Ot=ha=>{if(!a.value)return;const ga=ha-pa,Lt=Math.min(1,ga/l.slideDuration),ya=1-Math.pow(1-Lt,3),Ye=Se+fa*ya;a.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-Ye}px, 0, 0)`:`translate3d(0, ${-Ye}px, 0)`,s.value=Ye,Lt<1?I.value=requestAnimationFrame(Ot):(a.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-q}px, 0, 0)`:`translate3d(0, ${-q}px, 0)`,s.value=q,o.value=F,c.value=!1,l.autoplay&&P(),I.value=null)};I.value=requestAnimationFrame(Ot)},H=()=>{l.infinite&&o.value>=i.value-g.value?T(0):T(o.value+1)},W=()=>{l.infinite&&o.value<=0?T(i.value-g.value):T(o.value-1)},J=V=>{T(V)},y=V=>{c.value&&I.value&&(l.autoplay&&j(),cancelAnimationFrame(I.value),c.value=!1),m.value=!0;const D="touches"in V?V.touches[0]:V;k.value=D.clientX,f.value=D.clientY,d.value=s.value,B.value=0,x.value=0,$.value=0,w.value=performance.now(),r.value&&(r.value.style.scrollSnapType="none"),document.addEventListener("mousemove",v),document.addEventListener("mouseup",N),document.addEventListener("touchmove",v,{passive:!1}),document.addEventListener("touchend",N)},v=V=>{if(!m.value||!a.value||!r.value)return;V.cancelable&&V.preventDefault();const D="touches"in V?V.touches[0]:V,O=performance.now(),A=O-w.value;let _;if(l.sliderOrientation==="horizontal"){const F=D.clientX,G=F-(x.value||k.value);A>0&&(B.value=G/A*1e3);const q=F-k.value;_=d.value-q,x.value=F}else{const F=D.clientY,G=F-($.value||f.value);A>0&&(B.value=G/A*1e3);const q=F-f.value;_=d.value-q,$.value=F}_<0?_=_*.3:_>b.value&&(_=b.value+(_-b.value)*.3),Y.value=_,a.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-Y.value}px, 0, 0)`:`translate3d(0, ${-Y.value}px, 0)`,w.value=O},N=()=>{if(!m.value||!r.value||!a.value)return;const D=l.sliderOrientation==="horizontal"?d.value-(x.value-k.value):d.value-($.value-f.value),O=Math.max(0,Math.min(D,b.value)),A=E()+C.value;if(m.value=!1,document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",N),document.removeEventListener("touchend",N),s.value=O,l.infinite){if(D<0){T(i.value-1);return}else if(D>b.value){T(0);return}}else if(D<0){T(0);return}else if(D>b.value){const q=Math.max(0,i.value-Math.floor(g.value));T(q);return}const _=Math.max(0,i.value-Math.floor(g.value)),F=100,G=Math.round(O/A);if(Math.abs(B.value)>F){const q=-Math.sign(B.value),Se=G+q;T(Math.max(0,Math.min(_,Se)))}else T(Math.max(0,Math.min(_,G)))},z=()=>{!l.autoplay||R.value!==null||(R.value=setInterval(()=>{H()},l.autoplayInterval))},j=()=>{R.value!==null&&(clearInterval(R.value),R.value=null)},P=()=>{j(),setTimeout(()=>{z()},500)},K=()=>{u.value=window.innerWidth},ce=()=>{if(!r.value||g.value<=0||(p(),i.value===0))return;const V=E();if(V<=0)return;const D=Math.max(0,i.value-g.value),O=Math.min(Math.max(0,l.initialSlide),D),A=O*(V+C.value),_=b.value,F=Math.max(0,Math.min(A,_));a.value&&(a.value.style.transitionDuration="0ms",a.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-F}px, 0, 0)`:`translate3d(0, ${-F}px, 0)`),s.value=F,o.value=O};return e.onUnmounted(()=>{window.removeEventListener("resize",K)}),e.onMounted(()=>{var V,D,O,A,_,F,G,q;u.value=window.innerWidth,requestAnimationFrame(()=>{requestAnimationFrame(ce)}),l.autoplay&&z(),window.addEventListener("resize",K),p(),(V=r.value)==null||V.addEventListener("mousedown",y),(D=r.value)==null||D.addEventListener("touchstart",y,{passive:!0}),l.showNavigationButtons&&((_=(A=(O=r.value)==null?void 0:O.parentElement)==null?void 0:A.querySelector(".absolute.flex.justify-between"))==null||_.addEventListener("click",P)),l.showIndicators&&((q=(G=(F=r.value)==null?void 0:F.parentElement)==null?void 0:G.querySelector(".bottom-5.flex.justify-center"))==null||q.addEventListener("click",P))}),e.onUnmounted(()=>{window.removeEventListener("resize",K)}),e.watch(()=>l.autoplay,V=>{V?z():j()}),e.watch(()=>l.autoplayInterval,P),e.watch(()=>l.initialSlide,V=>{requestAnimationFrame(()=>T(V,!0))}),e.watch([g,C],()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{if(p(),i.value===0)return;const V=Math.max(0,i.value-g.value),D=Math.min(o.value,V);T(D,!0)})})}),n({scrollToSlide:T}),(V,D)=>(e.openBlock(),e.createElementBlock("div",xn,[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:`${C.value}px`})},[e.renderSlot(V.$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",En,[e.createElementVNode("div",{onClick:W,role:"button","aria-label":"Previous Slide"},[e.renderSlot(V.$slots,"prevButton",{},()=>[D[0]||(D[0]=e.createElementVNode("button",{class:"btn btn-circle text-xs",tabindex:"-1"},"❮",-1))],!0)])])):e.createCommentVNode("",!0)]),_:3}),D[2]||(D[2]=e.createElementVNode("div",{class:"flex-grow"},null,-1)),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[l.infinite||o.value<i.value-g.value?(e.openBlock(),e.createElementBlock("div",Bn,[e.createElementVNode("div",{onClick:H,role:"button","aria-label":"Next Slide"},[e.renderSlot(V.$slots,"nextButton",{},()=>[D[1]||(D[1]=e.createElementVNode("button",{class:"btn btn-circle text-xs",tabindex:"-1"},"❯",-1))],!0)])])):e.createCommentVNode("",!0)]),_:3})],2)):e.createCommentVNode("",!0),t.showIndicators?(e.openBlock(),e.createElementBlock("div",$n,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(O,A)=>(e.openBlock(),e.createElementBlock("button",{key:`dot-${A}`,onClick:_=>J(A),class:e.normalizeClass(["btn btn-circle btn-xs",{"btn-active":A===o.value}]),"aria-label":`Go to slide ${A+1}`},null,10,Cn))),128))])):e.createCommentVNode("",!0)]))}}),le=(t,n)=>{const l=t.__vccOpts||t;for(const[o,r]of n)l[o]=r;return l},Vn=le(Sn,[["__scopeId","data-v-f4fe3be2"]]),Nn=le(e.defineComponent({__name:"carouselItem",setup(t){const n=e.inject(Ze,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"]]),Dn={class:"flex gap-4 bg-base-100 w-full tabs tabs-boxed"},zn=["onClick"],Tn={key:0,class:"inline-component-wrapper flex grow justify-center items-center w-full h-full"},Mn={key:1,class:"flex flex-col"},In={class:"text-sm"},On={key:0,class:"opacity-75 overflow-hidden text-xs truncate ..."},Ln={key:1,class:"hidden md:block opacity-35 overflow-hidden text-xs truncate ..."},Pn={class:"hidden"},jn=["id"],An={class:"modal-box"},Fn={class:"font-bold text-lg"},_n=["name","checked"],Un={class:"collapse-title flex justify-between items-center pr-4 w-full font-medium text-xl"},Rn={key:0,class:"opacity-75 overflow-hidden text-sm truncate ..."},qn={key:1,class:"opacity-35 text-sm"},Hn={class:"collapse-content flex place-content-center p-0"},Wn=le(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(()=>ro)),"standard-select":e.defineAsyncComponent(()=>Promise.resolve().then(()=>vo)),"custom-text":e.defineAsyncComponent(()=>Promise.resolve().then(()=>jo))},i=e.ref({}),u=e.ref({left:"0px",top:"0px",transform:"translateX(0%)"}),m=e.ref(null),k=h=>{var g;if(h.value===void 0||h.value===null||h.value==="")return"";switch(h.type){case"datetime":if(typeof h.value=="string")try{const C=new Date(h.value);if(!isNaN(C.getTime()))return C.toLocaleString()}catch{}else if(h.range&&typeof h.value=="object"&&h.value!==null&&"start"in h.value&&"end"in h.value)try{const C=new Date(h.value.start),M=new Date(h.value.end);if(!isNaN(C.getTime())&&!isNaN(M.getTime()))return`${C.toLocaleDateString()} - ${M.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((g=h.props)!=null&&g.options&&Array.isArray(h.props.options)){const C=h.props.options.find(M=>M.value===h.value);if(C)return C.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,E;const g=(p=a.value)==null?void 0:p.name;if(!g){console.warn("componentValueUpdated called but no active tab.");return}const C=(E=l.searchOptions.find(b=>(b==null?void 0:b.category)===l.currentCategory))==null?void 0:E.tabs,M=C==null?void 0:C.find(b=>b.name===g);M?(M.value=h,o("update:search-data",{tab:M.name,data:h})):console.error(`Tab with name "${g}" not found in current category.`)}function d(h){f(h)}function B(){o("search")}async function x(h){var M;const g=document.getElementById(`advancedSearchMobile-${r}`),C=g&&g.contains(h.target);((M=a.value)==null?void 0:M.displayMode)==="popup"&&m.value&&!m.value.contains(h.target)&&!C&&(await e.nextTick(),a.value=null)}async function $(){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 w(h){var C,M,p;if(typeof window<"u"&&window.innerWidth<=768){$();return}const g=h.displayMode??"popup";if(((C=a.value)==null?void 0:C.name)===h.name&&((M=a.value)==null?void 0:M.displayMode)===g)a.value=null;else if(a.value={...h,displayMode:g},await e.nextTick(),((p=a.value)==null?void 0:p.displayMode)==="popup"){const E=i.value[h.name];if(E&&m.value){const b=E.getBoundingClientRect(),T=m.value.getBoundingClientRect(),H=b.bottom-T.top,W=b.left+b.width/2-T.left;u.value={left:`${W}px`,top:`${H+8}px`,transform:"translateX(-50%)"}}else console.error("Tab element or search container not found for positioning:",h.name)}}const I=h=>{const g=h.relatedTarget;setTimeout(()=>{var C;((C=a.value)==null?void 0:C.displayMode)==="inline"&&m.value&&(!g||!m.value.contains(g))?(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)},R=()=>{console.log("Enter key pressed on inline component, closing inline view."),a.value=null};e.watch(s,h=>{var g;console.log("advanced-search: inlineComponentRef changed. New Value:",h),console.log("advanced-search: activeTab.value:",a.value),h&&((g=a.value)==null?void 0:g.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,g;if(typeof window<"u"){const C=window.innerWidth<=768,M=a.value!==null&&(a.value.displayMode==="popup"||a.value.displayMode==="inline")&&window.innerWidth>768;!C&&(((h=a.value)==null?void 0:h.displayMode)==="popup"||((g=a.value)==null?void 0:g.displayMode)==="inline")&&window.innerWidth<=768&&(console.log("Resizing to mobile, closing active tab."),a.value=null),C&&!M&&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&&!C&&(console.log("Modal is open on desktop, closing modal and active tab."),p.close(),a.value=null)}};return(h,g)=>{var C,M;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:$},[e.createElementVNode("div",Dn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((C=l.searchOptions.find(p=>p.category===l.currentCategory))==null?void 0:C.tabs)||[],(p,E)=>{var b,T,H,W,J;return e.openBlock(),e.createElementBlock("button",{key:`${p.name}-${E}`,onClick:e.withModifiers(y=>w(p),["stop"]),class:e.normalizeClass([{"tab-active":((b=a.value)==null?void 0:b.name)===p.name,"tab-active-inline":((T=a.value)==null?void 0:T.name)===p.name&&((H=a.value)==null?void 0:H.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},[((W=a.value)==null?void 0:W.name)===p.name&&((J=a.value)==null?void 0:J.displayMode)==="inline"?(e.openBlock(),e.createElementBlock("div",Tn,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c[a.value.type]),e.mergeProps({ref_for:!0},a.value.props||{},{modelValue:a.value.value,onUpdated:g[0]||(g[0]=y=>d(y)),"onUpdate:modelValue":g[1]||(g[1]=y=>d(y)),onBlur:I,onKeydown:e.withKeys(e.withModifiers(R,["stop","prevent"]),["enter"]),ref_for:!0,ref_key:"inlineComponentRef",ref:s}),null,16,["modelValue","onKeydown"]))])):(e.openBlock(),e.createElementBlock("div",Mn,[e.createElementVNode("p",In,e.toDisplayString(p.name),1),p.value!==void 0&&p.value!==null&&p.value!==""?(e.openBlock(),e.createElementBlock("p",On,e.toDisplayString(k(p)),1)):(e.openBlock(),e.createElementBlock("p",Ln,e.toDisplayString(p.description),1))]))],10,zn)}),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:g[2]||(g[2]=p=>f(p)),"onUpdate:modelValue":g[3]||(g[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(B,["stop"])},[e.createVNode(e.unref(Ge),{size:24,color:"white"})])]),e.createElementVNode("div",Pn,[e.createElementVNode("button",{title:"search",onClick:g[4]||(g[4]=()=>{})},[e.createVNode(e.unref(Ge),{size:24,color:"white"})])])],512),e.createElementVNode("dialog",{id:`advancedSearchMobile-${e.unref(r)}`,class:"modal"},[e.createElementVNode("div",An,[e.renderSlot(h.$slots,"additionalForMobile",{},()=>[e.createElementVNode("h3",Fn,e.toDisplayString(t.currentCategory),1)],!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((M=l.searchOptions.find(p=>p.category===l.currentCategory))==null?void 0:M.tabs)||[],(p,E)=>(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:E===0},null,8,_n),e.createElementVNode("div",Un,[e.createElementVNode("div",null,e.toDisplayString(p.name),1),p.value!==void 0&&p.value!==null&&p.value!==""?(e.openBlock(),e.createElementBlock("div",Rn,e.toDisplayString(k(p)),1)):(e.openBlock(),e.createElementBlock("div",qn,e.toDisplayString(p.description),1))]),e.createElementVNode("div",Hn,[g[7]||(g[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:g[5]||(g[5]=b=>f(b)),"onUpdate:modelValue":g[6]||(g[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:B}," Close and Search ")])])])],8,jn)],64)}}}),[["__scopeId","data-v-577c3624"]]),Kn={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"},Yn={key:0},Xn={key:1},Jn=["id","onKeydown"],Gn={key:2,class:"flex justify-center p-4"},Zn={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"},Qn={class:"join-item"},eo=["id","disabled","value"],to={class:"join-item"},no=["id","disabled","value"],oo={key:3,class:"p-4 min-w-2xs"},lo=["id","disabled","value"],ao={key:4,class:"flex px-4 my-4 w-full justify-end"},Qe=le(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),k=e.ref(null),f=e.ref({from:"",to:"",single:""}),d=e.ref({single:null,start:null,end:null}),B=y=>y instanceof Date?y.toISOString():y,x=y=>y.split("T")[0]||"",$=y=>{const v=y instanceof Date?y:new Date(y);if(isNaN(v.getTime()))return"";const N=String(v.getHours()).padStart(2,"0"),z=String(v.getMinutes()).padStart(2,"0");return`${N}:${z}`},w=()=>{const y=new Date,v=$(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=v,f.value.to=v):f.value.single=v);return}if(o.range&&typeof N=="object"&&"start"in N){const z=B(N.start),j=B(N.end);d.value.start=x(z),d.value.end=x(j),o.mode!=="date"&&(f.value.from=$(z),f.value.to=$(j))}else{const z=B(N);d.value.single=x(z),o.mode!=="date"&&(f.value.single=$(z))}}},I=e.computed(()=>{const y=z=>{if(!z)return"";if(z.includes(":"))return z;try{return new Date(z+"T00:00:00").toLocaleDateString(o.locale,{year:"numeric",month:"numeric",day:"numeric"})}catch{const[j,P,K]=z.split("-");return`${K}/${P}/${j}`}};let v="",N="";if((o.mode==="date"||o.mode==="datetime")&&(o.range?d.value.start&&d.value.end&&(v=`${d.value.start} - ${d.value.end}`):d.value.single&&(v=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?v.split(" - ").map(y).join(" - "):y(v);if(o.mode==="time")return N;if(o.mode==="datetime")if(o.range){const z=d.value.start,j=d.value.end,P=f.value.from,K=f.value.to;if(z&&j&&P&&K)return`${y(z)} ${P} - ${y(j)} ${K}`;if(z)return`${y(z)} ${P||""}`.trim()}else{const z=d.value.single,j=f.value.single;return`${y(z)} ${j||""}`.trim()}return""}),R=()=>{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[v,N]=y.split("/");d.value.start=v||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,z=d.value.end||d.value.start,j=f.value.from,P=f.value.to;if(o.mode==="time")return j&&P?{start:j,end:P}:null;if(o.mode==="date")return N&&z?{start:N,end:z}:null;if(o.mode==="datetime"){if(!N||!z)return null;const K=j?`${j}:00`:"00:00:00",ce=P?`${P}:00`:"23:59:59",V=`${N}T${K}`,D=`${z}T${ce}`;return{start:V,end:D}}return null}const y=d.value.single,v=f.value.single;if(o.mode==="time")return v||null;if(o.mode==="date")return y||null;if(o.mode==="datetime"){if(!y)return null;const N=v?`${v}:00`:"00:00:00";return`${y}T${N}`}return null},g=async()=>{R();const y=h();r("update:modelValue",y),r("change",y)},C=()=>{e.nextTick(()=>{g()})},M=y=>{const v=y.target;o.range?v===m.value?f.value.from=v.value:v===k.value&&(f.value.to=v.value):f.value.single=v.value,g()},p=()=>{s.value=!s.value},E=()=>{g(),s.value=!1},b=y=>{!o.popup||!s.value||setTimeout(()=>{const v=a.value,N=y.target,z=`date-picker-${o.id}-popup`;v&&!v.contains(N)&&!y.target.closest(`#${z}`)&&E()},0)},T=()=>{E()},H=()=>{g(),o.popup&&(s.value=!1)},W=()=>{if(!l)return;const y=o.range?i.value:c.value;y&&typeof y.navigate=="function"&&y.navigate(-1)},J=()=>{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(()=>ma).catch(y=>{console.warn("Failed to load cally:",y)}),w()}),e.watch(d,async y=>{if(await e.nextTick(),c.value&&y.single){const v=y.single;c.value.value!==v&&(c.value.value=v)}if(i.value){const v=Y();v&&i.value.value!==v&&(i.value.value=v)}g()},{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}`),g()},{immediate:!0}),e.watch([u,m,k],()=>{g()},{immediate:!0}),(y,v)=>{const N=e.resolveComponent("calendar-month"),z=e.resolveComponent("calendar-date"),j=e.resolveComponent("calendar-range");return e.openBlock(),e.createElementBlock("div",{class:"inline-block relative w-fit lg:w-full",ref_key:"pickerContainer",ref:a,onMousedownCapture:b},[o.popup?(e.openBlock(),e.createElementBlock("div",{key:0,class:"flex items-center gap-2 cursor-pointer w-full",onClick:v[0]||(v[0]=P=>o.disabled?null:p())},[e.createElementVNode("div",Kn,[I.value?(e.openBlock(),e.createElementBlock("span",Xn,e.toDisplayString(I.value),1)):(e.openBlock(),e.createElementBlock("span",Yn,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:[v[1]||(v[1]=e.withKeys(e.withModifiers(()=>{},["prevent","stop"]),["tab"])),e.withKeys(T,["esc"]),e.withKeys(e.withModifiers(H,["prevent"]),["enter"])]},[!o.range&&o.mode!=="time"&&l?(e.openBlock(),e.createBlock(z,{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:C},{default:e.withCtx(()=>[e.createElementVNode("button",{slot:"previous",class:"btn-outline btn btn-primary md:btn-sm",onClick:W},[...v[2]||(v[2]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1)])]),e.createElementVNode("button",{slot:"next",class:"btn-outline btn btn-primary md:btn-sm",onClick:J},[...v[3]||(v[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(j,{key:1,class:"cally w-full",ref_key:"rangeDatePicker",ref:i,id:`${o.id}-date-range`,min:o.min,max:o.max,disabled:o.disabled,"first-day-of-week":o.firstDayOfWeek,onChange:C},{default:e.withCtx(()=>[e.createElementVNode("button",{slot:"previous",class:"btn-outline btn btn-primary md:btn-sm",onClick:W},[...v[4]||(v[4]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1)])]),e.createElementVNode("button",{slot:"next",class:"btn-outline btn btn-primary md:btn-sm",onClick:J},[...v[5]||(v[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",Gn,[e.createElementVNode("div",Zn,[e.createElementVNode("div",Qn,[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:M,disabled:o.disabled,value:f.value.from||""},null,40,eo)]),v[6]||(v[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",to,[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:k,id:`${o.id}-time-to`,onChange:M,disabled:o.disabled,value:f.value.to||""},null,40,no)])])])):e.createCommentVNode("",!0),!o.range&&o.mode!=="date"?(e.openBlock(),e.createElementBlock("div",oo,[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:M,disabled:o.disabled,value:f.value.single||""},null,40,lo)])):e.createCommentVNode("",!0),o.popup&&o.closeText?(e.openBlock(),e.createElementBlock("div",ao,[e.createElementVNode("button",{class:"btn btn-primary max-lg:w-full",onClick:E},e.toDisplayString(o.closeText),1)])):e.createCommentVNode("",!0)],42,Jn)):e.createCommentVNode("",!0)],544)}}}),[["__scopeId","data-v-e0b34494"]]),ro=Object.freeze(Object.defineProperty({__proto__:null,default:Qe},Symbol.toStringTag,{value:"Module"})),so=["value","checked","onChange","disabled"],io=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,so))),128))],2))}}),co={class:"badge"},uo=["onClick"],mo={class:"opacity-75"},fo=["placeholder"],po=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(B=>B!==d),o("update:modelValue",r.value)},k=()=>{c.value===""&&(r.value.pop(),o("update:modelValue",r.value))},f=d=>{d.key==="Enter"?u():d.key==="Backspace"&&c.value===""&&k()};return e.watch(()=>l.modelValue,d=>{r.value=[...d]}),(d,B)=>(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:$=>m(x),"aria-label":"Remove tag"},"X",8,uo),e.createElementVNode("span",mo,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":B[0]||(B[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,fo)),[[e.vModelText,c.value]]):e.createCommentVNode("",!0)])],2))}}),ho={class:"w-full max-w-xs form-control"},go={key:0,class:"label"},yo={class:"label-text"},bo=["value"],ko={key:0,value:"",disabled:"",selected:""},wo=["value"],et=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",ho,[t.label?(e.openBlock(),e.createElementBlock("label",go,[e.createElementVNode("span",yo,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",ko,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,wo))),128))],40,bo)]))}}),vo=Object.freeze(Object.defineProperty({__proto__:null,default:et},Symbol.toStringTag,{value:"Module"})),xo={key:0,class:"label"},Eo={class:"label-text"},Bo=["onKeydown","aria-expanded","aria-activedescendant"],$o=["placeholder","disabled"],Co={class:"top-full z-10 absolute bg-base-100 shadow-lg mt-1 rounded-md w-full dropdown-content",role:"listbox"},So={class:"flex-nowrap p-0 w-[inherit] max-h-60 overflow-y-auto menu"},Vo=["onMousedown","id","aria-selected"],No={__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 E=(a.default?a.default():[]).filter(b=>b.type!==e.Comment);return console.log("hasDefaultSlotContent computed:",E.length>0),E.length>0}),c=e.ref(""),i=e.ref(null),u=e.ref(!1),m=e.ref(null),k=e.ref(null),f=e.ref(null),d=e.ref(null),B=()=>{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=""))},$=()=>{u.value?x():B()},w=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,E)=>{if(p!==E&&x(),p==null)i.value=null,!u.value&&!s.value&&(c.value="");else{const b=o.options.find(T=>T.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 I=p=>{k.value&&!k.value.contains(p.target)&&x()},R=()=>{setTimeout(()=>{k.value&&!k.value.contains(document.activeElement)&&x()},100)};e.watch(u,p=>{p?setTimeout(()=>{document.addEventListener("click",I)},0):document.removeEventListener("click",I)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",I),window.removeEventListener("keydown",M)});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()},g=()=>{w.value.length>0&&h(w.value[0])},C=()=>{u.value||B()},M=p=>{if(!u.value||w.value.length===0)return;const E=w.value.findIndex((T,H)=>"option-"+H===d.value);let b=-1;if(p.key==="ArrowDown")p.preventDefault(),b=(E+1)%w.value.length;else if(p.key==="ArrowUp")p.preventDefault(),b=(E-1+w.value.length)%w.value.length;else if(p.key==="Enter"&&d.value){p.preventDefault();const T=w.value.find((H,W)=>"option-"+W===d.value);T&&h(T);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 T=document.getElementById(d.value);T&&requestAnimationFrame(()=>{T.scrollIntoView({block:"nearest",behavior:"smooth"})})}};return e.watch(u,p=>{p?(window.addEventListener("keydown",M),!s.value&&!c.value&&i.value&&(c.value=i.value.text)):window.removeEventListener("keydown",M)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",I),window.removeEventListener("keydown",M)}),n({isDropdownOpen:u,selectedItem:i,openDropdown:B,closeDropdown:x,toggleDropdown:$,selectItem:h,filterText:c,hasDefaultSlotContent:s}),(p,E)=>(e.openBlock(),e.createElementBlock("div",{class:"relative w-full max-w-xs form-control",ref_key:"componentRoot",ref:k},[t.label?(e.openBlock(),e.createElementBlock("label",xo,[e.createElementVNode("span",Eo,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:E[1]||(E[1]=b=>s.value?$():B()),onKeydown:[e.withKeys(e.withModifiers(g,["prevent"]),["enter"]),e.withKeys(e.withModifiers(g,["prevent"]),["space"])],onBlur:R,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":E[0]||(E[0]=b=>c.value=b),ref_key:"filterInput",ref:m,onFocus:B,onInput:C,tabindex:"-1",disabled:o.disabled},null,40,$o)),[[e.vModelText,c.value]])]),i.value&&!t.disabled?(e.openBlock(),e.createBlock(e.unref(Zt),{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(Gt),{key:1,class:e.normalizeClass([{"rotate-180":u.value},"mx-2"]),size:20},null,8,["class"])):e.createCommentVNode("",!0)],46,Bo),e.withDirectives(e.createElementVNode("div",Co,[e.createElementVNode("ul",So,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,(b,T)=>(e.openBlock(),e.createElementBlock("li",{key:b.value,onMousedown:e.withModifiers(H=>h(b),["prevent"]),class:"hover:bg-base-200 rounded-md w-full cursor-pointer",id:"option-"+T,role:"option","aria-selected":i.value&&i.value.value===b.value},[e.createElementVNode("a",null,e.toDisplayString(b.text),1)],40,Vo))),128))])],512),[[e.vShow,u.value&&w.value.length>0]])],512))}},Do={class:"w-full max-w-xs form-control"},zo={key:0,class:"label"},To={class:"label-text"},Mo=["type","placeholder","disabled","value"],Io={key:1,class:"label"},Oo={class:"label-text-alt text-error validator-hint"},Lo={key:2,class:"label"},Po={class:"label-text-alt text-success validator-hint"},tt=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 $,w,I,R;let d=!0,B="";const x=o.modelValue;return($=o.rules)!=null&&$.required&&(x==null||x==="")&&(d=!1,B="This field is required."),d&&((w=o.rules)==null?void 0:w.minLength)!==void 0&&typeof x=="string"&&x.length<o.rules.minLength&&(d=!1,B=`Must be at least ${o.rules.minLength} characters.`),d&&((I=o.rules)==null?void 0:I.maxLength)!==void 0&&typeof x=="string"&&x.length>o.rules.maxLength&&(d=!1,B=`Cannot exceed ${o.rules.maxLength} characters.`),d&&((R=o.rules)!=null&&R.email)&&typeof x=="string"&&x&&(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(x)||(d=!1,B="Please enter a valid email address.")),c.value=B,r("validate",d),d}),u=e.computed(()=>s.value&&!i.value),m=d=>{const B=d.target;r("update:modelValue",B.value),s.value&&i.value},k=()=>{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,B)=>(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.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:k},null,42,Mo),u.value?(e.openBlock(),e.createElementBlock("div",Io,[e.createElementVNode("span",Oo,e.toDisplayString(c.value),1)])):i.value&&s.value&&t.successMessage?(e.openBlock(),e.createElementBlock("div",Lo,[e.createElementVNode("span",Po,e.toDisplayString(t.successMessage),1)])):e.createCommentVNode("",!0)]))}}),jo=Object.freeze(Object.defineProperty({__proto__:null,default:tt},Symbol.toStringTag,{value:"Module"})),Ao=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)}}),Fo={class:"footer sm:footer-horizontal container"},_o={class:"footer-title"},Uo=["href"],Ro={key:0,class:"sm:hidden w-full"},qo={class:"border-b-2 border-base-100 last:border-b-0 w-full"},Ho={tabindex:"0",class:"collapse collapse-plus w-full"},Wo={class:"collapse-title font-bold text-lg collapsible-footer-title"},Ko={class:"collapse-content flex w-full text-sm"},Yo={class:"flex flex-col gap-2.5"},Xo={class:"w-full"},Jo=["href"],Go={class:"w-full"},Zo=e.defineComponent({__name:"footer",props:{items:{},background:{},color:{},collapseOnMobile:{type:Boolean,default:!1}},setup(t){const n=t;return(l,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["mx-auto md:px-10 py-10 text-base-content",[t.background??"bg-base-200",t.color??"text-base-content"]])},[e.createElementVNode("footer",Fo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,r=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass([{"hidden sm:grid":t.collapseOnMobile}])},[e.createElementVNode("h6",_o,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,Uo))),256))],2))),256)),t.collapseOnMobile?(e.openBlock(),e.createElementBlock("nav",Ro,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,r=>(e.openBlock(),e.createElementBlock("ul",qo,[e.createElementVNode("div",Ho,[e.createElementVNode("div",Wo,e.toDisplayString(r.title),1),e.createElementVNode("div",Ko,[e.createElementVNode("ul",Yo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.items,a=>(e.openBlock(),e.createElementBlock("li",Xo,[e.createElementVNode("a",{class:"w-full font-medium link link-hover",href:a.link},e.toDisplayString(a.text),9,Jo)]))),256))])])])]))),256))])):e.createCommentVNode("",!0),e.createElementVNode("aside",Go,[e.renderSlot(l.$slots,"default")])])],2))}}),Qo={},el={class:"min-h-40 container hero"},tl={class:"px-0! text-center hero-content"},nl={class:"mt-9 text-4xl"};function ol(t,n){return e.openBlock(),e.createElementBlock("div",el,[e.createElementVNode("div",tl,[e.createElementVNode("div",null,[e.createElementVNode("h1",nl,[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 ll=le(Qo,[["render",ol]]),al={class:"flex flex-row place-content-center gap-4 categories"},rl=["onClick"],sl=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",al,[(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,rl)]))),128))]))}}),il={class:"md:flex hidden navbar-start"},cl={class:"md:flex justify-center items-center hidden navbar-center"},dl={class:"md:flex hidden navbar-end"},ul={class:"navbar-bottom md:flex hidden"},ml=le(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",il,[e.renderSlot(l.$slots,"start",{},void 0,!0)]),e.createElementVNode("div",cl,[e.renderSlot(l.$slots,"center",{},void 0,!0)]),e.createElementVNode("div",dl,[e.renderSlot(l.$slots,"end",{},void 0,!0)]),e.createElementVNode("div",ul,[e.renderSlot(l.$slots,"bottom",{},void 0,!0)])],2))}}),[["__scopeId","data-v-8ddb2b45"]]),fl={key:0,class:"hidden top-4 right-0 absolute md:flex gap-4"},pl=["onClick","aria-selected"],hl={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"},gl={class:"p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full"},yl=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",fl,[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:k=>a(m),"aria-selected":o.value==m},e.toDisplayString(m),11,pl),t.buttonOnlyMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",hl,[e.renderSlot(i.$slots,`${m}-tab`)]))],64))),256))],2),e.createElementVNode("div",gl,[e.renderSlot(i.$slots,"default")])],64))}});typeof document>"u"&&(globalThis.document={}),typeof window>"u"&&(globalThis.window=globalThis);class bl{constructor(n){Xe(this,oe);Xe(this,ie,new Set);Je(this,oe,n)}get current(){return de(this,oe)}set current(n){de(this,oe)!=n&&(Je(this,oe,n),de(this,ie).forEach(l=>l(n)))}on(n){return de(this,ie).add(n),()=>de(this,ie).delete(n)}}oe=new WeakMap,ie=new WeakMap;const nt=t=>new bl(t),Ve=Symbol.for("atomico.hooks");globalThis[Ve]=globalThis[Ve]||{};let ae=globalThis[Ve];const kl=Symbol.for("Atomico.suspense"),ot=Symbol.for("Atomico.effect"),wl=Symbol.for("Atomico.layoutEffect"),lt=Symbol.for("Atomico.insertionEffect"),re=(t,n,l)=>{const{i:o,hooks:r}=ae.c,a=r[o]=r[o]||{};return a.value=t(a.value),a.effect=n,a.tag=l,ae.c.i++,r[o].value},vl=t=>re((n=nt(t))=>n),me=()=>re((t=nt(ae.c.host))=>t),at=()=>ae.c.update,xl=(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=>{ae.c={host:n,hooks:o,update:t,i:0,id:l};let i;try{r=!1,i=c()}catch(u){if(u!==kl)throw u;r=!0}finally{ae.c=null}return i},cleanEffects:c=>(s(lt,c),()=>(s(wl,c),()=>{s(ot,c)})),isSuspense:a}},se=Symbol.for;function rt(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",fe=t=>typeof t=="object",{isArray:El}=Array,Ne=(t,n)=>(n?t instanceof HTMLStyleElement:!0)&&"hydrate"in((t==null?void 0:t.dataset)||{});function st(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 it=(t,n,l)=>(t.addEventListener(n,l),()=>t.removeEventListener(n,l));class ct{constructor(n,l,o){this.message=l,this.target=n,this.value=o}}class dt extends ct{}class Bl extends ct{}const ve="Custom",$l=null,Cl={true:1,"":1,1:1};function Sl(t,n,l,o,r){const{type:a,reflect:s,event:c,value:i,attr:u=Vl(n)}=(l==null?void 0:l.name)!=ve&&fe(l)&&l!=$l?l:{type:l},m=(a==null?void 0:a.name)===ve&&a.map,k=i!=null?a==Function||!Q(i)?()=>i:i:null;Object.defineProperty(t,n,{configurable:!0,set(f){const d=this[n];k&&a!=Boolean&&f==null&&(f=k());const{error:B,value:x}=(m?zl:Tl)(a,f);if(B&&x!=null)throw new dt(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&&ut(this,c),this.updated.then(()=>{s&&(this._ignoreAttr=u,Nl(this,a,u,this[n]),this._ignoreAttr=null)}))},get(){return this._props[n]}}),k&&(r[n]=k()),o[u]={prop:n,type:a}}const ut=(t,{type:n,base:l=CustomEvent,...o})=>t.dispatchEvent(new l(n,o)),Vl=t=>t.replace(/([A-Z])/g,"-$1").toLowerCase(),Nl=(t,n,l,o)=>o==null||n==Boolean&&!o?t.removeAttribute(l):t.setAttribute(l,(n==null?void 0:n.name)===ve&&(n!=null&&n.serialize)?n==null?void 0:n.serialize(o):fe(o)?JSON.stringify(o):n==Boolean?"":o),Dl=(t,n)=>t==Boolean?!!Cl[n]:t==Number?Number(n):t==String?n:t==Array||t==Object?JSON.parse(n):t.name==ve?n:new t(n),zl=({map:t},n)=>{try{return{value:t(n),error:!1}}catch{return{value:n,error:!0}}},Tl=(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 Ml=0;const Il=t=>{var l;return((l=(t==null?void 0:t.dataset)||{})==null?void 0:l.hydrate)||""||"c"+Ml++},pe=(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,k;this.mounted=new Promise($=>this.mount=()=>{$(),m!=this.parentNode&&(k!=m?this.unmounted.then(this.update):this.update()),m=this.parentNode}),this.unmounted=new Promise($=>this.unmount=()=>{$(),(m!=this.parentNode||!this.isConnected)&&(f.cleanEffects(!0)()(),k=this.parentNode,m=null)}),this.symbolId=this.symbolId||Symbol(),this.symbolIdParent=Symbol();const f=xl(()=>this.update(),this,Il(this));let d,B=!0;const x=Ne(this);this.update=()=>(d||(d=!0,this.updated=(this.updated||this.mounted).then(()=>{try{const $=f.load(this._render),w=f.cleanEffects();return $&&$.render(this,this.symbolId,x),d=!1,B&&!f.isSuspense()&&(B=!1,!x&&Ol(this)),w()}finally{d=!1}}).then($=>{$&&$()})),this.updated),this.update()}connectedCallback(){this.mount(),super.connectedCallback&&super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback(),this.unmount()}attributeChangedCallback(m,k,f){if(l[m]){if(m===this._ignoreAttr||k===f)return;const{prop:d,type:B}=l[m];try{this[d]=Dl(B,f)}catch{throw new Bl(this,`The value defined as attr '${m}' cannot be parsed by type '${B.name}'`,f)}}else super.attributeChangedCallback(m,k,f)}static get props(){return{...super.props,...s}}static get observedAttributes(){const m=super.observedAttributes||[];for(const k in s)Sl(this.prototype,k,s[k],l,o);return Object.keys(l).concat(m)}}return i};function Ol(t){const{styles:n}=t.constructor,{shadowRoot:l}=t;if(l&&n.length){const o=[];st(n,r=>{r&&(r instanceof Element?l.appendChild(r.cloneNode(!0)):o.push(r))}),o.length&&(l.adoptedStyleSheets=o)}}const mt=t=>(n,l)=>{re(([o,r]=[])=>((r||!r)&&(r&&rt(r,l)?o=o||!0:(Q(o)&&o(),o=null)),[o,l]),([o,r],a)=>a?(Q(o)&&o(),[]):[o||n(),r],t)},he=mt(ot),Ll=mt(lt);class ft 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 De=t=>{const n=at();return re((l=new ft(t,(o,r,a)=>{o=Q(o)?o(r[0]):o,o!==r[0]&&(r[0]=o,a||n())}))=>l)},ee=(t,n)=>{const[l]=re(([o,r,a=0]=[])=>((!r||r&&!rt(r,n))&&(o=t()),[o,n,a]));return l},ze=t=>{const{current:n}=me();if(!(t in n))throw new dt(n,`For useProp("${t}"), the prop does not exist on the host.`,t);return re((l=new ft(n[t],(o,r)=>{o=Q(o)?o(n[t]):o,n[t]=o}))=>(l[0]=n[t],l))},te=(t,n={})=>{const l=me();return l[t]||(l[t]=(o=n.detail)=>ut(l.current,{type:t,...n,detail:o})),l[t]},Te=se("atomico/options");globalThis[Te]=globalThis[Te]||{sheet:!!document.adoptedStyleSheets};const pt=globalThis[Te],Pl={checked:1,value:1,selected:1},jl={list:1,type:1,size:1,form:1,width:1,height:1,src:1,href:1,slot:1},Al={shadowDom:1,staticNode:1,cloneNode:1,children:1,key:1},xe={},Me=[];class Ie extends Text{}const Fl=se("atomico/id"),ge=se("atomico/type"),Oe=se("atomico/ref"),ht=se("atomico/vnode"),_l=()=>{};function Ul(t,n,l){return yt(this,t,n,l)}const gt=(t,n,...l)=>{const o=n||xe;let{children:r}=o;if(r=r??(l.length?l:Me),t===_l)return r;const a=t?t instanceof Node?1:t.prototype instanceof HTMLElement&&2:0;if(a===!1&&t instanceof Function)return t(r!=Me?{children:r,...o}:o);const s=pt.render||Ul;return{[ge]:ht,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 yt(t,n,l=Fl,o,r){let a;if(n&&n[l]&&n[l].vnode==t||t[ge]!=ht)return n;(t||!n)&&(r=r||t.type=="svg",a=t.type!="host"&&(t.raw==1?(n&&t.clone?n[Oe]:n)!=t.type:t.raw==2?!(n instanceof t.type):n?n[Oe]||n.localName!=t.type:!n),a&&t.type!=null&&(t.raw==1&&t.clone?(o=!0,n=t.type.cloneNode(!0),n[Oe]=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]:xe,{vnode:c=xe,cycle:i=0}=s;let{fragment:u,handlers:m}=s;const{children:k=Me,props:f=xe}=c;if(m=a?{}:m||{},t.static&&!a)return n;if(t.shadow&&!n.shadowRoot&&n.attachShadow({mode:"open",...t.shadow}),t.props!=f&&Hl(n,f,t.props,m,r),t.children!==k){const d=t.shadow?n.shadowRoot:n;u=ql(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 Rl(t,n){const l=new Ie(""),o=new Ie("");let r;if(t[n?"prepend":"append"](l),n){let{lastElementChild:a}=t;for(;a;){const{previousElementSibling:s}=a;if(Ne(a,!0)&&!Ne(s,!0)){r=a;break}a=s}}return r?r.before(o):t.append(o),{markStart:l,markEnd:o}}function ql(t,n,l,o,r,a){t=t==null?null:El(t)?t:[t];const s=n||Rl(l,r),{markStart:c,markEnd:i,keyes:u}=s;let m;const k=u&&new Set;let f=c;if(t&&st(t,d=>{if(typeof d=="object"&&!d[ge])return;const B=d[ge]&&d.key,x=u&&B!=null&&u.get(B);f!=i&&f===x?k.delete(f):f=f==i?i:f.nextSibling;const $=u?x:f;let w=$;if(d[ge])w=yt(d,$,o,r,a);else{const I=d+"";!(w instanceof Text)||w instanceof Ie?w=new Text(I):w.data!=I&&(w.data=I)}w!=f&&(u&&k.delete(w),!$||u?(l.insertBefore(w,f),u&&f!=i&&k.add(f)):$==i?l.insertBefore(w,i):(l.replaceChild(w,$),f=w)),B!=null&&(m=m||new Map,m.set(B,w))}),f=f==i?i:f.nextSibling,n&&f!=i)for(;f!=i;){const d=f;f=f.nextSibling,d.remove()}return k&&k.forEach(d=>d.remove()),s.keyes=m,s}function Hl(t,n,l,o,r){for(const a in n)!(a in l)&&bt(t,a,n[a],null,r,o);for(const a in l)bt(t,a,n[a],l[a],r,o)}function bt(t,n,l,o,r,a){if(n=n=="class"&&!r?"className":n,l=l??null,o=o??null,n in t&&Pl[n]&&(l=t[n]),!(o===l||Al[n]||n[0]=="_"))if(n[0]=="o"&&n[1]=="n"&&(Q(o)||Q(l)))Wl(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=fe(l),i=fe(o);if(c)for(const u in l)if(i)!(u in o)&&kt(s,u,null);else break;if(i)for(const u in o){const m=o[u];c&&l[u]===m||kt(s,u,m)}else s.cssText=o}else{const s=n[0]=="$"?n.slice(1):n;s===n&&(!r&&!jl[n]&&n in t||Q(o)||Q(l))?t[n]=o??"":o==null?t.removeAttribute(s):t.setAttribute(s,fe(o)?JSON.stringify(o):o)}}function Wl(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 kt(t,n,l){let o="setProperty";l==null&&(o="removeProperty",l=null),~n.indexOf("-")?t[o](n,l):t[n]=l}const wt={};function Ee(t,...n){const l=(t.raw||t).reduce((o,r,a)=>o+r+(n[a]||""),"");return wt[l]=wt[l]||Kl(l)}function Kl(t){if(pt.sheet){const n=new CSSStyleSheet;return n.replaceSync(t),n}else{const n=document.createElement("style");return n.textContent=t,n}}const Yl=gt("host",{style:"display: contents"}),Le=se("atomico/context"),Xl=(t,n)=>{const l=me();Ll(()=>it(l.current,"ConnectContext",o=>{t===o.detail.id&&(o.stopPropagation(),o.detail.connect(n))}),[t])},Jl=t=>{const n=te("ConnectContext",{bubbles:!0,composed:!0}),l=()=>{let a;return n({id:t,connect(s){a=s}}),a},[o,r]=De(l);return he(()=>{o||(t[Le]||(t[Le]=customElements.whenDefined(new t().localName)),t[Le].then(()=>r(l)))},[t]),o},Gl=t=>{const n=Jl(t),l=at();return he(()=>{if(n)return it(n,"UpdatedValue",l)},[n]),(n||t).value},Zl=t=>{const n=pe(()=>(Xl(n,me().current),Yl),{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,gt(t,n)),ye=L,vt=Ee`*,*:before,*:after{box-sizing:border-box}button{padding:0;touch-action:manipulation;cursor:pointer;user-select:none}`,xt=Ee`.vh{position:absolute;transform:scale(0)}`;function Pe(){const t=new Date;return new U(t.getFullYear(),t.getMonth()+1,t.getDate())}function je(t,n=0){const l=Z(t),o=l.getUTCDay(),r=(o<n?7:0)+o-n;return l.setUTCDate(l.getUTCDate()-r),U.from(l)}function Et(t,n=0){return je(t,n).add({days:6})}function Bt(t){return U.from(new Date(Date.UTC(t.year,t.month,0)))}function Be(t,n,l){return n&&U.compare(t,n)<0?n:l&&U.compare(t,l)>0?l:t}const Ql={days:1};function ea(t,n=0){let l=je(t.toPlainDate(),n);const o=Et(Bt(t),n),r=[];for(;U.compare(l,o)<0;){const a=[];for(let s=0;s<7;s++)a.push(l),l=l.add(Ql);r.push(a)}return r}function Z(t){return new Date(Date.UTC(t.year,t.month-1,t.day??1))}const ta=/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[0-1])$/,Ae=(t,n)=>t.toString().padStart(n,"0");class U{constructor(n,l,o){this.year=n,this.month=l,this.day=o}add(n){const l=Z(this);if("days"in n)return l.setUTCDate(this.day+n.days),U.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=U.from(Z({year:o,month:r,day:1}));return Be(U.from(l),a,Bt(a))}toString(){return`${Ae(this.year,4)}-${Ae(this.month,2)}-${Ae(this.day,2)}`}toPlainYearMonth(){return new $e(this.year,this.month)}equals(n){return U.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(ta);if(!l)throw new TypeError(n);const[,o,r,a]=l;return new U(parseInt(o,10),parseInt(r,10),parseInt(a,10))}return new U(n.getUTCFullYear(),n.getUTCMonth()+1,n.getUTCDate())}}class $e{constructor(n,l){this.year=n,this.month=l}add(n){const l=Z(this),o=(n.months??0)+(n.years??0)*12;return l.setUTCMonth(l.getUTCMonth()+o),new $e(l.getUTCFullYear(),l.getUTCMonth()+1)}equals(n){return this.year===n.year&&this.month===n.month}toPlainDate(){return new U(this.year,this.month,1)}}function Ce(t,n){if(n)try{return t.from(n)}catch{}}function ne(t){const[n,l]=ze(t);return[ee(()=>Ce(U,n),[n]),o=>l(o==null?void 0:o.toString())]}function na(t){const[n="",l]=ze(t);return[ee(()=>{const[o,r]=n.split("/"),a=Ce(U,o),s=Ce(U,r);return a&&s?[a,s]:[]},[n]),o=>l(`${o[0]}/${o[1]}`)]}function oa(t){const[n="",l]=ze(t);return[ee(()=>{const o=[];for(const r of n.trim().split(/\s+/)){const a=Ce(U,r);a&&o.push(a)}return o},[n]),o=>l(o.join(" "))]}function be(t,n){return ee(()=>new Intl.DateTimeFormat(n,{timeZone:"UTC",...t}),[n,t])}function $t(t,n,l){const o=be(t,l);return ee(()=>{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 Ct=(t,n,l)=>Be(t,n,l)===t,St=t=>t.target.matches(":dir(ltr)"),la={month:"long",day:"numeric"},aa={month:"long"},ra={weekday:"long"},Fe={bubbles:!0};function sa({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:k}=n,f=c??Pe(),d=$t(ra,o,u),B=ee(()=>({weekday:k}),[k]),x=$t(B,o,u),$=be(la,u),w=be(aa,u),I=ee(()=>i.start.add({months:l}),[i,l]),R=ee(()=>ea(I,o),[I,o]),Y=te("focusday",Fe),h=te("selectday",Fe),g=te("hoverday",Fe);function C(E){Y(Be(E,a,s))}function M(E){let b;switch(E.key){case"ArrowRight":b=m.add({days:St(E)?1:-1});break;case"ArrowLeft":b=m.add({days:St(E)?-1:1});break;case"ArrowDown":b=m.add({days:7});break;case"ArrowUp":b=m.add({days:-7});break;case"PageUp":b=m.add(E.shiftKey?{years:-1}:{months:-1});break;case"PageDown":b=m.add(E.shiftKey?{years:1}:{months:1});break;case"Home":b=je(m,o);break;case"End":b=Et(m,o);break;default:return}C(b),E.preventDefault()}function p(E){var z,j;const b=I.equals(E);if(!n.showOutsideDays&&!b)return;const T=E.equals(m),H=E.equals(f),W=Z(E),J=r==null?void 0:r(W),y=!Ct(E,a,s);let v="",N;if(n.type==="range"){const[P,K]=n.value,ce=P==null?void 0:P.equals(E),V=K==null?void 0:K.equals(E);N=P&&K&&Ct(E,P,K),v=`${ce?"range-start":""} ${V?"range-end":""} ${N&&!ce&&!V?"range-inner":""}`}else n.type==="multi"?N=n.value.some(P=>P.equals(E)):N=(z=n.value)==null?void 0:z.equals(E);return{part:`${`button day day-${W.getDay()} ${b?N?"selected":"":"outside"} ${J?"disallowed":""} ${H?"today":""} ${((j=n.getDayParts)==null?void 0:j.call(n,W))??""}`} ${v}`,tabindex:b&&T?0:-1,disabled:y,"aria-disabled":J?"true":void 0,"aria-pressed":b&&N,"aria-current":H?"date":void 0,"aria-label":$.format(W),onkeydown:M,onclick(){J||h(E),C(E)},onmouseover(){!J&&!y&&g(E)}}}return{weeks:R,yearMonth:I,daysLong:d,daysVisible:x,formatter:w,getDayProps:p}}const _e=Pe(),Ue=Zl({type:"date",firstDayOfWeek:1,focusedDate:_e,page:{start:_e.toPlainYearMonth(),end:_e.toPlainYearMonth()}});customElements.define("calendar-ctx",Ue);const ia=(t,n)=>(n+t)%7,Vt=pe(t=>{const n=Gl(Ue),l=vl(),o=sa({props:t,context:n});function r(){var a;(a=l.current.querySelector("button[tabindex='0']"))==null||a.focus()}return ye("host",{shadowDom:!0,focus:r,children:[L("div",{id:"h",part:"heading",children:o.formatter.format(Z(o.yearMonth))}),ye("table",{ref:l,"aria-labelledby":"h",part:"table",children:[L("thead",{children:L("tr",{part:"tr head",children:o.daysLong.map((a,s)=>ye("th",{part:`th day day-${ia(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:[vt,xt,Ee`: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",Vt);function Nt(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 Re(t){const n=Z(t.page.start),l=Z(t.page.end);return ye("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)}),ye("div",{part:"header",children:[L(Nt,{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(Nt,{name:"next",onclick:t.next,children:"Next"})]}),L(Ue,{value:t,onselectday:t.onSelect,onfocusday:t.onFocus,onhoverday:t.onHover,children:L("slot",{})})]})}const qe={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"}},He=[vt,xt,Ee`: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}`],ca={year:"numeric"},da={year:"numeric",month:"long"};function We(t,n){return(n.year-t.year)*12+n.month-t.month}const Dt=(t,n)=>(t=n===12?new $e(t.year,1):t,{start:t,end:t.add({months:n-1})});function ua({pageBy:t,focusedDate:n,months:l,max:o,min:r,goto:a}){const s=t==="single"?1:l,[c,i]=De(()=>Dt(n.toPlainYearMonth(),l)),u=k=>i(Dt(c.start.add({months:k}),l)),m=k=>{const f=We(c.start,k.toPlainYearMonth());return f>=0&&f<l};return he(()=>{if(m(n))return;const k=We(n.toPlainYearMonth(),c.start);a(n.add({months:k}))},[c.start]),he(()=>{if(m(n))return;const k=We(c.start,n.toPlainYearMonth());u(k===-1?-s:k===l?s:Math.floor(k/l)*l)},[n,s,l]),{page:c,previous:!r||!m(r)?()=>u(-s):void 0,next:!o||!m(o)?()=>u(s):void 0}}function Ke({months:t,pageBy:n,locale:l,focusedDate:o,setFocusedDate:r}){const[a]=ne("min"),[s]=ne("max"),[c]=ne("today"),i=te("focusday"),u=te("change"),m=ee(()=>Be(o??c??Pe(),a,s),[o,c,a,s]);function k(w){r(w),i(Z(w))}const{next:f,previous:d,page:B}=ua({pageBy:n,focusedDate:m,months:t,min:a,max:s,goto:k}),x=me();function $(w){const I=(w==null?void 0:w.target)??"day";I==="day"?x.current.querySelectorAll("calendar-month").forEach(R=>R.focus(w)):x.current.shadowRoot.querySelector(`[part~='${I}']`).focus(w)}return{format:be(ca,l),formatVerbose:be(da,l),page:B,focusedDate:m,dispatch:u,onFocus(w){w.stopPropagation(),k(w.detail),setTimeout($)},min:a,max:s,today:c,next:f,previous:d,focus:$}}const zt=pe(t=>{const[n,l]=ne("value"),[o=n,r]=ne("focusedDate"),a=Ke({...t,focusedDate:o,setFocusedDate:r});function s(c){l(c.detail),a.dispatch()}return L("host",{shadowDom:!0,focus:a.focus,children:L(Re,{...t,...a,type:"date",value:n,onSelect:s})})},{props:qe,styles:He});customElements.define("calendar-date",zt);const Tt=(t,n)=>U.compare(t,n)<0?[t,n]:[n,t],Mt=pe(t=>{const[n,l]=na("value"),[o=n[0],r]=ne("focusedDate"),a=Ke({...t,focusedDate:o,setFocusedDate:r}),s=te("rangestart"),c=te("rangeend"),[i,u]=ne("tentative"),[m,k]=De();he(()=>k(void 0),[i]);function f($){a.onFocus($),d($)}function d($){$.stopPropagation(),i&&k($.detail)}function B($){const w=$.detail;$.stopPropagation(),i?(l(Tt(i,w)),u(void 0),c(Z(w)),a.dispatch()):(u(w),s(Z(w)))}const x=i?Tt(i,m??i):n;return L("host",{shadowDom:!0,focus:a.focus,children:L(Re,{...t,...a,type:"range",value:x,onFocus:f,onHover:d,onSelect:B})})},{props:{...qe,tentative:{type:String,value:""}},styles:He});customElements.define("calendar-range",Mt);const It=pe(t=>{const[n,l]=oa("value"),[o=n[0],r]=ne("focusedDate"),a=Ke({...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(Re,{...t,...a,type:"multi",value:n,onSelect:s})})},{props:qe,styles:He});customElements.define("calendar-multi",It);const ma=Object.freeze(Object.defineProperty({__proto__:null,CalendarDate:zt,CalendarMonth:Vt,CalendarMulti:It,CalendarRange:Mt},Symbol.toStringTag,{value:"Module"}));S.Accordion=dn,S.AdvancedSearch=Wn,S.Avatar=fn,S.Badge=pn,S.ButtonComponent=At,S.Card=vn,S.Carousel=Vn,S.CarouselItem=Nn,S.CategoryNavigation=sl,S.DatetimePicker=Qe,S.Dropdown=Ut,S.FilterableSelect=No,S.Footer=Zo,S.Hero=ll,S.InputField=tt,S.Loader=Ao,S.Modal=Ht,S.NavigationBar=ml,S.Rating=io,S.Selector=et,S.Swap=Yt,S.Tab=yl,S.TagInput=po,S.ThemeController=ln,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "manolis-ui",
3
3
  "private": false,
4
- "version": "0.17.3",
4
+ "version": "0.17.4",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist/*"