@hotelinking/ui 5.39.16 → 5.39.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,4 +1,4 @@
1
- import { openBlock as e, createBlock as t, resolveDynamicComponent as l, normalizeClass as n, createElementBlock as a, createVNode as o, renderSlot as r, createElementVNode as i, ref as s, computed as d, unref as u, shallowRef as c, watch as p, triggerRef as g, onScopeDispose as f, onUnmounted as m, inject as v, nextTick as h, watchEffect as b, onMounted as y, cloneVNode as x, h as w, Fragment as k, defineComponent as S, provide as C, reactive as O, toRaw as M, getCurrentInstance as D, Teleport as E, withCtx as T, createTextVNode as I, toDisplayString as _, Transition as j, renderList as P, createCommentVNode as R, withDirectives as B, vModelDynamic as A, vShow as L, withModifiers as F, vModelText as N, createStaticVNode as z, resolveComponent as $, vModelCheckbox as V, isRef as H, TransitionGroup as Y } from "vue";
1
+ import { openBlock as e, createBlock as t, resolveDynamicComponent as l, normalizeClass as n, createElementBlock as a, createVNode as o, renderSlot as r, createElementVNode as i, ref as s, computed as d, unref as u, shallowRef as c, watch as p, triggerRef as g, onScopeDispose as f, onUnmounted as m, inject as v, nextTick as h, watchEffect as b, onMounted as y, cloneVNode as x, h as w, Fragment as k, defineComponent as S, provide as C, reactive as O, toRaw as M, getCurrentInstance as D, Teleport as T, withCtx as E, createTextVNode as I, toDisplayString as _, Transition as j, renderList as P, createCommentVNode as R, withDirectives as B, vModelDynamic as A, vShow as L, withModifiers as F, vModelText as N, createStaticVNode as z, resolveComponent as $, vModelCheckbox as V, isRef as H, TransitionGroup as Y } from "vue";
2
2
  import q from "dayjs";
3
3
  import U from "vue3-apexcharts";
4
4
  import W from "vue3-draggable";
