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