@hotelinking/ui 14.48.0 → 14.48.2
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.d.ts +4 -4
- package/dist/ui.es.js +576 -578
- package/package.json +1 -1
package/dist/ui.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as j, createBlock as
|
|
2
|
-
import { Menu as Me, MenuButton as je, MenuItems as De, MenuItem as Te, Combobox as We, ComboboxLabel as Ge, ComboboxInput as Qe, ComboboxButton as Ke, ComboboxOptions as Xe, ComboboxOption as et, SwitchGroup as vt, Switch as bt, SwitchLabel as wt, TransitionRoot as ze, Dialog as
|
|
1
|
+
import { defineComponent as j, createBlock as x, createElementBlock as n, openBlock as l, resolveDynamicComponent as Ze, normalizeClass as v, computed as V, createCommentVNode as w, renderSlot as H, createElementVNode as e, ref as O, watch as E, unref as c, withCtx as h, createVNode as g, toDisplayString as m, createTextVNode as T, Transition as ne, Fragment as C, renderList as S, withDirectives as M, vModelDynamic as pt, vShow as z, withModifiers as ke, vModelText as ae, createStaticVNode as se, resolveComponent as Ne, vModelCheckbox as Je, reactive as ie, isRef as Be, TransitionGroup as ft, onMounted as ht, shallowRef as yt, mergeProps as xe } from "vue";
|
|
2
|
+
import { Menu as Me, MenuButton as je, MenuItems as De, MenuItem as Te, Combobox as We, ComboboxLabel as Ge, ComboboxInput as Qe, ComboboxButton as Ke, ComboboxOptions as Xe, ComboboxOption as et, SwitchGroup as vt, Switch as bt, SwitchLabel as wt, TransitionRoot as ze, Dialog as Ae, TransitionChild as ee, DialogPanel as Fe, DialogTitle as tt, Disclosure as ye, DisclosureButton as Q, DisclosurePanel as ve, Listbox as kt, ListboxLabel as xt, ListboxButton as _t, ListboxOptions as $t, ListboxOption as Ct, Popover as St, PopoverButton as Bt, PopoverPanel as Mt } from "@headlessui/vue";
|
|
3
3
|
import Y from "dayjs";
|
|
4
4
|
import Le from "vue3-apexcharts";
|
|
5
5
|
import jt from "vue3-draggable";
|
|
6
6
|
import Dt from "@vueform/slider";
|
|
7
|
-
const
|
|
7
|
+
const F = /* @__PURE__ */ j({
|
|
8
8
|
__name: "uiIcon",
|
|
9
9
|
props: {
|
|
10
10
|
icon: {},
|
|
@@ -22,7 +22,7 @@ const L = /* @__PURE__ */ j({
|
|
|
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(Ze(u.icon), {
|
|
26
26
|
key: 0,
|
|
27
27
|
class: v({
|
|
28
28
|
"h-4 w-4": u.size === "medium",
|
|
@@ -40,7 +40,7 @@ const L = /* @__PURE__ */ j({
|
|
|
40
40
|
})
|
|
41
41
|
}, null, 8, ["class"]));
|
|
42
42
|
}
|
|
43
|
-
}), Tt = ["disabled"], zt = "group inline-flex items-center border border-transparent font-medium focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-25 text-nowrap",
|
|
43
|
+
}), Tt = ["disabled"], zt = "group inline-flex items-center border border-transparent font-medium focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-25 text-nowrap", U = /* @__PURE__ */ j({
|
|
44
44
|
__name: "uiButton",
|
|
45
45
|
props: {
|
|
46
46
|
block: { type: Boolean },
|
|
@@ -72,7 +72,7 @@ const L = /* @__PURE__ */ j({
|
|
|
72
72
|
class: v(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,20 +86,20 @@ const L = /* @__PURE__ */ j({
|
|
|
86
86
|
class: v(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",
|
|
93
93
|
color: "black",
|
|
94
94
|
loading: t.loading
|
|
95
95
|
}, null, 8, ["icon", "loading"])) : w("", !0),
|
|
96
|
-
|
|
96
|
+
H(t.$slots, "default")
|
|
97
97
|
], 10, Tt));
|
|
98
98
|
}
|
|
99
|
-
}),
|
|
99
|
+
}), At = {
|
|
100
100
|
key: 0,
|
|
101
101
|
class: "relative flex items-start"
|
|
102
|
-
},
|
|
102
|
+
}, Ft = { class: "flex items-center h-5" }, Lt = ["checked", "value", "disabled"], Ot = { class: "ml-3 text-sm" }, Nt = { class: "text-black" }, Pt = {
|
|
103
103
|
key: 1,
|
|
104
104
|
class: "flex items-center animate-pulse"
|
|
105
105
|
}, re = /* @__PURE__ */ j({
|
|
@@ -116,13 +116,13 @@ const L = /* @__PURE__ */ j({
|
|
|
116
116
|
const r = u, i = p, s = O(i.check), o = () => {
|
|
117
117
|
i.disabled || (s.value = !s.value, r("checkboxChanged", { checked: s.value, value: i.value }));
|
|
118
118
|
};
|
|
119
|
-
return
|
|
119
|
+
return E(() => i.check, (t) => {
|
|
120
120
|
t && (s.value = t);
|
|
121
121
|
}), (t, a) => t.loading ? (l(), n("div", Pt, [...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",
|
|
125
|
-
e("div",
|
|
124
|
+
])])) : (l(), n("div", At, [
|
|
125
|
+
e("div", Ft, [
|
|
126
126
|
e("input", {
|
|
127
127
|
checked: t.check,
|
|
128
128
|
value: t.value,
|
|
@@ -134,7 +134,7 @@ const L = /* @__PURE__ */ j({
|
|
|
134
134
|
]),
|
|
135
135
|
e("div", Ot, [
|
|
136
136
|
e("span", Nt, [
|
|
137
|
-
|
|
137
|
+
H(t.$slots, "default")
|
|
138
138
|
])
|
|
139
139
|
])
|
|
140
140
|
]));
|
|
@@ -259,7 +259,7 @@ function Rt(p, u) {
|
|
|
259
259
|
})
|
|
260
260
|
]);
|
|
261
261
|
}
|
|
262
|
-
function
|
|
262
|
+
function Ut(p, u) {
|
|
263
263
|
return l(), n("svg", {
|
|
264
264
|
xmlns: "http://www.w3.org/2000/svg",
|
|
265
265
|
fill: "none",
|
|
@@ -412,7 +412,7 @@ function Pe(p, u) {
|
|
|
412
412
|
})
|
|
413
413
|
]);
|
|
414
414
|
}
|
|
415
|
-
function
|
|
415
|
+
function Ht(p, u) {
|
|
416
416
|
return l(), n("svg", {
|
|
417
417
|
xmlns: "http://www.w3.org/2000/svg",
|
|
418
418
|
fill: "none",
|
|
@@ -446,7 +446,7 @@ function W(p, u) {
|
|
|
446
446
|
})
|
|
447
447
|
]);
|
|
448
448
|
}
|
|
449
|
-
function
|
|
449
|
+
function Et(p, u) {
|
|
450
450
|
return l(), n("svg", {
|
|
451
451
|
xmlns: "http://www.w3.org/2000/svg",
|
|
452
452
|
fill: "none",
|
|
@@ -651,7 +651,7 @@ const Qt = {
|
|
|
651
651
|
"aria-hidden": "true",
|
|
652
652
|
class: "-mr-1 ml-2 h-5 w-5 text-gray-200 dark:text-gray-300"
|
|
653
653
|
})
|
|
654
|
-
])) : (l(),
|
|
654
|
+
])) : (l(), x(c(Me), {
|
|
655
655
|
key: 0,
|
|
656
656
|
as: "div",
|
|
657
657
|
class: v(["relative text-left", { "opacity-25": t.disabled }])
|
|
@@ -667,12 +667,12 @@ const Qt = {
|
|
|
667
667
|
g(c(je), { 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" }, {
|
|
668
668
|
default: h(() => [
|
|
669
669
|
T(m(s.value) + " ", 1),
|
|
670
|
-
t.verticalPosition === "bottom" ? (l(),
|
|
670
|
+
t.verticalPosition === "bottom" ? (l(), x(c(le), {
|
|
671
671
|
key: 0,
|
|
672
672
|
"aria-hidden": "true",
|
|
673
673
|
class: "-mr-1 ml-2 h-5 w-5"
|
|
674
674
|
})) : w("", !0),
|
|
675
|
-
t.verticalPosition === "top" ? (l(),
|
|
675
|
+
t.verticalPosition === "top" ? (l(), x(c(at), {
|
|
676
676
|
key: 1,
|
|
677
677
|
"aria-hidden": "true",
|
|
678
678
|
class: "-mr-1 ml-2 h-5 w-5"
|
|
@@ -690,7 +690,7 @@ const Qt = {
|
|
|
690
690
|
"leave-to-class": "transform opacity-0 scale-95"
|
|
691
691
|
}, {
|
|
692
692
|
default: h(() => [
|
|
693
|
-
t.disabled ? w("", !0) : (l(),
|
|
693
|
+
t.disabled ? w("", !0) : (l(), x(c(De), {
|
|
694
694
|
key: 0,
|
|
695
695
|
class: v([{
|
|
696
696
|
"right-0": t.position === "right",
|
|
@@ -701,10 +701,10 @@ const Qt = {
|
|
|
701
701
|
}, {
|
|
702
702
|
default: h(() => [
|
|
703
703
|
e("div", Xt, [
|
|
704
|
-
(l(!0), n(
|
|
704
|
+
(l(!0), n(C, null, S(t.items, (d, f) => (l(), x(c(Te), { key: f }, {
|
|
705
705
|
default: h(() => [
|
|
706
706
|
e("a", {
|
|
707
|
-
onClick: (
|
|
707
|
+
onClick: (y) => o(d),
|
|
708
708
|
class: v([
|
|
709
709
|
d.active ? "bg-lime-400" : "text-black",
|
|
710
710
|
"block px-4 py-2 text-sm cursor-pointer"
|
|
@@ -759,7 +759,7 @@ const Qt = {
|
|
|
759
759
|
emits: ["inputChanged", "rightAddOnClicked", "addOnClicked"],
|
|
760
760
|
setup(p, { emit: u }) {
|
|
761
761
|
const r = u, i = p, s = O(i.value);
|
|
762
|
-
|
|
762
|
+
E(() => i.value, (t) => {
|
|
763
763
|
s.value = t, s.value && r("inputChanged", { name: i.name, value: s.value });
|
|
764
764
|
});
|
|
765
765
|
const o = (t) => {
|
|
@@ -816,32 +816,32 @@ const Qt = {
|
|
|
816
816
|
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"
|
|
817
817
|
}, m(t.rightAddOn), 1)) : w("", !0),
|
|
818
818
|
e("div", nl, [
|
|
819
|
-
t.icon ? (l(),
|
|
819
|
+
t.icon ? (l(), x(F, {
|
|
820
820
|
key: 0,
|
|
821
821
|
icon: t.icon,
|
|
822
822
|
color: t.color,
|
|
823
823
|
loading: t.loading
|
|
824
824
|
}, null, 8, ["icon", "color", "loading"])) : w("", !0),
|
|
825
|
-
M(g(
|
|
825
|
+
M(g(F, {
|
|
826
826
|
icon: c(Oe),
|
|
827
827
|
color: "green",
|
|
828
828
|
loading: t.loading
|
|
829
829
|
}, null, 8, ["icon", "loading"]), [
|
|
830
|
-
[
|
|
830
|
+
[z, t.color === "green"]
|
|
831
831
|
]),
|
|
832
|
-
M(g(
|
|
832
|
+
M(g(F, {
|
|
833
833
|
icon: c(W),
|
|
834
834
|
color: "yellow",
|
|
835
835
|
loading: t.loading
|
|
836
836
|
}, null, 8, ["icon", "loading"]), [
|
|
837
|
-
[
|
|
837
|
+
[z, t.color === "yellow"]
|
|
838
838
|
]),
|
|
839
|
-
M(g(
|
|
839
|
+
M(g(F, {
|
|
840
840
|
icon: c(K),
|
|
841
841
|
color: "red",
|
|
842
842
|
loading: t.loading
|
|
843
843
|
}, null, 8, ["icon", "loading"]), [
|
|
844
|
-
[
|
|
844
|
+
[z, t.color === "red"]
|
|
845
845
|
])
|
|
846
846
|
])
|
|
847
847
|
], 2),
|
|
@@ -853,7 +853,7 @@ const Qt = {
|
|
|
853
853
|
"text-green-600": t.color === "green"
|
|
854
854
|
}, "mt-2 text-xs flex flex-row items-center"])
|
|
855
855
|
}, m(t.error), 3), [
|
|
856
|
-
[
|
|
856
|
+
[z, t.error]
|
|
857
857
|
])
|
|
858
858
|
]));
|
|
859
859
|
}
|
|
@@ -890,12 +890,12 @@ const Qt = {
|
|
|
890
890
|
a(d.target.files), i("filesUploaded", { id: s.id, files: d.target.files });
|
|
891
891
|
}, a = (d) => {
|
|
892
892
|
r.value = "";
|
|
893
|
-
let
|
|
894
|
-
Object.values(d).forEach((
|
|
895
|
-
|
|
893
|
+
let f = 1;
|
|
894
|
+
Object.values(d).forEach((y) => {
|
|
895
|
+
f++, r.value += y.name, f >= 1 && f < d.length && (r.value += ", ");
|
|
896
896
|
});
|
|
897
897
|
};
|
|
898
|
-
return (d,
|
|
898
|
+
return (d, f) => d.loading ? (l(), n("div", kl, [...f[1] || (f[1] = [
|
|
899
899
|
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" }, [
|
|
900
900
|
e("div", { class: "rounded-full h-20 w-20 bg-gray-200 mb-4" }),
|
|
901
901
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full md:w-1/3 mb-3" }),
|
|
@@ -915,12 +915,12 @@ const Qt = {
|
|
|
915
915
|
],
|
|
916
916
|
"dropArea flex justify-center rounded-md border-2 border-dashed px-6 pt-5 pb-6"
|
|
917
917
|
]),
|
|
918
|
-
onDragover:
|
|
918
|
+
onDragover: f[0] || (f[0] = ke(() => {
|
|
919
919
|
}, ["prevent"])),
|
|
920
920
|
onDrop: ke(o, ["prevent"])
|
|
921
921
|
}, [
|
|
922
922
|
e("div", pl, [
|
|
923
|
-
g(
|
|
923
|
+
g(F, {
|
|
924
924
|
icon: d.icon,
|
|
925
925
|
size: "massive",
|
|
926
926
|
color: "black",
|
|
@@ -948,12 +948,12 @@ const Qt = {
|
|
|
948
948
|
]),
|
|
949
949
|
e("p", bl, m(d.fileTypesAndSizes), 1),
|
|
950
950
|
M(e("p", { class: "font-bold text-xs uppercase block p-2 bg-lime-50 rounded" }, m(c(r)), 513), [
|
|
951
|
-
[
|
|
951
|
+
[z, c(r) !== null]
|
|
952
952
|
])
|
|
953
953
|
])
|
|
954
954
|
], 34),
|
|
955
955
|
M(e("p", wl, [
|
|
956
|
-
g(
|
|
956
|
+
g(F, {
|
|
957
957
|
icon: c(be),
|
|
958
958
|
color: "red",
|
|
959
959
|
class: "mr-2",
|
|
@@ -961,7 +961,7 @@ const Qt = {
|
|
|
961
961
|
}, null, 8, ["icon", "loading"]),
|
|
962
962
|
T(" " + m(d.error), 1)
|
|
963
963
|
], 512), [
|
|
964
|
-
[
|
|
964
|
+
[z, d.error]
|
|
965
965
|
])
|
|
966
966
|
]));
|
|
967
967
|
}
|
|
@@ -987,60 +987,60 @@ const Qt = {
|
|
|
987
987
|
},
|
|
988
988
|
emits: ["selectChanged"],
|
|
989
989
|
setup(p, { expose: u, emit: r }) {
|
|
990
|
-
const i = O(""), s = r, o = p, t = V(() => i.value === "" ? o.items : o.items.filter((
|
|
991
|
-
s("selectChanged",
|
|
992
|
-
},
|
|
990
|
+
const i = O(""), s = r, o = p, t = V(() => i.value === "" ? o.items : o.items.filter((y) => y.name.toLowerCase().includes(i.value.toLowerCase()))), a = (y) => y?.name ?? "", d = (y) => {
|
|
991
|
+
s("selectChanged", y);
|
|
992
|
+
}, f = V({
|
|
993
993
|
get: () => o.select,
|
|
994
|
-
set: (
|
|
995
|
-
d(
|
|
994
|
+
set: (y) => {
|
|
995
|
+
d(y);
|
|
996
996
|
}
|
|
997
997
|
});
|
|
998
998
|
return u({
|
|
999
999
|
handleChange: d
|
|
1000
|
-
}), (
|
|
1001
|
-
|
|
1000
|
+
}), (y, $) => y.loading ? (l(), n("div", Cl, [
|
|
1001
|
+
$[3] || ($[3] = e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1)),
|
|
1002
1002
|
g(c(_e), {
|
|
1003
1003
|
"aria-hidden": "true",
|
|
1004
1004
|
class: "-mr-1 ml-2 h-5 w-5 text-gray-300 dark:text-gray-400"
|
|
1005
1005
|
})
|
|
1006
|
-
])) : (l(),
|
|
1006
|
+
])) : (l(), x(c(We), {
|
|
1007
1007
|
key: 0,
|
|
1008
|
-
modelValue:
|
|
1008
|
+
modelValue: f.value,
|
|
1009
1009
|
"onUpdate:modelValue": [
|
|
1010
|
-
|
|
1010
|
+
$[2] || ($[2] = (k) => f.value = k),
|
|
1011
1011
|
d
|
|
1012
1012
|
],
|
|
1013
|
-
disabled:
|
|
1013
|
+
disabled: y.disabled,
|
|
1014
1014
|
as: "div"
|
|
1015
1015
|
}, {
|
|
1016
1016
|
default: h(() => [
|
|
1017
1017
|
e("div", xl, [
|
|
1018
1018
|
g(c(Ge), { class: "block text-sm font-medium" }, {
|
|
1019
1019
|
default: h(() => [
|
|
1020
|
-
T(m(
|
|
1020
|
+
T(m(y.label), 1)
|
|
1021
1021
|
]),
|
|
1022
1022
|
_: 1
|
|
1023
1023
|
}),
|
|
1024
|
-
|
|
1024
|
+
y.requiredText ? (l(), n("span", _l, m(y.requiredText), 1)) : w("", !0)
|
|
1025
1025
|
]),
|
|
1026
1026
|
e("div", $l, [
|
|
1027
1027
|
g(c(Qe), {
|
|
1028
|
-
onChange:
|
|
1029
|
-
onBlur:
|
|
1028
|
+
onChange: $[0] || ($[0] = (k) => i.value = k.target.value),
|
|
1029
|
+
onBlur: $[1] || ($[1] = (k) => i.value = ""),
|
|
1030
1030
|
displayValue: a,
|
|
1031
1031
|
class: v([{
|
|
1032
|
-
"mt-1":
|
|
1033
|
-
"border-gray-300":
|
|
1034
|
-
"border-red-600":
|
|
1035
|
-
"border-yellow-400":
|
|
1036
|
-
"border-green-600":
|
|
1037
|
-
"bg-gray-100":
|
|
1038
|
-
"bg-white": !
|
|
1039
|
-
"text-black":
|
|
1040
|
-
"text-gray-300":
|
|
1041
|
-
"text-red-600":
|
|
1042
|
-
"text-yellow-400":
|
|
1043
|
-
"text-green-600":
|
|
1032
|
+
"mt-1": y.requiredText || y.label,
|
|
1033
|
+
"border-gray-300": y.color === "gray",
|
|
1034
|
+
"border-red-600": y.color === "red",
|
|
1035
|
+
"border-yellow-400": y.color === "yellow",
|
|
1036
|
+
"border-green-600": y.color === "green",
|
|
1037
|
+
"bg-gray-100": y.disabled,
|
|
1038
|
+
"bg-white": !y.disabled,
|
|
1039
|
+
"text-black": y.color === "gray",
|
|
1040
|
+
"text-gray-300": y.disabled,
|
|
1041
|
+
"text-red-600": y.color === "red",
|
|
1042
|
+
"text-yellow-400": y.color === "yellow",
|
|
1043
|
+
"text-green-600": y.color === "green"
|
|
1044
1044
|
}, "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"])
|
|
1045
1045
|
}, null, 8, ["class"]),
|
|
1046
1046
|
g(c(Ke), { class: "absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none" }, {
|
|
@@ -1052,17 +1052,17 @@ const Qt = {
|
|
|
1052
1052
|
]),
|
|
1053
1053
|
_: 1
|
|
1054
1054
|
}),
|
|
1055
|
-
t.value.length > 0 ? (l(),
|
|
1055
|
+
t.value.length > 0 ? (l(), x(c(Xe), {
|
|
1056
1056
|
key: 0,
|
|
1057
1057
|
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"
|
|
1058
1058
|
}, {
|
|
1059
1059
|
default: h(() => [
|
|
1060
|
-
(l(!0), n(
|
|
1061
|
-
key:
|
|
1062
|
-
value:
|
|
1060
|
+
(l(!0), n(C, null, S(t.value, (k) => (l(), x(c(et), {
|
|
1061
|
+
key: k.id,
|
|
1062
|
+
value: k,
|
|
1063
1063
|
as: "template"
|
|
1064
1064
|
}, {
|
|
1065
|
-
default: h(({ active: D, selected:
|
|
1065
|
+
default: h(({ active: D, selected: b }) => [
|
|
1066
1066
|
e("li", {
|
|
1067
1067
|
class: v([
|
|
1068
1068
|
"relative cursor-default select-none py-2 pl-3 pr-9",
|
|
@@ -1070,9 +1070,9 @@ const Qt = {
|
|
|
1070
1070
|
])
|
|
1071
1071
|
}, [
|
|
1072
1072
|
e("span", {
|
|
1073
|
-
class: v(["block truncate",
|
|
1074
|
-
}, m(
|
|
1075
|
-
|
|
1073
|
+
class: v(["block truncate", b && "font-semibold"])
|
|
1074
|
+
}, m(k.name), 3),
|
|
1075
|
+
b ? (l(), n("span", {
|
|
1076
1076
|
key: 0,
|
|
1077
1077
|
class: v([
|
|
1078
1078
|
"absolute inset-y-0 right-0 flex items-center pr-4",
|
|
@@ -1095,13 +1095,13 @@ const Qt = {
|
|
|
1095
1095
|
]),
|
|
1096
1096
|
M(e("p", {
|
|
1097
1097
|
class: v([{
|
|
1098
|
-
"text-gray-400":
|
|
1099
|
-
"text-red-600":
|
|
1100
|
-
"text-yellow-400":
|
|
1101
|
-
"text-green-600":
|
|
1098
|
+
"text-gray-400": y.color === "gray",
|
|
1099
|
+
"text-red-600": y.color === "red",
|
|
1100
|
+
"text-yellow-400": y.color === "yellow",
|
|
1101
|
+
"text-green-600": y.color === "green"
|
|
1102
1102
|
}, "mt-2 text-xs flex flex-row items-center"])
|
|
1103
|
-
}, m(
|
|
1104
|
-
[
|
|
1103
|
+
}, m(y.error), 3), [
|
|
1104
|
+
[z, y.error]
|
|
1105
1105
|
])
|
|
1106
1106
|
]),
|
|
1107
1107
|
_: 1
|
|
@@ -1162,11 +1162,11 @@ const jl = { class: "flex justify-between" }, Dl = {
|
|
|
1162
1162
|
), a = (d) => {
|
|
1163
1163
|
s.value = "", i("selectChanged", d);
|
|
1164
1164
|
};
|
|
1165
|
-
return (d,
|
|
1165
|
+
return (d, f) => (l(), x(c(We), {
|
|
1166
1166
|
as: "div",
|
|
1167
1167
|
modelValue: o.value,
|
|
1168
1168
|
"onUpdate:modelValue": [
|
|
1169
|
-
|
|
1169
|
+
f[2] || (f[2] = (y) => o.value = y),
|
|
1170
1170
|
a
|
|
1171
1171
|
]
|
|
1172
1172
|
}, {
|
|
@@ -1200,9 +1200,9 @@ const jl = { class: "flex justify-between" }, Dl = {
|
|
|
1200
1200
|
"text-yellow-400": d.color === "yellow",
|
|
1201
1201
|
"text-green-600": d.color === "green"
|
|
1202
1202
|
}, "w-full rounded-md border py-2 pl-3 pr-10 shadow-sm focus:border-lime-400 focus:outline-none focus:ring-1 focus:ring-lime-400 sm:text-sm"]),
|
|
1203
|
-
onChange:
|
|
1204
|
-
onBlur:
|
|
1205
|
-
"display-value": (
|
|
1203
|
+
onChange: f[0] || (f[0] = (y) => s.value = y.target.value),
|
|
1204
|
+
onBlur: f[1] || (f[1] = (y) => s.value = ""),
|
|
1205
|
+
"display-value": (y) => y.label || y.name
|
|
1206
1206
|
}, null, 8, ["class", "display-value"]),
|
|
1207
1207
|
g(c(Ke), { class: "h-full absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none" }, {
|
|
1208
1208
|
default: h(() => [
|
|
@@ -1213,26 +1213,26 @@ const jl = { class: "flex justify-between" }, Dl = {
|
|
|
1213
1213
|
]),
|
|
1214
1214
|
_: 1
|
|
1215
1215
|
}),
|
|
1216
|
-
t.value.length > 0 ? (l(),
|
|
1216
|
+
t.value.length > 0 ? (l(), x(c(Xe), {
|
|
1217
1217
|
key: 0,
|
|
1218
1218
|
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"
|
|
1219
1219
|
}, {
|
|
1220
1220
|
default: h(() => [
|
|
1221
|
-
(l(!0), n(
|
|
1222
|
-
key:
|
|
1223
|
-
value:
|
|
1221
|
+
(l(!0), n(C, null, S(t.value, (y) => (l(), x(c(et), {
|
|
1222
|
+
key: y.id,
|
|
1223
|
+
value: y,
|
|
1224
1224
|
as: "template"
|
|
1225
1225
|
}, {
|
|
1226
|
-
default: h(({ active:
|
|
1226
|
+
default: h(({ active: $, selected: k }) => [
|
|
1227
1227
|
e("li", {
|
|
1228
|
-
class: v(["relative cursor-default select-none py-2 pl-3 pr-9",
|
|
1228
|
+
class: v(["relative cursor-default select-none py-2 pl-3 pr-9", $ ? "bg-lime-400 outline-none" : "text-gray-900"])
|
|
1229
1229
|
}, [
|
|
1230
1230
|
e("span", {
|
|
1231
|
-
class: v(["block truncate",
|
|
1232
|
-
}, m(
|
|
1233
|
-
|
|
1231
|
+
class: v(["block truncate", k && "font-semibold"])
|
|
1232
|
+
}, m(y.label || y.name), 3),
|
|
1233
|
+
k ? (l(), n("span", {
|
|
1234
1234
|
key: 0,
|
|
1235
|
-
class: v(["absolute inset-y-0 right-0 flex items-center pr-4",
|
|
1235
|
+
class: v(["absolute inset-y-0 right-0 flex items-center pr-4", $ ? "text-black" : "text-lime-400"])
|
|
1236
1236
|
}, [
|
|
1237
1237
|
g(c(Bl), {
|
|
1238
1238
|
class: "size-5",
|
|
@@ -1255,7 +1255,7 @@ const jl = { class: "flex justify-between" }, Dl = {
|
|
|
1255
1255
|
"text-green-600": d.color === "green"
|
|
1256
1256
|
}, "mt-2 text-xs flex flex-row items-center"])
|
|
1257
1257
|
}, m(d.error), 3), [
|
|
1258
|
-
[
|
|
1258
|
+
[z, d.error]
|
|
1259
1259
|
])
|
|
1260
1260
|
]),
|
|
1261
1261
|
_: 1
|
|
@@ -1301,10 +1301,10 @@ const jl = { class: "flex justify-between" }, Dl = {
|
|
|
1301
1301
|
"px-4 py-3": o.size === "big"
|
|
1302
1302
|
}, "inline-flex items-center rounded text-xs font-medium leading-none"])
|
|
1303
1303
|
}, [
|
|
1304
|
-
|
|
1304
|
+
H(o.$slots, "default")
|
|
1305
1305
|
], 2));
|
|
1306
1306
|
}
|
|
1307
|
-
}), zl = { key: 0 },
|
|
1307
|
+
}), zl = { key: 0 }, Al = { class: "flex justify-between" }, Fl = {
|
|
1308
1308
|
key: 0,
|
|
1309
1309
|
class: "block text-sm font-medium"
|
|
1310
1310
|
}, Ll = {
|
|
@@ -1332,14 +1332,14 @@ const jl = { class: "flex justify-between" }, Dl = {
|
|
|
1332
1332
|
const r = u, i = p, s = (t) => {
|
|
1333
1333
|
r("inputChanged", t.target.value);
|
|
1334
1334
|
}, o = O(i.value);
|
|
1335
|
-
return
|
|
1335
|
+
return E(() => i.value, (t) => {
|
|
1336
1336
|
o.value = t, r("inputChanged", { name: i.name, value: o.value });
|
|
1337
1337
|
}), (t, a) => t.loading ? (l(), n("div", Nl, [...a[1] || (a[1] = [
|
|
1338
1338
|
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),
|
|
1339
1339
|
e("div", { class: "h-24 bg-gray-200 rounded-lg flex inline-flex items-center relative inline-block text-left w-full" }, null, -1)
|
|
1340
1340
|
])])) : (l(), n("div", zl, [
|
|
1341
|
-
e("div",
|
|
1342
|
-
t.label ? (l(), n("label",
|
|
1341
|
+
e("div", Al, [
|
|
1342
|
+
t.label ? (l(), n("label", Fl, m(t.label), 1)) : w("", !0),
|
|
1343
1343
|
t.requiredText ? (l(), n("span", Ll, m(t.requiredText), 1)) : w("", !0)
|
|
1344
1344
|
]),
|
|
1345
1345
|
e("div", {
|
|
@@ -1375,7 +1375,7 @@ const jl = { class: "flex justify-between" }, Dl = {
|
|
|
1375
1375
|
"text-green-600": t.color === "green"
|
|
1376
1376
|
}, "mt-2 text-xs flex flex-row items-center"])
|
|
1377
1377
|
}, [
|
|
1378
|
-
g(
|
|
1378
|
+
g(F, {
|
|
1379
1379
|
icon: c(be),
|
|
1380
1380
|
color: "red",
|
|
1381
1381
|
class: "mr-2",
|
|
@@ -1383,7 +1383,7 @@ const jl = { class: "flex justify-between" }, Dl = {
|
|
|
1383
1383
|
}, null, 8, ["icon"]),
|
|
1384
1384
|
T(" " + m(t.error), 1)
|
|
1385
1385
|
], 2), [
|
|
1386
|
-
[
|
|
1386
|
+
[z, t.error]
|
|
1387
1387
|
])
|
|
1388
1388
|
]));
|
|
1389
1389
|
}
|
|
@@ -1404,12 +1404,12 @@ const jl = { class: "flex justify-between" }, Dl = {
|
|
|
1404
1404
|
emits: ["toggleChanged", "actionClicked"],
|
|
1405
1405
|
setup(p, { emit: u }) {
|
|
1406
1406
|
const r = p, i = O(r.checked);
|
|
1407
|
-
return
|
|
1407
|
+
return E(() => r.checked, (s) => i.value = s), (s, o) => s.loading ? (l(), n("div", Yl, [...o[3] || (o[3] = [
|
|
1408
1408
|
e("div", { class: "relative bg-gray-200 rounded-full w-12 h-6 p-1 flex items-center" }, [
|
|
1409
1409
|
e("div", { class: "rounded-full bg-gray-300 dark:bg-gray-400 h-4 w-4" })
|
|
1410
1410
|
], -1),
|
|
1411
1411
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-16 ml-2" }, null, -1)
|
|
1412
|
-
])])) : (l(),
|
|
1412
|
+
])])) : (l(), x(c(vt), {
|
|
1413
1413
|
key: 0,
|
|
1414
1414
|
as: "div",
|
|
1415
1415
|
class: "flex items-center relative"
|
|
@@ -1460,7 +1460,7 @@ const jl = { class: "flex justify-between" }, Dl = {
|
|
|
1460
1460
|
}), Rl = {
|
|
1461
1461
|
key: 0,
|
|
1462
1462
|
class: "flex flex-col"
|
|
1463
|
-
},
|
|
1463
|
+
}, Ul = { class: "flex" }, Hl = { class: "flex-shrink-0" }, El = { class: "ml-3" }, Zl = { class: "mt-4" }, Jl = { class: "-my-1.5 -mx-2 gap-x-2 flex" }, Wl = ["onClick"], Gl = {
|
|
1464
1464
|
key: 1,
|
|
1465
1465
|
class: "flex flex-col animate-pulse"
|
|
1466
1466
|
}, Ql = /* @__PURE__ */ j({
|
|
@@ -1487,30 +1487,30 @@ const jl = { class: "flex justify-between" }, Dl = {
|
|
|
1487
1487
|
"bg-green-50 border-green-600": s.type === "success"
|
|
1488
1488
|
}, "p-4 border-l-4 rounded"])
|
|
1489
1489
|
}, [
|
|
1490
|
-
e("div",
|
|
1491
|
-
e("div",
|
|
1492
|
-
s.type === "info" ? (l(),
|
|
1490
|
+
e("div", Ul, [
|
|
1491
|
+
e("div", Hl, [
|
|
1492
|
+
s.type === "info" ? (l(), x(c(nt), {
|
|
1493
1493
|
key: 0,
|
|
1494
1494
|
class: "h-8 w-8 text-lime-400",
|
|
1495
1495
|
"aria-hidden": "true"
|
|
1496
1496
|
})) : w("", !0),
|
|
1497
|
-
s.type === "danger" ? (l(),
|
|
1497
|
+
s.type === "danger" ? (l(), x(c(be), {
|
|
1498
1498
|
key: 1,
|
|
1499
1499
|
class: "h-8 w-8 text-red-600",
|
|
1500
1500
|
"aria-hidden": "true"
|
|
1501
1501
|
})) : w("", !0),
|
|
1502
|
-
s.type === "warning" ? (l(),
|
|
1502
|
+
s.type === "warning" ? (l(), x(c(W), {
|
|
1503
1503
|
key: 2,
|
|
1504
1504
|
class: "h-8 w-8 text-yellow-400",
|
|
1505
1505
|
"aria-hidden": "true"
|
|
1506
1506
|
})) : w("", !0),
|
|
1507
|
-
s.type === "success" ? (l(),
|
|
1507
|
+
s.type === "success" ? (l(), x(c(ot), {
|
|
1508
1508
|
key: 3,
|
|
1509
1509
|
class: "h-8 w-8 text-green-600",
|
|
1510
1510
|
"aria-hidden": "true"
|
|
1511
1511
|
})) : w("", !0)
|
|
1512
1512
|
]),
|
|
1513
|
-
e("div",
|
|
1513
|
+
e("div", El, [
|
|
1514
1514
|
e("h3", {
|
|
1515
1515
|
class: v([{
|
|
1516
1516
|
"text-red-800": s.type === "danger",
|
|
@@ -1525,11 +1525,11 @@ const jl = { class: "flex justify-between" }, Dl = {
|
|
|
1525
1525
|
"text-green-700": s.type === "success"
|
|
1526
1526
|
}, "mt-2 text-sm"])
|
|
1527
1527
|
}, [
|
|
1528
|
-
|
|
1528
|
+
H(s.$slots, "default")
|
|
1529
1529
|
], 2),
|
|
1530
1530
|
e("div", Zl, [
|
|
1531
1531
|
e("div", Jl, [
|
|
1532
|
-
(l(!0), n(
|
|
1532
|
+
(l(!0), n(C, null, S(s.actions, (t, a) => (l(), n("button", {
|
|
1533
1533
|
onClick: (d) => i(t),
|
|
1534
1534
|
type: "button",
|
|
1535
1535
|
key: a,
|
|
@@ -1578,7 +1578,7 @@ const jl = { class: "flex justify-between" }, Dl = {
|
|
|
1578
1578
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5" }, null, -1)
|
|
1579
1579
|
])])) : (l(), n("nav", Kl, [
|
|
1580
1580
|
e("ol", Xl, [
|
|
1581
|
-
(l(!0), n(
|
|
1581
|
+
(l(!0), n(C, null, S(r.pages, (s, o) => (l(), n("li", { key: o }, [
|
|
1582
1582
|
o == 0 ? (l(), n("div", es, [
|
|
1583
1583
|
e("p", {
|
|
1584
1584
|
onClick: (t) => r.$emit("breadCrumbClicked", s.routeName),
|
|
@@ -1641,7 +1641,7 @@ const jl = { class: "flex justify-between" }, Dl = {
|
|
|
1641
1641
|
])
|
|
1642
1642
|
]),
|
|
1643
1643
|
r.tags && r.tags?.length > 0 ? (l(), n("div", us, [
|
|
1644
|
-
(l(!0), n(
|
|
1644
|
+
(l(!0), n(C, null, S(r.tags, (s) => (l(), x(Z, {
|
|
1645
1645
|
class: "mb-1 mr-1",
|
|
1646
1646
|
key: s.name,
|
|
1647
1647
|
color: s.color,
|
|
@@ -1670,7 +1670,7 @@ const jl = { class: "flex justify-between" }, Dl = {
|
|
|
1670
1670
|
a.active = a.value === t.value;
|
|
1671
1671
|
}), r("filterSelected", t);
|
|
1672
1672
|
}, o = O(i.items);
|
|
1673
|
-
return (t, a) => (l(),
|
|
1673
|
+
return (t, a) => (l(), x(we, {
|
|
1674
1674
|
class: "text-nowrap",
|
|
1675
1675
|
loading: t.loading,
|
|
1676
1676
|
onOptionSelected: a[0] || (a[0] = (d) => s(d)),
|
|
@@ -1698,12 +1698,12 @@ const jl = { class: "flex justify-between" }, Dl = {
|
|
|
1698
1698
|
const r = p, i = u, s = (o) => {
|
|
1699
1699
|
i("modalAction", { modal: r.modalName, action: o });
|
|
1700
1700
|
};
|
|
1701
|
-
return (o, t) => (l(),
|
|
1701
|
+
return (o, t) => (l(), x(c(ze), {
|
|
1702
1702
|
as: "template",
|
|
1703
1703
|
show: o.open
|
|
1704
1704
|
}, {
|
|
1705
1705
|
default: h(() => [
|
|
1706
|
-
g(c(
|
|
1706
|
+
g(c(Ae), {
|
|
1707
1707
|
as: "div",
|
|
1708
1708
|
class: "relative z-50",
|
|
1709
1709
|
onClose: t[1] || (t[1] = (a) => s("close"))
|
|
@@ -1735,7 +1735,7 @@ const jl = { class: "flex justify-between" }, Dl = {
|
|
|
1735
1735
|
"leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
|
|
1736
1736
|
}, {
|
|
1737
1737
|
default: h(() => [
|
|
1738
|
-
g(c(
|
|
1738
|
+
g(c(Fe), {
|
|
1739
1739
|
class: v([{
|
|
1740
1740
|
"sm:my-8 w-full sm:w-9/12 md:w-2/3 lg:w-1/2": o.size === "big",
|
|
1741
1741
|
"w-full sm:my-8 sm:w-full sm:max-w-lg sm:p-6": o.size === "medium"
|
|
@@ -1749,7 +1749,7 @@ const jl = { class: "flex justify-between" }, Dl = {
|
|
|
1749
1749
|
onClick: t[0] || (t[0] = (a) => s("close"))
|
|
1750
1750
|
}, [
|
|
1751
1751
|
t[3] || (t[3] = e("span", { class: "sr-only" }, "X", -1)),
|
|
1752
|
-
g(
|
|
1752
|
+
g(F, {
|
|
1753
1753
|
icon: c(K),
|
|
1754
1754
|
"aria-hidden": "true",
|
|
1755
1755
|
loading: o.loading
|
|
@@ -1769,25 +1769,25 @@ const jl = { class: "flex justify-between" }, Dl = {
|
|
|
1769
1769
|
class: "h-6 w-6 text-red-600",
|
|
1770
1770
|
"aria-hidden": "true"
|
|
1771
1771
|
}, null, 512), [
|
|
1772
|
-
[
|
|
1772
|
+
[z, o.type === "danger"]
|
|
1773
1773
|
]),
|
|
1774
1774
|
M(g(c(Oe), {
|
|
1775
1775
|
class: "h-6 w-6 text-green-600",
|
|
1776
1776
|
"aria-hidden": "true"
|
|
1777
1777
|
}, null, 512), [
|
|
1778
|
-
[
|
|
1778
|
+
[z, o.type === "success"]
|
|
1779
1779
|
]),
|
|
1780
1780
|
M(g(c(W), {
|
|
1781
1781
|
class: "h-6 w-6 text-yellow-600",
|
|
1782
1782
|
"aria-hidden": "true"
|
|
1783
1783
|
}, null, 512), [
|
|
1784
|
-
[
|
|
1784
|
+
[z, o.type === "warning"]
|
|
1785
1785
|
]),
|
|
1786
1786
|
M(g(c(Jt), {
|
|
1787
1787
|
class: "h-6 w-6 text-black",
|
|
1788
1788
|
"aria-hidden": "true"
|
|
1789
1789
|
}, null, 512), [
|
|
1790
|
-
[
|
|
1790
|
+
[z, o.type === "default"]
|
|
1791
1791
|
])
|
|
1792
1792
|
], 2),
|
|
1793
1793
|
e("div", ys, [
|
|
@@ -1801,14 +1801,14 @@ const jl = { class: "flex justify-between" }, Dl = {
|
|
|
1801
1801
|
_: 1
|
|
1802
1802
|
}),
|
|
1803
1803
|
e("div", vs, [
|
|
1804
|
-
|
|
1804
|
+
H(o.$slots, "default", { class: "break-words" })
|
|
1805
1805
|
]),
|
|
1806
1806
|
o.actions ? (l(), n("div", bs, [
|
|
1807
|
-
(l(!0), n(
|
|
1807
|
+
(l(!0), n(C, null, S(o.actions, (a, d) => (l(), n("button", {
|
|
1808
1808
|
key: d,
|
|
1809
1809
|
type: "button",
|
|
1810
1810
|
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",
|
|
1811
|
-
onClick: (
|
|
1811
|
+
onClick: (f) => s(a.value)
|
|
1812
1812
|
}, m(a.name), 9, ws))), 128))
|
|
1813
1813
|
])) : w("", !0)
|
|
1814
1814
|
])
|
|
@@ -1865,25 +1865,25 @@ const jl = { class: "flex justify-between" }, Dl = {
|
|
|
1865
1865
|
"aria-hidden": "true",
|
|
1866
1866
|
class: "h-6 w-6 text-green-600"
|
|
1867
1867
|
}, null, 512), [
|
|
1868
|
-
[
|
|
1868
|
+
[z, s.type === "success"]
|
|
1869
1869
|
]),
|
|
1870
1870
|
M(g(c(be), {
|
|
1871
1871
|
"aria-hidden": "true",
|
|
1872
1872
|
class: "h-6 w-6 text-red-600"
|
|
1873
1873
|
}, null, 512), [
|
|
1874
|
-
[
|
|
1874
|
+
[z, s.type === "danger"]
|
|
1875
1875
|
]),
|
|
1876
1876
|
M(g(c(W), {
|
|
1877
1877
|
"aria-hidden": "true",
|
|
1878
1878
|
class: "h-6 w-6 text-yellow-400"
|
|
1879
1879
|
}, null, 512), [
|
|
1880
|
-
[
|
|
1880
|
+
[z, s.type === "warning"]
|
|
1881
1881
|
]),
|
|
1882
1882
|
M(g(c(nt), {
|
|
1883
1883
|
"aria-hidden": "true",
|
|
1884
1884
|
class: "h-6 w-6 text-black"
|
|
1885
1885
|
}, null, 512), [
|
|
1886
|
-
[
|
|
1886
|
+
[z, s.type === "info"]
|
|
1887
1887
|
])
|
|
1888
1888
|
]),
|
|
1889
1889
|
e("div", Ss, [
|
|
@@ -1916,7 +1916,7 @@ const jl = { class: "flex justify-between" }, Dl = {
|
|
|
1916
1916
|
key: 0,
|
|
1917
1917
|
role: "list",
|
|
1918
1918
|
class: "divide-y divide-gray-100"
|
|
1919
|
-
}, zs = { class: "min-w-0" },
|
|
1919
|
+
}, zs = { class: "min-w-0" }, As = { class: "flex items-start gap-x-3" }, Fs = { class: "text-sm font-semibold leading-6 text-gray-900" }, Ls = { class: "mt-1 flex items-center gap-x-2 text-xs leading-5 text-gray-500" }, Os = { class: "truncate" }, Ns = { class: "flex flex-none items-center gap-x-4" }, Ps = ["href"], Is = { class: "sr-only" }, Vs = {
|
|
1920
1920
|
key: 1,
|
|
1921
1921
|
class: "divide-y divide-gray-100 animate-pulse"
|
|
1922
1922
|
}, Ys = /* @__PURE__ */ j({
|
|
@@ -1927,20 +1927,20 @@ const jl = { class: "flex justify-between" }, Dl = {
|
|
|
1927
1927
|
},
|
|
1928
1928
|
setup(p) {
|
|
1929
1929
|
return (u, r) => u.loading ? (l(), n("ul", Vs, [
|
|
1930
|
-
(l(!0), n(
|
|
1930
|
+
(l(!0), n(C, null, S(u.tasks, (i) => (l(), n("li", {
|
|
1931
1931
|
key: i.id,
|
|
1932
1932
|
class: "flex items-center justify-between gap-x-6 py-5"
|
|
1933
1933
|
}, [...r[0] || (r[0] = [
|
|
1934
1934
|
se('<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)
|
|
1935
1935
|
])]))), 128))
|
|
1936
1936
|
])) : (l(), n("ul", Ts, [
|
|
1937
|
-
(l(!0), n(
|
|
1937
|
+
(l(!0), n(C, null, S(u.tasks, (i) => (l(), n("li", {
|
|
1938
1938
|
key: i.id,
|
|
1939
1939
|
class: "flex items-center justify-between gap-x-6 py-5"
|
|
1940
1940
|
}, [
|
|
1941
1941
|
e("div", zs, [
|
|
1942
|
-
e("div",
|
|
1943
|
-
e("p",
|
|
1942
|
+
e("div", As, [
|
|
1943
|
+
e("p", Fs, m(i.name), 1),
|
|
1944
1944
|
e("p", {
|
|
1945
1945
|
class: v([
|
|
1946
1946
|
{
|
|
@@ -1973,7 +1973,7 @@ function qs(p) {
|
|
|
1973
1973
|
return p && p.__esModule && Object.prototype.hasOwnProperty.call(p, "default") ? p.default : p;
|
|
1974
1974
|
}
|
|
1975
1975
|
var ce = { exports: {} }, Rs = ce.exports, Ve;
|
|
1976
|
-
function
|
|
1976
|
+
function Us() {
|
|
1977
1977
|
return Ve || (Ve = 1, (function(p, u) {
|
|
1978
1978
|
(function(r, i) {
|
|
1979
1979
|
p.exports = i(Y);
|
|
@@ -1988,20 +1988,20 @@ function Hs() {
|
|
|
1988
1988
|
}));
|
|
1989
1989
|
})(ce)), ce.exports;
|
|
1990
1990
|
}
|
|
1991
|
-
|
|
1992
|
-
var me = { exports: {} },
|
|
1993
|
-
function
|
|
1991
|
+
Us();
|
|
1992
|
+
var me = { exports: {} }, Hs = me.exports, Ye;
|
|
1993
|
+
function Es() {
|
|
1994
1994
|
return Ye || (Ye = 1, (function(p, u) {
|
|
1995
1995
|
(function(r, i) {
|
|
1996
1996
|
p.exports = i(Y);
|
|
1997
|
-
})(
|
|
1997
|
+
})(Hs, (function(r) {
|
|
1998
1998
|
function i(d) {
|
|
1999
1999
|
return d && typeof d == "object" && "default" in d ? d : { default: d };
|
|
2000
2000
|
}
|
|
2001
2001
|
var s = i(r), o = { s: "ein paar Sekunden", m: ["eine Minute", "einer Minute"], mm: "%d Minuten", h: ["eine Stunde", "einer Stunde"], hh: "%d Stunden", d: ["ein Tag", "einem Tag"], dd: ["%d Tage", "%d Tagen"], M: ["ein Monat", "einem Monat"], MM: ["%d Monate", "%d Monaten"], y: ["ein Jahr", "einem Jahr"], yy: ["%d Jahre", "%d Jahren"] };
|
|
2002
|
-
function t(d,
|
|
2003
|
-
var
|
|
2004
|
-
return Array.isArray(
|
|
2002
|
+
function t(d, f, y) {
|
|
2003
|
+
var $ = o[y];
|
|
2004
|
+
return Array.isArray($) && ($ = $[f ? 0 : 1]), $.replace("%d", d);
|
|
2005
2005
|
}
|
|
2006
2006
|
var a = { name: "de", weekdays: "Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"), weekdaysShort: "So._Mo._Di._Mi._Do._Fr._Sa.".split("_"), weekdaysMin: "So_Mo_Di_Mi_Do_Fr_Sa".split("_"), months: "Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"), monthsShort: "Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"), ordinal: function(d) {
|
|
2007
2007
|
return d + ".";
|
|
@@ -2010,7 +2010,7 @@ function Us() {
|
|
|
2010
2010
|
}));
|
|
2011
2011
|
})(me)), me.exports;
|
|
2012
2012
|
}
|
|
2013
|
-
|
|
2013
|
+
Es();
|
|
2014
2014
|
var ge = { exports: {} }, Zs = ge.exports, qe;
|
|
2015
2015
|
function Js() {
|
|
2016
2016
|
return qe || (qe = 1, (function(p, u) {
|
|
@@ -2186,7 +2186,7 @@ function go(p, u, r, i, s, o) {
|
|
|
2186
2186
|
])
|
|
2187
2187
|
], -1)),
|
|
2188
2188
|
e("tbody", mo, [
|
|
2189
|
-
(l(), n(
|
|
2189
|
+
(l(), n(C, null, S(10, (t) => e("tr", { key: t }, [...u[0] || (u[0] = [
|
|
2190
2190
|
e("td", { class: "whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6" }, [
|
|
2191
2191
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })
|
|
2192
2192
|
], -1),
|
|
@@ -2221,9 +2221,9 @@ function go(p, u, r, i, s, o) {
|
|
|
2221
2221
|
]);
|
|
2222
2222
|
}
|
|
2223
2223
|
const ut = /* @__PURE__ */ oe(oo, [["render", go]]);
|
|
2224
|
-
var fe = { exports: {} }, po = fe.exports,
|
|
2224
|
+
var fe = { exports: {} }, po = fe.exports, Ue;
|
|
2225
2225
|
function fo() {
|
|
2226
|
-
return
|
|
2226
|
+
return Ue || (Ue = 1, (function(p, u) {
|
|
2227
2227
|
(function(r, i) {
|
|
2228
2228
|
p.exports = i();
|
|
2229
2229
|
})(po, (function() {
|
|
@@ -2308,11 +2308,11 @@ function So(p, u, r, i, s, o) {
|
|
|
2308
2308
|
const ue = /* @__PURE__ */ oe($o, [["render", So]]), Bo = {
|
|
2309
2309
|
key: 0,
|
|
2310
2310
|
class: "px-4 sm:px-6 lg:px-8"
|
|
2311
|
-
}, Mo = { class: "flow-root" }, jo = { class: "overflow-x-auto sm:-mx-6 lg:-mx-8 shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg" }, Do = { class: "inline-block min-w-full align-middle" }, To = { class: "min-w-full text-sm" }, zo = { class: "bg-white" },
|
|
2311
|
+
}, Mo = { class: "flow-root" }, jo = { class: "overflow-x-auto sm:-mx-6 lg:-mx-8 shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg" }, Do = { class: "inline-block min-w-full align-middle" }, To = { class: "min-w-full text-sm" }, zo = { class: "bg-white" }, Ao = {
|
|
2312
2312
|
colspan: "6",
|
|
2313
2313
|
scope: "colgroup",
|
|
2314
2314
|
class: "bg-gray-50 py-2 pl-4 pr-3 text-left text-sm font-semibold sm:pl-3"
|
|
2315
|
-
},
|
|
2315
|
+
}, Fo = {
|
|
2316
2316
|
colspan: "20",
|
|
2317
2317
|
scope: "colgroup",
|
|
2318
2318
|
class: "bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold"
|
|
@@ -2332,11 +2332,11 @@ const ue = /* @__PURE__ */ oe($o, [["render", So]]), Bo = {
|
|
|
2332
2332
|
}, qo = {
|
|
2333
2333
|
key: 0,
|
|
2334
2334
|
class: "absolute top-0 left-12 flex h-12 items-center space-x-3 sm:left-48 bg-white shadow rounded px-4 py-1 z-10"
|
|
2335
|
-
}, Ro = ["onClick"],
|
|
2335
|
+
}, Ro = ["onClick"], Uo = {
|
|
2336
2336
|
colspan: "2",
|
|
2337
2337
|
scope: "colgroup",
|
|
2338
2338
|
class: "relative bg-gray-100 py-3.5 pl-4 pr-3 text-left font-semibold"
|
|
2339
|
-
},
|
|
2339
|
+
}, Ho = ["checked", "indeterminate"], Eo = { class: "pl-6" }, Zo = {
|
|
2340
2340
|
colspan: "2",
|
|
2341
2341
|
scope: "colgroup",
|
|
2342
2342
|
class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold"
|
|
@@ -2371,7 +2371,7 @@ const ue = /* @__PURE__ */ oe($o, [["render", So]]), Bo = {
|
|
|
2371
2371
|
emits: ["dateChanged", "changeCategoryBulkPrices", "changeCategorySelectionPrice", "changeCategoryUpgradePrice", "changeRoomPrice", "tableAction"],
|
|
2372
2372
|
setup(p, { emit: u }) {
|
|
2373
2373
|
const r = p, i = u, s = O(/* @__PURE__ */ new Date()), o = O(r.today), t = O([]);
|
|
2374
|
-
|
|
2374
|
+
E(() => r.today, (B) => {
|
|
2375
2375
|
o.value = B;
|
|
2376
2376
|
});
|
|
2377
2377
|
const a = V(() => {
|
|
@@ -2379,28 +2379,28 @@ const ue = /* @__PURE__ */ oe($o, [["render", So]]), Bo = {
|
|
|
2379
2379
|
for (let R = 0; R < 14; R++)
|
|
2380
2380
|
B.push(Y(o.value).add(R, "day"));
|
|
2381
2381
|
return B;
|
|
2382
|
-
}), d = V(() => t.value.length > 0 && t.value.length < r.rooms.length),
|
|
2382
|
+
}), d = V(() => t.value.length > 0 && t.value.length < r.rooms.length), f = (B) => {
|
|
2383
2383
|
Y(B).isBefore(s.value) || (o.value = B, i("dateChanged", o.value));
|
|
2384
|
-
},
|
|
2384
|
+
}, y = (B) => {
|
|
2385
2385
|
let R = r.category.selectionPrices.find((N) => Y(N.date).isSame(B.date));
|
|
2386
2386
|
return R ? R.price : B.price;
|
|
2387
|
-
},
|
|
2387
|
+
}, $ = (B) => {
|
|
2388
2388
|
t.value = B.target.checked ? r.rooms.map((R) => R.id) : [];
|
|
2389
|
-
},
|
|
2390
|
-
return (B, R) => B.loading ? (l(),
|
|
2389
|
+
}, k = () => i("changeCategoryBulkPrices"), D = (B) => i("changeCategorySelectionPrice", B), b = (B) => i("changeCategoryUpgradePrice", B), L = (B) => i("tableAction", B), A = (B, R, N) => i("changeRoomPrice", { price: B, roomId: R, roomName: N });
|
|
2390
|
+
return (B, R) => B.loading ? (l(), x(ut, { key: 1 })) : (l(), n("div", Bo, [
|
|
2391
2391
|
e("div", Mo, [
|
|
2392
2392
|
e("div", jo, [
|
|
2393
2393
|
e("div", Do, [
|
|
2394
2394
|
e("table", To, [
|
|
2395
2395
|
e("tbody", zo, [
|
|
2396
2396
|
e("tr", null, [
|
|
2397
|
-
e("th",
|
|
2397
|
+
e("th", Ao, [
|
|
2398
2398
|
g(so, {
|
|
2399
2399
|
selectedDate: o.value,
|
|
2400
|
-
onDateSelected: R[0] || (R[0] = (N) =>
|
|
2400
|
+
onDateSelected: R[0] || (R[0] = (N) => f(N))
|
|
2401
2401
|
}, null, 8, ["selectedDate"])
|
|
2402
2402
|
]),
|
|
2403
|
-
(l(!0), n(
|
|
2403
|
+
(l(!0), n(C, null, S(a.value, (N, _) => (l(), n("th", {
|
|
2404
2404
|
scope: "col",
|
|
2405
2405
|
key: _,
|
|
2406
2406
|
class: "text-sm font-semibold p-0"
|
|
@@ -2412,13 +2412,13 @@ const ue = /* @__PURE__ */ oe($o, [["render", So]]), Bo = {
|
|
|
2412
2412
|
]))), 128))
|
|
2413
2413
|
]),
|
|
2414
2414
|
e("tr", null, [
|
|
2415
|
-
e("th",
|
|
2415
|
+
e("th", Fo, [
|
|
2416
2416
|
e("span", null, m(B.literals.category) + " " + m(B.category.name), 1),
|
|
2417
|
-
g(
|
|
2417
|
+
g(U, {
|
|
2418
2418
|
loading: B.loading,
|
|
2419
2419
|
class: "ml-4",
|
|
2420
2420
|
size: "small",
|
|
2421
|
-
onClick:
|
|
2421
|
+
onClick: k
|
|
2422
2422
|
}, {
|
|
2423
2423
|
default: h(() => [
|
|
2424
2424
|
T(m(B.literals.changeInBulk), 1)
|
|
@@ -2429,7 +2429,7 @@ const ue = /* @__PURE__ */ oe($o, [["render", So]]), Bo = {
|
|
|
2429
2429
|
]),
|
|
2430
2430
|
B.type === "discounts" ? (l(), n("tr", Lo, [
|
|
2431
2431
|
e("td", Oo, m(B.literals.pricesDiscount), 1),
|
|
2432
|
-
(l(!0), n(
|
|
2432
|
+
(l(!0), n(C, null, S(B.category.selectionPrices, (N, _) => (l(), n("td", {
|
|
2433
2433
|
key: _,
|
|
2434
2434
|
class: "p-0"
|
|
2435
2435
|
}, [
|
|
@@ -2444,7 +2444,7 @@ const ue = /* @__PURE__ */ oe($o, [["render", So]]), Bo = {
|
|
|
2444
2444
|
])) : w("", !0),
|
|
2445
2445
|
B.type === "prices" ? (l(), n("tr", No, [
|
|
2446
2446
|
e("td", Po, m(B.literals.pricesSelection), 1),
|
|
2447
|
-
(l(!0), n(
|
|
2447
|
+
(l(!0), n(C, null, S(B.category.selectionPrices, (N, _) => (l(), n("td", {
|
|
2448
2448
|
key: _,
|
|
2449
2449
|
class: "p-0"
|
|
2450
2450
|
}, [
|
|
@@ -2459,12 +2459,12 @@ const ue = /* @__PURE__ */ oe($o, [["render", So]]), Bo = {
|
|
|
2459
2459
|
])) : w("", !0),
|
|
2460
2460
|
B.type === "prices" ? (l(), n("tr", Io, [
|
|
2461
2461
|
e("td", Vo, m(B.literals.pricesUpgrade), 1),
|
|
2462
|
-
(l(!0), n(
|
|
2462
|
+
(l(!0), n(C, null, S(B.category.upgradePrices, (N, _) => (l(), n("td", {
|
|
2463
2463
|
key: _,
|
|
2464
2464
|
class: "p-0"
|
|
2465
2465
|
}, [
|
|
2466
2466
|
g(ue, {
|
|
2467
|
-
onClick: (P) =>
|
|
2467
|
+
onClick: (P) => b(N),
|
|
2468
2468
|
class: "border-l border-gray-200 px-6 py-3 text-black hover:text-lime-400 font-bold cursor-pointer bg-gray-100",
|
|
2469
2469
|
price: N,
|
|
2470
2470
|
currency: B.currency.symbol,
|
|
@@ -2475,8 +2475,8 @@ const ue = /* @__PURE__ */ oe($o, [["render", So]]), Bo = {
|
|
|
2475
2475
|
e("tr", null, [
|
|
2476
2476
|
e("th", Yo, [
|
|
2477
2477
|
t.value?.length > 0 && B.actions?.length > 0 ? (l(), n("div", qo, [
|
|
2478
|
-
(l(!0), n(
|
|
2479
|
-
onClick: (P) =>
|
|
2478
|
+
(l(!0), n(C, null, S(B.actions, (N, _) => (l(), n("button", {
|
|
2479
|
+
onClick: (P) => L({ action: N.id, items: t.value }),
|
|
2480
2480
|
key: _,
|
|
2481
2481
|
type: "button",
|
|
2482
2482
|
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"
|
|
@@ -2486,15 +2486,15 @@ const ue = /* @__PURE__ */ oe($o, [["render", So]]), Bo = {
|
|
|
2486
2486
|
])
|
|
2487
2487
|
]),
|
|
2488
2488
|
e("tr", null, [
|
|
2489
|
-
e("th",
|
|
2489
|
+
e("th", Uo, [
|
|
2490
2490
|
e("input", {
|
|
2491
2491
|
type: "checkbox",
|
|
2492
2492
|
class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-lime-400 focus:ring-lime-400",
|
|
2493
2493
|
checked: d.value || t.value.length === B.rooms.length,
|
|
2494
2494
|
indeterminate: d.value,
|
|
2495
|
-
onChange:
|
|
2496
|
-
}, null, 40,
|
|
2497
|
-
e("span",
|
|
2495
|
+
onChange: $
|
|
2496
|
+
}, null, 40, Ho),
|
|
2497
|
+
e("span", Eo, m(B.literals.room), 1)
|
|
2498
2498
|
]),
|
|
2499
2499
|
e("th", Zo, m(B.literals.building), 1),
|
|
2500
2500
|
e("th", Jo, m(B.literals.floor), 1),
|
|
@@ -2504,7 +2504,7 @@ const ue = /* @__PURE__ */ oe($o, [["render", So]]), Bo = {
|
|
|
2504
2504
|
class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold"
|
|
2505
2505
|
}, null, -1))
|
|
2506
2506
|
]),
|
|
2507
|
-
(l(!0), n(
|
|
2507
|
+
(l(!0), n(C, null, S(B.rooms, (N) => (l(), n("tr", {
|
|
2508
2508
|
key: N.name,
|
|
2509
2509
|
class: v([{ "even:bg-gray-100": B.type === "prices", "odd:bg-gray-100": B.type === "discounts" }])
|
|
2510
2510
|
}, [
|
|
@@ -2522,7 +2522,7 @@ const ue = /* @__PURE__ */ oe($o, [["render", So]]), Bo = {
|
|
|
2522
2522
|
]),
|
|
2523
2523
|
e("td", Xo, m(N.building), 1),
|
|
2524
2524
|
e("td", er, m(N.floor), 1),
|
|
2525
|
-
(l(!0), n(
|
|
2525
|
+
(l(!0), n(C, null, S(N.selectionPrices, (_, P) => (l(), n("td", {
|
|
2526
2526
|
class: "p-0",
|
|
2527
2527
|
key: P
|
|
2528
2528
|
}, [
|
|
@@ -2531,7 +2531,7 @@ const ue = /* @__PURE__ */ oe($o, [["render", So]]), Bo = {
|
|
|
2531
2531
|
class: "border-l border-gray-200 px-6 py-3 text-black hover:text-lime-400 cursor-pointer",
|
|
2532
2532
|
price: _,
|
|
2533
2533
|
currency: B.currency.symbol,
|
|
2534
|
-
basePrice:
|
|
2534
|
+
basePrice: y(_)
|
|
2535
2535
|
}, null, 8, ["onClick", "price", "currency", "basePrice"])
|
|
2536
2536
|
]))), 128))
|
|
2537
2537
|
], 2))), 128))
|
|
@@ -2569,8 +2569,8 @@ const ue = /* @__PURE__ */ oe($o, [["render", So]]), Bo = {
|
|
|
2569
2569
|
setup(p, { emit: u }) {
|
|
2570
2570
|
const r = u, i = O((/* @__PURE__ */ new Date()).toISOString().slice(0, (/* @__PURE__ */ new Date()).toISOString().lastIndexOf(":"))), s = p;
|
|
2571
2571
|
let o = ie(s.dates || { from: "", to: i });
|
|
2572
|
-
|
|
2573
|
-
|
|
2572
|
+
E(() => s.dates, (b) => {
|
|
2573
|
+
b && (o = b);
|
|
2574
2574
|
});
|
|
2575
2575
|
let a = {
|
|
2576
2576
|
chart: {
|
|
@@ -2583,7 +2583,7 @@ const ue = /* @__PURE__ */ oe($o, [["render", So]]), Bo = {
|
|
|
2583
2583
|
},
|
|
2584
2584
|
colors: function() {
|
|
2585
2585
|
return s.isNps ? [
|
|
2586
|
-
function({ value:
|
|
2586
|
+
function({ value: b, seriesIndex: L, dataPointIndex: A, w: B }) {
|
|
2587
2587
|
if (A <= 5) return "#F87171";
|
|
2588
2588
|
if (A > 5 && A <= 7) return "#eab308";
|
|
2589
2589
|
if (A >= 8) return "#84cc16";
|
|
@@ -2628,30 +2628,30 @@ const ue = /* @__PURE__ */ oe($o, [["render", So]]), Bo = {
|
|
|
2628
2628
|
}
|
|
2629
2629
|
]
|
|
2630
2630
|
}), s.type === "area" && (a.tooltip = { intersect: !1, shared: !0 });
|
|
2631
|
-
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 } } }),
|
|
2631
|
+
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 } } }), f = () => {
|
|
2632
2632
|
o.from !== "" && o.to !== "" && Y(o.from).isBefore(Y(o.to)) && r("selectedRange", { range: o, chartId: s.id });
|
|
2633
|
-
},
|
|
2634
|
-
r("dataPointSelection", { id: s.id, chartContext:
|
|
2633
|
+
}, y = V(() => s.series), $ = V(() => d()), k = () => r("chartUpdated"), D = (b, L, A) => {
|
|
2634
|
+
r("dataPointSelection", { id: s.id, chartContext: L, config: A, event: b });
|
|
2635
2635
|
};
|
|
2636
|
-
return (
|
|
2636
|
+
return (b, L) => (l(), n(C, null, [
|
|
2637
2637
|
M(e("div", {
|
|
2638
|
-
class: v(["h-[" +
|
|
2638
|
+
class: v(["h-[" + b.height + "px]", "card chart apex-chart p-4 bg-white shadow rounded-lg overflow-hidden flex grow"])
|
|
2639
2639
|
}, [
|
|
2640
2640
|
e("div", lr, [
|
|
2641
|
-
e("div", sr, m(
|
|
2642
|
-
|
|
2641
|
+
e("div", sr, m(b.title), 1),
|
|
2642
|
+
b.isNps && b.npsLiterals ? (l(), n("div", or, [
|
|
2643
2643
|
g(Z, {
|
|
2644
2644
|
size: "small",
|
|
2645
2645
|
color: "red",
|
|
2646
2646
|
loading: !1
|
|
2647
2647
|
}, {
|
|
2648
2648
|
default: h(() => [
|
|
2649
|
-
g(
|
|
2650
|
-
icon: c(
|
|
2649
|
+
g(F, {
|
|
2650
|
+
icon: c(Et),
|
|
2651
2651
|
loading: !1,
|
|
2652
2652
|
color: "red"
|
|
2653
2653
|
}, null, 8, ["icon"]),
|
|
2654
|
-
e("span", rr, m(
|
|
2654
|
+
e("span", rr, m(b.npsLiterals.unhappy), 1)
|
|
2655
2655
|
]),
|
|
2656
2656
|
_: 1
|
|
2657
2657
|
}),
|
|
@@ -2661,12 +2661,12 @@ const ue = /* @__PURE__ */ oe($o, [["render", So]]), Bo = {
|
|
|
2661
2661
|
loading: !1
|
|
2662
2662
|
}, {
|
|
2663
2663
|
default: h(() => [
|
|
2664
|
-
g(
|
|
2665
|
-
icon: c(
|
|
2664
|
+
g(F, {
|
|
2665
|
+
icon: c(Ht),
|
|
2666
2666
|
loading: !1,
|
|
2667
2667
|
color: "yellow"
|
|
2668
2668
|
}, null, 8, ["icon"]),
|
|
2669
|
-
e("span", ar, m(
|
|
2669
|
+
e("span", ar, m(b.npsLiterals.neutral), 1)
|
|
2670
2670
|
]),
|
|
2671
2671
|
_: 1
|
|
2672
2672
|
}),
|
|
@@ -2676,12 +2676,12 @@ const ue = /* @__PURE__ */ oe($o, [["render", So]]), Bo = {
|
|
|
2676
2676
|
loading: !1
|
|
2677
2677
|
}, {
|
|
2678
2678
|
default: h(() => [
|
|
2679
|
-
g(
|
|
2679
|
+
g(F, {
|
|
2680
2680
|
icon: c(Zt),
|
|
2681
2681
|
loading: !1,
|
|
2682
2682
|
color: "green"
|
|
2683
2683
|
}, null, 8, ["icon"]),
|
|
2684
|
-
e("span", nr, m(
|
|
2684
|
+
e("span", nr, m(b.npsLiterals.happy), 1)
|
|
2685
2685
|
]),
|
|
2686
2686
|
_: 1
|
|
2687
2687
|
})
|
|
@@ -2690,9 +2690,9 @@ const ue = /* @__PURE__ */ oe($o, [["render", So]]), Bo = {
|
|
|
2690
2690
|
e("div", dr, [
|
|
2691
2691
|
M(e("input", {
|
|
2692
2692
|
type: "datetime-local",
|
|
2693
|
-
"onUpdate:modelValue":
|
|
2693
|
+
"onUpdate:modelValue": L[0] || (L[0] = (A) => c(o).from = A),
|
|
2694
2694
|
max: i.value.toString(),
|
|
2695
|
-
onChange:
|
|
2695
|
+
onChange: f,
|
|
2696
2696
|
name: "from",
|
|
2697
2697
|
id: "from",
|
|
2698
2698
|
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"
|
|
@@ -2703,9 +2703,9 @@ const ue = /* @__PURE__ */ oe($o, [["render", So]]), Bo = {
|
|
|
2703
2703
|
e("div", cr, [
|
|
2704
2704
|
M(e("input", {
|
|
2705
2705
|
type: "datetime-local",
|
|
2706
|
-
"onUpdate:modelValue":
|
|
2706
|
+
"onUpdate:modelValue": L[1] || (L[1] = (A) => c(o).to = A),
|
|
2707
2707
|
max: i.value.toString(),
|
|
2708
|
-
onChange:
|
|
2708
|
+
onChange: f,
|
|
2709
2709
|
name: "to",
|
|
2710
2710
|
id: "to",
|
|
2711
2711
|
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"
|
|
@@ -2713,48 +2713,48 @@ const ue = /* @__PURE__ */ oe($o, [["render", So]]), Bo = {
|
|
|
2713
2713
|
[ae, c(o).to]
|
|
2714
2714
|
])
|
|
2715
2715
|
]),
|
|
2716
|
-
g(
|
|
2716
|
+
g(F, {
|
|
2717
2717
|
class: "ml-4 cursor-pointer",
|
|
2718
2718
|
size: "big",
|
|
2719
|
-
loading:
|
|
2719
|
+
loading: b.loading,
|
|
2720
2720
|
icon: c(lt),
|
|
2721
|
-
onClick:
|
|
2721
|
+
onClick: L[2] || (L[2] = (A) => b.$emit("maximizeChart", b.id))
|
|
2722
2722
|
}, null, 8, ["loading", "icon"])
|
|
2723
2723
|
])
|
|
2724
2724
|
]),
|
|
2725
2725
|
M(e("div", gr, [
|
|
2726
2726
|
g(c(Le), {
|
|
2727
2727
|
class: "chart",
|
|
2728
|
-
type:
|
|
2729
|
-
series:
|
|
2730
|
-
height:
|
|
2731
|
-
options:
|
|
2732
|
-
onUpdated:
|
|
2733
|
-
onMounted:
|
|
2728
|
+
type: b.type,
|
|
2729
|
+
series: y.value,
|
|
2730
|
+
height: b.height,
|
|
2731
|
+
options: $.value,
|
|
2732
|
+
onUpdated: k,
|
|
2733
|
+
onMounted: k,
|
|
2734
2734
|
onDataPointSelection: D
|
|
2735
2735
|
}, null, 8, ["type", "series", "height", "options"])
|
|
2736
2736
|
], 512), [
|
|
2737
|
-
[
|
|
2737
|
+
[z, !b.empty]
|
|
2738
2738
|
]),
|
|
2739
2739
|
M(e("div", {
|
|
2740
|
-
class: v(["h-[" +
|
|
2740
|
+
class: v(["h-[" + b.height + "px]", "w-full flex items-center justify-center flex-col"])
|
|
2741
2741
|
}, [
|
|
2742
|
-
g(
|
|
2742
|
+
g(F, {
|
|
2743
2743
|
icon: c(W),
|
|
2744
2744
|
color: "gray",
|
|
2745
2745
|
loading: !1,
|
|
2746
2746
|
size: "massive"
|
|
2747
2747
|
}, null, 8, ["icon"]),
|
|
2748
|
-
|
|
2748
|
+
L[3] || (L[3] = e("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data for this time frame", -1))
|
|
2749
2749
|
], 2), [
|
|
2750
|
-
[
|
|
2750
|
+
[z, b.empty]
|
|
2751
2751
|
])
|
|
2752
2752
|
], 2), [
|
|
2753
|
-
[
|
|
2753
|
+
[z, !b.loading]
|
|
2754
2754
|
]),
|
|
2755
2755
|
M(e("div", {
|
|
2756
|
-
class: v(["h-[" +
|
|
2757
|
-
}, [...
|
|
2756
|
+
class: v(["h-[" + b.height + "px]", "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80"])
|
|
2757
|
+
}, [...L[4] || (L[4] = [
|
|
2758
2758
|
e("div", {
|
|
2759
2759
|
role: "status",
|
|
2760
2760
|
class: "w-full animate-pulse h-full flex flex-col"
|
|
@@ -2781,7 +2781,7 @@ const ue = /* @__PURE__ */ oe($o, [["render", So]]), Bo = {
|
|
|
2781
2781
|
])
|
|
2782
2782
|
], -1)
|
|
2783
2783
|
])], 2), [
|
|
2784
|
-
[
|
|
2784
|
+
[z, b.loading]
|
|
2785
2785
|
])
|
|
2786
2786
|
], 64));
|
|
2787
2787
|
}
|
|
@@ -2818,10 +2818,10 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
2818
2818
|
})
|
|
2819
2819
|
], -1)),
|
|
2820
2820
|
M(e("h2", { class: "text-xs font-bold text-center uppercase mb-2" }, m(u.title), 513), [
|
|
2821
|
-
[
|
|
2821
|
+
[z, u.title]
|
|
2822
2822
|
]),
|
|
2823
2823
|
M(e("p", { class: "text-xs text-center uppercase md:w-1/4" }, m(u.message), 513), [
|
|
2824
|
-
[
|
|
2824
|
+
[z, u.message]
|
|
2825
2825
|
])
|
|
2826
2826
|
], 2));
|
|
2827
2827
|
}
|
|
@@ -2837,10 +2837,10 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
2837
2837
|
}, $r = { class: "hidden sm:flex-1 sm:flex sm:items-center sm:justify-between" }, Cr = { class: "text-sm text-gray-700" }, Sr = { class: "font-bold mx-1" }, Br = { class: "font-bold mx-1" }, Mr = { class: "font-bold mx-1" }, jr = {
|
|
2838
2838
|
class: "relative z-0 inline-flex rounded-md shadow-sm -space-x-px",
|
|
2839
2839
|
"aria-label": "Pagination"
|
|
2840
|
-
}, Dr = { class: "sr-only" }, Tr = ["onClick"], zr = { class: "sr-only" },
|
|
2840
|
+
}, Dr = { class: "sr-only" }, Tr = ["onClick"], zr = { class: "sr-only" }, Ar = {
|
|
2841
2841
|
key: 1,
|
|
2842
2842
|
class: "py-6 flex flex-row justify-between items-center animate-pulse"
|
|
2843
|
-
},
|
|
2843
|
+
}, Fr = /* @__PURE__ */ j({
|
|
2844
2844
|
__name: "uiPagination",
|
|
2845
2845
|
props: {
|
|
2846
2846
|
current: {},
|
|
@@ -2856,32 +2856,32 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
2856
2856
|
() => Math.min(Number(i.current) + Number(s.value), Number(i.total))
|
|
2857
2857
|
), a = V(() => {
|
|
2858
2858
|
let d = [];
|
|
2859
|
-
for (let
|
|
2860
|
-
d.push(
|
|
2859
|
+
for (let f = Number(o.value); f <= Number(t.value); f++)
|
|
2860
|
+
d.push(f);
|
|
2861
2861
|
return d;
|
|
2862
2862
|
});
|
|
2863
|
-
return (d,
|
|
2863
|
+
return (d, f) => d.loading ? (l(), n("div", Ar, [...f[3] || (f[3] = [
|
|
2864
2864
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5" }, null, -1),
|
|
2865
2865
|
e("div", { class: "h-10 w-32 bg-gray-200 rounded dark:bg-gray-300" }, null, -1)
|
|
2866
2866
|
])])) : (l(), n("div", wr, [
|
|
2867
2867
|
e("div", kr, [
|
|
2868
2868
|
e("a", xr, [
|
|
2869
|
-
|
|
2869
|
+
H(d.$slots, "previous")
|
|
2870
2870
|
]),
|
|
2871
2871
|
e("a", _r, [
|
|
2872
|
-
|
|
2872
|
+
H(d.$slots, "next")
|
|
2873
2873
|
])
|
|
2874
2874
|
]),
|
|
2875
2875
|
e("div", $r, [
|
|
2876
2876
|
e("div", null, [
|
|
2877
2877
|
e("p", Cr, [
|
|
2878
|
-
|
|
2878
|
+
H(d.$slots, "showing"),
|
|
2879
2879
|
e("span", Sr, m(d.current), 1),
|
|
2880
|
-
|
|
2880
|
+
H(d.$slots, "of"),
|
|
2881
2881
|
e("span", Br, m(d.total), 1),
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2882
|
+
H(d.$slots, "pages"),
|
|
2883
|
+
f[2] || (f[2] = e("span", { class: "font-bold mx-1" }, "/", -1)),
|
|
2884
|
+
H(d.$slots, "fromTotal"),
|
|
2885
2885
|
e("span", Mr, m(d.totalItems), 1)
|
|
2886
2886
|
])
|
|
2887
2887
|
]),
|
|
@@ -2889,41 +2889,41 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
2889
2889
|
e("nav", jr, [
|
|
2890
2890
|
M(e("button", {
|
|
2891
2891
|
ref: "test-first-button",
|
|
2892
|
-
onClick:
|
|
2892
|
+
onClick: f[0] || (f[0] = (y) => r("changePage", d.current - 1)),
|
|
2893
2893
|
class: "relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50"
|
|
2894
2894
|
}, [
|
|
2895
2895
|
e("span", Dr, [
|
|
2896
|
-
|
|
2896
|
+
H(d.$slots, "previous")
|
|
2897
2897
|
]),
|
|
2898
2898
|
g(c(rt), {
|
|
2899
2899
|
class: "h-5 w-5",
|
|
2900
2900
|
"aria-hidden": "true"
|
|
2901
2901
|
})
|
|
2902
2902
|
], 512), [
|
|
2903
|
-
[
|
|
2903
|
+
[z, d.current !== 1]
|
|
2904
2904
|
]),
|
|
2905
|
-
(l(!0), n(
|
|
2906
|
-
onClick: (
|
|
2907
|
-
key:
|
|
2905
|
+
(l(!0), n(C, null, S(a.value, (y) => (l(), n("button", {
|
|
2906
|
+
onClick: ($) => r("changePage", y),
|
|
2907
|
+
key: y,
|
|
2908
2908
|
"aria-current": "page",
|
|
2909
2909
|
class: v([[
|
|
2910
|
-
|
|
2910
|
+
y === d.current ? "z-10 bg-lime-50 border-lime-400 text-black" : "bg-white border-gray-300 text-gray-500 hover:bg-gray-50"
|
|
2911
2911
|
], "relative inline-flex items-center px-4 py-2 border text-sm font-medium"])
|
|
2912
|
-
}, m(
|
|
2912
|
+
}, m(y), 11, Tr))), 128)),
|
|
2913
2913
|
M(e("button", {
|
|
2914
2914
|
ref: "test-last-button",
|
|
2915
|
-
onClick:
|
|
2915
|
+
onClick: f[1] || (f[1] = (y) => r("changePage", d.current + 1)),
|
|
2916
2916
|
class: "relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50"
|
|
2917
2917
|
}, [
|
|
2918
2918
|
e("span", zr, [
|
|
2919
|
-
|
|
2919
|
+
H(d.$slots, "next")
|
|
2920
2920
|
]),
|
|
2921
2921
|
g(c(de), {
|
|
2922
2922
|
class: "h-5 w-5",
|
|
2923
2923
|
"aria-hidden": "true"
|
|
2924
2924
|
})
|
|
2925
2925
|
], 512), [
|
|
2926
|
-
[
|
|
2926
|
+
[z, d.current !== d.total]
|
|
2927
2927
|
])
|
|
2928
2928
|
])
|
|
2929
2929
|
])
|
|
@@ -2942,13 +2942,13 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
2942
2942
|
}, Rr = {
|
|
2943
2943
|
key: 2,
|
|
2944
2944
|
class: "flex-1"
|
|
2945
|
-
},
|
|
2945
|
+
}, Ur = {
|
|
2946
2946
|
key: 0,
|
|
2947
2947
|
class: "align-left"
|
|
2948
|
-
},
|
|
2948
|
+
}, Hr = {
|
|
2949
2949
|
key: 1,
|
|
2950
2950
|
class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2"
|
|
2951
|
-
},
|
|
2951
|
+
}, Er = { class: "h-12 flex flex-row items-center" }, Zr = /* @__PURE__ */ j({
|
|
2952
2952
|
__name: "uiSidebar",
|
|
2953
2953
|
props: {
|
|
2954
2954
|
navigation: {},
|
|
@@ -2964,13 +2964,13 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
2964
2964
|
e("div", Or, [
|
|
2965
2965
|
e("div", Nr, [
|
|
2966
2966
|
e("nav", Pr, [
|
|
2967
|
-
o.loading ? (l(), n(
|
|
2967
|
+
o.loading ? (l(), n(C, { key: 1 }, S(5, (a) => e("div", Er, [...t[1] || (t[1] = [
|
|
2968
2968
|
e("div", { class: "w-6 h-6 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 mr-4" }, null, -1),
|
|
2969
2969
|
e("div", { class: "h-3 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 grow" }, null, -1)
|
|
2970
|
-
])])), 64)) : (l(!0), n(
|
|
2970
|
+
])])), 64)) : (l(!0), n(C, { key: 0 }, S(s.value, (a) => (l(), n(C, {
|
|
2971
2971
|
key: a.name
|
|
2972
2972
|
}, [
|
|
2973
|
-
a.children ? (l(),
|
|
2973
|
+
a.children ? (l(), x(c(ye), {
|
|
2974
2974
|
key: 1,
|
|
2975
2975
|
as: "div",
|
|
2976
2976
|
class: "space-y-1"
|
|
@@ -2980,7 +2980,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
2980
2980
|
class: v([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"])
|
|
2981
2981
|
}, {
|
|
2982
2982
|
default: h(() => [
|
|
2983
|
-
a.icon ? (l(),
|
|
2983
|
+
a.icon ? (l(), x(F, {
|
|
2984
2984
|
key: 0,
|
|
2985
2985
|
loading: o.loading,
|
|
2986
2986
|
icon: a.icon,
|
|
@@ -3001,13 +3001,13 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
3001
3001
|
}, 1032, ["class"]),
|
|
3002
3002
|
g(c(ve), { class: "space-y-1" }, {
|
|
3003
3003
|
default: h(() => [
|
|
3004
|
-
(l(!0), n(
|
|
3005
|
-
onClick: (
|
|
3006
|
-
key:
|
|
3007
|
-
class: v([
|
|
3004
|
+
(l(!0), n(C, null, S(a.children, (f) => (l(), x(c(Q), {
|
|
3005
|
+
onClick: (y) => i("sideBarClick", f.id),
|
|
3006
|
+
key: f.name,
|
|
3007
|
+
class: v([f.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"])
|
|
3008
3008
|
}, {
|
|
3009
3009
|
default: h(() => [
|
|
3010
|
-
o.loading ? (l(), n("div",
|
|
3010
|
+
o.loading ? (l(), n("div", Hr)) : (l(), n("span", Ur, m(f.name), 1))
|
|
3011
3011
|
]),
|
|
3012
3012
|
_: 2
|
|
3013
3013
|
}, 1032, ["onClick", "class"]))), 128))
|
|
@@ -3024,7 +3024,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
3024
3024
|
"group w-full flex items-center pl-2 py-2 text-sm font-medium rounded-md"
|
|
3025
3025
|
])
|
|
3026
3026
|
}, [
|
|
3027
|
-
a.icon ? (l(),
|
|
3027
|
+
a.icon ? (l(), x(F, {
|
|
3028
3028
|
key: 0,
|
|
3029
3029
|
loading: o.loading,
|
|
3030
3030
|
icon: a.icon,
|
|
@@ -3076,7 +3076,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
3076
3076
|
return (s, o) => (l(), n("div", Jr, [
|
|
3077
3077
|
e("div", Wr, [
|
|
3078
3078
|
e("ul", null, [
|
|
3079
|
-
(l(!0), n(
|
|
3079
|
+
(l(!0), n(C, null, S(s.productsSidebar, (t, a) => (l(), n("li", {
|
|
3080
3080
|
key: a,
|
|
3081
3081
|
class: v([{ "!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"]),
|
|
3082
3082
|
onClick: (d) => s.$emit("productBarClick", t.name)
|
|
@@ -3090,7 +3090,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
3090
3090
|
]),
|
|
3091
3091
|
s.loading ? (l(), n("div", ia, [
|
|
3092
3092
|
e("div", da, [
|
|
3093
|
-
(l(), n(
|
|
3093
|
+
(l(), n(C, null, S(5, (t) => e("div", ua, [...o[2] || (o[2] = [
|
|
3094
3094
|
e("div", { class: "w-6 h-6 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 mr-4" }, null, -1),
|
|
3095
3095
|
e("div", { class: "h-3 animate-pulse bg-gray-200 rounded-full w-1/2 dark:bg-gray-300" }, null, -1)
|
|
3096
3096
|
])])), 64))
|
|
@@ -3111,10 +3111,10 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
3111
3111
|
s.isFilterNavigation ? w("", !0) : (l(), n("ul", la, [
|
|
3112
3112
|
e("li", null, [
|
|
3113
3113
|
e("ul", sa, [
|
|
3114
|
-
(l(!0), n(
|
|
3114
|
+
(l(!0), n(C, null, S(i.value, (t) => (l(), n("li", {
|
|
3115
3115
|
key: t.name
|
|
3116
3116
|
}, [
|
|
3117
|
-
t.children ? (l(),
|
|
3117
|
+
t.children ? (l(), x(c(ye), {
|
|
3118
3118
|
key: 1,
|
|
3119
3119
|
as: "div"
|
|
3120
3120
|
}, {
|
|
@@ -3124,7 +3124,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
3124
3124
|
class: v([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"])
|
|
3125
3125
|
}, {
|
|
3126
3126
|
default: h(() => [
|
|
3127
|
-
g(
|
|
3127
|
+
g(F, {
|
|
3128
3128
|
icon: t.icon,
|
|
3129
3129
|
color: "primary",
|
|
3130
3130
|
size: "big",
|
|
@@ -3147,7 +3147,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
3147
3147
|
static: ""
|
|
3148
3148
|
}, {
|
|
3149
3149
|
default: h(() => [
|
|
3150
|
-
(l(!0), n(
|
|
3150
|
+
(l(!0), n(C, null, S(t.children, (a) => (l(), n("li", {
|
|
3151
3151
|
key: a.name
|
|
3152
3152
|
}, [
|
|
3153
3153
|
g(c(Q), {
|
|
@@ -3165,7 +3165,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
3165
3165
|
_: 2
|
|
3166
3166
|
}, 1024)
|
|
3167
3167
|
], 512), [
|
|
3168
|
-
[
|
|
3168
|
+
[z, t.children.some((a) => a.current) || t.current]
|
|
3169
3169
|
])
|
|
3170
3170
|
]),
|
|
3171
3171
|
_: 2
|
|
@@ -3174,7 +3174,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
3174
3174
|
onClick: (a) => s.$emit("sideBarClick", t.id),
|
|
3175
3175
|
class: v([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"])
|
|
3176
3176
|
}, [
|
|
3177
|
-
g(
|
|
3177
|
+
g(F, {
|
|
3178
3178
|
icon: t.icon,
|
|
3179
3179
|
color: "primary",
|
|
3180
3180
|
size: "big",
|
|
@@ -3190,7 +3190,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
3190
3190
|
])),
|
|
3191
3191
|
s.isFilterNavigation && s.filterNavigation ? (l(), n("ul", ra, [
|
|
3192
3192
|
e("li", aa, [
|
|
3193
|
-
s.filterNavigation.hasSearch && s.filterNavigation.search ? (l(),
|
|
3193
|
+
s.filterNavigation.hasSearch && s.filterNavigation.search ? (l(), x(J, {
|
|
3194
3194
|
key: 0,
|
|
3195
3195
|
name: s.filterNavigation.search.name,
|
|
3196
3196
|
label: s.filterNavigation.search.label,
|
|
@@ -3200,12 +3200,12 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
3200
3200
|
onInputChanged: o[1] || (o[1] = (t) => s.$emit("inputChanged", t))
|
|
3201
3201
|
}, null, 8, ["name", "label", "placeholder", "value", "loading"])) : w("", !0)
|
|
3202
3202
|
]),
|
|
3203
|
-
(l(!0), n(
|
|
3203
|
+
(l(!0), n(C, null, S(s.filterNavigation.items, (t, a) => (l(), n("li", {
|
|
3204
3204
|
class: "ml-2",
|
|
3205
3205
|
key: a
|
|
3206
3206
|
}, [
|
|
3207
3207
|
e("p", na, m(t.label), 1),
|
|
3208
|
-
(l(!0), n(
|
|
3208
|
+
(l(!0), n(C, null, S(t.filters, (d, f) => (l(), x(re, {
|
|
3209
3209
|
class: "mb-2",
|
|
3210
3210
|
value: d.value,
|
|
3211
3211
|
loading: d.loading
|
|
@@ -3237,7 +3237,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
3237
3237
|
e("div", ba, [
|
|
3238
3238
|
e("dt", null, [
|
|
3239
3239
|
e("div", wa, [
|
|
3240
|
-
g(
|
|
3240
|
+
g(F, {
|
|
3241
3241
|
loading: r.loading,
|
|
3242
3242
|
icon: r.item.icon,
|
|
3243
3243
|
class: "h-6 w-6 text-white",
|
|
@@ -3264,7 +3264,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
3264
3264
|
"bg-yellow-400": r.item.color === "yellow"
|
|
3265
3265
|
}])
|
|
3266
3266
|
}, [
|
|
3267
|
-
g(
|
|
3267
|
+
g(F, {
|
|
3268
3268
|
icon: r.item.icon,
|
|
3269
3269
|
class: "h-6 w-6",
|
|
3270
3270
|
"aria-hidden": "true",
|
|
@@ -3287,12 +3287,12 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
3287
3287
|
"ml-2 flex items-baseline text-sm font-semibold"
|
|
3288
3288
|
])
|
|
3289
3289
|
}, [
|
|
3290
|
-
r.item.changeType === "increase" ? (l(),
|
|
3290
|
+
r.item.changeType === "increase" ? (l(), x(c(qt), {
|
|
3291
3291
|
key: 0,
|
|
3292
3292
|
class: "self-center flex-shrink-0 h-3 w-3 text-green-500",
|
|
3293
3293
|
"aria-hidden": "true"
|
|
3294
3294
|
})) : w("", !0),
|
|
3295
|
-
r.item.changeType === "decrease" ? (l(),
|
|
3295
|
+
r.item.changeType === "decrease" ? (l(), x(c(Vt), {
|
|
3296
3296
|
key: 1,
|
|
3297
3297
|
class: "self-center flex-shrink-0 h-3 w-3 text-red-500",
|
|
3298
3298
|
"aria-hidden": "true"
|
|
@@ -3307,7 +3307,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
3307
3307
|
}, m(r.item.actionText), 1)
|
|
3308
3308
|
])
|
|
3309
3309
|
], 512), [
|
|
3310
|
-
[
|
|
3310
|
+
[z, r.item.showFooter]
|
|
3311
3311
|
])
|
|
3312
3312
|
])
|
|
3313
3313
|
], 2)
|
|
@@ -3339,7 +3339,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
3339
3339
|
r[1] || (r[1] = se('<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)),
|
|
3340
3340
|
e("div", Ta, [
|
|
3341
3341
|
e("dl", null, [
|
|
3342
|
-
(l(), n(
|
|
3342
|
+
(l(), n(C, null, S(5, (i) => e("div", {
|
|
3343
3343
|
key: i,
|
|
3344
3344
|
class: v(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [i % 2 === 0 ? "bg-gray-50" : "bg-white"]])
|
|
3345
3345
|
}, [...r[0] || (r[0] = [
|
|
@@ -3359,13 +3359,13 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
3359
3359
|
]),
|
|
3360
3360
|
e("div", Ca, [
|
|
3361
3361
|
e("dl", null, [
|
|
3362
|
-
(l(!0), n(
|
|
3362
|
+
(l(!0), n(C, null, S(u.items, (i, s) => (l(), n("div", {
|
|
3363
3363
|
key: s,
|
|
3364
3364
|
class: v(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [s % 2 === 0 ? "bg-lime-50" : "bg-white"]])
|
|
3365
3365
|
}, [
|
|
3366
3366
|
e("dt", Sa, m(i.title), 1),
|
|
3367
3367
|
i.type === "tags" ? (l(), n("dd", Ba, [
|
|
3368
|
-
(l(!0), n(
|
|
3368
|
+
(l(!0), n(C, null, S(i.tags, (o, t) => (l(), x(Z, {
|
|
3369
3369
|
loading: u.loading,
|
|
3370
3370
|
key: t,
|
|
3371
3371
|
color: o.color,
|
|
@@ -3386,7 +3386,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
3386
3386
|
])
|
|
3387
3387
|
]));
|
|
3388
3388
|
}
|
|
3389
|
-
}),
|
|
3389
|
+
}), Aa = { class: "absolute top-10 bg-black text-white text-xs p-2 rounded z-10 font-light w-60 flex flex-row items-start" }, Fa = { class: "ml-2" }, La = {
|
|
3390
3390
|
__name: "tooltip",
|
|
3391
3391
|
props: {
|
|
3392
3392
|
tip: {
|
|
@@ -3395,7 +3395,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
3395
3395
|
}
|
|
3396
3396
|
},
|
|
3397
3397
|
setup(p) {
|
|
3398
|
-
return (u, r) => (l(), n("div",
|
|
3398
|
+
return (u, r) => (l(), n("div", Aa, [
|
|
3399
3399
|
r[0] || (r[0] = e("svg", {
|
|
3400
3400
|
class: "absolute -top-3 left-0",
|
|
3401
3401
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3412,20 +3412,20 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
3412
3412
|
})
|
|
3413
3413
|
], -1)),
|
|
3414
3414
|
e("div", null, [
|
|
3415
|
-
g(
|
|
3415
|
+
g(F, {
|
|
3416
3416
|
icon: c(Gt),
|
|
3417
3417
|
loading: !1,
|
|
3418
3418
|
color: "white",
|
|
3419
3419
|
size: "big"
|
|
3420
3420
|
}, null, 8, ["icon"])
|
|
3421
3421
|
]),
|
|
3422
|
-
e("span",
|
|
3422
|
+
e("span", Fa, m(p.tip), 1)
|
|
3423
3423
|
]));
|
|
3424
3424
|
}
|
|
3425
3425
|
}, Oa = { key: 0 }, Na = { class: "flex flex-col" }, Pa = { class: "-my-2 overflow-x-auto" }, Ia = { class: "inline-block min-w-full py-2 align-middle px-1" }, Va = { class: "relative overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg" }, Ya = {
|
|
3426
3426
|
key: 0,
|
|
3427
3427
|
class: "absolute top-0 left-12 flex h-12 items-center space-x-3 sm:left-16 bg-white shadow rounded px-4 py-1 z-10"
|
|
3428
|
-
}, qa = ["onClick"], Ra = { class: "min-w-full table-fixed divide-y divide-gray-300" },
|
|
3428
|
+
}, qa = ["onClick"], Ra = { class: "min-w-full table-fixed divide-y divide-gray-300" }, Ua = { class: "bg-lime-50" }, Ha = ["checked", "indeterminate"], Ea = ["onMouseover", "onMouseleave"], Za = ["onClick"], Ja = {
|
|
3429
3429
|
key: 2,
|
|
3430
3430
|
class: "group flex items-center uppercase text-xs"
|
|
3431
3431
|
}, Wa = { class: "divide-y divide-gray-200 bg-white" }, Ga = {
|
|
@@ -3448,114 +3448,114 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
3448
3448
|
let r = O([]), i = O(""), s = O(!1);
|
|
3449
3449
|
const o = u, t = p, a = V(
|
|
3450
3450
|
() => r.value.length > 0 && r.value.length < t.items.length
|
|
3451
|
-
), d = (
|
|
3452
|
-
i.value !==
|
|
3453
|
-
},
|
|
3454
|
-
r.value =
|
|
3455
|
-
},
|
|
3456
|
-
o("customEmit",
|
|
3457
|
-
},
|
|
3458
|
-
return
|
|
3459
|
-
s.value =
|
|
3460
|
-
}), (
|
|
3451
|
+
), d = (k, D) => {
|
|
3452
|
+
i.value !== k && D && (i.value = k), D || (i.value = void 0);
|
|
3453
|
+
}, f = (k) => {
|
|
3454
|
+
r.value = k.target.checked ? t.items.map((D) => D.id) : [];
|
|
3455
|
+
}, y = (k) => {
|
|
3456
|
+
o("customEmit", k);
|
|
3457
|
+
}, $ = (k) => t.hiddenColumns && t.hiddenColumns.length > 0 ? !t.hiddenColumns.includes(k) : !0;
|
|
3458
|
+
return E(() => t.resetSelected, (k) => {
|
|
3459
|
+
s.value = k, k && s.value && (r.value = [], s.value = !k, o("selectedItemsDeleted"));
|
|
3460
|
+
}), (k, D) => k.loading ? (l(), x(ut, { key: 1 })) : (l(), n("div", Oa, [
|
|
3461
3461
|
e("div", Na, [
|
|
3462
3462
|
e("div", Pa, [
|
|
3463
3463
|
e("div", Ia, [
|
|
3464
3464
|
e("div", Va, [
|
|
3465
|
-
c(r)?.length > 0 &&
|
|
3466
|
-
(l(!0), n(
|
|
3467
|
-
onClick: (A) =>
|
|
3468
|
-
key:
|
|
3465
|
+
c(r)?.length > 0 && k.actions?.length > 0 ? (l(), n("div", Ya, [
|
|
3466
|
+
(l(!0), n(C, null, S(k.actions, (b, L) => (l(), n("button", {
|
|
3467
|
+
onClick: (A) => k.$emit("tableAction", { action: b.id, items: c(r) }),
|
|
3468
|
+
key: L,
|
|
3469
3469
|
type: "button",
|
|
3470
3470
|
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"
|
|
3471
|
-
}, m(
|
|
3471
|
+
}, m(b.name), 9, qa))), 128))
|
|
3472
3472
|
])) : w("", !0),
|
|
3473
3473
|
e("table", Ra, [
|
|
3474
|
-
e("thead",
|
|
3474
|
+
e("thead", Ua, [
|
|
3475
3475
|
e("tr", null, [
|
|
3476
3476
|
e("th", {
|
|
3477
3477
|
scope: "col",
|
|
3478
|
-
class: v([
|
|
3478
|
+
class: v([k.actions ? "px-6 sm:px-8" : "px-3", "relative"])
|
|
3479
3479
|
}, [
|
|
3480
|
-
|
|
3480
|
+
k.actions ? (l(), n("input", {
|
|
3481
3481
|
key: 0,
|
|
3482
|
-
checked: a.value || c(r).length ===
|
|
3482
|
+
checked: a.value || c(r).length === k.items.length,
|
|
3483
3483
|
indeterminate: a.value,
|
|
3484
3484
|
class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-black focus:ring-lime-400",
|
|
3485
3485
|
type: "checkbox",
|
|
3486
|
-
onChange:
|
|
3487
|
-
}, null, 40,
|
|
3486
|
+
onChange: f
|
|
3487
|
+
}, null, 40, Ha)) : w("", !0)
|
|
3488
3488
|
], 2),
|
|
3489
|
-
(l(!0), n(
|
|
3490
|
-
key:
|
|
3489
|
+
(l(!0), n(C, null, S(k.header, (b, L) => M((l(), n("th", {
|
|
3490
|
+
key: L,
|
|
3491
3491
|
class: "py-3.5 pr-3 text-left font-semibold relative",
|
|
3492
3492
|
scope: "col",
|
|
3493
|
-
onMouseover: (A) => d(
|
|
3494
|
-
onMouseleave: (A) => d(
|
|
3493
|
+
onMouseover: (A) => d(b.name, !0),
|
|
3494
|
+
onMouseleave: (A) => d(b.name, !1)
|
|
3495
3495
|
}, [
|
|
3496
|
-
|
|
3496
|
+
b.tooltip ? M((l(), x(La, {
|
|
3497
3497
|
key: 0,
|
|
3498
|
-
tip:
|
|
3498
|
+
tip: b.tooltip
|
|
3499
3499
|
}, null, 8, ["tip"])), [
|
|
3500
|
-
[
|
|
3500
|
+
[z, c(i) === b.name]
|
|
3501
3501
|
]) : w("", !0),
|
|
3502
|
-
|
|
3502
|
+
b.value ? (l(), n("button", {
|
|
3503
3503
|
key: 1,
|
|
3504
3504
|
class: "group flex items-center uppercase text-xs relative text-nowrap",
|
|
3505
|
-
onClick: (A) => o("orderBy", { value:
|
|
3505
|
+
onClick: (A) => o("orderBy", { value: b.value, orderDirection: k.orderDirection === "asc" ? "desc" : "asc" })
|
|
3506
3506
|
}, [
|
|
3507
|
-
e("span", null, m(
|
|
3507
|
+
e("span", null, m(b.name), 1),
|
|
3508
3508
|
e("span", {
|
|
3509
3509
|
class: v([[
|
|
3510
|
-
|
|
3510
|
+
b.value === k.orderedBy ? "bg-black text-white group-hover:bg-lime-400 group-hover:text-black" : "group-hover:visible group-focus:visible"
|
|
3511
3511
|
], "ml-2 flex-none rounded group-hover:bg-lime-200 group-hover:text-white"])
|
|
3512
3512
|
}, [
|
|
3513
|
-
g(
|
|
3514
|
-
icon:
|
|
3515
|
-
loading:
|
|
3516
|
-
color:
|
|
3513
|
+
g(F, {
|
|
3514
|
+
icon: k.orderDirection === "asc" ? c(le) : c(at),
|
|
3515
|
+
loading: k.loading,
|
|
3516
|
+
color: b.value === k.orderedBy ? "white" : "primary"
|
|
3517
3517
|
}, null, 8, ["icon", "loading", "color"])
|
|
3518
3518
|
], 2)
|
|
3519
3519
|
], 8, Za)) : (l(), n("p", Ja, [
|
|
3520
|
-
e("span", null, m(
|
|
3520
|
+
e("span", null, m(b.name), 1)
|
|
3521
3521
|
]))
|
|
3522
|
-
], 40,
|
|
3523
|
-
[
|
|
3522
|
+
], 40, Ea)), [
|
|
3523
|
+
[z, $(L)]
|
|
3524
3524
|
])), 128))
|
|
3525
3525
|
])
|
|
3526
3526
|
]),
|
|
3527
3527
|
e("tbody", Wa, [
|
|
3528
|
-
(l(!0), n(
|
|
3529
|
-
key:
|
|
3528
|
+
(l(!0), n(C, null, S(k.items, (b, L) => (l(), n("tr", {
|
|
3529
|
+
key: b.id,
|
|
3530
3530
|
class: v([
|
|
3531
|
-
c(r).includes(
|
|
3532
|
-
|
|
3531
|
+
c(r).includes(b.id) && "bg-gray-50",
|
|
3532
|
+
L % 2 == 0 ? void 0 : "bg-gray-50"
|
|
3533
3533
|
])
|
|
3534
3534
|
}, [
|
|
3535
3535
|
e("td", {
|
|
3536
|
-
class: v([
|
|
3536
|
+
class: v([k.actions?.length > 0 ? "w-2" : "w-0", "relative"])
|
|
3537
3537
|
}, [
|
|
3538
|
-
c(r).includes(
|
|
3539
|
-
|
|
3538
|
+
c(r).includes(b.id) ? (l(), n("div", Ga)) : w("", !0),
|
|
3539
|
+
k.actions?.length > 0 ? M((l(), n("input", {
|
|
3540
3540
|
key: 1,
|
|
3541
3541
|
"onUpdate:modelValue": D[0] || (D[0] = (A) => Be(r) ? r.value = A : r = A),
|
|
3542
|
-
value:
|
|
3542
|
+
value: b.id,
|
|
3543
3543
|
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",
|
|
3544
3544
|
type: "checkbox"
|
|
3545
3545
|
}, null, 8, Qa)), [
|
|
3546
3546
|
[Je, c(r)]
|
|
3547
3547
|
]) : w("", !0)
|
|
3548
3548
|
], 2),
|
|
3549
|
-
(l(!0), n(
|
|
3549
|
+
(l(!0), n(C, null, S(b.row, (A, B) => M((l(), n("td", {
|
|
3550
3550
|
key: B,
|
|
3551
3551
|
class: v([
|
|
3552
3552
|
"whitespace-nowrap py-4 pr-3 text-sm",
|
|
3553
|
-
c(r).includes(
|
|
3553
|
+
c(r).includes(b.id) ? "text-black font-bold" : ""
|
|
3554
3554
|
])
|
|
3555
3555
|
}, [
|
|
3556
|
-
typeof A == "object" && A.type === "tag" ? (l(),
|
|
3556
|
+
typeof A == "object" && A.type === "tag" ? (l(), x(Z, {
|
|
3557
3557
|
key: 0,
|
|
3558
|
-
loading:
|
|
3558
|
+
loading: k.loading,
|
|
3559
3559
|
color: A.color
|
|
3560
3560
|
}, {
|
|
3561
3561
|
default: h(() => [
|
|
@@ -3565,14 +3565,14 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
3565
3565
|
}, 1032, ["loading", "color"])) : typeof A == "object" && A.type === "link" ? (l(), n("span", {
|
|
3566
3566
|
key: 1,
|
|
3567
3567
|
class: "text-black font-bold underline hover:text-lime-400 cursor-pointer",
|
|
3568
|
-
onClick: (R) =>
|
|
3568
|
+
onClick: (R) => y(A)
|
|
3569
3569
|
}, m(A.content), 9, Ka)) : typeof A == "object" && A.type === "href" ? (l(), n("a", {
|
|
3570
3570
|
key: 2,
|
|
3571
3571
|
class: "text-black font-bold underline hover:text-lime-400 cursor-pointer",
|
|
3572
3572
|
href: A.href
|
|
3573
3573
|
}, m(A.content), 9, Xa)) : (l(), n("span", en, m(A), 1))
|
|
3574
3574
|
], 2)), [
|
|
3575
|
-
[
|
|
3575
|
+
[z, $(B)]
|
|
3576
3576
|
])), 128))
|
|
3577
3577
|
], 2))), 128))
|
|
3578
3578
|
])
|
|
@@ -3605,7 +3605,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
3605
3605
|
name: "tabs",
|
|
3606
3606
|
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"
|
|
3607
3607
|
}, [
|
|
3608
|
-
(l(!0), n(
|
|
3608
|
+
(l(!0), n(C, null, S(s.tabs, (t) => (l(), n("option", {
|
|
3609
3609
|
value: t.id,
|
|
3610
3610
|
key: t.name
|
|
3611
3611
|
}, m(t.name), 9, sn))), 128))
|
|
@@ -3614,7 +3614,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
3614
3614
|
e("div", on, [
|
|
3615
3615
|
e("div", rn, [
|
|
3616
3616
|
e("nav", an, [
|
|
3617
|
-
(l(!0), n(
|
|
3617
|
+
(l(!0), n(C, null, S(s.tabs, (t) => (l(), n("a", {
|
|
3618
3618
|
key: t.name,
|
|
3619
3619
|
onClick: (a) => r("tabClicked", t.id),
|
|
3620
3620
|
class: v([
|
|
@@ -3681,7 +3681,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
3681
3681
|
e("div", Sn, [
|
|
3682
3682
|
e("div", Bn, [
|
|
3683
3683
|
e("ul", Mn, [
|
|
3684
|
-
(l(), n(
|
|
3684
|
+
(l(), n(C, null, S(10, (t, a) => e("li", { key: a }, [
|
|
3685
3685
|
e("div", jn, [
|
|
3686
3686
|
t !== 10 ? (l(), n("span", Dn)) : w("", !0),
|
|
3687
3687
|
o[2] || (o[2] = se('<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))
|
|
@@ -3710,7 +3710,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
3710
3710
|
class: "-mb-8"
|
|
3711
3711
|
}, {
|
|
3712
3712
|
default: h(() => [
|
|
3713
|
-
(l(!0), n(
|
|
3713
|
+
(l(!0), n(C, null, S(i.items, (t, a) => (l(), n("li", { key: a }, [
|
|
3714
3714
|
e("div", pn, [
|
|
3715
3715
|
a < i.items.length - 1 ? (l(), n("span", fn)) : w("", !0),
|
|
3716
3716
|
e("div", hn, [
|
|
@@ -3722,7 +3722,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
3722
3722
|
"bg-yellow-400": t?.iconBackground === "warning"
|
|
3723
3723
|
}, "h-8 w-8 rounded-full flex items-center justify-center ring-4 ring-white"])
|
|
3724
3724
|
}, [
|
|
3725
|
-
g(
|
|
3725
|
+
g(F, {
|
|
3726
3726
|
loading: s.loading,
|
|
3727
3727
|
icon: t?.icon,
|
|
3728
3728
|
"aria-hidden": "true",
|
|
@@ -3763,7 +3763,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
3763
3763
|
}, m(s.timeline.footerText), 1)
|
|
3764
3764
|
])
|
|
3765
3765
|
])) : (l(), n("div", $n, [
|
|
3766
|
-
g(
|
|
3766
|
+
g(F, {
|
|
3767
3767
|
icon: c(W),
|
|
3768
3768
|
color: "gray",
|
|
3769
3769
|
loading: !1,
|
|
@@ -3773,7 +3773,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
3773
3773
|
]))
|
|
3774
3774
|
], 2));
|
|
3775
3775
|
}
|
|
3776
|
-
}), zn = { class: "mx-auto px-6 lg:px-8" },
|
|
3776
|
+
}), zn = { class: "mx-auto px-6 lg:px-8" }, An = { class: "flex justify-between h-20" }, Fn = { class: "flex" }, Ln = { class: "-ml-2 mr-2 flex items-center lg:hidden" }, On = ["src"], Nn = { class: "flex items-center" }, Pn = { class: "lg:ml-4 lg:flex-shrink-0 lg:flex lg:items-center hidden" }, In = { class: "redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute -top-0 -left-1" }, Vn = ["src"], Yn = ["onClick"], qn = { class: "pt-2 pb-3 space-y-1" }, Rn = ["onClick"], Un = { class: "pt-4 pb-3 border-t border-gray-200" }, Hn = { class: "flex items-center px-4 sm:px-6" }, En = { class: "flex-shrink-0" }, Zn = ["src"], Jn = {
|
|
3777
3777
|
key: 0,
|
|
3778
3778
|
class: "ml-3"
|
|
3779
3779
|
}, Wn = { class: "text-base font-medium text-gray-800" }, Gn = { class: "text-sm font-medium text-gray-500" }, Qn = { class: "mt-3 space-y-1" }, Kn = ["onClick"], Xn = /* @__PURE__ */ j({
|
|
@@ -3789,23 +3789,23 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
3789
3789
|
emits: ["topBarClick"],
|
|
3790
3790
|
setup(p, { emit: u }) {
|
|
3791
3791
|
const r = p, i = V(() => r.navigation ? Array.isArray(r.navigation) ? r.navigation : [r.navigation] : []);
|
|
3792
|
-
return (s, o) => (l(),
|
|
3792
|
+
return (s, o) => (l(), x(c(ye), {
|
|
3793
3793
|
as: "nav",
|
|
3794
3794
|
class: "bg-white shadow z-10"
|
|
3795
3795
|
}, {
|
|
3796
3796
|
default: h(({ open: t }) => [
|
|
3797
3797
|
e("div", zn, [
|
|
3798
|
-
e("div",
|
|
3799
|
-
e("div",
|
|
3798
|
+
e("div", An, [
|
|
3799
|
+
e("div", Fn, [
|
|
3800
3800
|
e("div", Ln, [
|
|
3801
3801
|
g(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" }, {
|
|
3802
3802
|
default: h(() => [
|
|
3803
3803
|
o[1] || (o[1] = e("span", { class: "sr-only" }, "Open main menu", -1)),
|
|
3804
|
-
t ? (l(),
|
|
3804
|
+
t ? (l(), x(c(K), {
|
|
3805
3805
|
key: 1,
|
|
3806
3806
|
class: "block h-6 w-6",
|
|
3807
3807
|
"aria-hidden": "true"
|
|
3808
|
-
})) : (l(),
|
|
3808
|
+
})) : (l(), x(c(st), {
|
|
3809
3809
|
key: 0,
|
|
3810
3810
|
class: "block h-6 w-6",
|
|
3811
3811
|
"aria-hidden": "true"
|
|
@@ -3838,7 +3838,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
3838
3838
|
M(e("div", In, [...o[2] || (o[2] = [
|
|
3839
3839
|
e("span", { class: "animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75" }, null, -1)
|
|
3840
3840
|
])], 512), [
|
|
3841
|
-
[
|
|
3841
|
+
[z, s.alerted]
|
|
3842
3842
|
]),
|
|
3843
3843
|
e("img", {
|
|
3844
3844
|
class: "h-10 w-10 rounded-full",
|
|
@@ -3847,7 +3847,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
3847
3847
|
]),
|
|
3848
3848
|
_: 1
|
|
3849
3849
|
}, 512), [
|
|
3850
|
-
[
|
|
3850
|
+
[z, s.accountLogo]
|
|
3851
3851
|
])
|
|
3852
3852
|
]),
|
|
3853
3853
|
g(ne, {
|
|
@@ -3861,12 +3861,12 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
3861
3861
|
default: h(() => [
|
|
3862
3862
|
g(c(De), { 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" }, {
|
|
3863
3863
|
default: h(() => [
|
|
3864
|
-
(l(!0), n(
|
|
3864
|
+
(l(!0), n(C, null, S(s.profileMenu, (a) => (l(), x(c(Te), {
|
|
3865
3865
|
key: a.name
|
|
3866
3866
|
}, {
|
|
3867
3867
|
default: h(({ active: d }) => [
|
|
3868
3868
|
e("p", {
|
|
3869
|
-
onClick: (
|
|
3869
|
+
onClick: (f) => s.$emit("topBarClick", a.id),
|
|
3870
3870
|
class: v(["cursor-pointer", [
|
|
3871
3871
|
d ? "bg-gray-100" : "",
|
|
3872
3872
|
"block px-4 py-2 text-sm text-gray-700"
|
|
@@ -3891,7 +3891,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
3891
3891
|
g(c(ve), { class: "lg:hidden" }, {
|
|
3892
3892
|
default: h(() => [
|
|
3893
3893
|
e("div", qn, [
|
|
3894
|
-
(l(!0), n(
|
|
3894
|
+
(l(!0), n(C, null, S(i.value, (a) => (l(), x(c(Q), {
|
|
3895
3895
|
as: "template",
|
|
3896
3896
|
key: a.id,
|
|
3897
3897
|
class: v(["block pl-3 pr-4 py-2 border-l-4 text-base font-medium sm:pl-5 sm:pr-6", {
|
|
@@ -3907,9 +3907,9 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
3907
3907
|
_: 2
|
|
3908
3908
|
}, 1032, ["class"]))), 128))
|
|
3909
3909
|
]),
|
|
3910
|
-
e("div",
|
|
3911
|
-
e("div",
|
|
3912
|
-
e("div",
|
|
3910
|
+
e("div", Un, [
|
|
3911
|
+
e("div", Hn, [
|
|
3912
|
+
e("div", En, [
|
|
3913
3913
|
e("img", {
|
|
3914
3914
|
class: "h-10 w-10 rounded-full",
|
|
3915
3915
|
src: s.accountLogo
|
|
@@ -3921,7 +3921,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
3921
3921
|
])) : w("", !0)
|
|
3922
3922
|
]),
|
|
3923
3923
|
e("div", Qn, [
|
|
3924
|
-
(l(!0), n(
|
|
3924
|
+
(l(!0), n(C, null, S(s.profileMenu, (a) => (l(), x(c(Q), {
|
|
3925
3925
|
as: "template",
|
|
3926
3926
|
key: a.name,
|
|
3927
3927
|
class: "block px-4 py-2 text-base font-medium text-gray-500 hover:text-gray-800 hover:bg-gray-100 sm:px-6"
|
|
@@ -4009,8 +4009,8 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
4009
4009
|
],
|
|
4010
4010
|
dataLabels: {
|
|
4011
4011
|
enabled: !0,
|
|
4012
|
-
formatter: function(
|
|
4013
|
-
return
|
|
4012
|
+
formatter: function(f, y) {
|
|
4013
|
+
return y.w.globals.labels[y.dataPointIndex] + ": " + f;
|
|
4014
4014
|
}
|
|
4015
4015
|
},
|
|
4016
4016
|
markers: {
|
|
@@ -4029,49 +4029,49 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
4029
4029
|
}
|
|
4030
4030
|
}
|
|
4031
4031
|
};
|
|
4032
|
-
const o = V(() => ({ ...i.options, ...s })), t = V(() => i.series), a = () => r("chartUpdated"), d = (
|
|
4033
|
-
r("dataPointSelection", { id: i.id, chartContext:
|
|
4032
|
+
const o = V(() => ({ ...i.options, ...s })), t = V(() => i.series), a = () => r("chartUpdated"), d = (f, y, $) => {
|
|
4033
|
+
r("dataPointSelection", { id: i.id, chartContext: y, config: $, event: f });
|
|
4034
4034
|
};
|
|
4035
|
-
return (
|
|
4035
|
+
return (f, y) => (l(), n(C, null, [
|
|
4036
4036
|
M(e("div", {
|
|
4037
|
-
class: v(["h-[" +
|
|
4037
|
+
class: v(["h-[" + f.height + "px]", "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"])
|
|
4038
4038
|
}, [
|
|
4039
4039
|
e("div", li, [
|
|
4040
|
-
e("div", si, m(
|
|
4040
|
+
e("div", si, m(f.title), 1),
|
|
4041
4041
|
g(ti, {
|
|
4042
|
-
range:
|
|
4043
|
-
onRangeSelected:
|
|
4042
|
+
range: f.range,
|
|
4043
|
+
onRangeSelected: y[0] || (y[0] = ($) => f.$emit("selectedRange", { range: $, chartId: f.id }))
|
|
4044
4044
|
}, null, 8, ["range"])
|
|
4045
4045
|
]),
|
|
4046
4046
|
M(e("div", oi, [
|
|
4047
4047
|
g(c(Le), {
|
|
4048
|
-
type:
|
|
4048
|
+
type: f.type,
|
|
4049
4049
|
series: t.value,
|
|
4050
4050
|
width: "100%",
|
|
4051
|
-
height:
|
|
4051
|
+
height: f.height,
|
|
4052
4052
|
options: o.value,
|
|
4053
4053
|
onUpdated: a,
|
|
4054
4054
|
onMounted: a,
|
|
4055
4055
|
onDataPointSelection: d
|
|
4056
4056
|
}, null, 8, ["type", "series", "height", "options"])
|
|
4057
4057
|
], 512), [
|
|
4058
|
-
[
|
|
4058
|
+
[z, !f.empty]
|
|
4059
4059
|
]),
|
|
4060
4060
|
M(e("div", ri, [
|
|
4061
|
-
g(
|
|
4061
|
+
g(F, {
|
|
4062
4062
|
icon: c(W),
|
|
4063
4063
|
color: "gray",
|
|
4064
4064
|
loading: !1,
|
|
4065
4065
|
size: "huge"
|
|
4066
4066
|
}, null, 8, ["icon"]),
|
|
4067
|
-
|
|
4067
|
+
y[1] || (y[1] = e("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1))
|
|
4068
4068
|
], 512), [
|
|
4069
|
-
[
|
|
4069
|
+
[z, f.empty]
|
|
4070
4070
|
])
|
|
4071
4071
|
], 2), [
|
|
4072
|
-
[
|
|
4072
|
+
[z, !f.loading]
|
|
4073
4073
|
]),
|
|
4074
|
-
M(e("div", ai, [...
|
|
4074
|
+
M(e("div", ai, [...y[2] || (y[2] = [
|
|
4075
4075
|
e("div", {
|
|
4076
4076
|
role: "status",
|
|
4077
4077
|
class: "w-full animate-pulse h-full flex flex-col"
|
|
@@ -4098,7 +4098,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
4098
4098
|
])
|
|
4099
4099
|
], -1)
|
|
4100
4100
|
])], 512), [
|
|
4101
|
-
[
|
|
4101
|
+
[z, f.loading]
|
|
4102
4102
|
])
|
|
4103
4103
|
], 64));
|
|
4104
4104
|
}
|
|
@@ -4114,7 +4114,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
4114
4114
|
emits: ["action", "noResultsOptionSelected"],
|
|
4115
4115
|
setup(p) {
|
|
4116
4116
|
return (u, r) => (l(), n("div", ii, [
|
|
4117
|
-
g(
|
|
4117
|
+
g(F, {
|
|
4118
4118
|
class: "mx-auto",
|
|
4119
4119
|
loading: !1,
|
|
4120
4120
|
icon: c(W),
|
|
@@ -4125,7 +4125,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
4125
4125
|
e("h2", ui, m(u.title), 1),
|
|
4126
4126
|
e("p", ci, m(u.message), 1),
|
|
4127
4127
|
e("div", mi, [
|
|
4128
|
-
(l(!0), n(
|
|
4128
|
+
(l(!0), n(C, null, S(u.actions, (i, s) => (l(), x(U, {
|
|
4129
4129
|
key: s,
|
|
4130
4130
|
loading: !1,
|
|
4131
4131
|
onClick: (o) => u.$emit("action", i.action)
|
|
@@ -4135,7 +4135,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
4135
4135
|
]),
|
|
4136
4136
|
_: 2
|
|
4137
4137
|
}, 1032, ["onClick"]))), 128)),
|
|
4138
|
-
u.items ? (l(),
|
|
4138
|
+
u.items ? (l(), x(we, {
|
|
4139
4139
|
key: 0,
|
|
4140
4140
|
items: u.items,
|
|
4141
4141
|
loading: !1,
|
|
@@ -4154,12 +4154,12 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
4154
4154
|
},
|
|
4155
4155
|
emits: ["closeRightBar"],
|
|
4156
4156
|
setup(p, { emit: u }) {
|
|
4157
|
-
return (r, i) => (l(),
|
|
4157
|
+
return (r, i) => (l(), x(c(ze), {
|
|
4158
4158
|
as: "template",
|
|
4159
4159
|
show: r.open
|
|
4160
4160
|
}, {
|
|
4161
4161
|
default: h(() => [
|
|
4162
|
-
g(c(
|
|
4162
|
+
g(c(Ae), {
|
|
4163
4163
|
as: "div",
|
|
4164
4164
|
class: "relative z-10",
|
|
4165
4165
|
onClose: i[1] || (i[1] = (s) => r.$emit("closeRightBar"))
|
|
@@ -4179,7 +4179,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
4179
4179
|
"leave-to": "translate-x-full"
|
|
4180
4180
|
}, {
|
|
4181
4181
|
default: h(() => [
|
|
4182
|
-
g(c(
|
|
4182
|
+
g(c(Fe), { class: "pointer-events-auto w-screen max-w-md" }, {
|
|
4183
4183
|
default: h(() => [
|
|
4184
4184
|
e("div", hi, [
|
|
4185
4185
|
e("div", yi, [
|
|
@@ -4210,7 +4210,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
4210
4210
|
])
|
|
4211
4211
|
]),
|
|
4212
4212
|
e("div", xi, [
|
|
4213
|
-
|
|
4213
|
+
H(r.$slots, "default")
|
|
4214
4214
|
])
|
|
4215
4215
|
])
|
|
4216
4216
|
]),
|
|
@@ -4237,7 +4237,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
4237
4237
|
key: 2,
|
|
4238
4238
|
role: "list",
|
|
4239
4239
|
class: "grid grid-cols-2 gap-x-4 gap-y-8 sm:grid-cols-3 sm:gap-x-4 lg:grid-cols-6"
|
|
4240
|
-
},
|
|
4240
|
+
}, Ai = /* @__PURE__ */ j({
|
|
4241
4241
|
__name: "uiGallery",
|
|
4242
4242
|
props: {
|
|
4243
4243
|
galleryId: {},
|
|
@@ -4251,7 +4251,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
4251
4251
|
i.value = !1, r("modalAction", o);
|
|
4252
4252
|
};
|
|
4253
4253
|
return (o, t) => (l(), n("div", $i, [
|
|
4254
|
-
o.loading ? w("", !0) : (l(),
|
|
4254
|
+
o.loading ? w("", !0) : (l(), x(dt, {
|
|
4255
4255
|
key: 0,
|
|
4256
4256
|
open: i.value,
|
|
4257
4257
|
modalName: "deleteAllImagesModal",
|
|
@@ -4266,13 +4266,13 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
4266
4266
|
_: 1
|
|
4267
4267
|
}, 8, ["open", "title", "actions"])),
|
|
4268
4268
|
o.loading ? (l(), n("ul", zi, [
|
|
4269
|
-
(l(), n(
|
|
4269
|
+
(l(), n(C, null, S(4, (a) => e("li", null, [...t[2] || (t[2] = [
|
|
4270
4270
|
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),
|
|
4271
4271
|
e("p", { class: "animate-pulse h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28 mt-4" }, null, -1),
|
|
4272
4272
|
e("p", { class: "animate-pulse h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-14 mt-2" }, null, -1)
|
|
4273
4273
|
])])), 64))
|
|
4274
4274
|
])) : (l(), n("ul", Ci, [
|
|
4275
|
-
(l(!0), n(
|
|
4275
|
+
(l(!0), n(C, null, S(o.gallery, (a) => (l(), n("li", {
|
|
4276
4276
|
key: a.source,
|
|
4277
4277
|
class: "relative"
|
|
4278
4278
|
}, [
|
|
@@ -4291,7 +4291,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
4291
4291
|
e("p", ji, m(a.title), 1),
|
|
4292
4292
|
e("div", Di, [
|
|
4293
4293
|
e("p", Ti, m(a.size), 1),
|
|
4294
|
-
g(
|
|
4294
|
+
g(F, {
|
|
4295
4295
|
class: "cursor-pointer",
|
|
4296
4296
|
icon: c(he),
|
|
4297
4297
|
color: "red",
|
|
@@ -4301,7 +4301,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
4301
4301
|
])
|
|
4302
4302
|
]))), 128))
|
|
4303
4303
|
])),
|
|
4304
|
-
o.gallery.length > 0 && !o.loading ? (l(),
|
|
4304
|
+
o.gallery.length > 0 && !o.loading ? (l(), x(U, {
|
|
4305
4305
|
key: 3,
|
|
4306
4306
|
onClick: t[1] || (t[1] = (a) => i.value = !0),
|
|
4307
4307
|
class: "mt-8",
|
|
@@ -4316,7 +4316,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
4316
4316
|
})) : w("", !0)
|
|
4317
4317
|
]));
|
|
4318
4318
|
}
|
|
4319
|
-
}),
|
|
4319
|
+
}), Fi = { class: "cursor-move mb-1 relative flex items-center space-x-3 rounded-lg border border-gray-300 bg-white p-4 shadow-sm focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 hover:border-gray-400" }, Li = { class: "flex flex-row items-center w-full" }, Oi = { class: "content text-sm grow" }, Ni = { class: "font-bold" }, Pi = { key: 0 }, Ii = { class: "font-bold text-gray-400" }, Vi = {
|
|
4320
4320
|
key: 1,
|
|
4321
4321
|
class: "animate-pulse"
|
|
4322
4322
|
}, Yi = /* @__PURE__ */ j({
|
|
@@ -4329,7 +4329,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
4329
4329
|
setup(p, { emit: u }) {
|
|
4330
4330
|
const r = u, i = p;
|
|
4331
4331
|
let s = O(i.elements);
|
|
4332
|
-
|
|
4332
|
+
E(() => i.elements, (t) => {
|
|
4333
4333
|
s.value = t;
|
|
4334
4334
|
});
|
|
4335
4335
|
const o = (t) => {
|
|
@@ -4337,7 +4337,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
4337
4337
|
};
|
|
4338
4338
|
return (t, a) => t.loading ? (l(), n("div", Vi, [...a[2] || (a[2] = [
|
|
4339
4339
|
se('<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)
|
|
4340
|
-
])])) : (l(),
|
|
4340
|
+
])])) : (l(), x(c(jt), {
|
|
4341
4341
|
key: 0,
|
|
4342
4342
|
modelValue: c(s),
|
|
4343
4343
|
"onUpdate:modelValue": [
|
|
@@ -4346,9 +4346,9 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
4346
4346
|
]
|
|
4347
4347
|
}, {
|
|
4348
4348
|
item: h(({ item: d }) => [
|
|
4349
|
-
e("div",
|
|
4349
|
+
e("div", Fi, [
|
|
4350
4350
|
e("div", Li, [
|
|
4351
|
-
g(
|
|
4351
|
+
g(F, {
|
|
4352
4352
|
icon: c(Rt),
|
|
4353
4353
|
loading: !1,
|
|
4354
4354
|
color: "gray",
|
|
@@ -4366,7 +4366,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
4366
4366
|
_: 1
|
|
4367
4367
|
}, 8, ["modelValue"]));
|
|
4368
4368
|
}
|
|
4369
|
-
}), qi = { class: "chart-header flex flex-row justify-between" }, Ri = { class: "text-sm font-medium text-gray-500 truncate" },
|
|
4369
|
+
}), qi = { class: "chart-header flex flex-row justify-between" }, Ri = { class: "text-sm font-medium text-gray-500 truncate" }, Ui = { class: "hidden sm:flex items-center" }, Hi = { class: "w-1/2 min-w-0 flex-1" }, Ei = ["max"], Zi = { class: "min-w-0 flex-1" }, Ji = ["max"], Wi = { class: "chart-content" }, Gi = { class: "h-full w-full flex items-center justify-center flex-col" }, Qi = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, Ki = /* @__PURE__ */ j({
|
|
4370
4370
|
__name: "uiCircleChart",
|
|
4371
4371
|
props: {
|
|
4372
4372
|
labels: {},
|
|
@@ -4390,7 +4390,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
4390
4390
|
setup(p, { emit: u }) {
|
|
4391
4391
|
const r = u, i = p, s = O((/* @__PURE__ */ new Date()).toISOString().slice(0, (/* @__PURE__ */ new Date()).toISOString().lastIndexOf(":")));
|
|
4392
4392
|
let o = ie(i.dates || { from: "", to: s });
|
|
4393
|
-
|
|
4393
|
+
E(() => i.dates, (D) => {
|
|
4394
4394
|
D && (o = D);
|
|
4395
4395
|
});
|
|
4396
4396
|
let t = {
|
|
@@ -4425,37 +4425,37 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
4425
4425
|
}
|
|
4426
4426
|
}
|
|
4427
4427
|
};
|
|
4428
|
-
const a = () => ({ ...t, ...i.options }), d = V(() => i.series),
|
|
4429
|
-
r("dataPointSelection", { id: i.id, chartContext:
|
|
4430
|
-
},
|
|
4428
|
+
const a = () => ({ ...t, ...i.options }), d = V(() => i.series), f = V(() => a()), y = () => r("chartUpdated"), $ = (D, b, L) => {
|
|
4429
|
+
r("dataPointSelection", { id: i.id, chartContext: b, config: L, event: D });
|
|
4430
|
+
}, k = () => {
|
|
4431
4431
|
o.from !== "" && o.to !== "" && Y(o.from).isBefore(Y(o.to)) && r("selectedRange", { range: o, chartId: i.id });
|
|
4432
4432
|
};
|
|
4433
|
-
return (D,
|
|
4433
|
+
return (D, b) => (l(), n(C, null, [
|
|
4434
4434
|
M(e("div", {
|
|
4435
4435
|
class: v(["h-[" + D.height + "px]", "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"])
|
|
4436
4436
|
}, [
|
|
4437
4437
|
e("div", qi, [
|
|
4438
4438
|
e("div", Ri, m(D.title), 1),
|
|
4439
|
-
e("div",
|
|
4440
|
-
e("div",
|
|
4439
|
+
e("div", Ui, [
|
|
4440
|
+
e("div", Hi, [
|
|
4441
4441
|
M(e("input", {
|
|
4442
4442
|
type: "datetime-local",
|
|
4443
|
-
"onUpdate:modelValue":
|
|
4443
|
+
"onUpdate:modelValue": b[0] || (b[0] = (L) => c(o).from = L),
|
|
4444
4444
|
max: s.value.toString(),
|
|
4445
|
-
onChange:
|
|
4445
|
+
onChange: k,
|
|
4446
4446
|
name: "from",
|
|
4447
4447
|
id: "from",
|
|
4448
4448
|
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"
|
|
4449
|
-
}, null, 40,
|
|
4449
|
+
}, null, 40, Ei), [
|
|
4450
4450
|
[ae, c(o).from]
|
|
4451
4451
|
])
|
|
4452
4452
|
]),
|
|
4453
4453
|
e("div", Zi, [
|
|
4454
4454
|
M(e("input", {
|
|
4455
4455
|
type: "datetime-local",
|
|
4456
|
-
"onUpdate:modelValue":
|
|
4456
|
+
"onUpdate:modelValue": b[1] || (b[1] = (L) => c(o).to = L),
|
|
4457
4457
|
max: s.value.toString(),
|
|
4458
|
-
onChange:
|
|
4458
|
+
onChange: k,
|
|
4459
4459
|
name: "to",
|
|
4460
4460
|
id: "to",
|
|
4461
4461
|
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"
|
|
@@ -4463,12 +4463,12 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
4463
4463
|
[ae, c(o).to]
|
|
4464
4464
|
])
|
|
4465
4465
|
]),
|
|
4466
|
-
g(
|
|
4466
|
+
g(F, {
|
|
4467
4467
|
class: "ml-4 cursor-pointer",
|
|
4468
4468
|
size: "big",
|
|
4469
4469
|
loading: D.loading,
|
|
4470
4470
|
icon: c(lt),
|
|
4471
|
-
onClick:
|
|
4471
|
+
onClick: b[2] || (b[2] = (L) => D.$emit("maximizeChart", D.id))
|
|
4472
4472
|
}, null, 8, ["loading", "icon"])
|
|
4473
4473
|
])
|
|
4474
4474
|
]),
|
|
@@ -4477,30 +4477,30 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
4477
4477
|
class: "flex items-center justify-center mt-4",
|
|
4478
4478
|
type: "donut",
|
|
4479
4479
|
series: d.value,
|
|
4480
|
-
options:
|
|
4480
|
+
options: f.value,
|
|
4481
4481
|
height: D.height - 80,
|
|
4482
|
-
onUpdated:
|
|
4483
|
-
onMounted:
|
|
4484
|
-
onDataPointSelection:
|
|
4482
|
+
onUpdated: y,
|
|
4483
|
+
onMounted: y,
|
|
4484
|
+
onDataPointSelection: $
|
|
4485
4485
|
}, null, 8, ["series", "options", "height"])
|
|
4486
4486
|
], 512), [
|
|
4487
|
-
[
|
|
4487
|
+
[z, !D.empty]
|
|
4488
4488
|
]),
|
|
4489
4489
|
M(e("div", Gi, [
|
|
4490
|
-
g(
|
|
4490
|
+
g(F, {
|
|
4491
4491
|
icon: c(W),
|
|
4492
4492
|
color: "gray",
|
|
4493
4493
|
loading: !1,
|
|
4494
4494
|
size: "huge"
|
|
4495
4495
|
}, null, 8, ["icon"]),
|
|
4496
|
-
|
|
4496
|
+
b[3] || (b[3] = e("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1))
|
|
4497
4497
|
], 512), [
|
|
4498
|
-
[
|
|
4498
|
+
[z, D.empty]
|
|
4499
4499
|
])
|
|
4500
4500
|
], 2), [
|
|
4501
|
-
[
|
|
4501
|
+
[z, !D.loading]
|
|
4502
4502
|
]),
|
|
4503
|
-
M(e("div", Qi, [...
|
|
4503
|
+
M(e("div", Qi, [...b[4] || (b[4] = [
|
|
4504
4504
|
e("div", {
|
|
4505
4505
|
role: "status",
|
|
4506
4506
|
class: "w-full animate-pulse h-full flex flex-col"
|
|
@@ -4527,7 +4527,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
4527
4527
|
])
|
|
4528
4528
|
], -1)
|
|
4529
4529
|
])], 512), [
|
|
4530
|
-
[
|
|
4530
|
+
[z, D.loading]
|
|
4531
4531
|
])
|
|
4532
4532
|
], 64));
|
|
4533
4533
|
}
|
|
@@ -4555,7 +4555,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
4555
4555
|
const r = p, i = O((/* @__PURE__ */ new Date()).toISOString().slice(0, (/* @__PURE__ */ new Date()).toISOString().lastIndexOf(":")));
|
|
4556
4556
|
let s = ie(r.values || { from: "", to: i });
|
|
4557
4557
|
const o = u;
|
|
4558
|
-
|
|
4558
|
+
E(() => r.values, (a) => {
|
|
4559
4559
|
a && (s = a);
|
|
4560
4560
|
});
|
|
4561
4561
|
const t = () => {
|
|
@@ -4570,7 +4570,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
4570
4570
|
name: "dateTo",
|
|
4571
4571
|
loading: !0
|
|
4572
4572
|
}),
|
|
4573
|
-
g(
|
|
4573
|
+
g(U, { loading: !0 }, {
|
|
4574
4574
|
default: h(() => [...d[2] || (d[2] = [
|
|
4575
4575
|
T("Search", -1)
|
|
4576
4576
|
])]),
|
|
@@ -4588,7 +4588,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
4588
4588
|
disabled: a.disabled,
|
|
4589
4589
|
label: a.label,
|
|
4590
4590
|
max: i.value.toString(),
|
|
4591
|
-
onInputChanged: d[0] || (d[0] = (
|
|
4591
|
+
onInputChanged: d[0] || (d[0] = (f) => c(s).from = f.value)
|
|
4592
4592
|
}, null, 8, ["addOn", "name", "color", "value", "error", "disabled", "label", "max"]),
|
|
4593
4593
|
g(J, {
|
|
4594
4594
|
type: "datetime-local",
|
|
@@ -4602,9 +4602,9 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
4602
4602
|
disabled: a.disabled,
|
|
4603
4603
|
label: void 0,
|
|
4604
4604
|
max: i.value.toString(),
|
|
4605
|
-
onInputChanged: d[1] || (d[1] = (
|
|
4605
|
+
onInputChanged: d[1] || (d[1] = (f) => c(s).to = f.value)
|
|
4606
4606
|
}, null, 8, ["class", "addOn", "name", "color", "value", "error", "disabled", "max"]),
|
|
4607
|
-
g(
|
|
4607
|
+
g(U, {
|
|
4608
4608
|
disabled: a.disabled,
|
|
4609
4609
|
color: "primary",
|
|
4610
4610
|
loading: !1,
|
|
@@ -4650,7 +4650,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
4650
4650
|
e("div", {
|
|
4651
4651
|
class: v([{ "mt-1": o.label }, "pt-16 px-6 pb-6 bg-gray-50 border border-gray-300 rounded-lg shadow-sm"])
|
|
4652
4652
|
}, [
|
|
4653
|
-
o.loading ? (l(), n("p", rd)) : (l(),
|
|
4653
|
+
o.loading ? (l(), n("p", rd)) : (l(), x(c(Dt), {
|
|
4654
4654
|
key: 0,
|
|
4655
4655
|
modelValue: s.value,
|
|
4656
4656
|
"onUpdate:modelValue": t[0] || (t[0] = (a) => s.value = a),
|
|
@@ -4673,7 +4673,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
4673
4673
|
description: {}
|
|
4674
4674
|
},
|
|
4675
4675
|
setup(p) {
|
|
4676
|
-
return (u, r) => (l(), n(
|
|
4676
|
+
return (u, r) => (l(), n(C, null, [
|
|
4677
4677
|
e("h3", {
|
|
4678
4678
|
class: v(["text-lg font-medium leading-6", { "mb-8": u.description === void 0 }])
|
|
4679
4679
|
}, m(u.title), 3),
|
|
@@ -4702,7 +4702,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
4702
4702
|
return (r, i) => r.loading ? (l(), n("div", pd, [
|
|
4703
4703
|
e("div", fd, [
|
|
4704
4704
|
e("div", hd, [
|
|
4705
|
-
g(
|
|
4705
|
+
g(F, {
|
|
4706
4706
|
icon: r.icon,
|
|
4707
4707
|
size: "huge",
|
|
4708
4708
|
class: "text-white",
|
|
@@ -4713,7 +4713,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
4713
4713
|
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)),
|
|
4714
4714
|
e("dl", yd, [
|
|
4715
4715
|
e("dd", vd, [
|
|
4716
|
-
(l(!0), n(
|
|
4716
|
+
(l(!0), n(C, null, S(r.tags, (s, o) => (l(), x(Z, {
|
|
4717
4717
|
key: o,
|
|
4718
4718
|
loading: r.loading,
|
|
4719
4719
|
event: s.event,
|
|
@@ -4739,7 +4739,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
4739
4739
|
"bg-gray-100": r.color === "light"
|
|
4740
4740
|
}])
|
|
4741
4741
|
}, [
|
|
4742
|
-
g(
|
|
4742
|
+
g(F, {
|
|
4743
4743
|
icon: r.icon,
|
|
4744
4744
|
size: "huge",
|
|
4745
4745
|
color: "black",
|
|
@@ -4753,12 +4753,12 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
4753
4753
|
class: "text-black hover:text-lime-400 underline cursor-pointer",
|
|
4754
4754
|
onClick: i[0] || (i[0] = (s) => r.$emit("deviceStatusQtyClicked", r.id))
|
|
4755
4755
|
}, "(" + m(r.qty) + ")", 513), [
|
|
4756
|
-
[
|
|
4756
|
+
[z, r.qty > 0]
|
|
4757
4757
|
])
|
|
4758
4758
|
]),
|
|
4759
4759
|
e("dl", md, [
|
|
4760
4760
|
e("dd", gd, [
|
|
4761
|
-
(l(!0), n(
|
|
4761
|
+
(l(!0), n(C, null, S(r.tags, (s, o) => (l(), x(Z, {
|
|
4762
4762
|
key: o,
|
|
4763
4763
|
loading: !1,
|
|
4764
4764
|
event: s.event,
|
|
@@ -4775,7 +4775,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
4775
4775
|
])
|
|
4776
4776
|
]));
|
|
4777
4777
|
}
|
|
4778
|
-
}), wd = { class: "fixed inset-0 flex" }, kd = { class: "absolute left-full top-0 flex w-16 justify-center pt-5" }, xd = { class: "hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-[25rem] lg:flex-col" }, _d = { 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" }, Cd = { class: "flex flex-1 gap-x-4 self-stretch lg:gap-x-6" }, Sd = { class: "flex items-center gap-x-4 lg:gap-x-6" }, Bd = { class: "redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute top-1 left-2" }, Md = ["src"], jd = { class: "hidden lg:flex lg:items-center" }, Dd = ["onClick"], Td = { class: "py-7" }, zd = { class: "px-7 lg:px-10" },
|
|
4778
|
+
}), wd = { class: "fixed inset-0 flex" }, kd = { class: "absolute left-full top-0 flex w-16 justify-center pt-5" }, xd = { class: "hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-[25rem] lg:flex-col" }, _d = { 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" }, Cd = { class: "flex flex-1 gap-x-4 self-stretch lg:gap-x-6" }, Sd = { class: "flex items-center gap-x-4 lg:gap-x-6" }, Bd = { class: "redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute top-1 left-2" }, Md = ["src"], jd = { class: "hidden lg:flex lg:items-center" }, Dd = ["onClick"], Td = { class: "py-7" }, zd = { class: "px-7 lg:px-10" }, Ad = /* @__PURE__ */ j({
|
|
4779
4779
|
__name: "uiWrapper",
|
|
4780
4780
|
props: {
|
|
4781
4781
|
topbar: {},
|
|
@@ -4793,7 +4793,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
4793
4793
|
show: s.value
|
|
4794
4794
|
}, {
|
|
4795
4795
|
default: h(() => [
|
|
4796
|
-
g(c(
|
|
4796
|
+
g(c(Ae), {
|
|
4797
4797
|
class: "relative z-50 lg:hidden",
|
|
4798
4798
|
onClose: o
|
|
4799
4799
|
}, {
|
|
@@ -4823,7 +4823,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
4823
4823
|
"leave-to": "-translate-x-full"
|
|
4824
4824
|
}, {
|
|
4825
4825
|
default: h(() => [
|
|
4826
|
-
g(c(
|
|
4826
|
+
g(c(Fe), { class: "relative mr-16 flex w-full max-w-xs flex-1" }, {
|
|
4827
4827
|
default: h(() => [
|
|
4828
4828
|
g(c(ee), {
|
|
4829
4829
|
as: "template",
|
|
@@ -4925,9 +4925,9 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
4925
4925
|
M(e("div", Bd, [...a[13] || (a[13] = [
|
|
4926
4926
|
e("span", { class: "animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75" }, null, -1)
|
|
4927
4927
|
])], 512), [
|
|
4928
|
-
[
|
|
4928
|
+
[z, t.topbar.alerted]
|
|
4929
4929
|
]),
|
|
4930
|
-
g(c(
|
|
4930
|
+
g(c(Ut), {
|
|
4931
4931
|
class: "h-6 w-6",
|
|
4932
4932
|
"aria-hidden": "true"
|
|
4933
4933
|
})
|
|
@@ -4969,13 +4969,13 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
4969
4969
|
default: h(() => [
|
|
4970
4970
|
g(c(De), { 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" }, {
|
|
4971
4971
|
default: h(() => [
|
|
4972
|
-
(l(!0), n(
|
|
4972
|
+
(l(!0), n(C, null, S(t.topbar.profileMenu, (d) => (l(), x(c(Te), {
|
|
4973
4973
|
key: d.name
|
|
4974
4974
|
}, {
|
|
4975
|
-
default: h(({ active:
|
|
4975
|
+
default: h(({ active: f }) => [
|
|
4976
4976
|
e("a", {
|
|
4977
|
-
onClick: (
|
|
4978
|
-
class: v([
|
|
4977
|
+
onClick: (y) => t.$emit("topBarClick", d.id),
|
|
4978
|
+
class: v([f ? "bg-gray-50" : "", "block px-3 py-1 text-sm leading-6 text-gray-900 cursor-pointer"])
|
|
4979
4979
|
}, m(d.name), 11, Dd)
|
|
4980
4980
|
]),
|
|
4981
4981
|
_: 2
|
|
@@ -4994,13 +4994,13 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
4994
4994
|
]),
|
|
4995
4995
|
e("main", Td, [
|
|
4996
4996
|
e("div", zd, [
|
|
4997
|
-
|
|
4997
|
+
H(t.$slots, "default")
|
|
4998
4998
|
])
|
|
4999
4999
|
])
|
|
5000
5000
|
])
|
|
5001
5001
|
]));
|
|
5002
5002
|
}
|
|
5003
|
-
}),
|
|
5003
|
+
}), Fd = /* @__PURE__ */ j({
|
|
5004
5004
|
__name: "uiDynamicStats",
|
|
5005
5005
|
props: {
|
|
5006
5006
|
dynamicStats: {},
|
|
@@ -5012,7 +5012,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
5012
5012
|
class: v([s.value, "grid grid-cols-1 md:grid-cols-2 gap-4"]),
|
|
5013
5013
|
key: i.value
|
|
5014
5014
|
}, [
|
|
5015
|
-
(l(!0), n(
|
|
5015
|
+
(l(!0), n(C, null, S(o.dynamicStats, (a, d) => (l(), x(ct, {
|
|
5016
5016
|
key: d,
|
|
5017
5017
|
item: a,
|
|
5018
5018
|
loading: o.loading
|
|
@@ -5058,11 +5058,11 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
5058
5058
|
"aria-hidden": "true",
|
|
5059
5059
|
class: "-mr-1 ml-2 h-5 w-5"
|
|
5060
5060
|
})
|
|
5061
|
-
])) : (l(),
|
|
5061
|
+
])) : (l(), x(c(kt), {
|
|
5062
5062
|
key: 0,
|
|
5063
5063
|
modelValue: c(s),
|
|
5064
5064
|
"onUpdate:modelValue": [
|
|
5065
|
-
d[0] || (d[0] = (
|
|
5065
|
+
d[0] || (d[0] = (f) => Be(s) ? s.value = f : s = f),
|
|
5066
5066
|
o
|
|
5067
5067
|
],
|
|
5068
5068
|
name: "selectorMultiple",
|
|
@@ -5101,18 +5101,18 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
5101
5101
|
default: h(() => [
|
|
5102
5102
|
e("span", Pd, [
|
|
5103
5103
|
c(s).length === 0 ? (l(), n("span", Id, "...")) : w("", !0),
|
|
5104
|
-
(l(!0), n(
|
|
5105
|
-
key:
|
|
5104
|
+
(l(!0), n(C, null, S(c(s), (f) => (l(), n("span", {
|
|
5105
|
+
key: f.id,
|
|
5106
5106
|
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"
|
|
5107
5107
|
}, [
|
|
5108
|
-
e("span", null, m(
|
|
5108
|
+
e("span", null, m(f.name), 1),
|
|
5109
5109
|
(l(), n("svg", {
|
|
5110
5110
|
class: "h-4 w-4 cursor-pointer",
|
|
5111
5111
|
fill: "none",
|
|
5112
5112
|
stroke: "currentColor",
|
|
5113
5113
|
viewBox: "0 0 24 24",
|
|
5114
5114
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5115
|
-
onClick: ke((
|
|
5115
|
+
onClick: ke((y) => t(f), ["stop", "prevent"])
|
|
5116
5116
|
}, [...d[1] || (d[1] = [
|
|
5117
5117
|
e("path", {
|
|
5118
5118
|
"stroke-linecap": "round",
|
|
@@ -5144,21 +5144,21 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
5144
5144
|
e("div", Yd, [
|
|
5145
5145
|
g(c($t), { 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" }, {
|
|
5146
5146
|
default: h(() => [
|
|
5147
|
-
(l(!0), n(
|
|
5148
|
-
key:
|
|
5149
|
-
value:
|
|
5147
|
+
(l(!0), n(C, null, S(a.items, (f) => (l(), x(c(Ct), {
|
|
5148
|
+
key: f.id,
|
|
5149
|
+
value: f,
|
|
5150
5150
|
as: "template"
|
|
5151
5151
|
}, {
|
|
5152
|
-
default: h(({ active:
|
|
5152
|
+
default: h(({ active: y, selected: $ }) => [
|
|
5153
5153
|
e("li", {
|
|
5154
|
-
class: v(["focus:outline-hidden relative cursor-default select-none py-2 pl-3 pr-9",
|
|
5154
|
+
class: v(["focus:outline-hidden relative cursor-default select-none py-2 pl-3 pr-9", y ? "bg-lime-400 text-black" : "text-black"])
|
|
5155
5155
|
}, [
|
|
5156
5156
|
e("span", {
|
|
5157
|
-
class: v(["block truncate", { "font-semibold":
|
|
5158
|
-
}, m(
|
|
5159
|
-
|
|
5157
|
+
class: v(["block truncate", { "font-semibold": $, "font-normal": !$ }])
|
|
5158
|
+
}, m(f.name), 3),
|
|
5159
|
+
$ ? (l(), n("span", {
|
|
5160
5160
|
key: 0,
|
|
5161
|
-
class: v(["absolute inset-y-0 right-0 flex items-center pr-4", { "text-black":
|
|
5161
|
+
class: v(["absolute inset-y-0 right-0 flex items-center pr-4", { "text-black": y, "text-lime-400": !y }])
|
|
5162
5162
|
}, [...d[3] || (d[3] = [
|
|
5163
5163
|
e("svg", {
|
|
5164
5164
|
class: "h-5 w-5",
|
|
@@ -5188,7 +5188,7 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
5188
5188
|
"text-green-600": a.color === "green"
|
|
5189
5189
|
}, "mt-2 text-xs flex flex-row items-center"])
|
|
5190
5190
|
}, m(a.error), 3), [
|
|
5191
|
-
[
|
|
5191
|
+
[z, a.error]
|
|
5192
5192
|
])
|
|
5193
5193
|
])
|
|
5194
5194
|
]),
|
|
@@ -5231,14 +5231,14 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
5231
5231
|
onFilterSelected: t,
|
|
5232
5232
|
class: "w-full lg:w-auto"
|
|
5233
5233
|
}, null, 8, ["items", "loading"]),
|
|
5234
|
-
(l(),
|
|
5234
|
+
(l(), x(Ze(s.value), xe({ class: "w-full mt-2 lg:mt-0 lg:ml-2 lg:grow" }, o.value, {
|
|
5235
5235
|
loading: !1,
|
|
5236
|
-
onInputChanged: d[0] || (d[0] = (
|
|
5237
|
-
onSelectChanged: d[1] || (d[1] = (
|
|
5238
|
-
onOptionSelected: d[2] || (d[2] = (
|
|
5239
|
-
onRightAddOnClicked: d[3] || (d[3] = (
|
|
5236
|
+
onInputChanged: d[0] || (d[0] = (f) => i("smartInputChanged", f)),
|
|
5237
|
+
onSelectChanged: d[1] || (d[1] = (f) => i("smartSelectChanged", f)),
|
|
5238
|
+
onOptionSelected: d[2] || (d[2] = (f) => i("smartOptionSelected", f)),
|
|
5239
|
+
onRightAddOnClicked: d[3] || (d[3] = (f) => i("rightAddOnClicked"))
|
|
5240
5240
|
}), null, 16)),
|
|
5241
|
-
a.showFilterButton ? (l(),
|
|
5241
|
+
a.showFilterButton ? (l(), x(U, {
|
|
5242
5242
|
key: 0,
|
|
5243
5243
|
class: "mt-2 lg:mt-0 w-full lg:w-auto ml-2",
|
|
5244
5244
|
loading: a.loading
|
|
@@ -5250,11 +5250,11 @@ const vr = /* @__PURE__ */ oe(fr, [["render", yr]]), br = /* @__PURE__ */ j({
|
|
|
5250
5250
|
}, 8, ["loading"])) : w("", !0)
|
|
5251
5251
|
]));
|
|
5252
5252
|
}
|
|
5253
|
-
}),
|
|
5254
|
-
function
|
|
5255
|
-
return l(), n("span",
|
|
5253
|
+
}), Ud = {}, Hd = { class: "bg-gray-200 text-gray-500 px-2 py-2 rounded h-full text-sm font-bold ml-2 text-center" };
|
|
5254
|
+
function Ed(p, u) {
|
|
5255
|
+
return l(), n("span", Hd, "AND");
|
|
5256
5256
|
}
|
|
5257
|
-
const
|
|
5257
|
+
const He = /* @__PURE__ */ oe(Ud, [["render", Ed]]), Zd = { class: "flex flex-col sm:flex-row items-center w-full" }, Jd = { class: "flex mt-4" }, Wd = /* @__PURE__ */ j({
|
|
5258
5258
|
__name: "uiSmartFilterMultiple",
|
|
5259
5259
|
props: {
|
|
5260
5260
|
items: {},
|
|
@@ -5272,23 +5272,23 @@ const Ee = /* @__PURE__ */ oe(Hd, [["render", Ud]]), Zd = { class: "flex flex-co
|
|
|
5272
5272
|
o.value.pop(), s.value.pop();
|
|
5273
5273
|
}, d = () => {
|
|
5274
5274
|
i("smartFilterMultipleSent", o.value);
|
|
5275
|
-
},
|
|
5275
|
+
}, f = () => {
|
|
5276
5276
|
o.value = [], s.value = [JSON.parse(JSON.stringify(r))], i("smartFilterMultipleSent", []);
|
|
5277
5277
|
};
|
|
5278
|
-
return (
|
|
5278
|
+
return (y, $) => (l(), n("div", null, [
|
|
5279
5279
|
e("div", Zd, [
|
|
5280
5280
|
g(Se, xe(s.value[0], {
|
|
5281
5281
|
class: "w-full sm:grow",
|
|
5282
|
-
onSmartInputChanged:
|
|
5283
|
-
onSmartSelectChanged:
|
|
5284
|
-
onSmartOptionSelected:
|
|
5285
|
-
onSmartFilterSelected:
|
|
5282
|
+
onSmartInputChanged: $[0] || ($[0] = (k) => o.value[0].value = k),
|
|
5283
|
+
onSmartSelectChanged: $[1] || ($[1] = (k) => o.value[0].value = k),
|
|
5284
|
+
onSmartOptionSelected: $[2] || ($[2] = (k) => o.value[0].value = k),
|
|
5285
|
+
onSmartFilterSelected: $[3] || ($[3] = (k) => o.value[0].name = k)
|
|
5286
5286
|
}), null, 16),
|
|
5287
|
-
s.value.length > 1 ? (l(),
|
|
5287
|
+
s.value.length > 1 ? (l(), x(He, {
|
|
5288
5288
|
key: 0,
|
|
5289
5289
|
class: "w-full ml-0 mt-2 sm:mt-0 sm:w-20 sm:ml-2"
|
|
5290
5290
|
})) : w("", !0),
|
|
5291
|
-
s.value.length === 1 ? (l(),
|
|
5291
|
+
s.value.length === 1 ? (l(), x(U, {
|
|
5292
5292
|
key: 1,
|
|
5293
5293
|
loading: !1,
|
|
5294
5294
|
icon: c(Ie),
|
|
@@ -5296,27 +5296,27 @@ const Ee = /* @__PURE__ */ oe(Hd, [["render", Ud]]), Zd = { class: "flex flex-co
|
|
|
5296
5296
|
onClick: t
|
|
5297
5297
|
}, {
|
|
5298
5298
|
default: h(() => [
|
|
5299
|
-
T(m(
|
|
5299
|
+
T(m(y.addLiteral), 1)
|
|
5300
5300
|
]),
|
|
5301
5301
|
_: 1
|
|
5302
5302
|
}, 8, ["icon"])) : w("", !0)
|
|
5303
5303
|
]),
|
|
5304
|
-
(l(!0), n(
|
|
5304
|
+
(l(!0), n(C, null, S(s.value.length - 1, (k) => (l(), n("div", {
|
|
5305
5305
|
class: "flex flex-col sm:flex-row items-center w-full mt-4",
|
|
5306
|
-
key:
|
|
5306
|
+
key: k
|
|
5307
5307
|
}, [
|
|
5308
|
-
g(Se, xe({ ref_for: !0 }, s.value[
|
|
5308
|
+
g(Se, xe({ ref_for: !0 }, s.value[k], {
|
|
5309
5309
|
class: "w-full sm:grow",
|
|
5310
|
-
onSmartInputChanged: (D) => o.value[
|
|
5311
|
-
onSmartSelectChanged: (D) => o.value[
|
|
5312
|
-
onSmartOptionSelected: (D) => o.value[
|
|
5313
|
-
onSmartFilterSelected: (D) => o.value[
|
|
5310
|
+
onSmartInputChanged: (D) => o.value[k].value = D,
|
|
5311
|
+
onSmartSelectChanged: (D) => o.value[k].value = D,
|
|
5312
|
+
onSmartOptionSelected: (D) => o.value[k].value = D,
|
|
5313
|
+
onSmartFilterSelected: (D) => o.value[k].name = D
|
|
5314
5314
|
}), null, 16, ["onSmartInputChanged", "onSmartSelectChanged", "onSmartOptionSelected", "onSmartFilterSelected"]),
|
|
5315
|
-
s.value.length >
|
|
5315
|
+
s.value.length > k && s.value.length !== k + 1 ? (l(), x(He, {
|
|
5316
5316
|
key: 0,
|
|
5317
5317
|
class: "w-full ml-0 mt-2 sm:mt-0 sm:w-20 sm:ml-2"
|
|
5318
5318
|
})) : w("", !0),
|
|
5319
|
-
s.value.length ===
|
|
5319
|
+
s.value.length === k + 1 ? (l(), x(U, {
|
|
5320
5320
|
key: 1,
|
|
5321
5321
|
loading: !1,
|
|
5322
5322
|
icon: c(he),
|
|
@@ -5325,11 +5325,11 @@ const Ee = /* @__PURE__ */ oe(Hd, [["render", Ud]]), Zd = { class: "flex flex-co
|
|
|
5325
5325
|
onClick: a
|
|
5326
5326
|
}, {
|
|
5327
5327
|
default: h(() => [
|
|
5328
|
-
T(m(
|
|
5328
|
+
T(m(y.removeLiteral), 1)
|
|
5329
5329
|
]),
|
|
5330
5330
|
_: 1
|
|
5331
5331
|
}, 8, ["icon"])) : w("", !0),
|
|
5332
|
-
s.value.length ===
|
|
5332
|
+
s.value.length === k + 1 ? (l(), x(U, {
|
|
5333
5333
|
key: 2,
|
|
5334
5334
|
loading: !1,
|
|
5335
5335
|
icon: c(Ie),
|
|
@@ -5337,30 +5337,30 @@ const Ee = /* @__PURE__ */ oe(Hd, [["render", Ud]]), Zd = { class: "flex flex-co
|
|
|
5337
5337
|
onClick: t
|
|
5338
5338
|
}, {
|
|
5339
5339
|
default: h(() => [
|
|
5340
|
-
T(m(
|
|
5340
|
+
T(m(y.addLiteral), 1)
|
|
5341
5341
|
]),
|
|
5342
5342
|
_: 1
|
|
5343
5343
|
}, 8, ["icon"])) : w("", !0)
|
|
5344
5344
|
]))), 128)),
|
|
5345
5345
|
e("div", Jd, [
|
|
5346
|
-
g(
|
|
5346
|
+
g(U, {
|
|
5347
5347
|
loading: !1,
|
|
5348
5348
|
onClick: d,
|
|
5349
5349
|
color: "secondary"
|
|
5350
5350
|
}, {
|
|
5351
5351
|
default: h(() => [
|
|
5352
|
-
T(m(
|
|
5352
|
+
T(m(y.buttonLiteral), 1)
|
|
5353
5353
|
]),
|
|
5354
5354
|
_: 1
|
|
5355
5355
|
}),
|
|
5356
|
-
g(
|
|
5356
|
+
g(U, {
|
|
5357
5357
|
class: "ml-2",
|
|
5358
5358
|
loading: !1,
|
|
5359
5359
|
color: "red",
|
|
5360
|
-
onClick:
|
|
5360
|
+
onClick: f
|
|
5361
5361
|
}, {
|
|
5362
5362
|
default: h(() => [
|
|
5363
|
-
T(m(
|
|
5363
|
+
T(m(y.removeLiteral), 1)
|
|
5364
5364
|
]),
|
|
5365
5365
|
_: 1
|
|
5366
5366
|
})
|
|
@@ -5407,25 +5407,25 @@ const Ee = /* @__PURE__ */ oe(Hd, [["render", Ud]]), Zd = { class: "flex flex-co
|
|
|
5407
5407
|
}
|
|
5408
5408
|
});
|
|
5409
5409
|
};
|
|
5410
|
-
|
|
5410
|
+
E(() => r.literals, (_) => {
|
|
5411
5411
|
s.value.id === "1" ? s.value.name = _.and : s.value.id === "2" && (s.value.name = _.or);
|
|
5412
|
-
}, { deep: !0 }),
|
|
5412
|
+
}, { deep: !0 }), E(() => r.availableCategories, (_) => {
|
|
5413
5413
|
_.length > 0 && (!t.value.name || !_.some((P) => P.name === t.value.name)) && (t.value = _[0]);
|
|
5414
|
-
}, { deep: !0, immediate: !0 }),
|
|
5414
|
+
}, { deep: !0, immediate: !0 }), E(() => r.filters, (_) => {
|
|
5415
5415
|
_ && d(_);
|
|
5416
5416
|
}, { deep: !0, immediate: !0 });
|
|
5417
|
-
const
|
|
5417
|
+
const f = V(() => [
|
|
5418
5418
|
{ id: "1", name: r.literals.and },
|
|
5419
5419
|
{ id: "2", name: r.literals.or }
|
|
5420
|
-
]),
|
|
5420
|
+
]), y = V(() => r.availableCategories.map((_) => ({
|
|
5421
5421
|
id: _.name,
|
|
5422
5422
|
name: _.name,
|
|
5423
5423
|
label: _.label
|
|
5424
|
-
}))),
|
|
5424
|
+
}))), $ = V(() => ({
|
|
5425
5425
|
id: t.value.name,
|
|
5426
5426
|
label: t.value.label,
|
|
5427
5427
|
name: t.value.name
|
|
5428
|
-
})),
|
|
5428
|
+
})), k = V(() => o.map((_) => _.type === "uiInput" ? {
|
|
5429
5429
|
name: _.label,
|
|
5430
5430
|
operator: r.literals.contains,
|
|
5431
5431
|
value: _.props.value || ""
|
|
@@ -5439,10 +5439,10 @@ const Ee = /* @__PURE__ */ oe(Hd, [["render", Ud]]), Zd = { class: "flex flex-co
|
|
|
5439
5439
|
value: ""
|
|
5440
5440
|
})), D = (_) => {
|
|
5441
5441
|
s.value = Array.isArray(_) ? _[0] || { id: "1", name: r.literals.and } : _;
|
|
5442
|
-
},
|
|
5442
|
+
}, b = (_) => {
|
|
5443
5443
|
const P = Array.isArray(_) ? _[0] : _, q = r.availableCategories.find((I) => I.name === P.id);
|
|
5444
5444
|
q && (t.value = q);
|
|
5445
|
-
},
|
|
5445
|
+
}, L = () => {
|
|
5446
5446
|
if (!t.value || !t.value.name)
|
|
5447
5447
|
return;
|
|
5448
5448
|
const _ = {
|
|
@@ -5472,14 +5472,14 @@ const Ee = /* @__PURE__ */ oe(Hd, [["render", Ud]]), Zd = { class: "flex flex-co
|
|
|
5472
5472
|
};
|
|
5473
5473
|
i("smartFiltersSent", q), _();
|
|
5474
5474
|
};
|
|
5475
|
-
return (_, P) => (l(),
|
|
5475
|
+
return (_, P) => (l(), x(c(St), { class: "relative" }, {
|
|
5476
5476
|
default: h(() => [
|
|
5477
5477
|
g(c(Bt), { class: "inline-flex items-center gap-x-2 text-sm/6 font-semibold text-gray-900 outline-none flex-wrap gap-y-1" }, {
|
|
5478
5478
|
default: h(() => [
|
|
5479
5479
|
e("span", null, m(r.literals.filters) + ": ", 1),
|
|
5480
|
-
(l(!0), n(
|
|
5480
|
+
(l(!0), n(C, null, S(k.value, (q, I) => (l(), n(C, { key: I }, [
|
|
5481
5481
|
e("span", Gd, m(q.name) + " " + m(q.operator) + ": " + m(q.value), 1),
|
|
5482
|
-
I <
|
|
5482
|
+
I < k.value.length - 1 ? (l(), n("span", Qd, m(s.value.name), 1)) : w("", !0)
|
|
5483
5483
|
], 64))), 128)),
|
|
5484
5484
|
g(c(le), {
|
|
5485
5485
|
class: "size-5",
|
|
@@ -5505,13 +5505,13 @@ const Ee = /* @__PURE__ */ oe(Hd, [["render", Ud]]), Zd = { class: "flex flex-co
|
|
|
5505
5505
|
g(te, {
|
|
5506
5506
|
loading: !1,
|
|
5507
5507
|
class: "w-60",
|
|
5508
|
-
items:
|
|
5509
|
-
select:
|
|
5510
|
-
onSelectChanged:
|
|
5508
|
+
items: y.value,
|
|
5509
|
+
select: $.value,
|
|
5510
|
+
onSelectChanged: b
|
|
5511
5511
|
}, null, 8, ["items", "select"]),
|
|
5512
|
-
g(
|
|
5512
|
+
g(U, {
|
|
5513
5513
|
loading: !1,
|
|
5514
|
-
onClick:
|
|
5514
|
+
onClick: L,
|
|
5515
5515
|
disabled: !t.value || !t.value.name
|
|
5516
5516
|
}, {
|
|
5517
5517
|
default: h(() => [...P[0] || (P[0] = [
|
|
@@ -5520,7 +5520,7 @@ const Ee = /* @__PURE__ */ oe(Hd, [["render", Ud]]), Zd = { class: "flex flex-co
|
|
|
5520
5520
|
_: 1
|
|
5521
5521
|
}, 8, ["disabled"])
|
|
5522
5522
|
]),
|
|
5523
|
-
(l(!0), n(
|
|
5523
|
+
(l(!0), n(C, null, S(o, (I, G) => (l(), n("div", {
|
|
5524
5524
|
class: "flex items-center gap-x-2 w-full",
|
|
5525
5525
|
key: I.name
|
|
5526
5526
|
}, [
|
|
@@ -5544,14 +5544,14 @@ const Ee = /* @__PURE__ */ oe(Hd, [["render", Ud]]), Zd = { class: "flex flex-co
|
|
|
5544
5544
|
]),
|
|
5545
5545
|
_: 2
|
|
5546
5546
|
}, 1024),
|
|
5547
|
-
I.type === "uiSelect" ? (l(),
|
|
5547
|
+
I.type === "uiSelect" ? (l(), x(te, {
|
|
5548
5548
|
key: 0,
|
|
5549
5549
|
class: "grow",
|
|
5550
5550
|
loading: !1,
|
|
5551
5551
|
items: I.props.items || [],
|
|
5552
5552
|
select: I.props.select || I.props.items?.[0] || { id: "0", name: "Select..." },
|
|
5553
5553
|
onSelectChanged: (X) => A(G, X)
|
|
5554
|
-
}, null, 8, ["items", "select", "onSelectChanged"])) : I.type === "uiInput" ? (l(),
|
|
5554
|
+
}, null, 8, ["items", "select", "onSelectChanged"])) : I.type === "uiInput" ? (l(), x(J, {
|
|
5555
5555
|
key: 1,
|
|
5556
5556
|
class: "grow",
|
|
5557
5557
|
loading: !1,
|
|
@@ -5559,15 +5559,15 @@ const Ee = /* @__PURE__ */ oe(Hd, [["render", Ud]]), Zd = { class: "flex flex-co
|
|
|
5559
5559
|
value: I.props.value || "",
|
|
5560
5560
|
onInput: (X) => A(G, X.target.value)
|
|
5561
5561
|
}, null, 8, ["name", "value", "onInput"])) : w("", !0),
|
|
5562
|
-
G === 0 ? (l(),
|
|
5562
|
+
G === 0 ? (l(), x(te, {
|
|
5563
5563
|
key: 2,
|
|
5564
5564
|
onSelectChanged: D,
|
|
5565
5565
|
class: "w-24 uppercase",
|
|
5566
5566
|
loading: !1,
|
|
5567
|
-
items:
|
|
5567
|
+
items: f.value,
|
|
5568
5568
|
select: s.value
|
|
5569
5569
|
}, null, 8, ["items", "select"])) : w("", !0),
|
|
5570
|
-
G > 0 ? (l(),
|
|
5570
|
+
G > 0 ? (l(), x(Z, {
|
|
5571
5571
|
key: 3,
|
|
5572
5572
|
loading: !1,
|
|
5573
5573
|
size: "big",
|
|
@@ -5579,7 +5579,7 @@ const Ee = /* @__PURE__ */ oe(Hd, [["render", Ud]]), Zd = { class: "flex flex-co
|
|
|
5579
5579
|
]),
|
|
5580
5580
|
_: 1
|
|
5581
5581
|
})) : w("", !0),
|
|
5582
|
-
g(
|
|
5582
|
+
g(F, {
|
|
5583
5583
|
icon: c(he),
|
|
5584
5584
|
color: "red",
|
|
5585
5585
|
loading: !1,
|
|
@@ -5590,7 +5590,7 @@ const Ee = /* @__PURE__ */ oe(Hd, [["render", Ud]]), Zd = { class: "flex flex-co
|
|
|
5590
5590
|
]))), 128))
|
|
5591
5591
|
]),
|
|
5592
5592
|
e("div", tu, [
|
|
5593
|
-
g(
|
|
5593
|
+
g(U, {
|
|
5594
5594
|
loading: !1,
|
|
5595
5595
|
color: "red",
|
|
5596
5596
|
icon: c(he),
|
|
@@ -5601,7 +5601,7 @@ const Ee = /* @__PURE__ */ oe(Hd, [["render", Ud]]), Zd = { class: "flex flex-co
|
|
|
5601
5601
|
]),
|
|
5602
5602
|
_: 1
|
|
5603
5603
|
}, 8, ["icon"]),
|
|
5604
|
-
g(
|
|
5604
|
+
g(U, {
|
|
5605
5605
|
loading: !1,
|
|
5606
5606
|
icon: c(It),
|
|
5607
5607
|
onClick: (I) => N(q)
|
|
@@ -5633,21 +5633,19 @@ const Ee = /* @__PURE__ */ oe(Hd, [["render", Ud]]), Zd = { class: "flex flex-co
|
|
|
5633
5633
|
loading: { type: Boolean, default: !0 },
|
|
5634
5634
|
literals: {}
|
|
5635
5635
|
},
|
|
5636
|
-
emits: ["compareButtonClicked", "
|
|
5636
|
+
emits: ["compareButtonClicked", "filesUploaded", "checkboxChanged", "generateNewFile"],
|
|
5637
5637
|
setup(p, { emit: u }) {
|
|
5638
|
-
const r = p, i = u, s = V(() => r.toCompare && Object.keys(r.toCompare).length > 0 && r.toCompare.constructor === Object), o = V(() => s.value ? Object.entries(r.toCompare).map(([f,
|
|
5638
|
+
const r = p, i = u, s = V(() => r.toCompare && Object.keys(r.toCompare).length > 0 && r.toCompare.constructor === Object), o = V(() => s.value ? Object.entries(r.toCompare).map(([f, y]) => ({
|
|
5639
5639
|
name: f,
|
|
5640
|
-
commands:
|
|
5641
|
-
})) : []), t = (f,
|
|
5642
|
-
i("
|
|
5643
|
-
}, a = (
|
|
5644
|
-
i("checkboxChanged", f, C, b, D);
|
|
5645
|
-
}, d = () => {
|
|
5640
|
+
commands: y
|
|
5641
|
+
})) : []), t = (f, y, $, k) => {
|
|
5642
|
+
i("checkboxChanged", f, y, $, k);
|
|
5643
|
+
}, a = () => {
|
|
5646
5644
|
i("compareButtonClicked");
|
|
5647
|
-
},
|
|
5645
|
+
}, d = () => {
|
|
5648
5646
|
i("generateNewFile");
|
|
5649
5647
|
};
|
|
5650
|
-
return (f,
|
|
5648
|
+
return (f, y) => (l(), n("div", su, [
|
|
5651
5649
|
e("div", ou, [
|
|
5652
5650
|
e("div", ru, [
|
|
5653
5651
|
g($e, {
|
|
@@ -5659,7 +5657,7 @@ const Ee = /* @__PURE__ */ oe(Hd, [["render", Ud]]), Zd = { class: "flex flex-co
|
|
|
5659
5657
|
loading: !1,
|
|
5660
5658
|
accept: "application/data",
|
|
5661
5659
|
icon: c(Pe),
|
|
5662
|
-
|
|
5660
|
+
onFilesUploaded: y[0] || (y[0] = ($) => i("filesUploaded", $))
|
|
5663
5661
|
}, null, 8, ["placeholder", "dragAndDrop", "fileTypesAndSizes", "icon"]),
|
|
5664
5662
|
g($e, {
|
|
5665
5663
|
name: "file2",
|
|
@@ -5670,7 +5668,7 @@ const Ee = /* @__PURE__ */ oe(Hd, [["render", Ud]]), Zd = { class: "flex flex-co
|
|
|
5670
5668
|
loading: !1,
|
|
5671
5669
|
accept: "application/data",
|
|
5672
5670
|
icon: c(Pe),
|
|
5673
|
-
|
|
5671
|
+
onFilesUploaded: y[1] || (y[1] = ($) => i("filesUploaded", $))
|
|
5674
5672
|
}, null, 8, ["placeholder", "dragAndDrop", "fileTypesAndSizes", "icon"])
|
|
5675
5673
|
])
|
|
5676
5674
|
]),
|
|
@@ -5686,12 +5684,12 @@ const Ee = /* @__PURE__ */ oe(Hd, [["render", Ud]]), Zd = { class: "flex flex-co
|
|
|
5686
5684
|
]),
|
|
5687
5685
|
_: 1
|
|
5688
5686
|
}),
|
|
5689
|
-
g(
|
|
5687
|
+
g(U, {
|
|
5690
5688
|
color: "primary",
|
|
5691
5689
|
size: "medium",
|
|
5692
5690
|
loading: !1,
|
|
5693
5691
|
class: "mt-4",
|
|
5694
|
-
onClick:
|
|
5692
|
+
onClick: a
|
|
5695
5693
|
}, {
|
|
5696
5694
|
default: h(() => [
|
|
5697
5695
|
T(m(f.literals.compareFilesButton), 1)
|
|
@@ -5700,19 +5698,19 @@ const Ee = /* @__PURE__ */ oe(Hd, [["render", Ud]]), Zd = { class: "flex flex-co
|
|
|
5700
5698
|
})
|
|
5701
5699
|
]),
|
|
5702
5700
|
e("div", nu, [
|
|
5703
|
-
s.value ? (l(!0), n(
|
|
5704
|
-
key:
|
|
5701
|
+
s.value ? (l(!0), n(C, { key: 0 }, S(o.value, ($) => (l(), n("div", {
|
|
5702
|
+
key: $.name,
|
|
5705
5703
|
class: "p-6 bg-gray-50 border border-gray-300 rounded-lg shadow-sm"
|
|
5706
5704
|
}, [
|
|
5707
5705
|
g(c(ye), null, {
|
|
5708
|
-
default: h(({ open:
|
|
5706
|
+
default: h(({ open: k }) => [
|
|
5709
5707
|
g(c(Q), { class: "flex items-center justify-between w-full" }, {
|
|
5710
5708
|
default: h(() => [
|
|
5711
|
-
e("h2", iu, m(
|
|
5712
|
-
g(
|
|
5709
|
+
e("h2", iu, m($.name), 1),
|
|
5710
|
+
g(F, {
|
|
5713
5711
|
icon: c(le),
|
|
5714
5712
|
loading: !1,
|
|
5715
|
-
class: v(["cursor-pointer transition-transform duration-300 ease-in-out", { "rotate-180 transform":
|
|
5713
|
+
class: v(["cursor-pointer transition-transform duration-300 ease-in-out", { "rotate-180 transform": k }])
|
|
5716
5714
|
}, null, 8, ["icon", "class"])
|
|
5717
5715
|
]),
|
|
5718
5716
|
_: 2
|
|
@@ -5723,37 +5721,37 @@ const Ee = /* @__PURE__ */ oe(Hd, [["render", Ud]]), Zd = { class: "flex flex-co
|
|
|
5723
5721
|
e("div", uu, [
|
|
5724
5722
|
e("p", cu, m(f.literals.file1Content), 1),
|
|
5725
5723
|
e("div", mu, [
|
|
5726
|
-
(l(!0), n(
|
|
5727
|
-
key: `file1_${
|
|
5728
|
-
name: `file1_${
|
|
5729
|
-
id: `file1_${
|
|
5724
|
+
(l(!0), n(C, null, S($.commands[0]?.entries || [], (D, b) => (l(), x(re, {
|
|
5725
|
+
key: `file1_${$.name}_${b}`,
|
|
5726
|
+
name: `file1_${$.name}_${b}`,
|
|
5727
|
+
id: `file1_${$.name}_${b}`,
|
|
5730
5728
|
loading: !1,
|
|
5731
|
-
value: `file1_${
|
|
5732
|
-
|
|
5729
|
+
value: `file1_${$.name}_${b}`,
|
|
5730
|
+
onCheckboxChanged: (L) => t($.name, "1", b, L.checked)
|
|
5733
5731
|
}, {
|
|
5734
5732
|
default: h(() => [
|
|
5735
|
-
T(m(
|
|
5733
|
+
T(m(D), 1)
|
|
5736
5734
|
]),
|
|
5737
5735
|
_: 2
|
|
5738
|
-
}, 1032, ["name", "id", "value", "
|
|
5736
|
+
}, 1032, ["name", "id", "value", "onCheckboxChanged"]))), 128))
|
|
5739
5737
|
])
|
|
5740
5738
|
]),
|
|
5741
5739
|
e("div", gu, [
|
|
5742
5740
|
e("p", pu, m(f.literals.file2Content), 1),
|
|
5743
5741
|
e("div", fu, [
|
|
5744
|
-
(l(!0), n(
|
|
5745
|
-
key: `file2_${
|
|
5746
|
-
name: `file2_${
|
|
5747
|
-
id: `file2_${
|
|
5742
|
+
(l(!0), n(C, null, S($.commands[1]?.entries || [], (D, b) => (l(), x(re, {
|
|
5743
|
+
key: `file2_${$.name}_${b}`,
|
|
5744
|
+
name: `file2_${$.name}_${b}`,
|
|
5745
|
+
id: `file2_${$.name}_${b}`,
|
|
5748
5746
|
loading: !1,
|
|
5749
|
-
value: `file2_${
|
|
5750
|
-
|
|
5747
|
+
value: `file2_${$.name}_${b}`,
|
|
5748
|
+
onCheckboxChanged: (L) => t($.name, "2", b, L.checked)
|
|
5751
5749
|
}, {
|
|
5752
5750
|
default: h(() => [
|
|
5753
|
-
T(m(
|
|
5751
|
+
T(m(D), 1)
|
|
5754
5752
|
]),
|
|
5755
5753
|
_: 2
|
|
5756
|
-
}, 1032, ["name", "id", "value", "
|
|
5754
|
+
}, 1032, ["name", "id", "value", "onCheckboxChanged"]))), 128))
|
|
5757
5755
|
])
|
|
5758
5756
|
])
|
|
5759
5757
|
])
|
|
@@ -5763,21 +5761,21 @@ const Ee = /* @__PURE__ */ oe(Hd, [["render", Ud]]), Zd = { class: "flex flex-co
|
|
|
5763
5761
|
]),
|
|
5764
5762
|
_: 2
|
|
5765
5763
|
}, 1024)
|
|
5766
|
-
]))), 128)) : (l(),
|
|
5764
|
+
]))), 128)) : (l(), x(mt, {
|
|
5767
5765
|
key: 1,
|
|
5768
5766
|
title: f.literals.noResultsTitle,
|
|
5769
5767
|
message: f.literals.noResultsMessage
|
|
5770
5768
|
}, null, 8, ["title", "message"]))
|
|
5771
5769
|
]),
|
|
5772
5770
|
s.value ? (l(), n("div", hu, [
|
|
5773
|
-
g(
|
|
5771
|
+
g(U, {
|
|
5774
5772
|
color: "primary",
|
|
5775
5773
|
size: "medium",
|
|
5776
5774
|
loading: !1,
|
|
5777
5775
|
class: "mt-4",
|
|
5778
|
-
onClick:
|
|
5776
|
+
onClick: d
|
|
5779
5777
|
}, {
|
|
5780
|
-
default: h(() => [...
|
|
5778
|
+
default: h(() => [...y[2] || (y[2] = [
|
|
5781
5779
|
T(" Generar nuevo archivo ", -1)
|
|
5782
5780
|
])]),
|
|
5783
5781
|
_: 1
|
|
@@ -5785,11 +5783,11 @@ const Ee = /* @__PURE__ */ oe(Hd, [["render", Ud]]), Zd = { class: "flex flex-co
|
|
|
5785
5783
|
])) : w("", !0)
|
|
5786
5784
|
]));
|
|
5787
5785
|
}
|
|
5788
|
-
}),
|
|
5786
|
+
}), Ee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5789
5787
|
__proto__: null,
|
|
5790
5788
|
uiAlert: Ql,
|
|
5791
5789
|
uiBreadcrumbs: rs,
|
|
5792
|
-
uiButton:
|
|
5790
|
+
uiButton: U,
|
|
5793
5791
|
uiCard: ms,
|
|
5794
5792
|
uiChart: pr,
|
|
5795
5793
|
uiCheckbox: re,
|
|
@@ -5799,19 +5797,19 @@ const Ee = /* @__PURE__ */ oe(Hd, [["render", Ud]]), Zd = { class: "flex flex-co
|
|
|
5799
5797
|
uiDeviceStatus: bd,
|
|
5800
5798
|
uiDragAndDrop: Yi,
|
|
5801
5799
|
uiDropdown: we,
|
|
5802
|
-
uiDynamicStats:
|
|
5800
|
+
uiDynamicStats: Fd,
|
|
5803
5801
|
uiFilter: it,
|
|
5804
5802
|
uiFooter: vr,
|
|
5805
5803
|
uiFunnelChartV2: ni,
|
|
5806
|
-
uiGallery:
|
|
5807
|
-
uiIcon:
|
|
5804
|
+
uiGallery: Ai,
|
|
5805
|
+
uiIcon: F,
|
|
5808
5806
|
uiInput: J,
|
|
5809
5807
|
uiInputFile: $e,
|
|
5810
5808
|
uiLoadingScreen: br,
|
|
5811
5809
|
uiModal: dt,
|
|
5812
5810
|
uiNoResults: mt,
|
|
5813
5811
|
uiNotification: Ds,
|
|
5814
|
-
uiPagination:
|
|
5812
|
+
uiPagination: Fr,
|
|
5815
5813
|
uiPriceCalendar: tr,
|
|
5816
5814
|
uiRangeSlider: ad,
|
|
5817
5815
|
uiRightSidebar: _i,
|
|
@@ -5834,7 +5832,7 @@ const Ee = /* @__PURE__ */ oe(Hd, [["render", Ud]]), Zd = { class: "flex flex-co
|
|
|
5834
5832
|
uiTimeline: Tn,
|
|
5835
5833
|
uiToggle: ql,
|
|
5836
5834
|
uiTopbar: Xn,
|
|
5837
|
-
uiWrapper:
|
|
5835
|
+
uiWrapper: Ad
|
|
5838
5836
|
}, Symbol.toStringTag, { value: "Module" })), vu = [
|
|
5839
5837
|
"primary",
|
|
5840
5838
|
"secondary",
|
|
@@ -5851,10 +5849,10 @@ const Ee = /* @__PURE__ */ oe(Hd, [["render", Ud]]), Zd = { class: "flex flex-co
|
|
|
5851
5849
|
"datetime-local"
|
|
5852
5850
|
], bu = ["black", "gray", "white"], Du = [...vu, ...bu], wu = ["small", "medium", "big"], ku = ["bigger", "huge", "massive"], Tu = [...wu, ...ku], zu = ["default", "success", "warning", "danger"];
|
|
5853
5851
|
function xu(p) {
|
|
5854
|
-
for (const u in
|
|
5855
|
-
p.component(u,
|
|
5852
|
+
for (const u in Ee)
|
|
5853
|
+
p.component(u, Ee[u]);
|
|
5856
5854
|
}
|
|
5857
|
-
const
|
|
5855
|
+
const Au = { install: xu };
|
|
5858
5856
|
export {
|
|
5859
5857
|
Du as AllColors,
|
|
5860
5858
|
Tu as AllSizes,
|
|
@@ -5864,10 +5862,10 @@ export {
|
|
|
5864
5862
|
wu as Sizes,
|
|
5865
5863
|
zu as Types,
|
|
5866
5864
|
ju as UiInputTypes,
|
|
5867
|
-
|
|
5865
|
+
Au as default,
|
|
5868
5866
|
Ql as uiAlert,
|
|
5869
5867
|
rs as uiBreadcrumbs,
|
|
5870
|
-
|
|
5868
|
+
U as uiButton,
|
|
5871
5869
|
ms as uiCard,
|
|
5872
5870
|
pr as uiChart,
|
|
5873
5871
|
re as uiCheckbox,
|
|
@@ -5877,19 +5875,19 @@ export {
|
|
|
5877
5875
|
bd as uiDeviceStatus,
|
|
5878
5876
|
Yi as uiDragAndDrop,
|
|
5879
5877
|
we as uiDropdown,
|
|
5880
|
-
|
|
5878
|
+
Fd as uiDynamicStats,
|
|
5881
5879
|
it as uiFilter,
|
|
5882
5880
|
vr as uiFooter,
|
|
5883
5881
|
ni as uiFunnelChartV2,
|
|
5884
|
-
|
|
5885
|
-
|
|
5882
|
+
Ai as uiGallery,
|
|
5883
|
+
F as uiIcon,
|
|
5886
5884
|
J as uiInput,
|
|
5887
5885
|
$e as uiInputFile,
|
|
5888
5886
|
br as uiLoadingScreen,
|
|
5889
5887
|
dt as uiModal,
|
|
5890
5888
|
mt as uiNoResults,
|
|
5891
5889
|
Ds as uiNotification,
|
|
5892
|
-
|
|
5890
|
+
Fr as uiPagination,
|
|
5893
5891
|
tr as uiPriceCalendar,
|
|
5894
5892
|
ad as uiRangeSlider,
|
|
5895
5893
|
_i as uiRightSidebar,
|
|
@@ -5912,5 +5910,5 @@ export {
|
|
|
5912
5910
|
Tn as uiTimeline,
|
|
5913
5911
|
ql as uiToggle,
|
|
5914
5912
|
Xn as uiTopbar,
|
|
5915
|
-
|
|
5913
|
+
Ad as uiWrapper
|
|
5916
5914
|
};
|