manolis-ui 0.18.0 → 0.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- import { defineComponent as _, computed as ee, createElementBlock as s, openBlock as a, normalizeClass as z, createCommentVNode as O, renderSlot as V, createTextVNode as Re, createElementVNode as n, Fragment as U, renderList as G, toDisplayString as L, ref as h, watch as H, h as De, onMounted as he, withDirectives as Se, createVNode as ue, isRef as qe, vModelCheckbox as Ue, unref as se, provide as We, onUnmounted as Ve, normalizeStyle as we, Transition as Pe, withCtx as Ce, inject as Ke, useId as Xe, defineAsyncComponent as ze, nextTick as me, onBeforeUnmount as Ee, withModifiers as re, createBlock as ve, resolveDynamicComponent as Te, mergeProps as Be, withKeys as pe, resolveComponent as Oe, vModelText as Ne, useSlots as Ye, Comment as Ge, vShow as Je } from "vue";
2
- const Ze = ["disabled"], Qe = {
1
+ import { defineComponent as _, computed as ee, createElementBlock as s, openBlock as a, normalizeClass as z, createCommentVNode as O, renderSlot as V, createTextVNode as Ae, createElementVNode as n, Fragment as U, renderList as G, toDisplayString as j, ref as h, watch as H, h as De, onMounted as ge, withDirectives as Se, createVNode as ue, isRef as Ue, vModelCheckbox as We, unref as se, provide as Ke, onUnmounted as Re, normalizeStyle as we, Transition as Le, withCtx as Ce, inject as Xe, useId as Ye, defineAsyncComponent as ze, nextTick as pe, onBeforeUnmount as Ve, withModifiers as re, createBlock as ve, resolveDynamicComponent as Te, mergeProps as Be, withKeys as he, resolveComponent as Oe, vModelText as Ne, useSlots as Ge, Comment as Je, vShow as Ze } from "vue";
2
+ const Qe = ["disabled"], et = {
3
3
  key: 0,
4
4
  class: "loading loading-spinner"
5
- }, kn = /* @__PURE__ */ _({
5
+ }, $n = /* @__PURE__ */ _({
6
6
  __name: "ButtonComponent",
7
7
  props: {
8
8
  outlined: { type: Boolean, default: !1 },
@@ -75,16 +75,16 @@ const Ze = ["disabled"], Qe = {
75
75
  ]),
76
76
  disabled: d.disabled
77
77
  }, [
78
- e.loading ? (a(), s("span", Qe)) : O("", !0),
78
+ e.loading ? (a(), s("span", et)) : O("", !0),
79
79
  V(o.$slots, "default", {}, () => [
80
- u[0] || (u[0] = Re("Submit", -1))
80
+ u[0] || (u[0] = Ae("Submit", -1))
81
81
  ])
82
- ], 10, Ze));
82
+ ], 10, Qe));
83
83
  }
84
- }), et = {
84
+ }), tt = {
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"], $n = /* @__PURE__ */ _({
87
+ }, lt = ["href"], Sn = /* @__PURE__ */ _({
88
88
  __name: "dropdown",
89
89
  props: {
90
90
  items: {},
@@ -112,17 +112,17 @@ const Ze = ["disabled"], Qe = {
112
112
  }, () => [
113
113
  o[0] || (o[0] = n("div", { class: "m-1 btn" }, "Open dropdown", -1))
114
114
  ]),
115
- n("ul", et, [
115
+ n("ul", tt, [
116
116
  (a(!0), s(U, null, G(e.items, (u) => (a(), s("li", null, [
117
117
  n("a", {
118
118
  href: u.link
119
- }, L(u.text), 9, tt)
119
+ }, j(u.text), 9, lt)
120
120
  ]))), 256)),
121
121
  V(i.$slots, "additional")
122
122
  ])
123
123
  ], 2));
124
124
  }