@@ -17,13 +17,11 @@ function ce(e2, t2, l2) {
17
17
  let d2;
18
18
  l2.key && (null == (o2 = l2.debug) ? void 0 : o2.call(l2)) && (d2 = Date.now());
19
19
  const u2 = e2(), c2 = u2.length !== a2.length || u2.some((e3, t3) => a2[t3] !== e3);
20
- if (!c2)
21
- return n2;
20
+ if (!c2) return n2;
22
21
  let p2;
23
22
  if (a2 = u2, l2.key && (null == (r2 = l2.debug) ? void 0 : r2.call(l2)) && (p2 = Date.now()), n2 = t2(...u2), l2.key && (null == (i2 = l2.debug) ? void 0 : i2.call(l2))) {
24
23
  const e3 = Math.round(100 * (Date.now() - d2)) / 100, t3 = Math.round(100 * (Date.now() - p2)) / 100, n3 = t3 / 16, a3 = (e4, t4) => {
25
- for (e4 = String(e4); e4.length < t4; )
26
- e4 = " " + e4;
24
+ for (e4 = String(e4); e4.length < t4; ) e4 = " " + e4;
27
25
  return e4;
28
26
  };
29
27
  console.info(`%c⏱ ${a3(t3, 5)} /${a3(e3, 5)} ms`, `
@@ -35,8 +33,7 @@ function ce(e2, t2, l2) {
35
33
  };
36
34
  }
37
35
  function pe(e2, t2) {
38
- if (void 0 === e2)
39
- throw new Error("Unexpected undefined");
36
+ if (void 0 === e2) throw new Error("Unexpected undefined");
40
37
  return e2;
41
38
  }
42
39
  const ge = (e2, t2, l2) => {
@@ -46,29 +43,24 @@ const ge = (e2, t2, l2) => {
46
43
  };
47
44
  }, fe = (e2) => e2, me = (e2) => {
48
45
  const t2 = Math.max(e2.startIndex - e2.overscan, 0), l2 = Math.min(e2.endIndex + e2.overscan, e2.count - 1), n2 = [];
49
- for (let e3 = t2; e3 <= l2; e3++)
50
- n2.push(e3);
46
+ for (let e3 = t2; e3 <= l2; e3++) n2.push(e3);
51
47
  return n2;
52
48
  }, ve = (e2, t2) => {
53
49
  const l2 = e2.scrollElement;
54
- if (!l2)
55
- return;
50
+ if (!l2) return;
56
51
  const n2 = e2.targetWindow;
57
- if (!n2)
58
- return;
52
+ if (!n2) return;
59
53
  const a2 = (e3) => {
60
54
  const { width: l3, height: n3 } = e3;
61
55
  t2({ width: Math.round(l3), height: Math.round(n3) });
62
56
  };
63
- if (a2(l2.getBoundingClientRect()), !n2.ResizeObserver)
64
- return () => {
65
- };
57
+ if (a2(l2.getBoundingClientRect()), !n2.ResizeObserver) return () => {
58
+ };
66
59
  const o2 = new n2.ResizeObserver((e3) => {
67
60
  const t3 = e3[0];
68
61
  if (null == t3 ? void 0 : t3.borderBoxSize) {
69
62
  const e4 = t3.borderBoxSize[0];
70
- if (e4)
71
- return void a2({ width: e4.inlineSize, height: e4.blockSize });
63
+ if (e4) return void a2({ width: e4.inlineSize, height: e4.blockSize });
72
64
  }
73
65
  a2(l2.getBoundingClientRect());
74
66
  });
@@ -77,11 +69,9 @@ const ge = (e2, t2, l2) => {
77
69
  };
78
70
  }, he = { passive: true }, be = "undefined" == typeof window || "onscrollend" in window, ye = (e2, t2) => {
79
71
  const l2 = e2.scrollElement;
80
- if (!l2)
81
- return;
72
+ if (!l2) return;
82
73
  const n2 = e2.targetWindow;
83
- if (!n2)
84
- return;
74
+ if (!n2) return;
85
75
  let a2 = 0;
86
76
  const o2 = be ? () => {
87
77
  } : ge(n2, () => {
@@ -107,7 +97,7 @@ const ge = (e2, t2, l2) => {
107
97
  };
108
98
  class ke {
109
99
  constructor(e2) {
110
- this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = false, this.scrollToIndexTimeoutId = null, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.scrollDirection = null, this.scrollAdjustments = 0, this.measureElementCache = /* @__PURE__ */ new Map(), this.observer = /* @__PURE__ */ (() => {
100
+ this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = false, this.scrollToIndexTimeoutId = null, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this.elementsCache = /* @__PURE__ */ new Map(), this.observer = /* @__PURE__ */ (() => {
111
101
  let e3 = null;
112
102
  const t2 = () => e3 || (this.targetWindow && this.targetWindow.ResizeObserver ? e3 = new this.targetWindow.ResizeObserver((e4) => {
113
103
  e4.forEach((e5) => {
@@ -128,67 +118,76 @@ class ke {
128
118
  Object.entries(e3).forEach(([t2, l2]) => {
129
119
  void 0 === l2 && delete e3[t2];
130
120
  }), this.options = { debug: false, initialOffset: 0, overscan: 1, paddingStart: 0, paddingEnd: 0, scrollPaddingStart: 0, scrollPaddingEnd: 0, horizontal: false, getItemKey: fe, rangeExtractor: me, onChange: () => {
131
- }, measureElement: xe, initialRect: { width: 0, height: 0 }, scrollMargin: 0, gap: 0, indexAttribute: "data-index", initialMeasurementsCache: [], lanes: 1, isScrollingResetDelay: 150, ...e3 };
121
+ }, measureElement: xe, initialRect: { width: 0, height: 0 }, scrollMargin: 0, gap: 0, indexAttribute: "data-index", initialMeasurementsCache: [], lanes: 1, isScrollingResetDelay: 150, enabled: true, ...e3 };
132
122
  }, this.notify = (e3, t2) => {
133
123
  var l2, n2;
134
124
  const { startIndex: a2, endIndex: o2 } = this.range ?? { startIndex: void 0, endIndex: void 0 }, r2 = this.calculateRange();
135
125
  (e3 || a2 !== (null == r2 ? void 0 : r2.startIndex) || o2 !== (null == r2 ? void 0 : r2.endIndex)) && (null == (n2 = (l2 = this.options).onChange) || n2.call(l2, this, t2));
136
126
  }, this.cleanup = () => {
137
- this.unsubs.filter(Boolean).forEach((e3) => e3()), this.unsubs = [], this.scrollElement = null;
138
- }, this._didMount = () => (this.measureElementCache.forEach(this.observer.observe), () => {
139
- this.observer.disconnect(), this.cleanup();
140
- }), this._willUpdate = () => {
127
+ this.unsubs.filter(Boolean).forEach((e3) => e3()), this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.observer.disconnect(), this.elementsCache.clear();
128
+ }, this._didMount = () => () => {
129
+ this.cleanup();
130
+ }, this._willUpdate = () => {
141
131
  var e3;
142
- const t2 = this.options.getScrollElement();
143
- this.scrollElement !== t2 && (this.cleanup(), this.scrollElement = t2, this.scrollElement && "ownerDocument" in this.scrollElement ? this.targetWindow = this.scrollElement.ownerDocument.defaultView : this.targetWindow = (null == (e3 = this.scrollElement) ? void 0 : e3.window) ?? null, this._scrollToOffset(this.scrollOffset, { adjustments: void 0, behavior: void 0 }), this.unsubs.push(this.options.observeElementRect(this, (e4) => {
144
- this.scrollRect = e4, this.notify(false, false);
145
- })), this.unsubs.push(this.options.observeElementOffset(this, (e4, t3) => {
146
- this.scrollAdjustments = 0, this.scrollDirection = t3 ? this.scrollOffset < e4 ? "forward" : "backward" : null, this.scrollOffset = e4;
147
- const l2 = this.isScrolling;
148
- this.isScrolling = t3, this.notify(l2 !== t3, t3);
149
- })));
150
- }, this.getSize = () => this.scrollRect[this.options.horizontal ? "width" : "height"], this.getMeasurementOptions = ce(() => [this.options.count, this.options.paddingStart, this.options.scrollMargin, this.options.getItemKey], (e3, t2, l2, n2) => (this.pendingMeasuredCacheIndexes = [], { count: e3, paddingStart: t2, scrollMargin: l2, getItemKey: n2 }), { key: false }), this.getFurthestMeasurement = (e3, t2) => {
132
+ const t2 = this.options.enabled ? this.options.getScrollElement() : null;
133
+ if (this.scrollElement !== t2) {
134
+ if (this.cleanup(), !t2) return void this.notify(false, false);
135
+ this.scrollElement = t2, this.scrollElement && "ownerDocument" in this.scrollElement ? this.targetWindow = this.scrollElement.ownerDocument.defaultView : this.targetWindow = (null == (e3 = this.scrollElement) ? void 0 : e3.window) ?? null, this._scrollToOffset(this.getScrollOffset(), { adjustments: void 0, behavior: void 0 }), this.unsubs.push(this.options.observeElementRect(this, (e4) => {
136
+ this.scrollRect = e4, this.notify(false, false);
137
+ })), this.unsubs.push(this.options.observeElementOffset(this, (e4, t3) => {
138
+ this.scrollAdjustments = 0, this.scrollDirection = t3 ? this.getScrollOffset() < e4 ? "forward" : "backward" : null, this.scrollOffset = e4;
139
+ const l2 = this.isScrolling;
140
+ this.isScrolling = t3, this.notify(l2 !== t3, t3);
141
+ }));
142
+ }
143
+ }, this.getSize = () => this.options.enabled ? (this.scrollRect = this.scrollRect ?? this.options.initialRect, this.scrollRect[this.options.horizontal ? "width" : "height"]) : (this.scrollRect = null, 0), this.getScrollOffset = () => this.options.enabled ? (this.scrollOffset = this.scrollOffset ?? ("function" == typeof this.options.initialOffset ? this.options.initialOffset() : this.options.initialOffset), this.scrollOffset) : (this.scrollOffset = null, 0), this.getFurthestMeasurement = (e3, t2) => {
151
144
  const l2 = /* @__PURE__ */ new Map(), n2 = /* @__PURE__ */ new Map();
152
145
  for (let a2 = t2 - 1; a2 >= 0; a2--) {
153
146
  const t3 = e3[a2];
154
- if (l2.has(t3.lane))
155
- continue;
147
+ if (l2.has(t3.lane)) continue;
156
148
  const o2 = n2.get(t3.lane);
157
- if (null == o2 || t3.end > o2.end ? n2.set(t3.lane, t3) : t3.end < o2.end && l2.set(t3.lane, true), l2.size === this.options.lanes)
158
- break;
149
+ if (null == o2 || t3.end > o2.end ? n2.set(t3.lane, t3) : t3.end < o2.end && l2.set(t3.lane, true), l2.size === this.options.lanes) break;
159
150
  }
160
151
  return n2.size === this.options.lanes ? Array.from(n2.values()).sort((e4, t3) => e4.end === t3.end ? e4.index - t3.index : e4.end - t3.end)[0] : void 0;
161
- }, this.getMeasurements = ce(() => [this.getMeasurementOptions(), this.itemSizeCache], ({ count: e3, paddingStart: t2, scrollMargin: l2, getItemKey: n2 }, a2) => {
162
- const o2 = this.pendingMeasuredCacheIndexes.length > 0 ? Math.min(...this.pendingMeasuredCacheIndexes) : 0;
152
+ }, this.getMeasurementOptions = ce(() => [this.options.count, this.options.paddingStart, this.options.scrollMargin, this.options.getItemKey, this.options.enabled], (e3, t2, l2, n2, a2) => (this.pendingMeasuredCacheIndexes = [], { count: e3, paddingStart: t2, scrollMargin: l2, getItemKey: n2, enabled: a2 }), { key: false }), this.getMeasurements = ce(() => [this.getMeasurementOptions(), this.itemSizeCache], ({ count: e3, paddingStart: t2, scrollMargin: l2, getItemKey: n2, enabled: a2 }, o2) => {
153
+ var r2;
154
+ if (!a2) return this.measurementsCache = [], this.itemSizeCache.clear(), [];
155
+ 0 === this.measurementsCache.length && (this.measurementsCache = this.options.initialMeasurementsCache, this.measurementsCache.forEach((e4) => {
156
+ this.itemSizeCache.set(e4.key, e4.size);
157
+ }));
158
+ const i2 = this.pendingMeasuredCacheIndexes.length > 0 ? Math.min(...this.pendingMeasuredCacheIndexes) : 0;
163
159
  this.pendingMeasuredCacheIndexes = [];
164
- const r2 = this.measurementsCache.slice(0, o2);
165
- for (let i2 = o2; i2 < e3; i2++) {
166
- const e4 = n2(i2), o3 = 1 === this.options.lanes ? r2[i2 - 1] : this.getFurthestMeasurement(r2, i2), s2 = o3 ? o3.end + this.options.gap : t2 + l2, d2 = a2.get(e4), u2 = "number" == typeof d2 ? d2 : this.options.estimateSize(i2), c2 = s2 + u2, p2 = o3 ? o3.lane : i2 % this.options.lanes;
167
- r2[i2] = { index: i2, start: s2, size: u2, end: c2, key: e4, lane: p2 };
160
+ const s2 = this.measurementsCache.slice(0, i2);
161
+ for (let a3 = i2; a3 < e3; a3++) {
162
+ let e4 = null == (r2 = this.measurementsCache[a3]) ? void 0 : r2.measureElement;
163
+ e4 || (e4 = (e5) => {
164
+ const t3 = n2(a3), l3 = this.elementsCache.get(t3);
165
+ e5 ? (l3 !== e5 && (l3 && this.observer.unobserve(l3), this.observer.observe(e5), this.elementsCache.set(t3, e5)), e5.isConnected && this.resizeItem(a3, this.options.measureElement(e5, void 0, this))) : l3 && (this.observer.unobserve(l3), this.elementsCache.delete(t3));
166
+ });
167
+ const i3 = n2(a3), d2 = 1 === this.options.lanes ? s2[a3 - 1] : this.getFurthestMeasurement(s2, a3), u2 = d2 ? d2.end + this.options.gap : t2 + l2, c2 = o2.get(i3), p2 = "number" == typeof c2 ? c2 : this.options.estimateSize(a3), g2 = u2 + p2, f2 = d2 ? d2.lane : a3 % this.options.lanes;
168
+ s2[a3] = { index: a3, start: u2, size: p2, end: g2, key: i3, lane: f2, measureElement: e4 };
168
169
  }
169
- return this.measurementsCache = r2, r2;
170
- }, { key: "production" !== process.env.NODE_ENV && "getMeasurements", debug: () => this.options.debug }), this.calculateRange = ce(() => [this.getMeasurements(), this.getSize(), this.scrollOffset], (e3, t2, l2) => this.range = e3.length > 0 && t2 > 0 ? function({ measurements: e4, outerSize: t3, scrollOffset: l3 }) {
170
+ return this.measurementsCache = s2, s2;
171
+ }, { key: "production" !== process.env.NODE_ENV && "getMeasurements", debug: () => this.options.debug }), this.calculateRange = ce(() => [this.getMeasurements(), this.getSize(), this.getScrollOffset()], (e3, t2, l2) => this.range = e3.length > 0 && t2 > 0 ? function({ measurements: e4, outerSize: t3, scrollOffset: l3 }) {
171
172
  const n2 = e4.length - 1, a2 = (t4) => e4[t4].start, o2 = Se(0, n2, a2, l3);
172
173
  let r2 = o2;
173
- for (; r2 < n2 && e4[r2].end < l3 + t3; )
174
- r2++;
174
+ for (; r2 < n2 && e4[r2].end < l3 + t3; ) r2++;
175
175
  return { startIndex: o2, endIndex: r2 };
176
176
  }({ measurements: e3, outerSize: t2, scrollOffset: l2 }) : null, { key: "production" !== process.env.NODE_ENV && "calculateRange", debug: () => this.options.debug }), this.getIndexes = ce(() => [this.options.rangeExtractor, this.calculateRange(), this.options.overscan, this.options.count], (e3, t2, l2, n2) => null === t2 ? [] : e3({ startIndex: t2.startIndex, endIndex: t2.endIndex, overscan: l2, count: n2 }), { key: "production" !== process.env.NODE_ENV && "getIndexes", debug: () => this.options.debug }), this.indexFromElement = (e3) => {
177
177
  const t2 = this.options.indexAttribute, l2 = e3.getAttribute(t2);
178
178
  return l2 ? parseInt(l2, 10) : (console.warn(`Missing attribute name '${t2}={index}' on measured element.`), -1);
179
179
  }, this._measureElement = (e3, t2) => {
180
- const l2 = this.measurementsCache[this.indexFromElement(e3)];
181
- if (!l2 || !e3.isConnected)
182
- return void this.measureElementCache.forEach((t3, l3) => {
183
- t3 === e3 && (this.observer.unobserve(e3), this.measureElementCache.delete(l3));
184
- });
185
- const n2 = this.measureElementCache.get(l2.key);
186
- n2 !== e3 && (n2 && this.observer.unobserve(n2), this.observer.observe(e3), this.measureElementCache.set(l2.key, e3));
187
- const a2 = this.options.measureElement(e3, t2, this);
188
- this.resizeItem(l2, a2);
180
+ const l2 = this.indexFromElement(e3), n2 = this.getMeasurements()[l2];
181
+ if (!n2 || !e3.isConnected) return void this.elementsCache.forEach((t3, l3) => {
182
+ t3 === e3 && (this.observer.unobserve(e3), this.elementsCache.delete(l3));
183
+ });
184
+ const a2 = this.elementsCache.get(n2.key);
185
+ a2 !== e3 && (a2 && this.observer.unobserve(a2), this.observer.observe(e3), this.elementsCache.set(n2.key, e3)), this.resizeItem(l2, this.options.measureElement(e3, t2, this));
189
186
  }, this.resizeItem = (e3, t2) => {
190
- const l2 = t2 - (this.itemSizeCache.get(e3.key) ?? e3.size);
191
- 0 !== l2 && ((void 0 !== this.shouldAdjustScrollPositionOnItemSizeChange ? this.shouldAdjustScrollPositionOnItemSizeChange(e3, l2, this) : e3.start < this.scrollOffset + this.scrollAdjustments) && ("production" !== process.env.NODE_ENV && this.options.debug && console.info("correction", l2), this._scrollToOffset(this.scrollOffset, { adjustments: this.scrollAdjustments += l2, behavior: void 0 })), this.pendingMeasuredCacheIndexes.push(e3.index), this.itemSizeCache = new Map(this.itemSizeCache.set(e3.key, t2)), this.notify(true, false));
187
+ const l2 = this.getMeasurements()[e3];
188
+ if (!l2) return;
189
+ const n2 = t2 - (this.itemSizeCache.get(l2.key) ?? l2.size);
190
+ 0 !== n2 && ((void 0 !== this.shouldAdjustScrollPositionOnItemSizeChange ? this.shouldAdjustScrollPositionOnItemSizeChange(l2, n2, this) : l2.start < this.getScrollOffset() + this.scrollAdjustments) && ("production" !== process.env.NODE_ENV && this.options.debug && console.info("correction", n2), this._scrollToOffset(this.getScrollOffset(), { adjustments: this.scrollAdjustments += n2, behavior: void 0 })), this.pendingMeasuredCacheIndexes.push(l2.index), this.itemSizeCache = new Map(this.itemSizeCache.set(l2.key, t2)), this.notify(true, false));
192
191
  }, this.measureElement = (e3) => {
193
192
  e3 && this._measureElement(e3, void 0);
194
193
  }, this.getVirtualItems = ce(() => [this.getIndexes(), this.getMeasurements()], (e3, t2) => {
@@ -200,42 +199,42 @@ class ke {
200
199
  return l2;
201
200
  }, { key: "production" !== process.env.NODE_ENV && "getIndexes", debug: () => this.options.debug }), this.getVirtualItemForOffset = (e3) => {
202
201
  const t2 = this.getMeasurements();
203
- return pe(t2[Se(0, t2.length - 1, (e4) => pe(t2[e4]).start, e3)]);
202
+ if (0 !== t2.length) return pe(t2[Se(0, t2.length - 1, (e4) => pe(t2[e4]).start, e3)]);
204
203
  }, this.getOffsetForAlignment = (e3, t2) => {
205
- const l2 = this.getSize();
206
- "auto" === t2 && (t2 = e3 <= this.scrollOffset ? "start" : e3 >= this.scrollOffset + l2 ? "end" : "start"), "start" === t2 || ("end" === t2 ? e3 -= l2 : "center" === t2 && (e3 -= l2 / 2));
207
- const n2 = this.options.horizontal ? "scrollWidth" : "scrollHeight", a2 = (this.scrollElement ? "document" in this.scrollElement ? this.scrollElement.document.documentElement[n2] : this.scrollElement[n2] : 0) - this.getSize();
208
- return Math.max(Math.min(a2, e3), 0);
204
+ const l2 = this.getSize(), n2 = this.getScrollOffset();
205
+ "auto" === t2 && (t2 = e3 <= n2 ? "start" : e3 >= n2 + l2 ? "end" : "start"), "start" === t2 || ("end" === t2 ? e3 -= l2 : "center" === t2 && (e3 -= l2 / 2));
206
+ const a2 = this.options.horizontal ? "scrollWidth" : "scrollHeight", o2 = (this.scrollElement ? "document" in this.scrollElement ? this.scrollElement.document.documentElement[a2] : this.scrollElement[a2] : 0) - l2;
207
+ return Math.max(Math.min(o2, e3), 0);
209
208
  }, this.getOffsetForIndex = (e3, t2 = "auto") => {
210
209
  e3 = Math.max(0, Math.min(e3, this.options.count - 1));
211
- const l2 = pe(this.getMeasurements()[e3]);
212
- if ("auto" === t2)
213
- if (l2.end >= this.scrollOffset + this.getSize() - this.options.scrollPaddingEnd)
214
- t2 = "end";
215
- else {
216
- if (!(l2.start <= this.scrollOffset + this.options.scrollPaddingStart))
217
- return [this.scrollOffset, t2];
218
- t2 = "start";
219
- }
220
- const n2 = "end" === t2 ? l2.end + this.options.scrollPaddingEnd : l2.start - this.options.scrollPaddingStart;
221
- return [this.getOffsetForAlignment(n2, t2), t2];
222
- }, this.isDynamicMode = () => this.measureElementCache.size > 0, this.cancelScrollToIndex = () => {
210
+ const l2 = this.getMeasurements()[e3];
211
+ if (!l2) return;
212
+ const n2 = this.getSize(), a2 = this.getScrollOffset();
213
+ if ("auto" === t2) if (l2.end >= a2 + n2 - this.options.scrollPaddingEnd) t2 = "end";
214
+ else {
215
+ if (!(l2.start <= a2 + this.options.scrollPaddingStart)) return [a2, t2];
216
+ t2 = "start";
217
+ }
218
+ const o2 = "end" === t2 ? l2.end + this.options.scrollPaddingEnd : l2.start - this.options.scrollPaddingStart;
219
+ return [this.getOffsetForAlignment(o2, t2), t2];
220
+ }, this.isDynamicMode = () => this.elementsCache.size > 0, this.cancelScrollToIndex = () => {
223
221
  null !== this.scrollToIndexTimeoutId && this.targetWindow && (this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId), this.scrollToIndexTimeoutId = null);
224
222
  }, this.scrollToOffset = (e3, { align: t2 = "start", behavior: l2 } = {}) => {
225
223
  this.cancelScrollToIndex(), "smooth" === l2 && this.isDynamicMode() && console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."), this._scrollToOffset(this.getOffsetForAlignment(e3, t2), { adjustments: void 0, behavior: l2 });
226
224
  }, this.scrollToIndex = (e3, { align: t2 = "auto", behavior: l2 } = {}) => {
227
225
  e3 = Math.max(0, Math.min(e3, this.options.count - 1)), this.cancelScrollToIndex(), "smooth" === l2 && this.isDynamicMode() && console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");
228
- const [n2, a2] = this.getOffsetForIndex(e3, t2);
229
- this._scrollToOffset(n2, { adjustments: void 0, behavior: l2 }), "smooth" !== l2 && this.isDynamicMode() && this.targetWindow && (this.scrollToIndexTimeoutId = this.targetWindow.setTimeout(() => {
226
+ const n2 = this.getOffsetForIndex(e3, t2);
227
+ if (!n2) return;
228
+ const [a2, o2] = n2;
229
+ this._scrollToOffset(a2, { adjustments: void 0, behavior: l2 }), "smooth" !== l2 && this.isDynamicMode() && this.targetWindow && (this.scrollToIndexTimeoutId = this.targetWindow.setTimeout(() => {
230
230
  this.scrollToIndexTimeoutId = null;
231
- if (this.measureElementCache.has(this.options.getItemKey(e3))) {
232
- const [t3] = this.getOffsetForIndex(e3, a2);
233
- ((e4, t4) => Math.abs(e4 - t4) < 1)(t3, this.scrollOffset) || this.scrollToIndex(e3, { align: a2, behavior: l2 });
234
- } else
235
- this.scrollToIndex(e3, { align: a2, behavior: l2 });
231
+ if (this.elementsCache.has(this.options.getItemKey(e3))) {
232
+ const [t3] = pe(this.getOffsetForIndex(e3, o2));
233
+ ((e4, t4) => Math.abs(e4 - t4) < 1)(t3, this.getScrollOffset()) || this.scrollToIndex(e3, { align: o2, behavior: l2 });
234
+ } else this.scrollToIndex(e3, { align: o2, behavior: l2 });
236
235
  }));
237
236
  }, this.scrollBy = (e3, { behavior: t2 } = {}) => {
238
- this.cancelScrollToIndex(), "smooth" === t2 && this.isDynamicMode() && console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."), this._scrollToOffset(this.scrollOffset + e3, { adjustments: void 0, behavior: t2 });
237
+ this.cancelScrollToIndex(), "smooth" === t2 && this.isDynamicMode() && console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."), this._scrollToOffset(this.getScrollOffset() + e3, { adjustments: void 0, behavior: t2 });
239
238
  }, this.getTotalSize = () => {
240
239
  var e3;
241
240
  const t2 = this.getMeasurements();
@@ -246,19 +245,15 @@ class ke {
246
245
  }, this.measure = () => {
247
246
  var e3, t2;
248
247
  this.itemSizeCache = /* @__PURE__ */ new Map(), null == (t2 = (e3 = this.options).onChange) || t2.call(e3, this, false);
249
- }, this.setOptions(e2), this.scrollRect = this.options.initialRect, this.scrollOffset = "function" == typeof this.options.initialOffset ? this.options.initialOffset() : this.options.initialOffset, this.measurementsCache = this.options.initialMeasurementsCache, this.measurementsCache.forEach((e3) => {
250
- this.itemSizeCache.set(e3.key, e3.size);
251
- }), this.notify(false, false);
248
+ }, this.setOptions(e2);
252
249
  }
253
250
  }
254
251
  const Se = (e2, t2, l2, n2) => {
255
252
  for (; e2 <= t2; ) {
256
253
  const a2 = (e2 + t2) / 2 | 0, o2 = l2(a2);
257
- if (o2 < n2)
258
- e2 = a2 + 1;
254
+ if (o2 < n2) e2 = a2 + 1;
259
255
  else {
260
- if (!(o2 > n2))
261
- return a2;
256
+ if (!(o2 > n2)) return a2;
262
257
  t2 = a2 - 1;
263
258
  }
264
259
  }
@@ -316,16 +311,13 @@ function De() {
316
311
  return e3(t3), this.add(() => t3.dispose());
317
312
  }, add: (t3) => (e2.push(t3), () => {
318
313
  let l2 = e2.indexOf(t3);
319
- if (l2 >= 0)
320
- for (let t4 of e2.splice(l2, 1))
321
- t4();
314
+ if (l2 >= 0) for (let t4 of e2.splice(l2, 1)) t4();
322
315
  }), dispose() {
323
- for (let t3 of e2.splice(0))
324
- t3();
316
+ for (let t3 of e2.splice(0)) t3();
325
317
  } };
326
318
  return t2;
327
319
  }
328
- function Ee() {
320
+ function Te() {
329
321
  let e2 = function() {
330
322
  let e3 = De();
331
323
  return m(() => e3.dispose()), e3;
@@ -334,14 +326,13 @@ function Ee() {
334
326
  e2.dispose(), e2.nextFrame(t2);
335
327
  };
336
328
  }
337
- let Te = Symbol("headlessui.useid"), Ie = 0;
329
+ let Ee = Symbol("headlessui.useid"), Ie = 0;
338
330
  function _e() {
339
- return v(Te, () => "" + ++Ie)();
331
+ return v(Ee, () => "" + ++Ie)();
340
332
  }
341
333
  function je(e2) {
342
334
  var t2;
343
- if (null == e2 || null == e2.value)
344
- return null;
335
+ if (null == e2 || null == e2.value) return null;
345
336
  let l2 = null != (t2 = e2.value.$el) ? t2 : e2.value;
346
337
  return l2 instanceof Node ? l2 : null;
347
338
  }
@@ -380,14 +371,11 @@ let Ae = new class {
380
371
  }
381
372
  }();
382
373
  function Le(e2) {
383
- if (Ae.isServer)
384
- return null;
385
- if (e2 instanceof Node)
386
- return e2.ownerDocument;
374
+ if (Ae.isServer) return null;
375
+ if (e2 instanceof Node) return e2.ownerDocument;
387
376
  if (null != e2 && e2.hasOwnProperty("value")) {
388
377
  let t2 = je(e2);
389
- if (t2)
390
- return t2.ownerDocument;
378
+ if (t2) return t2.ownerDocument;
391
379
  }
392
380
  return document;
393
381
  }
@@ -402,8 +390,7 @@ function Ye(e2, t2 = 0) {
402
390
  return e2 !== (null == (l2 = Le(e2)) ? void 0 : l2.body) && Pe(t2, { 0: () => e2.matches(Fe), 1() {
403
391
  let t3 = e2;
404
392
  for (; null !== t3; ) {
405
- if (t3.matches(Fe))
406
- return true;
393
+ if (t3.matches(Fe)) return true;
407
394
  t3 = t3.parentElement;
408
395
  }
409
396
  return false;
@@ -428,8 +415,7 @@ let Ke = ["textarea", "input"].join(",");
428
415
  function Je(e2, t2 = (e3) => e3) {
429
416
  return e2.slice().sort((e3, l2) => {
430
417
  let n2 = t2(e3), a2 = t2(l2);
431
- if (null === n2 || null === a2)
432
- return 0;
418
+ if (null === n2 || null === a2) return 0;
433
419
  let o2 = n2.compareDocumentPosition(a2);
434
420
  return o2 & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : o2 & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
435
421
  });
@@ -439,33 +425,23 @@ function Ge(e2, t2, { sorted: l2 = true, relativeTo: n2 = null, skipElements: a2
439
425
  let r2 = null != (o2 = Array.isArray(e2) ? e2.length > 0 ? e2[0].ownerDocument : document : null == e2 ? void 0 : e2.ownerDocument) ? o2 : document, i2 = Array.isArray(e2) ? l2 ? Je(e2) : e2 : Ve(e2);
440
426
  a2.length > 0 && i2.length > 1 && (i2 = i2.filter((e3) => !a2.includes(e3))), n2 = null != n2 ? n2 : r2.activeElement;
441
427
  let s2, d2 = (() => {
442
- if (5 & t2)
443
- return 1;
444
- if (10 & t2)
445
- return -1;
428
+ if (5 & t2) return 1;
429
+ if (10 & t2) return -1;
446
430
  throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
447
431
  })(), u2 = (() => {
448
- if (1 & t2)
449
- return 0;
450
- if (2 & t2)
451
- return Math.max(0, i2.indexOf(n2)) - 1;
452
- if (4 & t2)
453
- return Math.max(0, i2.indexOf(n2)) + 1;
454
- if (8 & t2)
455
- return i2.length - 1;
432
+ if (1 & t2) return 0;
433
+ if (2 & t2) return Math.max(0, i2.indexOf(n2)) - 1;
434
+ if (4 & t2) return Math.max(0, i2.indexOf(n2)) + 1;
435
+ if (8 & t2) return i2.length - 1;
456
436
  throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
457
437
  })(), c2 = 32 & t2 ? { preventScroll: true } : {}, p2 = 0, g2 = i2.length;
458
438
  do {
459
- if (p2 >= g2 || p2 + g2 <= 0)
460
- return 0;
439
+ if (p2 >= g2 || p2 + g2 <= 0) return 0;
461
440
  let e3 = u2 + p2;
462
- if (16 & t2)
463
- e3 = (e3 + g2) % g2;
441
+ if (16 & t2) e3 = (e3 + g2) % g2;
464
442
  else {
465
- if (e3 < 0)
466
- return 3;
467
- if (e3 >= g2)
468
- return 1;
443
+ if (e3 < 0) return 3;
444
+ if (e3 >= g2) return 1;
469
445
  }
470
446
  s2 = i2[e3], null == s2 || s2.focus(c2), p2 += d2;
471
447
  } while (s2 !== r2.activeElement);
@@ -492,20 +468,16 @@ function et(e2, t2, l2) {
492
468
  }
493
469
  function tt(e2, t2, l2 = d(() => true)) {
494
470
  function n2(n3, a3) {
495
- if (!l2.value || n3.defaultPrevented)
496
- return;
471
+ if (!l2.value || n3.defaultPrevented) return;
497
472
  let o2 = a3(n3);
498
- if (null === o2 || !o2.getRootNode().contains(o2))
499
- return;
473
+ if (null === o2 || !o2.getRootNode().contains(o2)) return;
500
474
  let r2 = function e3(t3) {
501
475
  return "function" == typeof t3 ? e3(t3()) : Array.isArray(t3) || t3 instanceof Set ? t3 : [t3];
502
476
  }(e2);
503
477
  for (let e3 of r2) {
504
- if (null === e3)
505
- continue;
478
+ if (null === e3) continue;
506
479
  let t3 = e3 instanceof HTMLElement ? e3 : je(e3);
507
- if (null != t3 && t3.contains(o2) || n3.composed && n3.composedPath().includes(t3))
508
- return;
480
+ if (null != t3 && t3.contains(o2) || n3.composed && n3.composedPath().includes(t3)) return;
509
481
  }
510
482
  return !Ye(o2, He.Loose) && -1 !== o2.tabIndex && n3.preventDefault(), t2(n3, o2);
511
483
  }
@@ -521,8 +493,7 @@ function tt(e2, t2, l2 = d(() => true)) {
521
493
  }, true), Qe("touchend", (e3) => n2(e3, () => e3.target instanceof HTMLElement ? e3.target : null), true), et("blur", (e3) => n2(e3, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), true);
522
494
  }
523
495
  function lt(e2, t2) {
524
- if (e2)
525
- return e2;
496
+ if (e2) return e2;
526
497
  let l2 = null != t2 ? t2 : "button";
527
498
  return "string" == typeof l2 && "button" === l2.toLowerCase() ? "button" : void 0;
528
499
  }
@@ -550,22 +521,18 @@ function ot() {
550
521
  function rt({ container: e2, accept: t2, walk: l2, enabled: n2 }) {
551
522
  b(() => {
552
523
  let a2 = e2.value;
553
- if (!a2 || void 0 !== n2 && !n2.value)
554
- return;
524
+ if (!a2 || void 0 !== n2 && !n2.value) return;
555
525
  let o2 = Le(e2);
556
- if (!o2)
557
- return;
526
+ if (!o2) return;
558
527
  let r2 = Object.assign((e3) => t2(e3), { acceptNode: t2 }), i2 = o2.createTreeWalker(a2, NodeFilter.SHOW_ELEMENT, r2, false);
559
- for (; i2.nextNode(); )
560
- l2(i2.currentNode);
528
+ for (; i2.nextNode(); ) l2(i2.currentNode);
561
529
  });
562
530
  }
563
531
  var it = ((e2) => (e2[e2.None = 0] = "None", e2[e2.RenderStrategy = 1] = "RenderStrategy", e2[e2.Static = 2] = "Static", e2))(it || {}), st = ((e2) => (e2[e2.Unmount = 0] = "Unmount", e2[e2.Hidden = 1] = "Hidden", e2))(st || {});
564
532
  function dt({ visible: e2 = true, features: t2 = 0, ourProps: l2, theirProps: n2, ...a2 }) {
565
533
  var o2;
566
534
  let r2 = pt(n2, l2), i2 = Object.assign(a2, { props: r2 });
567
- if (e2 || 2 & t2 && r2.static)
568
- return ut(i2);
535
+ if (e2 || 2 & t2 && r2.static) return ut(i2);
569
536
  if (1 & t2) {
570
537
  return Pe(null == (o2 = r2.unmount) || o2 ? 0 : 1, { 0: () => null, 1: () => ut({ ...a2, props: { ...r2, hidden: true, style: { display: "none" } } }) });
571
538
  }
@@ -576,8 +543,7 @@ function ut({ props: e2, attrs: t2, slots: l2, slot: n2, name: a2 }) {
576
543
  let { as: i2, ...s2 } = ft(e2, ["unmount", "static"]), d2 = null == (o2 = l2.default) ? void 0 : o2.call(l2, n2), u2 = {};
577
544
  if (n2) {
578
545
  let e3 = false, t3 = [];
579
- for (let [l3, a3] of Object.entries(n2))
580
- "boolean" == typeof a3 && (e3 = true), true === a3 && t3.push(l3);
546
+ for (let [l3, a3] of Object.entries(n2)) "boolean" == typeof a3 && (e3 = true), true === a3 && t3.push(l3);
581
547
  e3 && (u2["data-headlessui-state"] = t3.join(" "));
582
548
  }
583
549
  if ("template" === i2) {
@@ -585,11 +551,9 @@ function ut({ props: e2, attrs: t2, slots: l2, slot: n2, name: a2 }) {
585
551
  let [e3, ...l3] = null != d2 ? d2 : [];
586
552
  if (!function(e4) {
587
553
  return null != e4 && ("string" == typeof e4.type || "object" == typeof e4.type || "function" == typeof e4.type);
588
- }(e3) || l3.length > 0)
589
- throw new Error(['Passing props on "template"!', "", `The current component <${a2} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(s2).concat(Object.keys(t2)).map((e4) => e4.trim()).filter((e4, t3, l4) => l4.indexOf(e4) === t3).sort((e4, t3) => e4.localeCompare(t3)).map((e4) => ` - ${e4}`).join("\n"), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".', "Render a single element as the child so that we can forward the props onto that element."].map((e4) => ` - ${e4}`).join("\n")].join("\n"));
554
+ }(e3) || l3.length > 0) throw new Error(['Passing props on "template"!', "", `The current component <${a2} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(s2).concat(Object.keys(t2)).map((e4) => e4.trim()).filter((e4, t3, l4) => l4.indexOf(e4) === t3).sort((e4, t3) => e4.localeCompare(t3)).map((e4) => ` - ${e4}`).join("\n"), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".', "Render a single element as the child so that we can forward the props onto that element."].map((e4) => ` - ${e4}`).join("\n")].join("\n"));
590
555
  let n3 = pt(null != (r2 = e3.props) ? r2 : {}, s2, u2), o3 = x(e3, n3, true);
591
- for (let e4 in n3)
592
- e4.startsWith("on") && (o3.props || (o3.props = {}), o3.props[e4] = n3[e4]);
556
+ for (let e4 in n3) e4.startsWith("on") && (o3.props || (o3.props = {}), o3.props[e4] = n3[e4]);
593
557
  return o3;
594
558
  }
595
559
  return Array.isArray(d2) && 1 === d2.length ? d2[0] : d2;
@@ -600,37 +564,28 @@ function ct(e2) {
600
564
  return e2.flatMap((e3) => e3.type === k ? ct(e3.children) : [e3]);
601
565
  }
602
566
  function pt(...e2) {
603
- if (0 === e2.length)
604
- return {};
605
- if (1 === e2.length)
606
- return e2[0];
567
+ if (0 === e2.length) return {};
568
+ if (1 === e2.length) return e2[0];
607
569
  let t2 = {}, l2 = {};
608
- for (let n2 of e2)
609
- for (let e3 in n2)
610
- e3.startsWith("on") && "function" == typeof n2[e3] ? (null != l2[e3] || (l2[e3] = []), l2[e3].push(n2[e3])) : t2[e3] = n2[e3];
611
- if (t2.disabled || t2["aria-disabled"])
612
- return Object.assign(t2, Object.fromEntries(Object.keys(l2).map((e3) => [e3, void 0])));
613
- for (let e3 in l2)
614
- Object.assign(t2, { [e3](t3, ...n2) {
615
- let a2 = l2[e3];
616
- for (let e4 of a2) {
617
- if (t3 instanceof Event && t3.defaultPrevented)
618
- return;
619
- e4(t3, ...n2);
620
- }
621
- } });
570
+ for (let n2 of e2) for (let e3 in n2) e3.startsWith("on") && "function" == typeof n2[e3] ? (null != l2[e3] || (l2[e3] = []), l2[e3].push(n2[e3])) : t2[e3] = n2[e3];
571
+ if (t2.disabled || t2["aria-disabled"]) return Object.assign(t2, Object.fromEntries(Object.keys(l2).map((e3) => [e3, void 0])));
572
+ for (let e3 in l2) Object.assign(t2, { [e3](t3, ...n2) {
573
+ let a2 = l2[e3];
574
+ for (let e4 of a2) {
575
+ if (t3 instanceof Event && t3.defaultPrevented) return;
576
+ e4(t3, ...n2);
577
+ }
578
+ } });
622
579
  return t2;
623
580
  }
624
581
  function gt(e2) {
625
582
  let t2 = Object.assign({}, e2);
626
- for (let e3 in t2)
627
- void 0 === t2[e3] && delete t2[e3];
583
+ for (let e3 in t2) void 0 === t2[e3] && delete t2[e3];
628
584
  return t2;
629
585
  }
630
586
  function ft(e2, t2 = []) {
631
587
  let l2 = Object.assign({}, e2);
632
- for (let e3 of t2)
633
- e3 in l2 && delete l2[e3];
588
+ for (let e3 of t2) e3 in l2 && delete l2[e3];
634
589
  return l2;
635
590
  }
636
591
  var mt = ((e2) => (e2[e2.None = 1] = "None", e2[e2.Focusable = 2] = "Focusable", e2[e2.Hidden = 4] = "Hidden", e2))(mt || {});
@@ -662,35 +617,24 @@ let St = [];
662
617
  var Ct = ((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))(Ct || {});
663
618
  function Ot(e2, t2) {
664
619
  let l2 = t2.resolveItems();
665
- if (l2.length <= 0)
666
- return null;
620
+ if (l2.length <= 0) return null;
667
621
  let n2 = t2.resolveActiveIndex(), a2 = null != n2 ? n2 : -1;
668
622
  switch (e2.focus) {
669
623
  case 0:
670
- for (let e3 = 0; e3 < l2.length; ++e3)
671
- if (!t2.resolveDisabled(l2[e3], e3, l2))
672
- return e3;
624
+ for (let e3 = 0; e3 < l2.length; ++e3) if (!t2.resolveDisabled(l2[e3], e3, l2)) return e3;
673
625
  return n2;
674
626
  case 1:
675
627
  -1 === a2 && (a2 = l2.length);
676
- for (let e3 = a2 - 1; e3 >= 0; --e3)
677
- if (!t2.resolveDisabled(l2[e3], e3, l2))
678
- return e3;
628
+ for (let e3 = a2 - 1; e3 >= 0; --e3) if (!t2.resolveDisabled(l2[e3], e3, l2)) return e3;
679
629
  return n2;
680
630
  case 2:
681
- for (let e3 = a2 + 1; e3 < l2.length; ++e3)
682
- if (!t2.resolveDisabled(l2[e3], e3, l2))
683
- return e3;
631
+ for (let e3 = a2 + 1; e3 < l2.length; ++e3) if (!t2.resolveDisabled(l2[e3], e3, l2)) return e3;
684
632
  return n2;
685
633
  case 3:
686
- for (let e3 = l2.length - 1; e3 >= 0; --e3)
687
- if (!t2.resolveDisabled(l2[e3], e3, l2))
688
- return e3;
634
+ for (let e3 = l2.length - 1; e3 >= 0; --e3) if (!t2.resolveDisabled(l2[e3], e3, l2)) return e3;
689
635
  return n2;
690
636
  case 4:
691
- for (let n3 = 0; n3 < l2.length; ++n3)
692
- if (t2.resolveId(l2[n3], n3, l2) === e2.id)
693
- return n3;
637
+ for (let n3 = 0; n3 < l2.length; ++n3) if (t2.resolveId(l2[n3], n3, l2) === e2.id) return n3;
694
638
  return n2;
695
639
  case 5:
696
640
  return null;
@@ -701,21 +645,17 @@ function Ot(e2, t2) {
701
645
  }
702
646
  }
703
647
  function Mt(e2 = {}, t2 = null, l2 = []) {
704
- for (let [n2, a2] of Object.entries(e2))
705
- Et(l2, Dt(t2, n2), a2);
648
+ for (let [n2, a2] of Object.entries(e2)) Tt(l2, Dt(t2, n2), a2);
706
649
  return l2;
707
650
  }
708
651
  function Dt(e2, t2) {
709
652
  return e2 ? e2 + "[" + t2 + "]" : t2;
710
653
  }
711
- function Et(e2, t2, l2) {
712
- if (Array.isArray(l2))
713
- for (let [n2, a2] of l2.entries())
714
- Et(e2, Dt(t2, n2.toString()), a2);
715
- else
716
- l2 instanceof Date ? e2.push([t2, l2.toISOString()]) : "boolean" == typeof l2 ? e2.push([t2, l2 ? "1" : "0"]) : "string" == typeof l2 ? e2.push([t2, l2]) : "number" == typeof l2 ? e2.push([t2, `${l2}`]) : null == l2 ? e2.push([t2, ""]) : Mt(l2, t2, e2);
654
+ function Tt(e2, t2, l2) {
655
+ if (Array.isArray(l2)) for (let [n2, a2] of l2.entries()) Tt(e2, Dt(t2, n2.toString()), a2);
656
+ else l2 instanceof Date ? e2.push([t2, l2.toISOString()]) : "boolean" == typeof l2 ? e2.push([t2, l2 ? "1" : "0"]) : "string" == typeof l2 ? e2.push([t2, l2]) : "number" == typeof l2 ? e2.push([t2, `${l2}`]) : null == l2 ? e2.push([t2, ""]) : Mt(l2, t2, e2);
717
657
  }
718
- var Tt = ((e2) => (e2[e2.Open = 0] = "Open", e2[e2.Closed = 1] = "Closed", e2))(Tt || {}), It = ((e2) => (e2[e2.Single = 0] = "Single", e2[e2.Multi = 1] = "Multi", e2))(It || {}), _t = ((e2) => (e2[e2.Pointer = 0] = "Pointer", e2[e2.Focus = 1] = "Focus", e2[e2.Other = 2] = "Other", e2))(_t || {});
658
+ var Et = ((e2) => (e2[e2.Open = 0] = "Open", e2[e2.Closed = 1] = "Closed", e2))(Et || {}), It = ((e2) => (e2[e2.Single = 0] = "Single", e2[e2.Multi = 1] = "Multi", e2))(It || {}), _t = ((e2) => (e2[e2.Pointer = 0] = "Pointer", e2[e2.Focus = 1] = "Focus", e2[e2.Other = 2] = "Other", e2))(_t || {});
719
659
  let jt = Symbol("ComboboxContext");
720
660
  function Pt(e2) {
721
661
  let t2 = v(jt, null);
@@ -728,8 +668,7 @@ function Pt(e2) {
728
668
  let Rt = Symbol("VirtualContext"), Bt = S({ name: "VirtualProvider", setup(e2, { slots: t2 }) {
729
669
  let l2 = Pt("VirtualProvider"), n2 = d(() => {
730
670
  let e3 = je(l2.optionsRef);
731
- if (!e3)
732
- return { start: 0, end: 0 };
671
+ if (!e3) return { start: 0, end: 0 };
733
672
  let t3 = window.getComputedStyle(e3);
734
673
  return { start: parseFloat(t3.paddingBlockStart || t3.paddingTop), end: parseFloat(t3.paddingBlockEnd || t3.paddingBottom) };
735
674
  }), a2 = Ce(d(() => ({ scrollPaddingStart: n2.value.start, scrollPaddingEnd: n2.value.end, count: l2.virtual.value.options.length, estimateSize: () => 40, getScrollElement: () => je(l2.optionsRef), overscan: 12 }))), o2 = d(() => {
@@ -740,8 +679,7 @@ let Rt = Symbol("VirtualContext"), Bt = S({ name: "VirtualProvider", setup(e2, {
740
679
  r2.value += 1;
741
680
  }), C(Rt, l2.virtual.value ? a2 : null), () => [w("div", { style: { position: "relative", width: "100%", height: `${a2.value.getTotalSize()}px` }, ref: (e3) => {
742
681
  if (e3) {
743
- if ("undefined" != typeof process && void 0 !== process.env.JEST_WORKER_ID || 0 === l2.activationTrigger.value)
744
- return;
682
+ if ("undefined" != typeof process && void 0 !== process.env.JEST_WORKER_ID || 0 === l2.activationTrigger.value) return;
745
683
  null !== l2.activeOptionIndex.value && l2.virtual.value.options.length > l2.activeOptionIndex.value && a2.value.scrollToIndex(l2.activeOptionIndex.value);
746
684
  }
747
685
  } }, a2.value.getVirtualItems().map((e3) => x(t2.default({ option: l2.virtual.value.options[e3.index], open: 0 === l2.comboboxState.value })[0], { key: `${r2.value}-${e3.index}`, "data-index": e3.index, "aria-setsize": l2.virtual.value.options.length, "aria-posinset": e3.index + 1, style: { position: "absolute", top: 0, left: 0, transform: `translateY(${e3.start}px)`, overflowAnchor: "none" } })))];
@@ -751,7 +689,7 @@ let Rt = Symbol("VirtualContext"), Bt = S({ name: "VirtualProvider", setup(e2, {
751
689
  let t3 = null !== f2.value ? g2.value[f2.value] : null, l3 = e3(g2.value.slice()), n3 = l3.length > 0 && null !== l3[0].dataRef.order.value ? l3.sort((e4, t4) => e4.dataRef.order.value - t4.dataRef.order.value) : Je(l3, (e4) => je(e4.dataRef.domRef)), a3 = t3 ? n3.indexOf(t3) : null;
752
690
  return -1 === a3 && (a3 = null), { options: n3, activeOptionIndex: a3 };
753
691
  }
754
- let b2 = d(() => e2.multiple ? 1 : 0), x2 = d(() => e2.nullable), [S2, D2] = Oe(d(() => e2.modelValue), (e3) => n2("update:modelValue", e3), d(() => e2.defaultValue)), E2 = d(() => void 0 === S2.value ? Pe(b2.value, { 1: [], 0: void 0 }) : S2.value), T2 = null, I2 = null;
692
+ let b2 = d(() => e2.multiple ? 1 : 0), x2 = d(() => e2.nullable), [S2, D2] = Oe(d(() => e2.modelValue), (e3) => n2("update:modelValue", e3), d(() => e2.defaultValue)), T2 = d(() => void 0 === S2.value ? Pe(b2.value, { 1: [], 0: void 0 }) : S2.value), E2 = null, I2 = null;
755
693
  function _2(e3) {
756
694
  return Pe(b2.value, { 0: () => null == D2 ? void 0 : D2(e3), 1: () => {
757
695
  let t3 = M(P2.value.value).slice(), l3 = M(e3), n3 = t3.findIndex((e4) => P2.compare(l3, M(e4)));
@@ -766,7 +704,7 @@ let Rt = Symbol("VirtualContext"), Bt = S({ name: "VirtualProvider", setup(e2, {
766
704
  f2.value = -1 !== l3 ? l3 : null;
767
705
  }
768
706
  });
769
- let P2 = { comboboxState: a2, value: E2, mode: b2, compare(t3, l3) {
707
+ let P2 = { comboboxState: a2, value: T2, mode: b2, compare(t3, l3) {
770
708
  if ("string" == typeof e2.by) {
771
709
  let n3 = e2.by;
772
710
  return (null == t3 ? void 0 : t3[n3]) === (null == l3 ? void 0 : l3[n3]);
@@ -783,12 +721,10 @@ let Rt = Symbol("VirtualContext"), Bt = S({ name: "VirtualProvider", setup(e2, {
783
721
  var t3;
784
722
  return !(null != (t3 = P2.virtual.value) && t3.disabled(e5));
785
723
  });
786
- if (-1 !== e4)
787
- return e4;
724
+ if (-1 !== e4) return e4;
788
725
  }
789
726
  let e3 = g2.value.findIndex((e4) => !e4.dataRef.disabled);
790
- if (-1 !== e3)
791
- return e3;
727
+ if (-1 !== e3) return e3;
792
728
  }
793
729
  return f2.value;
794
730
  }), activationTrigger: m2, optionsPropsRef: c2, closeCombobox() {
@@ -804,19 +740,17 @@ let Rt = Symbol("VirtualContext"), Bt = S({ name: "VirtualProvider", setup(e2, {
804
740
  }, setActivationTrigger(e3) {
805
741
  m2.value = e3;
806
742
  }, goToOption(t3, l3, n3) {
807
- v2.value = false, null !== T2 && cancelAnimationFrame(T2), T2 = requestAnimationFrame(() => {
808
- if (e2.disabled || u2.value && !c2.value.static && 1 === a2.value)
809
- return;
810
- if (P2.virtual.value)
811
- return f2.value = t3 === Ct.Specific ? l3 : Ot({ focus: t3 }, { resolveItems: () => P2.virtual.value.options, resolveActiveIndex: () => {
812
- var e3, t4;
813
- return null != (t4 = null != (e3 = P2.activeOptionIndex.value) ? e3 : P2.virtual.value.options.findIndex((e4) => {
814
- var t5;
815
- return !(null != (t5 = P2.virtual.value) && t5.disabled(e4));
816
- })) ? t4 : null;
817
- }, resolveDisabled: (e3) => P2.virtual.value.disabled(e3), resolveId() {
818
- throw new Error("Function not implemented.");
819
- } }), void (m2.value = null != n3 ? n3 : 2);
743
+ v2.value = false, null !== E2 && cancelAnimationFrame(E2), E2 = requestAnimationFrame(() => {
744
+ if (e2.disabled || u2.value && !c2.value.static && 1 === a2.value) return;
745
+ if (P2.virtual.value) return f2.value = t3 === Ct.Specific ? l3 : Ot({ focus: t3 }, { resolveItems: () => P2.virtual.value.options, resolveActiveIndex: () => {
746
+ var e3, t4;
747
+ return null != (t4 = null != (e3 = P2.activeOptionIndex.value) ? e3 : P2.virtual.value.options.findIndex((e4) => {
748
+ var t5;
749
+ return !(null != (t5 = P2.virtual.value) && t5.disabled(e4));
750
+ })) ? t4 : null;
751
+ }, resolveDisabled: (e3) => P2.virtual.value.disabled(e3), resolveId() {
752
+ throw new Error("Function not implemented.");
753
+ } }), void (m2.value = null != n3 ? n3 : 2);
820
754
  let o3 = h2();
821
755
  if (null === o3.activeOptionIndex) {
822
756
  let e3 = o3.options.findIndex((e4) => !e4.dataRef.disabled);
@@ -827,14 +761,12 @@ let Rt = Symbol("VirtualContext"), Bt = S({ name: "VirtualProvider", setup(e2, {
827
761
  });
828
762
  }, selectOption(e3) {
829
763
  let t3 = g2.value.find((t4) => t4.id === e3);
830
- if (!t3)
831
- return;
764
+ if (!t3) return;
832
765
  let { dataRef: l3 } = t3;
833
766
  _2(l3.value);
834
767
  }, selectActiveOption() {
835
768
  if (null !== P2.activeOptionIndex.value) {
836
- if (P2.virtual.value)
837
- _2(P2.virtual.value.options[P2.activeOptionIndex.value]);
769
+ if (P2.virtual.value) _2(P2.virtual.value.options[P2.activeOptionIndex.value]);
838
770
  else {
839
771
  let { dataRef: e3 } = g2.value[P2.activeOptionIndex.value];
840
772
  _2(e3.value);
@@ -843,8 +775,7 @@ let Rt = Symbol("VirtualContext"), Bt = S({ name: "VirtualProvider", setup(e2, {
843
775
  }
844
776
  }, registerOption(e3, t3) {
845
777
  let l3 = O({ id: e3, dataRef: t3 });
846
- if (P2.virtual.value)
847
- return void g2.value.push(l3);
778
+ if (P2.virtual.value) return void g2.value.push(l3);
848
779
  I2 && cancelAnimationFrame(I2);
849
780
  let n3 = h2((e4) => (e4.push(l3), e4));
850
781
  null === f2.value && P2.isSelected(t3.value.value) && (n3.activeOptionIndex = n3.options.indexOf(l3)), g2.value = n3.options, f2.value = n3.activeOptionIndex, m2.value = 2, n3.options.some((e4) => !je(e4.dataRef.domRef)) && (I2 = requestAnimationFrame(() => {
@@ -852,8 +783,7 @@ let Rt = Symbol("VirtualContext"), Bt = S({ name: "VirtualProvider", setup(e2, {
852
783
  g2.value = e4.options, f2.value = e4.activeOptionIndex;
853
784
  }));
854
785
  }, unregisterOption(e3, t3) {
855
- if (null !== T2 && cancelAnimationFrame(T2), t3 && (v2.value = true), P2.virtual.value)
856
- return void (g2.value = g2.value.filter((t4) => t4.id !== e3));
786
+ if (null !== E2 && cancelAnimationFrame(E2), t3 && (v2.value = true), P2.virtual.value) return void (g2.value = g2.value.filter((t4) => t4.id !== e3));
857
787
  let l3 = h2((t4) => {
858
788
  let l4 = t4.findIndex((t5) => t5.id === e3);
859
789
  return -1 !== l4 && t4.splice(l4, 1), t4;
@@ -867,19 +797,18 @@ let Rt = Symbol("VirtualContext"), Bt = S({ name: "VirtualProvider", setup(e2, {
867
797
  });
868
798
  return y(() => {
869
799
  p([R2], () => {
870
- if (R2.value && void 0 !== e2.defaultValue)
871
- return R2.value.addEventListener("reset", t3), () => {
872
- var e3;
873
- null == (e3 = R2.value) || e3.removeEventListener("reset", t3);
874
- };
800
+ if (R2.value && void 0 !== e2.defaultValue) return R2.value.addEventListener("reset", t3), () => {
801
+ var e3;
802
+ null == (e3 = R2.value) || e3.removeEventListener("reset", t3);
803
+ };
875
804
  function t3() {
876
805
  P2.change(e2.defaultValue);
877
806
  }
878
807
  }, { immediate: true });
879
808
  }), () => {
880
809
  var n3, o3, r3;
881
- let { name: i3, disabled: s2, form: d2, ...u3 } = e2, c3 = { open: 0 === a2.value, disabled: s2, activeIndex: P2.activeOptionIndex.value, activeOption: null === P2.activeOptionIndex.value ? null : P2.virtual.value ? P2.virtual.value.options[null != (n3 = P2.activeOptionIndex.value) ? n3 : 0] : null != (r3 = null == (o3 = P2.options.value[P2.activeOptionIndex.value]) ? void 0 : o3.dataRef.value) ? r3 : null, value: E2.value };
882
- return w(k, [...null != i3 && null != E2.value ? Mt({ [i3]: E2.value }).map(([e3, t3]) => w(vt, gt({ features: mt.Hidden, key: e3, as: "input", type: "hidden", hidden: true, readOnly: true, form: d2, disabled: s2, name: e3, value: t3 }))) : [], dt({ theirProps: { ...l2, ...ft(u3, ["by", "defaultValue", "immediate", "modelValue", "multiple", "nullable", "onUpdate:modelValue", "virtual"]) }, ourProps: {}, slot: c3, slots: t2, attrs: l2, name: "Combobox" })]);
810
+ let { name: i3, disabled: s2, form: d2, ...u3 } = e2, c3 = { open: 0 === a2.value, disabled: s2, activeIndex: P2.activeOptionIndex.value, activeOption: null === P2.activeOptionIndex.value ? null : P2.virtual.value ? P2.virtual.value.options[null != (n3 = P2.activeOptionIndex.value) ? n3 : 0] : null != (r3 = null == (o3 = P2.options.value[P2.activeOptionIndex.value]) ? void 0 : o3.dataRef.value) ? r3 : null, value: T2.value };
811
+ return w(k, [...null != i3 && null != T2.value ? Mt({ [i3]: T2.value }).map(([e3, t3]) => w(vt, gt({ features: mt.Hidden, key: e3, as: "input", type: "hidden", hidden: true, readOnly: true, form: d2, disabled: s2, name: e3, value: t3 }))) : [], dt({ theirProps: { ...l2, ...ft(u3, ["by", "defaultValue", "immediate", "modelValue", "multiple", "nullable", "onUpdate:modelValue", "virtual"]) }, ourProps: {}, slot: c3, slots: t2, attrs: l2, name: "Combobox" })]);
883
812
  };
884
813
  } }), Lt = S({ name: "ComboboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: null } }, setup(e2, { attrs: t2, slots: l2 }) {
885
814
  var n2;
@@ -916,8 +845,7 @@ let Rt = Symbol("VirtualContext"), Bt = S({ name: "VirtualProvider", setup(e2, {
916
845
  return null == (e4 = r2.inputRef.value) ? void 0 : e4.focus({ preventScroll: true });
917
846
  });
918
847
  case wt.Escape:
919
- if (0 !== r2.comboboxState.value)
920
- return;
848
+ if (0 !== r2.comboboxState.value) return;
921
849
  return e3.preventDefault(), r2.optionsRef.value && !r2.optionsPropsRef.value.static && e3.stopPropagation(), r2.closeCombobox(), void h(() => {
922
850
  var e4;
923
851
  return null == (e4 = r2.inputRef.value) ? void 0 : e4.focus({ preventScroll: true });
@@ -947,23 +875,19 @@ let Rt = Symbol("VirtualContext"), Bt = S({ name: "VirtualProvider", setup(e2, {
947
875
  });
948
876
  y(() => {
949
877
  p([f2, i2.comboboxState, u2], ([e3, t3], [l3, n3]) => {
950
- if (c2.value)
951
- return;
878
+ if (c2.value) return;
952
879
  let a3 = je(i2.inputRef);
953
880
  a3 && ((0 === n3 && 1 === t3 || e3 !== l3) && (a3.value = e3), requestAnimationFrame(() => {
954
881
  var e4;
955
- if (c2.value || !a3 || (null == (e4 = u2.value) ? void 0 : e4.activeElement) !== a3)
956
- return;
882
+ if (c2.value || !a3 || (null == (e4 = u2.value) ? void 0 : e4.activeElement) !== a3) return;
957
883
  let { selectionStart: t4, selectionEnd: l4 } = a3;
958
884
  0 === Math.abs((null != l4 ? l4 : 0) - (null != t4 ? t4 : 0)) && 0 === t4 && a3.setSelectionRange(a3.value.length, a3.value.length);
959
885
  }));
960
886
  }, { immediate: true }), p([i2.comboboxState], ([e3], [t3]) => {
961
887
  if (0 === e3 && 1 === t3) {
962
- if (c2.value)
963
- return;
888
+ if (c2.value) return;
964
889
  let e4 = je(i2.inputRef);
965
- if (!e4)
966
- return;
890
+ if (!e4) return;
967
891
  let t4 = e4.value, { selectionStart: l3, selectionEnd: n3, selectionDirection: a3 } = e4;
968
892
  e4.value = "", e4.value = t4, null !== a3 ? e4.setSelectionRange(l3, n3, a3) : e4.setSelectionRange(l3, n3);
969
893
  }
@@ -978,16 +902,14 @@ let Rt = Symbol("VirtualContext"), Bt = S({ name: "VirtualProvider", setup(e2, {
978
902
  m2.value = false;
979
903
  });
980
904
  }
981
- let x2 = Ee();
905
+ let x2 = Te();
982
906
  function w2(e3) {
983
907
  switch (c2.value = true, x2(() => {
984
908
  c2.value = false;
985
909
  }), e3.key) {
986
910
  case wt.Enter:
987
- if (c2.value = false, 0 !== i2.comboboxState.value || m2.value)
988
- return;
989
- if (e3.preventDefault(), e3.stopPropagation(), null === i2.activeOptionIndex.value)
990
- return void i2.closeCombobox();
911
+ if (c2.value = false, 0 !== i2.comboboxState.value || m2.value) return;
912
+ if (e3.preventDefault(), e3.stopPropagation(), null === i2.activeOptionIndex.value) return void i2.closeCombobox();
991
913
  i2.selectActiveOption(), 0 === i2.mode.value && i2.closeCombobox();
992
914
  break;
993
915
  case wt.ArrowDown:
@@ -999,25 +921,21 @@ let Rt = Symbol("VirtualContext"), Bt = S({ name: "VirtualProvider", setup(e2, {
999
921
  });
1000
922
  } });
1001
923
  case wt.Home:
1002
- if (e3.shiftKey)
1003
- break;
924
+ if (e3.shiftKey) break;
1004
925
  return c2.value = false, e3.preventDefault(), e3.stopPropagation(), i2.goToOption(Ct.First);
1005
926
  case wt.PageUp:
1006
927
  return c2.value = false, e3.preventDefault(), e3.stopPropagation(), i2.goToOption(Ct.First);
1007
928
  case wt.End:
1008
- if (e3.shiftKey)
1009
- break;
929
+ if (e3.shiftKey) break;
1010
930
  return c2.value = false, e3.preventDefault(), e3.stopPropagation(), i2.goToOption(Ct.Last);
1011
931
  case wt.PageDown:
1012
932
  return c2.value = false, e3.preventDefault(), e3.stopPropagation(), i2.goToOption(Ct.Last);
1013
933
  case wt.Escape:
1014
- if (c2.value = false, 0 !== i2.comboboxState.value)
1015
- return;
934
+ if (c2.value = false, 0 !== i2.comboboxState.value) return;
1016
935
  e3.preventDefault(), i2.optionsRef.value && !i2.optionsPropsRef.value.static && e3.stopPropagation(), i2.nullable.value && 0 === i2.mode.value && null === i2.value.value && g2(), i2.closeCombobox();
1017
936
  break;
1018
937
  case wt.Tab:
1019
- if (c2.value = false, 0 !== i2.comboboxState.value)
1020
- return;
938
+ if (c2.value = false, 0 !== i2.comboboxState.value) return;
1021
939
  0 === i2.mode.value && 1 !== i2.activationTrigger.value && i2.selectActiveOption(), i2.closeCombobox();
1022
940
  }
1023
941
  }
@@ -1027,8 +945,7 @@ let Rt = Symbol("VirtualContext"), Bt = S({ name: "VirtualProvider", setup(e2, {
1027
945
  function S2(e3) {
1028
946
  var t3, l3, n3;
1029
947
  let a3 = null != (t3 = e3.relatedTarget) ? t3 : St.find((t4) => t4 !== e3.currentTarget);
1030
- if (c2.value = false, !(null != (l3 = je(i2.optionsRef)) && l3.contains(a3) || null != (n3 = je(i2.buttonRef)) && n3.contains(a3) || 0 !== i2.comboboxState.value))
1031
- return e3.preventDefault(), 0 === i2.mode.value && (i2.nullable.value && null === i2.value.value ? g2() : 1 !== i2.activationTrigger.value && i2.selectActiveOption()), i2.closeCombobox();
948
+ if (c2.value = false, !(null != (l3 = je(i2.optionsRef)) && l3.contains(a3) || null != (n3 = je(i2.buttonRef)) && n3.contains(a3) || 0 !== i2.comboboxState.value)) return e3.preventDefault(), 0 === i2.mode.value && (i2.nullable.value && null === i2.value.value ? g2() : 1 !== i2.activationTrigger.value && i2.selectActiveOption()), i2.closeCombobox();
1032
949
  }
1033
950
  function C2(e3) {
1034
951
  var t3, l3, n3;
@@ -1079,8 +996,7 @@ let Rt = Symbol("VirtualContext"), Bt = S({ name: "VirtualProvider", setup(e2, {
1079
996
  }
1080
997
  function x2() {
1081
998
  var t3;
1082
- if (e2.disabled || null != (t3 = a2.virtual.value) && t3.disabled(e2.value))
1083
- return a2.goToOption(Ct.Nothing);
999
+ if (e2.disabled || null != (t3 = a2.virtual.value) && t3.disabled(e2.value)) return a2.goToOption(Ct.Nothing);
1084
1000
  let l3 = a2.calculateIndex(e2.value);
1085
1001
  a2.goToOption(Ct.Specific, l3);
1086
1002
  }
@@ -1099,8 +1015,7 @@ let Rt = Symbol("VirtualContext"), Bt = S({ name: "VirtualProvider", setup(e2, {
1099
1015
  }
1100
1016
  function S2(t3) {
1101
1017
  var l3;
1102
- if (!w2.wasMoved(t3) || e2.disabled || null != (l3 = a2.virtual.value) && l3.disabled(e2.value) || u2.value)
1103
- return;
1018
+ if (!w2.wasMoved(t3) || e2.disabled || null != (l3 = a2.virtual.value) && l3.disabled(e2.value) || u2.value) return;
1104
1019
  let n3 = a2.calculateIndex(e2.value);
1105
1020
  a2.goToOption(Ct.Specific, n3, 0);
1106
1021
  }
@@ -1120,10 +1035,8 @@ function Vt(e2, t2, l2, n2) {
1120
1035
  }
1121
1036
  var Ht = ((e2) => (e2[e2.Forwards = 0] = "Forwards", e2[e2.Backwards = 1] = "Backwards", e2))(Ht || {});
1122
1037
  function Yt(e2) {
1123
- if (!e2)
1124
- return /* @__PURE__ */ new Set();
1125
- if ("function" == typeof e2)
1126
- return new Set(e2());
1038
+ if (!e2) return /* @__PURE__ */ new Set();
1039
+ if ("function" == typeof e2) return new Set(e2());
1127
1040
  let t2 = /* @__PURE__ */ new Set();
1128
1041
  for (let l2 of e2.value) {
1129
1042
  let e3 = je(l2);
@@ -1161,19 +1074,15 @@ let Ut = Object.assign(S({ name: "FocusTrap", props: { as: { type: [Object, Stri
1161
1074
  let a3 = s(null), o3 = s(false);
1162
1075
  return y(() => o3.value = true), m(() => o3.value = false), y(() => {
1163
1076
  p([t3, l3, n3], (r3, i3) => {
1164
- if (r3.every((e4, t4) => (null == i3 ? void 0 : i3[t4]) === e4) || !n3.value)
1165
- return;
1077
+ if (r3.every((e4, t4) => (null == i3 ? void 0 : i3[t4]) === e4) || !n3.value) return;
1166
1078
  let s2 = je(t3);
1167
1079
  s2 && Me(() => {
1168
1080
  var t4, n4;
1169
- if (!o3.value)
1170
- return;
1081
+ if (!o3.value) return;
1171
1082
  let r4 = je(l3), i4 = null == (t4 = e3.value) ? void 0 : t4.activeElement;
1172
1083
  if (r4) {
1173
- if (r4 === i4)
1174
- return void (a3.value = i4);
1175
- } else if (s2.contains(i4))
1176
- return void (a3.value = i4);
1084
+ if (r4 === i4) return void (a3.value = i4);
1085
+ } else if (s2.contains(i4)) return void (a3.value = i4);
1177
1086
  r4 ? We(r4) : Ge(s2, Ne.First | Ne.NoScroll) === ze.Error && console.warn("There are no focusable elements inside the <FocusTrap />"), a3.value = null == (n4 = e3.value) ? void 0 : n4.activeElement;
1178
1087
  });
1179
1088
  }, { immediate: true, flush: "post" });
@@ -1182,13 +1091,11 @@ let Ut = Object.assign(S({ name: "FocusTrap", props: { as: { type: [Object, Stri
1182
1091
  !function({ ownerDocument: e3, container: t3, containers: l3, previousActiveElement: n3 }, a3) {
1183
1092
  var o3;
1184
1093
  Vt(null == (o3 = e3.value) ? void 0 : o3.defaultView, "focus", (e4) => {
1185
- if (!a3.value)
1186
- return;
1094
+ if (!a3.value) return;
1187
1095
  let o4 = Yt(l3);
1188
1096
  je(t3) instanceof HTMLElement && o4.add(je(t3));
1189
1097
  let r3 = n3.value;
1190
- if (!r3)
1191
- return;
1098
+ if (!r3) return;
1192
1099
  let i3 = e4.target;
1193
1100
  i3 && i3 instanceof HTMLElement ? Wt(o4, i3) ? (n3.value = i3, We(i3)) : (e4.preventDefault(), e4.stopPropagation(), We(r3)) : We(n3.value);
1194
1101
  }, true);
@@ -1214,8 +1121,7 @@ let Ut = Object.assign(S({ name: "FocusTrap", props: { as: { type: [Object, Stri
1214
1121
  }));
1215
1122
  }
1216
1123
  function v2(t3) {
1217
- if (!r2.value)
1218
- return;
1124
+ if (!r2.value) return;
1219
1125
  let l3 = Yt(e2.containers);
1220
1126
  je(a2) instanceof HTMLElement && l3.add(je(a2));
1221
1127
  let n3 = t3.relatedTarget;
@@ -1227,9 +1133,7 @@ let Ut = Object.assign(S({ name: "FocusTrap", props: { as: { type: [Object, Stri
1227
1133
  };
1228
1134
  } }), { features: qt });
1229
1135
  function Wt(e2, t2) {
1230
- for (let l2 of e2)
1231
- if (l2.contains(t2))
1232
- return true;
1136
+ for (let l2 of e2) if (l2.contains(t2)) return true;
1233
1137
  return false;
1234
1138
  }
1235
1139
  function Kt() {
@@ -1245,8 +1149,7 @@ function Kt() {
1245
1149
  }
1246
1150
  function Jt(e2) {
1247
1151
  let t2 = {};
1248
- for (let l2 of e2)
1249
- Object.assign(t2, l2(t2));
1152
+ for (let l2 of e2) Object.assign(t2, l2(t2));
1250
1153
  return t2;
1251
1154
  }
1252
1155
  let Gt = function(e2, t2) {
@@ -1275,35 +1178,27 @@ let Gt = function(e2, t2) {
1275
1178
  }
1276
1179
  let a3 = null != (l4 = window.scrollY) ? l4 : window.pageYOffset, o2 = null;
1277
1180
  t3.addEventListener(e3, "click", (t4) => {
1278
- if (t4.target instanceof HTMLElement)
1279
- try {
1280
- let l5 = t4.target.closest("a");
1281
- if (!l5)
1282
- return;
1283
- let { hash: a4 } = new URL(l5.href), r2 = e3.querySelector(a4);
1284
- r2 && !n3(r2) && (o2 = r2);
1285
- } catch {
1286
- }
1181
+ if (t4.target instanceof HTMLElement) try {
1182
+ let l5 = t4.target.closest("a");
1183
+ if (!l5) return;
1184
+ let { hash: a4 } = new URL(l5.href), r2 = e3.querySelector(a4);
1185
+ r2 && !n3(r2) && (o2 = r2);
1186
+ } catch {
1187
+ }
1287
1188
  }, true), t3.addEventListener(e3, "touchstart", (e4) => {
1288
- if (e4.target instanceof HTMLElement)
1289
- if (n3(e4.target)) {
1290
- let l5 = e4.target;
1291
- for (; l5.parentElement && n3(l5.parentElement); )
1292
- l5 = l5.parentElement;
1293
- t3.style(l5, "overscrollBehavior", "contain");
1294
- } else
1295
- t3.style(e4.target, "touchAction", "none");
1189
+ if (e4.target instanceof HTMLElement) if (n3(e4.target)) {
1190
+ let l5 = e4.target;
1191
+ for (; l5.parentElement && n3(l5.parentElement); ) l5 = l5.parentElement;
1192
+ t3.style(l5, "overscrollBehavior", "contain");
1193
+ } else t3.style(e4.target, "touchAction", "none");
1296
1194
  }), t3.addEventListener(e3, "touchmove", (e4) => {
1297
1195
  if (e4.target instanceof HTMLElement) {
1298
- if ("INPUT" === e4.target.tagName)
1299
- return;
1196
+ if ("INPUT" === e4.target.tagName) return;
1300
1197
  if (n3(e4.target)) {
1301
1198
  let t4 = e4.target;
1302
- for (; t4.parentElement && "" !== t4.dataset.headlessuiPortal && !(t4.scrollHeight > t4.clientHeight || t4.scrollWidth > t4.clientWidth); )
1303
- t4 = t4.parentElement;
1199
+ for (; t4.parentElement && "" !== t4.dataset.headlessuiPortal && !(t4.scrollHeight > t4.clientHeight || t4.scrollWidth > t4.clientWidth); ) t4 = t4.parentElement;
1304
1200
  "" === t4.dataset.headlessuiPortal && e4.preventDefault();
1305
- } else
1306
- e4.preventDefault();
1201
+ } else e4.preventDefault();
1307
1202
  }
1308
1203
  }, { passive: false }), t3.add(() => {
1309
1204
  var e4;
@@ -1331,8 +1226,7 @@ function Zt(e2, t2, l2) {
1331
1226
  return !!t3 && t3.count > 0;
1332
1227
  });
1333
1228
  return p([e2, t2], ([e3, t3], [n3], a3) => {
1334
- if (!e3 || !t3)
1335
- return;
1229
+ if (!e3 || !t3) return;
1336
1230
  Gt.dispatch("PUSH", e3, l2);
1337
1231
  let o2 = false;
1338
1232
  a3(() => {
@@ -1342,8 +1236,7 @@ function Zt(e2, t2, l2) {
1342
1236
  }
1343
1237
  Gt.subscribe(() => {
1344
1238
  let e2 = Gt.getSnapshot(), t2 = /* @__PURE__ */ new Map();
1345
- for (let [l2] of e2)
1346
- t2.set(l2, l2.documentElement.style.overflow);
1239
+ for (let [l2] of e2) t2.set(l2, l2.documentElement.style.overflow);
1347
1240
  for (let l2 of e2.values()) {
1348
1241
  let e3 = "hidden" === t2.get(l2.doc), n2 = 0 !== l2.count;
1349
1242
  (n2 && !e3 || !n2 && e3) && Gt.dispatch(l2.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", l2), 0 === l2.count && Gt.dispatch("TEARDOWN", l2);
@@ -1353,18 +1246,14 @@ let Xt = /* @__PURE__ */ new Map(), Qt = /* @__PURE__ */ new Map();
1353
1246
  function el(e2, t2 = s(true)) {
1354
1247
  b((l2) => {
1355
1248
  var n2;
1356
- if (!t2.value)
1357
- return;
1249
+ if (!t2.value) return;
1358
1250
  let a2 = je(e2);
1359
- if (!a2)
1360
- return;
1251
+ if (!a2) return;
1361
1252
  l2(function() {
1362
1253
  var e3;
1363
- if (!a2)
1364
- return;
1254
+ if (!a2) return;
1365
1255
  let t3 = null != (e3 = Qt.get(a2)) ? e3 : 1;
1366
- if (1 === t3 ? Qt.delete(a2) : Qt.set(a2, t3 - 1), 1 !== t3)
1367
- return;
1256
+ if (1 === t3 ? Qt.delete(a2) : Qt.set(a2, t3 - 1), 1 !== t3) return;
1368
1257
  let l3 = Xt.get(a2);
1369
1258
  l3 && (null === l3["aria-hidden"] ? a2.removeAttribute("aria-hidden") : a2.setAttribute("aria-hidden", l3["aria-hidden"]), a2.inert = l3.inert, Xt.delete(a2));
1370
1259
  });
@@ -1409,8 +1298,7 @@ S({ name: "Description", props: { as: { type: [Object, String], default: "p" },
1409
1298
  var n2;
1410
1299
  let a2 = null != (n2 = e2.id) ? n2 : `headlessui-description-${_e()}`, o2 = function() {
1411
1300
  let e3 = v(il, null);
1412
- if (null === e3)
1413
- throw new Error("Missing parent");
1301
+ if (null === e3) throw new Error("Missing parent");
1414
1302
  return e3;
1415
1303
  }();
1416
1304
  return y(() => m(o2.register(a2))), () => {
@@ -1430,13 +1318,11 @@ let cl = S({ name: "Portal", props: { as: { type: [Object, String], default: "di
1430
1318
  let n2 = s(null), a2 = d(() => Le(n2)), o2 = ll(), r2 = v(gl, null), i2 = s(true === o2 || null == r2 ? function(e3) {
1431
1319
  let t3 = Le(e3);
1432
1320
  if (!t3) {
1433
- if (null === e3)
1434
- return null;
1321
+ if (null === e3) return null;
1435
1322
  throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e3}`);
1436
1323
  }
1437
1324
  let l3 = t3.getElementById("headlessui-portal-root");
1438
- if (l3)
1439
- return l3;
1325
+ if (l3) return l3;
1440
1326
  let n3 = t3.createElement("div");
1441
1327
  return n3.setAttribute("id", "headlessui-portal-root"), t3.body.appendChild(n3);
1442
1328
  }(n2.value) : r2.resolveTarget());
