@hotelinking/ui 13.45.17 → 14.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui.cjs +1 -1
- package/dist/ui.d.ts +8 -2
- package/dist/ui.es.js +712 -702
- package/package.json +1 -1
package/dist/ui.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Menu as he, MenuButton as ye, MenuItems as be, MenuItem as ve, Combobox as
|
|
3
|
-
import
|
|
1
|
+
import { defineComponent as B, createBlock as k, createElementBlock as n, openBlock as l, resolveDynamicComponent as Oe, normalizeClass as f, createCommentVNode as v, renderSlot as F, createElementVNode as e, ref as N, watch as V, computed as P, unref as c, withCtx as b, createVNode as p, toDisplayString as g, createTextVNode as A, Transition as ie, Fragment as x, renderList as S, withDirectives as _, vModelDynamic as lt, vShow as M, withModifiers as ge, vModelText as Q, createStaticVNode as G, resolveComponent as Me, vModelCheckbox as Ie, reactive as de, isRef as fe, TransitionGroup as st, onMounted as ot, shallowRef as rt, mergeProps as at } from "vue";
|
|
2
|
+
import { Menu as he, MenuButton as ye, MenuItems as be, MenuItem as ve, Combobox as Ne, ComboboxLabel as Pe, ComboboxInput as Ye, ComboboxButton as qe, ComboboxOptions as Fe, ComboboxOption as Ve, SwitchGroup as nt, Switch as it, SwitchLabel as dt, TransitionRoot as we, Dialog as ke, TransitionChild as J, DialogPanel as xe, DialogTitle as Re, Disclosure as $e, DisclosureButton as E, DisclosurePanel as _e, Listbox as ut, ListboxLabel as ct, ListboxButton as gt, ListboxOptions as mt, ListboxOption as pt } from "@headlessui/vue";
|
|
3
|
+
import I from "dayjs";
|
|
4
4
|
import Ce from "vue3-apexcharts";
|
|
5
5
|
import ft from "vue3-draggable";
|
|
6
6
|
import ht from "@vueform/slider";
|
|
7
|
-
const T = /* @__PURE__ */
|
|
7
|
+
const T = /* @__PURE__ */ B({
|
|
8
8
|
__name: "uiIcon",
|
|
9
9
|
props: {
|
|
10
10
|
icon: {},
|
|
@@ -43,7 +43,7 @@ const T = /* @__PURE__ */ M({
|
|
|
43
43
|
}), yt = ["disabled"], bt = {
|
|
44
44
|
key: 1,
|
|
45
45
|
class: "animate-pulse px-4 py-2.5 text-sm rounded-md inline-flex items-center border border-transparent font-medium shadow-sm text-white focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-25 bg-gray-200"
|
|
46
|
-
}, Z = /* @__PURE__ */
|
|
46
|
+
}, Z = /* @__PURE__ */ B({
|
|
47
47
|
__name: "uiButton",
|
|
48
48
|
props: {
|
|
49
49
|
block: { type: Boolean },
|
|
@@ -95,7 +95,7 @@ const T = /* @__PURE__ */ M({
|
|
|
95
95
|
}, wt = { class: "flex items-center h-5" }, kt = ["checked", "value", "disabled"], xt = { class: "ml-3 text-sm" }, $t = { class: "text-black" }, _t = {
|
|
96
96
|
key: 1,
|
|
97
97
|
class: "flex items-center animate-pulse"
|
|
98
|
-
}, Ue = /* @__PURE__ */
|
|
98
|
+
}, Ue = /* @__PURE__ */ B({
|
|
99
99
|
__name: "uiCheckbox",
|
|
100
100
|
props: {
|
|
101
101
|
check: { type: Boolean, default: !1 },
|
|
@@ -507,7 +507,7 @@ function Ot(m, u) {
|
|
|
507
507
|
})
|
|
508
508
|
]);
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function It(m, u) {
|
|
511
511
|
return l(), n("svg", {
|
|
512
512
|
xmlns: "http://www.w3.org/2000/svg",
|
|
513
513
|
fill: "none",
|
|
@@ -558,7 +558,7 @@ function W(m, u) {
|
|
|
558
558
|
})
|
|
559
559
|
]);
|
|
560
560
|
}
|
|
561
|
-
const
|
|
561
|
+
const Nt = {
|
|
562
562
|
key: 0,
|
|
563
563
|
class: "block text-sm font-medium"
|
|
564
564
|
}, Pt = {
|
|
@@ -568,7 +568,7 @@ const It = {
|
|
|
568
568
|
}, Yt = { class: "-py-1" }, qt = ["onClick"], Ft = {
|
|
569
569
|
key: 1,
|
|
570
570
|
class: "animate-pulse px-4 py-2 bg-gray-200 rounded-md inline-flex items-center relative text-left h-10"
|
|
571
|
-
}, ce = /* @__PURE__ */
|
|
571
|
+
}, ce = /* @__PURE__ */ B({
|
|
572
572
|
__name: "uiDropdown",
|
|
573
573
|
props: {
|
|
574
574
|
items: {},
|
|
@@ -581,7 +581,7 @@ const It = {
|
|
|
581
581
|
},
|
|
582
582
|
emits: ["optionSelected"],
|
|
583
583
|
setup(m, { emit: u }) {
|
|
584
|
-
const a = u, i = m, s =
|
|
584
|
+
const a = u, i = m, s = P(() => {
|
|
585
585
|
let t = i.items.find((r) => r.active === !0);
|
|
586
586
|
return t ? t.name : i.label;
|
|
587
587
|
}), o = (t) => {
|
|
@@ -603,12 +603,12 @@ const It = {
|
|
|
603
603
|
e("div", {
|
|
604
604
|
class: f(["flex justify-between sha items-center", { "mt-1": t.label }])
|
|
605
605
|
}, [
|
|
606
|
-
t.label ? (l(), n("label",
|
|
606
|
+
t.label ? (l(), n("label", Nt, g(t.label), 1)) : v("", !0),
|
|
607
607
|
t.requiredText ? (l(), n("span", Pt, g(t.requiredText), 1)) : v("", !0)
|
|
608
608
|
], 2),
|
|
609
609
|
p(c(ye), { 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" }, {
|
|
610
610
|
default: b(() => [
|
|
611
|
-
|
|
611
|
+
A(g(s.value) + " ", 1),
|
|
612
612
|
t.verticalPosition === "bottom" ? (l(), k(c(ne), {
|
|
613
613
|
key: 0,
|
|
614
614
|
"aria-hidden": "true",
|
|
@@ -643,7 +643,7 @@ const It = {
|
|
|
643
643
|
}, {
|
|
644
644
|
default: b(() => [
|
|
645
645
|
e("div", Yt, [
|
|
646
|
-
(l(!0), n(x, null,
|
|
646
|
+
(l(!0), n(x, null, S(t.items, (d, h) => (l(), k(c(ve), { key: h }, {
|
|
647
647
|
default: b(() => [
|
|
648
648
|
e("a", {
|
|
649
649
|
onClick: (y) => o(d),
|
|
@@ -679,7 +679,7 @@ const It = {
|
|
|
679
679
|
}, Jt = {
|
|
680
680
|
key: 0,
|
|
681
681
|
class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/3 md:w-1/4 mb-1.5"
|
|
682
|
-
}, H = /* @__PURE__ */
|
|
682
|
+
}, H = /* @__PURE__ */ B({
|
|
683
683
|
__name: "uiInput",
|
|
684
684
|
props: {
|
|
685
685
|
label: {},
|
|
@@ -725,7 +725,7 @@ const It = {
|
|
|
725
725
|
onClick: r[0] || (r[0] = (d) => t.$emit("addOnClicked")),
|
|
726
726
|
class: "inline-flex items-center px-3 rounded-l-md border border-r-0 border-gray-800 bg-black text-white hover:text-black hover:bg-lime-400 sm:text-sm cursor-pointer"
|
|
727
727
|
}, g(t.addOn), 1)) : v("", !0),
|
|
728
|
-
|
|
728
|
+
_(e("input", {
|
|
729
729
|
"onUpdate:modelValue": r[1] || (r[1] = (d) => s.value = d),
|
|
730
730
|
max: t.max,
|
|
731
731
|
class: f([{
|
|
@@ -764,30 +764,30 @@ const It = {
|
|
|
764
764
|
color: t.color,
|
|
765
765
|
loading: t.loading
|
|
766
766
|
}, null, 8, ["icon", "color", "loading"])) : v("", !0),
|
|
767
|
-
|
|
767
|
+
_(p(T, {
|
|
768
768
|
icon: c(Se),
|
|
769
769
|
color: "green",
|
|
770
770
|
loading: t.loading
|
|
771
771
|
}, null, 8, ["icon", "loading"]), [
|
|
772
|
-
[
|
|
772
|
+
[M, t.color === "green"]
|
|
773
773
|
]),
|
|
774
|
-
|
|
774
|
+
_(p(T, {
|
|
775
775
|
icon: c(U),
|
|
776
776
|
color: "yellow",
|
|
777
777
|
loading: t.loading
|
|
778
778
|
}, null, 8, ["icon", "loading"]), [
|
|
779
|
-
[
|
|
779
|
+
[M, t.color === "yellow"]
|
|
780
780
|
]),
|
|
781
|
-
|
|
781
|
+
_(p(T, {
|
|
782
782
|
icon: c(W),
|
|
783
783
|
color: "red",
|
|
784
784
|
loading: t.loading
|
|
785
785
|
}, null, 8, ["icon", "loading"]), [
|
|
786
|
-
[
|
|
786
|
+
[M, t.color === "red"]
|
|
787
787
|
])
|
|
788
788
|
])
|
|
789
789
|
], 2),
|
|
790
|
-
|
|
790
|
+
_(e("p", {
|
|
791
791
|
class: f([{
|
|
792
792
|
"text-gray-400": t.color === "gray",
|
|
793
793
|
"text-red-600": t.color === "red",
|
|
@@ -795,7 +795,7 @@ const It = {
|
|
|
795
795
|
"text-green-600": t.color === "green"
|
|
796
796
|
}, "mt-2 text-xs flex flex-row items-center"])
|
|
797
797
|
}, g(t.error), 3), [
|
|
798
|
-
[
|
|
798
|
+
[M, t.error]
|
|
799
799
|
])
|
|
800
800
|
]));
|
|
801
801
|
}
|
|
@@ -808,7 +808,7 @@ const It = {
|
|
|
808
808
|
}, el = { class: "space-y-1 flex flex-col items-center justify-center" }, tl = { class: "flex text-sm flex-col sm:flex-row text-center" }, ll = ["for"], sl = ["id", "name", "accept"], ol = { class: "pl-1" }, rl = { class: "text-xs pb-4" }, al = { class: "mt-2 text-xs flex flex-row items-center text-red-600" }, nl = {
|
|
809
809
|
key: 1,
|
|
810
810
|
class: "animate-pulse"
|
|
811
|
-
}, il = /* @__PURE__ */
|
|
811
|
+
}, il = /* @__PURE__ */ B({
|
|
812
812
|
__name: "uiInputFile",
|
|
813
813
|
props: {
|
|
814
814
|
name: {},
|
|
@@ -889,21 +889,21 @@ const It = {
|
|
|
889
889
|
e("p", ol, g(d.dragAndDrop), 1)
|
|
890
890
|
]),
|
|
891
891
|
e("p", rl, g(d.fileTypesAndSizes), 1),
|
|
892
|
-
|
|
893
|
-
[
|
|
892
|
+
_(e("p", { class: "font-bold text-xs uppercase block p-2 bg-lime-50 rounded" }, g(c(a)), 513), [
|
|
893
|
+
[M, c(a) !== null]
|
|
894
894
|
])
|
|
895
895
|
])
|
|
896
896
|
], 34),
|
|
897
|
-
|
|
897
|
+
_(e("p", al, [
|
|
898
898
|
p(T, {
|
|
899
899
|
icon: c(ue),
|
|
900
900
|
color: "red",
|
|
901
901
|
class: "mr-2",
|
|
902
902
|
loading: d.loading
|
|
903
903
|
}, null, 8, ["icon", "loading"]),
|
|
904
|
-
|
|
904
|
+
A(" " + g(d.error), 1)
|
|
905
905
|
], 512), [
|
|
906
|
-
[
|
|
906
|
+
[M, d.error]
|
|
907
907
|
])
|
|
908
908
|
]));
|
|
909
909
|
}
|
|
@@ -913,7 +913,7 @@ const It = {
|
|
|
913
913
|
}, cl = { class: "relative" }, gl = {
|
|
914
914
|
key: 1,
|
|
915
915
|
class: "animate-pulse px-4 py-2.5 bg-gray-200 rounded-md flex justify-between items-center w-full"
|
|
916
|
-
}, ml = /* @__PURE__ */
|
|
916
|
+
}, ml = /* @__PURE__ */ B({
|
|
917
917
|
__name: "uiSelect",
|
|
918
918
|
props: {
|
|
919
919
|
items: {},
|
|
@@ -929,9 +929,9 @@ const It = {
|
|
|
929
929
|
},
|
|
930
930
|
emits: ["selectChanged"],
|
|
931
931
|
setup(m, { expose: u, emit: a }) {
|
|
932
|
-
const i = N(""), s = a, o = m, t =
|
|
932
|
+
const i = N(""), s = a, o = m, t = P(() => i.value === "" ? o.items : o.items.filter((y) => y.name.toLowerCase().includes(i.value.toLowerCase()))), r = (y) => y?.name ?? "", d = (y) => {
|
|
933
933
|
s("selectChanged", y);
|
|
934
|
-
}, h =
|
|
934
|
+
}, h = P({
|
|
935
935
|
get: () => o.select,
|
|
936
936
|
set: (y) => {
|
|
937
937
|
d(y);
|
|
@@ -939,17 +939,17 @@ const It = {
|
|
|
939
939
|
});
|
|
940
940
|
return u({
|
|
941
941
|
handleChange: d
|
|
942
|
-
}), (y,
|
|
943
|
-
|
|
942
|
+
}), (y, D) => y.loading ? (l(), n("div", gl, [
|
|
943
|
+
D[3] || (D[3] = e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1)),
|
|
944
944
|
p(c(me), {
|
|
945
945
|
"aria-hidden": "true",
|
|
946
946
|
class: "-mr-1 ml-2 h-5 w-5 text-gray-300 dark:text-gray-400"
|
|
947
947
|
})
|
|
948
|
-
])) : (l(), k(c(
|
|
948
|
+
])) : (l(), k(c(Ne), {
|
|
949
949
|
key: 0,
|
|
950
950
|
modelValue: h.value,
|
|
951
951
|
"onUpdate:modelValue": [
|
|
952
|
-
|
|
952
|
+
D[2] || (D[2] = (C) => h.value = C),
|
|
953
953
|
d
|
|
954
954
|
],
|
|
955
955
|
disabled: y.disabled,
|
|
@@ -959,7 +959,7 @@ const It = {
|
|
|
959
959
|
e("div", dl, [
|
|
960
960
|
p(c(Pe), { class: "block text-sm font-medium" }, {
|
|
961
961
|
default: b(() => [
|
|
962
|
-
|
|
962
|
+
A(g(y.label), 1)
|
|
963
963
|
]),
|
|
964
964
|
_: 1
|
|
965
965
|
}),
|
|
@@ -967,8 +967,8 @@ const It = {
|
|
|
967
967
|
]),
|
|
968
968
|
e("div", cl, [
|
|
969
969
|
p(c(Ye), {
|
|
970
|
-
onChange:
|
|
971
|
-
onBlur:
|
|
970
|
+
onChange: D[0] || (D[0] = (C) => i.value = C.target.value),
|
|
971
|
+
onBlur: D[1] || (D[1] = (C) => i.value = ""),
|
|
972
972
|
displayValue: r,
|
|
973
973
|
class: f([{
|
|
974
974
|
"mt-1": y.requiredText || y.label,
|
|
@@ -999,26 +999,26 @@ const It = {
|
|
|
999
999
|
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"
|
|
1000
1000
|
}, {
|
|
1001
1001
|
default: b(() => [
|
|
1002
|
-
(l(!0), n(x, null,
|
|
1003
|
-
key:
|
|
1004
|
-
value:
|
|
1002
|
+
(l(!0), n(x, null, S(t.value, (C) => (l(), k(c(Ve), {
|
|
1003
|
+
key: C.id,
|
|
1004
|
+
value: C,
|
|
1005
1005
|
as: "template"
|
|
1006
1006
|
}, {
|
|
1007
|
-
default: b(({ active:
|
|
1007
|
+
default: b(({ active: z, selected: w }) => [
|
|
1008
1008
|
e("li", {
|
|
1009
1009
|
class: f([
|
|
1010
1010
|
"relative cursor-default select-none py-2 pl-3 pr-9",
|
|
1011
|
-
|
|
1011
|
+
z ? "bg-indigo-600 text-white" : "text-gray-900"
|
|
1012
1012
|
])
|
|
1013
1013
|
}, [
|
|
1014
1014
|
e("span", {
|
|
1015
|
-
class: f(["block truncate",
|
|
1016
|
-
}, g(
|
|
1017
|
-
|
|
1015
|
+
class: f(["block truncate", w && "font-semibold"])
|
|
1016
|
+
}, g(C.name), 3),
|
|
1017
|
+
w ? (l(), n("span", {
|
|
1018
1018
|
key: 0,
|
|
1019
1019
|
class: f([
|
|
1020
1020
|
"absolute inset-y-0 right-0 flex items-center pr-4",
|
|
1021
|
-
|
|
1021
|
+
z ? "text-white" : "text-indigo-600"
|
|
1022
1022
|
])
|
|
1023
1023
|
}, [
|
|
1024
1024
|
p(c(Se), {
|
|
@@ -1035,7 +1035,7 @@ const It = {
|
|
|
1035
1035
|
_: 1
|
|
1036
1036
|
})) : v("", !0)
|
|
1037
1037
|
]),
|
|
1038
|
-
|
|
1038
|
+
_(e("p", {
|
|
1039
1039
|
class: f([{
|
|
1040
1040
|
"text-gray-400": y.color === "gray",
|
|
1041
1041
|
"text-red-600": y.color === "red",
|
|
@@ -1043,7 +1043,7 @@ const It = {
|
|
|
1043
1043
|
"text-green-600": y.color === "green"
|
|
1044
1044
|
}, "mt-2 text-xs flex flex-row items-center"])
|
|
1045
1045
|
}, g(y.error), 3), [
|
|
1046
|
-
[
|
|
1046
|
+
[M, y.error]
|
|
1047
1047
|
])
|
|
1048
1048
|
]),
|
|
1049
1049
|
_: 1
|
|
@@ -1083,7 +1083,7 @@ function fl(m, u) {
|
|
|
1083
1083
|
const hl = { class: "flex justify-between" }, yl = {
|
|
1084
1084
|
key: 0,
|
|
1085
1085
|
class: "text-[10px] uppercase justify-self-end self-center"
|
|
1086
|
-
}, Be = /* @__PURE__ */
|
|
1086
|
+
}, Be = /* @__PURE__ */ B({
|
|
1087
1087
|
__name: "uiSelect_v2",
|
|
1088
1088
|
props: {
|
|
1089
1089
|
items: {},
|
|
@@ -1099,12 +1099,12 @@ const hl = { class: "flex justify-between" }, yl = {
|
|
|
1099
1099
|
},
|
|
1100
1100
|
emits: ["selectChanged"],
|
|
1101
1101
|
setup(m, { emit: u }) {
|
|
1102
|
-
const a = m, i = u, s = N(""), o = N(a.select), t =
|
|
1102
|
+
const a = m, i = u, s = N(""), o = N(a.select), t = P(
|
|
1103
1103
|
() => s.value === "" ? a.items : a.items.filter((d) => d.name.toLowerCase().includes(s.value.toLowerCase()))
|
|
1104
1104
|
), r = (d) => {
|
|
1105
1105
|
s.value = "", i("selectChanged", d);
|
|
1106
1106
|
};
|
|
1107
|
-
return (d, h) => (l(), k(c(
|
|
1107
|
+
return (d, h) => (l(), k(c(Ne), {
|
|
1108
1108
|
as: "div",
|
|
1109
1109
|
modelValue: o.value,
|
|
1110
1110
|
"onUpdate:modelValue": [
|
|
@@ -1116,7 +1116,7 @@ const hl = { class: "flex justify-between" }, yl = {
|
|
|
1116
1116
|
e("div", hl, [
|
|
1117
1117
|
p(c(Pe), { class: "block text-sm font-medium" }, {
|
|
1118
1118
|
default: b(() => [
|
|
1119
|
-
|
|
1119
|
+
A(g(d.label), 1)
|
|
1120
1120
|
]),
|
|
1121
1121
|
_: 1
|
|
1122
1122
|
}),
|
|
@@ -1160,21 +1160,21 @@ const hl = { class: "flex justify-between" }, yl = {
|
|
|
1160
1160
|
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"
|
|
1161
1161
|
}, {
|
|
1162
1162
|
default: b(() => [
|
|
1163
|
-
(l(!0), n(x, null,
|
|
1163
|
+
(l(!0), n(x, null, S(t.value, (y) => (l(), k(c(Ve), {
|
|
1164
1164
|
key: y.id,
|
|
1165
1165
|
value: y,
|
|
1166
1166
|
as: "template"
|
|
1167
1167
|
}, {
|
|
1168
|
-
default: b(({ active:
|
|
1168
|
+
default: b(({ active: D, selected: C }) => [
|
|
1169
1169
|
e("li", {
|
|
1170
|
-
class: f(["relative cursor-default select-none py-2 pl-3 pr-9",
|
|
1170
|
+
class: f(["relative cursor-default select-none py-2 pl-3 pr-9", D ? "bg-lime-400 outline-none" : "text-gray-900"])
|
|
1171
1171
|
}, [
|
|
1172
1172
|
e("span", {
|
|
1173
|
-
class: f(["block truncate",
|
|
1173
|
+
class: f(["block truncate", C && "font-semibold"])
|
|
1174
1174
|
}, g(y.name), 3),
|
|
1175
|
-
|
|
1175
|
+
C ? (l(), n("span", {
|
|
1176
1176
|
key: 0,
|
|
1177
|
-
class: f(["absolute inset-y-0 right-0 flex items-center pr-4",
|
|
1177
|
+
class: f(["absolute inset-y-0 right-0 flex items-center pr-4", D ? "text-black" : "text-lime-400"])
|
|
1178
1178
|
}, [
|
|
1179
1179
|
p(c(pl), {
|
|
1180
1180
|
class: "size-5",
|
|
@@ -1189,7 +1189,7 @@ const hl = { class: "flex justify-between" }, yl = {
|
|
|
1189
1189
|
_: 1
|
|
1190
1190
|
})) : v("", !0)
|
|
1191
1191
|
], 2),
|
|
1192
|
-
|
|
1192
|
+
_(e("p", {
|
|
1193
1193
|
class: f([{
|
|
1194
1194
|
"text-gray-400": d.color === "gray",
|
|
1195
1195
|
"text-red-600": d.color === "red",
|
|
@@ -1197,7 +1197,7 @@ const hl = { class: "flex justify-between" }, yl = {
|
|
|
1197
1197
|
"text-green-600": d.color === "green"
|
|
1198
1198
|
}, "mt-2 text-xs flex flex-row items-center"])
|
|
1199
1199
|
}, g(d.error), 3), [
|
|
1200
|
-
[
|
|
1200
|
+
[M, d.error]
|
|
1201
1201
|
])
|
|
1202
1202
|
]),
|
|
1203
1203
|
_: 1
|
|
@@ -1206,7 +1206,7 @@ const hl = { class: "flex justify-between" }, yl = {
|
|
|
1206
1206
|
}), bl = {
|
|
1207
1207
|
key: 1,
|
|
1208
1208
|
class: "inline-flex items-center px-3 py-2.5 rounded text-xs font-medium leading-none animate-pulse bg-gray-200"
|
|
1209
|
-
}, R = /* @__PURE__ */
|
|
1209
|
+
}, R = /* @__PURE__ */ B({
|
|
1210
1210
|
__name: "uiTag",
|
|
1211
1211
|
props: {
|
|
1212
1212
|
color: { default: "primary" },
|
|
@@ -1255,7 +1255,7 @@ const hl = { class: "flex justify-between" }, yl = {
|
|
|
1255
1255
|
}, $l = ["disabled", "placeholder"], _l = {
|
|
1256
1256
|
key: 1,
|
|
1257
1257
|
class: "animate-pulse"
|
|
1258
|
-
}, Cl = /* @__PURE__ */
|
|
1258
|
+
}, Cl = /* @__PURE__ */ B({
|
|
1259
1259
|
__name: "uiTextArea",
|
|
1260
1260
|
props: {
|
|
1261
1261
|
name: {},
|
|
@@ -1286,7 +1286,7 @@ const hl = { class: "flex justify-between" }, yl = {
|
|
|
1286
1286
|
e("div", {
|
|
1287
1287
|
class: f({ "mt-1": t.label })
|
|
1288
1288
|
}, [
|
|
1289
|
-
|
|
1289
|
+
_(e("textarea", {
|
|
1290
1290
|
disabled: t.disabled,
|
|
1291
1291
|
rows: "4",
|
|
1292
1292
|
"onUpdate:modelValue": r[0] || (r[0] = (d) => o.value = d),
|
|
@@ -1308,7 +1308,7 @@ const hl = { class: "flex justify-between" }, yl = {
|
|
|
1308
1308
|
[Q, o.value]
|
|
1309
1309
|
])
|
|
1310
1310
|
], 2),
|
|
1311
|
-
|
|
1311
|
+
_(e("p", {
|
|
1312
1312
|
class: f([{
|
|
1313
1313
|
"text-gray-300": t.color === "gray",
|
|
1314
1314
|
"text-red-600": t.color === "red",
|
|
@@ -1322,9 +1322,9 @@ const hl = { class: "flex justify-between" }, yl = {
|
|
|
1322
1322
|
class: "mr-2",
|
|
1323
1323
|
loading: !1
|
|
1324
1324
|
}, null, 8, ["icon"]),
|
|
1325
|
-
|
|
1325
|
+
A(" " + g(t.error), 1)
|
|
1326
1326
|
], 2), [
|
|
1327
|
-
[
|
|
1327
|
+
[M, t.error]
|
|
1328
1328
|
])
|
|
1329
1329
|
]));
|
|
1330
1330
|
}
|
|
@@ -1334,7 +1334,7 @@ const hl = { class: "flex justify-between" }, yl = {
|
|
|
1334
1334
|
}, Ml = {
|
|
1335
1335
|
key: 1,
|
|
1336
1336
|
class: "animate-pulse flex items-center"
|
|
1337
|
-
}, Dl = /* @__PURE__ */
|
|
1337
|
+
}, Dl = /* @__PURE__ */ B({
|
|
1338
1338
|
__name: "uiToggle",
|
|
1339
1339
|
props: {
|
|
1340
1340
|
item: {},
|
|
@@ -1400,10 +1400,10 @@ const hl = { class: "flex justify-between" }, yl = {
|
|
|
1400
1400
|
}), jl = {
|
|
1401
1401
|
key: 0,
|
|
1402
1402
|
class: "flex flex-col"
|
|
1403
|
-
}, Tl = { class: "flex" }, zl = { class: "flex-shrink-0" }, Ll = { class: "ml-3" }, Al = { class: "mt-4" }, Ol = { class: "-my-1.5 -mx-2 gap-x-2 flex" },
|
|
1403
|
+
}, Tl = { class: "flex" }, zl = { class: "flex-shrink-0" }, Ll = { class: "ml-3" }, Al = { class: "mt-4" }, Ol = { class: "-my-1.5 -mx-2 gap-x-2 flex" }, Il = ["onClick"], Nl = {
|
|
1404
1404
|
key: 1,
|
|
1405
1405
|
class: "flex flex-col animate-pulse"
|
|
1406
|
-
}, Pl = /* @__PURE__ */
|
|
1406
|
+
}, Pl = /* @__PURE__ */ B({
|
|
1407
1407
|
__name: "uiAlert",
|
|
1408
1408
|
props: {
|
|
1409
1409
|
actions: {},
|
|
@@ -1416,7 +1416,7 @@ const hl = { class: "flex justify-between" }, yl = {
|
|
|
1416
1416
|
const a = u, i = (s) => {
|
|
1417
1417
|
a("alertEvent", s.event);
|
|
1418
1418
|
};
|
|
1419
|
-
return (s, o) => s.loading ? (l(), n("div",
|
|
1419
|
+
return (s, o) => s.loading ? (l(), n("div", Nl, o[0] || (o[0] = [
|
|
1420
1420
|
G('<div class="p-4 border-l-4 bg-gray-100 border-gray-400 rounded"><div class="flex"><div class="flex-shrink-0"><div class="h-6 w-6 animate-pulse rounded-full bg-gray-200 dark:bg-gray-300"></div></div><div class="ml-3 w-full"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/3 mb-2"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full mb-2"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-3/5"></div></div></div></div>', 1)
|
|
1421
1421
|
]))) : (l(), n("div", jl, [
|
|
1422
1422
|
e("div", {
|
|
@@ -1469,7 +1469,7 @@ const hl = { class: "flex justify-between" }, yl = {
|
|
|
1469
1469
|
], 2),
|
|
1470
1470
|
e("div", Al, [
|
|
1471
1471
|
e("div", Ol, [
|
|
1472
|
-
(l(!0), n(x, null,
|
|
1472
|
+
(l(!0), n(x, null, S(s.actions, (t, r) => (l(), n("button", {
|
|
1473
1473
|
onClick: (d) => i(t),
|
|
1474
1474
|
type: "button",
|
|
1475
1475
|
key: r,
|
|
@@ -1482,7 +1482,7 @@ const hl = { class: "flex justify-between" }, yl = {
|
|
|
1482
1482
|
},
|
|
1483
1483
|
"px-2 py-1.5 text-sm font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 underline"
|
|
1484
1484
|
])
|
|
1485
|
-
}, g(t.name), 11,
|
|
1485
|
+
}, g(t.name), 11, Il))), 128))
|
|
1486
1486
|
])
|
|
1487
1487
|
])
|
|
1488
1488
|
])
|
|
@@ -1503,7 +1503,7 @@ const hl = { class: "flex justify-between" }, yl = {
|
|
|
1503
1503
|
}, Ul = ["onClick"], Hl = {
|
|
1504
1504
|
key: 1,
|
|
1505
1505
|
class: "flex flex-row items-center animate-pulse"
|
|
1506
|
-
}, El = /* @__PURE__ */
|
|
1506
|
+
}, El = /* @__PURE__ */ B({
|
|
1507
1507
|
__name: "uiBreadcrumbs",
|
|
1508
1508
|
props: {
|
|
1509
1509
|
pages: {},
|
|
@@ -1518,7 +1518,7 @@ const hl = { class: "flex justify-between" }, yl = {
|
|
|
1518
1518
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5" }, null, -1)
|
|
1519
1519
|
]))) : (l(), n("nav", Yl, [
|
|
1520
1520
|
e("ol", ql, [
|
|
1521
|
-
(l(!0), n(x, null,
|
|
1521
|
+
(l(!0), n(x, null, S(a.pages, (s, o) => (l(), n("li", { key: o }, [
|
|
1522
1522
|
o == 0 ? (l(), n("div", Fl, [
|
|
1523
1523
|
e("p", {
|
|
1524
1524
|
onClick: (t) => a.$emit("breadCrumbClicked", s.routeName),
|
|
@@ -1551,7 +1551,7 @@ const hl = { class: "flex justify-between" }, yl = {
|
|
|
1551
1551
|
}, Ql = {
|
|
1552
1552
|
key: 1,
|
|
1553
1553
|
class: "rounded-lg bg-white shadow p-6 cursor-pointer animate-pulse"
|
|
1554
|
-
}, Xl = /* @__PURE__ */
|
|
1554
|
+
}, Xl = /* @__PURE__ */ B({
|
|
1555
1555
|
__name: "uiCard",
|
|
1556
1556
|
props: {
|
|
1557
1557
|
id: {},
|
|
@@ -1581,21 +1581,21 @@ const hl = { class: "flex justify-between" }, yl = {
|
|
|
1581
1581
|
])
|
|
1582
1582
|
]),
|
|
1583
1583
|
a.tags && a.tags?.length > 0 ? (l(), n("div", Kl, [
|
|
1584
|
-
(l(!0), n(x, null,
|
|
1584
|
+
(l(!0), n(x, null, S(a.tags, (s) => (l(), k(R, {
|
|
1585
1585
|
class: "mb-1 mr-1",
|
|
1586
1586
|
key: s.name,
|
|
1587
1587
|
color: s.color,
|
|
1588
1588
|
loading: a.loading
|
|
1589
1589
|
}, {
|
|
1590
1590
|
default: b(() => [
|
|
1591
|
-
|
|
1591
|
+
A(g(s.name), 1)
|
|
1592
1592
|
]),
|
|
1593
1593
|
_: 2
|
|
1594
1594
|
}, 1032, ["color", "loading"]))), 128))
|
|
1595
1595
|
])) : v("", !0)
|
|
1596
1596
|
]));
|
|
1597
1597
|
}
|
|
1598
|
-
}), Ke = /* @__PURE__ */
|
|
1598
|
+
}), Ke = /* @__PURE__ */ B({
|
|
1599
1599
|
__name: "uiFilter",
|
|
1600
1600
|
props: {
|
|
1601
1601
|
items: {},
|
|
@@ -1622,7 +1622,7 @@ const hl = { class: "flex justify-between" }, yl = {
|
|
|
1622
1622
|
}), es = { class: "fixed inset-0 z-10 overflow-y-auto" }, ts = { class: "flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0" }, ls = { class: "absolute top-0 right-0 hidden pt-4 pr-4 sm:block" }, ss = { class: "sm:flex sm:items-start" }, os = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full break-words" }, rs = { class: "mt-4 text-gray-500 text-sm" }, as = {
|
|
1623
1623
|
key: 0,
|
|
1624
1624
|
class: "mt-8"
|
|
1625
|
-
}, ns = ["onClick"], Qe = /* @__PURE__ */
|
|
1625
|
+
}, ns = ["onClick"], Qe = /* @__PURE__ */ B({
|
|
1626
1626
|
__name: "uiModal",
|
|
1627
1627
|
props: {
|
|
1628
1628
|
title: {},
|
|
@@ -1706,29 +1706,29 @@ const hl = { class: "flex justify-between" }, yl = {
|
|
|
1706
1706
|
"bg-yellow-100": o.type === "warning"
|
|
1707
1707
|
}])
|
|
1708
1708
|
}, [
|
|
1709
|
-
|
|
1709
|
+
_(p(c(W), {
|
|
1710
1710
|
class: "h-6 w-6 text-red-600",
|
|
1711
1711
|
"aria-hidden": "true"
|
|
1712
1712
|
}, null, 512), [
|
|
1713
|
-
[
|
|
1713
|
+
[M, o.type === "danger"]
|
|
1714
1714
|
]),
|
|
1715
|
-
|
|
1715
|
+
_(p(c(Se), {
|
|
1716
1716
|
class: "h-6 w-6 text-green-600",
|
|
1717
1717
|
"aria-hidden": "true"
|
|
1718
1718
|
}, null, 512), [
|
|
1719
|
-
[
|
|
1719
|
+
[M, o.type === "success"]
|
|
1720
1720
|
]),
|
|
1721
|
-
|
|
1721
|
+
_(p(c(U), {
|
|
1722
1722
|
class: "h-6 w-6 text-yellow-600",
|
|
1723
1723
|
"aria-hidden": "true"
|
|
1724
1724
|
}, null, 512), [
|
|
1725
|
-
[
|
|
1725
|
+
[M, o.type === "warning"]
|
|
1726
1726
|
]),
|
|
1727
|
-
|
|
1727
|
+
_(p(c(Lt), {
|
|
1728
1728
|
class: "h-6 w-6 text-black",
|
|
1729
1729
|
"aria-hidden": "true"
|
|
1730
1730
|
}, null, 512), [
|
|
1731
|
-
[
|
|
1731
|
+
[M, o.type === "default"]
|
|
1732
1732
|
])
|
|
1733
1733
|
], 2),
|
|
1734
1734
|
e("div", os, [
|
|
@@ -1737,7 +1737,7 @@ const hl = { class: "flex justify-between" }, yl = {
|
|
|
1737
1737
|
class: "text-lg font-medium leading-6"
|
|
1738
1738
|
}, {
|
|
1739
1739
|
default: b(() => [
|
|
1740
|
-
|
|
1740
|
+
A(g(o.title), 1)
|
|
1741
1741
|
]),
|
|
1742
1742
|
_: 1
|
|
1743
1743
|
}),
|
|
@@ -1745,7 +1745,7 @@ const hl = { class: "flex justify-between" }, yl = {
|
|
|
1745
1745
|
F(o.$slots, "default", { class: "break-words" })
|
|
1746
1746
|
]),
|
|
1747
1747
|
o.actions ? (l(), n("div", as, [
|
|
1748
|
-
(l(!0), n(x, null,
|
|
1748
|
+
(l(!0), n(x, null, S(o.actions, (r, d) => (l(), n("button", {
|
|
1749
1749
|
key: d,
|
|
1750
1750
|
type: "button",
|
|
1751
1751
|
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",
|
|
@@ -1772,7 +1772,7 @@ const hl = { class: "flex justify-between" }, yl = {
|
|
|
1772
1772
|
}), is = { class: "w-full flex flex-col items-center space-y-4 sm:items-end" }, ds = {
|
|
1773
1773
|
key: 0,
|
|
1774
1774
|
class: "max-w-sm w-full bg-white shadow-lg rounded-lg pointer-events-auto ring-1 ring-black ring-opacity-5 overflow-hidden"
|
|
1775
|
-
}, us = { class: "p-4" }, cs = { class: "flex items-start" }, gs = { class: "flex-shrink-0 mt-0.5" }, ms = { class: "ml-3 w-0 flex-1 pt-0.5" }, ps = { class: "font-medium text-gray-900" }, fs = { class: "mt-1 text-sm text-gray-500" }, hs = { class: "ml-4 flex-shrink-0 flex" }, ys = /* @__PURE__ */
|
|
1775
|
+
}, us = { class: "p-4" }, cs = { class: "flex items-start" }, gs = { class: "flex-shrink-0 mt-0.5" }, ms = { class: "ml-3 w-0 flex-1 pt-0.5" }, ps = { class: "font-medium text-gray-900" }, fs = { class: "mt-1 text-sm text-gray-500" }, hs = { class: "ml-4 flex-shrink-0 flex" }, ys = /* @__PURE__ */ B({
|
|
1776
1776
|
__name: "uiNotification",
|
|
1777
1777
|
props: {
|
|
1778
1778
|
type: { default: "info" },
|
|
@@ -1783,7 +1783,7 @@ const hl = { class: "flex justify-between" }, yl = {
|
|
|
1783
1783
|
},
|
|
1784
1784
|
emits: ["closeNotification"],
|
|
1785
1785
|
setup(m, { emit: u }) {
|
|
1786
|
-
const a = m, i =
|
|
1786
|
+
const a = m, i = P(() => a.show);
|
|
1787
1787
|
return (s, o) => (l(), n("div", {
|
|
1788
1788
|
"aria-live": "assertive",
|
|
1789
1789
|
class: f([{ fixed: s.fixed }, "inset-0 flex items-end px-4 py-6 pointer-events-none sm:p-6 sm:items-start"])
|
|
@@ -1802,29 +1802,29 @@ const hl = { class: "flex justify-between" }, yl = {
|
|
|
1802
1802
|
e("div", us, [
|
|
1803
1803
|
e("div", cs, [
|
|
1804
1804
|
e("div", gs, [
|
|
1805
|
-
|
|
1805
|
+
_(p(c(Ze), {
|
|
1806
1806
|
"aria-hidden": "true",
|
|
1807
1807
|
class: "h-6 w-6 text-green-600"
|
|
1808
1808
|
}, null, 512), [
|
|
1809
|
-
[
|
|
1809
|
+
[M, s.type === "success"]
|
|
1810
1810
|
]),
|
|
1811
|
-
|
|
1811
|
+
_(p(c(ue), {
|
|
1812
1812
|
"aria-hidden": "true",
|
|
1813
1813
|
class: "h-6 w-6 text-red-600"
|
|
1814
1814
|
}, null, 512), [
|
|
1815
|
-
[
|
|
1815
|
+
[M, s.type === "danger"]
|
|
1816
1816
|
]),
|
|
1817
|
-
|
|
1817
|
+
_(p(c(U), {
|
|
1818
1818
|
"aria-hidden": "true",
|
|
1819
1819
|
class: "h-6 w-6 text-yellow-400"
|
|
1820
1820
|
}, null, 512), [
|
|
1821
|
-
[
|
|
1821
|
+
[M, s.type === "warning"]
|
|
1822
1822
|
]),
|
|
1823
|
-
|
|
1823
|
+
_(p(c(Ge), {
|
|
1824
1824
|
"aria-hidden": "true",
|
|
1825
1825
|
class: "h-6 w-6 text-black"
|
|
1826
1826
|
}, null, 512), [
|
|
1827
|
-
[
|
|
1827
|
+
[M, s.type === "info"]
|
|
1828
1828
|
])
|
|
1829
1829
|
]),
|
|
1830
1830
|
e("div", ms, [
|
|
@@ -1860,7 +1860,7 @@ const hl = { class: "flex justify-between" }, yl = {
|
|
|
1860
1860
|
}, vs = { class: "min-w-0" }, ws = { class: "flex items-start gap-x-3" }, ks = { class: "text-sm font-semibold leading-6 text-gray-900" }, xs = { class: "mt-1 flex items-center gap-x-2 text-xs leading-5 text-gray-500" }, $s = { class: "truncate" }, _s = { class: "flex flex-none items-center gap-x-4" }, Cs = ["href"], Ss = { class: "sr-only" }, Bs = {
|
|
1861
1861
|
key: 1,
|
|
1862
1862
|
class: "divide-y divide-gray-100 animate-pulse"
|
|
1863
|
-
}, Ms = /* @__PURE__ */
|
|
1863
|
+
}, Ms = /* @__PURE__ */ B({
|
|
1864
1864
|
__name: "uiTaskList",
|
|
1865
1865
|
props: {
|
|
1866
1866
|
tasks: {},
|
|
@@ -1868,14 +1868,14 @@ const hl = { class: "flex justify-between" }, yl = {
|
|
|
1868
1868
|
},
|
|
1869
1869
|
setup(m) {
|
|
1870
1870
|
return (u, a) => u.loading ? (l(), n("ul", Bs, [
|
|
1871
|
-
(l(!0), n(x, null,
|
|
1871
|
+
(l(!0), n(x, null, S(u.tasks, (i) => (l(), n("li", {
|
|
1872
1872
|
key: i.id,
|
|
1873
1873
|
class: "flex items-center justify-between gap-x-6 py-5"
|
|
1874
1874
|
}, a[0] || (a[0] = [
|
|
1875
1875
|
G('<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)
|
|
1876
1876
|
])))), 128))
|
|
1877
1877
|
])) : (l(), n("ul", bs, [
|
|
1878
|
-
(l(!0), n(x, null,
|
|
1878
|
+
(l(!0), n(x, null, S(u.tasks, (i) => (l(), n("li", {
|
|
1879
1879
|
key: i.id,
|
|
1880
1880
|
class: "flex items-center justify-between gap-x-6 py-5"
|
|
1881
1881
|
}, [
|
|
@@ -1902,7 +1902,7 @@ const hl = { class: "flex justify-between" }, yl = {
|
|
|
1902
1902
|
href: i.href,
|
|
1903
1903
|
class: "hidden rounded-md bg-white 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"
|
|
1904
1904
|
}, [
|
|
1905
|
-
|
|
1905
|
+
A(g(i.action), 1),
|
|
1906
1906
|
e("span", Ss, ", " + g(i.name), 1)
|
|
1907
1907
|
], 8, Cs)
|
|
1908
1908
|
])
|
|
@@ -1917,7 +1917,7 @@ var le = { exports: {} }, js = le.exports, De;
|
|
|
1917
1917
|
function Ts() {
|
|
1918
1918
|
return De || (De = 1, function(m, u) {
|
|
1919
1919
|
(function(a, i) {
|
|
1920
|
-
m.exports = i(
|
|
1920
|
+
m.exports = i(I);
|
|
1921
1921
|
})(js, function(a) {
|
|
1922
1922
|
function i(t) {
|
|
1923
1923
|
return t && typeof t == "object" && "default" in t ? t : { default: t };
|
|
@@ -1934,15 +1934,15 @@ var se = { exports: {} }, zs = se.exports, je;
|
|
|
1934
1934
|
function Ls() {
|
|
1935
1935
|
return je || (je = 1, function(m, u) {
|
|
1936
1936
|
(function(a, i) {
|
|
1937
|
-
m.exports = i(
|
|
1937
|
+
m.exports = i(I);
|
|
1938
1938
|
})(zs, function(a) {
|
|
1939
1939
|
function i(d) {
|
|
1940
1940
|
return d && typeof d == "object" && "default" in d ? d : { default: d };
|
|
1941
1941
|
}
|
|
1942
1942
|
var s = i(a), 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"] };
|
|
1943
1943
|
function t(d, h, y) {
|
|
1944
|
-
var
|
|
1945
|
-
return Array.isArray(
|
|
1944
|
+
var D = o[y];
|
|
1945
|
+
return Array.isArray(D) && (D = D[h ? 0 : 1]), D.replace("%d", d);
|
|
1946
1946
|
}
|
|
1947
1947
|
var r = { 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) {
|
|
1948
1948
|
return d + ".";
|
|
@@ -1966,12 +1966,12 @@ function Os() {
|
|
|
1966
1966
|
}(oe)), oe.exports;
|
|
1967
1967
|
}
|
|
1968
1968
|
Os();
|
|
1969
|
-
var re = { exports: {} },
|
|
1970
|
-
function
|
|
1969
|
+
var re = { exports: {} }, Is = re.exports, ze;
|
|
1970
|
+
function Ns() {
|
|
1971
1971
|
return ze || (ze = 1, function(m, u) {
|
|
1972
1972
|
(function(a, i) {
|
|
1973
|
-
m.exports = i(
|
|
1974
|
-
})(
|
|
1973
|
+
m.exports = i(I);
|
|
1974
|
+
})(Is, function(a) {
|
|
1975
1975
|
function i(t) {
|
|
1976
1976
|
return t && typeof t == "object" && "default" in t ? t : { default: t };
|
|
1977
1977
|
}
|
|
@@ -1982,7 +1982,7 @@ function Is() {
|
|
|
1982
1982
|
});
|
|
1983
1983
|
}(re)), re.exports;
|
|
1984
1984
|
}
|
|
1985
|
-
|
|
1985
|
+
Ns();
|
|
1986
1986
|
const ee = (m, u) => {
|
|
1987
1987
|
const a = m.__vccOpts || m;
|
|
1988
1988
|
for (const [i, s] of u)
|
|
@@ -1993,13 +1993,13 @@ const ee = (m, u) => {
|
|
|
1993
1993
|
components: { ChevronLeftIcon: We, ChevronRightIcon: X },
|
|
1994
1994
|
computed: {
|
|
1995
1995
|
currentDate() {
|
|
1996
|
-
return
|
|
1996
|
+
return I(this.selectedDate).locale("es");
|
|
1997
1997
|
},
|
|
1998
1998
|
today() {
|
|
1999
|
-
return
|
|
1999
|
+
return I(/* @__PURE__ */ new Date()).locale("es");
|
|
2000
2000
|
},
|
|
2001
2001
|
formatedDate() {
|
|
2002
|
-
return
|
|
2002
|
+
return I(this.currentDate).locale("es").format("DD MMM YYYY");
|
|
2003
2003
|
}
|
|
2004
2004
|
},
|
|
2005
2005
|
props: {
|
|
@@ -2013,9 +2013,9 @@ const ee = (m, u) => {
|
|
|
2013
2013
|
let a;
|
|
2014
2014
|
if (u === "previous") {
|
|
2015
2015
|
if (this.currentDate <= this.today) return;
|
|
2016
|
-
m === "day" && (a =
|
|
2016
|
+
m === "day" && (a = I(this.currentDate).subtract(1, "day")), m === "month" && (a = I(this.currentDate).subtract(1, "month")), m === "year" && (a = I(this.currentDate).subtract(1, "year")), a <= this.today && (a = this.currentDate = this.today);
|
|
2017
2017
|
}
|
|
2018
|
-
u === "next" && (m === "day" && (a =
|
|
2018
|
+
u === "next" && (m === "day" && (a = I(this.selectedDate).add(1, "day")), m === "month" && (a = I(this.selectedDate).add(1, "month")), m === "year" && (a = I(this.selectedDate).add(1, "year"))), this.$emit("dateSelected", a);
|
|
2019
2019
|
}
|
|
2020
2020
|
}
|
|
2021
2021
|
}, Ys = { class: "dateSelector flex items-center flex-row" }, qs = { class: "pagination flex items-center my-1 md:my-0" }, Fs = { class: "date mx-4 font-bold text-center text-black select-none uppercase" }, Vs = { class: "pagination flex items-center my-1 sm:my-0" };
|
|
@@ -2127,7 +2127,7 @@ function Xs(m, u, a, i, s, o) {
|
|
|
2127
2127
|
])
|
|
2128
2128
|
], -1)),
|
|
2129
2129
|
e("tbody", Qs, [
|
|
2130
|
-
(l(), n(x, null,
|
|
2130
|
+
(l(), n(x, null, S(10, (t) => e("tr", { key: t }, u[0] || (u[0] = [
|
|
2131
2131
|
e("td", { class: "whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6" }, [
|
|
2132
2132
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })
|
|
2133
2133
|
], -1),
|
|
@@ -2147,7 +2147,7 @@ function Xs(m, u, a, i, s, o) {
|
|
|
2147
2147
|
}, [
|
|
2148
2148
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" }),
|
|
2149
2149
|
e("span", { class: "sr-only" }, [
|
|
2150
|
-
|
|
2150
|
+
A(", {"),
|
|
2151
2151
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })
|
|
2152
2152
|
])
|
|
2153
2153
|
])
|
|
@@ -2185,12 +2185,12 @@ const so = /* @__PURE__ */ Ds(lo), oo = {
|
|
|
2185
2185
|
},
|
|
2186
2186
|
computed: {
|
|
2187
2187
|
currentDay() {
|
|
2188
|
-
return
|
|
2189
|
-
dayName:
|
|
2190
|
-
day:
|
|
2191
|
-
month:
|
|
2192
|
-
isWeekend:
|
|
2193
|
-
isToday:
|
|
2188
|
+
return I.extend(so), {
|
|
2189
|
+
dayName: I(this.day).locale("es").format("ddd"),
|
|
2190
|
+
day: I(this.day).locale("es").format("DD"),
|
|
2191
|
+
month: I(this.day).locale("es").format("MMM."),
|
|
2192
|
+
isWeekend: I(this.day).format("d") == 6 || I(this.day).format("d") == 0,
|
|
2193
|
+
isToday: I(this.day).isToday()
|
|
2194
2194
|
};
|
|
2195
2195
|
}
|
|
2196
2196
|
}
|
|
@@ -2224,7 +2224,7 @@ const uo = /* @__PURE__ */ ee(oo, [["render", io]]), co = {
|
|
|
2224
2224
|
computed: {
|
|
2225
2225
|
currentDay() {
|
|
2226
2226
|
return {
|
|
2227
|
-
isWeekend:
|
|
2227
|
+
isWeekend: I(this.price.date).format("d") == 6 || I(this.price.date).format("d") == 0,
|
|
2228
2228
|
price: this.price.price
|
|
2229
2229
|
};
|
|
2230
2230
|
}
|
|
@@ -2285,10 +2285,10 @@ const te = /* @__PURE__ */ ee(co, [["render", mo]]), po = {
|
|
|
2285
2285
|
colspan: "2",
|
|
2286
2286
|
scope: "colgroup",
|
|
2287
2287
|
class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold"
|
|
2288
|
-
},
|
|
2288
|
+
}, Io = {
|
|
2289
2289
|
colspan: "2",
|
|
2290
2290
|
class: "relative py-3.5 pl-4 pr-3 text-left text-sm font-semibold sm:pl-6"
|
|
2291
|
-
},
|
|
2291
|
+
}, No = {
|
|
2292
2292
|
key: 0,
|
|
2293
2293
|
class: "absolute inset-y-0 left-0 w-0.5 bg-lime-400"
|
|
2294
2294
|
}, Po = ["value"], Yo = { class: "pl-6" }, qo = {
|
|
@@ -2297,7 +2297,7 @@ const te = /* @__PURE__ */ ee(co, [["render", mo]]), po = {
|
|
|
2297
2297
|
}, Fo = {
|
|
2298
2298
|
colspan: "2",
|
|
2299
2299
|
class: "pl-4"
|
|
2300
|
-
}, Vo = /* @__PURE__ */
|
|
2300
|
+
}, Vo = /* @__PURE__ */ B({
|
|
2301
2301
|
__name: "uiPriceCalendar",
|
|
2302
2302
|
props: {
|
|
2303
2303
|
loading: { type: Boolean },
|
|
@@ -2315,20 +2315,20 @@ const te = /* @__PURE__ */ ee(co, [["render", mo]]), po = {
|
|
|
2315
2315
|
V(() => a.today, ($) => {
|
|
2316
2316
|
o.value = $;
|
|
2317
2317
|
});
|
|
2318
|
-
const r =
|
|
2318
|
+
const r = P(() => {
|
|
2319
2319
|
let $ = [];
|
|
2320
|
-
for (let
|
|
2321
|
-
$.push(
|
|
2320
|
+
for (let Y = 0; Y < 14; Y++)
|
|
2321
|
+
$.push(I(o.value).add(Y, "day"));
|
|
2322
2322
|
return $;
|
|
2323
|
-
}), d =
|
|
2324
|
-
|
|
2323
|
+
}), d = P(() => t.value.length > 0 && t.value.length < a.rooms.length), h = ($) => {
|
|
2324
|
+
I($).isBefore(s.value) || (o.value = $, i("dateChanged", o.value));
|
|
2325
2325
|
}, y = ($) => {
|
|
2326
|
-
let
|
|
2327
|
-
return
|
|
2328
|
-
},
|
|
2329
|
-
t.value = $.target.checked ? a.rooms.map((
|
|
2330
|
-
},
|
|
2331
|
-
return ($,
|
|
2326
|
+
let Y = a.category.selectionPrices.find((O) => I(O.date).isSame($.date));
|
|
2327
|
+
return Y ? Y.price : $.price;
|
|
2328
|
+
}, D = ($) => {
|
|
2329
|
+
t.value = $.target.checked ? a.rooms.map((Y) => Y.id) : [];
|
|
2330
|
+
}, C = () => i("changeCategoryBulkPrices"), z = ($) => i("changeCategorySelectionPrice", $), w = ($) => i("changeCategoryUpgradePrice", $), L = ($) => i("tableAction", $), j = ($, Y, O) => i("changeRoomPrice", { price: $, roomId: Y, roomName: O });
|
|
2331
|
+
return ($, Y) => $.loading ? (l(), k(Xe, { key: 1 })) : (l(), n("div", po, [
|
|
2332
2332
|
e("div", fo, [
|
|
2333
2333
|
e("div", ho, [
|
|
2334
2334
|
e("div", yo, [
|
|
@@ -2338,17 +2338,17 @@ const te = /* @__PURE__ */ ee(co, [["render", mo]]), po = {
|
|
|
2338
2338
|
e("th", wo, [
|
|
2339
2339
|
p(Us, {
|
|
2340
2340
|
selectedDate: o.value,
|
|
2341
|
-
onDateSelected:
|
|
2341
|
+
onDateSelected: Y[0] || (Y[0] = (O) => h(O))
|
|
2342
2342
|
}, null, 8, ["selectedDate"])
|
|
2343
2343
|
]),
|
|
2344
|
-
(l(!0), n(x, null,
|
|
2344
|
+
(l(!0), n(x, null, S(r.value, (O, q) => (l(), n("th", {
|
|
2345
2345
|
scope: "col",
|
|
2346
2346
|
key: q,
|
|
2347
2347
|
class: "text-sm font-semibold p-0"
|
|
2348
2348
|
}, [
|
|
2349
2349
|
p(uo, {
|
|
2350
2350
|
class: "border-l border-gray-200 px-6 py-3",
|
|
2351
|
-
day:
|
|
2351
|
+
day: O
|
|
2352
2352
|
}, null, 8, ["day"])
|
|
2353
2353
|
]))), 128))
|
|
2354
2354
|
]),
|
|
@@ -2359,10 +2359,10 @@ const te = /* @__PURE__ */ ee(co, [["render", mo]]), po = {
|
|
|
2359
2359
|
loading: $.loading,
|
|
2360
2360
|
class: "ml-4",
|
|
2361
2361
|
size: "small",
|
|
2362
|
-
onClick:
|
|
2362
|
+
onClick: C
|
|
2363
2363
|
}, {
|
|
2364
2364
|
default: b(() => [
|
|
2365
|
-
|
|
2365
|
+
A(g($.literals.changeInBulk), 1)
|
|
2366
2366
|
]),
|
|
2367
2367
|
_: 1
|
|
2368
2368
|
}, 8, ["loading"])
|
|
@@ -2370,14 +2370,14 @@ const te = /* @__PURE__ */ ee(co, [["render", mo]]), po = {
|
|
|
2370
2370
|
]),
|
|
2371
2371
|
$.type === "discounts" ? (l(), n("tr", xo, [
|
|
2372
2372
|
e("td", $o, g($.literals.pricesDiscount), 1),
|
|
2373
|
-
(l(!0), n(x, null,
|
|
2373
|
+
(l(!0), n(x, null, S($.category.selectionPrices, (O, q) => (l(), n("td", {
|
|
2374
2374
|
key: q,
|
|
2375
2375
|
class: "p-0"
|
|
2376
2376
|
}, [
|
|
2377
2377
|
p(te, {
|
|
2378
|
-
onClick: (K) =>
|
|
2378
|
+
onClick: (K) => z(O),
|
|
2379
2379
|
class: "border-l border-gray-200 px-6 py-3 text-black hover:text-lime-400 font-bold cursor-pointer",
|
|
2380
|
-
price:
|
|
2380
|
+
price: O,
|
|
2381
2381
|
currency: $.currency.symbol,
|
|
2382
2382
|
isBasePrice: !0
|
|
2383
2383
|
}, null, 8, ["onClick", "price", "currency"])
|
|
@@ -2385,14 +2385,14 @@ const te = /* @__PURE__ */ ee(co, [["render", mo]]), po = {
|
|
|
2385
2385
|
])) : v("", !0),
|
|
2386
2386
|
$.type === "prices" ? (l(), n("tr", _o, [
|
|
2387
2387
|
e("td", Co, g($.literals.pricesSelection), 1),
|
|
2388
|
-
(l(!0), n(x, null,
|
|
2388
|
+
(l(!0), n(x, null, S($.category.selectionPrices, (O, q) => (l(), n("td", {
|
|
2389
2389
|
key: q,
|
|
2390
2390
|
class: "p-0"
|
|
2391
2391
|
}, [
|
|
2392
2392
|
p(te, {
|
|
2393
|
-
onClick: (K) =>
|
|
2393
|
+
onClick: (K) => z(O),
|
|
2394
2394
|
class: "border-l border-gray-200 px-6 py-3 text-black hover:text-lime-400 font-bold cursor-pointer",
|
|
2395
|
-
price:
|
|
2395
|
+
price: O,
|
|
2396
2396
|
currency: $.currency.symbol,
|
|
2397
2397
|
isBasePrice: !0
|
|
2398
2398
|
}, null, 8, ["onClick", "price", "currency"])
|
|
@@ -2400,14 +2400,14 @@ const te = /* @__PURE__ */ ee(co, [["render", mo]]), po = {
|
|
|
2400
2400
|
])) : v("", !0),
|
|
2401
2401
|
$.type === "prices" ? (l(), n("tr", So, [
|
|
2402
2402
|
e("td", Bo, g($.literals.pricesUpgrade), 1),
|
|
2403
|
-
(l(!0), n(x, null,
|
|
2403
|
+
(l(!0), n(x, null, S($.category.upgradePrices, (O, q) => (l(), n("td", {
|
|
2404
2404
|
key: q,
|
|
2405
2405
|
class: "p-0"
|
|
2406
2406
|
}, [
|
|
2407
2407
|
p(te, {
|
|
2408
|
-
onClick: (K) =>
|
|
2408
|
+
onClick: (K) => w(O),
|
|
2409
2409
|
class: "border-l border-gray-200 px-6 py-3 text-black hover:text-lime-400 font-bold cursor-pointer bg-gray-100",
|
|
2410
|
-
price:
|
|
2410
|
+
price: O,
|
|
2411
2411
|
currency: $.currency.symbol,
|
|
2412
2412
|
isBasePrice: !0
|
|
2413
2413
|
}, null, 8, ["onClick", "price", "currency"])
|
|
@@ -2416,12 +2416,12 @@ const te = /* @__PURE__ */ ee(co, [["render", mo]]), po = {
|
|
|
2416
2416
|
e("tr", null, [
|
|
2417
2417
|
e("th", Mo, [
|
|
2418
2418
|
t.value?.length > 0 && $.actions?.length > 0 ? (l(), n("div", Do, [
|
|
2419
|
-
(l(!0), n(x, null,
|
|
2420
|
-
onClick: (K) =>
|
|
2419
|
+
(l(!0), n(x, null, S($.actions, (O, q) => (l(), n("button", {
|
|
2420
|
+
onClick: (K) => L({ action: O.id, items: t.value }),
|
|
2421
2421
|
key: q,
|
|
2422
2422
|
type: "button",
|
|
2423
2423
|
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"
|
|
2424
|
-
}, g(
|
|
2424
|
+
}, g(O.name), 9, jo))), 128))
|
|
2425
2425
|
])) : v("", !0),
|
|
2426
2426
|
e("span", null, g($.literals.pricesSelection), 1)
|
|
2427
2427
|
])
|
|
@@ -2433,42 +2433,42 @@ const te = /* @__PURE__ */ ee(co, [["render", mo]]), po = {
|
|
|
2433
2433
|
class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-lime-400 focus:ring-lime-400",
|
|
2434
2434
|
checked: d.value || t.value.length === $.rooms.length,
|
|
2435
2435
|
indeterminate: d.value,
|
|
2436
|
-
onChange:
|
|
2436
|
+
onChange: D
|
|
2437
2437
|
}, null, 40, zo),
|
|
2438
2438
|
e("span", Lo, g($.literals.room), 1)
|
|
2439
2439
|
]),
|
|
2440
2440
|
e("th", Ao, g($.literals.building), 1),
|
|
2441
2441
|
e("th", Oo, g($.literals.floor), 1),
|
|
2442
|
-
|
|
2442
|
+
Y[2] || (Y[2] = e("th", {
|
|
2443
2443
|
colspan: "14",
|
|
2444
2444
|
scope: "colgroup",
|
|
2445
2445
|
class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold"
|
|
2446
2446
|
}, null, -1))
|
|
2447
2447
|
]),
|
|
2448
|
-
(l(!0), n(x, null,
|
|
2449
|
-
key:
|
|
2448
|
+
(l(!0), n(x, null, S($.rooms, (O) => (l(), n("tr", {
|
|
2449
|
+
key: O.name,
|
|
2450
2450
|
class: f([{ "even:bg-gray-100": $.type === "prices", "odd:bg-gray-100": $.type === "discounts" }])
|
|
2451
2451
|
}, [
|
|
2452
|
-
e("td",
|
|
2453
|
-
t.value.length > 0 ? (l(), n("div",
|
|
2454
|
-
|
|
2452
|
+
e("td", Io, [
|
|
2453
|
+
t.value.length > 0 ? (l(), n("div", No)) : v("", !0),
|
|
2454
|
+
_(e("input", {
|
|
2455
2455
|
type: "checkbox",
|
|
2456
2456
|
class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-lime-400 focus:ring-lime-400",
|
|
2457
|
-
value:
|
|
2458
|
-
"onUpdate:modelValue":
|
|
2457
|
+
value: O.name,
|
|
2458
|
+
"onUpdate:modelValue": Y[1] || (Y[1] = (q) => t.value = q)
|
|
2459
2459
|
}, null, 8, Po), [
|
|
2460
|
-
[
|
|
2460
|
+
[Ie, t.value]
|
|
2461
2461
|
]),
|
|
2462
|
-
e("span", Yo, g(
|
|
2462
|
+
e("span", Yo, g(O.name), 1)
|
|
2463
2463
|
]),
|
|
2464
|
-
e("td", qo, g(
|
|
2465
|
-
e("td", Fo, g(
|
|
2466
|
-
(l(!0), n(x, null,
|
|
2464
|
+
e("td", qo, g(O.building), 1),
|
|
2465
|
+
e("td", Fo, g(O.floor), 1),
|
|
2466
|
+
(l(!0), n(x, null, S(O.selectionPrices, (q, K) => (l(), n("td", {
|
|
2467
2467
|
class: "p-0",
|
|
2468
2468
|
key: K
|
|
2469
2469
|
}, [
|
|
2470
2470
|
p(te, {
|
|
2471
|
-
onClick: (
|
|
2471
|
+
onClick: (Id) => j(q, O.id, O.name),
|
|
2472
2472
|
class: "border-l border-gray-200 px-6 py-3 text-black hover:text-lime-400 cursor-pointer",
|
|
2473
2473
|
price: q,
|
|
2474
2474
|
currency: $.currency.symbol,
|
|
@@ -2486,7 +2486,7 @@ const te = /* @__PURE__ */ ee(co, [["render", mo]]), po = {
|
|
|
2486
2486
|
}), Ro = { class: "chart-header flex flex-row items-center w-full justify-between" }, Uo = { class: "text-sm font-medium text-gray-500 truncate mr-8" }, Ho = {
|
|
2487
2487
|
key: 0,
|
|
2488
2488
|
class: "flex items-center gap-x-2 grow"
|
|
2489
|
-
}, Eo = { class: "self-center ml-2" }, Zo = { class: "self-center ml-2" }, Wo = { class: "self-center ml-2" }, Jo = { class: "hidden sm:flex items-center" }, Go = { class: "w-1/2 min-w-0 flex-1" }, Ko = ["max"], Qo = { class: "min-w-0 flex-1" }, Xo = ["max"], er = { class: "chart-content relative" }, tr = /* @__PURE__ */
|
|
2489
|
+
}, Eo = { class: "self-center ml-2" }, Zo = { class: "self-center ml-2" }, Wo = { class: "self-center ml-2" }, Jo = { class: "hidden sm:flex items-center" }, Go = { class: "w-1/2 min-w-0 flex-1" }, Ko = ["max"], Qo = { class: "min-w-0 flex-1" }, Xo = ["max"], er = { class: "chart-content relative" }, tr = /* @__PURE__ */ B({
|
|
2490
2490
|
__name: "uiChart",
|
|
2491
2491
|
props: {
|
|
2492
2492
|
labels: {},
|
|
@@ -2510,8 +2510,8 @@ const te = /* @__PURE__ */ ee(co, [["render", mo]]), po = {
|
|
|
2510
2510
|
setup(m, { emit: u }) {
|
|
2511
2511
|
const a = u, i = N((/* @__PURE__ */ new Date()).toISOString().slice(0, (/* @__PURE__ */ new Date()).toISOString().lastIndexOf(":"))), s = m;
|
|
2512
2512
|
let o = de(s.dates || { from: "", to: i });
|
|
2513
|
-
V(() => s.dates, (
|
|
2514
|
-
|
|
2513
|
+
V(() => s.dates, (w) => {
|
|
2514
|
+
w && (o = w);
|
|
2515
2515
|
});
|
|
2516
2516
|
let r = {
|
|
2517
2517
|
chart: {
|
|
@@ -2524,10 +2524,10 @@ const te = /* @__PURE__ */ ee(co, [["render", mo]]), po = {
|
|
|
2524
2524
|
},
|
|
2525
2525
|
colors: function() {
|
|
2526
2526
|
return s.isNps ? [
|
|
2527
|
-
function({ value:
|
|
2528
|
-
if (
|
|
2529
|
-
if (
|
|
2530
|
-
if (
|
|
2527
|
+
function({ value: w, seriesIndex: L, dataPointIndex: j, w: $ }) {
|
|
2528
|
+
if (j <= 5) return "#F87171";
|
|
2529
|
+
if (j > 5 && j <= 7) return "#eab308";
|
|
2530
|
+
if (j >= 8) return "#84cc16";
|
|
2531
2531
|
}
|
|
2532
2532
|
] : [
|
|
2533
2533
|
"#000000",
|
|
@@ -2570,17 +2570,17 @@ const te = /* @__PURE__ */ ee(co, [["render", mo]]), po = {
|
|
|
2570
2570
|
]
|
|
2571
2571
|
}), s.type === "area" && (r.tooltip = { intersect: !1, shared: !0 });
|
|
2572
2572
|
const d = () => (r.chart.stacked = s.stacked, s.options && (s.options.xaxis.hideOverlappingLabels = !0, s.options.xaxis.decimalsInFloat = 2, s.options.xaxis.tickAmount = 10), { ...r, ...s.options, plotOptions: { bar: { horizontal: s.horizontal } } }), h = () => {
|
|
2573
|
-
o.from !== "" && o.to !== "" &&
|
|
2574
|
-
}, y =
|
|
2575
|
-
a("dataPointSelection", { id: s.id, chartContext:
|
|
2573
|
+
o.from !== "" && o.to !== "" && I(o.from).isBefore(I(o.to)) && a("selectedRange", { range: o, chartId: s.id });
|
|
2574
|
+
}, y = P(() => s.series), D = P(() => d()), C = () => a("chartUpdated"), z = (w, L, j) => {
|
|
2575
|
+
a("dataPointSelection", { id: s.id, chartContext: L, config: j, event: w });
|
|
2576
2576
|
};
|
|
2577
|
-
return (
|
|
2578
|
-
|
|
2579
|
-
class: f(["h-[" +
|
|
2577
|
+
return (w, L) => (l(), n(x, null, [
|
|
2578
|
+
_(e("div", {
|
|
2579
|
+
class: f(["h-[" + w.height + "px]", "card chart apex-chart p-4 bg-white shadow rounded-lg overflow-hidden flex grow"])
|
|
2580
2580
|
}, [
|
|
2581
2581
|
e("div", Ro, [
|
|
2582
|
-
e("div", Uo, g(
|
|
2583
|
-
|
|
2582
|
+
e("div", Uo, g(w.title), 1),
|
|
2583
|
+
w.isNps && w.npsLiterals ? (l(), n("div", Ho, [
|
|
2584
2584
|
p(R, {
|
|
2585
2585
|
size: "small",
|
|
2586
2586
|
color: "red",
|
|
@@ -2592,7 +2592,7 @@ const te = /* @__PURE__ */ ee(co, [["render", mo]]), po = {
|
|
|
2592
2592
|
loading: !1,
|
|
2593
2593
|
color: "red"
|
|
2594
2594
|
}, null, 8, ["icon"]),
|
|
2595
|
-
e("span", Eo, g(
|
|
2595
|
+
e("span", Eo, g(w.npsLiterals.unhappy), 1)
|
|
2596
2596
|
]),
|
|
2597
2597
|
_: 1
|
|
2598
2598
|
}),
|
|
@@ -2607,7 +2607,7 @@ const te = /* @__PURE__ */ ee(co, [["render", mo]]), po = {
|
|
|
2607
2607
|
loading: !1,
|
|
2608
2608
|
color: "yellow"
|
|
2609
2609
|
}, null, 8, ["icon"]),
|
|
2610
|
-
e("span", Zo, g(
|
|
2610
|
+
e("span", Zo, g(w.npsLiterals.neutral), 1)
|
|
2611
2611
|
]),
|
|
2612
2612
|
_: 1
|
|
2613
2613
|
}),
|
|
@@ -2622,16 +2622,16 @@ const te = /* @__PURE__ */ ee(co, [["render", mo]]), po = {
|
|
|
2622
2622
|
loading: !1,
|
|
2623
2623
|
color: "green"
|
|
2624
2624
|
}, null, 8, ["icon"]),
|
|
2625
|
-
e("span", Wo, g(
|
|
2625
|
+
e("span", Wo, g(w.npsLiterals.happy), 1)
|
|
2626
2626
|
]),
|
|
2627
2627
|
_: 1
|
|
2628
2628
|
})
|
|
2629
2629
|
])) : v("", !0),
|
|
2630
2630
|
e("div", Jo, [
|
|
2631
2631
|
e("div", Go, [
|
|
2632
|
-
|
|
2632
|
+
_(e("input", {
|
|
2633
2633
|
type: "datetime-local",
|
|
2634
|
-
"onUpdate:modelValue":
|
|
2634
|
+
"onUpdate:modelValue": L[0] || (L[0] = (j) => c(o).from = j),
|
|
2635
2635
|
max: i.value.toString(),
|
|
2636
2636
|
onChange: h,
|
|
2637
2637
|
name: "from",
|
|
@@ -2642,9 +2642,9 @@ const te = /* @__PURE__ */ ee(co, [["render", mo]]), po = {
|
|
|
2642
2642
|
])
|
|
2643
2643
|
]),
|
|
2644
2644
|
e("div", Qo, [
|
|
2645
|
-
|
|
2645
|
+
_(e("input", {
|
|
2646
2646
|
type: "datetime-local",
|
|
2647
|
-
"onUpdate:modelValue":
|
|
2647
|
+
"onUpdate:modelValue": L[1] || (L[1] = (j) => c(o).to = j),
|
|
2648
2648
|
max: i.value.toString(),
|
|
2649
2649
|
onChange: h,
|
|
2650
2650
|
name: "to",
|
|
@@ -2657,28 +2657,28 @@ const te = /* @__PURE__ */ ee(co, [["render", mo]]), po = {
|
|
|
2657
2657
|
p(T, {
|
|
2658
2658
|
class: "ml-4 cursor-pointer",
|
|
2659
2659
|
size: "big",
|
|
2660
|
-
loading:
|
|
2660
|
+
loading: w.loading,
|
|
2661
2661
|
icon: c(He),
|
|
2662
|
-
onClick:
|
|
2662
|
+
onClick: L[2] || (L[2] = (j) => w.$emit("maximizeChart", w.id))
|
|
2663
2663
|
}, null, 8, ["loading", "icon"])
|
|
2664
2664
|
])
|
|
2665
2665
|
]),
|
|
2666
|
-
|
|
2666
|
+
_(e("div", er, [
|
|
2667
2667
|
p(c(Ce), {
|
|
2668
2668
|
class: "chart",
|
|
2669
|
-
type:
|
|
2669
|
+
type: w.type,
|
|
2670
2670
|
series: y.value,
|
|
2671
|
-
height:
|
|
2672
|
-
options:
|
|
2673
|
-
onUpdated:
|
|
2674
|
-
onMounted:
|
|
2675
|
-
onDataPointSelection:
|
|
2671
|
+
height: w.height,
|
|
2672
|
+
options: D.value,
|
|
2673
|
+
onUpdated: C,
|
|
2674
|
+
onMounted: C,
|
|
2675
|
+
onDataPointSelection: z
|
|
2676
2676
|
}, null, 8, ["type", "series", "height", "options"])
|
|
2677
2677
|
], 512), [
|
|
2678
|
-
[
|
|
2678
|
+
[M, !w.empty]
|
|
2679
2679
|
]),
|
|
2680
|
-
|
|
2681
|
-
class: f(["h-[" +
|
|
2680
|
+
_(e("div", {
|
|
2681
|
+
class: f(["h-[" + w.height + "px]", "w-full flex items-center justify-center flex-col"])
|
|
2682
2682
|
}, [
|
|
2683
2683
|
p(T, {
|
|
2684
2684
|
icon: c(U),
|
|
@@ -2686,16 +2686,16 @@ const te = /* @__PURE__ */ ee(co, [["render", mo]]), po = {
|
|
|
2686
2686
|
loading: !1,
|
|
2687
2687
|
size: "massive"
|
|
2688
2688
|
}, null, 8, ["icon"]),
|
|
2689
|
-
|
|
2689
|
+
L[3] || (L[3] = e("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data for this time frame", -1))
|
|
2690
2690
|
], 2), [
|
|
2691
|
-
[
|
|
2691
|
+
[M, w.empty]
|
|
2692
2692
|
])
|
|
2693
2693
|
], 2), [
|
|
2694
|
-
[
|
|
2694
|
+
[M, !w.loading]
|
|
2695
2695
|
]),
|
|
2696
|
-
|
|
2697
|
-
class: f(["h-[" +
|
|
2698
|
-
},
|
|
2696
|
+
_(e("div", {
|
|
2697
|
+
class: f(["h-[" + w.height + "px]", "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80"])
|
|
2698
|
+
}, L[4] || (L[4] = [
|
|
2699
2699
|
e("div", {
|
|
2700
2700
|
role: "status",
|
|
2701
2701
|
class: "w-full animate-pulse h-full flex flex-col"
|
|
@@ -2722,7 +2722,7 @@ const te = /* @__PURE__ */ ee(co, [["render", mo]]), po = {
|
|
|
2722
2722
|
])
|
|
2723
2723
|
], -1)
|
|
2724
2724
|
]), 2), [
|
|
2725
|
-
[
|
|
2725
|
+
[M, w.loading]
|
|
2726
2726
|
])
|
|
2727
2727
|
], 64));
|
|
2728
2728
|
}
|
|
@@ -2738,7 +2738,7 @@ function or(m, u, a, i, s, o) {
|
|
|
2738
2738
|
], -1)
|
|
2739
2739
|
]));
|
|
2740
2740
|
}
|
|
2741
|
-
const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */
|
|
2741
|
+
const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ B({
|
|
2742
2742
|
__name: "uiLoadingScreen",
|
|
2743
2743
|
props: {
|
|
2744
2744
|
title: {},
|
|
@@ -2758,11 +2758,11 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
2758
2758
|
alt: "loading animation"
|
|
2759
2759
|
})
|
|
2760
2760
|
], -1)),
|
|
2761
|
-
|
|
2762
|
-
[
|
|
2761
|
+
_(e("h2", { class: "text-xs font-bold text-center uppercase mb-2" }, g(u.title), 513), [
|
|
2762
|
+
[M, u.title]
|
|
2763
2763
|
]),
|
|
2764
|
-
|
|
2765
|
-
[
|
|
2764
|
+
_(e("p", { class: "text-xs text-center uppercase md:w-1/4" }, g(u.message), 513), [
|
|
2765
|
+
[M, u.message]
|
|
2766
2766
|
])
|
|
2767
2767
|
], 2));
|
|
2768
2768
|
}
|
|
@@ -2775,32 +2775,33 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
2775
2775
|
}, ur = {
|
|
2776
2776
|
href: "#",
|
|
2777
2777
|
class: "ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50"
|
|
2778
|
-
}, cr = { class: "hidden sm:flex-1 sm:flex sm:items-center sm:justify-between" }, gr = { class: "text-sm text-gray-700" }, mr = { class: "font-bold mx-1" }, pr = { class: "font-bold mx-1" }, fr = {
|
|
2778
|
+
}, cr = { class: "hidden sm:flex-1 sm:flex sm:items-center sm:justify-between" }, gr = { class: "text-sm text-gray-700" }, mr = { class: "font-bold mx-1" }, pr = { class: "font-bold mx-1" }, fr = { class: "font-bold mx-1" }, hr = {
|
|
2779
2779
|
class: "relative z-0 inline-flex rounded-md shadow-sm -space-x-px",
|
|
2780
2780
|
"aria-label": "Pagination"
|
|
2781
|
-
},
|
|
2781
|
+
}, yr = { class: "sr-only" }, br = ["onClick"], vr = { class: "sr-only" }, wr = {
|
|
2782
2782
|
key: 1,
|
|
2783
2783
|
class: "py-6 flex flex-row justify-between items-center animate-pulse"
|
|
2784
|
-
},
|
|
2784
|
+
}, kr = /* @__PURE__ */ B({
|
|
2785
2785
|
__name: "uiPagination",
|
|
2786
2786
|
props: {
|
|
2787
2787
|
current: {},
|
|
2788
2788
|
total: {},
|
|
2789
|
+
totalItems: {},
|
|
2789
2790
|
loading: { type: Boolean, default: !0 }
|
|
2790
2791
|
},
|
|
2791
2792
|
emits: ["changePage"],
|
|
2792
2793
|
setup(m, { emit: u }) {
|
|
2793
|
-
const a = u, i = m, s = N(3), o =
|
|
2794
|
+
const a = u, i = m, s = N(3), o = P(
|
|
2794
2795
|
() => Math.max(1, Number(i.current) - Number(s.value))
|
|
2795
|
-
), t =
|
|
2796
|
+
), t = P(
|
|
2796
2797
|
() => Math.min(Number(i.current) + Number(s.value), Number(i.total))
|
|
2797
|
-
), r =
|
|
2798
|
+
), r = P(() => {
|
|
2798
2799
|
let d = [];
|
|
2799
2800
|
for (let h = Number(o.value); h <= Number(t.value); h++)
|
|
2800
2801
|
d.push(h);
|
|
2801
2802
|
return d;
|
|
2802
2803
|
});
|
|
2803
|
-
return (d, h) => d.loading ? (l(), n("div",
|
|
2804
|
+
return (d, h) => d.loading ? (l(), n("div", wr, h[3] || (h[3] = [
|
|
2804
2805
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5" }, null, -1),
|
|
2805
2806
|
e("div", { class: "h-10 w-32 bg-gray-200 rounded dark:bg-gray-300" }, null, -1)
|
|
2806
2807
|
]))) : (l(), n("div", nr, [
|
|
@@ -2818,17 +2819,21 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
2818
2819
|
F(d.$slots, "showing"),
|
|
2819
2820
|
e("span", mr, g(d.current), 1),
|
|
2820
2821
|
F(d.$slots, "of"),
|
|
2821
|
-
e("span", pr, g(d.total), 1)
|
|
2822
|
+
e("span", pr, g(d.total), 1),
|
|
2823
|
+
F(d.$slots, "pages"),
|
|
2824
|
+
h[2] || (h[2] = e("span", { class: "font-bold mx-1" }, "/", -1)),
|
|
2825
|
+
F(d.$slots, "fromTotal"),
|
|
2826
|
+
e("span", fr, g(d.totalItems), 1)
|
|
2822
2827
|
])
|
|
2823
2828
|
]),
|
|
2824
2829
|
e("div", null, [
|
|
2825
|
-
e("nav",
|
|
2826
|
-
|
|
2830
|
+
e("nav", hr, [
|
|
2831
|
+
_(e("button", {
|
|
2827
2832
|
ref: "test-first-button",
|
|
2828
2833
|
onClick: h[0] || (h[0] = (y) => a("changePage", d.current - 1)),
|
|
2829
2834
|
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"
|
|
2830
2835
|
}, [
|
|
2831
|
-
e("span",
|
|
2836
|
+
e("span", yr, [
|
|
2832
2837
|
F(d.$slots, "previous")
|
|
2833
2838
|
]),
|
|
2834
2839
|
p(c(We), {
|
|
@@ -2836,22 +2841,22 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
2836
2841
|
"aria-hidden": "true"
|
|
2837
2842
|
})
|
|
2838
2843
|
], 512), [
|
|
2839
|
-
[
|
|
2844
|
+
[M, d.current !== 1]
|
|
2840
2845
|
]),
|
|
2841
|
-
(l(!0), n(x, null,
|
|
2842
|
-
onClick: (
|
|
2846
|
+
(l(!0), n(x, null, S(r.value, (y) => (l(), n("button", {
|
|
2847
|
+
onClick: (D) => a("changePage", y),
|
|
2843
2848
|
key: y,
|
|
2844
2849
|
"aria-current": "page",
|
|
2845
2850
|
class: f([[
|
|
2846
2851
|
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"
|
|
2847
2852
|
], "relative inline-flex items-center px-4 py-2 border text-sm font-medium"])
|
|
2848
|
-
}, g(y), 11,
|
|
2849
|
-
|
|
2853
|
+
}, g(y), 11, br))), 128)),
|
|
2854
|
+
_(e("button", {
|
|
2850
2855
|
ref: "test-last-button",
|
|
2851
2856
|
onClick: h[1] || (h[1] = (y) => a("changePage", d.current + 1)),
|
|
2852
2857
|
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"
|
|
2853
2858
|
}, [
|
|
2854
|
-
e("span",
|
|
2859
|
+
e("span", vr, [
|
|
2855
2860
|
F(d.$slots, "next")
|
|
2856
2861
|
]),
|
|
2857
2862
|
p(c(X), {
|
|
@@ -2859,32 +2864,32 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
2859
2864
|
"aria-hidden": "true"
|
|
2860
2865
|
})
|
|
2861
2866
|
], 512), [
|
|
2862
|
-
[
|
|
2867
|
+
[M, d.current !== d.total]
|
|
2863
2868
|
])
|
|
2864
2869
|
])
|
|
2865
2870
|
])
|
|
2866
2871
|
])
|
|
2867
2872
|
]));
|
|
2868
2873
|
}
|
|
2869
|
-
}),
|
|
2874
|
+
}), xr = { class: "hidden md:flex md:flex-col sticky md:inset-y-0" }, $r = { class: "flex flex-col flex-grow overflow-y-auto" }, _r = { class: "grow flex flex-col" }, Cr = {
|
|
2870
2875
|
class: "flex-1 space-y-1",
|
|
2871
2876
|
"aria-label": "Sidebar"
|
|
2872
|
-
},
|
|
2877
|
+
}, Sr = { key: 0 }, Br = ["onClick"], Mr = {
|
|
2873
2878
|
key: 1,
|
|
2874
2879
|
class: "text-left"
|
|
2875
|
-
},
|
|
2880
|
+
}, Dr = {
|
|
2876
2881
|
key: 1,
|
|
2877
2882
|
class: "flex-1 text-left"
|
|
2878
|
-
},
|
|
2883
|
+
}, jr = {
|
|
2879
2884
|
key: 2,
|
|
2880
2885
|
class: "flex-1"
|
|
2881
|
-
},
|
|
2886
|
+
}, Tr = {
|
|
2882
2887
|
key: 0,
|
|
2883
2888
|
class: "align-left"
|
|
2884
|
-
},
|
|
2889
|
+
}, zr = {
|
|
2885
2890
|
key: 1,
|
|
2886
2891
|
class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2"
|
|
2887
|
-
},
|
|
2892
|
+
}, Lr = { class: "h-12 flex flex-row items-center" }, Ar = /* @__PURE__ */ B({
|
|
2888
2893
|
__name: "uiSidebar",
|
|
2889
2894
|
props: {
|
|
2890
2895
|
navigation: {},
|
|
@@ -2895,15 +2900,15 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
2895
2900
|
},
|
|
2896
2901
|
emits: ["sideBarClick"],
|
|
2897
2902
|
setup(m, { emit: u }) {
|
|
2898
|
-
const a = m, i = u, s =
|
|
2899
|
-
return (o, t) => (l(), n("div",
|
|
2900
|
-
e("div",
|
|
2901
|
-
e("div",
|
|
2902
|
-
e("nav",
|
|
2903
|
-
o.loading ? (l(), n(x, { key: 1 },
|
|
2903
|
+
const a = m, i = u, s = P(() => a.navigation ? Array.isArray(a.navigation) ? a.navigation : [a.navigation] : []);
|
|
2904
|
+
return (o, t) => (l(), n("div", xr, [
|
|
2905
|
+
e("div", $r, [
|
|
2906
|
+
e("div", _r, [
|
|
2907
|
+
e("nav", Cr, [
|
|
2908
|
+
o.loading ? (l(), n(x, { key: 1 }, S(5, (r) => e("div", Lr, t[1] || (t[1] = [
|
|
2904
2909
|
e("div", { class: "w-6 h-6 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 mr-4" }, null, -1),
|
|
2905
2910
|
e("div", { class: "h-3 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 grow" }, null, -1)
|
|
2906
|
-
]))), 64)) : (l(!0), n(x, { key: 0 },
|
|
2911
|
+
]))), 64)) : (l(!0), n(x, { key: 0 }, S(s.value, (r) => (l(), n(x, {
|
|
2907
2912
|
key: r.name
|
|
2908
2913
|
}, [
|
|
2909
2914
|
r.children ? (l(), k(c($e), {
|
|
@@ -2926,9 +2931,9 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
2926
2931
|
]),
|
|
2927
2932
|
"aria-hidden": "true"
|
|
2928
2933
|
}, null, 8, ["loading", "icon", "class"])) : v("", !0),
|
|
2929
|
-
o.loading ? (l(), n("div",
|
|
2934
|
+
o.loading ? (l(), n("div", jr, t[0] || (t[0] = [
|
|
2930
2935
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1)
|
|
2931
|
-
]))) : (l(), n("span",
|
|
2936
|
+
]))) : (l(), n("span", Dr, g(r.name), 1)),
|
|
2932
2937
|
p(c(X), {
|
|
2933
2938
|
class: f([d ? "text-black rotate-90" : "text-gray-400", "mr-3 flex-shrink-0 h-3 w-3 transform group-hover:text-gray-400 transition-colors ease-in-out duration-150"])
|
|
2934
2939
|
}, null, 8, ["class"])
|
|
@@ -2937,13 +2942,13 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
2937
2942
|
}, 1032, ["class"]),
|
|
2938
2943
|
p(c(_e), { class: "space-y-1" }, {
|
|
2939
2944
|
default: b(() => [
|
|
2940
|
-
(l(!0), n(x, null,
|
|
2945
|
+
(l(!0), n(x, null, S(r.children, (h) => (l(), k(c(E), {
|
|
2941
2946
|
onClick: (y) => i("sideBarClick", h.id),
|
|
2942
2947
|
key: h.name,
|
|
2943
2948
|
class: f([h.current ? "bg-gray-200" : "hover:text-gray-900 hover:bg-gray-100", "group text-gray-600 w-full flex items-center text-left pl-11 pr-2 py-2 text-sm font-medium rounded-md"])
|
|
2944
2949
|
}, {
|
|
2945
2950
|
default: b(() => [
|
|
2946
|
-
o.loading ? (l(), n("div",
|
|
2951
|
+
o.loading ? (l(), n("div", zr)) : (l(), n("span", Tr, g(h.name), 1))
|
|
2947
2952
|
]),
|
|
2948
2953
|
_: 2
|
|
2949
2954
|
}, 1032, ["onClick", "class"]))), 128))
|
|
@@ -2952,7 +2957,7 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
2952
2957
|
}, 1024)
|
|
2953
2958
|
]),
|
|
2954
2959
|
_: 2
|
|
2955
|
-
}, 1024)) : (l(), n("div",
|
|
2960
|
+
}, 1024)) : (l(), n("div", Sr, [
|
|
2956
2961
|
e("button", {
|
|
2957
2962
|
onClick: (d) => i("sideBarClick", r.id),
|
|
2958
2963
|
class: f([
|
|
@@ -2970,8 +2975,8 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
2970
2975
|
]),
|
|
2971
2976
|
"aria-hidden": "true"
|
|
2972
2977
|
}, null, 8, ["loading", "icon", "class"])) : v("", !0),
|
|
2973
|
-
o.loading ? v("", !0) : (l(), n("span",
|
|
2974
|
-
], 10,
|
|
2978
|
+
o.loading ? v("", !0) : (l(), n("span", Mr, g(r.name), 1))
|
|
2979
|
+
], 10, Br)
|
|
2975
2980
|
]))
|
|
2976
2981
|
], 64))), 128))
|
|
2977
2982
|
])
|
|
@@ -2979,24 +2984,24 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
2979
2984
|
])
|
|
2980
2985
|
]));
|
|
2981
2986
|
}
|
|
2982
|
-
}),
|
|
2987
|
+
}), Or = { class: "flex flex-row grow border-r border-gray-200 bg-white pr-6" }, Ir = { class: "bg-black w-16 mr-6" }, Nr = ["onClick"], Pr = ["src", "alt"], Yr = {
|
|
2983
2988
|
key: 0,
|
|
2984
2989
|
class: "flex flex-col grow gap-y-5 overflow-y-auto pr-6"
|
|
2985
|
-
},
|
|
2990
|
+
}, qr = ["src"], Fr = { class: "flex flex-1 flex-col" }, Vr = {
|
|
2986
2991
|
key: 0,
|
|
2987
2992
|
role: "list",
|
|
2988
2993
|
class: "flex flex-1 flex-col gap-y-7 mb-4"
|
|
2989
|
-
},
|
|
2994
|
+
}, Rr = {
|
|
2990
2995
|
role: "list",
|
|
2991
2996
|
class: "ml-2 space-y-1"
|
|
2992
|
-
},
|
|
2997
|
+
}, Ur = ["onClick"], Hr = {
|
|
2993
2998
|
key: 1,
|
|
2994
2999
|
role: "list",
|
|
2995
3000
|
class: "flex flex-1 flex-col gap-y-7 mb-4"
|
|
2996
|
-
},
|
|
3001
|
+
}, Er = { class: "ml-2 space-y-1" }, Zr = { class: "font-bold mb-4" }, Wr = {
|
|
2997
3002
|
key: 1,
|
|
2998
3003
|
class: "flex flex-col grow gap-y-5 overflow-y-auto pr-6"
|
|
2999
|
-
},
|
|
3004
|
+
}, Jr = { class: "h-12 flex flex-row items-center" }, pe = /* @__PURE__ */ B({
|
|
3000
3005
|
__name: "uiSidebarV2",
|
|
3001
3006
|
props: {
|
|
3002
3007
|
navigation: {},
|
|
@@ -3008,11 +3013,11 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
3008
3013
|
},
|
|
3009
3014
|
emits: ["productBarClick", "sideBarClick", "inputChanged"],
|
|
3010
3015
|
setup(m, { emit: u }) {
|
|
3011
|
-
const a = m, i =
|
|
3012
|
-
return (s, o) => (l(), n("div",
|
|
3013
|
-
e("div",
|
|
3016
|
+
const a = m, i = P(() => a.navigation ? Array.isArray(a.navigation) ? a.navigation : [a.navigation] : []);
|
|
3017
|
+
return (s, o) => (l(), n("div", Or, [
|
|
3018
|
+
e("div", Ir, [
|
|
3014
3019
|
e("ul", null, [
|
|
3015
|
-
(l(!0), n(x, null,
|
|
3020
|
+
(l(!0), n(x, null, S(s.productsSidebar, (t, r) => (l(), n("li", {
|
|
3016
3021
|
key: r,
|
|
3017
3022
|
class: f([{ "!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"]),
|
|
3018
3023
|
onClick: (d) => s.$emit("productBarClick", t.name)
|
|
@@ -3020,16 +3025,16 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
3020
3025
|
e("img", {
|
|
3021
3026
|
src: t.icon,
|
|
3022
3027
|
alt: t.name
|
|
3023
|
-
}, null, 8,
|
|
3028
|
+
}, null, 8, Pr)
|
|
3024
3029
|
], 10, Nr))), 128))
|
|
3025
3030
|
])
|
|
3026
3031
|
]),
|
|
3027
|
-
s.loading ? (l(), n("div",
|
|
3028
|
-
(l(), n(x, null,
|
|
3032
|
+
s.loading ? (l(), n("div", Wr, [
|
|
3033
|
+
(l(), n(x, null, S(5, (t) => e("div", Jr, o[2] || (o[2] = [
|
|
3029
3034
|
e("div", { class: "w-6 h-6 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 mr-4" }, null, -1),
|
|
3030
3035
|
e("div", { class: "h-3 animate-pulse bg-gray-200 rounded-full w-1/2 dark:bg-gray-300" }, null, -1)
|
|
3031
3036
|
]))), 64))
|
|
3032
|
-
])) : (l(), n("div",
|
|
3037
|
+
])) : (l(), n("div", Yr, [
|
|
3033
3038
|
e("div", {
|
|
3034
3039
|
class: "flex h-16 shrink-0 items-center",
|
|
3035
3040
|
onClick: o[0] || (o[0] = (t) => s.$emit("sideBarClick", "logo"))
|
|
@@ -3038,13 +3043,13 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
3038
3043
|
class: "h-10 w-auto self-center cursor-pointer",
|
|
3039
3044
|
src: s.logo,
|
|
3040
3045
|
alt: "Your Company"
|
|
3041
|
-
}, null, 8,
|
|
3046
|
+
}, null, 8, qr)
|
|
3042
3047
|
]),
|
|
3043
|
-
e("nav",
|
|
3044
|
-
s.isFilterNavigation ? v("", !0) : (l(), n("ul",
|
|
3048
|
+
e("nav", Fr, [
|
|
3049
|
+
s.isFilterNavigation ? v("", !0) : (l(), n("ul", Vr, [
|
|
3045
3050
|
e("li", null, [
|
|
3046
|
-
e("ul",
|
|
3047
|
-
(l(!0), n(x, null,
|
|
3051
|
+
e("ul", Rr, [
|
|
3052
|
+
(l(!0), n(x, null, S(i.value, (t) => (l(), n("li", {
|
|
3048
3053
|
key: t.name
|
|
3049
3054
|
}, [
|
|
3050
3055
|
t.children ? (l(), k(c($e), {
|
|
@@ -3065,7 +3070,7 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
3065
3070
|
"aria-hidden": "true",
|
|
3066
3071
|
class: "shrink-0"
|
|
3067
3072
|
}, null, 8, ["icon"]),
|
|
3068
|
-
|
|
3073
|
+
A(" " + g(t.name) + " ", 1),
|
|
3069
3074
|
p(c(X), {
|
|
3070
3075
|
class: f([t.children.some((r) => r.current) || t.current ? "rotate-90 text-black" : "text-gray-400", "ml-auto h-5 w-5 shrink-0"]),
|
|
3071
3076
|
"aria-hidden": "true"
|
|
@@ -3073,14 +3078,14 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
3073
3078
|
]),
|
|
3074
3079
|
_: 2
|
|
3075
3080
|
}, 1032, ["onClick", "class"]),
|
|
3076
|
-
|
|
3081
|
+
_(e("div", null, [
|
|
3077
3082
|
p(c(_e), {
|
|
3078
3083
|
as: "ul",
|
|
3079
3084
|
class: "mt-1 px-2",
|
|
3080
3085
|
static: ""
|
|
3081
3086
|
}, {
|
|
3082
3087
|
default: b(() => [
|
|
3083
|
-
(l(!0), n(x, null,
|
|
3088
|
+
(l(!0), n(x, null, S(t.children, (r) => (l(), n("li", {
|
|
3084
3089
|
key: r.name
|
|
3085
3090
|
}, [
|
|
3086
3091
|
p(c(E), {
|
|
@@ -3089,7 +3094,7 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
3089
3094
|
class: f([r.current ? "bg-lime-100" : "hover:bg-lime-100", "block rounded-md py-2 pl-9 pr-2 text-sm leading-6 text-gray-700 cursor-pointer"])
|
|
3090
3095
|
}, {
|
|
3091
3096
|
default: b(() => [
|
|
3092
|
-
|
|
3097
|
+
A(g(r.name), 1)
|
|
3093
3098
|
]),
|
|
3094
3099
|
_: 2
|
|
3095
3100
|
}, 1032, ["onClick", "class"])
|
|
@@ -3098,7 +3103,7 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
3098
3103
|
_: 2
|
|
3099
3104
|
}, 1024)
|
|
3100
3105
|
], 512), [
|
|
3101
|
-
[
|
|
3106
|
+
[M, t.children.some((r) => r.current) || t.current]
|
|
3102
3107
|
])
|
|
3103
3108
|
]),
|
|
3104
3109
|
_: 2
|
|
@@ -3115,14 +3120,14 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
3115
3120
|
"aria-hidden": "true",
|
|
3116
3121
|
class: "shrink-0"
|
|
3117
3122
|
}, null, 8, ["icon"]),
|
|
3118
|
-
|
|
3119
|
-
], 10,
|
|
3123
|
+
A(" " + g(t.name), 1)
|
|
3124
|
+
], 10, Ur))
|
|
3120
3125
|
]))), 128))
|
|
3121
3126
|
])
|
|
3122
3127
|
])
|
|
3123
3128
|
])),
|
|
3124
|
-
s.isFilterNavigation && s.filterNavigation ? (l(), n("ul",
|
|
3125
|
-
e("li",
|
|
3129
|
+
s.isFilterNavigation && s.filterNavigation ? (l(), n("ul", Hr, [
|
|
3130
|
+
e("li", Er, [
|
|
3126
3131
|
s.filterNavigation.hasSearch && s.filterNavigation.search ? (l(), k(H, {
|
|
3127
3132
|
key: 0,
|
|
3128
3133
|
name: s.filterNavigation.search.name,
|
|
@@ -3133,18 +3138,18 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
3133
3138
|
onInputChanged: o[1] || (o[1] = (t) => s.$emit("inputChanged", t))
|
|
3134
3139
|
}, null, 8, ["name", "label", "placeholder", "value", "loading"])) : v("", !0)
|
|
3135
3140
|
]),
|
|
3136
|
-
(l(!0), n(x, null,
|
|
3141
|
+
(l(!0), n(x, null, S(s.filterNavigation.items, (t, r) => (l(), n("li", {
|
|
3137
3142
|
class: "ml-2",
|
|
3138
3143
|
key: r
|
|
3139
3144
|
}, [
|
|
3140
|
-
e("p",
|
|
3141
|
-
(l(!0), n(x, null,
|
|
3145
|
+
e("p", Zr, g(t.label), 1),
|
|
3146
|
+
(l(!0), n(x, null, S(t.filters, (d, h) => (l(), k(Ue, {
|
|
3142
3147
|
class: "mb-2",
|
|
3143
3148
|
value: d.value,
|
|
3144
3149
|
loading: d.loading
|
|
3145
3150
|
}, {
|
|
3146
3151
|
default: b(() => [
|
|
3147
|
-
|
|
3152
|
+
A(g(d.text), 1)
|
|
3148
3153
|
]),
|
|
3149
3154
|
_: 2
|
|
3150
3155
|
}, 1032, ["value", "loading"]))), 256))
|
|
@@ -3154,10 +3159,10 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
3154
3159
|
]))
|
|
3155
3160
|
]));
|
|
3156
3161
|
}
|
|
3157
|
-
}),
|
|
3162
|
+
}), Gr = { key: 0 }, Kr = { class: "ml-16 text-sm font-medium truncate" }, Qr = { class: "ml-16 flex items-baseline pb-5" }, Xr = { class: "text-2xl font-semibold" }, ea = {
|
|
3158
3163
|
key: 0,
|
|
3159
3164
|
class: "text-black ml-2 flex items-baseline text-sm font-semibold"
|
|
3160
|
-
},
|
|
3165
|
+
}, ta = { class: "absolute bottom-0 inset-x-0 bg-lime-50 px-4 py-4 sm:px-6" }, la = { class: "text-sm" }, sa = { key: 1 }, oa = { class: "relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full pb-6" }, ra = { class: "absolute bg-gray-200 rounded-md p-3 animate-pulse" }, et = /* @__PURE__ */ B({
|
|
3161
3166
|
__name: "uiStats",
|
|
3162
3167
|
props: {
|
|
3163
3168
|
item: {},
|
|
@@ -3165,10 +3170,10 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
3165
3170
|
},
|
|
3166
3171
|
emits: ["statClick"],
|
|
3167
3172
|
setup(m, { emit: u }) {
|
|
3168
|
-
return (a, i) => a.loading ? (l(), n("div",
|
|
3169
|
-
e("div",
|
|
3173
|
+
return (a, i) => a.loading ? (l(), n("div", sa, [
|
|
3174
|
+
e("div", oa, [
|
|
3170
3175
|
e("dt", null, [
|
|
3171
|
-
e("div",
|
|
3176
|
+
e("div", ra, [
|
|
3172
3177
|
p(T, {
|
|
3173
3178
|
loading: a.loading,
|
|
3174
3179
|
icon: a.item.icon,
|
|
@@ -3184,7 +3189,7 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
3184
3189
|
], -1))
|
|
3185
3190
|
])
|
|
3186
3191
|
])
|
|
3187
|
-
])) : (l(), n("div",
|
|
3192
|
+
])) : (l(), n("div", Gr, [
|
|
3188
3193
|
e("div", {
|
|
3189
3194
|
class: f(["relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full", { "pb-12": a.item.showFooter }])
|
|
3190
3195
|
}, [
|
|
@@ -3203,11 +3208,11 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
3203
3208
|
loading: a.loading
|
|
3204
3209
|
}, null, 8, ["icon", "loading"])
|
|
3205
3210
|
], 2),
|
|
3206
|
-
e("p",
|
|
3211
|
+
e("p", Kr, g(a.item.name), 1)
|
|
3207
3212
|
]),
|
|
3208
|
-
e("dd",
|
|
3209
|
-
e("p",
|
|
3210
|
-
a.item.explanation ? (l(), n("p",
|
|
3213
|
+
e("dd", Qr, [
|
|
3214
|
+
e("p", Xr, g(a.item.stat), 1),
|
|
3215
|
+
a.item.explanation ? (l(), n("p", ea, g(a.item.explanation), 1)) : v("", !0),
|
|
3211
3216
|
a.item.changeType ? (l(), n("p", {
|
|
3212
3217
|
key: 1,
|
|
3213
3218
|
class: f([
|
|
@@ -3229,35 +3234,35 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
3229
3234
|
class: "self-center flex-shrink-0 h-3 w-3 text-red-500",
|
|
3230
3235
|
"aria-hidden": "true"
|
|
3231
3236
|
})) : v("", !0),
|
|
3232
|
-
|
|
3237
|
+
A(" " + g(a.item.change), 1)
|
|
3233
3238
|
], 2)) : v("", !0),
|
|
3234
|
-
|
|
3235
|
-
e("div",
|
|
3239
|
+
_(e("div", ta, [
|
|
3240
|
+
e("div", la, [
|
|
3236
3241
|
e("span", {
|
|
3237
3242
|
onClick: i[0] || (i[0] = (s) => a.$emit("statClick", a.item.id)),
|
|
3238
3243
|
class: "font-medium text-black hover:text-lime-400 underline cursor-pointer"
|
|
3239
3244
|
}, g(a.item.actionText), 1)
|
|
3240
3245
|
])
|
|
3241
3246
|
], 512), [
|
|
3242
|
-
[
|
|
3247
|
+
[M, a.item.showFooter]
|
|
3243
3248
|
])
|
|
3244
3249
|
])
|
|
3245
3250
|
], 2)
|
|
3246
3251
|
]));
|
|
3247
3252
|
}
|
|
3248
|
-
}),
|
|
3253
|
+
}), aa = {
|
|
3249
3254
|
key: 0,
|
|
3250
3255
|
class: "overflow-hidden bg-white shadow sm:rounded-lg"
|
|
3251
|
-
},
|
|
3256
|
+
}, na = { class: "px-4 py-5 sm:px-6" }, ia = { class: "text-lg font-medium leading-6" }, da = { class: "mt-1 max-w-2xl text-sm" }, ua = { class: "border-t border-gray-200" }, ca = { class: "text-sm font-medium" }, ga = {
|
|
3252
3257
|
key: 0,
|
|
3253
3258
|
class: "mt-1 text-sm sm:col-span-2 sm:mt-0 break-normal"
|
|
3254
|
-
},
|
|
3259
|
+
}, ma = ["onClick"], pa = {
|
|
3255
3260
|
key: 2,
|
|
3256
3261
|
class: "mt-1 text-sm sm:col-span-2 sm:mt-0 break-words"
|
|
3257
|
-
},
|
|
3262
|
+
}, fa = {
|
|
3258
3263
|
key: 1,
|
|
3259
3264
|
class: "overflow-hidden bg-white shadow sm:rounded-lg"
|
|
3260
|
-
},
|
|
3265
|
+
}, ha = { class: "border-t border-gray-200" }, ya = /* @__PURE__ */ B({
|
|
3261
3266
|
__name: "uiStripedCard",
|
|
3262
3267
|
props: {
|
|
3263
3268
|
title: {},
|
|
@@ -3267,11 +3272,11 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
3267
3272
|
},
|
|
3268
3273
|
emits: ["itemClicked"],
|
|
3269
3274
|
setup(m) {
|
|
3270
|
-
return (u, a) => u.loading ? (l(), n("div",
|
|
3275
|
+
return (u, a) => u.loading ? (l(), n("div", fa, [
|
|
3271
3276
|
a[1] || (a[1] = G('<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)),
|
|
3272
|
-
e("div",
|
|
3277
|
+
e("div", ha, [
|
|
3273
3278
|
e("dl", null, [
|
|
3274
|
-
(l(), n(x, null,
|
|
3279
|
+
(l(), n(x, null, S(5, (i) => e("div", {
|
|
3275
3280
|
key: i,
|
|
3276
3281
|
class: f(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [i % 2 === 0 ? "bg-gray-50" : "bg-white"]])
|
|
3277
3282
|
}, a[0] || (a[0] = [
|
|
@@ -3284,27 +3289,27 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
3284
3289
|
]), 2)), 64))
|
|
3285
3290
|
])
|
|
3286
3291
|
])
|
|
3287
|
-
])) : (l(), n("div",
|
|
3288
|
-
e("div",
|
|
3289
|
-
e("h3",
|
|
3290
|
-
e("p",
|
|
3292
|
+
])) : (l(), n("div", aa, [
|
|
3293
|
+
e("div", na, [
|
|
3294
|
+
e("h3", ia, g(u.title), 1),
|
|
3295
|
+
e("p", da, g(u.subtitle), 1)
|
|
3291
3296
|
]),
|
|
3292
|
-
e("div",
|
|
3297
|
+
e("div", ua, [
|
|
3293
3298
|
e("dl", null, [
|
|
3294
|
-
(l(!0), n(x, null,
|
|
3299
|
+
(l(!0), n(x, null, S(u.items, (i, s) => (l(), n("div", {
|
|
3295
3300
|
key: s,
|
|
3296
3301
|
class: f(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [s % 2 === 0 ? "bg-lime-50" : "bg-white"]])
|
|
3297
3302
|
}, [
|
|
3298
|
-
e("dt",
|
|
3299
|
-
i.type === "tags" ? (l(), n("dd",
|
|
3300
|
-
(l(!0), n(x, null,
|
|
3303
|
+
e("dt", ca, g(i.title), 1),
|
|
3304
|
+
i.type === "tags" ? (l(), n("dd", ga, [
|
|
3305
|
+
(l(!0), n(x, null, S(i.tags, (o, t) => (l(), k(R, {
|
|
3301
3306
|
loading: u.loading,
|
|
3302
3307
|
key: t,
|
|
3303
3308
|
color: o.color,
|
|
3304
3309
|
class: "mr-2 mb-2"
|
|
3305
3310
|
}, {
|
|
3306
3311
|
default: b(() => [
|
|
3307
|
-
|
|
3312
|
+
A(g(o.text), 1)
|
|
3308
3313
|
]),
|
|
3309
3314
|
_: 2
|
|
3310
3315
|
}, 1032, ["loading", "color"]))), 128))
|
|
@@ -3312,13 +3317,13 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
3312
3317
|
key: 1,
|
|
3313
3318
|
class: "mt-1 text-sm text-lime-600 hover:text-black sm:col-span-2 sm:mt-0 cursor-pointer",
|
|
3314
3319
|
onClick: (o) => u.$emit("itemClicked", i.emits)
|
|
3315
|
-
}, g(i.text), 9,
|
|
3320
|
+
}, g(i.text), 9, ma)) : (l(), n("dd", pa, g(i.text), 1))
|
|
3316
3321
|
], 2))), 128))
|
|
3317
3322
|
])
|
|
3318
3323
|
])
|
|
3319
3324
|
]));
|
|
3320
3325
|
}
|
|
3321
|
-
}),
|
|
3326
|
+
}), ba = { class: "absolute top-10 bg-black text-white text-xs p-2 rounded z-10 font-light w-60 flex flex-row items-start" }, va = { class: "ml-2" }, wa = {
|
|
3322
3327
|
__name: "tooltip",
|
|
3323
3328
|
props: {
|
|
3324
3329
|
tip: {
|
|
@@ -3327,7 +3332,7 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
3327
3332
|
}
|
|
3328
3333
|
},
|
|
3329
3334
|
setup(m) {
|
|
3330
|
-
return (u, a) => (l(), n("div",
|
|
3335
|
+
return (u, a) => (l(), n("div", ba, [
|
|
3331
3336
|
a[0] || (a[0] = e("svg", {
|
|
3332
3337
|
class: "absolute -top-3 left-0",
|
|
3333
3338
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3340,7 +3345,7 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
3340
3345
|
"data-name": "Polígono 1",
|
|
3341
3346
|
d: "M10.5,0,21,19H0Z",
|
|
3342
3347
|
transform: "translate(0 10.5) rotate(-30)",
|
|
3343
|
-
fill: "#
|
|
3348
|
+
fill: "#000"
|
|
3344
3349
|
})
|
|
3345
3350
|
], -1)),
|
|
3346
3351
|
e("div", null, [
|
|
@@ -3351,19 +3356,19 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
3351
3356
|
size: "big"
|
|
3352
3357
|
}, null, 8, ["icon"])
|
|
3353
3358
|
]),
|
|
3354
|
-
e("span",
|
|
3359
|
+
e("span", va, g(m.tip), 1)
|
|
3355
3360
|
]));
|
|
3356
3361
|
}
|
|
3357
|
-
},
|
|
3362
|
+
}, ka = { key: 0 }, xa = { class: "flex flex-col" }, $a = { class: "-my-2 overflow-x-auto" }, _a = { class: "inline-block min-w-full py-2 align-middle px-1" }, Ca = { class: "relative overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg" }, Sa = {
|
|
3358
3363
|
key: 0,
|
|
3359
3364
|
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"
|
|
3360
|
-
},
|
|
3365
|
+
}, Ba = ["onClick"], Ma = { class: "min-w-full table-fixed divide-y divide-gray-300" }, Da = { class: "bg-lime-50" }, ja = ["checked", "indeterminate"], Ta = ["onMouseover", "onMouseleave"], za = ["onClick"], La = {
|
|
3361
3366
|
key: 2,
|
|
3362
3367
|
class: "group flex items-center uppercase text-xs"
|
|
3363
|
-
},
|
|
3368
|
+
}, Aa = { class: "divide-y divide-gray-200 bg-white" }, Oa = {
|
|
3364
3369
|
key: 0,
|
|
3365
3370
|
class: "absolute inset-y-0 left-0 w-0.5 bg-lime-400"
|
|
3366
|
-
},
|
|
3371
|
+
}, Ia = ["value"], Na = ["onClick"], Pa = ["href"], Ya = { key: 3 }, qa = /* @__PURE__ */ B({
|
|
3367
3372
|
__name: "uiTable",
|
|
3368
3373
|
props: {
|
|
3369
3374
|
resetSelected: { type: Boolean, default: !1 },
|
|
@@ -3372,135 +3377,140 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
3372
3377
|
loading: { type: Boolean, default: !0 },
|
|
3373
3378
|
header: {},
|
|
3374
3379
|
items: {},
|
|
3380
|
+
hiddenColumns: {},
|
|
3375
3381
|
actions: {}
|
|
3376
3382
|
},
|
|
3377
3383
|
emits: ["tableAction", "orderBy", "customEmit", "selectedItemsDeleted"],
|
|
3378
3384
|
setup(m, { emit: u }) {
|
|
3379
3385
|
let a = N([]), i = N(""), s = N(!1);
|
|
3380
|
-
const o = u, t = m, r =
|
|
3386
|
+
const o = u, t = m, r = P(
|
|
3381
3387
|
() => a.value.length > 0 && a.value.length < t.items.length
|
|
3382
|
-
), d = (
|
|
3383
|
-
i.value !==
|
|
3384
|
-
}, h = (
|
|
3385
|
-
a.value =
|
|
3386
|
-
}, y = (
|
|
3387
|
-
o("customEmit",
|
|
3388
|
-
};
|
|
3389
|
-
return V(() => t.resetSelected, (
|
|
3390
|
-
s.value =
|
|
3391
|
-
}), (
|
|
3392
|
-
e("div",
|
|
3393
|
-
e("div",
|
|
3394
|
-
e("div",
|
|
3395
|
-
e("div",
|
|
3396
|
-
c(a)?.length > 0 &&
|
|
3397
|
-
(l(!0), n(x, null,
|
|
3398
|
-
onClick: (
|
|
3399
|
-
key:
|
|
3388
|
+
), d = (C, z) => {
|
|
3389
|
+
i.value !== C && z && (i.value = C), z || (i.value = void 0);
|
|
3390
|
+
}, h = (C) => {
|
|
3391
|
+
a.value = C.target.checked ? t.items.map((z) => z.id) : [];
|
|
3392
|
+
}, y = (C) => {
|
|
3393
|
+
o("customEmit", C);
|
|
3394
|
+
}, D = (C) => t.hiddenColumns && t.hiddenColumns.length > 0 ? !t.hiddenColumns.includes(C) : !0;
|
|
3395
|
+
return V(() => t.resetSelected, (C) => {
|
|
3396
|
+
s.value = C, C && s.value && (a.value = [], s.value = !C, o("selectedItemsDeleted"));
|
|
3397
|
+
}), (C, z) => C.loading ? (l(), k(Xe, { key: 1 })) : (l(), n("div", ka, [
|
|
3398
|
+
e("div", xa, [
|
|
3399
|
+
e("div", $a, [
|
|
3400
|
+
e("div", _a, [
|
|
3401
|
+
e("div", Ca, [
|
|
3402
|
+
c(a)?.length > 0 && C.actions?.length > 0 ? (l(), n("div", Sa, [
|
|
3403
|
+
(l(!0), n(x, null, S(C.actions, (w, L) => (l(), n("button", {
|
|
3404
|
+
onClick: (j) => C.$emit("tableAction", { action: w.id, items: c(a) }),
|
|
3405
|
+
key: L,
|
|
3400
3406
|
type: "button",
|
|
3401
3407
|
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"
|
|
3402
|
-
}, g(
|
|
3408
|
+
}, g(w.name), 9, Ba))), 128))
|
|
3403
3409
|
])) : v("", !0),
|
|
3404
|
-
e("table",
|
|
3405
|
-
e("thead",
|
|
3410
|
+
e("table", Ma, [
|
|
3411
|
+
e("thead", Da, [
|
|
3406
3412
|
e("tr", null, [
|
|
3407
3413
|
e("th", {
|
|
3408
3414
|
scope: "col",
|
|
3409
|
-
class: f([
|
|
3415
|
+
class: f([C.actions ? "px-6 sm:px-8" : "px-3", "relative"])
|
|
3410
3416
|
}, [
|
|
3411
|
-
|
|
3417
|
+
C.actions ? (l(), n("input", {
|
|
3412
3418
|
key: 0,
|
|
3413
|
-
checked: r.value || c(a).length ===
|
|
3419
|
+
checked: r.value || c(a).length === C.items.length,
|
|
3414
3420
|
indeterminate: r.value,
|
|
3415
3421
|
class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-black focus:ring-lime-400",
|
|
3416
3422
|
type: "checkbox",
|
|
3417
3423
|
onChange: h
|
|
3418
|
-
}, null, 40,
|
|
3424
|
+
}, null, 40, ja)) : v("", !0)
|
|
3419
3425
|
], 2),
|
|
3420
|
-
(l(!0), n(x, null,
|
|
3421
|
-
key:
|
|
3426
|
+
(l(!0), n(x, null, S(C.header, (w, L) => _((l(), n("th", {
|
|
3427
|
+
key: L,
|
|
3422
3428
|
class: "py-3.5 pr-3 text-left font-semibold relative",
|
|
3423
3429
|
scope: "col",
|
|
3424
|
-
onMouseover: (
|
|
3425
|
-
onMouseleave: (
|
|
3430
|
+
onMouseover: (j) => d(w.name, !0),
|
|
3431
|
+
onMouseleave: (j) => d(w.name, !1)
|
|
3426
3432
|
}, [
|
|
3427
|
-
|
|
3433
|
+
w.tooltip ? _((l(), k(wa, {
|
|
3428
3434
|
key: 0,
|
|
3429
|
-
tip:
|
|
3435
|
+
tip: w.tooltip
|
|
3430
3436
|
}, null, 8, ["tip"])), [
|
|
3431
|
-
[
|
|
3437
|
+
[M, c(i) === w.name]
|
|
3432
3438
|
]) : v("", !0),
|
|
3433
|
-
|
|
3439
|
+
w.value ? (l(), n("button", {
|
|
3434
3440
|
key: 1,
|
|
3435
3441
|
class: "group flex items-center uppercase text-xs relative text-nowrap",
|
|
3436
|
-
onClick: (
|
|
3442
|
+
onClick: (j) => o("orderBy", { value: w.value, orderDirection: C.orderDirection === "asc" ? "desc" : "asc" })
|
|
3437
3443
|
}, [
|
|
3438
|
-
e("span", null, g(
|
|
3444
|
+
e("span", null, g(w.name), 1),
|
|
3439
3445
|
e("span", {
|
|
3440
3446
|
class: f([[
|
|
3441
|
-
|
|
3447
|
+
w.value === C.orderedBy ? "bg-black text-white group-hover:bg-lime-400 group-hover:text-black" : "group-hover:visible group-focus:visible"
|
|
3442
3448
|
], "ml-2 flex-none rounded group-hover:bg-lime-200 group-hover:text-white"])
|
|
3443
3449
|
}, [
|
|
3444
3450
|
p(T, {
|
|
3445
|
-
icon:
|
|
3446
|
-
loading:
|
|
3447
|
-
color:
|
|
3451
|
+
icon: C.orderDirection === "asc" ? c(ne) : c(Je),
|
|
3452
|
+
loading: C.loading,
|
|
3453
|
+
color: w.value === C.orderedBy ? "white" : "primary"
|
|
3448
3454
|
}, null, 8, ["icon", "loading", "color"])
|
|
3449
3455
|
], 2)
|
|
3450
|
-
], 8,
|
|
3451
|
-
e("span", null, g(
|
|
3456
|
+
], 8, za)) : (l(), n("p", La, [
|
|
3457
|
+
e("span", null, g(w.name), 1)
|
|
3452
3458
|
]))
|
|
3453
|
-
], 40,
|
|
3459
|
+
], 40, Ta)), [
|
|
3460
|
+
[M, D(L)]
|
|
3461
|
+
])), 128))
|
|
3454
3462
|
])
|
|
3455
3463
|
]),
|
|
3456
|
-
e("tbody",
|
|
3457
|
-
(l(!0), n(x, null,
|
|
3458
|
-
key:
|
|
3464
|
+
e("tbody", Aa, [
|
|
3465
|
+
(l(!0), n(x, null, S(C.items, (w, L) => (l(), n("tr", {
|
|
3466
|
+
key: w.id,
|
|
3459
3467
|
class: f([
|
|
3460
|
-
c(a).includes(
|
|
3461
|
-
|
|
3468
|
+
c(a).includes(w.id) && "bg-gray-50",
|
|
3469
|
+
L % 2 == 0 ? void 0 : "bg-gray-50"
|
|
3462
3470
|
])
|
|
3463
3471
|
}, [
|
|
3464
3472
|
e("td", {
|
|
3465
|
-
class: f([
|
|
3473
|
+
class: f([C.actions?.length > 0 ? "w-2" : "w-0", "relative"])
|
|
3466
3474
|
}, [
|
|
3467
|
-
c(a).includes(
|
|
3468
|
-
|
|
3475
|
+
c(a).includes(w.id) ? (l(), n("div", Oa)) : v("", !0),
|
|
3476
|
+
C.actions?.length > 0 ? _((l(), n("input", {
|
|
3469
3477
|
key: 1,
|
|
3470
|
-
"onUpdate:modelValue":
|
|
3471
|
-
value:
|
|
3478
|
+
"onUpdate:modelValue": z[0] || (z[0] = (j) => fe(a) ? a.value = j : a = j),
|
|
3479
|
+
value: w.id,
|
|
3472
3480
|
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",
|
|
3473
3481
|
type: "checkbox"
|
|
3474
|
-
}, null, 8,
|
|
3475
|
-
[
|
|
3482
|
+
}, null, 8, Ia)), [
|
|
3483
|
+
[Ie, c(a)]
|
|
3476
3484
|
]) : v("", !0)
|
|
3477
3485
|
], 2),
|
|
3478
|
-
(l(!0), n(x, null,
|
|
3479
|
-
key:
|
|
3486
|
+
(l(!0), n(x, null, S(w.row, (j, $) => _((l(), n("td", {
|
|
3487
|
+
key: $,
|
|
3480
3488
|
class: f([
|
|
3481
3489
|
"whitespace-nowrap py-4 pr-3 text-sm",
|
|
3482
|
-
c(a).includes(
|
|
3490
|
+
c(a).includes(w.id) ? "text-black font-bold" : ""
|
|
3483
3491
|
])
|
|
3484
3492
|
}, [
|
|
3485
|
-
typeof
|
|
3493
|
+
typeof j == "object" && j.type === "tag" ? (l(), k(R, {
|
|
3486
3494
|
key: 0,
|
|
3487
|
-
loading:
|
|
3488
|
-
color:
|
|
3495
|
+
loading: C.loading,
|
|
3496
|
+
color: j.color
|
|
3489
3497
|
}, {
|
|
3490
3498
|
default: b(() => [
|
|
3491
|
-
|
|
3499
|
+
A(g(j.content), 1)
|
|
3492
3500
|
]),
|
|
3493
3501
|
_: 2
|
|
3494
|
-
}, 1032, ["loading", "color"])) : typeof
|
|
3502
|
+
}, 1032, ["loading", "color"])) : typeof j == "object" && j.type === "link" ? (l(), n("span", {
|
|
3495
3503
|
key: 1,
|
|
3496
3504
|
class: "text-black font-bold underline hover:text-lime-400 cursor-pointer",
|
|
3497
|
-
onClick: (
|
|
3498
|
-
}, g(
|
|
3505
|
+
onClick: (Y) => y(j)
|
|
3506
|
+
}, g(j.content), 9, Na)) : typeof j == "object" && j.type === "href" ? (l(), n("a", {
|
|
3499
3507
|
key: 2,
|
|
3500
3508
|
class: "text-black font-bold underline hover:text-lime-400 cursor-pointer",
|
|
3501
|
-
href:
|
|
3502
|
-
}, g(
|
|
3503
|
-
], 2))
|
|
3509
|
+
href: j.href
|
|
3510
|
+
}, g(j.content), 9, Pa)) : (l(), n("span", Ya, g(j), 1))
|
|
3511
|
+
], 2)), [
|
|
3512
|
+
[M, D($)]
|
|
3513
|
+
])), 128))
|
|
3504
3514
|
], 2))), 128))
|
|
3505
3515
|
])
|
|
3506
3516
|
])
|
|
@@ -3510,10 +3520,10 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
3510
3520
|
])
|
|
3511
3521
|
]));
|
|
3512
3522
|
}
|
|
3513
|
-
}),
|
|
3523
|
+
}), Fa = { class: "lg:hidden" }, Va = ["value"], Ra = { class: "hidden lg:block" }, Ua = { class: "border-b border-gray-200" }, Ha = {
|
|
3514
3524
|
class: "-mb-px flex space-x-8",
|
|
3515
3525
|
"aria-label": "Tabs"
|
|
3516
|
-
},
|
|
3526
|
+
}, Ea = ["onClick", "aria-current"], Za = /* @__PURE__ */ B({
|
|
3517
3527
|
__name: "uiTabs",
|
|
3518
3528
|
props: {
|
|
3519
3529
|
tabs: {}
|
|
@@ -3525,23 +3535,23 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
3525
3535
|
o.value && a("tabClicked", o.value);
|
|
3526
3536
|
};
|
|
3527
3537
|
return (s, o) => (l(), n("div", null, [
|
|
3528
|
-
e("div",
|
|
3538
|
+
e("div", Fa, [
|
|
3529
3539
|
e("select", {
|
|
3530
3540
|
onChange: o[0] || (o[0] = (t) => i(t)),
|
|
3531
3541
|
id: "tabs",
|
|
3532
3542
|
name: "tabs",
|
|
3533
3543
|
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"
|
|
3534
3544
|
}, [
|
|
3535
|
-
(l(!0), n(x, null,
|
|
3545
|
+
(l(!0), n(x, null, S(s.tabs, (t) => (l(), n("option", {
|
|
3536
3546
|
value: t.id,
|
|
3537
3547
|
key: t.name
|
|
3538
|
-
}, g(t.name), 9,
|
|
3548
|
+
}, g(t.name), 9, Va))), 128))
|
|
3539
3549
|
], 32)
|
|
3540
3550
|
]),
|
|
3541
|
-
e("div",
|
|
3542
|
-
e("div",
|
|
3543
|
-
e("nav",
|
|
3544
|
-
(l(!0), n(x, null,
|
|
3551
|
+
e("div", Ra, [
|
|
3552
|
+
e("div", Ua, [
|
|
3553
|
+
e("nav", Ha, [
|
|
3554
|
+
(l(!0), n(x, null, S(s.tabs, (t) => (l(), n("a", {
|
|
3545
3555
|
key: t.name,
|
|
3546
3556
|
onClick: (r) => a("tabClicked", t.id),
|
|
3547
3557
|
class: f([
|
|
@@ -3550,7 +3560,7 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
3550
3560
|
]),
|
|
3551
3561
|
"aria-current": t.current ? "page" : void 0
|
|
3552
3562
|
}, [
|
|
3553
|
-
|
|
3563
|
+
A(g(t.name) + " ", 1),
|
|
3554
3564
|
t.count ? (l(), n("span", {
|
|
3555
3565
|
key: 0,
|
|
3556
3566
|
class: f([
|
|
@@ -3558,36 +3568,36 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
3558
3568
|
"hidden ml-3 py-0.5 px-2.5 rounded-full text-xs font-medium md:inline-block"
|
|
3559
3569
|
])
|
|
3560
3570
|
}, g(t.count), 3)) : v("", !0)
|
|
3561
|
-
], 10,
|
|
3571
|
+
], 10, Ea))), 128))
|
|
3562
3572
|
])
|
|
3563
3573
|
])
|
|
3564
3574
|
])
|
|
3565
3575
|
]));
|
|
3566
3576
|
}
|
|
3567
|
-
}),
|
|
3577
|
+
}), Wa = { class: "px-4 py-5 sm:px-6" }, Ja = { class: "text-xl font-bold" }, Ga = {
|
|
3568
3578
|
key: 0,
|
|
3569
3579
|
class: "px-4 py-5 sm:p-6"
|
|
3570
|
-
},
|
|
3580
|
+
}, Ka = { class: "flow-root" }, Qa = { class: "relative pb-8" }, Xa = {
|
|
3571
3581
|
key: 0,
|
|
3572
3582
|
class: "absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200",
|
|
3573
3583
|
"aria-hidden": "true"
|
|
3574
|
-
},
|
|
3584
|
+
}, en = { class: "relative flex space-x-3" }, tn = { class: "min-w-0 flex-1 pt-1.5 flex justify-between space-x-4 items-center" }, ln = { class: "text-sm text-gray-500" }, sn = ["onClick"], on = { class: "text-right text-sm whitespace-nowrap text-gray-500" }, rn = ["datetime"], an = {
|
|
3575
3585
|
key: 1,
|
|
3576
3586
|
class: "bg-lime-50 px-4 py-4 sm:px-6 z-10"
|
|
3577
|
-
},
|
|
3587
|
+
}, nn = { class: "text-sm" }, dn = {
|
|
3578
3588
|
key: 2,
|
|
3579
3589
|
class: "h-full w-full flex items-center justify-center flex-col px-4 py-5 sm:p-6"
|
|
3580
|
-
},
|
|
3590
|
+
}, un = {
|
|
3581
3591
|
key: 1,
|
|
3582
3592
|
class: "bg-white overflow-hidden shadow rounded-lg"
|
|
3583
|
-
},
|
|
3593
|
+
}, cn = { class: "px-4 py-5 sm:p-6 animate-pulse" }, gn = { class: "flow-root" }, mn = {
|
|
3584
3594
|
class: "-mb-8",
|
|
3585
3595
|
role: "list"
|
|
3586
|
-
},
|
|
3596
|
+
}, pn = { class: "relative pb-8" }, fn = {
|
|
3587
3597
|
key: 0,
|
|
3588
3598
|
class: "absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200",
|
|
3589
3599
|
"aria-hidden": "true"
|
|
3590
|
-
},
|
|
3600
|
+
}, hn = /* @__PURE__ */ B({
|
|
3591
3601
|
__name: "uiTimeline",
|
|
3592
3602
|
props: {
|
|
3593
3603
|
name: {},
|
|
@@ -3599,18 +3609,18 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
3599
3609
|
emits: ["timelineEventClicked", "timelineFooterClicked"],
|
|
3600
3610
|
setup(m, { emit: u }) {
|
|
3601
3611
|
const i = de(m.timeline);
|
|
3602
|
-
return (s, o) => s.loading ? (l(), n("div",
|
|
3612
|
+
return (s, o) => s.loading ? (l(), n("div", un, [
|
|
3603
3613
|
o[3] || (o[3] = e("div", { class: "px-4 py-5 sm:px-6 animate-pulse" }, [
|
|
3604
3614
|
e("h1", { class: "text-xl font-bold" }, [
|
|
3605
3615
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4" })
|
|
3606
3616
|
])
|
|
3607
3617
|
], -1)),
|
|
3608
|
-
e("div",
|
|
3609
|
-
e("div",
|
|
3610
|
-
e("ul",
|
|
3611
|
-
(l(), n(x, null,
|
|
3612
|
-
e("div",
|
|
3613
|
-
t !== 10 ? (l(), n("span",
|
|
3618
|
+
e("div", cn, [
|
|
3619
|
+
e("div", gn, [
|
|
3620
|
+
e("ul", mn, [
|
|
3621
|
+
(l(), n(x, null, S(10, (t, r) => e("li", { key: r }, [
|
|
3622
|
+
e("div", pn, [
|
|
3623
|
+
t !== 10 ? (l(), n("span", fn)) : v("", !0),
|
|
3614
3624
|
o[2] || (o[2] = G('<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))
|
|
3615
3625
|
])
|
|
3616
3626
|
])), 64))
|
|
@@ -3626,21 +3636,21 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
3626
3636
|
key: 0,
|
|
3627
3637
|
class: f(["h-[" + s.height + "px]", "bg-white overflow-hidden shadow rounded-lg"])
|
|
3628
3638
|
}, [
|
|
3629
|
-
e("div",
|
|
3630
|
-
e("h1",
|
|
3639
|
+
e("div", Wa, [
|
|
3640
|
+
e("h1", Ja, g(s.name), 1)
|
|
3631
3641
|
]),
|
|
3632
|
-
i.items.length > 0 ? (l(), n("div",
|
|
3633
|
-
e("div",
|
|
3642
|
+
i.items.length > 0 ? (l(), n("div", Ga, [
|
|
3643
|
+
e("div", Ka, [
|
|
3634
3644
|
p(st, {
|
|
3635
3645
|
name: "list",
|
|
3636
3646
|
tag: "ul",
|
|
3637
3647
|
class: "-mb-8"
|
|
3638
3648
|
}, {
|
|
3639
3649
|
default: b(() => [
|
|
3640
|
-
(l(!0), n(x, null,
|
|
3641
|
-
e("div",
|
|
3642
|
-
r < i.items.length - 1 ? (l(), n("span",
|
|
3643
|
-
e("div",
|
|
3650
|
+
(l(!0), n(x, null, S(i.items, (t, r) => (l(), n("li", { key: r }, [
|
|
3651
|
+
e("div", Qa, [
|
|
3652
|
+
r < i.items.length - 1 ? (l(), n("span", Xa)) : v("", !0),
|
|
3653
|
+
e("div", en, [
|
|
3644
3654
|
e("div", null, [
|
|
3645
3655
|
e("span", {
|
|
3646
3656
|
class: f([{
|
|
@@ -3658,20 +3668,20 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
3658
3668
|
}, null, 8, ["loading", "icon"])
|
|
3659
3669
|
], 2)
|
|
3660
3670
|
]),
|
|
3661
|
-
e("div",
|
|
3671
|
+
e("div", tn, [
|
|
3662
3672
|
e("div", null, [
|
|
3663
|
-
e("p",
|
|
3673
|
+
e("p", ln, [
|
|
3664
3674
|
e("a", {
|
|
3665
3675
|
onClick: (d) => s.$emit("timelineEventClicked", t.linkId),
|
|
3666
3676
|
class: "font-medium text-black hover:text-lime-400 cursor-pointer"
|
|
3667
|
-
}, g(t?.target), 9,
|
|
3668
|
-
|
|
3677
|
+
}, g(t?.target), 9, sn),
|
|
3678
|
+
A(" " + g(t?.content), 1)
|
|
3669
3679
|
])
|
|
3670
3680
|
]),
|
|
3671
|
-
e("div",
|
|
3681
|
+
e("div", on, [
|
|
3672
3682
|
e("time", {
|
|
3673
3683
|
datetime: t?.datetime
|
|
3674
|
-
}, g(t?.date), 9,
|
|
3684
|
+
}, g(t?.date), 9, rn)
|
|
3675
3685
|
])
|
|
3676
3686
|
])
|
|
3677
3687
|
])
|
|
@@ -3682,14 +3692,14 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
3682
3692
|
})
|
|
3683
3693
|
])
|
|
3684
3694
|
])) : v("", !0),
|
|
3685
|
-
i.items.length > 0 ? (l(), n("div",
|
|
3686
|
-
e("div",
|
|
3695
|
+
i.items.length > 0 ? (l(), n("div", an, [
|
|
3696
|
+
e("div", nn, [
|
|
3687
3697
|
e("a", {
|
|
3688
3698
|
class: "cursor-pointer font-medium text-black hover:text-lime-400",
|
|
3689
3699
|
onClick: o[0] || (o[0] = (t) => s.$emit("timelineFooterClicked", s.timeline.id))
|
|
3690
3700
|
}, g(s.timeline.footerText), 1)
|
|
3691
3701
|
])
|
|
3692
|
-
])) : (l(), n("div",
|
|
3702
|
+
])) : (l(), n("div", dn, [
|
|
3693
3703
|
p(T, {
|
|
3694
3704
|
icon: c(U),
|
|
3695
3705
|
color: "gray",
|
|
@@ -3700,10 +3710,10 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
3700
3710
|
]))
|
|
3701
3711
|
], 2));
|
|
3702
3712
|
}
|
|
3703
|
-
}),
|
|
3713
|
+
}), yn = { class: "mx-auto px-6 lg:px-8" }, bn = { class: "flex justify-between h-20" }, vn = { class: "flex" }, wn = { class: "-ml-2 mr-2 flex items-center lg:hidden" }, kn = ["src"], xn = { class: "flex items-center" }, $n = { class: "lg:ml-4 lg:flex-shrink-0 lg:flex lg:items-center hidden" }, _n = { class: "redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute -top-0 -left-1" }, Cn = ["src"], Sn = ["onClick"], Bn = { class: "pt-2 pb-3 space-y-1" }, Mn = ["onClick"], Dn = { class: "pt-4 pb-3 border-t border-gray-200" }, jn = { class: "flex items-center px-4 sm:px-6" }, Tn = { class: "flex-shrink-0" }, zn = ["src"], Ln = {
|
|
3704
3714
|
key: 0,
|
|
3705
3715
|
class: "ml-3"
|
|
3706
|
-
},
|
|
3716
|
+
}, An = { class: "text-base font-medium text-gray-800" }, On = { class: "text-sm font-medium text-gray-500" }, In = { class: "mt-3 space-y-1" }, Nn = ["onClick"], Pn = /* @__PURE__ */ B({
|
|
3707
3717
|
__name: "uiTopbar",
|
|
3708
3718
|
props: {
|
|
3709
3719
|
logo: {},
|
|
@@ -3715,16 +3725,16 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
3715
3725
|
},
|
|
3716
3726
|
emits: ["topBarClick"],
|
|
3717
3727
|
setup(m, { emit: u }) {
|
|
3718
|
-
const a = m, i =
|
|
3728
|
+
const a = m, i = P(() => a.navigation ? Array.isArray(a.navigation) ? a.navigation : [a.navigation] : []);
|
|
3719
3729
|
return (s, o) => (l(), k(c($e), {
|
|
3720
3730
|
as: "nav",
|
|
3721
3731
|
class: "bg-white shadow z-10"
|
|
3722
3732
|
}, {
|
|
3723
3733
|
default: b(({ open: t }) => [
|
|
3724
|
-
e("div",
|
|
3725
|
-
e("div",
|
|
3726
|
-
e("div",
|
|
3727
|
-
e("div",
|
|
3734
|
+
e("div", yn, [
|
|
3735
|
+
e("div", bn, [
|
|
3736
|
+
e("div", vn, [
|
|
3737
|
+
e("div", wn, [
|
|
3728
3738
|
p(c(E), { 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" }, {
|
|
3729
3739
|
default: b(() => [
|
|
3730
3740
|
o[1] || (o[1] = e("span", { class: "sr-only" }, "Open main menu", -1)),
|
|
@@ -3750,32 +3760,32 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
3750
3760
|
class: "h-10",
|
|
3751
3761
|
src: s.logo,
|
|
3752
3762
|
alt: "Hotelinking suite product logo"
|
|
3753
|
-
}, null, 8,
|
|
3763
|
+
}, null, 8, kn)
|
|
3754
3764
|
])
|
|
3755
3765
|
]),
|
|
3756
|
-
e("div",
|
|
3757
|
-
e("div",
|
|
3766
|
+
e("div", xn, [
|
|
3767
|
+
e("div", $n, [
|
|
3758
3768
|
p(c(he), {
|
|
3759
3769
|
as: "div",
|
|
3760
3770
|
class: "ml-3 relative"
|
|
3761
3771
|
}, {
|
|
3762
3772
|
default: b(() => [
|
|
3763
3773
|
e("div", null, [
|
|
3764
|
-
|
|
3774
|
+
_(p(c(ye), { class: "bg-white rounded-full flex text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 relative" }, {
|
|
3765
3775
|
default: b(() => [
|
|
3766
|
-
|
|
3776
|
+
_(e("div", _n, o[2] || (o[2] = [
|
|
3767
3777
|
e("span", { class: "animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75" }, null, -1)
|
|
3768
3778
|
]), 512), [
|
|
3769
|
-
[
|
|
3779
|
+
[M, s.alerted]
|
|
3770
3780
|
]),
|
|
3771
3781
|
e("img", {
|
|
3772
3782
|
class: "h-10 w-10 rounded-full",
|
|
3773
3783
|
src: s.accountLogo
|
|
3774
|
-
}, null, 8,
|
|
3784
|
+
}, null, 8, Cn)
|
|
3775
3785
|
]),
|
|
3776
3786
|
_: 1
|
|
3777
3787
|
}, 512), [
|
|
3778
|
-
[
|
|
3788
|
+
[M, s.accountLogo]
|
|
3779
3789
|
])
|
|
3780
3790
|
]),
|
|
3781
3791
|
p(ie, {
|
|
@@ -3789,7 +3799,7 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
3789
3799
|
default: b(() => [
|
|
3790
3800
|
p(c(be), { 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" }, {
|
|
3791
3801
|
default: b(() => [
|
|
3792
|
-
(l(!0), n(x, null,
|
|
3802
|
+
(l(!0), n(x, null, S(s.profileMenu, (r) => (l(), k(c(ve), {
|
|
3793
3803
|
key: r.name
|
|
3794
3804
|
}, {
|
|
3795
3805
|
default: b(({ active: d }) => [
|
|
@@ -3799,7 +3809,7 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
3799
3809
|
d ? "bg-gray-100" : "",
|
|
3800
3810
|
"block px-4 py-2 text-sm text-gray-700"
|
|
3801
3811
|
]])
|
|
3802
|
-
}, g(r.name), 11,
|
|
3812
|
+
}, g(r.name), 11, Sn)
|
|
3803
3813
|
]),
|
|
3804
3814
|
_: 2
|
|
3805
3815
|
}, 1024))), 128))
|
|
@@ -3818,8 +3828,8 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
3818
3828
|
]),
|
|
3819
3829
|
p(c(_e), { class: "lg:hidden" }, {
|
|
3820
3830
|
default: b(() => [
|
|
3821
|
-
e("div",
|
|
3822
|
-
(l(!0), n(x, null,
|
|
3831
|
+
e("div", Bn, [
|
|
3832
|
+
(l(!0), n(x, null, S(i.value, (r) => (l(), k(c(E), {
|
|
3823
3833
|
as: "template",
|
|
3824
3834
|
key: r.id,
|
|
3825
3835
|
class: f(["block pl-3 pr-4 py-2 border-l-4 text-base font-medium sm:pl-5 sm:pr-6", {
|
|
@@ -3830,26 +3840,26 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
3830
3840
|
default: b(() => [
|
|
3831
3841
|
e("p", {
|
|
3832
3842
|
onClick: (d) => s.$emit("topBarClick", r.id)
|
|
3833
|
-
}, g(r.name), 9,
|
|
3843
|
+
}, g(r.name), 9, Mn)
|
|
3834
3844
|
]),
|
|
3835
3845
|
_: 2
|
|
3836
3846
|
}, 1032, ["class"]))), 128))
|
|
3837
3847
|
]),
|
|
3838
|
-
e("div",
|
|
3839
|
-
e("div",
|
|
3840
|
-
e("div",
|
|
3848
|
+
e("div", Dn, [
|
|
3849
|
+
e("div", jn, [
|
|
3850
|
+
e("div", Tn, [
|
|
3841
3851
|
e("img", {
|
|
3842
3852
|
class: "h-10 w-10 rounded-full",
|
|
3843
3853
|
src: s.accountLogo
|
|
3844
|
-
}, null, 8,
|
|
3854
|
+
}, null, 8, zn)
|
|
3845
3855
|
]),
|
|
3846
|
-
s.brand ? (l(), n("div",
|
|
3847
|
-
e("div",
|
|
3848
|
-
e("div",
|
|
3856
|
+
s.brand ? (l(), n("div", Ln, [
|
|
3857
|
+
e("div", An, g(s.brand.title), 1),
|
|
3858
|
+
e("div", On, g(s.brand.subtitle), 1)
|
|
3849
3859
|
])) : v("", !0)
|
|
3850
3860
|
]),
|
|
3851
|
-
e("div",
|
|
3852
|
-
(l(!0), n(x, null,
|
|
3861
|
+
e("div", In, [
|
|
3862
|
+
(l(!0), n(x, null, S(s.profileMenu, (r) => (l(), k(c(E), {
|
|
3853
3863
|
as: "template",
|
|
3854
3864
|
key: r.name,
|
|
3855
3865
|
class: "block px-4 py-2 text-base font-medium text-gray-500 hover:text-gray-800 hover:bg-gray-100 sm:px-6"
|
|
@@ -3870,17 +3880,17 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
3870
3880
|
_: 1
|
|
3871
3881
|
}));
|
|
3872
3882
|
}
|
|
3873
|
-
}),
|
|
3883
|
+
}), Yn = { class: "chart-selector flex flex-row items-center justify-center" }, qn = /* @__PURE__ */ B({
|
|
3874
3884
|
__name: "RangeSelector",
|
|
3875
3885
|
props: { range: { type: String } },
|
|
3876
3886
|
emits: ["rangeSelected"],
|
|
3877
3887
|
setup(m, { emit: u }) {
|
|
3878
3888
|
const a = u, i = m;
|
|
3879
|
-
let s =
|
|
3889
|
+
let s = P(() => i.range);
|
|
3880
3890
|
const o = (t) => {
|
|
3881
3891
|
s = t, a("rangeSelected", t);
|
|
3882
3892
|
};
|
|
3883
|
-
return (t, r) => (l(), n("ul",
|
|
3893
|
+
return (t, r) => (l(), n("ul", Yn, [
|
|
3884
3894
|
e("li", {
|
|
3885
3895
|
class: f({ selected: c(s) === "24h" }),
|
|
3886
3896
|
onClick: r[0] || (r[0] = (d) => o("24h"))
|
|
@@ -3899,7 +3909,7 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
3899
3909
|
}, "3M", 2)
|
|
3900
3910
|
]));
|
|
3901
3911
|
}
|
|
3902
|
-
}),
|
|
3912
|
+
}), Fn = { class: "chart-header flex flex-row justify-between" }, Vn = { class: "text-sm font-medium text-gray-500 truncate" }, Rn = { class: "chart-content" }, Un = { class: "h-full w-full flex items-center justify-center flex-col" }, Hn = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, En = /* @__PURE__ */ B({
|
|
3903
3913
|
__name: "uiFunnelChartV2",
|
|
3904
3914
|
props: {
|
|
3905
3915
|
labels: {},
|
|
@@ -3957,21 +3967,21 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
3957
3967
|
}
|
|
3958
3968
|
}
|
|
3959
3969
|
};
|
|
3960
|
-
const o =
|
|
3961
|
-
a("dataPointSelection", { id: i.id, chartContext: y, config:
|
|
3970
|
+
const o = P(() => ({ ...i.options, ...s })), t = P(() => i.series), r = () => a("chartUpdated"), d = (h, y, D) => {
|
|
3971
|
+
a("dataPointSelection", { id: i.id, chartContext: y, config: D, event: h });
|
|
3962
3972
|
};
|
|
3963
3973
|
return (h, y) => (l(), n(x, null, [
|
|
3964
|
-
|
|
3974
|
+
_(e("div", {
|
|
3965
3975
|
class: f(["h-[" + h.height + "px]", "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"])
|
|
3966
3976
|
}, [
|
|
3967
|
-
e("div",
|
|
3968
|
-
e("div",
|
|
3969
|
-
p(
|
|
3977
|
+
e("div", Fn, [
|
|
3978
|
+
e("div", Vn, g(h.title), 1),
|
|
3979
|
+
p(qn, {
|
|
3970
3980
|
range: h.range,
|
|
3971
|
-
onRangeSelected: y[0] || (y[0] = (
|
|
3981
|
+
onRangeSelected: y[0] || (y[0] = (D) => h.$emit("selectedRange", { range: D, chartId: h.id }))
|
|
3972
3982
|
}, null, 8, ["range"])
|
|
3973
3983
|
]),
|
|
3974
|
-
|
|
3984
|
+
_(e("div", Rn, [
|
|
3975
3985
|
p(c(Ce), {
|
|
3976
3986
|
type: h.type,
|
|
3977
3987
|
series: t.value,
|
|
@@ -3983,9 +3993,9 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
3983
3993
|
onDataPointSelection: d
|
|
3984
3994
|
}, null, 8, ["type", "series", "height", "options"])
|
|
3985
3995
|
], 512), [
|
|
3986
|
-
[
|
|
3996
|
+
[M, !h.empty]
|
|
3987
3997
|
]),
|
|
3988
|
-
|
|
3998
|
+
_(e("div", Un, [
|
|
3989
3999
|
p(T, {
|
|
3990
4000
|
icon: c(U),
|
|
3991
4001
|
color: "gray",
|
|
@@ -3994,12 +4004,12 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
3994
4004
|
}, null, 8, ["icon"]),
|
|
3995
4005
|
y[1] || (y[1] = e("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1))
|
|
3996
4006
|
], 512), [
|
|
3997
|
-
[
|
|
4007
|
+
[M, h.empty]
|
|
3998
4008
|
])
|
|
3999
4009
|
], 2), [
|
|
4000
|
-
[
|
|
4010
|
+
[M, !h.loading]
|
|
4001
4011
|
]),
|
|
4002
|
-
|
|
4012
|
+
_(e("div", Hn, y[2] || (y[2] = [
|
|
4003
4013
|
e("div", {
|
|
4004
4014
|
role: "status",
|
|
4005
4015
|
class: "w-full animate-pulse h-full flex flex-col"
|
|
@@ -4026,11 +4036,11 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
4026
4036
|
])
|
|
4027
4037
|
], -1)
|
|
4028
4038
|
]), 512), [
|
|
4029
|
-
[
|
|
4039
|
+
[M, h.loading]
|
|
4030
4040
|
])
|
|
4031
4041
|
], 64));
|
|
4032
4042
|
}
|
|
4033
|
-
}),
|
|
4043
|
+
}), Zn = { class: "w-full flex flex-col justify-center p-10 grow" }, Wn = { class: "text-center" }, Jn = { class: "text-2xl mt-4 font-bold" }, Gn = { class: "mt-4" }, Kn = { class: "buttons flex mt-8 gap-x-1 justify-center flex-col gap-y-2 md:flex-row md:gap-y-0" }, Qn = /* @__PURE__ */ B({
|
|
4034
4044
|
__name: "uiNoResults",
|
|
4035
4045
|
props: {
|
|
4036
4046
|
title: {},
|
|
@@ -4041,7 +4051,7 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
4041
4051
|
},
|
|
4042
4052
|
emits: ["action", "noResultsOptionSelected"],
|
|
4043
4053
|
setup(m) {
|
|
4044
|
-
return (u, a) => (l(), n("div",
|
|
4054
|
+
return (u, a) => (l(), n("div", Zn, [
|
|
4045
4055
|
p(T, {
|
|
4046
4056
|
class: "mx-auto",
|
|
4047
4057
|
loading: !1,
|
|
@@ -4049,17 +4059,17 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
4049
4059
|
size: "massive",
|
|
4050
4060
|
color: "gray"
|
|
4051
4061
|
}, null, 8, ["icon"]),
|
|
4052
|
-
e("div",
|
|
4053
|
-
e("h2",
|
|
4054
|
-
e("p",
|
|
4055
|
-
e("div",
|
|
4056
|
-
(l(!0), n(x, null,
|
|
4062
|
+
e("div", Wn, [
|
|
4063
|
+
e("h2", Jn, g(u.title), 1),
|
|
4064
|
+
e("p", Gn, g(u.message), 1),
|
|
4065
|
+
e("div", Kn, [
|
|
4066
|
+
(l(!0), n(x, null, S(u.actions, (i, s) => (l(), k(Z, {
|
|
4057
4067
|
key: s,
|
|
4058
4068
|
loading: !1,
|
|
4059
4069
|
onClick: (o) => u.$emit("action", i.action)
|
|
4060
4070
|
}, {
|
|
4061
4071
|
default: b(() => [
|
|
4062
|
-
|
|
4072
|
+
A(g(i.text), 1)
|
|
4063
4073
|
]),
|
|
4064
4074
|
_: 2
|
|
4065
4075
|
}, 1032, ["onClick"]))), 128)),
|
|
@@ -4073,7 +4083,7 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
4073
4083
|
])
|
|
4074
4084
|
]));
|
|
4075
4085
|
}
|
|
4076
|
-
}),
|
|
4086
|
+
}), Xn = { class: "fixed inset-0 overflow-hidden" }, ei = { class: "absolute inset-0 overflow-hidden" }, ti = { class: "pointer-events-none fixed inset-y-0 right-0 flex max-w-full pl-10" }, li = { class: "flex h-full flex-col overflow-y-scroll bg-white shadow-xl" }, si = { class: "bg-lime-400 px-4 py-6 sm:px-6" }, oi = { class: "flex items-center justify-between" }, ri = { class: "ml-3 flex h-7 items-center" }, ai = { class: "mt-1" }, ni = { class: "text-sm" }, ii = { class: "relative flex-1 px-4 py-6 sm:px-6" }, di = /* @__PURE__ */ B({
|
|
4077
4087
|
__name: "uiRightSidebar",
|
|
4078
4088
|
props: {
|
|
4079
4089
|
title: {},
|
|
@@ -4094,9 +4104,9 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
4094
4104
|
}, {
|
|
4095
4105
|
default: b(() => [
|
|
4096
4106
|
i[4] || (i[4] = e("div", { class: "fixed inset-0" }, null, -1)),
|
|
4097
|
-
e("div",
|
|
4098
|
-
e("div",
|
|
4099
|
-
e("div",
|
|
4107
|
+
e("div", Xn, [
|
|
4108
|
+
e("div", ei, [
|
|
4109
|
+
e("div", ti, [
|
|
4100
4110
|
p(c(J), {
|
|
4101
4111
|
as: "template",
|
|
4102
4112
|
enter: "transform transition ease-in-out duration-500 sm:duration-700",
|
|
@@ -4109,16 +4119,16 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
4109
4119
|
default: b(() => [
|
|
4110
4120
|
p(c(xe), { class: "pointer-events-auto w-screen max-w-md" }, {
|
|
4111
4121
|
default: b(() => [
|
|
4112
|
-
e("div",
|
|
4113
|
-
e("div",
|
|
4114
|
-
e("div",
|
|
4122
|
+
e("div", li, [
|
|
4123
|
+
e("div", si, [
|
|
4124
|
+
e("div", oi, [
|
|
4115
4125
|
p(c(Re), { class: "text-base font-semibold leading-6" }, {
|
|
4116
4126
|
default: b(() => [
|
|
4117
|
-
|
|
4127
|
+
A(g(a.title), 1)
|
|
4118
4128
|
]),
|
|
4119
4129
|
_: 1
|
|
4120
4130
|
}),
|
|
4121
|
-
e("div",
|
|
4131
|
+
e("div", ri, [
|
|
4122
4132
|
e("button", {
|
|
4123
4133
|
type: "button",
|
|
4124
4134
|
class: "relative rounded-md hover:bg-black hover:text-white outline-none",
|
|
@@ -4133,11 +4143,11 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
4133
4143
|
])
|
|
4134
4144
|
])
|
|
4135
4145
|
]),
|
|
4136
|
-
e("div",
|
|
4137
|
-
e("p",
|
|
4146
|
+
e("div", ai, [
|
|
4147
|
+
e("p", ni, g(a.description), 1)
|
|
4138
4148
|
])
|
|
4139
4149
|
]),
|
|
4140
|
-
e("div",
|
|
4150
|
+
e("div", ii, [
|
|
4141
4151
|
F(a.$slots, "default")
|
|
4142
4152
|
])
|
|
4143
4153
|
])
|
|
@@ -4158,15 +4168,15 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
4158
4168
|
_: 3
|
|
4159
4169
|
}, 8, ["show"]));
|
|
4160
4170
|
}
|
|
4161
|
-
}),
|
|
4171
|
+
}), ui = { class: "uiGallery" }, ci = {
|
|
4162
4172
|
key: 1,
|
|
4163
4173
|
role: "list",
|
|
4164
4174
|
class: "grid grid-cols-2 gap-x-4 gap-y-8 sm:grid-cols-3 sm:gap-x-4 lg:grid-cols-6"
|
|
4165
|
-
},
|
|
4175
|
+
}, gi = { class: "group aspect-h-7 aspect-w-10 block w-full overflow-hidden rounded-lg bg-gray-100 focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 focus-within:ring-offset-gray-100" }, mi = ["src"], pi = ["onClick"], fi = { class: "pointer-events-none mt-2 block truncate text-sm font-medium text-gray-900" }, hi = { class: "flex items-center justify-between" }, yi = { class: "pointer-events-none block text-sm font-medium" }, bi = {
|
|
4166
4176
|
key: 2,
|
|
4167
4177
|
role: "list",
|
|
4168
4178
|
class: "grid grid-cols-2 gap-x-4 gap-y-8 sm:grid-cols-3 sm:gap-x-4 lg:grid-cols-6"
|
|
4169
|
-
},
|
|
4179
|
+
}, vi = /* @__PURE__ */ B({
|
|
4170
4180
|
__name: "uiGallery",
|
|
4171
4181
|
props: {
|
|
4172
4182
|
galleryId: {},
|
|
@@ -4179,7 +4189,7 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
4179
4189
|
const a = u, i = N(!1), s = (o) => {
|
|
4180
4190
|
i.value = !1, a("modalAction", o);
|
|
4181
4191
|
};
|
|
4182
|
-
return (o, t) => (l(), n("div",
|
|
4192
|
+
return (o, t) => (l(), n("div", ui, [
|
|
4183
4193
|
o.loading ? v("", !0) : (l(), k(Qe, {
|
|
4184
4194
|
key: 0,
|
|
4185
4195
|
open: i.value,
|
|
@@ -4194,35 +4204,35 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
4194
4204
|
]),
|
|
4195
4205
|
_: 1
|
|
4196
4206
|
}, 8, ["open", "title", "actions"])),
|
|
4197
|
-
o.loading ? (l(), n("ul",
|
|
4198
|
-
(l(), n(x, null,
|
|
4207
|
+
o.loading ? (l(), n("ul", bi, [
|
|
4208
|
+
(l(), n(x, null, S(4, (r) => e("li", null, t[2] || (t[2] = [
|
|
4199
4209
|
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),
|
|
4200
4210
|
e("p", { class: "animate-pulse h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28 mt-4" }, null, -1),
|
|
4201
4211
|
e("p", { class: "animate-pulse h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-14 mt-2" }, null, -1)
|
|
4202
4212
|
]))), 64))
|
|
4203
|
-
])) : (l(), n("ul",
|
|
4204
|
-
(l(!0), n(x, null,
|
|
4213
|
+
])) : (l(), n("ul", ci, [
|
|
4214
|
+
(l(!0), n(x, null, S(o.gallery, (r) => (l(), n("li", {
|
|
4205
4215
|
key: r.source,
|
|
4206
4216
|
class: "relative"
|
|
4207
4217
|
}, [
|
|
4208
|
-
e("div",
|
|
4218
|
+
e("div", gi, [
|
|
4209
4219
|
e("img", {
|
|
4210
4220
|
src: r.source,
|
|
4211
4221
|
alt: "",
|
|
4212
4222
|
class: "pointer-events-none object-cover group-hover:opacity-75"
|
|
4213
|
-
}, null, 8,
|
|
4223
|
+
}, null, 8, mi),
|
|
4214
4224
|
e("button", {
|
|
4215
4225
|
type: "button",
|
|
4216
4226
|
class: "absolute inset-0 focus:outline-none",
|
|
4217
4227
|
onClick: (d) => o.$emit("imgClicked", r)
|
|
4218
|
-
}, null, 8,
|
|
4228
|
+
}, null, 8, pi)
|
|
4219
4229
|
]),
|
|
4220
|
-
e("p",
|
|
4221
|
-
e("div",
|
|
4222
|
-
e("p",
|
|
4230
|
+
e("p", fi, g(r.title), 1),
|
|
4231
|
+
e("div", hi, [
|
|
4232
|
+
e("p", yi, g(r.size), 1),
|
|
4223
4233
|
p(T, {
|
|
4224
4234
|
class: "cursor-pointer",
|
|
4225
|
-
icon: c(
|
|
4235
|
+
icon: c(It),
|
|
4226
4236
|
color: "red",
|
|
4227
4237
|
loading: !1,
|
|
4228
4238
|
onClick: (d) => o.$emit("deleteImage", r)
|
|
@@ -4239,16 +4249,16 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
4239
4249
|
size: "small"
|
|
4240
4250
|
}, {
|
|
4241
4251
|
default: b(() => [
|
|
4242
|
-
|
|
4252
|
+
A(g(o.literals.deleteAllImages), 1)
|
|
4243
4253
|
]),
|
|
4244
4254
|
_: 1
|
|
4245
4255
|
})) : v("", !0)
|
|
4246
4256
|
]));
|
|
4247
4257
|
}
|
|
4248
|
-
}),
|
|
4258
|
+
}), wi = { 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" }, ki = { class: "flex flex-row items-center w-full" }, xi = { class: "content text-sm grow" }, $i = { class: "font-bold" }, _i = { key: 0 }, Ci = { class: "font-bold text-gray-400" }, Si = {
|
|
4249
4259
|
key: 1,
|
|
4250
4260
|
class: "animate-pulse"
|
|
4251
|
-
},
|
|
4261
|
+
}, Bi = /* @__PURE__ */ B({
|
|
4252
4262
|
__name: "uiDragAndDrop",
|
|
4253
4263
|
props: {
|
|
4254
4264
|
elements: {},
|
|
@@ -4264,7 +4274,7 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
4264
4274
|
const o = (t) => {
|
|
4265
4275
|
a("dragAndDropUpdated", t);
|
|
4266
4276
|
};
|
|
4267
|
-
return (t, r) => t.loading ? (l(), n("div",
|
|
4277
|
+
return (t, r) => t.loading ? (l(), n("div", Si, r[2] || (r[2] = [
|
|
4268
4278
|
G('<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)
|
|
4269
4279
|
]))) : (l(), k(c(ft), {
|
|
4270
4280
|
key: 0,
|
|
@@ -4275,8 +4285,8 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
4275
4285
|
]
|
|
4276
4286
|
}, {
|
|
4277
4287
|
item: b(({ item: d }) => [
|
|
4278
|
-
e("div",
|
|
4279
|
-
e("div",
|
|
4288
|
+
e("div", wi, [
|
|
4289
|
+
e("div", ki, [
|
|
4280
4290
|
p(T, {
|
|
4281
4291
|
icon: c(Mt),
|
|
4282
4292
|
loading: !1,
|
|
@@ -4284,18 +4294,18 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
4284
4294
|
class: "mr-4",
|
|
4285
4295
|
size: "big"
|
|
4286
4296
|
}, null, 8, ["icon"]),
|
|
4287
|
-
e("div",
|
|
4288
|
-
e("p",
|
|
4289
|
-
d.description ? (l(), n("p",
|
|
4297
|
+
e("div", xi, [
|
|
4298
|
+
e("p", $i, g(d.name), 1),
|
|
4299
|
+
d.description ? (l(), n("p", _i, g(d.description), 1)) : v("", !0)
|
|
4290
4300
|
]),
|
|
4291
|
-
e("div",
|
|
4301
|
+
e("div", Ci, g(c(s).indexOf(d) + 1), 1)
|
|
4292
4302
|
])
|
|
4293
4303
|
])
|
|
4294
4304
|
]),
|
|
4295
4305
|
_: 1
|
|
4296
4306
|
}, 8, ["modelValue"]));
|
|
4297
4307
|
}
|
|
4298
|
-
}),
|
|
4308
|
+
}), Mi = { class: "chart-header flex flex-row justify-between" }, Di = { class: "text-sm font-medium text-gray-500 truncate" }, ji = { class: "hidden sm:flex items-center" }, Ti = { class: "w-1/2 min-w-0 flex-1" }, zi = ["max"], Li = { class: "min-w-0 flex-1" }, Ai = ["max"], Oi = { class: "chart-content" }, Ii = { class: "h-full w-full flex items-center justify-center flex-col" }, Ni = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, Pi = /* @__PURE__ */ B({
|
|
4299
4309
|
__name: "uiCircleChart",
|
|
4300
4310
|
props: {
|
|
4301
4311
|
labels: {},
|
|
@@ -4319,8 +4329,8 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
4319
4329
|
setup(m, { emit: u }) {
|
|
4320
4330
|
const a = u, i = m, s = N((/* @__PURE__ */ new Date()).toISOString().slice(0, (/* @__PURE__ */ new Date()).toISOString().lastIndexOf(":")));
|
|
4321
4331
|
let o = de(i.dates || { from: "", to: s });
|
|
4322
|
-
V(() => i.dates, (
|
|
4323
|
-
|
|
4332
|
+
V(() => i.dates, (z) => {
|
|
4333
|
+
z && (o = z);
|
|
4324
4334
|
});
|
|
4325
4335
|
let t = {
|
|
4326
4336
|
chart: {
|
|
@@ -4354,82 +4364,82 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
4354
4364
|
}
|
|
4355
4365
|
}
|
|
4356
4366
|
};
|
|
4357
|
-
const r = () => ({ ...t, ...i.options }), d =
|
|
4358
|
-
a("dataPointSelection", { id: i.id, chartContext:
|
|
4359
|
-
},
|
|
4360
|
-
o.from !== "" && o.to !== "" &&
|
|
4367
|
+
const r = () => ({ ...t, ...i.options }), d = P(() => i.series), h = P(() => r()), y = () => a("chartUpdated"), D = (z, w, L) => {
|
|
4368
|
+
a("dataPointSelection", { id: i.id, chartContext: w, config: L, event: z });
|
|
4369
|
+
}, C = () => {
|
|
4370
|
+
o.from !== "" && o.to !== "" && I(o.from).isBefore(I(o.to)) && a("selectedRange", { range: o, chartId: i.id });
|
|
4361
4371
|
};
|
|
4362
|
-
return (
|
|
4363
|
-
|
|
4364
|
-
class: f(["h-[" +
|
|
4372
|
+
return (z, w) => (l(), n(x, null, [
|
|
4373
|
+
_(e("div", {
|
|
4374
|
+
class: f(["h-[" + z.height + "px]", "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"])
|
|
4365
4375
|
}, [
|
|
4366
|
-
e("div",
|
|
4367
|
-
e("div",
|
|
4368
|
-
e("div",
|
|
4369
|
-
e("div",
|
|
4370
|
-
|
|
4376
|
+
e("div", Mi, [
|
|
4377
|
+
e("div", Di, g(z.title), 1),
|
|
4378
|
+
e("div", ji, [
|
|
4379
|
+
e("div", Ti, [
|
|
4380
|
+
_(e("input", {
|
|
4371
4381
|
type: "datetime-local",
|
|
4372
|
-
"onUpdate:modelValue":
|
|
4382
|
+
"onUpdate:modelValue": w[0] || (w[0] = (L) => c(o).from = L),
|
|
4373
4383
|
max: s.value.toString(),
|
|
4374
|
-
onChange:
|
|
4384
|
+
onChange: C,
|
|
4375
4385
|
name: "from",
|
|
4376
4386
|
id: "from",
|
|
4377
4387
|
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"
|
|
4378
|
-
}, null, 40,
|
|
4388
|
+
}, null, 40, zi), [
|
|
4379
4389
|
[Q, c(o).from]
|
|
4380
4390
|
])
|
|
4381
4391
|
]),
|
|
4382
|
-
e("div",
|
|
4383
|
-
|
|
4392
|
+
e("div", Li, [
|
|
4393
|
+
_(e("input", {
|
|
4384
4394
|
type: "datetime-local",
|
|
4385
|
-
"onUpdate:modelValue":
|
|
4395
|
+
"onUpdate:modelValue": w[1] || (w[1] = (L) => c(o).to = L),
|
|
4386
4396
|
max: s.value.toString(),
|
|
4387
|
-
onChange:
|
|
4397
|
+
onChange: C,
|
|
4388
4398
|
name: "to",
|
|
4389
4399
|
id: "to",
|
|
4390
4400
|
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"
|
|
4391
|
-
}, null, 40,
|
|
4401
|
+
}, null, 40, Ai), [
|
|
4392
4402
|
[Q, c(o).to]
|
|
4393
4403
|
])
|
|
4394
4404
|
]),
|
|
4395
4405
|
p(T, {
|
|
4396
4406
|
class: "ml-4 cursor-pointer",
|
|
4397
4407
|
size: "big",
|
|
4398
|
-
loading:
|
|
4408
|
+
loading: z.loading,
|
|
4399
4409
|
icon: c(He),
|
|
4400
|
-
onClick:
|
|
4410
|
+
onClick: w[2] || (w[2] = (L) => z.$emit("maximizeChart", z.id))
|
|
4401
4411
|
}, null, 8, ["loading", "icon"])
|
|
4402
4412
|
])
|
|
4403
4413
|
]),
|
|
4404
|
-
|
|
4414
|
+
_(e("div", Oi, [
|
|
4405
4415
|
p(c(Ce), {
|
|
4406
4416
|
class: "flex items-center justify-center mt-4",
|
|
4407
4417
|
type: "donut",
|
|
4408
4418
|
series: d.value,
|
|
4409
4419
|
options: h.value,
|
|
4410
|
-
height:
|
|
4420
|
+
height: z.height - 80,
|
|
4411
4421
|
onUpdated: y,
|
|
4412
4422
|
onMounted: y,
|
|
4413
|
-
onDataPointSelection:
|
|
4423
|
+
onDataPointSelection: D
|
|
4414
4424
|
}, null, 8, ["series", "options", "height"])
|
|
4415
4425
|
], 512), [
|
|
4416
|
-
[
|
|
4426
|
+
[M, !z.empty]
|
|
4417
4427
|
]),
|
|
4418
|
-
|
|
4428
|
+
_(e("div", Ii, [
|
|
4419
4429
|
p(T, {
|
|
4420
4430
|
icon: c(U),
|
|
4421
4431
|
color: "gray",
|
|
4422
4432
|
loading: !1,
|
|
4423
4433
|
size: "huge"
|
|
4424
4434
|
}, null, 8, ["icon"]),
|
|
4425
|
-
|
|
4435
|
+
w[3] || (w[3] = e("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1))
|
|
4426
4436
|
], 512), [
|
|
4427
|
-
[
|
|
4437
|
+
[M, z.empty]
|
|
4428
4438
|
])
|
|
4429
4439
|
], 2), [
|
|
4430
|
-
[
|
|
4440
|
+
[M, !z.loading]
|
|
4431
4441
|
]),
|
|
4432
|
-
|
|
4442
|
+
_(e("div", Ni, w[4] || (w[4] = [
|
|
4433
4443
|
e("div", {
|
|
4434
4444
|
role: "status",
|
|
4435
4445
|
class: "w-full animate-pulse h-full flex flex-col"
|
|
@@ -4456,17 +4466,17 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
4456
4466
|
])
|
|
4457
4467
|
], -1)
|
|
4458
4468
|
]), 512), [
|
|
4459
|
-
[
|
|
4469
|
+
[M, z.loading]
|
|
4460
4470
|
])
|
|
4461
4471
|
], 64));
|
|
4462
4472
|
}
|
|
4463
|
-
}),
|
|
4473
|
+
}), Yi = {
|
|
4464
4474
|
key: 0,
|
|
4465
4475
|
class: "flex flex-col lg:flex-row w-full gap-y-4 gap-x-2"
|
|
4466
|
-
},
|
|
4476
|
+
}, qi = {
|
|
4467
4477
|
key: 1,
|
|
4468
4478
|
class: "flex flex-col lg:flex-row w-full gap-y-4 gap-x-2"
|
|
4469
|
-
},
|
|
4479
|
+
}, Fi = /* @__PURE__ */ B({
|
|
4470
4480
|
__name: "uiDateRange",
|
|
4471
4481
|
props: {
|
|
4472
4482
|
id: {},
|
|
@@ -4490,7 +4500,7 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
4490
4500
|
const t = () => {
|
|
4491
4501
|
o("uiDateRangeButtonClicked", s);
|
|
4492
4502
|
};
|
|
4493
|
-
return (r, d) => r.loading ? (l(), n("div",
|
|
4503
|
+
return (r, d) => r.loading ? (l(), n("div", qi, [
|
|
4494
4504
|
p(H, {
|
|
4495
4505
|
name: "dateFrom",
|
|
4496
4506
|
loading: !0
|
|
@@ -4501,12 +4511,12 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
4501
4511
|
}),
|
|
4502
4512
|
p(Z, { loading: !0 }, {
|
|
4503
4513
|
default: b(() => d[2] || (d[2] = [
|
|
4504
|
-
|
|
4514
|
+
A("Search")
|
|
4505
4515
|
])),
|
|
4506
4516
|
_: 1,
|
|
4507
4517
|
__: [2]
|
|
4508
4518
|
})
|
|
4509
|
-
])) : (l(), n("div",
|
|
4519
|
+
])) : (l(), n("div", Yi, [
|
|
4510
4520
|
p(H, {
|
|
4511
4521
|
type: "datetime-local",
|
|
4512
4522
|
loading: !1,
|
|
@@ -4542,23 +4552,23 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
4542
4552
|
onClick: t
|
|
4543
4553
|
}, {
|
|
4544
4554
|
default: b(() => [
|
|
4545
|
-
|
|
4555
|
+
A(g(r.literals.search), 1)
|
|
4546
4556
|
]),
|
|
4547
4557
|
_: 1
|
|
4548
4558
|
}, 8, ["disabled", "class"])
|
|
4549
4559
|
]));
|
|
4550
4560
|
}
|
|
4551
|
-
}),
|
|
4561
|
+
}), Vi = { class: "flex justify-between items-center" }, Ri = {
|
|
4552
4562
|
key: 0,
|
|
4553
4563
|
class: "block text-sm font-medium"
|
|
4554
|
-
},
|
|
4564
|
+
}, Ui = {
|
|
4555
4565
|
key: 1,
|
|
4556
4566
|
"data-test": "required",
|
|
4557
4567
|
class: "place-self-center text-[10px] uppercase justify-self-end"
|
|
4558
|
-
},
|
|
4568
|
+
}, Hi = {
|
|
4559
4569
|
key: 1,
|
|
4560
4570
|
class: "h-2 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 w-full"
|
|
4561
|
-
},
|
|
4571
|
+
}, Ei = /* @__PURE__ */ B({
|
|
4562
4572
|
__name: "uiRangeSlider",
|
|
4563
4573
|
props: {
|
|
4564
4574
|
loading: { type: Boolean, default: !0 },
|
|
@@ -4573,14 +4583,14 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
4573
4583
|
setup(m, { emit: u }) {
|
|
4574
4584
|
const a = u, s = N(m.sliderValue);
|
|
4575
4585
|
return (o, t) => (l(), n("div", null, [
|
|
4576
|
-
e("div",
|
|
4577
|
-
o.label ? (l(), n("label",
|
|
4578
|
-
o.requiredText ? (l(), n("span",
|
|
4586
|
+
e("div", Vi, [
|
|
4587
|
+
o.label ? (l(), n("label", Ri, g(o.label), 1)) : v("", !0),
|
|
4588
|
+
o.requiredText ? (l(), n("span", Ui, g(o.requiredText), 1)) : v("", !0)
|
|
4579
4589
|
]),
|
|
4580
4590
|
e("div", {
|
|
4581
4591
|
class: f([{ "mt-1": o.label }, "pt-16 px-6 pb-6 bg-gray-50 border border-black rounded-lg shadow-sm"])
|
|
4582
4592
|
}, [
|
|
4583
|
-
o.loading ? (l(), n("p",
|
|
4593
|
+
o.loading ? (l(), n("p", Hi)) : (l(), k(c(ht), {
|
|
4584
4594
|
key: 0,
|
|
4585
4595
|
modelValue: s.value,
|
|
4586
4596
|
"onUpdate:modelValue": t[0] || (t[0] = (r) => s.value = r),
|
|
@@ -4596,7 +4606,7 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
4596
4606
|
], 2)
|
|
4597
4607
|
]));
|
|
4598
4608
|
}
|
|
4599
|
-
}),
|
|
4609
|
+
}), Zi = { class: "mt-1 mb-8 text-sm" }, Wi = /* @__PURE__ */ B({
|
|
4600
4610
|
__name: "uiSectionTitle",
|
|
4601
4611
|
props: {
|
|
4602
4612
|
title: {},
|
|
@@ -4607,16 +4617,16 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
4607
4617
|
e("h3", {
|
|
4608
4618
|
class: f(["text-lg font-medium leading-6", { "mb-8": u.description === void 0 }])
|
|
4609
4619
|
}, g(u.title), 3),
|
|
4610
|
-
e("p",
|
|
4620
|
+
e("p", Zi, g(u.description), 1)
|
|
4611
4621
|
], 64));
|
|
4612
4622
|
}
|
|
4613
|
-
}),
|
|
4623
|
+
}), Ji = {
|
|
4614
4624
|
key: 0,
|
|
4615
4625
|
class: "col-span-1 flex flex-col divide-y divide-gray-200 rounded-lg bg-white text-center shadow"
|
|
4616
|
-
},
|
|
4626
|
+
}, Gi = { class: "flex flex-1 flex-col p-8" }, Ki = { class: "text-2xl font-bold" }, Qi = { class: "mt-1 flex flex-grow flex-col justify-between" }, Xi = { class: "mt-3 flex flex-wrap gap-x-1 gap-y-1 justify-center" }, ed = {
|
|
4617
4627
|
key: 1,
|
|
4618
4628
|
class: "col-span-1 flex flex-col divide-y divide-gray-200 rounded-lg bg-white text-center shadow"
|
|
4619
|
-
},
|
|
4629
|
+
}, td = { class: "flex flex-1 flex-col p-8" }, ld = { class: "rounded-md p-3 flex items-center justify-center mx-auto mb-4 bg-gray-200" }, sd = { class: "mt-1 flex flex-grow flex-col justify-between" }, od = { class: "mt-3 flex flex-wrap gap-x-1 gap-y-1 justify-center" }, rd = /* @__PURE__ */ B({
|
|
4620
4630
|
__name: "uiDeviceStatus",
|
|
4621
4631
|
props: {
|
|
4622
4632
|
id: {},
|
|
@@ -4629,9 +4639,9 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
4629
4639
|
},
|
|
4630
4640
|
emits: ["deviceStatusTagClicked", "deviceStatusQtyClicked"],
|
|
4631
4641
|
setup(m, { emit: u }) {
|
|
4632
|
-
return (a, i) => a.loading ? (l(), n("div",
|
|
4633
|
-
e("div",
|
|
4634
|
-
e("div",
|
|
4642
|
+
return (a, i) => a.loading ? (l(), n("div", ed, [
|
|
4643
|
+
e("div", td, [
|
|
4644
|
+
e("div", ld, [
|
|
4635
4645
|
p(T, {
|
|
4636
4646
|
icon: a.icon,
|
|
4637
4647
|
size: "huge",
|
|
@@ -4641,9 +4651,9 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
4641
4651
|
}, null, 8, ["icon", "loading"])
|
|
4642
4652
|
]),
|
|
4643
4653
|
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)),
|
|
4644
|
-
e("dl",
|
|
4645
|
-
e("dd",
|
|
4646
|
-
(l(!0), n(x, null,
|
|
4654
|
+
e("dl", sd, [
|
|
4655
|
+
e("dd", od, [
|
|
4656
|
+
(l(!0), n(x, null, S(a.tags, (s, o) => (l(), k(R, {
|
|
4647
4657
|
key: o,
|
|
4648
4658
|
loading: a.loading,
|
|
4649
4659
|
event: s.event,
|
|
@@ -4651,15 +4661,15 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
4651
4661
|
onTagEvent: i[2] || (i[2] = (t) => a.$emit("deviceStatusTagClicked", t))
|
|
4652
4662
|
}, {
|
|
4653
4663
|
default: b(() => [
|
|
4654
|
-
|
|
4664
|
+
A(g(s.name), 1)
|
|
4655
4665
|
]),
|
|
4656
4666
|
_: 2
|
|
4657
4667
|
}, 1032, ["loading", "event", "color"]))), 128))
|
|
4658
4668
|
])
|
|
4659
4669
|
])
|
|
4660
4670
|
])
|
|
4661
|
-
])) : (l(), n("div",
|
|
4662
|
-
e("div",
|
|
4671
|
+
])) : (l(), n("div", Ji, [
|
|
4672
|
+
e("div", Gi, [
|
|
4663
4673
|
e("div", {
|
|
4664
4674
|
class: f(["rounded-md p-3 flex items-center justify-center mx-auto mb-4", {
|
|
4665
4675
|
"bg-lime-400": a.color === "green" || a.color === "primary" || !a.color,
|
|
@@ -4677,18 +4687,18 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
4677
4687
|
loading: !1
|
|
4678
4688
|
}, null, 8, ["icon"])
|
|
4679
4689
|
], 2),
|
|
4680
|
-
e("h3",
|
|
4681
|
-
|
|
4682
|
-
|
|
4690
|
+
e("h3", Ki, [
|
|
4691
|
+
A(g(a.name) + " ", 1),
|
|
4692
|
+
_(e("span", {
|
|
4683
4693
|
class: "text-black hover:text-lime-400 underline cursor-pointer",
|
|
4684
4694
|
onClick: i[0] || (i[0] = (s) => a.$emit("deviceStatusQtyClicked", a.id))
|
|
4685
4695
|
}, "(" + g(a.qty) + ")", 513), [
|
|
4686
|
-
[
|
|
4696
|
+
[M, a.qty > 0]
|
|
4687
4697
|
])
|
|
4688
4698
|
]),
|
|
4689
|
-
e("dl",
|
|
4690
|
-
e("dd",
|
|
4691
|
-
(l(!0), n(x, null,
|
|
4699
|
+
e("dl", Qi, [
|
|
4700
|
+
e("dd", Xi, [
|
|
4701
|
+
(l(!0), n(x, null, S(a.tags, (s, o) => (l(), k(R, {
|
|
4692
4702
|
key: o,
|
|
4693
4703
|
loading: !1,
|
|
4694
4704
|
event: s.event,
|
|
@@ -4696,7 +4706,7 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
4696
4706
|
onTagEvent: i[1] || (i[1] = (t) => a.$emit("deviceStatusTagClicked", t))
|
|
4697
4707
|
}, {
|
|
4698
4708
|
default: b(() => [
|
|
4699
|
-
|
|
4709
|
+
A(g(s.name), 1)
|
|
4700
4710
|
]),
|
|
4701
4711
|
_: 2
|
|
4702
4712
|
}, 1032, ["event", "color"]))), 128))
|
|
@@ -4705,7 +4715,7 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
4705
4715
|
])
|
|
4706
4716
|
]));
|
|
4707
4717
|
}
|
|
4708
|
-
}),
|
|
4718
|
+
}), ad = { class: "fixed inset-0 flex" }, nd = { class: "absolute left-full top-0 flex w-16 justify-center pt-5" }, id = { class: "hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-[25rem] lg:flex-col" }, dd = { class: "lg:pl-[25rem]" }, ud = { 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" }, gd = { class: "flex items-center gap-x-4 lg:gap-x-6" }, md = { class: "redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute top-1 left-2" }, pd = ["src"], fd = { class: "hidden lg:flex lg:items-center" }, hd = ["onClick"], yd = { class: "py-7" }, bd = { class: "px-7 lg:px-10" }, vd = /* @__PURE__ */ B({
|
|
4709
4719
|
__name: "uiWrapper",
|
|
4710
4720
|
props: {
|
|
4711
4721
|
topbar: {},
|
|
@@ -4743,7 +4753,7 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
4743
4753
|
_: 1,
|
|
4744
4754
|
__: [10]
|
|
4745
4755
|
}),
|
|
4746
|
-
e("div",
|
|
4756
|
+
e("div", ad, [
|
|
4747
4757
|
p(c(J), {
|
|
4748
4758
|
as: "template",
|
|
4749
4759
|
enter: "transition ease-in-out duration-300 transform",
|
|
@@ -4766,7 +4776,7 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
4766
4776
|
"leave-to": "opacity-0"
|
|
4767
4777
|
}, {
|
|
4768
4778
|
default: b(() => [
|
|
4769
|
-
e("div",
|
|
4779
|
+
e("div", nd, [
|
|
4770
4780
|
e("button", {
|
|
4771
4781
|
type: "button",
|
|
4772
4782
|
class: "-m-2.5 p-2.5",
|
|
@@ -4807,7 +4817,7 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
4807
4817
|
]),
|
|
4808
4818
|
_: 1
|
|
4809
4819
|
}, 8, ["show"]),
|
|
4810
|
-
e("div",
|
|
4820
|
+
e("div", id, [
|
|
4811
4821
|
p(pe, {
|
|
4812
4822
|
productsSidebar: t.sidebar.productsSidebar,
|
|
4813
4823
|
isFilterNavigation: t.sidebar.isFilterNavigation,
|
|
@@ -4821,8 +4831,8 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
4821
4831
|
onInputChanged: r[7] || (r[7] = (d) => t.$emit("inputChanged", d))
|
|
4822
4832
|
}, null, 8, ["productsSidebar", "isFilterNavigation", "navigation", "filterNavigation", "logo"])
|
|
4823
4833
|
]),
|
|
4824
|
-
e("div",
|
|
4825
|
-
e("div",
|
|
4834
|
+
e("div", dd, [
|
|
4835
|
+
e("div", ud, [
|
|
4826
4836
|
e("button", {
|
|
4827
4837
|
type: "button",
|
|
4828
4838
|
class: "-m-2.5 p-2.5 text-gray-700 lg:hidden",
|
|
@@ -4838,7 +4848,7 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
4838
4848
|
class: "h-6 w-px bg-gray-200 lg:hidden",
|
|
4839
4849
|
"aria-hidden": "true"
|
|
4840
4850
|
}, null, -1)),
|
|
4841
|
-
e("div",
|
|
4851
|
+
e("div", cd, [
|
|
4842
4852
|
p(Be, {
|
|
4843
4853
|
isWrapped: !0,
|
|
4844
4854
|
class: "w-full self-center relative",
|
|
@@ -4846,17 +4856,17 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
4846
4856
|
select: t.topbar.selectedItem,
|
|
4847
4857
|
onSelectChanged: r[8] || (r[8] = (d) => t.$emit("selectChanged", d))
|
|
4848
4858
|
}, null, 8, ["items", "select"]),
|
|
4849
|
-
e("div",
|
|
4859
|
+
e("div", gd, [
|
|
4850
4860
|
e("button", {
|
|
4851
4861
|
type: "button",
|
|
4852
4862
|
class: "-m-2.5 p-2.5 text-gray-400 hover:text-gray-500 relative",
|
|
4853
4863
|
onClick: r[9] || (r[9] = (d) => i("bellClick"))
|
|
4854
4864
|
}, [
|
|
4855
4865
|
r[14] || (r[14] = e("span", { class: "sr-only" }, "View notifications", -1)),
|
|
4856
|
-
|
|
4866
|
+
_(e("div", md, r[13] || (r[13] = [
|
|
4857
4867
|
e("span", { class: "animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75" }, null, -1)
|
|
4858
4868
|
]), 512), [
|
|
4859
|
-
[
|
|
4869
|
+
[M, t.topbar.alerted]
|
|
4860
4870
|
]),
|
|
4861
4871
|
p(c(Dt), {
|
|
4862
4872
|
class: "h-6 w-6",
|
|
@@ -4879,8 +4889,8 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
4879
4889
|
class: "h-8 w-8 rounded-full bg-gray-50",
|
|
4880
4890
|
src: t.topbar.accountLogo,
|
|
4881
4891
|
alt: ""
|
|
4882
|
-
}, null, 8,
|
|
4883
|
-
e("span",
|
|
4892
|
+
}, null, 8, pd),
|
|
4893
|
+
e("span", fd, [
|
|
4884
4894
|
p(c(ne), {
|
|
4885
4895
|
class: "ml-2 h-5 w-5 text-gray-400",
|
|
4886
4896
|
"aria-hidden": "true"
|
|
@@ -4901,14 +4911,14 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
4901
4911
|
default: b(() => [
|
|
4902
4912
|
p(c(be), { 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" }, {
|
|
4903
4913
|
default: b(() => [
|
|
4904
|
-
(l(!0), n(x, null,
|
|
4914
|
+
(l(!0), n(x, null, S(t.topbar.profileMenu, (d) => (l(), k(c(ve), {
|
|
4905
4915
|
key: d.name
|
|
4906
4916
|
}, {
|
|
4907
4917
|
default: b(({ active: h }) => [
|
|
4908
4918
|
e("a", {
|
|
4909
4919
|
onClick: (y) => t.$emit("topBarClick", d.id),
|
|
4910
4920
|
class: f([h ? "bg-gray-50" : "", "block px-3 py-1 text-sm leading-6 text-gray-900"])
|
|
4911
|
-
}, g(d.name), 11,
|
|
4921
|
+
}, g(d.name), 11, hd)
|
|
4912
4922
|
]),
|
|
4913
4923
|
_: 2
|
|
4914
4924
|
}, 1024))), 128))
|
|
@@ -4924,15 +4934,15 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
4924
4934
|
])
|
|
4925
4935
|
])
|
|
4926
4936
|
]),
|
|
4927
|
-
e("main",
|
|
4928
|
-
e("div",
|
|
4937
|
+
e("main", yd, [
|
|
4938
|
+
e("div", bd, [
|
|
4929
4939
|
F(t.$slots, "default")
|
|
4930
4940
|
])
|
|
4931
4941
|
])
|
|
4932
4942
|
])
|
|
4933
4943
|
]));
|
|
4934
4944
|
}
|
|
4935
|
-
}),
|
|
4945
|
+
}), wd = /* @__PURE__ */ B({
|
|
4936
4946
|
__name: "uiDynamicStats",
|
|
4937
4947
|
props: {
|
|
4938
4948
|
dynamicStats: {},
|
|
@@ -4944,23 +4954,23 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
4944
4954
|
class: f([s.value, "grid grid-cols-1 md:grid-cols-2 gap-4"]),
|
|
4945
4955
|
key: i.value
|
|
4946
4956
|
}, [
|
|
4947
|
-
(l(!0), n(x, null,
|
|
4957
|
+
(l(!0), n(x, null, S(o.dynamicStats, (r, d) => (l(), k(et, {
|
|
4948
4958
|
key: d,
|
|
4949
4959
|
item: r,
|
|
4950
4960
|
loading: o.loading
|
|
4951
4961
|
}, null, 8, ["item", "loading"]))), 128))
|
|
4952
4962
|
], 2));
|
|
4953
4963
|
}
|
|
4954
|
-
}),
|
|
4964
|
+
}), kd = { class: "flex justify-between" }, xd = {
|
|
4955
4965
|
key: 0,
|
|
4956
4966
|
class: "text-[10px] uppercase justify-self-end place-self-center"
|
|
4957
|
-
},
|
|
4967
|
+
}, $d = { class: "relative" }, _d = { class: "block flex flex-wrap gap-2" }, Cd = {
|
|
4958
4968
|
key: 0,
|
|
4959
4969
|
class: "p-0.5"
|
|
4960
|
-
},
|
|
4970
|
+
}, Sd = ["onClick"], Bd = { class: "absolute mt-1 w-full rounded-md bg-white shadow-lg z-50" }, Md = {
|
|
4961
4971
|
key: 1,
|
|
4962
4972
|
class: "animate-pulse px-4 py-2.5 bg-gray-200 rounded-md flex justify-between items-center w-full"
|
|
4963
|
-
}, tt = /* @__PURE__ */
|
|
4973
|
+
}, tt = /* @__PURE__ */ B({
|
|
4964
4974
|
__name: "uiSelectMultiple",
|
|
4965
4975
|
props: {
|
|
4966
4976
|
items: {},
|
|
@@ -4984,7 +4994,7 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
4984
4994
|
function t(r) {
|
|
4985
4995
|
s.value = s.value.filter((d) => d.id !== r.id), o(s.value);
|
|
4986
4996
|
}
|
|
4987
|
-
return (r, d) => r.loading ? (l(), n("div",
|
|
4997
|
+
return (r, d) => r.loading ? (l(), n("div", Md, [
|
|
4988
4998
|
d[4] || (d[4] = e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1)),
|
|
4989
4999
|
p(c(me), {
|
|
4990
5000
|
"aria-hidden": "true",
|
|
@@ -5003,16 +5013,16 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
5003
5013
|
as: "div"
|
|
5004
5014
|
}, {
|
|
5005
5015
|
default: b(() => [
|
|
5006
|
-
e("div",
|
|
5016
|
+
e("div", kd, [
|
|
5007
5017
|
p(c(ct), { class: "block text-sm font-medium" }, {
|
|
5008
5018
|
default: b(() => [
|
|
5009
|
-
|
|
5019
|
+
A(g(r.label), 1)
|
|
5010
5020
|
]),
|
|
5011
5021
|
_: 1
|
|
5012
5022
|
}),
|
|
5013
|
-
r.requiredText ? (l(), n("span",
|
|
5023
|
+
r.requiredText ? (l(), n("span", xd, g(r.requiredText), 1)) : v("", !0)
|
|
5014
5024
|
]),
|
|
5015
|
-
e("div",
|
|
5025
|
+
e("div", $d, [
|
|
5016
5026
|
p(c(gt), {
|
|
5017
5027
|
class: f([{
|
|
5018
5028
|
"mt-1": r.requiredText || r.label,
|
|
@@ -5031,9 +5041,9 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
5031
5041
|
}, "relative w-full rounded-md border py-2 pl-2 pr-10 shadow-sm focus:border-lime-400 focus:outline-none focus:ring-1 focus:ring-lime-400 sm:text-sm"])
|
|
5032
5042
|
}, {
|
|
5033
5043
|
default: b(() => [
|
|
5034
|
-
e("span",
|
|
5035
|
-
c(s).length === 0 ? (l(), n("span",
|
|
5036
|
-
(l(!0), n(x, null,
|
|
5044
|
+
e("span", _d, [
|
|
5045
|
+
c(s).length === 0 ? (l(), n("span", Cd, "...")) : v("", !0),
|
|
5046
|
+
(l(!0), n(x, null, S(c(s), (h) => (l(), n("span", {
|
|
5037
5047
|
key: h.id,
|
|
5038
5048
|
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"
|
|
5039
5049
|
}, [
|
|
@@ -5052,7 +5062,7 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
5052
5062
|
"stroke-width": "2",
|
|
5053
5063
|
d: "M6 18L18 6M6 6l12 12"
|
|
5054
5064
|
}, null, -1)
|
|
5055
|
-
]), 8,
|
|
5065
|
+
]), 8, Sd))
|
|
5056
5066
|
]))), 128))
|
|
5057
5067
|
]),
|
|
5058
5068
|
d[2] || (d[2] = e("span", { class: "absolute h-full right-0 mr-2 self-center top-0 flex items-center" }, [
|
|
@@ -5074,22 +5084,22 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
5074
5084
|
_: 1,
|
|
5075
5085
|
__: [2]
|
|
5076
5086
|
}, 8, ["class"]),
|
|
5077
|
-
e("div",
|
|
5087
|
+
e("div", Bd, [
|
|
5078
5088
|
p(c(mt), { 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" }, {
|
|
5079
5089
|
default: b(() => [
|
|
5080
|
-
(l(!0), n(x, null,
|
|
5090
|
+
(l(!0), n(x, null, S(r.items, (h) => (l(), k(c(pt), {
|
|
5081
5091
|
key: h.id,
|
|
5082
5092
|
value: h,
|
|
5083
5093
|
as: "template"
|
|
5084
5094
|
}, {
|
|
5085
|
-
default: b(({ active: y, selected:
|
|
5095
|
+
default: b(({ active: y, selected: D }) => [
|
|
5086
5096
|
e("li", {
|
|
5087
5097
|
class: f(["focus:outline-hidden relative cursor-default select-none py-2 pl-3 pr-9", y ? "bg-lime-400 text-black" : "text-black"])
|
|
5088
5098
|
}, [
|
|
5089
5099
|
e("span", {
|
|
5090
|
-
class: f(["block truncate", { "font-semibold":
|
|
5100
|
+
class: f(["block truncate", { "font-semibold": D, "font-normal": !D }])
|
|
5091
5101
|
}, g(h.name), 3),
|
|
5092
|
-
|
|
5102
|
+
D ? (l(), n("span", {
|
|
5093
5103
|
key: 0,
|
|
5094
5104
|
class: f(["absolute inset-y-0 right-0 flex items-center pr-4", { "text-black": y, "text-lime-400": !y }])
|
|
5095
5105
|
}, d[3] || (d[3] = [
|
|
@@ -5113,7 +5123,7 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
5113
5123
|
_: 1
|
|
5114
5124
|
})
|
|
5115
5125
|
]),
|
|
5116
|
-
|
|
5126
|
+
_(e("p", {
|
|
5117
5127
|
class: f([{
|
|
5118
5128
|
"text-gray-400": r.color === "gray",
|
|
5119
5129
|
"text-red-600": r.color === "red",
|
|
@@ -5121,14 +5131,14 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
5121
5131
|
"text-green-600": r.color === "green"
|
|
5122
5132
|
}, "mt-2 text-xs flex flex-row items-center"])
|
|
5123
5133
|
}, g(r.error), 3), [
|
|
5124
|
-
[
|
|
5134
|
+
[M, r.error]
|
|
5125
5135
|
])
|
|
5126
5136
|
])
|
|
5127
5137
|
]),
|
|
5128
5138
|
_: 1
|
|
5129
5139
|
}, 8, ["modelValue", "disabled"]));
|
|
5130
5140
|
}
|
|
5131
|
-
}),
|
|
5141
|
+
}), Dd = { class: "flex flex-col lg:flex-row items-center" }, jd = /* @__PURE__ */ B({
|
|
5132
5142
|
__name: "uiSmartFilter",
|
|
5133
5143
|
props: {
|
|
5134
5144
|
items: {},
|
|
@@ -5157,7 +5167,7 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
5157
5167
|
}
|
|
5158
5168
|
o.value = r.props;
|
|
5159
5169
|
};
|
|
5160
|
-
return (r, d) => (l(), n("div",
|
|
5170
|
+
return (r, d) => (l(), n("div", Dd, [
|
|
5161
5171
|
p(Ke, {
|
|
5162
5172
|
items: r.items,
|
|
5163
5173
|
loading: r.loading,
|
|
@@ -5177,7 +5187,7 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
5177
5187
|
loading: r.loading
|
|
5178
5188
|
}, {
|
|
5179
5189
|
default: b(() => [
|
|
5180
|
-
|
|
5190
|
+
A(g(r.buttonLiteral), 1)
|
|
5181
5191
|
]),
|
|
5182
5192
|
_: 1
|
|
5183
5193
|
}, 8, ["loading"])) : v("", !0)
|
|
@@ -5191,118 +5201,118 @@ const rr = /* @__PURE__ */ ee(lr, [["render", or]]), ar = /* @__PURE__ */ M({
|
|
|
5191
5201
|
uiCard: Xl,
|
|
5192
5202
|
uiChart: tr,
|
|
5193
5203
|
uiCheckbox: Ue,
|
|
5194
|
-
uiCircleChart:
|
|
5195
|
-
uiDateRange:
|
|
5196
|
-
uiDeviceStatus:
|
|
5197
|
-
uiDragAndDrop:
|
|
5204
|
+
uiCircleChart: Pi,
|
|
5205
|
+
uiDateRange: Fi,
|
|
5206
|
+
uiDeviceStatus: rd,
|
|
5207
|
+
uiDragAndDrop: Bi,
|
|
5198
5208
|
uiDropdown: ce,
|
|
5199
|
-
uiDynamicStats:
|
|
5209
|
+
uiDynamicStats: wd,
|
|
5200
5210
|
uiFilter: Ke,
|
|
5201
5211
|
uiFooter: rr,
|
|
5202
|
-
uiFunnelChartV2:
|
|
5203
|
-
uiGallery:
|
|
5212
|
+
uiFunnelChartV2: En,
|
|
5213
|
+
uiGallery: vi,
|
|
5204
5214
|
uiIcon: T,
|
|
5205
5215
|
uiInput: H,
|
|
5206
5216
|
uiInputFile: il,
|
|
5207
5217
|
uiLoadingScreen: ar,
|
|
5208
5218
|
uiModal: Qe,
|
|
5209
|
-
uiNoResults:
|
|
5219
|
+
uiNoResults: Qn,
|
|
5210
5220
|
uiNotification: ys,
|
|
5211
|
-
uiPagination:
|
|
5221
|
+
uiPagination: kr,
|
|
5212
5222
|
uiPriceCalendar: Vo,
|
|
5213
|
-
uiRangeSlider:
|
|
5214
|
-
uiRightSidebar:
|
|
5215
|
-
uiSectionTitle:
|
|
5223
|
+
uiRangeSlider: Ei,
|
|
5224
|
+
uiRightSidebar: di,
|
|
5225
|
+
uiSectionTitle: Wi,
|
|
5216
5226
|
uiSelect: ml,
|
|
5217
5227
|
uiSelectMultiple: tt,
|
|
5218
5228
|
uiSelect_v2: Be,
|
|
5219
|
-
uiSidebar:
|
|
5229
|
+
uiSidebar: Ar,
|
|
5220
5230
|
uiSidebarV2: pe,
|
|
5221
|
-
uiSmartFilter:
|
|
5231
|
+
uiSmartFilter: jd,
|
|
5222
5232
|
uiStats: et,
|
|
5223
|
-
uiStripedCard:
|
|
5224
|
-
uiTable:
|
|
5225
|
-
uiTabs:
|
|
5233
|
+
uiStripedCard: ya,
|
|
5234
|
+
uiTable: qa,
|
|
5235
|
+
uiTabs: Za,
|
|
5226
5236
|
uiTag: R,
|
|
5227
5237
|
uiTaskList: Ms,
|
|
5228
5238
|
uiTextArea: Cl,
|
|
5229
|
-
uiTimeline:
|
|
5239
|
+
uiTimeline: hn,
|
|
5230
5240
|
uiToggle: Dl,
|
|
5231
|
-
uiTopbar:
|
|
5232
|
-
uiWrapper:
|
|
5233
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5241
|
+
uiTopbar: Pn,
|
|
5242
|
+
uiWrapper: vd
|
|
5243
|
+
}, Symbol.toStringTag, { value: "Module" })), Td = [
|
|
5234
5244
|
"primary",
|
|
5235
5245
|
"secondary",
|
|
5236
5246
|
"light",
|
|
5237
5247
|
"green",
|
|
5238
5248
|
"yellow",
|
|
5239
5249
|
"red"
|
|
5240
|
-
],
|
|
5250
|
+
], Rd = [
|
|
5241
5251
|
"text",
|
|
5242
5252
|
"email",
|
|
5243
5253
|
"password",
|
|
5244
5254
|
"number",
|
|
5245
5255
|
"date",
|
|
5246
5256
|
"datetime-local"
|
|
5247
|
-
],
|
|
5248
|
-
function
|
|
5257
|
+
], zd = ["black", "gray", "white"], Ud = [...Td, ...zd], Ld = ["small", "medium", "big"], Ad = ["bigger", "huge", "massive"], Hd = [...Ld, ...Ad], Ed = ["default", "success", "warning", "danger"];
|
|
5258
|
+
function Od(m) {
|
|
5249
5259
|
for (const u in Ae)
|
|
5250
5260
|
m.component(u, Ae[u]);
|
|
5251
5261
|
}
|
|
5252
|
-
const
|
|
5262
|
+
const Zd = { install: Od };
|
|
5253
5263
|
export {
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5264
|
+
Ud as AllColors,
|
|
5265
|
+
Hd as AllSizes,
|
|
5266
|
+
Ad as BiggerSizes,
|
|
5267
|
+
Td as Colors,
|
|
5268
|
+
zd as MonoColors,
|
|
5269
|
+
Ld as Sizes,
|
|
5270
|
+
Ed as Types,
|
|
5271
|
+
Rd as UiInputTypes,
|
|
5272
|
+
Zd as default,
|
|
5263
5273
|
Pl as uiAlert,
|
|
5264
5274
|
El as uiBreadcrumbs,
|
|
5265
5275
|
Z as uiButton,
|
|
5266
5276
|
Xl as uiCard,
|
|
5267
5277
|
tr as uiChart,
|
|
5268
5278
|
Ue as uiCheckbox,
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5279
|
+
Pi as uiCircleChart,
|
|
5280
|
+
Fi as uiDateRange,
|
|
5281
|
+
rd as uiDeviceStatus,
|
|
5282
|
+
Bi as uiDragAndDrop,
|
|
5273
5283
|
ce as uiDropdown,
|
|
5274
|
-
|
|
5284
|
+
wd as uiDynamicStats,
|
|
5275
5285
|
Ke as uiFilter,
|
|
5276
5286
|
rr as uiFooter,
|
|
5277
|
-
|
|
5278
|
-
|
|
5287
|
+
En as uiFunnelChartV2,
|
|
5288
|
+
vi as uiGallery,
|
|
5279
5289
|
T as uiIcon,
|
|
5280
5290
|
H as uiInput,
|
|
5281
5291
|
il as uiInputFile,
|
|
5282
5292
|
ar as uiLoadingScreen,
|
|
5283
5293
|
Qe as uiModal,
|
|
5284
|
-
|
|
5294
|
+
Qn as uiNoResults,
|
|
5285
5295
|
ys as uiNotification,
|
|
5286
|
-
|
|
5296
|
+
kr as uiPagination,
|
|
5287
5297
|
Vo as uiPriceCalendar,
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5298
|
+
Ei as uiRangeSlider,
|
|
5299
|
+
di as uiRightSidebar,
|
|
5300
|
+
Wi as uiSectionTitle,
|
|
5291
5301
|
ml as uiSelect,
|
|
5292
5302
|
tt as uiSelectMultiple,
|
|
5293
5303
|
Be as uiSelect_v2,
|
|
5294
|
-
|
|
5304
|
+
Ar as uiSidebar,
|
|
5295
5305
|
pe as uiSidebarV2,
|
|
5296
|
-
|
|
5306
|
+
jd as uiSmartFilter,
|
|
5297
5307
|
et as uiStats,
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
|
|
5308
|
+
ya as uiStripedCard,
|
|
5309
|
+
qa as uiTable,
|
|
5310
|
+
Za as uiTabs,
|
|
5301
5311
|
R as uiTag,
|
|
5302
5312
|
Ms as uiTaskList,
|
|
5303
5313
|
Cl as uiTextArea,
|
|
5304
|
-
|
|
5314
|
+
hn as uiTimeline,
|
|
5305
5315
|
Dl as uiToggle,
|
|
5306
|
-
|
|
5307
|
-
|
|
5316
|
+
Pn as uiTopbar,
|
|
5317
|
+
vd as uiWrapper
|
|
5308
5318
|
};
|