@hotelinking/ui 16.49.12 → 16.49.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui.cjs +1 -1
- package/dist/ui.es.js +131 -128
- package/package.json +1 -1
package/dist/ui.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as A, createBlock as w, createElementBlock as s, openBlock as l, resolveDynamicComponent as Fe, normalizeClass as x, computed as j, createCommentVNode as b, renderSlot as G, createElementVNode as t, ref as V, watch as Z, unref as f, withCtx as y, createVNode as m, toDisplayString as u, createTextVNode as B, Transition as we, Fragment as k, renderList as S, withDirectives as D, vModelDynamic as yl, vShow as
|
|
2
|
-
import { Menu as Ze, MenuButton as We, MenuItems as Ge, MenuItem as Je, Combobox as vt, ComboboxLabel as xt, ComboboxInput as pt, ComboboxButton as wt, ComboboxOptions as kt, ComboboxOption as $t, SwitchGroup as xl, Switch as pl, SwitchLabel as wl, TransitionRoot as Ke, Dialog as Qe, TransitionChild as ce, DialogPanel as Xe, DialogTitle as Ct, Disclosure as
|
|
1
|
+
import { defineComponent as A, createBlock as w, createElementBlock as s, openBlock as l, resolveDynamicComponent as Fe, normalizeClass as x, computed as j, createCommentVNode as b, renderSlot as G, createElementVNode as t, ref as V, watch as Z, unref as f, withCtx as y, createVNode as m, toDisplayString as u, createTextVNode as B, Transition as we, Fragment as k, renderList as S, withDirectives as D, vModelDynamic as yl, vShow as O, withModifiers as ne, vModelText as xe, createStaticVNode as ee, resolveComponent as it, vModelCheckbox as yt, onMounted as Oe, mergeProps as Le, reactive as ke, normalizeStyle as qe, nextTick as be, onUnmounted as bl, TransitionGroup as vl, isRef as bt } from "vue";
|
|
2
|
+
import { Menu as Ze, MenuButton as We, MenuItems as Ge, MenuItem as Je, Combobox as vt, ComboboxLabel as xt, ComboboxInput as pt, ComboboxButton as wt, ComboboxOptions as kt, ComboboxOption as $t, SwitchGroup as xl, Switch as pl, SwitchLabel as wl, TransitionRoot as Ke, Dialog as Qe, TransitionChild as ce, DialogPanel as Xe, DialogTitle as Ct, Disclosure as _e, DisclosureButton as se, DisclosurePanel as Ie, Popover as kl, PopoverButton as $l, PopoverPanel as Cl, Listbox as Sl, ListboxLabel as Bl, ListboxButton as Ml, ListboxOptions as zl, ListboxOption as jl } from "@headlessui/vue";
|
|
3
3
|
import Y from "dayjs";
|
|
4
4
|
import Al from "@vueform/slider";
|
|
5
5
|
const L = /* @__PURE__ */ A({
|
|
@@ -97,7 +97,7 @@ const L = /* @__PURE__ */ A({
|
|
|
97
97
|
}), Ll = {
|
|
98
98
|
key: 0,
|
|
99
99
|
class: "relative flex items-start"
|
|
100
|
-
}, Pl = { class: "flex items-center h-5" }, Fl = ["checked", "value", "disabled"],
|
|
100
|
+
}, Pl = { class: "flex items-center h-5" }, Fl = ["checked", "value", "disabled"], Ol = { class: "ml-3 text-sm" }, _l = { class: "text-black" }, Il = {
|
|
101
101
|
key: 1,
|
|
102
102
|
class: "flex items-center animate-pulse"
|
|
103
103
|
}, ue = /* @__PURE__ */ A({
|
|
@@ -130,8 +130,8 @@ const L = /* @__PURE__ */ A({
|
|
|
130
130
|
onChange: d[0] || (d[0] = (c) => r())
|
|
131
131
|
}, null, 40, Fl)
|
|
132
132
|
]),
|
|
133
|
-
t("div",
|
|
134
|
-
t("span",
|
|
133
|
+
t("div", Ol, [
|
|
134
|
+
t("span", _l, [
|
|
135
135
|
G(a.$slots, "default")
|
|
136
136
|
])
|
|
137
137
|
])
|
|
@@ -915,21 +915,21 @@ const ts = {
|
|
|
915
915
|
color: "green",
|
|
916
916
|
loading: e.loading
|
|
917
917
|
}, null, 8, ["icon", "loading"]), [
|
|
918
|
-
[
|
|
918
|
+
[O, e.color === "green"]
|
|
919
919
|
]),
|
|
920
920
|
D(m(L, {
|
|
921
921
|
icon: f(te),
|
|
922
922
|
color: "yellow",
|
|
923
923
|
loading: e.loading
|
|
924
924
|
}, null, 8, ["icon", "loading"]), [
|
|
925
|
-
[
|
|
925
|
+
[O, e.color === "yellow"]
|
|
926
926
|
]),
|
|
927
927
|
D(m(L, {
|
|
928
928
|
icon: f(ie),
|
|
929
929
|
color: "red",
|
|
930
930
|
loading: e.loading
|
|
931
931
|
}, null, 8, ["icon", "loading"]), [
|
|
932
|
-
[
|
|
932
|
+
[O, e.color === "red"]
|
|
933
933
|
])
|
|
934
934
|
])
|
|
935
935
|
], 2),
|
|
@@ -941,7 +941,7 @@ const ts = {
|
|
|
941
941
|
"text-green-600": e.color === "green"
|
|
942
942
|
}, "mt-2 text-xs flex flex-row items-center"])
|
|
943
943
|
}, u(e.error), 3), [
|
|
944
|
-
[
|
|
944
|
+
[O, e.error]
|
|
945
945
|
])
|
|
946
946
|
]));
|
|
947
947
|
}
|
|
@@ -1036,7 +1036,7 @@ const ts = {
|
|
|
1036
1036
|
]),
|
|
1037
1037
|
t("p", $s, u(e.fileTypesAndSizes), 1),
|
|
1038
1038
|
D(t("p", { class: "font-bold text-xs uppercase block p-2 bg-lime-50 rounded" }, u(f(i)), 513), [
|
|
1039
|
-
[
|
|
1039
|
+
[O, f(i) !== null]
|
|
1040
1040
|
])
|
|
1041
1041
|
])
|
|
1042
1042
|
], 34),
|
|
@@ -1049,7 +1049,7 @@ const ts = {
|
|
|
1049
1049
|
}, null, 8, ["icon", "loading"]),
|
|
1050
1050
|
B(" " + u(e.error), 1)
|
|
1051
1051
|
], 512), [
|
|
1052
|
-
[
|
|
1052
|
+
[O, e.error]
|
|
1053
1053
|
])
|
|
1054
1054
|
]));
|
|
1055
1055
|
}
|
|
@@ -1189,7 +1189,7 @@ const ts = {
|
|
|
1189
1189
|
"text-green-600": e.color === "green"
|
|
1190
1190
|
}, "mt-2 text-xs flex flex-row items-center"])
|
|
1191
1191
|
}, u(e.error), 3), [
|
|
1192
|
-
[
|
|
1192
|
+
[O, e.error]
|
|
1193
1193
|
])
|
|
1194
1194
|
]),
|
|
1195
1195
|
_: 1
|
|
@@ -1354,7 +1354,7 @@ const Ds = { class: "flex justify-between" }, Ls = {
|
|
|
1354
1354
|
"text-green-600": e.color === "green"
|
|
1355
1355
|
}, "mt-2 text-xs flex flex-row items-center"])
|
|
1356
1356
|
}, u(e.error), 3), [
|
|
1357
|
-
[
|
|
1357
|
+
[O, e.error]
|
|
1358
1358
|
])
|
|
1359
1359
|
]),
|
|
1360
1360
|
_: 1
|
|
@@ -1401,7 +1401,7 @@ const Ds = { class: "flex justify-between" }, Ls = {
|
|
|
1401
1401
|
G(r.$slots, "default")
|
|
1402
1402
|
], 2));
|
|
1403
1403
|
}
|
|
1404
|
-
}), Fs = { key: 0 },
|
|
1404
|
+
}), Fs = { key: 0 }, Os = { class: "flex justify-between" }, _s = {
|
|
1405
1405
|
key: 0,
|
|
1406
1406
|
class: "block text-sm font-medium"
|
|
1407
1407
|
}, Is = {
|
|
@@ -1435,8 +1435,8 @@ const Ds = { class: "flex justify-between" }, Ls = {
|
|
|
1435
1435
|
t("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),
|
|
1436
1436
|
t("div", { class: "h-24 bg-gray-200 rounded-lg flex inline-flex items-center relative inline-block text-left w-full" }, null, -1)
|
|
1437
1437
|
])])) : (l(), s("div", Fs, [
|
|
1438
|
-
t("div",
|
|
1439
|
-
e.label ? (l(), s("label",
|
|
1438
|
+
t("div", Os, [
|
|
1439
|
+
e.label ? (l(), s("label", _s, u(e.label), 1)) : b("", !0),
|
|
1440
1440
|
e.requiredText ? (l(), s("span", Is, u(e.requiredText), 1)) : b("", !0)
|
|
1441
1441
|
]),
|
|
1442
1442
|
t("div", {
|
|
@@ -1480,7 +1480,7 @@ const Ds = { class: "flex justify-between" }, Ls = {
|
|
|
1480
1480
|
}, null, 8, ["icon"]),
|
|
1481
1481
|
B(" " + u(e.error), 1)
|
|
1482
1482
|
], 2), [
|
|
1483
|
-
[
|
|
1483
|
+
[O, e.error]
|
|
1484
1484
|
])
|
|
1485
1485
|
]));
|
|
1486
1486
|
}
|
|
@@ -1829,10 +1829,10 @@ const Ds = { class: "flex justify-between" }, Ls = {
|
|
|
1829
1829
|
}, Ln = { class: "mb-4 relative" }, Pn = {
|
|
1830
1830
|
key: 0,
|
|
1831
1831
|
class: "w-full h-36 bg-gray-200 rounded-lg animate-pulse flex items-center justify-center"
|
|
1832
|
-
}, Fn = ["src", "alt"],
|
|
1832
|
+
}, Fn = ["src", "alt"], On = {
|
|
1833
1833
|
key: 1,
|
|
1834
1834
|
class: "absolute bottom-2 right-2 p-1.5 bg-white rounded shadow-sm"
|
|
1835
|
-
},
|
|
1835
|
+
}, _n = {
|
|
1836
1836
|
key: 0,
|
|
1837
1837
|
class: "text-sm text-gray-600 mb-4 line-clamp-3"
|
|
1838
1838
|
}, In = { class: "flex flex-col pt-4 border-t border-gray-200 mt-auto" }, Vn = {
|
|
@@ -1964,11 +1964,11 @@ const Ds = { class: "flex justify-between" }, Ls = {
|
|
|
1964
1964
|
onLoad: r[1] || (r[1] = (a) => o.value = !1),
|
|
1965
1965
|
onError: r[2] || (r[2] = (a) => o.value = !1)
|
|
1966
1966
|
}, null, 40, Fn), [
|
|
1967
|
-
[
|
|
1967
|
+
[O, !o.value]
|
|
1968
1968
|
]),
|
|
1969
|
-
e.showImageOverlay && !o.value ? (l(), s("div",
|
|
1969
|
+
e.showImageOverlay && !o.value ? (l(), s("div", On)) : b("", !0)
|
|
1970
1970
|
]),
|
|
1971
|
-
e.bodyText ? (l(), s("p",
|
|
1971
|
+
e.bodyText ? (l(), s("p", _n, u(e.bodyText), 1)) : b("", !0),
|
|
1972
1972
|
t("div", In, [
|
|
1973
1973
|
e.updatedDate ? (l(), s("span", Vn, " Updated " + u(e.updatedDate), 1)) : b("", !0),
|
|
1974
1974
|
t("div", Nn, [
|
|
@@ -2136,25 +2136,25 @@ const Ds = { class: "flex justify-between" }, Ls = {
|
|
|
2136
2136
|
class: "h-6 w-6 text-red-600",
|
|
2137
2137
|
"aria-hidden": "true"
|
|
2138
2138
|
}, null, 512), [
|
|
2139
|
-
[
|
|
2139
|
+
[O, e.type === "danger"]
|
|
2140
2140
|
]),
|
|
2141
2141
|
D(m(f(et), {
|
|
2142
2142
|
class: "h-6 w-6 text-green-600",
|
|
2143
2143
|
"aria-hidden": "true"
|
|
2144
2144
|
}, null, 512), [
|
|
2145
|
-
[
|
|
2145
|
+
[O, e.type === "success"]
|
|
2146
2146
|
]),
|
|
2147
2147
|
D(m(f(te), {
|
|
2148
2148
|
class: "h-6 w-6 text-yellow-600",
|
|
2149
2149
|
"aria-hidden": "true"
|
|
2150
2150
|
}, null, 512), [
|
|
2151
|
-
[
|
|
2151
|
+
[O, e.type === "warning"]
|
|
2152
2152
|
]),
|
|
2153
2153
|
D(m(f(Kl), {
|
|
2154
2154
|
class: "h-6 w-6 text-black",
|
|
2155
2155
|
"aria-hidden": "true"
|
|
2156
2156
|
}, null, 512), [
|
|
2157
|
-
[
|
|
2157
|
+
[O, e.type === "default"]
|
|
2158
2158
|
])
|
|
2159
2159
|
], 2),
|
|
2160
2160
|
t("div", Qn, [
|
|
@@ -2232,25 +2232,25 @@ const Ds = { class: "flex justify-between" }, Ls = {
|
|
|
2232
2232
|
"aria-hidden": "true",
|
|
2233
2233
|
class: "h-6 w-6 text-green-600"
|
|
2234
2234
|
}, null, 512), [
|
|
2235
|
-
[
|
|
2235
|
+
[O, e.type === "success"]
|
|
2236
2236
|
]),
|
|
2237
2237
|
D(m(f(Ve), {
|
|
2238
2238
|
"aria-hidden": "true",
|
|
2239
2239
|
class: "h-6 w-6 text-red-600"
|
|
2240
2240
|
}, null, 512), [
|
|
2241
|
-
[
|
|
2241
|
+
[O, e.type === "danger"]
|
|
2242
2242
|
]),
|
|
2243
2243
|
D(m(f(te), {
|
|
2244
2244
|
"aria-hidden": "true",
|
|
2245
2245
|
class: "h-6 w-6 text-yellow-400"
|
|
2246
2246
|
}, null, 512), [
|
|
2247
|
-
[
|
|
2247
|
+
[O, e.type === "warning"]
|
|
2248
2248
|
]),
|
|
2249
2249
|
D(m(f(At), {
|
|
2250
2250
|
"aria-hidden": "true",
|
|
2251
2251
|
class: "h-6 w-6 text-black"
|
|
2252
2252
|
}, null, 512), [
|
|
2253
|
-
[
|
|
2253
|
+
[O, e.type === "info"]
|
|
2254
2254
|
])
|
|
2255
2255
|
]),
|
|
2256
2256
|
t("div", ia, [
|
|
@@ -2444,8 +2444,8 @@ const Ce = (e, g) => {
|
|
|
2444
2444
|
g === "next" && (e === "day" && (i = Y(this.selectedDate).add(1, "day")), e === "month" && (i = Y(this.selectedDate).add(1, "month")), e === "year" && (i = Y(this.selectedDate).add(1, "year"))), this.$emit("dateSelected", i);
|
|
2445
2445
|
}
|
|
2446
2446
|
}
|
|
2447
|
-
}, La = { class: "dateSelector flex items-center flex-row" }, Pa = { class: "pagination flex items-center my-1 md:my-0" }, Fa = { class: "date mx-4 font-bold text-center text-black select-none uppercase" },
|
|
2448
|
-
function
|
|
2447
|
+
}, La = { class: "dateSelector flex items-center flex-row" }, Pa = { class: "pagination flex items-center my-1 md:my-0" }, Fa = { class: "date mx-4 font-bold text-center text-black select-none uppercase" }, Oa = { class: "pagination flex items-center my-1 sm:my-0" };
|
|
2448
|
+
function _a(e, g, i, o, n, r) {
|
|
2449
2449
|
const a = it("ChevronLeftIcon"), d = it("ChevronRightIcon");
|
|
2450
2450
|
return l(), s("div", La, [
|
|
2451
2451
|
t("div", Pa, [
|
|
@@ -2481,7 +2481,7 @@ function Oa(e, g, i, o, n, r) {
|
|
|
2481
2481
|
], 2)
|
|
2482
2482
|
]),
|
|
2483
2483
|
t("div", Fa, u(r.formatedDate), 1),
|
|
2484
|
-
t("div",
|
|
2484
|
+
t("div", Oa, [
|
|
2485
2485
|
t("div", {
|
|
2486
2486
|
class: "previousDay flex items-center cursor-pointer p-1 rounded mx-0.5 shadow-sm bg-lime-400 text-black hover:text-white hover:bg-black",
|
|
2487
2487
|
onClick: g[3] || (g[3] = (c) => r.selectDate("day", "next"))
|
|
@@ -2506,7 +2506,7 @@ function Oa(e, g, i, o, n, r) {
|
|
|
2506
2506
|
])
|
|
2507
2507
|
]);
|
|
2508
2508
|
}
|
|
2509
|
-
const Ia = /* @__PURE__ */ Ce(Da, [["render",
|
|
2509
|
+
const Ia = /* @__PURE__ */ Ce(Da, [["render", _a]]), Va = {
|
|
2510
2510
|
name: "SkeletonTable"
|
|
2511
2511
|
}, Na = { class: "px-4 sm:px-6 lg:px-8 animate-pulse" }, Ra = { class: "flow-root" }, qa = { class: "-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8" }, Ha = { class: "inline-block min-w-full py-2 align-middle px-1" }, Ya = { class: "overflow-hidden shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg" }, Ea = { class: "min-w-full divide-y divide-gray-300" }, Ua = { class: "divide-y divide-gray-200 bg-white" };
|
|
2512
2512
|
function Za(e, g, i, o, n, r) {
|
|
@@ -2740,7 +2740,7 @@ const Me = /* @__PURE__ */ Ce(no, [["render", io]]), ro = {
|
|
|
2740
2740
|
"aria-hidden": "true"
|
|
2741
2741
|
})
|
|
2742
2742
|
], 512), [
|
|
2743
|
-
[
|
|
2743
|
+
[O, e.current !== 1]
|
|
2744
2744
|
]),
|
|
2745
2745
|
(l(!0), s(k, null, S(d.value, (p) => (l(), s("button", {
|
|
2746
2746
|
onClick: (C) => i("changePage", p),
|
|
@@ -2763,7 +2763,7 @@ const Me = /* @__PURE__ */ Ce(no, [["render", io]]), ro = {
|
|
|
2763
2763
|
"aria-hidden": "true"
|
|
2764
2764
|
})
|
|
2765
2765
|
], 512), [
|
|
2766
|
-
[
|
|
2766
|
+
[O, e.current !== e.total]
|
|
2767
2767
|
])
|
|
2768
2768
|
])
|
|
2769
2769
|
])
|
|
@@ -2787,10 +2787,10 @@ const Me = /* @__PURE__ */ Ce(no, [["render", io]]), ro = {
|
|
|
2787
2787
|
}, Lo = { key: 1 }, Po = {
|
|
2788
2788
|
colspan: "6",
|
|
2789
2789
|
class: "pl-4"
|
|
2790
|
-
}, Fo = { key: 2 },
|
|
2790
|
+
}, Fo = { key: 2 }, Oo = {
|
|
2791
2791
|
colspan: "6",
|
|
2792
2792
|
class: "pl-4"
|
|
2793
|
-
},
|
|
2793
|
+
}, _o = {
|
|
2794
2794
|
colspan: "20",
|
|
2795
2795
|
scope: "colgroup",
|
|
2796
2796
|
class: "bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold relative"
|
|
@@ -2946,7 +2946,7 @@ const Me = /* @__PURE__ */ Ce(no, [["render", io]]), ro = {
|
|
|
2946
2946
|
]))), 128))
|
|
2947
2947
|
])) : b("", !0),
|
|
2948
2948
|
e.type === "prices" ? (l(), s("tr", Fo, [
|
|
2949
|
-
t("td",
|
|
2949
|
+
t("td", Oo, u(e.literals.pricesUpgrade), 1),
|
|
2950
2950
|
(l(!0), s(k, null, S(e.category.upgradePrices, (I, W) => (l(), s("td", {
|
|
2951
2951
|
key: W,
|
|
2952
2952
|
class: "p-0"
|
|
@@ -2961,7 +2961,7 @@ const Me = /* @__PURE__ */ Ce(no, [["render", io]]), ro = {
|
|
|
2961
2961
|
]))), 128))
|
|
2962
2962
|
])) : b("", !0),
|
|
2963
2963
|
t("tr", null, [
|
|
2964
|
-
t("th",
|
|
2964
|
+
t("th", _o, [
|
|
2965
2965
|
a.value?.length > 0 && e.actions?.length > 0 ? (l(), s("div", Io, [
|
|
2966
2966
|
(l(!0), s(k, null, S(e.actions, (I, W) => (l(), s("button", {
|
|
2967
2967
|
onClick: (le) => fe({ action: I.id, items: a.value }),
|
|
@@ -3078,7 +3078,7 @@ const Me = /* @__PURE__ */ Ce(no, [["render", io]]), ro = {
|
|
|
3078
3078
|
emits: ["updated", "mounted", "dataPointSelection"],
|
|
3079
3079
|
setup(e) {
|
|
3080
3080
|
const g = V(null);
|
|
3081
|
-
return
|
|
3081
|
+
return Oe(async () => {
|
|
3082
3082
|
if (typeof window < "u")
|
|
3083
3083
|
try {
|
|
3084
3084
|
const { default: i } = await import("vue3-apexcharts");
|
|
@@ -3288,7 +3288,7 @@ const Me = /* @__PURE__ */ Ce(no, [["render", io]]), ro = {
|
|
|
3288
3288
|
onDataPointSelection: E
|
|
3289
3289
|
}, null, 8, ["type", "series", "options"])
|
|
3290
3290
|
], 512), [
|
|
3291
|
-
[
|
|
3291
|
+
[O, !e.empty]
|
|
3292
3292
|
]),
|
|
3293
3293
|
D(t("div", gi, [
|
|
3294
3294
|
m(L, {
|
|
@@ -3299,10 +3299,10 @@ const Me = /* @__PURE__ */ Ce(no, [["render", io]]), ro = {
|
|
|
3299
3299
|
}, null, 8, ["icon"]),
|
|
3300
3300
|
R[3] || (R[3] = t("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data for this time frame", -1))
|
|
3301
3301
|
], 512), [
|
|
3302
|
-
[
|
|
3302
|
+
[O, e.empty]
|
|
3303
3303
|
])
|
|
3304
3304
|
], 4), [
|
|
3305
|
-
[
|
|
3305
|
+
[O, !e.loading]
|
|
3306
3306
|
]),
|
|
3307
3307
|
D(t("div", mi, [...R[4] || (R[4] = [
|
|
3308
3308
|
t("div", {
|
|
@@ -3331,7 +3331,7 @@ const Me = /* @__PURE__ */ Ce(no, [["render", io]]), ro = {
|
|
|
3331
3331
|
])
|
|
3332
3332
|
], -1)
|
|
3333
3333
|
])], 512), [
|
|
3334
|
-
[
|
|
3334
|
+
[O, e.loading]
|
|
3335
3335
|
])
|
|
3336
3336
|
], 64));
|
|
3337
3337
|
}
|
|
@@ -3368,10 +3368,10 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
3368
3368
|
})
|
|
3369
3369
|
], -1)),
|
|
3370
3370
|
D(t("h2", { class: "text-xs font-bold text-center uppercase mb-2" }, u(e.title), 513), [
|
|
3371
|
-
[
|
|
3371
|
+
[O, e.title]
|
|
3372
3372
|
]),
|
|
3373
3373
|
D(t("p", { class: "text-xs text-center uppercase md:w-1/4" }, u(e.message), 513), [
|
|
3374
|
-
[
|
|
3374
|
+
[O, e.message]
|
|
3375
3375
|
])
|
|
3376
3376
|
], 2));
|
|
3377
3377
|
}
|
|
@@ -3415,7 +3415,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
3415
3415
|
])])), 64)) : (l(!0), s(k, { key: 0 }, S(n.value, (d) => (l(), s(k, {
|
|
3416
3416
|
key: d.name
|
|
3417
3417
|
}, [
|
|
3418
|
-
d.children ? (l(), w(f(
|
|
3418
|
+
d.children ? (l(), w(f(_e), {
|
|
3419
3419
|
key: 1,
|
|
3420
3420
|
as: "div",
|
|
3421
3421
|
class: "space-y-1"
|
|
@@ -3488,7 +3488,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
3488
3488
|
])
|
|
3489
3489
|
]));
|
|
3490
3490
|
}
|
|
3491
|
-
}), Li = { class: "flex flex-row grow border-r border-gray-200 bg-white pr-6 h-screen" }, Pi = { class: "bg-black w-16 mr-6 flex-shrink-0" }, Fi = ["onClick"],
|
|
3491
|
+
}), Li = { class: "flex flex-row grow border-r border-gray-200 bg-white pr-6 h-screen" }, Pi = { class: "bg-black w-16 mr-6 flex-shrink-0" }, Fi = ["onClick"], Oi = ["src", "alt"], _i = {
|
|
3492
3492
|
key: 0,
|
|
3493
3493
|
class: "flex flex-col grow h-full"
|
|
3494
3494
|
}, Ii = ["src"], Vi = { class: "flex flex-1 flex-col overflow-hidden mt-8" }, Ni = { class: "flex-1 overflow-y-auto pr-6" }, Ri = {
|
|
@@ -3529,7 +3529,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
3529
3529
|
t("img", {
|
|
3530
3530
|
src: a.icon,
|
|
3531
3531
|
alt: a.name
|
|
3532
|
-
}, null, 8,
|
|
3532
|
+
}, null, 8, Oi)
|
|
3533
3533
|
], 10, Fi))), 128))
|
|
3534
3534
|
])
|
|
3535
3535
|
]),
|
|
@@ -3540,7 +3540,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
3540
3540
|
t("div", { class: "h-3 animate-pulse bg-gray-200 rounded-full w-1/2 dark:bg-gray-300" }, null, -1)
|
|
3541
3541
|
])])), 64))
|
|
3542
3542
|
])
|
|
3543
|
-
])) : (l(), s("div",
|
|
3543
|
+
])) : (l(), s("div", _i, [
|
|
3544
3544
|
t("div", {
|
|
3545
3545
|
class: "flex h-16 shrink-0 items-center",
|
|
3546
3546
|
onClick: r[0] || (r[0] = (a) => n.$emit("sideBarClick", "logo"))
|
|
@@ -3559,7 +3559,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
3559
3559
|
(l(!0), s(k, null, S(o.value, (a) => (l(), s("li", {
|
|
3560
3560
|
key: a.name
|
|
3561
3561
|
}, [
|
|
3562
|
-
a.children ? (l(), w(f(
|
|
3562
|
+
a.children ? (l(), w(f(_e), {
|
|
3563
3563
|
key: 1,
|
|
3564
3564
|
as: "div"
|
|
3565
3565
|
}, {
|
|
@@ -3610,7 +3610,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
3610
3610
|
_: 2
|
|
3611
3611
|
}, 1024)
|
|
3612
3612
|
], 512), [
|
|
3613
|
-
[
|
|
3613
|
+
[O, a.children.some((d) => d.current) || a.current]
|
|
3614
3614
|
])
|
|
3615
3615
|
]),
|
|
3616
3616
|
_: 2
|
|
@@ -3667,7 +3667,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
3667
3667
|
]))
|
|
3668
3668
|
]));
|
|
3669
3669
|
}
|
|
3670
|
-
}), Ji = { key: 0 }, Ki =
|
|
3670
|
+
}), Ji = { key: 0 }, Ki = ["title"], Qi = { class: "ml-16 flex items-baseline pb-5" }, Xi = { class: "text-2xl font-semibold" }, er = {
|
|
3671
3671
|
key: 0,
|
|
3672
3672
|
class: "text-black ml-2 flex items-baseline text-sm font-semibold"
|
|
3673
3673
|
}, tr = { class: "absolute bottom-0 inset-x-0 bg-gray-50 px-4 py-4 sm:px-6" }, lr = { class: "text-sm" }, sr = { key: 1 }, nr = { 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" }, Ft = /* @__PURE__ */ A({
|
|
@@ -3716,7 +3716,10 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
3716
3716
|
loading: e.loading
|
|
3717
3717
|
}, null, 8, ["icon", "loading"])
|
|
3718
3718
|
], 2),
|
|
3719
|
-
t("p",
|
|
3719
|
+
t("p", {
|
|
3720
|
+
class: "ml-16 text-sm font-medium truncate",
|
|
3721
|
+
title: e.item.name
|
|
3722
|
+
}, u(e.item.name), 9, Ki)
|
|
3720
3723
|
]),
|
|
3721
3724
|
t("dd", Qi, [
|
|
3722
3725
|
t("p", Xi, u(e.item.stat), 1),
|
|
@@ -3752,7 +3755,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
3752
3755
|
}, u(e.item.actionText), 1)
|
|
3753
3756
|
])
|
|
3754
3757
|
], 512), [
|
|
3755
|
-
[
|
|
3758
|
+
[O, e.item.showFooter]
|
|
3756
3759
|
])
|
|
3757
3760
|
])
|
|
3758
3761
|
], 2)
|
|
@@ -4178,10 +4181,10 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4178
4181
|
}), Pr = { key: 0 }, Fr = {
|
|
4179
4182
|
key: 1,
|
|
4180
4183
|
class: "actionsAndFilters mb-6 flex flex-col lg:flex-row lg:items-start w-full gap-4"
|
|
4181
|
-
},
|
|
4184
|
+
}, Or = {
|
|
4182
4185
|
key: 0,
|
|
4183
4186
|
class: "w-full lg:flex-1 lg:min-w-0 lg:max-w-full"
|
|
4184
|
-
},
|
|
4187
|
+
}, _r = {
|
|
4185
4188
|
key: 1,
|
|
4186
4189
|
class: "w-full lg:w-auto lg:flex-shrink-0 flex flex-col sm:flex-row items-stretch sm:items-center gap-3 lg:gap-2"
|
|
4187
4190
|
}, Ir = {
|
|
@@ -4270,7 +4273,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4270
4273
|
name: h.name,
|
|
4271
4274
|
value: String(h.value),
|
|
4272
4275
|
active: !!(h.active || n.currentPageSize && h.value === n.currentPageSize)
|
|
4273
|
-
})) : []), Se = V(!1), Be = V(!1),
|
|
4276
|
+
})) : []), Se = V(!1), Be = V(!1), Ot = {
|
|
4274
4277
|
filters: "Filtros inteligentes",
|
|
4275
4278
|
contains: "contiene",
|
|
4276
4279
|
is: "es",
|
|
@@ -4278,7 +4281,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4278
4281
|
or: "o",
|
|
4279
4282
|
deleteAll: "Borrar todo",
|
|
4280
4283
|
filter: "Filtrar"
|
|
4281
|
-
},
|
|
4284
|
+
}, _t = (h) => {
|
|
4282
4285
|
h.action === "close" ? Se.value = !1 : (Se.value = !1, n.selectAllItemsModal && o("modalAction", { modal: n.selectAllItemsModal.modalName, action: h.action }));
|
|
4283
4286
|
}, nt = (h) => n.hiddenColumns && n.hiddenColumns.length > 0 ? !n.hiddenColumns.includes(h) : !0, Ne = (h) => r.value.includes(h), It = (h) => a.value === h, Vt = (h) => h.filter((T, M) => nt(M)), Nt = (h, T) => {
|
|
4284
4287
|
const M = [];
|
|
@@ -4378,9 +4381,9 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4378
4381
|
if (!c.value || !h) return;
|
|
4379
4382
|
const T = h.querySelector("thead"), M = h.querySelector("tbody");
|
|
4380
4383
|
if (!T || !M) return;
|
|
4381
|
-
const Q = T.offsetHeight,
|
|
4382
|
-
if (!
|
|
4383
|
-
const Re =
|
|
4384
|
+
const Q = T.offsetHeight, _ = M.querySelector("tr");
|
|
4385
|
+
if (!_) return;
|
|
4386
|
+
const Re = _.offsetHeight, X = Q + Re * 25;
|
|
4384
4387
|
C.value = X, p.value = !0;
|
|
4385
4388
|
});
|
|
4386
4389
|
}, ye = () => {
|
|
@@ -4404,7 +4407,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4404
4407
|
be(() => {
|
|
4405
4408
|
he(), ye();
|
|
4406
4409
|
});
|
|
4407
|
-
}),
|
|
4410
|
+
}), Oe(() => {
|
|
4408
4411
|
be(() => {
|
|
4409
4412
|
he(), ye();
|
|
4410
4413
|
const h = () => {
|
|
@@ -4421,7 +4424,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4421
4424
|
modalName: e.selectAllItemsModal.modalName,
|
|
4422
4425
|
open: Se.value,
|
|
4423
4426
|
actions: e.selectAllItemsModal.actions,
|
|
4424
|
-
onModalAction: T[0] || (T[0] = (M) =>
|
|
4427
|
+
onModalAction: T[0] || (T[0] = (M) => _t(M))
|
|
4425
4428
|
}, {
|
|
4426
4429
|
default: y(() => [
|
|
4427
4430
|
B(u(e.selectAllItemsModal.content), 1)
|
|
@@ -4453,10 +4456,10 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4453
4456
|
_: 1
|
|
4454
4457
|
}, 8, ["open"]),
|
|
4455
4458
|
F.value ? (l(), s("div", Fr, [
|
|
4456
|
-
q.value ? (l(), s("div",
|
|
4459
|
+
q.value ? (l(), s("div", Or, [
|
|
4457
4460
|
m(zr, {
|
|
4458
4461
|
"available-categories": cl.value,
|
|
4459
|
-
literals: n.filterLiterals ||
|
|
4462
|
+
literals: n.filterLiterals || Ot,
|
|
4460
4463
|
filters: n.filters,
|
|
4461
4464
|
onSmartFiltersSent: Xt,
|
|
4462
4465
|
onSmartFiltersCleared: el,
|
|
@@ -4464,7 +4467,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4464
4467
|
loading: n.loading
|
|
4465
4468
|
}, null, 8, ["available-categories", "literals", "filters", "loading"])
|
|
4466
4469
|
])) : b("", !0),
|
|
4467
|
-
H.value || $.value ? (l(), s("div",
|
|
4470
|
+
H.value || $.value ? (l(), s("div", _r, [
|
|
4468
4471
|
$.value ? (l(), s("div", Ir, [
|
|
4469
4472
|
(l(!0), s(k, null, S(n.tableActionButtons, (M) => (l(), w(U, {
|
|
4470
4473
|
key: M.id,
|
|
@@ -4506,7 +4509,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4506
4509
|
key: Q,
|
|
4507
4510
|
type: "button",
|
|
4508
4511
|
class: "inline-flex items-center rounded bg-lime-400 hover:bg-black px-2.5 py-1.5 text-xs font-medium text-white shadow-sm disabled:cursor-not-allowed disabled:opacity-30",
|
|
4509
|
-
onClick: (
|
|
4512
|
+
onClick: (_) => Zt(M)
|
|
4510
4513
|
}, u(M.name), 9, Yr))), 128))
|
|
4511
4514
|
])) : b("", !0),
|
|
4512
4515
|
t("div", {
|
|
@@ -4537,8 +4540,8 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4537
4540
|
key: Q,
|
|
4538
4541
|
class: "py-3.5 pr-3 text-left font-semibold relative",
|
|
4539
4542
|
scope: "col",
|
|
4540
|
-
onMouseover: (
|
|
4541
|
-
onMouseleave: T[3] || (T[3] = (
|
|
4543
|
+
onMouseover: (_) => Kt(M.name),
|
|
4544
|
+
onMouseleave: T[3] || (T[3] = (_) => Qt())
|
|
4542
4545
|
}, [
|
|
4543
4546
|
M.tooltip && It(M.name) ? (l(), w(pr, {
|
|
4544
4547
|
key: 0,
|
|
@@ -4547,7 +4550,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4547
4550
|
M.value ? (l(), s("button", {
|
|
4548
4551
|
key: 1,
|
|
4549
4552
|
class: "group flex items-center uppercase text-xs relative text-nowrap",
|
|
4550
|
-
onClick: (
|
|
4553
|
+
onClick: (_) => Gt(M.value)
|
|
4551
4554
|
}, [
|
|
4552
4555
|
t("span", null, u(M.name), 1),
|
|
4553
4556
|
t("span", {
|
|
@@ -4576,7 +4579,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4576
4579
|
Ne(M.id) ? (l(), s("div", Kr)) : b("", !0),
|
|
4577
4580
|
R.value ? D((l(), s("input", {
|
|
4578
4581
|
key: 1,
|
|
4579
|
-
"onUpdate:modelValue": T[4] || (T[4] = (
|
|
4582
|
+
"onUpdate:modelValue": T[4] || (T[4] = (_) => r.value = _),
|
|
4580
4583
|
value: M.id,
|
|
4581
4584
|
class: x(qt(M.disabled)),
|
|
4582
4585
|
type: "checkbox",
|
|
@@ -4585,47 +4588,47 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4585
4588
|
[yt, r.value]
|
|
4586
4589
|
]) : b("", !0)
|
|
4587
4590
|
], 2),
|
|
4588
|
-
(l(!0), s(k, null, S(Vt(M.row), (
|
|
4591
|
+
(l(!0), s(k, null, S(Vt(M.row), (_, Re) => (l(), s("td", {
|
|
4589
4592
|
key: Re,
|
|
4590
4593
|
class: x(Rt(M.id))
|
|
4591
4594
|
}, [
|
|
4592
|
-
typeof
|
|
4593
|
-
t("span", ed, u(
|
|
4594
|
-
t("span", td, u(
|
|
4595
|
-
])) : typeof
|
|
4595
|
+
typeof _ == "object" && _.type === "guest" ? (l(), s("div", Xr, [
|
|
4596
|
+
t("span", ed, u(_.content), 1),
|
|
4597
|
+
t("span", td, u(_.email), 1)
|
|
4598
|
+
])) : typeof _ == "object" && _.type === "action" ? (l(), s("button", {
|
|
4596
4599
|
key: 1,
|
|
4597
4600
|
type: "button",
|
|
4598
4601
|
class: "inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-lime-400 focus:ring-offset-2",
|
|
4599
|
-
onClick: (X) => de(
|
|
4602
|
+
onClick: (X) => de(_, M.id)
|
|
4600
4603
|
}, [
|
|
4601
|
-
|
|
4604
|
+
_.icon ? (l(), w(L, {
|
|
4602
4605
|
key: 0,
|
|
4603
4606
|
loading: e.loading,
|
|
4604
|
-
icon:
|
|
4607
|
+
icon: _.icon,
|
|
4605
4608
|
size: "small",
|
|
4606
4609
|
color: "gray"
|
|
4607
4610
|
}, null, 8, ["loading", "icon"])) : b("", !0),
|
|
4608
|
-
t("span", null, u(
|
|
4609
|
-
], 8, ld)) : typeof
|
|
4611
|
+
t("span", null, u(_.content), 1)
|
|
4612
|
+
], 8, ld)) : typeof _ == "object" && _.type === "link" ? (l(), s("span", Le({
|
|
4610
4613
|
key: 2,
|
|
4611
4614
|
ref_for: !0
|
|
4612
|
-
}, at(
|
|
4613
|
-
onClick: (X) => de(
|
|
4615
|
+
}, at(_), {
|
|
4616
|
+
onClick: (X) => de(_, M.id)
|
|
4614
4617
|
}), [
|
|
4615
|
-
B(u(ot(
|
|
4616
|
-
|
|
4618
|
+
B(u(ot(_)) + " ", 1),
|
|
4619
|
+
_.icon ? (l(), w(L, {
|
|
4617
4620
|
key: 0,
|
|
4618
4621
|
loading: e.loading,
|
|
4619
|
-
icon:
|
|
4622
|
+
icon: _.icon,
|
|
4620
4623
|
size: "small",
|
|
4621
4624
|
color: "gray",
|
|
4622
4625
|
class: "inline-block ml-1"
|
|
4623
4626
|
}, null, 8, ["loading", "icon"])) : b("", !0)
|
|
4624
|
-
], 16, sd)) : typeof
|
|
4625
|
-
t("span", null, u(
|
|
4627
|
+
], 16, sd)) : typeof _ == "object" && _.type === "apiKey" ? (l(), s("div", nd, [
|
|
4628
|
+
t("span", null, u(_.content), 1),
|
|
4626
4629
|
t("button", {
|
|
4627
4630
|
type: "button",
|
|
4628
|
-
onClick: (X) => de({ type: "action", action: "reveal", value:
|
|
4631
|
+
onClick: (X) => de({ type: "action", action: "reveal", value: _.value }, M.id),
|
|
4629
4632
|
class: "inline-flex items-center p-1 text-gray-500 hover:text-gray-700 focus:outline-none"
|
|
4630
4633
|
}, [
|
|
4631
4634
|
m(L, {
|
|
@@ -4637,7 +4640,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4637
4640
|
], 8, ad),
|
|
4638
4641
|
t("button", {
|
|
4639
4642
|
type: "button",
|
|
4640
|
-
onClick: (X) => de({ type: "action", action: "copy", value:
|
|
4643
|
+
onClick: (X) => de({ type: "action", action: "copy", value: _.value }, M.id),
|
|
4641
4644
|
class: "inline-flex items-center p-1 text-gray-500 hover:text-gray-700 focus:outline-none"
|
|
4642
4645
|
}, [
|
|
4643
4646
|
m(L, {
|
|
@@ -4647,8 +4650,8 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4647
4650
|
color: "gray"
|
|
4648
4651
|
}, null, 8, ["loading", "icon"])
|
|
4649
4652
|
], 8, od)
|
|
4650
|
-
])) : typeof
|
|
4651
|
-
(l(!0), s(k, null, S(
|
|
4653
|
+
])) : typeof _ == "object" && _.type === "actions" && Array.isArray(_.actions) ? (l(), s("div", id, [
|
|
4654
|
+
(l(!0), s(k, null, S(_.actions, (X, hl) => (l(), s("button", {
|
|
4652
4655
|
key: hl,
|
|
4653
4656
|
type: "button",
|
|
4654
4657
|
onClick: (kg) => de({ type: "action", action: X.action }, M.id),
|
|
@@ -4662,15 +4665,15 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4662
4665
|
}, null, 8, ["loading", "icon"]),
|
|
4663
4666
|
X.action === "viewCode" ? (l(), s("span", dd, "View Code")) : b("", !0)
|
|
4664
4667
|
], 10, rd))), 128))
|
|
4665
|
-
])) : (l(), w(Fe(Yt(
|
|
4668
|
+
])) : (l(), w(Fe(Yt(_)), Le({
|
|
4666
4669
|
key: 5,
|
|
4667
4670
|
ref_for: !0
|
|
4668
|
-
}, at(
|
|
4669
|
-
onClick: (X) => de(
|
|
4670
|
-
onTagEvent: (X) => Jt(
|
|
4671
|
+
}, at(_), {
|
|
4672
|
+
onClick: (X) => de(_),
|
|
4673
|
+
onTagEvent: (X) => Jt(_)
|
|
4671
4674
|
}), {
|
|
4672
4675
|
default: y(() => [
|
|
4673
|
-
B(u(ot(
|
|
4676
|
+
B(u(ot(_)), 1)
|
|
4674
4677
|
]),
|
|
4675
4678
|
_: 2
|
|
4676
4679
|
}, 1040, ["onClick", "onTagEvent"]))
|
|
@@ -4806,7 +4809,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4806
4809
|
}, Fd = {
|
|
4807
4810
|
key: 1,
|
|
4808
4811
|
class: "bg-white overflow-hidden shadow rounded-lg"
|
|
4809
|
-
},
|
|
4812
|
+
}, Od = { class: "px-4 py-5 sm:p-6 animate-pulse" }, _d = { class: "flow-root" }, Id = {
|
|
4810
4813
|
class: "-mb-8",
|
|
4811
4814
|
role: "list"
|
|
4812
4815
|
}, Vd = { class: "relative pb-8" }, Nd = {
|
|
@@ -4831,8 +4834,8 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4831
4834
|
t("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4" })
|
|
4832
4835
|
])
|
|
4833
4836
|
], -1)),
|
|
4834
|
-
t("div",
|
|
4835
|
-
t("div",
|
|
4837
|
+
t("div", Od, [
|
|
4838
|
+
t("div", _d, [
|
|
4836
4839
|
t("ul", Id, [
|
|
4837
4840
|
(l(), s(k, null, S(10, (a, d) => t("li", { key: d }, [
|
|
4838
4841
|
t("div", Vd, [
|
|
@@ -4942,7 +4945,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4942
4945
|
emits: ["topBarClick"],
|
|
4943
4946
|
setup(e, { emit: g }) {
|
|
4944
4947
|
const i = e, o = j(() => i.navigation ? Array.isArray(i.navigation) ? i.navigation : [i.navigation] : []);
|
|
4945
|
-
return (n, r) => (l(), w(f(
|
|
4948
|
+
return (n, r) => (l(), w(f(_e), {
|
|
4946
4949
|
as: "nav",
|
|
4947
4950
|
class: "bg-white shadow z-10"
|
|
4948
4951
|
}, {
|
|
@@ -4991,7 +4994,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4991
4994
|
D(t("div", Gd, [...r[2] || (r[2] = [
|
|
4992
4995
|
t("span", { class: "animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75" }, null, -1)
|
|
4993
4996
|
])], 512), [
|
|
4994
|
-
[
|
|
4997
|
+
[O, e.alerted]
|
|
4995
4998
|
]),
|
|
4996
4999
|
t("img", {
|
|
4997
5000
|
class: "h-10 w-10 rounded-full",
|
|
@@ -5000,7 +5003,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
5000
5003
|
]),
|
|
5001
5004
|
_: 1
|
|
5002
5005
|
}, 512), [
|
|
5003
|
-
[
|
|
5006
|
+
[O, e.accountLogo]
|
|
5004
5007
|
])
|
|
5005
5008
|
]),
|
|
5006
5009
|
m(we, {
|
|
@@ -5208,7 +5211,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
5208
5211
|
onDataPointSelection: c
|
|
5209
5212
|
}, null, 8, ["type", "series", "height", "options"])
|
|
5210
5213
|
], 512), [
|
|
5211
|
-
[
|
|
5214
|
+
[O, !e.empty]
|
|
5212
5215
|
]),
|
|
5213
5216
|
D(t("div", hc, [
|
|
5214
5217
|
m(L, {
|
|
@@ -5219,10 +5222,10 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
5219
5222
|
}, null, 8, ["icon"]),
|
|
5220
5223
|
p[1] || (p[1] = t("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1))
|
|
5221
5224
|
], 512), [
|
|
5222
|
-
[
|
|
5225
|
+
[O, e.empty]
|
|
5223
5226
|
])
|
|
5224
5227
|
], 2), [
|
|
5225
|
-
[
|
|
5228
|
+
[O, !e.loading]
|
|
5226
5229
|
]),
|
|
5227
5230
|
D(t("div", yc, [...p[2] || (p[2] = [
|
|
5228
5231
|
t("div", {
|
|
@@ -5251,7 +5254,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
5251
5254
|
])
|
|
5252
5255
|
], -1)
|
|
5253
5256
|
])], 512), [
|
|
5254
|
-
[
|
|
5257
|
+
[O, e.loading]
|
|
5255
5258
|
])
|
|
5256
5259
|
], 64));
|
|
5257
5260
|
}
|
|
@@ -5343,7 +5346,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
5343
5346
|
key: 1,
|
|
5344
5347
|
role: "list",
|
|
5345
5348
|
class: "grid grid-cols-2 gap-x-4 gap-y-8 sm:grid-cols-3 sm:gap-x-4 lg:grid-cols-6"
|
|
5346
|
-
}, Tc = { class: "group aspect-h-7 aspect-w-10 block w-full overflow-hidden rounded-lg bg-gray-100 focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 focus-within:ring-offset-gray-100" }, Dc = ["src"], Lc = ["onClick"], Pc = { class: "pointer-events-none mt-2 block truncate text-sm font-medium text-gray-900" }, Fc = { class: "flex items-center justify-between" },
|
|
5349
|
+
}, Tc = { class: "group aspect-h-7 aspect-w-10 block w-full overflow-hidden rounded-lg bg-gray-100 focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 focus-within:ring-offset-gray-100" }, Dc = ["src"], Lc = ["onClick"], Pc = { class: "pointer-events-none mt-2 block truncate text-sm font-medium text-gray-900" }, Fc = { class: "flex items-center justify-between" }, Oc = { class: "pointer-events-none block text-sm font-medium" }, _c = {
|
|
5347
5350
|
key: 2,
|
|
5348
5351
|
role: "list",
|
|
5349
5352
|
class: "grid grid-cols-2 gap-x-4 gap-y-8 sm:grid-cols-3 sm:gap-x-4 lg:grid-cols-6"
|
|
@@ -5375,7 +5378,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
5375
5378
|
]),
|
|
5376
5379
|
_: 1
|
|
5377
5380
|
}, 8, ["open", "title", "actions"])),
|
|
5378
|
-
e.loading ? (l(), s("ul",
|
|
5381
|
+
e.loading ? (l(), s("ul", _c, [
|
|
5379
5382
|
(l(), s(k, null, S(4, (d) => t("li", null, [...a[2] || (a[2] = [
|
|
5380
5383
|
t("div", { class: "group aspect-h-7 aspect-w-10 block w-full overflow-hidden rounded-lg bg-gray-200 animate-pulse dark:bg-gray-200 focus-within:ring-2 focus-within:ring-lime-400 focus-within:ring-offset-2 focus-within:ring-offset-gray-100" }, null, -1),
|
|
5381
5384
|
t("p", { class: "animate-pulse h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28 mt-4" }, null, -1),
|
|
@@ -5400,7 +5403,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
5400
5403
|
]),
|
|
5401
5404
|
t("p", Pc, u(d.title), 1),
|
|
5402
5405
|
t("div", Fc, [
|
|
5403
|
-
t("p",
|
|
5406
|
+
t("p", Oc, u(d.size), 1),
|
|
5404
5407
|
m(L, {
|
|
5405
5408
|
class: "cursor-pointer",
|
|
5406
5409
|
icon: f(pe),
|
|
@@ -5434,7 +5437,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
5434
5437
|
emits: ["update:modelValue"],
|
|
5435
5438
|
setup(e) {
|
|
5436
5439
|
const g = V(null);
|
|
5437
|
-
return
|
|
5440
|
+
return Oe(async () => {
|
|
5438
5441
|
if (typeof window < "u")
|
|
5439
5442
|
try {
|
|
5440
5443
|
const { default: i } = await import("vue3-draggable");
|
|
@@ -5625,7 +5628,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
5625
5628
|
onDataPointSelection: C
|
|
5626
5629
|
}, null, 8, ["series", "options", "height"])
|
|
5627
5630
|
], 512), [
|
|
5628
|
-
[
|
|
5631
|
+
[O, !e.empty]
|
|
5629
5632
|
]),
|
|
5630
5633
|
D(t("div", su, [
|
|
5631
5634
|
m(L, {
|
|
@@ -5636,10 +5639,10 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
5636
5639
|
}, null, 8, ["icon"]),
|
|
5637
5640
|
P[3] || (P[3] = t("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1))
|
|
5638
5641
|
], 512), [
|
|
5639
|
-
[
|
|
5642
|
+
[O, e.empty]
|
|
5640
5643
|
])
|
|
5641
5644
|
], 2), [
|
|
5642
|
-
[
|
|
5645
|
+
[O, !e.loading]
|
|
5643
5646
|
]),
|
|
5644
5647
|
D(t("div", nu, [...P[4] || (P[4] = [
|
|
5645
5648
|
t("div", {
|
|
@@ -5668,7 +5671,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
5668
5671
|
])
|
|
5669
5672
|
], -1)
|
|
5670
5673
|
])], 512), [
|
|
5671
|
-
[
|
|
5674
|
+
[O, e.loading]
|
|
5672
5675
|
])
|
|
5673
5676
|
], 64));
|
|
5674
5677
|
}
|
|
@@ -5926,7 +5929,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
5926
5929
|
}, Tu = { class: "flex flex-1 flex-col p-8" }, Du = { class: "text-2xl font-bold" }, Lu = { class: "mt-1 flex flex-grow flex-col justify-between" }, Pu = { class: "mt-3 flex flex-wrap gap-x-1 gap-y-1 justify-center" }, Fu = {
|
|
5927
5930
|
key: 1,
|
|
5928
5931
|
class: "col-span-1 flex flex-col divide-y divide-gray-200 rounded-lg bg-white text-center shadow"
|
|
5929
|
-
},
|
|
5932
|
+
}, Ou = { class: "flex flex-1 flex-col p-8" }, _u = { class: "rounded-md p-3 flex items-center justify-center mx-auto mb-4 bg-gray-200" }, Iu = { class: "mt-1 flex flex-grow flex-col justify-between" }, Vu = { class: "mt-3 flex flex-wrap gap-x-1 gap-y-1 justify-center" }, Nu = /* @__PURE__ */ A({
|
|
5930
5933
|
__name: "uiDeviceStatus",
|
|
5931
5934
|
props: {
|
|
5932
5935
|
id: {},
|
|
@@ -5940,8 +5943,8 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
5940
5943
|
emits: ["deviceStatusTagClicked", "deviceStatusQtyClicked"],
|
|
5941
5944
|
setup(e, { emit: g }) {
|
|
5942
5945
|
return (i, o) => e.loading ? (l(), s("div", Fu, [
|
|
5943
|
-
t("div",
|
|
5944
|
-
t("div",
|
|
5946
|
+
t("div", Ou, [
|
|
5947
|
+
t("div", _u, [
|
|
5945
5948
|
m(L, {
|
|
5946
5949
|
icon: e.icon,
|
|
5947
5950
|
size: "huge",
|
|
@@ -5993,7 +5996,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
5993
5996
|
class: "text-black hover:text-lime-400 underline cursor-pointer",
|
|
5994
5997
|
onClick: o[0] || (o[0] = (n) => i.$emit("deviceStatusQtyClicked", e.id))
|
|
5995
5998
|
}, "(" + u(e.qty) + ")", 513), [
|
|
5996
|
-
[
|
|
5999
|
+
[O, e.qty > 0]
|
|
5997
6000
|
])
|
|
5998
6001
|
]),
|
|
5999
6002
|
t("dl", Lu, [
|
|
@@ -6166,7 +6169,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
6166
6169
|
D(t("div", Wu, [...d[13] || (d[13] = [
|
|
6167
6170
|
t("span", { class: "animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75" }, null, -1)
|
|
6168
6171
|
])], 512), [
|
|
6169
|
-
[
|
|
6172
|
+
[O, e.topbar.alerted]
|
|
6170
6173
|
]),
|
|
6171
6174
|
m(f(Yl), {
|
|
6172
6175
|
class: "h-6 w-6",
|
|
@@ -6256,7 +6259,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
6256
6259
|
const i = e, o = g, n = (c) => {
|
|
6257
6260
|
o("statClick", c);
|
|
6258
6261
|
}, r = () => 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 = V(0), d = V(r());
|
|
6259
|
-
return
|
|
6262
|
+
return Oe(() => a.value += 1), (c, v) => (l(), s("div", {
|
|
6260
6263
|
class: x([d.value, "grid grid-cols-1 md:grid-cols-2 gap-4"]),
|
|
6261
6264
|
key: a.value
|
|
6262
6265
|
}, [
|
|
@@ -6437,7 +6440,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
6437
6440
|
"text-green-600": e.color === "green"
|
|
6438
6441
|
}, "mt-2 text-xs flex flex-row items-center"])
|
|
6439
6442
|
}, u(e.error), 3), [
|
|
6440
|
-
[
|
|
6443
|
+
[O, e.error]
|
|
6441
6444
|
])
|
|
6442
6445
|
])
|
|
6443
6446
|
]),
|
|
@@ -6523,7 +6526,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
6523
6526
|
key: C.name,
|
|
6524
6527
|
class: "p-6 bg-gray-50 border border-gray-300 rounded-lg shadow-sm"
|
|
6525
6528
|
}, [
|
|
6526
|
-
m(f(
|
|
6529
|
+
m(f(_e), null, {
|
|
6527
6530
|
default: y(({ open: N }) => [
|
|
6528
6531
|
m(f(se), { class: "flex items-center justify-between w-full" }, {
|
|
6529
6532
|
default: y(() => [
|
|
@@ -6615,7 +6618,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
6615
6618
|
key: 0,
|
|
6616
6619
|
class: "absolute left-4 top-4 -ml-px mt-0.5 h-full w-0.5 bg-gray-300",
|
|
6617
6620
|
"aria-hidden": "true"
|
|
6618
|
-
},
|
|
6621
|
+
}, O0 = ["onClick"], _0 = { class: "ml-4 flex min-w-0 flex-col text-left" }, I0 = { class: "text-sm font-medium text-lime-400 text-left" }, V0 = { class: "text-sm text-left" }, N0 = {
|
|
6619
6622
|
key: 0,
|
|
6620
6623
|
class: "absolute left-4 top-4 -ml-px mt-0.5 h-full w-0.5 bg-gray-300",
|
|
6621
6624
|
"aria-hidden": "true"
|
|
@@ -6680,11 +6683,11 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
6680
6683
|
t("span", { class: "size-2.5 rounded-full bg-lime-400" })
|
|
6681
6684
|
])
|
|
6682
6685
|
], -1)),
|
|
6683
|
-
t("span",
|
|
6686
|
+
t("span", _0, [
|
|
6684
6687
|
t("span", I0, u(c.name), 1),
|
|
6685
6688
|
t("span", V0, u(c.description), 1)
|
|
6686
6689
|
])
|
|
6687
|
-
], 8,
|
|
6690
|
+
], 8, O0)
|
|
6688
6691
|
], 64)) : (l(), s(k, { key: 2 }, [
|
|
6689
6692
|
v !== n.value.length - 1 ? (l(), s("div", N0)) : b("", !0),
|
|
6690
6693
|
t("button", {
|