125
- }), lt = { class: "modal-box" }, nt = { class: "modal-action" }, Sn = /* @__PURE__ */ _({
125
+ }), nt = { class: "modal-box" }, at = { class: "modal-action" }, Cn = /* @__PURE__ */ _({
126
126
  __name: "modal",
127
127
  props: {
128
128
  position: { default: "center" },
@@ -161,9 +161,9 @@ const Ze = ["disabled"], Qe = {
161
161
  ref: t,
162
162
  class: z(["modal", l[d.position]])
163
163
  }, [
164
- n("div", lt, [
164
+ n("div", nt, [
165
165
  V(u.$slots, "default"),
166
- n("div", nt, [
166
+ n("div", at, [
167
167
  V(u.$slots, "actions"),
168
168
  n("form", {
169
169
  method: "dialog",
@@ -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" }, Cn = /* @__PURE__ */ _({
182
+ }), ot = { class: "flex justify-center items-center swap-on" }, st = { class: "flex justify-center items-center swap-off" }, In = /* @__PURE__ */ _({
183
183
  __name: "swap",
184
184
  props: {
185
185
  effect: {}
@@ -190,10 +190,10 @@ const Ze = ["disabled"], Qe = {
190
190
  class: z(["swap", d.effect ? `swap-${e.effect}` : ""])
191
191
  }, [
192
192
  t[0] || (t[0] = n("input", { type: "checkbox" }, null, -1)),
193
- n("div", at, [
193
+ n("div", ot, [
194
194
  V(l.$slots, "on")
195
195
  ]),
196
- n("div", ot, [
196
+ n("div", st, [
197
197
  V(l.$slots, "off")
198
198
  ])
199
199
  ], 2));
@@ -205,7 +205,7 @@ const Ze = ["disabled"], Qe = {
205
205
  * This source code is licensed under the ISC license.
206
206
  * See the LICENSE file in the root directory of this source tree.
207
207
  */
208
- const st = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
208
+ const it = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
209
209
  /**
210
210
  * @license lucide-vue-next v0.468.0 - ISC
211
211
  *
@@ -229,7 +229,7 @@ var $e = {
229
229
  * This source code is licensed under the ISC license.
230
230
  * See the LICENSE file in the root directory of this source tree.
231
231
  */
232
- const it = ({ size: e, strokeWidth: d = 2, absoluteStrokeWidth: l, color: t, iconNode: i, name: o, class: u, ...m }, { slots: r }) => De(
232
+ const rt = ({ size: e, strokeWidth: d = 2, absoluteStrokeWidth: l, color: t, iconNode: i, name: o, class: u, ...m }, { slots: r }) => De(
233
233
  "svg",
234
234
  {
235
235
  ...$e,
@@ -237,10 +237,10 @@ const it = ({ size: e, strokeWidth: d = 2, absoluteStrokeWidth: l, color: t, ico
237
237
  height: e || $e.height,
238
238
  stroke: t || $e.stroke,
239
239
  "stroke-width": l ? Number(d) * 24 / Number(e) : d,
240
- class: ["lucide", `lucide-${st(o ?? "icon")}`],
240
+ class: ["lucide", `lucide-${it(o ?? "icon")}`],
241
241
  ...m
242
242
  },
243
- [...i.map((y) => De(...y)), ...r.default ? [r.default()] : []]
243
+ [...i.map((g) => De(...g)), ...r.default ? [r.default()] : []]
244
244
  );
245
245
  /**
246
246
  * @license lucide-vue-next v0.468.0 - ISC
@@ -249,7 +249,7 @@ const it = ({ size: e, strokeWidth: d = 2, absoluteStrokeWidth: l, color: t, ico
249
249
  * See the LICENSE file in the root directory of this source tree.
250
250
  */
251
251
  const xe = (e, d) => (l, { slots: t }) => De(
252
- it,
252
+ rt,
253
253
  {
254
254
  ...l,
255
255
  iconNode: d,
@@ -263,7 +263,7 @@ const xe = (e, d) => (l, { slots: t }) => De(
263
263
  * This source code is licensed under the ISC license.
264
264
  * See the LICENSE file in the root directory of this source tree.
265
265
  */
266
- const rt = xe("CircleChevronDownIcon", [
266
+ const ut = xe("CircleChevronDownIcon", [
267
267
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
268
268
  ["path", { d: "m16 10-4 4-4-4", key: "894hmk" }]
269
269
  ]);
@@ -273,7 +273,7 @@ const rt = xe("CircleChevronDownIcon", [
273
273
  * This source code is licensed under the ISC license.
274
274
  * See the LICENSE file in the root directory of this source tree.
275
275
  */
276
- const ut = xe("CircleXIcon", [
276
+ const dt = xe("CircleXIcon", [
277
277
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
278
278
  ["path", { d: "m15 9-6 6", key: "1uzhvr" }],
279
279
  ["path", { d: "m9 9 6 6", key: "z0biqf" }]
@@ -284,7 +284,7 @@ const ut = xe("CircleXIcon", [
284
284
  * This source code is licensed under the ISC license.
285
285
  * See the LICENSE file in the root directory of this source tree.
286
286
  */
287
- const dt = xe("MoonIcon", [
287
+ const ct = xe("MoonIcon", [
288
288
  ["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z", key: "a7tn18" }]
289
289
  ]);
290
290
  /**
@@ -293,7 +293,7 @@ const dt = xe("MoonIcon", [
293
293
  * This source code is licensed under the ISC license.
294
294
  * See the LICENSE file in the root directory of this source tree.
295
295
  */
296
- const Ae = xe("SearchIcon", [
296
+ const Pe = xe("SearchIcon", [
297
297
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
298
298
  ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
299
299
  ]);
@@ -303,7 +303,7 @@ const Ae = xe("SearchIcon", [
303
303
  * This source code is licensed under the ISC license.
304
304
  * See the LICENSE file in the root directory of this source tree.
305
305
  */
306
- const ct = xe("SunIcon", [
306
+ const vt = xe("SunIcon", [
307
307
  ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
308
308
  ["path", { d: "M12 2v2", key: "tus03m" }],
309
309
  ["path", { d: "M12 20v2", key: "1lh1kg" }],
@@ -313,9 +313,9 @@ const ct = xe("SunIcon", [
313
313
  ["path", { d: "M20 12h2", key: "1q8mjw" }],
314
314
  ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
315
315
  ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
316
- ]), vt = (e, d) => {
316
+ ]), ft = (e, d) => {
317
317
  const l = h(null);
318
- return he(() => {
318
+ return ge(() => {
319
319
  if (typeof window < "u") {
320
320
  const t = window.localStorage.getItem(e);
321
321
  l.value = t ? JSON.parse(t) : d;
@@ -323,43 +323,43 @@ const ct = xe("SunIcon", [
323
323
  }), H(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"], In = /* @__PURE__ */ _({
326
+ }, mt = { class: "swap-rotate swap" }, pt = ["true-value", "false-value"], Mn = /* @__PURE__ */ _({
327
327
  __name: "theme-controller",
328
328
  props: {
329
329
  lightTheme: { default: "light" },
330
330
  darkTheme: { default: "dark" }
331
331
  },
332
332
  setup(e) {
333
- const d = e, l = vt("theme", d.lightTheme);
333
+ const d = e, l = ft("theme", d.lightTheme);
334
334
  function t(i) {
335
335
  typeof window < "u" && window.document && document.documentElement.setAttribute("data-theme", i);
336
336
  }
337
- return he(() => t(l.value ? l.value : "")), H(l, (i) => {
337
+ return ge(() => t(l.value ? l.value : "")), H(l, (i) => {
338
338
  t(i);
339
- }), (i, o) => (a(), s("label", ft, [
339
+ }), (i, o) => (a(), s("label", mt, [
340
340
  Se(n("input", {
341
341
  type: "checkbox",
342
342
  class: "theme-controller",
343
- "onUpdate:modelValue": o[0] || (o[0] = (u) => qe(l) ? l.value = u : null),
343
+ "onUpdate:modelValue": o[0] || (o[0] = (u) => Ue(l) ? l.value = u : null),
344
344
  "true-value": d.lightTheme,
345
345
  "false-value": d.darkTheme
346
- }, null, 8, mt), [
347
- [Ue, se(l)]
346
+ }, null, 8, pt), [
347
+ [We, se(l)]
348
348
  ]),
349
- ue(se(ct), { class: "swap-off fill-current" }),
350
- ue(se(dt), { class: "swap-on fill-current" })
349
+ ue(se(vt), { class: "swap-off fill-current" }),
350
+ ue(se(ct), { class: "swap-on fill-current" })
351
351
  ]));
352
352
  }
353
- }), pt = {
353
+ }), ht = {
354
354
  key: 0,
355
355
  class: "join join-vertical w-full"
356
- }, ht = ["name"], gt = {
356
+ }, gt = ["name"], yt = {
357
357
  key: 1,
358
358
  type: "checkbox"
359
- }, yt = { class: "collapse-title font-bold text-2xl lg:text-4xl" }, bt = { class: "collapse-content" }, wt = ["innerHTML"], xt = ["name"], kt = {
359
+ }, bt = { class: "collapse-title font-bold text-2xl lg:text-4xl" }, wt = { class: "collapse-content" }, xt = ["innerHTML"], kt = ["name"], $t = {
360
360
  key: 1,
361
361
  type: "checkbox"
362
- }, $t = { class: "collapse-title font-bold text-2xl lg:text-4xl" }, St = { class: "collapse-content" }, Ct = ["innerHTML"], Mn = /* @__PURE__ */ _({
362
+ }, St = { class: "collapse-title font-bold text-2xl lg:text-4xl" }, Ct = { class: "collapse-content" }, It = ["innerHTML"], zn = /* @__PURE__ */ _({
363
363
  __name: "accordion",
364
364
  props: {
365
365
  name: {},
@@ -370,43 +370,43 @@ const ct = xe("SunIcon", [
370
370
  },
371
371
  setup(e) {
372
372
  const d = e;
373
- return (l, t) => d.joinItems ? (a(), s("div", pt, [
373
+ return (l, t) => d.joinItems ? (a(), s("div", ht, [
374
374
  (a(!0), s(U, null, G(d.items, (i, o) => (a(), s("div", {
375
375
  class: z(["collapse border border-base-300 join-item", [e.icon ? `collapse-${e.icon}` : ""]]),
376
376
  key: o
377
377
  }, [
378
- e.toggle ? (a(), s("input", gt)) : (a(), s("input", {
378
+ e.toggle ? (a(), s("input", yt)) : (a(), s("input", {
379
379
  key: 0,
380
380
  type: "radio",
381
381
  name: e.name,
382
382
  value: "true"
383
- }, null, 8, ht)),
384
- n("div", yt, L(i.title), 1),
385
- n("div", bt, [
383
+ }, null, 8, gt)),
384
+ n("div", bt, j(i.title), 1),
385
+ n("div", wt, [
386
386
  n("span", {
387
387
  innerHTML: i.content
388
- }, null, 8, wt)
388
+ }, null, 8, xt)
389
389
  ])
390
390
  ], 2))), 128))
391
391
  ])) : (a(!0), s(U, { key: 1 }, G(d.items, (i, o) => (a(), s("div", {
392
392
  class: z(["collapse border border-base-300", [e.icon ? `collapse-${e.icon}` : ""]]),
393
393
  key: o
394
394
  }, [
395
- e.toggle ? (a(), s("input", kt)) : (a(), s("input", {
395
+ e.toggle ? (a(), s("input", $t)) : (a(), s("input", {
396
396
  key: 0,
397
397
  type: "radio",
398
398
  name: e.name,
399
399
  value: "true"
400
- }, null, 8, xt)),
401
- n("div", $t, L(i.title), 1),
402
- n("div", St, [
400
+ }, null, 8, kt)),
401
+ n("div", St, j(i.title), 1),
402
+ n("div", Ct, [
403
403
  n("span", {
404
404
  innerHTML: i.content
405
- }, null, 8, Ct)
405
+ }, null, 8, It)
406
406
  ])
407
407
  ], 2))), 128));
408
408
  }
409
- }), It = ["src"], Mt = { class: "text-xl" }, zn = /* @__PURE__ */ _({
409
+ }), Mt = ["src"], zt = { class: "text-xl" }, Tn = /* @__PURE__ */ _({
410
410
  __name: "avatar",
411
411
  props: {
412
412
  image: {},
@@ -431,16 +431,16 @@ const ct = xe("SunIcon", [
431
431
  n("img", {
432
432
  src: e.image,
433
433
  class: "w-full h-full"
434
- }, null, 8, It)
434
+ }, null, 8, Mt)
435
435
  ], 2)) : (a(), s("div", {
436
436
  key: 1,
437
437
  class: z(["flex justify-center bg-neutral p-[25%] rounded w-16 text-neutral-content text-center", [{ "rounded-full": e.fullyRounded }, { rounded: !e.fullyRounded }]])
438
438
  }, [
439
- n("p", Mt, L(e.initials), 1)
439
+ n("p", zt, j(e.initials), 1)
440
440
  ], 2))
441
441
  ], 2));
442
442
  }
443
- }), Tn = /* @__PURE__ */ _({
443
+ }), Bn = /* @__PURE__ */ _({
444
444
  __name: "badge",
445
445
  props: {
446
446
  color: { default: "neutral" },
@@ -470,19 +470,19 @@ const ct = xe("SunIcon", [
470
470
  V(i.$slots, "default")
471
471
  ], 2));
472
472
  }
473
- }), zt = ["src", "alt"], Tt = {
473
+ }), Tt = ["src", "alt"], Bt = {
474
474
  key: 0,
475
475
  class: "card-body"
476
- }, Bt = {
476
+ }, Ot = {
477
477
  key: 0,
478
478
  class: "group-hover:text-primary text-lg text-left cursor-pointer card-title"
479
- }, Ot = {
479
+ }, Dt = {
480
480
  key: 1,
481
481
  class: "text-left"
482
- }, Dt = { class: "flex-col flex-nowrap mt-auto card-actions" }, Vt = {
482
+ }, Vt = { class: "flex-col flex-nowrap mt-auto card-actions" }, Et = {
483
483
  key: 1,
484
484
  class: "card-body"
485
- }, Bn = /* @__PURE__ */ _({
485
+ }, On = /* @__PURE__ */ _({
486
486
  __name: "card",
487
487
  props: {
488
488
  imgUrl: { default: "" },
@@ -527,21 +527,21 @@ const ct = xe("SunIcon", [
527
527
  !e.horizontal && e.imgHeight ? e.imgHeight : "h-full",
528
528
  e.horizontal && e.imgWidth ? e.imgWidth : "w-full"
529
529
  ]])
530
- }, null, 10, zt)) : O("", !0),
530
+ }, null, 10, Tt)) : O("", !0),
531
531
  e.loading && e.imgUrl ? (a(), s("div", {
532
532
  key: 1,
533
533
  class: z(["w-full skeleton", e.imgHeight])
534
534
  }, null, 2)) : O("", !0)
535
535
  ], 2),
536
- e.loading ? O("", !0) : (a(), s("div", Tt, [
537
- e.title ? (a(), s("h2", Bt, L(e.title), 1)) : O("", !0),
536
+ e.loading ? O("", !0) : (a(), s("div", Bt, [
537
+ e.title ? (a(), s("h2", Ot, j(e.title), 1)) : O("", !0),
538
538
  V(t.$slots, "details"),
539
- e.description ? (a(), s("p", Ot, L(e.description), 1)) : O("", !0),
540
- n("div", Dt, [
539
+ e.description ? (a(), s("p", Dt, j(e.description), 1)) : O("", !0),
540
+ n("div", Vt, [
541
541
  V(t.$slots, "actions")
542
542
  ])
543
543
  ])),
544
- e.loading ? (a(), s("div", Vt, [...i[0] || (i[0] = [
544
+ e.loading ? (a(), s("div", Et, [...i[0] || (i[0] = [
545
545
  n("div", { class: "flex flex-col gap-4 w-52" }, [
546
546
  n("div", { class: "w-28 h-4 skeleton" }),
547
547
  n("div", { class: "w-full h-4 skeleton" }),
@@ -550,17 +550,17 @@ const ct = xe("SunIcon", [
550
550
  ])])) : O("", !0)
551
551
  ], 2));
552
552
  }
553
- }), _e = Symbol("CarouselItemStyle"), Et = { class: "relative h-full" }, Lt = {
553
+ }), _e = Symbol("CarouselItemStyle"), jt = { class: "relative h-full" }, Lt = {
554
554
  key: 0,
555
555
  class: "flex-shrink-0"
556
- }, jt = {
556
+ }, Pt = {
557
557
  key: 0,
558
558
  class: "flex-shrink-0"
559
- }, Pt = {
559
+ }, At = {
560
560
  key: 1,
561
561
  id: "carousel-indicators",
562
562
  class: "bottom-5 z-10 absolute flex justify-center gap-2 py-2 w-full"
563
- }, At = ["onClick", "aria-label"], Rt = /* @__PURE__ */ _({
563
+ }, Rt = ["onClick", "aria-label"], Nt = /* @__PURE__ */ _({
564
564
  __name: "carousel",
565
565
  props: {
566
566
  showIndicators: {
@@ -616,71 +616,71 @@ const ct = xe("SunIcon", [
616
616
  }
617
617
  },
618
618
  setup(e, { expose: d }) {
619
- const l = e, t = h(l.initialSlide), i = h(null), o = h(null), u = h(0), m = h(!1), r = h(0), y = h(0), M = h(!1), R = h(0), k = h(0), c = h(0), E = h(0), C = h(0), W = h(0), F = h(0), K = h(null), Q = h(null), le = h(0), f = h(null), b = ee(() => {
620
- const I = Object.keys(l.breakpoints).map(Number).sort((P, q) => P - q);
619
+ const l = e, t = h(l.initialSlide), i = h(null), o = h(null), u = h(0), m = h(!1), r = h(0), g = h(0), M = h(!1), R = h(0), k = h(0), c = h(0), E = h(0), I = h(0), W = h(0), F = h(0), K = h(null), Q = h(null), le = h(0), f = h(null), b = ee(() => {
620
+ const S = Object.keys(l.breakpoints).map(Number).sort((P, q) => P - q);
621
621
  let $ = {};
622
- for (const P of I)
623
- y.value >= P && ($ = { ...$, ...l.breakpoints[P] });
622
+ for (const P of S)
623
+ g.value >= P && ($ = { ...$, ...l.breakpoints[P] });
624
624
  return $;
625
- }), g = ee(() => b.value.slidesPerView ?? l.slidesPerView), S = ee(() => b.value.gap ?? l.gap), v = ee(() => {
626
- const I = l.sliderOrientation === "horizontal", P = `calc((100% - ${g.value > 1 ? (g.value - 1) * S.value : 0}px) / ${g.value})`;
627
- return I ? {
625
+ }), y = ee(() => b.value.slidesPerView ?? l.slidesPerView), C = ee(() => b.value.gap ?? l.gap), v = ee(() => {
626
+ const S = l.sliderOrientation === "horizontal", P = `calc((100% - ${y.value > 1 ? (y.value - 1) * C.value : 0}px) / ${y.value})`;
627
+ return S ? {
628
628
  width: P
629
629
  } : { height: P };
630
630
  });
631
- We(_e, v);
631
+ Ke(_e, v);
632
632
  const D = () => {
633
633
  o.value ? r.value = o.value.children.length : r.value = 0;
634
634
  }, x = () => {
635
- if (!i.value || g.value <= 0) return 0;
636
- const $ = l.sliderOrientation === "horizontal" ? i.value.offsetWidth : i.value.offsetHeight, P = (g.value - 1) * S.value;
637
- return $ <= 0 ? 0 : ($ - P) / g.value;
638
- }, j = ee(() => {
639
- if (!i.value || r.value === 0 || g.value === 0) return 0;
640
- const $ = l.sliderOrientation === "horizontal" ? i.value.offsetWidth : i.value.offsetHeight, P = x(), q = r.value * (P + S.value) - S.value;
635
+ if (!i.value || y.value <= 0) return 0;
636
+ const $ = l.sliderOrientation === "horizontal" ? i.value.offsetWidth : i.value.offsetHeight, P = (y.value - 1) * C.value;
637
+ return $ <= 0 ? 0 : ($ - P) / y.value;
638
+ }, L = ee(() => {
639
+ if (!i.value || r.value === 0 || y.value === 0) return 0;
640
+ const $ = l.sliderOrientation === "horizontal" ? i.value.offsetWidth : i.value.offsetHeight, P = x(), q = r.value * (P + C.value) - C.value;
641
641
  return Math.max(0, q - $);
642
- }), A = async (I, $ = !1) => {
643
- if (!i.value || g.value <= 0 || m.value || (D(), r.value === 0)) return;
642
+ }), A = async (S, $ = !1) => {
643
+ if (!i.value || y.value <= 0 || m.value || (D(), r.value === 0)) return;
644
644
  const P = x();
645
645
  if (P <= 0) return;
646
- const q = P + S.value, Z = j.value;
647
- let X = I;
648
- l.infinite ? X = (I % r.value + r.value) % r.value : X = Math.max(0, Math.min(I, r.value - g.value));
646
+ const q = P + C.value, Z = L.value;
647
+ let X = S;
648
+ l.infinite ? X = (S % r.value + r.value) % r.value : X = Math.max(0, Math.min(S, r.value - y.value));
649
649
  const oe = X * q, Y = l.infinite ? oe : Math.max(0, Math.min(oe, Z));
650
650
  if ($ || l.slideDuration === 0) {
651
651
  o.value && (o.value.style.transitionDuration = "0ms", o.value.style.transform = l.sliderOrientation === "horizontal" ? `translate3d(${-Y}px, 0, 0)` : `translate3d(0, ${-Y}px, 0)`), u.value = Y, t.value = X, m.value = !1, l.autoplay && ce();
652
652
  return;
653
653
  }
654
654
  m.value = !0;
655
- const ie = u.value, ne = Y - ie, be = performance.now(), fe = (ke) => {
655
+ const ie = u.value, ae = Y - ie, be = performance.now(), me = (ke) => {
656
656
  if (!o.value) return;
657
- const Fe = ke - be, je = Math.min(1, Fe / l.slideDuration), He = 1 - Math.pow(1 - je, 3), Me = ie + ne * He;
658
- o.value.style.transform = l.sliderOrientation === "horizontal" ? `translate3d(${-Me}px, 0, 0)` : `translate3d(0, ${-Me}px, 0)`, u.value = Me, je < 1 ? K.value = requestAnimationFrame(fe) : (o.value.style.transform = l.sliderOrientation === "horizontal" ? `translate3d(${-Y}px, 0, 0)` : `translate3d(0, ${-Y}px, 0)`, u.value = Y, t.value = X, m.value = !1, l.autoplay && ce(), K.value = null);
657
+ const He = ke - be, je = Math.min(1, He / l.slideDuration), qe = 1 - Math.pow(1 - je, 3), Me = ie + ae * qe;
658
+ o.value.style.transform = l.sliderOrientation === "horizontal" ? `translate3d(${-Me}px, 0, 0)` : `translate3d(0, ${-Me}px, 0)`, u.value = Me, je < 1 ? K.value = requestAnimationFrame(me) : (o.value.style.transform = l.sliderOrientation === "horizontal" ? `translate3d(${-Y}px, 0, 0)` : `translate3d(0, ${-Y}px, 0)`, u.value = Y, t.value = X, m.value = !1, l.autoplay && ce(), K.value = null);
659
659
  };
660
- K.value = requestAnimationFrame(fe);
660
+ K.value = requestAnimationFrame(me);
661
661
  }, te = () => {
662
- l.infinite && t.value >= r.value - g.value ? A(0) : A(t.value + 1);
662
+ l.infinite && t.value >= r.value - y.value ? A(0) : A(t.value + 1);
663
663
  }, de = () => {
664
- l.infinite && t.value <= 0 ? A(r.value - g.value) : A(t.value - 1);
665
- }, p = (I) => {
666
- A(I);
667
- }, w = (I) => {
668
- m.value && K.value && (l.autoplay && ae(), cancelAnimationFrame(K.value), m.value = !1);
669
- const $ = "touches" in I ? I.touches[0] : I;
670
- R.value = $.clientX, k.value = $.clientY, f.value = null, c.value = u.value, E.value = 0, C.value = 0, W.value = 0, F.value = performance.now(), i.value && (i.value.style.scrollSnapType = "none"), document.addEventListener("mousemove", T, { passive: !1 }), document.addEventListener("mouseup", N), document.addEventListener("touchmove", T, { passive: !1 }), document.addEventListener("touchend", N);
671
- }, T = (I) => {
672
- const $ = "touches" in I ? I.touches[0] : I;
664
+ l.infinite && t.value <= 0 ? A(r.value - y.value) : A(t.value - 1);
665
+ }, p = (S) => {
666
+ A(S);
667
+ }, w = (S) => {
668
+ m.value && K.value && (l.autoplay && ne(), cancelAnimationFrame(K.value), m.value = !1);
669
+ const $ = "touches" in S ? S.touches[0] : S;
670
+ R.value = $.clientX, k.value = $.clientY, f.value = null, c.value = u.value, E.value = 0, I.value = 0, W.value = 0, F.value = performance.now(), i.value && (i.value.style.scrollSnapType = "none"), document.addEventListener("mousemove", T, { passive: !1 }), document.addEventListener("mouseup", N), document.addEventListener("touchmove", T, { passive: !1 }), document.addEventListener("touchend", N);
671
+ }, T = (S) => {
672
+ const $ = "touches" in S ? S.touches[0] : S;
673
673
  if (!f.value) {
674
- const be = Math.abs($.clientX - R.value), fe = Math.abs($.clientY - k.value), ke = 5;
675
- if (be > ke || fe > ke)
674
+ const be = Math.abs($.clientX - R.value), me = Math.abs($.clientY - k.value), ke = 5;
675
+ if (be > ke || me > ke)
676
676
  if (l.sliderOrientation === "horizontal")
677
- if (be > fe)
677
+ if (be > me)
678
678
  f.value = "horizontal", M.value = !0;
679
679
  else {
680
680
  B();
681
681
  return;
682
682
  }
683
- else if (fe > be)
683
+ else if (me > be)
684
684
  f.value = "vertical", M.value = !0;
685
685
  else {
686
686
  B();
@@ -690,34 +690,34 @@ const ct = xe("SunIcon", [
690
690
  return;
691
691
  }
692
692
  if (!M.value || !o.value || !i.value) return;
693
- I.cancelable && I.preventDefault();
694
- const P = performance.now(), q = P - F.value, Z = l.sliderOrientation === "horizontal" ? $.clientX : $.clientY, X = l.sliderOrientation === "horizontal" ? R.value : k.value, oe = l.sliderOrientation === "horizontal" ? C.value || X : W.value || X, Y = Z - oe;
693
+ S.cancelable && S.preventDefault();
694
+ const P = performance.now(), q = P - F.value, Z = l.sliderOrientation === "horizontal" ? $.clientX : $.clientY, X = l.sliderOrientation === "horizontal" ? R.value : k.value, oe = l.sliderOrientation === "horizontal" ? I.value || X : W.value || X, Y = Z - oe;
695
695
  q > 0 && (E.value = Y / q * 1e3);
696
696
  const ie = Z - X;
697
- let ne = c.value - ie;
698
- ne < 0 ? ne = ne * 0.3 : ne > j.value && (ne = j.value + (ne - j.value) * 0.3), le.value = ne, o.value.style.transform = l.sliderOrientation === "horizontal" ? `translate3d(${-le.value}px, 0, 0)` : `translate3d(0, ${-le.value}px, 0)`, l.sliderOrientation === "horizontal" ? C.value = Z : W.value = Z, F.value = P;
697
+ let ae = c.value - ie;
698
+ ae < 0 ? ae = ae * 0.3 : ae > L.value && (ae = L.value + (ae - L.value) * 0.3), le.value = ae, o.value.style.transform = l.sliderOrientation === "horizontal" ? `translate3d(${-le.value}px, 0, 0)` : `translate3d(0, ${-le.value}px, 0)`, l.sliderOrientation === "horizontal" ? I.value = Z : W.value = Z, F.value = P;
699
699
  }, B = () => {
700
700
  document.removeEventListener("mousemove", T), document.removeEventListener("mouseup", N), document.removeEventListener("touchmove", T), document.removeEventListener("touchend", N);
701
701
  }, N = () => {
702
702
  if (!M.value || !i.value || !o.value) return;
703
- const $ = l.sliderOrientation === "horizontal" ? c.value - (C.value - R.value) : c.value - (W.value - k.value), P = Math.max(0, Math.min($, j.value)), q = x() + S.value;
703
+ const $ = l.sliderOrientation === "horizontal" ? c.value - (I.value - R.value) : c.value - (W.value - k.value), P = Math.max(0, Math.min($, L.value)), q = x() + C.value;
704
704
  if (M.value = !1, B(), u.value = P, l.infinite) {
705
705
  if ($ < 0) {
706
706
  A(r.value - 1);
707
707
  return;
708
- } else if ($ > j.value) {
708
+ } else if ($ > L.value) {
709
709
  A(0);
710
710
  return;
711
711
  }
712
712
  } else if ($ < 0) {
713
713
  A(0);
714
714
  return;
715
- } else if ($ > j.value) {
716
- const Y = Math.max(0, r.value - Math.floor(g.value));
715
+ } else if ($ > L.value) {
716
+ const Y = Math.max(0, r.value - Math.floor(y.value));
717
717
  A(Y);
718
718
  return;
719
719
  }
720
- const Z = Math.max(0, r.value - Math.floor(g.value)), X = 100, oe = Math.round(P / q);
720
+ const Z = Math.max(0, r.value - Math.floor(y.value)), X = 100, oe = Math.round(P / q);
721
721
  if (Math.abs(E.value) > X) {
722
722
  const Y = -Math.sign(E.value), ie = oe + Y;
723
723
  A(Math.max(0, Math.min(Z, ie)));
@@ -727,47 +727,47 @@ const ct = xe("SunIcon", [
727
727
  !l.autoplay || Q.value !== null || (Q.value = setInterval(() => {
728
728
  te();
729
729
  }, l.autoplayInterval));
730
- }, ae = () => {
730
+ }, ne = () => {
731
731
  Q.value !== null && (clearInterval(Q.value), Q.value = null);
732
732
  }, ce = () => {
733
- ae(), setTimeout(() => {
733
+ ne(), setTimeout(() => {
734
734
  J();
735
735
  }, 500);
736
- }, ye = () => {
737
- y.value = window.innerWidth;
738
- }, Ie = () => {
739
- if (!i.value || g.value <= 0 || (D(), r.value === 0)) return;
740
- const I = x();
741
- if (I <= 0) return;
742
- const $ = Math.max(0, r.value - g.value), P = Math.min(Math.max(0, l.initialSlide), $), q = P * (I + S.value), Z = j.value, X = Math.max(0, Math.min(q, Z));
736
+ }, fe = h(null), Ie = (S) => {
737
+ if (!S || S.length === 0)
738
+ return;
739
+ const { width: $ } = S[0].contentRect;
740
+ Math.abs($ - g.value) > 1 && (g.value = $);
741
+ }, Fe = () => {
742
+ if (!i.value || y.value <= 0 || (D(), r.value === 0)) return;
743
+ const S = x();
744
+ if (S <= 0) return;
745
+ const $ = Math.max(0, r.value - y.value), P = Math.min(Math.max(0, l.initialSlide), $), q = P * (S + C.value), Z = L.value, X = Math.max(0, Math.min(q, Z));
743
746
  o.value && (o.value.style.transitionDuration = "0ms", o.value.style.transform = l.sliderOrientation === "horizontal" ? `translate3d(${-X}px, 0, 0)` : `translate3d(0, ${-X}px, 0)`), u.value = X, t.value = P;
744
747
  };
745
- Ve(() => {
746
- window.removeEventListener("resize", ye);
747
- });
748
- let Le = !1;
749
- return he(() => {
748
+ let Ee = !1;
749
+ return ge(() => {
750
750
  var $, P, q, Z, X, oe, Y, ie;
751
- y.value = window.innerWidth;
752
- const I = H(r, (ne) => {
753
- ne > 0 && !Le && (Ie(), Le = !0, I());
751
+ g.value = window.innerWidth;
752
+ const S = H(r, (ae) => {
753
+ ae > 0 && !Ee && (Fe(), Ee = !0, S());
754
754
  });
755
- l.autoplay && J(), window.addEventListener("resize", ye), D(), ($ = i.value) == null || $.addEventListener("mousedown", w), (P = i.value) == null || P.addEventListener("touchstart", w, { passive: !0 }), l.showNavigationButtons && ((X = (Z = (q = i.value) == null ? void 0 : q.parentElement) == null ? void 0 : Z.querySelector(".absolute.flex.justify-between")) == null || X.addEventListener("click", ce)), l.showIndicators && ((ie = (Y = (oe = i.value) == null ? void 0 : oe.parentElement) == null ? void 0 : Y.querySelector(".bottom-5.flex.justify-center")) == null || ie.addEventListener("click", ce));
756
- }), Ve(() => {
757
- window.removeEventListener("resize", ye);
758
- }), H(() => l.autoplay, (I) => {
759
- I ? J() : ae();
760
- }), H(() => l.autoplayInterval, ce), H(() => l.initialSlide, (I) => {
761
- requestAnimationFrame(() => A(I, !0));
762
- }), H([g, S], () => {
755
+ l.autoplay && J(), D(), i.value && (fe.value = new ResizeObserver(Ie), fe.value.observe(i.value)), ($ = i.value) == null || $.addEventListener("mousedown", w), (P = i.value) == null || P.addEventListener("touchstart", w, { passive: !0 }), l.showNavigationButtons && ((X = (Z = (q = i.value) == null ? void 0 : q.parentElement) == null ? void 0 : Z.querySelector(".absolute.flex.justify-between")) == null || X.addEventListener("click", ce)), l.showIndicators && ((ie = (Y = (oe = i.value) == null ? void 0 : oe.parentElement) == null ? void 0 : Y.querySelector(".bottom-5.flex.justify-center")) == null || ie.addEventListener("click", ce));
756
+ }), Re(() => {
757
+ fe.value && fe.value.disconnect(), ne();
758
+ }), H(() => l.autoplay, (S) => {
759
+ S ? J() : ne();
760
+ }), H(() => l.autoplayInterval, ce), H(() => l.initialSlide, (S) => {
761
+ requestAnimationFrame(() => A(S, !0));
762
+ }), H([y, C], () => {
763
763
  requestAnimationFrame(() => {
764
764
  requestAnimationFrame(() => {
765
765
  if (D(), r.value === 0) return;
766
- const I = Math.max(0, r.value - g.value), $ = Math.min(t.value, I);
766
+ const S = Math.max(0, r.value - y.value), $ = Math.min(t.value, S);
767
767
  A($, !0);
768
768
  });
769
769
  });
770
- }), d({ scrollToSlide: A }), (I, $) => (a(), s("div", Et, [
770
+ }), d({ scrollToSlide: A }), (S, $) => (a(), s("div", jt, [
771
771
  n("div", {
772
772
  ref_key: "carouselContainer",
773
773
  ref: i,
@@ -778,16 +778,16 @@ const ct = xe("SunIcon", [
778
778
  ref_key: "slidesContainer",
779
779
  ref: o,
780
780
  class: z(["w-full h-full transition-transform duration-0 ease-out", e.sliderOrientation === "horizontal" ? "flex" : "block"]),
781
- style: we({ gap: `${S.value}px` })
781
+ style: we({ gap: `${C.value}px` })
782
782
  }, [
783
- V(I.$slots, "default", {}, void 0, !0)
783
+ V(S.$slots, "default", {}, void 0, !0)
784
784
  ], 6)
785
785
  ], 2),
786
786
  e.showNavigationButtons ? (a(), s("div", {
787
787
  key: 0,
788
788
  class: z([{ "top-1/2 right-5 left-5 z-10 absolute flex justify-between items-center -translate-y-1/2 transform": e.sliderOrientation === "horizontal" }, { "right-0 absolute flex justify-between items-center -translate-y-1/2 transform rotate-90 top-1/2 gap-3": e.sliderOrientation === "vertical" }])
789
789
  }, [
790
- ue(Pe, { name: "fade" }, {
790
+ ue(Le, { name: "fade" }, {
791
791
  default: Ce(() => [
792
792
  l.infinite || t.value > 0 ? (a(), s("div", Lt, [
793
793
  n("div", {
@@ -795,7 +795,7 @@ const ct = xe("SunIcon", [
795
795
  role: "button",
796
796
  "aria-label": "Previous Slide"
797
797
  }, [
798
- V(I.$slots, "prevButton", {}, () => [
798
+ V(S.$slots, "prevButton", {}, () => [
799
799
  $[0] || ($[0] = n("button", {
800
800
  class: "btn btn-circle text-xs",
801
801
  tabindex: "-1"
@@ -807,15 +807,15 @@ const ct = xe("SunIcon", [
807
807
  _: 3
808
808
  }),
809
809
  $[2] || ($[2] = n("div", { class: "flex-grow" }, null, -1)),
810
- ue(Pe, { name: "fade" }, {
810
+ ue(Le, { name: "fade" }, {
811
811
  default: Ce(() => [
812
- l.infinite || t.value < r.value - g.value ? (a(), s("div", jt, [
812
+ l.infinite || t.value < r.value - y.value ? (a(), s("div", Pt, [
813
813
  n("div", {
814
814
  onClick: te,
815
815
  role: "button",
816
816
  "aria-label": "Next Slide"
817
817
  }, [
818
- V(I.$slots, "nextButton", {}, () => [
818
+ V(S.$slots, "nextButton", {}, () => [
819
819
  $[1] || ($[1] = n("button", {
820
820
  class: "btn btn-circle text-xs",
821
821
  tabindex: "-1"
@@ -827,25 +827,25 @@ const ct = xe("SunIcon", [
827
827
  _: 3
828
828
  })
829
829
  ], 2)) : O("", !0),
830
- e.showIndicators ? (a(), s("div", Pt, [
830
+ e.showIndicators ? (a(), s("div", At, [
831
831
  (a(!0), s(U, null, G(r.value, (P, q) => (a(), s("button", {
832
832
  key: `dot-${q}`,
833
833
  onClick: (Z) => p(q),
834
834
  class: z(["btn btn-circle btn-xs", { "btn-active": q === t.value }]),
835
835
  "aria-label": `Go to slide ${q + 1}`
836
- }, null, 10, At))), 128))
836
+ }, null, 10, Rt))), 128))
837
837
  ])) : O("", !0)
838
838
  ]));
839
839
  }
840
- }), ge = (e, d) => {
840
+ }), ye = (e, d) => {
841
841
  const l = e.__vccOpts || e;
842
842
  for (const [t, i] of d)
843
843
  l[t] = i;
844
844
  return l;
845
- }, On = /* @__PURE__ */ ge(Rt, [["__scopeId", "data-v-dd58428c"]]), Nt = /* @__PURE__ */ _({
845
+ }, Dn = /* @__PURE__ */ ye(Nt, [["__scopeId", "data-v-d9ad9601"]]), _t = /* @__PURE__ */ _({
846
846
  __name: "carouselItem",
847
847
  setup(e) {
848
- const d = Ke(_e, h({}));
848
+ const d = Xe(_e, h({}));
849
849
  return (l, t) => (a(), s("div", {
850
850
  class: "w-full h-full carousel-item",
851
851
  style: we(se(d))
@@ -853,25 +853,25 @@ const ct = xe("SunIcon", [
853
853
  V(l.$slots, "default", {}, void 0, !0)
854
854
  ], 4));
855
855
  }
856
- }), Dn = /* @__PURE__ */ ge(Nt, [["__scopeId", "data-v-507384bc"]]), _t = { class: "flex gap-4 bg-base-100 w-full tabs tabs-boxed" }, Ft = ["onClick"], Ht = {
856
+ }), Vn = /* @__PURE__ */ ye(_t, [["__scopeId", "data-v-507384bc"]]), Ft = { class: "flex gap-4 bg-base-100 w-full tabs tabs-boxed" }, Ht = ["onClick"], qt = {
857
857
  key: 0,
858
858
  class: "inline-component-wrapper flex grow justify-center items-center w-full h-full"
859
- }, qt = {
859
+ }, Ut = {
860
860
  key: 1,
861
861
  class: "flex flex-col"
862
- }, Ut = { class: "text-sm" }, Wt = {
862
+ }, Wt = { class: "text-sm" }, Kt = {
863
863
  key: 0,
864
864
  class: "opacity-75 overflow-hidden text-xs truncate ..."
865
- }, Kt = {
865
+ }, Xt = {
866
866
  key: 1,
867
867
  class: "hidden md:block opacity-35 overflow-hidden text-xs truncate ..."
868
- }, Xt = { class: "hidden" }, Yt = ["id"], Gt = { class: "modal-box" }, Jt = { class: "font-bold text-lg" }, Zt = ["name", "checked"], Qt = { class: "collapse-title flex justify-between items-center pr-4 w-full font-medium text-xl" }, el = {
868
+ }, Yt = { class: "hidden" }, Gt = ["id"], Jt = { class: "modal-box" }, Zt = { class: "font-bold text-lg" }, Qt = ["name", "checked"], el = { class: "collapse-title flex justify-between items-center pr-4 w-full font-medium text-xl" }, tl = {
869
869
  key: 0,
870
870
  class: "opacity-75 overflow-hidden text-sm truncate ..."
871
- }, tl = {
871
+ }, ll = {
872
872
  key: 1,
873
873
  class: "opacity-35 text-sm"
874
- }, ll = { class: "collapse-content flex place-content-center p-0" }, nl = /* @__PURE__ */ _({
874
+ }, nl = { class: "collapse-content flex place-content-center p-0" }, al = /* @__PURE__ */ _({
875
875
  __name: "advancedSearch",
876
876
  props: {
877
877
  searchOptions: {},
@@ -881,15 +881,15 @@ const ct = xe("SunIcon", [
881
881
  },
882
882
  emits: ["search", "update:search-data"],
883
883
  setup(e, { emit: d }) {
884
- const l = e, t = d, i = l.id ?? `advancedSearch-${Xe()}`, o = h(null), u = h(null), m = {
885
- datetime: ze(() => Promise.resolve().then(() => bl)),
884
+ const l = e, t = d, i = l.id ?? `advancedSearch-${Ye()}`, o = h(null), u = h(null), m = {
885
+ datetime: ze(() => Promise.resolve().then(() => wl)),
886
886
  "standard-select": ze(() => import("./select-Cz4vf_YE.js")),
887
887
  // Add other components here when you create them:
888
888
  // 'custom-range': defineAsyncComponent(() => import('./CustomRange.vue')),
889
889
  // 'custom-number': defineAsyncComponent(() => import('./CustomNumber.vue')),
890
890
  "custom-text": ze(() => import("./inputField-BxT95oyM.js"))
891
891
  // 'custom-select': defineAsyncComponent(() => import('./CustomSelect.vue')),
892
- }, r = h({}), y = h({
892
+ }, r = h({}), g = h({
893
893
  left: "0px",
894
894
  top: "0px",
895
895
  transform: "translateX(0%)"
@@ -901,16 +901,16 @@ const ct = xe("SunIcon", [
901
901
  case "datetime":
902
902
  if (typeof f.value == "string")
903
903
  try {
904
- const g = new Date(f.value);
905
- if (!isNaN(g.getTime()))
906
- return g.toLocaleString();
904
+ const y = new Date(f.value);
905
+ if (!isNaN(y.getTime()))
906
+ return y.toLocaleString();
907
907
  } catch {
908
908
  }
909
909
  else if (f.range && typeof f.value == "object" && f.value !== null && "start" in f.value && "end" in f.value)
910
910
  try {
911
- const g = new Date(f.value.start), S = new Date(f.value.end);
912
- if (!isNaN(g.getTime()) && !isNaN(S.getTime()))
913
- return `${g.toLocaleDateString()} - ${S.toLocaleDateString()}`;
911
+ const y = new Date(f.value.start), C = new Date(f.value.end);
912
+ if (!isNaN(y.getTime()) && !isNaN(C.getTime()))
913
+ return `${y.toLocaleDateString()} - ${C.toLocaleDateString()}`;
914
914
  } catch {
915
915
  }
916
916
  break;
@@ -925,11 +925,11 @@ const ct = xe("SunIcon", [
925
925
  case "standard-select":
926
926
  case "custom-select":
927
927
  if ((b = f.props) != null && b.options && Array.isArray(f.props.options)) {
928
- const g = f.props.options.find(
929
- (S) => S.value === f.value
928
+ const y = f.props.options.find(
929
+ (C) => C.value === f.value
930
930
  );
931
- if (g)
932
- return g.text;
931
+ if (y)
932
+ return y.text;
933
933
  }
934
934
  return String(f.value);
935
935
  case "custom-text":
@@ -946,13 +946,13 @@ const ct = xe("SunIcon", [
946
946
  console.warn("componentValueUpdated called but no active tab.");
947
947
  return;
948
948
  }
949
- const g = (D = l.searchOptions.find(
949
+ const y = (D = l.searchOptions.find(
950
950
  (x) => (x == null ? void 0 : x.category) === l.currentCategory
951
- )) == null ? void 0 : D.tabs, S = g == null ? void 0 : g.find(
951
+ )) == null ? void 0 : D.tabs, C = y == null ? void 0 : y.find(
952
952
  (x) => x.name === b
953
953
  );
954
- S ? (S.value = f, t("update:search-data", {
955
- tab: S.name,
954
+ C ? (C.value = f, t("update:search-data", {
955
+ tab: C.name,
956
956
  data: f
957
957
  })) : console.error(
958
958
  `Tab with name "${b}" not found in current category.`
@@ -964,10 +964,10 @@ const ct = xe("SunIcon", [
964
964
  function E() {
965
965
  t("search");
966
966
  }
967
- async function C(f) {
968
- var S;
969
- const b = document.getElementById(`advancedSearchMobile-${i}`), g = b && b.contains(f.target);
970
- ((S = o.value) == null ? void 0 : S.displayMode) === "popup" && M.value && !M.value.contains(f.target) && !g && (await me(), o.value = null);
967
+ async function I(f) {
968
+ var C;
969
+ const b = document.getElementById(`advancedSearchMobile-${i}`), y = b && b.contains(f.target);
970
+ ((C = o.value) == null ? void 0 : C.displayMode) === "popup" && M.value && !M.value.contains(f.target) && !y && (await pe(), o.value = null);
971
971
  }
972
972
  async function W() {
973
973
  if (typeof window < "u" && window.innerWidth <= 768) {
@@ -980,19 +980,19 @@ const ct = xe("SunIcon", [
980
980
  }
981
981
  }
982
982
  async function F(f) {
983
- var g, S, v;
983
+ var y, C, v;
984
984
  if (typeof window < "u" && window.innerWidth <= 768) {
985
985
  W();
986
986
  return;
987
987
  }
988
988
  const b = f.displayMode ?? "popup";
989
- if (((g = o.value) == null ? void 0 : g.name) === f.name && ((S = o.value) == null ? void 0 : S.displayMode) === b)
989
+ if (((y = o.value) == null ? void 0 : y.name) === f.name && ((C = o.value) == null ? void 0 : C.displayMode) === b)
990
990
  o.value = null;
991
- else if (o.value = { ...f, displayMode: b }, await me(), ((v = o.value) == null ? void 0 : v.displayMode) === "popup") {
991
+ else if (o.value = { ...f, displayMode: b }, await pe(), ((v = o.value) == null ? void 0 : v.displayMode) === "popup") {
992
992
  const D = r.value[f.name];
993
993
  if (D && M.value) {
994
- const x = D.getBoundingClientRect(), j = M.value.getBoundingClientRect(), A = x.bottom - j.top, te = x.left + x.width / 2 - j.left;
995
- y.value = {
994
+ const x = D.getBoundingClientRect(), L = M.value.getBoundingClientRect(), A = x.bottom - L.top, te = x.left + x.width / 2 - L.left;
995
+ g.value = {
996
996
  left: `${te}px`,
997
997
  top: `${A + 8}px`,
998
998
  // Add a small gap
@@ -1009,8 +1009,8 @@ const ct = xe("SunIcon", [
1009
1009
  const K = (f) => {
1010
1010
  const b = f.relatedTarget;
1011
1011
  setTimeout(() => {
1012
- var g;
1013
- ((g = o.value) == null ? void 0 : g.displayMode) === "inline" && M.value && (!b || !M.value.contains(b)) ? (console.log("Blur detected outside container, closing inline view."), o.value = null) : console.log(
1012
+ var y;
1013
+ ((y = o.value) == null ? void 0 : y.displayMode) === "inline" && M.value && (!b || !M.value.contains(b)) ? (console.log("Blur detected outside container, closing inline view."), o.value = null) : console.log(
1014
1014
  "Blur detected, but staying within container or not an inline tab."
1015
1015
  );
1016
1016
  }, 50);
@@ -1024,7 +1024,7 @@ const ct = xe("SunIcon", [
1024
1024
  f
1025
1025
  ), console.log("advanced-search: activeTab.value:", o.value), f && ((b = o.value) == null ? void 0 : b.displayMode) === "inline" ? (console.log(
1026
1026
  "advanced-search: Inline component ref is available and active tab is inline. Attempting to focus child input..."
1027
- ), me(() => {
1027
+ ), pe(() => {
1028
1028
  console.log(
1029
1029
  "advanced-search: Inside nextTick. Attempting to call child's focus method..."
1030
1030
  ), console.log("advanced-search: Type of newValue:", typeof f), console.log(
@@ -1039,26 +1039,26 @@ const ct = xe("SunIcon", [
1039
1039
  })) : console.log(
1040
1040
  f ? "advanced-search: inlineComponentRef available, but active tab is not inline." : "advanced-search: inlineComponentRef is now null (component likely unmounted)."
1041
1041
  );
1042
- }), he(() => {
1043
- document.addEventListener("click", C), window.addEventListener("resize", le);
1044
- }), Ee(() => {
1045
- document.removeEventListener("click", C), window.removeEventListener("resize", le);
1042
+ }), ge(() => {
1043
+ document.addEventListener("click", I), window.addEventListener("resize", le);
1044
+ }), Ve(() => {
1045
+ document.removeEventListener("click", I), window.removeEventListener("resize", le);
1046
1046
  });
1047
1047
  const le = () => {
1048
1048
  var f, b;
1049
1049
  if (typeof window < "u") {
1050
- const g = window.innerWidth <= 768, S = o.value !== null && (o.value.displayMode === "popup" || o.value.displayMode === "inline") && window.innerWidth > 768;
1051
- !g && (((f = o.value) == null ? void 0 : f.displayMode) === "popup" || ((b = o.value) == null ? void 0 : b.displayMode) === "inline") && window.innerWidth <= 768 && (console.log("Resizing to mobile, closing active tab."), o.value = null), g && !S && o.value !== null && (console.log(
1050
+ const y = window.innerWidth <= 768, C = o.value !== null && (o.value.displayMode === "popup" || o.value.displayMode === "inline") && window.innerWidth > 768;
1051
+ !y && (((f = o.value) == null ? void 0 : f.displayMode) === "popup" || ((b = o.value) == null ? void 0 : b.displayMode) === "inline") && window.innerWidth <= 768 && (console.log("Resizing to mobile, closing active tab."), o.value = null), y && !C && o.value !== null && (console.log(
1052
1052
  "Resizing to desktop from potential mobile active state, closing active tab."
1053
1053
  ), o.value = null);
1054
1054
  const v = document.getElementById(
1055
1055
  `advancedSearchMobile-${i}`
1056
1056
  );
1057
- v != null && v.open && !g && (console.log("Modal is open on desktop, closing modal and active tab."), v.close(), o.value = null);
1057
+ v != null && v.open && !y && (console.log("Modal is open on desktop, closing modal and active tab."), v.close(), o.value = null);
1058
1058
  }
1059
1059
  };
1060
1060
  return (f, b) => {
1061
- var g, S;
1061
+ var y, C;
1062
1062
  return a(), s(U, null, [
1063
1063
  n("div", {
1064
1064
  ref_key: "searchContainer",
@@ -1069,44 +1069,44 @@ const ct = xe("SunIcon", [
1069
1069
  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",
1070
1070
  onClick: W
1071
1071
  }, [
1072
- n("div", _t, [
1073
- (a(!0), s(U, null, G(((g = l.searchOptions.find(
1072
+ n("div", Ft, [
1073
+ (a(!0), s(U, null, G(((y = l.searchOptions.find(
1074
1074
  (v) => v.category === l.currentCategory
1075
- )) == null ? void 0 : g.tabs) || [], (v, D) => {
1076
- var x, j, A, te, de;
1075
+ )) == null ? void 0 : y.tabs) || [], (v, D) => {
1076
+ var x, L, A, te, de;
1077
1077
  return a(), s("button", {
1078
1078
  key: `${v.name}-${D}`,
1079
1079
  onClick: re((p) => F(v), ["stop"]),
1080
1080
  class: z([{
1081
1081
  "tab-active": ((x = o.value) == null ? void 0 : x.name) === v.name,
1082
- "tab-active-inline": ((j = o.value) == null ? void 0 : j.name) === v.name && ((A = o.value) == null ? void 0 : A.displayMode) === "inline"
1082
+ "tab-active-inline": ((L = o.value) == null ? void 0 : L.name) === v.name && ((A = o.value) == null ? void 0 : A.displayMode) === "inline"
1083
1083
  // Add new class
1084
1084
  }, "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"]),
1085
1085
  ref_for: !0,
1086
1086
  ref: (p) => r.value[v.name] = p
1087
1087
  }, [
1088
- ((te = o.value) == null ? void 0 : te.name) === v.name && ((de = o.value) == null ? void 0 : de.displayMode) === "inline" ? (a(), s("div", Ht, [
1088
+ ((te = o.value) == null ? void 0 : te.name) === v.name && ((de = o.value) == null ? void 0 : de.displayMode) === "inline" ? (a(), s("div", qt, [
1089
1089
  (a(), ve(Te(m[o.value.type]), Be({ ref_for: !0 }, o.value.props || {}, {
1090
1090
  modelValue: o.value.value,
1091
1091
  onUpdated: b[0] || (b[0] = (p) => c(p)),
1092
1092
  "onUpdate:modelValue": b[1] || (b[1] = (p) => c(p)),
1093
1093
  onBlur: K,
1094
- onKeydown: pe(re(Q, ["stop", "prevent"]), ["enter"]),
1094
+ onKeydown: he(re(Q, ["stop", "prevent"]), ["enter"]),
1095
1095
  ref_for: !0,
1096
1096
  ref_key: "inlineComponentRef",
1097
1097
  ref: u
1098
1098
  }), null, 16, ["modelValue", "onKeydown"]))
1099
- ])) : (a(), s("div", qt, [
1100
- n("p", Ut, L(v.name), 1),
1101
- v.value !== void 0 && v.value !== null && v.value !== "" ? (a(), s("p", Wt, L(R(v)), 1)) : (a(), s("p", Kt, L(v.description), 1))
1099
+ ])) : (a(), s("div", Ut, [
1100
+ n("p", Wt, j(v.name), 1),
1101
+ v.value !== void 0 && v.value !== null && v.value !== "" ? (a(), s("p", Kt, j(R(v)), 1)) : (a(), s("p", Xt, j(v.description), 1))
1102
1102
  ]))
1103
- ], 10, Ft);
1103
+ ], 10, Ht);
1104
1104
  }), 128))
1105
1105
  ]),
1106
1106
  o.value && o.value.displayMode === "popup" ? (a(), s("div", {
1107
1107
  key: 0,
1108
1108
  class: "absolute flex shadow-sm mt-4 w-fit max-w-full transition-all tab-content",
1109
- style: we(y.value)
1109
+ style: we(g.value)
1110
1110
  }, [
1111
1111
  (a(), ve(Te(m[o.value.type]), Be(o.value.props || {}, {
1112
1112
  modelValue: o.value.value,
@@ -1120,19 +1120,19 @@ const ct = xe("SunIcon", [
1120
1120
  class: "ml-1 btn btn-primary btn-square",
1121
1121
  onClick: re(E, ["stop"])
1122
1122
  }, [
1123
- ue(se(Ae), {
1123
+ ue(se(Pe), {
1124
1124
  size: 24,
1125
1125
  color: "white"
1126
1126
  })
1127
1127
  ])
1128
1128
  ]),
1129
- n("div", Xt, [
1129
+ n("div", Yt, [
1130
1130
  n("button", {
1131
1131
  title: "search",
1132
1132
  onClick: b[4] || (b[4] = () => {
1133
1133
  })
1134
1134
  }, [
1135
- ue(se(Ae), {
1135
+ ue(se(Pe), {
1136
1136
  size: 24,
1137
1137
  color: "white"
1138
1138
  })
@@ -1143,13 +1143,13 @@ const ct = xe("SunIcon", [
1143
1143
  id: `advancedSearchMobile-${se(i)}`,
1144
1144
  class: "modal"
1145
1145
  }, [
1146
- n("div", Gt, [
1146
+ n("div", Jt, [
1147
1147
  V(f.$slots, "additionalForMobile", {}, () => [
1148
- n("h3", Jt, L(e.currentCategory), 1)
1148
+ n("h3", Zt, j(e.currentCategory), 1)
1149
1149
  ], !0),
1150
- (a(!0), s(U, null, G(((S = l.searchOptions.find(
1150
+ (a(!0), s(U, null, G(((C = l.searchOptions.find(
1151
1151
  (v) => v.category === l.currentCategory
1152
- )) == null ? void 0 : S.tabs) || [], (v, D) => (a(), s("div", {
1152
+ )) == null ? void 0 : C.tabs) || [], (v, D) => (a(), s("div", {
1153
1153
  class: "collapse bg-base-200 my-4",
1154
1154
  key: v.name
1155
1155
  }, [
@@ -1157,12 +1157,12 @@ const ct = xe("SunIcon", [
1157
1157
  type: "radio",
1158
1158
  name: `accordion-${se(i)}`,
1159
1159
  checked: D === 0
1160
- }, null, 8, Zt),
1161
- n("div", Qt, [
1162
- n("div", null, L(v.name), 1),
1163
- v.value !== void 0 && v.value !== null && v.value !== "" ? (a(), s("div", el, L(R(v)), 1)) : (a(), s("div", tl, L(v.description), 1))
1160
+ }, null, 8, Qt),
1161
+ n("div", el, [
1162
+ n("div", null, j(v.name), 1),
1163
+ v.value !== void 0 && v.value !== null && v.value !== "" ? (a(), s("div", tl, j(R(v)), 1)) : (a(), s("div", ll, j(v.description), 1))
1164
1164
  ]),
1165
- n("div", ll, [
1165
+ n("div", nl, [
1166
1166
  b[7] || (b[7] = n("br", null, null, -1)),
1167
1167
  (a(), ve(Te(m[v.type]), Be({ ref_for: !0 }, v.props || {}, {
1168
1168
  modelValue: v.value,
@@ -1180,20 +1180,20 @@ const ct = xe("SunIcon", [
1180
1180
  ])
1181
1181
  ])
1182
1182
  ])
1183
- ], 8, Yt)
1183
+ ], 8, Gt)
1184
1184
  ], 64);
1185
1185
  };
1186
1186
  }
1187
- }), Vn = /* @__PURE__ */ ge(nl, [["__scopeId", "data-v-577c3624"]]), al = { 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" }, ol = { key: 0 }, sl = { key: 1 }, il = ["id", "onKeydown"], rl = {
1187
+ }), En = /* @__PURE__ */ ye(al, [["__scopeId", "data-v-577c3624"]]), ol = { 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" }, sl = { key: 0 }, il = { key: 1 }, rl = ["id", "onKeydown"], ul = {
1188
1188
  key: 2,
1189
1189
  class: "flex justify-center p-4"
1190
- }, ul = { 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" }, dl = { class: "join-item" }, cl = ["id", "disabled", "value"], vl = { class: "join-item" }, fl = ["id", "disabled", "value"], ml = {
1190
+ }, dl = { 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" }, cl = { class: "join-item" }, vl = ["id", "disabled", "value"], fl = { class: "join-item" }, ml = ["id", "disabled", "value"], pl = {
1191
1191
  key: 3,
1192
1192
  class: "p-4 min-w-2xs"
1193
- }, pl = ["id", "disabled", "value"], hl = {
1193
+ }, hl = ["id", "disabled", "value"], gl = {
1194
1194
  key: 4,
1195
1195
  class: "flex px-4 my-4 w-full justify-end"
1196
- }, gl = /* @__PURE__ */ _({
1196
+ }, yl = /* @__PURE__ */ _({
1197
1197
  __name: "datetimePicker",
1198
1198
  props: {
1199
1199
  mode: { default: "datetime" },
@@ -1212,7 +1212,7 @@ const ct = xe("SunIcon", [
1212
1212
  },
1213
1213
  emits: ["update:modelValue", "change"],
1214
1214
  setup(e, { emit: d }) {
1215
- const l = typeof window < "u", t = e, i = d, o = h(null), u = h(!1), m = h(null), r = h(null), y = h(null), M = h(null), R = h(null), k = h({
1215
+ const l = typeof window < "u", t = e, i = d, o = h(null), u = h(!1), m = h(null), r = h(null), g = h(null), M = h(null), R = h(null), k = h({
1216
1216
  from: "",
1217
1217
  to: "",
1218
1218
  single: ""
@@ -1220,7 +1220,7 @@ const ct = xe("SunIcon", [
1220
1220
  single: null,
1221
1221
  start: null,
1222
1222
  end: null
1223
- }), E = (p) => p instanceof Date ? p.toISOString() : p, C = (p) => p.split("T")[0] || "", W = (p) => {
1223
+ }), E = (p) => p instanceof Date ? p.toISOString() : p, I = (p) => p.split("T")[0] || "", W = (p) => {
1224
1224
  const w = p instanceof Date ? p : new Date(p);
1225
1225
  if (isNaN(w.getTime())) return "";
1226
1226
  const T = String(w.getHours()).padStart(2, "0"), B = String(w.getMinutes()).padStart(2, "0");
@@ -1235,10 +1235,10 @@ const ct = xe("SunIcon", [
1235
1235
  }
1236
1236
  if (t.range && typeof T == "object" && "start" in T) {
1237
1237
  const B = E(T.start), N = E(T.end);
1238
- c.value.start = C(B), c.value.end = C(N), t.mode !== "date" && (k.value.from = W(B), k.value.to = W(N));
1238
+ c.value.start = I(B), c.value.end = I(N), t.mode !== "date" && (k.value.from = W(B), k.value.to = W(N));
1239
1239
  } else {
1240
1240
  const B = E(T);
1241
- c.value.single = C(B), t.mode !== "date" && (k.value.single = W(B));
1241
+ c.value.single = I(B), t.mode !== "date" && (k.value.single = W(B));
1242
1242
  }
1243
1243
  }
1244
1244
  }, K = ee(() => {
@@ -1252,8 +1252,8 @@ const ct = xe("SunIcon", [
1252
1252
  day: "numeric"
1253
1253
  });
1254
1254
  } catch {
1255
- const [N, J, ae] = B.split("-");
1256
- return `${ae}/${J}/${N}`;
1255
+ const [N, J, ne] = B.split("-");
1256
+ return `${ne}/${J}/${N}`;
1257
1257
  }
1258
1258
  };
1259
1259
  let w = "", T = "";
@@ -1263,9 +1263,9 @@ const ct = xe("SunIcon", [
1263
1263
  return T;
1264
1264
  if (t.mode === "datetime")
1265
1265
  if (t.range) {
1266
- const B = c.value.start, N = c.value.end, J = k.value.from, ae = k.value.to;
1267
- if (B && N && J && ae)
1268
- return `${p(B)} ${J} - ${p(N)} ${ae}`;
1266
+ const B = c.value.start, N = c.value.end, J = k.value.from, ne = k.value.to;
1267
+ if (B && N && J && ne)
1268
+ return `${p(B)} ${J} - ${p(N)} ${ne}`;
1269
1269
  if (B)
1270
1270
  return `${p(B)} ${J || ""}`.trim();
1271
1271
  } else {
@@ -1293,8 +1293,8 @@ const ct = xe("SunIcon", [
1293
1293
  return T && B ? { start: T, end: B } : null;
1294
1294
  if (t.mode === "datetime") {
1295
1295
  if (!T || !B) return null;
1296
- const ae = N ? `${N}:00` : "00:00:00", ce = J ? `${J}:00` : "23:59:59", ye = `${T}T${ae}`, Ie = `${B}T${ce}`;
1297
- return { start: ye, end: Ie };
1296
+ const ne = N ? `${N}:00` : "00:00:00", ce = J ? `${J}:00` : "23:59:59", fe = `${T}T${ne}`, Ie = `${B}T${ce}`;
1297
+ return { start: fe, end: Ie };
1298
1298
  }
1299
1299
  return null;
1300
1300
  }
@@ -1313,11 +1313,11 @@ const ct = xe("SunIcon", [
1313
1313
  Q();
1314
1314
  const p = f();
1315
1315
  i("update:modelValue", p), i("change", p);
1316
- }, g = () => {
1317
- me(() => {
1316
+ }, y = () => {
1317
+ pe(() => {
1318
1318
  b();
1319
1319
  });
1320
- }, S = (p) => {
1320
+ }, C = (p) => {
1321
1321
  const w = p.target;
1322
1322
  t.range ? w === M.value ? k.value.from = w.value : w === R.value && (k.value.to = w.value) : k.value.single = w.value, b();
1323
1323
  }, v = () => {
@@ -1329,7 +1329,7 @@ const ct = xe("SunIcon", [
1329
1329
  const w = o.value, T = p.target, B = `date-picker-${t.id}-popup`;
1330
1330
  w && !w.contains(T) && !p.target.closest(`#${B}`) && D();
1331
1331
  }, 0);
1332
- }, j = () => {
1332
+ }, L = () => {
1333
1333
  D();
1334
1334
  }, A = () => {
1335
1335
  b(), t.popup && (u.value = !1);
@@ -1342,12 +1342,12 @@ const ct = xe("SunIcon", [
1342
1342
  const p = t.range ? r.value : m.value;
1343
1343
  p && typeof p.navigate == "function" && p.navigate(1);
1344
1344
  };
1345
- return he(() => {
1345
+ return ge(() => {
1346
1346
  l && import("./cally-ZU3K2Th7.js").catch((p) => {
1347
1347
  console.warn("Failed to load cally:", p);
1348
1348
  }), F();
1349
1349
  }), H(c, async (p) => {
1350
- if (await me(), m.value && p.single) {
1350
+ if (await pe(), m.value && p.single) {
1351
1351
  const w = p.single;
1352
1352
  m.value.value !== w && (m.value.value = w);
1353
1353
  }
@@ -1357,8 +1357,8 @@ const ct = xe("SunIcon", [
1357
1357
  }
1358
1358
  b();
1359
1359
  }, { immediate: !0, deep: !0 }), H([c, m, r], async () => {
1360
- await me(), m.value && c.value.single && !m.value.value && (m.value.value = c.value.single), r.value && c.value.start && c.value.end && !r.value.value && (r.value.value = `${c.value.start}/${c.value.end}`), b();
1361
- }, { immediate: !0 }), H([y, M, R], () => {
1360
+ await pe(), m.value && c.value.single && !m.value.value && (m.value.value = c.value.single), r.value && c.value.start && c.value.end && !r.value.value && (r.value.value = `${c.value.start}/${c.value.end}`), b();
1361
+ }, { immediate: !0 }), H([g, M, R], () => {
1362
1362
  b();
1363
1363
  }, { immediate: !0 }), (p, w) => {
1364
1364
  const T = Oe("calendar-month"), B = Oe("calendar-date"), N = Oe("calendar-range");
@@ -1373,8 +1373,8 @@ const ct = xe("SunIcon", [
1373
1373
  class: "flex items-center gap-2 cursor-pointer w-full",
1374
1374
  onClick: w[0] || (w[0] = (J) => t.disabled ? null : v())
1375
1375
  }, [
1376
- n("div", al, [
1377
- K.value ? (a(), s("span", sl, L(K.value), 1)) : (a(), s("span", ol, L(t.placeholder), 1))
1376
+ n("div", ol, [
1377
+ K.value ? (a(), s("span", il, j(K.value), 1)) : (a(), s("span", sl, j(t.placeholder), 1))
1378
1378
  ])
1379
1379
  ])) : O("", !0),
1380
1380
  u.value || !t.popup ? (a(), s("div", {
@@ -1382,10 +1382,10 @@ const ct = xe("SunIcon", [
1382
1382
  class: z(["z-50 bg-base-100 rounded-md w-full min-w-xs overflow-hidden", { "absolute top-full left-0 mt-2 shadow-lg": t.popup, "mt-2": !t.popup }]),
1383
1383
  id: `date-picker-${t.id}-popup`,
1384
1384
  onKeydown: [
1385
- w[1] || (w[1] = pe(re(() => {
1385
+ w[1] || (w[1] = he(re(() => {
1386
1386
  }, ["prevent", "stop"]), ["tab"])),
1387
- pe(j, ["esc"]),
1388
- pe(re(A, ["prevent"]), ["enter"])
1387
+ he(L, ["esc"]),
1388
+ he(re(A, ["prevent"]), ["enter"])
1389
1389
  ]
1390
1390
  }, [
1391
1391
  !t.range && t.mode !== "time" && l ? (a(), ve(B, {
@@ -1398,7 +1398,7 @@ const ct = xe("SunIcon", [
1398
1398
  max: t.max,
1399
1399
  disabled: t.disabled,
1400
1400
  "first-day-of-week": t.firstDayOfWeek,
1401
- onChange: g
1401
+ onChange: y
1402
1402
  }, {
1403
1403
  default: Ce(() => [
1404
1404
  n("button", {
@@ -1457,7 +1457,7 @@ const ct = xe("SunIcon", [
1457
1457
  max: t.max,
1458
1458
  disabled: t.disabled,
1459
1459
  "first-day-of-week": t.firstDayOfWeek,
1460
- onChange: g
1460
+ onChange: y
1461
1461
  }, {
1462
1462
  default: Ce(() => [
1463
1463
  n("button", {
@@ -1506,9 +1506,9 @@ const ct = xe("SunIcon", [
1506
1506
  ]),
1507
1507
  _: 1
1508
1508
  }, 8, ["id", "min", "max", "disabled", "first-day-of-week"])) : O("", !0),
1509
- t.range && t.mode !== "date" ? (a(), s("div", rl, [
1510
- n("div", ul, [
1511
- n("div", dl, [
1509
+ t.range && t.mode !== "date" ? (a(), s("div", ul, [
1510
+ n("div", dl, [
1511
+ n("div", cl, [
1512
1512
  n("input", {
1513
1513
  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",
1514
1514
  type: "time",
@@ -1516,10 +1516,10 @@ const ct = xe("SunIcon", [
1516
1516
  ref: M,
1517
1517
  id: `${t.id}-time-from`,
1518
1518
  placeholder: "from",
1519
- onChange: S,
1519
+ onChange: C,
1520
1520
  disabled: t.disabled,
1521
1521
  value: k.value.from || ""
1522
- }, null, 40, cl)
1522
+ }, null, 40, vl)
1523
1523
  ]),
1524
1524
  w[6] || (w[6] = n("svg", {
1525
1525
  class: "join-item",
@@ -1533,46 +1533,46 @@ const ct = xe("SunIcon", [
1533
1533
  }, [
1534
1534
  n("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" })
1535
1535
  ], -1)),
1536
- n("div", vl, [
1536
+ n("div", fl, [
1537
1537
  n("input", {
1538
1538
  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",
1539
1539
  type: "time",
1540
1540
  ref_key: "timeToInput",
1541
1541
  ref: R,
1542
1542
  id: `${t.id}-time-to`,
1543
- onChange: S,
1543
+ onChange: C,
1544
1544
  disabled: t.disabled,
1545
1545
  value: k.value.to || ""
1546
- }, null, 40, fl)
1546
+ }, null, 40, ml)
1547
1547
  ])
1548
1548
  ])
1549
1549
  ])) : O("", !0),
1550
- !t.range && t.mode !== "date" ? (a(), s("div", ml, [
1550
+ !t.range && t.mode !== "date" ? (a(), s("div", pl, [
1551
1551
  n("input", {
1552
1552
  class: "open:bg-primary open:rounded w-full input input-bordered justify-center",
1553
1553
  type: "time",
1554
1554
  ref_key: "timeInput",
1555
- ref: y,
1555
+ ref: g,
1556
1556
  id: `${t.id}-time`,
1557
- onChange: S,
1557
+ onChange: C,
1558
1558
  disabled: t.disabled,
1559
1559
  value: k.value.single || ""
1560
- }, null, 40, pl)
1560
+ }, null, 40, hl)
1561
1561
  ])) : O("", !0),
1562
- t.popup && t.closeText ? (a(), s("div", hl, [
1562
+ t.popup && t.closeText ? (a(), s("div", gl, [
1563
1563
  n("button", {
1564
1564
  class: "btn btn-primary max-lg:w-full",
1565
1565
  onClick: D
1566
- }, L(t.closeText), 1)
1566
+ }, j(t.closeText), 1)
1567
1567
  ])) : O("", !0)
1568
- ], 42, il)) : O("", !0)
1568
+ ], 42, rl)) : O("", !0)
1569
1569
  ], 544);
1570
1570
  };
1571
1571
  }
1572
- }), yl = /* @__PURE__ */ ge(gl, [["__scopeId", "data-v-e0b34494"]]), bl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1572
+ }), bl = /* @__PURE__ */ ye(yl, [["__scopeId", "data-v-e0b34494"]]), wl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1573
1573
  __proto__: null,
1574
- default: yl
1575
- }, Symbol.toStringTag, { value: "Module" })), wl = ["value", "checked", "onChange", "disabled"], En = /* @__PURE__ */ _({
1574
+ default: bl
1575
+ }, Symbol.toStringTag, { value: "Module" })), xl = ["value", "checked", "onChange", "disabled"], jn = /* @__PURE__ */ _({
1576
1576
  __name: "rating",
1577
1577
  props: {
1578
1578
  initialRating: { default: 0 },
@@ -1635,10 +1635,10 @@ const ct = xe("SunIcon", [
1635
1635
  marginRight: e.halfStars && u % 2 === 0 ? `${d.gap}px` : e.halfStars ? "0" : `${d.gap}px`
1636
1636
  }),
1637
1637
  disabled: !e.isInteractive
1638
- }, null, 46, wl))), 128))
1638
+ }, null, 46, xl))), 128))
1639
1639
  ], 2));
1640
1640
  }
1641
- }), xl = { class: "badge" }, kl = ["onClick"], $l = { class: "opacity-75" }, Sl = ["placeholder"], Ln = /* @__PURE__ */ _({
1641
+ }), kl = { class: "badge" }, $l = ["onClick"], Sl = { class: "opacity-75" }, Cl = ["placeholder"], Ln = /* @__PURE__ */ _({
1642
1642
  __name: "taginput",
1643
1643
  props: {
1644
1644
  modelValue: {},
@@ -1648,7 +1648,7 @@ const ct = xe("SunIcon", [
1648
1648
  },
1649
1649
  emits: ["update:modelValue"],
1650
1650
  setup(e, { emit: d }) {
1651
- const l = e, t = d, i = h([...l.modelValue]), o = l.maxTagAmount === void 0 ? -1 : l.maxTagAmount, u = h(null), m = h(""), r = ee(() => o < 0 || i.value.length < o), y = () => {
1651
+ const l = e, t = d, i = h([...l.modelValue]), o = l.maxTagAmount === void 0 ? -1 : l.maxTagAmount, u = h(null), m = h(""), r = ee(() => o < 0 || i.value.length < o), g = () => {
1652
1652
  const c = m.value.trim();
1653
1653
  c && !i.value.includes(c) && (i.value.push(c), t("update:modelValue", i.value), m.value = "");
1654
1654
  }, M = (c) => {
@@ -1656,24 +1656,24 @@ const ct = xe("SunIcon", [
1656
1656
  }, R = () => {
1657
1657
  m.value === "" && (i.value.pop(), t("update:modelValue", i.value));
1658
1658
  }, k = (c) => {
1659
- c.key === "Enter" ? y() : c.key === "Backspace" && m.value === "" && R();
1659
+ c.key === "Enter" ? g() : c.key === "Backspace" && m.value === "" && R();
1660
1660
  };
1661
1661
  return H(() => l.modelValue, (c) => {
1662
1662
  i.value = [...c];
1663
1663
  }), (c, E) => (a(), s("div", {
1664
1664
  class: z(["flex flex-wrap gap-2 bg-base-100 shadow px-4 py-6 border border-base-content/20 rounded", c.$props.class])
1665
1665
  }, [
1666
- (a(!0), s(U, null, G(i.value, (C) => V(c.$slots, "tag", {
1667
- key: C,
1668
- tag: C
1666
+ (a(!0), s(U, null, G(i.value, (I) => V(c.$slots, "tag", {
1667
+ key: I,
1668
+ tag: I
1669
1669
  }, () => [
1670
- n("div", xl, [
1670
+ n("div", kl, [
1671
1671
  n("button", {
1672
1672
  class: "px-1! py-0! h-fit font-bold cursor-pointer",
1673
- onClick: (W) => M(C),
1673
+ onClick: (W) => M(I),
1674
1674
  "aria-label": "Remove tag"
1675
- }, "X", 8, kl),
1676
- n("span", $l, L(C), 1)
1675
+ }, "X", 8, $l),
1676
+ n("span", Sl, j(I), 1)
1677
1677
  ])
1678
1678
  ])), 128)),
1679
1679
  V(c.$slots, "input", { showInput: r.value }, () => [
@@ -1681,27 +1681,27 @@ const ct = xe("SunIcon", [
1681
1681
  key: 0,
1682
1682
  ref_key: "inputRef",
1683
1683
  ref: u,
1684
- "onUpdate:modelValue": E[0] || (E[0] = (C) => m.value = C),
1684
+ "onUpdate:modelValue": E[0] || (E[0] = (I) => m.value = I),
1685
1685
  type: "text",
1686
1686
  placeholder: e.placeholder || "Type here",
1687
1687
  class: "h-full input input-ghost",
1688
1688
  onKeydown: k,
1689
1689
  "aria-label": "Add tags"
1690
- }, null, 40, Sl)), [
1690
+ }, null, 40, Cl)), [
1691
1691
  [Ne, m.value]
1692
1692
  ]) : O("", !0)
1693
1693
  ])
1694
1694
  ], 2));
1695
1695
  }
1696
- }), Cl = { class: "w-full max-w-xs form-control" }, Il = {
1696
+ }), Il = { class: "w-full max-w-xs form-control" }, Ml = {
1697
1697
  key: 0,
1698
1698
  class: "label"
1699
- }, Ml = { class: "label-text" }, zl = ["value"], Tl = {
1699
+ }, zl = { class: "label-text" }, Tl = ["value"], Bl = {
1700
1700
  key: 0,
1701
1701
  value: "",
1702
1702
  disabled: "",
1703
1703
  selected: ""
1704
- }, Bl = ["value"], jn = /* @__PURE__ */ _({
1704
+ }, Ol = ["value"], Pn = /* @__PURE__ */ _({
1705
1705
  __name: "select",
1706
1706
  props: {
1707
1707
  options: {},
@@ -1713,8 +1713,8 @@ const ct = xe("SunIcon", [
1713
1713
  setup(e, { expose: d, emit: l }) {
1714
1714
  console.log(e.placeholder);
1715
1715
  const i = l, o = h(null), u = (r) => {
1716
- const y = r.target;
1717
- i("update:modelValue", y.value);
1716
+ const g = r.target;
1717
+ i("update:modelValue", g.value);
1718
1718
  };
1719
1719
  return d({
1720
1720
  focusInput: () => {
@@ -1723,9 +1723,9 @@ const ct = xe("SunIcon", [
1723
1723
  }
1724
1724
  // You can expose other properties or methods here if needed by the parent
1725
1725
  // e.g., the current value: modelValue
1726
- }), (r, y) => (a(), s("div", Cl, [
1727
- e.label ? (a(), s("label", Il, [
1728
- n("span", Ml, L(e.label), 1)
1726
+ }), (r, g) => (a(), s("div", Il, [
1727
+ e.label ? (a(), s("label", Ml, [
1728
+ n("span", zl, j(e.label), 1)
1729
1729
  ])) : O("", !0),
1730
1730
  n("select", {
1731
1731
  ref_key: "selectElement",
@@ -1734,21 +1734,21 @@ const ct = xe("SunIcon", [
1734
1734
  value: e.modelValue,
1735
1735
  onChange: u
1736
1736
  }, [
1737
- e.placeholder ? (a(), s("option", Tl, L(e.placeholder), 1)) : O("", !0),
1737
+ e.placeholder ? (a(), s("option", Bl, j(e.placeholder), 1)) : O("", !0),
1738
1738
  (a(!0), s(U, null, G(e.options, (M) => (a(), s("option", {
1739
1739
  key: M.value,
1740
1740
  value: M.value
1741
- }, L(M.text), 9, Bl))), 128))
1742
- ], 40, zl)
1741
+ }, j(M.text), 9, Ol))), 128))
1742
+ ], 40, Tl)
1743
1743
  ]));
1744
1744
  }
1745
- }), Ol = {
1745
+ }), Dl = {
1746
1746
  key: 0,
1747
1747
  class: "label"
1748
- }, Dl = { class: "label-text" }, Vl = ["onKeydown", "aria-expanded", "aria-activedescendant"], El = ["placeholder", "disabled"], Ll = {
1748
+ }, Vl = { class: "label-text" }, El = ["onKeydown", "aria-expanded", "aria-activedescendant"], jl = ["placeholder", "disabled"], Ll = {
1749
1749
  class: "top-full z-10 absolute bg-base-100 shadow-lg mt-1 rounded-md w-full dropdown-content",
1750
1750
  role: "listbox"
1751
- }, jl = { class: "flex-nowrap p-0 w-[inherit] max-h-60 overflow-y-auto menu" }, Pl = ["onMousedown", "id", "aria-selected"], Pn = {
1751
+ }, Pl = { class: "flex-nowrap p-0 w-[inherit] max-h-60 overflow-y-auto menu" }, Al = ["onMousedown", "id", "aria-selected"], An = {
1752
1752
  __name: "filterableSelect",
1753
1753
  props: {
1754
1754
  // Array of options: [{ value: any, text: string }, ...]
@@ -1779,62 +1779,62 @@ const ct = xe("SunIcon", [
1779
1779
  },
1780
1780
  emits: ["update:modelValue", "select", "clear"],
1781
1781
  setup(e, { expose: d, emit: l }) {
1782
- const t = e, i = l, o = Ye(), u = ee(() => {
1783
- const D = (o.default ? o.default() : []).filter((x) => x.type !== Ge);
1782
+ const t = e, i = l, o = Ge(), u = ee(() => {
1783
+ const D = (o.default ? o.default() : []).filter((x) => x.type !== Je);
1784
1784
  return console.log("hasDefaultSlotContent computed:", D.length > 0), D.length > 0;
1785
- }), m = h(""), r = h(null), y = h(!1), M = h(null), R = h(null), k = h(null), c = h(null), E = () => {
1786
- y.value = !t.disabled;
1787
- }, C = () => {
1788
- y.value = !1, c.value = null, u.value || (r.value && m.value !== r.value.text ? m.value = r.value.text : r.value || (m.value = ""));
1785
+ }), m = h(""), r = h(null), g = h(!1), M = h(null), R = h(null), k = h(null), c = h(null), E = () => {
1786
+ g.value = !t.disabled;
1787
+ }, I = () => {
1788
+ g.value = !1, c.value = null, u.value || (r.value && m.value !== r.value.text ? m.value = r.value.text : r.value || (m.value = ""));
1789
1789
  }, W = () => {
1790
- y.value ? C() : E();
1790
+ g.value ? I() : E();
1791
1791
  }, F = ee(() => {
1792
1792
  const v = m.value ? m.value.toLowerCase() : "";
1793
- return v === "" && !y.value ? [] : t.options.filter(
1793
+ return v === "" && !g.value ? [] : t.options.filter(
1794
1794
  (x) => x && x.text ? x.text.toLowerCase().includes(v) : ""
1795
1795
  );
1796
1796
  });
1797
1797
  H(
1798
1798
  () => t.modelValue,
1799
1799
  (v, D) => {
1800
- if (v !== D && C(), v == null)
1801
- r.value = null, !y.value && !u.value && (m.value = "");
1800
+ if (v !== D && I(), v == null)
1801
+ r.value = null, !g.value && !u.value && (m.value = "");
1802
1802
  else {
1803
- const x = t.options.find((j) => j.value === v);
1804
- x ? (r.value = x, !y.value && !u.value && (m.value = x.text)) : (r.value = null, !y.value && !u.value && (m.value = ""));
1803
+ const x = t.options.find((L) => L.value === v);
1804
+ x ? (r.value = x, !g.value && !u.value && (m.value = x.text)) : (r.value = null, !g.value && !u.value && (m.value = ""));
1805
1805
  }
1806
1806
  },
1807
1807
  { immediate: !0 }
1808
1808
  // Run immediately on component mount
1809
1809
  );
1810
1810
  const K = (v) => {
1811
- R.value && !R.value.contains(v.target) && C();
1811
+ R.value && !R.value.contains(v.target) && I();
1812
1812
  }, Q = () => {
1813
1813
  setTimeout(() => {
1814
- R.value && !R.value.contains(document.activeElement) && C();
1814
+ R.value && !R.value.contains(document.activeElement) && I();
1815
1815
  }, 100);
1816
1816
  };
1817
- H(y, (v) => {
1817
+ H(g, (v) => {
1818
1818
  v ? setTimeout(() => {
1819
1819
  document.addEventListener("click", K);
1820
1820
  }, 0) : document.removeEventListener("click", K);
1821
- }), Ee(() => {
1822
- document.removeEventListener("click", K), window.removeEventListener("keydown", S);
1821
+ }), Ve(() => {
1822
+ document.removeEventListener("click", K), window.removeEventListener("keydown", C);
1823
1823
  });
1824
1824
  const le = () => {
1825
1825
  if (t.disabled) return;
1826
1826
  const v = r.value;
1827
1827
  i("update:modelValue", null), v && i("clear", v);
1828
1828
  }, f = (v) => {
1829
- r.value = v, u.value || (m.value = v.text), i("update:modelValue", v.value), i("select", v), C();
1829
+ r.value = v, u.value || (m.value = v.text), i("update:modelValue", v.value), i("select", v), I();
1830
1830
  }, b = () => {
1831
1831
  F.value.length > 0 && f(F.value[0]);
1832
- }, g = () => {
1833
- y.value || E();
1834
- }, S = (v) => {
1835
- if (!y.value || F.value.length === 0) return;
1832
+ }, y = () => {
1833
+ g.value || E();
1834
+ }, C = (v) => {
1835
+ if (!g.value || F.value.length === 0) return;
1836
1836
  const D = F.value.findIndex(
1837
- (j, A) => "option-" + A === c.value
1837
+ (L, A) => "option-" + A === c.value
1838
1838
  );
1839
1839
  let x = -1;
1840
1840
  if (v.key === "ArrowDown")
@@ -1843,36 +1843,36 @@ const ct = xe("SunIcon", [
1843
1843
  v.preventDefault(), x = (D - 1 + F.value.length) % F.value.length;
1844
1844
  else if (v.key === "Enter" && c.value) {
1845
1845
  v.preventDefault();
1846
- const j = F.value.find(
1846
+ const L = F.value.find(
1847
1847
  (A, te) => "option-" + te === c.value
1848
1848
  );
1849
- j && f(j);
1849
+ L && f(L);
1850
1850
  return;
1851
1851
  } else if (v.key === "Escape") {
1852
- v.preventDefault(), C(), k.value && k.value.focus();
1852
+ v.preventDefault(), I(), k.value && k.value.focus();
1853
1853
  return;
1854
1854
  } else if (u.value)
1855
1855
  return;
1856
1856
  if (x !== -1) {
1857
1857
  c.value = "option-" + x;
1858
- const j = document.getElementById(c.value);
1859
- j && requestAnimationFrame(() => {
1860
- j.scrollIntoView({ block: "nearest", behavior: "smooth" });
1858
+ const L = document.getElementById(c.value);
1859
+ L && requestAnimationFrame(() => {
1860
+ L.scrollIntoView({ block: "nearest", behavior: "smooth" });
1861
1861
  });
1862
1862
  }
1863
1863
  };
1864
- return H(y, (v) => {
1865
- v ? (window.addEventListener("keydown", S), !u.value && !m.value && r.value && (m.value = r.value.text)) : window.removeEventListener("keydown", S);
1866
- }), Ee(() => {
1867
- document.removeEventListener("click", K), window.removeEventListener("keydown", S);
1864
+ return H(g, (v) => {
1865
+ v ? (window.addEventListener("keydown", C), !u.value && !m.value && r.value && (m.value = r.value.text)) : window.removeEventListener("keydown", C);
1866
+ }), Ve(() => {
1867
+ document.removeEventListener("click", K), window.removeEventListener("keydown", C);
1868
1868
  }), d({
1869
- isDropdownOpen: y,
1869
+ isDropdownOpen: g,
1870
1870
  // Expose state
1871
1871
  selectedItem: r,
1872
1872
  // Expose selected item
1873
1873
  openDropdown: E,
1874
1874
  // Expose method to open
1875
- closeDropdown: C,
1875
+ closeDropdown: I,
1876
1876
  // Expose method to close
1877
1877
  toggleDropdown: W,
1878
1878
  // Expose method to toggle
@@ -1887,8 +1887,8 @@ const ct = xe("SunIcon", [
1887
1887
  ref_key: "componentRoot",
1888
1888
  ref: R
1889
1889
  }, [
1890
- e.label ? (a(), s("label", Ol, [
1891
- n("span", Dl, L(e.label), 1)
1890
+ e.label ? (a(), s("label", Dl, [
1891
+ n("span", Vl, j(e.label), 1)
1892
1892
  ])) : O("", !0),
1893
1893
  n("div", {
1894
1894
  class: z(["flex items-center input-bordered rounded-md w-fit cursor-pointer", { input: !u.value, select: !u.value }]),
@@ -1898,13 +1898,13 @@ const ct = xe("SunIcon", [
1898
1898
  tabindex: "0",
1899
1899
  onClick: D[1] || (D[1] = (x) => u.value ? W() : E()),
1900
1900
  onKeydown: [
1901
- pe(re(b, ["prevent"]), ["enter"]),
1902
- pe(re(b, ["prevent"]), ["space"])
1901
+ he(re(b, ["prevent"]), ["enter"]),
1902
+ he(re(b, ["prevent"]), ["space"])
1903
1903
  ],
1904
1904
  onBlur: Q,
1905
1905
  role: "combobox",
1906
1906
  "aria-haspopup": "listbox",
1907
- "aria-expanded": y.value,
1907
+ "aria-expanded": g.value,
1908
1908
  "aria-activedescendant": c.value,
1909
1909
  "aria-autocomplete": "list",
1910
1910
  ref_key: "activatorWrapper",
@@ -1920,53 +1920,53 @@ const ct = xe("SunIcon", [
1920
1920
  ref_key: "filterInput",
1921
1921
  ref: M,
1922
1922
  onFocus: E,
1923
- onInput: g,
1923
+ onInput: y,
1924
1924
  tabindex: "-1",
1925
1925
  disabled: t.disabled
1926
- }, null, 40, El)), [
1926
+ }, null, 40, jl)), [
1927
1927
  [Ne, m.value]
1928
1928
  ])
1929
1929
  ]),
1930
- r.value && !e.disabled ? (a(), ve(se(ut), {
1930
+ r.value && !e.disabled ? (a(), ve(se(dt), {
1931
1931
  key: 0,
1932
1932
  size: 20,
1933
1933
  class: "mx-2 text-base-content/50 hover:text-base-content/80 cursor-pointer",
1934
1934
  onClick: re(le, ["stop"])
1935
1935
  })) : O("", !0),
1936
- u.value && !r.value ? (a(), ve(se(rt), {
1936
+ u.value && !r.value ? (a(), ve(se(ut), {
1937
1937
  key: 1,
1938
- class: z([{ "rotate-180": y.value }, "mx-2"]),
1938
+ class: z([{ "rotate-180": g.value }, "mx-2"]),
1939
1939
  size: 20
1940
1940
  }, null, 8, ["class"])) : O("", !0)
1941
- ], 46, Vl),
1941
+ ], 46, El),
1942
1942
  Se(n("div", Ll, [
1943
- n("ul", jl, [
1944
- (a(!0), s(U, null, G(F.value, (x, j) => (a(), s("li", {
1943
+ n("ul", Pl, [
1944
+ (a(!0), s(U, null, G(F.value, (x, L) => (a(), s("li", {
1945
1945
  key: x.value,
1946
1946
  onMousedown: re((A) => f(x), ["prevent"]),
1947
1947
  class: "hover:bg-base-200 rounded-md w-full cursor-pointer",
1948
- id: "option-" + j,
1948
+ id: "option-" + L,
1949
1949
  role: "option",
1950
1950
  "aria-selected": r.value && r.value.value === x.value
1951
1951
  }, [
1952
- n("a", null, L(x.text), 1)
1953
- ], 40, Pl))), 128))
1952
+ n("a", null, j(x.text), 1)
1953
+ ], 40, Al))), 128))
1954
1954
  ])
1955
1955
  ], 512), [
1956
- [Je, y.value && F.value.length > 0]
1956
+ [Ze, g.value && F.value.length > 0]
1957
1957
  ])
1958
1958
  ], 512));
1959
1959
  }
1960
- }, Al = { class: "w-full max-w-xs form-control" }, Rl = {
1960
+ }, Rl = { class: "w-full max-w-xs form-control" }, Nl = {
1961
1961
  key: 0,
1962
1962
  class: "label"
1963
- }, Nl = { class: "label-text" }, _l = ["type", "placeholder", "disabled", "value"], Fl = {
1963
+ }, _l = { class: "label-text" }, Fl = ["type", "placeholder", "disabled", "value"], Hl = {
1964
1964
  key: 1,
1965
1965
  class: "label"
1966
- }, Hl = { class: "label-text-alt text-error validator-hint" }, ql = {
1966
+ }, ql = { class: "label-text-alt text-error validator-hint" }, Ul = {
1967
1967
  key: 2,
1968
1968
  class: "label"
1969
- }, Ul = { class: "label-text-alt text-success validator-hint" }, An = /* @__PURE__ */ _({
1969
+ }, Wl = { class: "label-text-alt text-success validator-hint" }, Rn = /* @__PURE__ */ _({
1970
1970
  __name: "inputField",
1971
1971
  props: {
1972
1972
  modelValue: { default: "" },
@@ -1986,9 +1986,9 @@ const ct = xe("SunIcon", [
1986
1986
  const t = e, i = l, o = h(null), u = h(!1), m = h(""), r = ee(() => {
1987
1987
  var W, F, K, Q;
1988
1988
  let c = !0, E = "";
1989
- const C = t.modelValue;
1990
- return (W = t.rules) != null && W.required && (C == null || C === "") && (c = !1, E = "This field is required."), c && ((F = t.rules) == null ? void 0 : F.minLength) !== void 0 && typeof C == "string" && C.length < t.rules.minLength && (c = !1, E = `Must be at least ${t.rules.minLength} characters.`), c && ((K = t.rules) == null ? void 0 : K.maxLength) !== void 0 && typeof C == "string" && C.length > t.rules.maxLength && (c = !1, E = `Cannot exceed ${t.rules.maxLength} characters.`), c && ((Q = t.rules) != null && Q.email) && typeof C == "string" && C && (/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(C) || (c = !1, E = "Please enter a valid email address.")), m.value = E, i("validate", c), c;
1991
- }), y = ee(() => u.value && !r.value), M = (c) => {
1989
+ const I = t.modelValue;
1990
+ return (W = t.rules) != null && W.required && (I == null || I === "") && (c = !1, E = "This field is required."), c && ((F = t.rules) == null ? void 0 : F.minLength) !== void 0 && typeof I == "string" && I.length < t.rules.minLength && (c = !1, E = `Must be at least ${t.rules.minLength} characters.`), c && ((K = t.rules) == null ? void 0 : K.maxLength) !== void 0 && typeof I == "string" && I.length > t.rules.maxLength && (c = !1, E = `Cannot exceed ${t.rules.maxLength} characters.`), c && ((Q = t.rules) != null && Q.email) && typeof I == "string" && I && (/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(I) || (c = !1, E = "Please enter a valid email address.")), m.value = E, i("validate", c), c;
1991
+ }), g = ee(() => u.value && !r.value), M = (c) => {
1992
1992
  const E = c.target;
1993
1993
  i("update:modelValue", E.value), u.value && r.value;
1994
1994
  }, R = () => {
@@ -2007,9 +2007,9 @@ const ct = xe("SunIcon", [
2007
2007
  isValid: r,
2008
2008
  isTouched: u,
2009
2009
  errorMessage: m
2010
- }), (c, E) => (a(), s("div", Al, [
2011
- e.label ? (a(), s("label", Rl, [
2012
- n("span", Nl, L(e.label), 1)
2010
+ }), (c, E) => (a(), s("div", Rl, [
2011
+ e.label ? (a(), s("label", Nl, [
2012
+ n("span", _l, j(e.label), 1)
2013
2013
  ])) : O("", !0),
2014
2014
  V(c.$slots, "default"),
2015
2015
  n("input", {
@@ -2030,33 +2030,33 @@ const ct = xe("SunIcon", [
2030
2030
  "input-ghost": e.style === "ghost",
2031
2031
  // Color classes - Apply only if NOT in an error state AND NOT in a validation success state.
2032
2032
  // This ensures validation feedback overrides base colors.
2033
- "input-neutral": e.color === "neutral" && !y.value && !(r.value && u.value && e.needsValidation),
2034
- "input-primary": e.color === "primary" && !y.value && !(r.value && u.value && e.needsValidation),
2035
- "input-secondary": e.color === "secondary" && !y.value && !(r.value && u.value && e.needsValidation),
2036
- "input-accent": e.color === "accent" && !y.value && !(r.value && u.value && e.needsValidation),
2037
- "input-info": e.color === "info" && !y.value && !(r.value && u.value && e.needsValidation),
2038
- "input-success": e.color === "success" && !y.value && !(r.value && u.value && e.needsValidation),
2033
+ "input-neutral": e.color === "neutral" && !g.value && !(r.value && u.value && e.needsValidation),
2034
+ "input-primary": e.color === "primary" && !g.value && !(r.value && u.value && e.needsValidation),
2035
+ "input-secondary": e.color === "secondary" && !g.value && !(r.value && u.value && e.needsValidation),
2036
+ "input-accent": e.color === "accent" && !g.value && !(r.value && u.value && e.needsValidation),
2037
+ "input-info": e.color === "info" && !g.value && !(r.value && u.value && e.needsValidation),
2038
+ "input-success": e.color === "success" && !g.value && !(r.value && u.value && e.needsValidation),
2039
2039
  // Color success applies only if not in error or validation success state
2040
- "input-warning": e.color === "warning" && !y.value && !(r.value && u.value && e.needsValidation),
2040
+ "input-warning": e.color === "warning" && !g.value && !(r.value && u.value && e.needsValidation),
2041
2041
  // Validation state classes - These take precedence visually via conditions or CSS specificity.
2042
- "input-error": y.value,
2042
+ "input-error": g.value,
2043
2043
  // Apply error style if validation fails
2044
- "input-success-validation": r.value && u.value && !y.value && e.needsValidation
2044
+ "input-success-validation": r.value && u.value && !g.value && e.needsValidation
2045
2045
  // Apply validation success style if valid, touched, not error, AND validation is needed. Using a distinct name 'input-success-validation' is recommended to avoid CSS conflicts with the 'input-success' color class.
2046
2046
  }
2047
2047
  ]]),
2048
2048
  value: e.modelValue,
2049
2049
  onInput: M,
2050
2050
  onBlur: R
2051
- }, null, 42, _l),
2052
- y.value ? (a(), s("div", Fl, [
2053
- n("span", Hl, L(m.value), 1)
2054
- ])) : r.value && u.value && e.successMessage ? (a(), s("div", ql, [
2055
- n("span", Ul, L(e.successMessage), 1)
2051
+ }, null, 42, Fl),
2052
+ g.value ? (a(), s("div", Hl, [
2053
+ n("span", ql, j(m.value), 1)
2054
+ ])) : r.value && u.value && e.successMessage ? (a(), s("div", Ul, [
2055
+ n("span", Wl, j(e.successMessage), 1)
2056
2056
  ])) : O("", !0)
2057
2057
  ]));
2058
2058
  }
2059
- }), Rn = /* @__PURE__ */ _({
2059
+ }), Nn = /* @__PURE__ */ _({
2060
2060
  __name: "loader",
2061
2061
  props: {
2062
2062
  loading: { type: Boolean, default: !0 },
@@ -2098,13 +2098,13 @@ const ct = xe("SunIcon", [
2098
2098
  ]])
2099
2099
  }, null, 2)) : O("", !0);
2100
2100
  }
2101
- }), Wl = { class: "container flex flex-col sm:flex-row" }, Kl = { class: "footer-title" }, Xl = ["href"], Yl = {
2101
+ }), Kl = { class: "container flex flex-col sm:flex-row" }, Xl = { class: "footer-title" }, Yl = ["href"], Gl = {
2102
2102
  key: 0,
2103
2103
  class: "sm:hidden w-full"
2104
- }, Gl = { class: "border-b-2 border-base-100 last:border-b-0 w-full" }, Jl = {
2104
+ }, Jl = { class: "border-b-2 border-base-100 last:border-b-0 w-full" }, Zl = {
2105
2105
  tabindex: "0",
2106
2106
  class: "collapse collapse-plus w-full"
2107
- }, Zl = { class: "collapse-title font-bold text-lg collapsible-footer-title" }, Ql = { class: "collapse-content flex w-full text-sm" }, en = { class: "flex flex-col gap-2.5" }, tn = { class: "w-full" }, ln = ["href"], nn = { class: "sm:w-1/4" }, Nn = /* @__PURE__ */ _({
2107
+ }, Ql = { class: "collapse-title font-bold text-lg collapsible-footer-title" }, en = { class: "collapse-content flex w-full text-sm" }, tn = { class: "flex flex-col gap-2.5" }, ln = { class: "w-full" }, nn = ["href"], an = { class: "sm:w-1/4" }, _n = /* @__PURE__ */ _({
2108
2108
  __name: "footer",
2109
2109
  props: {
2110
2110
  items: {},
@@ -2118,35 +2118,35 @@ const ct = xe("SunIcon", [
2118
2118
  return (l, t) => (a(), s("div", {
2119
2119
  class: z(["mx-auto md:px-10 py-10 text-base-content", [e.background ?? "bg-base-200", e.color ?? "text-base-content"]])
2120
2120
  }, [
2121
- n("footer", Wl, [
2121
+ n("footer", Kl, [
2122
2122
  n("div", {
2123
2123
  class: z(["footer sm:footer-horizontal sm:w-3/4", [{ "sm:grid-rows-1": d.rows === 1 }, { "sm:grid-rows-2": d.rows === 2 }, { "sm:grid-rows-3": d.rows === 3 }]])
2124
2124
  }, [
2125
2125
  (a(!0), s(U, null, G(d.items, (i) => (a(), s("nav", {
2126
2126
  class: z([{ "hidden sm:grid w-max": e.collapseOnMobile }])
2127
2127
  }, [
2128
- n("h6", Kl, L(i.title), 1),
2128
+ n("h6", Xl, j(i.title), 1),
2129
2129
  (a(!0), s(U, null, G(i.items, (o) => (a(), s("a", {
2130
2130
  class: "link link-hover",
2131
2131
  href: o.link
2132
- }, L(o.text), 9, Xl))), 256))
2132
+ }, j(o.text), 9, Yl))), 256))
2133
2133
  ], 2))), 256)),
2134
2134
  n("nav", {
2135
2135
  class: z(["empty:hidden", [{ "hidden sm:grid": e.collapseOnMobile }]])
2136
2136
  }, [
2137
2137
  V(l.$slots, "extra-row")
2138
2138
  ], 2),
2139
- e.collapseOnMobile ? (a(), s("nav", Yl, [
2140
- (a(!0), s(U, null, G(d.items, (i) => (a(), s("ul", Gl, [
2141
- n("div", Jl, [
2142
- n("div", Zl, L(i.title), 1),
2143
- n("div", Ql, [
2144
- n("ul", en, [
2145
- (a(!0), s(U, null, G(i.items, (o) => (a(), s("li", tn, [
2139
+ e.collapseOnMobile ? (a(), s("nav", Gl, [
2140
+ (a(!0), s(U, null, G(d.items, (i) => (a(), s("ul", Jl, [
2141
+ n("div", Zl, [
2142
+ n("div", Ql, j(i.title), 1),
2143
+ n("div", en, [
2144
+ n("ul", tn, [
2145
+ (a(!0), s(U, null, G(i.items, (o) => (a(), s("li", ln, [
2146
2146
  n("a", {
2147
2147
  class: "w-full font-medium link link-hover",
2148
2148
  href: o.link
2149
- }, L(o.text), 9, ln)
2149
+ }, j(o.text), 9, nn)
2150
2150
  ]))), 256))
2151
2151
  ])
2152
2152
  ])
@@ -2154,20 +2154,20 @@ const ct = xe("SunIcon", [
2154
2154
  ]))), 256))
2155
2155
  ])) : O("", !0)
2156
2156
  ], 2),
2157
- n("aside", nn, [
2157
+ n("aside", an, [
2158
2158
  V(l.$slots, "default")
2159
2159
  ])
2160
2160
  ])
2161
2161
  ], 2));
2162
2162
  }
2163
- }), an = {}, on = { class: "min-h-40 container hero" }, sn = { class: "px-0! text-center hero-content" }, rn = { class: "mt-9 text-4xl" };
2164
- function un(e, d) {
2165
- return a(), s("div", on, [
2166
- n("div", sn, [
2163
+ }), on = {}, sn = { class: "min-h-40 container hero" }, rn = { class: "px-0! text-center hero-content" }, un = { class: "mt-9 text-4xl" };
2164
+ function dn(e, d) {
2165
+ return a(), s("div", sn, [
2166
+ n("div", rn, [
2167
2167
  n("div", null, [
2168
- n("h1", rn, [
2168
+ n("h1", un, [
2169
2169
  V(e.$slots, "title", {}, () => [
2170
- d[0] || (d[0] = Re("hero title", -1))
2170
+ d[0] || (d[0] = Ae("hero title", -1))
2171
2171
  ])
2172
2172
  ]),
2173
2173
  n("p", null, [
@@ -2180,7 +2180,7 @@ function un(e, d) {
2180
2180
  ])
2181
2181
  ]);
2182
2182
  }
2183
- const _n = /* @__PURE__ */ ge(an, [["render", un]]), dn = { class: "flex flex-row place-content-center gap-4 categories" }, cn = ["onClick"], Fn = /* @__PURE__ */ _({
2183
+ const Fn = /* @__PURE__ */ ye(on, [["render", dn]]), cn = { class: "flex flex-row place-content-center gap-4 categories" }, vn = ["onClick"], Hn = /* @__PURE__ */ _({
2184
2184
  __name: "categoryNavigation",
2185
2185
  props: {
2186
2186
  searchOptions: {},
@@ -2192,18 +2192,18 @@ const _n = /* @__PURE__ */ ge(an, [["render", un]]), dn = { class: "flex flex-ro
2192
2192
  function i(o) {
2193
2193
  t("update:currentCategory", o);
2194
2194
  }
2195
- return (o, u) => (a(), s("div", dn, [
2195
+ return (o, u) => (a(), s("div", cn, [
2196
2196
  (a(!0), s(U, null, G(l.searchOptions, (m) => (a(), s("div", {
2197
2197
  key: m.category
2198
2198
  }, [
2199
2199
  n("button", {
2200
2200
  onClick: (r) => i(m.category),
2201
2201
  class: z(["truncate btn btn-ghost", { "font-semibold": l.currentCategory === m.category }])
2202
- }, L(m.category), 11, cn)
2202
+ }, j(m.category), 11, vn)
2203
2203
  ]))), 128))
2204
2204
  ]));
2205
2205
  }
2206
- }), vn = { class: "md:flex hidden navbar-start" }, fn = { class: "md:flex justify-center items-center hidden navbar-center" }, mn = { class: "md:flex hidden navbar-end" }, pn = { class: "navbar-bottom md:flex hidden" }, hn = /* @__PURE__ */ _({
2206
+ }), fn = { class: "md:flex hidden navbar-start" }, mn = { class: "md:flex justify-center items-center hidden navbar-center" }, pn = { class: "md:flex hidden navbar-end" }, hn = { class: "navbar-bottom md:flex hidden" }, gn = /* @__PURE__ */ _({
2207
2207
  __name: "navigationBar",
2208
2208
  props: {
2209
2209
  isCollapsed: { type: Boolean, default: !0 }
@@ -2213,28 +2213,28 @@ const _n = /* @__PURE__ */ ge(an, [["render", un]]), dn = { class: "flex flex-ro
2213
2213
  return (l, t) => (a(), s("nav", {
2214
2214
  class: z(["place-items-start border-primary bg-base-100 px-5 py-5 border-b-4 transition-all navbar navigationbar", d.isCollapsed ? "collapsed" : ""])
2215
2215
  }, [
2216
- n("div", vn, [
2216
+ n("div", fn, [
2217
2217
  V(l.$slots, "start", {}, void 0, !0)
2218
2218
  ]),
2219
- n("div", fn, [
2219
+ n("div", mn, [
2220
2220
  V(l.$slots, "center", {}, void 0, !0)
2221
2221
  ]),
2222
- n("div", mn, [
2222
+ n("div", pn, [
2223
2223
  V(l.$slots, "end", {}, void 0, !0)
2224
2224
  ]),
2225
- n("div", pn, [
2225
+ n("div", hn, [
2226
2226
  V(l.$slots, "bottom", {}, void 0, !0)
2227
2227
  ])
2228
2228
  ], 2));
2229
2229
  }
2230
- }), Hn = /* @__PURE__ */ ge(hn, [["__scopeId", "data-v-8ddb2b45"]]), gn = {
2230
+ }), qn = /* @__PURE__ */ ye(gn, [["__scopeId", "data-v-8ddb2b45"]]), yn = {
2231
2231
  key: 0,
2232
2232
  class: "hidden top-4 right-0 absolute md:flex gap-4"
2233
- }, yn = ["onClick", "aria-selected"], bn = {
2233
+ }, bn = ["onClick", "aria-selected"], wn = {
2234
2234
  key: 0,
2235
2235
  role: "tabpanel",
2236
2236
  class: "p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full overflow-x-auto tab-content"
2237
- }, wn = { class: "p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full" }, qn = /* @__PURE__ */ _({
2237
+ }, xn = { class: "p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full" }, Un = /* @__PURE__ */ _({
2238
2238
  __name: "tab",
2239
2239
  props: {
2240
2240
  items: {},
@@ -2249,31 +2249,31 @@ const _n = /* @__PURE__ */ ge(an, [["render", un]]), dn = { class: "flex flex-ro
2249
2249
  t.value = r, i("tab-changed", r);
2250
2250
  }
2251
2251
  function u() {
2252
- const y = (l.items.indexOf(t.value) + 1) % l.items.length;
2253
- o(l.items[y]);
2252
+ const g = (l.items.indexOf(t.value) + 1) % l.items.length;
2253
+ o(l.items[g]);
2254
2254
  }
2255
2255
  function m() {
2256
- const y = (l.items.indexOf(t.value) - 1 + l.items.length) % l.items.length;
2257
- o(l.items[y]);
2256
+ const g = (l.items.indexOf(t.value) - 1 + l.items.length) % l.items.length;
2257
+ o(l.items[g]);
2258
2258
  }
2259
- return he(() => {
2259
+ return ge(() => {
2260
2260
  l.items && o(l.items[0]);
2261
- }), Ve(() => {
2261
+ }), Re(() => {
2262
2262
  l.rotateTabsAfter && l.rotateTabsAfter > 0 && setInterval(() => {
2263
2263
  u();
2264
2264
  }, l.rotateTabsAfter * 1e3);
2265
- }), (r, y) => (a(), s(U, null, [
2265
+ }), (r, g) => (a(), s(U, null, [
2266
2266
  n("div", {
2267
2267
  role: "tablist",
2268
2268
  class: z(["relative tabs-bordered w-full tabs tabs-lg", { "flex-nowrap overflow-x-auto": e.buttonOnlyMode }])
2269
2269
  }, [
2270
- e.withControlls ? (a(), s("div", gn, [
2270
+ e.withControlls ? (a(), s("div", yn, [
2271
2271
  n("button", {
2272
- onClick: y[0] || (y[0] = (M) => m()),
2272
+ onClick: g[0] || (g[0] = (M) => m()),
2273
2273
  class: "cursor-pointer"
2274
2274
  }, "Previous"),
2275
2275
  n("button", {
2276
- onClick: y[1] || (y[1] = (M) => u()),
2276
+ onClick: g[1] || (g[1] = (M) => u()),
2277
2277
  class: "text-primary cursor-pointer"
2278
2278
  }, "Next")
2279
2279
  ])) : O("", !0),
@@ -2284,13 +2284,13 @@ const _n = /* @__PURE__ */ ge(an, [["render", un]]), dn = { class: "flex flex-ro
2284
2284
  class: z(["min-w-max tab", M === t.value ? "bg-primary text-base-100" : ""]),
2285
2285
  onClick: (R) => o(M),
2286
2286
  "aria-selected": t.value == M
2287
- }, L(M), 11, yn),
2288
- e.buttonOnlyMode ? O("", !0) : (a(), s("div", bn, [
2287
+ }, j(M), 11, bn),
2288
+ e.buttonOnlyMode ? O("", !0) : (a(), s("div", wn, [
2289
2289
  V(r.$slots, `${M}-tab`)
2290
2290
  ]))
2291
2291
  ], 64))), 256))
2292
2292
  ], 2),
2293
- n("div", wn, [
2293
+ n("div", xn, [
2294
2294
  V(r.$slots, "default")
2295
2295
  ])
2296
2296
  ], 64));
@@ -2299,28 +2299,28 @@ const _n = /* @__PURE__ */ ge(an, [["render", un]]), dn = { class: "flex flex-ro
2299
2299
  typeof document > "u" && (globalThis.document = {});
2300
2300
  typeof window > "u" && (globalThis.window = globalThis);
2301
2301
  export {
2302
- Mn as Accordion,
2303
- Vn as AdvancedSearch,
2304
- zn as Avatar,
2305
- Tn as Badge,
2306
- kn as ButtonComponent,
2307
- Bn as Card,
2308
- On as Carousel,
2309
- Dn as CarouselItem,
2310
- Fn as CategoryNavigation,
2311
- yl as DatetimePicker,
2312
- $n as Dropdown,
2313
- Pn as FilterableSelect,
2314
- Nn as Footer,
2315
- _n as Hero,
2316
- An as InputField,
2317
- Rn as Loader,
2318
- Sn as Modal,
2319
- Hn as NavigationBar,
2320
- En as Rating,
2321
- jn as Selector,
2322
- Cn as Swap,
2323
- qn as Tab,
2302
+ zn as Accordion,
2303
+ En as AdvancedSearch,
2304
+ Tn as Avatar,
2305
+ Bn as Badge,
2306
+ $n as ButtonComponent,
2307
+ On as Card,
2308
+ Dn as Carousel,
2309
+ Vn as CarouselItem,
2310
+ Hn as CategoryNavigation,
2311
+ bl as DatetimePicker,
2312
+ Sn as Dropdown,
2313
+ An as FilterableSelect,
2314
+ _n as Footer,
2315
+ Fn as Hero,
2316
+ Rn as InputField,
2317
+ Nn as Loader,
2318
+ Cn as Modal,
2319
+ qn as NavigationBar,
2320
+ jn as Rating,
2321
+ Pn as Selector,
2322
+ In as Swap,
2323
+ Un as Tab,
2324
2324
  Ln as TagInput,
2325
- In as ThemeController
2325
+ Mn as ThemeController
2326
2326
  };