@hotelinking/ui 10.42.4 → 10.42.6
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.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as B, openBlock as s, createBlock as _, resolveDynamicComponent as
|
|
2
|
-
import { Menu as
|
|
1
|
+
import { defineComponent as B, openBlock as s, createBlock as _, resolveDynamicComponent as Ae, normalizeClass as y, createElementBlock as n, createCommentVNode as b, renderSlot as q, createElementVNode as e, ref as A, watch as R, computed as Y, unref as u, withCtx as v, toDisplayString as g, createVNode as p, createTextVNode as L, Transition as ce, Fragment as k, renderList as $, withDirectives as C, vModelDynamic as et, vShow as D, withModifiers as Se, vModelText as ee, createStaticVNode as K, resolveComponent as Be, vModelCheckbox as Ne, reactive as Q, isRef as Pe, TransitionGroup as tt, onMounted as st, mergeProps as ot } from "vue";
|
|
2
|
+
import { Menu as he, MenuButton as ye, MenuItems as ve, MenuItem as be, Combobox as Ye, ComboboxLabel as lt, ComboboxInput as Ie, ComboboxButton as Fe, ComboboxOptions as Ve, ComboboxOption as qe, SwitchGroup as rt, Switch as nt, SwitchLabel as at, TransitionRoot as we, Dialog as xe, TransitionChild as G, DialogPanel as ke, DialogTitle as Re, Disclosure as _e, DisclosureButton as Z, DisclosurePanel as $e } from "@headlessui/vue";
|
|
3
3
|
import T from "dayjs";
|
|
4
4
|
import Ce from "vue3-apexcharts";
|
|
5
5
|
import it from "vue3-draggable";
|
|
@@ -15,16 +15,16 @@ const j = /* @__PURE__ */ B({
|
|
|
15
15
|
setup(m) {
|
|
16
16
|
return (i, o) => i.loading ? (s(), n("div", {
|
|
17
17
|
key: 1,
|
|
18
|
-
class:
|
|
18
|
+
class: y([{
|
|
19
19
|
"h-4 w-4": i.size === "medium",
|
|
20
20
|
"h-6 w-6": i.size === "big",
|
|
21
21
|
"h-8 w-8": i.size === "bigger",
|
|
22
22
|
"h-12 w-12": i.size === "huge",
|
|
23
23
|
"h-20 w-20": i.size === "massive"
|
|
24
24
|
}, "animate-pulse rounded-full bg-gray-200 dark:bg-gray-300"])
|
|
25
|
-
}, null, 2)) : (s(), _(
|
|
25
|
+
}, null, 2)) : (s(), _(Ae(i.icon), {
|
|
26
26
|
key: 0,
|
|
27
|
-
class:
|
|
27
|
+
class: y({
|
|
28
28
|
"h-4 w-4": i.size === "medium",
|
|
29
29
|
"h-6 w-6": i.size === "big",
|
|
30
30
|
"h-8 w-8": i.size === "bigger",
|
|
@@ -67,7 +67,7 @@ const j = /* @__PURE__ */ B({
|
|
|
67
67
|
])) : (s(), n("button", {
|
|
68
68
|
key: 0,
|
|
69
69
|
disabled: i.disabled,
|
|
70
|
-
class:
|
|
70
|
+
class: y([{
|
|
71
71
|
"bg-indigo-600 hover:bg-indigo-800 text-white shadow-sm": i.color === "primary",
|
|
72
72
|
"bg-cyan-300 hover:bg-cyan-500 text-white shadow-sme": i.color === "secondary",
|
|
73
73
|
"bg-red-400 hover:bg-red-600 text-white shadow-sm": i.color === "red",
|
|
@@ -93,7 +93,7 @@ const j = /* @__PURE__ */ B({
|
|
|
93
93
|
}), gt = {
|
|
94
94
|
key: 0,
|
|
95
95
|
class: "relative flex items-start"
|
|
96
|
-
}, pt = { class: "flex items-center h-5" }, mt = ["checked", "value", "disabled"], ft = { class: "ml-3 text-sm" },
|
|
96
|
+
}, pt = { class: "flex items-center h-5" }, mt = ["checked", "value", "disabled"], ft = { class: "ml-3 text-sm" }, ht = { class: "text-gray-500" }, yt = {
|
|
97
97
|
key: 1,
|
|
98
98
|
class: "flex items-center animate-pulse"
|
|
99
99
|
}, He = /* @__PURE__ */ B({
|
|
@@ -107,12 +107,12 @@ const j = /* @__PURE__ */ B({
|
|
|
107
107
|
},
|
|
108
108
|
emits: ["checkboxChanged"],
|
|
109
109
|
setup(m, { emit: i }) {
|
|
110
|
-
const o = i, a = m, r =
|
|
110
|
+
const o = i, a = m, r = A(a.check), l = () => {
|
|
111
111
|
a.disabled || (r.value = !r.value, o("checkboxChanged", { checked: r.value, value: a.value }));
|
|
112
112
|
};
|
|
113
113
|
return R(() => a.check, (t) => {
|
|
114
114
|
t && (r.value = t);
|
|
115
|
-
}), (t, c) => t.loading ? (s(), n("div",
|
|
115
|
+
}), (t, c) => t.loading ? (s(), n("div", yt, c[1] || (c[1] = [
|
|
116
116
|
e("div", { class: "w-5 h-5 rounded bg-gray-200" }, null, -1),
|
|
117
117
|
e("div", { class: "ml-3 h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28" }, null, -1)
|
|
118
118
|
]))) : (s(), n("div", gt, [
|
|
@@ -127,7 +127,7 @@ const j = /* @__PURE__ */ B({
|
|
|
127
127
|
}, null, 40, mt)
|
|
128
128
|
]),
|
|
129
129
|
e("div", ft, [
|
|
130
|
-
e("span",
|
|
130
|
+
e("span", ht, [
|
|
131
131
|
q(t.$slots, "default")
|
|
132
132
|
])
|
|
133
133
|
])
|
|
@@ -579,10 +579,10 @@ function W(m, i) {
|
|
|
579
579
|
const zt = { class: "flex justify-between" }, Lt = {
|
|
580
580
|
key: 0,
|
|
581
581
|
class: "block text-sm font-medium text-gray-700 mb-1"
|
|
582
|
-
},
|
|
582
|
+
}, Ot = {
|
|
583
583
|
key: 1,
|
|
584
584
|
class: "text-[10px] text-gray-500 uppercase justify-self-end mt-1"
|
|
585
|
-
},
|
|
585
|
+
}, At = { class: "py-1" }, Nt = ["onClick"], Pt = {
|
|
586
586
|
key: 1,
|
|
587
587
|
class: "animate-pulse px-4 py-2 bg-gray-200 rounded-md inline-flex items-center relative text-left"
|
|
588
588
|
}, me = /* @__PURE__ */ B({
|
|
@@ -597,32 +597,32 @@ const zt = { class: "flex justify-between" }, Lt = {
|
|
|
597
597
|
},
|
|
598
598
|
emits: ["optionSelected"],
|
|
599
599
|
setup(m, { emit: i }) {
|
|
600
|
-
const o = i, a = m, r =
|
|
600
|
+
const o = i, a = m, r = Y(() => {
|
|
601
601
|
let t = a.items.find((c) => c.active === !0);
|
|
602
602
|
return t ? t.name : a.label;
|
|
603
603
|
}), l = (t) => {
|
|
604
604
|
a.disabled || o("optionSelected", t);
|
|
605
605
|
};
|
|
606
|
-
return (t, c) => t.loading ? (s(), n("div",
|
|
606
|
+
return (t, c) => t.loading ? (s(), n("div", Pt, [
|
|
607
607
|
c[0] || (c[0] = e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28" }, null, -1)),
|
|
608
608
|
p(u(ue), {
|
|
609
609
|
"aria-hidden": "true",
|
|
610
610
|
class: "-mr-1 ml-2 h-5 w-5 text-gray-200 dark:text-gray-300"
|
|
611
611
|
})
|
|
612
|
-
])) : (s(), _(u(
|
|
612
|
+
])) : (s(), _(u(he), {
|
|
613
613
|
key: 0,
|
|
614
614
|
as: "div",
|
|
615
|
-
class:
|
|
615
|
+
class: y(["relative inline-block text-left", { "opacity-25": t.disabled }])
|
|
616
616
|
}, {
|
|
617
617
|
default: v(() => [
|
|
618
618
|
e("div", null, [
|
|
619
619
|
e("div", zt, [
|
|
620
620
|
t.label ? (s(), n("label", Lt, g(t.label), 1)) : b("", !0),
|
|
621
|
-
t.requiredText ? (s(), n("span",
|
|
621
|
+
t.requiredText ? (s(), n("span", Ot, g(t.requiredText), 1)) : b("", !0)
|
|
622
622
|
]),
|
|
623
|
-
p(u(
|
|
623
|
+
p(u(ye), { class: "inline-flex justify-between w-full rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-indigo-500" }, {
|
|
624
624
|
default: v(() => [
|
|
625
|
-
|
|
625
|
+
L(g(r.value) + " ", 1),
|
|
626
626
|
p(u(ue), {
|
|
627
627
|
"aria-hidden": "true",
|
|
628
628
|
class: "-mr-1 ml-2 h-5 w-5"
|
|
@@ -642,19 +642,19 @@ const zt = { class: "flex justify-between" }, Lt = {
|
|
|
642
642
|
default: v(() => [
|
|
643
643
|
t.disabled ? b("", !0) : (s(), _(u(ve), {
|
|
644
644
|
key: 0,
|
|
645
|
-
class:
|
|
645
|
+
class: y([{ "right-0": t.position === "right", "left-0": t.position === "left" }, "origin-top-right absolute mt-2 w-56 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none z-10"])
|
|
646
646
|
}, {
|
|
647
647
|
default: v(() => [
|
|
648
|
-
e("div",
|
|
648
|
+
e("div", At, [
|
|
649
649
|
(s(!0), n(k, null, $(t.items, (d, f) => (s(), _(u(be), { key: f }, {
|
|
650
650
|
default: v(() => [
|
|
651
651
|
e("a", {
|
|
652
|
-
onClick: (
|
|
653
|
-
class:
|
|
652
|
+
onClick: (h) => l(d),
|
|
653
|
+
class: y([
|
|
654
654
|
d.active ? "bg-gray-100 text-gray-900" : "text-gray-700",
|
|
655
655
|
"block px-4 py-2 text-sm cursor-pointer"
|
|
656
656
|
])
|
|
657
|
-
}, g(d.name), 11,
|
|
657
|
+
}, g(d.name), 11, Nt)
|
|
658
658
|
]),
|
|
659
659
|
_: 2
|
|
660
660
|
}, 1024))), 128))
|
|
@@ -669,7 +669,7 @@ const zt = { class: "flex justify-between" }, Lt = {
|
|
|
669
669
|
_: 1
|
|
670
670
|
}, 8, ["class"]));
|
|
671
671
|
}
|
|
672
|
-
}),
|
|
672
|
+
}), Yt = { key: 0 }, It = { class: "flex justify-between" }, Ft = {
|
|
673
673
|
key: 0,
|
|
674
674
|
class: "block text-sm font-medium text-gray-700"
|
|
675
675
|
}, Vt = {
|
|
@@ -702,7 +702,7 @@ const zt = { class: "flex justify-between" }, Lt = {
|
|
|
702
702
|
},
|
|
703
703
|
emits: ["inputChanged", "rightAddOnClicked", "addOnClicked"],
|
|
704
704
|
setup(m, { emit: i }) {
|
|
705
|
-
const o = i, a = m, r =
|
|
705
|
+
const o = i, a = m, r = A(a.value);
|
|
706
706
|
R(() => a.value, (t) => {
|
|
707
707
|
r.value = t, r.value && o("inputChanged", { name: a.name, value: r.value });
|
|
708
708
|
});
|
|
@@ -714,13 +714,13 @@ const zt = { class: "flex justify-between" }, Lt = {
|
|
|
714
714
|
c[3] || (c[3] = e("div", { class: "animate-pulse px-4 py-3.5 bg-gray-200 rounded-md inline-flex items-center relative text-left w-full" }, [
|
|
715
715
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28" })
|
|
716
716
|
], -1))
|
|
717
|
-
])) : (s(), n("div",
|
|
717
|
+
])) : (s(), n("div", Yt, [
|
|
718
718
|
e("div", It, [
|
|
719
719
|
t.label ? (s(), n("label", Ft, g(t.label), 1)) : b("", !0),
|
|
720
720
|
t.requiredText ? (s(), n("span", Vt, g(t.requiredText), 1)) : b("", !0)
|
|
721
721
|
]),
|
|
722
722
|
e("div", {
|
|
723
|
-
class:
|
|
723
|
+
class: y([{ "mt-1": t.label }, "relative flex"])
|
|
724
724
|
}, [
|
|
725
725
|
t.addOn ? (s(), n("span", {
|
|
726
726
|
key: 0,
|
|
@@ -730,7 +730,7 @@ const zt = { class: "flex justify-between" }, Lt = {
|
|
|
730
730
|
C(e("input", {
|
|
731
731
|
"onUpdate:modelValue": c[1] || (c[1] = (d) => r.value = d),
|
|
732
732
|
max: t.max,
|
|
733
|
-
class:
|
|
733
|
+
class: y([{
|
|
734
734
|
"border-gray-300": t.color === "gray",
|
|
735
735
|
"border-red-400": t.color === "red",
|
|
736
736
|
"border-yellow-400": t.color === "yellow",
|
|
@@ -790,7 +790,7 @@ const zt = { class: "flex justify-between" }, Lt = {
|
|
|
790
790
|
])
|
|
791
791
|
], 2),
|
|
792
792
|
C(e("p", {
|
|
793
|
-
class:
|
|
793
|
+
class: y([{
|
|
794
794
|
"text-gray-400": t.color === "gray",
|
|
795
795
|
"text-red-400": t.color === "red",
|
|
796
796
|
"text-yellow-400": t.color === "yellow",
|
|
@@ -827,7 +827,7 @@ const zt = { class: "flex justify-between" }, Lt = {
|
|
|
827
827
|
},
|
|
828
828
|
emits: ["filesUploaded"],
|
|
829
829
|
setup(m, { emit: i }) {
|
|
830
|
-
let o =
|
|
830
|
+
let o = A("");
|
|
831
831
|
const a = i, r = m, l = (d) => {
|
|
832
832
|
c(d.dataTransfer.files), a("filesUploaded", { id: r.id, files: d.dataTransfer.files });
|
|
833
833
|
}, t = (d) => {
|
|
@@ -835,8 +835,8 @@ const zt = { class: "flex justify-between" }, Lt = {
|
|
|
835
835
|
}, c = (d) => {
|
|
836
836
|
o.value = "";
|
|
837
837
|
let f = 1;
|
|
838
|
-
Object.values(d).forEach((
|
|
839
|
-
f++, o.value +=
|
|
838
|
+
Object.values(d).forEach((h) => {
|
|
839
|
+
f++, o.value += h.name, f >= 1 && f < d.length && (o.value += ", ");
|
|
840
840
|
});
|
|
841
841
|
};
|
|
842
842
|
return (d, f) => d.loading ? (s(), n("div", os, f[1] || (f[1] = [
|
|
@@ -851,7 +851,7 @@ const zt = { class: "flex justify-between" }, Lt = {
|
|
|
851
851
|
d.requiredText ? (s(), n("span", Wt, g(d.requiredText), 1)) : b("", !0)
|
|
852
852
|
]),
|
|
853
853
|
e("div", {
|
|
854
|
-
class:
|
|
854
|
+
class: y([
|
|
855
855
|
[
|
|
856
856
|
{ "mt-1": d.label },
|
|
857
857
|
{ "border-gray-300 hover:border-gray-400": !d.error },
|
|
@@ -903,7 +903,7 @@ const zt = { class: "flex justify-between" }, Lt = {
|
|
|
903
903
|
class: "mr-2",
|
|
904
904
|
loading: d.loading
|
|
905
905
|
}, null, 8, ["icon", "loading"]),
|
|
906
|
-
|
|
906
|
+
L(" " + g(d.error), 1)
|
|
907
907
|
], 512), [
|
|
908
908
|
[D, d.error]
|
|
909
909
|
])
|
|
@@ -929,19 +929,19 @@ const zt = { class: "flex justify-between" }, Lt = {
|
|
|
929
929
|
},
|
|
930
930
|
emits: ["selectChanged"],
|
|
931
931
|
setup(m, { emit: i }) {
|
|
932
|
-
const o =
|
|
932
|
+
const o = A(""), a = i, r = m, l = Y(() => o.value === "" ? r.items : r.items.filter((d) => d.name.toLowerCase().includes(o.value.toLowerCase()))), t = (d) => (d == null ? void 0 : d.name) ?? "", c = Y(() => r.select);
|
|
933
933
|
return (d, f) => d.loading ? (s(), n("div", is, [
|
|
934
934
|
f[4] || (f[4] = e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1)),
|
|
935
935
|
p(u(fe), {
|
|
936
936
|
"aria-hidden": "true",
|
|
937
937
|
class: "-mr-1 ml-2 h-5 w-5 text-gray-300 dark:text-gray-400"
|
|
938
938
|
})
|
|
939
|
-
])) : (s(), _(u(
|
|
939
|
+
])) : (s(), _(u(Ye), {
|
|
940
940
|
key: 0,
|
|
941
941
|
modelValue: c.value,
|
|
942
942
|
"onUpdate:modelValue": [
|
|
943
|
-
f[2] || (f[2] = (
|
|
944
|
-
f[3] || (f[3] = (
|
|
943
|
+
f[2] || (f[2] = (h) => c.value = h),
|
|
944
|
+
f[3] || (f[3] = (h) => a("selectChanged", h))
|
|
945
945
|
],
|
|
946
946
|
disabled: d.disabled,
|
|
947
947
|
as: "div"
|
|
@@ -950,7 +950,7 @@ const zt = { class: "flex justify-between" }, Lt = {
|
|
|
950
950
|
e("div", rs, [
|
|
951
951
|
p(u(lt), { class: "block text-sm font-medium" }, {
|
|
952
952
|
default: v(() => [
|
|
953
|
-
|
|
953
|
+
L(g(d.label), 1)
|
|
954
954
|
]),
|
|
955
955
|
_: 1
|
|
956
956
|
}),
|
|
@@ -958,10 +958,10 @@ const zt = { class: "flex justify-between" }, Lt = {
|
|
|
958
958
|
]),
|
|
959
959
|
e("div", as, [
|
|
960
960
|
p(u(Ie), {
|
|
961
|
-
onChange: f[0] || (f[0] = (
|
|
962
|
-
onBlur: f[1] || (f[1] = (
|
|
961
|
+
onChange: f[0] || (f[0] = (h) => o.value = h.target.value),
|
|
962
|
+
onBlur: f[1] || (f[1] = (h) => o.value = ""),
|
|
963
963
|
displayValue: t,
|
|
964
|
-
class:
|
|
964
|
+
class: y([{
|
|
965
965
|
"border-gray-300": d.color === "gray",
|
|
966
966
|
"border-red-400": d.color === "red",
|
|
967
967
|
"border-yellow-400": d.color === "yellow",
|
|
@@ -989,24 +989,24 @@ const zt = { class: "flex justify-between" }, Lt = {
|
|
|
989
989
|
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"
|
|
990
990
|
}, {
|
|
991
991
|
default: v(() => [
|
|
992
|
-
(s(!0), n(k, null, $(l.value, (
|
|
993
|
-
key:
|
|
994
|
-
value:
|
|
992
|
+
(s(!0), n(k, null, $(l.value, (h) => (s(), _(u(qe), {
|
|
993
|
+
key: h.id,
|
|
994
|
+
value: h,
|
|
995
995
|
as: "template"
|
|
996
996
|
}, {
|
|
997
|
-
default: v(({ active: w, selected:
|
|
997
|
+
default: v(({ active: w, selected: z }) => [
|
|
998
998
|
e("li", {
|
|
999
|
-
class:
|
|
999
|
+
class: y([
|
|
1000
1000
|
"relative cursor-default select-none py-2 pl-3 pr-9",
|
|
1001
1001
|
w ? "bg-indigo-600 text-white" : "text-gray-900"
|
|
1002
1002
|
])
|
|
1003
1003
|
}, [
|
|
1004
1004
|
e("span", {
|
|
1005
|
-
class:
|
|
1006
|
-
}, g(
|
|
1007
|
-
|
|
1005
|
+
class: y(["block truncate", z && "font-semibold"])
|
|
1006
|
+
}, g(h.name), 3),
|
|
1007
|
+
z ? (s(), n("span", {
|
|
1008
1008
|
key: 0,
|
|
1009
|
-
class:
|
|
1009
|
+
class: y([
|
|
1010
1010
|
"absolute inset-y-0 right-0 flex items-center pr-4",
|
|
1011
1011
|
w ? "text-white" : "text-indigo-600"
|
|
1012
1012
|
])
|
|
@@ -1026,7 +1026,7 @@ const zt = { class: "flex justify-between" }, Lt = {
|
|
|
1026
1026
|
})) : b("", !0)
|
|
1027
1027
|
]),
|
|
1028
1028
|
C(e("p", {
|
|
1029
|
-
class:
|
|
1029
|
+
class: y([{
|
|
1030
1030
|
"text-gray-400": d.color === "gray",
|
|
1031
1031
|
"text-red-400": d.color === "red",
|
|
1032
1032
|
"text-yellow-400": d.color === "yellow",
|
|
@@ -1062,7 +1062,7 @@ const zt = { class: "flex justify-between" }, Lt = {
|
|
|
1062
1062
|
]))) : (s(), n("span", {
|
|
1063
1063
|
key: 0,
|
|
1064
1064
|
onClick: r,
|
|
1065
|
-
class:
|
|
1065
|
+
class: y([{
|
|
1066
1066
|
"bg-indigo-100 text-indigo-800 border border-indigo-200": l.color === "primary",
|
|
1067
1067
|
"hover:bg-indigo-200 cursor-pointer": l.event !== void 0 && l.color === "primary",
|
|
1068
1068
|
"bg-red-100 text-red-800 border border-red-200": l.color === "red",
|
|
@@ -1087,10 +1087,10 @@ const zt = { class: "flex justify-between" }, Lt = {
|
|
|
1087
1087
|
}, ms = {
|
|
1088
1088
|
key: 1,
|
|
1089
1089
|
class: "text-[10px] text-gray-500 uppercase justify-self-end"
|
|
1090
|
-
}, fs = ["disabled", "placeholder"],
|
|
1090
|
+
}, fs = ["disabled", "placeholder"], hs = {
|
|
1091
1091
|
key: 1,
|
|
1092
1092
|
class: "animate-pulse"
|
|
1093
|
-
},
|
|
1093
|
+
}, ys = /* @__PURE__ */ B({
|
|
1094
1094
|
__name: "uiTextArea",
|
|
1095
1095
|
props: {
|
|
1096
1096
|
name: {},
|
|
@@ -1107,10 +1107,10 @@ const zt = { class: "flex justify-between" }, Lt = {
|
|
|
1107
1107
|
setup(m, { emit: i }) {
|
|
1108
1108
|
const o = i, a = m, r = (t) => {
|
|
1109
1109
|
o("inputChanged", t.target.value);
|
|
1110
|
-
}, l =
|
|
1110
|
+
}, l = A(a.value);
|
|
1111
1111
|
return R(() => a.value, (t) => {
|
|
1112
1112
|
l.value = t, o("inputChanged", { name: a.name, value: l.value });
|
|
1113
|
-
}), (t, c) => t.loading ? (s(), n("div",
|
|
1113
|
+
}), (t, c) => t.loading ? (s(), n("div", hs, c[1] || (c[1] = [
|
|
1114
1114
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/3 md:w-1/4 mb-1.5" }, null, -1),
|
|
1115
1115
|
e("div", { class: "h-24 bg-gray-200 rounded-lg flex inline-flex items-center relative inline-block text-left w-full" }, null, -1)
|
|
1116
1116
|
]))) : (s(), n("div", cs, [
|
|
@@ -1119,14 +1119,14 @@ const zt = { class: "flex justify-between" }, Lt = {
|
|
|
1119
1119
|
t.requiredText ? (s(), n("span", ms, g(t.requiredText), 1)) : b("", !0)
|
|
1120
1120
|
]),
|
|
1121
1121
|
e("div", {
|
|
1122
|
-
class:
|
|
1122
|
+
class: y({ "mt-1": t.label })
|
|
1123
1123
|
}, [
|
|
1124
1124
|
C(e("textarea", {
|
|
1125
1125
|
disabled: t.disabled,
|
|
1126
1126
|
rows: "4",
|
|
1127
1127
|
"onUpdate:modelValue": c[0] || (c[0] = (d) => l.value = d),
|
|
1128
1128
|
placeholder: t.placeholder,
|
|
1129
|
-
class:
|
|
1129
|
+
class: y(["shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm rounded-md", {
|
|
1130
1130
|
"border-gray-300": t.color === "gray",
|
|
1131
1131
|
"border-red-300": t.color === "red",
|
|
1132
1132
|
"border-yellow-400": t.color === "yellow",
|
|
@@ -1143,7 +1143,7 @@ const zt = { class: "flex justify-between" }, Lt = {
|
|
|
1143
1143
|
])
|
|
1144
1144
|
], 2),
|
|
1145
1145
|
C(e("p", {
|
|
1146
|
-
class:
|
|
1146
|
+
class: y([{
|
|
1147
1147
|
"text-gray-300": t.color === "gray",
|
|
1148
1148
|
"text-red-300": t.color === "red",
|
|
1149
1149
|
"text-yellow-400": t.color === "yellow",
|
|
@@ -1156,7 +1156,7 @@ const zt = { class: "flex justify-between" }, Lt = {
|
|
|
1156
1156
|
class: "mr-2",
|
|
1157
1157
|
loading: !1
|
|
1158
1158
|
}, null, 8, ["icon"]),
|
|
1159
|
-
|
|
1159
|
+
L(" " + g(t.error), 1)
|
|
1160
1160
|
], 2), [
|
|
1161
1161
|
[D, t.error]
|
|
1162
1162
|
])
|
|
@@ -1178,7 +1178,7 @@ const zt = { class: "flex justify-between" }, Lt = {
|
|
|
1178
1178
|
},
|
|
1179
1179
|
emits: ["toggleChanged", "actionClicked"],
|
|
1180
1180
|
setup(m, { emit: i }) {
|
|
1181
|
-
const o = m, a =
|
|
1181
|
+
const o = m, a = A(o.checked);
|
|
1182
1182
|
return R(() => o.checked, (r) => a.value = r), (r, l) => r.loading ? (s(), n("div", ws, l[3] || (l[3] = [
|
|
1183
1183
|
e("div", { class: "relative bg-gray-200 rounded-full w-12 h-6 p-1 flex items-center" }, [
|
|
1184
1184
|
e("div", { class: "rounded-full bg-gray-300 dark:bg-gray-400 h-4 w-4" })
|
|
@@ -1195,7 +1195,7 @@ const zt = { class: "flex justify-between" }, Lt = {
|
|
|
1195
1195
|
onClick: l[0] || (l[0] = (t) => r.$emit("toggleChanged", { item: r.item, active: !a.value })),
|
|
1196
1196
|
modelValue: a.value,
|
|
1197
1197
|
"onUpdate:modelValue": l[1] || (l[1] = (t) => a.value = t),
|
|
1198
|
-
class:
|
|
1198
|
+
class: y([
|
|
1199
1199
|
a.value ? "bg-indigo-600" : "bg-gray-200",
|
|
1200
1200
|
"relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"
|
|
1201
1201
|
])
|
|
@@ -1203,7 +1203,7 @@ const zt = { class: "flex justify-between" }, Lt = {
|
|
|
1203
1203
|
default: v(() => [
|
|
1204
1204
|
e("span", {
|
|
1205
1205
|
"aria-hidden": "true",
|
|
1206
|
-
class:
|
|
1206
|
+
class: y([
|
|
1207
1207
|
a.value ? "translate-x-5" : "translate-x-0",
|
|
1208
1208
|
r.disabled ? "bg-gray-300" : "",
|
|
1209
1209
|
"pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out"
|
|
@@ -1254,7 +1254,7 @@ const zt = { class: "flex justify-between" }, Lt = {
|
|
|
1254
1254
|
K('<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)
|
|
1255
1255
|
]))) : (s(), n("div", ks, [
|
|
1256
1256
|
e("div", {
|
|
1257
|
-
class:
|
|
1257
|
+
class: y([{
|
|
1258
1258
|
"bg-indigo-50 border-indigo-400": r.type === "info",
|
|
1259
1259
|
"bg-red-50 border-red-400": r.type === "danger",
|
|
1260
1260
|
"bg-yellow-50 border-yellow-400": r.type === "warning",
|
|
@@ -1286,14 +1286,14 @@ const zt = { class: "flex justify-between" }, Lt = {
|
|
|
1286
1286
|
]),
|
|
1287
1287
|
e("div", Cs, [
|
|
1288
1288
|
e("h3", {
|
|
1289
|
-
class:
|
|
1289
|
+
class: y([{
|
|
1290
1290
|
"text-red-800": r.type === "danger",
|
|
1291
1291
|
"text-yellow-800": r.type === "warning",
|
|
1292
1292
|
"text-green-800": r.type === "success"
|
|
1293
1293
|
}, "text-sm font-medium"])
|
|
1294
1294
|
}, g(r.title), 3),
|
|
1295
1295
|
e("div", {
|
|
1296
|
-
class:
|
|
1296
|
+
class: y([{
|
|
1297
1297
|
"text-red-700": r.type === "danger",
|
|
1298
1298
|
"text-yellow-700": r.type === "warning",
|
|
1299
1299
|
"text-green-700": r.type === "success"
|
|
@@ -1307,7 +1307,7 @@ const zt = { class: "flex justify-between" }, Lt = {
|
|
|
1307
1307
|
onClick: (d) => a(t),
|
|
1308
1308
|
type: "button",
|
|
1309
1309
|
key: c,
|
|
1310
|
-
class:
|
|
1310
|
+
class: y([
|
|
1311
1311
|
{
|
|
1312
1312
|
"bg-green-50 text-green-800 hover:bg-green-100 focus:ring-green-600 focus:ring-offset-green-50": r.type === "success",
|
|
1313
1313
|
"bg-indigo-50 text-indigo-800 hover:bg-indigo-100 focus:ring-indigo-600 focus:ring-offset-indigo-50": r.type === "info",
|
|
@@ -1331,13 +1331,13 @@ const zt = { class: "flex justify-between" }, Lt = {
|
|
|
1331
1331
|
}, zs = {
|
|
1332
1332
|
role: "list",
|
|
1333
1333
|
class: "flex items-center space-x-4 text-xs"
|
|
1334
|
-
}, Ls = { key: 0 },
|
|
1334
|
+
}, Ls = { key: 0 }, Os = ["onClick"], As = {
|
|
1335
1335
|
key: 1,
|
|
1336
1336
|
class: "flex items-center"
|
|
1337
|
-
},
|
|
1337
|
+
}, Ns = ["onClick"], Ps = {
|
|
1338
1338
|
key: 1,
|
|
1339
1339
|
class: "flex flex-row items-center animate-pulse"
|
|
1340
|
-
},
|
|
1340
|
+
}, Ys = /* @__PURE__ */ B({
|
|
1341
1341
|
__name: "uiBreadcrumbs",
|
|
1342
1342
|
props: {
|
|
1343
1343
|
pages: {},
|
|
@@ -1345,7 +1345,7 @@ const zt = { class: "flex justify-between" }, Lt = {
|
|
|
1345
1345
|
},
|
|
1346
1346
|
emits: ["breadCrumbClicked"],
|
|
1347
1347
|
setup(m, { emit: i }) {
|
|
1348
|
-
return (o, a) => o.loading ? (s(), n("div",
|
|
1348
|
+
return (o, a) => o.loading ? (s(), n("div", Ps, a[0] || (a[0] = [
|
|
1349
1349
|
e("div", { class: "animate-pulse rounded-full bg-gray-200 dark:bg-gray-300 h-4 w-4 mr-4" }, null, -1),
|
|
1350
1350
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5 mr-4" }, null, -1),
|
|
1351
1351
|
e("div", { class: "animate-pulse rounded-full bg-gray-200 dark:bg-gray-300 h-4 w-4 mr-4" }, null, -1),
|
|
@@ -1363,17 +1363,17 @@ const zt = { class: "flex justify-between" }, Lt = {
|
|
|
1363
1363
|
"aria-hidden": "true"
|
|
1364
1364
|
}),
|
|
1365
1365
|
e("span", null, g(r.name), 1)
|
|
1366
|
-
], 8,
|
|
1367
|
-
])) : (s(), n("div",
|
|
1366
|
+
], 8, Os)
|
|
1367
|
+
])) : (s(), n("div", As, [
|
|
1368
1368
|
p(u(te), {
|
|
1369
1369
|
class: "flex-shrink-0 h-3 w-3 text-gray-400",
|
|
1370
1370
|
"aria-hidden": "true"
|
|
1371
1371
|
}),
|
|
1372
1372
|
e("span", {
|
|
1373
1373
|
onClick: (t) => o.$emit("breadCrumbClicked", r.routeName),
|
|
1374
|
-
class:
|
|
1374
|
+
class: y(["cursor-pointer ml-4 text-xs text-gray-400 hover:text-gray-500", { "text-indigo-600 hover:text-indigo-800": !r.current }]),
|
|
1375
1375
|
"aria-current": "page"
|
|
1376
|
-
}, g(r.name), 11,
|
|
1376
|
+
}, g(r.name), 11, Ns)
|
|
1377
1377
|
]))
|
|
1378
1378
|
]))), 128))
|
|
1379
1379
|
])
|
|
@@ -1424,7 +1424,7 @@ const zt = { class: "flex justify-between" }, Lt = {
|
|
|
1424
1424
|
loading: o.loading
|
|
1425
1425
|
}, {
|
|
1426
1426
|
default: v(() => [
|
|
1427
|
-
|
|
1427
|
+
L(g(l.name), 1)
|
|
1428
1428
|
]),
|
|
1429
1429
|
_: 2
|
|
1430
1430
|
}, 1032, ["color", "loading"]))), 128))
|
|
@@ -1446,7 +1446,7 @@ const zt = { class: "flex justify-between" }, Lt = {
|
|
|
1446
1446
|
l.value.forEach((c) => {
|
|
1447
1447
|
c.active = c.value === t.value;
|
|
1448
1448
|
}), o("filterSelected", t);
|
|
1449
|
-
}, l =
|
|
1449
|
+
}, l = A(a.items);
|
|
1450
1450
|
return (t, c) => (s(), _(me, {
|
|
1451
1451
|
class: "text-nowrap",
|
|
1452
1452
|
loading: t.loading,
|
|
@@ -1529,7 +1529,7 @@ const zt = { class: "flex justify-between" }, Lt = {
|
|
|
1529
1529
|
]),
|
|
1530
1530
|
e("div", Ws, [
|
|
1531
1531
|
e("div", {
|
|
1532
|
-
class:
|
|
1532
|
+
class: y(["mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full sm:mx-0 sm:h-10 sm:w-10", {
|
|
1533
1533
|
"bg-red-100": l.type === "danger",
|
|
1534
1534
|
"bg-green-100": l.type === "success",
|
|
1535
1535
|
"bg-indigo-100": l.type === "default",
|
|
@@ -1567,7 +1567,7 @@ const zt = { class: "flex justify-between" }, Lt = {
|
|
|
1567
1567
|
class: "text-lg font-medium leading-6 text-gray-900"
|
|
1568
1568
|
}, {
|
|
1569
1569
|
default: v(() => [
|
|
1570
|
-
|
|
1570
|
+
L(g(l.title), 1)
|
|
1571
1571
|
]),
|
|
1572
1572
|
_: 1
|
|
1573
1573
|
}),
|
|
@@ -1613,10 +1613,10 @@ const zt = { class: "flex justify-between" }, Lt = {
|
|
|
1613
1613
|
},
|
|
1614
1614
|
emits: ["closeNotification"],
|
|
1615
1615
|
setup(m, { emit: i }) {
|
|
1616
|
-
const o = m, a =
|
|
1616
|
+
const o = m, a = Y(() => o.show);
|
|
1617
1617
|
return (r, l) => (s(), n("div", {
|
|
1618
1618
|
"aria-live": "assertive",
|
|
1619
|
-
class:
|
|
1619
|
+
class: y([{ fixed: r.fixed }, "inset-0 flex items-end px-4 py-6 pointer-events-none sm:p-6 sm:items-start"])
|
|
1620
1620
|
}, [
|
|
1621
1621
|
e("div", eo, [
|
|
1622
1622
|
p(ce, {
|
|
@@ -1687,7 +1687,7 @@ const zt = { class: "flex justify-between" }, Lt = {
|
|
|
1687
1687
|
key: 0,
|
|
1688
1688
|
role: "list",
|
|
1689
1689
|
class: "divide-y divide-gray-100"
|
|
1690
|
-
}, go = { class: "min-w-0" }, po = { class: "flex items-start gap-x-3" }, mo = { class: "text-sm font-semibold leading-6 text-gray-900" }, fo = { class: "mt-1 flex items-center gap-x-2 text-xs leading-5 text-gray-500" },
|
|
1690
|
+
}, go = { class: "min-w-0" }, po = { class: "flex items-start gap-x-3" }, mo = { class: "text-sm font-semibold leading-6 text-gray-900" }, fo = { class: "mt-1 flex items-center gap-x-2 text-xs leading-5 text-gray-500" }, ho = { class: "truncate" }, yo = { class: "flex flex-none items-center gap-x-4" }, vo = ["href"], bo = { class: "sr-only" }, wo = {
|
|
1691
1691
|
key: 1,
|
|
1692
1692
|
class: "divide-y divide-gray-100 animate-pulse"
|
|
1693
1693
|
}, xo = /* @__PURE__ */ B({
|
|
@@ -1713,7 +1713,7 @@ const zt = { class: "flex justify-between" }, Lt = {
|
|
|
1713
1713
|
e("div", po, [
|
|
1714
1714
|
e("p", mo, g(a.name), 1),
|
|
1715
1715
|
e("p", {
|
|
1716
|
-
class:
|
|
1716
|
+
class: y([
|
|
1717
1717
|
{
|
|
1718
1718
|
"text-green-700 bg-green-50 ring-green-600/20": a.status === "Complete",
|
|
1719
1719
|
"text-gray-600 bg-gray-50 ring-gray-500/10": a.status === "In progress",
|
|
@@ -1724,15 +1724,15 @@ const zt = { class: "flex justify-between" }, Lt = {
|
|
|
1724
1724
|
}, g(a.statusLiteral), 3)
|
|
1725
1725
|
]),
|
|
1726
1726
|
e("div", fo, [
|
|
1727
|
-
e("p",
|
|
1727
|
+
e("p", ho, g(a.description), 1)
|
|
1728
1728
|
])
|
|
1729
1729
|
]),
|
|
1730
|
-
e("div",
|
|
1730
|
+
e("div", yo, [
|
|
1731
1731
|
e("a", {
|
|
1732
1732
|
href: a.href,
|
|
1733
1733
|
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"
|
|
1734
1734
|
}, [
|
|
1735
|
-
|
|
1735
|
+
L(g(a.action), 1),
|
|
1736
1736
|
e("span", bo, ", " + g(a.name), 1)
|
|
1737
1737
|
], 8, vo)
|
|
1738
1738
|
])
|
|
@@ -1770,8 +1770,8 @@ function So() {
|
|
|
1770
1770
|
return d && typeof d == "object" && "default" in d ? d : { default: d };
|
|
1771
1771
|
}
|
|
1772
1772
|
var r = a(o), l = { 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"] };
|
|
1773
|
-
function t(d, f,
|
|
1774
|
-
var w = l[
|
|
1773
|
+
function t(d, f, h) {
|
|
1774
|
+
var w = l[h];
|
|
1775
1775
|
return Array.isArray(w) && (w = w[f ? 0 : 1]), w.replace("%d", d);
|
|
1776
1776
|
}
|
|
1777
1777
|
var c = { 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) {
|
|
@@ -1848,13 +1848,13 @@ const se = (m, i) => {
|
|
|
1848
1848
|
i === "next" && (m === "day" && (o = T(this.selectedDate).add(1, "day")), m === "month" && (o = T(this.selectedDate).add(1, "month")), m === "year" && (o = T(this.selectedDate).add(1, "year"))), this.$emit("dateSelected", o);
|
|
1849
1849
|
}
|
|
1850
1850
|
}
|
|
1851
|
-
}, zo = { class: "dateSelector flex items-center text-white flex-row" }, Lo = { class: "pagination flex items-center my-1 md:my-0" },
|
|
1852
|
-
function
|
|
1851
|
+
}, zo = { class: "dateSelector flex items-center text-white flex-row" }, Lo = { class: "pagination flex items-center my-1 md:my-0" }, Oo = { class: "date mx-4 font-bold text-center text-indigo-600 select-none uppercase" }, Ao = { class: "pagination flex items-center my-1 sm:my-0" };
|
|
1852
|
+
function No(m, i, o, a, r, l) {
|
|
1853
1853
|
const t = Be("ChevronLeftIcon"), c = Be("ChevronRightIcon");
|
|
1854
1854
|
return s(), n("div", zo, [
|
|
1855
1855
|
e("div", Lo, [
|
|
1856
1856
|
e("div", {
|
|
1857
|
-
class:
|
|
1857
|
+
class: y([{
|
|
1858
1858
|
"bg-indigo-600 hover:bg-indigo-800 cursor-pointer": l.currentDate > l.today,
|
|
1859
1859
|
"bg-indigo-300": l.currentDate <= l.today
|
|
1860
1860
|
}, "previousYear flex items-center p-1 rounded mx-0.5 shadow-sm"]),
|
|
@@ -1865,7 +1865,7 @@ function Ao(m, i, o, a, r, l) {
|
|
|
1865
1865
|
p(t, { class: "h-4 -ml-3" })
|
|
1866
1866
|
], 2),
|
|
1867
1867
|
e("div", {
|
|
1868
|
-
class:
|
|
1868
|
+
class: y([{
|
|
1869
1869
|
"bg-indigo-600 hover:bg-indigo-800 cursor-pointer": l.currentDate > l.today,
|
|
1870
1870
|
"bg-indigo-300": l.currentDate <= l.today
|
|
1871
1871
|
}, "previousYear flex items-center p-1 rounded mx-0.5 shadow-sm"]),
|
|
@@ -1875,7 +1875,7 @@ function Ao(m, i, o, a, r, l) {
|
|
|
1875
1875
|
p(t, { class: "h-4 -ml-3" })
|
|
1876
1876
|
], 2),
|
|
1877
1877
|
e("div", {
|
|
1878
|
-
class:
|
|
1878
|
+
class: y([{
|
|
1879
1879
|
"bg-indigo-600 hover:bg-indigo-800 cursor-pointer": l.currentDate > l.today,
|
|
1880
1880
|
"bg-indigo-300": l.currentDate <= l.today
|
|
1881
1881
|
}, "previousYear flex items-center p-1 rounded mx-0.5 shadow-sm"]),
|
|
@@ -1884,8 +1884,8 @@ function Ao(m, i, o, a, r, l) {
|
|
|
1884
1884
|
p(t, { class: "h-4" })
|
|
1885
1885
|
], 2)
|
|
1886
1886
|
]),
|
|
1887
|
-
e("div",
|
|
1888
|
-
e("div",
|
|
1887
|
+
e("div", Oo, g(l.formatedDate), 1),
|
|
1888
|
+
e("div", Ao, [
|
|
1889
1889
|
e("div", {
|
|
1890
1890
|
class: "previousDay flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm",
|
|
1891
1891
|
onClick: i[3] || (i[3] = (d) => l.selectDate("day", "next"))
|
|
@@ -1910,7 +1910,7 @@ function Ao(m, i, o, a, r, l) {
|
|
|
1910
1910
|
])
|
|
1911
1911
|
]);
|
|
1912
1912
|
}
|
|
1913
|
-
const
|
|
1913
|
+
const Po = /* @__PURE__ */ se(To, [["render", No]]), Yo = {
|
|
1914
1914
|
name: "SkeletonTable"
|
|
1915
1915
|
}, Io = { class: "px-4 sm:px-6 lg:px-8 animate-pulse" }, Fo = { class: "flow-root" }, Vo = { class: "-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8" }, qo = { class: "inline-block min-w-full py-2 align-middle px-1" }, Ro = { class: "overflow-hidden shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg" }, Ho = { class: "min-w-full divide-y divide-gray-300" }, Uo = { class: "divide-y divide-gray-200 bg-white" };
|
|
1916
1916
|
function Eo(m, i, o, a, r, l) {
|
|
@@ -1977,7 +1977,7 @@ function Eo(m, i, o, a, r, l) {
|
|
|
1977
1977
|
}, [
|
|
1978
1978
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" }),
|
|
1979
1979
|
e("span", { class: "sr-only" }, [
|
|
1980
|
-
|
|
1980
|
+
L(", {"),
|
|
1981
1981
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })
|
|
1982
1982
|
])
|
|
1983
1983
|
])
|
|
@@ -1991,7 +1991,7 @@ function Eo(m, i, o, a, r, l) {
|
|
|
1991
1991
|
])
|
|
1992
1992
|
]);
|
|
1993
1993
|
}
|
|
1994
|
-
const Ke = /* @__PURE__ */ se(
|
|
1994
|
+
const Ke = /* @__PURE__ */ se(Yo, [["render", Eo]]);
|
|
1995
1995
|
var de = { exports: {} }, Zo = de.exports, ze;
|
|
1996
1996
|
function Jo() {
|
|
1997
1997
|
return ze || (ze = 1, function(m, i) {
|
|
@@ -2027,7 +2027,7 @@ const Go = /* @__PURE__ */ ko(Wo), Qo = {
|
|
|
2027
2027
|
}, Ko = { class: "text-xs" }, Xo = { class: "font-bold text-lg" }, el = { class: "text-xs font-medium" };
|
|
2028
2028
|
function tl(m, i, o, a, r, l) {
|
|
2029
2029
|
return s(), n("div", {
|
|
2030
|
-
class:
|
|
2030
|
+
class: y([
|
|
2031
2031
|
"day select-none text-center",
|
|
2032
2032
|
{
|
|
2033
2033
|
"bg-indigo-200 text-white": l.currentDay.isWeekend,
|
|
@@ -2063,7 +2063,7 @@ const sl = /* @__PURE__ */ se(Qo, [["render", tl]]), ol = {
|
|
|
2063
2063
|
function rl(m, i, o, a, r, l) {
|
|
2064
2064
|
return s(), n("div", ll, [
|
|
2065
2065
|
e("div", {
|
|
2066
|
-
class:
|
|
2066
|
+
class: y([
|
|
2067
2067
|
{
|
|
2068
2068
|
"bg-indigo-200 text-white": l.currentDay.isWeekend,
|
|
2069
2069
|
"bg-green-300 text-white": o.price.price > o.basePrice,
|
|
@@ -2088,7 +2088,7 @@ const le = /* @__PURE__ */ se(ol, [["render", rl]]), nl = {
|
|
|
2088
2088
|
}, ml = { key: 0 }, fl = {
|
|
2089
2089
|
colspan: "6",
|
|
2090
2090
|
class: "pl-4"
|
|
2091
|
-
},
|
|
2091
|
+
}, hl = { key: 1 }, yl = {
|
|
2092
2092
|
colspan: "6",
|
|
2093
2093
|
class: "pl-4"
|
|
2094
2094
|
}, vl = { key: 2 }, bl = {
|
|
@@ -2125,7 +2125,7 @@ const le = /* @__PURE__ */ se(ol, [["render", rl]]), nl = {
|
|
|
2125
2125
|
}, Ll = {
|
|
2126
2126
|
colspan: "2",
|
|
2127
2127
|
class: "pl-4"
|
|
2128
|
-
},
|
|
2128
|
+
}, Ol = /* @__PURE__ */ B({
|
|
2129
2129
|
__name: "uiPriceCalendar",
|
|
2130
2130
|
props: {
|
|
2131
2131
|
loading: { type: Boolean },
|
|
@@ -2139,25 +2139,25 @@ const le = /* @__PURE__ */ se(ol, [["render", rl]]), nl = {
|
|
|
2139
2139
|
},
|
|
2140
2140
|
emits: ["dateChanged", "changeCategoryBulkPrices", "changeCategorySelectionPrice", "changeCategoryUpgradePrice", "changeRoomPrice", "tableAction"],
|
|
2141
2141
|
setup(m, { emit: i }) {
|
|
2142
|
-
const o = m, a = i, r =
|
|
2142
|
+
const o = m, a = i, r = A(/* @__PURE__ */ new Date()), l = A(o.today), t = A([]);
|
|
2143
2143
|
R(() => o.today, (x) => {
|
|
2144
2144
|
l.value = x;
|
|
2145
2145
|
});
|
|
2146
|
-
const c =
|
|
2146
|
+
const c = Y(() => {
|
|
2147
2147
|
let x = [];
|
|
2148
2148
|
for (let I = 0; I < 14; I++)
|
|
2149
2149
|
x.push(T(l.value).add(I, "day"));
|
|
2150
2150
|
return x;
|
|
2151
|
-
}), d =
|
|
2151
|
+
}), d = Y(() => t.value.length > 0 && t.value.length < o.rooms.length), f = (x) => {
|
|
2152
2152
|
T(x).isBefore(r.value) || (l.value = x, a("dateChanged", l.value));
|
|
2153
|
-
},
|
|
2154
|
-
let I = o.category.selectionPrices.find((
|
|
2153
|
+
}, h = (x) => {
|
|
2154
|
+
let I = o.category.selectionPrices.find((P) => T(P.date).isSame(x.date));
|
|
2155
2155
|
return I ? I.price : x.price;
|
|
2156
2156
|
}, w = (x) => {
|
|
2157
2157
|
t.value = x.target.checked ? o.rooms.map((I) => I.id) : [];
|
|
2158
|
-
},
|
|
2158
|
+
}, z = () => a("changeCategoryBulkPrices"), N = (x) => a("changeCategorySelectionPrice", x), M = (x) => a("changeCategoryUpgradePrice", x), S = (x) => a("tableAction", x), F = (x, I, P) => a("changeRoomPrice", { price: x, roomId: I, roomName: P });
|
|
2159
2159
|
return (x, I) => {
|
|
2160
|
-
var
|
|
2160
|
+
var P, oe;
|
|
2161
2161
|
return x.loading ? (s(), _(Ke, { key: 1 })) : (s(), n("div", nl, [
|
|
2162
2162
|
e("div", al, [
|
|
2163
2163
|
e("div", il, [
|
|
@@ -2166,19 +2166,19 @@ const le = /* @__PURE__ */ se(ol, [["render", rl]]), nl = {
|
|
|
2166
2166
|
e("tbody", cl, [
|
|
2167
2167
|
e("tr", null, [
|
|
2168
2168
|
e("th", gl, [
|
|
2169
|
-
p(
|
|
2169
|
+
p(Po, {
|
|
2170
2170
|
selectedDate: l.value,
|
|
2171
|
-
onDateSelected: I[0] || (I[0] = (
|
|
2171
|
+
onDateSelected: I[0] || (I[0] = (O) => f(O))
|
|
2172
2172
|
}, null, 8, ["selectedDate"])
|
|
2173
2173
|
]),
|
|
2174
|
-
(s(!0), n(k, null, $(c.value, (
|
|
2174
|
+
(s(!0), n(k, null, $(c.value, (O, V) => (s(), n("th", {
|
|
2175
2175
|
scope: "col",
|
|
2176
2176
|
key: V,
|
|
2177
2177
|
class: "text-sm font-semibold text-gray-900 p-0"
|
|
2178
2178
|
}, [
|
|
2179
2179
|
p(sl, {
|
|
2180
2180
|
class: "border-l border-gray-200 px-6 py-3",
|
|
2181
|
-
day:
|
|
2181
|
+
day: O
|
|
2182
2182
|
}, null, 8, ["day"])
|
|
2183
2183
|
]))), 128))
|
|
2184
2184
|
]),
|
|
@@ -2189,10 +2189,10 @@ const le = /* @__PURE__ */ se(ol, [["render", rl]]), nl = {
|
|
|
2189
2189
|
loading: x.loading,
|
|
2190
2190
|
class: "ml-4",
|
|
2191
2191
|
size: "small",
|
|
2192
|
-
onClick:
|
|
2192
|
+
onClick: z
|
|
2193
2193
|
}, {
|
|
2194
2194
|
default: v(() => [
|
|
2195
|
-
|
|
2195
|
+
L(g(x.literals.changeInBulk), 1)
|
|
2196
2196
|
]),
|
|
2197
2197
|
_: 1
|
|
2198
2198
|
}, 8, ["loading"])
|
|
@@ -2200,29 +2200,29 @@ const le = /* @__PURE__ */ se(ol, [["render", rl]]), nl = {
|
|
|
2200
2200
|
]),
|
|
2201
2201
|
x.type === "discounts" ? (s(), n("tr", ml, [
|
|
2202
2202
|
e("td", fl, g(x.literals.pricesDiscount), 1),
|
|
2203
|
-
(s(!0), n(k, null, $(x.category.selectionPrices, (
|
|
2203
|
+
(s(!0), n(k, null, $(x.category.selectionPrices, (O, V) => (s(), n("td", {
|
|
2204
2204
|
key: V,
|
|
2205
2205
|
class: "p-0"
|
|
2206
2206
|
}, [
|
|
2207
2207
|
p(le, {
|
|
2208
|
-
onClick: (X) =>
|
|
2208
|
+
onClick: (X) => N(O),
|
|
2209
2209
|
class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer",
|
|
2210
|
-
price:
|
|
2210
|
+
price: O,
|
|
2211
2211
|
currency: x.currency.symbol,
|
|
2212
2212
|
isBasePrice: !0
|
|
2213
2213
|
}, null, 8, ["onClick", "price", "currency"])
|
|
2214
2214
|
]))), 128))
|
|
2215
2215
|
])) : b("", !0),
|
|
2216
|
-
x.type === "prices" ? (s(), n("tr",
|
|
2217
|
-
e("td",
|
|
2218
|
-
(s(!0), n(k, null, $(x.category.selectionPrices, (
|
|
2216
|
+
x.type === "prices" ? (s(), n("tr", hl, [
|
|
2217
|
+
e("td", yl, g(x.literals.pricesSelection), 1),
|
|
2218
|
+
(s(!0), n(k, null, $(x.category.selectionPrices, (O, V) => (s(), n("td", {
|
|
2219
2219
|
key: V,
|
|
2220
2220
|
class: "p-0"
|
|
2221
2221
|
}, [
|
|
2222
2222
|
p(le, {
|
|
2223
|
-
onClick: (X) =>
|
|
2223
|
+
onClick: (X) => N(O),
|
|
2224
2224
|
class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer",
|
|
2225
|
-
price:
|
|
2225
|
+
price: O,
|
|
2226
2226
|
currency: x.currency.symbol,
|
|
2227
2227
|
isBasePrice: !0
|
|
2228
2228
|
}, null, 8, ["onClick", "price", "currency"])
|
|
@@ -2230,14 +2230,14 @@ const le = /* @__PURE__ */ se(ol, [["render", rl]]), nl = {
|
|
|
2230
2230
|
])) : b("", !0),
|
|
2231
2231
|
x.type === "prices" ? (s(), n("tr", vl, [
|
|
2232
2232
|
e("td", bl, g(x.literals.pricesUpgrade), 1),
|
|
2233
|
-
(s(!0), n(k, null, $(x.category.upgradePrices, (
|
|
2233
|
+
(s(!0), n(k, null, $(x.category.upgradePrices, (O, V) => (s(), n("td", {
|
|
2234
2234
|
key: V,
|
|
2235
2235
|
class: "p-0"
|
|
2236
2236
|
}, [
|
|
2237
2237
|
p(le, {
|
|
2238
|
-
onClick: (X) => M(
|
|
2238
|
+
onClick: (X) => M(O),
|
|
2239
2239
|
class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer bg-gray-100",
|
|
2240
|
-
price:
|
|
2240
|
+
price: O,
|
|
2241
2241
|
currency: x.currency.symbol,
|
|
2242
2242
|
isBasePrice: !0
|
|
2243
2243
|
}, null, 8, ["onClick", "price", "currency"])
|
|
@@ -2245,13 +2245,13 @@ const le = /* @__PURE__ */ se(ol, [["render", rl]]), nl = {
|
|
|
2245
2245
|
])) : b("", !0),
|
|
2246
2246
|
e("tr", null, [
|
|
2247
2247
|
e("th", wl, [
|
|
2248
|
-
((
|
|
2249
|
-
(s(!0), n(k, null, $(x.actions, (
|
|
2250
|
-
onClick: (X) => S({ action:
|
|
2248
|
+
((P = t.value) == null ? void 0 : P.length) > 0 && ((oe = x.actions) == null ? void 0 : oe.length) > 0 ? (s(), n("div", xl, [
|
|
2249
|
+
(s(!0), n(k, null, $(x.actions, (O, V) => (s(), n("button", {
|
|
2250
|
+
onClick: (X) => S({ action: O.id, items: t.value }),
|
|
2251
2251
|
key: V,
|
|
2252
2252
|
type: "button",
|
|
2253
2253
|
class: "inline-flex items-center rounded bg-indigo-600 hover:bg-indigo-800 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm disabled:cursor-not-allowed disabled:opacity-30"
|
|
2254
|
-
}, g(
|
|
2254
|
+
}, g(O.name), 9, kl))), 128))
|
|
2255
2255
|
])) : b("", !0),
|
|
2256
2256
|
e("span", null, g(x.literals.pricesSelection), 1)
|
|
2257
2257
|
])
|
|
@@ -2275,34 +2275,34 @@ const le = /* @__PURE__ */ se(ol, [["render", rl]]), nl = {
|
|
|
2275
2275
|
class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900"
|
|
2276
2276
|
}, null, -1))
|
|
2277
2277
|
]),
|
|
2278
|
-
(s(!0), n(k, null, $(x.rooms, (
|
|
2279
|
-
key:
|
|
2280
|
-
class:
|
|
2278
|
+
(s(!0), n(k, null, $(x.rooms, (O) => (s(), n("tr", {
|
|
2279
|
+
key: O.name,
|
|
2280
|
+
class: y([{ "even:bg-gray-100": x.type === "prices", "odd:bg-gray-100": x.type === "discounts" }])
|
|
2281
2281
|
}, [
|
|
2282
2282
|
e("td", Ml, [
|
|
2283
2283
|
t.value.length > 0 ? (s(), n("div", Dl)) : b("", !0),
|
|
2284
2284
|
C(e("input", {
|
|
2285
2285
|
type: "checkbox",
|
|
2286
2286
|
class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600",
|
|
2287
|
-
value:
|
|
2287
|
+
value: O.name,
|
|
2288
2288
|
"onUpdate:modelValue": I[1] || (I[1] = (V) => t.value = V)
|
|
2289
2289
|
}, null, 8, jl), [
|
|
2290
|
-
[
|
|
2290
|
+
[Ne, t.value]
|
|
2291
2291
|
]),
|
|
2292
|
-
e("span", Tl, g(
|
|
2292
|
+
e("span", Tl, g(O.name), 1)
|
|
2293
2293
|
]),
|
|
2294
|
-
e("td", zl, g(
|
|
2295
|
-
e("td", Ll, g(
|
|
2296
|
-
(s(!0), n(k, null, $(
|
|
2294
|
+
e("td", zl, g(O.building), 1),
|
|
2295
|
+
e("td", Ll, g(O.floor), 1),
|
|
2296
|
+
(s(!0), n(k, null, $(O.selectionPrices, (V, X) => (s(), n("td", {
|
|
2297
2297
|
class: "p-0",
|
|
2298
2298
|
key: X
|
|
2299
2299
|
}, [
|
|
2300
2300
|
p(le, {
|
|
2301
|
-
onClick: (
|
|
2301
|
+
onClick: (hd) => F(V, O.id, O.name),
|
|
2302
2302
|
class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 cursor-pointer",
|
|
2303
2303
|
price: V,
|
|
2304
2304
|
currency: x.currency.symbol,
|
|
2305
|
-
basePrice:
|
|
2305
|
+
basePrice: h(V)
|
|
2306
2306
|
}, null, 8, ["onClick", "price", "currency", "basePrice"])
|
|
2307
2307
|
]))), 128))
|
|
2308
2308
|
], 2))), 128))
|
|
@@ -2314,10 +2314,10 @@ const le = /* @__PURE__ */ se(ol, [["render", rl]]), nl = {
|
|
|
2314
2314
|
]));
|
|
2315
2315
|
};
|
|
2316
2316
|
}
|
|
2317
|
-
}),
|
|
2317
|
+
}), Al = { class: "chart-header flex flex-row items-center w-full justify-between" }, Nl = { class: "text-sm font-medium text-gray-500 truncate mr-8" }, Pl = {
|
|
2318
2318
|
key: 0,
|
|
2319
2319
|
class: "flex items-center gap-x-2 grow"
|
|
2320
|
-
},
|
|
2320
|
+
}, Yl = { class: "self-center ml-2" }, Il = { class: "self-center ml-2" }, Fl = { class: "self-center ml-2" }, Vl = { class: "hidden sm:flex items-center" }, ql = { class: "w-1/2 min-w-0 flex-1" }, Rl = ["max"], Hl = { class: "min-w-0 flex-1" }, Ul = ["max"], El = { class: "chart-content relative" }, Zl = /* @__PURE__ */ B({
|
|
2321
2321
|
__name: "uiChart",
|
|
2322
2322
|
props: {
|
|
2323
2323
|
labels: {},
|
|
@@ -2339,7 +2339,7 @@ const le = /* @__PURE__ */ se(ol, [["render", rl]]), nl = {
|
|
|
2339
2339
|
},
|
|
2340
2340
|
emits: ["selectedRange", "chartUpdated", "dataPointSelection", "maximizeChart"],
|
|
2341
2341
|
setup(m, { emit: i }) {
|
|
2342
|
-
const o = i, a =
|
|
2342
|
+
const o = i, a = A((/* @__PURE__ */ new Date()).toISOString().slice(0, (/* @__PURE__ */ new Date()).toISOString().lastIndexOf(":"))), r = m;
|
|
2343
2343
|
let l = Q(r.dates || { from: "", to: a });
|
|
2344
2344
|
R(() => r.dates, (M) => {
|
|
2345
2345
|
M && (l = M);
|
|
@@ -2402,16 +2402,16 @@ const le = /* @__PURE__ */ se(ol, [["render", rl]]), nl = {
|
|
|
2402
2402
|
}), r.type === "area" && (c.tooltip = { intersect: !0, shared: !1 });
|
|
2403
2403
|
const d = () => (c.chart.stacked = r.stacked, { ...c, ...r.options, plotOptions: { bar: { horizontal: r.horizontal } } }), f = () => {
|
|
2404
2404
|
l.from !== "" && l.to !== "" && T(l.from).isBefore(T(l.to)) && o("selectedRange", { range: l, chartId: r.id });
|
|
2405
|
-
},
|
|
2405
|
+
}, h = Y(() => r.series), w = Y(() => d()), z = () => o("chartUpdated"), N = (M, S, F) => {
|
|
2406
2406
|
o("dataPointSelection", { id: r.id, chartContext: S, config: F, event: M });
|
|
2407
2407
|
};
|
|
2408
2408
|
return (M, S) => (s(), n(k, null, [
|
|
2409
2409
|
C(e("div", {
|
|
2410
|
-
class:
|
|
2410
|
+
class: y(["h-[" + M.height + "px]", "card chart apex-chart p-4 bg-white shadow rounded-lg overflow-hidden flex grow"])
|
|
2411
2411
|
}, [
|
|
2412
|
-
e("div",
|
|
2413
|
-
e("div",
|
|
2414
|
-
M.isNps && M.npsLiterals ? (s(), n("div",
|
|
2412
|
+
e("div", Al, [
|
|
2413
|
+
e("div", Nl, g(M.title), 1),
|
|
2414
|
+
M.isNps && M.npsLiterals ? (s(), n("div", Pl, [
|
|
2415
2415
|
p(H, {
|
|
2416
2416
|
size: "small",
|
|
2417
2417
|
color: "red",
|
|
@@ -2423,7 +2423,7 @@ const le = /* @__PURE__ */ se(ol, [["render", rl]]), nl = {
|
|
|
2423
2423
|
loading: !1,
|
|
2424
2424
|
color: "red"
|
|
2425
2425
|
}, null, 8, ["icon"]),
|
|
2426
|
-
e("span",
|
|
2426
|
+
e("span", Yl, g(M.npsLiterals.unhappy), 1)
|
|
2427
2427
|
]),
|
|
2428
2428
|
_: 1
|
|
2429
2429
|
}),
|
|
@@ -2498,18 +2498,18 @@ const le = /* @__PURE__ */ se(ol, [["render", rl]]), nl = {
|
|
|
2498
2498
|
p(u(Ce), {
|
|
2499
2499
|
class: "chart",
|
|
2500
2500
|
type: M.type,
|
|
2501
|
-
series:
|
|
2501
|
+
series: h.value,
|
|
2502
2502
|
height: M.height,
|
|
2503
2503
|
options: w.value,
|
|
2504
|
-
onUpdated:
|
|
2505
|
-
onMounted:
|
|
2506
|
-
onDataPointSelection:
|
|
2504
|
+
onUpdated: z,
|
|
2505
|
+
onMounted: z,
|
|
2506
|
+
onDataPointSelection: N
|
|
2507
2507
|
}, null, 8, ["type", "series", "height", "options"])
|
|
2508
2508
|
], 512), [
|
|
2509
2509
|
[D, !M.empty]
|
|
2510
2510
|
]),
|
|
2511
2511
|
C(e("div", {
|
|
2512
|
-
class:
|
|
2512
|
+
class: y(["h-[" + M.height + "px]", "w-full flex items-center justify-center flex-col"])
|
|
2513
2513
|
}, [
|
|
2514
2514
|
p(j, {
|
|
2515
2515
|
icon: u(U),
|
|
@@ -2525,7 +2525,7 @@ const le = /* @__PURE__ */ se(ol, [["render", rl]]), nl = {
|
|
|
2525
2525
|
[D, !M.loading]
|
|
2526
2526
|
]),
|
|
2527
2527
|
C(e("div", {
|
|
2528
|
-
class:
|
|
2528
|
+
class: y(["h-[" + M.height + "px]", "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80"])
|
|
2529
2529
|
}, S[4] || (S[4] = [
|
|
2530
2530
|
e("div", {
|
|
2531
2531
|
role: "status",
|
|
@@ -2578,7 +2578,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
2578
2578
|
},
|
|
2579
2579
|
setup(m) {
|
|
2580
2580
|
return (i, o) => (s(), n("div", {
|
|
2581
|
-
class:
|
|
2581
|
+
class: y([
|
|
2582
2582
|
{ fixed: i.fixed },
|
|
2583
2583
|
"load-screen h-full w-full top-0 left-0 z-[100] flex flex-col items-center justify-center bg-gray-50"
|
|
2584
2584
|
])
|
|
@@ -2621,11 +2621,11 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
2621
2621
|
},
|
|
2622
2622
|
emits: ["changePage"],
|
|
2623
2623
|
setup(m, { emit: i }) {
|
|
2624
|
-
const o = i, a = m, r =
|
|
2624
|
+
const o = i, a = m, r = A(3), l = Y(
|
|
2625
2625
|
() => Math.max(1, Number(a.current) - Number(r.value))
|
|
2626
|
-
), t =
|
|
2626
|
+
), t = Y(
|
|
2627
2627
|
() => Math.min(Number(a.current) + Number(r.value), Number(a.total))
|
|
2628
|
-
), c =
|
|
2628
|
+
), c = Y(() => {
|
|
2629
2629
|
let d = [];
|
|
2630
2630
|
for (let f = Number(l.value); f <= Number(t.value); f++)
|
|
2631
2631
|
d.push(f);
|
|
@@ -2655,7 +2655,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
2655
2655
|
e("div", null, [
|
|
2656
2656
|
e("nav", ar, [
|
|
2657
2657
|
C(e("button", {
|
|
2658
|
-
onClick: f[0] || (f[0] = (
|
|
2658
|
+
onClick: f[0] || (f[0] = (h) => o("changePage", d.current - 1)),
|
|
2659
2659
|
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"
|
|
2660
2660
|
}, [
|
|
2661
2661
|
e("span", ir, [
|
|
@@ -2668,16 +2668,16 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
2668
2668
|
], 512), [
|
|
2669
2669
|
[D, d.current !== 1]
|
|
2670
2670
|
]),
|
|
2671
|
-
(s(!0), n(k, null, $(c.value, (
|
|
2672
|
-
onClick: (w) => o("changePage",
|
|
2673
|
-
key:
|
|
2671
|
+
(s(!0), n(k, null, $(c.value, (h) => (s(), n("button", {
|
|
2672
|
+
onClick: (w) => o("changePage", h),
|
|
2673
|
+
key: h,
|
|
2674
2674
|
"aria-current": "page",
|
|
2675
|
-
class:
|
|
2676
|
-
|
|
2675
|
+
class: y([[
|
|
2676
|
+
h === d.current ? "z-10 bg-indigo-50 border-indigo-500 text-indigo-600" : "bg-white border-gray-300 text-gray-500 hover:bg-gray-50"
|
|
2677
2677
|
], "relative inline-flex items-center px-4 py-2 border text-sm font-medium"])
|
|
2678
|
-
}, g(
|
|
2678
|
+
}, g(h), 11, dr))), 128)),
|
|
2679
2679
|
C(e("button", {
|
|
2680
|
-
onClick: f[1] || (f[1] = (
|
|
2680
|
+
onClick: f[1] || (f[1] = (h) => o("changePage", d.current + 1)),
|
|
2681
2681
|
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"
|
|
2682
2682
|
}, [
|
|
2683
2683
|
e("span", ur, [
|
|
@@ -2695,10 +2695,10 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
2695
2695
|
])
|
|
2696
2696
|
]));
|
|
2697
2697
|
}
|
|
2698
|
-
}), pr = { class: "hidden md:flex md:flex-col sticky md:inset-y-0" }, mr = { class: "flex flex-col flex-grow overflow-y-auto" }, fr = { class: "grow flex flex-col" },
|
|
2698
|
+
}), pr = { class: "hidden md:flex md:flex-col sticky md:inset-y-0" }, mr = { class: "flex flex-col flex-grow overflow-y-auto" }, fr = { class: "grow flex flex-col" }, hr = {
|
|
2699
2699
|
class: "flex-1 space-y-1",
|
|
2700
2700
|
"aria-label": "Sidebar"
|
|
2701
|
-
},
|
|
2701
|
+
}, yr = { key: 0 }, vr = ["onClick"], br = {
|
|
2702
2702
|
key: 1,
|
|
2703
2703
|
class: "text-left"
|
|
2704
2704
|
}, wr = {
|
|
@@ -2728,7 +2728,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
2728
2728
|
return (a, r) => (s(), n("div", pr, [
|
|
2729
2729
|
e("div", mr, [
|
|
2730
2730
|
e("div", fr, [
|
|
2731
|
-
e("nav",
|
|
2731
|
+
e("nav", hr, [
|
|
2732
2732
|
a.loading ? (s(), n(k, { key: 1 }, $(5, (l) => e("div", $r, r[1] || (r[1] = [
|
|
2733
2733
|
e("div", { class: "w-6 h-6 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 mr-4" }, null, -1),
|
|
2734
2734
|
e("div", { class: "h-3 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 grow" }, null, -1)
|
|
@@ -2742,14 +2742,14 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
2742
2742
|
}, {
|
|
2743
2743
|
default: v(({ open: t }) => [
|
|
2744
2744
|
p(u(Z), {
|
|
2745
|
-
class:
|
|
2745
|
+
class: y([l.current ? "bg-indigo-600 text-white" : "text-gray-600 hover:bg-gray-50 hover:text-gray-900", "group w-full flex items-center pl-2 pr-1 py-2 text-left text-sm font-medium rounded-md focus:outline-none"])
|
|
2746
2746
|
}, {
|
|
2747
2747
|
default: v(() => [
|
|
2748
2748
|
l.icon ? (s(), _(j, {
|
|
2749
2749
|
key: 0,
|
|
2750
2750
|
loading: a.loading,
|
|
2751
2751
|
icon: l.icon,
|
|
2752
|
-
class:
|
|
2752
|
+
class: y([
|
|
2753
2753
|
l.current ? "text-white" : "text-gray-400 group-hover:text-gray-500",
|
|
2754
2754
|
"mr-3 flex-shrink-0 h-6 w-6"
|
|
2755
2755
|
]),
|
|
@@ -2759,7 +2759,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
2759
2759
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1)
|
|
2760
2760
|
]))) : (s(), n("span", wr, g(l.name), 1)),
|
|
2761
2761
|
p(u(te), {
|
|
2762
|
-
class:
|
|
2762
|
+
class: y([t ? "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"])
|
|
2763
2763
|
}, null, 8, ["class"])
|
|
2764
2764
|
]),
|
|
2765
2765
|
_: 2
|
|
@@ -2769,7 +2769,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
2769
2769
|
(s(!0), n(k, null, $(l.children, (c) => (s(), _(u(Z), {
|
|
2770
2770
|
onClick: (d) => o("sideBarClick", c.id),
|
|
2771
2771
|
key: c.name,
|
|
2772
|
-
class:
|
|
2772
|
+
class: y([c.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"])
|
|
2773
2773
|
}, {
|
|
2774
2774
|
default: v(() => [
|
|
2775
2775
|
a.loading ? (s(), n("div", _r)) : (s(), n("span", kr, g(c.name), 1))
|
|
@@ -2781,10 +2781,10 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
2781
2781
|
}, 1024)
|
|
2782
2782
|
]),
|
|
2783
2783
|
_: 2
|
|
2784
|
-
}, 1024)) : (s(), n("div",
|
|
2784
|
+
}, 1024)) : (s(), n("div", yr, [
|
|
2785
2785
|
e("button", {
|
|
2786
2786
|
onClick: (t) => o("sideBarClick", l.id),
|
|
2787
|
-
class:
|
|
2787
|
+
class: y([
|
|
2788
2788
|
l.current ? "bg-indigo-600 text-white" : "text-gray-600 hover:bg-gray-50 hover:text-gray-900",
|
|
2789
2789
|
"group w-full flex items-center pl-2 py-2 text-sm font-medium rounded-md"
|
|
2790
2790
|
])
|
|
@@ -2793,7 +2793,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
2793
2793
|
key: 0,
|
|
2794
2794
|
loading: a.loading,
|
|
2795
2795
|
icon: l.icon,
|
|
2796
|
-
class:
|
|
2796
|
+
class: y([
|
|
2797
2797
|
l.current ? "text-white" : "text-gray-400 group-hover:text-gray-500",
|
|
2798
2798
|
"mr-3 flex-shrink-0 h-6 w-6"
|
|
2799
2799
|
]),
|
|
@@ -2811,7 +2811,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
2811
2811
|
}), Sr = { key: 0 }, Br = { class: "ml-16 text-sm font-medium text-gray-500 truncate" }, Mr = { class: "ml-16 flex items-baseline pb-5" }, Dr = { class: "text-2xl font-semibold text-gray-900" }, jr = {
|
|
2812
2812
|
key: 0,
|
|
2813
2813
|
class: "text-black ml-2 flex items-baseline text-sm font-semibold"
|
|
2814
|
-
}, Tr = { class: "absolute bottom-0 inset-x-0 bg-gray-50 px-4 py-4 sm:px-6" }, zr = { class: "text-sm" }, Lr = { key: 1 },
|
|
2814
|
+
}, Tr = { class: "absolute bottom-0 inset-x-0 bg-gray-50 px-4 py-4 sm:px-6" }, zr = { class: "text-sm" }, Lr = { key: 1 }, Or = { class: "relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full pb-6" }, Ar = { class: "absolute bg-gray-200 rounded-md p-3 animate-pulse" }, Xe = /* @__PURE__ */ B({
|
|
2815
2815
|
__name: "uiStats",
|
|
2816
2816
|
props: {
|
|
2817
2817
|
item: {},
|
|
@@ -2820,9 +2820,9 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
2820
2820
|
emits: ["statClick"],
|
|
2821
2821
|
setup(m, { emit: i }) {
|
|
2822
2822
|
return (o, a) => o.loading ? (s(), n("div", Lr, [
|
|
2823
|
-
e("div",
|
|
2823
|
+
e("div", Or, [
|
|
2824
2824
|
e("dt", null, [
|
|
2825
|
-
e("div",
|
|
2825
|
+
e("div", Ar, [
|
|
2826
2826
|
p(j, {
|
|
2827
2827
|
loading: o.loading,
|
|
2828
2828
|
icon: o.item.icon,
|
|
@@ -2840,11 +2840,11 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
2840
2840
|
])
|
|
2841
2841
|
])) : (s(), n("div", Sr, [
|
|
2842
2842
|
e("div", {
|
|
2843
|
-
class:
|
|
2843
|
+
class: y(["relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full", { "pb-12": o.item.showFooter }])
|
|
2844
2844
|
}, [
|
|
2845
2845
|
e("dt", null, [
|
|
2846
2846
|
e("div", {
|
|
2847
|
-
class:
|
|
2847
|
+
class: y(["absolute rounded-md p-3", {
|
|
2848
2848
|
"bg-indigo-500": !o.item.color,
|
|
2849
2849
|
"bg-green-500": o.item.color === "green",
|
|
2850
2850
|
"bg-red-500": o.item.color === "red",
|
|
@@ -2866,7 +2866,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
2866
2866
|
o.item.explanation ? (s(), n("p", jr, g(o.item.explanation), 1)) : b("", !0),
|
|
2867
2867
|
o.item.changeType ? (s(), n("p", {
|
|
2868
2868
|
key: 1,
|
|
2869
|
-
class:
|
|
2869
|
+
class: y([
|
|
2870
2870
|
{
|
|
2871
2871
|
"text-green-600": o.item.changeType === "increase",
|
|
2872
2872
|
"text-red-600": o.item.changeType === "decrease",
|
|
@@ -2885,7 +2885,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
2885
2885
|
class: "self-center flex-shrink-0 h-3 w-3 text-red-500",
|
|
2886
2886
|
"aria-hidden": "true"
|
|
2887
2887
|
})) : b("", !0),
|
|
2888
|
-
|
|
2888
|
+
L(" " + g(o.item.change), 1)
|
|
2889
2889
|
], 2)) : b("", !0),
|
|
2890
2890
|
C(e("div", Tr, [
|
|
2891
2891
|
e("div", zr, [
|
|
@@ -2901,10 +2901,10 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
2901
2901
|
], 2)
|
|
2902
2902
|
]));
|
|
2903
2903
|
}
|
|
2904
|
-
}),
|
|
2904
|
+
}), Nr = {
|
|
2905
2905
|
key: 0,
|
|
2906
2906
|
class: "overflow-hidden bg-white shadow sm:rounded-lg"
|
|
2907
|
-
},
|
|
2907
|
+
}, Pr = { class: "px-4 py-5 sm:px-6" }, Yr = { class: "text-lg font-medium leading-6 text-gray-900" }, Ir = { class: "mt-1 max-w-2xl text-sm text-gray-500" }, Fr = { class: "border-t border-gray-200" }, Vr = { class: "text-sm font-medium text-gray-500" }, qr = {
|
|
2908
2908
|
key: 0,
|
|
2909
2909
|
class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal"
|
|
2910
2910
|
}, Rr = ["onClick"], Hr = {
|
|
@@ -2929,7 +2929,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
2929
2929
|
e("dl", null, [
|
|
2930
2930
|
(s(), n(k, null, $(5, (r) => e("div", {
|
|
2931
2931
|
key: r,
|
|
2932
|
-
class:
|
|
2932
|
+
class: y(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [r % 2 === 0 ? "bg-gray-50" : "bg-white"]])
|
|
2933
2933
|
}, a[0] || (a[0] = [
|
|
2934
2934
|
e("dt", { class: "text-sm font-medium text-gray-500" }, [
|
|
2935
2935
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12" })
|
|
@@ -2940,16 +2940,16 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
2940
2940
|
]), 2)), 64))
|
|
2941
2941
|
])
|
|
2942
2942
|
])
|
|
2943
|
-
])) : (s(), n("div",
|
|
2944
|
-
e("div",
|
|
2945
|
-
e("h3",
|
|
2943
|
+
])) : (s(), n("div", Nr, [
|
|
2944
|
+
e("div", Pr, [
|
|
2945
|
+
e("h3", Yr, g(o.title), 1),
|
|
2946
2946
|
e("p", Ir, g(o.subtitle), 1)
|
|
2947
2947
|
]),
|
|
2948
2948
|
e("div", Fr, [
|
|
2949
2949
|
e("dl", null, [
|
|
2950
2950
|
(s(!0), n(k, null, $(o.items, (r, l) => (s(), n("div", {
|
|
2951
2951
|
key: l,
|
|
2952
|
-
class:
|
|
2952
|
+
class: y(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [l % 2 === 0 ? "bg-gray-50" : "bg-white"]])
|
|
2953
2953
|
}, [
|
|
2954
2954
|
e("dt", Vr, g(r.title), 1),
|
|
2955
2955
|
r.type === "tags" ? (s(), n("dd", qr, [
|
|
@@ -2960,7 +2960,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
2960
2960
|
class: "mr-2 mb-2"
|
|
2961
2961
|
}, {
|
|
2962
2962
|
default: v(() => [
|
|
2963
|
-
|
|
2963
|
+
L(g(t.text), 1)
|
|
2964
2964
|
]),
|
|
2965
2965
|
_: 2
|
|
2966
2966
|
}, 1032, ["loading", "color"]))), 128))
|
|
@@ -3019,7 +3019,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
3019
3019
|
}, cn = { class: "divide-y divide-gray-200 bg-white" }, gn = {
|
|
3020
3020
|
key: 0,
|
|
3021
3021
|
class: "absolute inset-y-0 left-0 w-0.5 bg-indigo-600"
|
|
3022
|
-
}, pn = ["value"], mn = ["onClick"], fn = ["href"],
|
|
3022
|
+
}, pn = ["value"], mn = ["onClick"], fn = ["href"], hn = { key: 3 }, yn = /* @__PURE__ */ B({
|
|
3023
3023
|
__name: "uiTable",
|
|
3024
3024
|
props: {
|
|
3025
3025
|
resetSelected: { type: Boolean, default: !1 },
|
|
@@ -3032,26 +3032,26 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
3032
3032
|
},
|
|
3033
3033
|
emits: ["tableAction", "orderBy", "customEmit", "selectedItemsDeleted"],
|
|
3034
3034
|
setup(m, { emit: i }) {
|
|
3035
|
-
let o =
|
|
3036
|
-
const l = i, t = m, c =
|
|
3035
|
+
let o = A([]), a = A(""), r = A(!1);
|
|
3036
|
+
const l = i, t = m, c = Y(
|
|
3037
3037
|
() => o.value.length > 0 && o.value.length < t.items.length
|
|
3038
|
-
), d = (w,
|
|
3039
|
-
a.value !== w &&
|
|
3038
|
+
), d = (w, z) => {
|
|
3039
|
+
a.value !== w && z && (a.value = w), z || (a.value = void 0);
|
|
3040
3040
|
}, f = (w) => {
|
|
3041
|
-
o.value = w.target.checked ? t.items.map((
|
|
3042
|
-
},
|
|
3041
|
+
o.value = w.target.checked ? t.items.map((z) => z.id) : [];
|
|
3042
|
+
}, h = (w) => {
|
|
3043
3043
|
l("customEmit", w);
|
|
3044
3044
|
};
|
|
3045
3045
|
return R(() => t.resetSelected, (w) => {
|
|
3046
3046
|
r.value = w, w && r.value && (o.value = [], r.value = !w, l("selectedItemsDeleted"));
|
|
3047
|
-
}), (w,
|
|
3048
|
-
var
|
|
3047
|
+
}), (w, z) => {
|
|
3048
|
+
var N, M;
|
|
3049
3049
|
return w.loading ? (s(), _(Ke, { key: 1 })) : (s(), n("div", Qr, [
|
|
3050
3050
|
e("div", Kr, [
|
|
3051
3051
|
e("div", Xr, [
|
|
3052
3052
|
e("div", en, [
|
|
3053
3053
|
e("div", tn, [
|
|
3054
|
-
((
|
|
3054
|
+
((N = u(o)) == null ? void 0 : N.length) > 0 && ((M = w.actions) == null ? void 0 : M.length) > 0 ? (s(), n("div", sn, [
|
|
3055
3055
|
(s(!0), n(k, null, $(w.actions, (S, F) => (s(), n("button", {
|
|
3056
3056
|
onClick: (x) => w.$emit("tableAction", { action: S.id, items: u(o) }),
|
|
3057
3057
|
key: F,
|
|
@@ -3064,7 +3064,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
3064
3064
|
e("tr", null, [
|
|
3065
3065
|
e("th", {
|
|
3066
3066
|
scope: "col",
|
|
3067
|
-
class:
|
|
3067
|
+
class: y([w.actions ? "px-6 sm:px-8" : "px-3", "relative"])
|
|
3068
3068
|
}, [
|
|
3069
3069
|
w.actions ? (s(), n("input", {
|
|
3070
3070
|
key: 0,
|
|
@@ -3095,7 +3095,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
3095
3095
|
}, [
|
|
3096
3096
|
e("span", null, g(S.name), 1),
|
|
3097
3097
|
e("span", {
|
|
3098
|
-
class:
|
|
3098
|
+
class: y([[
|
|
3099
3099
|
S.value === w.orderedBy ? "bg-indigo-600 text-white group-hover:bg-gray-300" : "text-gray-400 group-hover:visible group-focus:visible"
|
|
3100
3100
|
], "ml-2 flex-none rounded group-hover:bg-indigo-200 group-hover:text-white"])
|
|
3101
3101
|
}, [
|
|
@@ -3116,50 +3116,50 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
3116
3116
|
var x, I;
|
|
3117
3117
|
return s(), n("tr", {
|
|
3118
3118
|
key: S.id,
|
|
3119
|
-
class:
|
|
3119
|
+
class: y([
|
|
3120
3120
|
u(o).includes(S.id) && "bg-gray-50",
|
|
3121
3121
|
F % 2 === 0 ? void 0 : "bg-gray-50"
|
|
3122
3122
|
])
|
|
3123
3123
|
}, [
|
|
3124
3124
|
e("td", {
|
|
3125
|
-
class:
|
|
3125
|
+
class: y([((x = w.actions) == null ? void 0 : x.length) > 0 ? "w-2" : "w-0", "relative"])
|
|
3126
3126
|
}, [
|
|
3127
3127
|
u(o).includes(S.id) ? (s(), n("div", gn)) : b("", !0),
|
|
3128
3128
|
((I = w.actions) == null ? void 0 : I.length) > 0 ? C((s(), n("input", {
|
|
3129
3129
|
key: 1,
|
|
3130
|
-
"onUpdate:modelValue":
|
|
3130
|
+
"onUpdate:modelValue": z[0] || (z[0] = (P) => Pe(o) ? o.value = P : o = P),
|
|
3131
3131
|
value: S.id,
|
|
3132
3132
|
class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500 flex-wrap",
|
|
3133
3133
|
type: "checkbox"
|
|
3134
3134
|
}, null, 8, pn)), [
|
|
3135
|
-
[
|
|
3135
|
+
[Ne, u(o)]
|
|
3136
3136
|
]) : b("", !0)
|
|
3137
3137
|
], 2),
|
|
3138
|
-
(s(!0), n(k, null, $(S.row, (
|
|
3138
|
+
(s(!0), n(k, null, $(S.row, (P, oe) => (s(), n("td", {
|
|
3139
3139
|
key: oe,
|
|
3140
|
-
class:
|
|
3140
|
+
class: y([
|
|
3141
3141
|
"whitespace-nowrap py-4 pr-3 text-sm",
|
|
3142
3142
|
u(o).includes(S.id) ? "text-indigo-600" : "text-gray-900"
|
|
3143
3143
|
])
|
|
3144
3144
|
}, [
|
|
3145
|
-
typeof
|
|
3145
|
+
typeof P == "object" && P.type === "tag" ? (s(), _(H, {
|
|
3146
3146
|
key: 0,
|
|
3147
3147
|
loading: w.loading,
|
|
3148
|
-
color:
|
|
3148
|
+
color: P.color
|
|
3149
3149
|
}, {
|
|
3150
3150
|
default: v(() => [
|
|
3151
|
-
|
|
3151
|
+
L(g(P.content), 1)
|
|
3152
3152
|
]),
|
|
3153
3153
|
_: 2
|
|
3154
|
-
}, 1032, ["loading", "color"])) : typeof
|
|
3154
|
+
}, 1032, ["loading", "color"])) : typeof P == "object" && P.type === "link" ? (s(), n("span", {
|
|
3155
3155
|
key: 1,
|
|
3156
3156
|
class: "text-indigo-600 hover:text-indigo-400 cursor-pointer",
|
|
3157
|
-
onClick: (
|
|
3158
|
-
}, g(
|
|
3157
|
+
onClick: (O) => h(P)
|
|
3158
|
+
}, g(P.content), 9, mn)) : typeof P == "object" && P.type === "href" ? (s(), n("a", {
|
|
3159
3159
|
key: 2,
|
|
3160
3160
|
class: "text-indigo-600 hover:text-indigo-400 cursor-pointer",
|
|
3161
|
-
href:
|
|
3162
|
-
}, g(
|
|
3161
|
+
href: P.href
|
|
3162
|
+
}, g(P.content), 9, fn)) : (s(), n("span", hn, g(P), 1))
|
|
3163
3163
|
], 2))), 128))
|
|
3164
3164
|
], 2);
|
|
3165
3165
|
}), 128))
|
|
@@ -3206,16 +3206,16 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
3206
3206
|
(s(!0), n(k, null, $(r.tabs, (t) => (s(), n("a", {
|
|
3207
3207
|
key: t.name,
|
|
3208
3208
|
onClick: (c) => o("tabClicked", t.id),
|
|
3209
|
-
class:
|
|
3209
|
+
class: y([
|
|
3210
3210
|
t.current ? "border-indigo-500 text-indigo-600" : "border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-200",
|
|
3211
3211
|
"whitespace-nowrap flex py-4 px-1 border-b-2 font-medium text-sm cursor-pointer"
|
|
3212
3212
|
]),
|
|
3213
3213
|
"aria-current": t.current ? "page" : void 0
|
|
3214
3214
|
}, [
|
|
3215
|
-
|
|
3215
|
+
L(g(t.name) + " ", 1),
|
|
3216
3216
|
t.count ? (s(), n("span", {
|
|
3217
3217
|
key: 0,
|
|
3218
|
-
class:
|
|
3218
|
+
class: y([
|
|
3219
3219
|
t.current ? "bg-indigo-100 text-indigo-600" : "bg-gray-100 text-gray-900",
|
|
3220
3220
|
"hidden ml-3 py-0.5 px-2.5 rounded-full text-xs font-medium md:inline-block"
|
|
3221
3221
|
])
|
|
@@ -3233,10 +3233,10 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
3233
3233
|
key: 0,
|
|
3234
3234
|
class: "absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200",
|
|
3235
3235
|
"aria-hidden": "true"
|
|
3236
|
-
}, Tn = { class: "relative flex space-x-3" }, zn = { class: "min-w-0 flex-1 pt-1.5 flex justify-between space-x-4 items-center" }, Ln = { class: "text-sm text-gray-500" },
|
|
3236
|
+
}, Tn = { class: "relative flex space-x-3" }, zn = { class: "min-w-0 flex-1 pt-1.5 flex justify-between space-x-4 items-center" }, Ln = { class: "text-sm text-gray-500" }, On = ["onClick"], An = { class: "text-right text-sm whitespace-nowrap text-gray-500" }, Nn = ["datetime"], Pn = {
|
|
3237
3237
|
key: 1,
|
|
3238
3238
|
class: "bg-gray-50 px-4 py-4 sm:px-6 z-10"
|
|
3239
|
-
},
|
|
3239
|
+
}, Yn = { class: "text-sm" }, In = {
|
|
3240
3240
|
key: 2,
|
|
3241
3241
|
class: "h-full w-full flex items-center justify-center flex-col mb-5"
|
|
3242
3242
|
}, Fn = {
|
|
@@ -3286,7 +3286,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
3286
3286
|
], -1))
|
|
3287
3287
|
])) : (s(), n("div", {
|
|
3288
3288
|
key: 0,
|
|
3289
|
-
class:
|
|
3289
|
+
class: y(["h-[" + r.height + "px]", "bg-white overflow-hidden shadow rounded-lg"])
|
|
3290
3290
|
}, [
|
|
3291
3291
|
e("div", Cn, [
|
|
3292
3292
|
e("h1", Sn, g(r.name), 1)
|
|
@@ -3307,7 +3307,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
3307
3307
|
e("div", Tn, [
|
|
3308
3308
|
e("div", null, [
|
|
3309
3309
|
e("span", {
|
|
3310
|
-
class:
|
|
3310
|
+
class: y([(t == null ? void 0 : t.iconBackground) || "bg-indigo-600", "h-8 w-8 rounded-full flex items-center justify-center ring-4 ring-white"])
|
|
3311
3311
|
}, [
|
|
3312
3312
|
p(j, {
|
|
3313
3313
|
loading: r.loading,
|
|
@@ -3324,14 +3324,14 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
3324
3324
|
e("a", {
|
|
3325
3325
|
onClick: (f) => r.$emit("timelineEventClicked", t.linkId),
|
|
3326
3326
|
class: "font-medium text-indigo-600 hover:text-indigo-800 cursor-pointer"
|
|
3327
|
-
}, g(t == null ? void 0 : t.target), 9,
|
|
3328
|
-
|
|
3327
|
+
}, g(t == null ? void 0 : t.target), 9, On),
|
|
3328
|
+
L(" " + g(t == null ? void 0 : t.content), 1)
|
|
3329
3329
|
])
|
|
3330
3330
|
]),
|
|
3331
|
-
e("div",
|
|
3331
|
+
e("div", An, [
|
|
3332
3332
|
e("time", {
|
|
3333
3333
|
datetime: t == null ? void 0 : t.datetime
|
|
3334
|
-
}, g(t == null ? void 0 : t.date), 9,
|
|
3334
|
+
}, g(t == null ? void 0 : t.date), 9, Nn)
|
|
3335
3335
|
])
|
|
3336
3336
|
])
|
|
3337
3337
|
])
|
|
@@ -3343,8 +3343,8 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
3343
3343
|
})
|
|
3344
3344
|
])
|
|
3345
3345
|
])) : b("", !0),
|
|
3346
|
-
a.items ? (s(), n("div",
|
|
3347
|
-
e("div",
|
|
3346
|
+
a.items ? (s(), n("div", Pn, [
|
|
3347
|
+
e("div", Yn, [
|
|
3348
3348
|
e("a", {
|
|
3349
3349
|
class: "cursor-pointer font-medium text-indigo-600 hover:text-indigo-500",
|
|
3350
3350
|
onClick: l[0] || (l[0] = (t) => r.$emit("timelineFooterClicked", r.timeline.id))
|
|
@@ -3414,13 +3414,13 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
3414
3414
|
]),
|
|
3415
3415
|
e("div", Kn, [
|
|
3416
3416
|
e("div", Xn, [
|
|
3417
|
-
p(u(
|
|
3417
|
+
p(u(he), {
|
|
3418
3418
|
as: "div",
|
|
3419
3419
|
class: "ml-3 relative"
|
|
3420
3420
|
}, {
|
|
3421
3421
|
default: v(() => [
|
|
3422
3422
|
e("div", null, [
|
|
3423
|
-
C(p(u(
|
|
3423
|
+
C(p(u(ye), { class: "bg-white rounded-full flex text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 relative" }, {
|
|
3424
3424
|
default: v(() => [
|
|
3425
3425
|
C(e("div", ea, a[2] || (a[2] = [
|
|
3426
3426
|
e("span", { class: "animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75" }, null, -1)
|
|
@@ -3454,7 +3454,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
3454
3454
|
default: v(({ active: t }) => [
|
|
3455
3455
|
e("p", {
|
|
3456
3456
|
onClick: (c) => o.$emit("topBarClick", l.id),
|
|
3457
|
-
class:
|
|
3457
|
+
class: y(["cursor-pointer", [
|
|
3458
3458
|
t ? "bg-gray-100" : "",
|
|
3459
3459
|
"block px-4 py-2 text-sm text-gray-700"
|
|
3460
3460
|
]])
|
|
@@ -3481,7 +3481,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
3481
3481
|
(s(!0), n(k, null, $(o.navigation, (l) => (s(), _(u(Z), {
|
|
3482
3482
|
as: "template",
|
|
3483
3483
|
key: l.name,
|
|
3484
|
-
class:
|
|
3484
|
+
class: y(["block pl-3 pr-4 py-2 border-l-4 text-base font-medium sm:pl-5 sm:pr-6", {
|
|
3485
3485
|
"bg-indigo-50 border-indigo-500 text-indigo-700": l.current && l.current === !0,
|
|
3486
3486
|
"border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700": !l.current
|
|
3487
3487
|
}])
|
|
@@ -3529,36 +3529,36 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
3529
3529
|
_: 1
|
|
3530
3530
|
}));
|
|
3531
3531
|
}
|
|
3532
|
-
}), fa = { class: "chart-selector flex flex-row items-center justify-center" },
|
|
3532
|
+
}), fa = { class: "chart-selector flex flex-row items-center justify-center" }, ha = /* @__PURE__ */ B({
|
|
3533
3533
|
__name: "RangeSelector",
|
|
3534
3534
|
props: { range: { type: String } },
|
|
3535
3535
|
emits: ["rangeSelected"],
|
|
3536
3536
|
setup(m, { emit: i }) {
|
|
3537
3537
|
const o = i, a = m;
|
|
3538
|
-
let r =
|
|
3538
|
+
let r = Y(() => a.range);
|
|
3539
3539
|
const l = (t) => {
|
|
3540
3540
|
r = t, o("rangeSelected", t);
|
|
3541
3541
|
};
|
|
3542
3542
|
return (t, c) => (s(), n("ul", fa, [
|
|
3543
3543
|
e("li", {
|
|
3544
|
-
class:
|
|
3544
|
+
class: y({ selected: u(r) === "24h" }),
|
|
3545
3545
|
onClick: c[0] || (c[0] = (d) => l("24h"))
|
|
3546
3546
|
}, " 24H ", 2),
|
|
3547
3547
|
e("li", {
|
|
3548
|
-
class:
|
|
3548
|
+
class: y({ selected: u(r) === "7d" }),
|
|
3549
3549
|
onClick: c[1] || (c[1] = (d) => l("7d"))
|
|
3550
3550
|
}, "7D", 2),
|
|
3551
3551
|
e("li", {
|
|
3552
|
-
class:
|
|
3552
|
+
class: y({ selected: u(r) === "1m" }),
|
|
3553
3553
|
onClick: c[2] || (c[2] = (d) => l("1m"))
|
|
3554
3554
|
}, "1M", 2),
|
|
3555
3555
|
e("li", {
|
|
3556
|
-
class:
|
|
3556
|
+
class: y({ selected: u(r) === "3m" }),
|
|
3557
3557
|
onClick: c[3] || (c[3] = (d) => l("3m"))
|
|
3558
3558
|
}, "3M", 2)
|
|
3559
3559
|
]));
|
|
3560
3560
|
}
|
|
3561
|
-
}),
|
|
3561
|
+
}), ya = { class: "chart-header flex flex-row justify-between" }, va = { class: "text-sm font-medium text-gray-500 truncate" }, ba = { class: "chart-content" }, wa = { class: "h-full w-full flex items-center justify-center flex-col" }, xa = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, ka = /* @__PURE__ */ B({
|
|
3562
3562
|
__name: "uiFunnelChartV2",
|
|
3563
3563
|
props: {
|
|
3564
3564
|
labels: {},
|
|
@@ -3596,8 +3596,8 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
3596
3596
|
],
|
|
3597
3597
|
dataLabels: {
|
|
3598
3598
|
enabled: !0,
|
|
3599
|
-
formatter: function(f,
|
|
3600
|
-
return
|
|
3599
|
+
formatter: function(f, h) {
|
|
3600
|
+
return h.w.globals.labels[h.dataPointIndex] + ": " + f;
|
|
3601
3601
|
}
|
|
3602
3602
|
},
|
|
3603
3603
|
markers: {
|
|
@@ -3616,18 +3616,18 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
3616
3616
|
}
|
|
3617
3617
|
}
|
|
3618
3618
|
};
|
|
3619
|
-
const l =
|
|
3620
|
-
o("dataPointSelection", { id: a.id, chartContext:
|
|
3619
|
+
const l = Y(() => ({ ...a.options, ...r })), t = Y(() => a.series), c = () => o("chartUpdated"), d = (f, h, w) => {
|
|
3620
|
+
o("dataPointSelection", { id: a.id, chartContext: h, config: w, event: f });
|
|
3621
3621
|
};
|
|
3622
|
-
return (f,
|
|
3622
|
+
return (f, h) => (s(), n(k, null, [
|
|
3623
3623
|
C(e("div", {
|
|
3624
|
-
class:
|
|
3624
|
+
class: y(["h-[" + f.height + "px]", "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"])
|
|
3625
3625
|
}, [
|
|
3626
|
-
e("div",
|
|
3626
|
+
e("div", ya, [
|
|
3627
3627
|
e("div", va, g(f.title), 1),
|
|
3628
|
-
p(
|
|
3628
|
+
p(ha, {
|
|
3629
3629
|
range: f.range,
|
|
3630
|
-
onRangeSelected:
|
|
3630
|
+
onRangeSelected: h[0] || (h[0] = (w) => f.$emit("selectedRange", { range: w, chartId: f.id }))
|
|
3631
3631
|
}, null, 8, ["range"])
|
|
3632
3632
|
]),
|
|
3633
3633
|
C(e("div", ba, [
|
|
@@ -3651,14 +3651,14 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
3651
3651
|
loading: !1,
|
|
3652
3652
|
size: "huge"
|
|
3653
3653
|
}, null, 8, ["icon"]),
|
|
3654
|
-
|
|
3654
|
+
h[1] || (h[1] = e("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1))
|
|
3655
3655
|
], 512), [
|
|
3656
3656
|
[D, f.empty]
|
|
3657
3657
|
])
|
|
3658
3658
|
], 2), [
|
|
3659
3659
|
[D, !f.loading]
|
|
3660
3660
|
]),
|
|
3661
|
-
C(e("div", xa,
|
|
3661
|
+
C(e("div", xa, h[2] || (h[2] = [
|
|
3662
3662
|
e("div", {
|
|
3663
3663
|
role: "status",
|
|
3664
3664
|
class: "w-full animate-pulse h-full flex flex-col"
|
|
@@ -3716,7 +3716,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
3716
3716
|
onClick: (l) => i.$emit("action", a.action)
|
|
3717
3717
|
}, {
|
|
3718
3718
|
default: v(() => [
|
|
3719
|
-
|
|
3719
|
+
L(g(a.text), 1)
|
|
3720
3720
|
]),
|
|
3721
3721
|
_: 2
|
|
3722
3722
|
}, 1032, ["onClick"]))), 128)),
|
|
@@ -3729,7 +3729,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
3729
3729
|
])
|
|
3730
3730
|
]));
|
|
3731
3731
|
}
|
|
3732
|
-
}), Ba = { class: "fixed inset-0 overflow-hidden" }, Ma = { class: "absolute inset-0 overflow-hidden" }, Da = { class: "pointer-events-none fixed inset-y-0 right-0 flex max-w-full pl-10" }, ja = { class: "flex h-full flex-col overflow-y-scroll bg-white shadow-xl" }, Ta = { class: "bg-indigo-700 px-4 py-6 sm:px-6" }, za = { class: "flex items-center justify-between" }, La = { class: "ml-3 flex h-7 items-center" },
|
|
3732
|
+
}), Ba = { class: "fixed inset-0 overflow-hidden" }, Ma = { class: "absolute inset-0 overflow-hidden" }, Da = { class: "pointer-events-none fixed inset-y-0 right-0 flex max-w-full pl-10" }, ja = { class: "flex h-full flex-col overflow-y-scroll bg-white shadow-xl" }, Ta = { class: "bg-indigo-700 px-4 py-6 sm:px-6" }, za = { class: "flex items-center justify-between" }, La = { class: "ml-3 flex h-7 items-center" }, Oa = { class: "mt-1" }, Aa = { class: "text-sm text-indigo-300" }, Na = { class: "relative flex-1 px-4 py-6 sm:px-6" }, Pa = /* @__PURE__ */ B({
|
|
3733
3733
|
__name: "uiRightSidebar",
|
|
3734
3734
|
props: {
|
|
3735
3735
|
title: {},
|
|
@@ -3770,7 +3770,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
3770
3770
|
e("div", za, [
|
|
3771
3771
|
p(u(Re), { class: "text-base font-semibold leading-6 text-white" }, {
|
|
3772
3772
|
default: v(() => [
|
|
3773
|
-
|
|
3773
|
+
L(g(o.title), 1)
|
|
3774
3774
|
]),
|
|
3775
3775
|
_: 1
|
|
3776
3776
|
}),
|
|
@@ -3789,11 +3789,11 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
3789
3789
|
])
|
|
3790
3790
|
])
|
|
3791
3791
|
]),
|
|
3792
|
-
e("div",
|
|
3793
|
-
e("p",
|
|
3792
|
+
e("div", Oa, [
|
|
3793
|
+
e("p", Aa, g(o.description), 1)
|
|
3794
3794
|
])
|
|
3795
3795
|
]),
|
|
3796
|
-
e("div",
|
|
3796
|
+
e("div", Na, [
|
|
3797
3797
|
q(o.$slots, "default")
|
|
3798
3798
|
])
|
|
3799
3799
|
])
|
|
@@ -3813,7 +3813,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
3813
3813
|
_: 3
|
|
3814
3814
|
}, 8, ["show"]));
|
|
3815
3815
|
}
|
|
3816
|
-
}),
|
|
3816
|
+
}), Ya = { class: "uiGallery" }, Ia = {
|
|
3817
3817
|
key: 1,
|
|
3818
3818
|
role: "list",
|
|
3819
3819
|
class: "grid grid-cols-2 gap-x-4 gap-y-8 sm:grid-cols-3 sm:gap-x-4 lg:grid-cols-6"
|
|
@@ -3831,10 +3831,10 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
3831
3831
|
},
|
|
3832
3832
|
emits: ["modalAction", "deleteImage", "imgClicked"],
|
|
3833
3833
|
setup(m, { emit: i }) {
|
|
3834
|
-
const o = i, a =
|
|
3834
|
+
const o = i, a = A(!1), r = (l) => {
|
|
3835
3835
|
a.value = !1, o("modalAction", l);
|
|
3836
3836
|
};
|
|
3837
|
-
return (l, t) => (s(), n("div",
|
|
3837
|
+
return (l, t) => (s(), n("div", Ya, [
|
|
3838
3838
|
l.loading ? b("", !0) : (s(), _(Qe, {
|
|
3839
3839
|
key: 0,
|
|
3840
3840
|
open: a.value,
|
|
@@ -3894,7 +3894,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
3894
3894
|
size: "small"
|
|
3895
3895
|
}, {
|
|
3896
3896
|
default: v(() => [
|
|
3897
|
-
|
|
3897
|
+
L(g(l.literals.deleteAllImages), 1)
|
|
3898
3898
|
]),
|
|
3899
3899
|
_: 1
|
|
3900
3900
|
})) : b("", !0)
|
|
@@ -3912,7 +3912,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
3912
3912
|
emits: ["dragAndDropUpdated"],
|
|
3913
3913
|
setup(m, { emit: i }) {
|
|
3914
3914
|
const o = i, a = m;
|
|
3915
|
-
let r =
|
|
3915
|
+
let r = A(a.elements);
|
|
3916
3916
|
R(() => a.elements, (t) => {
|
|
3917
3917
|
r.value = t;
|
|
3918
3918
|
});
|
|
@@ -3925,7 +3925,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
3925
3925
|
key: 0,
|
|
3926
3926
|
modelValue: u(r),
|
|
3927
3927
|
"onUpdate:modelValue": [
|
|
3928
|
-
c[0] || (c[0] = (d) =>
|
|
3928
|
+
c[0] || (c[0] = (d) => Pe(r) ? r.value = d : r = d),
|
|
3929
3929
|
c[1] || (c[1] = (d) => l(d))
|
|
3930
3930
|
]
|
|
3931
3931
|
}, {
|
|
@@ -3972,10 +3972,10 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
3972
3972
|
},
|
|
3973
3973
|
emits: ["selectedRange", "chartUpdated", "dataPointSelection", "maximizeChart"],
|
|
3974
3974
|
setup(m, { emit: i }) {
|
|
3975
|
-
const o = i, a = m, r =
|
|
3975
|
+
const o = i, a = m, r = A((/* @__PURE__ */ new Date()).toISOString().slice(0, (/* @__PURE__ */ new Date()).toISOString().lastIndexOf(":")));
|
|
3976
3976
|
let l = Q(a.dates || { from: "", to: r });
|
|
3977
|
-
R(() => a.dates, (
|
|
3978
|
-
|
|
3977
|
+
R(() => a.dates, (N) => {
|
|
3978
|
+
N && (l = N);
|
|
3979
3979
|
});
|
|
3980
3980
|
let t = {
|
|
3981
3981
|
chart: {
|
|
@@ -4009,24 +4009,24 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
4009
4009
|
}
|
|
4010
4010
|
}
|
|
4011
4011
|
};
|
|
4012
|
-
const c = () => ({ ...t, ...a.options }), d =
|
|
4013
|
-
o("dataPointSelection", { id: a.id, chartContext: M, config: S, event:
|
|
4014
|
-
},
|
|
4012
|
+
const c = () => ({ ...t, ...a.options }), d = Y(() => a.series), f = Y(() => c()), h = () => o("chartUpdated"), w = (N, M, S) => {
|
|
4013
|
+
o("dataPointSelection", { id: a.id, chartContext: M, config: S, event: N });
|
|
4014
|
+
}, z = () => {
|
|
4015
4015
|
l.from !== "" && l.to !== "" && T(l.from).isBefore(T(l.to)) && o("selectedRange", { range: l, chartId: a.id });
|
|
4016
4016
|
};
|
|
4017
|
-
return (
|
|
4017
|
+
return (N, M) => (s(), n(k, null, [
|
|
4018
4018
|
C(e("div", {
|
|
4019
|
-
class:
|
|
4019
|
+
class: y(["h-[" + N.height + "px]", "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"])
|
|
4020
4020
|
}, [
|
|
4021
4021
|
e("div", si, [
|
|
4022
|
-
e("div", oi, g(
|
|
4022
|
+
e("div", oi, g(N.title), 1),
|
|
4023
4023
|
e("div", li, [
|
|
4024
4024
|
e("div", ri, [
|
|
4025
4025
|
C(e("input", {
|
|
4026
4026
|
type: "datetime-local",
|
|
4027
4027
|
"onUpdate:modelValue": M[0] || (M[0] = (S) => u(l).from = S),
|
|
4028
4028
|
max: r.value.toString(),
|
|
4029
|
-
onChange:
|
|
4029
|
+
onChange: z,
|
|
4030
4030
|
name: "from",
|
|
4031
4031
|
id: "from",
|
|
4032
4032
|
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"
|
|
@@ -4039,7 +4039,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
4039
4039
|
type: "datetime-local",
|
|
4040
4040
|
"onUpdate:modelValue": M[1] || (M[1] = (S) => u(l).to = S),
|
|
4041
4041
|
max: r.value.toString(),
|
|
4042
|
-
onChange:
|
|
4042
|
+
onChange: z,
|
|
4043
4043
|
name: "to",
|
|
4044
4044
|
id: "to",
|
|
4045
4045
|
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"
|
|
@@ -4050,9 +4050,9 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
4050
4050
|
p(j, {
|
|
4051
4051
|
class: "ml-4 cursor-pointer",
|
|
4052
4052
|
size: "big",
|
|
4053
|
-
loading:
|
|
4053
|
+
loading: N.loading,
|
|
4054
4054
|
icon: u(Ue),
|
|
4055
|
-
onClick: M[2] || (M[2] = (S) =>
|
|
4055
|
+
onClick: M[2] || (M[2] = (S) => N.$emit("maximizeChart", N.id))
|
|
4056
4056
|
}, null, 8, ["loading", "icon"])
|
|
4057
4057
|
])
|
|
4058
4058
|
]),
|
|
@@ -4062,13 +4062,13 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
4062
4062
|
type: "donut",
|
|
4063
4063
|
series: d.value,
|
|
4064
4064
|
options: f.value,
|
|
4065
|
-
height:
|
|
4066
|
-
onUpdated:
|
|
4067
|
-
onMounted:
|
|
4065
|
+
height: N.height - 80,
|
|
4066
|
+
onUpdated: h,
|
|
4067
|
+
onMounted: h,
|
|
4068
4068
|
onDataPointSelection: w
|
|
4069
4069
|
}, null, 8, ["series", "options", "height"])
|
|
4070
4070
|
], 512), [
|
|
4071
|
-
[D, !
|
|
4071
|
+
[D, !N.empty]
|
|
4072
4072
|
]),
|
|
4073
4073
|
C(e("div", ui, [
|
|
4074
4074
|
p(j, {
|
|
@@ -4079,10 +4079,10 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
4079
4079
|
}, null, 8, ["icon"]),
|
|
4080
4080
|
M[3] || (M[3] = e("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1))
|
|
4081
4081
|
], 512), [
|
|
4082
|
-
[D,
|
|
4082
|
+
[D, N.empty]
|
|
4083
4083
|
])
|
|
4084
4084
|
], 2), [
|
|
4085
|
-
[D, !
|
|
4085
|
+
[D, !N.loading]
|
|
4086
4086
|
]),
|
|
4087
4087
|
C(e("div", ci, M[4] || (M[4] = [
|
|
4088
4088
|
e("div", {
|
|
@@ -4111,7 +4111,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
4111
4111
|
])
|
|
4112
4112
|
], -1)
|
|
4113
4113
|
]), 512), [
|
|
4114
|
-
[D,
|
|
4114
|
+
[D, N.loading]
|
|
4115
4115
|
])
|
|
4116
4116
|
], 64));
|
|
4117
4117
|
}
|
|
@@ -4136,7 +4136,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
4136
4136
|
},
|
|
4137
4137
|
emits: ["uiDateRangeButtonClicked"],
|
|
4138
4138
|
setup(m, { emit: i }) {
|
|
4139
|
-
const o = m, a =
|
|
4139
|
+
const o = m, a = A((/* @__PURE__ */ new Date()).toISOString().slice(0, (/* @__PURE__ */ new Date()).toISOString().lastIndexOf(":")));
|
|
4140
4140
|
let r = Q(o.values || { from: "", to: a });
|
|
4141
4141
|
const l = i;
|
|
4142
4142
|
R(() => o.values, (c) => {
|
|
@@ -4156,7 +4156,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
4156
4156
|
}),
|
|
4157
4157
|
p(J, { loading: !0 }, {
|
|
4158
4158
|
default: v(() => d[2] || (d[2] = [
|
|
4159
|
-
|
|
4159
|
+
L("Search")
|
|
4160
4160
|
])),
|
|
4161
4161
|
_: 1
|
|
4162
4162
|
})
|
|
@@ -4177,7 +4177,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
4177
4177
|
p(E, {
|
|
4178
4178
|
type: "datetime-local",
|
|
4179
4179
|
loading: !1,
|
|
4180
|
-
class:
|
|
4180
|
+
class: y([{ "mt-6": c.label }]),
|
|
4181
4181
|
addOn: c.literals.to,
|
|
4182
4182
|
name: `dateTo_${c.id}`,
|
|
4183
4183
|
color: c.color,
|
|
@@ -4192,17 +4192,17 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
4192
4192
|
disabled: c.disabled,
|
|
4193
4193
|
color: "primary",
|
|
4194
4194
|
loading: !1,
|
|
4195
|
-
class:
|
|
4195
|
+
class: y([{ "mt-6": c.label }, "h-10"]),
|
|
4196
4196
|
onClick: t
|
|
4197
4197
|
}, {
|
|
4198
4198
|
default: v(() => [
|
|
4199
|
-
|
|
4199
|
+
L(g(c.literals.search), 1)
|
|
4200
4200
|
]),
|
|
4201
4201
|
_: 1
|
|
4202
4202
|
}, 8, ["disabled", "class"])
|
|
4203
4203
|
]));
|
|
4204
4204
|
}
|
|
4205
|
-
}),
|
|
4205
|
+
}), hi = { class: "flex justify-between items-center" }, yi = {
|
|
4206
4206
|
key: 0,
|
|
4207
4207
|
class: "block text-sm font-medium text-gray-700"
|
|
4208
4208
|
}, vi = {
|
|
@@ -4224,14 +4224,14 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
4224
4224
|
},
|
|
4225
4225
|
emits: ["sliderUpdated"],
|
|
4226
4226
|
setup(m, { emit: i }) {
|
|
4227
|
-
const o = i, r =
|
|
4227
|
+
const o = i, r = A(m.sliderValue);
|
|
4228
4228
|
return (l, t) => (s(), n("div", null, [
|
|
4229
|
-
e("div",
|
|
4230
|
-
l.label ? (s(), n("label",
|
|
4229
|
+
e("div", hi, [
|
|
4230
|
+
l.label ? (s(), n("label", yi, g(l.label), 1)) : b("", !0),
|
|
4231
4231
|
l.requiredText ? (s(), n("span", vi, g(l.requiredText), 1)) : b("", !0)
|
|
4232
4232
|
]),
|
|
4233
4233
|
e("div", {
|
|
4234
|
-
class:
|
|
4234
|
+
class: y([{ "mt-1": l.label }, "pt-16 px-6 pb-6 bg-gray-50 border border-gray-300 rounded-lg shadow-sm"])
|
|
4235
4235
|
}, [
|
|
4236
4236
|
l.loading ? (s(), n("p", bi)) : (s(), _(u(dt), {
|
|
4237
4237
|
key: 0,
|
|
@@ -4258,7 +4258,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
4258
4258
|
setup(m) {
|
|
4259
4259
|
return (i, o) => (s(), n(k, null, [
|
|
4260
4260
|
e("h3", {
|
|
4261
|
-
class:
|
|
4261
|
+
class: y(["text-lg font-medium leading-6 text-gray-900", { "mb-8": i.description === void 0 }])
|
|
4262
4262
|
}, g(i.title), 3),
|
|
4263
4263
|
e("p", xi, g(i.description), 1)
|
|
4264
4264
|
], 64));
|
|
@@ -4304,7 +4304,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
4304
4304
|
onTagEvent: a[2] || (a[2] = (t) => o.$emit("deviceStatusTagClicked", t))
|
|
4305
4305
|
}, {
|
|
4306
4306
|
default: v(() => [
|
|
4307
|
-
|
|
4307
|
+
L(g(r.name), 1)
|
|
4308
4308
|
]),
|
|
4309
4309
|
_: 2
|
|
4310
4310
|
}, 1032, ["loading", "event", "color"]))), 128))
|
|
@@ -4314,7 +4314,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
4314
4314
|
])) : (s(), n("div", _i, [
|
|
4315
4315
|
e("div", $i, [
|
|
4316
4316
|
e("div", {
|
|
4317
|
-
class:
|
|
4317
|
+
class: y(["rounded-md p-3 flex items-center justify-center mx-auto mb-4", {
|
|
4318
4318
|
"bg-green-500": !o.color || o.color === "green",
|
|
4319
4319
|
"bg-red-500": o.color === "red",
|
|
4320
4320
|
"bg-yellow-500": o.color === "yellow",
|
|
@@ -4332,7 +4332,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
4332
4332
|
}, null, 8, ["icon"])
|
|
4333
4333
|
], 2),
|
|
4334
4334
|
e("h3", Ci, [
|
|
4335
|
-
|
|
4335
|
+
L(g(o.name) + " ", 1),
|
|
4336
4336
|
C(e("span", {
|
|
4337
4337
|
class: "text-indigo-600 hover:text-indigo-900 cursor-pointer",
|
|
4338
4338
|
onClick: a[0] || (a[0] = (r) => o.$emit("deviceStatusQtyClicked", o.id))
|
|
@@ -4350,7 +4350,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
4350
4350
|
onTagEvent: a[1] || (a[1] = (t) => o.$emit("deviceStatusTagClicked", t))
|
|
4351
4351
|
}, {
|
|
4352
4352
|
default: v(() => [
|
|
4353
|
-
|
|
4353
|
+
L(g(r.name), 1)
|
|
4354
4354
|
]),
|
|
4355
4355
|
_: 2
|
|
4356
4356
|
}, 1032, ["event", "color"]))), 128))
|
|
@@ -4359,10 +4359,10 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
4359
4359
|
])
|
|
4360
4360
|
]));
|
|
4361
4361
|
}
|
|
4362
|
-
}),
|
|
4362
|
+
}), Oi = { class: "flex flex-row grow border-r border-gray-200 bg-white pr-6" }, Ai = { class: "bg-indigo-600 w-16 mr-6" }, Ni = ["onClick"], Pi = {
|
|
4363
4363
|
key: 0,
|
|
4364
4364
|
class: "flex flex-col grow gap-y-5 overflow-y-auto pr-6"
|
|
4365
|
-
},
|
|
4365
|
+
}, Yi = { class: "flex h-16 shrink-0 items-center" }, Ii = ["src"], Fi = { class: "flex flex-1 flex-col" }, Vi = {
|
|
4366
4366
|
key: 0,
|
|
4367
4367
|
role: "list",
|
|
4368
4368
|
class: "flex flex-1 flex-col gap-y-7 mb-4"
|
|
@@ -4388,12 +4388,12 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
4388
4388
|
},
|
|
4389
4389
|
emits: ["productBarClick", "sideBarClick"],
|
|
4390
4390
|
setup(m, { emit: i }) {
|
|
4391
|
-
return (o, a) => (s(), n("div",
|
|
4392
|
-
e("div",
|
|
4391
|
+
return (o, a) => (s(), n("div", Oi, [
|
|
4392
|
+
e("div", Ai, [
|
|
4393
4393
|
e("ul", null, [
|
|
4394
4394
|
(s(!0), n(k, null, $(o.productsSidebar, (r, l) => (s(), n("li", {
|
|
4395
4395
|
key: l,
|
|
4396
|
-
class:
|
|
4396
|
+
class: y([{ "!bg-indigo-900": r.active }, "w-full h-16 flex items-center justify-center cursor-pointer bg-indigo-600 hover:bg-indigo-700"]),
|
|
4397
4397
|
onClick: (t) => o.$emit("productBarClick", r.name)
|
|
4398
4398
|
}, [
|
|
4399
4399
|
p(j, {
|
|
@@ -4402,7 +4402,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
4402
4402
|
color: "white",
|
|
4403
4403
|
size: "bigger"
|
|
4404
4404
|
}, null, 8, ["icon"])
|
|
4405
|
-
], 10,
|
|
4405
|
+
], 10, Ni))), 128))
|
|
4406
4406
|
])
|
|
4407
4407
|
]),
|
|
4408
4408
|
o.loading ? (s(), n("div", Zi, [
|
|
@@ -4410,8 +4410,8 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
4410
4410
|
e("div", { class: "w-6 h-6 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 mr-4" }, null, -1),
|
|
4411
4411
|
e("div", { class: "h-3 animate-pulse bg-gray-200 rounded-full w-1/2 dark:bg-gray-300" }, null, -1)
|
|
4412
4412
|
]))), 64))
|
|
4413
|
-
])) : (s(), n("div",
|
|
4414
|
-
e("div",
|
|
4413
|
+
])) : (s(), n("div", Pi, [
|
|
4414
|
+
e("div", Yi, [
|
|
4415
4415
|
e("img", {
|
|
4416
4416
|
class: "h-8 w-auto",
|
|
4417
4417
|
src: o.logo,
|
|
@@ -4432,7 +4432,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
4432
4432
|
default: v(() => [
|
|
4433
4433
|
p(u(Z), {
|
|
4434
4434
|
onClick: (l) => o.$emit("sideBarClick", r.id),
|
|
4435
|
-
class:
|
|
4435
|
+
class: y([r.current ? "bg-gray-100" : "hover:bg-gray-100", "flex w-full items-center gap-x-3 rounded-md p-2 text-left text-sm font-semibold leading-6 text-gray-700"])
|
|
4436
4436
|
}, {
|
|
4437
4437
|
default: v(() => [
|
|
4438
4438
|
p(j, {
|
|
@@ -4443,9 +4443,9 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
4443
4443
|
"aria-hidden": "true",
|
|
4444
4444
|
class: "shrink-0"
|
|
4445
4445
|
}, null, 8, ["icon"]),
|
|
4446
|
-
|
|
4446
|
+
L(" " + g(r.name) + " ", 1),
|
|
4447
4447
|
p(u(te), {
|
|
4448
|
-
class:
|
|
4448
|
+
class: y([r.children.some((l) => l.current) || r.current ? "rotate-90 text-primary-500" : "text-gray-400", "ml-auto h-5 w-5 shrink-0"]),
|
|
4449
4449
|
"aria-hidden": "true"
|
|
4450
4450
|
}, null, 8, ["class"])
|
|
4451
4451
|
]),
|
|
@@ -4464,10 +4464,10 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
4464
4464
|
p(u(Z), {
|
|
4465
4465
|
as: "a",
|
|
4466
4466
|
onClick: (t) => o.$emit("sideBarClick", l.id),
|
|
4467
|
-
class:
|
|
4467
|
+
class: y([l.current ? "bg-gray-100" : "hover:bg-gray-100", "block rounded-md py-2 pl-9 pr-2 text-sm leading-6 text-gray-700 cursor-pointer"])
|
|
4468
4468
|
}, {
|
|
4469
4469
|
default: v(() => [
|
|
4470
|
-
|
|
4470
|
+
L(g(l.name), 1)
|
|
4471
4471
|
]),
|
|
4472
4472
|
_: 2
|
|
4473
4473
|
}, 1032, ["onClick", "class"])
|
|
@@ -4483,7 +4483,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
4483
4483
|
}, 1024)) : (s(), n("div", {
|
|
4484
4484
|
key: 0,
|
|
4485
4485
|
onClick: (l) => o.$emit("sideBarClick", r.id),
|
|
4486
|
-
class:
|
|
4486
|
+
class: y([r.current ? "bg-gray-100" : "hover:bg-gray-100", "group flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6 text-gray-700 cursor-pointer"])
|
|
4487
4487
|
}, [
|
|
4488
4488
|
p(j, {
|
|
4489
4489
|
icon: r.icon,
|
|
@@ -4493,7 +4493,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
4493
4493
|
"aria-hidden": "true",
|
|
4494
4494
|
class: "shrink-0"
|
|
4495
4495
|
}, null, 8, ["icon"]),
|
|
4496
|
-
|
|
4496
|
+
L(" " + g(r.name), 1)
|
|
4497
4497
|
], 10, Ri))
|
|
4498
4498
|
]))), 128))
|
|
4499
4499
|
])
|
|
@@ -4521,7 +4521,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
4521
4521
|
loading: t.loading
|
|
4522
4522
|
}, {
|
|
4523
4523
|
default: v(() => [
|
|
4524
|
-
|
|
4524
|
+
L(g(t.text), 1)
|
|
4525
4525
|
]),
|
|
4526
4526
|
_: 2
|
|
4527
4527
|
}, 1032, ["value", "loading"]))), 256))
|
|
@@ -4546,7 +4546,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
4546
4546
|
},
|
|
4547
4547
|
emits: ["productBarClick", "sideBarClick", "selectChanged", "topBarClick"],
|
|
4548
4548
|
setup(m, { emit: i }) {
|
|
4549
|
-
const o = m, a =
|
|
4549
|
+
const o = m, a = A(""), r = Y(() => a.value === "" ? o.topbar.selectItems : o.topbar.selectItems.filter((d) => d.name.toLowerCase().includes(a.value.toLowerCase()))), l = (d) => (d == null ? void 0 : d.name) ?? "", t = Y(() => o.topbar.selectedItem), c = A(!1);
|
|
4550
4550
|
return (d, f) => (s(), n("div", null, [
|
|
4551
4551
|
p(u(we), {
|
|
4552
4552
|
as: "template",
|
|
@@ -4555,7 +4555,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
4555
4555
|
default: v(() => [
|
|
4556
4556
|
p(u(xe), {
|
|
4557
4557
|
class: "relative z-50 lg:hidden",
|
|
4558
|
-
onClose: f[3] || (f[3] = (
|
|
4558
|
+
onClose: f[3] || (f[3] = (h) => c.value = !1)
|
|
4559
4559
|
}, {
|
|
4560
4560
|
default: v(() => [
|
|
4561
4561
|
p(u(G), {
|
|
@@ -4599,7 +4599,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
4599
4599
|
e("button", {
|
|
4600
4600
|
type: "button",
|
|
4601
4601
|
class: "-m-2.5 p-2.5",
|
|
4602
|
-
onClick: f[0] || (f[0] = (
|
|
4602
|
+
onClick: f[0] || (f[0] = (h) => c.value = !1)
|
|
4603
4603
|
}, [
|
|
4604
4604
|
f[12] || (f[12] = e("span", { class: "sr-only" }, "Close sidebar", -1)),
|
|
4605
4605
|
p(u(W), {
|
|
@@ -4618,8 +4618,8 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
4618
4618
|
filterNavigation: d.sidebar.filterNavigation,
|
|
4619
4619
|
loading: !1,
|
|
4620
4620
|
logo: d.topbar.logo,
|
|
4621
|
-
onSideBarClick: f[1] || (f[1] = (
|
|
4622
|
-
onProductBarClick: f[2] || (f[2] = (
|
|
4621
|
+
onSideBarClick: f[1] || (f[1] = (h) => d.$emit("sideBarClick", h)),
|
|
4622
|
+
onProductBarClick: f[2] || (f[2] = (h) => d.$emit("productBarClick", h))
|
|
4623
4623
|
}, null, 8, ["productsSidebar", "isFilterNavigation", "navigation", "filterNavigation", "logo"])
|
|
4624
4624
|
]),
|
|
4625
4625
|
_: 1
|
|
@@ -4642,8 +4642,8 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
4642
4642
|
filterNavigation: d.sidebar.filterNavigation,
|
|
4643
4643
|
loading: !1,
|
|
4644
4644
|
logo: d.topbar.logo,
|
|
4645
|
-
onSideBarClick: f[4] || (f[4] = (
|
|
4646
|
-
onProductBarClick: f[5] || (f[5] = (
|
|
4645
|
+
onSideBarClick: f[4] || (f[4] = (h) => d.$emit("sideBarClick", h)),
|
|
4646
|
+
onProductBarClick: f[5] || (f[5] = (h) => d.$emit("productBarClick", h))
|
|
4647
4647
|
}, null, 8, ["productsSidebar", "isFilterNavigation", "navigation", "filterNavigation", "logo"])
|
|
4648
4648
|
]),
|
|
4649
4649
|
e("div", Ki, [
|
|
@@ -4651,7 +4651,7 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
4651
4651
|
e("button", {
|
|
4652
4652
|
type: "button",
|
|
4653
4653
|
class: "-m-2.5 p-2.5 text-gray-700 lg:hidden",
|
|
4654
|
-
onClick: f[6] || (f[6] = (
|
|
4654
|
+
onClick: f[6] || (f[6] = (h) => c.value = !0)
|
|
4655
4655
|
}, [
|
|
4656
4656
|
f[13] || (f[13] = e("span", { class: "sr-only" }, "Open sidebar", -1)),
|
|
4657
4657
|
p(u(Ee), {
|
|
@@ -4673,21 +4673,21 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
4673
4673
|
class: "pointer-events-none absolute inset-y-0 left-0 h-full w-5 text-gray-400",
|
|
4674
4674
|
"aria-hidden": "true"
|
|
4675
4675
|
}),
|
|
4676
|
-
p(u(
|
|
4676
|
+
p(u(Ye), {
|
|
4677
4677
|
class: "w-full",
|
|
4678
4678
|
as: "div",
|
|
4679
4679
|
modelValue: t.value,
|
|
4680
4680
|
"onUpdate:modelValue": [
|
|
4681
|
-
f[9] || (f[9] = (
|
|
4682
|
-
f[10] || (f[10] = (
|
|
4681
|
+
f[9] || (f[9] = (h) => t.value = h),
|
|
4682
|
+
f[10] || (f[10] = (h) => d.$emit("selectChanged", h))
|
|
4683
4683
|
]
|
|
4684
4684
|
}, {
|
|
4685
4685
|
default: v(() => [
|
|
4686
4686
|
e("div", sd, [
|
|
4687
4687
|
p(u(Ie), {
|
|
4688
4688
|
class: "block h-full w-full border-0 py-0 pl-8 pr-0 text-gray-900 placeholder:text-gray-400 focus:ring-0 sm:text-sm",
|
|
4689
|
-
onChange: f[7] || (f[7] = (
|
|
4690
|
-
onBlur: f[8] || (f[8] = (
|
|
4689
|
+
onChange: f[7] || (f[7] = (h) => a.value = h.target.value),
|
|
4690
|
+
onBlur: f[8] || (f[8] = (h) => a.value = ""),
|
|
4691
4691
|
displayValue: l
|
|
4692
4692
|
}),
|
|
4693
4693
|
p(u(Fe), { class: "absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none" }, {
|
|
@@ -4701,21 +4701,21 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
4701
4701
|
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"
|
|
4702
4702
|
}, {
|
|
4703
4703
|
default: v(() => [
|
|
4704
|
-
(s(!0), n(k, null, $(r.value, (
|
|
4705
|
-
key:
|
|
4706
|
-
value:
|
|
4704
|
+
(s(!0), n(k, null, $(r.value, (h) => (s(), _(u(qe), {
|
|
4705
|
+
key: h.id,
|
|
4706
|
+
value: h,
|
|
4707
4707
|
as: "template"
|
|
4708
4708
|
}, {
|
|
4709
|
-
default: v(({ active: w, selected:
|
|
4709
|
+
default: v(({ active: w, selected: z }) => [
|
|
4710
4710
|
e("li", {
|
|
4711
|
-
class:
|
|
4711
|
+
class: y(["relative cursor-default select-none py-2 pl-8 pr-4", w ? "bg-indigo-600 text-white" : "text-gray-900"])
|
|
4712
4712
|
}, [
|
|
4713
4713
|
e("span", {
|
|
4714
|
-
class:
|
|
4715
|
-
}, g(
|
|
4716
|
-
|
|
4714
|
+
class: y(["block truncate", z && "font-semibold"])
|
|
4715
|
+
}, g(h.name), 3),
|
|
4716
|
+
z ? (s(), n("span", {
|
|
4717
4717
|
key: 0,
|
|
4718
|
-
class:
|
|
4718
|
+
class: y(["absolute inset-y-0 left-0 flex items-center pl-1.5", w ? "text-white" : "text-indigo-600"])
|
|
4719
4719
|
}, [
|
|
4720
4720
|
p(u(ge), { class: "h-5 w-5" })
|
|
4721
4721
|
], 2)) : b("", !0)
|
|
@@ -4748,12 +4748,12 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
4748
4748
|
class: "hidden lg:block lg:h-6 lg:w-px lg:bg-gray-200",
|
|
4749
4749
|
"aria-hidden": "true"
|
|
4750
4750
|
}, null, -1)),
|
|
4751
|
-
p(u(
|
|
4751
|
+
p(u(he), {
|
|
4752
4752
|
as: "div",
|
|
4753
4753
|
class: "relative"
|
|
4754
4754
|
}, {
|
|
4755
4755
|
default: v(() => [
|
|
4756
|
-
p(u(
|
|
4756
|
+
p(u(ye), { class: "-m-1.5 flex items-center p-1.5" }, {
|
|
4757
4757
|
default: v(() => [
|
|
4758
4758
|
f[17] || (f[17] = e("span", { class: "sr-only" }, "Open user menu", -1)),
|
|
4759
4759
|
e("img", {
|
|
@@ -4781,14 +4781,14 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
4781
4781
|
default: v(() => [
|
|
4782
4782
|
p(u(ve), { 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" }, {
|
|
4783
4783
|
default: v(() => [
|
|
4784
|
-
(s(!0), n(k, null, $(d.topbar.profileMenu, (
|
|
4785
|
-
key:
|
|
4784
|
+
(s(!0), n(k, null, $(d.topbar.profileMenu, (h) => (s(), _(u(be), {
|
|
4785
|
+
key: h.name
|
|
4786
4786
|
}, {
|
|
4787
4787
|
default: v(({ active: w }) => [
|
|
4788
4788
|
e("a", {
|
|
4789
|
-
onClick: (
|
|
4790
|
-
class:
|
|
4791
|
-
}, g(
|
|
4789
|
+
onClick: (z) => d.$emit("topBarClick", h.id),
|
|
4790
|
+
class: y([w ? "bg-gray-50" : "", "block px-3 py-1 text-sm leading-6 text-gray-900"])
|
|
4791
|
+
}, g(h.name), 11, id)
|
|
4792
4792
|
]),
|
|
4793
4793
|
_: 2
|
|
4794
4794
|
}, 1024))), 128))
|
|
@@ -4819,9 +4819,9 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
4819
4819
|
loading: { type: Boolean, default: !0 }
|
|
4820
4820
|
},
|
|
4821
4821
|
setup(m) {
|
|
4822
|
-
const i = m, o = () => i.dynamicStats.length <= 5 ? `lg:grid-cols-${i.dynamicStats.length}` : `lg:grid-cols-${Math.floor(i.dynamicStats.length / 2)} xl:grid-cols-${i.dynamicStats.length}`, a =
|
|
4822
|
+
const i = m, o = () => i.dynamicStats.length <= 5 ? `lg:grid-cols-${i.dynamicStats.length}` : `lg:grid-cols-${Math.floor(i.dynamicStats.length / 2)} xl:grid-cols-${i.dynamicStats.length}`, a = A(0), r = A(o());
|
|
4823
4823
|
return st(() => a.value += 1), (l, t) => (s(), n("div", {
|
|
4824
|
-
class:
|
|
4824
|
+
class: y([r.value, "grid grid-cols-1 md:grid-cols-2 gap-4"]),
|
|
4825
4825
|
key: a.value
|
|
4826
4826
|
}, [
|
|
4827
4827
|
(s(!0), n(k, null, $(l.dynamicStats, (c, d) => (s(), _(Xe, {
|
|
@@ -4839,43 +4839,49 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
4839
4839
|
dropdownProps: {},
|
|
4840
4840
|
filterType: { default: "input" },
|
|
4841
4841
|
buttonLiteral: {},
|
|
4842
|
-
deleteLiteral: {},
|
|
4843
4842
|
loading: { type: Boolean, default: !0 }
|
|
4844
4843
|
},
|
|
4845
|
-
emits: ["smartFilterSelected", "smartInputChanged", "smartOptionSelected"],
|
|
4844
|
+
emits: ["smartFilterSelected", "smartInputChanged", "smartOptionSelected", "rightAddOnClicked"],
|
|
4846
4845
|
setup(m, { emit: i }) {
|
|
4847
|
-
const o = m, a = i, r =
|
|
4846
|
+
const o = m, a = i, r = A(o.filterType);
|
|
4848
4847
|
let l = Q(o.inputProps), t = Q(o.dropdownProps);
|
|
4849
|
-
R(() => o.filterType, (
|
|
4850
|
-
const c =
|
|
4851
|
-
r.value =
|
|
4848
|
+
R(() => o.filterType, (h) => r.value = h), R(() => o.inputProps, (h) => l = h), R(() => o.dropdownProps, (h) => t = h);
|
|
4849
|
+
const c = Y(() => r.value === "input" ? l : t), d = Y(() => r.value === "input" ? E : me), f = (h) => {
|
|
4850
|
+
r.value = h.type, a("smartFilterSelected", h);
|
|
4852
4851
|
};
|
|
4853
|
-
return (
|
|
4852
|
+
return (h, w) => (s(), n("div", pd, [
|
|
4854
4853
|
p(Ge, {
|
|
4855
|
-
items:
|
|
4856
|
-
loading:
|
|
4854
|
+
items: h.items,
|
|
4855
|
+
loading: h.loading,
|
|
4857
4856
|
onFilterSelected: f
|
|
4858
4857
|
}, null, 8, ["items", "loading"]),
|
|
4859
|
-
(s(), _(
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4858
|
+
(s(), _(Ae(d.value), ot({
|
|
4859
|
+
class: [{ "rounded-md": !h.inputProps.rightAddOn, "rounded-l-md": h.inputProps.rightAddOn, "rounded-r-none": h.inputProps.rightAddOn }, "w-full mt-2 lg:mt-0 lg:mx-2 lg:grow"]
|
|
4860
|
+
}, c.value, {
|
|
4861
|
+
loading: h.loading,
|
|
4862
|
+
onInputChanged: w[0] || (w[0] = (z) => a("smartInputChanged", z)),
|
|
4863
|
+
onOptionSelected: w[1] || (w[1] = (z) => a("smartOptionSelected", z))
|
|
4864
|
+
}), null, 16, ["class", "loading"])),
|
|
4865
|
+
h.inputProps.rightAddOn && r.value === "input" ? (s(), n("span", {
|
|
4866
|
+
key: 0,
|
|
4867
|
+
onClick: w[2] || (w[2] = (z) => h.$emit("rightAddOnClicked")),
|
|
4868
|
+
class: "inline-flex items-center px-3 rounded-r-md border border-l-0 border-gray-300 bg-gray-50 hover:bg-gray-200 text-gray-500 sm:text-sm cursor-pointer"
|
|
4869
|
+
}, g(h.inputProps.rightAddOn), 1)) : b("", !0),
|
|
4864
4870
|
p(J, {
|
|
4865
4871
|
class: "mt-2 lg:mt-0",
|
|
4866
|
-
loading:
|
|
4872
|
+
loading: h.loading
|
|
4867
4873
|
}, {
|
|
4868
4874
|
default: v(() => [
|
|
4869
|
-
|
|
4875
|
+
L(g(h.buttonLiteral), 1)
|
|
4870
4876
|
]),
|
|
4871
4877
|
_: 1
|
|
4872
4878
|
}, 8, ["loading"])
|
|
4873
4879
|
]));
|
|
4874
4880
|
}
|
|
4875
|
-
}),
|
|
4881
|
+
}), Oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4876
4882
|
__proto__: null,
|
|
4877
4883
|
uiAlert: js,
|
|
4878
|
-
uiBreadcrumbs:
|
|
4884
|
+
uiBreadcrumbs: Ys,
|
|
4879
4885
|
uiButton: J,
|
|
4880
4886
|
uiCard: Us,
|
|
4881
4887
|
uiChart: Zl,
|
|
@@ -4898,34 +4904,34 @@ const Ql = /* @__PURE__ */ se(Jl, [["render", Gl]]), Kl = /* @__PURE__ */ B({
|
|
|
4898
4904
|
uiNoResults: Sa,
|
|
4899
4905
|
uiNotification: uo,
|
|
4900
4906
|
uiPagination: gr,
|
|
4901
|
-
uiPriceCalendar:
|
|
4907
|
+
uiPriceCalendar: Ol,
|
|
4902
4908
|
uiRangeSlider: wi,
|
|
4903
|
-
uiRightSidebar:
|
|
4909
|
+
uiRightSidebar: Pa,
|
|
4904
4910
|
uiSectionTitle: ki,
|
|
4905
4911
|
uiSelect: ds,
|
|
4906
4912
|
uiSidebar: Cr,
|
|
4907
4913
|
uiSmartFilter: md,
|
|
4908
4914
|
uiStats: Xe,
|
|
4909
4915
|
uiStripedCard: Zr,
|
|
4910
|
-
uiTable:
|
|
4916
|
+
uiTable: yn,
|
|
4911
4917
|
uiTabs: $n,
|
|
4912
4918
|
uiTag: H,
|
|
4913
4919
|
uiTaskList: xo,
|
|
4914
|
-
uiTextArea:
|
|
4920
|
+
uiTextArea: ys,
|
|
4915
4921
|
uiTimeline: En,
|
|
4916
4922
|
uiToggle: xs,
|
|
4917
4923
|
uiTopbar: ma,
|
|
4918
4924
|
uiWrapper: cd
|
|
4919
4925
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4920
4926
|
function fd(m) {
|
|
4921
|
-
for (const i in
|
|
4922
|
-
m.component(i,
|
|
4927
|
+
for (const i in Oe)
|
|
4928
|
+
m.component(i, Oe[i]);
|
|
4923
4929
|
}
|
|
4924
4930
|
const _d = { install: fd };
|
|
4925
4931
|
export {
|
|
4926
4932
|
_d as default,
|
|
4927
4933
|
js as uiAlert,
|
|
4928
|
-
|
|
4934
|
+
Ys as uiBreadcrumbs,
|
|
4929
4935
|
J as uiButton,
|
|
4930
4936
|
Us as uiCard,
|
|
4931
4937
|
Zl as uiChart,
|
|
@@ -4948,20 +4954,20 @@ export {
|
|
|
4948
4954
|
Sa as uiNoResults,
|
|
4949
4955
|
uo as uiNotification,
|
|
4950
4956
|
gr as uiPagination,
|
|
4951
|
-
|
|
4957
|
+
Ol as uiPriceCalendar,
|
|
4952
4958
|
wi as uiRangeSlider,
|
|
4953
|
-
|
|
4959
|
+
Pa as uiRightSidebar,
|
|
4954
4960
|
ki as uiSectionTitle,
|
|
4955
4961
|
ds as uiSelect,
|
|
4956
4962
|
Cr as uiSidebar,
|
|
4957
4963
|
md as uiSmartFilter,
|
|
4958
4964
|
Xe as uiStats,
|
|
4959
4965
|
Zr as uiStripedCard,
|
|
4960
|
-
|
|
4966
|
+
yn as uiTable,
|
|
4961
4967
|
$n as uiTabs,
|
|
4962
4968
|
H as uiTag,
|
|
4963
4969
|
xo as uiTaskList,
|
|
4964
|
-
|
|
4970
|
+
ys as uiTextArea,
|
|
4965
4971
|
En as uiTimeline,
|
|
4966
4972
|
xs as uiToggle,
|
|
4967
4973
|
ma as uiTopbar,
|