@hotelinking/ui 5.35.7 → 5.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { openBlock as e, createBlock as t, resolveDynamicComponent as l, normalizeClass as n, createElementBlock as a, createVNode as o, renderSlot as r, createElementVNode as i, ref as s, computed as u, unref as d, shallowRef as c, watch as p, triggerRef as g, onScopeDispose as f, inject as m, nextTick as v, watchEffect as h, onMounted as y, cloneVNode as b, h as x, Fragment as w, defineComponent as k, provide as S, reactive as C, onUnmounted as O, toRaw as M, getCurrentInstance as D, Teleport as T, withCtx as E, createTextVNode as I, toDisplayString as _, Transition as P, renderList as j, createCommentVNode as R, withDirectives as B, vModelDynamic as A, vShow as L, withModifiers as F, vModelText as N, createStaticVNode as z, resolveComponent as $, vModelCheckbox as H, isRef as V } from "vue";
1
+ import { openBlock as e, createBlock as t, resolveDynamicComponent as l, normalizeClass as n, createElementBlock as a, createVNode as o, renderSlot as r, createElementVNode as i, ref as s, computed as u, unref as d, shallowRef as c, watch as p, triggerRef as g, onScopeDispose as m, inject as f, nextTick as v, watchEffect as h, onMounted as b, cloneVNode as y, h as x, Fragment as w, defineComponent as k, provide as S, reactive as C, onUnmounted as O, toRaw as M, getCurrentInstance as D, Teleport as T, withCtx as E, createTextVNode as I, toDisplayString as _, Transition as P, renderList as j, createCommentVNode as R, withDirectives as B, vModelDynamic as A, vShow as L, withModifiers as F, vModelText as N, createStaticVNode as z, resolveComponent as $, vModelCheckbox as H, isRef as V } from "vue";
2
2
  import Y from "dayjs";
3
3
  import U from "vue3-apexcharts";
4
4
  import q from "vue3-draggable";
@@ -66,7 +66,7 @@ const ce = (e2) => e2, pe = (e2) => {
66
66
  return a2.observe(l2, { box: "border-box" }), () => {
67
67
  a2.unobserve(l2);
68
68
  };
69
- }, fe = (e2, t2) => {
69
+ }, me = (e2, t2) => {
70
70
  const l2 = e2.scrollElement;
71
71
  if (!l2)
72
72
  return;
@@ -76,7 +76,7 @@ const ce = (e2) => e2, pe = (e2) => {
76
76
  return n2(), l2.addEventListener("scroll", n2, { passive: true }), () => {
77
77
  l2.removeEventListener("scroll", n2);
78
78
  };
79
- }, me = (e2, t2, l2) => {
79
+ }, fe = (e2, t2, l2) => {
80
80
  if (null == t2 ? void 0 : t2.borderBoxSize) {
81
81
  const e3 = t2.borderBoxSize[0];
82
82
  if (e3) {
@@ -112,7 +112,7 @@ class he {
112
112
  Object.entries(e3).forEach(([t2, l2]) => {
113
113
  void 0 === l2 && delete e3[t2];
114
114
  }), this.options = { debug: false, initialOffset: 0, overscan: 1, paddingStart: 0, paddingEnd: 0, scrollPaddingStart: 0, scrollPaddingEnd: 0, horizontal: false, getItemKey: ce, rangeExtractor: pe, onChange: () => {
115
- }, measureElement: me, initialRect: { width: 0, height: 0 }, scrollMargin: 0, gap: 0, scrollingDelay: 150, indexAttribute: "data-index", initialMeasurementsCache: [], lanes: 1, ...e3 };
115
+ }, measureElement: fe, initialRect: { width: 0, height: 0 }, scrollMargin: 0, gap: 0, scrollingDelay: 150, indexAttribute: "data-index", initialMeasurementsCache: [], lanes: 1, ...e3 };
116
116
  }, this.notify = (e3) => {
117
117
  var t2, l2;
118
118
  null == (l2 = (t2 = this.options).onChange) || l2.call(t2, this, e3);
@@ -152,7 +152,7 @@ class he {
152
152
  }
153
153
  return this.measurementsCache = r2, r2;
154
154
  }, { key: "production" !== process.env.NODE_ENV && "getMeasurements", debug: () => this.options.debug }), this.calculateRange = ue(() => [this.getMeasurements(), this.getSize(), this.scrollOffset], (e3, t2, l2) => this.range = e3.length > 0 && t2 > 0 ? function({ measurements: e4, outerSize: t3, scrollOffset: l3 }) {
155
- const n2 = e4.length - 1, a2 = (t4) => e4[t4].start, o2 = ye(0, n2, a2, l3);
155
+ const n2 = e4.length - 1, a2 = (t4) => e4[t4].start, o2 = be(0, n2, a2, l3);
156
156
  let r2 = o2;
157
157
  for (; r2 < n2 && e4[r2].end < l3 + t3; )
158
158
  r2++;
@@ -184,7 +184,7 @@ class he {
184
184
  return l2;
185
185
  }, { key: "production" !== process.env.NODE_ENV && "getIndexes", debug: () => this.options.debug }), this.getVirtualItemForOffset = (e3) => {
186
186
  const t2 = this.getMeasurements();
187
- return de(t2[ye(0, t2.length - 1, (e4) => de(t2[e4]).start, e3)]);
187
+ return de(t2[be(0, t2.length - 1, (e4) => de(t2[e4]).start, e3)]);
188
188
  }, this.getOffsetForAlignment = (e3, t2) => {
189
189
  const l2 = this.getSize();
190
190
  "auto" === t2 && (t2 = e3 <= this.scrollOffset ? "start" : e3 >= this.scrollOffset + l2 ? "end" : "start"), "start" === t2 || ("end" === t2 ? e3 -= l2 : "center" === t2 && (e3 -= l2 / 2));
@@ -234,7 +234,7 @@ class he {
234
234
  }), this.maybeNotify();
235
235
  }
236
236
  }
237
- const ye = (e2, t2, l2, n2) => {
237
+ const be = (e2, t2, l2, n2) => {
238
238
  for (; e2 <= t2; ) {
239
239
  const a2 = (e2 + t2) / 2 | 0, o2 = l2(a2);
240
240
  if (o2 < n2)
@@ -247,7 +247,7 @@ const ye = (e2, t2, l2, n2) => {
247
247
  }
248
248
  return e2 > 0 ? e2 - 1 : 0;
249
249
  };
250
- function be(e2) {
250
+ function ye(e2) {
251
251
  return function(e3) {
252
252
  const t2 = new he(d(e3)), l2 = c(t2), n2 = t2._didMount();
253
253
  return p(() => d(e3).getScrollElement(), (e4) => {
@@ -257,8 +257,8 @@ function be(e2) {
257
257
  var a2;
258
258
  g(l2), null == (a2 = e4.onChange) || a2.call(e4, t3, n3);
259
259
  } }), t2._willUpdate(), g(l2);
260
- }, { immediate: true }), f(n2), l2;
261
- }(u(() => ({ observeElementRect: ge, observeElementOffset: fe, scrollToFn: ve, ...d(e2) })));
260
+ }, { immediate: true }), m(n2), l2;
261
+ }(u(() => ({ observeElementRect: ge, observeElementOffset: me, scrollToFn: ve, ...d(e2) })));
262
262
  }
