@hotelinking/ui 5.38.3 → 5.38.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { openBlock as e, createBlock as t, resolveDynamicComponent as l, normalizeClass as n, createElementBlock as a, createVNode as o, renderSlot as r, createElementVNode as i, ref as s, computed as u, unref as d, shallowRef as c, watch as p, triggerRef as g, onScopeDispose as m, inject as f, nextTick as v, watchEffect as h, onMounted as b, cloneVNode as y, h as x, Fragment as w, defineComponent as k, provide as S, reactive as C, onUnmounted as O, toRaw as M, getCurrentInstance as D, Teleport as T, withCtx as E, createTextVNode as I, toDisplayString as _, Transition as P, renderList as j, createCommentVNode as R, withDirectives as B, vModelDynamic as A, vShow as L, withModifiers as F, vModelText as N, createStaticVNode as z, resolveComponent as $, vModelCheckbox as V, isRef as H } from "vue";
1
+ import { openBlock as e, createBlock as t, resolveDynamicComponent as l, normalizeClass as n, createElementBlock as a, createVNode as o, renderSlot as r, createElementVNode as i, ref as s, computed as u, unref as d, shallowRef as c, watch as p, triggerRef as g, onScopeDispose as f, 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 P, renderList as j, createCommentVNode as R, withDirectives as B, vModelDynamic as A, vShow as L, withModifiers as F, vModelText as N, createStaticVNode as z, resolveComponent as $, vModelCheckbox as V, isRef as H } from "vue";
2
2
  import Y from "dayjs";
3
3
  import U from "vue3-apexcharts";
4
4
  import q from "vue3-draggable";
@@ -44,12 +44,12 @@ const pe = (e2, t2) => {
44
44
  return function(...n2) {
45
45
  clearTimeout(l2), l2 = setTimeout(() => e2.apply(this, n2), t2);
46
46
  };
47
- }, ge = (e2) => e2, me = (e2) => {
47
+ }, ge = (e2) => e2, fe = (e2) => {
48
48
  const t2 = Math.max(e2.startIndex - e2.overscan, 0), l2 = Math.min(e2.endIndex + e2.overscan, e2.count - 1), n2 = [];
49
49
  for (let e3 = t2; e3 <= l2; e3++)
50
50
  n2.push(e3);
51
51
  return n2;
52
- }, fe = (e2, t2) => {
52
+ }, me = (e2, t2) => {
53
53
  const l2 = e2.scrollElement;
54
54
  if (!l2)
55
55
  return;
@@ -121,7 +121,7 @@ class we {
121
121
  })(), this.range = null, this.setOptions = (e3) => {
122
122
  Object.entries(e3).forEach(([t2, l2]) => {
123
123
  void 0 === l2 && delete e3[t2];
124
- }), this.options = { debug: false, initialOffset: 0, overscan: 1, paddingStart: 0, paddingEnd: 0, scrollPaddingStart: 0, scrollPaddingEnd: 0, horizontal: false, getItemKey: ge, rangeExtractor: me, onChange: () => {
124
+ }), this.options = { debug: false, initialOffset: 0, overscan: 1, paddingStart: 0, paddingEnd: 0, scrollPaddingStart: 0, scrollPaddingEnd: 0, horizontal: false, getItemKey: ge, rangeExtractor: fe, onChange: () => {
125
125
  }, measureElement: ye, initialRect: { width: 0, height: 0 }, scrollMargin: 0, gap: 0, indexAttribute: "data-index", initialMeasurementsCache: [], lanes: 1, isScrollingResetDelay: 150, ...e3 };
126
126
  }, this.notify = (e3, t2) => {
127
127
  var l2, n2;
@@ -267,8 +267,8 @@ function Se(e2) {
267
267
  var a2;
268
268
  g(l2), null == (a2 = e4.onChange) || a2.call(e4, t3, n3);
269
269
  } }), t2._willUpdate(), g(l2);
270
- }, { immediate: true }), m(n2), l2;
271
- }(u(() => ({ observeElementRect: fe, observeElementOffset: be, scrollToFn: xe, ...d(e2) })));
270
+ }, { immediate: true }), f(n2), l2;
271
+ }(u(() => ({ observeElementRect: me, observeElementOffset: be, scrollToFn: xe, ...d(e2) })));
272
272
  }
273
273
  function Ce(e2, t2, l2) {
274
274
  let n2 = s(null == l2 ? void 0 : l2.value), a2 = u(() => void 0 !== e2.value);
@@ -276,31 +276,82 @@ function Ce(e2, t2, l2) {
276
276
  return a2.value || (n2.value = e3), null == t2 ? void 0 : t2(e3);
277
277
  }];
278
278
  }
279
- let Oe = Symbol("headlessui.useid"), Me = 0;
279
+ function Oe(e2) {
280
+ "function" == typeof queueMicrotask ? queueMicrotask(e2) : Promise.resolve().then(e2).catch((e3) => setTimeout(() => {
281
+ throw e3;
282
+ }));
283
+ }
284
+ function Me() {
285
+ let e2 = [], t2 = { addEventListener: (e3, l2, n2, a2) => (e3.addEventListener(l2, n2, a2), t2.add(() => e3.removeEventListener(l2, n2, a2))), requestAnimationFrame(...e3) {
286
+ let l2 = requestAnimationFrame(...e3);
287
+ t2.add(() => cancelAnimationFrame(l2));
288
+ }, nextFrame(...e3) {
289
+ t2.requestAnimationFrame(() => {
290
+ t2.requestAnimationFrame(...e3);
291
+ });
292
+ }, setTimeout(...e3) {
293
+ let l2 = setTimeout(...e3);
294
+ t2.add(() => clearTimeout(l2));
295
+ }, microTask(...e3) {
296
+ let l2 = { current: true };
297
+ return Oe(() => {
298
+ l2.current && e3[0]();
299
+ }), t2.add(() => {
300
+ l2.current = false;
301
+ });
302
+ }, style(e3, t3, l2) {
303
+ let n2 = e3.style.getPropertyValue(t3);
304
+ return Object.assign(e3.style, { [t3]: l2 }), this.add(() => {
305
+ Object.assign(e3.style, { [t3]: n2 });
306
+ });
307
+ }, group(e3) {
308
+ let t3 = Me();
309
+ return e3(t3), this.add(() => t3.dispose());
310
+ }, add: (t3) => (e2.push(t3), () => {
311
+ let l2 = e2.indexOf(t3);
312
+ if (l2 >= 0)
313
+ for (let t4 of e2.splice(l2, 1))
314
+ t4();
315
+ }), dispose() {
316
+ for (let t3 of e2.splice(0))
317
+ t3();
318
+ } };
319
+ return t2;
320
+ }
280
321
  function De() {
281
- return f(Oe, () => "" + ++Me)();
322
+ let e2 = function() {
323
+ let e3 = Me();
324
+ return m(() => e3.dispose()), e3;
325
+ }();
326
+ return (t2) => {
327
+ e2.dispose(), e2.nextFrame(t2);
328
+ };
282
329
  }
283
- function Te(e2) {
330
+ let Te = Symbol("headlessui.useid"), Ee = 0;
331
+ function Ie() {
332
+ return v(Te, () => "" + ++Ee)();
333
+ }
334
+ function _e(e2) {
284
335
  var t2;
285
336
  if (null == e2 || null == e2.value)
286
337
  return null;
287
338
  let l2 = null != (t2 = e2.value.$el) ? t2 : e2.value;
288
339
  return l2 instanceof Node ? l2 : null;
289
340
  }
290
- function Ee(e2, t2, ...l2) {
341
+ function Pe(e2, t2, ...l2) {
291
342
  if (e2 in t2) {
292
343
  let n3 = t2[e2];
293
344
  return "function" == typeof n3 ? n3(...l2) : n3;
294
345
  }
295
346
  let n2 = new Error(`Tried to handle "${e2}" but there is no handler defined. Only defined handlers are: ${Object.keys(t2).map((e3) => `"${e3}"`).join(", ")}.`);
296
- throw Error.captureStackTrace && Error.captureStackTrace(n2, Ee), n2;
347
+ throw Error.captureStackTrace && Error.captureStackTrace(n2, Pe), n2;
297
348
  }
298
- var Ie = Object.defineProperty, _e = (e2, t2, l2) => (((e3, t3, l3) => {
299
- t3 in e3 ? Ie(e3, t3, { enumerable: true, configurable: true, writable: true, value: l3 }) : e3[t3] = l3;
349
+ var je = Object.defineProperty, Re = (e2, t2, l2) => (((e3, t3, l3) => {
350
+ t3 in e3 ? je(e3, t3, { enumerable: true, configurable: true, writable: true, value: l3 }) : e3[t3] = l3;
300
351
  })(e2, "symbol" != typeof t2 ? t2 + "" : t2, l2), l2);
301
- let Pe = new class {
352
+ let Be = new class {
302
353
  constructor() {
303
- _e(this, "current", this.detect()), _e(this, "currentId", 0);
354
+ Re(this, "current", this.detect()), Re(this, "currentId", 0);
304
355
  }
305
356
  set(e2) {
306
357
  this.current !== e2 && (this.currentId = 0, this.current = e2);
@@ -321,44 +372,44 @@ let Pe = new class {
321
372
  return "undefined" == typeof window || "undefined" == typeof document ? "server" : "client";
322
373
  }
323
374
  }();
324
- function je(e2) {
325
- if (Pe.isServer)
375
+ function Ae(e2) {
376
+ if (Be.isServer)
326
377
  return null;
327
378
  if (e2 instanceof Node)
328
379
  return e2.ownerDocument;
329
380
  if (null != e2 && e2.hasOwnProperty("value")) {
330
- let t2 = Te(e2);
381
+ let t2 = _e(e2);
331
382
  if (t2)
332
383
  return t2.ownerDocument;
333
384
  }
334
385
  return document;
335
386
  }
336
- let Re = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e2) => `${e2}:not([tabindex='-1'])`).join(",");
337
- var Be = ((e2) => (e2[e2.First = 1] = "First", e2[e2.Previous = 2] = "Previous", e2[e2.Next = 4] = "Next", e2[e2.Last = 8] = "Last", e2[e2.WrapAround = 16] = "WrapAround", e2[e2.NoScroll = 32] = "NoScroll", e2))(Be || {}), Ae = ((e2) => (e2[e2.Error = 0] = "Error", e2[e2.Overflow = 1] = "Overflow", e2[e2.Success = 2] = "Success", e2[e2.Underflow = 3] = "Underflow", e2))(Ae || {}), Le = ((e2) => (e2[e2.Previous = -1] = "Previous", e2[e2.Next = 1] = "Next", e2))(Le || {});
338
- function Fe(e2 = document.body) {
339
- return null == e2 ? [] : Array.from(e2.querySelectorAll(Re)).sort((e3, t2) => Math.sign((e3.tabIndex || Number.MAX_SAFE_INTEGER) - (t2.tabIndex || Number.MAX_SAFE_INTEGER)));
387
+ let Le = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e2) => `${e2}:not([tabindex='-1'])`).join(",");
388
+ var Fe = ((e2) => (e2[e2.First = 1] = "First", e2[e2.Previous = 2] = "Previous", e2[e2.Next = 4] = "Next", e2[e2.Last = 8] = "Last", e2[e2.WrapAround = 16] = "WrapAround", e2[e2.NoScroll = 32] = "NoScroll", e2))(Fe || {}), Ne = ((e2) => (e2[e2.Error = 0] = "Error", e2[e2.Overflow = 1] = "Overflow", e2[e2.Success = 2] = "Success", e2[e2.Underflow = 3] = "Underflow", e2))(Ne || {}), ze = ((e2) => (e2[e2.Previous = -1] = "Previous", e2[e2.Next = 1] = "Next", e2))(ze || {});
389
+ function $e(e2 = document.body) {
390
+ return null == e2 ? [] : Array.from(e2.querySelectorAll(Le)).sort((e3, t2) => Math.sign((e3.tabIndex || Number.MAX_SAFE_INTEGER) - (t2.tabIndex || Number.MAX_SAFE_INTEGER)));
340
391
  }
341
- var Ne = ((e2) => (e2[e2.Strict = 0] = "Strict", e2[e2.Loose = 1] = "Loose", e2))(Ne || {});
342
- function ze(e2, t2 = 0) {
392
+ var Ve = ((e2) => (e2[e2.Strict = 0] = "Strict", e2[e2.Loose = 1] = "Loose", e2))(Ve || {});
393
+ function He(e2, t2 = 0) {
343
394
  var l2;
344
- return e2 !== (null == (l2 = je(e2)) ? void 0 : l2.body) && Ee(t2, { 0: () => e2.matches(Re), 1() {
395
+ return e2 !== (null == (l2 = Ae(e2)) ? void 0 : l2.body) && Pe(t2, { 0: () => e2.matches(Le), 1() {
345
396
  let t3 = e2;
346
397
  for (; null !== t3; ) {
347
- if (t3.matches(Re))
398
+ if (t3.matches(Le))
348
399
  return true;
349
400
  t3 = t3.parentElement;
350
401
  }
351
402
  return false;
352
403
  } });
353
404
  }
354
- function $e(e2) {
355
- let t2 = je(e2);
356
- v(() => {
357
- t2 && !ze(t2.activeElement, 0) && He(e2);
405
+ function Ye(e2) {
406
+ let t2 = Ae(e2);
407
+ h(() => {
408
+ t2 && !He(t2.activeElement, 0) && qe(e2);
358
409
  });
359
410
  }
360
- var Ve = ((e2) => (e2[e2.Keyboard = 0] = "Keyboard", e2[e2.Mouse = 1] = "Mouse", e2))(Ve || {});
361
- function He(e2) {
411
+ var Ue = ((e2) => (e2[e2.Keyboard = 0] = "Keyboard", e2[e2.Mouse = 1] = "Mouse", e2))(Ue || {});
412
+ function qe(e2) {
362
413
  null == e2 || e2.focus({ preventScroll: true });
363
414
  }
364
415
  "undefined" != typeof window && "undefined" != typeof document && (document.addEventListener("keydown", (e2) => {
@@ -366,8 +417,8 @@ function He(e2) {
366
417
  }, true), document.addEventListener("click", (e2) => {
367
418
  1 === e2.detail ? delete document.documentElement.dataset.headlessuiFocusVisible : 0 === e2.detail && (document.documentElement.dataset.headlessuiFocusVisible = "");
368
419
  }, true));
369
- let Ye = ["textarea", "input"].join(",");
370
- function Ue(e2, t2 = (e3) => e3) {
420
+ let We = ["textarea", "input"].join(",");
421
+ function Ke(e2, t2 = (e3) => e3) {
371
422
  return e2.slice().sort((e3, l2) => {
372
423
  let n2 = t2(e3), a2 = t2(l2);
373
424
  if (null === n2 || null === a2)
@@ -376,9 +427,9 @@ function Ue(e2, t2 = (e3) => e3) {
376
427
  return o2 & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : o2 & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
377
428
  });
378
429
  }
379
- function qe(e2, t2, { sorted: l2 = true, relativeTo: n2 = null, skipElements: a2 = [] } = {}) {
430
+ function Je(e2, t2, { sorted: l2 = true, relativeTo: n2 = null, skipElements: a2 = [] } = {}) {
380
431
  var o2;
381
- 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 ? Ue(e2) : e2 : Fe(e2);
432
+ 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 ? Ke(e2) : e2 : $e(e2);
382
433
  a2.length > 0 && i2.length > 1 && (i2 = i2.filter((e3) => !a2.includes(e3))), n2 = null != n2 ? n2 : r2.activeElement;
383
434
  let s2, u2 = (() => {
384
435
  if (5 & t2)
@@ -413,26 +464,26 @@ function qe(e2, t2, { sorted: l2 = true, relativeTo: n2 = null, skipElements: a2
413
464
  } while (s2 !== r2.activeElement);
414
465
  return 6 & t2 && function(e3) {
415
466
  var t3, l3;
416
- return null != (l3 = null == (t3 = null == e3 ? void 0 : e3.matches) ? void 0 : t3.call(e3, Ye)) && l3;
467
+ return null != (l3 = null == (t3 = null == e3 ? void 0 : e3.matches) ? void 0 : t3.call(e3, We)) && l3;
417
468
  }(s2) && s2.select(), 2;
418
469
  }
419
- function We() {
470
+ function Ge() {
420
471
  return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
421
472
  }
422
- function Ke() {
423
- return We() || /Android/gi.test(window.navigator.userAgent);
473
+ function Ze() {
474
+ return Ge() || /Android/gi.test(window.navigator.userAgent);
424
475
  }
425
- function Je(e2, t2, l2) {
426
- Pe.isServer || h((n2) => {
476
+ function Xe(e2, t2, l2) {
477
+ Be.isServer || b((n2) => {
427
478
  document.addEventListener(e2, t2, l2), n2(() => document.removeEventListener(e2, t2, l2));
428
479
  });
429
480
  }
430
- function Ge(e2, t2, l2) {
431
- Pe.isServer || h((n2) => {
481
+ function Qe(e2, t2, l2) {
482
+ Be.isServer || b((n2) => {
432
483
  window.addEventListener(e2, t2, l2), n2(() => window.removeEventListener(e2, t2, l2));
433
484
  });
434
485
  }
435
- function Ze(e2, t2, l2 = u(() => true)) {
486
+ function et(e2, t2, l2 = u(() => true)) {
436
487
  function n2(n3, a3) {
437
488
  if (!l2.value || n3.defaultPrevented)
438
489
  return;
@@ -445,56 +496,56 @@ function Ze(e2, t2, l2 = u(() => true)) {
445
496
  for (let e3 of r2) {
446
497
  if (null === e3)
447
498
  continue;
448
- let t3 = e3 instanceof HTMLElement ? e3 : Te(e3);
499
+ let t3 = e3 instanceof HTMLElement ? e3 : _e(e3);
449
500
  if (null != t3 && t3.contains(o2) || n3.composed && n3.composedPath().includes(t3))
450
501
  return;
451
502
  }
452
- return !ze(o2, Ne.Loose) && -1 !== o2.tabIndex && n3.preventDefault(), t2(n3, o2);
503
+ return !He(o2, Ve.Loose) && -1 !== o2.tabIndex && n3.preventDefault(), t2(n3, o2);
453
504
  }
454
505
  let a2 = s(null);
455
- Je("pointerdown", (e3) => {
506
+ Xe("pointerdown", (e3) => {
456
507
  var t3, n3;
457
508
  l2.value && (a2.value = (null == (n3 = null == (t3 = e3.composedPath) ? void 0 : t3.call(e3)) ? void 0 : n3[0]) || e3.target);
458
- }, true), Je("mousedown", (e3) => {
509
+ }, true), Xe("mousedown", (e3) => {
459
510
  var t3, n3;
460
511
  l2.value && (a2.value = (null == (n3 = null == (t3 = e3.composedPath) ? void 0 : t3.call(e3)) ? void 0 : n3[0]) || e3.target);
461
- }, true), Je("click", (e3) => {
462
- Ke() || a2.value && (n2(e3, () => a2.value), a2.value = null);
463
- }, true), Je("touchend", (e3) => n2(e3, () => e3.target instanceof HTMLElement ? e3.target : null), true), Ge("blur", (e3) => n2(e3, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), true);
512
+ }, true), Xe("click", (e3) => {
513
+ Ze() || a2.value && (n2(e3, () => a2.value), a2.value = null);
514
+ }, true), Xe("touchend", (e3) => n2(e3, () => e3.target instanceof HTMLElement ? e3.target : null), true), Qe("blur", (e3) => n2(e3, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), true);
464
515
  }
465
- function Xe(e2, t2) {
516
+ function tt(e2, t2) {
466
517
  if (e2)
467
518
  return e2;
468
519
  let l2 = null != t2 ? t2 : "button";
469
520
  return "string" == typeof l2 && "button" === l2.toLowerCase() ? "button" : void 0;
470
521
  }
471
- function Qe(e2, t2) {
472
- let l2 = s(Xe(e2.value.type, e2.value.as));
473
- return b(() => {
474
- l2.value = Xe(e2.value.type, e2.value.as);
475
- }), h(() => {
522
+ function lt(e2, t2) {
523
+ let l2 = s(tt(e2.value.type, e2.value.as));
524
+ return y(() => {
525
+ l2.value = tt(e2.value.type, e2.value.as);
526
+ }), b(() => {
476
527
  var e3;
477
- l2.value || Te(t2) && Te(t2) instanceof HTMLButtonElement && (null == (e3 = Te(t2)) || !e3.hasAttribute("type")) && (l2.value = "button");
528
+ l2.value || _e(t2) && _e(t2) instanceof HTMLButtonElement && (null == (e3 = _e(t2)) || !e3.hasAttribute("type")) && (l2.value = "button");
478
529
  }), l2;
479
530
  }
480
- function et(e2) {
531
+ function nt(e2) {
481
532
  return [e2.screenX, e2.screenY];
482
533
  }
483
- function tt() {
534
+ function at() {
484
535
  let e2 = s([-1, -1]);
485
536
  return { wasMoved(t2) {
486
- let l2 = et(t2);
537
+ let l2 = nt(t2);
487
538
  return (e2.value[0] !== l2[0] || e2.value[1] !== l2[1]) && (e2.value = l2, true);
488
539
  }, update(t2) {
489
- e2.value = et(t2);
540
+ e2.value = nt(t2);
490
541
  } };
491
542
  }
492
- function lt({ container: e2, accept: t2, walk: l2, enabled: n2 }) {
493
- h(() => {
543
+ function ot({ container: e2, accept: t2, walk: l2, enabled: n2 }) {
544
+ b(() => {
494
545
  let a2 = e2.value;
495
546
  if (!a2 || void 0 !== n2 && !n2.value)
496
547
  return;
497
- let o2 = je(e2);
548
+ let o2 = Ae(e2);
498
549
  if (!o2)
499
550
  return;
500
551
  let r2 = Object.assign((e3) => t2(e3), { acceptNode: t2 }), i2 = o2.createTreeWalker(a2, NodeFilter.SHOW_ELEMENT, r2, false);
@@ -502,20 +553,20 @@ function lt({ container: e2, accept: t2, walk: l2, enabled: n2 }) {
502
553
  l2(i2.currentNode);
503
554
  });
504
555
  }
505
- var nt = ((e2) => (e2[e2.None = 0] = "None", e2[e2.RenderStrategy = 1] = "RenderStrategy", e2[e2.Static = 2] = "Static", e2))(nt || {}), at = ((e2) => (e2[e2.Unmount = 0] = "Unmount", e2[e2.Hidden = 1] = "Hidden", e2))(at || {});
506
- function ot({ visible: e2 = true, features: t2 = 0, ourProps: l2, theirProps: n2, ...a2 }) {
556
+ var rt = ((e2) => (e2[e2.None = 0] = "None", e2[e2.RenderStrategy = 1] = "RenderStrategy", e2[e2.Static = 2] = "Static", e2))(rt || {}), it = ((e2) => (e2[e2.Unmount = 0] = "Unmount", e2[e2.Hidden = 1] = "Hidden", e2))(it || {});
557
+ function st({ visible: e2 = true, features: t2 = 0, ourProps: l2, theirProps: n2, ...a2 }) {
507
558
  var o2;
508
- let r2 = st(n2, l2), i2 = Object.assign(a2, { props: r2 });
559
+ let r2 = ct(n2, l2), i2 = Object.assign(a2, { props: r2 });
509
560
  if (e2 || 2 & t2 && r2.static)
510
- return rt(i2);
561
+ return ut(i2);
511
562
  if (1 & t2) {
512
- return Ee(null == (o2 = r2.unmount) || o2 ? 0 : 1, { 0: () => null, 1: () => rt({ ...a2, props: { ...r2, hidden: true, style: { display: "none" } } }) });
563
+ return Pe(null == (o2 = r2.unmount) || o2 ? 0 : 1, { 0: () => null, 1: () => ut({ ...a2, props: { ...r2, hidden: true, style: { display: "none" } } }) });
513
564
  }
514
- return rt(i2);
565
+ return ut(i2);
515
566
  }
516
- function rt({ props: e2, attrs: t2, slots: l2, slot: n2, name: a2 }) {
567
+ function ut({ props: e2, attrs: t2, slots: l2, slot: n2, name: a2 }) {
517
568
  var o2, r2;
518
- let { as: i2, ...s2 } = dt(e2, ["unmount", "static"]), u2 = null == (o2 = l2.default) ? void 0 : o2.call(l2, n2), d2 = {};
569
+ let { as: i2, ...s2 } = gt(e2, ["unmount", "static"]), u2 = null == (o2 = l2.default) ? void 0 : o2.call(l2, n2), d2 = {};
519
570
  if (n2) {
520
571
  let e3 = false, t3 = [];
521
572
  for (let [l3, a3] of Object.entries(n2))
@@ -523,25 +574,25 @@ function rt({ props: e2, attrs: t2, slots: l2, slot: n2, name: a2 }) {
523
574
  e3 && (d2["data-headlessui-state"] = t3.join(" "));
524
575
  }
525
576
  if ("template" === i2) {
526
- if (u2 = it(null != u2 ? u2 : []), Object.keys(s2).length > 0 || Object.keys(t2).length > 0) {
577
+ if (u2 = dt(null != u2 ? u2 : []), Object.keys(s2).length > 0 || Object.keys(t2).length > 0) {
527
578
  let [e3, ...l3] = null != u2 ? u2 : [];
528
579
  if (!function(e4) {
529
580
  return null != e4 && ("string" == typeof e4.type || "object" == typeof e4.type || "function" == typeof e4.type);
530
581
  }(e3) || l3.length > 0)
531
582
  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"));
532
- let n3 = st(null != (r2 = e3.props) ? r2 : {}, s2, d2), o3 = y(e3, n3, true);
583
+ let n3 = ct(null != (r2 = e3.props) ? r2 : {}, s2, d2), o3 = x(e3, n3, true);
533
584
  for (let e4 in n3)
534
585
  e4.startsWith("on") && (o3.props || (o3.props = {}), o3.props[e4] = n3[e4]);
535
586
  return o3;
536
587
  }
537
588
  return Array.isArray(u2) && 1 === u2.length ? u2[0] : u2;
538
589
  }
539
- return x(i2, Object.assign({}, s2, d2), { default: () => u2 });
590
+ return w(i2, Object.assign({}, s2, d2), { default: () => u2 });
540
591
  }
541
- function it(e2) {
542
- return e2.flatMap((e3) => e3.type === w ? it(e3.children) : [e3]);
592
+ function dt(e2) {
593
+ return e2.flatMap((e3) => e3.type === k ? dt(e3.children) : [e3]);
543
594
  }
544
- function st(...e2) {
595
+ function ct(...e2) {
545
596
  if (0 === e2.length)
546
597
  return {};
547
598
  if (1 === e2.length)
@@ -563,33 +614,33 @@ function st(...e2) {
563
614
  } });
564
615
  return t2;
565
616
  }
566
- function ut(e2) {
617
+ function pt(e2) {
567
618
  let t2 = Object.assign({}, e2);
568
619
  for (let e3 in t2)
569
620
  void 0 === t2[e3] && delete t2[e3];
570
621
  return t2;
571
622
  }
572
- function dt(e2, t2 = []) {
623
+ function gt(e2, t2 = []) {
573
624
  let l2 = Object.assign({}, e2);
574
625
  for (let e3 of t2)
575
626
  e3 in l2 && delete l2[e3];
576
627
  return l2;
577
628
  }
578
- var ct = ((e2) => (e2[e2.None = 1] = "None", e2[e2.Focusable = 2] = "Focusable", e2[e2.Hidden = 4] = "Hidden", e2))(ct || {});
579
- let pt = k({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup: (e2, { slots: t2, attrs: l2 }) => () => {
629
+ var ft = ((e2) => (e2[e2.None = 1] = "None", e2[e2.Focusable = 2] = "Focusable", e2[e2.Hidden = 4] = "Hidden", e2))(ft || {});
630
+ let mt = S({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup: (e2, { slots: t2, attrs: l2 }) => () => {
580
631
  var n2;
581
632
  let { features: a2, ...o2 } = e2;
582
- return ot({ ourProps: { "aria-hidden": !(2 & ~a2) || (null != (n2 = o2["aria-hidden"]) ? n2 : void 0), hidden: !(4 & ~a2) || void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...!(4 & ~a2) && !!(2 & ~a2) && { display: "none" } } }, theirProps: o2, slot: {}, attrs: l2, slots: t2, name: "Hidden" });
583
- } }), gt = Symbol("Context");
584
- var mt = ((e2) => (e2[e2.Open = 1] = "Open", e2[e2.Closed = 2] = "Closed", e2[e2.Closing = 4] = "Closing", e2[e2.Opening = 8] = "Opening", e2))(mt || {});
585
- function ft() {
586
- return f(gt, null);
633
+ return st({ ourProps: { "aria-hidden": !(2 & ~a2) || (null != (n2 = o2["aria-hidden"]) ? n2 : void 0), hidden: !(4 & ~a2) || void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...!(4 & ~a2) && !!(2 & ~a2) && { display: "none" } } }, theirProps: o2, slot: {}, attrs: l2, slots: t2, name: "Hidden" });
634
+ } }), vt = Symbol("Context");
635
+ var ht = ((e2) => (e2[e2.Open = 1] = "Open", e2[e2.Closed = 2] = "Closed", e2[e2.Closing = 4] = "Closing", e2[e2.Opening = 8] = "Opening", e2))(ht || {});
636
+ function bt() {
637
+ return v(vt, null);
587
638
  }
588
- function vt(e2) {
589
- S(gt, e2);
639
+ function yt(e2) {
640
+ C(vt, e2);
590
641
  }
591
- var ht = ((e2) => (e2.Space = " ", e2.Enter = "Enter", e2.Escape = "Escape", e2.Backspace = "Backspace", e2.Delete = "Delete", e2.ArrowLeft = "ArrowLeft", e2.ArrowUp = "ArrowUp", e2.ArrowRight = "ArrowRight", e2.ArrowDown = "ArrowDown", e2.Home = "Home", e2.End = "End", e2.PageUp = "PageUp", e2.PageDown = "PageDown", e2.Tab = "Tab", e2))(ht || {});
592
- let bt = [];
642
+ var xt = ((e2) => (e2.Space = " ", e2.Enter = "Enter", e2.Escape = "Escape", e2.Backspace = "Backspace", e2.Delete = "Delete", e2.ArrowLeft = "ArrowLeft", e2.ArrowUp = "ArrowUp", e2.ArrowRight = "ArrowRight", e2.ArrowDown = "ArrowDown", e2.Home = "Home", e2.End = "End", e2.PageUp = "PageUp", e2.PageDown = "PageDown", e2.Tab = "Tab", e2))(xt || {}), wt = ((e2) => (e2[e2.Left = 0] = "Left", e2[e2.Right = 2] = "Right", e2))(wt || {});
643
+ let kt = [];
593
644
  !function(e2) {
594
645
  function t2() {
595
646
  "loading" !== document.readyState && (e2(), document.removeEventListener("DOMContentLoaded", t2));
@@ -597,12 +648,12 @@ let bt = [];
597
648
  "undefined" != typeof window && "undefined" != typeof document && (document.addEventListener("DOMContentLoaded", t2), t2());
598
649
  }(() => {
599
650
  function e2(e3) {
600
- e3.target instanceof HTMLElement && e3.target !== document.body && bt[0] !== e3.target && (bt.unshift(e3.target), bt = bt.filter((e4) => null != e4 && e4.isConnected), bt.splice(10));
651
+ e3.target instanceof HTMLElement && e3.target !== document.body && kt[0] !== e3.target && (kt.unshift(e3.target), kt = kt.filter((e4) => null != e4 && e4.isConnected), kt.splice(10));
601
652
  }
602
653
  window.addEventListener("click", e2, { capture: true }), window.addEventListener("mousedown", e2, { capture: true }), window.addEventListener("focus", e2, { capture: true }), document.body.addEventListener("click", e2, { capture: true }), document.body.addEventListener("mousedown", e2, { capture: true }), document.body.addEventListener("focus", e2, { capture: true });
603
654
  });
604
- var yt = ((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))(yt || {});
605
- function xt(e2, t2) {
655
+ var St = ((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))(St || {});
656
+ function Ct(e2, t2) {
606
657
  let l2 = t2.resolveItems();
607
658
  if (l2.length <= 0)
608
659
  return null;
@@ -642,102 +693,60 @@ function xt(e2, t2) {
642
693
  }(e2);
643
694
  }
644
695
  }
645
- function wt(e2) {
646
- "function" == typeof queueMicrotask ? queueMicrotask(e2) : Promise.resolve().then(e2).catch((e3) => setTimeout(() => {
647
- throw e3;
648
- }));
649
- }
650
- function kt() {
651
- let e2 = [], t2 = { addEventListener: (e3, l2, n2, a2) => (e3.addEventListener(l2, n2, a2), t2.add(() => e3.removeEventListener(l2, n2, a2))), requestAnimationFrame(...e3) {
652
- let l2 = requestAnimationFrame(...e3);
653
- t2.add(() => cancelAnimationFrame(l2));
654
- }, nextFrame(...e3) {
655
- t2.requestAnimationFrame(() => {
656
- t2.requestAnimationFrame(...e3);
657
- });
658
- }, setTimeout(...e3) {
659
- let l2 = setTimeout(...e3);
660
- t2.add(() => clearTimeout(l2));
661
- }, microTask(...e3) {
662
- let l2 = { current: true };
663
- return wt(() => {
664
- l2.current && e3[0]();
665
- }), t2.add(() => {
666
- l2.current = false;
667
- });
668
- }, style(e3, t3, l2) {
669
- let n2 = e3.style.getPropertyValue(t3);
670
- return Object.assign(e3.style, { [t3]: l2 }), this.add(() => {
671
- Object.assign(e3.style, { [t3]: n2 });
672
- });
673
- }, group(e3) {
674
- let t3 = kt();
675
- return e3(t3), this.add(() => t3.dispose());
676
- }, add: (t3) => (e2.push(t3), () => {
677
- let l2 = e2.indexOf(t3);
678
- if (l2 >= 0)
679
- for (let t4 of e2.splice(l2, 1))
680
- t4();
681
- }), dispose() {
682
- for (let t3 of e2.splice(0))
683
- t3();
684
- } };
685
- return t2;
686
- }
687
- function St(e2 = {}, t2 = null, l2 = []) {
696
+ function Ot(e2 = {}, t2 = null, l2 = []) {
688
697
  for (let [n2, a2] of Object.entries(e2))
689
- Ot(l2, Ct(t2, n2), a2);
698
+ Dt(l2, Mt(t2, n2), a2);
690
699
  return l2;
691
700
  }
692
- function Ct(e2, t2) {
701
+ function Mt(e2, t2) {
693
702
  return e2 ? e2 + "[" + t2 + "]" : t2;
694
703
  }
695
- function Ot(e2, t2, l2) {
704
+ function Dt(e2, t2, l2) {
696
705
  if (Array.isArray(l2))
697
706
  for (let [n2, a2] of l2.entries())
698
- Ot(e2, Ct(t2, n2.toString()), a2);
707
+ Dt(e2, Mt(t2, n2.toString()), a2);
699
708
  else
700
- 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, ""]) : St(l2, t2, e2);
709
+ 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, ""]) : Ot(l2, t2, e2);
701
710
  }
702
- var Mt = ((e2) => (e2[e2.Open = 0] = "Open", e2[e2.Closed = 1] = "Closed", e2))(Mt || {}), Dt = ((e2) => (e2[e2.Single = 0] = "Single", e2[e2.Multi = 1] = "Multi", e2))(Dt || {}), Tt = ((e2) => (e2[e2.Pointer = 0] = "Pointer", e2[e2.Focus = 1] = "Focus", e2[e2.Other = 2] = "Other", e2))(Tt || {});
703
- let Et = Symbol("ComboboxContext");
704
- function It(e2) {
705
- let t2 = f(Et, null);
711
+ var Tt = ((e2) => (e2[e2.Open = 0] = "Open", e2[e2.Closed = 1] = "Closed", e2))(Tt || {}), Et = ((e2) => (e2[e2.Single = 0] = "Single", e2[e2.Multi = 1] = "Multi", e2))(Et || {}), It = ((e2) => (e2[e2.Pointer = 0] = "Pointer", e2[e2.Focus = 1] = "Focus", e2[e2.Other = 2] = "Other", e2))(It || {});
712
+ let _t = Symbol("ComboboxContext");
713
+ function Pt(e2) {
714
+ let t2 = v(_t, null);
706
715
  if (null === t2) {
707
716
  let t3 = new Error(`<${e2} /> is missing a parent <Combobox /> component.`);
708
- throw Error.captureStackTrace && Error.captureStackTrace(t3, It), t3;
717
+ throw Error.captureStackTrace && Error.captureStackTrace(t3, Pt), t3;
709
718
  }
710
719
  return t2;
711
720
  }
712
- let _t = Symbol("VirtualContext"), Pt = k({ name: "VirtualProvider", setup(e2, { slots: t2 }) {
713
- let l2 = It("VirtualProvider"), n2 = u(() => {
714
- let e3 = Te(l2.optionsRef);
721
+ let jt = Symbol("VirtualContext"), Rt = S({ name: "VirtualProvider", setup(e2, { slots: t2 }) {
722
+ let l2 = Pt("VirtualProvider"), n2 = u(() => {
723
+ let e3 = _e(l2.optionsRef);
715
724
  if (!e3)
716
725
  return { start: 0, end: 0 };
717
726
  let t3 = window.getComputedStyle(e3);
718
727
  return { start: parseFloat(t3.paddingBlockStart || t3.paddingTop), end: parseFloat(t3.paddingBlockEnd || t3.paddingBottom) };
719
- }), a2 = Se(u(() => ({ scrollPaddingStart: n2.value.start, scrollPaddingEnd: n2.value.end, count: l2.virtual.value.options.length, estimateSize: () => 40, getScrollElement: () => Te(l2.optionsRef), overscan: 12 }))), o2 = u(() => {
728
+ }), a2 = Se(u(() => ({ scrollPaddingStart: n2.value.start, scrollPaddingEnd: n2.value.end, count: l2.virtual.value.options.length, estimateSize: () => 40, getScrollElement: () => _e(l2.optionsRef), overscan: 12 }))), o2 = u(() => {
720
729
  var e3;
721
730
  return null == (e3 = l2.virtual.value) ? void 0 : e3.options;
722
731
  }), r2 = s(0);
723
732
  return p([o2], () => {
724
733
  r2.value += 1;
725
- }), S(_t, l2.virtual.value ? a2 : null), () => [x("div", { style: { position: "relative", width: "100%", height: `${a2.value.getTotalSize()}px` }, ref: (e3) => {
734
+ }), C(jt, l2.virtual.value ? a2 : null), () => [w("div", { style: { position: "relative", width: "100%", height: `${a2.value.getTotalSize()}px` }, ref: (e3) => {
726
735
  if (e3) {
727
736
  if ("undefined" != typeof process && void 0 !== process.env.JEST_WORKER_ID || 0 === l2.activationTrigger.value)
728
737
  return;
729
738
  null !== l2.activeOptionIndex.value && l2.virtual.value.options.length > l2.activeOptionIndex.value && a2.value.scrollToIndex(l2.activeOptionIndex.value);
730
739
  }
731
- } }, a2.value.getVirtualItems().map((e3) => y(t2.default({ option: l2.virtual.value.options[e3.index], open: 0 === l2.comboboxState.value })[0], { key: `${r2.value}-${e3.index}`, "data-index": e3.index, "aria-setsize": l2.virtual.value.options.length, "aria-posinset": e3.index + 1, style: { position: "absolute", top: 0, left: 0, transform: `translateY(${e3.start}px)`, overflowAnchor: "none" } })))];
732
- } }), jt = k({ name: "Combobox", emits: { "update:modelValue": (e2) => true }, props: { as: { type: [Object, String], default: "template" }, disabled: { type: [Boolean], default: false }, by: { type: [String, Function], nullable: true, default: null }, modelValue: { type: [Object, String, Number, Boolean], default: void 0 }, defaultValue: { type: [Object, String, Number, Boolean], default: void 0 }, form: { type: String, optional: true }, name: { type: String, optional: true }, nullable: { type: Boolean, default: false }, multiple: { type: [Boolean], default: false }, immediate: { type: [Boolean], default: false }, virtual: { type: Object, default: null } }, inheritAttrs: false, setup(e2, { slots: t2, attrs: l2, emit: n2 }) {
733
- let a2 = s(1), o2 = s(null), r2 = s(null), i2 = s(null), d2 = s(null), c2 = s({ static: false, hold: false }), g2 = s([]), m2 = s(null), f2 = s(2), v2 = s(false);
740
+ } }, 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" } })))];
741
+ } }), Bt = S({ name: "Combobox", emits: { "update:modelValue": (e2) => true }, props: { as: { type: [Object, String], default: "template" }, disabled: { type: [Boolean], default: false }, by: { type: [String, Function], nullable: true, default: null }, modelValue: { type: [Object, String, Number, Boolean], default: void 0 }, defaultValue: { type: [Object, String, Number, Boolean], default: void 0 }, form: { type: String, optional: true }, name: { type: String, optional: true }, nullable: { type: Boolean, default: false }, multiple: { type: [Boolean], default: false }, immediate: { type: [Boolean], default: false }, virtual: { type: Object, default: null } }, inheritAttrs: false, setup(e2, { slots: t2, attrs: l2, emit: n2 }) {
742
+ let a2 = s(1), o2 = s(null), r2 = s(null), i2 = s(null), d2 = s(null), c2 = s({ static: false, hold: false }), g2 = s([]), f2 = s(null), m2 = s(2), v2 = s(false);
734
743
  function h2(e3 = (e4) => e4) {
735
- let t3 = null !== m2.value ? g2.value[m2.value] : null, l3 = e3(g2.value.slice()), n3 = l3.length > 0 && null !== l3[0].dataRef.order.value ? l3.sort((e4, t4) => e4.dataRef.order.value - t4.dataRef.order.value) : Ue(l3, (e4) => Te(e4.dataRef.domRef)), a3 = t3 ? n3.indexOf(t3) : null;
744
+ 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) : Ke(l3, (e4) => _e(e4.dataRef.domRef)), a3 = t3 ? n3.indexOf(t3) : null;
736
745
  return -1 === a3 && (a3 = null), { options: n3, activeOptionIndex: a3 };
737
746
  }
738
- let y2 = u(() => e2.multiple ? 1 : 0), k2 = u(() => e2.nullable), [O2, D2] = Ce(u(() => e2.modelValue), (e3) => n2("update:modelValue", e3), u(() => e2.defaultValue)), T2 = u(() => void 0 === O2.value ? Ee(y2.value, { 1: [], 0: void 0 }) : O2.value), E2 = null, I2 = null;
747
+ let b2 = u(() => e2.multiple ? 1 : 0), x2 = u(() => e2.nullable), [S2, D2] = Ce(u(() => e2.modelValue), (e3) => n2("update:modelValue", e3), u(() => e2.defaultValue)), T2 = u(() => void 0 === S2.value ? Pe(b2.value, { 1: [], 0: void 0 }) : S2.value), E2 = null, I2 = null;
739
748
  function _2(e3) {
740
- return Ee(y2.value, { 0: () => null == D2 ? void 0 : D2(e3), 1: () => {
749
+ return Pe(b2.value, { 0: () => null == D2 ? void 0 : D2(e3), 1: () => {
741
750
  let t3 = M(j2.value.value).slice(), l3 = M(e3), n3 = t3.findIndex((e4) => j2.compare(l3, M(e4)));
742
751
  return -1 === n3 ? t3.push(l3) : t3.splice(n3, 1), null == D2 ? void 0 : D2(t3);
743
752
  } });
@@ -745,12 +754,12 @@ let _t = Symbol("VirtualContext"), Pt = k({ name: "VirtualProvider", setup(e2, {
745
754
  let P2 = u(() => {
746
755
  });
747
756
  p([P2], ([e3], [t3]) => {
748
- if (j2.virtual.value && e3 && t3 && null !== m2.value) {
749
- let l3 = e3.indexOf(t3[m2.value]);
750
- m2.value = -1 !== l3 ? l3 : null;
757
+ if (j2.virtual.value && e3 && t3 && null !== f2.value) {
758
+ let l3 = e3.indexOf(t3[f2.value]);
759
+ f2.value = -1 !== l3 ? l3 : null;
751
760
  }
752
761
  });
753
- let j2 = { comboboxState: a2, value: T2, mode: y2, compare(t3, l3) {
762
+ let j2 = { comboboxState: a2, value: T2, mode: b2, compare(t3, l3) {
754
763
  if ("string" == typeof e2.by) {
755
764
  let n3 = e2.by;
756
765
  return (null == t3 ? void 0 : t3[n3]) === (null == l3 ? void 0 : l3[n3]);
@@ -758,10 +767,10 @@ let _t = Symbol("VirtualContext"), Pt = k({ name: "VirtualProvider", setup(e2, {
758
767
  return null === e2.by ? /* @__PURE__ */ function(e3, t4) {
759
768
  return e3 === t4;
760
769
  }(t3, l3) : e2.by(t3, l3);
761
- }, calculateIndex: (t3) => j2.virtual.value ? null === e2.by ? j2.virtual.value.options.indexOf(t3) : j2.virtual.value.options.findIndex((e3) => j2.compare(e3, t3)) : g2.value.findIndex((e3) => j2.compare(e3.dataRef.value, t3)), defaultValue: u(() => e2.defaultValue), nullable: k2, immediate: u(() => false), virtual: u(() => null), inputRef: r2, labelRef: o2, buttonRef: i2, optionsRef: d2, disabled: u(() => e2.disabled), options: g2, change(e3) {
770
+ }, calculateIndex: (t3) => j2.virtual.value ? null === e2.by ? j2.virtual.value.options.indexOf(t3) : j2.virtual.value.options.findIndex((e3) => j2.compare(e3, t3)) : g2.value.findIndex((e3) => j2.compare(e3.dataRef.value, t3)), defaultValue: u(() => e2.defaultValue), nullable: x2, immediate: u(() => false), virtual: u(() => null), inputRef: r2, labelRef: o2, buttonRef: i2, optionsRef: d2, disabled: u(() => e2.disabled), options: g2, change(e3) {
762
771
  D2(e3);
763
772
  }, activeOptionIndex: u(() => {
764
- if (v2.value && null === m2.value && (j2.virtual.value ? j2.virtual.value.options.length > 0 : g2.value.length > 0)) {
773
+ if (v2.value && null === f2.value && (j2.virtual.value ? j2.virtual.value.options.length > 0 : g2.value.length > 0)) {
765
774
  if (j2.virtual.value) {
766
775
  let e4 = j2.virtual.value.options.findIndex((e5) => {
767
776
  var t3;
@@ -774,25 +783,25 @@ let _t = Symbol("VirtualContext"), Pt = k({ name: "VirtualProvider", setup(e2, {
774
783
  if (-1 !== e3)
775
784
  return e3;
776
785
  }
777
- return m2.value;
778
- }), activationTrigger: f2, optionsPropsRef: c2, closeCombobox() {
779
- v2.value = false, !e2.disabled && 1 !== a2.value && (a2.value = 1, m2.value = null);
786
+ return f2.value;
787
+ }), activationTrigger: m2, optionsPropsRef: c2, closeCombobox() {
788
+ v2.value = false, !e2.disabled && 1 !== a2.value && (a2.value = 1, f2.value = null);
780
789
  }, openCombobox() {
781
790
  if (v2.value = true, !e2.disabled && 0 !== a2.value) {
782
791
  if (j2.value.value) {
783
792
  let e3 = j2.calculateIndex(j2.value.value);
784
- -1 !== e3 && (m2.value = e3);
793
+ -1 !== e3 && (f2.value = e3);
785
794
  }
786
795
  a2.value = 0;
787
796
  }
788
797
  }, setActivationTrigger(e3) {
789
- f2.value = e3;
798
+ m2.value = e3;
790
799
  }, goToOption(t3, l3, n3) {
791
800
  v2.value = false, null !== E2 && cancelAnimationFrame(E2), E2 = requestAnimationFrame(() => {
792
801
  if (e2.disabled || d2.value && !c2.value.static && 1 === a2.value)
793
802
  return;
794
803
  if (j2.virtual.value)
795
- return m2.value = t3 === yt.Specific ? l3 : xt({ focus: t3 }, { resolveItems: () => j2.virtual.value.options, resolveActiveIndex: () => {
804
+ return f2.value = t3 === St.Specific ? l3 : Ct({ focus: t3 }, { resolveItems: () => j2.virtual.value.options, resolveActiveIndex: () => {
796
805
  var e3, t4;
797
806
  return null != (t4 = null != (e3 = j2.activeOptionIndex.value) ? e3 : j2.virtual.value.options.findIndex((e4) => {
798
807
  var t5;
@@ -800,14 +809,14 @@ let _t = Symbol("VirtualContext"), Pt = k({ name: "VirtualProvider", setup(e2, {
800
809
  })) ? t4 : null;
801
810
  }, resolveDisabled: (e3) => j2.virtual.value.disabled(e3), resolveId() {
802
811
  throw new Error("Function not implemented.");
803
- } }), void (f2.value = null != n3 ? n3 : 2);
812
+ } }), void (m2.value = null != n3 ? n3 : 2);
804
813
  let o3 = h2();
805
814
  if (null === o3.activeOptionIndex) {
806
815
  let e3 = o3.options.findIndex((e4) => !e4.dataRef.disabled);
807
816
  -1 !== e3 && (o3.activeOptionIndex = e3);
808
817
  }
809
- let r3 = t3 === yt.Specific ? l3 : xt({ focus: t3 }, { resolveItems: () => o3.options, resolveActiveIndex: () => o3.activeOptionIndex, resolveId: (e3) => e3.id, resolveDisabled: (e3) => e3.dataRef.disabled });
810
- m2.value = r3, f2.value = null != n3 ? n3 : 2, g2.value = o3.options;
818
+ let r3 = t3 === St.Specific ? l3 : Ct({ focus: t3 }, { resolveItems: () => o3.options, resolveActiveIndex: () => o3.activeOptionIndex, resolveId: (e3) => e3.id, resolveDisabled: (e3) => e3.dataRef.disabled });
819
+ f2.value = r3, m2.value = null != n3 ? n3 : 2, g2.value = o3.options;
811
820
  });
812
821
  }, selectOption(e3) {
813
822
  let t3 = g2.value.find((t4) => t4.id === e3);
@@ -823,17 +832,17 @@ let _t = Symbol("VirtualContext"), Pt = k({ name: "VirtualProvider", setup(e2, {
823
832
  let { dataRef: e3 } = g2.value[j2.activeOptionIndex.value];
824
833
  _2(e3.value);
825
834
  }
826
- j2.goToOption(yt.Specific, j2.activeOptionIndex.value);
835
+ j2.goToOption(St.Specific, j2.activeOptionIndex.value);
827
836
  }
828
837
  }, registerOption(e3, t3) {
829
- let l3 = C({ id: e3, dataRef: t3 });
838
+ let l3 = O({ id: e3, dataRef: t3 });
830
839
  if (j2.virtual.value)
831
840
  return void g2.value.push(l3);
832
841
  I2 && cancelAnimationFrame(I2);
833
842
  let n3 = h2((e4) => (e4.push(l3), e4));
834
- null === m2.value && j2.isSelected(t3.value.value) && (n3.activeOptionIndex = n3.options.indexOf(l3)), g2.value = n3.options, m2.value = n3.activeOptionIndex, f2.value = 2, n3.options.some((e4) => !Te(e4.dataRef.domRef)) && (I2 = requestAnimationFrame(() => {
843
+ null === f2.value && j2.isSelected(t3.value.value) && (n3.activeOptionIndex = n3.options.indexOf(l3)), g2.value = n3.options, f2.value = n3.activeOptionIndex, m2.value = 2, n3.options.some((e4) => !_e(e4.dataRef.domRef)) && (I2 = requestAnimationFrame(() => {
835
844
  let e4 = h2();
836
- g2.value = e4.options, m2.value = e4.activeOptionIndex;
845
+ g2.value = e4.options, f2.value = e4.activeOptionIndex;
837
846
  }));
838
847
  }, unregisterOption(e3, t3) {
839
848
  if (null !== E2 && cancelAnimationFrame(E2), t3 && (v2.value = true), j2.virtual.value)
@@ -842,14 +851,14 @@ let _t = Symbol("VirtualContext"), Pt = k({ name: "VirtualProvider", setup(e2, {
842
851
  let l4 = t4.findIndex((t5) => t5.id === e3);
843
852
  return -1 !== l4 && t4.splice(l4, 1), t4;
844
853
  });
845
- g2.value = l3.options, m2.value = l3.activeOptionIndex, f2.value = 2;
846
- }, isSelected: (e3) => Ee(y2.value, { 0: () => j2.compare(M(j2.value.value), M(e3)), 1: () => M(j2.value.value).some((t3) => j2.compare(M(t3), M(e3))) }), isActive: (e3) => m2.value === j2.calculateIndex(e3) };
847
- Ze([r2, i2, d2], () => j2.closeCombobox(), u(() => 0 === a2.value)), S(Et, j2), vt(u(() => Ee(a2.value, { 0: mt.Open, 1: mt.Closed })));
854
+ g2.value = l3.options, f2.value = l3.activeOptionIndex, m2.value = 2;
855
+ }, isSelected: (e3) => Pe(b2.value, { 0: () => j2.compare(M(j2.value.value), M(e3)), 1: () => M(j2.value.value).some((t3) => j2.compare(M(t3), M(e3))) }), isActive: (e3) => f2.value === j2.calculateIndex(e3) };
856
+ et([r2, i2, d2], () => j2.closeCombobox(), u(() => 0 === a2.value)), C(_t, j2), yt(u(() => Pe(a2.value, { 0: ht.Open, 1: ht.Closed })));
848
857
  let R2 = u(() => {
849
858
  var e3;
850
- return null == (e3 = Te(r2)) ? void 0 : e3.closest("form");
859
+ return null == (e3 = _e(r2)) ? void 0 : e3.closest("form");
851
860
  });
852
- return b(() => {
861
+ return y(() => {
853
862
  p([R2], () => {
854
863
  if (R2.value && void 0 !== e2.defaultValue)
855
864
  return R2.value.addEventListener("reset", t3), () => {
@@ -863,77 +872,77 @@ let _t = Symbol("VirtualContext"), Pt = k({ name: "VirtualProvider", setup(e2, {
863
872
  }), () => {
864
873
  var n3, o3, r3;
865
874
  let { name: i3, disabled: s2, form: u2, ...d3 } = e2, c3 = { open: 0 === a2.value, disabled: s2, activeIndex: j2.activeOptionIndex.value, activeOption: null === j2.activeOptionIndex.value ? null : j2.virtual.value ? j2.virtual.value.options[null != (n3 = j2.activeOptionIndex.value) ? n3 : 0] : null != (r3 = null == (o3 = j2.options.value[j2.activeOptionIndex.value]) ? void 0 : o3.dataRef.value) ? r3 : null, value: T2.value };
866
- return x(w, [...null != i3 && null != T2.value ? St({ [i3]: T2.value }).map(([e3, t3]) => x(pt, ut({ features: ct.Hidden, key: e3, as: "input", type: "hidden", hidden: true, readOnly: true, form: u2, disabled: s2, name: e3, value: t3 }))) : [], ot({ theirProps: { ...l2, ...dt(d3, ["by", "defaultValue", "immediate", "modelValue", "multiple", "nullable", "onUpdate:modelValue", "virtual"]) }, ourProps: {}, slot: c3, slots: t2, attrs: l2, name: "Combobox" })]);
875
+ return w(k, [...null != i3 && null != T2.value ? Ot({ [i3]: T2.value }).map(([e3, t3]) => w(mt, pt({ features: ft.Hidden, key: e3, as: "input", type: "hidden", hidden: true, readOnly: true, form: u2, disabled: s2, name: e3, value: t3 }))) : [], st({ theirProps: { ...l2, ...gt(d3, ["by", "defaultValue", "immediate", "modelValue", "multiple", "nullable", "onUpdate:modelValue", "virtual"]) }, ourProps: {}, slot: c3, slots: t2, attrs: l2, name: "Combobox" })]);
867
876
  };
868
- } }), Rt = k({ name: "ComboboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: null } }, setup(e2, { attrs: t2, slots: l2 }) {
877
+ } }), At = S({ name: "ComboboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: null } }, setup(e2, { attrs: t2, slots: l2 }) {
869
878
  var n2;
870
- let a2 = null != (n2 = e2.id) ? n2 : `headlessui-combobox-label-${De()}`, o2 = It("ComboboxLabel");
879
+ let a2 = null != (n2 = e2.id) ? n2 : `headlessui-combobox-label-${Ie()}`, o2 = Pt("ComboboxLabel");
871
880
  function r2() {
872
881
  var e3;
873
- null == (e3 = Te(o2.inputRef)) || e3.focus({ preventScroll: true });
882
+ null == (e3 = _e(o2.inputRef)) || e3.focus({ preventScroll: true });
874
883
  }
875
884
  return () => {
876
885
  let n3 = { open: 0 === o2.comboboxState.value, disabled: o2.disabled.value }, { ...i2 } = e2;
877
- return ot({ ourProps: { id: a2, ref: o2.labelRef, onClick: r2 }, theirProps: i2, slot: n3, attrs: t2, slots: l2, name: "ComboboxLabel" });
886
+ return st({ ourProps: { id: a2, ref: o2.labelRef, onClick: r2 }, theirProps: i2, slot: n3, attrs: t2, slots: l2, name: "ComboboxLabel" });
878
887
  };
879
- } }), Bt = k({ name: "ComboboxButton", props: { as: { type: [Object, String], default: "button" }, id: { type: String, default: null } }, setup(e2, { attrs: t2, slots: l2, expose: n2 }) {
888
+ } }), Lt = S({ name: "ComboboxButton", props: { as: { type: [Object, String], default: "button" }, id: { type: String, default: null } }, setup(e2, { attrs: t2, slots: l2, expose: n2 }) {
880
889
  var a2;
881
- let o2 = null != (a2 = e2.id) ? a2 : `headlessui-combobox-button-${De()}`, r2 = It("ComboboxButton");
890
+ let o2 = null != (a2 = e2.id) ? a2 : `headlessui-combobox-button-${Ie()}`, r2 = Pt("ComboboxButton");
882
891
  function i2(e3) {
883
- r2.disabled.value || (0 === r2.comboboxState.value ? r2.closeCombobox() : (e3.preventDefault(), r2.openCombobox()), v(() => {
892
+ r2.disabled.value || (0 === r2.comboboxState.value ? r2.closeCombobox() : (e3.preventDefault(), r2.openCombobox()), h(() => {
884
893
  var e4;
885
- return null == (e4 = Te(r2.inputRef)) ? void 0 : e4.focus({ preventScroll: true });
894
+ return null == (e4 = _e(r2.inputRef)) ? void 0 : e4.focus({ preventScroll: true });
886
895
  }));
887
896
  }
888
897
  function s2(e3) {
889
898
  switch (e3.key) {
890
- case ht.ArrowDown:
891
- return e3.preventDefault(), e3.stopPropagation(), 1 === r2.comboboxState.value && r2.openCombobox(), void v(() => {
899
+ case xt.ArrowDown:
900
+ return e3.preventDefault(), e3.stopPropagation(), 1 === r2.comboboxState.value && r2.openCombobox(), void h(() => {
892
901
  var e4;
893
902
  return null == (e4 = r2.inputRef.value) ? void 0 : e4.focus({ preventScroll: true });
894
903
  });
895
- case ht.ArrowUp:
896
- return e3.preventDefault(), e3.stopPropagation(), 1 === r2.comboboxState.value && (r2.openCombobox(), v(() => {
897
- r2.value.value || r2.goToOption(yt.Last);
898
- })), void v(() => {
904
+ case xt.ArrowUp:
905
+ return e3.preventDefault(), e3.stopPropagation(), 1 === r2.comboboxState.value && (r2.openCombobox(), h(() => {
906
+ r2.value.value || r2.goToOption(St.Last);
907
+ })), void h(() => {
899
908
  var e4;
900
909
  return null == (e4 = r2.inputRef.value) ? void 0 : e4.focus({ preventScroll: true });
901
910
  });
902
- case ht.Escape:
911
+ case xt.Escape:
903
912
  if (0 !== r2.comboboxState.value)
904
913
  return;
905
- return e3.preventDefault(), r2.optionsRef.value && !r2.optionsPropsRef.value.static && e3.stopPropagation(), r2.closeCombobox(), void v(() => {
914
+ return e3.preventDefault(), r2.optionsRef.value && !r2.optionsPropsRef.value.static && e3.stopPropagation(), r2.closeCombobox(), void h(() => {
906
915
  var e4;
907
916
  return null == (e4 = r2.inputRef.value) ? void 0 : e4.focus({ preventScroll: true });
908
917
  });
909
918
  }
910
919
  }
911
920
  n2({ el: r2.buttonRef, $el: r2.buttonRef });
912
- let d2 = Qe(u(() => ({ as: e2.as, type: t2.type })), r2.buttonRef);
921
+ let d2 = lt(u(() => ({ as: e2.as, type: t2.type })), r2.buttonRef);
913
922
  return () => {
914
923
  var n3, a3;
915
924
  let u2 = { open: 0 === r2.comboboxState.value, disabled: r2.disabled.value, value: r2.value.value }, { ...c2 } = e2;
916
- return ot({ ourProps: { ref: r2.buttonRef, id: o2, type: d2.value, tabindex: "-1", "aria-haspopup": "listbox", "aria-controls": null == (n3 = Te(r2.optionsRef)) ? void 0 : n3.id, "aria-expanded": 0 === r2.comboboxState.value, "aria-labelledby": r2.labelRef.value ? [null == (a3 = Te(r2.labelRef)) ? void 0 : a3.id, o2].join(" ") : void 0, disabled: true === r2.disabled.value || void 0, onKeydown: s2, onClick: i2 }, theirProps: c2, slot: u2, attrs: t2, slots: l2, name: "ComboboxButton" });
925
+ return st({ ourProps: { ref: r2.buttonRef, id: o2, type: d2.value, tabindex: "-1", "aria-haspopup": "listbox", "aria-controls": null == (n3 = _e(r2.optionsRef)) ? void 0 : n3.id, "aria-expanded": 0 === r2.comboboxState.value, "aria-labelledby": r2.labelRef.value ? [null == (a3 = _e(r2.labelRef)) ? void 0 : a3.id, o2].join(" ") : void 0, disabled: true === r2.disabled.value || void 0, onKeydown: s2, onClick: i2 }, theirProps: c2, slot: u2, attrs: t2, slots: l2, name: "ComboboxButton" });
917
926
  };
918
- } }), At = k({ name: "ComboboxInput", props: { as: { type: [Object, String], default: "input" }, static: { type: Boolean, default: false }, unmount: { type: Boolean, default: true }, displayValue: { type: Function }, defaultValue: { type: String, default: void 0 }, id: { type: String, default: null } }, emits: { change: (e2) => true }, setup(e2, { emit: t2, attrs: l2, slots: n2, expose: a2 }) {
927
+ } }), Ft = S({ name: "ComboboxInput", props: { as: { type: [Object, String], default: "input" }, static: { type: Boolean, default: false }, unmount: { type: Boolean, default: true }, displayValue: { type: Function }, defaultValue: { type: String, default: void 0 }, id: { type: String, default: null } }, emits: { change: (e2) => true }, setup(e2, { emit: t2, attrs: l2, slots: n2, expose: a2 }) {
919
928
  var o2;
920
- let r2 = null != (o2 = e2.id) ? o2 : `headlessui-combobox-input-${De()}`, i2 = It("ComboboxInput"), d2 = u(() => je(Te(i2.inputRef))), c2 = { value: false };
929
+ let r2 = null != (o2 = e2.id) ? o2 : `headlessui-combobox-input-${Ie()}`, i2 = Pt("ComboboxInput"), d2 = u(() => Ae(_e(i2.inputRef))), c2 = { value: false };
921
930
  function g2() {
922
931
  i2.change(null);
923
- let e3 = Te(i2.optionsRef);
924
- e3 && (e3.scrollTop = 0), i2.goToOption(yt.Nothing);
932
+ let e3 = _e(i2.optionsRef);
933
+ e3 && (e3.scrollTop = 0), i2.goToOption(St.Nothing);
925
934
  }
926
935
  a2({ el: i2.inputRef, $el: i2.inputRef });
927
- let m2 = u(() => {
936
+ let f2 = u(() => {
928
937
  var t3;
929
938
  let l3 = i2.value.value;
930
- return Te(i2.inputRef) ? void 0 !== e2.displayValue && void 0 !== l3 ? null != (t3 = e2.displayValue(l3)) ? t3 : "" : "string" == typeof l3 ? l3 : "" : "";
939
+ return _e(i2.inputRef) ? void 0 !== e2.displayValue && void 0 !== l3 ? null != (t3 = e2.displayValue(l3)) ? t3 : "" : "string" == typeof l3 ? l3 : "" : "";
931
940
  });
932
- b(() => {
933
- p([m2, i2.comboboxState, d2], ([e3, t3], [l3, n3]) => {
941
+ y(() => {
942
+ p([f2, i2.comboboxState, d2], ([e3, t3], [l3, n3]) => {
934
943
  if (c2.value)
935
944
  return;
936
- let a3 = Te(i2.inputRef);
945
+ let a3 = _e(i2.inputRef);
937
946
  a3 && ((0 === n3 && 1 === t3 || e3 !== l3) && (a3.value = e3), requestAnimationFrame(() => {
938
947
  var e4;
939
948
  if (c2.value || !a3 || (null == (e4 = d2.value) ? void 0 : e4.activeElement) !== a3)
@@ -945,7 +954,7 @@ let _t = Symbol("VirtualContext"), Pt = k({ name: "VirtualProvider", setup(e2, {
945
954
  if (0 === e3 && 1 === t3) {
946
955
  if (c2.value)
947
956
  return;
948
- let e4 = Te(i2.inputRef);
957
+ let e4 = _e(i2.inputRef);
949
958
  if (!e4)
950
959
  return;
951
960
  let t4 = e4.value, { selectionStart: l3, selectionEnd: n3, selectionDirection: a3 } = e4;
@@ -953,270 +962,270 @@ let _t = Symbol("VirtualContext"), Pt = k({ name: "VirtualProvider", setup(e2, {
953
962
  }
954
963
  });
955
964
  });
956
- let f2 = s(false);
957
- function h2() {
958
- f2.value = true;
965
+ let m2 = s(false);
966
+ function v2() {
967
+ m2.value = true;
959
968
  }
960
- function y2() {
961
- kt().nextFrame(() => {
962
- f2.value = false;
969
+ function b2() {
970
+ Me().nextFrame(() => {
971
+ m2.value = false;
963
972
  });
964
973
  }
965
- function x2(e3) {
966
- switch (c2.value = true, e3.key) {
967
- case ht.Enter:
968
- if (c2.value = false, 0 !== i2.comboboxState.value || f2.value)
974
+ let x2 = De();
975
+ function w2(e3) {
976
+ switch (c2.value = true, x2(() => {
977
+ c2.value = false;
978
+ }), e3.key) {
979
+ case xt.Enter:
980
+ if (c2.value = false, 0 !== i2.comboboxState.value || m2.value)
969
981
  return;
970
982
  if (e3.preventDefault(), e3.stopPropagation(), null === i2.activeOptionIndex.value)
971
983
  return void i2.closeCombobox();
972
984
  i2.selectActiveOption(), 0 === i2.mode.value && i2.closeCombobox();
973
985
  break;
974
- case ht.ArrowDown:
975
- return c2.value = false, e3.preventDefault(), e3.stopPropagation(), Ee(i2.comboboxState.value, { 0: () => i2.goToOption(yt.Next), 1: () => i2.openCombobox() });
976
- case ht.ArrowUp:
977
- return c2.value = false, e3.preventDefault(), e3.stopPropagation(), Ee(i2.comboboxState.value, { 0: () => i2.goToOption(yt.Previous), 1: () => {
978
- i2.openCombobox(), v(() => {
979
- i2.value.value || i2.goToOption(yt.Last);
986
+ case xt.ArrowDown:
987
+ return c2.value = false, e3.preventDefault(), e3.stopPropagation(), Pe(i2.comboboxState.value, { 0: () => i2.goToOption(St.Next), 1: () => i2.openCombobox() });
988
+ case xt.ArrowUp:
989
+ return c2.value = false, e3.preventDefault(), e3.stopPropagation(), Pe(i2.comboboxState.value, { 0: () => i2.goToOption(St.Previous), 1: () => {
990
+ i2.openCombobox(), h(() => {
991
+ i2.value.value || i2.goToOption(St.Last);
980
992
  });
981
993
  } });
982
- case ht.Home:
994
+ case xt.Home:
983
995
  if (e3.shiftKey)
984
996
  break;
985
- return c2.value = false, e3.preventDefault(), e3.stopPropagation(), i2.goToOption(yt.First);
986
- case ht.PageUp:
987
- return c2.value = false, e3.preventDefault(), e3.stopPropagation(), i2.goToOption(yt.First);
988
- case ht.End:
997
+ return c2.value = false, e3.preventDefault(), e3.stopPropagation(), i2.goToOption(St.First);
998
+ case xt.PageUp:
999
+ return c2.value = false, e3.preventDefault(), e3.stopPropagation(), i2.goToOption(St.First);
1000
+ case xt.End:
989
1001
  if (e3.shiftKey)
990
1002
  break;
991
- return c2.value = false, e3.preventDefault(), e3.stopPropagation(), i2.goToOption(yt.Last);
992
- case ht.PageDown:
993
- return c2.value = false, e3.preventDefault(), e3.stopPropagation(), i2.goToOption(yt.Last);
994
- case ht.Escape:
1003
+ return c2.value = false, e3.preventDefault(), e3.stopPropagation(), i2.goToOption(St.Last);
1004
+ case xt.PageDown:
1005
+ return c2.value = false, e3.preventDefault(), e3.stopPropagation(), i2.goToOption(St.Last);
1006
+ case xt.Escape:
995
1007
  if (c2.value = false, 0 !== i2.comboboxState.value)
996
1008
  return;
997
1009
  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();
998
1010
  break;
999
- case ht.Tab:
1011
+ case xt.Tab:
1000
1012
  if (c2.value = false, 0 !== i2.comboboxState.value)
1001
1013
  return;
1002
1014
  0 === i2.mode.value && 1 !== i2.activationTrigger.value && i2.selectActiveOption(), i2.closeCombobox();
1003
1015
  }
1004
1016
  }
1005
- function w2(e3) {
1017
+ function k2(e3) {
1006
1018
  t2("change", e3), i2.nullable.value && 0 === i2.mode.value && "" === e3.target.value && g2(), i2.openCombobox();
1007
1019
  }
1008
- function k2(e3) {
1020
+ function S2(e3) {
1009
1021
  var t3, l3, n3;
1010
- let a3 = null != (t3 = e3.relatedTarget) ? t3 : bt.find((t4) => t4 !== e3.currentTarget);
1011
- if (c2.value = false, !(null != (l3 = Te(i2.optionsRef)) && l3.contains(a3) || null != (n3 = Te(i2.buttonRef)) && n3.contains(a3) || 0 !== i2.comboboxState.value))
1022
+ let a3 = null != (t3 = e3.relatedTarget) ? t3 : kt.find((t4) => t4 !== e3.currentTarget);
1023
+ if (c2.value = false, !(null != (l3 = _e(i2.optionsRef)) && l3.contains(a3) || null != (n3 = _e(i2.buttonRef)) && n3.contains(a3) || 0 !== i2.comboboxState.value))
1012
1024
  return e3.preventDefault(), 0 === i2.mode.value && (i2.nullable.value && null === i2.value.value ? g2() : 1 !== i2.activationTrigger.value && i2.selectActiveOption()), i2.closeCombobox();
1013
1025
  }
1014
- function S2(e3) {
1026
+ function C2(e3) {
1015
1027
  var t3, l3, n3;
1016
- let a3 = null != (t3 = e3.relatedTarget) ? t3 : bt.find((t4) => t4 !== e3.currentTarget);
1017
- null != (l3 = Te(i2.buttonRef)) && l3.contains(a3) || null != (n3 = Te(i2.optionsRef)) && n3.contains(a3) || i2.disabled.value || i2.immediate.value && 0 !== i2.comboboxState.value && (i2.openCombobox(), kt().nextFrame(() => {
1028
+ let a3 = null != (t3 = e3.relatedTarget) ? t3 : kt.find((t4) => t4 !== e3.currentTarget);
1029
+ null != (l3 = _e(i2.buttonRef)) && l3.contains(a3) || null != (n3 = _e(i2.optionsRef)) && n3.contains(a3) || i2.disabled.value || i2.immediate.value && 0 !== i2.comboboxState.value && (i2.openCombobox(), Me().nextFrame(() => {
1018
1030
  i2.setActivationTrigger(1);
1019
1031
  }));
1020
1032
  }
1021
- let C2 = u(() => {
1033
+ let O2 = u(() => {
1022
1034
  var t3, l3, n3, a3;
1023
1035
  return null != (a3 = null != (n3 = null != (l3 = e2.defaultValue) ? l3 : void 0 !== i2.defaultValue.value ? null == (t3 = e2.displayValue) ? void 0 : t3.call(e2, i2.defaultValue.value) : null) ? n3 : i2.defaultValue.value) ? a3 : "";
1024
1036
  });
1025
1037
  return () => {
1026
1038
  var t3, a3, o3, s2, u2, d3, c3;
1027
- let p2 = { open: 0 === i2.comboboxState.value }, { displayValue: g3, onChange: m3, ...f3 } = e2, v2 = { "aria-controls": null == (t3 = i2.optionsRef.value) ? void 0 : t3.id, "aria-expanded": 0 === i2.comboboxState.value, "aria-activedescendant": null === i2.activeOptionIndex.value ? void 0 : i2.virtual.value ? null == (a3 = i2.options.value.find((e3) => !i2.virtual.value.disabled(e3.dataRef.value) && i2.compare(e3.dataRef.value, i2.virtual.value.options[i2.activeOptionIndex.value]))) ? void 0 : a3.id : null == (o3 = i2.options.value[i2.activeOptionIndex.value]) ? void 0 : o3.id, "aria-labelledby": null != (d3 = null == (s2 = Te(i2.labelRef)) ? void 0 : s2.id) ? d3 : null == (u2 = Te(i2.buttonRef)) ? void 0 : u2.id, "aria-autocomplete": "list", id: r2, onCompositionstart: h2, onCompositionend: y2, onKeydown: x2, onInput: w2, onFocus: S2, onBlur: k2, role: "combobox", type: null != (c3 = l2.type) ? c3 : "text", tabIndex: 0, ref: i2.inputRef, defaultValue: C2.value, disabled: true === i2.disabled.value || void 0 };
1028
- return ot({ ourProps: v2, theirProps: f3, slot: p2, attrs: l2, slots: n2, features: nt.RenderStrategy | nt.Static, name: "ComboboxInput" });
1039
+ let p2 = { open: 0 === i2.comboboxState.value }, { displayValue: g3, onChange: f3, ...m3 } = e2, h2 = { "aria-controls": null == (t3 = i2.optionsRef.value) ? void 0 : t3.id, "aria-expanded": 0 === i2.comboboxState.value, "aria-activedescendant": null === i2.activeOptionIndex.value ? void 0 : i2.virtual.value ? null == (a3 = i2.options.value.find((e3) => !i2.virtual.value.disabled(e3.dataRef.value) && i2.compare(e3.dataRef.value, i2.virtual.value.options[i2.activeOptionIndex.value]))) ? void 0 : a3.id : null == (o3 = i2.options.value[i2.activeOptionIndex.value]) ? void 0 : o3.id, "aria-labelledby": null != (d3 = null == (s2 = _e(i2.labelRef)) ? void 0 : s2.id) ? d3 : null == (u2 = _e(i2.buttonRef)) ? void 0 : u2.id, "aria-autocomplete": "list", id: r2, onCompositionstart: v2, onCompositionend: b2, onKeydown: w2, onInput: k2, onFocus: C2, onBlur: S2, role: "combobox", type: null != (c3 = l2.type) ? c3 : "text", tabIndex: 0, ref: i2.inputRef, defaultValue: O2.value, disabled: true === i2.disabled.value || void 0 };
1040
+ return st({ ourProps: h2, theirProps: m3, slot: p2, attrs: l2, slots: n2, features: rt.RenderStrategy | rt.Static, name: "ComboboxInput" });
1029
1041
  };
1030
- } }), Lt = k({ name: "ComboboxOptions", props: { as: { type: [Object, String], default: "ul" }, static: { type: Boolean, default: false }, unmount: { type: Boolean, default: true }, hold: { type: [Boolean], default: false } }, setup(e2, { attrs: t2, slots: l2, expose: n2 }) {
1031
- let a2 = It("ComboboxOptions"), o2 = `headlessui-combobox-options-${De()}`;
1032
- n2({ el: a2.optionsRef, $el: a2.optionsRef }), h(() => {
1042
+ } }), Nt = S({ name: "ComboboxOptions", props: { as: { type: [Object, String], default: "ul" }, static: { type: Boolean, default: false }, unmount: { type: Boolean, default: true }, hold: { type: [Boolean], default: false } }, setup(e2, { attrs: t2, slots: l2, expose: n2 }) {
1043
+ let a2 = Pt("ComboboxOptions"), o2 = `headlessui-combobox-options-${Ie()}`;
1044
+ n2({ el: a2.optionsRef, $el: a2.optionsRef }), b(() => {
1033
1045
  a2.optionsPropsRef.value.static = e2.static;
1034
- }), h(() => {
1046
+ }), b(() => {
1035
1047
  a2.optionsPropsRef.value.hold = e2.hold;
1036
1048
  });
1037
- let r2 = ft(), i2 = u(() => null !== r2 ? (r2.value & mt.Open) === mt.Open : 0 === a2.comboboxState.value);
1049
+ let r2 = bt(), i2 = u(() => null !== r2 ? (r2.value & ht.Open) === ht.Open : 0 === a2.comboboxState.value);
1038
1050
  function s2(e3) {
1039
1051
  e3.preventDefault();
1040
1052
  }
1041
- return lt({ container: u(() => Te(a2.optionsRef)), enabled: u(() => 0 === a2.comboboxState.value), accept: (e3) => "option" === e3.getAttribute("role") ? NodeFilter.FILTER_REJECT : e3.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT, walk(e3) {
1053
+ return ot({ container: u(() => _e(a2.optionsRef)), enabled: u(() => 0 === a2.comboboxState.value), accept: (e3) => "option" === e3.getAttribute("role") ? NodeFilter.FILTER_REJECT : e3.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT, walk(e3) {
1042
1054
  e3.setAttribute("role", "none");
1043
1055
  } }), () => {
1044
1056
  var n3, r3, u2;
1045
1057
  let d2 = { open: 0 === a2.comboboxState.value };
1046
- return ot({ ourProps: { "aria-labelledby": null != (u2 = null == (n3 = Te(a2.labelRef)) ? void 0 : n3.id) ? u2 : null == (r3 = Te(a2.buttonRef)) ? void 0 : r3.id, id: o2, ref: a2.optionsRef, role: "listbox", "aria-multiselectable": 1 === a2.mode.value || void 0, onMousedown: s2 }, theirProps: dt(e2, ["hold"]), slot: d2, attrs: t2, slots: a2.virtual.value && 0 === a2.comboboxState.value ? { ...l2, default: () => [x(Pt, {}, l2.default)] } : l2, features: nt.RenderStrategy | nt.Static, visible: i2.value, name: "ComboboxOptions" });
1058
+ return st({ ourProps: { "aria-labelledby": null != (u2 = null == (n3 = _e(a2.labelRef)) ? void 0 : n3.id) ? u2 : null == (r3 = _e(a2.buttonRef)) ? void 0 : r3.id, id: o2, ref: a2.optionsRef, role: "listbox", "aria-multiselectable": 1 === a2.mode.value || void 0, onMousedown: s2 }, theirProps: gt(e2, ["hold"]), slot: d2, attrs: t2, slots: a2.virtual.value && 0 === a2.comboboxState.value ? { ...l2, default: () => [w(Rt, {}, l2.default)] } : l2, features: rt.RenderStrategy | rt.Static, visible: i2.value, name: "ComboboxOptions" });
1047
1059
  };
1048
- } }), Ft = k({ name: "ComboboxOption", props: { as: { type: [Object, String], default: "li" }, value: { type: [Object, String, Number, Boolean] }, disabled: { type: Boolean, default: false }, order: { type: [Number], default: null } }, setup(e2, { slots: t2, attrs: l2, expose: n2 }) {
1049
- let a2 = It("ComboboxOption"), o2 = `headlessui-combobox-option-${De()}`, r2 = s(null);
1060
+ } }), zt = S({ name: "ComboboxOption", props: { as: { type: [Object, String], default: "li" }, value: { type: [Object, String, Number, Boolean] }, disabled: { type: Boolean, default: false }, order: { type: [Number], default: null } }, setup(e2, { slots: t2, attrs: l2, expose: n2 }) {
1061
+ let a2 = Pt("ComboboxOption"), o2 = `headlessui-combobox-option-${Ie()}`, r2 = s(null), i2 = u(() => e2.disabled);
1050
1062
  n2({ el: r2, $el: r2 });
1051
- let i2 = u(() => {
1063
+ let d2 = u(() => {
1052
1064
  var t3;
1053
1065
  return a2.virtual.value ? a2.activeOptionIndex.value === a2.calculateIndex(e2.value) : null !== a2.activeOptionIndex.value && (null == (t3 = a2.options.value[a2.activeOptionIndex.value]) ? void 0 : t3.id) === o2;
1054
- }), d2 = u(() => a2.isSelected(e2.value)), c2 = f(_t, null), p2 = u(() => ({ disabled: e2.disabled, value: e2.value, domRef: r2, order: u(() => e2.order) }));
1055
- function g2(t3) {
1056
- var l3;
1057
- if (e2.disabled || null != (l3 = a2.virtual.value) && l3.disabled(e2.value))
1058
- return t3.preventDefault();
1059
- a2.selectOption(o2), Ke() || requestAnimationFrame(() => {
1060
- var e3;
1061
- return null == (e3 = Te(a2.inputRef)) ? void 0 : e3.focus({ preventScroll: true });
1062
- }), 0 === a2.mode.value && requestAnimationFrame(() => a2.closeCombobox());
1066
+ }), c2 = u(() => a2.isSelected(e2.value)), p2 = v(jt, null), g2 = u(() => ({ disabled: e2.disabled, value: e2.value, domRef: r2, order: u(() => e2.order) }));
1067
+ function f2(e3) {
1068
+ e3.preventDefault(), e3.button === wt.Left && (i2.value || (a2.selectOption(o2), Ze() || requestAnimationFrame(() => {
1069
+ var e4;
1070
+ return null == (e4 = _e(a2.inputRef)) ? void 0 : e4.focus({ preventScroll: true });
1071
+ }), 0 === a2.mode.value && a2.closeCombobox()));
1063
1072
  }
1064
- function m2() {
1073
+ function x2() {
1065
1074
  var t3;
1066
1075
  if (e2.disabled || null != (t3 = a2.virtual.value) && t3.disabled(e2.value))
1067
- return a2.goToOption(yt.Nothing);
1076
+ return a2.goToOption(St.Nothing);
1068
1077
  let l3 = a2.calculateIndex(e2.value);
1069
- a2.goToOption(yt.Specific, l3);
1078
+ a2.goToOption(St.Specific, l3);
1070
1079
  }
1071
- b(() => a2.registerOption(o2, p2)), O(() => a2.unregisterOption(o2, i2.value)), h(() => {
1072
- let e3 = Te(r2);
1073
- e3 && (null == c2 || c2.value.measureElement(e3));
1074
- }), h(() => {
1075
- 0 === a2.comboboxState.value && i2.value && (a2.virtual.value || 0 !== a2.activationTrigger.value && v(() => {
1080
+ y(() => a2.registerOption(o2, g2)), m(() => a2.unregisterOption(o2, d2.value)), b(() => {
1081
+ let e3 = _e(r2);
1082
+ e3 && (null == p2 || p2.value.measureElement(e3));
1083
+ }), b(() => {
1084
+ 0 === a2.comboboxState.value && d2.value && (a2.virtual.value || 0 !== a2.activationTrigger.value && h(() => {
1076
1085
  var e3, t3;
1077
- return null == (t3 = null == (e3 = Te(r2)) ? void 0 : e3.scrollIntoView) ? void 0 : t3.call(e3, { block: "nearest" });
1086
+ return null == (t3 = null == (e3 = _e(r2)) ? void 0 : e3.scrollIntoView) ? void 0 : t3.call(e3, { block: "nearest" });
1078
1087
  }));
1079
1088
  });
1080
- let y2 = tt();
1081
- function x2(e3) {
1082
- y2.update(e3);
1089
+ let w2 = at();
1090
+ function k2(e3) {
1091
+ w2.update(e3);
1083
1092
  }
1084
- function w2(t3) {
1093
+ function S2(t3) {
1085
1094
  var l3;
1086
- if (!y2.wasMoved(t3) || e2.disabled || null != (l3 = a2.virtual.value) && l3.disabled(e2.value) || i2.value)
1095
+ if (!w2.wasMoved(t3) || e2.disabled || null != (l3 = a2.virtual.value) && l3.disabled(e2.value) || d2.value)
1087
1096
  return;
1088
1097
  let n3 = a2.calculateIndex(e2.value);
1089
- a2.goToOption(yt.Specific, n3, 0);
1098
+ a2.goToOption(St.Specific, n3, 0);
1090
1099
  }
1091
- function k2(t3) {
1100
+ function C2(t3) {
1092
1101
  var l3;
1093
- y2.wasMoved(t3) && (e2.disabled || null != (l3 = a2.virtual.value) && l3.disabled(e2.value) || i2.value && (a2.optionsPropsRef.value.hold || a2.goToOption(yt.Nothing)));
1102
+ w2.wasMoved(t3) && (e2.disabled || null != (l3 = a2.virtual.value) && l3.disabled(e2.value) || d2.value && (a2.optionsPropsRef.value.hold || a2.goToOption(St.Nothing)));
1094
1103
  }
1095
1104
  return () => {
1096
- let { disabled: n3 } = e2, a3 = { active: i2.value, selected: d2.value, disabled: n3 };
1097
- return ot({ ourProps: { id: o2, ref: r2, role: "option", tabIndex: true === n3 ? void 0 : -1, "aria-disabled": true === n3 || void 0, "aria-selected": d2.value, disabled: void 0, onClick: g2, onFocus: m2, onPointerenter: x2, onMouseenter: x2, onPointermove: w2, onMousemove: w2, onPointerleave: k2, onMouseleave: k2 }, theirProps: dt(e2, ["order", "value"]), slot: a3, attrs: l2, slots: t2, name: "ComboboxOption" });
1105
+ let { disabled: n3 } = e2, a3 = { active: d2.value, selected: c2.value, disabled: n3 };
1106
+ return st({ ourProps: { id: o2, ref: r2, role: "option", tabIndex: true === n3 ? void 0 : -1, "aria-disabled": true === n3 || void 0, "aria-selected": c2.value, disabled: void 0, onMousedown: f2, onFocus: x2, onPointerenter: k2, onMouseenter: k2, onPointermove: S2, onMousemove: S2, onPointerleave: C2, onMouseleave: C2 }, theirProps: gt(e2, ["order", "value"]), slot: a3, attrs: l2, slots: t2, name: "ComboboxOption" });
1098
1107
  };
1099
1108
  } });
1100
- function Nt(e2, t2, l2, n2) {
1101
- Pe.isServer || h((a2) => {
1109
+ function $t(e2, t2, l2, n2) {
1110
+ Be.isServer || b((a2) => {
1102
1111
  (e2 = null != e2 ? e2 : window).addEventListener(t2, l2, n2), a2(() => e2.removeEventListener(t2, l2, n2));
1103
1112
  });
1104
1113
  }
1105
- var zt = ((e2) => (e2[e2.Forwards = 0] = "Forwards", e2[e2.Backwards = 1] = "Backwards", e2))(zt || {});
1106
- function $t(e2) {
1114
+ var Vt = ((e2) => (e2[e2.Forwards = 0] = "Forwards", e2[e2.Backwards = 1] = "Backwards", e2))(Vt || {});
1115
+ function Ht(e2) {
1107
1116
  if (!e2)
1108
1117
  return /* @__PURE__ */ new Set();
1109
1118
  if ("function" == typeof e2)
1110
1119
  return new Set(e2());
1111
1120
  let t2 = /* @__PURE__ */ new Set();
1112
1121
  for (let l2 of e2.value) {
1113
- let e3 = Te(l2);
1122
+ let e3 = _e(l2);
1114
1123
  e3 instanceof HTMLElement && t2.add(e3);
1115
1124
  }
1116
1125
  return t2;
1117
1126
  }
1118
- var Vt = ((e2) => (e2[e2.None = 1] = "None", e2[e2.InitialFocus = 2] = "InitialFocus", e2[e2.TabLock = 4] = "TabLock", e2[e2.FocusLock = 8] = "FocusLock", e2[e2.RestoreFocus = 16] = "RestoreFocus", e2[e2.All = 30] = "All", e2))(Vt || {});
1119
- let Ht = Object.assign(k({ name: "FocusTrap", props: { as: { type: [Object, String], default: "div" }, initialFocus: { type: Object, default: null }, features: { type: Number, default: 30 }, containers: { type: [Object, Function], default: s(/* @__PURE__ */ new Set()) } }, inheritAttrs: false, setup(e2, { attrs: t2, slots: l2, expose: n2 }) {
1127
+ var Yt = ((e2) => (e2[e2.None = 1] = "None", e2[e2.InitialFocus = 2] = "InitialFocus", e2[e2.TabLock = 4] = "TabLock", e2[e2.FocusLock = 8] = "FocusLock", e2[e2.RestoreFocus = 16] = "RestoreFocus", e2[e2.All = 30] = "All", e2))(Yt || {});
1128
+ let Ut = Object.assign(S({ name: "FocusTrap", props: { as: { type: [Object, String], default: "div" }, initialFocus: { type: Object, default: null }, features: { type: Number, default: 30 }, containers: { type: [Object, Function], default: s(/* @__PURE__ */ new Set()) } }, inheritAttrs: false, setup(e2, { attrs: t2, slots: l2, expose: n2 }) {
1120
1129
  let a2 = s(null);
1121
1130
  n2({ el: a2, $el: a2 });
1122
- let o2 = u(() => je(a2)), r2 = s(false);
1123
- b(() => r2.value = true), O(() => r2.value = false), function({ ownerDocument: e3 }, t3) {
1131
+ let o2 = u(() => Ae(a2)), r2 = s(false);
1132
+ y(() => r2.value = true), m(() => r2.value = false), function({ ownerDocument: e3 }, t3) {
1124
1133
  let l3 = function(e4) {
1125
- let t4 = s(bt.slice());
1134
+ let t4 = s(kt.slice());
1126
1135
  return p([e4], ([e5], [l4]) => {
1127
- true === l4 && false === e5 ? wt(() => {
1136
+ true === l4 && false === e5 ? Oe(() => {
1128
1137
  t4.value.splice(0);
1129
- }) : false === l4 && true === e5 && (t4.value = bt.slice());
1138
+ }) : false === l4 && true === e5 && (t4.value = kt.slice());
1130
1139
  }, { flush: "post" }), () => {
1131
1140
  var e5;
1132
1141
  return null != (e5 = t4.value.find((e6) => null != e6 && e6.isConnected)) ? e5 : null;
1133
1142
  };
1134
1143
  }(t3);
1135
- b(() => {
1136
- h(() => {
1144
+ y(() => {
1145
+ b(() => {
1137
1146
  var n3, a3;
1138
- t3.value || (null == (n3 = e3.value) ? void 0 : n3.activeElement) === (null == (a3 = e3.value) ? void 0 : a3.body) && He(l3());
1147
+ t3.value || (null == (n3 = e3.value) ? void 0 : n3.activeElement) === (null == (a3 = e3.value) ? void 0 : a3.body) && qe(l3());
1139
1148
  }, { flush: "post" });
1140
- }), O(() => {
1141
- t3.value && He(l3());
1149
+ }), m(() => {
1150
+ t3.value && qe(l3());
1142
1151
  });
1143
1152
  }({ ownerDocument: o2 }, u(() => r2.value && Boolean(16 & e2.features)));
1144
1153
  let i2 = function({ ownerDocument: e3, container: t3, initialFocus: l3 }, n3) {
1145
1154
  let a3 = s(null), o3 = s(false);
1146
- return b(() => o3.value = true), O(() => o3.value = false), b(() => {
1155
+ return y(() => o3.value = true), m(() => o3.value = false), y(() => {
1147
1156
  p([t3, l3, n3], (r3, i3) => {
1148
1157
  if (r3.every((e4, t4) => (null == i3 ? void 0 : i3[t4]) === e4) || !n3.value)
1149
1158
  return;
1150
- let s2 = Te(t3);
1151
- s2 && wt(() => {
1159
+ let s2 = _e(t3);
1160
+ s2 && Oe(() => {
1152
1161
  var t4, n4;
1153
1162
  if (!o3.value)
1154
1163
  return;
1155
- let r4 = Te(l3), i4 = null == (t4 = e3.value) ? void 0 : t4.activeElement;
1164
+ let r4 = _e(l3), i4 = null == (t4 = e3.value) ? void 0 : t4.activeElement;
1156
1165
  if (r4) {
1157
1166
  if (r4 === i4)
1158
1167
  return void (a3.value = i4);
1159
1168
  } else if (s2.contains(i4))
1160
1169
  return void (a3.value = i4);
1161
- r4 ? He(r4) : qe(s2, Be.First | Be.NoScroll) === Ae.Error && console.warn("There are no focusable elements inside the <FocusTrap />"), a3.value = null == (n4 = e3.value) ? void 0 : n4.activeElement;
1170
+ r4 ? qe(r4) : Je(s2, Fe.First | Fe.NoScroll) === Ne.Error && console.warn("There are no focusable elements inside the <FocusTrap />"), a3.value = null == (n4 = e3.value) ? void 0 : n4.activeElement;
1162
1171
  });
1163
1172
  }, { immediate: true, flush: "post" });
1164
1173
  }), a3;
1165
1174
  }({ ownerDocument: o2, container: a2, initialFocus: u(() => e2.initialFocus) }, u(() => r2.value && Boolean(2 & e2.features)));
1166
1175
  !function({ ownerDocument: e3, container: t3, containers: l3, previousActiveElement: n3 }, a3) {
1167
1176
  var o3;
1168
- Nt(null == (o3 = e3.value) ? void 0 : o3.defaultView, "focus", (e4) => {
1177
+ $t(null == (o3 = e3.value) ? void 0 : o3.defaultView, "focus", (e4) => {
1169
1178
  if (!a3.value)
1170
1179
  return;
1171
- let o4 = $t(l3);
1172
- Te(t3) instanceof HTMLElement && o4.add(Te(t3));
1180
+ let o4 = Ht(l3);
1181
+ _e(t3) instanceof HTMLElement && o4.add(_e(t3));
1173
1182
  let r3 = n3.value;
1174
1183
  if (!r3)
1175
1184
  return;
1176
1185
  let i3 = e4.target;
1177
- i3 && i3 instanceof HTMLElement ? Yt(o4, i3) ? (n3.value = i3, He(i3)) : (e4.preventDefault(), e4.stopPropagation(), He(r3)) : He(n3.value);
1186
+ i3 && i3 instanceof HTMLElement ? qt(o4, i3) ? (n3.value = i3, qe(i3)) : (e4.preventDefault(), e4.stopPropagation(), qe(r3)) : qe(n3.value);
1178
1187
  }, true);
1179
1188
  }({ ownerDocument: o2, container: a2, containers: e2.containers, previousActiveElement: i2 }, u(() => r2.value && Boolean(8 & e2.features)));
1180
1189
  let d2 = function() {
1181
1190
  let e3 = s(0);
1182
- return Ge("keydown", (t3) => {
1191
+ return Qe("keydown", (t3) => {
1183
1192
  "Tab" === t3.key && (e3.value = t3.shiftKey ? 1 : 0);
1184
1193
  }), e3;
1185
1194
  }();
1186
1195
  function c2(e3) {
1187
- let t3 = Te(a2);
1188
- t3 && Ee(d2.value, { [zt.Forwards]: () => {
1189
- qe(t3, Be.First, { skipElements: [e3.relatedTarget] });
1190
- }, [zt.Backwards]: () => {
1191
- qe(t3, Be.Last, { skipElements: [e3.relatedTarget] });
1196
+ let t3 = _e(a2);
1197
+ t3 && Pe(d2.value, { [Vt.Forwards]: () => {
1198
+ Je(t3, Fe.First, { skipElements: [e3.relatedTarget] });
1199
+ }, [Vt.Backwards]: () => {
1200
+ Je(t3, Fe.Last, { skipElements: [e3.relatedTarget] });
1192
1201
  } });
1193
1202
  }
1194
1203
  let g2 = s(false);
1195
- function m2(e3) {
1204
+ function f2(e3) {
1196
1205
  "Tab" === e3.key && (g2.value = true, requestAnimationFrame(() => {
1197
1206
  g2.value = false;
1198
1207
  }));
1199
1208
  }
1200
- function f2(t3) {
1209
+ function v2(t3) {
1201
1210
  if (!r2.value)
1202
1211
  return;
1203
- let l3 = $t(e2.containers);
1204
- Te(a2) instanceof HTMLElement && l3.add(Te(a2));
1212
+ let l3 = Ht(e2.containers);
1213
+ _e(a2) instanceof HTMLElement && l3.add(_e(a2));
1205
1214
  let n3 = t3.relatedTarget;
1206
- n3 instanceof HTMLElement && "true" !== n3.dataset.headlessuiFocusGuard && (Yt(l3, n3) || (g2.value ? qe(Te(a2), Ee(d2.value, { [zt.Forwards]: () => Be.Next, [zt.Backwards]: () => Be.Previous }) | Be.WrapAround, { relativeTo: t3.target }) : t3.target instanceof HTMLElement && He(t3.target)));
1215
+ n3 instanceof HTMLElement && "true" !== n3.dataset.headlessuiFocusGuard && (qt(l3, n3) || (g2.value ? Je(_e(a2), Pe(d2.value, { [Vt.Forwards]: () => Fe.Next, [Vt.Backwards]: () => Fe.Previous }) | Fe.WrapAround, { relativeTo: t3.target }) : t3.target instanceof HTMLElement && qe(t3.target)));
1207
1216
  }
1208
1217
  return () => {
1209
- let n3 = { ref: a2, onKeydown: m2, onFocusout: f2 }, { features: o3, initialFocus: r3, containers: i3, ...s2 } = e2;
1210
- return x(w, [Boolean(4 & o3) && x(pt, { as: "button", type: "button", "data-headlessui-focus-guard": true, onFocus: c2, features: ct.Focusable }), ot({ ourProps: n3, theirProps: { ...t2, ...s2 }, slot: {}, attrs: t2, slots: l2, name: "FocusTrap" }), Boolean(4 & o3) && x(pt, { as: "button", type: "button", "data-headlessui-focus-guard": true, onFocus: c2, features: ct.Focusable })]);
1218
+ let n3 = { ref: a2, onKeydown: f2, onFocusout: v2 }, { features: o3, initialFocus: r3, containers: i3, ...s2 } = e2;
1219
+ return w(k, [Boolean(4 & o3) && w(mt, { as: "button", type: "button", "data-headlessui-focus-guard": true, onFocus: c2, features: ft.Focusable }), st({ ourProps: n3, theirProps: { ...t2, ...s2 }, slot: {}, attrs: t2, slots: l2, name: "FocusTrap" }), Boolean(4 & o3) && w(mt, { as: "button", type: "button", "data-headlessui-focus-guard": true, onFocus: c2, features: ft.Focusable })]);
1211
1220
  };
1212
- } }), { features: Vt });
1213
- function Yt(e2, t2) {
1221
+ } }), { features: Yt });
1222
+ function qt(e2, t2) {
1214
1223
  for (let l2 of e2)
1215
1224
  if (l2.contains(t2))
1216
1225
  return true;
1217
1226
  return false;
1218
1227
  }
1219
- function Ut() {
1228
+ function Wt() {
1220
1229
  let e2;
1221
1230
  return { before({ doc: t2 }) {
1222
1231
  var l2;
@@ -1227,13 +1236,13 @@ function Ut() {
1227
1236
  l2.style(n2, "paddingRight", `${o2}px`);
1228
1237
  } };
1229
1238
  }
1230
- function qt(e2) {
1239
+ function Kt(e2) {
1231
1240
  let t2 = {};
1232
1241
  for (let l2 of e2)
1233
1242
  Object.assign(t2, l2(t2));
1234
1243
  return t2;
1235
1244
  }
1236
- let Wt = function(e2, t2) {
1245
+ let Jt = function(e2, t2) {
1237
1246
  let l2 = e2(), n2 = /* @__PURE__ */ new Set();
1238
1247
  return { getSnapshot: () => l2, subscribe: (e3) => (n2.add(e3), () => n2.delete(e3)), dispatch(e3, ...a2) {
1239
1248
  let o2 = t2[e3].call(l2, ...a2);
@@ -1241,20 +1250,20 @@ let Wt = function(e2, t2) {
1241
1250
  } };
1242
1251
  }(() => /* @__PURE__ */ new Map(), { PUSH(e2, t2) {
1243
1252
  var l2;
1244
- let n2 = null != (l2 = this.get(e2)) ? l2 : { doc: e2, count: 0, d: kt(), meta: /* @__PURE__ */ new Set() };
1253
+ let n2 = null != (l2 = this.get(e2)) ? l2 : { doc: e2, count: 0, d: Me(), meta: /* @__PURE__ */ new Set() };
1245
1254
  return n2.count++, n2.meta.add(t2), this.set(e2, n2), this;
1246
1255
  }, POP(e2, t2) {
1247
1256
  let l2 = this.get(e2);
1248
1257
  return l2 && (l2.count--, l2.meta.delete(t2)), this;
1249
1258
  }, SCROLL_PREVENT({ doc: e2, d: t2, meta: l2 }) {
1250
- let n2 = { doc: e2, d: t2, meta: qt(l2) }, a2 = [We() ? { before({ doc: e3, d: t3, meta: l3 }) {
1259
+ let n2 = { doc: e2, d: t2, meta: Kt(l2) }, a2 = [Ge() ? { before({ doc: e3, d: t3, meta: l3 }) {
1251
1260
  function n3(e4) {
1252
1261
  return l3.containers.flatMap((e5) => e5()).some((t4) => t4.contains(e4));
1253
1262
  }
1254
1263
  t3.microTask(() => {
1255
1264
  var l4;
1256
1265
  if ("auto" !== window.getComputedStyle(e3.documentElement).scrollBehavior) {
1257
- let l5 = kt();
1266
+ let l5 = Me();
1258
1267
  l5.style(e3.documentElement, "scrollBehavior", "auto"), t3.add(() => t3.microTask(() => l5.dispose()));
1259
1268
  }
1260
1269
  let a3 = null != (l4 = window.scrollY) ? l4 : window.pageYOffset, o2 = null;
@@ -1278,7 +1287,9 @@ let Wt = function(e2, t2) {
1278
1287
  } else
1279
1288
  t3.style(e4.target, "touchAction", "none");
1280
1289
  }), t3.addEventListener(e3, "touchmove", (e4) => {
1281
- if (e4.target instanceof HTMLElement)
1290
+ if (e4.target instanceof HTMLElement) {
1291
+ if ("INPUT" === e4.target.tagName)
1292
+ return;
1282
1293
  if (n3(e4.target)) {
1283
1294
  let t4 = e4.target;
1284
1295
  for (; t4.parentElement && "" !== t4.dataset.headlessuiPortal && !(t4.scrollHeight > t4.clientHeight || t4.scrollWidth > t4.clientWidth); )
@@ -1286,13 +1297,14 @@ let Wt = function(e2, t2) {
1286
1297
  "" === t4.dataset.headlessuiPortal && e4.preventDefault();
1287
1298
  } else
1288
1299
  e4.preventDefault();
1300
+ }
1289
1301
  }, { passive: false }), t3.add(() => {
1290
1302
  var e4;
1291
1303
  let t4 = null != (e4 = window.scrollY) ? e4 : window.pageYOffset;
1292
1304
  a3 !== t4 && window.scrollTo(0, a3), o2 && o2.isConnected && (o2.scrollIntoView({ block: "nearest" }), o2 = null);
1293
1305
  });
1294
1306
  });
1295
- } } : {}, Ut(), { before({ doc: e3, d: t3 }) {
1307
+ } } : {}, Wt(), { before({ doc: e3, d: t3 }) {
1296
1308
  t3.style(e3.documentElement, "overflow", "hidden");
1297
1309
  } }];
1298
1310
  a2.forEach(({ before: e3 }) => null == e3 ? void 0 : e3(n2)), a2.forEach(({ after: e3 }) => null == e3 ? void 0 : e3(n2));
@@ -1301,115 +1313,115 @@ let Wt = function(e2, t2) {
1301
1313
  }, TEARDOWN({ doc: e2 }) {
1302
1314
  this.delete(e2);
1303
1315
  } });
1304
- function Kt(e2, t2, l2) {
1316
+ function Gt(e2, t2, l2) {
1305
1317
  let n2 = function(e3) {
1306
1318
  let t3 = c(e3.getSnapshot());
1307
- return O(e3.subscribe(() => {
1319
+ return m(e3.subscribe(() => {
1308
1320
  t3.value = e3.getSnapshot();
1309
1321
  })), t3;
1310
- }(Wt), a2 = u(() => {
1322
+ }(Jt), a2 = u(() => {
1311
1323
  let t3 = e2.value ? n2.value.get(e2.value) : void 0;
1312
1324
  return !!t3 && t3.count > 0;
1313
1325
  });
1314
1326
  return p([e2, t2], ([e3, t3], [n3], a3) => {
1315
1327
  if (!e3 || !t3)
1316
1328
  return;
1317
- Wt.dispatch("PUSH", e3, l2);
1329
+ Jt.dispatch("PUSH", e3, l2);
1318
1330
  let o2 = false;
1319
1331
  a3(() => {
1320
- o2 || (Wt.dispatch("POP", null != n3 ? n3 : e3, l2), o2 = true);
1332
+ o2 || (Jt.dispatch("POP", null != n3 ? n3 : e3, l2), o2 = true);
1321
1333
  });
1322
1334
  }, { immediate: true }), a2;
1323
1335
  }
1324
- Wt.subscribe(() => {
1325
- let e2 = Wt.getSnapshot(), t2 = /* @__PURE__ */ new Map();
1336
+ Jt.subscribe(() => {
1337
+ let e2 = Jt.getSnapshot(), t2 = /* @__PURE__ */ new Map();
1326
1338
  for (let [l2] of e2)
1327
1339
  t2.set(l2, l2.documentElement.style.overflow);
1328
1340
  for (let l2 of e2.values()) {
1329
1341
  let e3 = "hidden" === t2.get(l2.doc), n2 = 0 !== l2.count;
1330
- (n2 && !e3 || !n2 && e3) && Wt.dispatch(l2.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", l2), 0 === l2.count && Wt.dispatch("TEARDOWN", l2);
1342
+ (n2 && !e3 || !n2 && e3) && Jt.dispatch(l2.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", l2), 0 === l2.count && Jt.dispatch("TEARDOWN", l2);
1331
1343
  }
1332
1344
  });
1333
- let Jt = /* @__PURE__ */ new Map(), Gt = /* @__PURE__ */ new Map();
1334
- function Zt(e2, t2 = s(true)) {
1335
- h((l2) => {
1345
+ let Zt = /* @__PURE__ */ new Map(), Xt = /* @__PURE__ */ new Map();
1346
+ function Qt(e2, t2 = s(true)) {
1347
+ b((l2) => {
1336
1348
  var n2;
1337
1349
  if (!t2.value)
1338
1350
  return;
1339
- let a2 = Te(e2);
1351
+ let a2 = _e(e2);
1340
1352
  if (!a2)
1341
1353
  return;
1342
1354
  l2(function() {
1343
1355
  var e3;
1344
1356
  if (!a2)
1345
1357
  return;
1346
- let t3 = null != (e3 = Gt.get(a2)) ? e3 : 1;
1347
- if (1 === t3 ? Gt.delete(a2) : Gt.set(a2, t3 - 1), 1 !== t3)
1358
+ let t3 = null != (e3 = Xt.get(a2)) ? e3 : 1;
1359
+ if (1 === t3 ? Xt.delete(a2) : Xt.set(a2, t3 - 1), 1 !== t3)
1348
1360
  return;
1349
- let l3 = Jt.get(a2);
1350
- l3 && (null === l3["aria-hidden"] ? a2.removeAttribute("aria-hidden") : a2.setAttribute("aria-hidden", l3["aria-hidden"]), a2.inert = l3.inert, Jt.delete(a2));
1361
+ let l3 = Zt.get(a2);
1362
+ l3 && (null === l3["aria-hidden"] ? a2.removeAttribute("aria-hidden") : a2.setAttribute("aria-hidden", l3["aria-hidden"]), a2.inert = l3.inert, Zt.delete(a2));
1351
1363
  });
1352
- let o2 = null != (n2 = Gt.get(a2)) ? n2 : 0;
1353
- Gt.set(a2, o2 + 1), 0 === o2 && (Jt.set(a2, { "aria-hidden": a2.getAttribute("aria-hidden"), inert: a2.inert }), a2.setAttribute("aria-hidden", "true"), a2.inert = true);
1364
+ let o2 = null != (n2 = Xt.get(a2)) ? n2 : 0;
1365
+ Xt.set(a2, o2 + 1), 0 === o2 && (Zt.set(a2, { "aria-hidden": a2.getAttribute("aria-hidden"), inert: a2.inert }), a2.setAttribute("aria-hidden", "true"), a2.inert = true);
1354
1366
  });
1355
1367
  }
1356
- let Xt = Symbol("ForcePortalRootContext");
1357
- function Qt() {
1358
- return f(Xt, false);
1368
+ let el = Symbol("ForcePortalRootContext");
1369
+ function tl() {
1370
+ return v(el, false);
1359
1371
  }
1360
- let el = k({ name: "ForcePortalRoot", props: { as: { type: [Object, String], default: "template" }, force: { type: Boolean, default: false } }, setup: (e2, { slots: t2, attrs: l2 }) => (S(Xt, e2.force), () => {
1372
+ let ll = S({ name: "ForcePortalRoot", props: { as: { type: [Object, String], default: "template" }, force: { type: Boolean, default: false } }, setup: (e2, { slots: t2, attrs: l2 }) => (C(el, e2.force), () => {
1361
1373
  let { force: n2, ...a2 } = e2;
1362
- return ot({ theirProps: a2, ourProps: {}, slot: {}, slots: t2, attrs: l2, name: "ForcePortalRoot" });
1363
- }) }), tl = Symbol("StackContext");
1364
- var ll = ((e2) => (e2[e2.Add = 0] = "Add", e2[e2.Remove = 1] = "Remove", e2))(ll || {});
1365
- function nl({ type: e2, enabled: t2, element: l2, onUpdate: n2 }) {
1366
- let a2 = f(tl, () => {
1374
+ return st({ theirProps: a2, ourProps: {}, slot: {}, slots: t2, attrs: l2, name: "ForcePortalRoot" });
1375
+ }) }), nl = Symbol("StackContext");
1376
+ var al = ((e2) => (e2[e2.Add = 0] = "Add", e2[e2.Remove = 1] = "Remove", e2))(al || {});
1377
+ function ol({ type: e2, enabled: t2, element: l2, onUpdate: n2 }) {
1378
+ let a2 = v(nl, () => {
1367
1379
  });
1368
1380
  function o2(...e3) {
1369
1381
  null == n2 || n2(...e3), a2(...e3);
1370
1382
  }
1371
- b(() => {
1383
+ y(() => {
1372
1384
  p(t2, (t3, n3) => {
1373
1385
  t3 ? o2(0, e2, l2) : true === n3 && o2(1, e2, l2);
1374
1386
  }, { immediate: true, flush: "sync" });
1375
- }), O(() => {
1387
+ }), m(() => {
1376
1388
  t2.value && o2(1, e2, l2);
1377
- }), S(tl, o2);
1389
+ }), C(nl, o2);
1378
1390
  }
1379
- let al = Symbol("DescriptionContext");
1380
- function ol({ slot: e2 = s({}), name: t2 = "Description", props: l2 = {} } = {}) {
1391
+ let rl = Symbol("DescriptionContext");
1392
+ function il({ slot: e2 = s({}), name: t2 = "Description", props: l2 = {} } = {}) {
1381
1393
  let n2 = s([]);
1382
- return S(al, { register: function(e3) {
1394
+ return C(rl, { register: function(e3) {
1383
1395
  return n2.value.push(e3), () => {
1384
1396
  let t3 = n2.value.indexOf(e3);
1385
1397
  -1 !== t3 && n2.value.splice(t3, 1);
1386
1398
  };
1387
1399
  }, slot: e2, name: t2, props: l2 }), u(() => n2.value.length > 0 ? n2.value.join(" ") : void 0);
1388
1400
  }
1389
- k({ name: "Description", props: { as: { type: [Object, String], default: "p" }, id: { type: String, default: null } }, setup(e2, { attrs: t2, slots: l2 }) {
1401
+ S({ name: "Description", props: { as: { type: [Object, String], default: "p" }, id: { type: String, default: null } }, setup(e2, { attrs: t2, slots: l2 }) {
1390
1402
  var n2;
1391
- let a2 = null != (n2 = e2.id) ? n2 : `headlessui-description-${De()}`, o2 = function() {
1392
- let e3 = f(al, null);
1403
+ let a2 = null != (n2 = e2.id) ? n2 : `headlessui-description-${Ie()}`, o2 = function() {
1404
+ let e3 = v(rl, null);
1393
1405
  if (null === e3)
1394
1406
  throw new Error("Missing parent");
1395
1407
  return e3;
1396
1408
  }();
1397
- return b(() => O(o2.register(a2))), () => {
1409
+ return y(() => m(o2.register(a2))), () => {
1398
1410
  let { name: n3 = "Description", slot: r2 = s({}), props: i2 = {} } = o2, { ...u2 } = e2, c2 = { ...Object.entries(i2).reduce((e3, [t3, l3]) => Object.assign(e3, { [t3]: d(l3) }), {}), id: a2 };
1399
- return ot({ ourProps: c2, theirProps: u2, slot: r2.value, attrs: t2, slots: l2, name: n3 });
1411
+ return st({ ourProps: c2, theirProps: u2, slot: r2.value, attrs: t2, slots: l2, name: n3 });
1400
1412
  };
1401
1413
  } });
1402
- const rl = /* @__PURE__ */ new WeakMap();
1403
- function il(e2, t2) {
1414
+ const sl = /* @__PURE__ */ new WeakMap();
1415
+ function ul(e2, t2) {
1404
1416
  let l2 = t2(function(e3) {
1405
1417
  var t3;
1406
- return null != (t3 = rl.get(e3)) ? t3 : 0;
1418
+ return null != (t3 = sl.get(e3)) ? t3 : 0;
1407
1419
  }(e2));
1408
- return l2 <= 0 ? rl.delete(e2) : rl.set(e2, l2), l2;
1420
+ return l2 <= 0 ? sl.delete(e2) : sl.set(e2, l2), l2;
1409
1421
  }
1410
- let sl = k({ name: "Portal", props: { as: { type: [Object, String], default: "div" } }, setup(e2, { slots: t2, attrs: l2 }) {
1411
- let n2 = s(null), a2 = u(() => je(n2)), o2 = Qt(), r2 = f(dl, null), i2 = s(true === o2 || null == r2 ? function(e3) {
1412
- let t3 = je(e3);
1422
+ let dl = S({ name: "Portal", props: { as: { type: [Object, String], default: "div" } }, setup(e2, { slots: t2, attrs: l2 }) {
1423
+ let n2 = s(null), a2 = u(() => Ae(n2)), o2 = tl(), r2 = v(pl, null), i2 = s(true === o2 || null == r2 ? function(e3) {
1424
+ let t3 = Ae(e3);
1413
1425
  if (!t3) {
1414
1426
  if (null === e3)
1415
1427
  return null;
@@ -1421,60 +1433,60 @@ let sl = k({ name: "Portal", props: { as: { type: [Object, String], default: "di
1421
1433
  let n3 = t3.createElement("div");
1422
1434
  return n3.setAttribute("id", "headlessui-portal-root"), t3.body.appendChild(n3);
1423
1435
  }(n2.value) : r2.resolveTarget());
1424
- i2.value && il(i2.value, (e3) => e3 + 1);
1436
+ i2.value && ul(i2.value, (e3) => e3 + 1);
1425
1437
  let d2 = s(false);
1426
- b(() => {
1438
+ y(() => {
1427
1439
  d2.value = true;
1428
- }), h(() => {
1440
+ }), b(() => {
1429
1441
  o2 || null != r2 && (i2.value = r2.resolveTarget());
1430
1442
  });
1431
- let c2 = f(ul, null), g2 = false, m2 = D();
1443
+ let c2 = v(cl, null), g2 = false, f2 = D();
1432
1444
  return p(n2, () => {
1433
1445
  if (g2 || !c2)
1434
1446
  return;
1435
- let e3 = Te(n2);
1436
- e3 && (O(c2.register(e3), m2), g2 = true);
1437
- }), O(() => {
1447
+ let e3 = _e(n2);
1448
+ e3 && (m(c2.register(e3), f2), g2 = true);
1449
+ }), m(() => {
1438
1450
  var e3, t3;
1439
1451
  let l3 = null == (e3 = a2.value) ? void 0 : e3.getElementById("headlessui-portal-root");
1440
- !l3 || i2.value !== l3 || il(i2.value, (e4) => e4 - 1) || i2.value.children.length > 0 || null == (t3 = i2.value.parentElement) || t3.removeChild(i2.value);
1452
+ !l3 || i2.value !== l3 || ul(i2.value, (e4) => e4 - 1) || i2.value.children.length > 0 || null == (t3 = i2.value.parentElement) || t3.removeChild(i2.value);
1441
1453
  }), () => {
1442
1454
  if (!d2.value || null === i2.value)
1443
1455
  return null;
1444
1456
  let a3 = { ref: n2, "data-headlessui-portal": "" };
1445
- return x(T, { to: i2.value }, ot({ ourProps: a3, theirProps: e2, slot: {}, attrs: l2, slots: t2, name: "Portal" }));
1457
+ return w(T, { to: i2.value }, st({ ourProps: a3, theirProps: e2, slot: {}, attrs: l2, slots: t2, name: "Portal" }));
1446
1458
  };
1447
- } }), ul = Symbol("PortalParentContext");
1448
- let dl = Symbol("PortalGroupContext"), cl = k({ name: "PortalGroup", props: { as: { type: [Object, String], default: "template" }, target: { type: Object, default: null } }, setup(e2, { attrs: t2, slots: l2 }) {
1449
- let n2 = C({ resolveTarget: () => e2.target });
1450
- return S(dl, n2), () => {
1459
+ } }), cl = Symbol("PortalParentContext");
1460
+ let pl = Symbol("PortalGroupContext"), gl = S({ name: "PortalGroup", props: { as: { type: [Object, String], default: "template" }, target: { type: Object, default: null } }, setup(e2, { attrs: t2, slots: l2 }) {
1461
+ let n2 = O({ resolveTarget: () => e2.target });
1462
+ return C(pl, n2), () => {
1451
1463
  let { target: n3, ...a2 } = e2;
1452
- return ot({ theirProps: a2, ourProps: {}, slot: {}, attrs: t2, slots: l2, name: "PortalGroup" });
1464
+ return st({ theirProps: a2, ourProps: {}, slot: {}, attrs: t2, slots: l2, name: "PortalGroup" });
1453
1465
  };
1454
1466
  } });
1455
- var pl = ((e2) => (e2[e2.Open = 0] = "Open", e2[e2.Closed = 1] = "Closed", e2))(pl || {});
1456
- let gl = Symbol("DialogContext");
1457
- function ml(e2) {
1458
- let t2 = f(gl, null);
1467
+ var fl = ((e2) => (e2[e2.Open = 0] = "Open", e2[e2.Closed = 1] = "Closed", e2))(fl || {});
1468
+ let ml = Symbol("DialogContext");
1469
+ function vl(e2) {
1470
+ let t2 = v(ml, null);
1459
1471
  if (null === t2) {
1460
1472
  let t3 = new Error(`<${e2} /> is missing a parent <Dialog /> component.`);
1461
- throw Error.captureStackTrace && Error.captureStackTrace(t3, ml), t3;
1473
+ throw Error.captureStackTrace && Error.captureStackTrace(t3, vl), t3;
1462
1474
  }
1463
1475
  return t2;
1464
1476
  }
1465
- let fl = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", vl = k({ name: "Dialog", inheritAttrs: false, props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: false }, unmount: { type: Boolean, default: true }, open: { type: [Boolean, String], default: fl }, initialFocus: { type: Object, default: null }, id: { type: String, default: null }, role: { type: String, default: "dialog" } }, emits: { close: (e2) => true }, setup(e2, { emit: t2, attrs: l2, slots: n2, expose: a2 }) {
1477
+ let hl = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", bl = S({ name: "Dialog", inheritAttrs: false, props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: false }, unmount: { type: Boolean, default: true }, open: { type: [Boolean, String], default: hl }, initialFocus: { type: Object, default: null }, id: { type: String, default: null }, role: { type: String, default: "dialog" } }, emits: { close: (e2) => true }, setup(e2, { emit: t2, attrs: l2, slots: n2, expose: a2 }) {
1466
1478
  var o2, r2;
1467
- let i2 = null != (o2 = e2.id) ? o2 : `headlessui-dialog-${De()}`, d2 = s(false);
1468
- b(() => {
1479
+ let i2 = null != (o2 = e2.id) ? o2 : `headlessui-dialog-${Ie()}`, d2 = s(false);
1480
+ y(() => {
1469
1481
  d2.value = true;
1470
1482
  });
1471
- let c2 = false, p2 = u(() => "dialog" === e2.role || "alertdialog" === e2.role ? e2.role : (c2 || (c2 = true, console.warn(`Invalid role [${p2}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog")), g2 = s(0), m2 = ft(), y2 = u(() => e2.open === fl && null !== m2 ? (m2.value & mt.Open) === mt.Open : e2.open), w2 = s(null), C2 = u(() => je(w2));
1472
- if (a2({ el: w2, $el: w2 }), e2.open === fl && null === m2)
1483
+ let c2 = false, p2 = u(() => "dialog" === e2.role || "alertdialog" === e2.role ? e2.role : (c2 || (c2 = true, console.warn(`Invalid role [${p2}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog")), g2 = s(0), f2 = bt(), m2 = u(() => e2.open === hl && null !== f2 ? (f2.value & ht.Open) === ht.Open : e2.open), x2 = s(null), k2 = u(() => Ae(x2));
1484
+ if (a2({ el: x2, $el: x2 }), e2.open === hl && null === f2)
1473
1485
  throw new Error("You forgot to provide an `open` prop to the `Dialog`.");
1474
- if ("boolean" != typeof y2.value)
1475
- throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${y2.value === fl ? void 0 : e2.open}`);
1476
- let O2 = u(() => d2.value && y2.value ? 0 : 1), M2 = u(() => 0 === O2.value), D2 = u(() => g2.value > 1), T2 = null !== f(gl, null), [E2, I2] = function() {
1477
- let e3 = f(ul, null), t3 = s([]);
1486
+ if ("boolean" != typeof m2.value)
1487
+ throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${m2.value === hl ? void 0 : e2.open}`);
1488
+ let O2 = u(() => d2.value && m2.value ? 0 : 1), M2 = u(() => 0 === O2.value), D2 = u(() => g2.value > 1), T2 = null !== v(ml, null), [E2, I2] = function() {
1489
+ let e3 = v(cl, null), t3 = s([]);
1478
1490
  function l3(l4) {
1479
1491
  let n4 = t3.value.indexOf(l4);
1480
1492
  -1 !== n4 && t3.value.splice(n4, 1), e3 && e3.unregister(l4);
@@ -1482,12 +1494,12 @@ let fl = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", vl = k({ name: "Dialog", inheri
1482
1494
  let n3 = { register: function(n4) {
1483
1495
  return t3.value.push(n4), e3 && e3.register(n4), () => l3(n4);
1484
1496
  }, unregister: l3, portals: t3 };
1485
- return [t3, k({ name: "PortalWrapper", setup: (e4, { slots: t4 }) => (S(ul, n3), () => {
1497
+ return [t3, S({ name: "PortalWrapper", setup: (e4, { slots: t4 }) => (C(cl, n3), () => {
1486
1498
  var e5;
1487
1499
  return null == (e5 = t4.default) ? void 0 : e5.call(t4);
1488
1500
  }) })];
1489
1501
  }(), { resolveContainers: _2, mainTreeNodeRef: P2, MainTreeNode: j2 } = function({ defaultContainers: e3 = [], portals: t3, mainTreeNodeRef: l3 } = {}) {
1490
- let n3 = s(null), a3 = je(n3);
1502
+ let n3 = s(null), a3 = Ae(n3);
1491
1503
  function o3() {
1492
1504
  var l4, o4, r3;
1493
1505
  let i3 = [];
@@ -1497,48 +1509,48 @@ let fl = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", vl = k({ name: "Dialog", inheri
1497
1509
  for (let e4 of t3.value)
1498
1510
  i3.push(e4);
1499
1511
  for (let e4 of null != (l4 = null == a3 ? void 0 : a3.querySelectorAll("html > *, body > *")) ? l4 : [])
1500
- e4 !== document.body && e4 !== document.head && e4 instanceof HTMLElement && "headlessui-portal-root" !== e4.id && (e4.contains(Te(n3)) || e4.contains(null == (r3 = null == (o4 = Te(n3)) ? void 0 : o4.getRootNode()) ? void 0 : r3.host) || i3.some((t4) => e4.contains(t4)) || i3.push(e4));
1512
+ e4 !== document.body && e4 !== document.head && e4 instanceof HTMLElement && "headlessui-portal-root" !== e4.id && (e4.contains(_e(n3)) || e4.contains(null == (r3 = null == (o4 = _e(n3)) ? void 0 : o4.getRootNode()) ? void 0 : r3.host) || i3.some((t4) => e4.contains(t4)) || i3.push(e4));
1501
1513
  return i3;
1502
1514
  }
1503
- return { resolveContainers: o3, contains: (e4) => o3().some((t4) => t4.contains(e4)), mainTreeNodeRef: n3, MainTreeNode: () => null != l3 ? null : x(pt, { features: ct.Hidden, ref: n3 }) };
1515
+ return { resolveContainers: o3, contains: (e4) => o3().some((t4) => t4.contains(e4)), mainTreeNodeRef: n3, MainTreeNode: () => null != l3 ? null : w(mt, { features: ft.Hidden, ref: n3 }) };
1504
1516
  }({ portals: E2, defaultContainers: [u(() => {
1505
1517
  var e3;
1506
- return null != (e3 = V2.panelRef.value) ? e3 : w2.value;
1507
- })] }), R2 = u(() => D2.value ? "parent" : "leaf"), B2 = u(() => null !== m2 && (m2.value & mt.Closing) === mt.Closing), A2 = u(() => !T2 && !B2.value && M2.value), L2 = u(() => {
1518
+ return null != (e3 = V2.panelRef.value) ? e3 : x2.value;
1519
+ })] }), R2 = u(() => D2.value ? "parent" : "leaf"), B2 = u(() => null !== f2 && (f2.value & ht.Closing) === ht.Closing), A2 = u(() => !T2 && !B2.value && M2.value), L2 = u(() => {
1508
1520
  var e3, t3, l3;
1509
- return null != (l3 = Array.from(null != (t3 = null == (e3 = C2.value) ? void 0 : e3.querySelectorAll("body > *")) ? t3 : []).find((e4) => "headlessui-portal-root" !== e4.id && (e4.contains(Te(P2)) && e4 instanceof HTMLElement))) ? l3 : null;
1521
+ 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(_e(P2)) && e4 instanceof HTMLElement))) ? l3 : null;
1510
1522
  });
1511
- Zt(L2, A2);
1523
+ Qt(L2, A2);
1512
1524
  let F2 = u(() => !!D2.value || M2.value), N2 = u(() => {
1513
1525
  var e3, t3, l3;
1514
- return null != (l3 = Array.from(null != (t3 = null == (e3 = C2.value) ? void 0 : e3.querySelectorAll("[data-headlessui-portal]")) ? t3 : []).find((e4) => e4.contains(Te(P2)) && e4 instanceof HTMLElement)) ? l3 : null;
1526
+ return null != (l3 = Array.from(null != (t3 = null == (e3 = k2.value) ? void 0 : e3.querySelectorAll("[data-headlessui-portal]")) ? t3 : []).find((e4) => e4.contains(_e(P2)) && e4 instanceof HTMLElement)) ? l3 : null;
1515
1527
  });
1516
- Zt(N2, F2), nl({ type: "Dialog", enabled: u(() => 0 === O2.value), element: w2, onUpdate: (e3, t3) => {
1528
+ Qt(N2, F2), ol({ type: "Dialog", enabled: u(() => 0 === O2.value), element: x2, onUpdate: (e3, t3) => {
1517
1529
  if ("Dialog" === t3)
1518
- return Ee(e3, { [ll.Add]: () => g2.value += 1, [ll.Remove]: () => g2.value -= 1 });
1530
+ return Pe(e3, { [al.Add]: () => g2.value += 1, [al.Remove]: () => g2.value -= 1 });
1519
1531
  } });
1520
- let z2 = ol({ name: "DialogDescription", slot: u(() => ({ open: y2.value })) }), $2 = s(null), V2 = { titleId: $2, panelRef: s(null), dialogState: O2, setTitleId(e3) {
1532
+ let z2 = il({ name: "DialogDescription", slot: u(() => ({ open: m2.value })) }), $2 = s(null), V2 = { titleId: $2, panelRef: s(null), dialogState: O2, setTitleId(e3) {
1521
1533
  $2.value !== e3 && ($2.value = e3);
1522
1534
  }, close() {
1523
1535
  t2("close", false);
1524
1536
  } };
1525
- S(gl, V2);
1537
+ C(ml, V2);
1526
1538
  let H2 = u(() => !(!M2.value || D2.value));
1527
- Ze(_2, (e3, t3) => {
1528
- e3.preventDefault(), V2.close(), v(() => null == t3 ? void 0 : t3.focus());
1539
+ et(_2, (e3, t3) => {
1540
+ e3.preventDefault(), V2.close(), h(() => null == t3 ? void 0 : t3.focus());
1529
1541
  }, H2);
1530
1542
  let Y2 = u(() => !(D2.value || 0 !== O2.value));
1531
- Nt(null == (r2 = C2.value) ? void 0 : r2.defaultView, "keydown", (e3) => {
1532
- Y2.value && (e3.defaultPrevented || e3.key === ht.Escape && (e3.preventDefault(), e3.stopPropagation(), V2.close()));
1543
+ $t(null == (r2 = k2.value) ? void 0 : r2.defaultView, "keydown", (e3) => {
1544
+ Y2.value && (e3.defaultPrevented || e3.key === xt.Escape && (e3.preventDefault(), e3.stopPropagation(), V2.close()));
1533
1545
  });
1534
1546
  let U2 = u(() => !(B2.value || 0 !== O2.value || T2));
1535
- return Kt(C2, U2, (e3) => {
1547
+ return Gt(k2, U2, (e3) => {
1536
1548
  var t3;
1537
1549
  return { containers: [...null != (t3 = e3.containers) ? t3 : [], _2] };
1538
- }), h((e3) => {
1550
+ }), b((e3) => {
1539
1551
  if (0 !== O2.value)
1540
1552
  return;
1541
- let t3 = Te(w2);
1553
+ let t3 = _e(x2);
1542
1554
  if (!t3)
1543
1555
  return;
1544
1556
  let l3 = new ResizeObserver((e4) => {
@@ -1549,132 +1561,132 @@ let fl = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", vl = k({ name: "Dialog", inheri
1549
1561
  });
1550
1562
  l3.observe(t3), e3(() => l3.disconnect());
1551
1563
  }), () => {
1552
- let { open: t3, initialFocus: a3, ...o3 } = e2, r3 = { ...l2, ref: w2, id: i2, role: p2.value, "aria-modal": 0 === O2.value || void 0, "aria-labelledby": $2.value, "aria-describedby": z2.value }, s2 = { open: 0 === O2.value };
1553
- return x(el, { force: true }, () => [x(sl, () => x(cl, { target: w2.value }, () => x(el, { force: false }, () => x(Ht, { initialFocus: a3, containers: _2, features: M2.value ? Ee(R2.value, { parent: Ht.features.RestoreFocus, leaf: Ht.features.All & ~Ht.features.FocusLock }) : Ht.features.None }, () => x(I2, {}, () => ot({ ourProps: r3, theirProps: { ...o3, ...l2 }, slot: s2, attrs: l2, slots: n2, visible: 0 === O2.value, features: nt.RenderStrategy | nt.Static, name: "Dialog" })))))), x(j2)]);
1564
+ let { open: t3, initialFocus: a3, ...o3 } = e2, r3 = { ...l2, ref: x2, id: i2, role: p2.value, "aria-modal": 0 === O2.value || void 0, "aria-labelledby": $2.value, "aria-describedby": z2.value }, s2 = { open: 0 === O2.value };
1565
+ return w(ll, { force: true }, () => [w(dl, () => w(gl, { target: x2.value }, () => w(ll, { force: false }, () => w(Ut, { initialFocus: a3, containers: _2, features: M2.value ? Pe(R2.value, { parent: Ut.features.RestoreFocus, leaf: Ut.features.All & ~Ut.features.FocusLock }) : Ut.features.None }, () => w(I2, {}, () => st({ ourProps: r3, theirProps: { ...o3, ...l2 }, slot: s2, attrs: l2, slots: n2, visible: 0 === O2.value, features: rt.RenderStrategy | rt.Static, name: "Dialog" })))))), w(j2)]);
1554
1566
  };
1555
1567
  } });
1556
- k({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, setup(e2, { attrs: t2, slots: l2 }) {
1568
+ S({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, setup(e2, { attrs: t2, slots: l2 }) {
1557
1569
  var n2;
1558
- let a2 = null != (n2 = e2.id) ? n2 : `headlessui-dialog-overlay-${De()}`, o2 = ml("DialogOverlay");
1570
+ let a2 = null != (n2 = e2.id) ? n2 : `headlessui-dialog-overlay-${Ie()}`, o2 = vl("DialogOverlay");
1559
1571
  function r2(e3) {
1560
1572
  e3.target === e3.currentTarget && (e3.preventDefault(), e3.stopPropagation(), o2.close());
1561
1573
  }
1562
1574
  return () => {
1563
1575
  let { ...n3 } = e2;
1564
- return ot({ ourProps: { id: a2, "aria-hidden": true, onClick: r2 }, theirProps: n3, slot: { open: 0 === o2.dialogState.value }, attrs: t2, slots: l2, name: "DialogOverlay" });
1576
+ return st({ ourProps: { id: a2, "aria-hidden": true, onClick: r2 }, theirProps: n3, slot: { open: 0 === o2.dialogState.value }, attrs: t2, slots: l2, name: "DialogOverlay" });
1565
1577
  };
1566
- } }), k({ name: "DialogBackdrop", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, inheritAttrs: false, setup(e2, { attrs: t2, slots: l2, expose: n2 }) {
1578
+ } }), S({ name: "DialogBackdrop", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, inheritAttrs: false, setup(e2, { attrs: t2, slots: l2, expose: n2 }) {
1567
1579
  var a2;
1568
- let o2 = null != (a2 = e2.id) ? a2 : `headlessui-dialog-backdrop-${De()}`, r2 = ml("DialogBackdrop"), i2 = s(null);
1569
- return n2({ el: i2, $el: i2 }), b(() => {
1580
+ let o2 = null != (a2 = e2.id) ? a2 : `headlessui-dialog-backdrop-${Ie()}`, r2 = vl("DialogBackdrop"), i2 = s(null);
1581
+ return n2({ el: i2, $el: i2 }), y(() => {
1570
1582
  if (null === r2.panelRef.value)
1571
1583
  throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.");
1572
1584
  }), () => {
1573
1585
  let { ...n3 } = e2, a3 = { id: o2, ref: i2, "aria-hidden": true };
1574
- return x(el, { force: true }, () => x(sl, () => ot({ ourProps: a3, theirProps: { ...t2, ...n3 }, slot: { open: 0 === r2.dialogState.value }, attrs: t2, slots: l2, name: "DialogBackdrop" })));
1586
+ return w(ll, { force: true }, () => w(dl, () => st({ ourProps: a3, theirProps: { ...t2, ...n3 }, slot: { open: 0 === r2.dialogState.value }, attrs: t2, slots: l2, name: "DialogBackdrop" })));
1575
1587
  };
1576
1588
  } });
1577
- let hl = k({ name: "DialogPanel", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, setup(e2, { attrs: t2, slots: l2, expose: n2 }) {
1589
+ let yl = S({ name: "DialogPanel", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, setup(e2, { attrs: t2, slots: l2, expose: n2 }) {
1578
1590
  var a2;
1579
- let o2 = null != (a2 = e2.id) ? a2 : `headlessui-dialog-panel-${De()}`, r2 = ml("DialogPanel");
1591
+ let o2 = null != (a2 = e2.id) ? a2 : `headlessui-dialog-panel-${Ie()}`, r2 = vl("DialogPanel");
1580
1592
  function i2(e3) {
1581
1593
  e3.stopPropagation();
1582
1594
  }
1583
1595
  return n2({ el: r2.panelRef, $el: r2.panelRef }), () => {
1584
1596
  let { ...n3 } = e2;
1585
- return ot({ ourProps: { id: o2, ref: r2.panelRef, onClick: i2 }, theirProps: n3, slot: { open: 0 === r2.dialogState.value }, attrs: t2, slots: l2, name: "DialogPanel" });
1597
+ return st({ ourProps: { id: o2, ref: r2.panelRef, onClick: i2 }, theirProps: n3, slot: { open: 0 === r2.dialogState.value }, attrs: t2, slots: l2, name: "DialogPanel" });
1586
1598
  };
1587
- } }), bl = k({ name: "DialogTitle", props: { as: { type: [Object, String], default: "h2" }, id: { type: String, default: null } }, setup(e2, { attrs: t2, slots: l2 }) {
1599
+ } }), xl = S({ name: "DialogTitle", props: { as: { type: [Object, String], default: "h2" }, id: { type: String, default: null } }, setup(e2, { attrs: t2, slots: l2 }) {
1588
1600
  var n2;
1589
- let a2 = null != (n2 = e2.id) ? n2 : `headlessui-dialog-title-${De()}`, o2 = ml("DialogTitle");
1590
- return b(() => {
1591
- o2.setTitleId(a2), O(() => o2.setTitleId(null));
1601
+ let a2 = null != (n2 = e2.id) ? n2 : `headlessui-dialog-title-${Ie()}`, o2 = vl("DialogTitle");
1602
+ return y(() => {
1603
+ o2.setTitleId(a2), m(() => o2.setTitleId(null));
1592
1604
  }), () => {
1593
1605
  let { ...n3 } = e2;
1594
- return ot({ ourProps: { id: a2 }, theirProps: n3, slot: { open: 0 === o2.dialogState.value }, attrs: t2, slots: l2, name: "DialogTitle" });
1606
+ return st({ ourProps: { id: a2 }, theirProps: n3, slot: { open: 0 === o2.dialogState.value }, attrs: t2, slots: l2, name: "DialogTitle" });
1595
1607
  };
1596
1608
  } });
1597
- var yl = ((e2) => (e2[e2.Open = 0] = "Open", e2[e2.Closed = 1] = "Closed", e2))(yl || {});
1598
- let xl = Symbol("DisclosureContext");
1599
- function wl(e2) {
1600
- let t2 = f(xl, null);
1609
+ var wl = ((e2) => (e2[e2.Open = 0] = "Open", e2[e2.Closed = 1] = "Closed", e2))(wl || {});
1610
+ let kl = Symbol("DisclosureContext");
1611
+ function Sl(e2) {
1612
+ let t2 = v(kl, null);
1601
1613
  if (null === t2) {
1602
1614
  let t3 = new Error(`<${e2} /> is missing a parent <Disclosure /> component.`);
1603
- throw Error.captureStackTrace && Error.captureStackTrace(t3, wl), t3;
1615
+ throw Error.captureStackTrace && Error.captureStackTrace(t3, Sl), t3;
1604
1616
  }
1605
1617
  return t2;
1606
1618
  }
1607
- let kl = Symbol("DisclosurePanelContext");
1608
- let Sl = k({ name: "Disclosure", props: { as: { type: [Object, String], default: "template" }, defaultOpen: { type: [Boolean], default: false } }, setup(e2, { slots: t2, attrs: l2 }) {
1609
- let n2 = s(e2.defaultOpen ? 0 : 1), a2 = s(null), o2 = s(null), r2 = { buttonId: s(`headlessui-disclosure-button-${De()}`), panelId: s(`headlessui-disclosure-panel-${De()}`), disclosureState: n2, panel: a2, button: o2, toggleDisclosure() {
1610
- n2.value = Ee(n2.value, { 0: 1, 1: 0 });
1619
+ let Cl = Symbol("DisclosurePanelContext");
1620
+ let Ol = S({ name: "Disclosure", props: { as: { type: [Object, String], default: "template" }, defaultOpen: { type: [Boolean], default: false } }, setup(e2, { slots: t2, attrs: l2 }) {
1621
+ let n2 = s(e2.defaultOpen ? 0 : 1), a2 = s(null), o2 = s(null), r2 = { buttonId: s(`headlessui-disclosure-button-${Ie()}`), panelId: s(`headlessui-disclosure-panel-${Ie()}`), disclosureState: n2, panel: a2, button: o2, toggleDisclosure() {
1622
+ n2.value = Pe(n2.value, { 0: 1, 1: 0 });
1611
1623
  }, closeDisclosure() {
1612
1624
  1 !== n2.value && (n2.value = 1);
1613
1625
  }, close(e3) {
1614
1626
  r2.closeDisclosure();
1615
- let t3 = e3 ? e3 instanceof HTMLElement ? e3 : e3.value instanceof HTMLElement ? Te(e3) : Te(r2.button) : Te(r2.button);
1627
+ let t3 = e3 ? e3 instanceof HTMLElement ? e3 : e3.value instanceof HTMLElement ? _e(e3) : _e(r2.button) : _e(r2.button);
1616
1628
  null == t3 || t3.focus();
1617
1629
  } };
1618
- return S(xl, r2), vt(u(() => Ee(n2.value, { 0: mt.Open, 1: mt.Closed }))), () => {
1630
+ return C(kl, r2), yt(u(() => Pe(n2.value, { 0: ht.Open, 1: ht.Closed }))), () => {
1619
1631
  let { defaultOpen: a3, ...o3 } = e2;
1620
- return ot({ theirProps: o3, ourProps: {}, slot: { open: 0 === n2.value, close: r2.close }, slots: t2, attrs: l2, name: "Disclosure" });
1632
+ return st({ theirProps: o3, ourProps: {}, slot: { open: 0 === n2.value, close: r2.close }, slots: t2, attrs: l2, name: "Disclosure" });
1621
1633
  };
1622
- } }), Cl = k({ name: "DisclosureButton", props: { as: { type: [Object, String], default: "button" }, disabled: { type: [Boolean], default: false }, id: { type: String, default: null } }, setup(e2, { attrs: t2, slots: l2, expose: n2 }) {
1623
- let a2 = wl("DisclosureButton"), o2 = f(kl, null), r2 = u(() => null !== o2 && o2.value === a2.panelId.value);
1624
- b(() => {
1634
+ } }), Ml = S({ name: "DisclosureButton", props: { as: { type: [Object, String], default: "button" }, disabled: { type: [Boolean], default: false }, id: { type: String, default: null } }, setup(e2, { attrs: t2, slots: l2, expose: n2 }) {
1635
+ let a2 = Sl("DisclosureButton"), o2 = v(Cl, null), r2 = u(() => null !== o2 && o2.value === a2.panelId.value);
1636
+ y(() => {
1625
1637
  r2.value || null !== e2.id && (a2.buttonId.value = e2.id);
1626
- }), O(() => {
1638
+ }), m(() => {
1627
1639
  r2.value || (a2.buttonId.value = null);
1628
1640
  });
1629
1641
  let i2 = s(null);
1630
- n2({ el: i2, $el: i2 }), r2.value || h(() => {
1642
+ n2({ el: i2, $el: i2 }), r2.value || b(() => {
1631
1643
  a2.button.value = i2.value;
1632
1644
  });
1633
- let d2 = Qe(u(() => ({ as: e2.as, type: t2.type })), i2);
1645
+ let d2 = lt(u(() => ({ as: e2.as, type: t2.type })), i2);
1634
1646
  function c2() {
1635
1647
  var t3;
1636
- e2.disabled || (r2.value ? (a2.toggleDisclosure(), null == (t3 = Te(a2.button)) || t3.focus()) : a2.toggleDisclosure());
1648
+ e2.disabled || (r2.value ? (a2.toggleDisclosure(), null == (t3 = _e(a2.button)) || t3.focus()) : a2.toggleDisclosure());
1637
1649
  }
1638
1650
  function p2(t3) {
1639
1651
  var l3;
1640
1652
  if (!e2.disabled)
1641
1653
  if (r2.value)
1642
1654
  switch (t3.key) {
1643
- case ht.Space:
1644
- case ht.Enter:
1645
- t3.preventDefault(), t3.stopPropagation(), a2.toggleDisclosure(), null == (l3 = Te(a2.button)) || l3.focus();
1655
+ case xt.Space:
1656
+ case xt.Enter:
1657
+ t3.preventDefault(), t3.stopPropagation(), a2.toggleDisclosure(), null == (l3 = _e(a2.button)) || l3.focus();
1646
1658
  }
1647
1659
  else
1648
1660
  switch (t3.key) {
1649
- case ht.Space:
1650
- case ht.Enter:
1661
+ case xt.Space:
1662
+ case xt.Enter:
1651
1663
  t3.preventDefault(), t3.stopPropagation(), a2.toggleDisclosure();
1652
1664
  }
1653
1665
  }
1654
1666
  function g2(e3) {
1655
- if (e3.key === ht.Space)
1667
+ if (e3.key === xt.Space)
1656
1668
  e3.preventDefault();
1657
1669
  }
1658
1670
  return () => {
1659
1671
  var n3;
1660
1672
  let o3 = { open: 0 === a2.disclosureState.value }, { id: s2, ...u2 } = e2;
1661
- return ot({ ourProps: r2.value ? { ref: i2, type: d2.value, onClick: c2, onKeydown: p2 } : { id: null != (n3 = a2.buttonId.value) ? n3 : s2, ref: i2, type: d2.value, "aria-expanded": 0 === a2.disclosureState.value, "aria-controls": 0 === a2.disclosureState.value || Te(a2.panel) ? a2.panelId.value : void 0, disabled: !!e2.disabled || void 0, onClick: c2, onKeydown: p2, onKeyup: g2 }, theirProps: u2, slot: o3, attrs: t2, slots: l2, name: "DisclosureButton" });
1673
+ return st({ ourProps: r2.value ? { ref: i2, type: d2.value, onClick: c2, onKeydown: p2 } : { id: null != (n3 = a2.buttonId.value) ? n3 : s2, ref: i2, type: d2.value, "aria-expanded": 0 === a2.disclosureState.value, "aria-controls": 0 === a2.disclosureState.value || _e(a2.panel) ? a2.panelId.value : void 0, disabled: !!e2.disabled || void 0, onClick: c2, onKeydown: p2, onKeyup: g2 }, theirProps: u2, slot: o3, attrs: t2, slots: l2, name: "DisclosureButton" });
1662
1674
  };
1663
- } }), Ol = k({ name: "DisclosurePanel", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: false }, unmount: { type: Boolean, default: true }, id: { type: String, default: null } }, setup(e2, { attrs: t2, slots: l2, expose: n2 }) {
1664
- let a2 = wl("DisclosurePanel");
1665
- b(() => {
1675
+ } }), Dl = 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 }) {
1676
+ let a2 = Sl("DisclosurePanel");
1677
+ y(() => {
1666
1678
  null !== e2.id && (a2.panelId.value = e2.id);
1667
- }), O(() => {
1679
+ }), m(() => {
1668
1680
  a2.panelId.value = null;
1669
- }), n2({ el: a2.panel, $el: a2.panel }), S(kl, a2.panelId);
1670
- let o2 = ft(), r2 = u(() => null !== o2 ? (o2.value & mt.Open) === mt.Open : 0 === a2.disclosureState.value);
1681
+ }), n2({ el: a2.panel, $el: a2.panel }), C(Cl, a2.panelId);
1682
+ let o2 = bt(), r2 = u(() => null !== o2 ? (o2.value & ht.Open) === ht.Open : 0 === a2.disclosureState.value);
1671
1683
  return () => {
1672
1684
  var n3;
1673
1685
  let o3 = { open: 0 === a2.disclosureState.value, close: a2.close }, { id: i2, ...s2 } = e2;
1674
- return ot({ ourProps: { id: null != (n3 = a2.panelId.value) ? n3 : i2, ref: a2.panel }, theirProps: s2, slot: o3, attrs: t2, slots: l2, features: nt.RenderStrategy | nt.Static, visible: r2.value, name: "DisclosurePanel" });
1686
+ return st({ ourProps: { id: null != (n3 = a2.panelId.value) ? n3 : i2, ref: a2.panel }, theirProps: s2, slot: o3, attrs: t2, slots: l2, features: rt.RenderStrategy | rt.Static, visible: r2.value, name: "DisclosurePanel" });
1675
1687
  };
1676
- } }), Ml = /([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;
1677
- function Dl(e2) {
1688
+ } }), Tl = /([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;
1689
+ function El(e2) {
1678
1690
  var t2, l2;
1679
1691
  let n2 = null != (t2 = e2.innerText) ? t2 : "", a2 = e2.cloneNode(true);
1680
1692
  if (!(a2 instanceof HTMLElement))
@@ -1683,12 +1695,12 @@ function Dl(e2) {
1683
1695
  for (let e3 of a2.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))
1684
1696
  e3.remove(), o2 = true;
1685
1697
  let r2 = o2 ? null != (l2 = a2.innerText) ? l2 : "" : n2;
1686
- return Ml.test(r2) && (r2 = r2.replace(Ml, "")), r2;
1698
+ return Tl.test(r2) && (r2 = r2.replace(Tl, "")), r2;
1687
1699
  }
1688
- function Tl(e2) {
1700
+ function Il(e2) {
1689
1701
  let t2 = s(""), l2 = s("");
1690
1702
  return () => {
1691
- let n2 = Te(e2);
1703
+ let n2 = _e(e2);
1692
1704
  if (!n2)
1693
1705
  return "";
1694
1706
  let a2 = n2.innerText;
@@ -1704,38 +1716,38 @@ function Tl(e2) {
1704
1716
  let t4 = document.getElementById(e5);
1705
1717
  if (t4) {
1706
1718
  let e6 = t4.getAttribute("aria-label");
1707
- return "string" == typeof e6 ? e6.trim() : Dl(t4).trim();
1719
+ return "string" == typeof e6 ? e6.trim() : El(t4).trim();
1708
1720
  }
1709
1721
  return null;
1710
1722
  }).filter(Boolean);
1711
1723
  if (e4.length > 0)
1712
1724
  return e4.join(", ");
1713
1725
  }
1714
- return Dl(e3).trim();
1726
+ return El(e3).trim();
1715
1727
  }(n2).trim().toLowerCase();
1716
1728
  return t2.value = a2, l2.value = o2, o2;
1717
1729
  };
1718
1730
  }
1719
- var El = ((e2) => (e2[e2.Open = 0] = "Open", e2[e2.Closed = 1] = "Closed", e2))(El || {}), Il = ((e2) => (e2[e2.Pointer = 0] = "Pointer", e2[e2.Other = 1] = "Other", e2))(Il || {});
1720
- let _l = Symbol("MenuContext");
1721
- function Pl(e2) {
1722
- let t2 = f(_l, null);
1731
+ var _l = ((e2) => (e2[e2.Open = 0] = "Open", e2[e2.Closed = 1] = "Closed", e2))(_l || {}), Pl = ((e2) => (e2[e2.Pointer = 0] = "Pointer", e2[e2.Other = 1] = "Other", e2))(Pl || {});
1732
+ let jl = Symbol("MenuContext");
1733
+ function Rl(e2) {
1734
+ let t2 = v(jl, null);
1723
1735
  if (null === t2) {
1724
1736
  let t3 = new Error(`<${e2} /> is missing a parent <Menu /> component.`);
1725
- throw Error.captureStackTrace && Error.captureStackTrace(t3, Pl), t3;
1737
+ throw Error.captureStackTrace && Error.captureStackTrace(t3, Rl), t3;
1726
1738
  }
1727
1739
  return t2;
1728
1740
  }
1729
- let jl = k({ name: "Menu", props: { as: { type: [Object, String], default: "template" } }, setup(e2, { slots: t2, attrs: l2 }) {
1741
+ let Bl = S({ name: "Menu", props: { as: { type: [Object, String], default: "template" } }, setup(e2, { slots: t2, attrs: l2 }) {
1730
1742
  let n2 = s(1), a2 = s(null), o2 = s(null), r2 = s([]), i2 = s(""), d2 = s(null), c2 = s(1);
1731
1743
  function p2(e3 = (e4) => e4) {
1732
- let t3 = null !== d2.value ? r2.value[d2.value] : null, l3 = Ue(e3(r2.value.slice()), (e4) => Te(e4.dataRef.domRef)), n3 = t3 ? l3.indexOf(t3) : null;
1744
+ let t3 = null !== d2.value ? r2.value[d2.value] : null, l3 = Ke(e3(r2.value.slice()), (e4) => _e(e4.dataRef.domRef)), n3 = t3 ? l3.indexOf(t3) : null;
1733
1745
  return -1 === n3 && (n3 = null), { items: l3, activeItemIndex: n3 };
1734
1746
  }
1735
1747
  let g2 = { menuState: n2, buttonRef: a2, itemsRef: o2, items: r2, searchQuery: i2, activeItemIndex: d2, activationTrigger: c2, closeMenu: () => {
1736
1748
  n2.value = 1, d2.value = null;
1737
1749
  }, openMenu: () => n2.value = 0, goToItem(e3, t3, l3) {
1738
- let n3 = p2(), a3 = xt(e3 === yt.Specific ? { focus: yt.Specific, id: t3 } : { focus: e3 }, { resolveItems: () => n3.items, resolveActiveIndex: () => n3.activeItemIndex, resolveId: (e4) => e4.id, resolveDisabled: (e4) => e4.dataRef.disabled });
1750
+ let n3 = p2(), a3 = Ct(e3 === St.Specific ? { focus: St.Specific, id: t3 } : { focus: e3 }, { resolveItems: () => n3.items, resolveActiveIndex: () => n3.activeItemIndex, resolveId: (e4) => e4.id, resolveDisabled: (e4) => e4.dataRef.disabled });
1739
1751
  i2.value = "", d2.value = a3, c2.value = null != l3 ? l3 : 1, r2.value = n3.items;
1740
1752
  }, search(e3) {
1741
1753
  let t3 = "" !== i2.value ? 0 : 1;
@@ -1754,165 +1766,165 @@ let jl = k({ name: "Menu", props: { as: { type: [Object, String], default: "temp
1754
1766
  });
1755
1767
  r2.value = t3.items, d2.value = t3.activeItemIndex, c2.value = 1;
1756
1768
  } };
1757
- return Ze([a2, o2], (e3, t3) => {
1769
+ return et([a2, o2], (e3, t3) => {
1758
1770
  var l3;
1759
- g2.closeMenu(), ze(t3, Ne.Loose) || (e3.preventDefault(), null == (l3 = Te(a2)) || l3.focus());
1760
- }, u(() => 0 === n2.value)), S(_l, g2), vt(u(() => Ee(n2.value, { 0: mt.Open, 1: mt.Closed }))), () => {
1771
+ g2.closeMenu(), He(t3, Ve.Loose) || (e3.preventDefault(), null == (l3 = _e(a2)) || l3.focus());
1772
+ }, u(() => 0 === n2.value)), C(jl, g2), yt(u(() => Pe(n2.value, { 0: ht.Open, 1: ht.Closed }))), () => {
1761
1773
  let a3 = { open: 0 === n2.value, close: g2.closeMenu };
1762
- return ot({ ourProps: {}, theirProps: e2, slot: a3, slots: t2, attrs: l2, name: "Menu" });
1774
+ return st({ ourProps: {}, theirProps: e2, slot: a3, slots: t2, attrs: l2, name: "Menu" });
1763
1775
  };
1764
- } }), Rl = k({ name: "MenuButton", props: { disabled: { type: Boolean, default: false }, as: { type: [Object, String], default: "button" }, id: { type: String, default: null } }, setup(e2, { attrs: t2, slots: l2, expose: n2 }) {
1776
+ } }), Al = S({ name: "MenuButton", props: { disabled: { type: Boolean, default: false }, as: { type: [Object, String], default: "button" }, id: { type: String, default: null } }, setup(e2, { attrs: t2, slots: l2, expose: n2 }) {
1765
1777
  var a2;
1766
- let o2 = null != (a2 = e2.id) ? a2 : `headlessui-menu-button-${De()}`, r2 = Pl("MenuButton");
1778
+ let o2 = null != (a2 = e2.id) ? a2 : `headlessui-menu-button-${Ie()}`, r2 = Rl("MenuButton");
1767
1779
  function i2(e3) {
1768
1780
  switch (e3.key) {
1769
- case ht.Space:
1770
- case ht.Enter:
1771
- case ht.ArrowDown:
1772
- e3.preventDefault(), e3.stopPropagation(), r2.openMenu(), v(() => {
1781
+ case xt.Space:
1782
+ case xt.Enter:
1783
+ case xt.ArrowDown:
1784
+ e3.preventDefault(), e3.stopPropagation(), r2.openMenu(), h(() => {
1773
1785
  var e4;
1774
- null == (e4 = Te(r2.itemsRef)) || e4.focus({ preventScroll: true }), r2.goToItem(yt.First);
1786
+ null == (e4 = _e(r2.itemsRef)) || e4.focus({ preventScroll: true }), r2.goToItem(St.First);
1775
1787
  });
1776
1788
  break;
1777
- case ht.ArrowUp:
1778
- e3.preventDefault(), e3.stopPropagation(), r2.openMenu(), v(() => {
1789
+ case xt.ArrowUp:
1790
+ e3.preventDefault(), e3.stopPropagation(), r2.openMenu(), h(() => {
1779
1791
  var e4;
1780
- null == (e4 = Te(r2.itemsRef)) || e4.focus({ preventScroll: true }), r2.goToItem(yt.Last);
1792
+ null == (e4 = _e(r2.itemsRef)) || e4.focus({ preventScroll: true }), r2.goToItem(St.Last);
1781
1793
  });
1782
1794
  }
1783
1795
  }
1784
1796
  function s2(e3) {
1785
- if (e3.key === ht.Space)
1797
+ if (e3.key === xt.Space)
1786
1798
  e3.preventDefault();
1787
1799
  }
1788
1800
  function d2(t3) {
1789
- e2.disabled || (0 === r2.menuState.value ? (r2.closeMenu(), v(() => {
1801
+ e2.disabled || (0 === r2.menuState.value ? (r2.closeMenu(), h(() => {
1790
1802
  var e3;
1791
- return null == (e3 = Te(r2.buttonRef)) ? void 0 : e3.focus({ preventScroll: true });
1803
+ return null == (e3 = _e(r2.buttonRef)) ? void 0 : e3.focus({ preventScroll: true });
1792
1804
  })) : (t3.preventDefault(), r2.openMenu(), function(e3) {
1793
1805
  requestAnimationFrame(() => requestAnimationFrame(e3));
1794
1806
  }(() => {
1795
1807
  var e3;
1796
- return null == (e3 = Te(r2.itemsRef)) ? void 0 : e3.focus({ preventScroll: true });
1808
+ return null == (e3 = _e(r2.itemsRef)) ? void 0 : e3.focus({ preventScroll: true });
1797
1809
  })));
1798
1810
  }
1799
1811
  n2({ el: r2.buttonRef, $el: r2.buttonRef });
1800
- let c2 = Qe(u(() => ({ as: e2.as, type: t2.type })), r2.buttonRef);
1812
+ let c2 = lt(u(() => ({ as: e2.as, type: t2.type })), r2.buttonRef);
1801
1813
  return () => {
1802
1814
  var n3;
1803
1815
  let a3 = { open: 0 === r2.menuState.value }, { ...u2 } = e2;
1804
- return ot({ ourProps: { ref: r2.buttonRef, id: o2, type: c2.value, "aria-haspopup": "menu", "aria-controls": null == (n3 = Te(r2.itemsRef)) ? void 0 : n3.id, "aria-expanded": 0 === r2.menuState.value, onKeydown: i2, onKeyup: s2, onClick: d2 }, theirProps: u2, slot: a3, attrs: t2, slots: l2, name: "MenuButton" });
1816
+ return st({ ourProps: { ref: r2.buttonRef, id: o2, type: c2.value, "aria-haspopup": "menu", "aria-controls": null == (n3 = _e(r2.itemsRef)) ? void 0 : n3.id, "aria-expanded": 0 === r2.menuState.value, onKeydown: i2, onKeyup: s2, onClick: d2 }, theirProps: u2, slot: a3, attrs: t2, slots: l2, name: "MenuButton" });
1805
1817
  };
1806
- } }), Bl = k({ name: "MenuItems", 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 }) {
1818
+ } }), Ll = S({ name: "MenuItems", 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 }) {
1807
1819
  var a2;
1808
- let o2 = null != (a2 = e2.id) ? a2 : `headlessui-menu-items-${De()}`, r2 = Pl("MenuItems"), i2 = s(null);
1820
+ let o2 = null != (a2 = e2.id) ? a2 : `headlessui-menu-items-${Ie()}`, r2 = Rl("MenuItems"), i2 = s(null);
1809
1821
  function d2(e3) {
1810
1822
  var t3;
1811
1823
  switch (i2.value && clearTimeout(i2.value), e3.key) {
1812
- case ht.Space:
1824
+ case xt.Space:
1813
1825
  if ("" !== r2.searchQuery.value)
1814
1826
  return e3.preventDefault(), e3.stopPropagation(), r2.search(e3.key);
1815
- case ht.Enter:
1827
+ case xt.Enter:
1816
1828
  if (e3.preventDefault(), e3.stopPropagation(), null !== r2.activeItemIndex.value) {
1817
- null == (t3 = Te(r2.items.value[r2.activeItemIndex.value].dataRef.domRef)) || t3.click();
1829
+ null == (t3 = _e(r2.items.value[r2.activeItemIndex.value].dataRef.domRef)) || t3.click();
1818
1830
  }
1819
- r2.closeMenu(), $e(Te(r2.buttonRef));
1831
+ r2.closeMenu(), Ye(_e(r2.buttonRef));
1820
1832
  break;
1821
- case ht.ArrowDown:
1822
- return e3.preventDefault(), e3.stopPropagation(), r2.goToItem(yt.Next);
1823
- case ht.ArrowUp:
1824
- return e3.preventDefault(), e3.stopPropagation(), r2.goToItem(yt.Previous);
1825
- case ht.Home:
1826
- case ht.PageUp:
1827
- return e3.preventDefault(), e3.stopPropagation(), r2.goToItem(yt.First);
1828
- case ht.End:
1829
- case ht.PageDown:
1830
- return e3.preventDefault(), e3.stopPropagation(), r2.goToItem(yt.Last);
1831
- case ht.Escape:
1832
- e3.preventDefault(), e3.stopPropagation(), r2.closeMenu(), v(() => {
1833
+ case xt.ArrowDown:
1834
+ return e3.preventDefault(), e3.stopPropagation(), r2.goToItem(St.Next);
1835
+ case xt.ArrowUp:
1836
+ return e3.preventDefault(), e3.stopPropagation(), r2.goToItem(St.Previous);
1837
+ case xt.Home:
1838
+ case xt.PageUp:
1839
+ return e3.preventDefault(), e3.stopPropagation(), r2.goToItem(St.First);
1840
+ case xt.End:
1841
+ case xt.PageDown:
1842
+ return e3.preventDefault(), e3.stopPropagation(), r2.goToItem(St.Last);
1843
+ case xt.Escape:
1844
+ e3.preventDefault(), e3.stopPropagation(), r2.closeMenu(), h(() => {
1833
1845
  var e4;
1834
- return null == (e4 = Te(r2.buttonRef)) ? void 0 : e4.focus({ preventScroll: true });
1846
+ return null == (e4 = _e(r2.buttonRef)) ? void 0 : e4.focus({ preventScroll: true });
1835
1847
  });
1836
1848
  break;
1837
- case ht.Tab:
1838
- e3.preventDefault(), e3.stopPropagation(), r2.closeMenu(), v(() => function(e4, t4) {
1839
- return qe(Fe(), t4, { relativeTo: e4 });
1840
- }(Te(r2.buttonRef), e3.shiftKey ? Be.Previous : Be.Next));
1849
+ case xt.Tab:
1850
+ e3.preventDefault(), e3.stopPropagation(), r2.closeMenu(), h(() => function(e4, t4) {
1851
+ return Je($e(), t4, { relativeTo: e4 });
1852
+ }(_e(r2.buttonRef), e3.shiftKey ? Fe.Previous : Fe.Next));
1841
1853
  break;
1842
1854
  default:
1843
1855
  1 === e3.key.length && (r2.search(e3.key), i2.value = setTimeout(() => r2.clearSearch(), 350));
1844
1856
  }
1845
1857
  }
1846
1858
  function c2(e3) {
1847
- if (e3.key === ht.Space)
1859
+ if (e3.key === xt.Space)
1848
1860
  e3.preventDefault();
1849
1861
  }
1850
- n2({ el: r2.itemsRef, $el: r2.itemsRef }), lt({ container: u(() => Te(r2.itemsRef)), enabled: u(() => 0 === r2.menuState.value), accept: (e3) => "menuitem" === e3.getAttribute("role") ? NodeFilter.FILTER_REJECT : e3.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT, walk(e3) {
1862
+ n2({ el: r2.itemsRef, $el: r2.itemsRef }), ot({ container: u(() => _e(r2.itemsRef)), enabled: u(() => 0 === r2.menuState.value), accept: (e3) => "menuitem" === e3.getAttribute("role") ? NodeFilter.FILTER_REJECT : e3.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT, walk(e3) {
1851
1863
  e3.setAttribute("role", "none");
1852
1864
  } });
1853
- let p2 = ft(), g2 = u(() => null !== p2 ? (p2.value & mt.Open) === mt.Open : 0 === r2.menuState.value);
1865
+ let p2 = bt(), g2 = u(() => null !== p2 ? (p2.value & ht.Open) === ht.Open : 0 === r2.menuState.value);
1854
1866
  return () => {
1855
1867
  var n3, a3;
1856
1868
  let i3 = { open: 0 === r2.menuState.value }, { ...s2 } = e2;
1857
- return ot({ ourProps: { "aria-activedescendant": null === r2.activeItemIndex.value || null == (n3 = r2.items.value[r2.activeItemIndex.value]) ? void 0 : n3.id, "aria-labelledby": null == (a3 = Te(r2.buttonRef)) ? void 0 : a3.id, id: o2, onKeydown: d2, onKeyup: c2, role: "menu", tabIndex: 0, ref: r2.itemsRef }, theirProps: s2, slot: i3, attrs: t2, slots: l2, features: nt.RenderStrategy | nt.Static, visible: g2.value, name: "MenuItems" });
1869
+ return st({ ourProps: { "aria-activedescendant": null === r2.activeItemIndex.value || null == (n3 = r2.items.value[r2.activeItemIndex.value]) ? void 0 : n3.id, "aria-labelledby": null == (a3 = _e(r2.buttonRef)) ? void 0 : a3.id, id: o2, onKeydown: d2, onKeyup: c2, role: "menu", tabIndex: 0, ref: r2.itemsRef }, theirProps: s2, slot: i3, attrs: t2, slots: l2, features: rt.RenderStrategy | rt.Static, visible: g2.value, name: "MenuItems" });
1858
1870
  };
1859
- } }), Al = k({ name: "MenuItem", inheritAttrs: false, props: { as: { type: [Object, String], default: "template" }, disabled: { type: Boolean, default: false }, id: { type: String, default: null } }, setup(e2, { slots: t2, attrs: l2, expose: n2 }) {
1871
+ } }), Fl = S({ name: "MenuItem", inheritAttrs: false, props: { as: { type: [Object, String], default: "template" }, disabled: { type: Boolean, default: false }, id: { type: String, default: null } }, setup(e2, { slots: t2, attrs: l2, expose: n2 }) {
1860
1872
  var a2;
1861
- let o2 = null != (a2 = e2.id) ? a2 : `headlessui-menu-item-${De()}`, r2 = Pl("MenuItem"), i2 = s(null);
1873
+ let o2 = null != (a2 = e2.id) ? a2 : `headlessui-menu-item-${Ie()}`, r2 = Rl("MenuItem"), i2 = s(null);
1862
1874
  n2({ el: i2, $el: i2 });
1863
- let d2 = u(() => null !== r2.activeItemIndex.value && r2.items.value[r2.activeItemIndex.value].id === o2), c2 = Tl(i2), p2 = u(() => ({ disabled: e2.disabled, get textValue() {
1875
+ let d2 = u(() => null !== r2.activeItemIndex.value && r2.items.value[r2.activeItemIndex.value].id === o2), c2 = Il(i2), p2 = u(() => ({ disabled: e2.disabled, get textValue() {
1864
1876
  return c2();
1865
1877
  }, domRef: i2 }));
1866
1878
  function g2(t3) {
1867
1879
  if (e2.disabled)
1868
1880
  return t3.preventDefault();
1869
- r2.closeMenu(), $e(Te(r2.buttonRef));
1881
+ r2.closeMenu(), Ye(_e(r2.buttonRef));
1870
1882
  }
1871
- function m2() {
1883
+ function f2() {
1872
1884
  if (e2.disabled)
1873
- return r2.goToItem(yt.Nothing);
1874
- r2.goToItem(yt.Specific, o2);
1885
+ return r2.goToItem(St.Nothing);
1886
+ r2.goToItem(St.Specific, o2);
1875
1887
  }
1876
- b(() => r2.registerItem(o2, p2)), O(() => r2.unregisterItem(o2)), h(() => {
1877
- 0 === r2.menuState.value && d2.value && 0 !== r2.activationTrigger.value && v(() => {
1888
+ y(() => r2.registerItem(o2, p2)), m(() => r2.unregisterItem(o2)), b(() => {
1889
+ 0 === r2.menuState.value && d2.value && 0 !== r2.activationTrigger.value && h(() => {
1878
1890
  var e3, t3;
1879
- return null == (t3 = null == (e3 = Te(i2)) ? void 0 : e3.scrollIntoView) ? void 0 : t3.call(e3, { block: "nearest" });
1891
+ return null == (t3 = null == (e3 = _e(i2)) ? void 0 : e3.scrollIntoView) ? void 0 : t3.call(e3, { block: "nearest" });
1880
1892
  });
1881
1893
  });
1882
- let f2 = tt();
1883
- function y2(e3) {
1884
- f2.update(e3);
1885
- }
1886
- function x2(t3) {
1887
- f2.wasMoved(t3) && (e2.disabled || d2.value || r2.goToItem(yt.Specific, o2, 0));
1894
+ let v2 = at();
1895
+ function x2(e3) {
1896
+ v2.update(e3);
1888
1897
  }
1889
1898
  function w2(t3) {
1890
- f2.wasMoved(t3) && (e2.disabled || d2.value && r2.goToItem(yt.Nothing));
1899
+ v2.wasMoved(t3) && (e2.disabled || d2.value || r2.goToItem(St.Specific, o2, 0));
1900
+ }
1901
+ function k2(t3) {
1902
+ v2.wasMoved(t3) && (e2.disabled || d2.value && r2.goToItem(St.Nothing));
1891
1903
  }
1892
1904
  return () => {
1893
1905
  let { disabled: n3, ...a3 } = e2, s2 = { active: d2.value, disabled: n3, close: r2.closeMenu };
1894
- return ot({ ourProps: { id: o2, ref: i2, role: "menuitem", tabIndex: true === n3 ? void 0 : -1, "aria-disabled": true === n3 || void 0, onClick: g2, onFocus: m2, onPointerenter: y2, onMouseenter: y2, onPointermove: x2, onMousemove: x2, onPointerleave: w2, onMouseleave: w2 }, theirProps: { ...l2, ...a3 }, slot: s2, attrs: l2, slots: t2, name: "MenuItem" });
1906
+ return st({ ourProps: { id: o2, ref: i2, role: "menuitem", tabIndex: true === n3 ? void 0 : -1, "aria-disabled": true === n3 || void 0, onClick: g2, onFocus: f2, onPointerenter: x2, onMouseenter: x2, onPointermove: w2, onMousemove: w2, onPointerleave: k2, onMouseleave: k2 }, theirProps: { ...l2, ...a3 }, slot: s2, attrs: l2, slots: t2, name: "MenuItem" });
1895
1907
  };
1896
- } }), Ll = Symbol("LabelContext");
1897
- function Fl() {
1898
- let e2 = f(Ll, null);
1908
+ } }), Nl = Symbol("LabelContext");
1909
+ function zl() {
1910
+ let e2 = v(Nl, null);
1899
1911
  if (null === e2) {
1900
1912
  let e3 = new Error("You used a <Label /> component, but it is not inside a parent.");
1901
- throw Error.captureStackTrace && Error.captureStackTrace(e3, Fl), e3;
1913
+ throw Error.captureStackTrace && Error.captureStackTrace(e3, zl), e3;
1902
1914
  }
1903
1915
  return e2;
1904
1916
  }
1905
- let Nl = k({ name: "Label", props: { as: { type: [Object, String], default: "label" }, passive: { type: [Boolean], default: false }, id: { type: String, default: null } }, setup(e2, { slots: t2, attrs: l2 }) {
1917
+ let $l = S({ name: "Label", props: { as: { type: [Object, String], default: "label" }, passive: { type: [Boolean], default: false }, id: { type: String, default: null } }, setup(e2, { slots: t2, attrs: l2 }) {
1906
1918
  var n2;
1907
- let a2 = null != (n2 = e2.id) ? n2 : `headlessui-label-${De()}`, o2 = Fl();
1908
- return b(() => O(o2.register(a2))), () => {
1919
+ let a2 = null != (n2 = e2.id) ? n2 : `headlessui-label-${Ie()}`, o2 = zl();
1920
+ return y(() => m(o2.register(a2))), () => {
1909
1921
  let { name: n3 = "Label", slot: r2 = {}, props: i2 = {} } = o2, { passive: s2, ...u2 } = e2, c2 = { ...Object.entries(i2).reduce((e3, [t3, l3]) => Object.assign(e3, { [t3]: d(l3) }), {}), id: a2 };
1910
- return s2 && (delete c2.onClick, delete c2.htmlFor, delete u2.onClick), ot({ ourProps: c2, theirProps: u2, slot: r2, attrs: l2, slots: t2, name: n3 });
1922
+ return s2 && (delete c2.onClick, delete c2.htmlFor, delete u2.onClick), st({ ourProps: c2, theirProps: u2, slot: r2, attrs: l2, slots: t2, name: n3 });
1911
1923
  };
1912
- } }), zl = Symbol("GroupContext"), $l = k({ name: "SwitchGroup", props: { as: { type: [Object, String], default: "template" } }, setup(e2, { slots: t2, attrs: l2 }) {
1924
+ } }), Vl = Symbol("GroupContext"), Hl = S({ name: "SwitchGroup", props: { as: { type: [Object, String], default: "template" } }, setup(e2, { slots: t2, attrs: l2 }) {
1913
1925
  let n2 = s(null), a2 = function({ slot: e3 = {}, name: t3 = "Label", props: l3 = {} } = {}) {
1914
1926
  let n3 = s([]);
1915
- return S(Ll, { register: function(e4) {
1927
+ return C(Nl, { register: function(e4) {
1916
1928
  return n3.value.push(e4), () => {
1917
1929
  let t4 = n3.value.indexOf(e4);
1918
1930
  -1 !== t4 && n3.value.splice(t4, 1);
@@ -1923,20 +1935,20 @@ let Nl = k({ name: "Label", props: { as: { type: [Object, String], default: "lab
1923
1935
  return null == (e3 = n2.value) ? void 0 : e3.id;
1924
1936
  }), onClick(e3) {
1925
1937
  n2.value && ("LABEL" === e3.currentTarget.tagName && e3.preventDefault(), n2.value.click(), n2.value.focus({ preventScroll: true }));
1926
- } } }), o2 = ol({ name: "SwitchDescription" });
1927
- return S(zl, { switchRef: n2, labelledby: a2, describedby: o2 }), () => ot({ theirProps: e2, ourProps: {}, slot: {}, slots: t2, attrs: l2, name: "SwitchGroup" });
1928
- } }), Vl = k({ name: "Switch", emits: { "update:modelValue": (e2) => true }, props: { as: { type: [Object, String], default: "button" }, modelValue: { type: Boolean, default: void 0 }, defaultChecked: { type: Boolean, optional: true }, form: { type: String, optional: true }, name: { type: String, optional: true }, value: { type: String, optional: true }, id: { type: String, default: null }, disabled: { type: Boolean, default: false }, tabIndex: { type: Number, default: 0 } }, inheritAttrs: false, setup(e2, { emit: t2, attrs: l2, slots: n2, expose: a2 }) {
1938
+ } } }), o2 = il({ name: "SwitchDescription" });
1939
+ return C(Vl, { switchRef: n2, labelledby: a2, describedby: o2 }), () => st({ theirProps: e2, ourProps: {}, slot: {}, slots: t2, attrs: l2, name: "SwitchGroup" });
1940
+ } }), Yl = S({ name: "Switch", emits: { "update:modelValue": (e2) => true }, props: { as: { type: [Object, String], default: "button" }, modelValue: { type: Boolean, default: void 0 }, defaultChecked: { type: Boolean, optional: true }, form: { type: String, optional: true }, name: { type: String, optional: true }, value: { type: String, optional: true }, id: { type: String, default: null }, disabled: { type: Boolean, default: false }, tabIndex: { type: Number, default: 0 } }, inheritAttrs: false, setup(e2, { emit: t2, attrs: l2, slots: n2, expose: a2 }) {
1929
1941
  var o2;
1930
- let r2 = null != (o2 = e2.id) ? o2 : `headlessui-switch-${De()}`, i2 = f(zl, null), [d2, c2] = Ce(u(() => e2.modelValue), (e3) => t2("update:modelValue", e3), u(() => e2.defaultChecked));
1942
+ let r2 = null != (o2 = e2.id) ? o2 : `headlessui-switch-${Ie()}`, i2 = v(Vl, null), [d2, c2] = Ce(u(() => e2.modelValue), (e3) => t2("update:modelValue", e3), u(() => e2.defaultChecked));
1931
1943
  function g2() {
1932
1944
  c2(!d2.value);
1933
1945
  }
1934
- let m2 = s(null), v2 = null === i2 ? m2 : i2.switchRef, h2 = Qe(u(() => ({ as: e2.as, type: l2.type })), v2);
1935
- function y2(e3) {
1946
+ let f2 = s(null), m2 = null === i2 ? f2 : i2.switchRef, h2 = lt(u(() => ({ as: e2.as, type: l2.type })), m2);
1947
+ function b2(e3) {
1936
1948
  e3.preventDefault(), g2();
1937
1949
  }
1938
- function k2(e3) {
1939
- e3.key === ht.Space ? (e3.preventDefault(), g2()) : e3.key === ht.Enter && function(e4) {
1950
+ function x2(e3) {
1951
+ e3.key === xt.Space ? (e3.preventDefault(), g2()) : e3.key === xt.Enter && function(e4) {
1940
1952
  var t3, l3;
1941
1953
  let n3 = null != (t3 = null == e4 ? void 0 : e4.form) ? t3 : e4.closest("form");
1942
1954
  if (n3) {
@@ -1950,12 +1962,12 @@ let Nl = k({ name: "Label", props: { as: { type: [Object, String], default: "lab
1950
1962
  function S2(e3) {
1951
1963
  e3.preventDefault();
1952
1964
  }
1953
- a2({ el: v2, $el: v2 });
1965
+ a2({ el: m2, $el: m2 });
1954
1966
  let C2 = u(() => {
1955
1967
  var e3, t3;
1956
- return null == (t3 = null == (e3 = Te(v2)) ? void 0 : e3.closest) ? void 0 : t3.call(e3, "form");
1968
+ return null == (t3 = null == (e3 = _e(m2)) ? void 0 : e3.closest) ? void 0 : t3.call(e3, "form");
1957
1969
  });
1958
- return b(() => {
1970
+ return y(() => {
1959
1971
  p([C2], () => {
1960
1972
  if (C2.value && void 0 !== e2.defaultChecked)
1961
1973
  return C2.value.addEventListener("reset", t3), () => {
@@ -1967,19 +1979,19 @@ let Nl = k({ name: "Label", props: { as: { type: [Object, String], default: "lab
1967
1979
  }
1968
1980
  }, { immediate: true });
1969
1981
  }), () => {
1970
- let { name: t3, value: a3, form: o3, tabIndex: s2, ...u2 } = e2, c3 = { checked: d2.value }, p2 = { id: r2, ref: v2, role: "switch", type: h2.value, tabIndex: -1 === s2 ? 0 : s2, "aria-checked": d2.value, "aria-labelledby": null == i2 ? void 0 : i2.labelledby.value, "aria-describedby": null == i2 ? void 0 : i2.describedby.value, onClick: y2, onKeyup: k2, onKeypress: S2 };
1971
- return x(w, [null != t3 && null != d2.value ? x(pt, ut({ features: ct.Hidden, as: "input", type: "checkbox", hidden: true, readOnly: true, checked: d2.value, form: o3, disabled: u2.disabled, name: t3, value: a3 })) : null, ot({ ourProps: p2, theirProps: { ...l2, ...dt(u2, ["modelValue", "defaultChecked"]) }, slot: c3, attrs: l2, slots: n2, name: "Switch" })]);
1982
+ let { name: t3, value: a3, form: o3, tabIndex: s2, ...u2 } = e2, c3 = { checked: d2.value }, p2 = { id: r2, ref: m2, role: "switch", type: h2.value, tabIndex: -1 === s2 ? 0 : s2, "aria-checked": d2.value, "aria-labelledby": null == i2 ? void 0 : i2.labelledby.value, "aria-describedby": null == i2 ? void 0 : i2.describedby.value, onClick: b2, onKeyup: x2, onKeypress: S2 };
1983
+ return w(k, [null != t3 && null != d2.value ? w(mt, pt({ features: ft.Hidden, as: "input", type: "checkbox", hidden: true, readOnly: true, checked: d2.value, form: o3, disabled: u2.disabled, name: t3, value: a3 })) : null, st({ ourProps: p2, theirProps: { ...l2, ...gt(u2, ["modelValue", "defaultChecked"]) }, slot: c3, attrs: l2, slots: n2, name: "Switch" })]);
1972
1984
  };
1973
- } }), Hl = Nl;
1974
- function Yl(e2, ...t2) {
1985
+ } }), Ul = $l;
1986
+ function ql(e2, ...t2) {
1975
1987
  e2 && t2.length > 0 && e2.classList.add(...t2);
1976
1988
  }
1977
- function Ul(e2, ...t2) {
1989
+ function Wl(e2, ...t2) {
1978
1990
  e2 && t2.length > 0 && e2.classList.remove(...t2);
1979
1991
  }
1980
- var ql = ((e2) => (e2.Finished = "finished", e2.Cancelled = "cancelled", e2))(ql || {});
1981
- function Wl(e2, t2, l2, n2, a2, o2) {
1982
- let r2 = kt(), i2 = void 0 !== o2 ? /* @__PURE__ */ function(e3) {
1992
+ var Kl = ((e2) => (e2.Finished = "finished", e2.Cancelled = "cancelled", e2))(Kl || {});
1993
+ function Jl(e2, t2, l2, n2, a2, o2) {
1994
+ let r2 = Me(), i2 = void 0 !== o2 ? /* @__PURE__ */ function(e3) {
1983
1995
  let t3 = { called: false };
1984
1996
  return (...l3) => {
1985
1997
  if (!t3.called)
@@ -1987,9 +1999,9 @@ function Wl(e2, t2, l2, n2, a2, o2) {
1987
1999
  };
1988
2000
  }(o2) : () => {
1989
2001
  };
1990
- return Ul(e2, ...a2), Yl(e2, ...t2, ...l2), r2.nextFrame(() => {
1991
- Ul(e2, ...l2), Yl(e2, ...n2), r2.add(function(e3, t3) {
1992
- let l3 = kt();
2002
+ return Wl(e2, ...a2), ql(e2, ...t2, ...l2), r2.nextFrame(() => {
2003
+ Wl(e2, ...l2), ql(e2, ...n2), r2.add(function(e3, t3) {
2004
+ let l3 = Me();
1993
2005
  if (!e3)
1994
2006
  return l3.dispose;
1995
2007
  let { transitionDuration: n3, transitionDelay: a3 } = getComputedStyle(e3), [o3, r3] = [n3, a3].map((e4) => {
@@ -1997,185 +2009,185 @@ function Wl(e2, t2, l2, n2, a2, o2) {
1997
2009
  return t4;
1998
2010
  });
1999
2011
  return 0 !== o3 ? l3.setTimeout(() => t3("finished"), o3 + r3) : t3("finished"), l3.add(() => t3("cancelled")), l3.dispose;
2000
- }(e2, (l3) => (Ul(e2, ...n2, ...t2), Yl(e2, ...a2), i2(l3))));
2001
- }), r2.add(() => Ul(e2, ...t2, ...l2, ...n2, ...a2)), r2.add(() => i2("cancelled")), r2.dispose;
2012
+ }(e2, (l3) => (Wl(e2, ...n2, ...t2), ql(e2, ...a2), i2(l3))));
2013
+ }), r2.add(() => Wl(e2, ...t2, ...l2, ...n2, ...a2)), r2.add(() => i2("cancelled")), r2.dispose;
2002
2014
  }
2003
- function Kl(e2 = "") {
2015
+ function Gl(e2 = "") {
2004
2016
  return e2.split(/\s+/).filter((e3) => e3.length > 1);
2005
2017
  }
2006
- let Jl = Symbol("TransitionContext");
2007
- var Gl = ((e2) => (e2.Visible = "visible", e2.Hidden = "hidden", e2))(Gl || {});
2008
- let Zl = Symbol("NestingContext");
2009
- function Xl(e2) {
2010
- return "children" in e2 ? Xl(e2.children) : e2.value.filter(({ state: e3 }) => "visible" === e3).length > 0;
2018
+ let Zl = Symbol("TransitionContext");
2019
+ var Xl = ((e2) => (e2.Visible = "visible", e2.Hidden = "hidden", e2))(Xl || {});
2020
+ let Ql = Symbol("NestingContext");
2021
+ function en(e2) {
2022
+ return "children" in e2 ? en(e2.children) : e2.value.filter(({ state: e3 }) => "visible" === e3).length > 0;
2011
2023
  }
2012
- function Ql(e2) {
2024
+ function tn(e2) {
2013
2025
  let t2 = s([]), l2 = s(false);
2014
- function n2(n3, a2 = at.Hidden) {
2026
+ function n2(n3, a2 = it.Hidden) {
2015
2027
  let o2 = t2.value.findIndex(({ id: e3 }) => e3 === n3);
2016
- -1 !== o2 && (Ee(a2, { [at.Unmount]() {
2028
+ -1 !== o2 && (Pe(a2, { [it.Unmount]() {
2017
2029
  t2.value.splice(o2, 1);
2018
- }, [at.Hidden]() {
2030
+ }, [it.Hidden]() {
2019
2031
  t2.value[o2].state = "hidden";
2020
- } }), !Xl(t2) && l2.value && (null == e2 || e2()));
2032
+ } }), !en(t2) && l2.value && (null == e2 || e2()));
2021
2033
  }
2022
- return b(() => l2.value = true), O(() => l2.value = false), { children: t2, register: function(e3) {
2034
+ return y(() => l2.value = true), m(() => l2.value = false), { children: t2, register: function(e3) {
2023
2035
  let l3 = t2.value.find(({ id: t3 }) => t3 === e3);
2024
- return l3 ? "visible" !== l3.state && (l3.state = "visible") : t2.value.push({ id: e3, state: "visible" }), () => n2(e3, at.Unmount);
2036
+ return l3 ? "visible" !== l3.state && (l3.state = "visible") : t2.value.push({ id: e3, state: "visible" }), () => n2(e3, it.Unmount);
2025
2037
  }, unregister: n2 };
2026
2038
  }
2027
- let en = nt.RenderStrategy, tn = k({ props: { as: { type: [Object, String], default: "div" }, show: { type: [Boolean], default: null }, unmount: { type: [Boolean], default: true }, appear: { type: [Boolean], default: false }, enter: { type: [String], default: "" }, enterFrom: { type: [String], default: "" }, enterTo: { type: [String], default: "" }, entered: { type: [String], default: "" }, leave: { type: [String], default: "" }, leaveFrom: { type: [String], default: "" }, leaveTo: { type: [String], default: "" } }, emits: { beforeEnter: () => true, afterEnter: () => true, beforeLeave: () => true, afterLeave: () => true }, setup(e2, { emit: t2, attrs: l2, slots: a2, expose: o2 }) {
2039
+ let ln = rt.RenderStrategy, nn = S({ props: { as: { type: [Object, String], default: "div" }, show: { type: [Boolean], default: null }, unmount: { type: [Boolean], default: true }, appear: { type: [Boolean], default: false }, enter: { type: [String], default: "" }, enterFrom: { type: [String], default: "" }, enterTo: { type: [String], default: "" }, entered: { type: [String], default: "" }, leave: { type: [String], default: "" }, leaveFrom: { type: [String], default: "" }, leaveTo: { type: [String], default: "" } }, emits: { beforeEnter: () => true, afterEnter: () => true, beforeLeave: () => true, afterLeave: () => true }, setup(e2, { emit: t2, attrs: l2, slots: a2, expose: o2 }) {
2028
2040
  let r2 = s(0);
2029
2041
  function i2() {
2030
- r2.value |= mt.Opening, t2("beforeEnter");
2042
+ r2.value |= ht.Opening, t2("beforeEnter");
2031
2043
  }
2032
2044
  function d2() {
2033
- r2.value &= ~mt.Opening, t2("afterEnter");
2045
+ r2.value &= ~ht.Opening, t2("afterEnter");
2034
2046
  }
2035
2047
  function c2() {
2036
- r2.value |= mt.Closing, t2("beforeLeave");
2048
+ r2.value |= ht.Closing, t2("beforeLeave");
2037
2049
  }
2038
2050
  function g2() {
2039
- r2.value &= ~mt.Closing, t2("afterLeave");
2040
- }
2041
- if (null === f(Jl, null) && null !== ft())
2042
- return () => x(nn, { ...e2, onBeforeEnter: i2, onAfterEnter: d2, onBeforeLeave: c2, onAfterLeave: g2 }, a2);
2043
- let m2 = s(null), v2 = u(() => e2.unmount ? at.Unmount : at.Hidden);
2044
- o2({ el: m2, $el: m2 });
2045
- let { show: y2, appear: w2 } = function() {
2046
- let e3 = f(Jl, null);
2051
+ r2.value &= ~ht.Closing, t2("afterLeave");
2052
+ }
2053
+ if (null === v(Zl, null) && null !== bt())
2054
+ return () => w(on, { ...e2, onBeforeEnter: i2, onAfterEnter: d2, onBeforeLeave: c2, onAfterLeave: g2 }, a2);
2055
+ let f2 = s(null), h2 = u(() => e2.unmount ? it.Unmount : it.Hidden);
2056
+ o2({ el: f2, $el: f2 });
2057
+ let { show: x2, appear: k2 } = function() {
2058
+ let e3 = v(Zl, null);
2047
2059
  if (null === e3)
2048
2060
  throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");
2049
2061
  return e3;
2050
- }(), { register: k2, unregister: C2 } = function() {
2051
- let e3 = f(Zl, null);
2062
+ }(), { register: S2, unregister: O2 } = function() {
2063
+ let e3 = v(Ql, null);
2052
2064
  if (null === e3)
2053
2065
  throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");
2054
2066
  return e3;
2055
- }(), M2 = s(y2.value ? "visible" : "hidden"), D2 = { value: true }, T2 = De(), E2 = { value: false }, I2 = Ql(() => {
2056
- !E2.value && "hidden" !== M2.value && (M2.value = "hidden", C2(T2), g2());
2067
+ }(), M2 = s(x2.value ? "visible" : "hidden"), D2 = { value: true }, T2 = Ie(), E2 = { value: false }, I2 = tn(() => {
2068
+ !E2.value && "hidden" !== M2.value && (M2.value = "hidden", O2(T2), g2());
2057
2069
  });
2058
- b(() => {
2059
- let e3 = k2(T2);
2060
- O(e3);
2061
- }), h(() => {
2062
- if (v2.value === at.Hidden && T2) {
2063
- if (y2.value && "visible" !== M2.value)
2070
+ y(() => {
2071
+ let e3 = S2(T2);
2072
+ m(e3);
2073
+ }), b(() => {
2074
+ if (h2.value === it.Hidden && T2) {
2075
+ if (x2.value && "visible" !== M2.value)
2064
2076
  return void (M2.value = "visible");
2065
- Ee(M2.value, { hidden: () => C2(T2), visible: () => k2(T2) });
2077
+ Pe(M2.value, { hidden: () => O2(T2), visible: () => S2(T2) });
2066
2078
  }
2067
2079
  });
2068
- let _2 = Kl(e2.enter), P2 = Kl(e2.enterFrom), j2 = Kl(e2.enterTo), R2 = Kl(e2.entered), B2 = Kl(e2.leave), A2 = Kl(e2.leaveFrom), L2 = Kl(e2.leaveTo);
2069
- return b(() => {
2070
- h(() => {
2080
+ let _2 = Gl(e2.enter), P2 = Gl(e2.enterFrom), j2 = Gl(e2.enterTo), R2 = Gl(e2.entered), B2 = Gl(e2.leave), A2 = Gl(e2.leaveFrom), L2 = Gl(e2.leaveTo);
2081
+ return y(() => {
2082
+ b(() => {
2071
2083
  if ("visible" === M2.value) {
2072
- let e3 = Te(m2);
2084
+ let e3 = _e(f2);
2073
2085
  if (e3 instanceof Comment && "" === e3.data)
2074
2086
  throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
2075
2087
  }
2076
2088
  });
2077
- }), b(() => {
2078
- p([y2], (e3, t3, l3) => {
2089
+ }), y(() => {
2090
+ p([x2], (e3, t3, l3) => {
2079
2091
  (function(e4) {
2080
- let t4 = D2.value && !w2.value, l4 = Te(m2);
2081
- !l4 || !(l4 instanceof HTMLElement) || t4 || (E2.value = true, y2.value && i2(), y2.value || c2(), e4(y2.value ? Wl(l4, _2, P2, j2, R2, (e5) => {
2082
- E2.value = false, e5 === ql.Finished && d2();
2083
- }) : Wl(l4, B2, A2, L2, R2, (e5) => {
2084
- E2.value = false, e5 === ql.Finished && (Xl(I2) || (M2.value = "hidden", C2(T2), g2()));
2092
+ let t4 = D2.value && !k2.value, l4 = _e(f2);
2093
+ !l4 || !(l4 instanceof HTMLElement) || t4 || (E2.value = true, x2.value && i2(), x2.value || c2(), e4(x2.value ? Jl(l4, _2, P2, j2, R2, (e5) => {
2094
+ E2.value = false, e5 === Kl.Finished && d2();
2095
+ }) : Jl(l4, B2, A2, L2, R2, (e5) => {
2096
+ E2.value = false, e5 === Kl.Finished && (en(I2) || (M2.value = "hidden", O2(T2), g2()));
2085
2097
  })));
2086
2098
  })(l3), D2.value = false;
2087
2099
  }, { immediate: true });
2088
- }), S(Zl, I2), vt(u(() => Ee(M2.value, { visible: mt.Open, hidden: mt.Closed }) | r2.value)), () => {
2089
- let { appear: t3, show: o3, enter: r3, enterFrom: i3, enterTo: s2, entered: u2, leave: d3, leaveFrom: c3, leaveTo: p2, ...g3 } = e2, f2 = { ref: m2 };
2090
- return ot({ theirProps: { ...g3, ...w2.value && y2.value && Pe.isServer ? { class: n([l2.class, g3.class, ..._2, ...P2]) } : {} }, ourProps: f2, slot: {}, slots: a2, attrs: l2, features: en, visible: "visible" === M2.value, name: "TransitionChild" });
2100
+ }), C(Ql, I2), yt(u(() => Pe(M2.value, { visible: ht.Open, hidden: ht.Closed }) | r2.value)), () => {
2101
+ let { appear: t3, show: o3, enter: r3, enterFrom: i3, enterTo: s2, entered: u2, leave: d3, leaveFrom: c3, leaveTo: p2, ...g3 } = e2, m2 = { ref: f2 };
2102
+ return st({ theirProps: { ...g3, ...k2.value && x2.value && Be.isServer ? { class: n([l2.class, g3.class, ..._2, ...P2]) } : {} }, ourProps: m2, slot: {}, slots: a2, attrs: l2, features: ln, visible: "visible" === M2.value, name: "TransitionChild" });
2091
2103
  };
2092
- } }), ln = tn, nn = k({ inheritAttrs: false, props: { as: { type: [Object, String], default: "div" }, show: { type: [Boolean], default: null }, unmount: { type: [Boolean], default: true }, appear: { type: [Boolean], default: false }, enter: { type: [String], default: "" }, enterFrom: { type: [String], default: "" }, enterTo: { type: [String], default: "" }, entered: { type: [String], default: "" }, leave: { type: [String], default: "" }, leaveFrom: { type: [String], default: "" }, leaveTo: { type: [String], default: "" } }, emits: { beforeEnter: () => true, afterEnter: () => true, beforeLeave: () => true, afterLeave: () => true }, setup(e2, { emit: t2, attrs: l2, slots: n2 }) {
2093
- let a2 = ft(), o2 = u(() => null === e2.show && null !== a2 ? (a2.value & mt.Open) === mt.Open : e2.show);
2094
- h(() => {
2104
+ } }), an = nn, on = 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 }) {
2105
+ let a2 = bt(), o2 = u(() => null === e2.show && null !== a2 ? (a2.value & ht.Open) === ht.Open : e2.show);
2106
+ b(() => {
2095
2107
  if (![true, false].includes(o2.value))
2096
2108
  throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.');
2097
2109
  });
2098
- let r2 = s(o2.value ? "visible" : "hidden"), i2 = Ql(() => {
2110
+ let r2 = s(o2.value ? "visible" : "hidden"), i2 = tn(() => {
2099
2111
  r2.value = "hidden";
2100
2112
  }), d2 = s(true), c2 = { show: o2, appear: u(() => e2.appear || !d2.value) };
2101
- return b(() => {
2102
- h(() => {
2103
- d2.value = false, o2.value ? r2.value = "visible" : Xl(i2) || (r2.value = "hidden");
2113
+ return y(() => {
2114
+ b(() => {
2115
+ d2.value = false, o2.value ? r2.value = "visible" : en(i2) || (r2.value = "hidden");
2104
2116
  });
2105
- }), S(Zl, i2), S(Jl, c2), () => {
2106
- let a3 = dt(e2, ["show", "appear", "unmount", "onBeforeEnter", "onBeforeLeave", "onAfterEnter", "onAfterLeave"]), o3 = { unmount: e2.unmount };
2107
- return ot({ ourProps: { ...o3, as: "template" }, theirProps: {}, slot: {}, slots: { ...n2, default: () => [x(ln, { onBeforeEnter: () => t2("beforeEnter"), onAfterEnter: () => t2("afterEnter"), onBeforeLeave: () => t2("beforeLeave"), onAfterLeave: () => t2("afterLeave"), ...l2, ...o3, ...a3 }, n2.default)] }, attrs: {}, features: en, visible: "visible" === r2.value, name: "Transition" });
2117
+ }), C(Ql, i2), C(Zl, c2), () => {
2118
+ let a3 = gt(e2, ["show", "appear", "unmount", "onBeforeEnter", "onBeforeLeave", "onAfterEnter", "onAfterLeave"]), o3 = { unmount: e2.unmount };
2119
+ return st({ ourProps: { ...o3, as: "template" }, theirProps: {}, slot: {}, slots: { ...n2, default: () => [w(an, { onBeforeEnter: () => t2("beforeEnter"), onAfterEnter: () => t2("afterEnter"), onBeforeLeave: () => t2("beforeLeave"), onAfterLeave: () => t2("afterLeave"), ...l2, ...o3, ...a3 }, n2.default)] }, attrs: {}, features: ln, visible: "visible" === r2.value, name: "Transition" });
2108
2120
  };
2109
2121
  } });
2110
- function an(t2, l2) {
2122
+ function rn(t2, l2) {
2111
2123
  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: "M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3" })]);
2112
2124
  }
2113
- function on(t2, l2) {
2125
+ function sn(t2, l2) {
2114
2126
  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: "M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18" })]);
2115
2127
  }
2116
- function rn(t2, l2) {
2128
+ function un(t2, l2) {
2117
2129
  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 5.25h16.5m-16.5 4.5h16.5m-16.5 4.5h16.5m-16.5 4.5h16.5" })]);
2118
2130
  }
2119
- function sn(t2, l2) {
2131
+ function dn(t2, l2) {
2120
2132
  return e(), a("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", "aria-hidden": "true", "data-slot": "icon" }, [i("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z" })]);
2121
2133
  }
2122
- function un(t2, l2) {
2134
+ function cn(t2, l2) {
2123
2135
  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: "m4.5 12.75 6 6 9-13.5" })]);
2124
2136
  }
2125
- function dn(t2, l2) {
2137
+ function pn(t2, l2) {
2126
2138
  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: "m19.5 8.25-7.5 7.5-7.5-7.5" })]);
2127
2139
  }
2128
- function cn(t2, l2) {
2140
+ function gn(t2, l2) {
2129
2141
  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: "M15.75 19.5 8.25 12l7.5-7.5" })]);
2130
2142
  }
2131
- function pn(t2, l2) {
2143
+ function fn(t2, l2) {
2132
2144
  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: "m8.25 4.5 7.5 7.5-7.5 7.5" })]);
2133
2145
  }
2134
- function gn(t2, l2) {
2146
+ function mn(t2, l2) {
2135
2147
  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: "M8.25 15 12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9" })]);
2136
2148
  }
2137
- function mn(t2, l2) {
2149
+ function vn(t2, l2) {
2138
2150
  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: "m4.5 15.75 7.5-7.5 7.5 7.5" })]);
2139
2151
  }
2140
- function fn(t2, l2) {
2152
+ function hn(t2, l2) {
2141
2153
  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: "M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z" })]);
2142
2154
  }
2143
- function vn(t2, l2) {
2155
+ function bn(t2, l2) {
2144
2156
  return e(), a("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", "aria-hidden": "true", "data-slot": "icon" }, [i("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M10.05 4.575a1.575 1.575 0 1 0-3.15 0v3m3.15-3v-1.5a1.575 1.575 0 0 1 3.15 0v1.5m-3.15 0 .075 5.925m3.075.75V4.575m0 0a1.575 1.575 0 0 1 3.15 0V15M6.9 7.575a1.575 1.575 0 1 0-3.15 0v8.175a6.75 6.75 0 0 0 6.75 6.75h2.018a5.25 5.25 0 0 0 3.712-1.538l1.732-1.732a5.25 5.25 0 0 0 1.538-3.712l.003-2.024a.668.668 0 0 1 .198-.471 1.575 1.575 0 1 0-2.228-2.228 3.818 3.818 0 0 0-1.12 2.687M6.9 7.575V12m6.27 4.318A4.49 4.49 0 0 1 16.35 15m.002 0h-.002" })]);
2145
2157
  }
2146
- function hn(t2, l2) {
2158
+ function yn(t2, l2) {
2147
2159
  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: "m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25" })]);
2148
2160
  }
2149
- function bn(t2, l2) {
2161
+ function xn(t2, l2) {
2150
2162
  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: "m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z" })]);
2151
2163
  }
2152
- function yn(t2, l2) {
2164
+ function wn(t2, l2) {
2153
2165
  return e(), a("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", "aria-hidden": "true", "data-slot": "icon" }, [i("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z" })]);
2154
2166
  }
2155
- function xn(t2, l2) {
2167
+ function kn(t2, l2) {
2156
2168
  return e(), a("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", "aria-hidden": "true", "data-slot": "icon" }, [i("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0" })]);
2157
2169
  }
2158
- function wn(t2, l2) {
2170
+ function Sn(t2, l2) {
2159
2171
  return e(), a("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", "aria-hidden": "true", "data-slot": "icon" }, [i("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z" })]);
2160
2172
  }
2161
- function kn(t2, l2) {
2173
+ function Cn(t2, l2) {
2162
2174
  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" })]);
2163
2175
  }
2164
- const Sn = { class: "py-1" }, Cn = ["onClick"], On = { key: 1, class: "animate-pulse px-4 py-2 bg-gray-200 rounded-md flex inline-flex items-center relative inline-block text-left" }, Mn = i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28" }, null, -1), Dn = { name: "uiDropdown" }, Tn = Object.assign(Dn, { 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 }) {
2176
+ const On = { class: "py-1" }, Mn = ["onClick"], Dn = { 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), En = { name: "uiDropdown" }, In = Object.assign(En, { 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 }) {
2165
2177
  const s2 = r2, c2 = l2, p2 = u(() => {
2166
2178
  let e2 = c2.items.find((e3) => true === e3.active);
2167
2179
  return e2 ? e2.name : c2.label;
2168
2180
  });
2169
- return (r3, u2) => l2.loading ? (e(), a("div", On, [Mn, o(d(dn), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5 text-gray-200 dark:text-gray-300" })])) : (e(), t(d(jl), { key: 0, as: "div", class: n(["relative inline-block text-left", { "opacity-25": l2.disabled }]) }, { default: E(() => [i("div", null, [o(d(Rl), { class: "inline-flex justify-between w-full rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-indigo-500" }, { default: E(() => [I(_(p2.value) + " ", 1), o(d(dn), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5" })]), _: 1 })]), o(P, { "enter-active-class": "transition ease-out duration-100", "enter-from-class": "transform opacity-0 scale-95", "enter-to-class": "transform opacity-100 scale-100", "leave-active-class": "transition ease-in duration-75", "leave-from-class": "transform opacity-100 scale-100", "leave-to-class": "transform opacity-0 scale-95" }, { default: E(() => [l2.disabled ? R("", true) : (e(), t(d(Bl), { 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", Sn, [(e(true), a(w, null, j(l2.items, (l3, a2) => (e(), t(d(Al), { key: a2 }, { default: E(() => [i("a", { onClick: (e2) => ((e3) => {
2181
+ return (r3, u2) => l2.loading ? (e(), a("div", Dn, [Tn, o(d(pn), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5 text-gray-200 dark:text-gray-300" })])) : (e(), t(d(Bl), { key: 0, as: "div", class: n(["relative inline-block text-left", { "opacity-25": l2.disabled }]) }, { default: E(() => [i("div", null, [o(d(Al), { class: "inline-flex justify-between w-full rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-indigo-500" }, { default: E(() => [I(_(p2.value) + " ", 1), o(d(pn), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5" })]), _: 1 })]), o(P, { "enter-active-class": "transition ease-out duration-100", "enter-from-class": "transform opacity-0 scale-95", "enter-to-class": "transform opacity-100 scale-100", "leave-active-class": "transition ease-in duration-75", "leave-from-class": "transform opacity-100 scale-100", "leave-to-class": "transform opacity-0 scale-95" }, { default: E(() => [l2.disabled ? R("", true) : (e(), t(d(Ll), { 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", On, [(e(true), a(k, null, j(l2.items, (l3, a2) => (e(), t(d(Fl), { key: a2 }, { default: E(() => [i("a", { onClick: (e2) => ((e3) => {
2170
2182
  c2.disabled || s2("optionSelected", e3.value);
2171
- })(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, Cn)]), _: 2 }, 1024))), 128))])]), _: 1 }, 8, ["class"]))]), _: 1 })]), _: 1 }, 8, ["class"]));
2172
- } }), En = { key: 0 }, In = { class: "flex justify-between" }, _n = { key: 0, class: "block text-sm font-medium text-gray-700" }, Pn = { key: 1, class: "text-[10px] text-gray-500 uppercase justify-self-end" }, jn = ["disabled", "name", "placeholder", "type"], Rn = { key: 2, class: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none" }, Bn = { key: 1, class: "animate-pulse" }, An = { 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" }, Ln = 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), Fn = { name: "uiInput" }, Nn = Object.assign(Fn, { props: { label: String, type: { type: String, default: "text" }, name: String, placeholder: { type: String, default: "..." }, icon: { type: Function, default: () => {
2183
+ })(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, Mn)]), _: 2 }, 1024))), 128))])]), _: 1 }, 8, ["class"]))]), _: 1 })]), _: 1 }, 8, ["class"]));
2184
+ } }), _n = { key: 0 }, Pn = { class: "flex justify-between" }, jn = { key: 0, class: "block text-sm font-medium text-gray-700" }, Rn = { key: 1, class: "text-[10px] text-gray-500 uppercase justify-self-end" }, Bn = ["disabled", "name", "placeholder", "type"], An = { key: 2, class: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none" }, Ln = { key: 1, class: "animate-pulse" }, Fn = { 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" }, Nn = 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), zn = { name: "uiInput" }, $n = Object.assign(zn, { props: { label: String, type: { type: String, default: "text" }, name: String, placeholder: { type: String, default: "..." }, icon: { type: Function, default: () => {
2173
2185
  } }, disabled: Boolean, color: { type: String, default: "gray" }, value: { type: String, default: "" }, error: String, optional: String, addOn: String, rightAddOn: String, loading: { type: Boolean, default: true } }, emits: ["inputChanged", "rightAddOnClicked", "addOnClicked"], setup(t2, { emit: l2 }) {
2174
2186
  const r2 = l2, u2 = t2, c2 = s(u2.value);
2175
2187
  return p(() => u2.value, (e2) => {
2176
2188
  c2.value = e2, r2("inputChanged", { name: u2.name, value: c2.value });
2177
- }), (l3, r3) => t2.loading ? (e(), a("div", Bn, [void 0 !== t2.label ? (e(), a("div", An)) : R("", true), Ln])) : (e(), a("div", En, [i("div", In, [t2.label ? (e(), a("label", _n, _(t2.label), 1)) : R("", true), t2.optional ? (e(), a("span", Pn, _(t2.optional), 1)) : R("", true)]), i("div", { class: n([{ "mt-1": t2.label }, "relative flex"]) }, [t2.addOn ? (e(), a("span", { key: 0, onClick: r3[0] || (r3[0] = (e2) => l3.$emit("addOnClicked")), class: "inline-flex items-center px-3 rounded-l-md border border-r-0 border-gray-300 bg-gray-50 text-gray-500 sm:text-sm cursor-pointer" }, _(t2.addOn), 1)) : R("", true), B(i("input", { "onUpdate:modelValue": r3[1] || (r3[1] = (e2) => c2.value = e2), class: n([{ "border-gray-300": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "border-red-400": "danger" === t2.color, "border-yellow-400": "warning" === t2.color, "border-green-400": "success" === t2.color, "bg-gray-100": t2.disabled, "text-black": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "text-red-400": "danger" === t2.color, "text-yellow-400": "warning" === t2.color, "text-green-400": "success" === t2.color, "rounded-md": !t2.addOn || !t2.rightAddOn, "rounded-r-md": t2.addOn, "rounded-l-none": t2.addOn, "rounded-l-md": t2.rightAddOn, "rounded-r-none": t2.rightAddOn }, "shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 placeholder-gray-300"]), disabled: t2.disabled, name: t2.name, placeholder: t2.placeholder, type: t2.type, onInput: r3[2] || (r3[2] = (e2) => l3.$emit("inputChanged", { value: e2.target.value, name: e2.target.name })) }, null, 42, jn), [[A, c2.value]]), t2.rightAddOn ? (e(), a("span", { key: 1, onClick: r3[3] || (r3[3] = (e2) => l3.$emit("rightAddOnClicked")), class: "inline-flex items-center px-3 rounded-r-md border border-l-0 border-gray-300 bg-gray-50 hover:bg-gray-200 text-gray-500 sm:text-sm cursor-pointer" }, _(t2.rightAddOn), 1)) : R("", true), t2.icon ? (e(), a("div", Rn, [o(J, { icon: t2.icon, color: t2.color, loading: t2.loading }, null, 8, ["icon", "color", "loading"]), B(o(J, { icon: d(un), color: "green", loading: t2.loading }, null, 8, ["icon", "loading"]), [[L, "success" === t2.color]]), B(o(J, { icon: d(fn), color: "yellow", loading: t2.loading }, null, 8, ["icon", "loading"]), [[L, "warning" === t2.color]]), B(o(J, { icon: d(kn), color: "red", loading: t2.loading }, null, 8, ["icon", "loading"]), [[L, "danger" === t2.color]])])) : R("", true)], 2), B(i("p", { class: n([{ "text-gray-400": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "text-red-400": "danger" === t2.color, "text-yellow-400": "warning" === t2.color, "text-green-400": "success" === t2.color }, "mt-2 text-xs flex flex-row items-center"]) }, _(t2.error), 3), [[L, t2.error]])]));
2178
- } }), zn = { key: 0 }, $n = { class: "flex justify-between" }, Vn = { key: 0, class: "block text-sm font-medium text-gray-700" }, Hn = { key: 1, class: "text-[10px] text-gray-500 uppercase" }, Yn = { class: "space-y-1 flex flex-col items-center justify-center" }, Un = { class: "flex text-sm text-gray-600 flex flex-col sm:flex-row text-center" }, qn = { for: "file-upload", class: "relative cursor-pointer rounded-md font-medium text-indigo-600 focus-within:outline-none focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 hover:text-indigo-500" }, Wn = ["accept"], Kn = { class: "pl-1" }, Jn = { class: "text-xs text-gray-500 pb-4" }, Gn = { class: "mt-2 text-xs flex flex-row items-center text-red-300" }, Zn = { key: 1, class: "animate-pulse" }, Xn = [i("div", { class: "flex justify-center items-center flex-col rounded-md border-2 border-dashed px-6 pt-5 pb-6 border-gray-200" }, [i("div", { class: "rounded-full h-20 w-20 bg-gray-200 mb-4" }), i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full md:w-1/3 mb-3" }), i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full md:w-1/4 mb-3" })], -1)], Qn = { name: "uiInputFile" }, ea = Object.assign(Qn, { props: { name: String, label: String, optional: String, placeholder: String, dragAndDrop: String, fileTypesAndSizes: String, error: String, accept: String, icon: { type: Function, default: function(t2, l2) {
2189
+ }), (l3, r3) => t2.loading ? (e(), a("div", Ln, [void 0 !== t2.label ? (e(), a("div", Fn)) : R("", true), Nn])) : (e(), a("div", _n, [i("div", Pn, [t2.label ? (e(), a("label", jn, _(t2.label), 1)) : R("", true), t2.optional ? (e(), a("span", Rn, _(t2.optional), 1)) : R("", true)]), i("div", { class: n([{ "mt-1": t2.label }, "relative flex"]) }, [t2.addOn ? (e(), a("span", { key: 0, onClick: r3[0] || (r3[0] = (e2) => l3.$emit("addOnClicked")), class: "inline-flex items-center px-3 rounded-l-md border border-r-0 border-gray-300 bg-gray-50 text-gray-500 sm:text-sm cursor-pointer" }, _(t2.addOn), 1)) : R("", true), B(i("input", { "onUpdate:modelValue": r3[1] || (r3[1] = (e2) => c2.value = e2), class: n([{ "border-gray-300": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "border-red-400": "danger" === t2.color, "border-yellow-400": "warning" === t2.color, "border-green-400": "success" === t2.color, "bg-gray-100": t2.disabled, "text-black": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "text-red-400": "danger" === t2.color, "text-yellow-400": "warning" === t2.color, "text-green-400": "success" === t2.color, "rounded-md": !t2.addOn || !t2.rightAddOn, "rounded-r-md": t2.addOn, "rounded-l-none": t2.addOn, "rounded-l-md": t2.rightAddOn, "rounded-r-none": t2.rightAddOn }, "shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 placeholder-gray-300"]), disabled: t2.disabled, name: t2.name, placeholder: t2.placeholder, type: t2.type, onInput: r3[2] || (r3[2] = (e2) => l3.$emit("inputChanged", { value: e2.target.value, name: e2.target.name })) }, null, 42, Bn), [[A, c2.value]]), t2.rightAddOn ? (e(), a("span", { key: 1, onClick: r3[3] || (r3[3] = (e2) => l3.$emit("rightAddOnClicked")), class: "inline-flex items-center px-3 rounded-r-md border border-l-0 border-gray-300 bg-gray-50 hover:bg-gray-200 text-gray-500 sm:text-sm cursor-pointer" }, _(t2.rightAddOn), 1)) : R("", true), t2.icon ? (e(), a("div", An, [o(J, { icon: t2.icon, color: t2.color, loading: t2.loading }, null, 8, ["icon", "color", "loading"]), B(o(J, { icon: d(cn), color: "green", loading: t2.loading }, null, 8, ["icon", "loading"]), [[L, "success" === t2.color]]), B(o(J, { icon: d(hn), color: "yellow", loading: t2.loading }, null, 8, ["icon", "loading"]), [[L, "warning" === t2.color]]), B(o(J, { icon: d(Cn), color: "red", loading: t2.loading }, null, 8, ["icon", "loading"]), [[L, "danger" === t2.color]])])) : R("", true)], 2), B(i("p", { class: n([{ "text-gray-400": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "text-red-400": "danger" === t2.color, "text-yellow-400": "warning" === t2.color, "text-green-400": "success" === t2.color }, "mt-2 text-xs flex flex-row items-center"]) }, _(t2.error), 3), [[L, t2.error]])]));
2190
+ } }), Vn = { key: 0 }, Hn = { class: "flex justify-between" }, Yn = { key: 0, class: "block text-sm font-medium text-gray-700" }, Un = { key: 1, class: "text-[10px] text-gray-500 uppercase" }, qn = { class: "space-y-1 flex flex-col items-center justify-center" }, Wn = { class: "flex text-sm text-gray-600 flex flex-col sm:flex-row text-center" }, Kn = { for: "file-upload", class: "relative cursor-pointer rounded-md font-medium text-indigo-600 focus-within:outline-none focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 hover:text-indigo-500" }, Jn = ["accept"], Gn = { class: "pl-1" }, Zn = { class: "text-xs text-gray-500 pb-4" }, Xn = { class: "mt-2 text-xs flex flex-row items-center text-red-300" }, Qn = { key: 1, class: "animate-pulse" }, ea = [i("div", { class: "flex justify-center items-center flex-col rounded-md border-2 border-dashed px-6 pt-5 pb-6 border-gray-200" }, [i("div", { class: "rounded-full h-20 w-20 bg-gray-200 mb-4" }), i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full md:w-1/3 mb-3" }), i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full md:w-1/4 mb-3" })], -1)], ta = { name: "uiInputFile" }, la = Object.assign(ta, { props: { name: String, label: String, optional: String, placeholder: String, dragAndDrop: String, fileTypesAndSizes: String, error: String, accept: String, icon: { type: Function, default: function(t2, l2) {
2179
2191
  return e(), a("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", "aria-hidden": "true", "data-slot": "icon" }, [i("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M7.5 7.5h-.75A2.25 2.25 0 0 0 4.5 9.75v7.5a2.25 2.25 0 0 0 2.25 2.25h7.5a2.25 2.25 0 0 0 2.25-2.25v-7.5a2.25 2.25 0 0 0-2.25-2.25h-.75m0-3-3-3m0 0-3 3m3-3v11.25m6-2.25h.75a2.25 2.25 0 0 1 2.25 2.25v7.5a2.25 2.25 0 0 1-2.25 2.25h-7.5a2.25 2.25 0 0 1-2.25-2.25v-.75" })]);
2180
2192
  } }, loading: { type: Boolean, default: true } }, emits: ["filesUploaded"], setup(t2, { emit: l2 }) {
2181
2193
  const r2 = s(""), u2 = l2, c2 = t2, p2 = (e2) => {
@@ -2184,42 +2196,42 @@ const Sn = { class: "py-1" }, Cn = ["onClick"], On = { key: 1, class: "animate-p
2184
2196
  }, g2 = (e2) => {
2185
2197
  u2("filesUploaded", e2.target.files), c2.filename = e2.target.files[0].name;
2186
2198
  };
2187
- return (l3, s2) => t2.loading ? (e(), a("div", Zn, Xn)) : (e(), a("div", zn, [i("div", $n, [t2.label ? (e(), a("label", Vn, _(t2.label), 1)) : R("", true), t2.optional ? (e(), a("span", Hn, _(t2.optional), 1)) : R("", true)]), i("div", { class: n([[{ "mt-1": t2.label }, { "border-gray-300 hover:border-gray-400": !t2.error }, { "border-red-300 hover:border-red-400": t2.error }], "dropArea flex justify-center rounded-md border-2 border-dashed px-6 pt-5 pb-6"]), onDragover: s2[0] || (s2[0] = F(() => {
2188
- }, ["prevent"])), onDrop: F(p2, ["prevent"]) }, [i("div", Yn, [o(J, { icon: t2.icon, size: "massive", color: "gray", "aria-hidden": "true", class: "mb-4", loading: t2.loading }, null, 8, ["icon", "loading"]), i("div", Un, [i("label", qn, [i("span", null, _(t2.placeholder), 1), i("input", { id: "file-upload", name: "file-upload", type: "file", class: "sr-only", accept: t2.accept, onChange: g2 }, null, 40, Wn)]), i("p", Kn, _(t2.dragAndDrop), 1)]), i("p", Jn, _(t2.fileTypesAndSizes), 1), B(i("p", { class: "font-bold text-xs uppercase block p-2 bg-gray-200 rounded" }, _(r2.value), 513), [[L, "" !== r2.value]])])], 34), B(i("p", Gn, [o(J, { icon: d(wn), color: "red", class: "mr-2", loading: t2.loading }, null, 8, ["icon", "loading"]), I(_(t2.error), 1)], 512), [[L, t2.error]])]));
2189
- } }), ta = { class: "relative mt-1" }, la = { key: 1, class: "animate-pulse px-4 py-2.5 bg-gray-200 rounded-md flex justify-between items-center w-full" }, na = i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1), aa = { name: "uiSelect" }, oa = Object.assign(aa, { 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 }) {
2190
- const c2 = s(""), p2 = r2, g2 = l2, m2 = u(() => "" === c2.value ? g2.items : g2.items.filter((e2) => e2.name.toLowerCase().includes(c2.value.toLowerCase()))), f2 = u(() => g2.select);
2191
- return (r3, s2) => l2.loading ? (e(), a("div", la, [na, o(d(gn), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5 text-gray-300 dark:text-gray-400" })])) : (e(), t(d(jt), { key: 0, modelValue: f2.value, "onUpdate:modelValue": [s2[1] || (s2[1] = (e2) => f2.value = e2), s2[2] || (s2[2] = (e2) => p2("selectChanged", e2))], disabled: l2.disabled, as: "div" }, { default: E(() => [o(d(Rt), { class: "block text-sm font-medium" }, { default: E(() => [I(_(l2.label), 1)]), _: 1 }), i("div", ta, [o(d(At), { "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(d(Bt), { class: "absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none" }, { default: E(() => [o(d(gn), { "aria-hidden": "true", class: "h-5 w-5 text-gray-400" })]), _: 1 }), m2.value.length > 0 ? (e(), t(d(Lt), { key: 0, class: "absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm" }, { default: E(() => [(e(true), a(w, null, j(m2.value, (l3) => (e(), t(d(Ft), { key: l3.id, value: l3, as: "template" }, { default: E(({ active: t2, selected: r4 }) => [i("li", { class: n(["relative cursor-default select-none py-2 pl-3 pr-9", t2 ? "bg-indigo-600 text-white" : "text-gray-900"]) }, [i("span", { class: n(["block truncate", r4 && "font-semibold"]) }, _(l3.name), 3), r4 ? (e(), a("span", { key: 0, class: n(["absolute inset-y-0 right-0 flex items-center pr-4", t2 ? "text-white" : "text-indigo-600"]) }, [o(d(un), { "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"]));
2192
- } }), ra = { key: 1, class: "inline-flex items-center px-3 py-2.5 rounded text-xs font-medium leading-none animate-pulse bg-gray-200" }, ia = [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12" }, null, -1)], sa = { name: "uiTag" }, ua = Object.assign(sa, { props: { color: { type: String, default: "primary" }, loading: { type: Boolean, default: true } }, setup: (t2) => (l2, o2) => t2.loading ? (e(), a("div", ra, ia)) : (e(), a("span", { key: 0, class: n([{ "bg-indigo-100 text-indigo-800 border border-indigo-200": "primary" === t2.color, "bg-red-100 text-red-800 border border-red-200": "danger" === t2.color, "bg-yellow-100 text-yellow-800 border border-yellow-200": "warning" === t2.color, "bg-green-100 text-green-800 border border-green-200": "success" === t2.color, "bg-black text-white border border-black": "black" === t2.color, "text-black border border-gray-200 bg-white": "white" === t2.color }, "inline-flex items-center px-3 py-2 rounded text-xs font-medium leading-none"]) }, [r(l2.$slots, "default")], 2)) }), da = { key: 0 }, ca = { key: 0, class: "block text-sm font-medium text-gray-700" }, pa = ["disabled", "placeholder"], ga = { key: 1, class: "animate-pulse" }, ma = [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/3 md:w-1/4 mb-1.5" }, null, -1), i("div", { class: "h-24 bg-gray-200 rounded-lg flex inline-flex items-center relative inline-block text-left w-full" }, null, -1)], fa = { name: "uiTextArea" }, va = Object.assign(fa, { props: { label: String, placeholder: { type: String, default: "..." }, value: String, color: String, disabled: { type: Boolean, default: false }, error: String, loading: { type: Boolean, default: true } }, emits: ["inputChanged"], setup(t2, { emit: l2 }) {
2199
+ return (l3, s2) => t2.loading ? (e(), a("div", Qn, ea)) : (e(), a("div", Vn, [i("div", Hn, [t2.label ? (e(), a("label", Yn, _(t2.label), 1)) : R("", true), t2.optional ? (e(), a("span", Un, _(t2.optional), 1)) : R("", true)]), i("div", { class: n([[{ "mt-1": t2.label }, { "border-gray-300 hover:border-gray-400": !t2.error }, { "border-red-300 hover:border-red-400": t2.error }], "dropArea flex justify-center rounded-md border-2 border-dashed px-6 pt-5 pb-6"]), onDragover: s2[0] || (s2[0] = F(() => {
2200
+ }, ["prevent"])), onDrop: F(p2, ["prevent"]) }, [i("div", qn, [o(J, { icon: t2.icon, size: "massive", color: "gray", "aria-hidden": "true", class: "mb-4", loading: t2.loading }, null, 8, ["icon", "loading"]), i("div", Wn, [i("label", Kn, [i("span", null, _(t2.placeholder), 1), i("input", { id: "file-upload", name: "file-upload", type: "file", class: "sr-only", accept: t2.accept, onChange: g2 }, null, 40, Jn)]), i("p", Gn, _(t2.dragAndDrop), 1)]), i("p", Zn, _(t2.fileTypesAndSizes), 1), B(i("p", { class: "font-bold text-xs uppercase block p-2 bg-gray-200 rounded" }, _(r2.value), 513), [[L, "" !== r2.value]])])], 34), B(i("p", Xn, [o(J, { icon: d(Sn), color: "red", class: "mr-2", loading: t2.loading }, null, 8, ["icon", "loading"]), I(_(t2.error), 1)], 512), [[L, t2.error]])]));
2201
+ } }), na = { class: "relative mt-1" }, aa = { key: 1, class: "animate-pulse px-4 py-2.5 bg-gray-200 rounded-md flex justify-between items-center w-full" }, oa = i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1), ra = { name: "uiSelect" }, ia = Object.assign(ra, { 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 }) {
2202
+ const c2 = s(""), p2 = r2, g2 = l2, f2 = u(() => "" === c2.value ? g2.items : g2.items.filter((e2) => e2.name.toLowerCase().includes(c2.value.toLowerCase()))), m2 = u(() => g2.select);
2203
+ return (r3, s2) => l2.loading ? (e(), a("div", aa, [oa, o(d(mn), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5 text-gray-300 dark:text-gray-400" })])) : (e(), t(d(Bt), { 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(d(At), { class: "block text-sm font-medium" }, { default: E(() => [I(_(l2.label), 1)]), _: 1 }), i("div", na, [o(d(Ft), { "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(d(Lt), { class: "absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none" }, { default: E(() => [o(d(mn), { "aria-hidden": "true", class: "h-5 w-5 text-gray-400" })]), _: 1 }), f2.value.length > 0 ? (e(), t(d(Nt), { 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, j(f2.value, (l3) => (e(), t(d(zt), { key: l3.id, value: l3, as: "template" }, { default: E(({ active: t2, selected: r4 }) => [i("li", { class: n(["relative cursor-default select-none py-2 pl-3 pr-9", t2 ? "bg-indigo-600 text-white" : "text-gray-900"]) }, [i("span", { class: n(["block truncate", r4 && "font-semibold"]) }, _(l3.name), 3), r4 ? (e(), a("span", { key: 0, class: n(["absolute inset-y-0 right-0 flex items-center pr-4", t2 ? "text-white" : "text-indigo-600"]) }, [o(d(cn), { "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"]));
2204
+ } }), sa = { 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)], da = { name: "uiTag" }, ca = Object.assign(da, { props: { color: { type: String, default: "primary" }, loading: { type: Boolean, default: true } }, setup: (t2) => (l2, o2) => t2.loading ? (e(), a("div", sa, ua)) : (e(), a("span", { key: 0, class: n([{ "bg-indigo-100 text-indigo-800 border border-indigo-200": "primary" === t2.color, "bg-red-100 text-red-800 border border-red-200": "danger" === t2.color, "bg-yellow-100 text-yellow-800 border border-yellow-200": "warning" === t2.color, "bg-green-100 text-green-800 border border-green-200": "success" === t2.color, "bg-black text-white border border-black": "black" === t2.color, "text-black border border-gray-200 bg-white": "white" === t2.color }, "inline-flex items-center px-3 py-2 rounded text-xs font-medium leading-none"]) }, [r(l2.$slots, "default")], 2)) }), pa = { key: 0 }, ga = { key: 0, class: "block text-sm font-medium text-gray-700" }, fa = ["disabled", "placeholder"], ma = { key: 1, class: "animate-pulse" }, va = [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/3 md:w-1/4 mb-1.5" }, null, -1), i("div", { class: "h-24 bg-gray-200 rounded-lg flex inline-flex items-center relative inline-block text-left w-full" }, null, -1)], ha = { name: "uiTextArea" }, ba = Object.assign(ha, { props: { label: String, placeholder: { type: String, default: "..." }, value: String, color: String, disabled: { type: Boolean, default: false }, error: String, loading: { type: Boolean, default: true } }, emits: ["inputChanged"], setup(t2, { emit: l2 }) {
2193
2205
  const r2 = l2, u2 = t2, c2 = (e2) => {
2194
2206
  r2("inputChanged", e2.target.value);
2195
2207
  }, g2 = s(u2.value);
2196
2208
  return p(() => u2.value, (e2) => {
2197
2209
  g2.value = e2, r2("inputChanged", e2);
2198
- }), (l3, r3) => t2.loading ? (e(), a("div", ga, ma)) : (e(), a("div", da, [t2.label ? (e(), a("label", ca, _(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, pa), [[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(J, { icon: d(wn), color: "red", class: "mr-2" }, null, 8, ["icon"]), I(_(t2.error), 1)], 2), [[L, t2.error]])]));
2199
- } }), ha = { class: "text-sm font-medium text-gray-900" }, ba = { key: 0, class: "text-sm text-gray-500 ml-2" }, ya = { key: 1, class: "animate-pulse flex items-center" }, xa = [i("div", { class: "relative bg-gray-200 rounded-full w-12 h-6 p-1 flex items-center" }, [i("div", { class: "rounded-full bg-gray-300 dark:bg-gray-400 h-4 w-4" })], -1), i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-16 ml-2" }, null, -1)], wa = { name: "uiToggle" }, ka = Object.assign(wa, { props: { item: { type: Object, required: true }, checked: { type: Boolean, default: false }, disabled: { type: Boolean, default: false }, loading: { type: Boolean, default: true } }, setup(l2) {
2210
+ }), (l3, r3) => t2.loading ? (e(), a("div", ma, va)) : (e(), a("div", pa, [t2.label ? (e(), a("label", ga, _(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, fa), [[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(J, { icon: d(Sn), color: "red", class: "mr-2" }, null, 8, ["icon"]), I(_(t2.error), 1)], 2), [[L, t2.error]])]));
2211
+ } }), ya = { class: "text-sm font-medium text-gray-900" }, xa = { key: 0, class: "text-sm text-gray-500 ml-2" }, wa = { key: 1, class: "animate-pulse flex items-center" }, ka = [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)], Sa = { name: "uiToggle" }, Ca = Object.assign(Sa, { props: { item: { type: Object, required: true }, checked: { type: Boolean, default: false }, disabled: { type: Boolean, default: false }, loading: { type: Boolean, default: true } }, setup(l2) {
2200
2212
  const r2 = s(l2.checked);
2201
- return (s2, u2) => l2.loading ? (e(), a("div", ya, xa)) : (e(), t(d($l), { key: 0, as: "div", class: "flex items-center relative" }, { default: E(() => [o(d(Vl), { disabled: l2.disabled, onClick: u2[0] || (u2[0] = (e2) => s2.$emit("toggleChanged", { item: l2.item, active: !r2.value })), modelValue: r2.value, "onUpdate:modelValue": u2[1] || (u2[1] = (e2) => r2.value = e2), class: n([r2.value ? "bg-indigo-600" : "bg-gray-200", "relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"]) }, { default: E(() => [i("span", { "aria-hidden": "true", class: n([r2.value ? "translate-x-5" : "translate-x-0", l2.disabled ? "bg-gray-300" : "", "pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out"]) }, null, 2)]), _: 1 }, 8, ["disabled", "modelValue", "class"]), o(d(Hl), { as: "span", class: "ml-3" }, { default: E(() => [i("span", ha, _(l2.item.title), 1), l2.item.subtitle ? (e(), a("span", ba, _(l2.item.subtitle), 1)) : R("", true)]), _: 1 }), l2.item.action ? (e(), a("span", { key: 0, class: "cursor-pointer text-indigo-600 hover:text-indigo-400 uppercase text-xs absolute right-0 bottom-0.5", onClick: u2[2] || (u2[2] = (e2) => s2.$emit("actionClicked", l2.item)) }, _(l2.item.action), 1)) : R("", true)]), _: 1 }));
2202
- } }), Sa = { key: 0, class: "flex flex-col" }, Ca = { class: "flex" }, Oa = { class: "flex-shrink-0" }, Ma = { class: "ml-3" }, Da = { class: "mt-4" }, Ta = { class: "-mx-2 -my-1.5 flex" }, Ea = ["onClick"], Ia = { key: 1, class: "flex flex-col animate-pulse" }, _a = [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)], Pa = { name: "uiAlert" }, ja = Object.assign(Pa, { 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", Ia, _a)) : (e(), a("div", Sa, [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", Ca, [i("div", Oa, ["info" === l2.type ? (e(), t(d(bn), { key: 0, class: "h-8 w-8 text-indigo-400", "aria-hidden": "true" })) : R("", true), "danger" === l2.type ? (e(), t(d(wn), { key: 1, class: "h-8 w-8 text-red-400", "aria-hidden": "true" })) : R("", true), "warning" === l2.type ? (e(), t(d(fn), { key: 2, class: "h-8 w-8 text-yellow-400", "aria-hidden": "true" })) : R("", true), "success" === l2.type ? (e(), t(d(sn), { key: 3, class: "h-8 w-8 text-green-400", "aria-hidden": "true" })) : R("", true)]), i("div", Ma, [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", Da, [i("div", Ta, [(e(true), a(w, null, j(l2.actions, (t2, r2) => (e(), a("button", { onClick: (e2) => o2.$emit("alertEvent", t2.event), type: "button", key: r2, class: n([{ "bg-green-50 text-green-800 hover:bg-green-100 focus:ring-green-600 focus:ring-offset-green-50": "success" === l2.type, "bg-indigo-50 text-indigo-800 hover:bg-indigo-100 focus:ring-indigo-600 focus:ring-offset-indigo-50": "info" === l2.type, "bg-red-50 text-red-800 hover:bg-red-100 focus:ring-red-600 focus:ring-offset-red-50": "danger" === l2.type, "bg-yellow-50 text-yellow-800 hover:bg-yellow-100 focus:ring-yellow-600 focus:ring-offset-yellow-50": "warning" === l2.type }, "px-2 py-1.5 text-sm font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2"]) }, _(t2.name), 11, Ea))), 128))])])])])], 2)])) }), Ra = { key: 0, class: "inline-flex", "aria-label": "Breadcrumb" }, Ba = { role: "list", class: "flex items-center space-x-4 text-xs" }, Aa = { key: 0 }, La = ["onClick"], Fa = { key: 1, class: "flex items-center" }, Na = ["onClick", "aria-current"], za = { key: 1, class: "flex flex-row items-center animate-pulse" }, $a = [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)], Va = { name: "uiBreadcrumbs" }, Ha = Object.assign(Va, { props: { pages: { type: Array, required: true }, loading: { type: Boolean, default: true } }, setup: (t2) => (l2, r2) => t2.loading ? (e(), a("div", za, $a)) : (e(), a("nav", Ra, [i("ol", Ba, [(e(true), a(w, null, j(t2.pages, (t3, r3) => (e(), a("li", { key: r3 }, [0 === r3 ? (e(), a("div", Aa, [i("p", { onClick: (e2) => l2.$emit("breadCrumbClicked", t3.routeName), class: "flex flex-row items-center justify-center text-indigo-600 hover:text-indigo-800 cursor-pointer" }, [o(d(hn), { class: "flex-shrink-0 h-3 w-3 text-gray-400 mr-4", "aria-hidden": "true" }), i("span", null, _(t3.name), 1)], 8, La)])) : (e(), a("div", Fa, [o(d(pn), { 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, Na)]))]))), 128))])])) }), Ya = { class: "flex items-center flex-col sm:flex-row justify-center sm:justify-start" }, Ua = ["src"], qa = { class: "font-bold text-center sm:text-left" }, Wa = { class: "mt-1 text-xs text-center sm:text-left" }, Ka = { key: 0, class: "flex flex-wrap mt-4 justify-center sm:justify-start" }, Ja = { key: 1, class: "rounded-lg bg-white shadow p-6 cursor-pointer animate-pulse" }, Ga = [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)], Za = { name: "uiCard" }, Xa = Object.assign(Za, { 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) => {
2213
+ return (s2, u2) => l2.loading ? (e(), a("div", wa, ka)) : (e(), t(d(Hl), { key: 0, as: "div", class: "flex items-center relative" }, { default: E(() => [o(d(Yl), { disabled: l2.disabled, onClick: u2[0] || (u2[0] = (e2) => s2.$emit("toggleChanged", { item: l2.item, active: !r2.value })), modelValue: r2.value, "onUpdate:modelValue": u2[1] || (u2[1] = (e2) => r2.value = e2), class: n([r2.value ? "bg-indigo-600" : "bg-gray-200", "relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"]) }, { default: E(() => [i("span", { "aria-hidden": "true", class: n([r2.value ? "translate-x-5" : "translate-x-0", l2.disabled ? "bg-gray-300" : "", "pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out"]) }, null, 2)]), _: 1 }, 8, ["disabled", "modelValue", "class"]), o(d(Ul), { as: "span", class: "ml-3" }, { default: E(() => [i("span", ya, _(l2.item.title), 1), l2.item.subtitle ? (e(), a("span", xa, _(l2.item.subtitle), 1)) : R("", true)]), _: 1 }), l2.item.action ? (e(), a("span", { key: 0, class: "cursor-pointer text-indigo-600 hover:text-indigo-400 uppercase text-xs absolute right-0 bottom-0.5", onClick: u2[2] || (u2[2] = (e2) => s2.$emit("actionClicked", l2.item)) }, _(l2.item.action), 1)) : R("", true)]), _: 1 }));
2214
+ } }), Oa = { key: 0, class: "flex flex-col" }, Ma = { class: "flex" }, Da = { class: "flex-shrink-0" }, Ta = { class: "ml-3" }, Ea = { class: "mt-4" }, Ia = { class: "-mx-2 -my-1.5 flex" }, _a = ["onClick"], Pa = { key: 1, class: "flex flex-col animate-pulse" }, ja = [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)], Ra = { name: "uiAlert" }, Ba = Object.assign(Ra, { 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, ja)) : (e(), a("div", Oa, [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", Ma, [i("div", Da, ["info" === l2.type ? (e(), t(d(xn), { key: 0, class: "h-8 w-8 text-indigo-400", "aria-hidden": "true" })) : R("", true), "danger" === l2.type ? (e(), t(d(Sn), { key: 1, class: "h-8 w-8 text-red-400", "aria-hidden": "true" })) : R("", true), "warning" === l2.type ? (e(), t(d(hn), { key: 2, class: "h-8 w-8 text-yellow-400", "aria-hidden": "true" })) : R("", true), "success" === l2.type ? (e(), t(d(dn), { 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", Ea, [i("div", Ia, [(e(true), a(k, null, j(l2.actions, (t2, r2) => (e(), a("button", { onClick: (e2) => o2.$emit("alertEvent", t2.event), type: "button", key: r2, class: n([{ "bg-green-50 text-green-800 hover:bg-green-100 focus:ring-green-600 focus:ring-offset-green-50": "success" === l2.type, "bg-indigo-50 text-indigo-800 hover:bg-indigo-100 focus:ring-indigo-600 focus:ring-offset-indigo-50": "info" === l2.type, "bg-red-50 text-red-800 hover:bg-red-100 focus:ring-red-600 focus:ring-offset-red-50": "danger" === l2.type, "bg-yellow-50 text-yellow-800 hover:bg-yellow-100 focus:ring-yellow-600 focus:ring-offset-yellow-50": "warning" === l2.type }, "px-2 py-1.5 text-sm font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2"]) }, _(t2.name), 11, _a))), 128))])])])])], 2)])) }), Aa = { key: 0, class: "inline-flex", "aria-label": "Breadcrumb" }, La = { role: "list", class: "flex items-center space-x-4 text-xs" }, Fa = { key: 0 }, Na = ["onClick"], za = { key: 1, class: "flex items-center" }, $a = ["onClick", "aria-current"], Va = { key: 1, class: "flex flex-row items-center animate-pulse" }, Ha = [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)], Ya = { name: "uiBreadcrumbs" }, Ua = Object.assign(Ya, { props: { pages: { type: Array, required: true }, loading: { type: Boolean, default: true } }, setup: (t2) => (l2, r2) => t2.loading ? (e(), a("div", Va, Ha)) : (e(), a("nav", Aa, [i("ol", La, [(e(true), a(k, null, j(t2.pages, (t3, r3) => (e(), a("li", { key: r3 }, [0 === r3 ? (e(), a("div", Fa, [i("p", { onClick: (e2) => l2.$emit("breadCrumbClicked", t3.routeName), class: "flex flex-row items-center justify-center text-indigo-600 hover:text-indigo-800 cursor-pointer" }, [o(d(yn), { class: "flex-shrink-0 h-3 w-3 text-gray-400 mr-4", "aria-hidden": "true" }), i("span", null, _(t3.name), 1)], 8, Na)])) : (e(), a("div", za, [o(d(fn), { 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, $a)]))]))), 128))])])) }), qa = { class: "flex items-center flex-col sm:flex-row justify-center sm:justify-start" }, Wa = ["src"], Ka = { class: "font-bold text-center sm:text-left" }, Ja = { class: "mt-1 text-xs text-center sm:text-left" }, Ga = { key: 0, class: "flex flex-wrap mt-4 justify-center sm:justify-start" }, Za = { key: 1, class: "rounded-lg bg-white shadow p-6 cursor-pointer animate-pulse" }, Xa = [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)], Qa = { name: "uiCard" }, eo = Object.assign(Qa, { 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) => {
2203
2215
  var _a2;
2204
- return l2.loading ? (e(), a("div", Ja, Ga)) : (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", Ya, [i("img", { class: "w-16 h-16 rounded-full mb-4 sm:mb-0 sm:mr-4", src: l2.logo }, null, 8, Ua), i("div", null, [i("h4", qa, _(l2.name), 1), i("p", Wa, _(l2.type), 1)])]), ((_a2 = l2.tags) == null ? void 0 : _a2.length) > 0 ? (e(), a("div", Ka, [(e(true), a(w, null, j(l2.tags, (n3) => (e(), t(ua, { 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)]));
2205
- } }), Qa = { name: "uiFilter" }, eo = Object.assign(Qa, { props: { position: { type: String, default: "left" }, items: { type: Array, required: true }, label: { type: String, required: true }, loading: { type: Boolean, default: true } }, emits: ["filterSelected"], setup(l2, { emit: n2 }) {
2216
+ return l2.loading ? (e(), a("div", Za, Xa)) : (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", qa, [i("img", { class: "w-16 h-16 rounded-full mb-4 sm:mb-0 sm:mr-4", src: l2.logo }, null, 8, Wa), i("div", null, [i("h4", Ka, _(l2.name), 1), i("p", Ja, _(l2.type), 1)])]), ((_a2 = l2.tags) == null ? void 0 : _a2.length) > 0 ? (e(), a("div", Ga, [(e(true), a(k, null, j(l2.tags, (n3) => (e(), t(ca, { 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)]));
2217
+ } }), to = { name: "uiFilter" }, lo = Object.assign(to, { 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 }) {
2206
2218
  const a2 = n2, o2 = s(l2.items);
2207
- return (n3, r2) => (e(), t(Tn, { loading: l2.loading, onOptionSelected: r2[0] || (r2[0] = (e2) => ((e3) => {
2219
+ return (n3, r2) => (e(), t(In, { loading: l2.loading, onOptionSelected: r2[0] || (r2[0] = (e2) => ((e3) => {
2208
2220
  o2.value.forEach((t2) => {
2209
2221
  t2.value !== e3 ? t2.active = false : t2.active = true;
2210
2222
  }), a2("filterSelected", e3);
2211
2223
  })(e2)), position: l2.position, items: o2.value, label: l2.label }, null, 8, ["loading", "position", "items", "label"]));
2212
- } }), to = i("div", { class: "fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" }, null, -1), lo = { class: "fixed inset-0 z-10 overflow-y-auto" }, no = { class: "flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0" }, ao = { class: "absolute top-0 right-0 hidden pt-4 pr-4 sm:block" }, oo = i("span", { class: "sr-only" }, "X", -1), ro = { class: "sm:flex sm:items-start" }, io = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left sm:mr-4 sm:w-10/12 break-words" }, so = { class: "mt-4 text-gray-500 text-sm" }, uo = { key: 0, class: "mt-8" }, co = ["onClick"], po = { name: "uiModal" }, go = Object.assign(po, { props: { title: String, actions: Object, modalName: String, open: { type: Boolean, default: false }, type: { type: String, default: "default" }, loading: { type: Boolean, default: false } }, emits: ["modalAction"], setup(l2, { emit: s2 }) {
2224
+ } }), no = i("div", { class: "fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" }, null, -1), ao = { class: "fixed inset-0 z-10 overflow-y-auto" }, oo = { class: "flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0" }, ro = { class: "absolute top-0 right-0 hidden pt-4 pr-4 sm:block" }, io = i("span", { class: "sr-only" }, "X", -1), so = { class: "sm:flex sm:items-start" }, uo = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left sm:mr-4 sm:w-10/12 break-words" }, co = { class: "mt-4 text-gray-500 text-sm" }, po = { key: 0, class: "mt-8" }, go = ["onClick"], fo = { name: "uiModal" }, mo = Object.assign(fo, { props: { title: String, actions: Object, modalName: String, open: { type: Boolean, default: false }, type: { type: String, default: "default" }, loading: { type: Boolean, default: false } }, emits: ["modalAction"], setup(l2, { emit: s2 }) {
2213
2225
  const u2 = l2, c2 = s2, p2 = (e2) => {
2214
2226
  c2("modalAction", { modal: u2.modalName, action: e2 });
2215
2227
  };
2216
- return (s3, u3) => (e(), t(d(nn), { as: "template", show: l2.open }, { default: E(() => [o(d(vl), { as: "div", class: "relative z-10", onClose: u3[1] || (u3[1] = (e2) => p2("close")) }, { default: E(() => [o(d(tn), { 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(() => [to]), _: 1 }), i("div", lo, [i("div", no, [o(d(tn), { as: "template", enter: "ease-out duration-300", "enter-from": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95", "enter-to": "opacity-100 translate-y-0 sm:scale-100", leave: "ease-in duration-200", "leave-from": "opacity-100 translate-y-0 sm:scale-100", "leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" }, { default: E(() => [o(d(hl), { 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", ao, [i("button", { type: "button", class: "rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none", onClick: u3[0] || (u3[0] = (e2) => p2("close")) }, [oo, o(J, { icon: d(kn), "aria-hidden": "true", loading: l2.loading }, null, 8, ["icon", "loading"])])]), i("div", ro, [i("div", { class: n(["mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full sm:mx-0 sm:h-10 sm:w-10", { "bg-red-100": "danger" === l2.type, "bg-green-100": "success" === l2.type, "bg-indigo-100": "default" === l2.type, "bg-yellow-100": "warning" === l2.type }]) }, [B(o(d(kn), { class: "h-6 w-6 text-red-600", "aria-hidden": "true" }, null, 512), [[L, "danger" === l2.type]]), B(o(d(un), { class: "h-6 w-6 text-green-600", "aria-hidden": "true" }, null, 512), [[L, "success" === l2.type]]), B(o(d(fn), { class: "h-6 w-6 text-yellow-600", "aria-hidden": "true" }, null, 512), [[L, "warning" === l2.type]]), B(o(d(vn), { class: "h-6 w-6 text-indigo-600", "aria-hidden": "true" }, null, 512), [[L, "default" === l2.type]])], 2), i("div", io, [o(d(bl), { as: "h3", class: "text-lg font-medium leading-6 text-gray-900" }, { default: E(() => [I(_(l2.title), 1)]), _: 1 }), i("div", so, [r(s3.$slots, "default")]), l2.actions ? (e(), a("div", uo, [(e(true), a(w, null, j(l2.actions, (t2, l3) => (e(), a("button", { key: l3, type: "button", class: "inline-flex w-full justify-center rounded-md border border-transparent bg-indigo-600 px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 mb-2 sm:mb-0 mr-2 sm:w-auto sm:text-sm", onClick: (e2) => p2(t2.value) }, _(t2.name), 9, co))), 128))])) : R("", true)])])]), _: 3 })]), _: 3 })])])]), _: 3 })]), _: 3 }, 8, ["show"]));
2217
- } }), mo = { class: "w-full flex flex-col items-center space-y-4 sm:items-end" }, fo = { 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" }, vo = { class: "p-4" }, ho = { class: "flex items-start" }, bo = { class: "flex-shrink-0 mt-0.5" }, yo = { class: "ml-3 w-0 flex-1 pt-0.5" }, xo = { class: "font-medium text-gray-900" }, wo = { class: "mt-1 text-sm text-gray-500" }, ko = { class: "ml-4 flex-shrink-0 flex" }, So = i("span", { class: "sr-only" }, "Close", -1), Co = { name: "uiNotification" }, Oo = Object.assign(Co, { props: { show: Boolean, type: { type: String, default: "info" }, title: String, message: String, fixed: { type: Boolean, default: true } }, setup(t2) {
2228
+ return (s3, u3) => (e(), t(d(on), { as: "template", show: l2.open }, { default: E(() => [o(d(bl), { as: "div", class: "relative z-10", onClose: u3[1] || (u3[1] = (e2) => p2("close")) }, { default: E(() => [o(d(nn), { 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(() => [no]), _: 1 }), i("div", ao, [i("div", oo, [o(d(nn), { as: "template", enter: "ease-out duration-300", "enter-from": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95", "enter-to": "opacity-100 translate-y-0 sm:scale-100", leave: "ease-in duration-200", "leave-from": "opacity-100 translate-y-0 sm:scale-100", "leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" }, { default: E(() => [o(d(yl), { 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", ro, [i("button", { type: "button", class: "rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none", onClick: u3[0] || (u3[0] = (e2) => p2("close")) }, [io, o(J, { icon: d(Cn), "aria-hidden": "true", loading: l2.loading }, null, 8, ["icon", "loading"])])]), i("div", so, [i("div", { class: n(["mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full sm:mx-0 sm:h-10 sm:w-10", { "bg-red-100": "danger" === l2.type, "bg-green-100": "success" === l2.type, "bg-indigo-100": "default" === l2.type, "bg-yellow-100": "warning" === l2.type }]) }, [B(o(d(Cn), { class: "h-6 w-6 text-red-600", "aria-hidden": "true" }, null, 512), [[L, "danger" === l2.type]]), B(o(d(cn), { class: "h-6 w-6 text-green-600", "aria-hidden": "true" }, null, 512), [[L, "success" === l2.type]]), B(o(d(hn), { class: "h-6 w-6 text-yellow-600", "aria-hidden": "true" }, null, 512), [[L, "warning" === l2.type]]), B(o(d(bn), { class: "h-6 w-6 text-indigo-600", "aria-hidden": "true" }, null, 512), [[L, "default" === l2.type]])], 2), i("div", uo, [o(d(xl), { as: "h3", class: "text-lg font-medium leading-6 text-gray-900" }, { default: E(() => [I(_(l2.title), 1)]), _: 1 }), i("div", co, [r(s3.$slots, "default")]), l2.actions ? (e(), a("div", po, [(e(true), a(k, null, j(l2.actions, (t2, l3) => (e(), a("button", { key: l3, type: "button", class: "inline-flex w-full justify-center rounded-md border border-transparent bg-indigo-600 px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 mb-2 sm:mb-0 mr-2 sm:w-auto sm:text-sm", onClick: (e2) => p2(t2.value) }, _(t2.name), 9, go))), 128))])) : R("", true)])])]), _: 3 })]), _: 3 })])])]), _: 3 })]), _: 3 }, 8, ["show"]));
2229
+ } }), vo = { class: "w-full flex flex-col items-center space-y-4 sm:items-end" }, ho = { 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" }, bo = { class: "p-4" }, yo = { class: "flex items-start" }, xo = { class: "flex-shrink-0 mt-0.5" }, wo = { class: "ml-3 w-0 flex-1 pt-0.5" }, ko = { class: "font-medium text-gray-900" }, So = { class: "mt-1 text-sm text-gray-500" }, Co = { class: "ml-4 flex-shrink-0 flex" }, Oo = i("span", { class: "sr-only" }, "Close", -1), Mo = { name: "uiNotification" }, Do = Object.assign(Mo, { props: { show: Boolean, type: { type: String, default: "info" }, title: String, message: String, fixed: { type: Boolean, default: true } }, setup(t2) {
2218
2230
  const l2 = t2, r2 = u(() => l2.show);
2219
- 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", mo, [o(P, { "enter-active-class": "transform ease-out duration-300 transition", "enter-from-class": "translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2", "enter-to-class": "translate-y-0 opacity-100 sm:translate-x-0", "leave-active-class": "transition ease-in duration-100", "leave-from-class": "opacity-100", "leave-to-class": "opacity-0" }, { default: E(() => [r2.value ? (e(), a("div", fo, [i("div", vo, [i("div", ho, [i("div", bo, [B(o(d(sn), { "aria-hidden": "true", class: "h-6 w-6 text-green-400" }, null, 512), [[L, "success" === t2.type]]), B(o(d(wn), { "aria-hidden": "true", class: "h-6 w-6 text-red-400" }, null, 512), [[L, "danger" === t2.type]]), B(o(d(fn), { "aria-hidden": "true", class: "h-6 w-6 text-yellow-400" }, null, 512), [[L, "warning" === t2.type]]), B(o(d(bn), { "aria-hidden": "true", class: "h-6 w-6 text-indigo-600" }, null, 512), [[L, "info" === t2.type]])]), i("div", yo, [i("p", xo, _(t2.title), 1), i("p", wo, _(t2.message), 1)]), i("div", ko, [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")) }, [So, o(d(kn), { "aria-hidden": "true", class: "h-5 w-5" })])])])])])) : R("", true)]), _: 1 })])], 2));
2220
- } }), Mo = { key: 0, role: "list", class: "divide-y divide-gray-100" }, Do = { class: "min-w-0" }, To = { class: "flex items-start gap-x-3" }, Eo = { class: "text-sm font-semibold leading-6 text-gray-900" }, Io = { class: "mt-1 flex items-center gap-x-2 text-xs leading-5 text-gray-500" }, _o = { class: "truncate" }, Po = { class: "flex flex-none items-center gap-x-4" }, jo = ["href"], Ro = { class: "sr-only" }, Bo = { key: 1, class: "divide-y divide-gray-100 animate-pulse" }, Ao = [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)], Lo = { name: "uiTaskList" }, Fo = Object.assign(Lo, { props: { tasks: { type: Array, required: true }, loading: { type: Boolean, default: true } }, setup: (t2) => (l2, o2) => t2.loading ? (e(), a("ul", Bo, [(e(true), a(w, null, j(t2.tasks, (t3) => (e(), a("li", { key: t3.id, class: "flex items-center justify-between gap-x-6 py-5" }, Ao))), 128))])) : (e(), a("ul", Mo, [(e(true), a(w, null, j(t2.tasks, (t3) => (e(), a("li", { key: t3.id, class: "flex items-center justify-between gap-x-6 py-5" }, [i("div", Do, [i("div", To, [i("p", Eo, _(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", Io, [i("p", _o, _(t3.description), 1)])]), i("div", Po, [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", Ro, ", " + _(t3.name), 1)], 8, jo)])]))), 128))])) });
2231
+ return (l3, s2) => (e(), a("div", { "aria-live": "assertive", class: n([{ fixed: t2.fixed }, "inset-0 flex items-end px-4 py-6 pointer-events-none sm:p-6 sm:items-start"]) }, [i("div", vo, [o(P, { "enter-active-class": "transform ease-out duration-300 transition", "enter-from-class": "translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2", "enter-to-class": "translate-y-0 opacity-100 sm:translate-x-0", "leave-active-class": "transition ease-in duration-100", "leave-from-class": "opacity-100", "leave-to-class": "opacity-0" }, { default: E(() => [r2.value ? (e(), a("div", ho, [i("div", bo, [i("div", yo, [i("div", xo, [B(o(d(dn), { "aria-hidden": "true", class: "h-6 w-6 text-green-400" }, null, 512), [[L, "success" === t2.type]]), B(o(d(Sn), { "aria-hidden": "true", class: "h-6 w-6 text-red-400" }, null, 512), [[L, "danger" === t2.type]]), B(o(d(hn), { "aria-hidden": "true", class: "h-6 w-6 text-yellow-400" }, null, 512), [[L, "warning" === t2.type]]), B(o(d(xn), { "aria-hidden": "true", class: "h-6 w-6 text-indigo-600" }, null, 512), [[L, "info" === t2.type]])]), i("div", wo, [i("p", ko, _(t2.title), 1), i("p", So, _(t2.message), 1)]), i("div", Co, [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")) }, [Oo, o(d(Cn), { "aria-hidden": "true", class: "h-5 w-5" })])])])])])) : R("", true)]), _: 1 })])], 2));
2232
+ } }), To = { key: 0, role: "list", class: "divide-y divide-gray-100" }, Eo = { class: "min-w-0" }, Io = { class: "flex items-start gap-x-3" }, _o = { 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" }, jo = { class: "truncate" }, Ro = { class: "flex flex-none items-center gap-x-4" }, Bo = ["href"], Ao = { class: "sr-only" }, Lo = { key: 1, class: "divide-y divide-gray-100 animate-pulse" }, Fo = [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)], No = { name: "uiTaskList" }, zo = Object.assign(No, { props: { tasks: { type: Array, required: true }, loading: { type: Boolean, default: true } }, setup: (t2) => (l2, o2) => t2.loading ? (e(), a("ul", Lo, [(e(true), a(k, null, j(t2.tasks, (t3) => (e(), a("li", { key: t3.id, class: "flex items-center justify-between gap-x-6 py-5" }, Fo))), 128))])) : (e(), a("ul", To, [(e(true), a(k, null, j(t2.tasks, (t3) => (e(), a("li", { key: t3.id, class: "flex items-center justify-between gap-x-6 py-5" }, [i("div", Eo, [i("div", Io, [i("p", _o, _(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", jo, _(t3.description), 1)])]), i("div", Ro, [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", Ao, ", " + _(t3.name), 1)], 8, Bo)])]))), 128))])) });
2221
2233
  "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self && self;
2222
- function No(e2) {
2234
+ function $o(e2) {
2223
2235
  return e2 && e2.__esModule && Object.prototype.hasOwnProperty.call(e2, "default") ? e2.default : e2;
2224
2236
  }
2225
2237
  !function(e2) {
@@ -2255,42 +2267,42 @@ function No(e2) {
2255
2267
  } };
2256
2268
  l2.default.locale(n2, null, true);
2257
2269
  }(Y);
2258
- const zo = (e2, t2) => {
2270
+ const Vo = (e2, t2) => {
2259
2271
  const l2 = e2.__vccOpts || e2;
2260
2272
  for (const [e3, n2] of t2)
2261
2273
  l2[e3] = n2;
2262
2274
  return l2;
2263
- }, $o = { class: "dateSelector flex items-center text-white flex-row" }, Vo = { class: "pagination flex items-center my-1 md:my-0" }, Ho = { class: "date mx-4 font-bold text-center text-indigo-600 select-none uppercase" }, Yo = { class: "pagination flex items-center my-1 sm:my-0" };
2264
- const Uo = zo({ name: "dateSelector", components: { ChevronLeftIcon: cn, ChevronRightIcon: pn }, computed: { currentDate() {
2275
+ }, Ho = { class: "dateSelector flex items-center text-white flex-row" }, Yo = { 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" }, qo = { class: "pagination flex items-center my-1 sm:my-0" };
2276
+ const Wo = Vo({ name: "dateSelector", components: { ChevronLeftIcon: gn, ChevronRightIcon: fn }, computed: { currentDate() {
2265
2277
  return Y(this.selectedDate).locale("es").format("DD MMM. YYYY");
2266
2278
  } }, props: { selectedDate: { type: Object, required: true } }, methods: { selectDate(e2, t2) {
2267
2279
  let l2;
2268
2280
  "previous" === t2 && ("day" === e2 && (l2 = Y(this.selectedDate).subtract(1, "day")), "month" === e2 && (l2 = Y(this.selectedDate).subtract(1, "month")), "year" === e2 && (l2 = Y(this.selectedDate).subtract(1, "year"))), "next" === t2 && ("day" === e2 && (l2 = Y(this.selectedDate).add(1, "day")), "month" === e2 && (l2 = Y(this.selectedDate).add(1, "month")), "year" === e2 && (l2 = Y(this.selectedDate).add(1, "year"))), this.$emit("dateSelected", l2);
2269
2281
  } } }, [["render", function(t2, l2, n2, r2, s2, u2) {
2270
2282
  const d2 = $("ChevronLeftIcon"), c2 = $("ChevronRightIcon");
2271
- return e(), a("div", $o, [i("div", Vo, [i("div", { class: "previousYear flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm", onClick: l2[0] || (l2[0] = (e2) => u2.selectDate("year", "previous")) }, [o(d2, { class: "h-4" }), o(d2, { class: "h-4 -ml-3" }), o(d2, { class: "h-4 -ml-3" })]), i("div", { class: "previousMonth flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm", onClick: l2[1] || (l2[1] = (e2) => u2.selectDate("month", "previous")) }, [o(d2, { class: "h-4" }), o(d2, { class: "h-4 -ml-3" })]), i("div", { class: "previousDay flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm", onClick: l2[2] || (l2[2] = (e2) => u2.selectDate("day", "previous")) }, [o(d2, { class: "h-4" })])]), i("div", Ho, _(u2.currentDate), 1), i("div", Yo, [i("div", { class: "previousDay flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm", onClick: l2[3] || (l2[3] = (e2) => u2.selectDate("day", "next")) }, [o(c2, { class: "h-4" })]), i("div", { class: "previousMonth flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm", onClick: l2[4] || (l2[4] = (e2) => u2.selectDate("month", "next")) }, [o(c2, { class: "h-4" }), o(c2, { class: "h-4 -ml-3" })]), i("div", { class: "previousYear flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm", onClick: l2[5] || (l2[5] = (e2) => u2.selectDate("year", "next")) }, [o(c2, { class: "h-4" }), o(c2, { class: "h-4 -ml-3" }), o(c2, { class: "h-4 -ml-3" })])])]);
2272
- }]]), qo = { name: "SkeletonTable" }, Wo = { class: "px-4 sm:px-6 lg:px-8 animate-pulse" }, Ko = { class: "flow-root" }, Jo = { class: "-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8" }, Go = { class: "inline-block min-w-full py-2 align-middle px-1" }, Zo = { class: "overflow-hidden shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg" }, Xo = { class: "min-w-full divide-y divide-gray-300" }, Qo = i("thead", { class: "bg-gray-50" }, [i("tr", null, [i("th", { scope: "col", class: "py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })]), i("th", { scope: "col", class: "px-3 py-3.5 text-left text-sm font-semibold text-gray-900" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })]), i("th", { scope: "col", class: "px-3 py-3.5 text-left text-sm font-semibold text-gray-900" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })]), i("th", { scope: "col", class: "px-3 py-3.5 text-left text-sm font-semibold text-gray-900" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })]), i("th", { scope: "col", class: "relative py-3.5 pl-3 pr-4 sm:pr-6" }, [i("span", { class: "sr-only" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })])])])], -1), er = { class: "divide-y divide-gray-200 bg-white" }, tr = [i("td", { class: "whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })], -1), i("td", { class: "whitespace-nowrap px-3 py-4 text-sm text-gray-500" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })], -1), i("td", { class: "whitespace-nowrap px-3 py-4 text-sm text-gray-500" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })], -1), i("td", { class: "whitespace-nowrap px-3 py-4 text-sm text-gray-500" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })], -1), i("td", { class: "relative whitespace-nowrap py-4 pl-3 pr-4 text-right text-sm font-medium sm:pr-6" }, [i("a", { href: "#", class: "text-indigo-600 hover:text-indigo-900" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" }), i("span", { class: "sr-only" }, [I(", {"), i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })])])], -1)];
2273
- const lr = zo(qo, [["render", function(t2, l2, n2, o2, r2, s2) {
2274
- return e(), a("div", Wo, [i("div", Ko, [i("div", Jo, [i("div", Go, [i("div", Zo, [i("table", Xo, [Qo, i("tbody", er, [(e(), a(w, null, j(10, (e2) => i("tr", { key: e2 }, tr)), 64))])])])])])])]);
2283
+ return e(), a("div", Ho, [i("div", Yo, [i("div", { class: "previousYear flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm", onClick: l2[0] || (l2[0] = (e2) => u2.selectDate("year", "previous")) }, [o(d2, { class: "h-4" }), o(d2, { class: "h-4 -ml-3" }), o(d2, { class: "h-4 -ml-3" })]), i("div", { class: "previousMonth flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm", onClick: l2[1] || (l2[1] = (e2) => u2.selectDate("month", "previous")) }, [o(d2, { class: "h-4" }), o(d2, { class: "h-4 -ml-3" })]), i("div", { class: "previousDay flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm", onClick: l2[2] || (l2[2] = (e2) => u2.selectDate("day", "previous")) }, [o(d2, { class: "h-4" })])]), i("div", Uo, _(u2.currentDate), 1), i("div", qo, [i("div", { class: "previousDay flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm", onClick: l2[3] || (l2[3] = (e2) => u2.selectDate("day", "next")) }, [o(c2, { class: "h-4" })]), i("div", { class: "previousMonth flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm", onClick: l2[4] || (l2[4] = (e2) => u2.selectDate("month", "next")) }, [o(c2, { class: "h-4" }), o(c2, { class: "h-4 -ml-3" })]), i("div", { class: "previousYear flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm", onClick: l2[5] || (l2[5] = (e2) => u2.selectDate("year", "next")) }, [o(c2, { class: "h-4" }), o(c2, { class: "h-4 -ml-3" }), o(c2, { class: "h-4 -ml-3" })])])]);
2284
+ }]]), Ko = { name: "SkeletonTable" }, Jo = { class: "px-4 sm:px-6 lg:px-8 animate-pulse" }, Go = { class: "flow-root" }, Zo = { class: "-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8" }, Xo = { class: "inline-block min-w-full py-2 align-middle px-1" }, Qo = { class: "overflow-hidden shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg" }, er = { class: "min-w-full divide-y divide-gray-300" }, tr = i("thead", { class: "bg-gray-50" }, [i("tr", null, [i("th", { scope: "col", class: "py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })]), i("th", { scope: "col", class: "px-3 py-3.5 text-left text-sm font-semibold text-gray-900" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })]), i("th", { scope: "col", class: "px-3 py-3.5 text-left text-sm font-semibold text-gray-900" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })]), i("th", { scope: "col", class: "px-3 py-3.5 text-left text-sm font-semibold text-gray-900" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })]), i("th", { scope: "col", class: "relative py-3.5 pl-3 pr-4 sm:pr-6" }, [i("span", { class: "sr-only" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })])])])], -1), lr = { class: "divide-y divide-gray-200 bg-white" }, nr = [i("td", { class: "whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })], -1), i("td", { class: "whitespace-nowrap px-3 py-4 text-sm text-gray-500" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })], -1), i("td", { class: "whitespace-nowrap px-3 py-4 text-sm text-gray-500" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })], -1), i("td", { class: "whitespace-nowrap px-3 py-4 text-sm text-gray-500" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })], -1), i("td", { class: "relative whitespace-nowrap py-4 pl-3 pr-4 text-right text-sm font-medium sm:pr-6" }, [i("a", { href: "#", class: "text-indigo-600 hover:text-indigo-900" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" }), i("span", { class: "sr-only" }, [I(", {"), i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })])])], -1)];
2285
+ const ar = Vo(Ko, [["render", function(t2, l2, n2, o2, r2, s2) {
2286
+ return e(), a("div", Jo, [i("div", Go, [i("div", Zo, [i("div", Xo, [i("div", Qo, [i("table", er, [tr, i("tbody", lr, [(e(), a(k, null, j(10, (e2) => i("tr", { key: e2 }, nr)), 64))])])])])])])]);
2275
2287
  }]]);
2276
- var nr = { exports: {} };
2277
- nr.exports = function(e2, t2, l2) {
2288
+ var or = { exports: {} };
2289
+ or.exports = function(e2, t2, l2) {
2278
2290
  t2.prototype.isToday = function() {
2279
2291
  var e3 = "YYYY-MM-DD", t3 = l2();
2280
2292
  return this.format(e3) === t3.format(e3);
2281
2293
  };
2282
2294
  };
2283
- const ar = No(nr.exports), or = { class: "text-xs" }, rr = { class: "font-bold text-lg" }, ir = { class: "text-xs font-medium" };
2284
- const sr = zo({ name: "calendarDay", props: { day: Object }, computed: { currentDay() {
2285
- return Y.extend(ar), { dayName: Y(this.day).locale("es").format("ddd"), day: Y(this.day).locale("es").format("DD"), month: Y(this.day).locale("es").format("MMM."), isWeekend: 6 == Y(this.day).format("d") || 0 == Y(this.day).format("d"), isToday: Y(this.day).isToday() };
2295
+ const rr = $o(or.exports), ir = { class: "text-xs" }, sr = { class: "font-bold text-lg" }, ur = { class: "text-xs font-medium" };
2296
+ const dr = Vo({ name: "calendarDay", props: { day: Object }, computed: { currentDay() {
2297
+ return Y.extend(rr), { dayName: Y(this.day).locale("es").format("ddd"), day: Y(this.day).locale("es").format("DD"), month: Y(this.day).locale("es").format("MMM."), isWeekend: 6 == Y(this.day).format("d") || 0 == Y(this.day).format("d"), isToday: Y(this.day).isToday() };
2286
2298
  } } }, [["render", function(t2, l2, o2, r2, s2, u2) {
2287
- return e(), a("div", { class: n(["day select-none text-center", { "bg-indigo-200 text-white": u2.currentDay.isWeekend, "bg-[#0ff] text-white": u2.currentDay.isToday }]) }, [i("p", or, _(u2.currentDay.dayName), 1), i("p", rr, _(u2.currentDay.day), 1), i("p", ir, _(u2.currentDay.month), 1)], 2);
2288
- }]]), ur = { name: "dayPrice", props: { currency: String, price: Object, basePrice: Number, isBasePrice: { type: Boolean, default: false } }, computed: { currentDay() {
2299
+ return e(), a("div", { class: n(["day select-none text-center", { "bg-indigo-200 text-white": u2.currentDay.isWeekend, "bg-[#0ff] text-white": u2.currentDay.isToday }]) }, [i("p", ir, _(u2.currentDay.dayName), 1), i("p", sr, _(u2.currentDay.day), 1), i("p", ur, _(u2.currentDay.month), 1)], 2);
2300
+ }]]), cr = { name: "dayPrice", props: { currency: String, price: Object, basePrice: Number, isBasePrice: { type: Boolean, default: false } }, computed: { currentDay() {
2289
2301
  return { isWeekend: 6 == Y(this.price.date).format("d") || 0 == Y(this.price.date).format("d"), price: this.price.price };
2290
- } } }, dr = { class: "priceDay" };
2291
- const cr = { name: "uiPriceCalendar", data: () => ({ today: /* @__PURE__ */ new Date(), date: /* @__PURE__ */ new Date(), selectedRooms: [], showBasePricesModal: false, showDays: 14 }), props: { type: String, category: { type: Object, required: true }, rooms: { type: Array, required: true }, currency: Object, actions: Array, loading: { type: Boolean, default: true }, literals: { type: Object, required: true } }, components: { DateSelector: Uo, Day: sr, Price: zo(ur, [["render", function(t2, l2, o2, r2, s2, u2) {
2292
- return e(), a("div", dr, [i("div", { class: n([{ "bg-indigo-200 text-white": u2.currentDay.isWeekend, "bg-green-300 text-white": o2.price.price > o2.basePrice, "bg-yellow-300 text-white": o2.price.price < o2.basePrice }, "select-none text-center rounded-lg p-1"]) }, _(u2.currentDay.price) + _(o2.currency), 3)]);
2293
- }]]), uiButton: ee, SkeletonTable: lr }, computed: { days() {
2302
+ } } }, pr = { class: "priceDay" };
2303
+ const gr = { name: "uiPriceCalendar", data: () => ({ today: /* @__PURE__ */ new Date(), date: /* @__PURE__ */ new Date(), selectedRooms: [], showBasePricesModal: false, showDays: 14 }), props: { type: String, category: { type: Object, required: true }, rooms: { type: Array, required: true }, currency: Object, actions: Array, loading: { type: Boolean, default: true }, literals: { type: Object, required: true } }, components: { DateSelector: Wo, Day: dr, Price: Vo(cr, [["render", function(t2, l2, o2, r2, s2, u2) {
2304
+ return e(), a("div", pr, [i("div", { class: n([{ "bg-indigo-200 text-white": u2.currentDay.isWeekend, "bg-green-300 text-white": o2.price.price > o2.basePrice, "bg-yellow-300 text-white": o2.price.price < o2.basePrice }, "select-none text-center rounded-lg p-1"]) }, _(u2.currentDay.price) + _(o2.currency), 3)]);
2305
+ }]]), uiButton: ee, SkeletonTable: ar }, computed: { days() {
2294
2306
  let e2 = [];
2295
2307
  for (let t2 = 0; t2 < this.showDays; t2++)
2296
2308
  e2.push(Y(this.date).add(t2, "day"));
@@ -2312,111 +2324,111 @@ const cr = { name: "uiPriceCalendar", data: () => ({ today: /* @__PURE__ */ new
2312
2324
  this.$emit("tableAction", e2);
2313
2325
  }, changeRoomPrice(e2) {
2314
2326
  this.$emit("changeRoomPrice", e2);
2315
- } } }, pr = { key: 0, class: "px-4 sm:px-6 lg:px-8" }, gr = { class: "flow-root" }, mr = { class: "overflow-x-auto sm:-mx-6 lg:-mx-8 shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg" }, fr = { class: "inline-block min-w-full align-middle" }, vr = { class: "min-w-full text-sm" }, hr = { class: "bg-white" }, br = { 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" }, yr = { colspan: "20", scope: "colgroup", class: "bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, xr = { key: 0 }, wr = { colspan: "6", class: "pl-4" }, kr = { key: 1 }, Sr = { colspan: "6", class: "pl-4" }, Cr = { key: 2 }, Or = { colspan: "6", class: "pl-4" }, Mr = { colspan: "20", scope: "colgroup", class: "bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900 relative" }, Dr = { 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" }, Tr = ["onClick"], Er = { colspan: "2", scope: "colgroup", class: "relative bg-gray-100 py-3.5 pl-4 pr-3 text-left font-semibold text-gray-900" }, Ir = ["checked", "indeterminate"], _r = { class: "pl-6" }, Pr = { colspan: "2", scope: "colgroup", class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, jr = { colspan: "2", scope: "colgroup", class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, Rr = 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), Br = { colspan: "2", class: "relative py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6" }, Ar = { key: 0, class: "absolute inset-y-0 left-0 w-0.5 bg-indigo-600" }, Lr = ["value"], Fr = { class: "pl-6" }, Nr = { colspan: "2", class: "pl-4" }, zr = { colspan: "2", class: "pl-4" };
2316
- const $r = zo(cr, [["render", function(l2, r2, s2, u2, d2, c2) {
2327
+ } } }, fr = { key: 0, class: "px-4 sm:px-6 lg:px-8" }, mr = { class: "flow-root" }, vr = { class: "overflow-x-auto sm:-mx-6 lg:-mx-8 shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg" }, hr = { class: "inline-block min-w-full align-middle" }, br = { class: "min-w-full text-sm" }, yr = { class: "bg-white" }, xr = { 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" }, wr = { colspan: "20", scope: "colgroup", class: "bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, kr = { key: 0 }, Sr = { colspan: "6", class: "pl-4" }, Cr = { key: 1 }, Or = { colspan: "6", class: "pl-4" }, Mr = { key: 2 }, Dr = { 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" }, Er = { 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" }, Ir = ["onClick"], _r = { 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"], jr = { class: "pl-6" }, Rr = { colspan: "2", scope: "colgroup", class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, Br = { colspan: "2", scope: "colgroup", class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, Ar = 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), Lr = { colspan: "2", class: "relative py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6" }, Fr = { key: 0, class: "absolute inset-y-0 left-0 w-0.5 bg-indigo-600" }, Nr = ["value"], zr = { class: "pl-6" }, $r = { colspan: "2", class: "pl-4" }, Vr = { colspan: "2", class: "pl-4" };
2328
+ const Hr = Vo(gr, [["render", function(l2, r2, s2, u2, d2, c2) {
2317
2329
  var _a2, _b;
2318
- const p2 = $("DateSelector"), g2 = $("Day"), m2 = $("uiButton"), f2 = $("Price"), v2 = $("SkeletonTable");
2319
- return s2.loading ? (e(), t(v2, { key: 1 })) : (e(), a("div", pr, [i("div", gr, [i("div", mr, [i("div", fr, [i("table", vr, [i("tbody", hr, [i("tr", null, [i("th", br, [o(p2, { selectedDate: l2.date, onDateSelected: r2[0] || (r2[0] = (e2) => c2.changeDate(e2)) }, null, 8, ["selectedDate"])]), (e(true), a(w, null, j(c2.days, (t2, l3) => (e(), a("th", { scope: "col", key: l3, class: "text-sm font-semibold text-gray-900 p-0" }, [o(g2, { class: "border-l border-gray-200 px-6 py-3", day: t2 }, null, 8, ["day"])]))), 128))]), i("tr", null, [i("th", yr, [i("span", null, _(s2.literals.category) + " " + _(s2.category.name), 1), o(m2, { loading: s2.loading, class: "ml-4", size: "small", onClick: c2.changeCategoryBulkPrices }, { default: E(() => [I(_(s2.literals.changeInBulk), 1)]), _: 1 }, 8, ["loading", "onClick"])])]), "discounts" === s2.type ? (e(), a("tr", xr, [i("td", wr, _(s2.literals.pricesDiscount), 1), (e(true), a(w, null, j(s2.category.selectionPrices, (t2, l3) => (e(), a("td", { key: l3, class: "p-0" }, [o(f2, { onClick: (e2) => c2.changeCategorySelectionPrice(t2), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer", price: t2, currency: s2.currency.symbol, isBasePrice: true }, null, 8, ["onClick", "price", "currency"])]))), 128))])) : R("", true), "prices" === s2.type ? (e(), a("tr", kr, [i("td", Sr, _(s2.literals.pricesSelection), 1), (e(true), a(w, null, j(s2.category.selectionPrices, (t2, l3) => (e(), a("td", { key: l3, class: "p-0" }, [o(f2, { onClick: (e2) => c2.changeCategorySelectionPrice(t2), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer", price: t2, currency: s2.currency.symbol, isBasePrice: true }, null, 8, ["onClick", "price", "currency"])]))), 128))])) : R("", true), "prices" === s2.type ? (e(), a("tr", Cr, [i("td", Or, _(s2.literals.pricesUpgrade), 1), (e(true), a(w, null, j(s2.category.upgradePrices, (t2, l3) => (e(), a("td", { key: l3, class: "p-0" }, [o(f2, { onClick: (e2) => c2.changeCategoryUpgradePrice(t2), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer bg-gray-100", price: t2, currency: s2.currency.symbol, isBasePrice: true }, null, 8, ["onClick", "price", "currency"])]))), 128))])) : R("", true), i("tr", null, [i("th", Mr, [((_a2 = l2.selectedRooms) == null ? void 0 : _a2.length) > 0 && ((_b = s2.actions) == null ? void 0 : _b.length) > 0 ? (e(), a("div", Dr, [(e(true), a(w, null, j(s2.actions, (t2, n2) => (e(), a("button", { onClick: (e2) => c2.tableAction({ action: t2.id, items: l2.selectedRooms }), key: n2, type: "button", class: "inline-flex items-center rounded bg-indigo-600 hover:bg-indigo-800 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm disabled:cursor-not-allowed disabled:opacity-30" }, _(t2.name), 9, Tr))), 128))])) : R("", true), i("span", null, _(s2.literals.pricesSelection), 1)])]), i("tr", null, [i("th", Er, [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, Ir), i("span", _r, _(s2.literals.room), 1)]), i("th", Pr, _(s2.literals.building), 1), i("th", jr, _(s2.literals.floor), 1), Rr]), (e(true), a(w, null, j(s2.rooms, (t2) => (e(), a("tr", { key: t2.name, class: n([{ "even:bg-gray-100": "prices" === s2.type, "odd:bg-gray-100": "discounts" === s2.type }]) }, [i("td", Br, [l2.selectedRooms.includes(t2.name) ? (e(), a("div", Ar)) : 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, Lr), [[V, l2.selectedRooms]]), i("span", Fr, _(t2.name), 1)]), i("td", Nr, _(t2.building), 1), i("td", zr, _(t2.floor), 1), (e(true), a(w, null, j(t2.selectionPrices, (t3, l3) => (e(), a("td", { class: "p-0", key: l3 }, [o(f2, { onClick: (e2) => c2.changeRoomPrice(t3), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 cursor-pointer", price: t3, currency: s2.currency.symbol, basePrice: c2.getSelectionBasePrice(t3) }, null, 8, ["onClick", "price", "currency", "basePrice"])]))), 128))], 2))), 128))])])])])])]));
2320
- }]]), Vr = { class: "chart-selector flex flex-row items-center justify-center" }, Hr = { name: "rangeSelector" }, Yr = Object.assign(Hr, { props: { range: { type: String } }, emits: ["rangeSelected"], setup(t2, { emit: l2 }) {
2330
+ const p2 = $("DateSelector"), g2 = $("Day"), f2 = $("uiButton"), m2 = $("Price"), v2 = $("SkeletonTable");
2331
+ return s2.loading ? (e(), t(v2, { key: 1 })) : (e(), a("div", fr, [i("div", mr, [i("div", vr, [i("div", hr, [i("table", br, [i("tbody", yr, [i("tr", null, [i("th", xr, [o(p2, { selectedDate: l2.date, onDateSelected: r2[0] || (r2[0] = (e2) => c2.changeDate(e2)) }, null, 8, ["selectedDate"])]), (e(true), a(k, null, j(c2.days, (t2, l3) => (e(), a("th", { scope: "col", key: l3, class: "text-sm font-semibold text-gray-900 p-0" }, [o(g2, { class: "border-l border-gray-200 px-6 py-3", day: t2 }, null, 8, ["day"])]))), 128))]), i("tr", null, [i("th", wr, [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", kr, [i("td", Sr, _(s2.literals.pricesDiscount), 1), (e(true), a(k, null, j(s2.category.selectionPrices, (t2, l3) => (e(), a("td", { key: l3, class: "p-0" }, [o(m2, { onClick: (e2) => c2.changeCategorySelectionPrice(t2), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer", price: t2, currency: s2.currency.symbol, isBasePrice: true }, null, 8, ["onClick", "price", "currency"])]))), 128))])) : R("", true), "prices" === s2.type ? (e(), a("tr", Cr, [i("td", Or, _(s2.literals.pricesSelection), 1), (e(true), a(k, null, j(s2.category.selectionPrices, (t2, l3) => (e(), a("td", { key: l3, class: "p-0" }, [o(m2, { onClick: (e2) => c2.changeCategorySelectionPrice(t2), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer", price: t2, currency: s2.currency.symbol, isBasePrice: true }, null, 8, ["onClick", "price", "currency"])]))), 128))])) : R("", true), "prices" === s2.type ? (e(), a("tr", Mr, [i("td", Dr, _(s2.literals.pricesUpgrade), 1), (e(true), a(k, null, j(s2.category.upgradePrices, (t2, l3) => (e(), a("td", { key: l3, class: "p-0" }, [o(m2, { onClick: (e2) => c2.changeCategoryUpgradePrice(t2), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer bg-gray-100", price: t2, currency: s2.currency.symbol, isBasePrice: true }, null, 8, ["onClick", "price", "currency"])]))), 128))])) : R("", true), i("tr", null, [i("th", Tr, [((_a2 = l2.selectedRooms) == null ? void 0 : _a2.length) > 0 && ((_b = s2.actions) == null ? void 0 : _b.length) > 0 ? (e(), a("div", Er, [(e(true), a(k, null, j(s2.actions, (t2, n2) => (e(), a("button", { onClick: (e2) => c2.tableAction({ action: t2.id, items: l2.selectedRooms }), key: n2, type: "button", class: "inline-flex items-center rounded bg-indigo-600 hover:bg-indigo-800 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm disabled:cursor-not-allowed disabled:opacity-30" }, _(t2.name), 9, Ir))), 128))])) : R("", true), i("span", null, _(s2.literals.pricesSelection), 1)])]), i("tr", null, [i("th", _r, [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", jr, _(s2.literals.room), 1)]), i("th", Rr, _(s2.literals.building), 1), i("th", Br, _(s2.literals.floor), 1), Ar]), (e(true), a(k, null, j(s2.rooms, (t2) => (e(), a("tr", { key: t2.name, class: n([{ "even:bg-gray-100": "prices" === s2.type, "odd:bg-gray-100": "discounts" === s2.type }]) }, [i("td", Lr, [l2.selectedRooms.includes(t2.name) ? (e(), a("div", Fr)) : 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, Nr), [[V, l2.selectedRooms]]), i("span", zr, _(t2.name), 1)]), i("td", $r, _(t2.building), 1), i("td", Vr, _(t2.floor), 1), (e(true), a(k, null, j(t2.selectionPrices, (t3, l3) => (e(), a("td", { class: "p-0", key: l3 }, [o(m2, { onClick: (e2) => c2.changeRoomPrice(t3), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 cursor-pointer", price: t3, currency: s2.currency.symbol, basePrice: c2.getSelectionBasePrice(t3) }, null, 8, ["onClick", "price", "currency", "basePrice"])]))), 128))], 2))), 128))])])])])])]));
2332
+ }]]), Yr = { class: "chart-selector flex flex-row items-center justify-center" }, Ur = { name: "rangeSelector" }, qr = Object.assign(Ur, { props: { range: { type: String } }, emits: ["rangeSelected"], setup(t2, { emit: l2 }) {
2321
2333
  const o2 = l2, r2 = t2;
2322
2334
  let s2 = u(() => r2.range);
2323
2335
  const c2 = (e2) => {
2324
2336
  s2.value = e2, o2("rangeSelected", e2);
2325
2337
  };
2326
- return (t3, l3) => (e(), a("ul", Vr, [i("li", { class: n({ selected: "24h" === d(s2) }), onClick: l3[0] || (l3[0] = (e2) => c2("24h")) }, " 24H ", 2), i("li", { class: n({ selected: "7d" === d(s2) }), onClick: l3[1] || (l3[1] = (e2) => c2("7d")) }, "7D", 2), i("li", { class: n({ selected: "1m" === d(s2) }), onClick: l3[2] || (l3[2] = (e2) => c2("1m")) }, "1M", 2), i("li", { class: n({ selected: "3m" === d(s2) }), onClick: l3[3] || (l3[3] = (e2) => c2("3m")) }, "3M", 2)]));
2327
- } }), Ur = { class: "chart-header flex flex-row justify-between" }, qr = { class: "text-sm font-medium text-gray-500 truncate" }, Wr = { class: "chart-content" }, Kr = { class: "h-full w-full flex items-center justify-center flex-col" }, Jr = i("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1), Gr = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, Zr = [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)], Xr = { name: "uiChart" }, Qr = Object.assign(Xr, { props: { title: String, id: { type: String, default: "noChartId" }, type: { type: String, default: "area" }, series: { type: Array, required: true }, options: { type: Object, required: true }, loading: { type: Boolean, default: true }, empty: { type: Boolean, default: false }, range: { type: String, default: "24h" }, horizontal: { type: Boolean, default: false }, stacked: { type: Boolean, default: false }, height: { type: Number, default: 320 }, annotations: { type: Object } }, emits: ["selectedRange", "chartUpdated", "dataPointSelection"], setup(t2, { emit: l2 }) {
2338
+ return (t3, l3) => (e(), a("ul", Yr, [i("li", { class: n({ selected: "24h" === d(s2) }), onClick: l3[0] || (l3[0] = (e2) => c2("24h")) }, " 24H ", 2), i("li", { class: n({ selected: "7d" === d(s2) }), onClick: l3[1] || (l3[1] = (e2) => c2("7d")) }, "7D", 2), i("li", { class: n({ selected: "1m" === d(s2) }), onClick: l3[2] || (l3[2] = (e2) => c2("1m")) }, "1M", 2), i("li", { class: n({ selected: "3m" === d(s2) }), onClick: l3[3] || (l3[3] = (e2) => c2("3m")) }, "3M", 2)]));
2339
+ } }), Wr = { class: "chart-header flex flex-row justify-between" }, Kr = { class: "text-sm font-medium text-gray-500 truncate" }, Jr = { class: "chart-content" }, Gr = { class: "h-full w-full flex items-center justify-center flex-col" }, Zr = i("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1), Xr = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, Qr = [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)], ei = { name: "uiChart" }, ti = Object.assign(ei, { props: { title: String, id: { type: String, default: "noChartId" }, type: { type: String, default: "area" }, series: { type: Array, required: true }, options: { type: Object, required: true }, loading: { type: Boolean, default: true }, empty: { type: Boolean, default: false }, range: { type: String, default: "24h" }, horizontal: { type: Boolean, default: false }, stacked: { type: Boolean, default: false }, height: { type: Number, default: 320 }, annotations: { type: Object } }, emits: ["selectedRange", "chartUpdated", "dataPointSelection"], setup(t2, { emit: l2 }) {
2328
2340
  const r2 = l2, s2 = t2;
2329
2341
  let c2 = { chart: { toolbar: { show: false }, zoom: { enabled: false } }, colors: ["#715aff", "#00ffff", "#aba9ba"], stroke: { show: true, curve: "stepline", lineCap: "butt", width: 1, dashArray: 0 }, dataLabels: { enabled: true }, markers: { strokeWidth: 0, size: 4, hover: { size: 8 } } };
2330
2342
  s2.annotations && (c2.annotations = { yaxis: [{ y: s2.annotations.high, borderColor: "#4f46e5", label: { borderColor: "#4f46e5", style: { color: "#fff", background: "#4f46e5" }, text: s2.annotations.text } }] }), "area" === s2.type && (c2.tooltip = { intersect: true, shared: false });
2331
- const p2 = u(() => s2.series), g2 = u(() => (c2.chart.stacked = s2.stacked, { ...c2, ...s2.options, plotOptions: { bar: { horizontal: s2.horizontal } } })), m2 = () => r2("chartUpdated"), f2 = (e2, t3, l3) => {
2343
+ const p2 = u(() => s2.series), g2 = u(() => (c2.chart.stacked = s2.stacked, { ...c2, ...s2.options, plotOptions: { bar: { horizontal: s2.horizontal } } })), f2 = () => r2("chartUpdated"), m2 = (e2, t3, l3) => {
2332
2344
  r2("dataPointSelection", { id: s2.id, chartContext: t3, config: l3, event: e2 });
2333
2345
  };
2334
- return (l3, r3) => (e(), a(w, null, [B(i("div", { class: n(["h-[" + t2.height + "px]", "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"]) }, [i("div", Ur, [i("div", qr, _(t2.title), 1), o(Yr, { range: t2.range, onRangeSelected: r3[0] || (r3[0] = (e2) => l3.$emit("selectedRange", { range: e2, chartId: t2.id })) }, null, 8, ["range"])]), B(i("div", Wr, [o(d(U), { type: t2.type, series: p2.value, width: "100%", height: t2.height, options: g2.value, onUpdated: m2, onMounted: m2, onDataPointSelection: f2 }, null, 8, ["type", "series", "height", "options"])], 512), [[L, !t2.empty]]), B(i("div", Kr, [o(J, { icon: d(fn), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), Jr], 512), [[L, t2.empty]])], 2), [[L, !t2.loading]]), B(i("div", Gr, Zr, 512), [[L, t2.loading]])], 64));
2335
- } }), ei = { name: "uiFooter" }, ti = { class: "bg-white" }, li = [i("div", { class: "mx-auto py-6 px-4 sm:px-6 md:flex md:items-center md:justify-between lg:px-8" }, [i("div", { class: "mt-8 md:mt-0 md:order-1" }, [i("p", { class: "text-center text-base text-gray-400" }, "© Made by Hotelinking.")])], -1)];
2336
- const ni = zo(ei, [["render", function(t2, l2, n2, o2, r2, i2) {
2337
- return e(), a("footer", ti, li);
2338
- }]]), ai = i("div", { class: "spinner h-12 w-12 mb-6" }, [i("img", { src: "https://images.hotelinking.com/ui/loader.gif", alt: "loading animation" })], -1), oi = { name: "uiLoadScreen" }, ri = Object.assign(oi, { 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"]) }, [ai, 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)) }), ii = { key: 0, class: "py-6 flex items-center justify-between" }, si = { class: "flex-1 flex justify-between sm:hidden" }, ui = { 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" }, di = { 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" }, ci = { class: "hidden sm:flex-1 sm:flex sm:items-center sm:justify-between" }, pi = { class: "text-sm text-gray-700" }, gi = { class: "font-bold" }, mi = { class: "font-bold" }, fi = { class: "relative z-0 inline-flex rounded-md shadow-sm -space-x-px", "aria-label": "Pagination" }, vi = { class: "sr-only" }, hi = ["onClick"], bi = { class: "sr-only" }, yi = { key: 1, class: "py-6 flex flex-row justify-between items-center animate-pulse" }, xi = [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)], wi = { name: "uiPagination" }, ki = Object.assign(wi, { props: { current: { type: Number, requires: true }, total: { type: Number, requires: true }, loading: { type: Boolean, default: true } }, emits: ["changePage"], setup(t2, { emit: l2 }) {
2339
- const c2 = l2, p2 = t2, g2 = s(3), m2 = u(() => Math.max(1, Number(p2.current) - Number(g2.value))), f2 = u(() => Math.min(Number(p2.current) + Number(g2.value), Number(p2.total))), v2 = u(() => {
2346
+ 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", Wr, [i("div", Kr, _(t2.title), 1), o(qr, { range: t2.range, onRangeSelected: r3[0] || (r3[0] = (e2) => l3.$emit("selectedRange", { range: e2, chartId: t2.id })) }, null, 8, ["range"])]), B(i("div", Jr, [o(d(U), { type: t2.type, series: p2.value, width: "100%", height: t2.height, options: g2.value, onUpdated: f2, onMounted: f2, onDataPointSelection: m2 }, null, 8, ["type", "series", "height", "options"])], 512), [[L, !t2.empty]]), B(i("div", Gr, [o(J, { icon: d(hn), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), Zr], 512), [[L, t2.empty]])], 2), [[L, !t2.loading]]), B(i("div", Xr, Qr, 512), [[L, t2.loading]])], 64));
2347
+ } }), li = { name: "uiFooter" }, ni = { class: "bg-white" }, ai = [i("div", { class: "mx-auto py-6 px-4 sm:px-6 md:flex md:items-center md:justify-between lg:px-8" }, [i("div", { class: "mt-8 md:mt-0 md:order-1" }, [i("p", { class: "text-center text-base text-gray-400" }, "© Made by Hotelinking.")])], -1)];
2348
+ const oi = Vo(li, [["render", function(t2, l2, n2, o2, r2, i2) {
2349
+ return e(), a("footer", ni, ai);
2350
+ }]]), ri = i("div", { class: "spinner h-12 w-12 mb-6" }, [i("img", { src: "https://images.hotelinking.com/ui/loader.gif", alt: "loading animation" })], -1), ii = { name: "uiLoadScreen" }, si = Object.assign(ii, { 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"]) }, [ri, 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" }, di = { class: "flex-1 flex justify-between sm:hidden" }, ci = { 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" }, pi = { 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" }, gi = { class: "hidden sm:flex-1 sm:flex sm:items-center sm:justify-between" }, fi = { class: "text-sm text-gray-700" }, mi = { class: "font-bold" }, vi = { class: "font-bold" }, hi = { class: "relative z-0 inline-flex rounded-md shadow-sm -space-x-px", "aria-label": "Pagination" }, bi = { class: "sr-only" }, yi = ["onClick"], xi = { class: "sr-only" }, wi = { key: 1, class: "py-6 flex flex-row justify-between items-center animate-pulse" }, ki = [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)], Si = { name: "uiPagination" }, Ci = Object.assign(Si, { props: { current: { type: Number, requires: true }, total: { type: Number, requires: true }, loading: { type: Boolean, default: true } }, emits: ["changePage"], setup(t2, { emit: l2 }) {
2351
+ const c2 = l2, p2 = t2, g2 = s(3), f2 = u(() => Math.max(1, Number(p2.current) - Number(g2.value))), m2 = u(() => Math.min(Number(p2.current) + Number(g2.value), Number(p2.total))), v2 = u(() => {
2340
2352
  let e2 = [];
2341
- for (let t3 = Number(m2.value); t3 <= Number(f2.value); t3++)
2353
+ for (let t3 = Number(f2.value); t3 <= Number(m2.value); t3++)
2342
2354
  e2.push(t3);
2343
2355
  return e2;
2344
2356
  });
2345
- return (l3, s2) => t2.loading ? (e(), a("div", yi, xi)) : (e(), a("div", ii, [i("div", si, [i("a", ui, [r(l3.$slots, "previous")]), i("a", di, [r(l3.$slots, "next")])]), i("div", ci, [i("div", null, [i("p", pi, [r(l3.$slots, "showing"), I(), i("span", gi, _(t2.current + " "), 1), r(l3.$slots, "of"), I(), i("span", mi, _(t2.total), 1)])]), i("div", null, [i("nav", fi, [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", vi, [r(l3.$slots, "previous")]), o(d(cn), { class: "h-5 w-5", "aria-hidden": "true" })], 512), [[L, 1 !== t2.current]]), (e(true), a(w, null, j(v2.value, (l4) => (e(), a("button", { onClick: (e2) => c2("changePage", l4), key: l4, "aria-current": "page", class: n([[l4 === t2.current ? "z-10 bg-indigo-50 border-indigo-500 text-indigo-600" : "bg-white border-gray-300 text-gray-500 hover:bg-gray-50"], "relative inline-flex items-center px-4 py-2 border text-sm font-medium"]) }, _(l4), 11, hi))), 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", bi, [r(l3.$slots, "next")]), o(d(pn), { class: "h-5 w-5", "aria-hidden": "true" })], 512), [[L, t2.current !== t2.total]])])])])]));
2346
- } }), Si = { class: "hidden md:flex md:flex-col sticky md:inset-y-0" }, Ci = { class: "flex flex-col flex-grow overflow-y-auto" }, Oi = { class: "grow flex flex-col" }, Mi = { class: "flex-1 space-y-1", "aria-label": "Sidebar" }, Di = { key: 0 }, Ti = ["onClick"], Ei = { key: 0, class: "text-left" }, Ii = { key: 0, class: "flex-1 text-left" }, _i = { key: 1, class: "flex-1" }, Pi = [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1)], ji = { key: 0, class: "align-left" }, Ri = { key: 1, class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, Bi = { class: "h-12 flex flex-row items-center" }, Ai = [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)], Li = { name: "uiSidebar" }, Fi = Object.assign(Li, { props: { navigation: { type: Array, required: true }, loading: { type: Boolean, default: true } }, emits: ["sideBarClick"], setup(l2, { emit: r2 }) {
2357
+ return (l3, s2) => t2.loading ? (e(), a("div", wi, ki)) : (e(), a("div", ui, [i("div", di, [i("a", ci, [r(l3.$slots, "previous")]), i("a", pi, [r(l3.$slots, "next")])]), i("div", gi, [i("div", null, [i("p", fi, [r(l3.$slots, "showing"), I(), i("span", mi, _(t2.current + " "), 1), r(l3.$slots, "of"), I(), i("span", vi, _(t2.total), 1)])]), i("div", null, [i("nav", hi, [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", bi, [r(l3.$slots, "previous")]), o(d(gn), { class: "h-5 w-5", "aria-hidden": "true" })], 512), [[L, 1 !== t2.current]]), (e(true), a(k, null, j(v2.value, (l4) => (e(), a("button", { onClick: (e2) => c2("changePage", l4), key: l4, "aria-current": "page", class: n([[l4 === t2.current ? "z-10 bg-indigo-50 border-indigo-500 text-indigo-600" : "bg-white border-gray-300 text-gray-500 hover:bg-gray-50"], "relative inline-flex items-center px-4 py-2 border text-sm font-medium"]) }, _(l4), 11, yi))), 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", xi, [r(l3.$slots, "next")]), o(d(fn), { class: "h-5 w-5", "aria-hidden": "true" })], 512), [[L, t2.current !== t2.total]])])])])]));
2358
+ } }), Oi = { class: "hidden md:flex md:flex-col sticky md:inset-y-0" }, Mi = { class: "flex flex-col flex-grow overflow-y-auto" }, Di = { class: "grow flex flex-col" }, Ti = { class: "flex-1 space-y-1", "aria-label": "Sidebar" }, Ei = { key: 0 }, Ii = ["onClick"], _i = { key: 0, class: "text-left" }, Pi = { key: 0, class: "flex-1 text-left" }, ji = { key: 1, class: "flex-1" }, Ri = [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1)], Bi = { key: 0, class: "align-left" }, Ai = { key: 1, class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, Li = { class: "h-12 flex flex-row items-center" }, Fi = [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)], Ni = { name: "uiSidebar" }, zi = Object.assign(Ni, { props: { navigation: { type: Array, required: true }, loading: { type: Boolean, default: true } }, emits: ["sideBarClick"], setup(l2, { emit: r2 }) {
2347
2359
  const s2 = r2;
2348
- return (r3, u2) => (e(), a("div", Si, [i("div", Ci, [i("div", Oi, [i("nav", Mi, [l2.loading ? (e(), a(w, { key: 1 }, j(5, (e2) => i("div", Bi, Ai)), 64)) : (e(true), a(w, { key: 0 }, j(l2.navigation, (r4) => (e(), a(w, { key: r4.name }, [r4.children ? (e(), t(d(Sl), { key: 1, as: "div", class: "space-y-1" }, { default: E(({ open: i2 }) => [o(d(Cl), { 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(J, { 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", _i, Pi)) : (e(), a("span", Ii, _(r4.name), 1)), o(d(pn), { class: n([i2 ? "text-gray-400 rotate-90" : "text-gray-400", "ml-3 flex-shrink-0 h-3 w-3 transform group-hover:text-gray-400 transition-colors ease-in-out duration-150"]) }, null, 8, ["class"])]), _: 2 }, 1032, ["class"]), o(d(Ol), { class: "space-y-1" }, { default: E(() => [(e(true), a(w, null, j(r4.children, (o2) => (e(), t(d(Cl), { 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", Ri)) : (e(), a("span", ji, _(o2.name), 1))]), _: 2 }, 1032, ["onClick", "class"]))), 128))]), _: 2 }, 1024)]), _: 2 }, 1024)) : (e(), a("div", Di, [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(J, { 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", Ei, _(r4.name), 1))], 10, Ti)]))], 64))), 128))])])])]));
2349
- } }), Ni = { key: 0 }, zi = { class: "ml-16 text-sm font-medium text-gray-500 truncate" }, $i = { class: "ml-16 flex items-baseline pb-5" }, Vi = { class: "text-2xl font-semibold text-gray-900" }, Hi = { key: 0, class: "text-black ml-2 flex items-baseline text-sm font-semibold" }, Yi = { class: "absolute bottom-0 inset-x-0 bg-gray-50 px-4 py-4 sm:px-6" }, Ui = { class: "text-sm" }, qi = { key: 1 }, Wi = { class: "relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full pb-6" }, Ki = { class: "absolute bg-gray-200 rounded-md p-3 animate-pulse" }, Ji = 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), Gi = 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), Zi = { name: "uiStats" }, Xi = Object.assign(Zi, { props: { item: { type: Object, required: true }, loading: { type: Boolean, default: true } }, emits: ["statClick"], setup(l2, { emit: r2 }) {
2360
+ return (r3, u2) => (e(), a("div", Oi, [i("div", Mi, [i("div", Di, [i("nav", Ti, [l2.loading ? (e(), a(k, { key: 1 }, j(5, (e2) => i("div", Li, Fi)), 64)) : (e(true), a(k, { key: 0 }, j(l2.navigation, (r4) => (e(), a(k, { key: r4.name }, [r4.children ? (e(), t(d(Ol), { key: 1, as: "div", class: "space-y-1" }, { default: E(({ open: i2 }) => [o(d(Ml), { 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(J, { 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", ji, Ri)) : (e(), a("span", Pi, _(r4.name), 1)), o(d(fn), { class: n([i2 ? "text-gray-400 rotate-90" : "text-gray-400", "ml-3 flex-shrink-0 h-3 w-3 transform group-hover:text-gray-400 transition-colors ease-in-out duration-150"]) }, null, 8, ["class"])]), _: 2 }, 1032, ["class"]), o(d(Dl), { class: "space-y-1" }, { default: E(() => [(e(true), a(k, null, j(r4.children, (o2) => (e(), t(d(Ml), { 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", Ai)) : (e(), a("span", Bi, _(o2.name), 1))]), _: 2 }, 1032, ["onClick", "class"]))), 128))]), _: 2 }, 1024)]), _: 2 }, 1024)) : (e(), a("div", Ei, [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(J, { 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", _i, _(r4.name), 1))], 10, Ii)]))], 64))), 128))])])])]));
2361
+ } }), $i = { key: 0 }, Vi = { class: "ml-16 text-sm font-medium text-gray-500 truncate" }, Hi = { class: "ml-16 flex items-baseline pb-5" }, Yi = { class: "text-2xl font-semibold text-gray-900" }, Ui = { key: 0, class: "text-black ml-2 flex items-baseline text-sm font-semibold" }, qi = { class: "absolute bottom-0 inset-x-0 bg-gray-50 px-4 py-4 sm:px-6" }, Wi = { class: "text-sm" }, Ki = { key: 1 }, Ji = { class: "relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full pb-6" }, Gi = { class: "absolute bg-gray-200 rounded-md p-3 animate-pulse" }, Zi = i("div", { class: "ml-16" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2 mb-4 animate-pulse" })], -1), Xi = 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), Qi = { name: "uiStats" }, es = Object.assign(Qi, { props: { item: { type: Object, required: true }, loading: { type: Boolean, default: true } }, emits: ["statClick"], setup(l2, { emit: r2 }) {
2350
2362
  const s2 = r2;
2351
- return (r3, u2) => l2.loading ? (e(), a("div", qi, [i("div", Wi, [i("dt", null, [i("div", Ki, [o(J, { loading: l2.loading, icon: l2.item.icon, class: "h-6 w-6 text-white", "aria-hidden": "true" }, null, 8, ["loading", "icon"])]), Ji, Gi])])])) : (e(), a("div", Ni, [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(J, { icon: l2.item.icon, class: "h-6 w-6 text-white", "aria-hidden": "true", loading: l2.loading }, null, 8, ["icon", "loading"])], 2), i("p", zi, _(l2.item.name), 1)]), i("dd", $i, [i("p", Vi, _(l2.item.stat), 1), l2.item.explanation ? (e(), a("p", Hi, _(l2.item.explanation), 1)) : R("", true), l2.item.changeType ? (e(), a("p", { key: 1, class: n([{ "text-green-600": "increase" === l2.item.changeType, "text-red-600": "decrease" === l2.item.changeType, "text-black": "neutral" === l2.item.changeType }, "ml-2 flex items-baseline text-sm font-semibold"]) }, ["increase" === l2.item.changeType ? (e(), t(d(on), { key: 0, class: "self-center flex-shrink-0 h-3 w-3 text-green-500", "aria-hidden": "true" })) : R("", true), "decrease" === l2.item.changeType ? (e(), t(d(an), { 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", Yi, [i("div", Ui, [i("span", { onClick: u2[0] || (u2[0] = (e2) => s2("statClick", l2.item.id)), class: "font-medium text-indigo-600 hover:text-indigo-500 cursor-pointer" }, _(l2.item.actionText), 1)])], 512), [[L, l2.item.showFooter]])])], 2)]));
2352
- } }), Qi = { key: 0, class: "overflow-hidden bg-white shadow sm:rounded-lg" }, es = { class: "px-4 py-5 sm:px-6" }, ts = { class: "text-lg font-medium leading-6 text-gray-900" }, ls = { class: "mt-1 max-w-2xl text-sm text-gray-500" }, ns = { class: "border-t border-gray-200" }, as = { class: "text-sm font-medium text-gray-500" }, os = { key: 0, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal" }, rs = { key: 1, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal" }, is = ["onClick"], ss = { key: 3, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-words" }, us = { key: 1, class: "overflow-hidden bg-white shadow sm:rounded-lg" }, ds = 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), cs = { class: "border-t border-gray-200" }, ps = [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)], gs = { name: "uiStripedCard" }, ms = Object.assign(gs, { 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", us, [ds, i("div", cs, [i("dl", null, [(e(), a(w, null, j(5, (e2) => i("div", { key: e2, class: n(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [e2 % 2 == 0 ? "bg-gray-50" : "bg-white"]]) }, ps, 2)), 64))])])])) : (e(), a("div", Qi, [i("div", es, [i("h3", ts, _(l2.title), 1), i("p", ls, _(l2.subtitle), 1)]), i("div", ns, [i("dl", null, [(e(true), a(w, null, j(l2.items, (s3, u2) => (e(), a("div", { key: u2, class: n(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [u2 % 2 == 0 ? "bg-gray-50" : "bg-white"]]) }, [i("dt", as, _(s3.title), 1), "tag" === s3.type ? (e(), a("dd", os, [o(ua, { color: s3.color }, { default: E(() => [I(_(s3.text), 1)]), _: 2 }, 1032, ["color"])])) : "tags" === s3.type ? (e(), a("dd", rs, [(e(true), a(w, null, j(s3.tags, (n2, a2) => (e(), t(ua, { 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, is)) : (e(), a("dd", ss, _(s3.text), 1))], 2))), 128))])])])) }), fs = { 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" }, vs = 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), hs = { class: "ml-2" }, bs = { __name: "tooltip", props: { tip: { type: String, required: true } }, setup: (t2) => (l2, n2) => (e(), a("div", fs, [vs, i("div", null, [o(J, { icon: d(yn), loading: false, color: "white", size: "big" }, null, 8, ["icon"])]), i("span", hs, _(t2.tip), 1)])) }, ys = { key: 0 }, xs = { class: "flex flex-col" }, ws = { class: "-my-2 overflow-x-auto" }, ks = { class: "inline-block min-w-full py-2 align-middle px-1" }, Ss = { class: "relative overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg" }, Cs = { 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" }, Os = ["onClick"], Ms = { class: "min-w-full table-fixed divide-y divide-gray-300" }, Ds = { class: "bg-gray-50" }, Ts = ["checked", "indeterminate"], Es = ["onMouseover", "onMouseleave"], Is = ["onClick"], _s = { key: 2, class: "group flex items-center uppercase text-xs" }, Ps = { class: "divide-y divide-gray-200 bg-white" }, js = { key: 0, class: "absolute inset-y-0 left-0 w-0.5 bg-indigo-600" }, Rs = ["value"], Bs = ["onClick"], As = ["href"], Ls = { key: 3 }, Fs = { name: "uiTable" }, Ns = Object.assign(Fs, { 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 }) {
2363
+ return (r3, u2) => l2.loading ? (e(), a("div", Ki, [i("div", Ji, [i("dt", null, [i("div", Gi, [o(J, { loading: l2.loading, icon: l2.item.icon, class: "h-6 w-6 text-white", "aria-hidden": "true" }, null, 8, ["loading", "icon"])]), Zi, Xi])])])) : (e(), a("div", $i, [i("div", { class: n(["relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full", { "pb-12": l2.item.showFooter }]) }, [i("dt", null, [i("div", { class: n(["absolute rounded-md p-3", { "bg-indigo-500": !l2.item.color, "bg-green-500": "success" === l2.item.color, "bg-red-500": "danger" === l2.item.color, "bg-yellow-500": "warning" === l2.item.color }]) }, [o(J, { icon: l2.item.icon, class: "h-6 w-6 text-white", "aria-hidden": "true", loading: l2.loading }, null, 8, ["icon", "loading"])], 2), i("p", Vi, _(l2.item.name), 1)]), i("dd", Hi, [i("p", Yi, _(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(d(sn), { key: 0, class: "self-center flex-shrink-0 h-3 w-3 text-green-500", "aria-hidden": "true" })) : R("", true), "decrease" === l2.item.changeType ? (e(), t(d(rn), { 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", qi, [i("div", Wi, [i("span", { onClick: u2[0] || (u2[0] = (e2) => s2("statClick", l2.item.id)), class: "font-medium text-indigo-600 hover:text-indigo-500 cursor-pointer" }, _(l2.item.actionText), 1)])], 512), [[L, l2.item.showFooter]])])], 2)]));
2364
+ } }), ts = { key: 0, class: "overflow-hidden bg-white shadow sm:rounded-lg" }, ls = { class: "px-4 py-5 sm:px-6" }, ns = { class: "text-lg font-medium leading-6 text-gray-900" }, as = { class: "mt-1 max-w-2xl text-sm text-gray-500" }, os = { class: "border-t border-gray-200" }, rs = { class: "text-sm font-medium text-gray-500" }, is = { key: 0, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal" }, ss = { key: 1, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal" }, us = ["onClick"], ds = { key: 3, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-words" }, cs = { key: 1, class: "overflow-hidden bg-white shadow sm:rounded-lg" }, ps = 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), gs = { class: "border-t border-gray-200" }, fs = [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)], ms = { name: "uiStripedCard" }, vs = Object.assign(ms, { 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", cs, [ps, i("div", gs, [i("dl", null, [(e(), a(k, null, j(5, (e2) => i("div", { key: e2, class: n(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [e2 % 2 == 0 ? "bg-gray-50" : "bg-white"]]) }, fs, 2)), 64))])])])) : (e(), a("div", ts, [i("div", ls, [i("h3", ns, _(l2.title), 1), i("p", as, _(l2.subtitle), 1)]), i("div", os, [i("dl", null, [(e(true), a(k, null, j(l2.items, (s3, u2) => (e(), a("div", { key: u2, class: n(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [u2 % 2 == 0 ? "bg-gray-50" : "bg-white"]]) }, [i("dt", rs, _(s3.title), 1), "tag" === s3.type ? (e(), a("dd", is, [o(ca, { color: s3.color }, { default: E(() => [I(_(s3.text), 1)]), _: 2 }, 1032, ["color"])])) : "tags" === s3.type ? (e(), a("dd", ss, [(e(true), a(k, null, j(s3.tags, (n2, a2) => (e(), t(ca, { 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", ds, _(s3.text), 1))], 2))), 128))])])])) }), hs = { 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" }, bs = 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), ys = { class: "ml-2" }, xs = { __name: "tooltip", props: { tip: { type: String, required: true } }, setup: (t2) => (l2, n2) => (e(), a("div", hs, [bs, i("div", null, [o(J, { icon: d(wn), loading: false, color: "white", size: "big" }, null, 8, ["icon"])]), i("span", ys, _(t2.tip), 1)])) }, ws = { key: 0 }, ks = { class: "flex flex-col" }, Ss = { class: "-my-2 overflow-x-auto" }, Cs = { class: "inline-block min-w-full py-2 align-middle px-1" }, Os = { class: "relative overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg" }, Ms = { key: 0, class: "absolute top-0 left-12 flex h-12 items-center space-x-3 sm:left-16 bg-white shadow rounded px-4 py-1 z-10" }, Ds = ["onClick"], Ts = { class: "min-w-full table-fixed divide-y divide-gray-300" }, Es = { class: "bg-gray-50" }, Is = ["checked", "indeterminate"], _s = ["onMouseover", "onMouseleave"], Ps = ["onClick"], js = { key: 2, class: "group flex items-center uppercase text-xs" }, Rs = { class: "divide-y divide-gray-200 bg-white" }, Bs = { key: 0, class: "absolute inset-y-0 left-0 w-0.5 bg-indigo-600" }, As = ["value"], Ls = ["onClick"], Fs = ["href"], Ns = { key: 3 }, zs = { name: "uiTable" }, $s = Object.assign(zs, { 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 }) {
2353
2365
  let c2 = s([]);
2354
2366
  s(false);
2355
2367
  let p2 = s(void 0);
2356
- const g2 = r2, m2 = l2, f2 = u(() => c2.value.length > 0 && c2.value.length < m2.items.length), v2 = (e2, t2) => {
2368
+ const g2 = r2, f2 = l2, m2 = u(() => c2.value.length > 0 && c2.value.length < f2.items.length), v2 = (e2, t2) => {
2357
2369
  p2 !== e2 && t2 && (p2.value = e2), t2 || (p2.value = void 0);
2358
2370
  };
2359
2371
  return (r3, s2) => {
2360
2372
  var _a2, _b;
2361
- return l2.loading ? (e(), t(lr, { key: 1 })) : (e(), a("div", ys, [i("div", xs, [i("div", ws, [i("div", ks, [i("div", Ss, [((_a2 = d(c2)) == null ? void 0 : _a2.length) > 0 && ((_b = l2.actions) == null ? void 0 : _b.length) > 0 ? (e(), a("div", Cs, [(e(true), a(w, null, j(l2.actions, (t2, l3) => (e(), a("button", { onClick: (e2) => g2("tableAction", { action: t2.id, items: d(c2) }), key: l3, type: "button", class: "inline-flex items-center rounded bg-indigo-600 hover:bg-indigo-800 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm disabled:cursor-not-allowed disabled:opacity-30" }, _(t2.name), 9, Os))), 128))])) : R("", true), i("table", Ms, [i("thead", Ds, [i("tr", null, [i("th", { scope: "col", class: n([l2.actions ? "px-6 sm:px-8" : "px-3", "relative"]) }, [l2.actions ? (e(), a("input", { key: 0, checked: f2.value || d(c2).length === l2.items.length, indeterminate: f2.value, class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500", type: "checkbox", onChange: s2[0] || (s2[0] = (e2) => 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, Ts)) : R("", true)], 2), (e(true), a(w, null, j(l2.header, (r4, s3) => (e(), a("th", { key: s3, class: "py-3.5 pr-3 text-left font-semibold text-gray-900 flex-wrap relative", scope: "col", onMouseover: (e2) => v2(r4.name, true), onMouseleave: (e2) => v2(r4.name, false) }, [r4.tooltip ? B((e(), t(bs, { key: 0, tip: r4.tooltip }, null, 8, ["tip"])), [[L, d(p2) === r4.name]]) : R("", true), r4.value ? (e(), a("button", { key: 1, class: "group flex items-center uppercase text-xs relative", onClick: (e2) => g2("orderBy", { value: r4.value, orderDirection: "asc" === l2.orderDirection ? "desc" : "asc" }) }, [i("span", null, _(r4.name), 1), i("span", { class: n([[r4.value === l2.orderedBy ? "bg-indigo-600 text-white group-hover:bg-gray-300" : "text-gray-400 group-hover:visible group-focus:visible"], "ml-2 flex-none rounded group-hover:bg-indigo-200 group-hover:text-white"]) }, [o(J, { icon: "asc" === l2.orderDirection ? d(dn) : d(mn), loading: l2.loading, color: r4.value === l2.orderedBy ? "white" : "primary" }, null, 8, ["icon", "loading", "color"])], 2)], 8, Is)) : (e(), a("p", _s, [i("span", null, _(r4.name), 1)]))], 40, Es))), 128))])]), i("tbody", Ps, [(e(true), a(w, null, j(l2.items, (o2, r4) => {
2373
+ return l2.loading ? (e(), t(ar, { key: 1 })) : (e(), a("div", ws, [i("div", ks, [i("div", Ss, [i("div", Cs, [i("div", Os, [((_a2 = d(c2)) == null ? void 0 : _a2.length) > 0 && ((_b = l2.actions) == null ? void 0 : _b.length) > 0 ? (e(), a("div", Ms, [(e(true), a(k, null, j(l2.actions, (t2, l3) => (e(), a("button", { onClick: (e2) => g2("tableAction", { action: t2.id, items: d(c2) }), key: l3, type: "button", class: "inline-flex items-center rounded bg-indigo-600 hover:bg-indigo-800 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm disabled:cursor-not-allowed disabled:opacity-30" }, _(t2.name), 9, Ds))), 128))])) : R("", true), i("table", Ts, [i("thead", Es, [i("tr", null, [i("th", { scope: "col", class: n([l2.actions ? "px-6 sm:px-8" : "px-3", "relative"]) }, [l2.actions ? (e(), a("input", { key: 0, checked: m2.value || d(c2).length === l2.items.length, indeterminate: m2.value, class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500", type: "checkbox", onChange: s2[0] || (s2[0] = (e2) => 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, Is)) : R("", true)], 2), (e(true), a(k, null, j(l2.header, (r4, s3) => (e(), a("th", { key: s3, class: "py-3.5 pr-3 text-left font-semibold text-gray-900 flex-wrap relative", scope: "col", onMouseover: (e2) => v2(r4.name, true), onMouseleave: (e2) => v2(r4.name, false) }, [r4.tooltip ? B((e(), t(xs, { key: 0, tip: r4.tooltip }, null, 8, ["tip"])), [[L, d(p2) === r4.name]]) : R("", true), r4.value ? (e(), a("button", { key: 1, class: "group flex items-center uppercase text-xs relative", onClick: (e2) => g2("orderBy", { value: r4.value, orderDirection: "asc" === l2.orderDirection ? "desc" : "asc" }) }, [i("span", null, _(r4.name), 1), i("span", { class: n([[r4.value === l2.orderedBy ? "bg-indigo-600 text-white group-hover:bg-gray-300" : "text-gray-400 group-hover:visible group-focus:visible"], "ml-2 flex-none rounded group-hover:bg-indigo-200 group-hover:text-white"]) }, [o(J, { icon: "asc" === l2.orderDirection ? d(pn) : d(vn), loading: l2.loading, color: r4.value === l2.orderedBy ? "white" : "primary" }, null, 8, ["icon", "loading", "color"])], 2)], 8, Ps)) : (e(), a("p", js, [i("span", null, _(r4.name), 1)]))], 40, _s))), 128))])]), i("tbody", Rs, [(e(true), a(k, null, j(l2.items, (o2, r4) => {
2362
2374
  var _a3, _b2;
2363
- return e(), a("tr", { key: o2.id, class: n([d(c2).includes(o2.id) && "bg-gray-50", r4 % 2 == 0 ? void 0 : "bg-gray-50"]) }, [i("td", { class: n([((_a3 = l2.actions) == null ? void 0 : _a3.length) > 0 ? "w-2" : "w-0", "relative"]) }, [d(c2).includes(o2.id) ? (e(), a("div", js)) : 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, Rs)), [[V, d(c2)]]) : R("", true)], 2), (e(true), a(w, null, j(o2.row, (r5, i2) => (e(), a("td", { key: i2, class: n(["whitespace-nowrap py-4 pr-3 text-sm", d(c2).includes(o2.id) ? "text-indigo-600" : "text-gray-900"]) }, ["object" == typeof r5 && "tag" === r5.type ? (e(), t(ua, { 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, Bs)) : "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, As)) : (e(), a("span", Ls, _(r5), 1))], 2))), 128))], 2);
2375
+ return e(), a("tr", { key: o2.id, class: n([d(c2).includes(o2.id) && "bg-gray-50", r4 % 2 == 0 ? void 0 : "bg-gray-50"]) }, [i("td", { class: n([((_a3 = l2.actions) == null ? void 0 : _a3.length) > 0 ? "w-2" : "w-0", "relative"]) }, [d(c2).includes(o2.id) ? (e(), a("div", Bs)) : 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, As)), [[V, d(c2)]]) : R("", true)], 2), (e(true), a(k, null, j(o2.row, (r5, i2) => (e(), a("td", { key: i2, class: n(["whitespace-nowrap py-4 pr-3 text-sm", d(c2).includes(o2.id) ? "text-indigo-600" : "text-gray-900"]) }, ["object" == typeof r5 && "tag" === r5.type ? (e(), t(ca, { 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, Ls)) : "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, Fs)) : (e(), a("span", Ns, _(r5), 1))], 2))), 128))], 2);
2364
2376
  }), 128))])])])])])])]));
2365
2377
  };
2366
- } }), zs = { class: "lg:hidden" }, $s = ["value"], Vs = { class: "hidden lg:block" }, Hs = { class: "border-b border-gray-200" }, Ys = { class: "-mb-px flex space-x-8", "aria-label": "Tabs" }, Us = ["onClick", "aria-current"], qs = { name: "uiTabs" }, Ws = Object.assign(qs, { props: { tabs: Array }, emits: ["tabClicked"], setup(t2, { emit: l2 }) {
2378
+ } }), Vs = { class: "lg:hidden" }, Hs = ["value"], Ys = { class: "hidden lg:block" }, Us = { class: "border-b border-gray-200" }, qs = { class: "-mb-px flex space-x-8", "aria-label": "Tabs" }, Ws = ["onClick", "aria-current"], Ks = { name: "uiTabs" }, Js = Object.assign(Ks, { props: { tabs: Array }, emits: ["tabClicked"], setup(t2, { emit: l2 }) {
2367
2379
  const o2 = l2;
2368
- return (l3, r2) => (e(), a("div", null, [i("div", zs, [i("select", { onChange: r2[0] || (r2[0] = (e2) => {
2380
+ return (l3, r2) => (e(), a("div", null, [i("div", Vs, [i("select", { onChange: r2[0] || (r2[0] = (e2) => {
2369
2381
  o2("tabClicked", e2.target.value);
2370
- }), id: "tabs", name: "tabs", class: "block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm" }, [(e(true), a(w, null, j(t2.tabs, (t3) => (e(), a("option", { value: t3.id, key: t3.name }, _(t3.name), 9, $s))), 128))], 32)]), i("div", Vs, [i("div", Hs, [i("nav", Ys, [(e(true), a(w, null, j(t2.tabs, (t3) => (e(), a("a", { key: t3.name, onClick: (e2) => o2("tabClicked", t3.id), class: n([t3.current ? "border-indigo-500 text-indigo-600" : "border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-200", "whitespace-nowrap flex py-4 px-1 border-b-2 font-medium text-sm cursor-pointer"]), "aria-current": t3.current ? "page" : void 0 }, [I(_(t3.name) + " ", 1), t3.count ? (e(), a("span", { key: 0, class: n([t3.current ? "bg-indigo-100 text-indigo-600" : "bg-gray-100 text-gray-900", "hidden ml-3 py-0.5 px-2.5 rounded-full text-xs font-medium md:inline-block"]) }, _(t3.count), 3)) : R("", true)], 10, Us))), 128))])])])]));
2371
- } }), Ks = { key: 0, class: "bg-white overflow-hidden shadow rounded-lg" }, Js = { class: "px-4 py-5 sm:px-6" }, Gs = { class: "text-xl font-bold" }, Zs = { class: "px-4 py-5 sm:p-6" }, Xs = { class: "flow-root" }, Qs = { class: "-mb-8", role: "list" }, eu = { class: "relative pb-8" }, tu = { key: 0, class: "absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200", "aria-hidden": "true" }, lu = { class: "relative flex space-x-3" }, nu = { class: "min-w-0 flex-1 pt-1.5 flex justify-between space-x-4 items-center" }, au = { class: "text-sm text-gray-500" }, ou = ["onClick"], ru = { class: "text-right text-sm whitespace-nowrap text-gray-500" }, iu = ["datetime"], su = { class: "bg-gray-50 px-4 py-4 sm:px-6 z-10" }, uu = { class: "text-sm" }, du = { class: "h-full w-full flex items-center justify-center flex-col mb-5" }, cu = i("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1), pu = { key: 1, class: "bg-white overflow-hidden shadow rounded-lg" }, gu = i("div", { class: "px-4 py-5 sm:px-6 animate-pulse" }, [i("h1", { class: "text-xl font-bold" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4" })])], -1), mu = { class: "px-4 py-5 sm:p-6 animate-pulse" }, fu = { class: "flow-root" }, vu = { class: "-mb-8", role: "list" }, hu = { class: "relative pb-8" }, bu = { key: 0, class: "absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200", "aria-hidden": "true" }, yu = z('<div class="relative flex space-x-3"><div><span class="h-8 w-8 rounded-full bg-gray-300 flex items-center justify-center ring-4 ring-white"></span></div><div class="min-w-0 flex-1 pt-1.5 flex justify-between space-x-4 items-center"><div><p class="text-sm text-gray-500 flex-1"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full"></div></p></div><div class="text-right text-sm whitespace-nowrap text-gray-500 flex-1"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4"></div></div></div></div>', 1), xu = i("div", { class: "bg-gray-50 px-4 py-4 sm:px-6 z-10 animate-pulse" }, [i("div", { class: "text-sm" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4" })])], -1), wu = { name: "uiTimeline" }, ku = Object.assign(wu, { props: { name: { type: String, required: true }, timeline: { type: Object }, loading: { type: Boolean, default: true }, empty: { type: Boolean, default: false } }, setup: (t2) => (l2, r2) => {
2382
+ }), id: "tabs", name: "tabs", class: "block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm" }, [(e(true), a(k, null, j(t2.tabs, (t3) => (e(), a("option", { value: t3.id, key: t3.name }, _(t3.name), 9, Hs))), 128))], 32)]), i("div", Ys, [i("div", Us, [i("nav", qs, [(e(true), a(k, null, j(t2.tabs, (t3) => (e(), a("a", { key: t3.name, onClick: (e2) => o2("tabClicked", t3.id), class: n([t3.current ? "border-indigo-500 text-indigo-600" : "border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-200", "whitespace-nowrap flex py-4 px-1 border-b-2 font-medium text-sm cursor-pointer"]), "aria-current": t3.current ? "page" : void 0 }, [I(_(t3.name) + " ", 1), t3.count ? (e(), a("span", { key: 0, class: n([t3.current ? "bg-indigo-100 text-indigo-600" : "bg-gray-100 text-gray-900", "hidden ml-3 py-0.5 px-2.5 rounded-full text-xs font-medium md:inline-block"]) }, _(t3.count), 3)) : R("", true)], 10, Ws))), 128))])])])]));
2383
+ } }), Gs = { key: 0, class: "bg-white overflow-hidden shadow rounded-lg" }, Zs = { class: "px-4 py-5 sm:px-6" }, Xs = { class: "text-xl font-bold" }, Qs = { class: "px-4 py-5 sm:p-6" }, eu = { class: "flow-root" }, tu = { class: "-mb-8", role: "list" }, lu = { class: "relative pb-8" }, nu = { key: 0, class: "absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200", "aria-hidden": "true" }, au = { class: "relative flex space-x-3" }, ou = { class: "min-w-0 flex-1 pt-1.5 flex justify-between space-x-4 items-center" }, ru = { class: "text-sm text-gray-500" }, iu = ["onClick"], su = { class: "text-right text-sm whitespace-nowrap text-gray-500" }, uu = ["datetime"], du = { class: "bg-gray-50 px-4 py-4 sm:px-6 z-10" }, cu = { class: "text-sm" }, pu = { class: "h-full w-full flex items-center justify-center flex-col mb-5" }, gu = i("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1), fu = { key: 1, class: "bg-white overflow-hidden shadow rounded-lg" }, mu = i("div", { class: "px-4 py-5 sm:px-6 animate-pulse" }, [i("h1", { class: "text-xl font-bold" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4" })])], -1), vu = { class: "px-4 py-5 sm:p-6 animate-pulse" }, hu = { class: "flow-root" }, bu = { class: "-mb-8", role: "list" }, yu = { class: "relative pb-8" }, xu = { key: 0, class: "absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200", "aria-hidden": "true" }, wu = z('<div class="relative flex space-x-3"><div><span class="h-8 w-8 rounded-full bg-gray-300 flex items-center justify-center ring-4 ring-white"></span></div><div class="min-w-0 flex-1 pt-1.5 flex justify-between space-x-4 items-center"><div><p class="text-sm text-gray-500 flex-1"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full"></div></p></div><div class="text-right text-sm whitespace-nowrap text-gray-500 flex-1"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4"></div></div></div></div>', 1), ku = i("div", { class: "bg-gray-50 px-4 py-4 sm:px-6 z-10 animate-pulse" }, [i("div", { class: "text-sm" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4" })])], -1), Su = { name: "uiTimeline" }, Cu = Object.assign(Su, { props: { name: { type: String, required: true }, timeline: { type: Object }, loading: { type: Boolean, default: true }, empty: { type: Boolean, default: false } }, setup: (t2) => (l2, r2) => {
2372
2384
  const s2 = $("uiIcon");
2373
- return t2.loading ? (e(), a("div", pu, [gu, i("div", mu, [i("div", fu, [i("ul", vu, [(e(), a(w, null, j(10, (t3) => i("li", { key: l2.index }, [i("div", hu, [10 !== t3 ? (e(), a("span", bu)) : R("", true), yu])])), 64))])])]), xu])) : (e(), a("div", Ks, [i("div", Js, [i("h1", Gs, _(t2.name), 1)]), B(i("div", Zs, [i("div", Xs, [i("ul", Qs, [(e(true), a(w, null, j(t2.timeline.items, (r3, u2) => (e(), a("li", { key: u2 }, [i("div", eu, [u2 !== t2.timeline.items.length - 1 ? (e(), a("span", tu)) : R("", true), i("div", lu, [i("div", null, [i("span", { class: n([r3.iconBackground, "h-8 w-8 rounded-full flex items-center justify-center ring-4 ring-white"]) }, [o(s2, { loading: t2.loading, icon: r3.icon, "aria-hidden": "true", class: "h-5 w-5 text-white", color: "white" }, null, 8, ["loading", "icon"])], 2)]), i("div", nu, [i("div", null, [i("p", au, [i("a", { onClick: (e2) => l2.$emit("timelineEventClicked", r3.linkId), class: "font-medium text-indigo-600 hover:text-indigo-800 cursor-pointer" }, _(r3.target), 9, ou), I(" " + _(r3.content), 1)])]), i("div", ru, [i("time", { datetime: r3.datetime }, _(r3.date), 9, iu)])])])])]))), 128))])])], 512), [[L, !t2.empty]]), B(i("div", su, [i("div", uu, [i("a", { class: "cursor-pointer font-medium text-indigo-600 hover:text-indigo-500", onClick: r2[0] || (r2[0] = (e2) => l2.$emit("timelineFooterClicked", t2.timeline.id)) }, _(t2.timeline.footerText), 1)])], 512), [[L, !t2.empty]]), B(i("div", du, [o(J, { icon: d(fn), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), cu], 512), [[L, t2.empty]])]));
2374
- } }), Su = { name: "uiTopbar", props: ["navigation", "logo", "profileMenu", "brand", "accountLogo", "alerted"], components: { Disclosure: Sl, DisclosureButton: Cl, DisclosurePanel: Ol, Menu: jl, MenuButton: Rl, MenuItem: Al, MenuItems: Bl, Bars3Icon: function(t2, l2) {
2385
+ return t2.loading ? (e(), a("div", fu, [mu, i("div", vu, [i("div", hu, [i("ul", bu, [(e(), a(k, null, j(10, (t3) => i("li", { key: l2.index }, [i("div", yu, [10 !== t3 ? (e(), a("span", xu)) : R("", true), wu])])), 64))])])]), ku])) : (e(), a("div", Gs, [i("div", Zs, [i("h1", Xs, _(t2.name), 1)]), B(i("div", Qs, [i("div", eu, [i("ul", tu, [(e(true), a(k, null, j(t2.timeline.items, (r3, u2) => (e(), a("li", { key: u2 }, [i("div", lu, [u2 !== t2.timeline.items.length - 1 ? (e(), a("span", nu)) : R("", true), i("div", au, [i("div", null, [i("span", { class: n([r3.iconBackground, "h-8 w-8 rounded-full flex items-center justify-center ring-4 ring-white"]) }, [o(s2, { loading: t2.loading, icon: r3.icon, "aria-hidden": "true", class: "h-5 w-5 text-white", color: "white" }, null, 8, ["loading", "icon"])], 2)]), i("div", ou, [i("div", null, [i("p", ru, [i("a", { onClick: (e2) => l2.$emit("timelineEventClicked", r3.linkId), class: "font-medium text-indigo-600 hover:text-indigo-800 cursor-pointer" }, _(r3.target), 9, iu), I(" " + _(r3.content), 1)])]), i("div", su, [i("time", { datetime: r3.datetime }, _(r3.date), 9, uu)])])])])]))), 128))])])], 512), [[L, !t2.empty]]), B(i("div", du, [i("div", cu, [i("a", { class: "cursor-pointer font-medium text-indigo-600 hover:text-indigo-500", onClick: r2[0] || (r2[0] = (e2) => l2.$emit("timelineFooterClicked", t2.timeline.id)) }, _(t2.timeline.footerText), 1)])], 512), [[L, !t2.empty]]), B(i("div", pu, [o(J, { icon: d(hn), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), gu], 512), [[L, t2.empty]])]));
2386
+ } }), Ou = { name: "uiTopbar", props: ["navigation", "logo", "profileMenu", "brand", "accountLogo", "alerted"], components: { Disclosure: Ol, DisclosureButton: Ml, DisclosurePanel: Dl, Menu: Bl, MenuButton: Al, MenuItem: Fl, MenuItems: Ll, Bars3Icon: function(t2, l2) {
2375
2387
  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" })]);
2376
- }, XMarkIcon: kn } }, Cu = { class: "mx-auto px-6 lg:px-8" }, Ou = { class: "flex justify-between h-20" }, Mu = { class: "flex" }, Du = { class: "-ml-2 mr-2 flex items-center lg:hidden" }, Tu = i("span", { class: "sr-only" }, "Open main menu", -1), Eu = ["src"], Iu = { class: "flex items-center" }, _u = { class: "lg:ml-4 lg:flex-shrink-0 lg:flex lg:items-center hidden" }, Pu = { class: "redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute -top-0 -left-1" }, ju = [i("span", { class: "animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75" }, null, -1)], Ru = ["src"], Bu = ["onClick"], Au = { class: "pt-2 pb-3 space-y-1" }, Lu = ["onClick"], Fu = { class: "pt-4 pb-3 border-t border-gray-200" }, Nu = { class: "flex items-center px-4 sm:px-6" }, zu = { class: "flex-shrink-0" }, $u = ["src"], Vu = { key: 0, class: "ml-3" }, Hu = { class: "text-base font-medium text-gray-800" }, Yu = { class: "text-sm font-medium text-gray-500" }, Uu = { class: "mt-3 space-y-1" }, qu = ["onClick"];
2377
- const Wu = zo(Su, [["render", function(l2, r2, s2, u2, d2, c2) {
2378
- const p2 = $("Bars3Icon"), g2 = $("XMarkIcon"), m2 = $("DisclosureButton"), f2 = $("MenuButton"), v2 = $("MenuItem"), h2 = $("MenuItems"), b2 = $("Menu"), y2 = $("DisclosurePanel"), x2 = $("Disclosure");
2379
- return e(), t(x2, { as: "nav", class: "bg-white shadow z-10" }, { default: E(({ open: u3 }) => [i("div", Cu, [i("div", Ou, [i("div", Mu, [i("div", Du, [o(m2, { class: "inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500" }, { default: E(() => [Tu, u3 ? (e(), t(g2, { key: 1, class: "block h-6 w-6", "aria-hidden": "true" })) : (e(), t(p2, { key: 0, class: "block h-6 w-6", "aria-hidden": "true" }))]), _: 2 }, 1024)]), i("div", { class: "flex-shrink-0 flex items-center cursor-pointer", onClick: r2[0] || (r2[0] = (e2) => l2.$emit("topBarClick", "logo")) }, [i("img", { class: "h-10", src: s2.logo, alt: "Hotelinking suite product logo" }, null, 8, Eu)])]), i("div", Iu, [i("div", _u, [o(b2, { as: "div", class: "ml-3 relative" }, { default: E(() => [i("div", null, [B(o(f2, { class: "bg-white rounded-full flex text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 relative" }, { default: E(() => [B(i("div", Pu, ju, 512), [[L, s2.alerted]]), i("img", { class: "h-10 w-10 rounded-full", src: s2.accountLogo }, null, 8, Ru)]), _: 1 }, 512), [[L, s2.accountLogo]])]), o(P, { "enter-active-class": "transition ease-out duration-200", "enter-from-class": "transform opacity-0 scale-95", "enter-to-class": "transform opacity-100 scale-100", "leave-active-class": "transition ease-in duration-75", "leave-from-class": "transform opacity-100 scale-100", "leave-to-class": "transform opacity-0 scale-95" }, { default: E(() => [o(h2, { class: "origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg py-1 bg-white ring-1 ring-black ring-opacity-5 focus:outline-none" }, { default: E(() => [(e(true), a(w, null, j(s2.profileMenu, (a2) => (e(), t(v2, { key: a2.name }, { default: E(({ active: e2 }) => [i("p", { onClick: (e3) => l2.$emit("topBarClick", a2.id), class: n(["cursor-pointer", [e2 ? "bg-gray-100" : "", "block px-4 py-2 text-sm text-gray-700"]]) }, _(a2.name), 11, Bu)]), _: 2 }, 1024))), 128))]), _: 1 })]), _: 1 })]), _: 1 })])])])]), o(y2, { class: "lg:hidden" }, { default: E(() => [i("div", Au, [(e(true), a(w, null, j(s2.navigation, (a2) => (e(), t(m2, { as: "template", key: a2.name, class: n(["block pl-3 pr-4 py-2 border-l-4 text-base font-medium sm:pl-5 sm:pr-6", { "bg-indigo-50 border-indigo-500 text-indigo-700": a2.current && true === a2.current, "border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700": !a2.current }]) }, { default: E(() => [i("p", { onClick: (e2) => l2.$emit("topBarClick", a2.id) }, _(a2.name), 9, Lu)]), _: 2 }, 1032, ["class"]))), 128))]), i("div", Fu, [i("div", Nu, [i("div", zu, [i("img", { class: "h-10 w-10 rounded-full", src: s2.accountLogo }, null, 8, $u)]), s2.brand ? (e(), a("div", Vu, [i("div", Hu, _(s2.brand.title), 1), i("div", Yu, _(s2.brand.subtitle), 1)])) : R("", true)]), i("div", Uu, [(e(true), a(w, null, j(s2.profileMenu, (n2) => (e(), t(m2, { as: "template", key: n2.name, class: "block px-4 py-2 text-base font-medium text-gray-500 hover:text-gray-800 hover:bg-gray-100 sm:px-6" }, { default: E(() => [i("p", { onClick: (e2) => l2.$emit("topBarClick", n2.id) }, _(n2.name), 9, qu)]), _: 2 }, 1024))), 128))])])]), _: 1 })]), _: 1 });
2380
- }]]), Ku = { chart: { type: "bar", toolbar: { show: false }, zoom: { enabled: false } }, colors: ["#715aff"], dataLabels: { enabled: true, formatter: function(e2, t2) {
2388
+ }, XMarkIcon: Cn } }, Mu = { class: "mx-auto px-6 lg:px-8" }, Du = { class: "flex justify-between h-20" }, Tu = { class: "flex" }, Eu = { class: "-ml-2 mr-2 flex items-center lg:hidden" }, Iu = i("span", { class: "sr-only" }, "Open main menu", -1), _u = ["src"], Pu = { class: "flex items-center" }, ju = { class: "lg:ml-4 lg:flex-shrink-0 lg:flex lg:items-center hidden" }, Ru = { class: "redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute -top-0 -left-1" }, Bu = [i("span", { class: "animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75" }, null, -1)], Au = ["src"], Lu = ["onClick"], Fu = { class: "pt-2 pb-3 space-y-1" }, Nu = ["onClick"], zu = { class: "pt-4 pb-3 border-t border-gray-200" }, $u = { class: "flex items-center px-4 sm:px-6" }, Vu = { class: "flex-shrink-0" }, Hu = ["src"], Yu = { key: 0, class: "ml-3" }, Uu = { class: "text-base font-medium text-gray-800" }, qu = { class: "text-sm font-medium text-gray-500" }, Wu = { class: "mt-3 space-y-1" }, Ku = ["onClick"];
2389
+ const Ju = Vo(Ou, [["render", function(l2, r2, s2, u2, d2, c2) {
2390
+ const p2 = $("Bars3Icon"), g2 = $("XMarkIcon"), f2 = $("DisclosureButton"), m2 = $("MenuButton"), v2 = $("MenuItem"), h2 = $("MenuItems"), b2 = $("Menu"), y2 = $("DisclosurePanel"), x2 = $("Disclosure");
2391
+ return e(), t(x2, { as: "nav", class: "bg-white shadow z-10" }, { default: E(({ open: u3 }) => [i("div", Mu, [i("div", Du, [i("div", Tu, [i("div", Eu, [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(() => [Iu, u3 ? (e(), t(g2, { key: 1, class: "block h-6 w-6", "aria-hidden": "true" })) : (e(), t(p2, { key: 0, class: "block h-6 w-6", "aria-hidden": "true" }))]), _: 2 }, 1024)]), i("div", { class: "flex-shrink-0 flex items-center cursor-pointer", onClick: r2[0] || (r2[0] = (e2) => l2.$emit("topBarClick", "logo")) }, [i("img", { class: "h-10", src: s2.logo, alt: "Hotelinking suite product logo" }, null, 8, _u)])]), i("div", Pu, [i("div", ju, [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", Ru, Bu, 512), [[L, s2.alerted]]), i("img", { class: "h-10 w-10 rounded-full", src: s2.accountLogo }, null, 8, Au)]), _: 1 }, 512), [[L, s2.accountLogo]])]), o(P, { "enter-active-class": "transition ease-out duration-200", "enter-from-class": "transform opacity-0 scale-95", "enter-to-class": "transform opacity-100 scale-100", "leave-active-class": "transition ease-in duration-75", "leave-from-class": "transform opacity-100 scale-100", "leave-to-class": "transform opacity-0 scale-95" }, { default: E(() => [o(h2, { class: "origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg py-1 bg-white ring-1 ring-black ring-opacity-5 focus:outline-none" }, { default: E(() => [(e(true), a(k, null, j(s2.profileMenu, (a2) => (e(), t(v2, { key: a2.name }, { default: E(({ active: e2 }) => [i("p", { onClick: (e3) => l2.$emit("topBarClick", a2.id), class: n(["cursor-pointer", [e2 ? "bg-gray-100" : "", "block px-4 py-2 text-sm text-gray-700"]]) }, _(a2.name), 11, Lu)]), _: 2 }, 1024))), 128))]), _: 1 })]), _: 1 })]), _: 1 })])])])]), o(y2, { class: "lg:hidden" }, { default: E(() => [i("div", Fu, [(e(true), a(k, null, j(s2.navigation, (a2) => (e(), t(f2, { as: "template", key: a2.name, class: n(["block pl-3 pr-4 py-2 border-l-4 text-base font-medium sm:pl-5 sm:pr-6", { "bg-indigo-50 border-indigo-500 text-indigo-700": a2.current && true === a2.current, "border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700": !a2.current }]) }, { default: E(() => [i("p", { onClick: (e2) => l2.$emit("topBarClick", a2.id) }, _(a2.name), 9, Nu)]), _: 2 }, 1032, ["class"]))), 128))]), i("div", zu, [i("div", $u, [i("div", Vu, [i("img", { class: "h-10 w-10 rounded-full", src: s2.accountLogo }, null, 8, Hu)]), s2.brand ? (e(), a("div", Yu, [i("div", Uu, _(s2.brand.title), 1), i("div", qu, _(s2.brand.subtitle), 1)])) : R("", true)]), i("div", Wu, [(e(true), a(k, null, j(s2.profileMenu, (n2) => (e(), t(f2, { as: "template", key: n2.name, class: "block px-4 py-2 text-base font-medium text-gray-500 hover:text-gray-800 hover:bg-gray-100 sm:px-6" }, { default: E(() => [i("p", { onClick: (e2) => l2.$emit("topBarClick", n2.id) }, _(n2.name), 9, Ku)]), _: 2 }, 1024))), 128))])])]), _: 1 })]), _: 1 });
2392
+ }]]), Gu = { chart: { type: "bar", toolbar: { show: false }, zoom: { enabled: false } }, colors: ["#715aff"], dataLabels: { enabled: true, formatter: function(e2, t2) {
2381
2393
  return t2.w.globals.labels[t2.dataPointIndex] + ": " + e2;
2382
- } }, markers: { strokeWidth: 0, size: 4, hover: { size: 8 } }, plotOptions: { bar: { borderRadius: 0, horizontal: true, barHeight: "80%", isFunnel: true } } }, Ju = { class: "chart-header flex flex-row justify-between" }, Gu = { class: "text-sm font-medium text-gray-500 truncate" }, Zu = { class: "chart-content" }, Xu = { class: "h-full w-full flex items-center justify-center flex-col" }, Qu = i("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1), ed = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, td = [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)], ld = { name: "uiChart" }, nd = Object.assign(ld, { 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 }) {
2383
- const r2 = l2, s2 = t2, c2 = u(() => ({ ...s2.options, ...Ku })), p2 = u(() => s2.series), g2 = () => r2("chartUpdated"), m2 = (e2, t3, l3) => {
2394
+ } }, markers: { strokeWidth: 0, size: 4, hover: { size: 8 } }, plotOptions: { bar: { borderRadius: 0, horizontal: true, barHeight: "80%", isFunnel: true } } }, Zu = { class: "chart-header flex flex-row justify-between" }, Xu = { class: "text-sm font-medium text-gray-500 truncate" }, Qu = { class: "chart-content" }, ed = { class: "h-full w-full flex items-center justify-center flex-col" }, td = i("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1), ld = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, nd = [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)], ad = { name: "uiChart" }, od = Object.assign(ad, { props: { title: String, id: { type: String, default: "noChartId" }, series: { type: Object, required: true }, options: { type: Object, required: true }, loading: { type: Boolean, default: true }, empty: { type: Boolean, default: false }, range: { type: String, default: "24h" }, height: { type: Number, default: 320 } }, emits: ["selectedRange", "chartUpdated", "dataPointSelection"], setup(t2, { emit: l2 }) {
2395
+ const r2 = l2, s2 = t2, c2 = u(() => ({ ...s2.options, ...Gu })), p2 = u(() => s2.series), g2 = () => r2("chartUpdated"), f2 = (e2, t3, l3) => {
2384
2396
  r2("dataPointSelection", { id: s2.id, chartContext: t3, config: l3, event: e2 });
2385
2397
  };
2386
- return (l3, r3) => (e(), a(w, null, [B(i("div", { class: n(["h-[" + t2.height + "px]", "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"]) }, [i("div", Ju, [i("div", Gu, _(t2.title), 1), o(Yr, { range: t2.range, onRangeSelected: r3[0] || (r3[0] = (e2) => l3.$emit("selectedRange", { range: e2, chartId: t2.id })) }, null, 8, ["range"])]), B(i("div", Zu, [o(d(U), { type: l3.bar, series: p2.value, width: "100%", height: t2.height, options: c2.value, onUpdated: g2, onMounted: g2, onDataPointSelection: m2 }, null, 8, ["type", "series", "height", "options"])], 512), [[L, !t2.empty]]), B(i("div", Xu, [o(J, { icon: d(fn), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), Qu], 512), [[L, t2.empty]])], 2), [[L, !t2.loading]]), B(i("div", ed, td, 512), [[L, t2.loading]])], 64));
2387
- } }), ad = { class: "w-full flex flex-col items-center justify-center p-10 grow" }, od = { class: "text-2xl mt-4 font-bold" }, rd = { class: "buttons flex flex-row items-center justify-center mt-8 gap-x-1" }, id = { __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", ad, [o(J, { loading: false, icon: d(fn), size: "massive", color: "gray" }, null, 8, ["icon"]), i("h2", od, _(l2.title), 1), i("p", null, _(l2.message), 1), i("div", rd, [(e(true), a(w, null, j(l2.actions, (l3, a2) => (e(), t(ee, { key: a2, loading: false, onClick: (e2) => n3.$emit("action", l3.action) }, { default: E(() => [I(_(l3.text), 1)]), _: 2 }, 1032, ["onClick"]))), 128))])])) }, sd = i("div", { class: "fixed inset-0" }, null, -1), ud = { class: "fixed inset-0 overflow-hidden" }, dd = { class: "absolute inset-0 overflow-hidden" }, cd = { class: "pointer-events-none fixed inset-y-0 right-0 flex max-w-full pl-10" }, pd = { class: "flex h-full flex-col overflow-y-scroll bg-white shadow-xl" }, gd = { class: "bg-indigo-700 px-4 py-6 sm:px-6" }, md = { class: "flex items-center justify-between" }, fd = { class: "ml-3 flex h-7 items-center" }, vd = i("span", { class: "absolute -inset-2.5" }, null, -1), hd = i("span", { class: "sr-only" }, "Close panel", -1), bd = { class: "mt-1" }, yd = { class: "text-sm text-indigo-300" }, xd = { class: "relative flex-1 px-4 py-6 sm:px-6" }, wd = { name: "uiRightSidebar" }, kd = Object.assign(wd, { props: { title: { type: String, required: true }, description: { type: String }, open: { type: Boolean, default: false } }, emits: ["closeRightBar"], setup(l2, { emit: n2 }) {
2398
+ 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", Zu, [i("div", Xu, _(t2.title), 1), o(qr, { range: t2.range, onRangeSelected: r3[0] || (r3[0] = (e2) => l3.$emit("selectedRange", { range: e2, chartId: t2.id })) }, null, 8, ["range"])]), B(i("div", Qu, [o(d(U), { type: l3.bar, series: p2.value, width: "100%", height: t2.height, options: c2.value, onUpdated: g2, onMounted: g2, onDataPointSelection: f2 }, null, 8, ["type", "series", "height", "options"])], 512), [[L, !t2.empty]]), B(i("div", ed, [o(J, { icon: d(hn), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), td], 512), [[L, t2.empty]])], 2), [[L, !t2.loading]]), B(i("div", ld, nd, 512), [[L, t2.loading]])], 64));
2399
+ } }), rd = { class: "w-full flex flex-col items-center justify-center p-10 grow" }, id = { class: "text-2xl mt-4 font-bold" }, sd = { class: "buttons flex flex-row items-center justify-center mt-8 gap-x-1" }, ud = { __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", rd, [o(J, { loading: false, icon: d(hn), size: "massive", color: "gray" }, null, 8, ["icon"]), i("h2", id, _(l2.title), 1), i("p", null, _(l2.message), 1), i("div", sd, [(e(true), a(k, null, j(l2.actions, (l3, a2) => (e(), t(ee, { key: a2, loading: false, onClick: (e2) => n3.$emit("action", l3.action) }, { default: E(() => [I(_(l3.text), 1)]), _: 2 }, 1032, ["onClick"]))), 128))])])) }, dd = i("div", { class: "fixed inset-0" }, null, -1), cd = { class: "fixed inset-0 overflow-hidden" }, pd = { class: "absolute inset-0 overflow-hidden" }, gd = { class: "pointer-events-none fixed inset-y-0 right-0 flex max-w-full pl-10" }, fd = { class: "flex h-full flex-col overflow-y-scroll bg-white shadow-xl" }, md = { class: "bg-indigo-700 px-4 py-6 sm:px-6" }, vd = { class: "flex items-center justify-between" }, hd = { class: "ml-3 flex h-7 items-center" }, bd = i("span", { class: "absolute -inset-2.5" }, null, -1), yd = i("span", { class: "sr-only" }, "Close panel", -1), xd = { class: "mt-1" }, wd = { class: "text-sm text-indigo-300" }, kd = { class: "relative flex-1 px-4 py-6 sm:px-6" }, Sd = { name: "uiRightSidebar" }, Cd = Object.assign(Sd, { props: { title: { type: String, required: true }, description: { type: String }, open: { type: Boolean, default: false } }, emits: ["closeRightBar"], setup(l2, { emit: n2 }) {
2388
2400
  const a2 = n2;
2389
- return (n3, s2) => (e(), t(d(nn), { as: "template", show: l2.open }, { default: E(() => [o(d(vl), { as: "div", class: "relative z-10", onClose: s2[1] || (s2[1] = (e2) => a2("closeRightBar")) }, { default: E(() => [sd, i("div", ud, [i("div", dd, [i("div", cd, [o(d(tn), { as: "template", enter: "transform transition ease-in-out duration-500 sm:duration-700", "enter-from": "translate-x-full", "enter-to": "translate-x-0", leave: "transform transition ease-in-out duration-500 sm:duration-700", "leave-from": "translate-x-0", "leave-to": "translate-x-full" }, { default: E(() => [o(d(hl), { class: "pointer-events-auto w-screen max-w-md" }, { default: E(() => [i("div", pd, [i("div", gd, [i("div", md, [o(d(bl), { class: "text-base font-semibold leading-6 text-white" }, { default: E(() => [I(_(l2.title), 1)]), _: 1 }), i("div", fd, [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")) }, [vd, hd, o(d(kn), { class: "h-6 w-6 ring-0", "aria-hidden": "true" })])])]), i("div", bd, [i("p", yd, _(l2.description), 1)])]), i("div", xd, [r(n3.$slots, "default")])])]), _: 3 })]), _: 3 })])])])]), _: 3 })]), _: 3 }, 8, ["show"]));
2390
- } }), Sd = { class: "uiGallery" }, Cd = { 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" }, Od = { 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" }, Md = ["src"], Dd = ["onClick"], Td = { class: "pointer-events-none mt-2 block truncate text-sm font-medium text-gray-900" }, Ed = { class: "flex items-center justify-between" }, Id = { class: "pointer-events-none block text-sm font-medium text-gray-500" }, _d = { 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" }, Pd = [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)], jd = { name: "uiGallery" }, Rd = Object.assign(jd, { props: { galleryId: String, gallery: Array, loading: Boolean, literals: Object }, setup(l2, { emit: n2 }) {
2401
+ return (n3, s2) => (e(), t(d(on), { as: "template", show: l2.open }, { default: E(() => [o(d(bl), { as: "div", class: "relative z-10", onClose: s2[1] || (s2[1] = (e2) => a2("closeRightBar")) }, { default: E(() => [dd, i("div", cd, [i("div", pd, [i("div", gd, [o(d(nn), { as: "template", enter: "transform transition ease-in-out duration-500 sm:duration-700", "enter-from": "translate-x-full", "enter-to": "translate-x-0", leave: "transform transition ease-in-out duration-500 sm:duration-700", "leave-from": "translate-x-0", "leave-to": "translate-x-full" }, { default: E(() => [o(d(yl), { class: "pointer-events-auto w-screen max-w-md" }, { default: E(() => [i("div", fd, [i("div", md, [i("div", vd, [o(d(xl), { class: "text-base font-semibold leading-6 text-white" }, { default: E(() => [I(_(l2.title), 1)]), _: 1 }), i("div", hd, [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")) }, [bd, yd, o(d(Cn), { class: "h-6 w-6 ring-0", "aria-hidden": "true" })])])]), i("div", xd, [i("p", wd, _(l2.description), 1)])]), i("div", kd, [r(n3.$slots, "default")])])]), _: 3 })]), _: 3 })])])])]), _: 3 })]), _: 3 }, 8, ["show"]));
2402
+ } }), Od = { class: "uiGallery" }, Md = { 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" }, Dd = { 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" }, Td = ["src"], Ed = ["onClick"], Id = { class: "pointer-events-none mt-2 block truncate text-sm font-medium text-gray-900" }, _d = { class: "flex items-center justify-between" }, Pd = { class: "pointer-events-none block text-sm font-medium text-gray-500" }, jd = { 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" }, Rd = [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)], Bd = { name: "uiGallery" }, Ad = Object.assign(Bd, { props: { galleryId: String, gallery: Array, loading: Boolean, literals: Object }, setup(l2, { emit: n2 }) {
2391
2403
  const r2 = n2, u2 = s(false);
2392
- return (n3, s2) => (e(), a("div", Sd, [l2.loading ? R("", true) : (e(), t(go, { key: 0, open: u2.value, modalName: "deleteAllImagesModal", title: l2.literals.modalTitle, type: "warning", actions: [{ value: "close", name: l2.literals.closeAction }, { value: `deleteGallery_${l2.galleryId}`, name: l2.literals.deleteAction }], onModalAction: s2[0] || (s2[0] = (e2) => {
2404
+ return (n3, s2) => (e(), a("div", Od, [l2.loading ? R("", true) : (e(), t(mo, { key: 0, open: u2.value, modalName: "deleteAllImagesModal", title: l2.literals.modalTitle, type: "warning", actions: [{ value: "close", name: l2.literals.closeAction }, { value: `deleteGallery_${l2.galleryId}`, name: l2.literals.deleteAction }], onModalAction: s2[0] || (s2[0] = (e2) => {
2393
2405
  var t2;
2394
2406
  "close" !== (t2 = e2).action ? r2("modalAction", t2) : u2.value = false;
2395
- }) }, { default: E(() => [i("p", null, _(l2.literals.modalText), 1)]), _: 1 }, 8, ["open", "title", "actions"])), l2.loading ? (e(), a("ul", _d, [(e(), a(w, null, j(4, (e2) => i("li", null, Pd)), 64))])) : (e(), a("ul", Cd, [(e(true), a(w, null, j(l2.gallery, (t2) => (e(), a("li", { key: t2.source, class: "relative" }, [i("div", Od, [i("img", { src: t2.source, alt: "", class: "pointer-events-none object-cover group-hover:opacity-75" }, null, 8, Md), i("button", { type: "button", class: "absolute inset-0 focus:outline-none", onClick: (e2) => n3.$emit("imgClicked", t2) }, null, 8, Dd)]), i("p", Td, _(t2.title), 1), i("div", Ed, [i("p", Id, _(t2.size), 1), o(J, { class: "cursor-pointer", icon: d(xn), color: "red", loading: false, onClick: (e2) => r2("deleteImage", t2) }, null, 8, ["icon", "onClick"])])]))), 128))])), l2.gallery.length > 0 && !l2.loading ? (e(), t(ee, { key: 3, onClick: s2[1] || (s2[1] = (e2) => u2.value = true), class: "mt-8", loading: false, color: "red", size: "small" }, { default: E(() => [I(_(l2.literals.deleteAllImages), 1)]), _: 1 })) : R("", true)]));
2396
- } }), Bd = { 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" }, Ad = { class: "flex flex-row items-center w-full" }, Ld = { class: "content text-sm grow" }, Fd = { class: "font-bold" }, Nd = { key: 0 }, zd = { class: "font-bold text-gray-400" }, $d = { key: 1, class: "animate-pulse" }, Vd = [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)], Hd = { name: "uiDragAndDrop" }, Yd = Object.assign(Hd, { props: { elements: { type: Array, required: true }, loading: true }, setup(l2) {
2407
+ }) }, { default: E(() => [i("p", null, _(l2.literals.modalText), 1)]), _: 1 }, 8, ["open", "title", "actions"])), l2.loading ? (e(), a("ul", jd, [(e(), a(k, null, j(4, (e2) => i("li", null, Rd)), 64))])) : (e(), a("ul", Md, [(e(true), a(k, null, j(l2.gallery, (t2) => (e(), a("li", { key: t2.source, class: "relative" }, [i("div", Dd, [i("img", { src: t2.source, alt: "", class: "pointer-events-none object-cover group-hover:opacity-75" }, null, 8, Td), i("button", { type: "button", class: "absolute inset-0 focus:outline-none", onClick: (e2) => n3.$emit("imgClicked", t2) }, null, 8, Ed)]), i("p", Id, _(t2.title), 1), i("div", _d, [i("p", Pd, _(t2.size), 1), o(J, { class: "cursor-pointer", icon: d(kn), color: "red", loading: false, onClick: (e2) => r2("deleteImage", t2) }, null, 8, ["icon", "onClick"])])]))), 128))])), l2.gallery.length > 0 && !l2.loading ? (e(), t(ee, { key: 3, onClick: s2[1] || (s2[1] = (e2) => u2.value = true), class: "mt-8", loading: false, color: "red", size: "small" }, { default: E(() => [I(_(l2.literals.deleteAllImages), 1)]), _: 1 })) : R("", true)]));
2408
+ } }), Ld = { 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" }, Fd = { class: "flex flex-row items-center w-full" }, Nd = { class: "content text-sm grow" }, zd = { class: "font-bold" }, $d = { key: 0 }, Vd = { class: "font-bold text-gray-400" }, Hd = { key: 1, class: "animate-pulse" }, Yd = [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)], Ud = { name: "uiDragAndDrop" }, qd = Object.assign(Ud, { props: { elements: { type: Array, required: true }, loading: true }, setup(l2) {
2397
2409
  const n2 = l2;
2398
2410
  let r2 = s(n2.elements);
2399
2411
  return p(() => n2.elements, (e2) => {
2400
2412
  r2.value = e2;
2401
- }), (n3, s2) => l2.loading ? (e(), a("div", $d, Vd)) : (e(), t(d(q), { key: 0, modelValue: d(r2), "onUpdate:modelValue": s2[0] || (s2[0] = (e2) => H(r2) ? r2.value = e2 : r2 = e2) }, { item: E(({ item: t2 }) => [i("div", Bd, [i("div", Ad, [o(J, { icon: d(rn), loading: false, color: "gray", class: "mr-4", size: "big" }, null, 8, ["icon"]), i("div", Ld, [i("p", Fd, _(t2.name), 1), t2.description ? (e(), a("p", Nd, _(t2.description), 1)) : R("", true)]), i("div", zd, _(d(r2).indexOf(t2) + 1), 1)])])]), _: 1 }, 8, ["modelValue"]));
2402
- } }), Ud = { class: "chart-header flex flex-row justify-between" }, qd = { class: "text-sm font-medium text-gray-500 truncate" }, Wd = { class: "chart-content" }, Kd = { class: "h-full w-full flex items-center justify-center flex-col" }, Jd = i("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1), Gd = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, Zd = [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)], Xd = { name: "uiCircleChart" }, Qd = Object.assign(Xd, { 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 }) {
2413
+ }), (n3, s2) => l2.loading ? (e(), a("div", Hd, Yd)) : (e(), t(d(q), { key: 0, modelValue: d(r2), "onUpdate:modelValue": s2[0] || (s2[0] = (e2) => H(r2) ? r2.value = e2 : r2 = e2) }, { item: E(({ item: t2 }) => [i("div", Ld, [i("div", Fd, [o(J, { icon: d(un), loading: false, color: "gray", class: "mr-4", size: "big" }, null, 8, ["icon"]), i("div", Nd, [i("p", zd, _(t2.name), 1), t2.description ? (e(), a("p", $d, _(t2.description), 1)) : R("", true)]), i("div", Vd, _(d(r2).indexOf(t2) + 1), 1)])])]), _: 1 }, 8, ["modelValue"]));
2414
+ } }), Wd = { class: "chart-header flex flex-row justify-between" }, Kd = { class: "text-sm font-medium text-gray-500 truncate" }, Jd = { class: "chart-content" }, Gd = { class: "h-full w-full flex items-center justify-center flex-col" }, Zd = i("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1), Xd = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, Qd = [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)], ec = { name: "uiCircleChart" }, tc = Object.assign(ec, { 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 }) {
2403
2415
  const r2 = l2, s2 = t2;
2404
2416
  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 } } };
2405
- const p2 = u(() => s2.series), g2 = u(() => ({ ...c2, ...s2.options })), m2 = () => r2("chartUpdated"), f2 = (e2, t3, l3) => {
2417
+ const p2 = u(() => s2.series), g2 = u(() => ({ ...c2, ...s2.options })), f2 = () => r2("chartUpdated"), m2 = (e2, t3, l3) => {
2406
2418
  r2("dataPointSelection", { id: s2.id, chartContext: t3, config: l3, event: e2 });
2407
2419
  };
2408
- return (l3, r3) => (e(), a(w, null, [B(i("div", { class: n(["h-[" + t2.height + "px]", "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"]) }, [i("div", Ud, [i("div", qd, _(t2.title), 1), o(Yr, { range: t2.range, onRangeSelected: r3[0] || (r3[0] = (e2) => l3.$emit("selectedRange", { range: e2, chartId: t2.id })) }, null, 8, ["range"])]), B(i("div", Wd, [o(d(U), { class: "flex items-center justify-center", type: "donut", series: p2.value, options: g2.value, height: t2.height, onUpdated: m2, onMounted: m2, onDataPointSelection: f2 }, null, 8, ["series", "options", "height"])], 512), [[L, !t2.empty]]), B(i("div", Kd, [o(J, { icon: d(fn), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), Jd], 512), [[L, t2.empty]])], 2), [[L, !t2.loading]]), B(i("div", Gd, Zd, 512), [[L, t2.loading]])], 64));
2409
- } }), ec = { key: 0, class: "flex flex-col lg:flex-row w-full gap-y-4 gap-x-2" }, tc = { key: 1, class: "flex flex-col lg:flex-row w-full gap-y-4 gap-x-2" }, lc = { name: "uiDateRange" }, nc = Object.assign(lc, { 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) {
2410
- let l2 = C({ from: void 0, to: void 0 });
2411
- return (r2, i2) => t2.loading ? (e(), a("div", tc, [o(Nn, { loading: true }), o(Nn, { loading: true }), o(ee, { loading: true }, { default: E(() => [I("Search")]), _: 1 })])) : (e(), a("div", ec, [o(Nn, { 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) => d(l2).from = e2.value) }, null, 8, ["addOn", "name", "color", "value", "error", "disabled", "label"]), o(Nn, { 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) => d(l2).to = e2.value) }, null, 8, ["class", "addOn", "name", "color", "value", "error", "disabled"]), o(ee, { disabled: t2.disabled, color: "primary", loading: false, class: n([{ "mt-6": t2.label }, "h-10"]), onClick: i2[2] || (i2[2] = (e2) => r2.$emit("uiDateRangeButtonClicked", d(l2))) }, { default: E(() => [I(_(t2.literals.search), 1)]), _: 1 }, 8, ["disabled", "class"])]));
2412
- } }), ac = { class: "flex justify-between items-center" }, oc = { key: 0, class: "block text-sm font-medium text-gray-700" }, rc = { key: 1, class: "text-[10px] text-gray-500 uppercase justify-self-end" }, ic = { key: 1, class: "h-2 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 w-full" }, sc = { name: "uiRangeSlider" }, uc = Object.assign(sc, { 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 }) {
2420
+ 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", Wd, [i("div", Kd, _(t2.title), 1), o(qr, { range: t2.range, onRangeSelected: r3[0] || (r3[0] = (e2) => l3.$emit("selectedRange", { range: e2, chartId: t2.id })) }, null, 8, ["range"])]), B(i("div", Jd, [o(d(U), { class: "flex items-center justify-center", type: "donut", series: p2.value, options: g2.value, height: t2.height, onUpdated: f2, onMounted: f2, onDataPointSelection: m2 }, null, 8, ["series", "options", "height"])], 512), [[L, !t2.empty]]), B(i("div", Gd, [o(J, { icon: d(hn), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), Zd], 512), [[L, t2.empty]])], 2), [[L, !t2.loading]]), B(i("div", Xd, Qd, 512), [[L, t2.loading]])], 64));
2421
+ } }), lc = { key: 0, class: "flex flex-col lg:flex-row w-full gap-y-4 gap-x-2" }, nc = { key: 1, class: "flex flex-col lg:flex-row w-full gap-y-4 gap-x-2" }, ac = { name: "uiDateRange" }, oc = Object.assign(ac, { 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) {
2422
+ let l2 = O({ from: void 0, to: void 0 });
2423
+ return (r2, i2) => t2.loading ? (e(), a("div", nc, [o($n, { loading: true }), o($n, { loading: true }), o(ee, { loading: true }, { default: E(() => [I("Search")]), _: 1 })])) : (e(), a("div", lc, [o($n, { 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) => d(l2).from = e2.value) }, null, 8, ["addOn", "name", "color", "value", "error", "disabled", "label"]), o($n, { 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) => d(l2).to = e2.value) }, null, 8, ["class", "addOn", "name", "color", "value", "error", "disabled"]), o(ee, { disabled: t2.disabled, color: "primary", loading: false, class: n([{ "mt-6": t2.label }, "h-10"]), onClick: i2[2] || (i2[2] = (e2) => r2.$emit("uiDateRangeButtonClicked", d(l2))) }, { default: E(() => [I(_(t2.literals.search), 1)]), _: 1 }, 8, ["disabled", "class"])]));
2424
+ } }), rc = { class: "flex justify-between items-center" }, ic = { key: 0, class: "block text-sm font-medium text-gray-700" }, sc = { key: 1, class: "text-[10px] text-gray-500 uppercase justify-self-end" }, uc = { key: 1, class: "h-2 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 w-full" }, dc = { name: "uiRangeSlider" }, cc = 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 }) {
2413
2425
  const r2 = o2, u2 = s(l2.sliderValue);
2414
- return (o3, s2) => (e(), a("div", null, [i("div", ac, [l2.label ? (e(), a("label", oc, _(l2.label), 1)) : R("", true), l2.optional ? (e(), a("span", rc, _(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", ic)) : (e(), t(d(W), { key: 0, modelValue: u2.value, "onUpdate:modelValue": s2[0] || (s2[0] = (e2) => u2.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)]));
2415
- } }), dc = { class: "mt-1 mb-8 text-sm text-gray-500" }, cc = { name: "uiSectionTitle" }, pc = { uiButton: ee, uiIcon: J, uiCheckbox: ue, uiDropdown: Tn, uiInput: Nn, uiInputFile: ea, uiSelect: oa, uiTag: ua, uiTextArea: va, uiToggle: ka, uiAlert: ja, uiBreadcrumbs: Ha, uiCard: Xa, uiFilter: eo, uiModal: go, uiNotification: Oo, uiTaskList: Fo, uiPriceCalendar: $r, uiChart: Qr, uiFooter: ni, uiLoadingScreen: ri, uiPagination: ki, uiSidebar: Fi, uiStats: Xi, uiStripedCard: ms, uiTable: Ns, uiTabs: Ws, uiTimeline: ku, uiTopbar: Wu, uiFunnelChartV2: nd, uiNoResults: id, uiRightSidebar: kd, uiGallery: Rd, uiDragAndDrop: Yd, uiCircleChart: Qd, uiDateRange: nc, uiRangeSlider: uc, uiSectionTitle: Object.assign(cc, { props: { title: { type: String, required: true }, description: { type: String, default: void 0 } }, setup: (t2) => (l2, o2) => (e(), a(w, 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", dc, _(t2.description), 1)], 64)) }) }, gc = { install(e2) {
2416
- Object.keys(pc).forEach((t2) => {
2417
- e2.component(t2, pc[t2]);
2426
+ return (o3, s2) => (e(), a("div", null, [i("div", rc, [l2.label ? (e(), a("label", ic, _(l2.label), 1)) : R("", true), l2.optional ? (e(), a("span", sc, _(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", uc)) : (e(), t(d(W), { key: 0, modelValue: u2.value, "onUpdate:modelValue": s2[0] || (s2[0] = (e2) => u2.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)]));
2427
+ } }), pc = { class: "mt-1 mb-8 text-sm text-gray-500" }, gc = { name: "uiSectionTitle" }, fc = { uiButton: ee, uiIcon: J, uiCheckbox: ue, uiDropdown: In, uiInput: $n, uiInputFile: la, uiSelect: ia, uiTag: ca, uiTextArea: ba, uiToggle: Ca, uiAlert: Ba, uiBreadcrumbs: Ua, uiCard: eo, uiFilter: lo, uiModal: mo, uiNotification: Do, uiTaskList: zo, uiPriceCalendar: Hr, uiChart: ti, uiFooter: oi, uiLoadingScreen: si, uiPagination: Ci, uiSidebar: zi, uiStats: es, uiStripedCard: vs, uiTable: $s, uiTabs: Js, uiTimeline: Cu, uiTopbar: Ju, uiFunnelChartV2: od, uiNoResults: ud, uiRightSidebar: Cd, uiGallery: Ad, uiDragAndDrop: qd, uiCircleChart: tc, uiDateRange: oc, uiRangeSlider: cc, uiSectionTitle: Object.assign(gc, { 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", pc, _(t2.description), 1)], 64)) }) }, mc = { install(e2) {
2428
+ Object.keys(fc).forEach((t2) => {
2429
+ e2.component(t2, fc[t2]);
2418
2430
  });
2419
2431
  } };
2420
2432
  export {
2421
- gc as default
2433
+ mc as default
2422
2434
  };