@aerogel/core 0.1.1-next.3efa6858f5942a7048392e08e88f511c6c5ca343 → 0.1.1-next.794da2a581990f8be4a2f33880a77e15fa1e40a7

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.
@@ -1,19 +1,19 @@
1
1
  var At = Object.defineProperty;
2
- var Pt = (t, s, e) => s in t ? At(t, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[s] = e;
3
- var _ = (t, s, e) => Pt(t, typeof s != "symbol" ? s + "" : s, e);
4
- import { markRaw as V, Comment as Dt, Text as Bt, Static as jt, inject as Y, reactive as ve, unref as l, onUnmounted as $e, ref as N, computed as c, readonly as _e, nextTick as Ft, useAttrs as tt, onMounted as st, watch as Le, toRaw as Ut, customRef as Ot, watchEffect as G, defineComponent as h, createBlock as f, openBlock as o, mergeProps as H, withCtx as m, renderSlot as $, createPropsRestProxy as K, createVNode as d, normalizeProps as ce, guardReactiveProps as de, createTextVNode as L, toDisplayString as x, normalizeClass as C, createElementBlock as y, Fragment as D, renderList as U, provide as pe, resolveDynamicComponent as ee, useSlots as Ie, createCommentVNode as M, createElementVNode as b, h as Nt, useTemplateRef as te, withModifiers as rt, withDirectives as nt, vModelCheckbox as Wt, normalizeStyle as Kt, resolveComponent as Qt, createApp as Jt, vModelText as Zt } from "vue";
5
- import { JSError as xe, stringToSlug as Xt, tap as se, MagicObject as at, PromisedValue as J, Storage as O, objectOnly as ae, arrayFrom as lt, isEmpty as Te, objectDeepClone as Yt, fail as W, facade as re, arrayRemove as He, getEnv as Gt, updateLocationQueryParameters as es, forever as ts, toString as j, objectWithout as ss, noop as rs, debounce as ns, stringMatchAll as ot, isDevelopment as Z, isTesting as ze, after as oe, uuid as ue, isObject as he, objectWithoutEmpty as it, value as as, isInstanceOf as Oe, stringExcerpt as ls, arraySorted as os, ListenersManager as is, toError as us, round as cs } from "@noeldemartin/utils";
2
+ var Dt = (t, s, e) => s in t ? At(t, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[s] = e;
3
+ var C = (t, s, e) => Dt(t, typeof s != "symbol" ? s + "" : s, e);
4
+ import { markRaw as V, Comment as Bt, Text as jt, Static as Ft, inject as Y, reactive as ve, unref as l, onUnmounted as $e, ref as N, computed as c, readonly as _e, nextTick as Ut, useAttrs as st, onMounted as rt, watch as Le, toRaw as Ot, customRef as Nt, watchEffect as G, defineComponent as g, createBlock as m, openBlock as o, mergeProps as H, withCtx as f, renderSlot as $, createPropsRestProxy as K, createVNode as d, normalizeProps as ce, guardReactiveProps as de, createTextVNode as L, toDisplayString as x, normalizeClass as _, createElementBlock as b, Fragment as D, renderList as U, provide as pe, resolveDynamicComponent as ee, useSlots as Ie, createCommentVNode as E, createElementVNode as y, h as Wt, useTemplateRef as te, withModifiers as nt, withDirectives as at, vModelCheckbox as Kt, normalizeStyle as Oe, resolveComponent as Qt, createApp as Jt, vModelText as Zt } from "vue";
5
+ import { JSError as Ce, stringToSlug as Xt, tap as se, MagicObject as lt, PromisedValue as J, Storage as O, objectOnly as ae, arrayFrom as ot, isEmpty as Te, objectDeepClone as Yt, fail as W, facade as re, arrayRemove as He, getEnv as Gt, updateLocationQueryParameters as es, forever as ts, toString as j, objectWithout as ss, noop as rs, debounce as ns, stringMatchAll as it, isDevelopment as Z, isTesting as ze, after as oe, uuid as ue, isObject as he, objectWithoutEmpty as ut, value as as, isInstanceOf as Ne, stringExcerpt as ls, arraySorted as os, ListenersManager as is, toError as us, round as cs } from "@noeldemartin/utils";
6
6
  import B from "virtual:aerogel";
7
- import { createPinia as ds, setActivePinia as ps, defineStore as ms } from "pinia";
8
- import fs from "dompurify";
9
- import { marked as hs, Renderer as Ne } from "marked";
10
- import { injectModal as ut, useModal as gs, createModal as vs, showModal as We, closeModal as Ke, modals as le, ModalComponent as bs, ModalsPortal as ys } from "@noeldemartin/vue-modals";
11
- import { ModalComponent as po, ModalsPortal as mo, closeModal as fo, createModal as ho, injectModal as go, modals as vo, showModal as bo } from "@noeldemartin/vue-modals";
7
+ import { createPinia as ds, setActivePinia as ps, defineStore as fs } from "pinia";
8
+ import ms from "dompurify";
9
+ import { marked as hs, Renderer as We } from "marked";
10
+ import { injectModal as ct, useModal as gs, createModal as vs, showModal as Ke, closeModal as Qe, modals as le, ModalComponent as bs, ModalsPortal as ys } from "@noeldemartin/vue-modals";
11
+ import { ModalComponent as co, ModalsPortal as po, closeModal as fo, createModal as mo, injectModal as ho, modals as go, showModal as vo } from "@noeldemartin/vue-modals";
12
12
  import ws from "clsx";
13
13
  import { cva as $s } from "class-variance-authority";
14
14
  import { twMerge as _s } from "tailwind-merge";
15
- import { Primitive as xs, SelectValue as Qe, SelectTrigger as Cs, SelectIcon as Ss, SelectItem as ks, SelectItemText as Ts, SelectPortal as Ms, SelectContent as Es, SelectViewport as Hs, SelectRoot as Vs, Label as Ls, useForwardExpose as Re, SwitchRoot as Is, SwitchThumb as zs, DialogRoot as Rs, DialogPortal as qs, DialogContent as As, DialogDescription as Ps, DialogOverlay as Ds, DialogTitle as Bs, ToastClose as js, ToastRoot as Fs, ToastProvider as Us, ToastViewport as Os, DropdownMenuItem as Ns, DropdownMenuContent as Ws, DropdownMenuRoot as Ks, DropdownMenuTrigger as Qs, DropdownMenuPortal as Js } from "reka-ui";
16
- class Ve extends xe {
15
+ import { Primitive as Cs, SelectValue as Je, SelectTrigger as xs, SelectIcon as Ss, SelectItem as ks, SelectItemText as Ts, SelectPortal as Ms, SelectContent as Es, SelectViewport as Hs, SelectRoot as Vs, Label as Ls, useForwardExpose as Re, SwitchRoot as Is, SwitchThumb as zs, DialogRoot as Rs, DialogPortal as qs, DialogContent as Ps, DialogDescription as As, DialogOverlay as Ds, DialogTitle as Bs, ToastClose as js, ToastRoot as Fs, ToastProvider as Us, ToastViewport as Os, DropdownMenuItem as Ns, DropdownMenuContent as Ws, DropdownMenuRoot as Ks, DropdownMenuTrigger as Qs, DropdownMenuPortal as Js } from "reka-ui";
16
+ class Ve extends Ce {
17
17
  constructor(s, e) {
18
18
  super(`Service '${s}' failed booting`, { cause: e });
19
19
  }
@@ -22,7 +22,7 @@ function Zs() {
22
22
  return B.namespace ?? Xt(B.name);
23
23
  }
24
24
  let qe = null;
25
- function ct() {
25
+ function dt() {
26
26
  return qe ?? Xs();
27
27
  }
28
28
  function Xs() {
@@ -31,12 +31,12 @@ function Xs() {
31
31
  });
32
32
  }
33
33
  function Ys() {
34
- return qe ?? ct();
34
+ return qe ?? dt();
35
35
  }
36
36
  function Gs(t, s) {
37
- return ct(), ms(t, s)();
37
+ return dt(), fs(t, s)();
38
38
  }
39
- function Ce(t) {
39
+ function xe(t) {
40
40
  var s;
41
41
  return s = class extends Se {
42
42
  usesStore() {
@@ -72,17 +72,17 @@ To fix this problem, declare your initialState as a function instead.`
72
72
  var r;
73
73
  return ((r = t.restore) == null ? void 0 : r.call(t, e)) ?? e;
74
74
  }
75
- }, _(s, "persist", t.persist ?? []), s;
75
+ }, C(s, "persist", t.persist ?? []), s;
76
76
  }
77
77
  var Ee;
78
- let Se = (Ee = class extends at {
78
+ let Se = (Ee = class extends lt {
79
79
  constructor() {
80
80
  super();
81
- _(this, "_name");
82
- _(this, "_booted");
83
- _(this, "_computedStateKeys");
84
- _(this, "_watchers");
85
- _(this, "_store");
81
+ C(this, "_name");
82
+ C(this, "_booted");
83
+ C(this, "_computedStateKeys");
84
+ C(this, "_watchers");
85
+ C(this, "_store");
86
86
  const e = this.getComputedStateDefinition();
87
87
  this._name = this.getName() ?? new.target.name, this._booted = new J(), this._computedStateKeys = new Set(Object.keys(e)), this._watchers = this.getStateWatchers(), this._store = this.usesStore() && Gs(this._name, {
88
88
  state: () => this.getInitialState(),
@@ -124,7 +124,7 @@ let Se = (Ee = class extends at {
124
124
  updatePersistedState(e) {
125
125
  if (!this._store)
126
126
  return;
127
- const r = lt(e), n = ae(this._store.$state, r);
127
+ const r = ot(e), n = ae(this._store.$state, r);
128
128
  Te(n) || this.onPersistentStateUpdated(n);
129
129
  }
130
130
  __get(e) {
@@ -190,7 +190,7 @@ let Se = (Ee = class extends at {
190
190
  requireStore() {
191
191
  return this._store ? this._store : W(`Failed getting '${this._name}' store`);
192
192
  }
193
- }, _(Ee, "persist", []), Ee);
193
+ }, C(Ee, "persist", []), Ee);
194
194
  const Cl = {
195
195
  Low: -256,
196
196
  Default: 0,
@@ -199,7 +199,7 @@ const Cl = {
199
199
  class er extends Se {
200
200
  constructor() {
201
201
  super(...arguments);
202
- _(this, "listeners", {});
202
+ C(this, "listeners", {});
203
203
  }
204
204
  async boot() {
205
205
  Object.entries(globalThis.__aerogelEvents__ ?? {}).forEach(([e, r]) => (
@@ -227,7 +227,7 @@ class er extends Se {
227
227
  return se(
228
228
  () => a && this.off(e, a),
229
229
  (p) => {
230
- a = (...g) => (p(), i(...g)), this.registerListener(e, u, i);
230
+ a = (...v) => (p(), i(...v)), this.registerListener(e, u, i);
231
231
  }
232
232
  );
233
233
  }
@@ -242,18 +242,18 @@ class er extends Se {
242
242
  n.priorities.length === 0 && delete this.listeners[e];
243
243
  }
244
244
  registerListener(e, r, n) {
245
- var p, g, w;
245
+ var p, v, w;
246
246
  const a = r.priority ?? 0;
247
247
  e in this.listeners || (this.listeners[e] = { priorities: [], handlers: {} });
248
- const u = ((p = this.listeners[e]) == null ? void 0 : p.priorities) ?? W(`priorities missing for event '${e}'`), i = ((g = this.listeners[e]) == null ? void 0 : g.handlers) ?? W(`handlers missing for event '${e}'`);
249
- u.includes(a) || (u.push(a), u.sort((v, k) => k - v), i[a] = []), (w = i[a]) == null || w.push(n);
248
+ const u = ((p = this.listeners[e]) == null ? void 0 : p.priorities) ?? W(`priorities missing for event '${e}'`), i = ((v = this.listeners[e]) == null ? void 0 : v.handlers) ?? W(`handlers missing for event '${e}'`);
249
+ u.includes(a) || (u.push(a), u.sort((h, k) => k - h), i[a] = []), (w = i[a]) == null || w.push(n);
250
250
  }
251
251
  }
252
252
  const F = re(er);
253
- function Sl(t) {
253
+ function xl(t) {
254
254
  return t;
255
255
  }
256
- const tr = Ce({
256
+ const tr = xe({
257
257
  name: "app",
258
258
  initialState: {
259
259
  plugins: {},
@@ -278,9 +278,9 @@ const tr = Ce({
278
278
  class sr extends tr {
279
279
  constructor() {
280
280
  super(...arguments);
281
- _(this, "name", B.name);
282
- _(this, "ready", new J());
283
- _(this, "mounted", new J());
281
+ C(this, "name", B.name);
282
+ C(this, "ready", new J());
283
+ C(this, "mounted", new J());
284
284
  }
285
285
  isReady() {
286
286
  return this.ready.isResolved();
@@ -308,12 +308,12 @@ class sr extends tr {
308
308
  F.once("application-ready", () => this.ready.resolve()), F.once("application-mounted", () => this.mounted.resolve());
309
309
  }
310
310
  }
311
- const P = re(sr);
312
- function kl(t) {
311
+ const A = re(sr);
312
+ function Sl(t) {
313
313
  return t;
314
314
  }
315
315
  async function rr(t, ...s) {
316
- P.setState(
316
+ A.setState(
317
317
  "plugins",
318
318
  t.reduce(
319
319
  (e, r) => (r.name && (e[r.name] = r), e),
@@ -324,7 +324,7 @@ async function rr(t, ...s) {
324
324
  function nr(t) {
325
325
  return Object.entries(t.props ?? {}).reduce((s, [e, r]) => s + `${e}="${j(r)}"`, "");
326
326
  }
327
- function Tl(t) {
327
+ function kl(t) {
328
328
  return t;
329
329
  }
330
330
  function ar(t) {
@@ -337,10 +337,10 @@ function R(t, s) {
337
337
  function lr(t, s) {
338
338
  return Y(t) ?? W(s ?? `Could not resolve '${j(t)}' injection key`);
339
339
  }
340
- function dt(t) {
341
- return typeof t == "string" ? t : t.type === Dt ? "" : t.type === Bt || t.type === jt ? t.children : t.type === "br" ? `
340
+ function pt(t) {
341
+ return typeof t == "string" ? t : t.type === Bt ? "" : t.type === jt || t.type === Ft ? t.children : t.type === "br" ? `
342
342
 
343
- ` : `<${t.type} ${nr(t)}>${Array.from(t.children).map(dt).join("")}</${t.type}>`;
343
+ ` : `<${t.type} ${nr(t)}>${Array.from(t.children).map(pt).join("")}</${t.type}>`;
344
344
  }
345
345
  const Me = /* @__PURE__ */ new WeakMap(), or = {
346
346
  mounted(t, { value: s, modifiers: e }) {
@@ -355,14 +355,14 @@ const Me = /* @__PURE__ */ new WeakMap(), or = {
355
355
  (s = Me.get(t)) == null || s.unobserve(t), Me.delete(t);
356
356
  }
357
357
  };
358
- function pt(t, s) {
358
+ function ft(t, s) {
359
359
  const { baseClasses: e, ...r } = t, { baseClasses: n, ...a } = s, u = $s(n, a);
360
- return E(u(r), l(e));
360
+ return T(u(r), l(e));
361
361
  }
362
- function E(...t) {
362
+ function T(...t) {
363
363
  return _s(ws(t));
364
364
  }
365
- function Ml(t, s) {
365
+ function Tl(t, s) {
366
366
  const e = F.on(t, s);
367
367
  $e(() => e());
368
368
  }
@@ -389,7 +389,7 @@ function ur(t, s) {
389
389
  }
390
390
  }
391
391
  const ge = { ...ir };
392
- function El(t, s) {
392
+ function Ml(t, s) {
393
393
  ge[t] = s;
394
394
  }
395
395
  function cr(t, s) {
@@ -398,26 +398,26 @@ function cr(t, s) {
398
398
  function dr(t, s) {
399
399
  var r;
400
400
  const e = (r = ge[s]) == null ? void 0 : r.call(ge, t);
401
- return e ? lt(e) : [];
401
+ return e ? ot(e) : [];
402
402
  }
403
- const Hl = Symbol(), Je = /* @__PURE__ */ new WeakMap();
404
- class pr extends at {
403
+ const El = Symbol(), Ze = /* @__PURE__ */ new WeakMap();
404
+ class pr extends lt {
405
405
  constructor(e) {
406
406
  super();
407
- _(this, "errors");
408
- _(this, "_fields");
409
- _(this, "_data");
410
- _(this, "_submitted");
411
- _(this, "_errors");
412
- _(this, "_listeners", {});
413
- this._fields = e, this._submitted = N(!1), this._data = this.getInitialData(e), this._errors = this.getInitialErrors(e), Je.set(
407
+ C(this, "errors");
408
+ C(this, "_fields");
409
+ C(this, "_data");
410
+ C(this, "_submitted");
411
+ C(this, "_errors");
412
+ C(this, "_listeners", {});
413
+ this._fields = e, this._submitted = N(!1), this._data = this.getInitialData(e), this._errors = this.getInitialErrors(e), Ze.set(
414
414
  this,
415
415
  c(() => !Object.values(this._errors).some((r) => r !== null))
416
416
  ), this.errors = _e(this._errors);
417
417
  }
418
418
  get valid() {
419
419
  var e;
420
- return !!((e = Je.get(this)) != null && e.value);
420
+ return !!((e = Ze.get(this)) != null && e.value);
421
421
  }
422
422
  get submitted() {
423
423
  return this._submitted.value;
@@ -468,7 +468,7 @@ class pr extends at {
468
468
  }
469
469
  async focus(e) {
470
470
  var r;
471
- await Ft(), (r = this._listeners.focus) == null || r.forEach((n) => n(e));
471
+ await Ut(), (r = this._listeners.focus) == null || r.forEach((n) => n(e));
472
472
  }
473
473
  __get(e) {
474
474
  return e in this._fields ? this.getFieldValue(e) : super.__get(e);
@@ -512,24 +512,24 @@ function mt(t, s) {
512
512
  const e = Y("form", null), r = e == null ? void 0 : e.on("focus", (n) => t.name === n && s());
513
513
  $e(() => r == null ? void 0 : r());
514
514
  }
515
- function ft(t) {
515
+ function ht(t) {
516
516
  return new pr(t);
517
517
  }
518
- function Ae() {
519
- const t = tt(), s = c(() => t.class);
518
+ function Pe() {
519
+ const t = st(), s = c(() => t.class);
520
520
  return [c(() => ss(t, "class")), s];
521
521
  }
522
- function Vl(t) {
522
+ function Hl(t) {
523
523
  let s = rs;
524
- st(() => s = t()), $e(() => s());
524
+ rt(() => s = t()), $e(() => s());
525
525
  }
526
- function Ll(t, s) {
526
+ function Vl(t, s) {
527
527
  const e = ve(O.get(t) ?? s);
528
- return Le(e, () => O.set(t, Ut(e))), e;
528
+ return Le(e, () => O.set(t, Ot(e))), e;
529
529
  }
530
- function mr(t) {
530
+ function fr(t) {
531
531
  let s = new Set(t), e, r;
532
- const n = Ot((a, u) => (r = a, e = u, {
532
+ const n = Nt((a, u) => (r = a, e = u, {
533
533
  get: () => s,
534
534
  set: () => W("Attempted to write read-only reactive set")
535
535
  }));
@@ -554,31 +554,31 @@ function mr(t) {
554
554
  }
555
555
  };
556
556
  }
557
- function Il(t) {
557
+ function Ll(t) {
558
558
  const s = N(), e = c(t);
559
559
  return Le(e, async () => s.value = await e.value, { immediate: !0 }), s;
560
560
  }
561
- function zl(t, s) {
561
+ function Il(t, s) {
562
562
  const e = s ? t : {}, r = s ?? t, n = N(e.initial ?? null), a = ns((u) => n.value = u, e.delay ?? 300);
563
563
  return G(() => a(r())), n;
564
564
  }
565
565
  let ie = null;
566
- function fr() {
567
- return se(new Ne(), (t) => {
566
+ function mr() {
567
+ return se(new We(), (t) => {
568
568
  t.link = function(s) {
569
- const e = Ne.prototype.link.apply(this, [s]);
569
+ const e = We.prototype.link.apply(this, [s]);
570
570
  return s.href.startsWith("#") ? e : e.replace("<a", '<a target="_blank"');
571
571
  };
572
572
  });
573
573
  }
574
574
  function hr(t) {
575
- const s = ot(t, /<a[^>]*href="#action:([^"]+)"[^>]*>([^<]+)<\/a>/g);
575
+ const s = it(t, /<a[^>]*href="#action:([^"]+)"[^>]*>([^<]+)<\/a>/g);
576
576
  for (const [e, r, n] of s)
577
577
  t = t.replace(e, `<button type="button" data-markdown-action="${r}">${n}</button>`);
578
578
  return t;
579
579
  }
580
580
  function gr(t) {
581
- const s = ot(t, /<a[^>]*href="#route:([^"]+)"[^>]*>([^<]+)<\/a>/g);
581
+ const s = it(t, /<a[^>]*href="#route:([^"]+)"[^>]*>([^<]+)<\/a>/g);
582
582
  for (const [e, r, n] of s) {
583
583
  const a = (ie == null ? void 0 : ie.resolve(r)) ?? r;
584
584
  t = t.replace(e, `<a data-markdown-route="${r}" href="${a}">${n}</a>`);
@@ -588,19 +588,19 @@ function gr(t) {
588
588
  function vr() {
589
589
  return ie;
590
590
  }
591
- function Rl(t) {
591
+ function zl(t) {
592
592
  ie = t;
593
593
  }
594
594
  function br(t) {
595
- let s = hs(t, { renderer: fr(), async: !1 });
596
- return s = ht(s), s = hr(s), s = gr(s), s;
595
+ let s = hs(t, { renderer: mr(), async: !1 });
596
+ return s = gt(s), s = hr(s), s = gr(s), s;
597
597
  }
598
- function ht(t) {
599
- return fs.sanitize(t, { ADD_ATTR: ["target"] });
598
+ function gt(t) {
599
+ return ms.sanitize(t, { ADD_ATTR: ["target"] });
600
600
  }
601
- const yr = 6e4, Ze = -(/* @__PURE__ */ new Date()).getTimezoneOffset() * -yr, wr = {
601
+ const yr = 6e4, Xe = -(/* @__PURE__ */ new Date()).getTimezoneOffset() * -yr, wr = {
602
602
  mounted(t, { value: s }) {
603
- t.innerHTML = ht(s);
603
+ t.innerHTML = gt(s);
604
604
  }
605
605
  }, $r = {
606
606
  measure: or,
@@ -615,10 +615,10 @@ const yr = 6e4, Ze = -(/* @__PURE__ */ new Date()).getTimezoneOffset() * -yr, wr
615
615
  t.directive(r, n);
616
616
  }
617
617
  };
618
- class xr extends Se {
618
+ class Cr extends Se {
619
619
  constructor() {
620
620
  super(...arguments);
621
- _(this, "cache");
621
+ C(this, "cache");
622
622
  }
623
623
  async get(e) {
624
624
  return await (await this.open()).match(e) ?? null;
@@ -636,23 +636,23 @@ class xr extends Se {
636
636
  });
637
637
  }
638
638
  }
639
- const ql = re(xr);
640
- class Cr extends Se {
639
+ const Rl = re(Cr);
640
+ class xr extends Se {
641
641
  async purge() {
642
642
  await F.emit("purge-storage");
643
643
  }
644
644
  }
645
- const gt = re(Cr);
646
- function Al(t, s) {
645
+ const vt = re(xr);
646
+ function ql(t, s) {
647
647
  return {
648
648
  ...t,
649
649
  ...ae(s, Object.keys(t))
650
650
  };
651
651
  }
652
652
  const Sr = {
653
- $app: P,
653
+ $app: A,
654
654
  $events: F,
655
- $storage: gt
655
+ $storage: vt
656
656
  };
657
657
  async function ke(t, s) {
658
658
  await Promise.all(
@@ -671,30 +671,30 @@ const kr = {
671
671
  ...Sr,
672
672
  ...s.services
673
673
  };
674
- t.use(Ys()), (r = s.settings) == null || r.forEach((n) => P.addSetting(n)), await ke(t, e);
674
+ t.use(Ys()), (r = s.settings) == null || r.forEach((n) => A.addSetting(n)), await ke(t, e);
675
675
  }
676
- }, Xe = /* @__PURE__ */ new WeakSet();
677
- function Pe() {
678
- const t = ut(), { close: s, remove: e, ...r } = gs(Xe.has(t) ? {} : { removeOnClose: !1 });
679
- return Xe.add(t), {
676
+ }, Ye = /* @__PURE__ */ new WeakSet();
677
+ function Ae() {
678
+ const t = ct(), { close: s, remove: e, ...r } = gs(Ye.has(t) ? {} : { removeOnClose: !1 });
679
+ return Ye.add(t), {
680
680
  ...r,
681
681
  async close(n) {
682
682
  s(n), await oe(1e3), e();
683
683
  }
684
684
  };
685
685
  }
686
- const vt = 768, be = {
686
+ const bt = 768, be = {
687
687
  Mobile: "mobile",
688
688
  Desktop: "desktop"
689
689
  };
690
- function bt() {
691
- return globalThis.innerWidth > vt ? be.Desktop : be.Mobile;
690
+ function yt() {
691
+ return globalThis.innerWidth > bt ? be.Desktop : be.Mobile;
692
692
  }
693
- const Tr = Ce({
693
+ const Tr = xe({
694
694
  name: "ui",
695
695
  initialState: {
696
696
  toasts: [],
697
- layout: bt()
697
+ layout: yt()
698
698
  },
699
699
  computed: {
700
700
  desktop: ({ layout: t }) => t === be.Desktop,
@@ -704,7 +704,7 @@ const Tr = Ce({
704
704
  class Mr extends Tr {
705
705
  constructor() {
706
706
  super(...arguments);
707
- _(this, "components", {});
707
+ C(this, "components", {});
708
708
  }
709
709
  registerComponent(e, r) {
710
710
  this.components[e] = r;
@@ -734,17 +734,17 @@ class Mr extends Tr {
734
734
  title: e,
735
735
  message: r,
736
736
  required: !!(n != null && n.required)
737
- }, { response: i } = await this.modal(this.requireComponent("confirm-modal"), u), p = typeof i == "object" ? i[0] : i ?? !1, g = typeof i == "object" ? i[1] : Object.entries(u.checkboxes ?? {}).reduce(
738
- (w, [v, { default: k }]) => ({
739
- [v]: k ?? !1,
737
+ }, { response: i } = await this.modal(this.requireComponent("confirm-modal"), u), p = typeof i == "object" ? i[0] : i ?? !1, v = typeof i == "object" ? i[1] : Object.entries(u.checkboxes ?? {}).reduce(
738
+ (w, [h, { default: k }]) => ({
739
+ [h]: k ?? !1,
740
740
  ...w
741
741
  }),
742
742
  {}
743
743
  );
744
- for (const [w, v] of Object.entries(u.checkboxes ?? {}))
745
- if (!(!v.required || g[w]))
746
- return p && Z() && console.warn(`Confirmed confirm modal was suppressed because required '${w}' checkbox was missing`), [!1, g];
747
- return "checkboxes" in u ? [p, g] : p;
744
+ for (const [w, h] of Object.entries(u.checkboxes ?? {}))
745
+ if (!(!h.required || v[w]))
746
+ return p && Z() && console.warn(`Confirmed confirm modal was suppressed because required '${w}' checkbox was missing`), [!1, v];
747
+ return "checkboxes" in u ? [p, v] : p;
748
748
  }
749
749
  async prompt(e, r, n) {
750
750
  const a = (n == null ? void 0 : n.trim) ?? !0, u = () => typeof r != "string" ? {
@@ -758,7 +758,7 @@ class Mr extends Tr {
758
758
  return (a && typeof i == "string" ? i == null ? void 0 : i.trim() : i) ?? null;
759
759
  }
760
760
  async loading(e, r) {
761
- const n = (v) => typeof v == "function" ? Promise.resolve(v()) : v, a = () => {
761
+ const n = (h) => typeof h == "function" ? Promise.resolve(h()) : h, a = () => {
762
762
  if (typeof e == "string")
763
763
  return {
764
764
  props: { message: e },
@@ -766,24 +766,24 @@ class Mr extends Tr {
766
766
  };
767
767
  if (typeof e == "function" || e instanceof Promise)
768
768
  return { operationPromise: n(e) };
769
- const { delay: v, ...k } = e;
769
+ const { delay: h, ...k } = e;
770
770
  return {
771
771
  props: k,
772
- delay: l(v),
772
+ delay: l(h),
773
773
  operationPromise: n(r)
774
774
  };
775
775
  };
776
776
  let u = !1;
777
- const { operationPromise: i, props: p, delay: g } = a();
778
- if (g && await Promise.race([oe({ ms: g }).then(() => u = !0), i]), g && !u)
777
+ const { operationPromise: i, props: p, delay: v } = a();
778
+ if (v && await Promise.race([oe({ ms: v }).then(() => u = !0), i]), v && !u)
779
779
  return i;
780
780
  const w = vs(this.requireComponent("loading-modal"), p);
781
- We(w);
781
+ Ke(w);
782
782
  try {
783
- const v = await i;
784
- return await oe({ ms: 500 }), v;
783
+ const h = await i;
784
+ return await oe({ ms: 500 }), h;
785
785
  } finally {
786
- await Ke(w.id, { removeAfter: 1e3 });
786
+ await Qe(w.id, { removeAfter: 1e3 });
787
787
  }
788
788
  }
789
789
  toast(e, r = {}) {
@@ -795,10 +795,10 @@ class Mr extends Tr {
795
795
  this.setState("toasts", this.toasts.concat(u));
796
796
  }
797
797
  modal(e, r) {
798
- return We(e, r ?? {});
798
+ return Ke(e, r ?? {});
799
799
  }
800
800
  async closeAllModals() {
801
- await Promise.all(le.value.map(({ id: e }) => Ke(e, { removeAfter: 1e3 })));
801
+ await Promise.all(le.value.map(({ id: e }) => Qe(e, { removeAfter: 1e3 })));
802
802
  }
803
803
  async boot() {
804
804
  this.watchMountedEvent(), this.watchViewportBreakpoints();
@@ -814,10 +814,10 @@ class Mr extends Tr {
814
814
  watchViewportBreakpoints() {
815
815
  if (!globalThis.matchMedia)
816
816
  return;
817
- globalThis.matchMedia(`(min-width: ${vt}px)`).addEventListener("change", () => this.setState({ layout: bt() }));
817
+ globalThis.matchMedia(`(min-width: ${bt}px)`).addEventListener("change", () => this.setState({ layout: yt() }));
818
818
  }
819
819
  }
820
- const A = re(Mr);
820
+ const P = re(Mr);
821
821
  class Er {
822
822
  constructor(s, e) {
823
823
  this.locale = s, this.fallbackLocale = e;
@@ -844,7 +844,7 @@ class Er {
844
844
  return Z() && console.warn("Lang provider is missing"), e;
845
845
  }
846
846
  }
847
- const Hr = Ce({
847
+ const Hr = xe({
848
848
  name: "lang",
849
849
  persist: ["locale", "fallbackLocale"],
850
850
  initialState: {
@@ -856,7 +856,7 @@ const Hr = Ce({
856
856
  class Vr extends Hr {
857
857
  constructor() {
858
858
  super();
859
- _(this, "provider");
859
+ C(this, "provider");
860
860
  this.provider = new Er(
861
861
  this.getState("locale") ?? this.getBrowserLocale(),
862
862
  this.getState("fallbackLocale")
@@ -885,7 +885,7 @@ class Vr extends Hr {
885
885
  );
886
886
  }
887
887
  }
888
- const X = re(Vr), yt = X.translate.bind(X), S = X.translateWithDefault.bind(X), Lr = Ce({
888
+ const X = re(Vr), wt = X.translate.bind(X), S = X.translateWithDefault.bind(X), Lr = xe({
889
889
  name: "errors",
890
890
  initialState: {
891
891
  logs: [],
@@ -901,9 +901,10 @@ const X = re(Vr), yt = X.translate.bind(X), S = X.translateWithDefault.bind(X),
901
901
  class Ir extends Lr {
902
902
  constructor() {
903
903
  super(...arguments);
904
- _(this, "forceReporting", !1);
905
- _(this, "enabled", !0);
906
- _(this, "eruda", null);
904
+ C(this, "forceReporting", !1);
905
+ C(this, "enabled", !0);
906
+ C(this, "eruda", null);
907
+ C(this, "erudaPlugins", null);
907
908
  }
908
909
  enable() {
909
910
  this.enabled = !0;
@@ -913,16 +914,16 @@ class Ir extends Lr {
913
914
  }
914
915
  async inspect(e, r) {
915
916
  if (Array.isArray(e) && e.length === 0) {
916
- A.alert(S("errors.inspectEmpty", "Nothing to inspect!"));
917
+ P.alert(S("errors.inspectEmpty", "Nothing to inspect!"));
917
918
  return;
918
919
  }
919
920
  const n = Array.isArray(e) ? e[0] : this.isErrorReport(e) ? e : await this.createErrorReport(e), a = Array.isArray(e) ? e : r ?? [n];
920
- A.modal(A.requireComponent("error-report-modal"), { report: n, reports: a });
921
+ P.modal(P.requireComponent("error-report-modal"), { report: n, reports: a });
921
922
  }
922
923
  async report(e, r) {
923
924
  if (await F.emit("error", { error: e, message: r }), ze("unit") || (Z() && this.logError(e), !this.enabled))
924
925
  throw e;
925
- if (!P.isMounted()) {
926
+ if (!A.isMounted()) {
926
927
  const u = await this.createStartupErrorReport(e);
927
928
  u && this.setState({ startupErrors: this.startupErrors.concat(u) });
928
929
  return;
@@ -932,7 +933,7 @@ class Ir extends Lr {
932
933
  seen: !1,
933
934
  date: /* @__PURE__ */ new Date()
934
935
  };
935
- A.toast(
936
+ P.toast(
936
937
  r ?? S("errors.notice", "Something went wrong, but it's not your fault. Try again!"),
937
938
  {
938
939
  variant: "danger",
@@ -940,7 +941,7 @@ class Ir extends Lr {
940
941
  {
941
942
  label: S("errors.viewDetails", "View details"),
942
943
  dismiss: !0,
943
- click: () => A.modal(A.requireComponent("error-report-modal"), { report: n, reports: [n] })
944
+ click: () => P.modal(P.requireComponent("error-report-modal"), { report: n, reports: [n] })
944
945
  }
945
946
  ]
946
947
  }
@@ -964,7 +965,10 @@ class Ir extends Lr {
964
965
  (e = this.eruda) == null || e.destroy();
965
966
  return;
966
967
  }
967
- this.eruda ?? (this.eruda = (await import("eruda")).default), this.eruda.init();
968
+ this.eruda ?? (this.eruda = (await import("eruda")).default), this.erudaPlugins ?? (this.erudaPlugins = [(await import("eruda-indexeddb")).default]), this.eruda.init(), this.erudaPlugins.forEach((r) => {
969
+ var n;
970
+ return (n = this.eruda) == null ? void 0 : n.add(r);
971
+ });
968
972
  });
969
973
  }
970
974
  logError(e) {
@@ -974,7 +978,7 @@ class Ir extends Lr {
974
978
  return he(e) && "title" in e;
975
979
  }
976
980
  async createErrorReport(e) {
977
- return typeof e == "string" ? { title: e } : e instanceof Error || e instanceof xe ? this.createErrorReportFromError(e) : he(e) ? it({
981
+ return typeof e == "string" ? { title: e } : e instanceof Error || e instanceof Ce ? this.createErrorReportFromError(e) : he(e) ? ut({
978
982
  title: j(
979
983
  e.name ?? e.title ?? S("errors.unknown", "Unknown Error")
980
984
  ),
@@ -1000,7 +1004,7 @@ class Ir extends Lr {
1000
1004
  };
1001
1005
  }
1002
1006
  }
1003
- const wt = re(Ir), $t = /* @__PURE__ */ h({
1007
+ const $t = re(Ir), _t = /* @__PURE__ */ g({
1004
1008
  __name: "HeadlessButton",
1005
1009
  props: {
1006
1010
  class: {},
@@ -1017,8 +1021,8 @@ const wt = re(Ir), $t = /* @__PURE__ */ h({
1017
1021
  },
1018
1022
  setup(t) {
1019
1023
  const s = c(() => t.as ? { as: t.as } : t.route ? {
1020
- as: A.resolveComponent("router-link") ?? "a",
1021
- to: it({
1024
+ as: P.resolveComponent("router-link") ?? "a",
1025
+ to: ut({
1022
1026
  name: t.route,
1023
1027
  params: t.routeParams,
1024
1028
  query: t.routeQuery
@@ -1031,18 +1035,18 @@ const wt = re(Ir), $t = /* @__PURE__ */ h({
1031
1035
  as: "button",
1032
1036
  type: t.submit ? "submit" : "button"
1033
1037
  });
1034
- return (e, r) => (o(), f(l(xs), H({
1038
+ return (e, r) => (o(), m(l(Cs), H({
1035
1039
  class: t.class,
1036
1040
  "as-child": e.asChild,
1037
1041
  disabled: e.disabled
1038
1042
  }, s.value), {
1039
- default: m(() => [
1043
+ default: f(() => [
1040
1044
  $(e.$slots, "default")
1041
1045
  ]),
1042
1046
  _: 3
1043
1047
  }, 16, ["class", "as-child", "disabled"]));
1044
1048
  }
1045
- }), I = /* @__PURE__ */ h({
1049
+ }), I = /* @__PURE__ */ g({
1046
1050
  __name: "Button",
1047
1051
  props: {
1048
1052
  class: {},
@@ -1058,7 +1062,7 @@ const wt = re(Ir), $t = /* @__PURE__ */ h({
1058
1062
  as: {}
1059
1063
  },
1060
1064
  setup(t) {
1061
- const s = K(t, ["class", "size", "variant", "disabled"]), e = c(() => pt(
1065
+ const s = K(t, ["class", "size", "variant", "disabled"]), e = c(() => ft(
1062
1066
  { baseClasses: t.class, variant: t.variant, size: t.size, disabled: t.disabled },
1063
1067
  {
1064
1068
  baseClasses: "focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2",
@@ -1154,11 +1158,11 @@ const wt = re(Ir), $t = /* @__PURE__ */ h({
1154
1158
  }
1155
1159
  }
1156
1160
  ));
1157
- return (r, n) => (o(), f($t, H({
1161
+ return (r, n) => (o(), m(_t, H({
1158
1162
  class: e.value,
1159
1163
  disabled: r.disabled
1160
1164
  }, s), {
1161
- default: m(() => [
1165
+ default: f(() => [
1162
1166
  $(r.$slots, "default")
1163
1167
  ]),
1164
1168
  _: 3
@@ -1168,39 +1172,39 @@ const wt = re(Ir), $t = /* @__PURE__ */ h({
1168
1172
  function zr(t) {
1169
1173
  return typeof t == "object" && t !== null && "label" in t;
1170
1174
  }
1171
- const _t = /* @__PURE__ */ h({
1175
+ const Ct = /* @__PURE__ */ g({
1172
1176
  __name: "HeadlessSelectValue",
1173
1177
  setup(t) {
1174
1178
  const s = R(
1175
1179
  "select",
1176
1180
  "<HeadlessSelectValue> must be a child of a <HeadlessSelect>"
1177
1181
  );
1178
- return (e, r) => e.$slots.default ? (o(), f(l(Qe), {
1182
+ return (e, r) => e.$slots.default ? (o(), m(l(Je), {
1179
1183
  key: 0,
1180
1184
  placeholder: l(s).placeholder
1181
1185
  }, {
1182
- default: m(() => [
1186
+ default: f(() => [
1183
1187
  $(e.$slots, "default")
1184
1188
  ]),
1185
1189
  _: 3
1186
- }, 8, ["placeholder"])) : (o(), f(l(Qe), {
1190
+ }, 8, ["placeholder"])) : (o(), m(l(Je), {
1187
1191
  key: 1,
1188
1192
  placeholder: l(s).placeholder
1189
1193
  }, null, 8, ["placeholder"]));
1190
1194
  }
1191
- }), xt = /* @__PURE__ */ h({
1195
+ }), xt = /* @__PURE__ */ g({
1192
1196
  __name: "HeadlessSelectTrigger",
1193
1197
  setup(t) {
1194
1198
  const s = R(
1195
1199
  "select",
1196
1200
  "<HeadlessSelectTrigger> must be a child of a <HeadlessSelect>"
1197
1201
  );
1198
- return (e, r) => (o(), f(l(Cs), {
1202
+ return (e, r) => (o(), m(l(xs), {
1199
1203
  id: l(s).id
1200
1204
  }, {
1201
- default: m(() => [
1205
+ default: f(() => [
1202
1206
  $(e.$slots, "default", {}, () => [
1203
- d(_t, {
1207
+ d(Ct, {
1204
1208
  placeholder: l(s).placeholder
1205
1209
  }, null, 8, ["placeholder"]),
1206
1210
  d(l(Ss))
@@ -1209,7 +1213,7 @@ const _t = /* @__PURE__ */ h({
1209
1213
  _: 3
1210
1214
  }, 8, ["id"]));
1211
1215
  }
1212
- }), Ct = /* @__PURE__ */ h({
1216
+ }), St = /* @__PURE__ */ g({
1213
1217
  __name: "HeadlessSelectOption",
1214
1218
  props: {
1215
1219
  value: {},
@@ -1227,10 +1231,10 @@ const _t = /* @__PURE__ */ h({
1227
1231
  const r = (n = s.options) == null ? void 0 : n.find((a) => a.value === t.value);
1228
1232
  return r ? r.label : j(t.value);
1229
1233
  });
1230
- return (r, n) => (o(), f(l(ks), ce(de(r.$props)), {
1231
- default: m(() => [
1234
+ return (r, n) => (o(), m(l(ks), ce(de(r.$props)), {
1235
+ default: f(() => [
1232
1236
  d(l(Ts), null, {
1233
- default: m(() => [
1237
+ default: f(() => [
1234
1238
  $(r.$slots, "default", {}, () => [
1235
1239
  L(x(e.value), 1)
1236
1240
  ])
@@ -1241,7 +1245,7 @@ const _t = /* @__PURE__ */ h({
1241
1245
  _: 3
1242
1246
  }, 16));
1243
1247
  }
1244
- }), St = /* @__PURE__ */ h({
1248
+ }), kt = /* @__PURE__ */ g({
1245
1249
  __name: "HeadlessSelectOptions",
1246
1250
  props: {
1247
1251
  class: {},
@@ -1251,23 +1255,23 @@ const _t = /* @__PURE__ */ h({
1251
1255
  const s = R(
1252
1256
  "select",
1253
1257
  "<HeadlessSelectOptions> must be a child of a <HeadlessSelect>"
1254
- ), e = c(() => E("min-w-(--reka-select-trigger-width) max-h-(--reka-select-content-available-height)", t.class));
1255
- return (r, n) => (o(), f(l(Ms), null, {
1256
- default: m(() => [
1258
+ ), e = c(() => T("min-w-(--reka-select-trigger-width) max-h-(--reka-select-content-available-height)", t.class));
1259
+ return (r, n) => (o(), m(l(Ms), null, {
1260
+ default: f(() => [
1257
1261
  d(l(Es), {
1258
1262
  position: "popper",
1259
- class: C(e.value),
1263
+ class: _(e.value),
1260
1264
  align: l(s).align,
1261
1265
  side: l(s).side,
1262
1266
  "side-offset": 4
1263
1267
  }, {
1264
- default: m(() => [
1268
+ default: f(() => [
1265
1269
  d(l(Hs), {
1266
- class: C(r.innerClass)
1270
+ class: _(r.innerClass)
1267
1271
  }, {
1268
- default: m(() => [
1272
+ default: f(() => [
1269
1273
  $(r.$slots, "default", {}, () => [
1270
- (o(!0), y(D, null, U(l(s).options ?? [], (a) => (o(), f(Ct, {
1274
+ (o(!0), b(D, null, U(l(s).options ?? [], (a) => (o(), m(St, {
1271
1275
  key: a.key,
1272
1276
  value: a.value
1273
1277
  }, null, 8, ["value"]))), 128))
@@ -1282,7 +1286,7 @@ const _t = /* @__PURE__ */ h({
1282
1286
  _: 3
1283
1287
  }));
1284
1288
  }
1285
- }), Rr = /* @__PURE__ */ h({
1289
+ }), Rr = /* @__PURE__ */ g({
1286
1290
  inheritAttrs: !1,
1287
1291
  __name: "HeadlessSelect",
1288
1292
  props: {
@@ -1302,11 +1306,11 @@ const _t = /* @__PURE__ */ h({
1302
1306
  },
1303
1307
  emits: ["update:modelValue"],
1304
1308
  setup(t, { expose: s, emit: e }) {
1305
- const r = e, n = Y("form", null), a = c(() => n && t.name ? n.getFieldValue(t.name) : t.modelValue), u = c(() => a.value), i = c(() => !n || !t.name ? null : n.errors[t.name] ?? null), p = c(() => t.options ? t.options.map((v) => ({
1309
+ const r = e, n = Y("form", null), a = c(() => n && t.name ? n.getFieldValue(t.name) : t.modelValue), u = c(() => a.value), i = c(() => !n || !t.name ? null : n.errors[t.name] ?? null), p = c(() => t.options ? t.options.map((h) => ({
1306
1310
  key: ue(),
1307
- label: t.renderOption ? t.renderOption(v) : zr(v) ? as(v.label) : j(v),
1308
- value: v
1309
- })) : null), g = {
1311
+ label: t.renderOption ? t.renderOption(h) : zr(h) ? as(h.label) : j(h),
1312
+ value: h
1313
+ })) : null), v = {
1310
1314
  labelClass: t.labelClass,
1311
1315
  optionsClass: t.optionsClass,
1312
1316
  align: t.align,
@@ -1319,39 +1323,39 @@ const _t = /* @__PURE__ */ h({
1319
1323
  placeholder: c(() => t.placeholder ?? S("ui.select", "Select an option")),
1320
1324
  options: p,
1321
1325
  selectedOption: c(() => {
1322
- var v;
1323
- return (v = p.value) == null ? void 0 : v.find((k) => k.value === t.modelValue);
1326
+ var h;
1327
+ return (h = p.value) == null ? void 0 : h.find((k) => k.value === t.modelValue);
1324
1328
  }),
1325
1329
  errors: _e(i),
1326
1330
  required: c(() => {
1327
1331
  if (!(!t.name || !n))
1328
1332
  return n.getFieldRules(t.name).includes("required");
1329
1333
  }),
1330
- update(v) {
1334
+ update(h) {
1331
1335
  if (n && t.name) {
1332
- n.setFieldValue(t.name, v);
1336
+ n.setFieldValue(t.name, h);
1333
1337
  return;
1334
1338
  }
1335
- r("update:modelValue", v);
1339
+ r("update:modelValue", h);
1336
1340
  }
1337
1341
  };
1338
- function w(v) {
1339
- g.update(v);
1342
+ function w(h) {
1343
+ v.update(h);
1340
1344
  }
1341
- return pe("select", g), s(g), (v, k) => (o(), f(l(Vs), {
1345
+ return pe("select", v), s(v), (h, k) => (o(), m(l(Vs), {
1342
1346
  "model-value": u.value,
1343
- by: v.compareOptions,
1347
+ by: h.compareOptions,
1344
1348
  "onUpdate:modelValue": k[0] || (k[0] = (q) => w(q))
1345
1349
  }, {
1346
- default: m(({ open: q }) => [
1347
- (o(), f(ee(v.as), ce(de(v.$attrs)), {
1348
- default: m(() => [
1349
- $(v.$slots, "default", {
1350
- modelValue: v.modelValue,
1350
+ default: f(({ open: q }) => [
1351
+ (o(), m(ee(h.as), ce(de(h.$attrs)), {
1352
+ default: f(() => [
1353
+ $(h.$slots, "default", {
1354
+ modelValue: h.modelValue,
1351
1355
  open: q
1352
1356
  }, () => [
1353
1357
  d(xt),
1354
- d(St)
1358
+ d(kt)
1355
1359
  ])
1356
1360
  ]),
1357
1361
  _: 2
@@ -1360,7 +1364,7 @@ const _t = /* @__PURE__ */ h({
1360
1364
  _: 3
1361
1365
  }, 8, ["model-value", "by"]));
1362
1366
  }
1363
- }), Ye = /* @__PURE__ */ h({
1367
+ }), Ge = /* @__PURE__ */ g({
1364
1368
  __name: "HeadlessSelectLabel",
1365
1369
  props: {
1366
1370
  asChild: { type: Boolean },
@@ -1371,39 +1375,39 @@ const _t = /* @__PURE__ */ h({
1371
1375
  "select",
1372
1376
  "<HeadlessSelectLabel> must be a child of a <HeadlessSelect>"
1373
1377
  ), e = Ie(), r = c(() => !!(s.label || e.default));
1374
- return (n, a) => r.value ? (o(), f(l(Ls), H({
1378
+ return (n, a) => r.value ? (o(), m(l(Ls), H({
1375
1379
  key: 0,
1376
1380
  for: l(s).id
1377
1381
  }, n.$props), {
1378
- default: m(() => [
1382
+ default: f(() => [
1379
1383
  $(n.$slots, "default", {}, () => [
1380
1384
  L(x(l(s).label), 1)
1381
1385
  ])
1382
1386
  ]),
1383
1387
  _: 3
1384
- }, 16, ["for"])) : M("", !0);
1388
+ }, 16, ["for"])) : E("", !0);
1385
1389
  }
1386
- }), kt = /* @__PURE__ */ h({
1390
+ }), Tt = /* @__PURE__ */ g({
1387
1391
  __name: "SelectLabel",
1388
1392
  props: {
1389
1393
  class: {}
1390
1394
  },
1391
1395
  setup(t) {
1392
- const s = R("select", "<SelectLabel> must be a child of a <Select>"), e = c(() => E("block text-sm leading-6 font-medium text-gray-900", s.labelClass, t.class));
1393
- return (r, n) => r.$slots.default ? (o(), f(Ye, {
1396
+ const s = R("select", "<SelectLabel> must be a child of a <Select>"), e = c(() => T("block text-sm leading-6 font-medium text-gray-900", s.labelClass, t.class));
1397
+ return (r, n) => r.$slots.default ? (o(), m(Ge, {
1394
1398
  key: 0,
1395
- class: C(e.value)
1399
+ class: _(e.value)
1396
1400
  }, {
1397
- default: m(() => [
1401
+ default: f(() => [
1398
1402
  $(r.$slots, "default")
1399
1403
  ]),
1400
1404
  _: 3
1401
- }, 8, ["class"])) : (o(), f(Ye, {
1405
+ }, 8, ["class"])) : (o(), m(Ge, {
1402
1406
  key: 1,
1403
- class: C(e.value)
1407
+ class: _(e.value)
1404
1408
  }, null, 8, ["class"]));
1405
1409
  }
1406
- }), Ge = /* @__PURE__ */ h({
1410
+ }), et = /* @__PURE__ */ g({
1407
1411
  __name: "SelectOption",
1408
1412
  props: {
1409
1413
  value: {},
@@ -1411,18 +1415,18 @@ const _t = /* @__PURE__ */ h({
1411
1415
  innerClass: {}
1412
1416
  },
1413
1417
  setup(t) {
1414
- const s = c(() => E("group p-1 outline-none", t.class)), e = c(() => E(
1418
+ const s = c(() => T("group p-1 outline-none", t.class)), e = c(() => T(
1415
1419
  // eslint-disable-next-line vue/max-len
1416
1420
  "relative flex max-w-[calc(100vw-2rem)] cursor-pointer items-center truncate rounded-md gap-2 px-2 py-1 text-sm select-none *:truncate group-data-[highlighted]:bg-gray-100 group-data-[state=checked]:font-semibold group-data-[state=unchecked]:opacity-50",
1417
1421
  t.innerClass
1418
1422
  ));
1419
- return (r, n) => (o(), f(Ct, {
1420
- class: C(s.value),
1423
+ return (r, n) => (o(), m(St, {
1424
+ class: _(s.value),
1421
1425
  value: r.value
1422
1426
  }, {
1423
- default: m(() => [
1424
- b("div", {
1425
- class: C(e.value)
1427
+ default: f(() => [
1428
+ y("div", {
1429
+ class: _(e.value)
1426
1430
  }, [
1427
1431
  $(r.$slots, "default")
1428
1432
  ], 2)
@@ -1430,42 +1434,42 @@ const _t = /* @__PURE__ */ h({
1430
1434
  _: 3
1431
1435
  }, 8, ["class", "value"]));
1432
1436
  }
1433
- }), Tt = /* @__PURE__ */ h({
1437
+ }), Mt = /* @__PURE__ */ g({
1434
1438
  __name: "SelectOptions",
1435
1439
  props: {
1436
1440
  class: {}
1437
1441
  },
1438
1442
  setup(t) {
1439
- const s = R("select", "<SelectOptions> must be a child of a <Select>"), e = c(() => E(
1443
+ const s = R("select", "<SelectOptions> must be a child of a <Select>"), e = c(() => T(
1440
1444
  "z-50 overflow-auto rounded-lg bg-white text-base shadow-lg ring-1 ring-black/5 focus:outline-hidden",
1441
1445
  s.optionsClass,
1442
1446
  t.class
1443
1447
  ));
1444
- return (r, n) => (o(), f(St, {
1445
- class: C(e.value)
1448
+ return (r, n) => (o(), m(kt, {
1449
+ class: _(e.value)
1446
1450
  }, {
1447
- default: m(() => {
1451
+ default: f(() => {
1448
1452
  var a;
1449
1453
  return [
1450
1454
  (a = l(s).options) != null && a.length ? $(r.$slots, "default", { key: 0 }, () => {
1451
1455
  var u;
1452
1456
  return [
1453
- (o(!0), y(D, null, U(((u = l(s)) == null ? void 0 : u.options) ?? [], (i) => (o(), f(Ge, {
1457
+ (o(!0), b(D, null, U(((u = l(s)) == null ? void 0 : u.options) ?? [], (i) => (o(), m(et, {
1454
1458
  key: i.key,
1455
1459
  value: i.value
1456
1460
  }, {
1457
- default: m(() => [
1461
+ default: f(() => [
1458
1462
  L(x(i.label), 1)
1459
1463
  ]),
1460
1464
  _: 2
1461
1465
  }, 1032, ["value"]))), 128))
1462
1466
  ];
1463
1467
  }) : $(r.$slots, "default", { key: 1 }, () => [
1464
- d(Ge, {
1468
+ d(et, {
1465
1469
  disabled: "",
1466
1470
  value: null
1467
1471
  }, {
1468
- default: m(() => [
1472
+ default: f(() => [
1469
1473
  L(x(r.$td("ui.selectEmpty", "No options available")), 1)
1470
1474
  ]),
1471
1475
  _: 1
@@ -1481,37 +1485,37 @@ const _t = /* @__PURE__ */ h({
1481
1485
  width: "1.2em",
1482
1486
  height: "1.2em"
1483
1487
  };
1484
- function Ar(t, s) {
1485
- return o(), y("svg", qr, s[0] || (s[0] = [
1486
- b("path", {
1488
+ function Pr(t, s) {
1489
+ return o(), b("svg", qr, s[0] || (s[0] = [
1490
+ y("path", {
1487
1491
  fill: "currentColor",
1488
1492
  d: "m9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828L5.757 6.586L4.343 8z"
1489
1493
  }, null, -1)
1490
1494
  ]));
1491
1495
  }
1492
- const Pr = V({ name: "zondicons-cheveron-down", render: Ar }), Mt = /* @__PURE__ */ h({
1496
+ const Ar = V({ name: "zondicons-cheveron-down", render: Pr }), Et = /* @__PURE__ */ g({
1493
1497
  __name: "SelectTrigger",
1494
1498
  props: {
1495
1499
  class: {}
1496
1500
  },
1497
1501
  setup(t) {
1498
- const s = R("select", "<SelectTrigger> must be a child of a <Select>"), e = c(() => E(
1502
+ const s = R("select", "<SelectTrigger> must be a child of a <Select>"), e = c(() => T(
1499
1503
  // eslint-disable-next-line vue/max-len
1500
1504
  "focus:outline-primary-600 data-[state=open]:outline-primary-600 grid w-full cursor-default grid-cols-1 rounded-md bg-white py-1.5 pr-2 pl-3 text-left text-gray-900 outline-1 -outline-offset-1 outline-gray-300 focus:outline-2 focus:-outline-offset-2 sm:text-sm/6",
1501
1505
  { "mt-1": s.label },
1502
1506
  t.class
1503
1507
  ));
1504
- return (r, n) => (o(), f(xt, {
1505
- class: C(e.value)
1508
+ return (r, n) => (o(), m(xt, {
1509
+ class: _(e.value)
1506
1510
  }, {
1507
- default: m(() => [
1508
- d(_t, { class: "col-start-1 row-start-1 truncate pr-6" }),
1509
- d(l(Pr), { class: "col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4" })
1511
+ default: f(() => [
1512
+ d(Ct, { class: "col-start-1 row-start-1 truncate pr-6" }),
1513
+ d(l(Ar), { class: "col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4" })
1510
1514
  ]),
1511
1515
  _: 1
1512
1516
  }, 8, ["class"]));
1513
1517
  }
1514
- }), Dr = /* @__PURE__ */ h({
1518
+ }), Dr = /* @__PURE__ */ g({
1515
1519
  __name: "Select",
1516
1520
  props: {
1517
1521
  as: {},
@@ -1531,20 +1535,20 @@ const Pr = V({ name: "zondicons-cheveron-down", render: Ar }), Mt = /* @__PURE__
1531
1535
  emits: ["update:modelValue"],
1532
1536
  setup(t) {
1533
1537
  const { forwardRef: s } = Re();
1534
- return (e, r) => (o(), f(Rr, H({ ref: l(s) }, e.$props, {
1538
+ return (e, r) => (o(), m(Rr, H({ ref: l(s) }, e.$props, {
1535
1539
  "onUpdate:modelValue": r[0] || (r[0] = (n) => e.$emit("update:modelValue", n))
1536
1540
  }), {
1537
- default: m(() => [
1538
- d(kt),
1541
+ default: f(() => [
1542
+ d(Tt),
1539
1543
  $(e.$slots, "default", {}, () => [
1540
- d(Mt),
1541
- d(Tt)
1544
+ d(Et),
1545
+ d(Mt)
1542
1546
  ])
1543
1547
  ]),
1544
1548
  _: 3
1545
1549
  }, 16));
1546
1550
  }
1547
- }), Br = { class: "grow" }, jr = /* @__PURE__ */ h({
1551
+ }), Br = { class: "grow" }, jr = /* @__PURE__ */ g({
1548
1552
  __name: "Language",
1549
1553
  setup(t) {
1550
1554
  const s = X.getBrowserLocale(), e = c(() => [null, ...X.locales]);
@@ -1553,7 +1557,7 @@ const Pr = V({ name: "zondicons-cheveron-down", render: Ar }), Mt = /* @__PURE__
1553
1557
  locale: B.locales[s] ?? s
1554
1558
  });
1555
1559
  }
1556
- return (n, a) => (o(), f(Dr, {
1560
+ return (n, a) => (o(), m(Dr, {
1557
1561
  modelValue: n.$lang.locale,
1558
1562
  "onUpdate:modelValue": a[0] || (a[0] = (u) => n.$lang.locale = u),
1559
1563
  class: "flex flex-col items-start md:flex-row",
@@ -1561,10 +1565,10 @@ const Pr = V({ name: "zondicons-cheveron-down", render: Ar }), Mt = /* @__PURE__
1561
1565
  options: e.value,
1562
1566
  "render-option": r
1563
1567
  }, {
1564
- default: m(() => [
1565
- b("div", Br, [
1566
- d(kt, { class: "text-base font-semibold" }, {
1567
- default: m(() => [
1568
+ default: f(() => [
1569
+ y("div", Br, [
1570
+ d(Tt, { class: "text-base font-semibold" }, {
1571
+ default: f(() => [
1568
1572
  L(x(n.$td("settings.locale", "Language")), 1)
1569
1573
  ]),
1570
1574
  _: 1
@@ -1577,10 +1581,10 @@ const Pr = V({ name: "zondicons-cheveron-down", render: Ar }), Mt = /* @__PURE__
1577
1581
  ]),
1578
1582
  d(I, {
1579
1583
  variant: "ghost",
1580
- as: Mt,
1584
+ as: Et,
1581
1585
  class: "grid w-auto outline-none"
1582
1586
  }),
1583
- d(Tt)
1587
+ d(Mt)
1584
1588
  ]),
1585
1589
  _: 1
1586
1590
  }, 8, ["modelValue", "options"]));
@@ -1593,9 +1597,9 @@ const Pr = V({ name: "zondicons-cheveron-down", render: Ar }), Mt = /* @__PURE__
1593
1597
  ], Ur = { $lang: X }, Or = {
1594
1598
  async install(t) {
1595
1599
  var s;
1596
- (s = t.config.globalProperties).$t ?? (s.$t = yt), t.config.globalProperties.$td = S, Fr.forEach((e) => P.addSetting(e)), await ke(t, Ur);
1600
+ (s = t.config.globalProperties).$t ?? (s.$t = wt), t.config.globalProperties.$td = S, Fr.forEach((e) => A.addSetting(e)), await ke(t, Ur);
1597
1601
  }
1598
- }, Nr = /* @__PURE__ */ h({
1602
+ }, Nr = /* @__PURE__ */ g({
1599
1603
  __name: "Markdown",
1600
1604
  props: {
1601
1605
  as: {},
@@ -1607,38 +1611,38 @@ const Pr = V({ name: "zondicons-cheveron-down", render: Ar }), Mt = /* @__PURE__
1607
1611
  actions: {}
1608
1612
  },
1609
1613
  setup(t) {
1610
- const s = tt(), e = Ie(), r = c(() => e.default ? e.default().map(dt).join("") : t.text ?? (t.langKey && (t.langDefault ? S(t.langKey, t.langDefault, t.langParams ?? {}) : yt(t.langKey, t.langParams ?? {})))), n = c(() => {
1614
+ const s = st(), e = Ie(), r = c(() => e.default ? e.default().map(pt).join("") : t.text ?? (t.langKey && (t.langDefault ? S(t.langKey, t.langDefault, t.langParams ?? {}) : wt(t.langKey, t.langParams ?? {})))), n = c(() => {
1611
1615
  if (!r.value)
1612
1616
  return null;
1613
1617
  let i = br(r.value);
1614
1618
  return t.inline && (i = i.replace("<p>", "<span>").replace("</p>", "</span>")), i;
1615
- }), a = () => Nt(t.as ?? (t.inline ? "span" : "div"), {
1619
+ }), a = () => Wt(t.as ?? (t.inline ? "span" : "div"), {
1616
1620
  innerHTML: n.value,
1617
1621
  onClick: u,
1618
1622
  ...s,
1619
1623
  class: `${s.class ?? ""} ${t.inline ? "" : "prose"}`
1620
1624
  });
1621
1625
  async function u(i) {
1622
- var g, w;
1626
+ var v, w;
1623
1627
  const { target: p } = i;
1624
- if (Oe(p, HTMLElement) && p.dataset.markdownAction) {
1625
- (w = (g = t.actions) == null ? void 0 : g[p.dataset.markdownAction]) == null || w.call(g);
1628
+ if (Ne(p, HTMLElement) && p.dataset.markdownAction) {
1629
+ (w = (v = t.actions) == null ? void 0 : v[p.dataset.markdownAction]) == null || w.call(v);
1626
1630
  return;
1627
1631
  }
1628
- if (Oe(p, HTMLAnchorElement) && p.dataset.markdownRoute) {
1629
- const v = vr();
1630
- v && (i.preventDefault(), v.visit(p.dataset.markdownRoute));
1632
+ if (Ne(p, HTMLAnchorElement) && p.dataset.markdownRoute) {
1633
+ const h = vr();
1634
+ h && (i.preventDefault(), h.visit(p.dataset.markdownRoute));
1631
1635
  return;
1632
1636
  }
1633
1637
  }
1634
- return (i, p) => (o(), f(a));
1638
+ return (i, p) => (o(), m(a));
1635
1639
  }
1636
1640
  }), Wr = (t, s) => {
1637
1641
  const e = t.__vccOpts || t;
1638
1642
  for (const [r, n] of s)
1639
1643
  e[r] = n;
1640
1644
  return e;
1641
- }, z = /* @__PURE__ */ Wr(Nr, [["__scopeId", "data-v-8b211cfb"]]), Kr = { class: "flex-grow" }, Qr = ["id"], Jr = /* @__PURE__ */ h({
1645
+ }, z = /* @__PURE__ */ Wr(Nr, [["__scopeId", "data-v-8b211cfb"]]), Kr = { class: "flex-grow" }, Qr = ["id"], Jr = /* @__PURE__ */ g({
1642
1646
  __name: "Setting",
1643
1647
  props: {
1644
1648
  title: {},
@@ -1648,29 +1652,29 @@ const Pr = V({ name: "zondicons-cheveron-down", render: Ar }), Mt = /* @__PURE__
1648
1652
  layout: { default: "horizontal" }
1649
1653
  },
1650
1654
  setup(t) {
1651
- const s = c(() => E(t.class, "flex flex-col justify-center gap-1"));
1652
- return (e, r) => (o(), y("div", {
1653
- class: C(["mt-4 flex", { "flex-col": e.layout === "vertical" }])
1655
+ const s = c(() => T(t.class, "flex flex-col justify-center gap-1"));
1656
+ return (e, r) => (o(), b("div", {
1657
+ class: _(["mt-4 flex", { "flex-col": e.layout === "vertical" }])
1654
1658
  }, [
1655
- b("div", Kr, [
1656
- b("h3", {
1659
+ y("div", Kr, [
1660
+ y("h3", {
1657
1661
  id: e.titleId,
1658
1662
  class: "text-base font-semibold"
1659
1663
  }, x(e.title), 9, Qr),
1660
- e.description ? (o(), f(z, {
1664
+ e.description ? (o(), m(z, {
1661
1665
  key: 0,
1662
1666
  text: e.description,
1663
1667
  class: "mt-1 text-sm text-gray-500"
1664
- }, null, 8, ["text"])) : M("", !0)
1668
+ }, null, 8, ["text"])) : E("", !0)
1665
1669
  ]),
1666
- b("div", {
1667
- class: C(s.value)
1670
+ y("div", {
1671
+ class: _(s.value)
1668
1672
  }, [
1669
1673
  $(e.$slots, "default")
1670
1674
  ], 2)
1671
1675
  ], 2));
1672
1676
  }
1673
- }), Zr = ["for"], Xr = /* @__PURE__ */ h({
1677
+ }), Zr = ["for"], Xr = /* @__PURE__ */ g({
1674
1678
  inheritAttrs: !1,
1675
1679
  __name: "HeadlessSwitch",
1676
1680
  props: {
@@ -1706,49 +1710,49 @@ const Pr = V({ name: "zondicons-cheveron-down", render: Ar }), Mt = /* @__PURE__
1706
1710
  };
1707
1711
  return s(u), G(() => {
1708
1712
  !t.description && !a.value || console.warn("Errors and description not implemented in <HeadlessSwitch>");
1709
- }), (i, p) => (o(), y("div", {
1710
- class: C(t.class)
1713
+ }), (i, p) => (o(), b("div", {
1714
+ class: _(t.class)
1711
1715
  }, [
1712
- i.label ? (o(), y("label", {
1716
+ i.label ? (o(), b("label", {
1713
1717
  key: 0,
1714
1718
  for: u.id,
1715
- class: C(i.labelClass)
1716
- }, x(i.label), 11, Zr)) : M("", !0),
1719
+ class: _(i.labelClass)
1720
+ }, x(i.label), 11, Zr)) : E("", !0),
1717
1721
  d(l(Is), H({
1718
1722
  id: u.id,
1719
1723
  name: i.name,
1720
1724
  "model-value": u.value.value
1721
1725
  }, i.$attrs, {
1722
1726
  class: i.inputClass,
1723
- "onUpdate:modelValue": p[0] || (p[0] = (g) => i.$emit("update:modelValue", g))
1727
+ "onUpdate:modelValue": p[0] || (p[0] = (v) => i.$emit("update:modelValue", v))
1724
1728
  }), {
1725
- default: m(() => [
1729
+ default: f(() => [
1726
1730
  d(l(zs), {
1727
- class: C(i.thumbClass)
1731
+ class: _(i.thumbClass)
1728
1732
  }, null, 8, ["class"])
1729
1733
  ]),
1730
1734
  _: 1
1731
1735
  }, 16, ["id", "name", "model-value", "class"])
1732
1736
  ], 2));
1733
1737
  }
1734
- }), Yr = /* @__PURE__ */ h({
1738
+ }), Yr = /* @__PURE__ */ g({
1735
1739
  __name: "Switch",
1736
1740
  setup(t) {
1737
- return (s, e) => (o(), f(Xr, {
1741
+ return (s, e) => (o(), m(Xr, {
1738
1742
  class: "flex flex-row items-center gap-1",
1739
1743
  "input-class": "disabled:opacity-50 disabled:cursor-not-allowed data-[state=checked]:bg-primary-600 data-[state=unchecked]:bg-gray-200 relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focusdisabled:opacity-50 disabled:cursor-not-allowed :ring-2 focus:ring-primary-600 focus:ring-offset-2 focus:outline-hidden",
1740
1744
  "thumb-class": "data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0 pointer-events-none inline-block size-5 transform rounded-full bg-white shadow-sm ring-0 transition duration-200 ease-in-out"
1741
1745
  }));
1742
1746
  }
1743
- }), Gr = /* @__PURE__ */ h({
1747
+ }), Gr = /* @__PURE__ */ g({
1744
1748
  __name: "Debug",
1745
1749
  setup(t) {
1746
- return (s, e) => (o(), f(Jr, {
1750
+ return (s, e) => (o(), m(Jr, {
1747
1751
  "title-id": "debug-setting",
1748
1752
  title: s.$td("settings.debug", "Debugging"),
1749
1753
  description: s.$td("settings.debugDescription", "Enable debugging with [Eruda](https://eruda.liriliri.io/).")
1750
1754
  }, {
1751
- default: m(() => [
1755
+ default: f(() => [
1752
1756
  d(Yr, {
1753
1757
  modelValue: s.$errors.debug,
1754
1758
  "onUpdate:modelValue": e[0] || (e[0] = (r) => s.$errors.debug = r),
@@ -1763,34 +1767,34 @@ const Pr = V({ name: "zondicons-cheveron-down", render: Ar }), Mt = /* @__PURE__
1763
1767
  priority: 10,
1764
1768
  component: Gr
1765
1769
  }
1766
- ], Et = [];
1770
+ ], Ht = [];
1767
1771
  function Pl(t) {
1768
- Et.push(t);
1772
+ Ht.push(t);
1769
1773
  }
1770
- function Ht(t) {
1771
- for (const s of Et) {
1774
+ function Vt(t) {
1775
+ for (const s of Ht) {
1772
1776
  const e = s(t);
1773
1777
  if (e)
1774
1778
  return e;
1775
1779
  }
1776
- return typeof t == "string" ? t : t instanceof Error || t instanceof xe ? t.message : he(t) ? j(t.message ?? t.description ?? "Unknown error object") : S("errors.unknown", "Unknown Error");
1780
+ return typeof t == "string" ? t : t instanceof Error || t instanceof Ce ? t.message : he(t) ? j(t.message ?? t.description ?? "Unknown error object") : S("errors.unknown", "Unknown Error");
1777
1781
  }
1778
- class et extends xe {
1782
+ class tt extends Ce {
1779
1783
  }
1780
- const tn = { $errors: wt }, sn = (t) => (wt.report(t), !0);
1784
+ const tn = { $errors: $t }, sn = (t) => ($t.report(t), !0);
1781
1785
  function rn(t, s = () => !1) {
1782
1786
  const e = (r) => s(r) || sn(r);
1783
1787
  t.config.errorHandler = e, globalThis.onerror = (r, n, a, u, i) => e(i ?? r), globalThis.onunhandledrejection = (r) => e(r.reason);
1784
1788
  }
1785
1789
  const nn = {
1786
1790
  async install(t, s) {
1787
- rn(t, s.handleError), en.forEach((e) => P.addSetting(e)), await ke(t, tn);
1791
+ rn(t, s.handleError), en.forEach((e) => A.addSetting(e)), await ke(t, tn);
1788
1792
  }
1789
1793
  }, an = {
1790
1794
  async install() {
1791
1795
  ze() && (globalThis.testingRuntime = {
1792
1796
  on: (...t) => F.on(...t),
1793
- service: (t) => P.service(t)
1797
+ service: (t) => A.service(t)
1794
1798
  });
1795
1799
  }
1796
1800
  }, ln = {
@@ -1799,14 +1803,14 @@ const nn = {
1799
1803
  height: "1.2em"
1800
1804
  };
1801
1805
  function on(t, s) {
1802
- return o(), y("svg", ln, s[0] || (s[0] = [
1803
- b("path", {
1806
+ return o(), b("svg", ln, s[0] || (s[0] = [
1807
+ y("path", {
1804
1808
  fill: "currentColor",
1805
1809
  d: "M10 8.586L2.929 1.515L1.515 2.929L8.586 10l-7.071 7.071l1.414 1.414L10 11.414l7.071 7.071l1.414-1.414L11.414 10l7.071-7.071l-1.414-1.414z"
1806
1810
  }, null, -1)
1807
1811
  ]));
1808
1812
  }
1809
- const un = V({ name: "zondicons-close", render: on }), cn = /* @__PURE__ */ h({
1813
+ const un = V({ name: "zondicons-close", render: on }), cn = /* @__PURE__ */ g({
1810
1814
  __name: "HeadlessModal",
1811
1815
  props: {
1812
1816
  persistent: { type: Boolean },
@@ -1818,17 +1822,17 @@ const un = V({ name: "zondicons-close", render: on }), cn = /* @__PURE__ */ h({
1818
1822
  descriptionHidden: { type: Boolean }
1819
1823
  },
1820
1824
  setup(t, { expose: s }) {
1821
- const e = N(null), { close: r } = Pe();
1825
+ const e = N(null), { close: r } = Ae();
1822
1826
  s({ $content: e });
1823
1827
  const { forwardRef: n } = Re();
1824
- return pe("$modalContentRef", e), (a, u) => (o(), f(l(Rs), {
1828
+ return pe("$modalContentRef", e), (a, u) => (o(), m(l(Rs), {
1825
1829
  ref: l(n),
1826
1830
  open: "",
1827
1831
  "onUpdate:open": u[0] || (u[0] = (i) => a.persistent || i || l(r)())
1828
1832
  }, {
1829
- default: m(() => [
1833
+ default: f(() => [
1830
1834
  d(l(qs), null, {
1831
- default: m(() => [
1835
+ default: f(() => [
1832
1836
  $(a.$slots, "default", { close: l(r) })
1833
1837
  ]),
1834
1838
  _: 3
@@ -1837,36 +1841,36 @@ const un = V({ name: "zondicons-close", render: on }), cn = /* @__PURE__ */ h({
1837
1841
  _: 3
1838
1842
  }, 512));
1839
1843
  }
1840
- }), dn = /* @__PURE__ */ h({
1844
+ }), dn = /* @__PURE__ */ g({
1841
1845
  __name: "HeadlessModalContent",
1842
1846
  setup(t) {
1843
- const { child: s } = Pe(), e = lr("$modalContentRef"), r = te("$contentRef");
1844
- return G(() => e.value = r.value), (n, a) => (o(), f(l(As), { ref: "$contentRef" }, {
1845
- default: m(() => [
1847
+ const { child: s } = Ae(), e = lr("$modalContentRef"), r = te("$contentRef");
1848
+ return G(() => e.value = r.value), (n, a) => (o(), m(l(Ps), { ref: "$contentRef" }, {
1849
+ default: f(() => [
1846
1850
  $(n.$slots, "default"),
1847
- l(s) ? (o(), f(l(bs), {
1851
+ l(s) ? (o(), m(l(bs), {
1848
1852
  key: 0,
1849
1853
  is: l(s)
1850
- }, null, 8, ["is"])) : M("", !0)
1854
+ }, null, 8, ["is"])) : E("", !0)
1851
1855
  ]),
1852
1856
  _: 3
1853
1857
  }, 512));
1854
1858
  }
1855
- }), pn = /* @__PURE__ */ h({
1859
+ }), pn = /* @__PURE__ */ g({
1856
1860
  __name: "HeadlessModalDescription",
1857
1861
  props: {
1858
1862
  asChild: { type: Boolean },
1859
1863
  as: {}
1860
1864
  },
1861
1865
  setup(t) {
1862
- return (s, e) => (o(), f(l(Ps), ce(de(s.$props)), {
1863
- default: m(() => [
1866
+ return (s, e) => (o(), m(l(As), ce(de(s.$props)), {
1867
+ default: f(() => [
1864
1868
  $(s.$slots, "default")
1865
1869
  ]),
1866
1870
  _: 3
1867
1871
  }, 16));
1868
1872
  }
1869
- }), mn = /* @__PURE__ */ h({
1873
+ }), fn = /* @__PURE__ */ g({
1870
1874
  __name: "HeadlessModalOverlay",
1871
1875
  props: {
1872
1876
  forceMount: { type: Boolean },
@@ -1874,28 +1878,28 @@ const un = V({ name: "zondicons-close", render: on }), cn = /* @__PURE__ */ h({
1874
1878
  as: {}
1875
1879
  },
1876
1880
  setup(t) {
1877
- return (s, e) => (o(), f(l(Ds), ce(de(s.$props)), {
1878
- default: m(() => [
1881
+ return (s, e) => (o(), m(l(Ds), ce(de(s.$props)), {
1882
+ default: f(() => [
1879
1883
  $(s.$slots, "default")
1880
1884
  ]),
1881
1885
  _: 3
1882
1886
  }, 16));
1883
1887
  }
1884
- }), fn = /* @__PURE__ */ h({
1888
+ }), mn = /* @__PURE__ */ g({
1885
1889
  __name: "HeadlessModalTitle",
1886
1890
  props: {
1887
1891
  asChild: { type: Boolean },
1888
1892
  as: {}
1889
1893
  },
1890
1894
  setup(t) {
1891
- return (s, e) => (o(), f(l(Bs), ce(de(s.$props)), {
1892
- default: m(() => [
1895
+ return (s, e) => (o(), m(l(Bs), ce(de(s.$props)), {
1896
+ default: f(() => [
1893
1897
  $(s.$slots, "default")
1894
1898
  ]),
1895
1899
  _: 3
1896
1900
  }, 16));
1897
1901
  }
1898
- }), hn = ["onClick"], gn = { class: "sr-only" }, fe = mr(), ne = /* @__PURE__ */ h({
1902
+ }), hn = ["onClick"], gn = { class: "sr-only" }, me = fr(), ne = /* @__PURE__ */ g({
1899
1903
  __name: "Modal",
1900
1904
  props: {
1901
1905
  persistent: { type: Boolean },
@@ -1913,96 +1917,96 @@ const un = V({ name: "zondicons-close", render: on }), cn = /* @__PURE__ */ h({
1913
1917
  const e = K(t, ["class", "wrapperClass", "title", "titleHidden", "description", "persistent", "closeHidden", "fullscreen", "fullscreenMobile"]);
1914
1918
  s({
1915
1919
  $content: c(() => {
1916
- var T;
1917
- return (T = i.value) == null ? void 0 : T.$content;
1920
+ var M;
1921
+ return (M = i.value) == null ? void 0 : M.$content;
1918
1922
  })
1919
1923
  });
1920
- const { forwardRef: r, currentRef: n } = Re(), { id: a, visible: u } = Pe(), i = n, p = ut(), g = c(
1924
+ const { forwardRef: r, currentRef: n } = Re(), { id: a, visible: u } = Ae(), i = n, p = ct(), v = c(
1921
1925
  () => {
1922
- var T;
1923
- return u.value && ((T = le.value.toReversed().find((je) => je.visible.value)) == null ? void 0 : T.id) === a.value;
1926
+ var M;
1927
+ return u.value && ((M = le.value.toReversed().find((je) => je.visible.value)) == null ? void 0 : M.id) === a.value;
1924
1928
  }
1925
- ), w = c(() => le.value.find((T) => T.visible.value)), v = c(() => le.value.some((T) => fe.has(T))), k = c(() => t.description ? {} : { "aria-describedby": void 0 }), q = c(() => E(
1926
- "overflow-auto px-4 pb-4",
1929
+ ), w = c(() => le.value.find((M) => M.visible.value)), h = c(() => le.value.some((M) => me.has(M))), k = c(() => t.description ? {} : { "aria-describedby": void 0 }), q = c(() => T(
1930
+ "overflow-auto px-4 pb-4 flex flex-col flex-1",
1927
1931
  { "pt-4": !t.title || t.titleHidden, "max-h-[90vh]": !Q.value },
1928
1932
  t.class
1929
- )), Q = c(() => t.fullscreen || t.fullscreenMobile && A.mobile), qt = c(() => E(
1933
+ )), Q = c(() => t.fullscreen || t.fullscreenMobile && P.mobile), Pt = c(() => T(
1930
1934
  "isolate fixed z-50 flex flex-col overflow-hidden bg-white text-left duration-300",
1931
1935
  Q.value ? [
1932
1936
  "inset-0 transition-[transform,translate] will-change-[transform,translate]",
1933
- fe.has(p.value) || "animate-[slide-in_var(--tw-duration)_ease-in-out]",
1934
- g.value ? "translate-y-0" : "translate-y-full"
1937
+ me.has(p.value) || "animate-[slide-in_var(--tw-duration)_ease-in-out]",
1938
+ v.value ? "translate-y-0" : "translate-y-full"
1935
1939
  ] : [
1936
1940
  "top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full",
1937
1941
  "max-w-[calc(100%-2rem)] rounded-lg shadow-xl sm:max-w-lg",
1938
1942
  "transition-[scale,opacity] will-change-[scale,opacity]",
1939
- fe.has(p.value) || "animate-[fade-in_var(--tw-duration)_ease-in-out,grow_var(--tw-duration)_ease-in-out]",
1940
- g.value ? "scale-100 opacity-100" : "scale-50 opacity-0"
1943
+ me.has(p.value) || "animate-[fade-in_var(--tw-duration)_ease-in-out,grow_var(--tw-duration)_ease-in-out]",
1944
+ v.value ? "scale-100 opacity-100" : "scale-50 opacity-0"
1941
1945
  ],
1942
1946
  t.wrapperClass
1943
1947
  ));
1944
- return st(() => oe(500).then(() => fe.add(p.value))), (T, je) => (o(), f(cn, H(e, {
1945
- ref: (me) => l(r)(me),
1946
- persistent: T.persistent
1948
+ return rt(() => oe(500).then(() => me.add(p.value))), (M, je) => (o(), m(cn, H(e, {
1949
+ ref: (fe) => l(r)(fe),
1950
+ persistent: M.persistent
1947
1951
  }), {
1948
- default: m(({ close: me }) => {
1952
+ default: f(({ close: fe }) => {
1949
1953
  var Fe, Ue;
1950
1954
  return [
1951
- d(mn, {
1952
- class: C(["fixed inset-0 transition-opacity duration-300 will-change-[opacity]", {
1953
- "animate-[fade-in_var(--tw-duration)_ease-in-out]": !v.value,
1955
+ d(fn, {
1956
+ class: _(["fixed inset-0 transition-opacity duration-300 will-change-[opacity]", {
1957
+ "animate-[fade-in_var(--tw-duration)_ease-in-out]": !h.value,
1954
1958
  "bg-black/30": ((Fe = w.value) == null ? void 0 : Fe.id) === l(a) || !w.value && ((Ue = l(le)[0]) == null ? void 0 : Ue.id) === l(a),
1955
1959
  "opacity-0": !w.value,
1956
1960
  hidden: Q.value
1957
1961
  }])
1958
1962
  }, null, 8, ["class"]),
1959
- d(dn, H(k.value, { class: qt.value }), {
1960
- default: m(() => [
1961
- !T.persistent && !T.closeHidden ? (o(), y("div", {
1963
+ d(dn, H(k.value, { class: Pt.value }), {
1964
+ default: f(() => [
1965
+ !M.persistent && !M.closeHidden ? (o(), b("div", {
1962
1966
  key: 0,
1963
- class: C(["absolute top-0 right-0 pt-3.5 pr-2.5", { "hidden sm:block": !Q.value }])
1967
+ class: _(["absolute top-0 right-0 pt-3.5 pr-2.5", { "hidden sm:block": !Q.value }])
1964
1968
  }, [
1965
- b("button", {
1969
+ y("button", {
1966
1970
  type: "button",
1967
1971
  class: "clickable z-10 rounded-full p-2.5 text-gray-400 hover:text-gray-500",
1968
- onClick: (cl) => me()
1972
+ onClick: (ul) => fe()
1969
1973
  }, [
1970
- b("span", gn, x(T.$td("ui.close", "Close")), 1),
1974
+ y("span", gn, x(M.$td("ui.close", "Close")), 1),
1971
1975
  d(l(un), { class: "size-4" })
1972
1976
  ], 8, hn)
1973
- ], 2)) : M("", !0),
1974
- T.title ? (o(), f(fn, {
1977
+ ], 2)) : E("", !0),
1978
+ M.title ? (o(), m(mn, {
1975
1979
  key: 1,
1976
- class: C(["px-4 pt-5 text-base font-semibold text-gray-900", {
1977
- "sr-only": T.titleHidden,
1978
- "pb-0": T.description && !T.descriptionHidden,
1979
- "pb-2": !T.description || T.descriptionHidden
1980
+ class: _(["px-4 pt-5 text-base font-semibold text-gray-900", {
1981
+ "sr-only": M.titleHidden,
1982
+ "pb-0": M.description && !M.descriptionHidden,
1983
+ "pb-2": !M.description || M.descriptionHidden
1980
1984
  }])
1981
1985
  }, {
1982
- default: m(() => [
1986
+ default: f(() => [
1983
1987
  d(z, {
1984
- text: T.title,
1988
+ text: M.title,
1985
1989
  inline: ""
1986
1990
  }, null, 8, ["text"])
1987
1991
  ]),
1988
1992
  _: 1
1989
- }, 8, ["class"])) : M("", !0),
1990
- T.description ? (o(), f(pn, {
1993
+ }, 8, ["class"])) : E("", !0),
1994
+ M.description ? (o(), m(pn, {
1991
1995
  key: 2,
1992
- class: C(["px-4 pt-1 pb-2", { "sr-only": T.descriptionHidden }])
1996
+ class: _(["px-4 pt-1 pb-2", { "sr-only": M.descriptionHidden }])
1993
1997
  }, {
1994
- default: m(() => [
1998
+ default: f(() => [
1995
1999
  d(z, {
1996
- text: T.description,
2000
+ text: M.description,
1997
2001
  class: "text-sm leading-6 text-gray-500"
1998
2002
  }, null, 8, ["text"])
1999
2003
  ]),
2000
2004
  _: 1
2001
- }, 8, ["class"])) : M("", !0),
2002
- b("div", {
2003
- class: C(q.value)
2005
+ }, 8, ["class"])) : E("", !0),
2006
+ y("div", {
2007
+ class: _(q.value)
2004
2008
  }, [
2005
- $(T.$slots, "default", { close: me })
2009
+ $(M.$slots, "default", { close: fe })
2006
2010
  ], 2)
2007
2011
  ]),
2008
2012
  _: 2
@@ -2017,7 +2021,7 @@ function vn(t) {
2017
2021
  const s = c(() => t.title ?? S("ui.alert", "Alert")), e = c(() => !t.title);
2018
2022
  return { renderedTitle: s, titleHidden: e };
2019
2023
  }
2020
- const bn = /* @__PURE__ */ h({
2024
+ const bn = /* @__PURE__ */ g({
2021
2025
  __name: "AlertModal",
2022
2026
  props: {
2023
2027
  title: {},
@@ -2025,17 +2029,17 @@ const bn = /* @__PURE__ */ h({
2025
2029
  },
2026
2030
  setup(t, { expose: s }) {
2027
2031
  const e = t, { renderedTitle: r, titleHidden: n } = vn(e);
2028
- return s(), (a, u) => (o(), f(ne, {
2032
+ return s(), (a, u) => (o(), m(ne, {
2029
2033
  title: l(r),
2030
2034
  "title-hidden": l(n)
2031
2035
  }, {
2032
- default: m(() => [
2036
+ default: f(() => [
2033
2037
  d(z, { text: a.message }, null, 8, ["text"])
2034
2038
  ]),
2035
2039
  _: 1
2036
2040
  }, 8, ["title", "title-hidden"]));
2037
2041
  }
2038
- }), Vt = /* @__PURE__ */ h({
2042
+ }), Lt = /* @__PURE__ */ g({
2039
2043
  __name: "Form",
2040
2044
  props: {
2041
2045
  form: {}
@@ -2047,15 +2051,15 @@ const bn = /* @__PURE__ */ h({
2047
2051
  return G((n) => {
2048
2052
  var a;
2049
2053
  e == null || e(), e = (a = t.form) == null ? void 0 : a.on("submit", () => r("submit")), n(() => e == null ? void 0 : e());
2050
- }), pe("form", t.form), (n, a) => (o(), y("form", {
2051
- onSubmit: a[0] || (a[0] = rt((u) => n.form ? n.form.submit() : n.$emit("submit"), ["prevent"]))
2054
+ }), pe("form", t.form), (n, a) => (o(), b("form", {
2055
+ onSubmit: a[0] || (a[0] = nt((u) => n.form ? n.form.submit() : n.$emit("submit"), ["prevent"]))
2052
2056
  }, [
2053
2057
  $(n.$slots, "default")
2054
2058
  ], 32));
2055
2059
  }
2056
2060
  });
2057
2061
  function yn(t) {
2058
- const s = ft(
2062
+ const s = ht(
2059
2063
  Object.entries(t.checkboxes ?? {}).reduce(
2060
2064
  (u, [i, p]) => ({
2061
2065
  [i]: {
@@ -2073,7 +2077,7 @@ function yn(t) {
2073
2077
  const wn = {
2074
2078
  key: 0,
2075
2079
  class: "mt-4 flex flex-col text-sm text-gray-600"
2076
- }, $n = { class: "flex items-center" }, _n = ["onUpdate:modelValue", "required"], xn = { class: "ml-1.5" }, Cn = { class: "mt-4 flex flex-row-reverse gap-2" }, Sn = /* @__PURE__ */ h({
2080
+ }, $n = { class: "flex items-center" }, _n = ["onUpdate:modelValue", "required"], Cn = { class: "ml-1.5" }, xn = { class: "mt-4 flex flex-row-reverse gap-2" }, Sn = /* @__PURE__ */ g({
2077
2081
  __name: "ConfirmModal",
2078
2082
  props: {
2079
2083
  title: {},
@@ -2089,52 +2093,52 @@ const wn = {
2089
2093
  emits: ["close"],
2090
2094
  setup(t, { expose: s }) {
2091
2095
  const e = K(t, ["cancelVariant"]), { form: r, renderedTitle: n, titleHidden: a, renderedAcceptText: u, renderedCancelText: i } = yn(e);
2092
- return s(), (p, g) => (o(), f(ne, {
2096
+ return s(), (p, v) => (o(), m(ne, {
2093
2097
  title: l(n),
2094
2098
  "title-hidden": l(a),
2095
2099
  persistent: ""
2096
2100
  }, {
2097
- default: m(({ close: w }) => [
2098
- d(Vt, {
2101
+ default: f(({ close: w }) => [
2102
+ d(Lt, {
2099
2103
  form: l(r),
2100
- onSubmit: (v) => w([!0, l(r).data()])
2104
+ onSubmit: (h) => w([!0, l(r).data()])
2101
2105
  }, {
2102
- default: m(() => [
2106
+ default: f(() => [
2103
2107
  d(z, {
2104
2108
  text: p.message,
2105
2109
  actions: p.actions
2106
2110
  }, null, 8, ["text", "actions"]),
2107
- p.checkboxes ? (o(), y("ul", wn, [
2108
- (o(!0), y(D, null, U(p.checkboxes, (v, k) => (o(), y("li", { key: k }, [
2109
- b("label", $n, [
2110
- nt(b("input", {
2111
+ p.checkboxes ? (o(), b("ul", wn, [
2112
+ (o(!0), b(D, null, U(p.checkboxes, (h, k) => (o(), b("li", { key: k }, [
2113
+ y("label", $n, [
2114
+ at(y("input", {
2111
2115
  "onUpdate:modelValue": (q) => l(r)[k] = q,
2112
2116
  type: "checkbox",
2113
- required: v.required,
2117
+ required: h.required,
2114
2118
  class: "border-primary-600 text-primary-600 hover:bg-primary-50 hover:checked:bg-primary-500 focus:ring-primary-600 focus-visible:ring-primary-600 rounded border-2"
2115
2119
  }, null, 8, _n), [
2116
- [Wt, l(r)[k]]
2120
+ [Kt, l(r)[k]]
2117
2121
  ]),
2118
- b("span", xn, x(v.label), 1)
2122
+ y("span", Cn, x(h.label), 1)
2119
2123
  ])
2120
2124
  ]))), 128))
2121
- ])) : M("", !0),
2122
- b("div", Cn, [
2125
+ ])) : E("", !0),
2126
+ y("div", xn, [
2123
2127
  d(I, {
2124
2128
  variant: p.acceptVariant,
2125
2129
  submit: ""
2126
2130
  }, {
2127
- default: m(() => [
2131
+ default: f(() => [
2128
2132
  L(x(l(u)), 1)
2129
2133
  ]),
2130
2134
  _: 1
2131
2135
  }, 8, ["variant"]),
2132
- p.required ? M("", !0) : (o(), f(I, {
2136
+ p.required ? E("", !0) : (o(), m(I, {
2133
2137
  key: 0,
2134
2138
  variant: p.cancelVariant,
2135
- onClick: (v) => w(!1)
2139
+ onClick: (h) => w(!1)
2136
2140
  }, {
2137
- default: m(() => [
2141
+ default: f(() => [
2138
2142
  L(x(l(i)), 1)
2139
2143
  ]),
2140
2144
  _: 2
@@ -2153,8 +2157,8 @@ const wn = {
2153
2157
  height: "1.2em"
2154
2158
  };
2155
2159
  function Tn(t, s) {
2156
- return o(), y("svg", kn, s[0] || (s[0] = [
2157
- b("path", {
2160
+ return o(), b("svg", kn, s[0] || (s[0] = [
2161
+ y("path", {
2158
2162
  fill: "currentColor",
2159
2163
  d: "M7.05 9.293L6.343 10L12 15.657l1.414-1.414L9.172 10l4.242-4.243L12 4.343z"
2160
2164
  }, null, -1)
@@ -2166,21 +2170,21 @@ const Mn = V({ name: "zondicons-cheveron-left", render: Tn }), En = {
2166
2170
  height: "1.2em"
2167
2171
  };
2168
2172
  function Hn(t, s) {
2169
- return o(), y("svg", En, s[0] || (s[0] = [
2170
- b("path", {
2173
+ return o(), b("svg", En, s[0] || (s[0] = [
2174
+ y("path", {
2171
2175
  fill: "currentColor",
2172
2176
  d: "m12.95 10.707l.707-.707L8 4.343L6.586 5.757L10.828 10l-4.242 4.243L8 15.657z"
2173
2177
  }, null, -1)
2174
2178
  ]));
2175
2179
  }
2176
- const Lt = V({ name: "zondicons-cheveron-right", render: Hn }), Vn = {
2180
+ const It = V({ name: "zondicons-cheveron-right", render: Hn }), Vn = {
2177
2181
  viewBox: "0 0 20 20",
2178
2182
  width: "1.2em",
2179
2183
  height: "1.2em"
2180
2184
  };
2181
2185
  function Ln(t, s) {
2182
- return o(), y("svg", Vn, s[0] || (s[0] = [
2183
- b("path", {
2186
+ return o(), b("svg", Vn, s[0] || (s[0] = [
2187
+ y("path", {
2184
2188
  fill: "currentColor",
2185
2189
  d: "M2.93 17.07A10 10 0 1 1 17.07 2.93A10 10 0 0 1 2.93 17.07M9 5v6h2V5zm0 8v2h2v-2z"
2186
2190
  }, null, -1)
@@ -2192,8 +2196,8 @@ const De = V({ name: "zondicons-exclamation-solid", render: Ln }), In = {
2192
2196
  height: "1.2em"
2193
2197
  };
2194
2198
  function zn(t, s) {
2195
- return o(), y("svg", In, s[0] || (s[0] = [
2196
- b("path", {
2199
+ return o(), b("svg", In, s[0] || (s[0] = [
2200
+ y("path", {
2197
2201
  fill: "currentColor",
2198
2202
  d: "M20 19V7H4v12zm0-16a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zm-7 14v-2h5v2zm-3.42-4L5.57 9H8.4l3.3 3.3c.39.39.39 1.03 0 1.42L8.42 17H5.59z"
2199
2203
  }, null, -1)
@@ -2204,35 +2208,35 @@ const Rn = V({ name: "mdi-console", render: zn }), qn = {
2204
2208
  width: "1.2em",
2205
2209
  height: "1.2em"
2206
2210
  };
2207
- function An(t, s) {
2208
- return o(), y("svg", qn, s[0] || (s[0] = [
2209
- b("path", {
2211
+ function Pn(t, s) {
2212
+ return o(), b("svg", qn, s[0] || (s[0] = [
2213
+ y("path", {
2210
2214
  fill: "currentColor",
2211
2215
  d: "M6 6V2c0-1.1.9-2 2-2h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-4v4a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V8c0-1.1.9-2 2-2zm2 0h4a2 2 0 0 1 2 2v4h4V2H8zM2 8v10h10V8z"
2212
2216
  }, null, -1)
2213
2217
  ]));
2214
2218
  }
2215
- const Pn = V({ name: "zondicons-copy", render: An }), Dn = {
2219
+ const An = V({ name: "zondicons-copy", render: Pn }), Dn = {
2216
2220
  viewBox: "0 0 24 24",
2217
2221
  width: "1.2em",
2218
2222
  height: "1.2em"
2219
2223
  };
2220
2224
  function Bn(t, s) {
2221
- return o(), y("svg", Dn, s[0] || (s[0] = [
2222
- b("path", {
2225
+ return o(), b("svg", Dn, s[0] || (s[0] = [
2226
+ y("path", {
2223
2227
  fill: "currentColor",
2224
2228
  d: "M12 2A10 10 0 0 0 2 12c0 4.42 2.87 8.17 6.84 9.5c.5.08.66-.23.66-.5v-1.69c-2.77.6-3.36-1.34-3.36-1.34c-.46-1.16-1.11-1.47-1.11-1.47c-.91-.62.07-.6.07-.6c1 .07 1.53 1.03 1.53 1.03c.87 1.52 2.34 1.07 2.91.83c.09-.65.35-1.09.63-1.34c-2.22-.25-4.55-1.11-4.55-4.92c0-1.11.38-2 1.03-2.71c-.1-.25-.45-1.29.1-2.64c0 0 .84-.27 2.75 1.02c.79-.22 1.65-.33 2.5-.33s1.71.11 2.5.33c1.91-1.29 2.75-1.02 2.75-1.02c.55 1.35.2 2.39.1 2.64c.65.71 1.03 1.6 1.03 2.71c0 3.82-2.34 4.66-4.57 4.91c.36.31.69.92.69 1.85V21c0 .27.16.59.67.5C19.14 20.16 22 16.42 22 12A10 10 0 0 0 12 2"
2225
2229
  }, null, -1)
2226
2230
  ]));
2227
2231
  }
2228
- const jn = V({ name: "mdi-github", render: Bn }), Fn = { class: "flex" }, Un = { class: "sr-only" }, On = /* @__PURE__ */ h({
2232
+ const jn = V({ name: "mdi-github", render: Bn }), Fn = { class: "flex" }, Un = { class: "sr-only" }, On = /* @__PURE__ */ g({
2229
2233
  __name: "ErrorReportModalButtons",
2230
2234
  props: {
2231
2235
  report: {}
2232
2236
  },
2233
2237
  setup(t) {
2234
2238
  const s = t, e = c(() => s.report.description ? `${s.report.title}: ${s.report.description}` : s.report.title), r = c(() => {
2235
- if (!P.sourceUrl)
2239
+ if (!A.sourceUrl)
2236
2240
  return !1;
2237
2241
  const a = encodeURIComponent(e.value), u = encodeURIComponent(
2238
2242
  [
@@ -2242,23 +2246,23 @@ const jn = V({ name: "mdi-github", render: Bn }), Fn = { class: "flex" }, Un = {
2242
2246
  "```",
2243
2247
  ls(
2244
2248
  s.report.details ?? "Details missing from report",
2245
- 1800 - a.length - P.sourceUrl.length
2249
+ 1800 - a.length - A.sourceUrl.length
2246
2250
  ).trim(),
2247
2251
  "```"
2248
2252
  ].join(`
2249
2253
  `)
2250
2254
  );
2251
- return `${P.sourceUrl}/issues/new?title=${a}&body=${u}`;
2255
+ return `${A.sourceUrl}/issues/new?title=${a}&body=${u}`;
2252
2256
  }), n = c(() => se(
2253
2257
  [
2254
2258
  {
2255
2259
  id: "clipboard",
2256
2260
  description: "Copy to clipboard",
2257
- iconComponent: Pn,
2261
+ iconComponent: An,
2258
2262
  async click() {
2259
2263
  await navigator.clipboard.writeText(`${e.value}
2260
2264
 
2261
- ${s.report.details}`), A.toast(S("errors.copiedToClipboard", "Debug information copied to clipboard"));
2265
+ ${s.report.details}`), P.toast(S("errors.copiedToClipboard", "Debug information copied to clipboard"));
2262
2266
  }
2263
2267
  },
2264
2268
  {
@@ -2267,7 +2271,7 @@ ${s.report.details}`), A.toast(S("errors.copiedToClipboard", "Debug information
2267
2271
  iconComponent: Rn,
2268
2272
  click() {
2269
2273
  const a = s.report.error ?? s.report;
2270
- window.error = a, console.error(a), A.toast(
2274
+ window.error = a, console.error(a), P.toast(
2271
2275
  S(
2272
2276
  "errors.addedToConsole",
2273
2277
  "You can now use the **error** variable in the console"
@@ -2285,8 +2289,8 @@ ${s.report.details}`), A.toast(S("errors.copiedToClipboard", "Debug information
2285
2289
  });
2286
2290
  }
2287
2291
  ));
2288
- return (a, u) => (o(), y("div", Fn, [
2289
- (o(!0), y(D, null, U(n.value, (i) => $(a.$slots, "default", H({ ref_for: !0 }, i), () => [
2292
+ return (a, u) => (o(), b("div", Fn, [
2293
+ (o(!0), b(D, null, U(n.value, (i) => $(a.$slots, "default", H({ ref_for: !0 }, i), () => [
2290
2294
  d(I, {
2291
2295
  size: "icon",
2292
2296
  variant: "ghost",
@@ -2295,9 +2299,9 @@ ${s.report.details}`), A.toast(S("errors.copiedToClipboard", "Debug information
2295
2299
  title: a.$td(`errors.report_${i.id}`, i.description),
2296
2300
  onClick: i.click
2297
2301
  }, {
2298
- default: m(() => [
2299
- b("span", Un, x(a.$td(`errors.report_${i.id}`, i.description)), 1),
2300
- (o(), f(ee(i.iconComponent), {
2302
+ default: f(() => [
2303
+ y("span", Un, x(a.$td(`errors.report_${i.id}`, i.description)), 1),
2304
+ (o(), m(ee(i.iconComponent), {
2301
2305
  class: "size-4",
2302
2306
  "aria-hidden": "true"
2303
2307
  }))
@@ -2307,7 +2311,7 @@ ${s.report.details}`), A.toast(S("errors.copiedToClipboard", "Debug information
2307
2311
  ])), 256))
2308
2312
  ]));
2309
2313
  }
2310
- }), Nn = /* @__PURE__ */ h({
2314
+ }), Nn = /* @__PURE__ */ g({
2311
2315
  __name: "ErrorReportModalTitle",
2312
2316
  props: {
2313
2317
  report: {},
@@ -2316,7 +2320,7 @@ ${s.report.details}`), A.toast(S("errors.copiedToClipboard", "Debug information
2316
2320
  },
2317
2321
  setup(t) {
2318
2322
  const s = c(() => !t.totalReports || t.totalReports <= 1 ? t.report.title : `${t.report.title} (${t.currentReport}/${t.totalReports})`);
2319
- return (e, r) => (o(), f(z, {
2323
+ return (e, r) => (o(), m(z, {
2320
2324
  text: s.value,
2321
2325
  inline: ""
2322
2326
  }, null, 8, ["text"]));
@@ -2340,7 +2344,7 @@ function Wn(t) {
2340
2344
  const Kn = { class: "px-4 pt-5 pb-4" }, Qn = { class: "flex justify-between gap-4" }, Jn = { class: "flex items-center gap-2" }, Zn = {
2341
2345
  key: 0,
2342
2346
  class: "flex gap-0.5"
2343
- }, Xn = { class: "-mt-2 max-h-[75vh] overflow-auto bg-red-800/10" }, Yn = ["textContent"], Gn = /* @__PURE__ */ h({
2347
+ }, Xn = { class: "-mt-2 max-h-[75vh] overflow-auto bg-red-800/10" }, Yn = ["textContent"], Gn = /* @__PURE__ */ g({
2344
2348
  __name: "ErrorReportModal",
2345
2349
  props: {
2346
2350
  report: {},
@@ -2348,17 +2352,17 @@ const Kn = { class: "px-4 pt-5 pb-4" }, Qn = { class: "flex justify-between gap-
2348
2352
  },
2349
2353
  setup(t, { expose: s }) {
2350
2354
  const e = t, { activeReportIndex: r, details: n, nextReportText: a, previousReportText: u, activeReport: i } = Wn(e);
2351
- return s(), (p, g) => (o(), f(ne, {
2355
+ return s(), (p, v) => (o(), m(ne, {
2352
2356
  title: p.$td("errors.report", "Error report"),
2353
2357
  "title-hidden": "",
2354
2358
  "close-hidden": "",
2355
2359
  class: "p-0",
2356
2360
  "wrapper-class": "sm:w-auto sm:min-w-lg sm:max-w-[80vw]"
2357
2361
  }, {
2358
- default: m(() => [
2359
- b("div", Kn, [
2360
- b("h2", Qn, [
2361
- b("div", Jn, [
2362
+ default: f(() => [
2363
+ y("div", Kn, [
2364
+ y("h2", Qn, [
2365
+ y("div", Jn, [
2362
2366
  d(l(De), { class: "size-5 text-red-600" }),
2363
2367
  d(Nn, {
2364
2368
  class: "text-lg leading-6 font-semibold text-gray-900",
@@ -2366,16 +2370,16 @@ const Kn = { class: "px-4 pt-5 pb-4" }, Qn = { class: "flex justify-between gap-
2366
2370
  "current-report": l(r) + 1,
2367
2371
  "total-reports": p.reports.length
2368
2372
  }, null, 8, ["report", "current-report", "total-reports"]),
2369
- p.reports.length > 1 ? (o(), y("span", Zn, [
2373
+ p.reports.length > 1 ? (o(), b("span", Zn, [
2370
2374
  d(I, {
2371
2375
  size: "icon",
2372
2376
  variant: "ghost",
2373
2377
  disabled: l(r) === 0,
2374
2378
  "aria-label": l(u),
2375
2379
  title: l(u),
2376
- onClick: g[0] || (g[0] = (w) => r.value--)
2380
+ onClick: v[0] || (v[0] = (w) => r.value--)
2377
2381
  }, {
2378
- default: m(() => [
2382
+ default: f(() => [
2379
2383
  d(l(Mn), { class: "size-4" })
2380
2384
  ]),
2381
2385
  _: 1
@@ -2386,28 +2390,28 @@ const Kn = { class: "px-4 pt-5 pb-4" }, Qn = { class: "flex justify-between gap-
2386
2390
  disabled: l(r) === p.reports.length - 1,
2387
2391
  "aria-label": l(a),
2388
2392
  title: l(a),
2389
- onClick: g[1] || (g[1] = (w) => r.value++)
2393
+ onClick: v[1] || (v[1] = (w) => r.value++)
2390
2394
  }, {
2391
- default: m(() => [
2392
- d(l(Lt), { class: "size-4" })
2395
+ default: f(() => [
2396
+ d(l(It), { class: "size-4" })
2393
2397
  ]),
2394
2398
  _: 1
2395
2399
  }, 8, ["disabled", "aria-label", "title"])
2396
- ])) : M("", !0)
2400
+ ])) : E("", !0)
2397
2401
  ]),
2398
2402
  d(On, {
2399
2403
  report: l(i),
2400
2404
  class: "gap-0.5"
2401
2405
  }, null, 8, ["report"])
2402
2406
  ]),
2403
- l(i).description ? (o(), f(z, {
2407
+ l(i).description ? (o(), m(z, {
2404
2408
  key: 0,
2405
2409
  text: l(i).description,
2406
2410
  class: "text-gray-600"
2407
- }, null, 8, ["text"])) : M("", !0)
2411
+ }, null, 8, ["text"])) : E("", !0)
2408
2412
  ]),
2409
- b("div", Xn, [
2410
- b("pre", {
2413
+ y("div", Xn, [
2414
+ y("pre", {
2411
2415
  class: "p-4 text-xs text-red-800",
2412
2416
  textContent: x(l(n))
2413
2417
  }, null, 8, Yn)
@@ -2422,17 +2426,17 @@ const Kn = { class: "px-4 pt-5 pb-4" }, Qn = { class: "flex justify-between gap-
2422
2426
  height: "1.2em"
2423
2427
  };
2424
2428
  function ta(t, s) {
2425
- return o(), y("svg", ea, s[0] || (s[0] = [
2426
- b("path", {
2429
+ return o(), b("svg", ea, s[0] || (s[0] = [
2430
+ y("path", {
2427
2431
  fill: "currentColor",
2428
2432
  d: "M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z",
2429
2433
  opacity: ".25"
2430
2434
  }, null, -1),
2431
- b("path", {
2435
+ y("path", {
2432
2436
  fill: "currentColor",
2433
2437
  d: "M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z"
2434
2438
  }, [
2435
- b("animateTransform", {
2439
+ y("animateTransform", {
2436
2440
  attributeName: "transform",
2437
2441
  dur: "0.75s",
2438
2442
  repeatCount: "indefinite",
@@ -2442,29 +2446,39 @@ function ta(t, s) {
2442
2446
  ], -1)
2443
2447
  ]));
2444
2448
  }
2445
- const sa = V({ name: "svg-spinners-90-ring-with-bg", render: ta }), ra = { class: "mt-1 h-2 w-full overflow-hidden rounded-full bg-gray-200" }, na = { class: "sr-only" }, aa = /* @__PURE__ */ h({
2449
+ const sa = V({ name: "svg-spinners-90-ring-with-bg", render: ta }), ra = { class: "relative mt-1 h-2 w-full overflow-hidden rounded-full bg-gray-200" }, na = { class: "sr-only" }, aa = /* @__PURE__ */ g({
2446
2450
  __name: "ProgressBar",
2447
2451
  props: {
2448
2452
  filledClass: {},
2453
+ overflowClass: {},
2449
2454
  progress: {},
2450
2455
  job: {}
2451
2456
  },
2452
2457
  setup(t) {
2453
2458
  let s;
2454
- const e = N(0), r = c(() => E("size-full transition-transform duration-500 rounded-r-full ease-linear bg-primary-600", t.filledClass)), n = c(() => typeof t.progress == "number" ? t.progress : e.value);
2459
+ const e = N(0), r = c(() => T("size-full transition-transform duration-500 rounded-r-full ease-linear bg-primary-600", t.filledClass)), n = c(() => T(
2460
+ "absolute inset-y-0 right-0 size-full rounded-r-full border-l-3 border-gray-200",
2461
+ "bg-primary-900 transition-[width] duration-500 ease-linear",
2462
+ t.overflowClass
2463
+ )), a = c(() => typeof t.progress == "number" ? t.progress : e.value), u = c(() => a.value > 1 ? 100 * ((a.value - 1) / a.value) : null);
2455
2464
  return Le(
2456
2465
  () => t.job,
2457
2466
  () => {
2458
- s && s(), e.value = t.job ? t.job.progress : 0, s = t.job && t.job.listeners.add({ onUpdated: (a) => e.value = a });
2467
+ s && s(), e.value = t.job ? t.job.progress : 0, s = t.job && t.job.listeners.add({ onUpdated: (i) => e.value = i });
2459
2468
  },
2460
2469
  { immediate: !0 }
2461
- ), $e(() => s && s()), (a, u) => (o(), y("div", ra, [
2462
- b("div", {
2463
- class: C(r.value),
2464
- style: Kt(`transform:translateX(-${(1 - n.value) * 100}%)`)
2470
+ ), $e(() => s && s()), (i, p) => (o(), b("div", ra, [
2471
+ y("div", {
2472
+ class: _(r.value),
2473
+ style: Oe(`transform:translateX(-${(1 - a.value) * 100}%)`)
2465
2474
  }, null, 6),
2466
- b("span", na, x(a.$td("ui.progress", "{progress}% complete", {
2467
- progress: n.value * 100
2475
+ u.value ? (o(), b("div", {
2476
+ key: 0,
2477
+ class: _(n.value),
2478
+ style: Oe({ width: `${u.value}%` })
2479
+ }, null, 6)) : E("", !0),
2480
+ y("span", na, x(i.$td("ui.progress", "{progress}% complete", {
2481
+ progress: a.value * 100
2468
2482
  })), 1)
2469
2483
  ]));
2470
2484
  }
@@ -2475,7 +2489,7 @@ function la(t) {
2475
2489
  ), r = c(() => typeof t.progress == "number" || !!t.job), n = c(() => !t.title);
2476
2490
  return { renderedTitle: s, renderedMessage: e, titleHidden: n, showProgress: r };
2477
2491
  }
2478
- const oa = /* @__PURE__ */ h({
2492
+ const oa = /* @__PURE__ */ g({
2479
2493
  __name: "LoadingModal",
2480
2494
  props: {
2481
2495
  title: {},
@@ -2485,20 +2499,20 @@ const oa = /* @__PURE__ */ h({
2485
2499
  },
2486
2500
  setup(t, { expose: s }) {
2487
2501
  const e = t, { renderedTitle: r, renderedMessage: n, titleHidden: a, showProgress: u } = la(e);
2488
- return s(), (i, p) => (o(), f(ne, {
2502
+ return s(), (i, p) => (o(), m(ne, {
2489
2503
  persistent: "",
2490
- class: C(["flex", { "flex-col-reverse": l(u), "items-center justify-center gap-2": !l(u) }]),
2491
2504
  "wrapper-class": "w-auto",
2492
2505
  title: l(r),
2493
- "title-hidden": l(a)
2506
+ "title-hidden": l(a),
2507
+ class: _({ "flex-col-reverse": l(u), "flex-row items-center justify-center gap-2": !l(u) })
2494
2508
  }, {
2495
- default: m(() => [
2496
- l(u) ? (o(), f(aa, {
2509
+ default: f(() => [
2510
+ l(u) ? (o(), m(aa, {
2497
2511
  key: 0,
2498
2512
  progress: i.progress,
2499
2513
  job: i.job,
2500
2514
  class: "min-w-[min(400px,80vw)]"
2501
- }, null, 8, ["progress", "job"])) : (o(), f(l(sa), {
2515
+ }, null, 8, ["progress", "job"])) : (o(), m(l(sa), {
2502
2516
  key: 1,
2503
2517
  class: "text-primary-600 mr-1 size-6"
2504
2518
  })),
@@ -2507,7 +2521,7 @@ const oa = /* @__PURE__ */ h({
2507
2521
  _: 1
2508
2522
  }, 8, ["title", "title-hidden", "class"]));
2509
2523
  }
2510
- }), Be = /* @__PURE__ */ h({
2524
+ }), Be = /* @__PURE__ */ g({
2511
2525
  __name: "HeadlessInput",
2512
2526
  props: {
2513
2527
  name: {},
@@ -2537,27 +2551,27 @@ const oa = /* @__PURE__ */ h({
2537
2551
  r("update:modelValue", i);
2538
2552
  }
2539
2553
  };
2540
- return pe("input", u), s(u), (i, p) => (o(), f(ee(i.as), null, {
2541
- default: m(() => [
2554
+ return pe("input", u), s(u), (i, p) => (o(), m(ee(i.as), null, {
2555
+ default: f(() => [
2542
2556
  $(i.$slots, "default")
2543
2557
  ]),
2544
2558
  _: 3
2545
2559
  }));
2546
2560
  }
2547
- }), ia = ["for"], ye = /* @__PURE__ */ h({
2561
+ }), ia = ["for"], ye = /* @__PURE__ */ g({
2548
2562
  __name: "HeadlessInputLabel",
2549
2563
  setup(t) {
2550
2564
  const s = R("input", "<HeadlessInputLabel> must be a child of a <HeadlessInput>"), e = Ie(), r = c(() => !!(s.label || e.default));
2551
- return (n, a) => r.value ? (o(), y("label", {
2565
+ return (n, a) => r.value ? (o(), b("label", {
2552
2566
  key: 0,
2553
2567
  for: l(s).id
2554
2568
  }, [
2555
2569
  $(n.$slots, "default", {}, () => [
2556
2570
  L(x(l(s).label), 1)
2557
2571
  ])
2558
- ], 8, ia)) : M("", !0);
2572
+ ], 8, ia)) : E("", !0);
2559
2573
  }
2560
- }), ua = ["id", "name", "checked", "type", "required", "aria-invalid", "aria-describedby"], It = /* @__PURE__ */ h({
2574
+ }), ua = ["id", "name", "checked", "type", "required", "aria-invalid", "aria-describedby"], zt = /* @__PURE__ */ g({
2561
2575
  __name: "HeadlessInputInput",
2562
2576
  props: {
2563
2577
  type: {}
@@ -2573,9 +2587,9 @@ const oa = /* @__PURE__ */ h({
2573
2587
  return !!a.value;
2574
2588
  });
2575
2589
  function p() {
2576
- s.value && e.update(g());
2590
+ s.value && e.update(v());
2577
2591
  }
2578
- function g() {
2592
+ function v() {
2579
2593
  if (!s.value)
2580
2594
  return null;
2581
2595
  switch (u.value) {
@@ -2584,7 +2598,7 @@ const oa = /* @__PURE__ */ h({
2584
2598
  case "date":
2585
2599
  case "time":
2586
2600
  case "datetime-local":
2587
- return new Date(Math.round(s.value.valueAsNumber / 6e4) * 6e4 + Ze);
2601
+ return new Date(Math.round(s.value.valueAsNumber / 6e4) * 6e4 + Xe);
2588
2602
  case "number":
2589
2603
  return s.value.valueAsNumber;
2590
2604
  default:
@@ -2598,12 +2612,12 @@ const oa = /* @__PURE__ */ h({
2598
2612
  if (s.value) {
2599
2613
  if (["date", "time", "datetime-local"].includes(u.value) && a.value instanceof Date) {
2600
2614
  const w = Math.round(a.value.getTime() / 6e4) * 6e4;
2601
- s.value.valueAsNumber = w - Ze, e.update(new Date(w));
2615
+ s.value.valueAsNumber = w - Xe, e.update(new Date(w));
2602
2616
  return;
2603
2617
  }
2604
2618
  s.value.value = a.value ?? null;
2605
2619
  }
2606
- }), (w, v) => (o(), y("input", {
2620
+ }), (w, h) => (o(), b("input", {
2607
2621
  id: l(e).id,
2608
2622
  ref: "$inputRef",
2609
2623
  name: n.value,
@@ -2615,7 +2629,7 @@ const oa = /* @__PURE__ */ h({
2615
2629
  onInput: p
2616
2630
  }, null, 40, ua));
2617
2631
  }
2618
- }), zt = /* @__PURE__ */ h({
2632
+ }), Rt = /* @__PURE__ */ g({
2619
2633
  inheritAttrs: !1,
2620
2634
  __name: "HeadlessInputDescription",
2621
2635
  setup(t) {
@@ -2626,25 +2640,25 @@ const oa = /* @__PURE__ */ h({
2626
2640
  return (n, a) => $(n.$slots, "default", {
2627
2641
  id: `${l(s).id}-description`
2628
2642
  }, () => [
2629
- r.value ? (o(), f(z, H({ key: 0 }, n.$attrs, {
2643
+ r.value ? (o(), m(z, H({ key: 0 }, n.$attrs, {
2630
2644
  id: `${l(s).id}-description`,
2631
2645
  text: e.value
2632
- }), null, 16, ["id", "text"])) : M("", !0)
2646
+ }), null, 16, ["id", "text"])) : E("", !0)
2633
2647
  ]);
2634
2648
  }
2635
- }), ca = ["id"], we = /* @__PURE__ */ h({
2649
+ }), ca = ["id"], we = /* @__PURE__ */ g({
2636
2650
  __name: "HeadlessInputError",
2637
2651
  setup(t) {
2638
2652
  const s = R("input", "<HeadlessInputError> must be a child of a <HeadlessInput>"), e = c(() => s.errors ? S(`errors.${s.errors[0]}`, `Error: ${s.errors[0]}`) : null);
2639
- return (r, n) => e.value ? (o(), y("p", {
2653
+ return (r, n) => e.value ? (o(), b("p", {
2640
2654
  key: 0,
2641
2655
  id: `${l(s).id}-error`
2642
- }, x(e.value), 9, ca)) : M("", !0);
2656
+ }, x(e.value), 9, ca)) : E("", !0);
2643
2657
  }
2644
2658
  }), da = {
2645
2659
  key: 0,
2646
2660
  class: "pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3"
2647
- }, pa = /* @__PURE__ */ h({
2661
+ }, pa = /* @__PURE__ */ g({
2648
2662
  inheritAttrs: !1,
2649
2663
  __name: "Input",
2650
2664
  props: {
@@ -2653,65 +2667,71 @@ const oa = /* @__PURE__ */ h({
2653
2667
  description: {},
2654
2668
  modelValue: {},
2655
2669
  inputClass: {},
2656
- wrapperClass: {}
2670
+ wrapperClass: {},
2671
+ descriptionClass: {},
2672
+ errorClass: {}
2657
2673
  },
2658
2674
  emits: ["update:modelValue"],
2659
2675
  setup(t) {
2660
- const s = K(t, ["label", "inputClass", "wrapperClass"]), e = te("$inputRef"), [r, n] = Ae(), a = c(() => E("relative rounded-md shadow-2xs", { "mt-1": t.label }, t.wrapperClass)), u = c(() => {
2661
- var i, p, g;
2662
- return E(
2676
+ const s = K(t, ["label", "inputClass", "wrapperClass", "descriptionClass", "errorClass"]), e = te("$inputRef"), [r, n] = Pe(), a = c(() => T("relative rounded-md shadow-2xs", { "mt-1": t.label }, t.wrapperClass)), u = c(() => T("mt-2 text-sm text-gray-600", t.descriptionClass)), i = c(() => T("mt-2 text-sm text-red-600", t.errorClass)), p = c(() => {
2677
+ var v, w, h;
2678
+ return T(
2663
2679
  // eslint-disable-next-line vue/max-len
2664
2680
  "block w-full rounded-md border-0 py-1.5 ring-1 ring-inset focus:ring-2 focus:ring-inset sm:text-sm sm:leading-6",
2665
2681
  {
2666
- "focus:ring-primary-600": !((i = e.value) != null && i.errors),
2667
- "text-gray-900 shadow-2xs ring-gray-900/10 placeholder:text-gray-400": !((p = e.value) != null && p.errors),
2668
- "pr-10 text-red-900 ring-red-900/10 placeholder:text-red-300 focus:ring-red-500": (g = e.value) == null ? void 0 : g.errors
2682
+ "focus:ring-primary-600": !((v = e.value) != null && v.errors),
2683
+ "text-gray-900 shadow-2xs ring-gray-900/10 placeholder:text-gray-400": !((w = e.value) != null && w.errors),
2684
+ "pr-10 text-red-900 ring-red-900/10 placeholder:text-red-300 focus:ring-red-500": (h = e.value) == null ? void 0 : h.errors
2669
2685
  },
2670
2686
  t.inputClass
2671
2687
  );
2672
2688
  });
2673
- return (i, p) => (o(), f(Be, H({
2689
+ return (v, w) => (o(), m(Be, H({
2674
2690
  ref: "$inputRef",
2675
- label: i.label,
2691
+ label: v.label,
2676
2692
  class: l(n)
2677
2693
  }, s, {
2678
- "onUpdate:modelValue": p[0] || (p[0] = (g) => i.$emit("update:modelValue", g))
2694
+ "onUpdate:modelValue": w[0] || (w[0] = (h) => v.$emit("update:modelValue", h))
2679
2695
  }), {
2680
- default: m(() => {
2681
- var g;
2696
+ default: f(() => {
2697
+ var h;
2682
2698
  return [
2683
2699
  d(ye, { class: "block text-sm leading-6 font-medium text-gray-900" }),
2684
- b("div", {
2685
- class: C(a.value)
2700
+ y("div", {
2701
+ class: _(a.value)
2686
2702
  }, [
2687
- d(It, H(l(r), { class: u.value }), null, 16, ["class"]),
2688
- (g = e.value) != null && g.errors ? (o(), y("div", da, [
2703
+ d(zt, H(l(r), { class: p.value }), null, 16, ["class"]),
2704
+ (h = e.value) != null && h.errors ? (o(), b("div", da, [
2689
2705
  d(l(De), { class: "size-5 text-red-500" })
2690
- ])) : M("", !0)
2706
+ ])) : E("", !0)
2691
2707
  ], 2),
2692
- d(zt, { class: "mt-2 text-sm text-gray-600" }),
2693
- d(we, { class: "mt-2 text-sm text-red-600" })
2708
+ d(Rt, {
2709
+ class: _(u.value)
2710
+ }, null, 8, ["class"]),
2711
+ d(we, {
2712
+ class: _(i.value)
2713
+ }, null, 8, ["class"])
2694
2714
  ];
2695
2715
  }),
2696
2716
  _: 1
2697
2717
  }, 16, ["label", "class"]));
2698
2718
  }
2699
2719
  });
2700
- function Dl(t, s = {}) {
2720
+ function Al(t, s = {}) {
2701
2721
  return {
2702
2722
  default: t,
2703
2723
  type: "boolean",
2704
2724
  rules: s.rules
2705
2725
  };
2706
2726
  }
2707
- function Bl(t, s = {}) {
2727
+ function Dl(t, s = {}) {
2708
2728
  return {
2709
2729
  default: t,
2710
2730
  type: "date",
2711
2731
  rules: s.rules
2712
2732
  };
2713
2733
  }
2714
- function jl(t, s, e = {}) {
2734
+ function Bl(t, s, e = {}) {
2715
2735
  return {
2716
2736
  default: s,
2717
2737
  type: "enum",
@@ -2719,21 +2739,21 @@ function jl(t, s, e = {}) {
2719
2739
  values: t
2720
2740
  };
2721
2741
  }
2722
- function Fl(t) {
2742
+ function jl(t) {
2723
2743
  return {
2724
2744
  default: t,
2725
2745
  type: "boolean",
2726
2746
  rules: "required"
2727
2747
  };
2728
2748
  }
2729
- function Ul(t) {
2749
+ function Fl(t) {
2730
2750
  return {
2731
2751
  default: t,
2732
2752
  type: "date",
2733
2753
  rules: "required"
2734
2754
  };
2735
2755
  }
2736
- function Ol(t, s) {
2756
+ function Ul(t, s) {
2737
2757
  return {
2738
2758
  default: s,
2739
2759
  type: "enum",
@@ -2741,55 +2761,55 @@ function Ol(t, s) {
2741
2761
  values: t
2742
2762
  };
2743
2763
  }
2744
- function Nl(t) {
2764
+ function Ol(t) {
2745
2765
  return {
2746
2766
  default: t,
2747
2767
  type: "number",
2748
2768
  rules: "required"
2749
2769
  };
2750
2770
  }
2751
- function Wl(t) {
2771
+ function Nl(t) {
2752
2772
  return {
2753
2773
  default: t,
2754
2774
  type: "object",
2755
2775
  rules: "required"
2756
2776
  };
2757
2777
  }
2758
- function ma(t) {
2778
+ function fa(t) {
2759
2779
  return {
2760
2780
  default: t,
2761
2781
  type: "string",
2762
2782
  rules: "required"
2763
2783
  };
2764
2784
  }
2765
- function Kl(t, s = {}) {
2785
+ function Wl(t, s = {}) {
2766
2786
  return {
2767
2787
  default: t,
2768
2788
  type: "number",
2769
2789
  rules: s.rules
2770
2790
  };
2771
2791
  }
2772
- function Ql(t, s = {}) {
2792
+ function Kl(t, s = {}) {
2773
2793
  return {
2774
2794
  default: t,
2775
2795
  type: "object",
2776
2796
  rules: s.rules
2777
2797
  };
2778
2798
  }
2779
- function Jl(t, s = {}) {
2799
+ function Ql(t, s = {}) {
2780
2800
  return {
2781
2801
  default: t,
2782
2802
  type: "string",
2783
2803
  rules: s.rules
2784
2804
  };
2785
2805
  }
2786
- function fa(t) {
2787
- const s = ft({
2788
- draft: ma(t.defaultValue ?? "")
2806
+ function ma(t) {
2807
+ const s = ht({
2808
+ draft: fa(t.defaultValue ?? "")
2789
2809
  }), e = c(() => t.title ?? t.message), r = c(() => t.title ? t.message : null), n = c(() => t.acceptText ?? S("ui.accept", "Ok")), a = c(() => t.cancelText ?? S("ui.cancel", "Cancel"));
2790
2810
  return { form: s, renderedTitle: e, renderedMessage: r, renderedAcceptText: n, renderedCancelText: a };
2791
2811
  }
2792
- const ha = { class: "mt-4 flex flex-row-reverse gap-2" }, ga = /* @__PURE__ */ h({
2812
+ const ha = { class: "mt-4 flex flex-row-reverse gap-2" }, ga = /* @__PURE__ */ g({
2793
2813
  __name: "PromptModal",
2794
2814
  props: {
2795
2815
  title: {},
@@ -2804,42 +2824,42 @@ const ha = { class: "mt-4 flex flex-row-reverse gap-2" }, ga = /* @__PURE__ */ h
2804
2824
  },
2805
2825
  emits: ["close"],
2806
2826
  setup(t, { expose: s }) {
2807
- const e = K(t, ["cancelVariant"]), { form: r, renderedTitle: n, renderedMessage: a, renderedAcceptText: u, renderedCancelText: i } = fa(e);
2808
- return s(), (p, g) => (o(), f(ne, {
2827
+ const e = K(t, ["cancelVariant"]), { form: r, renderedTitle: n, renderedMessage: a, renderedAcceptText: u, renderedCancelText: i } = ma(e);
2828
+ return s(), (p, v) => (o(), m(ne, {
2809
2829
  title: l(n),
2810
2830
  persistent: ""
2811
2831
  }, {
2812
- default: m(({ close: w }) => [
2813
- d(Vt, {
2832
+ default: f(({ close: w }) => [
2833
+ d(Lt, {
2814
2834
  form: l(r),
2815
- onSubmit: (v) => w(l(r).draft)
2835
+ onSubmit: (h) => w(l(r).draft)
2816
2836
  }, {
2817
- default: m(() => [
2818
- l(a) ? (o(), f(z, {
2837
+ default: f(() => [
2838
+ l(a) ? (o(), m(z, {
2819
2839
  key: 0,
2820
2840
  text: l(a)
2821
- }, null, 8, ["text"])) : M("", !0),
2841
+ }, null, 8, ["text"])) : E("", !0),
2822
2842
  d(pa, {
2823
2843
  name: "draft",
2824
2844
  class: "mt-2",
2825
2845
  placeholder: p.placeholder,
2826
2846
  label: p.label
2827
2847
  }, null, 8, ["placeholder", "label"]),
2828
- b("div", ha, [
2848
+ y("div", ha, [
2829
2849
  d(I, {
2830
2850
  variant: p.acceptVariant,
2831
2851
  submit: ""
2832
2852
  }, {
2833
- default: m(() => [
2853
+ default: f(() => [
2834
2854
  L(x(l(u)), 1)
2835
2855
  ]),
2836
2856
  _: 1
2837
2857
  }, 8, ["variant"]),
2838
2858
  d(I, {
2839
2859
  variant: p.cancelVariant,
2840
- onClick: (v) => w()
2860
+ onClick: (h) => w()
2841
2861
  }, {
2842
- default: m(() => [
2862
+ default: f(() => [
2843
2863
  L(x(l(i)), 1)
2844
2864
  ]),
2845
2865
  _: 2
@@ -2858,8 +2878,8 @@ const ha = { class: "mt-4 flex flex-row-reverse gap-2" }, ga = /* @__PURE__ */ h
2858
2878
  height: "1.2em"
2859
2879
  };
2860
2880
  function ba(t, s) {
2861
- return o(), y("svg", va, s[0] || (s[0] = [
2862
- b("path", {
2881
+ return o(), b("svg", va, s[0] || (s[0] = [
2882
+ y("path", {
2863
2883
  fill: "currentColor",
2864
2884
  d: "M12 21q-1.625 0-3.012-.8T6.8 18H4v-2h2.1q-.075-.5-.088-1T6 14H4v-2h2q0-.5.012-1t.088-1H4V8h2.8q.35-.575.788-1.075T8.6 6.05L7 4.4L8.4 3l2.15 2.15q.7-.225 1.425-.225t1.425.225L15.6 3L17 4.4l-1.65 1.65q.575.375 1.038.862T17.2 8H20v2h-2.1q.075.5.088 1T18 12h2v2h-2q0 .5-.013 1t-.087 1H20v2h-2.8q-.8 1.4-2.187 2.2T12 21m-2-5h4v-2h-4zm0-4h4v-2h-4z"
2865
2885
  }, null, -1)
@@ -2871,44 +2891,44 @@ const ya = V({ name: "material-symbols-bug-report", render: ba }), wa = {
2871
2891
  height: "1.2em"
2872
2892
  };
2873
2893
  function $a(t, s) {
2874
- return o(), y("svg", wa, s[0] || (s[0] = [
2875
- b("path", {
2894
+ return o(), b("svg", wa, s[0] || (s[0] = [
2895
+ y("path", {
2876
2896
  fill: "currentColor",
2877
2897
  d: "M7 21q-.825 0-1.412-.587T5 19V6q-.425 0-.712-.288T4 5t.288-.712T5 4h4q0-.425.288-.712T10 3h4q.425 0 .713.288T15 4h4q.425 0 .713.288T20 5t-.288.713T19 6v13q0 .825-.587 1.413T17 21zm5-7.1l1.9 1.9q.275.275.7.275t.7-.275t.275-.7t-.275-.7l-1.9-1.9l1.9-1.9q.275-.275.275-.7t-.275-.7t-.7-.275t-.7.275L12 11.1l-1.9-1.9q-.275-.275-.7-.275t-.7.275t-.275.7t.275.7l1.9 1.9l-1.9 1.9q-.275.275-.275.7t.275.7t.7.275t.7-.275z"
2878
2898
  }, null, -1)
2879
2899
  ]));
2880
2900
  }
2881
- const _a = V({ name: "material-symbols-delete-forever-rounded", render: $a }), xa = {
2901
+ const _a = V({ name: "material-symbols-delete-forever-rounded", render: $a }), Ca = {
2882
2902
  viewBox: "0 0 24 24",
2883
2903
  width: "1.2em",
2884
2904
  height: "1.2em"
2885
2905
  };
2886
- function Ca(t, s) {
2887
- return o(), y("svg", xa, s[0] || (s[0] = [
2888
- b("path", {
2906
+ function xa(t, s) {
2907
+ return o(), b("svg", Ca, s[0] || (s[0] = [
2908
+ y("path", {
2889
2909
  fill: "currentColor",
2890
2910
  d: "M11.25 13.5q.95 0 1.6-.65t.65-1.6t-.65-1.6t-1.6-.65t-1.6.65t-.65 1.6t.65 1.6t1.6.65m4.825 4l-2.625-2.625q-.5.325-1.062.475t-1.138.15q-1.775 0-3.012-1.237T7 11.25t1.238-3.012T11.25 7t3.013 1.238T15.5 11.25q0 .575-.162 1.138t-.488 1.062l2.65 2.65zM5 21q-.825 0-1.412-.587T3 19v-4h2v4h4v2zm10 0v-2h4v-4h2v4q0 .825-.587 1.413T19 21zM3 9V5q0-.825.588-1.412T5 3h4v2H5v4zm16 0V5h-4V3h4q.825 0 1.413.588T21 5v4z"
2891
2911
  }, null, -1)
2892
2912
  ]));
2893
2913
  }
2894
- const Sa = V({ name: "material-symbols-frame-inspect", render: Ca }), ka = {
2914
+ const Sa = V({ name: "material-symbols-frame-inspect", render: xa }), ka = {
2895
2915
  viewBox: "0 0 24 24",
2896
2916
  width: "1.2em",
2897
2917
  height: "1.2em"
2898
2918
  };
2899
2919
  function Ta(t, s) {
2900
- return o(), y("svg", ka, s[0] || (s[0] = [
2901
- b("path", {
2920
+ return o(), b("svg", ka, s[0] || (s[0] = [
2921
+ y("path", {
2902
2922
  fill: "currentColor",
2903
2923
  d: "M12 20q-3.35 0-5.675-2.325T4 12t2.325-5.675T12 4q1.725 0 3.3.712T18 6.75V5q0-.425.288-.712T19 4t.713.288T20 5v5q0 .425-.288.713T19 11h-5q-.425 0-.712-.288T13 10t.288-.712T14 9h3.2q-.8-1.4-2.187-2.2T12 6Q9.5 6 7.75 7.75T6 12t1.75 4.25T12 18q1.7 0 3.113-.862t2.187-2.313q.2-.35.563-.487t.737-.013q.4.125.575.525t-.025.75q-1.025 2-2.925 3.2T12 20"
2904
2924
  }, null, -1)
2905
2925
  ]));
2906
2926
  }
2907
- const Ma = V({ name: "material-symbols-refresh-rounded", render: Ta }), Ea = { class: "grid grow place-items-center" }, Ha = { class: "flex flex-col items-center p-8" }, Va = { class: "mt-0 mb-0 text-center text-4xl font-medium text-red-600" }, La = { class: "mt-4 grid grid-cols-1 gap-2 sm:grid-cols-2 [&_button]:justify-start sm:[&_button]:size-32 sm:[&_button]:flex-col sm:[&_button]:justify-center [&_svg]:size-6 sm:[&_svg]:size-8" }, Ia = /* @__PURE__ */ h({
2927
+ const Ma = V({ name: "material-symbols-refresh-rounded", render: Ta }), Ea = { class: "grid grow place-items-center" }, Ha = { class: "flex flex-col items-center p-8" }, Va = { class: "mt-0 mb-0 text-center text-4xl font-medium text-red-600" }, La = { class: "mt-4 grid grid-cols-1 gap-2 sm:grid-cols-2 [&_button]:justify-start sm:[&_button]:size-32 sm:[&_button]:flex-col sm:[&_button]:justify-center [&_svg]:size-6 sm:[&_svg]:size-8" }, Ia = /* @__PURE__ */ g({
2908
2928
  __name: "StartupCrash",
2909
2929
  setup(t) {
2910
2930
  async function s() {
2911
- await A.confirm(
2931
+ await P.confirm(
2912
2932
  S("startupCrash.purgeConfirmTitle", "Delete everything?"),
2913
2933
  S(
2914
2934
  "startupCrash.purgeConfirmMessage",
@@ -2920,14 +2940,14 @@ Do you still want to proceed?`
2920
2940
  acceptVariant: "danger",
2921
2941
  acceptText: S("startupCrash.purgeConfirmAccept", "Purge device")
2922
2942
  }
2923
- ) && (await gt.purge(), await P.reload());
2943
+ ) && (await vt.purge(), await A.reload());
2924
2944
  }
2925
2945
  return (e, r) => {
2926
2946
  const n = Qt("i-majesticons-exclamation");
2927
- return o(), y("div", Ea, [
2928
- b("div", Ha, [
2947
+ return o(), b("div", Ea, [
2948
+ y("div", Ha, [
2929
2949
  d(n, { class: "size-20 text-red-600" }),
2930
- b("h1", Va, x(e.$td("startupCrash.title", "Oops, something went wrong!")), 1),
2950
+ y("h1", Va, x(e.$td("startupCrash.title", "Oops, something went wrong!")), 1),
2931
2951
  d(z, {
2932
2952
  text: e.$td(
2933
2953
  "startupCrash.message",
@@ -2935,12 +2955,12 @@ Do you still want to proceed?`
2935
2955
  ),
2936
2956
  class: "mt-4 text-center"
2937
2957
  }, null, 8, ["text"]),
2938
- b("div", La, [
2958
+ y("div", La, [
2939
2959
  d(I, {
2940
2960
  variant: "danger",
2941
2961
  onClick: r[0] || (r[0] = (a) => e.$app.reload())
2942
2962
  }, {
2943
- default: m(() => [
2963
+ default: f(() => [
2944
2964
  d(l(Ma)),
2945
2965
  L(" " + x(e.$td("startupCrash.reload", "Try again")), 1)
2946
2966
  ]),
@@ -2950,7 +2970,7 @@ Do you still want to proceed?`
2950
2970
  variant: "danger",
2951
2971
  onClick: r[1] || (r[1] = (a) => e.$errors.inspect(e.$errors.startupErrors))
2952
2972
  }, {
2953
- default: m(() => [
2973
+ default: f(() => [
2954
2974
  d(l(ya)),
2955
2975
  L(" " + x(e.$td("startupCrash.inspect", "View error details")), 1)
2956
2976
  ]),
@@ -2960,7 +2980,7 @@ Do you still want to proceed?`
2960
2980
  variant: "danger",
2961
2981
  onClick: r[2] || (r[2] = (a) => s())
2962
2982
  }, {
2963
- default: m(() => [
2983
+ default: f(() => [
2964
2984
  d(l(_a)),
2965
2985
  L(" " + x(e.$td("startupCrash.purge", "Purge device")), 1)
2966
2986
  ]),
@@ -2970,7 +2990,7 @@ Do you still want to proceed?`
2970
2990
  variant: "danger",
2971
2991
  onClick: r[3] || (r[3] = (a) => e.$errors.debug = !e.$errors.debug)
2972
2992
  }, {
2973
- default: m(() => [
2993
+ default: f(() => [
2974
2994
  d(l(Sa)),
2975
2995
  L(" " + x(e.$td("startupCrash.debug", "Toggle debugging")), 1)
2976
2996
  ]),
@@ -2981,23 +3001,23 @@ Do you still want to proceed?`
2981
3001
  ]);
2982
3002
  };
2983
3003
  }
2984
- }), Rt = /* @__PURE__ */ h({
3004
+ }), qt = /* @__PURE__ */ g({
2985
3005
  __name: "HeadlessToastAction",
2986
3006
  props: {
2987
3007
  action: {}
2988
3008
  },
2989
3009
  setup(t) {
2990
- return (s, e) => (o(), f(ee(s.action.dismiss ? l(js) : "button"), {
3010
+ return (s, e) => (o(), m(ee(s.action.dismiss ? l(js) : "button"), {
2991
3011
  type: "button",
2992
3012
  onClick: s.action.click
2993
3013
  }, {
2994
- default: m(() => [
3014
+ default: f(() => [
2995
3015
  L(x(s.action.label), 1)
2996
3016
  ]),
2997
3017
  _: 1
2998
3018
  }, 8, ["onClick"]));
2999
3019
  }
3000
- }), za = { key: 0 }, Ra = /* @__PURE__ */ h({
3020
+ }), za = { key: 0 }, Ra = /* @__PURE__ */ g({
3001
3021
  __name: "HeadlessToast",
3002
3022
  props: {
3003
3023
  message: {},
@@ -3005,11 +3025,11 @@ Do you still want to proceed?`
3005
3025
  variant: {}
3006
3026
  },
3007
3027
  setup(t) {
3008
- return (s, e) => (o(), f(l(Fs), null, {
3009
- default: m(() => [
3028
+ return (s, e) => (o(), m(l(Fs), null, {
3029
+ default: f(() => [
3010
3030
  $(s.$slots, "default", {}, () => [
3011
- s.message ? (o(), y("span", za, x(s.message), 1)) : M("", !0),
3012
- (o(!0), y(D, null, U(s.actions, (r, n) => (o(), f(Rt, {
3031
+ s.message ? (o(), b("span", za, x(s.message), 1)) : E("", !0),
3032
+ (o(!0), b(D, null, U(s.actions, (r, n) => (o(), m(qt, {
3013
3033
  key: n,
3014
3034
  action: r
3015
3035
  }, null, 8, ["action"]))), 128))
@@ -3018,7 +3038,7 @@ Do you still want to proceed?`
3018
3038
  _: 3
3019
3039
  }));
3020
3040
  }
3021
- }), qa = /* @__PURE__ */ h({
3041
+ }), qa = /* @__PURE__ */ g({
3022
3042
  __name: "Toast",
3023
3043
  props: {
3024
3044
  message: {},
@@ -3027,7 +3047,7 @@ Do you still want to proceed?`
3027
3047
  class: {}
3028
3048
  },
3029
3049
  setup(t, { expose: s }) {
3030
- const e = c(() => pt(
3050
+ const e = c(() => ft(
3031
3051
  { baseClasses: t.class, variant: t.variant },
3032
3052
  {
3033
3053
  baseClasses: "flex items-center gap-2 rounded-md p-2 ring-1 shadow-lg border-gray-200",
@@ -3043,26 +3063,26 @@ Do you still want to proceed?`
3043
3063
  }
3044
3064
  }
3045
3065
  ));
3046
- return s(), (r, n) => (o(), f(Ra, {
3047
- class: C(e.value)
3066
+ return s(), (r, n) => (o(), m(Ra, {
3067
+ class: _(e.value)
3048
3068
  }, {
3049
- default: m(() => [
3050
- r.message ? (o(), f(z, {
3069
+ default: f(() => [
3070
+ r.message ? (o(), m(z, {
3051
3071
  key: 0,
3052
3072
  text: r.message,
3053
3073
  inline: ""
3054
- }, null, 8, ["text"])) : M("", !0),
3055
- (o(!0), y(D, null, U(r.actions, (a, u) => (o(), f(I, {
3074
+ }, null, 8, ["text"])) : E("", !0),
3075
+ (o(!0), b(D, null, U(r.actions, (a, u) => (o(), m(I, {
3056
3076
  key: u,
3057
3077
  action: a,
3058
3078
  variant: r.variant,
3059
- as: Rt
3079
+ as: qt
3060
3080
  }, null, 8, ["action", "variant"]))), 128))
3061
3081
  ]),
3062
3082
  _: 1
3063
3083
  }, 8, ["class"]));
3064
3084
  }
3065
- }), Aa = { $ui: A }, Pa = {
3085
+ }), Pa = { $ui: P }, Aa = {
3066
3086
  async install(t, s) {
3067
3087
  const e = {
3068
3088
  "alert-modal": bn,
@@ -3075,26 +3095,26 @@ Do you still want to proceed?`
3075
3095
  ...s.components
3076
3096
  };
3077
3097
  for (const [r, n] of Object.entries(e))
3078
- A.registerComponent(r, n);
3079
- await ke(t, Aa);
3098
+ P.registerComponent(r, n);
3099
+ await ke(t, Pa);
3080
3100
  }
3081
3101
  };
3082
3102
  async function Da(t, s = {}) {
3083
3103
  var r;
3084
- const e = [an, _r, nn, Or, kr, Pa, ...s.plugins ?? []];
3085
- P.instance = t, await rr(e, t, s), await ((r = s.install) == null ? void 0 : r.call(s, t)), await F.emit("application-ready");
3104
+ const e = [an, _r, nn, Or, kr, Aa, ...s.plugins ?? []];
3105
+ A.instance = t, await rr(e, t, s), await ((r = s.install) == null ? void 0 : r.call(s, t)), await F.emit("application-ready");
3086
3106
  }
3087
- async function Zl(t, s = {}) {
3107
+ async function Jl(t, s = {}) {
3088
3108
  var r;
3089
3109
  const e = Jt(t);
3090
3110
  Z() && (window.$aerogel = e), await Da(e, s), e.mount("#app"), (r = e._container) == null || r.classList.remove("loading"), await F.emit("application-mounted");
3091
3111
  }
3092
- const Ba = /* @__PURE__ */ h({
3112
+ const Ba = /* @__PURE__ */ g({
3093
3113
  __name: "AppToasts",
3094
3114
  setup(t) {
3095
- return (s, e) => (o(), f(l(Us), null, {
3096
- default: m(() => [
3097
- (o(!0), y(D, null, U(s.$ui.toasts, (r) => (o(), f(ee(r.component), H({
3115
+ return (s, e) => (o(), m(l(Us), null, {
3116
+ default: f(() => [
3117
+ (o(!0), b(D, null, U(s.$ui.toasts, (r) => (o(), m(ee(r.component), H({
3098
3118
  id: r.id,
3099
3119
  key: r.id
3100
3120
  }, { ref_for: !0 }, r.properties), null, 16, ["id"]))), 128)),
@@ -3103,25 +3123,25 @@ const Ba = /* @__PURE__ */ h({
3103
3123
  _: 1
3104
3124
  }));
3105
3125
  }
3106
- }), ja = /* @__PURE__ */ h({
3126
+ }), ja = /* @__PURE__ */ g({
3107
3127
  __name: "AppOverlays",
3108
3128
  setup(t) {
3109
- return (s, e) => (o(), y(D, null, [
3129
+ return (s, e) => (o(), b(D, null, [
3110
3130
  d(l(ys), { nested: "" }),
3111
3131
  d(Ba)
3112
3132
  ], 64));
3113
3133
  }
3114
- }), Fa = { class: "flex min-h-full flex-col text-base leading-tight font-normal text-gray-900 antialiased" }, Xl = /* @__PURE__ */ h({
3134
+ }), Fa = { class: "flex min-h-full flex-col text-base leading-tight font-normal text-gray-900 antialiased" }, Zl = /* @__PURE__ */ g({
3115
3135
  __name: "AppLayout",
3116
3136
  setup(t) {
3117
- return (s, e) => (o(), y("div", Fa, [
3137
+ return (s, e) => (o(), b("div", Fa, [
3118
3138
  s.$errors.hasStartupErrors ? $(s.$slots, "startup-crash", { key: 0 }, () => [
3119
- (o(), f(ee(s.$ui.requireComponent("startup-crash"))))
3139
+ (o(), m(ee(s.$ui.requireComponent("startup-crash"))))
3120
3140
  ]) : $(s.$slots, "default", { key: 1 }),
3121
3141
  d(ja)
3122
3142
  ]));
3123
3143
  }
3124
- }), Ua = ["id", "name", "value", "required", "aria-invalid", "aria-describedby"], Oa = /* @__PURE__ */ h({
3144
+ }), Ua = ["id", "name", "value", "required", "aria-invalid", "aria-describedby"], Oa = /* @__PURE__ */ g({
3125
3145
  __name: "HeadlessInputTextArea",
3126
3146
  setup(t) {
3127
3147
  const s = te("$textAreaRef"), e = R(
@@ -3134,7 +3154,7 @@ const Ba = /* @__PURE__ */ h({
3134
3154
  return mt(e, () => {
3135
3155
  var u;
3136
3156
  return (u = s.value) == null ? void 0 : u.focus();
3137
- }), (u, i) => (o(), y("textarea", {
3157
+ }), (u, i) => (o(), b("textarea", {
3138
3158
  id: l(e).id,
3139
3159
  ref: "$textAreaRef",
3140
3160
  name: r.value,
@@ -3145,35 +3165,39 @@ const Ba = /* @__PURE__ */ h({
3145
3165
  onInput: a
3146
3166
  }, null, 40, Ua));
3147
3167
  }
3148
- }), Na = { class: "group" }, Wa = { class: "-ml-2 flex w-[max-content] items-center rounded-lg py-2 pr-3 pl-1 hover:bg-gray-100 focus-visible:outline focus-visible:outline-gray-700" }, Ka = { class: "pt-2 pl-4" }, Qa = /* @__PURE__ */ h({
3168
+ }), Na = { class: "group" }, Wa = { class: "-ml-2 flex w-[max-content] items-center rounded-lg py-2 pr-3 pl-1 hover:bg-gray-100 focus-visible:outline focus-visible:outline-gray-700" }, Ka = /* @__PURE__ */ g({
3149
3169
  __name: "Details",
3150
3170
  props: {
3151
- label: {}
3171
+ label: {},
3172
+ contentClass: {}
3152
3173
  },
3153
3174
  setup(t) {
3154
- return (s, e) => (o(), y("details", Na, [
3155
- b("summary", Wa, [
3156
- d(l(Lt), { class: "size-6 transition-transform group-open:rotate-90" }),
3157
- b("span", null, x(s.label), 1)
3175
+ const s = c(() => T("pt-2 pl-4", t.contentClass));
3176
+ return (e, r) => (o(), b("details", Na, [
3177
+ y("summary", Wa, [
3178
+ d(l(It), { class: "size-6 transition-transform group-open:rotate-90" }),
3179
+ y("span", null, x(e.label), 1)
3158
3180
  ]),
3159
- b("div", Ka, [
3160
- $(s.$slots, "default")
3161
- ])
3181
+ y("div", {
3182
+ class: _(s.value)
3183
+ }, [
3184
+ $(e.$slots, "default")
3185
+ ], 2)
3162
3186
  ]));
3163
3187
  }
3164
- }), Yl = /* @__PURE__ */ h({
3188
+ }), Xl = /* @__PURE__ */ g({
3165
3189
  __name: "AdvancedOptions",
3166
3190
  setup(t) {
3167
- return (s, e) => (o(), f(Qa, {
3191
+ return (s, e) => (o(), m(Ka, {
3168
3192
  label: s.$td("ui.advancedOptions", "Advanced options")
3169
3193
  }, {
3170
- default: m(() => [
3194
+ default: f(() => [
3171
3195
  $(s.$slots, "default")
3172
3196
  ]),
3173
3197
  _: 3
3174
3198
  }, 8, ["label"]));
3175
3199
  }
3176
- }), Ja = { class: "flex h-6 items-center" }, Gl = /* @__PURE__ */ h({
3200
+ }), Qa = { class: "flex h-6 items-center" }, Yl = /* @__PURE__ */ g({
3177
3201
  inheritAttrs: !1,
3178
3202
  __name: "Checkbox",
3179
3203
  props: {
@@ -3186,53 +3210,53 @@ const Ba = /* @__PURE__ */ h({
3186
3210
  },
3187
3211
  emits: ["update:modelValue"],
3188
3212
  setup(t) {
3189
- const s = K(t, ["inputClass", "labelClass"]), e = te("$inputRef"), [r, n] = Ae(), a = c(() => E("relative flex items-start", n.value)), u = c(() => {
3190
- var p, g;
3191
- return E(
3213
+ const s = K(t, ["inputClass", "labelClass"]), e = te("$inputRef"), [r, n] = Pe(), a = c(() => T("relative flex items-start", n.value)), u = c(() => {
3214
+ var p, v;
3215
+ return T(
3192
3216
  "size-4 rounded text-primary-600 not-checked:hover:bg-gray-200 checked:hover:text-primary-500 checked:border-0",
3193
3217
  {
3194
3218
  "border-gray-300 focus:ring-primary-600": !((p = e.value) != null && p.errors),
3195
- "border-red-400 border-2 focus:ring-red-600": (g = e.value) == null ? void 0 : g.errors
3219
+ "border-red-400 border-2 focus:ring-red-600": (v = e.value) == null ? void 0 : v.errors
3196
3220
  },
3197
3221
  t.inputClass
3198
3222
  );
3199
- }), i = c(() => E("ml-2 text-sm leading-6", t.labelClass));
3200
- return (p, g) => (o(), f(Be, H({
3223
+ }), i = c(() => T("ml-2 text-sm leading-6", t.labelClass));
3224
+ return (p, v) => (o(), m(Be, H({
3201
3225
  ref: "$inputRef",
3202
3226
  class: a.value
3203
3227
  }, s, {
3204
- "onUpdate:modelValue": g[0] || (g[0] = (w) => p.$emit("update:modelValue", w))
3228
+ "onUpdate:modelValue": v[0] || (v[0] = (w) => p.$emit("update:modelValue", w))
3205
3229
  }), {
3206
- default: m(() => [
3207
- b("div", Ja, [
3208
- d(It, H(l(r), {
3230
+ default: f(() => [
3231
+ y("div", Qa, [
3232
+ d(zt, H(l(r), {
3209
3233
  type: "checkbox",
3210
3234
  class: u.value
3211
3235
  }), null, 16, ["class"])
3212
3236
  ]),
3213
- p.$slots.default ? (o(), y("div", {
3237
+ p.$slots.default ? (o(), b("div", {
3214
3238
  key: 0,
3215
- class: C(i.value)
3239
+ class: _(i.value)
3216
3240
  }, [
3217
3241
  d(ye, { class: "text-gray-900" }, {
3218
- default: m(() => [
3242
+ default: f(() => [
3219
3243
  $(p.$slots, "default")
3220
3244
  ]),
3221
3245
  _: 3
3222
3246
  }),
3223
3247
  d(we, { class: "text-red-600" })
3224
- ], 2)) : p.label ? (o(), y("div", {
3248
+ ], 2)) : p.label ? (o(), b("div", {
3225
3249
  key: 1,
3226
- class: C(i.value)
3250
+ class: _(i.value)
3227
3251
  }, [
3228
3252
  d(ye, { class: "text-gray-900" }),
3229
3253
  d(we, { class: "text-red-600" })
3230
- ], 2)) : M("", !0)
3254
+ ], 2)) : E("", !0)
3231
3255
  ]),
3232
3256
  _: 3
3233
3257
  }, 16, ["class"]));
3234
3258
  }
3235
- }), Za = /* @__PURE__ */ h({
3259
+ }), Ja = /* @__PURE__ */ g({
3236
3260
  __name: "DropdownMenuOption",
3237
3261
  props: {
3238
3262
  class: {},
@@ -3241,37 +3265,37 @@ const Ba = /* @__PURE__ */ h({
3241
3265
  },
3242
3266
  emits: ["select"],
3243
3267
  setup(t) {
3244
- const s = K(t, ["class"]), e = c(() => E(
3268
+ const s = K(t, ["class"]), e = c(() => T(
3245
3269
  "flex w-full items-center gap-2 rounded-lg px-2 py-2 text-sm text-gray-900 data-[highlighted]:bg-gray-100",
3246
3270
  t.class
3247
3271
  ));
3248
- return (r, n) => (o(), f(l(Ns), H({ class: e.value }, s, {
3272
+ return (r, n) => (o(), m(l(Ns), H({ class: e.value }, s, {
3249
3273
  onSelect: n[0] || (n[0] = (a) => r.$emit("select"))
3250
3274
  }), {
3251
- default: m(() => [
3275
+ default: f(() => [
3252
3276
  $(r.$slots, "default")
3253
3277
  ]),
3254
3278
  _: 3
3255
3279
  }, 16, ["class"]));
3256
3280
  }
3257
- }), Xa = /* @__PURE__ */ h({
3281
+ }), Za = /* @__PURE__ */ g({
3258
3282
  __name: "DropdownMenuOptions",
3259
3283
  setup(t) {
3260
3284
  const s = R(
3261
3285
  "dropdown-menu",
3262
3286
  "<DropdownMenuOptions> must be a child of a <DropdownMenu>"
3263
3287
  );
3264
- return (e, r) => (o(), f(l(Ws), {
3288
+ return (e, r) => (o(), m(l(Ws), {
3265
3289
  class: "gap-y-0.5 rounded-lg bg-white p-1.5 shadow-lg ring-1 ring-black/5",
3266
3290
  align: l(s).align,
3267
3291
  side: l(s).side
3268
3292
  }, {
3269
- default: m(() => [
3293
+ default: f(() => [
3270
3294
  $(e.$slots, "default", {}, () => [
3271
- (o(!0), y(D, null, U(l(s).options, (n, a) => (o(), f(Za, H(
3295
+ (o(!0), b(D, null, U(l(s).options, (n, a) => (o(), m(Ja, H(
3272
3296
  {
3273
3297
  key: a,
3274
- as: n.route || n.href ? $t : void 0,
3298
+ as: n.route || n.href ? _t : void 0,
3275
3299
  class: n.class
3276
3300
  },
3277
3301
  { ref_for: !0 },
@@ -3288,7 +3312,7 @@ const Ba = /* @__PURE__ */ h({
3288
3312
  }
3289
3313
  }
3290
3314
  ), {
3291
- default: m(() => [
3315
+ default: f(() => [
3292
3316
  L(x(n.label), 1)
3293
3317
  ]),
3294
3318
  _: 2
@@ -3298,7 +3322,7 @@ const Ba = /* @__PURE__ */ h({
3298
3322
  _: 3
3299
3323
  }, 8, ["align", "side"]));
3300
3324
  }
3301
- }), eo = /* @__PURE__ */ h({
3325
+ }), Gl = /* @__PURE__ */ g({
3302
3326
  __name: "DropdownMenu",
3303
3327
  props: {
3304
3328
  align: {},
@@ -3314,18 +3338,18 @@ const Ba = /* @__PURE__ */ h({
3314
3338
  return (r = t.options) == null ? void 0 : r.filter(Boolean);
3315
3339
  })
3316
3340
  };
3317
- return pe("dropdown-menu", e), s(e), (r, n) => (o(), f(l(Ks), null, {
3318
- default: m(() => [
3341
+ return pe("dropdown-menu", e), s(e), (r, n) => (o(), m(l(Ks), null, {
3342
+ default: f(() => [
3319
3343
  d(l(Qs), null, {
3320
- default: m(() => [
3344
+ default: f(() => [
3321
3345
  $(r.$slots, "default")
3322
3346
  ]),
3323
3347
  _: 3
3324
3348
  }),
3325
3349
  d(l(Js), null, {
3326
- default: m(() => [
3350
+ default: f(() => [
3327
3351
  $(r.$slots, "options", {}, () => [
3328
- d(Xa)
3352
+ d(Za)
3329
3353
  ])
3330
3354
  ]),
3331
3355
  _: 3
@@ -3334,7 +3358,7 @@ const Ba = /* @__PURE__ */ h({
3334
3358
  _: 3
3335
3359
  }));
3336
3360
  }
3337
- }), Ya = ["aria-hidden"], Ga = ["tabindex", "aria-label", "type"], to = /* @__PURE__ */ h({
3361
+ }), Xa = ["aria-hidden"], Ya = ["tabindex", "aria-label", "type"], eo = /* @__PURE__ */ g({
3338
3362
  __name: "EditableContent",
3339
3363
  props: {
3340
3364
  type: { default: "text" },
@@ -3347,103 +3371,103 @@ const Ba = /* @__PURE__ */ h({
3347
3371
  },
3348
3372
  emits: ["update", "save"],
3349
3373
  setup(t, { emit: s }) {
3350
- const e = s, r = te("$inputRef"), n = N(null), a = N(t.text), u = c(() => E("inline whitespace-pre", t.contentClass)), i = c(() => E("invisible whitespace-pre", t.contentClass)), p = c(() => E("absolute inset-0 h-full w-full resize-none border-0 bg-transparent p-0 focus:ring-0", t.contentClass));
3351
- function g() {
3374
+ const e = s, r = te("$inputRef"), n = N(null), a = N(t.text), u = c(() => T("inline whitespace-pre", t.contentClass)), i = c(() => T("invisible whitespace-pre", t.contentClass)), p = c(() => T("absolute inset-0 h-full w-full resize-none border-0 bg-transparent p-0 focus:ring-0", t.contentClass));
3375
+ function v() {
3352
3376
  n.value = t.text;
3353
3377
  }
3354
3378
  function w() {
3355
3379
  n.value && (t.type !== "number" && a.value.trim().length === 0 && (a.value = n.value, e("update", a.value)), n.value = null, e("save"));
3356
3380
  }
3357
- return G(() => a.value = t.text), (v, k) => (o(), y("div", {
3358
- class: C(["relative", { "pointer-events-none!": v.disabled && !n.value }])
3381
+ return G(() => a.value = t.text), (h, k) => (o(), b("div", {
3382
+ class: _(["relative", { "pointer-events-none!": h.disabled && !n.value }])
3359
3383
  }, [
3360
- n.value ? (o(), y("span", {
3384
+ n.value ? (o(), b("span", {
3361
3385
  key: 1,
3362
- class: C(i.value)
3363
- }, x(a.value), 3)) : (o(), y("div", {
3386
+ class: _(i.value)
3387
+ }, x(a.value), 3)) : (o(), b("div", {
3364
3388
  key: 0,
3365
- class: C(u.value)
3389
+ class: _(u.value)
3366
3390
  }, [
3367
- $(v.$slots, "default")
3391
+ $(h.$slots, "default")
3368
3392
  ], 2)),
3369
- v.type === "number" ? (o(), y("span", {
3393
+ h.type === "number" ? (o(), b("span", {
3370
3394
  key: 2,
3371
- class: C(["inline-block transition-[width]", n.value ? "w-5" : "w-0"])
3372
- }, null, 2)) : M("", !0),
3373
- b("form", {
3395
+ class: _(["inline-block transition-[width]", n.value ? "w-5" : "w-0"])
3396
+ }, null, 2)) : E("", !0),
3397
+ y("form", {
3374
3398
  class: "w-full",
3375
- "aria-hidden": v.formAriaHidden,
3376
- onSubmit: k[4] || (k[4] = rt((q) => {
3399
+ "aria-hidden": h.formAriaHidden,
3400
+ onSubmit: k[4] || (k[4] = nt((q) => {
3377
3401
  var Q;
3378
3402
  return (Q = r.value) == null ? void 0 : Q.blur();
3379
3403
  }, ["prevent"]))
3380
3404
  }, [
3381
- nt(b("input", {
3405
+ at(y("input", {
3382
3406
  ref: "$inputRef",
3383
3407
  "onUpdate:modelValue": k[0] || (k[0] = (q) => a.value = q),
3384
- tabindex: v.tabindex ?? void 0,
3385
- "aria-label": v.ariaLabel ?? void 0,
3386
- type: v.type,
3387
- class: C([
3408
+ tabindex: h.tabindex ?? void 0,
3409
+ "aria-label": h.ariaLabel ?? void 0,
3410
+ type: h.type,
3411
+ class: _([
3388
3412
  p.value,
3389
- { "opacity-0": !n.value, "appearance-textfield": !n.value && v.type === "number" }
3413
+ { "opacity-0": !n.value, "appearance-textfield": !n.value && h.type === "number" }
3390
3414
  ]),
3391
- onKeyup: k[1] || (k[1] = (q) => v.$emit("update", a.value)),
3392
- onFocus: k[2] || (k[2] = (q) => g()),
3415
+ onKeyup: k[1] || (k[1] = (q) => h.$emit("update", a.value)),
3416
+ onFocus: k[2] || (k[2] = (q) => v()),
3393
3417
  onBlur: k[3] || (k[3] = (q) => w())
3394
- }, null, 42, Ga), [
3418
+ }, null, 42, Ya), [
3395
3419
  [Zt, a.value]
3396
3420
  ])
3397
- ], 40, Ya)
3421
+ ], 40, Xa)
3398
3422
  ], 2));
3399
3423
  }
3400
- }), el = {
3424
+ }), Ga = {
3401
3425
  viewBox: "0 0 512 512",
3402
3426
  width: "1.2em",
3403
3427
  height: "1.2em"
3404
3428
  };
3405
- function tl(t, s) {
3406
- return o(), y("svg", el, s[0] || (s[0] = [
3407
- b("path", {
3429
+ function el(t, s) {
3430
+ return o(), b("svg", Ga, s[0] || (s[0] = [
3431
+ y("path", {
3408
3432
  fill: "currentColor",
3409
3433
  d: "M449.07 399.08L278.64 82.58c-12.08-22.44-44.26-22.44-56.35 0L51.87 399.08A32 32 0 0 0 80 446.25h340.89a32 32 0 0 0 28.18-47.17m-198.6-1.83a20 20 0 1 1 20-20a20 20 0 0 1-20 20m21.72-201.15l-5.74 122a16 16 0 0 1-32 0l-5.74-121.95a21.73 21.73 0 0 1 21.5-22.69h.21a21.74 21.74 0 0 1 21.73 22.7Z"
3410
3434
  }, null, -1)
3411
3435
  ]));
3412
3436
  }
3413
- const sl = V({ name: "ion-warning", render: tl }), rl = {
3437
+ const tl = V({ name: "ion-warning", render: el }), sl = {
3414
3438
  viewBox: "0 0 20 20",
3415
3439
  width: "1.2em",
3416
3440
  height: "1.2em"
3417
3441
  };
3418
- function nl(t, s) {
3419
- return o(), y("svg", rl, s[0] || (s[0] = [
3420
- b("path", {
3442
+ function rl(t, s) {
3443
+ return o(), b("svg", sl, s[0] || (s[0] = [
3444
+ y("path", {
3421
3445
  fill: "currentColor",
3422
3446
  d: "M.2 10a11 11 0 0 1 19.6 0A11 11 0 0 1 .2 10m9.8 4a4 4 0 1 0 0-8a4 4 0 0 0 0 8m0-2a2 2 0 1 1 0-4a2 2 0 0 1 0 4"
3423
3447
  }, null, -1)
3424
3448
  ]));
3425
3449
  }
3426
- const al = V({ name: "zondicons-view-show", render: nl }), ll = { class: "font-medium" }, ol = ["datetime"], il = /* @__PURE__ */ h({
3450
+ const nl = V({ name: "zondicons-view-show", render: rl }), al = { class: "font-medium" }, ll = ["datetime"], ol = /* @__PURE__ */ g({
3427
3451
  __name: "ErrorLogsModal",
3428
3452
  setup(t) {
3429
- return (s, e) => (o(), f(ne, {
3453
+ return (s, e) => (o(), m(ne, {
3430
3454
  title: s.$td("errors.report", "Errors ({count})", { count: s.$errors.logs.length })
3431
3455
  }, {
3432
- default: m(() => [
3433
- b("ol", null, [
3434
- (o(!0), y(D, null, U(s.$errors.logs, (r, n) => (o(), y("li", {
3456
+ default: f(() => [
3457
+ y("ol", null, [
3458
+ (o(!0), b(D, null, U(s.$errors.logs, (r, n) => (o(), b("li", {
3435
3459
  key: n,
3436
3460
  class: "mb-2 flex max-w-prose min-w-56 justify-between py-2 last:mb-0"
3437
3461
  }, [
3438
- b("div", null, [
3439
- b("h3", ll, x(r.report.title), 1),
3440
- b("time", {
3462
+ y("div", null, [
3463
+ y("h3", al, x(r.report.title), 1),
3464
+ y("time", {
3441
3465
  datetime: r.date.toISOString(),
3442
3466
  class: "text-xs text-gray-700"
3443
- }, x(r.date.toLocaleTimeString()), 9, ol),
3467
+ }, x(r.date.toLocaleTimeString()), 9, ll),
3444
3468
  d(z, {
3445
3469
  class: "text-sm text-gray-500",
3446
- text: r.report.description ?? l(Ht)(r.report)
3470
+ text: r.report.description ?? l(Vt)(r.report)
3447
3471
  }, null, 8, ["text"])
3448
3472
  ]),
3449
3473
  d(I, {
@@ -3457,8 +3481,8 @@ const al = V({ name: "zondicons-view-show", render: nl }), ll = { class: "font-m
3457
3481
  s.$errors.logs.map(({ report: u }) => u)
3458
3482
  )
3459
3483
  }, {
3460
- default: m(() => [
3461
- d(l(al), {
3484
+ default: f(() => [
3485
+ d(l(nl), {
3462
3486
  class: "size-4",
3463
3487
  "aria-hidden": "true"
3464
3488
  })
@@ -3471,36 +3495,36 @@ const al = V({ name: "zondicons-view-show", render: nl }), ll = { class: "font-m
3471
3495
  _: 1
3472
3496
  }, 8, ["title"]));
3473
3497
  }
3474
- }), so = /* @__PURE__ */ h({
3498
+ }), to = /* @__PURE__ */ g({
3475
3499
  __name: "ErrorLogs",
3476
3500
  setup(t) {
3477
- return (s, e) => s.$errors.logs.length > 0 ? (o(), f(I, {
3501
+ return (s, e) => s.$errors.logs.length > 0 ? (o(), m(I, {
3478
3502
  key: 0,
3479
3503
  size: "icon",
3480
3504
  variant: "ghost",
3481
3505
  title: s.$td("errors.viewLogs", "View error logs"),
3482
3506
  "aria-label": s.$td("errors.viewLogs", "View error logs"),
3483
- onClick: e[0] || (e[0] = (r) => s.$ui.modal(il))
3507
+ onClick: e[0] || (e[0] = (r) => s.$ui.modal(ol))
3484
3508
  }, {
3485
- default: m(() => [
3486
- d(l(sl), { class: "size-6 text-red-500" })
3509
+ default: f(() => [
3510
+ d(l(tl), { class: "size-6 text-red-500" })
3487
3511
  ]),
3488
3512
  _: 1
3489
- }, 8, ["title", "aria-label"])) : M("", !0);
3513
+ }, 8, ["title", "aria-label"])) : E("", !0);
3490
3514
  }
3491
- }), ro = /* @__PURE__ */ h({
3515
+ }), so = /* @__PURE__ */ g({
3492
3516
  __name: "ErrorMessage",
3493
3517
  props: {
3494
3518
  error: {}
3495
3519
  },
3496
3520
  setup(t) {
3497
- const s = c(() => Ht(t.error));
3498
- return (e, r) => (o(), f(z, {
3521
+ const s = c(() => Vt(t.error));
3522
+ return (e, r) => (o(), m(z, {
3499
3523
  text: s.value,
3500
3524
  inline: ""
3501
3525
  }, null, 8, ["text"]));
3502
3526
  }
3503
- }), no = /* @__PURE__ */ h({
3527
+ }), ro = /* @__PURE__ */ g({
3504
3528
  __name: "Link",
3505
3529
  props: {
3506
3530
  class: {},
@@ -3515,30 +3539,30 @@ const al = V({ name: "zondicons-view-show", render: nl }), ll = { class: "font-m
3515
3539
  as: {}
3516
3540
  },
3517
3541
  setup(t) {
3518
- return (s, e) => (o(), f(I, H({ variant: "link" }, s.$props), {
3519
- default: m(() => [
3542
+ return (s, e) => (o(), m(I, H({ variant: "link" }, s.$props), {
3543
+ default: f(() => [
3520
3544
  $(s.$slots, "default")
3521
3545
  ]),
3522
3546
  _: 3
3523
3547
  }, 16));
3524
3548
  }
3525
- }), ao = /* @__PURE__ */ h({
3549
+ }), no = /* @__PURE__ */ g({
3526
3550
  __name: "SettingsModal",
3527
3551
  setup(t) {
3528
- const s = c(() => os(P.settings, "priority", "desc"));
3529
- return (e, r) => (o(), f(ne, {
3552
+ const s = c(() => os(A.settings, "priority", "desc"));
3553
+ return (e, r) => (o(), m(ne, {
3530
3554
  title: e.$td("settings.title", "Settings")
3531
3555
  }, {
3532
- default: m(() => [
3533
- (o(!0), y(D, null, U(s.value, (n, a) => (o(), f(ee(n.component), { key: a }))), 128))
3556
+ default: f(() => [
3557
+ (o(!0), b(D, null, U(s.value, (n, a) => (o(), m(ee(n.component), { key: a }))), 128))
3534
3558
  ]),
3535
3559
  _: 1
3536
3560
  }, 8, ["title"]));
3537
3561
  }
3538
- }), ul = {
3562
+ }), il = {
3539
3563
  key: 0,
3540
3564
  class: "pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3"
3541
- }, lo = /* @__PURE__ */ h({
3565
+ }, ao = /* @__PURE__ */ g({
3542
3566
  inheritAttrs: !1,
3543
3567
  __name: "TextArea",
3544
3568
  props: {
@@ -3551,39 +3575,39 @@ const al = V({ name: "zondicons-view-show", render: nl }), ll = { class: "font-m
3551
3575
  },
3552
3576
  emits: ["update:modelValue"],
3553
3577
  setup(t) {
3554
- const s = K(t, ["label", "inputClass", "wrapperClass"]), e = te("$inputRef"), [r, n] = Ae(), a = c(() => E("relative rounded-md shadow-2xs", { "mt-1": t.label }, t.wrapperClass)), u = c(() => {
3555
- var i, p, g;
3556
- return E(
3578
+ const s = K(t, ["label", "inputClass", "wrapperClass"]), e = te("$inputRef"), [r, n] = Pe(), a = c(() => T("relative rounded-md shadow-2xs", { "mt-1": t.label }, t.wrapperClass)), u = c(() => {
3579
+ var i, p, v;
3580
+ return T(
3557
3581
  // eslint-disable-next-line vue/max-len
3558
3582
  "block w-full rounded-md border-0 py-1.5 ring-1 ring-inset focus:ring-2 focus:ring-inset sm:text-sm sm:leading-6",
3559
3583
  {
3560
3584
  "focus:ring-primary-600": !((i = e.value) != null && i.errors),
3561
3585
  "text-gray-900 shadow-2xs ring-gray-900/10 placeholder:text-gray-400": !((p = e.value) != null && p.errors),
3562
- "pr-10 text-red-900 ring-red-900/10 placeholder:text-red-300 focus:ring-red-500": (g = e.value) == null ? void 0 : g.errors
3586
+ "pr-10 text-red-900 ring-red-900/10 placeholder:text-red-300 focus:ring-red-500": (v = e.value) == null ? void 0 : v.errors
3563
3587
  },
3564
3588
  t.inputClass
3565
3589
  );
3566
3590
  });
3567
- return (i, p) => (o(), f(Be, H({
3591
+ return (i, p) => (o(), m(Be, H({
3568
3592
  ref: "$inputRef",
3569
3593
  label: i.label,
3570
3594
  class: l(n)
3571
3595
  }, s, {
3572
- "onUpdate:modelValue": p[0] || (p[0] = (g) => i.$emit("update:modelValue", g))
3596
+ "onUpdate:modelValue": p[0] || (p[0] = (v) => i.$emit("update:modelValue", v))
3573
3597
  }), {
3574
- default: m(() => {
3575
- var g;
3598
+ default: f(() => {
3599
+ var v;
3576
3600
  return [
3577
3601
  d(ye, { class: "block text-sm leading-6 font-medium text-gray-900" }),
3578
- b("div", {
3579
- class: C(a.value)
3602
+ y("div", {
3603
+ class: _(a.value)
3580
3604
  }, [
3581
3605
  d(Oa, H(l(r), { class: u.value }), null, 16, ["class"]),
3582
- (g = e.value) != null && g.errors ? (o(), y("div", ul, [
3606
+ (v = e.value) != null && v.errors ? (o(), b("div", il, [
3583
3607
  d(l(De), { class: "size-5 text-red-500" })
3584
- ])) : M("", !0)
3608
+ ])) : E("", !0)
3585
3609
  ], 2),
3586
- d(zt, { class: "mt-2 text-sm text-gray-600" }),
3610
+ d(Rt, { class: "mt-2 text-sm text-gray-600" }),
3587
3611
  d(we, { class: "mt-2 text-sm text-red-600" })
3588
3612
  ];
3589
3613
  }),
@@ -3591,14 +3615,14 @@ const al = V({ name: "zondicons-view-show", render: nl }), ll = { class: "font-m
3591
3615
  }, 16, ["label", "class"]));
3592
3616
  }
3593
3617
  });
3594
- class oo {
3618
+ class lo {
3595
3619
  constructor() {
3596
- _(this, "status");
3597
- _(this, "_listeners");
3598
- _(this, "_progress");
3599
- _(this, "_cancelled");
3600
- _(this, "_started");
3601
- _(this, "_completed");
3620
+ C(this, "status");
3621
+ C(this, "_listeners");
3622
+ C(this, "_progress");
3623
+ C(this, "_cancelled");
3624
+ C(this, "_started");
3625
+ C(this, "_completed");
3602
3626
  this.status = this.getInitialStatus(), this._listeners = new is(), this._started = new J(), this._completed = new J();
3603
3627
  }
3604
3628
  async start() {
@@ -3606,7 +3630,7 @@ class oo {
3606
3630
  try {
3607
3631
  await this.updateProgress(), await this.run(), await this.updateProgress(), this._completed.resolve();
3608
3632
  } catch (s) {
3609
- if (s instanceof et)
3633
+ if (s instanceof tt)
3610
3634
  return;
3611
3635
  throw se(us(s), (e) => {
3612
3636
  this._completed.reject(e);
@@ -3649,7 +3673,7 @@ class oo {
3649
3673
  }
3650
3674
  assertNotCancelled() {
3651
3675
  if (this._cancelled)
3652
- throw this._cancelled.resolve(), new et();
3676
+ throw this._cancelled.resolve(), new tt();
3653
3677
  }
3654
3678
  calculateCurrentProgress(s) {
3655
3679
  return s ?? (s = this.status), s.completed ? 1 : s.children ? cs(
@@ -3666,158 +3690,158 @@ class oo {
3666
3690
  return { ...s };
3667
3691
  }
3668
3692
  }
3669
- async function io(t) {
3693
+ async function oo(t) {
3670
3694
  await t.start();
3671
3695
  }
3672
3696
  export {
3673
- Yl as AdvancedOptions,
3697
+ Xl as AdvancedOptions,
3674
3698
  bn as AlertModal,
3675
- P as App,
3676
- Xl as AppLayout,
3699
+ A as App,
3700
+ Zl as AppLayout,
3677
3701
  ja as AppOverlays,
3678
3702
  sr as AppService,
3679
3703
  Ba as AppToasts,
3680
3704
  I as Button,
3681
- ql as Cache,
3682
- xr as CacheService,
3683
- Gl as Checkbox,
3705
+ Rl as Cache,
3706
+ Cr as CacheService,
3707
+ Yl as Checkbox,
3684
3708
  Sn as ConfirmModal,
3685
- Qa as Details,
3686
- eo as DropdownMenu,
3687
- Za as DropdownMenuOption,
3688
- Xa as DropdownMenuOptions,
3689
- to as EditableContent,
3690
- so as ErrorLogs,
3691
- il as ErrorLogsModal,
3692
- ro as ErrorMessage,
3709
+ Ka as Details,
3710
+ Gl as DropdownMenu,
3711
+ Ja as DropdownMenuOption,
3712
+ Za as DropdownMenuOptions,
3713
+ eo as EditableContent,
3714
+ to as ErrorLogs,
3715
+ ol as ErrorLogsModal,
3716
+ so as ErrorMessage,
3693
3717
  Gn as ErrorReportModal,
3694
3718
  On as ErrorReportModalButtons,
3695
3719
  Nn as ErrorReportModalTitle,
3696
- wt as Errors,
3720
+ $t as Errors,
3697
3721
  Cl as EventListenerPriorities,
3698
3722
  F as Events,
3699
3723
  er as EventsService,
3700
- Vt as Form,
3724
+ Lt as Form,
3701
3725
  pr as FormController,
3702
- $t as HeadlessButton,
3726
+ _t as HeadlessButton,
3703
3727
  Be as HeadlessInput,
3704
- zt as HeadlessInputDescription,
3728
+ Rt as HeadlessInputDescription,
3705
3729
  we as HeadlessInputError,
3706
- It as HeadlessInputInput,
3730
+ zt as HeadlessInputInput,
3707
3731
  ye as HeadlessInputLabel,
3708
3732
  Oa as HeadlessInputTextArea,
3709
3733
  cn as HeadlessModal,
3710
3734
  dn as HeadlessModalContent,
3711
3735
  pn as HeadlessModalDescription,
3712
- mn as HeadlessModalOverlay,
3713
- fn as HeadlessModalTitle,
3736
+ fn as HeadlessModalOverlay,
3737
+ mn as HeadlessModalTitle,
3714
3738
  Rr as HeadlessSelect,
3715
- Ye as HeadlessSelectLabel,
3716
- Ct as HeadlessSelectOption,
3717
- St as HeadlessSelectOptions,
3739
+ Ge as HeadlessSelectLabel,
3740
+ St as HeadlessSelectOption,
3741
+ kt as HeadlessSelectOptions,
3718
3742
  xt as HeadlessSelectTrigger,
3719
- _t as HeadlessSelectValue,
3743
+ Ct as HeadlessSelectValue,
3720
3744
  Xr as HeadlessSwitch,
3721
3745
  Ra as HeadlessToast,
3722
3746
  pa as Input,
3723
- oo as Job,
3724
- et as JobCancelledError,
3725
- Ze as LOCAL_TIMEZONE_OFFSET,
3747
+ lo as Job,
3748
+ tt as JobCancelledError,
3749
+ Xe as LOCAL_TIMEZONE_OFFSET,
3726
3750
  X as Lang,
3727
3751
  be as Layouts,
3728
- no as Link,
3752
+ ro as Link,
3729
3753
  oa as LoadingModal,
3730
3754
  yr as MINUTE_MILLISECONDS,
3731
- vt as MOBILE_BREAKPOINT,
3755
+ bt as MOBILE_BREAKPOINT,
3732
3756
  z as Markdown,
3733
3757
  ne as Modal,
3734
- po as ModalComponent,
3735
- mo as ModalsPortal,
3758
+ co as ModalComponent,
3759
+ po as ModalsPortal,
3736
3760
  aa as ProgressBar,
3737
3761
  ga as PromptModal,
3738
3762
  Dr as Select,
3739
- kt as SelectLabel,
3740
- Ge as SelectOption,
3741
- Tt as SelectOptions,
3742
- Mt as SelectTrigger,
3763
+ Tt as SelectLabel,
3764
+ et as SelectOption,
3765
+ Mt as SelectOptions,
3766
+ Et as SelectTrigger,
3743
3767
  Se as Service,
3744
3768
  Ve as ServiceBootError,
3745
3769
  Jr as Setting,
3746
- ao as SettingsModal,
3770
+ no as SettingsModal,
3747
3771
  Ia as StartupCrash,
3748
- gt as Storage,
3772
+ vt as Storage,
3749
3773
  Yr as Switch,
3750
- lo as TextArea,
3774
+ ao as TextArea,
3751
3775
  qa as Toast,
3752
- A as UI,
3776
+ P as UI,
3753
3777
  Mr as UIService,
3754
- Hl as __valueType,
3778
+ El as __valueType,
3755
3779
  $r as aerogelDirectives,
3756
3780
  Zs as appNamespace,
3757
- Dl as booleanInput,
3781
+ Al as booleanInput,
3758
3782
  ke as bootServices,
3759
- Zl as bootstrap,
3783
+ Jl as bootstrap,
3760
3784
  Da as bootstrapApplication,
3761
- E as classes,
3785
+ T as classes,
3762
3786
  fo as closeModal,
3763
- Il as computedAsync,
3764
- zl as computedDebounce,
3765
- ho as createModal,
3766
- Bl as dateInput,
3767
- Tl as defineDirective,
3768
- El as defineFormValidationRule,
3769
- kl as definePlugin,
3770
- Ce as defineServiceState,
3787
+ Ll as computedAsync,
3788
+ Il as computedDebounce,
3789
+ mo as createModal,
3790
+ Dl as dateInput,
3791
+ kl as defineDirective,
3792
+ Ml as defineFormValidationRule,
3793
+ Sl as definePlugin,
3794
+ xe as defineServiceState,
3771
3795
  Gs as defineServiceStore,
3772
- Sl as defineSettings,
3773
- io as dispatch,
3774
- jl as enumInput,
3775
- bt as getCurrentLayout,
3776
- Ht as getErrorMessage,
3796
+ xl as defineSettings,
3797
+ oo as dispatch,
3798
+ Bl as enumInput,
3799
+ yt as getCurrentLayout,
3800
+ Vt as getErrorMessage,
3777
3801
  vr as getMarkdownRouter,
3778
3802
  Ys as getPiniaStore,
3779
3803
  zr as hasSelectOptionLabel,
3780
- go as injectModal,
3804
+ ho as injectModal,
3781
3805
  lr as injectOrFail,
3782
3806
  ar as injectReactive,
3783
3807
  R as injectReactiveOrFail,
3784
3808
  rr as installPlugins,
3785
- vo as modals,
3786
- Kl as numberInput,
3787
- Ql as objectInput,
3788
- Vl as onCleanMounted,
3809
+ go as modals,
3810
+ Wl as numberInput,
3811
+ Kl as objectInput,
3812
+ Hl as onCleanMounted,
3789
3813
  mt as onFormFocus,
3790
- Ll as persistent,
3791
- mr as reactiveSet,
3814
+ Vl as persistent,
3815
+ fr as reactiveSet,
3792
3816
  Pl as registerErrorHandler,
3793
3817
  br as renderMarkdown,
3794
- dt as renderVNode,
3795
- Al as replaceExisting,
3796
- Fl as requiredBooleanInput,
3797
- Ul as requiredDateInput,
3798
- Ol as requiredEnumInput,
3799
- Nl as requiredNumberInput,
3800
- Wl as requiredObjectInput,
3801
- ma as requiredStringInput,
3818
+ pt as renderVNode,
3819
+ ql as replaceExisting,
3820
+ jl as requiredBooleanInput,
3821
+ Fl as requiredDateInput,
3822
+ Ul as requiredEnumInput,
3823
+ Ol as requiredNumberInput,
3824
+ Nl as requiredObjectInput,
3825
+ fa as requiredStringInput,
3802
3826
  Xs as resetPiniaStore,
3803
- ht as safeHtml,
3804
- Rl as setMarkdownRouter,
3805
- bo as showModal,
3806
- Jl as stringInput,
3807
- yt as translate,
3827
+ gt as safeHtml,
3828
+ zl as setMarkdownRouter,
3829
+ vo as showModal,
3830
+ Ql as stringInput,
3831
+ wt as translate,
3808
3832
  S as translateWithDefault,
3809
3833
  vn as useAlertModal,
3810
3834
  yn as useConfirmModal,
3811
3835
  Wn as useErrorReportModal,
3812
- Ml as useEvent,
3813
- ft as useForm,
3814
- Ae as useInputAttrs,
3836
+ Tl as useEvent,
3837
+ ht as useForm,
3838
+ Pe as useInputAttrs,
3815
3839
  la as useLoadingModal,
3816
- Pe as useModal,
3817
- fa as usePromptModal,
3840
+ Ae as useModal,
3841
+ ma as usePromptModal,
3818
3842
  dr as validate,
3819
3843
  cr as validateType,
3820
3844
  ge as validators,
3821
- pt as variantClasses
3845
+ ft as variantClasses
3822
3846
  };
3823
3847
  //# sourceMappingURL=aerogel-core.js.map