@hotelinking/ui 1.30.14 → 1.30.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui.es.js CHANGED
@@ -1,9 +1,9 @@
1
- import { openBlock as e, createBlock as t, resolveDynamicComponent as l, normalizeClass as a, createElementBlock as n, createVNode as r, renderSlot as o, createElementVNode as i, ref as s, cloneVNode as u, h as d, Fragment as c, inject as p, provide as g, onMounted as m, watchEffect as f, nextTick as v, computed as y, defineComponent as b, toRaw as h, watch as x, onUnmounted as w, Teleport as k, reactive as S, unref as C, shallowRef as O, withCtx as D, createTextVNode as M, toDisplayString as P, Transition as _, renderList as T, createCommentVNode as j, withDirectives as E, vModelDynamic as L, vShow as B, withModifiers as I, vModelText as R, createStaticVNode as F, resolveComponent as A, vModelCheckbox as N, isRef as $ } from "vue";
1
+ import { openBlock as e, createBlock as t, resolveDynamicComponent as l, normalizeClass as a, createElementBlock as n, createVNode as r, renderSlot as o, createElementVNode as i, ref as s, cloneVNode as u, h as d, Fragment as c, inject as p, provide as g, onMounted as f, watchEffect as m, nextTick as v, computed as y, defineComponent as b, toRaw as h, watch as x, onUnmounted as w, Teleport as k, reactive as S, unref as C, shallowRef as O, withCtx as D, createTextVNode as M, toDisplayString as P, Transition as _, renderList as T, createCommentVNode as j, withDirectives as E, vModelDynamic as L, vShow as B, withModifiers as I, vModelText as R, createStaticVNode as F, resolveComponent as A, vModelCheckbox as N, isRef as $ } from "vue";
2
2
  import H from "dayjs";
3
3
  import Y from "vue3-apexcharts";
4
4
  import { VueFunnelGraph as V } from "vue3-funnel-graph-js";
