manolis-ui 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +10 -3
- package/dist/manolis-ui.js +210 -203
- package/dist/manolis-ui.umd.cjs +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -18,7 +18,11 @@ declare const __VLS_component_11: DefineComponent<Props_16, {}, {}, {}, {}, Comp
|
|
|
18
18
|
"tab-changed": (...args: any[]) => void;
|
|
19
19
|
}, string, PublicProps, Readonly<Props_16> & Readonly<{
|
|
20
20
|
"onTab-changed"?: ((...args: any[]) => any) | undefined;
|
|
21
|
-
}>, {
|
|
21
|
+
}>, {
|
|
22
|
+
withControlls: boolean;
|
|
23
|
+
rotateTabsAfter: number;
|
|
24
|
+
buttonOnlyMode: boolean;
|
|
25
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
22
26
|
|
|
23
27
|
declare const __VLS_component_2: DefineComponent<Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_2> & Readonly<{}>, {
|
|
24
28
|
position: keyof typeof dropdownPosition;
|
|
@@ -95,9 +99,11 @@ declare function __VLS_template_10(): {
|
|
|
95
99
|
|
|
96
100
|
declare function __VLS_template_11(): {
|
|
97
101
|
attrs: Partial<{}>;
|
|
98
|
-
slots: Partial<Record<`${string}-tab`, (_: {}) => any
|
|
102
|
+
slots: Partial<Record<`${string}-tab`, (_: {}) => any>> & {
|
|
103
|
+
default?(_: {}): any;
|
|
104
|
+
};
|
|
99
105
|
refs: {};
|
|
100
|
-
rootEl:
|
|
106
|
+
rootEl: any;
|
|
101
107
|
};
|
|
102
108
|
|
|
103
109
|
declare function __VLS_template_2(): {
|
|
@@ -410,6 +416,7 @@ declare interface Props_16 {
|
|
|
410
416
|
items: Array<string>;
|
|
411
417
|
withControlls?: boolean;
|
|
412
418
|
rotateTabsAfter?: number;
|
|
419
|
+
buttonOnlyMode?: boolean;
|
|
413
420
|
}
|
|
414
421
|
|
|
415
422
|
declare interface Props_2 {
|
package/dist/manolis-ui.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as M, computed as
|
|
1
|
+
import { defineComponent as M, computed as x, createElementBlock as o, openBlock as n, normalizeClass as k, createCommentVNode as S, renderSlot as w, createTextVNode as ne, createElementVNode as t, Fragment as h, renderList as _, toDisplayString as y, ref as $, h as te, onMounted as E, watch as N, withDirectives as U, createVNode as W, isRef as Te, vModelCheckbox as Me, unref as A, defineAsyncComponent as Be, onBeforeUnmount as Oe, normalizeStyle as Ie, createBlock as re, resolveDynamicComponent as ie, mergeProps as ue, nextTick as de, onUnmounted as pe, vModelSelect as R, vModelText as ee } from "vue";
|
|
2
2
|
const Ue = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "loading loading-spinner"
|
|
5
|
-
},
|
|
5
|
+
}, vn = /* @__PURE__ */ M({
|
|
6
6
|
__name: "ButtonComponent",
|
|
7
7
|
props: {
|
|
8
8
|
outlined: { type: Boolean, default: !1 },
|
|
@@ -13,7 +13,7 @@ const Ue = {
|
|
|
13
13
|
shape: {}
|
|
14
14
|
},
|
|
15
15
|
setup(d) {
|
|
16
|
-
const u = d, e =
|
|
16
|
+
const u = d, e = x(() => {
|
|
17
17
|
switch (u.size) {
|
|
18
18
|
case "large":
|
|
19
19
|
return "btn-lg";
|
|
@@ -28,7 +28,7 @@ const Ue = {
|
|
|
28
28
|
default:
|
|
29
29
|
return "";
|
|
30
30
|
}
|
|
31
|
-
}), a =
|
|
31
|
+
}), a = x(() => {
|
|
32
32
|
switch (u.type) {
|
|
33
33
|
case "neutral":
|
|
34
34
|
return "btn-neutral";
|
|
@@ -53,7 +53,7 @@ const Ue = {
|
|
|
53
53
|
default:
|
|
54
54
|
return "btn-neutral";
|
|
55
55
|
}
|
|
56
|
-
}), i =
|
|
56
|
+
}), i = x(() => {
|
|
57
57
|
switch (u.shape) {
|
|
58
58
|
case "square":
|
|
59
59
|
return "btn-square";
|
|
@@ -66,16 +66,16 @@ const Ue = {
|
|
|
66
66
|
return (s, p) => (n(), o("button", {
|
|
67
67
|
class: k(["btn", { "btn-outline": u.outlined }, { "btn-active": u.active }, a.value, e.value, i.value])
|
|
68
68
|
}, [
|
|
69
|
-
s.loading ? (n(), o("span", Ue)) :
|
|
69
|
+
s.loading ? (n(), o("span", Ue)) : S("", !0),
|
|
70
70
|
w(s.$slots, "default", {}, () => [
|
|
71
71
|
p[0] || (p[0] = ne("Submit"))
|
|
72
72
|
])
|
|
73
73
|
], 2));
|
|
74
74
|
}
|
|
75
|
-
}),
|
|
75
|
+
}), Ae = {
|
|
76
76
|
tabindex: "0",
|
|
77
77
|
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"
|
|
78
|
-
},
|
|
78
|
+
}, Ve = ["href"], gn = /* @__PURE__ */ M({
|
|
79
79
|
__name: "dropdown",
|
|
80
80
|
props: {
|
|
81
81
|
items: {},
|
|
@@ -103,17 +103,17 @@ const Ue = {
|
|
|
103
103
|
}, () => [
|
|
104
104
|
s[0] || (s[0] = t("div", { class: "m-1 btn" }, "Open dropdown", -1))
|
|
105
105
|
]),
|
|
106
|
-
t("ul",
|
|
107
|
-
(n(!0), o(
|
|
106
|
+
t("ul", Ae, [
|
|
107
|
+
(n(!0), o(h, null, _(i.items, (p) => (n(), o("li", null, [
|
|
108
108
|
t("a", {
|
|
109
109
|
href: p.link
|
|
110
|
-
},
|
|
110
|
+
}, y(p.text), 9, Ve)
|
|
111
111
|
]))), 256)),
|
|
112
112
|
w(i.$slots, "additional")
|
|
113
113
|
])
|
|
114
114
|
], 2));
|
|
115
115
|
}
|
|
116
|
-
}), Pe = { class: "modal-box" }, Re = { class: "modal-action" },
|
|
116
|
+
}), Pe = { class: "modal-box" }, Re = { class: "modal-action" }, bn = /* @__PURE__ */ M({
|
|
117
117
|
__name: "modal",
|
|
118
118
|
props: {
|
|
119
119
|
position: { default: "center" },
|
|
@@ -131,13 +131,13 @@ const Ue = {
|
|
|
131
131
|
var p;
|
|
132
132
|
(p = a.value) == null || p.close();
|
|
133
133
|
};
|
|
134
|
-
return (p,
|
|
134
|
+
return (p, b) => (n(), o(h, null, [
|
|
135
135
|
t("span", {
|
|
136
136
|
class: "w-fit cursor-pointer",
|
|
137
137
|
onClick: i
|
|
138
138
|
}, [
|
|
139
139
|
w(p.$slots, "trigger", { role: "button" }, () => [
|
|
140
|
-
|
|
140
|
+
b[0] || (b[0] = t("button", { class: "btn" }, "Open", -1))
|
|
141
141
|
])
|
|
142
142
|
]),
|
|
143
143
|
t("dialog", {
|
|
@@ -155,7 +155,7 @@ const Ue = {
|
|
|
155
155
|
class: k(p.withBackdrop ? "modal-backdrop" : "")
|
|
156
156
|
}, [
|
|
157
157
|
w(p.$slots, "close-button", {}, () => [
|
|
158
|
-
|
|
158
|
+
b[1] || (b[1] = t("button", { class: "btn" }, "Close", -1))
|
|
159
159
|
])
|
|
160
160
|
], 34)
|
|
161
161
|
])
|
|
@@ -213,7 +213,7 @@ var J = {
|
|
|
213
213
|
* This source code is licensed under the ISC license.
|
|
214
214
|
* See the LICENSE file in the root directory of this source tree.
|
|
215
215
|
*/
|
|
216
|
-
const Ee = ({ size: d, strokeWidth: u = 2, absoluteStrokeWidth: e, color: a, iconNode: i, name: s, class: p, ...
|
|
216
|
+
const Ee = ({ size: d, strokeWidth: u = 2, absoluteStrokeWidth: e, color: a, iconNode: i, name: s, class: p, ...b }, { slots: f }) => te(
|
|
217
217
|
"svg",
|
|
218
218
|
{
|
|
219
219
|
...J,
|
|
@@ -222,9 +222,9 @@ const Ee = ({ size: d, strokeWidth: u = 2, absoluteStrokeWidth: e, color: a, ico
|
|
|
222
222
|
stroke: a || J.stroke,
|
|
223
223
|
"stroke-width": e ? Number(u) * 24 / Number(d) : u,
|
|
224
224
|
class: ["lucide", `lucide-${Ne(s ?? "icon")}`],
|
|
225
|
-
...
|
|
225
|
+
...b
|
|
226
226
|
},
|
|
227
|
-
[...i.map((m) => te(...m)), ...
|
|
227
|
+
[...i.map((m) => te(...m)), ...f.default ? [f.default()] : []]
|
|
228
228
|
);
|
|
229
229
|
/**
|
|
230
230
|
* @license lucide-vue-next v0.468.0 - ISC
|
|
@@ -286,7 +286,7 @@ const Fe = ae("SunIcon", [
|
|
|
286
286
|
}), N(e, (a) => {
|
|
287
287
|
typeof window < "u" && window.localStorage.setItem(d, JSON.stringify(a));
|
|
288
288
|
}), e;
|
|
289
|
-
}, qe = { class: "swap-rotate swap" }, Ye = ["true-value", "false-value"],
|
|
289
|
+
}, qe = { class: "swap-rotate swap" }, Ye = ["true-value", "false-value"], yn = /* @__PURE__ */ M({
|
|
290
290
|
__name: "theme-controller",
|
|
291
291
|
props: {
|
|
292
292
|
lightTheme: { default: "light" },
|
|
@@ -307,13 +307,13 @@ const Fe = ae("SunIcon", [
|
|
|
307
307
|
"true-value": u.lightTheme,
|
|
308
308
|
"false-value": u.darkTheme
|
|
309
309
|
}, null, 8, Ye), [
|
|
310
|
-
[Me,
|
|
310
|
+
[Me, A(e)]
|
|
311
311
|
]),
|
|
312
|
-
W(
|
|
313
|
-
W(
|
|
312
|
+
W(A(Fe), { class: "swap-off fill-current" }),
|
|
313
|
+
W(A(Le), { class: "swap-on fill-current" })
|
|
314
314
|
]));
|
|
315
315
|
}
|
|
316
|
-
}), Je = ["name"], We = { class: "collapse-title font-bold text-2xl lg:text-4xl" }, Xe = { class: "collapse-content" }, Ze = ["innerHTML"],
|
|
316
|
+
}), Je = ["name"], We = { class: "collapse-title font-bold text-2xl lg:text-4xl" }, Xe = { class: "collapse-content" }, Ze = ["innerHTML"], wn = /* @__PURE__ */ M({
|
|
317
317
|
__name: "accordion",
|
|
318
318
|
props: {
|
|
319
319
|
name: {},
|
|
@@ -323,7 +323,7 @@ const Fe = ae("SunIcon", [
|
|
|
323
323
|
},
|
|
324
324
|
setup(d) {
|
|
325
325
|
const u = d;
|
|
326
|
-
return (e, a) => (n(!0), o(
|
|
326
|
+
return (e, a) => (n(!0), o(h, null, _(u.items, (i, s) => (n(), o("div", {
|
|
327
327
|
class: k(["collapse border border-base-300", [e.icon ? `collapse-${e.icon}` : "", { "join-item": e.joinItems }]]),
|
|
328
328
|
key: s
|
|
329
329
|
}, [
|
|
@@ -332,7 +332,7 @@ const Fe = ae("SunIcon", [
|
|
|
332
332
|
name: e.name,
|
|
333
333
|
value: "true"
|
|
334
334
|
}, null, 8, Je),
|
|
335
|
-
t("div", We,
|
|
335
|
+
t("div", We, y(i.title), 1),
|
|
336
336
|
t("div", Xe, [
|
|
337
337
|
t("span", {
|
|
338
338
|
innerHTML: i.content
|
|
@@ -340,7 +340,7 @@ const Fe = ae("SunIcon", [
|
|
|
340
340
|
])
|
|
341
341
|
], 2))), 128));
|
|
342
342
|
}
|
|
343
|
-
}), Ke = ["src"], Ge = { class: "text-xl" },
|
|
343
|
+
}), Ke = ["src"], Ge = { class: "text-xl" }, kn = /* @__PURE__ */ M({
|
|
344
344
|
__name: "avatar",
|
|
345
345
|
props: {
|
|
346
346
|
image: {},
|
|
@@ -370,11 +370,11 @@ const Fe = ae("SunIcon", [
|
|
|
370
370
|
key: 1,
|
|
371
371
|
class: k(["flex justify-center bg-neutral p-[25%] rounded w-16 text-neutral-content text-center", [{ "rounded-full": a.fullyRounded }, { rounded: !a.fullyRounded }]])
|
|
372
372
|
}, [
|
|
373
|
-
t("p", Ge,
|
|
373
|
+
t("p", Ge, y(a.initials), 1)
|
|
374
374
|
], 2))
|
|
375
375
|
], 2));
|
|
376
376
|
}
|
|
377
|
-
}),
|
|
377
|
+
}), _n = /* @__PURE__ */ M({
|
|
378
378
|
__name: "badge",
|
|
379
379
|
props: {
|
|
380
380
|
color: { default: "neutral" },
|
|
@@ -419,7 +419,7 @@ const Fe = ae("SunIcon", [
|
|
|
419
419
|
}, ot = { class: "flex-col flex-nowrap mt-auto card-actions" }, lt = {
|
|
420
420
|
key: 1,
|
|
421
421
|
class: "card-body"
|
|
422
|
-
},
|
|
422
|
+
}, $n = /* @__PURE__ */ M({
|
|
423
423
|
__name: "card",
|
|
424
424
|
props: {
|
|
425
425
|
imgUrl: { default: "" },
|
|
@@ -448,13 +448,13 @@ const Fe = ae("SunIcon", [
|
|
|
448
448
|
class: k(["rounded-sm w-full h-44 object-cover", {
|
|
449
449
|
hidden: a.loading
|
|
450
450
|
}])
|
|
451
|
-
}, null, 10, Qe)) :
|
|
452
|
-
a.loading && a.imgUrl ? (n(), o("div", et)) :
|
|
451
|
+
}, null, 10, Qe)) : S("", !0),
|
|
452
|
+
a.loading && a.imgUrl ? (n(), o("div", et)) : S("", !0)
|
|
453
453
|
]),
|
|
454
|
-
a.loading ?
|
|
455
|
-
a.title ? (n(), o("h2", nt,
|
|
454
|
+
a.loading ? S("", !0) : (n(), o("div", tt, [
|
|
455
|
+
a.title ? (n(), o("h2", nt, y(a.title), 1)) : S("", !0),
|
|
456
456
|
w(a.$slots, "details"),
|
|
457
|
-
a.description ? (n(), o("p", at,
|
|
457
|
+
a.description ? (n(), o("p", at, y(a.description), 1)) : S("", !0),
|
|
458
458
|
t("div", ot, [
|
|
459
459
|
w(a.$slots, "actions")
|
|
460
460
|
])
|
|
@@ -465,13 +465,13 @@ const Fe = ae("SunIcon", [
|
|
|
465
465
|
t("div", { class: "w-full h-4 skeleton" }),
|
|
466
466
|
t("div", { class: "w-full h-4 skeleton" })
|
|
467
467
|
], -1)
|
|
468
|
-
]))) :
|
|
468
|
+
]))) : S("", !0)
|
|
469
469
|
], 2));
|
|
470
470
|
}
|
|
471
471
|
}), st = { class: "flex gap-4 bg-base-100 w-full tabs tabs-boxed" }, rt = ["onClick"], it = { class: "text-sm" }, ut = { class: "md:block hidden opacity-35 text-xs truncate overflow-hidden ..." }, dt = { class: "hidden" }, ct = {
|
|
472
472
|
id: "advancedSearchMobile",
|
|
473
473
|
class: "modal"
|
|
474
|
-
}, pt = { class: "modal-box" }, mt = { class: "font-bold text-lg" }, ft = ["checked"], vt = { class: "flex justify-between items-center pr-4 w-full font-medium text-xl collapse-title" }, gt = { class: "text-sm" },
|
|
474
|
+
}, pt = { class: "modal-box" }, mt = { class: "font-bold text-lg" }, ft = ["checked"], vt = { class: "flex justify-between items-center pr-4 w-full font-medium text-xl collapse-title" }, gt = { class: "text-sm" }, bt = { class: "flex place-content-center p-0 collapse-content" }, ht = /* @__PURE__ */ M({
|
|
475
475
|
__name: "advancedSearch",
|
|
476
476
|
props: {
|
|
477
477
|
searchOptions: {},
|
|
@@ -481,9 +481,9 @@ const Fe = ae("SunIcon", [
|
|
|
481
481
|
setup(d, { emit: u }) {
|
|
482
482
|
const e = d, a = u, i = $(null), s = {
|
|
483
483
|
datetime: Be(() => Promise.resolve().then(() => Lt))
|
|
484
|
-
}, p = $({}),
|
|
485
|
-
function m(C,
|
|
486
|
-
var B,
|
|
484
|
+
}, p = $({}), b = $({ left: "0px", top: "0px", transform: "translateX(0%)" }), f = $(null);
|
|
485
|
+
function m(C, O) {
|
|
486
|
+
var B, I, g;
|
|
487
487
|
if ((B = i.value) != null && B.name) {
|
|
488
488
|
a("update:search-data", {
|
|
489
489
|
tab: i.value.name,
|
|
@@ -492,18 +492,18 @@ const Fe = ae("SunIcon", [
|
|
|
492
492
|
return;
|
|
493
493
|
}
|
|
494
494
|
if (e.searchOptions) {
|
|
495
|
-
let D = (g = (
|
|
495
|
+
let D = (g = (I = e.searchOptions) == null ? void 0 : I.find((V) => (V == null ? void 0 : V.category) === e.currentCategory)) == null ? void 0 : g.tabs[O];
|
|
496
496
|
D !== void 0 && (D.value = C, a("update:search-data", {
|
|
497
497
|
tab: D == null ? void 0 : D.name,
|
|
498
498
|
data: D == null ? void 0 : D.value
|
|
499
499
|
}));
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function v() {
|
|
503
503
|
a("search");
|
|
504
504
|
}
|
|
505
505
|
async function j(C) {
|
|
506
|
-
|
|
506
|
+
f.value && !f.value.contains(C.target) && (await de(), i.value = null);
|
|
507
507
|
}
|
|
508
508
|
async function Z() {
|
|
509
509
|
if (typeof window < "u" && window.innerWidth <= 768) {
|
|
@@ -514,16 +514,16 @@ const Fe = ae("SunIcon", [
|
|
|
514
514
|
async function K(C) {
|
|
515
515
|
var B;
|
|
516
516
|
i.value = C, await de();
|
|
517
|
-
const
|
|
518
|
-
if (
|
|
519
|
-
const
|
|
520
|
-
window.innerWidth > 768 ?
|
|
521
|
-
left: `${
|
|
522
|
-
top: `${
|
|
517
|
+
const O = p.value[C.name];
|
|
518
|
+
if (O) {
|
|
519
|
+
const I = O.getBoundingClientRect(), g = ((B = f.value) == null ? void 0 : B.getBoundingClientRect()) || { left: 0, top: 0 };
|
|
520
|
+
window.innerWidth > 768 ? b.value = {
|
|
521
|
+
left: `${I.left + I.width / 2 - g.left}px`,
|
|
522
|
+
top: `${I.bottom - g.top}px`,
|
|
523
523
|
transform: "translateX(-50%)"
|
|
524
|
-
} :
|
|
524
|
+
} : b.value = {
|
|
525
525
|
left: "50%",
|
|
526
|
-
top: `${
|
|
526
|
+
top: `${I.bottom - g.top}px`,
|
|
527
527
|
transform: "translateX(-50%)"
|
|
528
528
|
// Center the popup horizontally on mobile
|
|
529
529
|
};
|
|
@@ -532,14 +532,14 @@ const Fe = ae("SunIcon", [
|
|
|
532
532
|
}
|
|
533
533
|
return E(() => {
|
|
534
534
|
document.addEventListener("click", j);
|
|
535
|
-
}),
|
|
535
|
+
}), Oe(() => {
|
|
536
536
|
document.removeEventListener("click", j);
|
|
537
|
-
}), (C,
|
|
538
|
-
var B,
|
|
539
|
-
return n(), o(
|
|
537
|
+
}), (C, O) => {
|
|
538
|
+
var B, I;
|
|
539
|
+
return n(), o(h, null, [
|
|
540
540
|
t("div", {
|
|
541
541
|
ref_key: "searchContainer",
|
|
542
|
-
ref:
|
|
542
|
+
ref: f,
|
|
543
543
|
class: "w-full"
|
|
544
544
|
}, [
|
|
545
545
|
t("div", {
|
|
@@ -547,34 +547,34 @@ const Fe = ae("SunIcon", [
|
|
|
547
547
|
onClick: Z
|
|
548
548
|
}, [
|
|
549
549
|
t("div", st, [
|
|
550
|
-
(n(!0), o(
|
|
550
|
+
(n(!0), o(h, null, _(((B = e.searchOptions.find((g) => g.category === e.currentCategory)) == null ? void 0 : B.tabs) || [], (g) => {
|
|
551
551
|
var D;
|
|
552
552
|
return n(), o("button", {
|
|
553
553
|
key: g.name,
|
|
554
|
-
onClick: (
|
|
554
|
+
onClick: (V) => K(g),
|
|
555
555
|
class: k([{ "tab-active": ((D = i.value) == null ? void 0 : D.name) === g.name }, "group/searchitem relative after:top-0 after:-right-2 after:absolute first-of-type:flex-auto last-of-type:flex-auto md:after:content-[''] last-of-type:after:content-none after:content-none after:bg-base-200 hover:bg-base-200 p-1 rounded-sm w-auto after:w-[1px] after:h-10 text-start overflow-x-hidden pointer-events-none md:pointer-events-auto"]),
|
|
556
556
|
ref_for: !0,
|
|
557
|
-
ref: (
|
|
557
|
+
ref: (V) => p.value[g.name] = V
|
|
558
558
|
}, [
|
|
559
|
-
t("p", it,
|
|
560
|
-
t("p", ut,
|
|
559
|
+
t("p", it, y(g.name), 1),
|
|
560
|
+
t("p", ut, y(g.description), 1)
|
|
561
561
|
], 10, rt);
|
|
562
562
|
}), 128))
|
|
563
563
|
]),
|
|
564
564
|
i.value ? (n(), o("div", {
|
|
565
565
|
key: 0,
|
|
566
566
|
class: "absolute flex shadow-sm mt-4 w-fit max-w-full transition-all tab-content",
|
|
567
|
-
style:
|
|
567
|
+
style: Ie(b.value)
|
|
568
568
|
}, [
|
|
569
569
|
(n(), re(ie(s[i.value.type]), ue(i.value.props ? i.value.props : null, { onUpdated: m }), null, 16))
|
|
570
|
-
], 4)) :
|
|
570
|
+
], 4)) : S("", !0),
|
|
571
571
|
t("button", {
|
|
572
572
|
title: "search",
|
|
573
573
|
type: "submit",
|
|
574
574
|
class: "ml-1 btn btn-primary btn-square",
|
|
575
|
-
onClick:
|
|
575
|
+
onClick: v
|
|
576
576
|
}, [
|
|
577
|
-
W(
|
|
577
|
+
W(A(ce), {
|
|
578
578
|
size: 24,
|
|
579
579
|
color: "white"
|
|
580
580
|
})
|
|
@@ -583,10 +583,10 @@ const Fe = ae("SunIcon", [
|
|
|
583
583
|
t("div", dt, [
|
|
584
584
|
t("button", {
|
|
585
585
|
title: "search",
|
|
586
|
-
onClick:
|
|
586
|
+
onClick: O[0] || (O[0] = () => {
|
|
587
587
|
})
|
|
588
588
|
}, [
|
|
589
|
-
W(
|
|
589
|
+
W(A(ce), {
|
|
590
590
|
size: 24,
|
|
591
591
|
color: "white"
|
|
592
592
|
})
|
|
@@ -596,9 +596,9 @@ const Fe = ae("SunIcon", [
|
|
|
596
596
|
t("dialog", ct, [
|
|
597
597
|
t("div", pt, [
|
|
598
598
|
w(C.$slots, "additionalForMobile", {}, () => [
|
|
599
|
-
t("h3", mt,
|
|
599
|
+
t("h3", mt, y(C.currentCategory), 1)
|
|
600
600
|
], !0),
|
|
601
|
-
(n(!0), o(
|
|
601
|
+
(n(!0), o(h, null, _(((I = e.searchOptions.find((g) => g.category === e.currentCategory)) == null ? void 0 : I.tabs) || [], (g, D) => (n(), o("div", {
|
|
602
602
|
class: "bg-base-200 my-4 collapse",
|
|
603
603
|
key: g.name
|
|
604
604
|
}, [
|
|
@@ -608,13 +608,13 @@ const Fe = ae("SunIcon", [
|
|
|
608
608
|
checked: D === 0
|
|
609
609
|
}, null, 8, ft),
|
|
610
610
|
t("div", vt, [
|
|
611
|
-
ne(
|
|
612
|
-
t("p", gt,
|
|
611
|
+
ne(y(g.name) + " ", 1),
|
|
612
|
+
t("p", gt, y(g.description), 1)
|
|
613
613
|
]),
|
|
614
|
-
t("div",
|
|
615
|
-
|
|
614
|
+
t("div", bt, [
|
|
615
|
+
O[1] || (O[1] = t("br", null, null, -1)),
|
|
616
616
|
(n(), re(ie(s[g.type]), ue({ ref_for: !0 }, g.props || {}, {
|
|
617
|
-
onUpdated: (
|
|
617
|
+
onUpdated: (V) => m(V, D)
|
|
618
618
|
}), null, 16, ["onUpdated"]))
|
|
619
619
|
])
|
|
620
620
|
]))), 128)),
|
|
@@ -622,7 +622,7 @@ const Fe = ae("SunIcon", [
|
|
|
622
622
|
t("form", { method: "dialog" }, [
|
|
623
623
|
t("button", {
|
|
624
624
|
class: "btn btn-primary",
|
|
625
|
-
onClick:
|
|
625
|
+
onClick: v
|
|
626
626
|
}, "Close and Search")
|
|
627
627
|
])
|
|
628
628
|
])
|
|
@@ -636,7 +636,7 @@ const Fe = ae("SunIcon", [
|
|
|
636
636
|
for (const [a, i] of u)
|
|
637
637
|
e[a] = i;
|
|
638
638
|
return e;
|
|
639
|
-
},
|
|
639
|
+
}, Cn = /* @__PURE__ */ X(ht, [["__scopeId", "data-v-08fa37eb"]]), yt = ["placeholder", "value", "id"], wt = ["id"], kt = {
|
|
640
640
|
key: 0,
|
|
641
641
|
class: "flex justify-between items-center place-content-center mb-4"
|
|
642
642
|
}, _t = ["value"], $t = ["value"], Ct = {
|
|
@@ -651,13 +651,13 @@ const Fe = ae("SunIcon", [
|
|
|
651
651
|
}, Tt = { key: 1 }, Mt = {
|
|
652
652
|
key: 1,
|
|
653
653
|
class: "flex gap-4"
|
|
654
|
-
}, Bt = ["value"],
|
|
654
|
+
}, Bt = ["value"], Ot = ["value"], It = {
|
|
655
655
|
key: 2,
|
|
656
656
|
class: "flex flex-col gap-4"
|
|
657
657
|
}, Ut = {
|
|
658
658
|
key: 1,
|
|
659
659
|
class: "flex gap-2"
|
|
660
|
-
},
|
|
660
|
+
}, At = ["value"], Vt = ["value"], Pt = {
|
|
661
661
|
key: 1,
|
|
662
662
|
class: "flex gap-2"
|
|
663
663
|
}, Rt = ["value"], jt = ["value"], zt = { class: "flex gap-2 mt-4" }, Nt = {
|
|
@@ -696,39 +696,39 @@ const Fe = ae("SunIcon", [
|
|
|
696
696
|
N(() => e.range, (r) => {
|
|
697
697
|
r ? (s.value = { start: null, end: null }, p.value = { start: null, end: null }) : (s.value = null, p.value = null);
|
|
698
698
|
});
|
|
699
|
-
const a = u, i = $(!1), s = $(e.range ? { start: null, end: null } : null), p = $(e.range ? { start: null, end: null } : null),
|
|
700
|
-
|
|
701
|
-
const B =
|
|
702
|
-
const r = new Date(
|
|
703
|
-
return Array.from({ length: r }, (c, l) => new Date(
|
|
704
|
-
}),
|
|
699
|
+
const a = u, i = $(!1), s = $(e.range ? { start: null, end: null } : null), p = $(e.range ? { start: null, end: null } : null), b = $((/* @__PURE__ */ new Date()).toLocaleString("default", { month: "long" })), f = $((/* @__PURE__ */ new Date()).getFullYear()), m = $(e.range ? { start: 0, end: 0 } : 0), v = $(e.range ? { start: 0, end: 0 } : 0), j = $(null), Z = x(() => `${e.id}-input`), K = x(() => `${e.id}-popup`), C = x(() => e.mode === "date" || e.mode === "datetime"), O = x(() => e.mode === "time" || e.mode === "datetime");
|
|
700
|
+
x(() => new Date(f.value, B.value));
|
|
701
|
+
const B = x(() => q.indexOf(b.value)), I = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], g = x(() => new Date(f.value, B.value).getDay()), D = x(() => {
|
|
702
|
+
const r = new Date(f.value, B.value + 1, 0).getDate();
|
|
703
|
+
return Array.from({ length: r }, (c, l) => new Date(f.value, B.value, l + 1));
|
|
704
|
+
}), V = x(() => Array.from({ length: g.value }, (r, c) => c)), G = Array.from({ length: 24 }, (r, c) => c), Q = Array.from({ length: 60 }, (r, c) => c), H = x(
|
|
705
705
|
() => typeof navigator < "u" && /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
|
|
706
706
|
navigator.userAgent
|
|
707
707
|
)
|
|
708
|
-
), q = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], me =
|
|
708
|
+
), q = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], me = x(() => {
|
|
709
709
|
const r = (/* @__PURE__ */ new Date()).getFullYear();
|
|
710
710
|
return Array.from({ length: 100 }, (c, l) => r - 50 + l);
|
|
711
|
-
}), fe =
|
|
711
|
+
}), fe = x(() => {
|
|
712
712
|
if (!C.value || !s.value) return "";
|
|
713
713
|
if (e.range && s.value.start && s.value.end) {
|
|
714
714
|
const r = s.value.start.toLocaleDateString("en-US"), c = s.value.end.toLocaleDateString("en-US");
|
|
715
715
|
return `${r} - ${c}`;
|
|
716
716
|
}
|
|
717
717
|
return !e.range && s.value ? s.value.toLocaleDateString("en-US") : "";
|
|
718
|
-
}), L = (r) => r instanceof Date ? r : new Date(r), z = (r) => r instanceof Date && !isNaN(r), ve =
|
|
719
|
-
if (!
|
|
718
|
+
}), L = (r) => r instanceof Date ? r : new Date(r), z = (r) => r instanceof Date && !isNaN(r), ve = x(() => {
|
|
719
|
+
if (!O.value) return "";
|
|
720
720
|
const r = (c) => {
|
|
721
721
|
var Y, F, se;
|
|
722
|
-
const l = ((Y = m.value) == null ? void 0 : Y[c]) ?? m.value, P = ((F =
|
|
722
|
+
const l = ((Y = m.value) == null ? void 0 : Y[c]) ?? m.value, P = ((F = v.value) == null ? void 0 : F[c]) ?? v.value;
|
|
723
723
|
return H.value ? ((se = p.value) == null ? void 0 : se[c]) ?? p.value : `${l.toString().padStart(2, "0")}:${P.toString().padStart(2, "0")}`;
|
|
724
724
|
};
|
|
725
725
|
return e.range ? `${r("start")} - ${r("end")}` : r();
|
|
726
|
-
}), ge =
|
|
726
|
+
}), ge = x(() => {
|
|
727
727
|
const r = fe.value, c = ve.value;
|
|
728
728
|
return `${r} ${c}`.trim();
|
|
729
|
-
}),
|
|
730
|
-
T(),
|
|
731
|
-
},
|
|
729
|
+
}), be = () => i.value = !i.value, oe = () => {
|
|
730
|
+
T(), he();
|
|
731
|
+
}, he = () => i.value = !1, ye = () => {
|
|
732
732
|
s.value = e.range ? { start: null, end: null } : null, p.value = e.range ? { start: null, end: null } : null, T();
|
|
733
733
|
}, we = (r) => {
|
|
734
734
|
e.range ? s.value.start && s.value.end ? s.value = { start: r, end: null } : s.value.start ? s.value.end = r : s.value.start = r : s.value = r, T();
|
|
@@ -744,10 +744,10 @@ const Fe = ae("SunIcon", [
|
|
|
744
744
|
return !1;
|
|
745
745
|
}, xe = () => {
|
|
746
746
|
let r = B.value - 1;
|
|
747
|
-
r < 0 && (r = 11,
|
|
747
|
+
r < 0 && (r = 11, f.value--), b.value = q[r], T();
|
|
748
748
|
}, De = () => {
|
|
749
749
|
let r = B.value + 1;
|
|
750
|
-
r > 11 && (r = 0,
|
|
750
|
+
r > 11 && (r = 0, f.value++), b.value = q[r], T();
|
|
751
751
|
}, le = (r) => {
|
|
752
752
|
j.value && !j.value.contains(r.target) && i.value == !0 && oe();
|
|
753
753
|
}, T = () => {
|
|
@@ -760,22 +760,22 @@ const Fe = ae("SunIcon", [
|
|
|
760
760
|
e.range ? (r.from = c(
|
|
761
761
|
s.value.start,
|
|
762
762
|
m.value.start,
|
|
763
|
-
|
|
763
|
+
v.value.start
|
|
764
764
|
), r.to = c(
|
|
765
765
|
s.value.end,
|
|
766
766
|
m.value.end,
|
|
767
|
-
|
|
767
|
+
v.value.end
|
|
768
768
|
)) : r = c(
|
|
769
769
|
s.value,
|
|
770
770
|
m.value,
|
|
771
|
-
|
|
771
|
+
v.value
|
|
772
772
|
), a("updated", r);
|
|
773
773
|
};
|
|
774
774
|
return E(() => {
|
|
775
775
|
e.initialDate && (e.range && e.initialDate.start && e.initialDate.end ? s.value = {
|
|
776
776
|
start: new Date(e.initialDate.start),
|
|
777
777
|
end: new Date(e.initialDate.end)
|
|
778
|
-
} : e.initialDate.start && (s.value = { start: new Date(e.initialDate.start) })), e.range ? (m.value.start = m.value.start ?? (/* @__PURE__ */ new Date()).getHours(), m.value.end = m.value.end ?? (/* @__PURE__ */ new Date()).getHours(),
|
|
778
|
+
} : e.initialDate.start && (s.value = { start: new Date(e.initialDate.start) })), e.range ? (m.value.start = m.value.start ?? (/* @__PURE__ */ new Date()).getHours(), m.value.end = m.value.end ?? (/* @__PURE__ */ new Date()).getHours(), v.value.start = v.value.start ?? (/* @__PURE__ */ new Date()).getMinutes(), v.value.end = v.value.end ?? (/* @__PURE__ */ new Date()).getMinutes()) : (m.value = m.value ?? (/* @__PURE__ */ new Date()).getHours(), v.value = v.value ?? (/* @__PURE__ */ new Date()).getMinutes());
|
|
779
779
|
}), e.popup && E(() => document.addEventListener("click", le)), pe(() => document.removeEventListener("click", le)), (r, c) => (n(), o("div", {
|
|
780
780
|
class: "inline-block relative w-full lg:w-[360px]",
|
|
781
781
|
ref_key: "pickerContainer",
|
|
@@ -783,7 +783,7 @@ const Fe = ae("SunIcon", [
|
|
|
783
783
|
}, [
|
|
784
784
|
t("div", {
|
|
785
785
|
class: "flex items-center gap-2 cursor-pointer",
|
|
786
|
-
onClick:
|
|
786
|
+
onClick: be
|
|
787
787
|
}, [
|
|
788
788
|
d.popup ? w(r.$slots, "default", { key: 0 }, () => [
|
|
789
789
|
t("input", {
|
|
@@ -795,7 +795,7 @@ const Fe = ae("SunIcon", [
|
|
|
795
795
|
id: Z.value
|
|
796
796
|
}, null, 8, yt),
|
|
797
797
|
c[11] || (c[11] = t("button", { class: "btn btn-ghost" }, " 📅 ", -1))
|
|
798
|
-
], !0) :
|
|
798
|
+
], !0) : S("", !0)
|
|
799
799
|
]),
|
|
800
800
|
i.value || !d.popup ? (n(), o("div", {
|
|
801
801
|
key: 0,
|
|
@@ -824,27 +824,27 @@ const Fe = ae("SunIcon", [
|
|
|
824
824
|
])),
|
|
825
825
|
U(t("select", {
|
|
826
826
|
class: "border-none w-fit select",
|
|
827
|
-
"onUpdate:modelValue": c[0] || (c[0] = (l) =>
|
|
827
|
+
"onUpdate:modelValue": c[0] || (c[0] = (l) => b.value = l),
|
|
828
828
|
onChange: T
|
|
829
829
|
}, [
|
|
830
|
-
(n(), o(
|
|
830
|
+
(n(), o(h, null, _(q, (l, P) => t("option", {
|
|
831
831
|
key: P,
|
|
832
832
|
value: l
|
|
833
|
-
},
|
|
833
|
+
}, y(l), 9, _t)), 64))
|
|
834
834
|
], 544), [
|
|
835
|
-
[R,
|
|
835
|
+
[R, b.value]
|
|
836
836
|
]),
|
|
837
837
|
U(t("select", {
|
|
838
838
|
class: "border-none w-24 select",
|
|
839
|
-
"onUpdate:modelValue": c[1] || (c[1] = (l) =>
|
|
839
|
+
"onUpdate:modelValue": c[1] || (c[1] = (l) => f.value = l),
|
|
840
840
|
onChange: T
|
|
841
841
|
}, [
|
|
842
|
-
(n(!0), o(
|
|
842
|
+
(n(!0), o(h, null, _(me.value, (l) => (n(), o("option", {
|
|
843
843
|
key: l,
|
|
844
844
|
value: l
|
|
845
|
-
},
|
|
845
|
+
}, y(l), 9, $t))), 128))
|
|
846
846
|
], 544), [
|
|
847
|
-
[R,
|
|
847
|
+
[R, f.value]
|
|
848
848
|
]),
|
|
849
849
|
t("button", {
|
|
850
850
|
class: "hidden md:block btn-outline btn btn-primary md:btn-sm",
|
|
@@ -865,17 +865,17 @@ const Fe = ae("SunIcon", [
|
|
|
865
865
|
})
|
|
866
866
|
], -1)
|
|
867
867
|
]))
|
|
868
|
-
])) :
|
|
868
|
+
])) : S("", !0),
|
|
869
869
|
C.value ? (n(), o("div", Ct, [
|
|
870
|
-
(n(), o(
|
|
870
|
+
(n(), o(h, null, _(I, (l) => t("div", {
|
|
871
871
|
key: l,
|
|
872
872
|
class: "text-center"
|
|
873
|
-
},
|
|
874
|
-
(n(!0), o(
|
|
873
|
+
}, y(l), 1)), 64)),
|
|
874
|
+
(n(!0), o(h, null, _(V.value, (l) => (n(), o("div", {
|
|
875
875
|
key: l,
|
|
876
876
|
class: "text-center"
|
|
877
877
|
}))), 128)),
|
|
878
|
-
(n(!0), o(
|
|
878
|
+
(n(!0), o(h, null, _(D.value, (l) => (n(), o("div", {
|
|
879
879
|
key: l,
|
|
880
880
|
class: k(["hover:bg-primary-10 py-1 rounded-full text-center cursor-pointer", {
|
|
881
881
|
"bg-primary text-primary-content": ke(l),
|
|
@@ -885,11 +885,11 @@ const Fe = ae("SunIcon", [
|
|
|
885
885
|
"in-range bg-primary/20 hover:bg-primary/10": Se(l)
|
|
886
886
|
}]),
|
|
887
887
|
onClick: (P) => we(l)
|
|
888
|
-
},
|
|
889
|
-
])) :
|
|
890
|
-
|
|
891
|
-
e.range ?
|
|
892
|
-
e.range ? (n(), o("div",
|
|
888
|
+
}, y(l.getDate()), 11, St))), 128))
|
|
889
|
+
])) : S("", !0),
|
|
890
|
+
O.value ? (n(), o("div", xt, [
|
|
891
|
+
e.range ? S("", !0) : (n(), o("h3", Dt, "Select Time")),
|
|
892
|
+
e.range ? (n(), o("div", It, [
|
|
893
893
|
t("div", null, [
|
|
894
894
|
c[14] || (c[14] = t("p", { class: "font-bold" }, "Start Time", -1)),
|
|
895
895
|
H.value ? U((n(), o("input", {
|
|
@@ -906,10 +906,10 @@ const Fe = ae("SunIcon", [
|
|
|
906
906
|
"onUpdate:modelValue": c[6] || (c[6] = (l) => m.value.start = l),
|
|
907
907
|
onChange: T
|
|
908
908
|
}, [
|
|
909
|
-
(n(!0), o(
|
|
909
|
+
(n(!0), o(h, null, _(A(G), (l) => (n(), o("option", {
|
|
910
910
|
key: l,
|
|
911
911
|
value: l
|
|
912
|
-
},
|
|
912
|
+
}, y(l.toString().padStart(2, "0")), 9, At))), 128))
|
|
913
913
|
], 544), [
|
|
914
914
|
[
|
|
915
915
|
R,
|
|
@@ -920,17 +920,17 @@ const Fe = ae("SunIcon", [
|
|
|
920
920
|
]),
|
|
921
921
|
U(t("select", {
|
|
922
922
|
class: "w-full select-bordered select",
|
|
923
|
-
"onUpdate:modelValue": c[7] || (c[7] = (l) =>
|
|
923
|
+
"onUpdate:modelValue": c[7] || (c[7] = (l) => v.value.start = l),
|
|
924
924
|
onChange: T
|
|
925
925
|
}, [
|
|
926
|
-
(n(!0), o(
|
|
926
|
+
(n(!0), o(h, null, _(A(Q), (l) => (n(), o("option", {
|
|
927
927
|
key: l,
|
|
928
928
|
value: l
|
|
929
|
-
},
|
|
929
|
+
}, y(l.toString().padStart(2, "0")), 9, Vt))), 128))
|
|
930
930
|
], 544), [
|
|
931
931
|
[
|
|
932
932
|
R,
|
|
933
|
-
|
|
933
|
+
v.value.start,
|
|
934
934
|
void 0,
|
|
935
935
|
{ number: !0 }
|
|
936
936
|
]
|
|
@@ -953,10 +953,10 @@ const Fe = ae("SunIcon", [
|
|
|
953
953
|
"onUpdate:modelValue": c[9] || (c[9] = (l) => m.value.end = l),
|
|
954
954
|
onChange: T
|
|
955
955
|
}, [
|
|
956
|
-
(n(!0), o(
|
|
956
|
+
(n(!0), o(h, null, _(A(G), (l) => (n(), o("option", {
|
|
957
957
|
key: l,
|
|
958
958
|
value: l
|
|
959
|
-
},
|
|
959
|
+
}, y(l.toString().padStart(2, "0")), 9, Rt))), 128))
|
|
960
960
|
], 544), [
|
|
961
961
|
[
|
|
962
962
|
R,
|
|
@@ -967,17 +967,17 @@ const Fe = ae("SunIcon", [
|
|
|
967
967
|
]),
|
|
968
968
|
U(t("select", {
|
|
969
969
|
class: "w-full select-bordered select",
|
|
970
|
-
"onUpdate:modelValue": c[10] || (c[10] = (l) =>
|
|
970
|
+
"onUpdate:modelValue": c[10] || (c[10] = (l) => v.value.end = l),
|
|
971
971
|
onChange: T
|
|
972
972
|
}, [
|
|
973
|
-
(n(!0), o(
|
|
973
|
+
(n(!0), o(h, null, _(A(Q), (l) => (n(), o("option", {
|
|
974
974
|
key: l,
|
|
975
975
|
value: l
|
|
976
|
-
},
|
|
976
|
+
}, y(l.toString().padStart(2, "0")), 9, jt))), 128))
|
|
977
977
|
], 544), [
|
|
978
978
|
[
|
|
979
979
|
R,
|
|
980
|
-
|
|
980
|
+
v.value.end,
|
|
981
981
|
void 0,
|
|
982
982
|
{ number: !0 }
|
|
983
983
|
]
|
|
@@ -999,10 +999,10 @@ const Fe = ae("SunIcon", [
|
|
|
999
999
|
"onUpdate:modelValue": c[3] || (c[3] = (l) => m.value = l),
|
|
1000
1000
|
onChange: T
|
|
1001
1001
|
}, [
|
|
1002
|
-
(n(!0), o(
|
|
1002
|
+
(n(!0), o(h, null, _(A(G), (l) => (n(), o("option", {
|
|
1003
1003
|
key: l,
|
|
1004
1004
|
value: l
|
|
1005
|
-
},
|
|
1005
|
+
}, y(l.toString().padStart(2, "0")), 9, Bt))), 128))
|
|
1006
1006
|
], 544), [
|
|
1007
1007
|
[
|
|
1008
1008
|
R,
|
|
@@ -1013,24 +1013,24 @@ const Fe = ae("SunIcon", [
|
|
|
1013
1013
|
]),
|
|
1014
1014
|
U(t("select", {
|
|
1015
1015
|
class: "w-full select-bordered select",
|
|
1016
|
-
"onUpdate:modelValue": c[4] || (c[4] = (l) =>
|
|
1016
|
+
"onUpdate:modelValue": c[4] || (c[4] = (l) => v.value = l),
|
|
1017
1017
|
onChange: T
|
|
1018
1018
|
}, [
|
|
1019
|
-
(n(!0), o(
|
|
1019
|
+
(n(!0), o(h, null, _(A(Q), (l) => (n(), o("option", {
|
|
1020
1020
|
key: l,
|
|
1021
1021
|
value: l
|
|
1022
|
-
},
|
|
1022
|
+
}, y(l.toString().padStart(2, "0")), 9, Ot))), 128))
|
|
1023
1023
|
], 544), [
|
|
1024
1024
|
[
|
|
1025
1025
|
R,
|
|
1026
|
-
|
|
1026
|
+
v.value,
|
|
1027
1027
|
void 0,
|
|
1028
1028
|
{ number: !0 }
|
|
1029
1029
|
]
|
|
1030
1030
|
])
|
|
1031
1031
|
]))
|
|
1032
1032
|
]))
|
|
1033
|
-
])) :
|
|
1033
|
+
])) : S("", !0),
|
|
1034
1034
|
t("div", zt, [
|
|
1035
1035
|
t("button", {
|
|
1036
1036
|
class: k(["btn btn-secondary", d.popup ? "w-fit" : "w-full"]),
|
|
@@ -1040,15 +1040,15 @@ const Fe = ae("SunIcon", [
|
|
|
1040
1040
|
key: 0,
|
|
1041
1041
|
class: "btn btn-primary btn-wide",
|
|
1042
1042
|
onClick: oe
|
|
1043
|
-
}, "Close")) :
|
|
1043
|
+
}, "Close")) : S("", !0)
|
|
1044
1044
|
])
|
|
1045
|
-
], 10, wt)) :
|
|
1045
|
+
], 10, wt)) : S("", !0)
|
|
1046
1046
|
], 512));
|
|
1047
1047
|
}
|
|
1048
1048
|
}, Et = /* @__PURE__ */ X(Nt, [["__scopeId", "data-v-cb781ab6"]]), Lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1049
1049
|
__proto__: null,
|
|
1050
1050
|
default: Et
|
|
1051
|
-
}, Symbol.toStringTag, { value: "Module" })), Ft = ["value", "checked", "onChange", "disabled"],
|
|
1051
|
+
}, Symbol.toStringTag, { value: "Module" })), Ft = ["value", "checked", "onChange", "disabled"], Sn = /* @__PURE__ */ M({
|
|
1052
1052
|
__name: "rating",
|
|
1053
1053
|
props: {
|
|
1054
1054
|
initialRating: { default: 0 },
|
|
@@ -1074,12 +1074,12 @@ const Fe = ae("SunIcon", [
|
|
|
1074
1074
|
{ "rating-half": i.halfStars }
|
|
1075
1075
|
]])
|
|
1076
1076
|
}, [
|
|
1077
|
-
(n(!0), o(
|
|
1077
|
+
(n(!0), o(h, null, _(i.numberOfStars * (i.halfStars ? 2 : 1), (p) => (n(), o("input", {
|
|
1078
1078
|
key: p,
|
|
1079
1079
|
type: "radio",
|
|
1080
1080
|
value: i.halfStars ? p * 0.5 : p,
|
|
1081
1081
|
checked: e.value === (i.halfStars ? p * 0.5 : p),
|
|
1082
|
-
onChange: (
|
|
1082
|
+
onChange: (b) => i.isInteractive ? a(i.halfStars ? p * 0.5 : p) : null,
|
|
1083
1083
|
class: k(["mask mask-star", {
|
|
1084
1084
|
"bg-yellow-400": e.value >= (i.halfStars ? p * 0.5 : p),
|
|
1085
1085
|
"mask-half-1": i.halfStars && p % 2 !== 0,
|
|
@@ -1094,7 +1094,7 @@ const Fe = ae("SunIcon", [
|
|
|
1094
1094
|
}), Ht = {
|
|
1095
1095
|
key: 0,
|
|
1096
1096
|
class: "loading loading-spinner loading-md mx-auto"
|
|
1097
|
-
},
|
|
1097
|
+
}, xn = /* @__PURE__ */ M({
|
|
1098
1098
|
__name: "loader",
|
|
1099
1099
|
props: {
|
|
1100
1100
|
loading: { type: Boolean, default: !0 }
|
|
@@ -1106,9 +1106,9 @@ const Fe = ae("SunIcon", [
|
|
|
1106
1106
|
(a) => {
|
|
1107
1107
|
e.value = a;
|
|
1108
1108
|
}
|
|
1109
|
-
), (a, i) => e.value ? (n(), o("span", Ht)) :
|
|
1109
|
+
), (a, i) => e.value ? (n(), o("span", Ht)) : S("", !0);
|
|
1110
1110
|
}
|
|
1111
|
-
}), qt = { class: "bg-base-200 mx-auto md:px-10 py-10 text-base-content" }, Yt = { class: "footer sm:footer-horizontal container" }, Jt = { class: "footer-title" }, Wt = ["href"], Xt = { class: "ml-auto" },
|
|
1111
|
+
}), qt = { class: "bg-base-200 mx-auto md:px-10 py-10 text-base-content" }, Yt = { class: "footer sm:footer-horizontal container" }, Jt = { class: "footer-title" }, Wt = ["href"], Xt = { class: "ml-auto" }, Dn = /* @__PURE__ */ M({
|
|
1112
1112
|
__name: "footer",
|
|
1113
1113
|
props: {
|
|
1114
1114
|
items: {}
|
|
@@ -1117,12 +1117,12 @@ const Fe = ae("SunIcon", [
|
|
|
1117
1117
|
const u = d;
|
|
1118
1118
|
return (e, a) => (n(), o("div", qt, [
|
|
1119
1119
|
t("footer", Yt, [
|
|
1120
|
-
(n(!0), o(
|
|
1121
|
-
t("h6", Jt,
|
|
1122
|
-
(n(!0), o(
|
|
1120
|
+
(n(!0), o(h, null, _(u.items, (i) => (n(), o("nav", null, [
|
|
1121
|
+
t("h6", Jt, y(i.title), 1),
|
|
1122
|
+
(n(!0), o(h, null, _(i.items, (s) => (n(), o("a", {
|
|
1123
1123
|
class: "link link-hover",
|
|
1124
1124
|
href: s.link
|
|
1125
|
-
},
|
|
1125
|
+
}, y(s.text), 9, Wt))), 256))
|
|
1126
1126
|
]))), 256)),
|
|
1127
1127
|
t("aside", Xt, [
|
|
1128
1128
|
w(e.$slots, "default")
|
|
@@ -1150,7 +1150,7 @@ function en(d, u) {
|
|
|
1150
1150
|
])
|
|
1151
1151
|
]);
|
|
1152
1152
|
}
|
|
1153
|
-
const
|
|
1153
|
+
const Tn = /* @__PURE__ */ X(Zt, [["render", en]]), tn = { class: "categories flex flex-row gap-4 place-content-center" }, nn = ["onClick"], Mn = /* @__PURE__ */ M({
|
|
1154
1154
|
__name: "categoryNavigation",
|
|
1155
1155
|
props: {
|
|
1156
1156
|
searchOptions: {},
|
|
@@ -1163,13 +1163,13 @@ const Dn = /* @__PURE__ */ X(Zt, [["render", en]]), tn = { class: "categories fl
|
|
|
1163
1163
|
a("update:currentCategory", s);
|
|
1164
1164
|
}
|
|
1165
1165
|
return (s, p) => (n(), o("div", tn, [
|
|
1166
|
-
(n(!0), o(
|
|
1167
|
-
key:
|
|
1166
|
+
(n(!0), o(h, null, _(e.searchOptions, (b) => (n(), o("div", {
|
|
1167
|
+
key: b.category
|
|
1168
1168
|
}, [
|
|
1169
1169
|
t("button", {
|
|
1170
|
-
onClick: (
|
|
1171
|
-
class: k(["truncate", { "font-semibold": e.currentCategory ===
|
|
1172
|
-
}, b
|
|
1170
|
+
onClick: (f) => i(b.category),
|
|
1171
|
+
class: k(["truncate", { "font-semibold": e.currentCategory === b.category }])
|
|
1172
|
+
}, y(b.category), 11, nn)
|
|
1173
1173
|
]))), 128))
|
|
1174
1174
|
]));
|
|
1175
1175
|
}
|
|
@@ -1197,85 +1197,92 @@ const Dn = /* @__PURE__ */ X(Zt, [["render", en]]), tn = { class: "categories fl
|
|
|
1197
1197
|
])
|
|
1198
1198
|
], 2));
|
|
1199
1199
|
}
|
|
1200
|
-
}),
|
|
1200
|
+
}), Bn = /* @__PURE__ */ X(rn, [["__scopeId", "data-v-8ddb2b45"]]), un = {
|
|
1201
1201
|
role: "tablist",
|
|
1202
1202
|
class: "relative tabs-bordered w-full tabs tabs-lg"
|
|
1203
1203
|
}, dn = {
|
|
1204
1204
|
key: 0,
|
|
1205
1205
|
class: "hidden top-4 right-0 absolute md:flex gap-4"
|
|
1206
1206
|
}, cn = ["onClick", "aria-selected"], pn = {
|
|
1207
|
+
key: 0,
|
|
1207
1208
|
role: "tabpanel",
|
|
1208
1209
|
class: "p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full overflow-x-auto tab-content"
|
|
1209
|
-
},
|
|
1210
|
+
}, mn = { class: "p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full overflow-x-auto tab-content" }, On = /* @__PURE__ */ M({
|
|
1210
1211
|
__name: "tab",
|
|
1211
1212
|
props: {
|
|
1212
1213
|
items: {},
|
|
1213
|
-
withControlls: { type: Boolean },
|
|
1214
|
-
rotateTabsAfter: {}
|
|
1214
|
+
withControlls: { type: Boolean, default: !1 },
|
|
1215
|
+
rotateTabsAfter: { default: 0 },
|
|
1216
|
+
buttonOnlyMode: { type: Boolean, default: !1 }
|
|
1215
1217
|
},
|
|
1216
1218
|
emits: ["tab-changed"],
|
|
1217
1219
|
setup(d, { emit: u }) {
|
|
1218
1220
|
const e = d, a = $(e.items[0]), i = u;
|
|
1219
|
-
function s(
|
|
1220
|
-
a.value =
|
|
1221
|
+
function s(f) {
|
|
1222
|
+
a.value = f, i("tab-changed", f);
|
|
1221
1223
|
}
|
|
1222
1224
|
function p() {
|
|
1223
1225
|
const m = (e.items.indexOf(a.value) + 1) % e.items.length;
|
|
1224
1226
|
s(e.items[m]);
|
|
1225
1227
|
}
|
|
1226
|
-
function
|
|
1228
|
+
function b() {
|
|
1227
1229
|
const m = (e.items.indexOf(a.value) - 1 + e.items.length) % e.items.length;
|
|
1228
1230
|
s(e.items[m]);
|
|
1229
1231
|
}
|
|
1230
1232
|
return E(() => {
|
|
1231
1233
|
e.items && s(e.items[0]);
|
|
1232
1234
|
}), pe(() => {
|
|
1233
|
-
e.rotateTabsAfter && setInterval(() => {
|
|
1235
|
+
e.rotateTabsAfter && e.rotateTabsAfter > 0 && setInterval(() => {
|
|
1234
1236
|
p();
|
|
1235
1237
|
}, e.rotateTabsAfter * 1e3);
|
|
1236
|
-
}), (
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1238
|
+
}), (f, m) => (n(), o(h, null, [
|
|
1239
|
+
t("div", un, [
|
|
1240
|
+
f.withControlls ? (n(), o("div", dn, [
|
|
1241
|
+
t("button", {
|
|
1242
|
+
onClick: m[0] || (m[0] = (v) => b()),
|
|
1243
|
+
class: "cursor-pointer"
|
|
1244
|
+
}, "Previous"),
|
|
1245
|
+
t("button", {
|
|
1246
|
+
onClick: m[1] || (m[1] = (v) => p()),
|
|
1247
|
+
class: "text-primary cursor-pointer"
|
|
1248
|
+
}, "Next")
|
|
1249
|
+
])) : S("", !0),
|
|
1250
|
+
(n(!0), o(h, null, _(f.items, (v) => (n(), o(h, null, [
|
|
1251
|
+
t("a", {
|
|
1252
|
+
type: "button",
|
|
1253
|
+
role: "tab",
|
|
1254
|
+
class: k(["min-w-max tab", v === a.value ? "bg-primary text-base-100" : ""]),
|
|
1255
|
+
onClick: (j) => s(v),
|
|
1256
|
+
"aria-selected": a.value == v
|
|
1257
|
+
}, y(v), 11, cn),
|
|
1258
|
+
f.buttonOnlyMode ? S("", !0) : (n(), o("div", pn, [
|
|
1259
|
+
w(f.$slots, `${v}-tab`)
|
|
1260
|
+
]))
|
|
1261
|
+
], 64))), 256))
|
|
1262
|
+
]),
|
|
1263
|
+
t("div", mn, [
|
|
1264
|
+
w(f.$slots, "default")
|
|
1265
|
+
])
|
|
1266
|
+
], 64));
|
|
1260
1267
|
}
|
|
1261
1268
|
});
|
|
1262
1269
|
export {
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
+
wn as Accordion,
|
|
1271
|
+
Cn as AdvancedSearch,
|
|
1272
|
+
kn as Avatar,
|
|
1273
|
+
_n as Badge,
|
|
1274
|
+
vn as ButtonComponent,
|
|
1275
|
+
$n as Card,
|
|
1276
|
+
Mn as CategoryNavigation,
|
|
1270
1277
|
Et as DatetimePicker,
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
+
gn as Dropdown,
|
|
1279
|
+
Dn as Footer,
|
|
1280
|
+
Tn as Hero,
|
|
1281
|
+
xn as Loader,
|
|
1282
|
+
bn as Modal,
|
|
1283
|
+
Bn as NavigationBar,
|
|
1284
|
+
Sn as Rating,
|
|
1278
1285
|
hn as Swap,
|
|
1279
|
-
|
|
1280
|
-
|
|
1286
|
+
On as Tab,
|
|
1287
|
+
yn as ThemeController
|
|
1281
1288
|
};
|
package/dist/manolis-ui.umd.cjs
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*
|
|
14
14
|
* This source code is licensed under the ISC license.
|
|
15
15
|
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/const ne=({size:c,strokeWidth:s=2,absoluteStrokeWidth:t,color:n,iconNode:r,name:l,class:d,...k},{slots:
|
|
16
|
+
*/const ne=({size:c,strokeWidth:s=2,absoluteStrokeWidth:t,color:n,iconNode:r,name:l,class:d,...k},{slots:p})=>e.h("svg",{...D,width:c||D.width,height:c||D.height,stroke:n||D.stroke,"stroke-width":t?Number(s)*24/Number(c):s,class:["lucide",`lucide-${te(l??"icon")}`],...k},[...r.map(m=>e.h(...m)),...p.default?[p.default()]:[]]);/**
|
|
17
17
|
* @license lucide-vue-next v0.468.0 - ISC
|
|
18
18
|
*
|
|
19
19
|
* This source code is licensed under the ISC license.
|
|
@@ -33,4 +33,4 @@
|
|
|
33
33
|
*
|
|
34
34
|
* This source code is licensed under the ISC license.
|
|
35
35
|
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/const le=L("SunIcon",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),ae=(c,s)=>{const t=e.ref(null);return e.onMounted(()=>{if(typeof window<"u"){const n=window.localStorage.getItem(c);t.value=n?JSON.parse(n):s}}),e.watch(t,n=>{typeof window<"u"&&window.localStorage.setItem(c,JSON.stringify(n))}),t},re={class:"swap-rotate swap"},se=["true-value","false-value"],ce=e.defineComponent({__name:"theme-controller",props:{lightTheme:{default:"light"},darkTheme:{default:"dark"}},setup(c){const s=c,t=ae("theme",s.lightTheme);function n(r){typeof window<"u"&&window.document&&document.documentElement.setAttribute("data-theme",r)}return e.onMounted(()=>n(t.value?t.value:"")),e.watch(t,r=>{n(r)}),(r,l)=>(e.openBlock(),e.createElementBlock("label",re,[e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:"theme-controller","onUpdate:modelValue":l[0]||(l[0]=d=>e.isRef(t)?t.value=d:null),"true-value":s.lightTheme,"false-value":s.darkTheme},null,8,se),[[e.vModelCheckbox,e.unref(t)]]),e.createVNode(e.unref(le),{class:"swap-off fill-current"}),e.createVNode(e.unref(oe),{class:"swap-on fill-current"})]))}}),ie=["name"],de={class:"collapse-title font-bold text-2xl lg:text-4xl"},me={class:"collapse-content"},pe=["innerHTML"],fe=e.defineComponent({__name:"accordion",props:{name:{},items:{},joinItems:{type:Boolean,default:!1},icon:{}},setup(c){const s=c;return(t,n)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.items,(r,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["collapse border border-base-300",[t.icon?`collapse-${t.icon}`:"",{"join-item":t.joinItems}]]),key:l},[e.createElementVNode("input",{type:"radio",name:t.name,value:"true"},null,8,ie),e.createElementVNode("div",de,e.toDisplayString(r.title),1),e.createElementVNode("div",me,[e.createElementVNode("span",{innerHTML:r.content},null,8,pe)])],2))),128))}}),ue=["src"],ge={class:"text-xl"},ke=e.defineComponent({__name:"avatar",props:{image:{},onlineStatus:{default:"none"},initials:{},fullyRounded:{type:Boolean,default:!1}},setup(c){const s=c,t=e.ref(s.onlineStatus);return e.watch(()=>s.onlineStatus,n=>{n&&(t.value=n)}),(n,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["avatar",[{"avatar-online":t.value==="online"},{"avatar-offline":t.value==="offline"}]])},[n.image?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["rounded",[{"rounded-full":n.fullyRounded},{rounded:!n.fullyRounded}]])},[e.createElementVNode("img",{src:n.image,class:"w-full h-full"},null,8,ue)],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["flex justify-center bg-neutral p-[25%] rounded w-16 text-neutral-content text-center",[{"rounded-full":n.fullyRounded},{rounded:!n.fullyRounded}]])},[e.createElementVNode("p",ge,e.toDisplayString(n.initials),1)],2))],2))}}),he=e.defineComponent({__name:"badge",props:{color:{default:"neutral"},outline:{type:Boolean,default:!1},size:{default:"medium"}},setup(c){const s=c,t={"extra small":"badge-xs",small:"badge-sm",medium:"badge-md",large:"badge-lg"},n={neutral:"badge-neutral",primary:"badge-primary",secondary:"badge-secondary",accent:"badge-accent",ghost:"badge-ghost",info:"badge-info",success:"badge-success",warning:"badge-warning",error:"badge-error"};return(r,l)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["badge",t[s.size],n[s.color],{"badge-outline":s.outline}])},[e.renderSlot(r.$slots,"default")],2))}}),be=["src","alt"],ye={key:1,class:"w-full h-32 skeleton"},Be={key:0,class:"card-body"},we={key:0,class:"group-hover:text-primary text-left text-lg cursor-pointer card-title"},Ee={key:1,class:"text-left"},_e={class:"flex-col flex-nowrap mt-auto card-actions"},Ce={key:1,class:"card-body"},Se=e.defineComponent({__name:"card",props:{imgUrl:{default:""},alt:{default:"A beautiful picture that says something about this card"},title:{default:""},description:{default:""},outlined:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},class:{default:""}},setup(c){const s=c,t=e.ref(s.outlined);return e.watch(()=>s.outlined,n=>{t.value=n}),(n,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["bg-base-100 shadow-xl rounded-sm min-w-64 max-w-full h-full card card-compact group",t.value?"border-4 border-primary":""])},[e.createElementVNode("figure",null,[n.imgUrl||n.imgUrl&&!n.loading?(e.openBlock(),e.createElementBlock("img",{key:0,src:n.imgUrl,alt:n.alt,class:e.normalizeClass(["rounded-sm w-full h-44 object-cover",{hidden:n.loading}])},null,10,be)):e.createCommentVNode("",!0),n.loading&&n.imgUrl?(e.openBlock(),e.createElementBlock("div",ye)):e.createCommentVNode("",!0)]),n.loading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Be,[n.title?(e.openBlock(),e.createElementBlock("h2",we,e.toDisplayString(n.title),1)):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"details"),n.description?(e.openBlock(),e.createElementBlock("p",Ee,e.toDisplayString(n.description),1)):e.createCommentVNode("",!0),e.createElementVNode("div",_e,[e.renderSlot(n.$slots,"actions")])])),n.loading?(e.openBlock(),e.createElementBlock("div",Ce,r[0]||(r[0]=[e.createElementVNode("div",{class:"flex flex-col gap-4 w-52"},[e.createElementVNode("div",{class:"w-28 h-4 skeleton"}),e.createElementVNode("div",{class:"w-full h-4 skeleton"}),e.createElementVNode("div",{class:"w-full h-4 skeleton"})],-1)]))):e.createCommentVNode("",!0)],2))}}),Ve={class:"flex gap-4 bg-base-100 w-full tabs tabs-boxed"},Ne=["onClick"],$e={class:"text-sm"},De={class:"md:block hidden opacity-35 text-xs truncate overflow-hidden ..."},xe={class:"hidden"},Me={id:"advancedSearchMobile",class:"modal"},Te={class:"modal-box"},ze={class:"font-bold text-lg"},Le=["checked"],Fe={class:"flex justify-between items-center pr-4 w-full font-medium text-xl collapse-title"},Oe={class:"text-sm"},Ie={class:"flex place-content-center p-0 collapse-content"},Ue=e.defineComponent({__name:"advancedSearch",props:{searchOptions:{},currentCategory:{}},emits:["search","update:search-data"],setup(c,{emit:s}){const t=c,n=s,r=e.ref(null),l={datetime:e.defineAsyncComponent(()=>Promise.resolve().then(()=>st))},d=e.ref({}),k=e.ref({left:"0px",top:"0px",transform:"translateX(0%)"}),f=e.ref(null);function m(h,w){var B,E,u;if((B=r.value)!=null&&B.name){n("update:search-data",{tab:r.value.name,data:h});return}if(t.searchOptions){let b=(u=(E=t.searchOptions)==null?void 0:E.find(_=>(_==null?void 0:_.category)===t.currentCategory))==null?void 0:u.tabs[w];b!==void 0&&(b.value=h,n("update:search-data",{tab:b==null?void 0:b.name,data:b==null?void 0:b.value}))}}function p(){n("search")}async function S(h){f.value&&!f.value.contains(h.target)&&(await e.nextTick(),r.value=null)}async function F(){if(typeof window<"u"&&window.innerWidth<=768){const h=document.getElementById("advancedSearchMobile");h?h.showModal():console.warn("Modal element not found.")}}async function O(h){var B;r.value=h,await e.nextTick();const w=d.value[h.name];if(w){const E=w.getBoundingClientRect(),u=((B=f.value)==null?void 0:B.getBoundingClientRect())||{left:0,top:0};window.innerWidth>768?k.value={left:`${E.left+E.width/2-u.left}px`,top:`${E.bottom-u.top}px`,transform:"translateX(-50%)"}:k.value={left:"50%",top:`${E.bottom-u.top}px`,transform:"translateX(-50%)"}}else console.error("Tab element not found for:",h.name)}return e.onMounted(()=>{document.addEventListener("click",S)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",S)}),(h,w)=>{var B,E;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{ref_key:"searchContainer",ref:f,class:"w-full"},[e.createElementVNode("div",{class:"group/search relative flex place-items-center border-2 shadow-md p-2 border-base-300/25 rounded-sm w-full transition-all cursor-pointer md:cursor-auto",onClick:F},[e.createElementVNode("div",Ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((B=t.searchOptions.find(u=>u.category===t.currentCategory))==null?void 0:B.tabs)||[],u=>{var b;return e.openBlock(),e.createElementBlock("button",{key:u.name,onClick:_=>O(u),class:e.normalizeClass([{"tab-active":((b=r.value)==null?void 0:b.name)===u.name},"group/searchitem relative after:top-0 after:-right-2 after:absolute first-of-type:flex-auto last-of-type:flex-auto md:after:content-[''] last-of-type:after:content-none after:content-none after:bg-base-200 hover:bg-base-200 p-1 rounded-sm w-auto after:w-[1px] after:h-10 text-start overflow-x-hidden pointer-events-none md:pointer-events-auto"]),ref_for:!0,ref:_=>d.value[u.name]=_},[e.createElementVNode("p",$e,e.toDisplayString(u.name),1),e.createElementVNode("p",De,e.toDisplayString(u.description),1)],10,Ne)}),128))]),r.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"absolute flex shadow-sm mt-4 w-fit max-w-full transition-all tab-content",style:e.normalizeStyle(k.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l[r.value.type]),e.mergeProps(r.value.props?r.value.props:null,{onUpdated:m}),null,16))],4)):e.createCommentVNode("",!0),e.createElementVNode("button",{title:"search",type:"submit",class:"ml-1 btn btn-primary btn-square",onClick:p},[e.createVNode(e.unref(A),{size:24,color:"white"})])]),e.createElementVNode("div",xe,[e.createElementVNode("button",{title:"search",onClick:w[0]||(w[0]=()=>{})},[e.createVNode(e.unref(A),{size:24,color:"white"})])])],512),e.createElementVNode("dialog",Me,[e.createElementVNode("div",Te,[e.renderSlot(h.$slots,"additionalForMobile",{},()=>[e.createElementVNode("h3",ze,e.toDisplayString(h.currentCategory),1)],!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((E=t.searchOptions.find(u=>u.category===t.currentCategory))==null?void 0:E.tabs)||[],(u,b)=>(e.openBlock(),e.createElementBlock("div",{class:"bg-base-200 my-4 collapse",key:u.name},[e.createElementVNode("input",{type:"radio",name:"my-accordion-1",checked:b===0},null,8,Le),e.createElementVNode("div",Fe,[e.createTextVNode(e.toDisplayString(u.name)+" ",1),e.createElementVNode("p",Oe,e.toDisplayString(u.description),1)]),e.createElementVNode("div",Ie,[w[1]||(w[1]=e.createElementVNode("br",null,null,-1)),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l[u.type]),e.mergeProps({ref_for:!0},u.props||{},{onUpdated:_=>m(_,b)}),null,16,["onUpdated"]))])]))),128)),e.createElementVNode("div",{class:"modal-action"},[e.createElementVNode("form",{method:"dialog"},[e.createElementVNode("button",{class:"btn btn-primary",onClick:p},"Close and Search")])])])])],64)}}}),x=(c,s)=>{const t=c.__vccOpts||c;for(const[n,r]of s)t[n]=r;return t},Ae=x(Ue,[["__scopeId","data-v-08fa37eb"]]),Pe=["placeholder","value","id"],je=["id"],Re={key:0,class:"flex justify-between items-center place-content-center mb-4"},He=["value"],qe=["value"],Ye={key:1,class:"gap-2 grid grid-cols-7"},Je=["onClick"],We={key:2,class:"mt-4 lg:w-80"},Xe={key:0,class:"mb-2 font-bold text-lg"},Ze={key:1},Ke={key:1,class:"flex gap-4"},Ge=["value"],Qe=["value"],ve={key:2,class:"flex flex-col gap-4"},et={key:1,class:"flex gap-2"},tt=["value"],nt=["value"],ot={key:1,class:"flex gap-2"},lt=["value"],at=["value"],rt={class:"flex gap-2 mt-4"},P=x({__name:"datetimePicker",props:{mode:{type:String,default:"datetime",validator:c=>["datetime","date","time"].includes(c)},range:{type:Boolean,default:!1},placeholder:{type:String,default:"Select date and time"},popup:{type:Boolean,default:!1},id:{type:String,default:"datetimepicker"},initialDate:{type:Object,default:()=>null}},emits:["updated"],setup(c,{emit:s}){const t=c;e.watch(()=>t.range,a=>{a?(l.value={start:null,end:null},d.value={start:null,end:null}):(l.value=null,d.value=null)});const n=s,r=e.ref(!1),l=e.ref(t.range?{start:null,end:null}:null),d=e.ref(t.range?{start:null,end:null}:null),k=e.ref(new Date().toLocaleString("default",{month:"long"})),f=e.ref(new Date().getFullYear()),m=e.ref(t.range?{start:0,end:0}:0),p=e.ref(t.range?{start:0,end:0}:0),S=e.ref(null),F=e.computed(()=>`${t.id}-input`),O=e.computed(()=>`${t.id}-popup`),h=e.computed(()=>t.mode==="date"||t.mode==="datetime"),w=e.computed(()=>t.mode==="time"||t.mode==="datetime");e.computed(()=>new Date(f.value,B.value));const B=e.computed(()=>T.indexOf(k.value)),E=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],u=e.computed(()=>new Date(f.value,B.value).getDay()),b=e.computed(()=>{const a=new Date(f.value,B.value+1,0).getDate();return Array.from({length:a},(i,o)=>new Date(f.value,B.value,o+1))}),_=e.computed(()=>Array.from({length:u.value},(a,i)=>i)),I=Array.from({length:24},(a,i)=>i),U=Array.from({length:60},(a,i)=>i),M=e.computed(()=>typeof navigator<"u"&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)),T=["January","February","March","April","May","June","July","August","September","October","November","December"],It=e.computed(()=>{const a=new Date().getFullYear();return Array.from({length:100},(i,o)=>a-50+o)}),Ut=e.computed(()=>{if(!h.value||!l.value)return"";if(t.range&&l.value.start&&l.value.end){const a=l.value.start.toLocaleDateString("en-US"),i=l.value.end.toLocaleDateString("en-US");return`${a} - ${i}`}return!t.range&&l.value?l.value.toLocaleDateString("en-US"):""}),N=a=>a instanceof Date?a:new Date(a),V=a=>a instanceof Date&&!isNaN(a),At=e.computed(()=>{if(!w.value)return"";const a=i=>{var z,$,H;const o=((z=m.value)==null?void 0:z[i])??m.value,C=(($=p.value)==null?void 0:$[i])??p.value;return M.value?((H=d.value)==null?void 0:H[i])??d.value:`${o.toString().padStart(2,"0")}:${C.toString().padStart(2,"0")}`};return t.range?`${a("start")} - ${a("end")}`:a()}),Pt=e.computed(()=>{const a=Ut.value,i=At.value;return`${a} ${i}`.trim()}),jt=()=>r.value=!r.value,j=()=>{y(),Rt()},Rt=()=>r.value=!1,Ht=()=>{l.value=t.range?{start:null,end:null}:null,d.value=t.range?{start:null,end:null}:null,y()},qt=a=>{t.range?l.value.start&&l.value.end?l.value={start:a,end:null}:l.value.start?l.value.end=a:l.value.start=a:l.value=a,y()},Yt=a=>(a=N(a),t.range?l.value.start&&V(l.value.start)&&a.getTime()===l.value.start.getTime()||l.value.end&&V(l.value.end)&&a.getTime()===l.value.end.getTime():V(l.value)&&a.getTime()===l.value.getTime()),Jt=a=>{a=N(a);const i=new Date;return a.getDate()===i.getDate()&&a.getMonth()===i.getMonth()&&a.getFullYear()===i.getFullYear()},Wt=a=>(a=N(a),t.range&&V(l.value.start)&&a.getTime()===l.value.start.getTime()),Xt=a=>(a=N(a),t.range&&V(l.value.end)&&a.getTime()===l.value.end.getTime()),Zt=a=>{if(a=N(a),t.range&&V(l.value.start)&&V(l.value.end)){const i=l.value.start.getTime(),o=l.value.end.getTime(),C=a.getTime();return C>i&&C<o}return!1},Kt=()=>{let a=B.value-1;a<0&&(a=11,f.value--),k.value=T[a],y()},Gt=()=>{let a=B.value+1;a>11&&(a=0,f.value++),k.value=T[a],y()},R=a=>{S.value&&!S.value.contains(a.target)&&r.value==!0&&j()},y=()=>{let a={};const i=(o,C,z)=>{o instanceof Date&&!isNaN(o)||(o=new Date);const $=new Date(o);return $.setUTCHours(C,z,0,0),$.toISOString()};t.range?(a.from=i(l.value.start,m.value.start,p.value.start),a.to=i(l.value.end,m.value.end,p.value.end)):a=i(l.value,m.value,p.value),n("updated",a)};return e.onMounted(()=>{t.initialDate&&(t.range&&t.initialDate.start&&t.initialDate.end?l.value={start:new Date(t.initialDate.start),end:new Date(t.initialDate.end)}:t.initialDate.start&&(l.value={start:new Date(t.initialDate.start)})),t.range?(m.value.start=m.value.start??new Date().getHours(),m.value.end=m.value.end??new Date().getHours(),p.value.start=p.value.start??new Date().getMinutes(),p.value.end=p.value.end??new Date().getMinutes()):(m.value=m.value??new Date().getHours(),p.value=p.value??new Date().getMinutes())}),t.popup&&e.onMounted(()=>document.addEventListener("click",R)),e.onUnmounted(()=>document.removeEventListener("click",R)),(a,i)=>(e.openBlock(),e.createElementBlock("div",{class:"inline-block relative w-full lg:w-[360px]",ref_key:"pickerContainer",ref:S},[e.createElementVNode("div",{class:"flex items-center gap-2 cursor-pointer",onClick:jt},[c.popup?e.renderSlot(a.$slots,"default",{key:0},()=>[e.createElementVNode("input",{type:"text",class:"input-bordered w-full cursor-pointer input",placeholder:c.placeholder,value:Pt.value,readonly:"",id:F.value},null,8,Pe),i[11]||(i[11]=e.createElementVNode("button",{class:"btn btn-ghost"}," 📅 ",-1))],!0):e.createCommentVNode("",!0)]),r.value||!c.popup?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["z-50 lg:bg-base-100 md:mt-2 md:p-4 px-4 rounded-md w-full",[{absolute:c.popup}]]),id:O.value},[h.value?(e.openBlock(),e.createElementBlock("div",Re,[e.createElementVNode("button",{class:"hidden md:block btn-outline btn btn-primary md:btn-sm",onClick:Kt},i[12]||(i[12]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1)])),e.withDirectives(e.createElementVNode("select",{class:"border-none w-fit select","onUpdate:modelValue":i[0]||(i[0]=o=>k.value=o),onChange:y},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(T,(o,C)=>e.createElementVNode("option",{key:C,value:o},e.toDisplayString(o),9,He)),64))],544),[[e.vModelSelect,k.value]]),e.withDirectives(e.createElementVNode("select",{class:"border-none w-24 select","onUpdate:modelValue":i[1]||(i[1]=o=>f.value=o),onChange:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(It.value,o=>(e.openBlock(),e.createElementBlock("option",{key:o,value:o},e.toDisplayString(o),9,qe))),128))],544),[[e.vModelSelect,f.value]]),e.createElementVNode("button",{class:"hidden md:block btn-outline btn btn-primary md:btn-sm",onClick:Gt},i[13]||(i[13]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"})],-1)]))])):e.createCommentVNode("",!0),h.value?(e.openBlock(),e.createElementBlock("div",Ye,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(E,o=>e.createElementVNode("div",{key:o,class:"text-center"},e.toDisplayString(o),1)),64)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,o=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"text-center"}))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,o=>(e.openBlock(),e.createElementBlock("div",{key:o,class:e.normalizeClass(["hover:bg-primary-10 py-1 rounded-full text-center cursor-pointer",{"bg-primary text-primary-content":Yt(o),today:Jt(o),"range-start bg-primary text-primary-content":Wt(o),"range-end bg-primary text-primary-content":Xt(o),"in-range bg-primary/20 hover:bg-primary/10":Zt(o)}]),onClick:C=>qt(o)},e.toDisplayString(o.getDate()),11,Je))),128))])):e.createCommentVNode("",!0),w.value?(e.openBlock(),e.createElementBlock("div",We,[t.range?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("h3",Xe,"Select Time")),t.range?(e.openBlock(),e.createElementBlock("div",ve,[e.createElementVNode("div",null,[i[14]||(i[14]=e.createElementVNode("p",{class:"font-bold"},"Start Time",-1)),M.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,type:"time",class:"input-bordered w-full input","onUpdate:modelValue":i[5]||(i[5]=o=>d.value.start=o),onChange:y},null,544)),[[e.vModelText,d.value.start]]):(e.openBlock(),e.createElementBlock("div",et,[e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[6]||(i[6]=o=>m.value.start=o),onChange:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(I),o=>(e.openBlock(),e.createElementBlock("option",{key:o,value:o},e.toDisplayString(o.toString().padStart(2,"0")),9,tt))),128))],544),[[e.vModelSelect,m.value.start,void 0,{number:!0}]]),e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[7]||(i[7]=o=>p.value.start=o),onChange:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(U),o=>(e.openBlock(),e.createElementBlock("option",{key:o,value:o},e.toDisplayString(o.toString().padStart(2,"0")),9,nt))),128))],544),[[e.vModelSelect,p.value.start,void 0,{number:!0}]])]))]),e.createElementVNode("div",null,[i[15]||(i[15]=e.createElementVNode("p",{class:"font-bold"},"End Time",-1)),M.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,type:"time",class:"input-bordered w-full input","onUpdate:modelValue":i[8]||(i[8]=o=>d.value.end=o),onChange:y},null,544)),[[e.vModelText,d.value.end]]):(e.openBlock(),e.createElementBlock("div",ot,[e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[9]||(i[9]=o=>m.value.end=o),onChange:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(I),o=>(e.openBlock(),e.createElementBlock("option",{key:o,value:o},e.toDisplayString(o.toString().padStart(2,"0")),9,lt))),128))],544),[[e.vModelSelect,m.value.end,void 0,{number:!0}]]),e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[10]||(i[10]=o=>p.value.end=o),onChange:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(U),o=>(e.openBlock(),e.createElementBlock("option",{key:o,value:o},e.toDisplayString(o.toString().padStart(2,"0")),9,at))),128))],544),[[e.vModelSelect,p.value.end,void 0,{number:!0}]])]))])])):(e.openBlock(),e.createElementBlock("div",Ze,[M.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,type:"time",class:"input-bordered w-full input","onUpdate:modelValue":i[2]||(i[2]=o=>d.value=o),onChange:y},null,544)),[[e.vModelText,d.value]]):(e.openBlock(),e.createElementBlock("div",Ke,[e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[3]||(i[3]=o=>m.value=o),onChange:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(I),o=>(e.openBlock(),e.createElementBlock("option",{key:o,value:o},e.toDisplayString(o.toString().padStart(2,"0")),9,Ge))),128))],544),[[e.vModelSelect,m.value,void 0,{number:!0}]]),e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[4]||(i[4]=o=>p.value=o),onChange:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(U),o=>(e.openBlock(),e.createElementBlock("option",{key:o,value:o},e.toDisplayString(o.toString().padStart(2,"0")),9,Qe))),128))],544),[[e.vModelSelect,p.value,void 0,{number:!0}]])]))]))])):e.createCommentVNode("",!0),e.createElementVNode("div",rt,[e.createElementVNode("button",{class:e.normalizeClass(["btn btn-secondary",c.popup?"w-fit":"w-full"]),onClick:Ht},"Clear",2),c.popup?(e.openBlock(),e.createElementBlock("button",{key:0,class:"btn btn-primary btn-wide",onClick:j},"Close")):e.createCommentVNode("",!0)])],10,je)):e.createCommentVNode("",!0)],512))}},[["__scopeId","data-v-cb781ab6"]]),st=Object.freeze(Object.defineProperty({__proto__:null,default:P},Symbol.toStringTag,{value:"Module"})),ct=["value","checked","onChange","disabled"],it=e.defineComponent({__name:"rating",props:{initialRating:{default:0},numberOfStars:{default:5},halfStars:{type:Boolean,default:!0},isInteractive:{type:Boolean,default:!1},size:{default:"sm"}},setup(c){const s=c,t=e.ref(s.initialRating);e.watch(()=>s.initialRating,r=>{t.value=r});const n=r=>{t.value=r};return(r,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["rating",[`rating-${s.size}`,{"rating-half":r.halfStars}]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.numberOfStars*(r.halfStars?2:1),d=>(e.openBlock(),e.createElementBlock("input",{key:d,type:"radio",value:r.halfStars?d*.5:d,checked:t.value===(r.halfStars?d*.5:d),onChange:k=>r.isInteractive?n(r.halfStars?d*.5:d):null,class:e.normalizeClass(["mask mask-star",{"bg-yellow-400":t.value>=(r.halfStars?d*.5:d),"mask-half-1":r.halfStars&&d%2!==0,"mask-half-2":r.halfStars&&d%2===0,"cursor-pointer":r.isInteractive,"cursor-default":!r.isInteractive}]),disabled:!r.isInteractive},null,42,ct))),128))],2))}}),dt={key:0,class:"loading loading-spinner loading-md mx-auto"},mt=e.defineComponent({__name:"loader",props:{loading:{type:Boolean,default:!0}},setup(c){const s=c,t=e.ref(s.loading);return e.watch(()=>s.loading,n=>{t.value=n}),(n,r)=>t.value?(e.openBlock(),e.createElementBlock("span",dt)):e.createCommentVNode("",!0)}}),pt={class:"bg-base-200 mx-auto md:px-10 py-10 text-base-content"},ft={class:"footer sm:footer-horizontal container"},ut={class:"footer-title"},gt=["href"],kt={class:"ml-auto"},ht=e.defineComponent({__name:"footer",props:{items:{}},setup(c){const s=c;return(t,n)=>(e.openBlock(),e.createElementBlock("div",pt,[e.createElementVNode("footer",ft,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.items,r=>(e.openBlock(),e.createElementBlock("nav",null,[e.createElementVNode("h6",ut,e.toDisplayString(r.title),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.items,l=>(e.openBlock(),e.createElementBlock("a",{class:"link link-hover",href:l.link},e.toDisplayString(l.text),9,gt))),256))]))),256)),e.createElementVNode("aside",kt,[e.renderSlot(t.$slots,"default")])])]))}}),bt={},yt={class:"min-h-40 container hero"},Bt={class:"px-0! text-center hero-content"},wt={class:"mt-9 text-4xl"};function Et(c,s){return e.openBlock(),e.createElementBlock("div",yt,[e.createElementVNode("div",Bt,[e.createElementVNode("div",null,[e.createElementVNode("h1",wt,[e.renderSlot(c.$slots,"title",{},()=>[s[0]||(s[0]=e.createTextVNode("hero title"))])]),e.createElementVNode("p",null,[e.renderSlot(c.$slots,"description",{class:"py-9"})]),e.renderSlot(c.$slots,"call-to-action-block",{class:"max-w-full"},()=>[s[1]||(s[1]=e.createElementVNode("button",{class:"btn btn-primary"},"Call to action",-1))])])])])}const _t=x(bt,[["render",Et]]),Ct={class:"categories flex flex-row gap-4 place-content-center"},St=["onClick"],Vt=e.defineComponent({__name:"categoryNavigation",props:{searchOptions:{},currentCategory:{}},emits:["update:currentCategory"],setup(c,{emit:s}){const t=c,n=s;function r(l){n("update:currentCategory",l)}return(l,d)=>(e.openBlock(),e.createElementBlock("div",Ct,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.searchOptions,k=>(e.openBlock(),e.createElementBlock("div",{key:k.category},[e.createElementVNode("button",{onClick:f=>r(k.category),class:e.normalizeClass(["truncate",{"font-semibold":t.currentCategory===k.category}])},e.toDisplayString(k.category),11,St)]))),128))]))}}),Nt={class:"md:flex hidden navbar-start"},$t={class:"md:flex justify-center items-center hidden navbar-center"},Dt={class:"md:flex hidden navbar-end"},xt={class:"navbar-bottom md:flex hidden"},Mt=x(e.defineComponent({__name:"navigationBar",props:{isCollapsed:{type:Boolean,default:!0}},setup(c){const s=c;return(t,n)=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass(["place-items-start border-primary bg-base-100 px-5 py-5 border-b-4 transition-all navbar navigationbar",s.isCollapsed?"collapsed":""])},[e.createElementVNode("div",Nt,[e.renderSlot(t.$slots,"start",{},void 0,!0)]),e.createElementVNode("div",$t,[e.renderSlot(t.$slots,"center",{},void 0,!0)]),e.createElementVNode("div",Dt,[e.renderSlot(t.$slots,"end",{},void 0,!0)]),e.createElementVNode("div",xt,[e.renderSlot(t.$slots,"bottom",{},void 0,!0)])],2))}}),[["__scopeId","data-v-8ddb2b45"]]),Tt={role:"tablist",class:"relative tabs-bordered w-full tabs tabs-lg"},zt={key:0,class:"hidden top-4 right-0 absolute md:flex gap-4"},Lt=["onClick","aria-selected"],Ft={role:"tabpanel",class:"p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full overflow-x-auto tab-content"},Ot=e.defineComponent({__name:"tab",props:{items:{},withControlls:{type:Boolean},rotateTabsAfter:{}},emits:["tab-changed"],setup(c,{emit:s}){const t=c,n=e.ref(t.items[0]),r=s;function l(f){n.value=f,r("tab-changed",f)}function d(){const m=(t.items.indexOf(n.value)+1)%t.items.length;l(t.items[m])}function k(){const m=(t.items.indexOf(n.value)-1+t.items.length)%t.items.length;l(t.items[m])}return e.onMounted(()=>{t.items&&l(t.items[0])}),e.onUnmounted(()=>{t.rotateTabsAfter&&setInterval(()=>{d()},t.rotateTabsAfter*1e3)}),(f,m)=>(e.openBlock(),e.createElementBlock("div",Tt,[f.withControlls?(e.openBlock(),e.createElementBlock("div",zt,[e.createElementVNode("button",{onClick:m[0]||(m[0]=p=>k()),class:"cursor-pointer"},"Previous"),e.createElementVNode("button",{onClick:m[1]||(m[1]=p=>d()),class:"text-primary cursor-pointer"},"Next")])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.items,p=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("a",{type:"button",role:"tab",class:e.normalizeClass(["min-w-max tab",p===n.value?"bg-primary text-base-100":""]),onClick:S=>l(p),"aria-selected":n.value==p},e.toDisplayString(p),11,Lt),e.createElementVNode("div",Ft,[e.renderSlot(f.$slots,`${p}-tab`)])],64))),256))]))}});g.Accordion=fe,g.AdvancedSearch=Ae,g.Avatar=ke,g.Badge=he,g.ButtonComponent=Y,g.Card=Se,g.CategoryNavigation=Vt,g.DatetimePicker=P,g.Dropdown=X,g.Footer=ht,g.Hero=_t,g.Loader=mt,g.Modal=G,g.NavigationBar=Mt,g.Rating=it,g.Swap=ee,g.Tab=Ot,g.ThemeController=ce,Object.defineProperty(g,Symbol.toStringTag,{value:"Module"})});
|
|
36
|
+
*/const le=L("SunIcon",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),ae=(c,s)=>{const t=e.ref(null);return e.onMounted(()=>{if(typeof window<"u"){const n=window.localStorage.getItem(c);t.value=n?JSON.parse(n):s}}),e.watch(t,n=>{typeof window<"u"&&window.localStorage.setItem(c,JSON.stringify(n))}),t},re={class:"swap-rotate swap"},se=["true-value","false-value"],ce=e.defineComponent({__name:"theme-controller",props:{lightTheme:{default:"light"},darkTheme:{default:"dark"}},setup(c){const s=c,t=ae("theme",s.lightTheme);function n(r){typeof window<"u"&&window.document&&document.documentElement.setAttribute("data-theme",r)}return e.onMounted(()=>n(t.value?t.value:"")),e.watch(t,r=>{n(r)}),(r,l)=>(e.openBlock(),e.createElementBlock("label",re,[e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:"theme-controller","onUpdate:modelValue":l[0]||(l[0]=d=>e.isRef(t)?t.value=d:null),"true-value":s.lightTheme,"false-value":s.darkTheme},null,8,se),[[e.vModelCheckbox,e.unref(t)]]),e.createVNode(e.unref(le),{class:"swap-off fill-current"}),e.createVNode(e.unref(oe),{class:"swap-on fill-current"})]))}}),ie=["name"],de={class:"collapse-title font-bold text-2xl lg:text-4xl"},me={class:"collapse-content"},pe=["innerHTML"],fe=e.defineComponent({__name:"accordion",props:{name:{},items:{},joinItems:{type:Boolean,default:!1},icon:{}},setup(c){const s=c;return(t,n)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.items,(r,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["collapse border border-base-300",[t.icon?`collapse-${t.icon}`:"",{"join-item":t.joinItems}]]),key:l},[e.createElementVNode("input",{type:"radio",name:t.name,value:"true"},null,8,ie),e.createElementVNode("div",de,e.toDisplayString(r.title),1),e.createElementVNode("div",me,[e.createElementVNode("span",{innerHTML:r.content},null,8,pe)])],2))),128))}}),ue=["src"],ge={class:"text-xl"},ke=e.defineComponent({__name:"avatar",props:{image:{},onlineStatus:{default:"none"},initials:{},fullyRounded:{type:Boolean,default:!1}},setup(c){const s=c,t=e.ref(s.onlineStatus);return e.watch(()=>s.onlineStatus,n=>{n&&(t.value=n)}),(n,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["avatar",[{"avatar-online":t.value==="online"},{"avatar-offline":t.value==="offline"}]])},[n.image?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["rounded",[{"rounded-full":n.fullyRounded},{rounded:!n.fullyRounded}]])},[e.createElementVNode("img",{src:n.image,class:"w-full h-full"},null,8,ue)],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["flex justify-center bg-neutral p-[25%] rounded w-16 text-neutral-content text-center",[{"rounded-full":n.fullyRounded},{rounded:!n.fullyRounded}]])},[e.createElementVNode("p",ge,e.toDisplayString(n.initials),1)],2))],2))}}),he=e.defineComponent({__name:"badge",props:{color:{default:"neutral"},outline:{type:Boolean,default:!1},size:{default:"medium"}},setup(c){const s=c,t={"extra small":"badge-xs",small:"badge-sm",medium:"badge-md",large:"badge-lg"},n={neutral:"badge-neutral",primary:"badge-primary",secondary:"badge-secondary",accent:"badge-accent",ghost:"badge-ghost",info:"badge-info",success:"badge-success",warning:"badge-warning",error:"badge-error"};return(r,l)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["badge",t[s.size],n[s.color],{"badge-outline":s.outline}])},[e.renderSlot(r.$slots,"default")],2))}}),be=["src","alt"],ye={key:1,class:"w-full h-32 skeleton"},Be={key:0,class:"card-body"},we={key:0,class:"group-hover:text-primary text-left text-lg cursor-pointer card-title"},Ee={key:1,class:"text-left"},_e={class:"flex-col flex-nowrap mt-auto card-actions"},Ce={key:1,class:"card-body"},Se=e.defineComponent({__name:"card",props:{imgUrl:{default:""},alt:{default:"A beautiful picture that says something about this card"},title:{default:""},description:{default:""},outlined:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},class:{default:""}},setup(c){const s=c,t=e.ref(s.outlined);return e.watch(()=>s.outlined,n=>{t.value=n}),(n,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["bg-base-100 shadow-xl rounded-sm min-w-64 max-w-full h-full card card-compact group",t.value?"border-4 border-primary":""])},[e.createElementVNode("figure",null,[n.imgUrl||n.imgUrl&&!n.loading?(e.openBlock(),e.createElementBlock("img",{key:0,src:n.imgUrl,alt:n.alt,class:e.normalizeClass(["rounded-sm w-full h-44 object-cover",{hidden:n.loading}])},null,10,be)):e.createCommentVNode("",!0),n.loading&&n.imgUrl?(e.openBlock(),e.createElementBlock("div",ye)):e.createCommentVNode("",!0)]),n.loading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Be,[n.title?(e.openBlock(),e.createElementBlock("h2",we,e.toDisplayString(n.title),1)):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"details"),n.description?(e.openBlock(),e.createElementBlock("p",Ee,e.toDisplayString(n.description),1)):e.createCommentVNode("",!0),e.createElementVNode("div",_e,[e.renderSlot(n.$slots,"actions")])])),n.loading?(e.openBlock(),e.createElementBlock("div",Ce,r[0]||(r[0]=[e.createElementVNode("div",{class:"flex flex-col gap-4 w-52"},[e.createElementVNode("div",{class:"w-28 h-4 skeleton"}),e.createElementVNode("div",{class:"w-full h-4 skeleton"}),e.createElementVNode("div",{class:"w-full h-4 skeleton"})],-1)]))):e.createCommentVNode("",!0)],2))}}),Ve={class:"flex gap-4 bg-base-100 w-full tabs tabs-boxed"},Ne=["onClick"],$e={class:"text-sm"},De={class:"md:block hidden opacity-35 text-xs truncate overflow-hidden ..."},xe={class:"hidden"},Me={id:"advancedSearchMobile",class:"modal"},Te={class:"modal-box"},ze={class:"font-bold text-lg"},Le=["checked"],Oe={class:"flex justify-between items-center pr-4 w-full font-medium text-xl collapse-title"},Fe={class:"text-sm"},Ie={class:"flex place-content-center p-0 collapse-content"},Ue=e.defineComponent({__name:"advancedSearch",props:{searchOptions:{},currentCategory:{}},emits:["search","update:search-data"],setup(c,{emit:s}){const t=c,n=s,r=e.ref(null),l={datetime:e.defineAsyncComponent(()=>Promise.resolve().then(()=>st))},d=e.ref({}),k=e.ref({left:"0px",top:"0px",transform:"translateX(0%)"}),p=e.ref(null);function m(h,w){var B,E,u;if((B=r.value)!=null&&B.name){n("update:search-data",{tab:r.value.name,data:h});return}if(t.searchOptions){let b=(u=(E=t.searchOptions)==null?void 0:E.find(_=>(_==null?void 0:_.category)===t.currentCategory))==null?void 0:u.tabs[w];b!==void 0&&(b.value=h,n("update:search-data",{tab:b==null?void 0:b.name,data:b==null?void 0:b.value}))}}function f(){n("search")}async function S(h){p.value&&!p.value.contains(h.target)&&(await e.nextTick(),r.value=null)}async function O(){if(typeof window<"u"&&window.innerWidth<=768){const h=document.getElementById("advancedSearchMobile");h?h.showModal():console.warn("Modal element not found.")}}async function F(h){var B;r.value=h,await e.nextTick();const w=d.value[h.name];if(w){const E=w.getBoundingClientRect(),u=((B=p.value)==null?void 0:B.getBoundingClientRect())||{left:0,top:0};window.innerWidth>768?k.value={left:`${E.left+E.width/2-u.left}px`,top:`${E.bottom-u.top}px`,transform:"translateX(-50%)"}:k.value={left:"50%",top:`${E.bottom-u.top}px`,transform:"translateX(-50%)"}}else console.error("Tab element not found for:",h.name)}return e.onMounted(()=>{document.addEventListener("click",S)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",S)}),(h,w)=>{var B,E;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{ref_key:"searchContainer",ref:p,class:"w-full"},[e.createElementVNode("div",{class:"group/search relative flex place-items-center border-2 shadow-md p-2 border-base-300/25 rounded-sm w-full transition-all cursor-pointer md:cursor-auto",onClick:O},[e.createElementVNode("div",Ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((B=t.searchOptions.find(u=>u.category===t.currentCategory))==null?void 0:B.tabs)||[],u=>{var b;return e.openBlock(),e.createElementBlock("button",{key:u.name,onClick:_=>F(u),class:e.normalizeClass([{"tab-active":((b=r.value)==null?void 0:b.name)===u.name},"group/searchitem relative after:top-0 after:-right-2 after:absolute first-of-type:flex-auto last-of-type:flex-auto md:after:content-[''] last-of-type:after:content-none after:content-none after:bg-base-200 hover:bg-base-200 p-1 rounded-sm w-auto after:w-[1px] after:h-10 text-start overflow-x-hidden pointer-events-none md:pointer-events-auto"]),ref_for:!0,ref:_=>d.value[u.name]=_},[e.createElementVNode("p",$e,e.toDisplayString(u.name),1),e.createElementVNode("p",De,e.toDisplayString(u.description),1)],10,Ne)}),128))]),r.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"absolute flex shadow-sm mt-4 w-fit max-w-full transition-all tab-content",style:e.normalizeStyle(k.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l[r.value.type]),e.mergeProps(r.value.props?r.value.props:null,{onUpdated:m}),null,16))],4)):e.createCommentVNode("",!0),e.createElementVNode("button",{title:"search",type:"submit",class:"ml-1 btn btn-primary btn-square",onClick:f},[e.createVNode(e.unref(A),{size:24,color:"white"})])]),e.createElementVNode("div",xe,[e.createElementVNode("button",{title:"search",onClick:w[0]||(w[0]=()=>{})},[e.createVNode(e.unref(A),{size:24,color:"white"})])])],512),e.createElementVNode("dialog",Me,[e.createElementVNode("div",Te,[e.renderSlot(h.$slots,"additionalForMobile",{},()=>[e.createElementVNode("h3",ze,e.toDisplayString(h.currentCategory),1)],!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((E=t.searchOptions.find(u=>u.category===t.currentCategory))==null?void 0:E.tabs)||[],(u,b)=>(e.openBlock(),e.createElementBlock("div",{class:"bg-base-200 my-4 collapse",key:u.name},[e.createElementVNode("input",{type:"radio",name:"my-accordion-1",checked:b===0},null,8,Le),e.createElementVNode("div",Oe,[e.createTextVNode(e.toDisplayString(u.name)+" ",1),e.createElementVNode("p",Fe,e.toDisplayString(u.description),1)]),e.createElementVNode("div",Ie,[w[1]||(w[1]=e.createElementVNode("br",null,null,-1)),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l[u.type]),e.mergeProps({ref_for:!0},u.props||{},{onUpdated:_=>m(_,b)}),null,16,["onUpdated"]))])]))),128)),e.createElementVNode("div",{class:"modal-action"},[e.createElementVNode("form",{method:"dialog"},[e.createElementVNode("button",{class:"btn btn-primary",onClick:f},"Close and Search")])])])])],64)}}}),x=(c,s)=>{const t=c.__vccOpts||c;for(const[n,r]of s)t[n]=r;return t},Ae=x(Ue,[["__scopeId","data-v-08fa37eb"]]),Pe=["placeholder","value","id"],je=["id"],Re={key:0,class:"flex justify-between items-center place-content-center mb-4"},He=["value"],qe=["value"],Ye={key:1,class:"gap-2 grid grid-cols-7"},Je=["onClick"],We={key:2,class:"mt-4 lg:w-80"},Xe={key:0,class:"mb-2 font-bold text-lg"},Ze={key:1},Ke={key:1,class:"flex gap-4"},Ge=["value"],Qe=["value"],ve={key:2,class:"flex flex-col gap-4"},et={key:1,class:"flex gap-2"},tt=["value"],nt=["value"],ot={key:1,class:"flex gap-2"},lt=["value"],at=["value"],rt={class:"flex gap-2 mt-4"},P=x({__name:"datetimePicker",props:{mode:{type:String,default:"datetime",validator:c=>["datetime","date","time"].includes(c)},range:{type:Boolean,default:!1},placeholder:{type:String,default:"Select date and time"},popup:{type:Boolean,default:!1},id:{type:String,default:"datetimepicker"},initialDate:{type:Object,default:()=>null}},emits:["updated"],setup(c,{emit:s}){const t=c;e.watch(()=>t.range,a=>{a?(l.value={start:null,end:null},d.value={start:null,end:null}):(l.value=null,d.value=null)});const n=s,r=e.ref(!1),l=e.ref(t.range?{start:null,end:null}:null),d=e.ref(t.range?{start:null,end:null}:null),k=e.ref(new Date().toLocaleString("default",{month:"long"})),p=e.ref(new Date().getFullYear()),m=e.ref(t.range?{start:0,end:0}:0),f=e.ref(t.range?{start:0,end:0}:0),S=e.ref(null),O=e.computed(()=>`${t.id}-input`),F=e.computed(()=>`${t.id}-popup`),h=e.computed(()=>t.mode==="date"||t.mode==="datetime"),w=e.computed(()=>t.mode==="time"||t.mode==="datetime");e.computed(()=>new Date(p.value,B.value));const B=e.computed(()=>T.indexOf(k.value)),E=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],u=e.computed(()=>new Date(p.value,B.value).getDay()),b=e.computed(()=>{const a=new Date(p.value,B.value+1,0).getDate();return Array.from({length:a},(i,o)=>new Date(p.value,B.value,o+1))}),_=e.computed(()=>Array.from({length:u.value},(a,i)=>i)),I=Array.from({length:24},(a,i)=>i),U=Array.from({length:60},(a,i)=>i),M=e.computed(()=>typeof navigator<"u"&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)),T=["January","February","March","April","May","June","July","August","September","October","November","December"],Ut=e.computed(()=>{const a=new Date().getFullYear();return Array.from({length:100},(i,o)=>a-50+o)}),At=e.computed(()=>{if(!h.value||!l.value)return"";if(t.range&&l.value.start&&l.value.end){const a=l.value.start.toLocaleDateString("en-US"),i=l.value.end.toLocaleDateString("en-US");return`${a} - ${i}`}return!t.range&&l.value?l.value.toLocaleDateString("en-US"):""}),N=a=>a instanceof Date?a:new Date(a),V=a=>a instanceof Date&&!isNaN(a),Pt=e.computed(()=>{if(!w.value)return"";const a=i=>{var z,$,H;const o=((z=m.value)==null?void 0:z[i])??m.value,C=(($=f.value)==null?void 0:$[i])??f.value;return M.value?((H=d.value)==null?void 0:H[i])??d.value:`${o.toString().padStart(2,"0")}:${C.toString().padStart(2,"0")}`};return t.range?`${a("start")} - ${a("end")}`:a()}),jt=e.computed(()=>{const a=At.value,i=Pt.value;return`${a} ${i}`.trim()}),Rt=()=>r.value=!r.value,j=()=>{y(),Ht()},Ht=()=>r.value=!1,qt=()=>{l.value=t.range?{start:null,end:null}:null,d.value=t.range?{start:null,end:null}:null,y()},Yt=a=>{t.range?l.value.start&&l.value.end?l.value={start:a,end:null}:l.value.start?l.value.end=a:l.value.start=a:l.value=a,y()},Jt=a=>(a=N(a),t.range?l.value.start&&V(l.value.start)&&a.getTime()===l.value.start.getTime()||l.value.end&&V(l.value.end)&&a.getTime()===l.value.end.getTime():V(l.value)&&a.getTime()===l.value.getTime()),Wt=a=>{a=N(a);const i=new Date;return a.getDate()===i.getDate()&&a.getMonth()===i.getMonth()&&a.getFullYear()===i.getFullYear()},Xt=a=>(a=N(a),t.range&&V(l.value.start)&&a.getTime()===l.value.start.getTime()),Zt=a=>(a=N(a),t.range&&V(l.value.end)&&a.getTime()===l.value.end.getTime()),Kt=a=>{if(a=N(a),t.range&&V(l.value.start)&&V(l.value.end)){const i=l.value.start.getTime(),o=l.value.end.getTime(),C=a.getTime();return C>i&&C<o}return!1},Gt=()=>{let a=B.value-1;a<0&&(a=11,p.value--),k.value=T[a],y()},Qt=()=>{let a=B.value+1;a>11&&(a=0,p.value++),k.value=T[a],y()},R=a=>{S.value&&!S.value.contains(a.target)&&r.value==!0&&j()},y=()=>{let a={};const i=(o,C,z)=>{o instanceof Date&&!isNaN(o)||(o=new Date);const $=new Date(o);return $.setUTCHours(C,z,0,0),$.toISOString()};t.range?(a.from=i(l.value.start,m.value.start,f.value.start),a.to=i(l.value.end,m.value.end,f.value.end)):a=i(l.value,m.value,f.value),n("updated",a)};return e.onMounted(()=>{t.initialDate&&(t.range&&t.initialDate.start&&t.initialDate.end?l.value={start:new Date(t.initialDate.start),end:new Date(t.initialDate.end)}:t.initialDate.start&&(l.value={start:new Date(t.initialDate.start)})),t.range?(m.value.start=m.value.start??new Date().getHours(),m.value.end=m.value.end??new Date().getHours(),f.value.start=f.value.start??new Date().getMinutes(),f.value.end=f.value.end??new Date().getMinutes()):(m.value=m.value??new Date().getHours(),f.value=f.value??new Date().getMinutes())}),t.popup&&e.onMounted(()=>document.addEventListener("click",R)),e.onUnmounted(()=>document.removeEventListener("click",R)),(a,i)=>(e.openBlock(),e.createElementBlock("div",{class:"inline-block relative w-full lg:w-[360px]",ref_key:"pickerContainer",ref:S},[e.createElementVNode("div",{class:"flex items-center gap-2 cursor-pointer",onClick:Rt},[c.popup?e.renderSlot(a.$slots,"default",{key:0},()=>[e.createElementVNode("input",{type:"text",class:"input-bordered w-full cursor-pointer input",placeholder:c.placeholder,value:jt.value,readonly:"",id:O.value},null,8,Pe),i[11]||(i[11]=e.createElementVNode("button",{class:"btn btn-ghost"}," 📅 ",-1))],!0):e.createCommentVNode("",!0)]),r.value||!c.popup?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["z-50 lg:bg-base-100 md:mt-2 md:p-4 px-4 rounded-md w-full",[{absolute:c.popup}]]),id:F.value},[h.value?(e.openBlock(),e.createElementBlock("div",Re,[e.createElementVNode("button",{class:"hidden md:block btn-outline btn btn-primary md:btn-sm",onClick:Gt},i[12]||(i[12]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1)])),e.withDirectives(e.createElementVNode("select",{class:"border-none w-fit select","onUpdate:modelValue":i[0]||(i[0]=o=>k.value=o),onChange:y},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(T,(o,C)=>e.createElementVNode("option",{key:C,value:o},e.toDisplayString(o),9,He)),64))],544),[[e.vModelSelect,k.value]]),e.withDirectives(e.createElementVNode("select",{class:"border-none w-24 select","onUpdate:modelValue":i[1]||(i[1]=o=>p.value=o),onChange:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ut.value,o=>(e.openBlock(),e.createElementBlock("option",{key:o,value:o},e.toDisplayString(o),9,qe))),128))],544),[[e.vModelSelect,p.value]]),e.createElementVNode("button",{class:"hidden md:block btn-outline btn btn-primary md:btn-sm",onClick:Qt},i[13]||(i[13]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"})],-1)]))])):e.createCommentVNode("",!0),h.value?(e.openBlock(),e.createElementBlock("div",Ye,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(E,o=>e.createElementVNode("div",{key:o,class:"text-center"},e.toDisplayString(o),1)),64)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,o=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"text-center"}))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,o=>(e.openBlock(),e.createElementBlock("div",{key:o,class:e.normalizeClass(["hover:bg-primary-10 py-1 rounded-full text-center cursor-pointer",{"bg-primary text-primary-content":Jt(o),today:Wt(o),"range-start bg-primary text-primary-content":Xt(o),"range-end bg-primary text-primary-content":Zt(o),"in-range bg-primary/20 hover:bg-primary/10":Kt(o)}]),onClick:C=>Yt(o)},e.toDisplayString(o.getDate()),11,Je))),128))])):e.createCommentVNode("",!0),w.value?(e.openBlock(),e.createElementBlock("div",We,[t.range?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("h3",Xe,"Select Time")),t.range?(e.openBlock(),e.createElementBlock("div",ve,[e.createElementVNode("div",null,[i[14]||(i[14]=e.createElementVNode("p",{class:"font-bold"},"Start Time",-1)),M.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,type:"time",class:"input-bordered w-full input","onUpdate:modelValue":i[5]||(i[5]=o=>d.value.start=o),onChange:y},null,544)),[[e.vModelText,d.value.start]]):(e.openBlock(),e.createElementBlock("div",et,[e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[6]||(i[6]=o=>m.value.start=o),onChange:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(I),o=>(e.openBlock(),e.createElementBlock("option",{key:o,value:o},e.toDisplayString(o.toString().padStart(2,"0")),9,tt))),128))],544),[[e.vModelSelect,m.value.start,void 0,{number:!0}]]),e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[7]||(i[7]=o=>f.value.start=o),onChange:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(U),o=>(e.openBlock(),e.createElementBlock("option",{key:o,value:o},e.toDisplayString(o.toString().padStart(2,"0")),9,nt))),128))],544),[[e.vModelSelect,f.value.start,void 0,{number:!0}]])]))]),e.createElementVNode("div",null,[i[15]||(i[15]=e.createElementVNode("p",{class:"font-bold"},"End Time",-1)),M.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,type:"time",class:"input-bordered w-full input","onUpdate:modelValue":i[8]||(i[8]=o=>d.value.end=o),onChange:y},null,544)),[[e.vModelText,d.value.end]]):(e.openBlock(),e.createElementBlock("div",ot,[e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[9]||(i[9]=o=>m.value.end=o),onChange:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(I),o=>(e.openBlock(),e.createElementBlock("option",{key:o,value:o},e.toDisplayString(o.toString().padStart(2,"0")),9,lt))),128))],544),[[e.vModelSelect,m.value.end,void 0,{number:!0}]]),e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[10]||(i[10]=o=>f.value.end=o),onChange:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(U),o=>(e.openBlock(),e.createElementBlock("option",{key:o,value:o},e.toDisplayString(o.toString().padStart(2,"0")),9,at))),128))],544),[[e.vModelSelect,f.value.end,void 0,{number:!0}]])]))])])):(e.openBlock(),e.createElementBlock("div",Ze,[M.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,type:"time",class:"input-bordered w-full input","onUpdate:modelValue":i[2]||(i[2]=o=>d.value=o),onChange:y},null,544)),[[e.vModelText,d.value]]):(e.openBlock(),e.createElementBlock("div",Ke,[e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[3]||(i[3]=o=>m.value=o),onChange:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(I),o=>(e.openBlock(),e.createElementBlock("option",{key:o,value:o},e.toDisplayString(o.toString().padStart(2,"0")),9,Ge))),128))],544),[[e.vModelSelect,m.value,void 0,{number:!0}]]),e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":i[4]||(i[4]=o=>f.value=o),onChange:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(U),o=>(e.openBlock(),e.createElementBlock("option",{key:o,value:o},e.toDisplayString(o.toString().padStart(2,"0")),9,Qe))),128))],544),[[e.vModelSelect,f.value,void 0,{number:!0}]])]))]))])):e.createCommentVNode("",!0),e.createElementVNode("div",rt,[e.createElementVNode("button",{class:e.normalizeClass(["btn btn-secondary",c.popup?"w-fit":"w-full"]),onClick:qt},"Clear",2),c.popup?(e.openBlock(),e.createElementBlock("button",{key:0,class:"btn btn-primary btn-wide",onClick:j},"Close")):e.createCommentVNode("",!0)])],10,je)):e.createCommentVNode("",!0)],512))}},[["__scopeId","data-v-cb781ab6"]]),st=Object.freeze(Object.defineProperty({__proto__:null,default:P},Symbol.toStringTag,{value:"Module"})),ct=["value","checked","onChange","disabled"],it=e.defineComponent({__name:"rating",props:{initialRating:{default:0},numberOfStars:{default:5},halfStars:{type:Boolean,default:!0},isInteractive:{type:Boolean,default:!1},size:{default:"sm"}},setup(c){const s=c,t=e.ref(s.initialRating);e.watch(()=>s.initialRating,r=>{t.value=r});const n=r=>{t.value=r};return(r,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["rating",[`rating-${s.size}`,{"rating-half":r.halfStars}]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.numberOfStars*(r.halfStars?2:1),d=>(e.openBlock(),e.createElementBlock("input",{key:d,type:"radio",value:r.halfStars?d*.5:d,checked:t.value===(r.halfStars?d*.5:d),onChange:k=>r.isInteractive?n(r.halfStars?d*.5:d):null,class:e.normalizeClass(["mask mask-star",{"bg-yellow-400":t.value>=(r.halfStars?d*.5:d),"mask-half-1":r.halfStars&&d%2!==0,"mask-half-2":r.halfStars&&d%2===0,"cursor-pointer":r.isInteractive,"cursor-default":!r.isInteractive}]),disabled:!r.isInteractive},null,42,ct))),128))],2))}}),dt={key:0,class:"loading loading-spinner loading-md mx-auto"},mt=e.defineComponent({__name:"loader",props:{loading:{type:Boolean,default:!0}},setup(c){const s=c,t=e.ref(s.loading);return e.watch(()=>s.loading,n=>{t.value=n}),(n,r)=>t.value?(e.openBlock(),e.createElementBlock("span",dt)):e.createCommentVNode("",!0)}}),pt={class:"bg-base-200 mx-auto md:px-10 py-10 text-base-content"},ft={class:"footer sm:footer-horizontal container"},ut={class:"footer-title"},gt=["href"],kt={class:"ml-auto"},ht=e.defineComponent({__name:"footer",props:{items:{}},setup(c){const s=c;return(t,n)=>(e.openBlock(),e.createElementBlock("div",pt,[e.createElementVNode("footer",ft,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.items,r=>(e.openBlock(),e.createElementBlock("nav",null,[e.createElementVNode("h6",ut,e.toDisplayString(r.title),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.items,l=>(e.openBlock(),e.createElementBlock("a",{class:"link link-hover",href:l.link},e.toDisplayString(l.text),9,gt))),256))]))),256)),e.createElementVNode("aside",kt,[e.renderSlot(t.$slots,"default")])])]))}}),bt={},yt={class:"min-h-40 container hero"},Bt={class:"px-0! text-center hero-content"},wt={class:"mt-9 text-4xl"};function Et(c,s){return e.openBlock(),e.createElementBlock("div",yt,[e.createElementVNode("div",Bt,[e.createElementVNode("div",null,[e.createElementVNode("h1",wt,[e.renderSlot(c.$slots,"title",{},()=>[s[0]||(s[0]=e.createTextVNode("hero title"))])]),e.createElementVNode("p",null,[e.renderSlot(c.$slots,"description",{class:"py-9"})]),e.renderSlot(c.$slots,"call-to-action-block",{class:"max-w-full"},()=>[s[1]||(s[1]=e.createElementVNode("button",{class:"btn btn-primary"},"Call to action",-1))])])])])}const _t=x(bt,[["render",Et]]),Ct={class:"categories flex flex-row gap-4 place-content-center"},St=["onClick"],Vt=e.defineComponent({__name:"categoryNavigation",props:{searchOptions:{},currentCategory:{}},emits:["update:currentCategory"],setup(c,{emit:s}){const t=c,n=s;function r(l){n("update:currentCategory",l)}return(l,d)=>(e.openBlock(),e.createElementBlock("div",Ct,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.searchOptions,k=>(e.openBlock(),e.createElementBlock("div",{key:k.category},[e.createElementVNode("button",{onClick:p=>r(k.category),class:e.normalizeClass(["truncate",{"font-semibold":t.currentCategory===k.category}])},e.toDisplayString(k.category),11,St)]))),128))]))}}),Nt={class:"md:flex hidden navbar-start"},$t={class:"md:flex justify-center items-center hidden navbar-center"},Dt={class:"md:flex hidden navbar-end"},xt={class:"navbar-bottom md:flex hidden"},Mt=x(e.defineComponent({__name:"navigationBar",props:{isCollapsed:{type:Boolean,default:!0}},setup(c){const s=c;return(t,n)=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass(["place-items-start border-primary bg-base-100 px-5 py-5 border-b-4 transition-all navbar navigationbar",s.isCollapsed?"collapsed":""])},[e.createElementVNode("div",Nt,[e.renderSlot(t.$slots,"start",{},void 0,!0)]),e.createElementVNode("div",$t,[e.renderSlot(t.$slots,"center",{},void 0,!0)]),e.createElementVNode("div",Dt,[e.renderSlot(t.$slots,"end",{},void 0,!0)]),e.createElementVNode("div",xt,[e.renderSlot(t.$slots,"bottom",{},void 0,!0)])],2))}}),[["__scopeId","data-v-8ddb2b45"]]),Tt={role:"tablist",class:"relative tabs-bordered w-full tabs tabs-lg"},zt={key:0,class:"hidden top-4 right-0 absolute md:flex gap-4"},Lt=["onClick","aria-selected"],Ot={key:0,role:"tabpanel",class:"p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full overflow-x-auto tab-content"},Ft={class:"p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full overflow-x-auto tab-content"},It=e.defineComponent({__name:"tab",props:{items:{},withControlls:{type:Boolean,default:!1},rotateTabsAfter:{default:0},buttonOnlyMode:{type:Boolean,default:!1}},emits:["tab-changed"],setup(c,{emit:s}){const t=c,n=e.ref(t.items[0]),r=s;function l(p){n.value=p,r("tab-changed",p)}function d(){const m=(t.items.indexOf(n.value)+1)%t.items.length;l(t.items[m])}function k(){const m=(t.items.indexOf(n.value)-1+t.items.length)%t.items.length;l(t.items[m])}return e.onMounted(()=>{t.items&&l(t.items[0])}),e.onUnmounted(()=>{t.rotateTabsAfter&&t.rotateTabsAfter>0&&setInterval(()=>{d()},t.rotateTabsAfter*1e3)}),(p,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",Tt,[p.withControlls?(e.openBlock(),e.createElementBlock("div",zt,[e.createElementVNode("button",{onClick:m[0]||(m[0]=f=>k()),class:"cursor-pointer"},"Previous"),e.createElementVNode("button",{onClick:m[1]||(m[1]=f=>d()),class:"text-primary cursor-pointer"},"Next")])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.items,f=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("a",{type:"button",role:"tab",class:e.normalizeClass(["min-w-max tab",f===n.value?"bg-primary text-base-100":""]),onClick:S=>l(f),"aria-selected":n.value==f},e.toDisplayString(f),11,Lt),p.buttonOnlyMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Ot,[e.renderSlot(p.$slots,`${f}-tab`)]))],64))),256))]),e.createElementVNode("div",Ft,[e.renderSlot(p.$slots,"default")])],64))}});g.Accordion=fe,g.AdvancedSearch=Ae,g.Avatar=ke,g.Badge=he,g.ButtonComponent=Y,g.Card=Se,g.CategoryNavigation=Vt,g.DatetimePicker=P,g.Dropdown=X,g.Footer=ht,g.Hero=_t,g.Loader=mt,g.Modal=G,g.NavigationBar=Mt,g.Rating=it,g.Swap=ee,g.Tab=It,g.ThemeController=ce,Object.defineProperty(g,Symbol.toStringTag,{value:"Module"})});
|