@hotelinking/ui 14.47.14 → 14.47.16
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/ui.cjs +1 -1
- package/dist/ui.es.js +593 -601
- package/package.json +1 -1
package/dist/ui.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as M, createBlock as
|
|
2
|
-
import { Menu as _e, MenuButton as
|
|
1
|
+
import { defineComponent as M, createBlock as x, createElementBlock as n, openBlock as l, resolveDynamicComponent as Ee, normalizeClass as y, computed as Y, createCommentVNode as b, renderSlot as E, createElementVNode as e, ref as A, watch as H, unref as c, withCtx as f, createVNode as m, toDisplayString as g, createTextVNode as z, Transition as ae, Fragment as _, renderList as S, withDirectives as B, vModelDynamic as ct, vShow as D, withModifiers as ve, vModelText as oe, createStaticVNode as le, resolveComponent as Oe, vModelCheckbox as Ue, reactive as ne, isRef as $e, TransitionGroup as gt, onMounted as mt, shallowRef as pt, mergeProps as be } from "vue";
|
|
2
|
+
import { Menu as _e, MenuButton as Ce, MenuItems as Se, MenuItem as Be, Combobox as He, ComboboxLabel as Ze, ComboboxInput as Je, ComboboxButton as We, ComboboxOptions as Ge, ComboboxOption as Qe, SwitchGroup as ft, Switch as ht, SwitchLabel as yt, TransitionRoot as Me, Dialog as je, TransitionChild as ee, DialogPanel as De, DialogTitle as Ke, Disclosure as Te, DisclosureButton as Q, DisclosurePanel as ze, Listbox as vt, ListboxLabel as bt, ListboxButton as wt, ListboxOptions as kt, ListboxOption as xt, Popover as $t, PopoverButton as _t, PopoverPanel as Ct } from "@headlessui/vue";
|
|
3
3
|
import V from "dayjs";
|
|
4
|
-
import
|
|
4
|
+
import Le from "vue3-apexcharts";
|
|
5
5
|
import St from "vue3-draggable";
|
|
6
6
|
import Bt from "@vueform/slider";
|
|
7
|
-
const
|
|
7
|
+
const F = /* @__PURE__ */ M({
|
|
8
8
|
__name: "uiIcon",
|
|
9
9
|
props: {
|
|
10
10
|
icon: {},
|
|
@@ -22,7 +22,7 @@ const O = /* @__PURE__ */ M({
|
|
|
22
22
|
"h-12 w-12": u.size === "huge",
|
|
23
23
|
"h-20 w-20": u.size === "massive"
|
|
24
24
|
}, "animate-pulse rounded-full bg-gray-200 dark:bg-gray-300"])
|
|
25
|
-
}, null, 2)) : (l(),
|
|
25
|
+
}, null, 2)) : (l(), x(Ee(u.icon), {
|
|
26
26
|
key: 0,
|
|
27
27
|
class: y({
|
|
28
28
|
"h-4 w-4": u.size === "medium",
|
|
@@ -72,7 +72,7 @@ const O = /* @__PURE__ */ M({
|
|
|
72
72
|
class: y(o.value),
|
|
73
73
|
type: "button"
|
|
74
74
|
}, [
|
|
75
|
-
t.icon ? (l(),
|
|
75
|
+
t.icon ? (l(), x(F, {
|
|
76
76
|
key: 0,
|
|
77
77
|
icon: t.icon,
|
|
78
78
|
color: "white",
|
|
@@ -86,7 +86,7 @@ const O = /* @__PURE__ */ M({
|
|
|
86
86
|
class: y(s.value),
|
|
87
87
|
type: "button"
|
|
88
88
|
}, [
|
|
89
|
-
t.icon ? (l(),
|
|
89
|
+
t.icon ? (l(), x(F, {
|
|
90
90
|
key: 0,
|
|
91
91
|
icon: t.icon,
|
|
92
92
|
class: "-ml-0.5 mr-2",
|
|
@@ -102,7 +102,7 @@ const O = /* @__PURE__ */ M({
|
|
|
102
102
|
}, Tt = { class: "flex items-center h-5" }, zt = ["checked", "value", "disabled"], Lt = { class: "ml-3 text-sm" }, Ft = { class: "text-black" }, Ot = {
|
|
103
103
|
key: 1,
|
|
104
104
|
class: "flex items-center animate-pulse"
|
|
105
|
-
},
|
|
105
|
+
}, Xe = /* @__PURE__ */ M({
|
|
106
106
|
__name: "uiCheckbox",
|
|
107
107
|
props: {
|
|
108
108
|
check: { type: Boolean, default: !1 },
|
|
@@ -113,15 +113,15 @@ const O = /* @__PURE__ */ M({
|
|
|
113
113
|
},
|
|
114
114
|
emits: ["checkboxChanged"],
|
|
115
115
|
setup(p, { emit: u }) {
|
|
116
|
-
const r = u, i = p, s =
|
|
116
|
+
const r = u, i = p, s = A(i.check), o = () => {
|
|
117
117
|
i.disabled || (s.value = !s.value, r("checkboxChanged", { checked: s.value, value: i.value }));
|
|
118
118
|
};
|
|
119
119
|
return H(() => i.check, (t) => {
|
|
120
120
|
t && (s.value = t);
|
|
121
|
-
}), (t, a) => t.loading ? (l(), n("div", Ot, a[1] || (a[1] = [
|
|
121
|
+
}), (t, a) => t.loading ? (l(), n("div", Ot, [...a[1] || (a[1] = [
|
|
122
122
|
e("div", { class: "w-5 h-5 rounded bg-gray-200" }, null, -1),
|
|
123
123
|
e("div", { class: "ml-3 h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28" }, null, -1)
|
|
124
|
-
]))) : (l(), n("div", Dt, [
|
|
124
|
+
])])) : (l(), n("div", Dt, [
|
|
125
125
|
e("div", Tt, [
|
|
126
126
|
e("input", {
|
|
127
127
|
checked: t.check,
|
|
@@ -208,7 +208,7 @@ function Pt(p, u) {
|
|
|
208
208
|
})
|
|
209
209
|
]);
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function et(p, u) {
|
|
212
212
|
return l(), n("svg", {
|
|
213
213
|
xmlns: "http://www.w3.org/2000/svg",
|
|
214
214
|
fill: "none",
|
|
@@ -225,7 +225,7 @@ function Xe(p, u) {
|
|
|
225
225
|
})
|
|
226
226
|
]);
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function tt(p, u) {
|
|
229
229
|
return l(), n("svg", {
|
|
230
230
|
xmlns: "http://www.w3.org/2000/svg",
|
|
231
231
|
fill: "none",
|
|
@@ -276,7 +276,7 @@ function Yt(p, u) {
|
|
|
276
276
|
})
|
|
277
277
|
]);
|
|
278
278
|
}
|
|
279
|
-
function
|
|
279
|
+
function lt(p, u) {
|
|
280
280
|
return l(), n("svg", {
|
|
281
281
|
xmlns: "http://www.w3.org/2000/svg",
|
|
282
282
|
fill: "none",
|
|
@@ -293,7 +293,7 @@ function tt(p, u) {
|
|
|
293
293
|
})
|
|
294
294
|
]);
|
|
295
295
|
}
|
|
296
|
-
function
|
|
296
|
+
function Fe(p, u) {
|
|
297
297
|
return l(), n("svg", {
|
|
298
298
|
xmlns: "http://www.w3.org/2000/svg",
|
|
299
299
|
fill: "none",
|
|
@@ -310,7 +310,7 @@ function Le(p, u) {
|
|
|
310
310
|
})
|
|
311
311
|
]);
|
|
312
312
|
}
|
|
313
|
-
function
|
|
313
|
+
function re(p, u) {
|
|
314
314
|
return l(), n("svg", {
|
|
315
315
|
xmlns: "http://www.w3.org/2000/svg",
|
|
316
316
|
fill: "none",
|
|
@@ -327,7 +327,7 @@ function oe(p, u) {
|
|
|
327
327
|
})
|
|
328
328
|
]);
|
|
329
329
|
}
|
|
330
|
-
function
|
|
330
|
+
function st(p, u) {
|
|
331
331
|
return l(), n("svg", {
|
|
332
332
|
xmlns: "http://www.w3.org/2000/svg",
|
|
333
333
|
fill: "none",
|
|
@@ -344,7 +344,7 @@ function lt(p, u) {
|
|
|
344
344
|
})
|
|
345
345
|
]);
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function ie(p, u) {
|
|
348
348
|
return l(), n("svg", {
|
|
349
349
|
xmlns: "http://www.w3.org/2000/svg",
|
|
350
350
|
fill: "none",
|
|
@@ -361,7 +361,7 @@ function ne(p, u) {
|
|
|
361
361
|
})
|
|
362
362
|
]);
|
|
363
363
|
}
|
|
364
|
-
function
|
|
364
|
+
function we(p, u) {
|
|
365
365
|
return l(), n("svg", {
|
|
366
366
|
xmlns: "http://www.w3.org/2000/svg",
|
|
367
367
|
fill: "none",
|
|
@@ -378,7 +378,7 @@ function be(p, u) {
|
|
|
378
378
|
})
|
|
379
379
|
]);
|
|
380
380
|
}
|
|
381
|
-
function
|
|
381
|
+
function ot(p, u) {
|
|
382
382
|
return l(), n("svg", {
|
|
383
383
|
xmlns: "http://www.w3.org/2000/svg",
|
|
384
384
|
fill: "none",
|
|
@@ -497,7 +497,7 @@ function Ht(p, u) {
|
|
|
497
497
|
})
|
|
498
498
|
]);
|
|
499
499
|
}
|
|
500
|
-
function
|
|
500
|
+
function rt(p, u) {
|
|
501
501
|
return l(), n("svg", {
|
|
502
502
|
xmlns: "http://www.w3.org/2000/svg",
|
|
503
503
|
fill: "none",
|
|
@@ -514,7 +514,7 @@ function ot(p, u) {
|
|
|
514
514
|
})
|
|
515
515
|
]);
|
|
516
516
|
}
|
|
517
|
-
function
|
|
517
|
+
function Ae(p, u) {
|
|
518
518
|
return l(), n("svg", {
|
|
519
519
|
xmlns: "http://www.w3.org/2000/svg",
|
|
520
520
|
fill: "none",
|
|
@@ -548,7 +548,7 @@ function Zt(p, u) {
|
|
|
548
548
|
})
|
|
549
549
|
]);
|
|
550
550
|
}
|
|
551
|
-
function
|
|
551
|
+
function fe(p, u) {
|
|
552
552
|
return l(), n("svg", {
|
|
553
553
|
xmlns: "http://www.w3.org/2000/svg",
|
|
554
554
|
fill: "none",
|
|
@@ -565,7 +565,7 @@ function pe(p, u) {
|
|
|
565
565
|
})
|
|
566
566
|
]);
|
|
567
567
|
}
|
|
568
|
-
function
|
|
568
|
+
function he(p, u) {
|
|
569
569
|
return l(), n("svg", {
|
|
570
570
|
xmlns: "http://www.w3.org/2000/svg",
|
|
571
571
|
fill: "none",
|
|
@@ -609,7 +609,7 @@ const Jt = {
|
|
|
609
609
|
}, Gt = { class: "-py-1" }, Qt = ["onClick"], Kt = {
|
|
610
610
|
key: 1,
|
|
611
611
|
class: "animate-pulse px-4 py-2 bg-gray-200 rounded-md inline-flex items-center relative text-left h-10"
|
|
612
|
-
},
|
|
612
|
+
}, ye = /* @__PURE__ */ M({
|
|
613
613
|
__name: "uiDropdown",
|
|
614
614
|
props: {
|
|
615
615
|
items: {},
|
|
@@ -630,11 +630,11 @@ const Jt = {
|
|
|
630
630
|
};
|
|
631
631
|
return (t, a) => t.loading ? (l(), n("div", Kt, [
|
|
632
632
|
a[0] || (a[0] = e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28" }, null, -1)),
|
|
633
|
-
m(c(
|
|
633
|
+
m(c(re), {
|
|
634
634
|
"aria-hidden": "true",
|
|
635
635
|
class: "-mr-1 ml-2 h-5 w-5 text-gray-200 dark:text-gray-300"
|
|
636
636
|
})
|
|
637
|
-
])) : (l(),
|
|
637
|
+
])) : (l(), x(c(_e), {
|
|
638
638
|
key: 0,
|
|
639
639
|
as: "div",
|
|
640
640
|
class: y(["relative text-left", { "opacity-25": t.disabled }])
|
|
@@ -647,15 +647,15 @@ const Jt = {
|
|
|
647
647
|
t.label ? (l(), n("label", Jt, g(t.label), 1)) : b("", !0),
|
|
648
648
|
t.requiredText ? (l(), n("span", Wt, g(t.requiredText), 1)) : b("", !0)
|
|
649
649
|
], 2),
|
|
650
|
-
m(c(
|
|
650
|
+
m(c(Ce), { class: "text-black inline-flex justify-between w-full rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-sm font-medium hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-black" }, {
|
|
651
651
|
default: f(() => [
|
|
652
652
|
z(g(s.value) + " ", 1),
|
|
653
|
-
t.verticalPosition === "bottom" ? (l(),
|
|
653
|
+
t.verticalPosition === "bottom" ? (l(), x(c(re), {
|
|
654
654
|
key: 0,
|
|
655
655
|
"aria-hidden": "true",
|
|
656
656
|
class: "-mr-1 ml-2 h-5 w-5"
|
|
657
657
|
})) : b("", !0),
|
|
658
|
-
t.verticalPosition === "top" ? (l(),
|
|
658
|
+
t.verticalPosition === "top" ? (l(), x(c(ot), {
|
|
659
659
|
key: 1,
|
|
660
660
|
"aria-hidden": "true",
|
|
661
661
|
class: "-mr-1 ml-2 h-5 w-5"
|
|
@@ -664,7 +664,7 @@ const Jt = {
|
|
|
664
664
|
_: 1
|
|
665
665
|
})
|
|
666
666
|
]),
|
|
667
|
-
m(
|
|
667
|
+
m(ae, {
|
|
668
668
|
"enter-active-class": "transition ease-out duration-100",
|
|
669
669
|
"enter-from-class": "transform opacity-0 scale-95",
|
|
670
670
|
"enter-to-class": "transform opacity-100 scale-100",
|
|
@@ -673,7 +673,7 @@ const Jt = {
|
|
|
673
673
|
"leave-to-class": "transform opacity-0 scale-95"
|
|
674
674
|
}, {
|
|
675
675
|
default: f(() => [
|
|
676
|
-
t.disabled ? b("", !0) : (l(),
|
|
676
|
+
t.disabled ? b("", !0) : (l(), x(c(Se), {
|
|
677
677
|
key: 0,
|
|
678
678
|
class: y([{
|
|
679
679
|
"right-0": t.position === "right",
|
|
@@ -684,7 +684,7 @@ const Jt = {
|
|
|
684
684
|
}, {
|
|
685
685
|
default: f(() => [
|
|
686
686
|
e("div", Gt, [
|
|
687
|
-
(l(!0), n(
|
|
687
|
+
(l(!0), n(_, null, S(t.items, (d, h) => (l(), x(c(Be), { key: h }, {
|
|
688
688
|
default: f(() => [
|
|
689
689
|
e("a", {
|
|
690
690
|
onClick: (v) => o(d),
|
|
@@ -741,7 +741,7 @@ const Jt = {
|
|
|
741
741
|
},
|
|
742
742
|
emits: ["inputChanged", "rightAddOnClicked", "addOnClicked"],
|
|
743
743
|
setup(p, { emit: u }) {
|
|
744
|
-
const r = u, i = p, s =
|
|
744
|
+
const r = u, i = p, s = A(i.value);
|
|
745
745
|
H(() => i.value, (t) => {
|
|
746
746
|
s.value = t, s.value && r("inputChanged", { name: i.name, value: s.value });
|
|
747
747
|
});
|
|
@@ -799,27 +799,27 @@ const Jt = {
|
|
|
799
799
|
class: "inline-flex items-center px-3 rounded-r-md border border-l-0 border-black bg-black hover:bg-lime-400 hover:text-black text-white sm:text-sm cursor-pointer"
|
|
800
800
|
}, g(t.rightAddOn), 1)) : b("", !0),
|
|
801
801
|
e("div", ol, [
|
|
802
|
-
t.icon ? (l(),
|
|
802
|
+
t.icon ? (l(), x(F, {
|
|
803
803
|
key: 0,
|
|
804
804
|
icon: t.icon,
|
|
805
805
|
color: t.color,
|
|
806
806
|
loading: t.loading
|
|
807
807
|
}, null, 8, ["icon", "color", "loading"])) : b("", !0),
|
|
808
|
-
B(m(
|
|
809
|
-
icon: c(
|
|
808
|
+
B(m(F, {
|
|
809
|
+
icon: c(Fe),
|
|
810
810
|
color: "green",
|
|
811
811
|
loading: t.loading
|
|
812
812
|
}, null, 8, ["icon", "loading"]), [
|
|
813
813
|
[D, t.color === "green"]
|
|
814
814
|
]),
|
|
815
|
-
B(m(
|
|
815
|
+
B(m(F, {
|
|
816
816
|
icon: c(W),
|
|
817
817
|
color: "yellow",
|
|
818
818
|
loading: t.loading
|
|
819
819
|
}, null, 8, ["icon", "loading"]), [
|
|
820
820
|
[D, t.color === "yellow"]
|
|
821
821
|
]),
|
|
822
|
-
B(m(
|
|
822
|
+
B(m(F, {
|
|
823
823
|
icon: c(K),
|
|
824
824
|
color: "red",
|
|
825
825
|
loading: t.loading
|
|
@@ -866,7 +866,7 @@ const Jt = {
|
|
|
866
866
|
},
|
|
867
867
|
emits: ["filesUploaded"],
|
|
868
868
|
setup(p, { emit: u }) {
|
|
869
|
-
let r =
|
|
869
|
+
let r = A("");
|
|
870
870
|
const i = u, s = p, o = (d) => {
|
|
871
871
|
a(d.dataTransfer.files), i("filesUploaded", { id: s.id, files: d.dataTransfer.files });
|
|
872
872
|
}, t = (d) => {
|
|
@@ -878,13 +878,13 @@ const Jt = {
|
|
|
878
878
|
h++, r.value += v.name, h >= 1 && h < d.length && (r.value += ", ");
|
|
879
879
|
});
|
|
880
880
|
};
|
|
881
|
-
return (d, h) => d.loading ? (l(), n("div", vl, h[1] || (h[1] = [
|
|
881
|
+
return (d, h) => d.loading ? (l(), n("div", vl, [...h[1] || (h[1] = [
|
|
882
882
|
e("div", { class: "flex justify-center items-center flex-col rounded-md border-2 border-dashed px-6 pt-5 pb-6 border-gray-200" }, [
|
|
883
883
|
e("div", { class: "rounded-full h-20 w-20 bg-gray-200 mb-4" }),
|
|
884
884
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full md:w-1/3 mb-3" }),
|
|
885
885
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full md:w-1/4 mb-3" })
|
|
886
886
|
], -1)
|
|
887
|
-
]))) : (l(), n("div", nl, [
|
|
887
|
+
])])) : (l(), n("div", nl, [
|
|
888
888
|
e("div", il, [
|
|
889
889
|
d.label ? (l(), n("label", dl, g(d.label), 1)) : b("", !0),
|
|
890
890
|
d.requiredText ? (l(), n("span", ul, g(d.requiredText), 1)) : b("", !0)
|
|
@@ -898,12 +898,12 @@ const Jt = {
|
|
|
898
898
|
],
|
|
899
899
|
"dropArea flex justify-center rounded-md border-2 border-dashed px-6 pt-5 pb-6"
|
|
900
900
|
]),
|
|
901
|
-
onDragover: h[0] || (h[0] =
|
|
901
|
+
onDragover: h[0] || (h[0] = ve(() => {
|
|
902
902
|
}, ["prevent"])),
|
|
903
|
-
onDrop:
|
|
903
|
+
onDrop: ve(o, ["prevent"])
|
|
904
904
|
}, [
|
|
905
905
|
e("div", cl, [
|
|
906
|
-
m(
|
|
906
|
+
m(F, {
|
|
907
907
|
icon: d.icon,
|
|
908
908
|
size: "massive",
|
|
909
909
|
color: "black",
|
|
@@ -936,8 +936,8 @@ const Jt = {
|
|
|
936
936
|
])
|
|
937
937
|
], 34),
|
|
938
938
|
B(e("p", yl, [
|
|
939
|
-
m(
|
|
940
|
-
icon: c(
|
|
939
|
+
m(F, {
|
|
940
|
+
icon: c(he),
|
|
941
941
|
color: "red",
|
|
942
942
|
class: "mr-2",
|
|
943
943
|
loading: d.loading
|
|
@@ -951,10 +951,10 @@ const Jt = {
|
|
|
951
951
|
}), wl = { class: "flex justify-between" }, kl = {
|
|
952
952
|
key: 0,
|
|
953
953
|
class: "text-[10px] text-gray-500 uppercase justify-self-end"
|
|
954
|
-
}, xl = { class: "relative" },
|
|
954
|
+
}, xl = { class: "relative" }, $l = {
|
|
955
955
|
key: 1,
|
|
956
956
|
class: "animate-pulse px-4 py-2.5 bg-gray-200 rounded-md flex justify-between items-center w-full"
|
|
957
|
-
},
|
|
957
|
+
}, _l = /* @__PURE__ */ M({
|
|
958
958
|
__name: "uiSelect",
|
|
959
959
|
props: {
|
|
960
960
|
items: {},
|
|
@@ -970,7 +970,7 @@ const Jt = {
|
|
|
970
970
|
},
|
|
971
971
|
emits: ["selectChanged"],
|
|
972
972
|
setup(p, { expose: u, emit: r }) {
|
|
973
|
-
const i =
|
|
973
|
+
const i = A(""), s = r, o = p, t = Y(() => i.value === "" ? o.items : o.items.filter((v) => v.name.toLowerCase().includes(i.value.toLowerCase()))), a = (v) => v?.name ?? "", d = (v) => {
|
|
974
974
|
s("selectChanged", v);
|
|
975
975
|
}, h = Y({
|
|
976
976
|
get: () => o.select,
|
|
@@ -980,13 +980,13 @@ const Jt = {
|
|
|
980
980
|
});
|
|
981
981
|
return u({
|
|
982
982
|
handleChange: d
|
|
983
|
-
}), (v, j) => v.loading ? (l(), n("div",
|
|
983
|
+
}), (v, j) => v.loading ? (l(), n("div", $l, [
|
|
984
984
|
j[3] || (j[3] = e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1)),
|
|
985
|
-
m(c(
|
|
985
|
+
m(c(we), {
|
|
986
986
|
"aria-hidden": "true",
|
|
987
987
|
class: "-mr-1 ml-2 h-5 w-5 text-gray-300 dark:text-gray-400"
|
|
988
988
|
})
|
|
989
|
-
])) : (l(),
|
|
989
|
+
])) : (l(), x(c(He), {
|
|
990
990
|
key: 0,
|
|
991
991
|
modelValue: h.value,
|
|
992
992
|
"onUpdate:modelValue": [
|
|
@@ -998,7 +998,7 @@ const Jt = {
|
|
|
998
998
|
}, {
|
|
999
999
|
default: f(() => [
|
|
1000
1000
|
e("div", wl, [
|
|
1001
|
-
m(c(
|
|
1001
|
+
m(c(Ze), { class: "block text-sm font-medium" }, {
|
|
1002
1002
|
default: f(() => [
|
|
1003
1003
|
z(g(v.label), 1)
|
|
1004
1004
|
]),
|
|
@@ -1007,7 +1007,7 @@ const Jt = {
|
|
|
1007
1007
|
v.requiredText ? (l(), n("span", kl, g(v.requiredText), 1)) : b("", !0)
|
|
1008
1008
|
]),
|
|
1009
1009
|
e("div", xl, [
|
|
1010
|
-
m(c(
|
|
1010
|
+
m(c(Je), {
|
|
1011
1011
|
onChange: j[0] || (j[0] = (w) => i.value = w.target.value),
|
|
1012
1012
|
onBlur: j[1] || (j[1] = (w) => i.value = ""),
|
|
1013
1013
|
displayValue: a,
|
|
@@ -1026,26 +1026,26 @@ const Jt = {
|
|
|
1026
1026
|
"text-green-600": v.color === "green"
|
|
1027
1027
|
}, "w-full rounded-md border py-2 pl-3 pr-10 shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm"])
|
|
1028
1028
|
}, null, 8, ["class"]),
|
|
1029
|
-
m(c(
|
|
1029
|
+
m(c(We), { class: "absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none" }, {
|
|
1030
1030
|
default: f(() => [
|
|
1031
|
-
m(c(
|
|
1031
|
+
m(c(we), {
|
|
1032
1032
|
"aria-hidden": "true",
|
|
1033
1033
|
class: "h-5 w-5 text-gray-400"
|
|
1034
1034
|
})
|
|
1035
1035
|
]),
|
|
1036
1036
|
_: 1
|
|
1037
1037
|
}),
|
|
1038
|
-
t.value.length > 0 ? (l(),
|
|
1038
|
+
t.value.length > 0 ? (l(), x(c(Ge), {
|
|
1039
1039
|
key: 0,
|
|
1040
1040
|
class: "absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"
|
|
1041
1041
|
}, {
|
|
1042
1042
|
default: f(() => [
|
|
1043
|
-
(l(!0), n(
|
|
1043
|
+
(l(!0), n(_, null, S(t.value, (w) => (l(), x(c(Qe), {
|
|
1044
1044
|
key: w.id,
|
|
1045
1045
|
value: w,
|
|
1046
1046
|
as: "template"
|
|
1047
1047
|
}, {
|
|
1048
|
-
default: f(({ active: T, selected:
|
|
1048
|
+
default: f(({ active: T, selected: $ }) => [
|
|
1049
1049
|
e("li", {
|
|
1050
1050
|
class: y([
|
|
1051
1051
|
"relative cursor-default select-none py-2 pl-3 pr-9",
|
|
@@ -1053,16 +1053,16 @@ const Jt = {
|
|
|
1053
1053
|
])
|
|
1054
1054
|
}, [
|
|
1055
1055
|
e("span", {
|
|
1056
|
-
class: y(["block truncate",
|
|
1056
|
+
class: y(["block truncate", $ && "font-semibold"])
|
|
1057
1057
|
}, g(w.name), 3),
|
|
1058
|
-
|
|
1058
|
+
$ ? (l(), n("span", {
|
|
1059
1059
|
key: 0,
|
|
1060
1060
|
class: y([
|
|
1061
1061
|
"absolute inset-y-0 right-0 flex items-center pr-4",
|
|
1062
1062
|
T ? "text-white" : "text-indigo-600"
|
|
1063
1063
|
])
|
|
1064
1064
|
}, [
|
|
1065
|
-
m(c(
|
|
1065
|
+
m(c(Fe), {
|
|
1066
1066
|
"aria-hidden": "true",
|
|
1067
1067
|
class: "h-5 w-5",
|
|
1068
1068
|
loading: !0
|
|
@@ -1124,7 +1124,7 @@ function Sl(p, u) {
|
|
|
1124
1124
|
const Bl = { class: "flex justify-between" }, Ml = {
|
|
1125
1125
|
key: 0,
|
|
1126
1126
|
class: "text-[10px] uppercase justify-self-end self-center"
|
|
1127
|
-
},
|
|
1127
|
+
}, te = /* @__PURE__ */ M({
|
|
1128
1128
|
__name: "uiSelect_v2",
|
|
1129
1129
|
props: {
|
|
1130
1130
|
items: {},
|
|
@@ -1140,12 +1140,12 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1140
1140
|
},
|
|
1141
1141
|
emits: ["selectChanged"],
|
|
1142
1142
|
setup(p, { emit: u }) {
|
|
1143
|
-
const r = p, i = u, s =
|
|
1143
|
+
const r = p, i = u, s = A(""), o = A(r.select), t = Y(
|
|
1144
1144
|
() => s.value === "" ? r.items : r.items.filter((d) => d.name.toLowerCase().includes(s.value.toLowerCase()))
|
|
1145
1145
|
), a = (d) => {
|
|
1146
1146
|
s.value = "", i("selectChanged", d);
|
|
1147
1147
|
};
|
|
1148
|
-
return (d, h) => (l(),
|
|
1148
|
+
return (d, h) => (l(), x(c(He), {
|
|
1149
1149
|
as: "div",
|
|
1150
1150
|
modelValue: o.value,
|
|
1151
1151
|
"onUpdate:modelValue": [
|
|
@@ -1155,7 +1155,7 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1155
1155
|
}, {
|
|
1156
1156
|
default: f(() => [
|
|
1157
1157
|
e("div", Bl, [
|
|
1158
|
-
m(c(
|
|
1158
|
+
m(c(Ze), { class: "block text-sm font-medium" }, {
|
|
1159
1159
|
default: f(() => [
|
|
1160
1160
|
z(g(d.label), 1)
|
|
1161
1161
|
]),
|
|
@@ -1166,7 +1166,7 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1166
1166
|
e("div", {
|
|
1167
1167
|
class: y([{ "mt-1": d.label }, "relative"])
|
|
1168
1168
|
}, [
|
|
1169
|
-
m(c(
|
|
1169
|
+
m(c(Je), {
|
|
1170
1170
|
class: y([{
|
|
1171
1171
|
"!border-transparent !shadow-none": d.isWrapped,
|
|
1172
1172
|
"mt-1": d.requiredText || d.label,
|
|
@@ -1187,7 +1187,7 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1187
1187
|
onBlur: h[1] || (h[1] = (v) => s.value = ""),
|
|
1188
1188
|
"display-value": (v) => v.label || v.name
|
|
1189
1189
|
}, null, 8, ["class", "display-value"]),
|
|
1190
|
-
m(c(
|
|
1190
|
+
m(c(We), { class: "h-full absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none" }, {
|
|
1191
1191
|
default: f(() => [
|
|
1192
1192
|
m(c(Sl), {
|
|
1193
1193
|
class: "size-5 mt-1",
|
|
@@ -1196,12 +1196,12 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1196
1196
|
]),
|
|
1197
1197
|
_: 1
|
|
1198
1198
|
}),
|
|
1199
|
-
t.value.length > 0 ? (l(),
|
|
1199
|
+
t.value.length > 0 ? (l(), x(c(Ge), {
|
|
1200
1200
|
key: 0,
|
|
1201
1201
|
class: "absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black/5 focus:outline-none sm:text-sm"
|
|
1202
1202
|
}, {
|
|
1203
1203
|
default: f(() => [
|
|
1204
|
-
(l(!0), n(
|
|
1204
|
+
(l(!0), n(_, null, S(t.value, (v) => (l(), x(c(Qe), {
|
|
1205
1205
|
key: v.id,
|
|
1206
1206
|
value: v,
|
|
1207
1207
|
as: "template"
|
|
@@ -1262,9 +1262,9 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1262
1262
|
const r = u, i = p, s = () => {
|
|
1263
1263
|
i.event != null && r("tagEvent", i.event);
|
|
1264
1264
|
};
|
|
1265
|
-
return (o, t) => o.loading ? (l(), n("div", jl, t[0] || (t[0] = [
|
|
1265
|
+
return (o, t) => o.loading ? (l(), n("div", jl, [...t[0] || (t[0] = [
|
|
1266
1266
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12" }, null, -1)
|
|
1267
|
-
]))) : (l(), n("span", {
|
|
1267
|
+
])])) : (l(), n("span", {
|
|
1268
1268
|
key: 0,
|
|
1269
1269
|
onClick: s,
|
|
1270
1270
|
class: y([{
|
|
@@ -1314,13 +1314,13 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1314
1314
|
setup(p, { emit: u }) {
|
|
1315
1315
|
const r = u, i = p, s = (t) => {
|
|
1316
1316
|
r("inputChanged", t.target.value);
|
|
1317
|
-
}, o =
|
|
1317
|
+
}, o = A(i.value);
|
|
1318
1318
|
return H(() => i.value, (t) => {
|
|
1319
1319
|
o.value = t, r("inputChanged", { name: i.name, value: o.value });
|
|
1320
|
-
}), (t, a) => t.loading ? (l(), n("div", Ol, a[1] || (a[1] = [
|
|
1320
|
+
}), (t, a) => t.loading ? (l(), n("div", Ol, [...a[1] || (a[1] = [
|
|
1321
1321
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/3 md:w-1/4 mb-1.5" }, null, -1),
|
|
1322
1322
|
e("div", { class: "h-24 bg-gray-200 rounded-lg flex inline-flex items-center relative inline-block text-left w-full" }, null, -1)
|
|
1323
|
-
]))) : (l(), n("div", Dl, [
|
|
1323
|
+
])])) : (l(), n("div", Dl, [
|
|
1324
1324
|
e("div", Tl, [
|
|
1325
1325
|
t.label ? (l(), n("label", zl, g(t.label), 1)) : b("", !0),
|
|
1326
1326
|
t.requiredText ? (l(), n("span", Ll, g(t.requiredText), 1)) : b("", !0)
|
|
@@ -1347,7 +1347,7 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1347
1347
|
}]),
|
|
1348
1348
|
onChange: s
|
|
1349
1349
|
}, null, 42, Fl), [
|
|
1350
|
-
[
|
|
1350
|
+
[oe, o.value]
|
|
1351
1351
|
])
|
|
1352
1352
|
], 2),
|
|
1353
1353
|
B(e("p", {
|
|
@@ -1358,8 +1358,8 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1358
1358
|
"text-green-600": t.color === "green"
|
|
1359
1359
|
}, "mt-2 text-xs flex flex-row items-center"])
|
|
1360
1360
|
}, [
|
|
1361
|
-
m(
|
|
1362
|
-
icon: c(
|
|
1361
|
+
m(F, {
|
|
1362
|
+
icon: c(he),
|
|
1363
1363
|
color: "red",
|
|
1364
1364
|
class: "mr-2",
|
|
1365
1365
|
loading: !1
|
|
@@ -1386,13 +1386,13 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1386
1386
|
},
|
|
1387
1387
|
emits: ["toggleChanged", "actionClicked"],
|
|
1388
1388
|
setup(p, { emit: u }) {
|
|
1389
|
-
const r = p, i =
|
|
1390
|
-
return H(() => r.checked, (s) => i.value = s), (s, o) => s.loading ? (l(), n("div", Pl, o[3] || (o[3] = [
|
|
1389
|
+
const r = p, i = A(r.checked);
|
|
1390
|
+
return H(() => r.checked, (s) => i.value = s), (s, o) => s.loading ? (l(), n("div", Pl, [...o[3] || (o[3] = [
|
|
1391
1391
|
e("div", { class: "relative bg-gray-200 rounded-full w-12 h-6 p-1 flex items-center" }, [
|
|
1392
1392
|
e("div", { class: "rounded-full bg-gray-300 dark:bg-gray-400 h-4 w-4" })
|
|
1393
1393
|
], -1),
|
|
1394
1394
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-16 ml-2" }, null, -1)
|
|
1395
|
-
]))) : (l(),
|
|
1395
|
+
])])) : (l(), x(c(ft), {
|
|
1396
1396
|
key: 0,
|
|
1397
1397
|
as: "div",
|
|
1398
1398
|
class: "flex items-center relative"
|
|
@@ -1458,9 +1458,9 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1458
1458
|
const r = u, i = (s) => {
|
|
1459
1459
|
r("alertEvent", s.event);
|
|
1460
1460
|
};
|
|
1461
|
-
return (s, o) => s.loading ? (l(), n("div", Jl, o[0] || (o[0] = [
|
|
1462
|
-
|
|
1463
|
-
]))) : (l(), n("div", Yl, [
|
|
1461
|
+
return (s, o) => s.loading ? (l(), n("div", Jl, [...o[0] || (o[0] = [
|
|
1462
|
+
le('<div class="p-4 border-l-4 bg-gray-100 border-gray-400 rounded"><div class="flex"><div class="flex-shrink-0"><div class="h-6 w-6 animate-pulse rounded-full bg-gray-200 dark:bg-gray-300"></div></div><div class="ml-3 w-full"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/3 mb-2"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full mb-2"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-3/5"></div></div></div></div>', 1)
|
|
1463
|
+
])])) : (l(), n("div", Yl, [
|
|
1464
1464
|
e("div", {
|
|
1465
1465
|
class: y([{
|
|
1466
1466
|
"bg-lime-50 border-lime-400": s.type === "info",
|
|
@@ -1471,22 +1471,22 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1471
1471
|
}, [
|
|
1472
1472
|
e("div", ql, [
|
|
1473
1473
|
e("div", Rl, [
|
|
1474
|
-
s.type === "info" ? (l(),
|
|
1474
|
+
s.type === "info" ? (l(), x(c(rt), {
|
|
1475
1475
|
key: 0,
|
|
1476
1476
|
class: "h-8 w-8 text-lime-400",
|
|
1477
1477
|
"aria-hidden": "true"
|
|
1478
1478
|
})) : b("", !0),
|
|
1479
|
-
s.type === "danger" ? (l(),
|
|
1479
|
+
s.type === "danger" ? (l(), x(c(he), {
|
|
1480
1480
|
key: 1,
|
|
1481
1481
|
class: "h-8 w-8 text-red-600",
|
|
1482
1482
|
"aria-hidden": "true"
|
|
1483
1483
|
})) : b("", !0),
|
|
1484
|
-
s.type === "warning" ? (l(),
|
|
1484
|
+
s.type === "warning" ? (l(), x(c(W), {
|
|
1485
1485
|
key: 2,
|
|
1486
1486
|
class: "h-8 w-8 text-yellow-400",
|
|
1487
1487
|
"aria-hidden": "true"
|
|
1488
1488
|
})) : b("", !0),
|
|
1489
|
-
s.type === "success" ? (l(),
|
|
1489
|
+
s.type === "success" ? (l(), x(c(lt), {
|
|
1490
1490
|
key: 3,
|
|
1491
1491
|
class: "h-8 w-8 text-green-600",
|
|
1492
1492
|
"aria-hidden": "true"
|
|
@@ -1511,7 +1511,7 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1511
1511
|
], 2),
|
|
1512
1512
|
e("div", Ul, [
|
|
1513
1513
|
e("div", Hl, [
|
|
1514
|
-
(l(!0), n(
|
|
1514
|
+
(l(!0), n(_, null, S(s.actions, (t, a) => (l(), n("button", {
|
|
1515
1515
|
onClick: (d) => i(t),
|
|
1516
1516
|
type: "button",
|
|
1517
1517
|
key: a,
|
|
@@ -1553,14 +1553,14 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1553
1553
|
},
|
|
1554
1554
|
emits: ["breadCrumbClicked"],
|
|
1555
1555
|
setup(p, { emit: u }) {
|
|
1556
|
-
return (r, i) => r.loading ? (l(), n("div", ls, i[0] || (i[0] = [
|
|
1556
|
+
return (r, i) => r.loading ? (l(), n("div", ls, [...i[0] || (i[0] = [
|
|
1557
1557
|
e("div", { class: "animate-pulse rounded-full bg-gray-200 dark:bg-gray-300 h-4 w-4 mr-4" }, null, -1),
|
|
1558
1558
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5 mr-4" }, null, -1),
|
|
1559
1559
|
e("div", { class: "animate-pulse rounded-full bg-gray-200 dark:bg-gray-300 h-4 w-4 mr-4" }, null, -1),
|
|
1560
1560
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5" }, null, -1)
|
|
1561
|
-
]))) : (l(), n("nav", Gl, [
|
|
1561
|
+
])])) : (l(), n("nav", Gl, [
|
|
1562
1562
|
e("ol", Ql, [
|
|
1563
|
-
(l(!0), n(
|
|
1563
|
+
(l(!0), n(_, null, S(r.pages, (s, o) => (l(), n("li", { key: o }, [
|
|
1564
1564
|
o == 0 ? (l(), n("div", Kl, [
|
|
1565
1565
|
e("p", {
|
|
1566
1566
|
onClick: (t) => r.$emit("breadCrumbClicked", s.routeName),
|
|
@@ -1573,7 +1573,7 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1573
1573
|
e("span", null, g(s.name), 1)
|
|
1574
1574
|
], 8, Xl)
|
|
1575
1575
|
])) : (l(), n("div", es, [
|
|
1576
|
-
m(c(
|
|
1576
|
+
m(c(ie), {
|
|
1577
1577
|
class: "flex-shrink-0 h-3 w-3 text-gray-400",
|
|
1578
1578
|
"aria-hidden": "true"
|
|
1579
1579
|
}),
|
|
@@ -1605,9 +1605,9 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1605
1605
|
},
|
|
1606
1606
|
emits: ["cardSelected"],
|
|
1607
1607
|
setup(p, { emit: u }) {
|
|
1608
|
-
return (r, i) => r.loading ? (l(), n("div", ds, i[1] || (i[1] = [
|
|
1609
|
-
|
|
1610
|
-
]))) : (l(), n("div", {
|
|
1608
|
+
return (r, i) => r.loading ? (l(), n("div", ds, [...i[1] || (i[1] = [
|
|
1609
|
+
le('<div class="flex items-center flex-col sm:flex-row justify-center sm:justify-start w-full"><div class="w-16 h-16 rounded-full bg-gray-200 flex self-center"></div><div class="w-full ml-4"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full mt-4 sm:mt-0 sm:w-16 mb-2"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full sm:w-32"></div></div></div>', 1)
|
|
1610
|
+
])])) : (l(), n("div", {
|
|
1611
1611
|
key: 0,
|
|
1612
1612
|
class: "rounded-lg bg-white shadow p-6 cursor-pointer",
|
|
1613
1613
|
onClick: i[0] || (i[0] = (s) => r.$emit("cardSelected", { id: r.id, name: r.name, type: r.type, tags: r.tags }))
|
|
@@ -1623,7 +1623,7 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1623
1623
|
])
|
|
1624
1624
|
]),
|
|
1625
1625
|
r.tags && r.tags?.length > 0 ? (l(), n("div", is, [
|
|
1626
|
-
(l(!0), n(
|
|
1626
|
+
(l(!0), n(_, null, S(r.tags, (s) => (l(), x(Z, {
|
|
1627
1627
|
class: "mb-1 mr-1",
|
|
1628
1628
|
key: s.name,
|
|
1629
1629
|
color: s.color,
|
|
@@ -1637,7 +1637,7 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1637
1637
|
])) : b("", !0)
|
|
1638
1638
|
]));
|
|
1639
1639
|
}
|
|
1640
|
-
}),
|
|
1640
|
+
}), at = /* @__PURE__ */ M({
|
|
1641
1641
|
__name: "uiFilter",
|
|
1642
1642
|
props: {
|
|
1643
1643
|
items: {},
|
|
@@ -1651,8 +1651,8 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1651
1651
|
o.value.forEach((a) => {
|
|
1652
1652
|
a.active = a.value === t.value;
|
|
1653
1653
|
}), r("filterSelected", t);
|
|
1654
|
-
}, o =
|
|
1655
|
-
return (t, a) => (l(),
|
|
1654
|
+
}, o = A(i.items);
|
|
1655
|
+
return (t, a) => (l(), x(ye, {
|
|
1656
1656
|
class: "text-nowrap",
|
|
1657
1657
|
loading: t.loading,
|
|
1658
1658
|
onOptionSelected: a[0] || (a[0] = (d) => s(d)),
|
|
@@ -1664,7 +1664,7 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1664
1664
|
}), cs = { class: "fixed inset-0 z-10 overflow-y-auto" }, gs = { class: "flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0" }, ms = { class: "absolute top-0 right-0 hidden pt-4 pr-4 sm:block" }, ps = { class: "sm:flex sm:items-start" }, fs = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full break-words" }, hs = { class: "mt-4 text-gray-500 text-sm" }, ys = {
|
|
1665
1665
|
key: 0,
|
|
1666
1666
|
class: "mt-8"
|
|
1667
|
-
}, vs = ["onClick"],
|
|
1667
|
+
}, vs = ["onClick"], nt = /* @__PURE__ */ M({
|
|
1668
1668
|
__name: "uiModal",
|
|
1669
1669
|
props: {
|
|
1670
1670
|
title: {},
|
|
@@ -1680,18 +1680,18 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1680
1680
|
const r = p, i = u, s = (o) => {
|
|
1681
1681
|
i("modalAction", { modal: r.modalName, action: o });
|
|
1682
1682
|
};
|
|
1683
|
-
return (o, t) => (l(),
|
|
1683
|
+
return (o, t) => (l(), x(c(Me), {
|
|
1684
1684
|
as: "template",
|
|
1685
1685
|
show: o.open
|
|
1686
1686
|
}, {
|
|
1687
1687
|
default: f(() => [
|
|
1688
|
-
m(c(
|
|
1688
|
+
m(c(je), {
|
|
1689
1689
|
as: "div",
|
|
1690
1690
|
class: "relative z-50",
|
|
1691
1691
|
onClose: t[1] || (t[1] = (a) => s("close"))
|
|
1692
1692
|
}, {
|
|
1693
1693
|
default: f(() => [
|
|
1694
|
-
m(c(
|
|
1694
|
+
m(c(ee), {
|
|
1695
1695
|
as: "template",
|
|
1696
1696
|
enter: "ease-out duration-300",
|
|
1697
1697
|
"enter-from": "opacity-0",
|
|
@@ -1700,15 +1700,14 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1700
1700
|
"leave-from": "opacity-100",
|
|
1701
1701
|
"leave-to": "opacity-0"
|
|
1702
1702
|
}, {
|
|
1703
|
-
default: f(() => t[2] || (t[2] = [
|
|
1703
|
+
default: f(() => [...t[2] || (t[2] = [
|
|
1704
1704
|
e("div", { class: "fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" }, null, -1)
|
|
1705
|
-
])),
|
|
1706
|
-
_: 1
|
|
1707
|
-
__: [2]
|
|
1705
|
+
])]),
|
|
1706
|
+
_: 1
|
|
1708
1707
|
}),
|
|
1709
1708
|
e("div", cs, [
|
|
1710
1709
|
e("div", gs, [
|
|
1711
|
-
m(c(
|
|
1710
|
+
m(c(ee), {
|
|
1712
1711
|
as: "template",
|
|
1713
1712
|
enter: "ease-out duration-300",
|
|
1714
1713
|
"enter-from": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
@@ -1718,7 +1717,7 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1718
1717
|
"leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
|
|
1719
1718
|
}, {
|
|
1720
1719
|
default: f(() => [
|
|
1721
|
-
m(c(
|
|
1720
|
+
m(c(De), {
|
|
1722
1721
|
class: y([{
|
|
1723
1722
|
"sm:my-8 w-full sm:w-9/12 md:w-2/3 lg:w-1/2": o.size === "big",
|
|
1724
1723
|
"w-full sm:my-8 sm:w-full sm:max-w-lg sm:p-6": o.size === "medium"
|
|
@@ -1732,7 +1731,7 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1732
1731
|
onClick: t[0] || (t[0] = (a) => s("close"))
|
|
1733
1732
|
}, [
|
|
1734
1733
|
t[3] || (t[3] = e("span", { class: "sr-only" }, "X", -1)),
|
|
1735
|
-
m(
|
|
1734
|
+
m(F, {
|
|
1736
1735
|
icon: c(K),
|
|
1737
1736
|
"aria-hidden": "true",
|
|
1738
1737
|
loading: o.loading
|
|
@@ -1754,7 +1753,7 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1754
1753
|
}, null, 512), [
|
|
1755
1754
|
[D, o.type === "danger"]
|
|
1756
1755
|
]),
|
|
1757
|
-
B(m(c(
|
|
1756
|
+
B(m(c(Fe), {
|
|
1758
1757
|
class: "h-6 w-6 text-green-600",
|
|
1759
1758
|
"aria-hidden": "true"
|
|
1760
1759
|
}, null, 512), [
|
|
@@ -1774,7 +1773,7 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1774
1773
|
])
|
|
1775
1774
|
], 2),
|
|
1776
1775
|
e("div", fs, [
|
|
1777
|
-
m(c(
|
|
1776
|
+
m(c(Ke), {
|
|
1778
1777
|
as: "h3",
|
|
1779
1778
|
class: "text-lg font-medium leading-6"
|
|
1780
1779
|
}, {
|
|
@@ -1787,7 +1786,7 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1787
1786
|
E(o.$slots, "default", { class: "break-words" })
|
|
1788
1787
|
]),
|
|
1789
1788
|
o.actions ? (l(), n("div", ys, [
|
|
1790
|
-
(l(!0), n(
|
|
1789
|
+
(l(!0), n(_, null, S(o.actions, (a, d) => (l(), n("button", {
|
|
1791
1790
|
key: d,
|
|
1792
1791
|
type: "button",
|
|
1793
1792
|
class: "inline-flex w-full justify-center rounded-md border border-transparent bg-black px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-lime-400 hover:text-black focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 mb-2 sm:mb-0 mr-2 sm:w-auto sm:text-sm",
|
|
@@ -1814,7 +1813,7 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1814
1813
|
}), bs = { class: "w-full flex flex-col items-center space-y-4 sm:items-end" }, ws = {
|
|
1815
1814
|
key: 0,
|
|
1816
1815
|
class: "max-w-sm w-full bg-white shadow-lg rounded-lg pointer-events-auto ring-1 ring-black ring-opacity-5 overflow-hidden"
|
|
1817
|
-
}, ks = { class: "p-4" }, xs = { class: "flex items-start" },
|
|
1816
|
+
}, ks = { class: "p-4" }, xs = { class: "flex items-start" }, $s = { class: "flex-shrink-0 mt-0.5" }, _s = { class: "ml-3 w-0 flex-1 pt-0.5" }, Cs = { class: "font-medium text-gray-900" }, Ss = { class: "mt-1 text-sm text-gray-500" }, Bs = { class: "ml-4 flex-shrink-0 flex" }, Ms = /* @__PURE__ */ M({
|
|
1818
1817
|
__name: "uiNotification",
|
|
1819
1818
|
props: {
|
|
1820
1819
|
type: { default: "info" },
|
|
@@ -1831,7 +1830,7 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1831
1830
|
class: y([{ fixed: s.fixed }, "inset-0 flex items-end px-4 py-6 pointer-events-none sm:p-6 sm:items-start"])
|
|
1832
1831
|
}, [
|
|
1833
1832
|
e("div", bs, [
|
|
1834
|
-
m(
|
|
1833
|
+
m(ae, {
|
|
1835
1834
|
"enter-active-class": "transform ease-out duration-300 transition",
|
|
1836
1835
|
"enter-from-class": "translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",
|
|
1837
1836
|
"enter-to-class": "translate-y-0 opacity-100 sm:translate-x-0",
|
|
@@ -1843,14 +1842,14 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1843
1842
|
i.value ? (l(), n("div", ws, [
|
|
1844
1843
|
e("div", ks, [
|
|
1845
1844
|
e("div", xs, [
|
|
1846
|
-
e("div",
|
|
1847
|
-
B(m(c(
|
|
1845
|
+
e("div", $s, [
|
|
1846
|
+
B(m(c(lt), {
|
|
1848
1847
|
"aria-hidden": "true",
|
|
1849
1848
|
class: "h-6 w-6 text-green-600"
|
|
1850
1849
|
}, null, 512), [
|
|
1851
1850
|
[D, s.type === "success"]
|
|
1852
1851
|
]),
|
|
1853
|
-
B(m(c(
|
|
1852
|
+
B(m(c(he), {
|
|
1854
1853
|
"aria-hidden": "true",
|
|
1855
1854
|
class: "h-6 w-6 text-red-600"
|
|
1856
1855
|
}, null, 512), [
|
|
@@ -1862,14 +1861,14 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1862
1861
|
}, null, 512), [
|
|
1863
1862
|
[D, s.type === "warning"]
|
|
1864
1863
|
]),
|
|
1865
|
-
B(m(c(
|
|
1864
|
+
B(m(c(rt), {
|
|
1866
1865
|
"aria-hidden": "true",
|
|
1867
1866
|
class: "h-6 w-6 text-black"
|
|
1868
1867
|
}, null, 512), [
|
|
1869
1868
|
[D, s.type === "info"]
|
|
1870
1869
|
])
|
|
1871
1870
|
]),
|
|
1872
|
-
e("div",
|
|
1871
|
+
e("div", _s, [
|
|
1873
1872
|
e("p", Cs, g(s.title), 1),
|
|
1874
1873
|
e("p", Ss, g(s.message), 1)
|
|
1875
1874
|
]),
|
|
@@ -1910,14 +1909,14 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1910
1909
|
},
|
|
1911
1910
|
setup(p) {
|
|
1912
1911
|
return (u, r) => u.loading ? (l(), n("ul", Ns, [
|
|
1913
|
-
(l(!0), n(
|
|
1912
|
+
(l(!0), n(_, null, S(u.tasks, (i) => (l(), n("li", {
|
|
1914
1913
|
key: i.id,
|
|
1915
1914
|
class: "flex items-center justify-between gap-x-6 py-5"
|
|
1916
|
-
}, r[0] || (r[0] = [
|
|
1917
|
-
|
|
1918
|
-
])))), 128))
|
|
1915
|
+
}, [...r[0] || (r[0] = [
|
|
1916
|
+
le('<div class="min-w-0 w-full"><div class="flex items-start gap-x-3"><p class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2"></p></div></div><div class="flex flex-none items-center gap-x-4"><div class="hidden rounded-md bg-gray-200 px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:block"><p class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-10"></p></div></div>', 2)
|
|
1917
|
+
])]))), 128))
|
|
1919
1918
|
])) : (l(), n("ul", js, [
|
|
1920
|
-
(l(!0), n(
|
|
1919
|
+
(l(!0), n(_, null, S(u.tasks, (i) => (l(), n("li", {
|
|
1921
1920
|
key: i.id,
|
|
1922
1921
|
class: "flex items-center justify-between gap-x-6 py-5"
|
|
1923
1922
|
}, [
|
|
@@ -1955,9 +1954,9 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1955
1954
|
function Vs(p) {
|
|
1956
1955
|
return p && p.__esModule && Object.prototype.hasOwnProperty.call(p, "default") ? p.default : p;
|
|
1957
1956
|
}
|
|
1958
|
-
var
|
|
1957
|
+
var ue = { exports: {} }, Ys = ue.exports, Ie;
|
|
1959
1958
|
function qs() {
|
|
1960
|
-
return
|
|
1959
|
+
return Ie || (Ie = 1, (function(p, u) {
|
|
1961
1960
|
(function(r, i) {
|
|
1962
1961
|
p.exports = i(V);
|
|
1963
1962
|
})(Ys, (function(r) {
|
|
@@ -1969,12 +1968,12 @@ function qs() {
|
|
|
1969
1968
|
} };
|
|
1970
1969
|
return s.default.locale(o, null, !0), o;
|
|
1971
1970
|
}));
|
|
1972
|
-
})(
|
|
1971
|
+
})(ue)), ue.exports;
|
|
1973
1972
|
}
|
|
1974
1973
|
qs();
|
|
1975
|
-
var
|
|
1974
|
+
var ce = { exports: {} }, Rs = ce.exports, Ne;
|
|
1976
1975
|
function Es() {
|
|
1977
|
-
return
|
|
1976
|
+
return Ne || (Ne = 1, (function(p, u) {
|
|
1978
1977
|
(function(r, i) {
|
|
1979
1978
|
p.exports = i(V);
|
|
1980
1979
|
})(Rs, (function(r) {
|
|
@@ -1991,12 +1990,12 @@ function Es() {
|
|
|
1991
1990
|
}, weekStart: 1, yearStart: 4, formats: { LTS: "HH:mm:ss", LT: "HH:mm", L: "DD.MM.YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY HH:mm", LLLL: "dddd, D. MMMM YYYY HH:mm" }, relativeTime: { future: "in %s", past: "vor %s", s: t, m: t, mm: t, h: t, hh: t, d: t, dd: t, M: t, MM: t, y: t, yy: t } };
|
|
1992
1991
|
return s.default.locale(a, null, !0), a;
|
|
1993
1992
|
}));
|
|
1994
|
-
})(
|
|
1993
|
+
})(ce)), ce.exports;
|
|
1995
1994
|
}
|
|
1996
1995
|
Es();
|
|
1997
|
-
var
|
|
1996
|
+
var ge = { exports: {} }, Us = ge.exports, Pe;
|
|
1998
1997
|
function Hs() {
|
|
1999
|
-
return
|
|
1998
|
+
return Pe || (Pe = 1, (function(p, u) {
|
|
2000
1999
|
(function(r, i) {
|
|
2001
2000
|
p.exports = i();
|
|
2002
2001
|
})(Us, (function() {
|
|
@@ -2005,12 +2004,12 @@ function Hs() {
|
|
|
2005
2004
|
return "[" + r + (i[(s - 20) % 10] || i[s] || i[0]) + "]";
|
|
2006
2005
|
} };
|
|
2007
2006
|
}));
|
|
2008
|
-
})(
|
|
2007
|
+
})(ge)), ge.exports;
|
|
2009
2008
|
}
|
|
2010
2009
|
Hs();
|
|
2011
|
-
var
|
|
2010
|
+
var me = { exports: {} }, Zs = me.exports, Ve;
|
|
2012
2011
|
function Js() {
|
|
2013
|
-
return
|
|
2012
|
+
return Ve || (Ve = 1, (function(p, u) {
|
|
2014
2013
|
(function(r, i) {
|
|
2015
2014
|
p.exports = i(V);
|
|
2016
2015
|
})(Zs, (function(r) {
|
|
@@ -2022,17 +2021,17 @@ function Js() {
|
|
|
2022
2021
|
} };
|
|
2023
2022
|
return s.default.locale(o, null, !0), o;
|
|
2024
2023
|
}));
|
|
2025
|
-
})(
|
|
2024
|
+
})(me)), me.exports;
|
|
2026
2025
|
}
|
|
2027
2026
|
Js();
|
|
2028
|
-
const
|
|
2027
|
+
const se = (p, u) => {
|
|
2029
2028
|
const r = p.__vccOpts || p;
|
|
2030
2029
|
for (const [i, s] of u)
|
|
2031
2030
|
r[i] = s;
|
|
2032
2031
|
return r;
|
|
2033
2032
|
}, Ws = {
|
|
2034
2033
|
name: "dateSelector",
|
|
2035
|
-
components: { ChevronLeftIcon:
|
|
2034
|
+
components: { ChevronLeftIcon: st, ChevronRightIcon: ie },
|
|
2036
2035
|
computed: {
|
|
2037
2036
|
currentDate() {
|
|
2038
2037
|
return V(this.selectedDate).locale("es");
|
|
@@ -2062,7 +2061,7 @@ const le = (p, u) => {
|
|
|
2062
2061
|
}
|
|
2063
2062
|
}, Gs = { class: "dateSelector flex items-center flex-row" }, Qs = { class: "pagination flex items-center my-1 md:my-0" }, Ks = { class: "date mx-4 font-bold text-center text-black select-none uppercase" }, Xs = { class: "pagination flex items-center my-1 sm:my-0" };
|
|
2064
2063
|
function eo(p, u, r, i, s, o) {
|
|
2065
|
-
const t =
|
|
2064
|
+
const t = Oe("ChevronLeftIcon"), a = Oe("ChevronRightIcon");
|
|
2066
2065
|
return l(), n("div", Gs, [
|
|
2067
2066
|
e("div", Qs, [
|
|
2068
2067
|
e("div", {
|
|
@@ -2122,7 +2121,7 @@ function eo(p, u, r, i, s, o) {
|
|
|
2122
2121
|
])
|
|
2123
2122
|
]);
|
|
2124
2123
|
}
|
|
2125
|
-
const to = /* @__PURE__ */
|
|
2124
|
+
const to = /* @__PURE__ */ se(Ws, [["render", eo]]), lo = {
|
|
2126
2125
|
name: "SkeletonTable"
|
|
2127
2126
|
}, so = { class: "px-4 sm:px-6 lg:px-8 animate-pulse" }, oo = { class: "flow-root" }, ro = { class: "-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8" }, ao = { class: "inline-block min-w-full py-2 align-middle px-1" }, no = { class: "overflow-hidden shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg" }, io = { class: "min-w-full divide-y divide-gray-300" }, uo = { class: "divide-y divide-gray-200 bg-white" };
|
|
2128
2127
|
function co(p, u, r, i, s, o) {
|
|
@@ -2169,7 +2168,7 @@ function co(p, u, r, i, s, o) {
|
|
|
2169
2168
|
])
|
|
2170
2169
|
], -1)),
|
|
2171
2170
|
e("tbody", uo, [
|
|
2172
|
-
(l(), n(
|
|
2171
|
+
(l(), n(_, null, S(10, (t) => e("tr", { key: t }, [...u[0] || (u[0] = [
|
|
2173
2172
|
e("td", { class: "whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6" }, [
|
|
2174
2173
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })
|
|
2175
2174
|
], -1),
|
|
@@ -2194,7 +2193,7 @@ function co(p, u, r, i, s, o) {
|
|
|
2194
2193
|
])
|
|
2195
2194
|
])
|
|
2196
2195
|
], -1)
|
|
2197
|
-
]))), 64))
|
|
2196
|
+
])])), 64))
|
|
2198
2197
|
])
|
|
2199
2198
|
])
|
|
2200
2199
|
])
|
|
@@ -2203,10 +2202,10 @@ function co(p, u, r, i, s, o) {
|
|
|
2203
2202
|
])
|
|
2204
2203
|
]);
|
|
2205
2204
|
}
|
|
2206
|
-
const
|
|
2207
|
-
var
|
|
2205
|
+
const it = /* @__PURE__ */ se(lo, [["render", co]]);
|
|
2206
|
+
var pe = { exports: {} }, go = pe.exports, Ye;
|
|
2208
2207
|
function mo() {
|
|
2209
|
-
return
|
|
2208
|
+
return Ye || (Ye = 1, (function(p, u) {
|
|
2210
2209
|
(function(r, i) {
|
|
2211
2210
|
p.exports = i();
|
|
2212
2211
|
})(go, (function() {
|
|
@@ -2217,7 +2216,7 @@ function mo() {
|
|
|
2217
2216
|
};
|
|
2218
2217
|
};
|
|
2219
2218
|
}));
|
|
2220
|
-
})(
|
|
2219
|
+
})(pe)), pe.exports;
|
|
2221
2220
|
}
|
|
2222
2221
|
var po = mo();
|
|
2223
2222
|
const fo = /* @__PURE__ */ Vs(po), ho = {
|
|
@@ -2252,7 +2251,7 @@ function wo(p, u, r, i, s, o) {
|
|
|
2252
2251
|
e("p", bo, g(o.currentDay.month), 1)
|
|
2253
2252
|
], 2);
|
|
2254
2253
|
}
|
|
2255
|
-
const ko = /* @__PURE__ */
|
|
2254
|
+
const ko = /* @__PURE__ */ se(ho, [["render", wo]]), xo = {
|
|
2256
2255
|
name: "dayPrice",
|
|
2257
2256
|
props: {
|
|
2258
2257
|
currency: String,
|
|
@@ -2271,9 +2270,9 @@ const ko = /* @__PURE__ */ le(ho, [["render", wo]]), xo = {
|
|
|
2271
2270
|
};
|
|
2272
2271
|
}
|
|
2273
2272
|
}
|
|
2274
|
-
},
|
|
2275
|
-
function
|
|
2276
|
-
return l(), n("div",
|
|
2273
|
+
}, $o = { class: "priceDay" };
|
|
2274
|
+
function _o(p, u, r, i, s, o) {
|
|
2275
|
+
return l(), n("div", $o, [
|
|
2277
2276
|
e("div", {
|
|
2278
2277
|
class: y([
|
|
2279
2278
|
{
|
|
@@ -2288,7 +2287,7 @@ function $o(p, u, r, i, s, o) {
|
|
|
2288
2287
|
}, g(o.currentDay.price) + g(r.currency), 3)
|
|
2289
2288
|
]);
|
|
2290
2289
|
}
|
|
2291
|
-
const
|
|
2290
|
+
const de = /* @__PURE__ */ se(xo, [["render", _o]]), Co = {
|
|
2292
2291
|
key: 0,
|
|
2293
2292
|
class: "px-4 sm:px-6 lg:px-8"
|
|
2294
2293
|
}, So = { class: "flow-root" }, Bo = { class: "overflow-x-auto sm:-mx-6 lg:-mx-8 shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg" }, Mo = { class: "inline-block min-w-full align-middle" }, jo = { class: "min-w-full text-sm" }, Do = { class: "bg-white" }, To = {
|
|
@@ -2353,24 +2352,24 @@ const ie = /* @__PURE__ */ le(xo, [["render", $o]]), Co = {
|
|
|
2353
2352
|
},
|
|
2354
2353
|
emits: ["dateChanged", "changeCategoryBulkPrices", "changeCategorySelectionPrice", "changeCategoryUpgradePrice", "changeRoomPrice", "tableAction"],
|
|
2355
2354
|
setup(p, { emit: u }) {
|
|
2356
|
-
const r = p, i = u, s =
|
|
2355
|
+
const r = p, i = u, s = A(/* @__PURE__ */ new Date()), o = A(r.today), t = A([]);
|
|
2357
2356
|
H(() => r.today, (C) => {
|
|
2358
2357
|
o.value = C;
|
|
2359
2358
|
});
|
|
2360
2359
|
const a = Y(() => {
|
|
2361
2360
|
let C = [];
|
|
2362
|
-
for (let
|
|
2363
|
-
C.push(V(o.value).add(
|
|
2361
|
+
for (let R = 0; R < 14; R++)
|
|
2362
|
+
C.push(V(o.value).add(R, "day"));
|
|
2364
2363
|
return C;
|
|
2365
2364
|
}), d = Y(() => t.value.length > 0 && t.value.length < r.rooms.length), h = (C) => {
|
|
2366
2365
|
V(C).isBefore(s.value) || (o.value = C, i("dateChanged", o.value));
|
|
2367
2366
|
}, v = (C) => {
|
|
2368
|
-
let
|
|
2369
|
-
return
|
|
2367
|
+
let R = r.category.selectionPrices.find((I) => V(I.date).isSame(C.date));
|
|
2368
|
+
return R ? R.price : C.price;
|
|
2370
2369
|
}, j = (C) => {
|
|
2371
|
-
t.value = C.target.checked ? r.rooms.map((
|
|
2372
|
-
}, w = () => i("changeCategoryBulkPrices"), T = (C) => i("changeCategorySelectionPrice", C),
|
|
2373
|
-
return (C,
|
|
2370
|
+
t.value = C.target.checked ? r.rooms.map((R) => R.id) : [];
|
|
2371
|
+
}, w = () => i("changeCategoryBulkPrices"), T = (C) => i("changeCategorySelectionPrice", C), $ = (C) => i("changeCategoryUpgradePrice", C), O = (C) => i("tableAction", C), L = (C, R, I) => i("changeRoomPrice", { price: C, roomId: R, roomName: I });
|
|
2372
|
+
return (C, R) => C.loading ? (l(), x(it, { key: 1 })) : (l(), n("div", Co, [
|
|
2374
2373
|
e("div", So, [
|
|
2375
2374
|
e("div", Bo, [
|
|
2376
2375
|
e("div", Mo, [
|
|
@@ -2380,17 +2379,17 @@ const ie = /* @__PURE__ */ le(xo, [["render", $o]]), Co = {
|
|
|
2380
2379
|
e("th", To, [
|
|
2381
2380
|
m(to, {
|
|
2382
2381
|
selectedDate: o.value,
|
|
2383
|
-
onDateSelected:
|
|
2382
|
+
onDateSelected: R[0] || (R[0] = (I) => h(I))
|
|
2384
2383
|
}, null, 8, ["selectedDate"])
|
|
2385
2384
|
]),
|
|
2386
|
-
(l(!0), n(
|
|
2385
|
+
(l(!0), n(_, null, S(a.value, (I, k) => (l(), n("th", {
|
|
2387
2386
|
scope: "col",
|
|
2388
|
-
key:
|
|
2387
|
+
key: k,
|
|
2389
2388
|
class: "text-sm font-semibold p-0"
|
|
2390
2389
|
}, [
|
|
2391
2390
|
m(ko, {
|
|
2392
2391
|
class: "border-l border-gray-200 px-6 py-3",
|
|
2393
|
-
day:
|
|
2392
|
+
day: I
|
|
2394
2393
|
}, null, 8, ["day"])
|
|
2395
2394
|
]))), 128))
|
|
2396
2395
|
]),
|
|
@@ -2412,14 +2411,14 @@ const ie = /* @__PURE__ */ le(xo, [["render", $o]]), Co = {
|
|
|
2412
2411
|
]),
|
|
2413
2412
|
C.type === "discounts" ? (l(), n("tr", Lo, [
|
|
2414
2413
|
e("td", Fo, g(C.literals.pricesDiscount), 1),
|
|
2415
|
-
(l(!0), n(
|
|
2416
|
-
key:
|
|
2414
|
+
(l(!0), n(_, null, S(C.category.selectionPrices, (I, k) => (l(), n("td", {
|
|
2415
|
+
key: k,
|
|
2417
2416
|
class: "p-0"
|
|
2418
2417
|
}, [
|
|
2419
|
-
m(
|
|
2420
|
-
onClick: (
|
|
2418
|
+
m(de, {
|
|
2419
|
+
onClick: (N) => T(I),
|
|
2421
2420
|
class: "border-l border-gray-200 px-6 py-3 text-black hover:text-lime-400 font-bold cursor-pointer",
|
|
2422
|
-
price:
|
|
2421
|
+
price: I,
|
|
2423
2422
|
currency: C.currency.symbol,
|
|
2424
2423
|
isBasePrice: !0
|
|
2425
2424
|
}, null, 8, ["onClick", "price", "currency"])
|
|
@@ -2427,14 +2426,14 @@ const ie = /* @__PURE__ */ le(xo, [["render", $o]]), Co = {
|
|
|
2427
2426
|
])) : b("", !0),
|
|
2428
2427
|
C.type === "prices" ? (l(), n("tr", Oo, [
|
|
2429
2428
|
e("td", Ao, g(C.literals.pricesSelection), 1),
|
|
2430
|
-
(l(!0), n(
|
|
2431
|
-
key:
|
|
2429
|
+
(l(!0), n(_, null, S(C.category.selectionPrices, (I, k) => (l(), n("td", {
|
|
2430
|
+
key: k,
|
|
2432
2431
|
class: "p-0"
|
|
2433
2432
|
}, [
|
|
2434
|
-
m(
|
|
2435
|
-
onClick: (
|
|
2433
|
+
m(de, {
|
|
2434
|
+
onClick: (N) => T(I),
|
|
2436
2435
|
class: "border-l border-gray-200 px-6 py-3 text-black hover:text-lime-400 font-bold cursor-pointer",
|
|
2437
|
-
price:
|
|
2436
|
+
price: I,
|
|
2438
2437
|
currency: C.currency.symbol,
|
|
2439
2438
|
isBasePrice: !0
|
|
2440
2439
|
}, null, 8, ["onClick", "price", "currency"])
|
|
@@ -2442,14 +2441,14 @@ const ie = /* @__PURE__ */ le(xo, [["render", $o]]), Co = {
|
|
|
2442
2441
|
])) : b("", !0),
|
|
2443
2442
|
C.type === "prices" ? (l(), n("tr", Io, [
|
|
2444
2443
|
e("td", No, g(C.literals.pricesUpgrade), 1),
|
|
2445
|
-
(l(!0), n(
|
|
2446
|
-
key:
|
|
2444
|
+
(l(!0), n(_, null, S(C.category.upgradePrices, (I, k) => (l(), n("td", {
|
|
2445
|
+
key: k,
|
|
2447
2446
|
class: "p-0"
|
|
2448
2447
|
}, [
|
|
2449
|
-
m(
|
|
2450
|
-
onClick: (
|
|
2448
|
+
m(de, {
|
|
2449
|
+
onClick: (N) => $(I),
|
|
2451
2450
|
class: "border-l border-gray-200 px-6 py-3 text-black hover:text-lime-400 font-bold cursor-pointer bg-gray-100",
|
|
2452
|
-
price:
|
|
2451
|
+
price: I,
|
|
2453
2452
|
currency: C.currency.symbol,
|
|
2454
2453
|
isBasePrice: !0
|
|
2455
2454
|
}, null, 8, ["onClick", "price", "currency"])
|
|
@@ -2458,12 +2457,12 @@ const ie = /* @__PURE__ */ le(xo, [["render", $o]]), Co = {
|
|
|
2458
2457
|
e("tr", null, [
|
|
2459
2458
|
e("th", Po, [
|
|
2460
2459
|
t.value?.length > 0 && C.actions?.length > 0 ? (l(), n("div", Vo, [
|
|
2461
|
-
(l(!0), n(
|
|
2462
|
-
onClick: (
|
|
2463
|
-
key:
|
|
2460
|
+
(l(!0), n(_, null, S(C.actions, (I, k) => (l(), n("button", {
|
|
2461
|
+
onClick: (N) => O({ action: I.id, items: t.value }),
|
|
2462
|
+
key: k,
|
|
2464
2463
|
type: "button",
|
|
2465
2464
|
class: "inline-flex items-center rounded bg-lime-400 hover:bg-black hover:text-white px-2.5 py-1.5 text-xs font-medium shadow-sm disabled:cursor-not-allowed disabled:opacity-30"
|
|
2466
|
-
}, g(
|
|
2465
|
+
}, g(I.name), 9, Yo))), 128))
|
|
2467
2466
|
])) : b("", !0),
|
|
2468
2467
|
e("span", null, g(C.literals.pricesSelection), 1)
|
|
2469
2468
|
])
|
|
@@ -2481,14 +2480,14 @@ const ie = /* @__PURE__ */ le(xo, [["render", $o]]), Co = {
|
|
|
2481
2480
|
]),
|
|
2482
2481
|
e("th", Uo, g(C.literals.building), 1),
|
|
2483
2482
|
e("th", Ho, g(C.literals.floor), 1),
|
|
2484
|
-
|
|
2483
|
+
R[2] || (R[2] = e("th", {
|
|
2485
2484
|
colspan: "14",
|
|
2486
2485
|
scope: "colgroup",
|
|
2487
2486
|
class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold"
|
|
2488
2487
|
}, null, -1))
|
|
2489
2488
|
]),
|
|
2490
|
-
(l(!0), n(
|
|
2491
|
-
key:
|
|
2489
|
+
(l(!0), n(_, null, S(C.rooms, (I) => (l(), n("tr", {
|
|
2490
|
+
key: I.name,
|
|
2492
2491
|
class: y([{ "even:bg-gray-100": C.type === "prices", "odd:bg-gray-100": C.type === "discounts" }])
|
|
2493
2492
|
}, [
|
|
2494
2493
|
e("td", Zo, [
|
|
@@ -2496,25 +2495,25 @@ const ie = /* @__PURE__ */ le(xo, [["render", $o]]), Co = {
|
|
|
2496
2495
|
B(e("input", {
|
|
2497
2496
|
type: "checkbox",
|
|
2498
2497
|
class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-lime-400 focus:ring-lime-400",
|
|
2499
|
-
value:
|
|
2500
|
-
"onUpdate:modelValue":
|
|
2498
|
+
value: I.name,
|
|
2499
|
+
"onUpdate:modelValue": R[1] || (R[1] = (k) => t.value = k)
|
|
2501
2500
|
}, null, 8, Wo), [
|
|
2502
|
-
[
|
|
2501
|
+
[Ue, t.value]
|
|
2503
2502
|
]),
|
|
2504
|
-
e("span", Go, g(
|
|
2503
|
+
e("span", Go, g(I.name), 1)
|
|
2505
2504
|
]),
|
|
2506
|
-
e("td", Qo, g(
|
|
2507
|
-
e("td", Ko, g(
|
|
2508
|
-
(l(!0), n(
|
|
2505
|
+
e("td", Qo, g(I.building), 1),
|
|
2506
|
+
e("td", Ko, g(I.floor), 1),
|
|
2507
|
+
(l(!0), n(_, null, S(I.selectionPrices, (k, N) => (l(), n("td", {
|
|
2509
2508
|
class: "p-0",
|
|
2510
|
-
key:
|
|
2509
|
+
key: N
|
|
2511
2510
|
}, [
|
|
2512
|
-
m(
|
|
2513
|
-
onClick: (
|
|
2511
|
+
m(de, {
|
|
2512
|
+
onClick: (q) => L(k, I.id, I.name),
|
|
2514
2513
|
class: "border-l border-gray-200 px-6 py-3 text-black hover:text-lime-400 cursor-pointer",
|
|
2515
|
-
price:
|
|
2514
|
+
price: k,
|
|
2516
2515
|
currency: C.currency.symbol,
|
|
2517
|
-
basePrice: v(
|
|
2516
|
+
basePrice: v(k)
|
|
2518
2517
|
}, null, 8, ["onClick", "price", "currency", "basePrice"])
|
|
2519
2518
|
]))), 128))
|
|
2520
2519
|
], 2))), 128))
|
|
@@ -2550,10 +2549,10 @@ const ie = /* @__PURE__ */ le(xo, [["render", $o]]), Co = {
|
|
|
2550
2549
|
},
|
|
2551
2550
|
emits: ["selectedRange", "chartUpdated", "dataPointSelection", "maximizeChart"],
|
|
2552
2551
|
setup(p, { emit: u }) {
|
|
2553
|
-
const r = u, i =
|
|
2554
|
-
let o =
|
|
2555
|
-
H(() => s.dates, (
|
|
2556
|
-
|
|
2552
|
+
const r = u, i = A((/* @__PURE__ */ new Date()).toISOString().slice(0, (/* @__PURE__ */ new Date()).toISOString().lastIndexOf(":"))), s = p;
|
|
2553
|
+
let o = ne(s.dates || { from: "", to: i });
|
|
2554
|
+
H(() => s.dates, ($) => {
|
|
2555
|
+
$ && (o = $);
|
|
2557
2556
|
});
|
|
2558
2557
|
let a = {
|
|
2559
2558
|
chart: {
|
|
@@ -2566,10 +2565,10 @@ const ie = /* @__PURE__ */ le(xo, [["render", $o]]), Co = {
|
|
|
2566
2565
|
},
|
|
2567
2566
|
colors: function() {
|
|
2568
2567
|
return s.isNps ? [
|
|
2569
|
-
function({ value:
|
|
2570
|
-
if (
|
|
2571
|
-
if (
|
|
2572
|
-
if (
|
|
2568
|
+
function({ value: $, seriesIndex: O, dataPointIndex: L, w: C }) {
|
|
2569
|
+
if (L <= 5) return "#F87171";
|
|
2570
|
+
if (L > 5 && L <= 7) return "#eab308";
|
|
2571
|
+
if (L >= 8) return "#84cc16";
|
|
2573
2572
|
}
|
|
2574
2573
|
] : [
|
|
2575
2574
|
"#000000",
|
|
@@ -2613,28 +2612,28 @@ const ie = /* @__PURE__ */ le(xo, [["render", $o]]), Co = {
|
|
|
2613
2612
|
}), s.type === "area" && (a.tooltip = { intersect: !1, shared: !0 });
|
|
2614
2613
|
const d = () => (a.chart.stacked = s.stacked, s.options && (s.options.xaxis.hideOverlappingLabels = !0, s.options.xaxis.decimalsInFloat = 2, s.options.xaxis.tickAmount = 10), { ...a, ...s.options, plotOptions: { bar: { horizontal: s.horizontal } } }), h = () => {
|
|
2615
2614
|
o.from !== "" && o.to !== "" && V(o.from).isBefore(V(o.to)) && r("selectedRange", { range: o, chartId: s.id });
|
|
2616
|
-
}, v = Y(() => s.series), j = Y(() => d()), w = () => r("chartUpdated"), T = (
|
|
2617
|
-
r("dataPointSelection", { id: s.id, chartContext:
|
|
2615
|
+
}, v = Y(() => s.series), j = Y(() => d()), w = () => r("chartUpdated"), T = ($, O, L) => {
|
|
2616
|
+
r("dataPointSelection", { id: s.id, chartContext: O, config: L, event: $ });
|
|
2618
2617
|
};
|
|
2619
|
-
return (
|
|
2618
|
+
return ($, O) => (l(), n(_, null, [
|
|
2620
2619
|
B(e("div", {
|
|
2621
|
-
class: y(["h-[" +
|
|
2620
|
+
class: y(["h-[" + $.height + "px]", "card chart apex-chart p-4 bg-white shadow rounded-lg overflow-hidden flex grow"])
|
|
2622
2621
|
}, [
|
|
2623
2622
|
e("div", er, [
|
|
2624
|
-
e("div", tr, g(
|
|
2625
|
-
|
|
2623
|
+
e("div", tr, g($.title), 1),
|
|
2624
|
+
$.isNps && $.npsLiterals ? (l(), n("div", lr, [
|
|
2626
2625
|
m(Z, {
|
|
2627
2626
|
size: "small",
|
|
2628
2627
|
color: "red",
|
|
2629
2628
|
loading: !1
|
|
2630
2629
|
}, {
|
|
2631
2630
|
default: f(() => [
|
|
2632
|
-
m(
|
|
2631
|
+
m(F, {
|
|
2633
2632
|
icon: c(Rt),
|
|
2634
2633
|
loading: !1,
|
|
2635
2634
|
color: "red"
|
|
2636
2635
|
}, null, 8, ["icon"]),
|
|
2637
|
-
e("span", sr, g(
|
|
2636
|
+
e("span", sr, g($.npsLiterals.unhappy), 1)
|
|
2638
2637
|
]),
|
|
2639
2638
|
_: 1
|
|
2640
2639
|
}),
|
|
@@ -2644,12 +2643,12 @@ const ie = /* @__PURE__ */ le(xo, [["render", $o]]), Co = {
|
|
|
2644
2643
|
loading: !1
|
|
2645
2644
|
}, {
|
|
2646
2645
|
default: f(() => [
|
|
2647
|
-
m(
|
|
2646
|
+
m(F, {
|
|
2648
2647
|
icon: c(qt),
|
|
2649
2648
|
loading: !1,
|
|
2650
2649
|
color: "yellow"
|
|
2651
2650
|
}, null, 8, ["icon"]),
|
|
2652
|
-
e("span", or, g(
|
|
2651
|
+
e("span", or, g($.npsLiterals.neutral), 1)
|
|
2653
2652
|
]),
|
|
2654
2653
|
_: 1
|
|
2655
2654
|
}),
|
|
@@ -2659,12 +2658,12 @@ const ie = /* @__PURE__ */ le(xo, [["render", $o]]), Co = {
|
|
|
2659
2658
|
loading: !1
|
|
2660
2659
|
}, {
|
|
2661
2660
|
default: f(() => [
|
|
2662
|
-
m(
|
|
2661
|
+
m(F, {
|
|
2663
2662
|
icon: c(Et),
|
|
2664
2663
|
loading: !1,
|
|
2665
2664
|
color: "green"
|
|
2666
2665
|
}, null, 8, ["icon"]),
|
|
2667
|
-
e("span", rr, g(
|
|
2666
|
+
e("span", rr, g($.npsLiterals.happy), 1)
|
|
2668
2667
|
]),
|
|
2669
2668
|
_: 1
|
|
2670
2669
|
})
|
|
@@ -2673,71 +2672,71 @@ const ie = /* @__PURE__ */ le(xo, [["render", $o]]), Co = {
|
|
|
2673
2672
|
e("div", nr, [
|
|
2674
2673
|
B(e("input", {
|
|
2675
2674
|
type: "datetime-local",
|
|
2676
|
-
"onUpdate:modelValue":
|
|
2675
|
+
"onUpdate:modelValue": O[0] || (O[0] = (L) => c(o).from = L),
|
|
2677
2676
|
max: i.value.toString(),
|
|
2678
2677
|
onChange: h,
|
|
2679
2678
|
name: "from",
|
|
2680
2679
|
id: "from",
|
|
2681
2680
|
class: "text-xs relative block w-full rounded rounded-r-none border-0 bg-transparent py-1.5 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:z-10 focus:ring-2 focus:ring-inset focus:ring-indigo-600"
|
|
2682
2681
|
}, null, 40, ir), [
|
|
2683
|
-
[
|
|
2682
|
+
[oe, c(o).from]
|
|
2684
2683
|
])
|
|
2685
2684
|
]),
|
|
2686
2685
|
e("div", dr, [
|
|
2687
2686
|
B(e("input", {
|
|
2688
2687
|
type: "datetime-local",
|
|
2689
|
-
"onUpdate:modelValue":
|
|
2688
|
+
"onUpdate:modelValue": O[1] || (O[1] = (L) => c(o).to = L),
|
|
2690
2689
|
max: i.value.toString(),
|
|
2691
2690
|
onChange: h,
|
|
2692
2691
|
name: "to",
|
|
2693
2692
|
id: "to",
|
|
2694
2693
|
class: "text-xs relative block w-full -mr-2 rounded rounded-l-none border-0 bg-transparent py-1.5 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:z-10 focus:ring-2 focus:ring-inset focus:ring-indigo-600"
|
|
2695
2694
|
}, null, 40, ur), [
|
|
2696
|
-
[
|
|
2695
|
+
[oe, c(o).to]
|
|
2697
2696
|
])
|
|
2698
2697
|
]),
|
|
2699
|
-
m(
|
|
2698
|
+
m(F, {
|
|
2700
2699
|
class: "ml-4 cursor-pointer",
|
|
2701
2700
|
size: "big",
|
|
2702
|
-
loading:
|
|
2703
|
-
icon: c(
|
|
2704
|
-
onClick:
|
|
2701
|
+
loading: $.loading,
|
|
2702
|
+
icon: c(et),
|
|
2703
|
+
onClick: O[2] || (O[2] = (L) => $.$emit("maximizeChart", $.id))
|
|
2705
2704
|
}, null, 8, ["loading", "icon"])
|
|
2706
2705
|
])
|
|
2707
2706
|
]),
|
|
2708
2707
|
B(e("div", cr, [
|
|
2709
|
-
m(c(
|
|
2708
|
+
m(c(Le), {
|
|
2710
2709
|
class: "chart",
|
|
2711
|
-
type:
|
|
2710
|
+
type: $.type,
|
|
2712
2711
|
series: v.value,
|
|
2713
|
-
height:
|
|
2712
|
+
height: $.height,
|
|
2714
2713
|
options: j.value,
|
|
2715
2714
|
onUpdated: w,
|
|
2716
2715
|
onMounted: w,
|
|
2717
2716
|
onDataPointSelection: T
|
|
2718
2717
|
}, null, 8, ["type", "series", "height", "options"])
|
|
2719
2718
|
], 512), [
|
|
2720
|
-
[D,
|
|
2719
|
+
[D, !$.empty]
|
|
2721
2720
|
]),
|
|
2722
2721
|
B(e("div", {
|
|
2723
|
-
class: y(["h-[" +
|
|
2722
|
+
class: y(["h-[" + $.height + "px]", "w-full flex items-center justify-center flex-col"])
|
|
2724
2723
|
}, [
|
|
2725
|
-
m(
|
|
2724
|
+
m(F, {
|
|
2726
2725
|
icon: c(W),
|
|
2727
2726
|
color: "gray",
|
|
2728
2727
|
loading: !1,
|
|
2729
2728
|
size: "massive"
|
|
2730
2729
|
}, null, 8, ["icon"]),
|
|
2731
|
-
|
|
2730
|
+
O[3] || (O[3] = e("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data for this time frame", -1))
|
|
2732
2731
|
], 2), [
|
|
2733
|
-
[D,
|
|
2732
|
+
[D, $.empty]
|
|
2734
2733
|
])
|
|
2735
2734
|
], 2), [
|
|
2736
|
-
[D,
|
|
2735
|
+
[D, !$.loading]
|
|
2737
2736
|
]),
|
|
2738
2737
|
B(e("div", {
|
|
2739
|
-
class: y(["h-[" +
|
|
2740
|
-
},
|
|
2738
|
+
class: y(["h-[" + $.height + "px]", "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80"])
|
|
2739
|
+
}, [...O[4] || (O[4] = [
|
|
2741
2740
|
e("div", {
|
|
2742
2741
|
role: "status",
|
|
2743
2742
|
class: "w-full animate-pulse h-full flex flex-col"
|
|
@@ -2763,8 +2762,8 @@ const ie = /* @__PURE__ */ le(xo, [["render", $o]]), Co = {
|
|
|
2763
2762
|
e("div", { class: "w-full bg-gray-200 rounded h-1/2" })
|
|
2764
2763
|
])
|
|
2765
2764
|
], -1)
|
|
2766
|
-
]), 2), [
|
|
2767
|
-
[D,
|
|
2765
|
+
])], 2), [
|
|
2766
|
+
[D, $.loading]
|
|
2768
2767
|
])
|
|
2769
2768
|
], 64));
|
|
2770
2769
|
}
|
|
@@ -2772,15 +2771,15 @@ const ie = /* @__PURE__ */ le(xo, [["render", $o]]), Co = {
|
|
|
2772
2771
|
name: "uiFooter"
|
|
2773
2772
|
}, pr = { class: "bg-white" };
|
|
2774
2773
|
function fr(p, u, r, i, s, o) {
|
|
2775
|
-
return l(), n("footer", pr, u[0] || (u[0] = [
|
|
2774
|
+
return l(), n("footer", pr, [...u[0] || (u[0] = [
|
|
2776
2775
|
e("div", { class: "mx-auto py-6 px-4 sm:px-6 md:flex md:items-center md:justify-between lg:px-8" }, [
|
|
2777
2776
|
e("div", { class: "mt-8 md:mt-0 md:order-1" }, [
|
|
2778
2777
|
e("p", { class: "text-center text-base text-gray-400" }, "© Made by Hotelinking.")
|
|
2779
2778
|
])
|
|
2780
2779
|
], -1)
|
|
2781
|
-
]));
|
|
2780
|
+
])]);
|
|
2782
2781
|
}
|
|
2783
|
-
const hr = /* @__PURE__ */
|
|
2782
|
+
const hr = /* @__PURE__ */ se(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
2784
2783
|
__name: "uiLoadingScreen",
|
|
2785
2784
|
props: {
|
|
2786
2785
|
title: {},
|
|
@@ -2817,7 +2816,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
2817
2816
|
}, kr = {
|
|
2818
2817
|
href: "#",
|
|
2819
2818
|
class: "ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50"
|
|
2820
|
-
}, xr = { class: "hidden sm:flex-1 sm:flex sm:items-center sm:justify-between" },
|
|
2819
|
+
}, xr = { class: "hidden sm:flex-1 sm:flex sm:items-center sm:justify-between" }, $r = { class: "text-sm text-gray-700" }, _r = { class: "font-bold mx-1" }, Cr = { class: "font-bold mx-1" }, Sr = { class: "font-bold mx-1" }, Br = {
|
|
2821
2820
|
class: "relative z-0 inline-flex rounded-md shadow-sm -space-x-px",
|
|
2822
2821
|
"aria-label": "Pagination"
|
|
2823
2822
|
}, Mr = { class: "sr-only" }, jr = ["onClick"], Dr = { class: "sr-only" }, Tr = {
|
|
@@ -2833,7 +2832,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
2833
2832
|
},
|
|
2834
2833
|
emits: ["changePage"],
|
|
2835
2834
|
setup(p, { emit: u }) {
|
|
2836
|
-
const r = u, i = p, s =
|
|
2835
|
+
const r = u, i = p, s = A(3), o = Y(
|
|
2837
2836
|
() => Math.max(1, Number(i.current) - Number(s.value))
|
|
2838
2837
|
), t = Y(
|
|
2839
2838
|
() => Math.min(Number(i.current) + Number(s.value), Number(i.total))
|
|
@@ -2843,10 +2842,10 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
2843
2842
|
d.push(h);
|
|
2844
2843
|
return d;
|
|
2845
2844
|
});
|
|
2846
|
-
return (d, h) => d.loading ? (l(), n("div", Tr, h[3] || (h[3] = [
|
|
2845
|
+
return (d, h) => d.loading ? (l(), n("div", Tr, [...h[3] || (h[3] = [
|
|
2847
2846
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5" }, null, -1),
|
|
2848
2847
|
e("div", { class: "h-10 w-32 bg-gray-200 rounded dark:bg-gray-300" }, null, -1)
|
|
2849
|
-
]))) : (l(), n("div", vr, [
|
|
2848
|
+
])])) : (l(), n("div", vr, [
|
|
2850
2849
|
e("div", br, [
|
|
2851
2850
|
e("a", wr, [
|
|
2852
2851
|
E(d.$slots, "previous")
|
|
@@ -2857,9 +2856,9 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
2857
2856
|
]),
|
|
2858
2857
|
e("div", xr, [
|
|
2859
2858
|
e("div", null, [
|
|
2860
|
-
e("p",
|
|
2859
|
+
e("p", $r, [
|
|
2861
2860
|
E(d.$slots, "showing"),
|
|
2862
|
-
e("span",
|
|
2861
|
+
e("span", _r, g(d.current), 1),
|
|
2863
2862
|
E(d.$slots, "of"),
|
|
2864
2863
|
e("span", Cr, g(d.total), 1),
|
|
2865
2864
|
E(d.$slots, "pages"),
|
|
@@ -2878,14 +2877,14 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
2878
2877
|
e("span", Mr, [
|
|
2879
2878
|
E(d.$slots, "previous")
|
|
2880
2879
|
]),
|
|
2881
|
-
m(c(
|
|
2880
|
+
m(c(st), {
|
|
2882
2881
|
class: "h-5 w-5",
|
|
2883
2882
|
"aria-hidden": "true"
|
|
2884
2883
|
})
|
|
2885
2884
|
], 512), [
|
|
2886
2885
|
[D, d.current !== 1]
|
|
2887
2886
|
]),
|
|
2888
|
-
(l(!0), n(
|
|
2887
|
+
(l(!0), n(_, null, S(a.value, (v) => (l(), n("button", {
|
|
2889
2888
|
onClick: (j) => r("changePage", v),
|
|
2890
2889
|
key: v,
|
|
2891
2890
|
"aria-current": "page",
|
|
@@ -2901,7 +2900,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
2901
2900
|
e("span", Dr, [
|
|
2902
2901
|
E(d.$slots, "next")
|
|
2903
2902
|
]),
|
|
2904
|
-
m(c(
|
|
2903
|
+
m(c(ie), {
|
|
2905
2904
|
class: "h-5 w-5",
|
|
2906
2905
|
"aria-hidden": "true"
|
|
2907
2906
|
})
|
|
@@ -2947,13 +2946,13 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
2947
2946
|
e("div", Fr, [
|
|
2948
2947
|
e("div", Or, [
|
|
2949
2948
|
e("nav", Ar, [
|
|
2950
|
-
o.loading ? (l(), n(
|
|
2949
|
+
o.loading ? (l(), n(_, { key: 1 }, S(5, (a) => e("div", Er, [...t[1] || (t[1] = [
|
|
2951
2950
|
e("div", { class: "w-6 h-6 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 mr-4" }, null, -1),
|
|
2952
2951
|
e("div", { class: "h-3 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 grow" }, null, -1)
|
|
2953
|
-
]))), 64)) : (l(!0), n(
|
|
2952
|
+
])])), 64)) : (l(!0), n(_, { key: 0 }, S(s.value, (a) => (l(), n(_, {
|
|
2954
2953
|
key: a.name
|
|
2955
2954
|
}, [
|
|
2956
|
-
a.children ? (l(),
|
|
2955
|
+
a.children ? (l(), x(c(Te), {
|
|
2957
2956
|
key: 1,
|
|
2958
2957
|
as: "div",
|
|
2959
2958
|
class: "space-y-1"
|
|
@@ -2963,7 +2962,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
2963
2962
|
class: y([a.current ? "bg-indigo-600 text-white" : "text-gray-600 hover:bg-gray-50 hover:text-gray-900", "group w-full flex items-center pl-2 pr-1 py-2 text-left text-sm font-medium rounded-md focus:outline-none"])
|
|
2964
2963
|
}, {
|
|
2965
2964
|
default: f(() => [
|
|
2966
|
-
a.icon ? (l(),
|
|
2965
|
+
a.icon ? (l(), x(F, {
|
|
2967
2966
|
key: 0,
|
|
2968
2967
|
loading: o.loading,
|
|
2969
2968
|
icon: a.icon,
|
|
@@ -2973,18 +2972,18 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
2973
2972
|
]),
|
|
2974
2973
|
"aria-hidden": "true"
|
|
2975
2974
|
}, null, 8, ["loading", "icon", "class"])) : b("", !0),
|
|
2976
|
-
o.loading ? (l(), n("div", Yr, t[0] || (t[0] = [
|
|
2975
|
+
o.loading ? (l(), n("div", Yr, [...t[0] || (t[0] = [
|
|
2977
2976
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1)
|
|
2978
|
-
]))) : (l(), n("span", Vr, g(a.name), 1)),
|
|
2979
|
-
m(c(
|
|
2977
|
+
])])) : (l(), n("span", Vr, g(a.name), 1)),
|
|
2978
|
+
m(c(ie), {
|
|
2980
2979
|
class: y([d ? "text-black rotate-90" : "text-gray-400", "mr-3 flex-shrink-0 h-3 w-3 transform group-hover:text-gray-400 transition-colors ease-in-out duration-150"])
|
|
2981
2980
|
}, null, 8, ["class"])
|
|
2982
2981
|
]),
|
|
2983
2982
|
_: 2
|
|
2984
2983
|
}, 1032, ["class"]),
|
|
2985
|
-
m(c(
|
|
2984
|
+
m(c(ze), { class: "space-y-1" }, {
|
|
2986
2985
|
default: f(() => [
|
|
2987
|
-
(l(!0), n(
|
|
2986
|
+
(l(!0), n(_, null, S(a.children, (h) => (l(), x(c(Q), {
|
|
2988
2987
|
onClick: (v) => i("sideBarClick", h.id),
|
|
2989
2988
|
key: h.name,
|
|
2990
2989
|
class: y([h.current ? "bg-gray-200" : "hover:text-gray-900 hover:bg-gray-100", "group text-gray-600 w-full flex items-center text-left pl-11 pr-2 py-2 text-sm font-medium rounded-md"])
|
|
@@ -3007,7 +3006,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3007
3006
|
"group w-full flex items-center pl-2 py-2 text-sm font-medium rounded-md"
|
|
3008
3007
|
])
|
|
3009
3008
|
}, [
|
|
3010
|
-
a.icon ? (l(),
|
|
3009
|
+
a.icon ? (l(), x(F, {
|
|
3011
3010
|
key: 0,
|
|
3012
3011
|
loading: o.loading,
|
|
3013
3012
|
icon: a.icon,
|
|
@@ -3043,7 +3042,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3043
3042
|
}, oa = { class: "ml-2 space-y-1" }, ra = { class: "font-bold mb-4" }, aa = {
|
|
3044
3043
|
key: 1,
|
|
3045
3044
|
class: "flex flex-col grow h-full"
|
|
3046
|
-
}, na = { class: "flex-1 overflow-y-auto pr-6" }, ia = { class: "h-12 flex flex-row items-center" },
|
|
3045
|
+
}, na = { class: "flex-1 overflow-y-auto pr-6" }, ia = { class: "h-12 flex flex-row items-center" }, ke = /* @__PURE__ */ M({
|
|
3047
3046
|
__name: "uiSidebarV2",
|
|
3048
3047
|
props: {
|
|
3049
3048
|
navigation: {},
|
|
@@ -3059,7 +3058,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3059
3058
|
return (s, o) => (l(), n("div", Hr, [
|
|
3060
3059
|
e("div", Zr, [
|
|
3061
3060
|
e("ul", null, [
|
|
3062
|
-
(l(!0), n(
|
|
3061
|
+
(l(!0), n(_, null, S(s.productsSidebar, (t, a) => (l(), n("li", {
|
|
3063
3062
|
key: a,
|
|
3064
3063
|
class: y([{ "!bg-lime-400": t.active }, "w-full h-16 p-4 flex items-center justify-center cursor-pointer hover:bg-lime-400 hover:text-black"]),
|
|
3065
3064
|
onClick: (d) => s.$emit("productBarClick", t.name)
|
|
@@ -3073,10 +3072,10 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3073
3072
|
]),
|
|
3074
3073
|
s.loading ? (l(), n("div", aa, [
|
|
3075
3074
|
e("div", na, [
|
|
3076
|
-
(l(), n(
|
|
3075
|
+
(l(), n(_, null, S(5, (t) => e("div", ia, [...o[2] || (o[2] = [
|
|
3077
3076
|
e("div", { class: "w-6 h-6 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 mr-4" }, null, -1),
|
|
3078
3077
|
e("div", { class: "h-3 animate-pulse bg-gray-200 rounded-full w-1/2 dark:bg-gray-300" }, null, -1)
|
|
3079
|
-
]))), 64))
|
|
3078
|
+
])])), 64))
|
|
3080
3079
|
])
|
|
3081
3080
|
])) : (l(), n("div", Gr, [
|
|
3082
3081
|
e("div", {
|
|
@@ -3094,10 +3093,10 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3094
3093
|
s.isFilterNavigation ? b("", !0) : (l(), n("ul", ea, [
|
|
3095
3094
|
e("li", null, [
|
|
3096
3095
|
e("ul", ta, [
|
|
3097
|
-
(l(!0), n(
|
|
3096
|
+
(l(!0), n(_, null, S(i.value, (t) => (l(), n("li", {
|
|
3098
3097
|
key: t.name
|
|
3099
3098
|
}, [
|
|
3100
|
-
t.children ? (l(),
|
|
3099
|
+
t.children ? (l(), x(c(Te), {
|
|
3101
3100
|
key: 1,
|
|
3102
3101
|
as: "div"
|
|
3103
3102
|
}, {
|
|
@@ -3107,7 +3106,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3107
3106
|
class: y([t.current ? "bg-lime-100" : "hover:bg-lime-100", "flex w-full items-center gap-x-3 rounded-md p-2 text-left text-sm font-semibold leading-6 text-gray-700"])
|
|
3108
3107
|
}, {
|
|
3109
3108
|
default: f(() => [
|
|
3110
|
-
m(
|
|
3109
|
+
m(F, {
|
|
3111
3110
|
icon: t.icon,
|
|
3112
3111
|
color: "primary",
|
|
3113
3112
|
size: "big",
|
|
@@ -3116,7 +3115,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3116
3115
|
class: "shrink-0"
|
|
3117
3116
|
}, null, 8, ["icon"]),
|
|
3118
3117
|
z(" " + g(t.name) + " ", 1),
|
|
3119
|
-
m(c(
|
|
3118
|
+
m(c(ie), {
|
|
3120
3119
|
class: y([t.children.some((a) => a.current) || t.current ? "rotate-90 text-black" : "text-gray-400", "ml-auto h-5 w-5 shrink-0"]),
|
|
3121
3120
|
"aria-hidden": "true"
|
|
3122
3121
|
}, null, 8, ["class"])
|
|
@@ -3124,13 +3123,13 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3124
3123
|
_: 2
|
|
3125
3124
|
}, 1032, ["onClick", "class"]),
|
|
3126
3125
|
B(e("div", null, [
|
|
3127
|
-
m(c(
|
|
3126
|
+
m(c(ze), {
|
|
3128
3127
|
as: "ul",
|
|
3129
3128
|
class: "mt-1 px-2",
|
|
3130
3129
|
static: ""
|
|
3131
3130
|
}, {
|
|
3132
3131
|
default: f(() => [
|
|
3133
|
-
(l(!0), n(
|
|
3132
|
+
(l(!0), n(_, null, S(t.children, (a) => (l(), n("li", {
|
|
3134
3133
|
key: a.name
|
|
3135
3134
|
}, [
|
|
3136
3135
|
m(c(Q), {
|
|
@@ -3157,7 +3156,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3157
3156
|
onClick: (a) => s.$emit("sideBarClick", t.id),
|
|
3158
3157
|
class: y([t.current ? "bg-lime-100" : "hover:bg-lime-100", "group flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6 text-gray-700 cursor-pointer"])
|
|
3159
3158
|
}, [
|
|
3160
|
-
m(
|
|
3159
|
+
m(F, {
|
|
3161
3160
|
icon: t.icon,
|
|
3162
3161
|
color: "primary",
|
|
3163
3162
|
size: "big",
|
|
@@ -3173,7 +3172,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3173
3172
|
])),
|
|
3174
3173
|
s.isFilterNavigation && s.filterNavigation ? (l(), n("ul", sa, [
|
|
3175
3174
|
e("li", oa, [
|
|
3176
|
-
s.filterNavigation.hasSearch && s.filterNavigation.search ? (l(),
|
|
3175
|
+
s.filterNavigation.hasSearch && s.filterNavigation.search ? (l(), x(J, {
|
|
3177
3176
|
key: 0,
|
|
3178
3177
|
name: s.filterNavigation.search.name,
|
|
3179
3178
|
label: s.filterNavigation.search.label,
|
|
@@ -3183,12 +3182,12 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3183
3182
|
onInputChanged: o[1] || (o[1] = (t) => s.$emit("inputChanged", t))
|
|
3184
3183
|
}, null, 8, ["name", "label", "placeholder", "value", "loading"])) : b("", !0)
|
|
3185
3184
|
]),
|
|
3186
|
-
(l(!0), n(
|
|
3185
|
+
(l(!0), n(_, null, S(s.filterNavigation.items, (t, a) => (l(), n("li", {
|
|
3187
3186
|
class: "ml-2",
|
|
3188
3187
|
key: a
|
|
3189
3188
|
}, [
|
|
3190
3189
|
e("p", ra, g(t.label), 1),
|
|
3191
|
-
(l(!0), n(
|
|
3190
|
+
(l(!0), n(_, null, S(t.filters, (d, h) => (l(), x(Xe, {
|
|
3192
3191
|
class: "mb-2",
|
|
3193
3192
|
value: d.value,
|
|
3194
3193
|
loading: d.loading
|
|
@@ -3208,7 +3207,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3208
3207
|
}), da = { key: 0 }, ua = { class: "ml-16 text-sm font-medium truncate" }, ca = { class: "ml-16 flex items-baseline pb-5" }, ga = { class: "text-2xl font-semibold" }, ma = {
|
|
3209
3208
|
key: 0,
|
|
3210
3209
|
class: "text-black ml-2 flex items-baseline text-sm font-semibold"
|
|
3211
|
-
}, pa = { class: "absolute bottom-0 inset-x-0 bg-lime-50 px-4 py-4 sm:px-6" }, fa = { class: "text-sm" }, ha = { key: 1 }, ya = { class: "relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full pb-6" }, va = { class: "absolute bg-gray-200 rounded-md p-3 animate-pulse" },
|
|
3210
|
+
}, pa = { class: "absolute bottom-0 inset-x-0 bg-lime-50 px-4 py-4 sm:px-6" }, fa = { class: "text-sm" }, ha = { key: 1 }, ya = { class: "relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full pb-6" }, va = { class: "absolute bg-gray-200 rounded-md p-3 animate-pulse" }, dt = /* @__PURE__ */ M({
|
|
3212
3211
|
__name: "uiStats",
|
|
3213
3212
|
props: {
|
|
3214
3213
|
item: {},
|
|
@@ -3220,7 +3219,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3220
3219
|
e("div", ya, [
|
|
3221
3220
|
e("dt", null, [
|
|
3222
3221
|
e("div", va, [
|
|
3223
|
-
m(
|
|
3222
|
+
m(F, {
|
|
3224
3223
|
loading: r.loading,
|
|
3225
3224
|
icon: r.item.icon,
|
|
3226
3225
|
class: "h-6 w-6 text-white",
|
|
@@ -3247,7 +3246,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3247
3246
|
"bg-yellow-400": r.item.color === "yellow"
|
|
3248
3247
|
}])
|
|
3249
3248
|
}, [
|
|
3250
|
-
m(
|
|
3249
|
+
m(F, {
|
|
3251
3250
|
icon: r.item.icon,
|
|
3252
3251
|
class: "h-6 w-6",
|
|
3253
3252
|
"aria-hidden": "true",
|
|
@@ -3270,12 +3269,12 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3270
3269
|
"ml-2 flex items-baseline text-sm font-semibold"
|
|
3271
3270
|
])
|
|
3272
3271
|
}, [
|
|
3273
|
-
r.item.changeType === "increase" ? (l(),
|
|
3272
|
+
r.item.changeType === "increase" ? (l(), x(c(Pt), {
|
|
3274
3273
|
key: 0,
|
|
3275
3274
|
class: "self-center flex-shrink-0 h-3 w-3 text-green-500",
|
|
3276
3275
|
"aria-hidden": "true"
|
|
3277
3276
|
})) : b("", !0),
|
|
3278
|
-
r.item.changeType === "decrease" ? (l(),
|
|
3277
|
+
r.item.changeType === "decrease" ? (l(), x(c(It), {
|
|
3279
3278
|
key: 1,
|
|
3280
3279
|
class: "self-center flex-shrink-0 h-3 w-3 text-red-500",
|
|
3281
3280
|
"aria-hidden": "true"
|
|
@@ -3299,7 +3298,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3299
3298
|
}), ba = {
|
|
3300
3299
|
key: 0,
|
|
3301
3300
|
class: "overflow-hidden bg-white shadow sm:rounded-lg"
|
|
3302
|
-
}, wa = { class: "px-4 py-5 sm:px-6" }, ka = { class: "text-lg font-medium leading-6" }, xa = { class: "mt-1 max-w-2xl text-sm" },
|
|
3301
|
+
}, wa = { class: "px-4 py-5 sm:px-6" }, ka = { class: "text-lg font-medium leading-6" }, xa = { class: "mt-1 max-w-2xl text-sm" }, $a = { class: "border-t border-gray-200" }, _a = { class: "text-sm font-medium" }, Ca = {
|
|
3303
3302
|
key: 0,
|
|
3304
3303
|
class: "mt-1 text-sm sm:col-span-2 sm:mt-0 break-normal"
|
|
3305
3304
|
}, Sa = ["onClick"], Ba = {
|
|
@@ -3319,20 +3318,20 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3319
3318
|
emits: ["itemClicked"],
|
|
3320
3319
|
setup(p) {
|
|
3321
3320
|
return (u, r) => u.loading ? (l(), n("div", Ma, [
|
|
3322
|
-
r[1] || (r[1] =
|
|
3321
|
+
r[1] || (r[1] = le('<div class="px-4 py-5 sm:px-6 animate-pulse"><h3 class="text-lg font-medium leading-6"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4"></div></h3><div class="mt-1 max-w-2xl text-sm text-gray-500"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/5"></div></div></div>', 1)),
|
|
3323
3322
|
e("div", ja, [
|
|
3324
3323
|
e("dl", null, [
|
|
3325
|
-
(l(), n(
|
|
3324
|
+
(l(), n(_, null, S(5, (i) => e("div", {
|
|
3326
3325
|
key: i,
|
|
3327
3326
|
class: y(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [i % 2 === 0 ? "bg-gray-50" : "bg-white"]])
|
|
3328
|
-
}, r[0] || (r[0] = [
|
|
3327
|
+
}, [...r[0] || (r[0] = [
|
|
3329
3328
|
e("dt", { class: "text-sm font-medium text-gray-500" }, [
|
|
3330
3329
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12" })
|
|
3331
3330
|
], -1),
|
|
3332
3331
|
e("dd", { class: "mt-1 text-sm sm:col-span-2 sm:mt-0 break-words" }, [
|
|
3333
3332
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12" })
|
|
3334
3333
|
], -1)
|
|
3335
|
-
]), 2)), 64))
|
|
3334
|
+
])], 2)), 64))
|
|
3336
3335
|
])
|
|
3337
3336
|
])
|
|
3338
3337
|
])) : (l(), n("div", ba, [
|
|
@@ -3340,15 +3339,15 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3340
3339
|
e("h3", ka, g(u.title), 1),
|
|
3341
3340
|
e("p", xa, g(u.subtitle), 1)
|
|
3342
3341
|
]),
|
|
3343
|
-
e("div",
|
|
3342
|
+
e("div", $a, [
|
|
3344
3343
|
e("dl", null, [
|
|
3345
|
-
(l(!0), n(
|
|
3344
|
+
(l(!0), n(_, null, S(u.items, (i, s) => (l(), n("div", {
|
|
3346
3345
|
key: s,
|
|
3347
3346
|
class: y(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [s % 2 === 0 ? "bg-lime-50" : "bg-white"]])
|
|
3348
3347
|
}, [
|
|
3349
|
-
e("dt",
|
|
3348
|
+
e("dt", _a, g(i.title), 1),
|
|
3350
3349
|
i.type === "tags" ? (l(), n("dd", Ca, [
|
|
3351
|
-
(l(!0), n(
|
|
3350
|
+
(l(!0), n(_, null, S(i.tags, (o, t) => (l(), x(Z, {
|
|
3352
3351
|
loading: u.loading,
|
|
3353
3352
|
key: t,
|
|
3354
3353
|
color: o.color,
|
|
@@ -3395,7 +3394,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3395
3394
|
})
|
|
3396
3395
|
], -1)),
|
|
3397
3396
|
e("div", null, [
|
|
3398
|
-
m(
|
|
3397
|
+
m(F, {
|
|
3399
3398
|
icon: c(Zt),
|
|
3400
3399
|
loading: !1,
|
|
3401
3400
|
color: "white",
|
|
@@ -3428,7 +3427,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3428
3427
|
},
|
|
3429
3428
|
emits: ["tableAction", "orderBy", "customEmit", "selectedItemsDeleted"],
|
|
3430
3429
|
setup(p, { emit: u }) {
|
|
3431
|
-
let r =
|
|
3430
|
+
let r = A([]), i = A(""), s = A(!1);
|
|
3432
3431
|
const o = u, t = p, a = Y(
|
|
3433
3432
|
() => r.value.length > 0 && r.value.length < t.items.length
|
|
3434
3433
|
), d = (w, T) => {
|
|
@@ -3440,18 +3439,18 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3440
3439
|
}, j = (w) => t.hiddenColumns && t.hiddenColumns.length > 0 ? !t.hiddenColumns.includes(w) : !0;
|
|
3441
3440
|
return H(() => t.resetSelected, (w) => {
|
|
3442
3441
|
s.value = w, w && s.value && (r.value = [], s.value = !w, o("selectedItemsDeleted"));
|
|
3443
|
-
}), (w, T) => w.loading ? (l(),
|
|
3442
|
+
}), (w, T) => w.loading ? (l(), x(it, { key: 1 })) : (l(), n("div", Fa, [
|
|
3444
3443
|
e("div", Oa, [
|
|
3445
3444
|
e("div", Aa, [
|
|
3446
3445
|
e("div", Ia, [
|
|
3447
3446
|
e("div", Na, [
|
|
3448
3447
|
c(r)?.length > 0 && w.actions?.length > 0 ? (l(), n("div", Pa, [
|
|
3449
|
-
(l(!0), n(
|
|
3450
|
-
onClick: (
|
|
3451
|
-
key:
|
|
3448
|
+
(l(!0), n(_, null, S(w.actions, ($, O) => (l(), n("button", {
|
|
3449
|
+
onClick: (L) => w.$emit("tableAction", { action: $.id, items: c(r) }),
|
|
3450
|
+
key: O,
|
|
3452
3451
|
type: "button",
|
|
3453
3452
|
class: "inline-flex items-center rounded bg-lime-400 hover:bg-black px-2.5 py-1.5 text-xs font-medium text-white shadow-sm disabled:cursor-not-allowed disabled:opacity-30"
|
|
3454
|
-
}, g(
|
|
3453
|
+
}, g($.name), 9, Va))), 128))
|
|
3455
3454
|
])) : b("", !0),
|
|
3456
3455
|
e("table", Ya, [
|
|
3457
3456
|
e("thead", qa, [
|
|
@@ -3469,91 +3468,91 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3469
3468
|
onChange: h
|
|
3470
3469
|
}, null, 40, Ra)) : b("", !0)
|
|
3471
3470
|
], 2),
|
|
3472
|
-
(l(!0), n(
|
|
3473
|
-
key:
|
|
3471
|
+
(l(!0), n(_, null, S(w.header, ($, O) => B((l(), n("th", {
|
|
3472
|
+
key: O,
|
|
3474
3473
|
class: "py-3.5 pr-3 text-left font-semibold relative",
|
|
3475
3474
|
scope: "col",
|
|
3476
|
-
onMouseover: (
|
|
3477
|
-
onMouseleave: (
|
|
3475
|
+
onMouseover: (L) => d($.name, !0),
|
|
3476
|
+
onMouseleave: (L) => d($.name, !1)
|
|
3478
3477
|
}, [
|
|
3479
|
-
|
|
3478
|
+
$.tooltip ? B((l(), x(La, {
|
|
3480
3479
|
key: 0,
|
|
3481
|
-
tip:
|
|
3480
|
+
tip: $.tooltip
|
|
3482
3481
|
}, null, 8, ["tip"])), [
|
|
3483
|
-
[D, c(i) ===
|
|
3482
|
+
[D, c(i) === $.name]
|
|
3484
3483
|
]) : b("", !0),
|
|
3485
|
-
|
|
3484
|
+
$.value ? (l(), n("button", {
|
|
3486
3485
|
key: 1,
|
|
3487
3486
|
class: "group flex items-center uppercase text-xs relative text-nowrap",
|
|
3488
|
-
onClick: (
|
|
3487
|
+
onClick: (L) => o("orderBy", { value: $.value, orderDirection: w.orderDirection === "asc" ? "desc" : "asc" })
|
|
3489
3488
|
}, [
|
|
3490
|
-
e("span", null, g(
|
|
3489
|
+
e("span", null, g($.name), 1),
|
|
3491
3490
|
e("span", {
|
|
3492
3491
|
class: y([[
|
|
3493
|
-
|
|
3492
|
+
$.value === w.orderedBy ? "bg-black text-white group-hover:bg-lime-400 group-hover:text-black" : "group-hover:visible group-focus:visible"
|
|
3494
3493
|
], "ml-2 flex-none rounded group-hover:bg-lime-200 group-hover:text-white"])
|
|
3495
3494
|
}, [
|
|
3496
|
-
m(
|
|
3497
|
-
icon: w.orderDirection === "asc" ? c(
|
|
3495
|
+
m(F, {
|
|
3496
|
+
icon: w.orderDirection === "asc" ? c(re) : c(ot),
|
|
3498
3497
|
loading: w.loading,
|
|
3499
|
-
color:
|
|
3498
|
+
color: $.value === w.orderedBy ? "white" : "primary"
|
|
3500
3499
|
}, null, 8, ["icon", "loading", "color"])
|
|
3501
3500
|
], 2)
|
|
3502
3501
|
], 8, Ua)) : (l(), n("p", Ha, [
|
|
3503
|
-
e("span", null, g(
|
|
3502
|
+
e("span", null, g($.name), 1)
|
|
3504
3503
|
]))
|
|
3505
3504
|
], 40, Ea)), [
|
|
3506
|
-
[D, j(
|
|
3505
|
+
[D, j(O)]
|
|
3507
3506
|
])), 128))
|
|
3508
3507
|
])
|
|
3509
3508
|
]),
|
|
3510
3509
|
e("tbody", Za, [
|
|
3511
|
-
(l(!0), n(
|
|
3512
|
-
key:
|
|
3510
|
+
(l(!0), n(_, null, S(w.items, ($, O) => (l(), n("tr", {
|
|
3511
|
+
key: $.id,
|
|
3513
3512
|
class: y([
|
|
3514
|
-
c(r).includes(
|
|
3515
|
-
|
|
3513
|
+
c(r).includes($.id) && "bg-gray-50",
|
|
3514
|
+
O % 2 == 0 ? void 0 : "bg-gray-50"
|
|
3516
3515
|
])
|
|
3517
3516
|
}, [
|
|
3518
3517
|
e("td", {
|
|
3519
3518
|
class: y([w.actions?.length > 0 ? "w-2" : "w-0", "relative"])
|
|
3520
3519
|
}, [
|
|
3521
|
-
c(r).includes(
|
|
3520
|
+
c(r).includes($.id) ? (l(), n("div", Ja)) : b("", !0),
|
|
3522
3521
|
w.actions?.length > 0 ? B((l(), n("input", {
|
|
3523
3522
|
key: 1,
|
|
3524
|
-
"onUpdate:modelValue": T[0] || (T[0] = (
|
|
3525
|
-
value:
|
|
3523
|
+
"onUpdate:modelValue": T[0] || (T[0] = (L) => $e(r) ? r.value = L : r = L),
|
|
3524
|
+
value: $.id,
|
|
3526
3525
|
class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-black focus:ring-lime-400 flex-wrap",
|
|
3527
3526
|
type: "checkbox"
|
|
3528
3527
|
}, null, 8, Wa)), [
|
|
3529
|
-
[
|
|
3528
|
+
[Ue, c(r)]
|
|
3530
3529
|
]) : b("", !0)
|
|
3531
3530
|
], 2),
|
|
3532
|
-
(l(!0), n(
|
|
3531
|
+
(l(!0), n(_, null, S($.row, (L, C) => B((l(), n("td", {
|
|
3533
3532
|
key: C,
|
|
3534
3533
|
class: y([
|
|
3535
3534
|
"whitespace-nowrap py-4 pr-3 text-sm",
|
|
3536
|
-
c(r).includes(
|
|
3535
|
+
c(r).includes($.id) ? "text-black font-bold" : ""
|
|
3537
3536
|
])
|
|
3538
3537
|
}, [
|
|
3539
|
-
typeof
|
|
3538
|
+
typeof L == "object" && L.type === "tag" ? (l(), x(Z, {
|
|
3540
3539
|
key: 0,
|
|
3541
3540
|
loading: w.loading,
|
|
3542
|
-
color:
|
|
3541
|
+
color: L.color
|
|
3543
3542
|
}, {
|
|
3544
3543
|
default: f(() => [
|
|
3545
|
-
z(g(
|
|
3544
|
+
z(g(L.content), 1)
|
|
3546
3545
|
]),
|
|
3547
3546
|
_: 2
|
|
3548
|
-
}, 1032, ["loading", "color"])) : typeof
|
|
3547
|
+
}, 1032, ["loading", "color"])) : typeof L == "object" && L.type === "link" ? (l(), n("span", {
|
|
3549
3548
|
key: 1,
|
|
3550
3549
|
class: "text-black font-bold underline hover:text-lime-400 cursor-pointer",
|
|
3551
|
-
onClick: (
|
|
3552
|
-
}, g(
|
|
3550
|
+
onClick: (R) => v(L)
|
|
3551
|
+
}, g(L.content), 9, Ga)) : typeof L == "object" && L.type === "href" ? (l(), n("a", {
|
|
3553
3552
|
key: 2,
|
|
3554
3553
|
class: "text-black font-bold underline hover:text-lime-400 cursor-pointer",
|
|
3555
|
-
href:
|
|
3556
|
-
}, g(
|
|
3554
|
+
href: L.href
|
|
3555
|
+
}, g(L.content), 9, Qa)) : (l(), n("span", Ka, g(L), 1))
|
|
3557
3556
|
], 2)), [
|
|
3558
3557
|
[D, j(C)]
|
|
3559
3558
|
])), 128))
|
|
@@ -3588,7 +3587,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3588
3587
|
name: "tabs",
|
|
3589
3588
|
class: "block w-full rounded-md border-black py-2 pl-3 pr-10 text-base focus:border-lime-400 focus:outline-none focus:ring-lime-400 sm:text-sm"
|
|
3590
3589
|
}, [
|
|
3591
|
-
(l(!0), n(
|
|
3590
|
+
(l(!0), n(_, null, S(s.tabs, (t) => (l(), n("option", {
|
|
3592
3591
|
value: t.id,
|
|
3593
3592
|
key: t.name
|
|
3594
3593
|
}, g(t.name), 9, tn))), 128))
|
|
@@ -3597,7 +3596,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3597
3596
|
e("div", ln, [
|
|
3598
3597
|
e("div", sn, [
|
|
3599
3598
|
e("nav", on, [
|
|
3600
|
-
(l(!0), n(
|
|
3599
|
+
(l(!0), n(_, null, S(s.tabs, (t) => (l(), n("a", {
|
|
3601
3600
|
key: t.name,
|
|
3602
3601
|
onClick: (a) => r("tabClicked", t.id),
|
|
3603
3602
|
class: y([
|
|
@@ -3633,10 +3632,10 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3633
3632
|
}, kn = { class: "text-sm" }, xn = {
|
|
3634
3633
|
key: 2,
|
|
3635
3634
|
class: "h-full w-full flex items-center justify-center flex-col px-4 py-5 sm:p-6"
|
|
3636
|
-
},
|
|
3635
|
+
}, $n = {
|
|
3637
3636
|
key: 1,
|
|
3638
3637
|
class: "bg-white overflow-hidden shadow rounded-lg"
|
|
3639
|
-
},
|
|
3638
|
+
}, _n = { class: "px-4 py-5 sm:p-6 animate-pulse" }, Cn = { class: "flow-root" }, Sn = {
|
|
3640
3639
|
class: "-mb-8",
|
|
3641
3640
|
role: "list"
|
|
3642
3641
|
}, Bn = { class: "relative pb-8" }, Mn = {
|
|
@@ -3654,20 +3653,20 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3654
3653
|
},
|
|
3655
3654
|
emits: ["timelineEventClicked", "timelineFooterClicked"],
|
|
3656
3655
|
setup(p, { emit: u }) {
|
|
3657
|
-
const i =
|
|
3658
|
-
return (s, o) => s.loading ? (l(), n("div",
|
|
3656
|
+
const i = ne(p.timeline);
|
|
3657
|
+
return (s, o) => s.loading ? (l(), n("div", $n, [
|
|
3659
3658
|
o[3] || (o[3] = e("div", { class: "px-4 py-5 sm:px-6 animate-pulse" }, [
|
|
3660
3659
|
e("h1", { class: "text-xl font-bold" }, [
|
|
3661
3660
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4" })
|
|
3662
3661
|
])
|
|
3663
3662
|
], -1)),
|
|
3664
|
-
e("div",
|
|
3663
|
+
e("div", _n, [
|
|
3665
3664
|
e("div", Cn, [
|
|
3666
3665
|
e("ul", Sn, [
|
|
3667
|
-
(l(), n(
|
|
3666
|
+
(l(), n(_, null, S(10, (t, a) => e("li", { key: a }, [
|
|
3668
3667
|
e("div", Bn, [
|
|
3669
3668
|
t !== 10 ? (l(), n("span", Mn)) : b("", !0),
|
|
3670
|
-
o[2] || (o[2] =
|
|
3669
|
+
o[2] || (o[2] = le('<div class="relative flex space-x-3"><div><span class="h-8 w-8 rounded-full bg-gray-300 flex items-center justify-center ring-4 ring-white"></span></div><div class="min-w-0 flex-1 pt-1.5 flex justify-between space-x-4 items-center"><div><div class="text-sm text-gray-500 flex-1"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full"></div></div></div><div class="text-right text-sm whitespace-nowrap text-gray-500 flex-1"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4"></div></div></div></div>', 1))
|
|
3671
3670
|
])
|
|
3672
3671
|
])), 64))
|
|
3673
3672
|
])
|
|
@@ -3693,7 +3692,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3693
3692
|
class: "-mb-8"
|
|
3694
3693
|
}, {
|
|
3695
3694
|
default: f(() => [
|
|
3696
|
-
(l(!0), n(
|
|
3695
|
+
(l(!0), n(_, null, S(i.items, (t, a) => (l(), n("li", { key: a }, [
|
|
3697
3696
|
e("div", gn, [
|
|
3698
3697
|
a < i.items.length - 1 ? (l(), n("span", mn)) : b("", !0),
|
|
3699
3698
|
e("div", pn, [
|
|
@@ -3705,7 +3704,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3705
3704
|
"bg-yellow-400": t?.iconBackground === "warning"
|
|
3706
3705
|
}, "h-8 w-8 rounded-full flex items-center justify-center ring-4 ring-white"])
|
|
3707
3706
|
}, [
|
|
3708
|
-
m(
|
|
3707
|
+
m(F, {
|
|
3709
3708
|
loading: s.loading,
|
|
3710
3709
|
icon: t?.icon,
|
|
3711
3710
|
"aria-hidden": "true",
|
|
@@ -3746,7 +3745,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3746
3745
|
}, g(s.timeline.footerText), 1)
|
|
3747
3746
|
])
|
|
3748
3747
|
])) : (l(), n("div", xn, [
|
|
3749
|
-
m(
|
|
3748
|
+
m(F, {
|
|
3750
3749
|
icon: c(W),
|
|
3751
3750
|
color: "gray",
|
|
3752
3751
|
loading: !1,
|
|
@@ -3772,7 +3771,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3772
3771
|
emits: ["topBarClick"],
|
|
3773
3772
|
setup(p, { emit: u }) {
|
|
3774
3773
|
const r = p, i = Y(() => r.navigation ? Array.isArray(r.navigation) ? r.navigation : [r.navigation] : []);
|
|
3775
|
-
return (s, o) => (l(),
|
|
3774
|
+
return (s, o) => (l(), x(c(Te), {
|
|
3776
3775
|
as: "nav",
|
|
3777
3776
|
class: "bg-white shadow z-10"
|
|
3778
3777
|
}, {
|
|
@@ -3784,18 +3783,17 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3784
3783
|
m(c(Q), { class: "inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500" }, {
|
|
3785
3784
|
default: f(() => [
|
|
3786
3785
|
o[1] || (o[1] = e("span", { class: "sr-only" }, "Open main menu", -1)),
|
|
3787
|
-
t ? (l(),
|
|
3786
|
+
t ? (l(), x(c(K), {
|
|
3788
3787
|
key: 1,
|
|
3789
3788
|
class: "block h-6 w-6",
|
|
3790
3789
|
"aria-hidden": "true"
|
|
3791
|
-
})) : (l(),
|
|
3790
|
+
})) : (l(), x(c(tt), {
|
|
3792
3791
|
key: 0,
|
|
3793
3792
|
class: "block h-6 w-6",
|
|
3794
3793
|
"aria-hidden": "true"
|
|
3795
3794
|
}))
|
|
3796
3795
|
]),
|
|
3797
|
-
_: 2
|
|
3798
|
-
__: [1]
|
|
3796
|
+
_: 2
|
|
3799
3797
|
}, 1024)
|
|
3800
3798
|
]),
|
|
3801
3799
|
e("div", {
|
|
@@ -3817,11 +3815,11 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3817
3815
|
}, {
|
|
3818
3816
|
default: f(() => [
|
|
3819
3817
|
e("div", null, [
|
|
3820
|
-
B(m(c(
|
|
3818
|
+
B(m(c(Ce), { class: "bg-white rounded-full flex text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 relative" }, {
|
|
3821
3819
|
default: f(() => [
|
|
3822
|
-
B(e("div", In, o[2] || (o[2] = [
|
|
3820
|
+
B(e("div", In, [...o[2] || (o[2] = [
|
|
3823
3821
|
e("span", { class: "animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75" }, null, -1)
|
|
3824
|
-
]), 512), [
|
|
3822
|
+
])], 512), [
|
|
3825
3823
|
[D, s.alerted]
|
|
3826
3824
|
]),
|
|
3827
3825
|
e("img", {
|
|
@@ -3834,7 +3832,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3834
3832
|
[D, s.accountLogo]
|
|
3835
3833
|
])
|
|
3836
3834
|
]),
|
|
3837
|
-
m(
|
|
3835
|
+
m(ae, {
|
|
3838
3836
|
"enter-active-class": "transition ease-out duration-200",
|
|
3839
3837
|
"enter-from-class": "transform opacity-0 scale-95",
|
|
3840
3838
|
"enter-to-class": "transform opacity-100 scale-100",
|
|
@@ -3843,9 +3841,9 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3843
3841
|
"leave-to-class": "transform opacity-0 scale-95"
|
|
3844
3842
|
}, {
|
|
3845
3843
|
default: f(() => [
|
|
3846
|
-
m(c(
|
|
3844
|
+
m(c(Se), { class: "origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg py-1 bg-white ring-1 ring-black ring-opacity-5 focus:outline-none" }, {
|
|
3847
3845
|
default: f(() => [
|
|
3848
|
-
(l(!0), n(
|
|
3846
|
+
(l(!0), n(_, null, S(s.profileMenu, (a) => (l(), x(c(Be), {
|
|
3849
3847
|
key: a.name
|
|
3850
3848
|
}, {
|
|
3851
3849
|
default: f(({ active: d }) => [
|
|
@@ -3872,10 +3870,10 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3872
3870
|
])
|
|
3873
3871
|
])
|
|
3874
3872
|
]),
|
|
3875
|
-
m(c(
|
|
3873
|
+
m(c(ze), { class: "lg:hidden" }, {
|
|
3876
3874
|
default: f(() => [
|
|
3877
3875
|
e("div", Vn, [
|
|
3878
|
-
(l(!0), n(
|
|
3876
|
+
(l(!0), n(_, null, S(i.value, (a) => (l(), x(c(Q), {
|
|
3879
3877
|
as: "template",
|
|
3880
3878
|
key: a.id,
|
|
3881
3879
|
class: y(["block pl-3 pr-4 py-2 border-l-4 text-base font-medium sm:pl-5 sm:pr-6", {
|
|
@@ -3905,7 +3903,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3905
3903
|
])) : b("", !0)
|
|
3906
3904
|
]),
|
|
3907
3905
|
e("div", Wn, [
|
|
3908
|
-
(l(!0), n(
|
|
3906
|
+
(l(!0), n(_, null, S(s.profileMenu, (a) => (l(), x(c(Q), {
|
|
3909
3907
|
as: "template",
|
|
3910
3908
|
key: a.name,
|
|
3911
3909
|
class: "block px-4 py-2 text-base font-medium text-gray-500 hover:text-gray-800 hover:bg-gray-100 sm:px-6"
|
|
@@ -4016,7 +4014,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4016
4014
|
const o = Y(() => ({ ...i.options, ...s })), t = Y(() => i.series), a = () => r("chartUpdated"), d = (h, v, j) => {
|
|
4017
4015
|
r("dataPointSelection", { id: i.id, chartContext: v, config: j, event: h });
|
|
4018
4016
|
};
|
|
4019
|
-
return (h, v) => (l(), n(
|
|
4017
|
+
return (h, v) => (l(), n(_, null, [
|
|
4020
4018
|
B(e("div", {
|
|
4021
4019
|
class: y(["h-[" + h.height + "px]", "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"])
|
|
4022
4020
|
}, [
|
|
@@ -4028,7 +4026,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4028
4026
|
}, null, 8, ["range"])
|
|
4029
4027
|
]),
|
|
4030
4028
|
B(e("div", li, [
|
|
4031
|
-
m(c(
|
|
4029
|
+
m(c(Le), {
|
|
4032
4030
|
type: h.type,
|
|
4033
4031
|
series: t.value,
|
|
4034
4032
|
width: "100%",
|
|
@@ -4042,7 +4040,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4042
4040
|
[D, !h.empty]
|
|
4043
4041
|
]),
|
|
4044
4042
|
B(e("div", si, [
|
|
4045
|
-
m(
|
|
4043
|
+
m(F, {
|
|
4046
4044
|
icon: c(W),
|
|
4047
4045
|
color: "gray",
|
|
4048
4046
|
loading: !1,
|
|
@@ -4055,7 +4053,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4055
4053
|
], 2), [
|
|
4056
4054
|
[D, !h.loading]
|
|
4057
4055
|
]),
|
|
4058
|
-
B(e("div", oi, v[2] || (v[2] = [
|
|
4056
|
+
B(e("div", oi, [...v[2] || (v[2] = [
|
|
4059
4057
|
e("div", {
|
|
4060
4058
|
role: "status",
|
|
4061
4059
|
class: "w-full animate-pulse h-full flex flex-col"
|
|
@@ -4081,7 +4079,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4081
4079
|
e("div", { class: "w-full bg-gray-200 rounded h-1/2" })
|
|
4082
4080
|
])
|
|
4083
4081
|
], -1)
|
|
4084
|
-
]), 512), [
|
|
4082
|
+
])], 512), [
|
|
4085
4083
|
[D, h.loading]
|
|
4086
4084
|
])
|
|
4087
4085
|
], 64));
|
|
@@ -4098,7 +4096,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4098
4096
|
emits: ["action", "noResultsOptionSelected"],
|
|
4099
4097
|
setup(p) {
|
|
4100
4098
|
return (u, r) => (l(), n("div", ai, [
|
|
4101
|
-
m(
|
|
4099
|
+
m(F, {
|
|
4102
4100
|
class: "mx-auto",
|
|
4103
4101
|
loading: !1,
|
|
4104
4102
|
icon: c(W),
|
|
@@ -4109,7 +4107,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4109
4107
|
e("h2", ii, g(u.title), 1),
|
|
4110
4108
|
e("p", di, g(u.message), 1),
|
|
4111
4109
|
e("div", ui, [
|
|
4112
|
-
(l(!0), n(
|
|
4110
|
+
(l(!0), n(_, null, S(u.actions, (i, s) => (l(), x(U, {
|
|
4113
4111
|
key: s,
|
|
4114
4112
|
loading: !1,
|
|
4115
4113
|
onClick: (o) => u.$emit("action", i.action)
|
|
@@ -4119,7 +4117,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4119
4117
|
]),
|
|
4120
4118
|
_: 2
|
|
4121
4119
|
}, 1032, ["onClick"]))), 128)),
|
|
4122
|
-
u.items ? (l(),
|
|
4120
|
+
u.items ? (l(), x(ye, {
|
|
4123
4121
|
key: 0,
|
|
4124
4122
|
items: u.items,
|
|
4125
4123
|
loading: !1,
|
|
@@ -4138,12 +4136,12 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4138
4136
|
},
|
|
4139
4137
|
emits: ["closeRightBar"],
|
|
4140
4138
|
setup(p, { emit: u }) {
|
|
4141
|
-
return (r, i) => (l(),
|
|
4139
|
+
return (r, i) => (l(), x(c(Me), {
|
|
4142
4140
|
as: "template",
|
|
4143
4141
|
show: r.open
|
|
4144
4142
|
}, {
|
|
4145
4143
|
default: f(() => [
|
|
4146
|
-
m(c(
|
|
4144
|
+
m(c(je), {
|
|
4147
4145
|
as: "div",
|
|
4148
4146
|
class: "relative z-10",
|
|
4149
4147
|
onClose: i[1] || (i[1] = (s) => r.$emit("closeRightBar"))
|
|
@@ -4153,7 +4151,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4153
4151
|
e("div", gi, [
|
|
4154
4152
|
e("div", mi, [
|
|
4155
4153
|
e("div", pi, [
|
|
4156
|
-
m(c(
|
|
4154
|
+
m(c(ee), {
|
|
4157
4155
|
as: "template",
|
|
4158
4156
|
enter: "transform transition ease-in-out duration-500 sm:duration-700",
|
|
4159
4157
|
"enter-from": "translate-x-full",
|
|
@@ -4163,12 +4161,12 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4163
4161
|
"leave-to": "translate-x-full"
|
|
4164
4162
|
}, {
|
|
4165
4163
|
default: f(() => [
|
|
4166
|
-
m(c(
|
|
4164
|
+
m(c(De), { class: "pointer-events-auto w-screen max-w-md" }, {
|
|
4167
4165
|
default: f(() => [
|
|
4168
4166
|
e("div", fi, [
|
|
4169
4167
|
e("div", hi, [
|
|
4170
4168
|
e("div", yi, [
|
|
4171
|
-
m(c(
|
|
4169
|
+
m(c(Ke), { class: "text-base font-semibold leading-6" }, {
|
|
4172
4170
|
default: f(() => [
|
|
4173
4171
|
z(g(r.title), 1)
|
|
4174
4172
|
]),
|
|
@@ -4207,14 +4205,13 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4207
4205
|
])
|
|
4208
4206
|
])
|
|
4209
4207
|
]),
|
|
4210
|
-
_: 3
|
|
4211
|
-
__: [4]
|
|
4208
|
+
_: 3
|
|
4212
4209
|
})
|
|
4213
4210
|
]),
|
|
4214
4211
|
_: 3
|
|
4215
4212
|
}, 8, ["show"]));
|
|
4216
4213
|
}
|
|
4217
|
-
}),
|
|
4214
|
+
}), $i = { class: "uiGallery" }, _i = {
|
|
4218
4215
|
key: 1,
|
|
4219
4216
|
role: "list",
|
|
4220
4217
|
class: "grid grid-cols-2 gap-x-4 gap-y-8 sm:grid-cols-3 sm:gap-x-4 lg:grid-cols-6"
|
|
@@ -4232,11 +4229,11 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4232
4229
|
},
|
|
4233
4230
|
emits: ["modalAction", "deleteImage", "imgClicked"],
|
|
4234
4231
|
setup(p, { emit: u }) {
|
|
4235
|
-
const r = u, i =
|
|
4232
|
+
const r = u, i = A(!1), s = (o) => {
|
|
4236
4233
|
i.value = !1, r("modalAction", o);
|
|
4237
4234
|
};
|
|
4238
|
-
return (o, t) => (l(), n("div",
|
|
4239
|
-
o.loading ? b("", !0) : (l(),
|
|
4235
|
+
return (o, t) => (l(), n("div", $i, [
|
|
4236
|
+
o.loading ? b("", !0) : (l(), x(nt, {
|
|
4240
4237
|
key: 0,
|
|
4241
4238
|
open: i.value,
|
|
4242
4239
|
modalName: "deleteAllImagesModal",
|
|
@@ -4251,13 +4248,13 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4251
4248
|
_: 1
|
|
4252
4249
|
}, 8, ["open", "title", "actions"])),
|
|
4253
4250
|
o.loading ? (l(), n("ul", Ti, [
|
|
4254
|
-
(l(), n(
|
|
4251
|
+
(l(), n(_, null, S(4, (a) => e("li", null, [...t[2] || (t[2] = [
|
|
4255
4252
|
e("div", { class: "group aspect-h-7 aspect-w-10 block w-full overflow-hidden rounded-lg bg-gray-200 animate-pulse dark:bg-gray-200 focus-within:ring-2 focus-within:ring-lime-400 focus-within:ring-offset-2 focus-within:ring-offset-gray-100" }, null, -1),
|
|
4256
4253
|
e("p", { class: "animate-pulse h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28 mt-4" }, null, -1),
|
|
4257
4254
|
e("p", { class: "animate-pulse h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-14 mt-2" }, null, -1)
|
|
4258
|
-
]))), 64))
|
|
4259
|
-
])) : (l(), n("ul",
|
|
4260
|
-
(l(!0), n(
|
|
4255
|
+
])])), 64))
|
|
4256
|
+
])) : (l(), n("ul", _i, [
|
|
4257
|
+
(l(!0), n(_, null, S(o.gallery, (a) => (l(), n("li", {
|
|
4261
4258
|
key: a.source,
|
|
4262
4259
|
class: "relative"
|
|
4263
4260
|
}, [
|
|
@@ -4276,9 +4273,9 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4276
4273
|
e("p", Mi, g(a.title), 1),
|
|
4277
4274
|
e("div", ji, [
|
|
4278
4275
|
e("p", Di, g(a.size), 1),
|
|
4279
|
-
m(
|
|
4276
|
+
m(F, {
|
|
4280
4277
|
class: "cursor-pointer",
|
|
4281
|
-
icon: c(
|
|
4278
|
+
icon: c(fe),
|
|
4282
4279
|
color: "red",
|
|
4283
4280
|
loading: !1,
|
|
4284
4281
|
onClick: (d) => o.$emit("deleteImage", a)
|
|
@@ -4286,7 +4283,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4286
4283
|
])
|
|
4287
4284
|
]))), 128))
|
|
4288
4285
|
])),
|
|
4289
|
-
o.gallery.length > 0 && !o.loading ? (l(),
|
|
4286
|
+
o.gallery.length > 0 && !o.loading ? (l(), x(U, {
|
|
4290
4287
|
key: 3,
|
|
4291
4288
|
onClick: t[1] || (t[1] = (a) => i.value = !0),
|
|
4292
4289
|
class: "mt-8",
|
|
@@ -4313,27 +4310,27 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4313
4310
|
emits: ["dragAndDropUpdated"],
|
|
4314
4311
|
setup(p, { emit: u }) {
|
|
4315
4312
|
const r = u, i = p;
|
|
4316
|
-
let s =
|
|
4313
|
+
let s = A(i.elements);
|
|
4317
4314
|
H(() => i.elements, (t) => {
|
|
4318
4315
|
s.value = t;
|
|
4319
4316
|
});
|
|
4320
4317
|
const o = (t) => {
|
|
4321
4318
|
r("dragAndDropUpdated", t);
|
|
4322
4319
|
};
|
|
4323
|
-
return (t, a) => t.loading ? (l(), n("div", Pi, a[2] || (a[2] = [
|
|
4324
|
-
|
|
4325
|
-
]))) : (l(),
|
|
4320
|
+
return (t, a) => t.loading ? (l(), n("div", Pi, [...a[2] || (a[2] = [
|
|
4321
|
+
le('<div class="h-16 mb-1 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div><div class="h-16 mb-1 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div><div class="h-16 mb-1 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div><div class="h-16 mb-1 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div><div class="h-16 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div>', 5)
|
|
4322
|
+
])])) : (l(), x(c(St), {
|
|
4326
4323
|
key: 0,
|
|
4327
4324
|
modelValue: c(s),
|
|
4328
4325
|
"onUpdate:modelValue": [
|
|
4329
|
-
a[0] || (a[0] = (d) =>
|
|
4326
|
+
a[0] || (a[0] = (d) => $e(s) ? s.value = d : s = d),
|
|
4330
4327
|
a[1] || (a[1] = (d) => o(d))
|
|
4331
4328
|
]
|
|
4332
4329
|
}, {
|
|
4333
4330
|
item: f(({ item: d }) => [
|
|
4334
4331
|
e("div", Li, [
|
|
4335
4332
|
e("div", Fi, [
|
|
4336
|
-
m(
|
|
4333
|
+
m(F, {
|
|
4337
4334
|
icon: c(Vt),
|
|
4338
4335
|
loading: !1,
|
|
4339
4336
|
color: "gray",
|
|
@@ -4373,8 +4370,8 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4373
4370
|
},
|
|
4374
4371
|
emits: ["selectedRange", "chartUpdated", "dataPointSelection", "maximizeChart"],
|
|
4375
4372
|
setup(p, { emit: u }) {
|
|
4376
|
-
const r = u, i = p, s =
|
|
4377
|
-
let o =
|
|
4373
|
+
const r = u, i = p, s = A((/* @__PURE__ */ new Date()).toISOString().slice(0, (/* @__PURE__ */ new Date()).toISOString().lastIndexOf(":")));
|
|
4374
|
+
let o = ne(i.dates || { from: "", to: s });
|
|
4378
4375
|
H(() => i.dates, (T) => {
|
|
4379
4376
|
T && (o = T);
|
|
4380
4377
|
});
|
|
@@ -4410,12 +4407,12 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4410
4407
|
}
|
|
4411
4408
|
}
|
|
4412
4409
|
};
|
|
4413
|
-
const a = () => ({ ...t, ...i.options }), d = Y(() => i.series), h = Y(() => a()), v = () => r("chartUpdated"), j = (T,
|
|
4414
|
-
r("dataPointSelection", { id: i.id, chartContext:
|
|
4410
|
+
const a = () => ({ ...t, ...i.options }), d = Y(() => i.series), h = Y(() => a()), v = () => r("chartUpdated"), j = (T, $, O) => {
|
|
4411
|
+
r("dataPointSelection", { id: i.id, chartContext: $, config: O, event: T });
|
|
4415
4412
|
}, w = () => {
|
|
4416
4413
|
o.from !== "" && o.to !== "" && V(o.from).isBefore(V(o.to)) && r("selectedRange", { range: o, chartId: i.id });
|
|
4417
4414
|
};
|
|
4418
|
-
return (T,
|
|
4415
|
+
return (T, $) => (l(), n(_, null, [
|
|
4419
4416
|
B(e("div", {
|
|
4420
4417
|
class: y(["h-[" + T.height + "px]", "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"])
|
|
4421
4418
|
}, [
|
|
@@ -4425,40 +4422,40 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4425
4422
|
e("div", Ei, [
|
|
4426
4423
|
B(e("input", {
|
|
4427
4424
|
type: "datetime-local",
|
|
4428
|
-
"onUpdate:modelValue":
|
|
4425
|
+
"onUpdate:modelValue": $[0] || ($[0] = (O) => c(o).from = O),
|
|
4429
4426
|
max: s.value.toString(),
|
|
4430
4427
|
onChange: w,
|
|
4431
4428
|
name: "from",
|
|
4432
4429
|
id: "from",
|
|
4433
4430
|
class: "text-xs relative block w-full rounded rounded-r-none border-0 bg-transparent py-1.5 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:z-10 focus:ring-2 focus:ring-inset focus:ring-indigo-600"
|
|
4434
4431
|
}, null, 40, Ui), [
|
|
4435
|
-
[
|
|
4432
|
+
[oe, c(o).from]
|
|
4436
4433
|
])
|
|
4437
4434
|
]),
|
|
4438
4435
|
e("div", Hi, [
|
|
4439
4436
|
B(e("input", {
|
|
4440
4437
|
type: "datetime-local",
|
|
4441
|
-
"onUpdate:modelValue":
|
|
4438
|
+
"onUpdate:modelValue": $[1] || ($[1] = (O) => c(o).to = O),
|
|
4442
4439
|
max: s.value.toString(),
|
|
4443
4440
|
onChange: w,
|
|
4444
4441
|
name: "to",
|
|
4445
4442
|
id: "to",
|
|
4446
4443
|
class: "text-xs relative block w-full -mr-2 rounded rounded-l-none border-0 bg-transparent py-1.5 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:z-10 focus:ring-2 focus:ring-inset focus:ring-indigo-600"
|
|
4447
4444
|
}, null, 40, Zi), [
|
|
4448
|
-
[
|
|
4445
|
+
[oe, c(o).to]
|
|
4449
4446
|
])
|
|
4450
4447
|
]),
|
|
4451
|
-
m(
|
|
4448
|
+
m(F, {
|
|
4452
4449
|
class: "ml-4 cursor-pointer",
|
|
4453
4450
|
size: "big",
|
|
4454
4451
|
loading: T.loading,
|
|
4455
|
-
icon: c(
|
|
4456
|
-
onClick:
|
|
4452
|
+
icon: c(et),
|
|
4453
|
+
onClick: $[2] || ($[2] = (O) => T.$emit("maximizeChart", T.id))
|
|
4457
4454
|
}, null, 8, ["loading", "icon"])
|
|
4458
4455
|
])
|
|
4459
4456
|
]),
|
|
4460
4457
|
B(e("div", Ji, [
|
|
4461
|
-
m(c(
|
|
4458
|
+
m(c(Le), {
|
|
4462
4459
|
class: "flex items-center justify-center mt-4",
|
|
4463
4460
|
type: "donut",
|
|
4464
4461
|
series: d.value,
|
|
@@ -4472,20 +4469,20 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4472
4469
|
[D, !T.empty]
|
|
4473
4470
|
]),
|
|
4474
4471
|
B(e("div", Wi, [
|
|
4475
|
-
m(
|
|
4472
|
+
m(F, {
|
|
4476
4473
|
icon: c(W),
|
|
4477
4474
|
color: "gray",
|
|
4478
4475
|
loading: !1,
|
|
4479
4476
|
size: "huge"
|
|
4480
4477
|
}, null, 8, ["icon"]),
|
|
4481
|
-
|
|
4478
|
+
$[3] || ($[3] = e("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1))
|
|
4482
4479
|
], 512), [
|
|
4483
4480
|
[D, T.empty]
|
|
4484
4481
|
])
|
|
4485
4482
|
], 2), [
|
|
4486
4483
|
[D, !T.loading]
|
|
4487
4484
|
]),
|
|
4488
|
-
B(e("div", Gi,
|
|
4485
|
+
B(e("div", Gi, [...$[4] || ($[4] = [
|
|
4489
4486
|
e("div", {
|
|
4490
4487
|
role: "status",
|
|
4491
4488
|
class: "w-full animate-pulse h-full flex flex-col"
|
|
@@ -4511,7 +4508,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4511
4508
|
e("div", { class: "w-full bg-gray-200 rounded h-1/2" })
|
|
4512
4509
|
])
|
|
4513
4510
|
], -1)
|
|
4514
|
-
]), 512), [
|
|
4511
|
+
])], 512), [
|
|
4515
4512
|
[D, T.loading]
|
|
4516
4513
|
])
|
|
4517
4514
|
], 64));
|
|
@@ -4537,8 +4534,8 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4537
4534
|
},
|
|
4538
4535
|
emits: ["uiDateRangeButtonClicked"],
|
|
4539
4536
|
setup(p, { emit: u }) {
|
|
4540
|
-
const r = p, i =
|
|
4541
|
-
let s =
|
|
4537
|
+
const r = p, i = A((/* @__PURE__ */ new Date()).toISOString().slice(0, (/* @__PURE__ */ new Date()).toISOString().lastIndexOf(":")));
|
|
4538
|
+
let s = ne(r.values || { from: "", to: i });
|
|
4542
4539
|
const o = u;
|
|
4543
4540
|
H(() => r.values, (a) => {
|
|
4544
4541
|
a && (s = a);
|
|
@@ -4556,11 +4553,10 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4556
4553
|
loading: !0
|
|
4557
4554
|
}),
|
|
4558
4555
|
m(U, { loading: !0 }, {
|
|
4559
|
-
default: f(() => d[2] || (d[2] = [
|
|
4556
|
+
default: f(() => [...d[2] || (d[2] = [
|
|
4560
4557
|
z("Search", -1)
|
|
4561
|
-
])),
|
|
4562
|
-
_: 1
|
|
4563
|
-
__: [2]
|
|
4558
|
+
])]),
|
|
4559
|
+
_: 1
|
|
4564
4560
|
})
|
|
4565
4561
|
])) : (l(), n("div", Ki, [
|
|
4566
4562
|
m(J, {
|
|
@@ -4627,7 +4623,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4627
4623
|
},
|
|
4628
4624
|
emits: ["sliderUpdated"],
|
|
4629
4625
|
setup(p, { emit: u }) {
|
|
4630
|
-
const r = u, s =
|
|
4626
|
+
const r = u, s = A(p.sliderValue);
|
|
4631
4627
|
return (o, t) => (l(), n("div", null, [
|
|
4632
4628
|
e("div", td, [
|
|
4633
4629
|
o.label ? (l(), n("label", ld, g(o.label), 1)) : b("", !0),
|
|
@@ -4636,7 +4632,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4636
4632
|
e("div", {
|
|
4637
4633
|
class: y([{ "mt-1": o.label }, "pt-16 px-6 pb-6 bg-gray-50 border border-black rounded-lg shadow-sm"])
|
|
4638
4634
|
}, [
|
|
4639
|
-
o.loading ? (l(), n("p", od)) : (l(),
|
|
4635
|
+
o.loading ? (l(), n("p", od)) : (l(), x(c(Bt), {
|
|
4640
4636
|
key: 0,
|
|
4641
4637
|
modelValue: s.value,
|
|
4642
4638
|
"onUpdate:modelValue": t[0] || (t[0] = (a) => s.value = a),
|
|
@@ -4659,7 +4655,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4659
4655
|
description: {}
|
|
4660
4656
|
},
|
|
4661
4657
|
setup(p) {
|
|
4662
|
-
return (u, r) => (l(), n(
|
|
4658
|
+
return (u, r) => (l(), n(_, null, [
|
|
4663
4659
|
e("h3", {
|
|
4664
4660
|
class: y(["text-lg font-medium leading-6", { "mb-8": u.description === void 0 }])
|
|
4665
4661
|
}, g(u.title), 3),
|
|
@@ -4688,7 +4684,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4688
4684
|
return (r, i) => r.loading ? (l(), n("div", md, [
|
|
4689
4685
|
e("div", pd, [
|
|
4690
4686
|
e("div", fd, [
|
|
4691
|
-
m(
|
|
4687
|
+
m(F, {
|
|
4692
4688
|
icon: r.icon,
|
|
4693
4689
|
size: "huge",
|
|
4694
4690
|
class: "text-white",
|
|
@@ -4699,7 +4695,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4699
4695
|
i[3] || (i[3] = e("div", { class: "h-4 bg-gray-200 rounded-full dark:bg-gray-300 w-1/3 mx-auto" }, null, -1)),
|
|
4700
4696
|
e("dl", hd, [
|
|
4701
4697
|
e("dd", yd, [
|
|
4702
|
-
(l(!0), n(
|
|
4698
|
+
(l(!0), n(_, null, S(r.tags, (s, o) => (l(), x(Z, {
|
|
4703
4699
|
key: o,
|
|
4704
4700
|
loading: r.loading,
|
|
4705
4701
|
event: s.event,
|
|
@@ -4725,7 +4721,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4725
4721
|
"bg-gray-100": r.color === "light"
|
|
4726
4722
|
}])
|
|
4727
4723
|
}, [
|
|
4728
|
-
m(
|
|
4724
|
+
m(F, {
|
|
4729
4725
|
icon: r.icon,
|
|
4730
4726
|
size: "huge",
|
|
4731
4727
|
color: "black",
|
|
@@ -4744,7 +4740,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4744
4740
|
]),
|
|
4745
4741
|
e("dl", cd, [
|
|
4746
4742
|
e("dd", gd, [
|
|
4747
|
-
(l(!0), n(
|
|
4743
|
+
(l(!0), n(_, null, S(r.tags, (s, o) => (l(), x(Z, {
|
|
4748
4744
|
key: o,
|
|
4749
4745
|
loading: !1,
|
|
4750
4746
|
event: s.event,
|
|
@@ -4761,7 +4757,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4761
4757
|
])
|
|
4762
4758
|
]));
|
|
4763
4759
|
}
|
|
4764
|
-
}), bd = { class: "fixed inset-0 flex" }, wd = { class: "absolute left-full top-0 flex w-16 justify-center pt-5" }, kd = { class: "hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-[25rem] lg:flex-col" }, xd = { class: "lg:pl-[25rem]" },
|
|
4760
|
+
}), bd = { class: "fixed inset-0 flex" }, wd = { class: "absolute left-full top-0 flex w-16 justify-center pt-5" }, kd = { class: "hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-[25rem] lg:flex-col" }, xd = { class: "lg:pl-[25rem]" }, $d = { class: "sticky top-0 z-10 flex h-16 shrink-0 items-center gap-x-4 border-b border-gray-200 bg-white px-4 shadow-sm sm:gap-x-6 sm:px-6 lg:px-8" }, _d = { class: "flex flex-1 gap-x-4 self-stretch lg:gap-x-6" }, Cd = { class: "flex items-center gap-x-4 lg:gap-x-6" }, Sd = { class: "redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute top-1 left-2" }, Bd = ["src"], Md = { class: "hidden lg:flex lg:items-center" }, jd = ["onClick"], Dd = { class: "py-7" }, Td = { class: "px-7 lg:px-10" }, zd = /* @__PURE__ */ M({
|
|
4765
4761
|
__name: "uiWrapper",
|
|
4766
4762
|
props: {
|
|
4767
4763
|
topbar: {},
|
|
@@ -4770,21 +4766,21 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4770
4766
|
},
|
|
4771
4767
|
emits: ["productBarClick", "sideBarClick", "selectChanged", "topBarClick", "checkboxChanged", "inputChanged", "sidebarToggle", "bellClick"],
|
|
4772
4768
|
setup(p, { emit: u }) {
|
|
4773
|
-
const r = p, i = u, s =
|
|
4769
|
+
const r = p, i = u, s = A(r.sidebarOpen), o = () => {
|
|
4774
4770
|
s.value = !s.value, i("sidebarToggle", s.value);
|
|
4775
4771
|
};
|
|
4776
4772
|
return (t, a) => (l(), n("div", null, [
|
|
4777
|
-
m(c(
|
|
4773
|
+
m(c(Me), {
|
|
4778
4774
|
as: "template",
|
|
4779
4775
|
show: s.value
|
|
4780
4776
|
}, {
|
|
4781
4777
|
default: f(() => [
|
|
4782
|
-
m(c(
|
|
4778
|
+
m(c(je), {
|
|
4783
4779
|
class: "relative z-50 lg:hidden",
|
|
4784
4780
|
onClose: o
|
|
4785
4781
|
}, {
|
|
4786
4782
|
default: f(() => [
|
|
4787
|
-
m(c(
|
|
4783
|
+
m(c(ee), {
|
|
4788
4784
|
as: "template",
|
|
4789
4785
|
enter: "transition-opacity ease-linear duration-300",
|
|
4790
4786
|
"enter-from": "opacity-0",
|
|
@@ -4793,14 +4789,13 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4793
4789
|
"leave-from": "opacity-100",
|
|
4794
4790
|
"leave-to": "opacity-0"
|
|
4795
4791
|
}, {
|
|
4796
|
-
default: f(() => a[10] || (a[10] = [
|
|
4792
|
+
default: f(() => [...a[10] || (a[10] = [
|
|
4797
4793
|
e("div", { class: "fixed inset-0 bg-gray-900/80" }, null, -1)
|
|
4798
|
-
])),
|
|
4799
|
-
_: 1
|
|
4800
|
-
__: [10]
|
|
4794
|
+
])]),
|
|
4795
|
+
_: 1
|
|
4801
4796
|
}),
|
|
4802
4797
|
e("div", bd, [
|
|
4803
|
-
m(c(
|
|
4798
|
+
m(c(ee), {
|
|
4804
4799
|
as: "template",
|
|
4805
4800
|
enter: "transition ease-in-out duration-300 transform",
|
|
4806
4801
|
"enter-from": "-translate-x-full",
|
|
@@ -4810,9 +4805,9 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4810
4805
|
"leave-to": "-translate-x-full"
|
|
4811
4806
|
}, {
|
|
4812
4807
|
default: f(() => [
|
|
4813
|
-
m(c(
|
|
4808
|
+
m(c(De), { class: "relative mr-16 flex w-full max-w-xs flex-1" }, {
|
|
4814
4809
|
default: f(() => [
|
|
4815
|
-
m(c(
|
|
4810
|
+
m(c(ee), {
|
|
4816
4811
|
as: "template",
|
|
4817
4812
|
enter: "ease-in-out duration-300",
|
|
4818
4813
|
"enter-from": "opacity-0",
|
|
@@ -4838,7 +4833,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4838
4833
|
]),
|
|
4839
4834
|
_: 1
|
|
4840
4835
|
}),
|
|
4841
|
-
m(
|
|
4836
|
+
m(ke, {
|
|
4842
4837
|
productsSidebar: t.sidebar.productsSidebar,
|
|
4843
4838
|
isFilterNavigation: t.sidebar.isFilterNavigation,
|
|
4844
4839
|
navigation: t.sidebar.navigation,
|
|
@@ -4864,7 +4859,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4864
4859
|
_: 1
|
|
4865
4860
|
}, 8, ["show"]),
|
|
4866
4861
|
e("div", kd, [
|
|
4867
|
-
m(
|
|
4862
|
+
m(ke, {
|
|
4868
4863
|
productsSidebar: t.sidebar.productsSidebar,
|
|
4869
4864
|
isFilterNavigation: t.sidebar.isFilterNavigation,
|
|
4870
4865
|
navigation: t.sidebar.navigation,
|
|
@@ -4878,14 +4873,14 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4878
4873
|
}, null, 8, ["productsSidebar", "isFilterNavigation", "navigation", "filterNavigation", "logo"])
|
|
4879
4874
|
]),
|
|
4880
4875
|
e("div", xd, [
|
|
4881
|
-
e("div",
|
|
4876
|
+
e("div", $d, [
|
|
4882
4877
|
e("button", {
|
|
4883
4878
|
type: "button",
|
|
4884
4879
|
class: "-m-2.5 p-2.5 text-gray-700 lg:hidden",
|
|
4885
4880
|
onClick: o
|
|
4886
4881
|
}, [
|
|
4887
4882
|
a[12] || (a[12] = e("span", { class: "sr-only" }, "Open sidebar", -1)),
|
|
4888
|
-
m(c(
|
|
4883
|
+
m(c(tt), {
|
|
4889
4884
|
class: "h-6 w-6",
|
|
4890
4885
|
"aria-hidden": "true"
|
|
4891
4886
|
})
|
|
@@ -4894,8 +4889,8 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4894
4889
|
class: "h-6 w-px bg-gray-200 lg:hidden",
|
|
4895
4890
|
"aria-hidden": "true"
|
|
4896
4891
|
}, null, -1)),
|
|
4897
|
-
e("div",
|
|
4898
|
-
m(
|
|
4892
|
+
e("div", _d, [
|
|
4893
|
+
m(te, {
|
|
4899
4894
|
isWrapped: !0,
|
|
4900
4895
|
class: "w-full self-center relative",
|
|
4901
4896
|
items: t.topbar.selectItems,
|
|
@@ -4909,9 +4904,9 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4909
4904
|
onClick: a[9] || (a[9] = (d) => i("bellClick"))
|
|
4910
4905
|
}, [
|
|
4911
4906
|
a[14] || (a[14] = e("span", { class: "sr-only" }, "View notifications", -1)),
|
|
4912
|
-
B(e("div", Sd, a[13] || (a[13] = [
|
|
4907
|
+
B(e("div", Sd, [...a[13] || (a[13] = [
|
|
4913
4908
|
e("span", { class: "animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75" }, null, -1)
|
|
4914
|
-
]), 512), [
|
|
4909
|
+
])], 512), [
|
|
4915
4910
|
[D, t.topbar.alerted]
|
|
4916
4911
|
]),
|
|
4917
4912
|
m(c(Yt), {
|
|
@@ -4928,7 +4923,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4928
4923
|
class: "relative"
|
|
4929
4924
|
}, {
|
|
4930
4925
|
default: f(() => [
|
|
4931
|
-
m(c(
|
|
4926
|
+
m(c(Ce), { class: "-m-1.5 flex items-center p-1.5" }, {
|
|
4932
4927
|
default: f(() => [
|
|
4933
4928
|
a[15] || (a[15] = e("span", { class: "sr-only" }, "Open user menu", -1)),
|
|
4934
4929
|
e("img", {
|
|
@@ -4937,16 +4932,15 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4937
4932
|
alt: ""
|
|
4938
4933
|
}, null, 8, Bd),
|
|
4939
4934
|
e("span", Md, [
|
|
4940
|
-
m(c(
|
|
4935
|
+
m(c(re), {
|
|
4941
4936
|
class: "ml-2 h-5 w-5 text-gray-400",
|
|
4942
4937
|
"aria-hidden": "true"
|
|
4943
4938
|
})
|
|
4944
4939
|
])
|
|
4945
4940
|
]),
|
|
4946
|
-
_: 1
|
|
4947
|
-
__: [15]
|
|
4941
|
+
_: 1
|
|
4948
4942
|
}),
|
|
4949
|
-
m(
|
|
4943
|
+
m(ae, {
|
|
4950
4944
|
"enter-active-class": "transition ease-out duration-100",
|
|
4951
4945
|
"enter-from-class": "transform opacity-0 scale-95",
|
|
4952
4946
|
"enter-to-class": "transform opacity-100 scale-100",
|
|
@@ -4955,9 +4949,9 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4955
4949
|
"leave-to-class": "transform opacity-0 scale-95"
|
|
4956
4950
|
}, {
|
|
4957
4951
|
default: f(() => [
|
|
4958
|
-
m(c(
|
|
4952
|
+
m(c(Se), { class: "absolute right-0 z-10 mt-2.5 w-52 origin-top-right rounded-md bg-white py-2 shadow-lg ring-1 ring-gray-900/5 focus:outline-none" }, {
|
|
4959
4953
|
default: f(() => [
|
|
4960
|
-
(l(!0), n(
|
|
4954
|
+
(l(!0), n(_, null, S(t.topbar.profileMenu, (d) => (l(), x(c(Be), {
|
|
4961
4955
|
key: d.name
|
|
4962
4956
|
}, {
|
|
4963
4957
|
default: f(({ active: h }) => [
|
|
@@ -4995,12 +4989,12 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4995
4989
|
loading: { type: Boolean, default: !0 }
|
|
4996
4990
|
},
|
|
4997
4991
|
setup(p) {
|
|
4998
|
-
const u = p, r = () => u.dynamicStats.length <= 5 ? `lg:grid-cols-${u.dynamicStats.length}` : `lg:grid-cols-${Math.floor(u.dynamicStats.length / 2)} xl:grid-cols-${u.dynamicStats.length}`, i =
|
|
4992
|
+
const u = p, r = () => u.dynamicStats.length <= 5 ? `lg:grid-cols-${u.dynamicStats.length}` : `lg:grid-cols-${Math.floor(u.dynamicStats.length / 2)} xl:grid-cols-${u.dynamicStats.length}`, i = A(0), s = A(r());
|
|
4999
4993
|
return mt(() => i.value += 1), (o, t) => (l(), n("div", {
|
|
5000
4994
|
class: y([s.value, "grid grid-cols-1 md:grid-cols-2 gap-4"]),
|
|
5001
4995
|
key: i.value
|
|
5002
4996
|
}, [
|
|
5003
|
-
(l(!0), n(
|
|
4997
|
+
(l(!0), n(_, null, S(o.dynamicStats, (a, d) => (l(), x(dt, {
|
|
5004
4998
|
key: d,
|
|
5005
4999
|
item: a,
|
|
5006
5000
|
loading: o.loading
|
|
@@ -5016,7 +5010,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
5016
5010
|
}, Pd = ["onClick"], Vd = { class: "absolute mt-1 w-full rounded-md bg-white shadow-lg z-50" }, Yd = {
|
|
5017
5011
|
key: 1,
|
|
5018
5012
|
class: "animate-pulse px-4 py-2.5 bg-gray-200 rounded-md flex justify-between items-center w-full"
|
|
5019
|
-
},
|
|
5013
|
+
}, ut = /* @__PURE__ */ M({
|
|
5020
5014
|
__name: "uiSelectMultiple",
|
|
5021
5015
|
props: {
|
|
5022
5016
|
items: {},
|
|
@@ -5033,7 +5027,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
5033
5027
|
emits: ["selectChanged"],
|
|
5034
5028
|
setup(p, { emit: u }) {
|
|
5035
5029
|
const r = u, i = p;
|
|
5036
|
-
let s =
|
|
5030
|
+
let s = A(Array.isArray(i.select) ? i.select : i.select ? [i.select] : []);
|
|
5037
5031
|
const o = (a) => {
|
|
5038
5032
|
r("selectChanged", a);
|
|
5039
5033
|
};
|
|
@@ -5042,15 +5036,15 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
5042
5036
|
}
|
|
5043
5037
|
return (a, d) => a.loading ? (l(), n("div", Yd, [
|
|
5044
5038
|
d[4] || (d[4] = e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1)),
|
|
5045
|
-
m(c(
|
|
5039
|
+
m(c(we), {
|
|
5046
5040
|
"aria-hidden": "true",
|
|
5047
5041
|
class: "-mr-1 ml-2 h-5 w-5"
|
|
5048
5042
|
})
|
|
5049
|
-
])) : (l(),
|
|
5043
|
+
])) : (l(), x(c(vt), {
|
|
5050
5044
|
key: 0,
|
|
5051
5045
|
modelValue: c(s),
|
|
5052
5046
|
"onUpdate:modelValue": [
|
|
5053
|
-
d[0] || (d[0] = (h) =>
|
|
5047
|
+
d[0] || (d[0] = (h) => $e(s) ? s.value = h : s = h),
|
|
5054
5048
|
o
|
|
5055
5049
|
],
|
|
5056
5050
|
name: "selectorMultiple",
|
|
@@ -5089,7 +5083,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
5089
5083
|
default: f(() => [
|
|
5090
5084
|
e("span", Id, [
|
|
5091
5085
|
c(s).length === 0 ? (l(), n("span", Nd, "...")) : b("", !0),
|
|
5092
|
-
(l(!0), n(
|
|
5086
|
+
(l(!0), n(_, null, S(c(s), (h) => (l(), n("span", {
|
|
5093
5087
|
key: h.id,
|
|
5094
5088
|
class: "flex items-center gap-1 rounded text-xs font-medium bg-lime-400 text-black border border-lime-200 px-2 py-0.5"
|
|
5095
5089
|
}, [
|
|
@@ -5100,15 +5094,15 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
5100
5094
|
stroke: "currentColor",
|
|
5101
5095
|
viewBox: "0 0 24 24",
|
|
5102
5096
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5103
|
-
onClick:
|
|
5104
|
-
}, d[1] || (d[1] = [
|
|
5097
|
+
onClick: ve((v) => t(h), ["stop", "prevent"])
|
|
5098
|
+
}, [...d[1] || (d[1] = [
|
|
5105
5099
|
e("path", {
|
|
5106
5100
|
"stroke-linecap": "round",
|
|
5107
5101
|
"stroke-linejoin": "round",
|
|
5108
5102
|
"stroke-width": "2",
|
|
5109
5103
|
d: "M6 18L18 6M6 6l12 12"
|
|
5110
5104
|
}, null, -1)
|
|
5111
|
-
]), 8, Pd))
|
|
5105
|
+
])], 8, Pd))
|
|
5112
5106
|
]))), 128))
|
|
5113
5107
|
]),
|
|
5114
5108
|
d[2] || (d[2] = e("span", { class: "absolute h-full right-0 mr-2 self-center top-0 flex items-center" }, [
|
|
@@ -5127,13 +5121,12 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
5127
5121
|
])
|
|
5128
5122
|
], -1))
|
|
5129
5123
|
]),
|
|
5130
|
-
_: 1
|
|
5131
|
-
__: [2]
|
|
5124
|
+
_: 1
|
|
5132
5125
|
}, 8, ["class"]),
|
|
5133
5126
|
e("div", Vd, [
|
|
5134
5127
|
m(c(kt), { class: "shadow-2xs focus:outline-hidden max-h-60 overflow-auto rounded-md py-1 text-base leading-6 sm:text-sm sm:leading-5" }, {
|
|
5135
5128
|
default: f(() => [
|
|
5136
|
-
(l(!0), n(
|
|
5129
|
+
(l(!0), n(_, null, S(a.items, (h) => (l(), x(c(xt), {
|
|
5137
5130
|
key: h.id,
|
|
5138
5131
|
value: h,
|
|
5139
5132
|
as: "template"
|
|
@@ -5148,7 +5141,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
5148
5141
|
j ? (l(), n("span", {
|
|
5149
5142
|
key: 0,
|
|
5150
5143
|
class: y(["absolute inset-y-0 right-0 flex items-center pr-4", { "text-black": v, "text-lime-400": !v }])
|
|
5151
|
-
}, d[3] || (d[3] = [
|
|
5144
|
+
}, [...d[3] || (d[3] = [
|
|
5152
5145
|
e("svg", {
|
|
5153
5146
|
class: "h-5 w-5",
|
|
5154
5147
|
viewBox: "0 0 20 20",
|
|
@@ -5160,7 +5153,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
5160
5153
|
clipRule: "evenodd"
|
|
5161
5154
|
})
|
|
5162
5155
|
], -1)
|
|
5163
|
-
]), 2)) : b("", !0)
|
|
5156
|
+
])], 2)) : b("", !0)
|
|
5164
5157
|
], 2)
|
|
5165
5158
|
]),
|
|
5166
5159
|
_: 2
|
|
@@ -5184,7 +5177,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
5184
5177
|
_: 1
|
|
5185
5178
|
}, 8, ["modelValue", "disabled"]));
|
|
5186
5179
|
}
|
|
5187
|
-
}), qd = { class: "flex flex-col lg:flex-row items-center" },
|
|
5180
|
+
}), qd = { class: "flex flex-col lg:flex-row items-center" }, xe = /* @__PURE__ */ M({
|
|
5188
5181
|
__name: "uiSmartFilter",
|
|
5189
5182
|
props: {
|
|
5190
5183
|
items: {},
|
|
@@ -5196,38 +5189,38 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
5196
5189
|
},
|
|
5197
5190
|
emits: ["smartFilterSelected", "smartInputChanged", "smartSelectChanged", "smartOptionSelected", "rightAddOnClicked"],
|
|
5198
5191
|
setup(p, { emit: u }) {
|
|
5199
|
-
const r = p, i = u, s = pt(J), o =
|
|
5192
|
+
const r = p, i = u, s = pt(J), o = A(r.items[0].props), t = (a) => {
|
|
5200
5193
|
switch (a.type) {
|
|
5201
5194
|
case "uiInput":
|
|
5202
5195
|
s.value = J, i("smartFilterSelected", a.value);
|
|
5203
5196
|
break;
|
|
5204
5197
|
case "uiDropdown":
|
|
5205
|
-
s.value =
|
|
5198
|
+
s.value = ye, i("smartFilterSelected", a.value);
|
|
5206
5199
|
break;
|
|
5207
5200
|
case "uiSelect":
|
|
5208
|
-
s.value =
|
|
5201
|
+
s.value = te, i("smartFilterSelected", a.value);
|
|
5209
5202
|
break;
|
|
5210
5203
|
case "uiSelectMultiple":
|
|
5211
|
-
s.value =
|
|
5204
|
+
s.value = ut, i("smartFilterSelected", a.value);
|
|
5212
5205
|
break;
|
|
5213
5206
|
}
|
|
5214
5207
|
o.value = a.props;
|
|
5215
5208
|
};
|
|
5216
5209
|
return (a, d) => (l(), n("div", qd, [
|
|
5217
|
-
m(
|
|
5210
|
+
m(at, {
|
|
5218
5211
|
items: a.items,
|
|
5219
5212
|
loading: a.loading,
|
|
5220
5213
|
onFilterSelected: t,
|
|
5221
5214
|
class: "w-full lg:w-auto"
|
|
5222
5215
|
}, null, 8, ["items", "loading"]),
|
|
5223
|
-
(l(),
|
|
5216
|
+
(l(), x(Ee(s.value), be({ class: "w-full mt-2 lg:mt-0 lg:ml-2 lg:grow" }, o.value, {
|
|
5224
5217
|
loading: !1,
|
|
5225
5218
|
onInputChanged: d[0] || (d[0] = (h) => i("smartInputChanged", h)),
|
|
5226
5219
|
onSelectChanged: d[1] || (d[1] = (h) => i("smartSelectChanged", h)),
|
|
5227
5220
|
onOptionSelected: d[2] || (d[2] = (h) => i("smartOptionSelected", h)),
|
|
5228
5221
|
onRightAddOnClicked: d[3] || (d[3] = (h) => i("rightAddOnClicked"))
|
|
5229
5222
|
}), null, 16)),
|
|
5230
|
-
a.showFilterButton ? (l(),
|
|
5223
|
+
a.showFilterButton ? (l(), x(U, {
|
|
5231
5224
|
key: 0,
|
|
5232
5225
|
class: "mt-2 lg:mt-0 w-full lg:w-auto ml-2",
|
|
5233
5226
|
loading: a.loading
|
|
@@ -5243,7 +5236,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
5243
5236
|
function Ud(p, u) {
|
|
5244
5237
|
return l(), n("span", Ed, "AND");
|
|
5245
5238
|
}
|
|
5246
|
-
const
|
|
5239
|
+
const qe = /* @__PURE__ */ se(Rd, [["render", Ud]]), Hd = { class: "flex flex-col sm:flex-row items-center w-full" }, Zd = { class: "flex mt-4" }, Jd = /* @__PURE__ */ M({
|
|
5247
5240
|
__name: "uiSmartFilterMultiple",
|
|
5248
5241
|
props: {
|
|
5249
5242
|
items: {},
|
|
@@ -5255,7 +5248,7 @@ const Ye = /* @__PURE__ */ le(Rd, [["render", Ud]]), Hd = { class: "flex flex-co
|
|
|
5255
5248
|
},
|
|
5256
5249
|
emits: ["smartFilterMultipleSent", "smartFilterSelected", "smartInputChanged", "smartSelectChanged", "smartOptionSelected", "rightAddOnClicked"],
|
|
5257
5250
|
setup(p, { emit: u }) {
|
|
5258
|
-
const r = p, i = u, s =
|
|
5251
|
+
const r = p, i = u, s = A([JSON.parse(JSON.stringify(r))]), o = A([{ name: r.items[0].name, value: null }]), t = () => {
|
|
5259
5252
|
s.value.push(JSON.parse(JSON.stringify(r))), o.value.push({ name: r.items[0].name, value: null });
|
|
5260
5253
|
}, a = () => {
|
|
5261
5254
|
o.value.pop(), s.value.pop();
|
|
@@ -5266,21 +5259,21 @@ const Ye = /* @__PURE__ */ le(Rd, [["render", Ud]]), Hd = { class: "flex flex-co
|
|
|
5266
5259
|
};
|
|
5267
5260
|
return (v, j) => (l(), n("div", null, [
|
|
5268
5261
|
e("div", Hd, [
|
|
5269
|
-
m(
|
|
5262
|
+
m(xe, be(s.value[0], {
|
|
5270
5263
|
class: "w-full sm:grow",
|
|
5271
5264
|
onSmartInputChanged: j[0] || (j[0] = (w) => o.value[0].value = w),
|
|
5272
5265
|
onSmartSelectChanged: j[1] || (j[1] = (w) => o.value[0].value = w),
|
|
5273
5266
|
onSmartOptionSelected: j[2] || (j[2] = (w) => o.value[0].value = w),
|
|
5274
5267
|
onSmartFilterSelected: j[3] || (j[3] = (w) => o.value[0].name = w)
|
|
5275
5268
|
}), null, 16),
|
|
5276
|
-
s.value.length > 1 ? (l(),
|
|
5269
|
+
s.value.length > 1 ? (l(), x(qe, {
|
|
5277
5270
|
key: 0,
|
|
5278
5271
|
class: "w-full ml-0 mt-2 sm:mt-0 sm:w-20 sm:ml-2"
|
|
5279
5272
|
})) : b("", !0),
|
|
5280
|
-
s.value.length === 1 ? (l(),
|
|
5273
|
+
s.value.length === 1 ? (l(), x(U, {
|
|
5281
5274
|
key: 1,
|
|
5282
5275
|
loading: !1,
|
|
5283
|
-
icon: c(
|
|
5276
|
+
icon: c(Ae),
|
|
5284
5277
|
class: "w-full sm:w-auto sm:ml-2 ml-0 mt-2 sm:mt-0",
|
|
5285
5278
|
onClick: t
|
|
5286
5279
|
}, {
|
|
@@ -5290,25 +5283,25 @@ const Ye = /* @__PURE__ */ le(Rd, [["render", Ud]]), Hd = { class: "flex flex-co
|
|
|
5290
5283
|
_: 1
|
|
5291
5284
|
}, 8, ["icon"])) : b("", !0)
|
|
5292
5285
|
]),
|
|
5293
|
-
(l(!0), n(
|
|
5286
|
+
(l(!0), n(_, null, S(s.value.length - 1, (w) => (l(), n("div", {
|
|
5294
5287
|
class: "flex flex-col sm:flex-row items-center w-full mt-4",
|
|
5295
5288
|
key: w
|
|
5296
5289
|
}, [
|
|
5297
|
-
m(
|
|
5290
|
+
m(xe, be({ ref_for: !0 }, s.value[w], {
|
|
5298
5291
|
class: "w-full sm:grow",
|
|
5299
5292
|
onSmartInputChanged: (T) => o.value[w].value = T,
|
|
5300
5293
|
onSmartSelectChanged: (T) => o.value[w].value = T,
|
|
5301
5294
|
onSmartOptionSelected: (T) => o.value[w].value = T,
|
|
5302
5295
|
onSmartFilterSelected: (T) => o.value[w].name = T
|
|
5303
5296
|
}), null, 16, ["onSmartInputChanged", "onSmartSelectChanged", "onSmartOptionSelected", "onSmartFilterSelected"]),
|
|
5304
|
-
s.value.length > w && s.value.length !== w + 1 ? (l(),
|
|
5297
|
+
s.value.length > w && s.value.length !== w + 1 ? (l(), x(qe, {
|
|
5305
5298
|
key: 0,
|
|
5306
5299
|
class: "w-full ml-0 mt-2 sm:mt-0 sm:w-20 sm:ml-2"
|
|
5307
5300
|
})) : b("", !0),
|
|
5308
|
-
s.value.length === w + 1 ? (l(),
|
|
5301
|
+
s.value.length === w + 1 ? (l(), x(U, {
|
|
5309
5302
|
key: 1,
|
|
5310
5303
|
loading: !1,
|
|
5311
|
-
icon: c(
|
|
5304
|
+
icon: c(fe),
|
|
5312
5305
|
color: "red",
|
|
5313
5306
|
class: "sm:ml-2 ml-0 mt-2 sm:mt-0",
|
|
5314
5307
|
onClick: a
|
|
@@ -5318,10 +5311,10 @@ const Ye = /* @__PURE__ */ le(Rd, [["render", Ud]]), Hd = { class: "flex flex-co
|
|
|
5318
5311
|
]),
|
|
5319
5312
|
_: 1
|
|
5320
5313
|
}, 8, ["icon"])) : b("", !0),
|
|
5321
|
-
s.value.length === w + 1 ? (l(),
|
|
5314
|
+
s.value.length === w + 1 ? (l(), x(U, {
|
|
5322
5315
|
key: 2,
|
|
5323
5316
|
loading: !1,
|
|
5324
|
-
icon: c(
|
|
5317
|
+
icon: c(Ae),
|
|
5325
5318
|
class: "sm:ml-2 ml-0 mt-2 sm:mt-0",
|
|
5326
5319
|
onClick: t
|
|
5327
5320
|
}, {
|
|
@@ -5376,108 +5369,108 @@ const Ye = /* @__PURE__ */ le(Rd, [["render", Ud]]), Hd = { class: "flex flex-co
|
|
|
5376
5369
|
},
|
|
5377
5370
|
emits: ["smartFiltersSent", "smartFiltersCleared", "smartFilterDeleted"],
|
|
5378
5371
|
setup(p, { emit: u }) {
|
|
5379
|
-
const r = p, i = u, s =
|
|
5380
|
-
o.splice(0, o.length),
|
|
5381
|
-
const
|
|
5382
|
-
if (
|
|
5383
|
-
const
|
|
5384
|
-
label:
|
|
5385
|
-
name:
|
|
5386
|
-
type:
|
|
5387
|
-
props: { ...
|
|
5372
|
+
const r = p, i = u, s = A({ id: "1", name: r.literals.and }), o = ne([]), t = A(r.availableCategories[0] || {}), a = (k) => k ? k === "uiInput" ? r.literals.contains : r.literals.is : "", d = (k) => {
|
|
5373
|
+
o.splice(0, o.length), k.logicOperator === "and" || k.logicOperator === r.literals.and ? s.value = { id: "1", name: r.literals.and } : (k.logicOperator === "or" || k.logicOperator === r.literals.or) && (s.value = { id: "2", name: r.literals.or }), k.filters.forEach((N) => {
|
|
5374
|
+
const q = r.availableCategories.find((P) => P.name === N.name);
|
|
5375
|
+
if (q) {
|
|
5376
|
+
const P = {
|
|
5377
|
+
label: N.label,
|
|
5378
|
+
name: N.name,
|
|
5379
|
+
type: N.type,
|
|
5380
|
+
props: { ...q.defaultProps }
|
|
5388
5381
|
};
|
|
5389
|
-
if (
|
|
5390
|
-
|
|
5391
|
-
else if (
|
|
5392
|
-
const G =
|
|
5393
|
-
G ?
|
|
5382
|
+
if (N.type === "uiInput")
|
|
5383
|
+
P.props.value = N.value || "";
|
|
5384
|
+
else if (N.type === "uiSelect") {
|
|
5385
|
+
const G = q.defaultProps.items?.find((X) => X.name === N.value);
|
|
5386
|
+
G ? P.props.select = G : q.defaultProps.items && q.defaultProps.items.length > 0 && (P.props.select = q.defaultProps.items[0]);
|
|
5394
5387
|
}
|
|
5395
|
-
o.push(
|
|
5388
|
+
o.push(P);
|
|
5396
5389
|
}
|
|
5397
5390
|
});
|
|
5398
5391
|
};
|
|
5399
|
-
H(() => r.literals, (
|
|
5400
|
-
s.value.id === "1" ? s.value.name =
|
|
5401
|
-
}, { deep: !0 }), H(() => r.availableCategories, (
|
|
5402
|
-
|
|
5403
|
-
}, { deep: !0, immediate: !0 }), H(() => r.filters, (
|
|
5404
|
-
|
|
5392
|
+
H(() => r.literals, (k) => {
|
|
5393
|
+
s.value.id === "1" ? s.value.name = k.and : s.value.id === "2" && (s.value.name = k.or);
|
|
5394
|
+
}, { deep: !0 }), H(() => r.availableCategories, (k) => {
|
|
5395
|
+
k.length > 0 && (!t.value.name || !k.some((N) => N.name === t.value.name)) && (t.value = k[0]);
|
|
5396
|
+
}, { deep: !0, immediate: !0 }), H(() => r.filters, (k) => {
|
|
5397
|
+
k && d(k);
|
|
5405
5398
|
}, { deep: !0, immediate: !0 });
|
|
5406
5399
|
const h = Y(() => [
|
|
5407
5400
|
{ id: "1", name: r.literals.and },
|
|
5408
5401
|
{ id: "2", name: r.literals.or }
|
|
5409
|
-
]), v = Y(() => r.availableCategories.map((
|
|
5410
|
-
id:
|
|
5411
|
-
name:
|
|
5412
|
-
label:
|
|
5402
|
+
]), v = Y(() => r.availableCategories.map((k) => ({
|
|
5403
|
+
id: k.name,
|
|
5404
|
+
name: k.name,
|
|
5405
|
+
label: k.label
|
|
5413
5406
|
}))), j = Y(() => ({
|
|
5414
5407
|
id: t.value.name,
|
|
5415
5408
|
label: t.value.label,
|
|
5416
5409
|
name: t.value.name
|
|
5417
|
-
})), w = Y(() => o.map((
|
|
5418
|
-
name:
|
|
5410
|
+
})), w = Y(() => o.map((k) => k.type === "uiInput" ? {
|
|
5411
|
+
name: k.label,
|
|
5419
5412
|
operator: r.literals.contains,
|
|
5420
|
-
value:
|
|
5421
|
-
} :
|
|
5422
|
-
name:
|
|
5413
|
+
value: k.props.value || ""
|
|
5414
|
+
} : k.type === "uiSelect" ? {
|
|
5415
|
+
name: k.label,
|
|
5423
5416
|
operator: r.literals.is,
|
|
5424
|
-
value:
|
|
5417
|
+
value: k.props.select?.name || ""
|
|
5425
5418
|
} : {
|
|
5426
|
-
name:
|
|
5419
|
+
name: k.label,
|
|
5427
5420
|
operator: r.literals.contains,
|
|
5428
5421
|
value: ""
|
|
5429
|
-
})), T = (
|
|
5430
|
-
s.value = Array.isArray(
|
|
5431
|
-
},
|
|
5432
|
-
const
|
|
5433
|
-
|
|
5434
|
-
},
|
|
5422
|
+
})), T = (k) => {
|
|
5423
|
+
s.value = Array.isArray(k) ? k[0] || { id: "1", name: r.literals.and } : k;
|
|
5424
|
+
}, $ = (k) => {
|
|
5425
|
+
const N = Array.isArray(k) ? k[0] : k, q = r.availableCategories.find((P) => P.name === N.id);
|
|
5426
|
+
q && (t.value = q);
|
|
5427
|
+
}, O = () => {
|
|
5435
5428
|
if (!t.value || !t.value.name)
|
|
5436
5429
|
return;
|
|
5437
|
-
const
|
|
5430
|
+
const k = {
|
|
5438
5431
|
label: t.value.label,
|
|
5439
5432
|
name: t.value.name,
|
|
5440
5433
|
type: t.value.componentType,
|
|
5441
5434
|
props: { ...t.value.defaultProps }
|
|
5442
5435
|
};
|
|
5443
|
-
o.push(
|
|
5444
|
-
},
|
|
5445
|
-
if (
|
|
5446
|
-
const
|
|
5447
|
-
|
|
5448
|
-
}, C = (
|
|
5449
|
-
|
|
5450
|
-
},
|
|
5436
|
+
o.push(k);
|
|
5437
|
+
}, L = (k, N) => {
|
|
5438
|
+
if (k < 0 || k >= o.length) return;
|
|
5439
|
+
const q = o[k];
|
|
5440
|
+
q.type === "uiInput" ? typeof N == "string" && (q.props.value = N) : q.type === "uiSelect" && (Array.isArray(N) ? q.props.select = N[0] : typeof N == "object" && N !== null && (q.props.select = N));
|
|
5441
|
+
}, C = (k) => {
|
|
5442
|
+
k >= 0 && k < o.length && (o.splice(k, 1), i("smartFilterDeleted", k));
|
|
5443
|
+
}, R = () => {
|
|
5451
5444
|
o.splice(0, o.length), i("smartFiltersCleared");
|
|
5452
|
-
},
|
|
5453
|
-
const
|
|
5445
|
+
}, I = (k) => {
|
|
5446
|
+
const q = {
|
|
5454
5447
|
logicOperator: s.value.id === "1" ? "and" : "or",
|
|
5455
|
-
filters: o.map((
|
|
5456
|
-
name:
|
|
5457
|
-
label:
|
|
5458
|
-
type:
|
|
5459
|
-
value:
|
|
5448
|
+
filters: o.map((P) => ({
|
|
5449
|
+
name: P.name,
|
|
5450
|
+
label: P.label,
|
|
5451
|
+
type: P.type,
|
|
5452
|
+
value: P.type === "uiInput" ? P.props.value : P.props.select?.id
|
|
5460
5453
|
}))
|
|
5461
5454
|
};
|
|
5462
|
-
i("smartFiltersSent",
|
|
5455
|
+
i("smartFiltersSent", q), k();
|
|
5463
5456
|
};
|
|
5464
|
-
return (
|
|
5457
|
+
return (k, N) => (l(), x(c($t), { class: "relative" }, {
|
|
5465
5458
|
default: f(() => [
|
|
5466
|
-
m(c(
|
|
5459
|
+
m(c(_t), { class: "inline-flex items-center gap-x-2 text-sm/6 font-semibold text-gray-900 outline-none flex-wrap gap-y-1" }, {
|
|
5467
5460
|
default: f(() => [
|
|
5468
5461
|
e("span", null, g(r.literals.filters) + ": ", 1),
|
|
5469
|
-
(l(!0), n(
|
|
5470
|
-
e("span", Wd, g(
|
|
5471
|
-
|
|
5462
|
+
(l(!0), n(_, null, S(w.value, (q, P) => (l(), n(_, { key: P }, [
|
|
5463
|
+
e("span", Wd, g(q.name) + " " + g(q.operator) + ": " + g(q.value), 1),
|
|
5464
|
+
P < w.value.length - 1 ? (l(), n("span", Gd, g(s.value.name), 1)) : b("", !0)
|
|
5472
5465
|
], 64))), 128)),
|
|
5473
|
-
m(c(
|
|
5466
|
+
m(c(re), {
|
|
5474
5467
|
class: "size-5",
|
|
5475
5468
|
"aria-hidden": "true"
|
|
5476
5469
|
})
|
|
5477
5470
|
]),
|
|
5478
5471
|
_: 1
|
|
5479
5472
|
}),
|
|
5480
|
-
m(
|
|
5473
|
+
m(ae, {
|
|
5481
5474
|
"enter-active-class": "transition ease-out duration-200",
|
|
5482
5475
|
"enter-from-class": "opacity-0 translate-y-1",
|
|
5483
5476
|
"enter-to-class": "opacity-100 translate-y-0",
|
|
@@ -5487,32 +5480,31 @@ const Ye = /* @__PURE__ */ le(Rd, [["render", Ud]]), Hd = { class: "flex flex-co
|
|
|
5487
5480
|
}, {
|
|
5488
5481
|
default: f(() => [
|
|
5489
5482
|
m(c(Ct), { class: "absolute z-10 mt-2 flex w-screen max-w-max bg-transparent" }, {
|
|
5490
|
-
default: f(() => [
|
|
5483
|
+
default: f(({ close: q }) => [
|
|
5491
5484
|
e("div", Qd, [
|
|
5492
5485
|
e("div", Kd, [
|
|
5493
5486
|
e("div", Xd, [
|
|
5494
|
-
m(
|
|
5487
|
+
m(te, {
|
|
5495
5488
|
loading: !1,
|
|
5496
5489
|
class: "w-60",
|
|
5497
5490
|
items: v.value,
|
|
5498
5491
|
select: j.value,
|
|
5499
|
-
onSelectChanged:
|
|
5492
|
+
onSelectChanged: $
|
|
5500
5493
|
}, null, 8, ["items", "select"]),
|
|
5501
5494
|
m(U, {
|
|
5502
5495
|
loading: !1,
|
|
5503
|
-
onClick:
|
|
5496
|
+
onClick: O,
|
|
5504
5497
|
disabled: !t.value || !t.value.name
|
|
5505
5498
|
}, {
|
|
5506
|
-
default: f(() =>
|
|
5499
|
+
default: f(() => [...N[0] || (N[0] = [
|
|
5507
5500
|
z(" Agregar Filtro ", -1)
|
|
5508
|
-
])),
|
|
5509
|
-
_: 1
|
|
5510
|
-
__: [0]
|
|
5501
|
+
])]),
|
|
5502
|
+
_: 1
|
|
5511
5503
|
}, 8, ["disabled"])
|
|
5512
5504
|
]),
|
|
5513
|
-
(l(!0), n(
|
|
5505
|
+
(l(!0), n(_, null, S(o, (P, G) => (l(), n("div", {
|
|
5514
5506
|
class: "flex items-center gap-x-2 w-full",
|
|
5515
|
-
key:
|
|
5507
|
+
key: P.name
|
|
5516
5508
|
}, [
|
|
5517
5509
|
m(Z, {
|
|
5518
5510
|
loading: !1,
|
|
@@ -5520,7 +5512,7 @@ const Ye = /* @__PURE__ */ le(Rd, [["render", Ud]]), Hd = { class: "flex flex-co
|
|
|
5520
5512
|
color: "gray"
|
|
5521
5513
|
}, {
|
|
5522
5514
|
default: f(() => [
|
|
5523
|
-
z(g(
|
|
5515
|
+
z(g(P.label), 1)
|
|
5524
5516
|
]),
|
|
5525
5517
|
_: 2
|
|
5526
5518
|
}, 1024),
|
|
@@ -5530,26 +5522,26 @@ const Ye = /* @__PURE__ */ le(Rd, [["render", Ud]]), Hd = { class: "flex flex-co
|
|
|
5530
5522
|
color: "gray"
|
|
5531
5523
|
}, {
|
|
5532
5524
|
default: f(() => [
|
|
5533
|
-
z(g(a(
|
|
5525
|
+
z(g(a(P.type)), 1)
|
|
5534
5526
|
]),
|
|
5535
5527
|
_: 2
|
|
5536
5528
|
}, 1024),
|
|
5537
|
-
|
|
5529
|
+
P.type === "uiSelect" ? (l(), x(te, {
|
|
5538
5530
|
key: 0,
|
|
5539
5531
|
class: "grow",
|
|
5540
5532
|
loading: !1,
|
|
5541
|
-
items:
|
|
5542
|
-
select:
|
|
5543
|
-
onSelectChanged: (
|
|
5544
|
-
}, null, 8, ["items", "select", "onSelectChanged"])) :
|
|
5533
|
+
items: P.props.items || [],
|
|
5534
|
+
select: P.props.select || P.props.items?.[0] || { id: "0", name: "Select..." },
|
|
5535
|
+
onSelectChanged: (X) => L(G, X)
|
|
5536
|
+
}, null, 8, ["items", "select", "onSelectChanged"])) : P.type === "uiInput" ? (l(), x(J, {
|
|
5545
5537
|
key: 1,
|
|
5546
5538
|
class: "grow",
|
|
5547
5539
|
loading: !1,
|
|
5548
|
-
name:
|
|
5549
|
-
value:
|
|
5550
|
-
onInput: (
|
|
5540
|
+
name: P.props.name || "",
|
|
5541
|
+
value: P.props.value || "",
|
|
5542
|
+
onInput: (X) => L(G, X.target.value)
|
|
5551
5543
|
}, null, 8, ["name", "value", "onInput"])) : b("", !0),
|
|
5552
|
-
|
|
5544
|
+
G === 0 ? (l(), x(te, {
|
|
5553
5545
|
key: 2,
|
|
5554
5546
|
onSelectChanged: T,
|
|
5555
5547
|
class: "w-24 uppercase",
|
|
@@ -5557,7 +5549,7 @@ const Ye = /* @__PURE__ */ le(Rd, [["render", Ud]]), Hd = { class: "flex flex-co
|
|
|
5557
5549
|
items: h.value,
|
|
5558
5550
|
select: s.value
|
|
5559
5551
|
}, null, 8, ["items", "select"])) : b("", !0),
|
|
5560
|
-
|
|
5552
|
+
G > 0 ? (l(), x(Z, {
|
|
5561
5553
|
key: 3,
|
|
5562
5554
|
loading: !1,
|
|
5563
5555
|
size: "big",
|
|
@@ -5569,12 +5561,12 @@ const Ye = /* @__PURE__ */ le(Rd, [["render", Ud]]), Hd = { class: "flex flex-co
|
|
|
5569
5561
|
]),
|
|
5570
5562
|
_: 1
|
|
5571
5563
|
})) : b("", !0),
|
|
5572
|
-
m(
|
|
5573
|
-
icon: c(
|
|
5564
|
+
m(F, {
|
|
5565
|
+
icon: c(fe),
|
|
5574
5566
|
color: "red",
|
|
5575
5567
|
loading: !1,
|
|
5576
5568
|
class: "cursor-pointer",
|
|
5577
|
-
onClick: (
|
|
5569
|
+
onClick: (X) => C(G),
|
|
5578
5570
|
title: "Eliminar filtro"
|
|
5579
5571
|
}, null, 8, ["icon", "onClick"])
|
|
5580
5572
|
]))), 128))
|
|
@@ -5583,8 +5575,8 @@ const Ye = /* @__PURE__ */ le(Rd, [["render", Ud]]), Hd = { class: "flex flex-co
|
|
|
5583
5575
|
m(U, {
|
|
5584
5576
|
loading: !1,
|
|
5585
5577
|
color: "red",
|
|
5586
|
-
icon: c(
|
|
5587
|
-
onClick:
|
|
5578
|
+
icon: c(fe),
|
|
5579
|
+
onClick: R
|
|
5588
5580
|
}, {
|
|
5589
5581
|
default: f(() => [
|
|
5590
5582
|
z(g(r.literals.deleteAll), 1)
|
|
@@ -5594,13 +5586,13 @@ const Ye = /* @__PURE__ */ le(Rd, [["render", Ud]]), Hd = { class: "flex flex-co
|
|
|
5594
5586
|
m(U, {
|
|
5595
5587
|
loading: !1,
|
|
5596
5588
|
icon: c(At),
|
|
5597
|
-
onClick: P
|
|
5589
|
+
onClick: (P) => I(q)
|
|
5598
5590
|
}, {
|
|
5599
5591
|
default: f(() => [
|
|
5600
5592
|
z(g(r.literals.filter), 1)
|
|
5601
5593
|
]),
|
|
5602
|
-
_:
|
|
5603
|
-
},
|
|
5594
|
+
_: 2
|
|
5595
|
+
}, 1032, ["icon", "onClick"])
|
|
5604
5596
|
])
|
|
5605
5597
|
])
|
|
5606
5598
|
]),
|
|
@@ -5613,29 +5605,29 @@ const Ye = /* @__PURE__ */ le(Rd, [["render", Ud]]), Hd = { class: "flex flex-co
|
|
|
5613
5605
|
_: 1
|
|
5614
5606
|
}));
|
|
5615
5607
|
}
|
|
5616
|
-
}),
|
|
5608
|
+
}), Re = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5617
5609
|
__proto__: null,
|
|
5618
5610
|
uiAlert: Wl,
|
|
5619
5611
|
uiBreadcrumbs: ss,
|
|
5620
5612
|
uiButton: U,
|
|
5621
5613
|
uiCard: us,
|
|
5622
5614
|
uiChart: gr,
|
|
5623
|
-
uiCheckbox:
|
|
5615
|
+
uiCheckbox: Xe,
|
|
5624
5616
|
uiCircleChart: Qi,
|
|
5625
5617
|
uiDateRange: ed,
|
|
5626
5618
|
uiDeviceStatus: vd,
|
|
5627
5619
|
uiDragAndDrop: Vi,
|
|
5628
|
-
uiDropdown:
|
|
5620
|
+
uiDropdown: ye,
|
|
5629
5621
|
uiDynamicStats: Ld,
|
|
5630
|
-
uiFilter:
|
|
5622
|
+
uiFilter: at,
|
|
5631
5623
|
uiFooter: hr,
|
|
5632
5624
|
uiFunnelChartV2: ri,
|
|
5633
5625
|
uiGallery: zi,
|
|
5634
|
-
uiIcon:
|
|
5626
|
+
uiIcon: F,
|
|
5635
5627
|
uiInput: J,
|
|
5636
5628
|
uiInputFile: bl,
|
|
5637
5629
|
uiLoadingScreen: yr,
|
|
5638
|
-
uiModal:
|
|
5630
|
+
uiModal: nt,
|
|
5639
5631
|
uiNoResults: ci,
|
|
5640
5632
|
uiNotification: Ms,
|
|
5641
5633
|
uiPagination: zr,
|
|
@@ -5643,15 +5635,15 @@ const Ye = /* @__PURE__ */ le(Rd, [["render", Ud]]), Hd = { class: "flex flex-co
|
|
|
5643
5635
|
uiRangeSlider: rd,
|
|
5644
5636
|
uiRightSidebar: xi,
|
|
5645
5637
|
uiSectionTitle: nd,
|
|
5646
|
-
uiSelect:
|
|
5647
|
-
uiSelectMultiple:
|
|
5648
|
-
uiSelect_v2:
|
|
5638
|
+
uiSelect: _l,
|
|
5639
|
+
uiSelectMultiple: ut,
|
|
5640
|
+
uiSelect_v2: te,
|
|
5649
5641
|
uiSidebar: Ur,
|
|
5650
|
-
uiSidebarV2:
|
|
5651
|
-
uiSmartFilter:
|
|
5642
|
+
uiSidebarV2: ke,
|
|
5643
|
+
uiSmartFilter: xe,
|
|
5652
5644
|
uiSmartFilterMultiple: Jd,
|
|
5653
5645
|
uiSmartFilterMultipleV2: tu,
|
|
5654
|
-
uiStats:
|
|
5646
|
+
uiStats: dt,
|
|
5655
5647
|
uiStripedCard: Da,
|
|
5656
5648
|
uiTable: Xa,
|
|
5657
5649
|
uiTabs: an,
|
|
@@ -5678,8 +5670,8 @@ const Ye = /* @__PURE__ */ le(Rd, [["render", Ud]]), Hd = { class: "flex flex-co
|
|
|
5678
5670
|
"datetime-local"
|
|
5679
5671
|
], su = ["black", "gray", "white"], pu = [...lu, ...su], ou = ["small", "medium", "big"], ru = ["bigger", "huge", "massive"], fu = [...ou, ...ru], hu = ["default", "success", "warning", "danger"];
|
|
5680
5672
|
function au(p) {
|
|
5681
|
-
for (const u in
|
|
5682
|
-
p.component(u,
|
|
5673
|
+
for (const u in Re)
|
|
5674
|
+
p.component(u, Re[u]);
|
|
5683
5675
|
}
|
|
5684
5676
|
const yu = { install: au };
|
|
5685
5677
|
export {
|
|
@@ -5697,22 +5689,22 @@ export {
|
|
|
5697
5689
|
U as uiButton,
|
|
5698
5690
|
us as uiCard,
|
|
5699
5691
|
gr as uiChart,
|
|
5700
|
-
|
|
5692
|
+
Xe as uiCheckbox,
|
|
5701
5693
|
Qi as uiCircleChart,
|
|
5702
5694
|
ed as uiDateRange,
|
|
5703
5695
|
vd as uiDeviceStatus,
|
|
5704
5696
|
Vi as uiDragAndDrop,
|
|
5705
|
-
|
|
5697
|
+
ye as uiDropdown,
|
|
5706
5698
|
Ld as uiDynamicStats,
|
|
5707
|
-
|
|
5699
|
+
at as uiFilter,
|
|
5708
5700
|
hr as uiFooter,
|
|
5709
5701
|
ri as uiFunnelChartV2,
|
|
5710
5702
|
zi as uiGallery,
|
|
5711
|
-
|
|
5703
|
+
F as uiIcon,
|
|
5712
5704
|
J as uiInput,
|
|
5713
5705
|
bl as uiInputFile,
|
|
5714
5706
|
yr as uiLoadingScreen,
|
|
5715
|
-
|
|
5707
|
+
nt as uiModal,
|
|
5716
5708
|
ci as uiNoResults,
|
|
5717
5709
|
Ms as uiNotification,
|
|
5718
5710
|
zr as uiPagination,
|
|
@@ -5720,15 +5712,15 @@ export {
|
|
|
5720
5712
|
rd as uiRangeSlider,
|
|
5721
5713
|
xi as uiRightSidebar,
|
|
5722
5714
|
nd as uiSectionTitle,
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
|
|
5715
|
+
_l as uiSelect,
|
|
5716
|
+
ut as uiSelectMultiple,
|
|
5717
|
+
te as uiSelect_v2,
|
|
5726
5718
|
Ur as uiSidebar,
|
|
5727
|
-
|
|
5728
|
-
|
|
5719
|
+
ke as uiSidebarV2,
|
|
5720
|
+
xe as uiSmartFilter,
|
|
5729
5721
|
Jd as uiSmartFilterMultiple,
|
|
5730
5722
|
tu as uiSmartFilterMultipleV2,
|
|
5731
|
-
|
|
5723
|
+
dt as uiStats,
|
|
5732
5724
|
Da as uiStripedCard,
|
|
5733
5725
|
Xa as uiTable,
|
|
5734
5726
|
an as uiTabs,
|