manolis-ui 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { defineComponent as L, computed as E, createElementBlock as a, openBlock as n, normalizeClass as D, createCommentVNode as O, renderSlot as I, createTextVNode as ke, createElementVNode as s, Fragment as B, renderList as P, toDisplayString as C, ref as x, h as me, onMounted as ee, watch as H, withDirectives as q, createVNode as se, isRef as ze, vModelCheckbox as Ae, unref as R, provide as Pe, normalizeStyle as de, inject as Ee, useId as Le, defineAsyncComponent as ce, nextTick as pe, onBeforeUnmount as ge, withModifiers as Q, createBlock as ae, resolveDynamicComponent as ve, mergeProps as fe, withKeys as he, onUnmounted as $e, vModelSelect as Z, vModelText as oe, useSlots as Ue, Comment as Re, vShow as Ne } from "vue";
1
+ import { defineComponent as L, computed as E, createElementBlock as a, openBlock as n, normalizeClass as D, createCommentVNode as O, renderSlot as M, createTextVNode as ke, createElementVNode as s, Fragment as B, renderList as P, toDisplayString as C, ref as x, h as me, onMounted as ee, watch as H, withDirectives as q, createVNode as se, isRef as ze, vModelCheckbox as Ae, unref as R, provide as Pe, normalizeStyle as de, inject as Ee, useId as Le, defineAsyncComponent as ce, nextTick as pe, onBeforeUnmount as ge, withModifiers as Q, createBlock as ae, resolveDynamicComponent as ve, mergeProps as fe, withKeys as he, onUnmounted as $e, vModelSelect as Z, vModelText as oe, useSlots as Ue, Comment as Re, vShow as Ne } from "vue";
2
2
  const je = ["disabled"], Fe = {
3
3
  key: 0,
4
4
  class: "loading loading-spinner"
@@ -76,7 +76,7 @@ const je = ["disabled"], Fe = {
76
76
  disabled: v.disabled
77
77
  }, [
78
78
  l.loading ? (n(), a("span", Fe)) : O("", !0),
79
- I(l.$slots, "default", {}, () => [
79
+ M(l.$slots, "default", {}, () => [
80
80
  r[0] || (r[0] = ke("Submit"))
81
81
  ])
82
82
  ], 10, je));
@@ -106,7 +106,7 @@ const je = ["disabled"], Fe = {
106
106
  return (o, l) => (n(), a("div", {
107
107
  class: D(["dropdown", v[t.position], e[t.floatPosition], { "dropdown-open": t.forceOpen }, { "dropdown-hover": t.openOnHover }])
108
108
  }, [
109
- I(o.$slots, "default", {
109
+ M(o.$slots, "default", {
110
110
  tabindex: "0",
111
111
  role: "button"
112
112
  }, () => [
@@ -118,7 +118,7 @@ const je = ["disabled"], Fe = {
118
118
  href: r.link
119
119
  }, C(r.text), 9, He)
120
120
  ]))), 256)),
121
- I(o.$slots, "additional")
121
+ M(o.$slots, "additional")
122
122
  ])
123
123
  ], 2));
124
124
  }
