@hotelinking/ui 5.35.5 → 5.35.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui.es.js +222 -222
- package/dist/ui.umd.cjs +1 -1
- package/package.json +13 -14
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
|
|
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, inject as m, nextTick as v, watchEffect as h, onMounted as y, cloneVNode as b, h as x, Fragment as w, defineComponent as k, provide as S, reactive as C, onUnmounted as O, toRaw as M, getCurrentInstance as D, Teleport as T, withCtx as E, createTextVNode as I, toDisplayString as _, Transition as P, renderList as j, createCommentVNode as R, withDirectives as B, vModelDynamic as A, vShow as L, 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
|
import q from "vue3-draggable";
|
|
@@ -66,7 +66,7 @@ const ce = (e2) => e2, pe = (e2) => {
|
|
|
66
66
|
return a2.observe(l2, { box: "border-box" }), () => {
|
|
67
67
|
a2.unobserve(l2);
|
|
68
68
|
};
|
|
69
|
-
},
|
|
69
|
+
}, fe = (e2, t2) => {
|
|
70
70
|
const l2 = e2.scrollElement;
|
|
71
71
|
if (!l2)
|
|
72
72
|
return;
|
|
@@ -76,7 +76,7 @@ const ce = (e2) => e2, pe = (e2) => {
|
|
|
76
76
|
return n2(), l2.addEventListener("scroll", n2, { passive: true }), () => {
|
|
77
77
|
l2.removeEventListener("scroll", n2);
|
|
78
78
|
};
|
|
79
|
-
},
|
|
79
|
+
}, me = (e2, t2, l2) => {
|
|
80
80
|
if (null == t2 ? void 0 : t2.borderBoxSize) {
|
|
81
81
|
const e3 = t2.borderBoxSize[0];
|
|
82
82
|
if (e3) {
|
|
@@ -112,7 +112,7 @@ class he {
|
|
|
112
112
|
Object.entries(e3).forEach(([t2, l2]) => {
|
|
113
113
|
void 0 === l2 && delete e3[t2];
|
|
114
114
|
}), this.options = { debug: false, initialOffset: 0, overscan: 1, paddingStart: 0, paddingEnd: 0, scrollPaddingStart: 0, scrollPaddingEnd: 0, horizontal: false, getItemKey: ce, rangeExtractor: pe, onChange: () => {
|
|
115
|
-
}, measureElement:
|
|
115
|
+
}, measureElement: me, initialRect: { width: 0, height: 0 }, scrollMargin: 0, gap: 0, scrollingDelay: 150, indexAttribute: "data-index", initialMeasurementsCache: [], lanes: 1, ...e3 };
|
|
116
116
|
}, this.notify = (e3) => {
|
|
117
117
|
var t2, l2;
|
|
118
118
|
null == (l2 = (t2 = this.options).onChange) || l2.call(t2, this, e3);
|
|
@@ -172,7 +172,7 @@ class he {
|
|
|
172
172
|
this.resizeItem(l2, a2);
|
|
173
173
|
}, this.resizeItem = (e3, t2) => {
|
|
174
174
|
const l2 = t2 - (this.itemSizeCache.get(e3.key) ?? e3.size);
|
|
175
|
-
0 !== l2 && (e3.start < this.scrollOffset + this.scrollAdjustments && ("production" !== process.env.NODE_ENV && this.options.debug && console.info("correction", l2), this._scrollToOffset(this.scrollOffset, { adjustments: this.scrollAdjustments += l2, behavior: void 0 })), this.pendingMeasuredCacheIndexes.push(e3.index), this.itemSizeCache = new Map(this.itemSizeCache.set(e3.key, t2)), this.notify(false));
|
|
175
|
+
0 !== l2 && ((void 0 !== this.shouldAdjustScrollPositionOnItemSizeChange ? this.shouldAdjustScrollPositionOnItemSizeChange(e3, l2, this) : e3.start < this.scrollOffset + this.scrollAdjustments) && ("production" !== process.env.NODE_ENV && this.options.debug && console.info("correction", l2), this._scrollToOffset(this.scrollOffset, { adjustments: this.scrollAdjustments += l2, behavior: void 0 })), this.pendingMeasuredCacheIndexes.push(e3.index), this.itemSizeCache = new Map(this.itemSizeCache.set(e3.key, t2)), this.notify(false));
|
|
176
176
|
}, this.measureElement = (e3) => {
|
|
177
177
|
e3 && this._measureElement(e3, void 0);
|
|
178
178
|
}, this.getVirtualItems = ue(() => [this.getIndexes(), this.getMeasurements()], (e3, t2) => {
|
|
@@ -229,7 +229,7 @@ class he {
|
|
|
229
229
|
this.options.scrollToFn(e3, { behavior: l2, adjustments: t2 }, this);
|
|
230
230
|
}, this.measure = () => {
|
|
231
231
|
this.itemSizeCache = /* @__PURE__ */ new Map(), this.notify(false);
|
|
232
|
-
}, this.setOptions(e2), this.scrollRect = this.options.initialRect, this.scrollOffset = this.options.initialOffset, this.measurementsCache = this.options.initialMeasurementsCache, this.measurementsCache.forEach((e3) => {
|
|
232
|
+
}, this.setOptions(e2), this.scrollRect = this.options.initialRect, this.scrollOffset = "function" == typeof this.options.initialOffset ? this.options.initialOffset() : this.options.initialOffset, this.measurementsCache = this.options.initialMeasurementsCache, this.measurementsCache.forEach((e3) => {
|
|
233
233
|
this.itemSizeCache.set(e3.key, e3.size);
|
|
234
234
|
}), this.maybeNotify();
|
|
235
235
|
}
|
|
@@ -257,8 +257,8 @@ function be(e2) {
|
|
|
257
257
|
var a2;
|
|
258
258
|
g(l2), null == (a2 = e4.onChange) || a2.call(e4, t3, n3);
|
|
259
259
|
} }), t2._willUpdate(), g(l2);
|
|
260
|
-
}, { immediate: true }),
|
|
261
|
-
}(u(() => ({ observeElementRect: ge, observeElementOffset:
|
|
260
|
+
}, { immediate: true }), f(n2), l2;
|
|
261
|
+
}(u(() => ({ observeElementRect: ge, observeElementOffset: fe, scrollToFn: ve, ...d(e2) })));
|
|
262
262
|
}
|
|
263
263
|
function xe(e2, t2, l2) {
|
|
264
264
|
let n2 = s(null == l2 ? void 0 : l2.value), a2 = u(() => void 0 !== e2.value);
|
|
@@ -268,7 +268,7 @@ function xe(e2, t2, l2) {
|
|
|
268
268
|
}
|
|
269
269
|
let we = Symbol("headlessui.useid"), ke = 0;
|
|
270
270
|
function Se() {
|
|
271
|
-
return
|
|
271
|
+
return m(we, () => "" + ++ke)();
|
|
272
272
|
}
|
|
273
273
|
function Ce(e2) {
|
|
274
274
|
var t2;
|
|
@@ -285,12 +285,12 @@ function Oe(e2, t2, ...l2) {
|
|
|
285
285
|
let n2 = new Error(`Tried to handle "${e2}" but there is no handler defined. Only defined handlers are: ${Object.keys(t2).map((e3) => `"${e3}"`).join(", ")}.`);
|
|
286
286
|
throw Error.captureStackTrace && Error.captureStackTrace(n2, Oe), n2;
|
|
287
287
|
}
|
|
288
|
-
var Me = Object.defineProperty,
|
|
288
|
+
var Me = Object.defineProperty, De = (e2, t2, l2) => (((e3, t3, l3) => {
|
|
289
289
|
t3 in e3 ? Me(e3, t3, { enumerable: true, configurable: true, writable: true, value: l3 }) : e3[t3] = l3;
|
|
290
290
|
})(e2, "symbol" != typeof t2 ? t2 + "" : t2, l2), l2);
|
|
291
|
-
let
|
|
291
|
+
let Te = new class {
|
|
292
292
|
constructor() {
|
|
293
|
-
|
|
293
|
+
De(this, "current", this.detect()), De(this, "currentId", 0);
|
|
294
294
|
}
|
|
295
295
|
set(e2) {
|
|
296
296
|
this.current !== e2 && (this.currentId = 0, this.current = e2);
|
|
@@ -312,7 +312,7 @@ let De = new class {
|
|
|
312
312
|
}
|
|
313
313
|
}();
|
|
314
314
|
function Ee(e2) {
|
|
315
|
-
if (
|
|
315
|
+
if (Te.isServer)
|
|
316
316
|
return null;
|
|
317
317
|
if (e2 instanceof Node)
|
|
318
318
|
return e2.ownerDocument;
|
|
@@ -413,12 +413,12 @@ function Ye() {
|
|
|
413
413
|
return Ve() || /Android/gi.test(window.navigator.userAgent);
|
|
414
414
|
}
|
|
415
415
|
function Ue(e2, t2, l2) {
|
|
416
|
-
|
|
416
|
+
Te.isServer || h((n2) => {
|
|
417
417
|
document.addEventListener(e2, t2, l2), n2(() => document.removeEventListener(e2, t2, l2));
|
|
418
418
|
});
|
|
419
419
|
}
|
|
420
420
|
function qe(e2, t2, l2) {
|
|
421
|
-
|
|
421
|
+
Te.isServer || h((n2) => {
|
|
422
422
|
window.addEventListener(e2, t2, l2), n2(() => window.removeEventListener(e2, t2, l2));
|
|
423
423
|
});
|
|
424
424
|
}
|
|
@@ -569,17 +569,17 @@ var it = ((e2) => (e2[e2.None = 1] = "None", e2[e2.Focusable = 2] = "Focusable",
|
|
|
569
569
|
let st = k({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup: (e2, { slots: t2, attrs: l2 }) => () => {
|
|
570
570
|
var n2;
|
|
571
571
|
let { features: a2, ...o2 } = e2;
|
|
572
|
-
return tt({ ourProps: { "aria-hidden": !(2 & ~a2) || (null != (n2 = o2["aria-hidden"]) ? n2 : void 0), style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...!(4 & ~a2) && !!(2 & ~a2) && { display: "none" } } }, theirProps: o2, slot: {}, attrs: l2, slots: t2, name: "Hidden" });
|
|
572
|
+
return tt({ ourProps: { "aria-hidden": !(2 & ~a2) || (null != (n2 = o2["aria-hidden"]) ? n2 : void 0), hidden: !(4 & ~a2) || void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...!(4 & ~a2) && !!(2 & ~a2) && { display: "none" } } }, theirProps: o2, slot: {}, attrs: l2, slots: t2, name: "Hidden" });
|
|
573
573
|
} }), ut = Symbol("Context");
|
|
574
574
|
var dt = ((e2) => (e2[e2.Open = 1] = "Open", e2[e2.Closed = 2] = "Closed", e2[e2.Closing = 4] = "Closing", e2[e2.Opening = 8] = "Opening", e2))(dt || {});
|
|
575
575
|
function ct() {
|
|
576
|
-
return
|
|
576
|
+
return m(ut, null);
|
|
577
577
|
}
|
|
578
578
|
function pt(e2) {
|
|
579
579
|
S(ut, e2);
|
|
580
580
|
}
|
|
581
581
|
var gt = ((e2) => (e2.Space = " ", e2.Enter = "Enter", e2.Escape = "Escape", e2.Backspace = "Backspace", e2.Delete = "Delete", e2.ArrowLeft = "ArrowLeft", e2.ArrowUp = "ArrowUp", e2.ArrowRight = "ArrowRight", e2.ArrowDown = "ArrowDown", e2.Home = "Home", e2.End = "End", e2.PageUp = "PageUp", e2.PageDown = "PageDown", e2.Tab = "Tab", e2))(gt || {});
|
|
582
|
-
let
|
|
582
|
+
let ft = [];
|
|
583
583
|
!function(e2) {
|
|
584
584
|
function t2() {
|
|
585
585
|
"loading" !== document.readyState && (e2(), document.removeEventListener("DOMContentLoaded", t2));
|
|
@@ -587,11 +587,11 @@ let mt = [];
|
|
|
587
587
|
"undefined" != typeof window && "undefined" != typeof document && (document.addEventListener("DOMContentLoaded", t2), t2());
|
|
588
588
|
}(() => {
|
|
589
589
|
function e2(e3) {
|
|
590
|
-
e3.target instanceof HTMLElement && e3.target !== document.body &&
|
|
590
|
+
e3.target instanceof HTMLElement && e3.target !== document.body && ft[0] !== e3.target && (ft.unshift(e3.target), ft = ft.filter((e4) => null != e4 && e4.isConnected), ft.splice(10));
|
|
591
591
|
}
|
|
592
592
|
window.addEventListener("click", e2, { capture: true }), window.addEventListener("mousedown", e2, { capture: true }), window.addEventListener("focus", e2, { capture: true }), document.body.addEventListener("click", e2, { capture: true }), document.body.addEventListener("mousedown", e2, { capture: true }), document.body.addEventListener("focus", e2, { capture: true });
|
|
593
593
|
});
|
|
594
|
-
var
|
|
594
|
+
var mt = ((e2) => (e2[e2.First = 0] = "First", e2[e2.Previous = 1] = "Previous", e2[e2.Next = 2] = "Next", e2[e2.Last = 3] = "Last", e2[e2.Specific = 4] = "Specific", e2[e2.Nothing = 5] = "Nothing", e2))(mt || {});
|
|
595
595
|
function vt(e2, t2) {
|
|
596
596
|
let l2 = t2.resolveItems();
|
|
597
597
|
if (l2.length <= 0)
|
|
@@ -692,14 +692,14 @@ function wt(e2, t2, l2) {
|
|
|
692
692
|
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 || {});
|
|
693
693
|
let Ot = Symbol("ComboboxContext");
|
|
694
694
|
function Mt(e2) {
|
|
695
|
-
let t2 =
|
|
695
|
+
let t2 = m(Ot, null);
|
|
696
696
|
if (null === t2) {
|
|
697
697
|
let t3 = new Error(`<${e2} /> is missing a parent <Combobox /> component.`);
|
|
698
698
|
throw Error.captureStackTrace && Error.captureStackTrace(t3, Mt), t3;
|
|
699
699
|
}
|
|
700
700
|
return t2;
|
|
701
701
|
}
|
|
702
|
-
let
|
|
702
|
+
let Dt = Symbol("VirtualContext"), Tt = k({ name: "VirtualProvider", setup(e2, { slots: t2 }) {
|
|
703
703
|
let l2 = Mt("VirtualProvider"), n2 = u(() => {
|
|
704
704
|
let e3 = Ce(l2.optionsRef);
|
|
705
705
|
if (!e3)
|
|
@@ -712,7 +712,7 @@ let Tt = Symbol("VirtualContext"), Dt = k({ name: "VirtualProvider", setup(e2, {
|
|
|
712
712
|
}), r2 = s(0);
|
|
713
713
|
return p([o2], () => {
|
|
714
714
|
r2.value += 1;
|
|
715
|
-
}), S(
|
|
715
|
+
}), S(Dt, l2.virtual.value ? a2 : null), () => [x("div", { style: { position: "relative", width: "100%", height: `${a2.value.getTotalSize()}px` }, ref: (e3) => {
|
|
716
716
|
if (e3) {
|
|
717
717
|
if ("undefined" != typeof process && void 0 !== process.env.JEST_WORKER_ID || 0 === l2.activationTrigger.value)
|
|
718
718
|
return;
|
|
@@ -720,27 +720,27 @@ let Tt = Symbol("VirtualContext"), Dt = k({ name: "VirtualProvider", setup(e2, {
|
|
|
720
720
|
}
|
|
721
721
|
} }, a2.value.getVirtualItems().map((e3) => b(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" } })))];
|
|
722
722
|
} }), Et = k({ 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 }) {
|
|
723
|
-
let a2 = s(1), o2 = s(null), r2 = s(null), i2 = s(null), d2 = s(null), c2 = s({ static: false, hold: false }), g2 = s([]),
|
|
723
|
+
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);
|
|
724
724
|
function h2(e3 = (e4) => e4) {
|
|
725
|
-
let t3 = null !==
|
|
725
|
+
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;
|
|
726
726
|
return -1 === a3 && (a3 = null), { options: n3, activeOptionIndex: a3 };
|
|
727
727
|
}
|
|
728
|
-
let b2 = u(() => e2.multiple ? 1 : 0), k2 = u(() => e2.nullable), [O2,
|
|
728
|
+
let b2 = u(() => e2.multiple ? 1 : 0), k2 = u(() => e2.nullable), [O2, D2] = xe(u(() => e2.modelValue), (e3) => n2("update:modelValue", e3), u(() => e2.defaultValue)), T2 = u(() => void 0 === O2.value ? Oe(b2.value, { 1: [], 0: void 0 }) : O2.value), E2 = null, I2 = null;
|
|
729
729
|
function _2(e3) {
|
|
730
|
-
return Oe(b2.value, { 0: () => null ==
|
|
730
|
+
return Oe(b2.value, { 0: () => null == D2 ? void 0 : D2(e3), 1: () => {
|
|
731
731
|
let t3 = M(j2.value.value).slice(), l3 = M(e3), n3 = t3.findIndex((e4) => j2.compare(l3, M(e4)));
|
|
732
|
-
return -1 === n3 ? t3.push(l3) : t3.splice(n3, 1), null ==
|
|
732
|
+
return -1 === n3 ? t3.push(l3) : t3.splice(n3, 1), null == D2 ? void 0 : D2(t3);
|
|
733
733
|
} });
|
|
734
734
|
}
|
|
735
735
|
let P2 = u(() => {
|
|
736
736
|
});
|
|
737
737
|
p([P2], ([e3], [t3]) => {
|
|
738
|
-
if (j2.virtual.value && e3 && t3 && null !==
|
|
739
|
-
let l3 = e3.indexOf(t3[
|
|
740
|
-
|
|
738
|
+
if (j2.virtual.value && e3 && t3 && null !== f2.value) {
|
|
739
|
+
let l3 = e3.indexOf(t3[f2.value]);
|
|
740
|
+
f2.value = -1 !== l3 ? l3 : null;
|
|
741
741
|
}
|
|
742
742
|
});
|
|
743
|
-
let j2 = { comboboxState: a2, value:
|
|
743
|
+
let j2 = { comboboxState: a2, value: T2, mode: b2, compare(t3, l3) {
|
|
744
744
|
if ("string" == typeof e2.by) {
|
|
745
745
|
let n3 = e2.by;
|
|
746
746
|
return (null == t3 ? void 0 : t3[n3]) === (null == l3 ? void 0 : l3[n3]);
|
|
@@ -749,9 +749,9 @@ let Tt = Symbol("VirtualContext"), Dt = k({ name: "VirtualProvider", setup(e2, {
|
|
|
749
749
|
return e3 === t4;
|
|
750
750
|
}(t3, l3) : e2.by(t3, l3);
|
|
751
751
|
}, calculateIndex: (t3) => j2.virtual.value ? null === e2.by ? j2.virtual.value.options.indexOf(t3) : j2.virtual.value.options.findIndex((e3) => j2.compare(e3, t3)) : g2.value.findIndex((e3) => j2.compare(e3.dataRef.value, t3)), defaultValue: u(() => e2.defaultValue), nullable: k2, immediate: u(() => false), virtual: u(() => null), inputRef: r2, labelRef: o2, buttonRef: i2, optionsRef: d2, disabled: u(() => e2.disabled), options: g2, change(e3) {
|
|
752
|
-
|
|
752
|
+
D2(e3);
|
|
753
753
|
}, activeOptionIndex: u(() => {
|
|
754
|
-
if (v2.value && null ===
|
|
754
|
+
if (v2.value && null === f2.value && (j2.virtual.value ? j2.virtual.value.options.length > 0 : g2.value.length > 0)) {
|
|
755
755
|
if (j2.virtual.value) {
|
|
756
756
|
let e4 = j2.virtual.value.options.findIndex((e5) => {
|
|
757
757
|
var t3;
|
|
@@ -764,25 +764,25 @@ let Tt = Symbol("VirtualContext"), Dt = k({ name: "VirtualProvider", setup(e2, {
|
|
|
764
764
|
if (-1 !== e3)
|
|
765
765
|
return e3;
|
|
766
766
|
}
|
|
767
|
-
return
|
|
768
|
-
}), activationTrigger:
|
|
769
|
-
v2.value = false, !e2.disabled && 1 !== a2.value && (a2.value = 1,
|
|
767
|
+
return f2.value;
|
|
768
|
+
}), activationTrigger: m2, optionsPropsRef: c2, closeCombobox() {
|
|
769
|
+
v2.value = false, !e2.disabled && 1 !== a2.value && (a2.value = 1, f2.value = null);
|
|
770
770
|
}, openCombobox() {
|
|
771
771
|
if (v2.value = true, !e2.disabled && 0 !== a2.value) {
|
|
772
772
|
if (j2.value.value) {
|
|
773
773
|
let e3 = j2.calculateIndex(j2.value.value);
|
|
774
|
-
-1 !== e3 && (
|
|
774
|
+
-1 !== e3 && (f2.value = e3);
|
|
775
775
|
}
|
|
776
776
|
a2.value = 0;
|
|
777
777
|
}
|
|
778
778
|
}, setActivationTrigger(e3) {
|
|
779
|
-
|
|
779
|
+
m2.value = e3;
|
|
780
780
|
}, goToOption(t3, l3, n3) {
|
|
781
781
|
v2.value = false, null !== E2 && cancelAnimationFrame(E2), E2 = requestAnimationFrame(() => {
|
|
782
782
|
if (e2.disabled || d2.value && !c2.value.static && 1 === a2.value)
|
|
783
783
|
return;
|
|
784
784
|
if (j2.virtual.value)
|
|
785
|
-
return
|
|
785
|
+
return f2.value = t3 === mt.Specific ? l3 : vt({ focus: t3 }, { resolveItems: () => j2.virtual.value.options, resolveActiveIndex: () => {
|
|
786
786
|
var e3, t4;
|
|
787
787
|
return null != (t4 = null != (e3 = j2.activeOptionIndex.value) ? e3 : j2.virtual.value.options.findIndex((e4) => {
|
|
788
788
|
var t5;
|
|
@@ -790,14 +790,14 @@ let Tt = Symbol("VirtualContext"), Dt = k({ name: "VirtualProvider", setup(e2, {
|
|
|
790
790
|
})) ? t4 : null;
|
|
791
791
|
}, resolveDisabled: (e3) => j2.virtual.value.disabled(e3), resolveId() {
|
|
792
792
|
throw new Error("Function not implemented.");
|
|
793
|
-
} }), void (
|
|
793
|
+
} }), void (m2.value = null != n3 ? n3 : 2);
|
|
794
794
|
let o3 = h2();
|
|
795
795
|
if (null === o3.activeOptionIndex) {
|
|
796
796
|
let e3 = o3.options.findIndex((e4) => !e4.dataRef.disabled);
|
|
797
797
|
-1 !== e3 && (o3.activeOptionIndex = e3);
|
|
798
798
|
}
|
|
799
|
-
let r3 = t3 ===
|
|
800
|
-
|
|
799
|
+
let r3 = t3 === mt.Specific ? l3 : vt({ focus: t3 }, { resolveItems: () => o3.options, resolveActiveIndex: () => o3.activeOptionIndex, resolveId: (e3) => e3.id, resolveDisabled: (e3) => e3.dataRef.disabled });
|
|
800
|
+
f2.value = r3, m2.value = null != n3 ? n3 : 2, g2.value = o3.options;
|
|
801
801
|
});
|
|
802
802
|
}, selectOption(e3) {
|
|
803
803
|
let t3 = g2.value.find((t4) => t4.id === e3);
|
|
@@ -813,7 +813,7 @@ let Tt = Symbol("VirtualContext"), Dt = k({ name: "VirtualProvider", setup(e2, {
|
|
|
813
813
|
let { dataRef: e3 } = g2.value[j2.activeOptionIndex.value];
|
|
814
814
|
_2(e3.value);
|
|
815
815
|
}
|
|
816
|
-
j2.goToOption(
|
|
816
|
+
j2.goToOption(mt.Specific, j2.activeOptionIndex.value);
|
|
817
817
|
}
|
|
818
818
|
}, registerOption(e3, t3) {
|
|
819
819
|
let l3 = C({ id: e3, dataRef: t3 });
|
|
@@ -821,9 +821,9 @@ let Tt = Symbol("VirtualContext"), Dt = k({ name: "VirtualProvider", setup(e2, {
|
|
|
821
821
|
return void g2.value.push(l3);
|
|
822
822
|
I2 && cancelAnimationFrame(I2);
|
|
823
823
|
let n3 = h2((e4) => (e4.push(l3), e4));
|
|
824
|
-
null ===
|
|
824
|
+
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(() => {
|
|
825
825
|
let e4 = h2();
|
|
826
|
-
g2.value = e4.options,
|
|
826
|
+
g2.value = e4.options, f2.value = e4.activeOptionIndex;
|
|
827
827
|
}));
|
|
828
828
|
}, unregisterOption(e3, t3) {
|
|
829
829
|
if (null !== E2 && cancelAnimationFrame(E2), t3 && (v2.value = true), j2.virtual.value)
|
|
@@ -832,8 +832,8 @@ let Tt = Symbol("VirtualContext"), Dt = k({ name: "VirtualProvider", setup(e2, {
|
|
|
832
832
|
let l4 = t4.findIndex((t5) => t5.id === e3);
|
|
833
833
|
return -1 !== l4 && t4.splice(l4, 1), t4;
|
|
834
834
|
});
|
|
835
|
-
g2.value = l3.options,
|
|
836
|
-
}, isSelected: (e3) => Oe(b2.value, { 0: () => j2.compare(M(j2.value.value), M(e3)), 1: () => M(j2.value.value).some((t3) => j2.compare(M(t3), M(e3))) }), isActive: (e3) =>
|
|
835
|
+
g2.value = l3.options, f2.value = l3.activeOptionIndex, m2.value = 2;
|
|
836
|
+
}, isSelected: (e3) => Oe(b2.value, { 0: () => j2.compare(M(j2.value.value), M(e3)), 1: () => M(j2.value.value).some((t3) => j2.compare(M(t3), M(e3))) }), isActive: (e3) => f2.value === j2.calculateIndex(e3) };
|
|
837
837
|
We([r2, i2, d2], () => j2.closeCombobox(), u(() => 0 === a2.value)), S(Ot, j2), pt(u(() => Oe(a2.value, { 0: dt.Open, 1: dt.Closed })));
|
|
838
838
|
let R2 = u(() => {
|
|
839
839
|
var e3;
|
|
@@ -852,8 +852,8 @@ let Tt = Symbol("VirtualContext"), Dt = k({ name: "VirtualProvider", setup(e2, {
|
|
|
852
852
|
}, { immediate: true });
|
|
853
853
|
}), () => {
|
|
854
854
|
var n3, o3, r3;
|
|
855
|
-
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) ? r3 : null, value:
|
|
856
|
-
return x(w, [...null != i3 && null !=
|
|
855
|
+
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) ? r3 : null, value: T2.value };
|
|
856
|
+
return x(w, [...null != i3 && null != T2.value ? bt({ [i3]: T2.value }).map(([e3, t3]) => x(st, ot({ features: it.Hidden, key: e3, as: "input", type: "hidden", hidden: true, readOnly: true, form: u2, disabled: s2, 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" })]);
|
|
857
857
|
};
|
|
858
858
|
} }), It = k({ name: "ComboboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: null } }, setup(e2, { attrs: t2, slots: l2 }) {
|
|
859
859
|
var n2;
|
|
@@ -884,7 +884,7 @@ let Tt = Symbol("VirtualContext"), Dt = k({ name: "VirtualProvider", setup(e2, {
|
|
|
884
884
|
});
|
|
885
885
|
case gt.ArrowUp:
|
|
886
886
|
return e3.preventDefault(), e3.stopPropagation(), 1 === r2.comboboxState.value && (r2.openCombobox(), v(() => {
|
|
887
|
-
r2.value.value || r2.goToOption(
|
|
887
|
+
r2.value.value || r2.goToOption(mt.Last);
|
|
888
888
|
})), void v(() => {
|
|
889
889
|
var e4;
|
|
890
890
|
return null == (e4 = r2.inputRef.value) ? void 0 : e4.focus({ preventScroll: true });
|
|
@@ -911,16 +911,16 @@ let Tt = Symbol("VirtualContext"), Dt = k({ name: "VirtualProvider", setup(e2, {
|
|
|
911
911
|
function g2() {
|
|
912
912
|
i2.change(null);
|
|
913
913
|
let e3 = Ce(i2.optionsRef);
|
|
914
|
-
e3 && (e3.scrollTop = 0), i2.goToOption(
|
|
914
|
+
e3 && (e3.scrollTop = 0), i2.goToOption(mt.Nothing);
|
|
915
915
|
}
|
|
916
916
|
a2({ el: i2.inputRef, $el: i2.inputRef });
|
|
917
|
-
let
|
|
917
|
+
let f2 = u(() => {
|
|
918
918
|
var t3;
|
|
919
919
|
let l3 = i2.value.value;
|
|
920
920
|
return Ce(i2.inputRef) ? void 0 !== e2.displayValue && void 0 !== l3 ? null != (t3 = e2.displayValue(l3)) ? t3 : "" : "string" == typeof l3 ? l3 : "" : "";
|
|
921
921
|
});
|
|
922
922
|
y(() => {
|
|
923
|
-
p([
|
|
923
|
+
p([f2, i2.comboboxState, d2], ([e3, t3], [l3, n3]) => {
|
|
924
924
|
if (c2.value)
|
|
925
925
|
return;
|
|
926
926
|
let a3 = Ce(i2.inputRef);
|
|
@@ -943,44 +943,44 @@ let Tt = Symbol("VirtualContext"), Dt = k({ name: "VirtualProvider", setup(e2, {
|
|
|
943
943
|
}
|
|
944
944
|
});
|
|
945
945
|
});
|
|
946
|
-
let
|
|
946
|
+
let m2 = s(false);
|
|
947
947
|
function h2() {
|
|
948
|
-
|
|
948
|
+
m2.value = true;
|
|
949
949
|
}
|
|
950
950
|
function b2() {
|
|
951
951
|
yt().nextFrame(() => {
|
|
952
|
-
|
|
952
|
+
m2.value = false;
|
|
953
953
|
});
|
|
954
954
|
}
|
|
955
955
|
function x2(e3) {
|
|
956
956
|
switch (c2.value = true, e3.key) {
|
|
957
957
|
case gt.Enter:
|
|
958
|
-
if (c2.value = false, 0 !== i2.comboboxState.value ||
|
|
958
|
+
if (c2.value = false, 0 !== i2.comboboxState.value || m2.value)
|
|
959
959
|
return;
|
|
960
960
|
if (e3.preventDefault(), e3.stopPropagation(), null === i2.activeOptionIndex.value)
|
|
961
961
|
return void i2.closeCombobox();
|
|
962
962
|
i2.selectActiveOption(), 0 === i2.mode.value && i2.closeCombobox();
|
|
963
963
|
break;
|
|
964
964
|
case gt.ArrowDown:
|
|
965
|
-
return c2.value = false, e3.preventDefault(), e3.stopPropagation(), Oe(i2.comboboxState.value, { 0: () => i2.goToOption(
|
|
965
|
+
return c2.value = false, e3.preventDefault(), e3.stopPropagation(), Oe(i2.comboboxState.value, { 0: () => i2.goToOption(mt.Next), 1: () => i2.openCombobox() });
|
|
966
966
|
case gt.ArrowUp:
|
|
967
|
-
return c2.value = false, e3.preventDefault(), e3.stopPropagation(), Oe(i2.comboboxState.value, { 0: () => i2.goToOption(
|
|
967
|
+
return c2.value = false, e3.preventDefault(), e3.stopPropagation(), Oe(i2.comboboxState.value, { 0: () => i2.goToOption(mt.Previous), 1: () => {
|
|
968
968
|
i2.openCombobox(), v(() => {
|
|
969
|
-
i2.value.value || i2.goToOption(
|
|
969
|
+
i2.value.value || i2.goToOption(mt.Last);
|
|
970
970
|
});
|
|
971
971
|
} });
|
|
972
972
|
case gt.Home:
|
|
973
973
|
if (e3.shiftKey)
|
|
974
974
|
break;
|
|
975
|
-
return c2.value = false, e3.preventDefault(), e3.stopPropagation(), i2.goToOption(
|
|
975
|
+
return c2.value = false, e3.preventDefault(), e3.stopPropagation(), i2.goToOption(mt.First);
|
|
976
976
|
case gt.PageUp:
|
|
977
|
-
return c2.value = false, e3.preventDefault(), e3.stopPropagation(), i2.goToOption(
|
|
977
|
+
return c2.value = false, e3.preventDefault(), e3.stopPropagation(), i2.goToOption(mt.First);
|
|
978
978
|
case gt.End:
|
|
979
979
|
if (e3.shiftKey)
|
|
980
980
|
break;
|
|
981
|
-
return c2.value = false, e3.preventDefault(), e3.stopPropagation(), i2.goToOption(
|
|
981
|
+
return c2.value = false, e3.preventDefault(), e3.stopPropagation(), i2.goToOption(mt.Last);
|
|
982
982
|
case gt.PageDown:
|
|
983
|
-
return c2.value = false, e3.preventDefault(), e3.stopPropagation(), i2.goToOption(
|
|
983
|
+
return c2.value = false, e3.preventDefault(), e3.stopPropagation(), i2.goToOption(mt.Last);
|
|
984
984
|
case gt.Escape:
|
|
985
985
|
if (c2.value = false, 0 !== i2.comboboxState.value)
|
|
986
986
|
return;
|
|
@@ -997,13 +997,13 @@ let Tt = Symbol("VirtualContext"), Dt = k({ name: "VirtualProvider", setup(e2, {
|
|
|
997
997
|
}
|
|
998
998
|
function k2(e3) {
|
|
999
999
|
var t3, l3, n3;
|
|
1000
|
-
let a3 = null != (t3 = e3.relatedTarget) ? t3 :
|
|
1000
|
+
let a3 = null != (t3 = e3.relatedTarget) ? t3 : ft.find((t4) => t4 !== e3.currentTarget);
|
|
1001
1001
|
if (c2.value = false, !(null != (l3 = Ce(i2.optionsRef)) && l3.contains(a3) || null != (n3 = Ce(i2.buttonRef)) && n3.contains(a3) || 0 !== i2.comboboxState.value))
|
|
1002
1002
|
return e3.preventDefault(), 0 === i2.mode.value && (i2.nullable.value && null === i2.value.value ? g2() : 1 !== i2.activationTrigger.value && i2.selectActiveOption()), i2.closeCombobox();
|
|
1003
1003
|
}
|
|
1004
1004
|
function S2(e3) {
|
|
1005
1005
|
var t3, l3, n3;
|
|
1006
|
-
let a3 = null != (t3 = e3.relatedTarget) ? t3 :
|
|
1006
|
+
let a3 = null != (t3 = e3.relatedTarget) ? t3 : ft.find((t4) => t4 !== e3.currentTarget);
|
|
1007
1007
|
null != (l3 = Ce(i2.buttonRef)) && l3.contains(a3) || null != (n3 = Ce(i2.optionsRef)) && n3.contains(a3) || i2.disabled.value || i2.immediate.value && 0 !== i2.comboboxState.value && (i2.openCombobox(), yt().nextFrame(() => {
|
|
1008
1008
|
i2.setActivationTrigger(1);
|
|
1009
1009
|
}));
|
|
@@ -1014,8 +1014,8 @@ let Tt = Symbol("VirtualContext"), Dt = k({ name: "VirtualProvider", setup(e2, {
|
|
|
1014
1014
|
});
|
|
1015
1015
|
return () => {
|
|
1016
1016
|
var t3, a3, o3, s2, u2, d3, c3;
|
|
1017
|
-
let p2 = { open: 0 === i2.comboboxState.value }, { displayValue: g3, onChange:
|
|
1018
|
-
return tt({ ourProps: v2, theirProps:
|
|
1017
|
+
let p2 = { open: 0 === i2.comboboxState.value }, { displayValue: g3, onChange: f3, ...m3 } = e2, v2 = { "aria-controls": null == (t3 = i2.optionsRef.value) ? void 0 : t3.id, "aria-expanded": 0 === i2.comboboxState.value, "aria-activedescendant": null === i2.activeOptionIndex.value ? void 0 : i2.virtual.value ? null == (a3 = i2.options.value.find((e3) => !i2.virtual.value.disabled(e3.dataRef.value) && i2.compare(e3.dataRef.value, i2.virtual.value.options[i2.activeOptionIndex.value]))) ? void 0 : a3.id : null == (o3 = i2.options.value[i2.activeOptionIndex.value]) ? void 0 : o3.id, "aria-labelledby": null != (d3 = null == (s2 = Ce(i2.labelRef)) ? void 0 : s2.id) ? d3 : null == (u2 = Ce(i2.buttonRef)) ? void 0 : u2.id, "aria-autocomplete": "list", id: r2, onCompositionstart: h2, onCompositionend: b2, onKeydown: x2, onInput: w2, onFocus: S2, onBlur: k2, role: "combobox", type: null != (c3 = l2.type) ? c3 : "text", tabIndex: 0, ref: i2.inputRef, defaultValue: C2.value, disabled: true === i2.disabled.value || void 0 };
|
|
1018
|
+
return tt({ ourProps: v2, theirProps: m3, slot: p2, attrs: l2, slots: n2, features: Qe.RenderStrategy | Qe.Static, name: "ComboboxInput" });
|
|
1019
1019
|
};
|
|
1020
1020
|
} }), jt = k({ 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 }) {
|
|
1021
1021
|
let a2 = Mt("ComboboxOptions"), o2 = `headlessui-combobox-options-${Se()}`;
|
|
@@ -1030,7 +1030,7 @@ let Tt = Symbol("VirtualContext"), Dt = k({ name: "VirtualProvider", setup(e2, {
|
|
|
1030
1030
|
} }), () => {
|
|
1031
1031
|
var n3, r3, s2;
|
|
1032
1032
|
let u2 = { open: 0 === a2.comboboxState.value };
|
|
1033
|
-
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: () => [x(
|
|
1033
|
+
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: () => [x(Tt, {}, l2.default)] } : l2, features: Qe.RenderStrategy | Qe.Static, visible: i2.value, name: "ComboboxOptions" });
|
|
1034
1034
|
};
|
|
1035
1035
|
} }), Rt = k({ 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 }) {
|
|
1036
1036
|
let a2 = Mt("ComboboxOption"), o2 = `headlessui-combobox-option-${Se()}`, r2 = s(null);
|
|
@@ -1038,7 +1038,7 @@ let Tt = Symbol("VirtualContext"), Dt = k({ name: "VirtualProvider", setup(e2, {
|
|
|
1038
1038
|
let i2 = u(() => {
|
|
1039
1039
|
var t3;
|
|
1040
1040
|
return a2.virtual.value ? a2.activeOptionIndex.value === a2.calculateIndex(e2.value) : null !== a2.activeOptionIndex.value && (null == (t3 = a2.options.value[a2.activeOptionIndex.value]) ? void 0 : t3.id) === o2;
|
|
1041
|
-
}), d2 = u(() => a2.isSelected(e2.value)), c2 =
|
|
1041
|
+
}), d2 = u(() => a2.isSelected(e2.value)), c2 = m(Dt, null), p2 = u(() => ({ disabled: e2.disabled, value: e2.value, domRef: r2, order: u(() => e2.order) }));
|
|
1042
1042
|
function g2(t3) {
|
|
1043
1043
|
var l3;
|
|
1044
1044
|
if (e2.disabled || null != (l3 = a2.virtual.value) && l3.disabled(e2.value))
|
|
@@ -1048,12 +1048,12 @@ let Tt = Symbol("VirtualContext"), Dt = k({ name: "VirtualProvider", setup(e2, {
|
|
|
1048
1048
|
return null == (e3 = Ce(a2.inputRef)) ? void 0 : e3.focus({ preventScroll: true });
|
|
1049
1049
|
}), 0 === a2.mode.value && requestAnimationFrame(() => a2.closeCombobox());
|
|
1050
1050
|
}
|
|
1051
|
-
function
|
|
1051
|
+
function f2() {
|
|
1052
1052
|
var t3;
|
|
1053
1053
|
if (e2.disabled || null != (t3 = a2.virtual.value) && t3.disabled(e2.value))
|
|
1054
|
-
return a2.goToOption(
|
|
1054
|
+
return a2.goToOption(mt.Nothing);
|
|
1055
1055
|
let l3 = a2.calculateIndex(e2.value);
|
|
1056
|
-
a2.goToOption(
|
|
1056
|
+
a2.goToOption(mt.Specific, l3);
|
|
1057
1057
|
}
|
|
1058
1058
|
y(() => a2.registerOption(o2, p2)), O(() => a2.unregisterOption(o2, i2.value)), h(() => {
|
|
1059
1059
|
let e3 = Ce(r2);
|
|
@@ -1073,19 +1073,19 @@ let Tt = Symbol("VirtualContext"), Dt = k({ name: "VirtualProvider", setup(e2, {
|
|
|
1073
1073
|
if (!b2.wasMoved(t3) || e2.disabled || null != (l3 = a2.virtual.value) && l3.disabled(e2.value) || i2.value)
|
|
1074
1074
|
return;
|
|
1075
1075
|
let n3 = a2.calculateIndex(e2.value);
|
|
1076
|
-
a2.goToOption(
|
|
1076
|
+
a2.goToOption(mt.Specific, n3, 0);
|
|
1077
1077
|
}
|
|
1078
1078
|
function k2(t3) {
|
|
1079
1079
|
var l3;
|
|
1080
|
-
b2.wasMoved(t3) && (e2.disabled || null != (l3 = a2.virtual.value) && l3.disabled(e2.value) || i2.value && (a2.optionsPropsRef.value.hold || a2.goToOption(
|
|
1080
|
+
b2.wasMoved(t3) && (e2.disabled || null != (l3 = a2.virtual.value) && l3.disabled(e2.value) || i2.value && (a2.optionsPropsRef.value.hold || a2.goToOption(mt.Nothing)));
|
|
1081
1081
|
}
|
|
1082
1082
|
return () => {
|
|
1083
1083
|
let { disabled: n3 } = e2, a3 = { active: i2.value, selected: d2.value, disabled: n3 };
|
|
1084
|
-
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:
|
|
1084
|
+
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: x2, onMouseenter: x2, onPointermove: w2, onMousemove: w2, onPointerleave: k2, onMouseleave: k2 }, theirProps: rt(e2, ["order", "value"]), slot: a3, attrs: l2, slots: t2, name: "ComboboxOption" });
|
|
1085
1085
|
};
|
|
1086
1086
|
} });
|
|
1087
1087
|
function Bt(e2, t2, l2, n2) {
|
|
1088
|
-
|
|
1088
|
+
Te.isServer || h((a2) => {
|
|
1089
1089
|
(e2 = null != e2 ? e2 : window).addEventListener(t2, l2, n2), a2(() => e2.removeEventListener(t2, l2, n2));
|
|
1090
1090
|
});
|
|
1091
1091
|
}
|
|
@@ -1109,11 +1109,11 @@ let Nt = Object.assign(k({ name: "FocusTrap", props: { as: { type: [Object, Stri
|
|
|
1109
1109
|
let o2 = u(() => Ee(a2)), r2 = s(false);
|
|
1110
1110
|
y(() => r2.value = true), O(() => r2.value = false), function({ ownerDocument: e3 }, t3) {
|
|
1111
1111
|
let l3 = function(e4) {
|
|
1112
|
-
let t4 = s(
|
|
1112
|
+
let t4 = s(ft.slice());
|
|
1113
1113
|
return p([e4], ([e5], [l4]) => {
|
|
1114
1114
|
true === l4 && false === e5 ? ht(() => {
|
|
1115
1115
|
t4.value.splice(0);
|
|
1116
|
-
}) : false === l4 && true === e5 && (t4.value =
|
|
1116
|
+
}) : false === l4 && true === e5 && (t4.value = ft.slice());
|
|
1117
1117
|
}, { flush: "post" }), () => {
|
|
1118
1118
|
var e5;
|
|
1119
1119
|
return null != (e5 = t4.value.find((e6) => null != e6 && e6.isConnected)) ? e5 : null;
|
|
@@ -1179,12 +1179,12 @@ let Nt = Object.assign(k({ name: "FocusTrap", props: { as: { type: [Object, Stri
|
|
|
1179
1179
|
} });
|
|
1180
1180
|
}
|
|
1181
1181
|
let g2 = s(false);
|
|
1182
|
-
function
|
|
1182
|
+
function f2(e3) {
|
|
1183
1183
|
"Tab" === e3.key && (g2.value = true, requestAnimationFrame(() => {
|
|
1184
1184
|
g2.value = false;
|
|
1185
1185
|
}));
|
|
1186
1186
|
}
|
|
1187
|
-
function
|
|
1187
|
+
function m2(t3) {
|
|
1188
1188
|
if (!r2.value)
|
|
1189
1189
|
return;
|
|
1190
1190
|
let l3 = Lt(e2.containers);
|
|
@@ -1193,7 +1193,7 @@ let Nt = Object.assign(k({ name: "FocusTrap", props: { as: { type: [Object, Stri
|
|
|
1193
1193
|
n3 instanceof HTMLElement && "true" !== n3.dataset.headlessuiFocusGuard && (zt(l3, n3) || (g2.value ? He(Ce(a2), Oe(d2.value, { [At.Forwards]: () => _e.Next, [At.Backwards]: () => _e.Previous }) | _e.WrapAround, { relativeTo: t3.target }) : t3.target instanceof HTMLElement && Ne(t3.target)));
|
|
1194
1194
|
}
|
|
1195
1195
|
return () => {
|
|
1196
|
-
let n3 = { ref: a2, onKeydown:
|
|
1196
|
+
let n3 = { ref: a2, onKeydown: f2, onFocusout: m2 }, { features: o3, initialFocus: r3, containers: i3, ...s2 } = e2;
|
|
1197
1197
|
return x(w, [Boolean(4 & o3) && x(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) && x(st, { as: "button", type: "button", "data-headlessui-focus-guard": true, onFocus: c2, features: it.Focusable })]);
|
|
1198
1198
|
};
|
|
1199
1199
|
} }), { features: Ft });
|
|
@@ -1342,7 +1342,7 @@ function Wt(e2, t2 = s(true)) {
|
|
|
1342
1342
|
}
|
|
1343
1343
|
let Kt = Symbol("ForcePortalRootContext");
|
|
1344
1344
|
function Jt() {
|
|
1345
|
-
return
|
|
1345
|
+
return m(Kt, false);
|
|
1346
1346
|
}
|
|
1347
1347
|
let Gt = k({ name: "ForcePortalRoot", props: { as: { type: [Object, String], default: "template" }, force: { type: Boolean, default: false } }, setup: (e2, { slots: t2, attrs: l2 }) => (S(Kt, e2.force), () => {
|
|
1348
1348
|
let { force: n2, ...a2 } = e2;
|
|
@@ -1350,7 +1350,7 @@ let Gt = k({ name: "ForcePortalRoot", props: { as: { type: [Object, String], def
|
|
|
1350
1350
|
}) }), Zt = Symbol("StackContext");
|
|
1351
1351
|
var Xt = ((e2) => (e2[e2.Add = 0] = "Add", e2[e2.Remove = 1] = "Remove", e2))(Xt || {});
|
|
1352
1352
|
function Qt({ type: e2, enabled: t2, element: l2, onUpdate: n2 }) {
|
|
1353
|
-
let a2 =
|
|
1353
|
+
let a2 = m(Zt, () => {
|
|
1354
1354
|
});
|
|
1355
1355
|
function o2(...e3) {
|
|
1356
1356
|
null == n2 || n2(...e3), a2(...e3);
|
|
@@ -1376,7 +1376,7 @@ function tl({ slot: e2 = s({}), name: t2 = "Description", props: l2 = {} } = {})
|
|
|
1376
1376
|
k({ name: "Description", props: { as: { type: [Object, String], default: "p" }, id: { type: String, default: null } }, setup(e2, { attrs: t2, slots: l2 }) {
|
|
1377
1377
|
var n2;
|
|
1378
1378
|
let a2 = null != (n2 = e2.id) ? n2 : `headlessui-description-${Se()}`, o2 = function() {
|
|
1379
|
-
let e3 =
|
|
1379
|
+
let e3 = m(el, null);
|
|
1380
1380
|
if (null === e3)
|
|
1381
1381
|
throw new Error("Missing parent");
|
|
1382
1382
|
return e3;
|
|
@@ -1387,7 +1387,7 @@ k({ name: "Description", props: { as: { type: [Object, String], default: "p" },
|
|
|
1387
1387
|
};
|
|
1388
1388
|
} });
|
|
1389
1389
|
let ll = k({ name: "Portal", props: { as: { type: [Object, String], default: "div" } }, setup(e2, { slots: t2, attrs: l2 }) {
|
|
1390
|
-
let n2 = s(null), a2 = u(() => Ee(n2)), o2 = Jt(), r2 =
|
|
1390
|
+
let n2 = s(null), a2 = u(() => Ee(n2)), o2 = Jt(), r2 = m(al, null), i2 = s(true === o2 || null == r2 ? function(e3) {
|
|
1391
1391
|
let t3 = Ee(e3);
|
|
1392
1392
|
if (!t3) {
|
|
1393
1393
|
if (null === e3)
|
|
@@ -1405,12 +1405,12 @@ let ll = k({ name: "Portal", props: { as: { type: [Object, String], default: "di
|
|
|
1405
1405
|
}), h(() => {
|
|
1406
1406
|
o2 || null != r2 && (i2.value = r2.resolveTarget());
|
|
1407
1407
|
});
|
|
1408
|
-
let c2 =
|
|
1408
|
+
let c2 = m(nl, null), g2 = false, f2 = D();
|
|
1409
1409
|
return p(n2, () => {
|
|
1410
1410
|
if (g2 || !c2)
|
|
1411
1411
|
return;
|
|
1412
1412
|
let e3 = Ce(n2);
|
|
1413
|
-
e3 && (O(c2.register(e3),
|
|
1413
|
+
e3 && (O(c2.register(e3), f2), g2 = true);
|
|
1414
1414
|
}), O(() => {
|
|
1415
1415
|
var e3, t3;
|
|
1416
1416
|
let l3 = null == (e3 = a2.value) ? void 0 : e3.getElementById("headlessui-portal-root");
|
|
@@ -1419,7 +1419,7 @@ let ll = k({ name: "Portal", props: { as: { type: [Object, String], default: "di
|
|
|
1419
1419
|
if (!d2.value || null === i2.value)
|
|
1420
1420
|
return null;
|
|
1421
1421
|
let a3 = { ref: n2, "data-headlessui-portal": "" };
|
|
1422
|
-
return x(
|
|
1422
|
+
return x(T, { to: i2.value }, tt({ ourProps: a3, theirProps: e2, slot: {}, attrs: l2, slots: t2, name: "Portal" }));
|
|
1423
1423
|
};
|
|
1424
1424
|
} }), nl = Symbol("PortalParentContext");
|
|
1425
1425
|
let al = Symbol("PortalGroupContext"), ol = k({ name: "PortalGroup", props: { as: { type: [Object, String], default: "template" }, target: { type: Object, default: null } }, setup(e2, { attrs: t2, slots: l2 }) {
|
|
@@ -1432,7 +1432,7 @@ let al = Symbol("PortalGroupContext"), ol = k({ name: "PortalGroup", props: { as
|
|
|
1432
1432
|
var rl = ((e2) => (e2[e2.Open = 0] = "Open", e2[e2.Closed = 1] = "Closed", e2))(rl || {});
|
|
1433
1433
|
let il = Symbol("DialogContext");
|
|
1434
1434
|
function sl(e2) {
|
|
1435
|
-
let t2 =
|
|
1435
|
+
let t2 = m(il, null);
|
|
1436
1436
|
if (null === t2) {
|
|
1437
1437
|
let t3 = new Error(`<${e2} /> is missing a parent <Dialog /> component.`);
|
|
1438
1438
|
throw Error.captureStackTrace && Error.captureStackTrace(t3, sl), t3;
|
|
@@ -1445,13 +1445,13 @@ let ul = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", dl = k({ name: "Dialog", inheri
|
|
|
1445
1445
|
y(() => {
|
|
1446
1446
|
d2.value = true;
|
|
1447
1447
|
});
|
|
1448
|
-
let c2 = false, p2 = u(() => "dialog" === e2.role || "alertdialog" === e2.role ? e2.role : (c2 || (c2 = true, console.warn(`Invalid role [${p2}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog")), g2 = s(0),
|
|
1449
|
-
if (a2({ el: w2, $el: w2 }), e2.open === ul && null ===
|
|
1448
|
+
let c2 = false, p2 = u(() => "dialog" === e2.role || "alertdialog" === e2.role ? e2.role : (c2 || (c2 = true, console.warn(`Invalid role [${p2}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog")), g2 = s(0), f2 = ct(), b2 = u(() => e2.open === ul && null !== f2 ? (f2.value & dt.Open) === dt.Open : e2.open), w2 = s(null), C2 = u(() => Ee(w2));
|
|
1449
|
+
if (a2({ el: w2, $el: w2 }), e2.open === ul && null === f2)
|
|
1450
1450
|
throw new Error("You forgot to provide an `open` prop to the `Dialog`.");
|
|
1451
1451
|
if ("boolean" != typeof b2.value)
|
|
1452
1452
|
throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${b2.value === ul ? void 0 : e2.open}`);
|
|
1453
|
-
let O2 = u(() => d2.value && b2.value ? 0 : 1), M2 = u(() => 0 === O2.value),
|
|
1454
|
-
let e3 =
|
|
1453
|
+
let O2 = u(() => d2.value && b2.value ? 0 : 1), M2 = u(() => 0 === O2.value), D2 = u(() => g2.value > 1), T2 = null !== m(il, null), [E2, I2] = function() {
|
|
1454
|
+
let e3 = m(nl, null), t3 = s([]);
|
|
1455
1455
|
function l3(l4) {
|
|
1456
1456
|
let n4 = t3.value.indexOf(l4);
|
|
1457
1457
|
-1 !== n4 && t3.value.splice(n4, 1), e3 && e3.unregister(l4);
|
|
@@ -1481,12 +1481,12 @@ let ul = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", dl = k({ name: "Dialog", inheri
|
|
|
1481
1481
|
}({ portals: E2, defaultContainers: [u(() => {
|
|
1482
1482
|
var e3;
|
|
1483
1483
|
return null != (e3 = H2.panelRef.value) ? e3 : w2.value;
|
|
1484
|
-
})] }), R2 = u(() =>
|
|
1484
|
+
})] }), R2 = u(() => D2.value ? "parent" : "leaf"), B2 = u(() => null !== f2 && (f2.value & dt.Closing) === dt.Closing), A2 = u(() => !T2 && !B2.value && M2.value), L2 = u(() => {
|
|
1485
1485
|
var e3, t3, l3;
|
|
1486
1486
|
return null != (l3 = Array.from(null != (t3 = null == (e3 = C2.value) ? void 0 : e3.querySelectorAll("body > *")) ? t3 : []).find((e4) => "headlessui-portal-root" !== e4.id && (e4.contains(Ce(P2)) && e4 instanceof HTMLElement))) ? l3 : null;
|
|
1487
1487
|
});
|
|
1488
1488
|
Wt(L2, A2);
|
|
1489
|
-
let F2 = u(() => !!
|
|
1489
|
+
let F2 = u(() => !!D2.value || M2.value), N2 = u(() => {
|
|
1490
1490
|
var e3, t3, l3;
|
|
1491
1491
|
return null != (l3 = Array.from(null != (t3 = null == (e3 = C2.value) ? void 0 : e3.querySelectorAll("[data-headlessui-portal]")) ? t3 : []).find((e4) => e4.contains(Ce(P2)) && e4 instanceof HTMLElement)) ? l3 : null;
|
|
1492
1492
|
});
|
|
@@ -1500,15 +1500,15 @@ let ul = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", dl = k({ name: "Dialog", inheri
|
|
|
1500
1500
|
t2("close", false);
|
|
1501
1501
|
} };
|
|
1502
1502
|
S(il, H2);
|
|
1503
|
-
let V2 = u(() => !(!M2.value ||
|
|
1503
|
+
let V2 = u(() => !(!M2.value || D2.value));
|
|
1504
1504
|
We(_2, (e3, t3) => {
|
|
1505
|
-
H2.close(), v(() => null == t3 ? void 0 : t3.focus());
|
|
1505
|
+
e3.preventDefault(), H2.close(), v(() => null == t3 ? void 0 : t3.focus());
|
|
1506
1506
|
}, V2);
|
|
1507
|
-
let Y2 = u(() => !(
|
|
1507
|
+
let Y2 = u(() => !(D2.value || 0 !== O2.value));
|
|
1508
1508
|
Bt(null == (r2 = C2.value) ? void 0 : r2.defaultView, "keydown", (e3) => {
|
|
1509
1509
|
Y2.value && (e3.defaultPrevented || e3.key === gt.Escape && (e3.preventDefault(), e3.stopPropagation(), H2.close()));
|
|
1510
1510
|
});
|
|
1511
|
-
let U2 = u(() => !(B2.value || 0 !== O2.value ||
|
|
1511
|
+
let U2 = u(() => !(B2.value || 0 !== O2.value || T2));
|
|
1512
1512
|
return Yt(C2, U2, (e3) => {
|
|
1513
1513
|
var t3;
|
|
1514
1514
|
return { containers: [...null != (t3 = e3.containers) ? t3 : [], _2] };
|
|
@@ -1572,12 +1572,12 @@ let cl = k({ name: "DialogPanel", props: { as: { type: [Object, String], default
|
|
|
1572
1572
|
};
|
|
1573
1573
|
} });
|
|
1574
1574
|
var gl = ((e2) => (e2[e2.Open = 0] = "Open", e2[e2.Closed = 1] = "Closed", e2))(gl || {});
|
|
1575
|
-
let
|
|
1576
|
-
function
|
|
1577
|
-
let t2 =
|
|
1575
|
+
let fl = Symbol("DisclosureContext");
|
|
1576
|
+
function ml(e2) {
|
|
1577
|
+
let t2 = m(fl, null);
|
|
1578
1578
|
if (null === t2) {
|
|
1579
1579
|
let t3 = new Error(`<${e2} /> is missing a parent <Disclosure /> component.`);
|
|
1580
|
-
throw Error.captureStackTrace && Error.captureStackTrace(t3,
|
|
1580
|
+
throw Error.captureStackTrace && Error.captureStackTrace(t3, ml), t3;
|
|
1581
1581
|
}
|
|
1582
1582
|
return t2;
|
|
1583
1583
|
}
|
|
@@ -1592,12 +1592,12 @@ let hl = k({ name: "Disclosure", props: { as: { type: [Object, String], default:
|
|
|
1592
1592
|
let t3 = e3 ? e3 instanceof HTMLElement ? e3 : e3.value instanceof HTMLElement ? Ce(e3) : Ce(r2.button) : Ce(r2.button);
|
|
1593
1593
|
null == t3 || t3.focus();
|
|
1594
1594
|
} };
|
|
1595
|
-
return S(
|
|
1595
|
+
return S(fl, r2), pt(u(() => Oe(n2.value, { 0: dt.Open, 1: dt.Closed }))), () => {
|
|
1596
1596
|
let { defaultOpen: a3, ...o3 } = e2;
|
|
1597
1597
|
return tt({ theirProps: o3, ourProps: {}, slot: { open: 0 === n2.value, close: r2.close }, slots: t2, attrs: l2, name: "Disclosure" });
|
|
1598
1598
|
};
|
|
1599
1599
|
} }), yl = k({ 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 }) {
|
|
1600
|
-
let a2 =
|
|
1600
|
+
let a2 = ml("DisclosureButton"), o2 = m(vl, null), r2 = u(() => null !== o2 && o2.value === a2.panelId.value);
|
|
1601
1601
|
y(() => {
|
|
1602
1602
|
r2.value || null !== e2.id && (a2.buttonId.value = e2.id);
|
|
1603
1603
|
}), O(() => {
|
|
@@ -1638,7 +1638,7 @@ let hl = k({ name: "Disclosure", props: { as: { type: [Object, String], default:
|
|
|
1638
1638
|
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" });
|
|
1639
1639
|
};
|
|
1640
1640
|
} }), bl = k({ 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 }) {
|
|
1641
|
-
let a2 =
|
|
1641
|
+
let a2 = ml("DisclosurePanel");
|
|
1642
1642
|
y(() => {
|
|
1643
1643
|
null !== e2.id && (a2.panelId.value = e2.id);
|
|
1644
1644
|
}), O(() => {
|
|
@@ -1696,14 +1696,14 @@ function kl(e2) {
|
|
|
1696
1696
|
var Sl = ((e2) => (e2[e2.Open = 0] = "Open", e2[e2.Closed = 1] = "Closed", e2))(Sl || {}), Cl = ((e2) => (e2[e2.Pointer = 0] = "Pointer", e2[e2.Other = 1] = "Other", e2))(Cl || {});
|
|
1697
1697
|
let Ol = Symbol("MenuContext");
|
|
1698
1698
|
function Ml(e2) {
|
|
1699
|
-
let t2 =
|
|
1699
|
+
let t2 = m(Ol, null);
|
|
1700
1700
|
if (null === t2) {
|
|
1701
1701
|
let t3 = new Error(`<${e2} /> is missing a parent <Menu /> component.`);
|
|
1702
1702
|
throw Error.captureStackTrace && Error.captureStackTrace(t3, Ml), t3;
|
|
1703
1703
|
}
|
|
1704
1704
|
return t2;
|
|
1705
1705
|
}
|
|
1706
|
-
let
|
|
1706
|
+
let Dl = k({ name: "Menu", props: { as: { type: [Object, String], default: "template" } }, setup(e2, { slots: t2, attrs: l2 }) {
|
|
1707
1707
|
let n2 = s(1), a2 = s(null), o2 = s(null), r2 = s([]), i2 = s(""), d2 = s(null), c2 = s(1);
|
|
1708
1708
|
function p2(e3 = (e4) => e4) {
|
|
1709
1709
|
let t3 = null !== d2.value ? r2.value[d2.value] : null, l3 = $e(e3(r2.value.slice()), (e4) => Ce(e4.dataRef.domRef)), n3 = t3 ? l3.indexOf(t3) : null;
|
|
@@ -1712,7 +1712,7 @@ let Tl = k({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
1712
1712
|
let g2 = { menuState: n2, buttonRef: a2, itemsRef: o2, items: r2, searchQuery: i2, activeItemIndex: d2, activationTrigger: c2, closeMenu: () => {
|
|
1713
1713
|
n2.value = 1, d2.value = null;
|
|
1714
1714
|
}, openMenu: () => n2.value = 0, goToItem(e3, t3, l3) {
|
|
1715
|
-
let n3 = p2(), a3 = vt(e3 ===
|
|
1715
|
+
let n3 = p2(), a3 = vt(e3 === mt.Specific ? { focus: mt.Specific, id: t3 } : { focus: e3 }, { resolveItems: () => n3.items, resolveActiveIndex: () => n3.activeItemIndex, resolveId: (e4) => e4.id, resolveDisabled: (e4) => e4.dataRef.disabled });
|
|
1716
1716
|
i2.value = "", d2.value = a3, c2.value = null != l3 ? l3 : 1, r2.value = n3.items;
|
|
1717
1717
|
}, search(e3) {
|
|
1718
1718
|
let t3 = "" !== i2.value ? 0 : 1;
|
|
@@ -1738,7 +1738,7 @@ let Tl = k({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
1738
1738
|
let a3 = { open: 0 === n2.value, close: g2.closeMenu };
|
|
1739
1739
|
return tt({ ourProps: {}, theirProps: e2, slot: a3, slots: t2, attrs: l2, name: "Menu" });
|
|
1740
1740
|
};
|
|
1741
|
-
} }),
|
|
1741
|
+
} }), Tl = k({ name: "MenuButton", props: { disabled: { type: Boolean, default: false }, as: { type: [Object, String], default: "button" }, id: { type: String, default: null } }, setup(e2, { attrs: t2, slots: l2, expose: n2 }) {
|
|
1742
1742
|
var a2;
|
|
1743
1743
|
let o2 = null != (a2 = e2.id) ? a2 : `headlessui-menu-button-${Se()}`, r2 = Ml("MenuButton");
|
|
1744
1744
|
function i2(e3) {
|
|
@@ -1748,13 +1748,13 @@ let Tl = k({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
1748
1748
|
case gt.ArrowDown:
|
|
1749
1749
|
e3.preventDefault(), e3.stopPropagation(), r2.openMenu(), v(() => {
|
|
1750
1750
|
var e4;
|
|
1751
|
-
null == (e4 = Ce(r2.itemsRef)) || e4.focus({ preventScroll: true }), r2.goToItem(
|
|
1751
|
+
null == (e4 = Ce(r2.itemsRef)) || e4.focus({ preventScroll: true }), r2.goToItem(mt.First);
|
|
1752
1752
|
});
|
|
1753
1753
|
break;
|
|
1754
1754
|
case gt.ArrowUp:
|
|
1755
1755
|
e3.preventDefault(), e3.stopPropagation(), r2.openMenu(), v(() => {
|
|
1756
1756
|
var e4;
|
|
1757
|
-
null == (e4 = Ce(r2.itemsRef)) || e4.focus({ preventScroll: true }), r2.goToItem(
|
|
1757
|
+
null == (e4 = Ce(r2.itemsRef)) || e4.focus({ preventScroll: true }), r2.goToItem(mt.Last);
|
|
1758
1758
|
});
|
|
1759
1759
|
}
|
|
1760
1760
|
}
|
|
@@ -1796,15 +1796,15 @@ let Tl = k({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
1796
1796
|
r2.closeMenu(), Le(Ce(r2.buttonRef));
|
|
1797
1797
|
break;
|
|
1798
1798
|
case gt.ArrowDown:
|
|
1799
|
-
return e3.preventDefault(), e3.stopPropagation(), r2.goToItem(
|
|
1799
|
+
return e3.preventDefault(), e3.stopPropagation(), r2.goToItem(mt.Next);
|
|
1800
1800
|
case gt.ArrowUp:
|
|
1801
|
-
return e3.preventDefault(), e3.stopPropagation(), r2.goToItem(
|
|
1801
|
+
return e3.preventDefault(), e3.stopPropagation(), r2.goToItem(mt.Previous);
|
|
1802
1802
|
case gt.Home:
|
|
1803
1803
|
case gt.PageUp:
|
|
1804
|
-
return e3.preventDefault(), e3.stopPropagation(), r2.goToItem(
|
|
1804
|
+
return e3.preventDefault(), e3.stopPropagation(), r2.goToItem(mt.First);
|
|
1805
1805
|
case gt.End:
|
|
1806
1806
|
case gt.PageDown:
|
|
1807
|
-
return e3.preventDefault(), e3.stopPropagation(), r2.goToItem(
|
|
1807
|
+
return e3.preventDefault(), e3.stopPropagation(), r2.goToItem(mt.Last);
|
|
1808
1808
|
case gt.Escape:
|
|
1809
1809
|
e3.preventDefault(), e3.stopPropagation(), r2.closeMenu(), v(() => {
|
|
1810
1810
|
var e4;
|
|
@@ -1845,10 +1845,10 @@ let Tl = k({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
1845
1845
|
return t3.preventDefault();
|
|
1846
1846
|
r2.closeMenu(), Le(Ce(r2.buttonRef));
|
|
1847
1847
|
}
|
|
1848
|
-
function
|
|
1848
|
+
function f2() {
|
|
1849
1849
|
if (e2.disabled)
|
|
1850
|
-
return r2.goToItem(
|
|
1851
|
-
r2.goToItem(
|
|
1850
|
+
return r2.goToItem(mt.Nothing);
|
|
1851
|
+
r2.goToItem(mt.Specific, o2);
|
|
1852
1852
|
}
|
|
1853
1853
|
y(() => r2.registerItem(o2, p2)), O(() => r2.unregisterItem(o2)), h(() => {
|
|
1854
1854
|
0 === r2.menuState.value && d2.value && 0 !== r2.activationTrigger.value && v(() => {
|
|
@@ -1856,23 +1856,23 @@ let Tl = k({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
1856
1856
|
return null == (t3 = null == (e3 = Ce(i2)) ? void 0 : e3.scrollIntoView) ? void 0 : t3.call(e3, { block: "nearest" });
|
|
1857
1857
|
});
|
|
1858
1858
|
});
|
|
1859
|
-
let
|
|
1859
|
+
let m2 = Ze();
|
|
1860
1860
|
function b2(e3) {
|
|
1861
|
-
|
|
1861
|
+
m2.update(e3);
|
|
1862
1862
|
}
|
|
1863
1863
|
function x2(t3) {
|
|
1864
|
-
|
|
1864
|
+
m2.wasMoved(t3) && (e2.disabled || d2.value || r2.goToItem(mt.Specific, o2, 0));
|
|
1865
1865
|
}
|
|
1866
1866
|
function w2(t3) {
|
|
1867
|
-
|
|
1867
|
+
m2.wasMoved(t3) && (e2.disabled || d2.value && r2.goToItem(mt.Nothing));
|
|
1868
1868
|
}
|
|
1869
1869
|
return () => {
|
|
1870
|
-
let { disabled: n3 } = e2,
|
|
1871
|
-
return tt({ ourProps: { id: o2, ref: i2, role: "menuitem", tabIndex: true === n3 ? void 0 : -1, "aria-disabled": true === n3 || void 0,
|
|
1870
|
+
let { disabled: n3, ...a3 } = e2, s2 = { active: d2.value, disabled: n3, close: r2.closeMenu };
|
|
1871
|
+
return tt({ ourProps: { id: o2, ref: i2, role: "menuitem", tabIndex: true === n3 ? void 0 : -1, "aria-disabled": true === n3 || void 0, onClick: g2, onFocus: f2, onPointerenter: b2, onMouseenter: b2, onPointermove: x2, onMousemove: x2, onPointerleave: w2, onMouseleave: w2 }, theirProps: { ...l2, ...a3 }, slot: s2, attrs: l2, slots: t2, name: "MenuItem" });
|
|
1872
1872
|
};
|
|
1873
1873
|
} }), _l = Symbol("LabelContext");
|
|
1874
1874
|
function Pl() {
|
|
1875
|
-
let e2 =
|
|
1875
|
+
let e2 = m(_l, null);
|
|
1876
1876
|
if (null === e2) {
|
|
1877
1877
|
let e3 = new Error("You used a <Label /> component, but it is not inside a parent.");
|
|
1878
1878
|
throw Error.captureStackTrace && Error.captureStackTrace(e3, Pl), e3;
|
|
@@ -1902,13 +1902,13 @@ let jl = k({ name: "Label", props: { as: { type: [Object, String], default: "lab
|
|
|
1902
1902
|
n2.value && ("LABEL" === e3.currentTarget.tagName && e3.preventDefault(), n2.value.click(), n2.value.focus({ preventScroll: true }));
|
|
1903
1903
|
} } }), o2 = tl({ name: "SwitchDescription" });
|
|
1904
1904
|
return S(Rl, { switchRef: n2, labelledby: a2, describedby: o2 }), () => tt({ theirProps: e2, ourProps: {}, slot: {}, slots: t2, attrs: l2, name: "SwitchGroup" });
|
|
1905
|
-
} }), Al = k({ name: "Switch", emits: { "update:modelValue": (e2) => true }, props: { as: { type: [Object, String], default: "button" }, modelValue: { type: Boolean, default: void 0 }, defaultChecked: { type: Boolean, optional: true }, form: { type: String, optional: true }, name: { type: String, optional: true }, value: { type: String, optional: true }, id: { type: String, default: null } }, inheritAttrs: false, setup(e2, { emit: t2, attrs: l2, slots: n2, expose: a2 }) {
|
|
1905
|
+
} }), Al = k({ name: "Switch", emits: { "update:modelValue": (e2) => true }, props: { as: { type: [Object, String], default: "button" }, modelValue: { type: Boolean, default: void 0 }, defaultChecked: { type: Boolean, optional: true }, form: { type: String, optional: true }, name: { type: String, optional: true }, value: { type: String, optional: true }, id: { type: String, default: null }, disabled: { type: Boolean, default: false }, tabIndex: { type: Number, default: 0 } }, inheritAttrs: false, setup(e2, { emit: t2, attrs: l2, slots: n2, expose: a2 }) {
|
|
1906
1906
|
var o2;
|
|
1907
|
-
let r2 = null != (o2 = e2.id) ? o2 : `headlessui-switch-${Se()}`, i2 =
|
|
1907
|
+
let r2 = null != (o2 = e2.id) ? o2 : `headlessui-switch-${Se()}`, i2 = m(Rl, null), [d2, c2] = xe(u(() => e2.modelValue), (e3) => t2("update:modelValue", e3), u(() => e2.defaultChecked));
|
|
1908
1908
|
function g2() {
|
|
1909
1909
|
c2(!d2.value);
|
|
1910
1910
|
}
|
|
1911
|
-
let
|
|
1911
|
+
let f2 = s(null), v2 = null === i2 ? f2 : i2.switchRef, h2 = Je(u(() => ({ as: e2.as, type: l2.type })), v2);
|
|
1912
1912
|
function b2(e3) {
|
|
1913
1913
|
e3.preventDefault(), g2();
|
|
1914
1914
|
}
|
|
@@ -1944,8 +1944,8 @@ let jl = k({ name: "Label", props: { as: { type: [Object, String], default: "lab
|
|
|
1944
1944
|
}
|
|
1945
1945
|
}, { immediate: true });
|
|
1946
1946
|
}), () => {
|
|
1947
|
-
let { name: t3, value: a3, form: o3,
|
|
1948
|
-
return x(w, [null != t3 && null != d2.value ? x(st, ot({ features: it.Hidden, as: "input", type: "checkbox", hidden: true, readOnly: true, checked: d2.value, form: o3, name: t3, value: a3 })) : null, tt({ ourProps:
|
|
1947
|
+
let { name: t3, value: a3, form: o3, tabIndex: s2, ...u2 } = e2, c3 = { checked: d2.value }, p2 = { id: r2, ref: v2, role: "switch", type: h2.value, tabIndex: -1 === s2 ? 0 : s2, "aria-checked": d2.value, "aria-labelledby": null == i2 ? void 0 : i2.labelledby.value, "aria-describedby": null == i2 ? void 0 : i2.describedby.value, onClick: b2, onKeyup: k2, onKeypress: S2 };
|
|
1948
|
+
return x(w, [null != t3 && null != d2.value ? x(st, ot({ features: it.Hidden, as: "input", type: "checkbox", hidden: true, readOnly: true, checked: d2.value, form: o3, disabled: u2.disabled, name: t3, value: a3 })) : null, tt({ ourProps: p2, theirProps: { ...l2, ...rt(u2, ["modelValue", "defaultChecked"]) }, slot: c3, attrs: l2, slots: n2, name: "Switch" })]);
|
|
1949
1949
|
};
|
|
1950
1950
|
} }), Ll = jl;
|
|
1951
1951
|
function Fl(e2, ...t2) {
|
|
@@ -2015,38 +2015,38 @@ let Kl = Qe.RenderStrategy, Jl = k({ props: { as: { type: [Object, String], defa
|
|
|
2015
2015
|
function g2() {
|
|
2016
2016
|
r2.value &= ~dt.Closing, t2("afterLeave");
|
|
2017
2017
|
}
|
|
2018
|
-
if (null ===
|
|
2018
|
+
if (null === m(Vl, null) && null !== ct())
|
|
2019
2019
|
return () => x(Zl, { ...e2, onBeforeEnter: i2, onAfterEnter: d2, onBeforeLeave: c2, onAfterLeave: g2 }, a2);
|
|
2020
|
-
let
|
|
2021
|
-
o2({ el:
|
|
2020
|
+
let f2 = s(null), v2 = u(() => e2.unmount ? et.Unmount : et.Hidden);
|
|
2021
|
+
o2({ el: f2, $el: f2 });
|
|
2022
2022
|
let { show: b2, appear: w2 } = function() {
|
|
2023
|
-
let e3 =
|
|
2023
|
+
let e3 = m(Vl, null);
|
|
2024
2024
|
if (null === e3)
|
|
2025
2025
|
throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");
|
|
2026
2026
|
return e3;
|
|
2027
2027
|
}(), { register: k2, unregister: C2 } = function() {
|
|
2028
|
-
let e3 =
|
|
2028
|
+
let e3 = m(Ul, null);
|
|
2029
2029
|
if (null === e3)
|
|
2030
2030
|
throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");
|
|
2031
2031
|
return e3;
|
|
2032
|
-
}(), M2 = s(b2.value ? "visible" : "hidden"),
|
|
2033
|
-
!E2.value && "hidden" !== M2.value && (M2.value = "hidden", C2(
|
|
2032
|
+
}(), M2 = s(b2.value ? "visible" : "hidden"), D2 = { value: true }, T2 = Se(), E2 = { value: false }, I2 = Wl(() => {
|
|
2033
|
+
!E2.value && "hidden" !== M2.value && (M2.value = "hidden", C2(T2), g2());
|
|
2034
2034
|
});
|
|
2035
2035
|
y(() => {
|
|
2036
|
-
let e3 = k2(
|
|
2036
|
+
let e3 = k2(T2);
|
|
2037
2037
|
O(e3);
|
|
2038
2038
|
}), h(() => {
|
|
2039
|
-
if (v2.value === et.Hidden &&
|
|
2039
|
+
if (v2.value === et.Hidden && T2) {
|
|
2040
2040
|
if (b2.value && "visible" !== M2.value)
|
|
2041
2041
|
return void (M2.value = "visible");
|
|
2042
|
-
Oe(M2.value, { hidden: () => C2(
|
|
2042
|
+
Oe(M2.value, { hidden: () => C2(T2), visible: () => k2(T2) });
|
|
2043
2043
|
}
|
|
2044
2044
|
});
|
|
2045
2045
|
let _2 = Hl(e2.enter), P2 = Hl(e2.enterFrom), j2 = Hl(e2.enterTo), R2 = Hl(e2.entered), B2 = Hl(e2.leave), A2 = Hl(e2.leaveFrom), L2 = Hl(e2.leaveTo);
|
|
2046
2046
|
return y(() => {
|
|
2047
2047
|
h(() => {
|
|
2048
2048
|
if ("visible" === M2.value) {
|
|
2049
|
-
let e3 = Ce(
|
|
2049
|
+
let e3 = Ce(f2);
|
|
2050
2050
|
if (e3 instanceof Comment && "" === e3.data)
|
|
2051
2051
|
throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
2052
2052
|
}
|
|
@@ -2054,17 +2054,17 @@ let Kl = Qe.RenderStrategy, Jl = k({ props: { as: { type: [Object, String], defa
|
|
|
2054
2054
|
}), y(() => {
|
|
2055
2055
|
p([b2], (e3, t3, l3) => {
|
|
2056
2056
|
(function(e4) {
|
|
2057
|
-
let t4 =
|
|
2057
|
+
let t4 = D2.value && !w2.value, l4 = Ce(f2);
|
|
2058
2058
|
!l4 || !(l4 instanceof HTMLElement) || t4 || (E2.value = true, b2.value && i2(), b2.value || c2(), e4(b2.value ? $l(l4, _2, P2, j2, R2, (e5) => {
|
|
2059
2059
|
E2.value = false, e5 === zl.Finished && d2();
|
|
2060
2060
|
}) : $l(l4, B2, A2, L2, R2, (e5) => {
|
|
2061
|
-
E2.value = false, e5 === zl.Finished && (ql(I2) || (M2.value = "hidden", C2(
|
|
2061
|
+
E2.value = false, e5 === zl.Finished && (ql(I2) || (M2.value = "hidden", C2(T2), g2()));
|
|
2062
2062
|
})));
|
|
2063
|
-
})(l3),
|
|
2063
|
+
})(l3), D2.value = false;
|
|
2064
2064
|
}, { immediate: true });
|
|
2065
2065
|
}), S(Ul, I2), pt(u(() => Oe(M2.value, { visible: dt.Open, hidden: dt.Closed }) | r2.value)), () => {
|
|
2066
|
-
let { appear: t3, show: o3, enter: r3, enterFrom: i3, enterTo: s2, entered: u2, leave: d3, leaveFrom: c3, leaveTo: p2, ...g3 } = e2,
|
|
2067
|
-
return tt({ theirProps: { ...g3, ...w2.value && b2.value &&
|
|
2066
|
+
let { appear: t3, show: o3, enter: r3, enterFrom: i3, enterTo: s2, entered: u2, leave: d3, leaveFrom: c3, leaveTo: p2, ...g3 } = e2, m2 = { ref: f2 };
|
|
2067
|
+
return tt({ theirProps: { ...g3, ...w2.value && b2.value && Te.isServer ? { class: n([l2.class, g3.class, ..._2, ...P2]) } : {} }, ourProps: m2, slot: {}, slots: a2, attrs: l2, features: Kl, visible: "visible" === M2.value, name: "TransitionChild" });
|
|
2068
2068
|
};
|
|
2069
2069
|
} }), Gl = Jl, Zl = k({ 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 }) {
|
|
2070
2070
|
let a2 = ct(), o2 = u(() => null === e2.show && null !== a2 ? (a2.value & dt.Open) === dt.Open : e2.show);
|
|
@@ -2129,10 +2129,10 @@ function pn(t2, l2) {
|
|
|
2129
2129
|
function gn(t2, l2) {
|
|
2130
2130
|
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: "M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z" })]);
|
|
2131
2131
|
}
|
|
2132
|
-
function
|
|
2132
|
+
function fn(t2, l2) {
|
|
2133
2133
|
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: "m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0" })]);
|
|
2134
2134
|
}
|
|
2135
|
-
function
|
|
2135
|
+
function mn(t2, l2) {
|
|
2136
2136
|
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: "m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z" })]);
|
|
2137
2137
|
}
|
|
2138
2138
|
function vn(t2, l2) {
|
|
@@ -2143,17 +2143,17 @@ const hn = { class: "py-1" }, yn = ["onClick"], bn = { key: 1, class: "animate-p
|
|
|
2143
2143
|
let e2 = c2.items.find((e3) => true === e3.active);
|
|
2144
2144
|
return e2 ? e2.name : c2.label;
|
|
2145
2145
|
});
|
|
2146
|
-
return (r3, u2) => l2.loading ? (e(), a("div", bn, [xn, 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(
|
|
2146
|
+
return (r3, u2) => l2.loading ? (e(), a("div", bn, [xn, 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(Dl), { key: 0, as: "div", class: n(["relative inline-block text-left", { "opacity-25": l2.disabled }]) }, { default: E(() => [i("div", null, [o(d(Tl), { 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: E(() => [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: E(() => [l2.disabled ? R("", true) : (e(), t(d(El), { 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: E(() => [i("div", hn, [(e(true), a(w, null, j(l2.items, (l3, a2) => (e(), t(d(Il), { key: a2 }, { default: E(() => [i("a", { onClick: (e2) => ((e3) => {
|
|
2147
2147
|
c2.disabled || s2("optionSelected", e3.value);
|
|
2148
2148
|
})(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, yn)]), _: 2 }, 1024))), 128))])]), _: 1 }, 8, ["class"]))]), _: 1 })]), _: 1 }, 8, ["class"]));
|
|
2149
|
-
} }), Sn = { key: 0 }, Cn = { class: "flex justify-between" }, On = { key: 0, class: "block text-sm font-medium text-gray-700" }, Mn = { key: 1, class: "text-[10px] text-gray-500 uppercase justify-self-end" },
|
|
2149
|
+
} }), Sn = { key: 0 }, Cn = { class: "flex justify-between" }, On = { key: 0, class: "block text-sm font-medium text-gray-700" }, Mn = { key: 1, class: "text-[10px] text-gray-500 uppercase justify-self-end" }, Dn = ["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" }, In = { 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" }, _n = 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), Pn = { name: "uiInput" }, jn = Object.assign(Pn, { props: { label: String, type: { type: String, default: "text" }, name: String, placeholder: { type: String, default: "..." }, icon: { type: Function, default: () => {
|
|
2150
2150
|
} }, 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 }) {
|
|
2151
2151
|
const r2 = l2, u2 = t2, c2 = (e2) => {
|
|
2152
2152
|
r2("inputChanged", { value: e2.target.value, name: e2.target.name });
|
|
2153
2153
|
}, g2 = s(u2.value);
|
|
2154
2154
|
return p(() => u2.value, (e2) => {
|
|
2155
2155
|
g2.value = e2, r2("inputChanged", { name: u2.name, value: g2.value });
|
|
2156
|
-
}), (l3, r3) => t2.loading ? (e(), a("div", En, [void 0 !== t2.label ? (e(), a("div", In)) : R("", true), _n])) : (e(), a("div", Sn, [i("div", Cn, [t2.label ? (e(), a("label", On, _(t2.label), 1)) : R("", true), t2.optional ? (e(), a("span", Mn, _(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,
|
|
2156
|
+
}), (l3, r3) => t2.loading ? (e(), a("div", En, [void 0 !== t2.label ? (e(), a("div", In)) : R("", true), _n])) : (e(), a("div", Sn, [i("div", Cn, [t2.label ? (e(), a("label", On, _(t2.label), 1)) : R("", true), t2.optional ? (e(), a("span", Mn, _(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, Dn), [[A, 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(K, { icon: t2.icon, color: t2.color, loading: t2.loading }, null, 8, ["icon", "color", "loading"]), B(o(K, { icon: d(ln), color: "green", loading: t2.loading }, null, 8, ["icon", "loading"]), [[L, "success" === t2.color]]), B(o(K, { icon: d(un), color: "yellow", loading: t2.loading }, null, 8, ["icon", "loading"]), [[L, "warning" === t2.color]]), B(o(K, { icon: d(vn), color: "red", loading: t2.loading }, null, 8, ["icon", "loading"]), [[L, "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), [[L, t2.error]])]));
|
|
2157
2157
|
} }), Rn = { key: 0 }, Bn = { class: "flex justify-between" }, An = { key: 0, class: "block text-sm font-medium text-gray-700" }, Ln = { key: 1, class: "text-[10px] text-gray-500 uppercase" }, Fn = { class: "space-y-1 flex flex-col items-center justify-center" }, Nn = { class: "flex text-sm text-gray-600 flex flex-col sm:flex-row text-center" }, zn = { 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" }, $n = ["accept"], Hn = { class: "pl-1" }, Vn = { class: "text-xs text-gray-500 pb-4" }, Yn = { class: "mt-2 text-xs flex flex-row items-center text-red-300" }, Un = { key: 1, class: "animate-pulse" }, qn = [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)], Wn = { name: "uiInputFile" }, Kn = Object.assign(Wn, { props: { name: String, label: String, optional: String, placeholder: String, dragAndDrop: String, fileTypesAndSizes: String, error: String, accept: String, icon: { type: Function, default: function(t2, l2) {
|
|
2158
2158
|
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" })]);
|
|
2159
2159
|
} }, loading: { type: Boolean, default: true } }, emits: ["filesUploaded"], setup(t2, { emit: l2 }) {
|
|
@@ -2164,21 +2164,21 @@ const hn = { class: "py-1" }, yn = ["onClick"], bn = { key: 1, class: "animate-p
|
|
|
2164
2164
|
u2("filesUploaded", e2.target.files), c2.filename = e2.target.files[0].name;
|
|
2165
2165
|
};
|
|
2166
2166
|
return (l3, s2) => t2.loading ? (e(), a("div", Un, qn)) : (e(), a("div", Rn, [i("div", Bn, [t2.label ? (e(), a("label", An, _(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(() => {
|
|
2167
|
-
}, ["prevent"])), onDrop: F(p2, ["prevent"]) }, [i("div", Fn, [o(K, { icon: t2.icon, size: "massive", color: "gray", "aria-hidden": "true", class: "mb-4", loading: t2.loading }, null, 8, ["icon", "loading"]), i("div", Nn, [i("label", zn, [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, $n)]), i("p", Hn, _(t2.dragAndDrop), 1)]), i("p", Vn, _(t2.fileTypesAndSizes), 1), B(i("p", { class: "font-bold text-xs uppercase block p-2 bg-gray-200 rounded" }, _(r2.value), 513), [[L, "" !== r2.value]])])], 34), B(i("p", Yn, [o(K, { icon: d(
|
|
2167
|
+
}, ["prevent"])), onDrop: F(p2, ["prevent"]) }, [i("div", Fn, [o(K, { icon: t2.icon, size: "massive", color: "gray", "aria-hidden": "true", class: "mb-4", loading: t2.loading }, null, 8, ["icon", "loading"]), i("div", Nn, [i("label", zn, [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, $n)]), i("p", Hn, _(t2.dragAndDrop), 1)]), i("p", Vn, _(t2.fileTypesAndSizes), 1), B(i("p", { class: "font-bold text-xs uppercase block p-2 bg-gray-200 rounded" }, _(r2.value), 513), [[L, "" !== r2.value]])])], 34), B(i("p", Yn, [o(K, { icon: d(mn), color: "red", class: "mr-2", loading: t2.loading }, null, 8, ["icon", "loading"]), I(_(t2.error), 1)], 512), [[L, t2.error]])]));
|
|
2168
2168
|
} }), Jn = { class: "relative mt-1" }, Gn = { key: 1, class: "animate-pulse px-4 py-2.5 bg-gray-200 rounded-md flex justify-between items-center w-full" }, Zn = i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1), Xn = { name: "uiSelect" }, Qn = Object.assign(Xn, { 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 }) {
|
|
2169
|
-
const c2 = s(""), p2 = r2, g2 = l2,
|
|
2170
|
-
return (r3, s2) => l2.loading ? (e(), a("div", Gn, [Zn, 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(Et), { key: 0, modelValue:
|
|
2169
|
+
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);
|
|
2170
|
+
return (r3, s2) => l2.loading ? (e(), a("div", Gn, [Zn, 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(Et), { 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: E(() => [o(d(It), { class: "block text-sm font-medium" }, { default: E(() => [I(_(l2.label), 1)]), _: 1 }), i("div", Jn, [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: E(() => [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: E(() => [(e(true), a(w, null, j(f2.value, (l3) => (e(), t(d(Rt), { key: l3.id, value: l3, as: "template" }, { default: E(({ 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), [[L, l2.error]])]), _: 1 }, 8, ["modelValue"]));
|
|
2171
2171
|
} }), ea = { key: 1, class: "inline-flex items-center px-3 py-2.5 rounded text-xs font-medium leading-none animate-pulse bg-gray-200" }, ta = [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12" }, null, -1)], la = { name: "uiTag" }, na = Object.assign(la, { props: { color: { type: String, default: "primary" }, loading: { type: Boolean, default: true } }, setup: (t2) => (l2, o2) => t2.loading ? (e(), a("div", ea, ta)) : (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)) }), aa = { key: 0 }, oa = { key: 0, class: "block text-sm font-medium text-gray-700" }, ra = ["disabled", "placeholder"], ia = { key: 1, class: "animate-pulse" }, sa = [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)], ua = { name: "uiTextArea" }, da = Object.assign(ua, { 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 }) {
|
|
2172
2172
|
const r2 = l2, u2 = t2, c2 = (e2) => {
|
|
2173
2173
|
r2("inputChanged", e2.target.value);
|
|
2174
2174
|
}, g2 = s(u2.value);
|
|
2175
2175
|
return p(() => u2.value, (e2) => {
|
|
2176
2176
|
g2.value = e2, r2("inputChanged", e2);
|
|
2177
|
-
}), (l3, r3) => t2.loading ? (e(), a("div", ia, sa)) : (e(), a("div", aa, [t2.label ? (e(), a("label", oa, _(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, ra), [[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(K, { icon: d(
|
|
2178
|
-
} }), ca = { class: "text-sm font-medium text-gray-900" }, pa = { key: 0, class: "text-sm text-gray-500 ml-2" }, ga = { key: 1, class: "animate-pulse flex items-center" },
|
|
2177
|
+
}), (l3, r3) => t2.loading ? (e(), a("div", ia, sa)) : (e(), a("div", aa, [t2.label ? (e(), a("label", oa, _(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, ra), [[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(K, { icon: d(mn), color: "red", class: "mr-2" }, null, 8, ["icon"]), I(_(t2.error), 1)], 2), [[L, t2.error]])]));
|
|
2178
|
+
} }), ca = { class: "text-sm font-medium text-gray-900" }, pa = { key: 0, class: "text-sm text-gray-500 ml-2" }, ga = { key: 1, class: "animate-pulse flex items-center" }, fa = [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)], ma = { name: "uiToggle" }, va = Object.assign(ma, { props: { item: { type: Object, required: true }, checked: { type: Boolean, default: false }, disabled: { type: Boolean, default: false }, loading: { type: Boolean, default: true } }, setup(l2) {
|
|
2179
2179
|
const r2 = s(l2.checked);
|
|
2180
|
-
return (s2, u2) => l2.loading ? (e(), a("div", ga,
|
|
2181
|
-
} }), ha = { key: 0, class: "flex flex-col" }, ya = { class: "flex" }, ba = { class: "flex-shrink-0" }, xa = { class: "ml-3" }, wa = { class: "mt-4" }, ka = { class: "-mx-2 -my-1.5 flex" }, Sa = ["onClick"], Ca = { key: 1, class: "flex flex-col animate-pulse" }, Oa = [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)], Ma = { name: "uiAlert" },
|
|
2180
|
+
return (s2, u2) => l2.loading ? (e(), a("div", ga, fa)) : (e(), t(d(Bl), { key: 0, as: "div", class: "flex items-center relative" }, { default: E(() => [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: E(() => [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(Ll), { as: "span", class: "ml-3" }, { default: E(() => [i("span", ca, _(l2.item.title), 1), l2.item.subtitle ? (e(), a("span", pa, _(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 }));
|
|
2181
|
+
} }), ha = { key: 0, class: "flex flex-col" }, ya = { class: "flex" }, ba = { class: "flex-shrink-0" }, xa = { class: "ml-3" }, wa = { class: "mt-4" }, ka = { class: "-mx-2 -my-1.5 flex" }, Sa = ["onClick"], Ca = { key: 1, class: "flex flex-col animate-pulse" }, Oa = [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)], Ma = { name: "uiAlert" }, Da = Object.assign(Ma, { 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", Ca, Oa)) : (e(), a("div", ha, [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", ya, [i("div", ba, ["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(mn), { 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", xa, [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", wa, [i("div", ka, [(e(true), a(w, 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, Sa))), 128))])])])])], 2)])) }), Ta = { key: 0, class: "inline-flex", "aria-label": "Breadcrumb" }, Ea = { role: "list", class: "flex items-center space-x-4 text-xs" }, Ia = { key: 0 }, _a = ["onClick"], Pa = { key: 1, class: "flex items-center" }, ja = ["onClick", "aria-current"], Ra = { key: 1, class: "flex flex-row items-center animate-pulse" }, Ba = [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)], Aa = { name: "uiBreadcrumbs" }, La = Object.assign(Aa, { props: { pages: { type: Array, required: true }, loading: { type: Boolean, default: true } }, setup: (t2) => (l2, r2) => t2.loading ? (e(), a("div", Ra, Ba)) : (e(), a("nav", Ta, [i("ol", Ea, [(e(true), a(w, null, j(t2.pages, (t3, r3) => (e(), a("li", { key: r3 }, [0 === r3 ? (e(), a("div", Ia, [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, _a)])) : (e(), a("div", Pa, [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, ja)]))]))), 128))])])) }), Fa = { class: "flex items-center flex-col sm:flex-row justify-center sm:justify-start" }, Na = ["src"], za = { class: "font-bold text-center sm:text-left" }, $a = { class: "mt-1 text-xs text-center sm:text-left" }, Ha = { key: 0, class: "flex flex-wrap mt-4 justify-center sm:justify-start" }, Va = { key: 1, class: "rounded-lg bg-white shadow p-6 cursor-pointer animate-pulse" }, Ya = [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)], Ua = { name: "uiCard" }, qa = Object.assign(Ua, { 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) => {
|
|
2182
2182
|
var _a2;
|
|
2183
2183
|
return l2.loading ? (e(), a("div", Va, Ya)) : (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", Fa, [i("img", { class: "w-16 h-16 rounded-full mb-4 sm:mb-0 sm:mr-4", src: l2.logo }, null, 8, Na), i("div", null, [i("h4", za, _(l2.name), 1), i("p", $a, _(l2.type), 1)])]), ((_a2 = l2.tags) == null ? void 0 : _a2.length) > 0 ? (e(), a("div", Ha, [(e(true), a(w, null, j(l2.tags, (n3) => (e(), t(na, { class: "mb-1 mr-1", key: n3.name, color: n3.color, loading: l2.loading }, { default: E(() => [I(_(n3.name), 1)]), _: 2 }, 1032, ["color", "loading"]))), 128))])) : R("", true)]));
|
|
2184
2184
|
} }), Wa = { name: "uiFilter" }, Ka = Object.assign(Wa, { 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 }) {
|
|
@@ -2193,10 +2193,10 @@ const hn = { class: "py-1" }, yn = ["onClick"], bn = { key: 1, class: "animate-p
|
|
|
2193
2193
|
c2("modalAction", { modal: u2.modalName, action: e2 });
|
|
2194
2194
|
};
|
|
2195
2195
|
return (s3, u3) => (e(), t(d(Zl), { as: "template", show: l2.open }, { default: E(() => [o(d(dl), { as: "div", class: "relative z-10", onClose: u3[1] || (u3[1] = (e2) => p2("close")) }, { default: E(() => [o(d(Jl), { 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: E(() => [Ja]), _: 1 }), i("div", Ga, [i("div", Za, [o(d(Jl), { 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: E(() => [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: E(() => [i("div", Xa, [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")) }, [Qa, o(K, { icon: d(vn), "aria-hidden": "true", loading: l2.loading }, null, 8, ["icon", "loading"])])]), i("div", eo, [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(vn), { class: "h-6 w-6 text-red-600", "aria-hidden": "true" }, null, 512), [[L, "danger" === l2.type]]), B(o(d(ln), { class: "h-6 w-6 text-green-600", "aria-hidden": "true" }, null, 512), [[L, "success" === l2.type]]), B(o(d(un), { class: "h-6 w-6 text-yellow-600", "aria-hidden": "true" }, null, 512), [[L, "warning" === l2.type]]), B(o(d(dn), { class: "h-6 w-6 text-indigo-600", "aria-hidden": "true" }, null, 512), [[L, "default" === l2.type]])], 2), i("div", to, [o(d(pl), { as: "h3", class: "text-lg font-medium leading-6 text-gray-900" }, { default: E(() => [I(_(l2.title), 1)]), _: 1 }), i("div", lo, [r(s3.$slots, "default")]), l2.actions ? (e(), a("div", no, [(e(true), a(w, 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, ao))), 128))])) : R("", true)])])]), _: 3 })]), _: 3 })])])]), _: 3 })]), _: 3 }, 8, ["show"]));
|
|
2196
|
-
} }), io = { class: "w-full flex flex-col items-center space-y-4 sm:items-end" }, so = { 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" }, uo = { class: "p-4" }, co = { class: "flex items-start" }, po = { class: "flex-shrink-0 mt-0.5" }, go = { class: "ml-3 w-0 flex-1 pt-0.5" },
|
|
2196
|
+
} }), io = { class: "w-full flex flex-col items-center space-y-4 sm:items-end" }, so = { 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" }, uo = { class: "p-4" }, co = { class: "flex items-start" }, po = { class: "flex-shrink-0 mt-0.5" }, go = { class: "ml-3 w-0 flex-1 pt-0.5" }, fo = { class: "font-medium text-gray-900" }, mo = { class: "mt-1 text-sm text-gray-500" }, vo = { class: "ml-4 flex-shrink-0 flex" }, ho = i("span", { class: "sr-only" }, "Close", -1), yo = { name: "uiNotification" }, bo = Object.assign(yo, { props: { show: Boolean, type: { type: String, default: "info" }, title: String, message: String, fixed: { type: Boolean, default: true } }, setup(t2) {
|
|
2197
2197
|
const l2 = t2, r2 = u(() => l2.show);
|
|
2198
|
-
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", io, [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: E(() => [r2.value ? (e(), a("div", so, [i("div", uo, [i("div", co, [i("div", po, [B(o(d(tn), { "aria-hidden": "true", class: "h-6 w-6 text-green-400" }, null, 512), [[L, "success" === t2.type]]), B(o(d(
|
|
2199
|
-
} }), xo = { key: 0, role: "list", class: "divide-y divide-gray-100" }, wo = { class: "min-w-0" }, ko = { class: "flex items-start gap-x-3" }, So = { class: "text-sm font-semibold leading-6 text-gray-900" }, Co = { class: "mt-1 flex items-center gap-x-2 text-xs leading-5 text-gray-500" }, Oo = { class: "truncate" }, Mo = { class: "flex flex-none items-center gap-x-4" },
|
|
2198
|
+
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", io, [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: E(() => [r2.value ? (e(), a("div", so, [i("div", uo, [i("div", co, [i("div", po, [B(o(d(tn), { "aria-hidden": "true", class: "h-6 w-6 text-green-400" }, null, 512), [[L, "success" === t2.type]]), B(o(d(mn), { "aria-hidden": "true", class: "h-6 w-6 text-red-400" }, null, 512), [[L, "danger" === t2.type]]), B(o(d(un), { "aria-hidden": "true", class: "h-6 w-6 text-yellow-400" }, null, 512), [[L, "warning" === t2.type]]), B(o(d(pn), { "aria-hidden": "true", class: "h-6 w-6 text-indigo-600" }, null, 512), [[L, "info" === t2.type]])]), i("div", go, [i("p", fo, _(t2.title), 1), i("p", mo, _(t2.message), 1)]), i("div", vo, [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")) }, [ho, o(d(vn), { "aria-hidden": "true", class: "h-5 w-5" })])])])])])) : R("", true)]), _: 1 })])], 2));
|
|
2199
|
+
} }), xo = { key: 0, role: "list", class: "divide-y divide-gray-100" }, wo = { class: "min-w-0" }, ko = { class: "flex items-start gap-x-3" }, So = { class: "text-sm font-semibold leading-6 text-gray-900" }, Co = { class: "mt-1 flex items-center gap-x-2 text-xs leading-5 text-gray-500" }, Oo = { class: "truncate" }, Mo = { class: "flex flex-none items-center gap-x-4" }, Do = ["href"], To = { class: "sr-only" }, Eo = { key: 1, class: "divide-y divide-gray-100 animate-pulse" }, Io = [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)], _o = { name: "uiTaskList" }, Po = Object.assign(_o, { props: { tasks: { type: Array, required: true }, loading: { type: Boolean, default: true } }, setup: (t2) => (l2, o2) => t2.loading ? (e(), a("ul", Eo, [(e(true), a(w, null, j(t2.tasks, (t3) => (e(), a("li", { key: t3.id, class: "flex items-center justify-between gap-x-6 py-5" }, Io))), 128))])) : (e(), a("ul", xo, [(e(true), a(w, null, j(t2.tasks, (t3) => (e(), a("li", { key: t3.id, class: "flex items-center justify-between gap-x-6 py-5" }, [i("div", wo, [i("div", ko, [i("p", So, _(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", Co, [i("p", Oo, _(t3.description), 1)])]), i("div", Mo, [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, Do)])]))), 128))])) });
|
|
2200
2200
|
"undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self && self;
|
|
2201
2201
|
function jo(e2) {
|
|
2202
2202
|
return e2 && e2.__esModule && Object.prototype.hasOwnProperty.call(e2, "default") ? e2.default : e2;
|
|
@@ -2260,15 +2260,15 @@ Zo.exports = function(e2, t2, l2) {
|
|
|
2260
2260
|
};
|
|
2261
2261
|
};
|
|
2262
2262
|
const Xo = jo(Zo.exports), Qo = { class: "text-xs" }, er = { class: "font-bold text-lg" }, tr = { class: "text-xs font-medium" };
|
|
2263
|
-
const lr = { name: "
|
|
2264
|
-
return { isWeekend: 6 == Y(this.price.date).format("d") || 0 == Y(this.price.date).format("d"), price: this.price.price };
|
|
2265
|
-
} } }, nr = { class: "priceDay" };
|
|
2266
|
-
const ar = { 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: No, Day: Ro({ name: "calendarDay", props: { day: Object }, computed: { currentDay() {
|
|
2263
|
+
const lr = Ro({ name: "calendarDay", props: { day: Object }, computed: { currentDay() {
|
|
2267
2264
|
return Y.extend(Xo), { 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() };
|
|
2268
2265
|
} } }, [["render", function(t2, l2, o2, r2, s2, u2) {
|
|
2269
2266
|
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", Qo, _(u2.currentDay.dayName), 1), i("p", er, _(u2.currentDay.day), 1), i("p", tr, _(u2.currentDay.month), 1)], 2);
|
|
2270
|
-
}]]),
|
|
2271
|
-
return
|
|
2267
|
+
}]]), nr = { name: "dayPrice", props: { currency: String, price: Object, basePrice: Number, isBasePrice: { type: Boolean, default: false } }, computed: { currentDay() {
|
|
2268
|
+
return { isWeekend: 6 == Y(this.price.date).format("d") || 0 == Y(this.price.date).format("d"), price: this.price.price };
|
|
2269
|
+
} } }, ar = { class: "priceDay" };
|
|
2270
|
+
const or = { 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: No, Day: lr, Price: Ro(nr, [["render", function(t2, l2, o2, r2, s2, u2) {
|
|
2271
|
+
return e(), a("div", ar, [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)]);
|
|
2272
2272
|
}]]), uiButton: Q, SkeletonTable: Go }, computed: { days() {
|
|
2273
2273
|
let e2 = [];
|
|
2274
2274
|
for (let t2 = 0; t2 < this.showDays; t2++)
|
|
@@ -2291,105 +2291,105 @@ const ar = { name: "uiPriceCalendar", data: () => ({ today: /* @__PURE__ */ new
|
|
|
2291
2291
|
this.$emit("tableAction", e2);
|
|
2292
2292
|
}, changeRoomPrice(e2) {
|
|
2293
2293
|
this.$emit("changeRoomPrice", e2);
|
|
2294
|
-
} } },
|
|
2295
|
-
const
|
|
2294
|
+
} } }, rr = { key: 0, class: "px-4 sm:px-6 lg:px-8" }, ir = { class: "flow-root" }, sr = { class: "overflow-x-auto sm:-mx-6 lg:-mx-8 shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg" }, ur = { class: "inline-block min-w-full align-middle" }, dr = { class: "min-w-full text-sm" }, cr = { class: "bg-white" }, pr = { 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" }, gr = { colspan: "20", scope: "colgroup", class: "bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, fr = { key: 0 }, mr = { colspan: "6", class: "pl-4" }, vr = { key: 1 }, hr = { colspan: "6", class: "pl-4" }, yr = { key: 2 }, br = { colspan: "6", class: "pl-4" }, xr = { colspan: "20", scope: "colgroup", class: "bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900 relative" }, wr = { 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" }, kr = ["onClick"], Sr = { colspan: "2", scope: "colgroup", class: "relative bg-gray-100 py-3.5 pl-4 pr-3 text-left font-semibold text-gray-900" }, Cr = ["checked", "indeterminate"], Or = { class: "pl-6" }, Mr = { colspan: "2", scope: "colgroup", class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, Dr = { colspan: "2", scope: "colgroup", class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, Tr = 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), Er = { colspan: "2", class: "relative py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6" }, Ir = { key: 0, class: "absolute inset-y-0 left-0 w-0.5 bg-indigo-600" }, _r = ["value"], Pr = { class: "pl-6" }, jr = { colspan: "2", class: "pl-4" }, Rr = { colspan: "2", class: "pl-4" };
|
|
2295
|
+
const Br = Ro(or, [["render", function(l2, r2, s2, u2, d2, c2) {
|
|
2296
2296
|
var _a2, _b;
|
|
2297
|
-
const p2 = $("DateSelector"), g2 = $("Day"),
|
|
2298
|
-
return s2.loading ? (e(), t(v2, { key: 1 })) : (e(), a("div",
|
|
2299
|
-
}]]),
|
|
2297
|
+
const p2 = $("DateSelector"), g2 = $("Day"), f2 = $("uiButton"), m2 = $("Price"), v2 = $("SkeletonTable");
|
|
2298
|
+
return s2.loading ? (e(), t(v2, { key: 1 })) : (e(), a("div", rr, [i("div", ir, [i("div", sr, [i("div", ur, [i("table", dr, [i("tbody", cr, [i("tr", null, [i("th", pr, [o(p2, { selectedDate: l2.date, onDateSelected: r2[0] || (r2[0] = (e2) => c2.changeDate(e2)) }, null, 8, ["selectedDate"])]), (e(true), a(w, 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", gr, [i("span", null, _(s2.literals.category) + " " + _(s2.category.name), 1), o(f2, { loading: s2.loading, class: "ml-4", size: "small", onClick: c2.changeCategoryBulkPrices }, { default: E(() => [I(_(s2.literals.changeInBulk), 1)]), _: 1 }, 8, ["loading", "onClick"])])]), "discounts" === s2.type ? (e(), a("tr", fr, [i("td", mr, _(s2.literals.pricesDiscount), 1), (e(true), a(w, 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", hr, _(s2.literals.pricesSelection), 1), (e(true), a(w, 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", yr, [i("td", br, _(s2.literals.pricesUpgrade), 1), (e(true), a(w, 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", xr, [((_a2 = l2.selectedRooms) == null ? void 0 : _a2.length) > 0 && ((_b = s2.actions) == null ? void 0 : _b.length) > 0 ? (e(), a("div", wr, [(e(true), a(w, 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, kr))), 128))])) : R("", true), i("span", null, _(s2.literals.pricesSelection), 1)])]), i("tr", null, [i("th", Sr, [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, Cr), i("span", Or, _(s2.literals.room), 1)]), i("th", Mr, _(s2.literals.building), 1), i("th", Dr, _(s2.literals.floor), 1), Tr]), (e(true), a(w, 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", Er, [l2.selectedRooms.includes(t2.name) ? (e(), a("div", Ir)) : 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, _r), [[H, l2.selectedRooms]]), i("span", Pr, _(t2.name), 1)]), i("td", jr, _(t2.building), 1), i("td", Rr, _(t2.floor), 1), (e(true), a(w, 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))])])])])])]));
|
|
2299
|
+
}]]), Ar = { class: "chart-selector flex flex-row items-center justify-center" }, Lr = { name: "rangeSelector" }, Fr = Object.assign(Lr, { props: { range: { type: String } }, emits: ["rangeSelected"], setup(t2, { emit: l2 }) {
|
|
2300
2300
|
const o2 = l2, r2 = t2;
|
|
2301
2301
|
let s2 = u(() => r2.range);
|
|
2302
2302
|
const c2 = (e2) => {
|
|
2303
2303
|
s2.value = e2, o2("rangeSelected", e2);
|
|
2304
2304
|
};
|
|
2305
|
-
return (t3, l3) => (e(), a("ul",
|
|
2306
|
-
} }),
|
|
2305
|
+
return (t3, l3) => (e(), a("ul", Ar, [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)]));
|
|
2306
|
+
} }), Nr = { class: "chart-header flex flex-row justify-between" }, zr = { class: "text-sm font-medium text-gray-500 truncate" }, $r = { class: "chart-content" }, Hr = { class: "h-full w-full flex items-center justify-center flex-col" }, Vr = i("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1), Yr = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, Ur = [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)], qr = { name: "uiChart" }, Wr = Object.assign(qr, { 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 }, annotations: { type: Object } }, emits: ["selectedRange", "chartUpdated", "dataPointSelection"], setup(t2, { emit: l2 }) {
|
|
2307
2307
|
const r2 = l2, s2 = t2;
|
|
2308
2308
|
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: true }, markers: { strokeWidth: 0, size: 4, hover: { size: 8 } } };
|
|
2309
2309
|
s2.annotations && (c2.annotations = { yaxis: [{ y: s2.annotations.high, borderColor: "#4f46e5", label: { borderColor: "#4f46e5", style: { color: "#fff", background: "#4f46e5" }, text: s2.annotations.text } }] }), "area" === s2.type && (c2.tooltip = { intersect: true, shared: false });
|
|
2310
|
-
const p2 = u(() => s2.series), g2 = u(() => (c2.chart.stacked = s2.stacked, { ...c2, ...s2.options, plotOptions: { bar: { horizontal: s2.horizontal } } })),
|
|
2310
|
+
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) => {
|
|
2311
2311
|
r2("dataPointSelection", { id: s2.id, chartContext: t3, config: l3, event: e2 });
|
|
2312
2312
|
};
|
|
2313
|
-
return (l3, r3) => (e(), a(w, 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",
|
|
2314
|
-
} }),
|
|
2315
|
-
const
|
|
2316
|
-
return e(), a("footer",
|
|
2317
|
-
}]]),
|
|
2318
|
-
const c2 = l2, p2 = t2, g2 = s(3),
|
|
2313
|
+
return (l3, r3) => (e(), a(w, 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", Nr, [i("div", zr, _(t2.title), 1), o(Fr, { range: t2.range, onRangeSelected: r3[0] || (r3[0] = (e2) => l3.$emit("selectedRange", { range: e2, chartId: t2.id })) }, null, 8, ["range"])]), B(i("div", $r, [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), [[L, !t2.empty]]), B(i("div", Hr, [o(K, { icon: d(un), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), Vr], 512), [[L, t2.empty]])], 2), [[L, !t2.loading]]), B(i("div", Yr, Ur, 512), [[L, t2.loading]])], 64));
|
|
2314
|
+
} }), Kr = { name: "uiFooter" }, Jr = { class: "bg-white" }, Gr = [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)];
|
|
2315
|
+
const Zr = Ro(Kr, [["render", function(t2, l2, n2, o2, r2, i2) {
|
|
2316
|
+
return e(), a("footer", Jr, Gr);
|
|
2317
|
+
}]]), Xr = i("div", { class: "spinner h-12 w-12 mb-6" }, [i("img", { src: "https://images.hotelinking.com/ui/loader.gif", alt: "loading animation" })], -1), Qr = { name: "uiLoadScreen" }, ei = Object.assign(Qr, { 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"]) }, [Xr, B(i("h2", { class: "text-xs font-bold text-center uppercase mb-2" }, _(t2.title), 513), [[L, t2.title]]), B(i("p", { class: "text-xs text-center uppercase md:w-1/4" }, _(t2.message), 513), [[L, t2.message]])], 2)) }), ti = { key: 0, class: "py-6 flex items-center justify-between" }, li = { class: "flex-1 flex justify-between sm:hidden" }, ni = { 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" }, ai = { 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" }, oi = { class: "hidden sm:flex-1 sm:flex sm:items-center sm:justify-between" }, ri = { class: "text-sm text-gray-700" }, ii = { class: "font-bold" }, si = { class: "font-bold" }, ui = { class: "relative z-0 inline-flex rounded-md shadow-sm -space-x-px", "aria-label": "Pagination" }, di = { class: "sr-only" }, ci = ["onClick"], pi = { class: "sr-only" }, gi = { key: 1, class: "py-6 flex flex-row justify-between items-center animate-pulse" }, fi = [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)], mi = { name: "uiPagination" }, vi = Object.assign(mi, { props: { current: { type: Number, requires: true }, total: { type: Number, requires: true }, loading: { type: Boolean, default: true } }, emits: ["changePage"], setup(t2, { emit: l2 }) {
|
|
2318
|
+
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(() => {
|
|
2319
2319
|
let e2 = [];
|
|
2320
|
-
for (let t3 = Number(
|
|
2320
|
+
for (let t3 = Number(f2.value); t3 <= Number(m2.value); t3++)
|
|
2321
2321
|
e2.push(t3);
|
|
2322
2322
|
return e2;
|
|
2323
2323
|
});
|
|
2324
|
-
return (l3, s2) => t2.loading ? (e(), a("div",
|
|
2325
|
-
} }),
|
|
2324
|
+
return (l3, s2) => t2.loading ? (e(), a("div", gi, fi)) : (e(), a("div", ti, [i("div", li, [i("a", ni, [r(l3.$slots, "previous")]), i("a", ai, [r(l3.$slots, "next")])]), i("div", oi, [i("div", null, [i("p", ri, [r(l3.$slots, "showing"), I(), i("span", ii, _(t2.current + " "), 1), r(l3.$slots, "of"), I(), i("span", si, _(t2.total), 1)])]), i("div", null, [i("nav", ui, [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", di, [r(l3.$slots, "previous")]), o(d(an), { class: "h-5 w-5", "aria-hidden": "true" })], 512), [[L, 1 !== t2.current]]), (e(true), a(w, 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, ci))), 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", pi, [r(l3.$slots, "next")]), o(d(on), { class: "h-5 w-5", "aria-hidden": "true" })], 512), [[L, t2.current !== t2.total]])])])])]));
|
|
2325
|
+
} }), hi = { class: "hidden md:flex md:flex-col sticky md:inset-y-0" }, yi = { class: "flex flex-col flex-grow overflow-y-auto" }, bi = { class: "grow flex flex-col" }, xi = { class: "flex-1 space-y-1", "aria-label": "Sidebar" }, wi = { key: 0 }, ki = ["onClick"], Si = { key: 0, class: "text-left" }, Ci = { key: 0, class: "flex-1 text-left" }, Oi = { key: 1, class: "flex-1" }, Mi = [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1)], Di = { key: 0, class: "align-left" }, Ti = { key: 1, class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, Ei = { class: "h-12 flex flex-row items-center" }, Ii = [i("div", { class: "w-6 h-6 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 mr-4" }, null, -1), i("div", { class: "h-3 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 grow" }, null, -1)], _i = { name: "uiSidebar" }, Pi = Object.assign(_i, { props: { navigation: { type: Array, required: true }, loading: { type: Boolean, default: true } }, emits: ["sideBarClick"], setup(l2, { emit: r2 }) {
|
|
2326
2326
|
const s2 = r2;
|
|
2327
|
-
return (r3, u2) => (e(), a("div",
|
|
2328
|
-
} }),
|
|
2327
|
+
return (r3, u2) => (e(), a("div", hi, [i("div", yi, [i("div", bi, [i("nav", xi, [l2.loading ? (e(), a(w, { key: 1 }, j(5, (e2) => i("div", Ei, Ii)), 64)) : (e(true), a(w, { key: 0 }, j(l2.navigation, (r4) => (e(), a(w, { key: r4.name }, [r4.children ? (e(), t(d(hl), { key: 1, as: "div", class: "space-y-1" }, { default: E(({ 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: E(() => [o(K, { 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", Oi, Mi)) : (e(), a("span", Ci, _(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(bl), { class: "space-y-1" }, { default: E(() => [(e(true), a(w, null, j(r4.children, (o2) => (e(), t(d(yl), { onClick: (e2) => s2("sideBarClick", o2.id), key: o2.name, class: n([o2.current ? "bg-indigo-200 text-white" : "hover:text-gray-900 hover:bg-gray-100", "group text-gray-600 w-full flex items-center text-left pl-11 pr-2 py-2 text-sm font-medium rounded-md"]) }, { default: E(() => [l2.loading ? (e(), a("div", Ti)) : (e(), a("span", Di, _(o2.name), 1))]), _: 2 }, 1032, ["onClick", "class"]))), 128))]), _: 2 }, 1024)]), _: 2 }, 1024)) : (e(), a("div", wi, [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(K, { 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 ? R("", true) : (e(), a("span", Si, _(r4.name), 1))], 10, ki)]))], 64))), 128))])])])]));
|
|
2328
|
+
} }), ji = { key: 0 }, Ri = { class: "ml-16 text-sm font-medium text-gray-500 truncate" }, Bi = { class: "ml-16 flex items-baseline pb-5" }, Ai = { class: "text-2xl font-semibold text-gray-900" }, Li = { key: 0, class: "text-black ml-2 flex items-baseline text-sm font-semibold" }, Fi = { class: "absolute bottom-0 inset-x-0 bg-gray-50 px-4 py-4 sm:px-6" }, Ni = { class: "text-sm" }, zi = { key: 1 }, $i = { class: "relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full pb-6" }, Hi = { class: "absolute bg-gray-200 rounded-md p-3 animate-pulse" }, Vi = 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), Yi = 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), Ui = { name: "uiStats" }, qi = Object.assign(Ui, { props: { item: { type: Object, required: true }, loading: { type: Boolean, default: true } }, emits: ["statClick"], setup(l2, { emit: r2 }) {
|
|
2329
2329
|
const s2 = r2;
|
|
2330
|
-
return (r3, u2) => l2.loading ? (e(), a("div",
|
|
2331
|
-
} }),
|
|
2330
|
+
return (r3, u2) => l2.loading ? (e(), a("div", zi, [i("div", $i, [i("dt", null, [i("div", Hi, [o(K, { loading: l2.loading, icon: l2.item.icon, class: "h-6 w-6 text-white", "aria-hidden": "true" }, null, 8, ["loading", "icon"])]), Vi, Yi])])])) : (e(), a("div", ji, [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(K, { icon: l2.item.icon, class: "h-6 w-6 text-white", "aria-hidden": "true", loading: l2.loading }, null, 8, ["icon", "loading"])], 2), i("p", Ri, _(l2.item.name), 1)]), i("dd", Bi, [i("p", Ai, _(l2.item.stat), 1), l2.item.explanation ? (e(), a("p", Li, _(l2.item.explanation), 1)) : R("", true), l2.item.changeType ? (e(), a("p", { key: 1, 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(Ql), { 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(Xl), { 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", Fi, [i("div", Ni, [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), [[L, l2.item.showFooter]])])], 2)]));
|
|
2331
|
+
} }), Wi = { key: 0, class: "overflow-hidden bg-white shadow sm:rounded-lg" }, Ki = { class: "px-4 py-5 sm:px-6" }, Ji = { class: "text-lg font-medium leading-6 text-gray-900" }, Gi = { class: "mt-1 max-w-2xl text-sm text-gray-500" }, Zi = { class: "border-t border-gray-200" }, Xi = { class: "text-sm font-medium text-gray-500" }, Qi = { key: 0, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal" }, es = { key: 1, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal" }, ts = ["onClick"], ls = { key: 3, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-words" }, ns = { key: 1, class: "overflow-hidden bg-white shadow sm:rounded-lg" }, as = 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), os = { class: "border-t border-gray-200" }, rs = [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)], is = { name: "uiStripedCard" }, ss = Object.assign(is, { 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", ns, [as, i("div", os, [i("dl", null, [(e(), a(w, 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"]]) }, rs, 2)), 64))])])])) : (e(), a("div", Wi, [i("div", Ki, [i("h3", Ji, _(l2.title), 1), i("p", Gi, _(l2.subtitle), 1)]), i("div", Zi, [i("dl", null, [(e(true), a(w, 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", Xi, _(s3.title), 1), "tag" === s3.type ? (e(), a("dd", Qi, [o(na, { color: s3.color }, { default: E(() => [I(_(s3.text), 1)]), _: 2 }, 1032, ["color"])])) : "tags" === s3.type ? (e(), a("dd", es, [(e(true), a(w, null, j(s3.tags, (n2, a2) => (e(), t(na, { loading: l2.loading, key: a2, color: n2.color, class: "mr-2 mb-2" }, { default: E(() => [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, ts)) : (e(), a("dd", ls, _(s3.text), 1))], 2))), 128))])])])) }), us = { 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" }, ds = 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), cs = { class: "ml-2" }, ps = { __name: "tooltip", props: { tip: { type: String, required: true } }, setup: (t2) => (l2, n2) => (e(), a("div", us, [ds, i("div", null, [o(K, { icon: d(gn), loading: false, color: "white", size: "big" }, null, 8, ["icon"])]), i("span", cs, _(t2.tip), 1)])) }, gs = { key: 0 }, fs = { class: "flex flex-col" }, ms = { class: "-my-2 overflow-x-auto" }, vs = { class: "inline-block min-w-full py-2 align-middle px-1" }, hs = { class: "relative overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg" }, ys = { 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" }, bs = ["onClick"], xs = { class: "min-w-full table-fixed divide-y divide-gray-300" }, ws = { class: "bg-gray-50" }, ks = ["checked", "indeterminate"], Ss = ["onMouseover", "onMouseleave"], Cs = ["onClick"], Os = { key: 2, class: "group flex items-center uppercase text-xs" }, Ms = { class: "divide-y divide-gray-200 bg-white" }, Ds = { key: 0, class: "absolute inset-y-0 left-0 w-0.5 bg-indigo-600" }, Ts = ["value"], Es = ["onClick"], Is = ["href"], _s = { key: 3 }, Ps = { name: "uiTable" }, js = Object.assign(Ps, { 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 }) {
|
|
2332
2332
|
let c2 = s([]);
|
|
2333
2333
|
s(false);
|
|
2334
2334
|
let p2 = s(void 0);
|
|
2335
|
-
const g2 = r2,
|
|
2335
|
+
const g2 = r2, f2 = l2, m2 = u(() => c2.value.length > 0 && c2.value.length < f2.items.length), v2 = (e2, t2) => {
|
|
2336
2336
|
p2 !== e2 && t2 && (p2.value = e2), t2 || (p2.value = void 0);
|
|
2337
2337
|
};
|
|
2338
2338
|
return (r3, s2) => {
|
|
2339
2339
|
var _a2, _b;
|
|
2340
|
-
return l2.loading ? (e(), t(Go, { key: 1 })) : (e(), a("div",
|
|
2340
|
+
return l2.loading ? (e(), t(Go, { key: 1 })) : (e(), a("div", gs, [i("div", fs, [i("div", ms, [i("div", vs, [i("div", hs, [((_a2 = d(c2)) == null ? void 0 : _a2.length) > 0 && ((_b = l2.actions) == null ? void 0 : _b.length) > 0 ? (e(), a("div", ys, [(e(true), a(w, 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, bs))), 128))])) : R("", true), i("table", xs, [i("thead", ws, [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, ks)) : R("", true)], 2), (e(true), a(w, 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(ps, { key: 0, tip: r4.tooltip }, null, 8, ["tip"])), [[L, 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(K, { 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, Cs)) : (e(), a("p", Os, [i("span", null, _(r4.name), 1)]))], 40, Ss))), 128))])]), i("tbody", Ms, [(e(true), a(w, null, j(l2.items, (o2, r4) => {
|
|
2341
2341
|
var _a3, _b2;
|
|
2342
|
-
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",
|
|
2342
|
+
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", Ds)) : 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, Ts)), [[H, d(c2)]]) : R("", true)], 2), (e(true), a(w, 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(na, { key: 0, loading: l2.loading, color: r5.color }, { default: E(() => [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, Es)) : "object" == typeof r5 && "href" === r5.type ? (e(), a("a", { key: 2, class: "text-indigo-600 hover:text-indigo-400 cursor-pointer", href: r5.href, target: "_blank" }, _(r5.content), 9, Is)) : (e(), a("span", _s, _(r5), 1))], 2))), 128))], 2);
|
|
2343
2343
|
}), 128))])])])])])])]));
|
|
2344
2344
|
};
|
|
2345
|
-
} }),
|
|
2345
|
+
} }), Rs = { class: "lg:hidden" }, Bs = ["value"], As = { class: "hidden lg:block" }, Ls = { class: "border-b border-gray-200" }, Fs = { class: "-mb-px flex space-x-8", "aria-label": "Tabs" }, Ns = ["onClick", "aria-current"], zs = { name: "uiTabs" }, $s = Object.assign(zs, { props: { tabs: Array }, emits: ["tabClicked"], setup(t2, { emit: l2 }) {
|
|
2346
2346
|
const o2 = l2;
|
|
2347
|
-
return (l3, r2) => (e(), a("div", null, [i("div",
|
|
2347
|
+
return (l3, r2) => (e(), a("div", null, [i("div", Rs, [i("select", { onChange: r2[0] || (r2[0] = (e2) => {
|
|
2348
2348
|
o2("tabClicked", e2.target.value);
|
|
2349
|
-
}), 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(w, null, j(t2.tabs, (t3) => (e(), a("option", { value: t3.id, key: t3.name }, _(t3.name), 9,
|
|
2350
|
-
} }),
|
|
2349
|
+
}), 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(w, null, j(t2.tabs, (t3) => (e(), a("option", { value: t3.id, key: t3.name }, _(t3.name), 9, Bs))), 128))], 32)]), i("div", As, [i("div", Ls, [i("nav", Fs, [(e(true), a(w, 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, Ns))), 128))])])])]));
|
|
2350
|
+
} }), Hs = { key: 0, class: "bg-white overflow-hidden shadow rounded-lg" }, Vs = { class: "px-4 py-5 sm:px-6" }, Ys = { class: "text-xl font-bold" }, Us = { class: "px-4 py-5 sm:p-6" }, qs = { class: "flow-root" }, Ws = { class: "-mb-8", role: "list" }, Ks = { class: "relative pb-8" }, Js = { key: 0, class: "absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200", "aria-hidden": "true" }, Gs = { class: "relative flex space-x-3" }, Zs = { class: "min-w-0 flex-1 pt-1.5 flex justify-between space-x-4 items-center" }, Xs = { class: "text-sm text-gray-500" }, Qs = ["onClick"], eu = { class: "text-right text-sm whitespace-nowrap text-gray-500" }, tu = ["datetime"], lu = { class: "bg-gray-50 px-4 py-4 sm:px-6 z-10" }, nu = { class: "text-sm" }, au = { class: "h-full w-full flex items-center justify-center flex-col mb-5" }, ou = i("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1), ru = { key: 1, class: "bg-white overflow-hidden shadow rounded-lg" }, iu = 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), su = { class: "px-4 py-5 sm:p-6 animate-pulse" }, uu = { class: "flow-root" }, du = { class: "-mb-8", role: "list" }, cu = { class: "relative pb-8" }, pu = { key: 0, class: "absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200", "aria-hidden": "true" }, gu = 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), fu = 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), mu = { name: "uiTimeline" }, vu = Object.assign(mu, { props: { name: { type: String, required: true }, timeline: { type: Object }, loading: { type: Boolean, default: true }, empty: { type: Boolean, default: false } }, setup: (t2) => (l2, r2) => {
|
|
2351
2351
|
const s2 = $("uiIcon");
|
|
2352
|
-
return t2.loading ? (e(), a("div",
|
|
2353
|
-
} }),
|
|
2352
|
+
return t2.loading ? (e(), a("div", ru, [iu, i("div", su, [i("div", uu, [i("ul", du, [(e(), a(w, null, j(10, (t3) => i("li", { key: l2.index }, [i("div", cu, [10 !== t3 ? (e(), a("span", pu)) : R("", true), gu])])), 64))])])]), fu])) : (e(), a("div", Hs, [i("div", Vs, [i("h1", Ys, _(t2.name), 1)]), B(i("div", Us, [i("div", qs, [i("ul", Ws, [(e(true), a(w, null, j(t2.timeline.items, (r3, u2) => (e(), a("li", { key: u2 }, [i("div", Ks, [u2 !== t2.timeline.items.length - 1 ? (e(), a("span", Js)) : R("", true), i("div", Gs, [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", Zs, [i("div", null, [i("p", Xs, [i("a", { onClick: (e2) => l2.$emit("timelineEventClicked", r3.linkId), class: "font-medium text-indigo-600 hover:text-indigo-800 cursor-pointer" }, _(r3.target), 9, Qs), I(" " + _(r3.content), 1)])]), i("div", eu, [i("time", { datetime: r3.datetime }, _(r3.date), 9, tu)])])])])]))), 128))])])], 512), [[L, !t2.empty]]), B(i("div", lu, [i("div", nu, [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), [[L, !t2.empty]]), B(i("div", au, [o(K, { icon: d(un), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), ou], 512), [[L, t2.empty]])]));
|
|
2353
|
+
} }), hu = { name: "uiTopbar", props: ["navigation", "logo", "profileMenu", "brand", "accountLogo", "alerted"], components: { Disclosure: hl, DisclosureButton: yl, DisclosurePanel: bl, Menu: Dl, MenuButton: Tl, MenuItem: Il, MenuItems: El, Bars3Icon: function(t2, l2) {
|
|
2354
2354
|
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" })]);
|
|
2355
|
-
}, XMarkIcon: vn } },
|
|
2356
|
-
const
|
|
2357
|
-
const p2 = $("Bars3Icon"), g2 = $("XMarkIcon"),
|
|
2358
|
-
return e(), t(x2, { as: "nav", class: "bg-white shadow z-10" }, { default: E(({ open: u3 }) => [i("div",
|
|
2359
|
-
}]]),
|
|
2355
|
+
}, XMarkIcon: vn } }, yu = { class: "mx-auto px-6 lg:px-8" }, bu = { class: "flex justify-between h-20" }, xu = { class: "flex" }, wu = { class: "-ml-2 mr-2 flex items-center lg:hidden" }, ku = i("span", { class: "sr-only" }, "Open main menu", -1), Su = ["src"], Cu = { class: "flex items-center" }, Ou = { class: "lg:ml-4 lg:flex-shrink-0 lg:flex lg:items-center hidden" }, Mu = { class: "redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute -top-0 -left-1" }, Du = [i("span", { class: "animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75" }, null, -1)], Tu = ["src"], Eu = ["onClick"], Iu = { class: "pt-2 pb-3 space-y-1" }, _u = ["onClick"], Pu = { class: "pt-4 pb-3 border-t border-gray-200" }, ju = { class: "flex items-center px-4 sm:px-6" }, Ru = { class: "flex-shrink-0" }, Bu = ["src"], Au = { key: 0, class: "ml-3" }, Lu = { class: "text-base font-medium text-gray-800" }, Fu = { class: "text-sm font-medium text-gray-500" }, Nu = { class: "mt-3 space-y-1" }, zu = ["onClick"];
|
|
2356
|
+
const $u = Ro(hu, [["render", function(l2, r2, s2, u2, d2, c2) {
|
|
2357
|
+
const p2 = $("Bars3Icon"), g2 = $("XMarkIcon"), f2 = $("DisclosureButton"), m2 = $("MenuButton"), v2 = $("MenuItem"), h2 = $("MenuItems"), y2 = $("Menu"), b2 = $("DisclosurePanel"), x2 = $("Disclosure");
|
|
2358
|
+
return e(), t(x2, { as: "nav", class: "bg-white shadow z-10" }, { default: E(({ open: u3 }) => [i("div", yu, [i("div", bu, [i("div", xu, [i("div", wu, [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: E(() => [ku, 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, Su)])]), i("div", Cu, [i("div", Ou, [o(y2, { as: "div", class: "ml-3 relative" }, { default: E(() => [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: E(() => [B(i("div", Mu, Du, 512), [[L, s2.alerted]]), i("img", { class: "h-10 w-10 rounded-full", src: s2.accountLogo }, null, 8, Tu)]), _: 1 }, 512), [[L, 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: E(() => [o(h2, { 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: E(() => [(e(true), a(w, null, j(s2.profileMenu, (a2) => (e(), t(v2, { key: a2.name }, { default: E(({ 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, Eu)]), _: 2 }, 1024))), 128))]), _: 1 })]), _: 1 })]), _: 1 })])])])]), o(b2, { class: "lg:hidden" }, { default: E(() => [i("div", Iu, [(e(true), a(w, 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: E(() => [i("p", { onClick: (e2) => l2.$emit("topBarClick", a2.id) }, _(a2.name), 9, _u)]), _: 2 }, 1032, ["class"]))), 128))]), i("div", Pu, [i("div", ju, [i("div", Ru, [i("img", { class: "h-10 w-10 rounded-full", src: s2.accountLogo }, null, 8, Bu)]), s2.brand ? (e(), a("div", Au, [i("div", Lu, _(s2.brand.title), 1), i("div", Fu, _(s2.brand.subtitle), 1)])) : R("", true)]), i("div", Nu, [(e(true), a(w, 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: E(() => [i("p", { onClick: (e2) => l2.$emit("topBarClick", n2.id) }, _(n2.name), 9, zu)]), _: 2 }, 1024))), 128))])])]), _: 1 })]), _: 1 });
|
|
2359
|
+
}]]), Hu = { chart: { type: "bar", toolbar: { show: false }, zoom: { enabled: false } }, colors: ["#715aff"], dataLabels: { enabled: true, formatter: function(e2, t2) {
|
|
2360
2360
|
return t2.w.globals.labels[t2.dataPointIndex] + ": " + e2;
|
|
2361
|
-
} }, markers: { strokeWidth: 0, size: 4, hover: { size: 8 } }, plotOptions: { bar: { borderRadius: 0, horizontal: true, barHeight: "80%", isFunnel: true } } },
|
|
2362
|
-
const r2 = l2, s2 = t2, c2 = u(() => ({ ...s2.options,
|
|
2361
|
+
} }, markers: { strokeWidth: 0, size: 4, hover: { size: 8 } }, plotOptions: { bar: { borderRadius: 0, horizontal: true, barHeight: "80%", isFunnel: true } } }, Vu = { class: "chart-header flex flex-row justify-between" }, Yu = { class: "text-sm font-medium text-gray-500 truncate" }, Uu = { class: "chart-content" }, qu = { class: "h-full w-full flex items-center justify-center flex-col" }, Wu = i("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1), Ku = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, Ju = [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)], Gu = { name: "uiChart" }, Zu = Object.assign(Gu, { 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 }) {
|
|
2362
|
+
const r2 = l2, s2 = t2, c2 = u(() => ({ ...s2.options, ...Hu })), p2 = u(() => s2.series), g2 = () => r2("chartUpdated"), f2 = (e2, t3, l3) => {
|
|
2363
2363
|
r2("dataPointSelection", { id: s2.id, chartContext: t3, config: l3, event: e2 });
|
|
2364
2364
|
};
|
|
2365
|
-
return (l3, r3) => (e(), a(w, 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",
|
|
2366
|
-
} }),
|
|
2365
|
+
return (l3, r3) => (e(), a(w, 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", Vu, [i("div", Yu, _(t2.title), 1), o(Fr, { range: t2.range, onRangeSelected: r3[0] || (r3[0] = (e2) => l3.$emit("selectedRange", { range: e2, chartId: t2.id })) }, null, 8, ["range"])]), B(i("div", Uu, [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), [[L, !t2.empty]]), B(i("div", qu, [o(K, { icon: d(un), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), Wu], 512), [[L, t2.empty]])], 2), [[L, !t2.loading]]), B(i("div", Ku, Ju, 512), [[L, t2.loading]])], 64));
|
|
2366
|
+
} }), Xu = { class: "w-full flex flex-col items-center justify-center p-10 grow" }, Qu = { class: "text-2xl mt-4 font-bold" }, ed = { class: "buttons flex flex-row items-center justify-center mt-8 gap-x-1" }, td = { __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", Xu, [o(K, { loading: false, icon: d(un), size: "massive", color: "gray" }, null, 8, ["icon"]), i("h2", Qu, _(l2.title), 1), i("p", null, _(l2.message), 1), i("div", ed, [(e(true), a(w, null, j(l2.actions, (l3, a2) => (e(), t(Q, { key: a2, loading: false, onClick: (e2) => n3.$emit("action", l3.action) }, { default: E(() => [I(_(l3.text), 1)]), _: 2 }, 1032, ["onClick"]))), 128))])])) }, ld = i("div", { class: "fixed inset-0" }, null, -1), nd = { class: "fixed inset-0 overflow-hidden" }, ad = { class: "absolute inset-0 overflow-hidden" }, od = { class: "pointer-events-none fixed inset-y-0 right-0 flex max-w-full pl-10" }, rd = { class: "flex h-full flex-col overflow-y-scroll bg-white shadow-xl" }, id = { class: "bg-indigo-700 px-4 py-6 sm:px-6" }, sd = { class: "flex items-center justify-between" }, ud = { class: "ml-3 flex h-7 items-center" }, dd = i("span", { class: "absolute -inset-2.5" }, null, -1), cd = i("span", { class: "sr-only" }, "Close panel", -1), pd = { class: "mt-1" }, gd = { class: "text-sm text-indigo-300" }, fd = { class: "relative flex-1 px-4 py-6 sm:px-6" }, md = { name: "uiRightSidebar" }, vd = Object.assign(md, { props: { title: { type: String, required: true }, description: { type: String }, open: { type: Boolean, default: false } }, emits: ["closeRightBar"], setup(l2, { emit: n2 }) {
|
|
2367
2367
|
const a2 = n2;
|
|
2368
|
-
return (n3, s2) => (e(), t(d(Zl), { as: "template", show: l2.open }, { default: E(() => [o(d(dl), { as: "div", class: "relative z-10", onClose: s2[1] || (s2[1] = (e2) => a2("closeRightBar")) }, { default: E(() => [
|
|
2369
|
-
} }),
|
|
2368
|
+
return (n3, s2) => (e(), t(d(Zl), { as: "template", show: l2.open }, { default: E(() => [o(d(dl), { as: "div", class: "relative z-10", onClose: s2[1] || (s2[1] = (e2) => a2("closeRightBar")) }, { default: E(() => [ld, i("div", nd, [i("div", ad, [i("div", od, [o(d(Jl), { 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: E(() => [o(d(cl), { class: "pointer-events-auto w-screen max-w-md" }, { default: E(() => [i("div", rd, [i("div", id, [i("div", sd, [o(d(pl), { class: "text-base font-semibold leading-6 text-white" }, { default: E(() => [I(_(l2.title), 1)]), _: 1 }), i("div", ud, [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")) }, [dd, cd, o(d(vn), { class: "h-6 w-6 ring-0", "aria-hidden": "true" })])])]), i("div", pd, [i("p", gd, _(l2.description), 1)])]), i("div", fd, [r(n3.$slots, "default")])])]), _: 3 })]), _: 3 })])])])]), _: 3 })]), _: 3 }, 8, ["show"]));
|
|
2369
|
+
} }), hd = { class: "uiGallery" }, yd = { key: 1, role: "list", class: "grid grid-cols-2 gap-x-4 gap-y-8 sm:grid-cols-3 sm:gap-x-4 lg:grid-cols-6" }, bd = { class: "group aspect-h-7 aspect-w-10 block w-full overflow-hidden rounded-lg bg-gray-100 focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 focus-within:ring-offset-gray-100" }, xd = ["src"], wd = ["onClick"], kd = { class: "pointer-events-none mt-2 block truncate text-sm font-medium text-gray-900" }, Sd = { class: "flex items-center justify-between" }, Cd = { class: "pointer-events-none block text-sm font-medium text-gray-500" }, Od = { key: 2, role: "list", class: "grid grid-cols-2 gap-x-4 gap-y-8 sm:grid-cols-3 sm:gap-x-4 lg:grid-cols-6" }, Md = [i("div", { class: "group aspect-h-7 aspect-w-10 block w-full overflow-hidden rounded-lg bg-gray-200 animate-pulse dark:bg-gray-200 focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 focus-within:ring-offset-gray-100" }, null, -1), i("p", { class: "animate-pulse h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28 mt-4" }, null, -1), i("p", { class: "animate-pulse h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-14 mt-2" }, null, -1)], Dd = { name: "uiGallery" }, Td = Object.assign(Dd, { props: { galleryId: String, gallery: Array, loading: Boolean, literals: Object }, setup(l2, { emit: n2 }) {
|
|
2370
2370
|
const r2 = n2, u2 = s(false);
|
|
2371
|
-
return (n3, s2) => (e(), a("div",
|
|
2371
|
+
return (n3, s2) => (e(), a("div", hd, [l2.loading ? R("", true) : (e(), t(ro, { key: 0, open: u2.value, modalName: "deleteAllImagesModal", title: l2.literals.modalTitle, type: "warning", actions: [{ value: "close", name: l2.literals.closeAction }, { value: `deleteGallery_${l2.galleryId}`, name: l2.literals.deleteAction }], onModalAction: s2[0] || (s2[0] = (e2) => {
|
|
2372
2372
|
var t2;
|
|
2373
2373
|
"close" !== (t2 = e2).action ? r2("modalAction", t2) : u2.value = false;
|
|
2374
|
-
}) }, { default: E(() => [i("p", null, _(l2.literals.modalText), 1)]), _: 1 }, 8, ["open", "title", "actions"])), l2.loading ? (e(), a("ul",
|
|
2375
|
-
} }),
|
|
2374
|
+
}) }, { default: E(() => [i("p", null, _(l2.literals.modalText), 1)]), _: 1 }, 8, ["open", "title", "actions"])), l2.loading ? (e(), a("ul", Od, [(e(), a(w, null, j(4, (e2) => i("li", null, Md)), 64))])) : (e(), a("ul", yd, [(e(true), a(w, null, j(l2.gallery, (t2) => (e(), a("li", { key: t2.source, class: "relative" }, [i("div", bd, [i("img", { src: t2.source, alt: "", class: "pointer-events-none object-cover group-hover:opacity-75" }, null, 8, xd), i("button", { type: "button", class: "absolute inset-0 focus:outline-none", onClick: (e2) => n3.$emit("imgClicked", t2) }, null, 8, wd)]), i("p", kd, _(t2.title), 1), i("div", Sd, [i("p", Cd, _(t2.size), 1), o(K, { class: "cursor-pointer", icon: d(fn), color: "red", loading: false, onClick: (e2) => r2("deleteImage", t2) }, null, 8, ["icon", "onClick"])])]))), 128))])), l2.gallery.length > 0 && !l2.loading ? (e(), t(Q, { key: 3, onClick: s2[1] || (s2[1] = (e2) => u2.value = true), class: "mt-8", loading: false, color: "red", size: "small" }, { default: E(() => [I(_(l2.literals.deleteAllImages), 1)]), _: 1 })) : R("", true)]));
|
|
2375
|
+
} }), Ed = { class: "cursor-move mb-1 relative flex items-center space-x-3 rounded-lg border border-gray-300 bg-white p-4 shadow-sm focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 hover:border-gray-400" }, Id = { class: "flex flex-row items-center w-full" }, _d = { class: "content text-sm grow" }, Pd = { class: "font-bold" }, jd = { key: 0 }, Rd = { class: "font-bold text-gray-400" }, Bd = { key: 1, class: "animate-pulse" }, Ad = [z('<div class="h-16 mb-1 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div><div class="h-16 mb-1 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div><div class="h-16 mb-1 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div><div class="h-16 mb-1 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div><div class="h-16 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div>', 5)], Ld = { name: "uiDragAndDrop" }, Fd = Object.assign(Ld, { props: { elements: { type: Array, required: true }, loading: true }, setup(l2) {
|
|
2376
2376
|
const n2 = l2;
|
|
2377
2377
|
let r2 = s(n2.elements);
|
|
2378
2378
|
return p(() => n2.elements, (e2) => {
|
|
2379
2379
|
r2.value = e2;
|
|
2380
|
-
}), (n3, s2) => l2.loading ? (e(), a("div",
|
|
2381
|
-
} }),
|
|
2380
|
+
}), (n3, s2) => l2.loading ? (e(), a("div", Bd, Ad)) : (e(), t(d(q), { key: 0, modelValue: d(r2), "onUpdate:modelValue": s2[0] || (s2[0] = (e2) => V(r2) ? r2.value = e2 : r2 = e2) }, { item: E(({ item: t2 }) => [i("div", Ed, [i("div", Id, [o(K, { icon: d(en), loading: false, color: "gray", class: "mr-4", size: "big" }, null, 8, ["icon"]), i("div", _d, [i("p", Pd, _(t2.name), 1), t2.description ? (e(), a("p", jd, _(t2.description), 1)) : R("", true)]), i("div", Rd, _(d(r2).indexOf(t2) + 1), 1)])])]), _: 1 }, 8, ["modelValue"]));
|
|
2381
|
+
} }), Nd = { class: "chart-header flex flex-row justify-between" }, zd = { class: "text-sm font-medium text-gray-500 truncate" }, $d = { class: "chart-content" }, Hd = { class: "h-full w-full flex items-center justify-center flex-col" }, Vd = i("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1), Yd = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, Ud = [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)], qd = { name: "uiCircleChart" }, Wd = Object.assign(qd, { props: { title: String, id: { type: String, default: "noChartId" }, series: { type: Array, required: true }, labels: { type: Array, 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 }) {
|
|
2382
2382
|
const r2 = l2, s2 = t2;
|
|
2383
2383
|
let c2 = { labels: s2.labels, chart: { toolbar: { show: false }, zoom: { enabled: false } }, colors: ["#715aff", "#00ffff", "#aba9ba"], stroke: { show: true, curve: "stepline", lineCap: "butt", width: 1, dashArray: 0 }, dataLabels: { enabled: true, dropShadow: { enabled: false } } };
|
|
2384
|
-
const p2 = u(() => s2.series), g2 = u(() => ({ ...c2, ...s2.options })),
|
|
2384
|
+
const p2 = u(() => s2.series), g2 = u(() => ({ ...c2, ...s2.options })), f2 = () => r2("chartUpdated"), m2 = (e2, t3, l3) => {
|
|
2385
2385
|
r2("dataPointSelection", { id: s2.id, chartContext: t3, config: l3, event: e2 });
|
|
2386
2386
|
};
|
|
2387
|
-
return (l3, r3) => (e(), a(w, 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",
|
|
2388
|
-
} }),
|
|
2389
|
-
Object.keys(
|
|
2390
|
-
e2.component(t2,
|
|
2387
|
+
return (l3, r3) => (e(), a(w, 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", Nd, [i("div", zd, _(t2.title), 1), o(Fr, { range: t2.range, onRangeSelected: r3[0] || (r3[0] = (e2) => l3.$emit("selectedRange", { range: e2, chartId: t2.id })) }, null, 8, ["range"])]), B(i("div", $d, [o(d(U), { class: "flex items-center justify-center", type: "donut", series: p2.value, options: g2.value, height: t2.height, onUpdated: f2, onMounted: f2, onDataPointSelection: m2 }, null, 8, ["series", "options", "height"])], 512), [[L, !t2.empty]]), B(i("div", Hd, [o(K, { icon: d(un), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), Vd], 512), [[L, t2.empty]])], 2), [[L, !t2.loading]]), B(i("div", Yd, Ud, 512), [[L, t2.loading]])], 64));
|
|
2388
|
+
} }), Kd = { uiButton: Q, uiIcon: K, uiCheckbox: se, uiDropdown: kn, uiInput: jn, uiInputFile: Kn, uiSelect: Qn, uiTag: na, uiTextArea: da, uiToggle: va, uiAlert: Da, uiBreadcrumbs: La, uiCard: qa, uiFilter: Ka, uiModal: ro, uiNotification: bo, uiTaskList: Po, uiPriceCalendar: Br, uiChart: Wr, uiFooter: Zr, uiLoadingScreen: ei, uiPagination: vi, uiSidebar: Pi, uiStats: qi, uiStripedCard: ss, uiTable: js, uiTabs: $s, uiTimeline: vu, uiTopbar: $u, uiFunnelChartV2: Zu, uiNoResults: td, uiRightSidebar: vd, uiGallery: Td, uiDragAndDrop: Fd, uiCircleChart: Wd }, Jd = { install(e2) {
|
|
2389
|
+
Object.keys(Kd).forEach((t2) => {
|
|
2390
|
+
e2.component(t2, Kd[t2]);
|
|
2391
2391
|
});
|
|
2392
2392
|
} };
|
|
2393
2393
|
export {
|
|
2394
|
-
|
|
2394
|
+
Jd as default
|
|
2395
2395
|
};
|