manolis-ui 0.3.2 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +143 -40
- package/dist/manolis-ui.css +1 -1
- package/dist/manolis-ui.js +755 -613
- package/dist/manolis-ui.umd.cjs +9 -9
- package/dist/style.css +0 -3
- package/package.json +1 -1
package/dist/manolis-ui.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as V, computed as B, createElementBlock as l, openBlock as a, normalizeClass as x, createCommentVNode as T, renderSlot as w, createTextVNode as se, createElementVNode as n, Fragment as _, renderList as C, toDisplayString as $, ref as S, h as oe, onMounted as H, watch as j, withDirectives as U, createVNode as X, isRef as Ie, vModelCheckbox as Be, unref as z, provide as Ve, normalizeStyle as re, inject as Pe, defineAsyncComponent as Oe, onBeforeUnmount as Ae, createBlock as ce, resolveDynamicComponent as pe, mergeProps as fe, nextTick as me, onUnmounted as ge, vModelSelect as F, vModelText as te } from "vue";
|
|
2
|
+
const Ue = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "loading loading-spinner"
|
|
5
|
-
},
|
|
5
|
+
}, An = /* @__PURE__ */ V({
|
|
6
6
|
__name: "ButtonComponent",
|
|
7
7
|
props: {
|
|
8
8
|
outlined: { type: Boolean, default: !1 },
|
|
@@ -12,9 +12,9 @@ const Ve = {
|
|
|
12
12
|
size: {},
|
|
13
13
|
shape: {}
|
|
14
14
|
},
|
|
15
|
-
setup(
|
|
16
|
-
const
|
|
17
|
-
switch (
|
|
15
|
+
setup(u) {
|
|
16
|
+
const o = u, e = B(() => {
|
|
17
|
+
switch (o.size) {
|
|
18
18
|
case "large":
|
|
19
19
|
return "btn-lg";
|
|
20
20
|
case "small":
|
|
@@ -28,8 +28,8 @@ const Ve = {
|
|
|
28
28
|
default:
|
|
29
29
|
return "";
|
|
30
30
|
}
|
|
31
|
-
}), t =
|
|
32
|
-
switch (
|
|
31
|
+
}), t = B(() => {
|
|
32
|
+
switch (o.type) {
|
|
33
33
|
case "neutral":
|
|
34
34
|
return "btn-neutral";
|
|
35
35
|
case "primary":
|
|
@@ -53,8 +53,8 @@ const Ve = {
|
|
|
53
53
|
default:
|
|
54
54
|
return "btn-neutral";
|
|
55
55
|
}
|
|
56
|
-
}),
|
|
57
|
-
switch (
|
|
56
|
+
}), r = B(() => {
|
|
57
|
+
switch (o.shape) {
|
|
58
58
|
case "square":
|
|
59
59
|
return "btn-square";
|
|
60
60
|
case "circle":
|
|
@@ -63,19 +63,19 @@ const Ve = {
|
|
|
63
63
|
return "";
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
|
-
return (
|
|
67
|
-
class:
|
|
66
|
+
return (s, p) => (a(), l("button", {
|
|
67
|
+
class: x(["btn", { "btn-outline": o.outlined }, { "btn-active": o.active }, t.value, e.value, r.value])
|
|
68
68
|
}, [
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
p[0] || (p[0] =
|
|
69
|
+
s.loading ? (a(), l("span", Ue)) : T("", !0),
|
|
70
|
+
w(s.$slots, "default", {}, () => [
|
|
71
|
+
p[0] || (p[0] = se("Submit"))
|
|
72
72
|
])
|
|
73
73
|
], 2));
|
|
74
74
|
}
|
|
75
|
-
}),
|
|
75
|
+
}), ze = {
|
|
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
|
+
}, Le = ["href"], Un = /* @__PURE__ */ V({
|
|
79
79
|
__name: "dropdown",
|
|
80
80
|
props: {
|
|
81
81
|
items: {},
|
|
@@ -84,8 +84,8 @@ const Ve = {
|
|
|
84
84
|
openOnHover: { type: Boolean, default: !1 },
|
|
85
85
|
forceOpen: { type: Boolean, default: !1 }
|
|
86
86
|
},
|
|
87
|
-
setup(
|
|
88
|
-
const
|
|
87
|
+
setup(u) {
|
|
88
|
+
const o = {
|
|
89
89
|
left: "dropdown-left",
|
|
90
90
|
right: "dropdown-right",
|
|
91
91
|
bottom: "dropdown-bottom",
|
|
@@ -93,69 +93,69 @@ const Ve = {
|
|
|
93
93
|
}, e = {
|
|
94
94
|
start: "",
|
|
95
95
|
end: "dropdown-end"
|
|
96
|
-
}, t =
|
|
97
|
-
return (
|
|
98
|
-
class:
|
|
96
|
+
}, t = u;
|
|
97
|
+
return (r, s) => (a(), l("div", {
|
|
98
|
+
class: x(["dropdown", o[t.position], e[t.floatPosition], { "dropdown-open": t.forceOpen }, { "dropdown-hover": t.openOnHover }])
|
|
99
99
|
}, [
|
|
100
|
-
|
|
100
|
+
w(r.$slots, "default", {
|
|
101
101
|
tabindex: "0",
|
|
102
102
|
role: "button"
|
|
103
103
|
}, () => [
|
|
104
|
-
|
|
104
|
+
s[0] || (s[0] = n("div", { class: "m-1 btn" }, "Open dropdown", -1))
|
|
105
105
|
]),
|
|
106
|
-
n("ul",
|
|
107
|
-
(a(!0),
|
|
106
|
+
n("ul", ze, [
|
|
107
|
+
(a(!0), l(_, null, C(r.items, (p) => (a(), l("li", null, [
|
|
108
108
|
n("a", {
|
|
109
109
|
href: p.link
|
|
110
|
-
},
|
|
110
|
+
}, $(p.text), 9, Le)
|
|
111
111
|
]))), 256)),
|
|
112
|
-
|
|
112
|
+
w(r.$slots, "additional")
|
|
113
113
|
])
|
|
114
114
|
], 2));
|
|
115
115
|
}
|
|
116
|
-
}),
|
|
116
|
+
}), je = { class: "modal-box" }, Ne = { class: "modal-action" }, zn = /* @__PURE__ */ V({
|
|
117
117
|
__name: "modal",
|
|
118
118
|
props: {
|
|
119
119
|
position: { default: "center" },
|
|
120
120
|
withBackdrop: { type: Boolean, default: !1 }
|
|
121
121
|
},
|
|
122
|
-
setup(
|
|
123
|
-
const
|
|
122
|
+
setup(u) {
|
|
123
|
+
const o = u, e = {
|
|
124
124
|
top: "modal-top",
|
|
125
125
|
bottom: "modal-bottom",
|
|
126
126
|
center: "modal-middle"
|
|
127
|
-
}, t =
|
|
127
|
+
}, t = S(null), r = () => {
|
|
128
128
|
var p;
|
|
129
129
|
(p = t.value) == null || p.showModal();
|
|
130
|
-
},
|
|
130
|
+
}, s = () => {
|
|
131
131
|
var p;
|
|
132
132
|
(p = t.value) == null || p.close();
|
|
133
133
|
};
|
|
134
|
-
return (p,
|
|
134
|
+
return (p, h) => (a(), l(_, null, [
|
|
135
135
|
n("span", {
|
|
136
136
|
class: "w-fit cursor-pointer",
|
|
137
|
-
onClick:
|
|
137
|
+
onClick: r
|
|
138
138
|
}, [
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
w(p.$slots, "trigger", { role: "button" }, () => [
|
|
140
|
+
h[0] || (h[0] = n("button", { class: "btn" }, "Open", -1))
|
|
141
141
|
])
|
|
142
142
|
]),
|
|
143
143
|
n("dialog", {
|
|
144
144
|
ref_key: "dialog",
|
|
145
145
|
ref: t,
|
|
146
|
-
class:
|
|
146
|
+
class: x(["modal", e[o.position]])
|
|
147
147
|
}, [
|
|
148
|
-
n("div",
|
|
149
|
-
|
|
150
|
-
n("div",
|
|
151
|
-
|
|
148
|
+
n("div", je, [
|
|
149
|
+
w(p.$slots, "default"),
|
|
150
|
+
n("div", Ne, [
|
|
151
|
+
w(p.$slots, "actions"),
|
|
152
152
|
n("form", {
|
|
153
153
|
method: "dialog",
|
|
154
|
-
onSubmit:
|
|
155
|
-
class:
|
|
154
|
+
onSubmit: s,
|
|
155
|
+
class: x(p.withBackdrop ? "modal-backdrop" : "")
|
|
156
156
|
}, [
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
w(p.$slots, "close-button", {}, () => [
|
|
158
|
+
h[1] || (h[1] = n("button", { class: "btn" }, "Close", -1))
|
|
159
159
|
])
|
|
160
160
|
], 34)
|
|
161
161
|
])
|
|
@@ -163,22 +163,22 @@ const Ve = {
|
|
|
163
163
|
], 2)
|
|
164
164
|
], 64));
|
|
165
165
|
}
|
|
166
|
-
}),
|
|
166
|
+
}), Re = { class: "swap-on" }, Fe = { class: "swap-off" }, Ln = /* @__PURE__ */ V({
|
|
167
167
|
__name: "swap",
|
|
168
168
|
props: {
|
|
169
169
|
effect: {}
|
|
170
170
|
},
|
|
171
|
-
setup(
|
|
172
|
-
const
|
|
173
|
-
return (e, t) => (a(),
|
|
174
|
-
class:
|
|
171
|
+
setup(u) {
|
|
172
|
+
const o = u;
|
|
173
|
+
return (e, t) => (a(), l("label", {
|
|
174
|
+
class: x(["swap", o.effect ? `swap-${e.effect}` : ""])
|
|
175
175
|
}, [
|
|
176
176
|
t[0] || (t[0] = n("input", { type: "checkbox" }, null, -1)),
|
|
177
|
-
n("div",
|
|
178
|
-
|
|
177
|
+
n("div", Re, [
|
|
178
|
+
w(e.$slots, "on")
|
|
179
179
|
]),
|
|
180
|
-
n("div",
|
|
181
|
-
|
|
180
|
+
n("div", Fe, [
|
|
181
|
+
w(e.$slots, "off")
|
|
182
182
|
])
|
|
183
183
|
], 2));
|
|
184
184
|
}
|
|
@@ -189,14 +189,14 @@ const Ve = {
|
|
|
189
189
|
* This source code is licensed under the ISC license.
|
|
190
190
|
* See the LICENSE file in the root directory of this source tree.
|
|
191
191
|
*/
|
|
192
|
-
const
|
|
192
|
+
const Ee = (u) => u.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
193
193
|
/**
|
|
194
194
|
* @license lucide-vue-next v0.468.0 - ISC
|
|
195
195
|
*
|
|
196
196
|
* This source code is licensed under the ISC license.
|
|
197
197
|
* See the LICENSE file in the root directory of this source tree.
|
|
198
198
|
*/
|
|
199
|
-
var
|
|
199
|
+
var ee = {
|
|
200
200
|
xmlns: "http://www.w3.org/2000/svg",
|
|
201
201
|
width: 24,
|
|
202
202
|
height: 24,
|
|
@@ -213,18 +213,18 @@ var W = {
|
|
|
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
|
|
216
|
+
const qe = ({ size: u, strokeWidth: o = 2, absoluteStrokeWidth: e, color: t, iconNode: r, name: s, class: p, ...h }, { slots: v }) => oe(
|
|
217
217
|
"svg",
|
|
218
218
|
{
|
|
219
|
-
...
|
|
220
|
-
width:
|
|
221
|
-
height:
|
|
222
|
-
stroke: t ||
|
|
223
|
-
"stroke-width": e ? Number(
|
|
224
|
-
class: ["lucide", `lucide-${
|
|
225
|
-
...
|
|
219
|
+
...ee,
|
|
220
|
+
width: u || ee.width,
|
|
221
|
+
height: u || ee.height,
|
|
222
|
+
stroke: t || ee.stroke,
|
|
223
|
+
"stroke-width": e ? Number(o) * 24 / Number(u) : o,
|
|
224
|
+
class: ["lucide", `lucide-${Ee(s ?? "icon")}`],
|
|
225
|
+
...h
|
|
226
226
|
},
|
|
227
|
-
[...
|
|
227
|
+
[...r.map((m) => oe(...m)), ...v.default ? [v.default()] : []]
|
|
228
228
|
);
|
|
229
229
|
/**
|
|
230
230
|
* @license lucide-vue-next v0.468.0 - ISC
|
|
@@ -232,12 +232,12 @@ const Ne = ({ size: d, strokeWidth: u = 2, absoluteStrokeWidth: e, color: t, ico
|
|
|
232
232
|
* This source code is licensed under the ISC license.
|
|
233
233
|
* See the LICENSE file in the root directory of this source tree.
|
|
234
234
|
*/
|
|
235
|
-
const
|
|
236
|
-
|
|
235
|
+
const ne = (u, o) => (e, { slots: t }) => oe(
|
|
236
|
+
qe,
|
|
237
237
|
{
|
|
238
238
|
...e,
|
|
239
|
-
iconNode:
|
|
240
|
-
name:
|
|
239
|
+
iconNode: o,
|
|
240
|
+
name: u
|
|
241
241
|
},
|
|
242
242
|
t
|
|
243
243
|
);
|
|
@@ -247,7 +247,7 @@ const G = (d, u) => (e, { slots: t }) => ne(
|
|
|
247
247
|
* This source code is licensed under the ISC license.
|
|
248
248
|
* See the LICENSE file in the root directory of this source tree.
|
|
249
249
|
*/
|
|
250
|
-
const
|
|
250
|
+
const We = ne("CalendarIcon", [
|
|
251
251
|
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
252
252
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
253
253
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
@@ -259,7 +259,7 @@ const Ee = G("CalendarIcon", [
|
|
|
259
259
|
* This source code is licensed under the ISC license.
|
|
260
260
|
* See the LICENSE file in the root directory of this source tree.
|
|
261
261
|
*/
|
|
262
|
-
const
|
|
262
|
+
const He = ne("MoonIcon", [
|
|
263
263
|
["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z", key: "a7tn18" }]
|
|
264
264
|
]);
|
|
265
265
|
/**
|
|
@@ -268,7 +268,7 @@ const Fe = G("MoonIcon", [
|
|
|
268
268
|
* This source code is licensed under the ISC license.
|
|
269
269
|
* See the LICENSE file in the root directory of this source tree.
|
|
270
270
|
*/
|
|
271
|
-
const
|
|
271
|
+
const ve = ne("SearchIcon", [
|
|
272
272
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
273
273
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
|
274
274
|
]);
|
|
@@ -278,7 +278,7 @@ const ce = G("SearchIcon", [
|
|
|
278
278
|
* This source code is licensed under the ISC license.
|
|
279
279
|
* See the LICENSE file in the root directory of this source tree.
|
|
280
280
|
*/
|
|
281
|
-
const
|
|
281
|
+
const Ye = ne("SunIcon", [
|
|
282
282
|
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
283
283
|
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
284
284
|
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
@@ -288,44 +288,44 @@ const He = G("SunIcon", [
|
|
|
288
288
|
["path", { d: "M20 12h2", key: "1q8mjw" }],
|
|
289
289
|
["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
|
|
290
290
|
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
291
|
-
]),
|
|
292
|
-
const e =
|
|
293
|
-
return
|
|
291
|
+
]), Je = (u, o) => {
|
|
292
|
+
const e = S(null);
|
|
293
|
+
return H(() => {
|
|
294
294
|
if (typeof window < "u") {
|
|
295
|
-
const t = window.localStorage.getItem(
|
|
296
|
-
e.value = t ? JSON.parse(t) :
|
|
295
|
+
const t = window.localStorage.getItem(u);
|
|
296
|
+
e.value = t ? JSON.parse(t) : o;
|
|
297
297
|
}
|
|
298
|
-
}),
|
|
299
|
-
typeof window < "u" && window.localStorage.setItem(
|
|
298
|
+
}), j(e, (t) => {
|
|
299
|
+
typeof window < "u" && window.localStorage.setItem(u, JSON.stringify(t));
|
|
300
300
|
}), e;
|
|
301
|
-
},
|
|
301
|
+
}, Ge = { class: "swap-rotate swap" }, Ke = ["true-value", "false-value"], jn = /* @__PURE__ */ V({
|
|
302
302
|
__name: "theme-controller",
|
|
303
303
|
props: {
|
|
304
304
|
lightTheme: { default: "light" },
|
|
305
305
|
darkTheme: { default: "dark" }
|
|
306
306
|
},
|
|
307
|
-
setup(
|
|
308
|
-
const
|
|
309
|
-
function t(
|
|
310
|
-
typeof window < "u" && window.document && document.documentElement.setAttribute("data-theme",
|
|
307
|
+
setup(u) {
|
|
308
|
+
const o = u, e = Je("theme", o.lightTheme);
|
|
309
|
+
function t(r) {
|
|
310
|
+
typeof window < "u" && window.document && document.documentElement.setAttribute("data-theme", r);
|
|
311
311
|
}
|
|
312
|
-
return
|
|
313
|
-
t(
|
|
314
|
-
}), (
|
|
315
|
-
|
|
312
|
+
return H(() => t(e.value ? e.value : "")), j(e, (r) => {
|
|
313
|
+
t(r);
|
|
314
|
+
}), (r, s) => (a(), l("label", Ge, [
|
|
315
|
+
U(n("input", {
|
|
316
316
|
type: "checkbox",
|
|
317
317
|
class: "theme-controller",
|
|
318
|
-
"onUpdate:modelValue":
|
|
319
|
-
"true-value":
|
|
320
|
-
"false-value":
|
|
321
|
-
}, null, 8,
|
|
322
|
-
[
|
|
318
|
+
"onUpdate:modelValue": s[0] || (s[0] = (p) => Ie(e) ? e.value = p : null),
|
|
319
|
+
"true-value": o.lightTheme,
|
|
320
|
+
"false-value": o.darkTheme
|
|
321
|
+
}, null, 8, Ke), [
|
|
322
|
+
[Be, z(e)]
|
|
323
323
|
]),
|
|
324
|
-
|
|
325
|
-
|
|
324
|
+
X(z(Ye), { class: "swap-off fill-current" }),
|
|
325
|
+
X(z(He), { class: "swap-on fill-current" })
|
|
326
326
|
]));
|
|
327
327
|
}
|
|
328
|
-
}), Xe = ["name"],
|
|
328
|
+
}), Xe = ["name"], Ze = { class: "collapse-title font-bold text-2xl lg:text-4xl" }, Qe = { class: "collapse-content" }, et = ["innerHTML"], Nn = /* @__PURE__ */ V({
|
|
329
329
|
__name: "accordion",
|
|
330
330
|
props: {
|
|
331
331
|
name: {},
|
|
@@ -333,26 +333,26 @@ const He = G("SunIcon", [
|
|
|
333
333
|
joinItems: { type: Boolean, default: !1 },
|
|
334
334
|
icon: {}
|
|
335
335
|
},
|
|
336
|
-
setup(
|
|
337
|
-
const
|
|
338
|
-
return (e, t) => (a(!0),
|
|
339
|
-
class:
|
|
340
|
-
key:
|
|
336
|
+
setup(u) {
|
|
337
|
+
const o = u;
|
|
338
|
+
return (e, t) => (a(!0), l(_, null, C(o.items, (r, s) => (a(), l("div", {
|
|
339
|
+
class: x(["collapse border border-base-300", [e.icon ? `collapse-${e.icon}` : "", { "join-item": e.joinItems }]]),
|
|
340
|
+
key: s
|
|
341
341
|
}, [
|
|
342
342
|
n("input", {
|
|
343
343
|
type: "radio",
|
|
344
344
|
name: e.name,
|
|
345
345
|
value: "true"
|
|
346
346
|
}, null, 8, Xe),
|
|
347
|
-
n("div",
|
|
348
|
-
n("div",
|
|
347
|
+
n("div", Ze, $(r.title), 1),
|
|
348
|
+
n("div", Qe, [
|
|
349
349
|
n("span", {
|
|
350
|
-
innerHTML:
|
|
351
|
-
}, null, 8,
|
|
350
|
+
innerHTML: r.content
|
|
351
|
+
}, null, 8, et)
|
|
352
352
|
])
|
|
353
353
|
], 2))), 128));
|
|
354
354
|
}
|
|
355
|
-
}),
|
|
355
|
+
}), tt = ["src"], nt = { class: "text-xl" }, Rn = /* @__PURE__ */ V({
|
|
356
356
|
__name: "avatar",
|
|
357
357
|
props: {
|
|
358
358
|
image: {},
|
|
@@ -360,41 +360,41 @@ const He = G("SunIcon", [
|
|
|
360
360
|
initials: {},
|
|
361
361
|
fullyRounded: { type: Boolean, default: !1 }
|
|
362
362
|
},
|
|
363
|
-
setup(
|
|
364
|
-
const
|
|
365
|
-
return
|
|
366
|
-
() =>
|
|
363
|
+
setup(u) {
|
|
364
|
+
const o = u, e = S(o.onlineStatus);
|
|
365
|
+
return j(
|
|
366
|
+
() => o.onlineStatus,
|
|
367
367
|
(t) => {
|
|
368
368
|
t && (e.value = t);
|
|
369
369
|
}
|
|
370
|
-
), (t,
|
|
371
|
-
class:
|
|
370
|
+
), (t, r) => (a(), l("div", {
|
|
371
|
+
class: x(["avatar", [{ "avatar-online": e.value === "online" }, { "avatar-offline": e.value === "offline" }]])
|
|
372
372
|
}, [
|
|
373
|
-
t.image ? (a(),
|
|
373
|
+
t.image ? (a(), l("div", {
|
|
374
374
|
key: 0,
|
|
375
|
-
class:
|
|
375
|
+
class: x(["rounded", [{ "rounded-full": t.fullyRounded }, { rounded: !t.fullyRounded }]])
|
|
376
376
|
}, [
|
|
377
377
|
n("img", {
|
|
378
378
|
src: t.image,
|
|
379
379
|
class: "w-full h-full"
|
|
380
|
-
}, null, 8,
|
|
381
|
-
], 2)) : (a(),
|
|
380
|
+
}, null, 8, tt)
|
|
381
|
+
], 2)) : (a(), l("div", {
|
|
382
382
|
key: 1,
|
|
383
|
-
class:
|
|
383
|
+
class: x(["flex justify-center bg-neutral p-[25%] rounded w-16 text-neutral-content text-center", [{ "rounded-full": t.fullyRounded }, { rounded: !t.fullyRounded }]])
|
|
384
384
|
}, [
|
|
385
|
-
n("p",
|
|
385
|
+
n("p", nt, $(t.initials), 1)
|
|
386
386
|
], 2))
|
|
387
387
|
], 2));
|
|
388
388
|
}
|
|
389
|
-
}),
|
|
389
|
+
}), Fn = /* @__PURE__ */ V({
|
|
390
390
|
__name: "badge",
|
|
391
391
|
props: {
|
|
392
392
|
color: { default: "neutral" },
|
|
393
393
|
outline: { type: Boolean, default: !1 },
|
|
394
394
|
size: { default: "medium" }
|
|
395
395
|
},
|
|
396
|
-
setup(
|
|
397
|
-
const
|
|
396
|
+
setup(u) {
|
|
397
|
+
const o = u, e = {
|
|
398
398
|
"extra small": "badge-xs",
|
|
399
399
|
small: "badge-sm",
|
|
400
400
|
medium: "badge-md",
|
|
@@ -410,28 +410,28 @@ const He = G("SunIcon", [
|
|
|
410
410
|
warning: "badge-warning",
|
|
411
411
|
error: "badge-error"
|
|
412
412
|
};
|
|
413
|
-
return (
|
|
414
|
-
class:
|
|
413
|
+
return (r, s) => (a(), l("span", {
|
|
414
|
+
class: x(["badge", e[o.size], t[o.color], { "badge-outline": o.outline }])
|
|
415
415
|
}, [
|
|
416
|
-
|
|
416
|
+
w(r.$slots, "default")
|
|
417
417
|
], 2));
|
|
418
418
|
}
|
|
419
|
-
}),
|
|
419
|
+
}), at = ["src", "alt"], lt = {
|
|
420
420
|
key: 1,
|
|
421
421
|
class: "w-full h-32 skeleton"
|
|
422
|
-
},
|
|
422
|
+
}, ot = {
|
|
423
423
|
key: 0,
|
|
424
424
|
class: "card-body"
|
|
425
|
-
},
|
|
425
|
+
}, st = {
|
|
426
426
|
key: 0,
|
|
427
427
|
class: "group-hover:text-primary text-lg text-left cursor-pointer card-title"
|
|
428
|
-
},
|
|
428
|
+
}, rt = {
|
|
429
429
|
key: 1,
|
|
430
430
|
class: "text-left"
|
|
431
|
-
},
|
|
431
|
+
}, it = { class: "flex-col flex-nowrap mt-auto card-actions" }, ut = {
|
|
432
432
|
key: 1,
|
|
433
433
|
class: "card-body"
|
|
434
|
-
},
|
|
434
|
+
}, En = /* @__PURE__ */ V({
|
|
435
435
|
__name: "card",
|
|
436
436
|
props: {
|
|
437
437
|
imgUrl: { default: "" },
|
|
@@ -444,191 +444,336 @@ const He = G("SunIcon", [
|
|
|
444
444
|
background: { default: "bg-base-100" },
|
|
445
445
|
color: { default: "" }
|
|
446
446
|
},
|
|
447
|
-
setup(
|
|
448
|
-
const
|
|
449
|
-
return
|
|
450
|
-
() =>
|
|
447
|
+
setup(u) {
|
|
448
|
+
const o = u, e = S(o.outlined);
|
|
449
|
+
return j(
|
|
450
|
+
() => o.outlined,
|
|
451
451
|
(t) => {
|
|
452
452
|
e.value = t;
|
|
453
453
|
}
|
|
454
|
-
), (t,
|
|
455
|
-
class:
|
|
454
|
+
), (t, r) => (a(), l("div", {
|
|
455
|
+
class: x(["group bg-base-100 shadow-xl rounded-sm min-w-64 max-w-full h-full card card-compact", [{ "border-4 border-primary": e.value }, t.color ?? "", t.background]])
|
|
456
456
|
}, [
|
|
457
457
|
n("figure", null, [
|
|
458
|
-
t.imgUrl || t.imgUrl && !t.loading ? (a(),
|
|
458
|
+
t.imgUrl || t.imgUrl && !t.loading ? (a(), l("img", {
|
|
459
459
|
key: 0,
|
|
460
460
|
src: t.imgUrl,
|
|
461
461
|
alt: t.alt,
|
|
462
|
-
class:
|
|
462
|
+
class: x(["rounded-sm w-full h-44 object-cover", {
|
|
463
463
|
hidden: t.loading
|
|
464
464
|
}])
|
|
465
|
-
}, null, 10,
|
|
466
|
-
t.loading && t.imgUrl ? (a(),
|
|
465
|
+
}, null, 10, at)) : T("", !0),
|
|
466
|
+
t.loading && t.imgUrl ? (a(), l("div", lt)) : T("", !0)
|
|
467
467
|
]),
|
|
468
|
-
t.loading ?
|
|
469
|
-
t.title ? (a(),
|
|
470
|
-
|
|
471
|
-
t.description ? (a(),
|
|
472
|
-
n("div",
|
|
473
|
-
|
|
468
|
+
t.loading ? T("", !0) : (a(), l("div", ot, [
|
|
469
|
+
t.title ? (a(), l("h2", st, $(t.title), 1)) : T("", !0),
|
|
470
|
+
w(t.$slots, "details"),
|
|
471
|
+
t.description ? (a(), l("p", rt, $(t.description), 1)) : T("", !0),
|
|
472
|
+
n("div", it, [
|
|
473
|
+
w(t.$slots, "actions")
|
|
474
474
|
])
|
|
475
475
|
])),
|
|
476
|
-
t.loading ? (a(),
|
|
476
|
+
t.loading ? (a(), l("div", ut, r[0] || (r[0] = [
|
|
477
477
|
n("div", { class: "flex flex-col gap-4 w-52" }, [
|
|
478
478
|
n("div", { class: "w-28 h-4 skeleton" }),
|
|
479
479
|
n("div", { class: "w-full h-4 skeleton" }),
|
|
480
480
|
n("div", { class: "w-full h-4 skeleton" })
|
|
481
481
|
], -1)
|
|
482
|
-
]))) :
|
|
482
|
+
]))) : T("", !0)
|
|
483
483
|
], 2));
|
|
484
484
|
}
|
|
485
|
-
}),
|
|
485
|
+
}), he = Symbol("CarouselItemStyle"), dt = { class: "relative" }, ct = { class: "top-1/2 right-5 left-5 z-10 absolute flex justify-between -translate-y-1/2 transform" }, pt = {
|
|
486
|
+
key: 0,
|
|
487
|
+
class: "bottom-5 z-10 absolute flex justify-center gap-2 py-2 w-full"
|
|
488
|
+
}, ft = ["onClick", "aria-label"], mt = /* @__PURE__ */ V({
|
|
489
|
+
__name: "carousel",
|
|
490
|
+
props: {
|
|
491
|
+
showIndicators: {
|
|
492
|
+
type: Boolean,
|
|
493
|
+
default: !0
|
|
494
|
+
},
|
|
495
|
+
initialSlide: {
|
|
496
|
+
type: Number,
|
|
497
|
+
default: 0
|
|
498
|
+
},
|
|
499
|
+
slidesPerView: {
|
|
500
|
+
type: Number,
|
|
501
|
+
default: 1,
|
|
502
|
+
validator: (u) => u >= 1
|
|
503
|
+
},
|
|
504
|
+
gap: {
|
|
505
|
+
type: Number,
|
|
506
|
+
default: 0,
|
|
507
|
+
validator: (u) => u >= 0
|
|
508
|
+
},
|
|
509
|
+
slideDuration: {
|
|
510
|
+
type: Number,
|
|
511
|
+
default: 300,
|
|
512
|
+
validator: (u) => u >= 0
|
|
513
|
+
}
|
|
514
|
+
},
|
|
515
|
+
setup(u) {
|
|
516
|
+
const o = u, e = S(o.initialSlide), t = S(null), r = S(!1), s = S(0), p = B(() => ({
|
|
517
|
+
width: `calc((100% - ${o.slidesPerView > 1 ? (o.slidesPerView - 1) * o.gap : 0}px) / ${o.slidesPerView})`
|
|
518
|
+
}));
|
|
519
|
+
Ve(he, p);
|
|
520
|
+
const h = () => {
|
|
521
|
+
if (!t.value || o.slidesPerView <= 0) return 0;
|
|
522
|
+
const f = t.value.offsetWidth, g = o.slidesPerView > 1 ? (o.slidesPerView - 1) * o.gap : 0;
|
|
523
|
+
return (f - g) / o.slidesPerView;
|
|
524
|
+
}, v = () => {
|
|
525
|
+
t.value ? s.value = t.value.children.length : s.value = 0;
|
|
526
|
+
}, m = async (f) => {
|
|
527
|
+
if (!t.value || o.slidesPerView <= 0 || r.value || (v(), s.value === 0)) return;
|
|
528
|
+
const g = (f % s.value + s.value) % s.value, k = t.value, D = h();
|
|
529
|
+
if (D <= 0) return;
|
|
530
|
+
const y = D + o.gap, I = g * y, O = k.scrollWidth - k.offsetWidth, R = Math.max(0, Math.min(I, O + 0.5));
|
|
531
|
+
r.value = !0, k.style.scrollBehavior = "auto";
|
|
532
|
+
const Y = k.scrollLeft, q = R - Y;
|
|
533
|
+
if (Math.abs(q) < 1) {
|
|
534
|
+
r.value = !1, e.value = g;
|
|
535
|
+
return;
|
|
536
|
+
}
|
|
537
|
+
const J = performance.now(), Z = (ae) => {
|
|
538
|
+
const W = ae - J, A = Math.min(1, W / o.slideDuration), le = A < 0.5 ? 4 * A * A * A : 1 - Math.pow(-2 * A + 2, 3) / 2;
|
|
539
|
+
k.scrollLeft = Y + q * le, A < 1 ? requestAnimationFrame(Z) : (k.scrollLeft = R, e.value = g, r.value = !1);
|
|
540
|
+
};
|
|
541
|
+
requestAnimationFrame(Z);
|
|
542
|
+
}, b = () => {
|
|
543
|
+
m(e.value + 1);
|
|
544
|
+
}, L = () => {
|
|
545
|
+
m(e.value - 1);
|
|
546
|
+
}, E = (f) => {
|
|
547
|
+
m(f);
|
|
548
|
+
}, M = () => {
|
|
549
|
+
if (!t.value || o.slidesPerView <= 0 || (v(), s.value === 0)) return;
|
|
550
|
+
const f = t.value, g = h();
|
|
551
|
+
if (g <= 0) return;
|
|
552
|
+
const k = Math.max(0, s.value - o.slidesPerView), D = Math.min(Math.max(0, o.initialSlide), k), y = g + o.gap, I = D * y, O = f.scrollWidth - f.offsetWidth, R = Math.max(0, Math.min(I, O + 0.5));
|
|
553
|
+
f.scrollTo({ left: R, behavior: "auto" }), e.value = D;
|
|
554
|
+
};
|
|
555
|
+
return H(() => {
|
|
556
|
+
requestAnimationFrame(() => {
|
|
557
|
+
requestAnimationFrame(M);
|
|
558
|
+
}), v();
|
|
559
|
+
}), j(() => o.initialSlide, (f) => {
|
|
560
|
+
requestAnimationFrame(() => m(f));
|
|
561
|
+
}), j(() => [o.slidesPerView, o.gap], () => {
|
|
562
|
+
requestAnimationFrame(() => {
|
|
563
|
+
requestAnimationFrame(() => {
|
|
564
|
+
if (v(), s.value === 0) return;
|
|
565
|
+
const f = Math.max(0, s.value - o.slidesPerView), g = Math.min(e.value, f), k = o.slideDuration;
|
|
566
|
+
o.slideDuration = 0, m(g), o.slideDuration = k;
|
|
567
|
+
});
|
|
568
|
+
});
|
|
569
|
+
}), (f, g) => (a(), l("div", dt, [
|
|
570
|
+
n("div", {
|
|
571
|
+
ref_key: "carouselContainer",
|
|
572
|
+
ref: t,
|
|
573
|
+
class: "rounded w-full overflow-x-scroll scroll-smooth carousel carousel-horizontal",
|
|
574
|
+
style: re({ gap: `${u.gap}px` })
|
|
575
|
+
}, [
|
|
576
|
+
w(f.$slots, "default", {}, void 0, !0)
|
|
577
|
+
], 4),
|
|
578
|
+
n("div", ct, [
|
|
579
|
+
n("div", {
|
|
580
|
+
onClick: L,
|
|
581
|
+
role: "button",
|
|
582
|
+
"aria-label": "Previous Slide"
|
|
583
|
+
}, [
|
|
584
|
+
w(f.$slots, "prevButton", {}, () => [
|
|
585
|
+
g[0] || (g[0] = n("button", {
|
|
586
|
+
class: "btn btn-circle",
|
|
587
|
+
tabindex: "-1"
|
|
588
|
+
}, "❮", -1))
|
|
589
|
+
], !0)
|
|
590
|
+
]),
|
|
591
|
+
n("div", {
|
|
592
|
+
onClick: b,
|
|
593
|
+
role: "button",
|
|
594
|
+
"aria-label": "Next Slide"
|
|
595
|
+
}, [
|
|
596
|
+
w(f.$slots, "nextButton", {}, () => [
|
|
597
|
+
g[1] || (g[1] = n("button", {
|
|
598
|
+
class: "btn btn-circle",
|
|
599
|
+
tabindex: "-1"
|
|
600
|
+
}, "❯", -1))
|
|
601
|
+
], !0)
|
|
602
|
+
])
|
|
603
|
+
]),
|
|
604
|
+
u.showIndicators ? (a(), l("div", pt, [
|
|
605
|
+
(a(!0), l(_, null, C(s.value, (k, D) => (a(), l("button", {
|
|
606
|
+
key: `dot-${D}`,
|
|
607
|
+
onClick: (y) => E(D),
|
|
608
|
+
class: x(["btn btn-circle btn-xs", { "btn-active": D === e.value }]),
|
|
609
|
+
"aria-label": `Go to slide ${D + 1}`
|
|
610
|
+
}, null, 10, ft))), 128))
|
|
611
|
+
])) : T("", !0)
|
|
612
|
+
]));
|
|
613
|
+
}
|
|
614
|
+
}), G = (u, o) => {
|
|
615
|
+
const e = u.__vccOpts || u;
|
|
616
|
+
for (const [t, r] of o)
|
|
617
|
+
e[t] = r;
|
|
618
|
+
return e;
|
|
619
|
+
}, qn = /* @__PURE__ */ G(mt, [["__scopeId", "data-v-f820adac"]]), vt = /* @__PURE__ */ V({
|
|
620
|
+
__name: "carouselItem",
|
|
621
|
+
setup(u) {
|
|
622
|
+
const o = Pe(he, S({}));
|
|
623
|
+
return (e, t) => (a(), l("div", {
|
|
624
|
+
class: "relative w-full carousel-item",
|
|
625
|
+
style: re(z(o))
|
|
626
|
+
}, [
|
|
627
|
+
w(e.$slots, "default", {}, void 0, !0)
|
|
628
|
+
], 4));
|
|
629
|
+
}
|
|
630
|
+
}), Wn = /* @__PURE__ */ G(vt, [["__scopeId", "data-v-b38df5e3"]]), gt = { class: "flex gap-4 bg-base-100 w-full tabs tabs-boxed" }, ht = ["onClick"], bt = { class: "text-sm" }, yt = { class: "md:block hidden opacity-35 text-xs truncate overflow-hidden ..." }, wt = { class: "hidden" }, kt = {
|
|
486
631
|
id: "advancedSearchMobile",
|
|
487
632
|
class: "modal"
|
|
488
|
-
},
|
|
633
|
+
}, _t = { class: "modal-box" }, $t = { class: "font-bold text-lg" }, St = ["checked"], xt = { class: "flex justify-between items-center pr-4 w-full font-medium text-xl collapse-title" }, Ct = { class: "text-sm" }, Dt = { class: "flex place-content-center p-0 collapse-content" }, Mt = /* @__PURE__ */ V({
|
|
489
634
|
__name: "advancedSearch",
|
|
490
635
|
props: {
|
|
491
636
|
searchOptions: {},
|
|
492
637
|
currentCategory: {}
|
|
493
638
|
},
|
|
494
639
|
emits: ["search", "update:search-data"],
|
|
495
|
-
setup(
|
|
496
|
-
const e =
|
|
497
|
-
datetime:
|
|
498
|
-
}, p =
|
|
499
|
-
function m(
|
|
500
|
-
var
|
|
501
|
-
if ((
|
|
640
|
+
setup(u, { emit: o }) {
|
|
641
|
+
const e = u, t = o, r = S(null), s = {
|
|
642
|
+
datetime: Oe(() => Promise.resolve().then(() => Qt))
|
|
643
|
+
}, p = S({}), h = S({ left: "0px", top: "0px", transform: "translateX(0%)" }), v = S(null);
|
|
644
|
+
function m(f, g) {
|
|
645
|
+
var k, D, y;
|
|
646
|
+
if ((k = r.value) != null && k.name) {
|
|
502
647
|
t("update:search-data", {
|
|
503
|
-
tab:
|
|
504
|
-
data:
|
|
648
|
+
tab: r.value.name,
|
|
649
|
+
data: f
|
|
505
650
|
});
|
|
506
651
|
return;
|
|
507
652
|
}
|
|
508
653
|
if (e.searchOptions) {
|
|
509
|
-
let
|
|
510
|
-
|
|
511
|
-
tab:
|
|
512
|
-
data:
|
|
654
|
+
let I = (y = (D = e.searchOptions) == null ? void 0 : D.find((O) => (O == null ? void 0 : O.category) === e.currentCategory)) == null ? void 0 : y.tabs[g];
|
|
655
|
+
I !== void 0 && (I.value = f, t("update:search-data", {
|
|
656
|
+
tab: I == null ? void 0 : I.name,
|
|
657
|
+
data: I == null ? void 0 : I.value
|
|
513
658
|
}));
|
|
514
659
|
}
|
|
515
660
|
}
|
|
516
|
-
function
|
|
661
|
+
function b() {
|
|
517
662
|
t("search");
|
|
518
663
|
}
|
|
519
|
-
async function
|
|
520
|
-
|
|
664
|
+
async function L(f) {
|
|
665
|
+
v.value && !v.value.contains(f.target) && (await me(), r.value = null);
|
|
521
666
|
}
|
|
522
|
-
async function
|
|
667
|
+
async function E() {
|
|
523
668
|
if (typeof window < "u" && window.innerWidth <= 768) {
|
|
524
|
-
const
|
|
525
|
-
|
|
669
|
+
const f = document.getElementById("advancedSearchMobile");
|
|
670
|
+
f ? f.showModal() : console.warn("Modal element not found.");
|
|
526
671
|
}
|
|
527
672
|
}
|
|
528
|
-
async function
|
|
529
|
-
var
|
|
530
|
-
|
|
531
|
-
const
|
|
532
|
-
if (
|
|
533
|
-
const
|
|
534
|
-
window.innerWidth > 768 ?
|
|
535
|
-
left: `${
|
|
536
|
-
top: `${
|
|
673
|
+
async function M(f) {
|
|
674
|
+
var k;
|
|
675
|
+
r.value = f, await me();
|
|
676
|
+
const g = p.value[f.name];
|
|
677
|
+
if (g) {
|
|
678
|
+
const D = g.getBoundingClientRect(), y = ((k = v.value) == null ? void 0 : k.getBoundingClientRect()) || { left: 0, top: 0 };
|
|
679
|
+
window.innerWidth > 768 ? h.value = {
|
|
680
|
+
left: `${D.left + D.width / 2 - y.left}px`,
|
|
681
|
+
top: `${D.bottom - y.top}px`,
|
|
537
682
|
transform: "translateX(-50%)"
|
|
538
|
-
} :
|
|
683
|
+
} : h.value = {
|
|
539
684
|
left: "50%",
|
|
540
|
-
top: `${
|
|
685
|
+
top: `${D.bottom - y.top}px`,
|
|
541
686
|
transform: "translateX(-50%)"
|
|
542
687
|
// Center the popup horizontally on mobile
|
|
543
688
|
};
|
|
544
689
|
} else
|
|
545
|
-
console.error("Tab element not found for:",
|
|
690
|
+
console.error("Tab element not found for:", f.name);
|
|
546
691
|
}
|
|
547
|
-
return
|
|
548
|
-
document.addEventListener("click",
|
|
549
|
-
}),
|
|
550
|
-
document.removeEventListener("click",
|
|
551
|
-
}), (
|
|
552
|
-
var
|
|
553
|
-
return a(),
|
|
692
|
+
return H(() => {
|
|
693
|
+
document.addEventListener("click", L);
|
|
694
|
+
}), Ae(() => {
|
|
695
|
+
document.removeEventListener("click", L);
|
|
696
|
+
}), (f, g) => {
|
|
697
|
+
var k, D;
|
|
698
|
+
return a(), l(_, null, [
|
|
554
699
|
n("div", {
|
|
555
700
|
ref_key: "searchContainer",
|
|
556
|
-
ref:
|
|
701
|
+
ref: v,
|
|
557
702
|
class: "w-full"
|
|
558
703
|
}, [
|
|
559
704
|
n("div", {
|
|
560
705
|
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",
|
|
561
|
-
onClick:
|
|
706
|
+
onClick: E
|
|
562
707
|
}, [
|
|
563
|
-
n("div",
|
|
564
|
-
(a(!0),
|
|
565
|
-
var
|
|
566
|
-
return a(),
|
|
567
|
-
key:
|
|
568
|
-
onClick: (
|
|
569
|
-
class:
|
|
708
|
+
n("div", gt, [
|
|
709
|
+
(a(!0), l(_, null, C(((k = e.searchOptions.find((y) => y.category === e.currentCategory)) == null ? void 0 : k.tabs) || [], (y) => {
|
|
710
|
+
var I;
|
|
711
|
+
return a(), l("button", {
|
|
712
|
+
key: y.name,
|
|
713
|
+
onClick: (O) => M(y),
|
|
714
|
+
class: x([{ "tab-active": ((I = r.value) == null ? void 0 : I.name) === y.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"]),
|
|
570
715
|
ref_for: !0,
|
|
571
|
-
ref: (
|
|
716
|
+
ref: (O) => p.value[y.name] = O
|
|
572
717
|
}, [
|
|
573
|
-
n("p",
|
|
574
|
-
n("p",
|
|
575
|
-
], 10,
|
|
718
|
+
n("p", bt, $(y.name), 1),
|
|
719
|
+
n("p", yt, $(y.description), 1)
|
|
720
|
+
], 10, ht);
|
|
576
721
|
}), 128))
|
|
577
722
|
]),
|
|
578
|
-
|
|
723
|
+
r.value ? (a(), l("div", {
|
|
579
724
|
key: 0,
|
|
580
725
|
class: "absolute flex shadow-sm mt-4 w-fit max-w-full transition-all tab-content",
|
|
581
|
-
style:
|
|
726
|
+
style: re(h.value)
|
|
582
727
|
}, [
|
|
583
|
-
(a(),
|
|
584
|
-
], 4)) :
|
|
728
|
+
(a(), ce(pe(s[r.value.type]), fe(r.value.props ? r.value.props : null, { onUpdated: m }), null, 16))
|
|
729
|
+
], 4)) : T("", !0),
|
|
585
730
|
n("button", {
|
|
586
731
|
title: "search",
|
|
587
732
|
type: "submit",
|
|
588
733
|
class: "ml-1 btn btn-primary btn-square",
|
|
589
|
-
onClick:
|
|
734
|
+
onClick: b
|
|
590
735
|
}, [
|
|
591
|
-
|
|
736
|
+
X(z(ve), {
|
|
592
737
|
size: 24,
|
|
593
738
|
color: "white"
|
|
594
739
|
})
|
|
595
740
|
])
|
|
596
741
|
]),
|
|
597
|
-
n("div",
|
|
742
|
+
n("div", wt, [
|
|
598
743
|
n("button", {
|
|
599
744
|
title: "search",
|
|
600
|
-
onClick:
|
|
745
|
+
onClick: g[0] || (g[0] = () => {
|
|
601
746
|
})
|
|
602
747
|
}, [
|
|
603
|
-
|
|
748
|
+
X(z(ve), {
|
|
604
749
|
size: 24,
|
|
605
750
|
color: "white"
|
|
606
751
|
})
|
|
607
752
|
])
|
|
608
753
|
])
|
|
609
754
|
], 512),
|
|
610
|
-
n("dialog",
|
|
611
|
-
n("div",
|
|
612
|
-
|
|
613
|
-
n("h3",
|
|
755
|
+
n("dialog", kt, [
|
|
756
|
+
n("div", _t, [
|
|
757
|
+
w(f.$slots, "additionalForMobile", {}, () => [
|
|
758
|
+
n("h3", $t, $(f.currentCategory), 1)
|
|
614
759
|
], !0),
|
|
615
|
-
(a(!0),
|
|
760
|
+
(a(!0), l(_, null, C(((D = e.searchOptions.find((y) => y.category === e.currentCategory)) == null ? void 0 : D.tabs) || [], (y, I) => (a(), l("div", {
|
|
616
761
|
class: "bg-base-200 my-4 collapse",
|
|
617
|
-
key:
|
|
762
|
+
key: y.name
|
|
618
763
|
}, [
|
|
619
764
|
n("input", {
|
|
620
765
|
type: "radio",
|
|
621
766
|
name: "my-accordion-1",
|
|
622
|
-
checked:
|
|
623
|
-
}, null, 8,
|
|
624
|
-
n("div",
|
|
625
|
-
|
|
626
|
-
n("p",
|
|
767
|
+
checked: I === 0
|
|
768
|
+
}, null, 8, St),
|
|
769
|
+
n("div", xt, [
|
|
770
|
+
se($(y.name) + " ", 1),
|
|
771
|
+
n("p", Ct, $(y.description), 1)
|
|
627
772
|
]),
|
|
628
|
-
n("div",
|
|
629
|
-
|
|
630
|
-
(a(),
|
|
631
|
-
onUpdated: (
|
|
773
|
+
n("div", Dt, [
|
|
774
|
+
g[1] || (g[1] = n("br", null, null, -1)),
|
|
775
|
+
(a(), ce(pe(s[y.type]), fe({ ref_for: !0 }, y.props || {}, {
|
|
776
|
+
onUpdated: (O) => m(O, I)
|
|
632
777
|
}), null, 16, ["onUpdated"]))
|
|
633
778
|
])
|
|
634
779
|
]))), 128)),
|
|
@@ -636,7 +781,7 @@ const He = G("SunIcon", [
|
|
|
636
781
|
n("form", { method: "dialog" }, [
|
|
637
782
|
n("button", {
|
|
638
783
|
class: "btn btn-primary",
|
|
639
|
-
onClick:
|
|
784
|
+
onClick: b
|
|
640
785
|
}, "Close and Search")
|
|
641
786
|
])
|
|
642
787
|
])
|
|
@@ -645,43 +790,38 @@ const He = G("SunIcon", [
|
|
|
645
790
|
], 64);
|
|
646
791
|
};
|
|
647
792
|
}
|
|
648
|
-
}),
|
|
649
|
-
const e = d.__vccOpts || d;
|
|
650
|
-
for (const [t, l] of u)
|
|
651
|
-
e[t] = l;
|
|
652
|
-
return e;
|
|
653
|
-
}, An = /* @__PURE__ */ Q(yt, [["__scopeId", "data-v-08fa37eb"]]), wt = ["placeholder", "value", "id"], kt = { class: "btn btn-ghost" }, _t = ["id"], $t = {
|
|
793
|
+
}), Hn = /* @__PURE__ */ G(Mt, [["__scopeId", "data-v-08fa37eb"]]), Tt = ["placeholder", "value", "id"], It = { class: "btn btn-ghost" }, Bt = ["id"], Vt = {
|
|
654
794
|
key: 0,
|
|
655
795
|
class: "flex justify-between items-center place-content-center mb-4"
|
|
656
|
-
},
|
|
796
|
+
}, Pt = ["value"], Ot = ["value"], At = {
|
|
657
797
|
key: 1,
|
|
658
798
|
class: "gap-2 grid grid-cols-7"
|
|
659
|
-
},
|
|
799
|
+
}, Ut = ["onClick"], zt = {
|
|
660
800
|
key: 2,
|
|
661
801
|
class: "mt-4 lg:w-80"
|
|
662
|
-
},
|
|
802
|
+
}, Lt = {
|
|
663
803
|
key: 0,
|
|
664
804
|
class: "mb-2 font-bold text-lg"
|
|
665
|
-
},
|
|
805
|
+
}, jt = { key: 1 }, Nt = {
|
|
666
806
|
key: 1,
|
|
667
807
|
class: "flex gap-4"
|
|
668
|
-
},
|
|
808
|
+
}, Rt = ["value"], Ft = ["value"], Et = {
|
|
669
809
|
key: 2,
|
|
670
810
|
class: "flex flex-col gap-4"
|
|
671
|
-
},
|
|
811
|
+
}, qt = {
|
|
672
812
|
key: 1,
|
|
673
813
|
class: "flex gap-2"
|
|
674
|
-
},
|
|
814
|
+
}, Wt = ["value"], Ht = ["value"], Yt = {
|
|
675
815
|
key: 1,
|
|
676
816
|
class: "flex gap-2"
|
|
677
|
-
},
|
|
817
|
+
}, Jt = ["value"], Gt = ["value"], Kt = { class: "flex gap-2 mt-4" }, Xt = {
|
|
678
818
|
__name: "datetimePicker",
|
|
679
819
|
props: {
|
|
680
820
|
mode: {
|
|
681
821
|
type: String,
|
|
682
822
|
default: "datetime",
|
|
683
823
|
// 'datetime', 'date', 'time'
|
|
684
|
-
validator: (
|
|
824
|
+
validator: (u) => ["datetime", "date", "time"].includes(u)
|
|
685
825
|
},
|
|
686
826
|
range: {
|
|
687
827
|
type: Boolean,
|
|
@@ -705,123 +845,123 @@ const He = G("SunIcon", [
|
|
|
705
845
|
}
|
|
706
846
|
},
|
|
707
847
|
emits: ["updated"],
|
|
708
|
-
setup(
|
|
709
|
-
const e =
|
|
710
|
-
|
|
711
|
-
|
|
848
|
+
setup(u, { emit: o }) {
|
|
849
|
+
const e = u;
|
|
850
|
+
j(() => e.range, (d) => {
|
|
851
|
+
d ? (s.value = { start: null, end: null }, p.value = { start: null, end: null }) : (s.value = null, p.value = null);
|
|
712
852
|
});
|
|
713
|
-
const t =
|
|
714
|
-
|
|
715
|
-
const
|
|
716
|
-
const
|
|
717
|
-
return Array.from({ length:
|
|
718
|
-
}),
|
|
853
|
+
const t = o, r = S(!1), s = S(e.range ? { start: null, end: null } : null), p = S(e.range ? { start: null, end: null } : null), h = S((/* @__PURE__ */ new Date()).toLocaleString("default", { month: "long" })), v = S((/* @__PURE__ */ new Date()).getFullYear()), m = S(e.range ? { start: 0, end: 0 } : 0), b = S(e.range ? { start: 0, end: 0 } : 0), L = S(null), E = B(() => `${e.id}-input`), M = B(() => `${e.id}-popup`), f = B(() => e.mode === "date" || e.mode === "datetime"), g = B(() => e.mode === "time" || e.mode === "datetime");
|
|
854
|
+
B(() => new Date(v.value, k.value));
|
|
855
|
+
const k = B(() => J.indexOf(h.value)), D = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], y = B(() => new Date(v.value, k.value).getDay()), I = B(() => {
|
|
856
|
+
const d = new Date(v.value, k.value + 1, 0).getDate();
|
|
857
|
+
return Array.from({ length: d }, (c, i) => new Date(v.value, k.value, i + 1));
|
|
858
|
+
}), O = B(() => Array.from({ length: y.value }, (d, c) => c)), R = Array.from({ length: 24 }, (d, c) => c), Y = Array.from({ length: 60 }, (d, c) => c), q = B(
|
|
719
859
|
() => typeof navigator < "u" && /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
|
|
720
860
|
navigator.userAgent
|
|
721
861
|
)
|
|
722
|
-
),
|
|
723
|
-
const
|
|
724
|
-
return Array.from({ length: 100 }, (c,
|
|
725
|
-
}),
|
|
726
|
-
if (!
|
|
727
|
-
if (e.range &&
|
|
728
|
-
const
|
|
729
|
-
return `${
|
|
862
|
+
), J = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], Z = B(() => {
|
|
863
|
+
const d = (/* @__PURE__ */ new Date()).getFullYear();
|
|
864
|
+
return Array.from({ length: 100 }, (c, i) => d - 50 + i);
|
|
865
|
+
}), ae = B(() => {
|
|
866
|
+
if (!f.value || !s.value) return "";
|
|
867
|
+
if (e.range && s.value.start && s.value.end) {
|
|
868
|
+
const d = s.value.start.toLocaleDateString("en-US"), c = s.value.end.toLocaleDateString("en-US");
|
|
869
|
+
return `${d} - ${c}`;
|
|
730
870
|
}
|
|
731
|
-
return !e.range &&
|
|
732
|
-
}),
|
|
733
|
-
if (!
|
|
734
|
-
const
|
|
735
|
-
var
|
|
736
|
-
const
|
|
737
|
-
return
|
|
871
|
+
return !e.range && s.value ? s.value.toLocaleDateString("en-US") : "";
|
|
872
|
+
}), W = (d) => d instanceof Date ? d : new Date(d), A = (d) => d instanceof Date && !isNaN(d), le = B(() => {
|
|
873
|
+
if (!g.value) return "";
|
|
874
|
+
const d = (c) => {
|
|
875
|
+
var Q, K, de;
|
|
876
|
+
const i = ((Q = m.value) == null ? void 0 : Q[c]) ?? m.value, N = ((K = b.value) == null ? void 0 : K[c]) ?? b.value;
|
|
877
|
+
return q.value ? ((de = p.value) == null ? void 0 : de[c]) ?? p.value : `${i.toString().padStart(2, "0")}:${N.toString().padStart(2, "0")}`;
|
|
738
878
|
};
|
|
739
|
-
return e.range ? `${
|
|
740
|
-
}),
|
|
741
|
-
const
|
|
742
|
-
return `${
|
|
743
|
-
}),
|
|
744
|
-
|
|
745
|
-
},
|
|
746
|
-
|
|
747
|
-
},
|
|
748
|
-
e.range ?
|
|
749
|
-
},
|
|
750
|
-
|
|
879
|
+
return e.range ? `${d("start")} - ${d("end")}` : d();
|
|
880
|
+
}), be = B(() => {
|
|
881
|
+
const d = ae.value, c = le.value;
|
|
882
|
+
return `${d} ${c}`.trim();
|
|
883
|
+
}), ye = () => r.value = !r.value, ie = () => {
|
|
884
|
+
P(), we();
|
|
885
|
+
}, we = () => r.value = !1, ke = () => {
|
|
886
|
+
s.value = e.range ? { start: null, end: null } : null, p.value = e.range ? { start: null, end: null } : null, P();
|
|
887
|
+
}, _e = (d) => {
|
|
888
|
+
e.range ? s.value.start && s.value.end ? s.value = { start: d, end: null } : s.value.start ? s.value.end = d : s.value.start = d : s.value = d, P();
|
|
889
|
+
}, $e = (d) => (d = W(d), e.range ? s.value.start && A(s.value.start) && d.getTime() === s.value.start.getTime() || s.value.end && A(s.value.end) && d.getTime() === s.value.end.getTime() : A(s.value) && d.getTime() === s.value.getTime()), Se = (d) => {
|
|
890
|
+
d = W(d);
|
|
751
891
|
const c = /* @__PURE__ */ new Date();
|
|
752
|
-
return
|
|
753
|
-
},
|
|
754
|
-
if (
|
|
755
|
-
const c =
|
|
756
|
-
return
|
|
892
|
+
return d.getDate() === c.getDate() && d.getMonth() === c.getMonth() && d.getFullYear() === c.getFullYear();
|
|
893
|
+
}, xe = (d) => (d = W(d), e.range && A(s.value.start) && d.getTime() === s.value.start.getTime()), Ce = (d) => (d = W(d), e.range && A(s.value.end) && d.getTime() === s.value.end.getTime()), De = (d) => {
|
|
894
|
+
if (d = W(d), e.range && A(s.value.start) && A(s.value.end)) {
|
|
895
|
+
const c = s.value.start.getTime(), i = s.value.end.getTime(), N = d.getTime();
|
|
896
|
+
return N > c && N < i;
|
|
757
897
|
}
|
|
758
898
|
return !1;
|
|
759
|
-
},
|
|
760
|
-
let
|
|
761
|
-
|
|
762
|
-
},
|
|
763
|
-
let
|
|
764
|
-
|
|
765
|
-
},
|
|
766
|
-
|
|
767
|
-
},
|
|
768
|
-
let
|
|
769
|
-
const c = (
|
|
770
|
-
|
|
771
|
-
const
|
|
772
|
-
return
|
|
899
|
+
}, Me = () => {
|
|
900
|
+
let d = k.value - 1;
|
|
901
|
+
d < 0 && (d = 11, v.value--), h.value = J[d], P();
|
|
902
|
+
}, Te = () => {
|
|
903
|
+
let d = k.value + 1;
|
|
904
|
+
d > 11 && (d = 0, v.value++), h.value = J[d], P();
|
|
905
|
+
}, ue = (d) => {
|
|
906
|
+
L.value && !L.value.contains(d.target) && r.value == !0 && ie();
|
|
907
|
+
}, P = () => {
|
|
908
|
+
let d = {};
|
|
909
|
+
const c = (i, N, Q) => {
|
|
910
|
+
i instanceof Date && !isNaN(i) || (i = /* @__PURE__ */ new Date());
|
|
911
|
+
const K = new Date(i);
|
|
912
|
+
return K.setUTCHours(N, Q, 0, 0), K.toISOString();
|
|
773
913
|
};
|
|
774
|
-
e.range ? (
|
|
775
|
-
|
|
914
|
+
e.range ? (d.from = c(
|
|
915
|
+
s.value.start,
|
|
776
916
|
m.value.start,
|
|
777
|
-
|
|
778
|
-
),
|
|
779
|
-
|
|
917
|
+
b.value.start
|
|
918
|
+
), d.to = c(
|
|
919
|
+
s.value.end,
|
|
780
920
|
m.value.end,
|
|
781
|
-
|
|
782
|
-
)) :
|
|
783
|
-
|
|
921
|
+
b.value.end
|
|
922
|
+
)) : d = c(
|
|
923
|
+
s.value,
|
|
784
924
|
m.value,
|
|
785
|
-
|
|
786
|
-
), t("updated",
|
|
925
|
+
b.value
|
|
926
|
+
), t("updated", d);
|
|
787
927
|
};
|
|
788
|
-
return
|
|
789
|
-
e.initialDate && (e.range && e.initialDate.start && e.initialDate.end ?
|
|
928
|
+
return H(() => {
|
|
929
|
+
e.initialDate && (e.range && e.initialDate.start && e.initialDate.end ? s.value = {
|
|
790
930
|
start: new Date(e.initialDate.start),
|
|
791
931
|
end: new Date(e.initialDate.end)
|
|
792
|
-
} : e.initialDate.start && (
|
|
793
|
-
}), e.popup &&
|
|
932
|
+
} : 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(), b.value.start = b.value.start ?? (/* @__PURE__ */ new Date()).getMinutes(), b.value.end = b.value.end ?? (/* @__PURE__ */ new Date()).getMinutes()) : (m.value = m.value ?? (/* @__PURE__ */ new Date()).getHours(), b.value = b.value ?? (/* @__PURE__ */ new Date()).getMinutes());
|
|
933
|
+
}), e.popup && H(() => document.addEventListener("click", ue)), ge(() => document.removeEventListener("click", ue)), (d, c) => (a(), l("div", {
|
|
794
934
|
class: "inline-block relative w-full lg:w-[360px]",
|
|
795
935
|
ref_key: "pickerContainer",
|
|
796
|
-
ref:
|
|
936
|
+
ref: L
|
|
797
937
|
}, [
|
|
798
938
|
n("div", {
|
|
799
939
|
class: "flex items-center gap-2 cursor-pointer",
|
|
800
|
-
onClick:
|
|
940
|
+
onClick: ye
|
|
801
941
|
}, [
|
|
802
|
-
|
|
942
|
+
u.popup ? w(d.$slots, "default", { key: 0 }, () => [
|
|
803
943
|
n("input", {
|
|
804
944
|
type: "text",
|
|
805
945
|
class: "input-bordered w-full cursor-pointer input",
|
|
806
|
-
placeholder:
|
|
807
|
-
value:
|
|
946
|
+
placeholder: u.placeholder,
|
|
947
|
+
value: be.value,
|
|
808
948
|
readonly: "",
|
|
809
|
-
id:
|
|
810
|
-
}, null, 8,
|
|
811
|
-
n("button",
|
|
812
|
-
|
|
949
|
+
id: E.value
|
|
950
|
+
}, null, 8, Tt),
|
|
951
|
+
n("button", It, [
|
|
952
|
+
X(z(We))
|
|
813
953
|
])
|
|
814
|
-
], !0) :
|
|
954
|
+
], !0) : T("", !0)
|
|
815
955
|
]),
|
|
816
|
-
|
|
956
|
+
r.value || !u.popup ? (a(), l("div", {
|
|
817
957
|
key: 0,
|
|
818
|
-
class:
|
|
819
|
-
id:
|
|
958
|
+
class: x(["z-50 lg:bg-base-100 md:mt-2 md:p-4 px-4 rounded-md w-full", [{ absolute: u.popup }]]),
|
|
959
|
+
id: M.value
|
|
820
960
|
}, [
|
|
821
|
-
|
|
961
|
+
f.value ? (a(), l("div", Vt, [
|
|
822
962
|
n("button", {
|
|
823
963
|
class: "hidden md:block btn-outline btn btn-primary md:btn-sm",
|
|
824
|
-
onClick:
|
|
964
|
+
onClick: Me
|
|
825
965
|
}, c[11] || (c[11] = [
|
|
826
966
|
n("svg", {
|
|
827
967
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -838,33 +978,33 @@ const He = G("SunIcon", [
|
|
|
838
978
|
})
|
|
839
979
|
], -1)
|
|
840
980
|
])),
|
|
841
|
-
|
|
981
|
+
U(n("select", {
|
|
842
982
|
class: "border-none w-fit select",
|
|
843
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
844
|
-
onChange:
|
|
983
|
+
"onUpdate:modelValue": c[0] || (c[0] = (i) => h.value = i),
|
|
984
|
+
onChange: P
|
|
845
985
|
}, [
|
|
846
|
-
(a(),
|
|
847
|
-
key:
|
|
848
|
-
value:
|
|
849
|
-
},
|
|
986
|
+
(a(), l(_, null, C(J, (i, N) => n("option", {
|
|
987
|
+
key: N,
|
|
988
|
+
value: i
|
|
989
|
+
}, $(i), 9, Pt)), 64))
|
|
850
990
|
], 544), [
|
|
851
|
-
[
|
|
991
|
+
[F, h.value]
|
|
852
992
|
]),
|
|
853
|
-
|
|
993
|
+
U(n("select", {
|
|
854
994
|
class: "border-none w-24 select",
|
|
855
|
-
"onUpdate:modelValue": c[1] || (c[1] = (
|
|
856
|
-
onChange:
|
|
995
|
+
"onUpdate:modelValue": c[1] || (c[1] = (i) => v.value = i),
|
|
996
|
+
onChange: P
|
|
857
997
|
}, [
|
|
858
|
-
(a(!0),
|
|
859
|
-
key:
|
|
860
|
-
value:
|
|
861
|
-
},
|
|
998
|
+
(a(!0), l(_, null, C(Z.value, (i) => (a(), l("option", {
|
|
999
|
+
key: i,
|
|
1000
|
+
value: i
|
|
1001
|
+
}, $(i), 9, Ot))), 128))
|
|
862
1002
|
], 544), [
|
|
863
|
-
[
|
|
1003
|
+
[F, v.value]
|
|
864
1004
|
]),
|
|
865
1005
|
n("button", {
|
|
866
1006
|
class: "hidden md:block btn-outline btn btn-primary md:btn-sm",
|
|
867
|
-
onClick:
|
|
1007
|
+
onClick: Te
|
|
868
1008
|
}, c[12] || (c[12] = [
|
|
869
1009
|
n("svg", {
|
|
870
1010
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -881,72 +1021,72 @@ const He = G("SunIcon", [
|
|
|
881
1021
|
})
|
|
882
1022
|
], -1)
|
|
883
1023
|
]))
|
|
884
|
-
])) :
|
|
885
|
-
|
|
886
|
-
(a(),
|
|
887
|
-
key:
|
|
1024
|
+
])) : T("", !0),
|
|
1025
|
+
f.value ? (a(), l("div", At, [
|
|
1026
|
+
(a(), l(_, null, C(D, (i) => n("div", {
|
|
1027
|
+
key: i,
|
|
888
1028
|
class: "text-center"
|
|
889
|
-
},
|
|
890
|
-
(a(!0),
|
|
891
|
-
key:
|
|
1029
|
+
}, $(i), 1)), 64)),
|
|
1030
|
+
(a(!0), l(_, null, C(O.value, (i) => (a(), l("div", {
|
|
1031
|
+
key: i,
|
|
892
1032
|
class: "text-center"
|
|
893
1033
|
}))), 128)),
|
|
894
|
-
(a(!0),
|
|
895
|
-
key:
|
|
896
|
-
class:
|
|
897
|
-
"bg-primary text-primary-content":
|
|
898
|
-
today:
|
|
899
|
-
"range-start bg-primary text-primary-content":
|
|
900
|
-
"range-end bg-primary text-primary-content": Ce(
|
|
901
|
-
"in-range bg-primary/20 hover:bg-primary/10":
|
|
1034
|
+
(a(!0), l(_, null, C(I.value, (i) => (a(), l("div", {
|
|
1035
|
+
key: i,
|
|
1036
|
+
class: x(["hover:bg-primary-10 py-1 rounded-full text-center cursor-pointer", {
|
|
1037
|
+
"bg-primary text-primary-content": $e(i),
|
|
1038
|
+
today: Se(i),
|
|
1039
|
+
"range-start bg-primary text-primary-content": xe(i),
|
|
1040
|
+
"range-end bg-primary text-primary-content": Ce(i),
|
|
1041
|
+
"in-range bg-primary/20 hover:bg-primary/10": De(i)
|
|
902
1042
|
}]),
|
|
903
|
-
onClick: (
|
|
904
|
-
},
|
|
905
|
-
])) :
|
|
906
|
-
|
|
907
|
-
e.range ?
|
|
908
|
-
e.range ? (a(),
|
|
1043
|
+
onClick: (N) => _e(i)
|
|
1044
|
+
}, $(i.getDate()), 11, Ut))), 128))
|
|
1045
|
+
])) : T("", !0),
|
|
1046
|
+
g.value ? (a(), l("div", zt, [
|
|
1047
|
+
e.range ? T("", !0) : (a(), l("h3", Lt, "Select Time")),
|
|
1048
|
+
e.range ? (a(), l("div", Et, [
|
|
909
1049
|
n("div", null, [
|
|
910
1050
|
c[13] || (c[13] = n("p", { class: "font-bold" }, "Start Time", -1)),
|
|
911
|
-
|
|
1051
|
+
q.value ? U((a(), l("input", {
|
|
912
1052
|
key: 0,
|
|
913
1053
|
type: "time",
|
|
914
1054
|
class: "input-bordered w-full input",
|
|
915
|
-
"onUpdate:modelValue": c[5] || (c[5] = (
|
|
916
|
-
onChange:
|
|
1055
|
+
"onUpdate:modelValue": c[5] || (c[5] = (i) => p.value.start = i),
|
|
1056
|
+
onChange: P
|
|
917
1057
|
}, null, 544)), [
|
|
918
|
-
[
|
|
919
|
-
]) : (a(),
|
|
920
|
-
|
|
1058
|
+
[te, p.value.start]
|
|
1059
|
+
]) : (a(), l("div", qt, [
|
|
1060
|
+
U(n("select", {
|
|
921
1061
|
class: "w-full select-bordered select",
|
|
922
|
-
"onUpdate:modelValue": c[6] || (c[6] = (
|
|
923
|
-
onChange:
|
|
1062
|
+
"onUpdate:modelValue": c[6] || (c[6] = (i) => m.value.start = i),
|
|
1063
|
+
onChange: P
|
|
924
1064
|
}, [
|
|
925
|
-
(a(!0),
|
|
926
|
-
key:
|
|
927
|
-
value:
|
|
928
|
-
},
|
|
1065
|
+
(a(!0), l(_, null, C(z(R), (i) => (a(), l("option", {
|
|
1066
|
+
key: i,
|
|
1067
|
+
value: i
|
|
1068
|
+
}, $(i.toString().padStart(2, "0")), 9, Wt))), 128))
|
|
929
1069
|
], 544), [
|
|
930
1070
|
[
|
|
931
|
-
|
|
1071
|
+
F,
|
|
932
1072
|
m.value.start,
|
|
933
1073
|
void 0,
|
|
934
1074
|
{ number: !0 }
|
|
935
1075
|
]
|
|
936
1076
|
]),
|
|
937
|
-
|
|
1077
|
+
U(n("select", {
|
|
938
1078
|
class: "w-full select-bordered select",
|
|
939
|
-
"onUpdate:modelValue": c[7] || (c[7] = (
|
|
940
|
-
onChange:
|
|
1079
|
+
"onUpdate:modelValue": c[7] || (c[7] = (i) => b.value.start = i),
|
|
1080
|
+
onChange: P
|
|
941
1081
|
}, [
|
|
942
|
-
(a(!0),
|
|
943
|
-
key:
|
|
944
|
-
value:
|
|
945
|
-
},
|
|
1082
|
+
(a(!0), l(_, null, C(z(Y), (i) => (a(), l("option", {
|
|
1083
|
+
key: i,
|
|
1084
|
+
value: i
|
|
1085
|
+
}, $(i.toString().padStart(2, "0")), 9, Ht))), 128))
|
|
946
1086
|
], 544), [
|
|
947
1087
|
[
|
|
948
|
-
|
|
949
|
-
|
|
1088
|
+
F,
|
|
1089
|
+
b.value.start,
|
|
950
1090
|
void 0,
|
|
951
1091
|
{ number: !0 }
|
|
952
1092
|
]
|
|
@@ -955,116 +1095,116 @@ const He = G("SunIcon", [
|
|
|
955
1095
|
]),
|
|
956
1096
|
n("div", null, [
|
|
957
1097
|
c[14] || (c[14] = n("p", { class: "font-bold" }, "End Time", -1)),
|
|
958
|
-
|
|
1098
|
+
q.value ? U((a(), l("input", {
|
|
959
1099
|
key: 0,
|
|
960
1100
|
type: "time",
|
|
961
1101
|
class: "input-bordered w-full input",
|
|
962
|
-
"onUpdate:modelValue": c[8] || (c[8] = (
|
|
963
|
-
onChange:
|
|
1102
|
+
"onUpdate:modelValue": c[8] || (c[8] = (i) => p.value.end = i),
|
|
1103
|
+
onChange: P
|
|
964
1104
|
}, null, 544)), [
|
|
965
|
-
[
|
|
966
|
-
]) : (a(),
|
|
967
|
-
|
|
1105
|
+
[te, p.value.end]
|
|
1106
|
+
]) : (a(), l("div", Yt, [
|
|
1107
|
+
U(n("select", {
|
|
968
1108
|
class: "w-full select-bordered select",
|
|
969
|
-
"onUpdate:modelValue": c[9] || (c[9] = (
|
|
970
|
-
onChange:
|
|
1109
|
+
"onUpdate:modelValue": c[9] || (c[9] = (i) => m.value.end = i),
|
|
1110
|
+
onChange: P
|
|
971
1111
|
}, [
|
|
972
|
-
(a(!0),
|
|
973
|
-
key:
|
|
974
|
-
value:
|
|
975
|
-
},
|
|
1112
|
+
(a(!0), l(_, null, C(z(R), (i) => (a(), l("option", {
|
|
1113
|
+
key: i,
|
|
1114
|
+
value: i
|
|
1115
|
+
}, $(i.toString().padStart(2, "0")), 9, Jt))), 128))
|
|
976
1116
|
], 544), [
|
|
977
1117
|
[
|
|
978
|
-
|
|
1118
|
+
F,
|
|
979
1119
|
m.value.end,
|
|
980
1120
|
void 0,
|
|
981
1121
|
{ number: !0 }
|
|
982
1122
|
]
|
|
983
1123
|
]),
|
|
984
|
-
|
|
1124
|
+
U(n("select", {
|
|
985
1125
|
class: "w-full select-bordered select",
|
|
986
|
-
"onUpdate:modelValue": c[10] || (c[10] = (
|
|
987
|
-
onChange:
|
|
1126
|
+
"onUpdate:modelValue": c[10] || (c[10] = (i) => b.value.end = i),
|
|
1127
|
+
onChange: P
|
|
988
1128
|
}, [
|
|
989
|
-
(a(!0),
|
|
990
|
-
key:
|
|
991
|
-
value:
|
|
992
|
-
},
|
|
1129
|
+
(a(!0), l(_, null, C(z(Y), (i) => (a(), l("option", {
|
|
1130
|
+
key: i,
|
|
1131
|
+
value: i
|
|
1132
|
+
}, $(i.toString().padStart(2, "0")), 9, Gt))), 128))
|
|
993
1133
|
], 544), [
|
|
994
1134
|
[
|
|
995
|
-
|
|
996
|
-
|
|
1135
|
+
F,
|
|
1136
|
+
b.value.end,
|
|
997
1137
|
void 0,
|
|
998
1138
|
{ number: !0 }
|
|
999
1139
|
]
|
|
1000
1140
|
])
|
|
1001
1141
|
]))
|
|
1002
1142
|
])
|
|
1003
|
-
])) : (a(),
|
|
1004
|
-
|
|
1143
|
+
])) : (a(), l("div", jt, [
|
|
1144
|
+
q.value ? U((a(), l("input", {
|
|
1005
1145
|
key: 0,
|
|
1006
1146
|
type: "time",
|
|
1007
1147
|
class: "input-bordered w-full input",
|
|
1008
|
-
"onUpdate:modelValue": c[2] || (c[2] = (
|
|
1009
|
-
onChange:
|
|
1148
|
+
"onUpdate:modelValue": c[2] || (c[2] = (i) => p.value = i),
|
|
1149
|
+
onChange: P
|
|
1010
1150
|
}, null, 544)), [
|
|
1011
|
-
[
|
|
1012
|
-
]) : (a(),
|
|
1013
|
-
|
|
1151
|
+
[te, p.value]
|
|
1152
|
+
]) : (a(), l("div", Nt, [
|
|
1153
|
+
U(n("select", {
|
|
1014
1154
|
class: "w-full select-bordered select",
|
|
1015
|
-
"onUpdate:modelValue": c[3] || (c[3] = (
|
|
1016
|
-
onChange:
|
|
1155
|
+
"onUpdate:modelValue": c[3] || (c[3] = (i) => m.value = i),
|
|
1156
|
+
onChange: P
|
|
1017
1157
|
}, [
|
|
1018
|
-
(a(!0),
|
|
1019
|
-
key:
|
|
1020
|
-
value:
|
|
1021
|
-
},
|
|
1158
|
+
(a(!0), l(_, null, C(z(R), (i) => (a(), l("option", {
|
|
1159
|
+
key: i,
|
|
1160
|
+
value: i
|
|
1161
|
+
}, $(i.toString().padStart(2, "0")), 9, Rt))), 128))
|
|
1022
1162
|
], 544), [
|
|
1023
1163
|
[
|
|
1024
|
-
|
|
1164
|
+
F,
|
|
1025
1165
|
m.value,
|
|
1026
1166
|
void 0,
|
|
1027
1167
|
{ number: !0 }
|
|
1028
1168
|
]
|
|
1029
1169
|
]),
|
|
1030
|
-
|
|
1170
|
+
U(n("select", {
|
|
1031
1171
|
class: "w-full select-bordered select",
|
|
1032
|
-
"onUpdate:modelValue": c[4] || (c[4] = (
|
|
1033
|
-
onChange:
|
|
1172
|
+
"onUpdate:modelValue": c[4] || (c[4] = (i) => b.value = i),
|
|
1173
|
+
onChange: P
|
|
1034
1174
|
}, [
|
|
1035
|
-
(a(!0),
|
|
1036
|
-
key:
|
|
1037
|
-
value:
|
|
1038
|
-
},
|
|
1175
|
+
(a(!0), l(_, null, C(z(Y), (i) => (a(), l("option", {
|
|
1176
|
+
key: i,
|
|
1177
|
+
value: i
|
|
1178
|
+
}, $(i.toString().padStart(2, "0")), 9, Ft))), 128))
|
|
1039
1179
|
], 544), [
|
|
1040
1180
|
[
|
|
1041
|
-
|
|
1042
|
-
|
|
1181
|
+
F,
|
|
1182
|
+
b.value,
|
|
1043
1183
|
void 0,
|
|
1044
1184
|
{ number: !0 }
|
|
1045
1185
|
]
|
|
1046
1186
|
])
|
|
1047
1187
|
]))
|
|
1048
1188
|
]))
|
|
1049
|
-
])) :
|
|
1050
|
-
n("div",
|
|
1189
|
+
])) : T("", !0),
|
|
1190
|
+
n("div", Kt, [
|
|
1051
1191
|
n("button", {
|
|
1052
|
-
class:
|
|
1053
|
-
onClick:
|
|
1192
|
+
class: x(["btn btn-secondary", u.popup ? "w-fit" : "w-full"]),
|
|
1193
|
+
onClick: ke
|
|
1054
1194
|
}, "Clear", 2),
|
|
1055
|
-
|
|
1195
|
+
u.popup ? (a(), l("button", {
|
|
1056
1196
|
key: 0,
|
|
1057
1197
|
class: "btn btn-primary btn-wide",
|
|
1058
|
-
onClick:
|
|
1059
|
-
}, "Close")) :
|
|
1198
|
+
onClick: ie
|
|
1199
|
+
}, "Close")) : T("", !0)
|
|
1060
1200
|
])
|
|
1061
|
-
], 10,
|
|
1201
|
+
], 10, Bt)) : T("", !0)
|
|
1062
1202
|
], 512));
|
|
1063
1203
|
}
|
|
1064
|
-
},
|
|
1204
|
+
}, Zt = /* @__PURE__ */ G(Xt, [["__scopeId", "data-v-488ecabe"]]), Qt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1065
1205
|
__proto__: null,
|
|
1066
|
-
default:
|
|
1067
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1206
|
+
default: Zt
|
|
1207
|
+
}, Symbol.toStringTag, { value: "Module" })), en = ["value", "checked", "onChange", "disabled"], Yn = /* @__PURE__ */ V({
|
|
1068
1208
|
__name: "rating",
|
|
1069
1209
|
props: {
|
|
1070
1210
|
initialRating: { default: 0 },
|
|
@@ -1073,41 +1213,41 @@ const He = G("SunIcon", [
|
|
|
1073
1213
|
isInteractive: { type: Boolean, default: !1 },
|
|
1074
1214
|
size: { default: "sm" }
|
|
1075
1215
|
},
|
|
1076
|
-
setup(
|
|
1077
|
-
const
|
|
1078
|
-
|
|
1079
|
-
() =>
|
|
1080
|
-
(
|
|
1081
|
-
e.value =
|
|
1216
|
+
setup(u) {
|
|
1217
|
+
const o = u, e = S(o.initialRating);
|
|
1218
|
+
j(
|
|
1219
|
+
() => o.initialRating,
|
|
1220
|
+
(r) => {
|
|
1221
|
+
e.value = r;
|
|
1082
1222
|
}
|
|
1083
1223
|
);
|
|
1084
|
-
const t = (
|
|
1085
|
-
e.value =
|
|
1224
|
+
const t = (r) => {
|
|
1225
|
+
e.value = r;
|
|
1086
1226
|
};
|
|
1087
|
-
return (
|
|
1088
|
-
class:
|
|
1089
|
-
`rating-${
|
|
1090
|
-
{ "rating-half":
|
|
1227
|
+
return (r, s) => (a(), l("div", {
|
|
1228
|
+
class: x(["rating", [
|
|
1229
|
+
`rating-${o.size}`,
|
|
1230
|
+
{ "rating-half": r.halfStars }
|
|
1091
1231
|
]])
|
|
1092
1232
|
}, [
|
|
1093
|
-
(a(!0),
|
|
1233
|
+
(a(!0), l(_, null, C(r.numberOfStars * (r.halfStars ? 2 : 1), (p) => (a(), l("input", {
|
|
1094
1234
|
key: p,
|
|
1095
1235
|
type: "radio",
|
|
1096
|
-
value:
|
|
1097
|
-
checked: e.value === (
|
|
1098
|
-
onChange: (
|
|
1099
|
-
class:
|
|
1100
|
-
"bg-yellow-400": e.value >= (
|
|
1101
|
-
"mask-half-1":
|
|
1102
|
-
"mask-half-2":
|
|
1103
|
-
"cursor-pointer":
|
|
1104
|
-
"cursor-default": !
|
|
1236
|
+
value: r.halfStars ? p * 0.5 : p,
|
|
1237
|
+
checked: e.value === (r.halfStars ? p * 0.5 : p),
|
|
1238
|
+
onChange: (h) => r.isInteractive ? t(r.halfStars ? p * 0.5 : p) : null,
|
|
1239
|
+
class: x(["mask mask-star", {
|
|
1240
|
+
"bg-yellow-400": e.value >= (r.halfStars ? p * 0.5 : p),
|
|
1241
|
+
"mask-half-1": r.halfStars && p % 2 !== 0,
|
|
1242
|
+
"mask-half-2": r.halfStars && p % 2 === 0,
|
|
1243
|
+
"cursor-pointer": r.isInteractive,
|
|
1244
|
+
"cursor-default": !r.isInteractive
|
|
1105
1245
|
}]),
|
|
1106
|
-
disabled: !
|
|
1107
|
-
}, null, 42,
|
|
1246
|
+
disabled: !r.isInteractive
|
|
1247
|
+
}, null, 42, en))), 128))
|
|
1108
1248
|
], 2));
|
|
1109
1249
|
}
|
|
1110
|
-
}),
|
|
1250
|
+
}), tn = { class: "badge" }, nn = ["onClick"], an = { class: "opacity-75" }, ln = ["placeholder"], Jn = /* @__PURE__ */ V({
|
|
1111
1251
|
__name: "taginput",
|
|
1112
1252
|
props: {
|
|
1113
1253
|
modelValue: {},
|
|
@@ -1116,53 +1256,53 @@ const He = G("SunIcon", [
|
|
|
1116
1256
|
class: {}
|
|
1117
1257
|
},
|
|
1118
1258
|
emits: ["update:modelValue"],
|
|
1119
|
-
setup(
|
|
1120
|
-
const e =
|
|
1121
|
-
const
|
|
1122
|
-
|
|
1123
|
-
},
|
|
1124
|
-
|
|
1125
|
-
},
|
|
1126
|
-
|
|
1127
|
-
},
|
|
1128
|
-
|
|
1259
|
+
setup(u, { emit: o }) {
|
|
1260
|
+
const e = u, t = o, r = S([...e.modelValue]), s = e.maxTagAmount === void 0 ? -1 : e.maxTagAmount, p = S(null), h = S(""), v = B(() => s < 0 || r.value.length < s), m = () => {
|
|
1261
|
+
const M = h.value.trim();
|
|
1262
|
+
M && !r.value.includes(M) && (r.value.push(M), t("update:modelValue", r.value), h.value = "");
|
|
1263
|
+
}, b = (M) => {
|
|
1264
|
+
r.value = r.value.filter((f) => f !== M), t("update:modelValue", r.value);
|
|
1265
|
+
}, L = () => {
|
|
1266
|
+
h.value === "" && (r.value.pop(), t("update:modelValue", r.value));
|
|
1267
|
+
}, E = (M) => {
|
|
1268
|
+
M.key === "Enter" ? m() : M.key === "Backspace" && h.value === "" && L();
|
|
1129
1269
|
};
|
|
1130
|
-
return
|
|
1131
|
-
|
|
1132
|
-
}), (
|
|
1133
|
-
class:
|
|
1270
|
+
return j(() => e.modelValue, (M) => {
|
|
1271
|
+
r.value = [...M];
|
|
1272
|
+
}), (M, f) => (a(), l("div", {
|
|
1273
|
+
class: x(["flex flex-wrap gap-2 bg-base-100 shadow px-4 py-6 border border-base-content/20 rounded", M.$props.class])
|
|
1134
1274
|
}, [
|
|
1135
|
-
(a(!0),
|
|
1136
|
-
key:
|
|
1137
|
-
tag:
|
|
1275
|
+
(a(!0), l(_, null, C(r.value, (g) => w(M.$slots, "tag", {
|
|
1276
|
+
key: g,
|
|
1277
|
+
tag: g
|
|
1138
1278
|
}, () => [
|
|
1139
|
-
n("div",
|
|
1279
|
+
n("div", tn, [
|
|
1140
1280
|
n("button", {
|
|
1141
1281
|
class: "!px-1 !py-0 h-fit font-bold cursor-pointer",
|
|
1142
|
-
onClick: (
|
|
1282
|
+
onClick: (k) => b(g),
|
|
1143
1283
|
"aria-label": "Remove tag"
|
|
1144
|
-
}, "X", 8,
|
|
1145
|
-
n("span",
|
|
1284
|
+
}, "X", 8, nn),
|
|
1285
|
+
n("span", an, $(g), 1)
|
|
1146
1286
|
])
|
|
1147
1287
|
])), 128)),
|
|
1148
|
-
|
|
1149
|
-
|
|
1288
|
+
w(M.$slots, "input", { showInput: v.value }, () => [
|
|
1289
|
+
v.value ? U((a(), l("input", {
|
|
1150
1290
|
key: 0,
|
|
1151
1291
|
ref_key: "inputRef",
|
|
1152
1292
|
ref: p,
|
|
1153
|
-
"onUpdate:modelValue":
|
|
1293
|
+
"onUpdate:modelValue": f[0] || (f[0] = (g) => h.value = g),
|
|
1154
1294
|
type: "text",
|
|
1155
|
-
placeholder:
|
|
1295
|
+
placeholder: M.placeholder || "Type here",
|
|
1156
1296
|
class: "h-full input input-ghost",
|
|
1157
|
-
onKeydown:
|
|
1297
|
+
onKeydown: E,
|
|
1158
1298
|
"aria-label": "Add tags"
|
|
1159
|
-
}, null, 40,
|
|
1160
|
-
[
|
|
1161
|
-
]) :
|
|
1299
|
+
}, null, 40, ln)), [
|
|
1300
|
+
[te, h.value]
|
|
1301
|
+
]) : T("", !0)
|
|
1162
1302
|
])
|
|
1163
1303
|
], 2));
|
|
1164
1304
|
}
|
|
1165
|
-
}),
|
|
1305
|
+
}), Gn = /* @__PURE__ */ V({
|
|
1166
1306
|
__name: "loader",
|
|
1167
1307
|
props: {
|
|
1168
1308
|
loading: { type: Boolean, default: !0 },
|
|
@@ -1170,16 +1310,16 @@ const He = G("SunIcon", [
|
|
|
1170
1310
|
type: { default: "spinner" },
|
|
1171
1311
|
color: { default: "primary" }
|
|
1172
1312
|
},
|
|
1173
|
-
setup(
|
|
1174
|
-
const
|
|
1175
|
-
return
|
|
1176
|
-
() =>
|
|
1313
|
+
setup(u) {
|
|
1314
|
+
const o = u, e = S(o.loading);
|
|
1315
|
+
return j(
|
|
1316
|
+
() => o.loading,
|
|
1177
1317
|
(t) => {
|
|
1178
1318
|
e.value = t;
|
|
1179
1319
|
}
|
|
1180
|
-
), (t,
|
|
1320
|
+
), (t, r) => e.value ? (a(), l("span", {
|
|
1181
1321
|
key: 0,
|
|
1182
|
-
class:
|
|
1322
|
+
class: x(["loading", [
|
|
1183
1323
|
{ "loading-xs": t.size === "xs" },
|
|
1184
1324
|
{ "loading-sm": t.size === "sm" },
|
|
1185
1325
|
{ "loading-md": t.size === "md" },
|
|
@@ -1202,15 +1342,15 @@ const He = G("SunIcon", [
|
|
|
1202
1342
|
{ "text-warning": t.color === "warning" },
|
|
1203
1343
|
{ "text-error": t.color === "error" }
|
|
1204
1344
|
]])
|
|
1205
|
-
}, null, 2)) :
|
|
1345
|
+
}, null, 2)) : T("", !0);
|
|
1206
1346
|
}
|
|
1207
|
-
}),
|
|
1347
|
+
}), on = { class: "footer sm:footer-horizontal container" }, sn = { class: "footer-title" }, rn = ["href"], un = {
|
|
1208
1348
|
key: 0,
|
|
1209
1349
|
class: "sm:hidden w-full"
|
|
1210
|
-
},
|
|
1350
|
+
}, dn = { class: "border-b-2 border-base-100 last:border-b-0 w-full" }, cn = {
|
|
1211
1351
|
tabindex: "0",
|
|
1212
1352
|
class: "collapse collapse-plus w-full"
|
|
1213
|
-
},
|
|
1353
|
+
}, pn = { class: "collapse-title font-bold text-lg collapsible-footer-title" }, fn = { class: "collapse-content flex w-full text-sm" }, mn = { class: "flex flex-col gap-2.5" }, vn = { class: "w-full" }, gn = ["href"], hn = { class: "w-full" }, Kn = /* @__PURE__ */ V({
|
|
1214
1354
|
__name: "footer",
|
|
1215
1355
|
props: {
|
|
1216
1356
|
items: {},
|
|
@@ -1218,119 +1358,119 @@ const He = G("SunIcon", [
|
|
|
1218
1358
|
color: {},
|
|
1219
1359
|
collapseOnMobile: { type: Boolean, default: !1 }
|
|
1220
1360
|
},
|
|
1221
|
-
setup(
|
|
1222
|
-
const
|
|
1223
|
-
return (e, t) => (a(),
|
|
1224
|
-
class:
|
|
1361
|
+
setup(u) {
|
|
1362
|
+
const o = u;
|
|
1363
|
+
return (e, t) => (a(), l("div", {
|
|
1364
|
+
class: x(["mx-auto md:px-10 py-10 text-base-content", [e.background ?? "bg-base-200", e.color ?? "text-base-content"]])
|
|
1225
1365
|
}, [
|
|
1226
|
-
n("footer",
|
|
1227
|
-
(a(!0),
|
|
1228
|
-
class:
|
|
1366
|
+
n("footer", on, [
|
|
1367
|
+
(a(!0), l(_, null, C(o.items, (r) => (a(), l("nav", {
|
|
1368
|
+
class: x([{ "hidden sm:grid": e.collapseOnMobile }])
|
|
1229
1369
|
}, [
|
|
1230
|
-
n("h6",
|
|
1231
|
-
(a(!0),
|
|
1370
|
+
n("h6", sn, $(r.title), 1),
|
|
1371
|
+
(a(!0), l(_, null, C(r.items, (s) => (a(), l("a", {
|
|
1232
1372
|
class: "link link-hover",
|
|
1233
|
-
href:
|
|
1234
|
-
},
|
|
1373
|
+
href: s.link
|
|
1374
|
+
}, $(s.text), 9, rn))), 256))
|
|
1235
1375
|
], 2))), 256)),
|
|
1236
|
-
e.collapseOnMobile ? (a(),
|
|
1237
|
-
(a(!0),
|
|
1238
|
-
n("div",
|
|
1239
|
-
n("div",
|
|
1240
|
-
n("div",
|
|
1241
|
-
n("ul",
|
|
1242
|
-
(a(!0),
|
|
1376
|
+
e.collapseOnMobile ? (a(), l("nav", un, [
|
|
1377
|
+
(a(!0), l(_, null, C(o.items, (r) => (a(), l("ul", dn, [
|
|
1378
|
+
n("div", cn, [
|
|
1379
|
+
n("div", pn, $(r.title), 1),
|
|
1380
|
+
n("div", fn, [
|
|
1381
|
+
n("ul", mn, [
|
|
1382
|
+
(a(!0), l(_, null, C(r.items, (s) => (a(), l("li", vn, [
|
|
1243
1383
|
n("a", {
|
|
1244
1384
|
class: "w-full font-medium link link-hover",
|
|
1245
|
-
href:
|
|
1246
|
-
},
|
|
1385
|
+
href: s.link
|
|
1386
|
+
}, $(s.text), 9, gn)
|
|
1247
1387
|
]))), 256))
|
|
1248
1388
|
])
|
|
1249
1389
|
])
|
|
1250
1390
|
])
|
|
1251
1391
|
]))), 256))
|
|
1252
|
-
])) :
|
|
1253
|
-
n("aside",
|
|
1254
|
-
|
|
1392
|
+
])) : T("", !0),
|
|
1393
|
+
n("aside", hn, [
|
|
1394
|
+
w(e.$slots, "default")
|
|
1255
1395
|
])
|
|
1256
1396
|
])
|
|
1257
1397
|
], 2));
|
|
1258
1398
|
}
|
|
1259
|
-
}),
|
|
1260
|
-
function
|
|
1261
|
-
return a(),
|
|
1262
|
-
n("div",
|
|
1399
|
+
}), bn = {}, yn = { class: "min-h-40 container hero" }, wn = { class: "px-0! text-center hero-content" }, kn = { class: "mt-9 text-4xl" };
|
|
1400
|
+
function _n(u, o) {
|
|
1401
|
+
return a(), l("div", yn, [
|
|
1402
|
+
n("div", wn, [
|
|
1263
1403
|
n("div", null, [
|
|
1264
|
-
n("h1",
|
|
1265
|
-
|
|
1266
|
-
|
|
1404
|
+
n("h1", kn, [
|
|
1405
|
+
w(u.$slots, "title", {}, () => [
|
|
1406
|
+
o[0] || (o[0] = se("hero title"))
|
|
1267
1407
|
])
|
|
1268
1408
|
]),
|
|
1269
1409
|
n("p", null, [
|
|
1270
|
-
|
|
1410
|
+
w(u.$slots, "description", { class: "py-9" })
|
|
1271
1411
|
]),
|
|
1272
|
-
|
|
1273
|
-
|
|
1412
|
+
w(u.$slots, "call-to-action-block", { class: "max-w-full" }, () => [
|
|
1413
|
+
o[1] || (o[1] = n("button", { class: "btn btn-primary" }, "Call to action", -1))
|
|
1274
1414
|
])
|
|
1275
1415
|
])
|
|
1276
1416
|
])
|
|
1277
1417
|
]);
|
|
1278
1418
|
}
|
|
1279
|
-
const
|
|
1419
|
+
const Xn = /* @__PURE__ */ G(bn, [["render", _n]]), $n = { class: "flex flex-row place-content-center gap-4 categories" }, Sn = ["onClick"], Zn = /* @__PURE__ */ V({
|
|
1280
1420
|
__name: "categoryNavigation",
|
|
1281
1421
|
props: {
|
|
1282
1422
|
searchOptions: {},
|
|
1283
1423
|
currentCategory: {}
|
|
1284
1424
|
},
|
|
1285
1425
|
emits: ["update:currentCategory"],
|
|
1286
|
-
setup(
|
|
1287
|
-
const e =
|
|
1288
|
-
function
|
|
1289
|
-
t("update:currentCategory",
|
|
1426
|
+
setup(u, { emit: o }) {
|
|
1427
|
+
const e = u, t = o;
|
|
1428
|
+
function r(s) {
|
|
1429
|
+
t("update:currentCategory", s);
|
|
1290
1430
|
}
|
|
1291
|
-
return (
|
|
1292
|
-
(a(!0),
|
|
1293
|
-
key:
|
|
1431
|
+
return (s, p) => (a(), l("div", $n, [
|
|
1432
|
+
(a(!0), l(_, null, C(e.searchOptions, (h) => (a(), l("div", {
|
|
1433
|
+
key: h.category
|
|
1294
1434
|
}, [
|
|
1295
1435
|
n("button", {
|
|
1296
|
-
onClick: (
|
|
1297
|
-
class:
|
|
1298
|
-
}, h
|
|
1436
|
+
onClick: (v) => r(h.category),
|
|
1437
|
+
class: x(["truncate btn btn-ghost", { "font-semibold": e.currentCategory === h.category }])
|
|
1438
|
+
}, $(h.category), 11, Sn)
|
|
1299
1439
|
]))), 128))
|
|
1300
1440
|
]));
|
|
1301
1441
|
}
|
|
1302
|
-
}),
|
|
1442
|
+
}), xn = { class: "md:flex hidden navbar-start" }, Cn = { class: "md:flex justify-center items-center hidden navbar-center" }, Dn = { class: "md:flex hidden navbar-end" }, Mn = { class: "navbar-bottom md:flex hidden" }, Tn = /* @__PURE__ */ V({
|
|
1303
1443
|
__name: "navigationBar",
|
|
1304
1444
|
props: {
|
|
1305
1445
|
isCollapsed: { type: Boolean, default: !0 }
|
|
1306
1446
|
},
|
|
1307
|
-
setup(
|
|
1308
|
-
const
|
|
1309
|
-
return (e, t) => (a(),
|
|
1310
|
-
class:
|
|
1447
|
+
setup(u) {
|
|
1448
|
+
const o = u;
|
|
1449
|
+
return (e, t) => (a(), l("nav", {
|
|
1450
|
+
class: x(["place-items-start border-primary bg-base-100 px-5 py-5 border-b-4 transition-all navbar navigationbar", o.isCollapsed ? "collapsed" : ""])
|
|
1311
1451
|
}, [
|
|
1312
|
-
n("div",
|
|
1313
|
-
|
|
1452
|
+
n("div", xn, [
|
|
1453
|
+
w(e.$slots, "start", {}, void 0, !0)
|
|
1314
1454
|
]),
|
|
1315
|
-
n("div",
|
|
1316
|
-
|
|
1455
|
+
n("div", Cn, [
|
|
1456
|
+
w(e.$slots, "center", {}, void 0, !0)
|
|
1317
1457
|
]),
|
|
1318
|
-
n("div",
|
|
1319
|
-
|
|
1458
|
+
n("div", Dn, [
|
|
1459
|
+
w(e.$slots, "end", {}, void 0, !0)
|
|
1320
1460
|
]),
|
|
1321
|
-
n("div",
|
|
1322
|
-
|
|
1461
|
+
n("div", Mn, [
|
|
1462
|
+
w(e.$slots, "bottom", {}, void 0, !0)
|
|
1323
1463
|
])
|
|
1324
1464
|
], 2));
|
|
1325
1465
|
}
|
|
1326
|
-
}),
|
|
1466
|
+
}), Qn = /* @__PURE__ */ G(Tn, [["__scopeId", "data-v-8ddb2b45"]]), In = {
|
|
1327
1467
|
key: 0,
|
|
1328
1468
|
class: "hidden top-4 right-0 absolute md:flex gap-4"
|
|
1329
|
-
},
|
|
1469
|
+
}, Bn = ["onClick", "aria-selected"], Vn = {
|
|
1330
1470
|
key: 0,
|
|
1331
1471
|
role: "tabpanel",
|
|
1332
1472
|
class: "p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full overflow-x-auto tab-content"
|
|
1333
|
-
},
|
|
1473
|
+
}, Pn = { class: "p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full" }, ea = /* @__PURE__ */ V({
|
|
1334
1474
|
__name: "tab",
|
|
1335
1475
|
props: {
|
|
1336
1476
|
items: {},
|
|
@@ -1339,77 +1479,79 @@ const Ln = /* @__PURE__ */ Q(un, [["render", mn]]), fn = { class: "flex flex-row
|
|
|
1339
1479
|
buttonOnlyMode: { type: Boolean, default: !1 }
|
|
1340
1480
|
},
|
|
1341
1481
|
emits: ["tab-changed"],
|
|
1342
|
-
setup(
|
|
1343
|
-
const e =
|
|
1344
|
-
function
|
|
1345
|
-
t.value =
|
|
1482
|
+
setup(u, { emit: o }) {
|
|
1483
|
+
const e = u, t = S(e.items[0]), r = o;
|
|
1484
|
+
function s(v) {
|
|
1485
|
+
t.value = v, r("tab-changed", v);
|
|
1346
1486
|
}
|
|
1347
1487
|
function p() {
|
|
1348
1488
|
const m = (e.items.indexOf(t.value) + 1) % e.items.length;
|
|
1349
|
-
|
|
1489
|
+
s(e.items[m]);
|
|
1350
1490
|
}
|
|
1351
|
-
function
|
|
1491
|
+
function h() {
|
|
1352
1492
|
const m = (e.items.indexOf(t.value) - 1 + e.items.length) % e.items.length;
|
|
1353
|
-
|
|
1493
|
+
s(e.items[m]);
|
|
1354
1494
|
}
|
|
1355
|
-
return
|
|
1356
|
-
e.items &&
|
|
1357
|
-
}),
|
|
1495
|
+
return H(() => {
|
|
1496
|
+
e.items && s(e.items[0]);
|
|
1497
|
+
}), ge(() => {
|
|
1358
1498
|
e.rotateTabsAfter && e.rotateTabsAfter > 0 && setInterval(() => {
|
|
1359
1499
|
p();
|
|
1360
1500
|
}, e.rotateTabsAfter * 1e3);
|
|
1361
|
-
}), (
|
|
1501
|
+
}), (v, m) => (a(), l(_, null, [
|
|
1362
1502
|
n("div", {
|
|
1363
1503
|
role: "tablist",
|
|
1364
|
-
class:
|
|
1504
|
+
class: x(["relative tabs-bordered w-full tabs tabs-lg", { "flex-nowrap overflow-x-auto": v.buttonOnlyMode }])
|
|
1365
1505
|
}, [
|
|
1366
|
-
|
|
1506
|
+
v.withControlls ? (a(), l("div", In, [
|
|
1367
1507
|
n("button", {
|
|
1368
|
-
onClick: m[0] || (m[0] = (
|
|
1508
|
+
onClick: m[0] || (m[0] = (b) => h()),
|
|
1369
1509
|
class: "cursor-pointer"
|
|
1370
1510
|
}, "Previous"),
|
|
1371
1511
|
n("button", {
|
|
1372
|
-
onClick: m[1] || (m[1] = (
|
|
1512
|
+
onClick: m[1] || (m[1] = (b) => p()),
|
|
1373
1513
|
class: "text-primary cursor-pointer"
|
|
1374
1514
|
}, "Next")
|
|
1375
|
-
])) :
|
|
1376
|
-
(a(!0),
|
|
1515
|
+
])) : T("", !0),
|
|
1516
|
+
(a(!0), l(_, null, C(v.items, (b) => (a(), l(_, null, [
|
|
1377
1517
|
n("a", {
|
|
1378
1518
|
type: "button",
|
|
1379
1519
|
role: "tab",
|
|
1380
|
-
class:
|
|
1381
|
-
onClick: (
|
|
1382
|
-
"aria-selected": t.value ==
|
|
1383
|
-
},
|
|
1384
|
-
|
|
1385
|
-
|
|
1520
|
+
class: x(["min-w-max tab", b === t.value ? "bg-primary text-base-100" : ""]),
|
|
1521
|
+
onClick: (L) => s(b),
|
|
1522
|
+
"aria-selected": t.value == b
|
|
1523
|
+
}, $(b), 11, Bn),
|
|
1524
|
+
v.buttonOnlyMode ? T("", !0) : (a(), l("div", Vn, [
|
|
1525
|
+
w(v.$slots, `${b}-tab`)
|
|
1386
1526
|
]))
|
|
1387
1527
|
], 64))), 256))
|
|
1388
1528
|
], 2),
|
|
1389
|
-
n("div",
|
|
1390
|
-
|
|
1529
|
+
n("div", Pn, [
|
|
1530
|
+
w(v.$slots, "default")
|
|
1391
1531
|
])
|
|
1392
1532
|
], 64));
|
|
1393
1533
|
}
|
|
1394
1534
|
});
|
|
1395
1535
|
export {
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
zn as
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1536
|
+
Nn as Accordion,
|
|
1537
|
+
Hn as AdvancedSearch,
|
|
1538
|
+
Rn as Avatar,
|
|
1539
|
+
Fn as Badge,
|
|
1540
|
+
An as ButtonComponent,
|
|
1541
|
+
En as Card,
|
|
1542
|
+
qn as Carousel,
|
|
1543
|
+
Wn as CarouselItem,
|
|
1544
|
+
Zn as CategoryNavigation,
|
|
1545
|
+
Zt as DatetimePicker,
|
|
1546
|
+
Un as Dropdown,
|
|
1547
|
+
Kn as Footer,
|
|
1548
|
+
Xn as Hero,
|
|
1549
|
+
Gn as Loader,
|
|
1550
|
+
zn as Modal,
|
|
1551
|
+
Qn as NavigationBar,
|
|
1552
|
+
Yn as Rating,
|
|
1553
|
+
Ln as Swap,
|
|
1554
|
+
ea as Tab,
|
|
1555
|
+
Jn as TagInput,
|
|
1556
|
+
jn as ThemeController
|
|
1415
1557
|
};
|