@@ -145,7 +145,7 @@ const je = ["disabled"], Fe = {
145
145
  class: "w-fit cursor-pointer",
146
146
  onClick: o
147
147
  }, [
148
- I(r.$slots, "trigger", { role: "button" }, () => [
148
+ M(r.$slots, "trigger", { role: "button" }, () => [
149
149
  b[0] || (b[0] = s("button", { class: "btn" }, "Open", -1))
150
150
  ])
151
151
  ]),
@@ -155,15 +155,15 @@ const je = ["disabled"], Fe = {
155
155
  class: D(["modal", e[v.position]])
156
156
  }, [
157
157
  s("div", We, [
158
- I(r.$slots, "default"),
158
+ M(r.$slots, "default"),
159
159
  s("div", Ke, [
160
- I(r.$slots, "actions"),
160
+ M(r.$slots, "actions"),
161
161
  s("form", {
162
162
  method: "dialog",
163
163
  onSubmit: l,
164
164
  class: D(r.withBackdrop ? "modal-backdrop" : "")
165
165
  }, [
166
- I(r.$slots, "close-button", {}, () => [
166
+ M(r.$slots, "close-button", {}, () => [
167
167
  b[1] || (b[1] = s("button", { class: "btn" }, "Close", -1))
168
168
  ])
169
169
  ], 34)
@@ -184,10 +184,10 @@ const je = ["disabled"], Fe = {
184
184
  }, [
185
185
  t[0] || (t[0] = s("input", { type: "checkbox" }, null, -1)),
186
186
  s("div", Ye, [
187
- I(e.$slots, "on")
187
+ M(e.$slots, "on")
188
188
  ]),
189
189
  s("div", Je, [
190
- I(e.$slots, "off")
190
+ M(e.$slots, "off")
191
191
  ])
192
192
  ], 2));
193
193
  }
@@ -443,7 +443,7 @@ const lt = te("SunIcon", [
443
443
  return (o, l) => (n(), a("span", {
444
444
  class: D(["badge", e[v.size], t[v.color], { "badge-outline": v.outline }])
445
445
  }, [
446
- I(o.$slots, "default")
446
+ M(o.$slots, "default")
447
447
  ], 2));
448
448
  }
449
449
  }), pt = ["src", "alt"], vt = {
@@ -501,10 +501,10 @@ const lt = te("SunIcon", [
501
501
  ]),
502
502
  t.loading ? O("", !0) : (n(), a("div", vt, [
503
503
  t.title ? (n(), a("h2", ft, C(t.title), 1)) : O("", !0),
504
- I(t.$slots, "details"),
504
+ M(t.$slots, "details"),
505
505
  t.description ? (n(), a("p", mt, C(t.description), 1)) : O("", !0),
506
506
  s("div", gt, [
507
- I(t.$slots, "actions")
507
+ M(t.$slots, "actions")
508
508
  ])
509
509
  ])),
510
510
  t.loading ? (n(), a("div", ht, o[0] || (o[0] = [
@@ -568,20 +568,20 @@ const lt = te("SunIcon", [
568
568
  o.value ? r.value = o.value.children.length : r.value = 0;
569
569
  }, m = async (w) => {
570
570
  if (!o.value || e.slidesPerView <= 0 || l.value || (c(), r.value === 0)) return;
571
- const $ = (w % r.value + r.value) % r.value, M = o.value, z = e.sliderOrientation === "vertical" ? (M.offsetHeight - (e.slidesPerView - 1) * e.gap) / e.slidesPerView : (M.offsetWidth - (e.slidesPerView - 1) * e.gap) / e.slidesPerView;
571
+ const $ = (w % r.value + r.value) % r.value, I = o.value, z = e.sliderOrientation === "vertical" ? (I.offsetHeight - (e.slidesPerView - 1) * e.gap) / e.slidesPerView : (I.offsetWidth - (e.slidesPerView - 1) * e.gap) / e.slidesPerView;
572
572
  if (z <= 0) return;
573
- const j = z + e.gap, W = $ * j, Y = e.sliderOrientation === "vertical" ? M.scrollHeight - M.offsetHeight : M.scrollWidth - M.offsetWidth, d = Math.max(0, Math.min(W, Y + 0.5));
574
- l.value = !0, M.style.scrollBehavior = "auto";
575
- const y = e.sliderOrientation === "vertical" ? M.scrollTop : M.scrollLeft, S = d - y;
573
+ const j = z + e.gap, W = $ * j, Y = e.sliderOrientation === "vertical" ? I.scrollHeight - I.offsetHeight : I.scrollWidth - I.offsetWidth, p = Math.max(0, Math.min(W, Y + 0.5));
574
+ l.value = !0, I.style.scrollBehavior = "auto";
575
+ const y = e.sliderOrientation === "vertical" ? I.scrollTop : I.scrollLeft, S = p - y;
576
576
  if (Math.abs(S) < 1) {
577
577
  l.value = !1, t.value = $;
578
578
  return;
579
579
  }
580
- const T = performance.now(), p = (A) => {
580
+ const T = performance.now(), u = (A) => {
581
581
  const _ = A - T, V = Math.min(1, _ / e.slideDuration), K = V < 0.5 ? 4 * V * V * V : 1 - Math.pow(-2 * V + 2, 3) / 2, J = y + S * K;
582
- e.sliderOrientation === "vertical" ? M.scrollTop = J : M.scrollLeft = J, V < 1 ? requestAnimationFrame(p) : (e.sliderOrientation === "vertical" ? M.scrollTop = d : M.scrollLeft = d, t.value = $, l.value = !1);
582
+ e.sliderOrientation === "vertical" ? I.scrollTop = J : I.scrollLeft = J, V < 1 ? requestAnimationFrame(u) : (e.sliderOrientation === "vertical" ? I.scrollTop = p : I.scrollLeft = p, t.value = $, l.value = !1);
583
583
  };
584
- requestAnimationFrame(p);
584
+ requestAnimationFrame(u);
585
585
  }, k = () => {
586
586
  m(t.value + 1);
587
587
  }, U = () => {
@@ -590,9 +590,9 @@ const lt = te("SunIcon", [
590
590
  m(w);
591
591
  }, f = () => {
592
592
  if (!o.value || e.slidesPerView <= 0 || (c(), r.value === 0)) return;
593
- const w = o.value, $ = e.sliderOrientation === "vertical" ? w.offsetHeight : w.offsetWidth, M = e.slidesPerView > 1 ? (e.slidesPerView - 1) * e.gap : 0, z = ($ - M) / e.slidesPerView;
593
+ const w = o.value, $ = e.sliderOrientation === "vertical" ? w.offsetHeight : w.offsetWidth, I = e.slidesPerView > 1 ? (e.slidesPerView - 1) * e.gap : 0, z = ($ - I) / e.slidesPerView;
594
594
  if (z <= 0) return;
595
- const j = Math.max(0, r.value - e.slidesPerView), W = Math.min(Math.max(0, e.initialSlide), j), Y = W * (z + e.gap), d = e.sliderOrientation === "vertical" ? w.scrollHeight - w.offsetHeight : w.scrollWidth - w.offsetWidth, y = Math.max(0, Math.min(Y, d + 0.5));
595
+ const j = Math.max(0, r.value - e.slidesPerView), W = Math.min(Math.max(0, e.initialSlide), j), Y = W * (z + e.gap), p = e.sliderOrientation === "vertical" ? w.scrollHeight - w.offsetHeight : w.scrollWidth - w.offsetWidth, y = Math.max(0, Math.min(Y, p + 0.5));
596
596
  e.sliderOrientation === "vertical" ? w.scrollTo({ top: y, behavior: "auto" }) : w.scrollTo({ left: y, behavior: "auto" }), t.value = W;
597
597
  };
598
598
  return ee(() => {
@@ -605,8 +605,8 @@ const lt = te("SunIcon", [
605
605
  requestAnimationFrame(() => {
606
606
  requestAnimationFrame(() => {
607
607
  if (c(), r.value === 0) return;
608
- const w = Math.max(0, r.value - e.slidesPerView), $ = Math.min(t.value, w), M = e.slideDuration;
609
- e.slideDuration = 0, m($), e.slideDuration = M;
608
+ const w = Math.max(0, r.value - e.slidesPerView), $ = Math.min(t.value, w), I = e.slideDuration;
609
+ e.slideDuration = 0, m($), e.slideDuration = I;
610
610
  });
611
611
  });
612
612
  }), v({ scrollToSlide: m }), (w, $) => (n(), a("div", bt, [
@@ -616,7 +616,7 @@ const lt = te("SunIcon", [
616
616
  class: D(["rounded w-full h-full overflow-x-scroll scroll-smooth carousel", [{ "carousel-horizontal md:snap-none": i.sliderOrientation == "horizontal" }, { "carousel-vertical": i.sliderOrientation == "vertical" }]]),
617
617
  style: de({ gap: `${i.gap}px` })
618
618
  }, [
619
- I(w.$slots, "default", {}, void 0, !0)
619
+ M(w.$slots, "default", {}, void 0, !0)
620
620
  ], 6),
621
621
  i.showNavigationButtons ? (n(), a("div", yt, [
622
622
  s("div", {
@@ -624,7 +624,7 @@ const lt = te("SunIcon", [
624
624
  role: "button",
625
625
  "aria-label": "Previous Slide"
626
626
  }, [
627
- I(w.$slots, "prevButton", {}, () => [
627
+ M(w.$slots, "prevButton", {}, () => [
628
628
  $[0] || ($[0] = s("button", {
629
629
  class: "btn btn-circle",
630
630
  tabindex: "-1"
@@ -636,7 +636,7 @@ const lt = te("SunIcon", [
636
636
  role: "button",
637
637
  "aria-label": "Next Slide"
638
638
  }, [
639
- I(w.$slots, "nextButton", {}, () => [
639
+ M(w.$slots, "nextButton", {}, () => [
640
640
  $[1] || ($[1] = s("button", {
641
641
  class: "btn btn-circle",
642
642
  tabindex: "-1"
@@ -645,7 +645,7 @@ const lt = te("SunIcon", [
645
645
  ])
646
646
  ])) : O("", !0),
647
647
  i.showIndicators ? (n(), a("div", wt, [
648
- (n(!0), a(B, null, P(r.value, (M, z) => (n(), a("button", {
648
+ (n(!0), a(B, null, P(r.value, (I, z) => (n(), a("button", {
649
649
  key: `dot-${z}`,
650
650
  onClick: (j) => N(z),
651
651
  class: D(["btn btn-circle btn-xs", { "btn-active": z === t.value }]),
@@ -667,16 +667,16 @@ const lt = te("SunIcon", [
667
667
  class: "w-full h-full carousel-item",
668
668
  style: de(R(v))
669
669
  }, [
670
- I(e.$slots, "default", {}, void 0, !0)
670
+ M(e.$slots, "default", {}, void 0, !0)
671
671
  ], 4));
672
672
  }
673
673
  }), xn = /* @__PURE__ */ le(_t, [["__scopeId", "data-v-507384bc"]]), St = { class: "flex gap-4 bg-base-100 w-full tabs tabs-boxed" }, xt = ["onClick"], Ct = {
674
674
  key: 0,
675
675
  class: "inline-component-wrapper flex flex-grow justify-center items-center w-full h-full"
676
- }, Mt = {
676
+ }, It = {
677
677
  key: 1,
678
678
  class: "flex flex-col"
679
- }, It = { class: "text-sm" }, Dt = {
679
+ }, Mt = { class: "text-sm" }, Dt = {
680
680
  key: 0,
681
681
  class: "opacity-75 overflow-hidden text-xs truncate ..."
682
682
  }, Tt = {
@@ -710,55 +710,55 @@ const lt = te("SunIcon", [
710
710
  left: "0px",
711
711
  top: "0px",
712
712
  transform: "translateX(0%)"
713
- }), k = x(null), U = (d) => {
713
+ }), k = x(null), U = (p) => {
714
714
  var y;
715
- if (d.value === void 0 || d.value === null || d.value === "")
715
+ if (p.value === void 0 || p.value === null || p.value === "")
716
716
  return "";
717
- switch (d.type) {
717
+ switch (p.type) {
718
718
  case "datetime":
719
- if (typeof d.value == "string")
719
+ if (typeof p.value == "string")
720
720
  try {
721
- const S = new Date(d.value);
721
+ const S = new Date(p.value);
722
722
  if (!isNaN(S.getTime()))
723
723
  return S.toLocaleString();
724
724
  } catch {
725
725
  }
726
- else if (d.range && typeof d.value == "object" && d.value !== null && "start" in d.value && "end" in d.value)
726
+ else if (p.range && typeof p.value == "object" && p.value !== null && "start" in p.value && "end" in p.value)
727
727
  try {
728
- const S = new Date(d.value.start), T = new Date(d.value.end);
728
+ const S = new Date(p.value.start), T = new Date(p.value.end);
729
729
  if (!isNaN(S.getTime()) && !isNaN(T.getTime()))
730
730
  return `${S.toLocaleDateString()} - ${T.toLocaleDateString()}`;
731
731
  } catch {
732
732
  }
733
733
  break;
734
734
  case "custom-range":
735
- if (typeof d.value == "object" && d.value !== null && "start" in d.value && "end" in d.value)
736
- return `${d.value.start} - ${d.value.end}`;
735
+ if (typeof p.value == "object" && p.value !== null && "start" in p.value && "end" in p.value)
736
+ return `${p.value.start} - ${p.value.end}`;
737
737
  break;
738
738
  case "custom-number":
739
- if (typeof d.value == "number")
740
- return d.value.toString();
739
+ if (typeof p.value == "number")
740
+ return p.value.toString();
741
741
  break;
742
742
  case "standard-select":
743
743
  case "custom-select":
744
- if ((y = d.props) != null && y.options && Array.isArray(d.props.options)) {
745
- const S = d.props.options.find(
746
- (T) => T.value === d.value
744
+ if ((y = p.props) != null && y.options && Array.isArray(p.props.options)) {
745
+ const S = p.props.options.find(
746
+ (T) => T.value === p.value
747
747
  );
748
748
  if (S)
749
749
  return S.text;
750
750
  }
751
- return String(d.value);
751
+ return String(p.value);
752
752
  case "custom-text":
753
- if (typeof d.value == "string")
754
- return d.value;
753
+ if (typeof p.value == "string")
754
+ return p.value;
755
755
  break;
756
756
  }
757
- return String(d.value);
757
+ return String(p.value);
758
758
  };
759
- function N(d) {
760
- var p, A;
761
- const y = (p = l.value) == null ? void 0 : p.name;
759
+ function N(p) {
760
+ var u, A;
761
+ const y = (u = l.value) == null ? void 0 : u.name;
762
762
  if (!y) {
763
763
  console.warn("componentValueUpdated called but no active tab.");
764
764
  return;
@@ -768,45 +768,45 @@ const lt = te("SunIcon", [
768
768
  )) == null ? void 0 : A.tabs, T = S == null ? void 0 : S.find(
769
769
  (_) => _.name === y
770
770
  );
771
- T ? (T.value = d, t("update:search-data", {
771
+ T ? (T.value = p, t("update:search-data", {
772
772
  tab: T.name,
773
- data: d
773
+ data: p
774
774
  })) : console.error(
775
775
  `Tab with name "${y}" not found in current category.`
776
776
  );
777
777
  }
778
- function f(d) {
779
- N(d);
778
+ function f(p) {
779
+ N(p);
780
780
  }
781
781
  function w() {
782
782
  t("search");
783
783
  }
784
- async function $(d) {
784
+ async function $(p) {
785
785
  var T;
786
- const y = document.getElementById(`advancedSearchMobile-${o}`), S = y && y.contains(d.target);
787
- ((T = l.value) == null ? void 0 : T.displayMode) === "popup" && k.value && !k.value.contains(d.target) && !S && (await pe(), l.value = null);
786
+ const y = document.getElementById(`advancedSearchMobile-${o}`), S = y && y.contains(p.target);
787
+ ((T = l.value) == null ? void 0 : T.displayMode) === "popup" && k.value && !k.value.contains(p.target) && !S && (await pe(), l.value = null);
788
788
  }
789
- async function M() {
789
+ async function I() {
790
790
  if (typeof window < "u" && window.innerWidth <= 768) {
791
- const d = document.getElementById(
791
+ const p = document.getElementById(
792
792
  `advancedSearchMobile-${o}`
793
793
  );
794
- d ? (l.value = null, d.showModal()) : console.warn(
794
+ p ? (l.value = null, p.showModal()) : console.warn(
795
795
  `Mobile modal element not found. Ensure it exists with id="advancedSearchMobile-${o}".`
796
796
  );
797
797
  }
798
798
  }
799
- async function z(d) {
800
- var S, T, p;
799
+ async function z(p) {
800
+ var S, T, u;
801
801
  if (typeof window < "u" && window.innerWidth <= 768) {
802
- M();
802
+ I();
803
803
  return;
804
804
  }
805
- const y = d.displayMode ?? "popup";
806
- if (((S = l.value) == null ? void 0 : S.name) === d.name && ((T = l.value) == null ? void 0 : T.displayMode) === y)
805
+ const y = p.displayMode ?? "popup";
806
+ if (((S = l.value) == null ? void 0 : S.name) === p.name && ((T = l.value) == null ? void 0 : T.displayMode) === y)
807
807
  l.value = null;
808
- else if (l.value = { ...d, displayMode: y }, await pe(), ((p = l.value) == null ? void 0 : p.displayMode) === "popup") {
809
- const A = c.value[d.name];
808
+ else if (l.value = { ...p, displayMode: y }, await pe(), ((u = l.value) == null ? void 0 : u.displayMode) === "popup") {
809
+ const A = c.value[p.name];
810
810
  if (A && k.value) {
811
811
  const _ = A.getBoundingClientRect(), V = k.value.getBoundingClientRect(), K = _.bottom - V.top, J = _.left + _.width / 2 - V.left;
812
812
  m.value = {
@@ -819,12 +819,12 @@ const lt = te("SunIcon", [
819
819
  } else
820
820
  console.error(
821
821
  "Tab element or search container not found for positioning:",
822
- d.name
822
+ p.name
823
823
  );
824
824
  }
825
825
  }
826
- const j = (d) => {
827
- const y = d.relatedTarget;
826
+ const j = (p) => {
827
+ const y = p.relatedTarget;
828
828
  setTimeout(() => {
829
829
  var S;
830
830
  ((S = l.value) == null ? void 0 : S.displayMode) === "inline" && k.value && (!y || !k.value.contains(y)) ? (console.log("Blur detected outside container, closing inline view."), l.value = null) : console.log(
@@ -834,27 +834,27 @@ const lt = te("SunIcon", [
834
834
  }, W = () => {
835
835
  console.log("Enter key pressed on inline component, closing inline view."), l.value = null;
836
836
  };
837
- H(r, (d) => {
837
+ H(r, (p) => {
838
838
  var y;
839
839
  console.log(
840
840
  "advanced-search: inlineComponentRef changed. New Value:",
841
- d
842
- ), console.log("advanced-search: activeTab.value:", l.value), d && ((y = l.value) == null ? void 0 : y.displayMode) === "inline" ? (console.log(
841
+ p
842
+ ), console.log("advanced-search: activeTab.value:", l.value), p && ((y = l.value) == null ? void 0 : y.displayMode) === "inline" ? (console.log(
843
843
  "advanced-search: Inline component ref is available and active tab is inline. Attempting to focus child input..."
844
844
  ), pe(() => {
845
845
  console.log(
846
846
  "advanced-search: Inside nextTick. Attempting to call child's focus method..."
847
- ), console.log("advanced-search: Type of newValue:", typeof d), console.log(
847
+ ), console.log("advanced-search: Type of newValue:", typeof p), console.log(
848
848
  "advanced-search: Does newValue have focusInput?",
849
- typeof d.focusInput == "function"
850
- ), d && typeof d.focusInput == "function" ? (console.log(
849
+ typeof p.focusInput == "function"
850
+ ), p && typeof p.focusInput == "function" ? (console.log(
851
851
  "advanced-search: Calling exposed focusInput() method on child instance."
852
- ), d.focusInput()) : console.warn(
852
+ ), p.focusInput()) : console.warn(
853
853
  'advanced-search: Child inline component instance does not expose a "focusInput" method or is not ready.',
854
- d
854
+ p
855
855
  );
856
856
  })) : console.log(
857
- d ? "advanced-search: inlineComponentRef available, but active tab is not inline." : "advanced-search: inlineComponentRef is now null (component likely unmounted)."
857
+ p ? "advanced-search: inlineComponentRef available, but active tab is not inline." : "advanced-search: inlineComponentRef is now null (component likely unmounted)."
858
858
  );
859
859
  }), ee(() => {
860
860
  document.addEventListener("click", $), window.addEventListener("resize", Y);
@@ -862,19 +862,19 @@ const lt = te("SunIcon", [
862
862
  document.removeEventListener("click", $), window.removeEventListener("resize", Y);
863
863
  });
864
864
  const Y = () => {
865
- var d, y;
865
+ var p, y;
866
866
  if (typeof window < "u") {
867
867
  const S = window.innerWidth <= 768, T = l.value !== null && (l.value.displayMode === "popup" || l.value.displayMode === "inline") && window.innerWidth > 768;
868
- !S && (((d = l.value) == null ? void 0 : d.displayMode) === "popup" || ((y = l.value) == null ? void 0 : y.displayMode) === "inline") && window.innerWidth <= 768 && (console.log("Resizing to mobile, closing active tab."), l.value = null), S && !T && l.value !== null && (console.log(
868
+ !S && (((p = l.value) == null ? void 0 : p.displayMode) === "popup" || ((y = l.value) == null ? void 0 : y.displayMode) === "inline") && window.innerWidth <= 768 && (console.log("Resizing to mobile, closing active tab."), l.value = null), S && !T && l.value !== null && (console.log(
869
869
  "Resizing to desktop from potential mobile active state, closing active tab."
870
870
  ), l.value = null);
871
- const p = document.getElementById(
871
+ const u = document.getElementById(
872
872
  `advancedSearchMobile-${o}`
873
873
  );
874
- p != null && p.open && !S && (console.log("Modal is open on desktop, closing modal and active tab."), p.close(), l.value = null);
874
+ u != null && u.open && !S && (console.log("Modal is open on desktop, closing modal and active tab."), u.close(), l.value = null);
875
875
  }
876
876
  };
877
- return (d, y) => {
877
+ return (p, y) => {
878
878
  var S, T;
879
879
  return n(), a(B, null, [
880
880
  s("div", {
@@ -884,25 +884,25 @@ const lt = te("SunIcon", [
884
884
  }, [
885
885
  s("div", {
886
886
  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",
887
- onClick: M
887
+ onClick: I
888
888
  }, [
889
889
  s("div", St, [
890
890
  (n(!0), a(B, null, P(((S = e.searchOptions.find(
891
- (p) => p.category === e.currentCategory
892
- )) == null ? void 0 : S.tabs) || [], (p, A) => {
891
+ (u) => u.category === e.currentCategory
892
+ )) == null ? void 0 : S.tabs) || [], (u, A) => {
893
893
  var _, V, K, J, re;
894
894
  return n(), a("button", {
895
- key: `${p.name}-${A}`,
896
- onClick: Q((X) => z(p), ["stop"]),
895
+ key: `${u.name}-${A}`,
896
+ onClick: Q((X) => z(u), ["stop"]),
897
897
  class: D([{
898
- "tab-active": ((_ = l.value) == null ? void 0 : _.name) === p.name,
899
- "tab-active-inline": ((V = l.value) == null ? void 0 : V.name) === p.name && ((K = l.value) == null ? void 0 : K.displayMode) === "inline"
898
+ "tab-active": ((_ = l.value) == null ? void 0 : _.name) === u.name,
899
+ "tab-active-inline": ((V = l.value) == null ? void 0 : V.name) === u.name && ((K = l.value) == null ? void 0 : K.displayMode) === "inline"
900
900
  // Add new class
901
901
  }, "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-[1px] after:h-10 overflow-x-hidden text-start md:after:content-[''] after:content-none last-of-type:after:content-none"]),
902
902
  ref_for: !0,
903
- ref: (X) => c.value[p.name] = X
903
+ ref: (X) => c.value[u.name] = X
904
904
  }, [
905
- ((J = l.value) == null ? void 0 : J.name) === p.name && ((re = l.value) == null ? void 0 : re.displayMode) === "inline" ? (n(), a("div", Ct, [
905
+ ((J = l.value) == null ? void 0 : J.name) === u.name && ((re = l.value) == null ? void 0 : re.displayMode) === "inline" ? (n(), a("div", Ct, [
906
906
  (n(), ae(ve(b[l.value.type]), fe({ ref_for: !0 }, l.value.props || {}, {
907
907
  modelValue: l.value.value,
908
908
  onUpdated: y[0] || (y[0] = (X) => f(X)),
@@ -913,9 +913,9 @@ const lt = te("SunIcon", [
913
913
  ref_key: "inlineComponentRef",
914
914
  ref: r
915
915
  }), null, 16, ["modelValue", "onKeydown"]))
916
- ])) : (n(), a("div", Mt, [
917
- s("p", It, C(p.name), 1),
918
- p.value !== void 0 && p.value !== null && p.value !== "" ? (n(), a("p", Dt, C(U(p)), 1)) : (n(), a("p", Tt, C(p.description), 1))
916
+ ])) : (n(), a("div", It, [
917
+ s("p", Mt, C(u.name), 1),
918
+ u.value !== void 0 && u.value !== null && u.value !== "" ? (n(), a("p", Dt, C(U(u)), 1)) : (n(), a("p", Tt, C(u.description), 1))
919
919
  ]))
920
920
  ], 10, xt);
921
921
  }), 128))
@@ -927,8 +927,8 @@ const lt = te("SunIcon", [
927
927
  }, [
928
928
  (n(), ae(ve(b[l.value.type]), fe(l.value.props || {}, {
929
929
  modelValue: l.value.value,
930
- onUpdated: y[2] || (y[2] = (p) => N(p)),
931
- "onUpdate:modelValue": y[3] || (y[3] = (p) => N(p))
930
+ onUpdated: y[2] || (y[2] = (u) => N(u)),
931
+ "onUpdate:modelValue": y[3] || (y[3] = (u) => N(u))
932
932
  }), null, 16, ["modelValue"]))
933
933
  ], 4)) : O("", !0),
934
934
  s("button", {
@@ -961,14 +961,14 @@ const lt = te("SunIcon", [
961
961
  class: "modal"
962
962
  }, [
963
963
  s("div", Ot, [
964
- I(d.$slots, "additionalForMobile", {}, () => [
965
- s("h3", zt, C(d.currentCategory), 1)
964
+ M(p.$slots, "additionalForMobile", {}, () => [
965
+ s("h3", zt, C(p.currentCategory), 1)
966
966
  ], !0),
967
967
  (n(!0), a(B, null, P(((T = e.searchOptions.find(
968
- (p) => p.category === e.currentCategory
969
- )) == null ? void 0 : T.tabs) || [], (p, A) => (n(), a("div", {
968
+ (u) => u.category === e.currentCategory
969
+ )) == null ? void 0 : T.tabs) || [], (u, A) => (n(), a("div", {
970
970
  class: "collapse bg-base-200 my-4",
971
- key: p.name
971
+ key: u.name
972
972
  }, [
973
973
  s("input", {
974
974
  type: "radio",
@@ -976,13 +976,13 @@ const lt = te("SunIcon", [
976
976
  checked: A === 0
977
977
  }, null, 8, At),
978
978
  s("div", Pt, [
979
- s("div", null, C(p.name), 1),
980
- p.value !== void 0 && p.value !== null && p.value !== "" ? (n(), a("div", Et, C(U(p)), 1)) : (n(), a("div", Lt, C(p.description), 1))
979
+ s("div", null, C(u.name), 1),
980
+ u.value !== void 0 && u.value !== null && u.value !== "" ? (n(), a("div", Et, C(U(u)), 1)) : (n(), a("div", Lt, C(u.description), 1))
981
981
  ]),
982
982
  s("div", Ut, [
983
983
  y[7] || (y[7] = s("br", null, null, -1)),
984
- (n(), ae(ve(b[p.type]), fe({ ref_for: !0 }, p.props || {}, {
985
- modelValue: p.value,
984
+ (n(), ae(ve(b[u.type]), fe({ ref_for: !0 }, u.props || {}, {
985
+ modelValue: u.value,
986
986
  onUpdated: y[5] || (y[5] = (_) => N(_)),
987
987
  "onUpdate:modelValue": y[6] || (y[6] = (_) => N(_))
988
988
  }), null, 16, ["modelValue"]))
@@ -1076,19 +1076,19 @@ const lt = te("SunIcon", [
1076
1076
  () => e.mode === "time" || e.mode === "datetime"
1077
1077
  );
1078
1078
  E(
1079
- () => new Date(c.value, M.value)
1079
+ () => new Date(c.value, I.value)
1080
1080
  );
1081
- const M = E(() => T.indexOf(b.value)), z = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], j = E(
1082
- () => new Date(c.value, M.value).getDay()
1081
+ const I = E(() => T.indexOf(b.value)), z = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], j = E(
1082
+ () => new Date(c.value, I.value).getDay()
1083
1083
  ), W = E(() => {
1084
- const g = new Date(c.value, M.value + 1, 0).getDate();
1084
+ const g = new Date(c.value, I.value + 1, 0).getDate();
1085
1085
  return Array.from(
1086
1086
  { length: g },
1087
- (h, u) => new Date(c.value, M.value, u + 1)
1087
+ (h, d) => new Date(c.value, I.value, d + 1)
1088
1088
  );
1089
1089
  }), Y = E(
1090
1090
  () => Array.from({ length: j.value }, (g, h) => h)
1091
- ), d = Array.from({ length: 24 }, (g, h) => h), y = Array.from({ length: 60 }, (g, h) => h), S = E(
1091
+ ), p = Array.from({ length: 24 }, (g, h) => h), y = Array.from({ length: 60 }, (g, h) => h), S = E(
1092
1092
  () => typeof navigator < "u" && /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
1093
1093
  navigator.userAgent
1094
1094
  )
@@ -1105,9 +1105,9 @@ const lt = te("SunIcon", [
1105
1105
  "October",
1106
1106
  "November",
1107
1107
  "December"
1108
- ], p = E(() => {
1108
+ ], u = E(() => {
1109
1109
  const g = (/* @__PURE__ */ new Date()).getFullYear();
1110
- return Array.from({ length: 100 }, (h, u) => g - 50 + u);
1110
+ return Array.from({ length: 100 }, (h, d) => g - 50 + d);
1111
1111
  }), A = E(() => {
1112
1112
  if (!w.value || !l.value) return "";
1113
1113
  if (e.range && l.value.start && l.value.end) {
@@ -1119,8 +1119,8 @@ const lt = te("SunIcon", [
1119
1119
  if (!$.value) return "";
1120
1120
  const g = (h) => {
1121
1121
  var ie, ne, ye;
1122
- const u = ((ie = m.value) == null ? void 0 : ie[h]) ?? m.value, G = ((ne = k.value) == null ? void 0 : ne[h]) ?? k.value;
1123
- return S.value ? ((ye = r.value) == null ? void 0 : ye[h]) ?? r.value : `${u.toString().padStart(2, "0")}:${G.toString().padStart(2, "0")}`;
1122
+ const d = ((ie = m.value) == null ? void 0 : ie[h]) ?? m.value, G = ((ne = k.value) == null ? void 0 : ne[h]) ?? k.value;
1123
+ return S.value ? ((ye = r.value) == null ? void 0 : ye[h]) ?? r.value : `${d.toString().padStart(2, "0")}:${G.toString().padStart(2, "0")}`;
1124
1124
  };
1125
1125
  return e.range ? `${g("start")} - ${g("end")}` : g();
1126
1126
  }), J = E(() => {
@@ -1132,29 +1132,29 @@ const lt = te("SunIcon", [
1132
1132
  l.value = e.range ? { start: null, end: null } : null, r.value = e.range ? { start: null, end: null } : null, F();
1133
1133
  }, Ce = (g) => {
1134
1134
  e.range ? l.value.start && l.value.end ? l.value = { start: g, end: null } : l.value.start ? l.value.end = g : l.value.start = g : l.value = g, F();
1135
- }, Me = (g) => (g = _(g), e.range ? l.value.start && V(l.value.start) && g.getTime() === l.value.start.getTime() || l.value.end && V(l.value.end) && g.getTime() === l.value.end.getTime() : V(l.value) && g.getTime() === l.value.getTime()), Ie = (g) => {
1135
+ }, Ie = (g) => (g = _(g), e.range ? l.value.start && V(l.value.start) && g.getTime() === l.value.start.getTime() || l.value.end && V(l.value.end) && g.getTime() === l.value.end.getTime() : V(l.value) && g.getTime() === l.value.getTime()), Me = (g) => {
1136
1136
  g = _(g);
1137
1137
  const h = /* @__PURE__ */ new Date();
1138
1138
  return g.getDate() === h.getDate() && g.getMonth() === h.getMonth() && g.getFullYear() === h.getFullYear();
1139
1139
  }, De = (g) => (g = _(g), e.range && V(l.value.start) && g.getTime() === l.value.start.getTime()), Te = (g) => (g = _(g), e.range && V(l.value.end) && g.getTime() === l.value.end.getTime()), Ve = (g) => {
1140
1140
  if (g = _(g), e.range && V(l.value.start) && V(l.value.end)) {
1141
- const h = l.value.start.getTime(), u = l.value.end.getTime(), G = g.getTime();
1142
- return G > h && G < u;
1141
+ const h = l.value.start.getTime(), d = l.value.end.getTime(), G = g.getTime();
1142
+ return G > h && G < d;
1143
1143
  }
1144
1144
  return !1;
1145
1145
  }, Be = () => {
1146
- let g = M.value - 1;
1146
+ let g = I.value - 1;
1147
1147
  g < 0 && (g = 11, c.value--), b.value = T[g], F();
1148
1148
  }, Oe = () => {
1149
- let g = M.value + 1;
1149
+ let g = I.value + 1;
1150
1150
  g > 11 && (g = 0, c.value++), b.value = T[g], F();
1151
1151
  }, be = (g) => {
1152
1152
  U.value && !U.value.contains(g.target) && o.value == !0 && X();
1153
1153
  }, F = () => {
1154
1154
  let g = {};
1155
- const h = (u, G, ie) => {
1156
- u instanceof Date && !isNaN(u) || (u = /* @__PURE__ */ new Date());
1157
- const ne = new Date(u);
1155
+ const h = (d, G, ie) => {
1156
+ d instanceof Date && !isNaN(d) || (d = /* @__PURE__ */ new Date());
1157
+ const ne = new Date(d);
1158
1158
  return ne.setUTCHours(G, ie, 0, 0), ne.toISOString();
1159
1159
  };
1160
1160
  e.range ? (g.from = h(
@@ -1183,9 +1183,9 @@ const lt = te("SunIcon", [
1183
1183
  }, [
1184
1184
  s("div", {
1185
1185
  class: "flex items-center gap-2 cursor-pointer",
1186
- onClick: h[0] || (h[0] = (u) => e.disabled ? null : re())
1186
+ onClick: h[0] || (h[0] = (d) => e.disabled ? null : re())
1187
1187
  }, [
1188
- i.popup ? I(g.$slots, "default", { key: 0 }, () => [
1188
+ i.popup ? M(g.$slots, "default", { key: 0 }, () => [
1189
1189
  s("input", {
1190
1190
  type: "text",
1191
1191
  class: "input-bordered w-full cursor-pointer input",
@@ -1231,25 +1231,25 @@ const lt = te("SunIcon", [
1231
1231
  ]), 8, Ht),
1232
1232
  q(s("select", {
1233
1233
  class: "border-none w-fit select",
1234
- "onUpdate:modelValue": h[1] || (h[1] = (u) => b.value = u),
1234
+ "onUpdate:modelValue": h[1] || (h[1] = (d) => b.value = d),
1235
1235
  onChange: F
1236
1236
  }, [
1237
- (n(), a(B, null, P(T, (u, G) => s("option", {
1237
+ (n(), a(B, null, P(T, (d, G) => s("option", {
1238
1238
  key: G,
1239
- value: u
1240
- }, C(u), 9, Wt)), 64))
1239
+ value: d
1240
+ }, C(d), 9, Wt)), 64))
1241
1241
  ], 544), [
1242
1242
  [Z, b.value]
1243
1243
  ]),
1244
1244
  q(s("select", {
1245
1245
  class: "border-none w-24 select",
1246
- "onUpdate:modelValue": h[2] || (h[2] = (u) => c.value = u),
1246
+ "onUpdate:modelValue": h[2] || (h[2] = (d) => c.value = d),
1247
1247
  onChange: F
1248
1248
  }, [
1249
- (n(!0), a(B, null, P(p.value, (u) => (n(), a("option", {
1250
- key: u,
1251
- value: u
1252
- }, C(u), 9, Kt))), 128))
1249
+ (n(!0), a(B, null, P(u.value, (d) => (n(), a("option", {
1250
+ key: d,
1251
+ value: d
1252
+ }, C(d), 9, Kt))), 128))
1253
1253
  ], 544), [
1254
1254
  [Z, c.value]
1255
1255
  ]),
@@ -1274,25 +1274,25 @@ const lt = te("SunIcon", [
1274
1274
  ]))
1275
1275
  ])) : O("", !0),
1276
1276
  w.value ? (n(), a("div", Yt, [
1277
- (n(), a(B, null, P(z, (u) => s("div", {
1278
- key: u,
1277
+ (n(), a(B, null, P(z, (d) => s("div", {
1278
+ key: d,
1279
1279
  class: "text-center"
1280
- }, C(u), 1)), 64)),
1281
- (n(!0), a(B, null, P(Y.value, (u) => (n(), a("div", {
1282
- key: u,
1280
+ }, C(d), 1)), 64)),
1281
+ (n(!0), a(B, null, P(Y.value, (d) => (n(), a("div", {
1282
+ key: d,
1283
1283
  class: "text-center"
1284
1284
  }))), 128)),
1285
- (n(!0), a(B, null, P(W.value, (u) => (n(), a("div", {
1286
- key: u,
1285
+ (n(!0), a(B, null, P(W.value, (d) => (n(), a("div", {
1286
+ key: d,
1287
1287
  class: D(["hover:bg-primary-10 py-1 rounded-full text-center cursor-pointer", {
1288
- "bg-primary text-primary-content": Me(u),
1289
- today: Ie(u),
1290
- "range-start bg-primary text-primary-content": De(u),
1291
- "range-end bg-primary text-primary-content": Te(u),
1292
- "in-range bg-primary/20 hover:bg-primary/10": Ve(u)
1288
+ "bg-primary text-primary-content": Ie(d),
1289
+ today: Me(d),
1290
+ "range-start bg-primary text-primary-content": De(d),
1291
+ "range-end bg-primary text-primary-content": Te(d),
1292
+ "in-range bg-primary/20 hover:bg-primary/10": Ve(d)
1293
1293
  }]),
1294
- onClick: (G) => Ce(u)
1295
- }, C(u.getDate()), 11, Jt))), 128))
1294
+ onClick: (G) => Ce(d)
1295
+ }, C(d.getDate()), 11, Jt))), 128))
1296
1296
  ])) : O("", !0),
1297
1297
  $.value ? (n(), a("div", Xt, [
1298
1298
  e.range ? O("", !0) : (n(), a("h3", Gt, "Select Time")),
@@ -1303,20 +1303,20 @@ const lt = te("SunIcon", [
1303
1303
  key: 0,
1304
1304
  type: "time",
1305
1305
  class: "input-bordered w-full input",
1306
- "onUpdate:modelValue": h[6] || (h[6] = (u) => r.value.start = u),
1306
+ "onUpdate:modelValue": h[6] || (h[6] = (d) => r.value.start = d),
1307
1307
  onChange: F
1308
1308
  }, null, 544)), [
1309
1309
  [oe, r.value.start]
1310
1310
  ]) : (n(), a("div", nl, [
1311
1311
  q(s("select", {
1312
1312
  class: "w-full select-bordered select",
1313
- "onUpdate:modelValue": h[7] || (h[7] = (u) => m.value.start = u),
1313
+ "onUpdate:modelValue": h[7] || (h[7] = (d) => m.value.start = d),
1314
1314
  onChange: F
1315
1315
  }, [
1316
- (n(!0), a(B, null, P(R(d), (u) => (n(), a("option", {
1317
- key: u,
1318
- value: u
1319
- }, C(u.toString().padStart(2, "0")), 9, al))), 128))
1316
+ (n(!0), a(B, null, P(R(p), (d) => (n(), a("option", {
1317
+ key: d,
1318
+ value: d
1319
+ }, C(d.toString().padStart(2, "0")), 9, al))), 128))
1320
1320
  ], 544), [
1321
1321
  [
1322
1322
  Z,
@@ -1327,13 +1327,13 @@ const lt = te("SunIcon", [
1327
1327
  ]),
1328
1328
  q(s("select", {
1329
1329
  class: "w-full select-bordered select",
1330
- "onUpdate:modelValue": h[8] || (h[8] = (u) => k.value.start = u),
1330
+ "onUpdate:modelValue": h[8] || (h[8] = (d) => k.value.start = d),
1331
1331
  onChange: F
1332
1332
  }, [
1333
- (n(!0), a(B, null, P(R(y), (u) => (n(), a("option", {
1334
- key: u,
1335
- value: u
1336
- }, C(u.toString().padStart(2, "0")), 9, ol))), 128))
1333
+ (n(!0), a(B, null, P(R(y), (d) => (n(), a("option", {
1334
+ key: d,
1335
+ value: d
1336
+ }, C(d.toString().padStart(2, "0")), 9, ol))), 128))
1337
1337
  ], 544), [
1338
1338
  [
1339
1339
  Z,
@@ -1350,20 +1350,20 @@ const lt = te("SunIcon", [
1350
1350
  key: 0,
1351
1351
  type: "time",
1352
1352
  class: "input-bordered w-full input",
1353
- "onUpdate:modelValue": h[9] || (h[9] = (u) => r.value.end = u),
1353
+ "onUpdate:modelValue": h[9] || (h[9] = (d) => r.value.end = d),
1354
1354
  onChange: F
1355
1355
  }, null, 544)), [
1356
1356
  [oe, r.value.end]
1357
1357
  ]) : (n(), a("div", sl, [
1358
1358
  q(s("select", {
1359
1359
  class: "w-full select-bordered select",
1360
- "onUpdate:modelValue": h[10] || (h[10] = (u) => m.value.end = u),
1360
+ "onUpdate:modelValue": h[10] || (h[10] = (d) => m.value.end = d),
1361
1361
  onChange: F
1362
1362
  }, [
1363
- (n(!0), a(B, null, P(R(d), (u) => (n(), a("option", {
1364
- key: u,
1365
- value: u
1366
- }, C(u.toString().padStart(2, "0")), 9, rl))), 128))
1363
+ (n(!0), a(B, null, P(R(p), (d) => (n(), a("option", {
1364
+ key: d,
1365
+ value: d
1366
+ }, C(d.toString().padStart(2, "0")), 9, rl))), 128))
1367
1367
  ], 544), [
1368
1368
  [
1369
1369
  Z,
@@ -1374,13 +1374,13 @@ const lt = te("SunIcon", [
1374
1374
  ]),
1375
1375
  q(s("select", {
1376
1376
  class: "w-full select-bordered select",
1377
- "onUpdate:modelValue": h[11] || (h[11] = (u) => k.value.end = u),
1377
+ "onUpdate:modelValue": h[11] || (h[11] = (d) => k.value.end = d),
1378
1378
  onChange: F
1379
1379
  }, [
1380
- (n(!0), a(B, null, P(R(y), (u) => (n(), a("option", {
1381
- key: u,
1382
- value: u
1383
- }, C(u.toString().padStart(2, "0")), 9, il))), 128))
1380
+ (n(!0), a(B, null, P(R(y), (d) => (n(), a("option", {
1381
+ key: d,
1382
+ value: d
1383
+ }, C(d.toString().padStart(2, "0")), 9, il))), 128))
1384
1384
  ], 544), [
1385
1385
  [
1386
1386
  Z,
@@ -1396,20 +1396,20 @@ const lt = te("SunIcon", [
1396
1396
  key: 0,
1397
1397
  type: "time",
1398
1398
  class: "input-bordered w-full input",
1399
- "onUpdate:modelValue": h[3] || (h[3] = (u) => r.value = u),
1399
+ "onUpdate:modelValue": h[3] || (h[3] = (d) => r.value = d),
1400
1400
  onChange: F
1401
1401
  }, null, 544)), [
1402
1402
  [oe, r.value]
1403
1403
  ]) : (n(), a("div", Qt, [
1404
1404
  q(s("select", {
1405
1405
  class: "w-full select-bordered select",
1406
- "onUpdate:modelValue": h[4] || (h[4] = (u) => m.value = u),
1406
+ "onUpdate:modelValue": h[4] || (h[4] = (d) => m.value = d),
1407
1407
  onChange: F
1408
1408
  }, [
1409
- (n(!0), a(B, null, P(R(d), (u) => (n(), a("option", {
1410
- key: u,
1411
- value: u
1412
- }, C(u.toString().padStart(2, "0")), 9, el))), 128))
1409
+ (n(!0), a(B, null, P(R(p), (d) => (n(), a("option", {
1410
+ key: d,
1411
+ value: d
1412
+ }, C(d.toString().padStart(2, "0")), 9, el))), 128))
1413
1413
  ], 544), [
1414
1414
  [
1415
1415
  Z,
@@ -1420,13 +1420,13 @@ const lt = te("SunIcon", [
1420
1420
  ]),
1421
1421
  q(s("select", {
1422
1422
  class: "w-full select-bordered select",
1423
- "onUpdate:modelValue": h[5] || (h[5] = (u) => k.value = u),
1423
+ "onUpdate:modelValue": h[5] || (h[5] = (d) => k.value = d),
1424
1424
  onChange: F
1425
1425
  }, [
1426
- (n(!0), a(B, null, P(R(y), (u) => (n(), a("option", {
1427
- key: u,
1428
- value: u
1429
- }, C(u.toString().padStart(2, "0")), 9, tl))), 128))
1426
+ (n(!0), a(B, null, P(R(y), (d) => (n(), a("option", {
1427
+ key: d,
1428
+ value: d
1429
+ }, C(d.toString().padStart(2, "0")), 9, tl))), 128))
1430
1430
  ], 544), [
1431
1431
  [
1432
1432
  Z,
@@ -1455,7 +1455,7 @@ const lt = te("SunIcon", [
1455
1455
  }, cl = /* @__PURE__ */ le(dl, [["__scopeId", "data-v-bab9b3c1"]]), pl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1456
1456
  __proto__: null,
1457
1457
  default: cl
1458
- }, Symbol.toStringTag, { value: "Module" })), vl = ["value", "checked", "onChange", "disabled"], Mn = /* @__PURE__ */ L({
1458
+ }, Symbol.toStringTag, { value: "Module" })), vl = ["value", "checked", "onChange", "disabled"], In = /* @__PURE__ */ L({
1459
1459
  __name: "rating",
1460
1460
  props: {
1461
1461
  initialRating: { default: 0 },
@@ -1521,7 +1521,7 @@ const lt = te("SunIcon", [
1521
1521
  }, null, 46, vl))), 128))
1522
1522
  ], 2));
1523
1523
  }
1524
- }), fl = { class: "badge" }, ml = ["onClick"], gl = { class: "opacity-75" }, hl = ["placeholder"], In = /* @__PURE__ */ L({
1524
+ }), fl = { class: "badge" }, ml = ["onClick"], gl = { class: "opacity-75" }, hl = ["placeholder"], Mn = /* @__PURE__ */ L({
1525
1525
  __name: "taginput",
1526
1526
  props: {
1527
1527
  modelValue: {},
@@ -1546,20 +1546,20 @@ const lt = te("SunIcon", [
1546
1546
  }), (f, w) => (n(), a("div", {
1547
1547
  class: D(["flex flex-wrap gap-2 bg-base-100 shadow px-4 py-6 border border-base-content/20 rounded", f.$props.class])
1548
1548
  }, [
1549
- (n(!0), a(B, null, P(o.value, ($) => I(f.$slots, "tag", {
1549
+ (n(!0), a(B, null, P(o.value, ($) => M(f.$slots, "tag", {
1550
1550
  key: $,
1551
1551
  tag: $
1552
1552
  }, () => [
1553
1553
  s("div", fl, [
1554
1554
  s("button", {
1555
1555
  class: "!px-1 !py-0 h-fit font-bold cursor-pointer",
1556
- onClick: (M) => k($),
1556
+ onClick: (I) => k($),
1557
1557
  "aria-label": "Remove tag"
1558
1558
  }, "X", 8, ml),
1559
1559
  s("span", gl, C($), 1)
1560
1560
  ])
1561
1561
  ])), 128)),
1562
- I(f.$slots, "input", { showInput: c.value }, () => [
1562
+ M(f.$slots, "input", { showInput: c.value }, () => [
1563
1563
  c.value ? q((n(), a("input", {
1564
1564
  key: 0,
1565
1565
  ref_key: "inputRef",
@@ -1628,7 +1628,7 @@ const lt = te("SunIcon", [
1628
1628
  }), Sl = {
1629
1629
  key: 0,
1630
1630
  class: "label"
1631
- }, xl = { class: "label-text" }, Cl = ["onKeydown", "aria-expanded", "aria-activedescendant"], Ml = ["placeholder", "disabled"], Il = {
1631
+ }, xl = { class: "label-text" }, Cl = ["onKeydown", "aria-expanded", "aria-activedescendant"], Il = ["placeholder", "disabled"], Ml = {
1632
1632
  class: "top-full z-10 absolute bg-base-100 shadow-lg mt-1 rounded-md w-full dropdown-content",
1633
1633
  role: "listbox"
1634
1634
  }, Dl = { class: "flex-nowrap p-0 w-[inherit] max-h-60 overflow-y-auto menu" }, Tl = ["onMousedown", "id", "aria-selected"], Tn = {
@@ -1660,7 +1660,7 @@ const lt = te("SunIcon", [
1660
1660
  default: !1
1661
1661
  }
1662
1662
  },
1663
- emits: ["update:modelValue", "select"],
1663
+ emits: ["update:modelValue", "select", "clear"],
1664
1664
  setup(i, { expose: v, emit: e }) {
1665
1665
  const t = i, o = e, l = Ue(), r = E(() => {
1666
1666
  const A = (l.default ? l.default() : []).filter((_) => _.type !== Re);
@@ -1669,68 +1669,70 @@ const lt = te("SunIcon", [
1669
1669
  m.value = !t.disabled;
1670
1670
  }, $ = () => {
1671
1671
  m.value = !1, f.value = null, r.value || (c.value && b.value !== c.value.text ? b.value = c.value.text : c.value || (b.value = ""));
1672
- }, M = () => {
1672
+ }, I = () => {
1673
1673
  m.value ? $() : w();
1674
1674
  }, z = E(() => {
1675
- const p = b.value.toLowerCase();
1676
- return p === "" && !m.value ? [] : t.options.filter(
1677
- (_) => _.text.toLowerCase().includes(p)
1675
+ const u = b.value.toLowerCase();
1676
+ return u === "" && !m.value ? [] : t.options.filter(
1677
+ (_) => _.text.toLowerCase().includes(u)
1678
1678
  );
1679
1679
  });
1680
1680
  H(
1681
1681
  () => t.modelValue,
1682
- (p, A) => {
1683
- if (p !== A && $(), p == null)
1682
+ (u, A) => {
1683
+ if (u !== A && $(), u == null)
1684
1684
  c.value = null, !m.value && !r.value && (b.value = "");
1685
1685
  else {
1686
- const _ = t.options.find((V) => V.value === p);
1686
+ const _ = t.options.find((V) => V.value === u);
1687
1687
  _ ? (c.value = _, !m.value && !r.value && (b.value = _.text)) : (c.value = null, !m.value && !r.value && (b.value = ""));
1688
1688
  }
1689
1689
  },
1690
1690
  { immediate: !0 }
1691
1691
  // Run immediately on component mount
1692
1692
  );
1693
- const j = (p) => {
1694
- U.value && !U.value.contains(p.target) && $();
1693
+ const j = (u) => {
1694
+ U.value && !U.value.contains(u.target) && $();
1695
1695
  }, W = () => {
1696
1696
  setTimeout(() => {
1697
1697
  U.value && !U.value.contains(document.activeElement) && $();
1698
1698
  }, 100);
1699
1699
  };
1700
- H(m, (p) => {
1701
- p ? setTimeout(() => {
1700
+ H(m, (u) => {
1701
+ u ? setTimeout(() => {
1702
1702
  document.addEventListener("click", j);
1703
1703
  }, 0) : document.removeEventListener("click", j);
1704
1704
  }), ge(() => {
1705
1705
  document.removeEventListener("click", j), window.removeEventListener("keydown", T);
1706
1706
  });
1707
1707
  const Y = () => {
1708
- t.disabled || (o("update:modelValue", null), o("select", null));
1709
- }, d = (p) => {
1710
- c.value = p, r.value || (b.value = p.text), o("update:modelValue", p.value), o("select", p), $();
1708
+ if (t.disabled) return;
1709
+ const u = c.value;
1710
+ o("update:modelValue", null), u && o("clear", u);
1711
+ }, p = (u) => {
1712
+ c.value = u, r.value || (b.value = u.text), o("update:modelValue", u.value), o("select", u), $();
1711
1713
  }, y = () => {
1712
- z.value.length > 0 && d(z.value[0]);
1714
+ z.value.length > 0 && p(z.value[0]);
1713
1715
  }, S = () => {
1714
1716
  m.value || w();
1715
- }, T = (p) => {
1717
+ }, T = (u) => {
1716
1718
  if (!m.value || z.value.length === 0) return;
1717
1719
  const A = z.value.findIndex(
1718
1720
  (V, K) => "option-" + K === f.value
1719
1721
  );
1720
1722
  let _ = -1;
1721
- if (p.key === "ArrowDown")
1722
- p.preventDefault(), _ = (A + 1) % z.value.length;
1723
- else if (p.key === "ArrowUp")
1724
- p.preventDefault(), _ = (A - 1 + z.value.length) % z.value.length;
1725
- else if (p.key === "Enter" && f.value) {
1726
- p.preventDefault();
1723
+ if (u.key === "ArrowDown")
1724
+ u.preventDefault(), _ = (A + 1) % z.value.length;
1725
+ else if (u.key === "ArrowUp")
1726
+ u.preventDefault(), _ = (A - 1 + z.value.length) % z.value.length;
1727
+ else if (u.key === "Enter" && f.value) {
1728
+ u.preventDefault();
1727
1729
  const V = z.value.find(
1728
1730
  (K, J) => "option-" + J === f.value
1729
1731
  );
1730
- V && d(V);
1732
+ V && p(V);
1731
1733
  return;
1732
- } else if (p.key === "Escape") {
1733
- p.preventDefault(), $(), N.value && N.value.focus();
1734
+ } else if (u.key === "Escape") {
1735
+ u.preventDefault(), $(), N.value && N.value.focus();
1734
1736
  return;
1735
1737
  } else if (r.value)
1736
1738
  return;
@@ -1742,8 +1744,8 @@ const lt = te("SunIcon", [
1742
1744
  });
1743
1745
  }
1744
1746
  };
1745
- return H(m, (p) => {
1746
- p ? (window.addEventListener("keydown", T), !r.value && !b.value && c.value && (b.value = c.value.text)) : window.removeEventListener("keydown", T);
1747
+ return H(m, (u) => {
1748
+ u ? (window.addEventListener("keydown", T), !r.value && !b.value && c.value && (b.value = c.value.text)) : window.removeEventListener("keydown", T);
1747
1749
  }), ge(() => {
1748
1750
  document.removeEventListener("click", j), window.removeEventListener("keydown", T);
1749
1751
  }), v({
@@ -1755,15 +1757,15 @@ const lt = te("SunIcon", [
1755
1757
  // Expose method to open
1756
1758
  closeDropdown: $,
1757
1759
  // Expose method to close
1758
- toggleDropdown: M,
1760
+ toggleDropdown: I,
1759
1761
  // Expose method to toggle
1760
- selectItem: d,
1762
+ selectItem: p,
1761
1763
  // Expose method to select an item programmatically
1762
1764
  filterText: b,
1763
1765
  // Expose filter text (useful if parent controls filtering)
1764
1766
  hasDefaultSlotContent: r
1765
1767
  // Expose to know if the default slot is used
1766
- }), (p, A) => (n(), a("div", {
1768
+ }), (u, A) => (n(), a("div", {
1767
1769
  class: "relative w-full max-w-xs form-control",
1768
1770
  ref_key: "componentRoot",
1769
1771
  ref: U
@@ -1774,7 +1776,7 @@ const lt = te("SunIcon", [
1774
1776
  s("div", {
1775
1777
  class: D(["flex items-center input-bordered rounded-md w-fit cursor-pointer", { input: !r.value, select: !r.value }]),
1776
1778
  tabindex: "0",
1777
- onClick: A[1] || (A[1] = (_) => r.value ? M() : w()),
1779
+ onClick: A[1] || (A[1] = (_) => r.value ? I() : w()),
1778
1780
  onKeydown: [
1779
1781
  he(Q(y, ["prevent"]), ["enter"]),
1780
1782
  he(Q(y, ["prevent"]), ["space"])
@@ -1788,7 +1790,7 @@ const lt = te("SunIcon", [
1788
1790
  ref_key: "activatorWrapper",
1789
1791
  ref: N
1790
1792
  }, [
1791
- I(p.$slots, "default", {}, () => [
1793
+ M(u.$slots, "default", {}, () => [
1792
1794
  r.value ? O("", !0) : q((n(), a("input", {
1793
1795
  key: 0,
1794
1796
  type: "text",
@@ -1801,7 +1803,7 @@ const lt = te("SunIcon", [
1801
1803
  onInput: S,
1802
1804
  tabindex: "-1",
1803
1805
  disabled: t.disabled
1804
- }, null, 40, Ml)), [
1806
+ }, null, 40, Il)), [
1805
1807
  [oe, b.value]
1806
1808
  ])
1807
1809
  ]),
@@ -1817,11 +1819,11 @@ const lt = te("SunIcon", [
1817
1819
  size: 20
1818
1820
  }, null, 8, ["class"])) : O("", !0)
1819
1821
  ], 42, Cl),
1820
- q(s("div", Il, [
1822
+ q(s("div", Ml, [
1821
1823
  s("ul", Dl, [
1822
1824
  (n(!0), a(B, null, P(z.value, (_, V) => (n(), a("li", {
1823
1825
  key: _.value,
1824
- onMousedown: Q((K) => d(_), ["prevent"]),
1826
+ onMousedown: Q((K) => p(_), ["prevent"]),
1825
1827
  class: "hover:bg-base-200 rounded-md w-full cursor-pointer",
1826
1828
  id: "option-" + V,
1827
1829
  role: "option",
@@ -1862,10 +1864,10 @@ const lt = te("SunIcon", [
1862
1864
  emits: ["update:modelValue", "validate"],
1863
1865
  setup(i, { expose: v, emit: e }) {
1864
1866
  const t = i, o = e, l = x(null), r = x(!1), b = x(""), c = E(() => {
1865
- var M, z, j, W;
1867
+ var I, z, j, W;
1866
1868
  let f = !0, w = "";
1867
1869
  const $ = t.modelValue;
1868
- return (M = t.rules) != null && M.required && ($ == null || $ === "") && (f = !1, w = "This field is required."), f && ((z = t.rules) == null ? void 0 : z.minLength) !== void 0 && typeof $ == "string" && $.length < t.rules.minLength && (f = !1, w = `Must be at least ${t.rules.minLength} characters.`), f && ((j = t.rules) == null ? void 0 : j.maxLength) !== void 0 && typeof $ == "string" && $.length > t.rules.maxLength && (f = !1, w = `Cannot exceed ${t.rules.maxLength} characters.`), f && ((W = t.rules) != null && W.email) && typeof $ == "string" && $ && (/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test($) || (f = !1, w = "Please enter a valid email address.")), b.value = w, o("validate", f), f;
1870
+ return (I = t.rules) != null && I.required && ($ == null || $ === "") && (f = !1, w = "This field is required."), f && ((z = t.rules) == null ? void 0 : z.minLength) !== void 0 && typeof $ == "string" && $.length < t.rules.minLength && (f = !1, w = `Must be at least ${t.rules.minLength} characters.`), f && ((j = t.rules) == null ? void 0 : j.maxLength) !== void 0 && typeof $ == "string" && $.length > t.rules.maxLength && (f = !1, w = `Cannot exceed ${t.rules.maxLength} characters.`), f && ((W = t.rules) != null && W.email) && typeof $ == "string" && $ && (/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test($) || (f = !1, w = "Please enter a valid email address.")), b.value = w, o("validate", f), f;
1869
1871
  }), m = E(() => r.value && !c.value), k = (f) => {
1870
1872
  const w = f.target;
1871
1873
  o("update:modelValue", w.value), r.value && c.value;
@@ -1889,7 +1891,7 @@ const lt = te("SunIcon", [
1889
1891
  f.label ? (n(), a("label", Bl, [
1890
1892
  s("span", Ol, C(f.label), 1)
1891
1893
  ])) : O("", !0),
1892
- I(f.$slots, "default"),
1894
+ M(f.$slots, "default"),
1893
1895
  s("input", {
1894
1896
  ref_key: "inputElement",
1895
1897
  ref: l,
@@ -2023,7 +2025,7 @@ const lt = te("SunIcon", [
2023
2025
  ]))), 256))
2024
2026
  ])) : O("", !0),
2025
2027
  s("aside", Xl, [
2026
- I(e.$slots, "default")
2028
+ M(e.$slots, "default")
2027
2029
  ])
2028
2030
  ])
2029
2031
  ], 2));
@@ -2034,14 +2036,14 @@ function tn(i, v) {
2034
2036
  s("div", Ql, [
2035
2037
  s("div", null, [
2036
2038
  s("h1", en, [
2037
- I(i.$slots, "title", {}, () => [
2039
+ M(i.$slots, "title", {}, () => [
2038
2040
  v[0] || (v[0] = ke("hero title"))
2039
2041
  ])
2040
2042
  ]),
2041
2043
  s("p", null, [
2042
- I(i.$slots, "description", { class: "py-9" })
2044
+ M(i.$slots, "description", { class: "py-9" })
2043
2045
  ]),
2044
- I(i.$slots, "call-to-action-block", { class: "max-w-full" }, () => [
2046
+ M(i.$slots, "call-to-action-block", { class: "max-w-full" }, () => [
2045
2047
  v[1] || (v[1] = s("button", { class: "btn btn-primary" }, "Call to action", -1))
2046
2048
  ])
2047
2049
  ])
@@ -2082,16 +2084,16 @@ const zn = /* @__PURE__ */ le(Gl, [["render", tn]]), ln = { class: "flex flex-ro
2082
2084
  class: D(["place-items-start border-primary bg-base-100 px-5 py-5 border-b-4 transition-all navbar navigationbar", v.isCollapsed ? "collapsed" : ""])
2083
2085
  }, [
2084
2086
  s("div", an, [
2085
- I(e.$slots, "start", {}, void 0, !0)
2087
+ M(e.$slots, "start", {}, void 0, !0)
2086
2088
  ]),
2087
2089
  s("div", on, [
2088
- I(e.$slots, "center", {}, void 0, !0)
2090
+ M(e.$slots, "center", {}, void 0, !0)
2089
2091
  ]),
2090
2092
  s("div", sn, [
2091
- I(e.$slots, "end", {}, void 0, !0)
2093
+ M(e.$slots, "end", {}, void 0, !0)
2092
2094
  ]),
2093
2095
  s("div", rn, [
2094
- I(e.$slots, "bottom", {}, void 0, !0)
2096
+ M(e.$slots, "bottom", {}, void 0, !0)
2095
2097
  ])
2096
2098
  ], 2));
2097
2099
  }
@@ -2154,12 +2156,12 @@ const zn = /* @__PURE__ */ le(Gl, [["render", tn]]), ln = { class: "flex flex-ro
2154
2156
  "aria-selected": t.value == k
2155
2157
  }, C(k), 11, cn),
2156
2158
  c.buttonOnlyMode ? O("", !0) : (n(), a("div", pn, [
2157
- I(c.$slots, `${k}-tab`)
2159
+ M(c.$slots, `${k}-tab`)
2158
2160
  ]))
2159
2161
  ], 64))), 256))
2160
2162
  ], 2),
2161
2163
  s("div", vn, [
2162
- I(c.$slots, "default")
2164
+ M(c.$slots, "default")
2163
2165
  ])
2164
2166
  ], 64));
2165
2167
  }
@@ -2183,10 +2185,10 @@ export {
2183
2185
  Bn as Loader,
2184
2186
  hn as Modal,
2185
2187
  Pn as NavigationBar,
2186
- Mn as Rating,
2188
+ In as Rating,
2187
2189
  Dn as Selector,
2188
2190
  bn as Swap,
2189
2191
  En as Tab,
2190
- In as TagInput,
2192
+ Mn as TagInput,
2191
2193
  yn as ThemeController
2192
2194
  };