manolis-ui 0.17.11 → 0.17.13

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.
@@ -2,7 +2,7 @@ import { defineComponent as _, computed as ee, createElementBlock as r, openBloc
2
2
  const Ze = ["disabled"], Qe = {
3
3
  key: 0,
4
4
  class: "loading loading-spinner"
5
- }, mn = /* @__PURE__ */ _({
5
+ }, pn = /* @__PURE__ */ _({
6
6
  __name: "ButtonComponent",
7
7
  props: {
8
8
  outlined: { type: Boolean, default: !1 },
@@ -84,7 +84,7 @@ const Ze = ["disabled"], Qe = {
84
84
  }), et = {
85
85
  tabindex: "0",
86
86
  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"
87
- }, tt = ["href"], pn = /* @__PURE__ */ _({
87
+ }, tt = ["href"], hn = /* @__PURE__ */ _({
88
88
  __name: "dropdown",
89
89
  props: {
90
90
  items: {},
@@ -122,7 +122,7 @@ const Ze = ["disabled"], Qe = {
122
122
  ])
123
123
  ], 2));
124
124
  }
125
- }), lt = { class: "modal-box" }, nt = { class: "modal-action" }, hn = /* @__PURE__ */ _({
125
+ }), lt = { class: "modal-box" }, nt = { class: "modal-action" }, gn = /* @__PURE__ */ _({
126
126
  __name: "modal",
127
127
  props: {
128
128
  position: { default: "center" },
@@ -179,7 +179,7 @@ const Ze = ["disabled"], Qe = {
179
179
  ], 2)
180
180
  ], 64));
181
181
  }
182
- }), at = { class: "flex justify-center items-center swap-on" }, ot = { class: "flex justify-center items-center swap-off" }, gn = /* @__PURE__ */ _({
182
+ }), at = { class: "flex justify-center items-center swap-on" }, ot = { class: "flex justify-center items-center swap-off" }, yn = /* @__PURE__ */ _({
183
183
  __name: "swap",
184
184
  props: {
185
185
  effect: {}
@@ -323,7 +323,7 @@ const ct = xe("SunIcon", [
323
323
  }), q(l, (t) => {
324
324
  typeof window < "u" && window.localStorage.setItem(e, JSON.stringify(t));
325
325
  }), l;
326
- }, ft = { class: "swap-rotate swap" }, mt = ["true-value", "false-value"], yn = /* @__PURE__ */ _({
326
+ }, ft = { class: "swap-rotate swap" }, mt = ["true-value", "false-value"], bn = /* @__PURE__ */ _({
327
327
  __name: "theme-controller",
328
328
  props: {
329
329
  lightTheme: { default: "light" },
@@ -350,7 +350,7 @@ const ct = xe("SunIcon", [
350
350
  ue(se(dt), { class: "swap-on fill-current" })
351
351
  ]));
352
352
  }
353
- }), pt = ["name"], ht = { class: "collapse-title font-bold text-2xl lg:text-4xl" }, gt = { class: "collapse-content" }, yt = ["innerHTML"], bn = /* @__PURE__ */ _({
353
+ }), pt = ["name"], ht = { class: "collapse-title font-bold text-2xl lg:text-4xl" }, gt = { class: "collapse-content" }, yt = ["innerHTML"], wn = /* @__PURE__ */ _({
354
354
  __name: "accordion",
355
355
  props: {
356
356
  name: {},
@@ -377,7 +377,7 @@ const ct = xe("SunIcon", [
377
377
  ])
378
378
  ], 2))), 128));
379
379
  }
380
- }), bt = ["src"], wt = { class: "text-xl" }, wn = /* @__PURE__ */ _({
380
+ }), bt = ["src"], wt = { class: "text-xl" }, xn = /* @__PURE__ */ _({
381
381
  __name: "avatar",
382
382
  props: {
383
383
  image: {},
@@ -411,7 +411,7 @@ const ct = xe("SunIcon", [
411
411
  ], 2))
412
412
  ], 2));
413
413
  }
414
- }), xn = /* @__PURE__ */ _({
414
+ }), kn = /* @__PURE__ */ _({
415
415
  __name: "badge",
416
416
  props: {
417
417
  color: { default: "neutral" },
@@ -453,7 +453,7 @@ const ct = xe("SunIcon", [
453
453
  }, Ct = { class: "flex-col flex-nowrap mt-auto card-actions" }, It = {
454
454
  key: 1,
455
455
  class: "card-body"
456
- }, kn = /* @__PURE__ */ _({
456
+ }, $n = /* @__PURE__ */ _({
457
457
  __name: "card",
458
458
  props: {
459
459
  imgUrl: { default: "" },
@@ -813,7 +813,7 @@ const ct = xe("SunIcon", [
813
813
  for (const [t, s] of d)
814
814
  l[t] = s;
815
815
  return l;
816
- }, $n = /* @__PURE__ */ ge(Dt, [["__scopeId", "data-v-dd58428c"]]), Vt = /* @__PURE__ */ _({
816
+ }, Sn = /* @__PURE__ */ ge(Dt, [["__scopeId", "data-v-dd58428c"]]), Vt = /* @__PURE__ */ _({
817
817
  __name: "carouselItem",
818
818
  setup(e) {
819
819
  const d = Ke(_e, h({}));
@@ -824,7 +824,7 @@ const ct = xe("SunIcon", [
824
824
  E(l.$slots, "default", {}, void 0, !0)
825
825
  ], 4));
826
826
  }
827
- }), Sn = /* @__PURE__ */ ge(Vt, [["__scopeId", "data-v-507384bc"]]), Et = { class: "flex gap-4 bg-base-100 w-full tabs tabs-boxed" }, Lt = ["onClick"], jt = {
827
+ }), Cn = /* @__PURE__ */ ge(Vt, [["__scopeId", "data-v-507384bc"]]), Et = { class: "flex gap-4 bg-base-100 w-full tabs tabs-boxed" }, Lt = ["onClick"], jt = {
828
828
  key: 0,
829
829
  class: "inline-component-wrapper flex grow justify-center items-center w-full h-full"
830
830
  }, Pt = {
@@ -1155,7 +1155,7 @@ const ct = xe("SunIcon", [
1155
1155
  ], 64);
1156
1156
  };
1157
1157
  }
1158
- }), Cn = /* @__PURE__ */ ge(Gt, [["__scopeId", "data-v-577c3624"]]), Jt = { 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" }, Zt = { key: 0 }, Qt = { key: 1 }, el = ["id", "onKeydown"], tl = {
1158
+ }), In = /* @__PURE__ */ ge(Gt, [["__scopeId", "data-v-577c3624"]]), Jt = { 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" }, Zt = { key: 0 }, Qt = { key: 1 }, el = ["id", "onKeydown"], tl = {
1159
1159
  key: 2,
1160
1160
  class: "flex justify-center p-4"
1161
1161
  }, ll = { 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" }, nl = { class: "join-item" }, al = ["id", "disabled", "value"], ol = { class: "join-item" }, sl = ["id", "disabled", "value"], il = {
@@ -1543,7 +1543,7 @@ const ct = xe("SunIcon", [
1543
1543
  }), cl = /* @__PURE__ */ ge(dl, [["__scopeId", "data-v-e0b34494"]]), vl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1544
1544
  __proto__: null,
1545
1545
  default: cl
1546
- }, Symbol.toStringTag, { value: "Module" })), fl = ["value", "checked", "onChange", "disabled"], In = /* @__PURE__ */ _({
1546
+ }, Symbol.toStringTag, { value: "Module" })), fl = ["value", "checked", "onChange", "disabled"], Mn = /* @__PURE__ */ _({
1547
1547
  __name: "rating",
1548
1548
  props: {
1549
1549
  initialRating: { default: 0 },
@@ -1609,7 +1609,7 @@ const ct = xe("SunIcon", [
1609
1609
  }, null, 46, fl))), 128))
1610
1610
  ], 2));
1611
1611
  }
