@aerogel/core 0.0.0-next.c3236837f7f8fc319a4a56022accb32757b3db89 → 0.0.0-next.c38a10cd5e81c5f04469ef79e59a53e6bfd3df55

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,7 +1,7 @@
1
1
  var Ct = Object.defineProperty;
2
2
  var kt = (t, s, e) => s in t ? Ct(t, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[s] = e;
3
3
  var _ = (t, s, e) => kt(t, typeof s != "symbol" ? s + "" : s, e);
4
- import { markRaw as A, Comment as St, Text as Mt, Static as Et, inject as Z, reactive as pe, nextTick as Oe, unref as o, defineComponent as g, computed as u, createBlock as h, openBlock as c, mergeProps as H, withCtx as f, renderSlot as w, createPropsRestProxy as N, onUnmounted as ge, ref as B, readonly as ve, useAttrs as Ne, onMounted as Ht, watch as Ee, toRaw as Vt, watchEffect as X, createVNode as m, normalizeProps as ne, guardReactiveProps as ae, createTextVNode as P, toDisplayString as k, normalizeClass as C, createElementBlock as b, Fragment as j, renderList as F, provide as le, resolveDynamicComponent as W, useSlots as He, createCommentVNode as M, createElementVNode as y, h as Lt, toRef as Pe, useTemplateRef as Y, withModifiers as We, withDirectives as Ke, vModelCheckbox as Tt, normalizeStyle as It, createApp as Rt, vModelText as At } from "vue";
4
+ import { markRaw as A, Comment as St, Text as Mt, Static as Et, inject as Z, reactive as pe, nextTick as Oe, unref as o, defineComponent as g, computed as u, createBlock as h, openBlock as c, mergeProps as H, withCtx as f, renderSlot as w, createPropsRestProxy as N, onUnmounted as ge, ref as B, readonly as ve, useAttrs as Ne, onMounted as Ht, watch as Ee, toRaw as Vt, watchEffect as X, createVNode as m, normalizeProps as ne, guardReactiveProps as ae, createTextVNode as P, toDisplayString as k, normalizeClass as C, createElementBlock as b, Fragment as j, renderList as F, provide as le, resolveDynamicComponent as W, useSlots as He, createCommentVNode as M, createElementVNode as y, h as Tt, toRef as Pe, useTemplateRef as Y, withModifiers as We, withDirectives as Ke, vModelCheckbox as Lt, normalizeStyle as It, createApp as Rt, vModelText as At } from "vue";
5
5
  import { JSError as be, tap as G, MagicObject as Qe, PromisedValue as K, Storage as U, objectOnly as oe, arrayFrom as Je, isEmpty as xe, objectDeepClone as Pt, fail as Q, facade as ee, arrayRemove as Se, getEnv as zt, updateLocationQueryParameters as Dt, forever as jt, toString as q, isDevelopment as se, isTesting as Ve, after as ce, uuid as re, required as Bt, isObject as ue, objectWithoutEmpty as Ze, stringMatchAll as Xe, objectWithout as qt, noop as Ft, debounce as Ut, value as Ot, isInstanceOf as ze, stringExcerpt as Nt, arraySorted as Wt, ListenersManager as Kt, toError as Qt, round as Jt } from "@noeldemartin/utils";
6
6
  import O from "virtual:aerogel";
7
7
  import { createPinia as Zt, setActivePinia as Xt, defineStore as Yt } from "pinia";
@@ -10,23 +10,23 @@ import { marked as es, Renderer as De } from "marked";
10
10
  import ts from "clsx";
11
11
  import { cva as ss } from "class-variance-authority";
12
12
  import { twMerge as rs } from "tailwind-merge";
13
- import { Primitive as ns, SelectValue as je, SelectTrigger as as, SelectIcon as ls, SelectItem as os, SelectItemText as is, SelectPortal as cs, SelectContent as us, SelectViewport as ds, SelectRoot as ps, Label as ms, useForwardExpose as Le, SwitchRoot as fs, SwitchThumb as hs, DialogRoot as gs, DialogPortal as vs, DialogContent as bs, DialogDescription as ys, DialogOverlay as ws, DialogTitle as $s, ToastClose as _s, ToastRoot as xs, ToastProvider as Cs, ToastViewport as ks, DropdownMenuItem as Ss, DropdownMenuContent as Ms, DropdownMenuRoot as Es, DropdownMenuTrigger as Hs, DropdownMenuPortal as Vs } from "reka-ui";
13
+ import { Primitive as ns, SelectValue as je, SelectTrigger as as, SelectIcon as ls, SelectItem as os, SelectItemText as is, SelectPortal as cs, SelectContent as us, SelectViewport as ds, SelectRoot as ps, Label as ms, useForwardExpose as Te, SwitchRoot as fs, SwitchThumb as hs, DialogRoot as gs, DialogPortal as vs, DialogContent as bs, DialogDescription as ys, DialogOverlay as ws, DialogTitle as $s, ToastClose as _s, ToastRoot as xs, ToastProvider as Cs, ToastViewport as ks, DropdownMenuItem as Ss, DropdownMenuContent as Ms, DropdownMenuRoot as Es, DropdownMenuTrigger as Hs, DropdownMenuPortal as Vs } from "reka-ui";
14
14
  class Me extends be {
15
15
  constructor(s, e) {
16
16
  super(`Service '${s}' failed booting`, { cause: e });
17
17
  }
18
18
  }
19
- let Te = null;
19
+ let Le = null;
20
20
  function Ye() {
21
- return Te ?? Ls();
21
+ return Le ?? Ts();
22
22
  }
23
- function Ls() {
23
+ function Ts() {
24
24
  return G(Zt(), (t) => {
25
- Te = t, Xt(t);
25
+ Le = t, Xt(t);
26
26
  });
27
27
  }
28
- function Ts() {
29
- return Te ?? Ye();
28
+ function Ls() {
29
+ return Le ?? Ye();
30
30
  }
31
31
  function Is(t, s) {
32
32
  return Ye(), Yt(t, s)();
@@ -183,7 +183,7 @@ let we = (ke = class extends Qe {
183
183
  return this._store ? this._store : Q(`Failed getting '${this._name}' store`);
184
184
  }
185
185
  }, _(ke, "persist", []), ke);
186
- const Ua = {
186
+ const Na = {
187
187
  Low: -256,
188
188
  Default: 0,
189
189
  High: 256
@@ -241,8 +241,8 @@ class Rs extends we {
241
241
  i.includes(a) || (i.push(a), i.sort((p, x) => x - p), l[a] = []), ($ = l[a]) == null || $.push(n);
242
242
  }
243
243
  }
244
- const T = ee(Rs);
245
- function Oa(t) {
244
+ const L = ee(Rs);
245
+ function Wa(t) {
246
246
  return t;
247
247
  }
248
248
  const As = ye({
@@ -297,11 +297,11 @@ class Ps extends As {
297
297
  return ((r = this.instance) == null ? void 0 : r.config.globalProperties[e]) ?? null;
298
298
  }
299
299
  async boot() {
300
- T.once("application-ready", () => this.ready.resolve()), T.once("application-mounted", () => this.mounted.resolve());
300
+ L.once("application-ready", () => this.ready.resolve()), L.once("application-mounted", () => this.mounted.resolve());
301
301
  }
302
302
  }
303
303
  const D = ee(Ps);
304
- function Na(t) {
304
+ function Ka(t) {
305
305
  return t;
306
306
  }
307
307
  async function zs(t, ...s) {
@@ -316,7 +316,7 @@ async function zs(t, ...s) {
316
316
  function Ds(t) {
317
317
  return Object.entries(t.props ?? {}).reduce((s, [e, r]) => s + `${e}="${q(r)}"`, "");
318
318
  }
319
- function Wa(t) {
319
+ function Qa(t) {
320
320
  return t;
321
321
  }
322
322
  function js(t) {
@@ -379,14 +379,14 @@ class Os extends we {
379
379
  });
380
380
  }
381
381
  }
382
- const Ka = ee(Os);
382
+ const Ja = ee(Os);
383
383
  class Ns extends we {
384
384
  async purge() {
385
- await T.emit("purge-storage");
385
+ await L.emit("purge-storage");
386
386
  }
387
387
  }
388
388
  const Ws = ee(Ns);
389
- function Qa(t, s) {
389
+ function Za(t, s) {
390
390
  return {
391
391
  ...t,
392
392
  ...oe(s, Object.keys(t))
@@ -394,7 +394,7 @@ function Qa(t, s) {
394
394
  }
395
395
  const Ks = {
396
396
  $app: D,
397
- $events: T,
397
+ $events: L,
398
398
  $storage: Ws
399
399
  };
400
400
  async function $e(t, s) {
@@ -414,7 +414,7 @@ const Qs = {
414
414
  ...Ks,
415
415
  ...s.services
416
416
  };
417
- t.use(Ts()), (r = s.settings) == null || r.forEach((n) => D.addSetting(n)), await $e(t, e);
417
+ t.use(Ls()), (r = s.settings) == null || r.forEach((n) => D.addSetting(n)), await $e(t, e);
418
418
  }
419
419
  }, et = 768, me = {
420
420
  Mobile: "mobile",
@@ -548,7 +548,7 @@ class Zs extends Js {
548
548
  await this.removeModal(e, r);
549
549
  return;
550
550
  }
551
- await T.emit("close-modal", { id: e, result: r });
551
+ await L.emit("close-modal", { id: e, result: r });
552
552
  }
553
553
  async closeAllModals() {
554
554
  for (; this.modals.length > 0; )
@@ -565,16 +565,16 @@ class Zs extends Js {
565
565
  ), (a = (n = this.modalCallbacks[e]) == null ? void 0 : n.hasClosed) == null || a.call(n, r), delete this.modalCallbacks[e];
566
566
  }
567
567
  watchModalEvents() {
568
- T.on("modal-will-close", ({ modal: { id: e }, result: r }) => {
568
+ L.on("modal-will-close", ({ modal: { id: e }, result: r }) => {
569
569
  var a, i;
570
570
  const n = this.modals.find((l) => e === l.id);
571
571
  n && (n.closing = !0), (i = (a = this.modalCallbacks[e]) == null ? void 0 : a.willClose) == null || i.call(a, r);
572
- }), T.on("modal-has-closed", async ({ modal: { id: e }, result: r }) => {
572
+ }), L.on("modal-has-closed", async ({ modal: { id: e }, result: r }) => {
573
573
  await this.removeModal(e, r);
574
574
  });
575
575
  }
576
576
  watchMountedEvent() {
577
- T.once("application-mounted", async () => {
577
+ L.once("application-mounted", async () => {
578
578
  if (!globalThis.document || !globalThis.getComputedStyle)
579
579
  return;
580
580
  const e = globalThis.document.getElementById("splash");
@@ -688,7 +688,7 @@ class tr extends er {
688
688
  R.modal(R.requireComponent("error-report-modal"), { report: n, reports: a });
689
689
  }
690
690
  async report(e, r) {
691
- if (await T.emit("error", { error: e, message: r }), Ve("unit") || (se() && this.logError(e), !this.enabled))
691
+ if (await L.emit("error", { error: e, message: r }), Ve("unit") || (se() && this.logError(e), !this.enabled))
692
692
  throw e;
693
693
  if (!D.isMounted()) {
694
694
  const i = await this.createStartupErrorReport(e);
@@ -790,7 +790,7 @@ function nr(t) {
790
790
  function ar() {
791
791
  return ie;
792
792
  }
793
- function Ja(t) {
793
+ function Xa(t) {
794
794
  ie = t;
795
795
  }
796
796
  function lr(t) {
@@ -976,22 +976,45 @@ function ir(t) {
976
976
  return typeof t == "object" && t !== null && "label" in t;
977
977
  }
978
978
  function lt(t, s) {
979
- const e = T.on(t, s);
979
+ const e = L.on(t, s);
980
980
  ge(() => e());
981
981
  }
982
982
  const cr = {
983
983
  required: (t) => t ? void 0 : "required"
984
- }, de = { ...cr };
985
- function Za(t, s) {
984
+ };
985
+ function ur(t, s) {
986
+ var e;
987
+ if (t == null)
988
+ return !0;
989
+ switch (s.type) {
990
+ case "string":
991
+ return typeof t == "string";
992
+ case "enum":
993
+ return !!((e = s.values) != null && e.includes(t));
994
+ case "number":
995
+ return typeof t == "number";
996
+ case "boolean":
997
+ return typeof t == "boolean";
998
+ case "date":
999
+ return t instanceof Date;
1000
+ case "object":
1001
+ return typeof t == "object";
1002
+ }
1003
+ }
1004
+ const de = { ...cr };
1005
+ function Ya(t, s) {
986
1006
  de[t] = s;
987
1007
  }
988
- function ur(t, s) {
1008
+ function dr(t, s) {
1009
+ return ur(t, s) ? [] : ["invalid_value"];
1010
+ }
1011
+ function pr(t, s) {
989
1012
  var r;
990
1013
  const e = (r = de[s]) == null ? void 0 : r.call(de, t);
991
1014
  return e ? Je(e) : [];
992
1015
  }
993
- const Xa = Symbol(), Be = /* @__PURE__ */ new WeakMap();
994
- class dr extends Qe {
1016
+ const Ga = Symbol(), Be = /* @__PURE__ */ new WeakMap();
1017
+ class mr extends Qe {
995
1018
  constructor(e) {
996
1019
  super();
997
1020
  _(this, "errors");
@@ -1070,8 +1093,9 @@ class dr extends Qe {
1070
1093
  getFieldErrors(e, r) {
1071
1094
  var l;
1072
1095
  const n = [], a = this._data[e], i = ((l = r.rules) == null ? void 0 : l.split("|")) ?? [];
1096
+ n.push(...dr(a, r));
1073
1097
  for (const d of i)
1074
- d !== "required" && a == null || n.push(...ur(a, d));
1098
+ d !== "required" && a == null || n.push(...pr(a, d));
1075
1099
  return n.length > 0 ? n : null;
1076
1100
  }
1077
1101
  getInitialData(e) {
@@ -1099,25 +1123,25 @@ function ot(t, s) {
1099
1123
  ge(() => r == null ? void 0 : r());
1100
1124
  }
1101
1125
  function it(t) {
1102
- return new dr(t);
1126
+ return new mr(t);
1103
1127
  }
1104
1128
  function Ie() {
1105
1129
  const t = Ne(), s = u(() => t.class);
1106
1130
  return [u(() => qt(t, "class")), s];
1107
1131
  }
1108
- function Ya(t) {
1132
+ function el(t) {
1109
1133
  let s = Ft;
1110
1134
  Ht(() => s = t()), ge(() => s());
1111
1135
  }
1112
- function Ga(t, s) {
1136
+ function tl(t, s) {
1113
1137
  const e = pe(U.get(t) ?? s);
1114
1138
  return Ee(e, () => U.set(t, Vt(e))), e;
1115
1139
  }
1116
- function el(t) {
1140
+ function sl(t) {
1117
1141
  const s = B(), e = u(t);
1118
1142
  return Ee(e, async () => s.value = await e.value, { immediate: !0 }), s;
1119
1143
  }
1120
- function tl(t, s) {
1144
+ function rl(t, s) {
1121
1145
  const e = s ? t : {}, r = s ?? t, n = B(e.initial ?? null), a = Ut((i) => n.value = i, e.delay ?? 300);
1122
1146
  return X(() => a(r())), n;
1123
1147
  }
@@ -1235,7 +1259,7 @@ const ct = /* @__PURE__ */ g({
1235
1259
  _: 3
1236
1260
  }));
1237
1261
  }
1238
- }), pr = /* @__PURE__ */ g({
1262
+ }), fr = /* @__PURE__ */ g({
1239
1263
  inheritAttrs: !1,
1240
1264
  __name: "HeadlessSelect",
1241
1265
  props: {
@@ -1294,14 +1318,14 @@ const ct = /* @__PURE__ */ g({
1294
1318
  return le("select", v), s(v), (p, x) => (c(), h(o(ps), {
1295
1319
  "model-value": i.value,
1296
1320
  by: p.compareOptions,
1297
- "onUpdate:modelValue": x[0] || (x[0] = (L) => $(L))
1321
+ "onUpdate:modelValue": x[0] || (x[0] = (T) => $(T))
1298
1322
  }, {
1299
- default: f(({ open: L }) => [
1323
+ default: f(({ open: T }) => [
1300
1324
  (c(), h(W(p.as), ne(ae(p.$attrs)), {
1301
1325
  default: f(() => [
1302
1326
  w(p.$slots, "default", {
1303
1327
  modelValue: p.modelValue,
1304
- open: L
1328
+ open: T
1305
1329
  }, () => [
1306
1330
  m(ut),
1307
1331
  m(pt)
@@ -1429,20 +1453,20 @@ const ct = /* @__PURE__ */ g({
1429
1453
  _: 3
1430
1454
  }, 8, ["class"]));
1431
1455
  }
1432
- }), mr = {
1456
+ }), hr = {
1433
1457
  viewBox: "0 0 20 20",
1434
1458
  width: "1.2em",
1435
1459
  height: "1.2em"
1436
1460
  };
1437
- function fr(t, s) {
1438
- return c(), b("svg", mr, s[0] || (s[0] = [
1461
+ function gr(t, s) {
1462
+ return c(), b("svg", hr, s[0] || (s[0] = [
1439
1463
  y("path", {
1440
1464
  fill: "currentColor",
1441
1465
  d: "m9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828L5.757 6.586L4.343 8z"
1442
1466
  }, null, -1)
1443
1467
  ]));
1444
1468
  }
1445
- const hr = A({ name: "zondicons-cheveron-down", render: fr }), ht = /* @__PURE__ */ g({
1469
+ const vr = A({ name: "zondicons-cheveron-down", render: gr }), ht = /* @__PURE__ */ g({
1446
1470
  __name: "SelectTrigger",
1447
1471
  props: {
1448
1472
  class: {}
@@ -1459,12 +1483,12 @@ const hr = A({ name: "zondicons-cheveron-down", render: fr }), ht = /* @__PURE__
1459
1483
  }, {
1460
1484
  default: f(() => [
1461
1485
  m(ct, { class: "col-start-1 row-start-1 truncate pr-6" }),
1462
- m(o(hr), { class: "col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4" })
1486
+ m(o(vr), { class: "col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4" })
1463
1487
  ]),
1464
1488
  _: 1
1465
1489
  }, 8, ["class"]));
1466
1490
  }
1467
- }), gr = /* @__PURE__ */ g({
1491
+ }), br = /* @__PURE__ */ g({
1468
1492
  __name: "Select",
1469
1493
  props: {
1470
1494
  as: {},
@@ -1483,8 +1507,8 @@ const hr = A({ name: "zondicons-cheveron-down", render: fr }), ht = /* @__PURE__
1483
1507
  },
1484
1508
  emits: ["update:modelValue"],
1485
1509
  setup(t) {
1486
- const { forwardRef: s } = Le();
1487
- return (e, r) => (c(), h(pr, H({ ref: o(s) }, e.$props, {
1510
+ const { forwardRef: s } = Te();
1511
+ return (e, r) => (c(), h(fr, H({ ref: o(s) }, e.$props, {
1488
1512
  "onUpdate:modelValue": r[0] || (r[0] = (n) => e.$emit("update:modelValue", n))
1489
1513
  }), {
1490
1514
  default: f(() => [
@@ -1497,7 +1521,7 @@ const hr = A({ name: "zondicons-cheveron-down", render: fr }), ht = /* @__PURE__
1497
1521
  _: 3
1498
1522
  }, 16));
1499
1523
  }
1500
- }), vr = { class: "grow" }, br = /* @__PURE__ */ g({
1524
+ }), yr = { class: "grow" }, wr = /* @__PURE__ */ g({
1501
1525
  __name: "Language",
1502
1526
  setup(t) {
1503
1527
  const s = J.getBrowserLocale(), e = u(() => [null, ...J.locales]);
@@ -1506,7 +1530,7 @@ const hr = A({ name: "zondicons-cheveron-down", render: fr }), ht = /* @__PURE__
1506
1530
  locale: O.locales[s] ?? s
1507
1531
  });
1508
1532
  }
1509
- return (n, a) => (c(), h(gr, {
1533
+ return (n, a) => (c(), h(br, {
1510
1534
  modelValue: n.$lang.locale,
1511
1535
  "onUpdate:modelValue": a[0] || (a[0] = (i) => n.$lang.locale = i),
1512
1536
  class: "flex flex-col items-start md:flex-row",
@@ -1515,7 +1539,7 @@ const hr = A({ name: "zondicons-cheveron-down", render: fr }), ht = /* @__PURE__
1515
1539
  "render-option": r
1516
1540
  }, {
1517
1541
  default: f(() => [
1518
- y("div", vr, [
1542
+ y("div", yr, [
1519
1543
  m(mt, { class: "text-base font-semibold" }, {
1520
1544
  default: f(() => [
1521
1545
  P(k(n.$td("settings.locale", "Language")), 1)
@@ -1538,17 +1562,17 @@ const hr = A({ name: "zondicons-cheveron-down", render: fr }), ht = /* @__PURE__
1538
1562
  _: 1
1539
1563
  }, 8, ["modelValue", "options"]));
1540
1564
  }
1541
- }), yr = [
1565
+ }), $r = [
1542
1566
  {
1543
1567
  priority: 100,
1544
- component: br
1568
+ component: wr
1545
1569
  }
1546
- ], wr = { $lang: J }, $r = {
1570
+ ], _r = { $lang: J }, xr = {
1547
1571
  async install(t) {
1548
1572
  var s;
1549
- (s = t.config.globalProperties).$t ?? (s.$t = st), t.config.globalProperties.$td = S, yr.forEach((e) => D.addSetting(e)), await $e(t, wr);
1573
+ (s = t.config.globalProperties).$t ?? (s.$t = st), t.config.globalProperties.$td = S, $r.forEach((e) => D.addSetting(e)), await $e(t, _r);
1550
1574
  }
1551
- }, _r = /* @__PURE__ */ g({
1575
+ }, Cr = /* @__PURE__ */ g({
1552
1576
  __name: "Markdown",
1553
1577
  props: {
1554
1578
  as: {},
@@ -1565,7 +1589,7 @@ const hr = A({ name: "zondicons-cheveron-down", render: fr }), ht = /* @__PURE__
1565
1589
  return null;
1566
1590
  let l = lr(r.value);
1567
1591
  return t.inline && (l = l.replace("<p>", "<span>").replace("</p>", "</span>")), l;
1568
- }), a = () => Lt(t.as ?? (t.inline ? "span" : "div"), {
1592
+ }), a = () => Tt(t.as ?? (t.inline ? "span" : "div"), {
1569
1593
  innerHTML: n.value,
1570
1594
  onClick: i,
1571
1595
  ...s,
@@ -1586,12 +1610,12 @@ const hr = A({ name: "zondicons-cheveron-down", render: fr }), ht = /* @__PURE__
1586
1610
  }
1587
1611
  return (l, d) => (c(), h(a));
1588
1612
  }
1589
- }), xr = (t, s) => {
1613
+ }), kr = (t, s) => {
1590
1614
  const e = t.__vccOpts || t;
1591
1615
  for (const [r, n] of s)
1592
1616
  e[r] = n;
1593
1617
  return e;
1594
- }, I = /* @__PURE__ */ xr(_r, [["__scopeId", "data-v-8b211cfb"]]), Cr = { class: "flex-grow" }, kr = ["id"], Sr = /* @__PURE__ */ g({
1618
+ }, I = /* @__PURE__ */ kr(Cr, [["__scopeId", "data-v-8b211cfb"]]), Sr = { class: "flex-grow" }, Mr = ["id"], Er = /* @__PURE__ */ g({
1595
1619
  __name: "Setting",
1596
1620
  props: {
1597
1621
  title: {},
@@ -1605,11 +1629,11 @@ const hr = A({ name: "zondicons-cheveron-down", render: fr }), ht = /* @__PURE__
1605
1629
  return (e, r) => (c(), b("div", {
1606
1630
  class: C(["mt-4 flex", { "flex-col": e.layout === "vertical" }])
1607
1631
  }, [
1608
- y("div", Cr, [
1632
+ y("div", Sr, [
1609
1633
  y("h3", {
1610
1634
  id: e.titleId,
1611
1635
  class: "text-base font-semibold"
1612
- }, k(e.title), 9, kr),
1636
+ }, k(e.title), 9, Mr),
1613
1637
  e.description ? (c(), h(I, {
1614
1638
  key: 0,
1615
1639
  text: e.description,
@@ -1623,7 +1647,7 @@ const hr = A({ name: "zondicons-cheveron-down", render: fr }), ht = /* @__PURE__
1623
1647
  ], 2)
1624
1648
  ], 2));
1625
1649
  }
1626
- }), Mr = ["for"], Er = /* @__PURE__ */ g({
1650
+ }), Hr = ["for"], Vr = /* @__PURE__ */ g({
1627
1651
  inheritAttrs: !1,
1628
1652
  __name: "HeadlessSwitch",
1629
1653
  props: {
@@ -1666,7 +1690,7 @@ const hr = A({ name: "zondicons-cheveron-down", render: fr }), ht = /* @__PURE__
1666
1690
  key: 0,
1667
1691
  for: i.id,
1668
1692
  class: C(l.labelClass)
1669
- }, k(l.label), 11, Mr)) : M("", !0),
1693
+ }, k(l.label), 11, Hr)) : M("", !0),
1670
1694
  m(o(fs), H({
1671
1695
  id: i.id,
1672
1696
  name: l.name,
@@ -1684,16 +1708,16 @@ const hr = A({ name: "zondicons-cheveron-down", render: fr }), ht = /* @__PURE__
1684
1708
  }, 16, ["id", "name", "model-value", "class"])
1685
1709
  ], 2));
1686
1710
  }
1687
- }), Hr = /* @__PURE__ */ g({
1711
+ }), Tr = /* @__PURE__ */ g({
1688
1712
  __name: "Switch",
1689
1713
  setup(t) {
1690
- return (s, e) => (c(), h(Er, {
1714
+ return (s, e) => (c(), h(Vr, {
1691
1715
  class: "flex flex-row items-center gap-1",
1692
1716
  "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",
1693
1717
  "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"
1694
1718
  }));
1695
1719
  }
1696
- }), Vr = /* @__PURE__ */ g({
1720
+ }), Lr = /* @__PURE__ */ g({
1697
1721
  __name: "Debug",
1698
1722
  setup(t) {
1699
1723
  let s = null;
@@ -1704,13 +1728,13 @@ const hr = A({ name: "zondicons-cheveron-down", render: fr }), ht = /* @__PURE__
1704
1728
  return;
1705
1729
  }
1706
1730
  s ?? (s = (await import("eruda")).default), s.init();
1707
- }), (r, n) => (c(), h(Sr, {
1731
+ }), (r, n) => (c(), h(Er, {
1708
1732
  "title-id": "debug-setting",
1709
1733
  title: r.$td("settings.debug", "Debugging"),
1710
1734
  description: r.$td("settings.debugDescription", "Enable debugging with [Eruda](https://eruda.liriliri.io/).")
1711
1735
  }, {
1712
1736
  default: f(() => [
1713
- m(Hr, {
1737
+ m(Tr, {
1714
1738
  modelValue: e.value,
1715
1739
  "onUpdate:modelValue": n[0] || (n[0] = (a) => e.value = a),
1716
1740
  "aria-labelledby": "debug-setting"
@@ -1719,13 +1743,13 @@ const hr = A({ name: "zondicons-cheveron-down", render: fr }), ht = /* @__PURE__
1719
1743
  _: 1
1720
1744
  }, 8, ["title", "description"]));
1721
1745
  }
1722
- }), Lr = [
1746
+ }), Ir = [
1723
1747
  {
1724
1748
  priority: 10,
1725
- component: Vr
1749
+ component: Lr
1726
1750
  }
1727
1751
  ], gt = [];
1728
- function sl(t) {
1752
+ function nl(t) {
1729
1753
  gt.push(t);
1730
1754
  }
1731
1755
  function vt(t) {
@@ -1738,36 +1762,36 @@ function vt(t) {
1738
1762
  }
1739
1763
  class Ue extends be {
1740
1764
  }
1741
- const Tr = { $errors: rt }, Ir = (t) => (rt.report(t), !0);
1742
- function Rr(t, s = () => !1) {
1743
- const e = (r) => s(r) || Ir(r);
1765
+ const Rr = { $errors: rt }, Ar = (t) => (rt.report(t), !0);
1766
+ function Pr(t, s = () => !1) {
1767
+ const e = (r) => s(r) || Ar(r);
1744
1768
  t.config.errorHandler = e, globalThis.onerror = (r, n, a, i, l) => e(l ?? r), globalThis.onunhandledrejection = (r) => e(r.reason);
1745
1769
  }
1746
- const Ar = {
1770
+ const zr = {
1747
1771
  async install(t, s) {
1748
- Rr(t, s.handleError), Lr.forEach((e) => D.addSetting(e)), await $e(t, Tr);
1772
+ Pr(t, s.handleError), Ir.forEach((e) => D.addSetting(e)), await $e(t, Rr);
1749
1773
  }
1750
- }, Pr = {
1774
+ }, Dr = {
1751
1775
  async install() {
1752
1776
  Ve() && (globalThis.testingRuntime = {
1753
- on: (...t) => T.on(...t),
1777
+ on: (...t) => L.on(...t),
1754
1778
  service: (t) => D.service(t)
1755
1779
  });
1756
1780
  }
1757
- }, zr = {
1781
+ }, jr = {
1758
1782
  viewBox: "0 0 20 20",
1759
1783
  width: "1.2em",
1760
1784
  height: "1.2em"
1761
1785
  };
1762
- function Dr(t, s) {
1763
- return c(), b("svg", zr, s[0] || (s[0] = [
1786
+ function Br(t, s) {
1787
+ return c(), b("svg", jr, s[0] || (s[0] = [
1764
1788
  y("path", {
1765
1789
  fill: "currentColor",
1766
1790
  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"
1767
1791
  }, null, -1)
1768
1792
  ]));
1769
1793
  }
1770
- const jr = A({ name: "zondicons-close", render: Dr }), Br = /* @__PURE__ */ g({
1794
+ const qr = A({ name: "zondicons-close", render: Br }), Fr = /* @__PURE__ */ g({
1771
1795
  __name: "HeadlessModal",
1772
1796
  props: {
1773
1797
  persistent: { type: Boolean },
@@ -1782,12 +1806,12 @@ const jr = A({ name: "zondicons-close", render: Dr }), Br = /* @__PURE__ */ g({
1782
1806
  "could not obtain modal reference from <HeadlessModal>, did you render this component manually? Show it using $ui.modal() instead"
1783
1807
  );
1784
1808
  s({ close: i, $content: e });
1785
- const { forwardRef: n } = Le(), a = B(!1);
1809
+ const { forwardRef: n } = Te(), a = B(!1);
1786
1810
  le("$modalContentRef", e), lt("close-modal", async ({ id: l, result: d }) => {
1787
1811
  l === r.id && await i(d);
1788
1812
  });
1789
1813
  async function i(l) {
1790
- a.value || (await T.emit("modal-will-close", { modal: r, result: l }), a.value = !0, await T.emit("modal-has-closed", { modal: r, result: l }));
1814
+ a.value || (await L.emit("modal-will-close", { modal: r, result: l }), a.value = !0, await L.emit("modal-has-closed", { modal: r, result: l }));
1791
1815
  }
1792
1816
  return (l, d) => (c(), h(o(gs), {
1793
1817
  ref: o(n),
@@ -1823,7 +1847,7 @@ const jr = A({ name: "zondicons-close", render: Dr }), Br = /* @__PURE__ */ g({
1823
1847
  childIndex: Pe(s, "childIndex")
1824
1848
  }), (r, n) => (c(), h(W(r.modal.component), ne(ae(e.value)), null, 16));
1825
1849
  }
1826
- }), qr = /* @__PURE__ */ g({
1850
+ }), Ur = /* @__PURE__ */ g({
1827
1851
  __name: "HeadlessModalContent",
1828
1852
  setup(t) {
1829
1853
  const { childIndex: s = 0 } = V(
@@ -1842,7 +1866,7 @@ const jr = A({ name: "zondicons-close", render: Dr }), Br = /* @__PURE__ */ g({
1842
1866
  _: 3
1843
1867
  }, 512));
1844
1868
  }
1845
- }), Fr = /* @__PURE__ */ g({
1869
+ }), Or = /* @__PURE__ */ g({
1846
1870
  __name: "HeadlessModalDescription",
1847
1871
  props: {
1848
1872
  asChild: { type: Boolean },
@@ -1856,7 +1880,7 @@ const jr = A({ name: "zondicons-close", render: Dr }), Br = /* @__PURE__ */ g({
1856
1880
  _: 3
1857
1881
  }, 16));
1858
1882
  }
1859
- }), Ur = /* @__PURE__ */ g({
1883
+ }), Nr = /* @__PURE__ */ g({
1860
1884
  __name: "HeadlessModalOverlay",
1861
1885
  props: {
1862
1886
  forceMount: { type: Boolean },
@@ -1871,7 +1895,7 @@ const jr = A({ name: "zondicons-close", render: Dr }), Br = /* @__PURE__ */ g({
1871
1895
  _: 3
1872
1896
  }, 16));
1873
1897
  }
1874
- }), Or = /* @__PURE__ */ g({
1898
+ }), Wr = /* @__PURE__ */ g({
1875
1899
  __name: "HeadlessModalTitle",
1876
1900
  props: {
1877
1901
  asChild: { type: Boolean },
@@ -1885,10 +1909,10 @@ const jr = A({ name: "zondicons-close", render: Dr }), Br = /* @__PURE__ */ g({
1885
1909
  _: 3
1886
1910
  }, 16));
1887
1911
  }
1888
- }), Nr = {
1912
+ }), Kr = {
1889
1913
  key: 0,
1890
1914
  class: "absolute top-0 right-0 hidden pt-3.5 pr-2.5 sm:block"
1891
- }, Wr = ["onClick"], Kr = { class: "sr-only" }, te = /* @__PURE__ */ g({
1915
+ }, Qr = ["onClick"], Jr = { class: "sr-only" }, te = /* @__PURE__ */ g({
1892
1916
  __name: "Modal",
1893
1917
  props: {
1894
1918
  persistent: { type: Boolean },
@@ -1912,7 +1936,7 @@ const jr = A({ name: "zondicons-close", render: Dr }), Br = /* @__PURE__ */ g({
1912
1936
  return (p = a.value) == null ? void 0 : p.$content;
1913
1937
  })
1914
1938
  });
1915
- const { forwardRef: r, currentRef: n } = Le(), a = n, i = V("modal"), l = u(() => !i.modal.closing && i.childIndex === R.openModals.length), d = u(() => t.description ? {} : { "aria-describedby": void 0 }), v = u(() => E("max-h-[90vh] overflow-auto px-4 pb-4", { "pt-4": !t.title || t.titleHidden }, t.class)), $ = u(() => E(
1939
+ const { forwardRef: r, currentRef: n } = Te(), a = n, i = V("modal"), l = u(() => !i.modal.closing && i.childIndex === R.openModals.length), d = u(() => t.description ? {} : { "aria-describedby": void 0 }), v = u(() => E("max-h-[90vh] overflow-auto px-4 pb-4", { "pt-4": !t.title || t.titleHidden }, t.class)), $ = u(() => E(
1916
1940
  "isolate fixed top-1/2 left-1/2 z-50 w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2",
1917
1941
  "overflow-hidden rounded-lg bg-white text-left shadow-xl sm:max-w-lg",
1918
1942
  "animate-[fade-in_var(--tw-duration)_ease-in-out,grow_var(--tw-duration)_ease-in-out]",
@@ -1925,30 +1949,30 @@ const jr = A({ name: "zondicons-close", render: Dr }), Br = /* @__PURE__ */ g({
1925
1949
  ));
1926
1950
  return lt("modal-will-close", async ({ modal: { id: p } }) => {
1927
1951
  p === i.modal.id && await ce({ ms: 300 });
1928
- }), (p, x) => (c(), h(Br, H(e, {
1929
- ref: (L) => o(r)(L),
1952
+ }), (p, x) => (c(), h(Fr, H(e, {
1953
+ ref: (T) => o(r)(T),
1930
1954
  persistent: p.persistent
1931
1955
  }), {
1932
- default: f(({ close: L }) => [
1933
- m(Ur, {
1956
+ default: f(({ close: T }) => [
1957
+ m(Nr, {
1934
1958
  class: C(["fixed inset-0 animate-[fade-in_var(--tw-duration)_ease-in-out] transition-opacity duration-300 will-change-[opacity]", {
1935
1959
  "bg-black/30": o(i).childIndex === 1,
1936
1960
  "opacity-0": o(i).childIndex === 1 && o(i).modal.closing
1937
1961
  }])
1938
1962
  }, null, 8, ["class"]),
1939
- m(qr, H(d.value, { class: $.value }), {
1963
+ m(Ur, H(d.value, { class: $.value }), {
1940
1964
  default: f(() => [
1941
- !p.persistent && !p.closeHidden ? (c(), b("div", Nr, [
1965
+ !p.persistent && !p.closeHidden ? (c(), b("div", Kr, [
1942
1966
  y("button", {
1943
1967
  type: "button",
1944
1968
  class: "clickable z-10 rounded-full p-2.5 text-gray-400 hover:text-gray-500",
1945
- onClick: (_e) => L()
1969
+ onClick: (_e) => T()
1946
1970
  }, [
1947
- y("span", Kr, k(p.$td("ui.close", "Close")), 1),
1948
- m(o(jr), { class: "size-4" })
1949
- ], 8, Wr)
1971
+ y("span", Jr, k(p.$td("ui.close", "Close")), 1),
1972
+ m(o(qr), { class: "size-4" })
1973
+ ], 8, Qr)
1950
1974
  ])) : M("", !0),
1951
- p.title ? (c(), h(Or, {
1975
+ p.title ? (c(), h(Wr, {
1952
1976
  key: 1,
1953
1977
  class: C(["px-4 pt-5 text-base font-semibold text-gray-900", {
1954
1978
  "sr-only": p.titleHidden,
@@ -1964,7 +1988,7 @@ const jr = A({ name: "zondicons-close", render: Dr }), Br = /* @__PURE__ */ g({
1964
1988
  ]),
1965
1989
  _: 1
1966
1990
  }, 8, ["class"])) : M("", !0),
1967
- p.description ? (c(), h(Fr, {
1991
+ p.description ? (c(), h(Or, {
1968
1992
  key: 2,
1969
1993
  class: C(["px-4 pt-1 pb-2", { "sr-only": p.descriptionHidden }])
1970
1994
  }, {
@@ -1979,7 +2003,7 @@ const jr = A({ name: "zondicons-close", render: Dr }), Br = /* @__PURE__ */ g({
1979
2003
  y("div", {
1980
2004
  class: C(v.value)
1981
2005
  }, [
1982
- w(p.$slots, "default", { close: L })
2006
+ w(p.$slots, "default", { close: T })
1983
2007
  ], 2)
1984
2008
  ]),
1985
2009
  _: 2
@@ -1989,18 +2013,18 @@ const jr = A({ name: "zondicons-close", render: Dr }), Br = /* @__PURE__ */ g({
1989
2013
  }, 16, ["persistent"]));
1990
2014
  }
1991
2015
  });
1992
- function Qr(t) {
2016
+ function Zr(t) {
1993
2017
  const s = u(() => t.title ?? S("ui.alert", "Alert")), e = u(() => !t.title);
1994
2018
  return { renderedTitle: s, titleHidden: e };
1995
2019
  }
1996
- const Jr = /* @__PURE__ */ g({
2020
+ const Xr = /* @__PURE__ */ g({
1997
2021
  __name: "AlertModal",
1998
2022
  props: {
1999
2023
  title: {},
2000
2024
  message: {}
2001
2025
  },
2002
2026
  setup(t, { expose: s }) {
2003
- const e = t, { renderedTitle: r, titleHidden: n } = Qr(e);
2027
+ const e = t, { renderedTitle: r, titleHidden: n } = Zr(e);
2004
2028
  return s(), (a, i) => (c(), h(te, {
2005
2029
  title: o(r),
2006
2030
  "title-hidden": o(n)
@@ -2033,7 +2057,7 @@ const Jr = /* @__PURE__ */ g({
2033
2057
  ], 32));
2034
2058
  }
2035
2059
  });
2036
- function Zr(t) {
2060
+ function Yr(t) {
2037
2061
  const s = it(
2038
2062
  Object.entries(t.checkboxes ?? {}).reduce(
2039
2063
  (i, [l, d]) => ({
@@ -2049,10 +2073,10 @@ function Zr(t) {
2049
2073
  ), e = u(() => t.title ?? S("ui.confirm", "Confirm")), r = u(() => !t.title), n = u(() => t.acceptText ?? S("ui.accept", "Ok")), a = u(() => t.cancelText ?? S("ui.cancel", "Cancel"));
2050
2074
  return { form: s, renderedTitle: e, titleHidden: r, renderedAcceptText: n, renderedCancelText: a };
2051
2075
  }
2052
- const Xr = {
2076
+ const Gr = {
2053
2077
  key: 0,
2054
2078
  class: "mt-4 flex flex-col text-sm text-gray-600"
2055
- }, Yr = { class: "flex items-center" }, Gr = ["onUpdate:modelValue", "required"], en = { class: "ml-1.5" }, tn = { class: "mt-4 flex flex-row-reverse gap-2" }, sn = /* @__PURE__ */ g({
2079
+ }, en = { class: "flex items-center" }, tn = ["onUpdate:modelValue", "required"], sn = { class: "ml-1.5" }, rn = { class: "mt-4 flex flex-row-reverse gap-2" }, nn = /* @__PURE__ */ g({
2056
2080
  __name: "ConfirmModal",
2057
2081
  props: {
2058
2082
  title: {},
@@ -2066,7 +2090,7 @@ const Xr = {
2066
2090
  required: { type: Boolean }
2067
2091
  },
2068
2092
  setup(t, { expose: s }) {
2069
- const e = N(t, ["cancelVariant"]), { form: r, renderedTitle: n, titleHidden: a, renderedAcceptText: i, renderedCancelText: l } = Zr(e);
2093
+ const e = N(t, ["cancelVariant"]), { form: r, renderedTitle: n, titleHidden: a, renderedAcceptText: i, renderedCancelText: l } = Yr(e);
2070
2094
  return s(), (d, v) => (c(), h(te, {
2071
2095
  title: o(n),
2072
2096
  "title-hidden": o(a),
@@ -2082,22 +2106,22 @@ const Xr = {
2082
2106
  text: d.message,
2083
2107
  actions: d.actions
2084
2108
  }, null, 8, ["text", "actions"]),
2085
- d.checkboxes ? (c(), b("ul", Xr, [
2109
+ d.checkboxes ? (c(), b("ul", Gr, [
2086
2110
  (c(!0), b(j, null, F(d.checkboxes, (p, x) => (c(), b("li", { key: x }, [
2087
- y("label", Yr, [
2111
+ y("label", en, [
2088
2112
  Ke(y("input", {
2089
- "onUpdate:modelValue": (L) => o(r)[x] = L,
2113
+ "onUpdate:modelValue": (T) => o(r)[x] = T,
2090
2114
  type: "checkbox",
2091
2115
  required: p.required,
2092
2116
  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"
2093
- }, null, 8, Gr), [
2094
- [Tt, o(r)[x]]
2117
+ }, null, 8, tn), [
2118
+ [Lt, o(r)[x]]
2095
2119
  ]),
2096
- y("span", en, k(p.label), 1)
2120
+ y("span", sn, k(p.label), 1)
2097
2121
  ])
2098
2122
  ]))), 128))
2099
2123
  ])) : M("", !0),
2100
- y("div", tn, [
2124
+ y("div", rn, [
2101
2125
  m(z, {
2102
2126
  variant: d.acceptVariant,
2103
2127
  submit: ""
@@ -2125,85 +2149,85 @@ const Xr = {
2125
2149
  _: 1
2126
2150
  }, 8, ["title", "title-hidden"]));
2127
2151
  }
2128
- }), rn = {
2152
+ }), an = {
2129
2153
  viewBox: "0 0 20 20",
2130
2154
  width: "1.2em",
2131
2155
  height: "1.2em"
2132
2156
  };
2133
- function nn(t, s) {
2134
- return c(), b("svg", rn, s[0] || (s[0] = [
2157
+ function ln(t, s) {
2158
+ return c(), b("svg", an, s[0] || (s[0] = [
2135
2159
  y("path", {
2136
2160
  fill: "currentColor",
2137
2161
  d: "M7.05 9.293L6.343 10L12 15.657l1.414-1.414L9.172 10l4.242-4.243L12 4.343z"
2138
2162
  }, null, -1)
2139
2163
  ]));
2140
2164
  }
2141
- const an = A({ name: "zondicons-cheveron-left", render: nn }), ln = {
2165
+ const on = A({ name: "zondicons-cheveron-left", render: ln }), cn = {
2142
2166
  viewBox: "0 0 20 20",
2143
2167
  width: "1.2em",
2144
2168
  height: "1.2em"
2145
2169
  };
2146
- function on(t, s) {
2147
- return c(), b("svg", ln, s[0] || (s[0] = [
2170
+ function un(t, s) {
2171
+ return c(), b("svg", cn, s[0] || (s[0] = [
2148
2172
  y("path", {
2149
2173
  fill: "currentColor",
2150
2174
  d: "m12.95 10.707l.707-.707L8 4.343L6.586 5.757L10.828 10l-4.242 4.243L8 15.657z"
2151
2175
  }, null, -1)
2152
2176
  ]));
2153
2177
  }
2154
- const wt = A({ name: "zondicons-cheveron-right", render: on }), cn = {
2178
+ const wt = A({ name: "zondicons-cheveron-right", render: un }), dn = {
2155
2179
  viewBox: "0 0 20 20",
2156
2180
  width: "1.2em",
2157
2181
  height: "1.2em"
2158
2182
  };
2159
- function un(t, s) {
2160
- return c(), b("svg", cn, s[0] || (s[0] = [
2183
+ function pn(t, s) {
2184
+ return c(), b("svg", dn, s[0] || (s[0] = [
2161
2185
  y("path", {
2162
2186
  fill: "currentColor",
2163
2187
  d: "M2.93 17.07A10 10 0 1 1 17.07 2.93A10 10 0 0 1 2.93 17.07M9 5v6h2V5zm0 8v2h2v-2z"
2164
2188
  }, null, -1)
2165
2189
  ]));
2166
2190
  }
2167
- const Re = A({ name: "zondicons-exclamation-solid", render: un }), dn = {
2191
+ const Re = A({ name: "zondicons-exclamation-solid", render: pn }), mn = {
2168
2192
  viewBox: "0 0 24 24",
2169
2193
  width: "1.2em",
2170
2194
  height: "1.2em"
2171
2195
  };
2172
- function pn(t, s) {
2173
- return c(), b("svg", dn, s[0] || (s[0] = [
2196
+ function fn(t, s) {
2197
+ return c(), b("svg", mn, s[0] || (s[0] = [
2174
2198
  y("path", {
2175
2199
  fill: "currentColor",
2176
2200
  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"
2177
2201
  }, null, -1)
2178
2202
  ]));
2179
2203
  }
2180
- const mn = A({ name: "mdi-console", render: pn }), fn = {
2204
+ const hn = A({ name: "mdi-console", render: fn }), gn = {
2181
2205
  viewBox: "0 0 20 20",
2182
2206
  width: "1.2em",
2183
2207
  height: "1.2em"
2184
2208
  };
2185
- function hn(t, s) {
2186
- return c(), b("svg", fn, s[0] || (s[0] = [
2209
+ function vn(t, s) {
2210
+ return c(), b("svg", gn, s[0] || (s[0] = [
2187
2211
  y("path", {
2188
2212
  fill: "currentColor",
2189
2213
  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"
2190
2214
  }, null, -1)
2191
2215
  ]));
2192
2216
  }
2193
- const gn = A({ name: "zondicons-copy", render: hn }), vn = {
2217
+ const bn = A({ name: "zondicons-copy", render: vn }), yn = {
2194
2218
  viewBox: "0 0 24 24",
2195
2219
  width: "1.2em",
2196
2220
  height: "1.2em"
2197
2221
  };
2198
- function bn(t, s) {
2199
- return c(), b("svg", vn, s[0] || (s[0] = [
2222
+ function wn(t, s) {
2223
+ return c(), b("svg", yn, s[0] || (s[0] = [
2200
2224
  y("path", {
2201
2225
  fill: "currentColor",
2202
2226
  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"
2203
2227
  }, null, -1)
2204
2228
  ]));
2205
2229
  }
2206
- const yn = A({ name: "mdi-github", render: bn }), wn = { class: "flex" }, $n = { class: "sr-only" }, _n = /* @__PURE__ */ g({
2230
+ const $n = A({ name: "mdi-github", render: wn }), _n = { class: "flex" }, xn = { class: "sr-only" }, Cn = /* @__PURE__ */ g({
2207
2231
  __name: "ErrorReportModalButtons",
2208
2232
  props: {
2209
2233
  report: {}
@@ -2232,7 +2256,7 @@ const yn = A({ name: "mdi-github", render: bn }), wn = { class: "flex" }, $n = {
2232
2256
  {
2233
2257
  id: "clipboard",
2234
2258
  description: "Copy to clipboard",
2235
- iconComponent: gn,
2259
+ iconComponent: bn,
2236
2260
  async click() {
2237
2261
  await navigator.clipboard.writeText(`${e.value}
2238
2262
 
@@ -2242,7 +2266,7 @@ ${s.report.details}`), R.toast(S("errors.copiedToClipboard", "Debug information
2242
2266
  {
2243
2267
  id: "console",
2244
2268
  description: "Log to console",
2245
- iconComponent: mn,
2269
+ iconComponent: hn,
2246
2270
  click() {
2247
2271
  const a = s.report.error ?? s.report;
2248
2272
  window.error = a, console.error(a), R.toast(
@@ -2258,12 +2282,12 @@ ${s.report.details}`), R.toast(S("errors.copiedToClipboard", "Debug information
2258
2282
  r.value && a.push({
2259
2283
  id: "github",
2260
2284
  description: "Report in GitHub",
2261
- iconComponent: yn,
2285
+ iconComponent: $n,
2262
2286
  url: r.value
2263
2287
  });
2264
2288
  }
2265
2289
  ));
2266
- return (a, i) => (c(), b("div", wn, [
2290
+ return (a, i) => (c(), b("div", _n, [
2267
2291
  (c(!0), b(j, null, F(n.value, (l) => w(a.$slots, "default", H({ ref_for: !0 }, l), () => [
2268
2292
  m(z, {
2269
2293
  size: "icon",
@@ -2274,7 +2298,7 @@ ${s.report.details}`), R.toast(S("errors.copiedToClipboard", "Debug information
2274
2298
  onClick: l.click
2275
2299
  }, {
2276
2300
  default: f(() => [
2277
- y("span", $n, k(a.$td(`errors.report_${l.id}`, l.description)), 1),
2301
+ y("span", xn, k(a.$td(`errors.report_${l.id}`, l.description)), 1),
2278
2302
  (c(), h(W(l.iconComponent), {
2279
2303
  class: "size-4",
2280
2304
  "aria-hidden": "true"
@@ -2285,7 +2309,7 @@ ${s.report.details}`), R.toast(S("errors.copiedToClipboard", "Debug information
2285
2309
  ])), 256))
2286
2310
  ]));
2287
2311
  }
2288
- }), xn = /* @__PURE__ */ g({
2312
+ }), kn = /* @__PURE__ */ g({
2289
2313
  __name: "ErrorReportModalTitle",
2290
2314
  props: {
2291
2315
  report: {},
@@ -2300,7 +2324,7 @@ ${s.report.details}`), R.toast(S("errors.copiedToClipboard", "Debug information
2300
2324
  }, null, 8, ["text"]));
2301
2325
  }
2302
2326
  });
2303
- function Cn(t) {
2327
+ function Sn(t) {
2304
2328
  const s = B(t.reports.includes(t.report) ? t.reports.indexOf(t.report) : 0), e = u(() => t.reports[s.value]), r = u(
2305
2329
  () => {
2306
2330
  var i;
@@ -2315,17 +2339,17 @@ function Cn(t) {
2315
2339
  activeReport: e
2316
2340
  };
2317
2341
  }
2318
- const kn = { class: "px-4 pt-5 pb-4" }, Sn = { class: "flex justify-between gap-4" }, Mn = { class: "flex items-center gap-2" }, En = {
2342
+ const Mn = { class: "px-4 pt-5 pb-4" }, En = { class: "flex justify-between gap-4" }, Hn = { class: "flex items-center gap-2" }, Vn = {
2319
2343
  key: 0,
2320
2344
  class: "flex gap-0.5"
2321
- }, Hn = { class: "-mt-2 max-h-[75vh] overflow-auto bg-red-800/10" }, Vn = ["textContent"], Ln = /* @__PURE__ */ g({
2345
+ }, Tn = { class: "-mt-2 max-h-[75vh] overflow-auto bg-red-800/10" }, Ln = ["textContent"], In = /* @__PURE__ */ g({
2322
2346
  __name: "ErrorReportModal",
2323
2347
  props: {
2324
2348
  report: {},
2325
2349
  reports: {}
2326
2350
  },
2327
2351
  setup(t, { expose: s }) {
2328
- const e = t, { activeReportIndex: r, details: n, nextReportText: a, previousReportText: i, activeReport: l } = Cn(e);
2352
+ const e = t, { activeReportIndex: r, details: n, nextReportText: a, previousReportText: i, activeReport: l } = Sn(e);
2329
2353
  return s(), (d, v) => (c(), h(te, {
2330
2354
  title: d.$td("errors.report", "Error report"),
2331
2355
  "title-hidden": "",
@@ -2334,17 +2358,17 @@ const kn = { class: "px-4 pt-5 pb-4" }, Sn = { class: "flex justify-between gap-
2334
2358
  "wrapper-class": "sm:w-auto sm:min-w-lg sm:max-w-[80vw]"
2335
2359
  }, {
2336
2360
  default: f(() => [
2337
- y("div", kn, [
2338
- y("h2", Sn, [
2339
- y("div", Mn, [
2361
+ y("div", Mn, [
2362
+ y("h2", En, [
2363
+ y("div", Hn, [
2340
2364
  m(o(Re), { class: "size-5 text-red-600" }),
2341
- m(xn, {
2365
+ m(kn, {
2342
2366
  class: "text-lg leading-6 font-semibold text-gray-900",
2343
2367
  report: o(l),
2344
2368
  "current-report": o(r) + 1,
2345
2369
  "total-reports": d.reports.length
2346
2370
  }, null, 8, ["report", "current-report", "total-reports"]),
2347
- d.reports.length > 1 ? (c(), b("span", En, [
2371
+ d.reports.length > 1 ? (c(), b("span", Vn, [
2348
2372
  m(z, {
2349
2373
  size: "icon",
2350
2374
  variant: "ghost",
@@ -2354,7 +2378,7 @@ const kn = { class: "px-4 pt-5 pb-4" }, Sn = { class: "flex justify-between gap-
2354
2378
  onClick: v[0] || (v[0] = ($) => r.value--)
2355
2379
  }, {
2356
2380
  default: f(() => [
2357
- m(o(an), { class: "size-4" })
2381
+ m(o(on), { class: "size-4" })
2358
2382
  ]),
2359
2383
  _: 1
2360
2384
  }, 8, ["disabled", "aria-label", "title"]),
@@ -2373,7 +2397,7 @@ const kn = { class: "px-4 pt-5 pb-4" }, Sn = { class: "flex justify-between gap-
2373
2397
  }, 8, ["disabled", "aria-label", "title"])
2374
2398
  ])) : M("", !0)
2375
2399
  ]),
2376
- m(_n, {
2400
+ m(Cn, {
2377
2401
  report: o(l),
2378
2402
  class: "gap-0.5"
2379
2403
  }, null, 8, ["report"])
@@ -2384,23 +2408,23 @@ const kn = { class: "px-4 pt-5 pb-4" }, Sn = { class: "flex justify-between gap-
2384
2408
  class: "text-gray-600"
2385
2409
  }, null, 8, ["text"])) : M("", !0)
2386
2410
  ]),
2387
- y("div", Hn, [
2411
+ y("div", Tn, [
2388
2412
  y("pre", {
2389
2413
  class: "p-4 text-xs text-red-800",
2390
2414
  textContent: k(o(n))
2391
- }, null, 8, Vn)
2415
+ }, null, 8, Ln)
2392
2416
  ])
2393
2417
  ]),
2394
2418
  _: 1
2395
2419
  }, 8, ["title"]));
2396
2420
  }
2397
- }), Tn = {
2421
+ }), Rn = {
2398
2422
  viewBox: "0 0 24 24",
2399
2423
  width: "1.2em",
2400
2424
  height: "1.2em"
2401
2425
  };
2402
- function In(t, s) {
2403
- return c(), b("svg", Tn, s[0] || (s[0] = [
2426
+ function An(t, s) {
2427
+ return c(), b("svg", Rn, s[0] || (s[0] = [
2404
2428
  y("path", {
2405
2429
  fill: "currentColor",
2406
2430
  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",
@@ -2420,7 +2444,7 @@ function In(t, s) {
2420
2444
  ], -1)
2421
2445
  ]));
2422
2446
  }
2423
- const Rn = A({ name: "svg-spinners-90-ring-with-bg", render: In }), An = { class: "mt-1 h-2 w-full overflow-hidden rounded-full bg-gray-200" }, Pn = { class: "sr-only" }, zn = /* @__PURE__ */ g({
2447
+ const Pn = A({ name: "svg-spinners-90-ring-with-bg", render: An }), zn = { class: "mt-1 h-2 w-full overflow-hidden rounded-full bg-gray-200" }, Dn = { class: "sr-only" }, jn = /* @__PURE__ */ g({
2424
2448
  __name: "ProgressBar",
2425
2449
  props: {
2426
2450
  filledClass: {},
@@ -2436,24 +2460,24 @@ const Rn = A({ name: "svg-spinners-90-ring-with-bg", render: In }), An = { class
2436
2460
  s && s(), e.value = t.job ? t.job.progress : 0, s = t.job && t.job.listeners.add({ onUpdated: (a) => e.value = a });
2437
2461
  },
2438
2462
  { immediate: !0 }
2439
- ), ge(() => s && s()), (a, i) => (c(), b("div", An, [
2463
+ ), ge(() => s && s()), (a, i) => (c(), b("div", zn, [
2440
2464
  y("div", {
2441
2465
  class: C(r.value),
2442
2466
  style: It(`transform:translateX(-${(1 - n.value) * 100}%)`)
2443
2467
  }, null, 6),
2444
- y("span", Pn, k(a.$td("ui.progress", "{progress}% complete", {
2468
+ y("span", Dn, k(a.$td("ui.progress", "{progress}% complete", {
2445
2469
  progress: n.value * 100
2446
2470
  })), 1)
2447
2471
  ]));
2448
2472
  }
2449
2473
  });
2450
- function Dn(t) {
2474
+ function Bn(t) {
2451
2475
  const s = u(() => t.title ?? S("ui.loading", "Loading")), e = u(
2452
2476
  () => t.message ?? S("ui.loadingInProgress", "Loading in progress...")
2453
2477
  ), r = u(() => typeof t.progress == "number" || !!t.job), n = u(() => !t.title);
2454
2478
  return { renderedTitle: s, renderedMessage: e, titleHidden: n, showProgress: r };
2455
2479
  }
2456
- const jn = /* @__PURE__ */ g({
2480
+ const qn = /* @__PURE__ */ g({
2457
2481
  __name: "LoadingModal",
2458
2482
  props: {
2459
2483
  title: {},
@@ -2462,7 +2486,7 @@ const jn = /* @__PURE__ */ g({
2462
2486
  job: {}
2463
2487
  },
2464
2488
  setup(t, { expose: s }) {
2465
- const e = t, { renderedTitle: r, renderedMessage: n, titleHidden: a, showProgress: i } = Dn(e);
2489
+ const e = t, { renderedTitle: r, renderedMessage: n, titleHidden: a, showProgress: i } = Bn(e);
2466
2490
  return s(), (l, d) => (c(), h(te, {
2467
2491
  persistent: "",
2468
2492
  class: C(["flex", { "flex-col-reverse": o(i), "items-center justify-center gap-2": !o(i) }]),
@@ -2471,12 +2495,12 @@ const jn = /* @__PURE__ */ g({
2471
2495
  "title-hidden": o(a)
2472
2496
  }, {
2473
2497
  default: f(() => [
2474
- o(i) ? (c(), h(zn, {
2498
+ o(i) ? (c(), h(jn, {
2475
2499
  key: 0,
2476
2500
  progress: l.progress,
2477
2501
  job: l.job,
2478
2502
  class: "min-w-[min(400px,80vw)]"
2479
- }, null, 8, ["progress", "job"])) : (c(), h(o(Rn), {
2503
+ }, null, 8, ["progress", "job"])) : (c(), h(o(Pn), {
2480
2504
  key: 1,
2481
2505
  class: "text-primary-600 mr-1 size-6"
2482
2506
  })),
@@ -2522,7 +2546,7 @@ const jn = /* @__PURE__ */ g({
2522
2546
  _: 3
2523
2547
  }));
2524
2548
  }
2525
- }), Bn = ["for"], fe = /* @__PURE__ */ g({
2549
+ }), Fn = ["for"], fe = /* @__PURE__ */ g({
2526
2550
  __name: "HeadlessInputLabel",
2527
2551
  setup(t) {
2528
2552
  const s = V("input", "<HeadlessInputLabel> must be a child of a <HeadlessInput>"), e = He(), r = u(() => !!(s.label || e.default));
@@ -2533,9 +2557,9 @@ const jn = /* @__PURE__ */ g({
2533
2557
  w(n.$slots, "default", {}, () => [
2534
2558
  P(k(o(s).label), 1)
2535
2559
  ])
2536
- ], 8, Bn)) : M("", !0);
2560
+ ], 8, Fn)) : M("", !0);
2537
2561
  }
2538
- }), qn = ["id", "name", "checked", "type", "required", "aria-invalid", "aria-describedby"], $t = /* @__PURE__ */ g({
2562
+ }), Un = ["id", "name", "checked", "type", "required", "aria-invalid", "aria-describedby"], $t = /* @__PURE__ */ g({
2539
2563
  __name: "HeadlessInputInput",
2540
2564
  props: {
2541
2565
  type: {}
@@ -2586,7 +2610,7 @@ const jn = /* @__PURE__ */ g({
2586
2610
  "aria-invalid": o(e).errors ? "true" : "false",
2587
2611
  "aria-describedby": o(e).errors ? `${o(e).id}-error` : o(e).description ? `${o(e).id}-description` : void 0,
2588
2612
  onInput: d
2589
- }, null, 40, qn));
2613
+ }, null, 40, Un));
2590
2614
  }
2591
2615
  }), _t = /* @__PURE__ */ g({
2592
2616
  inheritAttrs: !1,
@@ -2605,19 +2629,19 @@ const jn = /* @__PURE__ */ g({
2605
2629
  }), null, 16, ["id", "text"])) : M("", !0)
2606
2630
  ]);
2607
2631
  }
2608
- }), Fn = ["id"], he = /* @__PURE__ */ g({
2632
+ }), On = ["id"], he = /* @__PURE__ */ g({
2609
2633
  __name: "HeadlessInputError",
2610
2634
  setup(t) {
2611
2635
  const s = V("input", "<HeadlessInputError> must be a child of a <HeadlessInput>"), e = u(() => s.errors ? S(`errors.${s.errors[0]}`, `Error: ${s.errors[0]}`) : null);
2612
2636
  return (r, n) => e.value ? (c(), b("p", {
2613
2637
  key: 0,
2614
2638
  id: `${o(s).id}-error`
2615
- }, k(e.value), 9, Fn)) : M("", !0);
2639
+ }, k(e.value), 9, On)) : M("", !0);
2616
2640
  }
2617
- }), Un = {
2641
+ }), Nn = {
2618
2642
  key: 0,
2619
2643
  class: "pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3"
2620
- }, On = /* @__PURE__ */ g({
2644
+ }, Wn = /* @__PURE__ */ g({
2621
2645
  inheritAttrs: !1,
2622
2646
  __name: "Input",
2623
2647
  props: {
@@ -2637,8 +2661,8 @@ const jn = /* @__PURE__ */ g({
2637
2661
  "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",
2638
2662
  {
2639
2663
  "focus:ring-primary-600": !((l = e.value) != null && l.errors),
2640
- "text-gray-900 shadow-2xs ring-gray-300 placeholder:text-gray-400": !((d = e.value) != null && d.errors),
2641
- "pr-10 text-red-900 ring-red-300 placeholder:text-red-300 focus:ring-red-500": (v = e.value) == null ? void 0 : v.errors
2664
+ "text-gray-900 shadow-2xs ring-gray-900/10 placeholder:text-gray-400": !((d = e.value) != null && d.errors),
2665
+ "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
2642
2666
  },
2643
2667
  t.inputClass
2644
2668
  );
@@ -2658,7 +2682,7 @@ const jn = /* @__PURE__ */ g({
2658
2682
  class: C(a.value)
2659
2683
  }, [
2660
2684
  m($t, H(o(r), { class: i.value }), null, 16, ["class"]),
2661
- (v = o(e)) != null && v.errors ? (c(), b("div", Un, [
2685
+ (v = o(e)) != null && v.errors ? (c(), b("div", Nn, [
2662
2686
  m(o(Re), { class: "size-5 text-red-500" })
2663
2687
  ])) : M("", !0)
2664
2688
  ], 2),
@@ -2670,83 +2694,99 @@ const jn = /* @__PURE__ */ g({
2670
2694
  }, 16, ["label", "class"]));
2671
2695
  }
2672
2696
  });
2673
- function rl(t, s = {}) {
2697
+ function al(t, s = {}) {
2674
2698
  return {
2675
2699
  default: t,
2676
2700
  type: "boolean",
2677
2701
  rules: s.rules
2678
2702
  };
2679
2703
  }
2680
- function nl(t, s = {}) {
2704
+ function ll(t, s = {}) {
2681
2705
  return {
2682
2706
  default: t,
2683
2707
  type: "date",
2684
2708
  rules: s.rules
2685
2709
  };
2686
2710
  }
2687
- function al(t) {
2711
+ function ol(t, s, e = {}) {
2712
+ return {
2713
+ default: s,
2714
+ type: "enum",
2715
+ rules: e.rules,
2716
+ values: t
2717
+ };
2718
+ }
2719
+ function il(t) {
2688
2720
  return {
2689
2721
  default: t,
2690
2722
  type: "boolean",
2691
2723
  rules: "required"
2692
2724
  };
2693
2725
  }
2694
- function ll(t) {
2726
+ function cl(t) {
2695
2727
  return {
2696
2728
  default: t,
2697
2729
  type: "date",
2698
2730
  rules: "required"
2699
2731
  };
2700
2732
  }
2701
- function ol(t) {
2733
+ function ul(t, s) {
2734
+ return {
2735
+ default: s,
2736
+ type: "enum",
2737
+ rules: "required",
2738
+ values: t
2739
+ };
2740
+ }
2741
+ function dl(t) {
2702
2742
  return {
2703
2743
  default: t,
2704
2744
  type: "number",
2705
2745
  rules: "required"
2706
2746
  };
2707
2747
  }
2708
- function il(t) {
2748
+ function pl(t) {
2709
2749
  return {
2710
2750
  default: t,
2711
2751
  type: "object",
2712
2752
  rules: "required"
2713
2753
  };
2714
2754
  }
2715
- function Nn(t) {
2755
+ function Kn(t) {
2716
2756
  return {
2717
2757
  default: t,
2718
2758
  type: "string",
2719
2759
  rules: "required"
2720
2760
  };
2721
2761
  }
2722
- function cl(t, s = {}) {
2762
+ function ml(t, s = {}) {
2723
2763
  return {
2724
2764
  default: t,
2725
2765
  type: "number",
2726
2766
  rules: s.rules
2727
2767
  };
2728
2768
  }
2729
- function ul(t, s = {}) {
2769
+ function fl(t, s = {}) {
2730
2770
  return {
2731
2771
  default: t,
2732
2772
  type: "object",
2733
2773
  rules: s.rules
2734
2774
  };
2735
2775
  }
2736
- function dl(t, s = {}) {
2776
+ function hl(t, s = {}) {
2737
2777
  return {
2738
2778
  default: t,
2739
2779
  type: "string",
2740
2780
  rules: s.rules
2741
2781
  };
2742
2782
  }
2743
- function Wn(t) {
2783
+ function Qn(t) {
2744
2784
  const s = it({
2745
- draft: Nn(t.defaultValue ?? "")
2785
+ draft: Kn(t.defaultValue ?? "")
2746
2786
  }), e = u(() => t.title ?? t.message), r = u(() => t.title ? t.message : null), n = u(() => t.acceptText ?? S("ui.accept", "Ok")), a = u(() => t.cancelText ?? S("ui.cancel", "Cancel"));
2747
2787
  return { form: s, renderedTitle: e, renderedMessage: r, renderedAcceptText: n, renderedCancelText: a };
2748
2788
  }
2749
- const Kn = { class: "mt-4 flex flex-row-reverse gap-2" }, Qn = /* @__PURE__ */ g({
2789
+ const Jn = { class: "mt-4 flex flex-row-reverse gap-2" }, Zn = /* @__PURE__ */ g({
2750
2790
  __name: "PromptModal",
2751
2791
  props: {
2752
2792
  title: {},
@@ -2760,7 +2800,7 @@ const Kn = { class: "mt-4 flex flex-row-reverse gap-2" }, Qn = /* @__PURE__ */ g
2760
2800
  cancelVariant: { default: "secondary" }
2761
2801
  },
2762
2802
  setup(t, { expose: s }) {
2763
- const e = N(t, ["cancelVariant"]), { form: r, renderedTitle: n, renderedMessage: a, renderedAcceptText: i, renderedCancelText: l } = Wn(e);
2803
+ const e = N(t, ["cancelVariant"]), { form: r, renderedTitle: n, renderedMessage: a, renderedAcceptText: i, renderedCancelText: l } = Qn(e);
2764
2804
  return s(), (d, v) => (c(), h(te, {
2765
2805
  title: o(n),
2766
2806
  persistent: ""
@@ -2775,13 +2815,13 @@ const Kn = { class: "mt-4 flex flex-row-reverse gap-2" }, Qn = /* @__PURE__ */ g
2775
2815
  key: 0,
2776
2816
  text: o(a)
2777
2817
  }, null, 8, ["text"])) : M("", !0),
2778
- m(On, {
2818
+ m(Wn, {
2779
2819
  name: "draft",
2780
2820
  class: "mt-2",
2781
2821
  placeholder: d.placeholder,
2782
2822
  label: d.label
2783
2823
  }, null, 8, ["placeholder", "label"]),
2784
- y("div", Kn, [
2824
+ y("div", Jn, [
2785
2825
  m(z, {
2786
2826
  variant: d.acceptVariant,
2787
2827
  submit: ""
@@ -2808,12 +2848,12 @@ const Kn = { class: "mt-4 flex flex-row-reverse gap-2" }, Qn = /* @__PURE__ */ g
2808
2848
  _: 1
2809
2849
  }, 8, ["title"]));
2810
2850
  }
2811
- }), Jn = { class: "grid grow place-items-center" }, Zn = { class: "flex flex-col items-center space-y-6 p-8" }, Xn = { class: "mt-2 text-center text-4xl font-medium text-red-600" }, Yn = { class: "mt-4 flex flex-col space-y-4" }, Gn = /* @__PURE__ */ g({
2851
+ }), Xn = { class: "grid grow place-items-center" }, Yn = { class: "flex flex-col items-center space-y-6 p-8" }, Gn = { class: "mt-2 text-center text-4xl font-medium text-red-600" }, ea = { class: "mt-4 flex flex-col space-y-4" }, ta = /* @__PURE__ */ g({
2812
2852
  __name: "StartupCrash",
2813
2853
  setup(t) {
2814
- return (s, e) => (c(), b("div", Jn, [
2815
- y("div", Zn, [
2816
- y("h1", Xn, k(s.$td("startupCrash.title", "Something went wrong!")), 1),
2854
+ return (s, e) => (c(), b("div", Xn, [
2855
+ y("div", Yn, [
2856
+ y("h1", Gn, k(s.$td("startupCrash.title", "Something went wrong!")), 1),
2817
2857
  m(I, {
2818
2858
  text: s.$td(
2819
2859
  "startupCrash.message",
@@ -2823,7 +2863,7 @@ Here's some things you can do:`
2823
2863
  ),
2824
2864
  class: "mt-4 text-center"
2825
2865
  }, null, 8, ["text"]),
2826
- y("div", Yn, [
2866
+ y("div", ea, [
2827
2867
  m(z, {
2828
2868
  variant: "danger",
2829
2869
  onClick: e[0] || (e[0] = (r) => s.$app.reload())
@@ -2862,7 +2902,7 @@ Here's some things you can do:`
2862
2902
  _: 1
2863
2903
  }, 8, ["onClick"]));
2864
2904
  }
2865
- }), ea = { key: 0 }, ta = /* @__PURE__ */ g({
2905
+ }), sa = { key: 0 }, ra = /* @__PURE__ */ g({
2866
2906
  __name: "HeadlessToast",
2867
2907
  props: {
2868
2908
  message: {},
@@ -2873,7 +2913,7 @@ Here's some things you can do:`
2873
2913
  return (s, e) => (c(), h(o(xs), null, {
2874
2914
  default: f(() => [
2875
2915
  w(s.$slots, "default", {}, () => [
2876
- s.message ? (c(), b("span", ea, k(s.message), 1)) : M("", !0),
2916
+ s.message ? (c(), b("span", sa, k(s.message), 1)) : M("", !0),
2877
2917
  (c(!0), b(j, null, F(s.actions, (r, n) => (c(), h(xt, {
2878
2918
  key: n,
2879
2919
  action: r
@@ -2883,7 +2923,7 @@ Here's some things you can do:`
2883
2923
  _: 3
2884
2924
  }));
2885
2925
  }
2886
- }), sa = /* @__PURE__ */ g({
2926
+ }), na = /* @__PURE__ */ g({
2887
2927
  __name: "Toast",
2888
2928
  props: {
2889
2929
  message: {},
@@ -2907,7 +2947,7 @@ Here's some things you can do:`
2907
2947
  }
2908
2948
  }
2909
2949
  ));
2910
- return s(), (r, n) => (c(), h(ta, {
2950
+ return s(), (r, n) => (c(), h(ra, {
2911
2951
  class: C(e.value)
2912
2952
  }, {
2913
2953
  default: f(() => [
@@ -2926,45 +2966,45 @@ Here's some things you can do:`
2926
2966
  _: 1
2927
2967
  }, 8, ["class"]));
2928
2968
  }
2929
- }), ra = { $ui: R }, na = {
2969
+ }), aa = { $ui: R }, la = {
2930
2970
  async install(t, s) {
2931
2971
  const e = {
2932
- "alert-modal": Jr,
2933
- "confirm-modal": sn,
2934
- "error-report-modal": Ln,
2935
- "loading-modal": jn,
2936
- "prompt-modal": Qn,
2937
- "startup-crash": Gn,
2938
- toast: sa,
2972
+ "alert-modal": Xr,
2973
+ "confirm-modal": nn,
2974
+ "error-report-modal": In,
2975
+ "loading-modal": qn,
2976
+ "prompt-modal": Zn,
2977
+ "startup-crash": ta,
2978
+ toast: na,
2939
2979
  ...s.components
2940
2980
  };
2941
2981
  for (const [r, n] of Object.entries(e))
2942
2982
  R.registerComponent(r, n);
2943
- await $e(t, ra);
2983
+ await $e(t, aa);
2944
2984
  }
2945
2985
  };
2946
- async function aa(t, s = {}) {
2986
+ async function oa(t, s = {}) {
2947
2987
  var r;
2948
- const e = [Pr, Us, Ar, $r, Qs, na, ...s.plugins ?? []];
2949
- D.instance = t, await zs(e, t, s), await ((r = s.install) == null ? void 0 : r.call(s, t)), await T.emit("application-ready");
2988
+ const e = [Dr, Us, zr, xr, Qs, la, ...s.plugins ?? []];
2989
+ D.instance = t, await zs(e, t, s), await ((r = s.install) == null ? void 0 : r.call(s, t)), await L.emit("application-ready");
2950
2990
  }
2951
- async function pl(t, s = {}) {
2991
+ async function gl(t, s = {}) {
2952
2992
  var r;
2953
2993
  const e = Rt(t);
2954
- se() && (window.$aerogel = e), await aa(e, s), e.mount("#app"), (r = e._container) == null || r.classList.remove("loading"), await T.emit("application-mounted");
2994
+ se() && (window.$aerogel = e), await oa(e, s), e.mount("#app"), (r = e._container) == null || r.classList.remove("loading"), await L.emit("application-mounted");
2955
2995
  }
2956
- const la = { key: 0 }, oa = /* @__PURE__ */ g({
2996
+ const ia = { key: 0 }, ca = /* @__PURE__ */ g({
2957
2997
  __name: "AppModals",
2958
2998
  setup(t) {
2959
2999
  const s = u(() => R.modals[0] ?? null);
2960
- return (e, r) => s.value ? (c(), b("aside", la, [
3000
+ return (e, r) => s.value ? (c(), b("aside", ia, [
2961
3001
  m(bt, {
2962
3002
  "child-index": 1,
2963
3003
  modal: s.value
2964
3004
  }, null, 8, ["modal"])
2965
3005
  ])) : M("", !0);
2966
3006
  }
2967
- }), ia = /* @__PURE__ */ g({
3007
+ }), ua = /* @__PURE__ */ g({
2968
3008
  __name: "AppToasts",
2969
3009
  setup(t) {
2970
3010
  return (s, e) => (c(), h(o(Cs), null, {
@@ -2979,25 +3019,25 @@ const la = { key: 0 }, oa = /* @__PURE__ */ g({
2979
3019
  _: 1
2980
3020
  }));
2981
3021
  }
2982
- }), ca = /* @__PURE__ */ g({
3022
+ }), da = /* @__PURE__ */ g({
2983
3023
  __name: "AppOverlays",
2984
3024
  setup(t) {
2985
3025
  return (s, e) => (c(), b(j, null, [
2986
- m(oa),
2987
- m(ia)
3026
+ m(ca),
3027
+ m(ua)
2988
3028
  ], 64));
2989
3029
  }
2990
- }), ua = { class: "flex min-h-full flex-col text-base leading-tight font-normal text-gray-900 antialiased" }, ml = /* @__PURE__ */ g({
3030
+ }), pa = { class: "flex min-h-full flex-col text-base leading-tight font-normal text-gray-900 antialiased" }, vl = /* @__PURE__ */ g({
2991
3031
  __name: "AppLayout",
2992
3032
  setup(t) {
2993
- return (s, e) => (c(), b("div", ua, [
3033
+ return (s, e) => (c(), b("div", pa, [
2994
3034
  s.$errors.hasStartupErrors ? w(s.$slots, "startup-crash", { key: 0 }, () => [
2995
3035
  (c(), h(W(s.$ui.requireComponent("startup-crash"))))
2996
3036
  ]) : w(s.$slots, "default", { key: 1 }),
2997
- m(ca)
3037
+ m(da)
2998
3038
  ]));
2999
3039
  }
3000
- }), da = ["id", "name", "value", "required", "aria-invalid", "aria-describedby"], pa = /* @__PURE__ */ g({
3040
+ }), ma = ["id", "name", "value", "required", "aria-invalid", "aria-describedby"], fa = /* @__PURE__ */ g({
3001
3041
  __name: "HeadlessInputTextArea",
3002
3042
  setup(t) {
3003
3043
  const s = Y("$textAreaRef"), e = V(
@@ -3019,22 +3059,22 @@ const la = { key: 0 }, oa = /* @__PURE__ */ g({
3019
3059
  "aria-invalid": o(e).errors ? "true" : "false",
3020
3060
  "aria-describedby": o(e).errors ? `${o(e).id}-error` : o(e).description ? `${o(e).id}-description` : void 0,
3021
3061
  onInput: a
3022
- }, null, 40, da));
3062
+ }, null, 40, ma));
3023
3063
  }
3024
- }), ma = { class: "group" }, fa = { 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" }, ha = { class: "pt-2 pl-4" }, fl = /* @__PURE__ */ g({
3064
+ }), ha = { class: "group" }, ga = { 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" }, va = { class: "pt-2 pl-4" }, bl = /* @__PURE__ */ g({
3025
3065
  __name: "AdvancedOptions",
3026
3066
  setup(t) {
3027
- return (s, e) => (c(), b("details", ma, [
3028
- y("summary", fa, [
3067
+ return (s, e) => (c(), b("details", ha, [
3068
+ y("summary", ga, [
3029
3069
  m(o(wt), { class: "size-6 transition-transform group-open:rotate-90" }),
3030
3070
  y("span", null, k(s.$td("ui.advancedOptions", "Advanced options")), 1)
3031
3071
  ]),
3032
- y("div", ha, [
3072
+ y("div", va, [
3033
3073
  w(s.$slots, "default")
3034
3074
  ])
3035
3075
  ]));
3036
3076
  }
3037
- }), ga = { class: "flex h-6 items-center" }, hl = /* @__PURE__ */ g({
3077
+ }), ba = { class: "flex h-6 items-center" }, yl = /* @__PURE__ */ g({
3038
3078
  inheritAttrs: !1,
3039
3079
  __name: "Checkbox",
3040
3080
  props: {
@@ -3065,7 +3105,7 @@ const la = { key: 0 }, oa = /* @__PURE__ */ g({
3065
3105
  "onUpdate:modelValue": v[0] || (v[0] = ($) => d.$emit("update:modelValue", $))
3066
3106
  }), {
3067
3107
  default: f(() => [
3068
- y("div", ga, [
3108
+ y("div", ba, [
3069
3109
  m($t, H(o(r), {
3070
3110
  type: "checkbox",
3071
3111
  class: i.value
@@ -3093,7 +3133,7 @@ const la = { key: 0 }, oa = /* @__PURE__ */ g({
3093
3133
  _: 3
3094
3134
  }, 16, ["class"]));
3095
3135
  }
3096
- }), va = /* @__PURE__ */ g({
3136
+ }), ya = /* @__PURE__ */ g({
3097
3137
  __name: "DropdownMenuOption",
3098
3138
  props: {
3099
3139
  class: {},
@@ -3115,7 +3155,7 @@ const la = { key: 0 }, oa = /* @__PURE__ */ g({
3115
3155
  _: 3
3116
3156
  }, 16, ["class"]));
3117
3157
  }
3118
- }), ba = /* @__PURE__ */ g({
3158
+ }), wa = /* @__PURE__ */ g({
3119
3159
  __name: "DropdownMenuOptions",
3120
3160
  setup(t) {
3121
3161
  const s = V(
@@ -3129,7 +3169,7 @@ const la = { key: 0 }, oa = /* @__PURE__ */ g({
3129
3169
  }, {
3130
3170
  default: f(() => [
3131
3171
  w(e.$slots, "default", {}, () => [
3132
- (c(!0), b(j, null, F(o(s).options, (n, a) => (c(), h(va, H(
3172
+ (c(!0), b(j, null, F(o(s).options, (n, a) => (c(), h(ya, H(
3133
3173
  {
3134
3174
  key: a,
3135
3175
  as: n.route || n.href ? nt : void 0,
@@ -3159,7 +3199,7 @@ const la = { key: 0 }, oa = /* @__PURE__ */ g({
3159
3199
  _: 3
3160
3200
  }, 8, ["align", "side"]));
3161
3201
  }
3162
- }), gl = /* @__PURE__ */ g({
3202
+ }), wl = /* @__PURE__ */ g({
3163
3203
  __name: "DropdownMenu",
3164
3204
  props: {
3165
3205
  align: {},
@@ -3186,7 +3226,7 @@ const la = { key: 0 }, oa = /* @__PURE__ */ g({
3186
3226
  m(o(Vs), null, {
3187
3227
  default: f(() => [
3188
3228
  w(r.$slots, "options", {}, () => [
3189
- m(ba)
3229
+ m(wa)
3190
3230
  ])
3191
3231
  ]),
3192
3232
  _: 3
@@ -3195,7 +3235,7 @@ const la = { key: 0 }, oa = /* @__PURE__ */ g({
3195
3235
  _: 3
3196
3236
  }));
3197
3237
  }
3198
- }), ya = ["aria-hidden"], wa = ["tabindex", "aria-label", "type"], vl = /* @__PURE__ */ g({
3238
+ }), $a = ["aria-hidden"], _a = ["tabindex", "aria-label", "type"], $l = /* @__PURE__ */ g({
3199
3239
  __name: "EditableContent",
3200
3240
  props: {
3201
3241
  type: { default: "text" },
@@ -3234,14 +3274,14 @@ const la = { key: 0 }, oa = /* @__PURE__ */ g({
3234
3274
  y("form", {
3235
3275
  class: "w-full",
3236
3276
  "aria-hidden": p.formAriaHidden,
3237
- onSubmit: x[4] || (x[4] = We((L) => {
3277
+ onSubmit: x[4] || (x[4] = We((T) => {
3238
3278
  var _e;
3239
3279
  return (_e = o(r)) == null ? void 0 : _e.blur();
3240
3280
  }, ["prevent"]))
3241
3281
  }, [
3242
3282
  Ke(y("input", {
3243
3283
  ref: "$inputRef",
3244
- "onUpdate:modelValue": x[0] || (x[0] = (L) => a.value = L),
3284
+ "onUpdate:modelValue": x[0] || (x[0] = (T) => a.value = T),
3245
3285
  tabindex: p.tabindex ?? void 0,
3246
3286
  "aria-label": p.ariaLabel ?? void 0,
3247
3287
  type: p.type,
@@ -3249,42 +3289,42 @@ const la = { key: 0 }, oa = /* @__PURE__ */ g({
3249
3289
  d.value,
3250
3290
  { "opacity-0": !n.value, "appearance-textfield": !n.value && p.type === "number" }
3251
3291
  ]),
3252
- onKeyup: x[1] || (x[1] = (L) => p.$emit("update", a.value)),
3253
- onFocus: x[2] || (x[2] = (L) => v()),
3254
- onBlur: x[3] || (x[3] = (L) => $())
3255
- }, null, 42, wa), [
3292
+ onKeyup: x[1] || (x[1] = (T) => p.$emit("update", a.value)),
3293
+ onFocus: x[2] || (x[2] = (T) => v()),
3294
+ onBlur: x[3] || (x[3] = (T) => $())
3295
+ }, null, 42, _a), [
3256
3296
  [At, a.value]
3257
3297
  ])
3258
- ], 40, ya)
3298
+ ], 40, $a)
3259
3299
  ], 2));
3260
3300
  }
3261
- }), $a = {
3301
+ }), xa = {
3262
3302
  viewBox: "0 0 512 512",
3263
3303
  width: "1.2em",
3264
3304
  height: "1.2em"
3265
3305
  };
3266
- function _a(t, s) {
3267
- return c(), b("svg", $a, s[0] || (s[0] = [
3306
+ function Ca(t, s) {
3307
+ return c(), b("svg", xa, s[0] || (s[0] = [
3268
3308
  y("path", {
3269
3309
  fill: "currentColor",
3270
3310
  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"
3271
3311
  }, null, -1)
3272
3312
  ]));
3273
3313
  }
3274
- const xa = A({ name: "ion-warning", render: _a }), Ca = {
3314
+ const ka = A({ name: "ion-warning", render: Ca }), Sa = {
3275
3315
  viewBox: "0 0 20 20",
3276
3316
  width: "1.2em",
3277
3317
  height: "1.2em"
3278
3318
  };
3279
- function ka(t, s) {
3280
- return c(), b("svg", Ca, s[0] || (s[0] = [
3319
+ function Ma(t, s) {
3320
+ return c(), b("svg", Sa, s[0] || (s[0] = [
3281
3321
  y("path", {
3282
3322
  fill: "currentColor",
3283
3323
  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"
3284
3324
  }, null, -1)
3285
3325
  ]));
3286
3326
  }
3287
- const Sa = A({ name: "zondicons-view-show", render: ka }), Ma = { class: "font-medium" }, Ea = ["datetime"], Ha = /* @__PURE__ */ g({
3327
+ const Ea = A({ name: "zondicons-view-show", render: Ma }), Ha = { class: "font-medium" }, Va = ["datetime"], Ta = /* @__PURE__ */ g({
3288
3328
  __name: "ErrorLogsModal",
3289
3329
  setup(t) {
3290
3330
  return (s, e) => (c(), h(te, {
@@ -3297,11 +3337,11 @@ const Sa = A({ name: "zondicons-view-show", render: ka }), Ma = { class: "font-m
3297
3337
  class: "mb-2 flex max-w-prose min-w-56 justify-between py-2 last:mb-0"
3298
3338
  }, [
3299
3339
  y("div", null, [
3300
- y("h3", Ma, k(r.report.title), 1),
3340
+ y("h3", Ha, k(r.report.title), 1),
3301
3341
  y("time", {
3302
3342
  datetime: r.date.toISOString(),
3303
3343
  class: "text-xs text-gray-700"
3304
- }, k(r.date.toLocaleTimeString()), 9, Ea),
3344
+ }, k(r.date.toLocaleTimeString()), 9, Va),
3305
3345
  m(I, {
3306
3346
  class: "text-sm text-gray-500",
3307
3347
  text: r.report.description ?? o(vt)(r.report)
@@ -3319,7 +3359,7 @@ const Sa = A({ name: "zondicons-view-show", render: ka }), Ma = { class: "font-m
3319
3359
  )
3320
3360
  }, {
3321
3361
  default: f(() => [
3322
- m(o(Sa), {
3362
+ m(o(Ea), {
3323
3363
  class: "size-4",
3324
3364
  "aria-hidden": "true"
3325
3365
  })
@@ -3332,7 +3372,7 @@ const Sa = A({ name: "zondicons-view-show", render: ka }), Ma = { class: "font-m
3332
3372
  _: 1
3333
3373
  }, 8, ["title"]));
3334
3374
  }
3335
- }), bl = /* @__PURE__ */ g({
3375
+ }), _l = /* @__PURE__ */ g({
3336
3376
  __name: "ErrorLogs",
3337
3377
  setup(t) {
3338
3378
  return (s, e) => s.$errors.logs.length > 0 ? (c(), h(z, {
@@ -3341,15 +3381,15 @@ const Sa = A({ name: "zondicons-view-show", render: ka }), Ma = { class: "font-m
3341
3381
  variant: "ghost",
3342
3382
  title: s.$td("errors.viewLogs", "View error logs"),
3343
3383
  "aria-label": s.$td("errors.viewLogs", "View error logs"),
3344
- onClick: e[0] || (e[0] = (r) => s.$ui.modal(Ha))
3384
+ onClick: e[0] || (e[0] = (r) => s.$ui.modal(Ta))
3345
3385
  }, {
3346
3386
  default: f(() => [
3347
- m(o(xa), { class: "size-6 text-red-500" })
3387
+ m(o(ka), { class: "size-6 text-red-500" })
3348
3388
  ]),
3349
3389
  _: 1
3350
3390
  }, 8, ["title", "aria-label"])) : M("", !0);
3351
3391
  }
3352
- }), yl = /* @__PURE__ */ g({
3392
+ }), xl = /* @__PURE__ */ g({
3353
3393
  __name: "ErrorMessage",
3354
3394
  props: {
3355
3395
  error: {}
@@ -3361,7 +3401,7 @@ const Sa = A({ name: "zondicons-view-show", render: ka }), Ma = { class: "font-m
3361
3401
  inline: ""
3362
3402
  }, null, 8, ["text"]));
3363
3403
  }
3364
- }), wl = /* @__PURE__ */ g({
3404
+ }), Cl = /* @__PURE__ */ g({
3365
3405
  __name: "Link",
3366
3406
  props: {
3367
3407
  class: {},
@@ -3383,7 +3423,7 @@ const Sa = A({ name: "zondicons-view-show", render: ka }), Ma = { class: "font-m
3383
3423
  _: 3
3384
3424
  }, 16));
3385
3425
  }
3386
- }), $l = /* @__PURE__ */ g({
3426
+ }), kl = /* @__PURE__ */ g({
3387
3427
  __name: "SettingsModal",
3388
3428
  setup(t) {
3389
3429
  const s = u(() => Wt(D.settings, "priority", "desc"));
@@ -3396,10 +3436,10 @@ const Sa = A({ name: "zondicons-view-show", render: ka }), Ma = { class: "font-m
3396
3436
  _: 1
3397
3437
  }, 8, ["title"]));
3398
3438
  }
3399
- }), Va = {
3439
+ }), La = {
3400
3440
  key: 0,
3401
3441
  class: "pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3"
3402
- }, _l = /* @__PURE__ */ g({
3442
+ }, Sl = /* @__PURE__ */ g({
3403
3443
  inheritAttrs: !1,
3404
3444
  __name: "TextArea",
3405
3445
  props: {
@@ -3419,8 +3459,8 @@ const Sa = A({ name: "zondicons-view-show", render: ka }), Ma = { class: "font-m
3419
3459
  "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",
3420
3460
  {
3421
3461
  "focus:ring-primary-600": !((l = e.value) != null && l.errors),
3422
- "text-gray-900 shadow-2xs ring-gray-300 placeholder:text-gray-400": !((d = e.value) != null && d.errors),
3423
- "pr-10 text-red-900 ring-red-300 placeholder:text-red-300 focus:ring-red-500": (v = e.value) == null ? void 0 : v.errors
3462
+ "text-gray-900 shadow-2xs ring-gray-900/10 placeholder:text-gray-400": !((d = e.value) != null && d.errors),
3463
+ "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
3424
3464
  },
3425
3465
  t.inputClass
3426
3466
  );
@@ -3439,8 +3479,8 @@ const Sa = A({ name: "zondicons-view-show", render: ka }), Ma = { class: "font-m
3439
3479
  y("div", {
3440
3480
  class: C(a.value)
3441
3481
  }, [
3442
- m(pa, H(o(r), { class: i.value }), null, 16, ["class"]),
3443
- (v = o(e)) != null && v.errors ? (c(), b("div", Va, [
3482
+ m(fa, H(o(r), { class: i.value }), null, 16, ["class"]),
3483
+ (v = o(e)) != null && v.errors ? (c(), b("div", La, [
3444
3484
  m(o(Re), { class: "size-5 text-red-500" })
3445
3485
  ])) : M("", !0)
3446
3486
  ], 2),
@@ -3452,7 +3492,7 @@ const Sa = A({ name: "zondicons-view-show", render: ka }), Ma = { class: "font-m
3452
3492
  }, 16, ["label", "class"]));
3453
3493
  }
3454
3494
  });
3455
- class xl {
3495
+ class Ml {
3456
3496
  constructor() {
3457
3497
  _(this, "status");
3458
3498
  _(this, "_listeners");
@@ -3527,142 +3567,145 @@ class xl {
3527
3567
  return { ...s };
3528
3568
  }
3529
3569
  }
3530
- async function Cl(t) {
3570
+ async function El(t) {
3531
3571
  await t.start();
3532
3572
  }
3533
3573
  export {
3534
- fl as AdvancedOptions,
3535
- Jr as AlertModal,
3574
+ bl as AdvancedOptions,
3575
+ Xr as AlertModal,
3536
3576
  D as App,
3537
- ml as AppLayout,
3538
- oa as AppModals,
3539
- ca as AppOverlays,
3577
+ vl as AppLayout,
3578
+ ca as AppModals,
3579
+ da as AppOverlays,
3540
3580
  Ps as AppService,
3541
- ia as AppToasts,
3581
+ ua as AppToasts,
3542
3582
  z as Button,
3543
- Ka as Cache,
3583
+ Ja as Cache,
3544
3584
  Os as CacheService,
3545
- hl as Checkbox,
3546
- sn as ConfirmModal,
3547
- gl as DropdownMenu,
3548
- va as DropdownMenuOption,
3549
- ba as DropdownMenuOptions,
3550
- vl as EditableContent,
3551
- bl as ErrorLogs,
3552
- Ha as ErrorLogsModal,
3553
- yl as ErrorMessage,
3554
- Ln as ErrorReportModal,
3555
- _n as ErrorReportModalButtons,
3556
- xn as ErrorReportModalTitle,
3585
+ yl as Checkbox,
3586
+ nn as ConfirmModal,
3587
+ wl as DropdownMenu,
3588
+ ya as DropdownMenuOption,
3589
+ wa as DropdownMenuOptions,
3590
+ $l as EditableContent,
3591
+ _l as ErrorLogs,
3592
+ Ta as ErrorLogsModal,
3593
+ xl as ErrorMessage,
3594
+ In as ErrorReportModal,
3595
+ Cn as ErrorReportModalButtons,
3596
+ kn as ErrorReportModalTitle,
3557
3597
  rt as Errors,
3558
- Ua as EventListenerPriorities,
3559
- T as Events,
3598
+ Na as EventListenerPriorities,
3599
+ L as Events,
3560
3600
  Rs as EventsService,
3561
3601
  yt as Form,
3562
- dr as FormController,
3602
+ mr as FormController,
3563
3603
  nt as HeadlessButton,
3564
3604
  Ae as HeadlessInput,
3565
3605
  _t as HeadlessInputDescription,
3566
3606
  he as HeadlessInputError,
3567
3607
  $t as HeadlessInputInput,
3568
3608
  fe as HeadlessInputLabel,
3569
- pa as HeadlessInputTextArea,
3570
- Br as HeadlessModal,
3571
- qr as HeadlessModalContent,
3572
- Fr as HeadlessModalDescription,
3573
- Ur as HeadlessModalOverlay,
3574
- Or as HeadlessModalTitle,
3575
- pr as HeadlessSelect,
3609
+ fa as HeadlessInputTextArea,
3610
+ Fr as HeadlessModal,
3611
+ Ur as HeadlessModalContent,
3612
+ Or as HeadlessModalDescription,
3613
+ Nr as HeadlessModalOverlay,
3614
+ Wr as HeadlessModalTitle,
3615
+ fr as HeadlessSelect,
3576
3616
  qe as HeadlessSelectLabel,
3577
3617
  dt as HeadlessSelectOption,
3578
3618
  pt as HeadlessSelectOptions,
3579
3619
  ut as HeadlessSelectTrigger,
3580
3620
  ct as HeadlessSelectValue,
3581
- Er as HeadlessSwitch,
3582
- ta as HeadlessToast,
3583
- On as Input,
3584
- xl as Job,
3621
+ Vr as HeadlessSwitch,
3622
+ ra as HeadlessToast,
3623
+ Wn as Input,
3624
+ Ml as Job,
3585
3625
  Ue as JobCancelledError,
3586
3626
  J as Lang,
3587
3627
  me as Layouts,
3588
- wl as Link,
3589
- jn as LoadingModal,
3628
+ Cl as Link,
3629
+ qn as LoadingModal,
3590
3630
  et as MOBILE_BREAKPOINT,
3591
3631
  I as Markdown,
3592
3632
  te as Modal,
3593
3633
  bt as ModalContext,
3594
- zn as ProgressBar,
3595
- Qn as PromptModal,
3596
- gr as Select,
3634
+ jn as ProgressBar,
3635
+ Zn as PromptModal,
3636
+ br as Select,
3597
3637
  mt as SelectLabel,
3598
3638
  Fe as SelectOption,
3599
3639
  ft as SelectOptions,
3600
3640
  ht as SelectTrigger,
3601
3641
  we as Service,
3602
3642
  Me as ServiceBootError,
3603
- Sr as Setting,
3604
- $l as SettingsModal,
3605
- Gn as StartupCrash,
3643
+ Er as Setting,
3644
+ kl as SettingsModal,
3645
+ ta as StartupCrash,
3606
3646
  Ws as Storage,
3607
- Hr as Switch,
3608
- _l as TextArea,
3609
- sa as Toast,
3647
+ Tr as Switch,
3648
+ Sl as TextArea,
3649
+ na as Toast,
3610
3650
  R as UI,
3611
3651
  Zs as UIService,
3612
- Xa as __objectType,
3613
- rl as booleanInput,
3652
+ Ga as __valueType,
3653
+ al as booleanInput,
3614
3654
  $e as bootServices,
3615
- pl as bootstrap,
3616
- aa as bootstrapApplication,
3655
+ gl as bootstrap,
3656
+ oa as bootstrapApplication,
3617
3657
  E as classes,
3618
- el as computedAsync,
3619
- tl as computedDebounce,
3620
- nl as dateInput,
3621
- Wa as defineDirective,
3622
- Za as defineFormValidationRule,
3623
- Na as definePlugin,
3658
+ sl as computedAsync,
3659
+ rl as computedDebounce,
3660
+ ll as dateInput,
3661
+ Qa as defineDirective,
3662
+ Ya as defineFormValidationRule,
3663
+ Ka as definePlugin,
3624
3664
  ye as defineServiceState,
3625
3665
  Is as defineServiceStore,
3626
- Oa as defineSettings,
3627
- Cl as dispatch,
3666
+ Wa as defineSettings,
3667
+ El as dispatch,
3668
+ ol as enumInput,
3628
3669
  tt as getCurrentLayout,
3629
3670
  vt as getErrorMessage,
3630
3671
  ar as getMarkdownRouter,
3631
- Ts as getPiniaStore,
3672
+ Ls as getPiniaStore,
3632
3673
  ir as hasSelectOptionLabel,
3633
3674
  Bs as injectOrFail,
3634
3675
  js as injectReactive,
3635
3676
  V as injectReactiveOrFail,
3636
3677
  zs as installPlugins,
3637
- cl as numberInput,
3638
- ul as objectInput,
3639
- Ya as onCleanMounted,
3678
+ ml as numberInput,
3679
+ fl as objectInput,
3680
+ el as onCleanMounted,
3640
3681
  ot as onFormFocus,
3641
- Ga as persistent,
3642
- sl as registerErrorHandler,
3682
+ tl as persistent,
3683
+ nl as registerErrorHandler,
3643
3684
  lr as renderMarkdown,
3644
3685
  Ge as renderVNode,
3645
- Qa as replaceExisting,
3646
- al as requiredBooleanInput,
3647
- ll as requiredDateInput,
3648
- ol as requiredNumberInput,
3649
- il as requiredObjectInput,
3650
- Nn as requiredStringInput,
3651
- Ls as resetPiniaStore,
3686
+ Za as replaceExisting,
3687
+ il as requiredBooleanInput,
3688
+ cl as requiredDateInput,
3689
+ ul as requiredEnumInput,
3690
+ dl as requiredNumberInput,
3691
+ pl as requiredObjectInput,
3692
+ Kn as requiredStringInput,
3693
+ Ts as resetPiniaStore,
3652
3694
  or as safeHtml,
3653
- Ja as setMarkdownRouter,
3654
- dl as stringInput,
3695
+ Xa as setMarkdownRouter,
3696
+ hl as stringInput,
3655
3697
  st as translate,
3656
3698
  S as translateWithDefault,
3657
- Qr as useAlertModal,
3658
- Zr as useConfirmModal,
3659
- Cn as useErrorReportModal,
3699
+ Zr as useAlertModal,
3700
+ Yr as useConfirmModal,
3701
+ Sn as useErrorReportModal,
3660
3702
  lt as useEvent,
3661
3703
  it as useForm,
3662
3704
  Ie as useInputAttrs,
3663
- Dn as useLoadingModal,
3664
- Wn as usePromptModal,
3665
- ur as validate,
3705
+ Bn as useLoadingModal,
3706
+ Qn as usePromptModal,
3707
+ pr as validate,
3708
+ dr as validateType,
3666
3709
  de as validators,
3667
3710
  at as variantClasses
3668
3711
  };