5
5
  const q = { name: "uiIcon" }, U = 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: (r2) => (o2, i2) => r2.loading ? (e(), n("div", { key: 1, class: a([{ "h-4 w-4": "normal" === r2.size, "h-6 w-6": "big" === r2.size, "h-12 w-12": "huge" === r2.size, "h-20 w-20": "massive" === r2.size }, "animate-pulse rounded-full bg-gray-200 dark:bg-gray-300"]) }, null, 2)) : (e(), t(l(r2.icon), { key: 0, class: a({ "h-4 w-4": "normal" === r2.size, "h-6 w-6": "big" === r2.size, "h-12 w-12": "huge" === r2.size, "h-20 w-20": "massive" === r2.size, "text-indigo-600": "primary" === r2.color, "text-cyan-300": "secondary" === r2.color, "text-red-400": "red" === r2.color, "text-yellow-400": "yellow" === r2.color, "text-green-400": "green" === r2.color, "text-white": "white" === r2.color, "text-gray-300": "gray" === r2.color, "text-black": "black" === r2.color }) }, null, 8, ["class"])) }), z = ["disabled"], W = { 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" }, K = i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-16" }, null, -1), J = { name: "uiButton" }, G = Object.assign(J, { props: { color: { type: String, default: "primary" }, size: { type: String, default: "normal" }, icon: { type: Function, default: () => {
6
- } }, disabled: { type: Boolean, default: false }, loading: { type: Boolean, default: true } }, setup: (t2) => (l2, i2) => t2.loading ? (e(), n("button", W, [r(U, { icon: t2.icon, color: "white", class: "-ml-0.5 mr-2", loading: t2.loading }, null, 8, ["icon", "loading"]), K])) : (e(), n("button", { key: 0, disabled: t2.disabled, class: a([{ "bg-indigo-600 hover:bg-indigo-800": "primary" === t2.color, "bg-cyan-300 hover:bg-cyan-500": "secondary" === t2.color, "bg-red-400 hover:bg-red-600": "red" === t2.color, "bg-yellow-400 hover:bg-yellow-600": "yellow" === t2.color, "bg-green-400 hover:bg-green-600": "green" === t2.color, "px-4 py-2 text-sm rounded-md": "normal" === t2.size, "px-2.5 py-1.5 text-xs rounded leading-none": "small" === t2.size, "px-6 py-3 text-base rounded-md": "large" === t2.size }, "w-full sm:w-auto justify-center 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"]), type: "button" }, [r(U, { icon: t2.icon, color: "white", class: "-ml-0.5 mr-2", loading: t2.loading }, null, 8, ["icon", "loading"]), o(l2.$slots, "default")], 10, z)) }), X = { key: 0, class: "relative flex items-start" }, Q = { class: "flex items-center h-5" }, Z = ["checked", "value", "disabled"], ee = { class: "ml-3 text-sm" }, te = { class: "text-gray-500" }, le = { key: 1, class: "flex items-center animate-pulse" }, ae = [i("div", { class: "w-5 h-5 rounded bg-gray-200" }, null, -1), i("div", { class: "ml-3 h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28" }, null, -1)], ne = { name: "uiCheckbox" }, re = Object.assign(ne, { props: { disabled: { type: Boolean, default: false }, value: { type: String }, check: { type: Boolean, default: false }, loading: { type: Boolean, default: true } }, emits: ["checkboxChanged"], setup(t2, { emit: l2 }) {
6
+ } }, disabled: { type: Boolean, default: false }, loading: { type: Boolean, default: true } }, setup: (t2) => (l2, i2) => t2.loading ? (e(), n("button", W, [r(U, { icon: t2.icon, color: "white", class: "-ml-0.5 mr-2", loading: t2.loading }, null, 8, ["icon", "loading"]), K])) : (e(), n("button", { key: 0, disabled: t2.disabled, class: a([{ "bg-indigo-600 hover:bg-indigo-800": "primary" === t2.color, "bg-cyan-300 hover:bg-cyan-500": "secondary" === t2.color, "bg-red-400 hover:bg-red-600": "red" === t2.color, "bg-yellow-400 hover:bg-yellow-600": "yellow" === t2.color, "bg-green-400 hover:bg-green-600": "green" === t2.color, "px-4 py-2 text-sm rounded-md": "normal" === t2.size, "px-2.5 py-1.5 text-xs rounded leading-none": "small" === t2.size, "px-6 py-3 text-base rounded-md": "large" === t2.size }, "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"]), type: "button" }, [r(U, { icon: t2.icon, color: "white", class: "-ml-0.5 mr-2", loading: t2.loading }, null, 8, ["icon", "loading"]), o(l2.$slots, "default")], 10, z)) }), X = { key: 0, class: "relative flex items-start" }, Q = { class: "flex items-center h-5" }, Z = ["checked", "value", "disabled"], ee = { class: "ml-3 text-sm" }, te = { class: "text-gray-500" }, le = { key: 1, class: "flex items-center animate-pulse" }, ae = [i("div", { class: "w-5 h-5 rounded bg-gray-200" }, null, -1), i("div", { class: "ml-3 h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28" }, null, -1)], ne = { name: "uiCheckbox" }, re = Object.assign(ne, { props: { disabled: { type: Boolean, default: false }, value: { type: String }, check: { type: Boolean, default: false }, loading: { type: Boolean, default: true } }, emits: ["checkboxChanged"], setup(t2, { emit: l2 }) {
7
7
  const a2 = t2, r2 = s(a2.check);
8
8
  return (s2, u2) => t2.loading ? (e(), n("div", le, ae)) : (e(), n("div", X, [i("div", Q, [i("input", { checked: t2.check, value: t2.value, disabled: t2.disabled, class: "focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded disabled:opacity-25", type: "checkbox", onChange: u2[0] || (u2[0] = (e2) => {
9
9
  a2.disabled || (r2.value = !r2.value, l2("checkboxChanged", { checked: r2.value, value: a2.value }));
@@ -30,7 +30,7 @@ function ue({ visible: e2 = true, features: t2 = 0, ourProps: l2, theirProps: a2
30
30
  }
31
31
  function de({ props: e2, attrs: t2, slots: l2, slot: a2, name: n2 }) {
32
32
  var r2, o2;
33
- let { as: i2, ...s2 } = me(e2, ["unmount", "static"]), c2 = null == (r2 = l2.default) ? void 0 : r2.call(l2, a2), p2 = {};
33
+ let { as: i2, ...s2 } = fe(e2, ["unmount", "static"]), c2 = null == (r2 = l2.default) ? void 0 : r2.call(l2, a2), p2 = {};
34
34
  if (a2) {
35
35
  let e3 = false, t3 = [];
36
36
  for (let [l3, n3] of Object.entries(a2))
@@ -84,15 +84,15 @@ function ge(e2) {
84
84
  void 0 === t2[e3] && delete t2[e3];
85
85
  return t2;
86
86
  }
87
- function me(e2, t2 = []) {
87
+ function fe(e2, t2 = []) {
88
88
  let l2 = Object.assign({}, e2);
89
89
  for (let e3 of t2)
90
90
  e3 in l2 && delete l2[e3];
91
91
  return l2;
92
92
  }
93
- let fe = 0;
93
+ let me = 0;
94
94
  function ve() {
95
- return ++fe;
95
+ return ++me;
96
96
  }
97
97
  var ye = ((e2) => (e2.Space = " ", e2.Enter = "Enter", e2.Escape = "Escape", e2.Backspace = "Backspace", e2.Delete = "Delete", e2.ArrowLeft = "ArrowLeft", e2.ArrowUp = "ArrowUp", e2.ArrowRight = "ArrowRight", e2.ArrowDown = "ArrowDown", e2.Home = "Home", e2.End = "End", e2.PageUp = "PageUp", e2.PageDown = "PageDown", e2.Tab = "Tab", e2))(ye || {});
98
98
  var be = ((e2) => (e2[e2.First = 0] = "First", e2[e2.Previous = 1] = "Previous", e2[e2.Next = 2] = "Next", e2[e2.Last = 3] = "Last", e2[e2.Specific = 4] = "Specific", e2[e2.Nothing = 5] = "Nothing", e2))(be || {});
@@ -146,9 +146,9 @@ function Oe(e2, t2) {
146
146
  }
147
147
  function De(e2, t2) {
148
148
  let l2 = s(Oe(e2.value.type, e2.value.as));
149
- return m(() => {
149
+ return f(() => {
150
150
  l2.value = Oe(e2.value.type, e2.value.as);
151
- }), f(() => {
151
+ }), m(() => {
152
152
  var e3;
153
153
  l2.value || xe(t2) && xe(t2) instanceof HTMLButtonElement && (null == (e3 = xe(t2)) || !e3.hasAttribute("type")) && (l2.value = "button");
154
154
  }), l2;
@@ -192,7 +192,7 @@ function Te(e2) {
192
192
  return document;
193
193
  }
194
194
  function je({ container: e2, accept: t2, walk: l2, enabled: a2 }) {
195
- f(() => {
195
+ m(() => {
196
196
  let n2 = e2.value;
197
197
  if (!n2 || void 0 !== a2 && !a2.value)
198
198
  return;
@@ -288,12 +288,12 @@ function qe(e2, t2, { sorted: l2 = true, relativeTo: a2 = null, skipElements: n2
288
288
  }(s2) && s2.select(), 2;
289
289
  }
290
290
  function Ue(e2, t2, l2) {
291
- _e.isServer || f((a2) => {
291
+ _e.isServer || m((a2) => {
292
292
  document.addEventListener(e2, t2, l2), a2(() => document.removeEventListener(e2, t2, l2));
293
293
  });
294
294
  }
295
295
  function ze(e2, t2, l2) {
296
- _e.isServer || f((a2) => {
296
+ _e.isServer || m((a2) => {
297
297
  window.addEventListener(e2, t2, l2), a2(() => window.removeEventListener(e2, t2, l2));
298
298
  });
299
299
  }
@@ -412,9 +412,9 @@ function dt(e2) {
412
412
  return t2;
413
413
  }
414
414
  let ct = b({ name: "Combobox", emits: { "update:modelValue": (e2) => true }, props: { as: { type: [Object, String], default: "template" }, disabled: { type: [Boolean], default: false }, by: { type: [String, Function], default: () => rt }, modelValue: { type: [Object, String, Number, Boolean], default: void 0 }, defaultValue: { type: [Object, String, Number, Boolean], default: void 0 }, form: { type: String, optional: true }, name: { type: String, optional: true }, nullable: { type: Boolean, default: false }, multiple: { type: [Boolean], default: false } }, inheritAttrs: false, setup(e2, { slots: t2, attrs: l2, emit: a2 }) {
415
- let n2 = s(1), r2 = s(null), o2 = s(null), i2 = s(null), u2 = s(null), p2 = s({ static: false, hold: false }), f2 = s([]), v2 = s(null), b2 = s(1), w2 = s(false);
415
+ let n2 = s(1), r2 = s(null), o2 = s(null), i2 = s(null), u2 = s(null), p2 = s({ static: false, hold: false }), m2 = s([]), v2 = s(null), b2 = s(1), w2 = s(false);
416
416
  function k2(e3 = (e4) => e4) {
417
- let t3 = null !== v2.value ? f2.value[v2.value] : null, l3 = Ve(e3(f2.value.slice()), (e4) => xe(e4.dataRef.domRef)), a3 = t3 ? l3.indexOf(t3) : null;
417
+ let t3 = null !== v2.value ? m2.value[v2.value] : null, l3 = Ve(e3(m2.value.slice()), (e4) => xe(e4.dataRef.domRef)), a3 = t3 ? l3.indexOf(t3) : null;
418
418
  return -1 === a3 && (a3 = null), { options: l3, activeOptionIndex: a3 };
419
419
  }
420
420
  let S2 = y(() => e2.multiple ? 1 : 0), C2 = y(() => e2.nullable), [O2, D2] = Ze(y(() => void 0 === e2.modelValue ? oe(S2.value, { 1: [], 0: void 0 }) : e2.modelValue), (e3) => a2("update:modelValue", e3), y(() => e2.defaultValue)), M2 = { comboboxState: n2, value: O2, mode: S2, compare(t3, l3) {
@@ -423,11 +423,11 @@ let ct = b({ name: "Combobox", emits: { "update:modelValue": (e2) => true }, pro
423
423
  return (null == t3 ? void 0 : t3[a3]) === (null == l3 ? void 0 : l3[a3]);
424
424
  }
425
425
  return e2.by(t3, l3);
426
- }, defaultValue: y(() => e2.defaultValue), nullable: C2, inputRef: o2, labelRef: r2, buttonRef: i2, optionsRef: u2, disabled: y(() => e2.disabled), options: f2, change(e3) {
426
+ }, defaultValue: y(() => e2.defaultValue), nullable: C2, inputRef: o2, labelRef: r2, buttonRef: i2, optionsRef: u2, disabled: y(() => e2.disabled), options: m2, change(e3) {
427
427
  D2(e3);
428
428
  }, activeOptionIndex: y(() => {
429
- if (w2.value && null === v2.value && f2.value.length > 0) {
430
- let e3 = f2.value.findIndex((e4) => !e4.dataRef.disabled);
429
+ if (w2.value && null === v2.value && m2.value.length > 0) {
430
+ let e3 = m2.value.findIndex((e4) => !e4.dataRef.disabled);
431
431
  -1 !== e3 && (v2.value = e3);
432
432
  }
433
433
  return v2.value;
@@ -436,7 +436,7 @@ let ct = b({ name: "Combobox", emits: { "update:modelValue": (e2) => true }, pro
436
436
  }, openCombobox() {
437
437
  if (w2.value = true, e2.disabled || 0 === n2.value)
438
438
  return;
439
- let t3 = f2.value.findIndex((e3) => {
439
+ let t3 = m2.value.findIndex((e3) => {
440
440
  let t4 = h(e3.dataRef.value);
441
441
  return oe(S2.value, { 0: () => M2.compare(h(M2.value.value), h(t4)), 1: () => h(M2.value.value).some((e4) => M2.compare(h(e4), h(t4))) });
442
442
  });
@@ -450,9 +450,9 @@ let ct = b({ name: "Combobox", emits: { "update:modelValue": (e2) => true }, pro
450
450
  -1 !== e3 && (r3.activeOptionIndex = e3);
451
451
  }
452
452
  let o3 = he(t3 === be.Specific ? { focus: be.Specific, id: l3 } : { focus: t3 }, { resolveItems: () => r3.options, resolveActiveIndex: () => r3.activeOptionIndex, resolveId: (e3) => e3.id, resolveDisabled: (e3) => e3.dataRef.disabled });
453
- v2.value = o3, b2.value = null != a3 ? a3 : 1, f2.value = r3.options;
453
+ v2.value = o3, b2.value = null != a3 ? a3 : 1, m2.value = r3.options;
454
454
  }, selectOption(e3) {
455
- let t3 = f2.value.find((t4) => t4.id === e3);
455
+ let t3 = m2.value.find((t4) => t4.id === e3);
456
456
  if (!t3)
457
457
  return;
458
458
  let { dataRef: l3 } = t3;
@@ -463,7 +463,7 @@ let ct = b({ name: "Combobox", emits: { "update:modelValue": (e2) => true }, pro
463
463
  }, selectActiveOption() {
464
464
  if (null === M2.activeOptionIndex.value)
465
465
  return;
466
- let { dataRef: e3, id: t3 } = f2.value[M2.activeOptionIndex.value];
466
+ let { dataRef: e3, id: t3 } = m2.value[M2.activeOptionIndex.value];
467
467
  D2(oe(S2.value, { 0: () => e3.value, 1: () => {
468
468
  let t4 = h(M2.value.value).slice(), l3 = h(e3.value), a3 = t4.findIndex((e4) => M2.compare(l3, h(e4)));
469
469
  return -1 === a3 ? t4.push(l3) : t4.splice(a3, 1), t4;
@@ -474,9 +474,9 @@ let ct = b({ name: "Combobox", emits: { "update:modelValue": (e2) => true }, pro
474
474
  let e4 = t3.value.value;
475
475
  oe(S2.value, { 0: () => M2.compare(h(M2.value.value), h(e4)), 1: () => h(M2.value.value).some((t4) => M2.compare(h(t4), h(e4))) }) && (a3.activeOptionIndex = a3.options.indexOf(l3));
476
476
  }
477
- f2.value = a3.options, v2.value = a3.activeOptionIndex, b2.value = 1, a3.options.some((e4) => !xe(e4.dataRef.domRef)) && requestAnimationFrame(() => {
477
+ m2.value = a3.options, v2.value = a3.activeOptionIndex, b2.value = 1, a3.options.some((e4) => !xe(e4.dataRef.domRef)) && requestAnimationFrame(() => {
478
478
  let e4 = k2();
479
- f2.value = e4.options, v2.value = e4.activeOptionIndex;
479
+ m2.value = e4.options, v2.value = e4.activeOptionIndex;
480
480
  });
481
481
  }, unregisterOption(e3) {
482
482
  var t3;
@@ -485,14 +485,14 @@ let ct = b({ name: "Combobox", emits: { "update:modelValue": (e2) => true }, pro
485
485
  let l4 = t4.findIndex((t5) => t5.id === e3);
486
486
  return -1 !== l4 && t4.splice(l4, 1), t4;
487
487
  });
488
- f2.value = l3.options, v2.value = l3.activeOptionIndex, b2.value = 1;
488
+ m2.value = l3.options, v2.value = l3.activeOptionIndex, b2.value = 1;
489
489
  } };
490
490
  We([o2, i2, u2], () => M2.closeCombobox(), y(() => 0 === n2.value)), g(ut, M2), Ce(y(() => oe(n2.value, { 0: ke.Open, 1: ke.Closed })));
491
- let P2 = y(() => null === M2.activeOptionIndex.value ? null : f2.value[M2.activeOptionIndex.value].dataRef.value), _2 = y(() => {
491
+ let P2 = y(() => null === M2.activeOptionIndex.value ? null : m2.value[M2.activeOptionIndex.value].dataRef.value), _2 = y(() => {
492
492
  var e3;
493
493
  return null == (e3 = xe(o2)) ? void 0 : e3.closest("form");
494
494
  });
495
- return m(() => {
495
+ return f(() => {
496
496
  x([_2], () => {
497
497
  if (_2.value && void 0 !== e2.defaultValue)
498
498
  return _2.value.addEventListener("reset", t3), () => {
@@ -505,7 +505,7 @@ let ct = b({ name: "Combobox", emits: { "update:modelValue": (e2) => true }, pro
505
505
  }, { immediate: true });
506
506
  }), () => {
507
507
  let { name: a3, disabled: r3, form: o3, ...i3 } = e2, s2 = { open: 0 === n2.value, disabled: r3, activeIndex: M2.activeOptionIndex.value, activeOption: P2.value, value: O2.value };
508
- return d(c, [...null != a3 && null != O2.value ? Ge({ [a3]: O2.value }).map(([e3, t3]) => d(Je, ge({ features: Ke.Hidden, key: e3, as: "input", type: "hidden", hidden: true, readOnly: true, form: o3, name: e3, value: t3 }))) : [], ue({ theirProps: { ...l2, ...me(i3, ["modelValue", "defaultValue", "nullable", "multiple", "onUpdate:modelValue", "by"]) }, ourProps: {}, slot: s2, slots: t2, attrs: l2, name: "Combobox" })]);
508
+ return d(c, [...null != a3 && null != O2.value ? Ge({ [a3]: O2.value }).map(([e3, t3]) => d(Je, ge({ features: Ke.Hidden, key: e3, as: "input", type: "hidden", hidden: true, readOnly: true, form: o3, name: e3, value: t3 }))) : [], ue({ theirProps: { ...l2, ...fe(i3, ["modelValue", "defaultValue", "nullable", "multiple", "onUpdate:modelValue", "by"]) }, ourProps: {}, slot: s2, slots: t2, attrs: l2, name: "Combobox" })]);
509
509
  };
510
510
  } }), pt = b({ name: "ComboboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: () => `headlessui-combobox-label-${ve()}` } }, setup(e2, { attrs: t2, slots: l2 }) {
511
511
  let a2 = dt("ComboboxLabel");
@@ -555,7 +555,7 @@ let ct = b({ name: "Combobox", emits: { "update:modelValue": (e2) => true }, pro
555
555
  let u2 = { open: 0 === n2.comboboxState.value, disabled: n2.disabled.value, value: n2.value.value }, { id: d2, ...c2 } = e2;
556
556
  return ue({ ourProps: { ref: n2.buttonRef, id: d2, type: i2.value, tabindex: "-1", "aria-haspopup": "listbox", "aria-controls": null == (a3 = xe(n2.optionsRef)) ? void 0 : a3.id, "aria-expanded": n2.disabled.value ? void 0 : 0 === n2.comboboxState.value, "aria-labelledby": n2.labelRef.value ? [null == (s2 = xe(n2.labelRef)) ? void 0 : s2.id, d2].join(" ") : void 0, disabled: true === n2.disabled.value || void 0, onKeydown: o2, onClick: r2 }, theirProps: c2, slot: u2, attrs: t2, slots: l2, name: "ComboboxButton" });
557
557
  };
558
- } }), mt = b({ name: "ComboboxInput", props: { as: { type: [Object, String], default: "input" }, static: { type: Boolean, default: false }, unmount: { type: Boolean, default: true }, displayValue: { type: Function }, defaultValue: { type: String, default: void 0 }, id: { type: String, default: () => `headlessui-combobox-input-${ve()}` } }, emits: { change: (e2) => true }, setup(e2, { emit: t2, attrs: l2, slots: a2, expose: n2 }) {
558
+ } }), ft = b({ name: "ComboboxInput", props: { as: { type: [Object, String], default: "input" }, static: { type: Boolean, default: false }, unmount: { type: Boolean, default: true }, displayValue: { type: Function }, defaultValue: { type: String, default: void 0 }, id: { type: String, default: () => `headlessui-combobox-input-${ve()}` } }, emits: { change: (e2) => true }, setup(e2, { emit: t2, attrs: l2, slots: a2, expose: n2 }) {
559
559
  let r2 = dt("ComboboxInput"), o2 = { value: false };
560
560
  n2({ el: r2.inputRef, $el: r2.inputRef });
561
561
  let i2 = y(() => {
@@ -563,7 +563,7 @@ let ct = b({ name: "Combobox", emits: { "update:modelValue": (e2) => true }, pro
563
563
  let l3 = r2.value.value;
564
564
  return xe(r2.inputRef) ? void 0 !== e2.displayValue && void 0 !== l3 ? null != (t3 = e2.displayValue(l3)) ? t3 : "" : "string" == typeof l3 ? l3 : "" : "";
565
565
  });
566
- m(() => {
566
+ f(() => {
567
567
  x([i2, r2.comboboxState], ([e3, t3], [l3, a3]) => {
568
568
  if (o2.value)
569
569
  return;
@@ -641,7 +641,7 @@ let ct = b({ name: "Combobox", emits: { "update:modelValue": (e2) => true }, pro
641
641
  0 === r2.mode.value && r2.selectActiveOption(), r2.closeCombobox();
642
642
  }
643
643
  }
644
- function f2(e3) {
644
+ function m2(e3) {
645
645
  u2.value ? d2.value = e3 : (r2.openCombobox(), t2("change", e3));
646
646
  }
647
647
  function b2() {
@@ -653,14 +653,14 @@ let ct = b({ name: "Combobox", emits: { "update:modelValue": (e2) => true }, pro
653
653
  });
654
654
  return () => {
655
655
  var t3, n3, o3, i3, s2, u3;
656
- let d3 = { open: 0 === r2.comboboxState.value }, { id: m2, displayValue: v2, onChange: y2, ...x2 } = e2;
657
- return ue({ ourProps: { "aria-controls": null == (t3 = r2.optionsRef.value) ? void 0 : t3.id, "aria-expanded": r2.disabled.value ? void 0 : 0 === r2.comboboxState.value, "aria-activedescendant": null === r2.activeOptionIndex.value || null == (n3 = r2.options.value[r2.activeOptionIndex.value]) ? void 0 : n3.id, "aria-labelledby": null != (s2 = null == (o3 = xe(r2.labelRef)) ? void 0 : o3.id) ? s2 : null == (i3 = xe(r2.buttonRef)) ? void 0 : i3.id, "aria-autocomplete": "list", id: m2, onCompositionstart: c2, onCompositionend: p2, onKeydown: g2, onInput: f2, onBlur: b2, role: "combobox", type: null != (u3 = l2.type) ? u3 : "text", tabIndex: 0, ref: r2.inputRef, defaultValue: h2.value, disabled: true === r2.disabled.value || void 0 }, theirProps: x2, slot: d3, attrs: l2, slots: a2, features: ie.RenderStrategy | ie.Static, name: "ComboboxInput" });
656
+ let d3 = { open: 0 === r2.comboboxState.value }, { id: f2, displayValue: v2, onChange: y2, ...x2 } = e2;
657
+ return ue({ ourProps: { "aria-controls": null == (t3 = r2.optionsRef.value) ? void 0 : t3.id, "aria-expanded": r2.disabled.value ? void 0 : 0 === r2.comboboxState.value, "aria-activedescendant": null === r2.activeOptionIndex.value || null == (n3 = r2.options.value[r2.activeOptionIndex.value]) ? void 0 : n3.id, "aria-labelledby": null != (s2 = null == (o3 = xe(r2.labelRef)) ? void 0 : o3.id) ? s2 : null == (i3 = xe(r2.buttonRef)) ? void 0 : i3.id, "aria-autocomplete": "list", id: f2, onCompositionstart: c2, onCompositionend: p2, onKeydown: g2, onInput: m2, onBlur: b2, role: "combobox", type: null != (u3 = l2.type) ? u3 : "text", tabIndex: 0, ref: r2.inputRef, defaultValue: h2.value, disabled: true === r2.disabled.value || void 0 }, theirProps: x2, slot: d3, attrs: l2, slots: a2, features: ie.RenderStrategy | ie.Static, name: "ComboboxInput" });
658
658
  };
659
- } }), ft = b({ name: "ComboboxOptions", props: { as: { type: [Object, String], default: "ul" }, static: { type: Boolean, default: false }, unmount: { type: Boolean, default: true }, hold: { type: [Boolean], default: false } }, setup(e2, { attrs: t2, slots: l2, expose: a2 }) {
659
+ } }), mt = b({ name: "ComboboxOptions", props: { as: { type: [Object, String], default: "ul" }, static: { type: Boolean, default: false }, unmount: { type: Boolean, default: true }, hold: { type: [Boolean], default: false } }, setup(e2, { attrs: t2, slots: l2, expose: a2 }) {
660
660
  let n2 = dt("ComboboxOptions"), r2 = `headlessui-combobox-options-${ve()}`;
661
- a2({ el: n2.optionsRef, $el: n2.optionsRef }), f(() => {
661
+ a2({ el: n2.optionsRef, $el: n2.optionsRef }), m(() => {
662
662
  n2.optionsPropsRef.value.static = e2.static;
663
- }), f(() => {
663
+ }), m(() => {
664
664
  n2.optionsPropsRef.value.hold = e2.hold;
665
665
  });
666
666
  let o2 = Se(), i2 = y(() => null !== o2 ? (o2.value & ke.Open) === ke.Open : 0 === n2.comboboxState.value);
@@ -669,7 +669,7 @@ let ct = b({ name: "Combobox", emits: { "update:modelValue": (e2) => true }, pro
669
669
  } }), () => {
670
670
  var a3, o3, s2;
671
671
  let u2 = { open: 0 === n2.comboboxState.value };
672
- return ue({ ourProps: { "aria-labelledby": null != (s2 = null == (a3 = xe(n2.labelRef)) ? void 0 : a3.id) ? s2 : null == (o3 = xe(n2.buttonRef)) ? void 0 : o3.id, id: r2, ref: n2.optionsRef, role: "listbox", "aria-multiselectable": 1 === n2.mode.value || void 0 }, theirProps: me(e2, ["hold"]), slot: u2, attrs: t2, slots: l2, features: ie.RenderStrategy | ie.Static, visible: i2.value, name: "ComboboxOptions" });
672
+ return ue({ ourProps: { "aria-labelledby": null != (s2 = null == (a3 = xe(n2.labelRef)) ? void 0 : a3.id) ? s2 : null == (o3 = xe(n2.buttonRef)) ? void 0 : o3.id, id: r2, ref: n2.optionsRef, role: "listbox", "aria-multiselectable": 1 === n2.mode.value || void 0 }, theirProps: fe(e2, ["hold"]), slot: u2, attrs: t2, slots: l2, features: ie.RenderStrategy | ie.Static, visible: i2.value, name: "ComboboxOptions" });
673
673
  };
674
674
  } }), vt = b({ name: "ComboboxOption", props: { as: { type: [Object, String], default: "li" }, value: { type: [Object, String, Number, Boolean] }, disabled: { type: Boolean, default: false } }, setup(e2, { slots: t2, attrs: l2, expose: a2 }) {
675
675
  let n2 = dt("ComboboxOption"), r2 = `headlessui-combobox-option-${ve()}`, o2 = s(null);
@@ -688,7 +688,7 @@ let ct = b({ name: "Combobox", emits: { "update:modelValue": (e2) => true }, pro
688
688
  return n2.goToOption(be.Nothing);
689
689
  n2.goToOption(be.Specific, r2);
690
690
  }
691
- m(() => n2.registerOption(r2, d2)), w(() => n2.unregisterOption(r2)), f(() => {
691
+ f(() => n2.registerOption(r2, d2)), w(() => n2.unregisterOption(r2)), m(() => {
692
692
  0 === n2.comboboxState.value && i2.value && 0 !== n2.activationTrigger.value && v(() => {
693
693
  var e3, t3;
694
694
  return null == (t3 = null == (e3 = xe(o2)) ? void 0 : e3.scrollIntoView) ? void 0 : t3.call(e3, { block: "nearest" });
@@ -711,7 +711,7 @@ let ct = b({ name: "Combobox", emits: { "update:modelValue": (e2) => true }, pro
711
711
  } });
712
712
  var yt = ((e2) => (e2[e2.Forwards = 0] = "Forwards", e2[e2.Backwards = 1] = "Backwards", e2))(yt || {});
713
713
  function bt(e2, t2, l2, a2) {
714
- _e.isServer || f((n2) => {
714
+ _e.isServer || m((n2) => {
715
715
  (e2 = null != e2 ? e2 : window).addEventListener(t2, l2, a2), n2(() => e2.removeEventListener(t2, l2, a2));
716
716
  });
717
717
  }
@@ -737,7 +737,7 @@ let kt = Object.assign(b({ name: "FocusTrap", props: { as: { type: [Object, Stri
737
737
  let n2 = s(null);
738
738
  a2({ el: n2, $el: n2 });
739
739
  let r2 = y(() => Te(n2)), o2 = s(false);
740
- m(() => o2.value = true), w(() => o2.value = false), function({ ownerDocument: e3 }, t3) {
740
+ f(() => o2.value = true), w(() => o2.value = false), function({ ownerDocument: e3 }, t3) {
741
741
  let l3 = function(e4) {
742
742
  let t4 = s(St.slice());
743
743
  return x([e4], ([e5], [l4]) => {
@@ -749,8 +749,8 @@ let kt = Object.assign(b({ name: "FocusTrap", props: { as: { type: [Object, Stri
749
749
  return null != (e5 = t4.value.find((e6) => null != e6 && e6.isConnected)) ? e5 : null;
750
750
  };
751
751
  }(t3);
752
- m(() => {
753
- f(() => {
752
+ f(() => {
753
+ m(() => {
754
754
  var a3, n3;
755
755
  t3.value || (null == (a3 = e3.value) ? void 0 : a3.activeElement) === (null == (n3 = e3.value) ? void 0 : n3.body) && He(l3());
756
756
  }, { flush: "post" });
@@ -760,7 +760,7 @@ let kt = Object.assign(b({ name: "FocusTrap", props: { as: { type: [Object, Stri
760
760
  }({ ownerDocument: r2 }, y(() => o2.value && Boolean(16 & e2.features)));
761
761
  let i2 = function({ ownerDocument: e3, container: t3, initialFocus: l3 }, a3) {
762
762
  let n3 = s(null), r3 = s(false);
763
- return m(() => r3.value = true), w(() => r3.value = false), m(() => {
763
+ return f(() => r3.value = true), w(() => r3.value = false), f(() => {
764
764
  x([t3, l3, a3], (o3, i3) => {
765
765
  if (o3.every((e4, t4) => (null == i3 ? void 0 : i3[t4]) === e4) || !a3.value)
766
766
  return;
@@ -846,7 +846,7 @@ function Ct(e2, t2) {
846
846
  });
847
847
  let Ot = /* @__PURE__ */ new Map(), Dt = /* @__PURE__ */ new Map();
848
848
  function Mt(e2, t2 = s(true)) {
849
- f((l2) => {
849
+ m((l2) => {
850
850
  var a2;
851
851
  if (!t2.value)
852
852
  return;
@@ -889,11 +889,11 @@ let jt = b({ name: "Portal", props: { as: { type: [Object, String], default: "di
889
889
  let a3 = t3.createElement("div");
890
890
  return a3.setAttribute("id", "headlessui-portal-root"), t3.body.appendChild(a3);
891
891
  }(a2.value) : o2.resolveTarget());
892
- f(() => {
892
+ m(() => {
893
893
  r2 || null != o2 && (i2.value = o2.resolveTarget());
894
894
  });
895
895
  let u2 = p(Et, null);
896
- return m(() => {
896
+ return f(() => {
897
897
  let e3 = xe(a2);
898
898
  e3 && u2 && w(u2.register(e3));
899
899
  }), w(() => {
@@ -921,7 +921,7 @@ function Ft({ type: e2, enabled: t2, element: l2, onUpdate: a2 }) {
921
921
  function r2(...e3) {
922
922
  null == a2 || a2(...e3), n2(...e3);
923
923
  }
924
- m(() => {
924
+ f(() => {
925
925
  x(t2, (t3, a3) => {
926
926
  t3 ? r2(0, e2, l2) : true === a3 && r2(1, e2, l2);
927
927
  }, { immediate: true, flush: "sync" });
@@ -992,7 +992,7 @@ b({ name: "Description", props: { as: { type: [Object, String], default: "p" },
992
992
  throw new Error("Missing parent");
993
993
  return e3;
994
994
  }();
995
- return m(() => w(a2.register(e2.id))), () => {
995
+ return f(() => w(a2.register(e2.id))), () => {
996
996
  let { name: n2 = "Description", slot: r2 = s({}), props: o2 = {} } = a2, { id: i2, ...u2 } = e2, d2 = { ...Object.entries(o2).reduce((e3, [t3, l3]) => Object.assign(e3, { [t3]: C(l3) }), {}), id: i2 };
997
997
  return ue({ ourProps: d2, theirProps: u2, slot: r2.value, attrs: t2, slots: l2, name: n2 });
998
998
  };
@@ -1062,7 +1062,7 @@ function Wt(e2) {
1062
1062
  let Kt = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Jt = b({ name: "Dialog", inheritAttrs: false, props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: false }, unmount: { type: Boolean, default: true }, open: { type: [Boolean, String], default: Kt }, initialFocus: { type: Object, default: null }, id: { type: String, default: () => `headlessui-dialog-${ve()}` } }, emits: { close: (e2) => true }, setup(e2, { emit: t2, attrs: l2, slots: a2, expose: n2 }) {
1063
1063
  var r2;
1064
1064
  let o2 = s(false);
1065
- m(() => {
1065
+ f(() => {
1066
1066
  o2.value = true;
1067
1067
  });
1068
1068
  let i2 = s(0), u2 = Se(), c2 = y(() => e2.open === Kt && null !== u2 ? (u2.value & ke.Open) === ke.Open : e2.open), h2 = s(null), x2 = y(() => Te(h2));
@@ -1132,7 +1132,7 @@ let Kt = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Jt = b({ name: "Dialog", inheri
1132
1132
  return qt(x2, H2, (e3) => {
1133
1133
  var t3;
1134
1134
  return { containers: [...null != (t3 = e3.containers) ? t3 : [], M2] };
1135
- }), f((e3) => {
1135
+ }), m((e3) => {
1136
1136
  if (0 !== w2.value)
1137
1137
  return;
1138
1138
  let t3 = xe(h2);
@@ -1161,7 +1161,7 @@ b({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div"
1161
1161
  };
1162
1162
  } }), b({ name: "DialogBackdrop", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: () => `headlessui-dialog-backdrop-${ve()}` } }, inheritAttrs: false, setup(e2, { attrs: t2, slots: l2, expose: a2 }) {
1163
1163
  let n2 = Wt("DialogBackdrop"), r2 = s(null);
1164
- return a2({ el: r2, $el: r2 }), m(() => {
1164
+ return a2({ el: r2, $el: r2 }), f(() => {
1165
1165
  if (null === n2.panelRef.value)
1166
1166
  throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.");
1167
1167
  }), () => {
@@ -1180,7 +1180,7 @@ let Gt = b({ name: "DialogPanel", props: { as: { type: [Object, String], default
1180
1180
  };
1181
1181
  } }), Xt = b({ name: "DialogTitle", props: { as: { type: [Object, String], default: "h2" }, id: { type: String, default: () => `headlessui-dialog-title-${ve()}` } }, setup(e2, { attrs: t2, slots: l2 }) {
1182
1182
  let a2 = Wt("DialogTitle");
1183
- return m(() => {
1183
+ return f(() => {
1184
1184
  a2.setTitleId(e2.id), w(() => a2.setTitleId(null));
1185
1185
  }), () => {
1186
1186
  let { id: n2, ...r2 } = e2;
@@ -1214,13 +1214,13 @@ let ll = b({ name: "Disclosure", props: { as: { type: [Object, String], default:
1214
1214
  };
1215
1215
  } }), al = b({ name: "DisclosureButton", props: { as: { type: [Object, String], default: "button" }, disabled: { type: [Boolean], default: false }, id: { type: String, default: () => `headlessui-disclosure-button-${ve()}` } }, setup(e2, { attrs: t2, slots: l2, expose: a2 }) {
1216
1216
  let n2 = el("DisclosureButton");
1217
- m(() => {
1217
+ f(() => {
1218
1218
  n2.buttonId.value = e2.id;
1219
1219
  }), w(() => {
1220
1220
  n2.buttonId.value = null;
1221
1221
  });
1222
1222
  let r2 = p(tl, null), o2 = y(() => null !== r2 && r2.value === n2.panelId.value), i2 = s(null);
1223
- a2({ el: i2, $el: i2 }), o2.value || f(() => {
1223
+ a2({ el: i2, $el: i2 }), o2.value || m(() => {
1224
1224
  n2.button.value = i2.value;
1225
1225
  });
1226
1226
  let u2 = De(y(() => ({ as: e2.as, type: t2.type })), i2);
@@ -1254,7 +1254,7 @@ let ll = b({ name: "Disclosure", props: { as: { type: [Object, String], default:
1254
1254
  };
1255
1255
  } }), nl = b({ name: "DisclosurePanel", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: false }, unmount: { type: Boolean, default: true }, id: { type: String, default: () => `headlessui-disclosure-panel-${ve()}` } }, setup(e2, { attrs: t2, slots: l2, expose: a2 }) {
1256
1256
  let n2 = el("DisclosurePanel");
1257
- m(() => {
1257
+ f(() => {
1258
1258
  n2.panelId.value = e2.id;
1259
1259
  }), w(() => {
1260
1260
  n2.panelId.value = null;
@@ -1393,7 +1393,7 @@ let pl = b({ name: "Menu", props: { as: { type: [Object, String], default: "temp
1393
1393
  let u2 = { open: 0 === n2.menuState.value }, { id: d2, ...c2 } = e2;
1394
1394
  return ue({ ourProps: { ref: n2.buttonRef, id: d2, type: s2.value, "aria-haspopup": "menu", "aria-controls": null == (a3 = xe(n2.itemsRef)) ? void 0 : a3.id, "aria-expanded": e2.disabled ? void 0 : 0 === n2.menuState.value, onKeydown: r2, onKeyup: o2, onClick: i2 }, theirProps: c2, slot: u2, attrs: t2, slots: l2, name: "MenuButton" });
1395
1395
  };
1396
- } }), ml = b({ name: "MenuItems", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: false }, unmount: { type: Boolean, default: true }, id: { type: String, default: () => `headlessui-menu-items-${ve()}` } }, setup(e2, { attrs: t2, slots: l2, expose: a2 }) {
1396
+ } }), fl = b({ name: "MenuItems", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: false }, unmount: { type: Boolean, default: true }, id: { type: String, default: () => `headlessui-menu-items-${ve()}` } }, setup(e2, { attrs: t2, slots: l2, expose: a2 }) {
1397
1397
  let n2 = cl("MenuItems"), r2 = s(null);
1398
1398
  function o2(e3) {
1399
1399
  var t3;
@@ -1445,7 +1445,7 @@ let pl = b({ name: "Menu", props: { as: { type: [Object, String], default: "temp
1445
1445
  let s2 = { open: 0 === n2.menuState.value }, { id: u3, ...c2 } = e2;
1446
1446
  return ue({ ourProps: { "aria-activedescendant": null === n2.activeItemIndex.value || null == (a3 = n2.items.value[n2.activeItemIndex.value]) ? void 0 : a3.id, "aria-labelledby": null == (r3 = xe(n2.buttonRef)) ? void 0 : r3.id, id: u3, onKeydown: o2, onKeyup: i2, role: "menu", tabIndex: 0, ref: n2.itemsRef }, theirProps: c2, slot: s2, attrs: t2, slots: l2, features: ie.RenderStrategy | ie.Static, visible: d2.value, name: "MenuItems" });
1447
1447
  };
1448
- } }), fl = b({ name: "MenuItem", inheritAttrs: false, props: { as: { type: [Object, String], default: "template" }, disabled: { type: Boolean, default: false }, id: { type: String, default: () => `headlessui-menu-item-${ve()}` } }, setup(e2, { slots: t2, attrs: l2, expose: a2 }) {
1448
+ } }), ml = b({ name: "MenuItem", inheritAttrs: false, props: { as: { type: [Object, String], default: "template" }, disabled: { type: Boolean, default: false }, id: { type: String, default: () => `headlessui-menu-item-${ve()}` } }, setup(e2, { slots: t2, attrs: l2, expose: a2 }) {
1449
1449
  let n2 = cl("MenuItem"), r2 = s(null);
1450
1450
  a2({ el: r2, $el: r2 });
1451
1451
  let o2 = y(() => null !== n2.activeItemIndex.value && n2.items.value[n2.activeItemIndex.value].id === e2.id), i2 = il(r2), u2 = y(() => ({ disabled: e2.disabled, get textValue() {
@@ -1461,7 +1461,7 @@ let pl = b({ name: "Menu", props: { as: { type: [Object, String], default: "temp
1461
1461
  return n2.goToItem(be.Nothing);
1462
1462
  n2.goToItem(be.Specific, e2.id);
1463
1463
  }
1464
- m(() => n2.registerItem(e2.id, u2)), w(() => n2.unregisterItem(e2.id)), f(() => {
1464
+ f(() => n2.registerItem(e2.id, u2)), w(() => n2.unregisterItem(e2.id)), m(() => {
1465
1465
  0 === n2.menuState.value && o2.value && 0 !== n2.activationTrigger.value && v(() => {
1466
1466
  var e3, t3;
1467
1467
  return null == (t3 = null == (e3 = xe(r2)) ? void 0 : e3.scrollIntoView) ? void 0 : t3.call(e3, { block: "nearest" });
@@ -1501,7 +1501,7 @@ function bl({ slot: e2 = {}, name: t2 = "Label", props: l2 = {} } = {}) {
1501
1501
  }
1502
1502
  let hl = b({ name: "Label", props: { as: { type: [Object, String], default: "label" }, passive: { type: [Boolean], default: false }, id: { type: String, default: () => `headlessui-label-${ve()}` } }, setup(e2, { slots: t2, attrs: l2 }) {
1503
1503
  let a2 = yl();
1504
- return m(() => w(a2.register(e2.id))), () => {
1504
+ return f(() => w(a2.register(e2.id))), () => {
1505
1505
  let { name: n2 = "Label", slot: r2 = {}, props: o2 = {} } = a2, { id: i2, passive: s2, ...u2 } = e2, d2 = { ...Object.entries(o2).reduce((e3, [t3, l3]) => Object.assign(e3, { [t3]: C(l3) }), {}), id: i2 };
1506
1506
  return s2 && (delete d2.onClick, delete d2.htmlFor, delete u2.onClick), ue({ ourProps: d2, theirProps: u2, slot: r2, attrs: l2, slots: t2, name: n2 });
1507
1507
  };
@@ -1518,7 +1518,7 @@ let hl = b({ name: "Label", props: { as: { type: [Object, String], default: "lab
1518
1518
  function u2() {
1519
1519
  i2(!o2.value);
1520
1520
  }
1521
- let g2 = s(null), f2 = null === r2 ? g2 : r2.switchRef, v2 = De(y(() => ({ as: e2.as, type: l2.type })), f2);
1521
+ let g2 = s(null), m2 = null === r2 ? g2 : r2.switchRef, v2 = De(y(() => ({ as: e2.as, type: l2.type })), m2);
1522
1522
  function b2(e3) {
1523
1523
  e3.preventDefault(), u2();
1524
1524
  }
@@ -1536,12 +1536,12 @@ let hl = b({ name: "Label", props: { as: { type: [Object, String], default: "lab
1536
1536
  function w2(e3) {
1537
1537
  e3.preventDefault();
1538
1538
  }
1539
- n2({ el: f2, $el: f2 });
1539
+ n2({ el: m2, $el: m2 });
1540
1540
  let k2 = y(() => {
1541
1541
  var e3, t3;
1542
- return null == (t3 = null == (e3 = xe(f2)) ? void 0 : e3.closest) ? void 0 : t3.call(e3, "form");
1542
+ return null == (t3 = null == (e3 = xe(m2)) ? void 0 : e3.closest) ? void 0 : t3.call(e3, "form");
1543
1543
  });
1544
- return m(() => {
1544
+ return f(() => {
1545
1545
  x([k2], () => {
1546
1546
  if (k2.value && void 0 !== e2.defaultChecked)
1547
1547
  return k2.value.addEventListener("reset", t3), () => {
@@ -1553,8 +1553,8 @@ let hl = b({ name: "Label", props: { as: { type: [Object, String], default: "lab
1553
1553
  }
1554
1554
  }, { immediate: true });
1555
1555
  }), () => {
1556
- let { id: t3, name: n3, value: i3, form: s2, ...u3 } = e2, p2 = { checked: o2.value }, g3 = { id: t3, ref: f2, role: "switch", type: v2.value, tabIndex: 0, "aria-checked": o2.value, "aria-labelledby": null == r2 ? void 0 : r2.labelledby.value, "aria-describedby": null == r2 ? void 0 : r2.describedby.value, onClick: b2, onKeyup: h2, onKeypress: w2 };
1557
- return d(c, [null != n3 && null != o2.value ? d(Je, ge({ features: Ke.Hidden, as: "input", type: "checkbox", hidden: true, readOnly: true, checked: o2.value, form: s2, name: n3, value: i3 })) : null, ue({ ourProps: g3, theirProps: { ...l2, ...me(u3, ["modelValue", "defaultChecked"]) }, slot: p2, attrs: l2, slots: a2, name: "Switch" })]);
1556
+ let { id: t3, name: n3, value: i3, form: s2, ...u3 } = e2, p2 = { checked: o2.value }, g3 = { id: t3, ref: m2, role: "switch", type: v2.value, tabIndex: 0, "aria-checked": o2.value, "aria-labelledby": null == r2 ? void 0 : r2.labelledby.value, "aria-describedby": null == r2 ? void 0 : r2.describedby.value, onClick: b2, onKeyup: h2, onKeypress: w2 };
1557
+ return d(c, [null != n3 && null != o2.value ? d(Je, ge({ features: Ke.Hidden, as: "input", type: "checkbox", hidden: true, readOnly: true, checked: o2.value, form: s2, name: n3, value: i3 })) : null, ue({ ourProps: g3, theirProps: { ...l2, ...fe(u3, ["modelValue", "defaultChecked"]) }, slot: p2, attrs: l2, slots: a2, name: "Switch" })]);
1558
1558
  };
1559
1559
  } }), Sl = hl;
1560
1560
  function Cl(e2, ...t2) {
@@ -1605,7 +1605,7 @@ function Ll(e2) {
1605
1605
  t2.value[r2].state = "hidden";
1606
1606
  } }), !El(t2) && l2.value && (null == e2 || e2()));
1607
1607
  }
1608
- return m(() => l2.value = true), w(() => l2.value = false), { children: t2, register: function(e3) {
1608
+ return f(() => l2.value = true), w(() => l2.value = false), { children: t2, register: function(e3) {
1609
1609
  let l3 = t2.value.find(({ id: t3 }) => t3 === e3);
1610
1610
  return l3 ? "visible" !== l3.state && (l3.state = "visible") : t2.value.push({ id: e3, state: "visible" }), () => a2(e3, se.Unmount);
1611
1611
  }, unregister: a2 };
@@ -1641,10 +1641,10 @@ let Bl = ie.RenderStrategy, Il = b({ props: { as: { type: [Object, String], defa
1641
1641
  }(), D2 = s(k2.value ? "visible" : "hidden"), M2 = { value: true }, P2 = ve(), _2 = { value: false }, T2 = Ll(() => {
1642
1642
  !_2.value && "hidden" !== D2.value && (D2.value = "hidden", O2(P2), v2());
1643
1643
  });
1644
- m(() => {
1644
+ f(() => {
1645
1645
  let e3 = C2(P2);
1646
1646
  w(e3);
1647
- }), f(() => {
1647
+ }), m(() => {
1648
1648
  if (h2.value === se.Hidden && P2) {
1649
1649
  if (k2.value && "visible" !== D2.value)
1650
1650
  return void (D2.value = "visible");
@@ -1652,15 +1652,15 @@ let Bl = ie.RenderStrategy, Il = b({ props: { as: { type: [Object, String], defa
1652
1652
  }
1653
1653
  });
1654
1654
  let j2 = Pl(e2.enter), E2 = Pl(e2.enterFrom), L2 = Pl(e2.enterTo), B2 = Pl(e2.entered), I2 = Pl(e2.leave), R2 = Pl(e2.leaveFrom), F2 = Pl(e2.leaveTo);
1655
- return m(() => {
1656
- f(() => {
1655
+ return f(() => {
1656
+ m(() => {
1657
1657
  if ("visible" === D2.value) {
1658
1658
  let e3 = xe(b2);
1659
1659
  if (e3 instanceof Comment && "" === e3.data)
1660
1660
  throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
1661
1661
  }
1662
1662
  });
1663
- }), m(() => {
1663
+ }), f(() => {
1664
1664
  x([k2], (e3, t3, l3) => {
1665
1665
  (function(e4) {
1666
1666
  let t4 = M2.value && !S2.value, l4 = xe(b2);
@@ -1672,24 +1672,24 @@ let Bl = ie.RenderStrategy, Il = b({ props: { as: { type: [Object, String], defa
1672
1672
  })(l3), M2.value = false;
1673
1673
  }, { immediate: true });
1674
1674
  }), g(jl, T2), Ce(y(() => oe(D2.value, { visible: ke.Open, hidden: ke.Closed }) | o2.value)), () => {
1675
- let { appear: t3, show: r3, enter: o3, enterFrom: i3, enterTo: s2, entered: u3, leave: d2, leaveFrom: c3, leaveTo: p2, ...g2 } = e2, m2 = { ref: b2 };
1676
- return ue({ theirProps: { ...g2, ...S2.value && k2.value && _e.isServer ? { class: a([l2.class, g2.class, ...j2, ...E2]) } : {} }, ourProps: m2, slot: {}, slots: n2, attrs: l2, features: Bl, visible: "visible" === D2.value, name: "TransitionChild" });
1675
+ let { appear: t3, show: r3, enter: o3, enterFrom: i3, enterTo: s2, entered: u3, leave: d2, leaveFrom: c3, leaveTo: p2, ...g2 } = e2, f2 = { ref: b2 };
1676
+ return ue({ theirProps: { ...g2, ...S2.value && k2.value && _e.isServer ? { class: a([l2.class, g2.class, ...j2, ...E2]) } : {} }, ourProps: f2, slot: {}, slots: n2, attrs: l2, features: Bl, visible: "visible" === D2.value, name: "TransitionChild" });
1677
1677
  };
1678
1678
  } }), Rl = Il, Fl = b({ inheritAttrs: false, props: { as: { type: [Object, String], default: "div" }, show: { type: [Boolean], default: null }, unmount: { type: [Boolean], default: true }, appear: { type: [Boolean], default: false }, enter: { type: [String], default: "" }, enterFrom: { type: [String], default: "" }, enterTo: { type: [String], default: "" }, entered: { type: [String], default: "" }, leave: { type: [String], default: "" }, leaveFrom: { type: [String], default: "" }, leaveTo: { type: [String], default: "" } }, emits: { beforeEnter: () => true, afterEnter: () => true, beforeLeave: () => true, afterLeave: () => true }, setup(e2, { emit: t2, attrs: l2, slots: a2 }) {
1679
1679
  let n2 = Se(), r2 = y(() => null === e2.show && null !== n2 ? (n2.value & ke.Open) === ke.Open : e2.show);
1680
- f(() => {
1680
+ m(() => {
1681
1681
  if (![true, false].includes(r2.value))
1682
1682
  throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.');
1683
1683
  });
1684
1684
  let o2 = s(r2.value ? "visible" : "hidden"), i2 = Ll(() => {
1685
1685
  o2.value = "hidden";
1686
1686
  }), u2 = s(true), c2 = { show: r2, appear: y(() => e2.appear || !u2.value) };
1687
- return m(() => {
1688
- f(() => {
1687
+ return f(() => {
1688
+ m(() => {
1689
1689
  u2.value = false, r2.value ? o2.value = "visible" : El(i2) || (o2.value = "hidden");
1690
1690
  });
1691
1691
  }), g(jl, i2), g(_l, c2), () => {
1692
- let n3 = me(e2, ["show", "appear", "unmount", "onBeforeEnter", "onBeforeLeave", "onAfterEnter", "onAfterLeave"]), r3 = { unmount: e2.unmount };
1692
+ let n3 = fe(e2, ["show", "appear", "unmount", "onBeforeEnter", "onBeforeLeave", "onAfterEnter", "onAfterLeave"]), r3 = { unmount: e2.unmount };
1693
1693
  return ue({ ourProps: { ...r3, as: "template" }, theirProps: {}, slot: {}, slots: { ...a2, default: () => [d(Rl, { onBeforeEnter: () => t2("beforeEnter"), onAfterEnter: () => t2("afterEnter"), onBeforeLeave: () => t2("beforeLeave"), onAfterLeave: () => t2("afterLeave"), ...l2, ...r3, ...n3 }, a2.default)] }, attrs: {}, features: Bl, visible: "visible" === o2.value, name: "Transition" });
1694
1694
  };
1695
1695
  } });
@@ -1718,41 +1718,38 @@ function Ul(t2, l2) {
1718
1718
  return e(), n("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", "aria-hidden": "true" }, [i("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9" })]);
1719
1719
  }
1720
1720
  function zl(t2, l2) {
1721
- return e(), n("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", "aria-hidden": "true" }, [i("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z" })]);
1722
- }
1723
- function Wl(t2, l2) {
1724
1721
  return e(), n("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", "aria-hidden": "true" }, [i("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z" })]);
1725
1722
  }
1726
- function Kl(t2, l2) {
1723
+ function Wl(t2, l2) {
1727
1724
  return e(), n("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", "aria-hidden": "true" }, [i("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M10.05 4.575a1.575 1.575 0 10-3.15 0v3m3.15-3v-1.5a1.575 1.575 0 013.15 0v1.5m-3.15 0l.075 5.925m3.075.75V4.575m0 0a1.575 1.575 0 013.15 0V15M6.9 7.575a1.575 1.575 0 10-3.15 0v8.175a6.75 6.75 0 006.75 6.75h2.018a5.25 5.25 0 003.712-1.538l1.732-1.732a5.25 5.25 0 001.538-3.712l.003-2.024a.668.668 0 01.198-.471 1.575 1.575 0 10-2.228-2.228 3.818 3.818 0 00-1.12 2.687M6.9 7.575V12m6.27 4.318A4.49 4.49 0 0116.35 15m.002 0h-.002" })]);
1728
1725
  }
1729
- function Jl(t2, l2) {
1726
+ function Kl(t2, l2) {
1730
1727
  return e(), n("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", "aria-hidden": "true" }, [i("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M2.25 12l8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25" })]);
1731
1728
  }
1732
- function Gl(t2, l2) {
1729
+ function Jl(t2, l2) {
1733
1730
  return e(), n("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", "aria-hidden": "true" }, [i("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z" })]);
1734
1731
  }
1735
- function Xl(t2, l2) {
1732
+ function Gl(t2, l2) {
1736
1733
  return e(), n("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", "aria-hidden": "true" }, [i("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M9.75 9.75l4.5 4.5m0-4.5l-4.5 4.5M21 12a9 9 0 11-18 0 9 9 0 0118 0z" })]);
1737
1734
  }
1738
- function Ql(t2, l2) {
1735
+ function Xl(t2, l2) {
1739
1736
  return e(), n("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", "aria-hidden": "true" }, [i("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M6 18L18 6M6 6l12 12" })]);
1740
1737
  }
1741
- const Zl = { class: "py-1" }, ea = ["onClick"], ta = { key: 1, class: "animate-pulse px-4 py-2 bg-gray-200 rounded-md flex inline-flex items-center relative inline-block text-left" }, la = i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28" }, null, -1), aa = { name: "uiDropdown" }, na = Object.assign(aa, { props: { items: { type: Array, required: true }, position: { type: String, default: "left" }, disabled: Boolean, label: String, loading: { type: Boolean, default: false } }, emits: ["optionSelected"], setup(l2, { emit: o2 }) {
1738
+ const Ql = { class: "py-1" }, Zl = ["onClick"], ea = { key: 1, class: "animate-pulse px-4 py-2 bg-gray-200 rounded-md flex inline-flex items-center relative inline-block text-left" }, ta = i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28" }, null, -1), la = { name: "uiDropdown" }, aa = Object.assign(la, { props: { items: { type: Array, required: true }, position: { type: String, default: "left" }, disabled: Boolean, label: String, loading: { type: Boolean, default: false } }, emits: ["optionSelected"], setup(l2, { emit: o2 }) {
1742
1739
  const s2 = l2, u2 = y(() => {
1743
1740
  let e2 = s2.items.find((e3) => true === e3.active);
1744
1741
  return e2 ? e2.name : s2.label;
1745
1742
  });
1746
- return (d2, p2) => l2.loading ? (e(), n("div", ta, [la, r(C(Yl), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5 text-gray-200 dark:text-gray-300" })])) : (e(), t(C(pl), { key: 0, as: "div", class: a(["relative inline-block text-left", { "opacity-25": l2.disabled }]) }, { default: D(() => [i("div", null, [r(C(gl), { class: "inline-flex justify-center w-full rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-indigo-500" }, { default: D(() => [M(P(u2.value) + " ", 1), r(C(Yl), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5" })]), _: 1 })]), r(_, { "enter-active-class": "transition ease-out duration-100", "enter-from-class": "transform opacity-0 scale-95", "enter-to-class": "transform opacity-100 scale-100", "leave-active-class": "transition ease-in duration-75", "leave-from-class": "transform opacity-100 scale-100", "leave-to-class": "transform opacity-0 scale-95" }, { default: D(() => [l2.disabled ? j("", true) : (e(), t(C(ml), { key: 0, class: a([{ "right-0": "right" === l2.position, "left-0": "left" === l2.position }, "origin-top-right absolute mt-2 w-56 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none z-10"]) }, { default: D(() => [i("div", Zl, [(e(true), n(c, null, T(l2.items, (l3, n2) => (e(), t(C(fl), { key: n2 }, { default: D(() => [i("a", { onClick: (e2) => ((e3) => {
1743
+ return (d2, p2) => l2.loading ? (e(), n("div", ea, [ta, r(C(Yl), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5 text-gray-200 dark:text-gray-300" })])) : (e(), t(C(pl), { key: 0, as: "div", class: a(["relative inline-block text-left", { "opacity-25": l2.disabled }]) }, { default: D(() => [i("div", null, [r(C(gl), { class: "inline-flex justify-center w-full rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-indigo-500" }, { default: D(() => [M(P(u2.value) + " ", 1), r(C(Yl), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5" })]), _: 1 })]), r(_, { "enter-active-class": "transition ease-out duration-100", "enter-from-class": "transform opacity-0 scale-95", "enter-to-class": "transform opacity-100 scale-100", "leave-active-class": "transition ease-in duration-75", "leave-from-class": "transform opacity-100 scale-100", "leave-to-class": "transform opacity-0 scale-95" }, { default: D(() => [l2.disabled ? j("", true) : (e(), t(C(fl), { key: 0, class: a([{ "right-0": "right" === l2.position, "left-0": "left" === l2.position }, "origin-top-right absolute mt-2 w-56 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none z-10"]) }, { default: D(() => [i("div", Ql, [(e(true), n(c, null, T(l2.items, (l3, n2) => (e(), t(C(ml), { key: n2 }, { default: D(() => [i("a", { onClick: (e2) => ((e3) => {
1747
1744
  s2.disabled || o2("optionSelected", e3.value);
1748
- })(l3), class: a([l3.active ? "bg-gray-100 text-gray-900" : "text-gray-700", "block px-4 py-2 text-sm cursor-pointer"]) }, P(l3.name), 11, ea)]), _: 2 }, 1024))), 128))])]), _: 1 }, 8, ["class"]))]), _: 1 })]), _: 1 }, 8, ["class"]));
1749
- } }), ra = { key: 0 }, oa = { class: "flex justify-between" }, ia = { key: 0, class: "block text-sm font-medium text-gray-700" }, sa = { key: 1, class: "text-[10px] text-gray-500 uppercase justify-self-end" }, ua = { key: 0, 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" }, da = ["disabled", "name", "placeholder", "type"], ca = { key: 1, class: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none" }, pa = { key: 1, class: "animate-pulse" }, ga = [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: "px-4 py-5 bg-gray-200 rounded-lg flex inline-flex items-center relative inline-block text-left w-full" }, null, -1)], ma = { name: "uiInput" }, fa = Object.assign(ma, { props: { label: String, type: { type: String, default: "text" }, name: String, placeholder: { type: String, default: "..." }, icon: { type: Function, default: () => {
1745
+ })(l3), class: a([l3.active ? "bg-gray-100 text-gray-900" : "text-gray-700", "block px-4 py-2 text-sm cursor-pointer"]) }, P(l3.name), 11, Zl)]), _: 2 }, 1024))), 128))])]), _: 1 }, 8, ["class"]))]), _: 1 })]), _: 1 }, 8, ["class"]));
1746
+ } }), na = { key: 0 }, ra = { class: "flex justify-between" }, oa = { key: 0, class: "block text-sm font-medium text-gray-700" }, ia = { key: 1, class: "text-[10px] text-gray-500 uppercase justify-self-end" }, sa = { key: 0, 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" }, ua = ["disabled", "name", "placeholder", "type"], da = { key: 1, class: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none" }, ca = { key: 1, class: "animate-pulse" }, pa = [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: "px-4 py-5 bg-gray-200 rounded-lg flex inline-flex items-center relative inline-block text-left w-full" }, null, -1)], ga = { name: "uiInput" }, fa = Object.assign(ga, { props: { label: String, type: { type: String, default: "text" }, name: String, placeholder: { type: String, default: "..." }, icon: { type: Function, default: () => {
1750
1747
  } }, disabled: Boolean, color: { type: String, default: "gray" }, value: { type: String, default: "" }, error: String, optional: String, addOn: String, loading: { type: Boolean, default: true } }, emits: ["inputChanged"], setup(t2, { emit: l2 }) {
1751
1748
  const o2 = (e2) => {
1752
1749
  l2("inputChanged", { value: e2.target.value, name: e2.target.name });
1753
1750
  }, u2 = s(t2.value);
1754
- return (l3, s2) => t2.loading ? (e(), n("div", pa, ga)) : (e(), n("div", ra, [i("div", oa, [t2.label ? (e(), n("label", ia, P(t2.label), 1)) : j("", true), t2.optional ? (e(), n("span", sa, P(t2.optional), 1)) : j("", true)]), i("div", { class: a([{ "mt-1": t2.label }, "relative flex"]) }, [t2.addOn ? (e(), n("span", ua, P(t2.addOn), 1)) : j("", true), E(i("input", { "onUpdate:modelValue": s2[0] || (s2[0] = (e2) => u2.value = e2), class: a([{ "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, "rounded-md": !t2.addOn, "rounded-r-md": t2.addOn }, "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: o2 }, null, 42, da), [[L, u2.value]]), t2.icon ? (e(), n("div", ca, [r(U, { icon: t2.icon, color: t2.color, loading: t2.loading }, null, 8, ["icon", "color", "loading"]), E(r(U, { icon: C(Hl), color: "green", loading: t2.loading }, null, 8, ["icon", "loading"]), [[B, "success" === t2.color]]), E(r(U, { icon: C(Wl), color: "yellow", loading: t2.loading }, null, 8, ["icon", "loading"]), [[B, "warning" === t2.color]]), E(r(U, { icon: C(zl), color: "red", loading: t2.loading }, null, 8, ["icon", "loading"]), [[B, "danger" === t2.color]])])) : j("", true)], 2), E(i("p", { class: a([{ "text-gray-300": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "text-red-300": "danger" === t2.color, "text-yellow-400": "warning" === t2.color, "text-green-400": "success" === t2.color }, "mt-2 text-xs flex flex-row items-center"]) }, [r(U, { icon: C(Xl), color: "red", class: "mr-2", loading: t2.loading }, null, 8, ["icon", "loading"]), M(P(t2.error), 1)], 2), [[B, t2.error]])]));
1755
- } }), va = { key: 0 }, ya = { class: "flex justify-between" }, ba = { key: 0, class: "block text-sm font-medium text-gray-700" }, ha = { key: 1, class: "text-[10px] text-gray-500 uppercase" }, xa = ["onDrop"], wa = { class: "space-y-1 flex flex-col items-center justify-center" }, ka = { class: "flex text-sm text-gray-600 flex flex-col sm:flex-row text-center" }, Sa = { 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" }, Ca = ["accept"], Oa = { class: "pl-1" }, Da = { class: "text-xs text-gray-500 pb-4" }, Ma = { class: "mt-2 text-xs flex flex-row items-center text-red-300" }, Pa = { key: 1, class: "animate-pulse" }, _a = [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)], Ta = { name: "uiInputFile" }, ja = Object.assign(Ta, { props: { name: String, label: String, optional: String, placeholder: String, dragAndDrop: String, fileTypesAndSizes: String, error: String, accept: String, icon: { type: Function, default: function(t2, l2) {
1751
+ return (l3, s2) => t2.loading ? (e(), n("div", ca, pa)) : (e(), n("div", na, [i("div", ra, [t2.label ? (e(), n("label", oa, P(t2.label), 1)) : j("", true), t2.optional ? (e(), n("span", ia, P(t2.optional), 1)) : j("", true)]), i("div", { class: a([{ "mt-1": t2.label }, "relative flex"]) }, [t2.addOn ? (e(), n("span", sa, P(t2.addOn), 1)) : j("", true), E(i("input", { "onUpdate:modelValue": s2[0] || (s2[0] = (e2) => u2.value = e2), class: a([{ "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, "rounded-r-md": t2.addOn }, "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: o2 }, null, 42, ua), [[L, u2.value]]), t2.icon ? (e(), n("div", da, [r(U, { icon: t2.icon, color: t2.color, loading: t2.loading }, null, 8, ["icon", "color", "loading"]), E(r(U, { icon: C(Hl), color: "green", loading: t2.loading }, null, 8, ["icon", "loading"]), [[B, "success" === t2.color]]), E(r(U, { icon: C(zl), color: "yellow", loading: t2.loading }, null, 8, ["icon", "loading"]), [[B, "warning" === t2.color]]), E(r(U, { icon: C(Xl), color: "red", loading: t2.loading }, null, 8, ["icon", "loading"]), [[B, "danger" === t2.color]])])) : j("", true)], 2), E(i("p", { class: a([{ "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"]) }, P(t2.error), 3), [[B, t2.error]])]));
1752
+ } }), ma = { key: 0 }, va = { class: "flex justify-between" }, ya = { key: 0, class: "block text-sm font-medium text-gray-700" }, ba = { key: 1, class: "text-[10px] text-gray-500 uppercase" }, ha = ["onDrop"], xa = { class: "space-y-1 flex flex-col items-center justify-center" }, wa = { class: "flex text-sm text-gray-600 flex flex-col sm:flex-row text-center" }, ka = { 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" }, Sa = ["accept"], Ca = { class: "pl-1" }, Oa = { class: "text-xs text-gray-500 pb-4" }, Da = { class: "mt-2 text-xs flex flex-row items-center text-red-300" }, Ma = { key: 1, class: "animate-pulse" }, Pa = [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)], _a = { name: "uiInputFile" }, Ta = Object.assign(_a, { props: { name: String, label: String, optional: String, placeholder: String, dragAndDrop: String, fileTypesAndSizes: String, error: String, accept: String, icon: { type: Function, default: function(t2, l2) {
1756
1753
  return e(), n("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", "aria-hidden": "true" }, [i("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M7.5 7.5h-.75A2.25 2.25 0 004.5 9.75v7.5a2.25 2.25 0 002.25 2.25h7.5a2.25 2.25 0 002.25-2.25v-7.5a2.25 2.25 0 00-2.25-2.25h-.75m0-3l-3-3m0 0l-3 3m3-3v11.25m6-2.25h.75a2.25 2.25 0 012.25 2.25v7.5a2.25 2.25 0 01-2.25 2.25h-7.5a2.25 2.25 0 01-2.25-2.25v-.75" })]);
1757
1754
  } }, loading: { type: Boolean, default: true } }, emits: ["filesUploaded"], setup(t2, { emit: l2 }) {
1758
1755
  const o2 = t2, u2 = s(""), d2 = (e2) => {
@@ -1761,42 +1758,42 @@ const Zl = { class: "py-1" }, ea = ["onClick"], ta = { key: 1, class: "animate-p
1761
1758
  }, c2 = (e2) => {
1762
1759
  l2("filesUploaded", e2.target.files), o2.filename = e2.target.files[0].name;
1763
1760
  };
1764
- return (l3, o3) => t2.loading ? (e(), n("div", Pa, _a)) : (e(), n("div", va, [i("div", ya, [t2.label ? (e(), n("label", ba, P(t2.label), 1)) : j("", true), t2.optional ? (e(), n("span", ha, P(t2.optional), 1)) : j("", true)]), i("div", { class: a([[{ "mt-1": t2.label }, { "border-gray-300 hover:border-gray-400": !t2.error }, { "border-red-300 hover:border-red-400": t2.error }], "dropArea flex justify-center rounded-md border-2 border-dashed px-6 pt-5 pb-6"]), onDragover: o3[0] || (o3[0] = I(() => {
1765
- }, ["prevent"])), onDrop: I(d2, ["prevent"]) }, [i("div", wa, [r(U, { icon: t2.icon, size: "massive", color: "gray", "aria-hidden": "true", class: "mb-4", loading: t2.loading }, null, 8, ["icon", "loading"]), i("div", ka, [i("label", Sa, [i("span", null, P(t2.placeholder), 1), i("input", { id: "file-upload", name: "file-upload", type: "file", class: "sr-only", accept: t2.accept, onChange: c2 }, null, 40, Ca)]), i("p", Oa, P(t2.dragAndDrop), 1)]), i("p", Da, P(t2.fileTypesAndSizes), 1), E(i("p", { class: "font-bold text-xs uppercase block p-2 bg-gray-200 rounded" }, P(u2.value), 513), [[B, "" !== u2.value]])])], 42, xa), E(i("p", Ma, [r(U, { icon: C(Xl), color: "red", class: "mr-2", loading: t2.loading }, null, 8, ["icon", "loading"]), M(P(t2.error), 1)], 512), [[B, t2.error]])]));
1766
- } }), Ea = { class: "relative mt-1" }, La = { key: 1, class: "animate-pulse px-4 py-2.5 bg-gray-200 rounded-md flex justify-between items-center w-full" }, Ba = i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1), Ia = { name: "uiSelect" }, Ra = Object.assign(Ia, { props: { items: { type: Array, required: true }, label: String, select: Object, loading: { type: Boolean, default: true } }, emits: ["selectChanged"], setup(l2, { emit: o2 }) {
1767
- const u2 = l2, d2 = s(""), p2 = s(u2.select), g2 = y(() => "" === d2.value ? u2.items : u2.items.filter((e2) => e2.name.toLowerCase().includes(d2.value.toLowerCase()))), m2 = () => {
1761
+ return (l3, o3) => t2.loading ? (e(), n("div", Ma, Pa)) : (e(), n("div", ma, [i("div", va, [t2.label ? (e(), n("label", ya, P(t2.label), 1)) : j("", true), t2.optional ? (e(), n("span", ba, P(t2.optional), 1)) : j("", true)]), i("div", { class: a([[{ "mt-1": t2.label }, { "border-gray-300 hover:border-gray-400": !t2.error }, { "border-red-300 hover:border-red-400": t2.error }], "dropArea flex justify-center rounded-md border-2 border-dashed px-6 pt-5 pb-6"]), onDragover: o3[0] || (o3[0] = I(() => {
1762
+ }, ["prevent"])), onDrop: I(d2, ["prevent"]) }, [i("div", xa, [r(U, { icon: t2.icon, size: "massive", color: "gray", "aria-hidden": "true", class: "mb-4", loading: t2.loading }, null, 8, ["icon", "loading"]), i("div", wa, [i("label", ka, [i("span", null, P(t2.placeholder), 1), i("input", { id: "file-upload", name: "file-upload", type: "file", class: "sr-only", accept: t2.accept, onChange: c2 }, null, 40, Sa)]), i("p", Ca, P(t2.dragAndDrop), 1)]), i("p", Oa, P(t2.fileTypesAndSizes), 1), E(i("p", { class: "font-bold text-xs uppercase block p-2 bg-gray-200 rounded" }, P(u2.value), 513), [[B, "" !== u2.value]])])], 42, ha), E(i("p", Da, [r(U, { icon: C(Gl), color: "red", class: "mr-2", loading: t2.loading }, null, 8, ["icon", "loading"]), M(P(t2.error), 1)], 512), [[B, t2.error]])]));
1763
+ } }), ja = { class: "relative mt-1" }, Ea = { key: 1, class: "animate-pulse px-4 py-2.5 bg-gray-200 rounded-md flex justify-between items-center w-full" }, La = i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1), Ba = { name: "uiSelect" }, Ia = Object.assign(Ba, { props: { items: { type: Array, required: true }, label: String, select: Object, loading: { type: Boolean, default: true } }, emits: ["selectChanged"], setup(l2, { emit: o2 }) {
1764
+ const u2 = l2, d2 = s(""), p2 = s(u2.select), g2 = y(() => "" === d2.value ? u2.items : u2.items.filter((e2) => e2.name.toLowerCase().includes(d2.value.toLowerCase()))), f2 = () => {
1768
1765
  o2("selectChanged", p2.value);
1769
1766
  };
1770
- return (o3, s2) => l2.loading ? (e(), n("div", La, [Ba, r(C(Ul), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5 text-gray-300 dark:text-gray-400" })])) : (e(), t(C(ct), { key: 0, modelValue: p2.value, "onUpdate:modelValue": [s2[1] || (s2[1] = (e2) => p2.value = e2), s2[3] || (s2[3] = (e2) => m2())], as: "div", onClick: s2[2] || (s2[2] = (e2) => m2()) }, { default: D(() => [r(C(pt), { class: "block text-sm font-medium text-gray-700" }, { default: D(() => [M(P(l2.label), 1)]), _: 1 }), i("div", Ea, [r(C(mt), { "display-value": (e2) => e2 == null ? void 0 : e2.name, class: "w-full rounded-md border border-gray-300 bg-white py-2 pl-3 pr-10 shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm", onChange: s2[0] || (s2[0] = (e2) => d2.value = e2.target.value) }, null, 8, ["display-value"]), r(C(gt), { class: "absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none" }, { default: D(() => [r(C(Ul), { "aria-hidden": "true", class: "h-5 w-5 text-gray-400" })]), _: 1 }), g2.value.length > 0 ? (e(), t(C(ft), { key: 0, class: "absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm" }, { default: D(() => [(e(true), n(c, null, T(g2.value, (l3) => (e(), t(C(vt), { key: l3.id, value: l3, as: "template" }, { default: D(({ active: t2, selected: o4 }) => [i("li", { class: a(["relative cursor-default select-none py-2 pl-3 pr-9", t2 ? "bg-indigo-600 text-white" : "text-gray-900"]) }, [i("span", { class: a(["block truncate", o4 && "font-semibold"]) }, P(l3.name), 3), o4 ? (e(), n("span", { key: 0, class: a(["absolute inset-y-0 right-0 flex items-center pr-4", t2 ? "text-white" : "text-indigo-600"]) }, [r(C(Hl), { "aria-hidden": "true", class: "h-5 w-5", loading: true })], 2)) : j("", true)], 2)]), _: 2 }, 1032, ["value"]))), 128))]), _: 1 })) : j("", true)])]), _: 1 }, 8, ["modelValue"]));
1771
- } }), Fa = { key: 1, class: "inline-flex items-center px-3 py-2.5 rounded text-xs font-medium leading-none animate-pulse bg-gray-200" }, Aa = [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12" }, null, -1)], Na = { name: "uiTag" }, $a = Object.assign(Na, { props: { color: { type: String, default: "primary" }, loading: { type: Boolean, default: true } }, setup: (t2) => (l2, r2) => t2.loading ? (e(), n("div", Fa, Aa)) : (e(), n("span", { key: 0, class: a([{ "bg-indigo-100 text-indigo-800 border border-indigo-200": "primary" === t2.color, "bg-red-100 text-red-800 border border-red-200": "danger" === t2.color, "bg-yellow-100 text-yellow-800 border border-yellow-200": "warning" === t2.color, "bg-green-100 text-green-800 border border-green-200": "success" === t2.color, "bg-black text-white border border-black": "black" === t2.color, "text-black border border-gray-200 bg-white": "white" === t2.color }, "inline-flex items-center px-3 py-2 rounded text-xs font-medium leading-none"]) }, [o(l2.$slots, "default")], 2)) }), Ha = { key: 0 }, Ya = { key: 0, class: "block text-sm font-medium text-gray-700" }, Va = ["disabled", "placeholder"], qa = { key: 1, class: "animate-pulse" }, Ua = [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)], za = { name: "uiTextArea" }, Wa = Object.assign(za, { 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 }) {
1767
+ return (o3, s2) => l2.loading ? (e(), n("div", Ea, [La, r(C(Ul), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5 text-gray-300 dark:text-gray-400" })])) : (e(), t(C(ct), { key: 0, modelValue: p2.value, "onUpdate:modelValue": [s2[1] || (s2[1] = (e2) => p2.value = e2), s2[3] || (s2[3] = (e2) => f2())], as: "div", onClick: s2[2] || (s2[2] = (e2) => f2()) }, { default: D(() => [r(C(pt), { class: "block text-sm font-medium text-gray-700" }, { default: D(() => [M(P(l2.label), 1)]), _: 1 }), i("div", ja, [r(C(ft), { "display-value": (e2) => e2 == null ? void 0 : e2.name, class: "w-full rounded-md border border-gray-300 bg-white py-2 pl-3 pr-10 shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm", onChange: s2[0] || (s2[0] = (e2) => d2.value = e2.target.value) }, null, 8, ["display-value"]), r(C(gt), { class: "absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none" }, { default: D(() => [r(C(Ul), { "aria-hidden": "true", class: "h-5 w-5 text-gray-400" })]), _: 1 }), g2.value.length > 0 ? (e(), t(C(mt), { key: 0, class: "absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm" }, { default: D(() => [(e(true), n(c, null, T(g2.value, (l3) => (e(), t(C(vt), { key: l3.id, value: l3, as: "template" }, { default: D(({ active: t2, selected: o4 }) => [i("li", { class: a(["relative cursor-default select-none py-2 pl-3 pr-9", t2 ? "bg-indigo-600 text-white" : "text-gray-900"]) }, [i("span", { class: a(["block truncate", o4 && "font-semibold"]) }, P(l3.name), 3), o4 ? (e(), n("span", { key: 0, class: a(["absolute inset-y-0 right-0 flex items-center pr-4", t2 ? "text-white" : "text-indigo-600"]) }, [r(C(Hl), { "aria-hidden": "true", class: "h-5 w-5", loading: true })], 2)) : j("", true)], 2)]), _: 2 }, 1032, ["value"]))), 128))]), _: 1 })) : j("", true)])]), _: 1 }, 8, ["modelValue"]));
1768
+ } }), Ra = { key: 1, class: "inline-flex items-center px-3 py-2.5 rounded text-xs font-medium leading-none animate-pulse bg-gray-200" }, Fa = [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12" }, null, -1)], Aa = { name: "uiTag" }, Na = Object.assign(Aa, { props: { color: { type: String, default: "primary" }, loading: { type: Boolean, default: true } }, setup: (t2) => (l2, r2) => t2.loading ? (e(), n("div", Ra, Fa)) : (e(), n("span", { key: 0, class: a([{ "bg-indigo-100 text-indigo-800 border border-indigo-200": "primary" === t2.color, "bg-red-100 text-red-800 border border-red-200": "danger" === t2.color, "bg-yellow-100 text-yellow-800 border border-yellow-200": "warning" === t2.color, "bg-green-100 text-green-800 border border-green-200": "success" === t2.color, "bg-black text-white border border-black": "black" === t2.color, "text-black border border-gray-200 bg-white": "white" === t2.color }, "inline-flex items-center px-3 py-2 rounded text-xs font-medium leading-none"]) }, [o(l2.$slots, "default")], 2)) }), $a = { key: 0 }, Ha = { key: 0, class: "block text-sm font-medium text-gray-700" }, Ya = ["disabled", "placeholder"], Va = { key: 1, class: "animate-pulse" }, qa = [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" }, za = 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 }) {
1772
1769
  const o2 = (e2) => {
1773
1770
  l2("inputChanged", { value: e2.target.value, name: e2.target.value });
1774
1771
  }, u2 = s(t2.value);
1775
- return (l3, s2) => t2.loading ? (e(), n("div", qa, Ua)) : (e(), n("div", Ha, [t2.label ? (e(), n("label", Ya, P(t2.label), 1)) : j("", true), i("div", { class: a({ "mt-1": t2.label }) }, [E(i("textarea", { disabled: t2.disabled, rows: "4", "onUpdate:modelValue": s2[0] || (s2[0] = (e2) => u2.value = e2), placeholder: t2.placeholder, class: a(["shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm rounded-md", { "border-gray-300": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "border-red-300": "danger" === t2.color, "border-yellow-400": "warning" === t2.color, "border-green-400": "success" === t2.color, "bg-gray-100": t2.disabled, "text-black": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "text-red-300": "danger" === t2.color, "text-yellow-400": "warning" === t2.color, "text-green-400": "success" === t2.color }]), onChange: o2 }, null, 42, Va), [[R, u2.value]])], 2), E(i("p", { class: a([{ "text-gray-300": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "text-red-300": "danger" === t2.color, "text-yellow-400": "warning" === t2.color, "text-green-400": "success" === t2.color }, "mt-2 text-xs flex flex-row items-center"]) }, [r(U, { icon: C(Xl), color: "red", class: "mr-2" }, null, 8, ["icon"]), M(P(t2.error), 1)], 2), [[B, t2.error]])]));
1776
- } }), Ka = { class: "text-sm font-medium text-gray-900" }, Ja = { key: 0, class: "text-sm text-gray-500 ml-2" }, Ga = { key: 1, class: "animate-pulse flex items-center" }, Xa = [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)], Qa = { name: "uiToggle" }, Za = Object.assign(Qa, { props: { item: { type: Object, required: true }, checked: { type: Boolean, default: false }, disabled: { type: Boolean, default: false }, loading: { type: Boolean, default: true } }, setup(l2) {
1772
+ return (l3, s2) => t2.loading ? (e(), n("div", Va, qa)) : (e(), n("div", $a, [t2.label ? (e(), n("label", Ha, P(t2.label), 1)) : j("", true), i("div", { class: a({ "mt-1": t2.label }) }, [E(i("textarea", { disabled: t2.disabled, rows: "4", "onUpdate:modelValue": s2[0] || (s2[0] = (e2) => u2.value = e2), placeholder: t2.placeholder, class: a(["shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm rounded-md", { "border-gray-300": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "border-red-300": "danger" === t2.color, "border-yellow-400": "warning" === t2.color, "border-green-400": "success" === t2.color, "bg-gray-100": t2.disabled, "text-black": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "text-red-300": "danger" === t2.color, "text-yellow-400": "warning" === t2.color, "text-green-400": "success" === t2.color }]), onChange: o2 }, null, 42, Ya), [[R, u2.value]])], 2), E(i("p", { class: a([{ "text-gray-300": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "text-red-300": "danger" === t2.color, "text-yellow-400": "warning" === t2.color, "text-green-400": "success" === t2.color }, "mt-2 text-xs flex flex-row items-center"]) }, [r(U, { icon: C(Gl), color: "red", class: "mr-2" }, null, 8, ["icon"]), M(P(t2.error), 1)], 2), [[B, t2.error]])]));
1773
+ } }), Wa = { class: "text-sm font-medium text-gray-900" }, Ka = { key: 0, class: "text-sm text-gray-500 ml-2" }, Ja = { key: 1, class: "animate-pulse flex items-center" }, Ga = [i("div", { class: "relative bg-gray-200 rounded-full w-12 h-6 p-1 flex items-center" }, [i("div", { class: "rounded-full bg-gray-300 dark:bg-gray-400 h-4 w-4" })], -1), i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-16 ml-2" }, null, -1)], Xa = { name: "uiToggle" }, Qa = Object.assign(Xa, { props: { item: { type: Object, required: true }, checked: { type: Boolean, default: false }, disabled: { type: Boolean, default: false }, loading: { type: Boolean, default: true } }, setup(l2) {
1777
1774
  const o2 = s(l2.checked);
1778
- return (s2, u2) => l2.loading ? (e(), n("div", Ga, Xa)) : (e(), t(C(wl), { key: 0, as: "div", class: "flex items-center relative" }, { default: D(() => [r(C(kl), { disabled: l2.disabled, onClick: u2[0] || (u2[0] = (e2) => s2.$emit("toggleChanged", { item: l2.item, active: !o2.value })), modelValue: o2.value, "onUpdate:modelValue": u2[1] || (u2[1] = (e2) => o2.value = e2), class: a([o2.value ? "bg-indigo-600" : "bg-gray-200", "relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"]) }, { default: D(() => [i("span", { "aria-hidden": "true", class: a([o2.value ? "translate-x-5" : "translate-x-0", l2.disabled ? "bg-gray-300" : "", "pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out"]) }, null, 2)]), _: 1 }, 8, ["disabled", "modelValue", "class"]), r(C(Sl), { as: "span", class: "ml-3" }, { default: D(() => [i("span", Ka, P(l2.item.title), 1), l2.item.subtitle ? (e(), n("span", Ja, P(l2.item.subtitle), 1)) : j("", true)]), _: 1 }), l2.item.action ? (e(), n("span", { key: 0, class: "cursor-pointer text-indigo-600 hover:text-indigo-400 uppercase text-xs absolute right-0 bottom-0.5", onClick: u2[2] || (u2[2] = (e2) => s2.$emit("actionClicked", l2.item)) }, P(l2.item.action), 1)) : j("", true)]), _: 1 }));
1779
- } }), en = { key: 0, class: "flex flex-col" }, tn = { class: "flex" }, ln = { class: "flex-shrink-0" }, an = { class: "ml-3" }, nn = { class: "mt-4" }, rn = { class: "-mx-2 -my-1.5 flex" }, on = ["onClick"], sn = { key: 1, class: "flex flex-col animate-pulse" }, un = [F('<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)], dn = { name: "uiAlert" }, cn = Object.assign(dn, { props: { actions: { type: Array }, title: { type: String }, type: { type: String, default: "info" }, loading: { type: Boolean, default: true } }, setup: (l2) => (r2, s2) => l2.loading ? (e(), n("div", sn, un)) : (e(), n("div", en, [i("div", { class: a([{ "bg-indigo-50 border-indigo-400": "info" === l2.type, "bg-red-50 border-red-400": "danger" === l2.type, "bg-yellow-50 border-yellow-400": "warning" === l2.type, "bg-green-50 border-green-400": "success" === l2.type }, "p-4 border-l-4 rounded"]) }, [i("div", tn, [i("div", ln, ["info" === l2.type ? (e(), t(C(Gl), { key: 0, class: "h-8 w-8 text-indigo-400", "aria-hidden": "true" })) : j("", true), "danger" === l2.type ? (e(), t(C(Xl), { key: 1, class: "h-8 w-8 text-red-400", "aria-hidden": "true" })) : j("", true), "warning" === l2.type ? (e(), t(C(Wl), { key: 2, class: "h-8 w-8 text-yellow-400", "aria-hidden": "true" })) : j("", true), "success" === l2.type ? (e(), t(C($l), { key: 3, class: "h-8 w-8 text-green-400", "aria-hidden": "true" })) : j("", true)]), i("div", an, [i("h3", { class: a([{ "text-red-800": "danger" === l2.type, "text-yellow-800": "warning" === l2.type, "text-green-800": "success" === l2.type }, "text-sm font-medium"]) }, P(l2.title), 3), i("div", { class: a([{ "text-red-700": "danger" === l2.type, "text-yellow-700": "warning" === l2.type, "text-green-700": "success" === l2.type }, "mt-2 text-sm"]) }, [o(r2.$slots, "default")], 2), i("div", nn, [i("div", rn, [(e(true), n(c, null, T(l2.actions, (t2, o2) => (e(), n("button", { onClick: (e2) => r2.$emit("alertEvent", t2.event), type: "button", key: o2, class: a([{ "bg-green-50 text-green-800 hover:bg-green-100 focus:ring-green-600 focus:ring-offset-green-50": "success" === l2.type, "bg-indigo-50 text-indigo-800 hover:bg-indigo-100 focus:ring-indigo-600 focus:ring-offset-indigo-50": "info" === l2.type, "bg-red-50 text-red-800 hover:bg-red-100 focus:ring-red-600 focus:ring-offset-red-50": "danger" === l2.type, "bg-yellow-50 text-yellow-800 hover:bg-yellow-100 focus:ring-yellow-600 focus:ring-offset-yellow-50": "warning" === l2.type }, "px-2 py-1.5 text-sm font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2"]) }, P(t2.name), 11, on))), 128))])])])])], 2)])) }), pn = { key: 0, class: "flex", "aria-label": "Breadcrumb" }, gn = { role: "list", class: "flex items-center space-x-4 text-xs" }, mn = { key: 0 }, fn = ["onClick"], vn = { key: 1, class: "flex items-center" }, yn = ["onClick", "aria-current"], bn = { key: 1, class: "flex flex-row items-center animate-pulse" }, hn = [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)], xn = { name: "uiBreadcrumbs" }, wn = Object.assign(xn, { props: { pages: { type: Array, required: true }, loading: { type: Boolean, default: true } }, setup: (t2) => (l2, o2) => t2.loading ? (e(), n("div", bn, hn)) : (e(), n("nav", pn, [i("ol", gn, [(e(true), n(c, null, T(t2.pages, (t3, o3) => (e(), n("li", { key: o3 }, [0 === o3 ? (e(), n("div", mn, [i("p", { onClick: (e2) => l2.$emit("breadCrumbClicked", t3.routeName), class: "flex flex-row items-center justify-center text-indigo-600 hover:text-indigo-800 cursor-pointer" }, [r(C(Jl), { class: "flex-shrink-0 h-3 w-3 text-gray-400 mr-4", "aria-hidden": "true" }), i("span", null, P(t3.name), 1)], 8, fn)])) : (e(), n("div", vn, [r(C(ql), { class: "flex-shrink-0 h-3 w-3 text-gray-400", "aria-hidden": "true" }), i("span", { onClick: (e2) => l2.$emit("breadCrumbClicked", t3.routeName), class: a(["cursor-pointer ml-4 text-xs text-gray-400 hover:text-gray-500", { "text-indigo-600 hover:text-indigo-800": !t3.current }]), "aria-current": t3.current ? "page" : "" }, P(t3.name), 11, yn)]))]))), 128))])])) }), kn = { class: "flex items-center flex-col sm:flex-row justify-center sm:justify-start" }, Sn = ["src"], Cn = { class: "font-bold text-center sm:text-left" }, On = { class: "mt-1 text-xs text-center sm:text-left" }, Dn = { key: 0, class: "flex flex-wrap mt-4 justify-center sm:justify-start" }, Mn = { key: 1, class: "rounded-lg bg-white shadow p-6 cursor-pointer animate-pulse" }, Pn = [F('<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)], _n = { name: "uiCard" }, Tn = Object.assign(_n, { props: { id: { type: String, required: true }, name: { type: String, required: true }, type: String, tags: Array, logo: String, loading: { type: Boolean, default: true } }, setup: (l2) => (a2, r2) => {
1775
+ return (s2, u2) => l2.loading ? (e(), n("div", Ja, Ga)) : (e(), t(C(wl), { key: 0, as: "div", class: "flex items-center relative" }, { default: D(() => [r(C(kl), { disabled: l2.disabled, onClick: u2[0] || (u2[0] = (e2) => s2.$emit("toggleChanged", { item: l2.item, active: !o2.value })), modelValue: o2.value, "onUpdate:modelValue": u2[1] || (u2[1] = (e2) => o2.value = e2), class: a([o2.value ? "bg-indigo-600" : "bg-gray-200", "relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"]) }, { default: D(() => [i("span", { "aria-hidden": "true", class: a([o2.value ? "translate-x-5" : "translate-x-0", l2.disabled ? "bg-gray-300" : "", "pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out"]) }, null, 2)]), _: 1 }, 8, ["disabled", "modelValue", "class"]), r(C(Sl), { as: "span", class: "ml-3" }, { default: D(() => [i("span", Wa, P(l2.item.title), 1), l2.item.subtitle ? (e(), n("span", Ka, P(l2.item.subtitle), 1)) : j("", true)]), _: 1 }), l2.item.action ? (e(), n("span", { key: 0, class: "cursor-pointer text-indigo-600 hover:text-indigo-400 uppercase text-xs absolute right-0 bottom-0.5", onClick: u2[2] || (u2[2] = (e2) => s2.$emit("actionClicked", l2.item)) }, P(l2.item.action), 1)) : j("", true)]), _: 1 }));
1776
+ } }), Za = { key: 0, class: "flex flex-col" }, en = { class: "flex" }, tn = { class: "flex-shrink-0" }, ln = { class: "ml-3" }, an = { class: "mt-4" }, nn = { class: "-mx-2 -my-1.5 flex" }, rn = ["onClick"], on = { key: 1, class: "flex flex-col animate-pulse" }, sn = [F('<div class="p-4 border-l-4 bg-gray-100 border-gray-400 rounded"><div class="flex"><div class="flex-shrink-0"><div class="h-6 w-6 animate-pulse rounded-full bg-gray-200 dark:bg-gray-300"></div></div><div class="ml-3 w-full"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/3 mb-2"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full mb-2"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-3/5"></div></div></div></div>', 1)], un = { name: "uiAlert" }, dn = Object.assign(un, { props: { actions: { type: Array }, title: { type: String }, type: { type: String, default: "info" }, loading: { type: Boolean, default: true } }, setup: (l2) => (r2, s2) => l2.loading ? (e(), n("div", on, sn)) : (e(), n("div", Za, [i("div", { class: a([{ "bg-indigo-50 border-indigo-400": "info" === l2.type, "bg-red-50 border-red-400": "danger" === l2.type, "bg-yellow-50 border-yellow-400": "warning" === l2.type, "bg-green-50 border-green-400": "success" === l2.type }, "p-4 border-l-4 rounded"]) }, [i("div", en, [i("div", tn, ["info" === l2.type ? (e(), t(C(Jl), { key: 0, class: "h-8 w-8 text-indigo-400", "aria-hidden": "true" })) : j("", true), "danger" === l2.type ? (e(), t(C(Gl), { key: 1, class: "h-8 w-8 text-red-400", "aria-hidden": "true" })) : j("", true), "warning" === l2.type ? (e(), t(C(zl), { key: 2, class: "h-8 w-8 text-yellow-400", "aria-hidden": "true" })) : j("", true), "success" === l2.type ? (e(), t(C($l), { key: 3, class: "h-8 w-8 text-green-400", "aria-hidden": "true" })) : j("", true)]), i("div", ln, [i("h3", { class: a([{ "text-red-800": "danger" === l2.type, "text-yellow-800": "warning" === l2.type, "text-green-800": "success" === l2.type }, "text-sm font-medium"]) }, P(l2.title), 3), i("div", { class: a([{ "text-red-700": "danger" === l2.type, "text-yellow-700": "warning" === l2.type, "text-green-700": "success" === l2.type }, "mt-2 text-sm"]) }, [o(r2.$slots, "default")], 2), i("div", an, [i("div", nn, [(e(true), n(c, null, T(l2.actions, (t2, o2) => (e(), n("button", { onClick: (e2) => r2.$emit("alertEvent", t2.event), type: "button", key: o2, class: a([{ "bg-green-50 text-green-800 hover:bg-green-100 focus:ring-green-600 focus:ring-offset-green-50": "success" === l2.type, "bg-indigo-50 text-indigo-800 hover:bg-indigo-100 focus:ring-indigo-600 focus:ring-offset-indigo-50": "info" === l2.type, "bg-red-50 text-red-800 hover:bg-red-100 focus:ring-red-600 focus:ring-offset-red-50": "danger" === l2.type, "bg-yellow-50 text-yellow-800 hover:bg-yellow-100 focus:ring-yellow-600 focus:ring-offset-yellow-50": "warning" === l2.type }, "px-2 py-1.5 text-sm font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2"]) }, P(t2.name), 11, rn))), 128))])])])])], 2)])) }), cn = { key: 0, class: "inline-flex", "aria-label": "Breadcrumb" }, pn = { role: "list", class: "flex items-center space-x-4 text-xs" }, gn = { key: 0 }, fn = ["onClick"], mn = { key: 1, class: "flex items-center" }, vn = ["onClick", "aria-current"], yn = { key: 1, class: "flex flex-row items-center animate-pulse" }, bn = [i("div", { class: "animate-pulse rounded-full bg-gray-200 dark:bg-gray-300 h-4 w-4 mr-4" }, null, -1), i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5 mr-4" }, null, -1), i("div", { class: "animate-pulse rounded-full bg-gray-200 dark:bg-gray-300 h-4 w-4 mr-4" }, null, -1), i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5" }, null, -1)], hn = { name: "uiBreadcrumbs" }, xn = Object.assign(hn, { props: { pages: { type: Array, required: true }, loading: { type: Boolean, default: true } }, setup: (t2) => (l2, o2) => t2.loading ? (e(), n("div", yn, bn)) : (e(), n("nav", cn, [i("ol", pn, [(e(true), n(c, null, T(t2.pages, (t3, o3) => (e(), n("li", { key: o3 }, [0 === o3 ? (e(), n("div", gn, [i("p", { onClick: (e2) => l2.$emit("breadCrumbClicked", t3.routeName), class: "flex flex-row items-center justify-center text-indigo-600 hover:text-indigo-800 cursor-pointer" }, [r(C(Kl), { class: "flex-shrink-0 h-3 w-3 text-gray-400 mr-4", "aria-hidden": "true" }), i("span", null, P(t3.name), 1)], 8, fn)])) : (e(), n("div", mn, [r(C(ql), { class: "flex-shrink-0 h-3 w-3 text-gray-400", "aria-hidden": "true" }), i("span", { onClick: (e2) => l2.$emit("breadCrumbClicked", t3.routeName), class: a(["cursor-pointer ml-4 text-xs text-gray-400 hover:text-gray-500", { "text-indigo-600 hover:text-indigo-800": !t3.current }]), "aria-current": t3.current ? "page" : "" }, P(t3.name), 11, vn)]))]))), 128))])])) }), wn = { class: "flex items-center flex-col sm:flex-row justify-center sm:justify-start" }, kn = ["src"], Sn = { class: "font-bold text-center sm:text-left" }, Cn = { class: "mt-1 text-xs text-center sm:text-left" }, On = { key: 0, class: "flex flex-wrap mt-4 justify-center sm:justify-start" }, Dn = { key: 1, class: "rounded-lg bg-white shadow p-6 cursor-pointer animate-pulse" }, Mn = [F('<div class="flex items-center flex-col sm:flex-row justify-center sm:justify-start w-full"><div class="w-16 h-16 rounded-full bg-gray-200 flex self-center"></div><div class="w-full ml-4"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full mt-4 sm:mt-0 sm:w-16 mb-2"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full sm:w-32"></div></div></div>', 1)], Pn = { name: "uiCard" }, _n = Object.assign(Pn, { props: { id: { type: String, required: true }, name: { type: String, required: true }, type: String, tags: Array, logo: String, loading: { type: Boolean, default: true } }, setup: (l2) => (a2, r2) => {
1780
1777
  var _a2;
1781
- return l2.loading ? (e(), n("div", Mn, Pn)) : (e(), n("div", { key: 0, class: "rounded-lg bg-white shadow p-6 cursor-pointer", onClick: r2[0] || (r2[0] = (e2) => a2.$emit("cardSelected", { id: l2.id, name: l2.name, type: l2.type, tags: l2.tags })) }, [i("div", kn, [i("img", { class: "w-16 h-16 rounded-full mb-4 sm:mb-0 sm:mr-4", src: l2.logo }, null, 8, Sn), i("div", null, [i("h4", Cn, P(l2.name), 1), i("p", On, P(l2.type), 1)])]), ((_a2 = l2.tags) == null ? void 0 : _a2.length) > 0 ? (e(), n("div", Dn, [(e(true), n(c, null, T(l2.tags, (a3) => (e(), t($a, { class: "my-1 mr-1", key: a3.name, color: a3.color, loading: l2.loading }, { default: D(() => [M(P(a3.name), 1)]), _: 2 }, 1032, ["color", "loading"]))), 128))])) : j("", true)]));
1782
- } }), jn = { name: "uiFilter" }, En = Object.assign(jn, { props: { position: { type: String, default: "left" }, items: { type: Array, required: true }, label: { type: String, required: true }, loading: { type: Boolean, default: true } }, emits: ["filterSelected"], setup(l2, { emit: a2 }) {
1778
+ return l2.loading ? (e(), n("div", Dn, Mn)) : (e(), n("div", { key: 0, class: "rounded-lg bg-white shadow p-6 cursor-pointer", onClick: r2[0] || (r2[0] = (e2) => a2.$emit("cardSelected", { id: l2.id, name: l2.name, type: l2.type, tags: l2.tags })) }, [i("div", wn, [i("img", { class: "w-16 h-16 rounded-full mb-4 sm:mb-0 sm:mr-4", src: l2.logo }, null, 8, kn), i("div", null, [i("h4", Sn, P(l2.name), 1), i("p", Cn, P(l2.type), 1)])]), ((_a2 = l2.tags) == null ? void 0 : _a2.length) > 0 ? (e(), n("div", On, [(e(true), n(c, null, T(l2.tags, (a3) => (e(), t(Na, { class: "my-1 mr-1", key: a3.name, color: a3.color, loading: l2.loading }, { default: D(() => [M(P(a3.name), 1)]), _: 2 }, 1032, ["color", "loading"]))), 128))])) : j("", true)]));
1779
+ } }), Tn = { name: "uiFilter" }, jn = Object.assign(Tn, { props: { position: { type: String, default: "left" }, items: { type: Array, required: true }, label: { type: String, required: true }, loading: { type: Boolean, default: true } }, emits: ["filterSelected"], setup(l2, { emit: a2 }) {
1783
1780
  const n2 = s(l2.items);
1784
- return (r2, o2) => (e(), t(na, { loading: l2.loading, onOptionSelected: o2[0] || (o2[0] = (e2) => ((e3) => {
1781
+ return (r2, o2) => (e(), t(aa, { loading: l2.loading, onOptionSelected: o2[0] || (o2[0] = (e2) => ((e3) => {
1785
1782
  n2.value.forEach((t2) => {
1786
1783
  t2.value !== e3 ? t2.active = false : t2.active = true;
1787
1784
  }), a2("filterSelected", e3);
1788
1785
  })(e2)), position: l2.position, items: n2.value, label: l2.label }, null, 8, ["loading", "position", "items", "label"]));
1789
- } }), Ln = i("div", { class: "fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" }, null, -1), Bn = { class: "fixed inset-0 z-10 overflow-y-auto" }, In = { class: "flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0" }, Rn = { class: "absolute top-0 right-0 hidden pt-4 pr-4 sm:block" }, Fn = i("span", { class: "sr-only" }, "X", -1), An = { class: "sm:flex sm:items-start" }, Nn = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left sm:mr-4" }, $n = { class: "mt-4 text-gray-500 text-sm" }, Hn = { key: 0, class: "mt-8" }, Yn = ["onClick"], Vn = { name: "uiModal" }, qn = Object.assign(Vn, { 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 }) {
1786
+ } }), En = i("div", { class: "fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" }, null, -1), Ln = { class: "fixed inset-0 z-10 overflow-y-auto" }, Bn = { class: "flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0" }, In = { class: "absolute top-0 right-0 hidden pt-4 pr-4 sm:block" }, Rn = i("span", { class: "sr-only" }, "X", -1), Fn = { class: "sm:flex sm:items-start" }, An = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left sm:mr-4" }, Nn = { class: "mt-4 text-gray-500 text-sm" }, $n = { key: 0, class: "mt-8" }, Hn = ["onClick"], Yn = { name: "uiModal" }, Vn = Object.assign(Yn, { 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 }) {
1790
1787
  const u2 = l2, d2 = (e2) => {
1791
1788
  s2("modalAction", { modal: u2.modalName, action: e2 });
1792
1789
  };
1793
- return (s3, u3) => (e(), t(C(Fl), { as: "template", show: l2.open }, { default: D(() => [r(C(Jt), { as: "div", class: "relative z-10", onClose: u3[1] || (u3[1] = (e2) => d2("close")) }, { default: D(() => [r(C(Il), { 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(() => [Ln]), _: 1 }), i("div", Bn, [i("div", In, [r(C(Il), { 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(() => [r(C(Gt), { class: "relative transform overflow-hidden 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", Rn, [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) => d2("close")) }, [Fn, r(U, { icon: C(Ql), "aria-hidden": "true", loading: l2.loading }, null, 8, ["icon", "loading"])])]), i("div", An, [i("div", { class: a(["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 }]) }, [E(r(C(Ql), { class: "h-6 w-6 text-red-600", "aria-hidden": "true" }, null, 512), [[B, "danger" === l2.type]]), E(r(C(Hl), { class: "h-6 w-6 text-green-600", "aria-hidden": "true" }, null, 512), [[B, "success" === l2.type]]), E(r(C(Wl), { class: "h-6 w-6 text-yellow-600", "aria-hidden": "true" }, null, 512), [[B, "warning" === l2.type]]), E(r(C(Kl), { class: "h-6 w-6 text-indigo-600", "aria-hidden": "true" }, null, 512), [[B, "default" === l2.type]])], 2), i("div", Nn, [r(C(Xt), { as: "h3", class: "text-lg font-medium leading-6 text-gray-900" }, { default: D(() => [M(P(l2.title), 1)]), _: 1 }), i("div", $n, [o(s3.$slots, "default")]), l2.actions ? (e(), n("div", Hn, [(e(true), n(c, null, T(l2.actions, (t2, l3) => (e(), n("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) => d2(t2.value) }, P(t2.name), 9, Yn))), 128))])) : j("", true)])])]), _: 3 })]), _: 3 })])])]), _: 3 })]), _: 3 }, 8, ["show"]));
1794
- } }), Un = { class: "w-full flex flex-col items-center space-y-4 sm:items-end" }, zn = { 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" }, Wn = { class: "p-4" }, Kn = { class: "flex items-start" }, Jn = { class: "flex-shrink-0 mt-0.5" }, Gn = { class: "ml-3 w-0 flex-1 pt-0.5" }, Xn = { class: "font-medium text-gray-900" }, Qn = { class: "mt-1 text-sm text-gray-500" }, Zn = { class: "ml-4 flex-shrink-0 flex" }, er = i("span", { class: "sr-only" }, "Close", -1), tr = { name: "uiNotification" }, lr = Object.assign(tr, { props: { show: Boolean, type: { type: String, default: "info" }, title: String, message: String, fixed: { type: Boolean, default: true } }, setup(t2) {
1790
+ return (s3, u3) => (e(), t(C(Fl), { as: "template", show: l2.open }, { default: D(() => [r(C(Jt), { as: "div", class: "relative z-10", onClose: u3[1] || (u3[1] = (e2) => d2("close")) }, { default: D(() => [r(C(Il), { 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(() => [En]), _: 1 }), i("div", Ln, [i("div", Bn, [r(C(Il), { 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(() => [r(C(Gt), { class: "relative transform overflow-hidden 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", In, [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) => d2("close")) }, [Rn, r(U, { icon: C(Xl), "aria-hidden": "true", loading: l2.loading }, null, 8, ["icon", "loading"])])]), i("div", Fn, [i("div", { class: a(["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 }]) }, [E(r(C(Xl), { class: "h-6 w-6 text-red-600", "aria-hidden": "true" }, null, 512), [[B, "danger" === l2.type]]), E(r(C(Hl), { class: "h-6 w-6 text-green-600", "aria-hidden": "true" }, null, 512), [[B, "success" === l2.type]]), E(r(C(zl), { class: "h-6 w-6 text-yellow-600", "aria-hidden": "true" }, null, 512), [[B, "warning" === l2.type]]), E(r(C(Wl), { class: "h-6 w-6 text-indigo-600", "aria-hidden": "true" }, null, 512), [[B, "default" === l2.type]])], 2), i("div", An, [r(C(Xt), { as: "h3", class: "text-lg font-medium leading-6 text-gray-900" }, { default: D(() => [M(P(l2.title), 1)]), _: 1 }), i("div", Nn, [o(s3.$slots, "default")]), l2.actions ? (e(), n("div", $n, [(e(true), n(c, null, T(l2.actions, (t2, l3) => (e(), n("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) => d2(t2.value) }, P(t2.name), 9, Hn))), 128))])) : j("", true)])])]), _: 3 })]), _: 3 })])])]), _: 3 })]), _: 3 }, 8, ["show"]));
1791
+ } }), qn = { class: "w-full flex flex-col items-center space-y-4 sm:items-end" }, Un = { 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" }, zn = { class: "p-4" }, Wn = { class: "flex items-start" }, Kn = { class: "flex-shrink-0 mt-0.5" }, Jn = { class: "ml-3 w-0 flex-1 pt-0.5" }, Gn = { class: "font-medium text-gray-900" }, Xn = { class: "mt-1 text-sm text-gray-500" }, Qn = { class: "ml-4 flex-shrink-0 flex" }, Zn = i("span", { class: "sr-only" }, "Close", -1), er = { name: "uiNotification" }, tr = Object.assign(er, { props: { show: Boolean, type: { type: String, default: "info" }, title: String, message: String, fixed: { type: Boolean, default: true } }, setup(t2) {
1795
1792
  const l2 = t2, o2 = y(() => l2.show);
1796
- return (l3, s2) => (e(), n("div", { "aria-live": "assertive", class: a([{ fixed: t2.fixed }, "inset-0 flex items-end px-4 py-6 pointer-events-none sm:p-6 sm:items-start"]) }, [i("div", Un, [r(_, { "enter-active-class": "transform ease-out duration-300 transition", "enter-from-class": "translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2", "enter-to-class": "translate-y-0 opacity-100 sm:translate-x-0", "leave-active-class": "transition ease-in duration-100", "leave-from-class": "opacity-100", "leave-to-class": "opacity-0" }, { default: D(() => [o2.value ? (e(), n("div", zn, [i("div", Wn, [i("div", Kn, [i("div", Jn, [E(r(C($l), { "aria-hidden": "true", class: "h-6 w-6 text-green-400" }, null, 512), [[B, "success" === t2.type]]), E(r(C(Xl), { "aria-hidden": "true", class: "h-6 w-6 text-red-400" }, null, 512), [[B, "danger" === t2.type]]), E(r(C(Wl), { "aria-hidden": "true", class: "h-6 w-6 text-yellow-400" }, null, 512), [[B, "warning" === t2.type]]), E(r(C(Gl), { "aria-hidden": "true", class: "h-6 w-6 text-indigo-600" }, null, 512), [[B, "info" === t2.type]])]), i("div", Gn, [i("p", Xn, P(t2.title), 1), i("p", Qn, P(t2.message), 1)]), i("div", Zn, [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")) }, [er, r(C(Ql), { "aria-hidden": "true", class: "h-5 w-5" })])])])])])) : j("", true)]), _: 1 })])], 2));
1797
- } }), ar = { key: 0, role: "list", class: "divide-y divide-gray-100" }, nr = { class: "min-w-0" }, rr = { class: "flex items-start gap-x-3" }, or = { class: "text-sm font-semibold leading-6 text-gray-900" }, ir = { class: "mt-1 flex items-center gap-x-2 text-xs leading-5 text-gray-500" }, sr = { class: "truncate" }, ur = { class: "flex flex-none items-center gap-x-4" }, dr = ["href"], cr = { class: "sr-only" }, pr = { key: 1, class: "divide-y divide-gray-100 animate-pulse" }, gr = [F('<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)], mr = { name: "uiTaskList" }, fr = Object.assign(mr, { props: { tasks: { type: Array, required: true }, loading: { type: Boolean, default: true } }, setup: (t2) => (l2, r2) => t2.loading ? (e(), n("ul", pr, [(e(true), n(c, null, T(t2.tasks, (t3) => (e(), n("li", { key: t3.id, class: "flex items-center justify-between gap-x-6 py-5" }, gr))), 128))])) : (e(), n("ul", ar, [(e(true), n(c, null, T(t2.tasks, (t3) => (e(), n("li", { key: t3.id, class: "flex items-center justify-between gap-x-6 py-5" }, [i("div", nr, [i("div", rr, [i("p", or, P(t3.name), 1), i("p", { class: a([{ "text-green-700 bg-green-50 ring-green-600/20": "Complete" === t3.status, "text-gray-600 bg-gray-50 ring-gray-500/10": "In progress" === t3.status, "text-yellow-800 bg-yellow-50 ring-yellow-600/20": "Incomplete" === t3.status }, "rounded-md whitespace-nowrap mt-0.5 px-1.5 py-0.5 text-xs font-medium ring-1 ring-inset"]) }, P(t3.statusLiteral), 3)]), i("div", ir, [i("p", sr, P(t3.description), 1)])]), i("div", ur, [i("a", { href: t3.href, class: "hidden rounded-md bg-white px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:block" }, [M(P(t3.action), 1), i("span", cr, ", " + P(t3.name), 1)], 8, dr)])]))), 128))])) });
1793
+ return (l3, s2) => (e(), n("div", { "aria-live": "assertive", class: a([{ fixed: t2.fixed }, "inset-0 flex items-end px-4 py-6 pointer-events-none sm:p-6 sm:items-start"]) }, [i("div", qn, [r(_, { "enter-active-class": "transform ease-out duration-300 transition", "enter-from-class": "translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2", "enter-to-class": "translate-y-0 opacity-100 sm:translate-x-0", "leave-active-class": "transition ease-in duration-100", "leave-from-class": "opacity-100", "leave-to-class": "opacity-0" }, { default: D(() => [o2.value ? (e(), n("div", Un, [i("div", zn, [i("div", Wn, [i("div", Kn, [E(r(C($l), { "aria-hidden": "true", class: "h-6 w-6 text-green-400" }, null, 512), [[B, "success" === t2.type]]), E(r(C(Gl), { "aria-hidden": "true", class: "h-6 w-6 text-red-400" }, null, 512), [[B, "danger" === t2.type]]), E(r(C(zl), { "aria-hidden": "true", class: "h-6 w-6 text-yellow-400" }, null, 512), [[B, "warning" === t2.type]]), E(r(C(Jl), { "aria-hidden": "true", class: "h-6 w-6 text-indigo-600" }, null, 512), [[B, "info" === t2.type]])]), i("div", Jn, [i("p", Gn, P(t2.title), 1), i("p", Xn, P(t2.message), 1)]), i("div", Qn, [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")) }, [Zn, r(C(Xl), { "aria-hidden": "true", class: "h-5 w-5" })])])])])])) : j("", true)]), _: 1 })])], 2));
1794
+ } }), lr = { key: 0, role: "list", class: "divide-y divide-gray-100" }, ar = { class: "min-w-0" }, nr = { class: "flex items-start gap-x-3" }, rr = { class: "text-sm font-semibold leading-6 text-gray-900" }, or = { class: "mt-1 flex items-center gap-x-2 text-xs leading-5 text-gray-500" }, ir = { class: "truncate" }, sr = { class: "flex flex-none items-center gap-x-4" }, ur = ["href"], dr = { class: "sr-only" }, cr = { key: 1, class: "divide-y divide-gray-100 animate-pulse" }, pr = [F('<div class="min-w-0 w-full"><div class="flex items-start gap-x-3"><p class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2"></p></div></div><div class="flex flex-none items-center gap-x-4"><div class="hidden rounded-md bg-gray-200 px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:block"><p class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-10"></p></div></div>', 2)], gr = { name: "uiTaskList" }, fr = Object.assign(gr, { props: { tasks: { type: Array, required: true }, loading: { type: Boolean, default: true } }, setup: (t2) => (l2, r2) => t2.loading ? (e(), n("ul", cr, [(e(true), n(c, null, T(t2.tasks, (t3) => (e(), n("li", { key: t3.id, class: "flex items-center justify-between gap-x-6 py-5" }, pr))), 128))])) : (e(), n("ul", lr, [(e(true), n(c, null, T(t2.tasks, (t3) => (e(), n("li", { key: t3.id, class: "flex items-center justify-between gap-x-6 py-5" }, [i("div", ar, [i("div", nr, [i("p", rr, P(t3.name), 1), i("p", { class: a([{ "text-green-700 bg-green-50 ring-green-600/20": "Complete" === t3.status, "text-gray-600 bg-gray-50 ring-gray-500/10": "In progress" === t3.status, "text-yellow-800 bg-yellow-50 ring-yellow-600/20": "Incomplete" === t3.status }, "rounded-md whitespace-nowrap mt-0.5 px-1.5 py-0.5 text-xs font-medium ring-1 ring-inset"]) }, P(t3.statusLiteral), 3)]), i("div", or, [i("p", ir, P(t3.description), 1)])]), i("div", sr, [i("a", { href: t3.href, class: "hidden rounded-md bg-white px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:block" }, [M(P(t3.action), 1), i("span", dr, ", " + P(t3.name), 1)], 8, ur)])]))), 128))])) });
1798
1795
  "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self && self;
1799
- function vr(e2) {
1796
+ function mr(e2) {
1800
1797
  return e2 && e2.__esModule && Object.prototype.hasOwnProperty.call(e2, "default") ? e2.default : e2;
1801
1798
  }
1802
1799
  !function(e2) {
@@ -1832,42 +1829,42 @@ function vr(e2) {
1832
1829
  } };
1833
1830
  l2.default.locale(a2, null, true);
1834
1831
  }(H);
1835
- const yr = (e2, t2) => {
1832
+ const vr = (e2, t2) => {
1836
1833
  const l2 = e2.__vccOpts || e2;
1837
1834
  for (const [e3, a2] of t2)
1838
1835
  l2[e3] = a2;
1839
1836
  return l2;
1840
- }, br = { class: "dateSelector flex items-center text-white flex-row" }, hr = { class: "pagination flex items-center my-1 md:my-0" }, xr = { class: "date mx-4 font-bold text-center text-indigo-600 select-none uppercase" }, wr = { class: "pagination flex items-center my-1 sm:my-0" };
1841
- const kr = yr({ name: "dateSelector", components: { ChevronLeftIcon: Vl, ChevronRightIcon: ql }, computed: { currentDate() {
1837
+ }, yr = { class: "dateSelector flex items-center text-white flex-row" }, br = { class: "pagination flex items-center my-1 md:my-0" }, hr = { class: "date mx-4 font-bold text-center text-indigo-600 select-none uppercase" }, xr = { class: "pagination flex items-center my-1 sm:my-0" };
1838
+ const wr = vr({ name: "dateSelector", components: { ChevronLeftIcon: Vl, ChevronRightIcon: ql }, computed: { currentDate() {
1842
1839
  return H(this.selectedDate).locale("es").format("DD MMM. YYYY");
1843
1840
  } }, props: { selectedDate: { type: Object, required: true } }, methods: { selectDate(e2, t2) {
1844
1841
  let l2;
1845
1842
  "previous" === t2 && ("day" === e2 && (l2 = H(this.selectedDate).subtract(1, "day")), "month" === e2 && (l2 = H(this.selectedDate).subtract(1, "month")), "year" === e2 && (l2 = H(this.selectedDate).subtract(1, "year"))), "next" === t2 && ("day" === e2 && (l2 = H(this.selectedDate).add(1, "day")), "month" === e2 && (l2 = H(this.selectedDate).add(1, "month")), "year" === e2 && (l2 = H(this.selectedDate).add(1, "year"))), this.$emit("dateSelected", l2);
1846
1843
  } } }, [["render", function(t2, l2, a2, o2, s2, u2) {
1847
1844
  const d2 = A("ChevronLeftIcon"), c2 = A("ChevronRightIcon");
1848
- return e(), n("div", br, [i("div", hr, [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")) }, [r(d2, { class: "h-4" }), r(d2, { class: "h-4 -ml-3" }), r(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")) }, [r(d2, { class: "h-4" }), r(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")) }, [r(d2, { class: "h-4" })])]), i("div", xr, P(u2.currentDate), 1), i("div", wr, [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")) }, [r(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")) }, [r(c2, { class: "h-4" }), r(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")) }, [r(c2, { class: "h-4" }), r(c2, { class: "h-4 -ml-3" }), r(c2, { class: "h-4 -ml-3" })])])]);
1849
- }]]), Sr = { name: "SkeletonTable" }, Cr = { class: "px-4 sm:px-6 lg:px-8 animate-pulse" }, Or = { class: "flow-root" }, Dr = { class: "-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8" }, Mr = { class: "inline-block min-w-full py-2 align-middle px-1" }, Pr = { class: "overflow-hidden shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg" }, _r = { class: "min-w-full divide-y divide-gray-300" }, Tr = 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), jr = { class: "divide-y divide-gray-200 bg-white" }, Er = [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" }, [M(", {"), i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })])])], -1)];
1850
- const Lr = yr(Sr, [["render", function(t2, l2, a2, r2, o2, s2) {
1851
- return e(), n("div", Cr, [i("div", Or, [i("div", Dr, [i("div", Mr, [i("div", Pr, [i("table", _r, [Tr, i("tbody", jr, [(e(), n(c, null, T(10, (e2) => i("tr", { key: e2 }, Er)), 64))])])])])])])]);
1845
+ return e(), n("div", yr, [i("div", br, [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")) }, [r(d2, { class: "h-4" }), r(d2, { class: "h-4 -ml-3" }), r(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")) }, [r(d2, { class: "h-4" }), r(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")) }, [r(d2, { class: "h-4" })])]), i("div", hr, P(u2.currentDate), 1), i("div", xr, [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")) }, [r(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")) }, [r(c2, { class: "h-4" }), r(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")) }, [r(c2, { class: "h-4" }), r(c2, { class: "h-4 -ml-3" }), r(c2, { class: "h-4 -ml-3" })])])]);
1846
+ }]]), kr = { name: "SkeletonTable" }, Sr = { class: "px-4 sm:px-6 lg:px-8 animate-pulse" }, Cr = { class: "flow-root" }, Or = { class: "-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8" }, Dr = { class: "inline-block min-w-full py-2 align-middle px-1" }, Mr = { class: "overflow-hidden shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg" }, Pr = { class: "min-w-full divide-y divide-gray-300" }, _r = 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), Tr = { class: "divide-y divide-gray-200 bg-white" }, jr = [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" }, [M(", {"), i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })])])], -1)];
1847
+ const Er = vr(kr, [["render", function(t2, l2, a2, r2, o2, s2) {
1848
+ return e(), n("div", Sr, [i("div", Cr, [i("div", Or, [i("div", Dr, [i("div", Mr, [i("table", Pr, [_r, i("tbody", Tr, [(e(), n(c, null, T(10, (e2) => i("tr", { key: e2 }, jr)), 64))])])])])])])]);
1852
1849
  }]]);
1853
- var Br = { exports: {} };
1854
- Br.exports = function(e2, t2, l2) {
1850
+ var Lr = { exports: {} };
1851
+ Lr.exports = function(e2, t2, l2) {
1855
1852
  t2.prototype.isToday = function() {
1856
1853
  var e3 = "YYYY-MM-DD", t3 = l2();
1857
1854
  return this.format(e3) === t3.format(e3);
1858
1855
  };
1859
1856
  };
1860
- const Ir = vr(Br.exports), Rr = { class: "text-xs" }, Fr = { class: "font-bold text-lg" }, Ar = { class: "text-xs font-medium" };
1861
- const Nr = { name: "dayPrice", props: { currency: String, price: Object, basePrice: Number, isBasePrice: { type: Boolean, default: false } }, computed: { currentDay() {
1857
+ const Br = mr(Lr.exports), Ir = { class: "text-xs" }, Rr = { class: "font-bold text-lg" }, Fr = { class: "text-xs font-medium" };
1858
+ const Ar = { name: "dayPrice", props: { currency: String, price: Object, basePrice: Number, isBasePrice: { type: Boolean, default: false } }, computed: { currentDay() {
1862
1859
  return { isWeekend: 6 == H(this.price.date).format("d") || 0 == H(this.price.date).format("d"), price: this.price.price };
1863
- } } }, $r = { class: "priceDay" };
1864
- const Hr = { name: "uiPriceCalendar", data: () => ({ today: /* @__PURE__ */ new Date(), date: /* @__PURE__ */ new Date(), selectedRooms: [], showBasePricesModal: false, showDays: 14 }), props: { category: { type: Object, required: true }, rooms: { type: Array, required: true }, currency: Object, actions: Array, loading: { type: Boolean, default: true } }, components: { DateSelector: kr, Day: yr({ name: "calendarDay", props: { day: Object }, computed: { currentDay() {
1865
- return H.extend(Ir), { dayName: H(this.day).locale("es").format("ddd"), day: H(this.day).locale("es").format("DD"), month: H(this.day).locale("es").format("MMM."), isWeekend: 6 == H(this.day).format("d") || 0 == H(this.day).format("d"), isToday: H(this.day).isToday() };
1860
+ } } }, Nr = { class: "priceDay" };
1861
+ const $r = { name: "uiPriceCalendar", data: () => ({ today: /* @__PURE__ */ new Date(), date: /* @__PURE__ */ new Date(), selectedRooms: [], showBasePricesModal: false, showDays: 14 }), props: { category: { type: Object, required: true }, rooms: { type: Array, required: true }, currency: Object, actions: Array, loading: { type: Boolean, default: true } }, components: { DateSelector: wr, Day: vr({ name: "calendarDay", props: { day: Object }, computed: { currentDay() {
1862
+ return H.extend(Br), { dayName: H(this.day).locale("es").format("ddd"), day: H(this.day).locale("es").format("DD"), month: H(this.day).locale("es").format("MMM."), isWeekend: 6 == H(this.day).format("d") || 0 == H(this.day).format("d"), isToday: H(this.day).isToday() };
1866
1863
  } } }, [["render", function(t2, l2, r2, o2, s2, u2) {
1867
- return e(), n("div", { class: a(["day select-none text-center", { "bg-indigo-200 text-white": u2.currentDay.isWeekend, "bg-[#0ff] text-white": u2.currentDay.isToday }]) }, [i("p", Rr, P(u2.currentDay.dayName), 1), i("p", Fr, P(u2.currentDay.day), 1), i("p", Ar, P(u2.currentDay.month), 1)], 2);
1868
- }]]), Price: yr(Nr, [["render", function(t2, l2, r2, o2, s2, u2) {
1869
- return e(), n("div", $r, [i("div", { class: a([{ "bg-indigo-200 text-white": u2.currentDay.isWeekend, "bg-green-300 text-white": r2.price.price > r2.basePrice, "bg-yellow-300 text-white": r2.price.price < r2.basePrice }, "select-none text-center rounded-lg p-1"]) }, P(u2.currentDay.price) + P(r2.currency), 3)]);
1870
- }]]), uiButton: G, SkeletonTable: Lr }, computed: { days() {
1864
+ return e(), n("div", { class: a(["day select-none text-center", { "bg-indigo-200 text-white": u2.currentDay.isWeekend, "bg-[#0ff] text-white": u2.currentDay.isToday }]) }, [i("p", Ir, P(u2.currentDay.dayName), 1), i("p", Rr, P(u2.currentDay.day), 1), i("p", Fr, P(u2.currentDay.month), 1)], 2);
1865
+ }]]), Price: vr(Ar, [["render", function(t2, l2, r2, o2, s2, u2) {
1866
+ return e(), n("div", Nr, [i("div", { class: a([{ "bg-indigo-200 text-white": u2.currentDay.isWeekend, "bg-green-300 text-white": r2.price.price > r2.basePrice, "bg-yellow-300 text-white": r2.price.price < r2.basePrice }, "select-none text-center rounded-lg p-1"]) }, P(u2.currentDay.price) + P(r2.currency), 3)]);
1867
+ }]]), uiButton: G, SkeletonTable: Er }, computed: { days() {
1871
1868
  let e2 = [];
1872
1869
  for (let t2 = 0; t2 < this.showDays; t2++)
1873
1870
  e2.push(H(this.date).add(t2, "day"));
@@ -1889,59 +1886,59 @@ const Hr = { name: "uiPriceCalendar", data: () => ({ today: /* @__PURE__ */ new
1889
1886
  this.$emit("tableAction", e2);
1890
1887
  }, changeRoomPrice(e2) {
1891
1888
  this.$emit("changeRoomPrice", e2);
1892
- } } }, Yr = { key: 0, class: "px-4 sm:px-6 lg:px-8" }, Vr = { class: "flow-root" }, qr = { class: "overflow-x-auto sm:-mx-6 lg:-mx-8 shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg" }, Ur = { class: "inline-block min-w-full align-middle" }, zr = { class: "min-w-full" }, Wr = { class: "bg-white" }, Kr = { 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" }, Jr = { colspan: "20", scope: "colgroup", class: "bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, Gr = i("span", null, "Categoría: Simple", -1), Xr = i("td", { colspan: "6", class: "pl-4" }, " Precios de selección ", -1), Qr = i("td", { colspan: "6", class: "pl-4" }, " Precios de mejora ", -1), Zr = { colspan: "20", scope: "colgroup", class: "bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900 relative" }, eo = { 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" }, to = ["onClick"], lo = i("span", null, "Precios de selección", -1), ao = { colspan: "2", scope: "colgroup", class: "relative bg-gray-100 py-3.5 pl-4 pr-3 text-left font-semibold text-gray-900" }, no = ["checked", "indeterminate"], ro = i("span", { class: "pl-6" }, "Habitación", -1), oo = i("th", { colspan: "2", scope: "colgroup", class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, " Edificio ", -1), io = i("th", { colspan: "2", scope: "colgroup", class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, " Planta ", -1), so = 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), uo = { colspan: "2", class: "relative py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6" }, co = { key: 0, class: "absolute inset-y-0 left-0 w-0.5 bg-indigo-600" }, po = ["value"], go = { class: "pl-6" }, mo = { colspan: "2", class: "pl-4" }, fo = { colspan: "2", class: "pl-4" };
1893
- const vo = yr(Hr, [["render", function(l2, a2, o2, s2, u2, d2) {
1889
+ } } }, Hr = { key: 0, class: "px-4 sm:px-6 lg:px-8" }, Yr = { class: "flow-root" }, Vr = { class: "overflow-x-auto sm:-mx-6 lg:-mx-8 shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg" }, qr = { class: "inline-block min-w-full align-middle" }, Ur = { class: "min-w-full" }, zr = { class: "bg-white" }, Wr = { colspan: "6", scope: "colgroup", class: "bg-gray-50 py-2 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-3" }, Kr = { colspan: "20", scope: "colgroup", class: "bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, Jr = i("span", null, "Categoría: Simple", -1), Gr = i("td", { colspan: "6", class: "pl-4" }, " Precios de selección ", -1), Xr = i("td", { colspan: "6", class: "pl-4" }, " Precios de mejora ", -1), Qr = { colspan: "20", scope: "colgroup", class: "bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900 relative" }, Zr = { key: 0, class: "absolute top-0 left-12 flex h-12 items-center space-x-3 sm:left-48 bg-white shadow rounded px-4 py-1 z-10" }, eo = ["onClick"], to = i("span", null, "Precios de selección", -1), lo = { colspan: "2", scope: "colgroup", class: "relative bg-gray-100 py-3.5 pl-4 pr-3 text-left font-semibold text-gray-900" }, ao = ["checked", "indeterminate"], no = i("span", { class: "pl-6" }, "Habitación", -1), ro = i("th", { colspan: "2", scope: "colgroup", class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, " Edificio ", -1), oo = i("th", { colspan: "2", scope: "colgroup", class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, " Planta ", -1), io = i("th", { colspan: "14", scope: "colgroup", class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, null, -1), so = { colspan: "2", class: "relative py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6" }, uo = { key: 0, class: "absolute inset-y-0 left-0 w-0.5 bg-indigo-600" }, co = ["value"], po = { class: "pl-6" }, go = { colspan: "2", class: "pl-4" }, fo = { colspan: "2", class: "pl-4" };
1890
+ const mo = vr($r, [["render", function(l2, a2, o2, s2, u2, d2) {
1894
1891
  var _a2, _b;
1895
- const p2 = A("DateSelector"), g2 = A("Day"), m2 = A("uiButton"), f2 = A("Price"), v2 = A("SkeletonTable");
1896
- return o2.loading ? (e(), t(v2, { key: 1 })) : (e(), n("div", Yr, [i("div", Vr, [i("div", qr, [i("div", Ur, [i("table", zr, [i("tbody", Wr, [i("tr", null, [i("th", Kr, [r(p2, { selectedDate: l2.date, onDateSelected: a2[0] || (a2[0] = (e2) => d2.changeDate(e2)) }, null, 8, ["selectedDate"])]), (e(true), n(c, null, T(d2.days, (t2, l3) => (e(), n("th", { scope: "col", key: l3, class: "text-sm font-semibold text-gray-900 p-0" }, [r(g2, { class: "border-l border-gray-200 px-6 py-3", day: t2 }, null, 8, ["day"])]))), 128))]), i("tr", null, [i("th", Jr, [Gr, r(m2, { loading: o2.loading, class: "ml-4", size: "small", onClick: d2.changeCategoryBulkPrices }, { default: D(() => [M("Cambiar precios en bloque ")]), _: 1 }, 8, ["loading", "onClick"])])]), i("tr", null, [Xr, (e(true), n(c, null, T(o2.category.selectionPrices, (t2, l3) => (e(), n("td", { key: l3, class: "p-0" }, [r(f2, { onClick: (e2) => d2.changeCategorySelectionPrice(t2), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer", price: t2, currency: o2.currency.symbol, isBasePrice: true }, null, 8, ["onClick", "price", "currency"])]))), 128))]), i("tr", null, [Qr, (e(true), n(c, null, T(o2.category.upgradePrices, (t2, l3) => (e(), n("td", { key: l3, class: "p-0" }, [r(f2, { onClick: (e2) => d2.changeCategoryUpgradePrice(t2), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer bg-gray-100", price: t2, currency: o2.currency.symbol, isBasePrice: true }, null, 8, ["onClick", "price", "currency"])]))), 128))]), i("tr", null, [i("th", Zr, [((_a2 = l2.selectedRooms) == null ? void 0 : _a2.length) > 0 && ((_b = o2.actions) == null ? void 0 : _b.length) > 0 ? (e(), n("div", eo, [(e(true), n(c, null, T(o2.actions, (t2, a3) => (e(), n("button", { onClick: (e2) => d2.tableAction({ action: t2.id, items: l2.selectedRooms }), key: a3, type: "button", class: "inline-flex items-center rounded bg-indigo-600 hover:bg-indigo-800 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm disabled:cursor-not-allowed disabled:opacity-30" }, P(t2.name), 9, to))), 128))])) : j("", true), lo])]), i("tr", null, [i("th", ao, [i("input", { type: "checkbox", class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600", checked: d2.indeterminate || l2.selectedRooms.length === o2.rooms.length, indeterminate: d2.indeterminate, onChange: a2[1] || (a2[1] = (e2) => l2.selectedRooms = e2.target.checked ? o2.rooms.map((e3) => e3.name) : []) }, null, 40, no), ro]), oo, io, so]), (e(true), n(c, null, T(o2.rooms, (t2) => (e(), n("tr", { key: t2.name, class: "even:bg-gray-100" }, [i("td", uo, [l2.selectedRooms.includes(t2.name) ? (e(), n("div", co)) : j("", true), E(i("input", { type: "checkbox", class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600", value: t2.name, "onUpdate:modelValue": a2[2] || (a2[2] = (e2) => l2.selectedRooms = e2) }, null, 8, po), [[N, l2.selectedRooms]]), i("span", go, P(t2.name), 1)]), i("td", mo, P(t2.building), 1), i("td", fo, P(t2.floor), 1), (e(true), n(c, null, T(t2.selectionPrices, (t3, l3) => (e(), n("td", { class: "p-0", key: l3 }, [r(f2, { onClick: (e2) => d2.changeRoomPrice(t3), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 cursor-pointer", price: t3, currency: o2.currency.symbol, basePrice: d2.getSelectionBasePrice(t3) }, null, 8, ["onClick", "price", "currency", "basePrice"])]))), 128))]))), 128))])])])])])]));
1897
- }]]), yo = { class: "chart-selector flex flex-row items-center justify-center" }, bo = { name: "rangeSelector" }, ho = Object.assign(bo, { emits: ["rangeSelected"], setup(t2, { emit: l2 }) {
1892
+ const p2 = A("DateSelector"), g2 = A("Day"), f2 = A("uiButton"), m2 = A("Price"), v2 = A("SkeletonTable");
1893
+ return o2.loading ? (e(), t(v2, { key: 1 })) : (e(), n("div", Hr, [i("div", Yr, [i("div", Vr, [i("div", qr, [i("table", Ur, [i("tbody", zr, [i("tr", null, [i("th", Wr, [r(p2, { selectedDate: l2.date, onDateSelected: a2[0] || (a2[0] = (e2) => d2.changeDate(e2)) }, null, 8, ["selectedDate"])]), (e(true), n(c, null, T(d2.days, (t2, l3) => (e(), n("th", { scope: "col", key: l3, class: "text-sm font-semibold text-gray-900 p-0" }, [r(g2, { class: "border-l border-gray-200 px-6 py-3", day: t2 }, null, 8, ["day"])]))), 128))]), i("tr", null, [i("th", Kr, [Jr, r(f2, { loading: o2.loading, class: "ml-4", size: "small", onClick: d2.changeCategoryBulkPrices }, { default: D(() => [M("Cambiar precios en bloque ")]), _: 1 }, 8, ["loading", "onClick"])])]), i("tr", null, [Gr, (e(true), n(c, null, T(o2.category.selectionPrices, (t2, l3) => (e(), n("td", { key: l3, class: "p-0" }, [r(m2, { onClick: (e2) => d2.changeCategorySelectionPrice(t2), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer", price: t2, currency: o2.currency.symbol, isBasePrice: true }, null, 8, ["onClick", "price", "currency"])]))), 128))]), i("tr", null, [Xr, (e(true), n(c, null, T(o2.category.upgradePrices, (t2, l3) => (e(), n("td", { key: l3, class: "p-0" }, [r(m2, { onClick: (e2) => d2.changeCategoryUpgradePrice(t2), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer bg-gray-100", price: t2, currency: o2.currency.symbol, isBasePrice: true }, null, 8, ["onClick", "price", "currency"])]))), 128))]), i("tr", null, [i("th", Qr, [((_a2 = l2.selectedRooms) == null ? void 0 : _a2.length) > 0 && ((_b = o2.actions) == null ? void 0 : _b.length) > 0 ? (e(), n("div", Zr, [(e(true), n(c, null, T(o2.actions, (t2, a3) => (e(), n("button", { onClick: (e2) => d2.tableAction({ action: t2.id, items: l2.selectedRooms }), key: a3, type: "button", class: "inline-flex items-center rounded bg-indigo-600 hover:bg-indigo-800 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm disabled:cursor-not-allowed disabled:opacity-30" }, P(t2.name), 9, eo))), 128))])) : j("", true), to])]), i("tr", null, [i("th", lo, [i("input", { type: "checkbox", class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600", checked: d2.indeterminate || l2.selectedRooms.length === o2.rooms.length, indeterminate: d2.indeterminate, onChange: a2[1] || (a2[1] = (e2) => l2.selectedRooms = e2.target.checked ? o2.rooms.map((e3) => e3.name) : []) }, null, 40, ao), no]), ro, oo, io]), (e(true), n(c, null, T(o2.rooms, (t2) => (e(), n("tr", { key: t2.name, class: "even:bg-gray-100" }, [i("td", so, [l2.selectedRooms.includes(t2.name) ? (e(), n("div", uo)) : j("", true), E(i("input", { type: "checkbox", class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600", value: t2.name, "onUpdate:modelValue": a2[2] || (a2[2] = (e2) => l2.selectedRooms = e2) }, null, 8, co), [[N, l2.selectedRooms]]), i("span", po, P(t2.name), 1)]), i("td", go, P(t2.building), 1), i("td", fo, P(t2.floor), 1), (e(true), n(c, null, T(t2.selectionPrices, (t3, l3) => (e(), n("td", { class: "p-0", key: l3 }, [r(m2, { onClick: (e2) => d2.changeRoomPrice(t3), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 cursor-pointer", price: t3, currency: o2.currency.symbol, basePrice: d2.getSelectionBasePrice(t3) }, null, 8, ["onClick", "price", "currency", "basePrice"])]))), 128))]))), 128))])])])])])]));
1894
+ }]]), vo = { class: "chart-selector flex flex-row items-center justify-center" }, yo = { name: "rangeSelector" }, bo = Object.assign(yo, { emits: ["rangeSelected"], setup(t2, { emit: l2 }) {
1898
1895
  let r2 = s("24h");
1899
1896
  const o2 = (e2) => {
1900
1897
  r2.value = e2, l2("rangeSelected", e2);
1901
1898
  };
1902
- return (t3, l3) => (e(), n("ul", yo, [i("li", { class: a({ selected: "24h" === C(r2) }), onClick: l3[0] || (l3[0] = (e2) => o2("24h")) }, " 24H ", 2), i("li", { class: a({ selected: "7d" === C(r2) }), onClick: l3[1] || (l3[1] = (e2) => o2("7d")) }, "7D", 2), i("li", { class: a({ selected: "1m" === C(r2) }), onClick: l3[2] || (l3[2] = (e2) => o2("1m")) }, "1M", 2), i("li", { class: a({ selected: "3m" === C(r2) }), onClick: l3[3] || (l3[3] = (e2) => o2("3m")) }, "3M", 2)]));
1903
- } }), xo = { 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 } } }, wo = { key: 0, class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, ko = { class: "chart-header flex flex-row justify-between" }, So = { class: "text-sm font-medium text-gray-500 truncate" }, Co = { class: "chart-content" }, Oo = { key: 1, class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, Do = [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)], Mo = { name: "uiChart" }, Po = Object.assign(Mo, { props: { title: String, type: { type: String, default: "area" }, series: { type: Array, required: true }, options: { type: Object, required: true }, loading: { type: Boolean, default: true } }, emits: ["selectedRange", "chartUpdated"], setup(t2, { emit: l2 }) {
1904
- const a2 = t2, o2 = y(() => ({ ...a2.options, ...xo })), s2 = y(() => a2.series), u2 = () => l2("chartUpdated");
1905
- return (a3, d2) => t2.loading ? (e(), n("div", Oo, Do)) : (e(), n("div", wo, [i("div", ko, [i("div", So, P(t2.title), 1), r(ho, { onRangeSelected: d2[0] || (d2[0] = (e2) => l2("selectedRange", e2)) })]), i("div", Co, [r(C(Y), { type: t2.type, series: s2.value, width: "100%", height: "100%", options: o2.value, onUpdated: u2, onMounted: a3.emitEvent }, null, 8, ["type", "series", "options", "onMounted"])])]));
1906
- } }), _o = { name: "uiFooter" }, To = { class: "bg-white" }, jo = [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)];
1907
- const Eo = yr(_o, [["render", function(t2, l2, a2, r2, o2, i2) {
1908
- return e(), n("footer", To, jo);
1909
- }]]), Lo = i("div", { class: "spinner h-12 w-12 mb-6" }, [i("img", { src: "https://images.hotelinking.com/ui/loader.gif", alt: "loading animation" })], -1), Bo = { name: "uiLoadScreen" }, Io = Object.assign(Bo, { props: { title: String, message: String, fixed: { type: Boolean, default: true } }, setup: (t2) => (l2, r2) => (e(), n("div", { class: a([{ fixed: t2.fixed }, "load-screen h-full w-full top-0 left-0 z-50 flex flex-col items-center justify-center bg-gray-50"]) }, [Lo, E(i("h2", { class: "text-xs font-bold text-center uppercase mb-2" }, P(t2.title), 513), [[B, t2.title]]), E(i("p", { class: "text-xs text-center uppercase md:w-1/4" }, P(t2.message), 513), [[B, t2.message]])], 2)) }), Ro = { key: 0, class: "py-6 flex items-center justify-between" }, Fo = { class: "flex-1 flex justify-between sm:hidden" }, Ao = { href: "#", class: "relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50" }, No = { 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" }, $o = { class: "hidden sm:flex-1 sm:flex sm:items-center sm:justify-between" }, Ho = { class: "text-sm text-gray-700" }, Yo = { class: "font-bold" }, Vo = { class: "font-bold" }, qo = { class: "relative z-0 inline-flex rounded-md shadow-sm -space-x-px", "aria-label": "Pagination" }, Uo = { class: "sr-only" }, zo = ["onClick"], Wo = { class: "sr-only" }, Ko = { key: 1, class: "py-6 flex flex-row justify-between items-center animate-pulse" }, Jo = [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)], Go = { name: "uiPagination" }, Xo = Object.assign(Go, { props: { current: { type: Number, requires: true }, total: { type: Number, requires: true }, loading: { type: Boolean, default: true } }, emits: ["changePage"], setup(t2, { emit: l2 }) {
1910
- const u2 = t2, d2 = s(3), p2 = y(() => Math.max(1, Number(u2.current) - Number(d2.value))), g2 = y(() => Math.min(Number(u2.current) + Number(d2.value), Number(u2.total))), m2 = y(() => {
1899
+ return (t3, l3) => (e(), n("ul", vo, [i("li", { class: a({ selected: "24h" === C(r2) }), onClick: l3[0] || (l3[0] = (e2) => o2("24h")) }, " 24H ", 2), i("li", { class: a({ selected: "7d" === C(r2) }), onClick: l3[1] || (l3[1] = (e2) => o2("7d")) }, "7D", 2), i("li", { class: a({ selected: "1m" === C(r2) }), onClick: l3[2] || (l3[2] = (e2) => o2("1m")) }, "1M", 2), i("li", { class: a({ selected: "3m" === C(r2) }), onClick: l3[3] || (l3[3] = (e2) => o2("3m")) }, "3M", 2)]));
1900
+ } }), ho = { 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 } } }, xo = { key: 0, class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, wo = { class: "chart-header flex flex-row justify-between" }, ko = { class: "text-sm font-medium text-gray-500 truncate" }, So = { class: "chart-content" }, Co = { key: 1, class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, Oo = [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)], Do = { name: "uiChart" }, Mo = Object.assign(Do, { props: { title: String, type: { type: String, default: "area" }, series: { type: Array, required: true }, options: { type: Object, required: true }, loading: { type: Boolean, default: true } }, emits: ["selectedRange", "chartUpdated"], setup(t2, { emit: l2 }) {
1901
+ const a2 = t2, o2 = y(() => ({ ...a2.options, ...ho })), s2 = y(() => a2.series), u2 = () => l2("chartUpdated");
1902
+ return (a3, d2) => t2.loading ? (e(), n("div", Co, Oo)) : (e(), n("div", xo, [i("div", wo, [i("div", ko, P(t2.title), 1), r(bo, { onRangeSelected: d2[0] || (d2[0] = (e2) => l2("selectedRange", e2)) })]), i("div", So, [r(C(Y), { type: t2.type, series: s2.value, width: "100%", height: "100%", options: o2.value, onUpdated: u2, onMounted: a3.emitEvent }, null, 8, ["type", "series", "options", "onMounted"])])]));
1903
+ } }), Po = { name: "uiFooter" }, _o = { class: "bg-white" }, To = [i("div", { class: "mx-auto py-6 px-4 sm:px-6 md:flex md:items-center md:justify-between lg:px-8" }, [i("div", { class: "mt-8 md:mt-0 md:order-1" }, [i("p", { class: "text-center text-base text-gray-400" }, "© Made by Hotelinking.")])], -1)];
1904
+ const jo = vr(Po, [["render", function(t2, l2, a2, r2, o2, i2) {
1905
+ return e(), n("footer", _o, To);
1906
+ }]]), Eo = i("div", { class: "spinner h-12 w-12 mb-6" }, [i("img", { src: "https://images.hotelinking.com/ui/loader.gif", alt: "loading animation" })], -1), Lo = { name: "uiLoadScreen" }, Bo = Object.assign(Lo, { props: { title: String, message: String, fixed: { type: Boolean, default: true } }, setup: (t2) => (l2, r2) => (e(), n("div", { class: a([{ fixed: t2.fixed }, "load-screen h-full w-full top-0 left-0 z-50 flex flex-col items-center justify-center bg-gray-50"]) }, [Eo, E(i("h2", { class: "text-xs font-bold text-center uppercase mb-2" }, P(t2.title), 513), [[B, t2.title]]), E(i("p", { class: "text-xs text-center uppercase md:w-1/4" }, P(t2.message), 513), [[B, t2.message]])], 2)) }), Io = { key: 0, class: "py-6 flex items-center justify-between" }, Ro = { class: "flex-1 flex justify-between sm:hidden" }, Fo = { 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" }, Ao = { href: "#", class: "ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50" }, No = { class: "hidden sm:flex-1 sm:flex sm:items-center sm:justify-between" }, $o = { class: "text-sm text-gray-700" }, Ho = { class: "font-bold" }, Yo = { class: "font-bold" }, Vo = { class: "relative z-0 inline-flex rounded-md shadow-sm -space-x-px", "aria-label": "Pagination" }, qo = { class: "sr-only" }, Uo = ["onClick"], zo = { class: "sr-only" }, Wo = { key: 1, class: "py-6 flex flex-row justify-between items-center animate-pulse" }, Ko = [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5" }, null, -1), i("div", { class: "h-10 w-32 bg-gray-200 rounded dark:bg-gray-300" }, null, -1)], Jo = { name: "uiPagination" }, Go = Object.assign(Jo, { props: { current: { type: Number, requires: true }, total: { type: Number, requires: true }, loading: { type: Boolean, default: true } }, emits: ["changePage"], setup(t2, { emit: l2 }) {
1907
+ const u2 = t2, d2 = s(3), p2 = y(() => Math.max(1, Number(u2.current) - Number(d2.value))), g2 = y(() => Math.min(Number(u2.current) + Number(d2.value), Number(u2.total))), f2 = y(() => {
1911
1908
  let e2 = [];
1912
1909
  for (let t3 = Number(p2.value); t3 <= Number(g2.value); t3++)
1913
1910
  e2.push(t3);
1914
1911
  return e2;
1915
1912
  });
1916
- return (s2, u3) => t2.loading ? (e(), n("div", Ko, Jo)) : (e(), n("div", Ro, [i("div", Fo, [i("a", Ao, [o(s2.$slots, "previous")]), i("a", No, [o(s2.$slots, "next")])]), i("div", $o, [i("div", null, [i("p", Ho, [o(s2.$slots, "showing"), M(), i("span", Yo, P(t2.current + " "), 1), o(s2.$slots, "of"), M(), i("span", Vo, P(t2.total), 1)])]), i("div", null, [i("nav", qo, [E(i("button", { onClick: u3[0] || (u3[0] = (e2) => l2("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", Uo, [o(s2.$slots, "previous")]), r(C(Vl), { class: "h-5 w-5", "aria-hidden": "true" })], 512), [[B, 1 !== t2.current]]), (e(true), n(c, null, T(m2.value, (r2) => (e(), n("button", { onClick: (e2) => l2("changePage", r2), key: r2, "aria-current": "page", class: a([[r2 === t2.current ? "z-10 bg-indigo-50 border-indigo-500 text-indigo-600" : "bg-white border-gray-300 text-gray-500 hover:bg-gray-50"], "relative inline-flex items-center px-4 py-2 border text-sm font-medium"]) }, P(r2), 11, zo))), 128)), E(i("button", { onClick: u3[1] || (u3[1] = (e2) => l2("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", Wo, [o(s2.$slots, "next")]), r(C(ql), { class: "h-5 w-5", "aria-hidden": "true" })], 512), [[B, t2.current !== t2.total]])])])])]));
1917
- } }), Qo = { class: "hidden md:flex md:flex-col sticky md:inset-y-0" }, Zo = { class: "flex flex-col flex-grow overflow-y-auto" }, ei = { class: "grow flex flex-col" }, ti = { class: "flex-1 space-y-1", "aria-label": "Sidebar" }, li = { key: 0 }, ai = ["onClick"], ni = { key: 0 }, ri = { key: 1, class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/3 md:w-1/6" }, oi = { key: 0, class: "flex-1" }, ii = { key: 1, class: "flex-1" }, si = [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/3 md:w-1/6" }, null, -1)], ui = { key: 0 }, di = { key: 1, class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/3 md:w-1/6" }, ci = { name: "uiSidebar" }, pi = Object.assign(ci, { props: { navigation: { type: Array, required: true }, loading: { type: Boolean, default: true } }, emits: ["sideBarClick"], setup: (l2, { emit: o2 }) => (s2, u2) => (e(), n("div", Qo, [i("div", Zo, [i("div", ei, [i("nav", ti, [(e(true), n(c, null, T(l2.navigation, (s3) => (e(), n(c, { key: s3.name }, [s3.children ? (e(), t(C(ll), { key: 1, as: "div", class: "space-y-1" }, { default: D(({ open: i2 }) => [r(C(al), { class: a([s3.current ? "bg-indigo-600 text-white" : "text-gray-600 hover:bg-gray-50 hover:text-gray-900", "group w-full flex items-center pl-2 pr-1 py-2 text-left text-sm font-medium rounded-md focus:outline-none"]) }, { default: D(() => [r(U, { loading: l2.loading, icon: s3.icon, class: "mr-3 flex-shrink-0 h-6 w-6 text-gray-400 group-hover:text-gray-500", "aria-hidden": "true" }, null, 8, ["loading", "icon"]), l2.loading ? (e(), n("div", ii, si)) : (e(), n("span", oi, P(s3.name), 1)), r(C(ql), { class: a([i2 ? "text-gray-400 rotate-90" : "text-gray-400", "ml-3 flex-shrink-0 h-3 w-3 transform group-hover:text-gray-400 transition-colors ease-in-out duration-150"]) }, null, 8, ["class"])]), _: 2 }, 1032, ["class"]), r(C(nl), { class: "space-y-1" }, { default: D(() => [(e(true), n(c, null, T(s3.children, (a2) => (e(), t(C(al), { onClick: (e2) => o2("sideBarClick", a2.id), key: a2.name, class: "group w-full flex items-center pl-11 pr-2 py-2 text-sm font-medium text-gray-600 rounded-md hover:text-gray-900 hover:bg-gray-50" }, { default: D(() => [l2.loading ? (e(), n("div", di)) : (e(), n("span", ui, P(a2.name), 1))]), _: 2 }, 1032, ["onClick"]))), 128))]), _: 2 }, 1024)]), _: 2 }, 1024)) : (e(), n("div", li, [i("button", { onClick: (e2) => o2("sideBarClick", s3.id), class: a([s3.current ? "bg-indigo-600 text-white" : "text-gray-600 hover:bg-gray-50 hover:text-gray-900", "group w-full flex items-center pl-2 py-2 text-sm font-medium rounded-md"]) }, [r(U, { loading: l2.loading, icon: s3.icon, class: a([s3.current ? "text-white" : "text-gray-400 group-hover:text-gray-500", "mr-3 flex-shrink-0 h-6 w-6"]), "aria-hidden": "true" }, null, 8, ["loading", "icon", "class"]), l2.loading ? (e(), n("div", ri)) : (e(), n("span", ni, P(s3.name), 1))], 10, ai)]))], 64))), 128))])])])])) }), gi = { key: 0 }, mi = { class: "ml-16 text-sm font-medium text-gray-500 truncate" }, fi = { class: "ml-16 flex items-baseline pb-5" }, vi = { class: "text-2xl font-semibold text-gray-900" }, yi = { class: "sr-only" }, bi = { class: "absolute bottom-0 inset-x-0 bg-gray-50 px-4 py-4 sm:px-6" }, hi = { class: "text-sm" }, xi = { key: 1 }, wi = { class: "relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full pb-6" }, ki = { class: "absolute bg-gray-300 rounded-md p-3 animate-pulse" }, Si = i("div", { class: "ml-16" }, [i("div", { class: "h-2.5 bg-gray-300 rounded-full dark:bg-gray-300 w-1/2 sm:w-1/6 mb-4" })], -1), Ci = i("div", { class: "ml-16" }, [i("div", { class: "h-5 bg-gray-300 rounded-full dark:bg-gray-300 w-1/2 sm:w-1/6" })], -1), Oi = { name: "uiStats" }, Di = Object.assign(Oi, { props: { item: { type: Object, required: true }, loading: { type: Boolean, default: true } }, emits: ["statClick"], setup: (l2, { emit: o2 }) => (s2, u2) => l2.loading ? (e(), n("div", xi, [i("div", wi, [i("dt", null, [i("div", ki, [r(U, { loading: l2.loading, icon: l2.item.icon, class: "h-6 w-6 text-white", "aria-hidden": "true" }, null, 8, ["loading", "icon"])]), Si, Ci])])])) : (e(), n("div", gi, [i("div", { class: a(["relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full", { "pb-12": l2.item.showFooter }]) }, [i("dt", null, [i("div", { class: a(["absolute rounded-md p-3", { "bg-indigo-500": !l2.item.color, "bg-green-500": "success" === l2.item.color, "bg-red-500": "danger" === l2.item.color, "bg-yellow-500": "warning" === l2.item.color }]) }, [r(U, { icon: l2.item.icon, class: "h-6 w-6 text-white", "aria-hidden": "true", loading: l2.loading }, null, 8, ["icon", "loading"])], 2), i("p", mi, P(l2.item.name), 1)]), i("dd", fi, [i("p", vi, P(l2.item.stat), 1), l2.item.changeType ? (e(), n("p", { key: 0, class: a(["increase" === l2.item.changeType ? "text-green-600" : "text-red-600", "ml-2 flex items-baseline text-sm font-semibold"]) }, ["increase" === l2.item.changeType ? (e(), t(C(Nl), { key: 0, class: "self-center flex-shrink-0 h-3 w-3 text-green-500", "aria-hidden": "true" })) : (e(), t(C(Al), { key: 1, class: "self-center flex-shrink-0 h-3 w-3 text-red-500", "aria-hidden": "true" })), i("span", yi, P("increase" === l2.item.changeType ? "Increased" : "Decreased"), 1), M(" " + P(l2.item.change), 1)], 2)) : j("", true), E(i("div", bi, [i("div", hi, [i("span", { onClick: u2[0] || (u2[0] = (e2) => o2("statClick", l2.item.id)), class: "font-medium text-indigo-600 hover:text-indigo-500 cursor-pointer" }, P(l2.item.actionText), 1)])], 512), [[B, l2.item.showFooter]])])], 2)])) }), Mi = { key: 0, class: "overflow-hidden bg-white shadow sm:rounded-lg" }, Pi = { class: "px-4 py-5 sm:px-6" }, _i = { class: "text-lg font-medium leading-6 text-gray-900" }, Ti = { class: "mt-1 max-w-2xl text-sm text-gray-500" }, ji = { class: "border-t border-gray-200" }, Ei = { class: "text-sm font-medium text-gray-500" }, Li = { key: 0, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal" }, Bi = { key: 1, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal" }, Ii = ["onClick"], Ri = { key: 3, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-words" }, Fi = { key: 1, class: "overflow-hidden bg-white shadow sm:rounded-lg" }, Ai = F('<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), Ni = { class: "border-t border-gray-200" }, $i = [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)], Hi = { name: "uiStripedCard" }, Yi = Object.assign(Hi, { props: { title: String, subtitle: String, items: Object, loading: { type: Boolean, default: true } }, setup: (l2) => (o2, s2) => l2.loading ? (e(), n("div", Fi, [Ai, i("div", Ni, [i("dl", null, [(e(), n(c, null, T(5, (e2) => i("div", { key: e2, class: a(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [e2 % 2 == 0 ? "bg-gray-50" : "bg-white"]]) }, $i, 2)), 64))])])])) : (e(), n("div", Mi, [i("div", Pi, [i("h3", _i, P(l2.title), 1), i("p", Ti, P(l2.subtitle), 1)]), i("div", ji, [i("dl", null, [(e(true), n(c, null, T(l2.items, (s3, u2) => (e(), n("div", { key: u2, class: a(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [u2 % 2 == 0 ? "bg-gray-50" : "bg-white"]]) }, [i("dt", Ei, P(s3.title), 1), "tag" === s3.type ? (e(), n("dd", Li, [r($a, { color: s3.color }, { default: D(() => [M(P(s3.text), 1)]), _: 2 }, 1032, ["color"])])) : "tags" === s3.type ? (e(), n("dd", Bi, [(e(true), n(c, null, T(s3.tags, (a2, n2) => (e(), t($a, { loading: l2.loading, key: n2, color: a2.color, class: "mr-2 mb-2" }, { default: D(() => [M(P(a2.text), 1)]), _: 2 }, 1032, ["loading", "color"]))), 128))])) : "link" === s3.type ? (e(), n("dd", { key: 2, class: "mt-1 text-sm text-indigo-600 hover:text-indigo-400 sm:col-span-2 sm:mt-0 cursor-pointer", onClick: (e2) => o2.$emits(s3.emits) }, P(s3.text), 9, Ii)) : (e(), n("dd", Ri, P(s3.text), 1))], 2))), 128))])])])) }), Vi = { key: 0 }, qi = { class: "flex flex-col" }, Ui = { class: "-my-2 overflow-x-auto" }, zi = { class: "inline-block min-w-full py-2 align-middle px-1" }, Wi = { class: "relative overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg" }, Ki = { 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" }, Ji = ["onClick"], Gi = { class: "min-w-full table-fixed divide-y divide-gray-300" }, Xi = { class: "bg-gray-50" }, Qi = ["checked", "indeterminate"], Zi = ["onClick"], es = [i("svg", { class: "h-4 w-4", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true" }, [i("path", { "fill-rule": "evenodd", d: "M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z", "clip-rule": "evenodd" })], -1)], ts = { key: 1, class: "group flex items-center uppercase text-xs" }, ls = { class: "divide-y divide-gray-200 bg-white" }, as = { key: 0, class: "absolute inset-y-0 left-0 w-0.5 bg-indigo-600" }, ns = ["value"], rs = ["onClick"], os = { key: 2 }, is = { name: "uiTable" }, ss = Object.assign(is, { props: { header: { type: Array, required: true }, items: { type: Array, required: true }, orderedBy: String, actions: Array, loading: { type: Boolean, default: true } }, emits: ["tableAction", "orderBy"], setup(l2, { emit: r2 }) {
1913
+ return (s2, u3) => t2.loading ? (e(), n("div", Wo, Ko)) : (e(), n("div", Io, [i("div", Ro, [i("a", Fo, [o(s2.$slots, "previous")]), i("a", Ao, [o(s2.$slots, "next")])]), i("div", No, [i("div", null, [i("p", $o, [o(s2.$slots, "showing"), M(), i("span", Ho, P(t2.current + " "), 1), o(s2.$slots, "of"), M(), i("span", Yo, P(t2.total), 1)])]), i("div", null, [i("nav", Vo, [E(i("button", { onClick: u3[0] || (u3[0] = (e2) => l2("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", qo, [o(s2.$slots, "previous")]), r(C(Vl), { class: "h-5 w-5", "aria-hidden": "true" })], 512), [[B, 1 !== t2.current]]), (e(true), n(c, null, T(f2.value, (r2) => (e(), n("button", { onClick: (e2) => l2("changePage", r2), key: r2, "aria-current": "page", class: a([[r2 === t2.current ? "z-10 bg-indigo-50 border-indigo-500 text-indigo-600" : "bg-white border-gray-300 text-gray-500 hover:bg-gray-50"], "relative inline-flex items-center px-4 py-2 border text-sm font-medium"]) }, P(r2), 11, Uo))), 128)), E(i("button", { onClick: u3[1] || (u3[1] = (e2) => l2("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", zo, [o(s2.$slots, "next")]), r(C(ql), { class: "h-5 w-5", "aria-hidden": "true" })], 512), [[B, t2.current !== t2.total]])])])])]));
1914
+ } }), Xo = { class: "hidden md:flex md:flex-col sticky md:inset-y-0" }, Qo = { class: "flex flex-col flex-grow overflow-y-auto" }, Zo = { class: "grow flex flex-col" }, ei = { class: "flex-1 space-y-1", "aria-label": "Sidebar" }, ti = { key: 0 }, li = ["onClick"], ai = { key: 0 }, ni = { key: 1, class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, ri = { key: 0, class: "flex-1" }, oi = { key: 1, class: "flex-1" }, ii = [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1)], si = { key: 0 }, ui = { key: 1, class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, di = { name: "uiSidebar" }, ci = Object.assign(di, { props: { navigation: { type: Array, required: true }, loading: { type: Boolean, default: true } }, emits: ["sideBarClick"], setup: (l2, { emit: o2 }) => (s2, u2) => (e(), n("div", Xo, [i("div", Qo, [i("div", Zo, [i("nav", ei, [(e(true), n(c, null, T(l2.navigation, (s3) => (e(), n(c, { key: s3.name }, [s3.children ? (e(), t(C(ll), { key: 1, as: "div", class: "space-y-1" }, { default: D(({ open: i2 }) => [r(C(al), { class: a([s3.current ? "bg-indigo-600 text-white" : "text-gray-600 hover:bg-gray-50 hover:text-gray-900", "group w-full flex items-center pl-2 pr-1 py-2 text-left text-sm font-medium rounded-md focus:outline-none"]) }, { default: D(() => [r(U, { loading: l2.loading, icon: s3.icon, class: "mr-3 flex-shrink-0 h-6 w-6 text-gray-400 group-hover:text-gray-500", "aria-hidden": "true" }, null, 8, ["loading", "icon"]), l2.loading ? (e(), n("div", oi, ii)) : (e(), n("span", ri, P(s3.name), 1)), r(C(ql), { class: a([i2 ? "text-gray-400 rotate-90" : "text-gray-400", "ml-3 flex-shrink-0 h-3 w-3 transform group-hover:text-gray-400 transition-colors ease-in-out duration-150"]) }, null, 8, ["class"])]), _: 2 }, 1032, ["class"]), r(C(nl), { class: "space-y-1" }, { default: D(() => [(e(true), n(c, null, T(s3.children, (a2) => (e(), t(C(al), { onClick: (e2) => o2("sideBarClick", a2.id), key: a2.name, class: "group w-full flex items-center pl-11 pr-2 py-2 text-sm font-medium text-gray-600 rounded-md hover:text-gray-900 hover:bg-gray-50" }, { default: D(() => [l2.loading ? (e(), n("div", ui)) : (e(), n("span", si, P(a2.name), 1))]), _: 2 }, 1032, ["onClick"]))), 128))]), _: 2 }, 1024)]), _: 2 }, 1024)) : (e(), n("div", ti, [i("button", { onClick: (e2) => o2("sideBarClick", s3.id), class: a([s3.current ? "bg-indigo-600 text-white" : "text-gray-600 hover:bg-gray-50 hover:text-gray-900", "group w-full flex items-center pl-2 py-2 text-sm font-medium rounded-md"]) }, [r(U, { loading: l2.loading, icon: s3.icon, class: a([s3.current ? "text-white" : "text-gray-400 group-hover:text-gray-500", "mr-3 flex-shrink-0 h-6 w-6"]), "aria-hidden": "true" }, null, 8, ["loading", "icon", "class"]), l2.loading ? (e(), n("div", ni)) : (e(), n("span", ai, P(s3.name), 1))], 10, li)]))], 64))), 128))])])])])) }), pi = { key: 0 }, gi = { class: "ml-16 text-sm font-medium text-gray-500 truncate" }, fi = { class: "ml-16 flex items-baseline pb-5" }, mi = { class: "text-2xl font-semibold text-gray-900" }, vi = { class: "sr-only" }, yi = { class: "absolute bottom-0 inset-x-0 bg-gray-50 px-4 py-4 sm:px-6" }, bi = { class: "text-sm" }, hi = { key: 1 }, xi = { class: "relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full pb-6" }, wi = { class: "absolute bg-gray-200 rounded-md p-3 animate-pulse" }, ki = 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), Si = 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), Ci = { name: "uiStats" }, Oi = Object.assign(Ci, { props: { item: { type: Object, required: true }, loading: { type: Boolean, default: true } }, emits: ["statClick"], setup: (l2, { emit: o2 }) => (s2, u2) => l2.loading ? (e(), n("div", hi, [i("div", xi, [i("dt", null, [i("div", wi, [r(U, { loading: l2.loading, icon: l2.item.icon, class: "h-6 w-6 text-white", "aria-hidden": "true" }, null, 8, ["loading", "icon"])]), ki, Si])])])) : (e(), n("div", pi, [i("div", { class: a(["relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full", { "pb-12": l2.item.showFooter }]) }, [i("dt", null, [i("div", { class: a(["absolute rounded-md p-3", { "bg-indigo-500": !l2.item.color, "bg-green-500": "success" === l2.item.color, "bg-red-500": "danger" === l2.item.color, "bg-yellow-500": "warning" === l2.item.color }]) }, [r(U, { icon: l2.item.icon, class: "h-6 w-6 text-white", "aria-hidden": "true", loading: l2.loading }, null, 8, ["icon", "loading"])], 2), i("p", gi, P(l2.item.name), 1)]), i("dd", fi, [i("p", mi, P(l2.item.stat), 1), l2.item.changeType ? (e(), n("p", { key: 0, class: a(["increase" === l2.item.changeType ? "text-green-600" : "text-red-600", "ml-2 flex items-baseline text-sm font-semibold"]) }, ["increase" === l2.item.changeType ? (e(), t(C(Nl), { key: 0, class: "self-center flex-shrink-0 h-3 w-3 text-green-500", "aria-hidden": "true" })) : (e(), t(C(Al), { key: 1, class: "self-center flex-shrink-0 h-3 w-3 text-red-500", "aria-hidden": "true" })), i("span", vi, P("increase" === l2.item.changeType ? "Increased" : "Decreased"), 1), M(" " + P(l2.item.change), 1)], 2)) : j("", true), E(i("div", yi, [i("div", bi, [i("span", { onClick: u2[0] || (u2[0] = (e2) => o2("statClick", l2.item.id)), class: "font-medium text-indigo-600 hover:text-indigo-500 cursor-pointer" }, P(l2.item.actionText), 1)])], 512), [[B, l2.item.showFooter]])])], 2)])) }), Di = { key: 0, class: "overflow-hidden bg-white shadow sm:rounded-lg" }, Mi = { class: "px-4 py-5 sm:px-6" }, Pi = { class: "text-lg font-medium leading-6 text-gray-900" }, _i = { class: "mt-1 max-w-2xl text-sm text-gray-500" }, Ti = { class: "border-t border-gray-200" }, ji = { class: "text-sm font-medium text-gray-500" }, Ei = { key: 0, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal" }, Li = { key: 1, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal" }, Bi = ["onClick"], Ii = { key: 3, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-words" }, Ri = { key: 1, class: "overflow-hidden bg-white shadow sm:rounded-lg" }, Fi = F('<div class="px-4 py-5 sm:px-6 animate-pulse"><h3 class="text-lg font-medium leading-6 text-gray-900"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4"></div></h3><p class="mt-1 max-w-2xl text-sm text-gray-500"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/5"></div></p></div>', 1), Ai = { class: "border-t border-gray-200" }, Ni = [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)], $i = { name: "uiStripedCard" }, Hi = Object.assign($i, { props: { title: String, subtitle: String, items: Object, loading: { type: Boolean, default: true } }, setup: (l2) => (o2, s2) => l2.loading ? (e(), n("div", Ri, [Fi, i("div", Ai, [i("dl", null, [(e(), n(c, null, T(5, (e2) => i("div", { key: e2, class: a(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [e2 % 2 == 0 ? "bg-gray-50" : "bg-white"]]) }, Ni, 2)), 64))])])])) : (e(), n("div", Di, [i("div", Mi, [i("h3", Pi, P(l2.title), 1), i("p", _i, P(l2.subtitle), 1)]), i("div", Ti, [i("dl", null, [(e(true), n(c, null, T(l2.items, (s3, u2) => (e(), n("div", { key: u2, class: a(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [u2 % 2 == 0 ? "bg-gray-50" : "bg-white"]]) }, [i("dt", ji, P(s3.title), 1), "tag" === s3.type ? (e(), n("dd", Ei, [r(Na, { color: s3.color }, { default: D(() => [M(P(s3.text), 1)]), _: 2 }, 1032, ["color"])])) : "tags" === s3.type ? (e(), n("dd", Li, [(e(true), n(c, null, T(s3.tags, (a2, n2) => (e(), t(Na, { loading: l2.loading, key: n2, color: a2.color, class: "mr-2 mb-2" }, { default: D(() => [M(P(a2.text), 1)]), _: 2 }, 1032, ["loading", "color"]))), 128))])) : "link" === s3.type ? (e(), n("dd", { key: 2, class: "mt-1 text-sm text-indigo-600 hover:text-indigo-400 sm:col-span-2 sm:mt-0 cursor-pointer", onClick: (e2) => o2.$emits(s3.emits) }, P(s3.text), 9, Bi)) : (e(), n("dd", Ii, P(s3.text), 1))], 2))), 128))])])])) }), Yi = { key: 0 }, Vi = { class: "flex flex-col" }, qi = { class: "-my-2 overflow-x-auto" }, Ui = { class: "inline-block min-w-full py-2 align-middle px-1" }, zi = { class: "relative overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg" }, Wi = { 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" }, Ki = ["onClick"], Ji = { class: "min-w-full table-fixed divide-y divide-gray-300" }, Gi = { class: "bg-gray-50" }, Xi = ["checked", "indeterminate"], Qi = ["onClick"], Zi = [i("svg", { class: "h-4 w-4", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true" }, [i("path", { "fill-rule": "evenodd", d: "M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z", "clip-rule": "evenodd" })], -1)], es = { key: 1, class: "group flex items-center uppercase text-xs" }, ts = { class: "divide-y divide-gray-200 bg-white" }, ls = { key: 0, class: "absolute inset-y-0 left-0 w-0.5 bg-indigo-600" }, as = ["value"], ns = ["onClick"], rs = { key: 2 }, os = { name: "uiTable" }, is = Object.assign(os, { props: { header: { type: Array, required: true }, items: { type: Array, required: true }, orderedBy: String, actions: Array, loading: { type: Boolean, default: true } }, emits: ["tableAction", "orderBy"], setup(l2, { emit: r2 }) {
1918
1915
  const o2 = l2;
1919
1916
  let u2 = s([]);
1920
1917
  s(false);
1921
1918
  const d2 = y(() => u2.value.length > 0 && u2.value.length < o2.items.length);
1922
1919
  return (o3, s2) => {
1923
1920
  var _a2, _b;
1924
- return l2.loading ? (e(), t(Lr, { key: 1 })) : (e(), n("div", Vi, [i("div", qi, [i("div", Ui, [i("div", zi, [i("div", Wi, [((_a2 = C(u2)) == null ? void 0 : _a2.length) > 0 && ((_b = l2.actions) == null ? void 0 : _b.length) > 0 ? (e(), n("div", Ki, [(e(true), n(c, null, T(l2.actions, (t2, l3) => (e(), n("button", { onClick: (e2) => r2("tableAction", { action: t2.id, items: C(u2) }), key: l3, type: "button", class: "inline-flex items-center rounded bg-indigo-600 hover:bg-indigo-800 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm disabled:cursor-not-allowed disabled:opacity-30" }, P(t2.name), 9, Ji))), 128))])) : j("", true), i("table", Gi, [i("thead", Xi, [i("tr", null, [i("th", { scope: "col", class: a([l2.actions ? "px-6 sm:px-8" : "px-3", "relative"]) }, [l2.actions ? (e(), n("input", { key: 0, checked: d2.value || C(u2).length === l2.items.length, indeterminate: d2.value, class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500", type: "checkbox", onChange: s2[0] || (s2[0] = (e2) => $(u2) ? u2.value = e2.target.checked ? l2.items.map((e3) => e3.id) : [] : u2 = e2.target.checked ? l2.items.map((e3) => e3.id) : []) }, null, 40, Qi)) : j("", true)], 2), (e(true), n(c, null, T(l2.header, (t2, o4) => (e(), n("th", { key: o4, class: "py-3.5 pr-3 text-left font-semibold text-gray-900 flex-wrap", scope: "col" }, [t2.value ? (e(), n("button", { key: 0, class: "group flex items-center uppercase text-xs", onClick: (e2) => r2("orderBy", t2.value) }, [i("span", null, P(t2.name), 1), i("span", { class: a([[t2.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"]) }, es, 2)], 8, Zi)) : (e(), n("p", ts, [i("span", null, P(t2.name), 1)]))]))), 128))])]), i("tbody", ls, [(e(true), n(c, null, T(l2.items, (o4, d3) => {
1921
+ return l2.loading ? (e(), t(Er, { key: 1 })) : (e(), n("div", Yi, [i("div", Vi, [i("div", qi, [i("div", Ui, [i("div", zi, [((_a2 = C(u2)) == null ? void 0 : _a2.length) > 0 && ((_b = l2.actions) == null ? void 0 : _b.length) > 0 ? (e(), n("div", Wi, [(e(true), n(c, null, T(l2.actions, (t2, l3) => (e(), n("button", { onClick: (e2) => r2("tableAction", { action: t2.id, items: C(u2) }), key: l3, type: "button", class: "inline-flex items-center rounded bg-indigo-600 hover:bg-indigo-800 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm disabled:cursor-not-allowed disabled:opacity-30" }, P(t2.name), 9, Ki))), 128))])) : j("", true), i("table", Ji, [i("thead", Gi, [i("tr", null, [i("th", { scope: "col", class: a([l2.actions ? "px-6 sm:px-8" : "px-3", "relative"]) }, [l2.actions ? (e(), n("input", { key: 0, checked: d2.value || C(u2).length === l2.items.length, indeterminate: d2.value, class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500", type: "checkbox", onChange: s2[0] || (s2[0] = (e2) => $(u2) ? u2.value = e2.target.checked ? l2.items.map((e3) => e3.id) : [] : u2 = e2.target.checked ? l2.items.map((e3) => e3.id) : []) }, null, 40, Xi)) : j("", true)], 2), (e(true), n(c, null, T(l2.header, (t2, o4) => (e(), n("th", { key: o4, class: "py-3.5 pr-3 text-left font-semibold text-gray-900 flex-wrap", scope: "col" }, [t2.value ? (e(), n("button", { key: 0, class: "group flex items-center uppercase text-xs", onClick: (e2) => r2("orderBy", t2.value) }, [i("span", null, P(t2.name), 1), i("span", { class: a([[t2.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"]) }, Zi, 2)], 8, Qi)) : (e(), n("p", es, [i("span", null, P(t2.name), 1)]))]))), 128))])]), i("tbody", ts, [(e(true), n(c, null, T(l2.items, (o4, d3) => {
1925
1922
  var _a3, _b2;
1926
- return e(), n("tr", { key: o4.id, class: a([C(u2).includes(o4.id) && "bg-gray-50", d3 % 2 == 0 ? void 0 : "bg-gray-50"]) }, [i("td", { class: a([((_a3 = l2.actions) == null ? void 0 : _a3.length) > 0 ? "w-2" : "w-0", "relative"]) }, [C(u2).includes(o4.id) ? (e(), n("div", as)) : j("", true), ((_b2 = l2.actions) == null ? void 0 : _b2.length) > 0 ? E((e(), n("input", { key: 1, "onUpdate:modelValue": s2[1] || (s2[1] = (e2) => $(u2) ? u2.value = e2 : u2 = e2), value: o4.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, ns)), [[N, C(u2)]]) : j("", true)], 2), (e(true), n(c, null, T(o4.row, (i2, s3) => (e(), n("td", { key: s3, class: a(["whitespace-nowrap py-4 pr-3 text-sm uppercase text-xs", C(u2).includes(o4.id) ? "text-indigo-600" : "text-gray-900"]) }, ["object" == typeof i2 && "tag" === i2.type ? (e(), t($a, { key: 0, loading: l2.loading, color: i2.color }, { default: D(() => [M(P(i2.content), 1)]), _: 2 }, 1032, ["loading", "color"])) : "object" == typeof i2 && "link" === i2.type ? (e(), n("span", { key: 1, class: "text-indigo-600 hover:text-indigo-400 cursor-pointer", onClick: (e2) => r2(i2.emits, { id: o4.id, data: (o4 == null ? void 0 : o4.emitWith) || null }) }, P(i2.content), 9, rs)) : (e(), n("span", os, P(i2), 1))], 2))), 128))], 2);
1923
+ return e(), n("tr", { key: o4.id, class: a([C(u2).includes(o4.id) && "bg-gray-50", d3 % 2 == 0 ? void 0 : "bg-gray-50"]) }, [i("td", { class: a([((_a3 = l2.actions) == null ? void 0 : _a3.length) > 0 ? "w-2" : "w-0", "relative"]) }, [C(u2).includes(o4.id) ? (e(), n("div", ls)) : j("", true), ((_b2 = l2.actions) == null ? void 0 : _b2.length) > 0 ? E((e(), n("input", { key: 1, "onUpdate:modelValue": s2[1] || (s2[1] = (e2) => $(u2) ? u2.value = e2 : u2 = e2), value: o4.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, as)), [[N, C(u2)]]) : j("", true)], 2), (e(true), n(c, null, T(o4.row, (i2, s3) => (e(), n("td", { key: s3, class: a(["whitespace-nowrap py-4 pr-3 text-sm uppercase text-xs", C(u2).includes(o4.id) ? "text-indigo-600" : "text-gray-900"]) }, ["object" == typeof i2 && "tag" === i2.type ? (e(), t(Na, { key: 0, loading: l2.loading, color: i2.color }, { default: D(() => [M(P(i2.content), 1)]), _: 2 }, 1032, ["loading", "color"])) : "object" == typeof i2 && "link" === i2.type ? (e(), n("span", { key: 1, class: "text-indigo-600 hover:text-indigo-400 cursor-pointer", onClick: (e2) => r2(i2.emits, { id: o4.id, data: (o4 == null ? void 0 : o4.emitWith) || null }) }, P(i2.content), 9, ns)) : (e(), n("span", rs, P(i2), 1))], 2))), 128))], 2);
1927
1924
  }), 128))])])])])])])]));
1928
1925
  };
1929
- } }), us = { class: "lg:hidden" }, ds = ["value"], cs = { class: "hidden lg:block" }, ps = { class: "border-b border-gray-200" }, gs = { class: "-mb-px flex space-x-8", "aria-label": "Tabs" }, ms = ["onClick", "aria-current"], fs = { name: "uiTabs" }, vs = Object.assign(fs, { props: { tabs: Array }, emits: ["tabClicked"], setup: (t2, { emit: l2 }) => (r2, o2) => (e(), n("div", null, [i("div", us, [i("select", { onChange: o2[0] || (o2[0] = (e2) => {
1926
+ } }), ss = { class: "lg:hidden" }, us = ["value"], ds = { class: "hidden lg:block" }, cs = { class: "border-b border-gray-200" }, ps = { class: "-mb-px flex space-x-8", "aria-label": "Tabs" }, gs = ["onClick", "aria-current"], fs = { name: "uiTabs" }, ms = Object.assign(fs, { props: { tabs: Array }, emits: ["tabClicked"], setup: (t2, { emit: l2 }) => (r2, o2) => (e(), n("div", null, [i("div", ss, [i("select", { onChange: o2[0] || (o2[0] = (e2) => {
1930
1927
  l2("tabClicked", e2.target.value);
1931
- }), id: "tabs", name: "tabs", class: "block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm" }, [(e(true), n(c, null, T(t2.tabs, (t3) => (e(), n("option", { value: t3.id, key: t3.name }, P(t3.name), 9, ds))), 128))], 32)]), i("div", cs, [i("div", ps, [i("nav", gs, [(e(true), n(c, null, T(t2.tabs, (t3) => (e(), n("a", { key: t3.name, onClick: (e2) => l2("tabClicked", t3.id), class: a([t3.current ? "border-indigo-500 text-indigo-600" : "border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-200", "whitespace-nowrap flex py-4 px-1 border-b-2 font-medium text-sm cursor-pointer"]), "aria-current": t3.current ? "page" : void 0 }, [M(P(t3.name) + " ", 1), t3.count ? (e(), n("span", { key: 0, class: a([t3.current ? "bg-indigo-100 text-indigo-600" : "bg-gray-100 text-gray-900", "hidden ml-3 py-0.5 px-2.5 rounded-full text-xs font-medium md:inline-block"]) }, P(t3.count), 3)) : j("", true)], 10, ms))), 128))])])])])) }), ys = { key: 0, class: "bg-white overflow-hidden shadow rounded-lg" }, bs = { class: "px-4 py-5 sm:px-6" }, hs = { class: "text-xl font-bold" }, xs = { class: "px-4 py-5 sm:p-6" }, ws = { class: "flow-root" }, ks = { class: "-mb-8", role: "list" }, Ss = { class: "relative pb-8" }, Cs = { key: 0, class: "absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200", "aria-hidden": "true" }, Os = { class: "relative flex space-x-3" }, Ds = { class: "min-w-0 flex-1 pt-1.5 flex justify-between space-x-4 items-center" }, Ms = { class: "text-sm text-gray-500" }, Ps = ["onClick"], _s = { class: "text-right text-sm whitespace-nowrap text-gray-500" }, Ts = ["datetime"], js = { class: "bg-gray-50 px-4 py-4 sm:px-6 z-10" }, Es = { class: "text-sm" }, Ls = { key: 1, class: "bg-white overflow-hidden shadow rounded-lg" }, Bs = 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), Is = { class: "px-4 py-5 sm:p-6 animate-pulse" }, Rs = { class: "flow-root" }, Fs = { class: "-mb-8", role: "list" }, As = { class: "relative pb-8" }, Ns = { key: 0, class: "absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200", "aria-hidden": "true" }, $s = F('<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), Hs = 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), Ys = { name: "uiTimeline" }, Vs = Object.assign(Ys, { props: { name: { type: String, required: true }, timeline: { type: Object }, loading: { type: Boolean, default: true } }, setup: (t2) => (l2, o2) => t2.loading ? (e(), n("div", Ls, [Bs, i("div", Is, [i("div", Rs, [i("ul", Fs, [(e(), n(c, null, T(10, (t3) => i("li", { key: l2.index }, [i("div", As, [10 !== t3 ? (e(), n("span", Ns)) : j("", true), $s])])), 64))])])]), Hs])) : (e(), n("div", ys, [i("div", bs, [i("h1", hs, P(t2.name), 1)]), i("div", xs, [i("div", ws, [i("ul", ks, [(e(true), n(c, null, T(t2.timeline.items, (o3, s2) => (e(), n("li", { key: s2 }, [i("div", Ss, [s2 !== t2.timeline.items.length - 1 ? (e(), n("span", Cs)) : j("", true), i("div", Os, [i("div", null, [i("span", { class: a([o3.iconBackground, "h-8 w-8 rounded-full flex items-center justify-center ring-4 ring-white"]) }, [r(U, { loading: t2.loading, icon: o3.icon, "aria-hidden": "true", class: "h-5 w-5 text-white", color: "white" }, null, 8, ["loading", "icon"])], 2)]), i("div", Ds, [i("div", null, [i("p", Ms, [i("a", { onClick: (e2) => l2.$emit("timelineEventClicked", o3.linkId), class: "font-medium text-indigo-600 hover:text-indigo-800 cursor-pointer" }, P(o3.target), 9, Ps), M(" " + P(o3.content), 1)])]), i("div", _s, [i("time", { datetime: o3.datetime }, P(o3.date), 9, Ts)])])])])]))), 128))])])]), i("div", js, [i("div", Es, [i("a", { class: "cursor-pointer font-medium text-indigo-600 hover:text-indigo-500", onClick: o2[0] || (o2[0] = (e2) => l2.$emit("timelineFooterClicked", t2.timeline.id)) }, P(t2.timeline.footerText), 1)])])])) }), qs = { name: "uiTopbar", props: ["navigation", "logo", "profileMenu", "brand", "accountLogo", "alerted"], components: { Disclosure: ll, DisclosureButton: al, DisclosurePanel: nl, Menu: pl, MenuButton: gl, MenuItem: fl, MenuItems: ml, Bars3Icon: function(t2, l2) {
1928
+ }), id: "tabs", name: "tabs", class: "block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm" }, [(e(true), n(c, null, T(t2.tabs, (t3) => (e(), n("option", { value: t3.id, key: t3.name }, P(t3.name), 9, us))), 128))], 32)]), i("div", ds, [i("div", cs, [i("nav", ps, [(e(true), n(c, null, T(t2.tabs, (t3) => (e(), n("a", { key: t3.name, onClick: (e2) => l2("tabClicked", t3.id), class: a([t3.current ? "border-indigo-500 text-indigo-600" : "border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-200", "whitespace-nowrap flex py-4 px-1 border-b-2 font-medium text-sm cursor-pointer"]), "aria-current": t3.current ? "page" : void 0 }, [M(P(t3.name) + " ", 1), t3.count ? (e(), n("span", { key: 0, class: a([t3.current ? "bg-indigo-100 text-indigo-600" : "bg-gray-100 text-gray-900", "hidden ml-3 py-0.5 px-2.5 rounded-full text-xs font-medium md:inline-block"]) }, P(t3.count), 3)) : j("", true)], 10, gs))), 128))])])])])) }), vs = { key: 0, class: "bg-white overflow-hidden shadow rounded-lg" }, ys = { class: "px-4 py-5 sm:px-6" }, bs = { class: "text-xl font-bold" }, hs = { class: "px-4 py-5 sm:p-6" }, xs = { class: "flow-root" }, ws = { class: "-mb-8", role: "list" }, ks = { class: "relative pb-8" }, Ss = { key: 0, class: "absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200", "aria-hidden": "true" }, Cs = { class: "relative flex space-x-3" }, Os = { class: "min-w-0 flex-1 pt-1.5 flex justify-between space-x-4 items-center" }, Ds = { class: "text-sm text-gray-500" }, Ms = ["onClick"], Ps = { class: "text-right text-sm whitespace-nowrap text-gray-500" }, _s = ["datetime"], Ts = { class: "bg-gray-50 px-4 py-4 sm:px-6 z-10" }, js = { class: "text-sm" }, Es = { key: 1, class: "bg-white overflow-hidden shadow rounded-lg" }, Ls = 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), Bs = { class: "px-4 py-5 sm:p-6 animate-pulse" }, Is = { class: "flow-root" }, Rs = { class: "-mb-8", role: "list" }, Fs = { class: "relative pb-8" }, As = { key: 0, class: "absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200", "aria-hidden": "true" }, Ns = F('<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), $s = 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), Hs = { name: "uiTimeline" }, Ys = Object.assign(Hs, { props: { name: { type: String, required: true }, timeline: { type: Object }, loading: { type: Boolean, default: true } }, setup: (t2) => (l2, o2) => t2.loading ? (e(), n("div", Es, [Ls, i("div", Bs, [i("div", Is, [i("ul", Rs, [(e(), n(c, null, T(10, (t3) => i("li", { key: l2.index }, [i("div", Fs, [10 !== t3 ? (e(), n("span", As)) : j("", true), Ns])])), 64))])])]), $s])) : (e(), n("div", vs, [i("div", ys, [i("h1", bs, P(t2.name), 1)]), i("div", hs, [i("div", xs, [i("ul", ws, [(e(true), n(c, null, T(t2.timeline.items, (o3, s2) => (e(), n("li", { key: s2 }, [i("div", ks, [s2 !== t2.timeline.items.length - 1 ? (e(), n("span", Ss)) : j("", true), i("div", Cs, [i("div", null, [i("span", { class: a([o3.iconBackground, "h-8 w-8 rounded-full flex items-center justify-center ring-4 ring-white"]) }, [r(U, { loading: t2.loading, icon: o3.icon, "aria-hidden": "true", class: "h-5 w-5 text-white", color: "white" }, null, 8, ["loading", "icon"])], 2)]), i("div", Os, [i("div", null, [i("p", Ds, [i("a", { onClick: (e2) => l2.$emit("timelineEventClicked", o3.linkId), class: "font-medium text-indigo-600 hover:text-indigo-800 cursor-pointer" }, P(o3.target), 9, Ms), M(" " + P(o3.content), 1)])]), i("div", Ps, [i("time", { datetime: o3.datetime }, P(o3.date), 9, _s)])])])])]))), 128))])])]), i("div", Ts, [i("div", js, [i("a", { class: "cursor-pointer font-medium text-indigo-600 hover:text-indigo-500", onClick: o2[0] || (o2[0] = (e2) => l2.$emit("timelineFooterClicked", t2.timeline.id)) }, P(t2.timeline.footerText), 1)])])])) }), Vs = { name: "uiTopbar", props: ["navigation", "logo", "profileMenu", "brand", "accountLogo", "alerted"], components: { Disclosure: ll, DisclosureButton: al, DisclosurePanel: nl, Menu: pl, MenuButton: gl, MenuItem: ml, MenuItems: fl, Bars3Icon: function(t2, l2) {
1932
1929
  return e(), n("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", "aria-hidden": "true" }, [i("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5" })]);
1933
- }, XMarkIcon: Ql } }, Us = { class: "mx-auto px-4 sm:px-6 lg:px-8" }, zs = { class: "flex justify-between h-20" }, Ws = { class: "flex" }, Ks = { class: "-ml-2 mr-2 flex items-center lg:hidden" }, Js = i("span", { class: "sr-only" }, "Open main menu", -1), Gs = ["src"], Xs = { class: "flex items-center" }, Qs = { class: "md:ml-4 md:flex-shrink-0 md:flex md:items-center" }, Zs = { class: "redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute -top-0 -left-1" }, eu = [i("span", { class: "animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75" }, null, -1)], tu = ["src"], lu = ["onClick"], au = { class: "pt-2 pb-3 space-y-1" }, nu = ["onClick"], ru = { class: "pt-4 pb-3 border-t border-gray-200" }, ou = { class: "flex items-center px-4 sm:px-6" }, iu = { class: "flex-shrink-0" }, su = ["src"], uu = { key: 0, class: "ml-3" }, du = { class: "text-base font-medium text-gray-800" }, cu = { class: "text-sm font-medium text-gray-500" }, pu = { class: "mt-3 space-y-1" }, gu = ["onClick"];
1934
- const mu = yr(qs, [["render", function(l2, o2, s2, u2, d2, p2) {
1935
- const g2 = A("Bars3Icon"), m2 = A("XMarkIcon"), f2 = A("DisclosureButton"), v2 = A("MenuButton"), y2 = A("MenuItem"), b2 = A("MenuItems"), h2 = A("Menu"), x2 = A("DisclosurePanel"), w2 = A("Disclosure");
1936
- return e(), t(w2, { as: "nav", class: "bg-white shadow" }, { default: D(({ open: u3 }) => [i("div", Us, [i("div", zs, [i("div", Ws, [i("div", Ks, [r(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(() => [Js, u3 ? (e(), t(m2, { key: 1, class: "block h-6 w-6", "aria-hidden": "true" })) : (e(), t(g2, { key: 0, class: "block h-6 w-6", "aria-hidden": "true" }))]), _: 2 }, 1024)]), i("div", { class: "flex-shrink-0 flex items-center cursor-pointer", onClick: o2[0] || (o2[0] = (e2) => l2.$emit("topBarClick", "logo")) }, [i("img", { class: "h-10", src: s2.logo, alt: "Hotelinking suite product logo" }, null, 8, Gs)])]), i("div", Xs, [i("div", Qs, [r(h2, { as: "div", class: "ml-3 relative" }, { default: D(() => [i("div", null, [E(r(v2, { class: "bg-white rounded-full flex text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 relative" }, { default: D(() => [E(i("div", Zs, eu, 512), [[B, s2.alerted]]), i("img", { class: "h-10 w-10 rounded-full", src: s2.accountLogo }, null, 8, tu)]), _: 1 }, 512), [[B, s2.accountLogo]])]), r(_, { "enter-active-class": "transition ease-out duration-200", "enter-from-class": "transform opacity-0 scale-95", "enter-to-class": "transform opacity-100 scale-100", "leave-active-class": "transition ease-in duration-75", "leave-from-class": "transform opacity-100 scale-100", "leave-to-class": "transform opacity-0 scale-95" }, { default: D(() => [r(b2, { class: "origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg py-1 bg-white ring-1 ring-black ring-opacity-5 focus:outline-none" }, { default: D(() => [(e(true), n(c, null, T(s2.profileMenu, (n2) => (e(), t(y2, { key: n2.name }, { default: D(({ active: e2 }) => [i("p", { onClick: (e3) => l2.$emit("topBarClick", n2.id), class: a(["cursor-pointer", [e2 ? "bg-gray-100" : "", "block px-4 py-2 text-sm text-gray-700"]]) }, P(n2.name), 11, lu)]), _: 2 }, 1024))), 128))]), _: 1 })]), _: 1 })]), _: 1 })])])])]), r(x2, { class: "lg:hidden" }, { default: D(() => [i("div", au, [(e(true), n(c, null, T(s2.navigation, (n2) => (e(), t(f2, { as: "template", key: n2.name, class: a(["block pl-3 pr-4 py-2 border-l-4 text-base font-medium sm:pl-5 sm:pr-6", { "bg-indigo-50 border-indigo-500 text-indigo-700": n2.current && true === n2.current, "border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700": !n2.current }]) }, { default: D(() => [i("p", { onClick: (e2) => l2.$emit("topBarClick", n2.id) }, P(n2.name), 9, nu)]), _: 2 }, 1032, ["class"]))), 128))]), i("div", ru, [i("div", ou, [i("div", iu, [i("img", { class: "h-10 w-10 rounded-full", src: s2.accountLogo }, null, 8, su)]), s2.brand ? (e(), n("div", uu, [i("div", du, P(s2.brand.title), 1), i("div", cu, P(s2.brand.subtitle), 1)])) : j("", true)]), i("div", pu, [(e(true), n(c, null, T(s2.profileMenu, (a2) => (e(), t(f2, { as: "template", key: a2.name, class: "block px-4 py-2 text-base font-medium text-gray-500 hover:text-gray-800 hover:bg-gray-100 sm:px-6" }, { default: D(() => [i("p", { onClick: (e2) => l2.$emit("topBarClick", a2.id) }, P(a2.name), 9, gu)]), _: 2 }, 1024))), 128))])])]), _: 1 })]), _: 1 });
1937
- }]]), fu = { class: "chart-header flex flex-row justify-between" }, vu = { class: "text-sm font-medium text-gray-500 truncate" }, yu = { class: "chart-selector flex flex-row items-center justify-center" }, bu = { class: "chart-content pt-6" }, hu = { class: "card chart funnel-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-full" }, xu = [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("svg", { class: "w-80 h-full mx-auto animate-pulse fill-gray-300 grow", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 386 333.828" }, [i("path", { d: "M193,333.828V0H386s0,156.045-83.854,204.954S214.3,333.828,214.3,333.828Zm-21.3,0s-3.993-79.964-87.848-128.873S0,0,0,0H193V333.828Z" })])], -1)], wu = { name: "uiFunnelChart" }, ku = Object.assign(wu, { props: { title: String, labels: { type: Array, required: true }, subLabels: { type: Array, required: true }, values: { type: Array, required: true }, loading: { type: Boolean, default: true } }, emits: ["selectedRange", "chartUpdated"], setup(l2, { emit: r2 }) {
1938
- const o2 = s("24h"), u2 = s(null), d2 = [["#725CFF", "#C9C4EB"], ["#00FFFF", "#D6FFFF"], ["#aba9ba", "#f5f4ff"]], p2 = s(0), g2 = s(0), f2 = (e2) => {
1930
+ }, XMarkIcon: Xl } }, qs = { class: "mx-auto px-6 lg:px-8" }, Us = { class: "flex justify-between h-20" }, zs = { class: "flex" }, Ws = { class: "-ml-2 mr-2 flex items-center lg:hidden" }, Ks = i("span", { class: "sr-only" }, "Open main menu", -1), Js = ["src"], Gs = { class: "flex items-center" }, Xs = { class: "md:ml-4 md:flex-shrink-0 md:flex md:items-center" }, Qs = { class: "redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute -top-0 -left-1" }, Zs = [i("span", { class: "animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75" }, null, -1)], eu = ["src"], tu = ["onClick"], lu = { class: "pt-2 pb-3 space-y-1" }, au = ["onClick"], nu = { class: "pt-4 pb-3 border-t border-gray-200" }, ru = { class: "flex items-center px-4 sm:px-6" }, ou = { class: "flex-shrink-0" }, iu = ["src"], su = { key: 0, class: "ml-3" }, uu = { class: "text-base font-medium text-gray-800" }, du = { class: "text-sm font-medium text-gray-500" }, cu = { class: "mt-3 space-y-1" }, pu = ["onClick"];
1931
+ const gu = vr(Vs, [["render", function(l2, o2, s2, u2, d2, p2) {
1932
+ const g2 = A("Bars3Icon"), f2 = A("XMarkIcon"), m2 = A("DisclosureButton"), v2 = A("MenuButton"), y2 = A("MenuItem"), b2 = A("MenuItems"), h2 = A("Menu"), x2 = A("DisclosurePanel"), w2 = A("Disclosure");
1933
+ return e(), t(w2, { as: "nav", class: "bg-white shadow" }, { default: D(({ open: u3 }) => [i("div", qs, [i("div", Us, [i("div", zs, [i("div", Ws, [r(m2, { class: "inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500" }, { default: D(() => [Ks, u3 ? (e(), t(f2, { key: 1, class: "block h-6 w-6", "aria-hidden": "true" })) : (e(), t(g2, { key: 0, class: "block h-6 w-6", "aria-hidden": "true" }))]), _: 2 }, 1024)]), i("div", { class: "flex-shrink-0 flex items-center cursor-pointer", onClick: o2[0] || (o2[0] = (e2) => l2.$emit("topBarClick", "logo")) }, [i("img", { class: "h-10", src: s2.logo, alt: "Hotelinking suite product logo" }, null, 8, Js)])]), i("div", Gs, [i("div", Xs, [r(h2, { as: "div", class: "ml-3 relative" }, { default: D(() => [i("div", null, [E(r(v2, { class: "bg-white rounded-full flex text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 relative" }, { default: D(() => [E(i("div", Qs, Zs, 512), [[B, s2.alerted]]), i("img", { class: "h-10 w-10 rounded-full", src: s2.accountLogo }, null, 8, eu)]), _: 1 }, 512), [[B, s2.accountLogo]])]), r(_, { "enter-active-class": "transition ease-out duration-200", "enter-from-class": "transform opacity-0 scale-95", "enter-to-class": "transform opacity-100 scale-100", "leave-active-class": "transition ease-in duration-75", "leave-from-class": "transform opacity-100 scale-100", "leave-to-class": "transform opacity-0 scale-95" }, { default: D(() => [r(b2, { class: "origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg py-1 bg-white ring-1 ring-black ring-opacity-5 focus:outline-none" }, { default: D(() => [(e(true), n(c, null, T(s2.profileMenu, (n2) => (e(), t(y2, { key: n2.name }, { default: D(({ active: e2 }) => [i("p", { onClick: (e3) => l2.$emit("topBarClick", n2.id), class: a(["cursor-pointer", [e2 ? "bg-gray-100" : "", "block px-4 py-2 text-sm text-gray-700"]]) }, P(n2.name), 11, tu)]), _: 2 }, 1024))), 128))]), _: 1 })]), _: 1 })]), _: 1 })])])])]), r(x2, { class: "lg:hidden" }, { default: D(() => [i("div", lu, [(e(true), n(c, null, T(s2.navigation, (n2) => (e(), t(m2, { as: "template", key: n2.name, class: a(["block pl-3 pr-4 py-2 border-l-4 text-base font-medium sm:pl-5 sm:pr-6", { "bg-indigo-50 border-indigo-500 text-indigo-700": n2.current && true === n2.current, "border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700": !n2.current }]) }, { default: D(() => [i("p", { onClick: (e2) => l2.$emit("topBarClick", n2.id) }, P(n2.name), 9, au)]), _: 2 }, 1032, ["class"]))), 128))]), i("div", nu, [i("div", ru, [i("div", ou, [i("img", { class: "h-10 w-10 rounded-full", src: s2.accountLogo }, null, 8, iu)]), s2.brand ? (e(), n("div", su, [i("div", uu, P(s2.brand.title), 1), i("div", du, P(s2.brand.subtitle), 1)])) : j("", true)]), i("div", cu, [(e(true), n(c, null, T(s2.profileMenu, (a2) => (e(), t(m2, { as: "template", key: a2.name, class: "block px-4 py-2 text-base font-medium text-gray-500 hover:text-gray-800 hover:bg-gray-100 sm:px-6" }, { default: D(() => [i("p", { onClick: (e2) => l2.$emit("topBarClick", a2.id) }, P(a2.name), 9, pu)]), _: 2 }, 1024))), 128))])])]), _: 1 })]), _: 1 });
1934
+ }]]), fu = { class: "h-full" }, mu = { class: "chart-header flex flex-row justify-between" }, vu = { class: "text-sm font-medium text-gray-500 truncate" }, yu = { class: "chart-selector flex flex-row items-center justify-center" }, bu = { class: "chart-content pt-6" }, hu = { class: "card chart funnel-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-full" }, xu = [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("svg", { class: "w-80 h-full mx-auto animate-pulse fill-gray-300 grow", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 386 333.828" }, [i("path", { d: "M193,333.828V0H386s0,156.045-83.854,204.954S214.3,333.828,214.3,333.828Zm-21.3,0s-3.993-79.964-87.848-128.873S0,0,0,0H193V333.828Z" })])], -1)], wu = { name: "uiFunnelChart" }, ku = Object.assign(wu, { props: { title: String, labels: { type: Array, required: true }, subLabels: { type: Array, required: true }, values: { type: Array, required: true }, loading: { type: Boolean, default: true } }, emits: ["selectedRange", "chartUpdated"], setup(l2, { emit: r2 }) {
1935
+ const o2 = s("24h"), u2 = s(null), d2 = [["#725CFF", "#C9C4EB"], ["#00FFFF", "#D6FFFF"], ["#aba9ba", "#f5f4ff"]], c2 = s(0), p2 = s(0), g2 = (e2) => {
1939
1936
  o2.value = e2, r2("selectedRange", e2);
1940
1937
  };
1941
- return m(() => {
1942
- u2.value.focus(), p2.value = u2.value.clientHeight - u2.value.clientHeight / 4, g2.value = u2.value.clientWidth - u2.value.clientHeight / 4;
1943
- }), (r3, s2) => (e(), n(c, null, [E(i("div", { class: "card chart funnel-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-full", ref_key: "funnelChart", ref: u2 }, [i("div", fu, [i("div", vu, P(l2.title), 1), i("ul", yu, [i("li", { class: a({ selected: "24h" === o2.value }), onClick: s2[0] || (s2[0] = (e2) => f2("24h")) }, " 24H ", 2), i("li", { class: a({ selected: "7d" === o2.value }), onClick: s2[1] || (s2[1] = (e2) => f2("7d")) }, " 7D ", 2), i("li", { class: a({ selected: "1m" === o2.value }), onClick: s2[2] || (s2[2] = (e2) => f2("1m")) }, " 1M ", 2), i("li", { class: a({ selected: "3m" === o2.value }), onClick: s2[3] || (s2[3] = (e2) => f2("3m")) }, " 3M ", 2)])]), i("div", bu, [g2.value > 0 && p2.value > 0 ? (e(), t(C(V), { key: 0, width: g2.value, height: p2.value, labels: l2.labels, values: l2.values, colors: d2, "sub-labels": l2.subLabels, direction: "vertical", "gradient-direction": "vertical", animated: true, "display-percentage": true }, null, 8, ["width", "height", "labels", "values", "sub-labels"])) : j("", true)])], 512), [[B, !l2.loading]]), E(i("div", hu, xu, 512), [[B, l2.loading]])], 64));
1944
- } }), Su = { uiButton: G, uiIcon: U, uiCheckbox: re, uiDropdown: na, uiInput: fa, uiInputFile: ja, uiSelect: Ra, uiTag: $a, uiTextArea: Wa, uiToggle: Za, uiAlert: cn, uiBreadcrumbs: wn, uiCard: Tn, uiFilter: En, uiModal: qn, uiNotification: lr, uiTaskList: fr, uiPriceCalendar: vo, uiChart: Po, uiFooter: Eo, uiLoadingScreen: Io, uiPagination: Xo, uiSidebar: pi, uiStats: Di, uiStripedCard: Yi, uiTable: ss, uiTabs: vs, uiTimeline: Vs, uiTopbar: mu, uiFunnelChart: ku }, Cu = { install(e2) {
1938
+ return f(() => {
1939
+ u2.value.focus(), c2.value = u2.value.clientHeight - u2.value.clientHeight / 4, p2.value = u2.value.clientWidth - u2.value.clientHeight / 4;
1940
+ }), (r3, s2) => (e(), n("div", fu, [E(i("div", { ref_key: "funnelChart", ref: u2, class: "card chart funnel-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-full" }, [i("div", mu, [i("div", vu, P(l2.title), 1), i("ul", yu, [i("li", { class: a({ selected: "24h" === o2.value }), onClick: s2[0] || (s2[0] = (e2) => g2("24h")) }, " 24H ", 2), i("li", { class: a({ selected: "7d" === o2.value }), onClick: s2[1] || (s2[1] = (e2) => g2("7d")) }, " 7D ", 2), i("li", { class: a({ selected: "1m" === o2.value }), onClick: s2[2] || (s2[2] = (e2) => g2("1m")) }, " 1M ", 2), i("li", { class: a({ selected: "3m" === o2.value }), onClick: s2[3] || (s2[3] = (e2) => g2("3m")) }, " 3M ", 2)])]), i("div", bu, [p2.value > 0 && c2.value > 0 ? (e(), t(C(V), { key: 0, width: p2.value, height: c2.value, labels: l2.labels, values: l2.values, colors: d2, "sub-labels": l2.subLabels, direction: "vertical", "gradient-direction": "vertical", animated: true, "display-percentage": true }, null, 8, ["width", "height", "labels", "values", "sub-labels"])) : j("", true)])], 512), [[B, !l2.loading]]), E(i("div", hu, xu, 512), [[B, l2.loading]])]));
1941
+ } }), Su = { uiButton: G, uiIcon: U, uiCheckbox: re, uiDropdown: aa, uiInput: fa, uiInputFile: Ta, uiSelect: Ia, uiTag: Na, uiTextArea: za, uiToggle: Qa, uiAlert: dn, uiBreadcrumbs: xn, uiCard: _n, uiFilter: jn, uiModal: Vn, uiNotification: tr, uiTaskList: fr, uiPriceCalendar: mo, uiChart: Mo, uiFooter: jo, uiLoadingScreen: Bo, uiPagination: Go, uiSidebar: ci, uiStats: Oi, uiStripedCard: Hi, uiTable: is, uiTabs: ms, uiTimeline: Ys, uiTopbar: gu, uiFunnelChart: ku }, Cu = { install(e2) {
1945
1942
  Object.keys(Su).forEach((t2) => {
1946
1943
  e2.component(t2, Su[t2]);
1947
1944
  });