263
263
  function xe(e2, t2, l2) {
264
264
  let n2 = s(null == l2 ? void 0 : l2.value), a2 = u(() => void 0 !== e2.value);
@@ -268,7 +268,7 @@ function xe(e2, t2, l2) {
268
268
  }
269
269
  let we = Symbol("headlessui.useid"), ke = 0;
270
270
  function Se() {
271
- return m(we, () => "" + ++ke)();
271
+ return f(we, () => "" + ++ke)();
272
272
  }
273
273
  function Ce(e2) {
274
274
  var t2;
@@ -460,7 +460,7 @@ function Ke(e2, t2) {
460
460
  }
461
461
  function Je(e2, t2) {
462
462
  let l2 = s(Ke(e2.value.type, e2.value.as));
463
- return y(() => {
463
+ return b(() => {
464
464
  l2.value = Ke(e2.value.type, e2.value.as);
465
465
  }), h(() => {
466
466
  var e3;
@@ -519,7 +519,7 @@ function lt({ props: e2, attrs: t2, slots: l2, slot: n2, name: a2 }) {
519
519
  return null != e4 && ("string" == typeof e4.type || "object" == typeof e4.type || "function" == typeof e4.type);
520
520
  }(e3) || l3.length > 0)
521
521
  throw new Error(['Passing props on "template"!', "", `The current component <${a2} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(s2).concat(Object.keys(t2)).map((e4) => e4.trim()).filter((e4, t3, l4) => l4.indexOf(e4) === t3).sort((e4, t3) => e4.localeCompare(t3)).map((e4) => ` - ${e4}`).join("\n"), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".', "Render a single element as the child so that we can forward the props onto that element."].map((e4) => ` - ${e4}`).join("\n")].join("\n"));
522
- let n3 = at(null != (r2 = e3.props) ? r2 : {}, s2, d2), o3 = b(e3, n3, true);
522
+ let n3 = at(null != (r2 = e3.props) ? r2 : {}, s2, d2), o3 = y(e3, n3, true);
523
523
  for (let e4 in n3)
524
524
  e4.startsWith("on") && (o3.props || (o3.props = {}), o3.props[e4] = n3[e4]);
525
525
  return o3;
@@ -573,13 +573,13 @@ let st = k({ name: "Hidden", props: { as: { type: [Object, String], default: "di
573
573
  } }), ut = Symbol("Context");
574
574
  var dt = ((e2) => (e2[e2.Open = 1] = "Open", e2[e2.Closed = 2] = "Closed", e2[e2.Closing = 4] = "Closing", e2[e2.Opening = 8] = "Opening", e2))(dt || {});
575
575
  function ct() {
576
- return m(ut, null);
576
+ return f(ut, null);
577
577
  }
578
578
  function pt(e2) {
579
579
  S(ut, e2);
580
580
  }
581
581
  var gt = ((e2) => (e2.Space = " ", e2.Enter = "Enter", e2.Escape = "Escape", e2.Backspace = "Backspace", e2.Delete = "Delete", e2.ArrowLeft = "ArrowLeft", e2.ArrowUp = "ArrowUp", e2.ArrowRight = "ArrowRight", e2.ArrowDown = "ArrowDown", e2.Home = "Home", e2.End = "End", e2.PageUp = "PageUp", e2.PageDown = "PageDown", e2.Tab = "Tab", e2))(gt || {});
582
- let ft = [];
582
+ let mt = [];
583
583
  !function(e2) {
584
584
  function t2() {
585
585
  "loading" !== document.readyState && (e2(), document.removeEventListener("DOMContentLoaded", t2));
@@ -587,11 +587,11 @@ let ft = [];
587
587
  "undefined" != typeof window && "undefined" != typeof document && (document.addEventListener("DOMContentLoaded", t2), t2());
588
588
  }(() => {
589
589
  function e2(e3) {
590
- e3.target instanceof HTMLElement && e3.target !== document.body && ft[0] !== e3.target && (ft.unshift(e3.target), ft = ft.filter((e4) => null != e4 && e4.isConnected), ft.splice(10));
590
+ e3.target instanceof HTMLElement && e3.target !== document.body && mt[0] !== e3.target && (mt.unshift(e3.target), mt = mt.filter((e4) => null != e4 && e4.isConnected), mt.splice(10));
591
591
  }
592
592
  window.addEventListener("click", e2, { capture: true }), window.addEventListener("mousedown", e2, { capture: true }), window.addEventListener("focus", e2, { capture: true }), document.body.addEventListener("click", e2, { capture: true }), document.body.addEventListener("mousedown", e2, { capture: true }), document.body.addEventListener("focus", e2, { capture: true });
593
593
  });
594
- var mt = ((e2) => (e2[e2.First = 0] = "First", e2[e2.Previous = 1] = "Previous", e2[e2.Next = 2] = "Next", e2[e2.Last = 3] = "Last", e2[e2.Specific = 4] = "Specific", e2[e2.Nothing = 5] = "Nothing", e2))(mt || {});
594
+ var ft = ((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))(ft || {});
595
595
  function vt(e2, t2) {
596
596
  let l2 = t2.resolveItems();
597
597
  if (l2.length <= 0)
@@ -637,7 +637,7 @@ function ht(e2) {
637
637
  throw e3;
638
638
  }));
639
639
  }
640
- function yt() {
640
+ function bt() {
641
641
  let e2 = [], t2 = { addEventListener: (e3, l2, n2, a2) => (e3.addEventListener(l2, n2, a2), t2.add(() => e3.removeEventListener(l2, n2, a2))), requestAnimationFrame(...e3) {
642
642
  let l2 = requestAnimationFrame(...e3);
643
643
  t2.add(() => cancelAnimationFrame(l2));
@@ -661,7 +661,7 @@ function yt() {
661
661
  Object.assign(e3.style, { [t3]: n2 });
662
662
  });
663
663
  }, group(e3) {
664
- let t3 = yt();
664
+ let t3 = bt();
665
665
  return e3(t3), this.add(() => t3.dispose());
666
666
  }, add: (t3) => (e2.push(t3), () => {
667
667
  let l2 = e2.indexOf(t3);
@@ -674,7 +674,7 @@ function yt() {
674
674
  } };
675
675
  return t2;
676
676
  }
677
- function bt(e2 = {}, t2 = null, l2 = []) {
677
+ function yt(e2 = {}, t2 = null, l2 = []) {
678
678
  for (let [n2, a2] of Object.entries(e2))
679
679
  wt(l2, xt(t2, n2), a2);
680
680
  return l2;
@@ -687,12 +687,12 @@ function wt(e2, t2, l2) {
687
687
  for (let [n2, a2] of l2.entries())
688
688
  wt(e2, xt(t2, n2.toString()), a2);
689
689
  else
690
- l2 instanceof Date ? e2.push([t2, l2.toISOString()]) : "boolean" == typeof l2 ? e2.push([t2, l2 ? "1" : "0"]) : "string" == typeof l2 ? e2.push([t2, l2]) : "number" == typeof l2 ? e2.push([t2, `${l2}`]) : null == l2 ? e2.push([t2, ""]) : bt(l2, t2, e2);
690
+ l2 instanceof Date ? e2.push([t2, l2.toISOString()]) : "boolean" == typeof l2 ? e2.push([t2, l2 ? "1" : "0"]) : "string" == typeof l2 ? e2.push([t2, l2]) : "number" == typeof l2 ? e2.push([t2, `${l2}`]) : null == l2 ? e2.push([t2, ""]) : yt(l2, t2, e2);
691
691
  }
692
692
  var kt = ((e2) => (e2[e2.Open = 0] = "Open", e2[e2.Closed = 1] = "Closed", e2))(kt || {}), St = ((e2) => (e2[e2.Single = 0] = "Single", e2[e2.Multi = 1] = "Multi", e2))(St || {}), Ct = ((e2) => (e2[e2.Pointer = 0] = "Pointer", e2[e2.Focus = 1] = "Focus", e2[e2.Other = 2] = "Other", e2))(Ct || {});
693
693
  let Ot = Symbol("ComboboxContext");
694
694
  function Mt(e2) {
695
- let t2 = m(Ot, null);
695
+ let t2 = f(Ot, null);
696
696
  if (null === t2) {
697
697
  let t3 = new Error(`<${e2} /> is missing a parent <Combobox /> component.`);
698
698
  throw Error.captureStackTrace && Error.captureStackTrace(t3, Mt), t3;
@@ -706,7 +706,7 @@ let Dt = Symbol("VirtualContext"), Tt = k({ name: "VirtualProvider", setup(e2, {
706
706
  return { start: 0, end: 0 };
707
707
  let t3 = window.getComputedStyle(e3);
708
708
  return { start: parseFloat(t3.paddingBlockStart || t3.paddingTop), end: parseFloat(t3.paddingBlockEnd || t3.paddingBottom) };
709
- }), a2 = be(u(() => ({ scrollPaddingStart: n2.value.start, scrollPaddingEnd: n2.value.end, count: l2.virtual.value.options.length, estimateSize: () => 40, getScrollElement: () => Ce(l2.optionsRef), overscan: 12 }))), o2 = u(() => {
709
+ }), a2 = ye(u(() => ({ scrollPaddingStart: n2.value.start, scrollPaddingEnd: n2.value.end, count: l2.virtual.value.options.length, estimateSize: () => 40, getScrollElement: () => Ce(l2.optionsRef), overscan: 12 }))), o2 = u(() => {
710
710
  var e3;
711
711
  return null == (e3 = l2.virtual.value) ? void 0 : e3.options;
712
712
  }), r2 = s(0);
@@ -718,16 +718,16 @@ let Dt = Symbol("VirtualContext"), Tt = k({ name: "VirtualProvider", setup(e2, {
718
718
  return;
719
719
  null !== l2.activeOptionIndex.value && l2.virtual.value.options.length > l2.activeOptionIndex.value && a2.value.scrollToIndex(l2.activeOptionIndex.value);
720
720
  }
721
- } }, a2.value.getVirtualItems().map((e3) => b(t2.default({ option: l2.virtual.value.options[e3.index], open: 0 === l2.comboboxState.value })[0], { key: `${r2.value}-${e3.index}`, "data-index": e3.index, "aria-setsize": l2.virtual.value.options.length, "aria-posinset": e3.index + 1, style: { position: "absolute", top: 0, left: 0, transform: `translateY(${e3.start}px)`, overflowAnchor: "none" } })))];
721
+ } }, a2.value.getVirtualItems().map((e3) => y(t2.default({ option: l2.virtual.value.options[e3.index], open: 0 === l2.comboboxState.value })[0], { key: `${r2.value}-${e3.index}`, "data-index": e3.index, "aria-setsize": l2.virtual.value.options.length, "aria-posinset": e3.index + 1, style: { position: "absolute", top: 0, left: 0, transform: `translateY(${e3.start}px)`, overflowAnchor: "none" } })))];
722
722
  } }), Et = k({ name: "Combobox", emits: { "update:modelValue": (e2) => true }, props: { as: { type: [Object, String], default: "template" }, disabled: { type: [Boolean], default: false }, by: { type: [String, Function], nullable: true, default: null }, modelValue: { type: [Object, String, Number, Boolean], default: void 0 }, defaultValue: { type: [Object, String, Number, Boolean], default: void 0 }, form: { type: String, optional: true }, name: { type: String, optional: true }, nullable: { type: Boolean, default: false }, multiple: { type: [Boolean], default: false }, immediate: { type: [Boolean], default: false }, virtual: { type: Object, default: null } }, inheritAttrs: false, setup(e2, { slots: t2, attrs: l2, emit: n2 }) {
723
- let a2 = s(1), o2 = s(null), r2 = s(null), i2 = s(null), d2 = s(null), c2 = s({ static: false, hold: false }), g2 = s([]), f2 = s(null), m2 = s(2), v2 = s(false);
723
+ let a2 = s(1), o2 = s(null), r2 = s(null), i2 = s(null), d2 = s(null), c2 = s({ static: false, hold: false }), g2 = s([]), m2 = s(null), f2 = s(2), v2 = s(false);
724
724
  function h2(e3 = (e4) => e4) {
725
- let t3 = null !== f2.value ? g2.value[f2.value] : null, l3 = e3(g2.value.slice()), n3 = l3.length > 0 && null !== l3[0].dataRef.order.value ? l3.sort((e4, t4) => e4.dataRef.order.value - t4.dataRef.order.value) : $e(l3, (e4) => Ce(e4.dataRef.domRef)), a3 = t3 ? n3.indexOf(t3) : null;
725
+ let t3 = null !== m2.value ? g2.value[m2.value] : null, l3 = e3(g2.value.slice()), n3 = l3.length > 0 && null !== l3[0].dataRef.order.value ? l3.sort((e4, t4) => e4.dataRef.order.value - t4.dataRef.order.value) : $e(l3, (e4) => Ce(e4.dataRef.domRef)), a3 = t3 ? n3.indexOf(t3) : null;
726
726
  return -1 === a3 && (a3 = null), { options: n3, activeOptionIndex: a3 };
727
727
  }
728
- let b2 = u(() => e2.multiple ? 1 : 0), k2 = u(() => e2.nullable), [O2, D2] = xe(u(() => e2.modelValue), (e3) => n2("update:modelValue", e3), u(() => e2.defaultValue)), T2 = u(() => void 0 === O2.value ? Oe(b2.value, { 1: [], 0: void 0 }) : O2.value), E2 = null, I2 = null;
728
+ let y2 = u(() => e2.multiple ? 1 : 0), k2 = u(() => e2.nullable), [O2, D2] = xe(u(() => e2.modelValue), (e3) => n2("update:modelValue", e3), u(() => e2.defaultValue)), T2 = u(() => void 0 === O2.value ? Oe(y2.value, { 1: [], 0: void 0 }) : O2.value), E2 = null, I2 = null;
729
729
  function _2(e3) {
730
- return Oe(b2.value, { 0: () => null == D2 ? void 0 : D2(e3), 1: () => {
730
+ return Oe(y2.value, { 0: () => null == D2 ? void 0 : D2(e3), 1: () => {
731
731
  let t3 = M(j2.value.value).slice(), l3 = M(e3), n3 = t3.findIndex((e4) => j2.compare(l3, M(e4)));
732
732
  return -1 === n3 ? t3.push(l3) : t3.splice(n3, 1), null == D2 ? void 0 : D2(t3);
733
733
  } });
@@ -735,12 +735,12 @@ let Dt = Symbol("VirtualContext"), Tt = k({ name: "VirtualProvider", setup(e2, {
735
735
  let P2 = u(() => {
736
736
  });
737
737
  p([P2], ([e3], [t3]) => {
738
- if (j2.virtual.value && e3 && t3 && null !== f2.value) {
739
- let l3 = e3.indexOf(t3[f2.value]);
740
- f2.value = -1 !== l3 ? l3 : null;
738
+ if (j2.virtual.value && e3 && t3 && null !== m2.value) {
739
+ let l3 = e3.indexOf(t3[m2.value]);
740
+ m2.value = -1 !== l3 ? l3 : null;
741
741
  }
742
742
  });
743
- let j2 = { comboboxState: a2, value: T2, mode: b2, compare(t3, l3) {
743
+ let j2 = { comboboxState: a2, value: T2, mode: y2, compare(t3, l3) {
744
744
  if ("string" == typeof e2.by) {
745
745
  let n3 = e2.by;
746
746
  return (null == t3 ? void 0 : t3[n3]) === (null == l3 ? void 0 : l3[n3]);
@@ -751,7 +751,7 @@ let Dt = Symbol("VirtualContext"), Tt = k({ name: "VirtualProvider", setup(e2, {
751
751
  }, calculateIndex: (t3) => j2.virtual.value ? null === e2.by ? j2.virtual.value.options.indexOf(t3) : j2.virtual.value.options.findIndex((e3) => j2.compare(e3, t3)) : g2.value.findIndex((e3) => j2.compare(e3.dataRef.value, t3)), defaultValue: u(() => e2.defaultValue), nullable: k2, immediate: u(() => false), virtual: u(() => null), inputRef: r2, labelRef: o2, buttonRef: i2, optionsRef: d2, disabled: u(() => e2.disabled), options: g2, change(e3) {
752
752
  D2(e3);
753
753
  }, activeOptionIndex: u(() => {
754
- if (v2.value && null === f2.value && (j2.virtual.value ? j2.virtual.value.options.length > 0 : g2.value.length > 0)) {
754
+ if (v2.value && null === m2.value && (j2.virtual.value ? j2.virtual.value.options.length > 0 : g2.value.length > 0)) {
755
755
  if (j2.virtual.value) {
756
756
  let e4 = j2.virtual.value.options.findIndex((e5) => {
757
757
  var t3;
@@ -764,25 +764,25 @@ let Dt = Symbol("VirtualContext"), Tt = k({ name: "VirtualProvider", setup(e2, {
764
764
  if (-1 !== e3)
765
765
  return e3;
766
766
  }
767
- return f2.value;
768
- }), activationTrigger: m2, optionsPropsRef: c2, closeCombobox() {
769
- v2.value = false, !e2.disabled && 1 !== a2.value && (a2.value = 1, f2.value = null);
767
+ return m2.value;
768
+ }), activationTrigger: f2, optionsPropsRef: c2, closeCombobox() {
769
+ v2.value = false, !e2.disabled && 1 !== a2.value && (a2.value = 1, m2.value = null);
770
770
  }, openCombobox() {
771
771
  if (v2.value = true, !e2.disabled && 0 !== a2.value) {
772
772
  if (j2.value.value) {
773
773
  let e3 = j2.calculateIndex(j2.value.value);
774
- -1 !== e3 && (f2.value = e3);
774
+ -1 !== e3 && (m2.value = e3);
775
775
  }
776
776
  a2.value = 0;
777
777
  }
778
778
  }, setActivationTrigger(e3) {
779
- m2.value = e3;
779
+ f2.value = e3;
780
780
  }, goToOption(t3, l3, n3) {
781
781
  v2.value = false, null !== E2 && cancelAnimationFrame(E2), E2 = requestAnimationFrame(() => {
782
782
  if (e2.disabled || d2.value && !c2.value.static && 1 === a2.value)
783
783
  return;
784
784
  if (j2.virtual.value)
785
- return f2.value = t3 === mt.Specific ? l3 : vt({ focus: t3 }, { resolveItems: () => j2.virtual.value.options, resolveActiveIndex: () => {
785
+ return m2.value = t3 === ft.Specific ? l3 : vt({ focus: t3 }, { resolveItems: () => j2.virtual.value.options, resolveActiveIndex: () => {
786
786
  var e3, t4;
787
787
  return null != (t4 = null != (e3 = j2.activeOptionIndex.value) ? e3 : j2.virtual.value.options.findIndex((e4) => {
788
788
  var t5;
@@ -790,14 +790,14 @@ let Dt = Symbol("VirtualContext"), Tt = k({ name: "VirtualProvider", setup(e2, {
790
790
  })) ? t4 : null;
791
791
  }, resolveDisabled: (e3) => j2.virtual.value.disabled(e3), resolveId() {
792
792
  throw new Error("Function not implemented.");
793
- } }), void (m2.value = null != n3 ? n3 : 2);
793
+ } }), void (f2.value = null != n3 ? n3 : 2);
794
794
  let o3 = h2();
795
795
  if (null === o3.activeOptionIndex) {
796
796
  let e3 = o3.options.findIndex((e4) => !e4.dataRef.disabled);
797
797
  -1 !== e3 && (o3.activeOptionIndex = e3);
798
798
  }
799
- let r3 = t3 === mt.Specific ? l3 : vt({ focus: t3 }, { resolveItems: () => o3.options, resolveActiveIndex: () => o3.activeOptionIndex, resolveId: (e3) => e3.id, resolveDisabled: (e3) => e3.dataRef.disabled });
800
- f2.value = r3, m2.value = null != n3 ? n3 : 2, g2.value = o3.options;
799
+ let r3 = t3 === ft.Specific ? l3 : vt({ focus: t3 }, { resolveItems: () => o3.options, resolveActiveIndex: () => o3.activeOptionIndex, resolveId: (e3) => e3.id, resolveDisabled: (e3) => e3.dataRef.disabled });
800
+ m2.value = r3, f2.value = null != n3 ? n3 : 2, g2.value = o3.options;
801
801
  });
802
802
  }, selectOption(e3) {
803
803
  let t3 = g2.value.find((t4) => t4.id === e3);
@@ -813,7 +813,7 @@ let Dt = Symbol("VirtualContext"), Tt = k({ name: "VirtualProvider", setup(e2, {
813
813
  let { dataRef: e3 } = g2.value[j2.activeOptionIndex.value];
814
814
  _2(e3.value);
815
815
  }
816
- j2.goToOption(mt.Specific, j2.activeOptionIndex.value);
816
+ j2.goToOption(ft.Specific, j2.activeOptionIndex.value);
817
817
  }
818
818
  }, registerOption(e3, t3) {
819
819
  let l3 = C({ id: e3, dataRef: t3 });
@@ -821,9 +821,9 @@ let Dt = Symbol("VirtualContext"), Tt = k({ name: "VirtualProvider", setup(e2, {
821
821
  return void g2.value.push(l3);
822
822
  I2 && cancelAnimationFrame(I2);
823
823
  let n3 = h2((e4) => (e4.push(l3), e4));
824
- null === f2.value && j2.isSelected(t3.value.value) && (n3.activeOptionIndex = n3.options.indexOf(l3)), g2.value = n3.options, f2.value = n3.activeOptionIndex, m2.value = 2, n3.options.some((e4) => !Ce(e4.dataRef.domRef)) && (I2 = requestAnimationFrame(() => {
824
+ null === m2.value && j2.isSelected(t3.value.value) && (n3.activeOptionIndex = n3.options.indexOf(l3)), g2.value = n3.options, m2.value = n3.activeOptionIndex, f2.value = 2, n3.options.some((e4) => !Ce(e4.dataRef.domRef)) && (I2 = requestAnimationFrame(() => {
825
825
  let e4 = h2();
826
- g2.value = e4.options, f2.value = e4.activeOptionIndex;
826
+ g2.value = e4.options, m2.value = e4.activeOptionIndex;
827
827
  }));
828
828
  }, unregisterOption(e3, t3) {
829
829
  if (null !== E2 && cancelAnimationFrame(E2), t3 && (v2.value = true), j2.virtual.value)
@@ -832,14 +832,14 @@ let Dt = Symbol("VirtualContext"), Tt = k({ name: "VirtualProvider", setup(e2, {
832
832
  let l4 = t4.findIndex((t5) => t5.id === e3);
833
833
  return -1 !== l4 && t4.splice(l4, 1), t4;
834
834
  });
835
- g2.value = l3.options, f2.value = l3.activeOptionIndex, m2.value = 2;
836
- }, isSelected: (e3) => Oe(b2.value, { 0: () => j2.compare(M(j2.value.value), M(e3)), 1: () => M(j2.value.value).some((t3) => j2.compare(M(t3), M(e3))) }), isActive: (e3) => f2.value === j2.calculateIndex(e3) };
835
+ g2.value = l3.options, m2.value = l3.activeOptionIndex, f2.value = 2;
836
+ }, isSelected: (e3) => Oe(y2.value, { 0: () => j2.compare(M(j2.value.value), M(e3)), 1: () => M(j2.value.value).some((t3) => j2.compare(M(t3), M(e3))) }), isActive: (e3) => m2.value === j2.calculateIndex(e3) };
837
837
  We([r2, i2, d2], () => j2.closeCombobox(), u(() => 0 === a2.value)), S(Ot, j2), pt(u(() => Oe(a2.value, { 0: dt.Open, 1: dt.Closed })));
838
838
  let R2 = u(() => {
839
839
  var e3;
840
840
  return null == (e3 = Ce(r2)) ? void 0 : e3.closest("form");
841
841
  });
842
- return y(() => {
842
+ return b(() => {
843
843
  p([R2], () => {
844
844
  if (R2.value && void 0 !== e2.defaultValue)
845
845
  return R2.value.addEventListener("reset", t3), () => {
@@ -853,7 +853,7 @@ let Dt = Symbol("VirtualContext"), Tt = k({ name: "VirtualProvider", setup(e2, {
853
853
  }), () => {
854
854
  var n3, o3, r3;
855
855
  let { name: i3, disabled: s2, form: u2, ...d3 } = e2, c3 = { open: 0 === a2.value, disabled: s2, activeIndex: j2.activeOptionIndex.value, activeOption: null === j2.activeOptionIndex.value ? null : j2.virtual.value ? j2.virtual.value.options[null != (n3 = j2.activeOptionIndex.value) ? n3 : 0] : null != (r3 = null == (o3 = j2.options.value[j2.activeOptionIndex.value]) ? void 0 : o3.dataRef.value) ? r3 : null, value: T2.value };
856
- return x(w, [...null != i3 && null != T2.value ? bt({ [i3]: T2.value }).map(([e3, t3]) => x(st, ot({ features: it.Hidden, key: e3, as: "input", type: "hidden", hidden: true, readOnly: true, form: u2, disabled: s2, name: e3, value: t3 }))) : [], tt({ theirProps: { ...l2, ...rt(d3, ["by", "defaultValue", "immediate", "modelValue", "multiple", "nullable", "onUpdate:modelValue", "virtual"]) }, ourProps: {}, slot: c3, slots: t2, attrs: l2, name: "Combobox" })]);
856
+ return x(w, [...null != i3 && null != T2.value ? yt({ [i3]: T2.value }).map(([e3, t3]) => x(st, ot({ features: it.Hidden, key: e3, as: "input", type: "hidden", hidden: true, readOnly: true, form: u2, disabled: s2, name: e3, value: t3 }))) : [], tt({ theirProps: { ...l2, ...rt(d3, ["by", "defaultValue", "immediate", "modelValue", "multiple", "nullable", "onUpdate:modelValue", "virtual"]) }, ourProps: {}, slot: c3, slots: t2, attrs: l2, name: "Combobox" })]);
857
857
  };
858
858
  } }), It = k({ name: "ComboboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: null } }, setup(e2, { attrs: t2, slots: l2 }) {
859
859
  var n2;
@@ -884,7 +884,7 @@ let Dt = Symbol("VirtualContext"), Tt = k({ name: "VirtualProvider", setup(e2, {
884
884
  });
885
885
  case gt.ArrowUp:
886
886
  return e3.preventDefault(), e3.stopPropagation(), 1 === r2.comboboxState.value && (r2.openCombobox(), v(() => {
887
- r2.value.value || r2.goToOption(mt.Last);
887
+ r2.value.value || r2.goToOption(ft.Last);
888
888
  })), void v(() => {
889
889
  var e4;
890
890
  return null == (e4 = r2.inputRef.value) ? void 0 : e4.focus({ preventScroll: true });
@@ -911,16 +911,16 @@ let Dt = Symbol("VirtualContext"), Tt = k({ name: "VirtualProvider", setup(e2, {
911
911
  function g2() {
912
912
  i2.change(null);
913
913
  let e3 = Ce(i2.optionsRef);
914
- e3 && (e3.scrollTop = 0), i2.goToOption(mt.Nothing);
914
+ e3 && (e3.scrollTop = 0), i2.goToOption(ft.Nothing);
915
915
  }
916
916
  a2({ el: i2.inputRef, $el: i2.inputRef });
917
- let f2 = u(() => {
917
+ let m2 = u(() => {
918
918
  var t3;
919
919
  let l3 = i2.value.value;
920
920
  return Ce(i2.inputRef) ? void 0 !== e2.displayValue && void 0 !== l3 ? null != (t3 = e2.displayValue(l3)) ? t3 : "" : "string" == typeof l3 ? l3 : "" : "";
921
921
  });
922
- y(() => {
923
- p([f2, i2.comboboxState, d2], ([e3, t3], [l3, n3]) => {
922
+ b(() => {
923
+ p([m2, i2.comboboxState, d2], ([e3, t3], [l3, n3]) => {
924
924
  if (c2.value)
925
925
  return;
926
926
  let a3 = Ce(i2.inputRef);
@@ -943,44 +943,44 @@ let Dt = Symbol("VirtualContext"), Tt = k({ name: "VirtualProvider", setup(e2, {
943
943
  }
944
944
  });
945
945
  });
946
- let m2 = s(false);
946
+ let f2 = s(false);
947
947
  function h2() {
948
- m2.value = true;
948
+ f2.value = true;
949
949
  }
950
- function b2() {
951
- yt().nextFrame(() => {
952
- m2.value = false;
950
+ function y2() {
951
+ bt().nextFrame(() => {
952
+ f2.value = false;
953
953
  });
954
954
  }
955
955
  function x2(e3) {
956
956
  switch (c2.value = true, e3.key) {
957
957
  case gt.Enter:
958
- if (c2.value = false, 0 !== i2.comboboxState.value || m2.value)
958
+ if (c2.value = false, 0 !== i2.comboboxState.value || f2.value)
959
959
  return;
960
960
  if (e3.preventDefault(), e3.stopPropagation(), null === i2.activeOptionIndex.value)
961
961
  return void i2.closeCombobox();
962
962
  i2.selectActiveOption(), 0 === i2.mode.value && i2.closeCombobox();
963
963
  break;
964
964
  case gt.ArrowDown:
965
- return c2.value = false, e3.preventDefault(), e3.stopPropagation(), Oe(i2.comboboxState.value, { 0: () => i2.goToOption(mt.Next), 1: () => i2.openCombobox() });
965
+ return c2.value = false, e3.preventDefault(), e3.stopPropagation(), Oe(i2.comboboxState.value, { 0: () => i2.goToOption(ft.Next), 1: () => i2.openCombobox() });
966
966
  case gt.ArrowUp:
967
- return c2.value = false, e3.preventDefault(), e3.stopPropagation(), Oe(i2.comboboxState.value, { 0: () => i2.goToOption(mt.Previous), 1: () => {
967
+ return c2.value = false, e3.preventDefault(), e3.stopPropagation(), Oe(i2.comboboxState.value, { 0: () => i2.goToOption(ft.Previous), 1: () => {
968
968
  i2.openCombobox(), v(() => {
969
- i2.value.value || i2.goToOption(mt.Last);
969
+ i2.value.value || i2.goToOption(ft.Last);
970
970
  });
971
971
  } });
972
972
  case gt.Home:
973
973
  if (e3.shiftKey)
974
974
  break;
975
- return c2.value = false, e3.preventDefault(), e3.stopPropagation(), i2.goToOption(mt.First);
975
+ return c2.value = false, e3.preventDefault(), e3.stopPropagation(), i2.goToOption(ft.First);
976
976
  case gt.PageUp:
977
- return c2.value = false, e3.preventDefault(), e3.stopPropagation(), i2.goToOption(mt.First);
977
+ return c2.value = false, e3.preventDefault(), e3.stopPropagation(), i2.goToOption(ft.First);
978
978
  case gt.End:
979
979
  if (e3.shiftKey)
980
980
  break;
981
- return c2.value = false, e3.preventDefault(), e3.stopPropagation(), i2.goToOption(mt.Last);
981
+ return c2.value = false, e3.preventDefault(), e3.stopPropagation(), i2.goToOption(ft.Last);
982
982
  case gt.PageDown:
983
- return c2.value = false, e3.preventDefault(), e3.stopPropagation(), i2.goToOption(mt.Last);
983
+ return c2.value = false, e3.preventDefault(), e3.stopPropagation(), i2.goToOption(ft.Last);
984
984
  case gt.Escape:
985
985
  if (c2.value = false, 0 !== i2.comboboxState.value)
986
986
  return;
@@ -997,14 +997,14 @@ let Dt = Symbol("VirtualContext"), Tt = k({ name: "VirtualProvider", setup(e2, {
997
997
  }
998
998
  function k2(e3) {
999
999
  var t3, l3, n3;
1000
- let a3 = null != (t3 = e3.relatedTarget) ? t3 : ft.find((t4) => t4 !== e3.currentTarget);
1000
+ let a3 = null != (t3 = e3.relatedTarget) ? t3 : mt.find((t4) => t4 !== e3.currentTarget);
1001
1001
  if (c2.value = false, !(null != (l3 = Ce(i2.optionsRef)) && l3.contains(a3) || null != (n3 = Ce(i2.buttonRef)) && n3.contains(a3) || 0 !== i2.comboboxState.value))
1002
1002
  return e3.preventDefault(), 0 === i2.mode.value && (i2.nullable.value && null === i2.value.value ? g2() : 1 !== i2.activationTrigger.value && i2.selectActiveOption()), i2.closeCombobox();
1003
1003
  }
1004
1004
  function S2(e3) {
1005
1005
  var t3, l3, n3;
1006
- let a3 = null != (t3 = e3.relatedTarget) ? t3 : ft.find((t4) => t4 !== e3.currentTarget);
1007
- null != (l3 = Ce(i2.buttonRef)) && l3.contains(a3) || null != (n3 = Ce(i2.optionsRef)) && n3.contains(a3) || i2.disabled.value || i2.immediate.value && 0 !== i2.comboboxState.value && (i2.openCombobox(), yt().nextFrame(() => {
1006
+ let a3 = null != (t3 = e3.relatedTarget) ? t3 : mt.find((t4) => t4 !== e3.currentTarget);
1007
+ null != (l3 = Ce(i2.buttonRef)) && l3.contains(a3) || null != (n3 = Ce(i2.optionsRef)) && n3.contains(a3) || i2.disabled.value || i2.immediate.value && 0 !== i2.comboboxState.value && (i2.openCombobox(), bt().nextFrame(() => {
1008
1008
  i2.setActivationTrigger(1);
1009
1009
  }));
1010
1010
  }
@@ -1014,8 +1014,8 @@ let Dt = Symbol("VirtualContext"), Tt = k({ name: "VirtualProvider", setup(e2, {
1014
1014
  });
1015
1015
  return () => {
1016
1016
  var t3, a3, o3, s2, u2, d3, c3;
1017
- let p2 = { open: 0 === i2.comboboxState.value }, { displayValue: g3, onChange: f3, ...m3 } = e2, v2 = { "aria-controls": null == (t3 = i2.optionsRef.value) ? void 0 : t3.id, "aria-expanded": 0 === i2.comboboxState.value, "aria-activedescendant": null === i2.activeOptionIndex.value ? void 0 : i2.virtual.value ? null == (a3 = i2.options.value.find((e3) => !i2.virtual.value.disabled(e3.dataRef.value) && i2.compare(e3.dataRef.value, i2.virtual.value.options[i2.activeOptionIndex.value]))) ? void 0 : a3.id : null == (o3 = i2.options.value[i2.activeOptionIndex.value]) ? void 0 : o3.id, "aria-labelledby": null != (d3 = null == (s2 = Ce(i2.labelRef)) ? void 0 : s2.id) ? d3 : null == (u2 = Ce(i2.buttonRef)) ? void 0 : u2.id, "aria-autocomplete": "list", id: r2, onCompositionstart: h2, onCompositionend: b2, onKeydown: x2, onInput: w2, onFocus: S2, onBlur: k2, role: "combobox", type: null != (c3 = l2.type) ? c3 : "text", tabIndex: 0, ref: i2.inputRef, defaultValue: C2.value, disabled: true === i2.disabled.value || void 0 };
1018
- return tt({ ourProps: v2, theirProps: m3, slot: p2, attrs: l2, slots: n2, features: Qe.RenderStrategy | Qe.Static, name: "ComboboxInput" });
1017
+ let p2 = { open: 0 === i2.comboboxState.value }, { displayValue: g3, onChange: m3, ...f3 } = e2, v2 = { "aria-controls": null == (t3 = i2.optionsRef.value) ? void 0 : t3.id, "aria-expanded": 0 === i2.comboboxState.value, "aria-activedescendant": null === i2.activeOptionIndex.value ? void 0 : i2.virtual.value ? null == (a3 = i2.options.value.find((e3) => !i2.virtual.value.disabled(e3.dataRef.value) && i2.compare(e3.dataRef.value, i2.virtual.value.options[i2.activeOptionIndex.value]))) ? void 0 : a3.id : null == (o3 = i2.options.value[i2.activeOptionIndex.value]) ? void 0 : o3.id, "aria-labelledby": null != (d3 = null == (s2 = Ce(i2.labelRef)) ? void 0 : s2.id) ? d3 : null == (u2 = Ce(i2.buttonRef)) ? void 0 : u2.id, "aria-autocomplete": "list", id: r2, onCompositionstart: h2, onCompositionend: y2, onKeydown: x2, onInput: w2, onFocus: S2, onBlur: k2, role: "combobox", type: null != (c3 = l2.type) ? c3 : "text", tabIndex: 0, ref: i2.inputRef, defaultValue: C2.value, disabled: true === i2.disabled.value || void 0 };
1018
+ return tt({ ourProps: v2, theirProps: f3, slot: p2, attrs: l2, slots: n2, features: Qe.RenderStrategy | Qe.Static, name: "ComboboxInput" });
1019
1019
  };
1020
1020
  } }), jt = k({ name: "ComboboxOptions", props: { as: { type: [Object, String], default: "ul" }, static: { type: Boolean, default: false }, unmount: { type: Boolean, default: true }, hold: { type: [Boolean], default: false } }, setup(e2, { attrs: t2, slots: l2, expose: n2 }) {
1021
1021
  let a2 = Mt("ComboboxOptions"), o2 = `headlessui-combobox-options-${Se()}`;
@@ -1038,7 +1038,7 @@ let Dt = Symbol("VirtualContext"), Tt = k({ name: "VirtualProvider", setup(e2, {
1038
1038
  let i2 = u(() => {
1039
1039
  var t3;
1040
1040
  return a2.virtual.value ? a2.activeOptionIndex.value === a2.calculateIndex(e2.value) : null !== a2.activeOptionIndex.value && (null == (t3 = a2.options.value[a2.activeOptionIndex.value]) ? void 0 : t3.id) === o2;
1041
- }), d2 = u(() => a2.isSelected(e2.value)), c2 = m(Dt, null), p2 = u(() => ({ disabled: e2.disabled, value: e2.value, domRef: r2, order: u(() => e2.order) }));
1041
+ }), d2 = u(() => a2.isSelected(e2.value)), c2 = f(Dt, null), p2 = u(() => ({ disabled: e2.disabled, value: e2.value, domRef: r2, order: u(() => e2.order) }));
1042
1042
  function g2(t3) {
1043
1043
  var l3;
1044
1044
  if (e2.disabled || null != (l3 = a2.virtual.value) && l3.disabled(e2.value))
@@ -1048,14 +1048,14 @@ let Dt = Symbol("VirtualContext"), Tt = k({ name: "VirtualProvider", setup(e2, {
1048
1048
  return null == (e3 = Ce(a2.inputRef)) ? void 0 : e3.focus({ preventScroll: true });
1049
1049
  }), 0 === a2.mode.value && requestAnimationFrame(() => a2.closeCombobox());
1050
1050
  }
1051
- function f2() {
1051
+ function m2() {
1052
1052
  var t3;
1053
1053
  if (e2.disabled || null != (t3 = a2.virtual.value) && t3.disabled(e2.value))
1054
- return a2.goToOption(mt.Nothing);
1054
+ return a2.goToOption(ft.Nothing);
1055
1055
  let l3 = a2.calculateIndex(e2.value);
1056
- a2.goToOption(mt.Specific, l3);
1056
+ a2.goToOption(ft.Specific, l3);
1057
1057
  }
1058
- y(() => a2.registerOption(o2, p2)), O(() => a2.unregisterOption(o2, i2.value)), h(() => {
1058
+ b(() => a2.registerOption(o2, p2)), O(() => a2.unregisterOption(o2, i2.value)), h(() => {
1059
1059
  let e3 = Ce(r2);
1060
1060
  e3 && (null == c2 || c2.value.measureElement(e3));
1061
1061
  }), h(() => {
@@ -1064,24 +1064,24 @@ let Dt = Symbol("VirtualContext"), Tt = k({ name: "VirtualProvider", setup(e2, {
1064
1064
  return null == (t3 = null == (e3 = Ce(r2)) ? void 0 : e3.scrollIntoView) ? void 0 : t3.call(e3, { block: "nearest" });
1065
1065
  }));
1066
1066
  });
1067
- let b2 = Ze();
1067
+ let y2 = Ze();
1068
1068
  function x2(e3) {
1069
- b2.update(e3);
1069
+ y2.update(e3);
1070
1070
  }
1071
1071
  function w2(t3) {
1072
1072
  var l3;
1073
- if (!b2.wasMoved(t3) || e2.disabled || null != (l3 = a2.virtual.value) && l3.disabled(e2.value) || i2.value)
1073
+ if (!y2.wasMoved(t3) || e2.disabled || null != (l3 = a2.virtual.value) && l3.disabled(e2.value) || i2.value)
1074
1074
  return;
1075
1075
  let n3 = a2.calculateIndex(e2.value);
1076
- a2.goToOption(mt.Specific, n3, 0);
1076
+ a2.goToOption(ft.Specific, n3, 0);
1077
1077
  }
1078
1078
  function k2(t3) {
1079
1079
  var l3;
1080
- b2.wasMoved(t3) && (e2.disabled || null != (l3 = a2.virtual.value) && l3.disabled(e2.value) || i2.value && (a2.optionsPropsRef.value.hold || a2.goToOption(mt.Nothing)));
1080
+ y2.wasMoved(t3) && (e2.disabled || null != (l3 = a2.virtual.value) && l3.disabled(e2.value) || i2.value && (a2.optionsPropsRef.value.hold || a2.goToOption(ft.Nothing)));
1081
1081
  }
1082
1082
  return () => {
1083
1083
  let { disabled: n3 } = e2, a3 = { active: i2.value, selected: d2.value, disabled: n3 };
1084
- return tt({ ourProps: { id: o2, ref: r2, role: "option", tabIndex: true === n3 ? void 0 : -1, "aria-disabled": true === n3 || void 0, "aria-selected": d2.value, disabled: void 0, onClick: g2, onFocus: f2, onPointerenter: x2, onMouseenter: x2, onPointermove: w2, onMousemove: w2, onPointerleave: k2, onMouseleave: k2 }, theirProps: rt(e2, ["order", "value"]), slot: a3, attrs: l2, slots: t2, name: "ComboboxOption" });
1084
+ return tt({ ourProps: { id: o2, ref: r2, role: "option", tabIndex: true === n3 ? void 0 : -1, "aria-disabled": true === n3 || void 0, "aria-selected": d2.value, disabled: void 0, onClick: g2, onFocus: m2, onPointerenter: x2, onMouseenter: x2, onPointermove: w2, onMousemove: w2, onPointerleave: k2, onMouseleave: k2 }, theirProps: rt(e2, ["order", "value"]), slot: a3, attrs: l2, slots: t2, name: "ComboboxOption" });
1085
1085
  };
1086
1086
  } });
1087
1087
  function Bt(e2, t2, l2, n2) {
@@ -1107,19 +1107,19 @@ let Nt = Object.assign(k({ name: "FocusTrap", props: { as: { type: [Object, Stri
1107
1107
  let a2 = s(null);
1108
1108
  n2({ el: a2, $el: a2 });
1109
1109
  let o2 = u(() => Ee(a2)), r2 = s(false);
1110
- y(() => r2.value = true), O(() => r2.value = false), function({ ownerDocument: e3 }, t3) {
1110
+ b(() => r2.value = true), O(() => r2.value = false), function({ ownerDocument: e3 }, t3) {
1111
1111
  let l3 = function(e4) {
1112
- let t4 = s(ft.slice());
1112
+ let t4 = s(mt.slice());
1113
1113
  return p([e4], ([e5], [l4]) => {
1114
1114
  true === l4 && false === e5 ? ht(() => {
1115
1115
  t4.value.splice(0);
1116
- }) : false === l4 && true === e5 && (t4.value = ft.slice());
1116
+ }) : false === l4 && true === e5 && (t4.value = mt.slice());
1117
1117
  }, { flush: "post" }), () => {
1118
1118
  var e5;
1119
1119
  return null != (e5 = t4.value.find((e6) => null != e6 && e6.isConnected)) ? e5 : null;
1120
1120
  };
1121
1121
  }(t3);
1122
- y(() => {
1122
+ b(() => {
1123
1123
  h(() => {
1124
1124
  var n3, a3;
1125
1125
  t3.value || (null == (n3 = e3.value) ? void 0 : n3.activeElement) === (null == (a3 = e3.value) ? void 0 : a3.body) && Ne(l3());
@@ -1130,7 +1130,7 @@ let Nt = Object.assign(k({ name: "FocusTrap", props: { as: { type: [Object, Stri
1130
1130
  }({ ownerDocument: o2 }, u(() => r2.value && Boolean(16 & e2.features)));
1131
1131
  let i2 = function({ ownerDocument: e3, container: t3, initialFocus: l3 }, n3) {
1132
1132
  let a3 = s(null), o3 = s(false);
1133
- return y(() => o3.value = true), O(() => o3.value = false), y(() => {
1133
+ return b(() => o3.value = true), O(() => o3.value = false), b(() => {
1134
1134
  p([t3, l3, n3], (r3, i3) => {
1135
1135
  if (r3.every((e4, t4) => (null == i3 ? void 0 : i3[t4]) === e4) || !n3.value)
1136
1136
  return;
@@ -1179,12 +1179,12 @@ let Nt = Object.assign(k({ name: "FocusTrap", props: { as: { type: [Object, Stri
1179
1179
  } });
1180
1180
  }
1181
1181
  let g2 = s(false);
1182
- function f2(e3) {
1182
+ function m2(e3) {
1183
1183
  "Tab" === e3.key && (g2.value = true, requestAnimationFrame(() => {
1184
1184
  g2.value = false;
1185
1185
  }));
1186
1186
  }
1187
- function m2(t3) {
1187
+ function f2(t3) {
1188
1188
  if (!r2.value)
1189
1189
  return;
1190
1190
  let l3 = Lt(e2.containers);
@@ -1193,7 +1193,7 @@ let Nt = Object.assign(k({ name: "FocusTrap", props: { as: { type: [Object, Stri
1193
1193
  n3 instanceof HTMLElement && "true" !== n3.dataset.headlessuiFocusGuard && (zt(l3, n3) || (g2.value ? He(Ce(a2), Oe(d2.value, { [At.Forwards]: () => _e.Next, [At.Backwards]: () => _e.Previous }) | _e.WrapAround, { relativeTo: t3.target }) : t3.target instanceof HTMLElement && Ne(t3.target)));
1194
1194
  }
1195
1195
  return () => {
1196
- let n3 = { ref: a2, onKeydown: f2, onFocusout: m2 }, { features: o3, initialFocus: r3, containers: i3, ...s2 } = e2;
1196
+ let n3 = { ref: a2, onKeydown: m2, onFocusout: f2 }, { features: o3, initialFocus: r3, containers: i3, ...s2 } = e2;
1197
1197
  return x(w, [Boolean(4 & o3) && x(st, { as: "button", type: "button", "data-headlessui-focus-guard": true, onFocus: c2, features: it.Focusable }), tt({ ourProps: n3, theirProps: { ...t2, ...s2 }, slot: {}, attrs: t2, slots: l2, name: "FocusTrap" }), Boolean(4 & o3) && x(st, { as: "button", type: "button", "data-headlessui-focus-guard": true, onFocus: c2, features: it.Focusable })]);
1198
1198
  };
1199
1199
  } }), { features: Ft });
@@ -1228,7 +1228,7 @@ let Vt = function(e2, t2) {
1228
1228
  } };
1229
1229
  }(() => /* @__PURE__ */ new Map(), { PUSH(e2, t2) {
1230
1230
  var l2;
1231
- let n2 = null != (l2 = this.get(e2)) ? l2 : { doc: e2, count: 0, d: yt(), meta: /* @__PURE__ */ new Set() };
1231
+ let n2 = null != (l2 = this.get(e2)) ? l2 : { doc: e2, count: 0, d: bt(), meta: /* @__PURE__ */ new Set() };
1232
1232
  return n2.count++, n2.meta.add(t2), this.set(e2, n2), this;
1233
1233
  }, POP(e2, t2) {
1234
1234
  let l2 = this.get(e2);
@@ -1241,7 +1241,7 @@ let Vt = function(e2, t2) {
1241
1241
  t3.microTask(() => {
1242
1242
  var l4;
1243
1243
  if ("auto" !== window.getComputedStyle(e3.documentElement).scrollBehavior) {
1244
- let l5 = yt();
1244
+ let l5 = bt();
1245
1245
  l5.style(e3.documentElement, "scrollBehavior", "auto"), t3.add(() => t3.microTask(() => l5.dispose()));
1246
1246
  }
1247
1247
  let a3 = null != (l4 = window.scrollY) ? l4 : window.pageYOffset, o2 = null;
@@ -1342,7 +1342,7 @@ function Wt(e2, t2 = s(true)) {
1342
1342
  }
1343
1343
  let Kt = Symbol("ForcePortalRootContext");
1344
1344
  function Jt() {
1345
- return m(Kt, false);
1345
+ return f(Kt, false);
1346
1346
  }
1347
1347
  let Gt = k({ name: "ForcePortalRoot", props: { as: { type: [Object, String], default: "template" }, force: { type: Boolean, default: false } }, setup: (e2, { slots: t2, attrs: l2 }) => (S(Kt, e2.force), () => {
1348
1348
  let { force: n2, ...a2 } = e2;
@@ -1350,12 +1350,12 @@ let Gt = k({ name: "ForcePortalRoot", props: { as: { type: [Object, String], def
1350
1350
  }) }), Zt = Symbol("StackContext");
1351
1351
  var Xt = ((e2) => (e2[e2.Add = 0] = "Add", e2[e2.Remove = 1] = "Remove", e2))(Xt || {});
1352
1352
  function Qt({ type: e2, enabled: t2, element: l2, onUpdate: n2 }) {
1353
- let a2 = m(Zt, () => {
1353
+ let a2 = f(Zt, () => {
1354
1354
  });
1355
1355
  function o2(...e3) {
1356
1356
  null == n2 || n2(...e3), a2(...e3);
1357
1357
  }
1358
- y(() => {
1358
+ b(() => {
1359
1359
  p(t2, (t3, n3) => {
1360
1360
  t3 ? o2(0, e2, l2) : true === n3 && o2(1, e2, l2);
1361
1361
  }, { immediate: true, flush: "sync" });
@@ -1376,18 +1376,18 @@ function tl({ slot: e2 = s({}), name: t2 = "Description", props: l2 = {} } = {})
1376
1376
  k({ name: "Description", props: { as: { type: [Object, String], default: "p" }, id: { type: String, default: null } }, setup(e2, { attrs: t2, slots: l2 }) {
1377
1377
  var n2;
1378
1378
  let a2 = null != (n2 = e2.id) ? n2 : `headlessui-description-${Se()}`, o2 = function() {
1379
- let e3 = m(el, null);
1379
+ let e3 = f(el, null);
1380
1380
  if (null === e3)
1381
1381
  throw new Error("Missing parent");
1382
1382
  return e3;
1383
1383
  }();
1384
- return y(() => O(o2.register(a2))), () => {
1384
+ return b(() => O(o2.register(a2))), () => {
1385
1385
  let { name: n3 = "Description", slot: r2 = s({}), props: i2 = {} } = o2, { ...u2 } = e2, c2 = { ...Object.entries(i2).reduce((e3, [t3, l3]) => Object.assign(e3, { [t3]: d(l3) }), {}), id: a2 };
1386
1386
  return tt({ ourProps: c2, theirProps: u2, slot: r2.value, attrs: t2, slots: l2, name: n3 });
1387
1387
  };
1388
1388
  } });
1389
1389
  let ll = k({ name: "Portal", props: { as: { type: [Object, String], default: "div" } }, setup(e2, { slots: t2, attrs: l2 }) {
1390
- let n2 = s(null), a2 = u(() => Ee(n2)), o2 = Jt(), r2 = m(al, null), i2 = s(true === o2 || null == r2 ? function(e3) {
1390
+ let n2 = s(null), a2 = u(() => Ee(n2)), o2 = Jt(), r2 = f(al, null), i2 = s(true === o2 || null == r2 ? function(e3) {
1391
1391
  let t3 = Ee(e3);
1392
1392
  if (!t3) {
1393
1393
  if (null === e3)
@@ -1400,17 +1400,17 @@ let ll = k({ name: "Portal", props: { as: { type: [Object, String], default: "di
1400
1400
  let n3 = t3.createElement("div");
1401
1401
  return n3.setAttribute("id", "headlessui-portal-root"), t3.body.appendChild(n3);
1402
1402
  }(n2.value) : r2.resolveTarget()), d2 = s(false);
1403
- y(() => {
1403
+ b(() => {
1404
1404
  d2.value = true;
1405
1405
  }), h(() => {
1406
1406
  o2 || null != r2 && (i2.value = r2.resolveTarget());
1407
1407
  });
1408
- let c2 = m(nl, null), g2 = false, f2 = D();
1408
+ let c2 = f(nl, null), g2 = false, m2 = D();
1409
1409
  return p(n2, () => {
1410
1410
  if (g2 || !c2)
1411
1411
  return;
1412
1412
  let e3 = Ce(n2);
1413
- e3 && (O(c2.register(e3), f2), g2 = true);
1413
+ e3 && (O(c2.register(e3), m2), g2 = true);
1414
1414
  }), O(() => {
1415
1415
  var e3, t3;
1416
1416
  let l3 = null == (e3 = a2.value) ? void 0 : e3.getElementById("headlessui-portal-root");
@@ -1432,7 +1432,7 @@ let al = Symbol("PortalGroupContext"), ol = k({ name: "PortalGroup", props: { as
1432
1432
  var rl = ((e2) => (e2[e2.Open = 0] = "Open", e2[e2.Closed = 1] = "Closed", e2))(rl || {});
1433
1433
  let il = Symbol("DialogContext");
1434
1434
  function sl(e2) {
1435
- let t2 = m(il, null);
1435
+ let t2 = f(il, null);
1436
1436
  if (null === t2) {
1437
1437
  let t3 = new Error(`<${e2} /> is missing a parent <Dialog /> component.`);
1438
1438
  throw Error.captureStackTrace && Error.captureStackTrace(t3, sl), t3;
@@ -1442,16 +1442,16 @@ function sl(e2) {
1442
1442
  let ul = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", dl = k({ 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: ul }, initialFocus: { type: Object, default: null }, id: { type: String, default: null }, role: { type: String, default: "dialog" } }, emits: { close: (e2) => true }, setup(e2, { emit: t2, attrs: l2, slots: n2, expose: a2 }) {
1443
1443
  var o2, r2;
1444
1444
  let i2 = null != (o2 = e2.id) ? o2 : `headlessui-dialog-${Se()}`, d2 = s(false);
1445
- y(() => {
1445
+ b(() => {
1446
1446
  d2.value = true;
1447
1447
  });
1448
- let c2 = false, p2 = u(() => "dialog" === e2.role || "alertdialog" === e2.role ? e2.role : (c2 || (c2 = true, console.warn(`Invalid role [${p2}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog")), g2 = s(0), f2 = ct(), b2 = u(() => e2.open === ul && null !== f2 ? (f2.value & dt.Open) === dt.Open : e2.open), w2 = s(null), C2 = u(() => Ee(w2));
1449
- if (a2({ el: w2, $el: w2 }), e2.open === ul && null === f2)
1448
+ let c2 = false, p2 = u(() => "dialog" === e2.role || "alertdialog" === e2.role ? e2.role : (c2 || (c2 = true, console.warn(`Invalid role [${p2}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog")), g2 = s(0), m2 = ct(), y2 = u(() => e2.open === ul && null !== m2 ? (m2.value & dt.Open) === dt.Open : e2.open), w2 = s(null), C2 = u(() => Ee(w2));
1449
+ if (a2({ el: w2, $el: w2 }), e2.open === ul && null === m2)
1450
1450
  throw new Error("You forgot to provide an `open` prop to the `Dialog`.");
1451
- if ("boolean" != typeof b2.value)
1452
- throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${b2.value === ul ? void 0 : e2.open}`);
1453
- let O2 = u(() => d2.value && b2.value ? 0 : 1), M2 = u(() => 0 === O2.value), D2 = u(() => g2.value > 1), T2 = null !== m(il, null), [E2, I2] = function() {
1454
- let e3 = m(nl, null), t3 = s([]);
1451
+ if ("boolean" != typeof y2.value)
1452
+ throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${y2.value === ul ? void 0 : e2.open}`);
1453
+ let O2 = u(() => d2.value && y2.value ? 0 : 1), M2 = u(() => 0 === O2.value), D2 = u(() => g2.value > 1), T2 = null !== f(il, null), [E2, I2] = function() {
1454
+ let e3 = f(nl, null), t3 = s([]);
1455
1455
  function l3(l4) {
1456
1456
  let n4 = t3.value.indexOf(l4);
1457
1457
  -1 !== n4 && t3.value.splice(n4, 1), e3 && e3.unregister(l4);
@@ -1481,7 +1481,7 @@ let ul = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", dl = k({ name: "Dialog", inheri
1481
1481
  }({ portals: E2, defaultContainers: [u(() => {
1482
1482
  var e3;
1483
1483
  return null != (e3 = H2.panelRef.value) ? e3 : w2.value;
1484
- })] }), R2 = u(() => D2.value ? "parent" : "leaf"), B2 = u(() => null !== f2 && (f2.value & dt.Closing) === dt.Closing), A2 = u(() => !T2 && !B2.value && M2.value), L2 = u(() => {
1484
+ })] }), R2 = u(() => D2.value ? "parent" : "leaf"), B2 = u(() => null !== m2 && (m2.value & dt.Closing) === dt.Closing), A2 = u(() => !T2 && !B2.value && M2.value), L2 = u(() => {
1485
1485
  var e3, t3, l3;
1486
1486
  return null != (l3 = Array.from(null != (t3 = null == (e3 = C2.value) ? void 0 : e3.querySelectorAll("body > *")) ? t3 : []).find((e4) => "headlessui-portal-root" !== e4.id && (e4.contains(Ce(P2)) && e4 instanceof HTMLElement))) ? l3 : null;
1487
1487
  });
@@ -1494,7 +1494,7 @@ let ul = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", dl = k({ name: "Dialog", inheri
1494
1494
  if ("Dialog" === t3)
1495
1495
  return Oe(e3, { [Xt.Add]: () => g2.value += 1, [Xt.Remove]: () => g2.value -= 1 });
1496
1496
  } });
1497
- let z2 = tl({ name: "DialogDescription", slot: u(() => ({ open: b2.value })) }), $2 = s(null), H2 = { titleId: $2, panelRef: s(null), dialogState: O2, setTitleId(e3) {
1497
+ let z2 = tl({ name: "DialogDescription", slot: u(() => ({ open: y2.value })) }), $2 = s(null), H2 = { titleId: $2, panelRef: s(null), dialogState: O2, setTitleId(e3) {
1498
1498
  $2.value !== e3 && ($2.value = e3);
1499
1499
  }, close() {
1500
1500
  t2("close", false);
@@ -1543,7 +1543,7 @@ k({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div"
1543
1543
  } }), k({ name: "DialogBackdrop", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, inheritAttrs: false, setup(e2, { attrs: t2, slots: l2, expose: n2 }) {
1544
1544
  var a2;
1545
1545
  let o2 = null != (a2 = e2.id) ? a2 : `headlessui-dialog-backdrop-${Se()}`, r2 = sl("DialogBackdrop"), i2 = s(null);
1546
- return n2({ el: i2, $el: i2 }), y(() => {
1546
+ return n2({ el: i2, $el: i2 }), b(() => {
1547
1547
  if (null === r2.panelRef.value)
1548
1548
  throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.");
1549
1549
  }), () => {
@@ -1564,7 +1564,7 @@ let cl = k({ name: "DialogPanel", props: { as: { type: [Object, String], default
1564
1564
  } }), pl = k({ name: "DialogTitle", props: { as: { type: [Object, String], default: "h2" }, id: { type: String, default: null } }, setup(e2, { attrs: t2, slots: l2 }) {
1565
1565
  var n2;
1566
1566
  let a2 = null != (n2 = e2.id) ? n2 : `headlessui-dialog-title-${Se()}`, o2 = sl("DialogTitle");
1567
- return y(() => {
1567
+ return b(() => {
1568
1568
  o2.setTitleId(a2), O(() => o2.setTitleId(null));
1569
1569
  }), () => {
1570
1570
  let { ...n3 } = e2;
@@ -1572,12 +1572,12 @@ let cl = k({ name: "DialogPanel", props: { as: { type: [Object, String], default
1572
1572
  };
1573
1573
  } });
1574
1574
  var gl = ((e2) => (e2[e2.Open = 0] = "Open", e2[e2.Closed = 1] = "Closed", e2))(gl || {});
1575
- let fl = Symbol("DisclosureContext");
1576
- function ml(e2) {
1577
- let t2 = m(fl, null);
1575
+ let ml = Symbol("DisclosureContext");
1576
+ function fl(e2) {
1577
+ let t2 = f(ml, null);
1578
1578
  if (null === t2) {
1579
1579
  let t3 = new Error(`<${e2} /> is missing a parent <Disclosure /> component.`);
1580
- throw Error.captureStackTrace && Error.captureStackTrace(t3, ml), t3;
1580
+ throw Error.captureStackTrace && Error.captureStackTrace(t3, fl), t3;
1581
1581
  }
1582
1582
  return t2;
1583
1583
  }
@@ -1592,13 +1592,13 @@ let hl = k({ name: "Disclosure", props: { as: { type: [Object, String], default:
1592
1592
  let t3 = e3 ? e3 instanceof HTMLElement ? e3 : e3.value instanceof HTMLElement ? Ce(e3) : Ce(r2.button) : Ce(r2.button);
1593
1593
  null == t3 || t3.focus();
1594
1594
  } };
1595
- return S(fl, r2), pt(u(() => Oe(n2.value, { 0: dt.Open, 1: dt.Closed }))), () => {
1595
+ return S(ml, r2), pt(u(() => Oe(n2.value, { 0: dt.Open, 1: dt.Closed }))), () => {
1596
1596
  let { defaultOpen: a3, ...o3 } = e2;
1597
1597
  return tt({ theirProps: o3, ourProps: {}, slot: { open: 0 === n2.value, close: r2.close }, slots: t2, attrs: l2, name: "Disclosure" });
1598
1598
  };
1599
- } }), yl = k({ name: "DisclosureButton", props: { as: { type: [Object, String], default: "button" }, disabled: { type: [Boolean], default: false }, id: { type: String, default: null } }, setup(e2, { attrs: t2, slots: l2, expose: n2 }) {
1600
- let a2 = ml("DisclosureButton"), o2 = m(vl, null), r2 = u(() => null !== o2 && o2.value === a2.panelId.value);
1601
- y(() => {
1599
+ } }), bl = k({ name: "DisclosureButton", props: { as: { type: [Object, String], default: "button" }, disabled: { type: [Boolean], default: false }, id: { type: String, default: null } }, setup(e2, { attrs: t2, slots: l2, expose: n2 }) {
1600
+ let a2 = fl("DisclosureButton"), o2 = f(vl, null), r2 = u(() => null !== o2 && o2.value === a2.panelId.value);
1601
+ b(() => {
1602
1602
  r2.value || null !== e2.id && (a2.buttonId.value = e2.id);
1603
1603
  }), O(() => {
1604
1604
  r2.value || (a2.buttonId.value = null);
@@ -1637,9 +1637,9 @@ let hl = k({ name: "Disclosure", props: { as: { type: [Object, String], default:
1637
1637
  let o3 = { open: 0 === a2.disclosureState.value }, { id: s2, ...u2 } = e2;
1638
1638
  return tt({ ourProps: r2.value ? { ref: i2, type: d2.value, onClick: c2, onKeydown: p2 } : { id: null != (n3 = a2.buttonId.value) ? n3 : s2, ref: i2, type: d2.value, "aria-expanded": 0 === a2.disclosureState.value, "aria-controls": 0 === a2.disclosureState.value || Ce(a2.panel) ? a2.panelId.value : void 0, disabled: !!e2.disabled || void 0, onClick: c2, onKeydown: p2, onKeyup: g2 }, theirProps: u2, slot: o3, attrs: t2, slots: l2, name: "DisclosureButton" });
1639
1639
  };
1640
- } }), bl = k({ name: "DisclosurePanel", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: false }, unmount: { type: Boolean, default: true }, id: { type: String, default: null } }, setup(e2, { attrs: t2, slots: l2, expose: n2 }) {
1641
- let a2 = ml("DisclosurePanel");
1642
- y(() => {
1640
+ } }), yl = k({ name: "DisclosurePanel", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: false }, unmount: { type: Boolean, default: true }, id: { type: String, default: null } }, setup(e2, { attrs: t2, slots: l2, expose: n2 }) {
1641
+ let a2 = fl("DisclosurePanel");
1642
+ b(() => {
1643
1643
  null !== e2.id && (a2.panelId.value = e2.id);
1644
1644
  }), O(() => {
1645
1645
  a2.panelId.value = null;
@@ -1696,7 +1696,7 @@ function kl(e2) {
1696
1696
  var Sl = ((e2) => (e2[e2.Open = 0] = "Open", e2[e2.Closed = 1] = "Closed", e2))(Sl || {}), Cl = ((e2) => (e2[e2.Pointer = 0] = "Pointer", e2[e2.Other = 1] = "Other", e2))(Cl || {});
1697
1697
  let Ol = Symbol("MenuContext");
1698
1698
  function Ml(e2) {
1699
- let t2 = m(Ol, null);
1699
+ let t2 = f(Ol, null);
1700
1700
  if (null === t2) {
1701
1701
  let t3 = new Error(`<${e2} /> is missing a parent <Menu /> component.`);
1702
1702
  throw Error.captureStackTrace && Error.captureStackTrace(t3, Ml), t3;
@@ -1712,7 +1712,7 @@ let Dl = k({ name: "Menu", props: { as: { type: [Object, String], default: "temp
1712
1712
  let g2 = { menuState: n2, buttonRef: a2, itemsRef: o2, items: r2, searchQuery: i2, activeItemIndex: d2, activationTrigger: c2, closeMenu: () => {
1713
1713
  n2.value = 1, d2.value = null;
1714
1714
  }, openMenu: () => n2.value = 0, goToItem(e3, t3, l3) {
1715
- let n3 = p2(), a3 = vt(e3 === mt.Specific ? { focus: mt.Specific, id: t3 } : { focus: e3 }, { resolveItems: () => n3.items, resolveActiveIndex: () => n3.activeItemIndex, resolveId: (e4) => e4.id, resolveDisabled: (e4) => e4.dataRef.disabled });
1715
+ let n3 = p2(), a3 = vt(e3 === ft.Specific ? { focus: ft.Specific, id: t3 } : { focus: e3 }, { resolveItems: () => n3.items, resolveActiveIndex: () => n3.activeItemIndex, resolveId: (e4) => e4.id, resolveDisabled: (e4) => e4.dataRef.disabled });
1716
1716
  i2.value = "", d2.value = a3, c2.value = null != l3 ? l3 : 1, r2.value = n3.items;
1717
1717
  }, search(e3) {
1718
1718
  let t3 = "" !== i2.value ? 0 : 1;
@@ -1748,13 +1748,13 @@ let Dl = k({ name: "Menu", props: { as: { type: [Object, String], default: "temp
1748
1748
  case gt.ArrowDown:
1749
1749
  e3.preventDefault(), e3.stopPropagation(), r2.openMenu(), v(() => {
1750
1750
  var e4;
1751
- null == (e4 = Ce(r2.itemsRef)) || e4.focus({ preventScroll: true }), r2.goToItem(mt.First);
1751
+ null == (e4 = Ce(r2.itemsRef)) || e4.focus({ preventScroll: true }), r2.goToItem(ft.First);
1752
1752
  });
1753
1753
  break;
1754
1754
  case gt.ArrowUp:
1755
1755
  e3.preventDefault(), e3.stopPropagation(), r2.openMenu(), v(() => {
1756
1756
  var e4;
1757
- null == (e4 = Ce(r2.itemsRef)) || e4.focus({ preventScroll: true }), r2.goToItem(mt.Last);
1757
+ null == (e4 = Ce(r2.itemsRef)) || e4.focus({ preventScroll: true }), r2.goToItem(ft.Last);
1758
1758
  });
1759
1759
  }
1760
1760
  }
@@ -1796,15 +1796,15 @@ let Dl = k({ name: "Menu", props: { as: { type: [Object, String], default: "temp
1796
1796
  r2.closeMenu(), Le(Ce(r2.buttonRef));
1797
1797
  break;
1798
1798
  case gt.ArrowDown:
1799
- return e3.preventDefault(), e3.stopPropagation(), r2.goToItem(mt.Next);
1799
+ return e3.preventDefault(), e3.stopPropagation(), r2.goToItem(ft.Next);
1800
1800
  case gt.ArrowUp:
1801
- return e3.preventDefault(), e3.stopPropagation(), r2.goToItem(mt.Previous);
1801
+ return e3.preventDefault(), e3.stopPropagation(), r2.goToItem(ft.Previous);
1802
1802
  case gt.Home:
1803
1803
  case gt.PageUp:
1804
- return e3.preventDefault(), e3.stopPropagation(), r2.goToItem(mt.First);
1804
+ return e3.preventDefault(), e3.stopPropagation(), r2.goToItem(ft.First);
1805
1805
  case gt.End:
1806
1806
  case gt.PageDown:
1807
- return e3.preventDefault(), e3.stopPropagation(), r2.goToItem(mt.Last);
1807
+ return e3.preventDefault(), e3.stopPropagation(), r2.goToItem(ft.Last);
1808
1808
  case gt.Escape:
1809
1809
  e3.preventDefault(), e3.stopPropagation(), r2.closeMenu(), v(() => {
1810
1810
  var e4;
@@ -1845,34 +1845,34 @@ let Dl = k({ name: "Menu", props: { as: { type: [Object, String], default: "temp
1845
1845
  return t3.preventDefault();
1846
1846
  r2.closeMenu(), Le(Ce(r2.buttonRef));
1847
1847
  }
1848
- function f2() {
1848
+ function m2() {
1849
1849
  if (e2.disabled)
1850
- return r2.goToItem(mt.Nothing);
1851
- r2.goToItem(mt.Specific, o2);
1850
+ return r2.goToItem(ft.Nothing);
1851
+ r2.goToItem(ft.Specific, o2);
1852
1852
  }
1853
- y(() => r2.registerItem(o2, p2)), O(() => r2.unregisterItem(o2)), h(() => {
1853
+ b(() => r2.registerItem(o2, p2)), O(() => r2.unregisterItem(o2)), h(() => {
1854
1854
  0 === r2.menuState.value && d2.value && 0 !== r2.activationTrigger.value && v(() => {
1855
1855
  var e3, t3;
1856
1856
  return null == (t3 = null == (e3 = Ce(i2)) ? void 0 : e3.scrollIntoView) ? void 0 : t3.call(e3, { block: "nearest" });
1857
1857
  });
1858
1858
  });
1859
- let m2 = Ze();
1860
- function b2(e3) {
1861
- m2.update(e3);
1859
+ let f2 = Ze();
1860
+ function y2(e3) {
1861
+ f2.update(e3);
1862
1862
  }
1863
1863
  function x2(t3) {
1864
- m2.wasMoved(t3) && (e2.disabled || d2.value || r2.goToItem(mt.Specific, o2, 0));
1864
+ f2.wasMoved(t3) && (e2.disabled || d2.value || r2.goToItem(ft.Specific, o2, 0));
1865
1865
  }
1866
1866
  function w2(t3) {
1867
- m2.wasMoved(t3) && (e2.disabled || d2.value && r2.goToItem(mt.Nothing));
1867
+ f2.wasMoved(t3) && (e2.disabled || d2.value && r2.goToItem(ft.Nothing));
1868
1868
  }
1869
1869
  return () => {
1870
1870
  let { disabled: n3, ...a3 } = e2, s2 = { active: d2.value, disabled: n3, close: r2.closeMenu };
1871
- return tt({ ourProps: { id: o2, ref: i2, role: "menuitem", tabIndex: true === n3 ? void 0 : -1, "aria-disabled": true === n3 || void 0, onClick: g2, onFocus: f2, onPointerenter: b2, onMouseenter: b2, onPointermove: x2, onMousemove: x2, onPointerleave: w2, onMouseleave: w2 }, theirProps: { ...l2, ...a3 }, slot: s2, attrs: l2, slots: t2, name: "MenuItem" });
1871
+ return tt({ ourProps: { id: o2, ref: i2, role: "menuitem", tabIndex: true === n3 ? void 0 : -1, "aria-disabled": true === n3 || void 0, onClick: g2, onFocus: m2, onPointerenter: y2, onMouseenter: y2, onPointermove: x2, onMousemove: x2, onPointerleave: w2, onMouseleave: w2 }, theirProps: { ...l2, ...a3 }, slot: s2, attrs: l2, slots: t2, name: "MenuItem" });
1872
1872
  };
1873
1873
  } }), _l = Symbol("LabelContext");
1874
1874
  function Pl() {
1875
- let e2 = m(_l, null);
1875
+ let e2 = f(_l, null);
1876
1876
  if (null === e2) {
1877
1877
  let e3 = new Error("You used a <Label /> component, but it is not inside a parent.");
1878
1878
  throw Error.captureStackTrace && Error.captureStackTrace(e3, Pl), e3;
@@ -1882,7 +1882,7 @@ function Pl() {
1882
1882
  let jl = k({ name: "Label", props: { as: { type: [Object, String], default: "label" }, passive: { type: [Boolean], default: false }, id: { type: String, default: null } }, setup(e2, { slots: t2, attrs: l2 }) {
1883
1883
  var n2;
1884
1884
  let a2 = null != (n2 = e2.id) ? n2 : `headlessui-label-${Se()}`, o2 = Pl();
1885
- return y(() => O(o2.register(a2))), () => {
1885
+ return b(() => O(o2.register(a2))), () => {
1886
1886
  let { name: n3 = "Label", slot: r2 = {}, props: i2 = {} } = o2, { passive: s2, ...u2 } = e2, c2 = { ...Object.entries(i2).reduce((e3, [t3, l3]) => Object.assign(e3, { [t3]: d(l3) }), {}), id: a2 };
1887
1887
  return s2 && (delete c2.onClick, delete c2.htmlFor, delete u2.onClick), tt({ ourProps: c2, theirProps: u2, slot: r2, attrs: l2, slots: t2, name: n3 });
1888
1888
  };
@@ -1904,12 +1904,12 @@ let jl = k({ name: "Label", props: { as: { type: [Object, String], default: "lab
1904
1904
  return S(Rl, { switchRef: n2, labelledby: a2, describedby: o2 }), () => tt({ theirProps: e2, ourProps: {}, slot: {}, slots: t2, attrs: l2, name: "SwitchGroup" });
1905
1905
  } }), Al = k({ name: "Switch", emits: { "update:modelValue": (e2) => true }, props: { as: { type: [Object, String], default: "button" }, modelValue: { type: Boolean, default: void 0 }, defaultChecked: { type: Boolean, optional: true }, form: { type: String, optional: true }, name: { type: String, optional: true }, value: { type: String, optional: true }, id: { type: String, default: null }, disabled: { type: Boolean, default: false }, tabIndex: { type: Number, default: 0 } }, inheritAttrs: false, setup(e2, { emit: t2, attrs: l2, slots: n2, expose: a2 }) {
1906
1906
  var o2;
1907
- let r2 = null != (o2 = e2.id) ? o2 : `headlessui-switch-${Se()}`, i2 = m(Rl, null), [d2, c2] = xe(u(() => e2.modelValue), (e3) => t2("update:modelValue", e3), u(() => e2.defaultChecked));
1907
+ let r2 = null != (o2 = e2.id) ? o2 : `headlessui-switch-${Se()}`, i2 = f(Rl, null), [d2, c2] = xe(u(() => e2.modelValue), (e3) => t2("update:modelValue", e3), u(() => e2.defaultChecked));
1908
1908
  function g2() {
1909
1909
  c2(!d2.value);
1910
1910
  }
1911
- let f2 = s(null), v2 = null === i2 ? f2 : i2.switchRef, h2 = Je(u(() => ({ as: e2.as, type: l2.type })), v2);
1912
- function b2(e3) {
1911
+ let m2 = s(null), v2 = null === i2 ? m2 : i2.switchRef, h2 = Je(u(() => ({ as: e2.as, type: l2.type })), v2);
1912
+ function y2(e3) {
1913
1913
  e3.preventDefault(), g2();
1914
1914
  }
1915
1915
  function k2(e3) {
@@ -1932,7 +1932,7 @@ let jl = k({ name: "Label", props: { as: { type: [Object, String], default: "lab
1932
1932
  var e3, t3;
1933
1933
  return null == (t3 = null == (e3 = Ce(v2)) ? void 0 : e3.closest) ? void 0 : t3.call(e3, "form");
1934
1934
  });
1935
- return y(() => {
1935
+ return b(() => {
1936
1936
  p([C2], () => {
1937
1937
  if (C2.value && void 0 !== e2.defaultChecked)
1938
1938
  return C2.value.addEventListener("reset", t3), () => {
@@ -1944,7 +1944,7 @@ let jl = k({ name: "Label", props: { as: { type: [Object, String], default: "lab
1944
1944
  }
1945
1945
  }, { immediate: true });
1946
1946
  }), () => {
1947
- let { name: t3, value: a3, form: o3, tabIndex: s2, ...u2 } = e2, c3 = { checked: d2.value }, p2 = { id: r2, ref: v2, role: "switch", type: h2.value, tabIndex: -1 === s2 ? 0 : s2, "aria-checked": d2.value, "aria-labelledby": null == i2 ? void 0 : i2.labelledby.value, "aria-describedby": null == i2 ? void 0 : i2.describedby.value, onClick: b2, onKeyup: k2, onKeypress: S2 };
1947
+ let { name: t3, value: a3, form: o3, tabIndex: s2, ...u2 } = e2, c3 = { checked: d2.value }, p2 = { id: r2, ref: v2, role: "switch", type: h2.value, tabIndex: -1 === s2 ? 0 : s2, "aria-checked": d2.value, "aria-labelledby": null == i2 ? void 0 : i2.labelledby.value, "aria-describedby": null == i2 ? void 0 : i2.describedby.value, onClick: y2, onKeyup: k2, onKeypress: S2 };
1948
1948
  return x(w, [null != t3 && null != d2.value ? x(st, ot({ features: it.Hidden, as: "input", type: "checkbox", hidden: true, readOnly: true, checked: d2.value, form: o3, disabled: u2.disabled, name: t3, value: a3 })) : null, tt({ ourProps: p2, theirProps: { ...l2, ...rt(u2, ["modelValue", "defaultChecked"]) }, slot: c3, attrs: l2, slots: n2, name: "Switch" })]);
1949
1949
  };
1950
1950
  } }), Ll = jl;
@@ -1956,7 +1956,7 @@ function Nl(e2, ...t2) {
1956
1956
  }
1957
1957
  var zl = ((e2) => (e2.Finished = "finished", e2.Cancelled = "cancelled", e2))(zl || {});
1958
1958
  function $l(e2, t2, l2, n2, a2, o2) {
1959
- let r2 = yt(), i2 = void 0 !== o2 ? /* @__PURE__ */ function(e3) {
1959
+ let r2 = bt(), i2 = void 0 !== o2 ? /* @__PURE__ */ function(e3) {
1960
1960
  let t3 = { called: false };
1961
1961
  return (...l3) => {
1962
1962
  if (!t3.called)
@@ -1966,7 +1966,7 @@ function $l(e2, t2, l2, n2, a2, o2) {
1966
1966
  };
1967
1967
  return Nl(e2, ...a2), Fl(e2, ...t2, ...l2), r2.nextFrame(() => {
1968
1968
  Nl(e2, ...l2), Fl(e2, ...n2), r2.add(function(e3, t3) {
1969
- let l3 = yt();
1969
+ let l3 = bt();
1970
1970
  if (!e3)
1971
1971
  return l3.dispose;
1972
1972
  let { transitionDuration: n3, transitionDelay: a3 } = getComputedStyle(e3), [o3, r3] = [n3, a3].map((e4) => {
@@ -1996,7 +1996,7 @@ function Wl(e2) {
1996
1996
  t2.value[o2].state = "hidden";
1997
1997
  } }), !ql(t2) && l2.value && (null == e2 || e2()));
1998
1998
  }
1999
- return y(() => l2.value = true), O(() => l2.value = false), { children: t2, register: function(e3) {
1999
+ return b(() => l2.value = true), O(() => l2.value = false), { children: t2, register: function(e3) {
2000
2000
  let l3 = t2.value.find(({ id: t3 }) => t3 === e3);
2001
2001
  return l3 ? "visible" !== l3.state && (l3.state = "visible") : t2.value.push({ id: e3, state: "visible" }), () => n2(e3, et.Unmount);
2002
2002
  }, unregister: n2 };
@@ -2015,47 +2015,47 @@ let Kl = Qe.RenderStrategy, Jl = k({ props: { as: { type: [Object, String], defa
2015
2015
  function g2() {
2016
2016
  r2.value &= ~dt.Closing, t2("afterLeave");
2017
2017
  }
2018
- if (null === m(Vl, null) && null !== ct())
2018
+ if (null === f(Vl, null) && null !== ct())
2019
2019
  return () => x(Zl, { ...e2, onBeforeEnter: i2, onAfterEnter: d2, onBeforeLeave: c2, onAfterLeave: g2 }, a2);
2020
- let f2 = s(null), v2 = u(() => e2.unmount ? et.Unmount : et.Hidden);
2021
- o2({ el: f2, $el: f2 });
2022
- let { show: b2, appear: w2 } = function() {
2023
- let e3 = m(Vl, null);
2020
+ let m2 = s(null), v2 = u(() => e2.unmount ? et.Unmount : et.Hidden);
2021
+ o2({ el: m2, $el: m2 });
2022
+ let { show: y2, appear: w2 } = function() {
2023
+ let e3 = f(Vl, null);
2024
2024
  if (null === e3)
2025
2025
  throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");
2026
2026
  return e3;
2027
2027
  }(), { register: k2, unregister: C2 } = function() {
2028
- let e3 = m(Ul, null);
2028
+ let e3 = f(Ul, null);
2029
2029
  if (null === e3)
2030
2030
  throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");
2031
2031
  return e3;
2032
- }(), M2 = s(b2.value ? "visible" : "hidden"), D2 = { value: true }, T2 = Se(), E2 = { value: false }, I2 = Wl(() => {
2032
+ }(), M2 = s(y2.value ? "visible" : "hidden"), D2 = { value: true }, T2 = Se(), E2 = { value: false }, I2 = Wl(() => {
2033
2033
  !E2.value && "hidden" !== M2.value && (M2.value = "hidden", C2(T2), g2());
2034
2034
  });
2035
- y(() => {
2035
+ b(() => {
2036
2036
  let e3 = k2(T2);
2037
2037
  O(e3);
2038
2038
  }), h(() => {
2039
2039
  if (v2.value === et.Hidden && T2) {
2040
- if (b2.value && "visible" !== M2.value)
2040
+ if (y2.value && "visible" !== M2.value)
2041
2041
  return void (M2.value = "visible");
2042
2042
  Oe(M2.value, { hidden: () => C2(T2), visible: () => k2(T2) });
2043
2043
  }
2044
2044
  });
2045
2045
  let _2 = Hl(e2.enter), P2 = Hl(e2.enterFrom), j2 = Hl(e2.enterTo), R2 = Hl(e2.entered), B2 = Hl(e2.leave), A2 = Hl(e2.leaveFrom), L2 = Hl(e2.leaveTo);
2046
- return y(() => {
2046
+ return b(() => {
2047
2047
  h(() => {
2048
2048
  if ("visible" === M2.value) {
2049
- let e3 = Ce(f2);
2049
+ let e3 = Ce(m2);
2050
2050
  if (e3 instanceof Comment && "" === e3.data)
2051
2051
  throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
2052
2052
  }
2053
2053
  });
2054
- }), y(() => {
2055
- p([b2], (e3, t3, l3) => {
2054
+ }), b(() => {
2055
+ p([y2], (e3, t3, l3) => {
2056
2056
  (function(e4) {
2057
- let t4 = D2.value && !w2.value, l4 = Ce(f2);
2058
- !l4 || !(l4 instanceof HTMLElement) || t4 || (E2.value = true, b2.value && i2(), b2.value || c2(), e4(b2.value ? $l(l4, _2, P2, j2, R2, (e5) => {
2057
+ let t4 = D2.value && !w2.value, l4 = Ce(m2);
2058
+ !l4 || !(l4 instanceof HTMLElement) || t4 || (E2.value = true, y2.value && i2(), y2.value || c2(), e4(y2.value ? $l(l4, _2, P2, j2, R2, (e5) => {
2059
2059
  E2.value = false, e5 === zl.Finished && d2();
2060
2060
  }) : $l(l4, B2, A2, L2, R2, (e5) => {
2061
2061
  E2.value = false, e5 === zl.Finished && (ql(I2) || (M2.value = "hidden", C2(T2), g2()));
@@ -2063,8 +2063,8 @@ let Kl = Qe.RenderStrategy, Jl = k({ props: { as: { type: [Object, String], defa
2063
2063
  })(l3), D2.value = false;
2064
2064
  }, { immediate: true });
2065
2065
  }), S(Ul, I2), pt(u(() => Oe(M2.value, { visible: dt.Open, hidden: dt.Closed }) | r2.value)), () => {
2066
- let { appear: t3, show: o3, enter: r3, enterFrom: i3, enterTo: s2, entered: u2, leave: d3, leaveFrom: c3, leaveTo: p2, ...g3 } = e2, m2 = { ref: f2 };
2067
- return tt({ theirProps: { ...g3, ...w2.value && b2.value && Te.isServer ? { class: n([l2.class, g3.class, ..._2, ...P2]) } : {} }, ourProps: m2, slot: {}, slots: a2, attrs: l2, features: Kl, visible: "visible" === M2.value, name: "TransitionChild" });
2066
+ let { appear: t3, show: o3, enter: r3, enterFrom: i3, enterTo: s2, entered: u2, leave: d3, leaveFrom: c3, leaveTo: p2, ...g3 } = e2, f2 = { ref: m2 };
2067
+ return tt({ theirProps: { ...g3, ...w2.value && y2.value && Te.isServer ? { class: n([l2.class, g3.class, ..._2, ...P2]) } : {} }, ourProps: f2, slot: {}, slots: a2, attrs: l2, features: Kl, visible: "visible" === M2.value, name: "TransitionChild" });
2068
2068
  };
2069
2069
  } }), Gl = Jl, Zl = k({ inheritAttrs: false, props: { as: { type: [Object, String], default: "div" }, show: { type: [Boolean], default: null }, unmount: { type: [Boolean], default: true }, appear: { type: [Boolean], default: false }, enter: { type: [String], default: "" }, enterFrom: { type: [String], default: "" }, enterTo: { type: [String], default: "" }, entered: { type: [String], default: "" }, leave: { type: [String], default: "" }, leaveFrom: { type: [String], default: "" }, leaveTo: { type: [String], default: "" } }, emits: { beforeEnter: () => true, afterEnter: () => true, beforeLeave: () => true, afterLeave: () => true }, setup(e2, { emit: t2, attrs: l2, slots: n2 }) {
2070
2070
  let a2 = ct(), o2 = u(() => null === e2.show && null !== a2 ? (a2.value & dt.Open) === dt.Open : e2.show);
@@ -2075,7 +2075,7 @@ let Kl = Qe.RenderStrategy, Jl = k({ props: { as: { type: [Object, String], defa
2075
2075
  let r2 = s(o2.value ? "visible" : "hidden"), i2 = Wl(() => {
2076
2076
  r2.value = "hidden";
2077
2077
  }), d2 = s(true), c2 = { show: o2, appear: u(() => e2.appear || !d2.value) };
2078
- return y(() => {
2078
+ return b(() => {
2079
2079
  h(() => {
2080
2080
  d2.value = false, o2.value ? r2.value = "visible" : ql(i2) || (r2.value = "hidden");
2081
2081
  });
@@ -2129,31 +2129,29 @@ function pn(t2, l2) {
2129
2129
  function gn(t2, l2) {
2130
2130
  return e(), a("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", "aria-hidden": "true", "data-slot": "icon" }, [i("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z" })]);
2131
2131
  }
2132
- function fn(t2, l2) {
2132
+ function mn(t2, l2) {
2133
2133
  return e(), a("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", "aria-hidden": "true", "data-slot": "icon" }, [i("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0" })]);
2134
2134
  }
2135
- function mn(t2, l2) {
2135
+ function fn(t2, l2) {
2136
2136
  return e(), a("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", "aria-hidden": "true", "data-slot": "icon" }, [i("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z" })]);
2137
2137
  }
2138
2138
  function vn(t2, l2) {
2139
2139
  return e(), a("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", "aria-hidden": "true", "data-slot": "icon" }, [i("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M6 18 18 6M6 6l12 12" })]);
2140
2140
  }
2141
- const hn = { class: "py-1" }, yn = ["onClick"], bn = { key: 1, class: "animate-pulse px-4 py-2 bg-gray-200 rounded-md flex inline-flex items-center relative inline-block text-left" }, xn = i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28" }, null, -1), wn = { name: "uiDropdown" }, kn = Object.assign(wn, { props: { items: { type: Array, required: true }, position: { type: String, default: "left" }, disabled: Boolean, label: String, loading: { type: Boolean, default: true } }, emits: ["optionSelected"], setup(l2, { emit: r2 }) {
2141
+ const hn = { class: "py-1" }, bn = ["onClick"], yn = { key: 1, class: "animate-pulse px-4 py-2 bg-gray-200 rounded-md flex inline-flex items-center relative inline-block text-left" }, xn = i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28" }, null, -1), wn = { name: "uiDropdown" }, kn = Object.assign(wn, { props: { items: { type: Array, required: true }, position: { type: String, default: "left" }, disabled: Boolean, label: String, loading: { type: Boolean, default: true } }, emits: ["optionSelected"], setup(l2, { emit: r2 }) {
2142
2142
  const s2 = r2, c2 = l2, p2 = u(() => {
2143
2143
  let e2 = c2.items.find((e3) => true === e3.active);
2144
2144
  return e2 ? e2.name : c2.label;
2145
2145
  });
2146
- return (r3, u2) => l2.loading ? (e(), a("div", bn, [xn, o(d(nn), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5 text-gray-200 dark:text-gray-300" })])) : (e(), t(d(Dl), { key: 0, as: "div", class: n(["relative inline-block text-left", { "opacity-25": l2.disabled }]) }, { default: E(() => [i("div", null, [o(d(Tl), { class: "inline-flex justify-between w-full rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-indigo-500" }, { default: E(() => [I(_(p2.value) + " ", 1), o(d(nn), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5" })]), _: 1 })]), o(P, { "enter-active-class": "transition ease-out duration-100", "enter-from-class": "transform opacity-0 scale-95", "enter-to-class": "transform opacity-100 scale-100", "leave-active-class": "transition ease-in duration-75", "leave-from-class": "transform opacity-100 scale-100", "leave-to-class": "transform opacity-0 scale-95" }, { default: E(() => [l2.disabled ? R("", true) : (e(), t(d(El), { key: 0, class: n([{ "right-0": "right" === l2.position, "left-0": "left" === l2.position }, "origin-top-right absolute mt-2 w-56 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none z-10"]) }, { default: E(() => [i("div", hn, [(e(true), a(w, null, j(l2.items, (l3, a2) => (e(), t(d(Il), { key: a2 }, { default: E(() => [i("a", { onClick: (e2) => ((e3) => {
2146
+ return (r3, u2) => l2.loading ? (e(), a("div", yn, [xn, o(d(nn), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5 text-gray-200 dark:text-gray-300" })])) : (e(), t(d(Dl), { key: 0, as: "div", class: n(["relative inline-block text-left", { "opacity-25": l2.disabled }]) }, { default: E(() => [i("div", null, [o(d(Tl), { class: "inline-flex justify-between w-full rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-indigo-500" }, { default: E(() => [I(_(p2.value) + " ", 1), o(d(nn), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5" })]), _: 1 })]), o(P, { "enter-active-class": "transition ease-out duration-100", "enter-from-class": "transform opacity-0 scale-95", "enter-to-class": "transform opacity-100 scale-100", "leave-active-class": "transition ease-in duration-75", "leave-from-class": "transform opacity-100 scale-100", "leave-to-class": "transform opacity-0 scale-95" }, { default: E(() => [l2.disabled ? R("", true) : (e(), t(d(El), { key: 0, class: n([{ "right-0": "right" === l2.position, "left-0": "left" === l2.position }, "origin-top-right absolute mt-2 w-56 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none z-10"]) }, { default: E(() => [i("div", hn, [(e(true), a(w, null, j(l2.items, (l3, a2) => (e(), t(d(Il), { key: a2 }, { default: E(() => [i("a", { onClick: (e2) => ((e3) => {
2147
2147
  c2.disabled || s2("optionSelected", e3.value);
2148
- })(l3), class: n([l3.active ? "bg-gray-100 text-gray-900" : "text-gray-700", "block px-4 py-2 text-sm cursor-pointer"]) }, _(l3.name), 11, yn)]), _: 2 }, 1024))), 128))])]), _: 1 }, 8, ["class"]))]), _: 1 })]), _: 1 }, 8, ["class"]));
2148
+ })(l3), class: n([l3.active ? "bg-gray-100 text-gray-900" : "text-gray-700", "block px-4 py-2 text-sm cursor-pointer"]) }, _(l3.name), 11, bn)]), _: 2 }, 1024))), 128))])]), _: 1 }, 8, ["class"]))]), _: 1 })]), _: 1 }, 8, ["class"]));
2149
2149
  } }), Sn = { key: 0 }, Cn = { class: "flex justify-between" }, On = { key: 0, class: "block text-sm font-medium text-gray-700" }, Mn = { key: 1, class: "text-[10px] text-gray-500 uppercase justify-self-end" }, Dn = ["disabled", "name", "placeholder", "type"], Tn = { key: 2, class: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none" }, En = { key: 1, class: "animate-pulse" }, In = { key: 0, class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/3 md:w-1/4 mb-1.5" }, _n = i("div", { class: "animate-pulse px-4 py-3.5 bg-gray-200 rounded-md flex inline-flex items-center relative inline-block text-left w-full" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28" })], -1), Pn = { name: "uiInput" }, jn = Object.assign(Pn, { props: { label: String, type: { type: String, default: "text" }, name: String, placeholder: { type: String, default: "..." }, icon: { type: Function, default: () => {
2150
2150
  } }, disabled: Boolean, color: { type: String, default: "gray" }, value: { type: String, default: "" }, error: String, optional: String, addOn: String, rightAddOn: String, loading: { type: Boolean, default: true } }, emits: ["inputChanged", "rightAddOnClicked", "addOnClicked"], setup(t2, { emit: l2 }) {
2151
- const r2 = l2, u2 = t2, c2 = (e2) => {
2152
- r2("inputChanged", { value: e2.target.value, name: e2.target.name });
2153
- }, g2 = s(u2.value);
2151
+ const r2 = l2, u2 = t2, c2 = s(u2.value);
2154
2152
  return p(() => u2.value, (e2) => {
2155
- g2.value = e2, r2("inputChanged", { name: u2.name, value: g2.value });
2156
- }), (l3, r3) => t2.loading ? (e(), a("div", En, [void 0 !== t2.label ? (e(), a("div", In)) : R("", true), _n])) : (e(), a("div", Sn, [i("div", Cn, [t2.label ? (e(), a("label", On, _(t2.label), 1)) : R("", true), t2.optional ? (e(), a("span", Mn, _(t2.optional), 1)) : R("", true)]), i("div", { class: n([{ "mt-1": t2.label }, "relative flex"]) }, [t2.addOn ? (e(), a("span", { key: 0, onClick: r3[0] || (r3[0] = (e2) => l3.$emit("addOnClicked")), class: "inline-flex items-center px-3 rounded-l-md border border-r-0 border-gray-300 bg-gray-50 text-gray-500 sm:text-sm cursor-pointer" }, _(t2.addOn), 1)) : R("", true), B(i("input", { "onUpdate:modelValue": r3[1] || (r3[1] = (e2) => g2.value = e2), class: n([{ "border-gray-300": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "border-red-400": "danger" === t2.color, "border-yellow-400": "warning" === t2.color, "border-green-400": "success" === t2.color, "bg-gray-100": t2.disabled, "text-black": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "text-red-400": "danger" === t2.color, "text-yellow-400": "warning" === t2.color, "text-green-400": "success" === t2.color, "rounded-md": !t2.addOn || !t2.rightAddOn, "rounded-r-md": t2.addOn, "rounded-l-none": t2.addOn, "rounded-l-md": t2.rightAddOn, "rounded-r-none": t2.rightAddOn }, "shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 placeholder-gray-300"]), disabled: t2.disabled, name: t2.name, placeholder: t2.placeholder, type: t2.type, onInput: c2 }, null, 42, Dn), [[A, g2.value]]), t2.rightAddOn ? (e(), a("span", { key: 1, onClick: r3[2] || (r3[2] = (e2) => l3.$emit("rightAddOnClicked")), class: "inline-flex items-center px-3 rounded-r-md border border-l-0 border-gray-300 bg-gray-50 hover:bg-gray-200 text-gray-500 sm:text-sm cursor-pointer" }, _(t2.rightAddOn), 1)) : R("", true), t2.icon ? (e(), a("div", Tn, [o(K, { icon: t2.icon, color: t2.color, loading: t2.loading }, null, 8, ["icon", "color", "loading"]), B(o(K, { icon: d(ln), color: "green", loading: t2.loading }, null, 8, ["icon", "loading"]), [[L, "success" === t2.color]]), B(o(K, { icon: d(un), color: "yellow", loading: t2.loading }, null, 8, ["icon", "loading"]), [[L, "warning" === t2.color]]), B(o(K, { icon: d(vn), color: "red", loading: t2.loading }, null, 8, ["icon", "loading"]), [[L, "danger" === t2.color]])])) : R("", true)], 2), B(i("p", { class: n([{ "text-gray-400": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "text-red-400": "danger" === t2.color, "text-yellow-400": "warning" === t2.color, "text-green-400": "success" === t2.color }, "mt-2 text-xs flex flex-row items-center"]) }, _(t2.error), 3), [[L, t2.error]])]));
2153
+ c2.value = e2, r2("inputChanged", { name: u2.name, value: c2.value });
2154
+ }), (l3, r3) => t2.loading ? (e(), a("div", En, [void 0 !== t2.label ? (e(), a("div", In)) : R("", true), _n])) : (e(), a("div", Sn, [i("div", Cn, [t2.label ? (e(), a("label", On, _(t2.label), 1)) : R("", true), t2.optional ? (e(), a("span", Mn, _(t2.optional), 1)) : R("", true)]), i("div", { class: n([{ "mt-1": t2.label }, "relative flex"]) }, [t2.addOn ? (e(), a("span", { key: 0, onClick: r3[0] || (r3[0] = (e2) => l3.$emit("addOnClicked")), class: "inline-flex items-center px-3 rounded-l-md border border-r-0 border-gray-300 bg-gray-50 text-gray-500 sm:text-sm cursor-pointer" }, _(t2.addOn), 1)) : R("", true), B(i("input", { "onUpdate:modelValue": r3[1] || (r3[1] = (e2) => c2.value = e2), class: n([{ "border-gray-300": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "border-red-400": "danger" === t2.color, "border-yellow-400": "warning" === t2.color, "border-green-400": "success" === t2.color, "bg-gray-100": t2.disabled, "text-black": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "text-red-400": "danger" === t2.color, "text-yellow-400": "warning" === t2.color, "text-green-400": "success" === t2.color, "rounded-md": !t2.addOn || !t2.rightAddOn, "rounded-r-md": t2.addOn, "rounded-l-none": t2.addOn, "rounded-l-md": t2.rightAddOn, "rounded-r-none": t2.rightAddOn }, "shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 placeholder-gray-300"]), disabled: t2.disabled, name: t2.name, placeholder: t2.placeholder, type: t2.type, onInput: r3[2] || (r3[2] = (e2) => l3.$emit("inputChanged", { value: e2.target.value, name: e2.target.name })) }, null, 42, Dn), [[A, c2.value]]), t2.rightAddOn ? (e(), a("span", { key: 1, onClick: r3[3] || (r3[3] = (e2) => l3.$emit("rightAddOnClicked")), class: "inline-flex items-center px-3 rounded-r-md border border-l-0 border-gray-300 bg-gray-50 hover:bg-gray-200 text-gray-500 sm:text-sm cursor-pointer" }, _(t2.rightAddOn), 1)) : R("", true), t2.icon ? (e(), a("div", Tn, [o(K, { icon: t2.icon, color: t2.color, loading: t2.loading }, null, 8, ["icon", "color", "loading"]), B(o(K, { icon: d(ln), color: "green", loading: t2.loading }, null, 8, ["icon", "loading"]), [[L, "success" === t2.color]]), B(o(K, { icon: d(un), color: "yellow", loading: t2.loading }, null, 8, ["icon", "loading"]), [[L, "warning" === t2.color]]), B(o(K, { icon: d(vn), color: "red", loading: t2.loading }, null, 8, ["icon", "loading"]), [[L, "danger" === t2.color]])])) : R("", true)], 2), B(i("p", { class: n([{ "text-gray-400": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "text-red-400": "danger" === t2.color, "text-yellow-400": "warning" === t2.color, "text-green-400": "success" === t2.color }, "mt-2 text-xs flex flex-row items-center"]) }, _(t2.error), 3), [[L, t2.error]])]));
2157
2155
  } }), Rn = { key: 0 }, Bn = { class: "flex justify-between" }, An = { key: 0, class: "block text-sm font-medium text-gray-700" }, Ln = { key: 1, class: "text-[10px] text-gray-500 uppercase" }, Fn = { class: "space-y-1 flex flex-col items-center justify-center" }, Nn = { class: "flex text-sm text-gray-600 flex flex-col sm:flex-row text-center" }, zn = { for: "file-upload", class: "relative cursor-pointer rounded-md font-medium text-indigo-600 focus-within:outline-none focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 hover:text-indigo-500" }, $n = ["accept"], Hn = { class: "pl-1" }, Vn = { class: "text-xs text-gray-500 pb-4" }, Yn = { class: "mt-2 text-xs flex flex-row items-center text-red-300" }, Un = { key: 1, class: "animate-pulse" }, qn = [i("div", { class: "flex justify-center items-center flex-col rounded-md border-2 border-dashed px-6 pt-5 pb-6 border-gray-200" }, [i("div", { class: "rounded-full h-20 w-20 bg-gray-200 mb-4" }), i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full md:w-1/3 mb-3" }), i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full md:w-1/4 mb-3" })], -1)], Wn = { name: "uiInputFile" }, Kn = Object.assign(Wn, { props: { name: String, label: String, optional: String, placeholder: String, dragAndDrop: String, fileTypesAndSizes: String, error: String, accept: String, icon: { type: Function, default: function(t2, l2) {
2158
2156
  return e(), a("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", "aria-hidden": "true", "data-slot": "icon" }, [i("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M7.5 7.5h-.75A2.25 2.25 0 0 0 4.5 9.75v7.5a2.25 2.25 0 0 0 2.25 2.25h7.5a2.25 2.25 0 0 0 2.25-2.25v-7.5a2.25 2.25 0 0 0-2.25-2.25h-.75m0-3-3-3m0 0-3 3m3-3v11.25m6-2.25h.75a2.25 2.25 0 0 1 2.25 2.25v7.5a2.25 2.25 0 0 1-2.25 2.25h-7.5a2.25 2.25 0 0 1-2.25-2.25v-.75" })]);
2159
2157
  } }, loading: { type: Boolean, default: true } }, emits: ["filesUploaded"], setup(t2, { emit: l2 }) {
@@ -2164,21 +2162,21 @@ const hn = { class: "py-1" }, yn = ["onClick"], bn = { key: 1, class: "animate-p
2164
2162
  u2("filesUploaded", e2.target.files), c2.filename = e2.target.files[0].name;
2165
2163
  };
2166
2164
  return (l3, s2) => t2.loading ? (e(), a("div", Un, qn)) : (e(), a("div", Rn, [i("div", Bn, [t2.label ? (e(), a("label", An, _(t2.label), 1)) : R("", true), t2.optional ? (e(), a("span", Ln, _(t2.optional), 1)) : R("", true)]), i("div", { class: n([[{ "mt-1": t2.label }, { "border-gray-300 hover:border-gray-400": !t2.error }, { "border-red-300 hover:border-red-400": t2.error }], "dropArea flex justify-center rounded-md border-2 border-dashed px-6 pt-5 pb-6"]), onDragover: s2[0] || (s2[0] = F(() => {
2167
- }, ["prevent"])), onDrop: F(p2, ["prevent"]) }, [i("div", Fn, [o(K, { icon: t2.icon, size: "massive", color: "gray", "aria-hidden": "true", class: "mb-4", loading: t2.loading }, null, 8, ["icon", "loading"]), i("div", Nn, [i("label", zn, [i("span", null, _(t2.placeholder), 1), i("input", { id: "file-upload", name: "file-upload", type: "file", class: "sr-only", accept: t2.accept, onChange: g2 }, null, 40, $n)]), i("p", Hn, _(t2.dragAndDrop), 1)]), i("p", Vn, _(t2.fileTypesAndSizes), 1), B(i("p", { class: "font-bold text-xs uppercase block p-2 bg-gray-200 rounded" }, _(r2.value), 513), [[L, "" !== r2.value]])])], 34), B(i("p", Yn, [o(K, { icon: d(mn), color: "red", class: "mr-2", loading: t2.loading }, null, 8, ["icon", "loading"]), I(_(t2.error), 1)], 512), [[L, t2.error]])]));
2165
+ }, ["prevent"])), onDrop: F(p2, ["prevent"]) }, [i("div", Fn, [o(K, { icon: t2.icon, size: "massive", color: "gray", "aria-hidden": "true", class: "mb-4", loading: t2.loading }, null, 8, ["icon", "loading"]), i("div", Nn, [i("label", zn, [i("span", null, _(t2.placeholder), 1), i("input", { id: "file-upload", name: "file-upload", type: "file", class: "sr-only", accept: t2.accept, onChange: g2 }, null, 40, $n)]), i("p", Hn, _(t2.dragAndDrop), 1)]), i("p", Vn, _(t2.fileTypesAndSizes), 1), B(i("p", { class: "font-bold text-xs uppercase block p-2 bg-gray-200 rounded" }, _(r2.value), 513), [[L, "" !== r2.value]])])], 34), B(i("p", Yn, [o(K, { icon: d(fn), color: "red", class: "mr-2", loading: t2.loading }, null, 8, ["icon", "loading"]), I(_(t2.error), 1)], 512), [[L, t2.error]])]));
2168
2166
  } }), Jn = { class: "relative mt-1" }, Gn = { key: 1, class: "animate-pulse px-4 py-2.5 bg-gray-200 rounded-md flex justify-between items-center w-full" }, Zn = i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1), Xn = { name: "uiSelect" }, Qn = Object.assign(Xn, { props: { items: { type: Array, required: true }, label: String, error: String, color: String, select: Object, loading: { type: Boolean, default: true } }, emits: ["selectChanged"], setup(l2, { emit: r2 }) {
2169
- const c2 = s(""), p2 = r2, g2 = l2, f2 = u(() => "" === c2.value ? g2.items : g2.items.filter((e2) => e2.name.toLowerCase().includes(c2.value.toLowerCase()))), m2 = u(() => g2.select);
2170
- return (r3, s2) => l2.loading ? (e(), a("div", Gn, [Zn, o(d(rn), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5 text-gray-300 dark:text-gray-400" })])) : (e(), t(d(Et), { key: 0, modelValue: m2.value, "onUpdate:modelValue": [s2[1] || (s2[1] = (e2) => m2.value = e2), s2[2] || (s2[2] = (e2) => p2("selectChanged", e2))], as: "div" }, { default: E(() => [o(d(It), { class: "block text-sm font-medium" }, { default: E(() => [I(_(l2.label), 1)]), _: 1 }), i("div", Jn, [o(d(Pt), { "display-value": (e2) => e2 == null ? void 0 : e2.name, class: n([{ "border-gray-300": "danger" !== l2.color || "warning" !== l2.color || "success" !== l2.color, "border-red-400": "danger" === l2.color, "border-yellow-400": "warning" === l2.color, "border-green-400": "success" === l2.color, "bg-gray-100": r3.disabled, "text-black": "danger" !== l2.color || "warning" !== l2.color || "success" !== l2.color, "text-red-400": "danger" === l2.color, "text-yellow-400": "warning" === l2.color, "text-green-400": "success" === l2.color }, "w-full rounded-md border bg-white py-2 pl-3 pr-10 shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm"]), onChange: s2[0] || (s2[0] = (e2) => c2.value = e2.target.value) }, null, 8, ["display-value", "class"]), o(d(_t), { class: "absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none" }, { default: E(() => [o(d(rn), { "aria-hidden": "true", class: "h-5 w-5 text-gray-400" })]), _: 1 }), f2.value.length > 0 ? (e(), t(d(jt), { key: 0, class: "absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm" }, { default: E(() => [(e(true), a(w, null, j(f2.value, (l3) => (e(), t(d(Rt), { key: l3.id, value: l3, as: "template" }, { default: E(({ active: t2, selected: r4 }) => [i("li", { class: n(["relative cursor-default select-none py-2 pl-3 pr-9", t2 ? "bg-indigo-600 text-white" : "text-gray-900"]) }, [i("span", { class: n(["block truncate", r4 && "font-semibold"]) }, _(l3.name), 3), r4 ? (e(), a("span", { key: 0, class: n(["absolute inset-y-0 right-0 flex items-center pr-4", t2 ? "text-white" : "text-indigo-600"]) }, [o(d(ln), { "aria-hidden": "true", class: "h-5 w-5", loading: true })], 2)) : R("", true)], 2)]), _: 2 }, 1032, ["value"]))), 128))]), _: 1 })) : R("", true)]), B(i("p", { class: n([{ "text-gray-400": "danger" !== l2.color || "warning" !== l2.color || "success" !== l2.color, "text-red-400": "danger" === l2.color, "text-yellow-400": "warning" === l2.color, "text-green-400": "success" === l2.color }, "mt-2 text-xs flex flex-row items-center"]) }, _(l2.error), 3), [[L, l2.error]])]), _: 1 }, 8, ["modelValue"]));
2167
+ const c2 = s(""), p2 = r2, g2 = l2, m2 = u(() => "" === c2.value ? g2.items : g2.items.filter((e2) => e2.name.toLowerCase().includes(c2.value.toLowerCase()))), f2 = u(() => g2.select);
2168
+ return (r3, s2) => l2.loading ? (e(), a("div", Gn, [Zn, o(d(rn), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5 text-gray-300 dark:text-gray-400" })])) : (e(), t(d(Et), { key: 0, modelValue: f2.value, "onUpdate:modelValue": [s2[1] || (s2[1] = (e2) => f2.value = e2), s2[2] || (s2[2] = (e2) => p2("selectChanged", e2))], as: "div" }, { default: E(() => [o(d(It), { class: "block text-sm font-medium" }, { default: E(() => [I(_(l2.label), 1)]), _: 1 }), i("div", Jn, [o(d(Pt), { "display-value": (e2) => e2 == null ? void 0 : e2.name, class: n([{ "border-gray-300": "danger" !== l2.color || "warning" !== l2.color || "success" !== l2.color, "border-red-400": "danger" === l2.color, "border-yellow-400": "warning" === l2.color, "border-green-400": "success" === l2.color, "bg-gray-100": r3.disabled, "text-black": "danger" !== l2.color || "warning" !== l2.color || "success" !== l2.color, "text-red-400": "danger" === l2.color, "text-yellow-400": "warning" === l2.color, "text-green-400": "success" === l2.color }, "w-full rounded-md border bg-white py-2 pl-3 pr-10 shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm"]), onChange: s2[0] || (s2[0] = (e2) => c2.value = e2.target.value) }, null, 8, ["display-value", "class"]), o(d(_t), { class: "absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none" }, { default: E(() => [o(d(rn), { "aria-hidden": "true", class: "h-5 w-5 text-gray-400" })]), _: 1 }), m2.value.length > 0 ? (e(), t(d(jt), { key: 0, class: "absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm" }, { default: E(() => [(e(true), a(w, null, j(m2.value, (l3) => (e(), t(d(Rt), { key: l3.id, value: l3, as: "template" }, { default: E(({ active: t2, selected: r4 }) => [i("li", { class: n(["relative cursor-default select-none py-2 pl-3 pr-9", t2 ? "bg-indigo-600 text-white" : "text-gray-900"]) }, [i("span", { class: n(["block truncate", r4 && "font-semibold"]) }, _(l3.name), 3), r4 ? (e(), a("span", { key: 0, class: n(["absolute inset-y-0 right-0 flex items-center pr-4", t2 ? "text-white" : "text-indigo-600"]) }, [o(d(ln), { "aria-hidden": "true", class: "h-5 w-5", loading: true })], 2)) : R("", true)], 2)]), _: 2 }, 1032, ["value"]))), 128))]), _: 1 })) : R("", true)]), B(i("p", { class: n([{ "text-gray-400": "danger" !== l2.color || "warning" !== l2.color || "success" !== l2.color, "text-red-400": "danger" === l2.color, "text-yellow-400": "warning" === l2.color, "text-green-400": "success" === l2.color }, "mt-2 text-xs flex flex-row items-center"]) }, _(l2.error), 3), [[L, l2.error]])]), _: 1 }, 8, ["modelValue"]));
2171
2169
  } }), ea = { key: 1, class: "inline-flex items-center px-3 py-2.5 rounded text-xs font-medium leading-none animate-pulse bg-gray-200" }, ta = [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12" }, null, -1)], la = { name: "uiTag" }, na = Object.assign(la, { props: { color: { type: String, default: "primary" }, loading: { type: Boolean, default: true } }, setup: (t2) => (l2, o2) => t2.loading ? (e(), a("div", ea, ta)) : (e(), a("span", { key: 0, class: n([{ "bg-indigo-100 text-indigo-800 border border-indigo-200": "primary" === t2.color, "bg-red-100 text-red-800 border border-red-200": "danger" === t2.color, "bg-yellow-100 text-yellow-800 border border-yellow-200": "warning" === t2.color, "bg-green-100 text-green-800 border border-green-200": "success" === t2.color, "bg-black text-white border border-black": "black" === t2.color, "text-black border border-gray-200 bg-white": "white" === t2.color }, "inline-flex items-center px-3 py-2 rounded text-xs font-medium leading-none"]) }, [r(l2.$slots, "default")], 2)) }), aa = { key: 0 }, oa = { key: 0, class: "block text-sm font-medium text-gray-700" }, ra = ["disabled", "placeholder"], ia = { key: 1, class: "animate-pulse" }, sa = [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/3 md:w-1/4 mb-1.5" }, null, -1), i("div", { class: "h-24 bg-gray-200 rounded-lg flex inline-flex items-center relative inline-block text-left w-full" }, null, -1)], ua = { name: "uiTextArea" }, da = Object.assign(ua, { props: { label: String, placeholder: { type: String, default: "..." }, value: String, color: String, disabled: { type: Boolean, default: false }, error: String, loading: { type: Boolean, default: true } }, emits: ["inputChanged"], setup(t2, { emit: l2 }) {
2172
2170
  const r2 = l2, u2 = t2, c2 = (e2) => {
2173
2171
  r2("inputChanged", e2.target.value);
2174
2172
  }, g2 = s(u2.value);
2175
2173
  return p(() => u2.value, (e2) => {
2176
2174
  g2.value = e2, r2("inputChanged", e2);
2177
- }), (l3, r3) => t2.loading ? (e(), a("div", ia, sa)) : (e(), a("div", aa, [t2.label ? (e(), a("label", oa, _(t2.label), 1)) : R("", true), i("div", { class: n({ "mt-1": t2.label }) }, [B(i("textarea", { disabled: t2.disabled, rows: "4", "onUpdate:modelValue": r3[0] || (r3[0] = (e2) => g2.value = e2), placeholder: t2.placeholder, class: n(["shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm rounded-md", { "border-gray-300": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "border-red-300": "danger" === t2.color, "border-yellow-400": "warning" === t2.color, "border-green-400": "success" === t2.color, "bg-gray-100": t2.disabled, "text-black": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "text-red-300": "danger" === t2.color, "text-yellow-400": "warning" === t2.color, "text-green-400": "success" === t2.color }]), onChange: c2 }, null, 42, ra), [[N, g2.value]])], 2), B(i("p", { class: n([{ "text-gray-300": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "text-red-300": "danger" === t2.color, "text-yellow-400": "warning" === t2.color, "text-green-400": "success" === t2.color }, "mt-2 text-xs flex flex-row items-center"]) }, [o(K, { icon: d(mn), color: "red", class: "mr-2" }, null, 8, ["icon"]), I(_(t2.error), 1)], 2), [[L, t2.error]])]));
2178
- } }), ca = { class: "text-sm font-medium text-gray-900" }, pa = { key: 0, class: "text-sm text-gray-500 ml-2" }, ga = { key: 1, class: "animate-pulse flex items-center" }, fa = [i("div", { class: "relative bg-gray-200 rounded-full w-12 h-6 p-1 flex items-center" }, [i("div", { class: "rounded-full bg-gray-300 dark:bg-gray-400 h-4 w-4" })], -1), i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-16 ml-2" }, null, -1)], ma = { name: "uiToggle" }, va = Object.assign(ma, { props: { item: { type: Object, required: true }, checked: { type: Boolean, default: false }, disabled: { type: Boolean, default: false }, loading: { type: Boolean, default: true } }, setup(l2) {
2175
+ }), (l3, r3) => t2.loading ? (e(), a("div", ia, sa)) : (e(), a("div", aa, [t2.label ? (e(), a("label", oa, _(t2.label), 1)) : R("", true), i("div", { class: n({ "mt-1": t2.label }) }, [B(i("textarea", { disabled: t2.disabled, rows: "4", "onUpdate:modelValue": r3[0] || (r3[0] = (e2) => g2.value = e2), placeholder: t2.placeholder, class: n(["shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm rounded-md", { "border-gray-300": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "border-red-300": "danger" === t2.color, "border-yellow-400": "warning" === t2.color, "border-green-400": "success" === t2.color, "bg-gray-100": t2.disabled, "text-black": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "text-red-300": "danger" === t2.color, "text-yellow-400": "warning" === t2.color, "text-green-400": "success" === t2.color }]), onChange: c2 }, null, 42, ra), [[N, g2.value]])], 2), B(i("p", { class: n([{ "text-gray-300": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "text-red-300": "danger" === t2.color, "text-yellow-400": "warning" === t2.color, "text-green-400": "success" === t2.color }, "mt-2 text-xs flex flex-row items-center"]) }, [o(K, { icon: d(fn), color: "red", class: "mr-2" }, null, 8, ["icon"]), I(_(t2.error), 1)], 2), [[L, t2.error]])]));
2176
+ } }), ca = { class: "text-sm font-medium text-gray-900" }, pa = { key: 0, class: "text-sm text-gray-500 ml-2" }, ga = { key: 1, class: "animate-pulse flex items-center" }, ma = [i("div", { class: "relative bg-gray-200 rounded-full w-12 h-6 p-1 flex items-center" }, [i("div", { class: "rounded-full bg-gray-300 dark:bg-gray-400 h-4 w-4" })], -1), i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-16 ml-2" }, null, -1)], fa = { name: "uiToggle" }, va = Object.assign(fa, { props: { item: { type: Object, required: true }, checked: { type: Boolean, default: false }, disabled: { type: Boolean, default: false }, loading: { type: Boolean, default: true } }, setup(l2) {
2179
2177
  const r2 = s(l2.checked);
2180
- return (s2, u2) => l2.loading ? (e(), a("div", ga, fa)) : (e(), t(d(Bl), { key: 0, as: "div", class: "flex items-center relative" }, { default: E(() => [o(d(Al), { disabled: l2.disabled, onClick: u2[0] || (u2[0] = (e2) => s2.$emit("toggleChanged", { item: l2.item, active: !r2.value })), modelValue: r2.value, "onUpdate:modelValue": u2[1] || (u2[1] = (e2) => r2.value = e2), class: n([r2.value ? "bg-indigo-600" : "bg-gray-200", "relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"]) }, { default: E(() => [i("span", { "aria-hidden": "true", class: n([r2.value ? "translate-x-5" : "translate-x-0", l2.disabled ? "bg-gray-300" : "", "pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out"]) }, null, 2)]), _: 1 }, 8, ["disabled", "modelValue", "class"]), o(d(Ll), { as: "span", class: "ml-3" }, { default: E(() => [i("span", ca, _(l2.item.title), 1), l2.item.subtitle ? (e(), a("span", pa, _(l2.item.subtitle), 1)) : R("", true)]), _: 1 }), l2.item.action ? (e(), a("span", { key: 0, class: "cursor-pointer text-indigo-600 hover:text-indigo-400 uppercase text-xs absolute right-0 bottom-0.5", onClick: u2[2] || (u2[2] = (e2) => s2.$emit("actionClicked", l2.item)) }, _(l2.item.action), 1)) : R("", true)]), _: 1 }));
2181
- } }), ha = { key: 0, class: "flex flex-col" }, ya = { class: "flex" }, ba = { class: "flex-shrink-0" }, xa = { class: "ml-3" }, wa = { class: "mt-4" }, ka = { class: "-mx-2 -my-1.5 flex" }, Sa = ["onClick"], Ca = { key: 1, class: "flex flex-col animate-pulse" }, Oa = [z('<div class="p-4 border-l-4 bg-gray-100 border-gray-400 rounded"><div class="flex"><div class="flex-shrink-0"><div class="h-6 w-6 animate-pulse rounded-full bg-gray-200 dark:bg-gray-300"></div></div><div class="ml-3 w-full"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/3 mb-2"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full mb-2"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-3/5"></div></div></div></div>', 1)], Ma = { name: "uiAlert" }, Da = Object.assign(Ma, { props: { actions: { type: Array }, title: { type: String }, type: { type: String, default: "info" }, loading: { type: Boolean, default: true } }, setup: (l2) => (o2, s2) => l2.loading ? (e(), a("div", Ca, Oa)) : (e(), a("div", ha, [i("div", { class: n([{ "bg-indigo-50 border-indigo-400": "info" === l2.type, "bg-red-50 border-red-400": "danger" === l2.type, "bg-yellow-50 border-yellow-400": "warning" === l2.type, "bg-green-50 border-green-400": "success" === l2.type }, "p-4 border-l-4 rounded"]) }, [i("div", ya, [i("div", ba, ["info" === l2.type ? (e(), t(d(pn), { key: 0, class: "h-8 w-8 text-indigo-400", "aria-hidden": "true" })) : R("", true), "danger" === l2.type ? (e(), t(d(mn), { key: 1, class: "h-8 w-8 text-red-400", "aria-hidden": "true" })) : R("", true), "warning" === l2.type ? (e(), t(d(un), { key: 2, class: "h-8 w-8 text-yellow-400", "aria-hidden": "true" })) : R("", true), "success" === l2.type ? (e(), t(d(tn), { key: 3, class: "h-8 w-8 text-green-400", "aria-hidden": "true" })) : R("", true)]), i("div", xa, [i("h3", { class: n([{ "text-red-800": "danger" === l2.type, "text-yellow-800": "warning" === l2.type, "text-green-800": "success" === l2.type }, "text-sm font-medium"]) }, _(l2.title), 3), i("div", { class: n([{ "text-red-700": "danger" === l2.type, "text-yellow-700": "warning" === l2.type, "text-green-700": "success" === l2.type }, "mt-2 text-sm"]) }, [r(o2.$slots, "default")], 2), i("div", wa, [i("div", ka, [(e(true), a(w, null, j(l2.actions, (t2, r2) => (e(), a("button", { onClick: (e2) => o2.$emit("alertEvent", t2.event), type: "button", key: r2, class: n([{ "bg-green-50 text-green-800 hover:bg-green-100 focus:ring-green-600 focus:ring-offset-green-50": "success" === l2.type, "bg-indigo-50 text-indigo-800 hover:bg-indigo-100 focus:ring-indigo-600 focus:ring-offset-indigo-50": "info" === l2.type, "bg-red-50 text-red-800 hover:bg-red-100 focus:ring-red-600 focus:ring-offset-red-50": "danger" === l2.type, "bg-yellow-50 text-yellow-800 hover:bg-yellow-100 focus:ring-yellow-600 focus:ring-offset-yellow-50": "warning" === l2.type }, "px-2 py-1.5 text-sm font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2"]) }, _(t2.name), 11, Sa))), 128))])])])])], 2)])) }), Ta = { key: 0, class: "inline-flex", "aria-label": "Breadcrumb" }, Ea = { role: "list", class: "flex items-center space-x-4 text-xs" }, Ia = { key: 0 }, _a = ["onClick"], Pa = { key: 1, class: "flex items-center" }, ja = ["onClick", "aria-current"], Ra = { key: 1, class: "flex flex-row items-center animate-pulse" }, Ba = [i("div", { class: "animate-pulse rounded-full bg-gray-200 dark:bg-gray-300 h-4 w-4 mr-4" }, null, -1), i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5 mr-4" }, null, -1), i("div", { class: "animate-pulse rounded-full bg-gray-200 dark:bg-gray-300 h-4 w-4 mr-4" }, null, -1), i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5" }, null, -1)], Aa = { name: "uiBreadcrumbs" }, La = Object.assign(Aa, { props: { pages: { type: Array, required: true }, loading: { type: Boolean, default: true } }, setup: (t2) => (l2, r2) => t2.loading ? (e(), a("div", Ra, Ba)) : (e(), a("nav", Ta, [i("ol", Ea, [(e(true), a(w, null, j(t2.pages, (t3, r3) => (e(), a("li", { key: r3 }, [0 === r3 ? (e(), a("div", Ia, [i("p", { onClick: (e2) => l2.$emit("breadCrumbClicked", t3.routeName), class: "flex flex-row items-center justify-center text-indigo-600 hover:text-indigo-800 cursor-pointer" }, [o(d(cn), { class: "flex-shrink-0 h-3 w-3 text-gray-400 mr-4", "aria-hidden": "true" }), i("span", null, _(t3.name), 1)], 8, _a)])) : (e(), a("div", Pa, [o(d(on), { class: "flex-shrink-0 h-3 w-3 text-gray-400", "aria-hidden": "true" }), i("span", { onClick: (e2) => l2.$emit("breadCrumbClicked", t3.routeName), class: n(["cursor-pointer ml-4 text-xs text-gray-400 hover:text-gray-500", { "text-indigo-600 hover:text-indigo-800": !t3.current }]), "aria-current": t3.current ? "page" : "" }, _(t3.name), 11, ja)]))]))), 128))])])) }), Fa = { class: "flex items-center flex-col sm:flex-row justify-center sm:justify-start" }, Na = ["src"], za = { class: "font-bold text-center sm:text-left" }, $a = { class: "mt-1 text-xs text-center sm:text-left" }, Ha = { key: 0, class: "flex flex-wrap mt-4 justify-center sm:justify-start" }, Va = { key: 1, class: "rounded-lg bg-white shadow p-6 cursor-pointer animate-pulse" }, Ya = [z('<div class="flex items-center flex-col sm:flex-row justify-center sm:justify-start w-full"><div class="w-16 h-16 rounded-full bg-gray-200 flex self-center"></div><div class="w-full ml-4"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full mt-4 sm:mt-0 sm:w-16 mb-2"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full sm:w-32"></div></div></div>', 1)], Ua = { name: "uiCard" }, qa = Object.assign(Ua, { props: { id: { type: String, required: true }, name: { type: String, required: true }, type: String, tags: Array, logo: String, loading: { type: Boolean, default: true } }, setup: (l2) => (n2, o2) => {
2178
+ return (s2, u2) => l2.loading ? (e(), a("div", ga, ma)) : (e(), t(d(Bl), { key: 0, as: "div", class: "flex items-center relative" }, { default: E(() => [o(d(Al), { disabled: l2.disabled, onClick: u2[0] || (u2[0] = (e2) => s2.$emit("toggleChanged", { item: l2.item, active: !r2.value })), modelValue: r2.value, "onUpdate:modelValue": u2[1] || (u2[1] = (e2) => r2.value = e2), class: n([r2.value ? "bg-indigo-600" : "bg-gray-200", "relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"]) }, { default: E(() => [i("span", { "aria-hidden": "true", class: n([r2.value ? "translate-x-5" : "translate-x-0", l2.disabled ? "bg-gray-300" : "", "pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out"]) }, null, 2)]), _: 1 }, 8, ["disabled", "modelValue", "class"]), o(d(Ll), { as: "span", class: "ml-3" }, { default: E(() => [i("span", ca, _(l2.item.title), 1), l2.item.subtitle ? (e(), a("span", pa, _(l2.item.subtitle), 1)) : R("", true)]), _: 1 }), l2.item.action ? (e(), a("span", { key: 0, class: "cursor-pointer text-indigo-600 hover:text-indigo-400 uppercase text-xs absolute right-0 bottom-0.5", onClick: u2[2] || (u2[2] = (e2) => s2.$emit("actionClicked", l2.item)) }, _(l2.item.action), 1)) : R("", true)]), _: 1 }));
2179
+ } }), ha = { key: 0, class: "flex flex-col" }, ba = { class: "flex" }, ya = { class: "flex-shrink-0" }, xa = { class: "ml-3" }, wa = { class: "mt-4" }, ka = { class: "-mx-2 -my-1.5 flex" }, Sa = ["onClick"], Ca = { key: 1, class: "flex flex-col animate-pulse" }, Oa = [z('<div class="p-4 border-l-4 bg-gray-100 border-gray-400 rounded"><div class="flex"><div class="flex-shrink-0"><div class="h-6 w-6 animate-pulse rounded-full bg-gray-200 dark:bg-gray-300"></div></div><div class="ml-3 w-full"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/3 mb-2"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full mb-2"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-3/5"></div></div></div></div>', 1)], Ma = { name: "uiAlert" }, Da = Object.assign(Ma, { props: { actions: { type: Array }, title: { type: String }, type: { type: String, default: "info" }, loading: { type: Boolean, default: true } }, setup: (l2) => (o2, s2) => l2.loading ? (e(), a("div", Ca, Oa)) : (e(), a("div", ha, [i("div", { class: n([{ "bg-indigo-50 border-indigo-400": "info" === l2.type, "bg-red-50 border-red-400": "danger" === l2.type, "bg-yellow-50 border-yellow-400": "warning" === l2.type, "bg-green-50 border-green-400": "success" === l2.type }, "p-4 border-l-4 rounded"]) }, [i("div", ba, [i("div", ya, ["info" === l2.type ? (e(), t(d(pn), { key: 0, class: "h-8 w-8 text-indigo-400", "aria-hidden": "true" })) : R("", true), "danger" === l2.type ? (e(), t(d(fn), { key: 1, class: "h-8 w-8 text-red-400", "aria-hidden": "true" })) : R("", true), "warning" === l2.type ? (e(), t(d(un), { key: 2, class: "h-8 w-8 text-yellow-400", "aria-hidden": "true" })) : R("", true), "success" === l2.type ? (e(), t(d(tn), { key: 3, class: "h-8 w-8 text-green-400", "aria-hidden": "true" })) : R("", true)]), i("div", xa, [i("h3", { class: n([{ "text-red-800": "danger" === l2.type, "text-yellow-800": "warning" === l2.type, "text-green-800": "success" === l2.type }, "text-sm font-medium"]) }, _(l2.title), 3), i("div", { class: n([{ "text-red-700": "danger" === l2.type, "text-yellow-700": "warning" === l2.type, "text-green-700": "success" === l2.type }, "mt-2 text-sm"]) }, [r(o2.$slots, "default")], 2), i("div", wa, [i("div", ka, [(e(true), a(w, null, j(l2.actions, (t2, r2) => (e(), a("button", { onClick: (e2) => o2.$emit("alertEvent", t2.event), type: "button", key: r2, class: n([{ "bg-green-50 text-green-800 hover:bg-green-100 focus:ring-green-600 focus:ring-offset-green-50": "success" === l2.type, "bg-indigo-50 text-indigo-800 hover:bg-indigo-100 focus:ring-indigo-600 focus:ring-offset-indigo-50": "info" === l2.type, "bg-red-50 text-red-800 hover:bg-red-100 focus:ring-red-600 focus:ring-offset-red-50": "danger" === l2.type, "bg-yellow-50 text-yellow-800 hover:bg-yellow-100 focus:ring-yellow-600 focus:ring-offset-yellow-50": "warning" === l2.type }, "px-2 py-1.5 text-sm font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2"]) }, _(t2.name), 11, Sa))), 128))])])])])], 2)])) }), Ta = { key: 0, class: "inline-flex", "aria-label": "Breadcrumb" }, Ea = { role: "list", class: "flex items-center space-x-4 text-xs" }, Ia = { key: 0 }, _a = ["onClick"], Pa = { key: 1, class: "flex items-center" }, ja = ["onClick", "aria-current"], Ra = { key: 1, class: "flex flex-row items-center animate-pulse" }, Ba = [i("div", { class: "animate-pulse rounded-full bg-gray-200 dark:bg-gray-300 h-4 w-4 mr-4" }, null, -1), i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5 mr-4" }, null, -1), i("div", { class: "animate-pulse rounded-full bg-gray-200 dark:bg-gray-300 h-4 w-4 mr-4" }, null, -1), i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5" }, null, -1)], Aa = { name: "uiBreadcrumbs" }, La = Object.assign(Aa, { props: { pages: { type: Array, required: true }, loading: { type: Boolean, default: true } }, setup: (t2) => (l2, r2) => t2.loading ? (e(), a("div", Ra, Ba)) : (e(), a("nav", Ta, [i("ol", Ea, [(e(true), a(w, null, j(t2.pages, (t3, r3) => (e(), a("li", { key: r3 }, [0 === r3 ? (e(), a("div", Ia, [i("p", { onClick: (e2) => l2.$emit("breadCrumbClicked", t3.routeName), class: "flex flex-row items-center justify-center text-indigo-600 hover:text-indigo-800 cursor-pointer" }, [o(d(cn), { class: "flex-shrink-0 h-3 w-3 text-gray-400 mr-4", "aria-hidden": "true" }), i("span", null, _(t3.name), 1)], 8, _a)])) : (e(), a("div", Pa, [o(d(on), { class: "flex-shrink-0 h-3 w-3 text-gray-400", "aria-hidden": "true" }), i("span", { onClick: (e2) => l2.$emit("breadCrumbClicked", t3.routeName), class: n(["cursor-pointer ml-4 text-xs text-gray-400 hover:text-gray-500", { "text-indigo-600 hover:text-indigo-800": !t3.current }]), "aria-current": t3.current ? "page" : "" }, _(t3.name), 11, ja)]))]))), 128))])])) }), Fa = { class: "flex items-center flex-col sm:flex-row justify-center sm:justify-start" }, Na = ["src"], za = { class: "font-bold text-center sm:text-left" }, $a = { class: "mt-1 text-xs text-center sm:text-left" }, Ha = { key: 0, class: "flex flex-wrap mt-4 justify-center sm:justify-start" }, Va = { key: 1, class: "rounded-lg bg-white shadow p-6 cursor-pointer animate-pulse" }, Ya = [z('<div class="flex items-center flex-col sm:flex-row justify-center sm:justify-start w-full"><div class="w-16 h-16 rounded-full bg-gray-200 flex self-center"></div><div class="w-full ml-4"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full mt-4 sm:mt-0 sm:w-16 mb-2"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full sm:w-32"></div></div></div>', 1)], Ua = { name: "uiCard" }, qa = Object.assign(Ua, { props: { id: { type: String, required: true }, name: { type: String, required: true }, type: String, tags: Array, logo: String, loading: { type: Boolean, default: true } }, setup: (l2) => (n2, o2) => {
2182
2180
  var _a2;
2183
2181
  return l2.loading ? (e(), a("div", Va, Ya)) : (e(), a("div", { key: 0, class: "rounded-lg bg-white shadow p-6 cursor-pointer", onClick: o2[0] || (o2[0] = (e2) => n2.$emit("cardSelected", { id: l2.id, name: l2.name, type: l2.type, tags: l2.tags })) }, [i("div", Fa, [i("img", { class: "w-16 h-16 rounded-full mb-4 sm:mb-0 sm:mr-4", src: l2.logo }, null, 8, Na), i("div", null, [i("h4", za, _(l2.name), 1), i("p", $a, _(l2.type), 1)])]), ((_a2 = l2.tags) == null ? void 0 : _a2.length) > 0 ? (e(), a("div", Ha, [(e(true), a(w, null, j(l2.tags, (n3) => (e(), t(na, { class: "mb-1 mr-1", key: n3.name, color: n3.color, loading: l2.loading }, { default: E(() => [I(_(n3.name), 1)]), _: 2 }, 1032, ["color", "loading"]))), 128))])) : R("", true)]));
2184
2182
  } }), Wa = { name: "uiFilter" }, Ka = Object.assign(Wa, { props: { position: { type: String, default: "left" }, items: { type: Array, required: true }, label: { type: String, required: true }, loading: { type: Boolean, default: true } }, emits: ["filterSelected"], setup(l2, { emit: n2 }) {
@@ -2193,9 +2191,9 @@ const hn = { class: "py-1" }, yn = ["onClick"], bn = { key: 1, class: "animate-p
2193
2191
  c2("modalAction", { modal: u2.modalName, action: e2 });
2194
2192
  };
2195
2193
  return (s3, u3) => (e(), t(d(Zl), { as: "template", show: l2.open }, { default: E(() => [o(d(dl), { as: "div", class: "relative z-10", onClose: u3[1] || (u3[1] = (e2) => p2("close")) }, { default: E(() => [o(d(Jl), { as: "template", enter: "ease-out duration-300", "enter-from": "opacity-0", "enter-to": "opacity-100", leave: "ease-in duration-200", "leave-from": "opacity-100", "leave-to": "opacity-0" }, { default: E(() => [Ja]), _: 1 }), i("div", Ga, [i("div", Za, [o(d(Jl), { as: "template", enter: "ease-out duration-300", "enter-from": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95", "enter-to": "opacity-100 translate-y-0 sm:scale-100", leave: "ease-in duration-200", "leave-from": "opacity-100 translate-y-0 sm:scale-100", "leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" }, { default: E(() => [o(d(cl), { class: "relative transform rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl transition-all sm:my-8 w-9/12 sm:w-full sm:max-w-lg sm:p-6" }, { default: E(() => [i("div", Xa, [i("button", { type: "button", class: "rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none", onClick: u3[0] || (u3[0] = (e2) => p2("close")) }, [Qa, o(K, { icon: d(vn), "aria-hidden": "true", loading: l2.loading }, null, 8, ["icon", "loading"])])]), i("div", eo, [i("div", { class: n(["mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full sm:mx-0 sm:h-10 sm:w-10", { "bg-red-100": "danger" === l2.type, "bg-green-100": "success" === l2.type, "bg-indigo-100": "default" === l2.type, "bg-yellow-100": "warning" === l2.type }]) }, [B(o(d(vn), { class: "h-6 w-6 text-red-600", "aria-hidden": "true" }, null, 512), [[L, "danger" === l2.type]]), B(o(d(ln), { class: "h-6 w-6 text-green-600", "aria-hidden": "true" }, null, 512), [[L, "success" === l2.type]]), B(o(d(un), { class: "h-6 w-6 text-yellow-600", "aria-hidden": "true" }, null, 512), [[L, "warning" === l2.type]]), B(o(d(dn), { class: "h-6 w-6 text-indigo-600", "aria-hidden": "true" }, null, 512), [[L, "default" === l2.type]])], 2), i("div", to, [o(d(pl), { as: "h3", class: "text-lg font-medium leading-6 text-gray-900" }, { default: E(() => [I(_(l2.title), 1)]), _: 1 }), i("div", lo, [r(s3.$slots, "default")]), l2.actions ? (e(), a("div", no, [(e(true), a(w, null, j(l2.actions, (t2, l3) => (e(), a("button", { key: l3, type: "button", class: "inline-flex w-full justify-center rounded-md border border-transparent bg-indigo-600 px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 mb-2 sm:mb-0 mr-2 sm:w-auto sm:text-sm", onClick: (e2) => p2(t2.value) }, _(t2.name), 9, ao))), 128))])) : R("", true)])])]), _: 3 })]), _: 3 })])])]), _: 3 })]), _: 3 }, 8, ["show"]));
2196
- } }), io = { class: "w-full flex flex-col items-center space-y-4 sm:items-end" }, so = { key: 0, class: "max-w-sm w-full bg-white shadow-lg rounded-lg pointer-events-auto ring-1 ring-black ring-opacity-5 overflow-hidden" }, uo = { class: "p-4" }, co = { class: "flex items-start" }, po = { class: "flex-shrink-0 mt-0.5" }, go = { class: "ml-3 w-0 flex-1 pt-0.5" }, fo = { class: "font-medium text-gray-900" }, mo = { class: "mt-1 text-sm text-gray-500" }, vo = { class: "ml-4 flex-shrink-0 flex" }, ho = i("span", { class: "sr-only" }, "Close", -1), yo = { name: "uiNotification" }, bo = Object.assign(yo, { props: { show: Boolean, type: { type: String, default: "info" }, title: String, message: String, fixed: { type: Boolean, default: true } }, setup(t2) {
2194
+ } }), io = { class: "w-full flex flex-col items-center space-y-4 sm:items-end" }, so = { key: 0, class: "max-w-sm w-full bg-white shadow-lg rounded-lg pointer-events-auto ring-1 ring-black ring-opacity-5 overflow-hidden" }, uo = { class: "p-4" }, co = { class: "flex items-start" }, po = { class: "flex-shrink-0 mt-0.5" }, go = { class: "ml-3 w-0 flex-1 pt-0.5" }, mo = { class: "font-medium text-gray-900" }, fo = { class: "mt-1 text-sm text-gray-500" }, vo = { class: "ml-4 flex-shrink-0 flex" }, ho = i("span", { class: "sr-only" }, "Close", -1), bo = { name: "uiNotification" }, yo = Object.assign(bo, { props: { show: Boolean, type: { type: String, default: "info" }, title: String, message: String, fixed: { type: Boolean, default: true } }, setup(t2) {
2197
2195
  const l2 = t2, r2 = u(() => l2.show);
2198
- return (l3, s2) => (e(), a("div", { "aria-live": "assertive", class: n([{ fixed: t2.fixed }, "inset-0 flex items-end px-4 py-6 pointer-events-none sm:p-6 sm:items-start"]) }, [i("div", io, [o(P, { "enter-active-class": "transform ease-out duration-300 transition", "enter-from-class": "translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2", "enter-to-class": "translate-y-0 opacity-100 sm:translate-x-0", "leave-active-class": "transition ease-in duration-100", "leave-from-class": "opacity-100", "leave-to-class": "opacity-0" }, { default: E(() => [r2.value ? (e(), a("div", so, [i("div", uo, [i("div", co, [i("div", po, [B(o(d(tn), { "aria-hidden": "true", class: "h-6 w-6 text-green-400" }, null, 512), [[L, "success" === t2.type]]), B(o(d(mn), { "aria-hidden": "true", class: "h-6 w-6 text-red-400" }, null, 512), [[L, "danger" === t2.type]]), B(o(d(un), { "aria-hidden": "true", class: "h-6 w-6 text-yellow-400" }, null, 512), [[L, "warning" === t2.type]]), B(o(d(pn), { "aria-hidden": "true", class: "h-6 w-6 text-indigo-600" }, null, 512), [[L, "info" === t2.type]])]), i("div", go, [i("p", fo, _(t2.title), 1), i("p", mo, _(t2.message), 1)]), i("div", vo, [i("button", { class: "bg-white rounded-md inline-flex text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500", type: "button", onClick: s2[0] || (s2[0] = (e2) => l3.$emit("closeNotification")) }, [ho, o(d(vn), { "aria-hidden": "true", class: "h-5 w-5" })])])])])])) : R("", true)]), _: 1 })])], 2));
2196
+ return (l3, s2) => (e(), a("div", { "aria-live": "assertive", class: n([{ fixed: t2.fixed }, "inset-0 flex items-end px-4 py-6 pointer-events-none sm:p-6 sm:items-start"]) }, [i("div", io, [o(P, { "enter-active-class": "transform ease-out duration-300 transition", "enter-from-class": "translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2", "enter-to-class": "translate-y-0 opacity-100 sm:translate-x-0", "leave-active-class": "transition ease-in duration-100", "leave-from-class": "opacity-100", "leave-to-class": "opacity-0" }, { default: E(() => [r2.value ? (e(), a("div", so, [i("div", uo, [i("div", co, [i("div", po, [B(o(d(tn), { "aria-hidden": "true", class: "h-6 w-6 text-green-400" }, null, 512), [[L, "success" === t2.type]]), B(o(d(fn), { "aria-hidden": "true", class: "h-6 w-6 text-red-400" }, null, 512), [[L, "danger" === t2.type]]), B(o(d(un), { "aria-hidden": "true", class: "h-6 w-6 text-yellow-400" }, null, 512), [[L, "warning" === t2.type]]), B(o(d(pn), { "aria-hidden": "true", class: "h-6 w-6 text-indigo-600" }, null, 512), [[L, "info" === t2.type]])]), i("div", go, [i("p", mo, _(t2.title), 1), i("p", fo, _(t2.message), 1)]), i("div", vo, [i("button", { class: "bg-white rounded-md inline-flex text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500", type: "button", onClick: s2[0] || (s2[0] = (e2) => l3.$emit("closeNotification")) }, [ho, o(d(vn), { "aria-hidden": "true", class: "h-5 w-5" })])])])])])) : R("", true)]), _: 1 })])], 2));
2199
2197
  } }), xo = { key: 0, role: "list", class: "divide-y divide-gray-100" }, wo = { class: "min-w-0" }, ko = { class: "flex items-start gap-x-3" }, So = { class: "text-sm font-semibold leading-6 text-gray-900" }, Co = { class: "mt-1 flex items-center gap-x-2 text-xs leading-5 text-gray-500" }, Oo = { class: "truncate" }, Mo = { class: "flex flex-none items-center gap-x-4" }, Do = ["href"], To = { class: "sr-only" }, Eo = { key: 1, class: "divide-y divide-gray-100 animate-pulse" }, Io = [z('<div class="min-w-0 w-full"><div class="flex items-start gap-x-3"><p class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2"></p></div></div><div class="flex flex-none items-center gap-x-4"><div class="hidden rounded-md bg-gray-200 px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:block"><p class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-10"></p></div></div>', 2)], _o = { name: "uiTaskList" }, Po = Object.assign(_o, { props: { tasks: { type: Array, required: true }, loading: { type: Boolean, default: true } }, setup: (t2) => (l2, o2) => t2.loading ? (e(), a("ul", Eo, [(e(true), a(w, null, j(t2.tasks, (t3) => (e(), a("li", { key: t3.id, class: "flex items-center justify-between gap-x-6 py-5" }, Io))), 128))])) : (e(), a("ul", xo, [(e(true), a(w, null, j(t2.tasks, (t3) => (e(), a("li", { key: t3.id, class: "flex items-center justify-between gap-x-6 py-5" }, [i("div", wo, [i("div", ko, [i("p", So, _(t3.name), 1), i("p", { class: n([{ "text-green-700 bg-green-50 ring-green-600/20": "Complete" === t3.status, "text-gray-600 bg-gray-50 ring-gray-500/10": "In progress" === t3.status, "text-yellow-800 bg-yellow-50 ring-yellow-600/20": "Incomplete" === t3.status }, "rounded-md whitespace-nowrap mt-0.5 px-1.5 py-0.5 text-xs font-medium ring-1 ring-inset"]) }, _(t3.statusLiteral), 3)]), i("div", Co, [i("p", Oo, _(t3.description), 1)])]), i("div", Mo, [i("a", { href: t3.href, class: "hidden rounded-md bg-white px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:block" }, [I(_(t3.action), 1), i("span", To, ", " + _(t3.name), 1)], 8, Do)])]))), 128))])) });
2200
2198
  "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self && self;
2201
2199
  function jo(e2) {
@@ -2291,11 +2289,11 @@ const or = { name: "uiPriceCalendar", data: () => ({ today: /* @__PURE__ */ new
2291
2289
  this.$emit("tableAction", e2);
2292
2290
  }, changeRoomPrice(e2) {
2293
2291
  this.$emit("changeRoomPrice", e2);
2294
- } } }, rr = { key: 0, class: "px-4 sm:px-6 lg:px-8" }, ir = { class: "flow-root" }, sr = { class: "overflow-x-auto sm:-mx-6 lg:-mx-8 shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg" }, ur = { class: "inline-block min-w-full align-middle" }, dr = { class: "min-w-full text-sm" }, cr = { class: "bg-white" }, pr = { colspan: "6", scope: "colgroup", class: "bg-gray-50 py-2 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-3" }, gr = { colspan: "20", scope: "colgroup", class: "bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, fr = { key: 0 }, mr = { colspan: "6", class: "pl-4" }, vr = { key: 1 }, hr = { colspan: "6", class: "pl-4" }, yr = { key: 2 }, br = { colspan: "6", class: "pl-4" }, xr = { colspan: "20", scope: "colgroup", class: "bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900 relative" }, wr = { key: 0, class: "absolute top-0 left-12 flex h-12 items-center space-x-3 sm:left-48 bg-white shadow rounded px-4 py-1 z-10" }, kr = ["onClick"], Sr = { colspan: "2", scope: "colgroup", class: "relative bg-gray-100 py-3.5 pl-4 pr-3 text-left font-semibold text-gray-900" }, Cr = ["checked", "indeterminate"], Or = { class: "pl-6" }, Mr = { colspan: "2", scope: "colgroup", class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, Dr = { colspan: "2", scope: "colgroup", class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, Tr = i("th", { colspan: "14", scope: "colgroup", class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, null, -1), Er = { colspan: "2", class: "relative py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6" }, Ir = { key: 0, class: "absolute inset-y-0 left-0 w-0.5 bg-indigo-600" }, _r = ["value"], Pr = { class: "pl-6" }, jr = { colspan: "2", class: "pl-4" }, Rr = { colspan: "2", class: "pl-4" };
2292
+ } } }, rr = { key: 0, class: "px-4 sm:px-6 lg:px-8" }, ir = { class: "flow-root" }, sr = { class: "overflow-x-auto sm:-mx-6 lg:-mx-8 shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg" }, ur = { class: "inline-block min-w-full align-middle" }, dr = { class: "min-w-full text-sm" }, cr = { class: "bg-white" }, pr = { colspan: "6", scope: "colgroup", class: "bg-gray-50 py-2 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-3" }, gr = { colspan: "20", scope: "colgroup", class: "bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, mr = { key: 0 }, fr = { colspan: "6", class: "pl-4" }, vr = { key: 1 }, hr = { colspan: "6", class: "pl-4" }, br = { key: 2 }, yr = { colspan: "6", class: "pl-4" }, xr = { colspan: "20", scope: "colgroup", class: "bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900 relative" }, wr = { key: 0, class: "absolute top-0 left-12 flex h-12 items-center space-x-3 sm:left-48 bg-white shadow rounded px-4 py-1 z-10" }, kr = ["onClick"], Sr = { colspan: "2", scope: "colgroup", class: "relative bg-gray-100 py-3.5 pl-4 pr-3 text-left font-semibold text-gray-900" }, Cr = ["checked", "indeterminate"], Or = { class: "pl-6" }, Mr = { colspan: "2", scope: "colgroup", class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, Dr = { colspan: "2", scope: "colgroup", class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, Tr = i("th", { colspan: "14", scope: "colgroup", class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, null, -1), Er = { colspan: "2", class: "relative py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6" }, Ir = { key: 0, class: "absolute inset-y-0 left-0 w-0.5 bg-indigo-600" }, _r = ["value"], Pr = { class: "pl-6" }, jr = { colspan: "2", class: "pl-4" }, Rr = { colspan: "2", class: "pl-4" };
2295
2293
  const Br = Ro(or, [["render", function(l2, r2, s2, u2, d2, c2) {
2296
2294
  var _a2, _b;
2297
- const p2 = $("DateSelector"), g2 = $("Day"), f2 = $("uiButton"), m2 = $("Price"), v2 = $("SkeletonTable");
2298
- return s2.loading ? (e(), t(v2, { key: 1 })) : (e(), a("div", rr, [i("div", ir, [i("div", sr, [i("div", ur, [i("table", dr, [i("tbody", cr, [i("tr", null, [i("th", pr, [o(p2, { selectedDate: l2.date, onDateSelected: r2[0] || (r2[0] = (e2) => c2.changeDate(e2)) }, null, 8, ["selectedDate"])]), (e(true), a(w, null, j(c2.days, (t2, l3) => (e(), a("th", { scope: "col", key: l3, class: "text-sm font-semibold text-gray-900 p-0" }, [o(g2, { class: "border-l border-gray-200 px-6 py-3", day: t2 }, null, 8, ["day"])]))), 128))]), i("tr", null, [i("th", gr, [i("span", null, _(s2.literals.category) + " " + _(s2.category.name), 1), o(f2, { loading: s2.loading, class: "ml-4", size: "small", onClick: c2.changeCategoryBulkPrices }, { default: E(() => [I(_(s2.literals.changeInBulk), 1)]), _: 1 }, 8, ["loading", "onClick"])])]), "discounts" === s2.type ? (e(), a("tr", fr, [i("td", mr, _(s2.literals.pricesDiscount), 1), (e(true), a(w, null, j(s2.category.selectionPrices, (t2, l3) => (e(), a("td", { key: l3, class: "p-0" }, [o(m2, { onClick: (e2) => c2.changeCategorySelectionPrice(t2), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer", price: t2, currency: s2.currency.symbol, isBasePrice: true }, null, 8, ["onClick", "price", "currency"])]))), 128))])) : R("", true), "prices" === s2.type ? (e(), a("tr", vr, [i("td", hr, _(s2.literals.pricesSelection), 1), (e(true), a(w, null, j(s2.category.selectionPrices, (t2, l3) => (e(), a("td", { key: l3, class: "p-0" }, [o(m2, { onClick: (e2) => c2.changeCategorySelectionPrice(t2), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer", price: t2, currency: s2.currency.symbol, isBasePrice: true }, null, 8, ["onClick", "price", "currency"])]))), 128))])) : R("", true), "prices" === s2.type ? (e(), a("tr", yr, [i("td", br, _(s2.literals.pricesUpgrade), 1), (e(true), a(w, null, j(s2.category.upgradePrices, (t2, l3) => (e(), a("td", { key: l3, class: "p-0" }, [o(m2, { onClick: (e2) => c2.changeCategoryUpgradePrice(t2), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer bg-gray-100", price: t2, currency: s2.currency.symbol, isBasePrice: true }, null, 8, ["onClick", "price", "currency"])]))), 128))])) : R("", true), i("tr", null, [i("th", xr, [((_a2 = l2.selectedRooms) == null ? void 0 : _a2.length) > 0 && ((_b = s2.actions) == null ? void 0 : _b.length) > 0 ? (e(), a("div", wr, [(e(true), a(w, null, j(s2.actions, (t2, n2) => (e(), a("button", { onClick: (e2) => c2.tableAction({ action: t2.id, items: l2.selectedRooms }), key: n2, type: "button", class: "inline-flex items-center rounded bg-indigo-600 hover:bg-indigo-800 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm disabled:cursor-not-allowed disabled:opacity-30" }, _(t2.name), 9, kr))), 128))])) : R("", true), i("span", null, _(s2.literals.pricesSelection), 1)])]), i("tr", null, [i("th", Sr, [i("input", { type: "checkbox", class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600", checked: c2.indeterminate || l2.selectedRooms.length === s2.rooms.length, indeterminate: c2.indeterminate, onChange: r2[1] || (r2[1] = (e2) => l2.selectedRooms = e2.target.checked ? s2.rooms.map((e3) => e3.name) : []) }, null, 40, Cr), i("span", Or, _(s2.literals.room), 1)]), i("th", Mr, _(s2.literals.building), 1), i("th", Dr, _(s2.literals.floor), 1), Tr]), (e(true), a(w, null, j(s2.rooms, (t2) => (e(), a("tr", { key: t2.name, class: n([{ "even:bg-gray-100": "prices" === s2.type, "odd:bg-gray-100": "discounts" === s2.type }]) }, [i("td", Er, [l2.selectedRooms.includes(t2.name) ? (e(), a("div", Ir)) : R("", true), B(i("input", { type: "checkbox", class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600", value: t2.name, "onUpdate:modelValue": r2[2] || (r2[2] = (e2) => l2.selectedRooms = e2) }, null, 8, _r), [[H, l2.selectedRooms]]), i("span", Pr, _(t2.name), 1)]), i("td", jr, _(t2.building), 1), i("td", Rr, _(t2.floor), 1), (e(true), a(w, null, j(t2.selectionPrices, (t3, l3) => (e(), a("td", { class: "p-0", key: l3 }, [o(m2, { onClick: (e2) => c2.changeRoomPrice(t3), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 cursor-pointer", price: t3, currency: s2.currency.symbol, basePrice: c2.getSelectionBasePrice(t3) }, null, 8, ["onClick", "price", "currency", "basePrice"])]))), 128))], 2))), 128))])])])])])]));
2295
+ const p2 = $("DateSelector"), g2 = $("Day"), m2 = $("uiButton"), f2 = $("Price"), v2 = $("SkeletonTable");
2296
+ return s2.loading ? (e(), t(v2, { key: 1 })) : (e(), a("div", rr, [i("div", ir, [i("div", sr, [i("div", ur, [i("table", dr, [i("tbody", cr, [i("tr", null, [i("th", pr, [o(p2, { selectedDate: l2.date, onDateSelected: r2[0] || (r2[0] = (e2) => c2.changeDate(e2)) }, null, 8, ["selectedDate"])]), (e(true), a(w, null, j(c2.days, (t2, l3) => (e(), a("th", { scope: "col", key: l3, class: "text-sm font-semibold text-gray-900 p-0" }, [o(g2, { class: "border-l border-gray-200 px-6 py-3", day: t2 }, null, 8, ["day"])]))), 128))]), i("tr", null, [i("th", gr, [i("span", null, _(s2.literals.category) + " " + _(s2.category.name), 1), o(m2, { loading: s2.loading, class: "ml-4", size: "small", onClick: c2.changeCategoryBulkPrices }, { default: E(() => [I(_(s2.literals.changeInBulk), 1)]), _: 1 }, 8, ["loading", "onClick"])])]), "discounts" === s2.type ? (e(), a("tr", mr, [i("td", fr, _(s2.literals.pricesDiscount), 1), (e(true), a(w, null, j(s2.category.selectionPrices, (t2, l3) => (e(), a("td", { key: l3, class: "p-0" }, [o(f2, { onClick: (e2) => c2.changeCategorySelectionPrice(t2), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer", price: t2, currency: s2.currency.symbol, isBasePrice: true }, null, 8, ["onClick", "price", "currency"])]))), 128))])) : R("", true), "prices" === s2.type ? (e(), a("tr", vr, [i("td", hr, _(s2.literals.pricesSelection), 1), (e(true), a(w, null, j(s2.category.selectionPrices, (t2, l3) => (e(), a("td", { key: l3, class: "p-0" }, [o(f2, { onClick: (e2) => c2.changeCategorySelectionPrice(t2), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer", price: t2, currency: s2.currency.symbol, isBasePrice: true }, null, 8, ["onClick", "price", "currency"])]))), 128))])) : R("", true), "prices" === s2.type ? (e(), a("tr", br, [i("td", yr, _(s2.literals.pricesUpgrade), 1), (e(true), a(w, null, j(s2.category.upgradePrices, (t2, l3) => (e(), a("td", { key: l3, class: "p-0" }, [o(f2, { onClick: (e2) => c2.changeCategoryUpgradePrice(t2), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer bg-gray-100", price: t2, currency: s2.currency.symbol, isBasePrice: true }, null, 8, ["onClick", "price", "currency"])]))), 128))])) : R("", true), i("tr", null, [i("th", xr, [((_a2 = l2.selectedRooms) == null ? void 0 : _a2.length) > 0 && ((_b = s2.actions) == null ? void 0 : _b.length) > 0 ? (e(), a("div", wr, [(e(true), a(w, null, j(s2.actions, (t2, n2) => (e(), a("button", { onClick: (e2) => c2.tableAction({ action: t2.id, items: l2.selectedRooms }), key: n2, type: "button", class: "inline-flex items-center rounded bg-indigo-600 hover:bg-indigo-800 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm disabled:cursor-not-allowed disabled:opacity-30" }, _(t2.name), 9, kr))), 128))])) : R("", true), i("span", null, _(s2.literals.pricesSelection), 1)])]), i("tr", null, [i("th", Sr, [i("input", { type: "checkbox", class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600", checked: c2.indeterminate || l2.selectedRooms.length === s2.rooms.length, indeterminate: c2.indeterminate, onChange: r2[1] || (r2[1] = (e2) => l2.selectedRooms = e2.target.checked ? s2.rooms.map((e3) => e3.name) : []) }, null, 40, Cr), i("span", Or, _(s2.literals.room), 1)]), i("th", Mr, _(s2.literals.building), 1), i("th", Dr, _(s2.literals.floor), 1), Tr]), (e(true), a(w, null, j(s2.rooms, (t2) => (e(), a("tr", { key: t2.name, class: n([{ "even:bg-gray-100": "prices" === s2.type, "odd:bg-gray-100": "discounts" === s2.type }]) }, [i("td", Er, [l2.selectedRooms.includes(t2.name) ? (e(), a("div", Ir)) : R("", true), B(i("input", { type: "checkbox", class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600", value: t2.name, "onUpdate:modelValue": r2[2] || (r2[2] = (e2) => l2.selectedRooms = e2) }, null, 8, _r), [[H, l2.selectedRooms]]), i("span", Pr, _(t2.name), 1)]), i("td", jr, _(t2.building), 1), i("td", Rr, _(t2.floor), 1), (e(true), a(w, null, j(t2.selectionPrices, (t3, l3) => (e(), a("td", { class: "p-0", key: l3 }, [o(f2, { onClick: (e2) => c2.changeRoomPrice(t3), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 cursor-pointer", price: t3, currency: s2.currency.symbol, basePrice: c2.getSelectionBasePrice(t3) }, null, 8, ["onClick", "price", "currency", "basePrice"])]))), 128))], 2))), 128))])])])])])]));
2299
2297
  }]]), Ar = { class: "chart-selector flex flex-row items-center justify-center" }, Lr = { name: "rangeSelector" }, Fr = Object.assign(Lr, { props: { range: { type: String } }, emits: ["rangeSelected"], setup(t2, { emit: l2 }) {
2300
2298
  const o2 = l2, r2 = t2;
2301
2299
  let s2 = u(() => r2.range);
@@ -2307,37 +2305,37 @@ const Br = Ro(or, [["render", function(l2, r2, s2, u2, d2, c2) {
2307
2305
  const r2 = l2, s2 = t2;
2308
2306
  let c2 = { chart: { toolbar: { show: false }, zoom: { enabled: false } }, colors: ["#715aff", "#00ffff", "#aba9ba"], stroke: { show: true, curve: "stepline", lineCap: "butt", width: 1, dashArray: 0 }, dataLabels: { enabled: true }, markers: { strokeWidth: 0, size: 4, hover: { size: 8 } } };
2309
2307
  s2.annotations && (c2.annotations = { yaxis: [{ y: s2.annotations.high, borderColor: "#4f46e5", label: { borderColor: "#4f46e5", style: { color: "#fff", background: "#4f46e5" }, text: s2.annotations.text } }] }), "area" === s2.type && (c2.tooltip = { intersect: true, shared: false });
2310
- const p2 = u(() => s2.series), g2 = u(() => (c2.chart.stacked = s2.stacked, { ...c2, ...s2.options, plotOptions: { bar: { horizontal: s2.horizontal } } })), f2 = () => r2("chartUpdated"), m2 = (e2, t3, l3) => {
2308
+ const p2 = u(() => s2.series), g2 = u(() => (c2.chart.stacked = s2.stacked, { ...c2, ...s2.options, plotOptions: { bar: { horizontal: s2.horizontal } } })), m2 = () => r2("chartUpdated"), f2 = (e2, t3, l3) => {
2311
2309
  r2("dataPointSelection", { id: s2.id, chartContext: t3, config: l3, event: e2 });
2312
2310
  };
2313
- return (l3, r3) => (e(), a(w, null, [B(i("div", { class: n(["h-[" + t2.height + "px]", "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"]) }, [i("div", Nr, [i("div", zr, _(t2.title), 1), o(Fr, { range: t2.range, onRangeSelected: r3[0] || (r3[0] = (e2) => l3.$emit("selectedRange", { range: e2, chartId: t2.id })) }, null, 8, ["range"])]), B(i("div", $r, [o(d(U), { type: t2.type, series: p2.value, width: "100%", height: t2.height, options: g2.value, onUpdated: f2, onMounted: f2, onDataPointSelection: m2 }, null, 8, ["type", "series", "height", "options"])], 512), [[L, !t2.empty]]), B(i("div", Hr, [o(K, { icon: d(un), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), Vr], 512), [[L, t2.empty]])], 2), [[L, !t2.loading]]), B(i("div", Yr, Ur, 512), [[L, t2.loading]])], 64));
2311
+ return (l3, r3) => (e(), a(w, null, [B(i("div", { class: n(["h-[" + t2.height + "px]", "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"]) }, [i("div", Nr, [i("div", zr, _(t2.title), 1), o(Fr, { range: t2.range, onRangeSelected: r3[0] || (r3[0] = (e2) => l3.$emit("selectedRange", { range: e2, chartId: t2.id })) }, null, 8, ["range"])]), B(i("div", $r, [o(d(U), { type: t2.type, series: p2.value, width: "100%", height: t2.height, options: g2.value, onUpdated: m2, onMounted: m2, onDataPointSelection: f2 }, null, 8, ["type", "series", "height", "options"])], 512), [[L, !t2.empty]]), B(i("div", Hr, [o(K, { icon: d(un), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), Vr], 512), [[L, t2.empty]])], 2), [[L, !t2.loading]]), B(i("div", Yr, Ur, 512), [[L, t2.loading]])], 64));
2314
2312
  } }), Kr = { name: "uiFooter" }, Jr = { class: "bg-white" }, Gr = [i("div", { class: "mx-auto py-6 px-4 sm:px-6 md:flex md:items-center md:justify-between lg:px-8" }, [i("div", { class: "mt-8 md:mt-0 md:order-1" }, [i("p", { class: "text-center text-base text-gray-400" }, "© Made by Hotelinking.")])], -1)];
2315
2313
  const Zr = Ro(Kr, [["render", function(t2, l2, n2, o2, r2, i2) {
2316
2314
  return e(), a("footer", Jr, Gr);
2317
- }]]), Xr = i("div", { class: "spinner h-12 w-12 mb-6" }, [i("img", { src: "https://images.hotelinking.com/ui/loader.gif", alt: "loading animation" })], -1), Qr = { name: "uiLoadScreen" }, ei = Object.assign(Qr, { props: { title: String, message: String, fixed: { type: Boolean, default: true } }, setup: (t2) => (l2, o2) => (e(), a("div", { class: n([{ fixed: t2.fixed }, "load-screen h-full w-full top-0 left-0 z-50 flex flex-col items-center justify-center bg-gray-50"]) }, [Xr, B(i("h2", { class: "text-xs font-bold text-center uppercase mb-2" }, _(t2.title), 513), [[L, t2.title]]), B(i("p", { class: "text-xs text-center uppercase md:w-1/4" }, _(t2.message), 513), [[L, t2.message]])], 2)) }), ti = { key: 0, class: "py-6 flex items-center justify-between" }, li = { class: "flex-1 flex justify-between sm:hidden" }, ni = { href: "#", class: "relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50" }, ai = { href: "#", class: "ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50" }, oi = { class: "hidden sm:flex-1 sm:flex sm:items-center sm:justify-between" }, ri = { class: "text-sm text-gray-700" }, ii = { class: "font-bold" }, si = { class: "font-bold" }, ui = { class: "relative z-0 inline-flex rounded-md shadow-sm -space-x-px", "aria-label": "Pagination" }, di = { class: "sr-only" }, ci = ["onClick"], pi = { class: "sr-only" }, gi = { key: 1, class: "py-6 flex flex-row justify-between items-center animate-pulse" }, fi = [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5" }, null, -1), i("div", { class: "h-10 w-32 bg-gray-200 rounded dark:bg-gray-300" }, null, -1)], mi = { name: "uiPagination" }, vi = Object.assign(mi, { props: { current: { type: Number, requires: true }, total: { type: Number, requires: true }, loading: { type: Boolean, default: true } }, emits: ["changePage"], setup(t2, { emit: l2 }) {
2318
- const c2 = l2, p2 = t2, g2 = s(3), f2 = u(() => Math.max(1, Number(p2.current) - Number(g2.value))), m2 = u(() => Math.min(Number(p2.current) + Number(g2.value), Number(p2.total))), v2 = u(() => {
2315
+ }]]), Xr = i("div", { class: "spinner h-12 w-12 mb-6" }, [i("img", { src: "https://images.hotelinking.com/ui/loader.gif", alt: "loading animation" })], -1), Qr = { name: "uiLoadScreen" }, ei = Object.assign(Qr, { props: { title: String, message: String, fixed: { type: Boolean, default: true } }, setup: (t2) => (l2, o2) => (e(), a("div", { class: n([{ fixed: t2.fixed }, "load-screen h-full w-full top-0 left-0 z-50 flex flex-col items-center justify-center bg-gray-50"]) }, [Xr, B(i("h2", { class: "text-xs font-bold text-center uppercase mb-2" }, _(t2.title), 513), [[L, t2.title]]), B(i("p", { class: "text-xs text-center uppercase md:w-1/4" }, _(t2.message), 513), [[L, t2.message]])], 2)) }), ti = { key: 0, class: "py-6 flex items-center justify-between" }, li = { class: "flex-1 flex justify-between sm:hidden" }, ni = { href: "#", class: "relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50" }, ai = { href: "#", class: "ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50" }, oi = { class: "hidden sm:flex-1 sm:flex sm:items-center sm:justify-between" }, ri = { class: "text-sm text-gray-700" }, ii = { class: "font-bold" }, si = { class: "font-bold" }, ui = { class: "relative z-0 inline-flex rounded-md shadow-sm -space-x-px", "aria-label": "Pagination" }, di = { class: "sr-only" }, ci = ["onClick"], pi = { class: "sr-only" }, gi = { key: 1, class: "py-6 flex flex-row justify-between items-center animate-pulse" }, mi = [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)], fi = { name: "uiPagination" }, vi = Object.assign(fi, { props: { current: { type: Number, requires: true }, total: { type: Number, requires: true }, loading: { type: Boolean, default: true } }, emits: ["changePage"], setup(t2, { emit: l2 }) {
2316
+ const c2 = l2, p2 = t2, g2 = s(3), m2 = u(() => Math.max(1, Number(p2.current) - Number(g2.value))), f2 = u(() => Math.min(Number(p2.current) + Number(g2.value), Number(p2.total))), v2 = u(() => {
2319
2317
  let e2 = [];
2320
- for (let t3 = Number(f2.value); t3 <= Number(m2.value); t3++)
2318
+ for (let t3 = Number(m2.value); t3 <= Number(f2.value); t3++)
2321
2319
  e2.push(t3);
2322
2320
  return e2;
2323
2321
  });
2324
- return (l3, s2) => t2.loading ? (e(), a("div", gi, fi)) : (e(), a("div", ti, [i("div", li, [i("a", ni, [r(l3.$slots, "previous")]), i("a", ai, [r(l3.$slots, "next")])]), i("div", oi, [i("div", null, [i("p", ri, [r(l3.$slots, "showing"), I(), i("span", ii, _(t2.current + " "), 1), r(l3.$slots, "of"), I(), i("span", si, _(t2.total), 1)])]), i("div", null, [i("nav", ui, [B(i("button", { onClick: s2[0] || (s2[0] = (e2) => c2("changePage", t2.current - 1)), class: "relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50" }, [i("span", di, [r(l3.$slots, "previous")]), o(d(an), { class: "h-5 w-5", "aria-hidden": "true" })], 512), [[L, 1 !== t2.current]]), (e(true), a(w, null, j(v2.value, (l4) => (e(), a("button", { onClick: (e2) => c2("changePage", l4), key: l4, "aria-current": "page", class: n([[l4 === t2.current ? "z-10 bg-indigo-50 border-indigo-500 text-indigo-600" : "bg-white border-gray-300 text-gray-500 hover:bg-gray-50"], "relative inline-flex items-center px-4 py-2 border text-sm font-medium"]) }, _(l4), 11, ci))), 128)), B(i("button", { onClick: s2[1] || (s2[1] = (e2) => c2("changePage", t2.current + 1)), class: "relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50" }, [i("span", pi, [r(l3.$slots, "next")]), o(d(on), { class: "h-5 w-5", "aria-hidden": "true" })], 512), [[L, t2.current !== t2.total]])])])])]));
2325
- } }), hi = { class: "hidden md:flex md:flex-col sticky md:inset-y-0" }, yi = { class: "flex flex-col flex-grow overflow-y-auto" }, bi = { class: "grow flex flex-col" }, xi = { class: "flex-1 space-y-1", "aria-label": "Sidebar" }, wi = { key: 0 }, ki = ["onClick"], Si = { key: 0, class: "text-left" }, Ci = { key: 0, class: "flex-1 text-left" }, Oi = { key: 1, class: "flex-1" }, Mi = [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1)], Di = { key: 0, class: "align-left" }, Ti = { key: 1, class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, Ei = { class: "h-12 flex flex-row items-center" }, Ii = [i("div", { class: "w-6 h-6 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 mr-4" }, null, -1), i("div", { class: "h-3 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 grow" }, null, -1)], _i = { name: "uiSidebar" }, Pi = Object.assign(_i, { props: { navigation: { type: Array, required: true }, loading: { type: Boolean, default: true } }, emits: ["sideBarClick"], setup(l2, { emit: r2 }) {
2322
+ return (l3, s2) => t2.loading ? (e(), a("div", gi, mi)) : (e(), a("div", ti, [i("div", li, [i("a", ni, [r(l3.$slots, "previous")]), i("a", ai, [r(l3.$slots, "next")])]), i("div", oi, [i("div", null, [i("p", ri, [r(l3.$slots, "showing"), I(), i("span", ii, _(t2.current + " "), 1), r(l3.$slots, "of"), I(), i("span", si, _(t2.total), 1)])]), i("div", null, [i("nav", ui, [B(i("button", { onClick: s2[0] || (s2[0] = (e2) => c2("changePage", t2.current - 1)), class: "relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50" }, [i("span", di, [r(l3.$slots, "previous")]), o(d(an), { class: "h-5 w-5", "aria-hidden": "true" })], 512), [[L, 1 !== t2.current]]), (e(true), a(w, null, j(v2.value, (l4) => (e(), a("button", { onClick: (e2) => c2("changePage", l4), key: l4, "aria-current": "page", class: n([[l4 === t2.current ? "z-10 bg-indigo-50 border-indigo-500 text-indigo-600" : "bg-white border-gray-300 text-gray-500 hover:bg-gray-50"], "relative inline-flex items-center px-4 py-2 border text-sm font-medium"]) }, _(l4), 11, ci))), 128)), B(i("button", { onClick: s2[1] || (s2[1] = (e2) => c2("changePage", t2.current + 1)), class: "relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50" }, [i("span", pi, [r(l3.$slots, "next")]), o(d(on), { class: "h-5 w-5", "aria-hidden": "true" })], 512), [[L, t2.current !== t2.total]])])])])]));
2323
+ } }), hi = { class: "hidden md:flex md:flex-col sticky md:inset-y-0" }, bi = { class: "flex flex-col flex-grow overflow-y-auto" }, yi = { class: "grow flex flex-col" }, xi = { class: "flex-1 space-y-1", "aria-label": "Sidebar" }, wi = { key: 0 }, ki = ["onClick"], Si = { key: 0, class: "text-left" }, Ci = { key: 0, class: "flex-1 text-left" }, Oi = { key: 1, class: "flex-1" }, Mi = [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1)], Di = { key: 0, class: "align-left" }, Ti = { key: 1, class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, Ei = { class: "h-12 flex flex-row items-center" }, Ii = [i("div", { class: "w-6 h-6 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 mr-4" }, null, -1), i("div", { class: "h-3 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 grow" }, null, -1)], _i = { name: "uiSidebar" }, Pi = Object.assign(_i, { props: { navigation: { type: Array, required: true }, loading: { type: Boolean, default: true } }, emits: ["sideBarClick"], setup(l2, { emit: r2 }) {
2326
2324
  const s2 = r2;
2327
- return (r3, u2) => (e(), a("div", hi, [i("div", yi, [i("div", bi, [i("nav", xi, [l2.loading ? (e(), a(w, { key: 1 }, j(5, (e2) => i("div", Ei, Ii)), 64)) : (e(true), a(w, { key: 0 }, j(l2.navigation, (r4) => (e(), a(w, { key: r4.name }, [r4.children ? (e(), t(d(hl), { key: 1, as: "div", class: "space-y-1" }, { default: E(({ open: i2 }) => [o(d(yl), { class: n([r4.current ? "bg-indigo-600 text-white" : "text-gray-600 hover:bg-gray-50 hover:text-gray-900", "group w-full flex items-center pl-2 pr-1 py-2 text-left text-sm font-medium rounded-md focus:outline-none"]) }, { default: E(() => [o(K, { loading: l2.loading, icon: r4.icon, class: n([r4.current ? "text-white" : "text-gray-400 group-hover:text-gray-500", "mr-3 flex-shrink-0 h-6 w-6"]), "aria-hidden": "true" }, null, 8, ["loading", "icon", "class"]), l2.loading ? (e(), a("div", Oi, Mi)) : (e(), a("span", Ci, _(r4.name), 1)), o(d(on), { class: n([i2 ? "text-gray-400 rotate-90" : "text-gray-400", "ml-3 flex-shrink-0 h-3 w-3 transform group-hover:text-gray-400 transition-colors ease-in-out duration-150"]) }, null, 8, ["class"])]), _: 2 }, 1032, ["class"]), o(d(bl), { class: "space-y-1" }, { default: E(() => [(e(true), a(w, null, j(r4.children, (o2) => (e(), t(d(yl), { onClick: (e2) => s2("sideBarClick", o2.id), key: o2.name, class: n([o2.current ? "bg-gray-200" : "hover:text-gray-900 hover:bg-gray-100", "group text-gray-600 w-full flex items-center text-left pl-11 pr-2 py-2 text-sm font-medium rounded-md"]) }, { default: E(() => [l2.loading ? (e(), a("div", Ti)) : (e(), a("span", Di, _(o2.name), 1))]), _: 2 }, 1032, ["onClick", "class"]))), 128))]), _: 2 }, 1024)]), _: 2 }, 1024)) : (e(), a("div", wi, [i("button", { onClick: (e2) => s2("sideBarClick", r4.id), class: n([r4.current ? "bg-indigo-600 text-white" : "text-gray-600 hover:bg-gray-50 hover:text-gray-900", "group w-full flex items-center pl-2 py-2 text-sm font-medium rounded-md"]) }, [o(K, { loading: l2.loading, icon: r4.icon, class: n([r4.current ? "text-white" : "text-gray-400 group-hover:text-gray-500", "mr-3 flex-shrink-0 h-6 w-6"]), "aria-hidden": "true" }, null, 8, ["loading", "icon", "class"]), l2.loading ? R("", true) : (e(), a("span", Si, _(r4.name), 1))], 10, ki)]))], 64))), 128))])])])]));
2325
+ return (r3, u2) => (e(), a("div", hi, [i("div", bi, [i("div", yi, [i("nav", xi, [l2.loading ? (e(), a(w, { key: 1 }, j(5, (e2) => i("div", Ei, Ii)), 64)) : (e(true), a(w, { key: 0 }, j(l2.navigation, (r4) => (e(), a(w, { key: r4.name }, [r4.children ? (e(), t(d(hl), { key: 1, as: "div", class: "space-y-1" }, { default: E(({ open: i2 }) => [o(d(bl), { class: n([r4.current ? "bg-indigo-600 text-white" : "text-gray-600 hover:bg-gray-50 hover:text-gray-900", "group w-full flex items-center pl-2 pr-1 py-2 text-left text-sm font-medium rounded-md focus:outline-none"]) }, { default: E(() => [o(K, { loading: l2.loading, icon: r4.icon, class: n([r4.current ? "text-white" : "text-gray-400 group-hover:text-gray-500", "mr-3 flex-shrink-0 h-6 w-6"]), "aria-hidden": "true" }, null, 8, ["loading", "icon", "class"]), l2.loading ? (e(), a("div", Oi, Mi)) : (e(), a("span", Ci, _(r4.name), 1)), o(d(on), { class: n([i2 ? "text-gray-400 rotate-90" : "text-gray-400", "ml-3 flex-shrink-0 h-3 w-3 transform group-hover:text-gray-400 transition-colors ease-in-out duration-150"]) }, null, 8, ["class"])]), _: 2 }, 1032, ["class"]), o(d(yl), { class: "space-y-1" }, { default: E(() => [(e(true), a(w, null, j(r4.children, (o2) => (e(), t(d(bl), { onClick: (e2) => s2("sideBarClick", o2.id), key: o2.name, class: n([o2.current ? "bg-gray-200" : "hover:text-gray-900 hover:bg-gray-100", "group text-gray-600 w-full flex items-center text-left pl-11 pr-2 py-2 text-sm font-medium rounded-md"]) }, { default: E(() => [l2.loading ? (e(), a("div", Ti)) : (e(), a("span", Di, _(o2.name), 1))]), _: 2 }, 1032, ["onClick", "class"]))), 128))]), _: 2 }, 1024)]), _: 2 }, 1024)) : (e(), a("div", wi, [i("button", { onClick: (e2) => s2("sideBarClick", r4.id), class: n([r4.current ? "bg-indigo-600 text-white" : "text-gray-600 hover:bg-gray-50 hover:text-gray-900", "group w-full flex items-center pl-2 py-2 text-sm font-medium rounded-md"]) }, [o(K, { loading: l2.loading, icon: r4.icon, class: n([r4.current ? "text-white" : "text-gray-400 group-hover:text-gray-500", "mr-3 flex-shrink-0 h-6 w-6"]), "aria-hidden": "true" }, null, 8, ["loading", "icon", "class"]), l2.loading ? R("", true) : (e(), a("span", Si, _(r4.name), 1))], 10, ki)]))], 64))), 128))])])])]));
2328
2326
  } }), ji = { key: 0 }, Ri = { class: "ml-16 text-sm font-medium text-gray-500 truncate" }, Bi = { class: "ml-16 flex items-baseline pb-5" }, Ai = { class: "text-2xl font-semibold text-gray-900" }, Li = { key: 0, class: "text-black ml-2 flex items-baseline text-sm font-semibold" }, Fi = { class: "absolute bottom-0 inset-x-0 bg-gray-50 px-4 py-4 sm:px-6" }, Ni = { class: "text-sm" }, zi = { key: 1 }, $i = { class: "relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full pb-6" }, Hi = { class: "absolute bg-gray-200 rounded-md p-3 animate-pulse" }, Vi = i("div", { class: "ml-16" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2 mb-4 animate-pulse" })], -1), Yi = i("div", { class: "ml-16" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2 animate-pulse" })], -1), Ui = { name: "uiStats" }, qi = Object.assign(Ui, { props: { item: { type: Object, required: true }, loading: { type: Boolean, default: true } }, emits: ["statClick"], setup(l2, { emit: r2 }) {
2329
2327
  const s2 = r2;
2330
2328
  return (r3, u2) => l2.loading ? (e(), a("div", zi, [i("div", $i, [i("dt", null, [i("div", Hi, [o(K, { loading: l2.loading, icon: l2.item.icon, class: "h-6 w-6 text-white", "aria-hidden": "true" }, null, 8, ["loading", "icon"])]), Vi, Yi])])])) : (e(), a("div", ji, [i("div", { class: n(["relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full", { "pb-12": l2.item.showFooter }]) }, [i("dt", null, [i("div", { class: n(["absolute rounded-md p-3", { "bg-indigo-500": !l2.item.color, "bg-green-500": "success" === l2.item.color, "bg-red-500": "danger" === l2.item.color, "bg-yellow-500": "warning" === l2.item.color }]) }, [o(K, { icon: l2.item.icon, class: "h-6 w-6 text-white", "aria-hidden": "true", loading: l2.loading }, null, 8, ["icon", "loading"])], 2), i("p", Ri, _(l2.item.name), 1)]), i("dd", Bi, [i("p", Ai, _(l2.item.stat), 1), l2.item.explanation ? (e(), a("p", Li, _(l2.item.explanation), 1)) : R("", true), l2.item.changeType ? (e(), a("p", { key: 1, class: n([{ "text-green-600": "increase" === l2.item.changeType, "text-red-600": "decrease" === l2.item.changeType, "text-black": "neutral" === l2.item.changeType }, "ml-2 flex items-baseline text-sm font-semibold"]) }, ["increase" === l2.item.changeType ? (e(), t(d(Ql), { key: 0, class: "self-center flex-shrink-0 h-3 w-3 text-green-500", "aria-hidden": "true" })) : R("", true), "decrease" === l2.item.changeType ? (e(), t(d(Xl), { key: 1, class: "self-center flex-shrink-0 h-3 w-3 text-red-500", "aria-hidden": "true" })) : R("", true), I(" " + _(l2.item.change), 1)], 2)) : R("", true), B(i("div", Fi, [i("div", Ni, [i("span", { onClick: u2[0] || (u2[0] = (e2) => s2("statClick", l2.item.id)), class: "font-medium text-indigo-600 hover:text-indigo-500 cursor-pointer" }, _(l2.item.actionText), 1)])], 512), [[L, l2.item.showFooter]])])], 2)]));
2331
- } }), Wi = { key: 0, class: "overflow-hidden bg-white shadow sm:rounded-lg" }, Ki = { class: "px-4 py-5 sm:px-6" }, Ji = { class: "text-lg font-medium leading-6 text-gray-900" }, Gi = { class: "mt-1 max-w-2xl text-sm text-gray-500" }, Zi = { class: "border-t border-gray-200" }, Xi = { class: "text-sm font-medium text-gray-500" }, Qi = { key: 0, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal" }, es = { key: 1, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal" }, ts = ["onClick"], ls = { key: 3, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-words" }, ns = { key: 1, class: "overflow-hidden bg-white shadow sm:rounded-lg" }, as = z('<div class="px-4 py-5 sm:px-6 animate-pulse"><h3 class="text-lg font-medium leading-6 text-gray-900"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4"></div></h3><p class="mt-1 max-w-2xl text-sm text-gray-500"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/5"></div></p></div>', 1), os = { class: "border-t border-gray-200" }, rs = [i("dt", { class: "text-sm font-medium text-gray-500" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12" })], -1), i("dd", { class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-words" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12" })], -1)], is = { name: "uiStripedCard" }, ss = Object.assign(is, { props: { title: String, subtitle: String, items: Object, loading: { type: Boolean, default: true } }, emits: ["itemClicked"], setup: (l2, { emit: r2 }) => (r3, s2) => l2.loading ? (e(), a("div", ns, [as, i("div", os, [i("dl", null, [(e(), a(w, null, j(5, (e2) => i("div", { key: e2, class: n(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [e2 % 2 == 0 ? "bg-gray-50" : "bg-white"]]) }, rs, 2)), 64))])])])) : (e(), a("div", Wi, [i("div", Ki, [i("h3", Ji, _(l2.title), 1), i("p", Gi, _(l2.subtitle), 1)]), i("div", Zi, [i("dl", null, [(e(true), a(w, null, j(l2.items, (s3, u2) => (e(), a("div", { key: u2, class: n(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [u2 % 2 == 0 ? "bg-gray-50" : "bg-white"]]) }, [i("dt", Xi, _(s3.title), 1), "tag" === s3.type ? (e(), a("dd", Qi, [o(na, { color: s3.color }, { default: E(() => [I(_(s3.text), 1)]), _: 2 }, 1032, ["color"])])) : "tags" === s3.type ? (e(), a("dd", es, [(e(true), a(w, null, j(s3.tags, (n2, a2) => (e(), t(na, { loading: l2.loading, key: a2, color: n2.color, class: "mr-2 mb-2" }, { default: E(() => [I(_(n2.text), 1)]), _: 2 }, 1032, ["loading", "color"]))), 128))])) : "link" === s3.type ? (e(), a("dd", { key: 2, class: "mt-1 text-sm text-indigo-600 hover:text-indigo-400 sm:col-span-2 sm:mt-0 cursor-pointer", onClick: (e2) => r3.$emit("itemClicked", s3.emits) }, _(s3.text), 9, ts)) : (e(), a("dd", ls, _(s3.text), 1))], 2))), 128))])])])) }), us = { class: "absolute top-10 bg-indigo-600 text-white text-xs p-2 rounded z-10 font-light w-60 flex flex-row items-start" }, ds = i("svg", { class: "absolute -top-3 left-0", xmlns: "http://www.w3.org/2000/svg", width: "27.687", height: "26.954", viewBox: "0 0 27.687 26.954" }, [i("path", { id: "Polígono_1", "data-name": "Polígono 1", d: "M10.5,0,21,19H0Z", transform: "translate(0 10.5) rotate(-30)", fill: "#4f46e5" })], -1), cs = { class: "ml-2" }, ps = { __name: "tooltip", props: { tip: { type: String, required: true } }, setup: (t2) => (l2, n2) => (e(), a("div", us, [ds, i("div", null, [o(K, { icon: d(gn), loading: false, color: "white", size: "big" }, null, 8, ["icon"])]), i("span", cs, _(t2.tip), 1)])) }, gs = { key: 0 }, fs = { class: "flex flex-col" }, ms = { class: "-my-2 overflow-x-auto" }, vs = { class: "inline-block min-w-full py-2 align-middle px-1" }, hs = { class: "relative overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg" }, ys = { key: 0, class: "absolute top-0 left-12 flex h-12 items-center space-x-3 sm:left-16 bg-white shadow rounded px-4 py-1 z-10" }, bs = ["onClick"], xs = { class: "min-w-full table-fixed divide-y divide-gray-300" }, ws = { class: "bg-gray-50" }, ks = ["checked", "indeterminate"], Ss = ["onMouseover", "onMouseleave"], Cs = ["onClick"], Os = { key: 2, class: "group flex items-center uppercase text-xs" }, Ms = { class: "divide-y divide-gray-200 bg-white" }, Ds = { key: 0, class: "absolute inset-y-0 left-0 w-0.5 bg-indigo-600" }, Ts = ["value"], Es = ["onClick"], Is = ["href"], _s = { key: 3 }, Ps = { name: "uiTable" }, js = Object.assign(Ps, { props: { header: { type: Array, required: true }, items: { type: Array, required: true }, orderedBy: String, orderDirection: { type: String, default: "asc" }, actions: Array, loading: { type: Boolean, default: true } }, emits: ["tableAction", "orderBy"], setup(l2, { emit: r2 }) {
2329
+ } }), Wi = { key: 0, class: "overflow-hidden bg-white shadow sm:rounded-lg" }, Ki = { class: "px-4 py-5 sm:px-6" }, Ji = { class: "text-lg font-medium leading-6 text-gray-900" }, Gi = { class: "mt-1 max-w-2xl text-sm text-gray-500" }, Zi = { class: "border-t border-gray-200" }, Xi = { class: "text-sm font-medium text-gray-500" }, Qi = { key: 0, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal" }, es = { key: 1, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal" }, ts = ["onClick"], ls = { key: 3, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-words" }, ns = { key: 1, class: "overflow-hidden bg-white shadow sm:rounded-lg" }, as = z('<div class="px-4 py-5 sm:px-6 animate-pulse"><h3 class="text-lg font-medium leading-6 text-gray-900"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4"></div></h3><p class="mt-1 max-w-2xl text-sm text-gray-500"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/5"></div></p></div>', 1), os = { class: "border-t border-gray-200" }, rs = [i("dt", { class: "text-sm font-medium text-gray-500" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12" })], -1), i("dd", { class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-words" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12" })], -1)], is = { name: "uiStripedCard" }, ss = Object.assign(is, { props: { title: String, subtitle: String, items: Object, loading: { type: Boolean, default: true } }, emits: ["itemClicked"], setup: (l2, { emit: r2 }) => (r3, s2) => l2.loading ? (e(), a("div", ns, [as, i("div", os, [i("dl", null, [(e(), a(w, null, j(5, (e2) => i("div", { key: e2, class: n(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [e2 % 2 == 0 ? "bg-gray-50" : "bg-white"]]) }, rs, 2)), 64))])])])) : (e(), a("div", Wi, [i("div", Ki, [i("h3", Ji, _(l2.title), 1), i("p", Gi, _(l2.subtitle), 1)]), i("div", Zi, [i("dl", null, [(e(true), a(w, null, j(l2.items, (s3, u2) => (e(), a("div", { key: u2, class: n(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [u2 % 2 == 0 ? "bg-gray-50" : "bg-white"]]) }, [i("dt", Xi, _(s3.title), 1), "tag" === s3.type ? (e(), a("dd", Qi, [o(na, { color: s3.color }, { default: E(() => [I(_(s3.text), 1)]), _: 2 }, 1032, ["color"])])) : "tags" === s3.type ? (e(), a("dd", es, [(e(true), a(w, null, j(s3.tags, (n2, a2) => (e(), t(na, { loading: l2.loading, key: a2, color: n2.color, class: "mr-2 mb-2" }, { default: E(() => [I(_(n2.text), 1)]), _: 2 }, 1032, ["loading", "color"]))), 128))])) : "link" === s3.type ? (e(), a("dd", { key: 2, class: "mt-1 text-sm text-indigo-600 hover:text-indigo-400 sm:col-span-2 sm:mt-0 cursor-pointer", onClick: (e2) => r3.$emit("itemClicked", s3.emits) }, _(s3.text), 9, ts)) : (e(), a("dd", ls, _(s3.text), 1))], 2))), 128))])])])) }), us = { class: "absolute top-10 bg-indigo-600 text-white text-xs p-2 rounded z-10 font-light w-60 flex flex-row items-start" }, ds = i("svg", { class: "absolute -top-3 left-0", xmlns: "http://www.w3.org/2000/svg", width: "27.687", height: "26.954", viewBox: "0 0 27.687 26.954" }, [i("path", { id: "Polígono_1", "data-name": "Polígono 1", d: "M10.5,0,21,19H0Z", transform: "translate(0 10.5) rotate(-30)", fill: "#4f46e5" })], -1), cs = { class: "ml-2" }, ps = { __name: "tooltip", props: { tip: { type: String, required: true } }, setup: (t2) => (l2, n2) => (e(), a("div", us, [ds, i("div", null, [o(K, { icon: d(gn), loading: false, color: "white", size: "big" }, null, 8, ["icon"])]), i("span", cs, _(t2.tip), 1)])) }, gs = { key: 0 }, ms = { class: "flex flex-col" }, fs = { class: "-my-2 overflow-x-auto" }, vs = { class: "inline-block min-w-full py-2 align-middle px-1" }, hs = { class: "relative overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg" }, bs = { 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" }, ys = ["onClick"], xs = { class: "min-w-full table-fixed divide-y divide-gray-300" }, ws = { class: "bg-gray-50" }, ks = ["checked", "indeterminate"], Ss = ["onMouseover", "onMouseleave"], Cs = ["onClick"], Os = { key: 2, class: "group flex items-center uppercase text-xs" }, Ms = { class: "divide-y divide-gray-200 bg-white" }, Ds = { key: 0, class: "absolute inset-y-0 left-0 w-0.5 bg-indigo-600" }, Ts = ["value"], Es = ["onClick"], Is = ["href"], _s = { key: 3 }, Ps = { name: "uiTable" }, js = Object.assign(Ps, { props: { header: { type: Array, required: true }, items: { type: Array, required: true }, orderedBy: String, orderDirection: { type: String, default: "asc" }, actions: Array, loading: { type: Boolean, default: true } }, emits: ["tableAction", "orderBy"], setup(l2, { emit: r2 }) {
2332
2330
  let c2 = s([]);
2333
2331
  s(false);
2334
2332
  let p2 = s(void 0);
2335
- const g2 = r2, f2 = l2, m2 = u(() => c2.value.length > 0 && c2.value.length < f2.items.length), v2 = (e2, t2) => {
2333
+ const g2 = r2, m2 = l2, f2 = u(() => c2.value.length > 0 && c2.value.length < m2.items.length), v2 = (e2, t2) => {
2336
2334
  p2 !== e2 && t2 && (p2.value = e2), t2 || (p2.value = void 0);
2337
2335
  };
2338
2336
  return (r3, s2) => {
2339
2337
  var _a2, _b;
2340
- return l2.loading ? (e(), t(Go, { key: 1 })) : (e(), a("div", gs, [i("div", fs, [i("div", ms, [i("div", vs, [i("div", hs, [((_a2 = d(c2)) == null ? void 0 : _a2.length) > 0 && ((_b = l2.actions) == null ? void 0 : _b.length) > 0 ? (e(), a("div", ys, [(e(true), a(w, null, j(l2.actions, (t2, l3) => (e(), a("button", { onClick: (e2) => g2("tableAction", { action: t2.id, items: d(c2) }), key: l3, type: "button", class: "inline-flex items-center rounded bg-indigo-600 hover:bg-indigo-800 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm disabled:cursor-not-allowed disabled:opacity-30" }, _(t2.name), 9, bs))), 128))])) : R("", true), i("table", xs, [i("thead", ws, [i("tr", null, [i("th", { scope: "col", class: n([l2.actions ? "px-6 sm:px-8" : "px-3", "relative"]) }, [l2.actions ? (e(), a("input", { key: 0, checked: m2.value || d(c2).length === l2.items.length, indeterminate: m2.value, class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500", type: "checkbox", onChange: s2[0] || (s2[0] = (e2) => V(c2) ? c2.value = e2.target.checked ? l2.items.map((e3) => e3.id) : [] : c2 = e2.target.checked ? l2.items.map((e3) => e3.id) : []) }, null, 40, ks)) : R("", true)], 2), (e(true), a(w, null, j(l2.header, (r4, s3) => (e(), a("th", { key: s3, class: "py-3.5 pr-3 text-left font-semibold text-gray-900 flex-wrap relative", scope: "col", onMouseover: (e2) => v2(r4.name, true), onMouseleave: (e2) => v2(r4.name, false) }, [r4.tooltip ? B((e(), t(ps, { key: 0, tip: r4.tooltip }, null, 8, ["tip"])), [[L, d(p2) === r4.name]]) : R("", true), r4.value ? (e(), a("button", { key: 1, class: "group flex items-center uppercase text-xs relative", onClick: (e2) => g2("orderBy", { value: r4.value, orderDirection: "asc" === l2.orderDirection ? "desc" : "asc" }) }, [i("span", null, _(r4.name), 1), i("span", { class: n([[r4.value === l2.orderedBy ? "bg-indigo-600 text-white group-hover:bg-gray-300" : "text-gray-400 group-hover:visible group-focus:visible"], "ml-2 flex-none rounded group-hover:bg-indigo-200 group-hover:text-white"]) }, [o(K, { icon: "asc" === l2.orderDirection ? d(nn) : d(sn), loading: l2.loading, color: r4.value === l2.orderedBy ? "white" : "primary" }, null, 8, ["icon", "loading", "color"])], 2)], 8, Cs)) : (e(), a("p", Os, [i("span", null, _(r4.name), 1)]))], 40, Ss))), 128))])]), i("tbody", Ms, [(e(true), a(w, null, j(l2.items, (o2, r4) => {
2338
+ return l2.loading ? (e(), t(Go, { key: 1 })) : (e(), a("div", gs, [i("div", ms, [i("div", fs, [i("div", vs, [i("div", hs, [((_a2 = d(c2)) == null ? void 0 : _a2.length) > 0 && ((_b = l2.actions) == null ? void 0 : _b.length) > 0 ? (e(), a("div", bs, [(e(true), a(w, null, j(l2.actions, (t2, l3) => (e(), a("button", { onClick: (e2) => g2("tableAction", { action: t2.id, items: d(c2) }), key: l3, type: "button", class: "inline-flex items-center rounded bg-indigo-600 hover:bg-indigo-800 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm disabled:cursor-not-allowed disabled:opacity-30" }, _(t2.name), 9, ys))), 128))])) : R("", true), i("table", xs, [i("thead", ws, [i("tr", null, [i("th", { scope: "col", class: n([l2.actions ? "px-6 sm:px-8" : "px-3", "relative"]) }, [l2.actions ? (e(), a("input", { key: 0, checked: f2.value || d(c2).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) => V(c2) ? c2.value = e2.target.checked ? l2.items.map((e3) => e3.id) : [] : c2 = e2.target.checked ? l2.items.map((e3) => e3.id) : []) }, null, 40, ks)) : R("", true)], 2), (e(true), a(w, null, j(l2.header, (r4, s3) => (e(), a("th", { key: s3, class: "py-3.5 pr-3 text-left font-semibold text-gray-900 flex-wrap relative", scope: "col", onMouseover: (e2) => v2(r4.name, true), onMouseleave: (e2) => v2(r4.name, false) }, [r4.tooltip ? B((e(), t(ps, { key: 0, tip: r4.tooltip }, null, 8, ["tip"])), [[L, d(p2) === r4.name]]) : R("", true), r4.value ? (e(), a("button", { key: 1, class: "group flex items-center uppercase text-xs relative", onClick: (e2) => g2("orderBy", { value: r4.value, orderDirection: "asc" === l2.orderDirection ? "desc" : "asc" }) }, [i("span", null, _(r4.name), 1), i("span", { class: n([[r4.value === l2.orderedBy ? "bg-indigo-600 text-white group-hover:bg-gray-300" : "text-gray-400 group-hover:visible group-focus:visible"], "ml-2 flex-none rounded group-hover:bg-indigo-200 group-hover:text-white"]) }, [o(K, { icon: "asc" === l2.orderDirection ? d(nn) : d(sn), loading: l2.loading, color: r4.value === l2.orderedBy ? "white" : "primary" }, null, 8, ["icon", "loading", "color"])], 2)], 8, Cs)) : (e(), a("p", Os, [i("span", null, _(r4.name), 1)]))], 40, Ss))), 128))])]), i("tbody", Ms, [(e(true), a(w, null, j(l2.items, (o2, r4) => {
2341
2339
  var _a3, _b2;
2342
2340
  return e(), a("tr", { key: o2.id, class: n([d(c2).includes(o2.id) && "bg-gray-50", r4 % 2 == 0 ? void 0 : "bg-gray-50"]) }, [i("td", { class: n([((_a3 = l2.actions) == null ? void 0 : _a3.length) > 0 ? "w-2" : "w-0", "relative"]) }, [d(c2).includes(o2.id) ? (e(), a("div", Ds)) : R("", true), ((_b2 = l2.actions) == null ? void 0 : _b2.length) > 0 ? B((e(), a("input", { key: 1, "onUpdate:modelValue": s2[1] || (s2[1] = (e2) => V(c2) ? c2.value = e2 : c2 = e2), value: o2.id, class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500 flex-wrap", type: "checkbox" }, null, 8, Ts)), [[H, d(c2)]]) : R("", true)], 2), (e(true), a(w, null, j(o2.row, (r5, i2) => (e(), a("td", { key: i2, class: n(["whitespace-nowrap py-4 pr-3 text-sm", d(c2).includes(o2.id) ? "text-indigo-600" : "text-gray-900"]) }, ["object" == typeof r5 && "tag" === r5.type ? (e(), t(na, { key: 0, loading: l2.loading, color: r5.color }, { default: E(() => [I(_(r5.content), 1)]), _: 2 }, 1032, ["loading", "color"])) : "object" == typeof r5 && "link" === r5.type ? (e(), a("span", { key: 1, class: "text-indigo-600 hover:text-indigo-400 cursor-pointer", onClick: (e2) => g2(r5.emits, { id: o2.id, data: (o2 == null ? void 0 : o2.emitWith) || null }) }, _(r5.content), 9, Es)) : "object" == typeof r5 && "href" === r5.type ? (e(), a("a", { key: 2, class: "text-indigo-600 hover:text-indigo-400 cursor-pointer", href: r5.href, target: "_blank" }, _(r5.content), 9, Is)) : (e(), a("span", _s, _(r5), 1))], 2))), 128))], 2);
2343
2341
  }), 128))])])])])])])]));
@@ -2347,31 +2345,31 @@ const Zr = Ro(Kr, [["render", function(t2, l2, n2, o2, r2, i2) {
2347
2345
  return (l3, r2) => (e(), a("div", null, [i("div", Rs, [i("select", { onChange: r2[0] || (r2[0] = (e2) => {
2348
2346
  o2("tabClicked", e2.target.value);
2349
2347
  }), id: "tabs", name: "tabs", class: "block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm" }, [(e(true), a(w, null, j(t2.tabs, (t3) => (e(), a("option", { value: t3.id, key: t3.name }, _(t3.name), 9, Bs))), 128))], 32)]), i("div", As, [i("div", Ls, [i("nav", Fs, [(e(true), a(w, null, j(t2.tabs, (t3) => (e(), a("a", { key: t3.name, onClick: (e2) => o2("tabClicked", t3.id), class: n([t3.current ? "border-indigo-500 text-indigo-600" : "border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-200", "whitespace-nowrap flex py-4 px-1 border-b-2 font-medium text-sm cursor-pointer"]), "aria-current": t3.current ? "page" : void 0 }, [I(_(t3.name) + " ", 1), t3.count ? (e(), a("span", { key: 0, class: n([t3.current ? "bg-indigo-100 text-indigo-600" : "bg-gray-100 text-gray-900", "hidden ml-3 py-0.5 px-2.5 rounded-full text-xs font-medium md:inline-block"]) }, _(t3.count), 3)) : R("", true)], 10, Ns))), 128))])])])]));
2350
- } }), Hs = { key: 0, class: "bg-white overflow-hidden shadow rounded-lg" }, Vs = { class: "px-4 py-5 sm:px-6" }, Ys = { class: "text-xl font-bold" }, Us = { class: "px-4 py-5 sm:p-6" }, qs = { class: "flow-root" }, Ws = { class: "-mb-8", role: "list" }, Ks = { class: "relative pb-8" }, Js = { key: 0, class: "absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200", "aria-hidden": "true" }, Gs = { class: "relative flex space-x-3" }, Zs = { class: "min-w-0 flex-1 pt-1.5 flex justify-between space-x-4 items-center" }, Xs = { class: "text-sm text-gray-500" }, Qs = ["onClick"], eu = { class: "text-right text-sm whitespace-nowrap text-gray-500" }, tu = ["datetime"], lu = { class: "bg-gray-50 px-4 py-4 sm:px-6 z-10" }, nu = { class: "text-sm" }, au = { class: "h-full w-full flex items-center justify-center flex-col mb-5" }, ou = i("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1), ru = { key: 1, class: "bg-white overflow-hidden shadow rounded-lg" }, iu = i("div", { class: "px-4 py-5 sm:px-6 animate-pulse" }, [i("h1", { class: "text-xl font-bold" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4" })])], -1), su = { class: "px-4 py-5 sm:p-6 animate-pulse" }, uu = { class: "flow-root" }, du = { class: "-mb-8", role: "list" }, cu = { class: "relative pb-8" }, pu = { key: 0, class: "absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200", "aria-hidden": "true" }, gu = z('<div class="relative flex space-x-3"><div><span class="h-8 w-8 rounded-full bg-gray-300 flex items-center justify-center ring-4 ring-white"></span></div><div class="min-w-0 flex-1 pt-1.5 flex justify-between space-x-4 items-center"><div><p class="text-sm text-gray-500 flex-1"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full"></div></p></div><div class="text-right text-sm whitespace-nowrap text-gray-500 flex-1"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4"></div></div></div></div>', 1), fu = i("div", { class: "bg-gray-50 px-4 py-4 sm:px-6 z-10 animate-pulse" }, [i("div", { class: "text-sm" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4" })])], -1), mu = { name: "uiTimeline" }, vu = Object.assign(mu, { props: { name: { type: String, required: true }, timeline: { type: Object }, loading: { type: Boolean, default: true }, empty: { type: Boolean, default: false } }, setup: (t2) => (l2, r2) => {
2348
+ } }), Hs = { key: 0, class: "bg-white overflow-hidden shadow rounded-lg" }, Vs = { class: "px-4 py-5 sm:px-6" }, Ys = { class: "text-xl font-bold" }, Us = { class: "px-4 py-5 sm:p-6" }, qs = { class: "flow-root" }, Ws = { class: "-mb-8", role: "list" }, Ks = { class: "relative pb-8" }, Js = { key: 0, class: "absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200", "aria-hidden": "true" }, Gs = { class: "relative flex space-x-3" }, Zs = { class: "min-w-0 flex-1 pt-1.5 flex justify-between space-x-4 items-center" }, Xs = { class: "text-sm text-gray-500" }, Qs = ["onClick"], eu = { class: "text-right text-sm whitespace-nowrap text-gray-500" }, tu = ["datetime"], lu = { class: "bg-gray-50 px-4 py-4 sm:px-6 z-10" }, nu = { class: "text-sm" }, au = { class: "h-full w-full flex items-center justify-center flex-col mb-5" }, ou = i("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1), ru = { key: 1, class: "bg-white overflow-hidden shadow rounded-lg" }, iu = i("div", { class: "px-4 py-5 sm:px-6 animate-pulse" }, [i("h1", { class: "text-xl font-bold" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4" })])], -1), su = { class: "px-4 py-5 sm:p-6 animate-pulse" }, uu = { class: "flow-root" }, du = { class: "-mb-8", role: "list" }, cu = { class: "relative pb-8" }, pu = { key: 0, class: "absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200", "aria-hidden": "true" }, gu = z('<div class="relative flex space-x-3"><div><span class="h-8 w-8 rounded-full bg-gray-300 flex items-center justify-center ring-4 ring-white"></span></div><div class="min-w-0 flex-1 pt-1.5 flex justify-between space-x-4 items-center"><div><p class="text-sm text-gray-500 flex-1"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full"></div></p></div><div class="text-right text-sm whitespace-nowrap text-gray-500 flex-1"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4"></div></div></div></div>', 1), mu = 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), fu = { name: "uiTimeline" }, vu = Object.assign(fu, { props: { name: { type: String, required: true }, timeline: { type: Object }, loading: { type: Boolean, default: true }, empty: { type: Boolean, default: false } }, setup: (t2) => (l2, r2) => {
2351
2349
  const s2 = $("uiIcon");
2352
- return t2.loading ? (e(), a("div", ru, [iu, i("div", su, [i("div", uu, [i("ul", du, [(e(), a(w, null, j(10, (t3) => i("li", { key: l2.index }, [i("div", cu, [10 !== t3 ? (e(), a("span", pu)) : R("", true), gu])])), 64))])])]), fu])) : (e(), a("div", Hs, [i("div", Vs, [i("h1", Ys, _(t2.name), 1)]), B(i("div", Us, [i("div", qs, [i("ul", Ws, [(e(true), a(w, null, j(t2.timeline.items, (r3, u2) => (e(), a("li", { key: u2 }, [i("div", Ks, [u2 !== t2.timeline.items.length - 1 ? (e(), a("span", Js)) : R("", true), i("div", Gs, [i("div", null, [i("span", { class: n([r3.iconBackground, "h-8 w-8 rounded-full flex items-center justify-center ring-4 ring-white"]) }, [o(s2, { loading: t2.loading, icon: r3.icon, "aria-hidden": "true", class: "h-5 w-5 text-white", color: "white" }, null, 8, ["loading", "icon"])], 2)]), i("div", Zs, [i("div", null, [i("p", Xs, [i("a", { onClick: (e2) => l2.$emit("timelineEventClicked", r3.linkId), class: "font-medium text-indigo-600 hover:text-indigo-800 cursor-pointer" }, _(r3.target), 9, Qs), I(" " + _(r3.content), 1)])]), i("div", eu, [i("time", { datetime: r3.datetime }, _(r3.date), 9, tu)])])])])]))), 128))])])], 512), [[L, !t2.empty]]), B(i("div", lu, [i("div", nu, [i("a", { class: "cursor-pointer font-medium text-indigo-600 hover:text-indigo-500", onClick: r2[0] || (r2[0] = (e2) => l2.$emit("timelineFooterClicked", t2.timeline.id)) }, _(t2.timeline.footerText), 1)])], 512), [[L, !t2.empty]]), B(i("div", au, [o(K, { icon: d(un), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), ou], 512), [[L, t2.empty]])]));
2353
- } }), hu = { name: "uiTopbar", props: ["navigation", "logo", "profileMenu", "brand", "accountLogo", "alerted"], components: { Disclosure: hl, DisclosureButton: yl, DisclosurePanel: bl, Menu: Dl, MenuButton: Tl, MenuItem: Il, MenuItems: El, Bars3Icon: function(t2, l2) {
2350
+ return t2.loading ? (e(), a("div", ru, [iu, i("div", su, [i("div", uu, [i("ul", du, [(e(), a(w, null, j(10, (t3) => i("li", { key: l2.index }, [i("div", cu, [10 !== t3 ? (e(), a("span", pu)) : R("", true), gu])])), 64))])])]), mu])) : (e(), a("div", Hs, [i("div", Vs, [i("h1", Ys, _(t2.name), 1)]), B(i("div", Us, [i("div", qs, [i("ul", Ws, [(e(true), a(w, null, j(t2.timeline.items, (r3, u2) => (e(), a("li", { key: u2 }, [i("div", Ks, [u2 !== t2.timeline.items.length - 1 ? (e(), a("span", Js)) : R("", true), i("div", Gs, [i("div", null, [i("span", { class: n([r3.iconBackground, "h-8 w-8 rounded-full flex items-center justify-center ring-4 ring-white"]) }, [o(s2, { loading: t2.loading, icon: r3.icon, "aria-hidden": "true", class: "h-5 w-5 text-white", color: "white" }, null, 8, ["loading", "icon"])], 2)]), i("div", Zs, [i("div", null, [i("p", Xs, [i("a", { onClick: (e2) => l2.$emit("timelineEventClicked", r3.linkId), class: "font-medium text-indigo-600 hover:text-indigo-800 cursor-pointer" }, _(r3.target), 9, Qs), I(" " + _(r3.content), 1)])]), i("div", eu, [i("time", { datetime: r3.datetime }, _(r3.date), 9, tu)])])])])]))), 128))])])], 512), [[L, !t2.empty]]), B(i("div", lu, [i("div", nu, [i("a", { class: "cursor-pointer font-medium text-indigo-600 hover:text-indigo-500", onClick: r2[0] || (r2[0] = (e2) => l2.$emit("timelineFooterClicked", t2.timeline.id)) }, _(t2.timeline.footerText), 1)])], 512), [[L, !t2.empty]]), B(i("div", au, [o(K, { icon: d(un), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), ou], 512), [[L, t2.empty]])]));
2351
+ } }), hu = { name: "uiTopbar", props: ["navigation", "logo", "profileMenu", "brand", "accountLogo", "alerted"], components: { Disclosure: hl, DisclosureButton: bl, DisclosurePanel: yl, Menu: Dl, MenuButton: Tl, MenuItem: Il, MenuItems: El, Bars3Icon: function(t2, l2) {
2354
2352
  return e(), a("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", "aria-hidden": "true", "data-slot": "icon" }, [i("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5" })]);
2355
- }, XMarkIcon: vn } }, yu = { class: "mx-auto px-6 lg:px-8" }, bu = { class: "flex justify-between h-20" }, xu = { class: "flex" }, wu = { class: "-ml-2 mr-2 flex items-center lg:hidden" }, ku = i("span", { class: "sr-only" }, "Open main menu", -1), Su = ["src"], Cu = { class: "flex items-center" }, Ou = { class: "lg:ml-4 lg:flex-shrink-0 lg:flex lg:items-center hidden" }, Mu = { class: "redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute -top-0 -left-1" }, Du = [i("span", { class: "animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75" }, null, -1)], Tu = ["src"], Eu = ["onClick"], Iu = { class: "pt-2 pb-3 space-y-1" }, _u = ["onClick"], Pu = { class: "pt-4 pb-3 border-t border-gray-200" }, ju = { class: "flex items-center px-4 sm:px-6" }, Ru = { class: "flex-shrink-0" }, Bu = ["src"], Au = { key: 0, class: "ml-3" }, Lu = { class: "text-base font-medium text-gray-800" }, Fu = { class: "text-sm font-medium text-gray-500" }, Nu = { class: "mt-3 space-y-1" }, zu = ["onClick"];
2353
+ }, XMarkIcon: vn } }, bu = { class: "mx-auto px-6 lg:px-8" }, yu = { class: "flex justify-between h-20" }, xu = { class: "flex" }, wu = { class: "-ml-2 mr-2 flex items-center lg:hidden" }, ku = i("span", { class: "sr-only" }, "Open main menu", -1), Su = ["src"], Cu = { class: "flex items-center" }, Ou = { class: "lg:ml-4 lg:flex-shrink-0 lg:flex lg:items-center hidden" }, Mu = { class: "redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute -top-0 -left-1" }, Du = [i("span", { class: "animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75" }, null, -1)], Tu = ["src"], Eu = ["onClick"], Iu = { class: "pt-2 pb-3 space-y-1" }, _u = ["onClick"], Pu = { class: "pt-4 pb-3 border-t border-gray-200" }, ju = { class: "flex items-center px-4 sm:px-6" }, Ru = { class: "flex-shrink-0" }, Bu = ["src"], Au = { key: 0, class: "ml-3" }, Lu = { class: "text-base font-medium text-gray-800" }, Fu = { class: "text-sm font-medium text-gray-500" }, Nu = { class: "mt-3 space-y-1" }, zu = ["onClick"];
2356
2354
  const $u = Ro(hu, [["render", function(l2, r2, s2, u2, d2, c2) {
2357
- const p2 = $("Bars3Icon"), g2 = $("XMarkIcon"), f2 = $("DisclosureButton"), m2 = $("MenuButton"), v2 = $("MenuItem"), h2 = $("MenuItems"), y2 = $("Menu"), b2 = $("DisclosurePanel"), x2 = $("Disclosure");
2358
- return e(), t(x2, { as: "nav", class: "bg-white shadow z-10" }, { default: E(({ open: u3 }) => [i("div", yu, [i("div", bu, [i("div", xu, [i("div", wu, [o(f2, { class: "inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500" }, { default: E(() => [ku, u3 ? (e(), t(g2, { key: 1, class: "block h-6 w-6", "aria-hidden": "true" })) : (e(), t(p2, { key: 0, class: "block h-6 w-6", "aria-hidden": "true" }))]), _: 2 }, 1024)]), i("div", { class: "flex-shrink-0 flex items-center cursor-pointer", onClick: r2[0] || (r2[0] = (e2) => l2.$emit("topBarClick", "logo")) }, [i("img", { class: "h-10", src: s2.logo, alt: "Hotelinking suite product logo" }, null, 8, Su)])]), i("div", Cu, [i("div", Ou, [o(y2, { as: "div", class: "ml-3 relative" }, { default: E(() => [i("div", null, [B(o(m2, { class: "bg-white rounded-full flex text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 relative" }, { default: E(() => [B(i("div", Mu, Du, 512), [[L, s2.alerted]]), i("img", { class: "h-10 w-10 rounded-full", src: s2.accountLogo }, null, 8, Tu)]), _: 1 }, 512), [[L, s2.accountLogo]])]), o(P, { "enter-active-class": "transition ease-out duration-200", "enter-from-class": "transform opacity-0 scale-95", "enter-to-class": "transform opacity-100 scale-100", "leave-active-class": "transition ease-in duration-75", "leave-from-class": "transform opacity-100 scale-100", "leave-to-class": "transform opacity-0 scale-95" }, { default: E(() => [o(h2, { class: "origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg py-1 bg-white ring-1 ring-black ring-opacity-5 focus:outline-none" }, { default: E(() => [(e(true), a(w, null, j(s2.profileMenu, (a2) => (e(), t(v2, { key: a2.name }, { default: E(({ active: e2 }) => [i("p", { onClick: (e3) => l2.$emit("topBarClick", a2.id), class: n(["cursor-pointer", [e2 ? "bg-gray-100" : "", "block px-4 py-2 text-sm text-gray-700"]]) }, _(a2.name), 11, Eu)]), _: 2 }, 1024))), 128))]), _: 1 })]), _: 1 })]), _: 1 })])])])]), o(b2, { class: "lg:hidden" }, { default: E(() => [i("div", Iu, [(e(true), a(w, null, j(s2.navigation, (a2) => (e(), t(f2, { as: "template", key: a2.name, class: n(["block pl-3 pr-4 py-2 border-l-4 text-base font-medium sm:pl-5 sm:pr-6", { "bg-indigo-50 border-indigo-500 text-indigo-700": a2.current && true === a2.current, "border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700": !a2.current }]) }, { default: E(() => [i("p", { onClick: (e2) => l2.$emit("topBarClick", a2.id) }, _(a2.name), 9, _u)]), _: 2 }, 1032, ["class"]))), 128))]), i("div", Pu, [i("div", ju, [i("div", Ru, [i("img", { class: "h-10 w-10 rounded-full", src: s2.accountLogo }, null, 8, Bu)]), s2.brand ? (e(), a("div", Au, [i("div", Lu, _(s2.brand.title), 1), i("div", Fu, _(s2.brand.subtitle), 1)])) : R("", true)]), i("div", Nu, [(e(true), a(w, null, j(s2.profileMenu, (n2) => (e(), t(f2, { as: "template", key: n2.name, class: "block px-4 py-2 text-base font-medium text-gray-500 hover:text-gray-800 hover:bg-gray-100 sm:px-6" }, { default: E(() => [i("p", { onClick: (e2) => l2.$emit("topBarClick", n2.id) }, _(n2.name), 9, zu)]), _: 2 }, 1024))), 128))])])]), _: 1 })]), _: 1 });
2355
+ const p2 = $("Bars3Icon"), g2 = $("XMarkIcon"), m2 = $("DisclosureButton"), f2 = $("MenuButton"), v2 = $("MenuItem"), h2 = $("MenuItems"), b2 = $("Menu"), y2 = $("DisclosurePanel"), x2 = $("Disclosure");
2356
+ return e(), t(x2, { as: "nav", class: "bg-white shadow z-10" }, { default: E(({ open: u3 }) => [i("div", bu, [i("div", yu, [i("div", xu, [i("div", wu, [o(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: E(() => [ku, u3 ? (e(), t(g2, { key: 1, class: "block h-6 w-6", "aria-hidden": "true" })) : (e(), t(p2, { key: 0, class: "block h-6 w-6", "aria-hidden": "true" }))]), _: 2 }, 1024)]), i("div", { class: "flex-shrink-0 flex items-center cursor-pointer", onClick: r2[0] || (r2[0] = (e2) => l2.$emit("topBarClick", "logo")) }, [i("img", { class: "h-10", src: s2.logo, alt: "Hotelinking suite product logo" }, null, 8, Su)])]), i("div", Cu, [i("div", Ou, [o(b2, { as: "div", class: "ml-3 relative" }, { default: E(() => [i("div", null, [B(o(f2, { class: "bg-white rounded-full flex text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 relative" }, { default: E(() => [B(i("div", Mu, Du, 512), [[L, s2.alerted]]), i("img", { class: "h-10 w-10 rounded-full", src: s2.accountLogo }, null, 8, Tu)]), _: 1 }, 512), [[L, s2.accountLogo]])]), o(P, { "enter-active-class": "transition ease-out duration-200", "enter-from-class": "transform opacity-0 scale-95", "enter-to-class": "transform opacity-100 scale-100", "leave-active-class": "transition ease-in duration-75", "leave-from-class": "transform opacity-100 scale-100", "leave-to-class": "transform opacity-0 scale-95" }, { default: E(() => [o(h2, { class: "origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg py-1 bg-white ring-1 ring-black ring-opacity-5 focus:outline-none" }, { default: E(() => [(e(true), a(w, null, j(s2.profileMenu, (a2) => (e(), t(v2, { key: a2.name }, { default: E(({ active: e2 }) => [i("p", { onClick: (e3) => l2.$emit("topBarClick", a2.id), class: n(["cursor-pointer", [e2 ? "bg-gray-100" : "", "block px-4 py-2 text-sm text-gray-700"]]) }, _(a2.name), 11, Eu)]), _: 2 }, 1024))), 128))]), _: 1 })]), _: 1 })]), _: 1 })])])])]), o(y2, { class: "lg:hidden" }, { default: E(() => [i("div", Iu, [(e(true), a(w, null, j(s2.navigation, (a2) => (e(), t(m2, { as: "template", key: a2.name, class: n(["block pl-3 pr-4 py-2 border-l-4 text-base font-medium sm:pl-5 sm:pr-6", { "bg-indigo-50 border-indigo-500 text-indigo-700": a2.current && true === a2.current, "border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700": !a2.current }]) }, { default: E(() => [i("p", { onClick: (e2) => l2.$emit("topBarClick", a2.id) }, _(a2.name), 9, _u)]), _: 2 }, 1032, ["class"]))), 128))]), i("div", Pu, [i("div", ju, [i("div", Ru, [i("img", { class: "h-10 w-10 rounded-full", src: s2.accountLogo }, null, 8, Bu)]), s2.brand ? (e(), a("div", Au, [i("div", Lu, _(s2.brand.title), 1), i("div", Fu, _(s2.brand.subtitle), 1)])) : R("", true)]), i("div", Nu, [(e(true), a(w, null, j(s2.profileMenu, (n2) => (e(), t(m2, { as: "template", key: n2.name, class: "block px-4 py-2 text-base font-medium text-gray-500 hover:text-gray-800 hover:bg-gray-100 sm:px-6" }, { default: E(() => [i("p", { onClick: (e2) => l2.$emit("topBarClick", n2.id) }, _(n2.name), 9, zu)]), _: 2 }, 1024))), 128))])])]), _: 1 })]), _: 1 });
2359
2357
  }]]), Hu = { chart: { type: "bar", toolbar: { show: false }, zoom: { enabled: false } }, colors: ["#715aff"], dataLabels: { enabled: true, formatter: function(e2, t2) {
2360
2358
  return t2.w.globals.labels[t2.dataPointIndex] + ": " + e2;
2361
2359
  } }, markers: { strokeWidth: 0, size: 4, hover: { size: 8 } }, plotOptions: { bar: { borderRadius: 0, horizontal: true, barHeight: "80%", isFunnel: true } } }, Vu = { class: "chart-header flex flex-row justify-between" }, Yu = { class: "text-sm font-medium text-gray-500 truncate" }, Uu = { class: "chart-content" }, qu = { class: "h-full w-full flex items-center justify-center flex-col" }, Wu = i("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1), Ku = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, Ju = [i("div", { role: "status", class: "w-full animate-pulse h-full flex flex-col" }, [i("div", { class: "h-2.5 w-36 bg-gray-200 rounded-full mb-2.5" }), i("div", { class: "w-48 h-2 mb-6 bg-gray-200 rounded-full" }), i("div", { class: "flex flex-row justify-between items-baseline grow gap-x-1" }, [i("div", { class: "w-full bg-gray-200 rounded h-full" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" }), i("div", { class: "w-full bg-gray-200 rounded h-1/3" }), i("div", { class: "w-full bg-gray-200 rounded h-4/5" }), i("div", { class: "w-full bg-gray-200 rounded h-full" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" }), i("div", { class: "w-full bg-gray-200 rounded h-1/3" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" }), i("div", { class: "w-full bg-gray-200 rounded h-1/3" }), i("div", { class: "w-full bg-gray-200 rounded h-4/5" }), i("div", { class: "w-full bg-gray-200 rounded h-full" }), i("div", { class: "w-full bg-gray-200 rounded h-4/5" }), i("div", { class: "w-full bg-gray-200 rounded h-full" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" }), i("div", { class: "w-full bg-gray-200 rounded h-1/3" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" })])], -1)], Gu = { name: "uiChart" }, Zu = Object.assign(Gu, { props: { title: String, id: { type: String, default: "noChartId" }, series: { type: Object, required: true }, options: { type: Object, required: true }, loading: { type: Boolean, default: true }, empty: { type: Boolean, default: false }, range: { type: String, default: "24h" }, height: { type: Number, default: 320 } }, emits: ["selectedRange", "chartUpdated", "dataPointSelection"], setup(t2, { emit: l2 }) {
2362
- const r2 = l2, s2 = t2, c2 = u(() => ({ ...s2.options, ...Hu })), p2 = u(() => s2.series), g2 = () => r2("chartUpdated"), f2 = (e2, t3, l3) => {
2360
+ const r2 = l2, s2 = t2, c2 = u(() => ({ ...s2.options, ...Hu })), p2 = u(() => s2.series), g2 = () => r2("chartUpdated"), m2 = (e2, t3, l3) => {
2363
2361
  r2("dataPointSelection", { id: s2.id, chartContext: t3, config: l3, event: e2 });
2364
2362
  };
2365
- return (l3, r3) => (e(), a(w, null, [B(i("div", { class: n(["h-[" + t2.height + "px]", "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"]) }, [i("div", Vu, [i("div", Yu, _(t2.title), 1), o(Fr, { range: t2.range, onRangeSelected: r3[0] || (r3[0] = (e2) => l3.$emit("selectedRange", { range: e2, chartId: t2.id })) }, null, 8, ["range"])]), B(i("div", Uu, [o(d(U), { type: l3.bar, series: p2.value, width: "100%", height: t2.height, options: c2.value, onUpdated: g2, onMounted: g2, onDataPointSelection: f2 }, null, 8, ["type", "series", "height", "options"])], 512), [[L, !t2.empty]]), B(i("div", qu, [o(K, { icon: d(un), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), Wu], 512), [[L, t2.empty]])], 2), [[L, !t2.loading]]), B(i("div", Ku, Ju, 512), [[L, t2.loading]])], 64));
2366
- } }), Xu = { class: "w-full flex flex-col items-center justify-center p-10 grow" }, Qu = { class: "text-2xl mt-4 font-bold" }, ed = { class: "buttons flex flex-row items-center justify-center mt-8 gap-x-1" }, td = { __name: "uiNoResults", props: { title: { type: String, required: true }, message: { type: String, required: true }, actions: { type: Array } }, emits: ["action"], setup: (l2, { emit: n2 }) => (n3, r2) => (e(), a("div", Xu, [o(K, { loading: false, icon: d(un), size: "massive", color: "gray" }, null, 8, ["icon"]), i("h2", Qu, _(l2.title), 1), i("p", null, _(l2.message), 1), i("div", ed, [(e(true), a(w, null, j(l2.actions, (l3, a2) => (e(), t(Q, { key: a2, loading: false, onClick: (e2) => n3.$emit("action", l3.action) }, { default: E(() => [I(_(l3.text), 1)]), _: 2 }, 1032, ["onClick"]))), 128))])])) }, ld = i("div", { class: "fixed inset-0" }, null, -1), nd = { class: "fixed inset-0 overflow-hidden" }, ad = { class: "absolute inset-0 overflow-hidden" }, od = { class: "pointer-events-none fixed inset-y-0 right-0 flex max-w-full pl-10" }, rd = { class: "flex h-full flex-col overflow-y-scroll bg-white shadow-xl" }, id = { class: "bg-indigo-700 px-4 py-6 sm:px-6" }, sd = { class: "flex items-center justify-between" }, ud = { class: "ml-3 flex h-7 items-center" }, dd = i("span", { class: "absolute -inset-2.5" }, null, -1), cd = i("span", { class: "sr-only" }, "Close panel", -1), pd = { class: "mt-1" }, gd = { class: "text-sm text-indigo-300" }, fd = { class: "relative flex-1 px-4 py-6 sm:px-6" }, md = { name: "uiRightSidebar" }, vd = Object.assign(md, { props: { title: { type: String, required: true }, description: { type: String }, open: { type: Boolean, default: false } }, emits: ["closeRightBar"], setup(l2, { emit: n2 }) {
2363
+ return (l3, r3) => (e(), a(w, null, [B(i("div", { class: n(["h-[" + t2.height + "px]", "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"]) }, [i("div", Vu, [i("div", Yu, _(t2.title), 1), o(Fr, { range: t2.range, onRangeSelected: r3[0] || (r3[0] = (e2) => l3.$emit("selectedRange", { range: e2, chartId: t2.id })) }, null, 8, ["range"])]), B(i("div", Uu, [o(d(U), { type: l3.bar, series: p2.value, width: "100%", height: t2.height, options: c2.value, onUpdated: g2, onMounted: g2, onDataPointSelection: m2 }, null, 8, ["type", "series", "height", "options"])], 512), [[L, !t2.empty]]), B(i("div", qu, [o(K, { icon: d(un), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), Wu], 512), [[L, t2.empty]])], 2), [[L, !t2.loading]]), B(i("div", Ku, Ju, 512), [[L, t2.loading]])], 64));
2364
+ } }), Xu = { class: "w-full flex flex-col items-center justify-center p-10 grow" }, Qu = { class: "text-2xl mt-4 font-bold" }, ed = { class: "buttons flex flex-row items-center justify-center mt-8 gap-x-1" }, td = { __name: "uiNoResults", props: { title: { type: String, required: true }, message: { type: String, required: true }, actions: { type: Array } }, emits: ["action"], setup: (l2, { emit: n2 }) => (n3, r2) => (e(), a("div", Xu, [o(K, { loading: false, icon: d(un), size: "massive", color: "gray" }, null, 8, ["icon"]), i("h2", Qu, _(l2.title), 1), i("p", null, _(l2.message), 1), i("div", ed, [(e(true), a(w, null, j(l2.actions, (l3, a2) => (e(), t(Q, { key: a2, loading: false, onClick: (e2) => n3.$emit("action", l3.action) }, { default: E(() => [I(_(l3.text), 1)]), _: 2 }, 1032, ["onClick"]))), 128))])])) }, ld = i("div", { class: "fixed inset-0" }, null, -1), nd = { class: "fixed inset-0 overflow-hidden" }, ad = { class: "absolute inset-0 overflow-hidden" }, od = { class: "pointer-events-none fixed inset-y-0 right-0 flex max-w-full pl-10" }, rd = { class: "flex h-full flex-col overflow-y-scroll bg-white shadow-xl" }, id = { class: "bg-indigo-700 px-4 py-6 sm:px-6" }, sd = { class: "flex items-center justify-between" }, ud = { class: "ml-3 flex h-7 items-center" }, dd = i("span", { class: "absolute -inset-2.5" }, null, -1), cd = i("span", { class: "sr-only" }, "Close panel", -1), pd = { class: "mt-1" }, gd = { class: "text-sm text-indigo-300" }, md = { class: "relative flex-1 px-4 py-6 sm:px-6" }, fd = { name: "uiRightSidebar" }, vd = Object.assign(fd, { props: { title: { type: String, required: true }, description: { type: String }, open: { type: Boolean, default: false } }, emits: ["closeRightBar"], setup(l2, { emit: n2 }) {
2367
2365
  const a2 = n2;
2368
- return (n3, s2) => (e(), t(d(Zl), { as: "template", show: l2.open }, { default: E(() => [o(d(dl), { as: "div", class: "relative z-10", onClose: s2[1] || (s2[1] = (e2) => a2("closeRightBar")) }, { default: E(() => [ld, i("div", nd, [i("div", ad, [i("div", od, [o(d(Jl), { as: "template", enter: "transform transition ease-in-out duration-500 sm:duration-700", "enter-from": "translate-x-full", "enter-to": "translate-x-0", leave: "transform transition ease-in-out duration-500 sm:duration-700", "leave-from": "translate-x-0", "leave-to": "translate-x-full" }, { default: E(() => [o(d(cl), { class: "pointer-events-auto w-screen max-w-md" }, { default: E(() => [i("div", rd, [i("div", id, [i("div", sd, [o(d(pl), { class: "text-base font-semibold leading-6 text-white" }, { default: E(() => [I(_(l2.title), 1)]), _: 1 }), i("div", ud, [i("button", { type: "button", class: "relative rounded-md bg-indigo-700 text-indigo-200 hover:text-white outline-none", onClick: s2[0] || (s2[0] = (e2) => a2("closeRightBar")) }, [dd, cd, o(d(vn), { class: "h-6 w-6 ring-0", "aria-hidden": "true" })])])]), i("div", pd, [i("p", gd, _(l2.description), 1)])]), i("div", fd, [r(n3.$slots, "default")])])]), _: 3 })]), _: 3 })])])])]), _: 3 })]), _: 3 }, 8, ["show"]));
2369
- } }), hd = { class: "uiGallery" }, yd = { key: 1, role: "list", class: "grid grid-cols-2 gap-x-4 gap-y-8 sm:grid-cols-3 sm:gap-x-4 lg:grid-cols-6" }, bd = { class: "group aspect-h-7 aspect-w-10 block w-full overflow-hidden rounded-lg bg-gray-100 focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 focus-within:ring-offset-gray-100" }, xd = ["src"], wd = ["onClick"], kd = { class: "pointer-events-none mt-2 block truncate text-sm font-medium text-gray-900" }, Sd = { class: "flex items-center justify-between" }, Cd = { class: "pointer-events-none block text-sm font-medium text-gray-500" }, Od = { key: 2, role: "list", class: "grid grid-cols-2 gap-x-4 gap-y-8 sm:grid-cols-3 sm:gap-x-4 lg:grid-cols-6" }, Md = [i("div", { class: "group aspect-h-7 aspect-w-10 block w-full overflow-hidden rounded-lg bg-gray-200 animate-pulse dark:bg-gray-200 focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 focus-within:ring-offset-gray-100" }, null, -1), i("p", { class: "animate-pulse h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28 mt-4" }, null, -1), i("p", { class: "animate-pulse h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-14 mt-2" }, null, -1)], Dd = { name: "uiGallery" }, Td = Object.assign(Dd, { props: { galleryId: String, gallery: Array, loading: Boolean, literals: Object }, setup(l2, { emit: n2 }) {
2366
+ return (n3, s2) => (e(), t(d(Zl), { as: "template", show: l2.open }, { default: E(() => [o(d(dl), { as: "div", class: "relative z-10", onClose: s2[1] || (s2[1] = (e2) => a2("closeRightBar")) }, { default: E(() => [ld, i("div", nd, [i("div", ad, [i("div", od, [o(d(Jl), { as: "template", enter: "transform transition ease-in-out duration-500 sm:duration-700", "enter-from": "translate-x-full", "enter-to": "translate-x-0", leave: "transform transition ease-in-out duration-500 sm:duration-700", "leave-from": "translate-x-0", "leave-to": "translate-x-full" }, { default: E(() => [o(d(cl), { class: "pointer-events-auto w-screen max-w-md" }, { default: E(() => [i("div", rd, [i("div", id, [i("div", sd, [o(d(pl), { class: "text-base font-semibold leading-6 text-white" }, { default: E(() => [I(_(l2.title), 1)]), _: 1 }), i("div", ud, [i("button", { type: "button", class: "relative rounded-md bg-indigo-700 text-indigo-200 hover:text-white outline-none", onClick: s2[0] || (s2[0] = (e2) => a2("closeRightBar")) }, [dd, cd, o(d(vn), { class: "h-6 w-6 ring-0", "aria-hidden": "true" })])])]), i("div", pd, [i("p", gd, _(l2.description), 1)])]), i("div", md, [r(n3.$slots, "default")])])]), _: 3 })]), _: 3 })])])])]), _: 3 })]), _: 3 }, 8, ["show"]));
2367
+ } }), hd = { class: "uiGallery" }, bd = { key: 1, role: "list", class: "grid grid-cols-2 gap-x-4 gap-y-8 sm:grid-cols-3 sm:gap-x-4 lg:grid-cols-6" }, yd = { class: "group aspect-h-7 aspect-w-10 block w-full overflow-hidden rounded-lg bg-gray-100 focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 focus-within:ring-offset-gray-100" }, xd = ["src"], wd = ["onClick"], kd = { class: "pointer-events-none mt-2 block truncate text-sm font-medium text-gray-900" }, Sd = { class: "flex items-center justify-between" }, Cd = { class: "pointer-events-none block text-sm font-medium text-gray-500" }, Od = { key: 2, role: "list", class: "grid grid-cols-2 gap-x-4 gap-y-8 sm:grid-cols-3 sm:gap-x-4 lg:grid-cols-6" }, Md = [i("div", { class: "group aspect-h-7 aspect-w-10 block w-full overflow-hidden rounded-lg bg-gray-200 animate-pulse dark:bg-gray-200 focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 focus-within:ring-offset-gray-100" }, null, -1), i("p", { class: "animate-pulse h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28 mt-4" }, null, -1), i("p", { class: "animate-pulse h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-14 mt-2" }, null, -1)], Dd = { name: "uiGallery" }, Td = Object.assign(Dd, { props: { galleryId: String, gallery: Array, loading: Boolean, literals: Object }, setup(l2, { emit: n2 }) {
2370
2368
  const r2 = n2, u2 = s(false);
2371
2369
  return (n3, s2) => (e(), a("div", hd, [l2.loading ? R("", true) : (e(), t(ro, { key: 0, open: u2.value, modalName: "deleteAllImagesModal", title: l2.literals.modalTitle, type: "warning", actions: [{ value: "close", name: l2.literals.closeAction }, { value: `deleteGallery_${l2.galleryId}`, name: l2.literals.deleteAction }], onModalAction: s2[0] || (s2[0] = (e2) => {
2372
2370
  var t2;
2373
2371
  "close" !== (t2 = e2).action ? r2("modalAction", t2) : u2.value = false;
2374
- }) }, { default: E(() => [i("p", null, _(l2.literals.modalText), 1)]), _: 1 }, 8, ["open", "title", "actions"])), l2.loading ? (e(), a("ul", Od, [(e(), a(w, null, j(4, (e2) => i("li", null, Md)), 64))])) : (e(), a("ul", yd, [(e(true), a(w, null, j(l2.gallery, (t2) => (e(), a("li", { key: t2.source, class: "relative" }, [i("div", bd, [i("img", { src: t2.source, alt: "", class: "pointer-events-none object-cover group-hover:opacity-75" }, null, 8, xd), i("button", { type: "button", class: "absolute inset-0 focus:outline-none", onClick: (e2) => n3.$emit("imgClicked", t2) }, null, 8, wd)]), i("p", kd, _(t2.title), 1), i("div", Sd, [i("p", Cd, _(t2.size), 1), o(K, { class: "cursor-pointer", icon: d(fn), color: "red", loading: false, onClick: (e2) => r2("deleteImage", t2) }, null, 8, ["icon", "onClick"])])]))), 128))])), l2.gallery.length > 0 && !l2.loading ? (e(), t(Q, { key: 3, onClick: s2[1] || (s2[1] = (e2) => u2.value = true), class: "mt-8", loading: false, color: "red", size: "small" }, { default: E(() => [I(_(l2.literals.deleteAllImages), 1)]), _: 1 })) : R("", true)]));
2372
+ }) }, { default: E(() => [i("p", null, _(l2.literals.modalText), 1)]), _: 1 }, 8, ["open", "title", "actions"])), l2.loading ? (e(), a("ul", Od, [(e(), a(w, null, j(4, (e2) => i("li", null, Md)), 64))])) : (e(), a("ul", bd, [(e(true), a(w, null, j(l2.gallery, (t2) => (e(), a("li", { key: t2.source, class: "relative" }, [i("div", yd, [i("img", { src: t2.source, alt: "", class: "pointer-events-none object-cover group-hover:opacity-75" }, null, 8, xd), i("button", { type: "button", class: "absolute inset-0 focus:outline-none", onClick: (e2) => n3.$emit("imgClicked", t2) }, null, 8, wd)]), i("p", kd, _(t2.title), 1), i("div", Sd, [i("p", Cd, _(t2.size), 1), o(K, { class: "cursor-pointer", icon: d(mn), color: "red", loading: false, onClick: (e2) => r2("deleteImage", t2) }, null, 8, ["icon", "onClick"])])]))), 128))])), l2.gallery.length > 0 && !l2.loading ? (e(), t(Q, { key: 3, onClick: s2[1] || (s2[1] = (e2) => u2.value = true), class: "mt-8", loading: false, color: "red", size: "small" }, { default: E(() => [I(_(l2.literals.deleteAllImages), 1)]), _: 1 })) : R("", true)]));
2375
2373
  } }), Ed = { class: "cursor-move mb-1 relative flex items-center space-x-3 rounded-lg border border-gray-300 bg-white p-4 shadow-sm focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 hover:border-gray-400" }, Id = { class: "flex flex-row items-center w-full" }, _d = { class: "content text-sm grow" }, Pd = { class: "font-bold" }, jd = { key: 0 }, Rd = { class: "font-bold text-gray-400" }, Bd = { key: 1, class: "animate-pulse" }, Ad = [z('<div class="h-16 mb-1 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div><div class="h-16 mb-1 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div><div class="h-16 mb-1 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div><div class="h-16 mb-1 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div><div class="h-16 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div>', 5)], Ld = { name: "uiDragAndDrop" }, Fd = Object.assign(Ld, { props: { elements: { type: Array, required: true }, loading: true }, setup(l2) {
2376
2374
  const n2 = l2;
2377
2375
  let r2 = s(n2.elements);
@@ -2381,15 +2379,18 @@ const $u = Ro(hu, [["render", function(l2, r2, s2, u2, d2, c2) {
2381
2379
  } }), Nd = { class: "chart-header flex flex-row justify-between" }, zd = { class: "text-sm font-medium text-gray-500 truncate" }, $d = { class: "chart-content" }, Hd = { class: "h-full w-full flex items-center justify-center flex-col" }, Vd = i("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1), Yd = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, Ud = [i("div", { role: "status", class: "w-full animate-pulse h-full flex flex-col" }, [i("div", { class: "h-2.5 w-36 bg-gray-200 rounded-full mb-2.5" }), i("div", { class: "w-48 h-2 mb-6 bg-gray-200 rounded-full" }), i("div", { class: "flex flex-row justify-between items-baseline grow gap-x-1" }, [i("div", { class: "w-full bg-gray-200 rounded h-full" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" }), i("div", { class: "w-full bg-gray-200 rounded h-1/3" }), i("div", { class: "w-full bg-gray-200 rounded h-4/5" }), i("div", { class: "w-full bg-gray-200 rounded h-full" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" }), i("div", { class: "w-full bg-gray-200 rounded h-1/3" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" }), i("div", { class: "w-full bg-gray-200 rounded h-1/3" }), i("div", { class: "w-full bg-gray-200 rounded h-4/5" }), i("div", { class: "w-full bg-gray-200 rounded h-full" }), i("div", { class: "w-full bg-gray-200 rounded h-4/5" }), i("div", { class: "w-full bg-gray-200 rounded h-full" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" }), i("div", { class: "w-full bg-gray-200 rounded h-1/3" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" })])], -1)], qd = { name: "uiCircleChart" }, Wd = Object.assign(qd, { props: { title: String, id: { type: String, default: "noChartId" }, series: { type: Array, required: true }, labels: { type: Array, required: true }, loading: { type: Boolean, default: true }, empty: { type: Boolean, default: false }, range: { type: String, default: "24h" }, height: { type: Number, default: 320 } }, emits: ["selectedRange", "chartUpdated", "dataPointSelection"], setup(t2, { emit: l2 }) {
2382
2380
  const r2 = l2, s2 = t2;
2383
2381
  let c2 = { labels: s2.labels, chart: { toolbar: { show: false }, zoom: { enabled: false } }, colors: ["#715aff", "#00ffff", "#aba9ba"], stroke: { show: true, curve: "stepline", lineCap: "butt", width: 1, dashArray: 0 }, dataLabels: { enabled: true, dropShadow: { enabled: false } } };
2384
- const p2 = u(() => s2.series), g2 = u(() => ({ ...c2, ...s2.options })), f2 = () => r2("chartUpdated"), m2 = (e2, t3, l3) => {
2382
+ const p2 = u(() => s2.series), g2 = u(() => ({ ...c2, ...s2.options })), m2 = () => r2("chartUpdated"), f2 = (e2, t3, l3) => {
2385
2383
  r2("dataPointSelection", { id: s2.id, chartContext: t3, config: l3, event: e2 });
2386
2384
  };
2387
- return (l3, r3) => (e(), a(w, null, [B(i("div", { class: n(["h-[" + t2.height + "px]", "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"]) }, [i("div", Nd, [i("div", zd, _(t2.title), 1), o(Fr, { range: t2.range, onRangeSelected: r3[0] || (r3[0] = (e2) => l3.$emit("selectedRange", { range: e2, chartId: t2.id })) }, null, 8, ["range"])]), B(i("div", $d, [o(d(U), { class: "flex items-center justify-center", type: "donut", series: p2.value, options: g2.value, height: t2.height, onUpdated: f2, onMounted: f2, onDataPointSelection: m2 }, null, 8, ["series", "options", "height"])], 512), [[L, !t2.empty]]), B(i("div", Hd, [o(K, { icon: d(un), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), Vd], 512), [[L, t2.empty]])], 2), [[L, !t2.loading]]), B(i("div", Yd, Ud, 512), [[L, t2.loading]])], 64));
2388
- } }), Kd = { uiButton: Q, uiIcon: K, uiCheckbox: se, uiDropdown: kn, uiInput: jn, uiInputFile: Kn, uiSelect: Qn, uiTag: na, uiTextArea: da, uiToggle: va, uiAlert: Da, uiBreadcrumbs: La, uiCard: qa, uiFilter: Ka, uiModal: ro, uiNotification: bo, uiTaskList: Po, uiPriceCalendar: Br, uiChart: Wr, uiFooter: Zr, uiLoadingScreen: ei, uiPagination: vi, uiSidebar: Pi, uiStats: qi, uiStripedCard: ss, uiTable: js, uiTabs: $s, uiTimeline: vu, uiTopbar: $u, uiFunnelChartV2: Zu, uiNoResults: td, uiRightSidebar: vd, uiGallery: Td, uiDragAndDrop: Fd, uiCircleChart: Wd }, Jd = { install(e2) {
2389
- Object.keys(Kd).forEach((t2) => {
2390
- e2.component(t2, Kd[t2]);
2385
+ return (l3, r3) => (e(), a(w, null, [B(i("div", { class: n(["h-[" + t2.height + "px]", "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"]) }, [i("div", Nd, [i("div", zd, _(t2.title), 1), o(Fr, { range: t2.range, onRangeSelected: r3[0] || (r3[0] = (e2) => l3.$emit("selectedRange", { range: e2, chartId: t2.id })) }, null, 8, ["range"])]), B(i("div", $d, [o(d(U), { class: "flex items-center justify-center", type: "donut", series: p2.value, options: g2.value, height: t2.height, onUpdated: m2, onMounted: m2, onDataPointSelection: f2 }, null, 8, ["series", "options", "height"])], 512), [[L, !t2.empty]]), B(i("div", Hd, [o(K, { icon: d(un), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), Vd], 512), [[L, t2.empty]])], 2), [[L, !t2.loading]]), B(i("div", Yd, Ud, 512), [[L, t2.loading]])], 64));
2386
+ } }), Kd = { class: "flex flex-col lg:flex-row w-full gap-y-4 gap-x-2" }, Jd = { name: "uiDateRange" }, Gd = Object.assign(Jd, { props: { id: { type: String, required: true }, loading: { type: Boolean, default: true }, literals: { type: Object, required: true }, color: String, values: { type: Object, default: () => ({ from: "", to: "" }) }, error: String, disabled: Boolean, label: String }, setup(t2) {
2387
+ let l2 = C({ from: void 0, to: void 0 });
2388
+ return (r2, i2) => (e(), a("div", Kd, [o(jn, { type: "date", loading: t2.loading, addOn: t2.literals.from, name: `dateFrom_${t2.id}`, color: t2.color, value: t2.values.from, error: t2.error, disabled: t2.disabled, label: t2.label, onInputChanged: i2[0] || (i2[0] = (e2) => d(l2).from = e2.value) }, null, 8, ["loading", "addOn", "name", "color", "value", "error", "disabled", "label"]), o(jn, { class: n([{ "mt-6": t2.label && !t2.loading }, { "mt-4": t2.loading }]), type: "date", loading: t2.loading, addOn: t2.literals.to, name: `dateTo_${t2.id}`, color: t2.color, value: t2.values.to, error: t2.error, disabled: t2.disabled, onInputChanged: i2[1] || (i2[1] = (e2) => d(l2).to = e2.value) }, null, 8, ["class", "loading", "addOn", "name", "color", "value", "error", "disabled"]), o(Q, { disabled: t2.disabled, color: "primary", loading: t2.loading, class: n([{ "mt-6": t2.label && !t2.loading }, "h-10"]), onClick: i2[2] || (i2[2] = (e2) => r2.$emit("uiDateRangeButtonClicked", d(l2))) }, { default: E(() => [I(_(t2.literals.search), 1)]), _: 1 }, 8, ["disabled", "loading", "class"])]));
2389
+ } }), Zd = { uiButton: Q, uiIcon: K, uiCheckbox: se, uiDropdown: kn, uiInput: jn, uiInputFile: Kn, uiSelect: Qn, uiTag: na, uiTextArea: da, uiToggle: va, uiAlert: Da, uiBreadcrumbs: La, uiCard: qa, uiFilter: Ka, uiModal: ro, uiNotification: yo, uiTaskList: Po, uiPriceCalendar: Br, uiChart: Wr, uiFooter: Zr, uiLoadingScreen: ei, uiPagination: vi, uiSidebar: Pi, uiStats: qi, uiStripedCard: ss, uiTable: js, uiTabs: $s, uiTimeline: vu, uiTopbar: $u, uiFunnelChartV2: Zu, uiNoResults: td, uiRightSidebar: vd, uiGallery: Td, uiDragAndDrop: Fd, uiCircleChart: Wd, uiDateRange: Gd }, Xd = { install(e2) {
2390
+ Object.keys(Zd).forEach((t2) => {
2391
+ e2.component(t2, Zd[t2]);
2391
2392
  });
2392
2393
  } };
2393
2394
  export {
2394
- Jd as default
2395
+ Xd as default
2395
2396
  };