@@ -1449,8 +1335,7 @@ let cl = S({ name: "Portal", props: { as: { type: [Object, String], default: "di
1449
1335
  });
1450
1336
  let c2 = v(pl, null), g2 = false, f2 = D();
1451
1337
  return p(n2, () => {
1452
- if (g2 || !c2)
1453
- return;
1338
+ if (g2 || !c2) return;
1454
1339
  let e3 = je(n2);
1455
1340
  e3 && (m(c2.register(e3), f2), g2 = true);
1456
1341
  }), m(() => {
@@ -1458,10 +1343,9 @@ let cl = S({ name: "Portal", props: { as: { type: [Object, String], default: "di
1458
1343
  let l3 = null == (e3 = a2.value) ? void 0 : e3.getElementById("headlessui-portal-root");
1459
1344
  !l3 || i2.value !== l3 || ul(i2.value, (e4) => e4 - 1) || i2.value.children.length > 0 || null == (t3 = i2.value.parentElement) || t3.removeChild(i2.value);
1460
1345
  }), () => {
1461
- if (!u2.value || null === i2.value)
1462
- return null;
1346
+ if (!u2.value || null === i2.value) return null;
1463
1347
  let a3 = { ref: n2, "data-headlessui-portal": "" };
1464
- return w(E, { to: i2.value }, dt({ ourProps: a3, theirProps: e2, slot: {}, attrs: l2, slots: t2, name: "Portal" }));
1348
+ return w(T, { to: i2.value }, dt({ ourProps: a3, theirProps: e2, slot: {}, attrs: l2, slots: t2, name: "Portal" }));
1465
1349
  };
1466
1350
  } }), pl = Symbol("PortalParentContext");
1467
1351
  let gl = Symbol("PortalGroupContext"), fl = S({ name: "PortalGroup", props: { as: { type: [Object, String], default: "template" }, target: { type: Object, default: null } }, setup(e2, { attrs: t2, slots: l2 }) {
@@ -1488,11 +1372,9 @@ let bl = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", yl = S({ name: "Dialog", inheri
1488
1372
  u2.value = true;
1489
1373
  });
1490
1374
  let c2 = false, p2 = d(() => "dialog" === e2.role || "alertdialog" === e2.role ? e2.role : (c2 || (c2 = true, console.warn(`Invalid role [${p2}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog")), g2 = s(0), f2 = yt(), m2 = d(() => e2.open === bl && null !== f2 ? (f2.value & bt.Open) === bt.Open : e2.open), x2 = s(null), k2 = d(() => Le(x2));
1491
- if (a2({ el: x2, $el: x2 }), e2.open === bl && null === f2)
1492
- throw new Error("You forgot to provide an `open` prop to the `Dialog`.");
1493
- if ("boolean" != typeof m2.value)
1494
- throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${m2.value === bl ? void 0 : e2.open}`);
1495
- let O2 = d(() => u2.value && m2.value ? 0 : 1), M2 = d(() => 0 === O2.value), D2 = d(() => g2.value > 1), E2 = null !== v(vl, null), [T2, I2] = function() {
1375
+ if (a2({ el: x2, $el: x2 }), e2.open === bl && null === f2) throw new Error("You forgot to provide an `open` prop to the `Dialog`.");
1376
+ if ("boolean" != typeof m2.value) throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${m2.value === bl ? void 0 : e2.open}`);
1377
+ let O2 = d(() => u2.value && m2.value ? 0 : 1), M2 = d(() => 0 === O2.value), D2 = d(() => g2.value > 1), T2 = null !== v(vl, null), [E2, I2] = function() {
1496
1378
  let e3 = v(pl, null), t3 = s([]);
1497
1379
  function l3(l4) {
1498
1380
  let n4 = t3.value.indexOf(l4);
@@ -1510,20 +1392,16 @@ let bl = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", yl = S({ name: "Dialog", inheri
1510
1392
  function o3() {
1511
1393
  var l4, o4, r3;
1512
1394
  let i3 = [];
1513
- for (let t4 of e3)
1514
- null !== t4 && (t4 instanceof HTMLElement ? i3.push(t4) : "value" in t4 && t4.value instanceof HTMLElement && i3.push(t4.value));
1515
- if (null != t3 && t3.value)
1516
- for (let e4 of t3.value)
1517
- i3.push(e4);
1518
- for (let e4 of null != (l4 = null == a3 ? void 0 : a3.querySelectorAll("html > *, body > *")) ? l4 : [])
1519
- e4 !== document.body && e4 !== document.head && e4 instanceof HTMLElement && "headlessui-portal-root" !== e4.id && (e4.contains(je(n3)) || e4.contains(null == (r3 = null == (o4 = je(n3)) ? void 0 : o4.getRootNode()) ? void 0 : r3.host) || i3.some((t4) => e4.contains(t4)) || i3.push(e4));
1395
+ for (let t4 of e3) null !== t4 && (t4 instanceof HTMLElement ? i3.push(t4) : "value" in t4 && t4.value instanceof HTMLElement && i3.push(t4.value));
1396
+ if (null != t3 && t3.value) for (let e4 of t3.value) i3.push(e4);
1397
+ for (let e4 of null != (l4 = null == a3 ? void 0 : a3.querySelectorAll("html > *, body > *")) ? l4 : []) e4 !== document.body && e4 !== document.head && e4 instanceof HTMLElement && "headlessui-portal-root" !== e4.id && (e4.contains(je(n3)) || e4.contains(null == (r3 = null == (o4 = je(n3)) ? void 0 : o4.getRootNode()) ? void 0 : r3.host) || i3.some((t4) => e4.contains(t4)) || i3.push(e4));
1520
1398
  return i3;
1521
1399
  }
1522
1400
  return { resolveContainers: o3, contains: (e4) => o3().some((t4) => t4.contains(e4)), mainTreeNodeRef: n3, MainTreeNode: () => null != l3 ? null : w(vt, { features: mt.Hidden, ref: n3 }) };
1523
- }({ portals: T2, defaultContainers: [d(() => {
1401
+ }({ portals: E2, defaultContainers: [d(() => {
1524
1402
  var e3;
1525
1403
  return null != (e3 = V2.panelRef.value) ? e3 : x2.value;
1526
- })] }), R2 = d(() => D2.value ? "parent" : "leaf"), B2 = d(() => null !== f2 && (f2.value & bt.Closing) === bt.Closing), A2 = d(() => !E2 && !B2.value && M2.value), L2 = d(() => {
1404
+ })] }), R2 = d(() => D2.value ? "parent" : "leaf"), B2 = d(() => null !== f2 && (f2.value & bt.Closing) === bt.Closing), A2 = d(() => !T2 && !B2.value && M2.value), L2 = d(() => {
1527
1405
  var e3, t3, l3;
1528
1406
  return null != (l3 = Array.from(null != (t3 = null == (e3 = k2.value) ? void 0 : e3.querySelectorAll("body > *")) ? t3 : []).find((e4) => "headlessui-portal-root" !== e4.id && (e4.contains(je(j2)) && e4 instanceof HTMLElement))) ? l3 : null;
1529
1407
  });
@@ -1533,8 +1411,7 @@ let bl = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", yl = S({ name: "Dialog", inheri
1533
1411
  return null != (l3 = Array.from(null != (t3 = null == (e3 = k2.value) ? void 0 : e3.querySelectorAll("[data-headlessui-portal]")) ? t3 : []).find((e4) => e4.contains(je(j2)) && e4 instanceof HTMLElement)) ? l3 : null;
1534
1412
  });
1535
1413
  el(N2, F2), rl({ type: "Dialog", enabled: d(() => 0 === O2.value), element: x2, onUpdate: (e3, t3) => {
1536
- if ("Dialog" === t3)
1537
- return Pe(e3, { [ol.Add]: () => g2.value += 1, [ol.Remove]: () => g2.value -= 1 });
1414
+ if ("Dialog" === t3) return Pe(e3, { [ol.Add]: () => g2.value += 1, [ol.Remove]: () => g2.value -= 1 });
1538
1415
  } });
1539
1416
  let z2 = sl({ name: "DialogDescription", slot: d(() => ({ open: m2.value })) }), $2 = s(null), V2 = { titleId: $2, panelRef: s(null), dialogState: O2, setTitleId(e3) {
1540
1417
  $2.value !== e3 && ($2.value = e3);
@@ -1550,16 +1427,14 @@ let bl = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", yl = S({ name: "Dialog", inheri
1550
1427
  Vt(null == (r2 = k2.value) ? void 0 : r2.defaultView, "keydown", (e3) => {
1551
1428
  Y2.value && (e3.defaultPrevented || e3.key === wt.Escape && (e3.preventDefault(), e3.stopPropagation(), V2.close()));
1552
1429
  });
1553
- let q2 = d(() => !(B2.value || 0 !== O2.value || E2));
1430
+ let q2 = d(() => !(B2.value || 0 !== O2.value || T2));
1554
1431
  return Zt(k2, q2, (e3) => {
1555
1432
  var t3;
1556
1433
  return { containers: [...null != (t3 = e3.containers) ? t3 : [], _2] };
1557
1434
  }), b((e3) => {
1558
- if (0 !== O2.value)
1559
- return;
1435
+ if (0 !== O2.value) return;
1560
1436
  let t3 = je(x2);
1561
- if (!t3)
1562
- return;
1437
+ if (!t3) return;
1563
1438
  let l3 = new ResizeObserver((e4) => {
1564
1439
  for (let t4 of e4) {
1565
1440
  let e5 = t4.target.getBoundingClientRect();
@@ -1586,8 +1461,7 @@ S({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div"
1586
1461
  var a2;
1587
1462
  let o2 = null != (a2 = e2.id) ? a2 : `headlessui-dialog-backdrop-${_e()}`, r2 = hl("DialogBackdrop"), i2 = s(null);
1588
1463
  return n2({ el: i2, $el: i2 }), y(() => {
1589
- if (null === r2.panelRef.value)
1590
- throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.");
1464
+ if (null === r2.panelRef.value) throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.");
1591
1465
  }), () => {
1592
1466
  let { ...n3 } = e2, a3 = { id: o2, ref: i2, "aria-hidden": true };
1593
1467
  return w(nl, { force: true }, () => w(cl, () => dt({ ourProps: a3, theirProps: { ...t2, ...n3 }, slot: { open: 0 === r2.dialogState.value }, attrs: t2, slots: l2, name: "DialogBackdrop" })));
@@ -1656,30 +1530,26 @@ let Ml = S({ name: "Disclosure", props: { as: { type: [Object, String], default:
1656
1530
  }
1657
1531
  function p2(t3) {
1658
1532
  var l3;
1659
- if (!e2.disabled)
1660
- if (r2.value)
1661
- switch (t3.key) {
1662
- case wt.Space:
1663
- case wt.Enter:
1664
- t3.preventDefault(), t3.stopPropagation(), a2.toggleDisclosure(), null == (l3 = je(a2.button)) || l3.focus();
1665
- }
1666
- else
1667
- switch (t3.key) {
1668
- case wt.Space:
1669
- case wt.Enter:
1670
- t3.preventDefault(), t3.stopPropagation(), a2.toggleDisclosure();
1671
- }
1533
+ if (!e2.disabled) if (r2.value) switch (t3.key) {
1534
+ case wt.Space:
1535
+ case wt.Enter:
1536
+ t3.preventDefault(), t3.stopPropagation(), a2.toggleDisclosure(), null == (l3 = je(a2.button)) || l3.focus();
1537
+ }
1538
+ else switch (t3.key) {
1539
+ case wt.Space:
1540
+ case wt.Enter:
1541
+ t3.preventDefault(), t3.stopPropagation(), a2.toggleDisclosure();
1542
+ }
1672
1543
  }
1673
1544
  function g2(e3) {
1674
- if (e3.key === wt.Space)
1675
- e3.preventDefault();
1545
+ if (e3.key === wt.Space) e3.preventDefault();
1676
1546
  }
1677
1547
  return () => {
1678
1548
  var n3;
1679
1549
  let o3 = { open: 0 === a2.disclosureState.value }, { id: s2, ...d2 } = e2;
1680
1550
  return dt({ ourProps: r2.value ? { ref: i2, type: u2.value, onClick: c2, onKeydown: p2 } : { id: null != (n3 = a2.buttonId.value) ? n3 : s2, ref: i2, type: u2.value, "aria-expanded": 0 === a2.disclosureState.value, "aria-controls": 0 === a2.disclosureState.value || je(a2.panel) ? a2.panelId.value : void 0, disabled: !!e2.disabled || void 0, onClick: c2, onKeydown: p2, onKeyup: g2 }, theirProps: d2, slot: o3, attrs: t2, slots: l2, name: "DisclosureButton" });
1681
1551
  };
1682
- } }), El = S({ name: "DisclosurePanel", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: false }, unmount: { type: Boolean, default: true }, id: { type: String, default: null } }, setup(e2, { attrs: t2, slots: l2, expose: n2 }) {
1552
+ } }), Tl = S({ name: "DisclosurePanel", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: false }, unmount: { type: Boolean, default: true }, id: { type: String, default: null } }, setup(e2, { attrs: t2, slots: l2, expose: n2 }) {
1683
1553
  let a2 = Cl("DisclosurePanel");
1684
1554
  y(() => {
1685
1555
  null !== e2.id && (a2.panelId.value = e2.id);
@@ -1692,31 +1562,26 @@ let Ml = S({ name: "Disclosure", props: { as: { type: [Object, String], default:
1692
1562
  let o3 = { open: 0 === a2.disclosureState.value, close: a2.close }, { id: i2, ...s2 } = e2;
1693
1563
  return dt({ ourProps: { id: null != (n3 = a2.panelId.value) ? n3 : i2, ref: a2.panel }, theirProps: s2, slot: o3, attrs: t2, slots: l2, features: it.RenderStrategy | it.Static, visible: r2.value, name: "DisclosurePanel" });
1694
1564
  };
1695
- } }), Tl = /([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;
1565
+ } }), El = /([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;
1696
1566
  function Il(e2) {
1697
1567
  var t2, l2;
1698
1568
  let n2 = null != (t2 = e2.innerText) ? t2 : "", a2 = e2.cloneNode(true);
1699
- if (!(a2 instanceof HTMLElement))
1700
- return n2;
1569
+ if (!(a2 instanceof HTMLElement)) return n2;
1701
1570
  let o2 = false;
1702
- for (let e3 of a2.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))
1703
- e3.remove(), o2 = true;
1571
+ for (let e3 of a2.querySelectorAll('[hidden],[aria-hidden],[role="img"]')) e3.remove(), o2 = true;
1704
1572
  let r2 = o2 ? null != (l2 = a2.innerText) ? l2 : "" : n2;
1705
- return Tl.test(r2) && (r2 = r2.replace(Tl, "")), r2;
1573
+ return El.test(r2) && (r2 = r2.replace(El, "")), r2;
1706
1574
  }
1707
1575
  function _l(e2) {
1708
1576
  let t2 = s(""), l2 = s("");
1709
1577
  return () => {
1710
1578
  let n2 = je(e2);
1711
- if (!n2)
1712
- return "";
1579
+ if (!n2) return "";
1713
1580
  let a2 = n2.innerText;
1714
- if (t2.value === a2)
1715
- return l2.value;
1581
+ if (t2.value === a2) return l2.value;
1716
1582
  let o2 = function(e3) {
1717
1583
  let t3 = e3.getAttribute("aria-label");
1718
- if ("string" == typeof t3)
1719
- return t3.trim();
1584
+ if ("string" == typeof t3) return t3.trim();
1720
1585
  let l3 = e3.getAttribute("aria-labelledby");
1721
1586
  if (l3) {
1722
1587
  let e4 = l3.split(" ").map((e5) => {
@@ -1727,8 +1592,7 @@ function _l(e2) {
1727
1592
  }
1728
1593
  return null;
1729
1594
  }).filter(Boolean);
1730
- if (e4.length > 0)
1731
- return e4.join(", ");
1595
+ if (e4.length > 0) return e4.join(", ");
1732
1596
  }
1733
1597
  return Il(e3).trim();
1734
1598
  }(n2).trim().toLowerCase();
@@ -1801,8 +1665,7 @@ let Al = S({ name: "Menu", props: { as: { type: [Object, String], default: "temp
1801
1665
  }
1802
1666
  }
1803
1667
  function s2(e3) {
1804
- if (e3.key === wt.Space)
1805
- e3.preventDefault();
1668
+ if (e3.key === wt.Space) e3.preventDefault();
1806
1669
  }
1807
1670
  function u2(t3) {
1808
1671
  e2.disabled || (0 === r2.menuState.value ? (r2.closeMenu(), h(() => {
@@ -1829,8 +1692,7 @@ let Al = S({ name: "Menu", props: { as: { type: [Object, String], default: "temp
1829
1692
  var t3;
1830
1693
  switch (i2.value && clearTimeout(i2.value), e3.key) {
1831
1694
  case wt.Space:
1832
- if ("" !== r2.searchQuery.value)
1833
- return e3.preventDefault(), e3.stopPropagation(), r2.search(e3.key);
1695
+ if ("" !== r2.searchQuery.value) return e3.preventDefault(), e3.stopPropagation(), r2.search(e3.key);
1834
1696
  case wt.Enter:
1835
1697
  if (e3.preventDefault(), e3.stopPropagation(), null !== r2.activeItemIndex.value) {
1836
1698
  null == (t3 = je(r2.items.value[r2.activeItemIndex.value].dataRef.domRef)) || t3.click();
@@ -1863,8 +1725,7 @@ let Al = S({ name: "Menu", props: { as: { type: [Object, String], default: "temp
1863
1725
  }
1864
1726
  }
1865
1727
  function c2(e3) {
1866
- if (e3.key === wt.Space)
1867
- e3.preventDefault();
1728
+ if (e3.key === wt.Space) e3.preventDefault();
1868
1729
  }
1869
1730
  n2({ el: r2.itemsRef, $el: r2.itemsRef }), rt({ container: d(() => je(r2.itemsRef)), enabled: d(() => 0 === r2.menuState.value), accept: (e3) => "menuitem" === e3.getAttribute("role") ? NodeFilter.FILTER_REJECT : e3.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT, walk(e3) {
1870
1731
  e3.setAttribute("role", "none");
@@ -1883,13 +1744,11 @@ let Al = S({ name: "Menu", props: { as: { type: [Object, String], default: "temp
1883
1744
  return c2();
1884
1745
  }, domRef: i2 }));
1885
1746
  function g2(t3) {
1886
- if (e2.disabled)
1887
- return t3.preventDefault();
1747
+ if (e2.disabled) return t3.preventDefault();
1888
1748
  r2.closeMenu(), qe(je(r2.buttonRef));
1889
1749
  }
1890
1750
  function f2() {
1891
- if (e2.disabled)
1892
- return r2.goToItem(Ct.Nothing);
1751
+ if (e2.disabled) return r2.goToItem(Ct.Nothing);
1893
1752
  r2.goToItem(Ct.Specific, o2);
1894
1753
  }
1895
1754
  y(() => r2.registerItem(o2, p2)), m(() => r2.unregisterItem(o2)), b(() => {
@@ -1959,9 +1818,7 @@ let Vl = S({ name: "Label", props: { as: { type: [Object, String], default: "lab
1959
1818
  var t3, l3;
1960
1819
  let n3 = null != (t3 = null == e4 ? void 0 : e4.form) ? t3 : e4.closest("form");
1961
1820
  if (n3) {
1962
- for (let t4 of n3.elements)
1963
- if (t4 !== e4 && ("INPUT" === t4.tagName && "submit" === t4.type || "BUTTON" === t4.tagName && "submit" === t4.type || "INPUT" === t4.nodeName && "image" === t4.type))
1964
- return void t4.click();
1821
+ for (let t4 of n3.elements) if (t4 !== e4 && ("INPUT" === t4.tagName && "submit" === t4.type || "BUTTON" === t4.tagName && "submit" === t4.type || "INPUT" === t4.nodeName && "image" === t4.type)) return void t4.click();
1965
1822
  null == (l3 = n3.requestSubmit) || l3.call(n3);
1966
1823
  }
1967
1824
  }(e3.currentTarget);
@@ -1976,11 +1833,10 @@ let Vl = S({ name: "Label", props: { as: { type: [Object, String], default: "lab
1976
1833
  });
1977
1834
  return y(() => {
1978
1835
  p([C2], () => {
1979
- if (C2.value && void 0 !== e2.defaultChecked)
1980
- return C2.value.addEventListener("reset", t3), () => {
1981
- var e3;
1982
- null == (e3 = C2.value) || e3.removeEventListener("reset", t3);
1983
- };
1836
+ if (C2.value && void 0 !== e2.defaultChecked) return C2.value.addEventListener("reset", t3), () => {
1837
+ var e3;
1838
+ null == (e3 = C2.value) || e3.removeEventListener("reset", t3);
1839
+ };
1984
1840
  function t3() {
1985
1841
  c2(e2.defaultChecked);
1986
1842
  }
@@ -2001,16 +1857,14 @@ function Gl(e2, t2, l2, n2, a2, o2) {
2001
1857
  let r2 = De(), i2 = void 0 !== o2 ? /* @__PURE__ */ function(e3) {
2002
1858
  let t3 = { called: false };
2003
1859
  return (...l3) => {
2004
- if (!t3.called)
2005
- return t3.called = true, e3(...l3);
1860
+ if (!t3.called) return t3.called = true, e3(...l3);
2006
1861
  };
2007
1862
  }(o2) : () => {
2008
1863
  };
2009
1864
  return Kl(e2, ...a2), Wl(e2, ...t2, ...l2), r2.nextFrame(() => {
2010
1865
  Kl(e2, ...l2), Wl(e2, ...n2), r2.add(function(e3, t3) {
2011
1866
  let l3 = De();
2012
- if (!e3)
2013
- return l3.dispose;
1867
+ if (!e3) return l3.dispose;
2014
1868
  let { transitionDuration: n3, transitionDelay: a3 } = getComputedStyle(e3), [o3, r3] = [n3, a3].map((e4) => {
2015
1869
  let [t4 = 0] = e4.split(",").filter(Boolean).map((e5) => e5.includes("ms") ? parseFloat(e5) : 1e3 * parseFloat(e5)).sort((e5, t5) => t5 - e5);
2016
1870
  return t4;
@@ -2057,31 +1911,27 @@ let nn = it.RenderStrategy, an = S({ props: { as: { type: [Object, String], defa
2057
1911
  function g2() {
2058
1912
  r2.value &= ~bt.Closing, t2("afterLeave");
2059
1913
  }
2060
- if (null === v(Xl, null) && null !== yt())
2061
- return () => w(rn, { ...e2, onBeforeEnter: i2, onAfterEnter: u2, onBeforeLeave: c2, onAfterLeave: g2 }, a2);
1914
+ if (null === v(Xl, null) && null !== yt()) return () => w(rn, { ...e2, onBeforeEnter: i2, onAfterEnter: u2, onBeforeLeave: c2, onAfterLeave: g2 }, a2);
2062
1915
  let f2 = s(null), h2 = d(() => e2.unmount ? st.Unmount : st.Hidden);
2063
1916
  o2({ el: f2, $el: f2 });
2064
1917
  let { show: x2, appear: k2 } = function() {
2065
1918
  let e3 = v(Xl, null);
2066
- if (null === e3)
2067
- throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");
1919
+ if (null === e3) throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");
2068
1920
  return e3;
2069
1921
  }(), { register: S2, unregister: O2 } = function() {
2070
1922
  let e3 = v(en, null);
2071
- if (null === e3)
2072
- throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");
1923
+ if (null === e3) throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");
2073
1924
  return e3;
2074
- }(), M2 = s(x2.value ? "visible" : "hidden"), D2 = { value: true }, E2 = _e(), T2 = { value: false }, I2 = ln(() => {
2075
- !T2.value && "hidden" !== M2.value && (M2.value = "hidden", O2(E2), g2());
1925
+ }(), M2 = s(x2.value ? "visible" : "hidden"), D2 = { value: true }, T2 = _e(), E2 = { value: false }, I2 = ln(() => {
1926
+ !E2.value && "hidden" !== M2.value && (M2.value = "hidden", O2(T2), g2());
2076
1927
  });
2077
1928
  y(() => {
2078
- let e3 = S2(E2);
1929
+ let e3 = S2(T2);
2079
1930
  m(e3);
2080
1931
  }), b(() => {
2081
- if (h2.value === st.Hidden && E2) {
2082
- if (x2.value && "visible" !== M2.value)
2083
- return void (M2.value = "visible");
2084
- Pe(M2.value, { hidden: () => O2(E2), visible: () => S2(E2) });
1932
+ if (h2.value === st.Hidden && T2) {
1933
+ if (x2.value && "visible" !== M2.value) return void (M2.value = "visible");
1934
+ Pe(M2.value, { hidden: () => O2(T2), visible: () => S2(T2) });
2085
1935
  }
2086
1936
  });
2087
1937
  let _2 = Zl(e2.enter), j2 = Zl(e2.enterFrom), P2 = Zl(e2.enterTo), R2 = Zl(e2.entered), B2 = Zl(e2.leave), A2 = Zl(e2.leaveFrom), L2 = Zl(e2.leaveTo);
@@ -2089,18 +1939,17 @@ let nn = it.RenderStrategy, an = S({ props: { as: { type: [Object, String], defa
2089
1939
  b(() => {
2090
1940
  if ("visible" === M2.value) {
2091
1941
  let e3 = je(f2);
2092
- if (e3 instanceof Comment && "" === e3.data)
2093
- throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
1942
+ if (e3 instanceof Comment && "" === e3.data) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
2094
1943
  }
2095
1944
  });
2096
1945
  }), y(() => {
2097
1946
  p([x2], (e3, t3, l3) => {
2098
1947
  (function(e4) {
2099
1948
  let t4 = D2.value && !k2.value, l4 = je(f2);
2100
- !l4 || !(l4 instanceof HTMLElement) || t4 || (T2.value = true, x2.value && i2(), x2.value || c2(), e4(x2.value ? Gl(l4, _2, j2, P2, R2, (e5) => {
2101
- T2.value = false, e5 === Jl.Finished && u2();
1949
+ !l4 || !(l4 instanceof HTMLElement) || t4 || (E2.value = true, x2.value && i2(), x2.value || c2(), e4(x2.value ? Gl(l4, _2, j2, P2, R2, (e5) => {
1950
+ E2.value = false, e5 === Jl.Finished && u2();
2102
1951
  }) : Gl(l4, B2, A2, L2, R2, (e5) => {
2103
- T2.value = false, e5 === Jl.Finished && (tn(I2) || (M2.value = "hidden", O2(E2), g2()));
1952
+ E2.value = false, e5 === Jl.Finished && (tn(I2) || (M2.value = "hidden", O2(T2), g2()));
2104
1953
  })));
2105
1954
  })(l3), D2.value = false;
2106
1955
  }, { immediate: true });
@@ -2111,8 +1960,7 @@ let nn = it.RenderStrategy, an = S({ props: { as: { type: [Object, String], defa
2111
1960
  } }), on = an, rn = S({ inheritAttrs: false, props: { as: { type: [Object, String], default: "div" }, show: { type: [Boolean], default: null }, unmount: { type: [Boolean], default: true }, appear: { type: [Boolean], default: false }, enter: { type: [String], default: "" }, enterFrom: { type: [String], default: "" }, enterTo: { type: [String], default: "" }, entered: { type: [String], default: "" }, leave: { type: [String], default: "" }, leaveFrom: { type: [String], default: "" }, leaveTo: { type: [String], default: "" } }, emits: { beforeEnter: () => true, afterEnter: () => true, beforeLeave: () => true, afterLeave: () => true }, setup(e2, { emit: t2, attrs: l2, slots: n2 }) {
2112
1961
  let a2 = yt(), o2 = d(() => null === e2.show && null !== a2 ? (a2.value & bt.Open) === bt.Open : e2.show);
2113
1962
  b(() => {
2114
- if (![true, false].includes(o2.value))
2115
- throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.');
1963
+ if (![true, false].includes(o2.value)) throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.');
2116
1964
  });
2117
1965
  let r2 = s(o2.value ? "visible" : "hidden"), i2 = ln(() => {
2118
1966
  r2.value = "hidden";
@@ -2180,12 +2028,12 @@ function Cn(t2, l2) {
2180
2028
  function On(t2, l2) {
2181
2029
  return e(), a("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", "aria-hidden": "true", "data-slot": "icon" }, [i("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M6 18 18 6M6 6l12 12" })]);
2182
2030
  }
2183
- const Mn = { class: "py-1" }, Dn = ["onClick"], En = { key: 1, class: "animate-pulse px-4 py-2 bg-gray-200 rounded-md flex inline-flex items-center relative inline-block text-left" }, Tn = i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28" }, null, -1), In = { name: "uiDropdown" }, _n = Object.assign(In, { props: { items: { type: Array, required: true }, position: { type: String, default: "left" }, disabled: Boolean, label: String, loading: { type: Boolean, default: true } }, emits: ["optionSelected"], setup(l2, { emit: r2 }) {
2031
+ const Mn = { class: "py-1" }, Dn = ["onClick"], Tn = { key: 1, class: "animate-pulse px-4 py-2 bg-gray-200 rounded-md flex inline-flex items-center relative inline-block text-left" }, En = i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28" }, null, -1), In = { name: "uiDropdown" }, _n = Object.assign(In, { props: { items: { type: Array, required: true }, position: { type: String, default: "left" }, disabled: Boolean, label: String, loading: { type: Boolean, default: true } }, emits: ["optionSelected"], setup(l2, { emit: r2 }) {
2184
2032
  const s2 = r2, c2 = l2, p2 = d(() => {
2185
2033
  let e2 = c2.items.find((e3) => true === e3.active);
2186
2034
  return e2 ? e2.name : c2.label;
2187
2035
  });
2188
- return (r3, d2) => l2.loading ? (e(), a("div", En, [Tn, o(u(gn), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5 text-gray-200 dark:text-gray-300" })])) : (e(), t(u(Al), { key: 0, as: "div", class: n(["relative inline-block text-left", { "opacity-25": l2.disabled }]) }, { default: T(() => [i("div", null, [o(u(Ll), { class: "inline-flex justify-between w-full rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-indigo-500" }, { default: T(() => [I(_(p2.value) + " ", 1), o(u(gn), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5" })]), _: 1 })]), o(j, { "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: T(() => [l2.disabled ? R("", true) : (e(), t(u(Fl), { key: 0, class: n([{ "right-0": "right" === l2.position, "left-0": "left" === l2.position }, "origin-top-right absolute mt-2 w-56 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none z-10"]) }, { default: T(() => [i("div", Mn, [(e(true), a(k, null, P(l2.items, (l3, a2) => (e(), t(u(Nl), { key: a2 }, { default: T(() => [i("a", { onClick: (e2) => ((e3) => {
2036
+ return (r3, d2) => l2.loading ? (e(), a("div", Tn, [En, o(u(gn), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5 text-gray-200 dark:text-gray-300" })])) : (e(), t(u(Al), { key: 0, as: "div", class: n(["relative inline-block text-left", { "opacity-25": l2.disabled }]) }, { default: E(() => [i("div", null, [o(u(Ll), { class: "inline-flex justify-between w-full rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-indigo-500" }, { default: E(() => [I(_(p2.value) + " ", 1), o(u(gn), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5" })]), _: 1 })]), o(j, { "enter-active-class": "transition ease-out duration-100", "enter-from-class": "transform opacity-0 scale-95", "enter-to-class": "transform opacity-100 scale-100", "leave-active-class": "transition ease-in duration-75", "leave-from-class": "transform opacity-100 scale-100", "leave-to-class": "transform opacity-0 scale-95" }, { default: E(() => [l2.disabled ? R("", true) : (e(), t(u(Fl), { key: 0, class: n([{ "right-0": "right" === l2.position, "left-0": "left" === l2.position }, "origin-top-right absolute mt-2 w-56 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none z-10"]) }, { default: E(() => [i("div", Mn, [(e(true), a(k, null, P(l2.items, (l3, a2) => (e(), t(u(Nl), { key: a2 }, { default: E(() => [i("a", { onClick: (e2) => ((e3) => {
2189
2037
  c2.disabled || s2("optionSelected", e3.value);
2190
2038
  })(l3), class: n([l3.active ? "bg-gray-100 text-gray-900" : "text-gray-700", "block px-4 py-2 text-sm cursor-pointer"]) }, _(l3.name), 11, Dn)]), _: 2 }, 1024))), 128))])]), _: 1 }, 8, ["class"]))]), _: 1 })]), _: 1 }, 8, ["class"]));
2191
2039
  } }), jn = { key: 0 }, Pn = { class: "flex justify-between" }, Rn = { key: 0, class: "block text-sm font-medium text-gray-700" }, Bn = { key: 1, class: "text-[10px] text-gray-500 uppercase justify-self-end" }, An = ["disabled", "name", "placeholder", "type"], Ln = { key: 2, class: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none" }, Fn = { key: 1, class: "animate-pulse" }, Nn = { key: 0, class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/3 md:w-1/4 mb-1.5" }, zn = i("div", { class: "animate-pulse px-4 py-3.5 bg-gray-200 rounded-md flex inline-flex items-center relative inline-block text-left w-full" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28" })], -1), $n = { name: "uiInput" }, Vn = Object.assign($n, { props: { label: String, type: { type: String, default: "text" }, name: String, placeholder: { type: String, default: "..." }, icon: { type: Function, default: () => {
@@ -2213,7 +2061,7 @@ const Mn = { class: "py-1" }, Dn = ["onClick"], En = { key: 1, class: "animate-p
2213
2061
  }, ["prevent"])), onDrop: F(p2, ["prevent"]) }, [i("div", Wn, [o(G, { icon: t2.icon, size: "massive", color: "gray", "aria-hidden": "true", class: "mb-4", loading: t2.loading }, null, 8, ["icon", "loading"]), i("div", Kn, [i("label", { for: t2.id, 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" }, [i("span", null, _(t2.placeholder), 1), i("input", { id: t2.id, name: t2.name, type: "file", class: "sr-only", accept: t2.accept, multiple: "", onChange: g2 }, null, 40, Gn)], 8, Jn), i("p", Zn, _(t2.dragAndDrop), 1)]), i("p", Xn, _(t2.fileTypesAndSizes), 1), B(i("p", { class: "font-bold text-xs uppercase block p-2 bg-gray-200 rounded" }, _(u(r2)), 513), [[L, null !== u(r2)]])])], 34), B(i("p", Qn, [o(G, { icon: u(Cn), color: "red", class: "mr-2", loading: t2.loading }, null, 8, ["icon", "loading"]), I(_(t2.error), 1)], 512), [[L, t2.error]])]));
2214
2062
  } }), aa = { class: "relative mt-1" }, oa = { key: 1, class: "animate-pulse px-4 py-2.5 bg-gray-200 rounded-md flex justify-between items-center w-full" }, ra = i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1), ia = { name: "uiSelect" }, sa = Object.assign(ia, { props: { items: { type: Array, required: true }, label: String, error: String, color: String, select: Object, loading: { type: Boolean, default: true }, disabled: { type: Boolean, default: false } }, emits: ["selectChanged"], setup(l2, { emit: r2 }) {
2215
2063
  const c2 = s(""), p2 = r2, g2 = l2, f2 = d(() => "" === c2.value ? g2.items : g2.items.filter((e2) => e2.name.toLowerCase().includes(c2.value.toLowerCase()))), m2 = d(() => g2.select);
2216
- return (r3, s2) => l2.loading ? (e(), a("div", oa, [ra, o(u(vn), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5 text-gray-300 dark:text-gray-400" })])) : (e(), t(u(At), { key: 0, modelValue: m2.value, "onUpdate:modelValue": [s2[1] || (s2[1] = (e2) => m2.value = e2), s2[2] || (s2[2] = (e2) => p2("selectChanged", e2))], disabled: l2.disabled, as: "div" }, { default: T(() => [o(u(Lt), { class: "block text-sm font-medium" }, { default: T(() => [I(_(l2.label), 1)]), _: 1 }), i("div", aa, [o(u(Nt), { "display-value": (e2) => e2 == null ? void 0 : e2.name, class: n([{ "border-gray-300": "danger" !== l2.color || "warning" !== l2.color || "success" !== l2.color, "border-red-400": "danger" === l2.color, "border-yellow-400": "warning" === l2.color, "border-green-400": "success" === l2.color, "bg-gray-100": l2.disabled, "bg-white": !l2.disabled, "text-black": "danger" !== l2.color || "warning" !== l2.color || "success" !== l2.color, "text-gray-300": l2.disabled, "text-red-400": "danger" === l2.color, "text-yellow-400": "warning" === l2.color, "text-green-400": "success" === l2.color }, "w-full rounded-md border py-2 pl-3 pr-10 shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm"]), onChange: s2[0] || (s2[0] = (e2) => c2.value = e2.target.value) }, null, 8, ["display-value", "class"]), o(u(Ft), { class: "absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none" }, { default: T(() => [o(u(vn), { "aria-hidden": "true", class: "h-5 w-5 text-gray-400" })]), _: 1 }), f2.value.length > 0 ? (e(), t(u(zt), { 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: T(() => [(e(true), a(k, null, P(f2.value, (l3) => (e(), t(u($t), { key: l3.id, value: l3, as: "template" }, { default: T(({ active: t2, selected: r4 }) => [i("li", { class: n(["relative cursor-default select-none py-2 pl-3 pr-9", t2 ? "bg-indigo-600 text-white" : "text-gray-900"]) }, [i("span", { class: n(["block truncate", r4 && "font-semibold"]) }, _(l3.name), 3), r4 ? (e(), a("span", { key: 0, class: n(["absolute inset-y-0 right-0 flex items-center pr-4", t2 ? "text-white" : "text-indigo-600"]) }, [o(u(pn), { "aria-hidden": "true", class: "h-5 w-5", loading: true })], 2)) : R("", true)], 2)]), _: 2 }, 1032, ["value"]))), 128))]), _: 1 })) : R("", true)]), B(i("p", { class: n([{ "text-gray-400": "danger" !== l2.color || "warning" !== l2.color || "success" !== l2.color, "text-red-400": "danger" === l2.color, "text-yellow-400": "warning" === l2.color, "text-green-400": "success" === l2.color }, "mt-2 text-xs flex flex-row items-center"]) }, _(l2.error), 3), [[L, l2.error]])]), _: 1 }, 8, ["modelValue", "disabled"]));
2064
+ return (r3, s2) => l2.loading ? (e(), a("div", oa, [ra, o(u(vn), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5 text-gray-300 dark:text-gray-400" })])) : (e(), t(u(At), { key: 0, modelValue: m2.value, "onUpdate:modelValue": [s2[1] || (s2[1] = (e2) => m2.value = e2), s2[2] || (s2[2] = (e2) => p2("selectChanged", e2))], disabled: l2.disabled, as: "div" }, { default: E(() => [o(u(Lt), { class: "block text-sm font-medium" }, { default: E(() => [I(_(l2.label), 1)]), _: 1 }), i("div", aa, [o(u(Nt), { "display-value": (e2) => e2 == null ? void 0 : e2.name, class: n([{ "border-gray-300": "danger" !== l2.color || "warning" !== l2.color || "success" !== l2.color, "border-red-400": "danger" === l2.color, "border-yellow-400": "warning" === l2.color, "border-green-400": "success" === l2.color, "bg-gray-100": l2.disabled, "bg-white": !l2.disabled, "text-black": "danger" !== l2.color || "warning" !== l2.color || "success" !== l2.color, "text-gray-300": l2.disabled, "text-red-400": "danger" === l2.color, "text-yellow-400": "warning" === l2.color, "text-green-400": "success" === l2.color }, "w-full rounded-md border py-2 pl-3 pr-10 shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm"]), onChange: s2[0] || (s2[0] = (e2) => c2.value = e2.target.value) }, null, 8, ["display-value", "class"]), o(u(Ft), { class: "absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none" }, { default: E(() => [o(u(vn), { "aria-hidden": "true", class: "h-5 w-5 text-gray-400" })]), _: 1 }), f2.value.length > 0 ? (e(), t(u(zt), { key: 0, class: "absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm" }, { default: E(() => [(e(true), a(k, null, P(f2.value, (l3) => (e(), t(u($t), { key: l3.id, value: l3, as: "template" }, { default: E(({ active: t2, selected: r4 }) => [i("li", { class: n(["relative cursor-default select-none py-2 pl-3 pr-9", t2 ? "bg-indigo-600 text-white" : "text-gray-900"]) }, [i("span", { class: n(["block truncate", r4 && "font-semibold"]) }, _(l3.name), 3), r4 ? (e(), a("span", { key: 0, class: n(["absolute inset-y-0 right-0 flex items-center pr-4", t2 ? "text-white" : "text-indigo-600"]) }, [o(u(pn), { "aria-hidden": "true", class: "h-5 w-5", loading: true })], 2)) : R("", true)], 2)]), _: 2 }, 1032, ["value"]))), 128))]), _: 1 })) : R("", true)]), B(i("p", { class: n([{ "text-gray-400": "danger" !== l2.color || "warning" !== l2.color || "success" !== l2.color, "text-red-400": "danger" === l2.color, "text-yellow-400": "warning" === l2.color, "text-green-400": "success" === l2.color }, "mt-2 text-xs flex flex-row items-center"]) }, _(l2.error), 3), [[L, l2.error]])]), _: 1 }, 8, ["modelValue", "disabled"]));
2217
2065
  } }), da = { key: 1, class: "inline-flex items-center px-3 py-2.5 rounded text-xs font-medium leading-none animate-pulse bg-gray-200" }, ua = [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12" }, null, -1)], ca = { name: "uiTag" }, pa = Object.assign(ca, { props: { color: { type: String, default: "primary" }, loading: { type: Boolean, default: true }, event: String }, emits: ["tagEvent"], setup(t2, { emit: l2 }) {
2218
2066
  const o2 = l2, i2 = t2, s2 = () => {
2219
2067
  void 0 !== i2.event && o2("tagEvent", i2.event);
@@ -2228,10 +2076,10 @@ const Mn = { class: "py-1" }, Dn = ["onClick"], En = { key: 1, class: "animate-p
2228
2076
  }), (l3, r3) => t2.loading ? (e(), a("div", va, ha)) : (e(), a("div", ga, [t2.label ? (e(), a("label", fa, _(t2.label), 1)) : R("", true), i("div", { class: n({ "mt-1": t2.label }) }, [B(i("textarea", { disabled: t2.disabled, rows: "4", "onUpdate:modelValue": r3[0] || (r3[0] = (e2) => g2.value = e2), placeholder: t2.placeholder, class: n(["shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm rounded-md", { "border-gray-300": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "border-red-300": "danger" === t2.color, "border-yellow-400": "warning" === t2.color, "border-green-400": "success" === t2.color, "bg-gray-100": t2.disabled, "text-black": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "text-red-300": "danger" === t2.color, "text-yellow-400": "warning" === t2.color, "text-green-400": "success" === t2.color }]), onChange: c2 }, null, 42, ma), [[N, g2.value]])], 2), B(i("p", { class: n([{ "text-gray-300": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "text-red-300": "danger" === t2.color, "text-yellow-400": "warning" === t2.color, "text-green-400": "success" === t2.color }, "mt-2 text-xs flex flex-row items-center"]) }, [o(G, { icon: u(Cn), color: "red", class: "mr-2" }, null, 8, ["icon"]), I(_(t2.error), 1)], 2), [[L, t2.error]])]));
2229
2077
  } }), xa = { class: "text-sm font-medium text-gray-900" }, wa = { key: 0, class: "text-sm text-gray-500 ml-2" }, ka = { key: 1, class: "animate-pulse flex items-center" }, Sa = [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)], Ca = { name: "uiToggle" }, Oa = Object.assign(Ca, { props: { item: { type: Object, required: true }, checked: { type: Boolean, default: false }, disabled: { type: Boolean, default: false }, loading: { type: Boolean, default: true } }, setup(l2) {
2230
2078
  const r2 = s(l2.checked);
2231
- return (s2, d2) => l2.loading ? (e(), a("div", ka, Sa)) : (e(), t(u(Yl), { key: 0, as: "div", class: "flex items-center relative" }, { default: T(() => [o(u(ql), { disabled: l2.disabled, onClick: d2[0] || (d2[0] = (e2) => s2.$emit("toggleChanged", { item: l2.item, active: !r2.value })), modelValue: r2.value, "onUpdate:modelValue": d2[1] || (d2[1] = (e2) => r2.value = e2), class: n([r2.value ? "bg-indigo-600" : "bg-gray-200", "relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"]) }, { default: T(() => [i("span", { "aria-hidden": "true", class: n([r2.value ? "translate-x-5" : "translate-x-0", l2.disabled ? "bg-gray-300" : "", "pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out"]) }, null, 2)]), _: 1 }, 8, ["disabled", "modelValue", "class"]), o(u(Ul), { as: "span", class: "ml-3" }, { default: T(() => [i("span", xa, _(l2.item.title), 1), l2.item.subtitle ? (e(), a("span", wa, _(l2.item.subtitle), 1)) : R("", true)]), _: 1 }), l2.item.action ? (e(), a("span", { key: 0, class: "cursor-pointer text-indigo-600 hover:text-indigo-400 uppercase text-xs absolute right-0 bottom-0.5", onClick: d2[2] || (d2[2] = (e2) => s2.$emit("actionClicked", l2.item)) }, _(l2.item.action), 1)) : R("", true)]), _: 1 }));
2232
- } }), Ma = { key: 0, class: "flex flex-col" }, Da = { class: "flex" }, Ea = { class: "flex-shrink-0" }, Ta = { class: "ml-3" }, Ia = { class: "mt-4" }, _a = { class: "-mx-2 -my-1.5 flex" }, ja = ["onClick"], Pa = { key: 1, class: "flex flex-col animate-pulse" }, Ra = [z('<div class="p-4 border-l-4 bg-gray-100 border-gray-400 rounded"><div class="flex"><div class="flex-shrink-0"><div class="h-6 w-6 animate-pulse rounded-full bg-gray-200 dark:bg-gray-300"></div></div><div class="ml-3 w-full"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/3 mb-2"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full mb-2"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-3/5"></div></div></div></div>', 1)], Ba = { name: "uiAlert" }, Aa = Object.assign(Ba, { props: { actions: { type: Array }, title: { type: String }, type: { type: String, default: "info" }, loading: { type: Boolean, default: true } }, setup: (l2) => (o2, s2) => l2.loading ? (e(), a("div", Pa, Ra)) : (e(), a("div", Ma, [i("div", { class: n([{ "bg-indigo-50 border-indigo-400": "info" === l2.type, "bg-red-50 border-red-400": "danger" === l2.type, "bg-yellow-50 border-yellow-400": "warning" === l2.type, "bg-green-50 border-green-400": "success" === l2.type }, "p-4 border-l-4 rounded"]) }, [i("div", Da, [i("div", Ea, ["info" === l2.type ? (e(), t(u(wn), { key: 0, class: "h-8 w-8 text-indigo-400", "aria-hidden": "true" })) : R("", true), "danger" === l2.type ? (e(), t(u(Cn), { key: 1, class: "h-8 w-8 text-red-400", "aria-hidden": "true" })) : R("", true), "warning" === l2.type ? (e(), t(u(bn), { key: 2, class: "h-8 w-8 text-yellow-400", "aria-hidden": "true" })) : R("", true), "success" === l2.type ? (e(), t(u(cn), { key: 3, class: "h-8 w-8 text-green-400", "aria-hidden": "true" })) : R("", true)]), i("div", Ta, [i("h3", { class: n([{ "text-red-800": "danger" === l2.type, "text-yellow-800": "warning" === l2.type, "text-green-800": "success" === l2.type }, "text-sm font-medium"]) }, _(l2.title), 3), i("div", { class: n([{ "text-red-700": "danger" === l2.type, "text-yellow-700": "warning" === l2.type, "text-green-700": "success" === l2.type }, "mt-2 text-sm"]) }, [r(o2.$slots, "default")], 2), i("div", Ia, [i("div", _a, [(e(true), a(k, null, P(l2.actions, (t2, r2) => (e(), a("button", { onClick: (e2) => o2.$emit("alertEvent", t2.event), type: "button", key: r2, class: n([{ "bg-green-50 text-green-800 hover:bg-green-100 focus:ring-green-600 focus:ring-offset-green-50": "success" === l2.type, "bg-indigo-50 text-indigo-800 hover:bg-indigo-100 focus:ring-indigo-600 focus:ring-offset-indigo-50": "info" === l2.type, "bg-red-50 text-red-800 hover:bg-red-100 focus:ring-red-600 focus:ring-offset-red-50": "danger" === l2.type, "bg-yellow-50 text-yellow-800 hover:bg-yellow-100 focus:ring-yellow-600 focus:ring-offset-yellow-50": "warning" === l2.type }, "px-2 py-1.5 text-sm font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2"]) }, _(t2.name), 11, ja))), 128))])])])])], 2)])) }), La = { key: 0, class: "inline-flex", "aria-label": "Breadcrumb" }, Fa = { role: "list", class: "flex items-center space-x-4 text-xs" }, Na = { key: 0 }, za = ["onClick"], $a = { key: 1, class: "flex items-center" }, Va = ["onClick", "aria-current"], Ha = { key: 1, class: "flex flex-row items-center animate-pulse" }, Ya = [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)], qa = { name: "uiBreadcrumbs" }, Ua = Object.assign(qa, { props: { pages: { type: Array, required: true }, loading: { type: Boolean, default: true } }, setup: (t2) => (l2, r2) => t2.loading ? (e(), a("div", Ha, Ya)) : (e(), a("nav", La, [i("ol", Fa, [(e(true), a(k, null, P(t2.pages, (t3, r3) => (e(), a("li", { key: r3 }, [0 === r3 ? (e(), a("div", Na, [i("p", { onClick: (e2) => l2.$emit("breadCrumbClicked", t3.routeName), class: "flex flex-row items-center justify-center text-indigo-600 hover:text-indigo-800 cursor-pointer" }, [o(u(xn), { class: "flex-shrink-0 h-3 w-3 text-gray-400 mr-4", "aria-hidden": "true" }), i("span", null, _(t3.name), 1)], 8, za)])) : (e(), a("div", $a, [o(u(mn), { class: "flex-shrink-0 h-3 w-3 text-gray-400", "aria-hidden": "true" }), i("span", { onClick: (e2) => l2.$emit("breadCrumbClicked", t3.routeName), class: n(["cursor-pointer ml-4 text-xs text-gray-400 hover:text-gray-500", { "text-indigo-600 hover:text-indigo-800": !t3.current }]), "aria-current": t3.current ? "page" : "" }, _(t3.name), 11, Va)]))]))), 128))])])) }), Wa = { class: "flex items-center flex-col sm:flex-row justify-center sm:justify-start" }, Ka = ["src"], Ja = { class: "font-bold text-center sm:text-left" }, Ga = { class: "mt-1 text-xs text-center sm:text-left" }, Za = { key: 0, class: "flex flex-wrap mt-4 justify-center sm:justify-start" }, Xa = { key: 1, class: "rounded-lg bg-white shadow p-6 cursor-pointer animate-pulse" }, Qa = [z('<div class="flex items-center flex-col sm:flex-row justify-center sm:justify-start w-full"><div class="w-16 h-16 rounded-full bg-gray-200 flex self-center"></div><div class="w-full ml-4"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full mt-4 sm:mt-0 sm:w-16 mb-2"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full sm:w-32"></div></div></div>', 1)], eo = { name: "uiCard" }, to = Object.assign(eo, { props: { id: { type: String, required: true }, name: { type: String, required: true }, type: String, tags: Array, logo: String, loading: { type: Boolean, default: true } }, setup: (l2) => (n2, o2) => {
2079
+ return (s2, d2) => l2.loading ? (e(), a("div", ka, Sa)) : (e(), t(u(Yl), { key: 0, as: "div", class: "flex items-center relative" }, { default: E(() => [o(u(ql), { disabled: l2.disabled, onClick: d2[0] || (d2[0] = (e2) => s2.$emit("toggleChanged", { item: l2.item, active: !r2.value })), modelValue: r2.value, "onUpdate:modelValue": d2[1] || (d2[1] = (e2) => r2.value = e2), class: n([r2.value ? "bg-indigo-600" : "bg-gray-200", "relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"]) }, { default: E(() => [i("span", { "aria-hidden": "true", class: n([r2.value ? "translate-x-5" : "translate-x-0", l2.disabled ? "bg-gray-300" : "", "pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out"]) }, null, 2)]), _: 1 }, 8, ["disabled", "modelValue", "class"]), o(u(Ul), { as: "span", class: "ml-3" }, { default: E(() => [i("span", xa, _(l2.item.title), 1), l2.item.subtitle ? (e(), a("span", wa, _(l2.item.subtitle), 1)) : R("", true)]), _: 1 }), l2.item.action ? (e(), a("span", { key: 0, class: "cursor-pointer text-indigo-600 hover:text-indigo-400 uppercase text-xs absolute right-0 bottom-0.5", onClick: d2[2] || (d2[2] = (e2) => s2.$emit("actionClicked", l2.item)) }, _(l2.item.action), 1)) : R("", true)]), _: 1 }));
2080
+ } }), Ma = { key: 0, class: "flex flex-col" }, Da = { class: "flex" }, Ta = { class: "flex-shrink-0" }, Ea = { class: "ml-3" }, Ia = { class: "mt-4" }, _a = { class: "-mx-2 -my-1.5 flex" }, ja = ["onClick"], Pa = { key: 1, class: "flex flex-col animate-pulse" }, Ra = [z('<div class="p-4 border-l-4 bg-gray-100 border-gray-400 rounded"><div class="flex"><div class="flex-shrink-0"><div class="h-6 w-6 animate-pulse rounded-full bg-gray-200 dark:bg-gray-300"></div></div><div class="ml-3 w-full"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/3 mb-2"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full mb-2"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-3/5"></div></div></div></div>', 1)], Ba = { name: "uiAlert" }, Aa = Object.assign(Ba, { props: { actions: { type: Array }, title: { type: String }, type: { type: String, default: "info" }, loading: { type: Boolean, default: true } }, setup: (l2) => (o2, s2) => l2.loading ? (e(), a("div", Pa, Ra)) : (e(), a("div", Ma, [i("div", { class: n([{ "bg-indigo-50 border-indigo-400": "info" === l2.type, "bg-red-50 border-red-400": "danger" === l2.type, "bg-yellow-50 border-yellow-400": "warning" === l2.type, "bg-green-50 border-green-400": "success" === l2.type }, "p-4 border-l-4 rounded"]) }, [i("div", Da, [i("div", Ta, ["info" === l2.type ? (e(), t(u(wn), { key: 0, class: "h-8 w-8 text-indigo-400", "aria-hidden": "true" })) : R("", true), "danger" === l2.type ? (e(), t(u(Cn), { key: 1, class: "h-8 w-8 text-red-400", "aria-hidden": "true" })) : R("", true), "warning" === l2.type ? (e(), t(u(bn), { key: 2, class: "h-8 w-8 text-yellow-400", "aria-hidden": "true" })) : R("", true), "success" === l2.type ? (e(), t(u(cn), { key: 3, class: "h-8 w-8 text-green-400", "aria-hidden": "true" })) : R("", true)]), i("div", Ea, [i("h3", { class: n([{ "text-red-800": "danger" === l2.type, "text-yellow-800": "warning" === l2.type, "text-green-800": "success" === l2.type }, "text-sm font-medium"]) }, _(l2.title), 3), i("div", { class: n([{ "text-red-700": "danger" === l2.type, "text-yellow-700": "warning" === l2.type, "text-green-700": "success" === l2.type }, "mt-2 text-sm"]) }, [r(o2.$slots, "default")], 2), i("div", Ia, [i("div", _a, [(e(true), a(k, null, P(l2.actions, (t2, r2) => (e(), a("button", { onClick: (e2) => o2.$emit("alertEvent", t2.event), type: "button", key: r2, class: n([{ "bg-green-50 text-green-800 hover:bg-green-100 focus:ring-green-600 focus:ring-offset-green-50": "success" === l2.type, "bg-indigo-50 text-indigo-800 hover:bg-indigo-100 focus:ring-indigo-600 focus:ring-offset-indigo-50": "info" === l2.type, "bg-red-50 text-red-800 hover:bg-red-100 focus:ring-red-600 focus:ring-offset-red-50": "danger" === l2.type, "bg-yellow-50 text-yellow-800 hover:bg-yellow-100 focus:ring-yellow-600 focus:ring-offset-yellow-50": "warning" === l2.type }, "px-2 py-1.5 text-sm font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2"]) }, _(t2.name), 11, ja))), 128))])])])])], 2)])) }), La = { key: 0, class: "inline-flex", "aria-label": "Breadcrumb" }, Fa = { role: "list", class: "flex items-center space-x-4 text-xs" }, Na = { key: 0 }, za = ["onClick"], $a = { key: 1, class: "flex items-center" }, Va = ["onClick", "aria-current"], Ha = { key: 1, class: "flex flex-row items-center animate-pulse" }, Ya = [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)], qa = { name: "uiBreadcrumbs" }, Ua = Object.assign(qa, { props: { pages: { type: Array, required: true }, loading: { type: Boolean, default: true } }, setup: (t2) => (l2, r2) => t2.loading ? (e(), a("div", Ha, Ya)) : (e(), a("nav", La, [i("ol", Fa, [(e(true), a(k, null, P(t2.pages, (t3, r3) => (e(), a("li", { key: r3 }, [0 === r3 ? (e(), a("div", Na, [i("p", { onClick: (e2) => l2.$emit("breadCrumbClicked", t3.routeName), class: "flex flex-row items-center justify-center text-indigo-600 hover:text-indigo-800 cursor-pointer" }, [o(u(xn), { class: "flex-shrink-0 h-3 w-3 text-gray-400 mr-4", "aria-hidden": "true" }), i("span", null, _(t3.name), 1)], 8, za)])) : (e(), a("div", $a, [o(u(mn), { class: "flex-shrink-0 h-3 w-3 text-gray-400", "aria-hidden": "true" }), i("span", { onClick: (e2) => l2.$emit("breadCrumbClicked", t3.routeName), class: n(["cursor-pointer ml-4 text-xs text-gray-400 hover:text-gray-500", { "text-indigo-600 hover:text-indigo-800": !t3.current }]), "aria-current": t3.current ? "page" : "" }, _(t3.name), 11, Va)]))]))), 128))])])) }), Wa = { class: "flex items-center flex-col sm:flex-row justify-center sm:justify-start" }, Ka = ["src"], Ja = { class: "font-bold text-center sm:text-left" }, Ga = { class: "mt-1 text-xs text-center sm:text-left" }, Za = { key: 0, class: "flex flex-wrap mt-4 justify-center sm:justify-start" }, Xa = { key: 1, class: "rounded-lg bg-white shadow p-6 cursor-pointer animate-pulse" }, Qa = [z('<div class="flex items-center flex-col sm:flex-row justify-center sm:justify-start w-full"><div class="w-16 h-16 rounded-full bg-gray-200 flex self-center"></div><div class="w-full ml-4"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full mt-4 sm:mt-0 sm:w-16 mb-2"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full sm:w-32"></div></div></div>', 1)], eo = { name: "uiCard" }, to = Object.assign(eo, { props: { id: { type: String, required: true }, name: { type: String, required: true }, type: String, tags: Array, logo: String, loading: { type: Boolean, default: true } }, setup: (l2) => (n2, o2) => {
2233
2081
  var _a2;
2234
- return l2.loading ? (e(), a("div", Xa, Qa)) : (e(), a("div", { key: 0, class: "rounded-lg bg-white shadow p-6 cursor-pointer", onClick: o2[0] || (o2[0] = (e2) => n2.$emit("cardSelected", { id: l2.id, name: l2.name, type: l2.type, tags: l2.tags })) }, [i("div", Wa, [i("img", { class: "w-16 h-16 rounded-full mb-4 sm:mb-0 sm:mr-4", src: l2.logo }, null, 8, Ka), i("div", null, [i("h4", Ja, _(l2.name), 1), i("p", Ga, _(l2.type), 1)])]), ((_a2 = l2.tags) == null ? void 0 : _a2.length) > 0 ? (e(), a("div", Za, [(e(true), a(k, null, P(l2.tags, (n3) => (e(), t(pa, { class: "mb-1 mr-1", key: n3.name, color: n3.color, loading: l2.loading }, { default: T(() => [I(_(n3.name), 1)]), _: 2 }, 1032, ["color", "loading"]))), 128))])) : R("", true)]));
2082
+ return l2.loading ? (e(), a("div", Xa, Qa)) : (e(), a("div", { key: 0, class: "rounded-lg bg-white shadow p-6 cursor-pointer", onClick: o2[0] || (o2[0] = (e2) => n2.$emit("cardSelected", { id: l2.id, name: l2.name, type: l2.type, tags: l2.tags })) }, [i("div", Wa, [i("img", { class: "w-16 h-16 rounded-full mb-4 sm:mb-0 sm:mr-4", src: l2.logo }, null, 8, Ka), i("div", null, [i("h4", Ja, _(l2.name), 1), i("p", Ga, _(l2.type), 1)])]), ((_a2 = l2.tags) == null ? void 0 : _a2.length) > 0 ? (e(), a("div", Za, [(e(true), a(k, null, P(l2.tags, (n3) => (e(), t(pa, { class: "mb-1 mr-1", key: n3.name, color: n3.color, loading: l2.loading }, { default: E(() => [I(_(n3.name), 1)]), _: 2 }, 1032, ["color", "loading"]))), 128))])) : R("", true)]));
2235
2083
  } }), lo = { name: "uiFilter" }, no = Object.assign(lo, { props: { position: { type: String, default: "left" }, items: { type: Array, required: true }, label: { type: String, required: true }, loading: { type: Boolean, default: true } }, emits: ["filterSelected"], setup(l2, { emit: n2 }) {
2236
2084
  const a2 = n2, o2 = s(l2.items);
2237
2085
  return (n3, r2) => (e(), t(_n, { loading: l2.loading, onOptionSelected: r2[0] || (r2[0] = (e2) => ((e3) => {
@@ -2243,11 +2091,11 @@ const Mn = { class: "py-1" }, Dn = ["onClick"], En = { key: 1, class: "animate-p
2243
2091
  const d2 = l2, c2 = s2, p2 = (e2) => {
2244
2092
  c2("modalAction", { modal: d2.modalName, action: e2 });
2245
2093
  };
2246
- return (s3, d3) => (e(), t(u(rn), { as: "template", show: l2.open }, { default: T(() => [o(u(yl), { as: "div", class: "relative z-10", onClose: d3[1] || (d3[1] = (e2) => p2("close")) }, { default: T(() => [o(u(an), { 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: T(() => [ao]), _: 1 }), i("div", oo, [i("div", ro, [o(u(an), { 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: T(() => [o(u(xl), { class: "relative transform rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl transition-all sm:my-8 w-9/12 sm:w-full sm:max-w-lg sm:p-6" }, { default: T(() => [i("div", io, [i("button", { type: "button", class: "rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none", onClick: d3[0] || (d3[0] = (e2) => p2("close")) }, [so, o(G, { icon: u(On), "aria-hidden": "true", loading: l2.loading }, null, 8, ["icon", "loading"])])]), i("div", uo, [i("div", { class: n(["mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full sm:mx-0 sm:h-10 sm:w-10", { "bg-red-100": "danger" === l2.type, "bg-green-100": "success" === l2.type, "bg-indigo-100": "default" === l2.type, "bg-yellow-100": "warning" === l2.type }]) }, [B(o(u(On), { class: "h-6 w-6 text-red-600", "aria-hidden": "true" }, null, 512), [[L, "danger" === l2.type]]), B(o(u(pn), { class: "h-6 w-6 text-green-600", "aria-hidden": "true" }, null, 512), [[L, "success" === l2.type]]), B(o(u(bn), { class: "h-6 w-6 text-yellow-600", "aria-hidden": "true" }, null, 512), [[L, "warning" === l2.type]]), B(o(u(yn), { class: "h-6 w-6 text-indigo-600", "aria-hidden": "true" }, null, 512), [[L, "default" === l2.type]])], 2), i("div", co, [o(u(wl), { as: "h3", class: "text-lg font-medium leading-6 text-gray-900" }, { default: T(() => [I(_(l2.title), 1)]), _: 1 }), i("div", po, [r(s3.$slots, "default")]), l2.actions ? (e(), a("div", go, [(e(true), a(k, null, P(l2.actions, (t2, l3) => (e(), a("button", { key: l3, type: "button", class: "inline-flex w-full justify-center rounded-md border border-transparent bg-indigo-600 px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 mb-2 sm:mb-0 mr-2 sm:w-auto sm:text-sm", onClick: (e2) => p2(t2.value) }, _(t2.name), 9, fo))), 128))])) : R("", true)])])]), _: 3 })]), _: 3 })])])]), _: 3 })]), _: 3 }, 8, ["show"]));
2247
- } }), ho = { class: "w-full flex flex-col items-center space-y-4 sm:items-end" }, bo = { 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" }, yo = { class: "p-4" }, xo = { class: "flex items-start" }, wo = { class: "flex-shrink-0 mt-0.5" }, ko = { class: "ml-3 w-0 flex-1 pt-0.5" }, So = { class: "font-medium text-gray-900" }, Co = { class: "mt-1 text-sm text-gray-500" }, Oo = { class: "ml-4 flex-shrink-0 flex" }, Mo = i("span", { class: "sr-only" }, "Close", -1), Do = { name: "uiNotification" }, Eo = Object.assign(Do, { props: { show: Boolean, type: { type: String, default: "info" }, title: String, message: String, fixed: { type: Boolean, default: true } }, setup(t2) {
2094
+ return (s3, d3) => (e(), t(u(rn), { as: "template", show: l2.open }, { default: E(() => [o(u(yl), { as: "div", class: "relative z-10", onClose: d3[1] || (d3[1] = (e2) => p2("close")) }, { default: E(() => [o(u(an), { as: "template", enter: "ease-out duration-300", "enter-from": "opacity-0", "enter-to": "opacity-100", leave: "ease-in duration-200", "leave-from": "opacity-100", "leave-to": "opacity-0" }, { default: E(() => [ao]), _: 1 }), i("div", oo, [i("div", ro, [o(u(an), { as: "template", enter: "ease-out duration-300", "enter-from": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95", "enter-to": "opacity-100 translate-y-0 sm:scale-100", leave: "ease-in duration-200", "leave-from": "opacity-100 translate-y-0 sm:scale-100", "leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" }, { default: E(() => [o(u(xl), { class: "relative transform rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl transition-all sm:my-8 w-9/12 sm:w-full sm:max-w-lg sm:p-6" }, { default: E(() => [i("div", io, [i("button", { type: "button", class: "rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none", onClick: d3[0] || (d3[0] = (e2) => p2("close")) }, [so, o(G, { icon: u(On), "aria-hidden": "true", loading: l2.loading }, null, 8, ["icon", "loading"])])]), i("div", uo, [i("div", { class: n(["mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full sm:mx-0 sm:h-10 sm:w-10", { "bg-red-100": "danger" === l2.type, "bg-green-100": "success" === l2.type, "bg-indigo-100": "default" === l2.type, "bg-yellow-100": "warning" === l2.type }]) }, [B(o(u(On), { class: "h-6 w-6 text-red-600", "aria-hidden": "true" }, null, 512), [[L, "danger" === l2.type]]), B(o(u(pn), { class: "h-6 w-6 text-green-600", "aria-hidden": "true" }, null, 512), [[L, "success" === l2.type]]), B(o(u(bn), { class: "h-6 w-6 text-yellow-600", "aria-hidden": "true" }, null, 512), [[L, "warning" === l2.type]]), B(o(u(yn), { class: "h-6 w-6 text-indigo-600", "aria-hidden": "true" }, null, 512), [[L, "default" === l2.type]])], 2), i("div", co, [o(u(wl), { as: "h3", class: "text-lg font-medium leading-6 text-gray-900" }, { default: E(() => [I(_(l2.title), 1)]), _: 1 }), i("div", po, [r(s3.$slots, "default")]), l2.actions ? (e(), a("div", go, [(e(true), a(k, null, P(l2.actions, (t2, l3) => (e(), a("button", { key: l3, type: "button", class: "inline-flex w-full justify-center rounded-md border border-transparent bg-indigo-600 px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 mb-2 sm:mb-0 mr-2 sm:w-auto sm:text-sm", onClick: (e2) => p2(t2.value) }, _(t2.name), 9, fo))), 128))])) : R("", true)])])]), _: 3 })]), _: 3 })])])]), _: 3 })]), _: 3 }, 8, ["show"]));
2095
+ } }), ho = { class: "w-full flex flex-col items-center space-y-4 sm:items-end" }, bo = { 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" }, yo = { class: "p-4" }, xo = { class: "flex items-start" }, wo = { class: "flex-shrink-0 mt-0.5" }, ko = { class: "ml-3 w-0 flex-1 pt-0.5" }, So = { class: "font-medium text-gray-900" }, Co = { class: "mt-1 text-sm text-gray-500" }, Oo = { class: "ml-4 flex-shrink-0 flex" }, Mo = i("span", { class: "sr-only" }, "Close", -1), Do = { name: "uiNotification" }, To = Object.assign(Do, { props: { show: Boolean, type: { type: String, default: "info" }, title: String, message: String, fixed: { type: Boolean, default: true } }, setup(t2) {
2248
2096
  const l2 = t2, r2 = d(() => l2.show);
2249
- return (l3, s2) => (e(), a("div", { "aria-live": "assertive", class: n([{ fixed: t2.fixed }, "inset-0 flex items-end px-4 py-6 pointer-events-none sm:p-6 sm:items-start"]) }, [i("div", ho, [o(j, { "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: T(() => [r2.value ? (e(), a("div", bo, [i("div", yo, [i("div", xo, [i("div", wo, [B(o(u(cn), { "aria-hidden": "true", class: "h-6 w-6 text-green-400" }, null, 512), [[L, "success" === t2.type]]), B(o(u(Cn), { "aria-hidden": "true", class: "h-6 w-6 text-red-400" }, null, 512), [[L, "danger" === t2.type]]), B(o(u(bn), { "aria-hidden": "true", class: "h-6 w-6 text-yellow-400" }, null, 512), [[L, "warning" === t2.type]]), B(o(u(wn), { "aria-hidden": "true", class: "h-6 w-6 text-indigo-600" }, null, 512), [[L, "info" === t2.type]])]), i("div", ko, [i("p", So, _(t2.title), 1), i("p", Co, _(t2.message), 1)]), i("div", Oo, [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")) }, [Mo, o(u(On), { "aria-hidden": "true", class: "h-5 w-5" })])])])])])) : R("", true)]), _: 1 })])], 2));
2250
- } }), To = { key: 0, role: "list", class: "divide-y divide-gray-100" }, Io = { class: "min-w-0" }, _o = { class: "flex items-start gap-x-3" }, jo = { class: "text-sm font-semibold leading-6 text-gray-900" }, Po = { class: "mt-1 flex items-center gap-x-2 text-xs leading-5 text-gray-500" }, Ro = { class: "truncate" }, Bo = { class: "flex flex-none items-center gap-x-4" }, Ao = ["href"], Lo = { class: "sr-only" }, Fo = { key: 1, class: "divide-y divide-gray-100 animate-pulse" }, No = [z('<div class="min-w-0 w-full"><div class="flex items-start gap-x-3"><p class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2"></p></div></div><div class="flex flex-none items-center gap-x-4"><div class="hidden rounded-md bg-gray-200 px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:block"><p class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-10"></p></div></div>', 2)], zo = { name: "uiTaskList" }, $o = Object.assign(zo, { props: { tasks: { type: Array, required: true }, loading: { type: Boolean, default: true } }, setup: (t2) => (l2, o2) => t2.loading ? (e(), a("ul", Fo, [(e(true), a(k, null, P(t2.tasks, (t3) => (e(), a("li", { key: t3.id, class: "flex items-center justify-between gap-x-6 py-5" }, No))), 128))])) : (e(), a("ul", To, [(e(true), a(k, null, P(t2.tasks, (t3) => (e(), a("li", { key: t3.id, class: "flex items-center justify-between gap-x-6 py-5" }, [i("div", Io, [i("div", _o, [i("p", jo, _(t3.name), 1), i("p", { class: n([{ "text-green-700 bg-green-50 ring-green-600/20": "Complete" === t3.status, "text-gray-600 bg-gray-50 ring-gray-500/10": "In progress" === t3.status, "text-yellow-800 bg-yellow-50 ring-yellow-600/20": "Incomplete" === t3.status }, "rounded-md whitespace-nowrap mt-0.5 px-1.5 py-0.5 text-xs font-medium ring-1 ring-inset"]) }, _(t3.statusLiteral), 3)]), i("div", Po, [i("p", Ro, _(t3.description), 1)])]), i("div", Bo, [i("a", { href: t3.href, class: "hidden rounded-md bg-white px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:block" }, [I(_(t3.action), 1), i("span", Lo, ", " + _(t3.name), 1)], 8, Ao)])]))), 128))])) });
2097
+ return (l3, s2) => (e(), a("div", { "aria-live": "assertive", class: n([{ fixed: t2.fixed }, "inset-0 flex items-end px-4 py-6 pointer-events-none sm:p-6 sm:items-start"]) }, [i("div", ho, [o(j, { "enter-active-class": "transform ease-out duration-300 transition", "enter-from-class": "translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2", "enter-to-class": "translate-y-0 opacity-100 sm:translate-x-0", "leave-active-class": "transition ease-in duration-100", "leave-from-class": "opacity-100", "leave-to-class": "opacity-0" }, { default: E(() => [r2.value ? (e(), a("div", bo, [i("div", yo, [i("div", xo, [i("div", wo, [B(o(u(cn), { "aria-hidden": "true", class: "h-6 w-6 text-green-400" }, null, 512), [[L, "success" === t2.type]]), B(o(u(Cn), { "aria-hidden": "true", class: "h-6 w-6 text-red-400" }, null, 512), [[L, "danger" === t2.type]]), B(o(u(bn), { "aria-hidden": "true", class: "h-6 w-6 text-yellow-400" }, null, 512), [[L, "warning" === t2.type]]), B(o(u(wn), { "aria-hidden": "true", class: "h-6 w-6 text-indigo-600" }, null, 512), [[L, "info" === t2.type]])]), i("div", ko, [i("p", So, _(t2.title), 1), i("p", Co, _(t2.message), 1)]), i("div", Oo, [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")) }, [Mo, o(u(On), { "aria-hidden": "true", class: "h-5 w-5" })])])])])])) : R("", true)]), _: 1 })])], 2));
2098
+ } }), Eo = { key: 0, role: "list", class: "divide-y divide-gray-100" }, Io = { class: "min-w-0" }, _o = { class: "flex items-start gap-x-3" }, jo = { class: "text-sm font-semibold leading-6 text-gray-900" }, Po = { class: "mt-1 flex items-center gap-x-2 text-xs leading-5 text-gray-500" }, Ro = { class: "truncate" }, Bo = { class: "flex flex-none items-center gap-x-4" }, Ao = ["href"], Lo = { class: "sr-only" }, Fo = { key: 1, class: "divide-y divide-gray-100 animate-pulse" }, No = [z('<div class="min-w-0 w-full"><div class="flex items-start gap-x-3"><p class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2"></p></div></div><div class="flex flex-none items-center gap-x-4"><div class="hidden rounded-md bg-gray-200 px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:block"><p class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-10"></p></div></div>', 2)], zo = { name: "uiTaskList" }, $o = Object.assign(zo, { props: { tasks: { type: Array, required: true }, loading: { type: Boolean, default: true } }, setup: (t2) => (l2, o2) => t2.loading ? (e(), a("ul", Fo, [(e(true), a(k, null, P(t2.tasks, (t3) => (e(), a("li", { key: t3.id, class: "flex items-center justify-between gap-x-6 py-5" }, No))), 128))])) : (e(), a("ul", Eo, [(e(true), a(k, null, P(t2.tasks, (t3) => (e(), a("li", { key: t3.id, class: "flex items-center justify-between gap-x-6 py-5" }, [i("div", Io, [i("div", _o, [i("p", jo, _(t3.name), 1), i("p", { class: n([{ "text-green-700 bg-green-50 ring-green-600/20": "Complete" === t3.status, "text-gray-600 bg-gray-50 ring-gray-500/10": "In progress" === t3.status, "text-yellow-800 bg-yellow-50 ring-yellow-600/20": "Incomplete" === t3.status }, "rounded-md whitespace-nowrap mt-0.5 px-1.5 py-0.5 text-xs font-medium ring-1 ring-inset"]) }, _(t3.statusLiteral), 3)]), i("div", Po, [i("p", Ro, _(t3.description), 1)])]), i("div", Bo, [i("a", { href: t3.href, class: "hidden rounded-md bg-white px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:block" }, [I(_(t3.action), 1), i("span", Lo, ", " + _(t3.name), 1)], 8, Ao)])]))), 128))])) });
2251
2099
  "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self && self;
2252
2100
  function Vo(e2) {
2253
2101
  return e2 && e2.__esModule && Object.prototype.hasOwnProperty.call(e2, "default") ? e2.default : e2;
@@ -2287,8 +2135,7 @@ function Vo(e2) {
2287
2135
  }(q);
2288
2136
  const Ho = (e2, t2) => {
2289
2137
  const l2 = e2.__vccOpts || e2;
2290
- for (const [e3, n2] of t2)
2291
- l2[e3] = n2;
2138
+ for (const [e3, n2] of t2) l2[e3] = n2;
2292
2139
  return l2;
2293
2140
  }, Yo = { class: "dateSelector flex items-center text-white flex-row" }, qo = { class: "pagination flex items-center my-1 md:my-0" }, Uo = { class: "date mx-4 font-bold text-center text-indigo-600 select-none uppercase" }, Wo = { class: "pagination flex items-center my-1 sm:my-0" };
2294
2141
  const Ko = Ho({ name: "dateSelector", components: { ChevronLeftIcon: fn, ChevronRightIcon: mn }, computed: { currentDate() {
@@ -2322,8 +2169,7 @@ const fr = { name: "uiPriceCalendar", data: () => ({ today: /* @__PURE__ */ new
2322
2169
  return e(), a("div", gr, [i("div", { class: n([{ "bg-indigo-200 text-white": d2.currentDay.isWeekend, "bg-green-300 text-white": o2.price.price > o2.basePrice, "bg-yellow-300 text-white": o2.price.price < o2.basePrice }, "select-none text-center rounded-lg p-1"]) }, _(d2.currentDay.price) + _(o2.currency), 3)]);
2323
2170
  }]]), uiButton: te, SkeletonTable: or }, computed: { days() {
2324
2171
  let e2 = [];
2325
- for (let t2 = 0; t2 < this.showDays; t2++)
2326
- e2.push(q(this.date).add(t2, "day"));
2172
+ for (let t2 = 0; t2 < this.showDays; t2++) e2.push(q(this.date).add(t2, "day"));
2327
2173
  return e2;
2328
2174
  }, indeterminate() {
2329
2175
  return this.selectedRooms.length > 0 && this.selectedRooms.length < this.rooms.length;
@@ -2342,11 +2188,11 @@ const fr = { name: "uiPriceCalendar", data: () => ({ today: /* @__PURE__ */ new
2342
2188
  this.$emit("tableAction", e2);
2343
2189
  }, changeRoomPrice(e2) {
2344
2190
  this.$emit("changeRoomPrice", e2);
2345
- } } }, mr = { key: 0, class: "px-4 sm:px-6 lg:px-8" }, vr = { class: "flow-root" }, hr = { class: "overflow-x-auto sm:-mx-6 lg:-mx-8 shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg" }, br = { class: "inline-block min-w-full align-middle" }, yr = { class: "min-w-full text-sm" }, xr = { 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" }, Sr = { key: 0 }, Cr = { colspan: "6", class: "pl-4" }, Or = { key: 1 }, Mr = { colspan: "6", class: "pl-4" }, Dr = { key: 2 }, Er = { colspan: "6", class: "pl-4" }, Tr = { colspan: "20", scope: "colgroup", class: "bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900 relative" }, Ir = { 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" }, _r = ["onClick"], jr = { colspan: "2", scope: "colgroup", class: "relative bg-gray-100 py-3.5 pl-4 pr-3 text-left font-semibold text-gray-900" }, Pr = ["checked", "indeterminate"], Rr = { class: "pl-6" }, Br = { colspan: "2", scope: "colgroup", class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, Ar = { colspan: "2", scope: "colgroup", class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, Lr = 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), Fr = { colspan: "2", class: "relative py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6" }, Nr = { key: 0, class: "absolute inset-y-0 left-0 w-0.5 bg-indigo-600" }, zr = ["value"], $r = { class: "pl-6" }, Vr = { colspan: "2", class: "pl-4" }, Hr = { colspan: "2", class: "pl-4" };
2191
+ } } }, mr = { key: 0, class: "px-4 sm:px-6 lg:px-8" }, vr = { class: "flow-root" }, hr = { class: "overflow-x-auto sm:-mx-6 lg:-mx-8 shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg" }, br = { class: "inline-block min-w-full align-middle" }, yr = { class: "min-w-full text-sm" }, xr = { 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" }, Sr = { key: 0 }, Cr = { colspan: "6", class: "pl-4" }, Or = { key: 1 }, Mr = { colspan: "6", class: "pl-4" }, Dr = { key: 2 }, Tr = { colspan: "6", class: "pl-4" }, Er = { colspan: "20", scope: "colgroup", class: "bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900 relative" }, Ir = { 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" }, _r = ["onClick"], jr = { colspan: "2", scope: "colgroup", class: "relative bg-gray-100 py-3.5 pl-4 pr-3 text-left font-semibold text-gray-900" }, Pr = ["checked", "indeterminate"], Rr = { class: "pl-6" }, Br = { colspan: "2", scope: "colgroup", class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, Ar = { colspan: "2", scope: "colgroup", class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, Lr = 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), Fr = { colspan: "2", class: "relative py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6" }, Nr = { key: 0, class: "absolute inset-y-0 left-0 w-0.5 bg-indigo-600" }, zr = ["value"], $r = { class: "pl-6" }, Vr = { colspan: "2", class: "pl-4" }, Hr = { colspan: "2", class: "pl-4" };
2346
2192
  const Yr = Ho(fr, [["render", function(l2, r2, s2, d2, u2, c2) {
2347
2193
  var _a2, _b;
2348
2194
  const p2 = $("DateSelector"), g2 = $("Day"), f2 = $("uiButton"), m2 = $("Price"), v2 = $("SkeletonTable");
2349
- return s2.loading ? (e(), t(v2, { key: 1 })) : (e(), a("div", mr, [i("div", vr, [i("div", hr, [i("div", br, [i("table", yr, [i("tbody", xr, [i("tr", null, [i("th", wr, [o(p2, { selectedDate: l2.date, onDateSelected: r2[0] || (r2[0] = (e2) => c2.changeDate(e2)) }, null, 8, ["selectedDate"])]), (e(true), a(k, null, P(c2.days, (t2, l3) => (e(), a("th", { scope: "col", key: l3, class: "text-sm font-semibold text-gray-900 p-0" }, [o(g2, { class: "border-l border-gray-200 px-6 py-3", day: t2 }, null, 8, ["day"])]))), 128))]), i("tr", null, [i("th", kr, [i("span", null, _(s2.literals.category) + " " + _(s2.category.name), 1), o(f2, { loading: s2.loading, class: "ml-4", size: "small", onClick: c2.changeCategoryBulkPrices }, { default: T(() => [I(_(s2.literals.changeInBulk), 1)]), _: 1 }, 8, ["loading", "onClick"])])]), "discounts" === s2.type ? (e(), a("tr", Sr, [i("td", Cr, _(s2.literals.pricesDiscount), 1), (e(true), a(k, null, P(s2.category.selectionPrices, (t2, l3) => (e(), a("td", { key: l3, class: "p-0" }, [o(m2, { onClick: (e2) => c2.changeCategorySelectionPrice(t2), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer", price: t2, currency: s2.currency.symbol, isBasePrice: true }, null, 8, ["onClick", "price", "currency"])]))), 128))])) : R("", true), "prices" === s2.type ? (e(), a("tr", Or, [i("td", Mr, _(s2.literals.pricesSelection), 1), (e(true), a(k, null, P(s2.category.selectionPrices, (t2, l3) => (e(), a("td", { key: l3, class: "p-0" }, [o(m2, { onClick: (e2) => c2.changeCategorySelectionPrice(t2), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer", price: t2, currency: s2.currency.symbol, isBasePrice: true }, null, 8, ["onClick", "price", "currency"])]))), 128))])) : R("", true), "prices" === s2.type ? (e(), a("tr", Dr, [i("td", Er, _(s2.literals.pricesUpgrade), 1), (e(true), a(k, null, P(s2.category.upgradePrices, (t2, l3) => (e(), a("td", { key: l3, class: "p-0" }, [o(m2, { onClick: (e2) => c2.changeCategoryUpgradePrice(t2), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer bg-gray-100", price: t2, currency: s2.currency.symbol, isBasePrice: true }, null, 8, ["onClick", "price", "currency"])]))), 128))])) : R("", true), i("tr", null, [i("th", Tr, [((_a2 = l2.selectedRooms) == null ? void 0 : _a2.length) > 0 && ((_b = s2.actions) == null ? void 0 : _b.length) > 0 ? (e(), a("div", Ir, [(e(true), a(k, null, P(s2.actions, (t2, n2) => (e(), a("button", { onClick: (e2) => c2.tableAction({ action: t2.id, items: l2.selectedRooms }), key: n2, type: "button", class: "inline-flex items-center rounded bg-indigo-600 hover:bg-indigo-800 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm disabled:cursor-not-allowed disabled:opacity-30" }, _(t2.name), 9, _r))), 128))])) : R("", true), i("span", null, _(s2.literals.pricesSelection), 1)])]), i("tr", null, [i("th", jr, [i("input", { type: "checkbox", class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600", checked: c2.indeterminate || l2.selectedRooms.length === s2.rooms.length, indeterminate: c2.indeterminate, onChange: r2[1] || (r2[1] = (e2) => l2.selectedRooms = e2.target.checked ? s2.rooms.map((e3) => e3.name) : []) }, null, 40, Pr), i("span", Rr, _(s2.literals.room), 1)]), i("th", Br, _(s2.literals.building), 1), i("th", Ar, _(s2.literals.floor), 1), Lr]), (e(true), a(k, null, P(s2.rooms, (t2) => (e(), a("tr", { key: t2.name, class: n([{ "even:bg-gray-100": "prices" === s2.type, "odd:bg-gray-100": "discounts" === s2.type }]) }, [i("td", Fr, [l2.selectedRooms.includes(t2.name) ? (e(), a("div", Nr)) : R("", true), B(i("input", { type: "checkbox", class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600", value: t2.name, "onUpdate:modelValue": r2[2] || (r2[2] = (e2) => l2.selectedRooms = e2) }, null, 8, zr), [[V, l2.selectedRooms]]), i("span", $r, _(t2.name), 1)]), i("td", Vr, _(t2.building), 1), i("td", Hr, _(t2.floor), 1), (e(true), a(k, null, P(t2.selectionPrices, (t3, l3) => (e(), a("td", { class: "p-0", key: l3 }, [o(m2, { onClick: (e2) => c2.changeRoomPrice(t3), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 cursor-pointer", price: t3, currency: s2.currency.symbol, basePrice: c2.getSelectionBasePrice(t3) }, null, 8, ["onClick", "price", "currency", "basePrice"])]))), 128))], 2))), 128))])])])])])]));
2195
+ return s2.loading ? (e(), t(v2, { key: 1 })) : (e(), a("div", mr, [i("div", vr, [i("div", hr, [i("div", br, [i("table", yr, [i("tbody", xr, [i("tr", null, [i("th", wr, [o(p2, { selectedDate: l2.date, onDateSelected: r2[0] || (r2[0] = (e2) => c2.changeDate(e2)) }, null, 8, ["selectedDate"])]), (e(true), a(k, null, P(c2.days, (t2, l3) => (e(), a("th", { scope: "col", key: l3, class: "text-sm font-semibold text-gray-900 p-0" }, [o(g2, { class: "border-l border-gray-200 px-6 py-3", day: t2 }, null, 8, ["day"])]))), 128))]), i("tr", null, [i("th", kr, [i("span", null, _(s2.literals.category) + " " + _(s2.category.name), 1), o(f2, { loading: s2.loading, class: "ml-4", size: "small", onClick: c2.changeCategoryBulkPrices }, { default: E(() => [I(_(s2.literals.changeInBulk), 1)]), _: 1 }, 8, ["loading", "onClick"])])]), "discounts" === s2.type ? (e(), a("tr", Sr, [i("td", Cr, _(s2.literals.pricesDiscount), 1), (e(true), a(k, null, P(s2.category.selectionPrices, (t2, l3) => (e(), a("td", { key: l3, class: "p-0" }, [o(m2, { onClick: (e2) => c2.changeCategorySelectionPrice(t2), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer", price: t2, currency: s2.currency.symbol, isBasePrice: true }, null, 8, ["onClick", "price", "currency"])]))), 128))])) : R("", true), "prices" === s2.type ? (e(), a("tr", Or, [i("td", Mr, _(s2.literals.pricesSelection), 1), (e(true), a(k, null, P(s2.category.selectionPrices, (t2, l3) => (e(), a("td", { key: l3, class: "p-0" }, [o(m2, { onClick: (e2) => c2.changeCategorySelectionPrice(t2), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer", price: t2, currency: s2.currency.symbol, isBasePrice: true }, null, 8, ["onClick", "price", "currency"])]))), 128))])) : R("", true), "prices" === s2.type ? (e(), a("tr", Dr, [i("td", Tr, _(s2.literals.pricesUpgrade), 1), (e(true), a(k, null, P(s2.category.upgradePrices, (t2, l3) => (e(), a("td", { key: l3, class: "p-0" }, [o(m2, { onClick: (e2) => c2.changeCategoryUpgradePrice(t2), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer bg-gray-100", price: t2, currency: s2.currency.symbol, isBasePrice: true }, null, 8, ["onClick", "price", "currency"])]))), 128))])) : R("", true), i("tr", null, [i("th", Er, [((_a2 = l2.selectedRooms) == null ? void 0 : _a2.length) > 0 && ((_b = s2.actions) == null ? void 0 : _b.length) > 0 ? (e(), a("div", Ir, [(e(true), a(k, null, P(s2.actions, (t2, n2) => (e(), a("button", { onClick: (e2) => c2.tableAction({ action: t2.id, items: l2.selectedRooms }), key: n2, type: "button", class: "inline-flex items-center rounded bg-indigo-600 hover:bg-indigo-800 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm disabled:cursor-not-allowed disabled:opacity-30" }, _(t2.name), 9, _r))), 128))])) : R("", true), i("span", null, _(s2.literals.pricesSelection), 1)])]), i("tr", null, [i("th", jr, [i("input", { type: "checkbox", class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600", checked: c2.indeterminate || l2.selectedRooms.length === s2.rooms.length, indeterminate: c2.indeterminate, onChange: r2[1] || (r2[1] = (e2) => l2.selectedRooms = e2.target.checked ? s2.rooms.map((e3) => e3.name) : []) }, null, 40, Pr), i("span", Rr, _(s2.literals.room), 1)]), i("th", Br, _(s2.literals.building), 1), i("th", Ar, _(s2.literals.floor), 1), Lr]), (e(true), a(k, null, P(s2.rooms, (t2) => (e(), a("tr", { key: t2.name, class: n([{ "even:bg-gray-100": "prices" === s2.type, "odd:bg-gray-100": "discounts" === s2.type }]) }, [i("td", Fr, [l2.selectedRooms.includes(t2.name) ? (e(), a("div", Nr)) : R("", true), B(i("input", { type: "checkbox", class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600", value: t2.name, "onUpdate:modelValue": r2[2] || (r2[2] = (e2) => l2.selectedRooms = e2) }, null, 8, zr), [[V, l2.selectedRooms]]), i("span", $r, _(t2.name), 1)]), i("td", Vr, _(t2.building), 1), i("td", Hr, _(t2.floor), 1), (e(true), a(k, null, P(t2.selectionPrices, (t3, l3) => (e(), a("td", { class: "p-0", key: l3 }, [o(m2, { onClick: (e2) => c2.changeRoomPrice(t3), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 cursor-pointer", price: t3, currency: s2.currency.symbol, basePrice: c2.getSelectionBasePrice(t3) }, null, 8, ["onClick", "price", "currency", "basePrice"])]))), 128))], 2))), 128))])])])])])]));
2350
2196
  }]]), qr = { class: "chart-selector flex flex-row items-center justify-center" }, Ur = { name: "rangeSelector" }, Wr = Object.assign(Ur, { props: { range: { type: String } }, emits: ["rangeSelected"], setup(t2, { emit: l2 }) {
2351
2197
  const o2 = l2, r2 = t2;
2352
2198
  let s2 = d(() => r2.range);
@@ -2368,18 +2214,17 @@ const ri = Ho(ni, [["render", function(t2, l2, n2, o2, r2, i2) {
2368
2214
  }]]), ii = i("div", { class: "spinner h-12 w-12 mb-6" }, [i("img", { src: "https://images.hotelinking.com/ui/loader.gif", alt: "loading animation" })], -1), si = { name: "uiLoadScreen" }, di = Object.assign(si, { props: { title: String, message: String, fixed: { type: Boolean, default: true } }, setup: (t2) => (l2, o2) => (e(), a("div", { class: n([{ fixed: t2.fixed }, "load-screen h-full w-full top-0 left-0 z-50 flex flex-col items-center justify-center bg-gray-50"]) }, [ii, B(i("h2", { class: "text-xs font-bold text-center uppercase mb-2" }, _(t2.title), 513), [[L, t2.title]]), B(i("p", { class: "text-xs text-center uppercase md:w-1/4" }, _(t2.message), 513), [[L, t2.message]])], 2)) }), ui = { key: 0, class: "py-6 flex items-center justify-between" }, ci = { class: "flex-1 flex justify-between sm:hidden" }, pi = { 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" }, gi = { 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" }, fi = { class: "hidden sm:flex-1 sm:flex sm:items-center sm:justify-between" }, mi = { class: "text-sm text-gray-700" }, vi = { class: "font-bold" }, hi = { class: "font-bold" }, bi = { class: "relative z-0 inline-flex rounded-md shadow-sm -space-x-px", "aria-label": "Pagination" }, yi = { class: "sr-only" }, xi = ["onClick"], wi = { class: "sr-only" }, ki = { key: 1, class: "py-6 flex flex-row justify-between items-center animate-pulse" }, Si = [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)], Ci = { name: "uiPagination" }, Oi = Object.assign(Ci, { props: { current: { type: Number, requires: true }, total: { type: Number, requires: true }, loading: { type: Boolean, default: true } }, emits: ["changePage"], setup(t2, { emit: l2 }) {
2369
2215
  const c2 = l2, p2 = t2, g2 = s(3), f2 = d(() => Math.max(1, Number(p2.current) - Number(g2.value))), m2 = d(() => Math.min(Number(p2.current) + Number(g2.value), Number(p2.total))), v2 = d(() => {
2370
2216
  let e2 = [];
2371
- for (let t3 = Number(f2.value); t3 <= Number(m2.value); t3++)
2372
- e2.push(t3);
2217
+ for (let t3 = Number(f2.value); t3 <= Number(m2.value); t3++) e2.push(t3);
2373
2218
  return e2;
2374
2219
  });
2375
2220
  return (l3, s2) => t2.loading ? (e(), a("div", ki, Si)) : (e(), a("div", ui, [i("div", ci, [i("a", pi, [r(l3.$slots, "previous")]), i("a", gi, [r(l3.$slots, "next")])]), i("div", fi, [i("div", null, [i("p", mi, [r(l3.$slots, "showing"), I(), i("span", vi, _(t2.current + " "), 1), r(l3.$slots, "of"), I(), i("span", hi, _(t2.total), 1)])]), i("div", null, [i("nav", bi, [B(i("button", { onClick: s2[0] || (s2[0] = (e2) => c2("changePage", t2.current - 1)), class: "relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50" }, [i("span", yi, [r(l3.$slots, "previous")]), o(u(fn), { class: "h-5 w-5", "aria-hidden": "true" })], 512), [[L, 1 !== t2.current]]), (e(true), a(k, null, P(v2.value, (l4) => (e(), a("button", { onClick: (e2) => c2("changePage", l4), key: l4, "aria-current": "page", class: n([[l4 === t2.current ? "z-10 bg-indigo-50 border-indigo-500 text-indigo-600" : "bg-white border-gray-300 text-gray-500 hover:bg-gray-50"], "relative inline-flex items-center px-4 py-2 border text-sm font-medium"]) }, _(l4), 11, xi))), 128)), B(i("button", { onClick: s2[1] || (s2[1] = (e2) => c2("changePage", t2.current + 1)), class: "relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50" }, [i("span", wi, [r(l3.$slots, "next")]), o(u(mn), { class: "h-5 w-5", "aria-hidden": "true" })], 512), [[L, t2.current !== t2.total]])])])])]));
2376
- } }), Mi = { class: "hidden md:flex md:flex-col sticky md:inset-y-0" }, Di = { 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" }, Ii = { key: 0 }, _i = ["onClick"], ji = { key: 0, class: "text-left" }, Pi = { key: 0, class: "flex-1 text-left" }, Ri = { key: 1, class: "flex-1" }, Bi = [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1)], Ai = { key: 0, class: "align-left" }, Li = { key: 1, class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, Fi = { class: "h-12 flex flex-row items-center" }, Ni = [i("div", { class: "w-6 h-6 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 mr-4" }, null, -1), i("div", { class: "h-3 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 grow" }, null, -1)], zi = { name: "uiSidebar" }, $i = Object.assign(zi, { props: { navigation: { type: Array, required: true }, loading: { type: Boolean, default: true } }, emits: ["sideBarClick"], setup(l2, { emit: r2 }) {
2221
+ } }), Mi = { class: "hidden md:flex md:flex-col sticky md:inset-y-0" }, Di = { class: "flex flex-col flex-grow overflow-y-auto" }, Ti = { class: "grow flex flex-col" }, Ei = { class: "flex-1 space-y-1", "aria-label": "Sidebar" }, Ii = { key: 0 }, _i = ["onClick"], ji = { key: 0, class: "text-left" }, Pi = { key: 0, class: "flex-1 text-left" }, Ri = { key: 1, class: "flex-1" }, Bi = [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1)], Ai = { key: 0, class: "align-left" }, Li = { key: 1, class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, Fi = { class: "h-12 flex flex-row items-center" }, Ni = [i("div", { class: "w-6 h-6 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 mr-4" }, null, -1), i("div", { class: "h-3 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 grow" }, null, -1)], zi = { name: "uiSidebar" }, $i = Object.assign(zi, { props: { navigation: { type: Array, required: true }, loading: { type: Boolean, default: true } }, emits: ["sideBarClick"], setup(l2, { emit: r2 }) {
2377
2222
  const s2 = r2;
2378
- return (r3, d2) => (e(), a("div", Mi, [i("div", Di, [i("div", Ei, [i("nav", Ti, [l2.loading ? (e(), a(k, { key: 1 }, P(5, (e2) => i("div", Fi, Ni)), 64)) : (e(true), a(k, { key: 0 }, P(l2.navigation, (r4) => (e(), a(k, { key: r4.name }, [r4.children ? (e(), t(u(Ml), { key: 1, as: "div", class: "space-y-1" }, { default: T(({ open: i2 }) => [o(u(Dl), { class: n([r4.current ? "bg-indigo-600 text-white" : "text-gray-600 hover:bg-gray-50 hover:text-gray-900", "group w-full flex items-center pl-2 pr-1 py-2 text-left text-sm font-medium rounded-md focus:outline-none"]) }, { default: T(() => [o(G, { loading: l2.loading, icon: r4.icon, class: n([r4.current ? "text-white" : "text-gray-400 group-hover:text-gray-500", "mr-3 flex-shrink-0 h-6 w-6"]), "aria-hidden": "true" }, null, 8, ["loading", "icon", "class"]), l2.loading ? (e(), a("div", Ri, Bi)) : (e(), a("span", Pi, _(r4.name), 1)), o(u(mn), { class: n([i2 ? "text-gray-400 rotate-90" : "text-gray-400", "ml-3 flex-shrink-0 h-3 w-3 transform group-hover:text-gray-400 transition-colors ease-in-out duration-150"]) }, null, 8, ["class"])]), _: 2 }, 1032, ["class"]), o(u(El), { class: "space-y-1" }, { default: T(() => [(e(true), a(k, null, P(r4.children, (o2) => (e(), t(u(Dl), { onClick: (e2) => s2("sideBarClick", o2.id), key: o2.name, class: n([o2.current ? "bg-gray-200" : "hover:text-gray-900 hover:bg-gray-100", "group text-gray-600 w-full flex items-center text-left pl-11 pr-2 py-2 text-sm font-medium rounded-md"]) }, { default: T(() => [l2.loading ? (e(), a("div", Li)) : (e(), a("span", Ai, _(o2.name), 1))]), _: 2 }, 1032, ["onClick", "class"]))), 128))]), _: 2 }, 1024)]), _: 2 }, 1024)) : (e(), a("div", Ii, [i("button", { onClick: (e2) => s2("sideBarClick", r4.id), class: n([r4.current ? "bg-indigo-600 text-white" : "text-gray-600 hover:bg-gray-50 hover:text-gray-900", "group w-full flex items-center pl-2 py-2 text-sm font-medium rounded-md"]) }, [o(G, { loading: l2.loading, icon: r4.icon, class: n([r4.current ? "text-white" : "text-gray-400 group-hover:text-gray-500", "mr-3 flex-shrink-0 h-6 w-6"]), "aria-hidden": "true" }, null, 8, ["loading", "icon", "class"]), l2.loading ? R("", true) : (e(), a("span", ji, _(r4.name), 1))], 10, _i)]))], 64))), 128))])])])]));
2223
+ return (r3, d2) => (e(), a("div", Mi, [i("div", Di, [i("div", Ti, [i("nav", Ei, [l2.loading ? (e(), a(k, { key: 1 }, P(5, (e2) => i("div", Fi, Ni)), 64)) : (e(true), a(k, { key: 0 }, P(l2.navigation, (r4) => (e(), a(k, { key: r4.name }, [r4.children ? (e(), t(u(Ml), { key: 1, as: "div", class: "space-y-1" }, { default: E(({ open: i2 }) => [o(u(Dl), { class: n([r4.current ? "bg-indigo-600 text-white" : "text-gray-600 hover:bg-gray-50 hover:text-gray-900", "group w-full flex items-center pl-2 pr-1 py-2 text-left text-sm font-medium rounded-md focus:outline-none"]) }, { default: E(() => [o(G, { loading: l2.loading, icon: r4.icon, class: n([r4.current ? "text-white" : "text-gray-400 group-hover:text-gray-500", "mr-3 flex-shrink-0 h-6 w-6"]), "aria-hidden": "true" }, null, 8, ["loading", "icon", "class"]), l2.loading ? (e(), a("div", Ri, Bi)) : (e(), a("span", Pi, _(r4.name), 1)), o(u(mn), { class: n([i2 ? "text-gray-400 rotate-90" : "text-gray-400", "ml-3 flex-shrink-0 h-3 w-3 transform group-hover:text-gray-400 transition-colors ease-in-out duration-150"]) }, null, 8, ["class"])]), _: 2 }, 1032, ["class"]), o(u(Tl), { class: "space-y-1" }, { default: E(() => [(e(true), a(k, null, P(r4.children, (o2) => (e(), t(u(Dl), { onClick: (e2) => s2("sideBarClick", o2.id), key: o2.name, class: n([o2.current ? "bg-gray-200" : "hover:text-gray-900 hover:bg-gray-100", "group text-gray-600 w-full flex items-center text-left pl-11 pr-2 py-2 text-sm font-medium rounded-md"]) }, { default: E(() => [l2.loading ? (e(), a("div", Li)) : (e(), a("span", Ai, _(o2.name), 1))]), _: 2 }, 1032, ["onClick", "class"]))), 128))]), _: 2 }, 1024)]), _: 2 }, 1024)) : (e(), a("div", Ii, [i("button", { onClick: (e2) => s2("sideBarClick", r4.id), class: n([r4.current ? "bg-indigo-600 text-white" : "text-gray-600 hover:bg-gray-50 hover:text-gray-900", "group w-full flex items-center pl-2 py-2 text-sm font-medium rounded-md"]) }, [o(G, { loading: l2.loading, icon: r4.icon, class: n([r4.current ? "text-white" : "text-gray-400 group-hover:text-gray-500", "mr-3 flex-shrink-0 h-6 w-6"]), "aria-hidden": "true" }, null, 8, ["loading", "icon", "class"]), l2.loading ? R("", true) : (e(), a("span", ji, _(r4.name), 1))], 10, _i)]))], 64))), 128))])])])]));
2379
2224
  } }), Vi = { key: 0 }, Hi = { class: "ml-16 text-sm font-medium text-gray-500 truncate" }, Yi = { class: "ml-16 flex items-baseline pb-5" }, qi = { class: "text-2xl font-semibold text-gray-900" }, Ui = { key: 0, class: "text-black ml-2 flex items-baseline text-sm font-semibold" }, Wi = { class: "absolute bottom-0 inset-x-0 bg-gray-50 px-4 py-4 sm:px-6" }, Ki = { class: "text-sm" }, Ji = { key: 1 }, Gi = { class: "relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full pb-6" }, Zi = { class: "absolute bg-gray-200 rounded-md p-3 animate-pulse" }, Xi = 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), Qi = 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), es = { name: "uiStats" }, ts = Object.assign(es, { props: { item: { type: Object, required: true }, loading: { type: Boolean, default: true } }, emits: ["statClick"], setup(l2, { emit: r2 }) {
2380
2225
  const s2 = r2;
2381
2226
  return (r3, d2) => l2.loading ? (e(), a("div", Ji, [i("div", Gi, [i("dt", null, [i("div", Zi, [o(G, { loading: l2.loading, icon: l2.item.icon, class: "h-6 w-6 text-white", "aria-hidden": "true" }, null, 8, ["loading", "icon"])]), Xi, Qi])])])) : (e(), a("div", Vi, [i("div", { class: n(["relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full", { "pb-12": l2.item.showFooter }]) }, [i("dt", null, [i("div", { class: n(["absolute rounded-md p-3", { "bg-indigo-500": !l2.item.color, "bg-green-500": "success" === l2.item.color, "bg-red-500": "danger" === l2.item.color, "bg-yellow-500": "warning" === l2.item.color }]) }, [o(G, { icon: l2.item.icon, class: "h-6 w-6 text-white", "aria-hidden": "true", loading: l2.loading }, null, 8, ["icon", "loading"])], 2), i("p", Hi, _(l2.item.name), 1)]), i("dd", Yi, [i("p", qi, _(l2.item.stat), 1), l2.item.explanation ? (e(), a("p", Ui, _(l2.item.explanation), 1)) : R("", true), l2.item.changeType ? (e(), a("p", { key: 1, class: n([{ "text-green-600": "increase" === l2.item.changeType, "text-red-600": "decrease" === l2.item.changeType, "text-black": "neutral" === l2.item.changeType }, "ml-2 flex items-baseline text-sm font-semibold"]) }, ["increase" === l2.item.changeType ? (e(), t(u(dn), { key: 0, class: "self-center flex-shrink-0 h-3 w-3 text-green-500", "aria-hidden": "true" })) : R("", true), "decrease" === l2.item.changeType ? (e(), t(u(sn), { key: 1, class: "self-center flex-shrink-0 h-3 w-3 text-red-500", "aria-hidden": "true" })) : R("", true), I(" " + _(l2.item.change), 1)], 2)) : R("", true), B(i("div", Wi, [i("div", Ki, [i("span", { onClick: d2[0] || (d2[0] = (e2) => s2("statClick", l2.item.id)), class: "font-medium text-indigo-600 hover:text-indigo-500 cursor-pointer" }, _(l2.item.actionText), 1)])], 512), [[L, l2.item.showFooter]])])], 2)]));
2382
- } }), ls = { key: 0, class: "overflow-hidden bg-white shadow sm:rounded-lg" }, ns = { class: "px-4 py-5 sm:px-6" }, as = { class: "text-lg font-medium leading-6 text-gray-900" }, os = { class: "mt-1 max-w-2xl text-sm text-gray-500" }, rs = { class: "border-t border-gray-200" }, is = { class: "text-sm font-medium text-gray-500" }, ss = { key: 0, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal" }, ds = { key: 1, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal" }, us = ["onClick"], cs = { key: 3, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-words" }, ps = { key: 1, class: "overflow-hidden bg-white shadow sm:rounded-lg" }, gs = z('<div class="px-4 py-5 sm:px-6 animate-pulse"><h3 class="text-lg font-medium leading-6 text-gray-900"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4"></div></h3><p class="mt-1 max-w-2xl text-sm text-gray-500"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/5"></div></p></div>', 1), fs = { class: "border-t border-gray-200" }, ms = [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)], vs = { name: "uiStripedCard" }, hs = Object.assign(vs, { props: { title: String, subtitle: String, items: Object, loading: { type: Boolean, default: true } }, emits: ["itemClicked"], setup: (l2, { emit: r2 }) => (r3, s2) => l2.loading ? (e(), a("div", ps, [gs, i("div", fs, [i("dl", null, [(e(), a(k, null, P(5, (e2) => i("div", { key: e2, class: n(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [e2 % 2 == 0 ? "bg-gray-50" : "bg-white"]]) }, ms, 2)), 64))])])])) : (e(), a("div", ls, [i("div", ns, [i("h3", as, _(l2.title), 1), i("p", os, _(l2.subtitle), 1)]), i("div", rs, [i("dl", null, [(e(true), a(k, null, P(l2.items, (s3, d2) => (e(), a("div", { key: d2, class: n(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [d2 % 2 == 0 ? "bg-gray-50" : "bg-white"]]) }, [i("dt", is, _(s3.title), 1), "tag" === s3.type ? (e(), a("dd", ss, [o(pa, { color: s3.color }, { default: T(() => [I(_(s3.text), 1)]), _: 2 }, 1032, ["color"])])) : "tags" === s3.type ? (e(), a("dd", ds, [(e(true), a(k, null, P(s3.tags, (n2, a2) => (e(), t(pa, { loading: l2.loading, key: a2, color: n2.color, class: "mr-2 mb-2" }, { default: T(() => [I(_(n2.text), 1)]), _: 2 }, 1032, ["loading", "color"]))), 128))])) : "link" === s3.type ? (e(), a("dd", { key: 2, class: "mt-1 text-sm text-indigo-600 hover:text-indigo-400 sm:col-span-2 sm:mt-0 cursor-pointer", onClick: (e2) => r3.$emit("itemClicked", s3.emits) }, _(s3.text), 9, us)) : (e(), a("dd", cs, _(s3.text), 1))], 2))), 128))])])])) }), bs = { class: "absolute top-10 bg-indigo-600 text-white text-xs p-2 rounded z-10 font-light w-60 flex flex-row items-start" }, ys = i("svg", { class: "absolute -top-3 left-0", xmlns: "http://www.w3.org/2000/svg", width: "27.687", height: "26.954", viewBox: "0 0 27.687 26.954" }, [i("path", { id: "Polígono_1", "data-name": "Polígono 1", d: "M10.5,0,21,19H0Z", transform: "translate(0 10.5) rotate(-30)", fill: "#4f46e5" })], -1), xs = { class: "ml-2" }, ws = { __name: "tooltip", props: { tip: { type: String, required: true } }, setup: (t2) => (l2, n2) => (e(), a("div", bs, [ys, i("div", null, [o(G, { icon: u(kn), loading: false, color: "white", size: "big" }, null, 8, ["icon"])]), i("span", xs, _(t2.tip), 1)])) }, ks = { key: 0 }, Ss = { class: "flex flex-col" }, Cs = { class: "-my-2 overflow-x-auto" }, Os = { class: "inline-block min-w-full py-2 align-middle px-1" }, Ms = { class: "relative overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg" }, Ds = { key: 0, class: "absolute top-0 left-12 flex h-12 items-center space-x-3 sm:left-16 bg-white shadow rounded px-4 py-1 z-10" }, Es = ["onClick"], Ts = { class: "min-w-full table-fixed divide-y divide-gray-300" }, Is = { class: "bg-gray-50" }, _s = ["checked", "indeterminate"], js = ["onMouseover", "onMouseleave"], Ps = ["onClick"], Rs = { key: 2, class: "group flex items-center uppercase text-xs" }, Bs = { class: "divide-y divide-gray-200 bg-white" }, As = { key: 0, class: "absolute inset-y-0 left-0 w-0.5 bg-indigo-600" }, Ls = ["value"], Fs = ["onClick"], Ns = ["href"], zs = { key: 3 }, $s = { name: "uiTable" }, Vs = Object.assign($s, { props: { header: { type: Array, required: true }, items: { type: Array, required: true }, orderedBy: String, orderDirection: { type: String, default: "asc" }, actions: Array, loading: { type: Boolean, default: true } }, emits: ["tableAction", "orderBy"], setup(l2, { emit: r2 }) {
2227
+ } }), ls = { key: 0, class: "overflow-hidden bg-white shadow sm:rounded-lg" }, ns = { class: "px-4 py-5 sm:px-6" }, as = { class: "text-lg font-medium leading-6 text-gray-900" }, os = { class: "mt-1 max-w-2xl text-sm text-gray-500" }, rs = { class: "border-t border-gray-200" }, is = { class: "text-sm font-medium text-gray-500" }, ss = { key: 0, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal" }, ds = { key: 1, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal" }, us = ["onClick"], cs = { key: 3, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-words" }, ps = { key: 1, class: "overflow-hidden bg-white shadow sm:rounded-lg" }, gs = z('<div class="px-4 py-5 sm:px-6 animate-pulse"><h3 class="text-lg font-medium leading-6 text-gray-900"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4"></div></h3><p class="mt-1 max-w-2xl text-sm text-gray-500"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/5"></div></p></div>', 1), fs = { class: "border-t border-gray-200" }, ms = [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)], vs = { name: "uiStripedCard" }, hs = Object.assign(vs, { props: { title: String, subtitle: String, items: Object, loading: { type: Boolean, default: true } }, emits: ["itemClicked"], setup: (l2, { emit: r2 }) => (r3, s2) => l2.loading ? (e(), a("div", ps, [gs, i("div", fs, [i("dl", null, [(e(), a(k, null, P(5, (e2) => i("div", { key: e2, class: n(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [e2 % 2 == 0 ? "bg-gray-50" : "bg-white"]]) }, ms, 2)), 64))])])])) : (e(), a("div", ls, [i("div", ns, [i("h3", as, _(l2.title), 1), i("p", os, _(l2.subtitle), 1)]), i("div", rs, [i("dl", null, [(e(true), a(k, null, P(l2.items, (s3, d2) => (e(), a("div", { key: d2, class: n(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [d2 % 2 == 0 ? "bg-gray-50" : "bg-white"]]) }, [i("dt", is, _(s3.title), 1), "tag" === s3.type ? (e(), a("dd", ss, [o(pa, { color: s3.color }, { default: E(() => [I(_(s3.text), 1)]), _: 2 }, 1032, ["color"])])) : "tags" === s3.type ? (e(), a("dd", ds, [(e(true), a(k, null, P(s3.tags, (n2, a2) => (e(), t(pa, { loading: l2.loading, key: a2, color: n2.color, class: "mr-2 mb-2" }, { default: E(() => [I(_(n2.text), 1)]), _: 2 }, 1032, ["loading", "color"]))), 128))])) : "link" === s3.type ? (e(), a("dd", { key: 2, class: "mt-1 text-sm text-indigo-600 hover:text-indigo-400 sm:col-span-2 sm:mt-0 cursor-pointer", onClick: (e2) => r3.$emit("itemClicked", s3.emits) }, _(s3.text), 9, us)) : (e(), a("dd", cs, _(s3.text), 1))], 2))), 128))])])])) }), bs = { class: "absolute top-10 bg-indigo-600 text-white text-xs p-2 rounded z-10 font-light w-60 flex flex-row items-start" }, ys = i("svg", { class: "absolute -top-3 left-0", xmlns: "http://www.w3.org/2000/svg", width: "27.687", height: "26.954", viewBox: "0 0 27.687 26.954" }, [i("path", { id: "Polígono_1", "data-name": "Polígono 1", d: "M10.5,0,21,19H0Z", transform: "translate(0 10.5) rotate(-30)", fill: "#4f46e5" })], -1), xs = { class: "ml-2" }, ws = { __name: "tooltip", props: { tip: { type: String, required: true } }, setup: (t2) => (l2, n2) => (e(), a("div", bs, [ys, i("div", null, [o(G, { icon: u(kn), loading: false, color: "white", size: "big" }, null, 8, ["icon"])]), i("span", xs, _(t2.tip), 1)])) }, ks = { key: 0 }, Ss = { class: "flex flex-col" }, Cs = { class: "-my-2 overflow-x-auto" }, Os = { class: "inline-block min-w-full py-2 align-middle px-1" }, Ms = { class: "relative overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg" }, Ds = { key: 0, class: "absolute top-0 left-12 flex h-12 items-center space-x-3 sm:left-16 bg-white shadow rounded px-4 py-1 z-10" }, Ts = ["onClick"], Es = { class: "min-w-full table-fixed divide-y divide-gray-300" }, Is = { class: "bg-gray-50" }, _s = ["checked", "indeterminate"], js = ["onMouseover", "onMouseleave"], Ps = ["onClick"], Rs = { key: 2, class: "group flex items-center uppercase text-xs" }, Bs = { class: "divide-y divide-gray-200 bg-white" }, As = { key: 0, class: "absolute inset-y-0 left-0 w-0.5 bg-indigo-600" }, Ls = ["value"], Fs = ["onClick"], Ns = ["href"], zs = { key: 3 }, $s = { name: "uiTable" }, Vs = Object.assign($s, { props: { header: { type: Array, required: true }, items: { type: Array, required: true }, orderedBy: String, orderDirection: { type: String, default: "asc" }, actions: Array, loading: { type: Boolean, default: true } }, emits: ["tableAction", "orderBy"], setup(l2, { emit: r2 }) {
2383
2228
  let c2 = s([]);
2384
2229
  s(false);
2385
2230
  let p2 = s(void 0);
@@ -2388,9 +2233,9 @@ const ri = Ho(ni, [["render", function(t2, l2, n2, o2, r2, i2) {
2388
2233
  };
2389
2234
  return (r3, s2) => {
2390
2235
  var _a2, _b;
2391
- return l2.loading ? (e(), t(or, { key: 1 })) : (e(), a("div", ks, [i("div", Ss, [i("div", Cs, [i("div", Os, [i("div", Ms, [((_a2 = u(c2)) == null ? void 0 : _a2.length) > 0 && ((_b = l2.actions) == null ? void 0 : _b.length) > 0 ? (e(), a("div", Ds, [(e(true), a(k, null, P(l2.actions, (t2, l3) => (e(), a("button", { onClick: (e2) => g2("tableAction", { action: t2.id, items: u(c2) }), key: l3, type: "button", class: "inline-flex items-center rounded bg-indigo-600 hover:bg-indigo-800 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm disabled:cursor-not-allowed disabled:opacity-30" }, _(t2.name), 9, Es))), 128))])) : R("", true), i("table", Ts, [i("thead", Is, [i("tr", null, [i("th", { scope: "col", class: n([l2.actions ? "px-6 sm:px-8" : "px-3", "relative"]) }, [l2.actions ? (e(), a("input", { key: 0, checked: m2.value || u(c2).length === l2.items.length, indeterminate: m2.value, class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500", type: "checkbox", onChange: s2[0] || (s2[0] = (e2) => H(c2) ? c2.value = e2.target.checked ? l2.items.map((e3) => e3.id) : [] : c2 = e2.target.checked ? l2.items.map((e3) => e3.id) : []) }, null, 40, _s)) : R("", true)], 2), (e(true), a(k, null, P(l2.header, (r4, s3) => (e(), a("th", { key: s3, class: "py-3.5 pr-3 text-left font-semibold text-gray-900 flex-wrap relative", scope: "col", onMouseover: (e2) => v2(r4.name, true), onMouseleave: (e2) => v2(r4.name, false) }, [r4.tooltip ? B((e(), t(ws, { key: 0, tip: r4.tooltip }, null, 8, ["tip"])), [[L, u(p2) === r4.name]]) : R("", true), r4.value ? (e(), a("button", { key: 1, class: "group flex items-center uppercase text-xs relative", onClick: (e2) => g2("orderBy", { value: r4.value, orderDirection: "asc" === l2.orderDirection ? "desc" : "asc" }) }, [i("span", null, _(r4.name), 1), i("span", { class: n([[r4.value === l2.orderedBy ? "bg-indigo-600 text-white group-hover:bg-gray-300" : "text-gray-400 group-hover:visible group-focus:visible"], "ml-2 flex-none rounded group-hover:bg-indigo-200 group-hover:text-white"]) }, [o(G, { icon: "asc" === l2.orderDirection ? u(gn) : u(hn), loading: l2.loading, color: r4.value === l2.orderedBy ? "white" : "primary" }, null, 8, ["icon", "loading", "color"])], 2)], 8, Ps)) : (e(), a("p", Rs, [i("span", null, _(r4.name), 1)]))], 40, js))), 128))])]), i("tbody", Bs, [(e(true), a(k, null, P(l2.items, (o2, r4) => {
2236
+ return l2.loading ? (e(), t(or, { key: 1 })) : (e(), a("div", ks, [i("div", Ss, [i("div", Cs, [i("div", Os, [i("div", Ms, [((_a2 = u(c2)) == null ? void 0 : _a2.length) > 0 && ((_b = l2.actions) == null ? void 0 : _b.length) > 0 ? (e(), a("div", Ds, [(e(true), a(k, null, P(l2.actions, (t2, l3) => (e(), a("button", { onClick: (e2) => g2("tableAction", { action: t2.id, items: u(c2) }), key: l3, type: "button", class: "inline-flex items-center rounded bg-indigo-600 hover:bg-indigo-800 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm disabled:cursor-not-allowed disabled:opacity-30" }, _(t2.name), 9, Ts))), 128))])) : R("", true), i("table", Es, [i("thead", Is, [i("tr", null, [i("th", { scope: "col", class: n([l2.actions ? "px-6 sm:px-8" : "px-3", "relative"]) }, [l2.actions ? (e(), a("input", { key: 0, checked: m2.value || u(c2).length === l2.items.length, indeterminate: m2.value, class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500", type: "checkbox", onChange: s2[0] || (s2[0] = (e2) => H(c2) ? c2.value = e2.target.checked ? l2.items.map((e3) => e3.id) : [] : c2 = e2.target.checked ? l2.items.map((e3) => e3.id) : []) }, null, 40, _s)) : R("", true)], 2), (e(true), a(k, null, P(l2.header, (r4, s3) => (e(), a("th", { key: s3, class: "py-3.5 pr-3 text-left font-semibold text-gray-900 flex-wrap relative", scope: "col", onMouseover: (e2) => v2(r4.name, true), onMouseleave: (e2) => v2(r4.name, false) }, [r4.tooltip ? B((e(), t(ws, { key: 0, tip: r4.tooltip }, null, 8, ["tip"])), [[L, u(p2) === r4.name]]) : R("", true), r4.value ? (e(), a("button", { key: 1, class: "group flex items-center uppercase text-xs relative", onClick: (e2) => g2("orderBy", { value: r4.value, orderDirection: "asc" === l2.orderDirection ? "desc" : "asc" }) }, [i("span", null, _(r4.name), 1), i("span", { class: n([[r4.value === l2.orderedBy ? "bg-indigo-600 text-white group-hover:bg-gray-300" : "text-gray-400 group-hover:visible group-focus:visible"], "ml-2 flex-none rounded group-hover:bg-indigo-200 group-hover:text-white"]) }, [o(G, { icon: "asc" === l2.orderDirection ? u(gn) : u(hn), loading: l2.loading, color: r4.value === l2.orderedBy ? "white" : "primary" }, null, 8, ["icon", "loading", "color"])], 2)], 8, Ps)) : (e(), a("p", Rs, [i("span", null, _(r4.name), 1)]))], 40, js))), 128))])]), i("tbody", Bs, [(e(true), a(k, null, P(l2.items, (o2, r4) => {
2392
2237
  var _a3, _b2;
2393
- return e(), a("tr", { key: o2.id, class: n([u(c2).includes(o2.id) && "bg-gray-50", r4 % 2 == 0 ? void 0 : "bg-gray-50"]) }, [i("td", { class: n([((_a3 = l2.actions) == null ? void 0 : _a3.length) > 0 ? "w-2" : "w-0", "relative"]) }, [u(c2).includes(o2.id) ? (e(), a("div", As)) : R("", true), ((_b2 = l2.actions) == null ? void 0 : _b2.length) > 0 ? B((e(), a("input", { key: 1, "onUpdate:modelValue": s2[1] || (s2[1] = (e2) => H(c2) ? c2.value = e2 : c2 = e2), value: o2.id, class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500 flex-wrap", type: "checkbox" }, null, 8, Ls)), [[V, u(c2)]]) : R("", true)], 2), (e(true), a(k, null, P(o2.row, (r5, i2) => (e(), a("td", { key: i2, class: n(["whitespace-nowrap py-4 pr-3 text-sm", u(c2).includes(o2.id) ? "text-indigo-600" : "text-gray-900"]) }, ["object" == typeof r5 && "tag" === r5.type ? (e(), t(pa, { key: 0, loading: l2.loading, color: r5.color }, { default: T(() => [I(_(r5.content), 1)]), _: 2 }, 1032, ["loading", "color"])) : "object" == typeof r5 && "link" === r5.type ? (e(), a("span", { key: 1, class: "text-indigo-600 hover:text-indigo-400 cursor-pointer", onClick: (e2) => g2(r5.emits, { id: o2.id, data: (o2 == null ? void 0 : o2.emitWith) || null }) }, _(r5.content), 9, Fs)) : "object" == typeof r5 && "href" === r5.type ? (e(), a("a", { key: 2, class: "text-indigo-600 hover:text-indigo-400 cursor-pointer", href: r5.href, target: "_blank" }, _(r5.content), 9, Ns)) : (e(), a("span", zs, _(r5), 1))], 2))), 128))], 2);
2238
+ return e(), a("tr", { key: o2.id, class: n([u(c2).includes(o2.id) && "bg-gray-50", r4 % 2 == 0 ? void 0 : "bg-gray-50"]) }, [i("td", { class: n([((_a3 = l2.actions) == null ? void 0 : _a3.length) > 0 ? "w-2" : "w-0", "relative"]) }, [u(c2).includes(o2.id) ? (e(), a("div", As)) : R("", true), ((_b2 = l2.actions) == null ? void 0 : _b2.length) > 0 ? B((e(), a("input", { key: 1, "onUpdate:modelValue": s2[1] || (s2[1] = (e2) => H(c2) ? c2.value = e2 : c2 = e2), value: o2.id, class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500 flex-wrap", type: "checkbox" }, null, 8, Ls)), [[V, u(c2)]]) : R("", true)], 2), (e(true), a(k, null, P(o2.row, (r5, i2) => (e(), a("td", { key: i2, class: n(["whitespace-nowrap py-4 pr-3 text-sm", u(c2).includes(o2.id) ? "text-indigo-600" : "text-gray-900"]) }, ["object" == typeof r5 && "tag" === r5.type ? (e(), t(pa, { key: 0, loading: l2.loading, color: r5.color }, { default: E(() => [I(_(r5.content), 1)]), _: 2 }, 1032, ["loading", "color"])) : "object" == typeof r5 && "link" === r5.type ? (e(), a("span", { key: 1, class: "text-indigo-600 hover:text-indigo-400 cursor-pointer", onClick: (e2) => g2(r5.emits, { id: o2.id, data: (o2 == null ? void 0 : o2.emitWith) || null }) }, _(r5.content), 9, Fs)) : "object" == typeof r5 && "href" === r5.type ? (e(), a("a", { key: 2, class: "text-indigo-600 hover:text-indigo-400 cursor-pointer", href: r5.href, target: "_blank" }, _(r5.content), 9, Ns)) : (e(), a("span", zs, _(r5), 1))], 2))), 128))], 2);
2394
2239
  }), 128))])])])])])])]));
2395
2240
  };
2396
2241
  } }), Hs = { class: "lg:hidden" }, Ys = ["value"], qs = { class: "hidden lg:block" }, Us = { class: "border-b border-gray-200" }, Ws = { class: "-mb-px flex space-x-8", "aria-label": "Tabs" }, Ks = ["onClick", "aria-current"], Js = { name: "uiTabs" }, Gs = Object.assign(Js, { props: { tabs: Array }, emits: ["tabClicked"], setup(t2, { emit: l2 }) {
@@ -2403,17 +2248,17 @@ const ri = Ho(ni, [["render", function(t2, l2, n2, o2, r2, i2) {
2403
2248
  const l2 = O(t2.timeline);
2404
2249
  return (r2, s2) => {
2405
2250
  const d2 = $("uiICon");
2406
- return t2.loading ? (e(), a("div", gd, [fd, i("div", md, [i("div", vd, [i("ul", hd, [(e(), a(k, null, P(10, (t3, l3) => i("li", { key: l3 }, [i("div", bd, [10 !== t3 ? (e(), a("span", yd)) : R("", true), xd])])), 64))])])]), wd])) : (e(), a("div", { key: 0, class: n(["h-[" + t2.height + "px]", "bg-white overflow-hidden shadow rounded-lg"]) }, [i("div", Zs, [i("h1", Xs, _(t2.name), 1)]), l2.items ? (e(), a("div", Qs, [i("div", ed, [o(Y, { name: "list", tag: "ul", class: "-mb-8" }, { default: T(() => [(e(true), a(k, null, P(l2.items, (s3, d3) => {
2251
+ return t2.loading ? (e(), a("div", gd, [fd, i("div", md, [i("div", vd, [i("ul", hd, [(e(), a(k, null, P(10, (t3, l3) => i("li", { key: l3 }, [i("div", bd, [10 !== t3 ? (e(), a("span", yd)) : R("", true), xd])])), 64))])])]), wd])) : (e(), a("div", { key: 0, class: n(["h-[" + t2.height + "px]", "bg-white overflow-hidden shadow rounded-lg"]) }, [i("div", Zs, [i("h1", Xs, _(t2.name), 1)]), l2.items ? (e(), a("div", Qs, [i("div", ed, [o(Y, { name: "list", tag: "ul", class: "-mb-8" }, { default: E(() => [(e(true), a(k, null, P(l2.items, (s3, d3) => {
2407
2252
  var _a2;
2408
2253
  return e(), a("li", { key: d3 }, [i("div", td, [d3 < ((_a2 = l2.items) == null ? void 0 : _a2.length) - 1 ? (e(), a("span", ld)) : R("", true), i("div", nd, [i("div", null, [i("span", { class: n([(s3 == null ? void 0 : s3.iconBackground) || "bg-indigo-600", "h-8 w-8 rounded-full flex items-center justify-center ring-4 ring-white"]) }, [o(G, { loading: t2.loading, icon: s3 == null ? void 0 : s3.icon, "aria-hidden": "true", class: "h-5 w-5 text-white", color: "white" }, null, 8, ["loading", "icon"])], 2)]), i("div", ad, [i("div", null, [i("p", od, [i("a", { onClick: (e2) => r2.$emit("timelineEventClicked", s3 == null ? void 0 : s3.linkId), class: "font-medium text-indigo-600 hover:text-indigo-800 cursor-pointer" }, _(s3 == null ? void 0 : s3.target), 9, rd), I(" " + _(s3 == null ? void 0 : s3.content), 1)])]), i("div", id, [i("time", { datetime: s3 == null ? void 0 : s3.datetime }, _(s3 == null ? void 0 : s3.date), 9, sd)])])])])]);
2409
2254
  }), 128))]), _: 1 })])])) : R("", true), l2.items ? (e(), a("div", dd, [i("div", ud, [i("a", { class: "cursor-pointer font-medium text-indigo-600 hover:text-indigo-500", onClick: s2[0] || (s2[0] = (e2) => r2.$emit("timelineFooterClicked", t2.timeline.id)) }, _(t2.timeline.footerText), 1)])])) : (e(), a("div", cd, [o(d2, { icon: u(bn), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), pd]))], 2));
2410
2255
  };
2411
- } }), Cd = { name: "uiTopbar", props: ["navigation", "logo", "profileMenu", "brand", "accountLogo", "alerted"], components: { Disclosure: Ml, DisclosureButton: Dl, DisclosurePanel: El, Menu: Al, MenuButton: Ll, MenuItem: Nl, MenuItems: Fl, Bars3Icon: function(t2, l2) {
2256
+ } }), Cd = { name: "uiTopbar", props: ["navigation", "logo", "profileMenu", "brand", "accountLogo", "alerted"], components: { Disclosure: Ml, DisclosureButton: Dl, DisclosurePanel: Tl, Menu: Al, MenuButton: Ll, MenuItem: Nl, MenuItems: Fl, Bars3Icon: function(t2, l2) {
2412
2257
  return e(), a("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", "aria-hidden": "true", "data-slot": "icon" }, [i("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5" })]);
2413
- }, XMarkIcon: On } }, Od = { class: "mx-auto px-6 lg:px-8" }, Md = { class: "flex justify-between h-20" }, Dd = { class: "flex" }, Ed = { class: "-ml-2 mr-2 flex items-center lg:hidden" }, Td = i("span", { class: "sr-only" }, "Open main menu", -1), Id = ["src"], _d = { class: "flex items-center" }, jd = { class: "lg:ml-4 lg:flex-shrink-0 lg:flex lg:items-center hidden" }, Pd = { class: "redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute -top-0 -left-1" }, Rd = [i("span", { class: "animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75" }, null, -1)], Bd = ["src"], Ad = ["onClick"], Ld = { class: "pt-2 pb-3 space-y-1" }, Fd = ["onClick"], Nd = { class: "pt-4 pb-3 border-t border-gray-200" }, zd = { class: "flex items-center px-4 sm:px-6" }, $d = { class: "flex-shrink-0" }, Vd = ["src"], Hd = { key: 0, class: "ml-3" }, Yd = { class: "text-base font-medium text-gray-800" }, qd = { class: "text-sm font-medium text-gray-500" }, Ud = { class: "mt-3 space-y-1" }, Wd = ["onClick"];
2258
+ }, XMarkIcon: On } }, Od = { class: "mx-auto px-6 lg:px-8" }, Md = { class: "flex justify-between h-20" }, Dd = { class: "flex" }, Td = { class: "-ml-2 mr-2 flex items-center lg:hidden" }, Ed = i("span", { class: "sr-only" }, "Open main menu", -1), Id = ["src"], _d = { class: "flex items-center" }, jd = { class: "lg:ml-4 lg:flex-shrink-0 lg:flex lg:items-center hidden" }, Pd = { class: "redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute -top-0 -left-1" }, Rd = [i("span", { class: "animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75" }, null, -1)], Bd = ["src"], Ad = ["onClick"], Ld = { class: "pt-2 pb-3 space-y-1" }, Fd = ["onClick"], Nd = { class: "pt-4 pb-3 border-t border-gray-200" }, zd = { class: "flex items-center px-4 sm:px-6" }, $d = { class: "flex-shrink-0" }, Vd = ["src"], Hd = { key: 0, class: "ml-3" }, Yd = { class: "text-base font-medium text-gray-800" }, qd = { class: "text-sm font-medium text-gray-500" }, Ud = { class: "mt-3 space-y-1" }, Wd = ["onClick"];
2414
2259
  const Kd = Ho(Cd, [["render", function(l2, r2, s2, d2, u2, c2) {
2415
2260
  const p2 = $("Bars3Icon"), g2 = $("XMarkIcon"), f2 = $("DisclosureButton"), m2 = $("MenuButton"), v2 = $("MenuItem"), h2 = $("MenuItems"), b2 = $("Menu"), y2 = $("DisclosurePanel"), x2 = $("Disclosure");
2416
- return e(), t(x2, { as: "nav", class: "bg-white shadow z-10" }, { default: T(({ open: d3 }) => [i("div", Od, [i("div", Md, [i("div", Dd, [i("div", Ed, [o(f2, { class: "inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500" }, { default: T(() => [Td, d3 ? (e(), t(g2, { key: 1, class: "block h-6 w-6", "aria-hidden": "true" })) : (e(), t(p2, { key: 0, class: "block h-6 w-6", "aria-hidden": "true" }))]), _: 2 }, 1024)]), i("div", { class: "flex-shrink-0 flex items-center cursor-pointer", onClick: r2[0] || (r2[0] = (e2) => l2.$emit("topBarClick", "logo")) }, [i("img", { class: "h-10", src: s2.logo, alt: "Hotelinking suite product logo" }, null, 8, Id)])]), i("div", _d, [i("div", jd, [o(b2, { as: "div", class: "ml-3 relative" }, { default: T(() => [i("div", null, [B(o(m2, { class: "bg-white rounded-full flex text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 relative" }, { default: T(() => [B(i("div", Pd, Rd, 512), [[L, s2.alerted]]), i("img", { class: "h-10 w-10 rounded-full", src: s2.accountLogo }, null, 8, Bd)]), _: 1 }, 512), [[L, s2.accountLogo]])]), o(j, { "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: T(() => [o(h2, { class: "origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg py-1 bg-white ring-1 ring-black ring-opacity-5 focus:outline-none" }, { default: T(() => [(e(true), a(k, null, P(s2.profileMenu, (a2) => (e(), t(v2, { key: a2.name }, { default: T(({ active: e2 }) => [i("p", { onClick: (e3) => l2.$emit("topBarClick", a2.id), class: n(["cursor-pointer", [e2 ? "bg-gray-100" : "", "block px-4 py-2 text-sm text-gray-700"]]) }, _(a2.name), 11, Ad)]), _: 2 }, 1024))), 128))]), _: 1 })]), _: 1 })]), _: 1 })])])])]), o(y2, { class: "lg:hidden" }, { default: T(() => [i("div", Ld, [(e(true), a(k, null, P(s2.navigation, (a2) => (e(), t(f2, { as: "template", key: a2.name, class: n(["block pl-3 pr-4 py-2 border-l-4 text-base font-medium sm:pl-5 sm:pr-6", { "bg-indigo-50 border-indigo-500 text-indigo-700": a2.current && true === a2.current, "border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700": !a2.current }]) }, { default: T(() => [i("p", { onClick: (e2) => l2.$emit("topBarClick", a2.id) }, _(a2.name), 9, Fd)]), _: 2 }, 1032, ["class"]))), 128))]), i("div", Nd, [i("div", zd, [i("div", $d, [i("img", { class: "h-10 w-10 rounded-full", src: s2.accountLogo }, null, 8, Vd)]), s2.brand ? (e(), a("div", Hd, [i("div", Yd, _(s2.brand.title), 1), i("div", qd, _(s2.brand.subtitle), 1)])) : R("", true)]), i("div", Ud, [(e(true), a(k, null, P(s2.profileMenu, (n2) => (e(), t(f2, { as: "template", key: n2.name, class: "block px-4 py-2 text-base font-medium text-gray-500 hover:text-gray-800 hover:bg-gray-100 sm:px-6" }, { default: T(() => [i("p", { onClick: (e2) => l2.$emit("topBarClick", n2.id) }, _(n2.name), 9, Wd)]), _: 2 }, 1024))), 128))])])]), _: 1 })]), _: 1 });
2261
+ return e(), t(x2, { as: "nav", class: "bg-white shadow z-10" }, { default: E(({ open: d3 }) => [i("div", Od, [i("div", Md, [i("div", Dd, [i("div", Td, [o(f2, { class: "inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500" }, { default: E(() => [Ed, d3 ? (e(), t(g2, { key: 1, class: "block h-6 w-6", "aria-hidden": "true" })) : (e(), t(p2, { key: 0, class: "block h-6 w-6", "aria-hidden": "true" }))]), _: 2 }, 1024)]), i("div", { class: "flex-shrink-0 flex items-center cursor-pointer", onClick: r2[0] || (r2[0] = (e2) => l2.$emit("topBarClick", "logo")) }, [i("img", { class: "h-10", src: s2.logo, alt: "Hotelinking suite product logo" }, null, 8, Id)])]), i("div", _d, [i("div", jd, [o(b2, { as: "div", class: "ml-3 relative" }, { default: E(() => [i("div", null, [B(o(m2, { class: "bg-white rounded-full flex text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 relative" }, { default: E(() => [B(i("div", Pd, Rd, 512), [[L, s2.alerted]]), i("img", { class: "h-10 w-10 rounded-full", src: s2.accountLogo }, null, 8, Bd)]), _: 1 }, 512), [[L, s2.accountLogo]])]), o(j, { "enter-active-class": "transition ease-out duration-200", "enter-from-class": "transform opacity-0 scale-95", "enter-to-class": "transform opacity-100 scale-100", "leave-active-class": "transition ease-in duration-75", "leave-from-class": "transform opacity-100 scale-100", "leave-to-class": "transform opacity-0 scale-95" }, { default: E(() => [o(h2, { class: "origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg py-1 bg-white ring-1 ring-black ring-opacity-5 focus:outline-none" }, { default: E(() => [(e(true), a(k, null, P(s2.profileMenu, (a2) => (e(), t(v2, { key: a2.name }, { default: E(({ active: e2 }) => [i("p", { onClick: (e3) => l2.$emit("topBarClick", a2.id), class: n(["cursor-pointer", [e2 ? "bg-gray-100" : "", "block px-4 py-2 text-sm text-gray-700"]]) }, _(a2.name), 11, Ad)]), _: 2 }, 1024))), 128))]), _: 1 })]), _: 1 })]), _: 1 })])])])]), o(y2, { class: "lg:hidden" }, { default: E(() => [i("div", Ld, [(e(true), a(k, null, P(s2.navigation, (a2) => (e(), t(f2, { as: "template", key: a2.name, class: n(["block pl-3 pr-4 py-2 border-l-4 text-base font-medium sm:pl-5 sm:pr-6", { "bg-indigo-50 border-indigo-500 text-indigo-700": a2.current && true === a2.current, "border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700": !a2.current }]) }, { default: E(() => [i("p", { onClick: (e2) => l2.$emit("topBarClick", a2.id) }, _(a2.name), 9, Fd)]), _: 2 }, 1032, ["class"]))), 128))]), i("div", Nd, [i("div", zd, [i("div", $d, [i("img", { class: "h-10 w-10 rounded-full", src: s2.accountLogo }, null, 8, Vd)]), s2.brand ? (e(), a("div", Hd, [i("div", Yd, _(s2.brand.title), 1), i("div", qd, _(s2.brand.subtitle), 1)])) : R("", true)]), i("div", Ud, [(e(true), a(k, null, P(s2.profileMenu, (n2) => (e(), t(f2, { as: "template", key: n2.name, class: "block px-4 py-2 text-base font-medium text-gray-500 hover:text-gray-800 hover:bg-gray-100 sm:px-6" }, { default: E(() => [i("p", { onClick: (e2) => l2.$emit("topBarClick", n2.id) }, _(n2.name), 9, Wd)]), _: 2 }, 1024))), 128))])])]), _: 1 })]), _: 1 });
2417
2262
  }]]), Jd = { chart: { type: "bar", toolbar: { show: false }, zoom: { enabled: false } }, colors: ["#715aff"], dataLabels: { enabled: true, formatter: function(e2, t2) {
2418
2263
  return t2.w.globals.labels[t2.dataPointIndex] + ": " + e2;
2419
2264
  } }, markers: { strokeWidth: 0, size: 4, hover: { size: 8 } }, plotOptions: { bar: { borderRadius: 0, horizontal: true, barHeight: "80%", isFunnel: true } } }, Gd = { class: "chart-header flex flex-row justify-between" }, Zd = { class: "text-sm font-medium text-gray-500 truncate" }, Xd = { class: "chart-content" }, Qd = { class: "h-full w-full flex items-center justify-center flex-col" }, eu = i("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1), tu = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, lu = [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)], nu = { name: "uiChart" }, au = Object.assign(nu, { props: { title: String, id: { type: String, default: "noChartId" }, series: { type: Object, required: true }, options: { type: Object, required: true }, loading: { type: Boolean, default: true }, empty: { type: Boolean, default: false }, range: { type: String, default: "24h" }, height: { type: Number, default: 320 } }, emits: ["selectedRange", "chartUpdated", "dataPointSelection"], setup(t2, { emit: l2 }) {
@@ -2421,21 +2266,21 @@ const Kd = Ho(Cd, [["render", function(l2, r2, s2, d2, u2, c2) {
2421
2266
  r2("dataPointSelection", { id: s2.id, chartContext: t3, config: l3, event: e2 });
2422
2267
  };
2423
2268
  return (l3, r3) => (e(), a(k, null, [B(i("div", { class: n(["h-[" + t2.height + "px]", "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"]) }, [i("div", Gd, [i("div", Zd, _(t2.title), 1), o(Wr, { range: t2.range, onRangeSelected: r3[0] || (r3[0] = (e2) => l3.$emit("selectedRange", { range: e2, chartId: t2.id })) }, null, 8, ["range"])]), B(i("div", Xd, [o(u(U), { type: l3.bar, series: p2.value, width: "100%", height: t2.height, options: c2.value, onUpdated: g2, onMounted: g2, onDataPointSelection: f2 }, null, 8, ["type", "series", "height", "options"])], 512), [[L, !t2.empty]]), B(i("div", Qd, [o(G, { icon: u(bn), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), eu], 512), [[L, t2.empty]])], 2), [[L, !t2.loading]]), B(i("div", tu, lu, 512), [[L, t2.loading]])], 64));
2424
- } }), ou = { class: "w-full flex flex-col items-center justify-center p-10 grow" }, ru = { class: "text-2xl mt-4 font-bold" }, iu = { class: "buttons flex flex-row items-center justify-center mt-8 gap-x-1" }, su = { __name: "uiNoResults", props: { title: { type: String, required: true }, message: { type: String, required: true }, actions: { type: Array } }, emits: ["action"], setup: (l2, { emit: n2 }) => (n3, r2) => (e(), a("div", ou, [o(G, { loading: false, icon: u(bn), size: "massive", color: "gray" }, null, 8, ["icon"]), i("h2", ru, _(l2.title), 1), i("p", null, _(l2.message), 1), i("div", iu, [(e(true), a(k, null, P(l2.actions, (l3, a2) => (e(), t(te, { key: a2, loading: false, onClick: (e2) => n3.$emit("action", l3.action) }, { default: T(() => [I(_(l3.text), 1)]), _: 2 }, 1032, ["onClick"]))), 128))])])) }, du = i("div", { class: "fixed inset-0" }, null, -1), uu = { class: "fixed inset-0 overflow-hidden" }, cu = { class: "absolute inset-0 overflow-hidden" }, pu = { class: "pointer-events-none fixed inset-y-0 right-0 flex max-w-full pl-10" }, gu = { class: "flex h-full flex-col overflow-y-scroll bg-white shadow-xl" }, fu = { class: "bg-indigo-700 px-4 py-6 sm:px-6" }, mu = { class: "flex items-center justify-between" }, vu = { class: "ml-3 flex h-7 items-center" }, hu = i("span", { class: "absolute -inset-2.5" }, null, -1), bu = i("span", { class: "sr-only" }, "Close panel", -1), yu = { class: "mt-1" }, xu = { class: "text-sm text-indigo-300" }, wu = { class: "relative flex-1 px-4 py-6 sm:px-6" }, ku = { name: "uiRightSidebar" }, Su = Object.assign(ku, { props: { title: { type: String, required: true }, description: { type: String }, open: { type: Boolean, default: false } }, emits: ["closeRightBar"], setup(l2, { emit: n2 }) {
2269
+ } }), ou = { class: "w-full flex flex-col items-center justify-center p-10 grow" }, ru = { class: "text-2xl mt-4 font-bold" }, iu = { class: "buttons flex flex-row items-center justify-center mt-8 gap-x-1" }, su = { __name: "uiNoResults", props: { title: { type: String, required: true }, message: { type: String, required: true }, actions: { type: Array } }, emits: ["action"], setup: (l2, { emit: n2 }) => (n3, r2) => (e(), a("div", ou, [o(G, { loading: false, icon: u(bn), size: "massive", color: "gray" }, null, 8, ["icon"]), i("h2", ru, _(l2.title), 1), i("p", null, _(l2.message), 1), i("div", iu, [(e(true), a(k, null, P(l2.actions, (l3, a2) => (e(), t(te, { key: a2, loading: false, onClick: (e2) => n3.$emit("action", l3.action) }, { default: E(() => [I(_(l3.text), 1)]), _: 2 }, 1032, ["onClick"]))), 128))])])) }, du = i("div", { class: "fixed inset-0" }, null, -1), uu = { class: "fixed inset-0 overflow-hidden" }, cu = { class: "absolute inset-0 overflow-hidden" }, pu = { class: "pointer-events-none fixed inset-y-0 right-0 flex max-w-full pl-10" }, gu = { class: "flex h-full flex-col overflow-y-scroll bg-white shadow-xl" }, fu = { class: "bg-indigo-700 px-4 py-6 sm:px-6" }, mu = { class: "flex items-center justify-between" }, vu = { class: "ml-3 flex h-7 items-center" }, hu = i("span", { class: "absolute -inset-2.5" }, null, -1), bu = i("span", { class: "sr-only" }, "Close panel", -1), yu = { class: "mt-1" }, xu = { class: "text-sm text-indigo-300" }, wu = { class: "relative flex-1 px-4 py-6 sm:px-6" }, ku = { name: "uiRightSidebar" }, Su = Object.assign(ku, { props: { title: { type: String, required: true }, description: { type: String }, open: { type: Boolean, default: false } }, emits: ["closeRightBar"], setup(l2, { emit: n2 }) {
2425
2270
  const a2 = n2;
2426
- return (n3, s2) => (e(), t(u(rn), { as: "template", show: l2.open }, { default: T(() => [o(u(yl), { as: "div", class: "relative z-10", onClose: s2[1] || (s2[1] = (e2) => a2("closeRightBar")) }, { default: T(() => [du, i("div", uu, [i("div", cu, [i("div", pu, [o(u(an), { as: "template", enter: "transform transition ease-in-out duration-500 sm:duration-700", "enter-from": "translate-x-full", "enter-to": "translate-x-0", leave: "transform transition ease-in-out duration-500 sm:duration-700", "leave-from": "translate-x-0", "leave-to": "translate-x-full" }, { default: T(() => [o(u(xl), { class: "pointer-events-auto w-screen max-w-md" }, { default: T(() => [i("div", gu, [i("div", fu, [i("div", mu, [o(u(wl), { class: "text-base font-semibold leading-6 text-white" }, { default: T(() => [I(_(l2.title), 1)]), _: 1 }), i("div", vu, [i("button", { type: "button", class: "relative rounded-md bg-indigo-700 text-indigo-200 hover:text-white outline-none", onClick: s2[0] || (s2[0] = (e2) => a2("closeRightBar")) }, [hu, bu, o(u(On), { class: "h-6 w-6 ring-0", "aria-hidden": "true" })])])]), i("div", yu, [i("p", xu, _(l2.description), 1)])]), i("div", wu, [r(n3.$slots, "default")])])]), _: 3 })]), _: 3 })])])])]), _: 3 })]), _: 3 }, 8, ["show"]));
2427
- } }), Cu = { class: "uiGallery" }, Ou = { key: 1, role: "list", class: "grid grid-cols-2 gap-x-4 gap-y-8 sm:grid-cols-3 sm:gap-x-4 lg:grid-cols-6" }, Mu = { class: "group aspect-h-7 aspect-w-10 block w-full overflow-hidden rounded-lg bg-gray-100 focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 focus-within:ring-offset-gray-100" }, Du = ["src"], Eu = ["onClick"], Tu = { class: "pointer-events-none mt-2 block truncate text-sm font-medium text-gray-900" }, Iu = { class: "flex items-center justify-between" }, _u = { class: "pointer-events-none block text-sm font-medium text-gray-500" }, ju = { key: 2, role: "list", class: "grid grid-cols-2 gap-x-4 gap-y-8 sm:grid-cols-3 sm:gap-x-4 lg:grid-cols-6" }, Pu = [i("div", { class: "group aspect-h-7 aspect-w-10 block w-full overflow-hidden rounded-lg bg-gray-200 animate-pulse dark:bg-gray-200 focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 focus-within:ring-offset-gray-100" }, null, -1), i("p", { class: "animate-pulse h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28 mt-4" }, null, -1), i("p", { class: "animate-pulse h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-14 mt-2" }, null, -1)], Ru = { name: "uiGallery" }, Bu = Object.assign(Ru, { props: { galleryId: String, gallery: Array, loading: Boolean, literals: Object }, setup(l2, { emit: n2 }) {
2271
+ return (n3, s2) => (e(), t(u(rn), { as: "template", show: l2.open }, { default: E(() => [o(u(yl), { as: "div", class: "relative z-10", onClose: s2[1] || (s2[1] = (e2) => a2("closeRightBar")) }, { default: E(() => [du, i("div", uu, [i("div", cu, [i("div", pu, [o(u(an), { as: "template", enter: "transform transition ease-in-out duration-500 sm:duration-700", "enter-from": "translate-x-full", "enter-to": "translate-x-0", leave: "transform transition ease-in-out duration-500 sm:duration-700", "leave-from": "translate-x-0", "leave-to": "translate-x-full" }, { default: E(() => [o(u(xl), { class: "pointer-events-auto w-screen max-w-md" }, { default: E(() => [i("div", gu, [i("div", fu, [i("div", mu, [o(u(wl), { class: "text-base font-semibold leading-6 text-white" }, { default: E(() => [I(_(l2.title), 1)]), _: 1 }), i("div", vu, [i("button", { type: "button", class: "relative rounded-md bg-indigo-700 text-indigo-200 hover:text-white outline-none", onClick: s2[0] || (s2[0] = (e2) => a2("closeRightBar")) }, [hu, bu, o(u(On), { class: "h-6 w-6 ring-0", "aria-hidden": "true" })])])]), i("div", yu, [i("p", xu, _(l2.description), 1)])]), i("div", wu, [r(n3.$slots, "default")])])]), _: 3 })]), _: 3 })])])])]), _: 3 })]), _: 3 }, 8, ["show"]));
2272
+ } }), Cu = { class: "uiGallery" }, Ou = { key: 1, role: "list", class: "grid grid-cols-2 gap-x-4 gap-y-8 sm:grid-cols-3 sm:gap-x-4 lg:grid-cols-6" }, Mu = { class: "group aspect-h-7 aspect-w-10 block w-full overflow-hidden rounded-lg bg-gray-100 focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 focus-within:ring-offset-gray-100" }, Du = ["src"], Tu = ["onClick"], Eu = { class: "pointer-events-none mt-2 block truncate text-sm font-medium text-gray-900" }, Iu = { class: "flex items-center justify-between" }, _u = { class: "pointer-events-none block text-sm font-medium text-gray-500" }, ju = { key: 2, role: "list", class: "grid grid-cols-2 gap-x-4 gap-y-8 sm:grid-cols-3 sm:gap-x-4 lg:grid-cols-6" }, Pu = [i("div", { class: "group aspect-h-7 aspect-w-10 block w-full overflow-hidden rounded-lg bg-gray-200 animate-pulse dark:bg-gray-200 focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 focus-within:ring-offset-gray-100" }, null, -1), i("p", { class: "animate-pulse h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28 mt-4" }, null, -1), i("p", { class: "animate-pulse h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-14 mt-2" }, null, -1)], Ru = { name: "uiGallery" }, Bu = Object.assign(Ru, { props: { galleryId: String, gallery: Array, loading: Boolean, literals: Object }, setup(l2, { emit: n2 }) {
2428
2273
  const r2 = n2, d2 = s(false);
2429
2274
  return (n3, s2) => (e(), a("div", Cu, [l2.loading ? R("", true) : (e(), t(vo, { key: 0, open: d2.value, modalName: "deleteAllImagesModal", title: l2.literals.modalTitle, type: "warning", actions: [{ value: "close", name: l2.literals.closeAction }, { value: `deleteGallery_${l2.galleryId}`, name: l2.literals.deleteAction }], onModalAction: s2[0] || (s2[0] = (e2) => {
2430
2275
  return t2 = e2, d2.value = false, void r2("modalAction", t2);
2431
2276
  var t2;
2432
- }) }, { default: T(() => [i("p", null, _(l2.literals.modalText), 1)]), _: 1 }, 8, ["open", "title", "actions"])), l2.loading ? (e(), a("ul", ju, [(e(), a(k, null, P(4, (e2) => i("li", null, Pu)), 64))])) : (e(), a("ul", Ou, [(e(true), a(k, null, P(l2.gallery, (t2) => (e(), a("li", { key: t2.source, class: "relative" }, [i("div", Mu, [i("img", { src: t2.source, alt: "", class: "pointer-events-none object-cover group-hover:opacity-75" }, null, 8, Du), i("button", { type: "button", class: "absolute inset-0 focus:outline-none", onClick: (e2) => n3.$emit("imgClicked", t2) }, null, 8, Eu)]), i("p", Tu, _(t2.title), 1), i("div", Iu, [i("p", _u, _(t2.size), 1), o(G, { class: "cursor-pointer", icon: u(Sn), color: "red", loading: false, onClick: (e2) => r2("deleteImage", t2) }, null, 8, ["icon", "onClick"])])]))), 128))])), l2.gallery.length > 0 && !l2.loading ? (e(), t(te, { key: 3, onClick: s2[1] || (s2[1] = (e2) => d2.value = true), class: "mt-8", loading: false, color: "red", size: "small" }, { default: T(() => [I(_(l2.literals.deleteAllImages), 1)]), _: 1 })) : R("", true)]));
2277
+ }) }, { default: E(() => [i("p", null, _(l2.literals.modalText), 1)]), _: 1 }, 8, ["open", "title", "actions"])), l2.loading ? (e(), a("ul", ju, [(e(), a(k, null, P(4, (e2) => i("li", null, Pu)), 64))])) : (e(), a("ul", Ou, [(e(true), a(k, null, P(l2.gallery, (t2) => (e(), a("li", { key: t2.source, class: "relative" }, [i("div", Mu, [i("img", { src: t2.source, alt: "", class: "pointer-events-none object-cover group-hover:opacity-75" }, null, 8, Du), i("button", { type: "button", class: "absolute inset-0 focus:outline-none", onClick: (e2) => n3.$emit("imgClicked", t2) }, null, 8, Tu)]), i("p", Eu, _(t2.title), 1), i("div", Iu, [i("p", _u, _(t2.size), 1), o(G, { class: "cursor-pointer", icon: u(Sn), color: "red", loading: false, onClick: (e2) => r2("deleteImage", t2) }, null, 8, ["icon", "onClick"])])]))), 128))])), l2.gallery.length > 0 && !l2.loading ? (e(), t(te, { key: 3, onClick: s2[1] || (s2[1] = (e2) => d2.value = true), class: "mt-8", loading: false, color: "red", size: "small" }, { default: E(() => [I(_(l2.literals.deleteAllImages), 1)]), _: 1 })) : R("", true)]));
2433
2278
  } }), Au = { class: "cursor-move mb-1 relative flex items-center space-x-3 rounded-lg border border-gray-300 bg-white p-4 shadow-sm focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 hover:border-gray-400" }, Lu = { class: "flex flex-row items-center w-full" }, Fu = { class: "content text-sm grow" }, Nu = { class: "font-bold" }, zu = { key: 0 }, $u = { class: "font-bold text-gray-400" }, Vu = { key: 1, class: "animate-pulse" }, Hu = [z('<div class="h-16 mb-1 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div><div class="h-16 mb-1 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div><div class="h-16 mb-1 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div><div class="h-16 mb-1 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div><div class="h-16 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div>', 5)], Yu = { name: "uiDragAndDrop" }, qu = Object.assign(Yu, { props: { elements: { type: Array, required: true }, loading: true }, setup(l2) {
2434
2279
  const n2 = l2;
2435
2280
  let r2 = s(n2.elements);
2436
2281
  return p(() => n2.elements, (e2) => {
2437
2282
  r2.value = e2;
2438
- }), (n3, s2) => l2.loading ? (e(), a("div", Vu, Hu)) : (e(), t(u(W), { key: 0, modelValue: u(r2), "onUpdate:modelValue": s2[0] || (s2[0] = (e2) => H(r2) ? r2.value = e2 : r2 = e2) }, { item: T(({ item: t2 }) => [i("div", Au, [i("div", Lu, [o(G, { icon: u(un), loading: false, color: "gray", class: "mr-4", size: "big" }, null, 8, ["icon"]), i("div", Fu, [i("p", Nu, _(t2.name), 1), t2.description ? (e(), a("p", zu, _(t2.description), 1)) : R("", true)]), i("div", $u, _(u(r2).indexOf(t2) + 1), 1)])])]), _: 1 }, 8, ["modelValue"]));
2283
+ }), (n3, s2) => l2.loading ? (e(), a("div", Vu, Hu)) : (e(), t(u(W), { key: 0, modelValue: u(r2), "onUpdate:modelValue": s2[0] || (s2[0] = (e2) => H(r2) ? r2.value = e2 : r2 = e2) }, { item: E(({ item: t2 }) => [i("div", Au, [i("div", Lu, [o(G, { icon: u(un), loading: false, color: "gray", class: "mr-4", size: "big" }, null, 8, ["icon"]), i("div", Fu, [i("p", Nu, _(t2.name), 1), t2.description ? (e(), a("p", zu, _(t2.description), 1)) : R("", true)]), i("div", $u, _(u(r2).indexOf(t2) + 1), 1)])])]), _: 1 }, 8, ["modelValue"]));
2439
2284
  } }), Uu = { class: "chart-header flex flex-row justify-between" }, Wu = { class: "text-sm font-medium text-gray-500 truncate" }, Ku = { class: "chart-content" }, Ju = { class: "h-full w-full flex items-center justify-center flex-col" }, Gu = i("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1), Zu = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, 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("div", { class: "flex flex-row justify-between items-baseline grow gap-x-1" }, [i("div", { class: "w-full bg-gray-200 rounded h-full" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" }), i("div", { class: "w-full bg-gray-200 rounded h-1/3" }), i("div", { class: "w-full bg-gray-200 rounded h-4/5" }), i("div", { class: "w-full bg-gray-200 rounded h-full" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" }), i("div", { class: "w-full bg-gray-200 rounded h-1/3" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" }), i("div", { class: "w-full bg-gray-200 rounded h-1/3" }), i("div", { class: "w-full bg-gray-200 rounded h-4/5" }), i("div", { class: "w-full bg-gray-200 rounded h-full" }), i("div", { class: "w-full bg-gray-200 rounded h-4/5" }), i("div", { class: "w-full bg-gray-200 rounded h-full" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" }), i("div", { class: "w-full bg-gray-200 rounded h-1/3" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" })])], -1)], Qu = { name: "uiCircleChart" }, ec = Object.assign(Qu, { props: { title: String, id: { type: String, default: "noChartId" }, series: { type: Array, required: true }, labels: { type: Array, required: true }, loading: { type: Boolean, default: true }, empty: { type: Boolean, default: false }, range: { type: String, default: "24h" }, height: { type: Number, default: 320 } }, emits: ["selectedRange", "chartUpdated", "dataPointSelection"], setup(t2, { emit: l2 }) {
2440
2285
  const r2 = l2, s2 = t2;
2441
2286
  let c2 = { labels: s2.labels, chart: { toolbar: { show: false }, zoom: { enabled: false } }, colors: ["#715aff", "#00ffff", "#aba9ba"], stroke: { show: true, curve: "stepline", lineCap: "butt", width: 1, dashArray: 0 }, dataLabels: { enabled: true, dropShadow: { enabled: false } } };
@@ -2445,15 +2290,15 @@ const Kd = Ho(Cd, [["render", function(l2, r2, s2, d2, u2, c2) {
2445
2290
  return (l3, r3) => (e(), a(k, null, [B(i("div", { class: n(["h-[" + t2.height + "px]", "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"]) }, [i("div", Uu, [i("div", Wu, _(t2.title), 1), o(Wr, { range: t2.range, onRangeSelected: r3[0] || (r3[0] = (e2) => l3.$emit("selectedRange", { range: e2, chartId: t2.id })) }, null, 8, ["range"])]), B(i("div", Ku, [o(u(U), { class: "flex items-center justify-center", type: "donut", series: p2.value, options: g2.value, height: t2.height, onUpdated: f2, onMounted: f2, onDataPointSelection: m2 }, null, 8, ["series", "options", "height"])], 512), [[L, !t2.empty]]), B(i("div", Ju, [o(G, { icon: u(bn), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), Gu], 512), [[L, t2.empty]])], 2), [[L, !t2.loading]]), B(i("div", Zu, Xu, 512), [[L, t2.loading]])], 64));
2446
2291
  } }), tc = { key: 0, class: "flex flex-col lg:flex-row w-full gap-y-4 gap-x-2" }, lc = { key: 1, class: "flex flex-col lg:flex-row w-full gap-y-4 gap-x-2" }, nc = { name: "uiDateRange" }, ac = Object.assign(nc, { props: { id: { type: String, required: true }, loading: { type: Boolean, default: true }, literals: { type: Object, required: true }, color: String, values: { type: Object, default: () => ({ from: "", to: "" }) }, error: String, disabled: Boolean, label: String }, setup(t2) {
2447
2292
  let l2 = O({ from: void 0, to: void 0 });
2448
- return (r2, i2) => t2.loading ? (e(), a("div", lc, [o(Vn, { loading: true }), o(Vn, { loading: true }), o(te, { loading: true }, { default: T(() => [I("Search")]), _: 1 })])) : (e(), a("div", tc, [o(Vn, { type: "date", loading: false, addOn: t2.literals.from, name: `dateFrom_${t2.id}`, color: t2.color, value: t2.values.from, error: t2.error, disabled: t2.disabled, label: t2.label, onInputChanged: i2[0] || (i2[0] = (e2) => u(l2).from = e2.value) }, null, 8, ["addOn", "name", "color", "value", "error", "disabled", "label"]), o(Vn, { type: "date", loading: false, class: n([{ "mt-6": t2.label }]), addOn: t2.literals.to, name: `dateTo_${t2.id}`, color: t2.color, value: t2.values.to, error: t2.error, disabled: t2.disabled, onInputChanged: i2[1] || (i2[1] = (e2) => u(l2).to = e2.value) }, null, 8, ["class", "addOn", "name", "color", "value", "error", "disabled"]), o(te, { disabled: t2.disabled, color: "primary", loading: false, class: n([{ "mt-6": t2.label }, "h-10"]), onClick: i2[2] || (i2[2] = (e2) => r2.$emit("uiDateRangeButtonClicked", u(l2))) }, { default: T(() => [I(_(t2.literals.search), 1)]), _: 1 }, 8, ["disabled", "class"])]));
2293
+ return (r2, i2) => t2.loading ? (e(), a("div", lc, [o(Vn, { loading: true }), o(Vn, { loading: true }), o(te, { loading: true }, { default: E(() => [I("Search")]), _: 1 })])) : (e(), a("div", tc, [o(Vn, { type: "date", loading: false, addOn: t2.literals.from, name: `dateFrom_${t2.id}`, color: t2.color, value: t2.values.from, error: t2.error, disabled: t2.disabled, label: t2.label, onInputChanged: i2[0] || (i2[0] = (e2) => u(l2).from = e2.value) }, null, 8, ["addOn", "name", "color", "value", "error", "disabled", "label"]), o(Vn, { type: "date", loading: false, class: n([{ "mt-6": t2.label }]), addOn: t2.literals.to, name: `dateTo_${t2.id}`, color: t2.color, value: t2.values.to, error: t2.error, disabled: t2.disabled, onInputChanged: i2[1] || (i2[1] = (e2) => u(l2).to = e2.value) }, null, 8, ["class", "addOn", "name", "color", "value", "error", "disabled"]), o(te, { disabled: t2.disabled, color: "primary", loading: false, class: n([{ "mt-6": t2.label }, "h-10"]), onClick: i2[2] || (i2[2] = (e2) => r2.$emit("uiDateRangeButtonClicked", u(l2))) }, { default: E(() => [I(_(t2.literals.search), 1)]), _: 1 }, 8, ["disabled", "class"])]));
2449
2294
  } }), oc = { class: "flex justify-between items-center" }, rc = { key: 0, class: "block text-sm font-medium text-gray-700" }, ic = { key: 1, class: "text-[10px] text-gray-500 uppercase justify-self-end" }, sc = { key: 1, class: "h-2 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 w-full" }, dc = { name: "uiRangeSlider" }, uc = Object.assign(dc, { props: { loading: { type: Boolean, default: true }, disabled: { type: Boolean, default: false }, min: Number, max: Number, sliderValue: [Array, Number], label: String, optional: String }, emits: ["sliderUpdated"], setup(l2, { emit: o2 }) {
2450
2295
  const r2 = o2, d2 = s(l2.sliderValue);
2451
2296
  return (o3, s2) => (e(), a("div", null, [i("div", oc, [l2.label ? (e(), a("label", rc, _(l2.label), 1)) : R("", true), l2.optional ? (e(), a("span", ic, _(l2.optional), 1)) : R("", true)]), i("div", { class: n([{ "mt-1": l2.label }, "pt-16 px-6 pb-6 bg-gray-50 border border-gray-300 rounded-lg shadow-sm"]) }, [l2.loading ? (e(), a("p", sc)) : (e(), t(u(K), { key: 0, modelValue: d2.value, "onUpdate:modelValue": s2[0] || (s2[0] = (e2) => d2.value = e2), min: l2.min, max: l2.max, disabled: l2.disabled, onChange: s2[1] || (s2[1] = (e2) => r2("sliderUpdated", e2)), classes: { base: "w-full h-full relative z-1 bg-gray-300 rounded", tooltip: "absolute block text-sm font-semibold whitespace-nowrap py-1 px-1.5 min-w-5 text-center text-white rounded border border-indigo-600 bg-indigo-600 transform h:-translate-x-1/2 h:left-1/2 v:-translate-y-1/2 v:top-1/2 slider-disabled:bg-gray-400 slider-disabled:border-gray-400 merge-h:translate-x-1/2 merge-h:left-auto merge-v:-translate-x-4 merge-v:top-auto tt-focus:hidden tt-focused:block tt-drag:hidden tt-dragging:block" } }, null, 8, ["modelValue", "min", "max", "disabled"]))], 2)]));
2452
- } }), cc = { class: "mt-1 mb-8 text-sm text-gray-500" }, pc = { name: "uiSectionTitle" }, gc = Object.assign(pc, { props: { title: { type: String, required: true }, description: { type: String, default: void 0 } }, setup: (t2) => (l2, o2) => (e(), a(k, null, [i("h3", { class: n(["text-lg font-medium leading-6 text-gray-900", { "mb-8": void 0 === t2.description }]) }, _(t2.title), 3), i("p", cc, _(t2.description), 1)], 64)) }), fc = { key: 0, class: "col-span-1 flex flex-col divide-y divide-gray-200 rounded-lg bg-white text-center shadow" }, mc = { class: "flex flex-1 flex-col p-8" }, vc = { class: "text-2xl font-bold text-gray-900" }, hc = { class: "mt-1 flex flex-grow flex-col justify-between" }, bc = { class: "mt-3 flex flex-wrap gap-x-1 gap-y-1 justify-center" }, yc = { key: 1, class: "col-span-1 flex flex-col divide-y divide-gray-200 rounded-lg bg-white text-center shadow" }, xc = { class: "flex flex-1 flex-col p-8" }, wc = { class: "rounded-md p-3 flex items-center justify-center mx-auto mb-4 bg-gray-200" }, kc = i("div", { class: "h-4 bg-gray-200 rounded-full dark:bg-gray-300 w-1/3 mx-auto" }, null, -1), Sc = { class: "mt-1 flex flex-grow flex-col justify-between" }, Cc = { class: "mt-3 flex flex-wrap gap-x-1 gap-y-1 justify-center" }, Oc = { name: "uiDeviceStatus" }, Mc = Object.assign(Oc, { props: { id: { type: String, required: true }, name: { type: String, required: true }, icon: { type: Function, required: true }, color: String, qty: Number, tags: Array, loading: { type: Boolean, default: true } }, setup: (l2) => (r2, s2) => l2.loading ? (e(), a("div", yc, [i("div", xc, [i("div", wc, [o(G, { icon: l2.icon, size: "huge", class: "text-white", "aria-hidden": "true", loading: l2.loading }, null, 8, ["icon", "loading"])]), kc, i("dl", Sc, [i("dd", Cc, [(e(true), a(k, null, P(l2.tags, (n2, a2) => (e(), t(pa, { key: a2, loading: l2.loading, event: n2.event, color: n2.color, onTagEvent: s2[2] || (s2[2] = (e2) => r2.$emit("deviceStatusTagClicked", e2)) }, { default: T(() => [I(_(n2.name), 1)]), _: 2 }, 1032, ["loading", "event", "color"]))), 128))])])])])) : (e(), a("div", fc, [i("div", mc, [i("div", { class: n(["rounded-md p-3 flex items-center justify-center mx-auto mb-4", { "bg-green-500": !l2.color || "success" === l2.color, "bg-red-500": "danger" === l2.color, "bg-yellow-500": "warning" === l2.color }]) }, [o(G, { icon: l2.icon, size: "huge", class: "text-white", "aria-hidden": "true", loading: false }, null, 8, ["icon"])], 2), i("h3", vc, [I(_(l2.name) + " ", 1), B(i("span", { class: "text-indigo-600 hover:text-indigo-900 cursor-pointer", onClick: s2[0] || (s2[0] = (e2) => r2.$emit("deviceStatusQtyClicked", l2.id)) }, "(" + _(l2.qty) + ")", 513), [[L, l2.qty]])]), i("dl", hc, [i("dd", bc, [(e(true), a(k, null, P(l2.tags, (l3, n2) => (e(), t(pa, { key: n2, loading: false, event: l3.event, color: l3.color, onTagEvent: s2[1] || (s2[1] = (e2) => r2.$emit("deviceStatusTagClicked", e2)) }, { default: T(() => [I(_(l3.name), 1)]), _: 2 }, 1032, ["event", "color"]))), 128))])])])])) }), Dc = { uiButton: te, uiIcon: G, uiCheckbox: ue, uiDropdown: _n, uiInput: Vn, uiInputFile: na, uiSelect: sa, uiTag: pa, uiTextArea: ya, uiToggle: Oa, uiAlert: Aa, uiBreadcrumbs: Ua, uiCard: to, uiFilter: no, uiModal: vo, uiNotification: Eo, uiTaskList: $o, uiPriceCalendar: Yr, uiChart: li, uiFooter: ri, uiLoadingScreen: di, uiPagination: Oi, uiSidebar: $i, uiStats: ts, uiStripedCard: hs, uiTable: Vs, uiTabs: Gs, uiTimeline: Sd, uiTopbar: Kd, uiFunnelChartV2: au, uiNoResults: su, uiRightSidebar: Su, uiGallery: Bu, uiDragAndDrop: qu, uiCircleChart: ec, uiDateRange: ac, uiRangeSlider: uc, uiSectionTitle: gc, uiDeviceStatus: Mc }, Ec = { install(e2) {
2297
+ } }), cc = { class: "mt-1 mb-8 text-sm text-gray-500" }, pc = { name: "uiSectionTitle" }, gc = Object.assign(pc, { props: { title: { type: String, required: true }, description: { type: String, default: void 0 } }, setup: (t2) => (l2, o2) => (e(), a(k, null, [i("h3", { class: n(["text-lg font-medium leading-6 text-gray-900", { "mb-8": void 0 === t2.description }]) }, _(t2.title), 3), i("p", cc, _(t2.description), 1)], 64)) }), fc = { key: 0, class: "col-span-1 flex flex-col divide-y divide-gray-200 rounded-lg bg-white text-center shadow" }, mc = { class: "flex flex-1 flex-col p-8" }, vc = { class: "text-2xl font-bold text-gray-900" }, hc = { class: "mt-1 flex flex-grow flex-col justify-between" }, bc = { class: "mt-3 flex flex-wrap gap-x-1 gap-y-1 justify-center" }, yc = { key: 1, class: "col-span-1 flex flex-col divide-y divide-gray-200 rounded-lg bg-white text-center shadow" }, xc = { class: "flex flex-1 flex-col p-8" }, wc = { class: "rounded-md p-3 flex items-center justify-center mx-auto mb-4 bg-gray-200" }, kc = i("div", { class: "h-4 bg-gray-200 rounded-full dark:bg-gray-300 w-1/3 mx-auto" }, null, -1), Sc = { class: "mt-1 flex flex-grow flex-col justify-between" }, Cc = { class: "mt-3 flex flex-wrap gap-x-1 gap-y-1 justify-center" }, Oc = { name: "uiDeviceStatus" }, Mc = Object.assign(Oc, { props: { id: { type: String, required: true }, name: { type: String, required: true }, icon: { type: Function, required: true }, color: String, qty: Number, tags: Array, loading: { type: Boolean, default: true } }, setup: (l2) => (r2, s2) => l2.loading ? (e(), a("div", yc, [i("div", xc, [i("div", wc, [o(G, { icon: l2.icon, size: "huge", class: "text-white", "aria-hidden": "true", loading: l2.loading }, null, 8, ["icon", "loading"])]), kc, i("dl", Sc, [i("dd", Cc, [(e(true), a(k, null, P(l2.tags, (n2, a2) => (e(), t(pa, { key: a2, loading: l2.loading, event: n2.event, color: n2.color, onTagEvent: s2[2] || (s2[2] = (e2) => r2.$emit("deviceStatusTagClicked", e2)) }, { default: E(() => [I(_(n2.name), 1)]), _: 2 }, 1032, ["loading", "event", "color"]))), 128))])])])])) : (e(), a("div", fc, [i("div", mc, [i("div", { class: n(["rounded-md p-3 flex items-center justify-center mx-auto mb-4", { "bg-green-500": !l2.color || "success" === l2.color, "bg-red-500": "danger" === l2.color, "bg-yellow-500": "warning" === l2.color }]) }, [o(G, { icon: l2.icon, size: "huge", class: "text-white", "aria-hidden": "true", loading: false }, null, 8, ["icon"])], 2), i("h3", vc, [I(_(l2.name) + " ", 1), B(i("span", { class: "text-indigo-600 hover:text-indigo-900 cursor-pointer", onClick: s2[0] || (s2[0] = (e2) => r2.$emit("deviceStatusQtyClicked", l2.id)) }, "(" + _(l2.qty) + ")", 513), [[L, l2.qty]])]), i("dl", hc, [i("dd", bc, [(e(true), a(k, null, P(l2.tags, (l3, n2) => (e(), t(pa, { key: n2, loading: false, event: l3.event, color: l3.color, onTagEvent: s2[1] || (s2[1] = (e2) => r2.$emit("deviceStatusTagClicked", e2)) }, { default: E(() => [I(_(l3.name), 1)]), _: 2 }, 1032, ["event", "color"]))), 128))])])])])) }), Dc = { uiButton: te, uiIcon: G, uiCheckbox: ue, uiDropdown: _n, uiInput: Vn, uiInputFile: na, uiSelect: sa, uiTag: pa, uiTextArea: ya, uiToggle: Oa, uiAlert: Aa, uiBreadcrumbs: Ua, uiCard: to, uiFilter: no, uiModal: vo, uiNotification: To, uiTaskList: $o, uiPriceCalendar: Yr, uiChart: li, uiFooter: ri, uiLoadingScreen: di, uiPagination: Oi, uiSidebar: $i, uiStats: ts, uiStripedCard: hs, uiTable: Vs, uiTabs: Gs, uiTimeline: Sd, uiTopbar: Kd, uiFunnelChartV2: au, uiNoResults: su, uiRightSidebar: Su, uiGallery: Bu, uiDragAndDrop: qu, uiCircleChart: ec, uiDateRange: ac, uiRangeSlider: uc, uiSectionTitle: gc, uiDeviceStatus: Mc }, Tc = { install(e2) {
2453
2298
  Object.keys(Dc).forEach((t2) => {
2454
2299
  e2.component(t2, Dc[t2]);
2455
2300
  });
2456
2301
  } };
2457
2302
  export {
2458
- Ec as default
2303
+ Tc as default
2459
2304
  };