@hotelinking/ui 10.44.1 → 10.44.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui.cjs +1 -1
- package/dist/ui.d.ts +3 -0
- package/dist/ui.es.js +807 -792
- package/package.json +1 -1
package/dist/ui.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as M, createBlock as
|
|
2
|
-
import { Menu as be, MenuButton as we, MenuItems as xe, MenuItem as ke, Combobox as Ye, ComboboxLabel as
|
|
1
|
+
import { defineComponent as M, createBlock as k, createElementBlock as n, openBlock as s, resolveDynamicComponent as Oe, normalizeClass as h, createCommentVNode as b, renderSlot as q, createElementVNode as e, ref as N, watch as R, computed as V, unref as c, withCtx as v, createVNode as p, toDisplayString as g, createTextVNode as L, Transition as ce, Fragment as _, renderList as $, withDirectives as C, vModelDynamic as ot, vShow as D, withModifiers as ye, vModelText as X, createStaticVNode as Q, resolveComponent as De, vModelCheckbox as Ie, reactive as ge, isRef as ve, TransitionGroup as lt, onMounted as rt, shallowRef as nt, mergeProps as at } from "vue";
|
|
2
|
+
import { Menu as be, MenuButton as we, MenuItems as xe, MenuItem as ke, Combobox as Ye, ComboboxLabel as it, ComboboxInput as Pe, ComboboxButton as Ve, ComboboxOptions as Fe, ComboboxOption as qe, SwitchGroup as dt, Switch as ut, SwitchLabel as ct, TransitionRoot as _e, Dialog as $e, TransitionChild as G, DialogPanel as Ce, DialogTitle as Re, Disclosure as Se, DisclosureButton as Z, DisclosurePanel as Be, Listbox as gt, ListboxLabel as pt, ListboxButton as mt, ListboxOptions as ft, ListboxOption as yt } from "@headlessui/vue";
|
|
3
3
|
import z from "dayjs";
|
|
4
4
|
import Me from "vue3-apexcharts";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import ht from "vue3-draggable";
|
|
6
|
+
import vt from "@vueform/slider";
|
|
7
7
|
const j = /* @__PURE__ */ M({
|
|
8
8
|
__name: "uiIcon",
|
|
9
9
|
props: {
|
|
@@ -22,7 +22,7 @@ const j = /* @__PURE__ */ M({
|
|
|
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(), k(Oe(i.icon), {
|
|
26
26
|
key: 0,
|
|
27
27
|
class: h({
|
|
28
28
|
"h-4 w-4": i.size === "medium",
|
|
@@ -41,7 +41,7 @@ const j = /* @__PURE__ */ M({
|
|
|
41
41
|
})
|
|
42
42
|
}, null, 8, ["class"]));
|
|
43
43
|
}
|
|
44
|
-
}),
|
|
44
|
+
}), bt = ["disabled"], wt = {
|
|
45
45
|
key: 1,
|
|
46
46
|
class: "animate-pulse px-4 py-2.5 text-sm rounded-md inline-flex items-center border border-transparent font-medium shadow-sm text-white focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-25 bg-gray-200"
|
|
47
47
|
}, J = /* @__PURE__ */ M({
|
|
@@ -55,8 +55,8 @@ const j = /* @__PURE__ */ M({
|
|
|
55
55
|
size: { default: "medium" }
|
|
56
56
|
},
|
|
57
57
|
setup(m) {
|
|
58
|
-
return (i, l) => i.loading ? (s(), n("button",
|
|
59
|
-
i.icon ? (s(),
|
|
58
|
+
return (i, l) => i.loading ? (s(), n("button", wt, [
|
|
59
|
+
i.icon ? (s(), k(j, {
|
|
60
60
|
key: 0,
|
|
61
61
|
icon: i.icon,
|
|
62
62
|
color: "white",
|
|
@@ -80,7 +80,7 @@ const j = /* @__PURE__ */ M({
|
|
|
80
80
|
}, "inline-flex items-center border border-transparent font-medium focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-25"]),
|
|
81
81
|
type: "button"
|
|
82
82
|
}, [
|
|
83
|
-
i.icon ? (s(),
|
|
83
|
+
i.icon ? (s(), k(j, {
|
|
84
84
|
key: 0,
|
|
85
85
|
icon: i.icon,
|
|
86
86
|
color: "white",
|
|
@@ -88,12 +88,12 @@ const j = /* @__PURE__ */ M({
|
|
|
88
88
|
loading: i.loading
|
|
89
89
|
}, null, 8, ["icon", "loading"])) : b("", !0),
|
|
90
90
|
q(i.$slots, "default")
|
|
91
|
-
], 10,
|
|
91
|
+
], 10, bt));
|
|
92
92
|
}
|
|
93
|
-
}),
|
|
93
|
+
}), xt = {
|
|
94
94
|
key: 0,
|
|
95
95
|
class: "relative flex items-start"
|
|
96
|
-
},
|
|
96
|
+
}, kt = { class: "flex items-center h-5" }, _t = ["checked", "value", "disabled"], $t = { class: "ml-3 text-sm" }, Ct = { class: "text-gray-500" }, St = {
|
|
97
97
|
key: 1,
|
|
98
98
|
class: "flex items-center animate-pulse"
|
|
99
99
|
}, Ue = /* @__PURE__ */ M({
|
|
@@ -112,11 +112,11 @@ const j = /* @__PURE__ */ M({
|
|
|
112
112
|
};
|
|
113
113
|
return R(() => a.check, (t) => {
|
|
114
114
|
t && (r.value = t);
|
|
115
|
-
}), (t, d) => t.loading ? (s(), n("div",
|
|
115
|
+
}), (t, d) => t.loading ? (s(), n("div", St, d[1] || (d[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
|
-
]))) : (s(), n("div",
|
|
119
|
-
e("div",
|
|
118
|
+
]))) : (s(), n("div", xt, [
|
|
119
|
+
e("div", kt, [
|
|
120
120
|
e("input", {
|
|
121
121
|
checked: t.check,
|
|
122
122
|
value: t.value,
|
|
@@ -124,17 +124,17 @@ const j = /* @__PURE__ */ M({
|
|
|
124
124
|
class: "focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded disabled:opacity-25",
|
|
125
125
|
type: "checkbox",
|
|
126
126
|
onChange: d[0] || (d[0] = (u) => o())
|
|
127
|
-
}, null, 40,
|
|
127
|
+
}, null, 40, _t)
|
|
128
128
|
]),
|
|
129
|
-
e("div",
|
|
130
|
-
e("span",
|
|
129
|
+
e("div", $t, [
|
|
130
|
+
e("span", Ct, [
|
|
131
131
|
q(t.$slots, "default")
|
|
132
132
|
])
|
|
133
133
|
])
|
|
134
134
|
]));
|
|
135
135
|
}
|
|
136
136
|
});
|
|
137
|
-
function
|
|
137
|
+
function Bt(m, i) {
|
|
138
138
|
return s(), n("svg", {
|
|
139
139
|
xmlns: "http://www.w3.org/2000/svg",
|
|
140
140
|
fill: "none",
|
|
@@ -151,7 +151,7 @@ function Ct(m, i) {
|
|
|
151
151
|
})
|
|
152
152
|
]);
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function Mt(m, i) {
|
|
155
155
|
return s(), n("svg", {
|
|
156
156
|
xmlns: "http://www.w3.org/2000/svg",
|
|
157
157
|
fill: "none",
|
|
@@ -168,7 +168,7 @@ function St(m, i) {
|
|
|
168
168
|
})
|
|
169
169
|
]);
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function Dt(m, i) {
|
|
172
172
|
return s(), n("svg", {
|
|
173
173
|
xmlns: "http://www.w3.org/2000/svg",
|
|
174
174
|
fill: "none",
|
|
@@ -219,7 +219,7 @@ function Ee(m, i) {
|
|
|
219
219
|
})
|
|
220
220
|
]);
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function jt(m, i) {
|
|
223
223
|
return s(), n("svg", {
|
|
224
224
|
xmlns: "http://www.w3.org/2000/svg",
|
|
225
225
|
fill: "none",
|
|
@@ -236,7 +236,7 @@ function Mt(m, i) {
|
|
|
236
236
|
})
|
|
237
237
|
]);
|
|
238
238
|
}
|
|
239
|
-
function
|
|
239
|
+
function Tt(m, i) {
|
|
240
240
|
return s(), n("svg", {
|
|
241
241
|
xmlns: "http://www.w3.org/2000/svg",
|
|
242
242
|
fill: "none",
|
|
@@ -355,7 +355,7 @@ function ue(m, i) {
|
|
|
355
355
|
})
|
|
356
356
|
]);
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function We(m, i) {
|
|
359
359
|
return s(), n("svg", {
|
|
360
360
|
xmlns: "http://www.w3.org/2000/svg",
|
|
361
361
|
fill: "none",
|
|
@@ -372,7 +372,7 @@ function jt(m, i) {
|
|
|
372
372
|
})
|
|
373
373
|
]);
|
|
374
374
|
}
|
|
375
|
-
function
|
|
375
|
+
function zt(m, i) {
|
|
376
376
|
return s(), n("svg", {
|
|
377
377
|
xmlns: "http://www.w3.org/2000/svg",
|
|
378
378
|
fill: "none",
|
|
@@ -406,7 +406,7 @@ function H(m, i) {
|
|
|
406
406
|
})
|
|
407
407
|
]);
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function Lt(m, i) {
|
|
410
410
|
return s(), n("svg", {
|
|
411
411
|
xmlns: "http://www.w3.org/2000/svg",
|
|
412
412
|
fill: "none",
|
|
@@ -423,7 +423,7 @@ function zt(m, i) {
|
|
|
423
423
|
})
|
|
424
424
|
]);
|
|
425
425
|
}
|
|
426
|
-
function
|
|
426
|
+
function At(m, i) {
|
|
427
427
|
return s(), n("svg", {
|
|
428
428
|
xmlns: "http://www.w3.org/2000/svg",
|
|
429
429
|
fill: "none",
|
|
@@ -440,7 +440,7 @@ function Lt(m, i) {
|
|
|
440
440
|
})
|
|
441
441
|
]);
|
|
442
442
|
}
|
|
443
|
-
function
|
|
443
|
+
function Nt(m, i) {
|
|
444
444
|
return s(), n("svg", {
|
|
445
445
|
xmlns: "http://www.w3.org/2000/svg",
|
|
446
446
|
fill: "none",
|
|
@@ -457,7 +457,7 @@ function At(m, i) {
|
|
|
457
457
|
})
|
|
458
458
|
]);
|
|
459
459
|
}
|
|
460
|
-
function
|
|
460
|
+
function Ot(m, i) {
|
|
461
461
|
return s(), n("svg", {
|
|
462
462
|
xmlns: "http://www.w3.org/2000/svg",
|
|
463
463
|
fill: "none",
|
|
@@ -474,7 +474,7 @@ function Nt(m, i) {
|
|
|
474
474
|
})
|
|
475
475
|
]);
|
|
476
476
|
}
|
|
477
|
-
function
|
|
477
|
+
function Ge(m, i) {
|
|
478
478
|
return s(), n("svg", {
|
|
479
479
|
xmlns: "http://www.w3.org/2000/svg",
|
|
480
480
|
fill: "none",
|
|
@@ -491,7 +491,7 @@ function We(m, i) {
|
|
|
491
491
|
})
|
|
492
492
|
]);
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function It(m, i) {
|
|
495
495
|
return s(), n("svg", {
|
|
496
496
|
xmlns: "http://www.w3.org/2000/svg",
|
|
497
497
|
fill: "none",
|
|
@@ -508,7 +508,7 @@ function Ot(m, i) {
|
|
|
508
508
|
})
|
|
509
509
|
]);
|
|
510
510
|
}
|
|
511
|
-
function
|
|
511
|
+
function Yt(m, i) {
|
|
512
512
|
return s(), n("svg", {
|
|
513
513
|
xmlns: "http://www.w3.org/2000/svg",
|
|
514
514
|
fill: "none",
|
|
@@ -525,7 +525,7 @@ function It(m, i) {
|
|
|
525
525
|
})
|
|
526
526
|
]);
|
|
527
527
|
}
|
|
528
|
-
function
|
|
528
|
+
function Pt(m, i) {
|
|
529
529
|
return s(), n("svg", {
|
|
530
530
|
xmlns: "http://www.w3.org/2000/svg",
|
|
531
531
|
fill: "none",
|
|
@@ -576,13 +576,13 @@ function W(m, i) {
|
|
|
576
576
|
})
|
|
577
577
|
]);
|
|
578
578
|
}
|
|
579
|
-
const
|
|
579
|
+
const Vt = { class: "flex justify-between sha" }, Ft = {
|
|
580
580
|
key: 0,
|
|
581
581
|
class: "block text-sm font-medium text-gray-700 mb-1"
|
|
582
|
-
},
|
|
582
|
+
}, qt = {
|
|
583
583
|
key: 1,
|
|
584
584
|
class: "place-self-center text-[10px] text-gray-500 uppercase justify-self-end mt-1"
|
|
585
|
-
},
|
|
585
|
+
}, Rt = { class: "-py-1" }, Ut = ["onClick"], Ht = {
|
|
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
|
}, fe = /* @__PURE__ */ M({
|
|
@@ -590,6 +590,7 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
590
590
|
props: {
|
|
591
591
|
items: {},
|
|
592
592
|
position: { default: "left" },
|
|
593
|
+
verticalPosition: { default: "bottom" },
|
|
593
594
|
disabled: { type: Boolean },
|
|
594
595
|
label: {},
|
|
595
596
|
loading: { type: Boolean, default: !0 },
|
|
@@ -603,30 +604,36 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
603
604
|
}), o = (t) => {
|
|
604
605
|
a.disabled || l("optionSelected", t);
|
|
605
606
|
};
|
|
606
|
-
return (t, d) => t.loading ? (s(), n("div",
|
|
607
|
+
return (t, d) => t.loading ? (s(), n("div", Ht, [
|
|
607
608
|
d[0] || (d[0] = e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28" }, null, -1)),
|
|
608
609
|
p(c(de), {
|
|
609
610
|
"aria-hidden": "true",
|
|
610
611
|
class: "-mr-1 ml-2 h-5 w-5 text-gray-200 dark:text-gray-300"
|
|
611
612
|
})
|
|
612
|
-
])) : (s(),
|
|
613
|
+
])) : (s(), k(c(be), {
|
|
613
614
|
key: 0,
|
|
614
615
|
as: "div",
|
|
615
616
|
class: h(["relative inline-block text-left", { "opacity-25": t.disabled }])
|
|
616
617
|
}, {
|
|
617
618
|
default: v(() => [
|
|
618
619
|
e("div", null, [
|
|
619
|
-
e("div",
|
|
620
|
-
t.label ? (s(), n("label",
|
|
621
|
-
t.requiredText ? (s(), n("span",
|
|
620
|
+
e("div", Vt, [
|
|
621
|
+
t.label ? (s(), n("label", Ft, g(t.label), 1)) : b("", !0),
|
|
622
|
+
t.requiredText ? (s(), n("span", qt, g(t.requiredText), 1)) : b("", !0)
|
|
622
623
|
]),
|
|
623
624
|
p(c(we), { 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
625
|
default: v(() => [
|
|
625
626
|
L(g(r.value) + " ", 1),
|
|
626
|
-
|
|
627
|
+
t.verticalPosition === "bottom" ? (s(), k(c(de), {
|
|
628
|
+
key: 0,
|
|
627
629
|
"aria-hidden": "true",
|
|
628
630
|
class: "-mr-1 ml-2 h-5 w-5"
|
|
629
|
-
})
|
|
631
|
+
})) : b("", !0),
|
|
632
|
+
t.verticalPosition === "top" ? (s(), k(c(We), {
|
|
633
|
+
key: 1,
|
|
634
|
+
"aria-hidden": "true",
|
|
635
|
+
class: "-mr-1 ml-2 h-5 w-5"
|
|
636
|
+
})) : b("", !0)
|
|
630
637
|
]),
|
|
631
638
|
_: 1
|
|
632
639
|
})
|
|
@@ -640,13 +647,18 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
640
647
|
"leave-to-class": "transform opacity-0 scale-95"
|
|
641
648
|
}, {
|
|
642
649
|
default: v(() => [
|
|
643
|
-
t.disabled ? b("", !0) : (s(),
|
|
650
|
+
t.disabled ? b("", !0) : (s(), k(c(xe), {
|
|
644
651
|
key: 0,
|
|
645
|
-
class: h([{
|
|
652
|
+
class: h([{
|
|
653
|
+
"right-0": t.position === "right",
|
|
654
|
+
"left-0": t.position === "left",
|
|
655
|
+
"bottom-10 mb-1.5 shadow-[0_-4px_10px_rgba(0,0,0,.1)] ": t.verticalPosition === "top",
|
|
656
|
+
"mt-2 shadow-lg": t.verticalPosition === "bottom"
|
|
657
|
+
}, "origin-top-right absolute w-56 rounded-md bg-white ring-1 ring-black ring-opacity-5 focus:outline-none z-10"])
|
|
646
658
|
}, {
|
|
647
659
|
default: v(() => [
|
|
648
|
-
e("div",
|
|
649
|
-
(s(!0), n(
|
|
660
|
+
e("div", Rt, [
|
|
661
|
+
(s(!0), n(_, null, $(t.items, (u, f) => (s(), k(c(ke), { key: f }, {
|
|
650
662
|
default: v(() => [
|
|
651
663
|
e("a", {
|
|
652
664
|
onClick: (y) => o(u),
|
|
@@ -654,7 +666,7 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
654
666
|
u.active ? "bg-gray-100 text-gray-900" : "text-gray-700",
|
|
655
667
|
"block px-4 py-2 text-sm cursor-pointer"
|
|
656
668
|
])
|
|
657
|
-
}, g(u.name), 11,
|
|
669
|
+
}, g(u.name), 11, Ut)
|
|
658
670
|
]),
|
|
659
671
|
_: 2
|
|
660
672
|
}, 1024))), 128))
|
|
@@ -669,16 +681,16 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
669
681
|
_: 1
|
|
670
682
|
}, 8, ["class"]));
|
|
671
683
|
}
|
|
672
|
-
}),
|
|
684
|
+
}), Et = { key: 0 }, Zt = { class: "flex justify-between" }, Jt = {
|
|
673
685
|
key: 0,
|
|
674
686
|
class: "block text-sm font-medium text-gray-700"
|
|
675
|
-
},
|
|
687
|
+
}, Wt = {
|
|
676
688
|
key: 1,
|
|
677
689
|
class: "place-self-center text-[10px] text-gray-500 uppercase justify-self-end"
|
|
678
|
-
},
|
|
690
|
+
}, Gt = ["max", "disabled", "name", "placeholder", "type"], Qt = { class: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none" }, Kt = {
|
|
679
691
|
key: 1,
|
|
680
692
|
class: "animate-pulse"
|
|
681
|
-
},
|
|
693
|
+
}, Xt = {
|
|
682
694
|
key: 0,
|
|
683
695
|
class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/3 md:w-1/4 mb-1.5"
|
|
684
696
|
}, E = /* @__PURE__ */ M({
|
|
@@ -709,15 +721,15 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
709
721
|
const o = (t) => {
|
|
710
722
|
t.target.name && l("inputChanged", { value: t.target.value, name: t.target.name });
|
|
711
723
|
};
|
|
712
|
-
return (t, d) => t.loading ? (s(), n("div",
|
|
713
|
-
t.label !== void 0 ? (s(), n("div",
|
|
724
|
+
return (t, d) => t.loading ? (s(), n("div", Kt, [
|
|
725
|
+
t.label !== void 0 ? (s(), n("div", Xt)) : b("", !0),
|
|
714
726
|
d[3] || (d[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
727
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28" })
|
|
716
728
|
], -1))
|
|
717
|
-
])) : (s(), n("div",
|
|
718
|
-
e("div",
|
|
719
|
-
t.label ? (s(), n("label",
|
|
720
|
-
t.requiredText ? (s(), n("span",
|
|
729
|
+
])) : (s(), n("div", Et, [
|
|
730
|
+
e("div", Zt, [
|
|
731
|
+
t.label ? (s(), n("label", Jt, g(t.label), 1)) : b("", !0),
|
|
732
|
+
t.requiredText ? (s(), n("span", Wt, g(t.requiredText), 1)) : b("", !0)
|
|
721
733
|
]),
|
|
722
734
|
e("div", {
|
|
723
735
|
class: h([{ "mt-1": t.label }, "relative flex"])
|
|
@@ -751,16 +763,16 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
751
763
|
placeholder: t.placeholder,
|
|
752
764
|
type: t.type,
|
|
753
765
|
onInput: o
|
|
754
|
-
}, null, 42,
|
|
755
|
-
[
|
|
766
|
+
}, null, 42, Gt), [
|
|
767
|
+
[ot, r.value]
|
|
756
768
|
]),
|
|
757
769
|
t.rightAddOn ? (s(), n("span", {
|
|
758
770
|
key: 1,
|
|
759
771
|
onClick: d[2] || (d[2] = (u) => t.$emit("rightAddOnClicked")),
|
|
760
772
|
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"
|
|
761
773
|
}, g(t.rightAddOn), 1)) : b("", !0),
|
|
762
|
-
e("div",
|
|
763
|
-
t.icon ? (s(),
|
|
774
|
+
e("div", Qt, [
|
|
775
|
+
t.icon ? (s(), k(j, {
|
|
764
776
|
key: 0,
|
|
765
777
|
icon: t.icon,
|
|
766
778
|
color: t.color,
|
|
@@ -801,16 +813,16 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
801
813
|
])
|
|
802
814
|
]));
|
|
803
815
|
}
|
|
804
|
-
}),
|
|
816
|
+
}), es = { key: 0 }, ts = { class: "flex justify-between" }, ss = {
|
|
805
817
|
key: 0,
|
|
806
818
|
class: "block text-sm font-medium text-gray-700"
|
|
807
|
-
},
|
|
819
|
+
}, os = {
|
|
808
820
|
key: 1,
|
|
809
821
|
class: "place-self-center text-[10px] text-gray-500 uppercase"
|
|
810
|
-
},
|
|
822
|
+
}, ls = { class: "space-y-1 flex flex-col items-center justify-center" }, rs = { class: "flex text-sm text-gray-600 flex-col sm:flex-row text-center" }, ns = ["for"], as = ["id", "name", "accept"], is = { class: "pl-1" }, ds = { class: "text-xs text-gray-500 pb-4" }, us = { class: "mt-2 text-xs flex flex-row items-center text-red-300" }, cs = {
|
|
811
823
|
key: 1,
|
|
812
824
|
class: "animate-pulse"
|
|
813
|
-
},
|
|
825
|
+
}, gs = /* @__PURE__ */ M({
|
|
814
826
|
__name: "uiInputFile",
|
|
815
827
|
props: {
|
|
816
828
|
name: {},
|
|
@@ -821,7 +833,7 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
821
833
|
fileTypesAndSizes: {},
|
|
822
834
|
error: {},
|
|
823
835
|
accept: {},
|
|
824
|
-
icon: { default:
|
|
836
|
+
icon: { default: Mt },
|
|
825
837
|
loading: { type: Boolean, default: !0 },
|
|
826
838
|
label: {}
|
|
827
839
|
},
|
|
@@ -839,16 +851,16 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
839
851
|
f++, l.value += y.name, f >= 1 && f < u.length && (l.value += ", ");
|
|
840
852
|
});
|
|
841
853
|
};
|
|
842
|
-
return (u, f) => u.loading ? (s(), n("div",
|
|
854
|
+
return (u, f) => u.loading ? (s(), n("div", cs, f[1] || (f[1] = [
|
|
843
855
|
e("div", { class: "flex justify-center items-center flex-col rounded-md border-2 border-dashed px-6 pt-5 pb-6 border-gray-200" }, [
|
|
844
856
|
e("div", { class: "rounded-full h-20 w-20 bg-gray-200 mb-4" }),
|
|
845
857
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full md:w-1/3 mb-3" }),
|
|
846
858
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full md:w-1/4 mb-3" })
|
|
847
859
|
], -1)
|
|
848
|
-
]))) : (s(), n("div",
|
|
849
|
-
e("div",
|
|
850
|
-
u.label ? (s(), n("label",
|
|
851
|
-
u.requiredText ? (s(), n("span",
|
|
860
|
+
]))) : (s(), n("div", es, [
|
|
861
|
+
e("div", ts, [
|
|
862
|
+
u.label ? (s(), n("label", ss, g(u.label), 1)) : b("", !0),
|
|
863
|
+
u.requiredText ? (s(), n("span", os, g(u.requiredText), 1)) : b("", !0)
|
|
852
864
|
]),
|
|
853
865
|
e("div", {
|
|
854
866
|
class: h([
|
|
@@ -863,7 +875,7 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
863
875
|
}, ["prevent"])),
|
|
864
876
|
onDrop: ye(o, ["prevent"])
|
|
865
877
|
}, [
|
|
866
|
-
e("div",
|
|
878
|
+
e("div", ls, [
|
|
867
879
|
p(j, {
|
|
868
880
|
icon: u.icon,
|
|
869
881
|
size: "massive",
|
|
@@ -872,7 +884,7 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
872
884
|
class: "mb-4",
|
|
873
885
|
loading: u.loading
|
|
874
886
|
}, null, 8, ["icon", "loading"]),
|
|
875
|
-
e("div",
|
|
887
|
+
e("div", rs, [
|
|
876
888
|
e("label", {
|
|
877
889
|
for: u.id,
|
|
878
890
|
class: "relative cursor-pointer rounded-md font-medium text-indigo-600 focus-within:outline-none focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 hover:text-indigo-500"
|
|
@@ -886,17 +898,17 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
886
898
|
accept: u.accept,
|
|
887
899
|
multiple: "",
|
|
888
900
|
onChange: t
|
|
889
|
-
}, null, 40,
|
|
890
|
-
], 8,
|
|
891
|
-
e("p",
|
|
901
|
+
}, null, 40, as)
|
|
902
|
+
], 8, ns),
|
|
903
|
+
e("p", is, g(u.dragAndDrop), 1)
|
|
892
904
|
]),
|
|
893
|
-
e("p",
|
|
905
|
+
e("p", ds, g(u.fileTypesAndSizes), 1),
|
|
894
906
|
C(e("p", { class: "font-bold text-xs uppercase block p-2 bg-gray-200 rounded" }, g(c(l)), 513), [
|
|
895
907
|
[D, c(l) !== null]
|
|
896
908
|
])
|
|
897
909
|
])
|
|
898
910
|
], 34),
|
|
899
|
-
C(e("p",
|
|
911
|
+
C(e("p", us, [
|
|
900
912
|
p(j, {
|
|
901
913
|
icon: c(me),
|
|
902
914
|
color: "red",
|
|
@@ -909,13 +921,13 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
909
921
|
])
|
|
910
922
|
]));
|
|
911
923
|
}
|
|
912
|
-
}),
|
|
924
|
+
}), ps = { class: "flex justify-between" }, ms = {
|
|
913
925
|
key: 0,
|
|
914
926
|
class: "text-[10px] text-gray-500 uppercase justify-self-end"
|
|
915
|
-
},
|
|
927
|
+
}, fs = { class: "relative" }, ys = {
|
|
916
928
|
key: 1,
|
|
917
929
|
class: "animate-pulse px-4 py-2.5 bg-gray-200 rounded-md flex justify-between items-center w-full"
|
|
918
|
-
},
|
|
930
|
+
}, Qe = /* @__PURE__ */ M({
|
|
919
931
|
__name: "uiSelect",
|
|
920
932
|
props: {
|
|
921
933
|
items: {},
|
|
@@ -940,13 +952,13 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
940
952
|
});
|
|
941
953
|
return i({
|
|
942
954
|
handleChange: u
|
|
943
|
-
}), (y, w) => y.loading ? (s(), n("div",
|
|
955
|
+
}), (y, w) => y.loading ? (s(), n("div", ys, [
|
|
944
956
|
w[3] || (w[3] = e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1)),
|
|
945
957
|
p(c(ue), {
|
|
946
958
|
"aria-hidden": "true",
|
|
947
959
|
class: "-mr-1 ml-2 h-5 w-5 text-gray-300 dark:text-gray-400"
|
|
948
960
|
})
|
|
949
|
-
])) : (s(),
|
|
961
|
+
])) : (s(), k(c(Ye), {
|
|
950
962
|
key: 0,
|
|
951
963
|
modelValue: f.value,
|
|
952
964
|
"onUpdate:modelValue": [
|
|
@@ -957,16 +969,16 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
957
969
|
as: "div"
|
|
958
970
|
}, {
|
|
959
971
|
default: v(() => [
|
|
960
|
-
e("div",
|
|
961
|
-
p(c(
|
|
972
|
+
e("div", ps, [
|
|
973
|
+
p(c(it), { class: "block text-sm font-medium" }, {
|
|
962
974
|
default: v(() => [
|
|
963
975
|
L(g(y.label), 1)
|
|
964
976
|
]),
|
|
965
977
|
_: 1
|
|
966
978
|
}),
|
|
967
|
-
y.requiredText ? (s(), n("span",
|
|
979
|
+
y.requiredText ? (s(), n("span", ms, g(y.requiredText), 1)) : b("", !0)
|
|
968
980
|
]),
|
|
969
|
-
e("div",
|
|
981
|
+
e("div", fs, [
|
|
970
982
|
p(c(Pe), {
|
|
971
983
|
onChange: w[0] || (w[0] = (T) => a.value = T.target.value),
|
|
972
984
|
onBlur: w[1] || (w[1] = (T) => a.value = ""),
|
|
@@ -995,12 +1007,12 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
995
1007
|
]),
|
|
996
1008
|
_: 1
|
|
997
1009
|
}),
|
|
998
|
-
t.value.length > 0 ? (s(),
|
|
1010
|
+
t.value.length > 0 ? (s(), k(c(Fe), {
|
|
999
1011
|
key: 0,
|
|
1000
1012
|
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"
|
|
1001
1013
|
}, {
|
|
1002
1014
|
default: v(() => [
|
|
1003
|
-
(s(!0), n(
|
|
1015
|
+
(s(!0), n(_, null, $(t.value, (T) => (s(), k(c(qe), {
|
|
1004
1016
|
key: T.id,
|
|
1005
1017
|
value: T,
|
|
1006
1018
|
as: "template"
|
|
@@ -1050,7 +1062,7 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
1050
1062
|
_: 1
|
|
1051
1063
|
}, 8, ["modelValue", "disabled"]));
|
|
1052
1064
|
}
|
|
1053
|
-
}),
|
|
1065
|
+
}), hs = {
|
|
1054
1066
|
key: 1,
|
|
1055
1067
|
class: "inline-flex items-center px-3 py-2.5 rounded text-xs font-medium leading-none animate-pulse bg-gray-200"
|
|
1056
1068
|
}, U = /* @__PURE__ */ M({
|
|
@@ -1068,7 +1080,7 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
1068
1080
|
const l = i, a = m, r = () => {
|
|
1069
1081
|
a.event != null && l("tagEvent", a.event);
|
|
1070
1082
|
};
|
|
1071
|
-
return (o, t) => o.loading ? (s(), n("div",
|
|
1083
|
+
return (o, t) => o.loading ? (s(), n("div", hs, t[0] || (t[0] = [
|
|
1072
1084
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12" }, null, -1)
|
|
1073
1085
|
]))) : (s(), n("span", {
|
|
1074
1086
|
key: 0,
|
|
@@ -1092,16 +1104,16 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
1092
1104
|
q(o.$slots, "default")
|
|
1093
1105
|
], 2));
|
|
1094
1106
|
}
|
|
1095
|
-
}),
|
|
1107
|
+
}), vs = { key: 0 }, bs = { class: "flex justify-between" }, ws = {
|
|
1096
1108
|
key: 0,
|
|
1097
1109
|
class: "block text-sm font-medium text-gray-700"
|
|
1098
|
-
},
|
|
1110
|
+
}, xs = {
|
|
1099
1111
|
key: 1,
|
|
1100
1112
|
class: "text-[10px] text-gray-500 uppercase justify-self-end"
|
|
1101
|
-
},
|
|
1113
|
+
}, ks = ["disabled", "placeholder"], _s = {
|
|
1102
1114
|
key: 1,
|
|
1103
1115
|
class: "animate-pulse"
|
|
1104
|
-
},
|
|
1116
|
+
}, $s = /* @__PURE__ */ M({
|
|
1105
1117
|
__name: "uiTextArea",
|
|
1106
1118
|
props: {
|
|
1107
1119
|
name: {},
|
|
@@ -1121,13 +1133,13 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
1121
1133
|
}, o = N(a.value);
|
|
1122
1134
|
return R(() => a.value, (t) => {
|
|
1123
1135
|
o.value = t, l("inputChanged", { name: a.name, value: o.value });
|
|
1124
|
-
}), (t, d) => t.loading ? (s(), n("div",
|
|
1136
|
+
}), (t, d) => t.loading ? (s(), n("div", _s, d[1] || (d[1] = [
|
|
1125
1137
|
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),
|
|
1126
1138
|
e("div", { class: "h-24 bg-gray-200 rounded-lg flex inline-flex items-center relative inline-block text-left w-full" }, null, -1)
|
|
1127
|
-
]))) : (s(), n("div",
|
|
1128
|
-
e("div",
|
|
1129
|
-
t.label ? (s(), n("label",
|
|
1130
|
-
t.requiredText ? (s(), n("span",
|
|
1139
|
+
]))) : (s(), n("div", vs, [
|
|
1140
|
+
e("div", bs, [
|
|
1141
|
+
t.label ? (s(), n("label", ws, g(t.label), 1)) : b("", !0),
|
|
1142
|
+
t.requiredText ? (s(), n("span", xs, g(t.requiredText), 1)) : b("", !0)
|
|
1131
1143
|
]),
|
|
1132
1144
|
e("div", {
|
|
1133
1145
|
class: h({ "mt-1": t.label })
|
|
@@ -1149,7 +1161,7 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
1149
1161
|
"text-green-400": t.color === "green"
|
|
1150
1162
|
}]),
|
|
1151
1163
|
onChange: r
|
|
1152
|
-
}, null, 42,
|
|
1164
|
+
}, null, 42, ks), [
|
|
1153
1165
|
[X, o.value]
|
|
1154
1166
|
])
|
|
1155
1167
|
], 2),
|
|
@@ -1173,13 +1185,13 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
1173
1185
|
])
|
|
1174
1186
|
]));
|
|
1175
1187
|
}
|
|
1176
|
-
}),
|
|
1188
|
+
}), Cs = { class: "text-sm font-medium text-gray-900" }, Ss = {
|
|
1177
1189
|
key: 0,
|
|
1178
1190
|
class: "text-sm text-gray-500 ml-2"
|
|
1179
|
-
},
|
|
1191
|
+
}, Bs = {
|
|
1180
1192
|
key: 1,
|
|
1181
1193
|
class: "animate-pulse flex items-center"
|
|
1182
|
-
},
|
|
1194
|
+
}, Ms = /* @__PURE__ */ M({
|
|
1183
1195
|
__name: "uiToggle",
|
|
1184
1196
|
props: {
|
|
1185
1197
|
item: {},
|
|
@@ -1190,18 +1202,18 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
1190
1202
|
emits: ["toggleChanged", "actionClicked"],
|
|
1191
1203
|
setup(m, { emit: i }) {
|
|
1192
1204
|
const l = m, a = N(l.checked);
|
|
1193
|
-
return R(() => l.checked, (r) => a.value = r), (r, o) => r.loading ? (s(), n("div",
|
|
1205
|
+
return R(() => l.checked, (r) => a.value = r), (r, o) => r.loading ? (s(), n("div", Bs, o[3] || (o[3] = [
|
|
1194
1206
|
e("div", { class: "relative bg-gray-200 rounded-full w-12 h-6 p-1 flex items-center" }, [
|
|
1195
1207
|
e("div", { class: "rounded-full bg-gray-300 dark:bg-gray-400 h-4 w-4" })
|
|
1196
1208
|
], -1),
|
|
1197
1209
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-16 ml-2" }, null, -1)
|
|
1198
|
-
]))) : (s(),
|
|
1210
|
+
]))) : (s(), k(c(dt), {
|
|
1199
1211
|
key: 0,
|
|
1200
1212
|
as: "div",
|
|
1201
1213
|
class: "flex items-center relative"
|
|
1202
1214
|
}, {
|
|
1203
1215
|
default: v(() => [
|
|
1204
|
-
p(c(
|
|
1216
|
+
p(c(ut), {
|
|
1205
1217
|
disabled: r.disabled,
|
|
1206
1218
|
onClick: o[0] || (o[0] = (t) => r.$emit("toggleChanged", { item: r.item, active: !a.value })),
|
|
1207
1219
|
modelValue: a.value,
|
|
@@ -1223,13 +1235,13 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
1223
1235
|
]),
|
|
1224
1236
|
_: 1
|
|
1225
1237
|
}, 8, ["disabled", "modelValue", "class"]),
|
|
1226
|
-
p(c(
|
|
1238
|
+
p(c(ct), {
|
|
1227
1239
|
as: "span",
|
|
1228
1240
|
class: "ml-3"
|
|
1229
1241
|
}, {
|
|
1230
1242
|
default: v(() => [
|
|
1231
|
-
e("span",
|
|
1232
|
-
r.item.subtitle ? (s(), n("span",
|
|
1243
|
+
e("span", Cs, g(r.item.title), 1),
|
|
1244
|
+
r.item.subtitle ? (s(), n("span", Ss, g(r.item.subtitle), 1)) : b("", !0)
|
|
1233
1245
|
]),
|
|
1234
1246
|
_: 1
|
|
1235
1247
|
}),
|
|
@@ -1242,13 +1254,13 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
1242
1254
|
_: 1
|
|
1243
1255
|
}));
|
|
1244
1256
|
}
|
|
1245
|
-
}),
|
|
1257
|
+
}), Ds = {
|
|
1246
1258
|
key: 0,
|
|
1247
1259
|
class: "flex flex-col"
|
|
1248
|
-
},
|
|
1260
|
+
}, js = { class: "flex" }, Ts = { class: "flex-shrink-0" }, zs = { class: "ml-3" }, Ls = { class: "mt-4" }, As = { class: "-mx-2 -my-1.5 flex" }, Ns = ["onClick"], Os = {
|
|
1249
1261
|
key: 1,
|
|
1250
1262
|
class: "flex flex-col animate-pulse"
|
|
1251
|
-
},
|
|
1263
|
+
}, Is = /* @__PURE__ */ M({
|
|
1252
1264
|
__name: "uiAlert",
|
|
1253
1265
|
props: {
|
|
1254
1266
|
actions: {},
|
|
@@ -1261,9 +1273,9 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
1261
1273
|
const l = i, a = (r) => {
|
|
1262
1274
|
l("alertEvent", r.event);
|
|
1263
1275
|
};
|
|
1264
|
-
return (r, o) => r.loading ? (s(), n("div",
|
|
1276
|
+
return (r, o) => r.loading ? (s(), n("div", Os, o[0] || (o[0] = [
|
|
1265
1277
|
Q('<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)
|
|
1266
|
-
]))) : (s(), n("div",
|
|
1278
|
+
]))) : (s(), n("div", Ds, [
|
|
1267
1279
|
e("div", {
|
|
1268
1280
|
class: h([{
|
|
1269
1281
|
"bg-indigo-50 border-indigo-400": r.type === "info",
|
|
@@ -1272,30 +1284,30 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
1272
1284
|
"bg-green-50 border-green-400": r.type === "success"
|
|
1273
1285
|
}, "p-4 border-l-4 rounded"])
|
|
1274
1286
|
}, [
|
|
1275
|
-
e("div",
|
|
1276
|
-
e("div",
|
|
1277
|
-
r.type === "info" ? (s(),
|
|
1287
|
+
e("div", js, [
|
|
1288
|
+
e("div", Ts, [
|
|
1289
|
+
r.type === "info" ? (s(), k(c(Ge), {
|
|
1278
1290
|
key: 0,
|
|
1279
1291
|
class: "h-8 w-8 text-indigo-400",
|
|
1280
1292
|
"aria-hidden": "true"
|
|
1281
1293
|
})) : b("", !0),
|
|
1282
|
-
r.type === "danger" ? (s(),
|
|
1294
|
+
r.type === "danger" ? (s(), k(c(me), {
|
|
1283
1295
|
key: 1,
|
|
1284
1296
|
class: "h-8 w-8 text-red-400",
|
|
1285
1297
|
"aria-hidden": "true"
|
|
1286
1298
|
})) : b("", !0),
|
|
1287
|
-
r.type === "warning" ? (s(),
|
|
1299
|
+
r.type === "warning" ? (s(), k(c(H), {
|
|
1288
1300
|
key: 2,
|
|
1289
1301
|
class: "h-8 w-8 text-yellow-400",
|
|
1290
1302
|
"aria-hidden": "true"
|
|
1291
1303
|
})) : b("", !0),
|
|
1292
|
-
r.type === "success" ? (s(),
|
|
1304
|
+
r.type === "success" ? (s(), k(c(Ze), {
|
|
1293
1305
|
key: 3,
|
|
1294
1306
|
class: "h-8 w-8 text-green-400",
|
|
1295
1307
|
"aria-hidden": "true"
|
|
1296
1308
|
})) : b("", !0)
|
|
1297
1309
|
]),
|
|
1298
|
-
e("div",
|
|
1310
|
+
e("div", zs, [
|
|
1299
1311
|
e("h3", {
|
|
1300
1312
|
class: h([{
|
|
1301
1313
|
"text-red-800": r.type === "danger",
|
|
@@ -1312,9 +1324,9 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
1312
1324
|
}, [
|
|
1313
1325
|
q(r.$slots, "default")
|
|
1314
1326
|
], 2),
|
|
1315
|
-
e("div",
|
|
1316
|
-
e("div",
|
|
1317
|
-
(s(!0), n(
|
|
1327
|
+
e("div", Ls, [
|
|
1328
|
+
e("div", As, [
|
|
1329
|
+
(s(!0), n(_, null, $(r.actions, (t, d) => (s(), n("button", {
|
|
1318
1330
|
onClick: (u) => a(t),
|
|
1319
1331
|
type: "button",
|
|
1320
1332
|
key: d,
|
|
@@ -1327,7 +1339,7 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
1327
1339
|
},
|
|
1328
1340
|
"px-2 py-1.5 text-sm font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2"
|
|
1329
1341
|
])
|
|
1330
|
-
}, g(t.name), 11,
|
|
1342
|
+
}, g(t.name), 11, Ns))), 128))
|
|
1331
1343
|
])
|
|
1332
1344
|
])
|
|
1333
1345
|
])
|
|
@@ -1335,20 +1347,20 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
1335
1347
|
], 2)
|
|
1336
1348
|
]));
|
|
1337
1349
|
}
|
|
1338
|
-
}),
|
|
1350
|
+
}), Ys = {
|
|
1339
1351
|
key: 0,
|
|
1340
1352
|
class: "inline-flex",
|
|
1341
1353
|
"aria-label": "Breadcrumb"
|
|
1342
|
-
},
|
|
1354
|
+
}, Ps = {
|
|
1343
1355
|
role: "list",
|
|
1344
1356
|
class: "flex items-center space-x-4 text-xs"
|
|
1345
|
-
},
|
|
1357
|
+
}, Vs = { key: 0 }, Fs = ["onClick"], qs = {
|
|
1346
1358
|
key: 1,
|
|
1347
1359
|
class: "flex items-center"
|
|
1348
|
-
},
|
|
1360
|
+
}, Rs = ["onClick"], Us = {
|
|
1349
1361
|
key: 1,
|
|
1350
1362
|
class: "flex flex-row items-center animate-pulse"
|
|
1351
|
-
},
|
|
1363
|
+
}, Hs = /* @__PURE__ */ M({
|
|
1352
1364
|
__name: "uiBreadcrumbs",
|
|
1353
1365
|
props: {
|
|
1354
1366
|
pages: {},
|
|
@@ -1356,26 +1368,26 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
1356
1368
|
},
|
|
1357
1369
|
emits: ["breadCrumbClicked"],
|
|
1358
1370
|
setup(m, { emit: i }) {
|
|
1359
|
-
return (l, a) => l.loading ? (s(), n("div",
|
|
1371
|
+
return (l, a) => l.loading ? (s(), n("div", Us, a[0] || (a[0] = [
|
|
1360
1372
|
e("div", { class: "animate-pulse rounded-full bg-gray-200 dark:bg-gray-300 h-4 w-4 mr-4" }, null, -1),
|
|
1361
1373
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5 mr-4" }, null, -1),
|
|
1362
1374
|
e("div", { class: "animate-pulse rounded-full bg-gray-200 dark:bg-gray-300 h-4 w-4 mr-4" }, null, -1),
|
|
1363
1375
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5" }, null, -1)
|
|
1364
|
-
]))) : (s(), n("nav",
|
|
1365
|
-
e("ol",
|
|
1366
|
-
(s(!0), n(
|
|
1367
|
-
o == 0 ? (s(), n("div",
|
|
1376
|
+
]))) : (s(), n("nav", Ys, [
|
|
1377
|
+
e("ol", Ps, [
|
|
1378
|
+
(s(!0), n(_, null, $(l.pages, (r, o) => (s(), n("li", { key: o }, [
|
|
1379
|
+
o == 0 ? (s(), n("div", Vs, [
|
|
1368
1380
|
e("p", {
|
|
1369
1381
|
onClick: (t) => l.$emit("breadCrumbClicked", r.routeName),
|
|
1370
1382
|
class: "flex flex-row items-center justify-center text-indigo-600 hover:text-indigo-800 cursor-pointer"
|
|
1371
1383
|
}, [
|
|
1372
|
-
p(c(
|
|
1384
|
+
p(c(Ot), {
|
|
1373
1385
|
class: "flex-shrink-0 h-3 w-3 text-gray-400 mr-4",
|
|
1374
1386
|
"aria-hidden": "true"
|
|
1375
1387
|
}),
|
|
1376
1388
|
e("span", null, g(r.name), 1)
|
|
1377
|
-
], 8,
|
|
1378
|
-
])) : (s(), n("div",
|
|
1389
|
+
], 8, Fs)
|
|
1390
|
+
])) : (s(), n("div", qs, [
|
|
1379
1391
|
p(c(ee), {
|
|
1380
1392
|
class: "flex-shrink-0 h-3 w-3 text-gray-400",
|
|
1381
1393
|
"aria-hidden": "true"
|
|
@@ -1384,19 +1396,19 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
1384
1396
|
onClick: (t) => l.$emit("breadCrumbClicked", r.routeName),
|
|
1385
1397
|
class: h(["cursor-pointer ml-4 text-xs text-gray-400 hover:text-gray-500", { "text-indigo-600 hover:text-indigo-800": !r.current }]),
|
|
1386
1398
|
"aria-current": "page"
|
|
1387
|
-
}, g(r.name), 11,
|
|
1399
|
+
}, g(r.name), 11, Rs)
|
|
1388
1400
|
]))
|
|
1389
1401
|
]))), 128))
|
|
1390
1402
|
])
|
|
1391
1403
|
]));
|
|
1392
1404
|
}
|
|
1393
|
-
}),
|
|
1405
|
+
}), Es = { class: "flex items-center flex-col sm:flex-row justify-center sm:justify-start" }, Zs = ["src"], Js = { class: "font-bold text-center sm:text-left" }, Ws = { class: "mt-1 text-xs text-center sm:text-left" }, Gs = {
|
|
1394
1406
|
key: 0,
|
|
1395
1407
|
class: "flex flex-wrap mt-4 justify-center sm:justify-start"
|
|
1396
|
-
},
|
|
1408
|
+
}, Qs = {
|
|
1397
1409
|
key: 1,
|
|
1398
1410
|
class: "rounded-lg bg-white shadow p-6 cursor-pointer animate-pulse"
|
|
1399
|
-
},
|
|
1411
|
+
}, Ks = /* @__PURE__ */ M({
|
|
1400
1412
|
__name: "uiCard",
|
|
1401
1413
|
props: {
|
|
1402
1414
|
id: {},
|
|
@@ -1410,25 +1422,25 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
1410
1422
|
setup(m, { emit: i }) {
|
|
1411
1423
|
return (l, a) => {
|
|
1412
1424
|
var r;
|
|
1413
|
-
return l.loading ? (s(), n("div",
|
|
1425
|
+
return l.loading ? (s(), n("div", Qs, a[1] || (a[1] = [
|
|
1414
1426
|
Q('<div class="flex items-center flex-col sm:flex-row justify-center sm:justify-start w-full"><div class="w-16 h-16 rounded-full bg-gray-200 flex self-center"></div><div class="w-full ml-4"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full mt-4 sm:mt-0 sm:w-16 mb-2"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full sm:w-32"></div></div></div>', 1)
|
|
1415
1427
|
]))) : (s(), n("div", {
|
|
1416
1428
|
key: 0,
|
|
1417
1429
|
class: "rounded-lg bg-white shadow p-6 cursor-pointer",
|
|
1418
1430
|
onClick: a[0] || (a[0] = (o) => l.$emit("cardSelected", { id: l.id, name: l.name, type: l.type, tags: l.tags }))
|
|
1419
1431
|
}, [
|
|
1420
|
-
e("div",
|
|
1432
|
+
e("div", Es, [
|
|
1421
1433
|
e("img", {
|
|
1422
1434
|
class: "w-16 h-16 rounded-full mb-4 sm:mb-0 sm:mr-4",
|
|
1423
1435
|
src: l.logo
|
|
1424
|
-
}, null, 8,
|
|
1436
|
+
}, null, 8, Zs),
|
|
1425
1437
|
e("div", null, [
|
|
1426
|
-
e("h4",
|
|
1427
|
-
e("p",
|
|
1438
|
+
e("h4", Js, g(l.name), 1),
|
|
1439
|
+
e("p", Ws, g(l.type), 1)
|
|
1428
1440
|
])
|
|
1429
1441
|
]),
|
|
1430
|
-
l.tags && ((r = l.tags) == null ? void 0 : r.length) > 0 ? (s(), n("div",
|
|
1431
|
-
(s(!0), n(
|
|
1442
|
+
l.tags && ((r = l.tags) == null ? void 0 : r.length) > 0 ? (s(), n("div", Gs, [
|
|
1443
|
+
(s(!0), n(_, null, $(l.tags, (o) => (s(), k(U, {
|
|
1432
1444
|
class: "mb-1 mr-1",
|
|
1433
1445
|
key: o.name,
|
|
1434
1446
|
color: o.color,
|
|
@@ -1443,7 +1455,7 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
1443
1455
|
]));
|
|
1444
1456
|
};
|
|
1445
1457
|
}
|
|
1446
|
-
}),
|
|
1458
|
+
}), Ke = /* @__PURE__ */ M({
|
|
1447
1459
|
__name: "uiFilter",
|
|
1448
1460
|
props: {
|
|
1449
1461
|
items: {},
|
|
@@ -1458,7 +1470,7 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
1458
1470
|
d.active = d.value === t.value;
|
|
1459
1471
|
}), l("filterSelected", t);
|
|
1460
1472
|
}, o = N(a.items);
|
|
1461
|
-
return (t, d) => (s(),
|
|
1473
|
+
return (t, d) => (s(), k(fe, {
|
|
1462
1474
|
class: "text-nowrap",
|
|
1463
1475
|
loading: t.loading,
|
|
1464
1476
|
onOptionSelected: d[0] || (d[0] = (u) => r(u)),
|
|
@@ -1467,10 +1479,10 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
1467
1479
|
label: t.label
|
|
1468
1480
|
}, null, 8, ["loading", "position", "items", "label"]));
|
|
1469
1481
|
}
|
|
1470
|
-
}),
|
|
1482
|
+
}), Xs = { class: "fixed inset-0 z-10 overflow-y-auto" }, eo = { class: "flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0" }, to = { class: "absolute top-0 right-0 hidden pt-4 pr-4 sm:block" }, so = { class: "sm:flex sm:items-start" }, oo = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left sm:mr-4 sm:w-10/12 break-words" }, lo = { class: "mt-4 text-gray-500 text-sm" }, ro = {
|
|
1471
1483
|
key: 0,
|
|
1472
1484
|
class: "mt-8"
|
|
1473
|
-
},
|
|
1485
|
+
}, no = ["onClick"], Xe = /* @__PURE__ */ M({
|
|
1474
1486
|
__name: "uiModal",
|
|
1475
1487
|
props: {
|
|
1476
1488
|
title: {},
|
|
@@ -1485,7 +1497,7 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
1485
1497
|
const l = m, a = i, r = (o) => {
|
|
1486
1498
|
a("modalAction", { modal: l.modalName, action: o });
|
|
1487
1499
|
};
|
|
1488
|
-
return (o, t) => (s(),
|
|
1500
|
+
return (o, t) => (s(), k(c(_e), {
|
|
1489
1501
|
as: "template",
|
|
1490
1502
|
show: o.open
|
|
1491
1503
|
}, {
|
|
@@ -1510,8 +1522,8 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
1510
1522
|
])),
|
|
1511
1523
|
_: 1
|
|
1512
1524
|
}),
|
|
1513
|
-
e("div",
|
|
1514
|
-
e("div",
|
|
1525
|
+
e("div", Xs, [
|
|
1526
|
+
e("div", eo, [
|
|
1515
1527
|
p(c(G), {
|
|
1516
1528
|
as: "template",
|
|
1517
1529
|
enter: "ease-out duration-300",
|
|
@@ -1524,7 +1536,7 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
1524
1536
|
default: v(() => [
|
|
1525
1537
|
p(c(Ce), { class: "relative transform rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl transition-all sm:my-8 w-9/12 sm:w-full sm:max-w-lg sm:p-6" }, {
|
|
1526
1538
|
default: v(() => [
|
|
1527
|
-
e("div",
|
|
1539
|
+
e("div", to, [
|
|
1528
1540
|
e("button", {
|
|
1529
1541
|
type: "button",
|
|
1530
1542
|
class: "rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none",
|
|
@@ -1538,7 +1550,7 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
1538
1550
|
}, null, 8, ["icon", "loading"])
|
|
1539
1551
|
])
|
|
1540
1552
|
]),
|
|
1541
|
-
e("div",
|
|
1553
|
+
e("div", so, [
|
|
1542
1554
|
e("div", {
|
|
1543
1555
|
class: h(["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", {
|
|
1544
1556
|
"bg-red-100": o.type === "danger",
|
|
@@ -1565,14 +1577,14 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
1565
1577
|
}, null, 512), [
|
|
1566
1578
|
[D, o.type === "warning"]
|
|
1567
1579
|
]),
|
|
1568
|
-
C(p(c(
|
|
1580
|
+
C(p(c(Nt), {
|
|
1569
1581
|
class: "h-6 w-6 text-indigo-600",
|
|
1570
1582
|
"aria-hidden": "true"
|
|
1571
1583
|
}, null, 512), [
|
|
1572
1584
|
[D, o.type === "default"]
|
|
1573
1585
|
])
|
|
1574
1586
|
], 2),
|
|
1575
|
-
e("div",
|
|
1587
|
+
e("div", oo, [
|
|
1576
1588
|
p(c(Re), {
|
|
1577
1589
|
as: "h3",
|
|
1578
1590
|
class: "text-lg font-medium leading-6 text-gray-900"
|
|
@@ -1582,16 +1594,16 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
1582
1594
|
]),
|
|
1583
1595
|
_: 1
|
|
1584
1596
|
}),
|
|
1585
|
-
e("div",
|
|
1597
|
+
e("div", lo, [
|
|
1586
1598
|
q(o.$slots, "default")
|
|
1587
1599
|
]),
|
|
1588
|
-
o.actions ? (s(), n("div",
|
|
1589
|
-
(s(!0), n(
|
|
1600
|
+
o.actions ? (s(), n("div", ro, [
|
|
1601
|
+
(s(!0), n(_, null, $(o.actions, (d, u) => (s(), n("button", {
|
|
1590
1602
|
key: u,
|
|
1591
1603
|
type: "button",
|
|
1592
1604
|
class: "inline-flex w-full justify-center rounded-md border border-transparent bg-indigo-600 px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 mb-2 sm:mb-0 mr-2 sm:w-auto sm:text-sm",
|
|
1593
1605
|
onClick: (f) => r(d.value)
|
|
1594
|
-
}, g(d.name), 9,
|
|
1606
|
+
}, g(d.name), 9, no))), 128))
|
|
1595
1607
|
])) : b("", !0)
|
|
1596
1608
|
])
|
|
1597
1609
|
])
|
|
@@ -1610,10 +1622,10 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
1610
1622
|
_: 3
|
|
1611
1623
|
}, 8, ["show"]));
|
|
1612
1624
|
}
|
|
1613
|
-
}),
|
|
1625
|
+
}), ao = { class: "w-full flex flex-col items-center space-y-4 sm:items-end" }, io = {
|
|
1614
1626
|
key: 0,
|
|
1615
1627
|
class: "max-w-sm w-full bg-white shadow-lg rounded-lg pointer-events-auto ring-1 ring-black ring-opacity-5 overflow-hidden"
|
|
1616
|
-
},
|
|
1628
|
+
}, uo = { class: "p-4" }, co = { class: "flex items-start" }, go = { class: "flex-shrink-0 mt-0.5" }, po = { class: "ml-3 w-0 flex-1 pt-0.5" }, mo = { class: "font-medium text-gray-900" }, fo = { class: "mt-1 text-sm text-gray-500" }, yo = { class: "ml-4 flex-shrink-0 flex" }, ho = /* @__PURE__ */ M({
|
|
1617
1629
|
__name: "uiNotification",
|
|
1618
1630
|
props: {
|
|
1619
1631
|
type: { default: "info" },
|
|
@@ -1629,7 +1641,7 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
1629
1641
|
"aria-live": "assertive",
|
|
1630
1642
|
class: h([{ fixed: r.fixed }, "inset-0 flex items-end px-4 py-6 pointer-events-none sm:p-6 sm:items-start"])
|
|
1631
1643
|
}, [
|
|
1632
|
-
e("div",
|
|
1644
|
+
e("div", ao, [
|
|
1633
1645
|
p(ce, {
|
|
1634
1646
|
"enter-active-class": "transform ease-out duration-300 transition",
|
|
1635
1647
|
"enter-from-class": "translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",
|
|
@@ -1639,10 +1651,10 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
1639
1651
|
"leave-to-class": "opacity-0"
|
|
1640
1652
|
}, {
|
|
1641
1653
|
default: v(() => [
|
|
1642
|
-
a.value ? (s(), n("div",
|
|
1643
|
-
e("div",
|
|
1644
|
-
e("div",
|
|
1645
|
-
e("div",
|
|
1654
|
+
a.value ? (s(), n("div", io, [
|
|
1655
|
+
e("div", uo, [
|
|
1656
|
+
e("div", co, [
|
|
1657
|
+
e("div", go, [
|
|
1646
1658
|
C(p(c(Ze), {
|
|
1647
1659
|
"aria-hidden": "true",
|
|
1648
1660
|
class: "h-6 w-6 text-green-400"
|
|
@@ -1661,18 +1673,18 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
1661
1673
|
}, null, 512), [
|
|
1662
1674
|
[D, r.type === "warning"]
|
|
1663
1675
|
]),
|
|
1664
|
-
C(p(c(
|
|
1676
|
+
C(p(c(Ge), {
|
|
1665
1677
|
"aria-hidden": "true",
|
|
1666
1678
|
class: "h-6 w-6 text-indigo-600"
|
|
1667
1679
|
}, null, 512), [
|
|
1668
1680
|
[D, r.type === "info"]
|
|
1669
1681
|
])
|
|
1670
1682
|
]),
|
|
1671
|
-
e("div",
|
|
1672
|
-
e("p",
|
|
1673
|
-
e("p",
|
|
1683
|
+
e("div", po, [
|
|
1684
|
+
e("p", mo, g(r.title), 1),
|
|
1685
|
+
e("p", fo, g(r.message), 1)
|
|
1674
1686
|
]),
|
|
1675
|
-
e("div",
|
|
1687
|
+
e("div", yo, [
|
|
1676
1688
|
e("button", {
|
|
1677
1689
|
class: "bg-white rounded-md inline-flex text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",
|
|
1678
1690
|
type: "button",
|
|
@@ -1694,35 +1706,35 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
1694
1706
|
])
|
|
1695
1707
|
], 2));
|
|
1696
1708
|
}
|
|
1697
|
-
}),
|
|
1709
|
+
}), vo = {
|
|
1698
1710
|
key: 0,
|
|
1699
1711
|
role: "list",
|
|
1700
1712
|
class: "divide-y divide-gray-100"
|
|
1701
|
-
},
|
|
1713
|
+
}, bo = { class: "min-w-0" }, wo = { class: "flex items-start gap-x-3" }, xo = { class: "text-sm font-semibold leading-6 text-gray-900" }, ko = { class: "mt-1 flex items-center gap-x-2 text-xs leading-5 text-gray-500" }, _o = { class: "truncate" }, $o = { class: "flex flex-none items-center gap-x-4" }, Co = ["href"], So = { class: "sr-only" }, Bo = {
|
|
1702
1714
|
key: 1,
|
|
1703
1715
|
class: "divide-y divide-gray-100 animate-pulse"
|
|
1704
|
-
},
|
|
1716
|
+
}, Mo = /* @__PURE__ */ M({
|
|
1705
1717
|
__name: "uiTaskList",
|
|
1706
1718
|
props: {
|
|
1707
1719
|
tasks: {},
|
|
1708
1720
|
loading: { type: Boolean, default: !0 }
|
|
1709
1721
|
},
|
|
1710
1722
|
setup(m) {
|
|
1711
|
-
return (i, l) => i.loading ? (s(), n("ul",
|
|
1712
|
-
(s(!0), n(
|
|
1723
|
+
return (i, l) => i.loading ? (s(), n("ul", Bo, [
|
|
1724
|
+
(s(!0), n(_, null, $(i.tasks, (a) => (s(), n("li", {
|
|
1713
1725
|
key: a.id,
|
|
1714
1726
|
class: "flex items-center justify-between gap-x-6 py-5"
|
|
1715
1727
|
}, l[0] || (l[0] = [
|
|
1716
1728
|
Q('<div class="min-w-0 w-full"><div class="flex items-start gap-x-3"><p class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2"></p></div></div><div class="flex flex-none items-center gap-x-4"><div class="hidden rounded-md bg-gray-200 px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:block"><p class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-10"></p></div></div>', 2)
|
|
1717
1729
|
])))), 128))
|
|
1718
|
-
])) : (s(), n("ul",
|
|
1719
|
-
(s(!0), n(
|
|
1730
|
+
])) : (s(), n("ul", vo, [
|
|
1731
|
+
(s(!0), n(_, null, $(i.tasks, (a) => (s(), n("li", {
|
|
1720
1732
|
key: a.id,
|
|
1721
1733
|
class: "flex items-center justify-between gap-x-6 py-5"
|
|
1722
1734
|
}, [
|
|
1723
|
-
e("div",
|
|
1724
|
-
e("div",
|
|
1725
|
-
e("p",
|
|
1735
|
+
e("div", bo, [
|
|
1736
|
+
e("div", wo, [
|
|
1737
|
+
e("p", xo, g(a.name), 1),
|
|
1726
1738
|
e("p", {
|
|
1727
1739
|
class: h([
|
|
1728
1740
|
{
|
|
@@ -1734,32 +1746,32 @@ const Pt = { class: "flex justify-between" }, Vt = {
|
|
|
1734
1746
|
])
|
|
1735
1747
|
}, g(a.statusLiteral), 3)
|
|
1736
1748
|
]),
|
|
1737
|
-
e("div",
|
|
1738
|
-
e("p",
|
|
1749
|
+
e("div", ko, [
|
|
1750
|
+
e("p", _o, g(a.description), 1)
|
|
1739
1751
|
])
|
|
1740
1752
|
]),
|
|
1741
|
-
e("div",
|
|
1753
|
+
e("div", $o, [
|
|
1742
1754
|
e("a", {
|
|
1743
1755
|
href: a.href,
|
|
1744
1756
|
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"
|
|
1745
1757
|
}, [
|
|
1746
1758
|
L(g(a.action), 1),
|
|
1747
|
-
e("span",
|
|
1748
|
-
], 8,
|
|
1759
|
+
e("span", So, ", " + g(a.name), 1)
|
|
1760
|
+
], 8, Co)
|
|
1749
1761
|
])
|
|
1750
1762
|
]))), 128))
|
|
1751
1763
|
]));
|
|
1752
1764
|
}
|
|
1753
1765
|
});
|
|
1754
|
-
function
|
|
1766
|
+
function Do(m) {
|
|
1755
1767
|
return m && m.__esModule && Object.prototype.hasOwnProperty.call(m, "default") ? m.default : m;
|
|
1756
1768
|
}
|
|
1757
|
-
var le = { exports: {} },
|
|
1758
|
-
function
|
|
1769
|
+
var le = { exports: {} }, jo = le.exports, je;
|
|
1770
|
+
function To() {
|
|
1759
1771
|
return je || (je = 1, function(m, i) {
|
|
1760
1772
|
(function(l, a) {
|
|
1761
1773
|
m.exports = a(z);
|
|
1762
|
-
})(
|
|
1774
|
+
})(jo, function(l) {
|
|
1763
1775
|
function a(t) {
|
|
1764
1776
|
return t && typeof t == "object" && "default" in t ? t : { default: t };
|
|
1765
1777
|
}
|
|
@@ -1770,13 +1782,13 @@ function jo() {
|
|
|
1770
1782
|
});
|
|
1771
1783
|
}(le)), le.exports;
|
|
1772
1784
|
}
|
|
1773
|
-
|
|
1774
|
-
var re = { exports: {} },
|
|
1775
|
-
function
|
|
1785
|
+
To();
|
|
1786
|
+
var re = { exports: {} }, zo = re.exports, Te;
|
|
1787
|
+
function Lo() {
|
|
1776
1788
|
return Te || (Te = 1, function(m, i) {
|
|
1777
1789
|
(function(l, a) {
|
|
1778
1790
|
m.exports = a(z);
|
|
1779
|
-
})(
|
|
1791
|
+
})(zo, function(l) {
|
|
1780
1792
|
function a(u) {
|
|
1781
1793
|
return u && typeof u == "object" && "default" in u ? u : { default: u };
|
|
1782
1794
|
}
|
|
@@ -1792,13 +1804,13 @@ function zo() {
|
|
|
1792
1804
|
});
|
|
1793
1805
|
}(re)), re.exports;
|
|
1794
1806
|
}
|
|
1795
|
-
|
|
1796
|
-
var ne = { exports: {} },
|
|
1797
|
-
function
|
|
1807
|
+
Lo();
|
|
1808
|
+
var ne = { exports: {} }, Ao = ne.exports, ze;
|
|
1809
|
+
function No() {
|
|
1798
1810
|
return ze || (ze = 1, function(m, i) {
|
|
1799
1811
|
(function(l, a) {
|
|
1800
1812
|
m.exports = a();
|
|
1801
|
-
})(
|
|
1813
|
+
})(Ao, function() {
|
|
1802
1814
|
return { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(l) {
|
|
1803
1815
|
var a = ["th", "st", "nd", "rd"], r = l % 100;
|
|
1804
1816
|
return "[" + l + (a[(r - 20) % 10] || a[r] || a[0]) + "]";
|
|
@@ -1806,13 +1818,13 @@ function Ao() {
|
|
|
1806
1818
|
});
|
|
1807
1819
|
}(ne)), ne.exports;
|
|
1808
1820
|
}
|
|
1809
|
-
|
|
1810
|
-
var ae = { exports: {} },
|
|
1811
|
-
function
|
|
1821
|
+
No();
|
|
1822
|
+
var ae = { exports: {} }, Oo = ae.exports, Le;
|
|
1823
|
+
function Io() {
|
|
1812
1824
|
return Le || (Le = 1, function(m, i) {
|
|
1813
1825
|
(function(l, a) {
|
|
1814
1826
|
m.exports = a(z);
|
|
1815
|
-
})(
|
|
1827
|
+
})(Oo, function(l) {
|
|
1816
1828
|
function a(t) {
|
|
1817
1829
|
return t && typeof t == "object" && "default" in t ? t : { default: t };
|
|
1818
1830
|
}
|
|
@@ -1823,13 +1835,13 @@ function Oo() {
|
|
|
1823
1835
|
});
|
|
1824
1836
|
}(ae)), ae.exports;
|
|
1825
1837
|
}
|
|
1826
|
-
|
|
1838
|
+
Io();
|
|
1827
1839
|
const te = (m, i) => {
|
|
1828
1840
|
const l = m.__vccOpts || m;
|
|
1829
1841
|
for (const [a, r] of i)
|
|
1830
1842
|
l[a] = r;
|
|
1831
1843
|
return l;
|
|
1832
|
-
},
|
|
1844
|
+
}, Yo = {
|
|
1833
1845
|
name: "dateSelector",
|
|
1834
1846
|
components: { ChevronLeftIcon: Je, ChevronRightIcon: ee },
|
|
1835
1847
|
computed: {
|
|
@@ -1859,11 +1871,11 @@ const te = (m, i) => {
|
|
|
1859
1871
|
i === "next" && (m === "day" && (l = z(this.selectedDate).add(1, "day")), m === "month" && (l = z(this.selectedDate).add(1, "month")), m === "year" && (l = z(this.selectedDate).add(1, "year"))), this.$emit("dateSelected", l);
|
|
1860
1872
|
}
|
|
1861
1873
|
}
|
|
1862
|
-
},
|
|
1863
|
-
function
|
|
1874
|
+
}, Po = { class: "dateSelector flex items-center text-white flex-row" }, Vo = { class: "pagination flex items-center my-1 md:my-0" }, Fo = { class: "date mx-4 font-bold text-center text-indigo-600 select-none uppercase" }, qo = { class: "pagination flex items-center my-1 sm:my-0" };
|
|
1875
|
+
function Ro(m, i, l, a, r, o) {
|
|
1864
1876
|
const t = De("ChevronLeftIcon"), d = De("ChevronRightIcon");
|
|
1865
|
-
return s(), n("div",
|
|
1866
|
-
e("div",
|
|
1877
|
+
return s(), n("div", Po, [
|
|
1878
|
+
e("div", Vo, [
|
|
1867
1879
|
e("div", {
|
|
1868
1880
|
class: h([{
|
|
1869
1881
|
"bg-indigo-600 hover:bg-indigo-800 cursor-pointer": o.currentDate > o.today,
|
|
@@ -1895,8 +1907,8 @@ function qo(m, i, l, a, r, o) {
|
|
|
1895
1907
|
p(t, { class: "h-4" })
|
|
1896
1908
|
], 2)
|
|
1897
1909
|
]),
|
|
1898
|
-
e("div",
|
|
1899
|
-
e("div",
|
|
1910
|
+
e("div", Fo, g(o.formatedDate), 1),
|
|
1911
|
+
e("div", qo, [
|
|
1900
1912
|
e("div", {
|
|
1901
1913
|
class: "previousDay flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm",
|
|
1902
1914
|
onClick: i[3] || (i[3] = (u) => o.selectDate("day", "next"))
|
|
@@ -1921,16 +1933,16 @@ function qo(m, i, l, a, r, o) {
|
|
|
1921
1933
|
])
|
|
1922
1934
|
]);
|
|
1923
1935
|
}
|
|
1924
|
-
const
|
|
1936
|
+
const Uo = /* @__PURE__ */ te(Yo, [["render", Ro]]), Ho = {
|
|
1925
1937
|
name: "SkeletonTable"
|
|
1926
|
-
},
|
|
1927
|
-
function
|
|
1928
|
-
return s(), n("div",
|
|
1929
|
-
e("div",
|
|
1930
|
-
e("div",
|
|
1931
|
-
e("div",
|
|
1932
|
-
e("div",
|
|
1933
|
-
e("table",
|
|
1938
|
+
}, Eo = { class: "px-4 sm:px-6 lg:px-8 animate-pulse" }, Zo = { class: "flow-root" }, Jo = { class: "-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8" }, Wo = { class: "inline-block min-w-full py-2 align-middle px-1" }, Go = { class: "overflow-hidden shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg" }, Qo = { class: "min-w-full divide-y divide-gray-300" }, Ko = { class: "divide-y divide-gray-200 bg-white" };
|
|
1939
|
+
function Xo(m, i, l, a, r, o) {
|
|
1940
|
+
return s(), n("div", Eo, [
|
|
1941
|
+
e("div", Zo, [
|
|
1942
|
+
e("div", Jo, [
|
|
1943
|
+
e("div", Wo, [
|
|
1944
|
+
e("div", Go, [
|
|
1945
|
+
e("table", Qo, [
|
|
1934
1946
|
i[1] || (i[1] = e("thead", { class: "bg-gray-50" }, [
|
|
1935
1947
|
e("tr", null, [
|
|
1936
1948
|
e("th", {
|
|
@@ -1967,8 +1979,8 @@ function Ko(m, i, l, a, r, o) {
|
|
|
1967
1979
|
])
|
|
1968
1980
|
])
|
|
1969
1981
|
], -1)),
|
|
1970
|
-
e("tbody",
|
|
1971
|
-
(s(), n(
|
|
1982
|
+
e("tbody", Ko, [
|
|
1983
|
+
(s(), n(_, null, $(10, (t) => e("tr", { key: t }, i[0] || (i[0] = [
|
|
1972
1984
|
e("td", { class: "whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6" }, [
|
|
1973
1985
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })
|
|
1974
1986
|
], -1),
|
|
@@ -2002,13 +2014,13 @@ function Ko(m, i, l, a, r, o) {
|
|
|
2002
2014
|
])
|
|
2003
2015
|
]);
|
|
2004
2016
|
}
|
|
2005
|
-
const
|
|
2006
|
-
var ie = { exports: {} },
|
|
2007
|
-
function
|
|
2017
|
+
const et = /* @__PURE__ */ te(Ho, [["render", Xo]]);
|
|
2018
|
+
var ie = { exports: {} }, el = ie.exports, Ae;
|
|
2019
|
+
function tl() {
|
|
2008
2020
|
return Ae || (Ae = 1, function(m, i) {
|
|
2009
2021
|
(function(l, a) {
|
|
2010
2022
|
m.exports = a();
|
|
2011
|
-
})(
|
|
2023
|
+
})(el, function() {
|
|
2012
2024
|
return function(l, a, r) {
|
|
2013
2025
|
a.prototype.isToday = function() {
|
|
2014
2026
|
var o = "YYYY-MM-DD", t = r();
|
|
@@ -2018,15 +2030,15 @@ function el() {
|
|
|
2018
2030
|
});
|
|
2019
2031
|
}(ie)), ie.exports;
|
|
2020
2032
|
}
|
|
2021
|
-
var
|
|
2022
|
-
const
|
|
2033
|
+
var sl = tl();
|
|
2034
|
+
const ol = /* @__PURE__ */ Do(sl), ll = {
|
|
2023
2035
|
name: "calendarDay",
|
|
2024
2036
|
props: {
|
|
2025
2037
|
day: Object
|
|
2026
2038
|
},
|
|
2027
2039
|
computed: {
|
|
2028
2040
|
currentDay() {
|
|
2029
|
-
return z.extend(
|
|
2041
|
+
return z.extend(ol), {
|
|
2030
2042
|
dayName: z(this.day).locale("es").format("ddd"),
|
|
2031
2043
|
day: z(this.day).locale("es").format("DD"),
|
|
2032
2044
|
month: z(this.day).locale("es").format("MMM."),
|
|
@@ -2035,8 +2047,8 @@ const sl = /* @__PURE__ */ Mo(tl), ol = {
|
|
|
2035
2047
|
};
|
|
2036
2048
|
}
|
|
2037
2049
|
}
|
|
2038
|
-
},
|
|
2039
|
-
function
|
|
2050
|
+
}, rl = { class: "text-xs" }, nl = { class: "font-bold text-lg" }, al = { class: "text-xs font-medium" };
|
|
2051
|
+
function il(m, i, l, a, r, o) {
|
|
2040
2052
|
return s(), n("div", {
|
|
2041
2053
|
class: h([
|
|
2042
2054
|
"day select-none text-center",
|
|
@@ -2046,12 +2058,12 @@ function al(m, i, l, a, r, o) {
|
|
|
2046
2058
|
}
|
|
2047
2059
|
])
|
|
2048
2060
|
}, [
|
|
2049
|
-
e("p",
|
|
2050
|
-
e("p",
|
|
2051
|
-
e("p",
|
|
2061
|
+
e("p", rl, g(o.currentDay.dayName), 1),
|
|
2062
|
+
e("p", nl, g(o.currentDay.day), 1),
|
|
2063
|
+
e("p", al, g(o.currentDay.month), 1)
|
|
2052
2064
|
], 2);
|
|
2053
2065
|
}
|
|
2054
|
-
const
|
|
2066
|
+
const dl = /* @__PURE__ */ te(ll, [["render", il]]), ul = {
|
|
2055
2067
|
name: "dayPrice",
|
|
2056
2068
|
props: {
|
|
2057
2069
|
currency: String,
|
|
@@ -2070,9 +2082,9 @@ const il = /* @__PURE__ */ te(ol, [["render", al]]), dl = {
|
|
|
2070
2082
|
};
|
|
2071
2083
|
}
|
|
2072
2084
|
}
|
|
2073
|
-
},
|
|
2074
|
-
function
|
|
2075
|
-
return s(), n("div",
|
|
2085
|
+
}, cl = { class: "priceDay" };
|
|
2086
|
+
function gl(m, i, l, a, r, o) {
|
|
2087
|
+
return s(), n("div", cl, [
|
|
2076
2088
|
e("div", {
|
|
2077
2089
|
class: h([
|
|
2078
2090
|
{
|
|
@@ -2085,58 +2097,58 @@ function cl(m, i, l, a, r, o) {
|
|
|
2085
2097
|
}, g(o.currentDay.price) + g(l.currency), 3)
|
|
2086
2098
|
]);
|
|
2087
2099
|
}
|
|
2088
|
-
const oe = /* @__PURE__ */ te(
|
|
2100
|
+
const oe = /* @__PURE__ */ te(ul, [["render", gl]]), pl = {
|
|
2089
2101
|
key: 0,
|
|
2090
2102
|
class: "px-4 sm:px-6 lg:px-8"
|
|
2091
|
-
},
|
|
2103
|
+
}, ml = { class: "flow-root" }, fl = { class: "overflow-x-auto sm:-mx-6 lg:-mx-8 shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg" }, yl = { class: "inline-block min-w-full align-middle" }, hl = { class: "min-w-full text-sm" }, vl = { class: "bg-white" }, bl = {
|
|
2092
2104
|
colspan: "6",
|
|
2093
2105
|
scope: "colgroup",
|
|
2094
2106
|
class: "bg-gray-50 py-2 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-3"
|
|
2095
|
-
},
|
|
2107
|
+
}, wl = {
|
|
2096
2108
|
colspan: "20",
|
|
2097
2109
|
scope: "colgroup",
|
|
2098
2110
|
class: "bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900"
|
|
2099
|
-
},
|
|
2111
|
+
}, xl = { key: 0 }, kl = {
|
|
2100
2112
|
colspan: "6",
|
|
2101
2113
|
class: "pl-4"
|
|
2102
|
-
},
|
|
2114
|
+
}, _l = { key: 1 }, $l = {
|
|
2103
2115
|
colspan: "6",
|
|
2104
2116
|
class: "pl-4"
|
|
2105
|
-
},
|
|
2117
|
+
}, Cl = { key: 2 }, Sl = {
|
|
2106
2118
|
colspan: "6",
|
|
2107
2119
|
class: "pl-4"
|
|
2108
|
-
},
|
|
2120
|
+
}, Bl = {
|
|
2109
2121
|
colspan: "20",
|
|
2110
2122
|
scope: "colgroup",
|
|
2111
2123
|
class: "bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900 relative"
|
|
2112
|
-
},
|
|
2124
|
+
}, Ml = {
|
|
2113
2125
|
key: 0,
|
|
2114
2126
|
class: "absolute top-0 left-12 flex h-12 items-center space-x-3 sm:left-48 bg-white shadow rounded px-4 py-1 z-10"
|
|
2115
|
-
},
|
|
2127
|
+
}, Dl = ["onClick"], jl = {
|
|
2116
2128
|
colspan: "2",
|
|
2117
2129
|
scope: "colgroup",
|
|
2118
2130
|
class: "relative bg-gray-100 py-3.5 pl-4 pr-3 text-left font-semibold text-gray-900"
|
|
2119
|
-
},
|
|
2131
|
+
}, Tl = ["checked", "indeterminate"], zl = { class: "pl-6" }, Ll = {
|
|
2120
2132
|
colspan: "2",
|
|
2121
2133
|
scope: "colgroup",
|
|
2122
2134
|
class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900"
|
|
2123
|
-
},
|
|
2135
|
+
}, Al = {
|
|
2124
2136
|
colspan: "2",
|
|
2125
2137
|
scope: "colgroup",
|
|
2126
2138
|
class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900"
|
|
2127
|
-
},
|
|
2139
|
+
}, Nl = {
|
|
2128
2140
|
colspan: "2",
|
|
2129
2141
|
class: "relative py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6"
|
|
2130
|
-
},
|
|
2142
|
+
}, Ol = {
|
|
2131
2143
|
key: 0,
|
|
2132
2144
|
class: "absolute inset-y-0 left-0 w-0.5 bg-indigo-600"
|
|
2133
|
-
},
|
|
2145
|
+
}, Il = ["value"], Yl = { class: "pl-6" }, Pl = {
|
|
2134
2146
|
colspan: "2",
|
|
2135
2147
|
class: "pl-4"
|
|
2136
|
-
},
|
|
2148
|
+
}, Vl = {
|
|
2137
2149
|
colspan: "2",
|
|
2138
2150
|
class: "pl-4"
|
|
2139
|
-
},
|
|
2151
|
+
}, Fl = /* @__PURE__ */ M({
|
|
2140
2152
|
__name: "uiPriceCalendar",
|
|
2141
2153
|
props: {
|
|
2142
2154
|
loading: { type: Boolean },
|
|
@@ -2169,32 +2181,32 @@ const oe = /* @__PURE__ */ te(dl, [["render", cl]]), gl = {
|
|
|
2169
2181
|
}, T = () => a("changeCategoryBulkPrices"), A = (x) => a("changeCategorySelectionPrice", x), S = (x) => a("changeCategoryUpgradePrice", x), B = (x) => a("tableAction", x), P = (x, Y, I) => a("changeRoomPrice", { price: x, roomId: Y, roomName: I });
|
|
2170
2182
|
return (x, Y) => {
|
|
2171
2183
|
var I, se;
|
|
2172
|
-
return x.loading ? (s(),
|
|
2173
|
-
e("div",
|
|
2174
|
-
e("div",
|
|
2175
|
-
e("div",
|
|
2176
|
-
e("table",
|
|
2177
|
-
e("tbody",
|
|
2184
|
+
return x.loading ? (s(), k(et, { key: 1 })) : (s(), n("div", pl, [
|
|
2185
|
+
e("div", ml, [
|
|
2186
|
+
e("div", fl, [
|
|
2187
|
+
e("div", yl, [
|
|
2188
|
+
e("table", hl, [
|
|
2189
|
+
e("tbody", vl, [
|
|
2178
2190
|
e("tr", null, [
|
|
2179
|
-
e("th",
|
|
2180
|
-
p(
|
|
2191
|
+
e("th", bl, [
|
|
2192
|
+
p(Uo, {
|
|
2181
2193
|
selectedDate: o.value,
|
|
2182
2194
|
onDateSelected: Y[0] || (Y[0] = (O) => f(O))
|
|
2183
2195
|
}, null, 8, ["selectedDate"])
|
|
2184
2196
|
]),
|
|
2185
|
-
(s(!0), n(
|
|
2197
|
+
(s(!0), n(_, null, $(d.value, (O, F) => (s(), n("th", {
|
|
2186
2198
|
scope: "col",
|
|
2187
2199
|
key: F,
|
|
2188
2200
|
class: "text-sm font-semibold text-gray-900 p-0"
|
|
2189
2201
|
}, [
|
|
2190
|
-
p(
|
|
2202
|
+
p(dl, {
|
|
2191
2203
|
class: "border-l border-gray-200 px-6 py-3",
|
|
2192
2204
|
day: O
|
|
2193
2205
|
}, null, 8, ["day"])
|
|
2194
2206
|
]))), 128))
|
|
2195
2207
|
]),
|
|
2196
2208
|
e("tr", null, [
|
|
2197
|
-
e("th",
|
|
2209
|
+
e("th", wl, [
|
|
2198
2210
|
e("span", null, g(x.literals.category) + " " + g(x.category.name), 1),
|
|
2199
2211
|
p(J, {
|
|
2200
2212
|
loading: x.loading,
|
|
@@ -2209,9 +2221,9 @@ const oe = /* @__PURE__ */ te(dl, [["render", cl]]), gl = {
|
|
|
2209
2221
|
}, 8, ["loading"])
|
|
2210
2222
|
])
|
|
2211
2223
|
]),
|
|
2212
|
-
x.type === "discounts" ? (s(), n("tr",
|
|
2213
|
-
e("td",
|
|
2214
|
-
(s(!0), n(
|
|
2224
|
+
x.type === "discounts" ? (s(), n("tr", xl, [
|
|
2225
|
+
e("td", kl, g(x.literals.pricesDiscount), 1),
|
|
2226
|
+
(s(!0), n(_, null, $(x.category.selectionPrices, (O, F) => (s(), n("td", {
|
|
2215
2227
|
key: F,
|
|
2216
2228
|
class: "p-0"
|
|
2217
2229
|
}, [
|
|
@@ -2224,9 +2236,9 @@ const oe = /* @__PURE__ */ te(dl, [["render", cl]]), gl = {
|
|
|
2224
2236
|
}, null, 8, ["onClick", "price", "currency"])
|
|
2225
2237
|
]))), 128))
|
|
2226
2238
|
])) : b("", !0),
|
|
2227
|
-
x.type === "prices" ? (s(), n("tr",
|
|
2228
|
-
e("td",
|
|
2229
|
-
(s(!0), n(
|
|
2239
|
+
x.type === "prices" ? (s(), n("tr", _l, [
|
|
2240
|
+
e("td", $l, g(x.literals.pricesSelection), 1),
|
|
2241
|
+
(s(!0), n(_, null, $(x.category.selectionPrices, (O, F) => (s(), n("td", {
|
|
2230
2242
|
key: F,
|
|
2231
2243
|
class: "p-0"
|
|
2232
2244
|
}, [
|
|
@@ -2239,9 +2251,9 @@ const oe = /* @__PURE__ */ te(dl, [["render", cl]]), gl = {
|
|
|
2239
2251
|
}, null, 8, ["onClick", "price", "currency"])
|
|
2240
2252
|
]))), 128))
|
|
2241
2253
|
])) : b("", !0),
|
|
2242
|
-
x.type === "prices" ? (s(), n("tr",
|
|
2243
|
-
e("td",
|
|
2244
|
-
(s(!0), n(
|
|
2254
|
+
x.type === "prices" ? (s(), n("tr", Cl, [
|
|
2255
|
+
e("td", Sl, g(x.literals.pricesUpgrade), 1),
|
|
2256
|
+
(s(!0), n(_, null, $(x.category.upgradePrices, (O, F) => (s(), n("td", {
|
|
2245
2257
|
key: F,
|
|
2246
2258
|
class: "p-0"
|
|
2247
2259
|
}, [
|
|
@@ -2255,56 +2267,56 @@ const oe = /* @__PURE__ */ te(dl, [["render", cl]]), gl = {
|
|
|
2255
2267
|
]))), 128))
|
|
2256
2268
|
])) : b("", !0),
|
|
2257
2269
|
e("tr", null, [
|
|
2258
|
-
e("th",
|
|
2259
|
-
((I = t.value) == null ? void 0 : I.length) > 0 && ((se = x.actions) == null ? void 0 : se.length) > 0 ? (s(), n("div",
|
|
2260
|
-
(s(!0), n(
|
|
2270
|
+
e("th", Bl, [
|
|
2271
|
+
((I = t.value) == null ? void 0 : I.length) > 0 && ((se = x.actions) == null ? void 0 : se.length) > 0 ? (s(), n("div", Ml, [
|
|
2272
|
+
(s(!0), n(_, null, $(x.actions, (O, F) => (s(), n("button", {
|
|
2261
2273
|
onClick: (K) => B({ action: O.id, items: t.value }),
|
|
2262
2274
|
key: F,
|
|
2263
2275
|
type: "button",
|
|
2264
2276
|
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"
|
|
2265
|
-
}, g(O.name), 9,
|
|
2277
|
+
}, g(O.name), 9, Dl))), 128))
|
|
2266
2278
|
])) : b("", !0),
|
|
2267
2279
|
e("span", null, g(x.literals.pricesSelection), 1)
|
|
2268
2280
|
])
|
|
2269
2281
|
]),
|
|
2270
2282
|
e("tr", null, [
|
|
2271
|
-
e("th",
|
|
2283
|
+
e("th", jl, [
|
|
2272
2284
|
e("input", {
|
|
2273
2285
|
type: "checkbox",
|
|
2274
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",
|
|
2275
2287
|
checked: u.value || t.value.length === x.rooms.length,
|
|
2276
2288
|
indeterminate: u.value,
|
|
2277
2289
|
onChange: w
|
|
2278
|
-
}, null, 40,
|
|
2279
|
-
e("span",
|
|
2290
|
+
}, null, 40, Tl),
|
|
2291
|
+
e("span", zl, g(x.literals.room), 1)
|
|
2280
2292
|
]),
|
|
2281
|
-
e("th",
|
|
2282
|
-
e("th",
|
|
2293
|
+
e("th", Ll, g(x.literals.building), 1),
|
|
2294
|
+
e("th", Al, g(x.literals.floor), 1),
|
|
2283
2295
|
Y[2] || (Y[2] = e("th", {
|
|
2284
2296
|
colspan: "14",
|
|
2285
2297
|
scope: "colgroup",
|
|
2286
2298
|
class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900"
|
|
2287
2299
|
}, null, -1))
|
|
2288
2300
|
]),
|
|
2289
|
-
(s(!0), n(
|
|
2301
|
+
(s(!0), n(_, null, $(x.rooms, (O) => (s(), n("tr", {
|
|
2290
2302
|
key: O.name,
|
|
2291
2303
|
class: h([{ "even:bg-gray-100": x.type === "prices", "odd:bg-gray-100": x.type === "discounts" }])
|
|
2292
2304
|
}, [
|
|
2293
|
-
e("td",
|
|
2294
|
-
t.value.length > 0 ? (s(), n("div",
|
|
2305
|
+
e("td", Nl, [
|
|
2306
|
+
t.value.length > 0 ? (s(), n("div", Ol)) : b("", !0),
|
|
2295
2307
|
C(e("input", {
|
|
2296
2308
|
type: "checkbox",
|
|
2297
2309
|
class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600",
|
|
2298
2310
|
value: O.name,
|
|
2299
2311
|
"onUpdate:modelValue": Y[1] || (Y[1] = (F) => t.value = F)
|
|
2300
|
-
}, null, 8,
|
|
2312
|
+
}, null, 8, Il), [
|
|
2301
2313
|
[Ie, t.value]
|
|
2302
2314
|
]),
|
|
2303
|
-
e("span",
|
|
2315
|
+
e("span", Yl, g(O.name), 1)
|
|
2304
2316
|
]),
|
|
2305
|
-
e("td",
|
|
2306
|
-
e("td",
|
|
2307
|
-
(s(!0), n(
|
|
2317
|
+
e("td", Pl, g(O.building), 1),
|
|
2318
|
+
e("td", Vl, g(O.floor), 1),
|
|
2319
|
+
(s(!0), n(_, null, $(O.selectionPrices, (F, K) => (s(), n("td", {
|
|
2308
2320
|
class: "p-0",
|
|
2309
2321
|
key: K
|
|
2310
2322
|
}, [
|
|
@@ -2325,10 +2337,10 @@ const oe = /* @__PURE__ */ te(dl, [["render", cl]]), gl = {
|
|
|
2325
2337
|
]));
|
|
2326
2338
|
};
|
|
2327
2339
|
}
|
|
2328
|
-
}),
|
|
2340
|
+
}), ql = { class: "chart-header flex flex-row items-center w-full justify-between" }, Rl = { class: "text-sm font-medium text-gray-500 truncate mr-8" }, Ul = {
|
|
2329
2341
|
key: 0,
|
|
2330
2342
|
class: "flex items-center gap-x-2 grow"
|
|
2331
|
-
},
|
|
2343
|
+
}, Hl = { class: "self-center ml-2" }, El = { class: "self-center ml-2" }, Zl = { class: "self-center ml-2" }, Jl = { class: "hidden sm:flex items-center" }, Wl = { class: "w-1/2 min-w-0 flex-1" }, Gl = ["max"], Ql = { class: "min-w-0 flex-1" }, Kl = ["max"], Xl = { class: "chart-content relative" }, er = /* @__PURE__ */ M({
|
|
2332
2344
|
__name: "uiChart",
|
|
2333
2345
|
props: {
|
|
2334
2346
|
labels: {},
|
|
@@ -2416,13 +2428,13 @@ const oe = /* @__PURE__ */ te(dl, [["render", cl]]), gl = {
|
|
|
2416
2428
|
}, y = V(() => r.series), w = V(() => u()), T = () => l("chartUpdated"), A = (S, B, P) => {
|
|
2417
2429
|
l("dataPointSelection", { id: r.id, chartContext: B, config: P, event: S });
|
|
2418
2430
|
};
|
|
2419
|
-
return (S, B) => (s(), n(
|
|
2431
|
+
return (S, B) => (s(), n(_, null, [
|
|
2420
2432
|
C(e("div", {
|
|
2421
2433
|
class: h(["h-[" + S.height + "px]", "card chart apex-chart p-4 bg-white shadow rounded-lg overflow-hidden flex grow"])
|
|
2422
2434
|
}, [
|
|
2423
|
-
e("div",
|
|
2424
|
-
e("div",
|
|
2425
|
-
S.isNps && S.npsLiterals ? (s(), n("div",
|
|
2435
|
+
e("div", ql, [
|
|
2436
|
+
e("div", Rl, g(S.title), 1),
|
|
2437
|
+
S.isNps && S.npsLiterals ? (s(), n("div", Ul, [
|
|
2426
2438
|
p(U, {
|
|
2427
2439
|
size: "small",
|
|
2428
2440
|
color: "red",
|
|
@@ -2430,11 +2442,11 @@ const oe = /* @__PURE__ */ te(dl, [["render", cl]]), gl = {
|
|
|
2430
2442
|
}, {
|
|
2431
2443
|
default: v(() => [
|
|
2432
2444
|
p(j, {
|
|
2433
|
-
icon: c(
|
|
2445
|
+
icon: c(Lt),
|
|
2434
2446
|
loading: !1,
|
|
2435
2447
|
color: "red"
|
|
2436
2448
|
}, null, 8, ["icon"]),
|
|
2437
|
-
e("span",
|
|
2449
|
+
e("span", Hl, g(S.npsLiterals.unhappy), 1)
|
|
2438
2450
|
]),
|
|
2439
2451
|
_: 1
|
|
2440
2452
|
}),
|
|
@@ -2445,11 +2457,11 @@ const oe = /* @__PURE__ */ te(dl, [["render", cl]]), gl = {
|
|
|
2445
2457
|
}, {
|
|
2446
2458
|
default: v(() => [
|
|
2447
2459
|
p(j, {
|
|
2448
|
-
icon: c(
|
|
2460
|
+
icon: c(zt),
|
|
2449
2461
|
loading: !1,
|
|
2450
2462
|
color: "yellow"
|
|
2451
2463
|
}, null, 8, ["icon"]),
|
|
2452
|
-
e("span",
|
|
2464
|
+
e("span", El, g(S.npsLiterals.neutral), 1)
|
|
2453
2465
|
]),
|
|
2454
2466
|
_: 1
|
|
2455
2467
|
}),
|
|
@@ -2460,17 +2472,17 @@ const oe = /* @__PURE__ */ te(dl, [["render", cl]]), gl = {
|
|
|
2460
2472
|
}, {
|
|
2461
2473
|
default: v(() => [
|
|
2462
2474
|
p(j, {
|
|
2463
|
-
icon: c(
|
|
2475
|
+
icon: c(At),
|
|
2464
2476
|
loading: !1,
|
|
2465
2477
|
color: "green"
|
|
2466
2478
|
}, null, 8, ["icon"]),
|
|
2467
|
-
e("span",
|
|
2479
|
+
e("span", Zl, g(S.npsLiterals.happy), 1)
|
|
2468
2480
|
]),
|
|
2469
2481
|
_: 1
|
|
2470
2482
|
})
|
|
2471
2483
|
])) : b("", !0),
|
|
2472
|
-
e("div",
|
|
2473
|
-
e("div",
|
|
2484
|
+
e("div", Jl, [
|
|
2485
|
+
e("div", Wl, [
|
|
2474
2486
|
C(e("input", {
|
|
2475
2487
|
type: "datetime-local",
|
|
2476
2488
|
"onUpdate:modelValue": B[0] || (B[0] = (P) => c(o).from = P),
|
|
@@ -2479,11 +2491,11 @@ const oe = /* @__PURE__ */ te(dl, [["render", cl]]), gl = {
|
|
|
2479
2491
|
name: "from",
|
|
2480
2492
|
id: "from",
|
|
2481
2493
|
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"
|
|
2482
|
-
}, null, 40,
|
|
2494
|
+
}, null, 40, Gl), [
|
|
2483
2495
|
[X, c(o).from]
|
|
2484
2496
|
])
|
|
2485
2497
|
]),
|
|
2486
|
-
e("div",
|
|
2498
|
+
e("div", Ql, [
|
|
2487
2499
|
C(e("input", {
|
|
2488
2500
|
type: "datetime-local",
|
|
2489
2501
|
"onUpdate:modelValue": B[1] || (B[1] = (P) => c(o).to = P),
|
|
@@ -2492,7 +2504,7 @@ const oe = /* @__PURE__ */ te(dl, [["render", cl]]), gl = {
|
|
|
2492
2504
|
name: "to",
|
|
2493
2505
|
id: "to",
|
|
2494
2506
|
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"
|
|
2495
|
-
}, null, 40,
|
|
2507
|
+
}, null, 40, Kl), [
|
|
2496
2508
|
[X, c(o).to]
|
|
2497
2509
|
])
|
|
2498
2510
|
]),
|
|
@@ -2505,7 +2517,7 @@ const oe = /* @__PURE__ */ te(dl, [["render", cl]]), gl = {
|
|
|
2505
2517
|
}, null, 8, ["loading", "icon"])
|
|
2506
2518
|
])
|
|
2507
2519
|
]),
|
|
2508
|
-
C(e("div",
|
|
2520
|
+
C(e("div", Xl, [
|
|
2509
2521
|
p(c(Me), {
|
|
2510
2522
|
class: "chart",
|
|
2511
2523
|
type: S.type,
|
|
@@ -2568,11 +2580,11 @@ const oe = /* @__PURE__ */ te(dl, [["render", cl]]), gl = {
|
|
|
2568
2580
|
])
|
|
2569
2581
|
], 64));
|
|
2570
2582
|
}
|
|
2571
|
-
}),
|
|
2583
|
+
}), tr = {
|
|
2572
2584
|
name: "uiFooter"
|
|
2573
|
-
},
|
|
2574
|
-
function
|
|
2575
|
-
return s(), n("footer",
|
|
2585
|
+
}, sr = { class: "bg-white" };
|
|
2586
|
+
function or(m, i, l, a, r, o) {
|
|
2587
|
+
return s(), n("footer", sr, i[0] || (i[0] = [
|
|
2576
2588
|
e("div", { class: "mx-auto py-6 px-4 sm:px-6 md:flex md:items-center md:justify-between lg:px-8" }, [
|
|
2577
2589
|
e("div", { class: "mt-8 md:mt-0 md:order-1" }, [
|
|
2578
2590
|
e("p", { class: "text-center text-base text-gray-400" }, "© Made by Hotelinking.")
|
|
@@ -2580,7 +2592,7 @@ function sr(m, i, l, a, r, o) {
|
|
|
2580
2592
|
], -1)
|
|
2581
2593
|
]));
|
|
2582
2594
|
}
|
|
2583
|
-
const
|
|
2595
|
+
const lr = /* @__PURE__ */ te(tr, [["render", or]]), rr = /* @__PURE__ */ M({
|
|
2584
2596
|
__name: "uiLoadingScreen",
|
|
2585
2597
|
props: {
|
|
2586
2598
|
title: {},
|
|
@@ -2608,22 +2620,22 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
2608
2620
|
])
|
|
2609
2621
|
], 2));
|
|
2610
2622
|
}
|
|
2611
|
-
}),
|
|
2623
|
+
}), nr = {
|
|
2612
2624
|
key: 0,
|
|
2613
2625
|
class: "py-6 flex items-center justify-between"
|
|
2614
|
-
},
|
|
2626
|
+
}, ar = { class: "flex-1 flex justify-between sm:hidden" }, ir = {
|
|
2615
2627
|
href: "#",
|
|
2616
2628
|
class: "relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50"
|
|
2617
|
-
},
|
|
2629
|
+
}, dr = {
|
|
2618
2630
|
href: "#",
|
|
2619
2631
|
class: "ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50"
|
|
2620
|
-
},
|
|
2632
|
+
}, ur = { class: "hidden sm:flex-1 sm:flex sm:items-center sm:justify-between" }, cr = { class: "text-sm text-gray-700" }, gr = { class: "font-bold mx-1" }, pr = { class: "font-bold mx-1" }, mr = {
|
|
2621
2633
|
class: "relative z-0 inline-flex rounded-md shadow-sm -space-x-px",
|
|
2622
2634
|
"aria-label": "Pagination"
|
|
2623
|
-
},
|
|
2635
|
+
}, fr = { class: "sr-only" }, yr = ["onClick"], hr = { class: "sr-only" }, vr = {
|
|
2624
2636
|
key: 1,
|
|
2625
2637
|
class: "py-6 flex flex-row justify-between items-center animate-pulse"
|
|
2626
|
-
},
|
|
2638
|
+
}, br = /* @__PURE__ */ M({
|
|
2627
2639
|
__name: "uiPagination",
|
|
2628
2640
|
props: {
|
|
2629
2641
|
current: {},
|
|
@@ -2642,35 +2654,35 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
2642
2654
|
u.push(f);
|
|
2643
2655
|
return u;
|
|
2644
2656
|
});
|
|
2645
|
-
return (u, f) => u.loading ? (s(), n("div",
|
|
2657
|
+
return (u, f) => u.loading ? (s(), n("div", vr, f[2] || (f[2] = [
|
|
2646
2658
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5" }, null, -1),
|
|
2647
2659
|
e("div", { class: "h-10 w-32 bg-gray-200 rounded dark:bg-gray-300" }, null, -1)
|
|
2648
|
-
]))) : (s(), n("div",
|
|
2649
|
-
e("div",
|
|
2650
|
-
e("a",
|
|
2660
|
+
]))) : (s(), n("div", nr, [
|
|
2661
|
+
e("div", ar, [
|
|
2662
|
+
e("a", ir, [
|
|
2651
2663
|
q(u.$slots, "previous")
|
|
2652
2664
|
]),
|
|
2653
|
-
e("a",
|
|
2665
|
+
e("a", dr, [
|
|
2654
2666
|
q(u.$slots, "next")
|
|
2655
2667
|
])
|
|
2656
2668
|
]),
|
|
2657
|
-
e("div",
|
|
2669
|
+
e("div", ur, [
|
|
2658
2670
|
e("div", null, [
|
|
2659
|
-
e("p",
|
|
2671
|
+
e("p", cr, [
|
|
2660
2672
|
q(u.$slots, "showing"),
|
|
2661
|
-
e("span",
|
|
2673
|
+
e("span", gr, g(u.current), 1),
|
|
2662
2674
|
q(u.$slots, "of"),
|
|
2663
|
-
e("span",
|
|
2675
|
+
e("span", pr, g(u.total), 1)
|
|
2664
2676
|
])
|
|
2665
2677
|
]),
|
|
2666
2678
|
e("div", null, [
|
|
2667
|
-
e("nav",
|
|
2679
|
+
e("nav", mr, [
|
|
2668
2680
|
C(e("button", {
|
|
2669
2681
|
ref: "test-first-button",
|
|
2670
2682
|
onClick: f[0] || (f[0] = (y) => l("changePage", u.current - 1)),
|
|
2671
2683
|
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"
|
|
2672
2684
|
}, [
|
|
2673
|
-
e("span",
|
|
2685
|
+
e("span", fr, [
|
|
2674
2686
|
q(u.$slots, "previous")
|
|
2675
2687
|
]),
|
|
2676
2688
|
p(c(Je), {
|
|
@@ -2680,20 +2692,20 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
2680
2692
|
], 512), [
|
|
2681
2693
|
[D, u.current !== 1]
|
|
2682
2694
|
]),
|
|
2683
|
-
(s(!0), n(
|
|
2695
|
+
(s(!0), n(_, null, $(d.value, (y) => (s(), n("button", {
|
|
2684
2696
|
onClick: (w) => l("changePage", y),
|
|
2685
2697
|
key: y,
|
|
2686
2698
|
"aria-current": "page",
|
|
2687
2699
|
class: h([[
|
|
2688
2700
|
y === u.current ? "z-10 bg-indigo-50 border-indigo-500 text-indigo-600" : "bg-white border-gray-300 text-gray-500 hover:bg-gray-50"
|
|
2689
2701
|
], "relative inline-flex items-center px-4 py-2 border text-sm font-medium"])
|
|
2690
|
-
}, g(y), 11,
|
|
2702
|
+
}, g(y), 11, yr))), 128)),
|
|
2691
2703
|
C(e("button", {
|
|
2692
2704
|
ref: "test-last-button",
|
|
2693
2705
|
onClick: f[1] || (f[1] = (y) => l("changePage", u.current + 1)),
|
|
2694
2706
|
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"
|
|
2695
2707
|
}, [
|
|
2696
|
-
e("span",
|
|
2708
|
+
e("span", hr, [
|
|
2697
2709
|
q(u.$slots, "next")
|
|
2698
2710
|
]),
|
|
2699
2711
|
p(c(ee), {
|
|
@@ -2708,25 +2720,25 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
2708
2720
|
])
|
|
2709
2721
|
]));
|
|
2710
2722
|
}
|
|
2711
|
-
}),
|
|
2723
|
+
}), wr = { class: "hidden md:flex md:flex-col sticky md:inset-y-0" }, xr = { class: "flex flex-col flex-grow overflow-y-auto" }, kr = { class: "grow flex flex-col" }, _r = {
|
|
2712
2724
|
class: "flex-1 space-y-1",
|
|
2713
2725
|
"aria-label": "Sidebar"
|
|
2714
|
-
},
|
|
2726
|
+
}, $r = { key: 0 }, Cr = ["onClick"], Sr = {
|
|
2715
2727
|
key: 1,
|
|
2716
2728
|
class: "text-left"
|
|
2717
|
-
},
|
|
2729
|
+
}, Br = {
|
|
2718
2730
|
key: 1,
|
|
2719
2731
|
class: "flex-1 text-left"
|
|
2720
|
-
},
|
|
2732
|
+
}, Mr = {
|
|
2721
2733
|
key: 2,
|
|
2722
2734
|
class: "flex-1"
|
|
2723
|
-
},
|
|
2735
|
+
}, Dr = {
|
|
2724
2736
|
key: 0,
|
|
2725
2737
|
class: "align-left"
|
|
2726
|
-
},
|
|
2738
|
+
}, jr = {
|
|
2727
2739
|
key: 1,
|
|
2728
2740
|
class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2"
|
|
2729
|
-
},
|
|
2741
|
+
}, Tr = { class: "h-12 flex flex-row items-center" }, zr = /* @__PURE__ */ M({
|
|
2730
2742
|
__name: "uiSidebar",
|
|
2731
2743
|
props: {
|
|
2732
2744
|
navigation: {},
|
|
@@ -2738,17 +2750,17 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
2738
2750
|
emits: ["sideBarClick"],
|
|
2739
2751
|
setup(m, { emit: i }) {
|
|
2740
2752
|
const l = i;
|
|
2741
|
-
return (a, r) => (s(), n("div",
|
|
2742
|
-
e("div",
|
|
2743
|
-
e("div",
|
|
2744
|
-
e("nav",
|
|
2745
|
-
a.loading ? (s(), n(
|
|
2753
|
+
return (a, r) => (s(), n("div", wr, [
|
|
2754
|
+
e("div", xr, [
|
|
2755
|
+
e("div", kr, [
|
|
2756
|
+
e("nav", _r, [
|
|
2757
|
+
a.loading ? (s(), n(_, { key: 1 }, $(5, (o) => e("div", Tr, r[1] || (r[1] = [
|
|
2746
2758
|
e("div", { class: "w-6 h-6 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 mr-4" }, null, -1),
|
|
2747
2759
|
e("div", { class: "h-3 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 grow" }, null, -1)
|
|
2748
|
-
]))), 64)) : (s(!0), n(
|
|
2760
|
+
]))), 64)) : (s(!0), n(_, { key: 0 }, $(a.navigation, (o) => (s(), n(_, {
|
|
2749
2761
|
key: o.name
|
|
2750
2762
|
}, [
|
|
2751
|
-
o.children ? (s(),
|
|
2763
|
+
o.children ? (s(), k(c(Se), {
|
|
2752
2764
|
key: 1,
|
|
2753
2765
|
as: "div",
|
|
2754
2766
|
class: "space-y-1"
|
|
@@ -2758,7 +2770,7 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
2758
2770
|
class: h([o.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"])
|
|
2759
2771
|
}, {
|
|
2760
2772
|
default: v(() => [
|
|
2761
|
-
o.icon ? (s(),
|
|
2773
|
+
o.icon ? (s(), k(j, {
|
|
2762
2774
|
key: 0,
|
|
2763
2775
|
loading: a.loading,
|
|
2764
2776
|
icon: o.icon,
|
|
@@ -2768,9 +2780,9 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
2768
2780
|
]),
|
|
2769
2781
|
"aria-hidden": "true"
|
|
2770
2782
|
}, null, 8, ["loading", "icon", "class"])) : b("", !0),
|
|
2771
|
-
a.loading ? (s(), n("div",
|
|
2783
|
+
a.loading ? (s(), n("div", Mr, r[0] || (r[0] = [
|
|
2772
2784
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1)
|
|
2773
|
-
]))) : (s(), n("span",
|
|
2785
|
+
]))) : (s(), n("span", Br, g(o.name), 1)),
|
|
2774
2786
|
p(c(ee), {
|
|
2775
2787
|
class: h([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"])
|
|
2776
2788
|
}, null, 8, ["class"])
|
|
@@ -2779,13 +2791,13 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
2779
2791
|
}, 1032, ["class"]),
|
|
2780
2792
|
p(c(Be), { class: "space-y-1" }, {
|
|
2781
2793
|
default: v(() => [
|
|
2782
|
-
(s(!0), n(
|
|
2794
|
+
(s(!0), n(_, null, $(o.children, (d) => (s(), k(c(Z), {
|
|
2783
2795
|
onClick: (u) => l("sideBarClick", d.id),
|
|
2784
2796
|
key: d.name,
|
|
2785
2797
|
class: h([d.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"])
|
|
2786
2798
|
}, {
|
|
2787
2799
|
default: v(() => [
|
|
2788
|
-
a.loading ? (s(), n("div",
|
|
2800
|
+
a.loading ? (s(), n("div", jr)) : (s(), n("span", Dr, g(d.name), 1))
|
|
2789
2801
|
]),
|
|
2790
2802
|
_: 2
|
|
2791
2803
|
}, 1032, ["onClick", "class"]))), 128))
|
|
@@ -2794,7 +2806,7 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
2794
2806
|
}, 1024)
|
|
2795
2807
|
]),
|
|
2796
2808
|
_: 2
|
|
2797
|
-
}, 1024)) : (s(), n("div",
|
|
2809
|
+
}, 1024)) : (s(), n("div", $r, [
|
|
2798
2810
|
e("button", {
|
|
2799
2811
|
onClick: (t) => l("sideBarClick", o.id),
|
|
2800
2812
|
class: h([
|
|
@@ -2802,7 +2814,7 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
2802
2814
|
"group w-full flex items-center pl-2 py-2 text-sm font-medium rounded-md"
|
|
2803
2815
|
])
|
|
2804
2816
|
}, [
|
|
2805
|
-
o.icon ? (s(),
|
|
2817
|
+
o.icon ? (s(), k(j, {
|
|
2806
2818
|
key: 0,
|
|
2807
2819
|
loading: a.loading,
|
|
2808
2820
|
icon: o.icon,
|
|
@@ -2812,8 +2824,8 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
2812
2824
|
]),
|
|
2813
2825
|
"aria-hidden": "true"
|
|
2814
2826
|
}, null, 8, ["loading", "icon", "class"])) : b("", !0),
|
|
2815
|
-
a.loading ? b("", !0) : (s(), n("span",
|
|
2816
|
-
], 10,
|
|
2827
|
+
a.loading ? b("", !0) : (s(), n("span", Sr, g(o.name), 1))
|
|
2828
|
+
], 10, Cr)
|
|
2817
2829
|
]))
|
|
2818
2830
|
], 64))), 128))
|
|
2819
2831
|
])
|
|
@@ -2821,24 +2833,24 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
2821
2833
|
])
|
|
2822
2834
|
]));
|
|
2823
2835
|
}
|
|
2824
|
-
}),
|
|
2836
|
+
}), Lr = { class: "flex flex-row grow border-r border-gray-200 bg-white pr-6" }, Ar = { class: "bg-indigo-600 w-16 mr-6" }, Nr = ["onClick"], Or = {
|
|
2825
2837
|
key: 0,
|
|
2826
2838
|
class: "flex flex-col grow gap-y-5 overflow-y-auto pr-6"
|
|
2827
|
-
},
|
|
2839
|
+
}, Ir = { class: "flex h-16 shrink-0 items-center" }, Yr = ["src"], Pr = { class: "flex flex-1 flex-col" }, Vr = {
|
|
2828
2840
|
key: 0,
|
|
2829
2841
|
role: "list",
|
|
2830
2842
|
class: "flex flex-1 flex-col gap-y-7 mb-4"
|
|
2831
|
-
},
|
|
2843
|
+
}, Fr = {
|
|
2832
2844
|
role: "list",
|
|
2833
2845
|
class: "ml-2 space-y-1"
|
|
2834
|
-
},
|
|
2846
|
+
}, qr = ["onClick"], Rr = {
|
|
2835
2847
|
key: 1,
|
|
2836
2848
|
role: "list",
|
|
2837
2849
|
class: "flex flex-1 flex-col gap-y-7 mb-4"
|
|
2838
|
-
},
|
|
2850
|
+
}, Ur = { class: "ml-2 space-y-1" }, Hr = { class: "font-bold mb-4" }, Er = {
|
|
2839
2851
|
key: 1,
|
|
2840
2852
|
class: "flex flex-col grow gap-y-5 overflow-y-auto pr-6"
|
|
2841
|
-
},
|
|
2853
|
+
}, Zr = { class: "h-12 flex flex-row items-center" }, he = /* @__PURE__ */ M({
|
|
2842
2854
|
__name: "uiSidebarV2",
|
|
2843
2855
|
props: {
|
|
2844
2856
|
navigation: {},
|
|
@@ -2850,10 +2862,10 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
2850
2862
|
},
|
|
2851
2863
|
emits: ["productBarClick", "sideBarClick"],
|
|
2852
2864
|
setup(m, { emit: i }) {
|
|
2853
|
-
return (l, a) => (s(), n("div",
|
|
2854
|
-
e("div",
|
|
2865
|
+
return (l, a) => (s(), n("div", Lr, [
|
|
2866
|
+
e("div", Ar, [
|
|
2855
2867
|
e("ul", null, [
|
|
2856
|
-
(s(!0), n(
|
|
2868
|
+
(s(!0), n(_, null, $(l.productsSidebar, (r, o) => (s(), n("li", {
|
|
2857
2869
|
key: o,
|
|
2858
2870
|
class: h([{ "!bg-indigo-900": r.active }, "w-full h-16 flex items-center justify-center cursor-pointer bg-indigo-600 hover:bg-indigo-700"]),
|
|
2859
2871
|
onClick: (t) => l.$emit("productBarClick", r.name)
|
|
@@ -2864,30 +2876,30 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
2864
2876
|
color: "white",
|
|
2865
2877
|
size: "bigger"
|
|
2866
2878
|
}, null, 8, ["icon"])
|
|
2867
|
-
], 10,
|
|
2879
|
+
], 10, Nr))), 128))
|
|
2868
2880
|
])
|
|
2869
2881
|
]),
|
|
2870
|
-
l.loading ? (s(), n("div",
|
|
2871
|
-
(s(), n(
|
|
2882
|
+
l.loading ? (s(), n("div", Er, [
|
|
2883
|
+
(s(), n(_, null, $(5, (r) => e("div", Zr, a[0] || (a[0] = [
|
|
2872
2884
|
e("div", { class: "w-6 h-6 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 mr-4" }, null, -1),
|
|
2873
2885
|
e("div", { class: "h-3 animate-pulse bg-gray-200 rounded-full w-1/2 dark:bg-gray-300" }, null, -1)
|
|
2874
2886
|
]))), 64))
|
|
2875
|
-
])) : (s(), n("div",
|
|
2876
|
-
e("div",
|
|
2887
|
+
])) : (s(), n("div", Or, [
|
|
2888
|
+
e("div", Ir, [
|
|
2877
2889
|
e("img", {
|
|
2878
2890
|
class: "h-8 w-auto",
|
|
2879
2891
|
src: l.logo,
|
|
2880
2892
|
alt: "Your Company"
|
|
2881
|
-
}, null, 8,
|
|
2893
|
+
}, null, 8, Yr)
|
|
2882
2894
|
]),
|
|
2883
|
-
e("nav",
|
|
2884
|
-
l.isFilterNavigation ? b("", !0) : (s(), n("ul",
|
|
2895
|
+
e("nav", Pr, [
|
|
2896
|
+
l.isFilterNavigation ? b("", !0) : (s(), n("ul", Vr, [
|
|
2885
2897
|
e("li", null, [
|
|
2886
|
-
e("ul",
|
|
2887
|
-
(s(!0), n(
|
|
2898
|
+
e("ul", Fr, [
|
|
2899
|
+
(s(!0), n(_, null, $(l.navigation, (r) => (s(), n("li", {
|
|
2888
2900
|
key: r.name
|
|
2889
2901
|
}, [
|
|
2890
|
-
r.children ? (s(),
|
|
2902
|
+
r.children ? (s(), k(c(Se), {
|
|
2891
2903
|
key: 1,
|
|
2892
2904
|
as: "div"
|
|
2893
2905
|
}, {
|
|
@@ -2920,7 +2932,7 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
2920
2932
|
static: ""
|
|
2921
2933
|
}, {
|
|
2922
2934
|
default: v(() => [
|
|
2923
|
-
(s(!0), n(
|
|
2935
|
+
(s(!0), n(_, null, $(r.children, (o) => (s(), n("li", {
|
|
2924
2936
|
key: o.name
|
|
2925
2937
|
}, [
|
|
2926
2938
|
p(c(Z), {
|
|
@@ -2956,14 +2968,14 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
2956
2968
|
class: "shrink-0"
|
|
2957
2969
|
}, null, 8, ["icon"]),
|
|
2958
2970
|
L(" " + g(r.name), 1)
|
|
2959
|
-
], 10,
|
|
2971
|
+
], 10, qr))
|
|
2960
2972
|
]))), 128))
|
|
2961
2973
|
])
|
|
2962
2974
|
])
|
|
2963
2975
|
])),
|
|
2964
|
-
l.isFilterNavigation && l.filterNavigation ? (s(), n("ul",
|
|
2965
|
-
e("li",
|
|
2966
|
-
l.filterNavigation.hasSearch && l.filterNavigation.search ? (s(),
|
|
2976
|
+
l.isFilterNavigation && l.filterNavigation ? (s(), n("ul", Rr, [
|
|
2977
|
+
e("li", Ur, [
|
|
2978
|
+
l.filterNavigation.hasSearch && l.filterNavigation.search ? (s(), k(E, {
|
|
2967
2979
|
key: 0,
|
|
2968
2980
|
name: l.filterNavigation.search.name,
|
|
2969
2981
|
label: l.filterNavigation.search.label,
|
|
@@ -2972,12 +2984,12 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
2972
2984
|
loading: l.filterNavigation.search.loading
|
|
2973
2985
|
}, null, 8, ["name", "label", "placeholder", "value", "loading"])) : b("", !0)
|
|
2974
2986
|
]),
|
|
2975
|
-
(s(!0), n(
|
|
2987
|
+
(s(!0), n(_, null, $(l.filterNavigation.items, (r, o) => (s(), n("li", {
|
|
2976
2988
|
class: "ml-2",
|
|
2977
2989
|
key: o
|
|
2978
2990
|
}, [
|
|
2979
|
-
e("p",
|
|
2980
|
-
(s(!0), n(
|
|
2991
|
+
e("p", Hr, g(r.label), 1),
|
|
2992
|
+
(s(!0), n(_, null, $(r.filters, (t, d) => (s(), k(Ue, {
|
|
2981
2993
|
class: "mb-2",
|
|
2982
2994
|
value: t.value,
|
|
2983
2995
|
loading: t.loading
|
|
@@ -2993,10 +3005,10 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
2993
3005
|
]))
|
|
2994
3006
|
]));
|
|
2995
3007
|
}
|
|
2996
|
-
}),
|
|
3008
|
+
}), Jr = { key: 0 }, Wr = { class: "ml-16 text-sm font-medium text-gray-500 truncate" }, Gr = { class: "ml-16 flex items-baseline pb-5" }, Qr = { class: "text-2xl font-semibold text-gray-900" }, Kr = {
|
|
2997
3009
|
key: 0,
|
|
2998
3010
|
class: "text-black ml-2 flex items-baseline text-sm font-semibold"
|
|
2999
|
-
},
|
|
3011
|
+
}, Xr = { class: "absolute bottom-0 inset-x-0 bg-gray-50 px-4 py-4 sm:px-6" }, en = { class: "text-sm" }, tn = { key: 1 }, sn = { class: "relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full pb-6" }, on = { class: "absolute bg-gray-200 rounded-md p-3 animate-pulse" }, tt = /* @__PURE__ */ M({
|
|
3000
3012
|
__name: "uiStats",
|
|
3001
3013
|
props: {
|
|
3002
3014
|
item: {},
|
|
@@ -3004,10 +3016,10 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3004
3016
|
},
|
|
3005
3017
|
emits: ["statClick"],
|
|
3006
3018
|
setup(m, { emit: i }) {
|
|
3007
|
-
return (l, a) => l.loading ? (s(), n("div",
|
|
3008
|
-
e("div",
|
|
3019
|
+
return (l, a) => l.loading ? (s(), n("div", tn, [
|
|
3020
|
+
e("div", sn, [
|
|
3009
3021
|
e("dt", null, [
|
|
3010
|
-
e("div",
|
|
3022
|
+
e("div", on, [
|
|
3011
3023
|
p(j, {
|
|
3012
3024
|
loading: l.loading,
|
|
3013
3025
|
icon: l.item.icon,
|
|
@@ -3023,7 +3035,7 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3023
3035
|
], -1))
|
|
3024
3036
|
])
|
|
3025
3037
|
])
|
|
3026
|
-
])) : (s(), n("div",
|
|
3038
|
+
])) : (s(), n("div", Jr, [
|
|
3027
3039
|
e("div", {
|
|
3028
3040
|
class: h(["relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full", { "pb-12": l.item.showFooter }])
|
|
3029
3041
|
}, [
|
|
@@ -3044,11 +3056,11 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3044
3056
|
loading: l.loading
|
|
3045
3057
|
}, null, 8, ["icon", "loading"])
|
|
3046
3058
|
], 2),
|
|
3047
|
-
e("p",
|
|
3059
|
+
e("p", Wr, g(l.item.name), 1)
|
|
3048
3060
|
]),
|
|
3049
|
-
e("dd",
|
|
3050
|
-
e("p",
|
|
3051
|
-
l.item.explanation ? (s(), n("p",
|
|
3061
|
+
e("dd", Gr, [
|
|
3062
|
+
e("p", Qr, g(l.item.stat), 1),
|
|
3063
|
+
l.item.explanation ? (s(), n("p", Kr, g(l.item.explanation), 1)) : b("", !0),
|
|
3052
3064
|
l.item.changeType ? (s(), n("p", {
|
|
3053
3065
|
key: 1,
|
|
3054
3066
|
class: h([
|
|
@@ -3060,20 +3072,20 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3060
3072
|
"ml-2 flex items-baseline text-sm font-semibold"
|
|
3061
3073
|
])
|
|
3062
3074
|
}, [
|
|
3063
|
-
l.item.changeType === "increase" ? (s(),
|
|
3075
|
+
l.item.changeType === "increase" ? (s(), k(c(Dt), {
|
|
3064
3076
|
key: 0,
|
|
3065
3077
|
class: "self-center flex-shrink-0 h-3 w-3 text-green-500",
|
|
3066
3078
|
"aria-hidden": "true"
|
|
3067
3079
|
})) : b("", !0),
|
|
3068
|
-
l.item.changeType === "decrease" ? (s(),
|
|
3080
|
+
l.item.changeType === "decrease" ? (s(), k(c(Bt), {
|
|
3069
3081
|
key: 1,
|
|
3070
3082
|
class: "self-center flex-shrink-0 h-3 w-3 text-red-500",
|
|
3071
3083
|
"aria-hidden": "true"
|
|
3072
3084
|
})) : b("", !0),
|
|
3073
3085
|
L(" " + g(l.item.change), 1)
|
|
3074
3086
|
], 2)) : b("", !0),
|
|
3075
|
-
C(e("div",
|
|
3076
|
-
e("div",
|
|
3087
|
+
C(e("div", Xr, [
|
|
3088
|
+
e("div", en, [
|
|
3077
3089
|
e("span", {
|
|
3078
3090
|
onClick: a[0] || (a[0] = (r) => l.$emit("statClick", l.item.id)),
|
|
3079
3091
|
class: "font-medium text-indigo-600 hover:text-indigo-500 cursor-pointer"
|
|
@@ -3086,19 +3098,19 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3086
3098
|
], 2)
|
|
3087
3099
|
]));
|
|
3088
3100
|
}
|
|
3089
|
-
}),
|
|
3101
|
+
}), ln = {
|
|
3090
3102
|
key: 0,
|
|
3091
3103
|
class: "overflow-hidden bg-white shadow sm:rounded-lg"
|
|
3092
|
-
},
|
|
3104
|
+
}, rn = { class: "px-4 py-5 sm:px-6" }, nn = { class: "text-lg font-medium leading-6 text-gray-900" }, an = { class: "mt-1 max-w-2xl text-sm text-gray-500" }, dn = { class: "border-t border-gray-200" }, un = { class: "text-sm font-medium text-gray-500" }, cn = {
|
|
3093
3105
|
key: 0,
|
|
3094
3106
|
class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal"
|
|
3095
|
-
},
|
|
3107
|
+
}, gn = ["onClick"], pn = {
|
|
3096
3108
|
key: 2,
|
|
3097
3109
|
class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-words"
|
|
3098
|
-
},
|
|
3110
|
+
}, mn = {
|
|
3099
3111
|
key: 1,
|
|
3100
3112
|
class: "overflow-hidden bg-white shadow sm:rounded-lg"
|
|
3101
|
-
},
|
|
3113
|
+
}, fn = { class: "border-t border-gray-200" }, yn = /* @__PURE__ */ M({
|
|
3102
3114
|
__name: "uiStripedCard",
|
|
3103
3115
|
props: {
|
|
3104
3116
|
title: {},
|
|
@@ -3108,11 +3120,11 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3108
3120
|
},
|
|
3109
3121
|
emits: ["itemClicked"],
|
|
3110
3122
|
setup(m) {
|
|
3111
|
-
return (i, l) => i.loading ? (s(), n("div",
|
|
3123
|
+
return (i, l) => i.loading ? (s(), n("div", mn, [
|
|
3112
3124
|
l[1] || (l[1] = Q('<div class="px-4 py-5 sm:px-6 animate-pulse"><h3 class="text-lg font-medium leading-6 text-gray-900"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4"></div></h3><div class="mt-1 max-w-2xl text-sm text-gray-500"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/5"></div></div></div>', 1)),
|
|
3113
|
-
e("div",
|
|
3125
|
+
e("div", fn, [
|
|
3114
3126
|
e("dl", null, [
|
|
3115
|
-
(s(), n(
|
|
3127
|
+
(s(), n(_, null, $(5, (a) => e("div", {
|
|
3116
3128
|
key: a,
|
|
3117
3129
|
class: h(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [a % 2 === 0 ? "bg-gray-50" : "bg-white"]])
|
|
3118
3130
|
}, l[0] || (l[0] = [
|
|
@@ -3125,20 +3137,20 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3125
3137
|
]), 2)), 64))
|
|
3126
3138
|
])
|
|
3127
3139
|
])
|
|
3128
|
-
])) : (s(), n("div",
|
|
3129
|
-
e("div",
|
|
3130
|
-
e("h3",
|
|
3131
|
-
e("p",
|
|
3140
|
+
])) : (s(), n("div", ln, [
|
|
3141
|
+
e("div", rn, [
|
|
3142
|
+
e("h3", nn, g(i.title), 1),
|
|
3143
|
+
e("p", an, g(i.subtitle), 1)
|
|
3132
3144
|
]),
|
|
3133
|
-
e("div",
|
|
3145
|
+
e("div", dn, [
|
|
3134
3146
|
e("dl", null, [
|
|
3135
|
-
(s(!0), n(
|
|
3147
|
+
(s(!0), n(_, null, $(i.items, (a, r) => (s(), n("div", {
|
|
3136
3148
|
key: r,
|
|
3137
3149
|
class: h(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [r % 2 === 0 ? "bg-gray-50" : "bg-white"]])
|
|
3138
3150
|
}, [
|
|
3139
|
-
e("dt",
|
|
3140
|
-
a.type === "tags" ? (s(), n("dd",
|
|
3141
|
-
(s(!0), n(
|
|
3151
|
+
e("dt", un, g(a.title), 1),
|
|
3152
|
+
a.type === "tags" ? (s(), n("dd", cn, [
|
|
3153
|
+
(s(!0), n(_, null, $(a.tags, (o, t) => (s(), k(U, {
|
|
3142
3154
|
loading: i.loading,
|
|
3143
3155
|
key: t,
|
|
3144
3156
|
color: o.color,
|
|
@@ -3153,13 +3165,13 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3153
3165
|
key: 1,
|
|
3154
3166
|
class: "mt-1 text-sm text-indigo-600 hover:text-indigo-400 sm:col-span-2 sm:mt-0 cursor-pointer",
|
|
3155
3167
|
onClick: (o) => i.$emit("itemClicked", a.emits)
|
|
3156
|
-
}, g(a.text), 9,
|
|
3168
|
+
}, g(a.text), 9, gn)) : (s(), n("dd", pn, g(a.text), 1))
|
|
3157
3169
|
], 2))), 128))
|
|
3158
3170
|
])
|
|
3159
3171
|
])
|
|
3160
3172
|
]));
|
|
3161
3173
|
}
|
|
3162
|
-
}),
|
|
3174
|
+
}), hn = { class: "absolute top-10 bg-indigo-600 text-white text-xs p-2 rounded z-10 font-light w-60 flex flex-row items-start" }, vn = { class: "ml-2" }, bn = {
|
|
3163
3175
|
__name: "tooltip",
|
|
3164
3176
|
props: {
|
|
3165
3177
|
tip: {
|
|
@@ -3168,7 +3180,7 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3168
3180
|
}
|
|
3169
3181
|
},
|
|
3170
3182
|
setup(m) {
|
|
3171
|
-
return (i, l) => (s(), n("div",
|
|
3183
|
+
return (i, l) => (s(), n("div", hn, [
|
|
3172
3184
|
l[0] || (l[0] = e("svg", {
|
|
3173
3185
|
class: "absolute -top-3 left-0",
|
|
3174
3186
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3186,25 +3198,25 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3186
3198
|
], -1)),
|
|
3187
3199
|
e("div", null, [
|
|
3188
3200
|
p(j, {
|
|
3189
|
-
icon: c(
|
|
3201
|
+
icon: c(Yt),
|
|
3190
3202
|
loading: !1,
|
|
3191
3203
|
color: "white",
|
|
3192
3204
|
size: "big"
|
|
3193
3205
|
}, null, 8, ["icon"])
|
|
3194
3206
|
]),
|
|
3195
|
-
e("span",
|
|
3207
|
+
e("span", vn, g(m.tip), 1)
|
|
3196
3208
|
]));
|
|
3197
3209
|
}
|
|
3198
|
-
},
|
|
3210
|
+
}, wn = { key: 0 }, xn = { class: "flex flex-col" }, kn = { class: "-my-2 overflow-x-auto" }, _n = { class: "inline-block min-w-full py-2 align-middle px-1" }, $n = { class: "relative overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg" }, Cn = {
|
|
3199
3211
|
key: 0,
|
|
3200
3212
|
class: "absolute top-0 left-12 flex h-12 items-center space-x-3 sm:left-16 bg-white shadow rounded px-4 py-1 z-10"
|
|
3201
|
-
},
|
|
3213
|
+
}, Sn = ["onClick"], Bn = { class: "min-w-full table-fixed divide-y divide-gray-300" }, Mn = { class: "bg-gray-50" }, Dn = ["checked", "indeterminate"], jn = ["onMouseover", "onMouseleave"], Tn = ["onClick"], zn = {
|
|
3202
3214
|
key: 2,
|
|
3203
3215
|
class: "group flex items-center uppercase text-xs"
|
|
3204
|
-
},
|
|
3216
|
+
}, Ln = { class: "divide-y divide-gray-200 bg-white" }, An = {
|
|
3205
3217
|
key: 0,
|
|
3206
3218
|
class: "absolute inset-y-0 left-0 w-0.5 bg-indigo-600"
|
|
3207
|
-
},
|
|
3219
|
+
}, Nn = ["value"], On = ["onClick"], In = ["href"], Yn = { key: 3 }, Pn = /* @__PURE__ */ M({
|
|
3208
3220
|
__name: "uiTable",
|
|
3209
3221
|
props: {
|
|
3210
3222
|
resetSelected: { type: Boolean, default: !1 },
|
|
@@ -3231,21 +3243,21 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3231
3243
|
r.value = w, w && r.value && (l.value = [], r.value = !w, o("selectedItemsDeleted"));
|
|
3232
3244
|
}), (w, T) => {
|
|
3233
3245
|
var A, S;
|
|
3234
|
-
return w.loading ? (s(),
|
|
3235
|
-
e("div",
|
|
3236
|
-
e("div",
|
|
3237
|
-
e("div",
|
|
3238
|
-
e("div",
|
|
3239
|
-
((A = c(l)) == null ? void 0 : A.length) > 0 && ((S = w.actions) == null ? void 0 : S.length) > 0 ? (s(), n("div",
|
|
3240
|
-
(s(!0), n(
|
|
3246
|
+
return w.loading ? (s(), k(et, { key: 1 })) : (s(), n("div", wn, [
|
|
3247
|
+
e("div", xn, [
|
|
3248
|
+
e("div", kn, [
|
|
3249
|
+
e("div", _n, [
|
|
3250
|
+
e("div", $n, [
|
|
3251
|
+
((A = c(l)) == null ? void 0 : A.length) > 0 && ((S = w.actions) == null ? void 0 : S.length) > 0 ? (s(), n("div", Cn, [
|
|
3252
|
+
(s(!0), n(_, null, $(w.actions, (B, P) => (s(), n("button", {
|
|
3241
3253
|
onClick: (x) => w.$emit("tableAction", { action: B.id, items: c(l) }),
|
|
3242
3254
|
key: P,
|
|
3243
3255
|
type: "button",
|
|
3244
3256
|
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"
|
|
3245
|
-
}, g(B.name), 9,
|
|
3257
|
+
}, g(B.name), 9, Sn))), 128))
|
|
3246
3258
|
])) : b("", !0),
|
|
3247
|
-
e("table",
|
|
3248
|
-
e("thead",
|
|
3259
|
+
e("table", Bn, [
|
|
3260
|
+
e("thead", Mn, [
|
|
3249
3261
|
e("tr", null, [
|
|
3250
3262
|
e("th", {
|
|
3251
3263
|
scope: "col",
|
|
@@ -3258,16 +3270,16 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3258
3270
|
class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500",
|
|
3259
3271
|
type: "checkbox",
|
|
3260
3272
|
onChange: f
|
|
3261
|
-
}, null, 40,
|
|
3273
|
+
}, null, 40, Dn)) : b("", !0)
|
|
3262
3274
|
], 2),
|
|
3263
|
-
(s(!0), n(
|
|
3275
|
+
(s(!0), n(_, null, $(w.header, (B, P) => (s(), n("th", {
|
|
3264
3276
|
key: P,
|
|
3265
3277
|
class: "py-3.5 pr-3 text-left font-semibold text-gray-900 relative",
|
|
3266
3278
|
scope: "col",
|
|
3267
3279
|
onMouseover: (x) => u(B.name, !0),
|
|
3268
3280
|
onMouseleave: (x) => u(B.name, !1)
|
|
3269
3281
|
}, [
|
|
3270
|
-
B.tooltip ? C((s(),
|
|
3282
|
+
B.tooltip ? C((s(), k(bn, {
|
|
3271
3283
|
key: 0,
|
|
3272
3284
|
tip: B.tooltip
|
|
3273
3285
|
}, null, 8, ["tip"])), [
|
|
@@ -3285,19 +3297,19 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3285
3297
|
], "ml-2 flex-none rounded group-hover:bg-indigo-200 group-hover:text-white"])
|
|
3286
3298
|
}, [
|
|
3287
3299
|
p(j, {
|
|
3288
|
-
icon: w.orderDirection === "asc" ? c(de) : c(
|
|
3300
|
+
icon: w.orderDirection === "asc" ? c(de) : c(We),
|
|
3289
3301
|
loading: w.loading,
|
|
3290
3302
|
color: B.value === w.orderedBy ? "white" : "primary"
|
|
3291
3303
|
}, null, 8, ["icon", "loading", "color"])
|
|
3292
3304
|
], 2)
|
|
3293
|
-
], 8,
|
|
3305
|
+
], 8, Tn)) : (s(), n("p", zn, [
|
|
3294
3306
|
e("span", null, g(B.name), 1)
|
|
3295
3307
|
]))
|
|
3296
|
-
], 40,
|
|
3308
|
+
], 40, jn))), 128))
|
|
3297
3309
|
])
|
|
3298
3310
|
]),
|
|
3299
|
-
e("tbody",
|
|
3300
|
-
(s(!0), n(
|
|
3311
|
+
e("tbody", Ln, [
|
|
3312
|
+
(s(!0), n(_, null, $(w.items, (B, P) => {
|
|
3301
3313
|
var x, Y;
|
|
3302
3314
|
return s(), n("tr", {
|
|
3303
3315
|
key: B.id,
|
|
@@ -3309,25 +3321,25 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3309
3321
|
e("td", {
|
|
3310
3322
|
class: h([((x = w.actions) == null ? void 0 : x.length) > 0 ? "w-2" : "w-0", "relative"])
|
|
3311
3323
|
}, [
|
|
3312
|
-
c(l).includes(B.id) ? (s(), n("div",
|
|
3324
|
+
c(l).includes(B.id) ? (s(), n("div", An)) : b("", !0),
|
|
3313
3325
|
((Y = w.actions) == null ? void 0 : Y.length) > 0 ? C((s(), n("input", {
|
|
3314
3326
|
key: 1,
|
|
3315
3327
|
"onUpdate:modelValue": T[0] || (T[0] = (I) => ve(l) ? l.value = I : l = I),
|
|
3316
3328
|
value: B.id,
|
|
3317
3329
|
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",
|
|
3318
3330
|
type: "checkbox"
|
|
3319
|
-
}, null, 8,
|
|
3331
|
+
}, null, 8, Nn)), [
|
|
3320
3332
|
[Ie, c(l)]
|
|
3321
3333
|
]) : b("", !0)
|
|
3322
3334
|
], 2),
|
|
3323
|
-
(s(!0), n(
|
|
3335
|
+
(s(!0), n(_, null, $(B.row, (I, se) => (s(), n("td", {
|
|
3324
3336
|
key: se,
|
|
3325
3337
|
class: h([
|
|
3326
3338
|
"whitespace-nowrap py-4 pr-3 text-sm",
|
|
3327
3339
|
c(l).includes(B.id) ? "text-indigo-600" : "text-gray-900"
|
|
3328
3340
|
])
|
|
3329
3341
|
}, [
|
|
3330
|
-
typeof I == "object" && I.type === "tag" ? (s(),
|
|
3342
|
+
typeof I == "object" && I.type === "tag" ? (s(), k(U, {
|
|
3331
3343
|
key: 0,
|
|
3332
3344
|
loading: w.loading,
|
|
3333
3345
|
color: I.color
|
|
@@ -3340,11 +3352,11 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3340
3352
|
key: 1,
|
|
3341
3353
|
class: "text-indigo-600 hover:text-indigo-400 cursor-pointer",
|
|
3342
3354
|
onClick: (O) => y(I)
|
|
3343
|
-
}, g(I.content), 9,
|
|
3355
|
+
}, g(I.content), 9, On)) : typeof I == "object" && I.type === "href" ? (s(), n("a", {
|
|
3344
3356
|
key: 2,
|
|
3345
3357
|
class: "text-indigo-600 hover:text-indigo-400 cursor-pointer",
|
|
3346
3358
|
href: I.href
|
|
3347
|
-
}, g(I.content), 9,
|
|
3359
|
+
}, g(I.content), 9, In)) : (s(), n("span", Yn, g(I), 1))
|
|
3348
3360
|
], 2))), 128))
|
|
3349
3361
|
], 2);
|
|
3350
3362
|
}), 128))
|
|
@@ -3357,10 +3369,10 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3357
3369
|
]));
|
|
3358
3370
|
};
|
|
3359
3371
|
}
|
|
3360
|
-
}),
|
|
3372
|
+
}), Vn = { class: "lg:hidden" }, Fn = ["value"], qn = { class: "hidden lg:block" }, Rn = { class: "border-b border-gray-200" }, Un = {
|
|
3361
3373
|
class: "-mb-px flex space-x-8",
|
|
3362
3374
|
"aria-label": "Tabs"
|
|
3363
|
-
},
|
|
3375
|
+
}, Hn = ["onClick", "aria-current"], En = /* @__PURE__ */ M({
|
|
3364
3376
|
__name: "uiTabs",
|
|
3365
3377
|
props: {
|
|
3366
3378
|
tabs: {}
|
|
@@ -3372,23 +3384,23 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3372
3384
|
o.value && l("tabClicked", o.value);
|
|
3373
3385
|
};
|
|
3374
3386
|
return (r, o) => (s(), n("div", null, [
|
|
3375
|
-
e("div",
|
|
3387
|
+
e("div", Vn, [
|
|
3376
3388
|
e("select", {
|
|
3377
3389
|
onChange: o[0] || (o[0] = (t) => a(t)),
|
|
3378
3390
|
id: "tabs",
|
|
3379
3391
|
name: "tabs",
|
|
3380
3392
|
class: "block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm"
|
|
3381
3393
|
}, [
|
|
3382
|
-
(s(!0), n(
|
|
3394
|
+
(s(!0), n(_, null, $(r.tabs, (t) => (s(), n("option", {
|
|
3383
3395
|
value: t.id,
|
|
3384
3396
|
key: t.name
|
|
3385
|
-
}, g(t.name), 9,
|
|
3397
|
+
}, g(t.name), 9, Fn))), 128))
|
|
3386
3398
|
], 32)
|
|
3387
3399
|
]),
|
|
3388
|
-
e("div",
|
|
3389
|
-
e("div",
|
|
3390
|
-
e("nav",
|
|
3391
|
-
(s(!0), n(
|
|
3400
|
+
e("div", qn, [
|
|
3401
|
+
e("div", Rn, [
|
|
3402
|
+
e("nav", Un, [
|
|
3403
|
+
(s(!0), n(_, null, $(r.tabs, (t) => (s(), n("a", {
|
|
3392
3404
|
key: t.name,
|
|
3393
3405
|
onClick: (d) => l("tabClicked", t.id),
|
|
3394
3406
|
class: h([
|
|
@@ -3405,36 +3417,36 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3405
3417
|
"hidden ml-3 py-0.5 px-2.5 rounded-full text-xs font-medium md:inline-block"
|
|
3406
3418
|
])
|
|
3407
3419
|
}, g(t.count), 3)) : b("", !0)
|
|
3408
|
-
], 10,
|
|
3420
|
+
], 10, Hn))), 128))
|
|
3409
3421
|
])
|
|
3410
3422
|
])
|
|
3411
3423
|
])
|
|
3412
3424
|
]));
|
|
3413
3425
|
}
|
|
3414
|
-
}),
|
|
3426
|
+
}), Zn = { class: "px-4 py-5 sm:px-6" }, Jn = { class: "text-xl font-bold" }, Wn = {
|
|
3415
3427
|
key: 0,
|
|
3416
3428
|
class: "px-4 py-5 sm:p-6"
|
|
3417
|
-
},
|
|
3429
|
+
}, Gn = { class: "flow-root" }, Qn = { class: "relative pb-8" }, Kn = {
|
|
3418
3430
|
key: 0,
|
|
3419
3431
|
class: "absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200",
|
|
3420
3432
|
"aria-hidden": "true"
|
|
3421
|
-
},
|
|
3433
|
+
}, Xn = { class: "relative flex space-x-3" }, ea = { class: "min-w-0 flex-1 pt-1.5 flex justify-between space-x-4 items-center" }, ta = { class: "text-sm text-gray-500" }, sa = ["onClick"], oa = { class: "text-right text-sm whitespace-nowrap text-gray-500" }, la = ["datetime"], ra = {
|
|
3422
3434
|
key: 1,
|
|
3423
3435
|
class: "bg-gray-50 px-4 py-4 sm:px-6 z-10"
|
|
3424
|
-
},
|
|
3436
|
+
}, na = { class: "text-sm" }, aa = {
|
|
3425
3437
|
key: 2,
|
|
3426
3438
|
class: "h-full w-full flex items-center justify-center flex-col mb-5"
|
|
3427
|
-
},
|
|
3439
|
+
}, ia = {
|
|
3428
3440
|
key: 1,
|
|
3429
3441
|
class: "bg-white overflow-hidden shadow rounded-lg"
|
|
3430
|
-
},
|
|
3442
|
+
}, da = { class: "px-4 py-5 sm:p-6 animate-pulse" }, ua = { class: "flow-root" }, ca = {
|
|
3431
3443
|
class: "-mb-8",
|
|
3432
3444
|
role: "list"
|
|
3433
|
-
},
|
|
3445
|
+
}, ga = { class: "relative pb-8" }, pa = {
|
|
3434
3446
|
key: 0,
|
|
3435
3447
|
class: "absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200",
|
|
3436
3448
|
"aria-hidden": "true"
|
|
3437
|
-
},
|
|
3449
|
+
}, ma = /* @__PURE__ */ M({
|
|
3438
3450
|
__name: "uiTimeline",
|
|
3439
3451
|
props: {
|
|
3440
3452
|
name: {},
|
|
@@ -3446,18 +3458,18 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3446
3458
|
emits: ["timelineEventClicked", "timelineFooterClicked"],
|
|
3447
3459
|
setup(m, { emit: i }) {
|
|
3448
3460
|
const a = ge(m.timeline);
|
|
3449
|
-
return (r, o) => r.loading ? (s(), n("div",
|
|
3461
|
+
return (r, o) => r.loading ? (s(), n("div", ia, [
|
|
3450
3462
|
o[3] || (o[3] = e("div", { class: "px-4 py-5 sm:px-6 animate-pulse" }, [
|
|
3451
3463
|
e("h1", { class: "text-xl font-bold" }, [
|
|
3452
3464
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4" })
|
|
3453
3465
|
])
|
|
3454
3466
|
], -1)),
|
|
3455
|
-
e("div",
|
|
3456
|
-
e("div",
|
|
3457
|
-
e("ul",
|
|
3458
|
-
(s(), n(
|
|
3459
|
-
e("div",
|
|
3460
|
-
t !== 10 ? (s(), n("span",
|
|
3467
|
+
e("div", da, [
|
|
3468
|
+
e("div", ua, [
|
|
3469
|
+
e("ul", ca, [
|
|
3470
|
+
(s(), n(_, null, $(10, (t, d) => e("li", { key: d }, [
|
|
3471
|
+
e("div", ga, [
|
|
3472
|
+
t !== 10 ? (s(), n("span", pa)) : b("", !0),
|
|
3461
3473
|
o[2] || (o[2] = Q('<div class="relative flex space-x-3"><div><span class="h-8 w-8 rounded-full bg-gray-300 flex items-center justify-center ring-4 ring-white"></span></div><div class="min-w-0 flex-1 pt-1.5 flex justify-between space-x-4 items-center"><div><div class="text-sm text-gray-500 flex-1"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full"></div></div></div><div class="text-right text-sm whitespace-nowrap text-gray-500 flex-1"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4"></div></div></div></div>', 1))
|
|
3462
3474
|
])
|
|
3463
3475
|
])), 64))
|
|
@@ -3473,21 +3485,21 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3473
3485
|
key: 0,
|
|
3474
3486
|
class: h(["h-[" + r.height + "px]", "bg-white overflow-hidden shadow rounded-lg"])
|
|
3475
3487
|
}, [
|
|
3476
|
-
e("div",
|
|
3477
|
-
e("h1",
|
|
3488
|
+
e("div", Zn, [
|
|
3489
|
+
e("h1", Jn, g(r.name), 1)
|
|
3478
3490
|
]),
|
|
3479
|
-
a.items ? (s(), n("div",
|
|
3480
|
-
e("div",
|
|
3481
|
-
p(
|
|
3491
|
+
a.items ? (s(), n("div", Wn, [
|
|
3492
|
+
e("div", Gn, [
|
|
3493
|
+
p(lt, {
|
|
3482
3494
|
name: "list",
|
|
3483
3495
|
tag: "ul",
|
|
3484
3496
|
class: "-mb-8"
|
|
3485
3497
|
}, {
|
|
3486
3498
|
default: v(() => [
|
|
3487
|
-
(s(!0), n(
|
|
3488
|
-
e("div",
|
|
3489
|
-
d < a.items.length - 1 ? (s(), n("span",
|
|
3490
|
-
e("div",
|
|
3499
|
+
(s(!0), n(_, null, $(a.items, (t, d) => (s(), n("li", { key: d }, [
|
|
3500
|
+
e("div", Qn, [
|
|
3501
|
+
d < a.items.length - 1 ? (s(), n("span", Kn)) : b("", !0),
|
|
3502
|
+
e("div", Xn, [
|
|
3491
3503
|
e("div", null, [
|
|
3492
3504
|
e("span", {
|
|
3493
3505
|
class: h([(t == null ? void 0 : t.iconBackground) || "bg-indigo-600", "h-8 w-8 rounded-full flex items-center justify-center ring-4 ring-white"])
|
|
@@ -3501,20 +3513,20 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3501
3513
|
}, null, 8, ["loading", "icon"])
|
|
3502
3514
|
], 2)
|
|
3503
3515
|
]),
|
|
3504
|
-
e("div",
|
|
3516
|
+
e("div", ea, [
|
|
3505
3517
|
e("div", null, [
|
|
3506
|
-
e("p",
|
|
3518
|
+
e("p", ta, [
|
|
3507
3519
|
e("a", {
|
|
3508
3520
|
onClick: (u) => r.$emit("timelineEventClicked", t.linkId),
|
|
3509
3521
|
class: "font-medium text-indigo-600 hover:text-indigo-800 cursor-pointer"
|
|
3510
|
-
}, g(t == null ? void 0 : t.target), 9,
|
|
3522
|
+
}, g(t == null ? void 0 : t.target), 9, sa),
|
|
3511
3523
|
L(" " + g(t == null ? void 0 : t.content), 1)
|
|
3512
3524
|
])
|
|
3513
3525
|
]),
|
|
3514
|
-
e("div",
|
|
3526
|
+
e("div", oa, [
|
|
3515
3527
|
e("time", {
|
|
3516
3528
|
datetime: t == null ? void 0 : t.datetime
|
|
3517
|
-
}, g(t == null ? void 0 : t.date), 9,
|
|
3529
|
+
}, g(t == null ? void 0 : t.date), 9, la)
|
|
3518
3530
|
])
|
|
3519
3531
|
])
|
|
3520
3532
|
])
|
|
@@ -3525,14 +3537,14 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3525
3537
|
})
|
|
3526
3538
|
])
|
|
3527
3539
|
])) : b("", !0),
|
|
3528
|
-
a.items ? (s(), n("div",
|
|
3529
|
-
e("div",
|
|
3540
|
+
a.items ? (s(), n("div", ra, [
|
|
3541
|
+
e("div", na, [
|
|
3530
3542
|
e("a", {
|
|
3531
3543
|
class: "cursor-pointer font-medium text-indigo-600 hover:text-indigo-500",
|
|
3532
3544
|
onClick: o[0] || (o[0] = (t) => r.$emit("timelineFooterClicked", r.timeline.id))
|
|
3533
3545
|
}, g(r.timeline.footerText), 1)
|
|
3534
3546
|
])
|
|
3535
|
-
])) : (s(), n("div",
|
|
3547
|
+
])) : (s(), n("div", aa, [
|
|
3536
3548
|
p(j, {
|
|
3537
3549
|
icon: c(H),
|
|
3538
3550
|
color: "gray",
|
|
@@ -3543,10 +3555,10 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3543
3555
|
]))
|
|
3544
3556
|
], 2));
|
|
3545
3557
|
}
|
|
3546
|
-
}),
|
|
3558
|
+
}), fa = { class: "mx-auto px-6 lg:px-8" }, ya = { class: "flex justify-between h-20" }, ha = { class: "flex" }, va = { class: "-ml-2 mr-2 flex items-center lg:hidden" }, ba = ["src"], wa = { class: "flex items-center" }, xa = { class: "lg:ml-4 lg:flex-shrink-0 lg:flex lg:items-center hidden" }, ka = { class: "redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute -top-0 -left-1" }, _a = ["src"], $a = ["onClick"], Ca = { class: "pt-2 pb-3 space-y-1" }, Sa = ["onClick"], Ba = { class: "pt-4 pb-3 border-t border-gray-200" }, Ma = { class: "flex items-center px-4 sm:px-6" }, Da = { class: "flex-shrink-0" }, ja = ["src"], Ta = {
|
|
3547
3559
|
key: 0,
|
|
3548
3560
|
class: "ml-3"
|
|
3549
|
-
},
|
|
3561
|
+
}, za = { class: "text-base font-medium text-gray-800" }, La = { class: "text-sm font-medium text-gray-500" }, Aa = { class: "mt-3 space-y-1" }, Na = ["onClick"], Oa = /* @__PURE__ */ M({
|
|
3550
3562
|
__name: "uiTopbar",
|
|
3551
3563
|
props: {
|
|
3552
3564
|
logo: {},
|
|
@@ -3558,23 +3570,23 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3558
3570
|
},
|
|
3559
3571
|
emits: ["topBarClick"],
|
|
3560
3572
|
setup(m, { emit: i }) {
|
|
3561
|
-
return (l, a) => (s(),
|
|
3573
|
+
return (l, a) => (s(), k(c(Se), {
|
|
3562
3574
|
as: "nav",
|
|
3563
3575
|
class: "bg-white shadow z-10"
|
|
3564
3576
|
}, {
|
|
3565
3577
|
default: v(({ open: r }) => [
|
|
3566
|
-
e("div",
|
|
3567
|
-
e("div",
|
|
3568
|
-
e("div",
|
|
3569
|
-
e("div",
|
|
3578
|
+
e("div", fa, [
|
|
3579
|
+
e("div", ya, [
|
|
3580
|
+
e("div", ha, [
|
|
3581
|
+
e("div", va, [
|
|
3570
3582
|
p(c(Z), { class: "inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500" }, {
|
|
3571
3583
|
default: v(() => [
|
|
3572
3584
|
a[1] || (a[1] = e("span", { class: "sr-only" }, "Open main menu", -1)),
|
|
3573
|
-
r ? (s(),
|
|
3585
|
+
r ? (s(), k(c(W), {
|
|
3574
3586
|
key: 1,
|
|
3575
3587
|
class: "block h-6 w-6",
|
|
3576
3588
|
"aria-hidden": "true"
|
|
3577
|
-
})) : (s(),
|
|
3589
|
+
})) : (s(), k(c(Ee), {
|
|
3578
3590
|
key: 0,
|
|
3579
3591
|
class: "block h-6 w-6",
|
|
3580
3592
|
"aria-hidden": "true"
|
|
@@ -3591,11 +3603,11 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3591
3603
|
class: "h-10",
|
|
3592
3604
|
src: l.logo,
|
|
3593
3605
|
alt: "Hotelinking suite product logo"
|
|
3594
|
-
}, null, 8,
|
|
3606
|
+
}, null, 8, ba)
|
|
3595
3607
|
])
|
|
3596
3608
|
]),
|
|
3597
|
-
e("div",
|
|
3598
|
-
e("div",
|
|
3609
|
+
e("div", wa, [
|
|
3610
|
+
e("div", xa, [
|
|
3599
3611
|
p(c(be), {
|
|
3600
3612
|
as: "div",
|
|
3601
3613
|
class: "ml-3 relative"
|
|
@@ -3604,7 +3616,7 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3604
3616
|
e("div", null, [
|
|
3605
3617
|
C(p(c(we), { class: "bg-white rounded-full flex text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 relative" }, {
|
|
3606
3618
|
default: v(() => [
|
|
3607
|
-
C(e("div",
|
|
3619
|
+
C(e("div", ka, a[2] || (a[2] = [
|
|
3608
3620
|
e("span", { class: "animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75" }, null, -1)
|
|
3609
3621
|
]), 512), [
|
|
3610
3622
|
[D, l.alerted]
|
|
@@ -3612,7 +3624,7 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3612
3624
|
e("img", {
|
|
3613
3625
|
class: "h-10 w-10 rounded-full",
|
|
3614
3626
|
src: l.accountLogo
|
|
3615
|
-
}, null, 8,
|
|
3627
|
+
}, null, 8, _a)
|
|
3616
3628
|
]),
|
|
3617
3629
|
_: 1
|
|
3618
3630
|
}, 512), [
|
|
@@ -3630,7 +3642,7 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3630
3642
|
default: v(() => [
|
|
3631
3643
|
p(c(xe), { class: "origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg py-1 bg-white ring-1 ring-black ring-opacity-5 focus:outline-none" }, {
|
|
3632
3644
|
default: v(() => [
|
|
3633
|
-
(s(!0), n(
|
|
3645
|
+
(s(!0), n(_, null, $(l.profileMenu, (o) => (s(), k(c(ke), {
|
|
3634
3646
|
key: o.name
|
|
3635
3647
|
}, {
|
|
3636
3648
|
default: v(({ active: t }) => [
|
|
@@ -3640,7 +3652,7 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3640
3652
|
t ? "bg-gray-100" : "",
|
|
3641
3653
|
"block px-4 py-2 text-sm text-gray-700"
|
|
3642
3654
|
]])
|
|
3643
|
-
}, g(o.name), 11,
|
|
3655
|
+
}, g(o.name), 11, $a)
|
|
3644
3656
|
]),
|
|
3645
3657
|
_: 2
|
|
3646
3658
|
}, 1024))), 128))
|
|
@@ -3659,8 +3671,8 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3659
3671
|
]),
|
|
3660
3672
|
p(c(Be), { class: "lg:hidden" }, {
|
|
3661
3673
|
default: v(() => [
|
|
3662
|
-
e("div",
|
|
3663
|
-
(s(!0), n(
|
|
3674
|
+
e("div", Ca, [
|
|
3675
|
+
(s(!0), n(_, null, $(l.navigation, (o) => (s(), k(c(Z), {
|
|
3664
3676
|
as: "template",
|
|
3665
3677
|
key: o.name,
|
|
3666
3678
|
class: h(["block pl-3 pr-4 py-2 border-l-4 text-base font-medium sm:pl-5 sm:pr-6", {
|
|
@@ -3671,26 +3683,26 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3671
3683
|
default: v(() => [
|
|
3672
3684
|
e("p", {
|
|
3673
3685
|
onClick: (t) => l.$emit("topBarClick", o.id)
|
|
3674
|
-
}, g(o.name), 9,
|
|
3686
|
+
}, g(o.name), 9, Sa)
|
|
3675
3687
|
]),
|
|
3676
3688
|
_: 2
|
|
3677
3689
|
}, 1032, ["class"]))), 128))
|
|
3678
3690
|
]),
|
|
3679
|
-
e("div",
|
|
3680
|
-
e("div",
|
|
3681
|
-
e("div",
|
|
3691
|
+
e("div", Ba, [
|
|
3692
|
+
e("div", Ma, [
|
|
3693
|
+
e("div", Da, [
|
|
3682
3694
|
e("img", {
|
|
3683
3695
|
class: "h-10 w-10 rounded-full",
|
|
3684
3696
|
src: l.accountLogo
|
|
3685
|
-
}, null, 8,
|
|
3697
|
+
}, null, 8, ja)
|
|
3686
3698
|
]),
|
|
3687
|
-
l.brand ? (s(), n("div",
|
|
3688
|
-
e("div",
|
|
3689
|
-
e("div",
|
|
3699
|
+
l.brand ? (s(), n("div", Ta, [
|
|
3700
|
+
e("div", za, g(l.brand.title), 1),
|
|
3701
|
+
e("div", La, g(l.brand.subtitle), 1)
|
|
3690
3702
|
])) : b("", !0)
|
|
3691
3703
|
]),
|
|
3692
|
-
e("div",
|
|
3693
|
-
(s(!0), n(
|
|
3704
|
+
e("div", Aa, [
|
|
3705
|
+
(s(!0), n(_, null, $(l.profileMenu, (o) => (s(), k(c(Z), {
|
|
3694
3706
|
as: "template",
|
|
3695
3707
|
key: o.name,
|
|
3696
3708
|
class: "block px-4 py-2 text-base font-medium text-gray-500 hover:text-gray-800 hover:bg-gray-100 sm:px-6"
|
|
@@ -3698,7 +3710,7 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3698
3710
|
default: v(() => [
|
|
3699
3711
|
e("p", {
|
|
3700
3712
|
onClick: (t) => l.$emit("topBarClick", o.id)
|
|
3701
|
-
}, g(o.name), 9,
|
|
3713
|
+
}, g(o.name), 9, Na)
|
|
3702
3714
|
]),
|
|
3703
3715
|
_: 2
|
|
3704
3716
|
}, 1024))), 128))
|
|
@@ -3711,7 +3723,7 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3711
3723
|
_: 1
|
|
3712
3724
|
}));
|
|
3713
3725
|
}
|
|
3714
|
-
}),
|
|
3726
|
+
}), Ia = { class: "chart-selector flex flex-row items-center justify-center" }, Ya = /* @__PURE__ */ M({
|
|
3715
3727
|
__name: "RangeSelector",
|
|
3716
3728
|
props: { range: { type: String } },
|
|
3717
3729
|
emits: ["rangeSelected"],
|
|
@@ -3721,7 +3733,7 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3721
3733
|
const o = (t) => {
|
|
3722
3734
|
r = t, l("rangeSelected", t);
|
|
3723
3735
|
};
|
|
3724
|
-
return (t, d) => (s(), n("ul",
|
|
3736
|
+
return (t, d) => (s(), n("ul", Ia, [
|
|
3725
3737
|
e("li", {
|
|
3726
3738
|
class: h({ selected: c(r) === "24h" }),
|
|
3727
3739
|
onClick: d[0] || (d[0] = (u) => o("24h"))
|
|
@@ -3740,7 +3752,7 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3740
3752
|
}, "3M", 2)
|
|
3741
3753
|
]));
|
|
3742
3754
|
}
|
|
3743
|
-
}),
|
|
3755
|
+
}), Pa = { class: "chart-header flex flex-row justify-between" }, Va = { class: "text-sm font-medium text-gray-500 truncate" }, Fa = { class: "chart-content" }, qa = { class: "h-full w-full flex items-center justify-center flex-col" }, Ra = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, Ua = /* @__PURE__ */ M({
|
|
3744
3756
|
__name: "uiFunnelChartV2",
|
|
3745
3757
|
props: {
|
|
3746
3758
|
labels: {},
|
|
@@ -3801,18 +3813,18 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3801
3813
|
const o = V(() => ({ ...a.options, ...r })), t = V(() => a.series), d = () => l("chartUpdated"), u = (f, y, w) => {
|
|
3802
3814
|
l("dataPointSelection", { id: a.id, chartContext: y, config: w, event: f });
|
|
3803
3815
|
};
|
|
3804
|
-
return (f, y) => (s(), n(
|
|
3816
|
+
return (f, y) => (s(), n(_, null, [
|
|
3805
3817
|
C(e("div", {
|
|
3806
3818
|
class: h(["h-[" + f.height + "px]", "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"])
|
|
3807
3819
|
}, [
|
|
3808
|
-
e("div",
|
|
3809
|
-
e("div",
|
|
3810
|
-
p(
|
|
3820
|
+
e("div", Pa, [
|
|
3821
|
+
e("div", Va, g(f.title), 1),
|
|
3822
|
+
p(Ya, {
|
|
3811
3823
|
range: f.range,
|
|
3812
3824
|
onRangeSelected: y[0] || (y[0] = (w) => f.$emit("selectedRange", { range: w, chartId: f.id }))
|
|
3813
3825
|
}, null, 8, ["range"])
|
|
3814
3826
|
]),
|
|
3815
|
-
C(e("div",
|
|
3827
|
+
C(e("div", Fa, [
|
|
3816
3828
|
p(c(Me), {
|
|
3817
3829
|
type: f.type,
|
|
3818
3830
|
series: t.value,
|
|
@@ -3826,7 +3838,7 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3826
3838
|
], 512), [
|
|
3827
3839
|
[D, !f.empty]
|
|
3828
3840
|
]),
|
|
3829
|
-
C(e("div",
|
|
3841
|
+
C(e("div", qa, [
|
|
3830
3842
|
p(j, {
|
|
3831
3843
|
icon: c(H),
|
|
3832
3844
|
color: "gray",
|
|
@@ -3840,7 +3852,7 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3840
3852
|
], 2), [
|
|
3841
3853
|
[D, !f.loading]
|
|
3842
3854
|
]),
|
|
3843
|
-
C(e("div",
|
|
3855
|
+
C(e("div", Ra, y[2] || (y[2] = [
|
|
3844
3856
|
e("div", {
|
|
3845
3857
|
role: "status",
|
|
3846
3858
|
class: "w-full animate-pulse h-full flex flex-col"
|
|
@@ -3871,7 +3883,7 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3871
3883
|
])
|
|
3872
3884
|
], 64));
|
|
3873
3885
|
}
|
|
3874
|
-
}),
|
|
3886
|
+
}), Ha = { class: "w-full flex flex-col justify-center p-10 grow" }, Ea = { class: "text-2xl mt-4 font-bold" }, Za = { class: "mt-4" }, Ja = { class: "buttons flex mt-8 gap-x-1" }, Wa = /* @__PURE__ */ M({
|
|
3875
3887
|
__name: "uiNoResults",
|
|
3876
3888
|
props: {
|
|
3877
3889
|
title: {},
|
|
@@ -3882,7 +3894,7 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3882
3894
|
},
|
|
3883
3895
|
emits: ["action", "noResultsOptionSelected"],
|
|
3884
3896
|
setup(m) {
|
|
3885
|
-
return (i, l) => (s(), n("div",
|
|
3897
|
+
return (i, l) => (s(), n("div", Ha, [
|
|
3886
3898
|
p(j, {
|
|
3887
3899
|
class: "mx-auto",
|
|
3888
3900
|
loading: !1,
|
|
@@ -3891,10 +3903,10 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3891
3903
|
color: "gray"
|
|
3892
3904
|
}, null, 8, ["icon"]),
|
|
3893
3905
|
e("div", null, [
|
|
3894
|
-
e("h2",
|
|
3895
|
-
e("p",
|
|
3896
|
-
e("div",
|
|
3897
|
-
(s(!0), n(
|
|
3906
|
+
e("h2", Ea, g(i.title), 1),
|
|
3907
|
+
e("p", Za, g(i.message), 1),
|
|
3908
|
+
e("div", Ja, [
|
|
3909
|
+
(s(!0), n(_, null, $(i.actions, (a, r) => (s(), k(J, {
|
|
3898
3910
|
key: r,
|
|
3899
3911
|
loading: !1,
|
|
3900
3912
|
onClick: (o) => i.$emit("action", a.action)
|
|
@@ -3904,7 +3916,7 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3904
3916
|
]),
|
|
3905
3917
|
_: 2
|
|
3906
3918
|
}, 1032, ["onClick"]))), 128)),
|
|
3907
|
-
i.items ? (s(),
|
|
3919
|
+
i.items ? (s(), k(fe, {
|
|
3908
3920
|
key: 0,
|
|
3909
3921
|
items: i.items,
|
|
3910
3922
|
loading: !1,
|
|
@@ -3914,7 +3926,7 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3914
3926
|
])
|
|
3915
3927
|
]));
|
|
3916
3928
|
}
|
|
3917
|
-
}),
|
|
3929
|
+
}), Ga = { class: "fixed inset-0 overflow-hidden" }, Qa = { class: "absolute inset-0 overflow-hidden" }, Ka = { class: "pointer-events-none fixed inset-y-0 right-0 flex max-w-full pl-10" }, Xa = { class: "flex h-full flex-col overflow-y-scroll bg-white shadow-xl" }, ei = { class: "bg-indigo-700 px-4 py-6 sm:px-6" }, ti = { class: "flex items-center justify-between" }, si = { class: "ml-3 flex h-7 items-center" }, oi = { class: "mt-1" }, li = { class: "text-sm text-indigo-300" }, ri = { class: "relative flex-1 px-4 py-6 sm:px-6" }, ni = /* @__PURE__ */ M({
|
|
3918
3930
|
__name: "uiRightSidebar",
|
|
3919
3931
|
props: {
|
|
3920
3932
|
title: {},
|
|
@@ -3923,7 +3935,7 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3923
3935
|
},
|
|
3924
3936
|
emits: ["closeRightBar"],
|
|
3925
3937
|
setup(m, { emit: i }) {
|
|
3926
|
-
return (l, a) => (s(),
|
|
3938
|
+
return (l, a) => (s(), k(c(_e), {
|
|
3927
3939
|
as: "template",
|
|
3928
3940
|
show: l.open
|
|
3929
3941
|
}, {
|
|
@@ -3935,9 +3947,9 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3935
3947
|
}, {
|
|
3936
3948
|
default: v(() => [
|
|
3937
3949
|
a[4] || (a[4] = e("div", { class: "fixed inset-0" }, null, -1)),
|
|
3938
|
-
e("div",
|
|
3939
|
-
e("div",
|
|
3940
|
-
e("div",
|
|
3950
|
+
e("div", Ga, [
|
|
3951
|
+
e("div", Qa, [
|
|
3952
|
+
e("div", Ka, [
|
|
3941
3953
|
p(c(G), {
|
|
3942
3954
|
as: "template",
|
|
3943
3955
|
enter: "transform transition ease-in-out duration-500 sm:duration-700",
|
|
@@ -3950,16 +3962,16 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3950
3962
|
default: v(() => [
|
|
3951
3963
|
p(c(Ce), { class: "pointer-events-auto w-screen max-w-md" }, {
|
|
3952
3964
|
default: v(() => [
|
|
3953
|
-
e("div",
|
|
3954
|
-
e("div",
|
|
3955
|
-
e("div",
|
|
3965
|
+
e("div", Xa, [
|
|
3966
|
+
e("div", ei, [
|
|
3967
|
+
e("div", ti, [
|
|
3956
3968
|
p(c(Re), { class: "text-base font-semibold leading-6 text-white" }, {
|
|
3957
3969
|
default: v(() => [
|
|
3958
3970
|
L(g(l.title), 1)
|
|
3959
3971
|
]),
|
|
3960
3972
|
_: 1
|
|
3961
3973
|
}),
|
|
3962
|
-
e("div",
|
|
3974
|
+
e("div", si, [
|
|
3963
3975
|
e("button", {
|
|
3964
3976
|
type: "button",
|
|
3965
3977
|
class: "relative rounded-md bg-indigo-700 text-indigo-200 hover:text-white outline-none",
|
|
@@ -3974,11 +3986,11 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3974
3986
|
])
|
|
3975
3987
|
])
|
|
3976
3988
|
]),
|
|
3977
|
-
e("div",
|
|
3978
|
-
e("p",
|
|
3989
|
+
e("div", oi, [
|
|
3990
|
+
e("p", li, g(l.description), 1)
|
|
3979
3991
|
])
|
|
3980
3992
|
]),
|
|
3981
|
-
e("div",
|
|
3993
|
+
e("div", ri, [
|
|
3982
3994
|
q(l.$slots, "default")
|
|
3983
3995
|
])
|
|
3984
3996
|
])
|
|
@@ -3998,15 +4010,15 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
3998
4010
|
_: 3
|
|
3999
4011
|
}, 8, ["show"]));
|
|
4000
4012
|
}
|
|
4001
|
-
}),
|
|
4013
|
+
}), ai = { class: "uiGallery" }, ii = {
|
|
4002
4014
|
key: 1,
|
|
4003
4015
|
role: "list",
|
|
4004
4016
|
class: "grid grid-cols-2 gap-x-4 gap-y-8 sm:grid-cols-3 sm:gap-x-4 lg:grid-cols-6"
|
|
4005
|
-
},
|
|
4017
|
+
}, di = { 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" }, ui = ["src"], ci = ["onClick"], gi = { class: "pointer-events-none mt-2 block truncate text-sm font-medium text-gray-900" }, pi = { class: "flex items-center justify-between" }, mi = { class: "pointer-events-none block text-sm font-medium text-gray-500" }, fi = {
|
|
4006
4018
|
key: 2,
|
|
4007
4019
|
role: "list",
|
|
4008
4020
|
class: "grid grid-cols-2 gap-x-4 gap-y-8 sm:grid-cols-3 sm:gap-x-4 lg:grid-cols-6"
|
|
4009
|
-
},
|
|
4021
|
+
}, yi = /* @__PURE__ */ M({
|
|
4010
4022
|
__name: "uiGallery",
|
|
4011
4023
|
props: {
|
|
4012
4024
|
galleryId: {},
|
|
@@ -4019,8 +4031,8 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
4019
4031
|
const l = i, a = N(!1), r = (o) => {
|
|
4020
4032
|
a.value = !1, l("modalAction", o);
|
|
4021
4033
|
};
|
|
4022
|
-
return (o, t) => (s(), n("div",
|
|
4023
|
-
o.loading ? b("", !0) : (s(),
|
|
4034
|
+
return (o, t) => (s(), n("div", ai, [
|
|
4035
|
+
o.loading ? b("", !0) : (s(), k(Xe, {
|
|
4024
4036
|
key: 0,
|
|
4025
4037
|
open: a.value,
|
|
4026
4038
|
modalName: "deleteAllImagesModal",
|
|
@@ -4034,35 +4046,35 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
4034
4046
|
]),
|
|
4035
4047
|
_: 1
|
|
4036
4048
|
}, 8, ["open", "title", "actions"])),
|
|
4037
|
-
o.loading ? (s(), n("ul",
|
|
4038
|
-
(s(), n(
|
|
4049
|
+
o.loading ? (s(), n("ul", fi, [
|
|
4050
|
+
(s(), n(_, null, $(4, (d) => e("li", null, t[2] || (t[2] = [
|
|
4039
4051
|
e("div", { class: "group aspect-h-7 aspect-w-10 block w-full overflow-hidden rounded-lg bg-gray-200 animate-pulse dark:bg-gray-200 focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 focus-within:ring-offset-gray-100" }, null, -1),
|
|
4040
4052
|
e("p", { class: "animate-pulse h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28 mt-4" }, null, -1),
|
|
4041
4053
|
e("p", { class: "animate-pulse h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-14 mt-2" }, null, -1)
|
|
4042
4054
|
]))), 64))
|
|
4043
|
-
])) : (s(), n("ul",
|
|
4044
|
-
(s(!0), n(
|
|
4055
|
+
])) : (s(), n("ul", ii, [
|
|
4056
|
+
(s(!0), n(_, null, $(o.gallery, (d) => (s(), n("li", {
|
|
4045
4057
|
key: d.source,
|
|
4046
4058
|
class: "relative"
|
|
4047
4059
|
}, [
|
|
4048
|
-
e("div",
|
|
4060
|
+
e("div", di, [
|
|
4049
4061
|
e("img", {
|
|
4050
4062
|
src: d.source,
|
|
4051
4063
|
alt: "",
|
|
4052
4064
|
class: "pointer-events-none object-cover group-hover:opacity-75"
|
|
4053
|
-
}, null, 8,
|
|
4065
|
+
}, null, 8, ui),
|
|
4054
4066
|
e("button", {
|
|
4055
4067
|
type: "button",
|
|
4056
4068
|
class: "absolute inset-0 focus:outline-none",
|
|
4057
4069
|
onClick: (u) => o.$emit("imgClicked", d)
|
|
4058
|
-
}, null, 8,
|
|
4070
|
+
}, null, 8, ci)
|
|
4059
4071
|
]),
|
|
4060
|
-
e("p",
|
|
4061
|
-
e("div",
|
|
4062
|
-
e("p",
|
|
4072
|
+
e("p", gi, g(d.title), 1),
|
|
4073
|
+
e("div", pi, [
|
|
4074
|
+
e("p", mi, g(d.size), 1),
|
|
4063
4075
|
p(j, {
|
|
4064
4076
|
class: "cursor-pointer",
|
|
4065
|
-
icon: c(
|
|
4077
|
+
icon: c(Pt),
|
|
4066
4078
|
color: "red",
|
|
4067
4079
|
loading: !1,
|
|
4068
4080
|
onClick: (u) => o.$emit("deleteImage", d)
|
|
@@ -4070,7 +4082,7 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
4070
4082
|
])
|
|
4071
4083
|
]))), 128))
|
|
4072
4084
|
])),
|
|
4073
|
-
o.gallery.length > 0 && !o.loading ? (s(),
|
|
4085
|
+
o.gallery.length > 0 && !o.loading ? (s(), k(J, {
|
|
4074
4086
|
key: 3,
|
|
4075
4087
|
onClick: t[1] || (t[1] = (d) => a.value = !0),
|
|
4076
4088
|
class: "mt-8",
|
|
@@ -4085,10 +4097,10 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
4085
4097
|
})) : b("", !0)
|
|
4086
4098
|
]));
|
|
4087
4099
|
}
|
|
4088
|
-
}),
|
|
4100
|
+
}), hi = { class: "cursor-move mb-1 relative flex items-center space-x-3 rounded-lg border border-gray-300 bg-white p-4 shadow-sm focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 hover:border-gray-400" }, vi = { class: "flex flex-row items-center w-full" }, bi = { class: "content text-sm grow" }, wi = { class: "font-bold" }, xi = { key: 0 }, ki = { class: "font-bold text-gray-400" }, _i = {
|
|
4089
4101
|
key: 1,
|
|
4090
4102
|
class: "animate-pulse"
|
|
4091
|
-
},
|
|
4103
|
+
}, $i = /* @__PURE__ */ M({
|
|
4092
4104
|
__name: "uiDragAndDrop",
|
|
4093
4105
|
props: {
|
|
4094
4106
|
elements: {},
|
|
@@ -4104,9 +4116,9 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
4104
4116
|
const o = (t) => {
|
|
4105
4117
|
l("dragAndDropUpdated", t);
|
|
4106
4118
|
};
|
|
4107
|
-
return (t, d) => t.loading ? (s(), n("div",
|
|
4119
|
+
return (t, d) => t.loading ? (s(), n("div", _i, d[2] || (d[2] = [
|
|
4108
4120
|
Q('<div class="h-16 mb-1 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div><div class="h-16 mb-1 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div><div class="h-16 mb-1 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div><div class="h-16 mb-1 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div><div class="h-16 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div>', 5)
|
|
4109
|
-
]))) : (s(),
|
|
4121
|
+
]))) : (s(), k(c(ht), {
|
|
4110
4122
|
key: 0,
|
|
4111
4123
|
modelValue: c(r),
|
|
4112
4124
|
"onUpdate:modelValue": [
|
|
@@ -4115,27 +4127,27 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
4115
4127
|
]
|
|
4116
4128
|
}, {
|
|
4117
4129
|
item: v(({ item: u }) => [
|
|
4118
|
-
e("div",
|
|
4119
|
-
e("div",
|
|
4130
|
+
e("div", hi, [
|
|
4131
|
+
e("div", vi, [
|
|
4120
4132
|
p(j, {
|
|
4121
|
-
icon: c(
|
|
4133
|
+
icon: c(jt),
|
|
4122
4134
|
loading: !1,
|
|
4123
4135
|
color: "gray",
|
|
4124
4136
|
class: "mr-4",
|
|
4125
4137
|
size: "big"
|
|
4126
4138
|
}, null, 8, ["icon"]),
|
|
4127
|
-
e("div",
|
|
4128
|
-
e("p",
|
|
4129
|
-
u.description ? (s(), n("p",
|
|
4139
|
+
e("div", bi, [
|
|
4140
|
+
e("p", wi, g(u.name), 1),
|
|
4141
|
+
u.description ? (s(), n("p", xi, g(u.description), 1)) : b("", !0)
|
|
4130
4142
|
]),
|
|
4131
|
-
e("div",
|
|
4143
|
+
e("div", ki, g(c(r).indexOf(u) + 1), 1)
|
|
4132
4144
|
])
|
|
4133
4145
|
])
|
|
4134
4146
|
]),
|
|
4135
4147
|
_: 1
|
|
4136
4148
|
}, 8, ["modelValue"]));
|
|
4137
4149
|
}
|
|
4138
|
-
}),
|
|
4150
|
+
}), Ci = { class: "chart-header flex flex-row justify-between" }, Si = { class: "text-sm font-medium text-gray-500 truncate" }, Bi = { class: "hidden sm:flex items-center" }, Mi = { class: "w-1/2 min-w-0 flex-1" }, Di = ["max"], ji = { class: "min-w-0 flex-1" }, Ti = ["max"], zi = { class: "chart-content" }, Li = { class: "h-full w-full flex items-center justify-center flex-col" }, Ai = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, Ni = /* @__PURE__ */ M({
|
|
4139
4151
|
__name: "uiCircleChart",
|
|
4140
4152
|
props: {
|
|
4141
4153
|
labels: {},
|
|
@@ -4199,14 +4211,14 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
4199
4211
|
}, T = () => {
|
|
4200
4212
|
o.from !== "" && o.to !== "" && z(o.from).isBefore(z(o.to)) && l("selectedRange", { range: o, chartId: a.id });
|
|
4201
4213
|
};
|
|
4202
|
-
return (A, S) => (s(), n(
|
|
4214
|
+
return (A, S) => (s(), n(_, null, [
|
|
4203
4215
|
C(e("div", {
|
|
4204
4216
|
class: h(["h-[" + A.height + "px]", "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"])
|
|
4205
4217
|
}, [
|
|
4206
|
-
e("div",
|
|
4207
|
-
e("div",
|
|
4208
|
-
e("div",
|
|
4209
|
-
e("div",
|
|
4218
|
+
e("div", Ci, [
|
|
4219
|
+
e("div", Si, g(A.title), 1),
|
|
4220
|
+
e("div", Bi, [
|
|
4221
|
+
e("div", Mi, [
|
|
4210
4222
|
C(e("input", {
|
|
4211
4223
|
type: "datetime-local",
|
|
4212
4224
|
"onUpdate:modelValue": S[0] || (S[0] = (B) => c(o).from = B),
|
|
@@ -4215,11 +4227,11 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
4215
4227
|
name: "from",
|
|
4216
4228
|
id: "from",
|
|
4217
4229
|
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"
|
|
4218
|
-
}, null, 40,
|
|
4230
|
+
}, null, 40, Di), [
|
|
4219
4231
|
[X, c(o).from]
|
|
4220
4232
|
])
|
|
4221
4233
|
]),
|
|
4222
|
-
e("div",
|
|
4234
|
+
e("div", ji, [
|
|
4223
4235
|
C(e("input", {
|
|
4224
4236
|
type: "datetime-local",
|
|
4225
4237
|
"onUpdate:modelValue": S[1] || (S[1] = (B) => c(o).to = B),
|
|
@@ -4228,7 +4240,7 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
4228
4240
|
name: "to",
|
|
4229
4241
|
id: "to",
|
|
4230
4242
|
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"
|
|
4231
|
-
}, null, 40,
|
|
4243
|
+
}, null, 40, Ti), [
|
|
4232
4244
|
[X, c(o).to]
|
|
4233
4245
|
])
|
|
4234
4246
|
]),
|
|
@@ -4241,7 +4253,7 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
4241
4253
|
}, null, 8, ["loading", "icon"])
|
|
4242
4254
|
])
|
|
4243
4255
|
]),
|
|
4244
|
-
C(e("div",
|
|
4256
|
+
C(e("div", zi, [
|
|
4245
4257
|
p(c(Me), {
|
|
4246
4258
|
class: "flex items-center justify-center mt-4",
|
|
4247
4259
|
type: "donut",
|
|
@@ -4255,7 +4267,7 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
4255
4267
|
], 512), [
|
|
4256
4268
|
[D, !A.empty]
|
|
4257
4269
|
]),
|
|
4258
|
-
C(e("div",
|
|
4270
|
+
C(e("div", Li, [
|
|
4259
4271
|
p(j, {
|
|
4260
4272
|
icon: c(H),
|
|
4261
4273
|
color: "gray",
|
|
@@ -4269,7 +4281,7 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
4269
4281
|
], 2), [
|
|
4270
4282
|
[D, !A.loading]
|
|
4271
4283
|
]),
|
|
4272
|
-
C(e("div",
|
|
4284
|
+
C(e("div", Ai, S[4] || (S[4] = [
|
|
4273
4285
|
e("div", {
|
|
4274
4286
|
role: "status",
|
|
4275
4287
|
class: "w-full animate-pulse h-full flex flex-col"
|
|
@@ -4300,13 +4312,13 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
4300
4312
|
])
|
|
4301
4313
|
], 64));
|
|
4302
4314
|
}
|
|
4303
|
-
}),
|
|
4315
|
+
}), Oi = {
|
|
4304
4316
|
key: 0,
|
|
4305
4317
|
class: "flex flex-col lg:flex-row w-full gap-y-4 gap-x-2"
|
|
4306
|
-
},
|
|
4318
|
+
}, Ii = {
|
|
4307
4319
|
key: 1,
|
|
4308
4320
|
class: "flex flex-col lg:flex-row w-full gap-y-4 gap-x-2"
|
|
4309
|
-
},
|
|
4321
|
+
}, Yi = /* @__PURE__ */ M({
|
|
4310
4322
|
__name: "uiDateRange",
|
|
4311
4323
|
props: {
|
|
4312
4324
|
id: {},
|
|
@@ -4330,7 +4342,7 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
4330
4342
|
const t = () => {
|
|
4331
4343
|
o("uiDateRangeButtonClicked", r);
|
|
4332
4344
|
};
|
|
4333
|
-
return (d, u) => d.loading ? (s(), n("div",
|
|
4345
|
+
return (d, u) => d.loading ? (s(), n("div", Ii, [
|
|
4334
4346
|
p(E, {
|
|
4335
4347
|
name: "dateFrom",
|
|
4336
4348
|
loading: !0
|
|
@@ -4345,7 +4357,7 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
4345
4357
|
])),
|
|
4346
4358
|
_: 1
|
|
4347
4359
|
})
|
|
4348
|
-
])) : (s(), n("div",
|
|
4360
|
+
])) : (s(), n("div", Oi, [
|
|
4349
4361
|
p(E, {
|
|
4350
4362
|
type: "datetime-local",
|
|
4351
4363
|
loading: !1,
|
|
@@ -4387,16 +4399,16 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
4387
4399
|
}, 8, ["disabled", "class"])
|
|
4388
4400
|
]));
|
|
4389
4401
|
}
|
|
4390
|
-
}),
|
|
4402
|
+
}), Pi = { class: "flex justify-between items-center" }, Vi = {
|
|
4391
4403
|
key: 0,
|
|
4392
4404
|
class: "block text-sm font-medium text-gray-700"
|
|
4393
|
-
},
|
|
4405
|
+
}, Fi = {
|
|
4394
4406
|
key: 1,
|
|
4395
4407
|
class: "place-self-center text-[10px] text-gray-500 uppercase justify-self-end"
|
|
4396
|
-
},
|
|
4408
|
+
}, qi = {
|
|
4397
4409
|
key: 1,
|
|
4398
4410
|
class: "h-2 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 w-full"
|
|
4399
|
-
},
|
|
4411
|
+
}, Ri = /* @__PURE__ */ M({
|
|
4400
4412
|
__name: "uiRangeSlider",
|
|
4401
4413
|
props: {
|
|
4402
4414
|
loading: { type: Boolean, default: !0 },
|
|
@@ -4411,14 +4423,14 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
4411
4423
|
setup(m, { emit: i }) {
|
|
4412
4424
|
const l = i, r = N(m.sliderValue);
|
|
4413
4425
|
return (o, t) => (s(), n("div", null, [
|
|
4414
|
-
e("div",
|
|
4415
|
-
o.label ? (s(), n("label",
|
|
4416
|
-
o.requiredText ? (s(), n("span",
|
|
4426
|
+
e("div", Pi, [
|
|
4427
|
+
o.label ? (s(), n("label", Vi, g(o.label), 1)) : b("", !0),
|
|
4428
|
+
o.requiredText ? (s(), n("span", Fi, g(o.requiredText), 1)) : b("", !0)
|
|
4417
4429
|
]),
|
|
4418
4430
|
e("div", {
|
|
4419
4431
|
class: h([{ "mt-1": o.label }, "pt-16 px-6 pb-6 bg-gray-50 border border-gray-300 rounded-lg shadow-sm"])
|
|
4420
4432
|
}, [
|
|
4421
|
-
o.loading ? (s(), n("p",
|
|
4433
|
+
o.loading ? (s(), n("p", qi)) : (s(), k(c(vt), {
|
|
4422
4434
|
key: 0,
|
|
4423
4435
|
modelValue: r.value,
|
|
4424
4436
|
"onUpdate:modelValue": t[0] || (t[0] = (d) => r.value = d),
|
|
@@ -4434,27 +4446,27 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
4434
4446
|
], 2)
|
|
4435
4447
|
]));
|
|
4436
4448
|
}
|
|
4437
|
-
}),
|
|
4449
|
+
}), Ui = { class: "mt-1 mb-8 text-sm text-gray-500" }, Hi = /* @__PURE__ */ M({
|
|
4438
4450
|
__name: "uiSectionTitle",
|
|
4439
4451
|
props: {
|
|
4440
4452
|
title: {},
|
|
4441
4453
|
description: {}
|
|
4442
4454
|
},
|
|
4443
4455
|
setup(m) {
|
|
4444
|
-
return (i, l) => (s(), n(
|
|
4456
|
+
return (i, l) => (s(), n(_, null, [
|
|
4445
4457
|
e("h3", {
|
|
4446
4458
|
class: h(["text-lg font-medium leading-6 text-gray-900", { "mb-8": i.description === void 0 }])
|
|
4447
4459
|
}, g(i.title), 3),
|
|
4448
|
-
e("p",
|
|
4460
|
+
e("p", Ui, g(i.description), 1)
|
|
4449
4461
|
], 64));
|
|
4450
4462
|
}
|
|
4451
|
-
}),
|
|
4463
|
+
}), Ei = {
|
|
4452
4464
|
key: 0,
|
|
4453
4465
|
class: "col-span-1 flex flex-col divide-y divide-gray-200 rounded-lg bg-white text-center shadow"
|
|
4454
|
-
},
|
|
4466
|
+
}, Zi = { class: "flex flex-1 flex-col p-8" }, Ji = { class: "text-2xl font-bold text-gray-900" }, Wi = { class: "mt-1 flex flex-grow flex-col justify-between" }, Gi = { class: "mt-3 flex flex-wrap gap-x-1 gap-y-1 justify-center" }, Qi = {
|
|
4455
4467
|
key: 1,
|
|
4456
4468
|
class: "col-span-1 flex flex-col divide-y divide-gray-200 rounded-lg bg-white text-center shadow"
|
|
4457
|
-
},
|
|
4469
|
+
}, Ki = { class: "flex flex-1 flex-col p-8" }, Xi = { class: "rounded-md p-3 flex items-center justify-center mx-auto mb-4 bg-gray-200" }, ed = { class: "mt-1 flex flex-grow flex-col justify-between" }, td = { class: "mt-3 flex flex-wrap gap-x-1 gap-y-1 justify-center" }, sd = /* @__PURE__ */ M({
|
|
4458
4470
|
__name: "uiDeviceStatus",
|
|
4459
4471
|
props: {
|
|
4460
4472
|
id: {},
|
|
@@ -4467,9 +4479,9 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
4467
4479
|
},
|
|
4468
4480
|
emits: ["deviceStatusTagClicked", "deviceStatusQtyClicked"],
|
|
4469
4481
|
setup(m, { emit: i }) {
|
|
4470
|
-
return (l, a) => l.loading ? (s(), n("div",
|
|
4471
|
-
e("div",
|
|
4472
|
-
e("div",
|
|
4482
|
+
return (l, a) => l.loading ? (s(), n("div", Qi, [
|
|
4483
|
+
e("div", Ki, [
|
|
4484
|
+
e("div", Xi, [
|
|
4473
4485
|
p(j, {
|
|
4474
4486
|
icon: l.icon,
|
|
4475
4487
|
size: "huge",
|
|
@@ -4479,9 +4491,9 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
4479
4491
|
}, null, 8, ["icon", "loading"])
|
|
4480
4492
|
]),
|
|
4481
4493
|
a[3] || (a[3] = e("div", { class: "h-4 bg-gray-200 rounded-full dark:bg-gray-300 w-1/3 mx-auto" }, null, -1)),
|
|
4482
|
-
e("dl",
|
|
4483
|
-
e("dd",
|
|
4484
|
-
(s(!0), n(
|
|
4494
|
+
e("dl", ed, [
|
|
4495
|
+
e("dd", td, [
|
|
4496
|
+
(s(!0), n(_, null, $(l.tags, (r, o) => (s(), k(U, {
|
|
4485
4497
|
key: o,
|
|
4486
4498
|
loading: l.loading,
|
|
4487
4499
|
event: r.event,
|
|
@@ -4496,8 +4508,8 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
4496
4508
|
])
|
|
4497
4509
|
])
|
|
4498
4510
|
])
|
|
4499
|
-
])) : (s(), n("div",
|
|
4500
|
-
e("div",
|
|
4511
|
+
])) : (s(), n("div", Ei, [
|
|
4512
|
+
e("div", Zi, [
|
|
4501
4513
|
e("div", {
|
|
4502
4514
|
class: h(["rounded-md p-3 flex items-center justify-center mx-auto mb-4", {
|
|
4503
4515
|
"bg-green-500": !l.color || l.color === "green",
|
|
@@ -4516,7 +4528,7 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
4516
4528
|
loading: !1
|
|
4517
4529
|
}, null, 8, ["icon"])
|
|
4518
4530
|
], 2),
|
|
4519
|
-
e("h3",
|
|
4531
|
+
e("h3", Ji, [
|
|
4520
4532
|
L(g(l.name) + " ", 1),
|
|
4521
4533
|
C(e("span", {
|
|
4522
4534
|
class: "text-indigo-600 hover:text-indigo-900 cursor-pointer",
|
|
@@ -4525,9 +4537,9 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
4525
4537
|
[D, l.qty > 0]
|
|
4526
4538
|
])
|
|
4527
4539
|
]),
|
|
4528
|
-
e("dl",
|
|
4529
|
-
e("dd",
|
|
4530
|
-
(s(!0), n(
|
|
4540
|
+
e("dl", Wi, [
|
|
4541
|
+
e("dd", Gi, [
|
|
4542
|
+
(s(!0), n(_, null, $(l.tags, (r, o) => (s(), k(U, {
|
|
4531
4543
|
key: o,
|
|
4532
4544
|
loading: !1,
|
|
4533
4545
|
event: r.event,
|
|
@@ -4544,14 +4556,14 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
4544
4556
|
])
|
|
4545
4557
|
]));
|
|
4546
4558
|
}
|
|
4547
|
-
}),
|
|
4559
|
+
}), od = { class: "fixed inset-0 flex" }, ld = { class: "absolute left-full top-0 flex w-16 justify-center pt-5" }, rd = { class: "hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-[25rem] lg:flex-col" }, nd = { class: "lg:pl-[25rem]" }, ad = { class: "sticky top-0 z-10 flex h-16 shrink-0 items-center gap-x-4 border-b border-gray-200 bg-white px-4 shadow-sm sm:gap-x-6 sm:px-6 lg:px-8" }, id = { class: "flex flex-1 gap-x-4 self-stretch lg:gap-x-6" }, dd = {
|
|
4548
4560
|
class: "relative flex flex-1",
|
|
4549
4561
|
action: "#",
|
|
4550
4562
|
method: "GET"
|
|
4551
|
-
},
|
|
4563
|
+
}, ud = { class: "relative 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" }, cd = { class: "flex items-center gap-x-4 lg:gap-x-6" }, gd = {
|
|
4552
4564
|
type: "button",
|
|
4553
4565
|
class: "-m-2.5 p-2.5 text-gray-400 hover:text-gray-500 relative"
|
|
4554
|
-
},
|
|
4566
|
+
}, pd = { class: "redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute top-1 left-2" }, md = ["src"], fd = { class: "hidden lg:flex lg:items-center" }, yd = ["onClick"], hd = { class: "py-7" }, vd = { class: "px-7 lg:px-10" }, bd = /* @__PURE__ */ M({
|
|
4555
4567
|
__name: "uiWrapper",
|
|
4556
4568
|
props: {
|
|
4557
4569
|
topbar: {},
|
|
@@ -4585,7 +4597,7 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
4585
4597
|
])),
|
|
4586
4598
|
_: 1
|
|
4587
4599
|
}),
|
|
4588
|
-
e("div",
|
|
4600
|
+
e("div", od, [
|
|
4589
4601
|
p(c(G), {
|
|
4590
4602
|
as: "template",
|
|
4591
4603
|
enter: "transition ease-in-out duration-300 transform",
|
|
@@ -4608,7 +4620,7 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
4608
4620
|
"leave-to": "opacity-0"
|
|
4609
4621
|
}, {
|
|
4610
4622
|
default: v(() => [
|
|
4611
|
-
e("div",
|
|
4623
|
+
e("div", ld, [
|
|
4612
4624
|
e("button", {
|
|
4613
4625
|
type: "button",
|
|
4614
4626
|
class: "-m-2.5 p-2.5",
|
|
@@ -4647,7 +4659,7 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
4647
4659
|
]),
|
|
4648
4660
|
_: 1
|
|
4649
4661
|
}, 8, ["show"]),
|
|
4650
|
-
e("div",
|
|
4662
|
+
e("div", rd, [
|
|
4651
4663
|
p(he, {
|
|
4652
4664
|
productsSidebar: u.sidebar.productsSidebar,
|
|
4653
4665
|
isFilterNavigation: u.sidebar.isFilterNavigation,
|
|
@@ -4659,8 +4671,8 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
4659
4671
|
onProductBarClick: f[5] || (f[5] = (y) => u.$emit("productBarClick", y))
|
|
4660
4672
|
}, null, 8, ["productsSidebar", "isFilterNavigation", "navigation", "filterNavigation", "logo"])
|
|
4661
4673
|
]),
|
|
4662
|
-
e("div",
|
|
4663
|
-
e("div",
|
|
4674
|
+
e("div", nd, [
|
|
4675
|
+
e("div", ad, [
|
|
4664
4676
|
e("button", {
|
|
4665
4677
|
type: "button",
|
|
4666
4678
|
class: "-m-2.5 p-2.5 text-gray-700 lg:hidden",
|
|
@@ -4676,13 +4688,13 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
4676
4688
|
class: "h-6 w-px bg-gray-200 lg:hidden",
|
|
4677
4689
|
"aria-hidden": "true"
|
|
4678
4690
|
}, null, -1)),
|
|
4679
|
-
e("div",
|
|
4680
|
-
e("form",
|
|
4691
|
+
e("div", id, [
|
|
4692
|
+
e("form", dd, [
|
|
4681
4693
|
f[14] || (f[14] = e("label", {
|
|
4682
4694
|
for: "search-field",
|
|
4683
4695
|
class: "sr-only"
|
|
4684
4696
|
}, "Search", -1)),
|
|
4685
|
-
p(c(
|
|
4697
|
+
p(c(It), {
|
|
4686
4698
|
class: "pointer-events-none absolute inset-y-0 left-0 h-full w-5 text-gray-400",
|
|
4687
4699
|
"aria-hidden": "true"
|
|
4688
4700
|
}),
|
|
@@ -4696,7 +4708,7 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
4696
4708
|
]
|
|
4697
4709
|
}, {
|
|
4698
4710
|
default: v(() => [
|
|
4699
|
-
e("div",
|
|
4711
|
+
e("div", ud, [
|
|
4700
4712
|
p(c(Pe), {
|
|
4701
4713
|
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",
|
|
4702
4714
|
onChange: f[7] || (f[7] = (y) => a.value = y.target.value),
|
|
@@ -4709,12 +4721,12 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
4709
4721
|
]),
|
|
4710
4722
|
_: 1
|
|
4711
4723
|
}),
|
|
4712
|
-
r.value.length > 0 ? (s(),
|
|
4724
|
+
r.value.length > 0 ? (s(), k(c(Fe), {
|
|
4713
4725
|
key: 0,
|
|
4714
4726
|
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"
|
|
4715
4727
|
}, {
|
|
4716
4728
|
default: v(() => [
|
|
4717
|
-
(s(!0), n(
|
|
4729
|
+
(s(!0), n(_, null, $(r.value, (y) => (s(), k(c(qe), {
|
|
4718
4730
|
key: y.id,
|
|
4719
4731
|
value: y,
|
|
4720
4732
|
as: "template"
|
|
@@ -4744,15 +4756,15 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
4744
4756
|
_: 1
|
|
4745
4757
|
}, 8, ["modelValue"])
|
|
4746
4758
|
]),
|
|
4747
|
-
e("div",
|
|
4748
|
-
e("button",
|
|
4759
|
+
e("div", cd, [
|
|
4760
|
+
e("button", gd, [
|
|
4749
4761
|
f[16] || (f[16] = e("span", { class: "sr-only" }, "View notifications", -1)),
|
|
4750
|
-
C(e("div",
|
|
4762
|
+
C(e("div", pd, f[15] || (f[15] = [
|
|
4751
4763
|
e("span", { class: "animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75" }, null, -1)
|
|
4752
4764
|
]), 512), [
|
|
4753
4765
|
[D, u.topbar.alerted]
|
|
4754
4766
|
]),
|
|
4755
|
-
p(c(
|
|
4767
|
+
p(c(Tt), {
|
|
4756
4768
|
class: "h-6 w-6",
|
|
4757
4769
|
"aria-hidden": "true"
|
|
4758
4770
|
})
|
|
@@ -4773,8 +4785,8 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
4773
4785
|
class: "h-8 w-8 rounded-full bg-gray-50",
|
|
4774
4786
|
src: u.topbar.accountLogo,
|
|
4775
4787
|
alt: ""
|
|
4776
|
-
}, null, 8,
|
|
4777
|
-
e("span",
|
|
4788
|
+
}, null, 8, md),
|
|
4789
|
+
e("span", fd, [
|
|
4778
4790
|
p(c(de), {
|
|
4779
4791
|
class: "ml-2 h-5 w-5 text-gray-400",
|
|
4780
4792
|
"aria-hidden": "true"
|
|
@@ -4794,14 +4806,14 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
4794
4806
|
default: v(() => [
|
|
4795
4807
|
p(c(xe), { 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" }, {
|
|
4796
4808
|
default: v(() => [
|
|
4797
|
-
(s(!0), n(
|
|
4809
|
+
(s(!0), n(_, null, $(u.topbar.profileMenu, (y) => (s(), k(c(ke), {
|
|
4798
4810
|
key: y.name
|
|
4799
4811
|
}, {
|
|
4800
4812
|
default: v(({ active: w }) => [
|
|
4801
4813
|
e("a", {
|
|
4802
4814
|
onClick: (T) => u.$emit("topBarClick", y.id),
|
|
4803
4815
|
class: h([w ? "bg-gray-50" : "", "block px-3 py-1 text-sm leading-6 text-gray-900"])
|
|
4804
|
-
}, g(y.name), 11,
|
|
4816
|
+
}, g(y.name), 11, yd)
|
|
4805
4817
|
]),
|
|
4806
4818
|
_: 2
|
|
4807
4819
|
}, 1024))), 128))
|
|
@@ -4817,15 +4829,15 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
4817
4829
|
])
|
|
4818
4830
|
])
|
|
4819
4831
|
]),
|
|
4820
|
-
e("main",
|
|
4821
|
-
e("div",
|
|
4832
|
+
e("main", hd, [
|
|
4833
|
+
e("div", vd, [
|
|
4822
4834
|
q(u.$slots, "default")
|
|
4823
4835
|
])
|
|
4824
4836
|
])
|
|
4825
4837
|
])
|
|
4826
4838
|
]));
|
|
4827
4839
|
}
|
|
4828
|
-
}),
|
|
4840
|
+
}), wd = /* @__PURE__ */ M({
|
|
4829
4841
|
__name: "uiDynamicStats",
|
|
4830
4842
|
props: {
|
|
4831
4843
|
dynamicStats: {},
|
|
@@ -4833,74 +4845,27 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
4833
4845
|
},
|
|
4834
4846
|
setup(m) {
|
|
4835
4847
|
const i = m, l = () => 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 = N(0), r = N(l());
|
|
4836
|
-
return
|
|
4848
|
+
return rt(() => a.value += 1), (o, t) => (s(), n("div", {
|
|
4837
4849
|
class: h([r.value, "grid grid-cols-1 md:grid-cols-2 gap-4"]),
|
|
4838
4850
|
key: a.value
|
|
4839
4851
|
}, [
|
|
4840
|
-
(s(!0), n(
|
|
4852
|
+
(s(!0), n(_, null, $(o.dynamicStats, (d, u) => (s(), k(tt, {
|
|
4841
4853
|
key: u,
|
|
4842
4854
|
item: d,
|
|
4843
4855
|
loading: o.loading
|
|
4844
4856
|
}, null, 8, ["item", "loading"]))), 128))
|
|
4845
4857
|
], 2));
|
|
4846
4858
|
}
|
|
4847
|
-
}),
|
|
4848
|
-
__name: "uiSmartFilter",
|
|
4849
|
-
props: {
|
|
4850
|
-
items: {},
|
|
4851
|
-
buttonLiteral: {},
|
|
4852
|
-
loading: { type: Boolean, default: !0 }
|
|
4853
|
-
},
|
|
4854
|
-
emits: ["smartFilterSelected", "smartInputChanged", "smartSelectChanged", "smartOptionSelected", "rightAddOnClicked"],
|
|
4855
|
-
setup(m, { emit: i }) {
|
|
4856
|
-
const l = m, a = i, r = lt(E), o = N(l.items[0].props), t = (d) => {
|
|
4857
|
-
switch (d.type) {
|
|
4858
|
-
case "uiInput":
|
|
4859
|
-
r.value = E;
|
|
4860
|
-
break;
|
|
4861
|
-
case "uiDropdown":
|
|
4862
|
-
r.value = fe;
|
|
4863
|
-
break;
|
|
4864
|
-
case "uiSelect":
|
|
4865
|
-
r.value = Ge;
|
|
4866
|
-
break;
|
|
4867
|
-
}
|
|
4868
|
-
o.value = d.props;
|
|
4869
|
-
};
|
|
4870
|
-
return (d, u) => (s(), n("div", wd, [
|
|
4871
|
-
p(Qe, {
|
|
4872
|
-
items: d.items,
|
|
4873
|
-
loading: d.loading,
|
|
4874
|
-
onFilterSelected: t
|
|
4875
|
-
}, null, 8, ["items", "loading"]),
|
|
4876
|
-
(s(), _(Oe(r.value), rt({ class: "w-full mt-2 lg:mt-0 lg:mx-2 lg:grow" }, o.value, {
|
|
4877
|
-
loading: !1,
|
|
4878
|
-
onInputChanged: u[0] || (u[0] = (f) => a("smartInputChanged", f)),
|
|
4879
|
-
onSelectChanged: u[1] || (u[1] = (f) => a("smartSelectChanged", f)),
|
|
4880
|
-
onOptionSelected: u[2] || (u[2] = (f) => a("smartOptionSelected", f)),
|
|
4881
|
-
onRightAddOnClicked: u[3] || (u[3] = (f) => a("rightAddOnClicked"))
|
|
4882
|
-
}), null, 16)),
|
|
4883
|
-
p(J, {
|
|
4884
|
-
class: "mt-2 lg:mt-0",
|
|
4885
|
-
loading: d.loading
|
|
4886
|
-
}, {
|
|
4887
|
-
default: v(() => [
|
|
4888
|
-
L(g(d.buttonLiteral), 1)
|
|
4889
|
-
]),
|
|
4890
|
-
_: 1
|
|
4891
|
-
}, 8, ["loading"])
|
|
4892
|
-
]));
|
|
4893
|
-
}
|
|
4894
|
-
}), kd = { class: "flex justify-between" }, _d = {
|
|
4859
|
+
}), xd = { class: "flex justify-between" }, kd = {
|
|
4895
4860
|
key: 0,
|
|
4896
4861
|
class: "text-[10px] text-gray-500 uppercase justify-self-end place-self-center"
|
|
4897
|
-
},
|
|
4862
|
+
}, _d = { class: "relative" }, $d = { class: "block flex flex-wrap gap-2" }, Cd = {
|
|
4898
4863
|
key: 0,
|
|
4899
4864
|
class: "p-0.5"
|
|
4900
|
-
},
|
|
4865
|
+
}, Sd = ["onClick"], Bd = { class: "absolute mt-1 w-full rounded-md bg-white shadow-lg" }, Md = {
|
|
4901
4866
|
key: 1,
|
|
4902
4867
|
class: "animate-pulse px-4 py-2.5 bg-gray-200 rounded-md flex justify-between items-center w-full"
|
|
4903
|
-
},
|
|
4868
|
+
}, st = /* @__PURE__ */ M({
|
|
4904
4869
|
__name: "uiSelectMultiple",
|
|
4905
4870
|
props: {
|
|
4906
4871
|
items: {},
|
|
@@ -4923,13 +4888,13 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
4923
4888
|
function t(d) {
|
|
4924
4889
|
r.value = r.value.filter((u) => u.id !== d.id);
|
|
4925
4890
|
}
|
|
4926
|
-
return (d, u) => d.loading ? (s(), n("div",
|
|
4891
|
+
return (d, u) => d.loading ? (s(), n("div", Md, [
|
|
4927
4892
|
u[4] || (u[4] = e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1)),
|
|
4928
4893
|
p(c(ue), {
|
|
4929
4894
|
"aria-hidden": "true",
|
|
4930
4895
|
class: "-mr-1 ml-2 h-5 w-5 text-gray-300 dark:text-gray-400"
|
|
4931
4896
|
})
|
|
4932
|
-
])) : (s(),
|
|
4897
|
+
])) : (s(), k(c(gt), {
|
|
4933
4898
|
key: 0,
|
|
4934
4899
|
modelValue: c(r),
|
|
4935
4900
|
"onUpdate:modelValue": [
|
|
@@ -4942,17 +4907,17 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
4942
4907
|
as: "div"
|
|
4943
4908
|
}, {
|
|
4944
4909
|
default: v(() => [
|
|
4945
|
-
e("div",
|
|
4946
|
-
p(c(
|
|
4910
|
+
e("div", xd, [
|
|
4911
|
+
p(c(pt), { class: "block text-sm font-medium" }, {
|
|
4947
4912
|
default: v(() => [
|
|
4948
4913
|
L(g(d.label), 1)
|
|
4949
4914
|
]),
|
|
4950
4915
|
_: 1
|
|
4951
4916
|
}),
|
|
4952
|
-
d.requiredText ? (s(), n("span",
|
|
4917
|
+
d.requiredText ? (s(), n("span", kd, g(d.requiredText), 1)) : b("", !0)
|
|
4953
4918
|
]),
|
|
4954
|
-
e("div",
|
|
4955
|
-
p(c(
|
|
4919
|
+
e("div", _d, [
|
|
4920
|
+
p(c(mt), {
|
|
4956
4921
|
class: h([{
|
|
4957
4922
|
"mt-1": d.requiredText || d.label,
|
|
4958
4923
|
"border-gray-300": d.color === "gray",
|
|
@@ -4969,9 +4934,9 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
4969
4934
|
}, "relative w-full rounded-md border py-2 pl-2 pr-10 shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm"])
|
|
4970
4935
|
}, {
|
|
4971
4936
|
default: v(() => [
|
|
4972
|
-
e("span",
|
|
4973
|
-
c(r).length === 0 ? (s(), n("span",
|
|
4974
|
-
(s(!0), n(
|
|
4937
|
+
e("span", $d, [
|
|
4938
|
+
c(r).length === 0 ? (s(), n("span", Cd, "...")) : b("", !0),
|
|
4939
|
+
(s(!0), n(_, null, $(c(r), (f) => (s(), n("span", {
|
|
4975
4940
|
key: f.id,
|
|
4976
4941
|
class: "flex items-center gap-1 rounded text-xs font-medium bg-indigo-100 text-indigo-800 border border-indigo-200 px-2 py-0.5"
|
|
4977
4942
|
}, [
|
|
@@ -4990,7 +4955,7 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
4990
4955
|
"stroke-width": "2",
|
|
4991
4956
|
d: "M6 18L18 6M6 6l12 12"
|
|
4992
4957
|
}, null, -1)
|
|
4993
|
-
]), 8,
|
|
4958
|
+
]), 8, Sd))
|
|
4994
4959
|
]))), 128))
|
|
4995
4960
|
]),
|
|
4996
4961
|
u[2] || (u[2] = e("span", { class: "absolute h-full right-0 mr-2 self-center top-0 flex items-center" }, [
|
|
@@ -5011,10 +4976,10 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
5011
4976
|
]),
|
|
5012
4977
|
_: 1
|
|
5013
4978
|
}, 8, ["class"]),
|
|
5014
|
-
e("div",
|
|
5015
|
-
p(c(
|
|
4979
|
+
e("div", Bd, [
|
|
4980
|
+
p(c(ft), { class: "shadow-2xs focus:outline-hidden max-h-60 overflow-auto rounded-md py-1 text-base leading-6 sm:text-sm sm:leading-5" }, {
|
|
5016
4981
|
default: v(() => [
|
|
5017
|
-
(s(!0), n(
|
|
4982
|
+
(s(!0), n(_, null, $(d.items, (f) => (s(), k(c(yt), {
|
|
5018
4983
|
key: f.id,
|
|
5019
4984
|
value: f,
|
|
5020
4985
|
as: "template"
|
|
@@ -5065,52 +5030,102 @@ const or = /* @__PURE__ */ te(er, [["render", sr]]), lr = /* @__PURE__ */ M({
|
|
|
5065
5030
|
_: 1
|
|
5066
5031
|
}, 8, ["modelValue", "disabled"]));
|
|
5067
5032
|
}
|
|
5033
|
+
}), Dd = { class: "flex flex-col lg:flex-row items-center" }, jd = /* @__PURE__ */ M({
|
|
5034
|
+
__name: "uiSmartFilter",
|
|
5035
|
+
props: {
|
|
5036
|
+
items: {},
|
|
5037
|
+
buttonLiteral: {},
|
|
5038
|
+
loading: { type: Boolean, default: !0 }
|
|
5039
|
+
},
|
|
5040
|
+
emits: ["smartFilterSelected", "smartInputChanged", "smartSelectChanged", "smartOptionSelected", "rightAddOnClicked"],
|
|
5041
|
+
setup(m, { emit: i }) {
|
|
5042
|
+
const l = m, a = i, r = nt(E), o = N(l.items[0].props), t = (d) => {
|
|
5043
|
+
switch (d.type) {
|
|
5044
|
+
case "uiInput":
|
|
5045
|
+
r.value = E;
|
|
5046
|
+
break;
|
|
5047
|
+
case "uiDropdown":
|
|
5048
|
+
r.value = fe;
|
|
5049
|
+
break;
|
|
5050
|
+
case "uiSelect":
|
|
5051
|
+
r.value = Qe;
|
|
5052
|
+
break;
|
|
5053
|
+
case "uiSelectMultiple":
|
|
5054
|
+
r.value = st;
|
|
5055
|
+
break;
|
|
5056
|
+
}
|
|
5057
|
+
o.value = d.props;
|
|
5058
|
+
};
|
|
5059
|
+
return (d, u) => (s(), n("div", Dd, [
|
|
5060
|
+
p(Ke, {
|
|
5061
|
+
items: d.items,
|
|
5062
|
+
loading: d.loading,
|
|
5063
|
+
onFilterSelected: t
|
|
5064
|
+
}, null, 8, ["items", "loading"]),
|
|
5065
|
+
(s(), k(Oe(r.value), at({ class: "w-full mt-2 lg:mt-0 lg:mx-2 lg:grow" }, o.value, {
|
|
5066
|
+
loading: !1,
|
|
5067
|
+
onInputChanged: u[0] || (u[0] = (f) => a("smartInputChanged", f)),
|
|
5068
|
+
onSelectChanged: u[1] || (u[1] = (f) => a("smartSelectChanged", f)),
|
|
5069
|
+
onOptionSelected: u[2] || (u[2] = (f) => a("smartOptionSelected", f)),
|
|
5070
|
+
onRightAddOnClicked: u[3] || (u[3] = (f) => a("rightAddOnClicked"))
|
|
5071
|
+
}), null, 16)),
|
|
5072
|
+
p(J, {
|
|
5073
|
+
class: "mt-2 lg:mt-0",
|
|
5074
|
+
loading: d.loading
|
|
5075
|
+
}, {
|
|
5076
|
+
default: v(() => [
|
|
5077
|
+
L(g(d.buttonLiteral), 1)
|
|
5078
|
+
]),
|
|
5079
|
+
_: 1
|
|
5080
|
+
}, 8, ["loading"])
|
|
5081
|
+
]));
|
|
5082
|
+
}
|
|
5068
5083
|
}), Ne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5069
5084
|
__proto__: null,
|
|
5070
|
-
uiAlert:
|
|
5071
|
-
uiBreadcrumbs:
|
|
5085
|
+
uiAlert: Is,
|
|
5086
|
+
uiBreadcrumbs: Hs,
|
|
5072
5087
|
uiButton: J,
|
|
5073
|
-
uiCard:
|
|
5074
|
-
uiChart:
|
|
5088
|
+
uiCard: Ks,
|
|
5089
|
+
uiChart: er,
|
|
5075
5090
|
uiCheckbox: Ue,
|
|
5076
|
-
uiCircleChart:
|
|
5077
|
-
uiDateRange:
|
|
5078
|
-
uiDeviceStatus:
|
|
5079
|
-
uiDragAndDrop:
|
|
5091
|
+
uiCircleChart: Ni,
|
|
5092
|
+
uiDateRange: Yi,
|
|
5093
|
+
uiDeviceStatus: sd,
|
|
5094
|
+
uiDragAndDrop: $i,
|
|
5080
5095
|
uiDropdown: fe,
|
|
5081
|
-
uiDynamicStats:
|
|
5082
|
-
uiFilter:
|
|
5083
|
-
uiFooter:
|
|
5084
|
-
uiFunnelChartV2:
|
|
5085
|
-
uiGallery:
|
|
5096
|
+
uiDynamicStats: wd,
|
|
5097
|
+
uiFilter: Ke,
|
|
5098
|
+
uiFooter: lr,
|
|
5099
|
+
uiFunnelChartV2: Ua,
|
|
5100
|
+
uiGallery: yi,
|
|
5086
5101
|
uiIcon: j,
|
|
5087
5102
|
uiInput: E,
|
|
5088
|
-
uiInputFile:
|
|
5089
|
-
uiLoadingScreen:
|
|
5090
|
-
uiModal:
|
|
5091
|
-
uiNoResults:
|
|
5092
|
-
uiNotification:
|
|
5093
|
-
uiPagination:
|
|
5094
|
-
uiPriceCalendar:
|
|
5095
|
-
uiRangeSlider:
|
|
5096
|
-
uiRightSidebar:
|
|
5097
|
-
uiSectionTitle:
|
|
5098
|
-
uiSelect:
|
|
5099
|
-
uiSelectMultiple:
|
|
5100
|
-
uiSidebar:
|
|
5103
|
+
uiInputFile: gs,
|
|
5104
|
+
uiLoadingScreen: rr,
|
|
5105
|
+
uiModal: Xe,
|
|
5106
|
+
uiNoResults: Wa,
|
|
5107
|
+
uiNotification: ho,
|
|
5108
|
+
uiPagination: br,
|
|
5109
|
+
uiPriceCalendar: Fl,
|
|
5110
|
+
uiRangeSlider: Ri,
|
|
5111
|
+
uiRightSidebar: ni,
|
|
5112
|
+
uiSectionTitle: Hi,
|
|
5113
|
+
uiSelect: Qe,
|
|
5114
|
+
uiSelectMultiple: st,
|
|
5115
|
+
uiSidebar: zr,
|
|
5101
5116
|
uiSidebarV2: he,
|
|
5102
|
-
uiSmartFilter:
|
|
5103
|
-
uiStats:
|
|
5104
|
-
uiStripedCard:
|
|
5105
|
-
uiTable:
|
|
5106
|
-
uiTabs:
|
|
5117
|
+
uiSmartFilter: jd,
|
|
5118
|
+
uiStats: tt,
|
|
5119
|
+
uiStripedCard: yn,
|
|
5120
|
+
uiTable: Pn,
|
|
5121
|
+
uiTabs: En,
|
|
5107
5122
|
uiTag: U,
|
|
5108
|
-
uiTaskList:
|
|
5109
|
-
uiTextArea:
|
|
5110
|
-
uiTimeline:
|
|
5111
|
-
uiToggle:
|
|
5112
|
-
uiTopbar:
|
|
5113
|
-
uiWrapper:
|
|
5123
|
+
uiTaskList: Mo,
|
|
5124
|
+
uiTextArea: $s,
|
|
5125
|
+
uiTimeline: ma,
|
|
5126
|
+
uiToggle: Ms,
|
|
5127
|
+
uiTopbar: Oa,
|
|
5128
|
+
uiWrapper: bd
|
|
5114
5129
|
}, Symbol.toStringTag, { value: "Module" })), Td = [
|
|
5115
5130
|
"primary",
|
|
5116
5131
|
"secondary",
|
|
@@ -5141,48 +5156,48 @@ export {
|
|
|
5141
5156
|
Ed as Types,
|
|
5142
5157
|
Rd as UiInputTypes,
|
|
5143
5158
|
Zd as default,
|
|
5144
|
-
|
|
5145
|
-
|
|
5159
|
+
Is as uiAlert,
|
|
5160
|
+
Hs as uiBreadcrumbs,
|
|
5146
5161
|
J as uiButton,
|
|
5147
|
-
|
|
5148
|
-
|
|
5162
|
+
Ks as uiCard,
|
|
5163
|
+
er as uiChart,
|
|
5149
5164
|
Ue as uiCheckbox,
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5165
|
+
Ni as uiCircleChart,
|
|
5166
|
+
Yi as uiDateRange,
|
|
5167
|
+
sd as uiDeviceStatus,
|
|
5168
|
+
$i as uiDragAndDrop,
|
|
5154
5169
|
fe as uiDropdown,
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5170
|
+
wd as uiDynamicStats,
|
|
5171
|
+
Ke as uiFilter,
|
|
5172
|
+
lr as uiFooter,
|
|
5173
|
+
Ua as uiFunnelChartV2,
|
|
5174
|
+
yi as uiGallery,
|
|
5160
5175
|
j as uiIcon,
|
|
5161
5176
|
E as uiInput,
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5177
|
+
gs as uiInputFile,
|
|
5178
|
+
rr as uiLoadingScreen,
|
|
5179
|
+
Xe as uiModal,
|
|
5180
|
+
Wa as uiNoResults,
|
|
5181
|
+
ho as uiNotification,
|
|
5182
|
+
br as uiPagination,
|
|
5183
|
+
Fl as uiPriceCalendar,
|
|
5184
|
+
Ri as uiRangeSlider,
|
|
5185
|
+
ni as uiRightSidebar,
|
|
5186
|
+
Hi as uiSectionTitle,
|
|
5187
|
+
Qe as uiSelect,
|
|
5188
|
+
st as uiSelectMultiple,
|
|
5189
|
+
zr as uiSidebar,
|
|
5175
5190
|
he as uiSidebarV2,
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
5179
|
-
|
|
5180
|
-
|
|
5191
|
+
jd as uiSmartFilter,
|
|
5192
|
+
tt as uiStats,
|
|
5193
|
+
yn as uiStripedCard,
|
|
5194
|
+
Pn as uiTable,
|
|
5195
|
+
En as uiTabs,
|
|
5181
5196
|
U as uiTag,
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
|
|
5197
|
+
Mo as uiTaskList,
|
|
5198
|
+
$s as uiTextArea,
|
|
5199
|
+
ma as uiTimeline,
|
|
5200
|
+
Ms as uiToggle,
|
|
5201
|
+
Oa as uiTopbar,
|
|
5202
|
+
bd as uiWrapper
|
|
5188
5203
|
};
|