@hotelinking/ui 4.32.20 → 4.33.21

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.
Files changed (3) hide show
  1. package/dist/ui.es.js +181 -172
  2. package/dist/ui.umd.cjs +1 -1
  3. package/package.json +13 -11
package/dist/ui.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { openBlock as e, createBlock as t, resolveDynamicComponent as l, normalizeClass as n, createElementBlock as a, createVNode as o, renderSlot as r, createElementVNode as i, ref as s, computed as u, unref as d, shallowRef as c, watch as p, triggerRef as g, onScopeDispose as f, nextTick as m, watchEffect as v, onMounted as b, cloneVNode as y, h, Fragment as x, defineComponent as w, inject as k, provide as S, reactive as C, onUnmounted as O, toRaw as M, getCurrentInstance as T, Teleport as E, withCtx as D, createTextVNode as I, toDisplayString as _, Transition as P, renderList as j, createCommentVNode as R, withDirectives as B, vModelDynamic as L, vShow as A, withModifiers as F, vModelText as N, createStaticVNode as z, resolveComponent as $, vModelCheckbox as H, isRef as V } from "vue";
1
+ import { openBlock as e, createBlock as t, resolveDynamicComponent as l, normalizeClass as n, createElementBlock as a, createVNode as o, renderSlot as r, createElementVNode as i, ref as s, computed as u, unref as d, shallowRef as c, watch as p, triggerRef as g, onScopeDispose as f, nextTick as m, watchEffect as v, onMounted as y, cloneVNode as b, h, Fragment as x, defineComponent as w, inject as k, provide as S, reactive as C, onUnmounted as O, toRaw as M, getCurrentInstance as T, Teleport as E, withCtx as D, createTextVNode as I, toDisplayString as _, Transition as P, renderList as j, createCommentVNode as R, withDirectives as B, vModelDynamic as 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
  const q = { name: "uiIcon" }, W = Object.assign(q, { props: { icon: { type: Function, required: true }, size: { type: String, default: "normal" }, color: { type: String, default: "primary" }, loading: { type: Boolean, default: true } }, setup: (o2) => (r2, i2) => o2.loading ? (e(), a("div", { key: 1, class: n([{ "h-4 w-4": "normal" === o2.size, "h-6 w-6": "big" === o2.size, "h-12 w-12": "huge" === o2.size, "h-20 w-20": "massive" === o2.size }, "animate-pulse rounded-full bg-gray-200 dark:bg-gray-300"]) }, null, 2)) : (e(), t(l(o2.icon), { key: 0, class: n({ "h-4 w-4": "normal" === o2.size, "h-6 w-6": "big" === o2.size, "h-12 w-12": "huge" === o2.size, "h-20 w-20": "massive" === o2.size, "text-indigo-600": "primary" === o2.color, "text-cyan-300": "secondary" === o2.color, "text-red-400": "red" === o2.color, "text-yellow-400": "yellow" === o2.color, "text-green-400": "green" === o2.color, "text-white": "white" === o2.color, "text-gray-300": "gray" === o2.color, "text-black": "black" === o2.color }) }, null, 8, ["class"])) }), K = ["disabled"], J = { key: 1, class: "animate-pulse px-4 py-2.5 text-sm rounded-md inline-flex items-center border border-transparent font-medium shadow-sm text-white focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-25 bg-gray-200" }, G = i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-16" }, null, -1), Z = { name: "uiButton" }, X = Object.assign(Z, { props: { color: { type: String, default: "primary" }, size: { type: String, default: "normal" }, icon: { type: Function, default: () => {
@@ -98,10 +98,10 @@ var pe = function(e2) {
98
98
  return Math.round(n2[l2.options.horizontal ? "inlineSize" : "blockSize"]);
99
99
  }
100
100
  return Math.round(e2.getBoundingClientRect()[l2.options.horizontal ? "width" : "height"]);
101
- }, be = function(e2, t2, l2) {
101
+ }, ye = function(e2, t2, l2) {
102
102
  var n2, a2, o2 = t2.adjustments, r2 = void 0 === o2 ? 0 : o2, i2 = t2.behavior, s2 = e2 + r2;
103
103
  null == (n2 = l2.scrollElement) || null == n2.scrollTo || n2.scrollTo(((a2 = {})[l2.options.horizontal ? "left" : "top"] = s2, a2.behavior = i2, a2));
104
- }, ye = function(e2) {
104
+ }, be = function(e2) {
105
105
  var t2, l2, n2 = this;
106
106
  this.unsubs = [], this.scrollElement = null, this.isScrolling = false, this.isScrollingTimeoutId = null, this.scrollToIndexTimeoutId = null, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.scrollDirection = null, this.scrollAdjustments = 0, this.measureElementCache = /* @__PURE__ */ new Map(), this.observer = (t2 = null, l2 = function() {
107
107
  return t2 || ("undefined" != typeof ResizeObserver ? t2 = new ResizeObserver(function(e3) {
@@ -295,7 +295,7 @@ var pe = function(e2) {
295
295
  };
296
296
  function xe(e2) {
297
297
  return function(e3) {
298
- var t2 = new ye(d(e3)), l2 = c(t2), n2 = t2._didMount();
298
+ var t2 = new be(d(e3)), l2 = c(t2), n2 = t2._didMount();
299
299
  return p(function() {
300
300
  return d(e3).getScrollElement();
301
301
  }, function(e4) {
@@ -308,7 +308,7 @@ function xe(e2) {
308
308
  } })), t2._willUpdate(), g(l2);
309
309
  }, { immediate: true }), f(n2), l2;
310
310
  }(u(function() {
311
- return se({ observeElementRect: fe, observeElementOffset: me, scrollToFn: be }, d(e2));
311
+ return se({ observeElementRect: fe, observeElementOffset: me, scrollToFn: ye }, d(e2));
312
312
  }));
313
313
  }
314
314
  function we(e2, t2, l2) {
@@ -380,7 +380,7 @@ function Re(e2 = document.body) {
380
380
  return null == e2 ? [] : Array.from(e2.querySelectorAll(Ie)).sort((e3, t2) => Math.sign((e3.tabIndex || Number.MAX_SAFE_INTEGER) - (t2.tabIndex || Number.MAX_SAFE_INTEGER)));
381
381
  }
382
382
  var Be = ((e2) => (e2[e2.Strict = 0] = "Strict", e2[e2.Loose = 1] = "Loose", e2))(Be || {});
383
- function Le(e2, t2 = 0) {
383
+ function Ae(e2, t2 = 0) {
384
384
  var l2;
385
385
  return e2 !== (null == (l2 = De(e2)) ? void 0 : l2.body) && Oe(t2, { 0: () => e2.matches(Ie), 1() {
386
386
  let t3 = e2;
@@ -392,10 +392,10 @@ function Le(e2, t2 = 0) {
392
392
  return false;
393
393
  } });
394
394
  }
395
- function Ae(e2) {
395
+ function Le(e2) {
396
396
  let t2 = De(e2);
397
397
  m(() => {
398
- t2 && !Le(t2.activeElement, 0) && Ne(e2);
398
+ t2 && !Ae(t2.activeElement, 0) && Ne(e2);
399
399
  });
400
400
  }
401
401
  var Fe = ((e2) => (e2[e2.Keyboard = 0] = "Keyboard", e2[e2.Mouse = 1] = "Mouse", e2))(Fe || {});
@@ -490,7 +490,7 @@ function We(e2, t2, l2 = u(() => true)) {
490
490
  if (null != t3 && t3.contains(o2) || n3.composed && n3.composedPath().includes(t3))
491
491
  return;
492
492
  }
493
- return !Le(o2, Be.Loose) && -1 !== o2.tabIndex && n3.preventDefault(), t2(n3, o2);
493
+ return !Ae(o2, Be.Loose) && -1 !== o2.tabIndex && n3.preventDefault(), t2(n3, o2);
494
494
  }
495
495
  let a2 = s(null);
496
496
  Ue("pointerdown", (e3) => {
@@ -511,7 +511,7 @@ function Ke(e2, t2) {
511
511
  }
512
512
  function Je(e2, t2) {
513
513
  let l2 = s(Ke(e2.value.type, e2.value.as));
514
- return b(() => {
514
+ return y(() => {
515
515
  l2.value = Ke(e2.value.type, e2.value.as);
516
516
  }), v(() => {
517
517
  var e3;
@@ -570,7 +570,7 @@ function lt({ props: e2, attrs: t2, slots: l2, slot: n2, name: a2 }) {
570
570
  return null != e4 && ("string" == typeof e4.type || "object" == typeof e4.type || "function" == typeof e4.type);
571
571
  }(e3) || l3.length > 0)
572
572
  throw new Error(['Passing props on "template"!', "", `The current component <${a2} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(s2).concat(Object.keys(t2)).map((e4) => e4.trim()).filter((e4, t3, l4) => l4.indexOf(e4) === t3).sort((e4, t3) => e4.localeCompare(t3)).map((e4) => ` - ${e4}`).join("\n"), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".', "Render a single element as the child so that we can forward the props onto that element."].map((e4) => ` - ${e4}`).join("\n")].join("\n"));
573
- let n3 = at(null != (r2 = e3.props) ? r2 : {}, s2, d2), o3 = y(e3, n3, true);
573
+ let n3 = at(null != (r2 = e3.props) ? r2 : {}, s2, d2), o3 = b(e3, n3, true);
574
574
  for (let e4 in n3)
575
575
  e4.startsWith("on") && (o3.props || (o3.props = {}), o3.props[e4] = n3[e4]);
576
576
  return o3;
@@ -683,12 +683,12 @@ function vt(e2, t2) {
683
683
  }(e2);
684
684
  }
685
685
  }
686
- function bt(e2) {
686
+ function yt(e2) {
687
687
  "function" == typeof queueMicrotask ? queueMicrotask(e2) : Promise.resolve().then(e2).catch((e3) => setTimeout(() => {
688
688
  throw e3;
689
689
  }));
690
690
  }
691
- function yt() {
691
+ function bt() {
692
692
  let e2 = [], t2 = { addEventListener: (e3, l2, n2, a2) => (e3.addEventListener(l2, n2, a2), t2.add(() => e3.removeEventListener(l2, n2, a2))), requestAnimationFrame(...e3) {
693
693
  let l2 = requestAnimationFrame(...e3);
694
694
  t2.add(() => cancelAnimationFrame(l2));
@@ -701,7 +701,7 @@ function yt() {
701
701
  t2.add(() => clearTimeout(l2));
702
702
  }, microTask(...e3) {
703
703
  let l2 = { current: true };
704
- return bt(() => {
704
+ return yt(() => {
705
705
  l2.current && e3[0]();
706
706
  }), t2.add(() => {
707
707
  l2.current = false;
@@ -712,7 +712,7 @@ function yt() {
712
712
  Object.assign(e3.style, { [t3]: n2 });
713
713
  });
714
714
  }, group(e3) {
715
- let t3 = yt();
715
+ let t3 = bt();
716
716
  return e3(t3), this.add(() => t3.dispose());
717
717
  }, add: (t3) => (e2.push(t3), () => {
718
718
  let l2 = e2.indexOf(t3);
@@ -769,10 +769,10 @@ let Tt = Symbol("VirtualContext"), Et = w({ name: "VirtualProvider", setup(e2, {
769
769
  return;
770
770
  null !== l2.activeOptionIndex.value && l2.virtual.value.options.length > l2.activeOptionIndex.value && a2.value.scrollToIndex(l2.activeOptionIndex.value);
771
771
  }
772
- } }, a2.value.getVirtualItems().map((e3) => 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" } })))];
772
+ } }, 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" } })))];
773
773
  } }), Dt = w({ name: "Combobox", emits: { "update:modelValue": (e2) => true }, props: { as: { type: [Object, String], default: "template" }, disabled: { type: [Boolean], default: false }, by: { type: [String, Function], nullable: true, default: null }, modelValue: { type: [Object, String, Number, Boolean], default: void 0 }, defaultValue: { type: [Object, String, Number, Boolean], default: void 0 }, form: { type: String, optional: true }, name: { type: String, optional: true }, nullable: { type: Boolean, default: false }, multiple: { type: [Boolean], default: false }, immediate: { type: [Boolean], default: false }, virtual: { type: Object, default: null } }, inheritAttrs: false, setup(e2, { slots: t2, attrs: l2, emit: n2 }) {
774
774
  let a2 = s(1), o2 = s(null), r2 = s(null), i2 = s(null), d2 = s(null), c2 = s({ static: false, hold: false }), g2 = s([]), f2 = s(null), m2 = s(2), v2 = s(false);
775
- function y2(e3 = (e4) => e4) {
775
+ function b2(e3 = (e4) => e4) {
776
776
  let t3 = null !== f2.value ? g2.value[f2.value] : null, l3 = e3(g2.value.slice()), n3 = l3.length > 0 && null !== l3[0].dataRef.order.value ? l3.sort((e4, t4) => e4.dataRef.order.value - t4.dataRef.order.value) : $e(l3, (e4) => Ce(e4.dataRef.domRef)), a3 = t3 ? n3.indexOf(t3) : null;
777
777
  return -1 === a3 && (a3 = null), { options: n3, activeOptionIndex: a3 };
778
778
  }
@@ -842,7 +842,7 @@ let Tt = Symbol("VirtualContext"), Et = w({ name: "VirtualProvider", setup(e2, {
842
842
  }, resolveDisabled: (e3) => j2.virtual.value.disabled(e3), resolveId() {
843
843
  throw new Error("Function not implemented.");
844
844
  } }), void (m2.value = null != n3 ? n3 : 2);
845
- let o3 = y2();
845
+ let o3 = b2();
846
846
  if (null === o3.activeOptionIndex) {
847
847
  let e3 = o3.options.findIndex((e4) => !e4.dataRef.disabled);
848
848
  -1 !== e3 && (o3.activeOptionIndex = e3);
@@ -871,15 +871,15 @@ let Tt = Symbol("VirtualContext"), Et = w({ name: "VirtualProvider", setup(e2, {
871
871
  if (j2.virtual.value)
872
872
  return void g2.value.push(l3);
873
873
  I2 && cancelAnimationFrame(I2);
874
- let n3 = y2((e4) => (e4.push(l3), e4));
874
+ let n3 = b2((e4) => (e4.push(l3), e4));
875
875
  null === f2.value && j2.isSelected(t3.value.value) && (n3.activeOptionIndex = n3.options.indexOf(l3)), g2.value = n3.options, f2.value = n3.activeOptionIndex, m2.value = 2, n3.options.some((e4) => !Ce(e4.dataRef.domRef)) && (I2 = requestAnimationFrame(() => {
876
- let e4 = y2();
876
+ let e4 = b2();
877
877
  g2.value = e4.options, f2.value = e4.activeOptionIndex;
878
878
  }));
879
879
  }, unregisterOption(e3, t3) {
880
880
  if (null !== D2 && cancelAnimationFrame(D2), t3 && (v2.value = true), j2.virtual.value)
881
881
  return void (g2.value = g2.value.filter((t4) => t4.id !== e3));
882
- let l3 = y2((t4) => {
882
+ let l3 = b2((t4) => {
883
883
  let l4 = t4.findIndex((t5) => t5.id === e3);
884
884
  return -1 !== l4 && t4.splice(l4, 1), t4;
885
885
  });
@@ -890,7 +890,7 @@ let Tt = Symbol("VirtualContext"), Et = w({ name: "VirtualProvider", setup(e2, {
890
890
  var e3;
891
891
  return null == (e3 = Ce(r2)) ? void 0 : e3.closest("form");
892
892
  });
893
- return b(() => {
893
+ return y(() => {
894
894
  p([R2], () => {
895
895
  if (R2.value && void 0 !== e2.defaultValue)
896
896
  return R2.value.addEventListener("reset", t3), () => {
@@ -967,7 +967,7 @@ let Tt = Symbol("VirtualContext"), Et = w({ name: "VirtualProvider", setup(e2, {
967
967
  let l3 = o2.value.value;
968
968
  return Ce(o2.inputRef) ? void 0 !== e2.displayValue && void 0 !== l3 ? null != (t3 = e2.displayValue(l3)) ? t3 : "" : "string" == typeof l3 ? l3 : "" : "";
969
969
  });
970
- b(() => {
970
+ y(() => {
971
971
  p([c2, o2.comboboxState, r2], ([e3, t3], [l3, n3]) => {
972
972
  if (i2.value)
973
973
  return;
@@ -996,11 +996,11 @@ let Tt = Symbol("VirtualContext"), Et = w({ name: "VirtualProvider", setup(e2, {
996
996
  g2.value = true;
997
997
  }
998
998
  function v2() {
999
- yt().nextFrame(() => {
999
+ bt().nextFrame(() => {
1000
1000
  g2.value = false;
1001
1001
  });
1002
1002
  }
1003
- function y2(e3) {
1003
+ function b2(e3) {
1004
1004
  switch (i2.value = true, e3.key) {
1005
1005
  case gt.Enter:
1006
1006
  if (i2.value = false, 0 !== o2.comboboxState.value || g2.value)
@@ -1052,7 +1052,7 @@ let Tt = Symbol("VirtualContext"), Et = w({ name: "VirtualProvider", setup(e2, {
1052
1052
  function w2(e3) {
1053
1053
  var t3, l3, n3;
1054
1054
  let a3 = null != (t3 = e3.relatedTarget) ? t3 : ft.find((t4) => t4 !== e3.currentTarget);
1055
- null != (l3 = Ce(o2.buttonRef)) && l3.contains(a3) || null != (n3 = Ce(o2.optionsRef)) && n3.contains(a3) || o2.disabled.value || o2.immediate.value && 0 !== o2.comboboxState.value && (o2.openCombobox(), yt().nextFrame(() => {
1055
+ null != (l3 = Ce(o2.buttonRef)) && l3.contains(a3) || null != (n3 = Ce(o2.optionsRef)) && n3.contains(a3) || o2.disabled.value || o2.immediate.value && 0 !== o2.comboboxState.value && (o2.openCombobox(), bt().nextFrame(() => {
1056
1056
  o2.setActivationTrigger(1);
1057
1057
  }));
1058
1058
  }
@@ -1062,8 +1062,8 @@ let Tt = Symbol("VirtualContext"), Et = w({ name: "VirtualProvider", setup(e2, {
1062
1062
  });
1063
1063
  return () => {
1064
1064
  var t3, a3, r3, i3, s2, u2, d3;
1065
- let c3 = { open: 0 === o2.comboboxState.value }, { id: p2, displayValue: g3, onChange: m2, ...b2 } = e2, S2 = { "aria-controls": null == (t3 = o2.optionsRef.value) ? void 0 : t3.id, "aria-expanded": 0 === o2.comboboxState.value, "aria-activedescendant": null === o2.activeOptionIndex.value ? void 0 : o2.virtual.value ? null == (a3 = o2.options.value.find((e3) => !o2.virtual.value.disabled(e3.dataRef.value) && o2.compare(e3.dataRef.value, o2.virtual.value.options[o2.activeOptionIndex.value]))) ? void 0 : a3.id : null == (r3 = o2.options.value[o2.activeOptionIndex.value]) ? void 0 : r3.id, "aria-labelledby": null != (u2 = null == (i3 = Ce(o2.labelRef)) ? void 0 : i3.id) ? u2 : null == (s2 = Ce(o2.buttonRef)) ? void 0 : s2.id, "aria-autocomplete": "list", id: p2, onCompositionstart: f2, onCompositionend: v2, onKeydown: y2, onInput: h2, onFocus: w2, onBlur: x2, role: "combobox", type: null != (d3 = l2.type) ? d3 : "text", tabIndex: 0, ref: o2.inputRef, defaultValue: k2.value, disabled: true === o2.disabled.value || void 0 };
1066
- return tt({ ourProps: S2, theirProps: b2, slot: c3, attrs: l2, slots: n2, features: Qe.RenderStrategy | Qe.Static, name: "ComboboxInput" });
1065
+ let c3 = { open: 0 === o2.comboboxState.value }, { id: p2, displayValue: g3, onChange: m2, ...y2 } = e2, S2 = { "aria-controls": null == (t3 = o2.optionsRef.value) ? void 0 : t3.id, "aria-expanded": 0 === o2.comboboxState.value, "aria-activedescendant": null === o2.activeOptionIndex.value ? void 0 : o2.virtual.value ? null == (a3 = o2.options.value.find((e3) => !o2.virtual.value.disabled(e3.dataRef.value) && o2.compare(e3.dataRef.value, o2.virtual.value.options[o2.activeOptionIndex.value]))) ? void 0 : a3.id : null == (r3 = o2.options.value[o2.activeOptionIndex.value]) ? void 0 : r3.id, "aria-labelledby": null != (u2 = null == (i3 = Ce(o2.labelRef)) ? void 0 : i3.id) ? u2 : null == (s2 = Ce(o2.buttonRef)) ? void 0 : s2.id, "aria-autocomplete": "list", id: p2, onCompositionstart: f2, onCompositionend: v2, onKeydown: b2, onInput: h2, onFocus: w2, onBlur: x2, role: "combobox", type: null != (d3 = l2.type) ? d3 : "text", tabIndex: 0, ref: o2.inputRef, defaultValue: k2.value, disabled: true === o2.disabled.value || void 0 };
1066
+ return tt({ ourProps: S2, theirProps: y2, slot: c3, attrs: l2, slots: n2, features: Qe.RenderStrategy | Qe.Static, name: "ComboboxInput" });
1067
1067
  };
1068
1068
  } }), jt = w({ name: "ComboboxOptions", props: { as: { type: [Object, String], default: "ul" }, static: { type: Boolean, default: false }, unmount: { type: Boolean, default: true }, hold: { type: [Boolean], default: false } }, setup(e2, { attrs: t2, slots: l2, expose: n2 }) {
1069
1069
  let a2 = Mt("ComboboxOptions"), o2 = `headlessui-combobox-options-${Se()}`;
@@ -1103,7 +1103,7 @@ let Tt = Symbol("VirtualContext"), Et = w({ name: "VirtualProvider", setup(e2, {
1103
1103
  let l3 = a2.calculateIndex(e2.value);
1104
1104
  a2.goToOption(mt.Specific, l3);
1105
1105
  }
1106
- b(() => a2.registerOption(o2, p2)), O(() => a2.unregisterOption(o2, i2.value)), v(() => {
1106
+ y(() => a2.registerOption(o2, p2)), O(() => a2.unregisterOption(o2, i2.value)), v(() => {
1107
1107
  let e3 = Ce(r2);
1108
1108
  e3 && (null == c2 || c2.value.measureElement(e3));
1109
1109
  }), v(() => {
@@ -1112,20 +1112,20 @@ let Tt = Symbol("VirtualContext"), Et = w({ name: "VirtualProvider", setup(e2, {
1112
1112
  return null == (t3 = null == (e3 = Ce(r2)) ? void 0 : e3.scrollIntoView) ? void 0 : t3.call(e3, { block: "nearest" });
1113
1113
  }));
1114
1114
  });
1115
- let y2 = Ze();
1115
+ let b2 = Ze();
1116
1116
  function h2(e3) {
1117
- y2.update(e3);
1117
+ b2.update(e3);
1118
1118
  }
1119
1119
  function x2(t3) {
1120
1120
  var l3;
1121
- if (!y2.wasMoved(t3) || e2.disabled || null != (l3 = a2.virtual.value) && l3.disabled(e2.value) || i2.value)
1121
+ if (!b2.wasMoved(t3) || e2.disabled || null != (l3 = a2.virtual.value) && l3.disabled(e2.value) || i2.value)
1122
1122
  return;
1123
1123
  let n3 = a2.calculateIndex(e2.value);
1124
1124
  a2.goToOption(mt.Specific, n3, 0);
1125
1125
  }
1126
1126
  function w2(t3) {
1127
1127
  var l3;
1128
- y2.wasMoved(t3) && (e2.disabled || null != (l3 = a2.virtual.value) && l3.disabled(e2.value) || i2.value && (a2.optionsPropsRef.value.hold || a2.goToOption(mt.Nothing)));
1128
+ b2.wasMoved(t3) && (e2.disabled || null != (l3 = a2.virtual.value) && l3.disabled(e2.value) || i2.value && (a2.optionsPropsRef.value.hold || a2.goToOption(mt.Nothing)));
1129
1129
  }
1130
1130
  return () => {
1131
1131
  let { disabled: n3 } = e2, a3 = { active: i2.value, selected: d2.value, disabled: n3 };
@@ -1137,8 +1137,8 @@ function Bt(e2, t2, l2, n2) {
1137
1137
  (e2 = null != e2 ? e2 : window).addEventListener(t2, l2, n2), a2(() => e2.removeEventListener(t2, l2, n2));
1138
1138
  });
1139
1139
  }
1140
- var Lt = ((e2) => (e2[e2.Forwards = 0] = "Forwards", e2[e2.Backwards = 1] = "Backwards", e2))(Lt || {});
1141
- function At(e2) {
1140
+ var At = ((e2) => (e2[e2.Forwards = 0] = "Forwards", e2[e2.Backwards = 1] = "Backwards", e2))(At || {});
1141
+ function Lt(e2) {
1142
1142
  if (!e2)
1143
1143
  return /* @__PURE__ */ new Set();
1144
1144
  if ("function" == typeof e2)
@@ -1155,11 +1155,11 @@ let Nt = Object.assign(w({ name: "FocusTrap", props: { as: { type: [Object, Stri
1155
1155
  let a2 = s(null);
1156
1156
  n2({ el: a2, $el: a2 });
1157
1157
  let o2 = u(() => De(a2)), r2 = s(false);
1158
- b(() => r2.value = true), O(() => r2.value = false), function({ ownerDocument: e3 }, t3) {
1158
+ y(() => r2.value = true), O(() => r2.value = false), function({ ownerDocument: e3 }, t3) {
1159
1159
  let l3 = function(e4) {
1160
1160
  let t4 = s(ft.slice());
1161
1161
  return p([e4], ([e5], [l4]) => {
1162
- true === l4 && false === e5 ? bt(() => {
1162
+ true === l4 && false === e5 ? yt(() => {
1163
1163
  t4.value.splice(0);
1164
1164
  }) : false === l4 && true === e5 && (t4.value = ft.slice());
1165
1165
  }, { flush: "post" }), () => {
@@ -1167,7 +1167,7 @@ let Nt = Object.assign(w({ name: "FocusTrap", props: { as: { type: [Object, Stri
1167
1167
  return null != (e5 = t4.value.find((e6) => null != e6 && e6.isConnected)) ? e5 : null;
1168
1168
  };
1169
1169
  }(t3);
1170
- b(() => {
1170
+ y(() => {
1171
1171
  v(() => {
1172
1172
  var n3, a3;
1173
1173
  t3.value || (null == (n3 = e3.value) ? void 0 : n3.activeElement) === (null == (a3 = e3.value) ? void 0 : a3.body) && Ne(l3());
@@ -1178,12 +1178,12 @@ let Nt = Object.assign(w({ name: "FocusTrap", props: { as: { type: [Object, Stri
1178
1178
  }({ ownerDocument: o2 }, u(() => r2.value && Boolean(16 & e2.features)));
1179
1179
  let i2 = function({ ownerDocument: e3, container: t3, initialFocus: l3 }, n3) {
1180
1180
  let a3 = s(null), o3 = s(false);
1181
- return b(() => o3.value = true), O(() => o3.value = false), b(() => {
1181
+ return y(() => o3.value = true), O(() => o3.value = false), y(() => {
1182
1182
  p([t3, l3, n3], (r3, i3) => {
1183
1183
  if (r3.every((e4, t4) => (null == i3 ? void 0 : i3[t4]) === e4) || !n3.value)
1184
1184
  return;
1185
1185
  let s2 = Ce(t3);
1186
- s2 && bt(() => {
1186
+ s2 && yt(() => {
1187
1187
  var t4, n4;
1188
1188
  if (!o3.value)
1189
1189
  return;
@@ -1203,7 +1203,7 @@ let Nt = Object.assign(w({ name: "FocusTrap", props: { as: { type: [Object, Stri
1203
1203
  Bt(null == (o3 = e3.value) ? void 0 : o3.defaultView, "focus", (e4) => {
1204
1204
  if (!a3.value)
1205
1205
  return;
1206
- let o4 = At(l3);
1206
+ let o4 = Lt(l3);
1207
1207
  Ce(t3) instanceof HTMLElement && o4.add(Ce(t3));
1208
1208
  let r3 = n3.value;
1209
1209
  if (!r3)
@@ -1220,9 +1220,9 @@ let Nt = Object.assign(w({ name: "FocusTrap", props: { as: { type: [Object, Stri
1220
1220
  }();
1221
1221
  function c2(e3) {
1222
1222
  let t3 = Ce(a2);
1223
- t3 && Oe(d2.value, { [Lt.Forwards]: () => {
1223
+ t3 && Oe(d2.value, { [At.Forwards]: () => {
1224
1224
  He(t3, _e.First, { skipElements: [e3.relatedTarget] });
1225
- }, [Lt.Backwards]: () => {
1225
+ }, [At.Backwards]: () => {
1226
1226
  He(t3, _e.Last, { skipElements: [e3.relatedTarget] });
1227
1227
  } });
1228
1228
  }
@@ -1235,10 +1235,10 @@ let Nt = Object.assign(w({ name: "FocusTrap", props: { as: { type: [Object, Stri
1235
1235
  function m2(t3) {
1236
1236
  if (!r2.value)
1237
1237
  return;
1238
- let l3 = At(e2.containers);
1238
+ let l3 = Lt(e2.containers);
1239
1239
  Ce(a2) instanceof HTMLElement && l3.add(Ce(a2));
1240
1240
  let n3 = t3.relatedTarget;
1241
- n3 instanceof HTMLElement && "true" !== n3.dataset.headlessuiFocusGuard && (zt(l3, n3) || (g2.value ? He(Ce(a2), Oe(d2.value, { [Lt.Forwards]: () => _e.Next, [Lt.Backwards]: () => _e.Previous }) | _e.WrapAround, { relativeTo: t3.target }) : t3.target instanceof HTMLElement && Ne(t3.target)));
1241
+ 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)));
1242
1242
  }
1243
1243
  return () => {
1244
1244
  let n3 = { ref: a2, onKeydown: f2, onFocusout: m2 }, { features: o3, initialFocus: r3, containers: i3, ...s2 } = e2;
@@ -1276,7 +1276,7 @@ let Vt = function(e2, t2) {
1276
1276
  } };
1277
1277
  }(() => /* @__PURE__ */ new Map(), { PUSH(e2, t2) {
1278
1278
  var l2;
1279
- let n2 = null != (l2 = this.get(e2)) ? l2 : { doc: e2, count: 0, d: yt(), meta: /* @__PURE__ */ new Set() };
1279
+ let n2 = null != (l2 = this.get(e2)) ? l2 : { doc: e2, count: 0, d: bt(), meta: /* @__PURE__ */ new Set() };
1280
1280
  return n2.count++, n2.meta.add(t2), this.set(e2, n2), this;
1281
1281
  }, POP(e2, t2) {
1282
1282
  let l2 = this.get(e2);
@@ -1289,7 +1289,7 @@ let Vt = function(e2, t2) {
1289
1289
  t3.microTask(() => {
1290
1290
  var l4;
1291
1291
  if ("auto" !== window.getComputedStyle(e3.documentElement).scrollBehavior) {
1292
- let l5 = yt();
1292
+ let l5 = bt();
1293
1293
  l5.style(e3.documentElement, "scrollBehavior", "auto"), t3.add(() => t3.microTask(() => l5.dispose()));
1294
1294
  }
1295
1295
  let a3 = null != (l4 = window.scrollY) ? l4 : window.pageYOffset, o2 = null;
@@ -1403,7 +1403,7 @@ function Qt({ type: e2, enabled: t2, element: l2, onUpdate: n2 }) {
1403
1403
  function o2(...e3) {
1404
1404
  null == n2 || n2(...e3), a2(...e3);
1405
1405
  }
1406
- b(() => {
1406
+ y(() => {
1407
1407
  p(t2, (t3, n3) => {
1408
1408
  t3 ? o2(0, e2, l2) : true === n3 && o2(1, e2, l2);
1409
1409
  }, { immediate: true, flush: "sync" });
@@ -1428,7 +1428,7 @@ w({ name: "Description", props: { as: { type: [Object, String], default: "p" },
1428
1428
  throw new Error("Missing parent");
1429
1429
  return e3;
1430
1430
  }();
1431
- return b(() => O(n2.register(e2.id))), () => {
1431
+ return y(() => O(n2.register(e2.id))), () => {
1432
1432
  let { name: a2 = "Description", slot: o2 = s({}), props: r2 = {} } = n2, { id: i2, ...u2 } = e2, c2 = { ...Object.entries(r2).reduce((e3, [t3, l3]) => Object.assign(e3, { [t3]: d(l3) }), {}), id: i2 };
1433
1433
  return tt({ ourProps: c2, theirProps: u2, slot: o2.value, attrs: t2, slots: l2, name: a2 });
1434
1434
  };
@@ -1447,7 +1447,7 @@ let ll = w({ name: "Portal", props: { as: { type: [Object, String], default: "di
1447
1447
  let n3 = t3.createElement("div");
1448
1448
  return n3.setAttribute("id", "headlessui-portal-root"), t3.body.appendChild(n3);
1449
1449
  }(n2.value) : r2.resolveTarget()), d2 = s(false);
1450
- b(() => {
1450
+ y(() => {
1451
1451
  d2.value = true;
1452
1452
  }), v(() => {
1453
1453
  o2 || null != r2 && (i2.value = r2.resolveTarget());
@@ -1489,10 +1489,10 @@ function sl(e2) {
1489
1489
  let ul = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", dl = w({ 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: () => `headlessui-dialog-${Se()}` }, role: { type: String, default: "dialog" } }, emits: { close: (e2) => true }, setup(e2, { emit: t2, attrs: l2, slots: n2, expose: a2 }) {
1490
1490
  var o2;
1491
1491
  let r2 = s(false);
1492
- b(() => {
1492
+ y(() => {
1493
1493
  r2.value = true;
1494
1494
  });
1495
- let i2 = false, d2 = u(() => "dialog" === e2.role || "alertdialog" === e2.role ? e2.role : (i2 || (i2 = true, console.warn(`Invalid role [${d2}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog")), c2 = s(0), p2 = ct(), g2 = u(() => e2.open === ul && null !== p2 ? (p2.value & dt.Open) === dt.Open : e2.open), f2 = s(null), y2 = u(() => De(f2));
1495
+ let i2 = false, d2 = u(() => "dialog" === e2.role || "alertdialog" === e2.role ? e2.role : (i2 || (i2 = true, console.warn(`Invalid role [${d2}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog")), c2 = s(0), p2 = ct(), g2 = u(() => e2.open === ul && null !== p2 ? (p2.value & dt.Open) === dt.Open : e2.open), f2 = s(null), b2 = u(() => De(f2));
1496
1496
  if (a2({ el: f2, $el: f2 }), e2.open === ul && null === p2)
1497
1497
  throw new Error("You forgot to provide an `open` prop to the `Dialog`.");
1498
1498
  if ("boolean" != typeof g2.value)
@@ -1530,14 +1530,14 @@ let ul = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", dl = w({ name: "Dialog", inheri
1530
1530
  return null != (e3 = z2.panelRef.value) ? e3 : f2.value;
1531
1531
  })] }), P2 = u(() => O2.value ? "parent" : "leaf"), j2 = u(() => null !== p2 && (p2.value & dt.Closing) === dt.Closing), R2 = u(() => !M2 && !j2.value && C2.value), B2 = u(() => {
1532
1532
  var e3, t3, l3;
1533
- return null != (l3 = Array.from(null != (t3 = null == (e3 = y2.value) ? void 0 : e3.querySelectorAll("body > *")) ? t3 : []).find((e4) => "headlessui-portal-root" !== e4.id && (e4.contains(Ce(I2)) && e4 instanceof HTMLElement))) ? l3 : null;
1533
+ return null != (l3 = Array.from(null != (t3 = null == (e3 = b2.value) ? void 0 : e3.querySelectorAll("body > *")) ? t3 : []).find((e4) => "headlessui-portal-root" !== e4.id && (e4.contains(Ce(I2)) && e4 instanceof HTMLElement))) ? l3 : null;
1534
1534
  });
1535
1535
  Wt(B2, R2);
1536
- let L2 = u(() => !!O2.value || C2.value), A2 = u(() => {
1536
+ let A2 = u(() => !!O2.value || C2.value), L2 = u(() => {
1537
1537
  var e3, t3, l3;
1538
- return null != (l3 = Array.from(null != (t3 = null == (e3 = y2.value) ? void 0 : e3.querySelectorAll("[data-headlessui-portal]")) ? t3 : []).find((e4) => e4.contains(Ce(I2)) && e4 instanceof HTMLElement)) ? l3 : null;
1538
+ return null != (l3 = Array.from(null != (t3 = null == (e3 = b2.value) ? void 0 : e3.querySelectorAll("[data-headlessui-portal]")) ? t3 : []).find((e4) => e4.contains(Ce(I2)) && e4 instanceof HTMLElement)) ? l3 : null;
1539
1539
  });
1540
- Wt(A2, L2), Qt({ type: "Dialog", enabled: u(() => 0 === x2.value), element: f2, onUpdate: (e3, t3) => {
1540
+ Wt(L2, A2), Qt({ type: "Dialog", enabled: u(() => 0 === x2.value), element: f2, onUpdate: (e3, t3) => {
1541
1541
  if ("Dialog" === t3)
1542
1542
  return Oe(e3, { [Xt.Add]: () => c2.value += 1, [Xt.Remove]: () => c2.value -= 1 });
1543
1543
  } });
@@ -1552,11 +1552,11 @@ let ul = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", dl = w({ name: "Dialog", inheri
1552
1552
  z2.close(), m(() => null == t3 ? void 0 : t3.focus());
1553
1553
  }, $2);
1554
1554
  let H2 = u(() => !(O2.value || 0 !== x2.value));
1555
- Bt(null == (o2 = y2.value) ? void 0 : o2.defaultView, "keydown", (e3) => {
1555
+ Bt(null == (o2 = b2.value) ? void 0 : o2.defaultView, "keydown", (e3) => {
1556
1556
  H2.value && (e3.defaultPrevented || e3.key === gt.Escape && (e3.preventDefault(), e3.stopPropagation(), z2.close()));
1557
1557
  });
1558
1558
  let V2 = u(() => !(j2.value || 0 !== x2.value || M2));
1559
- return Yt(y2, V2, (e3) => {
1559
+ return Yt(b2, V2, (e3) => {
1560
1560
  var t3;
1561
1561
  return { containers: [...null != (t3 = e3.containers) ? t3 : [], D2] };
1562
1562
  }), v((e3) => {
@@ -1588,7 +1588,7 @@ w({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div"
1588
1588
  };
1589
1589
  } }), w({ name: "DialogBackdrop", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: () => `headlessui-dialog-backdrop-${Se()}` } }, inheritAttrs: false, setup(e2, { attrs: t2, slots: l2, expose: n2 }) {
1590
1590
  let a2 = sl("DialogBackdrop"), o2 = s(null);
1591
- return n2({ el: o2, $el: o2 }), b(() => {
1591
+ return n2({ el: o2, $el: o2 }), y(() => {
1592
1592
  if (null === a2.panelRef.value)
1593
1593
  throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.");
1594
1594
  }), () => {
@@ -1607,7 +1607,7 @@ let cl = w({ name: "DialogPanel", props: { as: { type: [Object, String], default
1607
1607
  };
1608
1608
  } }), pl = w({ name: "DialogTitle", props: { as: { type: [Object, String], default: "h2" }, id: { type: String, default: () => `headlessui-dialog-title-${Se()}` } }, setup(e2, { attrs: t2, slots: l2 }) {
1609
1609
  let n2 = sl("DialogTitle");
1610
- return b(() => {
1610
+ return y(() => {
1611
1611
  n2.setTitleId(e2.id), O(() => n2.setTitleId(null));
1612
1612
  }), () => {
1613
1613
  let { id: a2, ...o2 } = e2;
@@ -1625,7 +1625,7 @@ function ml(e2) {
1625
1625
  return t2;
1626
1626
  }
1627
1627
  let vl = Symbol("DisclosurePanelContext");
1628
- let bl = w({ name: "Disclosure", props: { as: { type: [Object, String], default: "template" }, defaultOpen: { type: [Boolean], default: false } }, setup(e2, { slots: t2, attrs: l2 }) {
1628
+ let yl = w({ name: "Disclosure", props: { as: { type: [Object, String], default: "template" }, defaultOpen: { type: [Boolean], default: false } }, setup(e2, { slots: t2, attrs: l2 }) {
1629
1629
  let n2 = s(e2.defaultOpen ? 0 : 1), a2 = s(null), o2 = s(null), r2 = { buttonId: s(`headlessui-disclosure-button-${Se()}`), panelId: s(`headlessui-disclosure-panel-${Se()}`), disclosureState: n2, panel: a2, button: o2, toggleDisclosure() {
1630
1630
  n2.value = Oe(n2.value, { 0: 1, 1: 0 });
1631
1631
  }, closeDisclosure() {
@@ -1639,9 +1639,9 @@ let bl = w({ name: "Disclosure", props: { as: { type: [Object, String], default:
1639
1639
  let { defaultOpen: a3, ...o3 } = e2;
1640
1640
  return tt({ theirProps: o3, ourProps: {}, slot: { open: 0 === n2.value, close: r2.close }, slots: t2, attrs: l2, name: "Disclosure" });
1641
1641
  };
1642
- } }), yl = w({ name: "DisclosureButton", props: { as: { type: [Object, String], default: "button" }, disabled: { type: [Boolean], default: false }, id: { type: String, default: null } }, setup(e2, { attrs: t2, slots: l2, expose: n2 }) {
1642
+ } }), bl = w({ name: "DisclosureButton", props: { as: { type: [Object, String], default: "button" }, disabled: { type: [Boolean], default: false }, id: { type: String, default: null } }, setup(e2, { attrs: t2, slots: l2, expose: n2 }) {
1643
1643
  let a2 = ml("DisclosureButton"), o2 = k(vl, null), r2 = u(() => null !== o2 && o2.value === a2.panelId.value);
1644
- b(() => {
1644
+ y(() => {
1645
1645
  r2.value || null !== e2.id && (a2.buttonId.value = e2.id);
1646
1646
  }), O(() => {
1647
1647
  r2.value || (a2.buttonId.value = null);
@@ -1682,7 +1682,7 @@ let bl = w({ name: "Disclosure", props: { as: { type: [Object, String], default:
1682
1682
  };
1683
1683
  } }), hl = w({ name: "DisclosurePanel", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: false }, unmount: { type: Boolean, default: true }, id: { type: String, default: null } }, setup(e2, { attrs: t2, slots: l2, expose: n2 }) {
1684
1684
  let a2 = ml("DisclosurePanel");
1685
- b(() => {
1685
+ y(() => {
1686
1686
  null !== e2.id && (a2.panelId.value = e2.id);
1687
1687
  }), O(() => {
1688
1688
  a2.panelId.value = null;
@@ -1776,7 +1776,7 @@ let Tl = w({ name: "Menu", props: { as: { type: [Object, String], default: "temp
1776
1776
  } };
1777
1777
  return We([a2, o2], (e3, t3) => {
1778
1778
  var l3;
1779
- g2.closeMenu(), Le(t3, Be.Loose) || (e3.preventDefault(), null == (l3 = Ce(a2)) || l3.focus());
1779
+ g2.closeMenu(), Ae(t3, Be.Loose) || (e3.preventDefault(), null == (l3 = Ce(a2)) || l3.focus());
1780
1780
  }, u(() => 0 === n2.value)), S(Ol, g2), pt(u(() => Oe(n2.value, { 0: dt.Open, 1: dt.Closed }))), () => {
1781
1781
  let a3 = { open: 0 === n2.value, close: g2.closeMenu };
1782
1782
  return tt({ ourProps: {}, theirProps: e2, slot: a3, slots: t2, attrs: l2, name: "Menu" });
@@ -1834,7 +1834,7 @@ let Tl = w({ name: "Menu", props: { as: { type: [Object, String], default: "temp
1834
1834
  if (e3.preventDefault(), e3.stopPropagation(), null !== a2.activeItemIndex.value) {
1835
1835
  null == (t3 = Ce(a2.items.value[a2.activeItemIndex.value].dataRef.domRef)) || t3.click();
1836
1836
  }
1837
- a2.closeMenu(), Ae(Ce(a2.buttonRef));
1837
+ a2.closeMenu(), Le(Ce(a2.buttonRef));
1838
1838
  break;
1839
1839
  case gt.ArrowDown:
1840
1840
  return e3.preventDefault(), e3.stopPropagation(), a2.goToItem(mt.Next);
@@ -1883,14 +1883,14 @@ let Tl = w({ name: "Menu", props: { as: { type: [Object, String], default: "temp
1883
1883
  function c2(t3) {
1884
1884
  if (e2.disabled)
1885
1885
  return t3.preventDefault();
1886
- a2.closeMenu(), Ae(Ce(a2.buttonRef));
1886
+ a2.closeMenu(), Le(Ce(a2.buttonRef));
1887
1887
  }
1888
1888
  function p2() {
1889
1889
  if (e2.disabled)
1890
1890
  return a2.goToItem(mt.Nothing);
1891
1891
  a2.goToItem(mt.Specific, e2.id);
1892
1892
  }
1893
- b(() => a2.registerItem(e2.id, d2)), O(() => a2.unregisterItem(e2.id)), v(() => {
1893
+ y(() => a2.registerItem(e2.id, d2)), O(() => a2.unregisterItem(e2.id)), v(() => {
1894
1894
  0 === a2.menuState.value && r2.value && 0 !== a2.activationTrigger.value && m(() => {
1895
1895
  var e3, t3;
1896
1896
  return null == (t3 = null == (e3 = Ce(o2)) ? void 0 : e3.scrollIntoView) ? void 0 : t3.call(e3, { block: "nearest" });
@@ -1900,7 +1900,7 @@ let Tl = w({ name: "Menu", props: { as: { type: [Object, String], default: "temp
1900
1900
  function f2(e3) {
1901
1901
  g2.update(e3);
1902
1902
  }
1903
- function y2(t3) {
1903
+ function b2(t3) {
1904
1904
  g2.wasMoved(t3) && (e2.disabled || r2.value || a2.goToItem(mt.Specific, e2.id, 0));
1905
1905
  }
1906
1906
  function h2(t3) {
@@ -1908,7 +1908,7 @@ let Tl = w({ name: "Menu", props: { as: { type: [Object, String], default: "temp
1908
1908
  }
1909
1909
  return () => {
1910
1910
  let { disabled: n3 } = e2, i3 = { active: r2.value, disabled: n3, close: a2.closeMenu }, { id: s2, ...u2 } = e2;
1911
- return tt({ ourProps: { id: s2, ref: o2, role: "menuitem", tabIndex: true === n3 ? void 0 : -1, "aria-disabled": true === n3 || void 0, disabled: void 0, onClick: c2, onFocus: p2, onPointerenter: f2, onMouseenter: f2, onPointermove: y2, onMousemove: y2, onPointerleave: h2, onMouseleave: h2 }, theirProps: { ...l2, ...u2 }, slot: i3, attrs: l2, slots: t2, name: "MenuItem" });
1911
+ return tt({ ourProps: { id: s2, ref: o2, role: "menuitem", tabIndex: true === n3 ? void 0 : -1, "aria-disabled": true === n3 || void 0, disabled: void 0, onClick: c2, onFocus: p2, onPointerenter: f2, onMouseenter: f2, onPointermove: b2, onMousemove: b2, onPointerleave: h2, onMouseleave: h2 }, theirProps: { ...l2, ...u2 }, slot: i3, attrs: l2, slots: t2, name: "MenuItem" });
1912
1912
  };
1913
1913
  } }), _l = Symbol("LabelContext");
1914
1914
  function Pl() {
@@ -1930,11 +1930,11 @@ function jl({ slot: e2 = {}, name: t2 = "Label", props: l2 = {} } = {}) {
1930
1930
  }
1931
1931
  let Rl = w({ name: "Label", props: { as: { type: [Object, String], default: "label" }, passive: { type: [Boolean], default: false }, id: { type: String, default: () => `headlessui-label-${Se()}` } }, setup(e2, { slots: t2, attrs: l2 }) {
1932
1932
  let n2 = Pl();
1933
- return b(() => O(n2.register(e2.id))), () => {
1933
+ return y(() => O(n2.register(e2.id))), () => {
1934
1934
  let { name: a2 = "Label", slot: o2 = {}, props: r2 = {} } = n2, { id: i2, passive: s2, ...u2 } = e2, c2 = { ...Object.entries(r2).reduce((e3, [t3, l3]) => Object.assign(e3, { [t3]: d(l3) }), {}), id: i2 };
1935
1935
  return s2 && (delete c2.onClick, delete c2.htmlFor, delete u2.onClick), tt({ ourProps: c2, theirProps: u2, slot: o2, attrs: l2, slots: t2, name: a2 });
1936
1936
  };
1937
- } }), Bl = Symbol("GroupContext"), Ll = w({ name: "SwitchGroup", props: { as: { type: [Object, String], default: "template" } }, setup(e2, { slots: t2, attrs: l2 }) {
1937
+ } }), Bl = Symbol("GroupContext"), Al = w({ name: "SwitchGroup", props: { as: { type: [Object, String], default: "template" } }, setup(e2, { slots: t2, attrs: l2 }) {
1938
1938
  let n2 = s(null), a2 = jl({ name: "SwitchLabel", props: { htmlFor: u(() => {
1939
1939
  var e3;
1940
1940
  return null == (e3 = n2.value) ? void 0 : e3.id;
@@ -1942,7 +1942,7 @@ let Rl = w({ name: "Label", props: { as: { type: [Object, String], default: "lab
1942
1942
  n2.value && ("LABEL" === e3.currentTarget.tagName && e3.preventDefault(), n2.value.click(), n2.value.focus({ preventScroll: true }));
1943
1943
  } } }), o2 = tl({ name: "SwitchDescription" });
1944
1944
  return S(Bl, { switchRef: n2, labelledby: a2, describedby: o2 }), () => tt({ theirProps: e2, ourProps: {}, slot: {}, slots: t2, attrs: l2, name: "SwitchGroup" });
1945
- } }), Al = w({ name: "Switch", emits: { "update:modelValue": (e2) => true }, props: { as: { type: [Object, String], default: "button" }, modelValue: { type: Boolean, default: void 0 }, defaultChecked: { type: Boolean, optional: true }, form: { type: String, optional: true }, name: { type: String, optional: true }, value: { type: String, optional: true }, id: { type: String, default: () => `headlessui-switch-${Se()}` } }, inheritAttrs: false, setup(e2, { emit: t2, attrs: l2, slots: n2, expose: a2 }) {
1945
+ } }), Ll = w({ name: "Switch", emits: { "update:modelValue": (e2) => true }, props: { as: { type: [Object, String], default: "button" }, modelValue: { type: Boolean, default: void 0 }, defaultChecked: { type: Boolean, optional: true }, form: { type: String, optional: true }, name: { type: String, optional: true }, value: { type: String, optional: true }, id: { type: String, default: () => `headlessui-switch-${Se()}` } }, inheritAttrs: false, setup(e2, { emit: t2, attrs: l2, slots: n2, expose: a2 }) {
1946
1946
  let o2 = k(Bl, null), [r2, i2] = we(u(() => e2.modelValue), (e3) => t2("update:modelValue", e3), u(() => e2.defaultChecked));
1947
1947
  function d2() {
1948
1948
  i2(!r2.value);
@@ -1963,7 +1963,7 @@ let Rl = w({ name: "Label", props: { as: { type: [Object, String], default: "lab
1963
1963
  }
1964
1964
  }(e3.currentTarget);
1965
1965
  }
1966
- function y2(e3) {
1966
+ function b2(e3) {
1967
1967
  e3.preventDefault();
1968
1968
  }
1969
1969
  a2({ el: g2, $el: g2 });
@@ -1971,7 +1971,7 @@ let Rl = w({ name: "Label", props: { as: { type: [Object, String], default: "lab
1971
1971
  var e3, t3;
1972
1972
  return null == (t3 = null == (e3 = Ce(g2)) ? void 0 : e3.closest) ? void 0 : t3.call(e3, "form");
1973
1973
  });
1974
- return b(() => {
1974
+ return y(() => {
1975
1975
  p([w2], () => {
1976
1976
  if (w2.value && void 0 !== e2.defaultChecked)
1977
1977
  return w2.value.addEventListener("reset", t3), () => {
@@ -1983,7 +1983,7 @@ let Rl = w({ name: "Label", props: { as: { type: [Object, String], default: "lab
1983
1983
  }
1984
1984
  }, { immediate: true });
1985
1985
  }), () => {
1986
- let { id: t3, name: a3, value: i3, form: s2, ...u2 } = e2, d3 = { checked: r2.value }, c3 = { id: t3, ref: g2, role: "switch", type: f2.value, tabIndex: 0, "aria-checked": r2.value, "aria-labelledby": null == o2 ? void 0 : o2.labelledby.value, "aria-describedby": null == o2 ? void 0 : o2.describedby.value, onClick: m2, onKeyup: v2, onKeypress: y2 };
1986
+ let { id: t3, name: a3, value: i3, form: s2, ...u2 } = e2, d3 = { checked: r2.value }, c3 = { id: t3, ref: g2, role: "switch", type: f2.value, tabIndex: 0, "aria-checked": r2.value, "aria-labelledby": null == o2 ? void 0 : o2.labelledby.value, "aria-describedby": null == o2 ? void 0 : o2.describedby.value, onClick: m2, onKeyup: v2, onKeypress: b2 };
1987
1987
  return h(x, [null != a3 && null != r2.value ? h(st, ot({ features: it.Hidden, as: "input", type: "checkbox", hidden: true, readOnly: true, checked: r2.value, form: s2, name: a3, value: i3 })) : null, tt({ ourProps: c3, theirProps: { ...l2, ...rt(u2, ["modelValue", "defaultChecked"]) }, slot: d3, attrs: l2, slots: n2, name: "Switch" })]);
1988
1988
  };
1989
1989
  } }), Fl = Rl;
@@ -1995,7 +1995,7 @@ function zl(e2, ...t2) {
1995
1995
  }
1996
1996
  var $l = ((e2) => (e2.Finished = "finished", e2.Cancelled = "cancelled", e2))($l || {});
1997
1997
  function Hl(e2, t2, l2, n2, a2, o2) {
1998
- let r2 = yt(), i2 = void 0 !== o2 ? function(e3) {
1998
+ let r2 = bt(), i2 = void 0 !== o2 ? function(e3) {
1999
1999
  let t3 = { called: false };
2000
2000
  return (...l3) => {
2001
2001
  if (!t3.called)
@@ -2005,7 +2005,7 @@ function Hl(e2, t2, l2, n2, a2, o2) {
2005
2005
  };
2006
2006
  return zl(e2, ...a2), Nl(e2, ...t2, ...l2), r2.nextFrame(() => {
2007
2007
  zl(e2, ...l2), Nl(e2, ...n2), r2.add(function(e3, t3) {
2008
- let l3 = yt();
2008
+ let l3 = bt();
2009
2009
  if (!e3)
2010
2010
  return l3.dispose;
2011
2011
  let { transitionDuration: n3, transitionDelay: a3 } = getComputedStyle(e3), [o3, r3] = [n3, a3].map((e4) => {
@@ -2035,7 +2035,7 @@ function Kl(e2) {
2035
2035
  t2.value[o2].state = "hidden";
2036
2036
  } }), !Wl(t2) && l2.value && (null == e2 || e2()));
2037
2037
  }
2038
- return b(() => l2.value = true), O(() => l2.value = false), { children: t2, register: function(e3) {
2038
+ return y(() => l2.value = true), O(() => l2.value = false), { children: t2, register: function(e3) {
2039
2039
  let l3 = t2.value.find(({ id: t3 }) => t3 === e3);
2040
2040
  return l3 ? "visible" !== l3.state && (l3.state = "visible") : t2.value.push({ id: e3, state: "visible" }), () => n2(e3, et.Unmount);
2041
2041
  }, unregister: n2 };
@@ -2058,7 +2058,7 @@ let Jl = Qe.RenderStrategy, Gl = w({ props: { as: { type: [Object, String], defa
2058
2058
  return () => h(Xl, { ...e2, onBeforeEnter: i2, onAfterEnter: d2, onBeforeLeave: c2, onAfterLeave: g2 }, a2);
2059
2059
  let f2 = s(null), m2 = u(() => e2.unmount ? et.Unmount : et.Hidden);
2060
2060
  o2({ el: f2, $el: f2 });
2061
- let { show: y2, appear: x2 } = function() {
2061
+ let { show: b2, appear: x2 } = function() {
2062
2062
  let e3 = k(Yl, null);
2063
2063
  if (null === e3)
2064
2064
  throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");
@@ -2068,21 +2068,21 @@ let Jl = Qe.RenderStrategy, Gl = w({ props: { as: { type: [Object, String], defa
2068
2068
  if (null === e3)
2069
2069
  throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");
2070
2070
  return e3;
2071
- }(), M2 = s(y2.value ? "visible" : "hidden"), T2 = { value: true }, E2 = Se(), D2 = { value: false }, I2 = Kl(() => {
2071
+ }(), M2 = s(b2.value ? "visible" : "hidden"), T2 = { value: true }, E2 = Se(), D2 = { value: false }, I2 = Kl(() => {
2072
2072
  !D2.value && "hidden" !== M2.value && (M2.value = "hidden", C2(E2), g2());
2073
2073
  });
2074
- b(() => {
2074
+ y(() => {
2075
2075
  let e3 = w2(E2);
2076
2076
  O(e3);
2077
2077
  }), v(() => {
2078
2078
  if (m2.value === et.Hidden && E2) {
2079
- if (y2.value && "visible" !== M2.value)
2079
+ if (b2.value && "visible" !== M2.value)
2080
2080
  return void (M2.value = "visible");
2081
2081
  Oe(M2.value, { hidden: () => C2(E2), visible: () => w2(E2) });
2082
2082
  }
2083
2083
  });
2084
- let _2 = Vl(e2.enter), P2 = Vl(e2.enterFrom), j2 = Vl(e2.enterTo), R2 = Vl(e2.entered), B2 = Vl(e2.leave), L2 = Vl(e2.leaveFrom), A2 = Vl(e2.leaveTo);
2085
- return b(() => {
2084
+ let _2 = Vl(e2.enter), P2 = Vl(e2.enterFrom), j2 = Vl(e2.enterTo), R2 = Vl(e2.entered), B2 = Vl(e2.leave), A2 = Vl(e2.leaveFrom), L2 = Vl(e2.leaveTo);
2085
+ return y(() => {
2086
2086
  v(() => {
2087
2087
  if ("visible" === M2.value) {
2088
2088
  let e3 = Ce(f2);
@@ -2090,20 +2090,20 @@ let Jl = Qe.RenderStrategy, Gl = w({ props: { as: { type: [Object, String], defa
2090
2090
  throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
2091
2091
  }
2092
2092
  });
2093
- }), b(() => {
2094
- p([y2], (e3, t3, l3) => {
2093
+ }), y(() => {
2094
+ p([b2], (e3, t3, l3) => {
2095
2095
  (function(e4) {
2096
2096
  let t4 = T2.value && !x2.value, l4 = Ce(f2);
2097
- !l4 || !(l4 instanceof HTMLElement) || t4 || (D2.value = true, y2.value && i2(), y2.value || c2(), e4(y2.value ? Hl(l4, _2, P2, j2, R2, (e5) => {
2097
+ !l4 || !(l4 instanceof HTMLElement) || t4 || (D2.value = true, b2.value && i2(), b2.value || c2(), e4(b2.value ? Hl(l4, _2, P2, j2, R2, (e5) => {
2098
2098
  D2.value = false, e5 === $l.Finished && d2();
2099
- }) : Hl(l4, B2, L2, A2, R2, (e5) => {
2099
+ }) : Hl(l4, B2, A2, L2, R2, (e5) => {
2100
2100
  D2.value = false, e5 === $l.Finished && (Wl(I2) || (M2.value = "hidden", C2(E2), g2()));
2101
2101
  })));
2102
2102
  })(l3), T2.value = false;
2103
2103
  }, { immediate: true });
2104
2104
  }), S(ql, I2), pt(u(() => Oe(M2.value, { visible: dt.Open, hidden: dt.Closed }) | r2.value)), () => {
2105
2105
  let { appear: t3, show: o3, enter: r3, enterFrom: i3, enterTo: s2, entered: u2, leave: d3, leaveFrom: c3, leaveTo: p2, ...g3 } = e2, m3 = { ref: f2 };
2106
- return tt({ theirProps: { ...g3, ...x2.value && y2.value && Ee.isServer ? { class: n([l2.class, g3.class, ..._2, ...P2]) } : {} }, ourProps: m3, slot: {}, slots: a2, attrs: l2, features: Jl, visible: "visible" === M2.value, name: "TransitionChild" });
2106
+ return tt({ theirProps: { ...g3, ...x2.value && b2.value && Ee.isServer ? { class: n([l2.class, g3.class, ..._2, ...P2]) } : {} }, ourProps: m3, slot: {}, slots: a2, attrs: l2, features: Jl, visible: "visible" === M2.value, name: "TransitionChild" });
2107
2107
  };
2108
2108
  } }), Zl = Gl, Xl = w({ inheritAttrs: false, props: { as: { type: [Object, String], default: "div" }, show: { type: [Boolean], default: null }, unmount: { type: [Boolean], default: true }, appear: { type: [Boolean], default: false }, enter: { type: [String], default: "" }, enterFrom: { type: [String], default: "" }, enterTo: { type: [String], default: "" }, entered: { type: [String], default: "" }, leave: { type: [String], default: "" }, leaveFrom: { type: [String], default: "" }, leaveTo: { type: [String], default: "" } }, emits: { beforeEnter: () => true, afterEnter: () => true, beforeLeave: () => true, afterLeave: () => true }, setup(e2, { emit: t2, attrs: l2, slots: n2 }) {
2109
2109
  let a2 = ct(), o2 = u(() => null === e2.show && null !== a2 ? (a2.value & dt.Open) === dt.Open : e2.show);
@@ -2114,7 +2114,7 @@ let Jl = Qe.RenderStrategy, Gl = w({ props: { as: { type: [Object, String], defa
2114
2114
  let r2 = s(o2.value ? "visible" : "hidden"), i2 = Kl(() => {
2115
2115
  r2.value = "hidden";
2116
2116
  }), d2 = s(true), c2 = { show: o2, appear: u(() => e2.appear || !d2.value) };
2117
- return b(() => {
2117
+ return y(() => {
2118
2118
  v(() => {
2119
2119
  d2.value = false, o2.value ? r2.value = "visible" : Wl(i2) || (r2.value = "hidden");
2120
2120
  });
@@ -2166,28 +2166,31 @@ function gn(t2, l2) {
2166
2166
  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" })]);
2167
2167
  }
2168
2168
  function fn(t2, l2) {
2169
- 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" })]);
2169
+ 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" })]);
2170
2170
  }
2171
2171
  function mn(t2, l2) {
2172
+ return e(), a("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", "aria-hidden": "true", "data-slot": "icon" }, [i("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "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" })]);
2173
+ }
2174
+ function vn(t2, l2) {
2172
2175
  return e(), a("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", "aria-hidden": "true", "data-slot": "icon" }, [i("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M6 18 18 6M6 6l12 12" })]);
2173
2176
  }
2174
- const vn = { class: "py-1" }, bn = ["onClick"], yn = { key: 1, class: "animate-pulse px-4 py-2 bg-gray-200 rounded-md flex inline-flex items-center relative inline-block text-left" }, hn = i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28" }, null, -1), xn = { name: "uiDropdown" }, wn = Object.assign(xn, { props: { items: { type: Array, required: true }, position: { type: String, default: "left" }, disabled: Boolean, label: String, loading: { type: Boolean, default: true } }, emits: ["optionSelected"], setup(l2, { emit: r2 }) {
2177
+ const yn = { class: "py-1" }, bn = ["onClick"], hn = { 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 }) {
2175
2178
  const s2 = r2, c2 = l2, p2 = u(() => {
2176
2179
  let e2 = c2.items.find((e3) => true === e3.active);
2177
2180
  return e2 ? e2.name : c2.label;
2178
2181
  });
2179
- return (r3, u2) => l2.loading ? (e(), a("div", yn, [hn, o(d(nn), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5 text-gray-200 dark:text-gray-300" })])) : (e(), t(d(Tl), { key: 0, as: "div", class: n(["relative inline-block text-left", { "opacity-25": l2.disabled }]) }, { default: D(() => [i("div", null, [o(d(El), { class: "inline-flex justify-between w-full rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-indigo-500" }, { default: D(() => [I(_(p2.value) + " ", 1), o(d(nn), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5" })]), _: 1 })]), o(P, { "enter-active-class": "transition ease-out duration-100", "enter-from-class": "transform opacity-0 scale-95", "enter-to-class": "transform opacity-100 scale-100", "leave-active-class": "transition ease-in duration-75", "leave-from-class": "transform opacity-100 scale-100", "leave-to-class": "transform opacity-0 scale-95" }, { default: D(() => [l2.disabled ? R("", true) : (e(), t(d(Dl), { key: 0, class: n([{ "right-0": "right" === l2.position, "left-0": "left" === l2.position }, "origin-top-right absolute mt-2 w-56 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none z-10"]) }, { default: D(() => [i("div", vn, [(e(true), a(x, null, j(l2.items, (l3, a2) => (e(), t(d(Il), { key: a2 }, { default: D(() => [i("a", { onClick: (e2) => ((e3) => {
2182
+ return (r3, u2) => l2.loading ? (e(), a("div", hn, [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(Tl), { key: 0, as: "div", class: n(["relative inline-block text-left", { "opacity-25": l2.disabled }]) }, { default: D(() => [i("div", null, [o(d(El), { class: "inline-flex justify-between w-full rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-indigo-500" }, { default: D(() => [I(_(p2.value) + " ", 1), o(d(nn), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5" })]), _: 1 })]), o(P, { "enter-active-class": "transition ease-out duration-100", "enter-from-class": "transform opacity-0 scale-95", "enter-to-class": "transform opacity-100 scale-100", "leave-active-class": "transition ease-in duration-75", "leave-from-class": "transform opacity-100 scale-100", "leave-to-class": "transform opacity-0 scale-95" }, { default: D(() => [l2.disabled ? R("", true) : (e(), t(d(Dl), { key: 0, class: n([{ "right-0": "right" === l2.position, "left-0": "left" === l2.position }, "origin-top-right absolute mt-2 w-56 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none z-10"]) }, { default: D(() => [i("div", yn, [(e(true), a(x, null, j(l2.items, (l3, a2) => (e(), t(d(Il), { key: a2 }, { default: D(() => [i("a", { onClick: (e2) => ((e3) => {
2180
2183
  c2.disabled || s2("optionSelected", e3.value);
2181
2184
  })(l3), class: n([l3.active ? "bg-gray-100 text-gray-900" : "text-gray-700", "block px-4 py-2 text-sm cursor-pointer"]) }, _(l3.name), 11, bn)]), _: 2 }, 1024))), 128))])]), _: 1 }, 8, ["class"]))]), _: 1 })]), _: 1 }, 8, ["class"]));
2182
- } }), kn = { key: 0 }, Sn = { class: "flex justify-between" }, Cn = { key: 0, class: "block text-sm font-medium text-gray-700" }, On = { key: 1, class: "text-[10px] text-gray-500 uppercase justify-self-end" }, Mn = ["disabled", "name", "placeholder", "type"], Tn = { key: 2, class: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none" }, En = { key: 1, class: "animate-pulse" }, Dn = { key: 0, class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/3 md:w-1/4 mb-1.5" }, In = i("div", { class: "animate-pulse px-4 py-3.5 bg-gray-200 rounded-md flex inline-flex items-center relative inline-block text-left w-full" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28" })], -1), _n = { name: "uiInput" }, Pn = Object.assign(_n, { props: { label: String, type: { type: String, default: "text" }, name: String, placeholder: { type: String, default: "..." }, icon: { type: Function, default: () => {
2185
+ } }), 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" }, Tn = ["disabled", "name", "placeholder", "type"], En = { key: 2, class: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none" }, Dn = { 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: () => {
2183
2186
  } }, disabled: Boolean, color: { type: String, default: "gray" }, value: { type: String, default: "" }, error: String, optional: String, addOn: String, rightAddOn: String, loading: { type: Boolean, default: true } }, emits: ["inputChanged", "rightAddOnClicked", "addOnClicked"], setup(t2, { emit: l2 }) {
2184
2187
  const r2 = l2, u2 = t2, c2 = (e2) => {
2185
2188
  r2("inputChanged", { value: e2.target.value, name: e2.target.name });
2186
2189
  }, g2 = s(u2.value);
2187
2190
  return p(() => u2.value, (e2) => {
2188
2191
  g2.value = e2, r2("inputChanged", { name: u2.name, value: g2.value });
2189
- }), (l3, r3) => t2.loading ? (e(), a("div", En, [void 0 !== t2.label ? (e(), a("div", Dn)) : R("", true), In])) : (e(), a("div", kn, [i("div", Sn, [t2.label ? (e(), a("label", Cn, _(t2.label), 1)) : R("", true), t2.optional ? (e(), a("span", On, _(t2.optional), 1)) : R("", true)]), i("div", { class: n([{ "mt-1": t2.label }, "relative flex"]) }, [t2.addOn ? (e(), a("span", { key: 0, onClick: r3[0] || (r3[0] = (e2) => l3.$emit("addOnClicked")), class: "inline-flex items-center px-3 rounded-l-md border border-r-0 border-gray-300 bg-gray-50 text-gray-500 sm:text-sm cursor-pointer" }, _(t2.addOn), 1)) : R("", true), B(i("input", { "onUpdate:modelValue": r3[1] || (r3[1] = (e2) => g2.value = e2), class: n([{ "border-gray-300": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "border-red-400": "danger" === t2.color, "border-yellow-400": "warning" === t2.color, "border-green-400": "success" === t2.color, "bg-gray-100": t2.disabled, "text-black": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "text-red-400": "danger" === t2.color, "text-yellow-400": "warning" === t2.color, "text-green-400": "success" === t2.color, "rounded-md": !t2.addOn || !t2.rightAddOn, "rounded-r-md": t2.addOn, "rounded-l-none": t2.addOn, "rounded-l-md": t2.rightAddOn, "rounded-r-none": t2.rightAddOn }, "shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 placeholder-gray-300"]), disabled: t2.disabled, name: t2.name, placeholder: t2.placeholder, type: t2.type, onInput: c2 }, null, 42, Mn), [[L, g2.value]]), t2.rightAddOn ? (e(), a("span", { key: 1, onClick: r3[2] || (r3[2] = (e2) => l3.$emit("rightAddOnClicked")), class: "inline-flex items-center px-3 rounded-r-md border border-l-0 border-gray-300 bg-gray-50 hover:bg-gray-200 text-gray-500 sm:text-sm cursor-pointer" }, _(t2.rightAddOn), 1)) : R("", true), t2.icon ? (e(), a("div", Tn, [o(W, { icon: t2.icon, color: t2.color, loading: t2.loading }, null, 8, ["icon", "color", "loading"]), B(o(W, { icon: d(ln), color: "green", loading: t2.loading }, null, 8, ["icon", "loading"]), [[A, "success" === t2.color]]), B(o(W, { icon: d(un), color: "yellow", loading: t2.loading }, null, 8, ["icon", "loading"]), [[A, "warning" === t2.color]]), B(o(W, { icon: d(mn), color: "red", loading: t2.loading }, null, 8, ["icon", "loading"]), [[A, "danger" === t2.color]])])) : R("", true)], 2), B(i("p", { class: n([{ "text-gray-400": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "text-red-400": "danger" === t2.color, "text-yellow-400": "warning" === t2.color, "text-green-400": "success" === t2.color }, "mt-2 text-xs flex flex-row items-center"]) }, _(t2.error), 3), [[A, t2.error]])]));
2190
- } }), jn = { key: 0 }, Rn = { class: "flex justify-between" }, Bn = { key: 0, class: "block text-sm font-medium text-gray-700" }, Ln = { key: 1, class: "text-[10px] text-gray-500 uppercase" }, An = { class: "space-y-1 flex flex-col items-center justify-center" }, Fn = { class: "flex text-sm text-gray-600 flex flex-col sm:flex-row text-center" }, Nn = { for: "file-upload", class: "relative cursor-pointer rounded-md font-medium text-indigo-600 focus-within:outline-none focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 hover:text-indigo-500" }, zn = ["accept"], $n = { class: "pl-1" }, Hn = { class: "text-xs text-gray-500 pb-4" }, Vn = { class: "mt-2 text-xs flex flex-row items-center text-red-300" }, Yn = { key: 1, class: "animate-pulse" }, Un = [i("div", { class: "flex justify-center items-center flex-col rounded-md border-2 border-dashed px-6 pt-5 pb-6 border-gray-200" }, [i("div", { class: "rounded-full h-20 w-20 bg-gray-200 mb-4" }), i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full md:w-1/3 mb-3" }), i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full md:w-1/4 mb-3" })], -1)], qn = { name: "uiInputFile" }, Wn = Object.assign(qn, { props: { name: String, label: String, optional: String, placeholder: String, dragAndDrop: String, fileTypesAndSizes: String, error: String, accept: String, icon: { type: Function, default: function(t2, l2) {
2192
+ }), (l3, r3) => t2.loading ? (e(), a("div", Dn, [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, Tn), [[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", En, [o(W, { icon: t2.icon, color: t2.color, loading: t2.loading }, null, 8, ["icon", "color", "loading"]), B(o(W, { icon: d(ln), color: "green", loading: t2.loading }, null, 8, ["icon", "loading"]), [[L, "success" === t2.color]]), B(o(W, { icon: d(un), color: "yellow", loading: t2.loading }, null, 8, ["icon", "loading"]), [[L, "warning" === t2.color]]), B(o(W, { 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]])]));
2193
+ } }), 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) {
2191
2194
  return e(), a("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", "aria-hidden": "true", "data-slot": "icon" }, [i("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M7.5 7.5h-.75A2.25 2.25 0 0 0 4.5 9.75v7.5a2.25 2.25 0 0 0 2.25 2.25h7.5a2.25 2.25 0 0 0 2.25-2.25v-7.5a2.25 2.25 0 0 0-2.25-2.25h-.75m0-3-3-3m0 0-3 3m3-3v11.25m6-2.25h.75a2.25 2.25 0 0 1 2.25 2.25v7.5a2.25 2.25 0 0 1-2.25 2.25h-7.5a2.25 2.25 0 0 1-2.25-2.25v-.75" })]);
2192
2195
  } }, loading: { type: Boolean, default: true } }, emits: ["filesUploaded"], setup(t2, { emit: l2 }) {
2193
2196
  const r2 = s(""), u2 = l2, c2 = t2, p2 = (e2) => {
@@ -2196,42 +2199,42 @@ const vn = { class: "py-1" }, bn = ["onClick"], yn = { key: 1, class: "animate-p
2196
2199
  }, g2 = (e2) => {
2197
2200
  u2("filesUploaded", e2.target.files), c2.filename = e2.target.files[0].name;
2198
2201
  };
2199
- return (l3, s2) => t2.loading ? (e(), a("div", Yn, Un)) : (e(), a("div", jn, [i("div", Rn, [t2.label ? (e(), a("label", Bn, _(t2.label), 1)) : R("", true), t2.optional ? (e(), a("span", Ln, _(t2.optional), 1)) : R("", true)]), i("div", { class: n([[{ "mt-1": t2.label }, { "border-gray-300 hover:border-gray-400": !t2.error }, { "border-red-300 hover:border-red-400": t2.error }], "dropArea flex justify-center rounded-md border-2 border-dashed px-6 pt-5 pb-6"]), onDragover: s2[0] || (s2[0] = F(() => {
2200
- }, ["prevent"])), onDrop: F(p2, ["prevent"]) }, [i("div", An, [o(W, { icon: t2.icon, size: "massive", color: "gray", "aria-hidden": "true", class: "mb-4", loading: t2.loading }, null, 8, ["icon", "loading"]), i("div", Fn, [i("label", Nn, [i("span", null, _(t2.placeholder), 1), i("input", { id: "file-upload", name: "file-upload", type: "file", class: "sr-only", accept: t2.accept, onChange: g2 }, null, 40, zn)]), i("p", $n, _(t2.dragAndDrop), 1)]), i("p", Hn, _(t2.fileTypesAndSizes), 1), B(i("p", { class: "font-bold text-xs uppercase block p-2 bg-gray-200 rounded" }, _(r2.value), 513), [[A, "" !== r2.value]])])], 34), B(i("p", Vn, [o(W, { icon: d(fn), color: "red", class: "mr-2", loading: t2.loading }, null, 8, ["icon", "loading"]), I(_(t2.error), 1)], 512), [[A, t2.error]])]));
2201
- } }), Kn = { class: "relative mt-1" }, Jn = { key: 1, class: "animate-pulse px-4 py-2.5 bg-gray-200 rounded-md flex justify-between items-center w-full" }, Gn = i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1), Zn = { name: "uiSelect" }, Xn = Object.assign(Zn, { props: { items: { type: Array, required: true }, label: String, error: String, color: String, select: Object, loading: { type: Boolean, default: true } }, emits: ["selectChanged"], setup(l2, { emit: r2 }) {
2202
+ 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(() => {
2203
+ }, ["prevent"])), onDrop: F(p2, ["prevent"]) }, [i("div", Fn, [o(W, { 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(W, { icon: d(mn), color: "red", class: "mr-2", loading: t2.loading }, null, 8, ["icon", "loading"]), I(_(t2.error), 1)], 512), [[L, t2.error]])]));
2204
+ } }), 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 }) {
2202
2205
  const c2 = s(""), p2 = r2, g2 = l2, f2 = u(() => "" === c2.value ? g2.items : g2.items.filter((e2) => e2.name.toLowerCase().includes(c2.value.toLowerCase()))), m2 = u(() => g2.select);
2203
- return (r3, s2) => l2.loading ? (e(), a("div", Jn, [Gn, o(d(rn), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5 text-gray-300 dark:text-gray-400" })])) : (e(), t(d(Dt), { key: 0, modelValue: m2.value, "onUpdate:modelValue": [s2[1] || (s2[1] = (e2) => m2.value = e2), s2[2] || (s2[2] = (e2) => p2("selectChanged", e2))], as: "div" }, { default: D(() => [o(d(It), { class: "block text-sm font-medium" }, { default: D(() => [I(_(l2.label), 1)]), _: 1 }), i("div", Kn, [o(d(Pt), { "display-value": (e2) => e2 == null ? void 0 : e2.name, class: n([{ "border-gray-300": "danger" !== l2.color || "warning" !== l2.color || "success" !== l2.color, "border-red-400": "danger" === l2.color, "border-yellow-400": "warning" === l2.color, "border-green-400": "success" === l2.color, "bg-gray-100": r3.disabled, "text-black": "danger" !== l2.color || "warning" !== l2.color || "success" !== l2.color, "text-red-400": "danger" === l2.color, "text-yellow-400": "warning" === l2.color, "text-green-400": "success" === l2.color }, "w-full rounded-md border bg-white py-2 pl-3 pr-10 shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm"]), onChange: s2[0] || (s2[0] = (e2) => c2.value = e2.target.value) }, null, 8, ["display-value", "class"]), o(d(_t), { class: "absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none" }, { default: D(() => [o(d(rn), { "aria-hidden": "true", class: "h-5 w-5 text-gray-400" })]), _: 1 }), f2.value.length > 0 ? (e(), t(d(jt), { key: 0, class: "absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm" }, { default: D(() => [(e(true), a(x, null, j(f2.value, (l3) => (e(), t(d(Rt), { key: l3.id, value: l3, as: "template" }, { default: D(({ active: t2, selected: r4 }) => [i("li", { class: n(["relative cursor-default select-none py-2 pl-3 pr-9", t2 ? "bg-indigo-600 text-white" : "text-gray-900"]) }, [i("span", { class: n(["block truncate", r4 && "font-semibold"]) }, _(l3.name), 3), r4 ? (e(), a("span", { key: 0, class: n(["absolute inset-y-0 right-0 flex items-center pr-4", t2 ? "text-white" : "text-indigo-600"]) }, [o(d(ln), { "aria-hidden": "true", class: "h-5 w-5", loading: true })], 2)) : R("", true)], 2)]), _: 2 }, 1032, ["value"]))), 128))]), _: 1 })) : R("", true)]), B(i("p", { class: n([{ "text-gray-400": "danger" !== l2.color || "warning" !== l2.color || "success" !== l2.color, "text-red-400": "danger" === l2.color, "text-yellow-400": "warning" === l2.color, "text-green-400": "success" === l2.color }, "mt-2 text-xs flex flex-row items-center"]) }, _(l2.error), 3), [[A, l2.error]])]), _: 1 }, 8, ["modelValue"]));
2204
- } }), Qn = { key: 1, class: "inline-flex items-center px-3 py-2.5 rounded text-xs font-medium leading-none animate-pulse bg-gray-200" }, ea = [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12" }, null, -1)], ta = { name: "uiTag" }, la = Object.assign(ta, { props: { color: { type: String, default: "primary" }, loading: { type: Boolean, default: true } }, setup: (t2) => (l2, o2) => t2.loading ? (e(), a("div", Qn, ea)) : (e(), a("span", { key: 0, class: n([{ "bg-indigo-100 text-indigo-800 border border-indigo-200": "primary" === t2.color, "bg-red-100 text-red-800 border border-red-200": "danger" === t2.color, "bg-yellow-100 text-yellow-800 border border-yellow-200": "warning" === t2.color, "bg-green-100 text-green-800 border border-green-200": "success" === t2.color, "bg-black text-white border border-black": "black" === t2.color, "text-black border border-gray-200 bg-white": "white" === t2.color }, "inline-flex items-center px-3 py-2 rounded text-xs font-medium leading-none"]) }, [r(l2.$slots, "default")], 2)) }), na = { key: 0 }, aa = { key: 0, class: "block text-sm font-medium text-gray-700" }, oa = ["disabled", "placeholder"], ra = { key: 1, class: "animate-pulse" }, ia = [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/3 md:w-1/4 mb-1.5" }, null, -1), i("div", { class: "h-24 bg-gray-200 rounded-lg flex inline-flex items-center relative inline-block text-left w-full" }, null, -1)], sa = { name: "uiTextArea" }, ua = Object.assign(sa, { props: { label: String, placeholder: { type: String, default: "..." }, value: String, color: String, disabled: { type: Boolean, default: false }, error: String, loading: { type: Boolean, default: true } }, emits: ["inputChanged"], setup(t2, { emit: l2 }) {
2206
+ 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(Dt), { key: 0, modelValue: m2.value, "onUpdate:modelValue": [s2[1] || (s2[1] = (e2) => m2.value = e2), s2[2] || (s2[2] = (e2) => p2("selectChanged", e2))], as: "div" }, { default: D(() => [o(d(It), { class: "block text-sm font-medium" }, { default: D(() => [I(_(l2.label), 1)]), _: 1 }), i("div", 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: D(() => [o(d(rn), { "aria-hidden": "true", class: "h-5 w-5 text-gray-400" })]), _: 1 }), f2.value.length > 0 ? (e(), t(d(jt), { key: 0, class: "absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm" }, { default: D(() => [(e(true), a(x, null, j(f2.value, (l3) => (e(), t(d(Rt), { key: l3.id, value: l3, as: "template" }, { default: D(({ active: t2, selected: r4 }) => [i("li", { class: n(["relative cursor-default select-none py-2 pl-3 pr-9", t2 ? "bg-indigo-600 text-white" : "text-gray-900"]) }, [i("span", { class: n(["block truncate", r4 && "font-semibold"]) }, _(l3.name), 3), r4 ? (e(), a("span", { key: 0, class: n(["absolute inset-y-0 right-0 flex items-center pr-4", t2 ? "text-white" : "text-indigo-600"]) }, [o(d(ln), { "aria-hidden": "true", class: "h-5 w-5", loading: true })], 2)) : R("", true)], 2)]), _: 2 }, 1032, ["value"]))), 128))]), _: 1 })) : R("", true)]), B(i("p", { class: n([{ "text-gray-400": "danger" !== l2.color || "warning" !== l2.color || "success" !== l2.color, "text-red-400": "danger" === l2.color, "text-yellow-400": "warning" === l2.color, "text-green-400": "success" === l2.color }, "mt-2 text-xs flex flex-row items-center"]) }, _(l2.error), 3), [[L, l2.error]])]), _: 1 }, 8, ["modelValue"]));
2207
+ } }), 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 }) {
2205
2208
  const r2 = l2, u2 = t2, c2 = (e2) => {
2206
2209
  r2("inputChanged", e2.target.value);
2207
2210
  }, g2 = s(u2.value);
2208
2211
  return p(() => u2.value, (e2) => {
2209
2212
  g2.value = e2, r2("inputChanged", e2);
2210
- }), (l3, r3) => t2.loading ? (e(), a("div", ra, ia)) : (e(), a("div", na, [t2.label ? (e(), a("label", aa, _(t2.label), 1)) : R("", true), i("div", { class: n({ "mt-1": t2.label }) }, [B(i("textarea", { disabled: t2.disabled, rows: "4", "onUpdate:modelValue": r3[0] || (r3[0] = (e2) => g2.value = e2), placeholder: t2.placeholder, class: n(["shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm rounded-md", { "border-gray-300": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "border-red-300": "danger" === t2.color, "border-yellow-400": "warning" === t2.color, "border-green-400": "success" === t2.color, "bg-gray-100": t2.disabled, "text-black": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "text-red-300": "danger" === t2.color, "text-yellow-400": "warning" === t2.color, "text-green-400": "success" === t2.color }]), onChange: c2 }, null, 42, oa), [[N, g2.value]])], 2), B(i("p", { class: n([{ "text-gray-300": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "text-red-300": "danger" === t2.color, "text-yellow-400": "warning" === t2.color, "text-green-400": "success" === t2.color }, "mt-2 text-xs flex flex-row items-center"]) }, [o(W, { icon: d(fn), color: "red", class: "mr-2" }, null, 8, ["icon"]), I(_(t2.error), 1)], 2), [[A, t2.error]])]));
2211
- } }), da = { class: "text-sm font-medium text-gray-900" }, ca = { key: 0, class: "text-sm text-gray-500 ml-2" }, pa = { key: 1, class: "animate-pulse flex items-center" }, ga = [i("div", { class: "relative bg-gray-200 rounded-full w-12 h-6 p-1 flex items-center" }, [i("div", { class: "rounded-full bg-gray-300 dark:bg-gray-400 h-4 w-4" })], -1), i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-16 ml-2" }, null, -1)], fa = { name: "uiToggle" }, ma = Object.assign(fa, { props: { item: { type: Object, required: true }, checked: { type: Boolean, default: false }, disabled: { type: Boolean, default: false }, loading: { type: Boolean, default: true } }, setup(l2) {
2213
+ }), (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(W, { icon: d(mn), color: "red", class: "mr-2" }, null, 8, ["icon"]), I(_(t2.error), 1)], 2), [[L, t2.error]])]));
2214
+ } }), 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) {
2212
2215
  const r2 = s(l2.checked);
2213
- return (s2, u2) => l2.loading ? (e(), a("div", pa, ga)) : (e(), t(d(Ll), { key: 0, as: "div", class: "flex items-center relative" }, { default: D(() => [o(d(Al), { disabled: l2.disabled, onClick: u2[0] || (u2[0] = (e2) => s2.$emit("toggleChanged", { item: l2.item, active: !r2.value })), modelValue: r2.value, "onUpdate:modelValue": u2[1] || (u2[1] = (e2) => r2.value = e2), class: n([r2.value ? "bg-indigo-600" : "bg-gray-200", "relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"]) }, { default: D(() => [i("span", { "aria-hidden": "true", class: n([r2.value ? "translate-x-5" : "translate-x-0", l2.disabled ? "bg-gray-300" : "", "pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out"]) }, null, 2)]), _: 1 }, 8, ["disabled", "modelValue", "class"]), o(d(Fl), { as: "span", class: "ml-3" }, { default: D(() => [i("span", da, _(l2.item.title), 1), l2.item.subtitle ? (e(), a("span", ca, _(l2.item.subtitle), 1)) : R("", true)]), _: 1 }), l2.item.action ? (e(), a("span", { key: 0, class: "cursor-pointer text-indigo-600 hover:text-indigo-400 uppercase text-xs absolute right-0 bottom-0.5", onClick: u2[2] || (u2[2] = (e2) => s2.$emit("actionClicked", l2.item)) }, _(l2.item.action), 1)) : R("", true)]), _: 1 }));
2214
- } }), va = { key: 0, class: "flex flex-col" }, ba = { class: "flex" }, ya = { class: "flex-shrink-0" }, ha = { class: "ml-3" }, xa = { class: "mt-4" }, wa = { class: "-mx-2 -my-1.5 flex" }, ka = ["onClick"], Sa = { key: 1, class: "flex flex-col animate-pulse" }, Ca = [z('<div class="p-4 border-l-4 bg-gray-100 border-gray-400 rounded"><div class="flex"><div class="flex-shrink-0"><div class="h-6 w-6 animate-pulse rounded-full bg-gray-200 dark:bg-gray-300"></div></div><div class="ml-3 w-full"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/3 mb-2"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full mb-2"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-3/5"></div></div></div></div>', 1)], Oa = { name: "uiAlert" }, Ma = Object.assign(Oa, { props: { actions: { type: Array }, title: { type: String }, type: { type: String, default: "info" }, loading: { type: Boolean, default: true } }, setup: (l2) => (o2, s2) => l2.loading ? (e(), a("div", Sa, Ca)) : (e(), a("div", va, [i("div", { class: n([{ "bg-indigo-50 border-indigo-400": "info" === l2.type, "bg-red-50 border-red-400": "danger" === l2.type, "bg-yellow-50 border-yellow-400": "warning" === l2.type, "bg-green-50 border-green-400": "success" === l2.type }, "p-4 border-l-4 rounded"]) }, [i("div", ba, [i("div", ya, ["info" === l2.type ? (e(), t(d(pn), { key: 0, class: "h-8 w-8 text-indigo-400", "aria-hidden": "true" })) : R("", true), "danger" === l2.type ? (e(), t(d(fn), { key: 1, class: "h-8 w-8 text-red-400", "aria-hidden": "true" })) : R("", true), "warning" === l2.type ? (e(), t(d(un), { key: 2, class: "h-8 w-8 text-yellow-400", "aria-hidden": "true" })) : R("", true), "success" === l2.type ? (e(), t(d(tn), { key: 3, class: "h-8 w-8 text-green-400", "aria-hidden": "true" })) : R("", true)]), i("div", ha, [i("h3", { class: n([{ "text-red-800": "danger" === l2.type, "text-yellow-800": "warning" === l2.type, "text-green-800": "success" === l2.type }, "text-sm font-medium"]) }, _(l2.title), 3), i("div", { class: n([{ "text-red-700": "danger" === l2.type, "text-yellow-700": "warning" === l2.type, "text-green-700": "success" === l2.type }, "mt-2 text-sm"]) }, [r(o2.$slots, "default")], 2), i("div", xa, [i("div", wa, [(e(true), a(x, null, j(l2.actions, (t2, r2) => (e(), a("button", { onClick: (e2) => o2.$emit("alertEvent", t2.event), type: "button", key: r2, class: n([{ "bg-green-50 text-green-800 hover:bg-green-100 focus:ring-green-600 focus:ring-offset-green-50": "success" === l2.type, "bg-indigo-50 text-indigo-800 hover:bg-indigo-100 focus:ring-indigo-600 focus:ring-offset-indigo-50": "info" === l2.type, "bg-red-50 text-red-800 hover:bg-red-100 focus:ring-red-600 focus:ring-offset-red-50": "danger" === l2.type, "bg-yellow-50 text-yellow-800 hover:bg-yellow-100 focus:ring-yellow-600 focus:ring-offset-yellow-50": "warning" === l2.type }, "px-2 py-1.5 text-sm font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2"]) }, _(t2.name), 11, ka))), 128))])])])])], 2)])) }), Ta = { key: 0, class: "inline-flex", "aria-label": "Breadcrumb" }, Ea = { role: "list", class: "flex items-center space-x-4 text-xs" }, Da = { key: 0 }, Ia = ["onClick"], _a = { key: 1, class: "flex items-center" }, Pa = ["onClick", "aria-current"], ja = { key: 1, class: "flex flex-row items-center animate-pulse" }, Ra = [i("div", { class: "animate-pulse rounded-full bg-gray-200 dark:bg-gray-300 h-4 w-4 mr-4" }, null, -1), i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5 mr-4" }, null, -1), i("div", { class: "animate-pulse rounded-full bg-gray-200 dark:bg-gray-300 h-4 w-4 mr-4" }, null, -1), i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5" }, null, -1)], Ba = { name: "uiBreadcrumbs" }, La = Object.assign(Ba, { props: { pages: { type: Array, required: true }, loading: { type: Boolean, default: true } }, setup: (t2) => (l2, r2) => t2.loading ? (e(), a("div", ja, Ra)) : (e(), a("nav", Ta, [i("ol", Ea, [(e(true), a(x, null, j(t2.pages, (t3, r3) => (e(), a("li", { key: r3 }, [0 === r3 ? (e(), a("div", Da, [i("p", { onClick: (e2) => l2.$emit("breadCrumbClicked", t3.routeName), class: "flex flex-row items-center justify-center text-indigo-600 hover:text-indigo-800 cursor-pointer" }, [o(d(cn), { class: "flex-shrink-0 h-3 w-3 text-gray-400 mr-4", "aria-hidden": "true" }), i("span", null, _(t3.name), 1)], 8, Ia)])) : (e(), a("div", _a, [o(d(on), { class: "flex-shrink-0 h-3 w-3 text-gray-400", "aria-hidden": "true" }), i("span", { onClick: (e2) => l2.$emit("breadCrumbClicked", t3.routeName), class: n(["cursor-pointer ml-4 text-xs text-gray-400 hover:text-gray-500", { "text-indigo-600 hover:text-indigo-800": !t3.current }]), "aria-current": t3.current ? "page" : "" }, _(t3.name), 11, Pa)]))]))), 128))])])) }), Aa = { class: "flex items-center flex-col sm:flex-row justify-center sm:justify-start" }, Fa = ["src"], Na = { class: "font-bold text-center sm:text-left" }, za = { class: "mt-1 text-xs text-center sm:text-left" }, $a = { key: 0, class: "flex flex-wrap mt-4 justify-center sm:justify-start" }, Ha = { key: 1, class: "rounded-lg bg-white shadow p-6 cursor-pointer animate-pulse" }, Va = [z('<div class="flex items-center flex-col sm:flex-row justify-center sm:justify-start w-full"><div class="w-16 h-16 rounded-full bg-gray-200 flex self-center"></div><div class="w-full ml-4"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full mt-4 sm:mt-0 sm:w-16 mb-2"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full sm:w-32"></div></div></div>', 1)], Ya = { name: "uiCard" }, Ua = Object.assign(Ya, { props: { id: { type: String, required: true }, name: { type: String, required: true }, type: String, tags: Array, logo: String, loading: { type: Boolean, default: true } }, setup: (l2) => (n2, o2) => {
2216
+ return (s2, u2) => l2.loading ? (e(), a("div", ga, fa)) : (e(), t(d(Al), { key: 0, as: "div", class: "flex items-center relative" }, { default: D(() => [o(d(Ll), { disabled: l2.disabled, onClick: u2[0] || (u2[0] = (e2) => s2.$emit("toggleChanged", { item: l2.item, active: !r2.value })), modelValue: r2.value, "onUpdate:modelValue": u2[1] || (u2[1] = (e2) => r2.value = e2), class: n([r2.value ? "bg-indigo-600" : "bg-gray-200", "relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"]) }, { default: D(() => [i("span", { "aria-hidden": "true", class: n([r2.value ? "translate-x-5" : "translate-x-0", l2.disabled ? "bg-gray-300" : "", "pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out"]) }, null, 2)]), _: 1 }, 8, ["disabled", "modelValue", "class"]), o(d(Fl), { as: "span", class: "ml-3" }, { default: D(() => [i("span", 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 }));
2217
+ } }), ya = { key: 0, class: "flex flex-col" }, ba = { class: "flex" }, ha = { 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" }, Ta = 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", ya, [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", ha, ["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(x, null, j(l2.actions, (t2, r2) => (e(), a("button", { onClick: (e2) => o2.$emit("alertEvent", t2.event), type: "button", key: r2, class: n([{ "bg-green-50 text-green-800 hover:bg-green-100 focus:ring-green-600 focus:ring-offset-green-50": "success" === l2.type, "bg-indigo-50 text-indigo-800 hover:bg-indigo-100 focus:ring-indigo-600 focus:ring-offset-indigo-50": "info" === l2.type, "bg-red-50 text-red-800 hover:bg-red-100 focus:ring-red-600 focus:ring-offset-red-50": "danger" === l2.type, "bg-yellow-50 text-yellow-800 hover:bg-yellow-100 focus:ring-yellow-600 focus:ring-offset-yellow-50": "warning" === l2.type }, "px-2 py-1.5 text-sm font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2"]) }, _(t2.name), 11, Sa))), 128))])])])])], 2)])) }), Ea = { key: 0, class: "inline-flex", "aria-label": "Breadcrumb" }, Da = { 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", Ea, [i("ol", Da, [(e(true), a(x, 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) => {
2215
2218
  var _a2;
2216
- return l2.loading ? (e(), a("div", Ha, Va)) : (e(), a("div", { key: 0, class: "rounded-lg bg-white shadow p-6 cursor-pointer", onClick: o2[0] || (o2[0] = (e2) => n2.$emit("cardSelected", { id: l2.id, name: l2.name, type: l2.type, tags: l2.tags })) }, [i("div", Aa, [i("img", { class: "w-16 h-16 rounded-full mb-4 sm:mb-0 sm:mr-4", src: l2.logo }, null, 8, Fa), i("div", null, [i("h4", Na, _(l2.name), 1), i("p", za, _(l2.type), 1)])]), ((_a2 = l2.tags) == null ? void 0 : _a2.length) > 0 ? (e(), a("div", $a, [(e(true), a(x, null, j(l2.tags, (n3) => (e(), t(la, { class: "mb-1 mr-1", key: n3.name, color: n3.color, loading: l2.loading }, { default: D(() => [I(_(n3.name), 1)]), _: 2 }, 1032, ["color", "loading"]))), 128))])) : R("", true)]));
2217
- } }), qa = { name: "uiFilter" }, Wa = Object.assign(qa, { props: { position: { type: String, default: "left" }, items: { type: Array, required: true }, label: { type: String, required: true }, loading: { type: Boolean, default: true } }, emits: ["filterSelected"], setup(l2, { emit: n2 }) {
2219
+ 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(x, null, j(l2.tags, (n3) => (e(), t(na, { class: "mb-1 mr-1", key: n3.name, color: n3.color, loading: l2.loading }, { default: D(() => [I(_(n3.name), 1)]), _: 2 }, 1032, ["color", "loading"]))), 128))])) : R("", true)]));
2220
+ } }), 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 }) {
2218
2221
  const a2 = n2, o2 = s(l2.items);
2219
- return (n3, r2) => (e(), t(wn, { loading: l2.loading, onOptionSelected: r2[0] || (r2[0] = (e2) => ((e3) => {
2222
+ return (n3, r2) => (e(), t(kn, { loading: l2.loading, onOptionSelected: r2[0] || (r2[0] = (e2) => ((e3) => {
2220
2223
  o2.value.forEach((t2) => {
2221
2224
  t2.value !== e3 ? t2.active = false : t2.active = true;
2222
2225
  }), a2("filterSelected", e3);
2223
2226
  })(e2)), position: l2.position, items: o2.value, label: l2.label }, null, 8, ["loading", "position", "items", "label"]));
2224
- } }), Ka = i("div", { class: "fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" }, null, -1), Ja = { class: "fixed inset-0 z-10 overflow-y-auto" }, Ga = { class: "flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0" }, Za = { class: "absolute top-0 right-0 hidden pt-4 pr-4 sm:block" }, Xa = i("span", { class: "sr-only" }, "X", -1), Qa = { class: "sm:flex sm:items-start" }, eo = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left sm:mr-4" }, to = { class: "mt-4 text-gray-500 text-sm" }, lo = { key: 0, class: "mt-8" }, no = ["onClick"], ao = { name: "uiModal" }, oo = Object.assign(ao, { props: { title: String, actions: Object, modalName: String, open: { type: Boolean, default: false }, type: { type: String, default: "default" }, loading: { type: Boolean, default: false } }, emits: ["modalAction"], setup(l2, { emit: s2 }) {
2227
+ } }), Ja = i("div", { class: "fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" }, null, -1), Ga = { class: "fixed inset-0 z-10 overflow-y-auto" }, Za = { class: "flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0" }, Xa = { class: "absolute top-0 right-0 hidden pt-4 pr-4 sm:block" }, Qa = i("span", { class: "sr-only" }, "X", -1), eo = { class: "sm:flex sm:items-start" }, to = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left sm:mr-4" }, lo = { class: "mt-4 text-gray-500 text-sm" }, no = { key: 0, class: "mt-8" }, ao = ["onClick"], oo = { name: "uiModal" }, ro = Object.assign(oo, { props: { title: String, actions: Object, modalName: String, open: { type: Boolean, default: false }, type: { type: String, default: "default" }, loading: { type: Boolean, default: false } }, emits: ["modalAction"], setup(l2, { emit: s2 }) {
2225
2228
  const u2 = l2, c2 = s2, p2 = (e2) => {
2226
2229
  c2("modalAction", { modal: u2.modalName, action: e2 });
2227
2230
  };
2228
- return (s3, u3) => (e(), t(d(Xl), { as: "template", show: l2.open }, { default: D(() => [o(d(dl), { as: "div", class: "relative z-10", onClose: u3[1] || (u3[1] = (e2) => p2("close")) }, { default: D(() => [o(d(Gl), { as: "template", enter: "ease-out duration-300", "enter-from": "opacity-0", "enter-to": "opacity-100", leave: "ease-in duration-200", "leave-from": "opacity-100", "leave-to": "opacity-0" }, { default: D(() => [Ka]), _: 1 }), i("div", Ja, [i("div", Ga, [o(d(Gl), { as: "template", enter: "ease-out duration-300", "enter-from": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95", "enter-to": "opacity-100 translate-y-0 sm:scale-100", leave: "ease-in duration-200", "leave-from": "opacity-100 translate-y-0 sm:scale-100", "leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" }, { default: D(() => [o(d(cl), { class: "relative transform rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl transition-all sm:my-8 w-9/12 sm:w-full sm:max-w-lg sm:p-6" }, { default: D(() => [i("div", Za, [i("button", { type: "button", class: "rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none", onClick: u3[0] || (u3[0] = (e2) => p2("close")) }, [Xa, o(W, { icon: d(mn), "aria-hidden": "true", loading: l2.loading }, null, 8, ["icon", "loading"])])]), i("div", Qa, [i("div", { class: n(["mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full sm:mx-0 sm:h-10 sm:w-10", { "bg-red-100": "danger" === l2.type, "bg-green-100": "success" === l2.type, "bg-indigo-100": "default" === l2.type, "bg-yellow-100": "warning" === l2.type }]) }, [B(o(d(mn), { class: "h-6 w-6 text-red-600", "aria-hidden": "true" }, null, 512), [[A, "danger" === l2.type]]), B(o(d(ln), { class: "h-6 w-6 text-green-600", "aria-hidden": "true" }, null, 512), [[A, "success" === l2.type]]), B(o(d(un), { class: "h-6 w-6 text-yellow-600", "aria-hidden": "true" }, null, 512), [[A, "warning" === l2.type]]), B(o(d(dn), { class: "h-6 w-6 text-indigo-600", "aria-hidden": "true" }, null, 512), [[A, "default" === l2.type]])], 2), i("div", eo, [o(d(pl), { as: "h3", class: "text-lg font-medium leading-6 text-gray-900" }, { default: D(() => [I(_(l2.title), 1)]), _: 1 }), i("div", to, [r(s3.$slots, "default")]), l2.actions ? (e(), a("div", lo, [(e(true), a(x, null, j(l2.actions, (t2, l3) => (e(), a("button", { key: l3, type: "button", class: "inline-flex w-full justify-center rounded-md border border-transparent bg-indigo-600 px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 mb-2 sm:mb-0 mr-2 sm:w-auto sm:text-sm", onClick: (e2) => p2(t2.value) }, _(t2.name), 9, no))), 128))])) : R("", true)])])]), _: 3 })]), _: 3 })])])]), _: 3 })]), _: 3 }, 8, ["show"]));
2229
- } }), ro = { class: "w-full flex flex-col items-center space-y-4 sm:items-end" }, io = { key: 0, class: "max-w-sm w-full bg-white shadow-lg rounded-lg pointer-events-auto ring-1 ring-black ring-opacity-5 overflow-hidden" }, so = { class: "p-4" }, uo = { class: "flex items-start" }, co = { class: "flex-shrink-0 mt-0.5" }, po = { class: "ml-3 w-0 flex-1 pt-0.5" }, go = { class: "font-medium text-gray-900" }, fo = { class: "mt-1 text-sm text-gray-500" }, mo = { class: "ml-4 flex-shrink-0 flex" }, vo = i("span", { class: "sr-only" }, "Close", -1), bo = { name: "uiNotification" }, yo = Object.assign(bo, { props: { show: Boolean, type: { type: String, default: "info" }, title: String, message: String, fixed: { type: Boolean, default: true } }, setup(t2) {
2231
+ return (s3, u3) => (e(), t(d(Xl), { as: "template", show: l2.open }, { default: D(() => [o(d(dl), { as: "div", class: "relative z-10", onClose: u3[1] || (u3[1] = (e2) => p2("close")) }, { default: D(() => [o(d(Gl), { as: "template", enter: "ease-out duration-300", "enter-from": "opacity-0", "enter-to": "opacity-100", leave: "ease-in duration-200", "leave-from": "opacity-100", "leave-to": "opacity-0" }, { default: D(() => [Ja]), _: 1 }), i("div", Ga, [i("div", Za, [o(d(Gl), { as: "template", enter: "ease-out duration-300", "enter-from": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95", "enter-to": "opacity-100 translate-y-0 sm:scale-100", leave: "ease-in duration-200", "leave-from": "opacity-100 translate-y-0 sm:scale-100", "leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" }, { default: D(() => [o(d(cl), { class: "relative transform rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl transition-all sm:my-8 w-9/12 sm:w-full sm:max-w-lg sm:p-6" }, { default: D(() => [i("div", 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(W, { 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: D(() => [I(_(l2.title), 1)]), _: 1 }), i("div", lo, [r(s3.$slots, "default")]), l2.actions ? (e(), a("div", no, [(e(true), a(x, null, j(l2.actions, (t2, l3) => (e(), a("button", { key: l3, type: "button", class: "inline-flex w-full justify-center rounded-md border border-transparent bg-indigo-600 px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 mb-2 sm:mb-0 mr-2 sm:w-auto sm:text-sm", onClick: (e2) => p2(t2.value) }, _(t2.name), 9, ao))), 128))])) : R("", true)])])]), _: 3 })]), _: 3 })])])]), _: 3 })]), _: 3 }, 8, ["show"]));
2232
+ } }), 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" }, yo = i("span", { class: "sr-only" }, "Close", -1), bo = { name: "uiNotification" }, ho = Object.assign(bo, { props: { show: Boolean, type: { type: String, default: "info" }, title: String, message: String, fixed: { type: Boolean, default: true } }, setup(t2) {
2230
2233
  const l2 = t2, r2 = u(() => l2.show);
2231
- return (l3, s2) => (e(), a("div", { "aria-live": "assertive", class: n([{ fixed: t2.fixed }, "inset-0 flex items-end px-4 py-6 pointer-events-none sm:p-6 sm:items-start"]) }, [i("div", ro, [o(P, { "enter-active-class": "transform ease-out duration-300 transition", "enter-from-class": "translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2", "enter-to-class": "translate-y-0 opacity-100 sm:translate-x-0", "leave-active-class": "transition ease-in duration-100", "leave-from-class": "opacity-100", "leave-to-class": "opacity-0" }, { default: D(() => [r2.value ? (e(), a("div", io, [i("div", so, [i("div", uo, [i("div", co, [B(o(d(tn), { "aria-hidden": "true", class: "h-6 w-6 text-green-400" }, null, 512), [[A, "success" === t2.type]]), B(o(d(fn), { "aria-hidden": "true", class: "h-6 w-6 text-red-400" }, null, 512), [[A, "danger" === t2.type]]), B(o(d(un), { "aria-hidden": "true", class: "h-6 w-6 text-yellow-400" }, null, 512), [[A, "warning" === t2.type]]), B(o(d(pn), { "aria-hidden": "true", class: "h-6 w-6 text-indigo-600" }, null, 512), [[A, "info" === t2.type]])]), i("div", po, [i("p", go, _(t2.title), 1), i("p", fo, _(t2.message), 1)]), i("div", mo, [i("button", { class: "bg-white rounded-md inline-flex text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500", type: "button", onClick: s2[0] || (s2[0] = (e2) => l3.$emit("closeNotification")) }, [vo, o(d(mn), { "aria-hidden": "true", class: "h-5 w-5" })])])])])])) : R("", true)]), _: 1 })])], 2));
2232
- } }), ho = { key: 0, role: "list", class: "divide-y divide-gray-100" }, xo = { class: "min-w-0" }, wo = { class: "flex items-start gap-x-3" }, ko = { class: "text-sm font-semibold leading-6 text-gray-900" }, So = { class: "mt-1 flex items-center gap-x-2 text-xs leading-5 text-gray-500" }, Co = { class: "truncate" }, Oo = { class: "flex flex-none items-center gap-x-4" }, Mo = ["href"], To = { class: "sr-only" }, Eo = { key: 1, class: "divide-y divide-gray-100 animate-pulse" }, Do = [z('<div class="min-w-0 w-full"><div class="flex items-start gap-x-3"><p class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2"></p></div></div><div class="flex flex-none items-center gap-x-4"><div class="hidden rounded-md bg-gray-200 px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:block"><p class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-10"></p></div></div>', 2)], Io = { name: "uiTaskList" }, _o = Object.assign(Io, { props: { tasks: { type: Array, required: true }, loading: { type: Boolean, default: true } }, setup: (t2) => (l2, o2) => t2.loading ? (e(), a("ul", Eo, [(e(true), a(x, null, j(t2.tasks, (t3) => (e(), a("li", { key: t3.id, class: "flex items-center justify-between gap-x-6 py-5" }, Do))), 128))])) : (e(), a("ul", ho, [(e(true), a(x, null, j(t2.tasks, (t3) => (e(), a("li", { key: t3.id, class: "flex items-center justify-between gap-x-6 py-5" }, [i("div", xo, [i("div", wo, [i("p", ko, _(t3.name), 1), i("p", { class: n([{ "text-green-700 bg-green-50 ring-green-600/20": "Complete" === t3.status, "text-gray-600 bg-gray-50 ring-gray-500/10": "In progress" === t3.status, "text-yellow-800 bg-yellow-50 ring-yellow-600/20": "Incomplete" === t3.status }, "rounded-md whitespace-nowrap mt-0.5 px-1.5 py-0.5 text-xs font-medium ring-1 ring-inset"]) }, _(t3.statusLiteral), 3)]), i("div", So, [i("p", Co, _(t3.description), 1)])]), i("div", Oo, [i("a", { href: t3.href, class: "hidden rounded-md bg-white px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:block" }, [I(_(t3.action), 1), i("span", To, ", " + _(t3.name), 1)], 8, Mo)])]))), 128))])) });
2234
+ 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: D(() => [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")) }, [yo, o(d(vn), { "aria-hidden": "true", class: "h-5 w-5" })])])])])])) : R("", true)]), _: 1 })])], 2));
2235
+ } }), 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" }, To = ["href"], Eo = { class: "sr-only" }, Do = { 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", Do, [(e(true), a(x, null, j(t2.tasks, (t3) => (e(), a("li", { key: t3.id, class: "flex items-center justify-between gap-x-6 py-5" }, Io))), 128))])) : (e(), a("ul", xo, [(e(true), a(x, null, j(t2.tasks, (t3) => (e(), a("li", { key: t3.id, class: "flex items-center justify-between gap-x-6 py-5" }, [i("div", 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", Eo, ", " + _(t3.name), 1)], 8, To)])]))), 128))])) });
2233
2236
  "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self && self;
2234
- function Po(e2) {
2237
+ function jo(e2) {
2235
2238
  return e2 && e2.__esModule && Object.prototype.hasOwnProperty.call(e2, "default") ? e2.default : e2;
2236
2239
  }
2237
2240
  !function(e2) {
@@ -2267,42 +2270,42 @@ function Po(e2) {
2267
2270
  } };
2268
2271
  l2.default.locale(n2, null, true);
2269
2272
  }(Y);
2270
- const jo = (e2, t2) => {
2273
+ const Ro = (e2, t2) => {
2271
2274
  const l2 = e2.__vccOpts || e2;
2272
2275
  for (const [e3, n2] of t2)
2273
2276
  l2[e3] = n2;
2274
2277
  return l2;
2275
- }, Ro = { class: "dateSelector flex items-center text-white flex-row" }, Bo = { class: "pagination flex items-center my-1 md:my-0" }, Lo = { class: "date mx-4 font-bold text-center text-indigo-600 select-none uppercase" }, Ao = { class: "pagination flex items-center my-1 sm:my-0" };
2276
- const Fo = jo({ name: "dateSelector", components: { ChevronLeftIcon: an, ChevronRightIcon: on }, computed: { currentDate() {
2278
+ }, Bo = { class: "dateSelector flex items-center text-white flex-row" }, Ao = { class: "pagination flex items-center my-1 md:my-0" }, Lo = { class: "date mx-4 font-bold text-center text-indigo-600 select-none uppercase" }, Fo = { class: "pagination flex items-center my-1 sm:my-0" };
2279
+ const No = Ro({ name: "dateSelector", components: { ChevronLeftIcon: an, ChevronRightIcon: on }, computed: { currentDate() {
2277
2280
  return Y(this.selectedDate).locale("es").format("DD MMM. YYYY");
2278
2281
  } }, props: { selectedDate: { type: Object, required: true } }, methods: { selectDate(e2, t2) {
2279
2282
  let l2;
2280
2283
  "previous" === t2 && ("day" === e2 && (l2 = Y(this.selectedDate).subtract(1, "day")), "month" === e2 && (l2 = Y(this.selectedDate).subtract(1, "month")), "year" === e2 && (l2 = Y(this.selectedDate).subtract(1, "year"))), "next" === t2 && ("day" === e2 && (l2 = Y(this.selectedDate).add(1, "day")), "month" === e2 && (l2 = Y(this.selectedDate).add(1, "month")), "year" === e2 && (l2 = Y(this.selectedDate).add(1, "year"))), this.$emit("dateSelected", l2);
2281
2284
  } } }, [["render", function(t2, l2, n2, r2, s2, u2) {
2282
2285
  const d2 = $("ChevronLeftIcon"), c2 = $("ChevronRightIcon");
2283
- return e(), a("div", Ro, [i("div", Bo, [i("div", { class: "previousYear flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm", onClick: l2[0] || (l2[0] = (e2) => u2.selectDate("year", "previous")) }, [o(d2, { class: "h-4" }), o(d2, { class: "h-4 -ml-3" }), o(d2, { class: "h-4 -ml-3" })]), i("div", { class: "previousMonth flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm", onClick: l2[1] || (l2[1] = (e2) => u2.selectDate("month", "previous")) }, [o(d2, { class: "h-4" }), o(d2, { class: "h-4 -ml-3" })]), i("div", { class: "previousDay flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm", onClick: l2[2] || (l2[2] = (e2) => u2.selectDate("day", "previous")) }, [o(d2, { class: "h-4" })])]), i("div", Lo, _(u2.currentDate), 1), i("div", Ao, [i("div", { class: "previousDay flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm", onClick: l2[3] || (l2[3] = (e2) => u2.selectDate("day", "next")) }, [o(c2, { class: "h-4" })]), i("div", { class: "previousMonth flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm", onClick: l2[4] || (l2[4] = (e2) => u2.selectDate("month", "next")) }, [o(c2, { class: "h-4" }), o(c2, { class: "h-4 -ml-3" })]), i("div", { class: "previousYear flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm", onClick: l2[5] || (l2[5] = (e2) => u2.selectDate("year", "next")) }, [o(c2, { class: "h-4" }), o(c2, { class: "h-4 -ml-3" }), o(c2, { class: "h-4 -ml-3" })])])]);
2284
- }]]), No = { name: "SkeletonTable" }, zo = { class: "px-4 sm:px-6 lg:px-8 animate-pulse" }, $o = { class: "flow-root" }, Ho = { class: "-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8" }, Vo = { class: "inline-block min-w-full py-2 align-middle px-1" }, Yo = { class: "overflow-hidden shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg" }, Uo = { class: "min-w-full divide-y divide-gray-300" }, qo = i("thead", { class: "bg-gray-50" }, [i("tr", null, [i("th", { scope: "col", class: "py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })]), i("th", { scope: "col", class: "px-3 py-3.5 text-left text-sm font-semibold text-gray-900" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })]), i("th", { scope: "col", class: "px-3 py-3.5 text-left text-sm font-semibold text-gray-900" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })]), i("th", { scope: "col", class: "px-3 py-3.5 text-left text-sm font-semibold text-gray-900" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })]), i("th", { scope: "col", class: "relative py-3.5 pl-3 pr-4 sm:pr-6" }, [i("span", { class: "sr-only" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })])])])], -1), Wo = { class: "divide-y divide-gray-200 bg-white" }, Ko = [i("td", { class: "whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })], -1), i("td", { class: "whitespace-nowrap px-3 py-4 text-sm text-gray-500" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })], -1), i("td", { class: "whitespace-nowrap px-3 py-4 text-sm text-gray-500" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })], -1), i("td", { class: "whitespace-nowrap px-3 py-4 text-sm text-gray-500" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })], -1), i("td", { class: "relative whitespace-nowrap py-4 pl-3 pr-4 text-right text-sm font-medium sm:pr-6" }, [i("a", { href: "#", class: "text-indigo-600 hover:text-indigo-900" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" }), i("span", { class: "sr-only" }, [I(", {"), i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })])])], -1)];
2285
- const Jo = jo(No, [["render", function(t2, l2, n2, o2, r2, s2) {
2286
- return e(), a("div", zo, [i("div", $o, [i("div", Ho, [i("div", Vo, [i("div", Yo, [i("table", Uo, [qo, i("tbody", Wo, [(e(), a(x, null, j(10, (e2) => i("tr", { key: e2 }, Ko)), 64))])])])])])])]);
2286
+ return e(), a("div", Bo, [i("div", Ao, [i("div", { class: "previousYear flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm", onClick: l2[0] || (l2[0] = (e2) => u2.selectDate("year", "previous")) }, [o(d2, { class: "h-4" }), o(d2, { class: "h-4 -ml-3" }), o(d2, { class: "h-4 -ml-3" })]), i("div", { class: "previousMonth flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm", onClick: l2[1] || (l2[1] = (e2) => u2.selectDate("month", "previous")) }, [o(d2, { class: "h-4" }), o(d2, { class: "h-4 -ml-3" })]), i("div", { class: "previousDay flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm", onClick: l2[2] || (l2[2] = (e2) => u2.selectDate("day", "previous")) }, [o(d2, { class: "h-4" })])]), i("div", Lo, _(u2.currentDate), 1), i("div", Fo, [i("div", { class: "previousDay flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm", onClick: l2[3] || (l2[3] = (e2) => u2.selectDate("day", "next")) }, [o(c2, { class: "h-4" })]), i("div", { class: "previousMonth flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm", onClick: l2[4] || (l2[4] = (e2) => u2.selectDate("month", "next")) }, [o(c2, { class: "h-4" }), o(c2, { class: "h-4 -ml-3" })]), i("div", { class: "previousYear flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm", onClick: l2[5] || (l2[5] = (e2) => u2.selectDate("year", "next")) }, [o(c2, { class: "h-4" }), o(c2, { class: "h-4 -ml-3" }), o(c2, { class: "h-4 -ml-3" })])])]);
2287
+ }]]), zo = { name: "SkeletonTable" }, $o = { class: "px-4 sm:px-6 lg:px-8 animate-pulse" }, Ho = { class: "flow-root" }, Vo = { class: "-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8" }, Yo = { class: "inline-block min-w-full py-2 align-middle px-1" }, Uo = { class: "overflow-hidden shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg" }, qo = { class: "min-w-full divide-y divide-gray-300" }, Wo = i("thead", { class: "bg-gray-50" }, [i("tr", null, [i("th", { scope: "col", class: "py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })]), i("th", { scope: "col", class: "px-3 py-3.5 text-left text-sm font-semibold text-gray-900" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })]), i("th", { scope: "col", class: "px-3 py-3.5 text-left text-sm font-semibold text-gray-900" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })]), i("th", { scope: "col", class: "px-3 py-3.5 text-left text-sm font-semibold text-gray-900" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })]), i("th", { scope: "col", class: "relative py-3.5 pl-3 pr-4 sm:pr-6" }, [i("span", { class: "sr-only" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })])])])], -1), Ko = { class: "divide-y divide-gray-200 bg-white" }, Jo = [i("td", { class: "whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })], -1), i("td", { class: "whitespace-nowrap px-3 py-4 text-sm text-gray-500" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })], -1), i("td", { class: "whitespace-nowrap px-3 py-4 text-sm text-gray-500" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })], -1), i("td", { class: "whitespace-nowrap px-3 py-4 text-sm text-gray-500" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })], -1), i("td", { class: "relative whitespace-nowrap py-4 pl-3 pr-4 text-right text-sm font-medium sm:pr-6" }, [i("a", { href: "#", class: "text-indigo-600 hover:text-indigo-900" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" }), i("span", { class: "sr-only" }, [I(", {"), i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })])])], -1)];
2288
+ const Go = Ro(zo, [["render", function(t2, l2, n2, o2, r2, s2) {
2289
+ return e(), a("div", $o, [i("div", Ho, [i("div", Vo, [i("div", Yo, [i("div", Uo, [i("table", qo, [Wo, i("tbody", Ko, [(e(), a(x, null, j(10, (e2) => i("tr", { key: e2 }, Jo)), 64))])])])])])])]);
2287
2290
  }]]);
2288
- var Go = { exports: {} };
2289
- Go.exports = function(e2, t2, l2) {
2291
+ var Zo = { exports: {} };
2292
+ Zo.exports = function(e2, t2, l2) {
2290
2293
  t2.prototype.isToday = function() {
2291
2294
  var e3 = "YYYY-MM-DD", t3 = l2();
2292
2295
  return this.format(e3) === t3.format(e3);
2293
2296
  };
2294
2297
  };
2295
- const Zo = Po(Go.exports), Xo = { class: "text-xs" }, Qo = { class: "font-bold text-lg" }, er = { class: "text-xs font-medium" };
2296
- const tr = { name: "dayPrice", props: { currency: String, price: Object, basePrice: Number, isBasePrice: { type: Boolean, default: false } }, computed: { currentDay() {
2298
+ const Xo = jo(Zo.exports), Qo = { class: "text-xs" }, er = { class: "font-bold text-lg" }, tr = { class: "text-xs font-medium" };
2299
+ const lr = { name: "dayPrice", props: { currency: String, price: Object, basePrice: Number, isBasePrice: { type: Boolean, default: false } }, computed: { currentDay() {
2297
2300
  return { isWeekend: 6 == Y(this.price.date).format("d") || 0 == Y(this.price.date).format("d"), price: this.price.price };
2298
- } } }, lr = { class: "priceDay" };
2299
- const nr = { name: "uiPriceCalendar", data: () => ({ today: /* @__PURE__ */ new Date(), date: /* @__PURE__ */ new Date(), selectedRooms: [], showBasePricesModal: false, showDays: 14 }), props: { type: String, category: { type: Object, required: true }, rooms: { type: Array, required: true }, currency: Object, actions: Array, loading: { type: Boolean, default: true }, literals: { type: Object, required: true } }, components: { DateSelector: Fo, Day: jo({ name: "calendarDay", props: { day: Object }, computed: { currentDay() {
2300
- return Y.extend(Zo), { dayName: Y(this.day).locale("es").format("ddd"), day: Y(this.day).locale("es").format("DD"), month: Y(this.day).locale("es").format("MMM."), isWeekend: 6 == Y(this.day).format("d") || 0 == Y(this.day).format("d"), isToday: Y(this.day).isToday() };
2301
+ } } }, nr = { class: "priceDay" };
2302
+ const ar = { name: "uiPriceCalendar", data: () => ({ today: /* @__PURE__ */ new Date(), date: /* @__PURE__ */ new Date(), selectedRooms: [], showBasePricesModal: false, showDays: 14 }), props: { type: String, category: { type: Object, required: true }, rooms: { type: Array, required: true }, currency: Object, actions: Array, loading: { type: Boolean, default: true }, literals: { type: Object, required: true } }, components: { DateSelector: No, Day: Ro({ name: "calendarDay", props: { day: Object }, computed: { currentDay() {
2303
+ return Y.extend(Xo), { dayName: Y(this.day).locale("es").format("ddd"), day: Y(this.day).locale("es").format("DD"), month: Y(this.day).locale("es").format("MMM."), isWeekend: 6 == Y(this.day).format("d") || 0 == Y(this.day).format("d"), isToday: Y(this.day).isToday() };
2301
2304
  } } }, [["render", function(t2, l2, o2, r2, s2, u2) {
2302
- return e(), a("div", { class: n(["day select-none text-center", { "bg-indigo-200 text-white": u2.currentDay.isWeekend, "bg-[#0ff] text-white": u2.currentDay.isToday }]) }, [i("p", Xo, _(u2.currentDay.dayName), 1), i("p", Qo, _(u2.currentDay.day), 1), i("p", er, _(u2.currentDay.month), 1)], 2);
2303
- }]]), Price: jo(tr, [["render", function(t2, l2, o2, r2, s2, u2) {
2304
- return e(), a("div", lr, [i("div", { class: n([{ "bg-indigo-200 text-white": u2.currentDay.isWeekend, "bg-green-300 text-white": o2.price.price > o2.basePrice, "bg-yellow-300 text-white": o2.price.price < o2.basePrice }, "select-none text-center rounded-lg p-1"]) }, _(u2.currentDay.price) + _(o2.currency), 3)]);
2305
- }]]), uiButton: X, SkeletonTable: Jo }, computed: { days() {
2305
+ return e(), a("div", { class: n(["day select-none text-center", { "bg-indigo-200 text-white": u2.currentDay.isWeekend, "bg-[#0ff] text-white": u2.currentDay.isToday }]) }, [i("p", Qo, _(u2.currentDay.dayName), 1), i("p", er, _(u2.currentDay.day), 1), i("p", tr, _(u2.currentDay.month), 1)], 2);
2306
+ }]]), Price: Ro(lr, [["render", function(t2, l2, o2, r2, s2, u2) {
2307
+ return e(), a("div", nr, [i("div", { class: n([{ "bg-indigo-200 text-white": u2.currentDay.isWeekend, "bg-green-300 text-white": o2.price.price > o2.basePrice, "bg-yellow-300 text-white": o2.price.price < o2.basePrice }, "select-none text-center rounded-lg p-1"]) }, _(u2.currentDay.price) + _(o2.currency), 3)]);
2308
+ }]]), uiButton: X, SkeletonTable: Go }, computed: { days() {
2306
2309
  let e2 = [];
2307
2310
  for (let t2 = 0; t2 < this.showDays; t2++)
2308
2311
  e2.push(Y(this.date).add(t2, "day"));
@@ -2324,44 +2327,44 @@ const nr = { name: "uiPriceCalendar", data: () => ({ today: /* @__PURE__ */ new
2324
2327
  this.$emit("tableAction", e2);
2325
2328
  }, changeRoomPrice(e2) {
2326
2329
  this.$emit("changeRoomPrice", e2);
2327
- } } }, ar = { key: 0, class: "px-4 sm:px-6 lg:px-8" }, or = { class: "flow-root" }, rr = { class: "overflow-x-auto sm:-mx-6 lg:-mx-8 shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg" }, ir = { class: "inline-block min-w-full align-middle" }, sr = { class: "min-w-full text-sm" }, ur = { class: "bg-white" }, dr = { colspan: "6", scope: "colgroup", class: "bg-gray-50 py-2 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-3" }, cr = { colspan: "20", scope: "colgroup", class: "bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, pr = { key: 0 }, gr = { colspan: "6", class: "pl-4" }, fr = { key: 1 }, mr = { colspan: "6", class: "pl-4" }, vr = { key: 2 }, br = { colspan: "6", class: "pl-4" }, yr = { colspan: "20", scope: "colgroup", class: "bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900 relative" }, hr = { key: 0, class: "absolute top-0 left-12 flex h-12 items-center space-x-3 sm:left-48 bg-white shadow rounded px-4 py-1 z-10" }, xr = ["onClick"], wr = { colspan: "2", scope: "colgroup", class: "relative bg-gray-100 py-3.5 pl-4 pr-3 text-left font-semibold text-gray-900" }, kr = ["checked", "indeterminate"], Sr = { class: "pl-6" }, Cr = { colspan: "2", scope: "colgroup", class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, Or = { colspan: "2", scope: "colgroup", class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, Mr = i("th", { colspan: "14", scope: "colgroup", class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, null, -1), Tr = { colspan: "2", class: "relative py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6" }, Er = { key: 0, class: "absolute inset-y-0 left-0 w-0.5 bg-indigo-600" }, Dr = ["value"], Ir = { class: "pl-6" }, _r = { colspan: "2", class: "pl-4" }, Pr = { colspan: "2", class: "pl-4" };
2328
- const jr = jo(nr, [["render", function(l2, r2, s2, u2, d2, c2) {
2330
+ } } }, or = { key: 0, class: "px-4 sm:px-6 lg:px-8" }, rr = { class: "flow-root" }, ir = { class: "overflow-x-auto sm:-mx-6 lg:-mx-8 shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg" }, sr = { class: "inline-block min-w-full align-middle" }, ur = { class: "min-w-full text-sm" }, dr = { class: "bg-white" }, cr = { 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" }, pr = { colspan: "20", scope: "colgroup", class: "bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, gr = { key: 0 }, fr = { colspan: "6", class: "pl-4" }, mr = { key: 1 }, vr = { colspan: "6", class: "pl-4" }, yr = { key: 2 }, br = { colspan: "6", class: "pl-4" }, hr = { colspan: "20", scope: "colgroup", class: "bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900 relative" }, xr = { 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" }, wr = ["onClick"], kr = { colspan: "2", scope: "colgroup", class: "relative bg-gray-100 py-3.5 pl-4 pr-3 text-left font-semibold text-gray-900" }, Sr = ["checked", "indeterminate"], Cr = { class: "pl-6" }, Or = { colspan: "2", scope: "colgroup", class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, Mr = { 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" }, Dr = { key: 0, class: "absolute inset-y-0 left-0 w-0.5 bg-indigo-600" }, Ir = ["value"], _r = { class: "pl-6" }, Pr = { colspan: "2", class: "pl-4" }, jr = { colspan: "2", class: "pl-4" };
2331
+ const Rr = Ro(ar, [["render", function(l2, r2, s2, u2, d2, c2) {
2329
2332
  var _a2, _b;
2330
2333
  const p2 = $("DateSelector"), g2 = $("Day"), f2 = $("uiButton"), m2 = $("Price"), v2 = $("SkeletonTable");
2331
- return s2.loading ? (e(), t(v2, { key: 1 })) : (e(), a("div", ar, [i("div", or, [i("div", rr, [i("div", ir, [i("table", sr, [i("tbody", ur, [i("tr", null, [i("th", dr, [o(p2, { selectedDate: l2.date, onDateSelected: r2[0] || (r2[0] = (e2) => c2.changeDate(e2)) }, null, 8, ["selectedDate"])]), (e(true), a(x, null, j(c2.days, (t2, l3) => (e(), a("th", { scope: "col", key: l3, class: "text-sm font-semibold text-gray-900 p-0" }, [o(g2, { class: "border-l border-gray-200 px-6 py-3", day: t2 }, null, 8, ["day"])]))), 128))]), i("tr", null, [i("th", cr, [i("span", null, _(s2.literals.category) + " " + _(s2.category.name), 1), o(f2, { loading: s2.loading, class: "ml-4", size: "small", onClick: c2.changeCategoryBulkPrices }, { default: D(() => [I(_(s2.literals.changeInBulk), 1)]), _: 1 }, 8, ["loading", "onClick"])])]), "discounts" === s2.type ? (e(), a("tr", pr, [i("td", gr, _(s2.literals.pricesDiscount), 1), (e(true), a(x, null, j(s2.category.selectionPrices, (t2, l3) => (e(), a("td", { key: l3, class: "p-0" }, [o(m2, { onClick: (e2) => c2.changeCategorySelectionPrice(t2), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer", price: t2, currency: s2.currency.symbol, isBasePrice: true }, null, 8, ["onClick", "price", "currency"])]))), 128))])) : R("", true), "prices" === s2.type ? (e(), a("tr", fr, [i("td", mr, _(s2.literals.pricesSelection), 1), (e(true), a(x, null, j(s2.category.selectionPrices, (t2, l3) => (e(), a("td", { key: l3, class: "p-0" }, [o(m2, { onClick: (e2) => c2.changeCategorySelectionPrice(t2), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer", price: t2, currency: s2.currency.symbol, isBasePrice: true }, null, 8, ["onClick", "price", "currency"])]))), 128))])) : R("", true), "prices" === s2.type ? (e(), a("tr", vr, [i("td", br, _(s2.literals.pricesUpgrade), 1), (e(true), a(x, null, j(s2.category.upgradePrices, (t2, l3) => (e(), a("td", { key: l3, class: "p-0" }, [o(m2, { onClick: (e2) => c2.changeCategoryUpgradePrice(t2), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer bg-gray-100", price: t2, currency: s2.currency.symbol, isBasePrice: true }, null, 8, ["onClick", "price", "currency"])]))), 128))])) : R("", true), i("tr", null, [i("th", yr, [((_a2 = l2.selectedRooms) == null ? void 0 : _a2.length) > 0 && ((_b = s2.actions) == null ? void 0 : _b.length) > 0 ? (e(), a("div", hr, [(e(true), a(x, null, j(s2.actions, (t2, n2) => (e(), a("button", { onClick: (e2) => c2.tableAction({ action: t2.id, items: l2.selectedRooms }), key: n2, type: "button", class: "inline-flex items-center rounded bg-indigo-600 hover:bg-indigo-800 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm disabled:cursor-not-allowed disabled:opacity-30" }, _(t2.name), 9, xr))), 128))])) : R("", true), i("span", null, _(s2.literals.pricesSelection), 1)])]), i("tr", null, [i("th", wr, [i("input", { type: "checkbox", class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600", checked: c2.indeterminate || l2.selectedRooms.length === s2.rooms.length, indeterminate: c2.indeterminate, onChange: r2[1] || (r2[1] = (e2) => l2.selectedRooms = e2.target.checked ? s2.rooms.map((e3) => e3.name) : []) }, null, 40, kr), i("span", Sr, _(s2.literals.room), 1)]), i("th", Cr, _(s2.literals.building), 1), i("th", Or, _(s2.literals.floor), 1), Mr]), (e(true), a(x, null, j(s2.rooms, (t2) => (e(), a("tr", { key: t2.name, class: n([{ "even:bg-gray-100": "prices" === s2.type, "odd:bg-gray-100": "discounts" === s2.type }]) }, [i("td", Tr, [l2.selectedRooms.includes(t2.name) ? (e(), a("div", Er)) : R("", true), B(i("input", { type: "checkbox", class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600", value: t2.name, "onUpdate:modelValue": r2[2] || (r2[2] = (e2) => l2.selectedRooms = e2) }, null, 8, Dr), [[H, l2.selectedRooms]]), i("span", Ir, _(t2.name), 1)]), i("td", _r, _(t2.building), 1), i("td", Pr, _(t2.floor), 1), (e(true), a(x, null, j(t2.selectionPrices, (t3, l3) => (e(), a("td", { class: "p-0", key: l3 }, [o(m2, { onClick: (e2) => c2.changeRoomPrice(t3), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 cursor-pointer", price: t3, currency: s2.currency.symbol, basePrice: c2.getSelectionBasePrice(t3) }, null, 8, ["onClick", "price", "currency", "basePrice"])]))), 128))], 2))), 128))])])])])])]));
2332
- }]]), Rr = { class: "chart-selector flex flex-row items-center justify-center" }, Br = { name: "rangeSelector" }, Lr = Object.assign(Br, { props: { range: { type: String } }, emits: ["rangeSelected"], setup(t2, { emit: l2 }) {
2334
+ return s2.loading ? (e(), t(v2, { key: 1 })) : (e(), a("div", or, [i("div", rr, [i("div", ir, [i("div", sr, [i("table", ur, [i("tbody", dr, [i("tr", null, [i("th", cr, [o(p2, { selectedDate: l2.date, onDateSelected: r2[0] || (r2[0] = (e2) => c2.changeDate(e2)) }, null, 8, ["selectedDate"])]), (e(true), a(x, null, j(c2.days, (t2, l3) => (e(), a("th", { scope: "col", key: l3, class: "text-sm font-semibold text-gray-900 p-0" }, [o(g2, { class: "border-l border-gray-200 px-6 py-3", day: t2 }, null, 8, ["day"])]))), 128))]), i("tr", null, [i("th", pr, [i("span", null, _(s2.literals.category) + " " + _(s2.category.name), 1), o(f2, { loading: s2.loading, class: "ml-4", size: "small", onClick: c2.changeCategoryBulkPrices }, { default: D(() => [I(_(s2.literals.changeInBulk), 1)]), _: 1 }, 8, ["loading", "onClick"])])]), "discounts" === s2.type ? (e(), a("tr", gr, [i("td", fr, _(s2.literals.pricesDiscount), 1), (e(true), a(x, null, j(s2.category.selectionPrices, (t2, l3) => (e(), a("td", { key: l3, class: "p-0" }, [o(m2, { onClick: (e2) => c2.changeCategorySelectionPrice(t2), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer", price: t2, currency: s2.currency.symbol, isBasePrice: true }, null, 8, ["onClick", "price", "currency"])]))), 128))])) : R("", true), "prices" === s2.type ? (e(), a("tr", mr, [i("td", vr, _(s2.literals.pricesSelection), 1), (e(true), a(x, null, j(s2.category.selectionPrices, (t2, l3) => (e(), a("td", { key: l3, class: "p-0" }, [o(m2, { onClick: (e2) => c2.changeCategorySelectionPrice(t2), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer", price: t2, currency: s2.currency.symbol, isBasePrice: true }, null, 8, ["onClick", "price", "currency"])]))), 128))])) : R("", true), "prices" === s2.type ? (e(), a("tr", yr, [i("td", br, _(s2.literals.pricesUpgrade), 1), (e(true), a(x, null, j(s2.category.upgradePrices, (t2, l3) => (e(), a("td", { key: l3, class: "p-0" }, [o(m2, { onClick: (e2) => c2.changeCategoryUpgradePrice(t2), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer bg-gray-100", price: t2, currency: s2.currency.symbol, isBasePrice: true }, null, 8, ["onClick", "price", "currency"])]))), 128))])) : R("", true), i("tr", null, [i("th", hr, [((_a2 = l2.selectedRooms) == null ? void 0 : _a2.length) > 0 && ((_b = s2.actions) == null ? void 0 : _b.length) > 0 ? (e(), a("div", xr, [(e(true), a(x, null, j(s2.actions, (t2, n2) => (e(), a("button", { onClick: (e2) => c2.tableAction({ action: t2.id, items: l2.selectedRooms }), key: n2, type: "button", class: "inline-flex items-center rounded bg-indigo-600 hover:bg-indigo-800 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm disabled:cursor-not-allowed disabled:opacity-30" }, _(t2.name), 9, wr))), 128))])) : R("", true), i("span", null, _(s2.literals.pricesSelection), 1)])]), i("tr", null, [i("th", kr, [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, Sr), i("span", Cr, _(s2.literals.room), 1)]), i("th", Or, _(s2.literals.building), 1), i("th", Mr, _(s2.literals.floor), 1), Tr]), (e(true), a(x, null, j(s2.rooms, (t2) => (e(), a("tr", { key: t2.name, class: n([{ "even:bg-gray-100": "prices" === s2.type, "odd:bg-gray-100": "discounts" === s2.type }]) }, [i("td", Er, [l2.selectedRooms.includes(t2.name) ? (e(), a("div", Dr)) : 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, Ir), [[H, l2.selectedRooms]]), i("span", _r, _(t2.name), 1)]), i("td", Pr, _(t2.building), 1), i("td", jr, _(t2.floor), 1), (e(true), a(x, null, j(t2.selectionPrices, (t3, l3) => (e(), a("td", { class: "p-0", key: l3 }, [o(m2, { onClick: (e2) => c2.changeRoomPrice(t3), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 cursor-pointer", price: t3, currency: s2.currency.symbol, basePrice: c2.getSelectionBasePrice(t3) }, null, 8, ["onClick", "price", "currency", "basePrice"])]))), 128))], 2))), 128))])])])])])]));
2335
+ }]]), Br = { class: "chart-selector flex flex-row items-center justify-center" }, Ar = { name: "rangeSelector" }, Lr = Object.assign(Ar, { props: { range: { type: String } }, emits: ["rangeSelected"], setup(t2, { emit: l2 }) {
2333
2336
  const o2 = l2, r2 = t2;
2334
2337
  let s2 = u(() => r2.range);
2335
2338
  const c2 = (e2) => {
2336
2339
  s2.value = e2, o2("rangeSelected", e2);
2337
2340
  };
2338
- return (t3, l3) => (e(), a("ul", Rr, [i("li", { class: n({ selected: "24h" === d(s2) }), onClick: l3[0] || (l3[0] = (e2) => c2("24h")) }, " 24H ", 2), i("li", { class: n({ selected: "7d" === d(s2) }), onClick: l3[1] || (l3[1] = (e2) => c2("7d")) }, "7D", 2), i("li", { class: n({ selected: "1m" === d(s2) }), onClick: l3[2] || (l3[2] = (e2) => c2("1m")) }, "1M", 2), i("li", { class: n({ selected: "3m" === d(s2) }), onClick: l3[3] || (l3[3] = (e2) => c2("3m")) }, "3M", 2)]));
2339
- } }), Ar = { class: "chart-header flex flex-row justify-between" }, Fr = { class: "text-sm font-medium text-gray-500 truncate" }, Nr = { class: "chart-content" }, zr = { class: "h-full w-full flex items-center justify-center flex-col" }, $r = i("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1), Hr = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, Vr = [i("div", { role: "status", class: "w-full animate-pulse h-full flex flex-col" }, [i("div", { class: "h-2.5 w-36 bg-gray-200 rounded-full mb-2.5" }), i("div", { class: "w-48 h-2 mb-6 bg-gray-200 rounded-full" }), i("div", { class: "flex flex-row justify-between items-baseline grow gap-x-1" }, [i("div", { class: "w-full bg-gray-200 rounded h-full" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" }), i("div", { class: "w-full bg-gray-200 rounded h-1/3" }), i("div", { class: "w-full bg-gray-200 rounded h-4/5" }), i("div", { class: "w-full bg-gray-200 rounded h-full" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" }), i("div", { class: "w-full bg-gray-200 rounded h-1/3" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" }), i("div", { class: "w-full bg-gray-200 rounded h-1/3" }), i("div", { class: "w-full bg-gray-200 rounded h-4/5" }), i("div", { class: "w-full bg-gray-200 rounded h-full" }), i("div", { class: "w-full bg-gray-200 rounded h-4/5" }), i("div", { class: "w-full bg-gray-200 rounded h-full" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" }), i("div", { class: "w-full bg-gray-200 rounded h-1/3" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" })])], -1)], Yr = { name: "uiChart" }, Ur = Object.assign(Yr, { props: { title: String, id: { type: String, default: "noChartId" }, type: { type: String, default: "area" }, series: { type: Array, required: true }, options: { type: Object, required: true }, loading: { type: Boolean, default: true }, empty: { type: Boolean, default: false }, range: { type: String, default: "24h" }, horizontal: { type: Boolean, default: false }, stacked: { type: Boolean, default: false }, height: { type: Number, default: 320 } }, emits: ["selectedRange", "chartUpdated", "dataPointSelection"], setup(t2, { emit: l2 }) {
2341
+ return (t3, l3) => (e(), a("ul", Br, [i("li", { class: n({ selected: "24h" === d(s2) }), onClick: l3[0] || (l3[0] = (e2) => c2("24h")) }, " 24H ", 2), i("li", { class: n({ selected: "7d" === d(s2) }), onClick: l3[1] || (l3[1] = (e2) => c2("7d")) }, "7D", 2), i("li", { class: n({ selected: "1m" === d(s2) }), onClick: l3[2] || (l3[2] = (e2) => c2("1m")) }, "1M", 2), i("li", { class: n({ selected: "3m" === d(s2) }), onClick: l3[3] || (l3[3] = (e2) => c2("3m")) }, "3M", 2)]));
2342
+ } }), Fr = { class: "chart-header flex flex-row justify-between" }, Nr = { class: "text-sm font-medium text-gray-500 truncate" }, zr = { class: "chart-content" }, $r = { class: "h-full w-full flex items-center justify-center flex-col" }, Hr = i("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1), Vr = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, Yr = [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)], Ur = { name: "uiChart" }, qr = Object.assign(Ur, { props: { title: String, id: { type: String, default: "noChartId" }, type: { type: String, default: "area" }, series: { type: Array, required: true }, options: { type: Object, required: true }, loading: { type: Boolean, default: true }, empty: { type: Boolean, default: false }, range: { type: String, default: "24h" }, horizontal: { type: Boolean, default: false }, stacked: { type: Boolean, default: false }, height: { type: Number, default: 320 } }, emits: ["selectedRange", "chartUpdated", "dataPointSelection"], setup(t2, { emit: l2 }) {
2340
2343
  const r2 = l2, s2 = t2;
2341
2344
  let c2 = { chart: { toolbar: { show: false }, zoom: { enabled: false } }, colors: ["#715aff", "#00ffff", "#aba9ba"], stroke: { show: true, curve: "stepline", lineCap: "butt", width: 1, dashArray: 0 }, dataLabels: { enabled: false }, markers: { strokeWidth: 0, size: 4, hover: { size: 8 } } };
2342
2345
  "area" === s2.type && (c2.tooltip = { intersect: true, shared: false });
2343
2346
  const p2 = u(() => s2.series), g2 = u(() => (c2.chart.stacked = s2.stacked, { ...c2, ...s2.options, plotOptions: { bar: { horizontal: s2.horizontal } } })), f2 = () => r2("chartUpdated"), m2 = (e2, t3, l3) => {
2344
2347
  r2("dataPointSelection", { id: s2.id, chartContext: t3, config: l3, event: e2 });
2345
2348
  };
2346
- return (l3, r3) => (e(), a(x, null, [B(i("div", { class: n(["h-[" + t2.height + "px]", "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"]) }, [i("div", Ar, [i("div", Fr, _(t2.title), 1), o(Lr, { range: t2.range, onRangeSelected: r3[0] || (r3[0] = (e2) => l3.$emit("selectedRange", { range: e2, chartId: t2.id })) }, null, 8, ["range"])]), B(i("div", Nr, [o(d(U), { type: t2.type, series: p2.value, width: "100%", height: t2.height, options: g2.value, onUpdated: f2, onMounted: f2, onDataPointSelection: m2 }, null, 8, ["type", "series", "height", "options"])], 512), [[A, !t2.empty]]), B(i("div", zr, [o(W, { icon: d(un), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), $r], 512), [[A, t2.empty]])], 2), [[A, !t2.loading]]), B(i("div", Hr, Vr, 512), [[A, t2.loading]])], 64));
2347
- } }), qr = { name: "uiFooter" }, Wr = { class: "bg-white" }, Kr = [i("div", { class: "mx-auto py-6 px-4 sm:px-6 md:flex md:items-center md:justify-between lg:px-8" }, [i("div", { class: "mt-8 md:mt-0 md:order-1" }, [i("p", { class: "text-center text-base text-gray-400" }, "© Made by Hotelinking.")])], -1)];
2348
- const Jr = jo(qr, [["render", function(t2, l2, n2, o2, r2, i2) {
2349
- return e(), a("footer", Wr, Kr);
2350
- }]]), Gr = i("div", { class: "spinner h-12 w-12 mb-6" }, [i("img", { src: "https://images.hotelinking.com/ui/loader.gif", alt: "loading animation" })], -1), Zr = { name: "uiLoadScreen" }, Xr = Object.assign(Zr, { props: { title: String, message: String, fixed: { type: Boolean, default: true } }, setup: (t2) => (l2, o2) => (e(), a("div", { class: n([{ fixed: t2.fixed }, "load-screen h-full w-full top-0 left-0 z-50 flex flex-col items-center justify-center bg-gray-50"]) }, [Gr, B(i("h2", { class: "text-xs font-bold text-center uppercase mb-2" }, _(t2.title), 513), [[A, t2.title]]), B(i("p", { class: "text-xs text-center uppercase md:w-1/4" }, _(t2.message), 513), [[A, t2.message]])], 2)) }), Qr = { key: 0, class: "py-6 flex items-center justify-between" }, ei = { class: "flex-1 flex justify-between sm:hidden" }, ti = { href: "#", class: "relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50" }, li = { href: "#", class: "ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50" }, ni = { class: "hidden sm:flex-1 sm:flex sm:items-center sm:justify-between" }, ai = { class: "text-sm text-gray-700" }, oi = { class: "font-bold" }, ri = { class: "font-bold" }, ii = { class: "relative z-0 inline-flex rounded-md shadow-sm -space-x-px", "aria-label": "Pagination" }, si = { class: "sr-only" }, ui = ["onClick"], di = { class: "sr-only" }, ci = { key: 1, class: "py-6 flex flex-row justify-between items-center animate-pulse" }, pi = [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5" }, null, -1), i("div", { class: "h-10 w-32 bg-gray-200 rounded dark:bg-gray-300" }, null, -1)], gi = { name: "uiPagination" }, fi = Object.assign(gi, { props: { current: { type: Number, requires: true }, total: { type: Number, requires: true }, loading: { type: Boolean, default: true } }, emits: ["changePage"], setup(t2, { emit: l2 }) {
2349
+ return (l3, r3) => (e(), a(x, null, [B(i("div", { class: n(["h-[" + t2.height + "px]", "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"]) }, [i("div", Fr, [i("div", Nr, _(t2.title), 1), o(Lr, { range: t2.range, onRangeSelected: r3[0] || (r3[0] = (e2) => l3.$emit("selectedRange", { range: e2, chartId: t2.id })) }, null, 8, ["range"])]), B(i("div", zr, [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", $r, [o(W, { icon: d(un), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), Hr], 512), [[L, t2.empty]])], 2), [[L, !t2.loading]]), B(i("div", Vr, Yr, 512), [[L, t2.loading]])], 64));
2350
+ } }), Wr = { name: "uiFooter" }, Kr = { class: "bg-white" }, Jr = [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)];
2351
+ const Gr = Ro(Wr, [["render", function(t2, l2, n2, o2, r2, i2) {
2352
+ return e(), a("footer", Kr, Jr);
2353
+ }]]), Zr = i("div", { class: "spinner h-12 w-12 mb-6" }, [i("img", { src: "https://images.hotelinking.com/ui/loader.gif", alt: "loading animation" })], -1), Xr = { name: "uiLoadScreen" }, Qr = Object.assign(Xr, { 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"]) }, [Zr, 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)) }), ei = { key: 0, class: "py-6 flex items-center justify-between" }, ti = { class: "flex-1 flex justify-between sm:hidden" }, li = { 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" }, ni = { 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" }, ai = { class: "hidden sm:flex-1 sm:flex sm:items-center sm:justify-between" }, oi = { class: "text-sm text-gray-700" }, ri = { class: "font-bold" }, ii = { class: "font-bold" }, si = { class: "relative z-0 inline-flex rounded-md shadow-sm -space-x-px", "aria-label": "Pagination" }, ui = { class: "sr-only" }, di = ["onClick"], ci = { class: "sr-only" }, pi = { key: 1, class: "py-6 flex flex-row justify-between items-center animate-pulse" }, gi = [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" }, mi = 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 }) {
2351
2354
  const c2 = l2, p2 = t2, g2 = s(3), f2 = u(() => Math.max(1, Number(p2.current) - Number(g2.value))), m2 = u(() => Math.min(Number(p2.current) + Number(g2.value), Number(p2.total))), v2 = u(() => {
2352
2355
  let e2 = [];
2353
2356
  for (let t3 = Number(f2.value); t3 <= Number(m2.value); t3++)
2354
2357
  e2.push(t3);
2355
2358
  return e2;
2356
2359
  });
2357
- return (l3, s2) => t2.loading ? (e(), a("div", ci, pi)) : (e(), a("div", Qr, [i("div", ei, [i("a", ti, [r(l3.$slots, "previous")]), i("a", li, [r(l3.$slots, "next")])]), i("div", ni, [i("div", null, [i("p", ai, [r(l3.$slots, "showing"), I(), i("span", oi, _(t2.current + " "), 1), r(l3.$slots, "of"), I(), i("span", ri, _(t2.total), 1)])]), i("div", null, [i("nav", ii, [B(i("button", { onClick: s2[0] || (s2[0] = (e2) => c2("changePage", t2.current - 1)), class: "relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50" }, [i("span", si, [r(l3.$slots, "previous")]), o(d(an), { class: "h-5 w-5", "aria-hidden": "true" })], 512), [[A, 1 !== t2.current]]), (e(true), a(x, null, j(v2.value, (l4) => (e(), a("button", { onClick: (e2) => c2("changePage", l4), key: l4, "aria-current": "page", class: n([[l4 === t2.current ? "z-10 bg-indigo-50 border-indigo-500 text-indigo-600" : "bg-white border-gray-300 text-gray-500 hover:bg-gray-50"], "relative inline-flex items-center px-4 py-2 border text-sm font-medium"]) }, _(l4), 11, ui))), 128)), B(i("button", { onClick: s2[1] || (s2[1] = (e2) => c2("changePage", t2.current + 1)), class: "relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50" }, [i("span", di, [r(l3.$slots, "next")]), o(d(on), { class: "h-5 w-5", "aria-hidden": "true" })], 512), [[A, t2.current !== t2.total]])])])])]));
2358
- } }), mi = { class: "hidden md:flex md:flex-col sticky md:inset-y-0" }, vi = { class: "flex flex-col flex-grow overflow-y-auto" }, bi = { class: "grow flex flex-col" }, yi = { class: "flex-1 space-y-1", "aria-label": "Sidebar" }, hi = { key: 0 }, xi = ["onClick"], wi = { key: 0 }, ki = { key: 1, class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, Si = { key: 0, class: "flex-1" }, Ci = { key: 1, class: "flex-1" }, Oi = [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1)], Mi = { key: 0 }, Ti = { key: 1, class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, Ei = { name: "uiSidebar" }, Di = Object.assign(Ei, { props: { navigation: { type: Array, required: true }, loading: { type: Boolean, default: true } }, emits: ["sideBarClick"], setup(l2, { emit: r2 }) {
2360
+ return (l3, s2) => t2.loading ? (e(), a("div", pi, gi)) : (e(), a("div", ei, [i("div", ti, [i("a", li, [r(l3.$slots, "previous")]), i("a", ni, [r(l3.$slots, "next")])]), i("div", ai, [i("div", null, [i("p", oi, [r(l3.$slots, "showing"), I(), i("span", ri, _(t2.current + " "), 1), r(l3.$slots, "of"), I(), i("span", ii, _(t2.total), 1)])]), i("div", null, [i("nav", si, [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", ui, [r(l3.$slots, "previous")]), o(d(an), { class: "h-5 w-5", "aria-hidden": "true" })], 512), [[L, 1 !== t2.current]]), (e(true), a(x, null, j(v2.value, (l4) => (e(), a("button", { onClick: (e2) => c2("changePage", l4), key: l4, "aria-current": "page", class: n([[l4 === t2.current ? "z-10 bg-indigo-50 border-indigo-500 text-indigo-600" : "bg-white border-gray-300 text-gray-500 hover:bg-gray-50"], "relative inline-flex items-center px-4 py-2 border text-sm font-medium"]) }, _(l4), 11, di))), 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", ci, [r(l3.$slots, "next")]), o(d(on), { class: "h-5 w-5", "aria-hidden": "true" })], 512), [[L, t2.current !== t2.total]])])])])]));
2361
+ } }), vi = { 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" }, hi = { class: "flex-1 space-y-1", "aria-label": "Sidebar" }, xi = { key: 0 }, wi = ["onClick"], ki = { key: 0 }, Si = { key: 1, class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, Ci = { key: 0, class: "flex-1" }, 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)], Ti = { key: 0 }, Ei = { key: 1, class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, Di = { name: "uiSidebar" }, Ii = Object.assign(Di, { props: { navigation: { type: Array, required: true }, loading: { type: Boolean, default: true } }, emits: ["sideBarClick"], setup(l2, { emit: r2 }) {
2359
2362
  const s2 = r2;
2360
- return (r3, u2) => (e(), a("div", mi, [i("div", vi, [i("div", bi, [i("nav", yi, [(e(true), a(x, null, j(l2.navigation, (r4) => (e(), a(x, { key: r4.name }, [r4.children ? (e(), t(d(bl), { key: 1, as: "div", class: "space-y-1" }, { default: D(({ open: i2 }) => [o(d(yl), { class: n([r4.current ? "bg-indigo-600 text-white" : "text-gray-600 hover:bg-gray-50 hover:text-gray-900", "group w-full flex items-center pl-2 pr-1 py-2 text-left text-sm font-medium rounded-md focus:outline-none"]) }, { default: D(() => [o(W, { loading: l2.loading, icon: r4.icon, class: "mr-3 flex-shrink-0 h-6 w-6 text-gray-400 group-hover:text-gray-500", "aria-hidden": "true" }, null, 8, ["loading", "icon"]), l2.loading ? (e(), a("div", Ci, Oi)) : (e(), a("span", Si, _(r4.name), 1)), o(d(on), { class: n([i2 ? "text-gray-400 rotate-90" : "text-gray-400", "ml-3 flex-shrink-0 h-3 w-3 transform group-hover:text-gray-400 transition-colors ease-in-out duration-150"]) }, null, 8, ["class"])]), _: 2 }, 1032, ["class"]), o(d(hl), { class: "space-y-1" }, { default: D(() => [(e(true), a(x, null, j(r4.children, (n2) => (e(), t(d(yl), { onClick: (e2) => s2("sideBarClick", n2.id), key: n2.name, class: "group w-full flex items-center pl-11 pr-2 py-2 text-sm font-medium text-gray-600 rounded-md hover:text-gray-900 hover:bg-gray-50" }, { default: D(() => [l2.loading ? (e(), a("div", Ti)) : (e(), a("span", Mi, _(n2.name), 1))]), _: 2 }, 1032, ["onClick"]))), 128))]), _: 2 }, 1024)]), _: 2 }, 1024)) : (e(), a("div", hi, [i("button", { onClick: (e2) => s2("sideBarClick", r4.id), class: n([r4.current ? "bg-indigo-600 text-white" : "text-gray-600 hover:bg-gray-50 hover:text-gray-900", "group w-full flex items-center pl-2 py-2 text-sm font-medium rounded-md"]) }, [o(W, { loading: l2.loading, icon: r4.icon, class: n([r4.current ? "text-white" : "text-gray-400 group-hover:text-gray-500", "mr-3 flex-shrink-0 h-6 w-6"]), "aria-hidden": "true" }, null, 8, ["loading", "icon", "class"]), l2.loading ? (e(), a("div", ki)) : (e(), a("span", wi, _(r4.name), 1))], 10, xi)]))], 64))), 128))])])])]));
2361
- } }), Ii = { key: 0 }, _i = { class: "ml-16 text-sm font-medium text-gray-500 truncate" }, Pi = { class: "ml-16 flex items-baseline pb-5" }, ji = { class: "text-2xl font-semibold text-gray-900" }, Ri = { class: "absolute bottom-0 inset-x-0 bg-gray-50 px-4 py-4 sm:px-6" }, Bi = { class: "text-sm" }, Li = { key: 1 }, Ai = { class: "relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full pb-6" }, Fi = { class: "absolute bg-gray-200 rounded-md p-3 animate-pulse" }, Ni = i("div", { class: "ml-16" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2 mb-4 animate-pulse" })], -1), zi = i("div", { class: "ml-16" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2 animate-pulse" })], -1), $i = { name: "uiStats" }, Hi = Object.assign($i, { props: { item: { type: Object, required: true }, loading: { type: Boolean, default: true } }, emits: ["statClick"], setup(l2, { emit: r2 }) {
2363
+ return (r3, u2) => (e(), a("div", vi, [i("div", yi, [i("div", bi, [i("nav", hi, [(e(true), a(x, null, j(l2.navigation, (r4) => (e(), a(x, { key: r4.name }, [r4.children ? (e(), t(d(yl), { key: 1, as: "div", class: "space-y-1" }, { default: D(({ 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: D(() => [o(W, { loading: l2.loading, icon: r4.icon, class: "mr-3 flex-shrink-0 h-6 w-6 text-gray-400 group-hover:text-gray-500", "aria-hidden": "true" }, null, 8, ["loading", "icon"]), l2.loading ? (e(), a("div", 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(hl), { class: "space-y-1" }, { default: D(() => [(e(true), a(x, null, j(r4.children, (n2) => (e(), t(d(bl), { onClick: (e2) => s2("sideBarClick", n2.id), key: n2.name, class: "group w-full flex items-center pl-11 pr-2 py-2 text-sm font-medium text-gray-600 rounded-md hover:text-gray-900 hover:bg-gray-50" }, { default: D(() => [l2.loading ? (e(), a("div", Ei)) : (e(), a("span", Ti, _(n2.name), 1))]), _: 2 }, 1032, ["onClick"]))), 128))]), _: 2 }, 1024)]), _: 2 }, 1024)) : (e(), a("div", xi, [i("button", { onClick: (e2) => s2("sideBarClick", r4.id), class: n([r4.current ? "bg-indigo-600 text-white" : "text-gray-600 hover:bg-gray-50 hover:text-gray-900", "group w-full flex items-center pl-2 py-2 text-sm font-medium rounded-md"]) }, [o(W, { loading: l2.loading, icon: r4.icon, class: n([r4.current ? "text-white" : "text-gray-400 group-hover:text-gray-500", "mr-3 flex-shrink-0 h-6 w-6"]), "aria-hidden": "true" }, null, 8, ["loading", "icon", "class"]), l2.loading ? (e(), a("div", Si)) : (e(), a("span", ki, _(r4.name), 1))], 10, wi)]))], 64))), 128))])])])]));
2364
+ } }), _i = { key: 0 }, Pi = { class: "ml-16 text-sm font-medium text-gray-500 truncate" }, ji = { class: "ml-16 flex items-baseline pb-5" }, Ri = { class: "text-2xl font-semibold text-gray-900" }, Bi = { class: "absolute bottom-0 inset-x-0 bg-gray-50 px-4 py-4 sm:px-6" }, Ai = { class: "text-sm" }, Li = { key: 1 }, Fi = { class: "relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full pb-6" }, Ni = { class: "absolute bg-gray-200 rounded-md p-3 animate-pulse" }, zi = 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), $i = 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), Hi = { name: "uiStats" }, Vi = Object.assign(Hi, { props: { item: { type: Object, required: true }, loading: { type: Boolean, default: true } }, emits: ["statClick"], setup(l2, { emit: r2 }) {
2362
2365
  const s2 = r2;
2363
- return (r3, u2) => l2.loading ? (e(), a("div", Li, [i("div", Ai, [i("dt", null, [i("div", Fi, [o(W, { loading: l2.loading, icon: l2.item.icon, class: "h-6 w-6 text-white", "aria-hidden": "true" }, null, 8, ["loading", "icon"])]), Ni, zi])])])) : (e(), a("div", Ii, [i("div", { class: n(["relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full", { "pb-12": l2.item.showFooter }]) }, [i("dt", null, [i("div", { class: n(["absolute rounded-md p-3", { "bg-indigo-500": !l2.item.color, "bg-green-500": "success" === l2.item.color, "bg-red-500": "danger" === l2.item.color, "bg-yellow-500": "warning" === l2.item.color }]) }, [o(W, { icon: l2.item.icon, class: "h-6 w-6 text-white", "aria-hidden": "true", loading: l2.loading }, null, 8, ["icon", "loading"])], 2), i("p", _i, _(l2.item.name), 1)]), i("dd", Pi, [i("p", ji, _(l2.item.stat), 1), l2.item.changeType ? (e(), a("p", { key: 0, class: n([{ "text-green-600": "increase" === l2.item.changeType, "text-red-600": "decrease" === l2.item.changeType, "text-black": "neutral" === l2.item.changeType }, "ml-2 flex items-baseline text-sm font-semibold"]) }, ["increase" === l2.item.changeType ? (e(), t(d(en), { key: 0, class: "self-center flex-shrink-0 h-3 w-3 text-green-500", "aria-hidden": "true" })) : R("", true), "decrease" === l2.item.changeType ? (e(), t(d(Ql), { key: 1, class: "self-center flex-shrink-0 h-3 w-3 text-red-500", "aria-hidden": "true" })) : R("", true), I(" " + _(l2.item.change), 1)], 2)) : R("", true), B(i("div", Ri, [i("div", Bi, [i("span", { onClick: u2[0] || (u2[0] = (e2) => s2("statClick", l2.item.id)), class: "font-medium text-indigo-600 hover:text-indigo-500 cursor-pointer" }, _(l2.item.actionText), 1)])], 512), [[A, l2.item.showFooter]])])], 2)]));
2364
- } }), Vi = { key: 0, class: "overflow-hidden bg-white shadow sm:rounded-lg" }, Yi = { class: "px-4 py-5 sm:px-6" }, Ui = { class: "text-lg font-medium leading-6 text-gray-900" }, qi = { class: "mt-1 max-w-2xl text-sm text-gray-500" }, Wi = { class: "border-t border-gray-200" }, Ki = { class: "text-sm font-medium text-gray-500" }, Ji = { key: 0, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal" }, Gi = { key: 1, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal" }, Zi = ["onClick"], Xi = { key: 3, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-words" }, Qi = { key: 1, class: "overflow-hidden bg-white shadow sm:rounded-lg" }, es = z('<div class="px-4 py-5 sm:px-6 animate-pulse"><h3 class="text-lg font-medium leading-6 text-gray-900"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4"></div></h3><p class="mt-1 max-w-2xl text-sm text-gray-500"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/5"></div></p></div>', 1), ts = { class: "border-t border-gray-200" }, ls = [i("dt", { class: "text-sm font-medium text-gray-500" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12" })], -1), i("dd", { class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-words" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12" })], -1)], ns = { name: "uiStripedCard" }, as = Object.assign(ns, { props: { title: String, subtitle: String, items: Object, loading: { type: Boolean, default: true } }, emits: ["itemClicked"], setup: (l2, { emit: r2 }) => (r3, s2) => l2.loading ? (e(), a("div", Qi, [es, i("div", ts, [i("dl", null, [(e(), a(x, null, j(5, (e2) => i("div", { key: e2, class: n(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [e2 % 2 == 0 ? "bg-gray-50" : "bg-white"]]) }, ls, 2)), 64))])])])) : (e(), a("div", Vi, [i("div", Yi, [i("h3", Ui, _(l2.title), 1), i("p", qi, _(l2.subtitle), 1)]), i("div", Wi, [i("dl", null, [(e(true), a(x, null, j(l2.items, (s3, u2) => (e(), a("div", { key: u2, class: n(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [u2 % 2 == 0 ? "bg-gray-50" : "bg-white"]]) }, [i("dt", Ki, _(s3.title), 1), "tag" === s3.type ? (e(), a("dd", Ji, [o(la, { color: s3.color }, { default: D(() => [I(_(s3.text), 1)]), _: 2 }, 1032, ["color"])])) : "tags" === s3.type ? (e(), a("dd", Gi, [(e(true), a(x, null, j(s3.tags, (n2, a2) => (e(), t(la, { loading: l2.loading, key: a2, color: n2.color, class: "mr-2 mb-2" }, { default: D(() => [I(_(n2.text), 1)]), _: 2 }, 1032, ["loading", "color"]))), 128))])) : "link" === s3.type ? (e(), a("dd", { key: 2, class: "mt-1 text-sm text-indigo-600 hover:text-indigo-400 sm:col-span-2 sm:mt-0 cursor-pointer", onClick: (e2) => r3.$emit("itemClicked", s3.emits) }, _(s3.text), 9, Zi)) : (e(), a("dd", Xi, _(s3.text), 1))], 2))), 128))])])])) }), os = { class: "absolute top-10 bg-indigo-600 text-white text-xs p-2 rounded z-10 font-light w-60 flex flex-row items-start" }, rs = i("svg", { class: "absolute -top-3 left-0", xmlns: "http://www.w3.org/2000/svg", width: "27.687", height: "26.954", viewBox: "0 0 27.687 26.954" }, [i("path", { id: "Polígono_1", "data-name": "Polígono 1", d: "M10.5,0,21,19H0Z", transform: "translate(0 10.5) rotate(-30)", fill: "#4f46e5" })], -1), is = { class: "ml-2" }, ss = { __name: "tooltip", props: { tip: { type: String, required: true } }, setup: (t2) => (l2, n2) => (e(), a("div", os, [rs, i("div", null, [o(W, { icon: d(gn), loading: false, color: "white", size: "big" }, null, 8, ["icon"])]), i("span", is, _(t2.tip), 1)])) }, us = { key: 0 }, ds = { class: "flex flex-col" }, cs = { class: "-my-2 overflow-x-auto" }, ps = { class: "inline-block min-w-full py-2 align-middle px-1" }, gs = { class: "relative overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg" }, fs = { key: 0, class: "absolute top-0 left-12 flex h-12 items-center space-x-3 sm:left-16 bg-white shadow rounded px-4 py-1 z-10" }, ms = ["onClick"], vs = { class: "min-w-full table-fixed divide-y divide-gray-300" }, bs = { class: "bg-gray-50" }, ys = ["checked", "indeterminate"], hs = ["onMouseover", "onMouseleave"], xs = ["onClick"], ws = { key: 2, class: "group flex items-center uppercase text-xs" }, ks = { class: "divide-y divide-gray-200 bg-white" }, Ss = { key: 0, class: "absolute inset-y-0 left-0 w-0.5 bg-indigo-600" }, Cs = ["value"], Os = ["onClick"], Ms = { key: 2 }, Ts = { name: "uiTable" }, Es = Object.assign(Ts, { props: { header: { type: Array, required: true }, items: { type: Array, required: true }, orderedBy: String, orderDirection: { type: String, default: "asc" }, actions: Array, loading: { type: Boolean, default: true } }, emits: ["tableAction", "orderBy"], setup(l2, { emit: r2 }) {
2366
+ return (r3, u2) => l2.loading ? (e(), a("div", Li, [i("div", Fi, [i("dt", null, [i("div", Ni, [o(W, { loading: l2.loading, icon: l2.item.icon, class: "h-6 w-6 text-white", "aria-hidden": "true" }, null, 8, ["loading", "icon"])]), zi, $i])])])) : (e(), a("div", _i, [i("div", { class: n(["relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full", { "pb-12": l2.item.showFooter }]) }, [i("dt", null, [i("div", { class: n(["absolute rounded-md p-3", { "bg-indigo-500": !l2.item.color, "bg-green-500": "success" === l2.item.color, "bg-red-500": "danger" === l2.item.color, "bg-yellow-500": "warning" === l2.item.color }]) }, [o(W, { icon: l2.item.icon, class: "h-6 w-6 text-white", "aria-hidden": "true", loading: l2.loading }, null, 8, ["icon", "loading"])], 2), i("p", Pi, _(l2.item.name), 1)]), i("dd", ji, [i("p", Ri, _(l2.item.stat), 1), l2.item.changeType ? (e(), a("p", { key: 0, class: n([{ "text-green-600": "increase" === l2.item.changeType, "text-red-600": "decrease" === l2.item.changeType, "text-black": "neutral" === l2.item.changeType }, "ml-2 flex items-baseline text-sm font-semibold"]) }, ["increase" === l2.item.changeType ? (e(), t(d(en), { key: 0, class: "self-center flex-shrink-0 h-3 w-3 text-green-500", "aria-hidden": "true" })) : R("", true), "decrease" === l2.item.changeType ? (e(), t(d(Ql), { key: 1, class: "self-center flex-shrink-0 h-3 w-3 text-red-500", "aria-hidden": "true" })) : R("", true), I(" " + _(l2.item.change), 1)], 2)) : R("", true), B(i("div", Bi, [i("div", Ai, [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)]));
2367
+ } }), Yi = { key: 0, class: "overflow-hidden bg-white shadow sm:rounded-lg" }, Ui = { class: "px-4 py-5 sm:px-6" }, qi = { class: "text-lg font-medium leading-6 text-gray-900" }, Wi = { class: "mt-1 max-w-2xl text-sm text-gray-500" }, Ki = { class: "border-t border-gray-200" }, Ji = { class: "text-sm font-medium text-gray-500" }, Gi = { key: 0, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal" }, Zi = { key: 1, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal" }, Xi = ["onClick"], Qi = { key: 3, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-words" }, es = { key: 1, class: "overflow-hidden bg-white shadow sm:rounded-lg" }, ts = 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), ls = { class: "border-t border-gray-200" }, ns = [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)], as = { name: "uiStripedCard" }, os = Object.assign(as, { 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", es, [ts, i("div", ls, [i("dl", null, [(e(), a(x, null, j(5, (e2) => i("div", { key: e2, class: n(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [e2 % 2 == 0 ? "bg-gray-50" : "bg-white"]]) }, ns, 2)), 64))])])])) : (e(), a("div", Yi, [i("div", Ui, [i("h3", qi, _(l2.title), 1), i("p", Wi, _(l2.subtitle), 1)]), i("div", Ki, [i("dl", null, [(e(true), a(x, null, j(l2.items, (s3, u2) => (e(), a("div", { key: u2, class: n(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [u2 % 2 == 0 ? "bg-gray-50" : "bg-white"]]) }, [i("dt", Ji, _(s3.title), 1), "tag" === s3.type ? (e(), a("dd", Gi, [o(na, { color: s3.color }, { default: D(() => [I(_(s3.text), 1)]), _: 2 }, 1032, ["color"])])) : "tags" === s3.type ? (e(), a("dd", Zi, [(e(true), a(x, null, j(s3.tags, (n2, a2) => (e(), t(na, { loading: l2.loading, key: a2, color: n2.color, class: "mr-2 mb-2" }, { default: D(() => [I(_(n2.text), 1)]), _: 2 }, 1032, ["loading", "color"]))), 128))])) : "link" === s3.type ? (e(), a("dd", { key: 2, class: "mt-1 text-sm text-indigo-600 hover:text-indigo-400 sm:col-span-2 sm:mt-0 cursor-pointer", onClick: (e2) => r3.$emit("itemClicked", s3.emits) }, _(s3.text), 9, Xi)) : (e(), a("dd", Qi, _(s3.text), 1))], 2))), 128))])])])) }), rs = { 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" }, is = 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), ss = { class: "ml-2" }, us = { __name: "tooltip", props: { tip: { type: String, required: true } }, setup: (t2) => (l2, n2) => (e(), a("div", rs, [is, i("div", null, [o(W, { icon: d(gn), loading: false, color: "white", size: "big" }, null, 8, ["icon"])]), i("span", ss, _(t2.tip), 1)])) }, ds = { key: 0 }, cs = { class: "flex flex-col" }, ps = { class: "-my-2 overflow-x-auto" }, gs = { class: "inline-block min-w-full py-2 align-middle px-1" }, fs = { class: "relative overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg" }, ms = { 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" }, vs = ["onClick"], ys = { class: "min-w-full table-fixed divide-y divide-gray-300" }, bs = { class: "bg-gray-50" }, hs = ["checked", "indeterminate"], xs = ["onMouseover", "onMouseleave"], ws = ["onClick"], ks = { key: 2, class: "group flex items-center uppercase text-xs" }, Ss = { class: "divide-y divide-gray-200 bg-white" }, Cs = { key: 0, class: "absolute inset-y-0 left-0 w-0.5 bg-indigo-600" }, Os = ["value"], Ms = ["onClick"], Ts = { key: 2 }, Es = { name: "uiTable" }, Ds = Object.assign(Es, { props: { header: { type: Array, required: true }, items: { type: Array, required: true }, orderedBy: String, orderDirection: { type: String, default: "asc" }, actions: Array, loading: { type: Boolean, default: true } }, emits: ["tableAction", "orderBy"], setup(l2, { emit: r2 }) {
2365
2368
  let c2 = s([]);
2366
2369
  s(false);
2367
2370
  let p2 = s(void 0);
@@ -2370,40 +2373,46 @@ const Jr = jo(qr, [["render", function(t2, l2, n2, o2, r2, i2) {
2370
2373
  };
2371
2374
  return (r3, s2) => {
2372
2375
  var _a2, _b;
2373
- return l2.loading ? (e(), t(Jo, { key: 1 })) : (e(), a("div", us, [i("div", ds, [i("div", cs, [i("div", ps, [i("div", gs, [((_a2 = d(c2)) == null ? void 0 : _a2.length) > 0 && ((_b = l2.actions) == null ? void 0 : _b.length) > 0 ? (e(), a("div", fs, [(e(true), a(x, null, j(l2.actions, (t2, l3) => (e(), a("button", { onClick: (e2) => g2("tableAction", { action: t2.id, items: d(c2) }), key: l3, type: "button", class: "inline-flex items-center rounded bg-indigo-600 hover:bg-indigo-800 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm disabled:cursor-not-allowed disabled:opacity-30" }, _(t2.name), 9, ms))), 128))])) : R("", true), i("table", vs, [i("thead", bs, [i("tr", null, [i("th", { scope: "col", class: n([l2.actions ? "px-6 sm:px-8" : "px-3", "relative"]) }, [l2.actions ? (e(), a("input", { key: 0, checked: m2.value || d(c2).length === l2.items.length, indeterminate: m2.value, class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500", type: "checkbox", onChange: s2[0] || (s2[0] = (e2) => V(c2) ? c2.value = e2.target.checked ? l2.items.map((e3) => e3.id) : [] : c2 = e2.target.checked ? l2.items.map((e3) => e3.id) : []) }, null, 40, ys)) : R("", true)], 2), (e(true), a(x, null, j(l2.header, (r4, s3) => (e(), a("th", { key: s3, class: "py-3.5 pr-3 text-left font-semibold text-gray-900 flex-wrap relative", scope: "col", onMouseover: (e2) => v2(r4.name, true), onMouseleave: (e2) => v2(r4.name, false) }, [r4.tooltip ? B((e(), t(ss, { key: 0, tip: r4.tooltip }, null, 8, ["tip"])), [[A, d(p2) === r4.name]]) : R("", true), r4.value ? (e(), a("button", { key: 1, class: "group flex items-center uppercase text-xs relative", onClick: (e2) => g2("orderBy", { value: r4.value, orderDirection: "asc" === l2.orderDirection ? "desc" : "asc" }) }, [i("span", null, _(r4.name), 1), i("span", { class: n([[r4.value === l2.orderedBy ? "bg-indigo-600 text-white group-hover:bg-gray-300" : "text-gray-400 group-hover:visible group-focus:visible"], "ml-2 flex-none rounded group-hover:bg-indigo-200 group-hover:text-white"]) }, [o(W, { icon: "asc" === l2.orderDirection ? d(nn) : d(sn), loading: l2.loading, color: r4.value === l2.orderedBy ? "white" : "primary" }, null, 8, ["icon", "loading", "color"])], 2)], 8, xs)) : (e(), a("p", ws, [i("span", null, _(r4.name), 1)]))], 40, hs))), 128))])]), i("tbody", ks, [(e(true), a(x, null, j(l2.items, (o2, r4) => {
2376
+ return l2.loading ? (e(), t(Go, { key: 1 })) : (e(), a("div", ds, [i("div", cs, [i("div", ps, [i("div", gs, [i("div", fs, [((_a2 = d(c2)) == null ? void 0 : _a2.length) > 0 && ((_b = l2.actions) == null ? void 0 : _b.length) > 0 ? (e(), a("div", ms, [(e(true), a(x, null, j(l2.actions, (t2, l3) => (e(), a("button", { onClick: (e2) => g2("tableAction", { action: t2.id, items: d(c2) }), key: l3, type: "button", class: "inline-flex items-center rounded bg-indigo-600 hover:bg-indigo-800 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm disabled:cursor-not-allowed disabled:opacity-30" }, _(t2.name), 9, vs))), 128))])) : R("", true), i("table", ys, [i("thead", bs, [i("tr", null, [i("th", { scope: "col", class: n([l2.actions ? "px-6 sm:px-8" : "px-3", "relative"]) }, [l2.actions ? (e(), a("input", { key: 0, checked: m2.value || d(c2).length === l2.items.length, indeterminate: m2.value, class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500", type: "checkbox", onChange: s2[0] || (s2[0] = (e2) => V(c2) ? c2.value = e2.target.checked ? l2.items.map((e3) => e3.id) : [] : c2 = e2.target.checked ? l2.items.map((e3) => e3.id) : []) }, null, 40, hs)) : R("", true)], 2), (e(true), a(x, null, j(l2.header, (r4, s3) => (e(), a("th", { key: s3, class: "py-3.5 pr-3 text-left font-semibold text-gray-900 flex-wrap relative", scope: "col", onMouseover: (e2) => v2(r4.name, true), onMouseleave: (e2) => v2(r4.name, false) }, [r4.tooltip ? B((e(), t(us, { 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(W, { icon: "asc" === l2.orderDirection ? d(nn) : d(sn), loading: l2.loading, color: r4.value === l2.orderedBy ? "white" : "primary" }, null, 8, ["icon", "loading", "color"])], 2)], 8, ws)) : (e(), a("p", ks, [i("span", null, _(r4.name), 1)]))], 40, xs))), 128))])]), i("tbody", Ss, [(e(true), a(x, null, j(l2.items, (o2, r4) => {
2374
2377
  var _a3, _b2;
2375
- return e(), a("tr", { key: o2.id, class: n([d(c2).includes(o2.id) && "bg-gray-50", r4 % 2 == 0 ? void 0 : "bg-gray-50"]) }, [i("td", { class: n([((_a3 = l2.actions) == null ? void 0 : _a3.length) > 0 ? "w-2" : "w-0", "relative"]) }, [d(c2).includes(o2.id) ? (e(), a("div", Ss)) : R("", true), ((_b2 = l2.actions) == null ? void 0 : _b2.length) > 0 ? B((e(), a("input", { key: 1, "onUpdate:modelValue": s2[1] || (s2[1] = (e2) => V(c2) ? c2.value = e2 : c2 = e2), value: o2.id, class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500 flex-wrap", type: "checkbox" }, null, 8, Cs)), [[H, d(c2)]]) : R("", true)], 2), (e(true), a(x, null, j(o2.row, (r5, i2) => (e(), a("td", { key: i2, class: n(["whitespace-nowrap py-4 pr-3 text-sm", d(c2).includes(o2.id) ? "text-indigo-600" : "text-gray-900"]) }, ["object" == typeof r5 && "tag" === r5.type ? (e(), t(la, { key: 0, loading: l2.loading, color: r5.color }, { default: D(() => [I(_(r5.content), 1)]), _: 2 }, 1032, ["loading", "color"])) : "object" == typeof r5 && "link" === r5.type ? (e(), a("span", { key: 1, class: "text-indigo-600 hover:text-indigo-400 cursor-pointer", onClick: (e2) => g2(r5.emits, { id: o2.id, data: (o2 == null ? void 0 : o2.emitWith) || null }) }, _(r5.content), 9, Os)) : (e(), a("span", Ms, _(r5), 1))], 2))), 128))], 2);
2378
+ 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", Cs)) : 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, Os)), [[H, d(c2)]]) : R("", true)], 2), (e(true), a(x, null, j(o2.row, (r5, i2) => (e(), a("td", { key: i2, class: n(["whitespace-nowrap py-4 pr-3 text-sm", d(c2).includes(o2.id) ? "text-indigo-600" : "text-gray-900"]) }, ["object" == typeof r5 && "tag" === r5.type ? (e(), t(na, { key: 0, loading: l2.loading, color: r5.color }, { default: D(() => [I(_(r5.content), 1)]), _: 2 }, 1032, ["loading", "color"])) : "object" == typeof r5 && "link" === r5.type ? (e(), a("span", { key: 1, class: "text-indigo-600 hover:text-indigo-400 cursor-pointer", onClick: (e2) => g2(r5.emits, { id: o2.id, data: (o2 == null ? void 0 : o2.emitWith) || null }) }, _(r5.content), 9, Ms)) : (e(), a("span", Ts, _(r5), 1))], 2))), 128))], 2);
2376
2379
  }), 128))])])])])])])]));
2377
2380
  };
2378
- } }), Ds = { class: "lg:hidden" }, Is = ["value"], _s = { class: "hidden lg:block" }, Ps = { class: "border-b border-gray-200" }, js = { class: "-mb-px flex space-x-8", "aria-label": "Tabs" }, Rs = ["onClick", "aria-current"], Bs = { name: "uiTabs" }, Ls = Object.assign(Bs, { props: { tabs: Array }, emits: ["tabClicked"], setup(t2, { emit: l2 }) {
2381
+ } }), Is = { class: "lg:hidden" }, _s = ["value"], Ps = { class: "hidden lg:block" }, js = { class: "border-b border-gray-200" }, Rs = { class: "-mb-px flex space-x-8", "aria-label": "Tabs" }, Bs = ["onClick", "aria-current"], As = { name: "uiTabs" }, Ls = Object.assign(As, { props: { tabs: Array }, emits: ["tabClicked"], setup(t2, { emit: l2 }) {
2379
2382
  const o2 = l2;
2380
- return (l3, r2) => (e(), a("div", null, [i("div", Ds, [i("select", { onChange: r2[0] || (r2[0] = (e2) => {
2383
+ return (l3, r2) => (e(), a("div", null, [i("div", Is, [i("select", { onChange: r2[0] || (r2[0] = (e2) => {
2381
2384
  o2("tabClicked", e2.target.value);
2382
- }), id: "tabs", name: "tabs", class: "block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm" }, [(e(true), a(x, null, j(t2.tabs, (t3) => (e(), a("option", { value: t3.id, key: t3.name }, _(t3.name), 9, Is))), 128))], 32)]), i("div", _s, [i("div", Ps, [i("nav", js, [(e(true), a(x, null, j(t2.tabs, (t3) => (e(), a("a", { key: t3.name, onClick: (e2) => o2("tabClicked", t3.id), class: n([t3.current ? "border-indigo-500 text-indigo-600" : "border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-200", "whitespace-nowrap flex py-4 px-1 border-b-2 font-medium text-sm cursor-pointer"]), "aria-current": t3.current ? "page" : void 0 }, [I(_(t3.name) + " ", 1), t3.count ? (e(), a("span", { key: 0, class: n([t3.current ? "bg-indigo-100 text-indigo-600" : "bg-gray-100 text-gray-900", "hidden ml-3 py-0.5 px-2.5 rounded-full text-xs font-medium md:inline-block"]) }, _(t3.count), 3)) : R("", true)], 10, Rs))), 128))])])])]));
2383
- } }), As = { key: 0, class: "bg-white overflow-hidden shadow rounded-lg" }, Fs = { class: "px-4 py-5 sm:px-6" }, Ns = { class: "text-xl font-bold" }, zs = { class: "px-4 py-5 sm:p-6" }, $s = { class: "flow-root" }, Hs = { class: "-mb-8", role: "list" }, Vs = { class: "relative pb-8" }, Ys = { key: 0, class: "absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200", "aria-hidden": "true" }, Us = { class: "relative flex space-x-3" }, qs = { class: "min-w-0 flex-1 pt-1.5 flex justify-between space-x-4 items-center" }, Ws = { class: "text-sm text-gray-500" }, Ks = ["onClick"], Js = { class: "text-right text-sm whitespace-nowrap text-gray-500" }, Gs = ["datetime"], Zs = { class: "bg-gray-50 px-4 py-4 sm:px-6 z-10" }, Xs = { class: "text-sm" }, Qs = { class: "h-full w-full flex items-center justify-center flex-col mb-5" }, eu = i("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1), tu = { key: 1, class: "bg-white overflow-hidden shadow rounded-lg" }, lu = i("div", { class: "px-4 py-5 sm:px-6 animate-pulse" }, [i("h1", { class: "text-xl font-bold" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4" })])], -1), nu = { class: "px-4 py-5 sm:p-6 animate-pulse" }, au = { class: "flow-root" }, ou = { class: "-mb-8", role: "list" }, ru = { class: "relative pb-8" }, iu = { key: 0, class: "absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200", "aria-hidden": "true" }, su = z('<div class="relative flex space-x-3"><div><span class="h-8 w-8 rounded-full bg-gray-300 flex items-center justify-center ring-4 ring-white"></span></div><div class="min-w-0 flex-1 pt-1.5 flex justify-between space-x-4 items-center"><div><p class="text-sm text-gray-500 flex-1"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full"></div></p></div><div class="text-right text-sm whitespace-nowrap text-gray-500 flex-1"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4"></div></div></div></div>', 1), uu = i("div", { class: "bg-gray-50 px-4 py-4 sm:px-6 z-10 animate-pulse" }, [i("div", { class: "text-sm" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4" })])], -1), du = { name: "uiTimeline" }, cu = Object.assign(du, { props: { name: { type: String, required: true }, timeline: { type: Object }, loading: { type: Boolean, default: true }, empty: { type: Boolean, default: false } }, setup: (t2) => (l2, r2) => {
2385
+ }), id: "tabs", name: "tabs", class: "block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm" }, [(e(true), a(x, null, j(t2.tabs, (t3) => (e(), a("option", { value: t3.id, key: t3.name }, _(t3.name), 9, _s))), 128))], 32)]), i("div", Ps, [i("div", js, [i("nav", Rs, [(e(true), a(x, null, j(t2.tabs, (t3) => (e(), a("a", { key: t3.name, onClick: (e2) => o2("tabClicked", t3.id), class: n([t3.current ? "border-indigo-500 text-indigo-600" : "border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-200", "whitespace-nowrap flex py-4 px-1 border-b-2 font-medium text-sm cursor-pointer"]), "aria-current": t3.current ? "page" : void 0 }, [I(_(t3.name) + " ", 1), t3.count ? (e(), a("span", { key: 0, class: n([t3.current ? "bg-indigo-100 text-indigo-600" : "bg-gray-100 text-gray-900", "hidden ml-3 py-0.5 px-2.5 rounded-full text-xs font-medium md:inline-block"]) }, _(t3.count), 3)) : R("", true)], 10, Bs))), 128))])])])]));
2386
+ } }), Fs = { key: 0, class: "bg-white overflow-hidden shadow rounded-lg" }, Ns = { class: "px-4 py-5 sm:px-6" }, zs = { class: "text-xl font-bold" }, $s = { class: "px-4 py-5 sm:p-6" }, Hs = { class: "flow-root" }, Vs = { class: "-mb-8", role: "list" }, Ys = { class: "relative pb-8" }, Us = { key: 0, class: "absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200", "aria-hidden": "true" }, qs = { class: "relative flex space-x-3" }, Ws = { class: "min-w-0 flex-1 pt-1.5 flex justify-between space-x-4 items-center" }, Ks = { class: "text-sm text-gray-500" }, Js = ["onClick"], Gs = { class: "text-right text-sm whitespace-nowrap text-gray-500" }, Zs = ["datetime"], Xs = { class: "bg-gray-50 px-4 py-4 sm:px-6 z-10" }, Qs = { class: "text-sm" }, eu = { class: "h-full w-full flex items-center justify-center flex-col mb-5" }, tu = i("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1), lu = { key: 1, class: "bg-white overflow-hidden shadow rounded-lg" }, nu = 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), au = { class: "px-4 py-5 sm:p-6 animate-pulse" }, ou = { class: "flow-root" }, ru = { class: "-mb-8", role: "list" }, iu = { class: "relative pb-8" }, su = { key: 0, class: "absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200", "aria-hidden": "true" }, uu = 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), du = 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), cu = { name: "uiTimeline" }, pu = Object.assign(cu, { props: { name: { type: String, required: true }, timeline: { type: Object }, loading: { type: Boolean, default: true }, empty: { type: Boolean, default: false } }, setup: (t2) => (l2, r2) => {
2384
2387
  const s2 = $("uiIcon");
2385
- return t2.loading ? (e(), a("div", tu, [lu, i("div", nu, [i("div", au, [i("ul", ou, [(e(), a(x, null, j(10, (t3) => i("li", { key: l2.index }, [i("div", ru, [10 !== t3 ? (e(), a("span", iu)) : R("", true), su])])), 64))])])]), uu])) : (e(), a("div", As, [i("div", Fs, [i("h1", Ns, _(t2.name), 1)]), B(i("div", zs, [i("div", $s, [i("ul", Hs, [(e(true), a(x, null, j(t2.timeline.items, (r3, u2) => (e(), a("li", { key: u2 }, [i("div", Vs, [u2 !== t2.timeline.items.length - 1 ? (e(), a("span", Ys)) : R("", true), i("div", Us, [i("div", null, [i("span", { class: n([r3.iconBackground, "h-8 w-8 rounded-full flex items-center justify-center ring-4 ring-white"]) }, [o(s2, { loading: t2.loading, icon: r3.icon, "aria-hidden": "true", class: "h-5 w-5 text-white", color: "white" }, null, 8, ["loading", "icon"])], 2)]), i("div", qs, [i("div", null, [i("p", Ws, [i("a", { onClick: (e2) => l2.$emit("timelineEventClicked", r3.linkId), class: "font-medium text-indigo-600 hover:text-indigo-800 cursor-pointer" }, _(r3.target), 9, Ks), I(" " + _(r3.content), 1)])]), i("div", Js, [i("time", { datetime: r3.datetime }, _(r3.date), 9, Gs)])])])])]))), 128))])])], 512), [[A, !t2.empty]]), B(i("div", Zs, [i("div", Xs, [i("a", { class: "cursor-pointer font-medium text-indigo-600 hover:text-indigo-500", onClick: r2[0] || (r2[0] = (e2) => l2.$emit("timelineFooterClicked", t2.timeline.id)) }, _(t2.timeline.footerText), 1)])], 512), [[A, !t2.empty]]), B(i("div", Qs, [o(W, { icon: d(un), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), eu], 512), [[A, t2.empty]])]));
2386
- } }), pu = { name: "uiTopbar", props: ["navigation", "logo", "profileMenu", "brand", "accountLogo", "alerted"], components: { Disclosure: bl, DisclosureButton: yl, DisclosurePanel: hl, Menu: Tl, MenuButton: El, MenuItem: Il, MenuItems: Dl, Bars3Icon: function(t2, l2) {
2388
+ return t2.loading ? (e(), a("div", lu, [nu, i("div", au, [i("div", ou, [i("ul", ru, [(e(), a(x, null, j(10, (t3) => i("li", { key: l2.index }, [i("div", iu, [10 !== t3 ? (e(), a("span", su)) : R("", true), uu])])), 64))])])]), du])) : (e(), a("div", Fs, [i("div", Ns, [i("h1", zs, _(t2.name), 1)]), B(i("div", $s, [i("div", Hs, [i("ul", Vs, [(e(true), a(x, null, j(t2.timeline.items, (r3, u2) => (e(), a("li", { key: u2 }, [i("div", Ys, [u2 !== t2.timeline.items.length - 1 ? (e(), a("span", Us)) : R("", true), i("div", qs, [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", Ws, [i("div", null, [i("p", Ks, [i("a", { onClick: (e2) => l2.$emit("timelineEventClicked", r3.linkId), class: "font-medium text-indigo-600 hover:text-indigo-800 cursor-pointer" }, _(r3.target), 9, Js), I(" " + _(r3.content), 1)])]), i("div", Gs, [i("time", { datetime: r3.datetime }, _(r3.date), 9, Zs)])])])])]))), 128))])])], 512), [[L, !t2.empty]]), B(i("div", Xs, [i("div", Qs, [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", eu, [o(W, { icon: d(un), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), tu], 512), [[L, t2.empty]])]));
2389
+ } }), gu = { name: "uiTopbar", props: ["navigation", "logo", "profileMenu", "brand", "accountLogo", "alerted"], components: { Disclosure: yl, DisclosureButton: bl, DisclosurePanel: hl, Menu: Tl, MenuButton: El, MenuItem: Il, MenuItems: Dl, Bars3Icon: function(t2, l2) {
2387
2390
  return e(), a("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", "aria-hidden": "true", "data-slot": "icon" }, [i("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5" })]);
2388
- }, XMarkIcon: mn } }, gu = { class: "mx-auto px-6 lg:px-8" }, fu = { class: "flex justify-between h-20" }, mu = { class: "flex" }, vu = { class: "-ml-2 mr-2 flex items-center lg:hidden" }, bu = i("span", { class: "sr-only" }, "Open main menu", -1), yu = ["src"], hu = { class: "flex items-center" }, xu = { class: "lg:ml-4 lg:flex-shrink-0 lg:flex lg:items-center hidden" }, wu = { class: "redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute -top-0 -left-1" }, ku = [i("span", { class: "animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75" }, null, -1)], Su = ["src"], Cu = ["onClick"], Ou = { class: "pt-2 pb-3 space-y-1" }, Mu = ["onClick"], Tu = { class: "pt-4 pb-3 border-t border-gray-200" }, Eu = { class: "flex items-center px-4 sm:px-6" }, Du = { class: "flex-shrink-0" }, Iu = ["src"], _u = { key: 0, class: "ml-3" }, Pu = { class: "text-base font-medium text-gray-800" }, ju = { class: "text-sm font-medium text-gray-500" }, Ru = { class: "mt-3 space-y-1" }, Bu = ["onClick"];
2389
- const Lu = jo(pu, [["render", function(l2, r2, s2, u2, d2, c2) {
2390
- const p2 = $("Bars3Icon"), g2 = $("XMarkIcon"), f2 = $("DisclosureButton"), m2 = $("MenuButton"), v2 = $("MenuItem"), b2 = $("MenuItems"), y2 = $("Menu"), h2 = $("DisclosurePanel"), w2 = $("Disclosure");
2391
- return e(), t(w2, { as: "nav", class: "bg-white shadow z-10" }, { default: D(({ open: u3 }) => [i("div", gu, [i("div", fu, [i("div", mu, [i("div", vu, [o(f2, { class: "inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500" }, { default: D(() => [bu, u3 ? (e(), t(g2, { key: 1, class: "block h-6 w-6", "aria-hidden": "true" })) : (e(), t(p2, { key: 0, class: "block h-6 w-6", "aria-hidden": "true" }))]), _: 2 }, 1024)]), i("div", { class: "flex-shrink-0 flex items-center cursor-pointer", onClick: r2[0] || (r2[0] = (e2) => l2.$emit("topBarClick", "logo")) }, [i("img", { class: "h-10", src: s2.logo, alt: "Hotelinking suite product logo" }, null, 8, yu)])]), i("div", hu, [i("div", xu, [o(y2, { as: "div", class: "ml-3 relative" }, { default: D(() => [i("div", null, [B(o(m2, { class: "bg-white rounded-full flex text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 relative" }, { default: D(() => [B(i("div", wu, ku, 512), [[A, s2.alerted]]), i("img", { class: "h-10 w-10 rounded-full", src: s2.accountLogo }, null, 8, Su)]), _: 1 }, 512), [[A, s2.accountLogo]])]), o(P, { "enter-active-class": "transition ease-out duration-200", "enter-from-class": "transform opacity-0 scale-95", "enter-to-class": "transform opacity-100 scale-100", "leave-active-class": "transition ease-in duration-75", "leave-from-class": "transform opacity-100 scale-100", "leave-to-class": "transform opacity-0 scale-95" }, { default: D(() => [o(b2, { class: "origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg py-1 bg-white ring-1 ring-black ring-opacity-5 focus:outline-none" }, { default: D(() => [(e(true), a(x, null, j(s2.profileMenu, (a2) => (e(), t(v2, { key: a2.name }, { default: D(({ active: e2 }) => [i("p", { onClick: (e3) => l2.$emit("topBarClick", a2.id), class: n(["cursor-pointer", [e2 ? "bg-gray-100" : "", "block px-4 py-2 text-sm text-gray-700"]]) }, _(a2.name), 11, Cu)]), _: 2 }, 1024))), 128))]), _: 1 })]), _: 1 })]), _: 1 })])])])]), o(h2, { class: "lg:hidden" }, { default: D(() => [i("div", Ou, [(e(true), a(x, null, j(s2.navigation, (a2) => (e(), t(f2, { as: "template", key: a2.name, class: n(["block pl-3 pr-4 py-2 border-l-4 text-base font-medium sm:pl-5 sm:pr-6", { "bg-indigo-50 border-indigo-500 text-indigo-700": a2.current && true === a2.current, "border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700": !a2.current }]) }, { default: D(() => [i("p", { onClick: (e2) => l2.$emit("topBarClick", a2.id) }, _(a2.name), 9, Mu)]), _: 2 }, 1032, ["class"]))), 128))]), i("div", Tu, [i("div", Eu, [i("div", Du, [i("img", { class: "h-10 w-10 rounded-full", src: s2.accountLogo }, null, 8, Iu)]), s2.brand ? (e(), a("div", _u, [i("div", Pu, _(s2.brand.title), 1), i("div", ju, _(s2.brand.subtitle), 1)])) : R("", true)]), i("div", Ru, [(e(true), a(x, null, j(s2.profileMenu, (n2) => (e(), t(f2, { as: "template", key: n2.name, class: "block px-4 py-2 text-base font-medium text-gray-500 hover:text-gray-800 hover:bg-gray-100 sm:px-6" }, { default: D(() => [i("p", { onClick: (e2) => l2.$emit("topBarClick", n2.id) }, _(n2.name), 9, Bu)]), _: 2 }, 1024))), 128))])])]), _: 1 })]), _: 1 });
2392
- }]]), Au = { chart: { type: "bar", toolbar: { show: false }, zoom: { enabled: false } }, colors: ["#715aff"], dataLabels: { enabled: true, formatter: function(e2, t2) {
2391
+ }, XMarkIcon: vn } }, fu = { class: "mx-auto px-6 lg:px-8" }, mu = { class: "flex justify-between h-20" }, vu = { class: "flex" }, yu = { class: "-ml-2 mr-2 flex items-center lg:hidden" }, bu = i("span", { class: "sr-only" }, "Open main menu", -1), hu = ["src"], xu = { class: "flex items-center" }, wu = { class: "lg:ml-4 lg:flex-shrink-0 lg:flex lg:items-center hidden" }, ku = { class: "redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute -top-0 -left-1" }, Su = [i("span", { class: "animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75" }, null, -1)], Cu = ["src"], Ou = ["onClick"], Mu = { class: "pt-2 pb-3 space-y-1" }, Tu = ["onClick"], Eu = { class: "pt-4 pb-3 border-t border-gray-200" }, Du = { class: "flex items-center px-4 sm:px-6" }, Iu = { class: "flex-shrink-0" }, _u = ["src"], Pu = { key: 0, class: "ml-3" }, ju = { class: "text-base font-medium text-gray-800" }, Ru = { class: "text-sm font-medium text-gray-500" }, Bu = { class: "mt-3 space-y-1" }, Au = ["onClick"];
2392
+ const Lu = Ro(gu, [["render", function(l2, r2, s2, u2, d2, c2) {
2393
+ const p2 = $("Bars3Icon"), g2 = $("XMarkIcon"), f2 = $("DisclosureButton"), m2 = $("MenuButton"), v2 = $("MenuItem"), y2 = $("MenuItems"), b2 = $("Menu"), h2 = $("DisclosurePanel"), w2 = $("Disclosure");
2394
+ return e(), t(w2, { as: "nav", class: "bg-white shadow z-10" }, { default: D(({ open: u3 }) => [i("div", fu, [i("div", mu, [i("div", vu, [i("div", yu, [o(f2, { class: "inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500" }, { default: D(() => [bu, u3 ? (e(), t(g2, { key: 1, class: "block h-6 w-6", "aria-hidden": "true" })) : (e(), t(p2, { key: 0, class: "block h-6 w-6", "aria-hidden": "true" }))]), _: 2 }, 1024)]), i("div", { class: "flex-shrink-0 flex items-center cursor-pointer", onClick: r2[0] || (r2[0] = (e2) => l2.$emit("topBarClick", "logo")) }, [i("img", { class: "h-10", src: s2.logo, alt: "Hotelinking suite product logo" }, null, 8, hu)])]), i("div", xu, [i("div", wu, [o(b2, { as: "div", class: "ml-3 relative" }, { default: D(() => [i("div", null, [B(o(m2, { class: "bg-white rounded-full flex text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 relative" }, { default: D(() => [B(i("div", ku, Su, 512), [[L, s2.alerted]]), i("img", { class: "h-10 w-10 rounded-full", src: s2.accountLogo }, null, 8, Cu)]), _: 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: D(() => [o(y2, { class: "origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg py-1 bg-white ring-1 ring-black ring-opacity-5 focus:outline-none" }, { default: D(() => [(e(true), a(x, null, j(s2.profileMenu, (a2) => (e(), t(v2, { key: a2.name }, { default: D(({ active: e2 }) => [i("p", { onClick: (e3) => l2.$emit("topBarClick", a2.id), class: n(["cursor-pointer", [e2 ? "bg-gray-100" : "", "block px-4 py-2 text-sm text-gray-700"]]) }, _(a2.name), 11, Ou)]), _: 2 }, 1024))), 128))]), _: 1 })]), _: 1 })]), _: 1 })])])])]), o(h2, { class: "lg:hidden" }, { default: D(() => [i("div", Mu, [(e(true), a(x, null, j(s2.navigation, (a2) => (e(), t(f2, { as: "template", key: a2.name, class: n(["block pl-3 pr-4 py-2 border-l-4 text-base font-medium sm:pl-5 sm:pr-6", { "bg-indigo-50 border-indigo-500 text-indigo-700": a2.current && true === a2.current, "border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700": !a2.current }]) }, { default: D(() => [i("p", { onClick: (e2) => l2.$emit("topBarClick", a2.id) }, _(a2.name), 9, Tu)]), _: 2 }, 1032, ["class"]))), 128))]), i("div", Eu, [i("div", Du, [i("div", Iu, [i("img", { class: "h-10 w-10 rounded-full", src: s2.accountLogo }, null, 8, _u)]), s2.brand ? (e(), a("div", Pu, [i("div", ju, _(s2.brand.title), 1), i("div", Ru, _(s2.brand.subtitle), 1)])) : R("", true)]), i("div", Bu, [(e(true), a(x, null, j(s2.profileMenu, (n2) => (e(), t(f2, { as: "template", key: n2.name, class: "block px-4 py-2 text-base font-medium text-gray-500 hover:text-gray-800 hover:bg-gray-100 sm:px-6" }, { default: D(() => [i("p", { onClick: (e2) => l2.$emit("topBarClick", n2.id) }, _(n2.name), 9, Au)]), _: 2 }, 1024))), 128))])])]), _: 1 })]), _: 1 });
2395
+ }]]), Fu = { chart: { type: "bar", toolbar: { show: false }, zoom: { enabled: false } }, colors: ["#715aff"], dataLabels: { enabled: true, formatter: function(e2, t2) {
2393
2396
  return t2.w.globals.labels[t2.dataPointIndex] + ": " + e2;
2394
- } }, markers: { strokeWidth: 0, size: 4, hover: { size: 8 } }, plotOptions: { bar: { borderRadius: 0, horizontal: true, barHeight: "80%", isFunnel: true } } }, Fu = { class: "chart-header flex flex-row justify-between" }, Nu = { class: "text-sm font-medium text-gray-500 truncate" }, zu = { class: "chart-content" }, $u = { class: "h-full w-full flex items-center justify-center flex-col" }, Hu = i("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1), Vu = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, Yu = [i("div", { role: "status", class: "w-full animate-pulse h-full flex flex-col" }, [i("div", { class: "h-2.5 w-36 bg-gray-200 rounded-full mb-2.5" }), i("div", { class: "w-48 h-2 mb-6 bg-gray-200 rounded-full" }), i("div", { class: "flex flex-row justify-between items-baseline grow gap-x-1" }, [i("div", { class: "w-full bg-gray-200 rounded h-full" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" }), i("div", { class: "w-full bg-gray-200 rounded h-1/3" }), i("div", { class: "w-full bg-gray-200 rounded h-4/5" }), i("div", { class: "w-full bg-gray-200 rounded h-full" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" }), i("div", { class: "w-full bg-gray-200 rounded h-1/3" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" }), i("div", { class: "w-full bg-gray-200 rounded h-1/3" }), i("div", { class: "w-full bg-gray-200 rounded h-4/5" }), i("div", { class: "w-full bg-gray-200 rounded h-full" }), i("div", { class: "w-full bg-gray-200 rounded h-4/5" }), i("div", { class: "w-full bg-gray-200 rounded h-full" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" }), i("div", { class: "w-full bg-gray-200 rounded h-1/3" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" })])], -1)], Uu = { name: "uiChart" }, qu = Object.assign(Uu, { props: { title: String, id: { type: String, default: "noChartId" }, series: { type: Object, required: true }, options: { type: Object, required: true }, loading: { type: Boolean, default: true }, empty: { type: Boolean, default: false }, range: { type: String, default: "24h" }, height: { type: Number, default: 320 } }, emits: ["selectedRange", "chartUpdated", "dataPointSelection"], setup(t2, { emit: l2 }) {
2395
- const r2 = l2, s2 = t2, c2 = u(() => ({ ...s2.options, ...Au })), p2 = u(() => s2.series), g2 = () => r2("chartUpdated"), f2 = (e2, t3, l3) => {
2397
+ } }, markers: { strokeWidth: 0, size: 4, hover: { size: 8 } }, plotOptions: { bar: { borderRadius: 0, horizontal: true, barHeight: "80%", isFunnel: true } } }, Nu = { class: "chart-header flex flex-row justify-between" }, zu = { class: "text-sm font-medium text-gray-500 truncate" }, $u = { class: "chart-content" }, Hu = { class: "h-full w-full flex items-center justify-center flex-col" }, Vu = i("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1), Yu = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, Uu = [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)], qu = { name: "uiChart" }, Wu = Object.assign(qu, { 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 }) {
2398
+ const r2 = l2, s2 = t2, c2 = u(() => ({ ...s2.options, ...Fu })), p2 = u(() => s2.series), g2 = () => r2("chartUpdated"), f2 = (e2, t3, l3) => {
2396
2399
  r2("dataPointSelection", { id: s2.id, chartContext: t3, config: l3, event: e2 });
2397
2400
  };
2398
- return (l3, r3) => (e(), a(x, null, [B(i("div", { class: n(["h-[" + t2.height + "px]", "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"]) }, [i("div", Fu, [i("div", Nu, _(t2.title), 1), o(Lr, { range: t2.range, onRangeSelected: r3[0] || (r3[0] = (e2) => l3.$emit("selectedRange", { range: e2, chartId: t2.id })) }, null, 8, ["range"])]), B(i("div", zu, [o(d(U), { type: l3.bar, series: p2.value, width: "100%", height: t2.height, options: c2.value, onUpdated: g2, onMounted: g2, onDataPointSelection: f2 }, null, 8, ["type", "series", "height", "options"])], 512), [[A, !t2.empty]]), B(i("div", $u, [o(W, { icon: d(un), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), Hu], 512), [[A, t2.empty]])], 2), [[A, !t2.loading]]), B(i("div", Vu, Yu, 512), [[A, t2.loading]])], 64));
2399
- } }), Wu = { class: "w-full flex flex-col items-center justify-center p-10 grow" }, Ku = { class: "text-2xl mt-4 font-bold" }, Ju = { class: "buttons flex flex-row items-center justify-center mt-8 gap-x-1" }, Gu = { __name: "uiNoResults", props: { title: { type: String, required: true }, message: { type: String, required: true }, actions: { type: Array } }, emits: ["action"], setup: (l2, { emit: n2 }) => (n3, r2) => (e(), a("div", Wu, [o(W, { loading: false, icon: d(un), size: "massive", color: "gray" }, null, 8, ["icon"]), i("h2", Ku, _(l2.title), 1), i("p", null, _(l2.message), 1), i("div", Ju, [(e(true), a(x, null, j(l2.actions, (l3, a2) => (e(), t(X, { key: a2, loading: false, onClick: (e2) => n3.$emit("action", l3.action) }, { default: D(() => [I(_(l3.text), 1)]), _: 2 }, 1032, ["onClick"]))), 128))])])) }, Zu = i("div", { class: "fixed inset-0" }, null, -1), Xu = { class: "fixed inset-0 overflow-hidden" }, Qu = { class: "absolute inset-0 overflow-hidden" }, ed = { class: "pointer-events-none fixed inset-y-0 right-0 flex max-w-full pl-10" }, td = { class: "flex h-full flex-col overflow-y-scroll bg-white shadow-xl" }, ld = { class: "bg-indigo-700 px-4 py-6 sm:px-6" }, nd = { class: "flex items-center justify-between" }, ad = { class: "ml-3 flex h-7 items-center" }, od = i("span", { class: "absolute -inset-2.5" }, null, -1), rd = i("span", { class: "sr-only" }, "Close panel", -1), id = { class: "mt-1" }, sd = { class: "text-sm text-indigo-300" }, ud = { class: "relative flex-1 px-4 py-6 sm:px-6" }, dd = { name: "uiRightSidebar" }, cd = Object.assign(dd, { props: { title: { type: String, required: true }, description: { type: String }, open: { type: Boolean, default: false } }, emits: ["closeRightBar"], setup(l2, { emit: n2 }) {
2401
+ return (l3, r3) => (e(), a(x, null, [B(i("div", { class: n(["h-[" + t2.height + "px]", "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"]) }, [i("div", Nu, [i("div", zu, _(t2.title), 1), o(Lr, { range: t2.range, onRangeSelected: r3[0] || (r3[0] = (e2) => l3.$emit("selectedRange", { range: e2, chartId: t2.id })) }, null, 8, ["range"])]), B(i("div", $u, [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", Hu, [o(W, { icon: d(un), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), Vu], 512), [[L, t2.empty]])], 2), [[L, !t2.loading]]), B(i("div", Yu, Uu, 512), [[L, t2.loading]])], 64));
2402
+ } }), Ku = { class: "w-full flex flex-col items-center justify-center p-10 grow" }, Ju = { class: "text-2xl mt-4 font-bold" }, Gu = { class: "buttons flex flex-row items-center justify-center mt-8 gap-x-1" }, Zu = { __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", Ku, [o(W, { loading: false, icon: d(un), size: "massive", color: "gray" }, null, 8, ["icon"]), i("h2", Ju, _(l2.title), 1), i("p", null, _(l2.message), 1), i("div", Gu, [(e(true), a(x, null, j(l2.actions, (l3, a2) => (e(), t(X, { key: a2, loading: false, onClick: (e2) => n3.$emit("action", l3.action) }, { default: D(() => [I(_(l3.text), 1)]), _: 2 }, 1032, ["onClick"]))), 128))])])) }, Xu = i("div", { class: "fixed inset-0" }, null, -1), Qu = { class: "fixed inset-0 overflow-hidden" }, ed = { class: "absolute inset-0 overflow-hidden" }, td = { class: "pointer-events-none fixed inset-y-0 right-0 flex max-w-full pl-10" }, ld = { class: "flex h-full flex-col overflow-y-scroll bg-white shadow-xl" }, nd = { class: "bg-indigo-700 px-4 py-6 sm:px-6" }, ad = { class: "flex items-center justify-between" }, od = { class: "ml-3 flex h-7 items-center" }, rd = i("span", { class: "absolute -inset-2.5" }, null, -1), id = i("span", { class: "sr-only" }, "Close panel", -1), sd = { class: "mt-1" }, ud = { class: "text-sm text-indigo-300" }, dd = { class: "relative flex-1 px-4 py-6 sm:px-6" }, cd = { name: "uiRightSidebar" }, pd = Object.assign(cd, { props: { title: { type: String, required: true }, description: { type: String }, open: { type: Boolean, default: false } }, emits: ["closeRightBar"], setup(l2, { emit: n2 }) {
2400
2403
  const a2 = n2;
2401
- return (n3, s2) => (e(), t(d(Xl), { as: "template", show: l2.open }, { default: D(() => [o(d(dl), { as: "div", class: "relative z-10", onClose: s2[1] || (s2[1] = (e2) => a2("closeRightBar")) }, { default: D(() => [Zu, i("div", Xu, [i("div", Qu, [i("div", ed, [o(d(Gl), { as: "template", enter: "transform transition ease-in-out duration-500 sm:duration-700", "enter-from": "translate-x-full", "enter-to": "translate-x-0", leave: "transform transition ease-in-out duration-500 sm:duration-700", "leave-from": "translate-x-0", "leave-to": "translate-x-full" }, { default: D(() => [o(d(cl), { class: "pointer-events-auto w-screen max-w-md" }, { default: D(() => [i("div", td, [i("div", ld, [i("div", nd, [o(d(pl), { class: "text-base font-semibold leading-6 text-white" }, { default: D(() => [I(_(l2.title), 1)]), _: 1 }), i("div", ad, [i("button", { type: "button", class: "relative rounded-md bg-indigo-700 text-indigo-200 hover:text-white outline-none", onClick: s2[0] || (s2[0] = (e2) => a2("closeRightBar")) }, [od, rd, o(d(mn), { class: "h-6 w-6 ring-0", "aria-hidden": "true" })])])]), i("div", id, [i("p", sd, _(l2.description), 1)])]), i("div", ud, [r(n3.$slots, "default")])])]), _: 3 })]), _: 3 })])])])]), _: 3 })]), _: 3 }, 8, ["show"]));
2402
- } }), pd = { uiButton: X, uiIcon: W, uiCheckbox: ie, uiDropdown: wn, uiInput: Pn, uiInputFile: Wn, uiSelect: Xn, uiTag: la, uiTextArea: ua, uiToggle: ma, uiAlert: Ma, uiBreadcrumbs: La, uiCard: Ua, uiFilter: Wa, uiModal: oo, uiNotification: yo, uiTaskList: _o, uiPriceCalendar: jr, uiChart: Ur, uiFooter: Jr, uiLoadingScreen: Xr, uiPagination: fi, uiSidebar: Di, uiStats: Hi, uiStripedCard: as, uiTable: Es, uiTabs: Ls, uiTimeline: cu, uiTopbar: Lu, uiFunnelChartV2: qu, uiNoResults: Gu, uiRightSidebar: cd }, gd = { install(e2) {
2403
- Object.keys(pd).forEach((t2) => {
2404
- e2.component(t2, pd[t2]);
2404
+ return (n3, s2) => (e(), t(d(Xl), { as: "template", show: l2.open }, { default: D(() => [o(d(dl), { as: "div", class: "relative z-10", onClose: s2[1] || (s2[1] = (e2) => a2("closeRightBar")) }, { default: D(() => [Xu, i("div", Qu, [i("div", ed, [i("div", td, [o(d(Gl), { as: "template", enter: "transform transition ease-in-out duration-500 sm:duration-700", "enter-from": "translate-x-full", "enter-to": "translate-x-0", leave: "transform transition ease-in-out duration-500 sm:duration-700", "leave-from": "translate-x-0", "leave-to": "translate-x-full" }, { default: D(() => [o(d(cl), { class: "pointer-events-auto w-screen max-w-md" }, { default: D(() => [i("div", ld, [i("div", nd, [i("div", ad, [o(d(pl), { class: "text-base font-semibold leading-6 text-white" }, { default: D(() => [I(_(l2.title), 1)]), _: 1 }), i("div", od, [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")) }, [rd, id, o(d(vn), { class: "h-6 w-6 ring-0", "aria-hidden": "true" })])])]), i("div", sd, [i("p", ud, _(l2.description), 1)])]), i("div", dd, [r(n3.$slots, "default")])])]), _: 3 })]), _: 3 })])])])]), _: 3 })]), _: 3 }, 8, ["show"]));
2405
+ } }), gd = { class: "uiGallery" }, fd = { key: 0, 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 = { 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" }, vd = ["src"], yd = ["onClick"], bd = { class: "pointer-events-none mt-2 block truncate text-sm font-medium text-gray-900" }, hd = { class: "flex items-center justify-between" }, xd = { class: "pointer-events-none block text-sm font-medium text-gray-500" }, wd = { 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" }, kd = [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)], Sd = { name: "uiGallery" }, Cd = Object.assign(Sd, { props: { galleryId: String, gallery: Array, loading: Boolean, literals: Object }, setup(l2, { emit: n2 }) {
2406
+ const r2 = n2, u2 = s(false);
2407
+ return (n3, s2) => (e(), a("div", gd, [o(ro, { 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) => {
2408
+ var t2;
2409
+ "close" !== (t2 = e2).action ? r2("modalAction", t2) : u2.value = false;
2410
+ }) }, { default: D(() => [i("p", null, _(l2.literals.modalText), 1)]), _: 1 }, 8, ["open", "title", "actions"]), l2.loading ? (e(), a("ul", wd, [(e(), a(x, null, j(4, (e2) => i("li", null, kd)), 64))])) : (e(), a("ul", fd, [(e(true), a(x, null, j(l2.gallery, (t2) => (e(), a("li", { key: t2.source, class: "relative" }, [i("div", md, [i("img", { src: t2.source, alt: "", class: "pointer-events-none object-cover group-hover:opacity-75" }, null, 8, vd), i("button", { type: "button", class: "absolute inset-0 focus:outline-none", onClick: (e2) => n3.$emit("imgClicked", t2) }, null, 8, yd)]), i("p", bd, _(t2.title), 1), i("div", hd, [i("p", xd, _(t2.size), 1), o(W, { 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(X, { key: 2, onClick: s2[1] || (s2[1] = (e2) => u2.value = true), class: "mt-8", loading: false, color: "red", size: "small" }, { default: D(() => [I(_(l2.literals.deleteAllImages), 1)]), _: 1 })) : R("", true)]));
2411
+ } }), Od = { uiButton: X, uiIcon: W, uiCheckbox: ie, uiDropdown: kn, uiInput: jn, uiInputFile: Kn, uiSelect: Qn, uiTag: na, uiTextArea: da, uiToggle: va, uiAlert: Ta, uiBreadcrumbs: La, uiCard: qa, uiFilter: Ka, uiModal: ro, uiNotification: ho, uiTaskList: Po, uiPriceCalendar: Rr, uiChart: qr, uiFooter: Gr, uiLoadingScreen: Qr, uiPagination: mi, uiSidebar: Ii, uiStats: Vi, uiStripedCard: os, uiTable: Ds, uiTabs: Ls, uiTimeline: pu, uiTopbar: Lu, uiFunnelChartV2: Wu, uiNoResults: Zu, uiRightSidebar: pd, uiGallery: Cd }, Md = { install(e2) {
2412
+ Object.keys(Od).forEach((t2) => {
2413
+ e2.component(t2, Od[t2]);
2405
2414
  });
2406
2415
  } };
2407
2416
  export {
2408
- gd as default
2417
+ Md as default
2409
2418
  };