@hotelinking/ui 4.32.14 → 4.32.16
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 +120 -118
- package/dist/ui.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as e, createBlock as t, resolveDynamicComponent as l, normalizeClass as a, createElementBlock as n, createVNode as r, renderSlot as o, createElementVNode as i, ref as s, cloneVNode as u, h as d, Fragment as c, inject as p, provide as g, onMounted as
|
|
1
|
+
import { openBlock as e, createBlock as t, resolveDynamicComponent as l, normalizeClass as a, createElementBlock as n, createVNode as r, renderSlot as o, createElementVNode as i, ref as s, cloneVNode as u, h as d, Fragment as c, inject as p, provide as g, onMounted as f, watchEffect as m, nextTick as v, computed as y, defineComponent as b, toRaw as h, watch as x, onUnmounted as w, Teleport as k, reactive as S, unref as C, shallowRef as O, withCtx as D, createTextVNode as M, toDisplayString as P, Transition as _, renderList as T, createCommentVNode as j, withDirectives as E, vModelDynamic as L, vShow as B, withModifiers as I, vModelText as R, createStaticVNode as A, resolveComponent as F, vModelCheckbox as N, isRef as $ } from "vue";
|
|
2
2
|
import H from "dayjs";
|
|
3
3
|
import Y from "vue3-apexcharts";
|
|
4
4
|
const V = { name: "uiIcon" }, z = Object.assign(V, { props: { icon: { type: Function, required: true }, size: { type: String, default: "normal" }, color: { type: String, default: "primary" }, loading: { type: Boolean, default: true } }, setup: (r2) => (o2, i2) => r2.loading ? (e(), n("div", { key: 1, class: a([{ "h-4 w-4": "normal" === r2.size, "h-6 w-6": "big" === r2.size, "h-12 w-12": "huge" === r2.size, "h-20 w-20": "massive" === r2.size }, "animate-pulse rounded-full bg-gray-200 dark:bg-gray-300"]) }, null, 2)) : (e(), t(l(r2.icon), { key: 0, class: a({ "h-4 w-4": "normal" === r2.size, "h-6 w-6": "big" === r2.size, "h-12 w-12": "huge" === r2.size, "h-20 w-20": "massive" === r2.size, "text-indigo-600": "primary" === r2.color, "text-cyan-300": "secondary" === r2.color, "text-red-400": "red" === r2.color, "text-yellow-400": "yellow" === r2.color, "text-green-400": "green" === r2.color, "text-white": "white" === r2.color, "text-gray-300": "gray" === r2.color, "text-black": "black" === r2.color }) }, null, 8, ["class"])) }), q = ["disabled"], U = { key: 1, class: "animate-pulse px-4 py-2.5 text-sm rounded-md inline-flex items-center border border-transparent font-medium shadow-sm text-white focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-25 bg-gray-200" }, W = i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-16" }, null, -1), K = { name: "uiButton" }, J = Object.assign(K, { props: { color: { type: String, default: "primary" }, size: { type: String, default: "normal" }, icon: { type: Function, default: () => {
|
|
@@ -89,9 +89,9 @@ function ge(e2, t2 = []) {
|
|
|
89
89
|
e3 in l2 && delete l2[e3];
|
|
90
90
|
return l2;
|
|
91
91
|
}
|
|
92
|
-
let
|
|
93
|
-
function
|
|
94
|
-
return ++
|
|
92
|
+
let fe = 0;
|
|
93
|
+
function me() {
|
|
94
|
+
return ++fe;
|
|
95
95
|
}
|
|
96
96
|
var ve = ((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))(ve || {});
|
|
97
97
|
var ye = ((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))(ye || {});
|
|
@@ -145,9 +145,9 @@ function Ce(e2, t2) {
|
|
|
145
145
|
}
|
|
146
146
|
function Oe(e2, t2) {
|
|
147
147
|
let l2 = s(Ce(e2.value.type, e2.value.as));
|
|
148
|
-
return
|
|
148
|
+
return f(() => {
|
|
149
149
|
l2.value = Ce(e2.value.type, e2.value.as);
|
|
150
|
-
}),
|
|
150
|
+
}), m(() => {
|
|
151
151
|
var e3;
|
|
152
152
|
l2.value || he(t2) && he(t2) instanceof HTMLButtonElement && (null == (e3 = he(t2)) || !e3.hasAttribute("type")) && (l2.value = "button");
|
|
153
153
|
}), l2;
|
|
@@ -191,7 +191,7 @@ function _e(e2) {
|
|
|
191
191
|
return document;
|
|
192
192
|
}
|
|
193
193
|
function Te({ container: e2, accept: t2, walk: l2, enabled: a2 }) {
|
|
194
|
-
|
|
194
|
+
m(() => {
|
|
195
195
|
let n2 = e2.value;
|
|
196
196
|
if (!n2 || void 0 !== a2 && !a2.value)
|
|
197
197
|
return;
|
|
@@ -287,12 +287,12 @@ function Ve(e2, t2, { sorted: l2 = true, relativeTo: a2 = null, skipElements: n2
|
|
|
287
287
|
}(s2) && s2.select(), 2;
|
|
288
288
|
}
|
|
289
289
|
function ze(e2, t2, l2) {
|
|
290
|
-
Pe.isServer ||
|
|
290
|
+
Pe.isServer || m((a2) => {
|
|
291
291
|
document.addEventListener(e2, t2, l2), a2(() => document.removeEventListener(e2, t2, l2));
|
|
292
292
|
});
|
|
293
293
|
}
|
|
294
294
|
function qe(e2, t2, l2) {
|
|
295
|
-
Pe.isServer ||
|
|
295
|
+
Pe.isServer || m((a2) => {
|
|
296
296
|
window.addEventListener(e2, t2, l2), a2(() => window.removeEventListener(e2, t2, l2));
|
|
297
297
|
});
|
|
298
298
|
}
|
|
@@ -426,9 +426,9 @@ function dt(e2) {
|
|
|
426
426
|
return t2;
|
|
427
427
|
}
|
|
428
428
|
let ct = b({ name: "Combobox", emits: { "update:modelValue": (e2) => true }, props: { as: { type: [Object, String], default: "template" }, disabled: { type: [Boolean], default: false }, by: { type: [String, Function], default: () => rt }, 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 } }, inheritAttrs: false, setup(e2, { slots: t2, attrs: l2, emit: a2 }) {
|
|
429
|
-
let n2 = s(1), r2 = s(null), o2 = s(null), i2 = s(null), u2 = s(null), p2 = s({ static: false, hold: false }),
|
|
429
|
+
let n2 = s(1), r2 = s(null), o2 = s(null), i2 = s(null), u2 = s(null), p2 = s({ static: false, hold: false }), m2 = s([]), v2 = s(null), b2 = s(1), w2 = s(false);
|
|
430
430
|
function k2(e3 = (e4) => e4) {
|
|
431
|
-
let t3 = null !== v2.value ?
|
|
431
|
+
let t3 = null !== v2.value ? m2.value[v2.value] : null, l3 = Ye(e3(m2.value.slice()), (e4) => he(e4.dataRef.domRef)), a3 = t3 ? l3.indexOf(t3) : null;
|
|
432
432
|
return -1 === a3 && (a3 = null), { options: l3, activeOptionIndex: a3 };
|
|
433
433
|
}
|
|
434
434
|
let S2 = y(() => e2.multiple ? 1 : 0), C2 = y(() => e2.nullable), [O2, D2] = Xe(y(() => e2.modelValue), (e3) => a2("update:modelValue", e3), y(() => e2.defaultValue)), M2 = y(() => void 0 === O2.value ? re(S2.value, { 1: [], 0: void 0 }) : O2.value), P2 = null, _2 = null, T2 = { comboboxState: n2, value: M2, mode: S2, compare(t3, l3) {
|
|
@@ -437,11 +437,11 @@ let ct = b({ name: "Combobox", emits: { "update:modelValue": (e2) => true }, pro
|
|
|
437
437
|
return (null == t3 ? void 0 : t3[a3]) === (null == l3 ? void 0 : l3[a3]);
|
|
438
438
|
}
|
|
439
439
|
return e2.by(t3, l3);
|
|
440
|
-
}, defaultValue: y(() => e2.defaultValue), nullable: C2, inputRef: o2, labelRef: r2, buttonRef: i2, optionsRef: u2, disabled: y(() => e2.disabled), options:
|
|
440
|
+
}, defaultValue: y(() => e2.defaultValue), nullable: C2, inputRef: o2, labelRef: r2, buttonRef: i2, optionsRef: u2, disabled: y(() => e2.disabled), options: m2, change(e3) {
|
|
441
441
|
D2(e3);
|
|
442
442
|
}, activeOptionIndex: y(() => {
|
|
443
|
-
if (w2.value && null === v2.value &&
|
|
444
|
-
let e3 =
|
|
443
|
+
if (w2.value && null === v2.value && m2.value.length > 0) {
|
|
444
|
+
let e3 = m2.value.findIndex((e4) => !e4.dataRef.disabled);
|
|
445
445
|
-1 !== e3 && (v2.value = e3);
|
|
446
446
|
}
|
|
447
447
|
return v2.value;
|
|
@@ -450,7 +450,7 @@ let ct = b({ name: "Combobox", emits: { "update:modelValue": (e2) => true }, pro
|
|
|
450
450
|
}, openCombobox() {
|
|
451
451
|
if (w2.value = true, e2.disabled || 0 === n2.value)
|
|
452
452
|
return;
|
|
453
|
-
let t3 =
|
|
453
|
+
let t3 = m2.value.findIndex((e3) => {
|
|
454
454
|
let t4 = h(e3.dataRef.value);
|
|
455
455
|
return re(S2.value, { 0: () => T2.compare(h(T2.value.value), h(t4)), 1: () => h(T2.value.value).some((e4) => T2.compare(h(e4), h(t4))) });
|
|
456
456
|
});
|
|
@@ -465,10 +465,10 @@ let ct = b({ name: "Combobox", emits: { "update:modelValue": (e2) => true }, pro
|
|
|
465
465
|
-1 !== e3 && (r3.activeOptionIndex = e3);
|
|
466
466
|
}
|
|
467
467
|
let o3 = be(t3 === ye.Specific ? { focus: ye.Specific, id: l3 } : { focus: t3 }, { resolveItems: () => r3.options, resolveActiveIndex: () => r3.activeOptionIndex, resolveId: (e3) => e3.id, resolveDisabled: (e3) => e3.dataRef.disabled });
|
|
468
|
-
v2.value = o3, b2.value = null != a3 ? a3 : 1,
|
|
468
|
+
v2.value = o3, b2.value = null != a3 ? a3 : 1, m2.value = r3.options;
|
|
469
469
|
});
|
|
470
470
|
}, selectOption(e3) {
|
|
471
|
-
let t3 =
|
|
471
|
+
let t3 = m2.value.find((t4) => t4.id === e3);
|
|
472
472
|
if (!t3)
|
|
473
473
|
return;
|
|
474
474
|
let { dataRef: l3 } = t3;
|
|
@@ -479,7 +479,7 @@ let ct = b({ name: "Combobox", emits: { "update:modelValue": (e2) => true }, pro
|
|
|
479
479
|
}, selectActiveOption() {
|
|
480
480
|
if (null === T2.activeOptionIndex.value)
|
|
481
481
|
return;
|
|
482
|
-
let { dataRef: e3, id: t3 } =
|
|
482
|
+
let { dataRef: e3, id: t3 } = m2.value[T2.activeOptionIndex.value];
|
|
483
483
|
D2(re(S2.value, { 0: () => e3.value, 1: () => {
|
|
484
484
|
let t4 = h(T2.value.value).slice(), l3 = h(e3.value), a3 = t4.findIndex((e4) => T2.compare(l3, h(e4)));
|
|
485
485
|
return -1 === a3 ? t4.push(l3) : t4.splice(a3, 1), t4;
|
|
@@ -491,9 +491,9 @@ let ct = b({ name: "Combobox", emits: { "update:modelValue": (e2) => true }, pro
|
|
|
491
491
|
let e4 = t3.value.value;
|
|
492
492
|
re(S2.value, { 0: () => T2.compare(h(T2.value.value), h(e4)), 1: () => h(T2.value.value).some((t4) => T2.compare(h(t4), h(e4))) }) && (a3.activeOptionIndex = a3.options.indexOf(l3));
|
|
493
493
|
}
|
|
494
|
-
|
|
494
|
+
m2.value = a3.options, v2.value = a3.activeOptionIndex, b2.value = 1, a3.options.some((e4) => !he(e4.dataRef.domRef)) && (_2 = requestAnimationFrame(() => {
|
|
495
495
|
let e4 = k2();
|
|
496
|
-
|
|
496
|
+
m2.value = e4.options, v2.value = e4.activeOptionIndex;
|
|
497
497
|
}));
|
|
498
498
|
}, unregisterOption(e3) {
|
|
499
499
|
var t3;
|
|
@@ -502,14 +502,14 @@ let ct = b({ name: "Combobox", emits: { "update:modelValue": (e2) => true }, pro
|
|
|
502
502
|
let l4 = t4.findIndex((t5) => t5.id === e3);
|
|
503
503
|
return -1 !== l4 && t4.splice(l4, 1), t4;
|
|
504
504
|
});
|
|
505
|
-
|
|
505
|
+
m2.value = l3.options, v2.value = l3.activeOptionIndex, b2.value = 1;
|
|
506
506
|
} };
|
|
507
507
|
Ue([o2, i2, u2], () => T2.closeCombobox(), y(() => 0 === n2.value)), g(ut, T2), Se(y(() => re(n2.value, { 0: we.Open, 1: we.Closed })));
|
|
508
|
-
let j2 = y(() => null === T2.activeOptionIndex.value ? null :
|
|
508
|
+
let j2 = y(() => null === T2.activeOptionIndex.value ? null : m2.value[T2.activeOptionIndex.value].dataRef.value), E2 = y(() => {
|
|
509
509
|
var e3;
|
|
510
510
|
return null == (e3 = he(o2)) ? void 0 : e3.closest("form");
|
|
511
511
|
});
|
|
512
|
-
return
|
|
512
|
+
return f(() => {
|
|
513
513
|
x([E2], () => {
|
|
514
514
|
if (E2.value && void 0 !== e2.defaultValue)
|
|
515
515
|
return E2.value.addEventListener("reset", t3), () => {
|
|
@@ -524,7 +524,7 @@ let ct = b({ name: "Combobox", emits: { "update:modelValue": (e2) => true }, pro
|
|
|
524
524
|
let { name: a3, disabled: r3, form: o3, ...i3 } = e2, s2 = { open: 0 === n2.value, disabled: r3, activeIndex: T2.activeOptionIndex.value, activeOption: j2.value, value: M2.value };
|
|
525
525
|
return d(c, [...null != a3 && null != M2.value ? Je({ [a3]: M2.value }).map(([e3, t3]) => d(Ke, pe({ features: We.Hidden, key: e3, as: "input", type: "hidden", hidden: true, readOnly: true, form: o3, name: e3, value: t3 }))) : [], se({ theirProps: { ...l2, ...ge(i3, ["modelValue", "defaultValue", "nullable", "multiple", "onUpdate:modelValue", "by"]) }, ourProps: {}, slot: s2, slots: t2, attrs: l2, name: "Combobox" })]);
|
|
526
526
|
};
|
|
527
|
-
} }), pt = b({ name: "ComboboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: () => `headlessui-combobox-label-${
|
|
527
|
+
} }), pt = b({ name: "ComboboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: () => `headlessui-combobox-label-${me()}` } }, setup(e2, { attrs: t2, slots: l2 }) {
|
|
528
528
|
let a2 = dt("ComboboxLabel");
|
|
529
529
|
function n2() {
|
|
530
530
|
var e3;
|
|
@@ -534,7 +534,7 @@ let ct = b({ name: "Combobox", emits: { "update:modelValue": (e2) => true }, pro
|
|
|
534
534
|
let r2 = { open: 0 === a2.comboboxState.value, disabled: a2.disabled.value }, { id: o2, ...i2 } = e2;
|
|
535
535
|
return se({ ourProps: { id: o2, ref: a2.labelRef, onClick: n2 }, theirProps: i2, slot: r2, attrs: t2, slots: l2, name: "ComboboxLabel" });
|
|
536
536
|
};
|
|
537
|
-
} }), gt = b({ name: "ComboboxButton", props: { as: { type: [Object, String], default: "button" }, id: { type: String, default: () => `headlessui-combobox-button-${
|
|
537
|
+
} }), gt = b({ name: "ComboboxButton", props: { as: { type: [Object, String], default: "button" }, id: { type: String, default: () => `headlessui-combobox-button-${me()}` } }, setup(e2, { attrs: t2, slots: l2, expose: a2 }) {
|
|
538
538
|
let n2 = dt("ComboboxButton");
|
|
539
539
|
function r2(e3) {
|
|
540
540
|
n2.disabled.value || (0 === n2.comboboxState.value ? n2.closeCombobox() : (e3.preventDefault(), n2.openCombobox()), v(() => {
|
|
@@ -572,7 +572,7 @@ let ct = b({ name: "Combobox", emits: { "update:modelValue": (e2) => true }, pro
|
|
|
572
572
|
let u2 = { open: 0 === n2.comboboxState.value, disabled: n2.disabled.value, value: n2.value.value }, { id: d2, ...c2 } = e2;
|
|
573
573
|
return se({ ourProps: { ref: n2.buttonRef, id: d2, type: i2.value, tabindex: "-1", "aria-haspopup": "listbox", "aria-controls": null == (a3 = he(n2.optionsRef)) ? void 0 : a3.id, "aria-expanded": 0 === n2.comboboxState.value, "aria-labelledby": n2.labelRef.value ? [null == (s2 = he(n2.labelRef)) ? void 0 : s2.id, d2].join(" ") : void 0, disabled: true === n2.disabled.value || void 0, onKeydown: o2, onClick: r2 }, theirProps: c2, slot: u2, attrs: t2, slots: l2, name: "ComboboxButton" });
|
|
574
574
|
};
|
|
575
|
-
} }),
|
|
575
|
+
} }), ft = b({ name: "ComboboxInput", props: { as: { type: [Object, String], default: "input" }, static: { type: Boolean, default: false }, unmount: { type: Boolean, default: true }, displayValue: { type: Function }, defaultValue: { type: String, default: void 0 }, id: { type: String, default: () => `headlessui-combobox-input-${me()}` } }, emits: { change: (e2) => true }, setup(e2, { emit: t2, attrs: l2, slots: a2, expose: n2 }) {
|
|
576
576
|
let r2 = dt("ComboboxInput"), o2 = y(() => _e(he(r2.inputRef))), i2 = { value: false };
|
|
577
577
|
function u2() {
|
|
578
578
|
r2.change(null);
|
|
@@ -585,7 +585,7 @@ let ct = b({ name: "Combobox", emits: { "update:modelValue": (e2) => true }, pro
|
|
|
585
585
|
let l3 = r2.value.value;
|
|
586
586
|
return he(r2.inputRef) ? void 0 !== e2.displayValue && void 0 !== l3 ? null != (t3 = e2.displayValue(l3)) ? t3 : "" : "string" == typeof l3 ? l3 : "" : "";
|
|
587
587
|
});
|
|
588
|
-
|
|
588
|
+
f(() => {
|
|
589
589
|
x([d2, r2.comboboxState, o2], ([e3, t3], [l3, a3]) => {
|
|
590
590
|
if (i2.value)
|
|
591
591
|
return;
|
|
@@ -618,7 +618,7 @@ let ct = b({ name: "Combobox", emits: { "update:modelValue": (e2) => true }, pro
|
|
|
618
618
|
c2.value = false;
|
|
619
619
|
});
|
|
620
620
|
}
|
|
621
|
-
function
|
|
621
|
+
function m2(e3) {
|
|
622
622
|
switch (i2.value = true, e3.key) {
|
|
623
623
|
case ve.Enter:
|
|
624
624
|
if (i2.value = false, 0 !== r2.comboboxState.value || c2.value)
|
|
@@ -670,14 +670,14 @@ let ct = b({ name: "Combobox", emits: { "update:modelValue": (e2) => true }, pro
|
|
|
670
670
|
});
|
|
671
671
|
return () => {
|
|
672
672
|
var t3, n3, o3, i3, s2, u3;
|
|
673
|
-
let d3 = { open: 0 === r2.comboboxState.value }, { id: c3, displayValue:
|
|
674
|
-
return se({ ourProps: { "aria-controls": null == (t3 = r2.optionsRef.value) ? void 0 : t3.id, "aria-expanded": 0 === r2.comboboxState.value, "aria-activedescendant": null === r2.activeOptionIndex.value || null == (n3 = r2.options.value[r2.activeOptionIndex.value]) ? void 0 : n3.id, "aria-labelledby": null != (s2 = null == (o3 = he(r2.labelRef)) ? void 0 : o3.id) ? s2 : null == (i3 = he(r2.buttonRef)) ? void 0 : i3.id, "aria-autocomplete": "list", id: c3, onCompositionstart: p2, onCompositionend: g2, onKeydown:
|
|
673
|
+
let d3 = { open: 0 === r2.comboboxState.value }, { id: c3, displayValue: f2, onChange: v2, ...y2 } = e2;
|
|
674
|
+
return se({ ourProps: { "aria-controls": null == (t3 = r2.optionsRef.value) ? void 0 : t3.id, "aria-expanded": 0 === r2.comboboxState.value, "aria-activedescendant": null === r2.activeOptionIndex.value || null == (n3 = r2.options.value[r2.activeOptionIndex.value]) ? void 0 : n3.id, "aria-labelledby": null != (s2 = null == (o3 = he(r2.labelRef)) ? void 0 : o3.id) ? s2 : null == (i3 = he(r2.buttonRef)) ? void 0 : i3.id, "aria-autocomplete": "list", id: c3, onCompositionstart: p2, onCompositionend: g2, onKeydown: m2, onInput: b2, onBlur: h2, role: "combobox", type: null != (u3 = l2.type) ? u3 : "text", tabIndex: 0, ref: r2.inputRef, defaultValue: w2.value, disabled: true === r2.disabled.value || void 0 }, theirProps: y2, slot: d3, attrs: l2, slots: a2, features: oe.RenderStrategy | oe.Static, name: "ComboboxInput" });
|
|
675
675
|
};
|
|
676
|
-
} }),
|
|
677
|
-
let n2 = dt("ComboboxOptions"), r2 = `headlessui-combobox-options-${
|
|
678
|
-
a2({ el: n2.optionsRef, $el: n2.optionsRef }),
|
|
676
|
+
} }), mt = b({ 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: a2 }) {
|
|
677
|
+
let n2 = dt("ComboboxOptions"), r2 = `headlessui-combobox-options-${me()}`;
|
|
678
|
+
a2({ el: n2.optionsRef, $el: n2.optionsRef }), m(() => {
|
|
679
679
|
n2.optionsPropsRef.value.static = e2.static;
|
|
680
|
-
}),
|
|
680
|
+
}), m(() => {
|
|
681
681
|
n2.optionsPropsRef.value.hold = e2.hold;
|
|
682
682
|
});
|
|
683
683
|
let o2 = ke(), i2 = y(() => null !== o2 ? (o2.value & we.Open) === we.Open : 0 === n2.comboboxState.value);
|
|
@@ -689,7 +689,7 @@ let ct = b({ name: "Combobox", emits: { "update:modelValue": (e2) => true }, pro
|
|
|
689
689
|
return se({ ourProps: { "aria-labelledby": null != (s2 = null == (a3 = he(n2.labelRef)) ? void 0 : a3.id) ? s2 : null == (o3 = he(n2.buttonRef)) ? void 0 : o3.id, id: r2, ref: n2.optionsRef, role: "listbox", "aria-multiselectable": 1 === n2.mode.value || void 0 }, theirProps: ge(e2, ["hold"]), slot: u2, attrs: t2, slots: l2, features: oe.RenderStrategy | oe.Static, visible: i2.value, name: "ComboboxOptions" });
|
|
690
690
|
};
|
|
691
691
|
} }), vt = b({ name: "ComboboxOption", props: { as: { type: [Object, String], default: "li" }, value: { type: [Object, String, Number, Boolean] }, disabled: { type: Boolean, default: false } }, setup(e2, { slots: t2, attrs: l2, expose: a2 }) {
|
|
692
|
-
let n2 = dt("ComboboxOption"), r2 = `headlessui-combobox-option-${
|
|
692
|
+
let n2 = dt("ComboboxOption"), r2 = `headlessui-combobox-option-${me()}`, o2 = s(null);
|
|
693
693
|
a2({ el: o2, $el: o2 });
|
|
694
694
|
let i2 = y(() => null !== n2.activeOptionIndex.value && n2.options.value[n2.activeOptionIndex.value].id === r2), u2 = y(() => re(n2.mode.value, { 0: () => n2.compare(h(n2.value.value), h(e2.value)), 1: () => h(n2.value.value).some((t3) => n2.compare(h(t3), h(e2.value))) })), d2 = y(() => ({ disabled: e2.disabled, value: e2.value, domRef: o2 }));
|
|
695
695
|
function c2(t3) {
|
|
@@ -705,7 +705,7 @@ let ct = b({ name: "Combobox", emits: { "update:modelValue": (e2) => true }, pro
|
|
|
705
705
|
return n2.goToOption(ye.Nothing);
|
|
706
706
|
n2.goToOption(ye.Specific, r2);
|
|
707
707
|
}
|
|
708
|
-
|
|
708
|
+
f(() => n2.registerOption(r2, d2)), w(() => n2.unregisterOption(r2)), m(() => {
|
|
709
709
|
0 === n2.comboboxState.value && i2.value && 0 !== n2.activationTrigger.value && v(() => {
|
|
710
710
|
var e3, t3;
|
|
711
711
|
return null == (t3 = null == (e3 = he(o2)) ? void 0 : e3.scrollIntoView) ? void 0 : t3.call(e3, { block: "nearest" });
|
|
@@ -728,7 +728,7 @@ let ct = b({ name: "Combobox", emits: { "update:modelValue": (e2) => true }, pro
|
|
|
728
728
|
} });
|
|
729
729
|
var yt = ((e2) => (e2[e2.Forwards = 0] = "Forwards", e2[e2.Backwards = 1] = "Backwards", e2))(yt || {});
|
|
730
730
|
function bt(e2, t2, l2, a2) {
|
|
731
|
-
Pe.isServer ||
|
|
731
|
+
Pe.isServer || m((n2) => {
|
|
732
732
|
(e2 = null != e2 ? e2 : window).addEventListener(t2, l2, a2), n2(() => e2.removeEventListener(t2, l2, a2));
|
|
733
733
|
});
|
|
734
734
|
}
|
|
@@ -749,7 +749,7 @@ let wt = Object.assign(b({ name: "FocusTrap", props: { as: { type: [Object, Stri
|
|
|
749
749
|
let n2 = s(null);
|
|
750
750
|
a2({ el: n2, $el: n2 });
|
|
751
751
|
let r2 = y(() => _e(n2)), o2 = s(false);
|
|
752
|
-
|
|
752
|
+
f(() => o2.value = true), w(() => o2.value = false), function({ ownerDocument: e3 }, t3) {
|
|
753
753
|
let l3 = function(e4) {
|
|
754
754
|
let t4 = s(kt.slice());
|
|
755
755
|
return x([e4], ([e5], [l4]) => {
|
|
@@ -761,8 +761,8 @@ let wt = Object.assign(b({ name: "FocusTrap", props: { as: { type: [Object, Stri
|
|
|
761
761
|
return null != (e5 = t4.value.find((e6) => null != e6 && e6.isConnected)) ? e5 : null;
|
|
762
762
|
};
|
|
763
763
|
}(t3);
|
|
764
|
-
|
|
765
|
-
|
|
764
|
+
f(() => {
|
|
765
|
+
m(() => {
|
|
766
766
|
var a3, n3;
|
|
767
767
|
t3.value || (null == (a3 = e3.value) ? void 0 : a3.activeElement) === (null == (n3 = e3.value) ? void 0 : n3.body) && $e(l3());
|
|
768
768
|
}, { flush: "post" });
|
|
@@ -772,7 +772,7 @@ let wt = Object.assign(b({ name: "FocusTrap", props: { as: { type: [Object, Stri
|
|
|
772
772
|
}({ ownerDocument: r2 }, y(() => o2.value && Boolean(16 & e2.features)));
|
|
773
773
|
let i2 = function({ ownerDocument: e3, container: t3, initialFocus: l3 }, a3) {
|
|
774
774
|
let n3 = s(null), r3 = s(false);
|
|
775
|
-
return
|
|
775
|
+
return f(() => r3.value = true), w(() => r3.value = false), f(() => {
|
|
776
776
|
x([t3, l3, a3], (o3, i3) => {
|
|
777
777
|
if (o3.every((e4, t4) => (null == i3 ? void 0 : i3[t4]) === e4) || !a3.value)
|
|
778
778
|
return;
|
|
@@ -858,7 +858,7 @@ function St(e2, t2) {
|
|
|
858
858
|
});
|
|
859
859
|
let Ct = /* @__PURE__ */ new Map(), Ot = /* @__PURE__ */ new Map();
|
|
860
860
|
function Dt(e2, t2 = s(true)) {
|
|
861
|
-
|
|
861
|
+
m((l2) => {
|
|
862
862
|
var a2;
|
|
863
863
|
if (!t2.value)
|
|
864
864
|
return;
|
|
@@ -901,11 +901,11 @@ let Tt = b({ name: "Portal", props: { as: { type: [Object, String], default: "di
|
|
|
901
901
|
let a3 = t3.createElement("div");
|
|
902
902
|
return a3.setAttribute("id", "headlessui-portal-root"), t3.body.appendChild(a3);
|
|
903
903
|
}(a2.value) : o2.resolveTarget());
|
|
904
|
-
|
|
904
|
+
m(() => {
|
|
905
905
|
r2 || null != o2 && (i2.value = o2.resolveTarget());
|
|
906
906
|
});
|
|
907
907
|
let u2 = p(jt, null);
|
|
908
|
-
return
|
|
908
|
+
return f(() => {
|
|
909
909
|
let e3 = he(a2);
|
|
910
910
|
e3 && u2 && w(u2.register(e3));
|
|
911
911
|
}), w(() => {
|
|
@@ -933,7 +933,7 @@ function Rt({ type: e2, enabled: t2, element: l2, onUpdate: a2 }) {
|
|
|
933
933
|
function r2(...e3) {
|
|
934
934
|
null == a2 || a2(...e3), n2(...e3);
|
|
935
935
|
}
|
|
936
|
-
|
|
936
|
+
f(() => {
|
|
937
937
|
x(t2, (t3, a3) => {
|
|
938
938
|
t3 ? r2(0, e2, l2) : true === a3 && r2(1, e2, l2);
|
|
939
939
|
}, { immediate: true, flush: "sync" });
|
|
@@ -1001,14 +1001,14 @@ function Ht(e2) {
|
|
|
1001
1001
|
Object.assign(t2, l2(t2));
|
|
1002
1002
|
return t2;
|
|
1003
1003
|
}
|
|
1004
|
-
b({ name: "Description", props: { as: { type: [Object, String], default: "p" }, id: { type: String, default: () => `headlessui-description-${
|
|
1004
|
+
b({ name: "Description", props: { as: { type: [Object, String], default: "p" }, id: { type: String, default: () => `headlessui-description-${me()}` } }, setup(e2, { attrs: t2, slots: l2 }) {
|
|
1005
1005
|
let a2 = function() {
|
|
1006
1006
|
let e3 = p(At, null);
|
|
1007
1007
|
if (null === e3)
|
|
1008
1008
|
throw new Error("Missing parent");
|
|
1009
1009
|
return e3;
|
|
1010
1010
|
}();
|
|
1011
|
-
return
|
|
1011
|
+
return f(() => w(a2.register(e2.id))), () => {
|
|
1012
1012
|
let { name: n2 = "Description", slot: r2 = s({}), props: o2 = {} } = a2, { id: i2, ...u2 } = e2, d2 = { ...Object.entries(o2).reduce((e3, [t3, l3]) => Object.assign(e3, { [t3]: C(l3) }), {}), id: i2 };
|
|
1013
1013
|
return se({ ourProps: d2, theirProps: u2, slot: r2.value, attrs: t2, slots: l2, name: n2 });
|
|
1014
1014
|
};
|
|
@@ -1075,10 +1075,10 @@ function Ut(e2) {
|
|
|
1075
1075
|
}
|
|
1076
1076
|
return t2;
|
|
1077
1077
|
}
|
|
1078
|
-
let Wt = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Kt = b({ name: "Dialog", inheritAttrs: false, props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: false }, unmount: { type: Boolean, default: true }, open: { type: [Boolean, String], default: Wt }, initialFocus: { type: Object, default: null }, id: { type: String, default: () => `headlessui-dialog-${
|
|
1078
|
+
let Wt = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Kt = b({ name: "Dialog", inheritAttrs: false, props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: false }, unmount: { type: Boolean, default: true }, open: { type: [Boolean, String], default: Wt }, initialFocus: { type: Object, default: null }, id: { type: String, default: () => `headlessui-dialog-${me()}` } }, emits: { close: (e2) => true }, setup(e2, { emit: t2, attrs: l2, slots: a2, expose: n2 }) {
|
|
1079
1079
|
var r2;
|
|
1080
1080
|
let o2 = s(false);
|
|
1081
|
-
|
|
1081
|
+
f(() => {
|
|
1082
1082
|
o2.value = true;
|
|
1083
1083
|
});
|
|
1084
1084
|
let i2 = s(0), u2 = ke(), c2 = y(() => e2.open === Wt && null !== u2 ? (u2.value & we.Open) === we.Open : e2.open), h2 = s(null), x2 = y(() => _e(h2));
|
|
@@ -1148,7 +1148,7 @@ let Wt = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Kt = b({ name: "Dialog", inheri
|
|
|
1148
1148
|
return Vt(x2, H2, (e3) => {
|
|
1149
1149
|
var t3;
|
|
1150
1150
|
return { containers: [...null != (t3 = e3.containers) ? t3 : [], M2] };
|
|
1151
|
-
}),
|
|
1151
|
+
}), m((e3) => {
|
|
1152
1152
|
if (0 !== w2.value)
|
|
1153
1153
|
return;
|
|
1154
1154
|
let t3 = he(h2);
|
|
@@ -1166,7 +1166,7 @@ let Wt = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Kt = b({ name: "Dialog", inheri
|
|
|
1166
1166
|
return d(_t, { force: true }, () => [d(Tt, () => d(Lt, { target: h2.value }, () => d(_t, { force: false }, () => d(wt, { initialFocus: r3, containers: M2, features: k2.value ? re(T2.value, { parent: wt.features.RestoreFocus, leaf: wt.features.All & ~wt.features.FocusLock }) : wt.features.None }, () => d(D2, {}, () => se({ ourProps: i3, theirProps: { ...o3, ...l2 }, slot: s2, attrs: l2, slots: a2, visible: 0 === w2.value, features: oe.RenderStrategy | oe.Static, name: "Dialog" })))))), d(_2)]);
|
|
1167
1167
|
};
|
|
1168
1168
|
} });
|
|
1169
|
-
b({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: () => `headlessui-dialog-overlay-${
|
|
1169
|
+
b({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: () => `headlessui-dialog-overlay-${me()}` } }, setup(e2, { attrs: t2, slots: l2 }) {
|
|
1170
1170
|
let a2 = Ut("DialogOverlay");
|
|
1171
1171
|
function n2(e3) {
|
|
1172
1172
|
e3.target === e3.currentTarget && (e3.preventDefault(), e3.stopPropagation(), a2.close());
|
|
@@ -1175,9 +1175,9 @@ b({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div"
|
|
|
1175
1175
|
let { id: r2, ...o2 } = e2;
|
|
1176
1176
|
return se({ ourProps: { id: r2, "aria-hidden": true, onClick: n2 }, theirProps: o2, slot: { open: 0 === a2.dialogState.value }, attrs: t2, slots: l2, name: "DialogOverlay" });
|
|
1177
1177
|
};
|
|
1178
|
-
} }), b({ name: "DialogBackdrop", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: () => `headlessui-dialog-backdrop-${
|
|
1178
|
+
} }), b({ name: "DialogBackdrop", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: () => `headlessui-dialog-backdrop-${me()}` } }, inheritAttrs: false, setup(e2, { attrs: t2, slots: l2, expose: a2 }) {
|
|
1179
1179
|
let n2 = Ut("DialogBackdrop"), r2 = s(null);
|
|
1180
|
-
return a2({ el: r2, $el: r2 }),
|
|
1180
|
+
return a2({ el: r2, $el: r2 }), f(() => {
|
|
1181
1181
|
if (null === n2.panelRef.value)
|
|
1182
1182
|
throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.");
|
|
1183
1183
|
}), () => {
|
|
@@ -1185,7 +1185,7 @@ b({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div"
|
|
|
1185
1185
|
return d(_t, { force: true }, () => d(Tt, () => se({ ourProps: i2, theirProps: { ...t2, ...o2 }, slot: { open: 0 === n2.dialogState.value }, attrs: t2, slots: l2, name: "DialogBackdrop" })));
|
|
1186
1186
|
};
|
|
1187
1187
|
} });
|
|
1188
|
-
let Jt = b({ name: "DialogPanel", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: () => `headlessui-dialog-panel-${
|
|
1188
|
+
let Jt = b({ name: "DialogPanel", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: () => `headlessui-dialog-panel-${me()}` } }, setup(e2, { attrs: t2, slots: l2, expose: a2 }) {
|
|
1189
1189
|
let n2 = Ut("DialogPanel");
|
|
1190
1190
|
function r2(e3) {
|
|
1191
1191
|
e3.stopPropagation();
|
|
@@ -1194,9 +1194,9 @@ let Jt = b({ name: "DialogPanel", props: { as: { type: [Object, String], default
|
|
|
1194
1194
|
let { id: a3, ...o2 } = e2;
|
|
1195
1195
|
return se({ ourProps: { id: a3, ref: n2.panelRef, onClick: r2 }, theirProps: o2, slot: { open: 0 === n2.dialogState.value }, attrs: t2, slots: l2, name: "DialogPanel" });
|
|
1196
1196
|
};
|
|
1197
|
-
} }), Gt = b({ name: "DialogTitle", props: { as: { type: [Object, String], default: "h2" }, id: { type: String, default: () => `headlessui-dialog-title-${
|
|
1197
|
+
} }), Gt = b({ name: "DialogTitle", props: { as: { type: [Object, String], default: "h2" }, id: { type: String, default: () => `headlessui-dialog-title-${me()}` } }, setup(e2, { attrs: t2, slots: l2 }) {
|
|
1198
1198
|
let a2 = Ut("DialogTitle");
|
|
1199
|
-
return
|
|
1199
|
+
return f(() => {
|
|
1200
1200
|
a2.setTitleId(e2.id), w(() => a2.setTitleId(null));
|
|
1201
1201
|
}), () => {
|
|
1202
1202
|
let { id: n2, ...r2 } = e2;
|
|
@@ -1215,7 +1215,7 @@ function Qt(e2) {
|
|
|
1215
1215
|
}
|
|
1216
1216
|
let el = Symbol("DisclosurePanelContext");
|
|
1217
1217
|
let tl = b({ name: "Disclosure", props: { as: { type: [Object, String], default: "template" }, defaultOpen: { type: [Boolean], default: false } }, setup(e2, { slots: t2, attrs: l2 }) {
|
|
1218
|
-
let a2 = s(e2.defaultOpen ? 0 : 1), n2 = s(null), r2 = s(null), o2 = { buttonId: s(`headlessui-disclosure-button-${
|
|
1218
|
+
let a2 = s(e2.defaultOpen ? 0 : 1), n2 = s(null), r2 = s(null), o2 = { buttonId: s(`headlessui-disclosure-button-${me()}`), panelId: s(`headlessui-disclosure-panel-${me()}`), disclosureState: a2, panel: n2, button: r2, toggleDisclosure() {
|
|
1219
1219
|
a2.value = re(a2.value, { 0: 1, 1: 0 });
|
|
1220
1220
|
}, closeDisclosure() {
|
|
1221
1221
|
1 !== a2.value && (a2.value = 1);
|
|
@@ -1230,13 +1230,13 @@ let tl = b({ name: "Disclosure", props: { as: { type: [Object, String], default:
|
|
|
1230
1230
|
};
|
|
1231
1231
|
} }), ll = b({ 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: a2 }) {
|
|
1232
1232
|
let n2 = Qt("DisclosureButton"), r2 = p(el, null), o2 = y(() => null !== r2 && r2.value === n2.panelId.value);
|
|
1233
|
-
|
|
1233
|
+
f(() => {
|
|
1234
1234
|
o2.value || null !== e2.id && (n2.buttonId.value = e2.id);
|
|
1235
1235
|
}), w(() => {
|
|
1236
1236
|
o2.value || (n2.buttonId.value = null);
|
|
1237
1237
|
});
|
|
1238
1238
|
let i2 = s(null);
|
|
1239
|
-
a2({ el: i2, $el: i2 }), o2.value ||
|
|
1239
|
+
a2({ el: i2, $el: i2 }), o2.value || m(() => {
|
|
1240
1240
|
n2.button.value = i2.value;
|
|
1241
1241
|
});
|
|
1242
1242
|
let u2 = Oe(y(() => ({ as: e2.as, type: t2.type })), i2);
|
|
@@ -1271,7 +1271,7 @@ let tl = b({ name: "Disclosure", props: { as: { type: [Object, String], default:
|
|
|
1271
1271
|
};
|
|
1272
1272
|
} }), al = b({ 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: a2 }) {
|
|
1273
1273
|
let n2 = Qt("DisclosurePanel");
|
|
1274
|
-
|
|
1274
|
+
f(() => {
|
|
1275
1275
|
null !== e2.id && (n2.panelId.value = e2.id);
|
|
1276
1276
|
}), w(() => {
|
|
1277
1277
|
n2.panelId.value = null;
|
|
@@ -1370,7 +1370,7 @@ let cl = b({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
1370
1370
|
let n3 = { open: 0 === a2.value, close: p2.closeMenu };
|
|
1371
1371
|
return se({ ourProps: {}, theirProps: e2, slot: n3, slots: t2, attrs: l2, name: "Menu" });
|
|
1372
1372
|
};
|
|
1373
|
-
} }), pl = b({ name: "MenuButton", props: { disabled: { type: Boolean, default: false }, as: { type: [Object, String], default: "button" }, id: { type: String, default: () => `headlessui-menu-button-${
|
|
1373
|
+
} }), pl = b({ name: "MenuButton", props: { disabled: { type: Boolean, default: false }, as: { type: [Object, String], default: "button" }, id: { type: String, default: () => `headlessui-menu-button-${me()}` } }, setup(e2, { attrs: t2, slots: l2, expose: a2 }) {
|
|
1374
1374
|
let n2 = dl("MenuButton");
|
|
1375
1375
|
function r2(e3) {
|
|
1376
1376
|
switch (e3.key) {
|
|
@@ -1411,7 +1411,7 @@ let cl = b({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
1411
1411
|
let u2 = { open: 0 === n2.menuState.value }, { id: d2, ...c2 } = e2;
|
|
1412
1412
|
return se({ ourProps: { ref: n2.buttonRef, id: d2, type: s2.value, "aria-haspopup": "menu", "aria-controls": null == (a3 = he(n2.itemsRef)) ? void 0 : a3.id, "aria-expanded": 0 === n2.menuState.value, onKeydown: r2, onKeyup: o2, onClick: i2 }, theirProps: c2, slot: u2, attrs: t2, slots: l2, name: "MenuButton" });
|
|
1413
1413
|
};
|
|
1414
|
-
} }), gl = b({ name: "MenuItems", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: false }, unmount: { type: Boolean, default: true }, id: { type: String, default: () => `headlessui-menu-items-${
|
|
1414
|
+
} }), gl = b({ name: "MenuItems", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: false }, unmount: { type: Boolean, default: true }, id: { type: String, default: () => `headlessui-menu-items-${me()}` } }, setup(e2, { attrs: t2, slots: l2, expose: a2 }) {
|
|
1415
1415
|
let n2 = dl("MenuItems"), r2 = s(null);
|
|
1416
1416
|
function o2(e3) {
|
|
1417
1417
|
var t3;
|
|
@@ -1463,7 +1463,7 @@ let cl = b({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
1463
1463
|
let s2 = { open: 0 === n2.menuState.value }, { id: u3, ...c2 } = e2;
|
|
1464
1464
|
return se({ ourProps: { "aria-activedescendant": null === n2.activeItemIndex.value || null == (a3 = n2.items.value[n2.activeItemIndex.value]) ? void 0 : a3.id, "aria-labelledby": null == (r3 = he(n2.buttonRef)) ? void 0 : r3.id, id: u3, onKeydown: o2, onKeyup: i2, role: "menu", tabIndex: 0, ref: n2.itemsRef }, theirProps: c2, slot: s2, attrs: t2, slots: l2, features: oe.RenderStrategy | oe.Static, visible: d2.value, name: "MenuItems" });
|
|
1465
1465
|
};
|
|
1466
|
-
} }),
|
|
1466
|
+
} }), fl = b({ name: "MenuItem", inheritAttrs: false, props: { as: { type: [Object, String], default: "template" }, disabled: { type: Boolean, default: false }, id: { type: String, default: () => `headlessui-menu-item-${me()}` } }, setup(e2, { slots: t2, attrs: l2, expose: a2 }) {
|
|
1467
1467
|
let n2 = dl("MenuItem"), r2 = s(null);
|
|
1468
1468
|
a2({ el: r2, $el: r2 });
|
|
1469
1469
|
let o2 = y(() => null !== n2.activeItemIndex.value && n2.items.value[n2.activeItemIndex.value].id === e2.id), i2 = ol(r2), u2 = y(() => ({ disabled: e2.disabled, get textValue() {
|
|
@@ -1479,7 +1479,7 @@ let cl = b({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
1479
1479
|
return n2.goToItem(ye.Nothing);
|
|
1480
1480
|
n2.goToItem(ye.Specific, e2.id);
|
|
1481
1481
|
}
|
|
1482
|
-
|
|
1482
|
+
f(() => n2.registerItem(e2.id, u2)), w(() => n2.unregisterItem(e2.id)), m(() => {
|
|
1483
1483
|
0 === n2.menuState.value && o2.value && 0 !== n2.activationTrigger.value && v(() => {
|
|
1484
1484
|
var e3, t3;
|
|
1485
1485
|
return null == (t3 = null == (e3 = he(r2)) ? void 0 : e3.scrollIntoView) ? void 0 : t3.call(e3, { block: "nearest" });
|
|
@@ -1499,9 +1499,9 @@ let cl = b({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
1499
1499
|
let { disabled: a3 } = e2, i3 = { active: o2.value, disabled: a3, close: n2.closeMenu }, { id: s2, ...u3 } = e2;
|
|
1500
1500
|
return se({ ourProps: { id: s2, ref: r2, role: "menuitem", tabIndex: true === a3 ? void 0 : -1, "aria-disabled": true === a3 || void 0, disabled: void 0, onClick: d2, onFocus: c2, onPointerenter: g2, onMouseenter: g2, onPointermove: b2, onMousemove: b2, onPointerleave: h2, onMouseleave: h2 }, theirProps: { ...l2, ...u3 }, slot: i3, attrs: l2, slots: t2, name: "MenuItem" });
|
|
1501
1501
|
};
|
|
1502
|
-
} }),
|
|
1502
|
+
} }), ml = Symbol("LabelContext");
|
|
1503
1503
|
function vl() {
|
|
1504
|
-
let e2 = p(
|
|
1504
|
+
let e2 = p(ml, null);
|
|
1505
1505
|
if (null === e2) {
|
|
1506
1506
|
let e3 = new Error("You used a <Label /> component, but it is not inside a parent.");
|
|
1507
1507
|
throw Error.captureStackTrace && Error.captureStackTrace(e3, vl), e3;
|
|
@@ -1510,16 +1510,16 @@ function vl() {
|
|
|
1510
1510
|
}
|
|
1511
1511
|
function yl({ slot: e2 = {}, name: t2 = "Label", props: l2 = {} } = {}) {
|
|
1512
1512
|
let a2 = s([]);
|
|
1513
|
-
return g(
|
|
1513
|
+
return g(ml, { register: function(e3) {
|
|
1514
1514
|
return a2.value.push(e3), () => {
|
|
1515
1515
|
let t3 = a2.value.indexOf(e3);
|
|
1516
1516
|
-1 !== t3 && a2.value.splice(t3, 1);
|
|
1517
1517
|
};
|
|
1518
1518
|
}, slot: e2, name: t2, props: l2 }), y(() => a2.value.length > 0 ? a2.value.join(" ") : void 0);
|
|
1519
1519
|
}
|
|
1520
|
-
let bl = b({ name: "Label", props: { as: { type: [Object, String], default: "label" }, passive: { type: [Boolean], default: false }, id: { type: String, default: () => `headlessui-label-${
|
|
1520
|
+
let bl = b({ name: "Label", props: { as: { type: [Object, String], default: "label" }, passive: { type: [Boolean], default: false }, id: { type: String, default: () => `headlessui-label-${me()}` } }, setup(e2, { slots: t2, attrs: l2 }) {
|
|
1521
1521
|
let a2 = vl();
|
|
1522
|
-
return
|
|
1522
|
+
return f(() => w(a2.register(e2.id))), () => {
|
|
1523
1523
|
let { name: n2 = "Label", slot: r2 = {}, props: o2 = {} } = a2, { id: i2, passive: s2, ...u2 } = e2, d2 = { ...Object.entries(o2).reduce((e3, [t3, l3]) => Object.assign(e3, { [t3]: C(l3) }), {}), id: i2 };
|
|
1524
1524
|
return s2 && (delete d2.onClick, delete d2.htmlFor, delete u2.onClick), se({ ourProps: d2, theirProps: u2, slot: r2, attrs: l2, slots: t2, name: n2 });
|
|
1525
1525
|
};
|
|
@@ -1531,12 +1531,12 @@ let bl = b({ name: "Label", props: { as: { type: [Object, String], default: "lab
|
|
|
1531
1531
|
a2.value && ("LABEL" === e3.currentTarget.tagName && e3.preventDefault(), a2.value.click(), a2.value.focus({ preventScroll: true }));
|
|
1532
1532
|
} } }), r2 = Ft({ name: "SwitchDescription" });
|
|
1533
1533
|
return g(hl, { switchRef: a2, labelledby: n2, describedby: r2 }), () => se({ theirProps: e2, ourProps: {}, slot: {}, slots: t2, attrs: l2, name: "SwitchGroup" });
|
|
1534
|
-
} }), wl = b({ 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: () => `headlessui-switch-${
|
|
1534
|
+
} }), wl = b({ 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: () => `headlessui-switch-${me()}` } }, inheritAttrs: false, setup(e2, { emit: t2, attrs: l2, slots: a2, expose: n2 }) {
|
|
1535
1535
|
let r2 = p(hl, null), [o2, i2] = Xe(y(() => e2.modelValue), (e3) => t2("update:modelValue", e3), y(() => e2.defaultChecked));
|
|
1536
1536
|
function u2() {
|
|
1537
1537
|
i2(!o2.value);
|
|
1538
1538
|
}
|
|
1539
|
-
let g2 = s(null),
|
|
1539
|
+
let g2 = s(null), m2 = null === r2 ? g2 : r2.switchRef, v2 = Oe(y(() => ({ as: e2.as, type: l2.type })), m2);
|
|
1540
1540
|
function b2(e3) {
|
|
1541
1541
|
e3.preventDefault(), u2();
|
|
1542
1542
|
}
|
|
@@ -1555,12 +1555,12 @@ let bl = b({ name: "Label", props: { as: { type: [Object, String], default: "lab
|
|
|
1555
1555
|
function w2(e3) {
|
|
1556
1556
|
e3.preventDefault();
|
|
1557
1557
|
}
|
|
1558
|
-
n2({ el:
|
|
1558
|
+
n2({ el: m2, $el: m2 });
|
|
1559
1559
|
let k2 = y(() => {
|
|
1560
1560
|
var e3, t3;
|
|
1561
|
-
return null == (t3 = null == (e3 = he(
|
|
1561
|
+
return null == (t3 = null == (e3 = he(m2)) ? void 0 : e3.closest) ? void 0 : t3.call(e3, "form");
|
|
1562
1562
|
});
|
|
1563
|
-
return
|
|
1563
|
+
return f(() => {
|
|
1564
1564
|
x([k2], () => {
|
|
1565
1565
|
if (k2.value && void 0 !== e2.defaultChecked)
|
|
1566
1566
|
return k2.value.addEventListener("reset", t3), () => {
|
|
@@ -1572,7 +1572,7 @@ let bl = b({ name: "Label", props: { as: { type: [Object, String], default: "lab
|
|
|
1572
1572
|
}
|
|
1573
1573
|
}, { immediate: true });
|
|
1574
1574
|
}), () => {
|
|
1575
|
-
let { id: t3, name: n3, value: i3, form: s2, ...u3 } = e2, p2 = { checked: o2.value }, g3 = { id: t3, ref:
|
|
1575
|
+
let { id: t3, name: n3, value: i3, form: s2, ...u3 } = e2, p2 = { checked: o2.value }, g3 = { id: t3, ref: m2, role: "switch", type: v2.value, tabIndex: 0, "aria-checked": o2.value, "aria-labelledby": null == r2 ? void 0 : r2.labelledby.value, "aria-describedby": null == r2 ? void 0 : r2.describedby.value, onClick: b2, onKeyup: h2, onKeypress: w2 };
|
|
1576
1576
|
return d(c, [null != n3 && null != o2.value ? d(Ke, pe({ features: We.Hidden, as: "input", type: "checkbox", hidden: true, readOnly: true, checked: o2.value, form: s2, name: n3, value: i3 })) : null, se({ ourProps: g3, theirProps: { ...l2, ...ge(u3, ["modelValue", "defaultChecked"]) }, slot: p2, attrs: l2, slots: a2, name: "Switch" })]);
|
|
1577
1577
|
};
|
|
1578
1578
|
} }), kl = bl;
|
|
@@ -1624,7 +1624,7 @@ function El(e2) {
|
|
|
1624
1624
|
t2.value[r2].state = "hidden";
|
|
1625
1625
|
} }), !jl(t2) && l2.value && (null == e2 || e2()));
|
|
1626
1626
|
}
|
|
1627
|
-
return
|
|
1627
|
+
return f(() => l2.value = true), w(() => l2.value = false), { children: t2, register: function(e3) {
|
|
1628
1628
|
let l3 = t2.value.find(({ id: t3 }) => t3 === e3);
|
|
1629
1629
|
return l3 ? "visible" !== l3.state && (l3.state = "visible") : t2.value.push({ id: e3, state: "visible" }), () => a2(e3, ie.Unmount);
|
|
1630
1630
|
}, unregister: a2 };
|
|
@@ -1657,13 +1657,13 @@ let Ll = oe.RenderStrategy, Bl = b({ props: { as: { type: [Object, String], defa
|
|
|
1657
1657
|
if (null === e3)
|
|
1658
1658
|
throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");
|
|
1659
1659
|
return e3;
|
|
1660
|
-
}(), D2 = s(k2.value ? "visible" : "hidden"), M2 = { value: true }, P2 =
|
|
1660
|
+
}(), D2 = s(k2.value ? "visible" : "hidden"), M2 = { value: true }, P2 = me(), _2 = { value: false }, T2 = El(() => {
|
|
1661
1661
|
!_2.value && "hidden" !== D2.value && (D2.value = "hidden", O2(P2), v2());
|
|
1662
1662
|
});
|
|
1663
|
-
|
|
1663
|
+
f(() => {
|
|
1664
1664
|
let e3 = C2(P2);
|
|
1665
1665
|
w(e3);
|
|
1666
|
-
}),
|
|
1666
|
+
}), m(() => {
|
|
1667
1667
|
if (h2.value === ie.Hidden && P2) {
|
|
1668
1668
|
if (k2.value && "visible" !== D2.value)
|
|
1669
1669
|
return void (D2.value = "visible");
|
|
@@ -1671,15 +1671,15 @@ let Ll = oe.RenderStrategy, Bl = b({ props: { as: { type: [Object, String], defa
|
|
|
1671
1671
|
}
|
|
1672
1672
|
});
|
|
1673
1673
|
let j2 = Ml(e2.enter), E2 = Ml(e2.enterFrom), L2 = Ml(e2.enterTo), B2 = Ml(e2.entered), I2 = Ml(e2.leave), R2 = Ml(e2.leaveFrom), A2 = Ml(e2.leaveTo);
|
|
1674
|
-
return
|
|
1675
|
-
|
|
1674
|
+
return f(() => {
|
|
1675
|
+
m(() => {
|
|
1676
1676
|
if ("visible" === D2.value) {
|
|
1677
1677
|
let e3 = he(b2);
|
|
1678
1678
|
if (e3 instanceof Comment && "" === e3.data)
|
|
1679
1679
|
throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
1680
1680
|
}
|
|
1681
1681
|
});
|
|
1682
|
-
}),
|
|
1682
|
+
}), f(() => {
|
|
1683
1683
|
x([k2], (e3, t3, l3) => {
|
|
1684
1684
|
(function(e4) {
|
|
1685
1685
|
let t4 = M2.value && !S2.value, l4 = he(b2);
|
|
@@ -1691,20 +1691,20 @@ let Ll = oe.RenderStrategy, Bl = b({ props: { as: { type: [Object, String], defa
|
|
|
1691
1691
|
})(l3), M2.value = false;
|
|
1692
1692
|
}, { immediate: true });
|
|
1693
1693
|
}), g(Tl, T2), Se(y(() => re(D2.value, { visible: we.Open, hidden: we.Closed }) | o2.value)), () => {
|
|
1694
|
-
let { appear: t3, show: r3, enter: o3, enterFrom: i3, enterTo: s2, entered: u3, leave: d2, leaveFrom: c3, leaveTo: p2, ...g2 } = e2,
|
|
1695
|
-
return se({ theirProps: { ...g2, ...S2.value && k2.value && Pe.isServer ? { class: a([l2.class, g2.class, ...j2, ...E2]) } : {} }, ourProps:
|
|
1694
|
+
let { appear: t3, show: r3, enter: o3, enterFrom: i3, enterTo: s2, entered: u3, leave: d2, leaveFrom: c3, leaveTo: p2, ...g2 } = e2, f2 = { ref: b2 };
|
|
1695
|
+
return se({ theirProps: { ...g2, ...S2.value && k2.value && Pe.isServer ? { class: a([l2.class, g2.class, ...j2, ...E2]) } : {} }, ourProps: f2, slot: {}, slots: n2, attrs: l2, features: Ll, visible: "visible" === D2.value, name: "TransitionChild" });
|
|
1696
1696
|
};
|
|
1697
1697
|
} }), Il = Bl, Rl = b({ 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: a2 }) {
|
|
1698
1698
|
let n2 = ke(), r2 = y(() => null === e2.show && null !== n2 ? (n2.value & we.Open) === we.Open : e2.show);
|
|
1699
|
-
|
|
1699
|
+
m(() => {
|
|
1700
1700
|
if (![true, false].includes(r2.value))
|
|
1701
1701
|
throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.');
|
|
1702
1702
|
});
|
|
1703
1703
|
let o2 = s(r2.value ? "visible" : "hidden"), i2 = El(() => {
|
|
1704
1704
|
o2.value = "hidden";
|
|
1705
1705
|
}), u2 = s(true), c2 = { show: r2, appear: y(() => e2.appear || !u2.value) };
|
|
1706
|
-
return
|
|
1707
|
-
|
|
1706
|
+
return f(() => {
|
|
1707
|
+
m(() => {
|
|
1708
1708
|
u2.value = false, r2.value ? o2.value = "visible" : jl(i2) || (o2.value = "hidden");
|
|
1709
1709
|
});
|
|
1710
1710
|
}), g(Tl, i2), g(Pl, c2), () => {
|
|
@@ -1765,10 +1765,10 @@ const Ql = { class: "py-1" }, ea = ["onClick"], ta = { key: 1, class: "animate-p
|
|
|
1765
1765
|
let e2 = u2.items.find((e3) => true === e3.active);
|
|
1766
1766
|
return e2 ? e2.name : u2.label;
|
|
1767
1767
|
});
|
|
1768
|
-
return (o3, p2) => l2.loading ? (e(), n("div", ta, [la, r(C(Hl), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5 text-gray-200 dark:text-gray-300" })])) : (e(), t(C(cl), { key: 0, as: "div", class: a(["relative inline-block text-left", { "opacity-25": l2.disabled }]) }, { default: D(() => [i("div", null, [r(C(pl), { class: "inline-flex justify-between w-full rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-indigo-500" }, { default: D(() => [M(P(d2.value) + " ", 1), r(C(Hl), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5" })]), _: 1 })]), r(_, { "enter-active-class": "transition ease-out duration-100", "enter-from-class": "transform opacity-0 scale-95", "enter-to-class": "transform opacity-100 scale-100", "leave-active-class": "transition ease-in duration-75", "leave-from-class": "transform opacity-100 scale-100", "leave-to-class": "transform opacity-0 scale-95" }, { default: D(() => [l2.disabled ? j("", true) : (e(), t(C(gl), { key: 0, class: a([{ "right-0": "right" === l2.position, "left-0": "left" === l2.position }, "origin-top-right absolute mt-2 w-56 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none z-10"]) }, { default: D(() => [i("div", Ql, [(e(true), n(c, null, T(l2.items, (l3, n2) => (e(), t(C(
|
|
1768
|
+
return (o3, p2) => l2.loading ? (e(), n("div", ta, [la, r(C(Hl), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5 text-gray-200 dark:text-gray-300" })])) : (e(), t(C(cl), { key: 0, as: "div", class: a(["relative inline-block text-left", { "opacity-25": l2.disabled }]) }, { default: D(() => [i("div", null, [r(C(pl), { class: "inline-flex justify-between w-full rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-indigo-500" }, { default: D(() => [M(P(d2.value) + " ", 1), r(C(Hl), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5" })]), _: 1 })]), r(_, { "enter-active-class": "transition ease-out duration-100", "enter-from-class": "transform opacity-0 scale-95", "enter-to-class": "transform opacity-100 scale-100", "leave-active-class": "transition ease-in duration-75", "leave-from-class": "transform opacity-100 scale-100", "leave-to-class": "transform opacity-0 scale-95" }, { default: D(() => [l2.disabled ? j("", true) : (e(), t(C(gl), { key: 0, class: a([{ "right-0": "right" === l2.position, "left-0": "left" === l2.position }, "origin-top-right absolute mt-2 w-56 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none z-10"]) }, { default: D(() => [i("div", Ql, [(e(true), n(c, null, T(l2.items, (l3, n2) => (e(), t(C(fl), { key: n2 }, { default: D(() => [i("a", { onClick: (e2) => ((e3) => {
|
|
1769
1769
|
u2.disabled || s2("optionSelected", e3.value);
|
|
1770
1770
|
})(l3), class: a([l3.active ? "bg-gray-100 text-gray-900" : "text-gray-700", "block px-4 py-2 text-sm cursor-pointer"]) }, P(l3.name), 11, ea)]), _: 2 }, 1024))), 128))])]), _: 1 }, 8, ["class"]))]), _: 1 })]), _: 1 }, 8, ["class"]));
|
|
1771
|
-
} }), ra = { key: 0 }, oa = { class: "flex justify-between" }, ia = { key: 0, class: "block text-sm font-medium text-gray-700" }, sa = { key: 1, class: "text-[10px] text-gray-500 uppercase justify-self-end" }, ua = ["disabled", "name", "placeholder", "type"], da = { key: 2, class: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none" }, ca = { key: 1, class: "animate-pulse" }, pa = { 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" }, ga = 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),
|
|
1771
|
+
} }), ra = { key: 0 }, oa = { class: "flex justify-between" }, ia = { key: 0, class: "block text-sm font-medium text-gray-700" }, sa = { key: 1, class: "text-[10px] text-gray-500 uppercase justify-self-end" }, ua = ["disabled", "name", "placeholder", "type"], da = { key: 2, class: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none" }, ca = { key: 1, class: "animate-pulse" }, pa = { 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" }, ga = 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), fa = { name: "uiInput" }, ma = Object.assign(fa, { props: { label: String, type: { type: String, default: "text" }, name: String, placeholder: { type: String, default: "..." }, icon: { type: Function, default: () => {
|
|
1772
1772
|
} }, 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 }) {
|
|
1773
1773
|
const o2 = l2, u2 = t2, d2 = (e2) => {
|
|
1774
1774
|
o2("inputChanged", { value: e2.target.value, name: e2.target.name });
|
|
@@ -1788,17 +1788,19 @@ const Ql = { class: "py-1" }, ea = ["onClick"], ta = { key: 1, class: "animate-p
|
|
|
1788
1788
|
return (l3, s2) => t2.loading ? (e(), n("div", Ma, Pa)) : (e(), n("div", va, [i("div", ya, [t2.label ? (e(), n("label", ba, P(t2.label), 1)) : j("", true), t2.optional ? (e(), n("span", ha, P(t2.optional), 1)) : j("", true)]), i("div", { class: a([[{ "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] = I(() => {
|
|
1789
1789
|
}, ["prevent"])), onDrop: I(c2, ["prevent"]) }, [i("div", xa, [r(z, { icon: t2.icon, size: "massive", color: "gray", "aria-hidden": "true", class: "mb-4", loading: t2.loading }, null, 8, ["icon", "loading"]), i("div", wa, [i("label", ka, [i("span", null, P(t2.placeholder), 1), i("input", { id: "file-upload", name: "file-upload", type: "file", class: "sr-only", accept: t2.accept, onChange: p2 }, null, 40, Sa)]), i("p", Ca, P(t2.dragAndDrop), 1)]), i("p", Oa, P(t2.fileTypesAndSizes), 1), E(i("p", { class: "font-bold text-xs uppercase block p-2 bg-gray-200 rounded" }, P(o2.value), 513), [[B, "" !== o2.value]])])], 34), E(i("p", Da, [r(z, { icon: C(Zl), color: "red", class: "mr-2", loading: t2.loading }, null, 8, ["icon", "loading"]), M(P(t2.error), 1)], 512), [[B, t2.error]])]));
|
|
1790
1790
|
} }), ja = { class: "relative mt-1" }, Ea = { key: 1, class: "animate-pulse px-4 py-2.5 bg-gray-200 rounded-md flex justify-between items-center w-full" }, La = i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1), Ba = { name: "uiSelect" }, Ia = Object.assign(Ba, { props: { items: { type: Array, required: true }, label: String, select: Object, loading: { type: Boolean, default: true } }, emits: ["selectChanged"], setup(l2, { emit: o2 }) {
|
|
1791
|
-
const u2 = s(""), d2 = o2, p2 = l2, g2 = y(() => "" === u2.value ? p2.items : p2.items.filter((e2) => e2.name.toLowerCase().includes(u2.value.toLowerCase()))),
|
|
1792
|
-
return (o3, s2) => l2.loading ? (e(), n("div", Ea, [La, r(C(zl), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5 text-gray-300 dark:text-gray-400" })])) : (e(), t(C(ct), { key: 0, modelValue:
|
|
1791
|
+
const u2 = s(""), d2 = o2, p2 = l2, g2 = y(() => "" === u2.value ? p2.items : p2.items.filter((e2) => e2.name.toLowerCase().includes(u2.value.toLowerCase()))), f2 = y(() => p2.select);
|
|
1792
|
+
return (o3, s2) => l2.loading ? (e(), n("div", Ea, [La, r(C(zl), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5 text-gray-300 dark:text-gray-400" })])) : (e(), t(C(ct), { key: 0, modelValue: f2.value, "onUpdate:modelValue": [s2[1] || (s2[1] = (e2) => f2.value = e2), s2[2] || (s2[2] = (e2) => d2("selectChanged", e2))], as: "div" }, { default: D(() => [r(C(pt), { class: "block text-sm font-medium text-gray-700" }, { default: D(() => [M(P(l2.label), 1)]), _: 1 }), i("div", ja, [r(C(ft), { "display-value": (e2) => e2 == null ? void 0 : e2.name, class: "w-full rounded-md border border-gray-300 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) => u2.value = e2.target.value) }, null, 8, ["display-value"]), r(C(gt), { class: "absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none" }, { default: D(() => [r(C(zl), { "aria-hidden": "true", class: "h-5 w-5 text-gray-400" })]), _: 1 }), g2.value.length > 0 ? (e(), t(C(mt), { key: 0, class: "absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm" }, { default: D(() => [(e(true), n(c, null, T(g2.value, (l3) => (e(), t(C(vt), { key: l3.id, value: l3, as: "template" }, { default: D(({ active: t2, selected: o4 }) => [i("li", { class: a(["relative cursor-default select-none py-2 pl-3 pr-9", t2 ? "bg-indigo-600 text-white" : "text-gray-900"]) }, [i("span", { class: a(["block truncate", o4 && "font-semibold"]) }, P(l3.name), 3), o4 ? (e(), n("span", { key: 0, class: a(["absolute inset-y-0 right-0 flex items-center pr-4", t2 ? "text-white" : "text-indigo-600"]) }, [r(C($l), { "aria-hidden": "true", class: "h-5 w-5", loading: true })], 2)) : j("", true)], 2)]), _: 2 }, 1032, ["value"]))), 128))]), _: 1 })) : j("", true)])]), _: 1 }, 8, ["modelValue"]));
|
|
1793
1793
|
} }), Ra = { key: 1, class: "inline-flex items-center px-3 py-2.5 rounded text-xs font-medium leading-none animate-pulse bg-gray-200" }, Aa = [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12" }, null, -1)], Fa = { name: "uiTag" }, Na = Object.assign(Fa, { props: { color: { type: String, default: "primary" }, loading: { type: Boolean, default: true } }, setup: (t2) => (l2, r2) => t2.loading ? (e(), n("div", Ra, Aa)) : (e(), n("span", { key: 0, class: a([{ "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"]) }, [o(l2.$slots, "default")], 2)) }), $a = { key: 0 }, Ha = { key: 0, class: "block text-sm font-medium text-gray-700" }, Ya = ["disabled", "placeholder"], Va = { key: 1, class: "animate-pulse" }, za = [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)], qa = { name: "uiTextArea" }, Ua = Object.assign(qa, { 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 }) {
|
|
1794
|
-
const o2 = l2, u2 = (e2) => {
|
|
1794
|
+
const o2 = l2, u2 = t2, d2 = (e2) => {
|
|
1795
1795
|
o2("inputChanged", e2.target.value);
|
|
1796
|
-
},
|
|
1797
|
-
return (
|
|
1796
|
+
}, c2 = s(u2.value);
|
|
1797
|
+
return x(() => u2.value, (e2) => {
|
|
1798
|
+
c2.value = e2, o2("inputChanged", e2);
|
|
1799
|
+
}), (l3, o3) => t2.loading ? (e(), n("div", Va, za)) : (e(), n("div", $a, [t2.label ? (e(), n("label", Ha, P(t2.label), 1)) : j("", true), i("div", { class: a({ "mt-1": t2.label }) }, [E(i("textarea", { disabled: t2.disabled, rows: "4", "onUpdate:modelValue": o3[0] || (o3[0] = (e2) => c2.value = e2), placeholder: t2.placeholder, class: a(["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: d2 }, null, 42, Ya), [[R, c2.value]])], 2), E(i("p", { class: a([{ "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"]) }, [r(z, { icon: C(Zl), color: "red", class: "mr-2" }, null, 8, ["icon"]), M(P(t2.error), 1)], 2), [[B, t2.error]])]));
|
|
1798
1800
|
} }), Wa = { class: "text-sm font-medium text-gray-900" }, Ka = { key: 0, class: "text-sm text-gray-500 ml-2" }, Ja = { key: 1, class: "animate-pulse flex items-center" }, Ga = [i("div", { class: "relative bg-gray-200 rounded-full w-12 h-6 p-1 flex items-center" }, [i("div", { class: "rounded-full bg-gray-300 dark:bg-gray-400 h-4 w-4" })], -1), i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-16 ml-2" }, null, -1)], Za = { name: "uiToggle" }, Xa = Object.assign(Za, { props: { item: { type: Object, required: true }, checked: { type: Boolean, default: false }, disabled: { type: Boolean, default: false }, loading: { type: Boolean, default: true } }, setup(l2) {
|
|
1799
1801
|
const o2 = s(l2.checked);
|
|
1800
1802
|
return (s2, u2) => l2.loading ? (e(), n("div", Ja, Ga)) : (e(), t(C(xl), { key: 0, as: "div", class: "flex items-center relative" }, { default: D(() => [r(C(wl), { disabled: l2.disabled, onClick: u2[0] || (u2[0] = (e2) => s2.$emit("toggleChanged", { item: l2.item, active: !o2.value })), modelValue: o2.value, "onUpdate:modelValue": u2[1] || (u2[1] = (e2) => o2.value = e2), class: a([o2.value ? "bg-indigo-600" : "bg-gray-200", "relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"]) }, { default: D(() => [i("span", { "aria-hidden": "true", class: a([o2.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"]), r(C(kl), { as: "span", class: "ml-3" }, { default: D(() => [i("span", Wa, P(l2.item.title), 1), l2.item.subtitle ? (e(), n("span", Ka, P(l2.item.subtitle), 1)) : j("", true)]), _: 1 }), l2.item.action ? (e(), n("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)) }, P(l2.item.action), 1)) : j("", true)]), _: 1 }));
|
|
1801
|
-
} }), Qa = { key: 0, class: "flex flex-col" }, en = { class: "flex" }, tn = { class: "flex-shrink-0" }, ln = { class: "ml-3" }, an = { class: "mt-4" }, nn = { class: "-mx-2 -my-1.5 flex" }, rn = ["onClick"], on = { key: 1, class: "flex flex-col animate-pulse" }, sn = [A('<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)], un = { name: "uiAlert" }, dn = Object.assign(un, { props: { actions: { type: Array }, title: { type: String }, type: { type: String, default: "info" }, loading: { type: Boolean, default: true } }, setup: (l2) => (r2, s2) => l2.loading ? (e(), n("div", on, sn)) : (e(), n("div", Qa, [i("div", { class: a([{ "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", en, [i("div", tn, ["info" === l2.type ? (e(), t(C(Jl), { key: 0, class: "h-8 w-8 text-indigo-400", "aria-hidden": "true" })) : j("", true), "danger" === l2.type ? (e(), t(C(Zl), { key: 1, class: "h-8 w-8 text-red-400", "aria-hidden": "true" })) : j("", true), "warning" === l2.type ? (e(), t(C(Ul), { key: 2, class: "h-8 w-8 text-yellow-400", "aria-hidden": "true" })) : j("", true), "success" === l2.type ? (e(), t(C(Nl), { key: 3, class: "h-8 w-8 text-green-400", "aria-hidden": "true" })) : j("", true)]), i("div", ln, [i("h3", { class: a([{ "text-red-800": "danger" === l2.type, "text-yellow-800": "warning" === l2.type, "text-green-800": "success" === l2.type }, "text-sm font-medium"]) }, P(l2.title), 3), i("div", { class: a([{ "text-red-700": "danger" === l2.type, "text-yellow-700": "warning" === l2.type, "text-green-700": "success" === l2.type }, "mt-2 text-sm"]) }, [o(r2.$slots, "default")], 2), i("div", an, [i("div", nn, [(e(true), n(c, null, T(l2.actions, (t2, o2) => (e(), n("button", { onClick: (e2) => r2.$emit("alertEvent", t2.event), type: "button", key: o2, class: a([{ "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"]) }, P(t2.name), 11, rn))), 128))])])])])], 2)])) }), cn = { key: 0, class: "inline-flex", "aria-label": "Breadcrumb" }, pn = { role: "list", class: "flex items-center space-x-4 text-xs" }, gn = { key: 0 },
|
|
1803
|
+
} }), Qa = { key: 0, class: "flex flex-col" }, en = { class: "flex" }, tn = { class: "flex-shrink-0" }, ln = { class: "ml-3" }, an = { class: "mt-4" }, nn = { class: "-mx-2 -my-1.5 flex" }, rn = ["onClick"], on = { key: 1, class: "flex flex-col animate-pulse" }, sn = [A('<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)], un = { name: "uiAlert" }, dn = Object.assign(un, { props: { actions: { type: Array }, title: { type: String }, type: { type: String, default: "info" }, loading: { type: Boolean, default: true } }, setup: (l2) => (r2, s2) => l2.loading ? (e(), n("div", on, sn)) : (e(), n("div", Qa, [i("div", { class: a([{ "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", en, [i("div", tn, ["info" === l2.type ? (e(), t(C(Jl), { key: 0, class: "h-8 w-8 text-indigo-400", "aria-hidden": "true" })) : j("", true), "danger" === l2.type ? (e(), t(C(Zl), { key: 1, class: "h-8 w-8 text-red-400", "aria-hidden": "true" })) : j("", true), "warning" === l2.type ? (e(), t(C(Ul), { key: 2, class: "h-8 w-8 text-yellow-400", "aria-hidden": "true" })) : j("", true), "success" === l2.type ? (e(), t(C(Nl), { key: 3, class: "h-8 w-8 text-green-400", "aria-hidden": "true" })) : j("", true)]), i("div", ln, [i("h3", { class: a([{ "text-red-800": "danger" === l2.type, "text-yellow-800": "warning" === l2.type, "text-green-800": "success" === l2.type }, "text-sm font-medium"]) }, P(l2.title), 3), i("div", { class: a([{ "text-red-700": "danger" === l2.type, "text-yellow-700": "warning" === l2.type, "text-green-700": "success" === l2.type }, "mt-2 text-sm"]) }, [o(r2.$slots, "default")], 2), i("div", an, [i("div", nn, [(e(true), n(c, null, T(l2.actions, (t2, o2) => (e(), n("button", { onClick: (e2) => r2.$emit("alertEvent", t2.event), type: "button", key: o2, class: a([{ "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"]) }, P(t2.name), 11, rn))), 128))])])])])], 2)])) }), cn = { key: 0, class: "inline-flex", "aria-label": "Breadcrumb" }, pn = { role: "list", class: "flex items-center space-x-4 text-xs" }, gn = { key: 0 }, fn = ["onClick"], mn = { key: 1, class: "flex items-center" }, vn = ["onClick", "aria-current"], yn = { key: 1, class: "flex flex-row items-center animate-pulse" }, bn = [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)], hn = { name: "uiBreadcrumbs" }, xn = Object.assign(hn, { props: { pages: { type: Array, required: true }, loading: { type: Boolean, default: true } }, setup: (t2) => (l2, o2) => t2.loading ? (e(), n("div", yn, bn)) : (e(), n("nav", cn, [i("ol", pn, [(e(true), n(c, null, T(t2.pages, (t3, o3) => (e(), n("li", { key: o3 }, [0 === o3 ? (e(), n("div", gn, [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" }, [r(C(Kl), { class: "flex-shrink-0 h-3 w-3 text-gray-400 mr-4", "aria-hidden": "true" }), i("span", null, P(t3.name), 1)], 8, fn)])) : (e(), n("div", mn, [r(C(Vl), { class: "flex-shrink-0 h-3 w-3 text-gray-400", "aria-hidden": "true" }), i("span", { onClick: (e2) => l2.$emit("breadCrumbClicked", t3.routeName), class: a(["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" : "" }, P(t3.name), 11, vn)]))]))), 128))])])) }), wn = { class: "flex items-center flex-col sm:flex-row justify-center sm:justify-start" }, kn = ["src"], Sn = { class: "font-bold text-center sm:text-left" }, Cn = { class: "mt-1 text-xs text-center sm:text-left" }, On = { key: 0, class: "flex flex-wrap mt-4 justify-center sm:justify-start" }, Dn = { key: 1, class: "rounded-lg bg-white shadow p-6 cursor-pointer animate-pulse" }, Mn = [A('<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)], Pn = { name: "uiCard" }, _n = Object.assign(Pn, { props: { id: { type: String, required: true }, name: { type: String, required: true }, type: String, tags: Array, logo: String, loading: { type: Boolean, default: true } }, setup: (l2) => (a2, r2) => {
|
|
1802
1804
|
var _a2;
|
|
1803
1805
|
return l2.loading ? (e(), n("div", Dn, Mn)) : (e(), n("div", { key: 0, class: "rounded-lg bg-white shadow p-6 cursor-pointer", onClick: r2[0] || (r2[0] = (e2) => a2.$emit("cardSelected", { id: l2.id, name: l2.name, type: l2.type, tags: l2.tags })) }, [i("div", wn, [i("img", { class: "w-16 h-16 rounded-full mb-4 sm:mb-0 sm:mr-4", src: l2.logo }, null, 8, kn), i("div", null, [i("h4", Sn, P(l2.name), 1), i("p", Cn, P(l2.type), 1)])]), ((_a2 = l2.tags) == null ? void 0 : _a2.length) > 0 ? (e(), n("div", On, [(e(true), n(c, null, T(l2.tags, (a3) => (e(), t(Na, { class: "mb-1 mr-1", key: a3.name, color: a3.color, loading: l2.loading }, { default: D(() => [M(P(a3.name), 1)]), _: 2 }, 1032, ["color", "loading"]))), 128))])) : j("", true)]));
|
|
1804
1806
|
} }), Tn = { name: "uiFilter" }, jn = Object.assign(Tn, { 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: a2 }) {
|
|
@@ -1816,9 +1818,9 @@ const Ql = { class: "py-1" }, ea = ["onClick"], ta = { key: 1, class: "animate-p
|
|
|
1816
1818
|
} }), zn = { class: "w-full flex flex-col items-center space-y-4 sm:items-end" }, qn = { 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" }, Un = { class: "p-4" }, Wn = { class: "flex items-start" }, Kn = { class: "flex-shrink-0 mt-0.5" }, Jn = { class: "ml-3 w-0 flex-1 pt-0.5" }, Gn = { class: "font-medium text-gray-900" }, Zn = { class: "mt-1 text-sm text-gray-500" }, Xn = { class: "ml-4 flex-shrink-0 flex" }, Qn = i("span", { class: "sr-only" }, "Close", -1), er = { name: "uiNotification" }, tr = Object.assign(er, { props: { show: Boolean, type: { type: String, default: "info" }, title: String, message: String, fixed: { type: Boolean, default: true } }, setup(t2) {
|
|
1817
1819
|
const l2 = t2, o2 = y(() => l2.show);
|
|
1818
1820
|
return (l3, s2) => (e(), n("div", { "aria-live": "assertive", class: a([{ fixed: t2.fixed }, "inset-0 flex items-end px-4 py-6 pointer-events-none sm:p-6 sm:items-start"]) }, [i("div", zn, [r(_, { "enter-active-class": "transform ease-out duration-300 transition", "enter-from-class": "translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2", "enter-to-class": "translate-y-0 opacity-100 sm:translate-x-0", "leave-active-class": "transition ease-in duration-100", "leave-from-class": "opacity-100", "leave-to-class": "opacity-0" }, { default: D(() => [o2.value ? (e(), n("div", qn, [i("div", Un, [i("div", Wn, [i("div", Kn, [E(r(C(Nl), { "aria-hidden": "true", class: "h-6 w-6 text-green-400" }, null, 512), [[B, "success" === t2.type]]), E(r(C(Zl), { "aria-hidden": "true", class: "h-6 w-6 text-red-400" }, null, 512), [[B, "danger" === t2.type]]), E(r(C(Ul), { "aria-hidden": "true", class: "h-6 w-6 text-yellow-400" }, null, 512), [[B, "warning" === t2.type]]), E(r(C(Jl), { "aria-hidden": "true", class: "h-6 w-6 text-indigo-600" }, null, 512), [[B, "info" === t2.type]])]), i("div", Jn, [i("p", Gn, P(t2.title), 1), i("p", Zn, P(t2.message), 1)]), i("div", Xn, [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")) }, [Qn, r(C(Xl), { "aria-hidden": "true", class: "h-5 w-5" })])])])])])) : j("", true)]), _: 1 })])], 2));
|
|
1819
|
-
} }), lr = { key: 0, role: "list", class: "divide-y divide-gray-100" }, ar = { class: "min-w-0" }, nr = { class: "flex items-start gap-x-3" }, rr = { class: "text-sm font-semibold leading-6 text-gray-900" }, or = { class: "mt-1 flex items-center gap-x-2 text-xs leading-5 text-gray-500" }, ir = { class: "truncate" }, sr = { class: "flex flex-none items-center gap-x-4" }, ur = ["href"], dr = { class: "sr-only" }, cr = { key: 1, class: "divide-y divide-gray-100 animate-pulse" }, pr = [A('<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)], gr = { name: "uiTaskList" },
|
|
1821
|
+
} }), lr = { key: 0, role: "list", class: "divide-y divide-gray-100" }, ar = { class: "min-w-0" }, nr = { class: "flex items-start gap-x-3" }, rr = { class: "text-sm font-semibold leading-6 text-gray-900" }, or = { class: "mt-1 flex items-center gap-x-2 text-xs leading-5 text-gray-500" }, ir = { class: "truncate" }, sr = { class: "flex flex-none items-center gap-x-4" }, ur = ["href"], dr = { class: "sr-only" }, cr = { key: 1, class: "divide-y divide-gray-100 animate-pulse" }, pr = [A('<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)], gr = { name: "uiTaskList" }, fr = Object.assign(gr, { props: { tasks: { type: Array, required: true }, loading: { type: Boolean, default: true } }, setup: (t2) => (l2, r2) => t2.loading ? (e(), n("ul", cr, [(e(true), n(c, null, T(t2.tasks, (t3) => (e(), n("li", { key: t3.id, class: "flex items-center justify-between gap-x-6 py-5" }, pr))), 128))])) : (e(), n("ul", lr, [(e(true), n(c, null, T(t2.tasks, (t3) => (e(), n("li", { key: t3.id, class: "flex items-center justify-between gap-x-6 py-5" }, [i("div", ar, [i("div", nr, [i("p", rr, P(t3.name), 1), i("p", { class: a([{ "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"]) }, P(t3.statusLiteral), 3)]), i("div", or, [i("p", ir, P(t3.description), 1)])]), i("div", sr, [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" }, [M(P(t3.action), 1), i("span", dr, ", " + P(t3.name), 1)], 8, ur)])]))), 128))])) });
|
|
1820
1822
|
"undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self && self;
|
|
1821
|
-
function
|
|
1823
|
+
function mr(e2) {
|
|
1822
1824
|
return e2 && e2.__esModule && Object.prototype.hasOwnProperty.call(e2, "default") ? e2.default : e2;
|
|
1823
1825
|
}
|
|
1824
1826
|
!function(e2) {
|
|
@@ -1879,7 +1881,7 @@ Lr.exports = function(e2, t2, l2) {
|
|
|
1879
1881
|
return this.format(e3) === t3.format(e3);
|
|
1880
1882
|
};
|
|
1881
1883
|
};
|
|
1882
|
-
const Br =
|
|
1884
|
+
const Br = mr(Lr.exports), Ir = { class: "text-xs" }, Rr = { class: "font-bold text-lg" }, Ar = { class: "text-xs font-medium" };
|
|
1883
1885
|
const Fr = { name: "dayPrice", props: { currency: String, price: Object, basePrice: Number, isBasePrice: { type: Boolean, default: false } }, computed: { currentDay() {
|
|
1884
1886
|
return { isWeekend: 6 == H(this.price.date).format("d") || 0 == H(this.price.date).format("d"), price: this.price.price };
|
|
1885
1887
|
} } }, Nr = { class: "priceDay" };
|
|
@@ -1911,11 +1913,11 @@ const $r = { name: "uiPriceCalendar", data: () => ({ today: /* @__PURE__ */ new
|
|
|
1911
1913
|
this.$emit("tableAction", e2);
|
|
1912
1914
|
}, changeRoomPrice(e2) {
|
|
1913
1915
|
this.$emit("changeRoomPrice", e2);
|
|
1914
|
-
} } }, Hr = { key: 0, class: "px-4 sm:px-6 lg:px-8" }, Yr = { class: "flow-root" }, Vr = { class: "overflow-x-auto sm:-mx-6 lg:-mx-8 shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg" }, zr = { class: "inline-block min-w-full align-middle" }, qr = { class: "min-w-full" }, Ur = { class: "bg-white" }, Wr = { 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" }, Kr = { colspan: "20", scope: "colgroup", class: "bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, Jr = i("span", null, "Categoría: Simple", -1), Gr = i("td", { colspan: "6", class: "pl-4" }, " Precios de selección ", -1), Zr = i("td", { colspan: "6", class: "pl-4" }, " Precios de mejora ", -1), Xr = { colspan: "20", scope: "colgroup", class: "bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900 relative" }, Qr = { 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" }, eo = ["onClick"], to = i("span", null, "Precios de selección", -1), lo = { colspan: "2", scope: "colgroup", class: "relative bg-gray-100 py-3.5 pl-4 pr-3 text-left font-semibold text-gray-900" }, ao = ["checked", "indeterminate"], no = i("span", { class: "pl-6" }, "Habitación", -1), ro = i("th", { colspan: "2", scope: "colgroup", class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, " Edificio ", -1), oo = i("th", { colspan: "2", scope: "colgroup", class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, " Planta ", -1), io = 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), so = { colspan: "2", class: "relative py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6" }, uo = { key: 0, class: "absolute inset-y-0 left-0 w-0.5 bg-indigo-600" }, co = ["value"], po = { class: "pl-6" }, go = { colspan: "2", class: "pl-4" },
|
|
1915
|
-
const
|
|
1916
|
+
} } }, Hr = { key: 0, class: "px-4 sm:px-6 lg:px-8" }, Yr = { class: "flow-root" }, Vr = { class: "overflow-x-auto sm:-mx-6 lg:-mx-8 shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg" }, zr = { class: "inline-block min-w-full align-middle" }, qr = { class: "min-w-full" }, Ur = { class: "bg-white" }, Wr = { 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" }, Kr = { colspan: "20", scope: "colgroup", class: "bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, Jr = i("span", null, "Categoría: Simple", -1), Gr = i("td", { colspan: "6", class: "pl-4" }, " Precios de selección ", -1), Zr = i("td", { colspan: "6", class: "pl-4" }, " Precios de mejora ", -1), Xr = { colspan: "20", scope: "colgroup", class: "bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900 relative" }, Qr = { 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" }, eo = ["onClick"], to = i("span", null, "Precios de selección", -1), lo = { colspan: "2", scope: "colgroup", class: "relative bg-gray-100 py-3.5 pl-4 pr-3 text-left font-semibold text-gray-900" }, ao = ["checked", "indeterminate"], no = i("span", { class: "pl-6" }, "Habitación", -1), ro = i("th", { colspan: "2", scope: "colgroup", class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, " Edificio ", -1), oo = i("th", { colspan: "2", scope: "colgroup", class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, " Planta ", -1), io = 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), so = { colspan: "2", class: "relative py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6" }, uo = { key: 0, class: "absolute inset-y-0 left-0 w-0.5 bg-indigo-600" }, co = ["value"], po = { class: "pl-6" }, go = { colspan: "2", class: "pl-4" }, fo = { colspan: "2", class: "pl-4" };
|
|
1917
|
+
const mo = vr($r, [["render", function(l2, a2, o2, s2, u2, d2) {
|
|
1916
1918
|
var _a2, _b;
|
|
1917
|
-
const p2 = F("DateSelector"), g2 = F("Day"),
|
|
1918
|
-
return o2.loading ? (e(), t(v2, { key: 1 })) : (e(), n("div", Hr, [i("div", Yr, [i("div", Vr, [i("div", zr, [i("table", qr, [i("tbody", Ur, [i("tr", null, [i("th", Wr, [r(p2, { selectedDate: l2.date, onDateSelected: a2[0] || (a2[0] = (e2) => d2.changeDate(e2)) }, null, 8, ["selectedDate"])]), (e(true), n(c, null, T(d2.days, (t2, l3) => (e(), n("th", { scope: "col", key: l3, class: "text-sm font-semibold text-gray-900 p-0" }, [r(g2, { class: "border-l border-gray-200 px-6 py-3", day: t2 }, null, 8, ["day"])]))), 128))]), i("tr", null, [i("th", Kr, [Jr, r(
|
|
1919
|
+
const p2 = F("DateSelector"), g2 = F("Day"), f2 = F("uiButton"), m2 = F("Price"), v2 = F("SkeletonTable");
|
|
1920
|
+
return o2.loading ? (e(), t(v2, { key: 1 })) : (e(), n("div", Hr, [i("div", Yr, [i("div", Vr, [i("div", zr, [i("table", qr, [i("tbody", Ur, [i("tr", null, [i("th", Wr, [r(p2, { selectedDate: l2.date, onDateSelected: a2[0] || (a2[0] = (e2) => d2.changeDate(e2)) }, null, 8, ["selectedDate"])]), (e(true), n(c, null, T(d2.days, (t2, l3) => (e(), n("th", { scope: "col", key: l3, class: "text-sm font-semibold text-gray-900 p-0" }, [r(g2, { class: "border-l border-gray-200 px-6 py-3", day: t2 }, null, 8, ["day"])]))), 128))]), i("tr", null, [i("th", Kr, [Jr, r(f2, { loading: o2.loading, class: "ml-4", size: "small", onClick: d2.changeCategoryBulkPrices }, { default: D(() => [M("Cambiar precios en bloque ")]), _: 1 }, 8, ["loading", "onClick"])])]), i("tr", null, [Gr, (e(true), n(c, null, T(o2.category.selectionPrices, (t2, l3) => (e(), n("td", { key: l3, class: "p-0" }, [r(m2, { onClick: (e2) => d2.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: o2.currency.symbol, isBasePrice: true }, null, 8, ["onClick", "price", "currency"])]))), 128))]), i("tr", null, [Zr, (e(true), n(c, null, T(o2.category.upgradePrices, (t2, l3) => (e(), n("td", { key: l3, class: "p-0" }, [r(m2, { onClick: (e2) => d2.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: o2.currency.symbol, isBasePrice: true }, null, 8, ["onClick", "price", "currency"])]))), 128))]), i("tr", null, [i("th", Xr, [((_a2 = l2.selectedRooms) == null ? void 0 : _a2.length) > 0 && ((_b = o2.actions) == null ? void 0 : _b.length) > 0 ? (e(), n("div", Qr, [(e(true), n(c, null, T(o2.actions, (t2, a3) => (e(), n("button", { onClick: (e2) => d2.tableAction({ action: t2.id, items: l2.selectedRooms }), key: a3, 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" }, P(t2.name), 9, eo))), 128))])) : j("", true), to])]), i("tr", null, [i("th", lo, [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: d2.indeterminate || l2.selectedRooms.length === o2.rooms.length, indeterminate: d2.indeterminate, onChange: a2[1] || (a2[1] = (e2) => l2.selectedRooms = e2.target.checked ? o2.rooms.map((e3) => e3.name) : []) }, null, 40, ao), no]), ro, oo, io]), (e(true), n(c, null, T(o2.rooms, (t2) => (e(), n("tr", { key: t2.name, class: "even:bg-gray-100" }, [i("td", so, [l2.selectedRooms.includes(t2.name) ? (e(), n("div", uo)) : j("", true), E(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": a2[2] || (a2[2] = (e2) => l2.selectedRooms = e2) }, null, 8, co), [[N, l2.selectedRooms]]), i("span", po, P(t2.name), 1)]), i("td", go, P(t2.building), 1), i("td", fo, P(t2.floor), 1), (e(true), n(c, null, T(t2.selectionPrices, (t3, l3) => (e(), n("td", { class: "p-0", key: l3 }, [r(m2, { onClick: (e2) => d2.changeRoomPrice(t3), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 cursor-pointer", price: t3, currency: o2.currency.symbol, basePrice: d2.getSelectionBasePrice(t3) }, null, 8, ["onClick", "price", "currency", "basePrice"])]))), 128))]))), 128))])])])])])]));
|
|
1919
1921
|
}]]), vo = { class: "chart-selector flex flex-row items-center justify-center" }, yo = { name: "rangeSelector" }, bo = Object.assign(yo, { props: { range: { type: String } }, emits: ["rangeSelected"], setup(t2, { emit: l2 }) {
|
|
1920
1922
|
const r2 = l2, o2 = t2;
|
|
1921
1923
|
let s2 = y(() => o2.range);
|
|
@@ -1927,55 +1929,55 @@ const fo = vr($r, [["render", function(l2, a2, o2, s2, u2, d2) {
|
|
|
1927
1929
|
const o2 = l2, s2 = t2;
|
|
1928
1930
|
let u2 = { chart: { toolbar: { show: false }, zoom: { enabled: false } }, colors: ["#715aff", "#00ffff", "#aba9ba"], stroke: { show: true, curve: "stepline", lineCap: "butt", width: 1, dashArray: 0 }, dataLabels: { enabled: false }, markers: { strokeWidth: 0, size: 4, hover: { size: 8 } } };
|
|
1929
1931
|
"area" === s2.type && (u2.tooltip = { intersect: true, shared: false });
|
|
1930
|
-
const d2 = y(() => s2.series), p2 = y(() => (u2.chart.stacked = s2.stacked, { ...u2, ...s2.options, plotOptions: { bar: { horizontal: s2.horizontal } } })), g2 = () => o2("chartUpdated"),
|
|
1932
|
+
const d2 = y(() => s2.series), p2 = y(() => (u2.chart.stacked = s2.stacked, { ...u2, ...s2.options, plotOptions: { bar: { horizontal: s2.horizontal } } })), g2 = () => o2("chartUpdated"), f2 = (e2, t3, l3) => {
|
|
1931
1933
|
o2("dataPointSelection", { id: s2.id, chartContext: t3, config: l3, event: e2 });
|
|
1932
1934
|
};
|
|
1933
|
-
return (l3, o3) => (e(), n(c, null, [E(i("div", { class: a(["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", ho, [i("div", xo, P(t2.title), 1), r(bo, { range: t2.range, onRangeSelected: o3[0] || (o3[0] = (e2) => l3.$emit("selectedRange", { range: e2, chartId: t2.id })) }, null, 8, ["range"])]), E(i("div", wo, [r(C(Y), { type: t2.type, series: d2.value, width: "100%", height: t2.height, options: p2.value, onUpdated: g2, onMounted: g2, onDataPointSelection:
|
|
1935
|
+
return (l3, o3) => (e(), n(c, null, [E(i("div", { class: a(["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", ho, [i("div", xo, P(t2.title), 1), r(bo, { range: t2.range, onRangeSelected: o3[0] || (o3[0] = (e2) => l3.$emit("selectedRange", { range: e2, chartId: t2.id })) }, null, 8, ["range"])]), E(i("div", wo, [r(C(Y), { type: t2.type, series: d2.value, width: "100%", height: t2.height, options: p2.value, onUpdated: g2, onMounted: g2, onDataPointSelection: f2 }, null, 8, ["type", "series", "height", "options"])], 512), [[B, !t2.empty]]), E(i("div", ko, [r(z, { icon: C(Ul), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), So], 512), [[B, t2.empty]])], 2), [[B, !t2.loading]]), E(i("div", Co, Oo, 512), [[B, t2.loading]])], 64));
|
|
1934
1936
|
} }), Po = { name: "uiFooter" }, _o = { class: "bg-white" }, To = [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)];
|
|
1935
1937
|
const jo = vr(Po, [["render", function(t2, l2, a2, r2, o2, i2) {
|
|
1936
1938
|
return e(), n("footer", _o, To);
|
|
1937
1939
|
}]]), Eo = i("div", { class: "spinner h-12 w-12 mb-6" }, [i("img", { src: "https://images.hotelinking.com/ui/loader.gif", alt: "loading animation" })], -1), Lo = { name: "uiLoadScreen" }, Bo = Object.assign(Lo, { props: { title: String, message: String, fixed: { type: Boolean, default: true } }, setup: (t2) => (l2, r2) => (e(), n("div", { class: a([{ 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"]) }, [Eo, E(i("h2", { class: "text-xs font-bold text-center uppercase mb-2" }, P(t2.title), 513), [[B, t2.title]]), E(i("p", { class: "text-xs text-center uppercase md:w-1/4" }, P(t2.message), 513), [[B, t2.message]])], 2)) }), Io = { key: 0, class: "py-6 flex items-center justify-between" }, Ro = { class: "flex-1 flex justify-between sm:hidden" }, Ao = { 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" }, Fo = { 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" }, No = { class: "hidden sm:flex-1 sm:flex sm:items-center sm:justify-between" }, $o = { class: "text-sm text-gray-700" }, Ho = { class: "font-bold" }, Yo = { class: "font-bold" }, Vo = { class: "relative z-0 inline-flex rounded-md shadow-sm -space-x-px", "aria-label": "Pagination" }, zo = { class: "sr-only" }, qo = ["onClick"], Uo = { class: "sr-only" }, Wo = { key: 1, class: "py-6 flex flex-row justify-between items-center animate-pulse" }, Ko = [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)], Jo = { name: "uiPagination" }, Go = Object.assign(Jo, { props: { current: { type: Number, requires: true }, total: { type: Number, requires: true }, loading: { type: Boolean, default: true } }, emits: ["changePage"], setup(t2, { emit: l2 }) {
|
|
1938
|
-
const u2 = l2, d2 = t2, p2 = s(3), g2 = y(() => Math.max(1, Number(d2.current) - Number(p2.value))),
|
|
1940
|
+
const u2 = l2, d2 = t2, p2 = s(3), g2 = y(() => Math.max(1, Number(d2.current) - Number(p2.value))), f2 = y(() => Math.min(Number(d2.current) + Number(p2.value), Number(d2.total))), m2 = y(() => {
|
|
1939
1941
|
let e2 = [];
|
|
1940
|
-
for (let t3 = Number(g2.value); t3 <= Number(
|
|
1942
|
+
for (let t3 = Number(g2.value); t3 <= Number(f2.value); t3++)
|
|
1941
1943
|
e2.push(t3);
|
|
1942
1944
|
return e2;
|
|
1943
1945
|
});
|
|
1944
|
-
return (l3, s2) => t2.loading ? (e(), n("div", Wo, Ko)) : (e(), n("div", Io, [i("div", Ro, [i("a", Ao, [o(l3.$slots, "previous")]), i("a", Fo, [o(l3.$slots, "next")])]), i("div", No, [i("div", null, [i("p", $o, [o(l3.$slots, "showing"), M(), i("span", Ho, P(t2.current + " "), 1), o(l3.$slots, "of"), M(), i("span", Yo, P(t2.total), 1)])]), i("div", null, [i("nav", Vo, [E(i("button", { onClick: s2[0] || (s2[0] = (e2) => u2("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", zo, [o(l3.$slots, "previous")]), r(C(Yl), { class: "h-5 w-5", "aria-hidden": "true" })], 512), [[B, 1 !== t2.current]]), (e(true), n(c, null, T(
|
|
1946
|
+
return (l3, s2) => t2.loading ? (e(), n("div", Wo, Ko)) : (e(), n("div", Io, [i("div", Ro, [i("a", Ao, [o(l3.$slots, "previous")]), i("a", Fo, [o(l3.$slots, "next")])]), i("div", No, [i("div", null, [i("p", $o, [o(l3.$slots, "showing"), M(), i("span", Ho, P(t2.current + " "), 1), o(l3.$slots, "of"), M(), i("span", Yo, P(t2.total), 1)])]), i("div", null, [i("nav", Vo, [E(i("button", { onClick: s2[0] || (s2[0] = (e2) => u2("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", zo, [o(l3.$slots, "previous")]), r(C(Yl), { class: "h-5 w-5", "aria-hidden": "true" })], 512), [[B, 1 !== t2.current]]), (e(true), n(c, null, T(m2.value, (l4) => (e(), n("button", { onClick: (e2) => u2("changePage", l4), key: l4, "aria-current": "page", class: a([[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"]) }, P(l4), 11, qo))), 128)), E(i("button", { onClick: s2[1] || (s2[1] = (e2) => u2("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", Uo, [o(l3.$slots, "next")]), r(C(Vl), { class: "h-5 w-5", "aria-hidden": "true" })], 512), [[B, t2.current !== t2.total]])])])])]));
|
|
1945
1947
|
} }), Zo = { class: "hidden md:flex md:flex-col sticky md:inset-y-0" }, Xo = { class: "flex flex-col flex-grow overflow-y-auto" }, Qo = { class: "grow flex flex-col" }, ei = { class: "flex-1 space-y-1", "aria-label": "Sidebar" }, ti = { key: 0 }, li = ["onClick"], ai = { key: 0 }, ni = { key: 1, class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, ri = { key: 0, class: "flex-1" }, oi = { key: 1, class: "flex-1" }, ii = [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1)], si = { key: 0 }, ui = { key: 1, class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, di = { name: "uiSidebar" }, ci = Object.assign(di, { props: { navigation: { type: Array, required: true }, loading: { type: Boolean, default: true } }, emits: ["sideBarClick"], setup(l2, { emit: o2 }) {
|
|
1946
1948
|
const s2 = o2;
|
|
1947
1949
|
return (o3, u2) => (e(), n("div", Zo, [i("div", Xo, [i("div", Qo, [i("nav", ei, [(e(true), n(c, null, T(l2.navigation, (o4) => (e(), n(c, { key: o4.name }, [o4.children ? (e(), t(C(tl), { key: 1, as: "div", class: "space-y-1" }, { default: D(({ open: i2 }) => [r(C(ll), { class: a([o4.current ? "bg-indigo-600 text-white" : "text-gray-600 hover:bg-gray-50 hover:text-gray-900", "group w-full flex items-center pl-2 pr-1 py-2 text-left text-sm font-medium rounded-md focus:outline-none"]) }, { default: D(() => [r(z, { loading: l2.loading, icon: o4.icon, class: "mr-3 flex-shrink-0 h-6 w-6 text-gray-400 group-hover:text-gray-500", "aria-hidden": "true" }, null, 8, ["loading", "icon"]), l2.loading ? (e(), n("div", oi, ii)) : (e(), n("span", ri, P(o4.name), 1)), r(C(Vl), { class: a([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"]), r(C(al), { class: "space-y-1" }, { default: D(() => [(e(true), n(c, null, T(o4.children, (a2) => (e(), t(C(ll), { onClick: (e2) => s2("sideBarClick", a2.id), key: a2.name, class: "group w-full flex items-center pl-11 pr-2 py-2 text-sm font-medium text-gray-600 rounded-md hover:text-gray-900 hover:bg-gray-50" }, { default: D(() => [l2.loading ? (e(), n("div", ui)) : (e(), n("span", si, P(a2.name), 1))]), _: 2 }, 1032, ["onClick"]))), 128))]), _: 2 }, 1024)]), _: 2 }, 1024)) : (e(), n("div", ti, [i("button", { onClick: (e2) => s2("sideBarClick", o4.id), class: a([o4.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"]) }, [r(z, { loading: l2.loading, icon: o4.icon, class: a([o4.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(), n("div", ni)) : (e(), n("span", ai, P(o4.name), 1))], 10, li)]))], 64))), 128))])])])]));
|
|
1948
|
-
} }), pi = { key: 0 }, gi = { class: "ml-16 text-sm font-medium text-gray-500 truncate" },
|
|
1950
|
+
} }), pi = { key: 0 }, gi = { class: "ml-16 text-sm font-medium text-gray-500 truncate" }, fi = { class: "ml-16 flex items-baseline pb-5" }, mi = { class: "text-2xl font-semibold text-gray-900" }, vi = { class: "absolute bottom-0 inset-x-0 bg-gray-50 px-4 py-4 sm:px-6" }, yi = { class: "text-sm" }, bi = { key: 1 }, hi = { class: "relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full pb-6" }, xi = { class: "absolute bg-gray-200 rounded-md p-3 animate-pulse" }, wi = 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), ki = 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), Si = { name: "uiStats" }, Ci = Object.assign(Si, { props: { item: { type: Object, required: true }, loading: { type: Boolean, default: true } }, emits: ["statClick"], setup(l2, { emit: o2 }) {
|
|
1949
1951
|
const s2 = o2;
|
|
1950
|
-
return (o3, u2) => l2.loading ? (e(), n("div", bi, [i("div", hi, [i("dt", null, [i("div", xi, [r(z, { loading: l2.loading, icon: l2.item.icon, class: "h-6 w-6 text-white", "aria-hidden": "true" }, null, 8, ["loading", "icon"])]), wi, ki])])])) : (e(), n("div", pi, [i("div", { class: a(["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: a(["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 }]) }, [r(z, { icon: l2.item.icon, class: "h-6 w-6 text-white", "aria-hidden": "true", loading: l2.loading }, null, 8, ["icon", "loading"])], 2), i("p", gi, P(l2.item.name), 1)]), i("dd",
|
|
1952
|
+
return (o3, u2) => l2.loading ? (e(), n("div", bi, [i("div", hi, [i("dt", null, [i("div", xi, [r(z, { loading: l2.loading, icon: l2.item.icon, class: "h-6 w-6 text-white", "aria-hidden": "true" }, null, 8, ["loading", "icon"])]), wi, ki])])])) : (e(), n("div", pi, [i("div", { class: a(["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: a(["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 }]) }, [r(z, { icon: l2.item.icon, class: "h-6 w-6 text-white", "aria-hidden": "true", loading: l2.loading }, null, 8, ["icon", "loading"])], 2), i("p", gi, P(l2.item.name), 1)]), i("dd", fi, [i("p", mi, P(l2.item.stat), 1), l2.item.changeType ? (e(), n("p", { key: 0, class: a([{ "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(C(Fl), { key: 0, class: "self-center flex-shrink-0 h-3 w-3 text-green-500", "aria-hidden": "true" })) : j("", true), "decrease" === l2.item.changeType ? (e(), t(C(Al), { key: 1, class: "self-center flex-shrink-0 h-3 w-3 text-red-500", "aria-hidden": "true" })) : j("", true), M(" " + P(l2.item.change), 1)], 2)) : j("", true), E(i("div", vi, [i("div", yi, [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" }, P(l2.item.actionText), 1)])], 512), [[B, l2.item.showFooter]])])], 2)]));
|
|
1951
1953
|
} }), Oi = { key: 0, class: "overflow-hidden bg-white shadow sm:rounded-lg" }, Di = { class: "px-4 py-5 sm:px-6" }, Mi = { class: "text-lg font-medium leading-6 text-gray-900" }, Pi = { class: "mt-1 max-w-2xl text-sm text-gray-500" }, _i = { class: "border-t border-gray-200" }, Ti = { class: "text-sm font-medium text-gray-500" }, ji = { key: 0, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal" }, Ei = { key: 1, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal" }, Li = ["onClick"], Bi = { key: 3, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-words" }, Ii = { key: 1, class: "overflow-hidden bg-white shadow sm:rounded-lg" }, Ri = A('<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), Ai = { class: "border-t border-gray-200" }, Fi = [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)], Ni = { name: "uiStripedCard" }, $i = Object.assign(Ni, { props: { title: String, subtitle: String, items: Object, loading: { type: Boolean, default: true } }, emits: ["itemClicked"], setup: (l2, { emit: o2 }) => (o3, s2) => l2.loading ? (e(), n("div", Ii, [Ri, i("div", Ai, [i("dl", null, [(e(), n(c, null, T(5, (e2) => i("div", { key: e2, class: a(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [e2 % 2 == 0 ? "bg-gray-50" : "bg-white"]]) }, Fi, 2)), 64))])])])) : (e(), n("div", Oi, [i("div", Di, [i("h3", Mi, P(l2.title), 1), i("p", Pi, P(l2.subtitle), 1)]), i("div", _i, [i("dl", null, [(e(true), n(c, null, T(l2.items, (s3, u2) => (e(), n("div", { key: u2, class: a(["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", Ti, P(s3.title), 1), "tag" === s3.type ? (e(), n("dd", ji, [r(Na, { color: s3.color }, { default: D(() => [M(P(s3.text), 1)]), _: 2 }, 1032, ["color"])])) : "tags" === s3.type ? (e(), n("dd", Ei, [(e(true), n(c, null, T(s3.tags, (a2, n2) => (e(), t(Na, { loading: l2.loading, key: n2, color: a2.color, class: "mr-2 mb-2" }, { default: D(() => [M(P(a2.text), 1)]), _: 2 }, 1032, ["loading", "color"]))), 128))])) : "link" === s3.type ? (e(), n("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) => o3.$emit("itemClicked", s3.emits) }, P(s3.text), 9, Li)) : (e(), n("dd", Bi, P(s3.text), 1))], 2))), 128))])])])) }), Hi = { 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" }, Yi = 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), Vi = { class: "ml-2" }, zi = { __name: "tooltip", props: { tip: { type: String, required: true } }, setup: (t2) => (l2, a2) => (e(), n("div", Hi, [Yi, i("div", null, [r(z, { icon: C(Gl), loading: false, color: "white", size: "big" }, null, 8, ["icon"])]), i("span", Vi, P(t2.tip), 1)])) }, qi = { key: 0 }, Ui = { class: "flex flex-col" }, Wi = { class: "-my-2 overflow-x-auto" }, Ki = { class: "inline-block min-w-full py-2 align-middle px-1" }, Ji = { class: "relative overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg" }, Gi = { 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" }, Zi = ["onClick"], Xi = { class: "min-w-full table-fixed divide-y divide-gray-300" }, Qi = { class: "bg-gray-50" }, es = ["checked", "indeterminate"], ts = ["onMouseover", "onMouseleave"], ls = ["onClick"], as = { key: 2, class: "group flex items-center uppercase text-xs" }, ns = { class: "divide-y divide-gray-200 bg-white" }, rs = { key: 0, class: "absolute inset-y-0 left-0 w-0.5 bg-indigo-600" }, os = ["value"], is = ["onClick"], ss = { key: 2 }, us = { name: "uiTable" }, ds = Object.assign(us, { 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: o2 }) {
|
|
1952
1954
|
let u2 = s([]);
|
|
1953
1955
|
s(false);
|
|
1954
1956
|
let d2 = s(void 0);
|
|
1955
|
-
const p2 = o2, g2 = l2,
|
|
1957
|
+
const p2 = o2, g2 = l2, f2 = y(() => u2.value.length > 0 && u2.value.length < g2.items.length), m2 = (e2, t2) => {
|
|
1956
1958
|
d2 !== e2 && t2 && (d2.value = e2), t2 || (d2.value = void 0);
|
|
1957
1959
|
};
|
|
1958
1960
|
return (o3, s2) => {
|
|
1959
1961
|
var _a2, _b;
|
|
1960
|
-
return l2.loading ? (e(), t(Er, { key: 1 })) : (e(), n("div", qi, [i("div", Ui, [i("div", Wi, [i("div", Ki, [i("div", Ji, [((_a2 = C(u2)) == null ? void 0 : _a2.length) > 0 && ((_b = l2.actions) == null ? void 0 : _b.length) > 0 ? (e(), n("div", Gi, [(e(true), n(c, null, T(l2.actions, (t2, l3) => (e(), n("button", { onClick: (e2) => p2("tableAction", { action: t2.id, items: C(u2) }), 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" }, P(t2.name), 9, Zi))), 128))])) : j("", true), i("table", Xi, [i("thead", Qi, [i("tr", null, [i("th", { scope: "col", class: a([l2.actions ? "px-6 sm:px-8" : "px-3", "relative"]) }, [l2.actions ? (e(), n("input", { key: 0, checked:
|
|
1962
|
+
return l2.loading ? (e(), t(Er, { key: 1 })) : (e(), n("div", qi, [i("div", Ui, [i("div", Wi, [i("div", Ki, [i("div", Ji, [((_a2 = C(u2)) == null ? void 0 : _a2.length) > 0 && ((_b = l2.actions) == null ? void 0 : _b.length) > 0 ? (e(), n("div", Gi, [(e(true), n(c, null, T(l2.actions, (t2, l3) => (e(), n("button", { onClick: (e2) => p2("tableAction", { action: t2.id, items: C(u2) }), 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" }, P(t2.name), 9, Zi))), 128))])) : j("", true), i("table", Xi, [i("thead", Qi, [i("tr", null, [i("th", { scope: "col", class: a([l2.actions ? "px-6 sm:px-8" : "px-3", "relative"]) }, [l2.actions ? (e(), n("input", { key: 0, checked: f2.value || C(u2).length === l2.items.length, indeterminate: f2.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) => $(u2) ? u2.value = e2.target.checked ? l2.items.map((e3) => e3.id) : [] : u2 = e2.target.checked ? l2.items.map((e3) => e3.id) : []) }, null, 40, es)) : j("", true)], 2), (e(true), n(c, null, T(l2.header, (o4, s3) => (e(), n("th", { key: s3, class: "py-3.5 pr-3 text-left font-semibold text-gray-900 flex-wrap relative", scope: "col", onMouseover: (e2) => m2(o4.name, true), onMouseleave: (e2) => m2(o4.name, false) }, [o4.tooltip ? E((e(), t(zi, { key: 0, tip: o4.tooltip }, null, 8, ["tip"])), [[B, C(d2) === o4.name]]) : j("", true), o4.value ? (e(), n("button", { key: 1, class: "group flex items-center uppercase text-xs relative", onClick: (e2) => p2("orderBy", { value: o4.value, orderDirection: "asc" === l2.orderDirection ? "desc" : "asc" }) }, [i("span", null, P(o4.name), 1), i("span", { class: a([[o4.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"]) }, [r(z, { icon: "asc" === l2.orderDirection ? C(Hl) : C(ql), loading: l2.loading, color: o4.value === l2.orderedBy ? "white" : "primary" }, null, 8, ["icon", "loading", "color"])], 2)], 8, ls)) : (e(), n("p", as, [i("span", null, P(o4.name), 1)]))], 40, ts))), 128))])]), i("tbody", ns, [(e(true), n(c, null, T(l2.items, (r2, o4) => {
|
|
1961
1963
|
var _a3, _b2;
|
|
1962
1964
|
return e(), n("tr", { key: r2.id, class: a([C(u2).includes(r2.id) && "bg-gray-50", o4 % 2 == 0 ? void 0 : "bg-gray-50"]) }, [i("td", { class: a([((_a3 = l2.actions) == null ? void 0 : _a3.length) > 0 ? "w-2" : "w-0", "relative"]) }, [C(u2).includes(r2.id) ? (e(), n("div", rs)) : j("", true), ((_b2 = l2.actions) == null ? void 0 : _b2.length) > 0 ? E((e(), n("input", { key: 1, "onUpdate:modelValue": s2[1] || (s2[1] = (e2) => $(u2) ? u2.value = e2 : u2 = e2), value: r2.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, os)), [[N, C(u2)]]) : j("", true)], 2), (e(true), n(c, null, T(r2.row, (o5, i2) => (e(), n("td", { key: i2, class: a(["whitespace-nowrap py-4 pr-3 text-sm", C(u2).includes(r2.id) ? "text-indigo-600" : "text-gray-900"]) }, ["object" == typeof o5 && "tag" === o5.type ? (e(), t(Na, { key: 0, loading: l2.loading, color: o5.color }, { default: D(() => [M(P(o5.content), 1)]), _: 2 }, 1032, ["loading", "color"])) : "object" == typeof o5 && "link" === o5.type ? (e(), n("span", { key: 1, class: "text-indigo-600 hover:text-indigo-400 cursor-pointer", onClick: (e2) => p2(o5.emits, { id: r2.id, data: (r2 == null ? void 0 : r2.emitWith) || null }) }, P(o5.content), 9, is)) : (e(), n("span", ss, P(o5), 1))], 2))), 128))], 2);
|
|
1963
1965
|
}), 128))])])])])])])]));
|
|
1964
1966
|
};
|
|
1965
|
-
} }), cs = { class: "lg:hidden" }, ps = ["value"], gs = { class: "hidden lg:block" },
|
|
1967
|
+
} }), cs = { class: "lg:hidden" }, ps = ["value"], gs = { class: "hidden lg:block" }, fs = { class: "border-b border-gray-200" }, ms = { class: "-mb-px flex space-x-8", "aria-label": "Tabs" }, vs = ["onClick", "aria-current"], ys = { name: "uiTabs" }, bs = Object.assign(ys, { props: { tabs: Array }, emits: ["tabClicked"], setup(t2, { emit: l2 }) {
|
|
1966
1968
|
const r2 = l2;
|
|
1967
1969
|
return (l3, o2) => (e(), n("div", null, [i("div", cs, [i("select", { onChange: o2[0] || (o2[0] = (e2) => {
|
|
1968
1970
|
r2("tabClicked", e2.target.value);
|
|
1969
|
-
}), 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), n(c, null, T(t2.tabs, (t3) => (e(), n("option", { value: t3.id, key: t3.name }, P(t3.name), 9, ps))), 128))], 32)]), i("div", gs, [i("div",
|
|
1971
|
+
}), 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), n(c, null, T(t2.tabs, (t3) => (e(), n("option", { value: t3.id, key: t3.name }, P(t3.name), 9, ps))), 128))], 32)]), i("div", gs, [i("div", fs, [i("nav", ms, [(e(true), n(c, null, T(t2.tabs, (t3) => (e(), n("a", { key: t3.name, onClick: (e2) => r2("tabClicked", t3.id), class: a([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 }, [M(P(t3.name) + " ", 1), t3.count ? (e(), n("span", { key: 0, class: a([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"]) }, P(t3.count), 3)) : j("", true)], 10, vs))), 128))])])])]));
|
|
1970
1972
|
} }), hs = { key: 0, class: "bg-white overflow-hidden shadow rounded-lg" }, xs = { class: "px-4 py-5 sm:px-6" }, ws = { class: "text-xl font-bold" }, ks = { class: "px-4 py-5 sm:p-6" }, Ss = { class: "flow-root" }, Cs = { class: "-mb-8", role: "list" }, Os = { class: "relative pb-8" }, Ds = { key: 0, class: "absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200", "aria-hidden": "true" }, Ms = { class: "relative flex space-x-3" }, Ps = { class: "min-w-0 flex-1 pt-1.5 flex justify-between space-x-4 items-center" }, _s = { class: "text-sm text-gray-500" }, Ts = ["onClick"], js = { class: "text-right text-sm whitespace-nowrap text-gray-500" }, Es = ["datetime"], Ls = { class: "bg-gray-50 px-4 py-4 sm:px-6 z-10" }, Bs = { class: "text-sm" }, Is = { class: "h-full w-full flex items-center justify-center flex-col mb-5" }, Rs = i("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1), As = { key: 1, class: "bg-white overflow-hidden shadow rounded-lg" }, Fs = 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), Ns = { class: "px-4 py-5 sm:p-6 animate-pulse" }, $s = { class: "flow-root" }, Hs = { class: "-mb-8", role: "list" }, Ys = { class: "relative pb-8" }, Vs = { key: 0, class: "absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200", "aria-hidden": "true" }, zs = A('<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), qs = 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), Us = { name: "uiTimeline" }, Ws = Object.assign(Us, { props: { name: { type: String, required: true }, timeline: { type: Object }, loading: { type: Boolean, default: true }, empty: { type: Boolean, default: false } }, setup: (t2) => (l2, o2) => {
|
|
1971
1973
|
const s2 = F("uiIcon");
|
|
1972
1974
|
return t2.loading ? (e(), n("div", As, [Fs, i("div", Ns, [i("div", $s, [i("ul", Hs, [(e(), n(c, null, T(10, (t3) => i("li", { key: l2.index }, [i("div", Ys, [10 !== t3 ? (e(), n("span", Vs)) : j("", true), zs])])), 64))])])]), qs])) : (e(), n("div", hs, [i("div", xs, [i("h1", ws, P(t2.name), 1)]), E(i("div", ks, [i("div", Ss, [i("ul", Cs, [(e(true), n(c, null, T(t2.timeline.items, (o3, u2) => (e(), n("li", { key: u2 }, [i("div", Os, [u2 !== t2.timeline.items.length - 1 ? (e(), n("span", Ds)) : j("", true), i("div", Ms, [i("div", null, [i("span", { class: a([o3.iconBackground, "h-8 w-8 rounded-full flex items-center justify-center ring-4 ring-white"]) }, [r(s2, { loading: t2.loading, icon: o3.icon, "aria-hidden": "true", class: "h-5 w-5 text-white", color: "white" }, null, 8, ["loading", "icon"])], 2)]), i("div", Ps, [i("div", null, [i("p", _s, [i("a", { onClick: (e2) => l2.$emit("timelineEventClicked", o3.linkId), class: "font-medium text-indigo-600 hover:text-indigo-800 cursor-pointer" }, P(o3.target), 9, Ts), M(" " + P(o3.content), 1)])]), i("div", js, [i("time", { datetime: o3.datetime }, P(o3.date), 9, Es)])])])])]))), 128))])])], 512), [[B, !t2.empty]]), E(i("div", Ls, [i("div", Bs, [i("a", { class: "cursor-pointer font-medium text-indigo-600 hover:text-indigo-500", onClick: o2[0] || (o2[0] = (e2) => l2.$emit("timelineFooterClicked", t2.timeline.id)) }, P(t2.timeline.footerText), 1)])], 512), [[B, !t2.empty]]), E(i("div", Is, [r(z, { icon: C(Ul), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), Rs], 512), [[B, t2.empty]])]));
|
|
1973
|
-
} }), Ks = { name: "uiTopbar", props: ["navigation", "logo", "profileMenu", "brand", "accountLogo", "alerted"], components: { Disclosure: tl, DisclosureButton: ll, DisclosurePanel: al, Menu: cl, MenuButton: pl, MenuItem:
|
|
1975
|
+
} }), Ks = { name: "uiTopbar", props: ["navigation", "logo", "profileMenu", "brand", "accountLogo", "alerted"], components: { Disclosure: tl, DisclosureButton: ll, DisclosurePanel: al, Menu: cl, MenuButton: pl, MenuItem: fl, MenuItems: gl, Bars3Icon: function(t2, l2) {
|
|
1974
1976
|
return e(), n("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" })]);
|
|
1975
|
-
}, XMarkIcon: Xl } }, Js = { class: "mx-auto px-6 lg:px-8" }, Gs = { class: "flex justify-between h-20" }, Zs = { class: "flex" }, Xs = { class: "-ml-2 mr-2 flex items-center lg:hidden" }, Qs = i("span", { class: "sr-only" }, "Open main menu", -1), eu = ["src"], tu = { class: "flex items-center" }, lu = { class: "
|
|
1977
|
+
}, XMarkIcon: Xl } }, Js = { class: "mx-auto px-6 lg:px-8" }, Gs = { class: "flex justify-between h-20" }, Zs = { class: "flex" }, Xs = { class: "-ml-2 mr-2 flex items-center lg:hidden" }, Qs = i("span", { class: "sr-only" }, "Open main menu", -1), eu = ["src"], tu = { class: "flex items-center" }, lu = { class: "lg:ml-4 lg:flex-shrink-0 lg:flex lg:items-center hidden" }, au = { class: "redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute -top-0 -left-1" }, nu = [i("span", { class: "animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75" }, null, -1)], ru = ["src"], ou = ["onClick"], iu = { class: "pt-2 pb-3 space-y-1" }, su = ["onClick"], uu = { class: "pt-4 pb-3 border-t border-gray-200" }, du = { class: "flex items-center px-4 sm:px-6" }, cu = { class: "flex-shrink-0" }, pu = ["src"], gu = { key: 0, class: "ml-3" }, fu = { class: "text-base font-medium text-gray-800" }, mu = { class: "text-sm font-medium text-gray-500" }, vu = { class: "mt-3 space-y-1" }, yu = ["onClick"];
|
|
1976
1978
|
const bu = vr(Ks, [["render", function(l2, o2, s2, u2, d2, p2) {
|
|
1977
|
-
const g2 = F("Bars3Icon"),
|
|
1978
|
-
return e(), t(w2, { as: "nav", class: "bg-white shadow z-10" }, { default: D(({ open: u3 }) => [i("div", Js, [i("div", Gs, [i("div", Zs, [i("div", Xs, [r(
|
|
1979
|
+
const g2 = F("Bars3Icon"), f2 = F("XMarkIcon"), m2 = F("DisclosureButton"), v2 = F("MenuButton"), y2 = F("MenuItem"), b2 = F("MenuItems"), h2 = F("Menu"), x2 = F("DisclosurePanel"), w2 = F("Disclosure");
|
|
1980
|
+
return e(), t(w2, { as: "nav", class: "bg-white shadow z-10" }, { default: D(({ open: u3 }) => [i("div", Js, [i("div", Gs, [i("div", Zs, [i("div", Xs, [r(m2, { class: "inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500" }, { default: D(() => [Qs, u3 ? (e(), t(f2, { key: 1, class: "block h-6 w-6", "aria-hidden": "true" })) : (e(), t(g2, { 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: o2[0] || (o2[0] = (e2) => l2.$emit("topBarClick", "logo")) }, [i("img", { class: "h-10", src: s2.logo, alt: "Hotelinking suite product logo" }, null, 8, eu)])]), i("div", tu, [i("div", lu, [r(h2, { as: "div", class: "ml-3 relative" }, { default: D(() => [i("div", null, [E(r(v2, { class: "bg-white rounded-full flex text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 relative" }, { default: D(() => [E(i("div", au, nu, 512), [[B, s2.alerted]]), i("img", { class: "h-10 w-10 rounded-full", src: s2.accountLogo }, null, 8, ru)]), _: 1 }, 512), [[B, s2.accountLogo]])]), r(_, { "enter-active-class": "transition ease-out duration-200", "enter-from-class": "transform opacity-0 scale-95", "enter-to-class": "transform opacity-100 scale-100", "leave-active-class": "transition ease-in duration-75", "leave-from-class": "transform opacity-100 scale-100", "leave-to-class": "transform opacity-0 scale-95" }, { default: D(() => [r(b2, { class: "origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg py-1 bg-white ring-1 ring-black ring-opacity-5 focus:outline-none" }, { default: D(() => [(e(true), n(c, null, T(s2.profileMenu, (n2) => (e(), t(y2, { key: n2.name }, { default: D(({ active: e2 }) => [i("p", { onClick: (e3) => l2.$emit("topBarClick", n2.id), class: a(["cursor-pointer", [e2 ? "bg-gray-100" : "", "block px-4 py-2 text-sm text-gray-700"]]) }, P(n2.name), 11, ou)]), _: 2 }, 1024))), 128))]), _: 1 })]), _: 1 })]), _: 1 })])])])]), r(x2, { class: "lg:hidden" }, { default: D(() => [i("div", iu, [(e(true), n(c, null, T(s2.navigation, (n2) => (e(), t(m2, { as: "template", key: n2.name, class: a(["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": n2.current && true === n2.current, "border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700": !n2.current }]) }, { default: D(() => [i("p", { onClick: (e2) => l2.$emit("topBarClick", n2.id) }, P(n2.name), 9, su)]), _: 2 }, 1032, ["class"]))), 128))]), i("div", uu, [i("div", du, [i("div", cu, [i("img", { class: "h-10 w-10 rounded-full", src: s2.accountLogo }, null, 8, pu)]), s2.brand ? (e(), n("div", gu, [i("div", fu, P(s2.brand.title), 1), i("div", mu, P(s2.brand.subtitle), 1)])) : j("", true)]), i("div", vu, [(e(true), n(c, null, T(s2.profileMenu, (a2) => (e(), t(m2, { as: "template", key: a2.name, class: "block px-4 py-2 text-base font-medium text-gray-500 hover:text-gray-800 hover:bg-gray-100 sm:px-6" }, { default: D(() => [i("p", { onClick: (e2) => l2.$emit("topBarClick", a2.id) }, P(a2.name), 9, yu)]), _: 2 }, 1024))), 128))])])]), _: 1 })]), _: 1 });
|
|
1979
1981
|
}]]), hu = { chart: { type: "bar", toolbar: { show: false }, zoom: { enabled: false } }, colors: ["#715aff"], dataLabels: { enabled: true, formatter: function(e2, t2) {
|
|
1980
1982
|
return t2.w.globals.labels[t2.dataPointIndex] + ": " + e2;
|
|
1981
1983
|
} }, markers: { strokeWidth: 0, size: 4, hover: { size: 8 } }, plotOptions: { bar: { borderRadius: 0, horizontal: true, barHeight: "80%", isFunnel: true } } }, xu = { class: "chart-header flex flex-row justify-between" }, wu = { class: "text-sm font-medium text-gray-500 truncate" }, ku = { class: "chart-content" }, Su = { class: "h-full w-full flex items-center justify-center flex-col" }, Cu = i("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1), Ou = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, Du = [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)], Mu = { name: "uiChart" }, Pu = Object.assign(Mu, { 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 }) {
|
|
@@ -1986,7 +1988,7 @@ const bu = vr(Ks, [["render", function(l2, o2, s2, u2, d2, p2) {
|
|
|
1986
1988
|
} }), _u = { class: "w-full flex flex-col items-center justify-center p-10 grow" }, Tu = { class: "text-2xl mt-4 font-bold" }, ju = { class: "buttons flex flex-row items-center justify-center mt-8 gap-x-1" }, Eu = { __name: "uiNoResults", props: { title: { type: String, required: true }, message: { type: String, required: true }, actions: { type: Array } }, emits: ["action"], setup: (l2, { emit: a2 }) => (a3, o2) => (e(), n("div", _u, [r(z, { loading: false, icon: C(Ul), size: "massive", color: "gray" }, null, 8, ["icon"]), i("h2", Tu, P(l2.title), 1), i("p", null, P(l2.message), 1), i("div", ju, [(e(true), n(c, null, T(l2.actions, (l3, n2) => (e(), t(J, { key: n2, loading: false, onClick: (e2) => a3.$emit("action", l3.action) }, { default: D(() => [M(P(l3.text), 1)]), _: 2 }, 1032, ["onClick"]))), 128))])])) }, Lu = i("div", { class: "fixed inset-0" }, null, -1), Bu = { class: "fixed inset-0 overflow-hidden" }, Iu = { class: "absolute inset-0 overflow-hidden" }, Ru = { class: "pointer-events-none fixed inset-y-0 right-0 flex max-w-full pl-10" }, Au = { class: "flex h-full flex-col overflow-y-scroll bg-white shadow-xl" }, Fu = { class: "bg-indigo-700 px-4 py-6 sm:px-6" }, Nu = { class: "flex items-center justify-between" }, $u = { class: "ml-3 flex h-7 items-center" }, Hu = i("span", { class: "absolute -inset-2.5" }, null, -1), Yu = i("span", { class: "sr-only" }, "Close panel", -1), Vu = { class: "mt-1" }, zu = { class: "text-sm text-indigo-300" }, qu = { class: "relative flex-1 px-4 py-6 sm:px-6" }, Uu = { name: "uiRightSidebar" }, Wu = Object.assign(Uu, { props: { title: { type: String, required: true }, description: { type: String }, open: { type: Boolean, default: false } }, emits: ["closeRightBar"], setup(l2, { emit: a2 }) {
|
|
1987
1989
|
const n2 = a2;
|
|
1988
1990
|
return (a3, s2) => (e(), t(C(Rl), { as: "template", show: l2.open }, { default: D(() => [r(C(Kt), { as: "div", class: "relative z-10", onClose: s2[1] || (s2[1] = (e2) => n2("closeRightBar")) }, { default: D(() => [Lu, i("div", Bu, [i("div", Iu, [i("div", Ru, [r(C(Bl), { as: "template", enter: "transform transition ease-in-out duration-500 sm:duration-700", "enter-from": "translate-x-full", "enter-to": "translate-x-0", leave: "transform transition ease-in-out duration-500 sm:duration-700", "leave-from": "translate-x-0", "leave-to": "translate-x-full" }, { default: D(() => [r(C(Jt), { class: "pointer-events-auto w-screen max-w-md" }, { default: D(() => [i("div", Au, [i("div", Fu, [i("div", Nu, [r(C(Gt), { class: "text-base font-semibold leading-6 text-white" }, { default: D(() => [M(P(l2.title), 1)]), _: 1 }), i("div", $u, [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) => n2("closeRightBar")) }, [Hu, Yu, r(C(Xl), { class: "h-6 w-6 ring-0", "aria-hidden": "true" })])])]), i("div", Vu, [i("p", zu, P(l2.description), 1)])]), i("div", qu, [o(a3.$slots, "default")])])]), _: 3 })]), _: 3 })])])])]), _: 3 })]), _: 3 }, 8, ["show"]));
|
|
1989
|
-
} }), Ku = { uiButton: J, uiIcon: z, uiCheckbox: ne, uiDropdown: na, uiInput:
|
|
1991
|
+
} }), Ku = { uiButton: J, uiIcon: z, uiCheckbox: ne, uiDropdown: na, uiInput: ma, uiInputFile: Ta, uiSelect: Ia, uiTag: Na, uiTextArea: Ua, uiToggle: Xa, uiAlert: dn, uiBreadcrumbs: xn, uiCard: _n, uiFilter: jn, uiModal: Vn, uiNotification: tr, uiTaskList: fr, uiPriceCalendar: mo, uiChart: Mo, uiFooter: jo, uiLoadingScreen: Bo, uiPagination: Go, uiSidebar: ci, uiStats: Ci, uiStripedCard: $i, uiTable: ds, uiTabs: bs, uiTimeline: Ws, uiTopbar: bu, uiFunnelChartV2: Pu, uiNoResults: Eu, uiRightSidebar: Wu }, Ju = { install(e2) {
|
|
1990
1992
|
Object.keys(Ku).forEach((t2) => {
|
|
1991
1993
|
e2.component(t2, Ku[t2]);
|
|
1992
1994
|
});
|