@hotelinking/ui 4.32.18 → 4.32.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui.es.js +151 -151
- package/dist/ui.umd.cjs +1 -1
- package/package.json +11 -11
package/dist/ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as e, createBlock as t, resolveDynamicComponent as l, normalizeClass as n, createElementBlock as a, createVNode as o, renderSlot as r, createElementVNode as i, ref as s, computed as u, unref as d, shallowRef as c, watch as p, triggerRef as g, onScopeDispose as f, nextTick as m, watchEffect as v, onMounted as b, cloneVNode as
|
|
1
|
+
import { openBlock as e, createBlock as t, resolveDynamicComponent as l, normalizeClass as n, createElementBlock as a, createVNode as o, renderSlot as r, createElementVNode as i, ref as s, computed as u, unref as d, shallowRef as c, watch as p, triggerRef as g, onScopeDispose as f, nextTick as m, watchEffect as v, onMounted as b, cloneVNode as y, h, Fragment as x, defineComponent as w, inject as k, provide as S, reactive as C, onUnmounted as O, toRaw as M, getCurrentInstance as T, Teleport as E, withCtx as D, createTextVNode as I, toDisplayString as _, Transition as P, renderList as j, createCommentVNode as R, withDirectives as B, vModelDynamic as L, vShow as A, withModifiers as F, vModelText as N, createStaticVNode as z, resolveComponent as $, vModelCheckbox as H, isRef as V } from "vue";
|
|
2
2
|
import Y from "dayjs";
|
|
3
3
|
import U from "vue3-apexcharts";
|
|
4
4
|
const q = { name: "uiIcon" }, W = Object.assign(q, { props: { icon: { type: Function, required: true }, size: { type: String, default: "normal" }, color: { type: String, default: "primary" }, loading: { type: Boolean, default: true } }, setup: (o2) => (r2, i2) => o2.loading ? (e(), a("div", { key: 1, class: n([{ "h-4 w-4": "normal" === o2.size, "h-6 w-6": "big" === o2.size, "h-12 w-12": "huge" === o2.size, "h-20 w-20": "massive" === o2.size }, "animate-pulse rounded-full bg-gray-200 dark:bg-gray-300"]) }, null, 2)) : (e(), t(l(o2.icon), { key: 0, class: n({ "h-4 w-4": "normal" === o2.size, "h-6 w-6": "big" === o2.size, "h-12 w-12": "huge" === o2.size, "h-20 w-20": "massive" === o2.size, "text-indigo-600": "primary" === o2.color, "text-cyan-300": "secondary" === o2.color, "text-red-400": "red" === o2.color, "text-yellow-400": "yellow" === o2.color, "text-green-400": "green" === o2.color, "text-white": "white" === o2.color, "text-gray-300": "gray" === o2.color, "text-black": "black" === o2.color }) }, null, 8, ["class"])) }), K = ["disabled"], J = { key: 1, 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" }, G = i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-16" }, null, -1), Z = { name: "uiButton" }, X = Object.assign(Z, { props: { color: { type: String, default: "primary" }, size: { type: String, default: "normal" }, icon: { type: Function, default: () => {
|
|
@@ -101,7 +101,7 @@ var pe = function(e2) {
|
|
|
101
101
|
}, be = function(e2, t2, l2) {
|
|
102
102
|
var n2, a2, o2 = t2.adjustments, r2 = void 0 === o2 ? 0 : o2, i2 = t2.behavior, s2 = e2 + r2;
|
|
103
103
|
null == (n2 = l2.scrollElement) || null == n2.scrollTo || n2.scrollTo(((a2 = {})[l2.options.horizontal ? "left" : "top"] = s2, a2.behavior = i2, a2));
|
|
104
|
-
},
|
|
104
|
+
}, ye = function(e2) {
|
|
105
105
|
var t2, l2, n2 = this;
|
|
106
106
|
this.unsubs = [], this.scrollElement = null, this.isScrolling = false, this.isScrollingTimeoutId = null, this.scrollToIndexTimeoutId = null, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.scrollDirection = null, this.scrollAdjustments = 0, this.measureElementCache = /* @__PURE__ */ new Map(), this.observer = (t2 = null, l2 = function() {
|
|
107
107
|
return t2 || ("undefined" != typeof ResizeObserver ? t2 = new ResizeObserver(function(e3) {
|
|
@@ -185,7 +185,7 @@ var pe = function(e2) {
|
|
|
185
185
|
return n2.range = e3.length > 0 && t3 > 0 ? function(e4) {
|
|
186
186
|
var t4 = e4.measurements, l4 = e4.outerSize, n3 = e4.scrollOffset, a2 = t4.length - 1, o2 = function(e5) {
|
|
187
187
|
return t4[e5].start;
|
|
188
|
-
}, r2 =
|
|
188
|
+
}, r2 = he(0, a2, o2, n3), i2 = r2;
|
|
189
189
|
for (; i2 < a2 && t4[i2].end < n3 + l4; )
|
|
190
190
|
i2++;
|
|
191
191
|
return { startIndex: r2, endIndex: i2 };
|
|
@@ -229,7 +229,7 @@ var pe = function(e2) {
|
|
|
229
229
|
return n2.options.debug;
|
|
230
230
|
} }), this.getVirtualItemForOffset = function(e3) {
|
|
231
231
|
var t3 = n2.getMeasurements();
|
|
232
|
-
return ce(t3[
|
|
232
|
+
return ce(t3[he(0, t3.length - 1, function(e4) {
|
|
233
233
|
return ce(t3[e4]).start;
|
|
234
234
|
}, e3)]);
|
|
235
235
|
}, this.getOffsetForAlignment = function(e3, t3) {
|
|
@@ -280,7 +280,7 @@ var pe = function(e2) {
|
|
|
280
280
|
}, this.setOptions(e2), this.scrollRect = this.options.initialRect, this.scrollOffset = this.options.initialOffset, this.measurementsCache = this.options.initialMeasurementsCache, this.measurementsCache.forEach(function(e3) {
|
|
281
281
|
n2.itemSizeCache.set(e3.key, e3.size);
|
|
282
282
|
}), this.maybeNotify();
|
|
283
|
-
},
|
|
283
|
+
}, he = function(e2, t2, l2, n2) {
|
|
284
284
|
for (; e2 <= t2; ) {
|
|
285
285
|
var a2 = (e2 + t2) / 2 | 0, o2 = l2(a2);
|
|
286
286
|
if (o2 < n2)
|
|
@@ -295,7 +295,7 @@ var pe = function(e2) {
|
|
|
295
295
|
};
|
|
296
296
|
function xe(e2) {
|
|
297
297
|
return function(e3) {
|
|
298
|
-
var t2 = new
|
|
298
|
+
var t2 = new ye(d(e3)), l2 = c(t2), n2 = t2._didMount();
|
|
299
299
|
return p(function() {
|
|
300
300
|
return d(e3).getScrollElement();
|
|
301
301
|
}, function(e4) {
|
|
@@ -374,18 +374,18 @@ function De(e2) {
|
|
|
374
374
|
}
|
|
375
375
|
return document;
|
|
376
376
|
}
|
|
377
|
-
let
|
|
378
|
-
var
|
|
377
|
+
let Ie = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e2) => `${e2}:not([tabindex='-1'])`).join(",");
|
|
378
|
+
var _e = ((e2) => (e2[e2.First = 1] = "First", e2[e2.Previous = 2] = "Previous", e2[e2.Next = 4] = "Next", e2[e2.Last = 8] = "Last", e2[e2.WrapAround = 16] = "WrapAround", e2[e2.NoScroll = 32] = "NoScroll", e2))(_e || {}), Pe = ((e2) => (e2[e2.Error = 0] = "Error", e2[e2.Overflow = 1] = "Overflow", e2[e2.Success = 2] = "Success", e2[e2.Underflow = 3] = "Underflow", e2))(Pe || {}), je = ((e2) => (e2[e2.Previous = -1] = "Previous", e2[e2.Next = 1] = "Next", e2))(je || {});
|
|
379
379
|
function Re(e2 = document.body) {
|
|
380
|
-
return null == e2 ? [] : Array.from(e2.querySelectorAll(
|
|
380
|
+
return null == e2 ? [] : Array.from(e2.querySelectorAll(Ie)).sort((e3, t2) => Math.sign((e3.tabIndex || Number.MAX_SAFE_INTEGER) - (t2.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
381
381
|
}
|
|
382
382
|
var Be = ((e2) => (e2[e2.Strict = 0] = "Strict", e2[e2.Loose = 1] = "Loose", e2))(Be || {});
|
|
383
383
|
function Le(e2, t2 = 0) {
|
|
384
384
|
var l2;
|
|
385
|
-
return e2 !== (null == (l2 = De(e2)) ? void 0 : l2.body) && Oe(t2, { 0: () => e2.matches(
|
|
385
|
+
return e2 !== (null == (l2 = De(e2)) ? void 0 : l2.body) && Oe(t2, { 0: () => e2.matches(Ie), 1() {
|
|
386
386
|
let t3 = e2;
|
|
387
387
|
for (; null !== t3; ) {
|
|
388
|
-
if (t3.matches(
|
|
388
|
+
if (t3.matches(Ie))
|
|
389
389
|
return true;
|
|
390
390
|
t3 = t3.parentElement;
|
|
391
391
|
}
|
|
@@ -570,14 +570,14 @@ function lt({ props: e2, attrs: t2, slots: l2, slot: n2, name: a2 }) {
|
|
|
570
570
|
return null != e4 && ("string" == typeof e4.type || "object" == typeof e4.type || "function" == typeof e4.type);
|
|
571
571
|
}(e3) || l3.length > 0)
|
|
572
572
|
throw new Error(['Passing props on "template"!', "", `The current component <${a2} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(s2).concat(Object.keys(t2)).map((e4) => e4.trim()).filter((e4, t3, l4) => l4.indexOf(e4) === t3).sort((e4, t3) => e4.localeCompare(t3)).map((e4) => ` - ${e4}`).join("\n"), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".', "Render a single element as the child so that we can forward the props onto that element."].map((e4) => ` - ${e4}`).join("\n")].join("\n"));
|
|
573
|
-
let n3 = at(null != (r2 = e3.props) ? r2 : {}, s2, d2), o3 =
|
|
573
|
+
let n3 = at(null != (r2 = e3.props) ? r2 : {}, s2, d2), o3 = y(e3, n3, true);
|
|
574
574
|
for (let e4 in n3)
|
|
575
575
|
e4.startsWith("on") && (o3.props || (o3.props = {}), o3.props[e4] = n3[e4]);
|
|
576
576
|
return o3;
|
|
577
577
|
}
|
|
578
578
|
return Array.isArray(u2) && 1 === u2.length ? u2[0] : u2;
|
|
579
579
|
}
|
|
580
|
-
return
|
|
580
|
+
return h(i2, Object.assign({}, s2, d2), { default: () => u2 });
|
|
581
581
|
}
|
|
582
582
|
function nt(e2) {
|
|
583
583
|
return e2.flatMap((e3) => e3.type === x ? nt(e3.children) : [e3]);
|
|
@@ -688,7 +688,7 @@ function bt(e2) {
|
|
|
688
688
|
throw e3;
|
|
689
689
|
}));
|
|
690
690
|
}
|
|
691
|
-
function
|
|
691
|
+
function yt() {
|
|
692
692
|
let e2 = [], t2 = { addEventListener: (e3, l2, n2, a2) => (e3.addEventListener(l2, n2, a2), t2.add(() => e3.removeEventListener(l2, n2, a2))), requestAnimationFrame(...e3) {
|
|
693
693
|
let l2 = requestAnimationFrame(...e3);
|
|
694
694
|
t2.add(() => cancelAnimationFrame(l2));
|
|
@@ -712,7 +712,7 @@ function ht() {
|
|
|
712
712
|
Object.assign(e3.style, { [t3]: n2 });
|
|
713
713
|
});
|
|
714
714
|
}, group(e3) {
|
|
715
|
-
let t3 =
|
|
715
|
+
let t3 = yt();
|
|
716
716
|
return e3(t3), this.add(() => t3.dispose());
|
|
717
717
|
}, add: (t3) => (e2.push(t3), () => {
|
|
718
718
|
let l2 = e2.indexOf(t3);
|
|
@@ -725,7 +725,7 @@ function ht() {
|
|
|
725
725
|
} };
|
|
726
726
|
return t2;
|
|
727
727
|
}
|
|
728
|
-
function
|
|
728
|
+
function ht(e2 = {}, t2 = null, l2 = []) {
|
|
729
729
|
for (let [n2, a2] of Object.entries(e2))
|
|
730
730
|
wt(l2, xt(t2, n2), a2);
|
|
731
731
|
return l2;
|
|
@@ -738,7 +738,7 @@ function wt(e2, t2, l2) {
|
|
|
738
738
|
for (let [n2, a2] of l2.entries())
|
|
739
739
|
wt(e2, xt(t2, n2.toString()), a2);
|
|
740
740
|
else
|
|
741
|
-
l2 instanceof Date ? e2.push([t2, l2.toISOString()]) : "boolean" == typeof l2 ? e2.push([t2, l2 ? "1" : "0"]) : "string" == typeof l2 ? e2.push([t2, l2]) : "number" == typeof l2 ? e2.push([t2, `${l2}`]) : null == l2 ? e2.push([t2, ""]) :
|
|
741
|
+
l2 instanceof Date ? e2.push([t2, l2.toISOString()]) : "boolean" == typeof l2 ? e2.push([t2, l2 ? "1" : "0"]) : "string" == typeof l2 ? e2.push([t2, l2]) : "number" == typeof l2 ? e2.push([t2, `${l2}`]) : null == l2 ? e2.push([t2, ""]) : ht(l2, t2, e2);
|
|
742
742
|
}
|
|
743
743
|
var kt = ((e2) => (e2[e2.Open = 0] = "Open", e2[e2.Closed = 1] = "Closed", e2))(kt || {}), St = ((e2) => (e2[e2.Single = 0] = "Single", e2[e2.Multi = 1] = "Multi", e2))(St || {}), Ct = ((e2) => (e2[e2.Pointer = 0] = "Pointer", e2[e2.Focus = 1] = "Focus", e2[e2.Other = 2] = "Other", e2))(Ct || {});
|
|
744
744
|
let Ot = Symbol("ComboboxContext");
|
|
@@ -763,21 +763,21 @@ let Tt = Symbol("VirtualContext"), Et = w({ name: "VirtualProvider", setup(e2, {
|
|
|
763
763
|
}), r2 = s(0);
|
|
764
764
|
return p([o2], () => {
|
|
765
765
|
r2.value += 1;
|
|
766
|
-
}), S(Tt, l2.virtual.value ? a2 : null), () => [
|
|
766
|
+
}), S(Tt, l2.virtual.value ? a2 : null), () => [h("div", { style: { position: "relative", width: "100%", height: `${a2.value.getTotalSize()}px` }, ref: (e3) => {
|
|
767
767
|
if (e3) {
|
|
768
768
|
if ("undefined" != typeof process && void 0 !== process.env.JEST_WORKER_ID || 0 === l2.activationTrigger.value)
|
|
769
769
|
return;
|
|
770
770
|
null !== l2.activeOptionIndex.value && l2.virtual.value.options.length > l2.activeOptionIndex.value && a2.value.scrollToIndex(l2.activeOptionIndex.value);
|
|
771
771
|
}
|
|
772
|
-
} }, a2.value.getVirtualItems().map((e3) =>
|
|
772
|
+
} }, a2.value.getVirtualItems().map((e3) => y(t2.default({ option: l2.virtual.value.options[e3.index], open: 0 === l2.comboboxState.value })[0], { key: `${r2.value}-${e3.index}`, "data-index": e3.index, "aria-setsize": l2.virtual.value.options.length, "aria-posinset": e3.index + 1, style: { position: "absolute", top: 0, left: 0, transform: `translateY(${e3.start}px)`, overflowAnchor: "none" } })))];
|
|
773
773
|
} }), Dt = w({ name: "Combobox", emits: { "update:modelValue": (e2) => true }, props: { as: { type: [Object, String], default: "template" }, disabled: { type: [Boolean], default: false }, by: { type: [String, Function], nullable: true, default: null }, modelValue: { type: [Object, String, Number, Boolean], default: void 0 }, defaultValue: { type: [Object, String, Number, Boolean], default: void 0 }, form: { type: String, optional: true }, name: { type: String, optional: true }, nullable: { type: Boolean, default: false }, multiple: { type: [Boolean], default: false }, immediate: { type: [Boolean], default: false }, virtual: { type: Object, default: null } }, inheritAttrs: false, setup(e2, { slots: t2, attrs: l2, emit: n2 }) {
|
|
774
774
|
let a2 = s(1), o2 = s(null), r2 = s(null), i2 = s(null), d2 = s(null), c2 = s({ static: false, hold: false }), g2 = s([]), f2 = s(null), m2 = s(2), v2 = s(false);
|
|
775
|
-
function
|
|
775
|
+
function y2(e3 = (e4) => e4) {
|
|
776
776
|
let t3 = null !== f2.value ? g2.value[f2.value] : null, l3 = e3(g2.value.slice()), n3 = l3.length > 0 && null !== l3[0].dataRef.order.value ? l3.sort((e4, t4) => e4.dataRef.order.value - t4.dataRef.order.value) : $e(l3, (e4) => Ce(e4.dataRef.domRef)), a3 = t3 ? n3.indexOf(t3) : null;
|
|
777
777
|
return -1 === a3 && (a3 = null), { options: n3, activeOptionIndex: a3 };
|
|
778
778
|
}
|
|
779
|
-
let w2 = u(() => e2.multiple ? 1 : 0), k2 = u(() => e2.nullable), [O2, T2] = we(u(() => e2.modelValue), (e3) => n2("update:modelValue", e3), u(() => e2.defaultValue)), E2 = u(() => void 0 === O2.value ? Oe(w2.value, { 1: [], 0: void 0 }) : O2.value), D2 = null,
|
|
780
|
-
function
|
|
779
|
+
let w2 = u(() => e2.multiple ? 1 : 0), k2 = u(() => e2.nullable), [O2, T2] = we(u(() => e2.modelValue), (e3) => n2("update:modelValue", e3), u(() => e2.defaultValue)), E2 = u(() => void 0 === O2.value ? Oe(w2.value, { 1: [], 0: void 0 }) : O2.value), D2 = null, I2 = null;
|
|
780
|
+
function _2(e3) {
|
|
781
781
|
return Oe(w2.value, { 0: () => null == T2 ? void 0 : T2(e3), 1: () => {
|
|
782
782
|
let t3 = M(j2.value.value).slice(), l3 = M(e3), n3 = t3.findIndex((e4) => j2.compare(l3, M(e4)));
|
|
783
783
|
return -1 === n3 ? t3.push(l3) : t3.splice(n3, 1), null == T2 ? void 0 : T2(t3);
|
|
@@ -842,7 +842,7 @@ let Tt = Symbol("VirtualContext"), Et = w({ name: "VirtualProvider", setup(e2, {
|
|
|
842
842
|
}, resolveDisabled: (e3) => j2.virtual.value.disabled(e3), resolveId() {
|
|
843
843
|
throw new Error("Function not implemented.");
|
|
844
844
|
} }), void (m2.value = null != n3 ? n3 : 2);
|
|
845
|
-
let o3 =
|
|
845
|
+
let o3 = y2();
|
|
846
846
|
if (null === o3.activeOptionIndex) {
|
|
847
847
|
let e3 = o3.options.findIndex((e4) => !e4.dataRef.disabled);
|
|
848
848
|
-1 !== e3 && (o3.activeOptionIndex = e3);
|
|
@@ -855,14 +855,14 @@ let Tt = Symbol("VirtualContext"), Et = w({ name: "VirtualProvider", setup(e2, {
|
|
|
855
855
|
if (!t3)
|
|
856
856
|
return;
|
|
857
857
|
let { dataRef: l3 } = t3;
|
|
858
|
-
|
|
858
|
+
_2(l3.value);
|
|
859
859
|
}, selectActiveOption() {
|
|
860
860
|
if (null !== j2.activeOptionIndex.value) {
|
|
861
861
|
if (j2.virtual.value)
|
|
862
|
-
|
|
862
|
+
_2(j2.virtual.value.options[j2.activeOptionIndex.value]);
|
|
863
863
|
else {
|
|
864
864
|
let { dataRef: e3 } = g2.value[j2.activeOptionIndex.value];
|
|
865
|
-
|
|
865
|
+
_2(e3.value);
|
|
866
866
|
}
|
|
867
867
|
j2.goToOption(mt.Specific, j2.activeOptionIndex.value);
|
|
868
868
|
}
|
|
@@ -870,16 +870,16 @@ let Tt = Symbol("VirtualContext"), Et = w({ name: "VirtualProvider", setup(e2, {
|
|
|
870
870
|
let l3 = C({ id: e3, dataRef: t3 });
|
|
871
871
|
if (j2.virtual.value)
|
|
872
872
|
return void g2.value.push(l3);
|
|
873
|
-
|
|
874
|
-
let n3 =
|
|
875
|
-
null === f2.value && j2.isSelected(t3.value.value) && (n3.activeOptionIndex = n3.options.indexOf(l3)), g2.value = n3.options, f2.value = n3.activeOptionIndex, m2.value = 2, n3.options.some((e4) => !Ce(e4.dataRef.domRef)) && (
|
|
876
|
-
let e4 =
|
|
873
|
+
I2 && cancelAnimationFrame(I2);
|
|
874
|
+
let n3 = y2((e4) => (e4.push(l3), e4));
|
|
875
|
+
null === f2.value && j2.isSelected(t3.value.value) && (n3.activeOptionIndex = n3.options.indexOf(l3)), g2.value = n3.options, f2.value = n3.activeOptionIndex, m2.value = 2, n3.options.some((e4) => !Ce(e4.dataRef.domRef)) && (I2 = requestAnimationFrame(() => {
|
|
876
|
+
let e4 = y2();
|
|
877
877
|
g2.value = e4.options, f2.value = e4.activeOptionIndex;
|
|
878
878
|
}));
|
|
879
879
|
}, unregisterOption(e3, t3) {
|
|
880
880
|
if (null !== D2 && cancelAnimationFrame(D2), t3 && (v2.value = true), j2.virtual.value)
|
|
881
881
|
return void (g2.value = g2.value.filter((t4) => t4.id !== e3));
|
|
882
|
-
let l3 =
|
|
882
|
+
let l3 = y2((t4) => {
|
|
883
883
|
let l4 = t4.findIndex((t5) => t5.id === e3);
|
|
884
884
|
return -1 !== l4 && t4.splice(l4, 1), t4;
|
|
885
885
|
});
|
|
@@ -904,9 +904,9 @@ let Tt = Symbol("VirtualContext"), Et = w({ name: "VirtualProvider", setup(e2, {
|
|
|
904
904
|
}), () => {
|
|
905
905
|
var n3, o3, r3;
|
|
906
906
|
let { name: i3, disabled: s2, form: u2, ...d3 } = e2, c3 = { open: 0 === a2.value, disabled: s2, activeIndex: j2.activeOptionIndex.value, activeOption: null === j2.activeOptionIndex.value ? null : j2.virtual.value ? j2.virtual.value.options[null != (n3 = j2.activeOptionIndex.value) ? n3 : 0] : null != (r3 = null == (o3 = j2.options.value[j2.activeOptionIndex.value]) ? void 0 : o3.dataRef.value.value) ? r3 : null, value: E2.value };
|
|
907
|
-
return
|
|
907
|
+
return h(x, [...null != i3 && null != E2.value ? ht({ [i3]: E2.value }).map(([e3, t3]) => h(st, ot({ features: it.Hidden, key: e3, as: "input", type: "hidden", hidden: true, readOnly: true, form: u2, name: e3, value: t3 }))) : [], tt({ theirProps: { ...l2, ...rt(d3, ["by", "defaultValue", "immediate", "modelValue", "multiple", "nullable", "onUpdate:modelValue", "virtual"]) }, ourProps: {}, slot: c3, slots: t2, attrs: l2, name: "Combobox" })]);
|
|
908
908
|
};
|
|
909
|
-
} }),
|
|
909
|
+
} }), It = w({ name: "ComboboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: () => `headlessui-combobox-label-${Se()}` } }, setup(e2, { attrs: t2, slots: l2 }) {
|
|
910
910
|
let n2 = Mt("ComboboxLabel");
|
|
911
911
|
function a2() {
|
|
912
912
|
var e3;
|
|
@@ -916,7 +916,7 @@ let Tt = Symbol("VirtualContext"), Et = w({ name: "VirtualProvider", setup(e2, {
|
|
|
916
916
|
let o2 = { open: 0 === n2.comboboxState.value, disabled: n2.disabled.value }, { id: r2, ...i2 } = e2;
|
|
917
917
|
return tt({ ourProps: { id: r2, ref: n2.labelRef, onClick: a2 }, theirProps: i2, slot: o2, attrs: t2, slots: l2, name: "ComboboxLabel" });
|
|
918
918
|
};
|
|
919
|
-
} }),
|
|
919
|
+
} }), _t = w({ name: "ComboboxButton", props: { as: { type: [Object, String], default: "button" }, id: { type: String, default: () => `headlessui-combobox-button-${Se()}` } }, setup(e2, { attrs: t2, slots: l2, expose: n2 }) {
|
|
920
920
|
let a2 = Mt("ComboboxButton");
|
|
921
921
|
function o2(e3) {
|
|
922
922
|
a2.disabled.value || (0 === a2.comboboxState.value ? a2.closeCombobox() : (e3.preventDefault(), a2.openCombobox()), m(() => {
|
|
@@ -996,11 +996,11 @@ let Tt = Symbol("VirtualContext"), Et = w({ name: "VirtualProvider", setup(e2, {
|
|
|
996
996
|
g2.value = true;
|
|
997
997
|
}
|
|
998
998
|
function v2() {
|
|
999
|
-
|
|
999
|
+
yt().nextFrame(() => {
|
|
1000
1000
|
g2.value = false;
|
|
1001
1001
|
});
|
|
1002
1002
|
}
|
|
1003
|
-
function
|
|
1003
|
+
function y2(e3) {
|
|
1004
1004
|
switch (i2.value = true, e3.key) {
|
|
1005
1005
|
case gt.Enter:
|
|
1006
1006
|
if (i2.value = false, 0 !== o2.comboboxState.value || g2.value)
|
|
@@ -1040,7 +1040,7 @@ let Tt = Symbol("VirtualContext"), Et = w({ name: "VirtualProvider", setup(e2, {
|
|
|
1040
1040
|
0 === o2.mode.value && 1 !== o2.activationTrigger.value && o2.selectActiveOption(), o2.closeCombobox();
|
|
1041
1041
|
}
|
|
1042
1042
|
}
|
|
1043
|
-
function
|
|
1043
|
+
function h2(e3) {
|
|
1044
1044
|
t2("change", e3), o2.nullable.value && 0 === o2.mode.value && "" === e3.target.value && d2(), o2.openCombobox();
|
|
1045
1045
|
}
|
|
1046
1046
|
function x2(e3) {
|
|
@@ -1052,7 +1052,7 @@ let Tt = Symbol("VirtualContext"), Et = w({ name: "VirtualProvider", setup(e2, {
|
|
|
1052
1052
|
function w2(e3) {
|
|
1053
1053
|
var t3, l3, n3;
|
|
1054
1054
|
let a3 = null != (t3 = e3.relatedTarget) ? t3 : ft.find((t4) => t4 !== e3.currentTarget);
|
|
1055
|
-
null != (l3 = Ce(o2.buttonRef)) && l3.contains(a3) || null != (n3 = Ce(o2.optionsRef)) && n3.contains(a3) || o2.disabled.value || o2.immediate.value && 0 !== o2.comboboxState.value && (o2.openCombobox(),
|
|
1055
|
+
null != (l3 = Ce(o2.buttonRef)) && l3.contains(a3) || null != (n3 = Ce(o2.optionsRef)) && n3.contains(a3) || o2.disabled.value || o2.immediate.value && 0 !== o2.comboboxState.value && (o2.openCombobox(), yt().nextFrame(() => {
|
|
1056
1056
|
o2.setActivationTrigger(1);
|
|
1057
1057
|
}));
|
|
1058
1058
|
}
|
|
@@ -1062,7 +1062,7 @@ let Tt = Symbol("VirtualContext"), Et = w({ name: "VirtualProvider", setup(e2, {
|
|
|
1062
1062
|
});
|
|
1063
1063
|
return () => {
|
|
1064
1064
|
var t3, a3, r3, i3, s2, u2, d3;
|
|
1065
|
-
let c3 = { open: 0 === o2.comboboxState.value }, { id: p2, displayValue: g3, onChange: m2, ...b2 } = e2, S2 = { "aria-controls": null == (t3 = o2.optionsRef.value) ? void 0 : t3.id, "aria-expanded": 0 === o2.comboboxState.value, "aria-activedescendant": null === o2.activeOptionIndex.value ? void 0 : o2.virtual.value ? null == (a3 = o2.options.value.find((e3) => !o2.virtual.value.disabled(e3.dataRef.value) && o2.compare(e3.dataRef.value, o2.virtual.value.options[o2.activeOptionIndex.value]))) ? void 0 : a3.id : null == (r3 = o2.options.value[o2.activeOptionIndex.value]) ? void 0 : r3.id, "aria-labelledby": null != (u2 = null == (i3 = Ce(o2.labelRef)) ? void 0 : i3.id) ? u2 : null == (s2 = Ce(o2.buttonRef)) ? void 0 : s2.id, "aria-autocomplete": "list", id: p2, onCompositionstart: f2, onCompositionend: v2, onKeydown:
|
|
1065
|
+
let c3 = { open: 0 === o2.comboboxState.value }, { id: p2, displayValue: g3, onChange: m2, ...b2 } = e2, S2 = { "aria-controls": null == (t3 = o2.optionsRef.value) ? void 0 : t3.id, "aria-expanded": 0 === o2.comboboxState.value, "aria-activedescendant": null === o2.activeOptionIndex.value ? void 0 : o2.virtual.value ? null == (a3 = o2.options.value.find((e3) => !o2.virtual.value.disabled(e3.dataRef.value) && o2.compare(e3.dataRef.value, o2.virtual.value.options[o2.activeOptionIndex.value]))) ? void 0 : a3.id : null == (r3 = o2.options.value[o2.activeOptionIndex.value]) ? void 0 : r3.id, "aria-labelledby": null != (u2 = null == (i3 = Ce(o2.labelRef)) ? void 0 : i3.id) ? u2 : null == (s2 = Ce(o2.buttonRef)) ? void 0 : s2.id, "aria-autocomplete": "list", id: p2, onCompositionstart: f2, onCompositionend: v2, onKeydown: y2, onInput: h2, onFocus: w2, onBlur: x2, role: "combobox", type: null != (d3 = l2.type) ? d3 : "text", tabIndex: 0, ref: o2.inputRef, defaultValue: k2.value, disabled: true === o2.disabled.value || void 0 };
|
|
1066
1066
|
return tt({ ourProps: S2, theirProps: b2, slot: c3, attrs: l2, slots: n2, features: Qe.RenderStrategy | Qe.Static, name: "ComboboxInput" });
|
|
1067
1067
|
};
|
|
1068
1068
|
} }), jt = w({ name: "ComboboxOptions", props: { as: { type: [Object, String], default: "ul" }, static: { type: Boolean, default: false }, unmount: { type: Boolean, default: true }, hold: { type: [Boolean], default: false } }, setup(e2, { attrs: t2, slots: l2, expose: n2 }) {
|
|
@@ -1078,7 +1078,7 @@ let Tt = Symbol("VirtualContext"), Et = w({ name: "VirtualProvider", setup(e2, {
|
|
|
1078
1078
|
} }), () => {
|
|
1079
1079
|
var n3, r3, s2;
|
|
1080
1080
|
let u2 = { open: 0 === a2.comboboxState.value };
|
|
1081
|
-
return tt({ ourProps: { "aria-labelledby": null != (s2 = null == (n3 = Ce(a2.labelRef)) ? void 0 : n3.id) ? s2 : null == (r3 = Ce(a2.buttonRef)) ? void 0 : r3.id, id: o2, ref: a2.optionsRef, role: "listbox", "aria-multiselectable": 1 === a2.mode.value || void 0 }, theirProps: rt(e2, ["hold"]), slot: u2, attrs: t2, slots: a2.virtual.value && 0 === a2.comboboxState.value ? { ...l2, default: () => [
|
|
1081
|
+
return tt({ ourProps: { "aria-labelledby": null != (s2 = null == (n3 = Ce(a2.labelRef)) ? void 0 : n3.id) ? s2 : null == (r3 = Ce(a2.buttonRef)) ? void 0 : r3.id, id: o2, ref: a2.optionsRef, role: "listbox", "aria-multiselectable": 1 === a2.mode.value || void 0 }, theirProps: rt(e2, ["hold"]), slot: u2, attrs: t2, slots: a2.virtual.value && 0 === a2.comboboxState.value ? { ...l2, default: () => [h(Et, {}, l2.default)] } : l2, features: Qe.RenderStrategy | Qe.Static, visible: i2.value, name: "ComboboxOptions" });
|
|
1082
1082
|
};
|
|
1083
1083
|
} }), Rt = w({ name: "ComboboxOption", props: { as: { type: [Object, String], default: "li" }, value: { type: [Object, String, Number, Boolean] }, disabled: { type: Boolean, default: false }, order: { type: [Number], default: null } }, setup(e2, { slots: t2, attrs: l2, expose: n2 }) {
|
|
1084
1084
|
let a2 = Mt("ComboboxOption"), o2 = `headlessui-combobox-option-${Se()}`, r2 = s(null);
|
|
@@ -1112,24 +1112,24 @@ let Tt = Symbol("VirtualContext"), Et = w({ name: "VirtualProvider", setup(e2, {
|
|
|
1112
1112
|
return null == (t3 = null == (e3 = Ce(r2)) ? void 0 : e3.scrollIntoView) ? void 0 : t3.call(e3, { block: "nearest" });
|
|
1113
1113
|
}));
|
|
1114
1114
|
});
|
|
1115
|
-
let
|
|
1116
|
-
function
|
|
1117
|
-
|
|
1115
|
+
let y2 = Ze();
|
|
1116
|
+
function h2(e3) {
|
|
1117
|
+
y2.update(e3);
|
|
1118
1118
|
}
|
|
1119
1119
|
function x2(t3) {
|
|
1120
1120
|
var l3;
|
|
1121
|
-
if (!
|
|
1121
|
+
if (!y2.wasMoved(t3) || e2.disabled || null != (l3 = a2.virtual.value) && l3.disabled(e2.value) || i2.value)
|
|
1122
1122
|
return;
|
|
1123
1123
|
let n3 = a2.calculateIndex(e2.value);
|
|
1124
1124
|
a2.goToOption(mt.Specific, n3, 0);
|
|
1125
1125
|
}
|
|
1126
1126
|
function w2(t3) {
|
|
1127
1127
|
var l3;
|
|
1128
|
-
|
|
1128
|
+
y2.wasMoved(t3) && (e2.disabled || null != (l3 = a2.virtual.value) && l3.disabled(e2.value) || i2.value && (a2.optionsPropsRef.value.hold || a2.goToOption(mt.Nothing)));
|
|
1129
1129
|
}
|
|
1130
1130
|
return () => {
|
|
1131
1131
|
let { disabled: n3 } = e2, a3 = { active: i2.value, selected: d2.value, disabled: n3 };
|
|
1132
|
-
return tt({ ourProps: { id: o2, ref: r2, role: "option", tabIndex: true === n3 ? void 0 : -1, "aria-disabled": true === n3 || void 0, "aria-selected": d2.value, disabled: void 0, onClick: g2, onFocus: f2, onPointerenter:
|
|
1132
|
+
return tt({ ourProps: { id: o2, ref: r2, role: "option", tabIndex: true === n3 ? void 0 : -1, "aria-disabled": true === n3 || void 0, "aria-selected": d2.value, disabled: void 0, onClick: g2, onFocus: f2, onPointerenter: h2, onMouseenter: h2, onPointermove: x2, onMousemove: x2, onPointerleave: w2, onMouseleave: w2 }, theirProps: rt(e2, ["order", "value"]), slot: a3, attrs: l2, slots: t2, name: "ComboboxOption" });
|
|
1133
1133
|
};
|
|
1134
1134
|
} });
|
|
1135
1135
|
function Bt(e2, t2, l2, n2) {
|
|
@@ -1193,7 +1193,7 @@ let Nt = Object.assign(w({ name: "FocusTrap", props: { as: { type: [Object, Stri
|
|
|
1193
1193
|
return void (a3.value = i4);
|
|
1194
1194
|
} else if (s2.contains(i4))
|
|
1195
1195
|
return void (a3.value = i4);
|
|
1196
|
-
r4 ? Ne(r4) : He(s2,
|
|
1196
|
+
r4 ? Ne(r4) : He(s2, _e.First | _e.NoScroll) === Pe.Error && console.warn("There are no focusable elements inside the <FocusTrap />"), a3.value = null == (n4 = e3.value) ? void 0 : n4.activeElement;
|
|
1197
1197
|
});
|
|
1198
1198
|
}, { immediate: true, flush: "post" });
|
|
1199
1199
|
}), a3;
|
|
@@ -1221,9 +1221,9 @@ let Nt = Object.assign(w({ name: "FocusTrap", props: { as: { type: [Object, Stri
|
|
|
1221
1221
|
function c2(e3) {
|
|
1222
1222
|
let t3 = Ce(a2);
|
|
1223
1223
|
t3 && Oe(d2.value, { [Lt.Forwards]: () => {
|
|
1224
|
-
He(t3,
|
|
1224
|
+
He(t3, _e.First, { skipElements: [e3.relatedTarget] });
|
|
1225
1225
|
}, [Lt.Backwards]: () => {
|
|
1226
|
-
He(t3,
|
|
1226
|
+
He(t3, _e.Last, { skipElements: [e3.relatedTarget] });
|
|
1227
1227
|
} });
|
|
1228
1228
|
}
|
|
1229
1229
|
let g2 = s(false);
|
|
@@ -1238,11 +1238,11 @@ let Nt = Object.assign(w({ name: "FocusTrap", props: { as: { type: [Object, Stri
|
|
|
1238
1238
|
let l3 = At(e2.containers);
|
|
1239
1239
|
Ce(a2) instanceof HTMLElement && l3.add(Ce(a2));
|
|
1240
1240
|
let n3 = t3.relatedTarget;
|
|
1241
|
-
n3 instanceof HTMLElement && "true" !== n3.dataset.headlessuiFocusGuard && (zt(l3, n3) || (g2.value ? He(Ce(a2), Oe(d2.value, { [Lt.Forwards]: () =>
|
|
1241
|
+
n3 instanceof HTMLElement && "true" !== n3.dataset.headlessuiFocusGuard && (zt(l3, n3) || (g2.value ? He(Ce(a2), Oe(d2.value, { [Lt.Forwards]: () => _e.Next, [Lt.Backwards]: () => _e.Previous }) | _e.WrapAround, { relativeTo: t3.target }) : t3.target instanceof HTMLElement && Ne(t3.target)));
|
|
1242
1242
|
}
|
|
1243
1243
|
return () => {
|
|
1244
1244
|
let n3 = { ref: a2, onKeydown: f2, onFocusout: m2 }, { features: o3, initialFocus: r3, containers: i3, ...s2 } = e2;
|
|
1245
|
-
return
|
|
1245
|
+
return h(x, [Boolean(4 & o3) && h(st, { as: "button", type: "button", "data-headlessui-focus-guard": true, onFocus: c2, features: it.Focusable }), tt({ ourProps: n3, theirProps: { ...t2, ...s2 }, slot: {}, attrs: t2, slots: l2, name: "FocusTrap" }), Boolean(4 & o3) && h(st, { as: "button", type: "button", "data-headlessui-focus-guard": true, onFocus: c2, features: it.Focusable })]);
|
|
1246
1246
|
};
|
|
1247
1247
|
} }), { features: Ft });
|
|
1248
1248
|
function zt(e2, t2) {
|
|
@@ -1276,7 +1276,7 @@ let Vt = function(e2, t2) {
|
|
|
1276
1276
|
} };
|
|
1277
1277
|
}(() => /* @__PURE__ */ new Map(), { PUSH(e2, t2) {
|
|
1278
1278
|
var l2;
|
|
1279
|
-
let n2 = null != (l2 = this.get(e2)) ? l2 : { doc: e2, count: 0, d:
|
|
1279
|
+
let n2 = null != (l2 = this.get(e2)) ? l2 : { doc: e2, count: 0, d: yt(), meta: /* @__PURE__ */ new Set() };
|
|
1280
1280
|
return n2.count++, n2.meta.add(t2), this.set(e2, n2), this;
|
|
1281
1281
|
}, POP(e2, t2) {
|
|
1282
1282
|
let l2 = this.get(e2);
|
|
@@ -1289,7 +1289,7 @@ let Vt = function(e2, t2) {
|
|
|
1289
1289
|
t3.microTask(() => {
|
|
1290
1290
|
var l4;
|
|
1291
1291
|
if ("auto" !== window.getComputedStyle(e3.documentElement).scrollBehavior) {
|
|
1292
|
-
let l5 =
|
|
1292
|
+
let l5 = yt();
|
|
1293
1293
|
l5.style(e3.documentElement, "scrollBehavior", "auto"), t3.add(() => t3.microTask(() => l5.dispose()));
|
|
1294
1294
|
}
|
|
1295
1295
|
let a3 = null != (l4 = window.scrollY) ? l4 : window.pageYOffset, o2 = null;
|
|
@@ -1466,7 +1466,7 @@ let ll = w({ name: "Portal", props: { as: { type: [Object, String], default: "di
|
|
|
1466
1466
|
if (!d2.value || null === i2.value)
|
|
1467
1467
|
return null;
|
|
1468
1468
|
let a3 = { ref: n2, "data-headlessui-portal": "" };
|
|
1469
|
-
return
|
|
1469
|
+
return h(E, { to: i2.value }, tt({ ourProps: a3, theirProps: e2, slot: {}, attrs: l2, slots: t2, name: "Portal" }));
|
|
1470
1470
|
};
|
|
1471
1471
|
} }), nl = Symbol("PortalParentContext");
|
|
1472
1472
|
let al = Symbol("PortalGroupContext"), ol = w({ name: "PortalGroup", props: { as: { type: [Object, String], default: "template" }, target: { type: Object, default: null } }, setup(e2, { attrs: t2, slots: l2 }) {
|
|
@@ -1492,7 +1492,7 @@ let ul = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", dl = w({ name: "Dialog", inheri
|
|
|
1492
1492
|
b(() => {
|
|
1493
1493
|
r2.value = true;
|
|
1494
1494
|
});
|
|
1495
|
-
let i2 = false, d2 = u(() => "dialog" === e2.role || "alertdialog" === e2.role ? e2.role : (i2 || (i2 = true, console.warn(`Invalid role [${d2}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog")), c2 = s(0), p2 = ct(), g2 = u(() => e2.open === ul && null !== p2 ? (p2.value & dt.Open) === dt.Open : e2.open), f2 = s(null),
|
|
1495
|
+
let i2 = false, d2 = u(() => "dialog" === e2.role || "alertdialog" === e2.role ? e2.role : (i2 || (i2 = true, console.warn(`Invalid role [${d2}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog")), c2 = s(0), p2 = ct(), g2 = u(() => e2.open === ul && null !== p2 ? (p2.value & dt.Open) === dt.Open : e2.open), f2 = s(null), y2 = u(() => De(f2));
|
|
1496
1496
|
if (a2({ el: f2, $el: f2 }), e2.open === ul && null === p2)
|
|
1497
1497
|
throw new Error("You forgot to provide an `open` prop to the `Dialog`.");
|
|
1498
1498
|
if ("boolean" != typeof g2.value)
|
|
@@ -1510,7 +1510,7 @@ let ul = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", dl = w({ name: "Dialog", inheri
|
|
|
1510
1510
|
var e5;
|
|
1511
1511
|
return null == (e5 = t4.default) ? void 0 : e5.call(t4);
|
|
1512
1512
|
}) })];
|
|
1513
|
-
}(), { resolveContainers: D2, mainTreeNodeRef:
|
|
1513
|
+
}(), { resolveContainers: D2, mainTreeNodeRef: I2, MainTreeNode: _2 } = function({ defaultContainers: e3 = [], portals: t3, mainTreeNodeRef: l3 } = {}) {
|
|
1514
1514
|
let n3 = s(null), a3 = De(n3);
|
|
1515
1515
|
function o3() {
|
|
1516
1516
|
var l4, o4, r3;
|
|
@@ -1524,18 +1524,18 @@ let ul = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", dl = w({ name: "Dialog", inheri
|
|
|
1524
1524
|
e4 !== document.body && e4 !== document.head && e4 instanceof HTMLElement && "headlessui-portal-root" !== e4.id && (e4.contains(Ce(n3)) || e4.contains(null == (r3 = null == (o4 = Ce(n3)) ? void 0 : o4.getRootNode()) ? void 0 : r3.host) || i3.some((t4) => e4.contains(t4)) || i3.push(e4));
|
|
1525
1525
|
return i3;
|
|
1526
1526
|
}
|
|
1527
|
-
return { resolveContainers: o3, contains: (e4) => o3().some((t4) => t4.contains(e4)), mainTreeNodeRef: n3, MainTreeNode: () => null != l3 ? null :
|
|
1527
|
+
return { resolveContainers: o3, contains: (e4) => o3().some((t4) => t4.contains(e4)), mainTreeNodeRef: n3, MainTreeNode: () => null != l3 ? null : h(st, { features: it.Hidden, ref: n3 }) };
|
|
1528
1528
|
}({ portals: T2, defaultContainers: [u(() => {
|
|
1529
1529
|
var e3;
|
|
1530
1530
|
return null != (e3 = z2.panelRef.value) ? e3 : f2.value;
|
|
1531
1531
|
})] }), P2 = u(() => O2.value ? "parent" : "leaf"), j2 = u(() => null !== p2 && (p2.value & dt.Closing) === dt.Closing), R2 = u(() => !M2 && !j2.value && C2.value), B2 = u(() => {
|
|
1532
1532
|
var e3, t3, l3;
|
|
1533
|
-
return null != (l3 = Array.from(null != (t3 = null == (e3 =
|
|
1533
|
+
return null != (l3 = Array.from(null != (t3 = null == (e3 = y2.value) ? void 0 : e3.querySelectorAll("body > *")) ? t3 : []).find((e4) => "headlessui-portal-root" !== e4.id && (e4.contains(Ce(I2)) && e4 instanceof HTMLElement))) ? l3 : null;
|
|
1534
1534
|
});
|
|
1535
1535
|
Wt(B2, R2);
|
|
1536
1536
|
let L2 = u(() => !!O2.value || C2.value), A2 = u(() => {
|
|
1537
1537
|
var e3, t3, l3;
|
|
1538
|
-
return null != (l3 = Array.from(null != (t3 = null == (e3 =
|
|
1538
|
+
return null != (l3 = Array.from(null != (t3 = null == (e3 = y2.value) ? void 0 : e3.querySelectorAll("[data-headlessui-portal]")) ? t3 : []).find((e4) => e4.contains(Ce(I2)) && e4 instanceof HTMLElement)) ? l3 : null;
|
|
1539
1539
|
});
|
|
1540
1540
|
Wt(A2, L2), Qt({ type: "Dialog", enabled: u(() => 0 === x2.value), element: f2, onUpdate: (e3, t3) => {
|
|
1541
1541
|
if ("Dialog" === t3)
|
|
@@ -1552,11 +1552,11 @@ let ul = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", dl = w({ name: "Dialog", inheri
|
|
|
1552
1552
|
z2.close(), m(() => null == t3 ? void 0 : t3.focus());
|
|
1553
1553
|
}, $2);
|
|
1554
1554
|
let H2 = u(() => !(O2.value || 0 !== x2.value));
|
|
1555
|
-
Bt(null == (o2 =
|
|
1555
|
+
Bt(null == (o2 = y2.value) ? void 0 : o2.defaultView, "keydown", (e3) => {
|
|
1556
1556
|
H2.value && (e3.defaultPrevented || e3.key === gt.Escape && (e3.preventDefault(), e3.stopPropagation(), z2.close()));
|
|
1557
1557
|
});
|
|
1558
1558
|
let V2 = u(() => !(j2.value || 0 !== x2.value || M2));
|
|
1559
|
-
return Yt(
|
|
1559
|
+
return Yt(y2, V2, (e3) => {
|
|
1560
1560
|
var t3;
|
|
1561
1561
|
return { containers: [...null != (t3 = e3.containers) ? t3 : [], D2] };
|
|
1562
1562
|
}), v((e3) => {
|
|
@@ -1574,7 +1574,7 @@ let ul = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", dl = w({ name: "Dialog", inheri
|
|
|
1574
1574
|
l3.observe(t3), e3(() => l3.disconnect());
|
|
1575
1575
|
}), () => {
|
|
1576
1576
|
let { id: t3, open: a3, initialFocus: o3, ...r3 } = e2, i3 = { ...l2, ref: f2, id: t3, role: d2.value, "aria-modal": 0 === x2.value || void 0, "aria-labelledby": N2.value, "aria-describedby": F2.value }, s2 = { open: 0 === x2.value };
|
|
1577
|
-
return
|
|
1577
|
+
return h(Gt, { force: true }, () => [h(ll, () => h(ol, { target: f2.value }, () => h(Gt, { force: false }, () => h(Nt, { initialFocus: o3, containers: D2, features: C2.value ? Oe(P2.value, { parent: Nt.features.RestoreFocus, leaf: Nt.features.All & ~Nt.features.FocusLock }) : Nt.features.None }, () => h(E2, {}, () => tt({ ourProps: i3, theirProps: { ...r3, ...l2 }, slot: s2, attrs: l2, slots: n2, visible: 0 === x2.value, features: Qe.RenderStrategy | Qe.Static, name: "Dialog" })))))), h(_2)]);
|
|
1578
1578
|
};
|
|
1579
1579
|
} });
|
|
1580
1580
|
w({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: () => `headlessui-dialog-overlay-${Se()}` } }, setup(e2, { attrs: t2, slots: l2 }) {
|
|
@@ -1593,7 +1593,7 @@ w({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div"
|
|
|
1593
1593
|
throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.");
|
|
1594
1594
|
}), () => {
|
|
1595
1595
|
let { id: n3, ...r2 } = e2, i2 = { id: n3, ref: o2, "aria-hidden": true };
|
|
1596
|
-
return
|
|
1596
|
+
return h(Gt, { force: true }, () => h(ll, () => tt({ ourProps: i2, theirProps: { ...t2, ...r2 }, slot: { open: 0 === a2.dialogState.value }, attrs: t2, slots: l2, name: "DialogBackdrop" })));
|
|
1597
1597
|
};
|
|
1598
1598
|
} });
|
|
1599
1599
|
let cl = w({ name: "DialogPanel", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: () => `headlessui-dialog-panel-${Se()}` } }, setup(e2, { attrs: t2, slots: l2, expose: n2 }) {
|
|
@@ -1639,7 +1639,7 @@ let bl = w({ name: "Disclosure", props: { as: { type: [Object, String], default:
|
|
|
1639
1639
|
let { defaultOpen: a3, ...o3 } = e2;
|
|
1640
1640
|
return tt({ theirProps: o3, ourProps: {}, slot: { open: 0 === n2.value, close: r2.close }, slots: t2, attrs: l2, name: "Disclosure" });
|
|
1641
1641
|
};
|
|
1642
|
-
} }),
|
|
1642
|
+
} }), yl = w({ name: "DisclosureButton", props: { as: { type: [Object, String], default: "button" }, disabled: { type: [Boolean], default: false }, id: { type: String, default: null } }, setup(e2, { attrs: t2, slots: l2, expose: n2 }) {
|
|
1643
1643
|
let a2 = ml("DisclosureButton"), o2 = k(vl, null), r2 = u(() => null !== o2 && o2.value === a2.panelId.value);
|
|
1644
1644
|
b(() => {
|
|
1645
1645
|
r2.value || null !== e2.id && (a2.buttonId.value = e2.id);
|
|
@@ -1680,7 +1680,7 @@ let bl = w({ name: "Disclosure", props: { as: { type: [Object, String], default:
|
|
|
1680
1680
|
let o3 = { open: 0 === a2.disclosureState.value }, { id: s2, ...u2 } = e2;
|
|
1681
1681
|
return tt({ ourProps: r2.value ? { ref: i2, type: d2.value, onClick: c2, onKeydown: p2 } : { id: null != (n3 = a2.buttonId.value) ? n3 : s2, ref: i2, type: d2.value, "aria-expanded": 0 === a2.disclosureState.value, "aria-controls": 0 === a2.disclosureState.value || Ce(a2.panel) ? a2.panelId.value : void 0, disabled: !!e2.disabled || void 0, onClick: c2, onKeydown: p2, onKeyup: g2 }, theirProps: u2, slot: o3, attrs: t2, slots: l2, name: "DisclosureButton" });
|
|
1682
1682
|
};
|
|
1683
|
-
} }),
|
|
1683
|
+
} }), hl = w({ name: "DisclosurePanel", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: false }, unmount: { type: Boolean, default: true }, id: { type: String, default: null } }, setup(e2, { attrs: t2, slots: l2, expose: n2 }) {
|
|
1684
1684
|
let a2 = ml("DisclosurePanel");
|
|
1685
1685
|
b(() => {
|
|
1686
1686
|
null !== e2.id && (a2.panelId.value = e2.id);
|
|
@@ -1855,7 +1855,7 @@ let Tl = w({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
1855
1855
|
case gt.Tab:
|
|
1856
1856
|
e3.preventDefault(), e3.stopPropagation(), a2.closeMenu(), m(() => function(e4, t4) {
|
|
1857
1857
|
return He(Re(), t4, { relativeTo: e4 });
|
|
1858
|
-
}(Ce(a2.buttonRef), e3.shiftKey ?
|
|
1858
|
+
}(Ce(a2.buttonRef), e3.shiftKey ? _e.Previous : _e.Next));
|
|
1859
1859
|
break;
|
|
1860
1860
|
default:
|
|
1861
1861
|
1 === e3.key.length && (a2.search(e3.key), o2.value = setTimeout(() => a2.clearSearch(), 350));
|
|
@@ -1874,7 +1874,7 @@ let Tl = w({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
1874
1874
|
let s2 = { open: 0 === a2.menuState.value }, { id: u2, ...d3 } = e2;
|
|
1875
1875
|
return tt({ ourProps: { "aria-activedescendant": null === a2.activeItemIndex.value || null == (n3 = a2.items.value[a2.activeItemIndex.value]) ? void 0 : n3.id, "aria-labelledby": null == (o3 = Ce(a2.buttonRef)) ? void 0 : o3.id, id: u2, onKeydown: r2, onKeyup: i2, role: "menu", tabIndex: 0, ref: a2.itemsRef }, theirProps: d3, slot: s2, attrs: t2, slots: l2, features: Qe.RenderStrategy | Qe.Static, visible: c2.value, name: "MenuItems" });
|
|
1876
1876
|
};
|
|
1877
|
-
} }),
|
|
1877
|
+
} }), Il = w({ name: "MenuItem", inheritAttrs: false, props: { as: { type: [Object, String], default: "template" }, disabled: { type: Boolean, default: false }, id: { type: String, default: () => `headlessui-menu-item-${Se()}` } }, setup(e2, { slots: t2, attrs: l2, expose: n2 }) {
|
|
1878
1878
|
let a2 = Ml("MenuItem"), o2 = s(null);
|
|
1879
1879
|
n2({ el: o2, $el: o2 });
|
|
1880
1880
|
let r2 = u(() => null !== a2.activeItemIndex.value && a2.items.value[a2.activeItemIndex.value].id === e2.id), i2 = kl(o2), d2 = u(() => ({ disabled: e2.disabled, get textValue() {
|
|
@@ -1900,19 +1900,19 @@ let Tl = w({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
1900
1900
|
function f2(e3) {
|
|
1901
1901
|
g2.update(e3);
|
|
1902
1902
|
}
|
|
1903
|
-
function
|
|
1903
|
+
function y2(t3) {
|
|
1904
1904
|
g2.wasMoved(t3) && (e2.disabled || r2.value || a2.goToItem(mt.Specific, e2.id, 0));
|
|
1905
1905
|
}
|
|
1906
|
-
function
|
|
1906
|
+
function h2(t3) {
|
|
1907
1907
|
g2.wasMoved(t3) && (e2.disabled || r2.value && a2.goToItem(mt.Nothing));
|
|
1908
1908
|
}
|
|
1909
1909
|
return () => {
|
|
1910
1910
|
let { disabled: n3 } = e2, i3 = { active: r2.value, disabled: n3, close: a2.closeMenu }, { id: s2, ...u2 } = e2;
|
|
1911
|
-
return tt({ ourProps: { id: s2, ref: o2, role: "menuitem", tabIndex: true === n3 ? void 0 : -1, "aria-disabled": true === n3 || void 0, disabled: void 0, onClick: c2, onFocus: p2, onPointerenter: f2, onMouseenter: f2, onPointermove:
|
|
1911
|
+
return tt({ ourProps: { id: s2, ref: o2, role: "menuitem", tabIndex: true === n3 ? void 0 : -1, "aria-disabled": true === n3 || void 0, disabled: void 0, onClick: c2, onFocus: p2, onPointerenter: f2, onMouseenter: f2, onPointermove: y2, onMousemove: y2, onPointerleave: h2, onMouseleave: h2 }, theirProps: { ...l2, ...u2 }, slot: i3, attrs: l2, slots: t2, name: "MenuItem" });
|
|
1912
1912
|
};
|
|
1913
|
-
} }),
|
|
1913
|
+
} }), _l = Symbol("LabelContext");
|
|
1914
1914
|
function Pl() {
|
|
1915
|
-
let e2 = k(
|
|
1915
|
+
let e2 = k(_l, null);
|
|
1916
1916
|
if (null === e2) {
|
|
1917
1917
|
let e3 = new Error("You used a <Label /> component, but it is not inside a parent.");
|
|
1918
1918
|
throw Error.captureStackTrace && Error.captureStackTrace(e3, Pl), e3;
|
|
@@ -1921,7 +1921,7 @@ function Pl() {
|
|
|
1921
1921
|
}
|
|
1922
1922
|
function jl({ slot: e2 = {}, name: t2 = "Label", props: l2 = {} } = {}) {
|
|
1923
1923
|
let n2 = s([]);
|
|
1924
|
-
return S(
|
|
1924
|
+
return S(_l, { register: function(e3) {
|
|
1925
1925
|
return n2.value.push(e3), () => {
|
|
1926
1926
|
let t3 = n2.value.indexOf(e3);
|
|
1927
1927
|
-1 !== t3 && n2.value.splice(t3, 1);
|
|
@@ -1963,7 +1963,7 @@ let Rl = w({ name: "Label", props: { as: { type: [Object, String], default: "lab
|
|
|
1963
1963
|
}
|
|
1964
1964
|
}(e3.currentTarget);
|
|
1965
1965
|
}
|
|
1966
|
-
function
|
|
1966
|
+
function y2(e3) {
|
|
1967
1967
|
e3.preventDefault();
|
|
1968
1968
|
}
|
|
1969
1969
|
a2({ el: g2, $el: g2 });
|
|
@@ -1983,8 +1983,8 @@ let Rl = w({ name: "Label", props: { as: { type: [Object, String], default: "lab
|
|
|
1983
1983
|
}
|
|
1984
1984
|
}, { immediate: true });
|
|
1985
1985
|
}), () => {
|
|
1986
|
-
let { id: t3, name: a3, value: i3, form: s2, ...u2 } = e2, d3 = { checked: r2.value }, c3 = { id: t3, ref: g2, role: "switch", type: f2.value, tabIndex: 0, "aria-checked": r2.value, "aria-labelledby": null == o2 ? void 0 : o2.labelledby.value, "aria-describedby": null == o2 ? void 0 : o2.describedby.value, onClick: m2, onKeyup: v2, onKeypress:
|
|
1987
|
-
return
|
|
1986
|
+
let { id: t3, name: a3, value: i3, form: s2, ...u2 } = e2, d3 = { checked: r2.value }, c3 = { id: t3, ref: g2, role: "switch", type: f2.value, tabIndex: 0, "aria-checked": r2.value, "aria-labelledby": null == o2 ? void 0 : o2.labelledby.value, "aria-describedby": null == o2 ? void 0 : o2.describedby.value, onClick: m2, onKeyup: v2, onKeypress: y2 };
|
|
1987
|
+
return h(x, [null != a3 && null != r2.value ? h(st, ot({ features: it.Hidden, as: "input", type: "checkbox", hidden: true, readOnly: true, checked: r2.value, form: s2, name: a3, value: i3 })) : null, tt({ ourProps: c3, theirProps: { ...l2, ...rt(u2, ["modelValue", "defaultChecked"]) }, slot: d3, attrs: l2, slots: n2, name: "Switch" })]);
|
|
1988
1988
|
};
|
|
1989
1989
|
} }), Fl = Rl;
|
|
1990
1990
|
function Nl(e2, ...t2) {
|
|
@@ -1995,7 +1995,7 @@ function zl(e2, ...t2) {
|
|
|
1995
1995
|
}
|
|
1996
1996
|
var $l = ((e2) => (e2.Finished = "finished", e2.Cancelled = "cancelled", e2))($l || {});
|
|
1997
1997
|
function Hl(e2, t2, l2, n2, a2, o2) {
|
|
1998
|
-
let r2 =
|
|
1998
|
+
let r2 = yt(), i2 = void 0 !== o2 ? function(e3) {
|
|
1999
1999
|
let t3 = { called: false };
|
|
2000
2000
|
return (...l3) => {
|
|
2001
2001
|
if (!t3.called)
|
|
@@ -2005,7 +2005,7 @@ function Hl(e2, t2, l2, n2, a2, o2) {
|
|
|
2005
2005
|
};
|
|
2006
2006
|
return zl(e2, ...a2), Nl(e2, ...t2, ...l2), r2.nextFrame(() => {
|
|
2007
2007
|
zl(e2, ...l2), Nl(e2, ...n2), r2.add(function(e3, t3) {
|
|
2008
|
-
let l3 =
|
|
2008
|
+
let l3 = yt();
|
|
2009
2009
|
if (!e3)
|
|
2010
2010
|
return l3.dispose;
|
|
2011
2011
|
let { transitionDuration: n3, transitionDelay: a3 } = getComputedStyle(e3), [o3, r3] = [n3, a3].map((e4) => {
|
|
@@ -2055,10 +2055,10 @@ let Jl = Qe.RenderStrategy, Gl = w({ props: { as: { type: [Object, String], defa
|
|
|
2055
2055
|
r2.value &= ~dt.Closing, t2("afterLeave");
|
|
2056
2056
|
}
|
|
2057
2057
|
if (null === k(Yl, null) && null !== ct())
|
|
2058
|
-
return () =>
|
|
2058
|
+
return () => h(Xl, { ...e2, onBeforeEnter: i2, onAfterEnter: d2, onBeforeLeave: c2, onAfterLeave: g2 }, a2);
|
|
2059
2059
|
let f2 = s(null), m2 = u(() => e2.unmount ? et.Unmount : et.Hidden);
|
|
2060
2060
|
o2({ el: f2, $el: f2 });
|
|
2061
|
-
let { show:
|
|
2061
|
+
let { show: y2, appear: x2 } = function() {
|
|
2062
2062
|
let e3 = k(Yl, null);
|
|
2063
2063
|
if (null === e3)
|
|
2064
2064
|
throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");
|
|
@@ -2068,7 +2068,7 @@ let Jl = Qe.RenderStrategy, Gl = w({ props: { as: { type: [Object, String], defa
|
|
|
2068
2068
|
if (null === e3)
|
|
2069
2069
|
throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");
|
|
2070
2070
|
return e3;
|
|
2071
|
-
}(), M2 = s(
|
|
2071
|
+
}(), M2 = s(y2.value ? "visible" : "hidden"), T2 = { value: true }, E2 = Se(), D2 = { value: false }, I2 = Kl(() => {
|
|
2072
2072
|
!D2.value && "hidden" !== M2.value && (M2.value = "hidden", C2(E2), g2());
|
|
2073
2073
|
});
|
|
2074
2074
|
b(() => {
|
|
@@ -2076,12 +2076,12 @@ let Jl = Qe.RenderStrategy, Gl = w({ props: { as: { type: [Object, String], defa
|
|
|
2076
2076
|
O(e3);
|
|
2077
2077
|
}), v(() => {
|
|
2078
2078
|
if (m2.value === et.Hidden && E2) {
|
|
2079
|
-
if (
|
|
2079
|
+
if (y2.value && "visible" !== M2.value)
|
|
2080
2080
|
return void (M2.value = "visible");
|
|
2081
2081
|
Oe(M2.value, { hidden: () => C2(E2), visible: () => w2(E2) });
|
|
2082
2082
|
}
|
|
2083
2083
|
});
|
|
2084
|
-
let
|
|
2084
|
+
let _2 = Vl(e2.enter), P2 = Vl(e2.enterFrom), j2 = Vl(e2.enterTo), R2 = Vl(e2.entered), B2 = Vl(e2.leave), L2 = Vl(e2.leaveFrom), A2 = Vl(e2.leaveTo);
|
|
2085
2085
|
return b(() => {
|
|
2086
2086
|
v(() => {
|
|
2087
2087
|
if ("visible" === M2.value) {
|
|
@@ -2091,19 +2091,19 @@ let Jl = Qe.RenderStrategy, Gl = w({ props: { as: { type: [Object, String], defa
|
|
|
2091
2091
|
}
|
|
2092
2092
|
});
|
|
2093
2093
|
}), b(() => {
|
|
2094
|
-
p([
|
|
2094
|
+
p([y2], (e3, t3, l3) => {
|
|
2095
2095
|
(function(e4) {
|
|
2096
2096
|
let t4 = T2.value && !x2.value, l4 = Ce(f2);
|
|
2097
|
-
!l4 || !(l4 instanceof HTMLElement) || t4 || (D2.value = true,
|
|
2097
|
+
!l4 || !(l4 instanceof HTMLElement) || t4 || (D2.value = true, y2.value && i2(), y2.value || c2(), e4(y2.value ? Hl(l4, _2, P2, j2, R2, (e5) => {
|
|
2098
2098
|
D2.value = false, e5 === $l.Finished && d2();
|
|
2099
2099
|
}) : Hl(l4, B2, L2, A2, R2, (e5) => {
|
|
2100
|
-
D2.value = false, e5 === $l.Finished && (Wl(
|
|
2100
|
+
D2.value = false, e5 === $l.Finished && (Wl(I2) || (M2.value = "hidden", C2(E2), g2()));
|
|
2101
2101
|
})));
|
|
2102
2102
|
})(l3), T2.value = false;
|
|
2103
2103
|
}, { immediate: true });
|
|
2104
|
-
}), S(ql,
|
|
2104
|
+
}), S(ql, I2), pt(u(() => Oe(M2.value, { visible: dt.Open, hidden: dt.Closed }) | r2.value)), () => {
|
|
2105
2105
|
let { appear: t3, show: o3, enter: r3, enterFrom: i3, enterTo: s2, entered: u2, leave: d3, leaveFrom: c3, leaveTo: p2, ...g3 } = e2, m3 = { ref: f2 };
|
|
2106
|
-
return tt({ theirProps: { ...g3, ...x2.value &&
|
|
2106
|
+
return tt({ theirProps: { ...g3, ...x2.value && y2.value && Ee.isServer ? { class: n([l2.class, g3.class, ..._2, ...P2]) } : {} }, ourProps: m3, slot: {}, slots: a2, attrs: l2, features: Jl, visible: "visible" === M2.value, name: "TransitionChild" });
|
|
2107
2107
|
};
|
|
2108
2108
|
} }), Zl = Gl, Xl = w({ inheritAttrs: false, props: { as: { type: [Object, String], default: "div" }, show: { type: [Boolean], default: null }, unmount: { type: [Boolean], default: true }, appear: { type: [Boolean], default: false }, enter: { type: [String], default: "" }, enterFrom: { type: [String], default: "" }, enterTo: { type: [String], default: "" }, entered: { type: [String], default: "" }, leave: { type: [String], default: "" }, leaveFrom: { type: [String], default: "" }, leaveTo: { type: [String], default: "" } }, emits: { beforeEnter: () => true, afterEnter: () => true, beforeLeave: () => true, afterLeave: () => true }, setup(e2, { emit: t2, attrs: l2, slots: n2 }) {
|
|
2109
2109
|
let a2 = ct(), o2 = u(() => null === e2.show && null !== a2 ? (a2.value & dt.Open) === dt.Open : e2.show);
|
|
@@ -2120,7 +2120,7 @@ let Jl = Qe.RenderStrategy, Gl = w({ props: { as: { type: [Object, String], defa
|
|
|
2120
2120
|
});
|
|
2121
2121
|
}), S(ql, i2), S(Yl, c2), () => {
|
|
2122
2122
|
let a3 = rt(e2, ["show", "appear", "unmount", "onBeforeEnter", "onBeforeLeave", "onAfterEnter", "onAfterLeave"]), o3 = { unmount: e2.unmount };
|
|
2123
|
-
return tt({ ourProps: { ...o3, as: "template" }, theirProps: {}, slot: {}, slots: { ...n2, default: () => [
|
|
2123
|
+
return tt({ ourProps: { ...o3, as: "template" }, theirProps: {}, slot: {}, slots: { ...n2, default: () => [h(Zl, { onBeforeEnter: () => t2("beforeEnter"), onAfterEnter: () => t2("afterEnter"), onBeforeLeave: () => t2("beforeLeave"), onAfterLeave: () => t2("afterLeave"), ...l2, ...o3, ...a3 }, n2.default)] }, attrs: {}, features: Jl, visible: "visible" === r2.value, name: "Transition" });
|
|
2124
2124
|
};
|
|
2125
2125
|
} });
|
|
2126
2126
|
function Ql(t2, l2) {
|
|
@@ -2171,22 +2171,22 @@ function fn(t2, l2) {
|
|
|
2171
2171
|
function mn(t2, l2) {
|
|
2172
2172
|
return e(), a("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", "aria-hidden": "true", "data-slot": "icon" }, [i("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M6 18 18 6M6 6l12 12" })]);
|
|
2173
2173
|
}
|
|
2174
|
-
const vn = { class: "py-1" }, bn = ["onClick"],
|
|
2174
|
+
const vn = { class: "py-1" }, bn = ["onClick"], yn = { key: 1, class: "animate-pulse px-4 py-2 bg-gray-200 rounded-md flex inline-flex items-center relative inline-block text-left" }, hn = i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28" }, null, -1), xn = { name: "uiDropdown" }, wn = Object.assign(xn, { props: { items: { type: Array, required: true }, position: { type: String, default: "left" }, disabled: Boolean, label: String, loading: { type: Boolean, default: true } }, emits: ["optionSelected"], setup(l2, { emit: r2 }) {
|
|
2175
2175
|
const s2 = r2, c2 = l2, p2 = u(() => {
|
|
2176
2176
|
let e2 = c2.items.find((e3) => true === e3.active);
|
|
2177
2177
|
return e2 ? e2.name : c2.label;
|
|
2178
2178
|
});
|
|
2179
|
-
return (r3, u2) => l2.loading ? (e(), a("div",
|
|
2179
|
+
return (r3, u2) => l2.loading ? (e(), a("div", yn, [hn, o(d(nn), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5 text-gray-200 dark:text-gray-300" })])) : (e(), t(d(Tl), { key: 0, as: "div", class: n(["relative inline-block text-left", { "opacity-25": l2.disabled }]) }, { default: D(() => [i("div", null, [o(d(El), { 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" }, { default: D(() => [I(_(p2.value) + " ", 1), o(d(nn), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5" })]), _: 1 })]), o(P, { "enter-active-class": "transition ease-out duration-100", "enter-from-class": "transform opacity-0 scale-95", "enter-to-class": "transform opacity-100 scale-100", "leave-active-class": "transition ease-in duration-75", "leave-from-class": "transform opacity-100 scale-100", "leave-to-class": "transform opacity-0 scale-95" }, { default: D(() => [l2.disabled ? R("", true) : (e(), t(d(Dl), { key: 0, class: n([{ "right-0": "right" === l2.position, "left-0": "left" === l2.position }, "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"]) }, { default: D(() => [i("div", vn, [(e(true), a(x, null, j(l2.items, (l3, a2) => (e(), t(d(Il), { key: a2 }, { default: D(() => [i("a", { onClick: (e2) => ((e3) => {
|
|
2180
2180
|
c2.disabled || s2("optionSelected", e3.value);
|
|
2181
|
-
})(l3), class: n([l3.active ? "bg-gray-100 text-gray-900" : "text-gray-700", "block px-4 py-2 text-sm cursor-pointer"]) },
|
|
2182
|
-
} }), kn = { key: 0 }, Sn = { class: "flex justify-between" }, Cn = { key: 0, class: "block text-sm font-medium text-gray-700" }, On = { key: 1, class: "text-[10px] text-gray-500 uppercase justify-self-end" }, Mn = ["disabled", "name", "placeholder", "type"], Tn = { key: 2, class: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none" }, En = { key: 1, class: "animate-pulse" }, Dn = { key: 0, class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/3 md:w-1/4 mb-1.5" },
|
|
2181
|
+
})(l3), class: n([l3.active ? "bg-gray-100 text-gray-900" : "text-gray-700", "block px-4 py-2 text-sm cursor-pointer"]) }, _(l3.name), 11, bn)]), _: 2 }, 1024))), 128))])]), _: 1 }, 8, ["class"]))]), _: 1 })]), _: 1 }, 8, ["class"]));
|
|
2182
|
+
} }), kn = { key: 0 }, Sn = { class: "flex justify-between" }, Cn = { key: 0, class: "block text-sm font-medium text-gray-700" }, On = { key: 1, class: "text-[10px] text-gray-500 uppercase justify-self-end" }, Mn = ["disabled", "name", "placeholder", "type"], Tn = { key: 2, class: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none" }, En = { key: 1, class: "animate-pulse" }, Dn = { key: 0, class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/3 md:w-1/4 mb-1.5" }, In = i("div", { class: "animate-pulse px-4 py-3.5 bg-gray-200 rounded-md flex inline-flex items-center relative inline-block text-left w-full" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28" })], -1), _n = { name: "uiInput" }, Pn = Object.assign(_n, { props: { label: String, type: { type: String, default: "text" }, name: String, placeholder: { type: String, default: "..." }, icon: { type: Function, default: () => {
|
|
2183
2183
|
} }, disabled: Boolean, color: { type: String, default: "gray" }, value: { type: String, default: "" }, error: String, optional: String, addOn: String, rightAddOn: String, loading: { type: Boolean, default: true } }, emits: ["inputChanged", "rightAddOnClicked", "addOnClicked"], setup(t2, { emit: l2 }) {
|
|
2184
2184
|
const r2 = l2, u2 = t2, c2 = (e2) => {
|
|
2185
2185
|
r2("inputChanged", { value: e2.target.value, name: e2.target.name });
|
|
2186
2186
|
}, g2 = s(u2.value);
|
|
2187
2187
|
return p(() => u2.value, (e2) => {
|
|
2188
2188
|
g2.value = e2, r2("inputChanged", { name: u2.name, value: g2.value });
|
|
2189
|
-
}), (l3, r3) => t2.loading ? (e(), a("div", En, [void 0 !== t2.label ? (e(), a("div", Dn)) : R("", true),
|
|
2189
|
+
}), (l3, r3) => t2.loading ? (e(), a("div", En, [void 0 !== t2.label ? (e(), a("div", Dn)) : R("", true), In])) : (e(), a("div", kn, [i("div", Sn, [t2.label ? (e(), a("label", Cn, _(t2.label), 1)) : R("", true), t2.optional ? (e(), a("span", On, _(t2.optional), 1)) : R("", true)]), i("div", { class: n([{ "mt-1": t2.label }, "relative flex"]) }, [t2.addOn ? (e(), a("span", { key: 0, onClick: r3[0] || (r3[0] = (e2) => l3.$emit("addOnClicked")), class: "inline-flex items-center px-3 rounded-l-md border border-r-0 border-gray-300 bg-gray-50 text-gray-500 sm:text-sm cursor-pointer" }, _(t2.addOn), 1)) : R("", true), B(i("input", { "onUpdate:modelValue": r3[1] || (r3[1] = (e2) => g2.value = e2), class: n([{ "border-gray-300": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "border-red-400": "danger" === t2.color, "border-yellow-400": "warning" === t2.color, "border-green-400": "success" === t2.color, "bg-gray-100": t2.disabled, "text-black": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "text-red-400": "danger" === t2.color, "text-yellow-400": "warning" === t2.color, "text-green-400": "success" === t2.color, "rounded-md": !t2.addOn || !t2.rightAddOn, "rounded-r-md": t2.addOn, "rounded-l-none": t2.addOn, "rounded-l-md": t2.rightAddOn, "rounded-r-none": t2.rightAddOn }, "shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 placeholder-gray-300"]), disabled: t2.disabled, name: t2.name, placeholder: t2.placeholder, type: t2.type, onInput: c2 }, null, 42, Mn), [[L, g2.value]]), t2.rightAddOn ? (e(), a("span", { key: 1, onClick: r3[2] || (r3[2] = (e2) => l3.$emit("rightAddOnClicked")), 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" }, _(t2.rightAddOn), 1)) : R("", true), t2.icon ? (e(), a("div", Tn, [o(W, { icon: t2.icon, color: t2.color, loading: t2.loading }, null, 8, ["icon", "color", "loading"]), B(o(W, { icon: d(ln), color: "green", loading: t2.loading }, null, 8, ["icon", "loading"]), [[A, "success" === t2.color]]), B(o(W, { icon: d(un), color: "yellow", loading: t2.loading }, null, 8, ["icon", "loading"]), [[A, "warning" === t2.color]]), B(o(W, { icon: d(mn), color: "red", loading: t2.loading }, null, 8, ["icon", "loading"]), [[A, "danger" === t2.color]])])) : R("", true)], 2), B(i("p", { class: n([{ "text-gray-400": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "text-red-400": "danger" === t2.color, "text-yellow-400": "warning" === t2.color, "text-green-400": "success" === t2.color }, "mt-2 text-xs flex flex-row items-center"]) }, _(t2.error), 3), [[A, t2.error]])]));
|
|
2190
2190
|
} }), jn = { key: 0 }, Rn = { class: "flex justify-between" }, Bn = { key: 0, class: "block text-sm font-medium text-gray-700" }, Ln = { key: 1, class: "text-[10px] text-gray-500 uppercase" }, An = { class: "space-y-1 flex flex-col items-center justify-center" }, Fn = { class: "flex text-sm text-gray-600 flex flex-col sm:flex-row text-center" }, Nn = { for: "file-upload", 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" }, zn = ["accept"], $n = { class: "pl-1" }, Hn = { class: "text-xs text-gray-500 pb-4" }, Vn = { class: "mt-2 text-xs flex flex-row items-center text-red-300" }, Yn = { key: 1, class: "animate-pulse" }, Un = [i("div", { class: "flex justify-center items-center flex-col rounded-md border-2 border-dashed px-6 pt-5 pb-6 border-gray-200" }, [i("div", { class: "rounded-full h-20 w-20 bg-gray-200 mb-4" }), i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full md:w-1/3 mb-3" }), i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full md:w-1/4 mb-3" })], -1)], qn = { name: "uiInputFile" }, Wn = Object.assign(qn, { props: { name: String, label: String, optional: String, placeholder: String, dragAndDrop: String, fileTypesAndSizes: String, error: String, accept: String, icon: { type: Function, default: function(t2, l2) {
|
|
2191
2191
|
return e(), a("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", "aria-hidden": "true", "data-slot": "icon" }, [i("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M7.5 7.5h-.75A2.25 2.25 0 0 0 4.5 9.75v7.5a2.25 2.25 0 0 0 2.25 2.25h7.5a2.25 2.25 0 0 0 2.25-2.25v-7.5a2.25 2.25 0 0 0-2.25-2.25h-.75m0-3-3-3m0 0-3 3m3-3v11.25m6-2.25h.75a2.25 2.25 0 0 1 2.25 2.25v7.5a2.25 2.25 0 0 1-2.25 2.25h-7.5a2.25 2.25 0 0 1-2.25-2.25v-.75" })]);
|
|
2192
2192
|
} }, loading: { type: Boolean, default: true } }, emits: ["filesUploaded"], setup(t2, { emit: l2 }) {
|
|
@@ -2196,24 +2196,24 @@ const vn = { class: "py-1" }, bn = ["onClick"], hn = { key: 1, class: "animate-p
|
|
|
2196
2196
|
}, g2 = (e2) => {
|
|
2197
2197
|
u2("filesUploaded", e2.target.files), c2.filename = e2.target.files[0].name;
|
|
2198
2198
|
};
|
|
2199
|
-
return (l3, s2) => t2.loading ? (e(), a("div", Yn, Un)) : (e(), a("div", jn, [i("div", Rn, [t2.label ? (e(), a("label", Bn,
|
|
2200
|
-
}, ["prevent"])), onDrop: F(p2, ["prevent"]) }, [i("div", An, [o(W, { icon: t2.icon, size: "massive", color: "gray", "aria-hidden": "true", class: "mb-4", loading: t2.loading }, null, 8, ["icon", "loading"]), i("div", Fn, [i("label", Nn, [i("span", null,
|
|
2201
|
-
} }), Kn = { class: "relative mt-1" }, Jn = { key: 1, class: "animate-pulse px-4 py-2.5 bg-gray-200 rounded-md flex justify-between items-center w-full" }, Gn = i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1), Zn = { name: "uiSelect" }, Xn = Object.assign(Zn, { props: { items: { type: Array, required: true }, label: String, select: Object, loading: { type: Boolean, default: true } }, emits: ["selectChanged"], setup(l2, { emit: r2 }) {
|
|
2199
|
+
return (l3, s2) => t2.loading ? (e(), a("div", Yn, Un)) : (e(), a("div", jn, [i("div", Rn, [t2.label ? (e(), a("label", Bn, _(t2.label), 1)) : R("", true), t2.optional ? (e(), a("span", Ln, _(t2.optional), 1)) : R("", true)]), i("div", { class: n([[{ "mt-1": t2.label }, { "border-gray-300 hover:border-gray-400": !t2.error }, { "border-red-300 hover:border-red-400": t2.error }], "dropArea flex justify-center rounded-md border-2 border-dashed px-6 pt-5 pb-6"]), onDragover: s2[0] || (s2[0] = F(() => {
|
|
2200
|
+
}, ["prevent"])), onDrop: F(p2, ["prevent"]) }, [i("div", An, [o(W, { icon: t2.icon, size: "massive", color: "gray", "aria-hidden": "true", class: "mb-4", loading: t2.loading }, null, 8, ["icon", "loading"]), i("div", Fn, [i("label", Nn, [i("span", null, _(t2.placeholder), 1), i("input", { id: "file-upload", name: "file-upload", type: "file", class: "sr-only", accept: t2.accept, onChange: g2 }, null, 40, zn)]), i("p", $n, _(t2.dragAndDrop), 1)]), i("p", Hn, _(t2.fileTypesAndSizes), 1), B(i("p", { class: "font-bold text-xs uppercase block p-2 bg-gray-200 rounded" }, _(r2.value), 513), [[A, "" !== r2.value]])])], 34), B(i("p", Vn, [o(W, { icon: d(fn), color: "red", class: "mr-2", loading: t2.loading }, null, 8, ["icon", "loading"]), I(_(t2.error), 1)], 512), [[A, t2.error]])]));
|
|
2201
|
+
} }), Kn = { class: "relative mt-1" }, Jn = { key: 1, class: "animate-pulse px-4 py-2.5 bg-gray-200 rounded-md flex justify-between items-center w-full" }, Gn = i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1), Zn = { name: "uiSelect" }, Xn = Object.assign(Zn, { props: { items: { type: Array, required: true }, label: String, error: String, color: String, select: Object, loading: { type: Boolean, default: true } }, emits: ["selectChanged"], setup(l2, { emit: r2 }) {
|
|
2202
2202
|
const c2 = s(""), p2 = r2, g2 = l2, f2 = u(() => "" === c2.value ? g2.items : g2.items.filter((e2) => e2.name.toLowerCase().includes(c2.value.toLowerCase()))), m2 = u(() => g2.select);
|
|
2203
|
-
return (r3, s2) => l2.loading ? (e(), a("div", Jn, [Gn, o(d(rn), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5 text-gray-300 dark:text-gray-400" })])) : (e(), t(d(Dt), { key: 0, modelValue: m2.value, "onUpdate:modelValue": [s2[1] || (s2[1] = (e2) => m2.value = e2), s2[2] || (s2[2] = (e2) => p2("selectChanged", e2))], as: "div" }, { default: D(() => [o(d(
|
|
2203
|
+
return (r3, s2) => l2.loading ? (e(), a("div", Jn, [Gn, o(d(rn), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5 text-gray-300 dark:text-gray-400" })])) : (e(), t(d(Dt), { key: 0, modelValue: m2.value, "onUpdate:modelValue": [s2[1] || (s2[1] = (e2) => m2.value = e2), s2[2] || (s2[2] = (e2) => p2("selectChanged", e2))], as: "div" }, { default: D(() => [o(d(It), { class: "block text-sm font-medium" }, { default: D(() => [I(_(l2.label), 1)]), _: 1 }), i("div", Kn, [o(d(Pt), { "display-value": (e2) => e2 == null ? void 0 : e2.name, class: n([{ "border-gray-300": "danger" !== l2.color || "warning" !== l2.color || "success" !== l2.color, "border-red-400": "danger" === l2.color, "border-yellow-400": "warning" === l2.color, "border-green-400": "success" === l2.color, "bg-gray-100": r3.disabled, "text-black": "danger" !== l2.color || "warning" !== l2.color || "success" !== l2.color, "text-red-400": "danger" === l2.color, "text-yellow-400": "warning" === l2.color, "text-green-400": "success" === l2.color }, "w-full rounded-md border bg-white py-2 pl-3 pr-10 shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm"]), onChange: s2[0] || (s2[0] = (e2) => c2.value = e2.target.value) }, null, 8, ["display-value", "class"]), o(d(_t), { class: "absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none" }, { default: D(() => [o(d(rn), { "aria-hidden": "true", class: "h-5 w-5 text-gray-400" })]), _: 1 }), f2.value.length > 0 ? (e(), t(d(jt), { key: 0, 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" }, { default: D(() => [(e(true), a(x, null, j(f2.value, (l3) => (e(), t(d(Rt), { key: l3.id, value: l3, as: "template" }, { default: D(({ active: t2, selected: r4 }) => [i("li", { class: n(["relative cursor-default select-none py-2 pl-3 pr-9", t2 ? "bg-indigo-600 text-white" : "text-gray-900"]) }, [i("span", { class: n(["block truncate", r4 && "font-semibold"]) }, _(l3.name), 3), r4 ? (e(), a("span", { key: 0, class: n(["absolute inset-y-0 right-0 flex items-center pr-4", t2 ? "text-white" : "text-indigo-600"]) }, [o(d(ln), { "aria-hidden": "true", class: "h-5 w-5", loading: true })], 2)) : R("", true)], 2)]), _: 2 }, 1032, ["value"]))), 128))]), _: 1 })) : R("", true)]), B(i("p", { class: n([{ "text-gray-400": "danger" !== l2.color || "warning" !== l2.color || "success" !== l2.color, "text-red-400": "danger" === l2.color, "text-yellow-400": "warning" === l2.color, "text-green-400": "success" === l2.color }, "mt-2 text-xs flex flex-row items-center"]) }, _(l2.error), 3), [[A, l2.error]])]), _: 1 }, 8, ["modelValue"]));
|
|
2204
2204
|
} }), Qn = { key: 1, class: "inline-flex items-center px-3 py-2.5 rounded text-xs font-medium leading-none animate-pulse bg-gray-200" }, ea = [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12" }, null, -1)], ta = { name: "uiTag" }, la = Object.assign(ta, { props: { color: { type: String, default: "primary" }, loading: { type: Boolean, default: true } }, setup: (t2) => (l2, o2) => t2.loading ? (e(), a("div", Qn, ea)) : (e(), a("span", { key: 0, class: n([{ "bg-indigo-100 text-indigo-800 border border-indigo-200": "primary" === t2.color, "bg-red-100 text-red-800 border border-red-200": "danger" === t2.color, "bg-yellow-100 text-yellow-800 border border-yellow-200": "warning" === t2.color, "bg-green-100 text-green-800 border border-green-200": "success" === t2.color, "bg-black text-white border border-black": "black" === t2.color, "text-black border border-gray-200 bg-white": "white" === t2.color }, "inline-flex items-center px-3 py-2 rounded text-xs font-medium leading-none"]) }, [r(l2.$slots, "default")], 2)) }), na = { key: 0 }, aa = { key: 0, class: "block text-sm font-medium text-gray-700" }, oa = ["disabled", "placeholder"], ra = { key: 1, class: "animate-pulse" }, ia = [i("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), i("div", { class: "h-24 bg-gray-200 rounded-lg flex inline-flex items-center relative inline-block text-left w-full" }, null, -1)], sa = { name: "uiTextArea" }, ua = Object.assign(sa, { props: { label: String, placeholder: { type: String, default: "..." }, value: String, color: String, disabled: { type: Boolean, default: false }, error: String, loading: { type: Boolean, default: true } }, emits: ["inputChanged"], setup(t2, { emit: l2 }) {
|
|
2205
2205
|
const r2 = l2, u2 = t2, c2 = (e2) => {
|
|
2206
2206
|
r2("inputChanged", e2.target.value);
|
|
2207
2207
|
}, g2 = s(u2.value);
|
|
2208
2208
|
return p(() => u2.value, (e2) => {
|
|
2209
2209
|
g2.value = e2, r2("inputChanged", e2);
|
|
2210
|
-
}), (l3, r3) => t2.loading ? (e(), a("div", ra, ia)) : (e(), a("div", na, [t2.label ? (e(), a("label", aa,
|
|
2210
|
+
}), (l3, r3) => t2.loading ? (e(), a("div", ra, ia)) : (e(), a("div", na, [t2.label ? (e(), a("label", aa, _(t2.label), 1)) : R("", true), i("div", { class: n({ "mt-1": t2.label }) }, [B(i("textarea", { disabled: t2.disabled, rows: "4", "onUpdate:modelValue": r3[0] || (r3[0] = (e2) => g2.value = e2), placeholder: t2.placeholder, class: n(["shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm rounded-md", { "border-gray-300": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "border-red-300": "danger" === t2.color, "border-yellow-400": "warning" === t2.color, "border-green-400": "success" === t2.color, "bg-gray-100": t2.disabled, "text-black": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "text-red-300": "danger" === t2.color, "text-yellow-400": "warning" === t2.color, "text-green-400": "success" === t2.color }]), onChange: c2 }, null, 42, oa), [[N, g2.value]])], 2), B(i("p", { class: n([{ "text-gray-300": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "text-red-300": "danger" === t2.color, "text-yellow-400": "warning" === t2.color, "text-green-400": "success" === t2.color }, "mt-2 text-xs flex flex-row items-center"]) }, [o(W, { icon: d(fn), color: "red", class: "mr-2" }, null, 8, ["icon"]), I(_(t2.error), 1)], 2), [[A, t2.error]])]));
|
|
2211
2211
|
} }), da = { class: "text-sm font-medium text-gray-900" }, ca = { key: 0, class: "text-sm text-gray-500 ml-2" }, pa = { key: 1, class: "animate-pulse flex items-center" }, ga = [i("div", { class: "relative bg-gray-200 rounded-full w-12 h-6 p-1 flex items-center" }, [i("div", { class: "rounded-full bg-gray-300 dark:bg-gray-400 h-4 w-4" })], -1), i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-16 ml-2" }, null, -1)], fa = { name: "uiToggle" }, ma = Object.assign(fa, { props: { item: { type: Object, required: true }, checked: { type: Boolean, default: false }, disabled: { type: Boolean, default: false }, loading: { type: Boolean, default: true } }, setup(l2) {
|
|
2212
2212
|
const r2 = s(l2.checked);
|
|
2213
|
-
return (s2, u2) => l2.loading ? (e(), a("div", pa, ga)) : (e(), t(d(Ll), { key: 0, as: "div", class: "flex items-center relative" }, { default: D(() => [o(d(Al), { disabled: l2.disabled, onClick: u2[0] || (u2[0] = (e2) => s2.$emit("toggleChanged", { item: l2.item, active: !r2.value })), modelValue: r2.value, "onUpdate:modelValue": u2[1] || (u2[1] = (e2) => r2.value = e2), class: n([r2.value ? "bg-indigo-600" : "bg-gray-200", "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"]) }, { default: D(() => [i("span", { "aria-hidden": "true", class: n([r2.value ? "translate-x-5" : "translate-x-0", l2.disabled ? "bg-gray-300" : "", "pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out"]) }, null, 2)]), _: 1 }, 8, ["disabled", "modelValue", "class"]), o(d(Fl), { as: "span", class: "ml-3" }, { default: D(() => [i("span", da,
|
|
2214
|
-
} }), va = { key: 0, class: "flex flex-col" }, ba = { class: "flex" },
|
|
2213
|
+
return (s2, u2) => l2.loading ? (e(), a("div", pa, ga)) : (e(), t(d(Ll), { key: 0, as: "div", class: "flex items-center relative" }, { default: D(() => [o(d(Al), { disabled: l2.disabled, onClick: u2[0] || (u2[0] = (e2) => s2.$emit("toggleChanged", { item: l2.item, active: !r2.value })), modelValue: r2.value, "onUpdate:modelValue": u2[1] || (u2[1] = (e2) => r2.value = e2), class: n([r2.value ? "bg-indigo-600" : "bg-gray-200", "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"]) }, { default: D(() => [i("span", { "aria-hidden": "true", class: n([r2.value ? "translate-x-5" : "translate-x-0", l2.disabled ? "bg-gray-300" : "", "pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out"]) }, null, 2)]), _: 1 }, 8, ["disabled", "modelValue", "class"]), o(d(Fl), { as: "span", class: "ml-3" }, { default: D(() => [i("span", da, _(l2.item.title), 1), l2.item.subtitle ? (e(), a("span", ca, _(l2.item.subtitle), 1)) : R("", true)]), _: 1 }), l2.item.action ? (e(), a("span", { key: 0, class: "cursor-pointer text-indigo-600 hover:text-indigo-400 uppercase text-xs absolute right-0 bottom-0.5", onClick: u2[2] || (u2[2] = (e2) => s2.$emit("actionClicked", l2.item)) }, _(l2.item.action), 1)) : R("", true)]), _: 1 }));
|
|
2214
|
+
} }), va = { key: 0, class: "flex flex-col" }, ba = { class: "flex" }, ya = { class: "flex-shrink-0" }, ha = { class: "ml-3" }, xa = { class: "mt-4" }, wa = { class: "-mx-2 -my-1.5 flex" }, ka = ["onClick"], Sa = { key: 1, class: "flex flex-col animate-pulse" }, Ca = [z('<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)], Oa = { name: "uiAlert" }, Ma = Object.assign(Oa, { props: { actions: { type: Array }, title: { type: String }, type: { type: String, default: "info" }, loading: { type: Boolean, default: true } }, setup: (l2) => (o2, s2) => l2.loading ? (e(), a("div", Sa, Ca)) : (e(), a("div", va, [i("div", { class: n([{ "bg-indigo-50 border-indigo-400": "info" === l2.type, "bg-red-50 border-red-400": "danger" === l2.type, "bg-yellow-50 border-yellow-400": "warning" === l2.type, "bg-green-50 border-green-400": "success" === l2.type }, "p-4 border-l-4 rounded"]) }, [i("div", ba, [i("div", ya, ["info" === l2.type ? (e(), t(d(pn), { key: 0, class: "h-8 w-8 text-indigo-400", "aria-hidden": "true" })) : R("", true), "danger" === l2.type ? (e(), t(d(fn), { key: 1, class: "h-8 w-8 text-red-400", "aria-hidden": "true" })) : R("", true), "warning" === l2.type ? (e(), t(d(un), { key: 2, class: "h-8 w-8 text-yellow-400", "aria-hidden": "true" })) : R("", true), "success" === l2.type ? (e(), t(d(tn), { key: 3, class: "h-8 w-8 text-green-400", "aria-hidden": "true" })) : R("", true)]), i("div", ha, [i("h3", { class: n([{ "text-red-800": "danger" === l2.type, "text-yellow-800": "warning" === l2.type, "text-green-800": "success" === l2.type }, "text-sm font-medium"]) }, _(l2.title), 3), i("div", { class: n([{ "text-red-700": "danger" === l2.type, "text-yellow-700": "warning" === l2.type, "text-green-700": "success" === l2.type }, "mt-2 text-sm"]) }, [r(o2.$slots, "default")], 2), i("div", xa, [i("div", wa, [(e(true), a(x, null, j(l2.actions, (t2, r2) => (e(), a("button", { onClick: (e2) => o2.$emit("alertEvent", t2.event), type: "button", key: r2, class: n([{ "bg-green-50 text-green-800 hover:bg-green-100 focus:ring-green-600 focus:ring-offset-green-50": "success" === l2.type, "bg-indigo-50 text-indigo-800 hover:bg-indigo-100 focus:ring-indigo-600 focus:ring-offset-indigo-50": "info" === l2.type, "bg-red-50 text-red-800 hover:bg-red-100 focus:ring-red-600 focus:ring-offset-red-50": "danger" === l2.type, "bg-yellow-50 text-yellow-800 hover:bg-yellow-100 focus:ring-yellow-600 focus:ring-offset-yellow-50": "warning" === l2.type }, "px-2 py-1.5 text-sm font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2"]) }, _(t2.name), 11, ka))), 128))])])])])], 2)])) }), Ta = { key: 0, class: "inline-flex", "aria-label": "Breadcrumb" }, Ea = { role: "list", class: "flex items-center space-x-4 text-xs" }, Da = { key: 0 }, Ia = ["onClick"], _a = { key: 1, class: "flex items-center" }, Pa = ["onClick", "aria-current"], ja = { key: 1, class: "flex flex-row items-center animate-pulse" }, Ra = [i("div", { class: "animate-pulse rounded-full bg-gray-200 dark:bg-gray-300 h-4 w-4 mr-4" }, null, -1), i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5 mr-4" }, null, -1), i("div", { class: "animate-pulse rounded-full bg-gray-200 dark:bg-gray-300 h-4 w-4 mr-4" }, null, -1), i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5" }, null, -1)], Ba = { name: "uiBreadcrumbs" }, La = Object.assign(Ba, { props: { pages: { type: Array, required: true }, loading: { type: Boolean, default: true } }, setup: (t2) => (l2, r2) => t2.loading ? (e(), a("div", ja, Ra)) : (e(), a("nav", Ta, [i("ol", Ea, [(e(true), a(x, null, j(t2.pages, (t3, r3) => (e(), a("li", { key: r3 }, [0 === r3 ? (e(), a("div", Da, [i("p", { onClick: (e2) => l2.$emit("breadCrumbClicked", t3.routeName), class: "flex flex-row items-center justify-center text-indigo-600 hover:text-indigo-800 cursor-pointer" }, [o(d(cn), { class: "flex-shrink-0 h-3 w-3 text-gray-400 mr-4", "aria-hidden": "true" }), i("span", null, _(t3.name), 1)], 8, Ia)])) : (e(), a("div", _a, [o(d(on), { class: "flex-shrink-0 h-3 w-3 text-gray-400", "aria-hidden": "true" }), i("span", { onClick: (e2) => l2.$emit("breadCrumbClicked", t3.routeName), class: n(["cursor-pointer ml-4 text-xs text-gray-400 hover:text-gray-500", { "text-indigo-600 hover:text-indigo-800": !t3.current }]), "aria-current": t3.current ? "page" : "" }, _(t3.name), 11, Pa)]))]))), 128))])])) }), Aa = { class: "flex items-center flex-col sm:flex-row justify-center sm:justify-start" }, Fa = ["src"], Na = { class: "font-bold text-center sm:text-left" }, za = { class: "mt-1 text-xs text-center sm:text-left" }, $a = { key: 0, class: "flex flex-wrap mt-4 justify-center sm:justify-start" }, Ha = { key: 1, class: "rounded-lg bg-white shadow p-6 cursor-pointer animate-pulse" }, Va = [z('<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)], Ya = { name: "uiCard" }, Ua = Object.assign(Ya, { props: { id: { type: String, required: true }, name: { type: String, required: true }, type: String, tags: Array, logo: String, loading: { type: Boolean, default: true } }, setup: (l2) => (n2, o2) => {
|
|
2215
2215
|
var _a2;
|
|
2216
|
-
return l2.loading ? (e(), a("div", Ha, Va)) : (e(), a("div", { key: 0, class: "rounded-lg bg-white shadow p-6 cursor-pointer", onClick: o2[0] || (o2[0] = (e2) => n2.$emit("cardSelected", { id: l2.id, name: l2.name, type: l2.type, tags: l2.tags })) }, [i("div", Aa, [i("img", { class: "w-16 h-16 rounded-full mb-4 sm:mb-0 sm:mr-4", src: l2.logo }, null, 8, Fa), i("div", null, [i("h4", Na,
|
|
2216
|
+
return l2.loading ? (e(), a("div", Ha, Va)) : (e(), a("div", { key: 0, class: "rounded-lg bg-white shadow p-6 cursor-pointer", onClick: o2[0] || (o2[0] = (e2) => n2.$emit("cardSelected", { id: l2.id, name: l2.name, type: l2.type, tags: l2.tags })) }, [i("div", Aa, [i("img", { class: "w-16 h-16 rounded-full mb-4 sm:mb-0 sm:mr-4", src: l2.logo }, null, 8, Fa), i("div", null, [i("h4", Na, _(l2.name), 1), i("p", za, _(l2.type), 1)])]), ((_a2 = l2.tags) == null ? void 0 : _a2.length) > 0 ? (e(), a("div", $a, [(e(true), a(x, null, j(l2.tags, (n3) => (e(), t(la, { class: "mb-1 mr-1", key: n3.name, color: n3.color, loading: l2.loading }, { default: D(() => [I(_(n3.name), 1)]), _: 2 }, 1032, ["color", "loading"]))), 128))])) : R("", true)]));
|
|
2217
2217
|
} }), qa = { name: "uiFilter" }, Wa = Object.assign(qa, { props: { position: { type: String, default: "left" }, items: { type: Array, required: true }, label: { type: String, required: true }, loading: { type: Boolean, default: true } }, emits: ["filterSelected"], setup(l2, { emit: n2 }) {
|
|
2218
2218
|
const a2 = n2, o2 = s(l2.items);
|
|
2219
2219
|
return (n3, r2) => (e(), t(wn, { loading: l2.loading, onOptionSelected: r2[0] || (r2[0] = (e2) => ((e3) => {
|
|
@@ -2225,11 +2225,11 @@ const vn = { class: "py-1" }, bn = ["onClick"], hn = { key: 1, class: "animate-p
|
|
|
2225
2225
|
const u2 = l2, c2 = s2, p2 = (e2) => {
|
|
2226
2226
|
c2("modalAction", { modal: u2.modalName, action: e2 });
|
|
2227
2227
|
};
|
|
2228
|
-
return (s3, u3) => (e(), t(d(Xl), { as: "template", show: l2.open }, { default: D(() => [o(d(dl), { as: "div", class: "relative z-10", onClose: u3[1] || (u3[1] = (e2) => p2("close")) }, { default: D(() => [o(d(Gl), { as: "template", enter: "ease-out duration-300", "enter-from": "opacity-0", "enter-to": "opacity-100", leave: "ease-in duration-200", "leave-from": "opacity-100", "leave-to": "opacity-0" }, { default: D(() => [Ka]), _: 1 }), i("div", Ja, [i("div", Ga, [o(d(Gl), { as: "template", enter: "ease-out duration-300", "enter-from": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95", "enter-to": "opacity-100 translate-y-0 sm:scale-100", leave: "ease-in duration-200", "leave-from": "opacity-100 translate-y-0 sm:scale-100", "leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" }, { default: D(() => [o(d(cl), { 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" }, { default: D(() => [i("div", Za, [i("button", { type: "button", class: "rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none", onClick: u3[0] || (u3[0] = (e2) => p2("close")) }, [Xa, o(W, { icon: d(mn), "aria-hidden": "true", loading: l2.loading }, null, 8, ["icon", "loading"])])]), i("div", Qa, [i("div", { class: n(["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", { "bg-red-100": "danger" === l2.type, "bg-green-100": "success" === l2.type, "bg-indigo-100": "default" === l2.type, "bg-yellow-100": "warning" === l2.type }]) }, [B(o(d(mn), { class: "h-6 w-6 text-red-600", "aria-hidden": "true" }, null, 512), [[A, "danger" === l2.type]]), B(o(d(ln), { class: "h-6 w-6 text-green-600", "aria-hidden": "true" }, null, 512), [[A, "success" === l2.type]]), B(o(d(un), { class: "h-6 w-6 text-yellow-600", "aria-hidden": "true" }, null, 512), [[A, "warning" === l2.type]]), B(o(d(dn), { class: "h-6 w-6 text-indigo-600", "aria-hidden": "true" }, null, 512), [[A, "default" === l2.type]])], 2), i("div", eo, [o(d(pl), { as: "h3", class: "text-lg font-medium leading-6 text-gray-900" }, { default: D(() => [_(
|
|
2229
|
-
} }), ro = { class: "w-full flex flex-col items-center space-y-4 sm:items-end" }, io = { key: 0, class: "max-w-sm w-full bg-white shadow-lg rounded-lg pointer-events-auto ring-1 ring-black ring-opacity-5 overflow-hidden" }, so = { class: "p-4" }, uo = { class: "flex items-start" }, co = { class: "flex-shrink-0 mt-0.5" }, po = { class: "ml-3 w-0 flex-1 pt-0.5" }, go = { class: "font-medium text-gray-900" }, fo = { class: "mt-1 text-sm text-gray-500" }, mo = { class: "ml-4 flex-shrink-0 flex" }, vo = i("span", { class: "sr-only" }, "Close", -1), bo = { name: "uiNotification" },
|
|
2228
|
+
return (s3, u3) => (e(), t(d(Xl), { as: "template", show: l2.open }, { default: D(() => [o(d(dl), { as: "div", class: "relative z-10", onClose: u3[1] || (u3[1] = (e2) => p2("close")) }, { default: D(() => [o(d(Gl), { as: "template", enter: "ease-out duration-300", "enter-from": "opacity-0", "enter-to": "opacity-100", leave: "ease-in duration-200", "leave-from": "opacity-100", "leave-to": "opacity-0" }, { default: D(() => [Ka]), _: 1 }), i("div", Ja, [i("div", Ga, [o(d(Gl), { as: "template", enter: "ease-out duration-300", "enter-from": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95", "enter-to": "opacity-100 translate-y-0 sm:scale-100", leave: "ease-in duration-200", "leave-from": "opacity-100 translate-y-0 sm:scale-100", "leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" }, { default: D(() => [o(d(cl), { 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" }, { default: D(() => [i("div", Za, [i("button", { type: "button", class: "rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none", onClick: u3[0] || (u3[0] = (e2) => p2("close")) }, [Xa, o(W, { icon: d(mn), "aria-hidden": "true", loading: l2.loading }, null, 8, ["icon", "loading"])])]), i("div", Qa, [i("div", { class: n(["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", { "bg-red-100": "danger" === l2.type, "bg-green-100": "success" === l2.type, "bg-indigo-100": "default" === l2.type, "bg-yellow-100": "warning" === l2.type }]) }, [B(o(d(mn), { class: "h-6 w-6 text-red-600", "aria-hidden": "true" }, null, 512), [[A, "danger" === l2.type]]), B(o(d(ln), { class: "h-6 w-6 text-green-600", "aria-hidden": "true" }, null, 512), [[A, "success" === l2.type]]), B(o(d(un), { class: "h-6 w-6 text-yellow-600", "aria-hidden": "true" }, null, 512), [[A, "warning" === l2.type]]), B(o(d(dn), { class: "h-6 w-6 text-indigo-600", "aria-hidden": "true" }, null, 512), [[A, "default" === l2.type]])], 2), i("div", eo, [o(d(pl), { as: "h3", class: "text-lg font-medium leading-6 text-gray-900" }, { default: D(() => [I(_(l2.title), 1)]), _: 1 }), i("div", to, [r(s3.$slots, "default")]), l2.actions ? (e(), a("div", lo, [(e(true), a(x, null, j(l2.actions, (t2, l3) => (e(), a("button", { key: l3, type: "button", 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", onClick: (e2) => p2(t2.value) }, _(t2.name), 9, no))), 128))])) : R("", true)])])]), _: 3 })]), _: 3 })])])]), _: 3 })]), _: 3 }, 8, ["show"]));
|
|
2229
|
+
} }), ro = { class: "w-full flex flex-col items-center space-y-4 sm:items-end" }, io = { key: 0, class: "max-w-sm w-full bg-white shadow-lg rounded-lg pointer-events-auto ring-1 ring-black ring-opacity-5 overflow-hidden" }, so = { class: "p-4" }, uo = { class: "flex items-start" }, co = { class: "flex-shrink-0 mt-0.5" }, po = { class: "ml-3 w-0 flex-1 pt-0.5" }, go = { class: "font-medium text-gray-900" }, fo = { class: "mt-1 text-sm text-gray-500" }, mo = { class: "ml-4 flex-shrink-0 flex" }, vo = i("span", { class: "sr-only" }, "Close", -1), bo = { name: "uiNotification" }, yo = Object.assign(bo, { props: { show: Boolean, type: { type: String, default: "info" }, title: String, message: String, fixed: { type: Boolean, default: true } }, setup(t2) {
|
|
2230
2230
|
const l2 = t2, r2 = u(() => l2.show);
|
|
2231
|
-
return (l3, s2) => (e(), a("div", { "aria-live": "assertive", class: n([{ fixed: t2.fixed }, "inset-0 flex items-end px-4 py-6 pointer-events-none sm:p-6 sm:items-start"]) }, [i("div", ro, [o(P, { "enter-active-class": "transform ease-out duration-300 transition", "enter-from-class": "translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2", "enter-to-class": "translate-y-0 opacity-100 sm:translate-x-0", "leave-active-class": "transition ease-in duration-100", "leave-from-class": "opacity-100", "leave-to-class": "opacity-0" }, { default: D(() => [r2.value ? (e(), a("div", io, [i("div", so, [i("div", uo, [i("div", co, [B(o(d(tn), { "aria-hidden": "true", class: "h-6 w-6 text-green-400" }, null, 512), [[A, "success" === t2.type]]), B(o(d(fn), { "aria-hidden": "true", class: "h-6 w-6 text-red-400" }, null, 512), [[A, "danger" === t2.type]]), B(o(d(un), { "aria-hidden": "true", class: "h-6 w-6 text-yellow-400" }, null, 512), [[A, "warning" === t2.type]]), B(o(d(pn), { "aria-hidden": "true", class: "h-6 w-6 text-indigo-600" }, null, 512), [[A, "info" === t2.type]])]), i("div", po, [i("p", go,
|
|
2232
|
-
} }),
|
|
2231
|
+
return (l3, s2) => (e(), a("div", { "aria-live": "assertive", class: n([{ fixed: t2.fixed }, "inset-0 flex items-end px-4 py-6 pointer-events-none sm:p-6 sm:items-start"]) }, [i("div", ro, [o(P, { "enter-active-class": "transform ease-out duration-300 transition", "enter-from-class": "translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2", "enter-to-class": "translate-y-0 opacity-100 sm:translate-x-0", "leave-active-class": "transition ease-in duration-100", "leave-from-class": "opacity-100", "leave-to-class": "opacity-0" }, { default: D(() => [r2.value ? (e(), a("div", io, [i("div", so, [i("div", uo, [i("div", co, [B(o(d(tn), { "aria-hidden": "true", class: "h-6 w-6 text-green-400" }, null, 512), [[A, "success" === t2.type]]), B(o(d(fn), { "aria-hidden": "true", class: "h-6 w-6 text-red-400" }, null, 512), [[A, "danger" === t2.type]]), B(o(d(un), { "aria-hidden": "true", class: "h-6 w-6 text-yellow-400" }, null, 512), [[A, "warning" === t2.type]]), B(o(d(pn), { "aria-hidden": "true", class: "h-6 w-6 text-indigo-600" }, null, 512), [[A, "info" === t2.type]])]), i("div", po, [i("p", go, _(t2.title), 1), i("p", fo, _(t2.message), 1)]), i("div", mo, [i("button", { 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", type: "button", onClick: s2[0] || (s2[0] = (e2) => l3.$emit("closeNotification")) }, [vo, o(d(mn), { "aria-hidden": "true", class: "h-5 w-5" })])])])])])) : R("", true)]), _: 1 })])], 2));
|
|
2232
|
+
} }), ho = { key: 0, role: "list", class: "divide-y divide-gray-100" }, xo = { class: "min-w-0" }, wo = { class: "flex items-start gap-x-3" }, ko = { class: "text-sm font-semibold leading-6 text-gray-900" }, So = { class: "mt-1 flex items-center gap-x-2 text-xs leading-5 text-gray-500" }, Co = { class: "truncate" }, Oo = { class: "flex flex-none items-center gap-x-4" }, Mo = ["href"], To = { class: "sr-only" }, Eo = { key: 1, class: "divide-y divide-gray-100 animate-pulse" }, Do = [z('<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)], Io = { name: "uiTaskList" }, _o = Object.assign(Io, { props: { tasks: { type: Array, required: true }, loading: { type: Boolean, default: true } }, setup: (t2) => (l2, o2) => t2.loading ? (e(), a("ul", Eo, [(e(true), a(x, null, j(t2.tasks, (t3) => (e(), a("li", { key: t3.id, class: "flex items-center justify-between gap-x-6 py-5" }, Do))), 128))])) : (e(), a("ul", ho, [(e(true), a(x, null, j(t2.tasks, (t3) => (e(), a("li", { key: t3.id, class: "flex items-center justify-between gap-x-6 py-5" }, [i("div", xo, [i("div", wo, [i("p", ko, _(t3.name), 1), i("p", { class: n([{ "text-green-700 bg-green-50 ring-green-600/20": "Complete" === t3.status, "text-gray-600 bg-gray-50 ring-gray-500/10": "In progress" === t3.status, "text-yellow-800 bg-yellow-50 ring-yellow-600/20": "Incomplete" === t3.status }, "rounded-md whitespace-nowrap mt-0.5 px-1.5 py-0.5 text-xs font-medium ring-1 ring-inset"]) }, _(t3.statusLiteral), 3)]), i("div", So, [i("p", Co, _(t3.description), 1)])]), i("div", Oo, [i("a", { href: t3.href, 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" }, [I(_(t3.action), 1), i("span", To, ", " + _(t3.name), 1)], 8, Mo)])]))), 128))])) });
|
|
2233
2233
|
"undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self && self;
|
|
2234
2234
|
function Po(e2) {
|
|
2235
2235
|
return e2 && e2.__esModule && Object.prototype.hasOwnProperty.call(e2, "default") ? e2.default : e2;
|
|
@@ -2280,8 +2280,8 @@ const Fo = jo({ name: "dateSelector", components: { ChevronLeftIcon: an, Chevron
|
|
|
2280
2280
|
"previous" === t2 && ("day" === e2 && (l2 = Y(this.selectedDate).subtract(1, "day")), "month" === e2 && (l2 = Y(this.selectedDate).subtract(1, "month")), "year" === e2 && (l2 = Y(this.selectedDate).subtract(1, "year"))), "next" === t2 && ("day" === e2 && (l2 = Y(this.selectedDate).add(1, "day")), "month" === e2 && (l2 = Y(this.selectedDate).add(1, "month")), "year" === e2 && (l2 = Y(this.selectedDate).add(1, "year"))), this.$emit("dateSelected", l2);
|
|
2281
2281
|
} } }, [["render", function(t2, l2, n2, r2, s2, u2) {
|
|
2282
2282
|
const d2 = $("ChevronLeftIcon"), c2 = $("ChevronRightIcon");
|
|
2283
|
-
return e(), a("div", Ro, [i("div", Bo, [i("div", { class: "previousYear flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm", onClick: l2[0] || (l2[0] = (e2) => u2.selectDate("year", "previous")) }, [o(d2, { class: "h-4" }), o(d2, { class: "h-4 -ml-3" }), o(d2, { class: "h-4 -ml-3" })]), i("div", { class: "previousMonth flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm", onClick: l2[1] || (l2[1] = (e2) => u2.selectDate("month", "previous")) }, [o(d2, { class: "h-4" }), o(d2, { class: "h-4 -ml-3" })]), i("div", { class: "previousDay flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm", onClick: l2[2] || (l2[2] = (e2) => u2.selectDate("day", "previous")) }, [o(d2, { class: "h-4" })])]), i("div", Lo,
|
|
2284
|
-
}]]), No = { name: "SkeletonTable" }, zo = { class: "px-4 sm:px-6 lg:px-8 animate-pulse" }, $o = { class: "flow-root" }, Ho = { class: "-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8" }, Vo = { class: "inline-block min-w-full py-2 align-middle px-1" }, Yo = { class: "overflow-hidden shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg" }, Uo = { class: "min-w-full divide-y divide-gray-300" }, qo = i("thead", { class: "bg-gray-50" }, [i("tr", null, [i("th", { scope: "col", class: "py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })]), i("th", { scope: "col", class: "px-3 py-3.5 text-left text-sm font-semibold text-gray-900" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })]), i("th", { scope: "col", class: "px-3 py-3.5 text-left text-sm font-semibold text-gray-900" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })]), i("th", { scope: "col", class: "px-3 py-3.5 text-left text-sm font-semibold text-gray-900" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })]), i("th", { scope: "col", class: "relative py-3.5 pl-3 pr-4 sm:pr-6" }, [i("span", { class: "sr-only" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })])])])], -1), Wo = { class: "divide-y divide-gray-200 bg-white" }, Ko = [i("td", { class: "whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })], -1), i("td", { class: "whitespace-nowrap px-3 py-4 text-sm text-gray-500" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })], -1), i("td", { class: "whitespace-nowrap px-3 py-4 text-sm text-gray-500" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })], -1), i("td", { class: "whitespace-nowrap px-3 py-4 text-sm text-gray-500" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })], -1), i("td", { class: "relative whitespace-nowrap py-4 pl-3 pr-4 text-right text-sm font-medium sm:pr-6" }, [i("a", { href: "#", class: "text-indigo-600 hover:text-indigo-900" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" }), i("span", { class: "sr-only" }, [
|
|
2283
|
+
return e(), a("div", Ro, [i("div", Bo, [i("div", { class: "previousYear flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm", onClick: l2[0] || (l2[0] = (e2) => u2.selectDate("year", "previous")) }, [o(d2, { class: "h-4" }), o(d2, { class: "h-4 -ml-3" }), o(d2, { class: "h-4 -ml-3" })]), i("div", { class: "previousMonth flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm", onClick: l2[1] || (l2[1] = (e2) => u2.selectDate("month", "previous")) }, [o(d2, { class: "h-4" }), o(d2, { class: "h-4 -ml-3" })]), i("div", { class: "previousDay flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm", onClick: l2[2] || (l2[2] = (e2) => u2.selectDate("day", "previous")) }, [o(d2, { class: "h-4" })])]), i("div", Lo, _(u2.currentDate), 1), i("div", Ao, [i("div", { class: "previousDay flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm", onClick: l2[3] || (l2[3] = (e2) => u2.selectDate("day", "next")) }, [o(c2, { class: "h-4" })]), i("div", { class: "previousMonth flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm", onClick: l2[4] || (l2[4] = (e2) => u2.selectDate("month", "next")) }, [o(c2, { class: "h-4" }), o(c2, { class: "h-4 -ml-3" })]), i("div", { class: "previousYear flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm", onClick: l2[5] || (l2[5] = (e2) => u2.selectDate("year", "next")) }, [o(c2, { class: "h-4" }), o(c2, { class: "h-4 -ml-3" }), o(c2, { class: "h-4 -ml-3" })])])]);
|
|
2284
|
+
}]]), No = { name: "SkeletonTable" }, zo = { class: "px-4 sm:px-6 lg:px-8 animate-pulse" }, $o = { class: "flow-root" }, Ho = { class: "-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8" }, Vo = { class: "inline-block min-w-full py-2 align-middle px-1" }, Yo = { class: "overflow-hidden shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg" }, Uo = { class: "min-w-full divide-y divide-gray-300" }, qo = i("thead", { class: "bg-gray-50" }, [i("tr", null, [i("th", { scope: "col", class: "py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })]), i("th", { scope: "col", class: "px-3 py-3.5 text-left text-sm font-semibold text-gray-900" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })]), i("th", { scope: "col", class: "px-3 py-3.5 text-left text-sm font-semibold text-gray-900" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })]), i("th", { scope: "col", class: "px-3 py-3.5 text-left text-sm font-semibold text-gray-900" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })]), i("th", { scope: "col", class: "relative py-3.5 pl-3 pr-4 sm:pr-6" }, [i("span", { class: "sr-only" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })])])])], -1), Wo = { class: "divide-y divide-gray-200 bg-white" }, Ko = [i("td", { class: "whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })], -1), i("td", { class: "whitespace-nowrap px-3 py-4 text-sm text-gray-500" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })], -1), i("td", { class: "whitespace-nowrap px-3 py-4 text-sm text-gray-500" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })], -1), i("td", { class: "whitespace-nowrap px-3 py-4 text-sm text-gray-500" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })], -1), i("td", { class: "relative whitespace-nowrap py-4 pl-3 pr-4 text-right text-sm font-medium sm:pr-6" }, [i("a", { href: "#", class: "text-indigo-600 hover:text-indigo-900" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" }), i("span", { class: "sr-only" }, [I(", {"), i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })])])], -1)];
|
|
2285
2285
|
const Jo = jo(No, [["render", function(t2, l2, n2, o2, r2, s2) {
|
|
2286
2286
|
return e(), a("div", zo, [i("div", $o, [i("div", Ho, [i("div", Vo, [i("div", Yo, [i("table", Uo, [qo, i("tbody", Wo, [(e(), a(x, null, j(10, (e2) => i("tr", { key: e2 }, Ko)), 64))])])])])])])]);
|
|
2287
2287
|
}]]);
|
|
@@ -2296,12 +2296,12 @@ const Zo = Po(Go.exports), Xo = { class: "text-xs" }, Qo = { class: "font-bold t
|
|
|
2296
2296
|
const tr = { name: "dayPrice", props: { currency: String, price: Object, basePrice: Number, isBasePrice: { type: Boolean, default: false } }, computed: { currentDay() {
|
|
2297
2297
|
return { isWeekend: 6 == Y(this.price.date).format("d") || 0 == Y(this.price.date).format("d"), price: this.price.price };
|
|
2298
2298
|
} } }, lr = { class: "priceDay" };
|
|
2299
|
-
const nr = { name: "uiPriceCalendar", data: () => ({ today: /* @__PURE__ */ new Date(), date: /* @__PURE__ */ new Date(), selectedRooms: [], showBasePricesModal: false, showDays: 14 }), props: { category: { type: Object, required: true }, rooms: { type: Array, required: true }, currency: Object, actions: Array, loading: { type: Boolean, default: true } }, components: { DateSelector: Fo, Day: jo({ name: "calendarDay", props: { day: Object }, computed: { currentDay() {
|
|
2299
|
+
const nr = { name: "uiPriceCalendar", data: () => ({ today: /* @__PURE__ */ new Date(), date: /* @__PURE__ */ new Date(), selectedRooms: [], showBasePricesModal: false, showDays: 14 }), props: { type: String, category: { type: Object, required: true }, rooms: { type: Array, required: true }, currency: Object, actions: Array, loading: { type: Boolean, default: true }, literals: { type: Object, required: true } }, components: { DateSelector: Fo, Day: jo({ name: "calendarDay", props: { day: Object }, computed: { currentDay() {
|
|
2300
2300
|
return Y.extend(Zo), { dayName: Y(this.day).locale("es").format("ddd"), day: Y(this.day).locale("es").format("DD"), month: Y(this.day).locale("es").format("MMM."), isWeekend: 6 == Y(this.day).format("d") || 0 == Y(this.day).format("d"), isToday: Y(this.day).isToday() };
|
|
2301
2301
|
} } }, [["render", function(t2, l2, o2, r2, s2, u2) {
|
|
2302
|
-
return e(), a("div", { class: n(["day select-none text-center", { "bg-indigo-200 text-white": u2.currentDay.isWeekend, "bg-[#0ff] text-white": u2.currentDay.isToday }]) }, [i("p", Xo,
|
|
2302
|
+
return e(), a("div", { class: n(["day select-none text-center", { "bg-indigo-200 text-white": u2.currentDay.isWeekend, "bg-[#0ff] text-white": u2.currentDay.isToday }]) }, [i("p", Xo, _(u2.currentDay.dayName), 1), i("p", Qo, _(u2.currentDay.day), 1), i("p", er, _(u2.currentDay.month), 1)], 2);
|
|
2303
2303
|
}]]), Price: jo(tr, [["render", function(t2, l2, o2, r2, s2, u2) {
|
|
2304
|
-
return e(), a("div", lr, [i("div", { class: n([{ "bg-indigo-200 text-white": u2.currentDay.isWeekend, "bg-green-300 text-white": o2.price.price > o2.basePrice, "bg-yellow-300 text-white": o2.price.price < o2.basePrice }, "select-none text-center rounded-lg p-1"]) },
|
|
2304
|
+
return e(), a("div", lr, [i("div", { class: n([{ "bg-indigo-200 text-white": u2.currentDay.isWeekend, "bg-green-300 text-white": o2.price.price > o2.basePrice, "bg-yellow-300 text-white": o2.price.price < o2.basePrice }, "select-none text-center rounded-lg p-1"]) }, _(u2.currentDay.price) + _(o2.currency), 3)]);
|
|
2305
2305
|
}]]), uiButton: X, SkeletonTable: Jo }, computed: { days() {
|
|
2306
2306
|
let e2 = [];
|
|
2307
2307
|
for (let t2 = 0; t2 < this.showDays; t2++)
|
|
@@ -2324,44 +2324,44 @@ const nr = { name: "uiPriceCalendar", data: () => ({ today: /* @__PURE__ */ new
|
|
|
2324
2324
|
this.$emit("tableAction", e2);
|
|
2325
2325
|
}, changeRoomPrice(e2) {
|
|
2326
2326
|
this.$emit("changeRoomPrice", e2);
|
|
2327
|
-
} } }, ar = { key: 0, class: "px-4 sm:px-6 lg:px-8" }, or = { class: "flow-root" }, rr = { class: "overflow-x-auto sm:-mx-6 lg:-mx-8 shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg" }, ir = { class: "inline-block min-w-full align-middle" }, sr = { class: "min-w-full" }, ur = { class: "bg-white" }, dr = { colspan: "6", scope: "colgroup", class: "bg-gray-50 py-2 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-3" }, cr = { colspan: "20", scope: "colgroup", class: "bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, pr =
|
|
2328
|
-
const
|
|
2327
|
+
} } }, ar = { key: 0, class: "px-4 sm:px-6 lg:px-8" }, or = { class: "flow-root" }, rr = { class: "overflow-x-auto sm:-mx-6 lg:-mx-8 shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg" }, ir = { class: "inline-block min-w-full align-middle" }, sr = { class: "min-w-full text-sm" }, ur = { class: "bg-white" }, dr = { colspan: "6", scope: "colgroup", class: "bg-gray-50 py-2 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-3" }, cr = { colspan: "20", scope: "colgroup", class: "bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, pr = { key: 0 }, gr = { colspan: "6", class: "pl-4" }, fr = { key: 1 }, mr = { colspan: "6", class: "pl-4" }, vr = { key: 2 }, br = { colspan: "6", class: "pl-4" }, yr = { colspan: "20", scope: "colgroup", class: "bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900 relative" }, hr = { key: 0, 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" }, xr = ["onClick"], wr = { colspan: "2", scope: "colgroup", class: "relative bg-gray-100 py-3.5 pl-4 pr-3 text-left font-semibold text-gray-900" }, kr = ["checked", "indeterminate"], Sr = { class: "pl-6" }, Cr = { colspan: "2", scope: "colgroup", class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, Or = { colspan: "2", scope: "colgroup", class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, Mr = i("th", { colspan: "14", scope: "colgroup", class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, null, -1), Tr = { colspan: "2", class: "relative py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6" }, Er = { key: 0, class: "absolute inset-y-0 left-0 w-0.5 bg-indigo-600" }, Dr = ["value"], Ir = { class: "pl-6" }, _r = { colspan: "2", class: "pl-4" }, Pr = { colspan: "2", class: "pl-4" };
|
|
2328
|
+
const jr = jo(nr, [["render", function(l2, r2, s2, u2, d2, c2) {
|
|
2329
2329
|
var _a2, _b;
|
|
2330
|
-
const
|
|
2331
|
-
return
|
|
2332
|
-
}]]),
|
|
2330
|
+
const p2 = $("DateSelector"), g2 = $("Day"), f2 = $("uiButton"), m2 = $("Price"), v2 = $("SkeletonTable");
|
|
2331
|
+
return s2.loading ? (e(), t(v2, { key: 1 })) : (e(), a("div", ar, [i("div", or, [i("div", rr, [i("div", ir, [i("table", sr, [i("tbody", ur, [i("tr", null, [i("th", dr, [o(p2, { selectedDate: l2.date, onDateSelected: r2[0] || (r2[0] = (e2) => c2.changeDate(e2)) }, null, 8, ["selectedDate"])]), (e(true), a(x, null, j(c2.days, (t2, l3) => (e(), a("th", { scope: "col", key: l3, class: "text-sm font-semibold text-gray-900 p-0" }, [o(g2, { class: "border-l border-gray-200 px-6 py-3", day: t2 }, null, 8, ["day"])]))), 128))]), i("tr", null, [i("th", cr, [i("span", null, _(s2.literals.category) + " " + _(s2.category.name), 1), o(f2, { loading: s2.loading, class: "ml-4", size: "small", onClick: c2.changeCategoryBulkPrices }, { default: D(() => [I(_(s2.literals.changeInBulk), 1)]), _: 1 }, 8, ["loading", "onClick"])])]), "discounts" === s2.type ? (e(), a("tr", pr, [i("td", gr, _(s2.literals.pricesDiscount), 1), (e(true), a(x, null, j(s2.category.selectionPrices, (t2, l3) => (e(), a("td", { key: l3, class: "p-0" }, [o(m2, { onClick: (e2) => c2.changeCategorySelectionPrice(t2), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer", price: t2, currency: s2.currency.symbol, isBasePrice: true }, null, 8, ["onClick", "price", "currency"])]))), 128))])) : R("", true), "prices" === s2.type ? (e(), a("tr", fr, [i("td", mr, _(s2.literals.pricesSelection), 1), (e(true), a(x, null, j(s2.category.selectionPrices, (t2, l3) => (e(), a("td", { key: l3, class: "p-0" }, [o(m2, { onClick: (e2) => c2.changeCategorySelectionPrice(t2), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer", price: t2, currency: s2.currency.symbol, isBasePrice: true }, null, 8, ["onClick", "price", "currency"])]))), 128))])) : R("", true), "prices" === s2.type ? (e(), a("tr", vr, [i("td", br, _(s2.literals.pricesUpgrade), 1), (e(true), a(x, null, j(s2.category.upgradePrices, (t2, l3) => (e(), a("td", { key: l3, class: "p-0" }, [o(m2, { onClick: (e2) => c2.changeCategoryUpgradePrice(t2), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer bg-gray-100", price: t2, currency: s2.currency.symbol, isBasePrice: true }, null, 8, ["onClick", "price", "currency"])]))), 128))])) : R("", true), i("tr", null, [i("th", yr, [((_a2 = l2.selectedRooms) == null ? void 0 : _a2.length) > 0 && ((_b = s2.actions) == null ? void 0 : _b.length) > 0 ? (e(), a("div", hr, [(e(true), a(x, null, j(s2.actions, (t2, n2) => (e(), a("button", { onClick: (e2) => c2.tableAction({ action: t2.id, items: l2.selectedRooms }), key: n2, type: "button", 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" }, _(t2.name), 9, xr))), 128))])) : R("", true), i("span", null, _(s2.literals.pricesSelection), 1)])]), i("tr", null, [i("th", wr, [i("input", { type: "checkbox", class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600", checked: c2.indeterminate || l2.selectedRooms.length === s2.rooms.length, indeterminate: c2.indeterminate, onChange: r2[1] || (r2[1] = (e2) => l2.selectedRooms = e2.target.checked ? s2.rooms.map((e3) => e3.name) : []) }, null, 40, kr), i("span", Sr, _(s2.literals.room), 1)]), i("th", Cr, _(s2.literals.building), 1), i("th", Or, _(s2.literals.floor), 1), Mr]), (e(true), a(x, null, j(s2.rooms, (t2) => (e(), a("tr", { key: t2.name, class: n([{ "even:bg-gray-100": "prices" === s2.type, "odd:bg-gray-100": "discounts" === s2.type }]) }, [i("td", Tr, [l2.selectedRooms.includes(t2.name) ? (e(), a("div", Er)) : R("", true), B(i("input", { type: "checkbox", class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600", value: t2.name, "onUpdate:modelValue": r2[2] || (r2[2] = (e2) => l2.selectedRooms = e2) }, null, 8, Dr), [[H, l2.selectedRooms]]), i("span", Ir, _(t2.name), 1)]), i("td", _r, _(t2.building), 1), i("td", Pr, _(t2.floor), 1), (e(true), a(x, null, j(t2.selectionPrices, (t3, l3) => (e(), a("td", { class: "p-0", key: l3 }, [o(m2, { onClick: (e2) => c2.changeRoomPrice(t3), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 cursor-pointer", price: t3, currency: s2.currency.symbol, basePrice: c2.getSelectionBasePrice(t3) }, null, 8, ["onClick", "price", "currency", "basePrice"])]))), 128))], 2))), 128))])])])])])]));
|
|
2332
|
+
}]]), Rr = { class: "chart-selector flex flex-row items-center justify-center" }, Br = { name: "rangeSelector" }, Lr = Object.assign(Br, { props: { range: { type: String } }, emits: ["rangeSelected"], setup(t2, { emit: l2 }) {
|
|
2333
2333
|
const o2 = l2, r2 = t2;
|
|
2334
2334
|
let s2 = u(() => r2.range);
|
|
2335
2335
|
const c2 = (e2) => {
|
|
2336
2336
|
s2.value = e2, o2("rangeSelected", e2);
|
|
2337
2337
|
};
|
|
2338
|
-
return (t3, l3) => (e(), a("ul",
|
|
2339
|
-
} }),
|
|
2338
|
+
return (t3, l3) => (e(), a("ul", Rr, [i("li", { class: n({ selected: "24h" === d(s2) }), onClick: l3[0] || (l3[0] = (e2) => c2("24h")) }, " 24H ", 2), i("li", { class: n({ selected: "7d" === d(s2) }), onClick: l3[1] || (l3[1] = (e2) => c2("7d")) }, "7D", 2), i("li", { class: n({ selected: "1m" === d(s2) }), onClick: l3[2] || (l3[2] = (e2) => c2("1m")) }, "1M", 2), i("li", { class: n({ selected: "3m" === d(s2) }), onClick: l3[3] || (l3[3] = (e2) => c2("3m")) }, "3M", 2)]));
|
|
2339
|
+
} }), Ar = { class: "chart-header flex flex-row justify-between" }, Fr = { class: "text-sm font-medium text-gray-500 truncate" }, Nr = { class: "chart-content" }, zr = { class: "h-full w-full flex items-center justify-center flex-col" }, $r = i("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1), Hr = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, Vr = [i("div", { role: "status", class: "w-full animate-pulse h-full flex flex-col" }, [i("div", { class: "h-2.5 w-36 bg-gray-200 rounded-full mb-2.5" }), i("div", { class: "w-48 h-2 mb-6 bg-gray-200 rounded-full" }), i("div", { class: "flex flex-row justify-between items-baseline grow gap-x-1" }, [i("div", { class: "w-full bg-gray-200 rounded h-full" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" }), i("div", { class: "w-full bg-gray-200 rounded h-1/3" }), i("div", { class: "w-full bg-gray-200 rounded h-4/5" }), i("div", { class: "w-full bg-gray-200 rounded h-full" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" }), i("div", { class: "w-full bg-gray-200 rounded h-1/3" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" }), i("div", { class: "w-full bg-gray-200 rounded h-1/3" }), i("div", { class: "w-full bg-gray-200 rounded h-4/5" }), i("div", { class: "w-full bg-gray-200 rounded h-full" }), i("div", { class: "w-full bg-gray-200 rounded h-4/5" }), i("div", { class: "w-full bg-gray-200 rounded h-full" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" }), i("div", { class: "w-full bg-gray-200 rounded h-1/3" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" })])], -1)], Yr = { name: "uiChart" }, Ur = Object.assign(Yr, { props: { title: String, id: { type: String, default: "noChartId" }, type: { type: String, default: "area" }, series: { type: Array, required: true }, options: { type: Object, required: true }, loading: { type: Boolean, default: true }, empty: { type: Boolean, default: false }, range: { type: String, default: "24h" }, horizontal: { type: Boolean, default: false }, stacked: { type: Boolean, default: false }, height: { type: Number, default: 320 } }, emits: ["selectedRange", "chartUpdated", "dataPointSelection"], setup(t2, { emit: l2 }) {
|
|
2340
2340
|
const r2 = l2, s2 = t2;
|
|
2341
2341
|
let c2 = { chart: { toolbar: { show: false }, zoom: { enabled: false } }, colors: ["#715aff", "#00ffff", "#aba9ba"], stroke: { show: true, curve: "stepline", lineCap: "butt", width: 1, dashArray: 0 }, dataLabels: { enabled: false }, markers: { strokeWidth: 0, size: 4, hover: { size: 8 } } };
|
|
2342
2342
|
"area" === s2.type && (c2.tooltip = { intersect: true, shared: false });
|
|
2343
2343
|
const p2 = u(() => s2.series), g2 = u(() => (c2.chart.stacked = s2.stacked, { ...c2, ...s2.options, plotOptions: { bar: { horizontal: s2.horizontal } } })), f2 = () => r2("chartUpdated"), m2 = (e2, t3, l3) => {
|
|
2344
2344
|
r2("dataPointSelection", { id: s2.id, chartContext: t3, config: l3, event: e2 });
|
|
2345
2345
|
};
|
|
2346
|
-
return (l3, r3) => (e(), a(x, null, [B(i("div", { class: n(["h-[" + t2.height + "px]", "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"]) }, [i("div",
|
|
2347
|
-
} }),
|
|
2348
|
-
const
|
|
2349
|
-
return e(), a("footer",
|
|
2350
|
-
}]]),
|
|
2346
|
+
return (l3, r3) => (e(), a(x, null, [B(i("div", { class: n(["h-[" + t2.height + "px]", "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"]) }, [i("div", Ar, [i("div", Fr, _(t2.title), 1), o(Lr, { range: t2.range, onRangeSelected: r3[0] || (r3[0] = (e2) => l3.$emit("selectedRange", { range: e2, chartId: t2.id })) }, null, 8, ["range"])]), B(i("div", Nr, [o(d(U), { type: t2.type, series: p2.value, width: "100%", height: t2.height, options: g2.value, onUpdated: f2, onMounted: f2, onDataPointSelection: m2 }, null, 8, ["type", "series", "height", "options"])], 512), [[A, !t2.empty]]), B(i("div", zr, [o(W, { icon: d(un), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), $r], 512), [[A, t2.empty]])], 2), [[A, !t2.loading]]), B(i("div", Hr, Vr, 512), [[A, t2.loading]])], 64));
|
|
2347
|
+
} }), qr = { name: "uiFooter" }, Wr = { class: "bg-white" }, Kr = [i("div", { class: "mx-auto py-6 px-4 sm:px-6 md:flex md:items-center md:justify-between lg:px-8" }, [i("div", { class: "mt-8 md:mt-0 md:order-1" }, [i("p", { class: "text-center text-base text-gray-400" }, "© Made by Hotelinking.")])], -1)];
|
|
2348
|
+
const Jr = jo(qr, [["render", function(t2, l2, n2, o2, r2, i2) {
|
|
2349
|
+
return e(), a("footer", Wr, Kr);
|
|
2350
|
+
}]]), Gr = i("div", { class: "spinner h-12 w-12 mb-6" }, [i("img", { src: "https://images.hotelinking.com/ui/loader.gif", alt: "loading animation" })], -1), Zr = { name: "uiLoadScreen" }, Xr = Object.assign(Zr, { props: { title: String, message: String, fixed: { type: Boolean, default: true } }, setup: (t2) => (l2, o2) => (e(), a("div", { class: n([{ fixed: t2.fixed }, "load-screen h-full w-full top-0 left-0 z-50 flex flex-col items-center justify-center bg-gray-50"]) }, [Gr, B(i("h2", { class: "text-xs font-bold text-center uppercase mb-2" }, _(t2.title), 513), [[A, t2.title]]), B(i("p", { class: "text-xs text-center uppercase md:w-1/4" }, _(t2.message), 513), [[A, t2.message]])], 2)) }), Qr = { key: 0, class: "py-6 flex items-center justify-between" }, ei = { class: "flex-1 flex justify-between sm:hidden" }, ti = { href: "#", 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" }, li = { href: "#", 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" }, ni = { class: "hidden sm:flex-1 sm:flex sm:items-center sm:justify-between" }, ai = { class: "text-sm text-gray-700" }, oi = { class: "font-bold" }, ri = { class: "font-bold" }, ii = { class: "relative z-0 inline-flex rounded-md shadow-sm -space-x-px", "aria-label": "Pagination" }, si = { class: "sr-only" }, ui = ["onClick"], di = { class: "sr-only" }, ci = { key: 1, class: "py-6 flex flex-row justify-between items-center animate-pulse" }, pi = [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5" }, null, -1), i("div", { class: "h-10 w-32 bg-gray-200 rounded dark:bg-gray-300" }, null, -1)], gi = { name: "uiPagination" }, fi = Object.assign(gi, { props: { current: { type: Number, requires: true }, total: { type: Number, requires: true }, loading: { type: Boolean, default: true } }, emits: ["changePage"], setup(t2, { emit: l2 }) {
|
|
2351
2351
|
const c2 = l2, p2 = t2, g2 = s(3), f2 = u(() => Math.max(1, Number(p2.current) - Number(g2.value))), m2 = u(() => Math.min(Number(p2.current) + Number(g2.value), Number(p2.total))), v2 = u(() => {
|
|
2352
2352
|
let e2 = [];
|
|
2353
2353
|
for (let t3 = Number(f2.value); t3 <= Number(m2.value); t3++)
|
|
2354
2354
|
e2.push(t3);
|
|
2355
2355
|
return e2;
|
|
2356
2356
|
});
|
|
2357
|
-
return (l3, s2) => t2.loading ? (e(), a("div",
|
|
2358
|
-
} }),
|
|
2357
|
+
return (l3, s2) => t2.loading ? (e(), a("div", ci, pi)) : (e(), a("div", Qr, [i("div", ei, [i("a", ti, [r(l3.$slots, "previous")]), i("a", li, [r(l3.$slots, "next")])]), i("div", ni, [i("div", null, [i("p", ai, [r(l3.$slots, "showing"), I(), i("span", oi, _(t2.current + " "), 1), r(l3.$slots, "of"), I(), i("span", ri, _(t2.total), 1)])]), i("div", null, [i("nav", ii, [B(i("button", { onClick: s2[0] || (s2[0] = (e2) => c2("changePage", t2.current - 1)), 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" }, [i("span", si, [r(l3.$slots, "previous")]), o(d(an), { class: "h-5 w-5", "aria-hidden": "true" })], 512), [[A, 1 !== t2.current]]), (e(true), a(x, null, j(v2.value, (l4) => (e(), a("button", { onClick: (e2) => c2("changePage", l4), key: l4, "aria-current": "page", class: n([[l4 === t2.current ? "z-10 bg-indigo-50 border-indigo-500 text-indigo-600" : "bg-white border-gray-300 text-gray-500 hover:bg-gray-50"], "relative inline-flex items-center px-4 py-2 border text-sm font-medium"]) }, _(l4), 11, ui))), 128)), B(i("button", { onClick: s2[1] || (s2[1] = (e2) => c2("changePage", t2.current + 1)), 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" }, [i("span", di, [r(l3.$slots, "next")]), o(d(on), { class: "h-5 w-5", "aria-hidden": "true" })], 512), [[A, t2.current !== t2.total]])])])])]));
|
|
2358
|
+
} }), mi = { class: "hidden md:flex md:flex-col sticky md:inset-y-0" }, vi = { class: "flex flex-col flex-grow overflow-y-auto" }, bi = { class: "grow flex flex-col" }, yi = { class: "flex-1 space-y-1", "aria-label": "Sidebar" }, hi = { key: 0 }, xi = ["onClick"], wi = { key: 0 }, ki = { key: 1, class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, Si = { key: 0, class: "flex-1" }, Ci = { key: 1, class: "flex-1" }, Oi = [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1)], Mi = { key: 0 }, Ti = { key: 1, class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, Ei = { name: "uiSidebar" }, Di = Object.assign(Ei, { props: { navigation: { type: Array, required: true }, loading: { type: Boolean, default: true } }, emits: ["sideBarClick"], setup(l2, { emit: r2 }) {
|
|
2359
2359
|
const s2 = r2;
|
|
2360
|
-
return (r3, u2) => (e(), a("div",
|
|
2361
|
-
} }),
|
|
2360
|
+
return (r3, u2) => (e(), a("div", mi, [i("div", vi, [i("div", bi, [i("nav", yi, [(e(true), a(x, null, j(l2.navigation, (r4) => (e(), a(x, { key: r4.name }, [r4.children ? (e(), t(d(bl), { key: 1, as: "div", class: "space-y-1" }, { default: D(({ open: i2 }) => [o(d(yl), { class: n([r4.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"]) }, { default: D(() => [o(W, { loading: l2.loading, icon: r4.icon, class: "mr-3 flex-shrink-0 h-6 w-6 text-gray-400 group-hover:text-gray-500", "aria-hidden": "true" }, null, 8, ["loading", "icon"]), l2.loading ? (e(), a("div", Ci, Oi)) : (e(), a("span", Si, _(r4.name), 1)), o(d(on), { class: n([i2 ? "text-gray-400 rotate-90" : "text-gray-400", "ml-3 flex-shrink-0 h-3 w-3 transform group-hover:text-gray-400 transition-colors ease-in-out duration-150"]) }, null, 8, ["class"])]), _: 2 }, 1032, ["class"]), o(d(hl), { class: "space-y-1" }, { default: D(() => [(e(true), a(x, null, j(r4.children, (n2) => (e(), t(d(yl), { onClick: (e2) => s2("sideBarClick", n2.id), key: n2.name, class: "group w-full flex items-center pl-11 pr-2 py-2 text-sm font-medium text-gray-600 rounded-md hover:text-gray-900 hover:bg-gray-50" }, { default: D(() => [l2.loading ? (e(), a("div", Ti)) : (e(), a("span", Mi, _(n2.name), 1))]), _: 2 }, 1032, ["onClick"]))), 128))]), _: 2 }, 1024)]), _: 2 }, 1024)) : (e(), a("div", hi, [i("button", { onClick: (e2) => s2("sideBarClick", r4.id), class: n([r4.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 py-2 text-sm font-medium rounded-md"]) }, [o(W, { loading: l2.loading, icon: r4.icon, class: n([r4.current ? "text-white" : "text-gray-400 group-hover:text-gray-500", "mr-3 flex-shrink-0 h-6 w-6"]), "aria-hidden": "true" }, null, 8, ["loading", "icon", "class"]), l2.loading ? (e(), a("div", ki)) : (e(), a("span", wi, _(r4.name), 1))], 10, xi)]))], 64))), 128))])])])]));
|
|
2361
|
+
} }), Ii = { key: 0 }, _i = { class: "ml-16 text-sm font-medium text-gray-500 truncate" }, Pi = { class: "ml-16 flex items-baseline pb-5" }, ji = { class: "text-2xl font-semibold text-gray-900" }, Ri = { class: "absolute bottom-0 inset-x-0 bg-gray-50 px-4 py-4 sm:px-6" }, Bi = { class: "text-sm" }, Li = { key: 1 }, Ai = { class: "relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full pb-6" }, Fi = { class: "absolute bg-gray-200 rounded-md p-3 animate-pulse" }, Ni = i("div", { class: "ml-16" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2 mb-4 animate-pulse" })], -1), zi = i("div", { class: "ml-16" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2 animate-pulse" })], -1), $i = { name: "uiStats" }, Hi = Object.assign($i, { props: { item: { type: Object, required: true }, loading: { type: Boolean, default: true } }, emits: ["statClick"], setup(l2, { emit: r2 }) {
|
|
2362
2362
|
const s2 = r2;
|
|
2363
|
-
return (r3, u2) => l2.loading ? (e(), a("div",
|
|
2364
|
-
} }),
|
|
2363
|
+
return (r3, u2) => l2.loading ? (e(), a("div", Li, [i("div", Ai, [i("dt", null, [i("div", Fi, [o(W, { loading: l2.loading, icon: l2.item.icon, class: "h-6 w-6 text-white", "aria-hidden": "true" }, null, 8, ["loading", "icon"])]), Ni, zi])])])) : (e(), a("div", Ii, [i("div", { class: n(["relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full", { "pb-12": l2.item.showFooter }]) }, [i("dt", null, [i("div", { class: n(["absolute rounded-md p-3", { "bg-indigo-500": !l2.item.color, "bg-green-500": "success" === l2.item.color, "bg-red-500": "danger" === l2.item.color, "bg-yellow-500": "warning" === l2.item.color }]) }, [o(W, { icon: l2.item.icon, class: "h-6 w-6 text-white", "aria-hidden": "true", loading: l2.loading }, null, 8, ["icon", "loading"])], 2), i("p", _i, _(l2.item.name), 1)]), i("dd", Pi, [i("p", ji, _(l2.item.stat), 1), l2.item.changeType ? (e(), a("p", { key: 0, class: n([{ "text-green-600": "increase" === l2.item.changeType, "text-red-600": "decrease" === l2.item.changeType, "text-black": "neutral" === l2.item.changeType }, "ml-2 flex items-baseline text-sm font-semibold"]) }, ["increase" === l2.item.changeType ? (e(), t(d(en), { key: 0, class: "self-center flex-shrink-0 h-3 w-3 text-green-500", "aria-hidden": "true" })) : R("", true), "decrease" === l2.item.changeType ? (e(), t(d(Ql), { key: 1, class: "self-center flex-shrink-0 h-3 w-3 text-red-500", "aria-hidden": "true" })) : R("", true), I(" " + _(l2.item.change), 1)], 2)) : R("", true), B(i("div", Ri, [i("div", Bi, [i("span", { onClick: u2[0] || (u2[0] = (e2) => s2("statClick", l2.item.id)), class: "font-medium text-indigo-600 hover:text-indigo-500 cursor-pointer" }, _(l2.item.actionText), 1)])], 512), [[A, l2.item.showFooter]])])], 2)]));
|
|
2364
|
+
} }), Vi = { key: 0, class: "overflow-hidden bg-white shadow sm:rounded-lg" }, Yi = { class: "px-4 py-5 sm:px-6" }, Ui = { class: "text-lg font-medium leading-6 text-gray-900" }, qi = { class: "mt-1 max-w-2xl text-sm text-gray-500" }, Wi = { class: "border-t border-gray-200" }, Ki = { class: "text-sm font-medium text-gray-500" }, Ji = { key: 0, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal" }, Gi = { key: 1, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal" }, Zi = ["onClick"], Xi = { key: 3, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-words" }, Qi = { key: 1, class: "overflow-hidden bg-white shadow sm:rounded-lg" }, es = z('<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><p 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></p></div>', 1), ts = { class: "border-t border-gray-200" }, ls = [i("dt", { class: "text-sm font-medium text-gray-500" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12" })], -1), i("dd", { class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-words" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12" })], -1)], ns = { name: "uiStripedCard" }, as = Object.assign(ns, { props: { title: String, subtitle: String, items: Object, loading: { type: Boolean, default: true } }, emits: ["itemClicked"], setup: (l2, { emit: r2 }) => (r3, s2) => l2.loading ? (e(), a("div", Qi, [es, i("div", ts, [i("dl", null, [(e(), a(x, null, j(5, (e2) => i("div", { key: e2, class: n(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [e2 % 2 == 0 ? "bg-gray-50" : "bg-white"]]) }, ls, 2)), 64))])])])) : (e(), a("div", Vi, [i("div", Yi, [i("h3", Ui, _(l2.title), 1), i("p", qi, _(l2.subtitle), 1)]), i("div", Wi, [i("dl", null, [(e(true), a(x, null, j(l2.items, (s3, u2) => (e(), a("div", { key: u2, class: n(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [u2 % 2 == 0 ? "bg-gray-50" : "bg-white"]]) }, [i("dt", Ki, _(s3.title), 1), "tag" === s3.type ? (e(), a("dd", Ji, [o(la, { color: s3.color }, { default: D(() => [I(_(s3.text), 1)]), _: 2 }, 1032, ["color"])])) : "tags" === s3.type ? (e(), a("dd", Gi, [(e(true), a(x, null, j(s3.tags, (n2, a2) => (e(), t(la, { loading: l2.loading, key: a2, color: n2.color, class: "mr-2 mb-2" }, { default: D(() => [I(_(n2.text), 1)]), _: 2 }, 1032, ["loading", "color"]))), 128))])) : "link" === s3.type ? (e(), a("dd", { key: 2, class: "mt-1 text-sm text-indigo-600 hover:text-indigo-400 sm:col-span-2 sm:mt-0 cursor-pointer", onClick: (e2) => r3.$emit("itemClicked", s3.emits) }, _(s3.text), 9, Zi)) : (e(), a("dd", Xi, _(s3.text), 1))], 2))), 128))])])])) }), os = { 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" }, rs = i("svg", { class: "absolute -top-3 left-0", xmlns: "http://www.w3.org/2000/svg", width: "27.687", height: "26.954", viewBox: "0 0 27.687 26.954" }, [i("path", { id: "Polígono_1", "data-name": "Polígono 1", d: "M10.5,0,21,19H0Z", transform: "translate(0 10.5) rotate(-30)", fill: "#4f46e5" })], -1), is = { class: "ml-2" }, ss = { __name: "tooltip", props: { tip: { type: String, required: true } }, setup: (t2) => (l2, n2) => (e(), a("div", os, [rs, i("div", null, [o(W, { icon: d(gn), loading: false, color: "white", size: "big" }, null, 8, ["icon"])]), i("span", is, _(t2.tip), 1)])) }, us = { key: 0 }, ds = { class: "flex flex-col" }, cs = { class: "-my-2 overflow-x-auto" }, ps = { class: "inline-block min-w-full py-2 align-middle px-1" }, gs = { class: "relative overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg" }, fs = { key: 0, 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" }, ms = ["onClick"], vs = { class: "min-w-full table-fixed divide-y divide-gray-300" }, bs = { class: "bg-gray-50" }, ys = ["checked", "indeterminate"], hs = ["onMouseover", "onMouseleave"], xs = ["onClick"], ws = { key: 2, class: "group flex items-center uppercase text-xs" }, ks = { class: "divide-y divide-gray-200 bg-white" }, Ss = { key: 0, class: "absolute inset-y-0 left-0 w-0.5 bg-indigo-600" }, Cs = ["value"], Os = ["onClick"], Ms = { key: 2 }, Ts = { name: "uiTable" }, Es = Object.assign(Ts, { props: { header: { type: Array, required: true }, items: { type: Array, required: true }, orderedBy: String, orderDirection: { type: String, default: "asc" }, actions: Array, loading: { type: Boolean, default: true } }, emits: ["tableAction", "orderBy"], setup(l2, { emit: r2 }) {
|
|
2365
2365
|
let c2 = s([]);
|
|
2366
2366
|
s(false);
|
|
2367
2367
|
let p2 = s(void 0);
|
|
@@ -2370,40 +2370,40 @@ const Wr = jo(Yr, [["render", function(t2, l2, n2, o2, r2, i2) {
|
|
|
2370
2370
|
};
|
|
2371
2371
|
return (r3, s2) => {
|
|
2372
2372
|
var _a2, _b;
|
|
2373
|
-
return l2.loading ? (e(), t(Jo, { key: 1 })) : (e(), a("div",
|
|
2373
|
+
return l2.loading ? (e(), t(Jo, { key: 1 })) : (e(), a("div", us, [i("div", ds, [i("div", cs, [i("div", ps, [i("div", gs, [((_a2 = d(c2)) == null ? void 0 : _a2.length) > 0 && ((_b = l2.actions) == null ? void 0 : _b.length) > 0 ? (e(), a("div", fs, [(e(true), a(x, null, j(l2.actions, (t2, l3) => (e(), a("button", { onClick: (e2) => g2("tableAction", { action: t2.id, items: d(c2) }), key: l3, type: "button", 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" }, _(t2.name), 9, ms))), 128))])) : R("", true), i("table", vs, [i("thead", bs, [i("tr", null, [i("th", { scope: "col", class: n([l2.actions ? "px-6 sm:px-8" : "px-3", "relative"]) }, [l2.actions ? (e(), a("input", { key: 0, checked: m2.value || d(c2).length === l2.items.length, indeterminate: m2.value, class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500", type: "checkbox", onChange: s2[0] || (s2[0] = (e2) => V(c2) ? c2.value = e2.target.checked ? l2.items.map((e3) => e3.id) : [] : c2 = e2.target.checked ? l2.items.map((e3) => e3.id) : []) }, null, 40, ys)) : R("", true)], 2), (e(true), a(x, null, j(l2.header, (r4, s3) => (e(), a("th", { key: s3, class: "py-3.5 pr-3 text-left font-semibold text-gray-900 flex-wrap relative", scope: "col", onMouseover: (e2) => v2(r4.name, true), onMouseleave: (e2) => v2(r4.name, false) }, [r4.tooltip ? B((e(), t(ss, { key: 0, tip: r4.tooltip }, null, 8, ["tip"])), [[A, d(p2) === r4.name]]) : R("", true), r4.value ? (e(), a("button", { key: 1, class: "group flex items-center uppercase text-xs relative", onClick: (e2) => g2("orderBy", { value: r4.value, orderDirection: "asc" === l2.orderDirection ? "desc" : "asc" }) }, [i("span", null, _(r4.name), 1), i("span", { class: n([[r4.value === l2.orderedBy ? "bg-indigo-600 text-white group-hover:bg-gray-300" : "text-gray-400 group-hover:visible group-focus:visible"], "ml-2 flex-none rounded group-hover:bg-indigo-200 group-hover:text-white"]) }, [o(W, { icon: "asc" === l2.orderDirection ? d(nn) : d(sn), loading: l2.loading, color: r4.value === l2.orderedBy ? "white" : "primary" }, null, 8, ["icon", "loading", "color"])], 2)], 8, xs)) : (e(), a("p", ws, [i("span", null, _(r4.name), 1)]))], 40, hs))), 128))])]), i("tbody", ks, [(e(true), a(x, null, j(l2.items, (o2, r4) => {
|
|
2374
2374
|
var _a3, _b2;
|
|
2375
|
-
return e(), a("tr", { key: o2.id, class: n([d(c2).includes(o2.id) && "bg-gray-50", r4 % 2 == 0 ? void 0 : "bg-gray-50"]) }, [i("td", { class: n([((_a3 = l2.actions) == null ? void 0 : _a3.length) > 0 ? "w-2" : "w-0", "relative"]) }, [d(c2).includes(o2.id) ? (e(), a("div",
|
|
2375
|
+
return e(), a("tr", { key: o2.id, class: n([d(c2).includes(o2.id) && "bg-gray-50", r4 % 2 == 0 ? void 0 : "bg-gray-50"]) }, [i("td", { class: n([((_a3 = l2.actions) == null ? void 0 : _a3.length) > 0 ? "w-2" : "w-0", "relative"]) }, [d(c2).includes(o2.id) ? (e(), a("div", Ss)) : R("", true), ((_b2 = l2.actions) == null ? void 0 : _b2.length) > 0 ? B((e(), a("input", { key: 1, "onUpdate:modelValue": s2[1] || (s2[1] = (e2) => V(c2) ? c2.value = e2 : c2 = e2), value: o2.id, 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", type: "checkbox" }, null, 8, Cs)), [[H, d(c2)]]) : R("", true)], 2), (e(true), a(x, null, j(o2.row, (r5, i2) => (e(), a("td", { key: i2, class: n(["whitespace-nowrap py-4 pr-3 text-sm", d(c2).includes(o2.id) ? "text-indigo-600" : "text-gray-900"]) }, ["object" == typeof r5 && "tag" === r5.type ? (e(), t(la, { key: 0, loading: l2.loading, color: r5.color }, { default: D(() => [I(_(r5.content), 1)]), _: 2 }, 1032, ["loading", "color"])) : "object" == typeof r5 && "link" === r5.type ? (e(), a("span", { key: 1, class: "text-indigo-600 hover:text-indigo-400 cursor-pointer", onClick: (e2) => g2(r5.emits, { id: o2.id, data: (o2 == null ? void 0 : o2.emitWith) || null }) }, _(r5.content), 9, Os)) : (e(), a("span", Ms, _(r5), 1))], 2))), 128))], 2);
|
|
2376
2376
|
}), 128))])])])])])])]));
|
|
2377
2377
|
};
|
|
2378
|
-
} }),
|
|
2378
|
+
} }), Ds = { class: "lg:hidden" }, Is = ["value"], _s = { class: "hidden lg:block" }, Ps = { class: "border-b border-gray-200" }, js = { class: "-mb-px flex space-x-8", "aria-label": "Tabs" }, Rs = ["onClick", "aria-current"], Bs = { name: "uiTabs" }, Ls = Object.assign(Bs, { props: { tabs: Array }, emits: ["tabClicked"], setup(t2, { emit: l2 }) {
|
|
2379
2379
|
const o2 = l2;
|
|
2380
|
-
return (l3, r2) => (e(), a("div", null, [i("div",
|
|
2380
|
+
return (l3, r2) => (e(), a("div", null, [i("div", Ds, [i("select", { onChange: r2[0] || (r2[0] = (e2) => {
|
|
2381
2381
|
o2("tabClicked", e2.target.value);
|
|
2382
|
-
}), id: "tabs", name: "tabs", 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" }, [(e(true), a(x, null, j(t2.tabs, (t3) => (e(), a("option", { value: t3.id, key: t3.name },
|
|
2383
|
-
} }),
|
|
2382
|
+
}), id: "tabs", name: "tabs", 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" }, [(e(true), a(x, null, j(t2.tabs, (t3) => (e(), a("option", { value: t3.id, key: t3.name }, _(t3.name), 9, Is))), 128))], 32)]), i("div", _s, [i("div", Ps, [i("nav", js, [(e(true), a(x, null, j(t2.tabs, (t3) => (e(), a("a", { key: t3.name, onClick: (e2) => o2("tabClicked", t3.id), class: n([t3.current ? "border-indigo-500 text-indigo-600" : "border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-200", "whitespace-nowrap flex py-4 px-1 border-b-2 font-medium text-sm cursor-pointer"]), "aria-current": t3.current ? "page" : void 0 }, [I(_(t3.name) + " ", 1), t3.count ? (e(), a("span", { key: 0, class: n([t3.current ? "bg-indigo-100 text-indigo-600" : "bg-gray-100 text-gray-900", "hidden ml-3 py-0.5 px-2.5 rounded-full text-xs font-medium md:inline-block"]) }, _(t3.count), 3)) : R("", true)], 10, Rs))), 128))])])])]));
|
|
2383
|
+
} }), As = { key: 0, class: "bg-white overflow-hidden shadow rounded-lg" }, Fs = { class: "px-4 py-5 sm:px-6" }, Ns = { class: "text-xl font-bold" }, zs = { class: "px-4 py-5 sm:p-6" }, $s = { class: "flow-root" }, Hs = { class: "-mb-8", role: "list" }, Vs = { class: "relative pb-8" }, Ys = { key: 0, class: "absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200", "aria-hidden": "true" }, Us = { class: "relative flex space-x-3" }, qs = { class: "min-w-0 flex-1 pt-1.5 flex justify-between space-x-4 items-center" }, Ws = { class: "text-sm text-gray-500" }, Ks = ["onClick"], Js = { class: "text-right text-sm whitespace-nowrap text-gray-500" }, Gs = ["datetime"], Zs = { class: "bg-gray-50 px-4 py-4 sm:px-6 z-10" }, Xs = { class: "text-sm" }, Qs = { class: "h-full w-full flex items-center justify-center flex-col mb-5" }, eu = i("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1), tu = { key: 1, class: "bg-white overflow-hidden shadow rounded-lg" }, lu = i("div", { class: "px-4 py-5 sm:px-6 animate-pulse" }, [i("h1", { class: "text-xl font-bold" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4" })])], -1), nu = { class: "px-4 py-5 sm:p-6 animate-pulse" }, au = { class: "flow-root" }, ou = { class: "-mb-8", role: "list" }, ru = { class: "relative pb-8" }, iu = { key: 0, class: "absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200", "aria-hidden": "true" }, su = z('<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><p 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></p></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), uu = i("div", { class: "bg-gray-50 px-4 py-4 sm:px-6 z-10 animate-pulse" }, [i("div", { class: "text-sm" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4" })])], -1), du = { name: "uiTimeline" }, cu = Object.assign(du, { props: { name: { type: String, required: true }, timeline: { type: Object }, loading: { type: Boolean, default: true }, empty: { type: Boolean, default: false } }, setup: (t2) => (l2, r2) => {
|
|
2384
2384
|
const s2 = $("uiIcon");
|
|
2385
|
-
return t2.loading ? (e(), a("div",
|
|
2386
|
-
} }),
|
|
2385
|
+
return t2.loading ? (e(), a("div", tu, [lu, i("div", nu, [i("div", au, [i("ul", ou, [(e(), a(x, null, j(10, (t3) => i("li", { key: l2.index }, [i("div", ru, [10 !== t3 ? (e(), a("span", iu)) : R("", true), su])])), 64))])])]), uu])) : (e(), a("div", As, [i("div", Fs, [i("h1", Ns, _(t2.name), 1)]), B(i("div", zs, [i("div", $s, [i("ul", Hs, [(e(true), a(x, null, j(t2.timeline.items, (r3, u2) => (e(), a("li", { key: u2 }, [i("div", Vs, [u2 !== t2.timeline.items.length - 1 ? (e(), a("span", Ys)) : R("", true), i("div", Us, [i("div", null, [i("span", { class: n([r3.iconBackground, "h-8 w-8 rounded-full flex items-center justify-center ring-4 ring-white"]) }, [o(s2, { loading: t2.loading, icon: r3.icon, "aria-hidden": "true", class: "h-5 w-5 text-white", color: "white" }, null, 8, ["loading", "icon"])], 2)]), i("div", qs, [i("div", null, [i("p", Ws, [i("a", { onClick: (e2) => l2.$emit("timelineEventClicked", r3.linkId), class: "font-medium text-indigo-600 hover:text-indigo-800 cursor-pointer" }, _(r3.target), 9, Ks), I(" " + _(r3.content), 1)])]), i("div", Js, [i("time", { datetime: r3.datetime }, _(r3.date), 9, Gs)])])])])]))), 128))])])], 512), [[A, !t2.empty]]), B(i("div", Zs, [i("div", Xs, [i("a", { class: "cursor-pointer font-medium text-indigo-600 hover:text-indigo-500", onClick: r2[0] || (r2[0] = (e2) => l2.$emit("timelineFooterClicked", t2.timeline.id)) }, _(t2.timeline.footerText), 1)])], 512), [[A, !t2.empty]]), B(i("div", Qs, [o(W, { icon: d(un), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), eu], 512), [[A, t2.empty]])]));
|
|
2386
|
+
} }), pu = { name: "uiTopbar", props: ["navigation", "logo", "profileMenu", "brand", "accountLogo", "alerted"], components: { Disclosure: bl, DisclosureButton: yl, DisclosurePanel: hl, Menu: Tl, MenuButton: El, MenuItem: Il, MenuItems: Dl, Bars3Icon: function(t2, l2) {
|
|
2387
2387
|
return e(), a("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", "aria-hidden": "true", "data-slot": "icon" }, [i("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5" })]);
|
|
2388
|
-
}, XMarkIcon: mn } },
|
|
2389
|
-
const
|
|
2390
|
-
const p2 = $("Bars3Icon"), g2 = $("XMarkIcon"), f2 = $("DisclosureButton"), m2 = $("MenuButton"), v2 = $("MenuItem"), b2 = $("MenuItems"),
|
|
2391
|
-
return e(), t(w2, { as: "nav", class: "bg-white shadow z-10" }, { default: D(({ open: u3 }) => [i("div",
|
|
2392
|
-
}]]),
|
|
2388
|
+
}, XMarkIcon: mn } }, gu = { class: "mx-auto px-6 lg:px-8" }, fu = { class: "flex justify-between h-20" }, mu = { class: "flex" }, vu = { class: "-ml-2 mr-2 flex items-center lg:hidden" }, bu = i("span", { class: "sr-only" }, "Open main menu", -1), yu = ["src"], hu = { class: "flex items-center" }, xu = { class: "lg:ml-4 lg:flex-shrink-0 lg:flex lg:items-center hidden" }, wu = { class: "redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute -top-0 -left-1" }, ku = [i("span", { class: "animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75" }, null, -1)], Su = ["src"], Cu = ["onClick"], Ou = { class: "pt-2 pb-3 space-y-1" }, Mu = ["onClick"], Tu = { class: "pt-4 pb-3 border-t border-gray-200" }, Eu = { class: "flex items-center px-4 sm:px-6" }, Du = { class: "flex-shrink-0" }, Iu = ["src"], _u = { key: 0, class: "ml-3" }, Pu = { class: "text-base font-medium text-gray-800" }, ju = { class: "text-sm font-medium text-gray-500" }, Ru = { class: "mt-3 space-y-1" }, Bu = ["onClick"];
|
|
2389
|
+
const Lu = jo(pu, [["render", function(l2, r2, s2, u2, d2, c2) {
|
|
2390
|
+
const p2 = $("Bars3Icon"), g2 = $("XMarkIcon"), f2 = $("DisclosureButton"), m2 = $("MenuButton"), v2 = $("MenuItem"), b2 = $("MenuItems"), y2 = $("Menu"), h2 = $("DisclosurePanel"), w2 = $("Disclosure");
|
|
2391
|
+
return e(), t(w2, { as: "nav", class: "bg-white shadow z-10" }, { default: D(({ open: u3 }) => [i("div", gu, [i("div", fu, [i("div", mu, [i("div", vu, [o(f2, { 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" }, { default: D(() => [bu, u3 ? (e(), t(g2, { key: 1, class: "block h-6 w-6", "aria-hidden": "true" })) : (e(), t(p2, { key: 0, class: "block h-6 w-6", "aria-hidden": "true" }))]), _: 2 }, 1024)]), i("div", { class: "flex-shrink-0 flex items-center cursor-pointer", onClick: r2[0] || (r2[0] = (e2) => l2.$emit("topBarClick", "logo")) }, [i("img", { class: "h-10", src: s2.logo, alt: "Hotelinking suite product logo" }, null, 8, yu)])]), i("div", hu, [i("div", xu, [o(y2, { as: "div", class: "ml-3 relative" }, { default: D(() => [i("div", null, [B(o(m2, { class: "bg-white rounded-full flex text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 relative" }, { default: D(() => [B(i("div", wu, ku, 512), [[A, s2.alerted]]), i("img", { class: "h-10 w-10 rounded-full", src: s2.accountLogo }, null, 8, Su)]), _: 1 }, 512), [[A, s2.accountLogo]])]), o(P, { "enter-active-class": "transition ease-out duration-200", "enter-from-class": "transform opacity-0 scale-95", "enter-to-class": "transform opacity-100 scale-100", "leave-active-class": "transition ease-in duration-75", "leave-from-class": "transform opacity-100 scale-100", "leave-to-class": "transform opacity-0 scale-95" }, { default: D(() => [o(b2, { 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" }, { default: D(() => [(e(true), a(x, null, j(s2.profileMenu, (a2) => (e(), t(v2, { key: a2.name }, { default: D(({ active: e2 }) => [i("p", { onClick: (e3) => l2.$emit("topBarClick", a2.id), class: n(["cursor-pointer", [e2 ? "bg-gray-100" : "", "block px-4 py-2 text-sm text-gray-700"]]) }, _(a2.name), 11, Cu)]), _: 2 }, 1024))), 128))]), _: 1 })]), _: 1 })]), _: 1 })])])])]), o(h2, { class: "lg:hidden" }, { default: D(() => [i("div", Ou, [(e(true), a(x, null, j(s2.navigation, (a2) => (e(), t(f2, { as: "template", key: a2.name, class: n(["block pl-3 pr-4 py-2 border-l-4 text-base font-medium sm:pl-5 sm:pr-6", { "bg-indigo-50 border-indigo-500 text-indigo-700": a2.current && true === a2.current, "border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700": !a2.current }]) }, { default: D(() => [i("p", { onClick: (e2) => l2.$emit("topBarClick", a2.id) }, _(a2.name), 9, Mu)]), _: 2 }, 1032, ["class"]))), 128))]), i("div", Tu, [i("div", Eu, [i("div", Du, [i("img", { class: "h-10 w-10 rounded-full", src: s2.accountLogo }, null, 8, Iu)]), s2.brand ? (e(), a("div", _u, [i("div", Pu, _(s2.brand.title), 1), i("div", ju, _(s2.brand.subtitle), 1)])) : R("", true)]), i("div", Ru, [(e(true), a(x, null, j(s2.profileMenu, (n2) => (e(), t(f2, { as: "template", key: n2.name, class: "block px-4 py-2 text-base font-medium text-gray-500 hover:text-gray-800 hover:bg-gray-100 sm:px-6" }, { default: D(() => [i("p", { onClick: (e2) => l2.$emit("topBarClick", n2.id) }, _(n2.name), 9, Bu)]), _: 2 }, 1024))), 128))])])]), _: 1 })]), _: 1 });
|
|
2392
|
+
}]]), Au = { chart: { type: "bar", toolbar: { show: false }, zoom: { enabled: false } }, colors: ["#715aff"], dataLabels: { enabled: true, formatter: function(e2, t2) {
|
|
2393
2393
|
return t2.w.globals.labels[t2.dataPointIndex] + ": " + e2;
|
|
2394
|
-
} }, markers: { strokeWidth: 0, size: 4, hover: { size: 8 } }, plotOptions: { bar: { borderRadius: 0, horizontal: true, barHeight: "80%", isFunnel: true } } },
|
|
2395
|
-
const r2 = l2, s2 = t2, c2 = u(() => ({ ...s2.options, ...
|
|
2394
|
+
} }, markers: { strokeWidth: 0, size: 4, hover: { size: 8 } }, plotOptions: { bar: { borderRadius: 0, horizontal: true, barHeight: "80%", isFunnel: true } } }, Fu = { class: "chart-header flex flex-row justify-between" }, Nu = { class: "text-sm font-medium text-gray-500 truncate" }, zu = { class: "chart-content" }, $u = { class: "h-full w-full flex items-center justify-center flex-col" }, Hu = i("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1), Vu = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, Yu = [i("div", { role: "status", class: "w-full animate-pulse h-full flex flex-col" }, [i("div", { class: "h-2.5 w-36 bg-gray-200 rounded-full mb-2.5" }), i("div", { class: "w-48 h-2 mb-6 bg-gray-200 rounded-full" }), i("div", { class: "flex flex-row justify-between items-baseline grow gap-x-1" }, [i("div", { class: "w-full bg-gray-200 rounded h-full" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" }), i("div", { class: "w-full bg-gray-200 rounded h-1/3" }), i("div", { class: "w-full bg-gray-200 rounded h-4/5" }), i("div", { class: "w-full bg-gray-200 rounded h-full" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" }), i("div", { class: "w-full bg-gray-200 rounded h-1/3" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" }), i("div", { class: "w-full bg-gray-200 rounded h-1/3" }), i("div", { class: "w-full bg-gray-200 rounded h-4/5" }), i("div", { class: "w-full bg-gray-200 rounded h-full" }), i("div", { class: "w-full bg-gray-200 rounded h-4/5" }), i("div", { class: "w-full bg-gray-200 rounded h-full" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" }), i("div", { class: "w-full bg-gray-200 rounded h-1/3" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" })])], -1)], Uu = { name: "uiChart" }, qu = Object.assign(Uu, { props: { title: String, id: { type: String, default: "noChartId" }, series: { type: Object, required: true }, options: { type: Object, required: true }, loading: { type: Boolean, default: true }, empty: { type: Boolean, default: false }, range: { type: String, default: "24h" }, height: { type: Number, default: 320 } }, emits: ["selectedRange", "chartUpdated", "dataPointSelection"], setup(t2, { emit: l2 }) {
|
|
2395
|
+
const r2 = l2, s2 = t2, c2 = u(() => ({ ...s2.options, ...Au })), p2 = u(() => s2.series), g2 = () => r2("chartUpdated"), f2 = (e2, t3, l3) => {
|
|
2396
2396
|
r2("dataPointSelection", { id: s2.id, chartContext: t3, config: l3, event: e2 });
|
|
2397
2397
|
};
|
|
2398
|
-
return (l3, r3) => (e(), a(x, null, [B(i("div", { class: n(["h-[" + t2.height + "px]", "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"]) }, [i("div",
|
|
2399
|
-
} }),
|
|
2398
|
+
return (l3, r3) => (e(), a(x, null, [B(i("div", { class: n(["h-[" + t2.height + "px]", "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"]) }, [i("div", Fu, [i("div", Nu, _(t2.title), 1), o(Lr, { range: t2.range, onRangeSelected: r3[0] || (r3[0] = (e2) => l3.$emit("selectedRange", { range: e2, chartId: t2.id })) }, null, 8, ["range"])]), B(i("div", zu, [o(d(U), { type: l3.bar, series: p2.value, width: "100%", height: t2.height, options: c2.value, onUpdated: g2, onMounted: g2, onDataPointSelection: f2 }, null, 8, ["type", "series", "height", "options"])], 512), [[A, !t2.empty]]), B(i("div", $u, [o(W, { icon: d(un), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), Hu], 512), [[A, t2.empty]])], 2), [[A, !t2.loading]]), B(i("div", Vu, Yu, 512), [[A, t2.loading]])], 64));
|
|
2399
|
+
} }), Wu = { class: "w-full flex flex-col items-center justify-center p-10 grow" }, Ku = { class: "text-2xl mt-4 font-bold" }, Ju = { class: "buttons flex flex-row items-center justify-center mt-8 gap-x-1" }, Gu = { __name: "uiNoResults", props: { title: { type: String, required: true }, message: { type: String, required: true }, actions: { type: Array } }, emits: ["action"], setup: (l2, { emit: n2 }) => (n3, r2) => (e(), a("div", Wu, [o(W, { loading: false, icon: d(un), size: "massive", color: "gray" }, null, 8, ["icon"]), i("h2", Ku, _(l2.title), 1), i("p", null, _(l2.message), 1), i("div", Ju, [(e(true), a(x, null, j(l2.actions, (l3, a2) => (e(), t(X, { key: a2, loading: false, onClick: (e2) => n3.$emit("action", l3.action) }, { default: D(() => [I(_(l3.text), 1)]), _: 2 }, 1032, ["onClick"]))), 128))])])) }, Zu = i("div", { class: "fixed inset-0" }, null, -1), Xu = { class: "fixed inset-0 overflow-hidden" }, Qu = { class: "absolute inset-0 overflow-hidden" }, ed = { class: "pointer-events-none fixed inset-y-0 right-0 flex max-w-full pl-10" }, td = { class: "flex h-full flex-col overflow-y-scroll bg-white shadow-xl" }, ld = { class: "bg-indigo-700 px-4 py-6 sm:px-6" }, nd = { class: "flex items-center justify-between" }, ad = { class: "ml-3 flex h-7 items-center" }, od = i("span", { class: "absolute -inset-2.5" }, null, -1), rd = i("span", { class: "sr-only" }, "Close panel", -1), id = { class: "mt-1" }, sd = { class: "text-sm text-indigo-300" }, ud = { class: "relative flex-1 px-4 py-6 sm:px-6" }, dd = { name: "uiRightSidebar" }, cd = Object.assign(dd, { props: { title: { type: String, required: true }, description: { type: String }, open: { type: Boolean, default: false } }, emits: ["closeRightBar"], setup(l2, { emit: n2 }) {
|
|
2400
2400
|
const a2 = n2;
|
|
2401
|
-
return (n3, s2) => (e(), t(d(Xl), { as: "template", show: l2.open }, { default: D(() => [o(d(dl), { as: "div", class: "relative z-10", onClose: s2[1] || (s2[1] = (e2) => a2("closeRightBar")) }, { default: D(() => [
|
|
2402
|
-
} }),
|
|
2403
|
-
Object.keys(
|
|
2404
|
-
e2.component(t2,
|
|
2401
|
+
return (n3, s2) => (e(), t(d(Xl), { as: "template", show: l2.open }, { default: D(() => [o(d(dl), { as: "div", class: "relative z-10", onClose: s2[1] || (s2[1] = (e2) => a2("closeRightBar")) }, { default: D(() => [Zu, i("div", Xu, [i("div", Qu, [i("div", ed, [o(d(Gl), { as: "template", enter: "transform transition ease-in-out duration-500 sm:duration-700", "enter-from": "translate-x-full", "enter-to": "translate-x-0", leave: "transform transition ease-in-out duration-500 sm:duration-700", "leave-from": "translate-x-0", "leave-to": "translate-x-full" }, { default: D(() => [o(d(cl), { class: "pointer-events-auto w-screen max-w-md" }, { default: D(() => [i("div", td, [i("div", ld, [i("div", nd, [o(d(pl), { class: "text-base font-semibold leading-6 text-white" }, { default: D(() => [I(_(l2.title), 1)]), _: 1 }), i("div", ad, [i("button", { type: "button", class: "relative rounded-md bg-indigo-700 text-indigo-200 hover:text-white outline-none", onClick: s2[0] || (s2[0] = (e2) => a2("closeRightBar")) }, [od, rd, o(d(mn), { class: "h-6 w-6 ring-0", "aria-hidden": "true" })])])]), i("div", id, [i("p", sd, _(l2.description), 1)])]), i("div", ud, [r(n3.$slots, "default")])])]), _: 3 })]), _: 3 })])])])]), _: 3 })]), _: 3 }, 8, ["show"]));
|
|
2402
|
+
} }), pd = { uiButton: X, uiIcon: W, uiCheckbox: ie, uiDropdown: wn, uiInput: Pn, uiInputFile: Wn, uiSelect: Xn, uiTag: la, uiTextArea: ua, uiToggle: ma, uiAlert: Ma, uiBreadcrumbs: La, uiCard: Ua, uiFilter: Wa, uiModal: oo, uiNotification: yo, uiTaskList: _o, uiPriceCalendar: jr, uiChart: Ur, uiFooter: Jr, uiLoadingScreen: Xr, uiPagination: fi, uiSidebar: Di, uiStats: Hi, uiStripedCard: as, uiTable: Es, uiTabs: Ls, uiTimeline: cu, uiTopbar: Lu, uiFunnelChartV2: qu, uiNoResults: Gu, uiRightSidebar: cd }, gd = { install(e2) {
|
|
2403
|
+
Object.keys(pd).forEach((t2) => {
|
|
2404
|
+
e2.component(t2, pd[t2]);
|
|
2405
2405
|
});
|
|
2406
2406
|
} };
|
|
2407
2407
|
export {
|
|
2408
|
-
|
|
2408
|
+
gd as default
|
|
2409
2409
|
};
|