@hotelinking/ui 9.41.35 → 10.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/components/Atoms/uiInput/uiInput.vue.d.ts +1 -1
- package/dist/types/components/Organisms/uiCharts/uiChart.vue.d.ts +10 -2
- package/dist/types/components/Organisms/uiCircleCharts/uiCircleChart.vue.d.ts +10 -2
- package/dist/types/components/Organisms/uiFunnelChartV2/uiFunnelChartV2.vue.d.ts +10 -2
- package/dist/types/components/Organisms/uiPriceCalendar/uiPriceCalendar.vue.d.ts +10 -2
- package/dist/types/types/index.d.ts +13 -4
- package/dist/ui.cjs +1 -1
- package/dist/ui.es.js +1174 -1134
- package/package.json +1 -1
package/dist/ui.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Menu as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { defineComponent as M, openBlock as s, createBlock as _, resolveDynamicComponent as He, normalizeClass as h, createElementBlock as n, createCommentVNode as b, renderSlot as I, createElementVNode as e, ref as Y, watch as W, computed as O, unref as c, withCtx as v, toDisplayString as u, createVNode as g, createTextVNode as D, Transition as re, Fragment as k, renderList as $, withDirectives as C, vModelDynamic as Ue, vShow as S, withModifiers as ke, vModelText as ie, createStaticVNode as Q, resolveComponent as _e, vModelCheckbox as Be, reactive as ue, isRef as Me, TransitionGroup as Ee, onMounted as Ze } from "vue";
|
|
2
|
+
import { Menu as ce, MenuButton as ge, MenuItems as pe, MenuItem as me, Combobox as Se, ComboboxLabel as Je, ComboboxInput as je, ComboboxButton as De, ComboboxOptions as Te, ComboboxOption as ze, SwitchGroup as Ge, Switch as We, SwitchLabel as Qe, TransitionRoot as fe, Dialog as ye, TransitionChild as J, DialogPanel as he, DialogTitle as Le, Disclosure as ve, DisclosureButton as U, DisclosurePanel as be } from "@headlessui/vue";
|
|
3
|
+
import L from "dayjs";
|
|
4
|
+
import we from "vue3-apexcharts";
|
|
5
5
|
import Ke from "vue3-draggable";
|
|
6
6
|
import Xe from "@vueform/slider";
|
|
7
|
-
const j = /* @__PURE__ */
|
|
7
|
+
const j = /* @__PURE__ */ M({
|
|
8
8
|
__name: "uiIcon",
|
|
9
9
|
props: {
|
|
10
10
|
icon: {},
|
|
@@ -13,7 +13,7 @@ const j = /* @__PURE__ */ B({
|
|
|
13
13
|
loading: { type: Boolean, default: !0 }
|
|
14
14
|
},
|
|
15
15
|
setup(p) {
|
|
16
|
-
return (i,
|
|
16
|
+
return (i, o) => i.loading ? (s(), n("div", {
|
|
17
17
|
key: 1,
|
|
18
18
|
class: h([{
|
|
19
19
|
"h-4 w-4": i.size === "medium",
|
|
@@ -22,7 +22,7 @@ const j = /* @__PURE__ */ B({
|
|
|
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(), _(He(i.icon), {
|
|
26
26
|
key: 0,
|
|
27
27
|
class: h({
|
|
28
28
|
"h-4 w-4": i.size === "medium",
|
|
@@ -44,7 +44,7 @@ const j = /* @__PURE__ */ B({
|
|
|
44
44
|
}), et = ["disabled"], tt = {
|
|
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
|
-
}, G = /* @__PURE__ */
|
|
47
|
+
}, G = /* @__PURE__ */ M({
|
|
48
48
|
__name: "uiButton",
|
|
49
49
|
props: {
|
|
50
50
|
block: { type: Boolean },
|
|
@@ -55,7 +55,7 @@ const j = /* @__PURE__ */ B({
|
|
|
55
55
|
size: { default: "medium" }
|
|
56
56
|
},
|
|
57
57
|
setup(p) {
|
|
58
|
-
return (i,
|
|
58
|
+
return (i, o) => i.loading ? (s(), n("button", tt, [
|
|
59
59
|
i.icon ? (s(), _(j, {
|
|
60
60
|
key: 0,
|
|
61
61
|
icon: i.icon,
|
|
@@ -63,7 +63,7 @@ const j = /* @__PURE__ */ B({
|
|
|
63
63
|
class: "-ml-0.5 mr-2",
|
|
64
64
|
loading: i.loading
|
|
65
65
|
}, null, 8, ["icon", "loading"])) : b("", !0),
|
|
66
|
-
|
|
66
|
+
o[0] || (o[0] = e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-16" }, null, -1))
|
|
67
67
|
])) : (s(), n("button", {
|
|
68
68
|
key: 0,
|
|
69
69
|
disabled: i.disabled,
|
|
@@ -87,16 +87,16 @@ const j = /* @__PURE__ */ B({
|
|
|
87
87
|
class: "-ml-0.5 mr-2",
|
|
88
88
|
loading: i.loading
|
|
89
89
|
}, null, 8, ["icon", "loading"])) : b("", !0),
|
|
90
|
-
|
|
90
|
+
I(i.$slots, "default")
|
|
91
91
|
], 10, et));
|
|
92
92
|
}
|
|
93
93
|
}), st = {
|
|
94
94
|
key: 0,
|
|
95
95
|
class: "relative flex items-start"
|
|
96
|
-
},
|
|
96
|
+
}, ot = { class: "flex items-center h-5" }, lt = ["checked", "value", "disabled"], rt = { class: "ml-3 text-sm" }, nt = { class: "text-gray-500" }, at = {
|
|
97
97
|
key: 1,
|
|
98
98
|
class: "flex items-center animate-pulse"
|
|
99
|
-
}, Ne = /* @__PURE__ */
|
|
99
|
+
}, Ne = /* @__PURE__ */ M({
|
|
100
100
|
__name: "uiCheckbox",
|
|
101
101
|
props: {
|
|
102
102
|
check: { type: Boolean, default: !1 },
|
|
@@ -107,8 +107,8 @@ const j = /* @__PURE__ */ B({
|
|
|
107
107
|
},
|
|
108
108
|
emits: ["checkboxChanged"],
|
|
109
109
|
setup(p, { emit: i }) {
|
|
110
|
-
const
|
|
111
|
-
a.disabled || (r.value = !r.value,
|
|
110
|
+
const o = i, a = p, r = Y(a.check), l = () => {
|
|
111
|
+
a.disabled || (r.value = !r.value, o("checkboxChanged", { checked: r.value, value: a.value }));
|
|
112
112
|
};
|
|
113
113
|
return W(() => a.check, (t) => {
|
|
114
114
|
t && (r.value = t);
|
|
@@ -116,19 +116,19 @@ const j = /* @__PURE__ */ B({
|
|
|
116
116
|
e("div", { class: "w-5 h-5 rounded bg-gray-200" }, null, -1),
|
|
117
117
|
e("div", { class: "ml-3 h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28" }, null, -1)
|
|
118
118
|
]))) : (s(), n("div", st, [
|
|
119
|
-
e("div",
|
|
119
|
+
e("div", ot, [
|
|
120
120
|
e("input", {
|
|
121
121
|
checked: t.check,
|
|
122
122
|
value: t.value,
|
|
123
123
|
disabled: t.disabled,
|
|
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
|
-
onChange: m[0] || (m[0] = (d) =>
|
|
127
|
-
}, null, 40,
|
|
126
|
+
onChange: m[0] || (m[0] = (d) => l())
|
|
127
|
+
}, null, 40, lt)
|
|
128
128
|
]),
|
|
129
129
|
e("div", rt, [
|
|
130
130
|
e("span", nt, [
|
|
131
|
-
|
|
131
|
+
I(t.$slots, "default")
|
|
132
132
|
])
|
|
133
133
|
])
|
|
134
134
|
]));
|
|
@@ -185,6 +185,23 @@ function ut(p, i) {
|
|
|
185
185
|
})
|
|
186
186
|
]);
|
|
187
187
|
}
|
|
188
|
+
function ct(p, i) {
|
|
189
|
+
return s(), n("svg", {
|
|
190
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
191
|
+
fill: "none",
|
|
192
|
+
viewBox: "0 0 24 24",
|
|
193
|
+
"stroke-width": "1.5",
|
|
194
|
+
stroke: "currentColor",
|
|
195
|
+
"aria-hidden": "true",
|
|
196
|
+
"data-slot": "icon"
|
|
197
|
+
}, [
|
|
198
|
+
e("path", {
|
|
199
|
+
"stroke-linecap": "round",
|
|
200
|
+
"stroke-linejoin": "round",
|
|
201
|
+
d: "M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15"
|
|
202
|
+
})
|
|
203
|
+
]);
|
|
204
|
+
}
|
|
188
205
|
function Ae(p, i) {
|
|
189
206
|
return s(), n("svg", {
|
|
190
207
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -202,7 +219,7 @@ function Ae(p, i) {
|
|
|
202
219
|
})
|
|
203
220
|
]);
|
|
204
221
|
}
|
|
205
|
-
function
|
|
222
|
+
function gt(p, i) {
|
|
206
223
|
return s(), n("svg", {
|
|
207
224
|
xmlns: "http://www.w3.org/2000/svg",
|
|
208
225
|
fill: "none",
|
|
@@ -219,7 +236,7 @@ function ct(p, i) {
|
|
|
219
236
|
})
|
|
220
237
|
]);
|
|
221
238
|
}
|
|
222
|
-
function
|
|
239
|
+
function pt(p, i) {
|
|
223
240
|
return s(), n("svg", {
|
|
224
241
|
xmlns: "http://www.w3.org/2000/svg",
|
|
225
242
|
fill: "none",
|
|
@@ -270,7 +287,7 @@ function ne(p, i) {
|
|
|
270
287
|
})
|
|
271
288
|
]);
|
|
272
289
|
}
|
|
273
|
-
function
|
|
290
|
+
function le(p, i) {
|
|
274
291
|
return s(), n("svg", {
|
|
275
292
|
xmlns: "http://www.w3.org/2000/svg",
|
|
276
293
|
fill: "none",
|
|
@@ -321,7 +338,7 @@ function X(p, i) {
|
|
|
321
338
|
})
|
|
322
339
|
]);
|
|
323
340
|
}
|
|
324
|
-
function
|
|
341
|
+
function de(p, i) {
|
|
325
342
|
return s(), n("svg", {
|
|
326
343
|
xmlns: "http://www.w3.org/2000/svg",
|
|
327
344
|
fill: "none",
|
|
@@ -338,7 +355,7 @@ function ie(p, i) {
|
|
|
338
355
|
})
|
|
339
356
|
]);
|
|
340
357
|
}
|
|
341
|
-
function
|
|
358
|
+
function mt(p, i) {
|
|
342
359
|
return s(), n("svg", {
|
|
343
360
|
xmlns: "http://www.w3.org/2000/svg",
|
|
344
361
|
fill: "none",
|
|
@@ -355,7 +372,7 @@ function pt(p, i) {
|
|
|
355
372
|
})
|
|
356
373
|
]);
|
|
357
374
|
}
|
|
358
|
-
function
|
|
375
|
+
function ft(p, i) {
|
|
359
376
|
return s(), n("svg", {
|
|
360
377
|
xmlns: "http://www.w3.org/2000/svg",
|
|
361
378
|
fill: "none",
|
|
@@ -389,7 +406,7 @@ function q(p, i) {
|
|
|
389
406
|
})
|
|
390
407
|
]);
|
|
391
408
|
}
|
|
392
|
-
function
|
|
409
|
+
function yt(p, i) {
|
|
393
410
|
return s(), n("svg", {
|
|
394
411
|
xmlns: "http://www.w3.org/2000/svg",
|
|
395
412
|
fill: "none",
|
|
@@ -406,7 +423,7 @@ function ft(p, i) {
|
|
|
406
423
|
})
|
|
407
424
|
]);
|
|
408
425
|
}
|
|
409
|
-
function
|
|
426
|
+
function ht(p, i) {
|
|
410
427
|
return s(), n("svg", {
|
|
411
428
|
xmlns: "http://www.w3.org/2000/svg",
|
|
412
429
|
fill: "none",
|
|
@@ -423,7 +440,7 @@ function yt(p, i) {
|
|
|
423
440
|
})
|
|
424
441
|
]);
|
|
425
442
|
}
|
|
426
|
-
function
|
|
443
|
+
function vt(p, i) {
|
|
427
444
|
return s(), n("svg", {
|
|
428
445
|
xmlns: "http://www.w3.org/2000/svg",
|
|
429
446
|
fill: "none",
|
|
@@ -440,7 +457,7 @@ function ht(p, i) {
|
|
|
440
457
|
})
|
|
441
458
|
]);
|
|
442
459
|
}
|
|
443
|
-
function
|
|
460
|
+
function bt(p, i) {
|
|
444
461
|
return s(), n("svg", {
|
|
445
462
|
xmlns: "http://www.w3.org/2000/svg",
|
|
446
463
|
fill: "none",
|
|
@@ -474,7 +491,7 @@ function Oe(p, i) {
|
|
|
474
491
|
})
|
|
475
492
|
]);
|
|
476
493
|
}
|
|
477
|
-
function
|
|
494
|
+
function wt(p, i) {
|
|
478
495
|
return s(), n("svg", {
|
|
479
496
|
xmlns: "http://www.w3.org/2000/svg",
|
|
480
497
|
fill: "none",
|
|
@@ -491,7 +508,7 @@ function bt(p, i) {
|
|
|
491
508
|
})
|
|
492
509
|
]);
|
|
493
510
|
}
|
|
494
|
-
function
|
|
511
|
+
function xt(p, i) {
|
|
495
512
|
return s(), n("svg", {
|
|
496
513
|
xmlns: "http://www.w3.org/2000/svg",
|
|
497
514
|
fill: "none",
|
|
@@ -508,7 +525,7 @@ function wt(p, i) {
|
|
|
508
525
|
})
|
|
509
526
|
]);
|
|
510
527
|
}
|
|
511
|
-
function
|
|
528
|
+
function kt(p, i) {
|
|
512
529
|
return s(), n("svg", {
|
|
513
530
|
xmlns: "http://www.w3.org/2000/svg",
|
|
514
531
|
fill: "none",
|
|
@@ -559,16 +576,16 @@ function E(p, i) {
|
|
|
559
576
|
})
|
|
560
577
|
]);
|
|
561
578
|
}
|
|
562
|
-
const
|
|
579
|
+
const _t = { class: "flex justify-between" }, $t = {
|
|
563
580
|
key: 0,
|
|
564
581
|
class: "block text-sm font-medium text-gray-700 mb-1"
|
|
565
|
-
},
|
|
582
|
+
}, Ct = {
|
|
566
583
|
key: 1,
|
|
567
584
|
class: "text-[10px] text-gray-500 uppercase justify-self-end mt-1"
|
|
568
|
-
},
|
|
585
|
+
}, Bt = { class: "py-1" }, Mt = ["onClick"], St = {
|
|
569
586
|
key: 1,
|
|
570
587
|
class: "animate-pulse px-4 py-2 bg-gray-200 rounded-md inline-flex items-center relative text-left"
|
|
571
|
-
},
|
|
588
|
+
}, xe = /* @__PURE__ */ M({
|
|
572
589
|
__name: "uiDropdown",
|
|
573
590
|
props: {
|
|
574
591
|
items: {},
|
|
@@ -580,33 +597,33 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
580
597
|
},
|
|
581
598
|
emits: ["optionSelected"],
|
|
582
599
|
setup(p, { emit: i }) {
|
|
583
|
-
const
|
|
600
|
+
const o = i, a = p, r = O(() => {
|
|
584
601
|
let t = a.items.find((m) => m.active === !0);
|
|
585
602
|
return t ? t.name : a.label;
|
|
586
|
-
}),
|
|
587
|
-
a.disabled ||
|
|
603
|
+
}), l = (t) => {
|
|
604
|
+
a.disabled || o("optionSelected", t);
|
|
588
605
|
};
|
|
589
|
-
return (t, m) => t.loading ? (s(), n("div",
|
|
606
|
+
return (t, m) => t.loading ? (s(), n("div", St, [
|
|
590
607
|
m[0] || (m[0] = e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28" }, null, -1)),
|
|
591
|
-
g(c(
|
|
608
|
+
g(c(le), {
|
|
592
609
|
"aria-hidden": "true",
|
|
593
610
|
class: "-mr-1 ml-2 h-5 w-5 text-gray-200 dark:text-gray-300"
|
|
594
611
|
})
|
|
595
|
-
])) : (s(), _(c(
|
|
612
|
+
])) : (s(), _(c(ce), {
|
|
596
613
|
key: 0,
|
|
597
614
|
as: "div",
|
|
598
615
|
class: h(["relative inline-block text-left", { "opacity-25": t.disabled }])
|
|
599
616
|
}, {
|
|
600
617
|
default: v(() => [
|
|
601
618
|
e("div", null, [
|
|
602
|
-
e("div",
|
|
603
|
-
t.label ? (s(), n("label",
|
|
604
|
-
t.requiredText ? (s(), n("span",
|
|
619
|
+
e("div", _t, [
|
|
620
|
+
t.label ? (s(), n("label", $t, u(t.label), 1)) : b("", !0),
|
|
621
|
+
t.requiredText ? (s(), n("span", Ct, u(t.requiredText), 1)) : b("", !0)
|
|
605
622
|
]),
|
|
606
|
-
g(c(
|
|
623
|
+
g(c(ge), { 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" }, {
|
|
607
624
|
default: v(() => [
|
|
608
625
|
D(u(r.value) + " ", 1),
|
|
609
|
-
g(c(
|
|
626
|
+
g(c(le), {
|
|
610
627
|
"aria-hidden": "true",
|
|
611
628
|
class: "-mr-1 ml-2 h-5 w-5"
|
|
612
629
|
})
|
|
@@ -623,21 +640,21 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
623
640
|
"leave-to-class": "transform opacity-0 scale-95"
|
|
624
641
|
}, {
|
|
625
642
|
default: v(() => [
|
|
626
|
-
t.disabled ? b("", !0) : (s(), _(c(
|
|
643
|
+
t.disabled ? b("", !0) : (s(), _(c(pe), {
|
|
627
644
|
key: 0,
|
|
628
645
|
class: h([{ "right-0": t.position === "right", "left-0": t.position === "left" }, "origin-top-right absolute mt-2 w-56 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none z-10"])
|
|
629
646
|
}, {
|
|
630
647
|
default: v(() => [
|
|
631
|
-
e("div",
|
|
632
|
-
(s(!0), n(k, null, $(t.items, (d, f) => (s(), _(c(
|
|
648
|
+
e("div", Bt, [
|
|
649
|
+
(s(!0), n(k, null, $(t.items, (d, f) => (s(), _(c(me), { key: f }, {
|
|
633
650
|
default: v(() => [
|
|
634
651
|
e("a", {
|
|
635
|
-
onClick: (y) =>
|
|
652
|
+
onClick: (y) => l(d),
|
|
636
653
|
class: h([
|
|
637
654
|
d.active ? "bg-gray-100 text-gray-900" : "text-gray-700",
|
|
638
655
|
"block px-4 py-2 text-sm cursor-pointer"
|
|
639
656
|
])
|
|
640
|
-
}, u(d.name), 11,
|
|
657
|
+
}, u(d.name), 11, Mt)
|
|
641
658
|
]),
|
|
642
659
|
_: 2
|
|
643
660
|
}, 1024))), 128))
|
|
@@ -652,19 +669,19 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
652
669
|
_: 1
|
|
653
670
|
}, 8, ["class"]));
|
|
654
671
|
}
|
|
655
|
-
}),
|
|
672
|
+
}), jt = { key: 0 }, Dt = { class: "flex justify-between" }, Tt = {
|
|
656
673
|
key: 0,
|
|
657
674
|
class: "block text-sm font-medium text-gray-700"
|
|
658
|
-
},
|
|
675
|
+
}, zt = {
|
|
659
676
|
key: 1,
|
|
660
677
|
class: "text-[10px] text-gray-500 uppercase justify-self-end"
|
|
661
|
-
},
|
|
678
|
+
}, Lt = ["disabled", "name", "placeholder", "type"], Nt = { class: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none" }, At = {
|
|
662
679
|
key: 1,
|
|
663
680
|
class: "animate-pulse"
|
|
664
|
-
},
|
|
681
|
+
}, Yt = {
|
|
665
682
|
key: 0,
|
|
666
683
|
class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/3 md:w-1/4 mb-1.5"
|
|
667
|
-
}, Z = /* @__PURE__ */
|
|
684
|
+
}, Z = /* @__PURE__ */ M({
|
|
668
685
|
__name: "uiInput",
|
|
669
686
|
props: {
|
|
670
687
|
label: {},
|
|
@@ -683,22 +700,22 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
683
700
|
},
|
|
684
701
|
emits: ["inputChanged", "rightAddOnClicked", "addOnClicked"],
|
|
685
702
|
setup(p, { emit: i }) {
|
|
686
|
-
const
|
|
703
|
+
const o = i, a = p, r = Y(a.value);
|
|
687
704
|
W(() => a.value, (t) => {
|
|
688
|
-
r.value = t, r.value &&
|
|
705
|
+
r.value = t, r.value && o("inputChanged", { name: a.name, value: r.value });
|
|
689
706
|
});
|
|
690
|
-
const
|
|
691
|
-
t.target.name &&
|
|
707
|
+
const l = (t) => {
|
|
708
|
+
t.target.name && o("inputChanged", { value: t.target.value, name: t.target.name });
|
|
692
709
|
};
|
|
693
|
-
return (t, m) => t.loading ? (s(), n("div",
|
|
694
|
-
t.label !== void 0 ? (s(), n("div",
|
|
710
|
+
return (t, m) => t.loading ? (s(), n("div", At, [
|
|
711
|
+
t.label !== void 0 ? (s(), n("div", Yt)) : b("", !0),
|
|
695
712
|
m[3] || (m[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" }, [
|
|
696
713
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28" })
|
|
697
714
|
], -1))
|
|
698
|
-
])) : (s(), n("div",
|
|
699
|
-
e("div",
|
|
700
|
-
t.label ? (s(), n("label",
|
|
701
|
-
t.requiredText ? (s(), n("span",
|
|
715
|
+
])) : (s(), n("div", jt, [
|
|
716
|
+
e("div", Dt, [
|
|
717
|
+
t.label ? (s(), n("label", Tt, u(t.label), 1)) : b("", !0),
|
|
718
|
+
t.requiredText ? (s(), n("span", zt, u(t.requiredText), 1)) : b("", !0)
|
|
702
719
|
]),
|
|
703
720
|
e("div", {
|
|
704
721
|
class: h([{ "mt-1": t.label }, "relative flex"])
|
|
@@ -730,16 +747,16 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
730
747
|
name: t.name,
|
|
731
748
|
placeholder: t.placeholder,
|
|
732
749
|
type: t.type,
|
|
733
|
-
onInput:
|
|
734
|
-
}, null, 42,
|
|
735
|
-
[
|
|
750
|
+
onInput: l
|
|
751
|
+
}, null, 42, Lt), [
|
|
752
|
+
[Ue, r.value]
|
|
736
753
|
]),
|
|
737
754
|
t.rightAddOn ? (s(), n("span", {
|
|
738
755
|
key: 1,
|
|
739
756
|
onClick: m[2] || (m[2] = (d) => t.$emit("rightAddOnClicked")),
|
|
740
757
|
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"
|
|
741
758
|
}, u(t.rightAddOn), 1)) : b("", !0),
|
|
742
|
-
e("div",
|
|
759
|
+
e("div", Nt, [
|
|
743
760
|
t.icon ? (s(), _(j, {
|
|
744
761
|
key: 0,
|
|
745
762
|
icon: t.icon,
|
|
@@ -781,16 +798,16 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
781
798
|
])
|
|
782
799
|
]));
|
|
783
800
|
}
|
|
784
|
-
}),
|
|
801
|
+
}), Pt = { key: 0 }, Ot = { class: "flex justify-between" }, Vt = {
|
|
785
802
|
key: 0,
|
|
786
803
|
class: "block text-sm font-medium text-gray-700"
|
|
787
|
-
},
|
|
804
|
+
}, Ft = {
|
|
788
805
|
key: 1,
|
|
789
806
|
class: "text-[10px] text-gray-500 uppercase"
|
|
790
|
-
},
|
|
807
|
+
}, It = { class: "space-y-1 flex flex-col items-center justify-center" }, Rt = { class: "flex text-sm text-gray-600 flex-col sm:flex-row text-center" }, qt = ["for"], Ht = ["id", "name", "accept"], Ut = { class: "pl-1" }, Et = { class: "text-xs text-gray-500 pb-4" }, Zt = { class: "mt-2 text-xs flex flex-row items-center text-red-300" }, Jt = {
|
|
791
808
|
key: 1,
|
|
792
809
|
class: "animate-pulse"
|
|
793
|
-
},
|
|
810
|
+
}, Gt = /* @__PURE__ */ M({
|
|
794
811
|
__name: "uiInputFile",
|
|
795
812
|
props: {
|
|
796
813
|
name: {},
|
|
@@ -807,28 +824,28 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
807
824
|
},
|
|
808
825
|
emits: ["filesUploaded"],
|
|
809
826
|
setup(p, { emit: i }) {
|
|
810
|
-
let
|
|
811
|
-
const a = i, r = p,
|
|
827
|
+
let o = Y("");
|
|
828
|
+
const a = i, r = p, l = (d) => {
|
|
812
829
|
m(d.dataTransfer.files), a("filesUploaded", { id: r.id, files: d.dataTransfer.files });
|
|
813
830
|
}, t = (d) => {
|
|
814
831
|
m(d.target.files), a("filesUploaded", { id: r.id, files: d.target.files });
|
|
815
832
|
}, m = (d) => {
|
|
816
|
-
|
|
833
|
+
o.value = "";
|
|
817
834
|
let f = 1;
|
|
818
835
|
Object.values(d).forEach((y) => {
|
|
819
|
-
f++,
|
|
836
|
+
f++, o.value += y.name, f >= 1 && f < d.length && (o.value += ", ");
|
|
820
837
|
});
|
|
821
838
|
};
|
|
822
|
-
return (d, f) => d.loading ? (s(), n("div",
|
|
839
|
+
return (d, f) => d.loading ? (s(), n("div", Jt, f[1] || (f[1] = [
|
|
823
840
|
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" }, [
|
|
824
841
|
e("div", { class: "rounded-full h-20 w-20 bg-gray-200 mb-4" }),
|
|
825
842
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full md:w-1/3 mb-3" }),
|
|
826
843
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full md:w-1/4 mb-3" })
|
|
827
844
|
], -1)
|
|
828
|
-
]))) : (s(), n("div",
|
|
829
|
-
e("div",
|
|
830
|
-
d.label ? (s(), n("label",
|
|
831
|
-
d.requiredText ? (s(), n("span",
|
|
845
|
+
]))) : (s(), n("div", Pt, [
|
|
846
|
+
e("div", Ot, [
|
|
847
|
+
d.label ? (s(), n("label", Vt, u(d.label), 1)) : b("", !0),
|
|
848
|
+
d.requiredText ? (s(), n("span", Ft, u(d.requiredText), 1)) : b("", !0)
|
|
832
849
|
]),
|
|
833
850
|
e("div", {
|
|
834
851
|
class: h([
|
|
@@ -839,11 +856,11 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
839
856
|
],
|
|
840
857
|
"dropArea flex justify-center rounded-md border-2 border-dashed px-6 pt-5 pb-6"
|
|
841
858
|
]),
|
|
842
|
-
onDragover: f[0] || (f[0] =
|
|
859
|
+
onDragover: f[0] || (f[0] = ke(() => {
|
|
843
860
|
}, ["prevent"])),
|
|
844
|
-
onDrop:
|
|
861
|
+
onDrop: ke(l, ["prevent"])
|
|
845
862
|
}, [
|
|
846
|
-
e("div",
|
|
863
|
+
e("div", It, [
|
|
847
864
|
g(j, {
|
|
848
865
|
icon: d.icon,
|
|
849
866
|
size: "massive",
|
|
@@ -852,7 +869,7 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
852
869
|
class: "mb-4",
|
|
853
870
|
loading: d.loading
|
|
854
871
|
}, null, 8, ["icon", "loading"]),
|
|
855
|
-
e("div",
|
|
872
|
+
e("div", Rt, [
|
|
856
873
|
e("label", {
|
|
857
874
|
for: d.id,
|
|
858
875
|
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"
|
|
@@ -866,17 +883,17 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
866
883
|
accept: d.accept,
|
|
867
884
|
multiple: "",
|
|
868
885
|
onChange: t
|
|
869
|
-
}, null, 40,
|
|
870
|
-
], 8,
|
|
871
|
-
e("p",
|
|
886
|
+
}, null, 40, Ht)
|
|
887
|
+
], 8, qt),
|
|
888
|
+
e("p", Ut, u(d.dragAndDrop), 1)
|
|
872
889
|
]),
|
|
873
|
-
e("p",
|
|
874
|
-
C(e("p", { class: "font-bold text-xs uppercase block p-2 bg-gray-200 rounded" }, u(c(
|
|
875
|
-
[S, c(
|
|
890
|
+
e("p", Et, u(d.fileTypesAndSizes), 1),
|
|
891
|
+
C(e("p", { class: "font-bold text-xs uppercase block p-2 bg-gray-200 rounded" }, u(c(o)), 513), [
|
|
892
|
+
[S, c(o) !== null]
|
|
876
893
|
])
|
|
877
894
|
])
|
|
878
895
|
], 34),
|
|
879
|
-
C(e("p",
|
|
896
|
+
C(e("p", Zt, [
|
|
880
897
|
g(j, {
|
|
881
898
|
icon: c(ae),
|
|
882
899
|
color: "red",
|
|
@@ -889,13 +906,13 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
889
906
|
])
|
|
890
907
|
]));
|
|
891
908
|
}
|
|
892
|
-
}),
|
|
909
|
+
}), Wt = { class: "flex justify-between" }, Qt = {
|
|
893
910
|
key: 0,
|
|
894
911
|
class: "text-[10px] text-gray-500 uppercase justify-self-end"
|
|
895
|
-
},
|
|
912
|
+
}, Kt = { class: "relative mt-1" }, Xt = {
|
|
896
913
|
key: 1,
|
|
897
914
|
class: "animate-pulse px-4 py-2.5 bg-gray-200 rounded-md flex justify-between items-center w-full"
|
|
898
|
-
},
|
|
915
|
+
}, es = /* @__PURE__ */ M({
|
|
899
916
|
__name: "uiSelect",
|
|
900
917
|
props: {
|
|
901
918
|
items: {},
|
|
@@ -909,10 +926,10 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
909
926
|
},
|
|
910
927
|
emits: ["selectChanged"],
|
|
911
928
|
setup(p, { emit: i }) {
|
|
912
|
-
const
|
|
913
|
-
return (d, f) => d.loading ? (s(), n("div",
|
|
929
|
+
const o = Y(""), a = i, r = p, l = O(() => o.value === "" ? r.items : r.items.filter((d) => d.name.toLowerCase().includes(o.value.toLowerCase()))), t = (d) => (d == null ? void 0 : d.name) ?? "", m = O(() => r.select);
|
|
930
|
+
return (d, f) => d.loading ? (s(), n("div", Xt, [
|
|
914
931
|
f[4] || (f[4] = e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1)),
|
|
915
|
-
g(c(
|
|
932
|
+
g(c(de), {
|
|
916
933
|
"aria-hidden": "true",
|
|
917
934
|
class: "-mr-1 ml-2 h-5 w-5 text-gray-300 dark:text-gray-400"
|
|
918
935
|
})
|
|
@@ -927,19 +944,19 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
927
944
|
as: "div"
|
|
928
945
|
}, {
|
|
929
946
|
default: v(() => [
|
|
930
|
-
e("div",
|
|
947
|
+
e("div", Wt, [
|
|
931
948
|
g(c(Je), { class: "block text-sm font-medium" }, {
|
|
932
949
|
default: v(() => [
|
|
933
950
|
D(u(d.label), 1)
|
|
934
951
|
]),
|
|
935
952
|
_: 1
|
|
936
953
|
}),
|
|
937
|
-
d.requiredText ? (s(), n("span",
|
|
954
|
+
d.requiredText ? (s(), n("span", Qt, u(d.requiredText), 1)) : b("", !0)
|
|
938
955
|
]),
|
|
939
|
-
e("div",
|
|
956
|
+
e("div", Kt, [
|
|
940
957
|
g(c(je), {
|
|
941
|
-
onChange: f[0] || (f[0] = (y) =>
|
|
942
|
-
onBlur: f[1] || (f[1] = (y) =>
|
|
958
|
+
onChange: f[0] || (f[0] = (y) => o.value = y.target.value),
|
|
959
|
+
onBlur: f[1] || (f[1] = (y) => o.value = ""),
|
|
943
960
|
displayValue: t,
|
|
944
961
|
class: h([{
|
|
945
962
|
"border-gray-300": d.color === "gray",
|
|
@@ -957,24 +974,24 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
957
974
|
}, null, 8, ["class"]),
|
|
958
975
|
g(c(De), { class: "absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none" }, {
|
|
959
976
|
default: v(() => [
|
|
960
|
-
g(c(
|
|
977
|
+
g(c(de), {
|
|
961
978
|
"aria-hidden": "true",
|
|
962
979
|
class: "h-5 w-5 text-gray-400"
|
|
963
980
|
})
|
|
964
981
|
]),
|
|
965
982
|
_: 1
|
|
966
983
|
}),
|
|
967
|
-
|
|
984
|
+
l.value.length > 0 ? (s(), _(c(Te), {
|
|
968
985
|
key: 0,
|
|
969
986
|
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"
|
|
970
987
|
}, {
|
|
971
988
|
default: v(() => [
|
|
972
|
-
(s(!0), n(k, null, $(
|
|
989
|
+
(s(!0), n(k, null, $(l.value, (y) => (s(), _(c(ze), {
|
|
973
990
|
key: y.id,
|
|
974
991
|
value: y,
|
|
975
992
|
as: "template"
|
|
976
993
|
}, {
|
|
977
|
-
default: v(({ active: w, selected:
|
|
994
|
+
default: v(({ active: w, selected: B }) => [
|
|
978
995
|
e("li", {
|
|
979
996
|
class: h([
|
|
980
997
|
"relative cursor-default select-none py-2 pl-3 pr-9",
|
|
@@ -982,9 +999,9 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
982
999
|
])
|
|
983
1000
|
}, [
|
|
984
1001
|
e("span", {
|
|
985
|
-
class: h(["block truncate",
|
|
1002
|
+
class: h(["block truncate", B && "font-semibold"])
|
|
986
1003
|
}, u(y.name), 3),
|
|
987
|
-
|
|
1004
|
+
B ? (s(), n("span", {
|
|
988
1005
|
key: 0,
|
|
989
1006
|
class: h([
|
|
990
1007
|
"absolute inset-y-0 right-0 flex items-center pr-4",
|
|
@@ -1019,10 +1036,10 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
1019
1036
|
_: 1
|
|
1020
1037
|
}, 8, ["modelValue", "disabled"]));
|
|
1021
1038
|
}
|
|
1022
|
-
}),
|
|
1039
|
+
}), ts = {
|
|
1023
1040
|
key: 1,
|
|
1024
1041
|
class: "inline-flex items-center px-3 py-2.5 rounded text-xs font-medium leading-none animate-pulse bg-gray-200"
|
|
1025
|
-
}, R = /* @__PURE__ */
|
|
1042
|
+
}, R = /* @__PURE__ */ M({
|
|
1026
1043
|
__name: "uiTag",
|
|
1027
1044
|
props: {
|
|
1028
1045
|
color: { default: "primary" },
|
|
@@ -1034,43 +1051,43 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
1034
1051
|
},
|
|
1035
1052
|
emits: ["tagEvent"],
|
|
1036
1053
|
setup(p, { emit: i }) {
|
|
1037
|
-
const
|
|
1038
|
-
a.event != null &&
|
|
1054
|
+
const o = i, a = p, r = () => {
|
|
1055
|
+
a.event != null && o("tagEvent", a.event);
|
|
1039
1056
|
};
|
|
1040
|
-
return (
|
|
1057
|
+
return (l, t) => l.loading ? (s(), n("div", ts, t[0] || (t[0] = [
|
|
1041
1058
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12" }, null, -1)
|
|
1042
1059
|
]))) : (s(), n("span", {
|
|
1043
1060
|
key: 0,
|
|
1044
1061
|
onClick: r,
|
|
1045
1062
|
class: h([{
|
|
1046
|
-
"bg-indigo-100 text-indigo-800 border border-indigo-200":
|
|
1047
|
-
"hover:bg-indigo-200 cursor-pointer":
|
|
1048
|
-
"bg-red-100 text-red-800 border border-red-200":
|
|
1049
|
-
"hover:bg-red-200 cursor-pointer":
|
|
1050
|
-
"bg-yellow-100 text-yellow-800 border border-yellow-200":
|
|
1051
|
-
"hover:bg-yellow-200 cursor-pointer":
|
|
1052
|
-
"bg-green-100 text-green-800 border border-green-200":
|
|
1053
|
-
"hover:bg-green-200 cursor-pointer":
|
|
1054
|
-
"bg-black text-white border border-black":
|
|
1055
|
-
"text-black border border-gray-200 bg-white":
|
|
1056
|
-
"px-3 py-2":
|
|
1057
|
-
"px-2 pt-1 pb-0.5":
|
|
1058
|
-
"px-4 py-3":
|
|
1063
|
+
"bg-indigo-100 text-indigo-800 border border-indigo-200": l.color === "primary",
|
|
1064
|
+
"hover:bg-indigo-200 cursor-pointer": l.event !== void 0 && l.color === "primary",
|
|
1065
|
+
"bg-red-100 text-red-800 border border-red-200": l.color === "red",
|
|
1066
|
+
"hover:bg-red-200 cursor-pointer": l.event !== void 0 && l.color === "red",
|
|
1067
|
+
"bg-yellow-100 text-yellow-800 border border-yellow-200": l.color === "yellow",
|
|
1068
|
+
"hover:bg-yellow-200 cursor-pointer": l.event !== void 0 && l.color === "yellow",
|
|
1069
|
+
"bg-green-100 text-green-800 border border-green-200": l.color === "green",
|
|
1070
|
+
"hover:bg-green-200 cursor-pointer": l.event !== void 0 && l.color === "green",
|
|
1071
|
+
"bg-black text-white border border-black": l.color === "black",
|
|
1072
|
+
"text-black border border-gray-200 bg-white": l.color === "white",
|
|
1073
|
+
"px-3 py-2": l.size === "medium",
|
|
1074
|
+
"px-2 pt-1 pb-0.5": l.size === "small",
|
|
1075
|
+
"px-4 py-3": l.size === "big"
|
|
1059
1076
|
}, "inline-flex items-center rounded text-xs font-medium leading-none"])
|
|
1060
1077
|
}, [
|
|
1061
|
-
|
|
1078
|
+
I(l.$slots, "default")
|
|
1062
1079
|
], 2));
|
|
1063
1080
|
}
|
|
1064
|
-
}),
|
|
1081
|
+
}), ss = { key: 0 }, os = { class: "flex justify-between" }, ls = {
|
|
1065
1082
|
key: 0,
|
|
1066
1083
|
class: "block text-sm font-medium text-gray-700"
|
|
1067
|
-
},
|
|
1084
|
+
}, rs = {
|
|
1068
1085
|
key: 1,
|
|
1069
1086
|
class: "text-[10px] text-gray-500 uppercase justify-self-end"
|
|
1070
|
-
},
|
|
1087
|
+
}, ns = ["disabled", "placeholder"], as = {
|
|
1071
1088
|
key: 1,
|
|
1072
1089
|
class: "animate-pulse"
|
|
1073
|
-
},
|
|
1090
|
+
}, is = /* @__PURE__ */ M({
|
|
1074
1091
|
__name: "uiTextArea",
|
|
1075
1092
|
props: {
|
|
1076
1093
|
name: {},
|
|
@@ -1085,18 +1102,18 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
1085
1102
|
},
|
|
1086
1103
|
emits: ["inputChanged"],
|
|
1087
1104
|
setup(p, { emit: i }) {
|
|
1088
|
-
const
|
|
1089
|
-
|
|
1090
|
-
},
|
|
1105
|
+
const o = i, a = p, r = (t) => {
|
|
1106
|
+
o("inputChanged", t.target.value);
|
|
1107
|
+
}, l = Y(a.value);
|
|
1091
1108
|
return W(() => a.value, (t) => {
|
|
1092
|
-
|
|
1093
|
-
}), (t, m) => t.loading ? (s(), n("div",
|
|
1109
|
+
l.value = t, o("inputChanged", { name: a.name, value: l.value });
|
|
1110
|
+
}), (t, m) => t.loading ? (s(), n("div", as, m[1] || (m[1] = [
|
|
1094
1111
|
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),
|
|
1095
1112
|
e("div", { class: "h-24 bg-gray-200 rounded-lg flex inline-flex items-center relative inline-block text-left w-full" }, null, -1)
|
|
1096
|
-
]))) : (s(), n("div",
|
|
1097
|
-
e("div",
|
|
1113
|
+
]))) : (s(), n("div", ss, [
|
|
1114
|
+
e("div", os, [
|
|
1098
1115
|
t.label ? (s(), n("label", ls, u(t.label), 1)) : b("", !0),
|
|
1099
|
-
t.requiredText ? (s(), n("span",
|
|
1116
|
+
t.requiredText ? (s(), n("span", rs, u(t.requiredText), 1)) : b("", !0)
|
|
1100
1117
|
]),
|
|
1101
1118
|
e("div", {
|
|
1102
1119
|
class: h({ "mt-1": t.label })
|
|
@@ -1104,7 +1121,7 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
1104
1121
|
C(e("textarea", {
|
|
1105
1122
|
disabled: t.disabled,
|
|
1106
1123
|
rows: "4",
|
|
1107
|
-
"onUpdate:modelValue": m[0] || (m[0] = (d) =>
|
|
1124
|
+
"onUpdate:modelValue": m[0] || (m[0] = (d) => l.value = d),
|
|
1108
1125
|
placeholder: t.placeholder,
|
|
1109
1126
|
class: h(["shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm rounded-md", {
|
|
1110
1127
|
"border-gray-300": t.color === "gray",
|
|
@@ -1118,8 +1135,8 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
1118
1135
|
"text-green-400": t.color === "green"
|
|
1119
1136
|
}]),
|
|
1120
1137
|
onChange: r
|
|
1121
|
-
}, null, 42,
|
|
1122
|
-
[
|
|
1138
|
+
}, null, 42, ns), [
|
|
1139
|
+
[ie, l.value]
|
|
1123
1140
|
])
|
|
1124
1141
|
], 2),
|
|
1125
1142
|
C(e("p", {
|
|
@@ -1142,13 +1159,13 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
1142
1159
|
])
|
|
1143
1160
|
]));
|
|
1144
1161
|
}
|
|
1145
|
-
}),
|
|
1162
|
+
}), ds = { class: "text-sm font-medium text-gray-900" }, us = {
|
|
1146
1163
|
key: 0,
|
|
1147
1164
|
class: "text-sm text-gray-500 ml-2"
|
|
1148
|
-
},
|
|
1165
|
+
}, cs = {
|
|
1149
1166
|
key: 1,
|
|
1150
1167
|
class: "animate-pulse flex items-center"
|
|
1151
|
-
},
|
|
1168
|
+
}, gs = /* @__PURE__ */ M({
|
|
1152
1169
|
__name: "uiToggle",
|
|
1153
1170
|
props: {
|
|
1154
1171
|
item: {},
|
|
@@ -1158,8 +1175,8 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
1158
1175
|
},
|
|
1159
1176
|
emits: ["toggleChanged", "actionClicked"],
|
|
1160
1177
|
setup(p, { emit: i }) {
|
|
1161
|
-
const
|
|
1162
|
-
return W(() =>
|
|
1178
|
+
const o = p, a = Y(o.checked);
|
|
1179
|
+
return W(() => o.checked, (r) => a.value = r), (r, l) => r.loading ? (s(), n("div", cs, l[3] || (l[3] = [
|
|
1163
1180
|
e("div", { class: "relative bg-gray-200 rounded-full w-12 h-6 p-1 flex items-center" }, [
|
|
1164
1181
|
e("div", { class: "rounded-full bg-gray-300 dark:bg-gray-400 h-4 w-4" })
|
|
1165
1182
|
], -1),
|
|
@@ -1172,9 +1189,9 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
1172
1189
|
default: v(() => [
|
|
1173
1190
|
g(c(We), {
|
|
1174
1191
|
disabled: r.disabled,
|
|
1175
|
-
onClick:
|
|
1192
|
+
onClick: l[0] || (l[0] = (t) => r.$emit("toggleChanged", { item: r.item, active: !a.value })),
|
|
1176
1193
|
modelValue: a.value,
|
|
1177
|
-
"onUpdate:modelValue":
|
|
1194
|
+
"onUpdate:modelValue": l[1] || (l[1] = (t) => a.value = t),
|
|
1178
1195
|
class: h([
|
|
1179
1196
|
a.value ? "bg-indigo-600" : "bg-gray-200",
|
|
1180
1197
|
"relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"
|
|
@@ -1197,27 +1214,27 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
1197
1214
|
class: "ml-3"
|
|
1198
1215
|
}, {
|
|
1199
1216
|
default: v(() => [
|
|
1200
|
-
e("span",
|
|
1201
|
-
r.item.subtitle ? (s(), n("span",
|
|
1217
|
+
e("span", ds, u(r.item.title), 1),
|
|
1218
|
+
r.item.subtitle ? (s(), n("span", us, u(r.item.subtitle), 1)) : b("", !0)
|
|
1202
1219
|
]),
|
|
1203
1220
|
_: 1
|
|
1204
1221
|
}),
|
|
1205
1222
|
r.item.action ? (s(), n("span", {
|
|
1206
1223
|
key: 0,
|
|
1207
1224
|
class: "cursor-pointer text-indigo-600 hover:text-indigo-400 uppercase text-xs absolute right-0 bottom-0.5",
|
|
1208
|
-
onClick:
|
|
1225
|
+
onClick: l[2] || (l[2] = (t) => r.$emit("actionClicked", r.item))
|
|
1209
1226
|
}, u(r.item.action), 1)) : b("", !0)
|
|
1210
1227
|
]),
|
|
1211
1228
|
_: 1
|
|
1212
1229
|
}));
|
|
1213
1230
|
}
|
|
1214
|
-
}),
|
|
1231
|
+
}), ps = {
|
|
1215
1232
|
key: 0,
|
|
1216
1233
|
class: "flex flex-col"
|
|
1217
|
-
},
|
|
1234
|
+
}, ms = { class: "flex" }, fs = { class: "flex-shrink-0" }, ys = { class: "ml-3" }, hs = { class: "mt-4" }, vs = { class: "-mx-2 -my-1.5 flex" }, bs = ["onClick"], ws = {
|
|
1218
1235
|
key: 1,
|
|
1219
1236
|
class: "flex flex-col animate-pulse"
|
|
1220
|
-
},
|
|
1237
|
+
}, xs = /* @__PURE__ */ M({
|
|
1221
1238
|
__name: "uiAlert",
|
|
1222
1239
|
props: {
|
|
1223
1240
|
actions: {},
|
|
@@ -1227,12 +1244,12 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
1227
1244
|
},
|
|
1228
1245
|
emits: ["alertEvent"],
|
|
1229
1246
|
setup(p, { emit: i }) {
|
|
1230
|
-
const
|
|
1231
|
-
|
|
1247
|
+
const o = i, a = (r) => {
|
|
1248
|
+
o("alertEvent", r.event);
|
|
1232
1249
|
};
|
|
1233
|
-
return (r,
|
|
1250
|
+
return (r, l) => r.loading ? (s(), n("div", ws, l[0] || (l[0] = [
|
|
1234
1251
|
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)
|
|
1235
|
-
]))) : (s(), n("div",
|
|
1252
|
+
]))) : (s(), n("div", ps, [
|
|
1236
1253
|
e("div", {
|
|
1237
1254
|
class: h([{
|
|
1238
1255
|
"bg-indigo-50 border-indigo-400": r.type === "info",
|
|
@@ -1241,8 +1258,8 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
1241
1258
|
"bg-green-50 border-green-400": r.type === "success"
|
|
1242
1259
|
}, "p-4 border-l-4 rounded"])
|
|
1243
1260
|
}, [
|
|
1244
|
-
e("div",
|
|
1245
|
-
e("div",
|
|
1261
|
+
e("div", ms, [
|
|
1262
|
+
e("div", fs, [
|
|
1246
1263
|
r.type === "info" ? (s(), _(c(Oe), {
|
|
1247
1264
|
key: 0,
|
|
1248
1265
|
class: "h-8 w-8 text-indigo-400",
|
|
@@ -1264,7 +1281,7 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
1264
1281
|
"aria-hidden": "true"
|
|
1265
1282
|
})) : b("", !0)
|
|
1266
1283
|
]),
|
|
1267
|
-
e("div",
|
|
1284
|
+
e("div", ys, [
|
|
1268
1285
|
e("h3", {
|
|
1269
1286
|
class: h([{
|
|
1270
1287
|
"text-red-800": r.type === "danger",
|
|
@@ -1279,10 +1296,10 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
1279
1296
|
"text-green-700": r.type === "success"
|
|
1280
1297
|
}, "mt-2 text-sm"])
|
|
1281
1298
|
}, [
|
|
1282
|
-
|
|
1299
|
+
I(r.$slots, "default")
|
|
1283
1300
|
], 2),
|
|
1284
|
-
e("div",
|
|
1285
|
-
e("div",
|
|
1301
|
+
e("div", hs, [
|
|
1302
|
+
e("div", vs, [
|
|
1286
1303
|
(s(!0), n(k, null, $(r.actions, (t, m) => (s(), n("button", {
|
|
1287
1304
|
onClick: (d) => a(t),
|
|
1288
1305
|
type: "button",
|
|
@@ -1296,7 +1313,7 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
1296
1313
|
},
|
|
1297
1314
|
"px-2 py-1.5 text-sm font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2"
|
|
1298
1315
|
])
|
|
1299
|
-
}, u(t.name), 11,
|
|
1316
|
+
}, u(t.name), 11, bs))), 128))
|
|
1300
1317
|
])
|
|
1301
1318
|
])
|
|
1302
1319
|
])
|
|
@@ -1304,20 +1321,20 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
1304
1321
|
], 2)
|
|
1305
1322
|
]));
|
|
1306
1323
|
}
|
|
1307
|
-
}),
|
|
1324
|
+
}), ks = {
|
|
1308
1325
|
key: 0,
|
|
1309
1326
|
class: "inline-flex",
|
|
1310
1327
|
"aria-label": "Breadcrumb"
|
|
1311
|
-
},
|
|
1328
|
+
}, _s = {
|
|
1312
1329
|
role: "list",
|
|
1313
1330
|
class: "flex items-center space-x-4 text-xs"
|
|
1314
|
-
},
|
|
1331
|
+
}, $s = { key: 0 }, Cs = ["onClick"], Bs = {
|
|
1315
1332
|
key: 1,
|
|
1316
1333
|
class: "flex items-center"
|
|
1317
|
-
},
|
|
1334
|
+
}, Ms = ["onClick"], Ss = {
|
|
1318
1335
|
key: 1,
|
|
1319
1336
|
class: "flex flex-row items-center animate-pulse"
|
|
1320
|
-
},
|
|
1337
|
+
}, js = /* @__PURE__ */ M({
|
|
1321
1338
|
__name: "uiBreadcrumbs",
|
|
1322
1339
|
props: {
|
|
1323
1340
|
pages: {},
|
|
@@ -1325,47 +1342,47 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
1325
1342
|
},
|
|
1326
1343
|
emits: ["breadCrumbClicked"],
|
|
1327
1344
|
setup(p, { emit: i }) {
|
|
1328
|
-
return (
|
|
1345
|
+
return (o, a) => o.loading ? (s(), n("div", Ss, a[0] || (a[0] = [
|
|
1329
1346
|
e("div", { class: "animate-pulse rounded-full bg-gray-200 dark:bg-gray-300 h-4 w-4 mr-4" }, null, -1),
|
|
1330
1347
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5 mr-4" }, null, -1),
|
|
1331
1348
|
e("div", { class: "animate-pulse rounded-full bg-gray-200 dark:bg-gray-300 h-4 w-4 mr-4" }, null, -1),
|
|
1332
1349
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5" }, null, -1)
|
|
1333
|
-
]))) : (s(), n("nav",
|
|
1334
|
-
e("ol",
|
|
1335
|
-
(s(!0), n(k, null, $(
|
|
1336
|
-
|
|
1350
|
+
]))) : (s(), n("nav", ks, [
|
|
1351
|
+
e("ol", _s, [
|
|
1352
|
+
(s(!0), n(k, null, $(o.pages, (r, l) => (s(), n("li", { key: l }, [
|
|
1353
|
+
l === 0 ? (s(), n("div", $s, [
|
|
1337
1354
|
e("p", {
|
|
1338
|
-
onClick: (t) =>
|
|
1355
|
+
onClick: (t) => o.$emit("breadCrumbClicked", r.routeName),
|
|
1339
1356
|
class: "flex flex-row items-center justify-center text-indigo-600 hover:text-indigo-800 cursor-pointer"
|
|
1340
1357
|
}, [
|
|
1341
|
-
g(c(
|
|
1358
|
+
g(c(bt), {
|
|
1342
1359
|
class: "flex-shrink-0 h-3 w-3 text-gray-400 mr-4",
|
|
1343
1360
|
"aria-hidden": "true"
|
|
1344
1361
|
}),
|
|
1345
1362
|
e("span", null, u(r.name), 1)
|
|
1346
|
-
], 8,
|
|
1347
|
-
])) : (s(), n("div",
|
|
1363
|
+
], 8, Cs)
|
|
1364
|
+
])) : (s(), n("div", Bs, [
|
|
1348
1365
|
g(c(X), {
|
|
1349
1366
|
class: "flex-shrink-0 h-3 w-3 text-gray-400",
|
|
1350
1367
|
"aria-hidden": "true"
|
|
1351
1368
|
}),
|
|
1352
1369
|
e("span", {
|
|
1353
|
-
onClick: (t) =>
|
|
1370
|
+
onClick: (t) => o.$emit("breadCrumbClicked", r.routeName),
|
|
1354
1371
|
class: h(["cursor-pointer ml-4 text-xs text-gray-400 hover:text-gray-500", { "text-indigo-600 hover:text-indigo-800": !r.current }]),
|
|
1355
1372
|
"aria-current": "page"
|
|
1356
|
-
}, u(r.name), 11,
|
|
1373
|
+
}, u(r.name), 11, Ms)
|
|
1357
1374
|
]))
|
|
1358
1375
|
]))), 128))
|
|
1359
1376
|
])
|
|
1360
1377
|
]));
|
|
1361
1378
|
}
|
|
1362
|
-
}),
|
|
1379
|
+
}), Ds = { class: "flex items-center flex-col sm:flex-row justify-center sm:justify-start" }, Ts = ["src"], zs = { class: "font-bold text-center sm:text-left" }, Ls = { class: "mt-1 text-xs text-center sm:text-left" }, Ns = {
|
|
1363
1380
|
key: 0,
|
|
1364
1381
|
class: "flex flex-wrap mt-4 justify-center sm:justify-start"
|
|
1365
|
-
},
|
|
1382
|
+
}, As = {
|
|
1366
1383
|
key: 1,
|
|
1367
1384
|
class: "rounded-lg bg-white shadow p-6 cursor-pointer animate-pulse"
|
|
1368
|
-
},
|
|
1385
|
+
}, Ys = /* @__PURE__ */ M({
|
|
1369
1386
|
__name: "uiCard",
|
|
1370
1387
|
props: {
|
|
1371
1388
|
id: {},
|
|
@@ -1377,34 +1394,34 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
1377
1394
|
},
|
|
1378
1395
|
emits: ["cardSelected"],
|
|
1379
1396
|
setup(p, { emit: i }) {
|
|
1380
|
-
return (
|
|
1397
|
+
return (o, a) => {
|
|
1381
1398
|
var r;
|
|
1382
|
-
return
|
|
1399
|
+
return o.loading ? (s(), n("div", As, a[1] || (a[1] = [
|
|
1383
1400
|
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)
|
|
1384
1401
|
]))) : (s(), n("div", {
|
|
1385
1402
|
key: 0,
|
|
1386
1403
|
class: "rounded-lg bg-white shadow p-6 cursor-pointer",
|
|
1387
|
-
onClick: a[0] || (a[0] = (
|
|
1404
|
+
onClick: a[0] || (a[0] = (l) => o.$emit("cardSelected", { id: o.id, name: o.name, type: o.type, tags: o.tags }))
|
|
1388
1405
|
}, [
|
|
1389
|
-
e("div",
|
|
1406
|
+
e("div", Ds, [
|
|
1390
1407
|
e("img", {
|
|
1391
1408
|
class: "w-16 h-16 rounded-full mb-4 sm:mb-0 sm:mr-4",
|
|
1392
|
-
src:
|
|
1393
|
-
}, null, 8,
|
|
1409
|
+
src: o.logo
|
|
1410
|
+
}, null, 8, Ts),
|
|
1394
1411
|
e("div", null, [
|
|
1395
|
-
e("h4",
|
|
1396
|
-
e("p",
|
|
1412
|
+
e("h4", zs, u(o.name), 1),
|
|
1413
|
+
e("p", Ls, u(o.type), 1)
|
|
1397
1414
|
])
|
|
1398
1415
|
]),
|
|
1399
|
-
|
|
1400
|
-
(s(!0), n(k, null, $(
|
|
1416
|
+
o.tags && ((r = o.tags) == null ? void 0 : r.length) > 0 ? (s(), n("div", Ns, [
|
|
1417
|
+
(s(!0), n(k, null, $(o.tags, (l) => (s(), _(R, {
|
|
1401
1418
|
class: "mb-1 mr-1",
|
|
1402
|
-
key:
|
|
1403
|
-
color:
|
|
1404
|
-
loading:
|
|
1419
|
+
key: l.name,
|
|
1420
|
+
color: l.color,
|
|
1421
|
+
loading: o.loading
|
|
1405
1422
|
}, {
|
|
1406
1423
|
default: v(() => [
|
|
1407
|
-
D(u(
|
|
1424
|
+
D(u(l.name), 1)
|
|
1408
1425
|
]),
|
|
1409
1426
|
_: 2
|
|
1410
1427
|
}, 1032, ["color", "loading"]))), 128))
|
|
@@ -1412,7 +1429,7 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
1412
1429
|
]));
|
|
1413
1430
|
};
|
|
1414
1431
|
}
|
|
1415
|
-
}),
|
|
1432
|
+
}), Ps = /* @__PURE__ */ M({
|
|
1416
1433
|
__name: "uiFilter",
|
|
1417
1434
|
props: {
|
|
1418
1435
|
items: {},
|
|
@@ -1422,23 +1439,23 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
1422
1439
|
},
|
|
1423
1440
|
emits: ["filterSelected"],
|
|
1424
1441
|
setup(p, { emit: i }) {
|
|
1425
|
-
const
|
|
1426
|
-
|
|
1442
|
+
const o = i, a = p, r = (t) => {
|
|
1443
|
+
l.value.forEach((m) => {
|
|
1427
1444
|
m.active = m.value === t.value;
|
|
1428
|
-
}),
|
|
1429
|
-
},
|
|
1430
|
-
return (t, m) => (s(), _(
|
|
1445
|
+
}), o("filterSelected", t);
|
|
1446
|
+
}, l = Y(a.items);
|
|
1447
|
+
return (t, m) => (s(), _(xe, {
|
|
1431
1448
|
loading: t.loading,
|
|
1432
1449
|
onOptionSelected: m[0] || (m[0] = (d) => r(d)),
|
|
1433
1450
|
position: t.position,
|
|
1434
|
-
items:
|
|
1451
|
+
items: l.value,
|
|
1435
1452
|
label: t.label
|
|
1436
1453
|
}, null, 8, ["loading", "position", "items", "label"]));
|
|
1437
1454
|
}
|
|
1438
|
-
}),
|
|
1455
|
+
}), Os = { class: "fixed inset-0 z-10 overflow-y-auto" }, Vs = { class: "flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0" }, Fs = { class: "absolute top-0 right-0 hidden pt-4 pr-4 sm:block" }, Is = { class: "sm:flex sm:items-start" }, Rs = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left sm:mr-4 sm:w-10/12 break-words" }, qs = { class: "mt-4 text-gray-500 text-sm" }, Hs = {
|
|
1439
1456
|
key: 0,
|
|
1440
1457
|
class: "mt-8"
|
|
1441
|
-
},
|
|
1458
|
+
}, Us = ["onClick"], Ve = /* @__PURE__ */ M({
|
|
1442
1459
|
__name: "uiModal",
|
|
1443
1460
|
props: {
|
|
1444
1461
|
title: {},
|
|
@@ -1450,15 +1467,15 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
1450
1467
|
},
|
|
1451
1468
|
emits: ["modalAction"],
|
|
1452
1469
|
setup(p, { emit: i }) {
|
|
1453
|
-
const
|
|
1454
|
-
a("modalAction", { modal:
|
|
1470
|
+
const o = p, a = i, r = (l) => {
|
|
1471
|
+
a("modalAction", { modal: o.modalName, action: l });
|
|
1455
1472
|
};
|
|
1456
|
-
return (
|
|
1473
|
+
return (l, t) => (s(), _(c(fe), {
|
|
1457
1474
|
as: "template",
|
|
1458
|
-
show:
|
|
1475
|
+
show: l.open
|
|
1459
1476
|
}, {
|
|
1460
1477
|
default: v(() => [
|
|
1461
|
-
g(c(
|
|
1478
|
+
g(c(ye), {
|
|
1462
1479
|
as: "div",
|
|
1463
1480
|
class: "relative z-10",
|
|
1464
1481
|
onClose: t[1] || (t[1] = (m) => r("close"))
|
|
@@ -1478,8 +1495,8 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
1478
1495
|
])),
|
|
1479
1496
|
_: 1
|
|
1480
1497
|
}),
|
|
1481
|
-
e("div",
|
|
1482
|
-
e("div",
|
|
1498
|
+
e("div", Os, [
|
|
1499
|
+
e("div", Vs, [
|
|
1483
1500
|
g(c(J), {
|
|
1484
1501
|
as: "template",
|
|
1485
1502
|
enter: "ease-out duration-300",
|
|
@@ -1490,9 +1507,9 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
1490
1507
|
"leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
|
|
1491
1508
|
}, {
|
|
1492
1509
|
default: v(() => [
|
|
1493
|
-
g(c(
|
|
1510
|
+
g(c(he), { 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" }, {
|
|
1494
1511
|
default: v(() => [
|
|
1495
|
-
e("div",
|
|
1512
|
+
e("div", Fs, [
|
|
1496
1513
|
e("button", {
|
|
1497
1514
|
type: "button",
|
|
1498
1515
|
class: "rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none",
|
|
@@ -1502,64 +1519,64 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
1502
1519
|
g(j, {
|
|
1503
1520
|
icon: c(E),
|
|
1504
1521
|
"aria-hidden": "true",
|
|
1505
|
-
loading:
|
|
1522
|
+
loading: l.loading
|
|
1506
1523
|
}, null, 8, ["icon", "loading"])
|
|
1507
1524
|
])
|
|
1508
1525
|
]),
|
|
1509
|
-
e("div",
|
|
1526
|
+
e("div", Is, [
|
|
1510
1527
|
e("div", {
|
|
1511
1528
|
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", {
|
|
1512
|
-
"bg-red-100":
|
|
1513
|
-
"bg-green-100":
|
|
1514
|
-
"bg-indigo-100":
|
|
1515
|
-
"bg-yellow-100":
|
|
1529
|
+
"bg-red-100": l.type === "danger",
|
|
1530
|
+
"bg-green-100": l.type === "success",
|
|
1531
|
+
"bg-indigo-100": l.type === "default",
|
|
1532
|
+
"bg-yellow-100": l.type === "warning"
|
|
1516
1533
|
}])
|
|
1517
1534
|
}, [
|
|
1518
1535
|
C(g(c(E), {
|
|
1519
1536
|
class: "h-6 w-6 text-red-600",
|
|
1520
1537
|
"aria-hidden": "true"
|
|
1521
1538
|
}, null, 512), [
|
|
1522
|
-
[S,
|
|
1539
|
+
[S, l.type === "danger"]
|
|
1523
1540
|
]),
|
|
1524
1541
|
C(g(c(ne), {
|
|
1525
1542
|
class: "h-6 w-6 text-green-600",
|
|
1526
1543
|
"aria-hidden": "true"
|
|
1527
1544
|
}, null, 512), [
|
|
1528
|
-
[S,
|
|
1545
|
+
[S, l.type === "success"]
|
|
1529
1546
|
]),
|
|
1530
1547
|
C(g(c(q), {
|
|
1531
1548
|
class: "h-6 w-6 text-yellow-600",
|
|
1532
1549
|
"aria-hidden": "true"
|
|
1533
1550
|
}, null, 512), [
|
|
1534
|
-
[S,
|
|
1551
|
+
[S, l.type === "warning"]
|
|
1535
1552
|
]),
|
|
1536
|
-
C(g(c(
|
|
1553
|
+
C(g(c(vt), {
|
|
1537
1554
|
class: "h-6 w-6 text-indigo-600",
|
|
1538
1555
|
"aria-hidden": "true"
|
|
1539
1556
|
}, null, 512), [
|
|
1540
|
-
[S,
|
|
1557
|
+
[S, l.type === "default"]
|
|
1541
1558
|
])
|
|
1542
1559
|
], 2),
|
|
1543
|
-
e("div",
|
|
1560
|
+
e("div", Rs, [
|
|
1544
1561
|
g(c(Le), {
|
|
1545
1562
|
as: "h3",
|
|
1546
1563
|
class: "text-lg font-medium leading-6 text-gray-900"
|
|
1547
1564
|
}, {
|
|
1548
1565
|
default: v(() => [
|
|
1549
|
-
D(u(
|
|
1566
|
+
D(u(l.title), 1)
|
|
1550
1567
|
]),
|
|
1551
1568
|
_: 1
|
|
1552
1569
|
}),
|
|
1553
|
-
e("div",
|
|
1554
|
-
|
|
1570
|
+
e("div", qs, [
|
|
1571
|
+
I(l.$slots, "default")
|
|
1555
1572
|
]),
|
|
1556
|
-
|
|
1557
|
-
(s(!0), n(k, null, $(
|
|
1573
|
+
l.actions ? (s(), n("div", Hs, [
|
|
1574
|
+
(s(!0), n(k, null, $(l.actions, (m, d) => (s(), n("button", {
|
|
1558
1575
|
key: d,
|
|
1559
1576
|
type: "button",
|
|
1560
1577
|
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",
|
|
1561
1578
|
onClick: (f) => r(m.value)
|
|
1562
|
-
}, u(m.name), 9,
|
|
1579
|
+
}, u(m.name), 9, Us))), 128))
|
|
1563
1580
|
])) : b("", !0)
|
|
1564
1581
|
])
|
|
1565
1582
|
])
|
|
@@ -1578,10 +1595,10 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
1578
1595
|
_: 3
|
|
1579
1596
|
}, 8, ["show"]));
|
|
1580
1597
|
}
|
|
1581
|
-
}),
|
|
1598
|
+
}), Es = { class: "w-full flex flex-col items-center space-y-4 sm:items-end" }, Zs = {
|
|
1582
1599
|
key: 0,
|
|
1583
1600
|
class: "max-w-sm w-full bg-white shadow-lg rounded-lg pointer-events-auto ring-1 ring-black ring-opacity-5 overflow-hidden"
|
|
1584
|
-
},
|
|
1601
|
+
}, Js = { class: "p-4" }, Gs = { class: "flex items-start" }, Ws = { class: "flex-shrink-0 mt-0.5" }, Qs = { class: "ml-3 w-0 flex-1 pt-0.5" }, Ks = { class: "font-medium text-gray-900" }, Xs = { class: "mt-1 text-sm text-gray-500" }, eo = { class: "ml-4 flex-shrink-0 flex" }, to = /* @__PURE__ */ M({
|
|
1585
1602
|
__name: "uiNotification",
|
|
1586
1603
|
props: {
|
|
1587
1604
|
type: { default: "info" },
|
|
@@ -1592,12 +1609,12 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
1592
1609
|
},
|
|
1593
1610
|
emits: ["closeNotification"],
|
|
1594
1611
|
setup(p, { emit: i }) {
|
|
1595
|
-
const
|
|
1596
|
-
return (r,
|
|
1612
|
+
const o = p, a = O(() => o.show);
|
|
1613
|
+
return (r, l) => (s(), n("div", {
|
|
1597
1614
|
"aria-live": "assertive",
|
|
1598
1615
|
class: h([{ fixed: r.fixed }, "inset-0 flex items-end px-4 py-6 pointer-events-none sm:p-6 sm:items-start"])
|
|
1599
1616
|
}, [
|
|
1600
|
-
e("div",
|
|
1617
|
+
e("div", Es, [
|
|
1601
1618
|
g(re, {
|
|
1602
1619
|
"enter-active-class": "transform ease-out duration-300 transition",
|
|
1603
1620
|
"enter-from-class": "translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",
|
|
@@ -1607,10 +1624,10 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
1607
1624
|
"leave-to-class": "opacity-0"
|
|
1608
1625
|
}, {
|
|
1609
1626
|
default: v(() => [
|
|
1610
|
-
a.value ? (s(), n("div",
|
|
1611
|
-
e("div",
|
|
1612
|
-
e("div",
|
|
1613
|
-
e("div",
|
|
1627
|
+
a.value ? (s(), n("div", Zs, [
|
|
1628
|
+
e("div", Js, [
|
|
1629
|
+
e("div", Gs, [
|
|
1630
|
+
e("div", Ws, [
|
|
1614
1631
|
C(g(c(Ye), {
|
|
1615
1632
|
"aria-hidden": "true",
|
|
1616
1633
|
class: "h-6 w-6 text-green-400"
|
|
@@ -1636,17 +1653,17 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
1636
1653
|
[S, r.type === "info"]
|
|
1637
1654
|
])
|
|
1638
1655
|
]),
|
|
1639
|
-
e("div",
|
|
1640
|
-
e("p",
|
|
1641
|
-
e("p",
|
|
1656
|
+
e("div", Qs, [
|
|
1657
|
+
e("p", Ks, u(r.title), 1),
|
|
1658
|
+
e("p", Xs, u(r.message), 1)
|
|
1642
1659
|
]),
|
|
1643
|
-
e("div",
|
|
1660
|
+
e("div", eo, [
|
|
1644
1661
|
e("button", {
|
|
1645
1662
|
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",
|
|
1646
1663
|
type: "button",
|
|
1647
|
-
onClick:
|
|
1664
|
+
onClick: l[0] || (l[0] = (t) => r.$emit("closeNotification"))
|
|
1648
1665
|
}, [
|
|
1649
|
-
|
|
1666
|
+
l[1] || (l[1] = e("span", { class: "sr-only" }, "Close", -1)),
|
|
1650
1667
|
g(c(E), {
|
|
1651
1668
|
"aria-hidden": "true",
|
|
1652
1669
|
class: "h-5 w-5"
|
|
@@ -1662,35 +1679,35 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
1662
1679
|
])
|
|
1663
1680
|
], 2));
|
|
1664
1681
|
}
|
|
1665
|
-
}),
|
|
1682
|
+
}), so = {
|
|
1666
1683
|
key: 0,
|
|
1667
1684
|
role: "list",
|
|
1668
1685
|
class: "divide-y divide-gray-100"
|
|
1669
|
-
},
|
|
1686
|
+
}, oo = { class: "min-w-0" }, lo = { class: "flex items-start gap-x-3" }, ro = { class: "text-sm font-semibold leading-6 text-gray-900" }, no = { class: "mt-1 flex items-center gap-x-2 text-xs leading-5 text-gray-500" }, ao = { class: "truncate" }, io = { class: "flex flex-none items-center gap-x-4" }, uo = ["href"], co = { class: "sr-only" }, go = {
|
|
1670
1687
|
key: 1,
|
|
1671
1688
|
class: "divide-y divide-gray-100 animate-pulse"
|
|
1672
|
-
},
|
|
1689
|
+
}, po = /* @__PURE__ */ M({
|
|
1673
1690
|
__name: "uiTaskList",
|
|
1674
1691
|
props: {
|
|
1675
1692
|
tasks: {},
|
|
1676
1693
|
loading: { type: Boolean, default: !0 }
|
|
1677
1694
|
},
|
|
1678
1695
|
setup(p) {
|
|
1679
|
-
return (i,
|
|
1696
|
+
return (i, o) => i.loading ? (s(), n("ul", go, [
|
|
1680
1697
|
(s(!0), n(k, null, $(i.tasks, (a) => (s(), n("li", {
|
|
1681
1698
|
key: a.id,
|
|
1682
1699
|
class: "flex items-center justify-between gap-x-6 py-5"
|
|
1683
|
-
},
|
|
1700
|
+
}, o[0] || (o[0] = [
|
|
1684
1701
|
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)
|
|
1685
1702
|
])))), 128))
|
|
1686
|
-
])) : (s(), n("ul",
|
|
1703
|
+
])) : (s(), n("ul", so, [
|
|
1687
1704
|
(s(!0), n(k, null, $(i.tasks, (a) => (s(), n("li", {
|
|
1688
1705
|
key: a.id,
|
|
1689
1706
|
class: "flex items-center justify-between gap-x-6 py-5"
|
|
1690
1707
|
}, [
|
|
1691
|
-
e("div",
|
|
1692
|
-
e("div",
|
|
1693
|
-
e("p",
|
|
1708
|
+
e("div", oo, [
|
|
1709
|
+
e("div", lo, [
|
|
1710
|
+
e("p", ro, u(a.name), 1),
|
|
1694
1711
|
e("p", {
|
|
1695
1712
|
class: h([
|
|
1696
1713
|
{
|
|
@@ -1702,52 +1719,52 @@ const kt = { class: "flex justify-between" }, _t = {
|
|
|
1702
1719
|
])
|
|
1703
1720
|
}, u(a.statusLiteral), 3)
|
|
1704
1721
|
]),
|
|
1705
|
-
e("div",
|
|
1706
|
-
e("p",
|
|
1722
|
+
e("div", no, [
|
|
1723
|
+
e("p", ao, u(a.description), 1)
|
|
1707
1724
|
])
|
|
1708
1725
|
]),
|
|
1709
|
-
e("div",
|
|
1726
|
+
e("div", io, [
|
|
1710
1727
|
e("a", {
|
|
1711
1728
|
href: a.href,
|
|
1712
1729
|
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"
|
|
1713
1730
|
}, [
|
|
1714
1731
|
D(u(a.action), 1),
|
|
1715
|
-
e("span",
|
|
1716
|
-
], 8,
|
|
1732
|
+
e("span", co, ", " + u(a.name), 1)
|
|
1733
|
+
], 8, uo)
|
|
1717
1734
|
])
|
|
1718
1735
|
]))), 128))
|
|
1719
1736
|
]));
|
|
1720
1737
|
}
|
|
1721
1738
|
});
|
|
1722
1739
|
var ee = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1723
|
-
function
|
|
1740
|
+
function mo(p) {
|
|
1724
1741
|
return p && p.__esModule && Object.prototype.hasOwnProperty.call(p, "default") ? p.default : p;
|
|
1725
1742
|
}
|
|
1726
|
-
var
|
|
1743
|
+
var fo = { exports: {} };
|
|
1727
1744
|
(function(p, i) {
|
|
1728
|
-
(function(
|
|
1729
|
-
p.exports = a(
|
|
1730
|
-
})(ee, function(
|
|
1745
|
+
(function(o, a) {
|
|
1746
|
+
p.exports = a(L);
|
|
1747
|
+
})(ee, function(o) {
|
|
1731
1748
|
function a(t) {
|
|
1732
1749
|
return t && typeof t == "object" && "default" in t ? t : { default: t };
|
|
1733
1750
|
}
|
|
1734
|
-
var r = a(
|
|
1751
|
+
var r = a(o), l = { name: "es", monthsShort: "ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"), weekdays: "domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"), weekdaysShort: "dom._lun._mar._mié._jue._vie._sáb.".split("_"), weekdaysMin: "do_lu_ma_mi_ju_vi_sá".split("_"), months: "enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"), weekStart: 1, formats: { LT: "H:mm", LTS: "H:mm:ss", L: "DD/MM/YYYY", LL: "D [de] MMMM [de] YYYY", LLL: "D [de] MMMM [de] YYYY H:mm", LLLL: "dddd, D [de] MMMM [de] YYYY H:mm" }, relativeTime: { future: "en %s", past: "hace %s", s: "unos segundos", m: "un minuto", mm: "%d minutos", h: "una hora", hh: "%d horas", d: "un día", dd: "%d días", M: "un mes", MM: "%d meses", y: "un año", yy: "%d años" }, ordinal: function(t) {
|
|
1735
1752
|
return t + "º";
|
|
1736
1753
|
} };
|
|
1737
|
-
return r.default.locale(
|
|
1754
|
+
return r.default.locale(l, null, !0), l;
|
|
1738
1755
|
});
|
|
1739
|
-
})(
|
|
1740
|
-
var
|
|
1756
|
+
})(fo);
|
|
1757
|
+
var yo = { exports: {} };
|
|
1741
1758
|
(function(p, i) {
|
|
1742
|
-
(function(
|
|
1743
|
-
p.exports = a(
|
|
1744
|
-
})(ee, function(
|
|
1759
|
+
(function(o, a) {
|
|
1760
|
+
p.exports = a(L);
|
|
1761
|
+
})(ee, function(o) {
|
|
1745
1762
|
function a(d) {
|
|
1746
1763
|
return d && typeof d == "object" && "default" in d ? d : { default: d };
|
|
1747
1764
|
}
|
|
1748
|
-
var r = a(
|
|
1765
|
+
var r = a(o), l = { s: "ein paar Sekunden", m: ["eine Minute", "einer Minute"], mm: "%d Minuten", h: ["eine Stunde", "einer Stunde"], hh: "%d Stunden", d: ["ein Tag", "einem Tag"], dd: ["%d Tage", "%d Tagen"], M: ["ein Monat", "einem Monat"], MM: ["%d Monate", "%d Monaten"], y: ["ein Jahr", "einem Jahr"], yy: ["%d Jahre", "%d Jahren"] };
|
|
1749
1766
|
function t(d, f, y) {
|
|
1750
|
-
var w =
|
|
1767
|
+
var w = l[y];
|
|
1751
1768
|
return Array.isArray(w) && (w = w[f ? 0 : 1]), w.replace("%d", d);
|
|
1752
1769
|
}
|
|
1753
1770
|
var m = { name: "de", weekdays: "Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"), weekdaysShort: "So._Mo._Di._Mi._Do._Fr._Sa.".split("_"), weekdaysMin: "So_Mo_Di_Mi_Do_Fr_Sa".split("_"), months: "Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"), monthsShort: "Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"), ordinal: function(d) {
|
|
@@ -1755,49 +1772,49 @@ var ml = { exports: {} };
|
|
|
1755
1772
|
}, weekStart: 1, yearStart: 4, formats: { LTS: "HH:mm:ss", LT: "HH:mm", L: "DD.MM.YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY HH:mm", LLLL: "dddd, D. MMMM YYYY HH:mm" }, relativeTime: { future: "in %s", past: "vor %s", s: t, m: t, mm: t, h: t, hh: t, d: t, dd: t, M: t, MM: t, y: t, yy: t } };
|
|
1756
1773
|
return r.default.locale(m, null, !0), m;
|
|
1757
1774
|
});
|
|
1758
|
-
})(
|
|
1759
|
-
var
|
|
1775
|
+
})(yo);
|
|
1776
|
+
var ho = { exports: {} };
|
|
1760
1777
|
(function(p, i) {
|
|
1761
|
-
(function(
|
|
1778
|
+
(function(o, a) {
|
|
1762
1779
|
p.exports = a();
|
|
1763
1780
|
})(ee, function() {
|
|
1764
|
-
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(
|
|
1765
|
-
var a = ["th", "st", "nd", "rd"], r =
|
|
1766
|
-
return "[" +
|
|
1781
|
+
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(o) {
|
|
1782
|
+
var a = ["th", "st", "nd", "rd"], r = o % 100;
|
|
1783
|
+
return "[" + o + (a[(r - 20) % 10] || a[r] || a[0]) + "]";
|
|
1767
1784
|
} };
|
|
1768
1785
|
});
|
|
1769
|
-
})(
|
|
1770
|
-
var
|
|
1786
|
+
})(ho);
|
|
1787
|
+
var vo = { exports: {} };
|
|
1771
1788
|
(function(p, i) {
|
|
1772
|
-
(function(
|
|
1773
|
-
p.exports = a(
|
|
1774
|
-
})(ee, function(
|
|
1789
|
+
(function(o, a) {
|
|
1790
|
+
p.exports = a(L);
|
|
1791
|
+
})(ee, function(o) {
|
|
1775
1792
|
function a(t) {
|
|
1776
1793
|
return t && typeof t == "object" && "default" in t ? t : { default: t };
|
|
1777
1794
|
}
|
|
1778
|
-
var r = a(
|
|
1795
|
+
var r = a(o), l = { name: "fr", weekdays: "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"), weekdaysShort: "dim._lun._mar._mer._jeu._ven._sam.".split("_"), weekdaysMin: "di_lu_ma_me_je_ve_sa".split("_"), months: "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"), monthsShort: "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"), weekStart: 1, yearStart: 4, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, relativeTime: { future: "dans %s", past: "il y a %s", s: "quelques secondes", m: "une minute", mm: "%d minutes", h: "une heure", hh: "%d heures", d: "un jour", dd: "%d jours", M: "un mois", MM: "%d mois", y: "un an", yy: "%d ans" }, ordinal: function(t) {
|
|
1779
1796
|
return "" + t + (t === 1 ? "er" : "");
|
|
1780
1797
|
} };
|
|
1781
|
-
return r.default.locale(
|
|
1798
|
+
return r.default.locale(l, null, !0), l;
|
|
1782
1799
|
});
|
|
1783
|
-
})(
|
|
1800
|
+
})(vo);
|
|
1784
1801
|
const te = (p, i) => {
|
|
1785
|
-
const
|
|
1802
|
+
const o = p.__vccOpts || p;
|
|
1786
1803
|
for (const [a, r] of i)
|
|
1787
|
-
|
|
1788
|
-
return
|
|
1789
|
-
},
|
|
1804
|
+
o[a] = r;
|
|
1805
|
+
return o;
|
|
1806
|
+
}, bo = {
|
|
1790
1807
|
name: "dateSelector",
|
|
1791
1808
|
components: { ChevronLeftIcon: Pe, ChevronRightIcon: X },
|
|
1792
1809
|
computed: {
|
|
1793
1810
|
currentDate() {
|
|
1794
|
-
return
|
|
1811
|
+
return L(this.selectedDate).locale("es");
|
|
1795
1812
|
},
|
|
1796
1813
|
today() {
|
|
1797
|
-
return
|
|
1814
|
+
return L(/* @__PURE__ */ new Date()).locale("es");
|
|
1798
1815
|
},
|
|
1799
1816
|
formatedDate() {
|
|
1800
|
-
return
|
|
1817
|
+
return L(this.currentDate).locale("es").format("DD MMM YYYY");
|
|
1801
1818
|
}
|
|
1802
1819
|
},
|
|
1803
1820
|
props: {
|
|
@@ -1808,25 +1825,25 @@ const te = (p, i) => {
|
|
|
1808
1825
|
},
|
|
1809
1826
|
methods: {
|
|
1810
1827
|
selectDate(p, i) {
|
|
1811
|
-
let
|
|
1828
|
+
let o;
|
|
1812
1829
|
if (i === "previous") {
|
|
1813
1830
|
if (this.currentDate <= this.today) return;
|
|
1814
|
-
p === "day" && (
|
|
1831
|
+
p === "day" && (o = L(this.currentDate).subtract(1, "day")), p === "month" && (o = L(this.currentDate).subtract(1, "month")), p === "year" && (o = L(this.currentDate).subtract(1, "year")), o <= this.today && (o = this.currentDate = this.today);
|
|
1815
1832
|
}
|
|
1816
|
-
i === "next" && (p === "day" && (
|
|
1833
|
+
i === "next" && (p === "day" && (o = L(this.selectedDate).add(1, "day")), p === "month" && (o = L(this.selectedDate).add(1, "month")), p === "year" && (o = L(this.selectedDate).add(1, "year"))), this.$emit("dateSelected", o);
|
|
1817
1834
|
}
|
|
1818
1835
|
}
|
|
1819
|
-
},
|
|
1820
|
-
function
|
|
1821
|
-
const t =
|
|
1822
|
-
return s(), n("div",
|
|
1823
|
-
e("div",
|
|
1836
|
+
}, wo = { class: "dateSelector flex items-center text-white flex-row" }, xo = { class: "pagination flex items-center my-1 md:my-0" }, ko = { class: "date mx-4 font-bold text-center text-indigo-600 select-none uppercase" }, _o = { class: "pagination flex items-center my-1 sm:my-0" };
|
|
1837
|
+
function $o(p, i, o, a, r, l) {
|
|
1838
|
+
const t = _e("ChevronLeftIcon"), m = _e("ChevronRightIcon");
|
|
1839
|
+
return s(), n("div", wo, [
|
|
1840
|
+
e("div", xo, [
|
|
1824
1841
|
e("div", {
|
|
1825
1842
|
class: h([{
|
|
1826
|
-
"bg-indigo-600 hover:bg-indigo-800 cursor-pointer":
|
|
1827
|
-
"bg-indigo-300":
|
|
1843
|
+
"bg-indigo-600 hover:bg-indigo-800 cursor-pointer": l.currentDate > l.today,
|
|
1844
|
+
"bg-indigo-300": l.currentDate <= l.today
|
|
1828
1845
|
}, "previousYear flex items-center p-1 rounded mx-0.5 shadow-sm"]),
|
|
1829
|
-
onClick: i[0] || (i[0] = (d) =>
|
|
1846
|
+
onClick: i[0] || (i[0] = (d) => l.selectDate("year", "previous"))
|
|
1830
1847
|
}, [
|
|
1831
1848
|
g(t, { class: "h-4" }),
|
|
1832
1849
|
g(t, { class: "h-4 -ml-3" }),
|
|
@@ -1834,42 +1851,42 @@ function kl(p, i, l, a, r, o) {
|
|
|
1834
1851
|
], 2),
|
|
1835
1852
|
e("div", {
|
|
1836
1853
|
class: h([{
|
|
1837
|
-
"bg-indigo-600 hover:bg-indigo-800 cursor-pointer":
|
|
1838
|
-
"bg-indigo-300":
|
|
1854
|
+
"bg-indigo-600 hover:bg-indigo-800 cursor-pointer": l.currentDate > l.today,
|
|
1855
|
+
"bg-indigo-300": l.currentDate <= l.today
|
|
1839
1856
|
}, "previousYear flex items-center p-1 rounded mx-0.5 shadow-sm"]),
|
|
1840
|
-
onClick: i[1] || (i[1] = (d) =>
|
|
1857
|
+
onClick: i[1] || (i[1] = (d) => l.selectDate("month", "previous"))
|
|
1841
1858
|
}, [
|
|
1842
1859
|
g(t, { class: "h-4" }),
|
|
1843
1860
|
g(t, { class: "h-4 -ml-3" })
|
|
1844
1861
|
], 2),
|
|
1845
1862
|
e("div", {
|
|
1846
1863
|
class: h([{
|
|
1847
|
-
"bg-indigo-600 hover:bg-indigo-800 cursor-pointer":
|
|
1848
|
-
"bg-indigo-300":
|
|
1864
|
+
"bg-indigo-600 hover:bg-indigo-800 cursor-pointer": l.currentDate > l.today,
|
|
1865
|
+
"bg-indigo-300": l.currentDate <= l.today
|
|
1849
1866
|
}, "previousYear flex items-center p-1 rounded mx-0.5 shadow-sm"]),
|
|
1850
|
-
onClick: i[2] || (i[2] = (d) =>
|
|
1867
|
+
onClick: i[2] || (i[2] = (d) => l.selectDate("day", "previous"))
|
|
1851
1868
|
}, [
|
|
1852
1869
|
g(t, { class: "h-4" })
|
|
1853
1870
|
], 2)
|
|
1854
1871
|
]),
|
|
1855
|
-
e("div",
|
|
1856
|
-
e("div",
|
|
1872
|
+
e("div", ko, u(l.formatedDate), 1),
|
|
1873
|
+
e("div", _o, [
|
|
1857
1874
|
e("div", {
|
|
1858
1875
|
class: "previousDay flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm",
|
|
1859
|
-
onClick: i[3] || (i[3] = (d) =>
|
|
1876
|
+
onClick: i[3] || (i[3] = (d) => l.selectDate("day", "next"))
|
|
1860
1877
|
}, [
|
|
1861
1878
|
g(m, { class: "h-4" })
|
|
1862
1879
|
]),
|
|
1863
1880
|
e("div", {
|
|
1864
1881
|
class: "previousMonth flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm",
|
|
1865
|
-
onClick: i[4] || (i[4] = (d) =>
|
|
1882
|
+
onClick: i[4] || (i[4] = (d) => l.selectDate("month", "next"))
|
|
1866
1883
|
}, [
|
|
1867
1884
|
g(m, { class: "h-4" }),
|
|
1868
1885
|
g(m, { class: "h-4 -ml-3" })
|
|
1869
1886
|
]),
|
|
1870
1887
|
e("div", {
|
|
1871
1888
|
class: "previousYear flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm",
|
|
1872
|
-
onClick: i[5] || (i[5] = (d) =>
|
|
1889
|
+
onClick: i[5] || (i[5] = (d) => l.selectDate("year", "next"))
|
|
1873
1890
|
}, [
|
|
1874
1891
|
g(m, { class: "h-4" }),
|
|
1875
1892
|
g(m, { class: "h-4 -ml-3" }),
|
|
@@ -1878,16 +1895,16 @@ function kl(p, i, l, a, r, o) {
|
|
|
1878
1895
|
])
|
|
1879
1896
|
]);
|
|
1880
1897
|
}
|
|
1881
|
-
const
|
|
1898
|
+
const Co = /* @__PURE__ */ te(bo, [["render", $o]]), Bo = {
|
|
1882
1899
|
name: "SkeletonTable"
|
|
1883
|
-
},
|
|
1884
|
-
function
|
|
1885
|
-
return s(), n("div",
|
|
1886
|
-
e("div",
|
|
1887
|
-
e("div",
|
|
1888
|
-
e("div",
|
|
1889
|
-
e("div",
|
|
1890
|
-
e("table",
|
|
1900
|
+
}, Mo = { class: "px-4 sm:px-6 lg:px-8 animate-pulse" }, So = { class: "flow-root" }, jo = { class: "-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8" }, Do = { class: "inline-block min-w-full py-2 align-middle px-1" }, To = { class: "overflow-hidden shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg" }, zo = { class: "min-w-full divide-y divide-gray-300" }, Lo = { class: "divide-y divide-gray-200 bg-white" };
|
|
1901
|
+
function No(p, i, o, a, r, l) {
|
|
1902
|
+
return s(), n("div", Mo, [
|
|
1903
|
+
e("div", So, [
|
|
1904
|
+
e("div", jo, [
|
|
1905
|
+
e("div", Do, [
|
|
1906
|
+
e("div", To, [
|
|
1907
|
+
e("table", zo, [
|
|
1891
1908
|
i[1] || (i[1] = e("thead", { class: "bg-gray-50" }, [
|
|
1892
1909
|
e("tr", null, [
|
|
1893
1910
|
e("th", {
|
|
@@ -1924,7 +1941,7 @@ function zl(p, i, l, a, r, o) {
|
|
|
1924
1941
|
])
|
|
1925
1942
|
])
|
|
1926
1943
|
], -1)),
|
|
1927
|
-
e("tbody",
|
|
1944
|
+
e("tbody", Lo, [
|
|
1928
1945
|
(s(), n(k, null, $(10, (t) => e("tr", { key: t }, i[0] || (i[0] = [
|
|
1929
1946
|
e("td", { class: "whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6" }, [
|
|
1930
1947
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })
|
|
@@ -1959,54 +1976,54 @@ function zl(p, i, l, a, r, o) {
|
|
|
1959
1976
|
])
|
|
1960
1977
|
]);
|
|
1961
1978
|
}
|
|
1962
|
-
const Fe = /* @__PURE__ */ te(
|
|
1979
|
+
const Fe = /* @__PURE__ */ te(Bo, [["render", No]]);
|
|
1963
1980
|
var Ie = { exports: {} };
|
|
1964
1981
|
(function(p, i) {
|
|
1965
|
-
(function(
|
|
1982
|
+
(function(o, a) {
|
|
1966
1983
|
p.exports = a();
|
|
1967
1984
|
})(ee, function() {
|
|
1968
|
-
return function(
|
|
1985
|
+
return function(o, a, r) {
|
|
1969
1986
|
a.prototype.isToday = function() {
|
|
1970
|
-
var
|
|
1971
|
-
return this.format(
|
|
1987
|
+
var l = "YYYY-MM-DD", t = r();
|
|
1988
|
+
return this.format(l) === t.format(l);
|
|
1972
1989
|
};
|
|
1973
1990
|
};
|
|
1974
1991
|
});
|
|
1975
1992
|
})(Ie);
|
|
1976
|
-
var
|
|
1977
|
-
const
|
|
1993
|
+
var Ao = Ie.exports;
|
|
1994
|
+
const Yo = /* @__PURE__ */ mo(Ao), Po = {
|
|
1978
1995
|
name: "calendarDay",
|
|
1979
1996
|
props: {
|
|
1980
1997
|
day: Object
|
|
1981
1998
|
},
|
|
1982
1999
|
computed: {
|
|
1983
2000
|
currentDay() {
|
|
1984
|
-
return
|
|
1985
|
-
dayName:
|
|
1986
|
-
day:
|
|
1987
|
-
month:
|
|
1988
|
-
isWeekend:
|
|
1989
|
-
isToday:
|
|
2001
|
+
return L.extend(Yo), {
|
|
2002
|
+
dayName: L(this.day).locale("es").format("ddd"),
|
|
2003
|
+
day: L(this.day).locale("es").format("DD"),
|
|
2004
|
+
month: L(this.day).locale("es").format("MMM."),
|
|
2005
|
+
isWeekend: L(this.day).format("d") == 6 || L(this.day).format("d") == 0,
|
|
2006
|
+
isToday: L(this.day).isToday()
|
|
1990
2007
|
};
|
|
1991
2008
|
}
|
|
1992
2009
|
}
|
|
1993
|
-
},
|
|
1994
|
-
function
|
|
2010
|
+
}, Oo = { class: "text-xs" }, Vo = { class: "font-bold text-lg" }, Fo = { class: "text-xs font-medium" };
|
|
2011
|
+
function Io(p, i, o, a, r, l) {
|
|
1995
2012
|
return s(), n("div", {
|
|
1996
2013
|
class: h([
|
|
1997
2014
|
"day select-none text-center",
|
|
1998
2015
|
{
|
|
1999
|
-
"bg-indigo-200 text-white":
|
|
2000
|
-
"bg-[#0ff] text-white":
|
|
2016
|
+
"bg-indigo-200 text-white": l.currentDay.isWeekend,
|
|
2017
|
+
"bg-[#0ff] text-white": l.currentDay.isToday
|
|
2001
2018
|
}
|
|
2002
2019
|
])
|
|
2003
2020
|
}, [
|
|
2004
|
-
e("p",
|
|
2005
|
-
e("p",
|
|
2006
|
-
e("p",
|
|
2021
|
+
e("p", Oo, u(l.currentDay.dayName), 1),
|
|
2022
|
+
e("p", Vo, u(l.currentDay.day), 1),
|
|
2023
|
+
e("p", Fo, u(l.currentDay.month), 1)
|
|
2007
2024
|
], 2);
|
|
2008
2025
|
}
|
|
2009
|
-
const
|
|
2026
|
+
const Ro = /* @__PURE__ */ te(Po, [["render", Io]]), qo = {
|
|
2010
2027
|
name: "dayPrice",
|
|
2011
2028
|
props: {
|
|
2012
2029
|
currency: String,
|
|
@@ -2020,78 +2037,78 @@ const Fl = /* @__PURE__ */ te(Al, [["render", Vl]]), Il = {
|
|
|
2020
2037
|
computed: {
|
|
2021
2038
|
currentDay() {
|
|
2022
2039
|
return {
|
|
2023
|
-
isWeekend:
|
|
2040
|
+
isWeekend: L(this.price.date).format("d") == 6 || L(this.price.date).format("d") == 0,
|
|
2024
2041
|
price: this.price.price
|
|
2025
2042
|
};
|
|
2026
2043
|
}
|
|
2027
2044
|
}
|
|
2028
|
-
},
|
|
2029
|
-
function
|
|
2030
|
-
return s(), n("div",
|
|
2045
|
+
}, Ho = { class: "priceDay" };
|
|
2046
|
+
function Uo(p, i, o, a, r, l) {
|
|
2047
|
+
return s(), n("div", Ho, [
|
|
2031
2048
|
e("div", {
|
|
2032
2049
|
class: h([
|
|
2033
2050
|
{
|
|
2034
|
-
"bg-indigo-200 text-white":
|
|
2035
|
-
"bg-green-300 text-white":
|
|
2036
|
-
"bg-yellow-300 text-white":
|
|
2051
|
+
"bg-indigo-200 text-white": l.currentDay.isWeekend,
|
|
2052
|
+
"bg-green-300 text-white": o.price.price > o.basePrice,
|
|
2053
|
+
"bg-yellow-300 text-white": o.price.price < o.basePrice
|
|
2037
2054
|
},
|
|
2038
2055
|
"select-none text-center rounded-lg p-1"
|
|
2039
2056
|
])
|
|
2040
|
-
}, u(
|
|
2057
|
+
}, u(l.currentDay.price) + u(o.currency), 3)
|
|
2041
2058
|
]);
|
|
2042
2059
|
}
|
|
2043
|
-
const
|
|
2060
|
+
const oe = /* @__PURE__ */ te(qo, [["render", Uo]]), Eo = {
|
|
2044
2061
|
key: 0,
|
|
2045
2062
|
class: "px-4 sm:px-6 lg:px-8"
|
|
2046
|
-
},
|
|
2063
|
+
}, Zo = { class: "flow-root" }, Jo = { class: "overflow-x-auto sm:-mx-6 lg:-mx-8 shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg" }, Go = { class: "inline-block min-w-full align-middle" }, Wo = { class: "min-w-full text-sm" }, Qo = { class: "bg-white" }, Ko = {
|
|
2047
2064
|
colspan: "6",
|
|
2048
2065
|
scope: "colgroup",
|
|
2049
2066
|
class: "bg-gray-50 py-2 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-3"
|
|
2050
|
-
},
|
|
2067
|
+
}, Xo = {
|
|
2051
2068
|
colspan: "20",
|
|
2052
2069
|
scope: "colgroup",
|
|
2053
2070
|
class: "bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900"
|
|
2054
|
-
},
|
|
2071
|
+
}, el = { key: 0 }, tl = {
|
|
2055
2072
|
colspan: "6",
|
|
2056
2073
|
class: "pl-4"
|
|
2057
|
-
},
|
|
2074
|
+
}, sl = { key: 1 }, ol = {
|
|
2058
2075
|
colspan: "6",
|
|
2059
2076
|
class: "pl-4"
|
|
2060
|
-
},
|
|
2077
|
+
}, ll = { key: 2 }, rl = {
|
|
2061
2078
|
colspan: "6",
|
|
2062
2079
|
class: "pl-4"
|
|
2063
|
-
},
|
|
2080
|
+
}, nl = {
|
|
2064
2081
|
colspan: "20",
|
|
2065
2082
|
scope: "colgroup",
|
|
2066
2083
|
class: "bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900 relative"
|
|
2067
|
-
},
|
|
2084
|
+
}, al = {
|
|
2068
2085
|
key: 0,
|
|
2069
2086
|
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"
|
|
2070
|
-
},
|
|
2087
|
+
}, il = ["onClick"], dl = {
|
|
2071
2088
|
colspan: "2",
|
|
2072
2089
|
scope: "colgroup",
|
|
2073
2090
|
class: "relative bg-gray-100 py-3.5 pl-4 pr-3 text-left font-semibold text-gray-900"
|
|
2074
|
-
},
|
|
2091
|
+
}, ul = ["checked", "indeterminate"], cl = { class: "pl-6" }, gl = {
|
|
2075
2092
|
colspan: "2",
|
|
2076
2093
|
scope: "colgroup",
|
|
2077
2094
|
class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900"
|
|
2078
|
-
},
|
|
2095
|
+
}, pl = {
|
|
2079
2096
|
colspan: "2",
|
|
2080
2097
|
scope: "colgroup",
|
|
2081
2098
|
class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900"
|
|
2082
|
-
},
|
|
2099
|
+
}, ml = {
|
|
2083
2100
|
colspan: "2",
|
|
2084
2101
|
class: "relative py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6"
|
|
2085
|
-
},
|
|
2102
|
+
}, fl = {
|
|
2086
2103
|
key: 0,
|
|
2087
2104
|
class: "absolute inset-y-0 left-0 w-0.5 bg-indigo-600"
|
|
2088
|
-
},
|
|
2105
|
+
}, yl = ["value"], hl = { class: "pl-6" }, vl = {
|
|
2089
2106
|
colspan: "2",
|
|
2090
2107
|
class: "pl-4"
|
|
2091
|
-
},
|
|
2108
|
+
}, bl = {
|
|
2092
2109
|
colspan: "2",
|
|
2093
2110
|
class: "pl-4"
|
|
2094
|
-
},
|
|
2111
|
+
}, wl = /* @__PURE__ */ M({
|
|
2095
2112
|
__name: "uiPriceCalendar",
|
|
2096
2113
|
props: {
|
|
2097
2114
|
loading: { type: Boolean },
|
|
@@ -2104,53 +2121,53 @@ const le = /* @__PURE__ */ te(Il, [["render", ql]]), Hl = {
|
|
|
2104
2121
|
},
|
|
2105
2122
|
emits: ["dateChanged", "changeCategoryBulkPrices", "changeCategorySelectionPrice", "changeCategoryUpgradePrice", "changeRoomPrice", "tableAction"],
|
|
2106
2123
|
setup(p, { emit: i }) {
|
|
2107
|
-
const
|
|
2124
|
+
const o = p, a = i, r = Y(/* @__PURE__ */ new Date()), l = Y(/* @__PURE__ */ new Date()), t = Y([]), m = O(() => {
|
|
2108
2125
|
let x = [];
|
|
2109
|
-
for (let
|
|
2110
|
-
x.push(
|
|
2126
|
+
for (let P = 0; P < 14; P++)
|
|
2127
|
+
x.push(L(l.value).add(P, "day"));
|
|
2111
2128
|
return x;
|
|
2112
|
-
}), d =
|
|
2113
|
-
|
|
2129
|
+
}), d = O(() => t.value.length > 0 && t.value.length < o.rooms.length), f = (x) => {
|
|
2130
|
+
L(x).isBefore(r.value) || (l.value = x, a("dateChanged", l.value));
|
|
2114
2131
|
}, y = (x) => {
|
|
2115
|
-
let
|
|
2116
|
-
return
|
|
2132
|
+
let P = o.category.selectionPrices.find((N) => L(N.date).isSame(x.date));
|
|
2133
|
+
return P ? P.price : x.price;
|
|
2117
2134
|
}, w = (x) => {
|
|
2118
|
-
t.value = x.target.checked ?
|
|
2119
|
-
},
|
|
2120
|
-
return (x,
|
|
2135
|
+
t.value = x.target.checked ? o.rooms.map((P) => P.id) : [];
|
|
2136
|
+
}, B = () => a("changeCategoryBulkPrices"), A = (x) => a("changeCategorySelectionPrice", x), V = (x) => a("changeCategoryUpgradePrice", x), z = (x) => a("tableAction", x), H = (x, P, N) => a("changeRoomPrice", { price: x, roomId: P, roomName: N });
|
|
2137
|
+
return (x, P) => {
|
|
2121
2138
|
var N, se;
|
|
2122
|
-
return x.loading ? (s(), _(Fe, { key: 1 })) : (s(), n("div",
|
|
2123
|
-
e("div",
|
|
2124
|
-
e("div",
|
|
2125
|
-
e("div",
|
|
2126
|
-
e("table",
|
|
2127
|
-
e("tbody",
|
|
2139
|
+
return x.loading ? (s(), _(Fe, { key: 1 })) : (s(), n("div", Eo, [
|
|
2140
|
+
e("div", Zo, [
|
|
2141
|
+
e("div", Jo, [
|
|
2142
|
+
e("div", Go, [
|
|
2143
|
+
e("table", Wo, [
|
|
2144
|
+
e("tbody", Qo, [
|
|
2128
2145
|
e("tr", null, [
|
|
2129
|
-
e("th",
|
|
2130
|
-
g(
|
|
2131
|
-
selectedDate:
|
|
2132
|
-
onDateSelected:
|
|
2146
|
+
e("th", Ko, [
|
|
2147
|
+
g(Co, {
|
|
2148
|
+
selectedDate: l.value,
|
|
2149
|
+
onDateSelected: P[0] || (P[0] = (T) => f(T))
|
|
2133
2150
|
}, null, 8, ["selectedDate"])
|
|
2134
2151
|
]),
|
|
2135
|
-
(s(!0), n(k, null, $(m.value, (
|
|
2152
|
+
(s(!0), n(k, null, $(m.value, (T, F) => (s(), n("th", {
|
|
2136
2153
|
scope: "col",
|
|
2137
|
-
key:
|
|
2154
|
+
key: F,
|
|
2138
2155
|
class: "text-sm font-semibold text-gray-900 p-0"
|
|
2139
2156
|
}, [
|
|
2140
|
-
g(
|
|
2157
|
+
g(Ro, {
|
|
2141
2158
|
class: "border-l border-gray-200 px-6 py-3",
|
|
2142
|
-
day:
|
|
2159
|
+
day: T
|
|
2143
2160
|
}, null, 8, ["day"])
|
|
2144
2161
|
]))), 128))
|
|
2145
2162
|
]),
|
|
2146
2163
|
e("tr", null, [
|
|
2147
|
-
e("th",
|
|
2164
|
+
e("th", Xo, [
|
|
2148
2165
|
e("span", null, u(x.literals.category) + " " + u(x.category.name), 1),
|
|
2149
2166
|
g(G, {
|
|
2150
2167
|
loading: x.loading,
|
|
2151
2168
|
class: "ml-4",
|
|
2152
2169
|
size: "small",
|
|
2153
|
-
onClick:
|
|
2170
|
+
onClick: B
|
|
2154
2171
|
}, {
|
|
2155
2172
|
default: v(() => [
|
|
2156
2173
|
D(u(x.literals.changeInBulk), 1)
|
|
@@ -2159,111 +2176,111 @@ const le = /* @__PURE__ */ te(Il, [["render", ql]]), Hl = {
|
|
|
2159
2176
|
}, 8, ["loading"])
|
|
2160
2177
|
])
|
|
2161
2178
|
]),
|
|
2162
|
-
x.type === "discounts" ? (s(), n("tr",
|
|
2163
|
-
e("td",
|
|
2164
|
-
(s(!0), n(k, null, $(x.category.selectionPrices, (
|
|
2165
|
-
key:
|
|
2179
|
+
x.type === "discounts" ? (s(), n("tr", el, [
|
|
2180
|
+
e("td", tl, u(x.literals.pricesDiscount), 1),
|
|
2181
|
+
(s(!0), n(k, null, $(x.category.selectionPrices, (T, F) => (s(), n("td", {
|
|
2182
|
+
key: F,
|
|
2166
2183
|
class: "p-0"
|
|
2167
2184
|
}, [
|
|
2168
|
-
g(
|
|
2169
|
-
onClick: (K) =>
|
|
2185
|
+
g(oe, {
|
|
2186
|
+
onClick: (K) => A(T),
|
|
2170
2187
|
class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer",
|
|
2171
|
-
price:
|
|
2188
|
+
price: T,
|
|
2172
2189
|
currency: x.currency.symbol,
|
|
2173
2190
|
isBasePrice: !0
|
|
2174
2191
|
}, null, 8, ["onClick", "price", "currency"])
|
|
2175
2192
|
]))), 128))
|
|
2176
2193
|
])) : b("", !0),
|
|
2177
|
-
x.type === "prices" ? (s(), n("tr",
|
|
2178
|
-
e("td",
|
|
2179
|
-
(s(!0), n(k, null, $(x.category.selectionPrices, (
|
|
2180
|
-
key:
|
|
2194
|
+
x.type === "prices" ? (s(), n("tr", sl, [
|
|
2195
|
+
e("td", ol, u(x.literals.pricesSelection), 1),
|
|
2196
|
+
(s(!0), n(k, null, $(x.category.selectionPrices, (T, F) => (s(), n("td", {
|
|
2197
|
+
key: F,
|
|
2181
2198
|
class: "p-0"
|
|
2182
2199
|
}, [
|
|
2183
|
-
g(
|
|
2184
|
-
onClick: (K) =>
|
|
2200
|
+
g(oe, {
|
|
2201
|
+
onClick: (K) => A(T),
|
|
2185
2202
|
class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer",
|
|
2186
|
-
price:
|
|
2203
|
+
price: T,
|
|
2187
2204
|
currency: x.currency.symbol,
|
|
2188
2205
|
isBasePrice: !0
|
|
2189
2206
|
}, null, 8, ["onClick", "price", "currency"])
|
|
2190
2207
|
]))), 128))
|
|
2191
2208
|
])) : b("", !0),
|
|
2192
|
-
x.type === "prices" ? (s(), n("tr",
|
|
2193
|
-
e("td",
|
|
2194
|
-
(s(!0), n(k, null, $(x.category.upgradePrices, (
|
|
2195
|
-
key:
|
|
2209
|
+
x.type === "prices" ? (s(), n("tr", ll, [
|
|
2210
|
+
e("td", rl, u(x.literals.pricesUpgrade), 1),
|
|
2211
|
+
(s(!0), n(k, null, $(x.category.upgradePrices, (T, F) => (s(), n("td", {
|
|
2212
|
+
key: F,
|
|
2196
2213
|
class: "p-0"
|
|
2197
2214
|
}, [
|
|
2198
|
-
g(
|
|
2199
|
-
onClick: (K) =>
|
|
2215
|
+
g(oe, {
|
|
2216
|
+
onClick: (K) => V(T),
|
|
2200
2217
|
class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer bg-gray-100",
|
|
2201
|
-
price:
|
|
2218
|
+
price: T,
|
|
2202
2219
|
currency: x.currency.symbol,
|
|
2203
2220
|
isBasePrice: !0
|
|
2204
2221
|
}, null, 8, ["onClick", "price", "currency"])
|
|
2205
2222
|
]))), 128))
|
|
2206
2223
|
])) : b("", !0),
|
|
2207
2224
|
e("tr", null, [
|
|
2208
|
-
e("th",
|
|
2209
|
-
((N = t.value) == null ? void 0 : N.length) > 0 && ((se = x.actions) == null ? void 0 : se.length) > 0 ? (s(), n("div",
|
|
2210
|
-
(s(!0), n(k, null, $(x.actions, (
|
|
2211
|
-
onClick: (K) =>
|
|
2212
|
-
key:
|
|
2225
|
+
e("th", nl, [
|
|
2226
|
+
((N = t.value) == null ? void 0 : N.length) > 0 && ((se = x.actions) == null ? void 0 : se.length) > 0 ? (s(), n("div", al, [
|
|
2227
|
+
(s(!0), n(k, null, $(x.actions, (T, F) => (s(), n("button", {
|
|
2228
|
+
onClick: (K) => z({ action: T.id, items: t.value }),
|
|
2229
|
+
key: F,
|
|
2213
2230
|
type: "button",
|
|
2214
2231
|
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"
|
|
2215
|
-
}, u(
|
|
2232
|
+
}, u(T.name), 9, il))), 128))
|
|
2216
2233
|
])) : b("", !0),
|
|
2217
2234
|
e("span", null, u(x.literals.pricesSelection), 1)
|
|
2218
2235
|
])
|
|
2219
2236
|
]),
|
|
2220
2237
|
e("tr", null, [
|
|
2221
|
-
e("th",
|
|
2238
|
+
e("th", dl, [
|
|
2222
2239
|
e("input", {
|
|
2223
2240
|
type: "checkbox",
|
|
2224
2241
|
class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600",
|
|
2225
2242
|
checked: d.value || t.value.length === x.rooms.length,
|
|
2226
2243
|
indeterminate: d.value,
|
|
2227
2244
|
onChange: w
|
|
2228
|
-
}, null, 40,
|
|
2229
|
-
e("span",
|
|
2245
|
+
}, null, 40, ul),
|
|
2246
|
+
e("span", cl, u(x.literals.room), 1)
|
|
2230
2247
|
]),
|
|
2231
|
-
e("th",
|
|
2232
|
-
e("th",
|
|
2233
|
-
|
|
2248
|
+
e("th", gl, u(x.literals.building), 1),
|
|
2249
|
+
e("th", pl, u(x.literals.floor), 1),
|
|
2250
|
+
P[2] || (P[2] = e("th", {
|
|
2234
2251
|
colspan: "14",
|
|
2235
2252
|
scope: "colgroup",
|
|
2236
2253
|
class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900"
|
|
2237
2254
|
}, null, -1))
|
|
2238
2255
|
]),
|
|
2239
|
-
(s(!0), n(k, null, $(x.rooms, (
|
|
2240
|
-
key:
|
|
2256
|
+
(s(!0), n(k, null, $(x.rooms, (T) => (s(), n("tr", {
|
|
2257
|
+
key: T.name,
|
|
2241
2258
|
class: h([{ "even:bg-gray-100": x.type === "prices", "odd:bg-gray-100": x.type === "discounts" }])
|
|
2242
2259
|
}, [
|
|
2243
|
-
e("td",
|
|
2244
|
-
t.value.length > 0 ? (s(), n("div",
|
|
2260
|
+
e("td", ml, [
|
|
2261
|
+
t.value.length > 0 ? (s(), n("div", fl)) : b("", !0),
|
|
2245
2262
|
C(e("input", {
|
|
2246
2263
|
type: "checkbox",
|
|
2247
2264
|
class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600",
|
|
2248
|
-
value:
|
|
2249
|
-
"onUpdate:modelValue":
|
|
2250
|
-
}, null, 8,
|
|
2251
|
-
[
|
|
2265
|
+
value: T.name,
|
|
2266
|
+
"onUpdate:modelValue": P[1] || (P[1] = (F) => t.value = F)
|
|
2267
|
+
}, null, 8, yl), [
|
|
2268
|
+
[Be, t.value]
|
|
2252
2269
|
]),
|
|
2253
|
-
e("span",
|
|
2270
|
+
e("span", hl, u(T.name), 1)
|
|
2254
2271
|
]),
|
|
2255
|
-
e("td",
|
|
2256
|
-
e("td",
|
|
2257
|
-
(s(!0), n(k, null, $(
|
|
2272
|
+
e("td", vl, u(T.building), 1),
|
|
2273
|
+
e("td", bl, u(T.floor), 1),
|
|
2274
|
+
(s(!0), n(k, null, $(T.selectionPrices, (F, K) => (s(), n("td", {
|
|
2258
2275
|
class: "p-0",
|
|
2259
2276
|
key: K
|
|
2260
2277
|
}, [
|
|
2261
|
-
g(
|
|
2262
|
-
onClick: (
|
|
2278
|
+
g(oe, {
|
|
2279
|
+
onClick: (Ji) => H(F, T.id, T.name),
|
|
2263
2280
|
class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 cursor-pointer",
|
|
2264
|
-
price:
|
|
2281
|
+
price: F,
|
|
2265
2282
|
currency: x.currency.symbol,
|
|
2266
|
-
basePrice: y(
|
|
2283
|
+
basePrice: y(F)
|
|
2267
2284
|
}, null, 8, ["onClick", "price", "currency", "basePrice"])
|
|
2268
2285
|
]))), 128))
|
|
2269
2286
|
], 2))), 128))
|
|
@@ -2275,39 +2292,10 @@ const le = /* @__PURE__ */ te(Il, [["render", ql]]), Hl = {
|
|
|
2275
2292
|
]));
|
|
2276
2293
|
};
|
|
2277
2294
|
}
|
|
2278
|
-
}),
|
|
2279
|
-
__name: "RangeSelector",
|
|
2280
|
-
props: { range: { type: String } },
|
|
2281
|
-
emits: ["rangeSelected"],
|
|
2282
|
-
setup(p, { emit: i }) {
|
|
2283
|
-
const l = i, a = p;
|
|
2284
|
-
let r = P(() => a.range);
|
|
2285
|
-
const o = (t) => {
|
|
2286
|
-
r = t, l("rangeSelected", t);
|
|
2287
|
-
};
|
|
2288
|
-
return (t, m) => (s(), n("ul", wo, [
|
|
2289
|
-
e("li", {
|
|
2290
|
-
class: h({ selected: c(r) === "24h" }),
|
|
2291
|
-
onClick: m[0] || (m[0] = (d) => o("24h"))
|
|
2292
|
-
}, " 24H ", 2),
|
|
2293
|
-
e("li", {
|
|
2294
|
-
class: h({ selected: c(r) === "7d" }),
|
|
2295
|
-
onClick: m[1] || (m[1] = (d) => o("7d"))
|
|
2296
|
-
}, "7D", 2),
|
|
2297
|
-
e("li", {
|
|
2298
|
-
class: h({ selected: c(r) === "1m" }),
|
|
2299
|
-
onClick: m[2] || (m[2] = (d) => o("1m"))
|
|
2300
|
-
}, "1M", 2),
|
|
2301
|
-
e("li", {
|
|
2302
|
-
class: h({ selected: c(r) === "3m" }),
|
|
2303
|
-
onClick: m[3] || (m[3] = (d) => o("3m"))
|
|
2304
|
-
}, "3M", 2)
|
|
2305
|
-
]));
|
|
2306
|
-
}
|
|
2307
|
-
}), xo = { class: "chart-header flex flex-row items-center w-full justify-between" }, ko = { class: "text-sm font-medium text-gray-500 truncate mr-8" }, _o = {
|
|
2295
|
+
}), xl = { class: "chart-header flex flex-row items-center w-full justify-between" }, kl = { class: "text-sm font-medium text-gray-500 truncate mr-8" }, _l = {
|
|
2308
2296
|
key: 0,
|
|
2309
2297
|
class: "flex items-center gap-x-2 grow"
|
|
2310
|
-
}, $
|
|
2298
|
+
}, $l = { class: "self-center ml-2" }, Cl = { class: "self-center ml-2" }, Bl = { class: "self-center ml-2" }, Ml = { class: "hidden sm:flex items-center" }, Sl = { class: "w-1/2 min-w-0 flex-1" }, jl = { class: "min-w-0 flex-1" }, Dl = { class: "chart-content relative" }, Tl = { class: "h-full w-full flex items-center justify-center flex-col" }, zl = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, Ll = /* @__PURE__ */ M({
|
|
2311
2299
|
__name: "uiChart",
|
|
2312
2300
|
props: {
|
|
2313
2301
|
labels: {},
|
|
@@ -2326,10 +2314,10 @@ const le = /* @__PURE__ */ te(Il, [["render", ql]]), Hl = {
|
|
|
2326
2314
|
height: { default: 320 },
|
|
2327
2315
|
annotations: {}
|
|
2328
2316
|
},
|
|
2329
|
-
emits: ["selectedRange", "chartUpdated", "dataPointSelection"],
|
|
2317
|
+
emits: ["selectedRange", "chartUpdated", "dataPointSelection", "maximizeChart"],
|
|
2330
2318
|
setup(p, { emit: i }) {
|
|
2331
|
-
const
|
|
2332
|
-
let
|
|
2319
|
+
const o = i, a = ue({ from: "", to: "" }), r = p;
|
|
2320
|
+
let t = {
|
|
2333
2321
|
chart: {
|
|
2334
2322
|
toolbar: {
|
|
2335
2323
|
show: !1
|
|
@@ -2339,11 +2327,11 @@ const le = /* @__PURE__ */ te(Il, [["render", ql]]), Hl = {
|
|
|
2339
2327
|
}
|
|
2340
2328
|
},
|
|
2341
2329
|
colors: function() {
|
|
2342
|
-
return
|
|
2343
|
-
function({ value:
|
|
2344
|
-
if (
|
|
2345
|
-
if (
|
|
2346
|
-
if (
|
|
2330
|
+
return r.isNps ? [
|
|
2331
|
+
function({ value: B, seriesIndex: A, dataPointIndex: V, w: z }) {
|
|
2332
|
+
if (V <= 5) return "#F87171";
|
|
2333
|
+
if (V > 5 && V <= 7) return "#eab308";
|
|
2334
|
+
if (V >= 8) return "#84cc16";
|
|
2347
2335
|
}
|
|
2348
2336
|
] : [
|
|
2349
2337
|
"#715aff",
|
|
@@ -2369,10 +2357,10 @@ const le = /* @__PURE__ */ te(Il, [["render", ql]]), Hl = {
|
|
|
2369
2357
|
}
|
|
2370
2358
|
}
|
|
2371
2359
|
};
|
|
2372
|
-
|
|
2360
|
+
r.annotations && (t.annotations = {
|
|
2373
2361
|
yaxis: [
|
|
2374
2362
|
{
|
|
2375
|
-
y:
|
|
2363
|
+
y: r.annotations.high,
|
|
2376
2364
|
borderColor: "#4f46e5",
|
|
2377
2365
|
label: {
|
|
2378
2366
|
borderColor: "#4f46e5",
|
|
@@ -2380,23 +2368,21 @@ const le = /* @__PURE__ */ te(Il, [["render", ql]]), Hl = {
|
|
|
2380
2368
|
color: "#fff",
|
|
2381
2369
|
background: "#4f46e5"
|
|
2382
2370
|
},
|
|
2383
|
-
text:
|
|
2371
|
+
text: r.annotations.text
|
|
2384
2372
|
}
|
|
2385
2373
|
}
|
|
2386
2374
|
]
|
|
2387
|
-
}),
|
|
2388
|
-
const
|
|
2389
|
-
|
|
2390
|
-
}, d = P(() => a.series), f = P(() => t()), y = () => l("chartUpdated"), w = (M, Y, I) => {
|
|
2391
|
-
l("dataPointSelection", { id: a.id, chartContext: Y, config: I, event: M });
|
|
2375
|
+
}), r.type === "area" && (t.tooltip = { intersect: !0, shared: !1 });
|
|
2376
|
+
const m = () => (t.chart.stacked = r.stacked, { ...t, ...r.options, plotOptions: { bar: { horizontal: r.horizontal } } }), d = O(() => r.series), f = O(() => m()), y = () => o("chartUpdated"), w = (B, A, V) => {
|
|
2377
|
+
o("dataPointSelection", { id: r.id, chartContext: A, config: V, event: B });
|
|
2392
2378
|
};
|
|
2393
|
-
return (
|
|
2379
|
+
return (B, A) => (s(), n(k, null, [
|
|
2394
2380
|
C(e("div", {
|
|
2395
|
-
class: h(["h-[" +
|
|
2381
|
+
class: h(["h-[" + B.height + "px]", "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"])
|
|
2396
2382
|
}, [
|
|
2397
|
-
e("div",
|
|
2398
|
-
e("div",
|
|
2399
|
-
|
|
2383
|
+
e("div", xl, [
|
|
2384
|
+
e("div", kl, u(B.title), 1),
|
|
2385
|
+
B.isNps && B.npsLiterals ? (s(), n("div", _l, [
|
|
2400
2386
|
g(R, {
|
|
2401
2387
|
size: "small",
|
|
2402
2388
|
color: "red",
|
|
@@ -2404,12 +2390,11 @@ const le = /* @__PURE__ */ te(Il, [["render", ql]]), Hl = {
|
|
|
2404
2390
|
}, {
|
|
2405
2391
|
default: v(() => [
|
|
2406
2392
|
g(j, {
|
|
2407
|
-
icon: c(
|
|
2393
|
+
icon: c(yt),
|
|
2408
2394
|
loading: !1,
|
|
2409
2395
|
color: "red"
|
|
2410
2396
|
}, null, 8, ["icon"]),
|
|
2411
|
-
|
|
2412
|
-
e("span", $o, u(M.npsLiterals.unhappy), 1)
|
|
2397
|
+
e("span", $l, u(B.npsLiterals.unhappy), 1)
|
|
2413
2398
|
]),
|
|
2414
2399
|
_: 1
|
|
2415
2400
|
}),
|
|
@@ -2420,12 +2405,11 @@ const le = /* @__PURE__ */ te(Il, [["render", ql]]), Hl = {
|
|
|
2420
2405
|
}, {
|
|
2421
2406
|
default: v(() => [
|
|
2422
2407
|
g(j, {
|
|
2423
|
-
icon: c(
|
|
2408
|
+
icon: c(ft),
|
|
2424
2409
|
loading: !1,
|
|
2425
2410
|
color: "yellow"
|
|
2426
2411
|
}, null, 8, ["icon"]),
|
|
2427
|
-
|
|
2428
|
-
e("span", Co, u(M.npsLiterals.neutral), 1)
|
|
2412
|
+
e("span", Cl, u(B.npsLiterals.neutral), 1)
|
|
2429
2413
|
]),
|
|
2430
2414
|
_: 1
|
|
2431
2415
|
}),
|
|
@@ -2436,50 +2420,77 @@ const le = /* @__PURE__ */ te(Il, [["render", ql]]), Hl = {
|
|
|
2436
2420
|
}, {
|
|
2437
2421
|
default: v(() => [
|
|
2438
2422
|
g(j, {
|
|
2439
|
-
icon: c(
|
|
2423
|
+
icon: c(ht),
|
|
2440
2424
|
loading: !1,
|
|
2441
2425
|
color: "green"
|
|
2442
2426
|
}, null, 8, ["icon"]),
|
|
2443
|
-
|
|
2444
|
-
e("span", Bo, u(M.npsLiterals.happy), 1)
|
|
2427
|
+
e("span", Bl, u(B.npsLiterals.happy), 1)
|
|
2445
2428
|
]),
|
|
2446
2429
|
_: 1
|
|
2447
2430
|
})
|
|
2448
2431
|
])) : b("", !0),
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2432
|
+
e("div", Ml, [
|
|
2433
|
+
e("div", Sl, [
|
|
2434
|
+
C(e("input", {
|
|
2435
|
+
type: "datetime-local",
|
|
2436
|
+
"onUpdate:modelValue": A[0] || (A[0] = (V) => a.from = V),
|
|
2437
|
+
name: "from",
|
|
2438
|
+
id: "from",
|
|
2439
|
+
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"
|
|
2440
|
+
}, null, 512), [
|
|
2441
|
+
[ie, a.from]
|
|
2442
|
+
])
|
|
2443
|
+
]),
|
|
2444
|
+
e("div", jl, [
|
|
2445
|
+
C(e("input", {
|
|
2446
|
+
type: "datetime-local",
|
|
2447
|
+
"onUpdate:modelValue": A[1] || (A[1] = (V) => a.to = V),
|
|
2448
|
+
onInput: A[2] || (A[2] = (V) => B.$emit("selectedRange", { range: a, chartId: B.id })),
|
|
2449
|
+
name: "to",
|
|
2450
|
+
id: "to",
|
|
2451
|
+
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"
|
|
2452
|
+
}, null, 544), [
|
|
2453
|
+
[ie, a.to]
|
|
2454
|
+
])
|
|
2455
|
+
]),
|
|
2456
|
+
g(j, {
|
|
2457
|
+
class: "ml-4 cursor-pointer",
|
|
2458
|
+
size: "big",
|
|
2459
|
+
loading: B.loading,
|
|
2460
|
+
icon: c(ct),
|
|
2461
|
+
onClick: A[3] || (A[3] = (V) => B.$emit("maximizeChart", B.id))
|
|
2462
|
+
}, null, 8, ["loading", "icon"])
|
|
2463
|
+
])
|
|
2453
2464
|
]),
|
|
2454
|
-
C(e("div",
|
|
2455
|
-
g(c(
|
|
2456
|
-
type:
|
|
2465
|
+
C(e("div", Dl, [
|
|
2466
|
+
g(c(we), {
|
|
2467
|
+
type: B.type,
|
|
2457
2468
|
series: d.value,
|
|
2458
2469
|
width: "100%",
|
|
2459
|
-
height:
|
|
2470
|
+
height: B.height,
|
|
2460
2471
|
options: f.value,
|
|
2461
2472
|
onUpdated: y,
|
|
2462
2473
|
onMounted: y,
|
|
2463
2474
|
onDataPointSelection: w
|
|
2464
2475
|
}, null, 8, ["type", "series", "height", "options"])
|
|
2465
2476
|
], 512), [
|
|
2466
|
-
[S, !
|
|
2477
|
+
[S, !B.empty]
|
|
2467
2478
|
]),
|
|
2468
|
-
C(e("div",
|
|
2479
|
+
C(e("div", Tl, [
|
|
2469
2480
|
g(j, {
|
|
2470
2481
|
icon: c(q),
|
|
2471
2482
|
color: "gray",
|
|
2472
2483
|
loading: !1,
|
|
2473
2484
|
size: "huge"
|
|
2474
2485
|
}, null, 8, ["icon"]),
|
|
2475
|
-
|
|
2486
|
+
A[4] || (A[4] = e("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1))
|
|
2476
2487
|
], 512), [
|
|
2477
|
-
[S,
|
|
2488
|
+
[S, B.empty]
|
|
2478
2489
|
])
|
|
2479
2490
|
], 2), [
|
|
2480
|
-
[S, !
|
|
2491
|
+
[S, !B.loading]
|
|
2481
2492
|
]),
|
|
2482
|
-
C(e("div",
|
|
2493
|
+
C(e("div", zl, A[5] || (A[5] = [
|
|
2483
2494
|
e("div", {
|
|
2484
2495
|
role: "status",
|
|
2485
2496
|
class: "w-full animate-pulse h-full flex flex-col"
|
|
@@ -2506,15 +2517,15 @@ const le = /* @__PURE__ */ te(Il, [["render", ql]]), Hl = {
|
|
|
2506
2517
|
])
|
|
2507
2518
|
], -1)
|
|
2508
2519
|
]), 512), [
|
|
2509
|
-
[S,
|
|
2520
|
+
[S, B.loading]
|
|
2510
2521
|
])
|
|
2511
2522
|
], 64));
|
|
2512
2523
|
}
|
|
2513
|
-
}),
|
|
2524
|
+
}), Nl = {
|
|
2514
2525
|
name: "uiFooter"
|
|
2515
|
-
},
|
|
2516
|
-
function
|
|
2517
|
-
return s(), n("footer",
|
|
2526
|
+
}, Al = { class: "bg-white" };
|
|
2527
|
+
function Yl(p, i, o, a, r, l) {
|
|
2528
|
+
return s(), n("footer", Al, i[0] || (i[0] = [
|
|
2518
2529
|
e("div", { class: "mx-auto py-6 px-4 sm:px-6 md:flex md:items-center md:justify-between lg:px-8" }, [
|
|
2519
2530
|
e("div", { class: "mt-8 md:mt-0 md:order-1" }, [
|
|
2520
2531
|
e("p", { class: "text-center text-base text-gray-400" }, "© Made by Hotelinking.")
|
|
@@ -2522,7 +2533,7 @@ function Lo(p, i, l, a, r, o) {
|
|
|
2522
2533
|
], -1)
|
|
2523
2534
|
]));
|
|
2524
2535
|
}
|
|
2525
|
-
const
|
|
2536
|
+
const Pl = /* @__PURE__ */ te(Nl, [["render", Yl]]), Ol = /* @__PURE__ */ M({
|
|
2526
2537
|
__name: "uiLoadingScreen",
|
|
2527
2538
|
props: {
|
|
2528
2539
|
title: {},
|
|
@@ -2530,13 +2541,13 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
2530
2541
|
fixed: { type: Boolean, default: !0 }
|
|
2531
2542
|
},
|
|
2532
2543
|
setup(p) {
|
|
2533
|
-
return (i,
|
|
2544
|
+
return (i, o) => (s(), n("div", {
|
|
2534
2545
|
class: h([
|
|
2535
2546
|
{ fixed: i.fixed },
|
|
2536
2547
|
"load-screen h-full w-full top-0 left-0 z-[100] flex flex-col items-center justify-center bg-gray-50"
|
|
2537
2548
|
])
|
|
2538
2549
|
}, [
|
|
2539
|
-
|
|
2550
|
+
o[0] || (o[0] = e("div", { class: "spinner h-12 w-12 mb-6" }, [
|
|
2540
2551
|
e("img", {
|
|
2541
2552
|
src: "https://images.hotelinking.com/ui/loader.gif",
|
|
2542
2553
|
alt: "loading animation"
|
|
@@ -2550,22 +2561,22 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
2550
2561
|
])
|
|
2551
2562
|
], 2));
|
|
2552
2563
|
}
|
|
2553
|
-
}),
|
|
2564
|
+
}), Vl = {
|
|
2554
2565
|
key: 0,
|
|
2555
2566
|
class: "py-6 flex items-center justify-between"
|
|
2556
|
-
},
|
|
2567
|
+
}, Fl = { class: "flex-1 flex justify-between sm:hidden" }, Il = {
|
|
2557
2568
|
href: "#",
|
|
2558
2569
|
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"
|
|
2559
|
-
},
|
|
2570
|
+
}, Rl = {
|
|
2560
2571
|
href: "#",
|
|
2561
2572
|
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"
|
|
2562
|
-
},
|
|
2573
|
+
}, ql = { class: "hidden sm:flex-1 sm:flex sm:items-center sm:justify-between" }, Hl = { class: "text-sm text-gray-700" }, Ul = { class: "font-bold" }, El = { class: "font-bold" }, Zl = {
|
|
2563
2574
|
class: "relative z-0 inline-flex rounded-md shadow-sm -space-x-px",
|
|
2564
2575
|
"aria-label": "Pagination"
|
|
2565
|
-
},
|
|
2576
|
+
}, Jl = { class: "sr-only" }, Gl = ["onClick"], Wl = { class: "sr-only" }, Ql = {
|
|
2566
2577
|
key: 1,
|
|
2567
2578
|
class: "py-6 flex flex-row justify-between items-center animate-pulse"
|
|
2568
|
-
},
|
|
2579
|
+
}, Kl = /* @__PURE__ */ M({
|
|
2569
2580
|
__name: "uiPagination",
|
|
2570
2581
|
props: {
|
|
2571
2582
|
current: {},
|
|
@@ -2574,45 +2585,45 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
2574
2585
|
},
|
|
2575
2586
|
emits: ["changePage"],
|
|
2576
2587
|
setup(p, { emit: i }) {
|
|
2577
|
-
const
|
|
2588
|
+
const o = i, a = p, r = Y(3), l = O(
|
|
2578
2589
|
() => Math.max(1, Number(a.current) - Number(r.value))
|
|
2579
|
-
), t =
|
|
2590
|
+
), t = O(
|
|
2580
2591
|
() => Math.min(Number(a.current) + Number(r.value), Number(a.total))
|
|
2581
|
-
), m =
|
|
2592
|
+
), m = O(() => {
|
|
2582
2593
|
let d = [];
|
|
2583
|
-
for (let f = Number(
|
|
2594
|
+
for (let f = Number(l.value); f <= Number(t.value); f++)
|
|
2584
2595
|
d.push(f);
|
|
2585
2596
|
return d;
|
|
2586
2597
|
});
|
|
2587
|
-
return (d, f) => d.loading ? (s(), n("div",
|
|
2598
|
+
return (d, f) => d.loading ? (s(), n("div", Ql, f[2] || (f[2] = [
|
|
2588
2599
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5" }, null, -1),
|
|
2589
2600
|
e("div", { class: "h-10 w-32 bg-gray-200 rounded dark:bg-gray-300" }, null, -1)
|
|
2590
|
-
]))) : (s(), n("div",
|
|
2591
|
-
e("div",
|
|
2592
|
-
e("a",
|
|
2593
|
-
|
|
2601
|
+
]))) : (s(), n("div", Vl, [
|
|
2602
|
+
e("div", Fl, [
|
|
2603
|
+
e("a", Il, [
|
|
2604
|
+
I(d.$slots, "previous")
|
|
2594
2605
|
]),
|
|
2595
|
-
e("a",
|
|
2596
|
-
|
|
2606
|
+
e("a", Rl, [
|
|
2607
|
+
I(d.$slots, "next")
|
|
2597
2608
|
])
|
|
2598
2609
|
]),
|
|
2599
|
-
e("div",
|
|
2610
|
+
e("div", ql, [
|
|
2600
2611
|
e("div", null, [
|
|
2601
|
-
e("p",
|
|
2602
|
-
|
|
2603
|
-
e("span",
|
|
2604
|
-
|
|
2605
|
-
e("span",
|
|
2612
|
+
e("p", Hl, [
|
|
2613
|
+
I(d.$slots, "showing"),
|
|
2614
|
+
e("span", Ul, u(d.current + " "), 1),
|
|
2615
|
+
I(d.$slots, "of"),
|
|
2616
|
+
e("span", El, u(d.total), 1)
|
|
2606
2617
|
])
|
|
2607
2618
|
]),
|
|
2608
2619
|
e("div", null, [
|
|
2609
|
-
e("nav",
|
|
2620
|
+
e("nav", Zl, [
|
|
2610
2621
|
C(e("button", {
|
|
2611
|
-
onClick: f[0] || (f[0] = (y) =>
|
|
2622
|
+
onClick: f[0] || (f[0] = (y) => o("changePage", d.current - 1)),
|
|
2612
2623
|
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"
|
|
2613
2624
|
}, [
|
|
2614
|
-
e("span",
|
|
2615
|
-
|
|
2625
|
+
e("span", Jl, [
|
|
2626
|
+
I(d.$slots, "previous")
|
|
2616
2627
|
]),
|
|
2617
2628
|
g(c(Pe), {
|
|
2618
2629
|
class: "h-5 w-5",
|
|
@@ -2622,19 +2633,19 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
2622
2633
|
[S, d.current !== 1]
|
|
2623
2634
|
]),
|
|
2624
2635
|
(s(!0), n(k, null, $(m.value, (y) => (s(), n("button", {
|
|
2625
|
-
onClick: (w) =>
|
|
2636
|
+
onClick: (w) => o("changePage", y),
|
|
2626
2637
|
key: y,
|
|
2627
2638
|
"aria-current": "page",
|
|
2628
2639
|
class: h([[
|
|
2629
2640
|
y === d.current ? "z-10 bg-indigo-50 border-indigo-500 text-indigo-600" : "bg-white border-gray-300 text-gray-500 hover:bg-gray-50"
|
|
2630
2641
|
], "relative inline-flex items-center px-4 py-2 border text-sm font-medium"])
|
|
2631
|
-
}, u(y), 11,
|
|
2642
|
+
}, u(y), 11, Gl))), 128)),
|
|
2632
2643
|
C(e("button", {
|
|
2633
|
-
onClick: f[1] || (f[1] = (y) =>
|
|
2644
|
+
onClick: f[1] || (f[1] = (y) => o("changePage", d.current + 1)),
|
|
2634
2645
|
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"
|
|
2635
2646
|
}, [
|
|
2636
|
-
e("span",
|
|
2637
|
-
|
|
2647
|
+
e("span", Wl, [
|
|
2648
|
+
I(d.$slots, "next")
|
|
2638
2649
|
]),
|
|
2639
2650
|
g(c(X), {
|
|
2640
2651
|
class: "h-5 w-5",
|
|
@@ -2648,25 +2659,25 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
2648
2659
|
])
|
|
2649
2660
|
]));
|
|
2650
2661
|
}
|
|
2651
|
-
}),
|
|
2662
|
+
}), Xl = { class: "hidden md:flex md:flex-col sticky md:inset-y-0" }, er = { class: "flex flex-col flex-grow overflow-y-auto" }, tr = { class: "grow flex flex-col" }, sr = {
|
|
2652
2663
|
class: "flex-1 space-y-1",
|
|
2653
2664
|
"aria-label": "Sidebar"
|
|
2654
|
-
},
|
|
2665
|
+
}, or = { key: 0 }, lr = ["onClick"], rr = {
|
|
2655
2666
|
key: 1,
|
|
2656
2667
|
class: "text-left"
|
|
2657
|
-
},
|
|
2668
|
+
}, nr = {
|
|
2658
2669
|
key: 1,
|
|
2659
2670
|
class: "flex-1 text-left"
|
|
2660
|
-
},
|
|
2671
|
+
}, ar = {
|
|
2661
2672
|
key: 2,
|
|
2662
2673
|
class: "flex-1"
|
|
2663
|
-
},
|
|
2674
|
+
}, ir = {
|
|
2664
2675
|
key: 0,
|
|
2665
2676
|
class: "align-left"
|
|
2666
|
-
},
|
|
2677
|
+
}, dr = {
|
|
2667
2678
|
key: 1,
|
|
2668
2679
|
class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2"
|
|
2669
|
-
},
|
|
2680
|
+
}, ur = { class: "h-12 flex flex-row items-center" }, cr = /* @__PURE__ */ M({
|
|
2670
2681
|
__name: "uiSidebar",
|
|
2671
2682
|
props: {
|
|
2672
2683
|
navigation: {},
|
|
@@ -2677,55 +2688,55 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
2677
2688
|
},
|
|
2678
2689
|
emits: ["sideBarClick"],
|
|
2679
2690
|
setup(p, { emit: i }) {
|
|
2680
|
-
const
|
|
2681
|
-
return (a, r) => (s(), n("div",
|
|
2682
|
-
e("div",
|
|
2683
|
-
e("div",
|
|
2684
|
-
e("nav",
|
|
2685
|
-
a.loading ? (s(), n(k, { key: 1 }, $(5, (
|
|
2691
|
+
const o = i;
|
|
2692
|
+
return (a, r) => (s(), n("div", Xl, [
|
|
2693
|
+
e("div", er, [
|
|
2694
|
+
e("div", tr, [
|
|
2695
|
+
e("nav", sr, [
|
|
2696
|
+
a.loading ? (s(), n(k, { key: 1 }, $(5, (l) => e("div", ur, r[1] || (r[1] = [
|
|
2686
2697
|
e("div", { class: "w-6 h-6 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 mr-4" }, null, -1),
|
|
2687
2698
|
e("div", { class: "h-3 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 grow" }, null, -1)
|
|
2688
|
-
]))), 64)) : (s(!0), n(k, { key: 0 }, $(a.navigation, (
|
|
2689
|
-
key:
|
|
2699
|
+
]))), 64)) : (s(!0), n(k, { key: 0 }, $(a.navigation, (l) => (s(), n(k, {
|
|
2700
|
+
key: l.name
|
|
2690
2701
|
}, [
|
|
2691
|
-
|
|
2702
|
+
l.children ? (s(), _(c(ve), {
|
|
2692
2703
|
key: 1,
|
|
2693
2704
|
as: "div",
|
|
2694
2705
|
class: "space-y-1"
|
|
2695
2706
|
}, {
|
|
2696
2707
|
default: v(({ open: t }) => [
|
|
2697
2708
|
g(c(U), {
|
|
2698
|
-
class: h([
|
|
2709
|
+
class: h([l.current ? "bg-indigo-600 text-white" : "text-gray-600 hover:bg-gray-50 hover:text-gray-900", "group w-full flex items-center pl-2 pr-1 py-2 text-left text-sm font-medium rounded-md focus:outline-none"])
|
|
2699
2710
|
}, {
|
|
2700
2711
|
default: v(() => [
|
|
2701
|
-
|
|
2712
|
+
l.icon ? (s(), _(j, {
|
|
2702
2713
|
key: 0,
|
|
2703
2714
|
loading: a.loading,
|
|
2704
|
-
icon:
|
|
2715
|
+
icon: l.icon,
|
|
2705
2716
|
class: h([
|
|
2706
|
-
|
|
2717
|
+
l.current ? "text-white" : "text-gray-400 group-hover:text-gray-500",
|
|
2707
2718
|
"mr-3 flex-shrink-0 h-6 w-6"
|
|
2708
2719
|
]),
|
|
2709
2720
|
"aria-hidden": "true"
|
|
2710
2721
|
}, null, 8, ["loading", "icon", "class"])) : b("", !0),
|
|
2711
|
-
a.loading ? (s(), n("div",
|
|
2722
|
+
a.loading ? (s(), n("div", ar, r[0] || (r[0] = [
|
|
2712
2723
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1)
|
|
2713
|
-
]))) : (s(), n("span",
|
|
2724
|
+
]))) : (s(), n("span", nr, u(l.name), 1)),
|
|
2714
2725
|
g(c(X), {
|
|
2715
2726
|
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"])
|
|
2716
2727
|
}, null, 8, ["class"])
|
|
2717
2728
|
]),
|
|
2718
2729
|
_: 2
|
|
2719
2730
|
}, 1032, ["class"]),
|
|
2720
|
-
g(c(
|
|
2731
|
+
g(c(be), { class: "space-y-1" }, {
|
|
2721
2732
|
default: v(() => [
|
|
2722
|
-
(s(!0), n(k, null, $(
|
|
2723
|
-
onClick: (d) =>
|
|
2733
|
+
(s(!0), n(k, null, $(l.children, (m) => (s(), _(c(U), {
|
|
2734
|
+
onClick: (d) => o("sideBarClick", m.id),
|
|
2724
2735
|
key: m.name,
|
|
2725
2736
|
class: h([m.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"])
|
|
2726
2737
|
}, {
|
|
2727
2738
|
default: v(() => [
|
|
2728
|
-
a.loading ? (s(), n("div",
|
|
2739
|
+
a.loading ? (s(), n("div", dr)) : (s(), n("span", ir, u(m.name), 1))
|
|
2729
2740
|
]),
|
|
2730
2741
|
_: 2
|
|
2731
2742
|
}, 1032, ["onClick", "class"]))), 128))
|
|
@@ -2734,26 +2745,26 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
2734
2745
|
}, 1024)
|
|
2735
2746
|
]),
|
|
2736
2747
|
_: 2
|
|
2737
|
-
}, 1024)) : (s(), n("div",
|
|
2748
|
+
}, 1024)) : (s(), n("div", or, [
|
|
2738
2749
|
e("button", {
|
|
2739
|
-
onClick: (t) =>
|
|
2750
|
+
onClick: (t) => o("sideBarClick", l.id),
|
|
2740
2751
|
class: h([
|
|
2741
|
-
|
|
2752
|
+
l.current ? "bg-indigo-600 text-white" : "text-gray-600 hover:bg-gray-50 hover:text-gray-900",
|
|
2742
2753
|
"group w-full flex items-center pl-2 py-2 text-sm font-medium rounded-md"
|
|
2743
2754
|
])
|
|
2744
2755
|
}, [
|
|
2745
|
-
|
|
2756
|
+
l.icon ? (s(), _(j, {
|
|
2746
2757
|
key: 0,
|
|
2747
2758
|
loading: a.loading,
|
|
2748
|
-
icon:
|
|
2759
|
+
icon: l.icon,
|
|
2749
2760
|
class: h([
|
|
2750
|
-
|
|
2761
|
+
l.current ? "text-white" : "text-gray-400 group-hover:text-gray-500",
|
|
2751
2762
|
"mr-3 flex-shrink-0 h-6 w-6"
|
|
2752
2763
|
]),
|
|
2753
2764
|
"aria-hidden": "true"
|
|
2754
2765
|
}, null, 8, ["loading", "icon", "class"])) : b("", !0),
|
|
2755
|
-
a.loading ? b("", !0) : (s(), n("span",
|
|
2756
|
-
], 10,
|
|
2766
|
+
a.loading ? b("", !0) : (s(), n("span", rr, u(l.name), 1))
|
|
2767
|
+
], 10, lr)
|
|
2757
2768
|
]))
|
|
2758
2769
|
], 64))), 128))
|
|
2759
2770
|
])
|
|
@@ -2761,10 +2772,10 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
2761
2772
|
])
|
|
2762
2773
|
]));
|
|
2763
2774
|
}
|
|
2764
|
-
}),
|
|
2775
|
+
}), gr = { key: 0 }, pr = { class: "ml-16 text-sm font-medium text-gray-500 truncate" }, mr = { class: "ml-16 flex items-baseline pb-5" }, fr = { class: "text-2xl font-semibold text-gray-900" }, yr = {
|
|
2765
2776
|
key: 0,
|
|
2766
2777
|
class: "text-black ml-2 flex items-baseline text-sm font-semibold"
|
|
2767
|
-
},
|
|
2778
|
+
}, hr = { class: "absolute bottom-0 inset-x-0 bg-gray-50 px-4 py-4 sm:px-6" }, vr = { class: "text-sm" }, br = { key: 1 }, wr = { class: "relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full pb-6" }, xr = { class: "absolute bg-gray-200 rounded-md p-3 animate-pulse" }, Re = /* @__PURE__ */ M({
|
|
2768
2779
|
__name: "uiStats",
|
|
2769
2780
|
props: {
|
|
2770
2781
|
item: {},
|
|
@@ -2772,13 +2783,13 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
2772
2783
|
},
|
|
2773
2784
|
emits: ["statClick"],
|
|
2774
2785
|
setup(p, { emit: i }) {
|
|
2775
|
-
return (
|
|
2776
|
-
e("div",
|
|
2786
|
+
return (o, a) => o.loading ? (s(), n("div", br, [
|
|
2787
|
+
e("div", wr, [
|
|
2777
2788
|
e("dt", null, [
|
|
2778
|
-
e("div",
|
|
2789
|
+
e("div", xr, [
|
|
2779
2790
|
g(j, {
|
|
2780
|
-
loading:
|
|
2781
|
-
icon:
|
|
2791
|
+
loading: o.loading,
|
|
2792
|
+
icon: o.item.icon,
|
|
2782
2793
|
class: "h-6 w-6 text-white",
|
|
2783
2794
|
"aria-hidden": "true"
|
|
2784
2795
|
}, null, 8, ["loading", "icon"])
|
|
@@ -2791,82 +2802,82 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
2791
2802
|
], -1))
|
|
2792
2803
|
])
|
|
2793
2804
|
])
|
|
2794
|
-
])) : (s(), n("div",
|
|
2805
|
+
])) : (s(), n("div", gr, [
|
|
2795
2806
|
e("div", {
|
|
2796
|
-
class: h(["relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full", { "pb-12":
|
|
2807
|
+
class: h(["relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full", { "pb-12": o.item.showFooter }])
|
|
2797
2808
|
}, [
|
|
2798
2809
|
e("dt", null, [
|
|
2799
2810
|
e("div", {
|
|
2800
2811
|
class: h(["absolute rounded-md p-3", {
|
|
2801
|
-
"bg-indigo-500": !
|
|
2802
|
-
"bg-green-500":
|
|
2803
|
-
"bg-red-500":
|
|
2804
|
-
"bg-yellow-500":
|
|
2805
|
-
"bg-cyan-300":
|
|
2812
|
+
"bg-indigo-500": !o.item.color,
|
|
2813
|
+
"bg-green-500": o.item.color === "green",
|
|
2814
|
+
"bg-red-500": o.item.color === "red",
|
|
2815
|
+
"bg-yellow-500": o.item.color === "yellow",
|
|
2816
|
+
"bg-cyan-300": o.item.color === "secondary"
|
|
2806
2817
|
}])
|
|
2807
2818
|
}, [
|
|
2808
2819
|
g(j, {
|
|
2809
|
-
icon:
|
|
2820
|
+
icon: o.item.icon,
|
|
2810
2821
|
class: "h-6 w-6 text-white",
|
|
2811
2822
|
"aria-hidden": "true",
|
|
2812
|
-
loading:
|
|
2823
|
+
loading: o.loading
|
|
2813
2824
|
}, null, 8, ["icon", "loading"])
|
|
2814
2825
|
], 2),
|
|
2815
|
-
e("p",
|
|
2826
|
+
e("p", pr, u(o.item.name), 1)
|
|
2816
2827
|
]),
|
|
2817
|
-
e("dd",
|
|
2818
|
-
e("p",
|
|
2819
|
-
|
|
2820
|
-
|
|
2828
|
+
e("dd", mr, [
|
|
2829
|
+
e("p", fr, u(o.item.stat), 1),
|
|
2830
|
+
o.item.explanation ? (s(), n("p", yr, u(o.item.explanation), 1)) : b("", !0),
|
|
2831
|
+
o.item.changeType ? (s(), n("p", {
|
|
2821
2832
|
key: 1,
|
|
2822
2833
|
class: h([
|
|
2823
2834
|
{
|
|
2824
|
-
"text-green-600":
|
|
2825
|
-
"text-red-600":
|
|
2826
|
-
"text-black":
|
|
2835
|
+
"text-green-600": o.item.changeType === "increase",
|
|
2836
|
+
"text-red-600": o.item.changeType === "decrease",
|
|
2837
|
+
"text-black": o.item.changeType === "neutral"
|
|
2827
2838
|
},
|
|
2828
2839
|
"ml-2 flex items-baseline text-sm font-semibold"
|
|
2829
2840
|
])
|
|
2830
2841
|
}, [
|
|
2831
|
-
|
|
2842
|
+
o.item.changeType === "increase" ? (s(), _(c(ut), {
|
|
2832
2843
|
key: 0,
|
|
2833
2844
|
class: "self-center flex-shrink-0 h-3 w-3 text-green-500",
|
|
2834
2845
|
"aria-hidden": "true"
|
|
2835
2846
|
})) : b("", !0),
|
|
2836
|
-
|
|
2847
|
+
o.item.changeType === "decrease" ? (s(), _(c(it), {
|
|
2837
2848
|
key: 1,
|
|
2838
2849
|
class: "self-center flex-shrink-0 h-3 w-3 text-red-500",
|
|
2839
2850
|
"aria-hidden": "true"
|
|
2840
2851
|
})) : b("", !0),
|
|
2841
|
-
D(" " + u(
|
|
2852
|
+
D(" " + u(o.item.change), 1)
|
|
2842
2853
|
], 2)) : b("", !0),
|
|
2843
|
-
C(e("div",
|
|
2844
|
-
e("div",
|
|
2854
|
+
C(e("div", hr, [
|
|
2855
|
+
e("div", vr, [
|
|
2845
2856
|
e("span", {
|
|
2846
|
-
onClick: a[0] || (a[0] = (r) =>
|
|
2857
|
+
onClick: a[0] || (a[0] = (r) => o.$emit("statClick", o.item.id)),
|
|
2847
2858
|
class: "font-medium text-indigo-600 hover:text-indigo-500 cursor-pointer"
|
|
2848
|
-
}, u(
|
|
2859
|
+
}, u(o.item.actionText), 1)
|
|
2849
2860
|
])
|
|
2850
2861
|
], 512), [
|
|
2851
|
-
[S,
|
|
2862
|
+
[S, o.item.showFooter]
|
|
2852
2863
|
])
|
|
2853
2864
|
])
|
|
2854
2865
|
], 2)
|
|
2855
2866
|
]));
|
|
2856
2867
|
}
|
|
2857
|
-
}),
|
|
2868
|
+
}), kr = {
|
|
2858
2869
|
key: 0,
|
|
2859
2870
|
class: "overflow-hidden bg-white shadow sm:rounded-lg"
|
|
2860
|
-
},
|
|
2871
|
+
}, _r = { class: "px-4 py-5 sm:px-6" }, $r = { class: "text-lg font-medium leading-6 text-gray-900" }, Cr = { class: "mt-1 max-w-2xl text-sm text-gray-500" }, Br = { class: "border-t border-gray-200" }, Mr = { class: "text-sm font-medium text-gray-500" }, Sr = {
|
|
2861
2872
|
key: 0,
|
|
2862
2873
|
class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal"
|
|
2863
|
-
},
|
|
2874
|
+
}, jr = ["onClick"], Dr = {
|
|
2864
2875
|
key: 2,
|
|
2865
2876
|
class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-words"
|
|
2866
|
-
},
|
|
2877
|
+
}, Tr = {
|
|
2867
2878
|
key: 1,
|
|
2868
2879
|
class: "overflow-hidden bg-white shadow sm:rounded-lg"
|
|
2869
|
-
},
|
|
2880
|
+
}, zr = { class: "border-t border-gray-200" }, Lr = /* @__PURE__ */ M({
|
|
2870
2881
|
__name: "uiStripedCard",
|
|
2871
2882
|
props: {
|
|
2872
2883
|
title: {},
|
|
@@ -2876,9 +2887,9 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
2876
2887
|
},
|
|
2877
2888
|
emits: ["itemClicked"],
|
|
2878
2889
|
setup(p, { emit: i }) {
|
|
2879
|
-
return (
|
|
2890
|
+
return (o, a) => o.loading ? (s(), n("div", Tr, [
|
|
2880
2891
|
a[1] || (a[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)),
|
|
2881
|
-
e("div",
|
|
2892
|
+
e("div", zr, [
|
|
2882
2893
|
e("dl", null, [
|
|
2883
2894
|
(s(), n(k, null, $(5, (r) => e("div", {
|
|
2884
2895
|
key: r,
|
|
@@ -2893,21 +2904,21 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
2893
2904
|
]), 2)), 64))
|
|
2894
2905
|
])
|
|
2895
2906
|
])
|
|
2896
|
-
])) : (s(), n("div",
|
|
2897
|
-
e("div", wr, [
|
|
2898
|
-
e("h3", xr, u(l.title), 1),
|
|
2899
|
-
e("p", kr, u(l.subtitle), 1)
|
|
2900
|
-
]),
|
|
2907
|
+
])) : (s(), n("div", kr, [
|
|
2901
2908
|
e("div", _r, [
|
|
2909
|
+
e("h3", $r, u(o.title), 1),
|
|
2910
|
+
e("p", Cr, u(o.subtitle), 1)
|
|
2911
|
+
]),
|
|
2912
|
+
e("div", Br, [
|
|
2902
2913
|
e("dl", null, [
|
|
2903
|
-
(s(!0), n(k, null, $(
|
|
2904
|
-
key:
|
|
2905
|
-
class: h(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [
|
|
2914
|
+
(s(!0), n(k, null, $(o.items, (r, l) => (s(), n("div", {
|
|
2915
|
+
key: l,
|
|
2916
|
+
class: h(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [l % 2 === 0 ? "bg-gray-50" : "bg-white"]])
|
|
2906
2917
|
}, [
|
|
2907
|
-
e("dt",
|
|
2908
|
-
r.type === "tags" ? (s(), n("dd",
|
|
2918
|
+
e("dt", Mr, u(r.title), 1),
|
|
2919
|
+
r.type === "tags" ? (s(), n("dd", Sr, [
|
|
2909
2920
|
(s(!0), n(k, null, $(r.tags, (t, m) => (s(), _(R, {
|
|
2910
|
-
loading:
|
|
2921
|
+
loading: o.loading,
|
|
2911
2922
|
key: m,
|
|
2912
2923
|
color: t.color,
|
|
2913
2924
|
class: "mr-2 mb-2"
|
|
@@ -2920,14 +2931,14 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
2920
2931
|
])) : r.type === "link" ? (s(), n("dd", {
|
|
2921
2932
|
key: 1,
|
|
2922
2933
|
class: "mt-1 text-sm text-indigo-600 hover:text-indigo-400 sm:col-span-2 sm:mt-0 cursor-pointer",
|
|
2923
|
-
onClick: (t) =>
|
|
2924
|
-
}, u(r.text), 9,
|
|
2934
|
+
onClick: (t) => o.$emit("itemClicked", r.emits)
|
|
2935
|
+
}, u(r.text), 9, jr)) : (s(), n("dd", Dr, u(r.text), 1))
|
|
2925
2936
|
], 2))), 128))
|
|
2926
2937
|
])
|
|
2927
2938
|
])
|
|
2928
2939
|
]));
|
|
2929
2940
|
}
|
|
2930
|
-
}),
|
|
2941
|
+
}), Nr = { 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" }, Ar = { class: "ml-2" }, Yr = {
|
|
2931
2942
|
__name: "tooltip",
|
|
2932
2943
|
props: {
|
|
2933
2944
|
tip: {
|
|
@@ -2936,8 +2947,8 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
2936
2947
|
}
|
|
2937
2948
|
},
|
|
2938
2949
|
setup(p) {
|
|
2939
|
-
return (i,
|
|
2940
|
-
|
|
2950
|
+
return (i, o) => (s(), n("div", Nr, [
|
|
2951
|
+
o[0] || (o[0] = e("svg", {
|
|
2941
2952
|
class: "absolute -top-3 left-0",
|
|
2942
2953
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2943
2954
|
width: "27.687",
|
|
@@ -2954,25 +2965,25 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
2954
2965
|
], -1)),
|
|
2955
2966
|
e("div", null, [
|
|
2956
2967
|
g(j, {
|
|
2957
|
-
icon: c(
|
|
2968
|
+
icon: c(xt),
|
|
2958
2969
|
loading: !1,
|
|
2959
2970
|
color: "white",
|
|
2960
2971
|
size: "big"
|
|
2961
2972
|
}, null, 8, ["icon"])
|
|
2962
2973
|
]),
|
|
2963
|
-
e("span",
|
|
2974
|
+
e("span", Ar, u(p.tip), 1)
|
|
2964
2975
|
]));
|
|
2965
2976
|
}
|
|
2966
|
-
},
|
|
2977
|
+
}, Pr = { key: 0 }, Or = { class: "flex flex-col" }, Vr = { class: "-my-2 overflow-x-auto" }, Fr = { class: "inline-block min-w-full py-2 align-middle px-1" }, Ir = { class: "relative overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg" }, Rr = {
|
|
2967
2978
|
key: 0,
|
|
2968
2979
|
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"
|
|
2969
|
-
},
|
|
2980
|
+
}, qr = ["onClick"], Hr = { class: "min-w-full table-fixed divide-y divide-gray-300" }, Ur = { class: "bg-gray-50" }, Er = ["checked", "indeterminate"], Zr = ["onMouseover", "onMouseleave"], Jr = ["onClick"], Gr = {
|
|
2970
2981
|
key: 2,
|
|
2971
2982
|
class: "group flex items-center uppercase text-xs"
|
|
2972
|
-
},
|
|
2983
|
+
}, Wr = { class: "divide-y divide-gray-200 bg-white" }, Qr = {
|
|
2973
2984
|
key: 0,
|
|
2974
2985
|
class: "absolute inset-y-0 left-0 w-0.5 bg-indigo-600"
|
|
2975
|
-
},
|
|
2986
|
+
}, Kr = ["value"], Xr = ["onClick"], en = ["href"], tn = { key: 3 }, sn = /* @__PURE__ */ M({
|
|
2976
2987
|
__name: "uiTable",
|
|
2977
2988
|
props: {
|
|
2978
2989
|
resetSelected: { type: Boolean, default: !1 },
|
|
@@ -2985,35 +2996,35 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
2985
2996
|
},
|
|
2986
2997
|
emits: ["tableAction", "orderBy", "customEmit", "selectedItemsDeleted"],
|
|
2987
2998
|
setup(p, { emit: i }) {
|
|
2988
|
-
let
|
|
2989
|
-
const
|
|
2990
|
-
() =>
|
|
2991
|
-
), d = (w,
|
|
2992
|
-
a.value !== w &&
|
|
2999
|
+
let o = Y([]), a = Y(""), r = Y(!1);
|
|
3000
|
+
const l = i, t = p, m = O(
|
|
3001
|
+
() => o.value.length > 0 && o.value.length < t.items.length
|
|
3002
|
+
), d = (w, B) => {
|
|
3003
|
+
a.value !== w && B && (a.value = w), B || (a.value = void 0);
|
|
2993
3004
|
}, f = (w) => {
|
|
2994
|
-
|
|
3005
|
+
o.value = w.target.checked ? t.items.map((B) => B.id) : [];
|
|
2995
3006
|
}, y = (w) => {
|
|
2996
|
-
|
|
3007
|
+
l("customEmit", w);
|
|
2997
3008
|
};
|
|
2998
3009
|
return W(() => t.resetSelected, (w) => {
|
|
2999
|
-
r.value = w, w && r.value && (
|
|
3000
|
-
}), (w,
|
|
3001
|
-
var
|
|
3002
|
-
return w.loading ? (s(), _(Fe, { key: 1 })) : (s(), n("div",
|
|
3003
|
-
e("div",
|
|
3004
|
-
e("div",
|
|
3005
|
-
e("div",
|
|
3006
|
-
e("div",
|
|
3007
|
-
((
|
|
3008
|
-
(s(!0), n(k, null, $(w.actions, (
|
|
3009
|
-
onClick: (x) => w.$emit("tableAction", { action:
|
|
3010
|
+
r.value = w, w && r.value && (o.value = [], r.value = !w, l("selectedItemsDeleted"));
|
|
3011
|
+
}), (w, B) => {
|
|
3012
|
+
var A, V;
|
|
3013
|
+
return w.loading ? (s(), _(Fe, { key: 1 })) : (s(), n("div", Pr, [
|
|
3014
|
+
e("div", Or, [
|
|
3015
|
+
e("div", Vr, [
|
|
3016
|
+
e("div", Fr, [
|
|
3017
|
+
e("div", Ir, [
|
|
3018
|
+
((A = c(o)) == null ? void 0 : A.length) > 0 && ((V = w.actions) == null ? void 0 : V.length) > 0 ? (s(), n("div", Rr, [
|
|
3019
|
+
(s(!0), n(k, null, $(w.actions, (z, H) => (s(), n("button", {
|
|
3020
|
+
onClick: (x) => w.$emit("tableAction", { action: z.id, items: c(o) }),
|
|
3010
3021
|
key: H,
|
|
3011
3022
|
type: "button",
|
|
3012
3023
|
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"
|
|
3013
|
-
}, u(
|
|
3024
|
+
}, u(z.name), 9, qr))), 128))
|
|
3014
3025
|
])) : b("", !0),
|
|
3015
|
-
e("table",
|
|
3016
|
-
e("thead",
|
|
3026
|
+
e("table", Hr, [
|
|
3027
|
+
e("thead", Ur, [
|
|
3017
3028
|
e("tr", null, [
|
|
3018
3029
|
e("th", {
|
|
3019
3030
|
scope: "col",
|
|
@@ -3021,78 +3032,78 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
3021
3032
|
}, [
|
|
3022
3033
|
w.actions ? (s(), n("input", {
|
|
3023
3034
|
key: 0,
|
|
3024
|
-
checked: m.value || c(
|
|
3035
|
+
checked: m.value || c(o).length === w.items.length,
|
|
3025
3036
|
indeterminate: m.value,
|
|
3026
3037
|
class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500",
|
|
3027
3038
|
type: "checkbox",
|
|
3028
3039
|
onChange: f
|
|
3029
|
-
}, null, 40,
|
|
3040
|
+
}, null, 40, Er)) : b("", !0)
|
|
3030
3041
|
], 2),
|
|
3031
|
-
(s(!0), n(k, null, $(w.header, (
|
|
3042
|
+
(s(!0), n(k, null, $(w.header, (z, H) => (s(), n("th", {
|
|
3032
3043
|
key: H,
|
|
3033
3044
|
class: "py-3.5 pr-3 text-left font-semibold text-gray-900 relative",
|
|
3034
3045
|
scope: "col",
|
|
3035
|
-
onMouseover: (x) => d(
|
|
3036
|
-
onMouseleave: (x) => d(
|
|
3046
|
+
onMouseover: (x) => d(z.name, !0),
|
|
3047
|
+
onMouseleave: (x) => d(z.name, !1)
|
|
3037
3048
|
}, [
|
|
3038
|
-
|
|
3049
|
+
z.tooltip ? C((s(), _(Yr, {
|
|
3039
3050
|
key: 0,
|
|
3040
|
-
tip:
|
|
3051
|
+
tip: z.tooltip
|
|
3041
3052
|
}, null, 8, ["tip"])), [
|
|
3042
|
-
[S, c(a) ===
|
|
3053
|
+
[S, c(a) === z.name]
|
|
3043
3054
|
]) : b("", !0),
|
|
3044
|
-
|
|
3055
|
+
z.value ? (s(), n("button", {
|
|
3045
3056
|
key: 1,
|
|
3046
3057
|
class: "group flex items-center uppercase text-xs relative text-nowrap",
|
|
3047
|
-
onClick: (x) =>
|
|
3058
|
+
onClick: (x) => l("orderBy", { value: z.value, orderDirection: w.orderDirection === "asc" ? "desc" : "asc" })
|
|
3048
3059
|
}, [
|
|
3049
|
-
e("span", null, u(
|
|
3060
|
+
e("span", null, u(z.name), 1),
|
|
3050
3061
|
e("span", {
|
|
3051
3062
|
class: h([[
|
|
3052
|
-
|
|
3063
|
+
z.value === w.orderedBy ? "bg-indigo-600 text-white group-hover:bg-gray-300" : "text-gray-400 group-hover:visible group-focus:visible"
|
|
3053
3064
|
], "ml-2 flex-none rounded group-hover:bg-indigo-200 group-hover:text-white"])
|
|
3054
3065
|
}, [
|
|
3055
3066
|
g(j, {
|
|
3056
|
-
icon: w.orderDirection === "asc" ? c(
|
|
3067
|
+
icon: w.orderDirection === "asc" ? c(le) : c(mt),
|
|
3057
3068
|
loading: w.loading,
|
|
3058
|
-
color:
|
|
3069
|
+
color: z.value === w.orderedBy ? "white" : "primary"
|
|
3059
3070
|
}, null, 8, ["icon", "loading", "color"])
|
|
3060
3071
|
], 2)
|
|
3061
|
-
], 8,
|
|
3062
|
-
e("span", null, u(
|
|
3072
|
+
], 8, Jr)) : (s(), n("p", Gr, [
|
|
3073
|
+
e("span", null, u(z.name), 1)
|
|
3063
3074
|
]))
|
|
3064
|
-
], 40,
|
|
3075
|
+
], 40, Zr))), 128))
|
|
3065
3076
|
])
|
|
3066
3077
|
]),
|
|
3067
|
-
e("tbody",
|
|
3068
|
-
(s(!0), n(k, null, $(w.items, (
|
|
3069
|
-
var x,
|
|
3078
|
+
e("tbody", Wr, [
|
|
3079
|
+
(s(!0), n(k, null, $(w.items, (z, H) => {
|
|
3080
|
+
var x, P;
|
|
3070
3081
|
return s(), n("tr", {
|
|
3071
|
-
key:
|
|
3082
|
+
key: z.id,
|
|
3072
3083
|
class: h([
|
|
3073
|
-
c(
|
|
3084
|
+
c(o).includes(z.id) && "bg-gray-50",
|
|
3074
3085
|
H % 2 === 0 ? void 0 : "bg-gray-50"
|
|
3075
3086
|
])
|
|
3076
3087
|
}, [
|
|
3077
3088
|
e("td", {
|
|
3078
3089
|
class: h([((x = w.actions) == null ? void 0 : x.length) > 0 ? "w-2" : "w-0", "relative"])
|
|
3079
3090
|
}, [
|
|
3080
|
-
c(
|
|
3081
|
-
((
|
|
3091
|
+
c(o).includes(z.id) ? (s(), n("div", Qr)) : b("", !0),
|
|
3092
|
+
((P = w.actions) == null ? void 0 : P.length) > 0 ? C((s(), n("input", {
|
|
3082
3093
|
key: 1,
|
|
3083
|
-
"onUpdate:modelValue":
|
|
3084
|
-
value:
|
|
3094
|
+
"onUpdate:modelValue": B[0] || (B[0] = (N) => Me(o) ? o.value = N : o = N),
|
|
3095
|
+
value: z.id,
|
|
3085
3096
|
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",
|
|
3086
3097
|
type: "checkbox"
|
|
3087
|
-
}, null, 8,
|
|
3088
|
-
[
|
|
3098
|
+
}, null, 8, Kr)), [
|
|
3099
|
+
[Be, c(o)]
|
|
3089
3100
|
]) : b("", !0)
|
|
3090
3101
|
], 2),
|
|
3091
|
-
(s(!0), n(k, null, $(
|
|
3102
|
+
(s(!0), n(k, null, $(z.row, (N, se) => (s(), n("td", {
|
|
3092
3103
|
key: se,
|
|
3093
3104
|
class: h([
|
|
3094
3105
|
"whitespace-nowrap py-4 pr-3 text-sm",
|
|
3095
|
-
c(
|
|
3106
|
+
c(o).includes(z.id) ? "text-indigo-600" : "text-gray-900"
|
|
3096
3107
|
])
|
|
3097
3108
|
}, [
|
|
3098
3109
|
typeof N == "object" && N.type === "tag" ? (s(), _(R, {
|
|
@@ -3107,13 +3118,13 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
3107
3118
|
}, 1032, ["loading", "color"])) : typeof N == "object" && N.type === "link" ? (s(), n("span", {
|
|
3108
3119
|
key: 1,
|
|
3109
3120
|
class: "text-indigo-600 hover:text-indigo-400 cursor-pointer",
|
|
3110
|
-
onClick: (
|
|
3111
|
-
}, u(N.content), 9,
|
|
3121
|
+
onClick: (T) => y(N)
|
|
3122
|
+
}, u(N.content), 9, Xr)) : typeof N == "object" && N.type === "href" ? (s(), n("a", {
|
|
3112
3123
|
key: 2,
|
|
3113
3124
|
class: "text-indigo-600 hover:text-indigo-400 cursor-pointer",
|
|
3114
3125
|
href: N.href,
|
|
3115
3126
|
target: "_blank"
|
|
3116
|
-
}, u(N.content), 9,
|
|
3127
|
+
}, u(N.content), 9, en)) : (s(), n("span", tn, u(N), 1))
|
|
3117
3128
|
], 2))), 128))
|
|
3118
3129
|
], 2);
|
|
3119
3130
|
}), 128))
|
|
@@ -3126,24 +3137,24 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
3126
3137
|
]));
|
|
3127
3138
|
};
|
|
3128
3139
|
}
|
|
3129
|
-
}),
|
|
3140
|
+
}), on = { class: "lg:hidden" }, ln = ["value"], rn = { class: "hidden lg:block" }, nn = { class: "border-b border-gray-200" }, an = {
|
|
3130
3141
|
class: "-mb-px flex space-x-8",
|
|
3131
3142
|
"aria-label": "Tabs"
|
|
3132
|
-
},
|
|
3143
|
+
}, dn = ["onClick", "aria-current"], un = /* @__PURE__ */ M({
|
|
3133
3144
|
__name: "uiTabs",
|
|
3134
3145
|
props: {
|
|
3135
3146
|
tabs: {}
|
|
3136
3147
|
},
|
|
3137
3148
|
emits: ["tabClicked"],
|
|
3138
3149
|
setup(p, { emit: i }) {
|
|
3139
|
-
const
|
|
3140
|
-
const
|
|
3141
|
-
|
|
3150
|
+
const o = i, a = (r) => {
|
|
3151
|
+
const l = r.target;
|
|
3152
|
+
l.value && o("tabClicked", l.value);
|
|
3142
3153
|
};
|
|
3143
|
-
return (r,
|
|
3144
|
-
e("div",
|
|
3154
|
+
return (r, l) => (s(), n("div", null, [
|
|
3155
|
+
e("div", on, [
|
|
3145
3156
|
e("select", {
|
|
3146
|
-
onChange:
|
|
3157
|
+
onChange: l[0] || (l[0] = (t) => a(t)),
|
|
3147
3158
|
id: "tabs",
|
|
3148
3159
|
name: "tabs",
|
|
3149
3160
|
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"
|
|
@@ -3151,15 +3162,15 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
3151
3162
|
(s(!0), n(k, null, $(r.tabs, (t) => (s(), n("option", {
|
|
3152
3163
|
value: t.id,
|
|
3153
3164
|
key: t.name
|
|
3154
|
-
}, u(t.name), 9,
|
|
3165
|
+
}, u(t.name), 9, ln))), 128))
|
|
3155
3166
|
], 32)
|
|
3156
3167
|
]),
|
|
3157
|
-
e("div",
|
|
3158
|
-
e("div",
|
|
3159
|
-
e("nav",
|
|
3168
|
+
e("div", rn, [
|
|
3169
|
+
e("div", nn, [
|
|
3170
|
+
e("nav", an, [
|
|
3160
3171
|
(s(!0), n(k, null, $(r.tabs, (t) => (s(), n("a", {
|
|
3161
3172
|
key: t.name,
|
|
3162
|
-
onClick: (m) =>
|
|
3173
|
+
onClick: (m) => o("tabClicked", t.id),
|
|
3163
3174
|
class: h([
|
|
3164
3175
|
t.current ? "border-indigo-500 text-indigo-600" : "border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-200",
|
|
3165
3176
|
"whitespace-nowrap flex py-4 px-1 border-b-2 font-medium text-sm cursor-pointer"
|
|
@@ -3174,36 +3185,36 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
3174
3185
|
"hidden ml-3 py-0.5 px-2.5 rounded-full text-xs font-medium md:inline-block"
|
|
3175
3186
|
])
|
|
3176
3187
|
}, u(t.count), 3)) : b("", !0)
|
|
3177
|
-
], 10,
|
|
3188
|
+
], 10, dn))), 128))
|
|
3178
3189
|
])
|
|
3179
3190
|
])
|
|
3180
3191
|
])
|
|
3181
3192
|
]));
|
|
3182
3193
|
}
|
|
3183
|
-
}),
|
|
3194
|
+
}), cn = { class: "px-4 py-5 sm:px-6" }, gn = { class: "text-xl font-bold" }, pn = {
|
|
3184
3195
|
key: 0,
|
|
3185
3196
|
class: "px-4 py-5 sm:p-6"
|
|
3186
|
-
},
|
|
3197
|
+
}, mn = { class: "flow-root" }, fn = { class: "relative pb-8" }, yn = {
|
|
3187
3198
|
key: 0,
|
|
3188
3199
|
class: "absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200",
|
|
3189
3200
|
"aria-hidden": "true"
|
|
3190
|
-
},
|
|
3201
|
+
}, hn = { class: "relative flex space-x-3" }, vn = { class: "min-w-0 flex-1 pt-1.5 flex justify-between space-x-4 items-center" }, bn = { class: "text-sm text-gray-500" }, wn = ["onClick"], xn = { class: "text-right text-sm whitespace-nowrap text-gray-500" }, kn = ["datetime"], _n = {
|
|
3191
3202
|
key: 1,
|
|
3192
3203
|
class: "bg-gray-50 px-4 py-4 sm:px-6 z-10"
|
|
3193
|
-
},
|
|
3204
|
+
}, $n = { class: "text-sm" }, Cn = {
|
|
3194
3205
|
key: 2,
|
|
3195
3206
|
class: "h-full w-full flex items-center justify-center flex-col mb-5"
|
|
3196
|
-
},
|
|
3207
|
+
}, Bn = {
|
|
3197
3208
|
key: 1,
|
|
3198
3209
|
class: "bg-white overflow-hidden shadow rounded-lg"
|
|
3199
|
-
},
|
|
3210
|
+
}, Mn = { class: "px-4 py-5 sm:p-6 animate-pulse" }, Sn = { class: "flow-root" }, jn = {
|
|
3200
3211
|
class: "-mb-8",
|
|
3201
3212
|
role: "list"
|
|
3202
|
-
},
|
|
3213
|
+
}, Dn = { class: "relative pb-8" }, Tn = {
|
|
3203
3214
|
key: 0,
|
|
3204
3215
|
class: "absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200",
|
|
3205
3216
|
"aria-hidden": "true"
|
|
3206
|
-
},
|
|
3217
|
+
}, zn = /* @__PURE__ */ M({
|
|
3207
3218
|
__name: "uiTimeline",
|
|
3208
3219
|
props: {
|
|
3209
3220
|
name: {},
|
|
@@ -3214,26 +3225,26 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
3214
3225
|
},
|
|
3215
3226
|
emits: ["timelineEventClicked", "timelineFooterClicked"],
|
|
3216
3227
|
setup(p, { emit: i }) {
|
|
3217
|
-
const a =
|
|
3218
|
-
return (r,
|
|
3219
|
-
|
|
3228
|
+
const a = ue(p.timeline);
|
|
3229
|
+
return (r, l) => r.loading ? (s(), n("div", Bn, [
|
|
3230
|
+
l[3] || (l[3] = e("div", { class: "px-4 py-5 sm:px-6 animate-pulse" }, [
|
|
3220
3231
|
e("h1", { class: "text-xl font-bold" }, [
|
|
3221
3232
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4" })
|
|
3222
3233
|
])
|
|
3223
3234
|
], -1)),
|
|
3224
|
-
e("div",
|
|
3225
|
-
e("div",
|
|
3226
|
-
e("ul",
|
|
3235
|
+
e("div", Mn, [
|
|
3236
|
+
e("div", Sn, [
|
|
3237
|
+
e("ul", jn, [
|
|
3227
3238
|
(s(), n(k, null, $(10, (t, m) => e("li", { key: m }, [
|
|
3228
|
-
e("div",
|
|
3229
|
-
t !== 10 ? (s(), n("span",
|
|
3230
|
-
|
|
3239
|
+
e("div", Dn, [
|
|
3240
|
+
t !== 10 ? (s(), n("span", Tn)) : b("", !0),
|
|
3241
|
+
l[2] || (l[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))
|
|
3231
3242
|
])
|
|
3232
3243
|
])), 64))
|
|
3233
3244
|
])
|
|
3234
3245
|
])
|
|
3235
3246
|
]),
|
|
3236
|
-
|
|
3247
|
+
l[4] || (l[4] = e("div", { class: "bg-gray-50 px-4 py-4 sm:px-6 z-10 animate-pulse" }, [
|
|
3237
3248
|
e("div", { class: "text-sm" }, [
|
|
3238
3249
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4" })
|
|
3239
3250
|
])
|
|
@@ -3242,11 +3253,11 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
3242
3253
|
key: 0,
|
|
3243
3254
|
class: h(["h-[" + r.height + "px]", "bg-white overflow-hidden shadow rounded-lg"])
|
|
3244
3255
|
}, [
|
|
3245
|
-
e("div",
|
|
3246
|
-
e("h1",
|
|
3256
|
+
e("div", cn, [
|
|
3257
|
+
e("h1", gn, u(r.name), 1)
|
|
3247
3258
|
]),
|
|
3248
|
-
a.items ? (s(), n("div",
|
|
3249
|
-
e("div",
|
|
3259
|
+
a.items ? (s(), n("div", pn, [
|
|
3260
|
+
e("div", mn, [
|
|
3250
3261
|
g(Ee, {
|
|
3251
3262
|
name: "list",
|
|
3252
3263
|
tag: "ul",
|
|
@@ -3256,9 +3267,9 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
3256
3267
|
(s(!0), n(k, null, $(a.items, (t, m) => {
|
|
3257
3268
|
var d;
|
|
3258
3269
|
return s(), n("li", { key: m }, [
|
|
3259
|
-
e("div",
|
|
3260
|
-
m < ((d = a.items) == null ? void 0 : d.length) - 1 ? (s(), n("span",
|
|
3261
|
-
e("div",
|
|
3270
|
+
e("div", fn, [
|
|
3271
|
+
m < ((d = a.items) == null ? void 0 : d.length) - 1 ? (s(), n("span", yn)) : b("", !0),
|
|
3272
|
+
e("div", hn, [
|
|
3262
3273
|
e("div", null, [
|
|
3263
3274
|
e("span", {
|
|
3264
3275
|
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"])
|
|
@@ -3272,20 +3283,20 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
3272
3283
|
}, null, 8, ["loading", "icon"])
|
|
3273
3284
|
], 2)
|
|
3274
3285
|
]),
|
|
3275
|
-
e("div",
|
|
3286
|
+
e("div", vn, [
|
|
3276
3287
|
e("div", null, [
|
|
3277
|
-
e("p",
|
|
3288
|
+
e("p", bn, [
|
|
3278
3289
|
e("a", {
|
|
3279
3290
|
onClick: (f) => r.$emit("timelineEventClicked", t.linkId),
|
|
3280
3291
|
class: "font-medium text-indigo-600 hover:text-indigo-800 cursor-pointer"
|
|
3281
|
-
}, u(t == null ? void 0 : t.target), 9,
|
|
3292
|
+
}, u(t == null ? void 0 : t.target), 9, wn),
|
|
3282
3293
|
D(" " + u(t == null ? void 0 : t.content), 1)
|
|
3283
3294
|
])
|
|
3284
3295
|
]),
|
|
3285
|
-
e("div",
|
|
3296
|
+
e("div", xn, [
|
|
3286
3297
|
e("time", {
|
|
3287
3298
|
datetime: t == null ? void 0 : t.datetime
|
|
3288
|
-
}, u(t == null ? void 0 : t.date), 9,
|
|
3299
|
+
}, u(t == null ? void 0 : t.date), 9, kn)
|
|
3289
3300
|
])
|
|
3290
3301
|
])
|
|
3291
3302
|
])
|
|
@@ -3297,28 +3308,28 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
3297
3308
|
})
|
|
3298
3309
|
])
|
|
3299
3310
|
])) : b("", !0),
|
|
3300
|
-
a.items ? (s(), n("div",
|
|
3301
|
-
e("div",
|
|
3311
|
+
a.items ? (s(), n("div", _n, [
|
|
3312
|
+
e("div", $n, [
|
|
3302
3313
|
e("a", {
|
|
3303
3314
|
class: "cursor-pointer font-medium text-indigo-600 hover:text-indigo-500",
|
|
3304
|
-
onClick:
|
|
3315
|
+
onClick: l[0] || (l[0] = (t) => r.$emit("timelineFooterClicked", r.timeline.id))
|
|
3305
3316
|
}, u(r.timeline.footerText), 1)
|
|
3306
3317
|
])
|
|
3307
|
-
])) : (s(), n("div",
|
|
3318
|
+
])) : (s(), n("div", Cn, [
|
|
3308
3319
|
g(j, {
|
|
3309
3320
|
icon: c(q),
|
|
3310
3321
|
color: "gray",
|
|
3311
3322
|
loading: !1,
|
|
3312
3323
|
size: "huge"
|
|
3313
3324
|
}, null, 8, ["icon"]),
|
|
3314
|
-
|
|
3325
|
+
l[1] || (l[1] = e("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1))
|
|
3315
3326
|
]))
|
|
3316
3327
|
], 2));
|
|
3317
3328
|
}
|
|
3318
|
-
}),
|
|
3329
|
+
}), Ln = { class: "mx-auto px-6 lg:px-8" }, Nn = { class: "flex justify-between h-20" }, An = { class: "flex" }, Yn = { class: "-ml-2 mr-2 flex items-center lg:hidden" }, Pn = ["src"], On = { class: "flex items-center" }, Vn = { class: "lg:ml-4 lg:flex-shrink-0 lg:flex lg:items-center hidden" }, Fn = { class: "redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute -top-0 -left-1" }, In = ["src"], Rn = ["onClick"], qn = { class: "pt-2 pb-3 space-y-1" }, Hn = ["onClick"], Un = { class: "pt-4 pb-3 border-t border-gray-200" }, En = { class: "flex items-center px-4 sm:px-6" }, Zn = { class: "flex-shrink-0" }, Jn = ["src"], Gn = {
|
|
3319
3330
|
key: 0,
|
|
3320
3331
|
class: "ml-3"
|
|
3321
|
-
},
|
|
3332
|
+
}, Wn = { class: "text-base font-medium text-gray-800" }, Qn = { class: "text-sm font-medium text-gray-500" }, Kn = { class: "mt-3 space-y-1" }, Xn = ["onClick"], ea = /* @__PURE__ */ M({
|
|
3322
3333
|
__name: "uiTopbar",
|
|
3323
3334
|
props: {
|
|
3324
3335
|
logo: {},
|
|
@@ -3330,15 +3341,15 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
3330
3341
|
},
|
|
3331
3342
|
emits: ["topBarClick"],
|
|
3332
3343
|
setup(p, { emit: i }) {
|
|
3333
|
-
return (
|
|
3344
|
+
return (o, a) => (s(), _(c(ve), {
|
|
3334
3345
|
as: "nav",
|
|
3335
3346
|
class: "bg-white shadow z-10"
|
|
3336
3347
|
}, {
|
|
3337
3348
|
default: v(({ open: r }) => [
|
|
3338
|
-
e("div",
|
|
3339
|
-
e("div",
|
|
3340
|
-
e("div",
|
|
3341
|
-
e("div",
|
|
3349
|
+
e("div", Ln, [
|
|
3350
|
+
e("div", Nn, [
|
|
3351
|
+
e("div", An, [
|
|
3352
|
+
e("div", Yn, [
|
|
3342
3353
|
g(c(U), { 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" }, {
|
|
3343
3354
|
default: v(() => [
|
|
3344
3355
|
a[1] || (a[1] = e("span", { class: "sr-only" }, "Open main menu", -1)),
|
|
@@ -3357,38 +3368,38 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
3357
3368
|
]),
|
|
3358
3369
|
e("div", {
|
|
3359
3370
|
class: "flex-shrink-0 flex items-center cursor-pointer",
|
|
3360
|
-
onClick: a[0] || (a[0] = (
|
|
3371
|
+
onClick: a[0] || (a[0] = (l) => o.$emit("topBarClick", "logo"))
|
|
3361
3372
|
}, [
|
|
3362
3373
|
e("img", {
|
|
3363
3374
|
class: "h-10",
|
|
3364
|
-
src:
|
|
3375
|
+
src: o.logo,
|
|
3365
3376
|
alt: "Hotelinking suite product logo"
|
|
3366
|
-
}, null, 8,
|
|
3377
|
+
}, null, 8, Pn)
|
|
3367
3378
|
])
|
|
3368
3379
|
]),
|
|
3369
|
-
e("div",
|
|
3370
|
-
e("div",
|
|
3371
|
-
g(c(
|
|
3380
|
+
e("div", On, [
|
|
3381
|
+
e("div", Vn, [
|
|
3382
|
+
g(c(ce), {
|
|
3372
3383
|
as: "div",
|
|
3373
3384
|
class: "ml-3 relative"
|
|
3374
3385
|
}, {
|
|
3375
3386
|
default: v(() => [
|
|
3376
3387
|
e("div", null, [
|
|
3377
|
-
C(g(c(
|
|
3388
|
+
C(g(c(ge), { class: "bg-white rounded-full flex text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 relative" }, {
|
|
3378
3389
|
default: v(() => [
|
|
3379
|
-
C(e("div",
|
|
3390
|
+
C(e("div", Fn, a[2] || (a[2] = [
|
|
3380
3391
|
e("span", { class: "animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75" }, null, -1)
|
|
3381
3392
|
]), 512), [
|
|
3382
|
-
[S,
|
|
3393
|
+
[S, o.alerted]
|
|
3383
3394
|
]),
|
|
3384
3395
|
e("img", {
|
|
3385
3396
|
class: "h-10 w-10 rounded-full",
|
|
3386
|
-
src:
|
|
3387
|
-
}, null, 8,
|
|
3397
|
+
src: o.accountLogo
|
|
3398
|
+
}, null, 8, In)
|
|
3388
3399
|
]),
|
|
3389
3400
|
_: 1
|
|
3390
3401
|
}, 512), [
|
|
3391
|
-
[S,
|
|
3402
|
+
[S, o.accountLogo]
|
|
3392
3403
|
])
|
|
3393
3404
|
]),
|
|
3394
3405
|
g(re, {
|
|
@@ -3400,19 +3411,19 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
3400
3411
|
"leave-to-class": "transform opacity-0 scale-95"
|
|
3401
3412
|
}, {
|
|
3402
3413
|
default: v(() => [
|
|
3403
|
-
g(c(
|
|
3414
|
+
g(c(pe), { 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" }, {
|
|
3404
3415
|
default: v(() => [
|
|
3405
|
-
(s(!0), n(k, null, $(
|
|
3406
|
-
key:
|
|
3416
|
+
(s(!0), n(k, null, $(o.profileMenu, (l) => (s(), _(c(me), {
|
|
3417
|
+
key: l.name
|
|
3407
3418
|
}, {
|
|
3408
3419
|
default: v(({ active: t }) => [
|
|
3409
3420
|
e("p", {
|
|
3410
|
-
onClick: (m) =>
|
|
3421
|
+
onClick: (m) => o.$emit("topBarClick", l.id),
|
|
3411
3422
|
class: h(["cursor-pointer", [
|
|
3412
3423
|
t ? "bg-gray-100" : "",
|
|
3413
3424
|
"block px-4 py-2 text-sm text-gray-700"
|
|
3414
3425
|
]])
|
|
3415
|
-
}, u(
|
|
3426
|
+
}, u(l.name), 11, Rn)
|
|
3416
3427
|
]),
|
|
3417
3428
|
_: 2
|
|
3418
3429
|
}, 1024))), 128))
|
|
@@ -3429,48 +3440,48 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
3429
3440
|
])
|
|
3430
3441
|
])
|
|
3431
3442
|
]),
|
|
3432
|
-
g(c(
|
|
3443
|
+
g(c(be), { class: "lg:hidden" }, {
|
|
3433
3444
|
default: v(() => [
|
|
3434
|
-
e("div",
|
|
3435
|
-
(s(!0), n(k, null, $(
|
|
3445
|
+
e("div", qn, [
|
|
3446
|
+
(s(!0), n(k, null, $(o.navigation, (l) => (s(), _(c(U), {
|
|
3436
3447
|
as: "template",
|
|
3437
|
-
key:
|
|
3448
|
+
key: l.name,
|
|
3438
3449
|
class: h(["block pl-3 pr-4 py-2 border-l-4 text-base font-medium sm:pl-5 sm:pr-6", {
|
|
3439
|
-
"bg-indigo-50 border-indigo-500 text-indigo-700":
|
|
3440
|
-
"border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700": !
|
|
3450
|
+
"bg-indigo-50 border-indigo-500 text-indigo-700": l.current && l.current === !0,
|
|
3451
|
+
"border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700": !l.current
|
|
3441
3452
|
}])
|
|
3442
3453
|
}, {
|
|
3443
3454
|
default: v(() => [
|
|
3444
3455
|
e("p", {
|
|
3445
|
-
onClick: (t) =>
|
|
3446
|
-
}, u(
|
|
3456
|
+
onClick: (t) => o.$emit("topBarClick", l.id)
|
|
3457
|
+
}, u(l.name), 9, Hn)
|
|
3447
3458
|
]),
|
|
3448
3459
|
_: 2
|
|
3449
3460
|
}, 1032, ["class"]))), 128))
|
|
3450
3461
|
]),
|
|
3451
|
-
e("div",
|
|
3452
|
-
e("div",
|
|
3453
|
-
e("div",
|
|
3462
|
+
e("div", Un, [
|
|
3463
|
+
e("div", En, [
|
|
3464
|
+
e("div", Zn, [
|
|
3454
3465
|
e("img", {
|
|
3455
3466
|
class: "h-10 w-10 rounded-full",
|
|
3456
|
-
src:
|
|
3457
|
-
}, null, 8,
|
|
3467
|
+
src: o.accountLogo
|
|
3468
|
+
}, null, 8, Jn)
|
|
3458
3469
|
]),
|
|
3459
|
-
|
|
3460
|
-
e("div",
|
|
3461
|
-
e("div",
|
|
3470
|
+
o.brand ? (s(), n("div", Gn, [
|
|
3471
|
+
e("div", Wn, u(o.brand.title), 1),
|
|
3472
|
+
e("div", Qn, u(o.brand.subtitle), 1)
|
|
3462
3473
|
])) : b("", !0)
|
|
3463
3474
|
]),
|
|
3464
|
-
e("div",
|
|
3465
|
-
(s(!0), n(k, null, $(
|
|
3475
|
+
e("div", Kn, [
|
|
3476
|
+
(s(!0), n(k, null, $(o.profileMenu, (l) => (s(), _(c(U), {
|
|
3466
3477
|
as: "template",
|
|
3467
|
-
key:
|
|
3478
|
+
key: l.name,
|
|
3468
3479
|
class: "block px-4 py-2 text-base font-medium text-gray-500 hover:text-gray-800 hover:bg-gray-100 sm:px-6"
|
|
3469
3480
|
}, {
|
|
3470
3481
|
default: v(() => [
|
|
3471
3482
|
e("p", {
|
|
3472
|
-
onClick: (t) =>
|
|
3473
|
-
}, u(
|
|
3483
|
+
onClick: (t) => o.$emit("topBarClick", l.id)
|
|
3484
|
+
}, u(l.name), 9, Xn)
|
|
3474
3485
|
]),
|
|
3475
3486
|
_: 2
|
|
3476
3487
|
}, 1024))), 128))
|
|
@@ -3483,7 +3494,36 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
3483
3494
|
_: 1
|
|
3484
3495
|
}));
|
|
3485
3496
|
}
|
|
3486
|
-
}),
|
|
3497
|
+
}), ta = { class: "chart-selector flex flex-row items-center justify-center" }, qe = /* @__PURE__ */ M({
|
|
3498
|
+
__name: "RangeSelector",
|
|
3499
|
+
props: { range: { type: String } },
|
|
3500
|
+
emits: ["rangeSelected"],
|
|
3501
|
+
setup(p, { emit: i }) {
|
|
3502
|
+
const o = i, a = p;
|
|
3503
|
+
let r = O(() => a.range);
|
|
3504
|
+
const l = (t) => {
|
|
3505
|
+
r = t, o("rangeSelected", t);
|
|
3506
|
+
};
|
|
3507
|
+
return (t, m) => (s(), n("ul", ta, [
|
|
3508
|
+
e("li", {
|
|
3509
|
+
class: h({ selected: c(r) === "24h" }),
|
|
3510
|
+
onClick: m[0] || (m[0] = (d) => l("24h"))
|
|
3511
|
+
}, " 24H ", 2),
|
|
3512
|
+
e("li", {
|
|
3513
|
+
class: h({ selected: c(r) === "7d" }),
|
|
3514
|
+
onClick: m[1] || (m[1] = (d) => l("7d"))
|
|
3515
|
+
}, "7D", 2),
|
|
3516
|
+
e("li", {
|
|
3517
|
+
class: h({ selected: c(r) === "1m" }),
|
|
3518
|
+
onClick: m[2] || (m[2] = (d) => l("1m"))
|
|
3519
|
+
}, "1M", 2),
|
|
3520
|
+
e("li", {
|
|
3521
|
+
class: h({ selected: c(r) === "3m" }),
|
|
3522
|
+
onClick: m[3] || (m[3] = (d) => l("3m"))
|
|
3523
|
+
}, "3M", 2)
|
|
3524
|
+
]));
|
|
3525
|
+
}
|
|
3526
|
+
}), sa = { class: "chart-header flex flex-row justify-between" }, oa = { class: "text-sm font-medium text-gray-500 truncate" }, la = { class: "chart-content" }, ra = { class: "h-full w-full flex items-center justify-center flex-col" }, na = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, aa = /* @__PURE__ */ M({
|
|
3487
3527
|
__name: "uiFunnelChartV2",
|
|
3488
3528
|
props: {
|
|
3489
3529
|
labels: {},
|
|
@@ -3502,9 +3542,9 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
3502
3542
|
height: { default: 320 },
|
|
3503
3543
|
annotations: {}
|
|
3504
3544
|
},
|
|
3505
|
-
emits: ["selectedRange", "chartUpdated", "dataPointSelection"],
|
|
3545
|
+
emits: ["selectedRange", "chartUpdated", "dataPointSelection", "maximizeChart"],
|
|
3506
3546
|
setup(p, { emit: i }) {
|
|
3507
|
-
const
|
|
3547
|
+
const o = i, a = p;
|
|
3508
3548
|
let r = {
|
|
3509
3549
|
chart: {
|
|
3510
3550
|
type: "bar",
|
|
@@ -3540,27 +3580,27 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
3540
3580
|
}
|
|
3541
3581
|
}
|
|
3542
3582
|
};
|
|
3543
|
-
const
|
|
3544
|
-
|
|
3583
|
+
const l = O(() => ({ ...a.options, ...r })), t = O(() => a.series), m = () => o("chartUpdated"), d = (f, y, w) => {
|
|
3584
|
+
o("dataPointSelection", { id: a.id, chartContext: y, config: w, event: f });
|
|
3545
3585
|
};
|
|
3546
3586
|
return (f, y) => (s(), n(k, null, [
|
|
3547
3587
|
C(e("div", {
|
|
3548
3588
|
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"])
|
|
3549
3589
|
}, [
|
|
3550
|
-
e("div",
|
|
3551
|
-
e("div",
|
|
3552
|
-
g(
|
|
3590
|
+
e("div", sa, [
|
|
3591
|
+
e("div", oa, u(f.title), 1),
|
|
3592
|
+
g(qe, {
|
|
3553
3593
|
range: f.range,
|
|
3554
3594
|
onRangeSelected: y[0] || (y[0] = (w) => f.$emit("selectedRange", { range: w, chartId: f.id }))
|
|
3555
3595
|
}, null, 8, ["range"])
|
|
3556
3596
|
]),
|
|
3557
|
-
C(e("div",
|
|
3558
|
-
g(c(
|
|
3597
|
+
C(e("div", la, [
|
|
3598
|
+
g(c(we), {
|
|
3559
3599
|
type: f.type,
|
|
3560
3600
|
series: t.value,
|
|
3561
3601
|
width: "100%",
|
|
3562
3602
|
height: f.height,
|
|
3563
|
-
options:
|
|
3603
|
+
options: l.value,
|
|
3564
3604
|
onUpdated: m,
|
|
3565
3605
|
onMounted: m,
|
|
3566
3606
|
onDataPointSelection: d
|
|
@@ -3568,7 +3608,7 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
3568
3608
|
], 512), [
|
|
3569
3609
|
[S, !f.empty]
|
|
3570
3610
|
]),
|
|
3571
|
-
C(e("div",
|
|
3611
|
+
C(e("div", ra, [
|
|
3572
3612
|
g(j, {
|
|
3573
3613
|
icon: c(q),
|
|
3574
3614
|
color: "gray",
|
|
@@ -3582,7 +3622,7 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
3582
3622
|
], 2), [
|
|
3583
3623
|
[S, !f.loading]
|
|
3584
3624
|
]),
|
|
3585
|
-
C(e("div",
|
|
3625
|
+
C(e("div", na, y[2] || (y[2] = [
|
|
3586
3626
|
e("div", {
|
|
3587
3627
|
role: "status",
|
|
3588
3628
|
class: "w-full animate-pulse h-full flex flex-col"
|
|
@@ -3613,7 +3653,7 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
3613
3653
|
])
|
|
3614
3654
|
], 64));
|
|
3615
3655
|
}
|
|
3616
|
-
}),
|
|
3656
|
+
}), ia = { class: "w-full flex flex-col items-center justify-center p-10 grow" }, da = { class: "text-2xl mt-4 font-bold" }, ua = { class: "buttons flex flex-row items-center justify-center mt-8 gap-x-1" }, ca = /* @__PURE__ */ M({
|
|
3617
3657
|
__name: "uiNoResults",
|
|
3618
3658
|
props: {
|
|
3619
3659
|
title: {},
|
|
@@ -3624,36 +3664,36 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
3624
3664
|
},
|
|
3625
3665
|
emits: ["action", "noResultsOptionSelected"],
|
|
3626
3666
|
setup(p) {
|
|
3627
|
-
return (i,
|
|
3667
|
+
return (i, o) => (s(), n("div", ia, [
|
|
3628
3668
|
g(j, {
|
|
3629
3669
|
loading: !1,
|
|
3630
3670
|
icon: c(q),
|
|
3631
3671
|
size: "massive",
|
|
3632
3672
|
color: "gray"
|
|
3633
3673
|
}, null, 8, ["icon"]),
|
|
3634
|
-
e("h2",
|
|
3674
|
+
e("h2", da, u(i.title), 1),
|
|
3635
3675
|
e("p", null, u(i.message), 1),
|
|
3636
|
-
e("div",
|
|
3676
|
+
e("div", ua, [
|
|
3637
3677
|
(s(!0), n(k, null, $(i.actions, (a, r) => (s(), _(G, {
|
|
3638
3678
|
key: r,
|
|
3639
3679
|
loading: !1,
|
|
3640
|
-
onClick: (
|
|
3680
|
+
onClick: (l) => i.$emit("action", a.action)
|
|
3641
3681
|
}, {
|
|
3642
3682
|
default: v(() => [
|
|
3643
3683
|
D(u(a.text), 1)
|
|
3644
3684
|
]),
|
|
3645
3685
|
_: 2
|
|
3646
3686
|
}, 1032, ["onClick"]))), 128)),
|
|
3647
|
-
i.items ? (s(), _(
|
|
3687
|
+
i.items ? (s(), _(xe, {
|
|
3648
3688
|
key: 0,
|
|
3649
3689
|
items: i.items,
|
|
3650
3690
|
loading: !1,
|
|
3651
|
-
onOptionSelected:
|
|
3691
|
+
onOptionSelected: o[0] || (o[0] = (a) => i.$emit("noResultsOptionSelected", a))
|
|
3652
3692
|
}, null, 8, ["items"])) : b("", !0)
|
|
3653
3693
|
])
|
|
3654
3694
|
]));
|
|
3655
3695
|
}
|
|
3656
|
-
}),
|
|
3696
|
+
}), ga = { class: "fixed inset-0 overflow-hidden" }, pa = { class: "absolute inset-0 overflow-hidden" }, ma = { class: "pointer-events-none fixed inset-y-0 right-0 flex max-w-full pl-10" }, fa = { class: "flex h-full flex-col overflow-y-scroll bg-white shadow-xl" }, ya = { class: "bg-indigo-700 px-4 py-6 sm:px-6" }, ha = { class: "flex items-center justify-between" }, va = { class: "ml-3 flex h-7 items-center" }, ba = { class: "mt-1" }, wa = { class: "text-sm text-indigo-300" }, xa = { class: "relative flex-1 px-4 py-6 sm:px-6" }, ka = /* @__PURE__ */ M({
|
|
3657
3697
|
__name: "uiRightSidebar",
|
|
3658
3698
|
props: {
|
|
3659
3699
|
title: {},
|
|
@@ -3662,21 +3702,21 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
3662
3702
|
},
|
|
3663
3703
|
emits: ["closeRightBar"],
|
|
3664
3704
|
setup(p, { emit: i }) {
|
|
3665
|
-
return (
|
|
3705
|
+
return (o, a) => (s(), _(c(fe), {
|
|
3666
3706
|
as: "template",
|
|
3667
|
-
show:
|
|
3707
|
+
show: o.open
|
|
3668
3708
|
}, {
|
|
3669
3709
|
default: v(() => [
|
|
3670
|
-
g(c(
|
|
3710
|
+
g(c(ye), {
|
|
3671
3711
|
as: "div",
|
|
3672
3712
|
class: "relative z-10",
|
|
3673
|
-
onClose: a[1] || (a[1] = (r) =>
|
|
3713
|
+
onClose: a[1] || (a[1] = (r) => o.$emit("closeRightBar"))
|
|
3674
3714
|
}, {
|
|
3675
3715
|
default: v(() => [
|
|
3676
3716
|
a[4] || (a[4] = e("div", { class: "fixed inset-0" }, null, -1)),
|
|
3677
|
-
e("div",
|
|
3678
|
-
e("div",
|
|
3679
|
-
e("div",
|
|
3717
|
+
e("div", ga, [
|
|
3718
|
+
e("div", pa, [
|
|
3719
|
+
e("div", ma, [
|
|
3680
3720
|
g(c(J), {
|
|
3681
3721
|
as: "template",
|
|
3682
3722
|
enter: "transform transition ease-in-out duration-500 sm:duration-700",
|
|
@@ -3687,22 +3727,22 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
3687
3727
|
"leave-to": "translate-x-full"
|
|
3688
3728
|
}, {
|
|
3689
3729
|
default: v(() => [
|
|
3690
|
-
g(c(
|
|
3730
|
+
g(c(he), { class: "pointer-events-auto w-screen max-w-md" }, {
|
|
3691
3731
|
default: v(() => [
|
|
3692
|
-
e("div",
|
|
3693
|
-
e("div",
|
|
3694
|
-
e("div",
|
|
3732
|
+
e("div", fa, [
|
|
3733
|
+
e("div", ya, [
|
|
3734
|
+
e("div", ha, [
|
|
3695
3735
|
g(c(Le), { class: "text-base font-semibold leading-6 text-white" }, {
|
|
3696
3736
|
default: v(() => [
|
|
3697
|
-
D(u(
|
|
3737
|
+
D(u(o.title), 1)
|
|
3698
3738
|
]),
|
|
3699
3739
|
_: 1
|
|
3700
3740
|
}),
|
|
3701
|
-
e("div",
|
|
3741
|
+
e("div", va, [
|
|
3702
3742
|
e("button", {
|
|
3703
3743
|
type: "button",
|
|
3704
3744
|
class: "relative rounded-md bg-indigo-700 text-indigo-200 hover:text-white outline-none",
|
|
3705
|
-
onClick: a[0] || (a[0] = (r) =>
|
|
3745
|
+
onClick: a[0] || (a[0] = (r) => o.$emit("closeRightBar"))
|
|
3706
3746
|
}, [
|
|
3707
3747
|
a[2] || (a[2] = e("span", { class: "absolute -inset-2.5" }, null, -1)),
|
|
3708
3748
|
a[3] || (a[3] = e("span", { class: "sr-only" }, "Close panel", -1)),
|
|
@@ -3713,12 +3753,12 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
3713
3753
|
])
|
|
3714
3754
|
])
|
|
3715
3755
|
]),
|
|
3716
|
-
e("div",
|
|
3717
|
-
e("p",
|
|
3756
|
+
e("div", ba, [
|
|
3757
|
+
e("p", wa, u(o.description), 1)
|
|
3718
3758
|
])
|
|
3719
3759
|
]),
|
|
3720
|
-
e("div",
|
|
3721
|
-
|
|
3760
|
+
e("div", xa, [
|
|
3761
|
+
I(o.$slots, "default")
|
|
3722
3762
|
])
|
|
3723
3763
|
])
|
|
3724
3764
|
]),
|
|
@@ -3737,15 +3777,15 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
3737
3777
|
_: 3
|
|
3738
3778
|
}, 8, ["show"]));
|
|
3739
3779
|
}
|
|
3740
|
-
}),
|
|
3780
|
+
}), _a = { class: "uiGallery" }, $a = {
|
|
3741
3781
|
key: 1,
|
|
3742
3782
|
role: "list",
|
|
3743
3783
|
class: "grid grid-cols-2 gap-x-4 gap-y-8 sm:grid-cols-3 sm:gap-x-4 lg:grid-cols-6"
|
|
3744
|
-
},
|
|
3784
|
+
}, Ca = { 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" }, Ba = ["src"], Ma = ["onClick"], Sa = { class: "pointer-events-none mt-2 block truncate text-sm font-medium text-gray-900" }, ja = { class: "flex items-center justify-between" }, Da = { class: "pointer-events-none block text-sm font-medium text-gray-500" }, Ta = {
|
|
3745
3785
|
key: 2,
|
|
3746
3786
|
role: "list",
|
|
3747
3787
|
class: "grid grid-cols-2 gap-x-4 gap-y-8 sm:grid-cols-3 sm:gap-x-4 lg:grid-cols-6"
|
|
3748
|
-
},
|
|
3788
|
+
}, za = /* @__PURE__ */ M({
|
|
3749
3789
|
__name: "uiGallery",
|
|
3750
3790
|
props: {
|
|
3751
3791
|
galleryId: {},
|
|
@@ -3755,61 +3795,61 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
3755
3795
|
},
|
|
3756
3796
|
emits: ["modalAction", "deleteImage", "imgClicked"],
|
|
3757
3797
|
setup(p, { emit: i }) {
|
|
3758
|
-
const
|
|
3759
|
-
a.value = !1,
|
|
3798
|
+
const o = i, a = Y(!1), r = (l) => {
|
|
3799
|
+
a.value = !1, o("modalAction", l);
|
|
3760
3800
|
};
|
|
3761
|
-
return (
|
|
3762
|
-
|
|
3801
|
+
return (l, t) => (s(), n("div", _a, [
|
|
3802
|
+
l.loading ? b("", !0) : (s(), _(Ve, {
|
|
3763
3803
|
key: 0,
|
|
3764
3804
|
open: a.value,
|
|
3765
3805
|
modalName: "deleteAllImagesModal",
|
|
3766
|
-
title:
|
|
3806
|
+
title: l.literals.modalTitle,
|
|
3767
3807
|
type: "warning",
|
|
3768
|
-
actions: [{ value: "close", name:
|
|
3808
|
+
actions: [{ value: "close", name: l.literals.closeAction }, { value: `deleteGallery_${l.galleryId}`, name: l.literals.deleteAction }],
|
|
3769
3809
|
onModalAction: t[0] || (t[0] = (m) => r(m))
|
|
3770
3810
|
}, {
|
|
3771
3811
|
default: v(() => [
|
|
3772
|
-
e("p", null, u(
|
|
3812
|
+
e("p", null, u(l.literals.modalText), 1)
|
|
3773
3813
|
]),
|
|
3774
3814
|
_: 1
|
|
3775
3815
|
}, 8, ["open", "title", "actions"])),
|
|
3776
|
-
|
|
3816
|
+
l.loading ? (s(), n("ul", Ta, [
|
|
3777
3817
|
(s(), n(k, null, $(4, (m) => e("li", null, t[2] || (t[2] = [
|
|
3778
3818
|
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),
|
|
3779
3819
|
e("p", { class: "animate-pulse h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28 mt-4" }, null, -1),
|
|
3780
3820
|
e("p", { class: "animate-pulse h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-14 mt-2" }, null, -1)
|
|
3781
3821
|
]))), 64))
|
|
3782
|
-
])) : (s(), n("ul",
|
|
3783
|
-
(s(!0), n(k, null, $(
|
|
3822
|
+
])) : (s(), n("ul", $a, [
|
|
3823
|
+
(s(!0), n(k, null, $(l.gallery, (m) => (s(), n("li", {
|
|
3784
3824
|
key: m.source,
|
|
3785
3825
|
class: "relative"
|
|
3786
3826
|
}, [
|
|
3787
|
-
e("div",
|
|
3827
|
+
e("div", Ca, [
|
|
3788
3828
|
e("img", {
|
|
3789
3829
|
src: m.source,
|
|
3790
3830
|
alt: "",
|
|
3791
3831
|
class: "pointer-events-none object-cover group-hover:opacity-75"
|
|
3792
|
-
}, null, 8,
|
|
3832
|
+
}, null, 8, Ba),
|
|
3793
3833
|
e("button", {
|
|
3794
3834
|
type: "button",
|
|
3795
3835
|
class: "absolute inset-0 focus:outline-none",
|
|
3796
|
-
onClick: (d) =>
|
|
3797
|
-
}, null, 8,
|
|
3836
|
+
onClick: (d) => l.$emit("imgClicked", m)
|
|
3837
|
+
}, null, 8, Ma)
|
|
3798
3838
|
]),
|
|
3799
|
-
e("p",
|
|
3800
|
-
e("div",
|
|
3801
|
-
e("p",
|
|
3839
|
+
e("p", Sa, u(m.title), 1),
|
|
3840
|
+
e("div", ja, [
|
|
3841
|
+
e("p", Da, u(m.size), 1),
|
|
3802
3842
|
g(j, {
|
|
3803
3843
|
class: "cursor-pointer",
|
|
3804
|
-
icon: c(
|
|
3844
|
+
icon: c(kt),
|
|
3805
3845
|
color: "red",
|
|
3806
3846
|
loading: !1,
|
|
3807
|
-
onClick: (d) =>
|
|
3847
|
+
onClick: (d) => l.$emit("deleteImage", m)
|
|
3808
3848
|
}, null, 8, ["icon", "onClick"])
|
|
3809
3849
|
])
|
|
3810
3850
|
]))), 128))
|
|
3811
3851
|
])),
|
|
3812
|
-
|
|
3852
|
+
l.gallery.length > 0 && !l.loading ? (s(), _(G, {
|
|
3813
3853
|
key: 3,
|
|
3814
3854
|
onClick: t[1] || (t[1] = (m) => a.value = !0),
|
|
3815
3855
|
class: "mt-8",
|
|
@@ -3818,16 +3858,16 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
3818
3858
|
size: "small"
|
|
3819
3859
|
}, {
|
|
3820
3860
|
default: v(() => [
|
|
3821
|
-
D(u(
|
|
3861
|
+
D(u(l.literals.deleteAllImages), 1)
|
|
3822
3862
|
]),
|
|
3823
3863
|
_: 1
|
|
3824
3864
|
})) : b("", !0)
|
|
3825
3865
|
]));
|
|
3826
3866
|
}
|
|
3827
|
-
}),
|
|
3867
|
+
}), La = { 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" }, Na = { class: "flex flex-row items-center w-full" }, Aa = { class: "content text-sm grow" }, Ya = { class: "font-bold" }, Pa = { key: 0 }, Oa = { class: "font-bold text-gray-400" }, Va = {
|
|
3828
3868
|
key: 1,
|
|
3829
3869
|
class: "animate-pulse"
|
|
3830
|
-
},
|
|
3870
|
+
}, Fa = /* @__PURE__ */ M({
|
|
3831
3871
|
__name: "uiDragAndDrop",
|
|
3832
3872
|
props: {
|
|
3833
3873
|
elements: {},
|
|
@@ -3835,46 +3875,46 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
3835
3875
|
},
|
|
3836
3876
|
emits: ["dragAndDropUpdated"],
|
|
3837
3877
|
setup(p, { emit: i }) {
|
|
3838
|
-
const
|
|
3839
|
-
let r =
|
|
3878
|
+
const o = i, a = p;
|
|
3879
|
+
let r = Y(a.elements);
|
|
3840
3880
|
W(() => a.elements, (t) => {
|
|
3841
3881
|
r.value = t;
|
|
3842
3882
|
});
|
|
3843
|
-
const
|
|
3844
|
-
|
|
3883
|
+
const l = (t) => {
|
|
3884
|
+
o("dragAndDropUpdated", t);
|
|
3845
3885
|
};
|
|
3846
|
-
return (t, m) => t.loading ? (s(), n("div",
|
|
3886
|
+
return (t, m) => t.loading ? (s(), n("div", Va, m[2] || (m[2] = [
|
|
3847
3887
|
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)
|
|
3848
3888
|
]))) : (s(), _(c(Ke), {
|
|
3849
3889
|
key: 0,
|
|
3850
3890
|
modelValue: c(r),
|
|
3851
3891
|
"onUpdate:modelValue": [
|
|
3852
|
-
m[0] || (m[0] = (d) =>
|
|
3853
|
-
m[1] || (m[1] = (d) =>
|
|
3892
|
+
m[0] || (m[0] = (d) => Me(r) ? r.value = d : r = d),
|
|
3893
|
+
m[1] || (m[1] = (d) => l(d))
|
|
3854
3894
|
]
|
|
3855
3895
|
}, {
|
|
3856
3896
|
item: v(({ item: d }) => [
|
|
3857
|
-
e("div",
|
|
3858
|
-
e("div",
|
|
3897
|
+
e("div", La, [
|
|
3898
|
+
e("div", Na, [
|
|
3859
3899
|
g(j, {
|
|
3860
|
-
icon: c(
|
|
3900
|
+
icon: c(gt),
|
|
3861
3901
|
loading: !1,
|
|
3862
3902
|
color: "gray",
|
|
3863
3903
|
class: "mr-4",
|
|
3864
3904
|
size: "big"
|
|
3865
3905
|
}, null, 8, ["icon"]),
|
|
3866
|
-
e("div",
|
|
3867
|
-
e("p",
|
|
3868
|
-
d.description ? (s(), n("p",
|
|
3906
|
+
e("div", Aa, [
|
|
3907
|
+
e("p", Ya, u(d.name), 1),
|
|
3908
|
+
d.description ? (s(), n("p", Pa, u(d.description), 1)) : b("", !0)
|
|
3869
3909
|
]),
|
|
3870
|
-
e("div",
|
|
3910
|
+
e("div", Oa, u(c(r).indexOf(d) + 1), 1)
|
|
3871
3911
|
])
|
|
3872
3912
|
])
|
|
3873
3913
|
]),
|
|
3874
3914
|
_: 1
|
|
3875
3915
|
}, 8, ["modelValue"]));
|
|
3876
3916
|
}
|
|
3877
|
-
}),
|
|
3917
|
+
}), Ia = { class: "chart-header flex flex-row justify-between" }, Ra = { class: "text-sm font-medium text-gray-500 truncate" }, qa = { class: "chart-content" }, Ha = { class: "h-full w-full flex items-center justify-center flex-col" }, Ua = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, Ea = /* @__PURE__ */ M({
|
|
3878
3918
|
__name: "uiCircleChart",
|
|
3879
3919
|
props: {
|
|
3880
3920
|
labels: {},
|
|
@@ -3893,9 +3933,9 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
3893
3933
|
height: { default: 320 },
|
|
3894
3934
|
annotations: {}
|
|
3895
3935
|
},
|
|
3896
|
-
emits: ["selectedRange", "chartUpdated", "dataPointSelection"],
|
|
3936
|
+
emits: ["selectedRange", "chartUpdated", "dataPointSelection", "maximizeChart"],
|
|
3897
3937
|
setup(p, { emit: i }) {
|
|
3898
|
-
const
|
|
3938
|
+
const o = i, a = p;
|
|
3899
3939
|
let r = {
|
|
3900
3940
|
chart: {
|
|
3901
3941
|
toolbar: {
|
|
@@ -3928,22 +3968,22 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
3928
3968
|
}
|
|
3929
3969
|
}
|
|
3930
3970
|
};
|
|
3931
|
-
const
|
|
3932
|
-
|
|
3971
|
+
const l = () => ({ ...r, ...a.options }), t = O(() => a.series), m = O(() => l()), d = () => o("chartUpdated"), f = (y, w, B) => {
|
|
3972
|
+
o("dataPointSelection", { id: a.id, chartContext: w, config: B, event: y });
|
|
3933
3973
|
};
|
|
3934
3974
|
return (y, w) => (s(), n(k, null, [
|
|
3935
3975
|
C(e("div", {
|
|
3936
3976
|
class: h(["h-[" + y.height + "px]", "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"])
|
|
3937
3977
|
}, [
|
|
3938
|
-
e("div",
|
|
3939
|
-
e("div",
|
|
3940
|
-
g(
|
|
3978
|
+
e("div", Ia, [
|
|
3979
|
+
e("div", Ra, u(y.title), 1),
|
|
3980
|
+
g(qe, {
|
|
3941
3981
|
range: y.range,
|
|
3942
|
-
onRangeSelected: w[0] || (w[0] = (
|
|
3982
|
+
onRangeSelected: w[0] || (w[0] = (B) => y.$emit("selectedRange", { range: B, chartId: y.id }))
|
|
3943
3983
|
}, null, 8, ["range"])
|
|
3944
3984
|
]),
|
|
3945
|
-
C(e("div",
|
|
3946
|
-
g(c(
|
|
3985
|
+
C(e("div", qa, [
|
|
3986
|
+
g(c(we), {
|
|
3947
3987
|
class: "flex items-center justify-center",
|
|
3948
3988
|
type: "donut",
|
|
3949
3989
|
series: t.value,
|
|
@@ -3956,7 +3996,7 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
3956
3996
|
], 512), [
|
|
3957
3997
|
[S, !y.empty]
|
|
3958
3998
|
]),
|
|
3959
|
-
C(e("div",
|
|
3999
|
+
C(e("div", Ha, [
|
|
3960
4000
|
g(j, {
|
|
3961
4001
|
icon: c(q),
|
|
3962
4002
|
color: "gray",
|
|
@@ -3970,7 +4010,7 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
3970
4010
|
], 2), [
|
|
3971
4011
|
[S, !y.loading]
|
|
3972
4012
|
]),
|
|
3973
|
-
C(e("div",
|
|
4013
|
+
C(e("div", Ua, w[2] || (w[2] = [
|
|
3974
4014
|
e("div", {
|
|
3975
4015
|
role: "status",
|
|
3976
4016
|
class: "w-full animate-pulse h-full flex flex-col"
|
|
@@ -4001,13 +4041,13 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
4001
4041
|
])
|
|
4002
4042
|
], 64));
|
|
4003
4043
|
}
|
|
4004
|
-
}),
|
|
4044
|
+
}), Za = {
|
|
4005
4045
|
key: 0,
|
|
4006
4046
|
class: "flex flex-col lg:flex-row w-full gap-y-4 gap-x-2"
|
|
4007
|
-
},
|
|
4047
|
+
}, Ja = {
|
|
4008
4048
|
key: 1,
|
|
4009
4049
|
class: "flex flex-col lg:flex-row w-full gap-y-4 gap-x-2"
|
|
4010
|
-
},
|
|
4050
|
+
}, Ga = /* @__PURE__ */ M({
|
|
4011
4051
|
__name: "uiDateRange",
|
|
4012
4052
|
props: {
|
|
4013
4053
|
id: {},
|
|
@@ -4022,13 +4062,13 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
4022
4062
|
},
|
|
4023
4063
|
emits: ["uiDateRangeButtonClicked"],
|
|
4024
4064
|
setup(p, { emit: i }) {
|
|
4025
|
-
let
|
|
4026
|
-
const a = (r,
|
|
4027
|
-
r === "from" ?
|
|
4065
|
+
let o = ue({ from: "", to: "" });
|
|
4066
|
+
const a = (r, l) => {
|
|
4067
|
+
r === "from" ? o.from = l : o.to = l;
|
|
4028
4068
|
};
|
|
4029
|
-
return (r,
|
|
4069
|
+
return (r, l) => {
|
|
4030
4070
|
var t, m, d, f;
|
|
4031
|
-
return r.loading ? (s(), n("div",
|
|
4071
|
+
return r.loading ? (s(), n("div", Ja, [
|
|
4032
4072
|
g(Z, {
|
|
4033
4073
|
name: "dateFrom",
|
|
4034
4074
|
loading: !0
|
|
@@ -4038,14 +4078,14 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
4038
4078
|
loading: !0
|
|
4039
4079
|
}),
|
|
4040
4080
|
g(G, { loading: !0 }, {
|
|
4041
|
-
default: v(() =>
|
|
4081
|
+
default: v(() => l[3] || (l[3] = [
|
|
4042
4082
|
D("Search")
|
|
4043
4083
|
])),
|
|
4044
4084
|
_: 1
|
|
4045
4085
|
})
|
|
4046
|
-
])) : (s(), n("div",
|
|
4086
|
+
])) : (s(), n("div", Za, [
|
|
4047
4087
|
g(Z, {
|
|
4048
|
-
type: "
|
|
4088
|
+
type: "datetime-local",
|
|
4049
4089
|
loading: !1,
|
|
4050
4090
|
addOn: r.literals.from,
|
|
4051
4091
|
name: `dateFrom_${r.id}`,
|
|
@@ -4054,10 +4094,10 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
4054
4094
|
error: r.error,
|
|
4055
4095
|
disabled: r.disabled,
|
|
4056
4096
|
label: r.label,
|
|
4057
|
-
onInputChanged:
|
|
4097
|
+
onInputChanged: l[0] || (l[0] = (y) => a("from", y.value))
|
|
4058
4098
|
}, null, 8, ["addOn", "name", "color", "value", "error", "disabled", "label"]),
|
|
4059
4099
|
g(Z, {
|
|
4060
|
-
type: "
|
|
4100
|
+
type: "datetime-local",
|
|
4061
4101
|
loading: !1,
|
|
4062
4102
|
class: h([{ "mt-6": r.label }]),
|
|
4063
4103
|
addOn: r.literals.to,
|
|
@@ -4067,14 +4107,14 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
4067
4107
|
error: r.error,
|
|
4068
4108
|
disabled: r.disabled,
|
|
4069
4109
|
label: void 0,
|
|
4070
|
-
onInputChanged:
|
|
4110
|
+
onInputChanged: l[1] || (l[1] = (y) => a("to", y.value))
|
|
4071
4111
|
}, null, 8, ["class", "addOn", "name", "color", "value", "error", "disabled"]),
|
|
4072
4112
|
g(G, {
|
|
4073
4113
|
disabled: r.disabled,
|
|
4074
4114
|
color: "primary",
|
|
4075
4115
|
loading: !1,
|
|
4076
4116
|
class: h([{ "mt-6": r.label }, "h-10"]),
|
|
4077
|
-
onClick:
|
|
4117
|
+
onClick: l[2] || (l[2] = (y) => r.$emit("uiDateRangeButtonClicked", c(o)))
|
|
4078
4118
|
}, {
|
|
4079
4119
|
default: v(() => [
|
|
4080
4120
|
D(u(r.literals.search), 1)
|
|
@@ -4084,16 +4124,16 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
4084
4124
|
]));
|
|
4085
4125
|
};
|
|
4086
4126
|
}
|
|
4087
|
-
}),
|
|
4127
|
+
}), Wa = { class: "flex justify-between items-center" }, Qa = {
|
|
4088
4128
|
key: 0,
|
|
4089
4129
|
class: "block text-sm font-medium text-gray-700"
|
|
4090
|
-
},
|
|
4130
|
+
}, Ka = {
|
|
4091
4131
|
key: 1,
|
|
4092
4132
|
class: "text-[10px] text-gray-500 uppercase justify-self-end"
|
|
4093
|
-
},
|
|
4133
|
+
}, Xa = {
|
|
4094
4134
|
key: 1,
|
|
4095
4135
|
class: "h-2 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 w-full"
|
|
4096
|
-
},
|
|
4136
|
+
}, ei = /* @__PURE__ */ M({
|
|
4097
4137
|
__name: "uiRangeSlider",
|
|
4098
4138
|
props: {
|
|
4099
4139
|
loading: { type: Boolean, default: !0 },
|
|
@@ -4106,23 +4146,23 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
4106
4146
|
},
|
|
4107
4147
|
emits: ["sliderUpdated"],
|
|
4108
4148
|
setup(p, { emit: i }) {
|
|
4109
|
-
const
|
|
4110
|
-
return (
|
|
4111
|
-
e("div",
|
|
4112
|
-
|
|
4113
|
-
|
|
4149
|
+
const o = i, r = Y(p.sliderValue);
|
|
4150
|
+
return (l, t) => (s(), n("div", null, [
|
|
4151
|
+
e("div", Wa, [
|
|
4152
|
+
l.label ? (s(), n("label", Qa, u(l.label), 1)) : b("", !0),
|
|
4153
|
+
l.requiredText ? (s(), n("span", Ka, u(l.requiredText), 1)) : b("", !0)
|
|
4114
4154
|
]),
|
|
4115
4155
|
e("div", {
|
|
4116
|
-
class: h([{ "mt-1":
|
|
4156
|
+
class: h([{ "mt-1": l.label }, "pt-16 px-6 pb-6 bg-gray-50 border border-gray-300 rounded-lg shadow-sm"])
|
|
4117
4157
|
}, [
|
|
4118
|
-
|
|
4158
|
+
l.loading ? (s(), n("p", Xa)) : (s(), _(c(Xe), {
|
|
4119
4159
|
key: 0,
|
|
4120
4160
|
modelValue: r.value,
|
|
4121
4161
|
"onUpdate:modelValue": t[0] || (t[0] = (m) => r.value = m),
|
|
4122
|
-
min:
|
|
4123
|
-
max:
|
|
4124
|
-
disabled:
|
|
4125
|
-
onChange: t[1] || (t[1] = (m) =>
|
|
4162
|
+
min: l.min,
|
|
4163
|
+
max: l.max,
|
|
4164
|
+
disabled: l.disabled,
|
|
4165
|
+
onChange: t[1] || (t[1] = (m) => o("sliderUpdated", m)),
|
|
4126
4166
|
classes: {
|
|
4127
4167
|
base: "w-full h-full relative z-1 bg-gray-300 rounded",
|
|
4128
4168
|
tooltip: "absolute block text-sm font-semibold whitespace-nowrap py-1 px-1.5 min-w-5 text-center text-white rounded border border-indigo-600 bg-indigo-600 transform h:-translate-x-1/2 h:left-1/2 v:-translate-y-1/2 v:top-1/2 slider-disabled:bg-gray-400 slider-disabled:border-gray-400 merge-h:translate-x-1/2 merge-h:left-auto merge-v:-translate-x-4 merge-v:top-auto tt-focus:hidden tt-focused:block tt-drag:hidden tt-dragging:block"
|
|
@@ -4131,27 +4171,27 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
4131
4171
|
], 2)
|
|
4132
4172
|
]));
|
|
4133
4173
|
}
|
|
4134
|
-
}),
|
|
4174
|
+
}), ti = { class: "mt-1 mb-8 text-sm text-gray-500" }, si = /* @__PURE__ */ M({
|
|
4135
4175
|
__name: "uiSectionTitle",
|
|
4136
4176
|
props: {
|
|
4137
4177
|
title: {},
|
|
4138
4178
|
description: {}
|
|
4139
4179
|
},
|
|
4140
4180
|
setup(p) {
|
|
4141
|
-
return (i,
|
|
4181
|
+
return (i, o) => (s(), n(k, null, [
|
|
4142
4182
|
e("h3", {
|
|
4143
4183
|
class: h(["text-lg font-medium leading-6 text-gray-900", { "mb-8": i.description === void 0 }])
|
|
4144
4184
|
}, u(i.title), 3),
|
|
4145
|
-
e("p",
|
|
4185
|
+
e("p", ti, u(i.description), 1)
|
|
4146
4186
|
], 64));
|
|
4147
4187
|
}
|
|
4148
|
-
}),
|
|
4188
|
+
}), oi = {
|
|
4149
4189
|
key: 0,
|
|
4150
4190
|
class: "col-span-1 flex flex-col divide-y divide-gray-200 rounded-lg bg-white text-center shadow"
|
|
4151
|
-
},
|
|
4191
|
+
}, li = { class: "flex flex-1 flex-col p-8" }, ri = { class: "text-2xl font-bold text-gray-900" }, ni = { class: "mt-1 flex flex-grow flex-col justify-between" }, ai = { class: "mt-3 flex flex-wrap gap-x-1 gap-y-1 justify-center" }, ii = {
|
|
4152
4192
|
key: 1,
|
|
4153
4193
|
class: "col-span-1 flex flex-col divide-y divide-gray-200 rounded-lg bg-white text-center shadow"
|
|
4154
|
-
},
|
|
4194
|
+
}, di = { class: "flex flex-1 flex-col p-8" }, ui = { class: "rounded-md p-3 flex items-center justify-center mx-auto mb-4 bg-gray-200" }, ci = { 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" }, pi = /* @__PURE__ */ M({
|
|
4155
4195
|
__name: "uiDeviceStatus",
|
|
4156
4196
|
props: {
|
|
4157
4197
|
id: {},
|
|
@@ -4164,26 +4204,26 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
4164
4204
|
},
|
|
4165
4205
|
emits: ["deviceStatusTagClicked", "deviceStatusQtyClicked"],
|
|
4166
4206
|
setup(p, { emit: i }) {
|
|
4167
|
-
return (
|
|
4168
|
-
e("div",
|
|
4169
|
-
e("div",
|
|
4207
|
+
return (o, a) => o.loading ? (s(), n("div", ii, [
|
|
4208
|
+
e("div", di, [
|
|
4209
|
+
e("div", ui, [
|
|
4170
4210
|
g(j, {
|
|
4171
|
-
icon:
|
|
4211
|
+
icon: o.icon,
|
|
4172
4212
|
size: "huge",
|
|
4173
4213
|
class: "text-white",
|
|
4174
4214
|
"aria-hidden": "true",
|
|
4175
|
-
loading:
|
|
4215
|
+
loading: o.loading
|
|
4176
4216
|
}, null, 8, ["icon", "loading"])
|
|
4177
4217
|
]),
|
|
4178
4218
|
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)),
|
|
4179
|
-
e("dl",
|
|
4180
|
-
e("dd",
|
|
4181
|
-
(s(!0), n(k, null, $(
|
|
4182
|
-
key:
|
|
4183
|
-
loading:
|
|
4219
|
+
e("dl", ci, [
|
|
4220
|
+
e("dd", gi, [
|
|
4221
|
+
(s(!0), n(k, null, $(o.tags, (r, l) => (s(), _(R, {
|
|
4222
|
+
key: l,
|
|
4223
|
+
loading: o.loading,
|
|
4184
4224
|
event: r.event,
|
|
4185
4225
|
color: r.color,
|
|
4186
|
-
onTagEvent: a[2] || (a[2] = (t) =>
|
|
4226
|
+
onTagEvent: a[2] || (a[2] = (t) => o.$emit("deviceStatusTagClicked", t))
|
|
4187
4227
|
}, {
|
|
4188
4228
|
default: v(() => [
|
|
4189
4229
|
D(u(r.name), 1)
|
|
@@ -4193,43 +4233,43 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
4193
4233
|
])
|
|
4194
4234
|
])
|
|
4195
4235
|
])
|
|
4196
|
-
])) : (s(), n("div",
|
|
4197
|
-
e("div",
|
|
4236
|
+
])) : (s(), n("div", oi, [
|
|
4237
|
+
e("div", li, [
|
|
4198
4238
|
e("div", {
|
|
4199
4239
|
class: h(["rounded-md p-3 flex items-center justify-center mx-auto mb-4", {
|
|
4200
|
-
"bg-green-500": !
|
|
4201
|
-
"bg-red-500":
|
|
4202
|
-
"bg-yellow-500":
|
|
4203
|
-
"bg-indigo-500":
|
|
4204
|
-
"bg-cyan-300":
|
|
4205
|
-
"bg-gray-100":
|
|
4240
|
+
"bg-green-500": !o.color || o.color === "green",
|
|
4241
|
+
"bg-red-500": o.color === "red",
|
|
4242
|
+
"bg-yellow-500": o.color === "yellow",
|
|
4243
|
+
"bg-indigo-500": o.color === "primary",
|
|
4244
|
+
"bg-cyan-300": o.color === "secondary",
|
|
4245
|
+
"bg-gray-100": o.color === "light"
|
|
4206
4246
|
}])
|
|
4207
4247
|
}, [
|
|
4208
4248
|
g(j, {
|
|
4209
|
-
icon:
|
|
4249
|
+
icon: o.icon,
|
|
4210
4250
|
size: "huge",
|
|
4211
4251
|
class: "text-white",
|
|
4212
4252
|
"aria-hidden": "true",
|
|
4213
4253
|
loading: !1
|
|
4214
4254
|
}, null, 8, ["icon"])
|
|
4215
4255
|
], 2),
|
|
4216
|
-
e("h3",
|
|
4217
|
-
D(u(
|
|
4256
|
+
e("h3", ri, [
|
|
4257
|
+
D(u(o.name) + " ", 1),
|
|
4218
4258
|
C(e("span", {
|
|
4219
4259
|
class: "text-indigo-600 hover:text-indigo-900 cursor-pointer",
|
|
4220
|
-
onClick: a[0] || (a[0] = (r) =>
|
|
4221
|
-
}, "(" + u(
|
|
4222
|
-
[S,
|
|
4260
|
+
onClick: a[0] || (a[0] = (r) => o.$emit("deviceStatusQtyClicked", o.id))
|
|
4261
|
+
}, "(" + u(o.qty) + ")", 513), [
|
|
4262
|
+
[S, o.qty > 0]
|
|
4223
4263
|
])
|
|
4224
4264
|
]),
|
|
4225
|
-
e("dl",
|
|
4226
|
-
e("dd",
|
|
4227
|
-
(s(!0), n(k, null, $(
|
|
4228
|
-
key:
|
|
4265
|
+
e("dl", ni, [
|
|
4266
|
+
e("dd", ai, [
|
|
4267
|
+
(s(!0), n(k, null, $(o.tags, (r, l) => (s(), _(R, {
|
|
4268
|
+
key: l,
|
|
4229
4269
|
loading: !1,
|
|
4230
4270
|
event: r.event,
|
|
4231
4271
|
color: r.color,
|
|
4232
|
-
onTagEvent: a[1] || (a[1] = (t) =>
|
|
4272
|
+
onTagEvent: a[1] || (a[1] = (t) => o.$emit("deviceStatusTagClicked", t))
|
|
4233
4273
|
}, {
|
|
4234
4274
|
default: v(() => [
|
|
4235
4275
|
D(u(r.name), 1)
|
|
@@ -4241,24 +4281,24 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
4241
4281
|
])
|
|
4242
4282
|
]));
|
|
4243
4283
|
}
|
|
4244
|
-
}),
|
|
4284
|
+
}), mi = { class: "flex flex-row grow border-r border-gray-200 bg-white pr-6" }, fi = { class: "bg-indigo-600 w-16 mr-6" }, yi = ["onClick"], hi = {
|
|
4245
4285
|
key: 0,
|
|
4246
4286
|
class: "flex flex-col grow gap-y-5 overflow-y-auto pr-6"
|
|
4247
|
-
},
|
|
4287
|
+
}, vi = { class: "flex h-16 shrink-0 items-center" }, bi = ["src"], wi = { class: "flex flex-1 flex-col" }, xi = {
|
|
4248
4288
|
key: 0,
|
|
4249
4289
|
role: "list",
|
|
4250
4290
|
class: "flex flex-1 flex-col gap-y-7 mb-4"
|
|
4251
|
-
},
|
|
4291
|
+
}, ki = {
|
|
4252
4292
|
role: "list",
|
|
4253
4293
|
class: "ml-2 space-y-1"
|
|
4254
|
-
},
|
|
4294
|
+
}, _i = ["onClick"], $i = {
|
|
4255
4295
|
key: 1,
|
|
4256
4296
|
role: "list",
|
|
4257
4297
|
class: "flex flex-1 flex-col gap-y-7 mb-4"
|
|
4258
|
-
},
|
|
4298
|
+
}, Ci = { class: "ml-2 space-y-1" }, Bi = { class: "font-bold mb-4" }, Mi = {
|
|
4259
4299
|
key: 1,
|
|
4260
4300
|
class: "flex flex-col grow gap-y-5 overflow-y-auto pr-6"
|
|
4261
|
-
},
|
|
4301
|
+
}, Si = { class: "h-12 flex flex-row items-center" }, $e = /* @__PURE__ */ M({
|
|
4262
4302
|
__name: "uiSidebarV2",
|
|
4263
4303
|
props: {
|
|
4264
4304
|
navigation: {},
|
|
@@ -4270,13 +4310,13 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
4270
4310
|
},
|
|
4271
4311
|
emits: ["productBarClick", "sideBarClick"],
|
|
4272
4312
|
setup(p, { emit: i }) {
|
|
4273
|
-
return (
|
|
4274
|
-
e("div",
|
|
4313
|
+
return (o, a) => (s(), n("div", mi, [
|
|
4314
|
+
e("div", fi, [
|
|
4275
4315
|
e("ul", null, [
|
|
4276
|
-
(s(!0), n(k, null, $(
|
|
4277
|
-
key:
|
|
4316
|
+
(s(!0), n(k, null, $(o.productsSidebar, (r, l) => (s(), n("li", {
|
|
4317
|
+
key: l,
|
|
4278
4318
|
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"]),
|
|
4279
|
-
onClick: (t) =>
|
|
4319
|
+
onClick: (t) => o.$emit("productBarClick", r.name)
|
|
4280
4320
|
}, [
|
|
4281
4321
|
g(j, {
|
|
4282
4322
|
icon: r.icon,
|
|
@@ -4284,36 +4324,36 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
4284
4324
|
color: "white",
|
|
4285
4325
|
size: "bigger"
|
|
4286
4326
|
}, null, 8, ["icon"])
|
|
4287
|
-
], 10,
|
|
4327
|
+
], 10, yi))), 128))
|
|
4288
4328
|
])
|
|
4289
4329
|
]),
|
|
4290
|
-
|
|
4291
|
-
(s(), n(k, null, $(5, (r) => e("div",
|
|
4330
|
+
o.loading ? (s(), n("div", Mi, [
|
|
4331
|
+
(s(), n(k, null, $(5, (r) => e("div", Si, a[0] || (a[0] = [
|
|
4292
4332
|
e("div", { class: "w-6 h-6 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 mr-4" }, null, -1),
|
|
4293
4333
|
e("div", { class: "h-3 animate-pulse bg-gray-200 rounded-full w-1/2 dark:bg-gray-300" }, null, -1)
|
|
4294
4334
|
]))), 64))
|
|
4295
|
-
])) : (s(), n("div",
|
|
4296
|
-
e("div",
|
|
4335
|
+
])) : (s(), n("div", hi, [
|
|
4336
|
+
e("div", vi, [
|
|
4297
4337
|
e("img", {
|
|
4298
4338
|
class: "h-8 w-auto",
|
|
4299
|
-
src:
|
|
4339
|
+
src: o.logo,
|
|
4300
4340
|
alt: "Your Company"
|
|
4301
|
-
}, null, 8,
|
|
4341
|
+
}, null, 8, bi)
|
|
4302
4342
|
]),
|
|
4303
|
-
e("nav",
|
|
4304
|
-
|
|
4343
|
+
e("nav", wi, [
|
|
4344
|
+
o.isFilterNavigation ? b("", !0) : (s(), n("ul", xi, [
|
|
4305
4345
|
e("li", null, [
|
|
4306
|
-
e("ul",
|
|
4307
|
-
(s(!0), n(k, null, $(
|
|
4346
|
+
e("ul", ki, [
|
|
4347
|
+
(s(!0), n(k, null, $(o.navigation, (r) => (s(), n("li", {
|
|
4308
4348
|
key: r.name
|
|
4309
4349
|
}, [
|
|
4310
|
-
r.children ? (s(), _(c(
|
|
4350
|
+
r.children ? (s(), _(c(ve), {
|
|
4311
4351
|
key: 1,
|
|
4312
4352
|
as: "div"
|
|
4313
4353
|
}, {
|
|
4314
4354
|
default: v(() => [
|
|
4315
4355
|
g(c(U), {
|
|
4316
|
-
onClick: (
|
|
4356
|
+
onClick: (l) => o.$emit("sideBarClick", r.id),
|
|
4317
4357
|
class: h([r.current ? "bg-gray-100" : "hover:bg-gray-100", "flex w-full items-center gap-x-3 rounded-md p-2 text-left text-sm font-semibold leading-6 text-gray-700"])
|
|
4318
4358
|
}, {
|
|
4319
4359
|
default: v(() => [
|
|
@@ -4327,29 +4367,29 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
4327
4367
|
}, null, 8, ["icon"]),
|
|
4328
4368
|
D(" " + u(r.name) + " ", 1),
|
|
4329
4369
|
g(c(X), {
|
|
4330
|
-
class: h([r.children.some((
|
|
4370
|
+
class: h([r.children.some((l) => l.current) || r.current ? "rotate-90 text-primary-500" : "text-gray-400", "ml-auto h-5 w-5 shrink-0"]),
|
|
4331
4371
|
"aria-hidden": "true"
|
|
4332
4372
|
}, null, 8, ["class"])
|
|
4333
4373
|
]),
|
|
4334
4374
|
_: 2
|
|
4335
4375
|
}, 1032, ["onClick", "class"]),
|
|
4336
4376
|
C(e("div", null, [
|
|
4337
|
-
g(c(
|
|
4377
|
+
g(c(be), {
|
|
4338
4378
|
as: "ul",
|
|
4339
4379
|
class: "mt-1 px-2",
|
|
4340
4380
|
static: ""
|
|
4341
4381
|
}, {
|
|
4342
4382
|
default: v(() => [
|
|
4343
|
-
(s(!0), n(k, null, $(r.children, (
|
|
4344
|
-
key:
|
|
4383
|
+
(s(!0), n(k, null, $(r.children, (l) => (s(), n("li", {
|
|
4384
|
+
key: l.name
|
|
4345
4385
|
}, [
|
|
4346
4386
|
g(c(U), {
|
|
4347
4387
|
as: "a",
|
|
4348
|
-
onClick: (t) =>
|
|
4349
|
-
class: h([
|
|
4388
|
+
onClick: (t) => o.$emit("sideBarClick", l.id),
|
|
4389
|
+
class: h([l.current ? "bg-gray-100" : "hover:bg-gray-100", "block rounded-md py-2 pl-9 pr-2 text-sm leading-6 text-gray-700 cursor-pointer"])
|
|
4350
4390
|
}, {
|
|
4351
4391
|
default: v(() => [
|
|
4352
|
-
D(u(
|
|
4392
|
+
D(u(l.name), 1)
|
|
4353
4393
|
]),
|
|
4354
4394
|
_: 2
|
|
4355
4395
|
}, 1032, ["onClick", "class"])
|
|
@@ -4358,13 +4398,13 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
4358
4398
|
_: 2
|
|
4359
4399
|
}, 1024)
|
|
4360
4400
|
], 512), [
|
|
4361
|
-
[S, r.children.some((
|
|
4401
|
+
[S, r.children.some((l) => l.current) || r.current]
|
|
4362
4402
|
])
|
|
4363
4403
|
]),
|
|
4364
4404
|
_: 2
|
|
4365
4405
|
}, 1024)) : (s(), n("div", {
|
|
4366
4406
|
key: 0,
|
|
4367
|
-
onClick: (
|
|
4407
|
+
onClick: (l) => o.$emit("sideBarClick", r.id),
|
|
4368
4408
|
class: h([r.current ? "bg-gray-100" : "hover:bg-gray-100", "group flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6 text-gray-700 cursor-pointer"])
|
|
4369
4409
|
}, [
|
|
4370
4410
|
g(j, {
|
|
@@ -4376,27 +4416,27 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
4376
4416
|
class: "shrink-0"
|
|
4377
4417
|
}, null, 8, ["icon"]),
|
|
4378
4418
|
D(" " + u(r.name), 1)
|
|
4379
|
-
], 10,
|
|
4419
|
+
], 10, _i))
|
|
4380
4420
|
]))), 128))
|
|
4381
4421
|
])
|
|
4382
4422
|
])
|
|
4383
4423
|
])),
|
|
4384
|
-
|
|
4385
|
-
e("li",
|
|
4386
|
-
|
|
4424
|
+
o.isFilterNavigation && o.filterNavigation ? (s(), n("ul", $i, [
|
|
4425
|
+
e("li", Ci, [
|
|
4426
|
+
o.filterNavigation.hasSearch && o.filterNavigation.search ? (s(), _(Z, {
|
|
4387
4427
|
key: 0,
|
|
4388
|
-
name:
|
|
4389
|
-
label:
|
|
4390
|
-
placeholder:
|
|
4391
|
-
value:
|
|
4392
|
-
loading:
|
|
4428
|
+
name: o.filterNavigation.search.name,
|
|
4429
|
+
label: o.filterNavigation.search.label,
|
|
4430
|
+
placeholder: o.filterNavigation.search.placeholder,
|
|
4431
|
+
value: o.filterNavigation.search.value,
|
|
4432
|
+
loading: o.filterNavigation.search.loading
|
|
4393
4433
|
}, null, 8, ["name", "label", "placeholder", "value", "loading"])) : b("", !0)
|
|
4394
4434
|
]),
|
|
4395
|
-
(s(!0), n(k, null, $(
|
|
4435
|
+
(s(!0), n(k, null, $(o.filterNavigation.items, (r, l) => (s(), n("li", {
|
|
4396
4436
|
class: "ml-2",
|
|
4397
|
-
key:
|
|
4437
|
+
key: l
|
|
4398
4438
|
}, [
|
|
4399
|
-
e("p",
|
|
4439
|
+
e("p", Bi, u(r.label), 1),
|
|
4400
4440
|
(s(!0), n(k, null, $(r.filters, (t, m) => (s(), _(Ne, {
|
|
4401
4441
|
class: "mb-2",
|
|
4402
4442
|
value: t.value,
|
|
@@ -4413,14 +4453,14 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
4413
4453
|
]))
|
|
4414
4454
|
]));
|
|
4415
4455
|
}
|
|
4416
|
-
}),
|
|
4456
|
+
}), ji = { class: "fixed inset-0 flex" }, Di = { class: "absolute left-full top-0 flex w-16 justify-center pt-5" }, Ti = { class: "hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-[25rem] lg:flex-col" }, zi = { class: "lg:pl-[25rem]" }, Li = { 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" }, Ni = { class: "flex flex-1 gap-x-4 self-stretch lg:gap-x-6" }, Ai = {
|
|
4417
4457
|
class: "relative flex flex-1",
|
|
4418
4458
|
action: "#",
|
|
4419
4459
|
method: "GET"
|
|
4420
|
-
},
|
|
4460
|
+
}, Yi = { 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" }, Pi = { class: "flex items-center gap-x-4 lg:gap-x-6" }, Oi = {
|
|
4421
4461
|
type: "button",
|
|
4422
4462
|
class: "-m-2.5 p-2.5 text-gray-400 hover:text-gray-500 relative"
|
|
4423
|
-
},
|
|
4463
|
+
}, Vi = { class: "redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute top-1 left-2" }, Fi = ["src"], Ii = { class: "hidden lg:flex lg:items-center" }, Ri = ["onClick"], qi = { class: "py-7" }, Hi = { class: "px-7 lg:px-10" }, Ui = /* @__PURE__ */ M({
|
|
4424
4464
|
__name: "uiWrapper",
|
|
4425
4465
|
props: {
|
|
4426
4466
|
topbar: {},
|
|
@@ -4428,14 +4468,14 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
4428
4468
|
},
|
|
4429
4469
|
emits: ["productBarClick", "sideBarClick", "selectChanged", "topBarClick"],
|
|
4430
4470
|
setup(p, { emit: i }) {
|
|
4431
|
-
const
|
|
4471
|
+
const o = p, a = Y(""), r = O(() => a.value === "" ? o.topbar.selectItems : o.topbar.selectItems.filter((d) => d.name.toLowerCase().includes(a.value.toLowerCase()))), l = (d) => (d == null ? void 0 : d.name) ?? "", t = O(() => o.topbar.selectedItem), m = Y(!1);
|
|
4432
4472
|
return (d, f) => (s(), n("div", null, [
|
|
4433
|
-
g(c(
|
|
4473
|
+
g(c(fe), {
|
|
4434
4474
|
as: "template",
|
|
4435
4475
|
show: m.value
|
|
4436
4476
|
}, {
|
|
4437
4477
|
default: v(() => [
|
|
4438
|
-
g(c(
|
|
4478
|
+
g(c(ye), {
|
|
4439
4479
|
class: "relative z-50 lg:hidden",
|
|
4440
4480
|
onClose: f[3] || (f[3] = (y) => m.value = !1)
|
|
4441
4481
|
}, {
|
|
@@ -4454,7 +4494,7 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
4454
4494
|
])),
|
|
4455
4495
|
_: 1
|
|
4456
4496
|
}),
|
|
4457
|
-
e("div",
|
|
4497
|
+
e("div", ji, [
|
|
4458
4498
|
g(c(J), {
|
|
4459
4499
|
as: "template",
|
|
4460
4500
|
enter: "transition ease-in-out duration-300 transform",
|
|
@@ -4465,7 +4505,7 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
4465
4505
|
"leave-to": "-translate-x-full"
|
|
4466
4506
|
}, {
|
|
4467
4507
|
default: v(() => [
|
|
4468
|
-
g(c(
|
|
4508
|
+
g(c(he), { class: "relative mr-16 flex w-full max-w-xs flex-1" }, {
|
|
4469
4509
|
default: v(() => [
|
|
4470
4510
|
g(c(J), {
|
|
4471
4511
|
as: "template",
|
|
@@ -4477,7 +4517,7 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
4477
4517
|
"leave-to": "opacity-0"
|
|
4478
4518
|
}, {
|
|
4479
4519
|
default: v(() => [
|
|
4480
|
-
e("div",
|
|
4520
|
+
e("div", Di, [
|
|
4481
4521
|
e("button", {
|
|
4482
4522
|
type: "button",
|
|
4483
4523
|
class: "-m-2.5 p-2.5",
|
|
@@ -4493,7 +4533,7 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
4493
4533
|
]),
|
|
4494
4534
|
_: 1
|
|
4495
4535
|
}),
|
|
4496
|
-
g(
|
|
4536
|
+
g($e, {
|
|
4497
4537
|
productsSidebar: d.sidebar.productsSidebar,
|
|
4498
4538
|
isFilterNavigation: d.sidebar.isFilterNavigation,
|
|
4499
4539
|
navigation: d.sidebar.navigation,
|
|
@@ -4516,8 +4556,8 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
4516
4556
|
]),
|
|
4517
4557
|
_: 1
|
|
4518
4558
|
}, 8, ["show"]),
|
|
4519
|
-
e("div",
|
|
4520
|
-
g(
|
|
4559
|
+
e("div", Ti, [
|
|
4560
|
+
g($e, {
|
|
4521
4561
|
productsSidebar: d.sidebar.productsSidebar,
|
|
4522
4562
|
isFilterNavigation: d.sidebar.isFilterNavigation,
|
|
4523
4563
|
navigation: d.sidebar.navigation,
|
|
@@ -4528,8 +4568,8 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
4528
4568
|
onProductBarClick: f[5] || (f[5] = (y) => d.$emit("productBarClick", y))
|
|
4529
4569
|
}, null, 8, ["productsSidebar", "isFilterNavigation", "navigation", "filterNavigation", "logo"])
|
|
4530
4570
|
]),
|
|
4531
|
-
e("div",
|
|
4532
|
-
e("div",
|
|
4571
|
+
e("div", zi, [
|
|
4572
|
+
e("div", Li, [
|
|
4533
4573
|
e("button", {
|
|
4534
4574
|
type: "button",
|
|
4535
4575
|
class: "-m-2.5 p-2.5 text-gray-700 lg:hidden",
|
|
@@ -4545,13 +4585,13 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
4545
4585
|
class: "h-6 w-px bg-gray-200 lg:hidden",
|
|
4546
4586
|
"aria-hidden": "true"
|
|
4547
4587
|
}, null, -1)),
|
|
4548
|
-
e("div",
|
|
4549
|
-
e("form",
|
|
4588
|
+
e("div", Ni, [
|
|
4589
|
+
e("form", Ai, [
|
|
4550
4590
|
f[14] || (f[14] = e("label", {
|
|
4551
4591
|
for: "search-field",
|
|
4552
4592
|
class: "sr-only"
|
|
4553
4593
|
}, "Search", -1)),
|
|
4554
|
-
g(c(
|
|
4594
|
+
g(c(wt), {
|
|
4555
4595
|
class: "pointer-events-none absolute inset-y-0 left-0 h-full w-5 text-gray-400",
|
|
4556
4596
|
"aria-hidden": "true"
|
|
4557
4597
|
}),
|
|
@@ -4565,16 +4605,16 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
4565
4605
|
]
|
|
4566
4606
|
}, {
|
|
4567
4607
|
default: v(() => [
|
|
4568
|
-
e("div",
|
|
4608
|
+
e("div", Yi, [
|
|
4569
4609
|
g(c(je), {
|
|
4570
4610
|
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",
|
|
4571
4611
|
onChange: f[7] || (f[7] = (y) => a.value = y.target.value),
|
|
4572
4612
|
onBlur: f[8] || (f[8] = (y) => a.value = ""),
|
|
4573
|
-
displayValue:
|
|
4613
|
+
displayValue: l
|
|
4574
4614
|
}),
|
|
4575
4615
|
g(c(De), { class: "absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none" }, {
|
|
4576
4616
|
default: v(() => [
|
|
4577
|
-
g(c(
|
|
4617
|
+
g(c(de), { class: "h-5 w-5 text-gray-400" })
|
|
4578
4618
|
]),
|
|
4579
4619
|
_: 1
|
|
4580
4620
|
}),
|
|
@@ -4588,14 +4628,14 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
4588
4628
|
value: y,
|
|
4589
4629
|
as: "template"
|
|
4590
4630
|
}, {
|
|
4591
|
-
default: v(({ active: w, selected:
|
|
4631
|
+
default: v(({ active: w, selected: B }) => [
|
|
4592
4632
|
e("li", {
|
|
4593
4633
|
class: h(["relative cursor-default select-none py-2 pl-8 pr-4", w ? "bg-indigo-600 text-white" : "text-gray-900"])
|
|
4594
4634
|
}, [
|
|
4595
4635
|
e("span", {
|
|
4596
|
-
class: h(["block truncate",
|
|
4636
|
+
class: h(["block truncate", B && "font-semibold"])
|
|
4597
4637
|
}, u(y.name), 3),
|
|
4598
|
-
|
|
4638
|
+
B ? (s(), n("span", {
|
|
4599
4639
|
key: 0,
|
|
4600
4640
|
class: h(["absolute inset-y-0 left-0 flex items-center pl-1.5", w ? "text-white" : "text-indigo-600"])
|
|
4601
4641
|
}, [
|
|
@@ -4613,15 +4653,15 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
4613
4653
|
_: 1
|
|
4614
4654
|
}, 8, ["modelValue"])
|
|
4615
4655
|
]),
|
|
4616
|
-
e("div",
|
|
4617
|
-
e("button",
|
|
4656
|
+
e("div", Pi, [
|
|
4657
|
+
e("button", Oi, [
|
|
4618
4658
|
f[16] || (f[16] = e("span", { class: "sr-only" }, "View notifications", -1)),
|
|
4619
|
-
C(e("div",
|
|
4659
|
+
C(e("div", Vi, f[15] || (f[15] = [
|
|
4620
4660
|
e("span", { class: "animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75" }, null, -1)
|
|
4621
4661
|
]), 512), [
|
|
4622
4662
|
[S, d.topbar.alerted]
|
|
4623
4663
|
]),
|
|
4624
|
-
g(c(
|
|
4664
|
+
g(c(pt), {
|
|
4625
4665
|
class: "h-6 w-6",
|
|
4626
4666
|
"aria-hidden": "true"
|
|
4627
4667
|
})
|
|
@@ -4630,21 +4670,21 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
4630
4670
|
class: "hidden lg:block lg:h-6 lg:w-px lg:bg-gray-200",
|
|
4631
4671
|
"aria-hidden": "true"
|
|
4632
4672
|
}, null, -1)),
|
|
4633
|
-
g(c(
|
|
4673
|
+
g(c(ce), {
|
|
4634
4674
|
as: "div",
|
|
4635
4675
|
class: "relative"
|
|
4636
4676
|
}, {
|
|
4637
4677
|
default: v(() => [
|
|
4638
|
-
g(c(
|
|
4678
|
+
g(c(ge), { class: "-m-1.5 flex items-center p-1.5" }, {
|
|
4639
4679
|
default: v(() => [
|
|
4640
4680
|
f[17] || (f[17] = e("span", { class: "sr-only" }, "Open user menu", -1)),
|
|
4641
4681
|
e("img", {
|
|
4642
4682
|
class: "h-8 w-8 rounded-full bg-gray-50",
|
|
4643
4683
|
src: d.topbar.accountLogo,
|
|
4644
4684
|
alt: ""
|
|
4645
|
-
}, null, 8,
|
|
4646
|
-
e("span",
|
|
4647
|
-
g(c(
|
|
4685
|
+
}, null, 8, Fi),
|
|
4686
|
+
e("span", Ii, [
|
|
4687
|
+
g(c(le), {
|
|
4648
4688
|
class: "ml-2 h-5 w-5 text-gray-400",
|
|
4649
4689
|
"aria-hidden": "true"
|
|
4650
4690
|
})
|
|
@@ -4661,16 +4701,16 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
4661
4701
|
"leave-to-class": "transform opacity-0 scale-95"
|
|
4662
4702
|
}, {
|
|
4663
4703
|
default: v(() => [
|
|
4664
|
-
g(c(
|
|
4704
|
+
g(c(pe), { 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" }, {
|
|
4665
4705
|
default: v(() => [
|
|
4666
|
-
(s(!0), n(k, null, $(d.topbar.profileMenu, (y) => (s(), _(c(
|
|
4706
|
+
(s(!0), n(k, null, $(d.topbar.profileMenu, (y) => (s(), _(c(me), {
|
|
4667
4707
|
key: y.name
|
|
4668
4708
|
}, {
|
|
4669
4709
|
default: v(({ active: w }) => [
|
|
4670
4710
|
e("a", {
|
|
4671
|
-
onClick: (
|
|
4711
|
+
onClick: (B) => d.$emit("topBarClick", y.id),
|
|
4672
4712
|
class: h([w ? "bg-gray-50" : "", "block px-3 py-1 text-sm leading-6 text-gray-900"])
|
|
4673
|
-
}, u(y.name), 11,
|
|
4713
|
+
}, u(y.name), 11, Ri)
|
|
4674
4714
|
]),
|
|
4675
4715
|
_: 2
|
|
4676
4716
|
}, 1024))), 128))
|
|
@@ -4686,123 +4726,123 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
|
|
|
4686
4726
|
])
|
|
4687
4727
|
])
|
|
4688
4728
|
]),
|
|
4689
|
-
e("main",
|
|
4690
|
-
e("div",
|
|
4691
|
-
|
|
4729
|
+
e("main", qi, [
|
|
4730
|
+
e("div", Hi, [
|
|
4731
|
+
I(d.$slots, "default")
|
|
4692
4732
|
])
|
|
4693
4733
|
])
|
|
4694
4734
|
])
|
|
4695
4735
|
]));
|
|
4696
4736
|
}
|
|
4697
|
-
}),
|
|
4737
|
+
}), Ei = /* @__PURE__ */ M({
|
|
4698
4738
|
__name: "uiDynamicStats",
|
|
4699
4739
|
props: {
|
|
4700
4740
|
dynamicStats: {},
|
|
4701
4741
|
loading: { type: Boolean, default: !0 }
|
|
4702
4742
|
},
|
|
4703
4743
|
setup(p) {
|
|
4704
|
-
const i = p,
|
|
4705
|
-
return Ze(() => a.value += 1), (
|
|
4744
|
+
const i = p, o = () => i.dynamicStats.length <= 5 ? `lg:grid-cols-${i.dynamicStats.length}` : `lg:grid-cols-${Math.floor(i.dynamicStats.length / 2)} xl:grid-cols-${i.dynamicStats.length}`, a = Y(0), r = Y(o());
|
|
4745
|
+
return Ze(() => a.value += 1), (l, t) => (s(), n("div", {
|
|
4706
4746
|
class: h([r.value, "grid grid-cols-1 md:grid-cols-2 gap-4"]),
|
|
4707
4747
|
key: a.value
|
|
4708
4748
|
}, [
|
|
4709
|
-
(s(!0), n(k, null, $(
|
|
4749
|
+
(s(!0), n(k, null, $(l.dynamicStats, (m, d) => (s(), _(Re, {
|
|
4710
4750
|
key: d,
|
|
4711
4751
|
item: m,
|
|
4712
|
-
loading:
|
|
4752
|
+
loading: l.loading
|
|
4713
4753
|
}, null, 8, ["item", "loading"]))), 128))
|
|
4714
4754
|
], 2));
|
|
4715
4755
|
}
|
|
4716
|
-
}),
|
|
4756
|
+
}), Ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4717
4757
|
__proto__: null,
|
|
4718
|
-
uiAlert:
|
|
4719
|
-
uiBreadcrumbs:
|
|
4758
|
+
uiAlert: xs,
|
|
4759
|
+
uiBreadcrumbs: js,
|
|
4720
4760
|
uiButton: G,
|
|
4721
|
-
uiCard:
|
|
4722
|
-
uiChart:
|
|
4761
|
+
uiCard: Ys,
|
|
4762
|
+
uiChart: Ll,
|
|
4723
4763
|
uiCheckbox: Ne,
|
|
4724
|
-
uiCircleChart:
|
|
4725
|
-
uiDateRange:
|
|
4726
|
-
uiDeviceStatus:
|
|
4727
|
-
uiDragAndDrop:
|
|
4728
|
-
uiDropdown:
|
|
4729
|
-
uiDynamicStats:
|
|
4730
|
-
uiFilter:
|
|
4731
|
-
uiFooter:
|
|
4732
|
-
uiFunnelChartV2:
|
|
4733
|
-
uiGallery:
|
|
4764
|
+
uiCircleChart: Ea,
|
|
4765
|
+
uiDateRange: Ga,
|
|
4766
|
+
uiDeviceStatus: pi,
|
|
4767
|
+
uiDragAndDrop: Fa,
|
|
4768
|
+
uiDropdown: xe,
|
|
4769
|
+
uiDynamicStats: Ei,
|
|
4770
|
+
uiFilter: Ps,
|
|
4771
|
+
uiFooter: Pl,
|
|
4772
|
+
uiFunnelChartV2: aa,
|
|
4773
|
+
uiGallery: za,
|
|
4734
4774
|
uiIcon: j,
|
|
4735
4775
|
uiInput: Z,
|
|
4736
|
-
uiInputFile:
|
|
4737
|
-
uiLoadingScreen:
|
|
4776
|
+
uiInputFile: Gt,
|
|
4777
|
+
uiLoadingScreen: Ol,
|
|
4738
4778
|
uiModal: Ve,
|
|
4739
|
-
uiNoResults:
|
|
4740
|
-
uiNotification:
|
|
4741
|
-
uiPagination:
|
|
4742
|
-
uiPriceCalendar:
|
|
4743
|
-
uiRangeSlider:
|
|
4744
|
-
uiRightSidebar:
|
|
4745
|
-
uiSectionTitle:
|
|
4746
|
-
uiSelect:
|
|
4747
|
-
uiSidebar:
|
|
4779
|
+
uiNoResults: ca,
|
|
4780
|
+
uiNotification: to,
|
|
4781
|
+
uiPagination: Kl,
|
|
4782
|
+
uiPriceCalendar: wl,
|
|
4783
|
+
uiRangeSlider: ei,
|
|
4784
|
+
uiRightSidebar: ka,
|
|
4785
|
+
uiSectionTitle: si,
|
|
4786
|
+
uiSelect: es,
|
|
4787
|
+
uiSidebar: cr,
|
|
4748
4788
|
uiStats: Re,
|
|
4749
|
-
uiStripedCard:
|
|
4750
|
-
uiTable:
|
|
4751
|
-
uiTabs:
|
|
4789
|
+
uiStripedCard: Lr,
|
|
4790
|
+
uiTable: sn,
|
|
4791
|
+
uiTabs: un,
|
|
4752
4792
|
uiTag: R,
|
|
4753
|
-
uiTaskList:
|
|
4754
|
-
uiTextArea:
|
|
4755
|
-
uiTimeline:
|
|
4756
|
-
uiToggle:
|
|
4757
|
-
uiTopbar:
|
|
4758
|
-
uiWrapper:
|
|
4793
|
+
uiTaskList: po,
|
|
4794
|
+
uiTextArea: is,
|
|
4795
|
+
uiTimeline: zn,
|
|
4796
|
+
uiToggle: gs,
|
|
4797
|
+
uiTopbar: ea,
|
|
4798
|
+
uiWrapper: Ui
|
|
4759
4799
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4760
|
-
function
|
|
4761
|
-
for (const i in
|
|
4762
|
-
p.component(i,
|
|
4800
|
+
function Zi(p) {
|
|
4801
|
+
for (const i in Ce)
|
|
4802
|
+
p.component(i, Ce[i]);
|
|
4763
4803
|
}
|
|
4764
|
-
const
|
|
4804
|
+
const td = { install: Zi };
|
|
4765
4805
|
export {
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4806
|
+
td as default,
|
|
4807
|
+
xs as uiAlert,
|
|
4808
|
+
js as uiBreadcrumbs,
|
|
4769
4809
|
G as uiButton,
|
|
4770
|
-
|
|
4771
|
-
|
|
4810
|
+
Ys as uiCard,
|
|
4811
|
+
Ll as uiChart,
|
|
4772
4812
|
Ne as uiCheckbox,
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
|
|
4813
|
+
Ea as uiCircleChart,
|
|
4814
|
+
Ga as uiDateRange,
|
|
4815
|
+
pi as uiDeviceStatus,
|
|
4816
|
+
Fa as uiDragAndDrop,
|
|
4817
|
+
xe as uiDropdown,
|
|
4818
|
+
Ei as uiDynamicStats,
|
|
4819
|
+
Ps as uiFilter,
|
|
4820
|
+
Pl as uiFooter,
|
|
4821
|
+
aa as uiFunnelChartV2,
|
|
4822
|
+
za as uiGallery,
|
|
4783
4823
|
j as uiIcon,
|
|
4784
4824
|
Z as uiInput,
|
|
4785
|
-
|
|
4786
|
-
|
|
4825
|
+
Gt as uiInputFile,
|
|
4826
|
+
Ol as uiLoadingScreen,
|
|
4787
4827
|
Ve as uiModal,
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4828
|
+
ca as uiNoResults,
|
|
4829
|
+
to as uiNotification,
|
|
4830
|
+
Kl as uiPagination,
|
|
4831
|
+
wl as uiPriceCalendar,
|
|
4832
|
+
ei as uiRangeSlider,
|
|
4833
|
+
ka as uiRightSidebar,
|
|
4834
|
+
si as uiSectionTitle,
|
|
4835
|
+
es as uiSelect,
|
|
4836
|
+
cr as uiSidebar,
|
|
4797
4837
|
Re as uiStats,
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4838
|
+
Lr as uiStripedCard,
|
|
4839
|
+
sn as uiTable,
|
|
4840
|
+
un as uiTabs,
|
|
4801
4841
|
R as uiTag,
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4842
|
+
po as uiTaskList,
|
|
4843
|
+
is as uiTextArea,
|
|
4844
|
+
zn as uiTimeline,
|
|
4845
|
+
gs as uiToggle,
|
|
4846
|
+
ea as uiTopbar,
|
|
4847
|
+
Ui as uiWrapper
|
|
4808
4848
|
};
|