1612
- }), ml = { class: "badge" }, pl = ["onClick"], hl = { class: "opacity-75" }, gl = ["placeholder"], Mn = /* @__PURE__ */ _({
1612
+ }), ml = { class: "badge" }, pl = ["onClick"], hl = { class: "opacity-75" }, gl = ["placeholder"], zn = /* @__PURE__ */ _({
1613
1613
  __name: "taginput",
1614
1614
  props: {
1615
1615
  modelValue: {},
@@ -1672,7 +1672,7 @@ const ct = xe("SunIcon", [
1672
1672
  value: "",
1673
1673
  disabled: "",
1674
1674
  selected: ""
1675
- }, $l = ["value"], zn = /* @__PURE__ */ _({
1675
+ }, $l = ["value"], Tn = /* @__PURE__ */ _({
1676
1676
  __name: "select",
1677
1677
  props: {
1678
1678
  options: {},
@@ -1719,7 +1719,7 @@ const ct = xe("SunIcon", [
1719
1719
  }, Cl = { class: "label-text" }, Il = ["onKeydown", "aria-expanded", "aria-activedescendant"], Ml = ["placeholder", "disabled"], zl = {
1720
1720
  class: "top-full z-10 absolute bg-base-100 shadow-lg mt-1 rounded-md w-full dropdown-content",
1721
1721
  role: "listbox"
1722
- }, Tl = { class: "flex-nowrap p-0 w-[inherit] max-h-60 overflow-y-auto menu" }, Bl = ["onMousedown", "id", "aria-selected"], Tn = {
1722
+ }, Tl = { class: "flex-nowrap p-0 w-[inherit] max-h-60 overflow-y-auto menu" }, Bl = ["onMousedown", "id", "aria-selected"], Bn = {
1723
1723
  __name: "filterableSelect",
1724
1724
  props: {
1725
1725
  // Array of options: [{ value: any, text: string }, ...]
@@ -1937,7 +1937,7 @@ const ct = xe("SunIcon", [
1937
1937
  }, jl = { class: "label-text-alt text-error validator-hint" }, Pl = {
1938
1938
  key: 2,
1939
1939
  class: "label"
1940
- }, Al = { class: "label-text-alt text-success validator-hint" }, Bn = /* @__PURE__ */ _({
1940
+ }, Al = { class: "label-text-alt text-success validator-hint" }, On = /* @__PURE__ */ _({
1941
1941
  __name: "inputField",
1942
1942
  props: {
1943
1943
  modelValue: { default: "" },
@@ -2027,7 +2027,7 @@ const ct = xe("SunIcon", [
2027
2027
  ])) : O("", !0)
2028
2028
  ]));
2029
2029
  }
2030
- }), On = /* @__PURE__ */ _({
2030
+ }), Dn = /* @__PURE__ */ _({
2031
2031
  __name: "loader",
2032
2032
  props: {
2033
2033
  loading: { type: Boolean, default: !0 },
@@ -2069,13 +2069,13 @@ const ct = xe("SunIcon", [
2069
2069
  ]])
2070
2070
  }, null, 2)) : O("", !0);
2071
2071
  }
2072
- }), Rl = { class: "footer-title" }, Nl = ["href"], _l = {
2072
+ }), Rl = { class: "container flex flex-col sm:flex-row" }, Nl = { class: "footer-title" }, _l = ["href"], Fl = {
2073
2073
  key: 0,
2074
2074
  class: "sm:hidden w-full"
2075
- }, Fl = { class: "border-b-2 border-base-100 last:border-b-0 w-full" }, ql = {
2075
+ }, ql = { class: "border-b-2 border-base-100 last:border-b-0 w-full" }, Ul = {
2076
2076
  tabindex: "0",
2077
2077
  class: "collapse collapse-plus w-full"
2078
- }, Ul = { class: "collapse-title font-bold text-lg collapsible-footer-title" }, Hl = { class: "collapse-content flex w-full text-sm" }, Wl = { class: "flex flex-col gap-2.5" }, Kl = { class: "w-full" }, Xl = ["href"], Yl = { class: "w-full" }, Dn = /* @__PURE__ */ _({
2078
+ }, Hl = { class: "collapse-title font-bold text-lg collapsible-footer-title" }, Wl = { class: "collapse-content flex w-full text-sm" }, Kl = { class: "flex flex-col gap-2.5" }, Xl = { class: "w-full" }, Yl = ["href"], Gl = { class: "w-full" }, Vn = /* @__PURE__ */ _({
2079
2079
  __name: "footer",
2080
2080
  props: {
2081
2081
  items: {},
@@ -2089,47 +2089,49 @@ const ct = xe("SunIcon", [
2089
2089
  return (l, t) => (o(), r("div", {
2090
2090
  class: T(["mx-auto md:px-10 py-10 text-base-content", [e.background ?? "bg-base-200", e.color ?? "text-base-content"]])
2091
2091
  }, [
2092
- n("footer", {
2093
- class: T(["footer sm:footer-horizontal container", [{ "grid-rows-1": d.rows === 1 }, { "grid-rows-2": d.rows === 2 }, { "grid-rows-3": d.rows === 3 }]])
2094
- }, [
2095
- (o(!0), r(W, null, Z(d.items, (s) => (o(), r("nav", {
2096
- class: T([{ "hidden sm:grid": e.collapseOnMobile }])
2092
+ n("footer", Rl, [
2093
+ n("div", {
2094
+ class: T(["footer sm:footer-horizontal", [{ "sm:grid-rows-1": d.rows === 1 }, { "sm:grid-rows-2": d.rows === 2 }, { "sm:grid-rows-3": d.rows === 3 }]])
2097
2095
  }, [
2098
- n("h6", Rl, L(s.title), 1),
2099
- (o(!0), r(W, null, Z(s.items, (a) => (o(), r("a", {
2100
- class: "link link-hover",
2101
- href: a.link
2102
- }, L(a.text), 9, Nl))), 256))
2103
- ], 2))), 256)),
2104
- e.collapseOnMobile ? (o(), r("nav", _l, [
2105
- (o(!0), r(W, null, Z(d.items, (s) => (o(), r("ul", Fl, [
2106
- n("div", ql, [
2107
- n("div", Ul, L(s.title), 1),
2108
- n("div", Hl, [
2109
- n("ul", Wl, [
2110
- (o(!0), r(W, null, Z(s.items, (a) => (o(), r("li", Kl, [
2111
- n("a", {
2112
- class: "w-full font-medium link link-hover",
2113
- href: a.link
2114
- }, L(a.text), 9, Xl)
2115
- ]))), 256))
2096
+ (o(!0), r(W, null, Z(d.items, (s) => (o(), r("nav", {
2097
+ class: T([{ "hidden sm:grid": e.collapseOnMobile }])
2098
+ }, [
2099
+ n("h6", Nl, L(s.title), 1),
2100
+ (o(!0), r(W, null, Z(s.items, (a) => (o(), r("a", {
2101
+ class: "link link-hover",
2102
+ href: a.link
2103
+ }, L(a.text), 9, _l))), 256))
2104
+ ], 2))), 256)),
2105
+ e.collapseOnMobile ? (o(), r("nav", Fl, [
2106
+ (o(!0), r(W, null, Z(d.items, (s) => (o(), r("ul", ql, [
2107
+ n("div", Ul, [
2108
+ n("div", Hl, L(s.title), 1),
2109
+ n("div", Wl, [
2110
+ n("ul", Kl, [
2111
+ (o(!0), r(W, null, Z(s.items, (a) => (o(), r("li", Xl, [
2112
+ n("a", {
2113
+ class: "w-full font-medium link link-hover",
2114
+ href: a.link
2115
+ }, L(a.text), 9, Yl)
2116
+ ]))), 256))
2117
+ ])
2116
2118
  ])
2117
2119
  ])
2118
- ])
2119
- ]))), 256))
2120
- ])) : O("", !0),
2121
- n("aside", Yl, [
2120
+ ]))), 256))
2121
+ ])) : O("", !0)
2122
+ ], 2),
2123
+ n("aside", Gl, [
2122
2124
  E(l.$slots, "default")
2123
2125
  ])
2124
- ], 2)
2126
+ ])
2125
2127
  ], 2));
2126
2128
  }
2127
- }), Gl = {}, Jl = { class: "min-h-40 container hero" }, Zl = { class: "px-0! text-center hero-content" }, Ql = { class: "mt-9 text-4xl" };
2128
- function en(e, d) {
2129
- return o(), r("div", Jl, [
2130
- n("div", Zl, [
2129
+ }), Jl = {}, Zl = { class: "min-h-40 container hero" }, Ql = { class: "px-0! text-center hero-content" }, en = { class: "mt-9 text-4xl" };
2130
+ function tn(e, d) {
2131
+ return o(), r("div", Zl, [
2132
+ n("div", Ql, [
2131
2133
  n("div", null, [
2132
- n("h1", Ql, [
2134
+ n("h1", en, [
2133
2135
  E(e.$slots, "title", {}, () => [
2134
2136
  d[0] || (d[0] = Re("hero title", -1))
2135
2137
  ])
@@ -2144,7 +2146,7 @@ function en(e, d) {
2144
2146
  ])
2145
2147
  ]);
2146
2148
  }
2147
- const Vn = /* @__PURE__ */ ge(Gl, [["render", en]]), tn = { class: "flex flex-row place-content-center gap-4 categories" }, ln = ["onClick"], En = /* @__PURE__ */ _({
2149
+ const En = /* @__PURE__ */ ge(Jl, [["render", tn]]), ln = { class: "flex flex-row place-content-center gap-4 categories" }, nn = ["onClick"], Ln = /* @__PURE__ */ _({
2148
2150
  __name: "categoryNavigation",
2149
2151
  props: {
2150
2152
  searchOptions: {},
@@ -2156,18 +2158,18 @@ const Vn = /* @__PURE__ */ ge(Gl, [["render", en]]), tn = { class: "flex flex-ro
2156
2158
  function s(a) {
2157
2159
  t("update:currentCategory", a);
2158
2160
  }
2159
- return (a, u) => (o(), r("div", tn, [
2161
+ return (a, u) => (o(), r("div", ln, [
2160
2162
  (o(!0), r(W, null, Z(l.searchOptions, (m) => (o(), r("div", {
2161
2163
  key: m.category
2162
2164
  }, [
2163
2165
  n("button", {
2164
2166
  onClick: (i) => s(m.category),
2165
2167
  class: T(["truncate btn btn-ghost", { "font-semibold": l.currentCategory === m.category }])
2166
- }, L(m.category), 11, ln)
2168
+ }, L(m.category), 11, nn)
2167
2169
  ]))), 128))
2168
2170
  ]));
2169
2171
  }
2170
- }), nn = { class: "md:flex hidden navbar-start" }, an = { class: "md:flex justify-center items-center hidden navbar-center" }, on = { class: "md:flex hidden navbar-end" }, sn = { class: "navbar-bottom md:flex hidden" }, rn = /* @__PURE__ */ _({
2172
+ }), an = { class: "md:flex hidden navbar-start" }, on = { class: "md:flex justify-center items-center hidden navbar-center" }, sn = { class: "md:flex hidden navbar-end" }, rn = { class: "navbar-bottom md:flex hidden" }, un = /* @__PURE__ */ _({
2171
2173
  __name: "navigationBar",
2172
2174
  props: {
2173
2175
  isCollapsed: { type: Boolean, default: !0 }
@@ -2177,28 +2179,28 @@ const Vn = /* @__PURE__ */ ge(Gl, [["render", en]]), tn = { class: "flex flex-ro
2177
2179
  return (l, t) => (o(), r("nav", {
2178
2180
  class: T(["place-items-start border-primary bg-base-100 px-5 py-5 border-b-4 transition-all navbar navigationbar", d.isCollapsed ? "collapsed" : ""])
2179
2181
  }, [
2180
- n("div", nn, [
2182
+ n("div", an, [
2181
2183
  E(l.$slots, "start", {}, void 0, !0)
2182
2184
  ]),
2183
- n("div", an, [
2185
+ n("div", on, [
2184
2186
  E(l.$slots, "center", {}, void 0, !0)
2185
2187
  ]),
2186
- n("div", on, [
2188
+ n("div", sn, [
2187
2189
  E(l.$slots, "end", {}, void 0, !0)
2188
2190
  ]),
2189
- n("div", sn, [
2191
+ n("div", rn, [
2190
2192
  E(l.$slots, "bottom", {}, void 0, !0)
2191
2193
  ])
2192
2194
  ], 2));
2193
2195
  }
2194
- }), Ln = /* @__PURE__ */ ge(rn, [["__scopeId", "data-v-8ddb2b45"]]), un = {
2196
+ }), jn = /* @__PURE__ */ ge(un, [["__scopeId", "data-v-8ddb2b45"]]), dn = {
2195
2197
  key: 0,
2196
2198
  class: "hidden top-4 right-0 absolute md:flex gap-4"
2197
- }, dn = ["onClick", "aria-selected"], cn = {
2199
+ }, cn = ["onClick", "aria-selected"], vn = {
2198
2200
  key: 0,
2199
2201
  role: "tabpanel",
2200
2202
  class: "p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full overflow-x-auto tab-content"
2201
- }, vn = { class: "p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full" }, jn = /* @__PURE__ */ _({
2203
+ }, fn = { class: "p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full" }, Pn = /* @__PURE__ */ _({
2202
2204
  __name: "tab",
2203
2205
  props: {
2204
2206
  items: {},
@@ -2231,7 +2233,7 @@ const Vn = /* @__PURE__ */ ge(Gl, [["render", en]]), tn = { class: "flex flex-ro
2231
2233
  role: "tablist",
2232
2234
  class: T(["relative tabs-bordered w-full tabs tabs-lg", { "flex-nowrap overflow-x-auto": e.buttonOnlyMode }])
2233
2235
  }, [
2234
- e.withControlls ? (o(), r("div", un, [
2236
+ e.withControlls ? (o(), r("div", dn, [
2235
2237
  n("button", {
2236
2238
  onClick: y[0] || (y[0] = (M) => m()),
2237
2239
  class: "cursor-pointer"
@@ -2248,13 +2250,13 @@ const Vn = /* @__PURE__ */ ge(Gl, [["render", en]]), tn = { class: "flex flex-ro
2248
2250
  class: T(["min-w-max tab", M === t.value ? "bg-primary text-base-100" : ""]),
2249
2251
  onClick: (R) => a(M),
2250
2252
  "aria-selected": t.value == M
2251
- }, L(M), 11, dn),
2252
- e.buttonOnlyMode ? O("", !0) : (o(), r("div", cn, [
2253
+ }, L(M), 11, cn),
2254
+ e.buttonOnlyMode ? O("", !0) : (o(), r("div", vn, [
2253
2255
  E(i.$slots, `${M}-tab`)
2254
2256
  ]))
2255
2257
  ], 64))), 256))
2256
2258
  ], 2),
2257
- n("div", vn, [
2259
+ n("div", fn, [
2258
2260
  E(i.$slots, "default")
2259
2261
  ])
2260
2262
  ], 64));
@@ -2263,28 +2265,28 @@ const Vn = /* @__PURE__ */ ge(Gl, [["render", en]]), tn = { class: "flex flex-ro
2263
2265
  typeof document > "u" && (globalThis.document = {});
2264
2266
  typeof window > "u" && (globalThis.window = globalThis);
2265
2267
  export {
2266
- bn as Accordion,
2267
- Cn as AdvancedSearch,
2268
- wn as Avatar,
2269
- xn as Badge,
2270
- mn as ButtonComponent,
2271
- kn as Card,
2272
- $n as Carousel,
2273
- Sn as CarouselItem,
2274
- En as CategoryNavigation,
2268
+ wn as Accordion,
2269
+ In as AdvancedSearch,
2270
+ xn as Avatar,
2271
+ kn as Badge,
2272
+ pn as ButtonComponent,
2273
+ $n as Card,
2274
+ Sn as Carousel,
2275
+ Cn as CarouselItem,
2276
+ Ln as CategoryNavigation,
2275
2277
  cl as DatetimePicker,
2276
- pn as Dropdown,
2277
- Tn as FilterableSelect,
2278
- Dn as Footer,
2279
- Vn as Hero,
2280
- Bn as InputField,
2281
- On as Loader,
2282
- hn as Modal,
2283
- Ln as NavigationBar,
2284
- In as Rating,
2285
- zn as Selector,
2286
- gn as Swap,
2287
- jn as Tab,
2288
- Mn as TagInput,
2289
- yn as ThemeController
2278
+ hn as Dropdown,
2279
+ Bn as FilterableSelect,
2280
+ Vn as Footer,
2281
+ En as Hero,
2282
+ On as InputField,
2283
+ Dn as Loader,
2284
+ gn as Modal,
2285
+ jn as NavigationBar,
2286
+ Mn as Rating,
2287
+ Tn as Selector,
2288
+ yn as Swap,
2289
+ Pn as Tab,
2290
+ zn as TagInput,
2291
+ bn as ThemeController
2290
2292
  };
@@ -43,4 +43,4 @@
43
43
  *
44
44
  * This source code is licensed under the ISC license.
45
45
  * See the LICENSE file in the root directory of this source tree.
46
- */const rn=he("SunIcon",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),sn=(t,n)=>{const l=e.ref(null);return e.onMounted(()=>{if(typeof window<"u"){const o=window.localStorage.getItem(t);l.value=o?JSON.parse(o):n}}),e.watch(l,o=>{typeof window<"u"&&window.localStorage.setItem(t,JSON.stringify(o))}),l},cn={class:"swap-rotate swap"},dn=["true-value","false-value"],un=e.defineComponent({__name:"theme-controller",props:{lightTheme:{default:"light"},darkTheme:{default:"dark"}},setup(t){const n=t,l=sn("theme",n.lightTheme);function o(r){typeof window<"u"&&window.document&&document.documentElement.setAttribute("data-theme",r)}return e.onMounted(()=>o(l.value?l.value:"")),e.watch(l,r=>{o(r)}),(r,a)=>(e.openBlock(),e.createElementBlock("label",cn,[e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:"theme-controller","onUpdate:modelValue":a[0]||(a[0]=s=>e.isRef(l)?l.value=s:null),"true-value":n.lightTheme,"false-value":n.darkTheme},null,8,dn),[[e.vModelCheckbox,e.unref(l)]]),e.createVNode(e.unref(rn),{class:"swap-off fill-current"}),e.createVNode(e.unref(an),{class:"swap-on fill-current"})]))}}),mn=["name"],fn={class:"collapse-title font-bold text-2xl lg:text-4xl"},pn={class:"collapse-content"},hn=["innerHTML"],gn=e.defineComponent({__name:"accordion",props:{name:{},items:{},joinItems:{type:Boolean,default:!1},icon:{}},setup(t){const n=t;return(l,o)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,(r,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["collapse border border-base-300",[t.icon?`collapse-${t.icon}`:"",{"join-item":t.joinItems}]]),key:a},[e.createElementVNode("input",{type:"radio",name:t.name,value:"true"},null,8,mn),e.createElementVNode("div",fn,e.toDisplayString(r.title),1),e.createElementVNode("div",pn,[e.createElementVNode("span",{innerHTML:r.content},null,8,hn)])],2))),128))}}),yn=["src"],bn={class:"text-xl"},kn=e.defineComponent({__name:"avatar",props:{image:{},onlineStatus:{default:"none"},initials:{},fullyRounded:{type:Boolean,default:!1}},setup(t){const n=t,l=e.ref(n.onlineStatus);return e.watch(()=>n.onlineStatus,o=>{o&&(l.value=o)}),(o,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["avatar",[{"avatar-online":l.value==="online"},{"avatar-offline":l.value==="offline"}]])},[t.image?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["rounded",[{"rounded-full":t.fullyRounded},{rounded:!t.fullyRounded}]])},[e.createElementVNode("img",{src:t.image,class:"w-full h-full"},null,8,yn)],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["flex justify-center bg-neutral p-[25%] rounded w-16 text-neutral-content text-center",[{"rounded-full":t.fullyRounded},{rounded:!t.fullyRounded}]])},[e.createElementVNode("p",bn,e.toDisplayString(t.initials),1)],2))],2))}}),wn=e.defineComponent({__name:"badge",props:{color:{default:"neutral"},outline:{type:Boolean,default:!1},size:{default:"medium"}},setup(t){const n=t,l={"extra small":"badge-xs",small:"badge-sm",medium:"badge-md",large:"badge-lg"},o={neutral:"badge-neutral",primary:"badge-primary",secondary:"badge-secondary",accent:"badge-accent",ghost:"badge-ghost",info:"badge-info",success:"badge-success",warning:"badge-warning",error:"badge-error"};return(r,a)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["badge",l[n.size],o[n.color],{"badge-outline":n.outline}])},[e.renderSlot(r.$slots,"default")],2))}}),vn=["src","alt"],xn={key:0,class:"card-body"},En={key:0,class:"group-hover:text-primary text-lg text-left cursor-pointer card-title"},Bn={key:1,class:"text-left"},$n={class:"flex-col flex-nowrap mt-auto card-actions"},Cn={key:1,class:"card-body"},Sn=e.defineComponent({__name:"card",props:{imgUrl:{default:""},alt:{default:"A beautiful picture that says something about this card"},title:{default:""},description:{default:""},outlined:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},class:{default:""},background:{default:"bg-base-100"},color:{default:""},imgHeight:{default:"h-44"},imgWidth:{default:""},horizontal:{type:Boolean,default:!1}},setup(t){const n=t,l=e.ref(n.outlined);return e.watch(()=>n.outlined,o=>{l.value=o}),(o,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["group bg-base-100 shadow-xl rounded-sm min-w-64 max-w-full h-full card card-compact",[{"border-4 border-primary":l.value},t.color??"",t.background,{"card-side":t.horizontal}]])},[e.createElementVNode("figure",{class:e.normalizeClass([{"contents!":t.horizontal&&t.imgWidth}])},[t.imgUrl||t.imgUrl&&!t.loading?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.imgUrl,alt:t.alt,class:e.normalizeClass(["rounded-sm object-cover",[{hidden:t.loading},!t.horizontal&&t.imgHeight?t.imgHeight:"h-full",t.horizontal&&t.imgWidth?t.imgWidth:"w-full"]])},null,10,vn)):e.createCommentVNode("",!0),t.loading&&t.imgUrl?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["w-full skeleton",t.imgHeight])},null,2)):e.createCommentVNode("",!0)],2),t.loading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",xn,[t.title?(e.openBlock(),e.createElementBlock("h2",En,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"details"),t.description?(e.openBlock(),e.createElementBlock("p",Bn,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0),e.createElementVNode("div",$n,[e.renderSlot(o.$slots,"actions")])])),t.loading?(e.openBlock(),e.createElementBlock("div",Cn,[...r[0]||(r[0]=[e.createElementVNode("div",{class:"flex flex-col gap-4 w-52"},[e.createElementVNode("div",{class:"w-28 h-4 skeleton"}),e.createElementVNode("div",{class:"w-full h-4 skeleton"}),e.createElementVNode("div",{class:"w-full h-4 skeleton"})],-1)])])):e.createCommentVNode("",!0)],2))}}),lt=Symbol("CarouselItemStyle"),Vn={class:"relative h-full"},Nn={key:0,class:"flex-shrink-0"},Dn={key:0,class:"flex-shrink-0"},zn={key:1,id:"carousel-indicators",class:"bottom-5 z-10 absolute flex justify-center gap-2 py-2 w-full"},Tn=["onClick","aria-label"],Mn=e.defineComponent({__name:"carousel",props:{showIndicators:{type:Boolean,default:!0},showNavigationButtons:{type:Boolean,default:!0},sliderOrientation:{type:String,default:"horizontal",required:!1,validator:t=>t=="horizontal"||t=="vertical"},initialSlide:{type:Number,default:0},slidesPerView:{type:Number,default:1,validator:t=>t>=1},gap:{type:Number,default:0,validator:t=>t>=0},slideDuration:{type:Number,default:300,validator:t=>t>=0},breakpoints:{type:Object,default:()=>({})},infinite:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},autoplayInterval:{type:Number,default:3e3,validator:t=>t>0}},setup(t,{expose:n}){const l=t,o=e.ref(l.initialSlide),r=e.ref(null),a=e.ref(null),s=e.ref(0),c=e.ref(!1),i=e.ref(0),u=e.ref(0),m=e.ref(!1),y=e.ref(0),f=e.ref(0),d=e.ref(0),$=e.ref(0),v=e.ref(0),C=e.ref(0),k=e.ref(0),M=e.ref(null),U=e.ref(null),Y=e.ref(0),h=e.ref(null),B=e.computed(()=>{const z=Object.keys(l.breakpoints).map(Number).sort((P,F)=>P-F);let D={};for(const P of z)u.value>=P&&(D={...D,...l.breakpoints[P]});return D}),w=e.computed(()=>B.value.slidesPerView??l.slidesPerView),N=e.computed(()=>B.value.gap??l.gap),p=e.computed(()=>{const z=l.sliderOrientation==="horizontal",P=`calc((100% - ${w.value>1?(w.value-1)*N.value:0}px) / ${w.value})`;return z?{width:P}:{height:P}});e.provide(lt,p);const x=()=>{a.value?i.value=a.value.children.length:i.value=0},b=()=>{if(!r.value||w.value<=0)return 0;const D=l.sliderOrientation==="horizontal"?r.value.offsetWidth:r.value.offsetHeight,P=(w.value-1)*N.value;return D<=0?0:(D-P)/w.value},I=e.computed(()=>{if(!r.value||i.value===0||w.value===0)return 0;const D=l.sliderOrientation==="horizontal"?r.value.offsetWidth:r.value.offsetHeight,P=b(),F=i.value*(P+N.value)-N.value;return Math.max(0,F-D)}),O=async(z,D=!1)=>{if(!r.value||w.value<=0||c.value||(x(),i.value===0))return;const P=b();if(P<=0)return;const F=P+N.value,K=I.value;let R=z;l.infinite?R=(z%i.value+i.value)%i.value:R=Math.max(0,Math.min(z,i.value-w.value));const te=R*F,W=l.infinite?te:Math.max(0,Math.min(te,K));if(D||l.slideDuration===0){a.value&&(a.value.style.transitionDuration="0ms",a.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-W}px, 0, 0)`:`translate3d(0, ${-W}px, 0)`),s.value=W,o.value=R,c.value=!1,l.autoplay&&ee();return}c.value=!0;const oe=s.value,Z=W-oe,Ee=performance.now(),fe=Te=>{if(!a.value)return;const ba=Te-Ee,Ut=Math.min(1,ba/l.slideDuration),ka=1-Math.pow(1-Ut,3),et=oe+Z*ka;a.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-et}px, 0, 0)`:`translate3d(0, ${-et}px, 0)`,s.value=et,Ut<1?M.value=requestAnimationFrame(fe):(a.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-W}px, 0, 0)`:`translate3d(0, ${-W}px, 0)`,s.value=W,o.value=R,c.value=!1,l.autoplay&&ee(),M.value=null)};M.value=requestAnimationFrame(fe)},q=()=>{l.infinite&&o.value>=i.value-w.value?O(0):O(o.value+1)},J=()=>{l.infinite&&o.value<=0?O(i.value-w.value):O(o.value-1)},g=z=>{O(z)},E=z=>{c.value&&M.value&&(l.autoplay&&H(),cancelAnimationFrame(M.value),c.value=!1);const D="touches"in z?z.touches[0]:z;y.value=D.clientX,f.value=D.clientY,h.value=null,d.value=s.value,$.value=0,v.value=0,C.value=0,k.value=performance.now(),r.value&&(r.value.style.scrollSnapType="none"),document.addEventListener("mousemove",V,{passive:!1}),document.addEventListener("mouseup",j),document.addEventListener("touchmove",V,{passive:!1}),document.addEventListener("touchend",j)},V=z=>{const D="touches"in z?z.touches[0]:z;if(!h.value){const Ee=Math.abs(D.clientX-y.value),fe=Math.abs(D.clientY-f.value),Te=5;if(Ee>Te||fe>Te)if(l.sliderOrientation==="horizontal")if(Ee>fe)h.value="horizontal",m.value=!0;else{T();return}else if(fe>Ee)h.value="vertical",m.value=!0;else{T();return}else return}if(!m.value||!a.value||!r.value)return;z.cancelable&&z.preventDefault();const P=performance.now(),F=P-k.value,K=l.sliderOrientation==="horizontal"?D.clientX:D.clientY,R=l.sliderOrientation==="horizontal"?y.value:f.value,te=l.sliderOrientation==="horizontal"?v.value||R:C.value||R,W=K-te;F>0&&($.value=W/F*1e3);const oe=K-R;let Z=d.value-oe;Z<0?Z=Z*.3:Z>I.value&&(Z=I.value+(Z-I.value)*.3),Y.value=Z,a.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-Y.value}px, 0, 0)`:`translate3d(0, ${-Y.value}px, 0)`,l.sliderOrientation==="horizontal"?v.value=K:C.value=K,k.value=P},T=()=>{document.removeEventListener("mousemove",V),document.removeEventListener("mouseup",j),document.removeEventListener("touchmove",V),document.removeEventListener("touchend",j)},j=()=>{if(!m.value||!r.value||!a.value)return;const D=l.sliderOrientation==="horizontal"?d.value-(v.value-y.value):d.value-(C.value-f.value),P=Math.max(0,Math.min(D,I.value)),F=b()+N.value;if(m.value=!1,T(),s.value=P,l.infinite){if(D<0){O(i.value-1);return}else if(D>I.value){O(0);return}}else if(D<0){O(0);return}else if(D>I.value){const W=Math.max(0,i.value-Math.floor(w.value));O(W);return}const K=Math.max(0,i.value-Math.floor(w.value)),R=100,te=Math.round(P/F);if(Math.abs($.value)>R){const W=-Math.sign($.value),oe=te+W;O(Math.max(0,Math.min(K,oe)))}else O(Math.max(0,Math.min(K,te)))},A=()=>{!l.autoplay||U.value!==null||(U.value=setInterval(()=>{q()},l.autoplayInterval))},H=()=>{U.value!==null&&(clearInterval(U.value),U.value=null)},ee=()=>{H(),setTimeout(()=>{A()},500)},re=()=>{u.value=window.innerWidth},Qe=()=>{if(!r.value||w.value<=0||(x(),i.value===0))return;const z=b();if(z<=0)return;const D=Math.max(0,i.value-w.value),P=Math.min(Math.max(0,l.initialSlide),D),F=P*(z+N.value),K=I.value,R=Math.max(0,Math.min(F,K));a.value&&(a.value.style.transitionDuration="0ms",a.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-R}px, 0, 0)`:`translate3d(0, ${-R}px, 0)`),s.value=R,o.value=P};e.onUnmounted(()=>{window.removeEventListener("resize",re)});let _t=!1;return e.onMounted(()=>{var D,P,F,K,R,te,W,oe;u.value=window.innerWidth;const z=e.watch(i,Z=>{Z>0&&!_t&&(Qe(),_t=!0,z())});l.autoplay&&A(),window.addEventListener("resize",re),x(),(D=r.value)==null||D.addEventListener("mousedown",E),(P=r.value)==null||P.addEventListener("touchstart",E,{passive:!0}),l.showNavigationButtons&&((R=(K=(F=r.value)==null?void 0:F.parentElement)==null?void 0:K.querySelector(".absolute.flex.justify-between"))==null||R.addEventListener("click",ee)),l.showIndicators&&((oe=(W=(te=r.value)==null?void 0:te.parentElement)==null?void 0:W.querySelector(".bottom-5.flex.justify-center"))==null||oe.addEventListener("click",ee))}),e.onUnmounted(()=>{window.removeEventListener("resize",re)}),e.watch(()=>l.autoplay,z=>{z?A():H()}),e.watch(()=>l.autoplayInterval,ee),e.watch(()=>l.initialSlide,z=>{requestAnimationFrame(()=>O(z,!0))}),e.watch([w,N],()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{if(x(),i.value===0)return;const z=Math.max(0,i.value-w.value),D=Math.min(o.value,z);O(D,!0)})})}),n({scrollToSlide:O}),(z,D)=>(e.openBlock(),e.createElementBlock("div",Vn,[e.createElementVNode("div",{ref_key:"carouselContainer",ref:r,class:e.normalizeClass(["rounded w-full h-full carousel",[{"carousel-horizontal":t.sliderOrientation=="horizontal"},{"carousel-vertical":t.sliderOrientation=="vertical"},{"cursor-grabbing !select-none":m.value}]]),style:{scrollSnapType:"none"}},[e.createElementVNode("div",{ref_key:"slidesContainer",ref:a,class:e.normalizeClass(["w-full h-full transition-transform duration-0 ease-out",t.sliderOrientation==="horizontal"?"flex":"block"]),style:e.normalizeStyle({gap:`${N.value}px`})},[e.renderSlot(z.$slots,"default",{},void 0,!0)],6)],2),t.showNavigationButtons?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([{"top-1/2 right-5 left-5 z-10 absolute flex justify-between items-center -translate-y-1/2 transform":t.sliderOrientation==="horizontal"},{"right-0 absolute flex justify-between items-center -translate-y-1/2 transform rotate-90 top-1/2 gap-3":t.sliderOrientation==="vertical"}])},[e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[l.infinite||o.value>0?(e.openBlock(),e.createElementBlock("div",Nn,[e.createElementVNode("div",{onClick:J,role:"button","aria-label":"Previous Slide"},[e.renderSlot(z.$slots,"prevButton",{},()=>[D[0]||(D[0]=e.createElementVNode("button",{class:"btn btn-circle text-xs",tabindex:"-1"},"❮",-1))],!0)])])):e.createCommentVNode("",!0)]),_:3}),D[2]||(D[2]=e.createElementVNode("div",{class:"flex-grow"},null,-1)),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[l.infinite||o.value<i.value-w.value?(e.openBlock(),e.createElementBlock("div",Dn,[e.createElementVNode("div",{onClick:q,role:"button","aria-label":"Next Slide"},[e.renderSlot(z.$slots,"nextButton",{},()=>[D[1]||(D[1]=e.createElementVNode("button",{class:"btn btn-circle text-xs",tabindex:"-1"},"❯",-1))],!0)])])):e.createCommentVNode("",!0)]),_:3})],2)):e.createCommentVNode("",!0),t.showIndicators?(e.openBlock(),e.createElementBlock("div",zn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(P,F)=>(e.openBlock(),e.createElementBlock("button",{key:`dot-${F}`,onClick:K=>g(F),class:e.normalizeClass(["btn btn-circle btn-xs",{"btn-active":F===o.value}]),"aria-label":`Go to slide ${F+1}`},null,10,Tn))),128))])):e.createCommentVNode("",!0)]))}}),ie=(t,n)=>{const l=t.__vccOpts||t;for(const[o,r]of n)l[o]=r;return l},In=ie(Mn,[["__scopeId","data-v-dd58428c"]]),On=ie(e.defineComponent({__name:"carouselItem",setup(t){const n=e.inject(lt,e.ref({}));return(l,o)=>(e.openBlock(),e.createElementBlock("div",{class:"w-full h-full carousel-item",style:e.normalizeStyle(e.unref(n))},[e.renderSlot(l.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-507384bc"]]),Pn={class:"flex gap-4 bg-base-100 w-full tabs tabs-boxed"},Ln=["onClick"],jn={key:0,class:"inline-component-wrapper flex grow justify-center items-center w-full h-full"},An={key:1,class:"flex flex-col"},Fn={class:"text-sm"},_n={key:0,class:"opacity-75 overflow-hidden text-xs truncate ..."},Un={key:1,class:"hidden md:block opacity-35 overflow-hidden text-xs truncate ..."},Rn={class:"hidden"},qn=["id"],Hn={class:"modal-box"},Wn={class:"font-bold text-lg"},Kn=["name","checked"],Yn={class:"collapse-title flex justify-between items-center pr-4 w-full font-medium text-xl"},Xn={key:0,class:"opacity-75 overflow-hidden text-sm truncate ..."},Jn={key:1,class:"opacity-35 text-sm"},Gn={class:"collapse-content flex place-content-center p-0"},Zn=ie(e.defineComponent({__name:"advancedSearch",props:{searchOptions:{},currentCategory:{},id:{},value:{}},emits:["search","update:search-data"],setup(t,{emit:n}){const l=t,o=n,r=l.id??`advancedSearch-${e.useId()}`,a=e.ref(null),s=e.ref(null),c={datetime:e.defineAsyncComponent(()=>Promise.resolve().then(()=>fo)),"standard-select":e.defineAsyncComponent(()=>Promise.resolve().then(()=>So)),"custom-text":e.defineAsyncComponent(()=>Promise.resolve().then(()=>qo))},i=e.ref({}),u=e.ref({left:"0px",top:"0px",transform:"translateX(0%)"}),m=e.ref(null),y=h=>{var B;if(h.value===void 0||h.value===null||h.value==="")return"";switch(h.type){case"datetime":if(typeof h.value=="string")try{const w=new Date(h.value);if(!isNaN(w.getTime()))return w.toLocaleString()}catch{}else if(h.range&&typeof h.value=="object"&&h.value!==null&&"start"in h.value&&"end"in h.value)try{const w=new Date(h.value.start),N=new Date(h.value.end);if(!isNaN(w.getTime())&&!isNaN(N.getTime()))return`${w.toLocaleDateString()} - ${N.toLocaleDateString()}`}catch{}break;case"custom-range":if(typeof h.value=="object"&&h.value!==null&&"start"in h.value&&"end"in h.value)return`${h.value.start} - ${h.value.end}`;break;case"custom-number":if(typeof h.value=="number")return h.value.toString();break;case"standard-select":case"custom-select":if((B=h.props)!=null&&B.options&&Array.isArray(h.props.options)){const w=h.props.options.find(N=>N.value===h.value);if(w)return w.text}return String(h.value);case"custom-text":if(typeof h.value=="string")return h.value;break}return String(h.value)};function f(h){var p,x;const B=(p=a.value)==null?void 0:p.name;if(!B){console.warn("componentValueUpdated called but no active tab.");return}const w=(x=l.searchOptions.find(b=>(b==null?void 0:b.category)===l.currentCategory))==null?void 0:x.tabs,N=w==null?void 0:w.find(b=>b.name===B);N?(N.value=h,o("update:search-data",{tab:N.name,data:h})):console.error(`Tab with name "${B}" not found in current category.`)}function d(h){f(h)}function $(){o("search")}async function v(h){var N;const B=document.getElementById(`advancedSearchMobile-${r}`),w=B&&B.contains(h.target);((N=a.value)==null?void 0:N.displayMode)==="popup"&&m.value&&!m.value.contains(h.target)&&!w&&(await e.nextTick(),a.value=null)}async function C(){if(typeof window<"u"&&window.innerWidth<=768){const h=document.getElementById(`advancedSearchMobile-${r}`);h?(a.value=null,h.showModal()):console.warn(`Mobile modal element not found. Ensure it exists with id="advancedSearchMobile-${r}".`)}}async function k(h){var w,N,p;if(typeof window<"u"&&window.innerWidth<=768){C();return}const B=h.displayMode??"popup";if(((w=a.value)==null?void 0:w.name)===h.name&&((N=a.value)==null?void 0:N.displayMode)===B)a.value=null;else if(a.value={...h,displayMode:B},await e.nextTick(),((p=a.value)==null?void 0:p.displayMode)==="popup"){const x=i.value[h.name];if(x&&m.value){const b=x.getBoundingClientRect(),I=m.value.getBoundingClientRect(),O=b.bottom-I.top,q=b.left+b.width/2-I.left;u.value={left:`${q}px`,top:`${O+8}px`,transform:"translateX(-50%)"}}else console.error("Tab element or search container not found for positioning:",h.name)}}const M=h=>{const B=h.relatedTarget;setTimeout(()=>{var w;((w=a.value)==null?void 0:w.displayMode)==="inline"&&m.value&&(!B||!m.value.contains(B))?(console.log("Blur detected outside container, closing inline view."),a.value=null):console.log("Blur detected, but staying within container or not an inline tab.")},50)},U=()=>{console.log("Enter key pressed on inline component, closing inline view."),a.value=null};e.watch(s,h=>{var B;console.log("advanced-search: inlineComponentRef changed. New Value:",h),console.log("advanced-search: activeTab.value:",a.value),h&&((B=a.value)==null?void 0:B.displayMode)==="inline"?(console.log("advanced-search: Inline component ref is available and active tab is inline. Attempting to focus child input..."),e.nextTick(()=>{console.log("advanced-search: Inside nextTick. Attempting to call child's focus method..."),console.log("advanced-search: Type of newValue:",typeof h),console.log("advanced-search: Does newValue have focusInput?",typeof h.focusInput=="function"),h&&typeof h.focusInput=="function"?(console.log("advanced-search: Calling exposed focusInput() method on child instance."),h.focusInput()):console.warn('advanced-search: Child inline component instance does not expose a "focusInput" method or is not ready.',h)})):console.log(h?"advanced-search: inlineComponentRef available, but active tab is not inline.":"advanced-search: inlineComponentRef is now null (component likely unmounted).")}),e.onMounted(()=>{document.addEventListener("click",v),window.addEventListener("resize",Y)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",v),window.removeEventListener("resize",Y)});const Y=()=>{var h,B;if(typeof window<"u"){const w=window.innerWidth<=768,N=a.value!==null&&(a.value.displayMode==="popup"||a.value.displayMode==="inline")&&window.innerWidth>768;!w&&(((h=a.value)==null?void 0:h.displayMode)==="popup"||((B=a.value)==null?void 0:B.displayMode)==="inline")&&window.innerWidth<=768&&(console.log("Resizing to mobile, closing active tab."),a.value=null),w&&!N&&a.value!==null&&(console.log("Resizing to desktop from potential mobile active state, closing active tab."),a.value=null);const p=document.getElementById(`advancedSearchMobile-${r}`);p!=null&&p.open&&!w&&(console.log("Modal is open on desktop, closing modal and active tab."),p.close(),a.value=null)}};return(h,B)=>{var w,N;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{ref_key:"searchContainer",ref:m,class:"w-full"},[e.createElementVNode("div",{class:"group/search relative flex place-items-center shadow-md p-2 border-2 border-base-300/25 rounded-sm w-full transition-all cursor-pointer md:cursor-auto",onClick:C},[e.createElementVNode("div",Pn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((w=l.searchOptions.find(p=>p.category===l.currentCategory))==null?void 0:w.tabs)||[],(p,x)=>{var b,I,O,q,J;return e.openBlock(),e.createElementBlock("button",{key:`${p.name}-${x}`,onClick:e.withModifiers(g=>k(p),["stop"]),class:e.normalizeClass([{"tab-active":((b=a.value)==null?void 0:b.name)===p.name,"tab-active-inline":((I=a.value)==null?void 0:I.name)===p.name&&((O=a.value)==null?void 0:O.displayMode)==="inline"},"group/searchitem after:top-0 after:-right-2 after:absolute relative first-of-type:flex-auto last-of-type:flex-auto after:bg-base-200 hover:bg-base-200 p-1 rounded-sm w-auto after:w-px after:h-10 overflow-x-hidden text-start md:after:content-[''] after:content-none last-of-type:after:content-none"]),ref_for:!0,ref:g=>i.value[p.name]=g},[((q=a.value)==null?void 0:q.name)===p.name&&((J=a.value)==null?void 0:J.displayMode)==="inline"?(e.openBlock(),e.createElementBlock("div",jn,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c[a.value.type]),e.mergeProps({ref_for:!0},a.value.props||{},{modelValue:a.value.value,onUpdated:B[0]||(B[0]=g=>d(g)),"onUpdate:modelValue":B[1]||(B[1]=g=>d(g)),onBlur:M,onKeydown:e.withKeys(e.withModifiers(U,["stop","prevent"]),["enter"]),ref_for:!0,ref_key:"inlineComponentRef",ref:s}),null,16,["modelValue","onKeydown"]))])):(e.openBlock(),e.createElementBlock("div",An,[e.createElementVNode("p",Fn,e.toDisplayString(p.name),1),p.value!==void 0&&p.value!==null&&p.value!==""?(e.openBlock(),e.createElementBlock("p",_n,e.toDisplayString(y(p)),1)):(e.openBlock(),e.createElementBlock("p",Un,e.toDisplayString(p.description),1))]))],10,Ln)}),128))]),a.value&&a.value.displayMode==="popup"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"absolute flex shadow-sm mt-4 w-fit max-w-full transition-all tab-content",style:e.normalizeStyle(u.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c[a.value.type]),e.mergeProps(a.value.props||{},{modelValue:a.value.value,onUpdated:B[2]||(B[2]=p=>f(p)),"onUpdate:modelValue":B[3]||(B[3]=p=>f(p))}),null,16,["modelValue"]))],4)):e.createCommentVNode("",!0),e.createElementVNode("button",{title:"search",type:"submit",class:"ml-1 btn btn-primary btn-square",onClick:e.withModifiers($,["stop"])},[e.createVNode(e.unref(ot),{size:24,color:"white"})])]),e.createElementVNode("div",Rn,[e.createElementVNode("button",{title:"search",onClick:B[4]||(B[4]=()=>{})},[e.createVNode(e.unref(ot),{size:24,color:"white"})])])],512),e.createElementVNode("dialog",{id:`advancedSearchMobile-${e.unref(r)}`,class:"modal"},[e.createElementVNode("div",Hn,[e.renderSlot(h.$slots,"additionalForMobile",{},()=>[e.createElementVNode("h3",Wn,e.toDisplayString(t.currentCategory),1)],!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((N=l.searchOptions.find(p=>p.category===l.currentCategory))==null?void 0:N.tabs)||[],(p,x)=>(e.openBlock(),e.createElementBlock("div",{class:"collapse bg-base-200 my-4",key:p.name},[e.createElementVNode("input",{type:"radio",name:`accordion-${e.unref(r)}`,checked:x===0},null,8,Kn),e.createElementVNode("div",Yn,[e.createElementVNode("div",null,e.toDisplayString(p.name),1),p.value!==void 0&&p.value!==null&&p.value!==""?(e.openBlock(),e.createElementBlock("div",Xn,e.toDisplayString(y(p)),1)):(e.openBlock(),e.createElementBlock("div",Jn,e.toDisplayString(p.description),1))]),e.createElementVNode("div",Gn,[B[7]||(B[7]=e.createElementVNode("br",null,null,-1)),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c[p.type]),e.mergeProps({ref_for:!0},p.props||{},{modelValue:p.value,onUpdated:B[5]||(B[5]=b=>f(b)),"onUpdate:modelValue":B[6]||(B[6]=b=>f(b))}),null,16,["modelValue"]))])]))),128)),e.createElementVNode("div",{class:"modal-action"},[e.createElementVNode("form",{method:"dialog"},[e.createElementVNode("button",{class:"btn btn-primary",onClick:$}," Close and Search ")])])])],8,qn)],64)}}}),[["__scopeId","data-v-577c3624"]]),Qn={class:"z-30 relative flex items-center bg-base-100 date-filter-input px-4 border-2 border-primary rounded-md w-full min-h-10 font-semibold text-primary text-sm"},eo={key:0},to={key:1},no=["id","onKeydown"],oo={key:2,class:"flex justify-center p-4"},lo={class:"join items-center gap-2 max-w-2xs md:max-w-full justify-between max-md:input max-md:input-bordered !rounded overflow-hidden mx-auto"},ao={class:"join-item"},ro=["id","disabled","value"],so={class:"join-item"},io=["id","disabled","value"],co={key:3,class:"p-4 min-w-2xs"},uo=["id","disabled","value"],mo={key:4,class:"flex px-4 my-4 w-full justify-end"},at=ie(e.defineComponent({__name:"datetimePicker",props:{mode:{default:"datetime"},range:{type:Boolean,default:!1},placeholder:{default:"Select date and time"},popup:{type:Boolean,default:!1},id:{default:"date-time-picker"},initialDate:{default:null},disabled:{type:Boolean,default:!1},locale:{default:"en-US"},format:{},firstDayOfWeek:{default:1},min:{},max:{},closeText:{default:"Close"}},emits:["update:modelValue","change"],setup(t,{emit:n}){const l=typeof window<"u",o=t,r=n,a=e.ref(null),s=e.ref(!1),c=e.ref(null),i=e.ref(null),u=e.ref(null),m=e.ref(null),y=e.ref(null),f=e.ref({from:"",to:"",single:""}),d=e.ref({single:null,start:null,end:null}),$=g=>g instanceof Date?g.toISOString():g,v=g=>g.split("T")[0]||"",C=g=>{const E=g instanceof Date?g:new Date(g);if(isNaN(E.getTime()))return"";const V=String(E.getHours()).padStart(2,"0"),T=String(E.getMinutes()).padStart(2,"0");return`${V}:${T}`},k=()=>{const g=new Date,E=C(g);let V=o.initialDate;if(!V&&o.mode!=="time"&&(V=o.range?{start:g,end:g}:g),!!V){if(!V){o.mode==="time"&&(o.range?(f.value.from=E,f.value.to=E):f.value.single=E);return}if(o.range&&typeof V=="object"&&"start"in V){const T=$(V.start),j=$(V.end);d.value.start=v(T),d.value.end=v(j),o.mode!=="date"&&(f.value.from=C(T),f.value.to=C(j))}else{const T=$(V);d.value.single=v(T),o.mode!=="date"&&(f.value.single=C(T))}}},M=e.computed(()=>{const g=T=>{if(!T)return"";if(T.includes(":"))return T;try{return new Date(T+"T00:00:00").toLocaleDateString(o.locale,{year:"numeric",month:"numeric",day:"numeric"})}catch{const[j,A,H]=T.split("-");return`${H}/${A}/${j}`}};let E="",V="";if((o.mode==="date"||o.mode==="datetime")&&(o.range?d.value.start&&d.value.end&&(E=`${d.value.start} - ${d.value.end}`):d.value.single&&(E=d.value.single)),(o.mode==="time"||o.mode==="datetime")&&(o.range?f.value.from&&f.value.to&&(V=`${f.value.from} - ${f.value.to}`):f.value.single&&(V=f.value.single)),o.mode==="date")return o.range?E.split(" - ").map(g).join(" - "):g(E);if(o.mode==="time")return V;if(o.mode==="datetime")if(o.range){const T=d.value.start,j=d.value.end,A=f.value.from,H=f.value.to;if(T&&j&&A&&H)return`${g(T)} ${A} - ${g(j)} ${H}`;if(T)return`${g(T)} ${A||""}`.trim()}else{const T=d.value.single,j=f.value.single;return`${g(T)} ${j||""}`.trim()}return""}),U=()=>{if(c.value)d.value.single=c.value.value||null;else if(i.value){const g=i.value.value;if(typeof g=="string"&&g.includes("/")){const[E,V]=g.split("/");d.value.start=E||null,d.value.end=V||null}else d.value.start=g||null,d.value.end=g||null}},Y=()=>d.value.start&&d.value.end?`${d.value.start}/${d.value.end}`:null,h=()=>{if(o.range){const V=d.value.start,T=d.value.end||d.value.start,j=f.value.from,A=f.value.to;if(o.mode==="time")return j&&A?{start:j,end:A}:null;if(o.mode==="date")return V&&T?{start:V,end:T}:null;if(o.mode==="datetime"){if(!V||!T)return null;const H=j?`${j}:00`:"00:00:00",ee=A?`${A}:00`:"23:59:59",re=`${V}T${H}`,Qe=`${T}T${ee}`;return{start:re,end:Qe}}return null}const g=d.value.single,E=f.value.single;if(o.mode==="time")return E||null;if(o.mode==="date")return g||null;if(o.mode==="datetime"){if(!g)return null;const V=E?`${E}:00`:"00:00:00";return`${g}T${V}`}return null},B=async()=>{U();const g=h();r("update:modelValue",g),r("change",g)},w=()=>{e.nextTick(()=>{B()})},N=g=>{const E=g.target;o.range?E===m.value?f.value.from=E.value:E===y.value&&(f.value.to=E.value):f.value.single=E.value,B()},p=()=>{s.value=!s.value},x=()=>{B(),s.value=!1},b=g=>{!o.popup||!s.value||setTimeout(()=>{const E=a.value,V=g.target,T=`date-picker-${o.id}-popup`;E&&!E.contains(V)&&!g.target.closest(`#${T}`)&&x()},0)},I=()=>{x()},O=()=>{B(),o.popup&&(s.value=!1)},q=()=>{if(!l)return;const g=o.range?i.value:c.value;g&&typeof g.navigate=="function"&&g.navigate(-1)},J=()=>{if(!l)return;const g=o.range?i.value:c.value;g&&typeof g.navigate=="function"&&g.navigate(1)};return e.onMounted(()=>{l&&Promise.resolve().then(()=>ya).catch(g=>{console.warn("Failed to load cally:",g)}),k()}),e.watch(d,async g=>{if(await e.nextTick(),c.value&&g.single){const E=g.single;c.value.value!==E&&(c.value.value=E)}if(i.value){const E=Y();E&&i.value.value!==E&&(i.value.value=E)}B()},{immediate:!0,deep:!0}),e.watch([d,c,i],async()=>{await e.nextTick(),c.value&&d.value.single&&!c.value.value&&(c.value.value=d.value.single),i.value&&d.value.start&&d.value.end&&!i.value.value&&(i.value.value=`${d.value.start}/${d.value.end}`),B()},{immediate:!0}),e.watch([u,m,y],()=>{B()},{immediate:!0}),(g,E)=>{const V=e.resolveComponent("calendar-month"),T=e.resolveComponent("calendar-date"),j=e.resolveComponent("calendar-range");return e.openBlock(),e.createElementBlock("div",{class:"inline-block relative w-fit lg:w-full",ref_key:"pickerContainer",ref:a,onMousedownCapture:b},[o.popup?(e.openBlock(),e.createElementBlock("div",{key:0,class:"flex items-center gap-2 cursor-pointer w-full",onClick:E[0]||(E[0]=A=>o.disabled?null:p())},[e.createElementVNode("div",Qn,[M.value?(e.openBlock(),e.createElementBlock("span",to,e.toDisplayString(M.value),1)):(e.openBlock(),e.createElementBlock("span",eo,e.toDisplayString(o.placeholder),1))])])):e.createCommentVNode("",!0),s.value||!o.popup?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["z-50 bg-base-100 rounded-md w-full min-w-xs overflow-hidden",{"absolute top-full left-0 mt-2 shadow-lg":o.popup,"mt-2":!o.popup}]),id:`date-picker-${o.id}-popup`,onKeydown:[E[1]||(E[1]=e.withKeys(e.withModifiers(()=>{},["prevent","stop"]),["tab"])),e.withKeys(I,["esc"]),e.withKeys(e.withModifiers(O,["prevent"]),["enter"])]},[!o.range&&o.mode!=="time"&&l?(e.openBlock(),e.createBlock(T,{key:0,class:"cally w-full",ref_key:"datePicker",ref:c,id:`${o.id}-date`,min:o.min,max:o.max,disabled:o.disabled,"first-day-of-week":o.firstDayOfWeek,onChange:w},{default:e.withCtx(()=>[e.createElementVNode("button",{slot:"previous",class:"btn-outline btn btn-primary md:btn-sm",onClick:q},[...E[2]||(E[2]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1)])]),e.createElementVNode("button",{slot:"next",class:"btn-outline btn btn-primary md:btn-sm",onClick:J},[...E[3]||(E[3]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"})],-1)])]),e.createVNode(V,{locale:o.locale},null,8,["locale"])]),_:1},8,["id","min","max","disabled","first-day-of-week"])):e.createCommentVNode("",!0),o.range&&o.mode!=="time"&&l?(e.openBlock(),e.createBlock(j,{key:1,class:"cally w-full",ref_key:"rangeDatePicker",ref:i,id:`${o.id}-date-range`,min:o.min,max:o.max,disabled:o.disabled,"first-day-of-week":o.firstDayOfWeek,onChange:w},{default:e.withCtx(()=>[e.createElementVNode("button",{slot:"previous",class:"btn-outline btn btn-primary md:btn-sm",onClick:q},[...E[4]||(E[4]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1)])]),e.createElementVNode("button",{slot:"next",class:"btn-outline btn btn-primary md:btn-sm",onClick:J},[...E[5]||(E[5]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"})],-1)])]),e.createVNode(V,{locale:o.locale},null,8,["locale"])]),_:1},8,["id","min","max","disabled","first-day-of-week"])):e.createCommentVNode("",!0),o.range&&o.mode!=="date"?(e.openBlock(),e.createElementBlock("div",oo,[e.createElementVNode("div",lo,[e.createElementVNode("div",ao,[e.createElementVNode("input",{class:"text-center hover:border-b-2 hover:-mb-0.5 open:bg-primary open:p-1 open:-m-0.5 open:rounded w-full relative",type:"time",ref_key:"timeFromInput",ref:m,id:`${o.id}-time-from`,placeholder:"from",onChange:N,disabled:o.disabled,value:f.value.from||""},null,40,ro)]),E[6]||(E[6]=e.createElementVNode("svg",{class:"join-item",viewBox:"0 0 1024 1024",focusable:"false","data-icon":"swap-right",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"})],-1)),e.createElementVNode("div",so,[e.createElementVNode("input",{class:"text-center hover:border-b-2 hover:-mb-0.5 open:bg-primary open:p-1 open:-m-0.5 open:rounded w-full relative",type:"time",ref_key:"timeToInput",ref:y,id:`${o.id}-time-to`,onChange:N,disabled:o.disabled,value:f.value.to||""},null,40,io)])])])):e.createCommentVNode("",!0),!o.range&&o.mode!=="date"?(e.openBlock(),e.createElementBlock("div",co,[e.createElementVNode("input",{class:"open:bg-primary open:rounded w-full input input-bordered justify-center",type:"time",ref_key:"timeInput",ref:u,id:`${o.id}-time`,onChange:N,disabled:o.disabled,value:f.value.single||""},null,40,uo)])):e.createCommentVNode("",!0),o.popup&&o.closeText?(e.openBlock(),e.createElementBlock("div",mo,[e.createElementVNode("button",{class:"btn btn-primary max-lg:w-full",onClick:x},e.toDisplayString(o.closeText),1)])):e.createCommentVNode("",!0)],42,no)):e.createCommentVNode("",!0)],544)}}}),[["__scopeId","data-v-e0b34494"]]),fo=Object.freeze(Object.defineProperty({__proto__:null,default:at},Symbol.toStringTag,{value:"Module"})),po=["value","checked","onChange","disabled"],ho=e.defineComponent({__name:"rating",props:{initialRating:{default:0},numberOfStars:{default:5},halfStars:{type:Boolean,default:!0},isInteractive:{type:Boolean,default:!1},size:{default:"sm"},shape:{default:"star"},color:{default:"bg-yellow-400"},gap:{default:0}},setup(t){const n=t,l=e.ref(n.initialRating);e.watch(()=>n.initialRating,r=>{l.value=r});const o=r=>{l.value=r};return(r,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["rating",[`rating-${n.size}`,{"rating-half":t.halfStars},{"pointer-events-none":!t.isInteractive}]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.numberOfStars*(t.halfStars?2:1),s=>(e.openBlock(),e.createElementBlock("input",{key:s,type:"radio",value:t.halfStars?s*.5:s,checked:l.value===(t.halfStars?s*.5:s),onChange:c=>t.isInteractive?o(t.halfStars?s*.5:s):null,class:e.normalizeClass(["mask",[{"mask-half-1":t.halfStars&&s%2!==0,"mask-half-2":t.halfStars&&s%2===0,"cursor-pointer":t.isInteractive,"cursor-default":!t.isInteractive,"mask-star":t.shape==="star","mask-star-2":t.shape==="star-bold","mask-heart":t.shape==="heart","mask-hexagon":t.shape==="hexagon-vertical","mask-hexagon-2":t.shape==="hexagon-horizontal","mask-decagon":t.shape==="decagon","mask-pentagon":t.shape==="pentagon","mask-diamond":t.shape==="diamond","mask-square":t.shape==="square","mask-triangle":t.shape==="triangle-top","mask-triangle-2":t.shape==="triangle-bottom","mask-triangle-3":t.shape==="triangle-left","mask-triangle-4":t.shape==="triangle-right"},l.value>=(t.halfStars?s*.5:s)?n.color:""]]),style:e.normalizeStyle({marginRight:t.halfStars&&s%2===0?`${n.gap}px`:t.halfStars?"0":`${n.gap}px`}),disabled:!t.isInteractive},null,46,po))),128))],2))}}),go={class:"badge"},yo=["onClick"],bo={class:"opacity-75"},ko=["placeholder"],wo=e.defineComponent({__name:"taginput",props:{modelValue:{},maxTagAmount:{},placeholder:{},class:{}},emits:["update:modelValue"],setup(t,{emit:n}){const l=t,o=n,r=e.ref([...l.modelValue]),a=l.maxTagAmount===void 0?-1:l.maxTagAmount,s=e.ref(null),c=e.ref(""),i=e.computed(()=>a<0||r.value.length<a),u=()=>{const d=c.value.trim();d&&!r.value.includes(d)&&(r.value.push(d),o("update:modelValue",r.value),c.value="")},m=d=>{r.value=r.value.filter($=>$!==d),o("update:modelValue",r.value)},y=()=>{c.value===""&&(r.value.pop(),o("update:modelValue",r.value))},f=d=>{d.key==="Enter"?u():d.key==="Backspace"&&c.value===""&&y()};return e.watch(()=>l.modelValue,d=>{r.value=[...d]}),(d,$)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex flex-wrap gap-2 bg-base-100 shadow px-4 py-6 border border-base-content/20 rounded",d.$props.class])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,v=>e.renderSlot(d.$slots,"tag",{key:v,tag:v},()=>[e.createElementVNode("div",go,[e.createElementVNode("button",{class:"px-1! py-0! h-fit font-bold cursor-pointer",onClick:C=>m(v),"aria-label":"Remove tag"},"X",8,yo),e.createElementVNode("span",bo,e.toDisplayString(v),1)])])),128)),e.renderSlot(d.$slots,"input",{showInput:i.value},()=>[i.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,ref_key:"inputRef",ref:s,"onUpdate:modelValue":$[0]||($[0]=v=>c.value=v),type:"text",placeholder:t.placeholder||"Type here",class:"h-full input input-ghost",onKeydown:f,"aria-label":"Add tags"},null,40,ko)),[[e.vModelText,c.value]]):e.createCommentVNode("",!0)])],2))}}),vo={class:"w-full max-w-xs form-control"},xo={key:0,class:"label"},Eo={class:"label-text"},Bo=["value"],$o={key:0,value:"",disabled:"",selected:""},Co=["value"],rt=e.defineComponent({__name:"select",props:{options:{},label:{},placeholder:{},modelValue:{}},emits:["update:modelValue"],setup(t,{expose:n,emit:l}){console.log(t.placeholder);const r=l,a=e.ref(null),s=i=>{const u=i.target;r("update:modelValue",u.value)};return n({focusInput:()=>{var i;console.log("select.vue: focusInput method called."),(i=a.value)==null||i.focus()}}),(i,u)=>(e.openBlock(),e.createElementBlock("div",vo,[t.label?(e.openBlock(),e.createElementBlock("label",xo,[e.createElementVNode("span",Eo,e.toDisplayString(t.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("select",{ref_key:"selectElement",ref:a,class:"rounded-md w-full select-bordered select",value:t.modelValue,onChange:s},[t.placeholder?(e.openBlock(),e.createElementBlock("option",$o,e.toDisplayString(t.placeholder),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,m=>(e.openBlock(),e.createElementBlock("option",{key:m.value,value:m.value},e.toDisplayString(m.text),9,Co))),128))],40,Bo)]))}}),So=Object.freeze(Object.defineProperty({__proto__:null,default:rt},Symbol.toStringTag,{value:"Module"})),Vo={key:0,class:"label"},No={class:"label-text"},Do=["onKeydown","aria-expanded","aria-activedescendant"],zo=["placeholder","disabled"],To={class:"top-full z-10 absolute bg-base-100 shadow-lg mt-1 rounded-md w-full dropdown-content",role:"listbox"},Mo={class:"flex-nowrap p-0 w-[inherit] max-h-60 overflow-y-auto menu"},Io=["onMousedown","id","aria-selected"],Oo={__name:"filterableSelect",props:{options:{type:Array,required:!0,default:()=>[]},label:{type:String,default:""},placeholder:{type:String,default:"Select an option"},modelValue:{type:[String,Number,Object,null],default:null},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","select","clear"],setup(t,{expose:n,emit:l}){const o=t,r=l,a=e.useSlots(),s=e.computed(()=>{const x=(a.default?a.default():[]).filter(b=>b.type!==e.Comment);return console.log("hasDefaultSlotContent computed:",x.length>0),x.length>0}),c=e.ref(""),i=e.ref(null),u=e.ref(!1),m=e.ref(null),y=e.ref(null),f=e.ref(null),d=e.ref(null),$=()=>{u.value=!o.disabled},v=()=>{u.value=!1,d.value=null,s.value||(i.value&&c.value!==i.value.text?c.value=i.value.text:i.value||(c.value=""))},C=()=>{u.value?v():$()},k=e.computed(()=>{const p=c.value?c.value.toLowerCase():"";return p===""&&!u.value?[]:o.options.filter(b=>b&&b.text?b.text.toLowerCase().includes(p):"")});e.watch(()=>o.modelValue,(p,x)=>{if(p!==x&&v(),p==null)i.value=null,!u.value&&!s.value&&(c.value="");else{const b=o.options.find(I=>I.value===p);b?(i.value=b,!u.value&&!s.value&&(c.value=b.text)):(i.value=null,!u.value&&!s.value&&(c.value=""))}},{immediate:!0});const M=p=>{y.value&&!y.value.contains(p.target)&&v()},U=()=>{setTimeout(()=>{y.value&&!y.value.contains(document.activeElement)&&v()},100)};e.watch(u,p=>{p?setTimeout(()=>{document.addEventListener("click",M)},0):document.removeEventListener("click",M)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",M),window.removeEventListener("keydown",N)});const Y=()=>{if(o.disabled)return;const p=i.value;r("update:modelValue",null),p&&r("clear",p)},h=p=>{i.value=p,s.value||(c.value=p.text),r("update:modelValue",p.value),r("select",p),v()},B=()=>{k.value.length>0&&h(k.value[0])},w=()=>{u.value||$()},N=p=>{if(!u.value||k.value.length===0)return;const x=k.value.findIndex((I,O)=>"option-"+O===d.value);let b=-1;if(p.key==="ArrowDown")p.preventDefault(),b=(x+1)%k.value.length;else if(p.key==="ArrowUp")p.preventDefault(),b=(x-1+k.value.length)%k.value.length;else if(p.key==="Enter"&&d.value){p.preventDefault();const I=k.value.find((O,q)=>"option-"+q===d.value);I&&h(I);return}else if(p.key==="Escape"){p.preventDefault(),v(),f.value&&f.value.focus();return}else if(s.value)return;if(b!==-1){d.value="option-"+b;const I=document.getElementById(d.value);I&&requestAnimationFrame(()=>{I.scrollIntoView({block:"nearest",behavior:"smooth"})})}};return e.watch(u,p=>{p?(window.addEventListener("keydown",N),!s.value&&!c.value&&i.value&&(c.value=i.value.text)):window.removeEventListener("keydown",N)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",M),window.removeEventListener("keydown",N)}),n({isDropdownOpen:u,selectedItem:i,openDropdown:$,closeDropdown:v,toggleDropdown:C,selectItem:h,filterText:c,hasDefaultSlotContent:s}),(p,x)=>(e.openBlock(),e.createElementBlock("div",{class:"relative w-full max-w-xs form-control",ref_key:"componentRoot",ref:y},[t.label?(e.openBlock(),e.createElementBlock("label",Vo,[e.createElementVNode("span",No,e.toDisplayString(t.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["flex items-center input-bordered rounded-md w-fit cursor-pointer",{input:!s.value,select:!s.value}]),style:e.normalizeStyle(i.value?"background-image: unset; padding-right: 0.5rem;":""),tabindex:"0",onClick:x[1]||(x[1]=b=>s.value?C():$()),onKeydown:[e.withKeys(e.withModifiers(B,["prevent"]),["enter"]),e.withKeys(e.withModifiers(B,["prevent"]),["space"])],onBlur:U,role:"combobox","aria-haspopup":"listbox","aria-expanded":u.value,"aria-activedescendant":d.value,"aria-autocomplete":"list",ref_key:"activatorWrapper",ref:f},[e.renderSlot(p.$slots,"default",{},()=>[s.value?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,type:"text",placeholder:t.placeholder,class:"bg-transparent border-none focus:outline-none w-full","onUpdate:modelValue":x[0]||(x[0]=b=>c.value=b),ref_key:"filterInput",ref:m,onFocus:$,onInput:w,tabindex:"-1",disabled:o.disabled},null,40,zo)),[[e.vModelText,c.value]])]),i.value&&!t.disabled?(e.openBlock(),e.createBlock(e.unref(ln),{key:0,size:20,class:"mx-2 text-base-content/50 hover:text-base-content/80 cursor-pointer",onClick:e.withModifiers(Y,["stop"])})):e.createCommentVNode("",!0),s.value&&!i.value?(e.openBlock(),e.createBlock(e.unref(on),{key:1,class:e.normalizeClass([{"rotate-180":u.value},"mx-2"]),size:20},null,8,["class"])):e.createCommentVNode("",!0)],46,Do),e.withDirectives(e.createElementVNode("div",To,[e.createElementVNode("ul",Mo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,(b,I)=>(e.openBlock(),e.createElementBlock("li",{key:b.value,onMousedown:e.withModifiers(O=>h(b),["prevent"]),class:"hover:bg-base-200 rounded-md w-full cursor-pointer",id:"option-"+I,role:"option","aria-selected":i.value&&i.value.value===b.value},[e.createElementVNode("a",null,e.toDisplayString(b.text),1)],40,Io))),128))])],512),[[e.vShow,u.value&&k.value.length>0]])],512))}},Po={class:"w-full max-w-xs form-control"},Lo={key:0,class:"label"},jo={class:"label-text"},Ao=["type","placeholder","disabled","value"],Fo={key:1,class:"label"},_o={class:"label-text-alt text-error validator-hint"},Uo={key:2,class:"label"},Ro={class:"label-text-alt text-success validator-hint"},st=e.defineComponent({__name:"inputField",props:{modelValue:{default:""},label:{default:""},placeholder:{default:""},type:{default:"text"},rules:{default:()=>({})},needsValidation:{type:Boolean,default:!1},successMessage:{default:""},size:{default:"md"},color:{default:""},style:{default:""},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","validate"],setup(t,{expose:n,emit:l}){const o=t,r=l,a=e.ref(null),s=e.ref(!1),c=e.ref(""),i=e.computed(()=>{var C,k,M,U;let d=!0,$="";const v=o.modelValue;return(C=o.rules)!=null&&C.required&&(v==null||v==="")&&(d=!1,$="This field is required."),d&&((k=o.rules)==null?void 0:k.minLength)!==void 0&&typeof v=="string"&&v.length<o.rules.minLength&&(d=!1,$=`Must be at least ${o.rules.minLength} characters.`),d&&((M=o.rules)==null?void 0:M.maxLength)!==void 0&&typeof v=="string"&&v.length>o.rules.maxLength&&(d=!1,$=`Cannot exceed ${o.rules.maxLength} characters.`),d&&((U=o.rules)!=null&&U.email)&&typeof v=="string"&&v&&(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(v)||(d=!1,$="Please enter a valid email address.")),c.value=$,r("validate",d),d}),u=e.computed(()=>s.value&&!i.value),m=d=>{const $=d.target;r("update:modelValue",$.value),s.value&&i.value},y=()=>{s.value=!0,i.value};return e.watch(()=>o.modelValue,()=>{s.value&&i.value}),n({focusInput:()=>{var d;console.log("inputField.vue: focusInput method called."),(d=a.value)==null||d.focus()},isValid:i,isTouched:s,errorMessage:c}),(d,$)=>(e.openBlock(),e.createElementBlock("div",Po,[t.label?(e.openBlock(),e.createElementBlock("label",Lo,[e.createElementVNode("span",jo,e.toDisplayString(t.label),1)])):e.createCommentVNode("",!0),e.renderSlot(d.$slots,"default"),e.createElementVNode("input",{ref_key:"inputElement",ref:a,type:t.type,placeholder:t.placeholder,disabled:o.disabled,class:e.normalizeClass(["input-bordered rounded-md w-full input validator",[{"input-xs":t.size==="xs","input-sm":t.size==="sm","input-md":t.size==="md","input-lg":t.size==="lg","input-xl":t.size==="xl","input-ghost":t.style==="ghost","input-neutral":t.color==="neutral"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-primary":t.color==="primary"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-secondary":t.color==="secondary"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-accent":t.color==="accent"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-info":t.color==="info"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-success":t.color==="success"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-warning":t.color==="warning"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-error":u.value,"input-success-validation":i.value&&s.value&&!u.value&&t.needsValidation}]]),value:t.modelValue,onInput:m,onBlur:y},null,42,Ao),u.value?(e.openBlock(),e.createElementBlock("div",Fo,[e.createElementVNode("span",_o,e.toDisplayString(c.value),1)])):i.value&&s.value&&t.successMessage?(e.openBlock(),e.createElementBlock("div",Uo,[e.createElementVNode("span",Ro,e.toDisplayString(t.successMessage),1)])):e.createCommentVNode("",!0)]))}}),qo=Object.freeze(Object.defineProperty({__proto__:null,default:st},Symbol.toStringTag,{value:"Module"})),Ho=e.defineComponent({__name:"loader",props:{loading:{type:Boolean,default:!0},size:{default:"md"},type:{default:"spinner"},color:{default:"primary"}},setup(t){const n=t,l=e.ref(n.loading);return e.watch(()=>n.loading,o=>{l.value=o}),(o,r)=>l.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["loading",[{"loading-xs":t.size==="xs"},{"loading-sm":t.size==="sm"},{"loading-md":t.size==="md"},{"loading-lg":t.size==="lg"},{"loading-xl":t.size==="xl"},{"loading-spinner":t.type==="spinner"},{"loading-dots":t.type==="dots"},{"loading-ring":t.type==="ring"},{"loading-balls":t.type==="balls"},{"loading-bars":t.type==="bars"},{"loading-infinity":t.type==="infinity"},{"text-primary":t.color==="primary"},{"text-secondary":t.color==="secondary"},{"text-accent":t.color==="accent"},{"text-neutral":t.color==="neutral"},{"text-info":t.color==="info"},{"text-success":t.color==="success"},{"text-warning":t.color==="warning"},{"text-error":t.color==="error"}]])},null,2)):e.createCommentVNode("",!0)}}),Wo={class:"footer-title"},Ko=["href"],Yo={key:0,class:"sm:hidden w-full"},Xo={class:"border-b-2 border-base-100 last:border-b-0 w-full"},Jo={tabindex:"0",class:"collapse collapse-plus w-full"},Go={class:"collapse-title font-bold text-lg collapsible-footer-title"},Zo={class:"collapse-content flex w-full text-sm"},Qo={class:"flex flex-col gap-2.5"},el={class:"w-full"},tl=["href"],nl={class:"w-full"},ol=e.defineComponent({__name:"footer",props:{items:{},background:{},color:{},collapseOnMobile:{type:Boolean,default:!1},rows:{default:1}},setup(t){const n=t;return(l,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["mx-auto md:px-10 py-10 text-base-content",[t.background??"bg-base-200",t.color??"text-base-content"]])},[e.createElementVNode("footer",{class:e.normalizeClass(["footer sm:footer-horizontal container",[{"grid-rows-1":n.rows===1},{"grid-rows-2":n.rows===2},{"grid-rows-3":n.rows===3}]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,r=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass([{"hidden sm:grid":t.collapseOnMobile}])},[e.createElementVNode("h6",Wo,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,Ko))),256))],2))),256)),t.collapseOnMobile?(e.openBlock(),e.createElementBlock("nav",Yo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,r=>(e.openBlock(),e.createElementBlock("ul",Xo,[e.createElementVNode("div",Jo,[e.createElementVNode("div",Go,e.toDisplayString(r.title),1),e.createElementVNode("div",Zo,[e.createElementVNode("ul",Qo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.items,a=>(e.openBlock(),e.createElementBlock("li",el,[e.createElementVNode("a",{class:"w-full font-medium link link-hover",href:a.link},e.toDisplayString(a.text),9,tl)]))),256))])])])]))),256))])):e.createCommentVNode("",!0),e.createElementVNode("aside",nl,[e.renderSlot(l.$slots,"default")])],2)],2))}}),ll={},al={class:"min-h-40 container hero"},rl={class:"px-0! text-center hero-content"},sl={class:"mt-9 text-4xl"};function il(t,n){return e.openBlock(),e.createElementBlock("div",al,[e.createElementVNode("div",rl,[e.createElementVNode("div",null,[e.createElementVNode("h1",sl,[e.renderSlot(t.$slots,"title",{},()=>[n[0]||(n[0]=e.createTextVNode("hero title",-1))])]),e.createElementVNode("p",null,[e.renderSlot(t.$slots,"description",{class:"py-9"})]),e.renderSlot(t.$slots,"call-to-action-block",{class:"max-w-full"},()=>[n[1]||(n[1]=e.createElementVNode("button",{class:"btn btn-primary"},"Call to action",-1))])])])])}const cl=ie(ll,[["render",il]]),dl={class:"flex flex-row place-content-center gap-4 categories"},ul=["onClick"],ml=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",dl,[(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,ul)]))),128))]))}}),fl={class:"md:flex hidden navbar-start"},pl={class:"md:flex justify-center items-center hidden navbar-center"},hl={class:"md:flex hidden navbar-end"},gl={class:"navbar-bottom md:flex hidden"},yl=ie(e.defineComponent({__name:"navigationBar",props:{isCollapsed:{type:Boolean,default:!0}},setup(t){const n=t;return(l,o)=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass(["place-items-start border-primary bg-base-100 px-5 py-5 border-b-4 transition-all navbar navigationbar",n.isCollapsed?"collapsed":""])},[e.createElementVNode("div",fl,[e.renderSlot(l.$slots,"start",{},void 0,!0)]),e.createElementVNode("div",pl,[e.renderSlot(l.$slots,"center",{},void 0,!0)]),e.createElementVNode("div",hl,[e.renderSlot(l.$slots,"end",{},void 0,!0)]),e.createElementVNode("div",gl,[e.renderSlot(l.$slots,"bottom",{},void 0,!0)])],2))}}),[["__scopeId","data-v-8ddb2b45"]]),bl={key:0,class:"hidden top-4 right-0 absolute md:flex gap-4"},kl=["onClick","aria-selected"],wl={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"},vl={class:"p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full"},xl=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",bl,[e.createElementVNode("button",{onClick:u[0]||(u[0]=m=>c()),class:"cursor-pointer"},"Previous"),e.createElementVNode("button",{onClick:u[1]||(u[1]=m=>s()),class:"text-primary cursor-pointer"},"Next")])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,m=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("a",{type:"button",role:"tab",class:e.normalizeClass(["min-w-max tab",m===o.value?"bg-primary text-base-100":""]),onClick:y=>a(m),"aria-selected":o.value==m},e.toDisplayString(m),11,kl),t.buttonOnlyMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",wl,[e.renderSlot(i.$slots,`${m}-tab`)]))],64))),256))],2),e.createElementVNode("div",vl,[e.renderSlot(i.$slots,"default")])],64))}});typeof document>"u"&&(globalThis.document={}),typeof window>"u"&&(globalThis.window=globalThis);class El{constructor(n){tt(this,se);tt(this,me,new Set);nt(this,se,n)}get current(){return pe(this,se)}set current(n){pe(this,se)!=n&&(nt(this,se,n),pe(this,me).forEach(l=>l(n)))}on(n){return pe(this,me).add(n),()=>pe(this,me).delete(n)}}se=new WeakMap,me=new WeakMap;const it=t=>new El(t),Me=Symbol.for("atomico.hooks");globalThis[Me]=globalThis[Me]||{};let ce=globalThis[Me];const Bl=Symbol.for("Atomico.suspense"),ct=Symbol.for("Atomico.effect"),$l=Symbol.for("Atomico.layoutEffect"),dt=Symbol.for("Atomico.insertionEffect"),de=(t,n,l)=>{const{i:o,hooks:r}=ce.c,a=r[o]=r[o]||{};return a.value=t(a.value),a.effect=n,a.tag=l,ce.c.i++,r[o].value},Cl=t=>de((n=it(t))=>n),ge=()=>de((t=it(ce.c.host))=>t),ut=()=>ce.c.update,Sl=(t,n,l=0)=>{let o={},r=!1;const a=()=>r,s=(c,i)=>{for(const u in o){const m=o[u];m.effect&&m.tag===c&&(m.value=m.effect(m.value,i))}};return{load:c=>{ce.c={host:n,hooks:o,update:t,i:0,id:l};let i;try{r=!1,i=c()}catch(u){if(u!==Bl)throw u;r=!0}finally{ce.c=null}return i},cleanEffects:c=>(s(dt,c),()=>(s($l,c),()=>{s(ct,c)})),isSuspense:a}},ue=Symbol.for;function mt(t,n){const l=t.length;if(l!==n.length)return!1;for(let o=0;o<l;o++){let r=t[o],a=n[o];if(r!==a)return!1}return!0}const Q=t=>typeof t=="function",ye=t=>typeof t=="object",{isArray:Vl}=Array,Ie=(t,n)=>(n?t instanceof HTMLStyleElement:!0)&&"hydrate"in((t==null?void 0:t.dataset)||{});function ft(t,n){let l;const o=r=>{let{length:a}=r;for(let s=0;s<a;s++){const c=r[s];if(c&&Array.isArray(c))o(c);else{const i=typeof c;if(c==null||i==="function"||i==="boolean")continue;i==="string"||i==="number"?(l==null&&(l=""),l+=c):(l!=null&&(n(l),l=null),n(c))}}};o(t),l!=null&&n(l)}const pt=(t,n,l)=>(t.addEventListener(n,l),()=>t.removeEventListener(n,l));class ht{constructor(n,l,o){this.message=l,this.target=n,this.value=o}}class gt extends ht{}class Nl extends ht{}const Ce="Custom",Dl=null,zl={true:1,"":1,1:1};function Tl(t,n,l,o,r){const{type:a,reflect:s,event:c,value:i,attr:u=Ml(n)}=(l==null?void 0:l.name)!=Ce&&ye(l)&&l!=Dl?l:{type:l},m=(a==null?void 0:a.name)===Ce&&a.map,y=i!=null?a==Function||!Q(i)?()=>i:i:null;Object.defineProperty(t,n,{configurable:!0,set(f){const d=this[n];y&&a!=Boolean&&f==null&&(f=y());const{error:$,value:v}=(m?Pl:Ll)(a,f);if($&&v!=null)throw new gt(this,`The value defined for prop '${n}' must be of type '${a.name}'`,v);d!=v&&(this._props[n]=v??void 0,this.update(),c&&yt(this,c),this.updated.then(()=>{s&&(this._ignoreAttr=u,Il(this,a,u,this[n]),this._ignoreAttr=null)}))},get(){return this._props[n]}}),y&&(r[n]=y()),o[u]={prop:n,type:a}}const yt=(t,{type:n,base:l=CustomEvent,...o})=>t.dispatchEvent(new l(n,o)),Ml=t=>t.replace(/([A-Z])/g,"-$1").toLowerCase(),Il=(t,n,l,o)=>o==null||n==Boolean&&!o?t.removeAttribute(l):t.setAttribute(l,(n==null?void 0:n.name)===Ce&&(n!=null&&n.serialize)?n==null?void 0:n.serialize(o):ye(o)?JSON.stringify(o):n==Boolean?"":o),Ol=(t,n)=>t==Boolean?!!zl[n]:t==Number?Number(n):t==String?n:t==Array||t==Object?JSON.parse(n):t.name==Ce?n:new t(n),Pl=({map:t},n)=>{try{return{value:t(n),error:!1}}catch{return{value:n,error:!0}}},Ll=(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 jl=0;const Al=t=>{var l;return((l=(t==null?void 0:t.dataset)||{})==null?void 0:l.hydrate)||""||"c"+jl++},be=(t,n=HTMLElement)=>{const l={},o={},r="prototype"in n&&n.prototype instanceof Element,a=r?n:"base"in n?n.base:HTMLElement,{props:s,styles:c}=r?t:n;class i extends a{constructor(){super(),this._setup(),this._render=()=>t({...this._props});for(const m in o)this[m]=o[m]}static get styles(){return[super.styles,c]}async _setup(){if(this._props)return;this._props={};let m,y;this.mounted=new Promise(C=>this.mount=()=>{C(),m!=this.parentNode&&(y!=m?this.unmounted.then(this.update):this.update()),m=this.parentNode}),this.unmounted=new Promise(C=>this.unmount=()=>{C(),(m!=this.parentNode||!this.isConnected)&&(f.cleanEffects(!0)()(),y=this.parentNode,m=null)}),this.symbolId=this.symbolId||Symbol(),this.symbolIdParent=Symbol();const f=Sl(()=>this.update(),this,Al(this));let d,$=!0;const v=Ie(this);this.update=()=>(d||(d=!0,this.updated=(this.updated||this.mounted).then(()=>{try{const C=f.load(this._render),k=f.cleanEffects();return C&&C.render(this,this.symbolId,v),d=!1,$&&!f.isSuspense()&&($=!1,!v&&Fl(this)),k()}finally{d=!1}}).then(C=>{C&&C()})),this.updated),this.update()}connectedCallback(){this.mount(),super.connectedCallback&&super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback(),this.unmount()}attributeChangedCallback(m,y,f){if(l[m]){if(m===this._ignoreAttr||y===f)return;const{prop:d,type:$}=l[m];try{this[d]=Ol($,f)}catch{throw new Nl(this,`The value defined as attr '${m}' cannot be parsed by type '${$.name}'`,f)}}else super.attributeChangedCallback(m,y,f)}static get props(){return{...super.props,...s}}static get observedAttributes(){const m=super.observedAttributes||[];for(const y in s)Tl(this.prototype,y,s[y],l,o);return Object.keys(l).concat(m)}}return i};function Fl(t){const{styles:n}=t.constructor,{shadowRoot:l}=t;if(l&&n.length){const o=[];ft(n,r=>{r&&(r instanceof Element?l.appendChild(r.cloneNode(!0)):o.push(r))}),o.length&&(l.adoptedStyleSheets=o)}}const bt=t=>(n,l)=>{de(([o,r]=[])=>((r||!r)&&(r&&mt(r,l)?o=o||!0:(Q(o)&&o(),o=null)),[o,l]),([o,r],a)=>a?(Q(o)&&o(),[]):[o||n(),r],t)},ke=bt(ct),_l=bt(dt);class kt extends Array{constructor(n,l){let o=!0;const r=a=>{try{l(a,this,o)}finally{o=!1}};super(void 0,r,l),r(n)}}const Oe=t=>{const n=ut();return de((l=new kt(t,(o,r,a)=>{o=Q(o)?o(r[0]):o,o!==r[0]&&(r[0]=o,a||n())}))=>l)},ne=(t,n)=>{const[l]=de(([o,r,a=0]=[])=>((!r||r&&!mt(r,n))&&(o=t()),[o,n,a]));return l},Pe=t=>{const{current:n}=ge();if(!(t in n))throw new gt(n,`For useProp("${t}"), the prop does not exist on the host.`,t);return de((l=new kt(n[t],(o,r)=>{o=Q(o)?o(n[t]):o,n[t]=o}))=>(l[0]=n[t],l))},le=(t,n={})=>{const l=ge();return l[t]||(l[t]=(o=n.detail)=>yt(l.current,{type:t,...n,detail:o})),l[t]},Le=ue("atomico/options");globalThis[Le]=globalThis[Le]||{sheet:!!document.adoptedStyleSheets};const wt=globalThis[Le],Ul={checked:1,value:1,selected:1},Rl={list:1,type:1,size:1,form:1,width:1,height:1,src:1,href:1,slot:1},ql={shadowDom:1,staticNode:1,cloneNode:1,children:1,key:1},Se={},je=[];class Ae extends Text{}const Hl=ue("atomico/id"),we=ue("atomico/type"),Fe=ue("atomico/ref"),vt=ue("atomico/vnode"),Wl=()=>{};function Kl(t,n,l){return Et(this,t,n,l)}const xt=(t,n,...l)=>{const o=n||Se;let{children:r}=o;if(r=r??(l.length?l:je),t===Wl)return r;const a=t?t instanceof Node?1:t.prototype instanceof HTMLElement&&2:0;if(a===!1&&t instanceof Function)return t(r!=je?{children:r,...o}:o);const s=wt.render||Kl;return{[we]:vt,type:t,props:o,children:r,key:o.key,shadow:o.shadowDom,static:o.staticNode,raw:a,is:o.is,clone:o.cloneNode,render:s}};function Et(t,n,l=Hl,o,r){let a;if(n&&n[l]&&n[l].vnode==t||t[we]!=vt)return n;(t||!n)&&(r=r||t.type=="svg",a=t.type!="host"&&(t.raw==1?(n&&t.clone?n[Fe]:n)!=t.type:t.raw==2?!(n instanceof t.type):n?n[Fe]||n.localName!=t.type:!n),a&&t.type!=null&&(t.raw==1&&t.clone?(o=!0,n=t.type.cloneNode(!0),n[Fe]=t.type):n=t.raw==1?t.type:t.raw==2?new t.type:r?document.createElementNS("http://www.w3.org/2000/svg",t.type):document.createElement(t.type,t.is?{is:t.is}:void 0)));const s=n[l]?n[l]:Se,{vnode:c=Se,cycle:i=0}=s;let{fragment:u,handlers:m}=s;const{children:y=je,props:f=Se}=c;if(m=a?{}:m||{},t.static&&!a)return n;if(t.shadow&&!n.shadowRoot&&n.attachShadow({mode:"open",...t.shadow}),t.props!=f&&Jl(n,f,t.props,m,r),t.children!==y){const d=t.shadow?n.shadowRoot:n;u=Xl(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 Yl(t,n){const l=new Ae(""),o=new Ae("");let r;if(t[n?"prepend":"append"](l),n){let{lastElementChild:a}=t;for(;a;){const{previousElementSibling:s}=a;if(Ie(a,!0)&&!Ie(s,!0)){r=a;break}a=s}}return r?r.before(o):t.append(o),{markStart:l,markEnd:o}}function Xl(t,n,l,o,r,a){t=t==null?null:Vl(t)?t:[t];const s=n||Yl(l,r),{markStart:c,markEnd:i,keyes:u}=s;let m;const y=u&&new Set;let f=c;if(t&&ft(t,d=>{if(typeof d=="object"&&!d[we])return;const $=d[we]&&d.key,v=u&&$!=null&&u.get($);f!=i&&f===v?y.delete(f):f=f==i?i:f.nextSibling;const C=u?v:f;let k=C;if(d[we])k=Et(d,C,o,r,a);else{const M=d+"";!(k instanceof Text)||k instanceof Ae?k=new Text(M):k.data!=M&&(k.data=M)}k!=f&&(u&&y.delete(k),!C||u?(l.insertBefore(k,f),u&&f!=i&&y.add(f)):C==i?l.insertBefore(k,i):(l.replaceChild(k,C),f=k)),$!=null&&(m=m||new Map,m.set($,k))}),f=f==i?i:f.nextSibling,n&&f!=i)for(;f!=i;){const d=f;f=f.nextSibling,d.remove()}return y&&y.forEach(d=>d.remove()),s.keyes=m,s}function Jl(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&&Ul[n]&&(l=t[n]),!(o===l||ql[n]||n[0]=="_"))if(n[0]=="o"&&n[1]=="n"&&(Q(o)||Q(l)))Gl(t,n.slice(2),o,a);else if(n=="ref")o&&(Q(o)?o(t):o.current=t);else if(n=="style"){const{style:s}=t;l=l||"",o=o||"";const c=ye(l),i=ye(o);if(c)for(const u in l)if(i)!(u in o)&&$t(s,u,null);else break;if(i)for(const u in o){const m=o[u];c&&l[u]===m||$t(s,u,m)}else s.cssText=o}else{const s=n[0]=="$"?n.slice(1):n;s===n&&(!r&&!Rl[n]&&n in t||Q(o)||Q(l))?t[n]=o??"":o==null?t.removeAttribute(s):t.setAttribute(s,ye(o)?JSON.stringify(o):o)}}function Gl(t,n,l,o){if(o.handleEvent||(o.handleEvent=r=>o[r.type].call(t,r)),l){if(!o[n]){const r=l.capture||l.once||l.passive?Object.assign({},l):null;t.addEventListener(n,o,r)}o[n]=l}else o[n]&&(t.removeEventListener(n,o),delete o[n])}function $t(t,n,l){let o="setProperty";l==null&&(o="removeProperty",l=null),~n.indexOf("-")?t[o](n,l):t[n]=l}const Ct={};function Ve(t,...n){const l=(t.raw||t).reduce((o,r,a)=>o+r+(n[a]||""),"");return Ct[l]=Ct[l]||Zl(l)}function Zl(t){if(wt.sheet){const n=new CSSStyleSheet;return n.replaceSync(t),n}else{const n=document.createElement("style");return n.textContent=t,n}}const Ql=xt("host",{style:"display: contents"}),_e=ue("atomico/context"),ea=(t,n)=>{const l=ge();_l(()=>pt(l.current,"ConnectContext",o=>{t===o.detail.id&&(o.stopPropagation(),o.detail.connect(n))}),[t])},ta=t=>{const n=le("ConnectContext",{bubbles:!0,composed:!0}),l=()=>{let a;return n({id:t,connect(s){a=s}}),a},[o,r]=Oe(l);return ke(()=>{o||(t[_e]||(t[_e]=customElements.whenDefined(new t().localName)),t[_e].then(()=>r(l)))},[t]),o},na=t=>{const n=ta(t),l=ut();return ke(()=>{if(n)return pt(n,"UpdatedValue",l)},[n]),(n||t).value},oa=t=>{const n=be(()=>(ea(n,ge().current),Ql),{props:{value:{type:Object,event:{type:"UpdatedValue"},value:()=>t}}});return n.value=t,n},L=(t,n,l)=>(n==null?n={key:l}:n.key=l,xt(t,n)),ve=L,St=Ve`*,*:before,*:after{box-sizing:border-box}button{padding:0;touch-action:manipulation;cursor:pointer;user-select:none}`,Vt=Ve`.vh{position:absolute;transform:scale(0)}`;function Ue(){const t=new Date;return new _(t.getFullYear(),t.getMonth()+1,t.getDate())}function Re(t,n=0){const l=G(t),o=l.getUTCDay(),r=(o<n?7:0)+o-n;return l.setUTCDate(l.getUTCDate()-r),_.from(l)}function Nt(t,n=0){return Re(t,n).add({days:6})}function Dt(t){return _.from(new Date(Date.UTC(t.year,t.month,0)))}function Ne(t,n,l){return n&&_.compare(t,n)<0?n:l&&_.compare(t,l)>0?l:t}const la={days:1};function aa(t,n=0){let l=Re(t.toPlainDate(),n);const o=Nt(Dt(t),n),r=[];for(;_.compare(l,o)<0;){const a=[];for(let s=0;s<7;s++)a.push(l),l=l.add(la);r.push(a)}return r}function G(t){return new Date(Date.UTC(t.year,t.month-1,t.day??1))}const ra=/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[0-1])$/,qe=(t,n)=>t.toString().padStart(n,"0");class _{constructor(n,l,o){this.year=n,this.month=l,this.day=o}add(n){const l=G(this);if("days"in n)return l.setUTCDate(this.day+n.days),_.from(l);let{year:o,month:r}=this;"months"in n?(r=this.month+n.months,l.setUTCMonth(r-1)):(o=this.year+n.years,l.setUTCFullYear(o));const a=_.from(G({year:o,month:r,day:1}));return Ne(_.from(l),a,Dt(a))}toString(){return`${qe(this.year,4)}-${qe(this.month,2)}-${qe(this.day,2)}`}toPlainYearMonth(){return new De(this.year,this.month)}equals(n){return _.compare(this,n)===0}static compare(n,l){return n.year<l.year?-1:n.year>l.year?1:n.month<l.month?-1:n.month>l.month?1:n.day<l.day?-1:n.day>l.day?1:0}static from(n){if(typeof n=="string"){const l=n.match(ra);if(!l)throw new TypeError(n);const[,o,r,a]=l;return new _(parseInt(o,10),parseInt(r,10),parseInt(a,10))}return new _(n.getUTCFullYear(),n.getUTCMonth()+1,n.getUTCDate())}}class De{constructor(n,l){this.year=n,this.month=l}add(n){const l=G(this),o=(n.months??0)+(n.years??0)*12;return l.setUTCMonth(l.getUTCMonth()+o),new De(l.getUTCFullYear(),l.getUTCMonth()+1)}equals(n){return this.year===n.year&&this.month===n.month}toPlainDate(){return new _(this.year,this.month,1)}}function ze(t,n){if(n)try{return t.from(n)}catch{}}function ae(t){const[n,l]=Pe(t);return[ne(()=>ze(_,n),[n]),o=>l(o==null?void 0:o.toString())]}function sa(t){const[n="",l]=Pe(t);return[ne(()=>{const[o,r]=n.split("/"),a=ze(_,o),s=ze(_,r);return a&&s?[a,s]:[]},[n]),o=>l(`${o[0]}/${o[1]}`)]}function ia(t){const[n="",l]=Pe(t);return[ne(()=>{const o=[];for(const r of n.trim().split(/\s+/)){const a=ze(_,r);a&&o.push(a)}return o},[n]),o=>l(o.join(" "))]}function xe(t,n){return ne(()=>new Intl.DateTimeFormat(n,{timeZone:"UTC",...t}),[n,t])}function zt(t,n,l){const o=xe(t,l);return ne(()=>{const r=[],a=new Date;for(var s=0;s<7;s++){const c=(a.getUTCDay()-n+7)%7;r[c]=o.format(a),a.setUTCDate(a.getUTCDate()+1)}return r},[n,o])}const Tt=(t,n,l)=>Ne(t,n,l)===t,Mt=t=>t.target.matches(":dir(ltr)"),ca={month:"long",day:"numeric"},da={month:"long"},ua={weekday:"long"},He={bubbles:!0};function ma({props:t,context:n}){const{offset:l}=t,{firstDayOfWeek:o,isDateDisallowed:r,min:a,max:s,today:c,page:i,locale:u,focusedDate:m,formatWeekday:y}=n,f=c??Ue(),d=zt(ua,o,u),$=ne(()=>({weekday:y}),[y]),v=zt($,o,u),C=xe(ca,u),k=xe(da,u),M=ne(()=>i.start.add({months:l}),[i,l]),U=ne(()=>aa(M,o),[M,o]),Y=le("focusday",He),h=le("selectday",He),B=le("hoverday",He);function w(x){Y(Ne(x,a,s))}function N(x){let b;switch(x.key){case"ArrowRight":b=m.add({days:Mt(x)?1:-1});break;case"ArrowLeft":b=m.add({days:Mt(x)?-1:1});break;case"ArrowDown":b=m.add({days:7});break;case"ArrowUp":b=m.add({days:-7});break;case"PageUp":b=m.add(x.shiftKey?{years:-1}:{months:-1});break;case"PageDown":b=m.add(x.shiftKey?{years:1}:{months:1});break;case"Home":b=Re(m,o);break;case"End":b=Nt(m,o);break;default:return}w(b),x.preventDefault()}function p(x){var T,j;const b=M.equals(x);if(!n.showOutsideDays&&!b)return;const I=x.equals(m),O=x.equals(f),q=G(x),J=r==null?void 0:r(q),g=!Tt(x,a,s);let E="",V;if(n.type==="range"){const[A,H]=n.value,ee=A==null?void 0:A.equals(x),re=H==null?void 0:H.equals(x);V=A&&H&&Tt(x,A,H),E=`${ee?"range-start":""} ${re?"range-end":""} ${V&&!ee&&!re?"range-inner":""}`}else n.type==="multi"?V=n.value.some(A=>A.equals(x)):V=(T=n.value)==null?void 0:T.equals(x);return{part:`${`button day day-${q.getDay()} ${b?V?"selected":"":"outside"} ${J?"disallowed":""} ${O?"today":""} ${((j=n.getDayParts)==null?void 0:j.call(n,q))??""}`} ${E}`,tabindex:b&&I?0:-1,disabled:g,"aria-disabled":J?"true":void 0,"aria-pressed":b&&V,"aria-current":O?"date":void 0,"aria-label":C.format(q),onkeydown:N,onclick(){J||h(x),w(x)},onmouseover(){!J&&!g&&B(x)}}}return{weeks:U,yearMonth:M,daysLong:d,daysVisible:v,formatter:k,getDayProps:p}}const We=Ue(),Ke=oa({type:"date",firstDayOfWeek:1,focusedDate:We,page:{start:We.toPlainYearMonth(),end:We.toPlainYearMonth()}});customElements.define("calendar-ctx",Ke);const fa=(t,n)=>(n+t)%7,It=be(t=>{const n=na(Ke),l=Cl(),o=ma({props:t,context:n});function r(){var a;(a=l.current.querySelector("button[tabindex='0']"))==null||a.focus()}return ve("host",{shadowDom:!0,focus:r,children:[L("div",{id:"h",part:"heading",children:o.formatter.format(G(o.yearMonth))}),ve("table",{ref:l,"aria-labelledby":"h",part:"table",children:[L("thead",{children:L("tr",{part:"tr head",children:o.daysLong.map((a,s)=>ve("th",{part:`th day day-${fa(n.firstDayOfWeek,s)}`,scope:"col",children:[L("span",{class:"vh",children:a}),L("span",{"aria-hidden":"true",children:o.daysVisible[s]})]}))})}),L("tbody",{children:o.weeks.map((a,s)=>L("tr",{part:"tr week",children:a.map((c,i)=>{const u=o.getDayProps(c);return L("td",{part:"td",children:u&&L("button",{...u,children:c.day})},i)})},s))})]})]})},{props:{offset:{type:Number,value:0}},styles:[St,Vt,Ve`:host{--color-accent: black;--color-text-on-accent: white;display:flex;flex-direction:column;gap:.25rem;text-align:center;inline-size:fit-content}table{border-collapse:collapse;font-size:.875rem}th{font-weight:700;block-size:2.25rem}td{padding-inline:0}button{color:inherit;font-size:inherit;background:transparent;border:0;font-variant-numeric:tabular-nums;block-size:2.25rem;inline-size:2.25rem}button:hover:where(:not(:disabled,[aria-disabled])){background:#0000000d}button:is([aria-pressed=true],:focus-visible){background:var(--color-accent);color:var(--color-text-on-accent)}button:focus-visible{outline:1px solid var(--color-text-on-accent);outline-offset:-2px}button:disabled,:host::part(outside),:host::part(disallowed){cursor:default;opacity:.5}`]});customElements.define("calendar-month",It);function Ot(t){return L("button",{part:`button ${t.name} ${t.onclick?"":"disabled"}`,onclick:t.onclick,"aria-disabled":t.onclick?null:"true",children:L("slot",{name:t.name,children:t.children})})}function Ye(t){const n=G(t.page.start),l=G(t.page.end);return ve("div",{role:"group","aria-labelledby":"h",part:"container",children:[L("div",{id:"h",class:"vh","aria-live":"polite","aria-atomic":"true",children:t.formatVerbose.formatRange(n,l)}),ve("div",{part:"header",children:[L(Ot,{name:"previous",onclick:t.previous,children:"Previous"}),L("slot",{part:"heading",name:"heading",children:L("div",{"aria-hidden":"true",children:t.format.formatRange(n,l)})}),L(Ot,{name:"next",onclick:t.next,children:"Next"})]}),L(Ke,{value:t,onselectday:t.onSelect,onfocusday:t.onFocus,onhoverday:t.onHover,children:L("slot",{})})]})}const Xe={value:{type:String,value:""},min:{type:String,value:""},max:{type:String,value:""},today:{type:String,value:""},isDateDisallowed:{type:Function,value:t=>!1},formatWeekday:{type:String,value:()=>"narrow"},getDayParts:{type:Function,value:t=>""},firstDayOfWeek:{type:Number,value:()=>1},showOutsideDays:{type:Boolean,value:!1},locale:{type:String,value:()=>{}},months:{type:Number,value:1},focusedDate:{type:String,value:()=>{}},pageBy:{type:String,value:()=>"months"}},Je=[St,Vt,Ve`:host{display:block;inline-size:fit-content}[role=group]{display:flex;flex-direction:column;gap:1em}:host::part(header){display:flex;align-items:center;justify-content:space-between}:host::part(heading){font-weight:700;font-size:1.25em}button{display:flex;align-items:center;justify-content:center}button[aria-disabled]{cursor:default;opacity:.5}`],pa={year:"numeric"},ha={year:"numeric",month:"long"};function Ge(t,n){return(n.year-t.year)*12+n.month-t.month}const Pt=(t,n)=>(t=n===12?new De(t.year,1):t,{start:t,end:t.add({months:n-1})});function ga({pageBy:t,focusedDate:n,months:l,max:o,min:r,goto:a}){const s=t==="single"?1:l,[c,i]=Oe(()=>Pt(n.toPlainYearMonth(),l)),u=y=>i(Pt(c.start.add({months:y}),l)),m=y=>{const f=Ge(c.start,y.toPlainYearMonth());return f>=0&&f<l};return ke(()=>{if(m(n))return;const y=Ge(n.toPlainYearMonth(),c.start);a(n.add({months:y}))},[c.start]),ke(()=>{if(m(n))return;const y=Ge(c.start,n.toPlainYearMonth());u(y===-1?-s:y===l?s:Math.floor(y/l)*l)},[n,s,l]),{page:c,previous:!r||!m(r)?()=>u(-s):void 0,next:!o||!m(o)?()=>u(s):void 0}}function Ze({months:t,pageBy:n,locale:l,focusedDate:o,setFocusedDate:r}){const[a]=ae("min"),[s]=ae("max"),[c]=ae("today"),i=le("focusday"),u=le("change"),m=ne(()=>Ne(o??c??Ue(),a,s),[o,c,a,s]);function y(k){r(k),i(G(k))}const{next:f,previous:d,page:$}=ga({pageBy:n,focusedDate:m,months:t,min:a,max:s,goto:y}),v=ge();function C(k){const M=(k==null?void 0:k.target)??"day";M==="day"?v.current.querySelectorAll("calendar-month").forEach(U=>U.focus(k)):v.current.shadowRoot.querySelector(`[part~='${M}']`).focus(k)}return{format:xe(pa,l),formatVerbose:xe(ha,l),page:$,focusedDate:m,dispatch:u,onFocus(k){k.stopPropagation(),y(k.detail),setTimeout(C)},min:a,max:s,today:c,next:f,previous:d,focus:C}}const Lt=be(t=>{const[n,l]=ae("value"),[o=n,r]=ae("focusedDate"),a=Ze({...t,focusedDate:o,setFocusedDate:r});function s(c){l(c.detail),a.dispatch()}return L("host",{shadowDom:!0,focus:a.focus,children:L(Ye,{...t,...a,type:"date",value:n,onSelect:s})})},{props:Xe,styles:Je});customElements.define("calendar-date",Lt);const jt=(t,n)=>_.compare(t,n)<0?[t,n]:[n,t],At=be(t=>{const[n,l]=sa("value"),[o=n[0],r]=ae("focusedDate"),a=Ze({...t,focusedDate:o,setFocusedDate:r}),s=le("rangestart"),c=le("rangeend"),[i,u]=ae("tentative"),[m,y]=Oe();ke(()=>y(void 0),[i]);function f(C){a.onFocus(C),d(C)}function d(C){C.stopPropagation(),i&&y(C.detail)}function $(C){const k=C.detail;C.stopPropagation(),i?(l(jt(i,k)),u(void 0),c(G(k)),a.dispatch()):(u(k),s(G(k)))}const v=i?jt(i,m??i):n;return L("host",{shadowDom:!0,focus:a.focus,children:L(Ye,{...t,...a,type:"range",value:v,onFocus:f,onHover:d,onSelect:$})})},{props:{...Xe,tentative:{type:String,value:""}},styles:Je});customElements.define("calendar-range",At);const Ft=be(t=>{const[n,l]=ia("value"),[o=n[0],r]=ae("focusedDate"),a=Ze({...t,focusedDate:o,setFocusedDate:r});function s(c){const i=[...n],u=n.findIndex(m=>m.equals(c.detail));u<0?i.push(c.detail):i.splice(u,1),l(i),a.dispatch()}return L("host",{shadowDom:!0,focus:a.focus,children:L(Ye,{...t,...a,type:"multi",value:n,onSelect:s})})},{props:Xe,styles:Je});customElements.define("calendar-multi",Ft);const ya=Object.freeze(Object.defineProperty({__proto__:null,CalendarDate:Lt,CalendarMonth:It,CalendarMulti:Ft,CalendarRange:At},Symbol.toStringTag,{value:"Module"}));S.Accordion=gn,S.AdvancedSearch=Zn,S.Avatar=kn,S.Badge=wn,S.ButtonComponent=Ht,S.Card=Sn,S.Carousel=In,S.CarouselItem=On,S.CategoryNavigation=ml,S.DatetimePicker=at,S.Dropdown=Yt,S.FilterableSelect=Oo,S.Footer=ol,S.Hero=cl,S.InputField=st,S.Loader=Ho,S.Modal=Gt,S.NavigationBar=yl,S.Rating=ho,S.Selector=rt,S.Swap=en,S.Tab=xl,S.TagInput=wo,S.ThemeController=un,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})}));
46
+ */const rn=he("SunIcon",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),sn=(t,n)=>{const l=e.ref(null);return e.onMounted(()=>{if(typeof window<"u"){const o=window.localStorage.getItem(t);l.value=o?JSON.parse(o):n}}),e.watch(l,o=>{typeof window<"u"&&window.localStorage.setItem(t,JSON.stringify(o))}),l},cn={class:"swap-rotate swap"},dn=["true-value","false-value"],un=e.defineComponent({__name:"theme-controller",props:{lightTheme:{default:"light"},darkTheme:{default:"dark"}},setup(t){const n=t,l=sn("theme",n.lightTheme);function o(r){typeof window<"u"&&window.document&&document.documentElement.setAttribute("data-theme",r)}return e.onMounted(()=>o(l.value?l.value:"")),e.watch(l,r=>{o(r)}),(r,a)=>(e.openBlock(),e.createElementBlock("label",cn,[e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:"theme-controller","onUpdate:modelValue":a[0]||(a[0]=s=>e.isRef(l)?l.value=s:null),"true-value":n.lightTheme,"false-value":n.darkTheme},null,8,dn),[[e.vModelCheckbox,e.unref(l)]]),e.createVNode(e.unref(rn),{class:"swap-off fill-current"}),e.createVNode(e.unref(an),{class:"swap-on fill-current"})]))}}),mn=["name"],fn={class:"collapse-title font-bold text-2xl lg:text-4xl"},pn={class:"collapse-content"},hn=["innerHTML"],gn=e.defineComponent({__name:"accordion",props:{name:{},items:{},joinItems:{type:Boolean,default:!1},icon:{}},setup(t){const n=t;return(l,o)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,(r,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["collapse border border-base-300",[t.icon?`collapse-${t.icon}`:"",{"join-item":t.joinItems}]]),key:a},[e.createElementVNode("input",{type:"radio",name:t.name,value:"true"},null,8,mn),e.createElementVNode("div",fn,e.toDisplayString(r.title),1),e.createElementVNode("div",pn,[e.createElementVNode("span",{innerHTML:r.content},null,8,hn)])],2))),128))}}),yn=["src"],bn={class:"text-xl"},kn=e.defineComponent({__name:"avatar",props:{image:{},onlineStatus:{default:"none"},initials:{},fullyRounded:{type:Boolean,default:!1}},setup(t){const n=t,l=e.ref(n.onlineStatus);return e.watch(()=>n.onlineStatus,o=>{o&&(l.value=o)}),(o,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["avatar",[{"avatar-online":l.value==="online"},{"avatar-offline":l.value==="offline"}]])},[t.image?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["rounded",[{"rounded-full":t.fullyRounded},{rounded:!t.fullyRounded}]])},[e.createElementVNode("img",{src:t.image,class:"w-full h-full"},null,8,yn)],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["flex justify-center bg-neutral p-[25%] rounded w-16 text-neutral-content text-center",[{"rounded-full":t.fullyRounded},{rounded:!t.fullyRounded}]])},[e.createElementVNode("p",bn,e.toDisplayString(t.initials),1)],2))],2))}}),wn=e.defineComponent({__name:"badge",props:{color:{default:"neutral"},outline:{type:Boolean,default:!1},size:{default:"medium"}},setup(t){const n=t,l={"extra small":"badge-xs",small:"badge-sm",medium:"badge-md",large:"badge-lg"},o={neutral:"badge-neutral",primary:"badge-primary",secondary:"badge-secondary",accent:"badge-accent",ghost:"badge-ghost",info:"badge-info",success:"badge-success",warning:"badge-warning",error:"badge-error"};return(r,a)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["badge",l[n.size],o[n.color],{"badge-outline":n.outline}])},[e.renderSlot(r.$slots,"default")],2))}}),vn=["src","alt"],xn={key:0,class:"card-body"},En={key:0,class:"group-hover:text-primary text-lg text-left cursor-pointer card-title"},Bn={key:1,class:"text-left"},$n={class:"flex-col flex-nowrap mt-auto card-actions"},Cn={key:1,class:"card-body"},Sn=e.defineComponent({__name:"card",props:{imgUrl:{default:""},alt:{default:"A beautiful picture that says something about this card"},title:{default:""},description:{default:""},outlined:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},class:{default:""},background:{default:"bg-base-100"},color:{default:""},imgHeight:{default:"h-44"},imgWidth:{default:""},horizontal:{type:Boolean,default:!1}},setup(t){const n=t,l=e.ref(n.outlined);return e.watch(()=>n.outlined,o=>{l.value=o}),(o,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["group bg-base-100 shadow-xl rounded-sm min-w-64 max-w-full h-full card card-compact",[{"border-4 border-primary":l.value},t.color??"",t.background,{"card-side":t.horizontal}]])},[e.createElementVNode("figure",{class:e.normalizeClass([{"contents!":t.horizontal&&t.imgWidth}])},[t.imgUrl||t.imgUrl&&!t.loading?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.imgUrl,alt:t.alt,class:e.normalizeClass(["rounded-sm object-cover",[{hidden:t.loading},!t.horizontal&&t.imgHeight?t.imgHeight:"h-full",t.horizontal&&t.imgWidth?t.imgWidth:"w-full"]])},null,10,vn)):e.createCommentVNode("",!0),t.loading&&t.imgUrl?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["w-full skeleton",t.imgHeight])},null,2)):e.createCommentVNode("",!0)],2),t.loading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",xn,[t.title?(e.openBlock(),e.createElementBlock("h2",En,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"details"),t.description?(e.openBlock(),e.createElementBlock("p",Bn,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0),e.createElementVNode("div",$n,[e.renderSlot(o.$slots,"actions")])])),t.loading?(e.openBlock(),e.createElementBlock("div",Cn,[...r[0]||(r[0]=[e.createElementVNode("div",{class:"flex flex-col gap-4 w-52"},[e.createElementVNode("div",{class:"w-28 h-4 skeleton"}),e.createElementVNode("div",{class:"w-full h-4 skeleton"}),e.createElementVNode("div",{class:"w-full h-4 skeleton"})],-1)])])):e.createCommentVNode("",!0)],2))}}),lt=Symbol("CarouselItemStyle"),Vn={class:"relative h-full"},Nn={key:0,class:"flex-shrink-0"},Dn={key:0,class:"flex-shrink-0"},zn={key:1,id:"carousel-indicators",class:"bottom-5 z-10 absolute flex justify-center gap-2 py-2 w-full"},Tn=["onClick","aria-label"],Mn=e.defineComponent({__name:"carousel",props:{showIndicators:{type:Boolean,default:!0},showNavigationButtons:{type:Boolean,default:!0},sliderOrientation:{type:String,default:"horizontal",required:!1,validator:t=>t=="horizontal"||t=="vertical"},initialSlide:{type:Number,default:0},slidesPerView:{type:Number,default:1,validator:t=>t>=1},gap:{type:Number,default:0,validator:t=>t>=0},slideDuration:{type:Number,default:300,validator:t=>t>=0},breakpoints:{type:Object,default:()=>({})},infinite:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},autoplayInterval:{type:Number,default:3e3,validator:t=>t>0}},setup(t,{expose:n}){const l=t,o=e.ref(l.initialSlide),r=e.ref(null),a=e.ref(null),s=e.ref(0),c=e.ref(!1),i=e.ref(0),u=e.ref(0),m=e.ref(!1),y=e.ref(0),f=e.ref(0),d=e.ref(0),$=e.ref(0),v=e.ref(0),C=e.ref(0),k=e.ref(0),M=e.ref(null),U=e.ref(null),Y=e.ref(0),h=e.ref(null),B=e.computed(()=>{const z=Object.keys(l.breakpoints).map(Number).sort((P,F)=>P-F);let D={};for(const P of z)u.value>=P&&(D={...D,...l.breakpoints[P]});return D}),w=e.computed(()=>B.value.slidesPerView??l.slidesPerView),N=e.computed(()=>B.value.gap??l.gap),p=e.computed(()=>{const z=l.sliderOrientation==="horizontal",P=`calc((100% - ${w.value>1?(w.value-1)*N.value:0}px) / ${w.value})`;return z?{width:P}:{height:P}});e.provide(lt,p);const x=()=>{a.value?i.value=a.value.children.length:i.value=0},b=()=>{if(!r.value||w.value<=0)return 0;const D=l.sliderOrientation==="horizontal"?r.value.offsetWidth:r.value.offsetHeight,P=(w.value-1)*N.value;return D<=0?0:(D-P)/w.value},I=e.computed(()=>{if(!r.value||i.value===0||w.value===0)return 0;const D=l.sliderOrientation==="horizontal"?r.value.offsetWidth:r.value.offsetHeight,P=b(),F=i.value*(P+N.value)-N.value;return Math.max(0,F-D)}),O=async(z,D=!1)=>{if(!r.value||w.value<=0||c.value||(x(),i.value===0))return;const P=b();if(P<=0)return;const F=P+N.value,K=I.value;let R=z;l.infinite?R=(z%i.value+i.value)%i.value:R=Math.max(0,Math.min(z,i.value-w.value));const te=R*F,W=l.infinite?te:Math.max(0,Math.min(te,K));if(D||l.slideDuration===0){a.value&&(a.value.style.transitionDuration="0ms",a.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-W}px, 0, 0)`:`translate3d(0, ${-W}px, 0)`),s.value=W,o.value=R,c.value=!1,l.autoplay&&ee();return}c.value=!0;const oe=s.value,Z=W-oe,Ee=performance.now(),fe=Te=>{if(!a.value)return;const ka=Te-Ee,Ut=Math.min(1,ka/l.slideDuration),wa=1-Math.pow(1-Ut,3),et=oe+Z*wa;a.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-et}px, 0, 0)`:`translate3d(0, ${-et}px, 0)`,s.value=et,Ut<1?M.value=requestAnimationFrame(fe):(a.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-W}px, 0, 0)`:`translate3d(0, ${-W}px, 0)`,s.value=W,o.value=R,c.value=!1,l.autoplay&&ee(),M.value=null)};M.value=requestAnimationFrame(fe)},q=()=>{l.infinite&&o.value>=i.value-w.value?O(0):O(o.value+1)},J=()=>{l.infinite&&o.value<=0?O(i.value-w.value):O(o.value-1)},g=z=>{O(z)},E=z=>{c.value&&M.value&&(l.autoplay&&H(),cancelAnimationFrame(M.value),c.value=!1);const D="touches"in z?z.touches[0]:z;y.value=D.clientX,f.value=D.clientY,h.value=null,d.value=s.value,$.value=0,v.value=0,C.value=0,k.value=performance.now(),r.value&&(r.value.style.scrollSnapType="none"),document.addEventListener("mousemove",V,{passive:!1}),document.addEventListener("mouseup",j),document.addEventListener("touchmove",V,{passive:!1}),document.addEventListener("touchend",j)},V=z=>{const D="touches"in z?z.touches[0]:z;if(!h.value){const Ee=Math.abs(D.clientX-y.value),fe=Math.abs(D.clientY-f.value),Te=5;if(Ee>Te||fe>Te)if(l.sliderOrientation==="horizontal")if(Ee>fe)h.value="horizontal",m.value=!0;else{T();return}else if(fe>Ee)h.value="vertical",m.value=!0;else{T();return}else return}if(!m.value||!a.value||!r.value)return;z.cancelable&&z.preventDefault();const P=performance.now(),F=P-k.value,K=l.sliderOrientation==="horizontal"?D.clientX:D.clientY,R=l.sliderOrientation==="horizontal"?y.value:f.value,te=l.sliderOrientation==="horizontal"?v.value||R:C.value||R,W=K-te;F>0&&($.value=W/F*1e3);const oe=K-R;let Z=d.value-oe;Z<0?Z=Z*.3:Z>I.value&&(Z=I.value+(Z-I.value)*.3),Y.value=Z,a.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-Y.value}px, 0, 0)`:`translate3d(0, ${-Y.value}px, 0)`,l.sliderOrientation==="horizontal"?v.value=K:C.value=K,k.value=P},T=()=>{document.removeEventListener("mousemove",V),document.removeEventListener("mouseup",j),document.removeEventListener("touchmove",V),document.removeEventListener("touchend",j)},j=()=>{if(!m.value||!r.value||!a.value)return;const D=l.sliderOrientation==="horizontal"?d.value-(v.value-y.value):d.value-(C.value-f.value),P=Math.max(0,Math.min(D,I.value)),F=b()+N.value;if(m.value=!1,T(),s.value=P,l.infinite){if(D<0){O(i.value-1);return}else if(D>I.value){O(0);return}}else if(D<0){O(0);return}else if(D>I.value){const W=Math.max(0,i.value-Math.floor(w.value));O(W);return}const K=Math.max(0,i.value-Math.floor(w.value)),R=100,te=Math.round(P/F);if(Math.abs($.value)>R){const W=-Math.sign($.value),oe=te+W;O(Math.max(0,Math.min(K,oe)))}else O(Math.max(0,Math.min(K,te)))},A=()=>{!l.autoplay||U.value!==null||(U.value=setInterval(()=>{q()},l.autoplayInterval))},H=()=>{U.value!==null&&(clearInterval(U.value),U.value=null)},ee=()=>{H(),setTimeout(()=>{A()},500)},re=()=>{u.value=window.innerWidth},Qe=()=>{if(!r.value||w.value<=0||(x(),i.value===0))return;const z=b();if(z<=0)return;const D=Math.max(0,i.value-w.value),P=Math.min(Math.max(0,l.initialSlide),D),F=P*(z+N.value),K=I.value,R=Math.max(0,Math.min(F,K));a.value&&(a.value.style.transitionDuration="0ms",a.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-R}px, 0, 0)`:`translate3d(0, ${-R}px, 0)`),s.value=R,o.value=P};e.onUnmounted(()=>{window.removeEventListener("resize",re)});let _t=!1;return e.onMounted(()=>{var D,P,F,K,R,te,W,oe;u.value=window.innerWidth;const z=e.watch(i,Z=>{Z>0&&!_t&&(Qe(),_t=!0,z())});l.autoplay&&A(),window.addEventListener("resize",re),x(),(D=r.value)==null||D.addEventListener("mousedown",E),(P=r.value)==null||P.addEventListener("touchstart",E,{passive:!0}),l.showNavigationButtons&&((R=(K=(F=r.value)==null?void 0:F.parentElement)==null?void 0:K.querySelector(".absolute.flex.justify-between"))==null||R.addEventListener("click",ee)),l.showIndicators&&((oe=(W=(te=r.value)==null?void 0:te.parentElement)==null?void 0:W.querySelector(".bottom-5.flex.justify-center"))==null||oe.addEventListener("click",ee))}),e.onUnmounted(()=>{window.removeEventListener("resize",re)}),e.watch(()=>l.autoplay,z=>{z?A():H()}),e.watch(()=>l.autoplayInterval,ee),e.watch(()=>l.initialSlide,z=>{requestAnimationFrame(()=>O(z,!0))}),e.watch([w,N],()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{if(x(),i.value===0)return;const z=Math.max(0,i.value-w.value),D=Math.min(o.value,z);O(D,!0)})})}),n({scrollToSlide:O}),(z,D)=>(e.openBlock(),e.createElementBlock("div",Vn,[e.createElementVNode("div",{ref_key:"carouselContainer",ref:r,class:e.normalizeClass(["rounded w-full h-full carousel",[{"carousel-horizontal":t.sliderOrientation=="horizontal"},{"carousel-vertical":t.sliderOrientation=="vertical"},{"cursor-grabbing !select-none":m.value}]]),style:{scrollSnapType:"none"}},[e.createElementVNode("div",{ref_key:"slidesContainer",ref:a,class:e.normalizeClass(["w-full h-full transition-transform duration-0 ease-out",t.sliderOrientation==="horizontal"?"flex":"block"]),style:e.normalizeStyle({gap:`${N.value}px`})},[e.renderSlot(z.$slots,"default",{},void 0,!0)],6)],2),t.showNavigationButtons?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([{"top-1/2 right-5 left-5 z-10 absolute flex justify-between items-center -translate-y-1/2 transform":t.sliderOrientation==="horizontal"},{"right-0 absolute flex justify-between items-center -translate-y-1/2 transform rotate-90 top-1/2 gap-3":t.sliderOrientation==="vertical"}])},[e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[l.infinite||o.value>0?(e.openBlock(),e.createElementBlock("div",Nn,[e.createElementVNode("div",{onClick:J,role:"button","aria-label":"Previous Slide"},[e.renderSlot(z.$slots,"prevButton",{},()=>[D[0]||(D[0]=e.createElementVNode("button",{class:"btn btn-circle text-xs",tabindex:"-1"},"❮",-1))],!0)])])):e.createCommentVNode("",!0)]),_:3}),D[2]||(D[2]=e.createElementVNode("div",{class:"flex-grow"},null,-1)),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[l.infinite||o.value<i.value-w.value?(e.openBlock(),e.createElementBlock("div",Dn,[e.createElementVNode("div",{onClick:q,role:"button","aria-label":"Next Slide"},[e.renderSlot(z.$slots,"nextButton",{},()=>[D[1]||(D[1]=e.createElementVNode("button",{class:"btn btn-circle text-xs",tabindex:"-1"},"❯",-1))],!0)])])):e.createCommentVNode("",!0)]),_:3})],2)):e.createCommentVNode("",!0),t.showIndicators?(e.openBlock(),e.createElementBlock("div",zn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(P,F)=>(e.openBlock(),e.createElementBlock("button",{key:`dot-${F}`,onClick:K=>g(F),class:e.normalizeClass(["btn btn-circle btn-xs",{"btn-active":F===o.value}]),"aria-label":`Go to slide ${F+1}`},null,10,Tn))),128))])):e.createCommentVNode("",!0)]))}}),ie=(t,n)=>{const l=t.__vccOpts||t;for(const[o,r]of n)l[o]=r;return l},In=ie(Mn,[["__scopeId","data-v-dd58428c"]]),On=ie(e.defineComponent({__name:"carouselItem",setup(t){const n=e.inject(lt,e.ref({}));return(l,o)=>(e.openBlock(),e.createElementBlock("div",{class:"w-full h-full carousel-item",style:e.normalizeStyle(e.unref(n))},[e.renderSlot(l.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-507384bc"]]),Pn={class:"flex gap-4 bg-base-100 w-full tabs tabs-boxed"},Ln=["onClick"],jn={key:0,class:"inline-component-wrapper flex grow justify-center items-center w-full h-full"},An={key:1,class:"flex flex-col"},Fn={class:"text-sm"},_n={key:0,class:"opacity-75 overflow-hidden text-xs truncate ..."},Un={key:1,class:"hidden md:block opacity-35 overflow-hidden text-xs truncate ..."},Rn={class:"hidden"},qn=["id"],Hn={class:"modal-box"},Wn={class:"font-bold text-lg"},Kn=["name","checked"],Yn={class:"collapse-title flex justify-between items-center pr-4 w-full font-medium text-xl"},Xn={key:0,class:"opacity-75 overflow-hidden text-sm truncate ..."},Jn={key:1,class:"opacity-35 text-sm"},Gn={class:"collapse-content flex place-content-center p-0"},Zn=ie(e.defineComponent({__name:"advancedSearch",props:{searchOptions:{},currentCategory:{},id:{},value:{}},emits:["search","update:search-data"],setup(t,{emit:n}){const l=t,o=n,r=l.id??`advancedSearch-${e.useId()}`,a=e.ref(null),s=e.ref(null),c={datetime:e.defineAsyncComponent(()=>Promise.resolve().then(()=>fo)),"standard-select":e.defineAsyncComponent(()=>Promise.resolve().then(()=>So)),"custom-text":e.defineAsyncComponent(()=>Promise.resolve().then(()=>qo))},i=e.ref({}),u=e.ref({left:"0px",top:"0px",transform:"translateX(0%)"}),m=e.ref(null),y=h=>{var B;if(h.value===void 0||h.value===null||h.value==="")return"";switch(h.type){case"datetime":if(typeof h.value=="string")try{const w=new Date(h.value);if(!isNaN(w.getTime()))return w.toLocaleString()}catch{}else if(h.range&&typeof h.value=="object"&&h.value!==null&&"start"in h.value&&"end"in h.value)try{const w=new Date(h.value.start),N=new Date(h.value.end);if(!isNaN(w.getTime())&&!isNaN(N.getTime()))return`${w.toLocaleDateString()} - ${N.toLocaleDateString()}`}catch{}break;case"custom-range":if(typeof h.value=="object"&&h.value!==null&&"start"in h.value&&"end"in h.value)return`${h.value.start} - ${h.value.end}`;break;case"custom-number":if(typeof h.value=="number")return h.value.toString();break;case"standard-select":case"custom-select":if((B=h.props)!=null&&B.options&&Array.isArray(h.props.options)){const w=h.props.options.find(N=>N.value===h.value);if(w)return w.text}return String(h.value);case"custom-text":if(typeof h.value=="string")return h.value;break}return String(h.value)};function f(h){var p,x;const B=(p=a.value)==null?void 0:p.name;if(!B){console.warn("componentValueUpdated called but no active tab.");return}const w=(x=l.searchOptions.find(b=>(b==null?void 0:b.category)===l.currentCategory))==null?void 0:x.tabs,N=w==null?void 0:w.find(b=>b.name===B);N?(N.value=h,o("update:search-data",{tab:N.name,data:h})):console.error(`Tab with name "${B}" not found in current category.`)}function d(h){f(h)}function $(){o("search")}async function v(h){var N;const B=document.getElementById(`advancedSearchMobile-${r}`),w=B&&B.contains(h.target);((N=a.value)==null?void 0:N.displayMode)==="popup"&&m.value&&!m.value.contains(h.target)&&!w&&(await e.nextTick(),a.value=null)}async function C(){if(typeof window<"u"&&window.innerWidth<=768){const h=document.getElementById(`advancedSearchMobile-${r}`);h?(a.value=null,h.showModal()):console.warn(`Mobile modal element not found. Ensure it exists with id="advancedSearchMobile-${r}".`)}}async function k(h){var w,N,p;if(typeof window<"u"&&window.innerWidth<=768){C();return}const B=h.displayMode??"popup";if(((w=a.value)==null?void 0:w.name)===h.name&&((N=a.value)==null?void 0:N.displayMode)===B)a.value=null;else if(a.value={...h,displayMode:B},await e.nextTick(),((p=a.value)==null?void 0:p.displayMode)==="popup"){const x=i.value[h.name];if(x&&m.value){const b=x.getBoundingClientRect(),I=m.value.getBoundingClientRect(),O=b.bottom-I.top,q=b.left+b.width/2-I.left;u.value={left:`${q}px`,top:`${O+8}px`,transform:"translateX(-50%)"}}else console.error("Tab element or search container not found for positioning:",h.name)}}const M=h=>{const B=h.relatedTarget;setTimeout(()=>{var w;((w=a.value)==null?void 0:w.displayMode)==="inline"&&m.value&&(!B||!m.value.contains(B))?(console.log("Blur detected outside container, closing inline view."),a.value=null):console.log("Blur detected, but staying within container or not an inline tab.")},50)},U=()=>{console.log("Enter key pressed on inline component, closing inline view."),a.value=null};e.watch(s,h=>{var B;console.log("advanced-search: inlineComponentRef changed. New Value:",h),console.log("advanced-search: activeTab.value:",a.value),h&&((B=a.value)==null?void 0:B.displayMode)==="inline"?(console.log("advanced-search: Inline component ref is available and active tab is inline. Attempting to focus child input..."),e.nextTick(()=>{console.log("advanced-search: Inside nextTick. Attempting to call child's focus method..."),console.log("advanced-search: Type of newValue:",typeof h),console.log("advanced-search: Does newValue have focusInput?",typeof h.focusInput=="function"),h&&typeof h.focusInput=="function"?(console.log("advanced-search: Calling exposed focusInput() method on child instance."),h.focusInput()):console.warn('advanced-search: Child inline component instance does not expose a "focusInput" method or is not ready.',h)})):console.log(h?"advanced-search: inlineComponentRef available, but active tab is not inline.":"advanced-search: inlineComponentRef is now null (component likely unmounted).")}),e.onMounted(()=>{document.addEventListener("click",v),window.addEventListener("resize",Y)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",v),window.removeEventListener("resize",Y)});const Y=()=>{var h,B;if(typeof window<"u"){const w=window.innerWidth<=768,N=a.value!==null&&(a.value.displayMode==="popup"||a.value.displayMode==="inline")&&window.innerWidth>768;!w&&(((h=a.value)==null?void 0:h.displayMode)==="popup"||((B=a.value)==null?void 0:B.displayMode)==="inline")&&window.innerWidth<=768&&(console.log("Resizing to mobile, closing active tab."),a.value=null),w&&!N&&a.value!==null&&(console.log("Resizing to desktop from potential mobile active state, closing active tab."),a.value=null);const p=document.getElementById(`advancedSearchMobile-${r}`);p!=null&&p.open&&!w&&(console.log("Modal is open on desktop, closing modal and active tab."),p.close(),a.value=null)}};return(h,B)=>{var w,N;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{ref_key:"searchContainer",ref:m,class:"w-full"},[e.createElementVNode("div",{class:"group/search relative flex place-items-center shadow-md p-2 border-2 border-base-300/25 rounded-sm w-full transition-all cursor-pointer md:cursor-auto",onClick:C},[e.createElementVNode("div",Pn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((w=l.searchOptions.find(p=>p.category===l.currentCategory))==null?void 0:w.tabs)||[],(p,x)=>{var b,I,O,q,J;return e.openBlock(),e.createElementBlock("button",{key:`${p.name}-${x}`,onClick:e.withModifiers(g=>k(p),["stop"]),class:e.normalizeClass([{"tab-active":((b=a.value)==null?void 0:b.name)===p.name,"tab-active-inline":((I=a.value)==null?void 0:I.name)===p.name&&((O=a.value)==null?void 0:O.displayMode)==="inline"},"group/searchitem after:top-0 after:-right-2 after:absolute relative first-of-type:flex-auto last-of-type:flex-auto after:bg-base-200 hover:bg-base-200 p-1 rounded-sm w-auto after:w-px after:h-10 overflow-x-hidden text-start md:after:content-[''] after:content-none last-of-type:after:content-none"]),ref_for:!0,ref:g=>i.value[p.name]=g},[((q=a.value)==null?void 0:q.name)===p.name&&((J=a.value)==null?void 0:J.displayMode)==="inline"?(e.openBlock(),e.createElementBlock("div",jn,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c[a.value.type]),e.mergeProps({ref_for:!0},a.value.props||{},{modelValue:a.value.value,onUpdated:B[0]||(B[0]=g=>d(g)),"onUpdate:modelValue":B[1]||(B[1]=g=>d(g)),onBlur:M,onKeydown:e.withKeys(e.withModifiers(U,["stop","prevent"]),["enter"]),ref_for:!0,ref_key:"inlineComponentRef",ref:s}),null,16,["modelValue","onKeydown"]))])):(e.openBlock(),e.createElementBlock("div",An,[e.createElementVNode("p",Fn,e.toDisplayString(p.name),1),p.value!==void 0&&p.value!==null&&p.value!==""?(e.openBlock(),e.createElementBlock("p",_n,e.toDisplayString(y(p)),1)):(e.openBlock(),e.createElementBlock("p",Un,e.toDisplayString(p.description),1))]))],10,Ln)}),128))]),a.value&&a.value.displayMode==="popup"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"absolute flex shadow-sm mt-4 w-fit max-w-full transition-all tab-content",style:e.normalizeStyle(u.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c[a.value.type]),e.mergeProps(a.value.props||{},{modelValue:a.value.value,onUpdated:B[2]||(B[2]=p=>f(p)),"onUpdate:modelValue":B[3]||(B[3]=p=>f(p))}),null,16,["modelValue"]))],4)):e.createCommentVNode("",!0),e.createElementVNode("button",{title:"search",type:"submit",class:"ml-1 btn btn-primary btn-square",onClick:e.withModifiers($,["stop"])},[e.createVNode(e.unref(ot),{size:24,color:"white"})])]),e.createElementVNode("div",Rn,[e.createElementVNode("button",{title:"search",onClick:B[4]||(B[4]=()=>{})},[e.createVNode(e.unref(ot),{size:24,color:"white"})])])],512),e.createElementVNode("dialog",{id:`advancedSearchMobile-${e.unref(r)}`,class:"modal"},[e.createElementVNode("div",Hn,[e.renderSlot(h.$slots,"additionalForMobile",{},()=>[e.createElementVNode("h3",Wn,e.toDisplayString(t.currentCategory),1)],!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((N=l.searchOptions.find(p=>p.category===l.currentCategory))==null?void 0:N.tabs)||[],(p,x)=>(e.openBlock(),e.createElementBlock("div",{class:"collapse bg-base-200 my-4",key:p.name},[e.createElementVNode("input",{type:"radio",name:`accordion-${e.unref(r)}`,checked:x===0},null,8,Kn),e.createElementVNode("div",Yn,[e.createElementVNode("div",null,e.toDisplayString(p.name),1),p.value!==void 0&&p.value!==null&&p.value!==""?(e.openBlock(),e.createElementBlock("div",Xn,e.toDisplayString(y(p)),1)):(e.openBlock(),e.createElementBlock("div",Jn,e.toDisplayString(p.description),1))]),e.createElementVNode("div",Gn,[B[7]||(B[7]=e.createElementVNode("br",null,null,-1)),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c[p.type]),e.mergeProps({ref_for:!0},p.props||{},{modelValue:p.value,onUpdated:B[5]||(B[5]=b=>f(b)),"onUpdate:modelValue":B[6]||(B[6]=b=>f(b))}),null,16,["modelValue"]))])]))),128)),e.createElementVNode("div",{class:"modal-action"},[e.createElementVNode("form",{method:"dialog"},[e.createElementVNode("button",{class:"btn btn-primary",onClick:$}," Close and Search ")])])])],8,qn)],64)}}}),[["__scopeId","data-v-577c3624"]]),Qn={class:"z-30 relative flex items-center bg-base-100 date-filter-input px-4 border-2 border-primary rounded-md w-full min-h-10 font-semibold text-primary text-sm"},eo={key:0},to={key:1},no=["id","onKeydown"],oo={key:2,class:"flex justify-center p-4"},lo={class:"join items-center gap-2 max-w-2xs md:max-w-full justify-between max-md:input max-md:input-bordered !rounded overflow-hidden mx-auto"},ao={class:"join-item"},ro=["id","disabled","value"],so={class:"join-item"},io=["id","disabled","value"],co={key:3,class:"p-4 min-w-2xs"},uo=["id","disabled","value"],mo={key:4,class:"flex px-4 my-4 w-full justify-end"},at=ie(e.defineComponent({__name:"datetimePicker",props:{mode:{default:"datetime"},range:{type:Boolean,default:!1},placeholder:{default:"Select date and time"},popup:{type:Boolean,default:!1},id:{default:"date-time-picker"},initialDate:{default:null},disabled:{type:Boolean,default:!1},locale:{default:"en-US"},format:{},firstDayOfWeek:{default:1},min:{},max:{},closeText:{default:"Close"}},emits:["update:modelValue","change"],setup(t,{emit:n}){const l=typeof window<"u",o=t,r=n,a=e.ref(null),s=e.ref(!1),c=e.ref(null),i=e.ref(null),u=e.ref(null),m=e.ref(null),y=e.ref(null),f=e.ref({from:"",to:"",single:""}),d=e.ref({single:null,start:null,end:null}),$=g=>g instanceof Date?g.toISOString():g,v=g=>g.split("T")[0]||"",C=g=>{const E=g instanceof Date?g:new Date(g);if(isNaN(E.getTime()))return"";const V=String(E.getHours()).padStart(2,"0"),T=String(E.getMinutes()).padStart(2,"0");return`${V}:${T}`},k=()=>{const g=new Date,E=C(g);let V=o.initialDate;if(!V&&o.mode!=="time"&&(V=o.range?{start:g,end:g}:g),!!V){if(!V){o.mode==="time"&&(o.range?(f.value.from=E,f.value.to=E):f.value.single=E);return}if(o.range&&typeof V=="object"&&"start"in V){const T=$(V.start),j=$(V.end);d.value.start=v(T),d.value.end=v(j),o.mode!=="date"&&(f.value.from=C(T),f.value.to=C(j))}else{const T=$(V);d.value.single=v(T),o.mode!=="date"&&(f.value.single=C(T))}}},M=e.computed(()=>{const g=T=>{if(!T)return"";if(T.includes(":"))return T;try{return new Date(T+"T00:00:00").toLocaleDateString(o.locale,{year:"numeric",month:"numeric",day:"numeric"})}catch{const[j,A,H]=T.split("-");return`${H}/${A}/${j}`}};let E="",V="";if((o.mode==="date"||o.mode==="datetime")&&(o.range?d.value.start&&d.value.end&&(E=`${d.value.start} - ${d.value.end}`):d.value.single&&(E=d.value.single)),(o.mode==="time"||o.mode==="datetime")&&(o.range?f.value.from&&f.value.to&&(V=`${f.value.from} - ${f.value.to}`):f.value.single&&(V=f.value.single)),o.mode==="date")return o.range?E.split(" - ").map(g).join(" - "):g(E);if(o.mode==="time")return V;if(o.mode==="datetime")if(o.range){const T=d.value.start,j=d.value.end,A=f.value.from,H=f.value.to;if(T&&j&&A&&H)return`${g(T)} ${A} - ${g(j)} ${H}`;if(T)return`${g(T)} ${A||""}`.trim()}else{const T=d.value.single,j=f.value.single;return`${g(T)} ${j||""}`.trim()}return""}),U=()=>{if(c.value)d.value.single=c.value.value||null;else if(i.value){const g=i.value.value;if(typeof g=="string"&&g.includes("/")){const[E,V]=g.split("/");d.value.start=E||null,d.value.end=V||null}else d.value.start=g||null,d.value.end=g||null}},Y=()=>d.value.start&&d.value.end?`${d.value.start}/${d.value.end}`:null,h=()=>{if(o.range){const V=d.value.start,T=d.value.end||d.value.start,j=f.value.from,A=f.value.to;if(o.mode==="time")return j&&A?{start:j,end:A}:null;if(o.mode==="date")return V&&T?{start:V,end:T}:null;if(o.mode==="datetime"){if(!V||!T)return null;const H=j?`${j}:00`:"00:00:00",ee=A?`${A}:00`:"23:59:59",re=`${V}T${H}`,Qe=`${T}T${ee}`;return{start:re,end:Qe}}return null}const g=d.value.single,E=f.value.single;if(o.mode==="time")return E||null;if(o.mode==="date")return g||null;if(o.mode==="datetime"){if(!g)return null;const V=E?`${E}:00`:"00:00:00";return`${g}T${V}`}return null},B=async()=>{U();const g=h();r("update:modelValue",g),r("change",g)},w=()=>{e.nextTick(()=>{B()})},N=g=>{const E=g.target;o.range?E===m.value?f.value.from=E.value:E===y.value&&(f.value.to=E.value):f.value.single=E.value,B()},p=()=>{s.value=!s.value},x=()=>{B(),s.value=!1},b=g=>{!o.popup||!s.value||setTimeout(()=>{const E=a.value,V=g.target,T=`date-picker-${o.id}-popup`;E&&!E.contains(V)&&!g.target.closest(`#${T}`)&&x()},0)},I=()=>{x()},O=()=>{B(),o.popup&&(s.value=!1)},q=()=>{if(!l)return;const g=o.range?i.value:c.value;g&&typeof g.navigate=="function"&&g.navigate(-1)},J=()=>{if(!l)return;const g=o.range?i.value:c.value;g&&typeof g.navigate=="function"&&g.navigate(1)};return e.onMounted(()=>{l&&Promise.resolve().then(()=>ba).catch(g=>{console.warn("Failed to load cally:",g)}),k()}),e.watch(d,async g=>{if(await e.nextTick(),c.value&&g.single){const E=g.single;c.value.value!==E&&(c.value.value=E)}if(i.value){const E=Y();E&&i.value.value!==E&&(i.value.value=E)}B()},{immediate:!0,deep:!0}),e.watch([d,c,i],async()=>{await e.nextTick(),c.value&&d.value.single&&!c.value.value&&(c.value.value=d.value.single),i.value&&d.value.start&&d.value.end&&!i.value.value&&(i.value.value=`${d.value.start}/${d.value.end}`),B()},{immediate:!0}),e.watch([u,m,y],()=>{B()},{immediate:!0}),(g,E)=>{const V=e.resolveComponent("calendar-month"),T=e.resolveComponent("calendar-date"),j=e.resolveComponent("calendar-range");return e.openBlock(),e.createElementBlock("div",{class:"inline-block relative w-fit lg:w-full",ref_key:"pickerContainer",ref:a,onMousedownCapture:b},[o.popup?(e.openBlock(),e.createElementBlock("div",{key:0,class:"flex items-center gap-2 cursor-pointer w-full",onClick:E[0]||(E[0]=A=>o.disabled?null:p())},[e.createElementVNode("div",Qn,[M.value?(e.openBlock(),e.createElementBlock("span",to,e.toDisplayString(M.value),1)):(e.openBlock(),e.createElementBlock("span",eo,e.toDisplayString(o.placeholder),1))])])):e.createCommentVNode("",!0),s.value||!o.popup?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["z-50 bg-base-100 rounded-md w-full min-w-xs overflow-hidden",{"absolute top-full left-0 mt-2 shadow-lg":o.popup,"mt-2":!o.popup}]),id:`date-picker-${o.id}-popup`,onKeydown:[E[1]||(E[1]=e.withKeys(e.withModifiers(()=>{},["prevent","stop"]),["tab"])),e.withKeys(I,["esc"]),e.withKeys(e.withModifiers(O,["prevent"]),["enter"])]},[!o.range&&o.mode!=="time"&&l?(e.openBlock(),e.createBlock(T,{key:0,class:"cally w-full",ref_key:"datePicker",ref:c,id:`${o.id}-date`,min:o.min,max:o.max,disabled:o.disabled,"first-day-of-week":o.firstDayOfWeek,onChange:w},{default:e.withCtx(()=>[e.createElementVNode("button",{slot:"previous",class:"btn-outline btn btn-primary md:btn-sm",onClick:q},[...E[2]||(E[2]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1)])]),e.createElementVNode("button",{slot:"next",class:"btn-outline btn btn-primary md:btn-sm",onClick:J},[...E[3]||(E[3]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"})],-1)])]),e.createVNode(V,{locale:o.locale},null,8,["locale"])]),_:1},8,["id","min","max","disabled","first-day-of-week"])):e.createCommentVNode("",!0),o.range&&o.mode!=="time"&&l?(e.openBlock(),e.createBlock(j,{key:1,class:"cally w-full",ref_key:"rangeDatePicker",ref:i,id:`${o.id}-date-range`,min:o.min,max:o.max,disabled:o.disabled,"first-day-of-week":o.firstDayOfWeek,onChange:w},{default:e.withCtx(()=>[e.createElementVNode("button",{slot:"previous",class:"btn-outline btn btn-primary md:btn-sm",onClick:q},[...E[4]||(E[4]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1)])]),e.createElementVNode("button",{slot:"next",class:"btn-outline btn btn-primary md:btn-sm",onClick:J},[...E[5]||(E[5]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"})],-1)])]),e.createVNode(V,{locale:o.locale},null,8,["locale"])]),_:1},8,["id","min","max","disabled","first-day-of-week"])):e.createCommentVNode("",!0),o.range&&o.mode!=="date"?(e.openBlock(),e.createElementBlock("div",oo,[e.createElementVNode("div",lo,[e.createElementVNode("div",ao,[e.createElementVNode("input",{class:"text-center hover:border-b-2 hover:-mb-0.5 open:bg-primary open:p-1 open:-m-0.5 open:rounded w-full relative",type:"time",ref_key:"timeFromInput",ref:m,id:`${o.id}-time-from`,placeholder:"from",onChange:N,disabled:o.disabled,value:f.value.from||""},null,40,ro)]),E[6]||(E[6]=e.createElementVNode("svg",{class:"join-item",viewBox:"0 0 1024 1024",focusable:"false","data-icon":"swap-right",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"})],-1)),e.createElementVNode("div",so,[e.createElementVNode("input",{class:"text-center hover:border-b-2 hover:-mb-0.5 open:bg-primary open:p-1 open:-m-0.5 open:rounded w-full relative",type:"time",ref_key:"timeToInput",ref:y,id:`${o.id}-time-to`,onChange:N,disabled:o.disabled,value:f.value.to||""},null,40,io)])])])):e.createCommentVNode("",!0),!o.range&&o.mode!=="date"?(e.openBlock(),e.createElementBlock("div",co,[e.createElementVNode("input",{class:"open:bg-primary open:rounded w-full input input-bordered justify-center",type:"time",ref_key:"timeInput",ref:u,id:`${o.id}-time`,onChange:N,disabled:o.disabled,value:f.value.single||""},null,40,uo)])):e.createCommentVNode("",!0),o.popup&&o.closeText?(e.openBlock(),e.createElementBlock("div",mo,[e.createElementVNode("button",{class:"btn btn-primary max-lg:w-full",onClick:x},e.toDisplayString(o.closeText),1)])):e.createCommentVNode("",!0)],42,no)):e.createCommentVNode("",!0)],544)}}}),[["__scopeId","data-v-e0b34494"]]),fo=Object.freeze(Object.defineProperty({__proto__:null,default:at},Symbol.toStringTag,{value:"Module"})),po=["value","checked","onChange","disabled"],ho=e.defineComponent({__name:"rating",props:{initialRating:{default:0},numberOfStars:{default:5},halfStars:{type:Boolean,default:!0},isInteractive:{type:Boolean,default:!1},size:{default:"sm"},shape:{default:"star"},color:{default:"bg-yellow-400"},gap:{default:0}},setup(t){const n=t,l=e.ref(n.initialRating);e.watch(()=>n.initialRating,r=>{l.value=r});const o=r=>{l.value=r};return(r,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["rating",[`rating-${n.size}`,{"rating-half":t.halfStars},{"pointer-events-none":!t.isInteractive}]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.numberOfStars*(t.halfStars?2:1),s=>(e.openBlock(),e.createElementBlock("input",{key:s,type:"radio",value:t.halfStars?s*.5:s,checked:l.value===(t.halfStars?s*.5:s),onChange:c=>t.isInteractive?o(t.halfStars?s*.5:s):null,class:e.normalizeClass(["mask",[{"mask-half-1":t.halfStars&&s%2!==0,"mask-half-2":t.halfStars&&s%2===0,"cursor-pointer":t.isInteractive,"cursor-default":!t.isInteractive,"mask-star":t.shape==="star","mask-star-2":t.shape==="star-bold","mask-heart":t.shape==="heart","mask-hexagon":t.shape==="hexagon-vertical","mask-hexagon-2":t.shape==="hexagon-horizontal","mask-decagon":t.shape==="decagon","mask-pentagon":t.shape==="pentagon","mask-diamond":t.shape==="diamond","mask-square":t.shape==="square","mask-triangle":t.shape==="triangle-top","mask-triangle-2":t.shape==="triangle-bottom","mask-triangle-3":t.shape==="triangle-left","mask-triangle-4":t.shape==="triangle-right"},l.value>=(t.halfStars?s*.5:s)?n.color:""]]),style:e.normalizeStyle({marginRight:t.halfStars&&s%2===0?`${n.gap}px`:t.halfStars?"0":`${n.gap}px`}),disabled:!t.isInteractive},null,46,po))),128))],2))}}),go={class:"badge"},yo=["onClick"],bo={class:"opacity-75"},ko=["placeholder"],wo=e.defineComponent({__name:"taginput",props:{modelValue:{},maxTagAmount:{},placeholder:{},class:{}},emits:["update:modelValue"],setup(t,{emit:n}){const l=t,o=n,r=e.ref([...l.modelValue]),a=l.maxTagAmount===void 0?-1:l.maxTagAmount,s=e.ref(null),c=e.ref(""),i=e.computed(()=>a<0||r.value.length<a),u=()=>{const d=c.value.trim();d&&!r.value.includes(d)&&(r.value.push(d),o("update:modelValue",r.value),c.value="")},m=d=>{r.value=r.value.filter($=>$!==d),o("update:modelValue",r.value)},y=()=>{c.value===""&&(r.value.pop(),o("update:modelValue",r.value))},f=d=>{d.key==="Enter"?u():d.key==="Backspace"&&c.value===""&&y()};return e.watch(()=>l.modelValue,d=>{r.value=[...d]}),(d,$)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex flex-wrap gap-2 bg-base-100 shadow px-4 py-6 border border-base-content/20 rounded",d.$props.class])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,v=>e.renderSlot(d.$slots,"tag",{key:v,tag:v},()=>[e.createElementVNode("div",go,[e.createElementVNode("button",{class:"px-1! py-0! h-fit font-bold cursor-pointer",onClick:C=>m(v),"aria-label":"Remove tag"},"X",8,yo),e.createElementVNode("span",bo,e.toDisplayString(v),1)])])),128)),e.renderSlot(d.$slots,"input",{showInput:i.value},()=>[i.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,ref_key:"inputRef",ref:s,"onUpdate:modelValue":$[0]||($[0]=v=>c.value=v),type:"text",placeholder:t.placeholder||"Type here",class:"h-full input input-ghost",onKeydown:f,"aria-label":"Add tags"},null,40,ko)),[[e.vModelText,c.value]]):e.createCommentVNode("",!0)])],2))}}),vo={class:"w-full max-w-xs form-control"},xo={key:0,class:"label"},Eo={class:"label-text"},Bo=["value"],$o={key:0,value:"",disabled:"",selected:""},Co=["value"],rt=e.defineComponent({__name:"select",props:{options:{},label:{},placeholder:{},modelValue:{}},emits:["update:modelValue"],setup(t,{expose:n,emit:l}){console.log(t.placeholder);const r=l,a=e.ref(null),s=i=>{const u=i.target;r("update:modelValue",u.value)};return n({focusInput:()=>{var i;console.log("select.vue: focusInput method called."),(i=a.value)==null||i.focus()}}),(i,u)=>(e.openBlock(),e.createElementBlock("div",vo,[t.label?(e.openBlock(),e.createElementBlock("label",xo,[e.createElementVNode("span",Eo,e.toDisplayString(t.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("select",{ref_key:"selectElement",ref:a,class:"rounded-md w-full select-bordered select",value:t.modelValue,onChange:s},[t.placeholder?(e.openBlock(),e.createElementBlock("option",$o,e.toDisplayString(t.placeholder),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,m=>(e.openBlock(),e.createElementBlock("option",{key:m.value,value:m.value},e.toDisplayString(m.text),9,Co))),128))],40,Bo)]))}}),So=Object.freeze(Object.defineProperty({__proto__:null,default:rt},Symbol.toStringTag,{value:"Module"})),Vo={key:0,class:"label"},No={class:"label-text"},Do=["onKeydown","aria-expanded","aria-activedescendant"],zo=["placeholder","disabled"],To={class:"top-full z-10 absolute bg-base-100 shadow-lg mt-1 rounded-md w-full dropdown-content",role:"listbox"},Mo={class:"flex-nowrap p-0 w-[inherit] max-h-60 overflow-y-auto menu"},Io=["onMousedown","id","aria-selected"],Oo={__name:"filterableSelect",props:{options:{type:Array,required:!0,default:()=>[]},label:{type:String,default:""},placeholder:{type:String,default:"Select an option"},modelValue:{type:[String,Number,Object,null],default:null},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","select","clear"],setup(t,{expose:n,emit:l}){const o=t,r=l,a=e.useSlots(),s=e.computed(()=>{const x=(a.default?a.default():[]).filter(b=>b.type!==e.Comment);return console.log("hasDefaultSlotContent computed:",x.length>0),x.length>0}),c=e.ref(""),i=e.ref(null),u=e.ref(!1),m=e.ref(null),y=e.ref(null),f=e.ref(null),d=e.ref(null),$=()=>{u.value=!o.disabled},v=()=>{u.value=!1,d.value=null,s.value||(i.value&&c.value!==i.value.text?c.value=i.value.text:i.value||(c.value=""))},C=()=>{u.value?v():$()},k=e.computed(()=>{const p=c.value?c.value.toLowerCase():"";return p===""&&!u.value?[]:o.options.filter(b=>b&&b.text?b.text.toLowerCase().includes(p):"")});e.watch(()=>o.modelValue,(p,x)=>{if(p!==x&&v(),p==null)i.value=null,!u.value&&!s.value&&(c.value="");else{const b=o.options.find(I=>I.value===p);b?(i.value=b,!u.value&&!s.value&&(c.value=b.text)):(i.value=null,!u.value&&!s.value&&(c.value=""))}},{immediate:!0});const M=p=>{y.value&&!y.value.contains(p.target)&&v()},U=()=>{setTimeout(()=>{y.value&&!y.value.contains(document.activeElement)&&v()},100)};e.watch(u,p=>{p?setTimeout(()=>{document.addEventListener("click",M)},0):document.removeEventListener("click",M)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",M),window.removeEventListener("keydown",N)});const Y=()=>{if(o.disabled)return;const p=i.value;r("update:modelValue",null),p&&r("clear",p)},h=p=>{i.value=p,s.value||(c.value=p.text),r("update:modelValue",p.value),r("select",p),v()},B=()=>{k.value.length>0&&h(k.value[0])},w=()=>{u.value||$()},N=p=>{if(!u.value||k.value.length===0)return;const x=k.value.findIndex((I,O)=>"option-"+O===d.value);let b=-1;if(p.key==="ArrowDown")p.preventDefault(),b=(x+1)%k.value.length;else if(p.key==="ArrowUp")p.preventDefault(),b=(x-1+k.value.length)%k.value.length;else if(p.key==="Enter"&&d.value){p.preventDefault();const I=k.value.find((O,q)=>"option-"+q===d.value);I&&h(I);return}else if(p.key==="Escape"){p.preventDefault(),v(),f.value&&f.value.focus();return}else if(s.value)return;if(b!==-1){d.value="option-"+b;const I=document.getElementById(d.value);I&&requestAnimationFrame(()=>{I.scrollIntoView({block:"nearest",behavior:"smooth"})})}};return e.watch(u,p=>{p?(window.addEventListener("keydown",N),!s.value&&!c.value&&i.value&&(c.value=i.value.text)):window.removeEventListener("keydown",N)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",M),window.removeEventListener("keydown",N)}),n({isDropdownOpen:u,selectedItem:i,openDropdown:$,closeDropdown:v,toggleDropdown:C,selectItem:h,filterText:c,hasDefaultSlotContent:s}),(p,x)=>(e.openBlock(),e.createElementBlock("div",{class:"relative w-full max-w-xs form-control",ref_key:"componentRoot",ref:y},[t.label?(e.openBlock(),e.createElementBlock("label",Vo,[e.createElementVNode("span",No,e.toDisplayString(t.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["flex items-center input-bordered rounded-md w-fit cursor-pointer",{input:!s.value,select:!s.value}]),style:e.normalizeStyle(i.value?"background-image: unset; padding-right: 0.5rem;":""),tabindex:"0",onClick:x[1]||(x[1]=b=>s.value?C():$()),onKeydown:[e.withKeys(e.withModifiers(B,["prevent"]),["enter"]),e.withKeys(e.withModifiers(B,["prevent"]),["space"])],onBlur:U,role:"combobox","aria-haspopup":"listbox","aria-expanded":u.value,"aria-activedescendant":d.value,"aria-autocomplete":"list",ref_key:"activatorWrapper",ref:f},[e.renderSlot(p.$slots,"default",{},()=>[s.value?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,type:"text",placeholder:t.placeholder,class:"bg-transparent border-none focus:outline-none w-full","onUpdate:modelValue":x[0]||(x[0]=b=>c.value=b),ref_key:"filterInput",ref:m,onFocus:$,onInput:w,tabindex:"-1",disabled:o.disabled},null,40,zo)),[[e.vModelText,c.value]])]),i.value&&!t.disabled?(e.openBlock(),e.createBlock(e.unref(ln),{key:0,size:20,class:"mx-2 text-base-content/50 hover:text-base-content/80 cursor-pointer",onClick:e.withModifiers(Y,["stop"])})):e.createCommentVNode("",!0),s.value&&!i.value?(e.openBlock(),e.createBlock(e.unref(on),{key:1,class:e.normalizeClass([{"rotate-180":u.value},"mx-2"]),size:20},null,8,["class"])):e.createCommentVNode("",!0)],46,Do),e.withDirectives(e.createElementVNode("div",To,[e.createElementVNode("ul",Mo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,(b,I)=>(e.openBlock(),e.createElementBlock("li",{key:b.value,onMousedown:e.withModifiers(O=>h(b),["prevent"]),class:"hover:bg-base-200 rounded-md w-full cursor-pointer",id:"option-"+I,role:"option","aria-selected":i.value&&i.value.value===b.value},[e.createElementVNode("a",null,e.toDisplayString(b.text),1)],40,Io))),128))])],512),[[e.vShow,u.value&&k.value.length>0]])],512))}},Po={class:"w-full max-w-xs form-control"},Lo={key:0,class:"label"},jo={class:"label-text"},Ao=["type","placeholder","disabled","value"],Fo={key:1,class:"label"},_o={class:"label-text-alt text-error validator-hint"},Uo={key:2,class:"label"},Ro={class:"label-text-alt text-success validator-hint"},st=e.defineComponent({__name:"inputField",props:{modelValue:{default:""},label:{default:""},placeholder:{default:""},type:{default:"text"},rules:{default:()=>({})},needsValidation:{type:Boolean,default:!1},successMessage:{default:""},size:{default:"md"},color:{default:""},style:{default:""},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","validate"],setup(t,{expose:n,emit:l}){const o=t,r=l,a=e.ref(null),s=e.ref(!1),c=e.ref(""),i=e.computed(()=>{var C,k,M,U;let d=!0,$="";const v=o.modelValue;return(C=o.rules)!=null&&C.required&&(v==null||v==="")&&(d=!1,$="This field is required."),d&&((k=o.rules)==null?void 0:k.minLength)!==void 0&&typeof v=="string"&&v.length<o.rules.minLength&&(d=!1,$=`Must be at least ${o.rules.minLength} characters.`),d&&((M=o.rules)==null?void 0:M.maxLength)!==void 0&&typeof v=="string"&&v.length>o.rules.maxLength&&(d=!1,$=`Cannot exceed ${o.rules.maxLength} characters.`),d&&((U=o.rules)!=null&&U.email)&&typeof v=="string"&&v&&(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(v)||(d=!1,$="Please enter a valid email address.")),c.value=$,r("validate",d),d}),u=e.computed(()=>s.value&&!i.value),m=d=>{const $=d.target;r("update:modelValue",$.value),s.value&&i.value},y=()=>{s.value=!0,i.value};return e.watch(()=>o.modelValue,()=>{s.value&&i.value}),n({focusInput:()=>{var d;console.log("inputField.vue: focusInput method called."),(d=a.value)==null||d.focus()},isValid:i,isTouched:s,errorMessage:c}),(d,$)=>(e.openBlock(),e.createElementBlock("div",Po,[t.label?(e.openBlock(),e.createElementBlock("label",Lo,[e.createElementVNode("span",jo,e.toDisplayString(t.label),1)])):e.createCommentVNode("",!0),e.renderSlot(d.$slots,"default"),e.createElementVNode("input",{ref_key:"inputElement",ref:a,type:t.type,placeholder:t.placeholder,disabled:o.disabled,class:e.normalizeClass(["input-bordered rounded-md w-full input validator",[{"input-xs":t.size==="xs","input-sm":t.size==="sm","input-md":t.size==="md","input-lg":t.size==="lg","input-xl":t.size==="xl","input-ghost":t.style==="ghost","input-neutral":t.color==="neutral"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-primary":t.color==="primary"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-secondary":t.color==="secondary"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-accent":t.color==="accent"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-info":t.color==="info"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-success":t.color==="success"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-warning":t.color==="warning"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-error":u.value,"input-success-validation":i.value&&s.value&&!u.value&&t.needsValidation}]]),value:t.modelValue,onInput:m,onBlur:y},null,42,Ao),u.value?(e.openBlock(),e.createElementBlock("div",Fo,[e.createElementVNode("span",_o,e.toDisplayString(c.value),1)])):i.value&&s.value&&t.successMessage?(e.openBlock(),e.createElementBlock("div",Uo,[e.createElementVNode("span",Ro,e.toDisplayString(t.successMessage),1)])):e.createCommentVNode("",!0)]))}}),qo=Object.freeze(Object.defineProperty({__proto__:null,default:st},Symbol.toStringTag,{value:"Module"})),Ho=e.defineComponent({__name:"loader",props:{loading:{type:Boolean,default:!0},size:{default:"md"},type:{default:"spinner"},color:{default:"primary"}},setup(t){const n=t,l=e.ref(n.loading);return e.watch(()=>n.loading,o=>{l.value=o}),(o,r)=>l.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["loading",[{"loading-xs":t.size==="xs"},{"loading-sm":t.size==="sm"},{"loading-md":t.size==="md"},{"loading-lg":t.size==="lg"},{"loading-xl":t.size==="xl"},{"loading-spinner":t.type==="spinner"},{"loading-dots":t.type==="dots"},{"loading-ring":t.type==="ring"},{"loading-balls":t.type==="balls"},{"loading-bars":t.type==="bars"},{"loading-infinity":t.type==="infinity"},{"text-primary":t.color==="primary"},{"text-secondary":t.color==="secondary"},{"text-accent":t.color==="accent"},{"text-neutral":t.color==="neutral"},{"text-info":t.color==="info"},{"text-success":t.color==="success"},{"text-warning":t.color==="warning"},{"text-error":t.color==="error"}]])},null,2)):e.createCommentVNode("",!0)}}),Wo={class:"container flex flex-col sm:flex-row"},Ko={class:"footer-title"},Yo=["href"],Xo={key:0,class:"sm:hidden w-full"},Jo={class:"border-b-2 border-base-100 last:border-b-0 w-full"},Go={tabindex:"0",class:"collapse collapse-plus w-full"},Zo={class:"collapse-title font-bold text-lg collapsible-footer-title"},Qo={class:"collapse-content flex w-full text-sm"},el={class:"flex flex-col gap-2.5"},tl={class:"w-full"},nl=["href"],ol={class:"w-full"},ll=e.defineComponent({__name:"footer",props:{items:{},background:{},color:{},collapseOnMobile:{type:Boolean,default:!1},rows:{default:1}},setup(t){const n=t;return(l,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["mx-auto md:px-10 py-10 text-base-content",[t.background??"bg-base-200",t.color??"text-base-content"]])},[e.createElementVNode("footer",Wo,[e.createElementVNode("div",{class:e.normalizeClass(["footer sm:footer-horizontal",[{"sm:grid-rows-1":n.rows===1},{"sm:grid-rows-2":n.rows===2},{"sm:grid-rows-3":n.rows===3}]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,r=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass([{"hidden sm:grid":t.collapseOnMobile}])},[e.createElementVNode("h6",Ko,e.toDisplayString(r.title),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.items,a=>(e.openBlock(),e.createElementBlock("a",{class:"link link-hover",href:a.link},e.toDisplayString(a.text),9,Yo))),256))],2))),256)),t.collapseOnMobile?(e.openBlock(),e.createElementBlock("nav",Xo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,r=>(e.openBlock(),e.createElementBlock("ul",Jo,[e.createElementVNode("div",Go,[e.createElementVNode("div",Zo,e.toDisplayString(r.title),1),e.createElementVNode("div",Qo,[e.createElementVNode("ul",el,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.items,a=>(e.openBlock(),e.createElementBlock("li",tl,[e.createElementVNode("a",{class:"w-full font-medium link link-hover",href:a.link},e.toDisplayString(a.text),9,nl)]))),256))])])])]))),256))])):e.createCommentVNode("",!0)],2),e.createElementVNode("aside",ol,[e.renderSlot(l.$slots,"default")])])],2))}}),al={},rl={class:"min-h-40 container hero"},sl={class:"px-0! text-center hero-content"},il={class:"mt-9 text-4xl"};function cl(t,n){return e.openBlock(),e.createElementBlock("div",rl,[e.createElementVNode("div",sl,[e.createElementVNode("div",null,[e.createElementVNode("h1",il,[e.renderSlot(t.$slots,"title",{},()=>[n[0]||(n[0]=e.createTextVNode("hero title",-1))])]),e.createElementVNode("p",null,[e.renderSlot(t.$slots,"description",{class:"py-9"})]),e.renderSlot(t.$slots,"call-to-action-block",{class:"max-w-full"},()=>[n[1]||(n[1]=e.createElementVNode("button",{class:"btn btn-primary"},"Call to action",-1))])])])])}const dl=ie(al,[["render",cl]]),ul={class:"flex flex-row place-content-center gap-4 categories"},ml=["onClick"],fl=e.defineComponent({__name:"categoryNavigation",props:{searchOptions:{},currentCategory:{}},emits:["update:currentCategory"],setup(t,{emit:n}){const l=t,o=n;function r(a){o("update:currentCategory",a)}return(a,s)=>(e.openBlock(),e.createElementBlock("div",ul,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.searchOptions,c=>(e.openBlock(),e.createElementBlock("div",{key:c.category},[e.createElementVNode("button",{onClick:i=>r(c.category),class:e.normalizeClass(["truncate btn btn-ghost",{"font-semibold":l.currentCategory===c.category}])},e.toDisplayString(c.category),11,ml)]))),128))]))}}),pl={class:"md:flex hidden navbar-start"},hl={class:"md:flex justify-center items-center hidden navbar-center"},gl={class:"md:flex hidden navbar-end"},yl={class:"navbar-bottom md:flex hidden"},bl=ie(e.defineComponent({__name:"navigationBar",props:{isCollapsed:{type:Boolean,default:!0}},setup(t){const n=t;return(l,o)=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass(["place-items-start border-primary bg-base-100 px-5 py-5 border-b-4 transition-all navbar navigationbar",n.isCollapsed?"collapsed":""])},[e.createElementVNode("div",pl,[e.renderSlot(l.$slots,"start",{},void 0,!0)]),e.createElementVNode("div",hl,[e.renderSlot(l.$slots,"center",{},void 0,!0)]),e.createElementVNode("div",gl,[e.renderSlot(l.$slots,"end",{},void 0,!0)]),e.createElementVNode("div",yl,[e.renderSlot(l.$slots,"bottom",{},void 0,!0)])],2))}}),[["__scopeId","data-v-8ddb2b45"]]),kl={key:0,class:"hidden top-4 right-0 absolute md:flex gap-4"},wl=["onClick","aria-selected"],vl={key:0,role:"tabpanel",class:"p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full overflow-x-auto tab-content"},xl={class:"p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full"},El=e.defineComponent({__name:"tab",props:{items:{},withControlls:{type:Boolean,default:!1},rotateTabsAfter:{default:0},buttonOnlyMode:{type:Boolean,default:!1}},emits:["tab-changed"],setup(t,{emit:n}){const l=t,o=e.ref(l.items[0]),r=n;function a(i){o.value=i,r("tab-changed",i)}function s(){const u=(l.items.indexOf(o.value)+1)%l.items.length;a(l.items[u])}function c(){const u=(l.items.indexOf(o.value)-1+l.items.length)%l.items.length;a(l.items[u])}return e.onMounted(()=>{l.items&&a(l.items[0])}),e.onUnmounted(()=>{l.rotateTabsAfter&&l.rotateTabsAfter>0&&setInterval(()=>{s()},l.rotateTabsAfter*1e3)}),(i,u)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{role:"tablist",class:e.normalizeClass(["relative tabs-bordered w-full tabs tabs-lg",{"flex-nowrap overflow-x-auto":t.buttonOnlyMode}])},[t.withControlls?(e.openBlock(),e.createElementBlock("div",kl,[e.createElementVNode("button",{onClick:u[0]||(u[0]=m=>c()),class:"cursor-pointer"},"Previous"),e.createElementVNode("button",{onClick:u[1]||(u[1]=m=>s()),class:"text-primary cursor-pointer"},"Next")])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,m=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("a",{type:"button",role:"tab",class:e.normalizeClass(["min-w-max tab",m===o.value?"bg-primary text-base-100":""]),onClick:y=>a(m),"aria-selected":o.value==m},e.toDisplayString(m),11,wl),t.buttonOnlyMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",vl,[e.renderSlot(i.$slots,`${m}-tab`)]))],64))),256))],2),e.createElementVNode("div",xl,[e.renderSlot(i.$slots,"default")])],64))}});typeof document>"u"&&(globalThis.document={}),typeof window>"u"&&(globalThis.window=globalThis);class Bl{constructor(n){tt(this,se);tt(this,me,new Set);nt(this,se,n)}get current(){return pe(this,se)}set current(n){pe(this,se)!=n&&(nt(this,se,n),pe(this,me).forEach(l=>l(n)))}on(n){return pe(this,me).add(n),()=>pe(this,me).delete(n)}}se=new WeakMap,me=new WeakMap;const it=t=>new Bl(t),Me=Symbol.for("atomico.hooks");globalThis[Me]=globalThis[Me]||{};let ce=globalThis[Me];const $l=Symbol.for("Atomico.suspense"),ct=Symbol.for("Atomico.effect"),Cl=Symbol.for("Atomico.layoutEffect"),dt=Symbol.for("Atomico.insertionEffect"),de=(t,n,l)=>{const{i:o,hooks:r}=ce.c,a=r[o]=r[o]||{};return a.value=t(a.value),a.effect=n,a.tag=l,ce.c.i++,r[o].value},Sl=t=>de((n=it(t))=>n),ge=()=>de((t=it(ce.c.host))=>t),ut=()=>ce.c.update,Vl=(t,n,l=0)=>{let o={},r=!1;const a=()=>r,s=(c,i)=>{for(const u in o){const m=o[u];m.effect&&m.tag===c&&(m.value=m.effect(m.value,i))}};return{load:c=>{ce.c={host:n,hooks:o,update:t,i:0,id:l};let i;try{r=!1,i=c()}catch(u){if(u!==$l)throw u;r=!0}finally{ce.c=null}return i},cleanEffects:c=>(s(dt,c),()=>(s(Cl,c),()=>{s(ct,c)})),isSuspense:a}},ue=Symbol.for;function mt(t,n){const l=t.length;if(l!==n.length)return!1;for(let o=0;o<l;o++){let r=t[o],a=n[o];if(r!==a)return!1}return!0}const Q=t=>typeof t=="function",ye=t=>typeof t=="object",{isArray:Nl}=Array,Ie=(t,n)=>(n?t instanceof HTMLStyleElement:!0)&&"hydrate"in((t==null?void 0:t.dataset)||{});function ft(t,n){let l;const o=r=>{let{length:a}=r;for(let s=0;s<a;s++){const c=r[s];if(c&&Array.isArray(c))o(c);else{const i=typeof c;if(c==null||i==="function"||i==="boolean")continue;i==="string"||i==="number"?(l==null&&(l=""),l+=c):(l!=null&&(n(l),l=null),n(c))}}};o(t),l!=null&&n(l)}const pt=(t,n,l)=>(t.addEventListener(n,l),()=>t.removeEventListener(n,l));class ht{constructor(n,l,o){this.message=l,this.target=n,this.value=o}}class gt extends ht{}class Dl extends ht{}const Ce="Custom",zl=null,Tl={true:1,"":1,1:1};function Ml(t,n,l,o,r){const{type:a,reflect:s,event:c,value:i,attr:u=Il(n)}=(l==null?void 0:l.name)!=Ce&&ye(l)&&l!=zl?l:{type:l},m=(a==null?void 0:a.name)===Ce&&a.map,y=i!=null?a==Function||!Q(i)?()=>i:i:null;Object.defineProperty(t,n,{configurable:!0,set(f){const d=this[n];y&&a!=Boolean&&f==null&&(f=y());const{error:$,value:v}=(m?Ll:jl)(a,f);if($&&v!=null)throw new gt(this,`The value defined for prop '${n}' must be of type '${a.name}'`,v);d!=v&&(this._props[n]=v??void 0,this.update(),c&&yt(this,c),this.updated.then(()=>{s&&(this._ignoreAttr=u,Ol(this,a,u,this[n]),this._ignoreAttr=null)}))},get(){return this._props[n]}}),y&&(r[n]=y()),o[u]={prop:n,type:a}}const yt=(t,{type:n,base:l=CustomEvent,...o})=>t.dispatchEvent(new l(n,o)),Il=t=>t.replace(/([A-Z])/g,"-$1").toLowerCase(),Ol=(t,n,l,o)=>o==null||n==Boolean&&!o?t.removeAttribute(l):t.setAttribute(l,(n==null?void 0:n.name)===Ce&&(n!=null&&n.serialize)?n==null?void 0:n.serialize(o):ye(o)?JSON.stringify(o):n==Boolean?"":o),Pl=(t,n)=>t==Boolean?!!Tl[n]:t==Number?Number(n):t==String?n:t==Array||t==Object?JSON.parse(n):t.name==Ce?n:new t(n),Ll=({map:t},n)=>{try{return{value:t(n),error:!1}}catch{return{value:n,error:!0}}},jl=(t,n)=>t==null||n==null?{value:n,error:!1}:t!=String&&n===""?{value:void 0,error:!1}:t==Object||t==Array||t==Symbol?{value:n,error:{}.toString.call(n)!==`[object ${t.name}]`}:n instanceof t?{value:n,error:t==Number&&Number.isNaN(n.valueOf())}:t==String||t==Number||t==Boolean?{value:n,error:t==Number?typeof n!="number"?!0:Number.isNaN(n):t==String?typeof n!="string":typeof n!="boolean"}:{value:n,error:!0};let Al=0;const Fl=t=>{var l;return((l=(t==null?void 0:t.dataset)||{})==null?void 0:l.hydrate)||""||"c"+Al++},be=(t,n=HTMLElement)=>{const l={},o={},r="prototype"in n&&n.prototype instanceof Element,a=r?n:"base"in n?n.base:HTMLElement,{props:s,styles:c}=r?t:n;class i extends a{constructor(){super(),this._setup(),this._render=()=>t({...this._props});for(const m in o)this[m]=o[m]}static get styles(){return[super.styles,c]}async _setup(){if(this._props)return;this._props={};let m,y;this.mounted=new Promise(C=>this.mount=()=>{C(),m!=this.parentNode&&(y!=m?this.unmounted.then(this.update):this.update()),m=this.parentNode}),this.unmounted=new Promise(C=>this.unmount=()=>{C(),(m!=this.parentNode||!this.isConnected)&&(f.cleanEffects(!0)()(),y=this.parentNode,m=null)}),this.symbolId=this.symbolId||Symbol(),this.symbolIdParent=Symbol();const f=Vl(()=>this.update(),this,Fl(this));let d,$=!0;const v=Ie(this);this.update=()=>(d||(d=!0,this.updated=(this.updated||this.mounted).then(()=>{try{const C=f.load(this._render),k=f.cleanEffects();return C&&C.render(this,this.symbolId,v),d=!1,$&&!f.isSuspense()&&($=!1,!v&&_l(this)),k()}finally{d=!1}}).then(C=>{C&&C()})),this.updated),this.update()}connectedCallback(){this.mount(),super.connectedCallback&&super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback(),this.unmount()}attributeChangedCallback(m,y,f){if(l[m]){if(m===this._ignoreAttr||y===f)return;const{prop:d,type:$}=l[m];try{this[d]=Pl($,f)}catch{throw new Dl(this,`The value defined as attr '${m}' cannot be parsed by type '${$.name}'`,f)}}else super.attributeChangedCallback(m,y,f)}static get props(){return{...super.props,...s}}static get observedAttributes(){const m=super.observedAttributes||[];for(const y in s)Ml(this.prototype,y,s[y],l,o);return Object.keys(l).concat(m)}}return i};function _l(t){const{styles:n}=t.constructor,{shadowRoot:l}=t;if(l&&n.length){const o=[];ft(n,r=>{r&&(r instanceof Element?l.appendChild(r.cloneNode(!0)):o.push(r))}),o.length&&(l.adoptedStyleSheets=o)}}const bt=t=>(n,l)=>{de(([o,r]=[])=>((r||!r)&&(r&&mt(r,l)?o=o||!0:(Q(o)&&o(),o=null)),[o,l]),([o,r],a)=>a?(Q(o)&&o(),[]):[o||n(),r],t)},ke=bt(ct),Ul=bt(dt);class kt extends Array{constructor(n,l){let o=!0;const r=a=>{try{l(a,this,o)}finally{o=!1}};super(void 0,r,l),r(n)}}const Oe=t=>{const n=ut();return de((l=new kt(t,(o,r,a)=>{o=Q(o)?o(r[0]):o,o!==r[0]&&(r[0]=o,a||n())}))=>l)},ne=(t,n)=>{const[l]=de(([o,r,a=0]=[])=>((!r||r&&!mt(r,n))&&(o=t()),[o,n,a]));return l},Pe=t=>{const{current:n}=ge();if(!(t in n))throw new gt(n,`For useProp("${t}"), the prop does not exist on the host.`,t);return de((l=new kt(n[t],(o,r)=>{o=Q(o)?o(n[t]):o,n[t]=o}))=>(l[0]=n[t],l))},le=(t,n={})=>{const l=ge();return l[t]||(l[t]=(o=n.detail)=>yt(l.current,{type:t,...n,detail:o})),l[t]},Le=ue("atomico/options");globalThis[Le]=globalThis[Le]||{sheet:!!document.adoptedStyleSheets};const wt=globalThis[Le],Rl={checked:1,value:1,selected:1},ql={list:1,type:1,size:1,form:1,width:1,height:1,src:1,href:1,slot:1},Hl={shadowDom:1,staticNode:1,cloneNode:1,children:1,key:1},Se={},je=[];class Ae extends Text{}const Wl=ue("atomico/id"),we=ue("atomico/type"),Fe=ue("atomico/ref"),vt=ue("atomico/vnode"),Kl=()=>{};function Yl(t,n,l){return Et(this,t,n,l)}const xt=(t,n,...l)=>{const o=n||Se;let{children:r}=o;if(r=r??(l.length?l:je),t===Kl)return r;const a=t?t instanceof Node?1:t.prototype instanceof HTMLElement&&2:0;if(a===!1&&t instanceof Function)return t(r!=je?{children:r,...o}:o);const s=wt.render||Yl;return{[we]:vt,type:t,props:o,children:r,key:o.key,shadow:o.shadowDom,static:o.staticNode,raw:a,is:o.is,clone:o.cloneNode,render:s}};function Et(t,n,l=Wl,o,r){let a;if(n&&n[l]&&n[l].vnode==t||t[we]!=vt)return n;(t||!n)&&(r=r||t.type=="svg",a=t.type!="host"&&(t.raw==1?(n&&t.clone?n[Fe]:n)!=t.type:t.raw==2?!(n instanceof t.type):n?n[Fe]||n.localName!=t.type:!n),a&&t.type!=null&&(t.raw==1&&t.clone?(o=!0,n=t.type.cloneNode(!0),n[Fe]=t.type):n=t.raw==1?t.type:t.raw==2?new t.type:r?document.createElementNS("http://www.w3.org/2000/svg",t.type):document.createElement(t.type,t.is?{is:t.is}:void 0)));const s=n[l]?n[l]:Se,{vnode:c=Se,cycle:i=0}=s;let{fragment:u,handlers:m}=s;const{children:y=je,props:f=Se}=c;if(m=a?{}:m||{},t.static&&!a)return n;if(t.shadow&&!n.shadowRoot&&n.attachShadow({mode:"open",...t.shadow}),t.props!=f&&Gl(n,f,t.props,m,r),t.children!==y){const d=t.shadow?n.shadowRoot:n;u=Jl(t.children,u,d,l,!i&&o,r&&t.type=="foreignObject"?!1:r)}return n[l]={vnode:t,handlers:m,fragment:u,cycle:i+1},n}function Xl(t,n){const l=new Ae(""),o=new Ae("");let r;if(t[n?"prepend":"append"](l),n){let{lastElementChild:a}=t;for(;a;){const{previousElementSibling:s}=a;if(Ie(a,!0)&&!Ie(s,!0)){r=a;break}a=s}}return r?r.before(o):t.append(o),{markStart:l,markEnd:o}}function Jl(t,n,l,o,r,a){t=t==null?null:Nl(t)?t:[t];const s=n||Xl(l,r),{markStart:c,markEnd:i,keyes:u}=s;let m;const y=u&&new Set;let f=c;if(t&&ft(t,d=>{if(typeof d=="object"&&!d[we])return;const $=d[we]&&d.key,v=u&&$!=null&&u.get($);f!=i&&f===v?y.delete(f):f=f==i?i:f.nextSibling;const C=u?v:f;let k=C;if(d[we])k=Et(d,C,o,r,a);else{const M=d+"";!(k instanceof Text)||k instanceof Ae?k=new Text(M):k.data!=M&&(k.data=M)}k!=f&&(u&&y.delete(k),!C||u?(l.insertBefore(k,f),u&&f!=i&&y.add(f)):C==i?l.insertBefore(k,i):(l.replaceChild(k,C),f=k)),$!=null&&(m=m||new Map,m.set($,k))}),f=f==i?i:f.nextSibling,n&&f!=i)for(;f!=i;){const d=f;f=f.nextSibling,d.remove()}return y&&y.forEach(d=>d.remove()),s.keyes=m,s}function Gl(t,n,l,o,r){for(const a in n)!(a in l)&&Bt(t,a,n[a],null,r,o);for(const a in l)Bt(t,a,n[a],l[a],r,o)}function Bt(t,n,l,o,r,a){if(n=n=="class"&&!r?"className":n,l=l??null,o=o??null,n in t&&Rl[n]&&(l=t[n]),!(o===l||Hl[n]||n[0]=="_"))if(n[0]=="o"&&n[1]=="n"&&(Q(o)||Q(l)))Zl(t,n.slice(2),o,a);else if(n=="ref")o&&(Q(o)?o(t):o.current=t);else if(n=="style"){const{style:s}=t;l=l||"",o=o||"";const c=ye(l),i=ye(o);if(c)for(const u in l)if(i)!(u in o)&&$t(s,u,null);else break;if(i)for(const u in o){const m=o[u];c&&l[u]===m||$t(s,u,m)}else s.cssText=o}else{const s=n[0]=="$"?n.slice(1):n;s===n&&(!r&&!ql[n]&&n in t||Q(o)||Q(l))?t[n]=o??"":o==null?t.removeAttribute(s):t.setAttribute(s,ye(o)?JSON.stringify(o):o)}}function Zl(t,n,l,o){if(o.handleEvent||(o.handleEvent=r=>o[r.type].call(t,r)),l){if(!o[n]){const r=l.capture||l.once||l.passive?Object.assign({},l):null;t.addEventListener(n,o,r)}o[n]=l}else o[n]&&(t.removeEventListener(n,o),delete o[n])}function $t(t,n,l){let o="setProperty";l==null&&(o="removeProperty",l=null),~n.indexOf("-")?t[o](n,l):t[n]=l}const Ct={};function Ve(t,...n){const l=(t.raw||t).reduce((o,r,a)=>o+r+(n[a]||""),"");return Ct[l]=Ct[l]||Ql(l)}function Ql(t){if(wt.sheet){const n=new CSSStyleSheet;return n.replaceSync(t),n}else{const n=document.createElement("style");return n.textContent=t,n}}const ea=xt("host",{style:"display: contents"}),_e=ue("atomico/context"),ta=(t,n)=>{const l=ge();Ul(()=>pt(l.current,"ConnectContext",o=>{t===o.detail.id&&(o.stopPropagation(),o.detail.connect(n))}),[t])},na=t=>{const n=le("ConnectContext",{bubbles:!0,composed:!0}),l=()=>{let a;return n({id:t,connect(s){a=s}}),a},[o,r]=Oe(l);return ke(()=>{o||(t[_e]||(t[_e]=customElements.whenDefined(new t().localName)),t[_e].then(()=>r(l)))},[t]),o},oa=t=>{const n=na(t),l=ut();return ke(()=>{if(n)return pt(n,"UpdatedValue",l)},[n]),(n||t).value},la=t=>{const n=be(()=>(ta(n,ge().current),ea),{props:{value:{type:Object,event:{type:"UpdatedValue"},value:()=>t}}});return n.value=t,n},L=(t,n,l)=>(n==null?n={key:l}:n.key=l,xt(t,n)),ve=L,St=Ve`*,*:before,*:after{box-sizing:border-box}button{padding:0;touch-action:manipulation;cursor:pointer;user-select:none}`,Vt=Ve`.vh{position:absolute;transform:scale(0)}`;function Ue(){const t=new Date;return new _(t.getFullYear(),t.getMonth()+1,t.getDate())}function Re(t,n=0){const l=G(t),o=l.getUTCDay(),r=(o<n?7:0)+o-n;return l.setUTCDate(l.getUTCDate()-r),_.from(l)}function Nt(t,n=0){return Re(t,n).add({days:6})}function Dt(t){return _.from(new Date(Date.UTC(t.year,t.month,0)))}function Ne(t,n,l){return n&&_.compare(t,n)<0?n:l&&_.compare(t,l)>0?l:t}const aa={days:1};function ra(t,n=0){let l=Re(t.toPlainDate(),n);const o=Nt(Dt(t),n),r=[];for(;_.compare(l,o)<0;){const a=[];for(let s=0;s<7;s++)a.push(l),l=l.add(aa);r.push(a)}return r}function G(t){return new Date(Date.UTC(t.year,t.month-1,t.day??1))}const sa=/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[0-1])$/,qe=(t,n)=>t.toString().padStart(n,"0");class _{constructor(n,l,o){this.year=n,this.month=l,this.day=o}add(n){const l=G(this);if("days"in n)return l.setUTCDate(this.day+n.days),_.from(l);let{year:o,month:r}=this;"months"in n?(r=this.month+n.months,l.setUTCMonth(r-1)):(o=this.year+n.years,l.setUTCFullYear(o));const a=_.from(G({year:o,month:r,day:1}));return Ne(_.from(l),a,Dt(a))}toString(){return`${qe(this.year,4)}-${qe(this.month,2)}-${qe(this.day,2)}`}toPlainYearMonth(){return new De(this.year,this.month)}equals(n){return _.compare(this,n)===0}static compare(n,l){return n.year<l.year?-1:n.year>l.year?1:n.month<l.month?-1:n.month>l.month?1:n.day<l.day?-1:n.day>l.day?1:0}static from(n){if(typeof n=="string"){const l=n.match(sa);if(!l)throw new TypeError(n);const[,o,r,a]=l;return new _(parseInt(o,10),parseInt(r,10),parseInt(a,10))}return new _(n.getUTCFullYear(),n.getUTCMonth()+1,n.getUTCDate())}}class De{constructor(n,l){this.year=n,this.month=l}add(n){const l=G(this),o=(n.months??0)+(n.years??0)*12;return l.setUTCMonth(l.getUTCMonth()+o),new De(l.getUTCFullYear(),l.getUTCMonth()+1)}equals(n){return this.year===n.year&&this.month===n.month}toPlainDate(){return new _(this.year,this.month,1)}}function ze(t,n){if(n)try{return t.from(n)}catch{}}function ae(t){const[n,l]=Pe(t);return[ne(()=>ze(_,n),[n]),o=>l(o==null?void 0:o.toString())]}function ia(t){const[n="",l]=Pe(t);return[ne(()=>{const[o,r]=n.split("/"),a=ze(_,o),s=ze(_,r);return a&&s?[a,s]:[]},[n]),o=>l(`${o[0]}/${o[1]}`)]}function ca(t){const[n="",l]=Pe(t);return[ne(()=>{const o=[];for(const r of n.trim().split(/\s+/)){const a=ze(_,r);a&&o.push(a)}return o},[n]),o=>l(o.join(" "))]}function xe(t,n){return ne(()=>new Intl.DateTimeFormat(n,{timeZone:"UTC",...t}),[n,t])}function zt(t,n,l){const o=xe(t,l);return ne(()=>{const r=[],a=new Date;for(var s=0;s<7;s++){const c=(a.getUTCDay()-n+7)%7;r[c]=o.format(a),a.setUTCDate(a.getUTCDate()+1)}return r},[n,o])}const Tt=(t,n,l)=>Ne(t,n,l)===t,Mt=t=>t.target.matches(":dir(ltr)"),da={month:"long",day:"numeric"},ua={month:"long"},ma={weekday:"long"},He={bubbles:!0};function fa({props:t,context:n}){const{offset:l}=t,{firstDayOfWeek:o,isDateDisallowed:r,min:a,max:s,today:c,page:i,locale:u,focusedDate:m,formatWeekday:y}=n,f=c??Ue(),d=zt(ma,o,u),$=ne(()=>({weekday:y}),[y]),v=zt($,o,u),C=xe(da,u),k=xe(ua,u),M=ne(()=>i.start.add({months:l}),[i,l]),U=ne(()=>ra(M,o),[M,o]),Y=le("focusday",He),h=le("selectday",He),B=le("hoverday",He);function w(x){Y(Ne(x,a,s))}function N(x){let b;switch(x.key){case"ArrowRight":b=m.add({days:Mt(x)?1:-1});break;case"ArrowLeft":b=m.add({days:Mt(x)?-1:1});break;case"ArrowDown":b=m.add({days:7});break;case"ArrowUp":b=m.add({days:-7});break;case"PageUp":b=m.add(x.shiftKey?{years:-1}:{months:-1});break;case"PageDown":b=m.add(x.shiftKey?{years:1}:{months:1});break;case"Home":b=Re(m,o);break;case"End":b=Nt(m,o);break;default:return}w(b),x.preventDefault()}function p(x){var T,j;const b=M.equals(x);if(!n.showOutsideDays&&!b)return;const I=x.equals(m),O=x.equals(f),q=G(x),J=r==null?void 0:r(q),g=!Tt(x,a,s);let E="",V;if(n.type==="range"){const[A,H]=n.value,ee=A==null?void 0:A.equals(x),re=H==null?void 0:H.equals(x);V=A&&H&&Tt(x,A,H),E=`${ee?"range-start":""} ${re?"range-end":""} ${V&&!ee&&!re?"range-inner":""}`}else n.type==="multi"?V=n.value.some(A=>A.equals(x)):V=(T=n.value)==null?void 0:T.equals(x);return{part:`${`button day day-${q.getDay()} ${b?V?"selected":"":"outside"} ${J?"disallowed":""} ${O?"today":""} ${((j=n.getDayParts)==null?void 0:j.call(n,q))??""}`} ${E}`,tabindex:b&&I?0:-1,disabled:g,"aria-disabled":J?"true":void 0,"aria-pressed":b&&V,"aria-current":O?"date":void 0,"aria-label":C.format(q),onkeydown:N,onclick(){J||h(x),w(x)},onmouseover(){!J&&!g&&B(x)}}}return{weeks:U,yearMonth:M,daysLong:d,daysVisible:v,formatter:k,getDayProps:p}}const We=Ue(),Ke=la({type:"date",firstDayOfWeek:1,focusedDate:We,page:{start:We.toPlainYearMonth(),end:We.toPlainYearMonth()}});customElements.define("calendar-ctx",Ke);const pa=(t,n)=>(n+t)%7,It=be(t=>{const n=oa(Ke),l=Sl(),o=fa({props:t,context:n});function r(){var a;(a=l.current.querySelector("button[tabindex='0']"))==null||a.focus()}return ve("host",{shadowDom:!0,focus:r,children:[L("div",{id:"h",part:"heading",children:o.formatter.format(G(o.yearMonth))}),ve("table",{ref:l,"aria-labelledby":"h",part:"table",children:[L("thead",{children:L("tr",{part:"tr head",children:o.daysLong.map((a,s)=>ve("th",{part:`th day day-${pa(n.firstDayOfWeek,s)}`,scope:"col",children:[L("span",{class:"vh",children:a}),L("span",{"aria-hidden":"true",children:o.daysVisible[s]})]}))})}),L("tbody",{children:o.weeks.map((a,s)=>L("tr",{part:"tr week",children:a.map((c,i)=>{const u=o.getDayProps(c);return L("td",{part:"td",children:u&&L("button",{...u,children:c.day})},i)})},s))})]})]})},{props:{offset:{type:Number,value:0}},styles:[St,Vt,Ve`:host{--color-accent: black;--color-text-on-accent: white;display:flex;flex-direction:column;gap:.25rem;text-align:center;inline-size:fit-content}table{border-collapse:collapse;font-size:.875rem}th{font-weight:700;block-size:2.25rem}td{padding-inline:0}button{color:inherit;font-size:inherit;background:transparent;border:0;font-variant-numeric:tabular-nums;block-size:2.25rem;inline-size:2.25rem}button:hover:where(:not(:disabled,[aria-disabled])){background:#0000000d}button:is([aria-pressed=true],:focus-visible){background:var(--color-accent);color:var(--color-text-on-accent)}button:focus-visible{outline:1px solid var(--color-text-on-accent);outline-offset:-2px}button:disabled,:host::part(outside),:host::part(disallowed){cursor:default;opacity:.5}`]});customElements.define("calendar-month",It);function Ot(t){return L("button",{part:`button ${t.name} ${t.onclick?"":"disabled"}`,onclick:t.onclick,"aria-disabled":t.onclick?null:"true",children:L("slot",{name:t.name,children:t.children})})}function Ye(t){const n=G(t.page.start),l=G(t.page.end);return ve("div",{role:"group","aria-labelledby":"h",part:"container",children:[L("div",{id:"h",class:"vh","aria-live":"polite","aria-atomic":"true",children:t.formatVerbose.formatRange(n,l)}),ve("div",{part:"header",children:[L(Ot,{name:"previous",onclick:t.previous,children:"Previous"}),L("slot",{part:"heading",name:"heading",children:L("div",{"aria-hidden":"true",children:t.format.formatRange(n,l)})}),L(Ot,{name:"next",onclick:t.next,children:"Next"})]}),L(Ke,{value:t,onselectday:t.onSelect,onfocusday:t.onFocus,onhoverday:t.onHover,children:L("slot",{})})]})}const Xe={value:{type:String,value:""},min:{type:String,value:""},max:{type:String,value:""},today:{type:String,value:""},isDateDisallowed:{type:Function,value:t=>!1},formatWeekday:{type:String,value:()=>"narrow"},getDayParts:{type:Function,value:t=>""},firstDayOfWeek:{type:Number,value:()=>1},showOutsideDays:{type:Boolean,value:!1},locale:{type:String,value:()=>{}},months:{type:Number,value:1},focusedDate:{type:String,value:()=>{}},pageBy:{type:String,value:()=>"months"}},Je=[St,Vt,Ve`:host{display:block;inline-size:fit-content}[role=group]{display:flex;flex-direction:column;gap:1em}:host::part(header){display:flex;align-items:center;justify-content:space-between}:host::part(heading){font-weight:700;font-size:1.25em}button{display:flex;align-items:center;justify-content:center}button[aria-disabled]{cursor:default;opacity:.5}`],ha={year:"numeric"},ga={year:"numeric",month:"long"};function Ge(t,n){return(n.year-t.year)*12+n.month-t.month}const Pt=(t,n)=>(t=n===12?new De(t.year,1):t,{start:t,end:t.add({months:n-1})});function ya({pageBy:t,focusedDate:n,months:l,max:o,min:r,goto:a}){const s=t==="single"?1:l,[c,i]=Oe(()=>Pt(n.toPlainYearMonth(),l)),u=y=>i(Pt(c.start.add({months:y}),l)),m=y=>{const f=Ge(c.start,y.toPlainYearMonth());return f>=0&&f<l};return ke(()=>{if(m(n))return;const y=Ge(n.toPlainYearMonth(),c.start);a(n.add({months:y}))},[c.start]),ke(()=>{if(m(n))return;const y=Ge(c.start,n.toPlainYearMonth());u(y===-1?-s:y===l?s:Math.floor(y/l)*l)},[n,s,l]),{page:c,previous:!r||!m(r)?()=>u(-s):void 0,next:!o||!m(o)?()=>u(s):void 0}}function Ze({months:t,pageBy:n,locale:l,focusedDate:o,setFocusedDate:r}){const[a]=ae("min"),[s]=ae("max"),[c]=ae("today"),i=le("focusday"),u=le("change"),m=ne(()=>Ne(o??c??Ue(),a,s),[o,c,a,s]);function y(k){r(k),i(G(k))}const{next:f,previous:d,page:$}=ya({pageBy:n,focusedDate:m,months:t,min:a,max:s,goto:y}),v=ge();function C(k){const M=(k==null?void 0:k.target)??"day";M==="day"?v.current.querySelectorAll("calendar-month").forEach(U=>U.focus(k)):v.current.shadowRoot.querySelector(`[part~='${M}']`).focus(k)}return{format:xe(ha,l),formatVerbose:xe(ga,l),page:$,focusedDate:m,dispatch:u,onFocus(k){k.stopPropagation(),y(k.detail),setTimeout(C)},min:a,max:s,today:c,next:f,previous:d,focus:C}}const Lt=be(t=>{const[n,l]=ae("value"),[o=n,r]=ae("focusedDate"),a=Ze({...t,focusedDate:o,setFocusedDate:r});function s(c){l(c.detail),a.dispatch()}return L("host",{shadowDom:!0,focus:a.focus,children:L(Ye,{...t,...a,type:"date",value:n,onSelect:s})})},{props:Xe,styles:Je});customElements.define("calendar-date",Lt);const jt=(t,n)=>_.compare(t,n)<0?[t,n]:[n,t],At=be(t=>{const[n,l]=ia("value"),[o=n[0],r]=ae("focusedDate"),a=Ze({...t,focusedDate:o,setFocusedDate:r}),s=le("rangestart"),c=le("rangeend"),[i,u]=ae("tentative"),[m,y]=Oe();ke(()=>y(void 0),[i]);function f(C){a.onFocus(C),d(C)}function d(C){C.stopPropagation(),i&&y(C.detail)}function $(C){const k=C.detail;C.stopPropagation(),i?(l(jt(i,k)),u(void 0),c(G(k)),a.dispatch()):(u(k),s(G(k)))}const v=i?jt(i,m??i):n;return L("host",{shadowDom:!0,focus:a.focus,children:L(Ye,{...t,...a,type:"range",value:v,onFocus:f,onHover:d,onSelect:$})})},{props:{...Xe,tentative:{type:String,value:""}},styles:Je});customElements.define("calendar-range",At);const Ft=be(t=>{const[n,l]=ca("value"),[o=n[0],r]=ae("focusedDate"),a=Ze({...t,focusedDate:o,setFocusedDate:r});function s(c){const i=[...n],u=n.findIndex(m=>m.equals(c.detail));u<0?i.push(c.detail):i.splice(u,1),l(i),a.dispatch()}return L("host",{shadowDom:!0,focus:a.focus,children:L(Ye,{...t,...a,type:"multi",value:n,onSelect:s})})},{props:Xe,styles:Je});customElements.define("calendar-multi",Ft);const ba=Object.freeze(Object.defineProperty({__proto__:null,CalendarDate:Lt,CalendarMonth:It,CalendarMulti:Ft,CalendarRange:At},Symbol.toStringTag,{value:"Module"}));S.Accordion=gn,S.AdvancedSearch=Zn,S.Avatar=kn,S.Badge=wn,S.ButtonComponent=Ht,S.Card=Sn,S.Carousel=In,S.CarouselItem=On,S.CategoryNavigation=fl,S.DatetimePicker=at,S.Dropdown=Yt,S.FilterableSelect=Oo,S.Footer=ll,S.Hero=dl,S.InputField=st,S.Loader=Ho,S.Modal=Gt,S.NavigationBar=bl,S.Rating=ho,S.Selector=rt,S.Swap=en,S.Tab=El,S.TagInput=wo,S.ThemeController=un,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})}));
package/dist/style.css CHANGED
@@ -3233,15 +3233,6 @@
3233
3233
  overflow-y: scroll;
3234
3234
  scroll-snap-type: y mandatory;
3235
3235
  }
3236
- .grid-rows-1 {
3237
- grid-template-rows: repeat(1, minmax(0, 1fr));
3238
- }
3239
- .grid-rows-2 {
3240
- grid-template-rows: repeat(2, minmax(0, 1fr));
3241
- }
3242
- .grid-rows-3 {
3243
- grid-template-rows: repeat(3, minmax(0, 1fr));
3244
- }
3245
3236
  .flex-col {
3246
3237
  flex-direction: column;
3247
3238
  }
@@ -4189,6 +4180,26 @@
4189
4180
  }
4190
4181
  }
4191
4182
  }
4183
+ .sm\:grid-rows-1 {
4184
+ @media (width >= 40rem) {
4185
+ grid-template-rows: repeat(1, minmax(0, 1fr));
4186
+ }
4187
+ }
4188
+ .sm\:grid-rows-2 {
4189
+ @media (width >= 40rem) {
4190
+ grid-template-rows: repeat(2, minmax(0, 1fr));
4191
+ }
4192
+ }
4193
+ .sm\:grid-rows-3 {
4194
+ @media (width >= 40rem) {
4195
+ grid-template-rows: repeat(3, minmax(0, 1fr));
4196
+ }
4197
+ }
4198
+ .sm\:flex-row {
4199
+ @media (width >= 40rem) {
4200
+ flex-direction: row;
4201
+ }
4202
+ }
4192
4203
  .md\:block {
4193
4204
  @media (width >= 48rem) {
4194
4205
  display: block;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "manolis-ui",
3
3
  "private": false,
4
- "version": "0.17.11",
4
+ "version": "0.17.13",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist/*"